@vtx-ui/react 0.0.1-beta.1 → 0.0.1-beta.10
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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/AdminHeader/AdminHeader.d.ts +179 -0
- package/dist/types/components/AdminHeader/AdminHeader.examples.d.ts +44 -0
- package/dist/types/components/AdminHeader/AdminHeader.stories.d.ts +53 -0
- package/dist/types/components/AdminHeader/AdminHeader.widgets.stories.d.ts +86 -0
- package/dist/types/components/AdminHeader/index.d.ts +2 -0
- package/dist/types/components/Alert/Alert.d.ts +7 -54
- package/dist/types/components/Avatar/Avatar.d.ts +5 -2
- package/dist/types/components/Badge/Badge.d.ts +8 -34
- package/dist/types/components/Button/Button.d.ts +7 -43
- package/dist/types/components/Card/Card.d.ts +7 -64
- package/dist/types/components/Checkbox/Checkbox.d.ts +5 -59
- package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +5 -53
- package/dist/types/components/Chip/Chip.d.ts +7 -33
- package/dist/types/components/DataGrid/DataGrid.d.ts +97 -0
- package/dist/types/components/DataGrid/index.d.ts +2 -0
- package/dist/types/components/Divider/Divider.d.ts +5 -72
- package/dist/types/components/Flex/Flex.d.ts +5 -26
- package/dist/types/components/Grid/Grid.d.ts +5 -77
- package/dist/types/components/Header/Header.d.ts +5 -33
- package/dist/types/components/Input/Input.d.ts +8 -54
- package/dist/types/components/Menu/Menu.d.ts +5 -32
- package/dist/types/components/Modal/Modal.d.ts +7 -73
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +5 -41
- package/dist/types/components/Radio/Radio.d.ts +8 -57
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +8 -59
- package/dist/types/components/Select/Select.d.ts +8 -60
- package/dist/types/components/SideMenu/SideMenu.d.ts +15 -34
- package/dist/types/components/SideMenu/SideMenu.examples.d.ts +18 -0
- package/dist/types/components/SideMenu/index.d.ts +1 -3
- package/dist/types/components/Table/Table.d.ts +108 -60
- package/dist/types/components/Text/Text.d.ts +5 -51
- package/dist/types/components/Timeline/Timeline.d.ts +34 -0
- package/dist/types/components/Timeline/index.d.ts +2 -0
- package/dist/types/components/Toast/Toast.d.ts +5 -51
- package/dist/types/hoc/withParsedClasses.d.ts +7 -0
- package/dist/types/hooks/useTheme.d.ts +1 -244
- package/dist/types/icons/IconComponents.d.ts +55 -0
- package/dist/types/icons/index.d.ts +1 -0
- package/dist/types/index.d.ts +28 -5
- package/dist/types/stories/components/Accordion.stories.d.ts +11 -0
- package/dist/types/stories/components/Alert.stories.d.ts +9 -0
- package/dist/types/stories/components/Avatar.stories.d.ts +13 -0
- package/dist/types/stories/components/Badge.stories.d.ts +8 -0
- package/dist/types/stories/components/Button.stories.d.ts +9 -0
- package/dist/types/stories/components/Card.stories.d.ts +8 -0
- package/dist/types/stories/components/Checkbox.stories.d.ts +17 -0
- package/dist/types/stories/components/CheckboxGroup.stories.d.ts +13 -0
- package/dist/types/stories/components/Chip.stories.d.ts +22 -0
- package/dist/types/stories/components/DataGrid.stories.d.ts +20 -0
- package/dist/types/stories/components/Divider.stories.d.ts +15 -0
- package/dist/types/stories/components/Flex.stories.d.ts +14 -0
- package/dist/types/stories/components/Grid.stories.d.ts +11 -0
- package/dist/types/stories/components/Header.stories.d.ts +14 -0
- package/dist/types/stories/components/Input.stories.d.ts +9 -0
- package/dist/types/stories/components/Menu.stories.d.ts +13 -0
- package/dist/types/stories/components/Modal.stories.d.ts +12 -0
- package/dist/types/stories/components/MultiSelect.stories.d.ts +19 -0
- package/dist/types/stories/components/Radio.stories.d.ts +16 -0
- package/dist/types/stories/components/RadioGroup.stories.d.ts +15 -0
- package/dist/types/stories/components/Select.stories.d.ts +17 -0
- package/dist/types/stories/components/SideMenu.stories.d.ts +62 -0
- package/dist/types/stories/components/Table.stories.d.ts +25 -0
- package/dist/types/stories/components/Text.stories.d.ts +18 -0
- package/dist/types/stories/components/Timeline.stories.d.ts +20 -0
- package/dist/types/stories/components/Toast.stories.d.ts +17 -0
- package/dist/types/stories/components/Tooltip.stories.d.ts +20 -0
- package/dist/types/stories/widgets/InfoCard.stories.d.ts +12 -0
- package/dist/types/stories/widgets/InfoListCard.stories.d.ts +19 -0
- package/dist/types/stories/widgets/InfoText.stories.d.ts +30 -0
- package/dist/types/stories/widgets/OrderCard.stories.d.ts +13 -0
- package/dist/types/stories/widgets/OrderConfirmation.stories.d.ts +36 -0
- package/dist/types/stories/widgets/OrderDetails.stories.d.ts +11 -0
- package/dist/types/stories/widgets/ProductCard.stories.d.ts +25 -0
- package/dist/types/theme/ThemeProvider.d.ts +2 -2
- package/dist/types/theme/cssVariables.d.ts +5 -2
- package/dist/types/theme/index.d.ts +3 -3
- package/dist/types/theme/tokens.d.ts +271 -216
- package/dist/types/utils/parseClass.d.ts +1 -0
- package/dist/types/widgets/Header/Header.d.ts +252 -0
- package/dist/types/widgets/Header/Header.stories.d.ts +30 -0
- package/dist/types/widgets/Header/index.d.ts +2 -0
- package/dist/types/widgets/InfoCard/InfoCard.d.ts +40 -0
- package/dist/types/widgets/InfoCard/index.d.ts +1 -0
- package/dist/types/widgets/InfoListCard/InfoListCard.d.ts +43 -0
- package/dist/types/widgets/InfoListCard/index.d.ts +2 -0
- package/dist/types/widgets/InfoText/InfoText.d.ts +144 -0
- package/dist/types/widgets/InfoText/InfoText.examples.d.ts +33 -0
- package/dist/types/widgets/InfoText/index.d.ts +1 -0
- package/dist/types/widgets/OrderCard/OrderCard.d.ts +71 -0
- package/dist/types/widgets/OrderCard/index.d.ts +2 -0
- package/dist/types/widgets/OrderConfirmation/OrderConfirmation.d.ts +85 -0
- package/dist/types/widgets/OrderConfirmation/index.d.ts +3 -0
- package/dist/types/widgets/OrderDetails/OrderDetails.d.ts +91 -0
- package/dist/types/widgets/OrderDetails/index.d.ts +3 -0
- package/dist/types/widgets/ProductCard/ProductCard.d.ts +42 -0
- package/dist/types/widgets/ProductCard/index.d.ts +1 -0
- package/package.json +113 -59
- package/dist/components/Accordion/Accordion.d.ts +0 -31
- package/dist/components/Accordion/Accordion.examples.d.ts +0 -3
- package/dist/components/Accordion/AccordionItem.d.ts +0 -5
- package/dist/components/Accordion/index.d.ts +0 -4
- package/dist/components/Accordion/types.d.ts +0 -98
- package/dist/components/Alert/Alert.d.ts +0 -119
- package/dist/components/Alert/index.d.ts +0 -3
- package/dist/components/Avatar/Avatar.d.ts +0 -63
- package/dist/components/Avatar/index.d.ts +0 -3
- package/dist/components/Badge/Badge.d.ts +0 -81
- package/dist/components/Badge/index.d.ts +0 -3
- package/dist/components/Button/Button.d.ts +0 -117
- package/dist/components/Button/index.d.ts +0 -3
- package/dist/components/Card/Card.d.ts +0 -120
- package/dist/components/Card/index.d.ts +0 -3
- package/dist/components/Checkbox/Checkbox.d.ts +0 -114
- package/dist/components/Checkbox/index.d.ts +0 -3
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +0 -121
- package/dist/components/CheckboxGroup/index.d.ts +0 -3
- package/dist/components/Chip/Chip.d.ts +0 -91
- package/dist/components/Chip/index.d.ts +0 -3
- package/dist/components/Divider/Divider.d.ts +0 -118
- package/dist/components/Divider/index.d.ts +0 -3
- package/dist/components/Flex/Flex.d.ts +0 -66
- package/dist/components/Flex/index.d.ts +0 -3
- package/dist/components/Grid/Grid.d.ts +0 -156
- package/dist/components/Grid/index.d.ts +0 -3
- package/dist/components/Header/Header.d.ts +0 -138
- package/dist/components/Header/index.d.ts +0 -3
- package/dist/components/Input/Input.d.ts +0 -129
- package/dist/components/Input/index.d.ts +0 -3
- package/dist/components/Menu/Menu.d.ts +0 -114
- package/dist/components/Menu/index.d.ts +0 -4
- package/dist/components/Modal/Modal.d.ts +0 -201
- package/dist/components/Modal/index.d.ts +0 -3
- package/dist/components/MultiSelect/MultiSelect.d.ts +0 -190
- package/dist/components/MultiSelect/index.d.ts +0 -3
- package/dist/components/Radio/Radio.d.ts +0 -105
- package/dist/components/Radio/index.d.ts +0 -3
- package/dist/components/RadioGroup/RadioGroup.d.ts +0 -134
- package/dist/components/RadioGroup/index.d.ts +0 -3
- package/dist/components/Select/Select.d.ts +0 -169
- package/dist/components/Select/index.d.ts +0 -3
- package/dist/components/SideMenu/SideMenu.d.ts +0 -118
- package/dist/components/SideMenu/index.d.ts +0 -4
- package/dist/components/Table/Table.d.ts +0 -211
- package/dist/components/Table/index.d.ts +0 -3
- package/dist/components/Text/Text.d.ts +0 -160
- package/dist/components/Text/index.d.ts +0 -3
- package/dist/components/Toast/Toast.d.ts +0 -56
- package/dist/components/Toast/ToastContainer.d.ts +0 -6
- package/dist/components/Toast/index.d.ts +0 -5
- package/dist/components/Toast/types.d.ts +0 -148
- package/dist/components/Toast/useToast.d.ts +0 -34
- package/dist/components/Tooltip/Tooltip.d.ts +0 -108
- package/dist/components/Tooltip/index.d.ts +0 -3
- package/dist/hooks/index.d.ts +0 -85
- package/dist/hooks/useTheme.d.ts +0 -268
- package/dist/index.d.ts +0 -55
- package/dist/theme/ThemeProvider.d.ts +0 -39
- package/dist/theme/cssVariables.d.ts +0 -9
- package/dist/theme/index.d.ts +0 -6
- package/dist/theme/tokens.d.ts +0 -258
|
@@ -2,257 +2,312 @@
|
|
|
2
2
|
* Design tokens for the VTX UI library
|
|
3
3
|
* These tokens define the core visual language of the design system
|
|
4
4
|
*/
|
|
5
|
-
export declare const COLOR_KEYS:
|
|
5
|
+
export declare const COLOR_KEYS: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900];
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
|
|
7
|
+
* Generates a color palette from a single hex color
|
|
8
|
+
* Creates lighter shades (50-400) and darker shades (600-900) based on the base color (500)
|
|
9
|
+
*/
|
|
10
|
+
export declare function generateColorShades(hexColor: string): Record<number, string>;
|
|
11
|
+
/**
|
|
12
|
+
* Normalizes a colors object so that:
|
|
13
|
+
* - String values (e.g., primary: "#fff") are expanded to full color palettes
|
|
14
|
+
* - Object values with specific shades are preserved and merged with generated shades
|
|
15
|
+
* - Allows mixing: primary: { 500: "#fff", 600: "#000" } will generate other shades from 500
|
|
10
16
|
*/
|
|
11
17
|
export declare function normalizeColors(colors: Record<string, any>): Record<string, any>;
|
|
12
18
|
export declare const tokens: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
readonly secondary: {
|
|
27
|
-
readonly 50: "#f5f3ff";
|
|
28
|
-
readonly 100: "#ede9fe";
|
|
29
|
-
readonly 200: "#ddd6fe";
|
|
30
|
-
readonly 300: "#c4b5fd";
|
|
31
|
-
readonly 400: "#a78bfa";
|
|
32
|
-
readonly 500: "#8b5cf6";
|
|
33
|
-
readonly 600: "#7c3aed";
|
|
34
|
-
readonly 700: "#6d28d9";
|
|
35
|
-
readonly 800: "#5b21b6";
|
|
36
|
-
readonly 900: "#4c1d95";
|
|
19
|
+
colors: {
|
|
20
|
+
primary: Record<number, string>;
|
|
21
|
+
secondary: {
|
|
22
|
+
50: string;
|
|
23
|
+
100: string;
|
|
24
|
+
200: string;
|
|
25
|
+
300: string;
|
|
26
|
+
400: string;
|
|
27
|
+
500: string;
|
|
28
|
+
600: string;
|
|
29
|
+
700: string;
|
|
30
|
+
800: string;
|
|
31
|
+
900: string;
|
|
37
32
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
33
|
+
neutral: {
|
|
34
|
+
50: string;
|
|
35
|
+
100: string;
|
|
36
|
+
200: string;
|
|
37
|
+
300: string;
|
|
38
|
+
400: string;
|
|
39
|
+
500: string;
|
|
40
|
+
600: string;
|
|
41
|
+
700: string;
|
|
42
|
+
800: string;
|
|
43
|
+
900: string;
|
|
49
44
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
45
|
+
success: {
|
|
46
|
+
50: string;
|
|
47
|
+
500: string;
|
|
48
|
+
600: string;
|
|
49
|
+
700: string;
|
|
55
50
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
warning: {
|
|
52
|
+
50: string;
|
|
53
|
+
500: string;
|
|
54
|
+
600: string;
|
|
55
|
+
700: string;
|
|
61
56
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
error: {
|
|
58
|
+
50: string;
|
|
59
|
+
500: string;
|
|
60
|
+
600: string;
|
|
61
|
+
700: string;
|
|
67
62
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
info: {
|
|
64
|
+
50: string;
|
|
65
|
+
500: string;
|
|
66
|
+
600: string;
|
|
67
|
+
700: string;
|
|
73
68
|
};
|
|
74
69
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
70
|
+
spacing: {
|
|
71
|
+
0: string;
|
|
72
|
+
1: string;
|
|
73
|
+
2: string;
|
|
74
|
+
3: string;
|
|
75
|
+
4: string;
|
|
76
|
+
5: string;
|
|
77
|
+
6: string;
|
|
78
|
+
8: string;
|
|
79
|
+
10: string;
|
|
80
|
+
12: string;
|
|
81
|
+
16: string;
|
|
82
|
+
20: string;
|
|
83
|
+
24: string;
|
|
89
84
|
};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
typography: {
|
|
86
|
+
fontFamily: {
|
|
87
|
+
sans: string;
|
|
88
|
+
mono: string;
|
|
94
89
|
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
90
|
+
fontSize: {
|
|
91
|
+
xs: string;
|
|
92
|
+
sm: string;
|
|
93
|
+
base: string;
|
|
94
|
+
lg: string;
|
|
95
|
+
xl: string;
|
|
96
|
+
'2xl': string;
|
|
97
|
+
'3xl': string;
|
|
98
|
+
'4xl': string;
|
|
99
|
+
'5xl': string;
|
|
100
|
+
'6xl': string;
|
|
101
|
+
'7xl': string;
|
|
102
|
+
'8xl': string;
|
|
103
|
+
'9xl': string;
|
|
109
104
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
105
|
+
fontWeight: {
|
|
106
|
+
thin: string;
|
|
107
|
+
extralight: string;
|
|
108
|
+
light: string;
|
|
109
|
+
normal: string;
|
|
110
|
+
medium: string;
|
|
111
|
+
semibold: string;
|
|
112
|
+
bold: string;
|
|
113
|
+
extrabold: string;
|
|
114
|
+
black: string;
|
|
120
115
|
};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
116
|
+
lineHeight: {
|
|
117
|
+
none: string;
|
|
118
|
+
tight: string;
|
|
119
|
+
snug: string;
|
|
120
|
+
normal: string;
|
|
121
|
+
relaxed: string;
|
|
122
|
+
loose: string;
|
|
128
123
|
};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
124
|
+
letterSpacing: {
|
|
125
|
+
tighter: string;
|
|
126
|
+
tight: string;
|
|
127
|
+
normal: string;
|
|
128
|
+
wide: string;
|
|
129
|
+
wider: string;
|
|
130
|
+
widest: string;
|
|
136
131
|
};
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
132
|
+
textVariants: {
|
|
133
|
+
h1: {
|
|
134
|
+
fontSize: string;
|
|
135
|
+
fontWeight: string;
|
|
136
|
+
lineHeight: string;
|
|
137
|
+
letterSpacing: string;
|
|
143
138
|
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
139
|
+
h2: {
|
|
140
|
+
fontSize: string;
|
|
141
|
+
fontWeight: string;
|
|
142
|
+
lineHeight: string;
|
|
143
|
+
letterSpacing: string;
|
|
149
144
|
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
145
|
+
h3: {
|
|
146
|
+
fontSize: string;
|
|
147
|
+
fontWeight: string;
|
|
148
|
+
lineHeight: string;
|
|
149
|
+
letterSpacing: string;
|
|
155
150
|
};
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
151
|
+
h4: {
|
|
152
|
+
fontSize: string;
|
|
153
|
+
fontWeight: string;
|
|
154
|
+
lineHeight: string;
|
|
155
|
+
letterSpacing: string;
|
|
161
156
|
};
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
157
|
+
h5: {
|
|
158
|
+
fontSize: string;
|
|
159
|
+
fontWeight: string;
|
|
160
|
+
lineHeight: string;
|
|
161
|
+
letterSpacing: string;
|
|
167
162
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
163
|
+
h6: {
|
|
164
|
+
fontSize: string;
|
|
165
|
+
fontWeight: string;
|
|
166
|
+
lineHeight: string;
|
|
167
|
+
letterSpacing: string;
|
|
173
168
|
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
169
|
+
body1: {
|
|
170
|
+
fontSize: string;
|
|
171
|
+
fontWeight: string;
|
|
172
|
+
lineHeight: string;
|
|
173
|
+
letterSpacing: string;
|
|
179
174
|
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
175
|
+
body2: {
|
|
176
|
+
fontSize: string;
|
|
177
|
+
fontWeight: string;
|
|
178
|
+
lineHeight: string;
|
|
179
|
+
letterSpacing: string;
|
|
185
180
|
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
181
|
+
subtitle1: {
|
|
182
|
+
fontSize: string;
|
|
183
|
+
fontWeight: string;
|
|
184
|
+
lineHeight: string;
|
|
185
|
+
letterSpacing: string;
|
|
191
186
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
187
|
+
subtitle2: {
|
|
188
|
+
fontSize: string;
|
|
189
|
+
fontWeight: string;
|
|
190
|
+
lineHeight: string;
|
|
191
|
+
letterSpacing: string;
|
|
197
192
|
};
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
193
|
+
caption: {
|
|
194
|
+
fontSize: string;
|
|
195
|
+
fontWeight: string;
|
|
196
|
+
lineHeight: string;
|
|
197
|
+
letterSpacing: string;
|
|
203
198
|
};
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
199
|
+
overline: {
|
|
200
|
+
fontSize: string;
|
|
201
|
+
fontWeight: string;
|
|
202
|
+
lineHeight: string;
|
|
203
|
+
letterSpacing: string;
|
|
204
|
+
textTransform: string;
|
|
210
205
|
};
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
206
|
+
button: {
|
|
207
|
+
fontSize: string;
|
|
208
|
+
fontWeight: string;
|
|
209
|
+
lineHeight: string;
|
|
210
|
+
letterSpacing: string;
|
|
216
211
|
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
212
|
+
label: {
|
|
213
|
+
fontSize: string;
|
|
214
|
+
fontWeight: string;
|
|
215
|
+
lineHeight: string;
|
|
216
|
+
letterSpacing: string;
|
|
222
217
|
};
|
|
223
218
|
};
|
|
224
219
|
};
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
220
|
+
borderRadius: {
|
|
221
|
+
none: string;
|
|
222
|
+
sm: string;
|
|
223
|
+
base: string;
|
|
224
|
+
md: string;
|
|
225
|
+
lg: string;
|
|
226
|
+
xl: string;
|
|
227
|
+
'2xl': string;
|
|
228
|
+
full: string;
|
|
234
229
|
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
230
|
+
shadows: {
|
|
231
|
+
sm: string;
|
|
232
|
+
base: string;
|
|
233
|
+
md: string;
|
|
234
|
+
lg: string;
|
|
235
|
+
xl: string;
|
|
236
|
+
none: string;
|
|
242
237
|
};
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
238
|
+
transitions: {
|
|
239
|
+
fast: string;
|
|
240
|
+
base: string;
|
|
241
|
+
slow: string;
|
|
247
242
|
};
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
243
|
+
zIndex: {
|
|
244
|
+
dropdown: number;
|
|
245
|
+
sticky: number;
|
|
246
|
+
modal: number;
|
|
247
|
+
tooltip: number;
|
|
248
|
+
notification: number;
|
|
254
249
|
};
|
|
255
250
|
};
|
|
256
|
-
export type
|
|
257
|
-
|
|
258
|
-
|
|
251
|
+
export type ColorPalette = {
|
|
252
|
+
50?: string;
|
|
253
|
+
100?: string;
|
|
254
|
+
200?: string;
|
|
255
|
+
300?: string;
|
|
256
|
+
400?: string;
|
|
257
|
+
500?: string;
|
|
258
|
+
600?: string;
|
|
259
|
+
700?: string;
|
|
260
|
+
800?: string;
|
|
261
|
+
900?: string;
|
|
262
|
+
};
|
|
263
|
+
export type Colors = {
|
|
264
|
+
primary: ColorPalette;
|
|
265
|
+
secondary: ColorPalette;
|
|
266
|
+
neutral: ColorPalette;
|
|
267
|
+
success: ColorPalette;
|
|
268
|
+
warning: ColorPalette;
|
|
269
|
+
error: ColorPalette;
|
|
270
|
+
info: ColorPalette;
|
|
271
|
+
};
|
|
272
|
+
export type CustomColorValue = string | ColorPalette;
|
|
273
|
+
export type CustomColors = {
|
|
274
|
+
primary?: CustomColorValue;
|
|
275
|
+
secondary?: CustomColorValue;
|
|
276
|
+
neutral?: CustomColorValue;
|
|
277
|
+
success?: CustomColorValue;
|
|
278
|
+
warning?: CustomColorValue;
|
|
279
|
+
error?: CustomColorValue;
|
|
280
|
+
info?: CustomColorValue;
|
|
281
|
+
[key: string]: CustomColorValue | undefined;
|
|
282
|
+
};
|
|
283
|
+
export type Tokens = {
|
|
284
|
+
colors: Colors;
|
|
285
|
+
spacing: Record<string | number, string>;
|
|
286
|
+
typography: typeof tokens.typography;
|
|
287
|
+
borderRadius: Record<string, string>;
|
|
288
|
+
shadows: Record<string, string>;
|
|
289
|
+
transitions: Record<string, string>;
|
|
290
|
+
zIndex: Record<string, number>;
|
|
291
|
+
};
|
|
292
|
+
export type CustomTokens = {
|
|
293
|
+
colors?: CustomColors;
|
|
294
|
+
spacing?: Partial<Tokens['spacing']>;
|
|
295
|
+
typography?: Partial<Tokens['typography']>;
|
|
296
|
+
borderRadius?: Partial<Tokens['borderRadius']>;
|
|
297
|
+
shadows?: Partial<Tokens['shadows']>;
|
|
298
|
+
transitions?: Partial<Tokens['transitions']>;
|
|
299
|
+
zIndex?: Partial<Tokens['zIndex']>;
|
|
300
|
+
};
|
|
301
|
+
export type ColorScale = keyof Colors;
|
|
302
|
+
export type ColorShade = keyof ColorPalette;
|
|
303
|
+
/**
|
|
304
|
+
* Helper function for creating custom tokens with proper type inference
|
|
305
|
+
* @example
|
|
306
|
+
* const myTokens = createCustomTokens({
|
|
307
|
+
* colors: {
|
|
308
|
+
* primary: '#0c6b58', // Auto-generates 50-900 shades
|
|
309
|
+
* secondary: { 500: '#ff5722', 600: '#f4511e' }, // Partial palette
|
|
310
|
+
* }
|
|
311
|
+
* });
|
|
312
|
+
*/
|
|
313
|
+
export declare function createCustomTokens(tokens: CustomTokens): CustomTokens;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseClass(className: string): string;
|