@minimalstuff/ui 0.0.10 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +62 -0
- package/dist/index.es.js +362 -319
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,12 @@ import { PropsWithChildren } from 'react';
|
|
|
9
9
|
import { StyledComponent } from '@emotion/styled';
|
|
10
10
|
import { Theme } from '@emotion/react';
|
|
11
11
|
|
|
12
|
+
declare type Borders = {
|
|
13
|
+
radius: {
|
|
14
|
+
[key in SizeType]: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
|
|
12
18
|
export declare const Button: StyledComponent< {
|
|
13
19
|
theme?: Theme | undefined;
|
|
14
20
|
as?: ElementType<any, keyof JSX_2.IntrinsicElements> | undefined;
|
|
@@ -19,6 +25,48 @@ declare type ButtonProps = {
|
|
|
19
25
|
secondary?: boolean;
|
|
20
26
|
};
|
|
21
27
|
|
|
28
|
+
export declare type Colors = {
|
|
29
|
+
font: string;
|
|
30
|
+
background: string;
|
|
31
|
+
secondary: string;
|
|
32
|
+
black: string;
|
|
33
|
+
white: string;
|
|
34
|
+
grey: FadedColor;
|
|
35
|
+
blue: FadedColor;
|
|
36
|
+
green: FadedColor;
|
|
37
|
+
red: FadedColor;
|
|
38
|
+
yellow: FadedColor;
|
|
39
|
+
boxShadow: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export declare type FadedColor = {
|
|
43
|
+
lightest: string;
|
|
44
|
+
light: string;
|
|
45
|
+
default: string;
|
|
46
|
+
dark: string;
|
|
47
|
+
darkest: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
declare type FontSizes = {
|
|
51
|
+
[key in SizeType]: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
declare type Medias = {
|
|
55
|
+
[key in ScreenType]: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
declare type ScreenType =
|
|
59
|
+
| 'mobile'
|
|
60
|
+
| 'tablet'
|
|
61
|
+
| 'small_desktop'
|
|
62
|
+
| 'medium_desktop'
|
|
63
|
+
| 'large_desktop'
|
|
64
|
+
| 'xlarge_desktop';
|
|
65
|
+
|
|
66
|
+
declare type SizeType = 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
67
|
+
|
|
68
|
+
declare type SpeedType = 'fast' | 'normal' | 'slow';
|
|
69
|
+
|
|
22
70
|
export declare const TextEllipsis: StyledComponent< {
|
|
23
71
|
theme?: Theme | undefined;
|
|
24
72
|
as?: ElementType<any, keyof JSX_2.IntrinsicElements> | undefined;
|
|
@@ -38,6 +86,20 @@ export declare function ThemeContextProvider({ preferDarkTheme, children, onPref
|
|
|
38
86
|
onPreferenceChange?: (isDarkTheme: boolean) => void;
|
|
39
87
|
} & PropsWithChildren): JSX_3.Element;
|
|
40
88
|
|
|
89
|
+
declare type Transitions = {
|
|
90
|
+
delay: {
|
|
91
|
+
[key in SpeedType]: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export declare interface UITheme {
|
|
96
|
+
colors: Colors;
|
|
97
|
+
borders: Borders;
|
|
98
|
+
medias: Medias;
|
|
99
|
+
transitions: Transitions;
|
|
100
|
+
fontSizes: FontSizes;
|
|
101
|
+
}
|
|
102
|
+
|
|
41
103
|
export { }
|
|
42
104
|
|
|
43
105
|
|