From 54cd415c362912604c65274b5717894d30146823 Mon Sep 17 00:00:00 2001 From: Mario Souto <13791385+omariosouto@users.noreply.github.com> Date: Tue, 14 Dec 2021 07:47:27 -0300 Subject: [PATCH] fix: remote .d.ts files --- .gitignore | 1 + types/_old/GlobalStyle.d.ts | 1 - types/_old/components.d.ts | 31 --- types/components.d.ts | 3 - types/components/box/box.d.ts | 11 -- types/components/text/text.d.ts | 13 -- types/core/breakpoints/breakpoints.d.ts | 7 - types/core/stylesheet/stylesheet.d.ts | 11 -- types/core/theme/theme.d.ts | 239 ------------------------ types/utils/renderCSS.d.ts | 1 - types/utils/string/capitalize.d.ts | 1 - 11 files changed, 1 insertion(+), 318 deletions(-) delete mode 100644 types/_old/GlobalStyle.d.ts delete mode 100644 types/_old/components.d.ts delete mode 100644 types/components.d.ts delete mode 100644 types/components/box/box.d.ts delete mode 100644 types/components/text/text.d.ts delete mode 100644 types/core/breakpoints/breakpoints.d.ts delete mode 100644 types/core/stylesheet/stylesheet.d.ts delete mode 100644 types/core/theme/theme.d.ts delete mode 100644 types/utils/renderCSS.d.ts delete mode 100644 types/utils/string/capitalize.d.ts diff --git a/.gitignore b/.gitignore index 3c1536f..acb45d0 100644 --- a/.gitignore +++ b/.gitignore @@ -47,6 +47,7 @@ web_modules/ # TypeScript cache *.tsbuildinfo +types/ # Optional npm cache directory .npm diff --git a/types/_old/GlobalStyle.d.ts b/types/_old/GlobalStyle.d.ts deleted file mode 100644 index 19a9e8c..0000000 --- a/types/_old/GlobalStyle.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function GlobalStyle(): JSX.Element; diff --git a/types/_old/components.d.ts b/types/_old/components.d.ts deleted file mode 100644 index b0521b3..0000000 --- a/types/_old/components.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import React, { Ref } from 'react'; -interface BoxProps { - as?: any; - children?: any; - className?: string; - styleSheet?: any; - ref?: Ref; -} -export declare const Box: React.ForwardRefExoticComponent & React.RefAttributes>; -export declare function Icon({ as, styleSheet: initialStyleSheet, ...props }: any): JSX.Element; -export declare const Text: React.ForwardRefExoticComponent & React.RefAttributes>; -export declare function Image({ as, ...props }: any): JSX.Element; -export declare namespace Image { - var defaultProps: { - styleSheet: {}; - }; -} -export declare function Input({ as, styleSheet, ...props }: any): JSX.Element; -export declare namespace Input { - var defaultProps: { - styleSheet: {}; - }; -} -export declare function Button({ as, styleSheet, ...props }: any): JSX.Element; -export declare namespace Button { - var defaultProps: { - styleSheet: {}; - }; -} -export declare function Link({ children, href, styleSheet, as, ...props }: any): JSX.Element; -export {}; diff --git a/types/components.d.ts b/types/components.d.ts deleted file mode 100644 index 3f3a9c8..0000000 --- a/types/components.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { theme } from '@lib/core/theme/theme'; -export { Box } from '@lib/components/box/box'; -export { Text } from '@lib/components/text/text'; diff --git a/types/components/box/box.d.ts b/types/components/box/box.d.ts deleted file mode 100644 index 2778dc6..0000000 --- a/types/components/box/box.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import React, { Ref } from 'react'; -import { StyleSheet } from '@lib/core/stylesheet/stylesheet'; -interface BoxProps { - as?: any; - children?: any; - className?: string; - styleSheet?: StyleSheet; - ref?: Ref; -} -export declare const Box: React.ForwardRefExoticComponent & React.RefAttributes>; -export {}; diff --git a/types/components/text/text.d.ts b/types/components/text/text.d.ts deleted file mode 100644 index bf769ed..0000000 --- a/types/components/text/text.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import React from 'react'; -import { StyleSheet } from '@lib/core/stylesheet/stylesheet'; -interface TextProps { - styleSheet: StyleSheet; - children: React.ReactNode; -} -export declare function Text({ children, styleSheet }: TextProps): JSX.Element; -export declare namespace Text { - var defaultProps: { - styleSheet: {}; - }; -} -export {}; diff --git a/types/core/breakpoints/breakpoints.d.ts b/types/core/breakpoints/breakpoints.d.ts deleted file mode 100644 index 1fd5a1b..0000000 --- a/types/core/breakpoints/breakpoints.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare enum Breakpoints { - xs = "Breakpoints.xs", - sm = "Breakpoints.sm", - md = "Breakpoints.md", - lg = "Breakpoints.lg", - xl = "Breakpoints.xl" -} diff --git a/types/core/stylesheet/stylesheet.d.ts b/types/core/stylesheet/stylesheet.d.ts deleted file mode 100644 index 5f7ac72..0000000 --- a/types/core/stylesheet/stylesheet.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Breakpoints } from '@lib/core/breakpoints/breakpoints'; -declare type ResponsiveProperty = Partial>; -export interface StyleSheet { - srOnly?: boolean; - backgroundColor?: ResponsiveProperty; - padding?: ResponsiveProperty; - margin?: ResponsiveProperty; - focus?: any; - hover?: any; -} -export {}; diff --git a/types/core/theme/theme.d.ts b/types/core/theme/theme.d.ts deleted file mode 100644 index 03b08db..0000000 --- a/types/core/theme/theme.d.ts +++ /dev/null @@ -1,239 +0,0 @@ -export declare const theme: { - breakpoints: { - "Breakpoints.xs": number; - "Breakpoints.sm": number; - "Breakpoints.md": number; - "Breakpoints.lg": number; - "Breakpoints.xl": number; - }; - colors: { - primary: { - "050": string; - "100": string; - "200": string; - "300": string; - "400": string; - "500": string; - "600": string; - "700": string; - "800": string; - "900": string; - }; - neutral: { - "000": string; - "050": string; - "100": string; - "200": string; - "300": string; - "400": string; - "500": string; - "600": string; - "700": string; - "800": string; - "900": string; - "999": string; - }; - positive: { - "050": string; - "100": string; - "200": string; - "300": string; - "400": string; - "500": string; - "600": string; - "700": string; - "800": string; - "900": string; - }; - negative: { - "050": string; - "100": string; - "200": string; - "300": string; - "400": string; - "500": string; - "600": string; - "700": string; - "800": string; - "900": string; - }; - }; - typography: { - fontFamily: string; - variants: { - display1: { - fontSize: { - xs: string; - md: string; - }; - letterSpacing: { - xs: string; - }; - fontWeight: { - xs: string; - }; - }; - heading1: { - fontSize: { - xs: string; - md: string; - }; - letterSpacing: { - xs: string; - }; - fontWeight: { - xs: string; - }; - }; - heading2: { - fontSize: { - xs: string; - md: string; - }; - letterSpacing: { - xs: string; - }; - fontWeight: { - xs: string; - }; - }; - heading3: { - fontSize: { - xs: string; - md: string; - }; - letterSpacing: { - xs: string; - }; - fontWeight: { - xs: string; - }; - }; - heading4: { - fontSize: { - xs: string; - md: string; - }; - letterSpacing: { - xs: string; - }; - fontWeight: { - xs: string; - }; - }; - heading5: { - fontSize: { - xs: string; - md: string; - }; - letterSpacing: { - xs: string; - }; - fontWeight: { - xs: string; - }; - }; - body1: { - fontSize: { - xs: string; - }; - fontWeight: { - xs: string; - }; - }; - body2: { - fontSize: { - xs: string; - }; - fontWeight: { - xs: string; - }; - }; - body3: { - fontSize: { - xs: string; - }; - fontWeight: { - xs: string; - }; - }; - body4: { - fontSize: { - xs: string; - }; - fontWeight: { - xs: string; - }; - }; - }; - }; - space: { - x0: string; - xpx: string; - 'x0.5': string; - x1: string; - 'x1.5': string; - x2: string; - 'x2.5': string; - x3: string; - 'x3.5': string; - x4: string; - x5: string; - x6: string; - x7: string; - x8: string; - x9: string; - x10: string; - x11: string; - x12: string; - x14: string; - x16: string; - x20: string; - x24: string; - x28: string; - x32: string; - x36: string; - x40: string; - x44: string; - x48: string; - x52: string; - x56: string; - x60: string; - x64: string; - x72: string; - x80: string; - x96: string; - xcontainer_xs: string; - xcontainer_sm: string; - xcontainer_md: string; - xcontainer_lg: string; - xcontainer_xl: string; - 'x1/1': string; - 'x1/2': string; - 'x1/3': string; - 'x2/3': string; - 'x1/4': string; - 'x2/4': string; - 'x3/4': string; - 'x1/5': string; - 'x2/5': string; - 'x3/5': string; - 'x4/5': string; - 'x1/6': string; - 'x2/6': string; - 'x3/6': string; - 'x4/6': string; - 'x5/6': string; - 'x1/12': string; - 'x2/12': string; - 'x3/12': string; - 'x4/12': string; - 'x5/12': string; - 'x6/12': string; - 'x7/12': string; - 'x8/12': string; - 'x9/12': string; - 'x10/12': string; - 'x11/12': string; - }; -}; diff --git a/types/utils/renderCSS.d.ts b/types/utils/renderCSS.d.ts deleted file mode 100644 index a318230..0000000 --- a/types/utils/renderCSS.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function renderCSS(props: any, currentBreakpoint: any): string; diff --git a/types/utils/string/capitalize.d.ts b/types/utils/string/capitalize.d.ts deleted file mode 100644 index 10d8564..0000000 --- a/types/utils/string/capitalize.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function capitalize(str: any): any;