refactor: remove types used in demo without MUI

main
Josue 4 years ago committed by Tsu-ba-me
parent 2ec90b1ea3
commit dabec3be7a
  1. 5
      striker-ui/types/APIRouteHandlerMap.d.ts
  2. 4
      striker-ui/types/ButtonImageProps.d.ts
  3. 11
      striker-ui/types/ButtonProps.d.ts
  4. 11
      striker-ui/types/DefaultTheme.d.ts
  5. 3
      striker-ui/types/LabelProps.d.ts
  6. 4
      striker-ui/types/ListProps.d.ts
  7. 7
      striker-ui/types/SimpleLinkProps.d.ts
  8. 6
      striker-ui/types/ToggleSwitchProps.d.ts

@ -1,5 +0,0 @@
import { NextApiHandler } from 'next';
declare type APIRouteHandlerMap = Readonly<{
[httpMethod: string]: NextApiHandler;
}>;

@ -1,4 +0,0 @@
import { ImageProps } from 'next/image';
type ButtonImageProps = Omit<ImageProps, 'width' | 'height'> &
Partial<Pick<ImageProps, 'width' | 'height'>>;

@ -1,11 +0,0 @@
import { ButtonHTMLAttributes } from 'react';
import { LinkProps } from 'next/link';
import { ButtonImageProps } from './ButtonImageProps';
type ButtonProps = {
imageProps?: ButtonImageProps;
isSubmit?: boolean;
labelProps?: LabelProps;
linkProps?: LinkProps;
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'>;

@ -1,11 +0,0 @@
import 'styled-components';
declare module 'styled-components' {
export type DefaultTheme = {
colors: {
primary: string;
secondary: string;
tertiary: string;
};
};
}

@ -1,3 +0,0 @@
type LabelProps = {
text: string;
};

@ -1,4 +0,0 @@
type ListProps = {
isAlignHorizontal?: boolean;
labelText?: string;
};

@ -1,7 +0,0 @@
import { AnchorHTMLAttributes } from 'react';
import { LinkProps } from 'next/link';
type SimpleLinkProps = {
linkProps: Omit<LinkProps, 'passRef'>;
anchorProps?: AnchorHTMLAttributes<HTMLAnchorElement>;
};

@ -1,6 +0,0 @@
import { InputHTMLAttributes } from 'react';
type ToggleSwitchProps = Pick<
InputHTMLAttributes<HTMLInputElement>,
'checked' | 'disabled'
>;
Loading…
Cancel
Save