@castui/cast-ui 4.1.1 → 4.2.1
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/README.md +129 -19
- package/dist/components/Alert/Alert.d.ts +40 -0
- package/dist/components/Alert/Alert.js +71 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/Alert/index.js +5 -0
- package/dist/components/Avatar/Avatar.d.ts +31 -0
- package/dist/components/Avatar/Avatar.js +55 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Avatar/index.js +5 -0
- package/dist/components/Badge/Badge.d.ts +41 -0
- package/dist/components/Badge/Badge.js +71 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Badge/index.js +5 -0
- package/dist/components/Button/Button.d.ts +0 -1
- package/dist/components/Button/Button.js +21 -19
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Button/index.js +5 -2
- package/dist/components/Card/Card.d.ts +41 -0
- package/dist/components/Card/Card.js +91 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Card/index.js +5 -0
- package/dist/components/Checkbox/Checkbox.d.ts +32 -0
- package/dist/components/Checkbox/Checkbox.js +107 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/index.js +5 -0
- package/dist/components/Chip/Chip.d.ts +46 -0
- package/dist/components/Chip/Chip.js +82 -0
- package/dist/components/Chip/index.d.ts +1 -0
- package/dist/components/Chip/index.js +5 -0
- package/dist/components/Dialog/Dialog.d.ts +0 -1
- package/dist/components/Dialog/Dialog.js +33 -26
- package/dist/components/Dialog/index.d.ts +0 -1
- package/dist/components/Dialog/index.js +6 -2
- package/dist/components/Divider/Divider.d.ts +22 -0
- package/dist/components/Divider/Divider.js +19 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Divider/index.js +5 -0
- package/dist/components/Icon/Icon.d.ts +26 -9
- package/dist/components/Icon/Icon.js +16 -6
- package/dist/components/Icon/index.d.ts +0 -1
- package/dist/components/Icon/index.js +5 -2
- package/dist/components/Input/Input.d.ts +62 -0
- package/dist/components/Input/Input.js +141 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/index.js +5 -0
- package/dist/components/List/List.d.ts +58 -0
- package/dist/components/List/List.js +116 -0
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/List/index.js +8 -0
- package/dist/components/Popover/Popover.d.ts +34 -0
- package/dist/components/Popover/Popover.js +62 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Popover/index.js +5 -0
- package/dist/components/Radio/Radio.d.ts +52 -0
- package/dist/components/Radio/Radio.js +127 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Radio/index.js +6 -0
- package/dist/components/Select/Select.d.ts +0 -1
- package/dist/components/Select/Select.js +114 -96
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Select/index.js +10 -2
- package/dist/components/Skeleton/Skeleton.d.ts +33 -0
- package/dist/components/Skeleton/Skeleton.js +66 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Skeleton/index.js +5 -0
- package/dist/components/Toast/Toast.d.ts +35 -0
- package/dist/components/Toast/Toast.js +79 -0
- package/dist/components/Toast/index.d.ts +1 -0
- package/dist/components/Toast/index.js +5 -0
- package/dist/components/Toggle/Toggle.d.ts +31 -0
- package/dist/components/Toggle/Toggle.js +91 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/Toggle/index.js +5 -0
- package/dist/components/Tooltip/Tooltip.d.ts +34 -0
- package/dist/components/Tooltip/Tooltip.js +67 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.js +5 -0
- package/dist/index.d.ts +17 -3
- package/dist/index.js +81 -7
- package/dist/theme/ThemeContext.d.ts +24 -8
- package/dist/theme/ThemeContext.js +41 -22
- package/dist/theme/index.d.ts +1 -2
- package/dist/theme/index.js +8 -3
- package/dist/theme/themes.d.ts +0 -1
- package/dist/theme/themes.js +214 -2
- package/dist/theme/types.d.ts +183 -1
- package/dist/theme/types.js +2 -2
- package/dist/tokens/colors.d.ts +294 -26
- package/dist/tokens/colors.js +324 -99
- package/dist/tokens/index.d.ts +1 -2
- package/dist/tokens/index.js +29 -3
- package/dist/tokens/typography.d.ts +0 -1
- package/dist/tokens/typography.js +13 -11
- package/package.json +13 -2
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/Button/Button.js.map +0 -1
- package/dist/components/Button/index.d.ts.map +0 -1
- package/dist/components/Button/index.js.map +0 -1
- package/dist/components/Dialog/Dialog.d.ts.map +0 -1
- package/dist/components/Dialog/Dialog.js.map +0 -1
- package/dist/components/Dialog/index.d.ts.map +0 -1
- package/dist/components/Dialog/index.js.map +0 -1
- package/dist/components/Icon/Icon.d.ts.map +0 -1
- package/dist/components/Icon/Icon.js.map +0 -1
- package/dist/components/Icon/index.d.ts.map +0 -1
- package/dist/components/Icon/index.js.map +0 -1
- package/dist/components/Select/Select.d.ts.map +0 -1
- package/dist/components/Select/Select.js.map +0 -1
- package/dist/components/Select/index.d.ts.map +0 -1
- package/dist/components/Select/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/theme/ThemeContext.d.ts.map +0 -1
- package/dist/theme/ThemeContext.js.map +0 -1
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/themes.d.ts.map +0 -1
- package/dist/theme/themes.js.map +0 -1
- package/dist/theme/types.d.ts.map +0 -1
- package/dist/theme/types.js.map +0 -1
- package/dist/tokens/colors.d.ts.map +0 -1
- package/dist/tokens/colors.js.map +0 -1
- package/dist/tokens/index.d.ts.map +0 -1
- package/dist/tokens/index.js.map +0 -1
- package/dist/tokens/typography.d.ts.map +0 -1
- package/dist/tokens/typography.js.map +0 -1
package/dist/tokens/colors.js
CHANGED
|
@@ -1,119 +1,344 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
|
-
* Semantic intent
|
|
3
|
+
* Semantic intent colours — derived from semantic.tokens.json
|
|
3
4
|
* Maps: intent → prominence → state → { bg, fg, border }
|
|
4
5
|
*
|
|
5
6
|
* Source tokens: intent/{intent}/{prominence}/{state}/{bg|fg|border}
|
|
6
7
|
* Primitive palette refs: blue (brand), cool-grey (neutral), red (danger)
|
|
8
|
+
*
|
|
9
|
+
* Two colour schemes are exported — `lightColors` and `darkColors` — matching
|
|
10
|
+
* the `semantic-light` / `semantic-dark` modes of the Figma semantic variable
|
|
11
|
+
* collection. The active scheme is resolved by ThemeProvider via the
|
|
12
|
+
* `colorMode` prop; components read colours from `useTheme().scheme`.
|
|
13
|
+
*
|
|
14
|
+
* The flat named exports at the bottom (intentColors, surfaceTokens, …) are
|
|
15
|
+
* the light-scheme values, kept for backwards compatibility.
|
|
7
16
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
default: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
default: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
default: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.listColors = exports.skeletonColors = exports.avatarColors = exports.toggleColors = exports.radioColors = exports.checkboxColors = exports.errorTokens = exports.tagTokens = exports.selectColors = exports.overlayTokens = exports.textTokens = exports.surfaceTokens = exports.controlTokens = exports.disabledColors = exports.intentColors = exports.colorSchemes = exports.darkColors = exports.lightColors = void 0;
|
|
19
|
+
// ---------------------------------------------------------------------------
|
|
20
|
+
// Light scheme — semantic-light mode
|
|
21
|
+
// ---------------------------------------------------------------------------
|
|
22
|
+
exports.lightColors = {
|
|
23
|
+
intents: {
|
|
24
|
+
neutral: {
|
|
25
|
+
default: {
|
|
26
|
+
default: { bg: '#FFFFFF', fg: '#374151', border: '#D1D5DB' },
|
|
27
|
+
hover: { bg: '#F9FAFB', fg: '#1F2937', border: '#9CA3AF' },
|
|
28
|
+
active: { bg: '#F3F4F6', fg: '#111827', border: '#6B7280' },
|
|
29
|
+
},
|
|
30
|
+
bold: {
|
|
31
|
+
default: { bg: '#374151', fg: '#FFFFFF', border: '#374151' },
|
|
32
|
+
hover: { bg: '#1F2937', fg: '#FFFFFF', border: '#1F2937' },
|
|
33
|
+
active: { bg: '#111827', fg: '#FFFFFF', border: '#111827' },
|
|
34
|
+
},
|
|
35
|
+
subtle: {
|
|
36
|
+
default: { bg: 'transparent', fg: '#374151', border: 'transparent' },
|
|
37
|
+
hover: { bg: '#F9FAFB', fg: '#1F2937', border: 'transparent' },
|
|
38
|
+
active: { bg: '#F3F4F6', fg: '#111827', border: 'transparent' },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
brand: {
|
|
42
|
+
default: {
|
|
43
|
+
default: { bg: '#FFFFFF', fg: '#2563EB', border: '#93C5FD' },
|
|
44
|
+
hover: { bg: '#EFF6FF', fg: '#1D4ED8', border: '#60A5FA' },
|
|
45
|
+
active: { bg: '#DBEAFE', fg: '#1E40AF', border: '#3B82F6' },
|
|
46
|
+
},
|
|
47
|
+
bold: {
|
|
48
|
+
default: { bg: '#2563EB', fg: '#FFFFFF', border: '#2563EB' },
|
|
49
|
+
hover: { bg: '#1D4ED8', fg: '#FFFFFF', border: '#1D4ED8' },
|
|
50
|
+
active: { bg: '#1E40AF', fg: '#FFFFFF', border: '#1E40AF' },
|
|
51
|
+
},
|
|
52
|
+
subtle: {
|
|
53
|
+
default: { bg: 'transparent', fg: '#2563EB', border: 'transparent' },
|
|
54
|
+
hover: { bg: '#EFF6FF', fg: '#1D4ED8', border: 'transparent' },
|
|
55
|
+
active: { bg: '#DBEAFE', fg: '#1E40AF', border: 'transparent' },
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
danger: {
|
|
59
|
+
default: {
|
|
60
|
+
default: { bg: '#FFFFFF', fg: '#DC2626', border: '#FCA5A5' },
|
|
61
|
+
hover: { bg: '#FEF2F2', fg: '#B91C1C', border: '#F87171' },
|
|
62
|
+
active: { bg: '#FEE2E2', fg: '#991B1B', border: '#EF4444' },
|
|
63
|
+
},
|
|
64
|
+
bold: {
|
|
65
|
+
default: { bg: '#DC2626', fg: '#FFFFFF', border: '#DC2626' },
|
|
66
|
+
hover: { bg: '#B91C1C', fg: '#FFFFFF', border: '#B91C1C' },
|
|
67
|
+
active: { bg: '#991B1B', fg: '#FFFFFF', border: '#991B1B' },
|
|
68
|
+
},
|
|
69
|
+
subtle: {
|
|
70
|
+
default: { bg: 'transparent', fg: '#DC2626', border: 'transparent' },
|
|
71
|
+
hover: { bg: '#FEF2F2', fg: '#B91C1C', border: 'transparent' },
|
|
72
|
+
active: { bg: '#FEE2E2', fg: '#991B1B', border: 'transparent' },
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
disabled: { bg: '#F3F4F6', fg: '#9CA3AF', border: '#E5E7EB' },
|
|
77
|
+
focusRing: { color: '#3B82F6' }, // blue/500
|
|
78
|
+
surface: {
|
|
79
|
+
base: '#F9FAFB', // cool-grey/50
|
|
80
|
+
subtle: '#F3F4F6', // cool-grey/100
|
|
81
|
+
overlay: { bg: '#FFFFFF', border: '#E5E7EB', borderRadius: 8 },
|
|
82
|
+
},
|
|
83
|
+
text: {
|
|
84
|
+
description: '#6B7280',
|
|
85
|
+
placeholder: '#9CA3AF',
|
|
86
|
+
},
|
|
87
|
+
overlay: { scrimOpacity: 0.5 },
|
|
88
|
+
select: {
|
|
89
|
+
option: {
|
|
90
|
+
default: { bg: 'transparent', fg: '#374151' },
|
|
91
|
+
hover: { bg: '#F9FAFB', fg: '#111827' },
|
|
92
|
+
selected: { bg: '#EFF6FF', fg: '#1D4ED8' },
|
|
93
|
+
selectedHover: { bg: '#DBEAFE', fg: '#1D4ED8' },
|
|
94
|
+
disabled: { bg: 'transparent', fg: '#9CA3AF' },
|
|
95
|
+
},
|
|
96
|
+
separator: '#E5E7EB',
|
|
97
|
+
},
|
|
98
|
+
tag: {
|
|
99
|
+
bg: '#F3F4F6',
|
|
100
|
+
fg: '#374151',
|
|
101
|
+
borderRadius: 4,
|
|
102
|
+
paddingX: 6,
|
|
103
|
+
paddingY: 1,
|
|
104
|
+
gap: 4,
|
|
105
|
+
closeSize: 12,
|
|
106
|
+
},
|
|
107
|
+
error: { border: '#FCA5A5', fg: '#DC2626' },
|
|
108
|
+
checkbox: {
|
|
109
|
+
box: {
|
|
110
|
+
uncheckedDefault: { bg: '#FFFFFF', border: '#D1D5DB' },
|
|
111
|
+
uncheckedHover: { bg: '#FFFFFF', border: '#9CA3AF' },
|
|
112
|
+
checked: { bg: '#2563EB', border: 'transparent' },
|
|
113
|
+
disabled: { bg: '#F3F4F6', border: '#E5E7EB' },
|
|
58
114
|
},
|
|
115
|
+
icon: { default: '#FFFFFF', disabled: '#9CA3AF' },
|
|
116
|
+
label: { default: '#374151', disabled: '#6B7280' },
|
|
117
|
+
},
|
|
118
|
+
radio: {
|
|
119
|
+
indicator: {
|
|
120
|
+
uncheckedDefault: { bg: '#FFFFFF', border: '#D1D5DB' },
|
|
121
|
+
uncheckedHover: { bg: '#FFFFFF', border: '#9CA3AF' },
|
|
122
|
+
checked: { bg: '#2563EB', border: 'transparent' },
|
|
123
|
+
checkedHover: { bg: '#1D4ED8', border: 'transparent' },
|
|
124
|
+
disabled: { bg: '#F3F4F6', border: '#E5E7EB' },
|
|
125
|
+
},
|
|
126
|
+
dot: { default: '#FFFFFF', disabled: '#9CA3AF' },
|
|
127
|
+
label: { default: '#374151', disabled: '#9CA3AF' },
|
|
128
|
+
},
|
|
129
|
+
toggle: {
|
|
130
|
+
track: {
|
|
131
|
+
off: '#E5E7EB', // control/toggle/off/bg
|
|
132
|
+
offHover: '#D1D5DB', // control/toggle/off/hover/bg
|
|
133
|
+
on: '#2563EB', // intent/brand/bold/default/bg
|
|
134
|
+
onHover: '#1D4ED8', // intent/brand/bold/hover/bg
|
|
135
|
+
disabledOff: '#F3F4F6', // intent/disabled/bg
|
|
136
|
+
disabledOn: '#9CA3AF', // intent/disabled/fg
|
|
137
|
+
},
|
|
138
|
+
thumb: '#FFFFFF',
|
|
139
|
+
label: { default: '#374151', disabled: '#9CA3AF' },
|
|
140
|
+
},
|
|
141
|
+
avatar: { bg: '#F3F4F6', fg: '#374151' },
|
|
142
|
+
skeleton: { bg: '#F3F4F6', highlight: '#E5E7EB' },
|
|
143
|
+
list: {
|
|
144
|
+
item: {
|
|
145
|
+
default: { bg: 'transparent', fg: '#374151' },
|
|
146
|
+
hover: { bg: '#F9FAFB', fg: '#111827' },
|
|
147
|
+
selected: { bg: '#EFF6FF', fg: '#1D4ED8' },
|
|
148
|
+
selectedHover: { bg: '#DBEAFE', fg: '#1D4ED8' },
|
|
149
|
+
disabled: { bg: '#F3F4F6', fg: '#9CA3AF' },
|
|
150
|
+
},
|
|
151
|
+
subheaderFg: '#6B7280',
|
|
152
|
+
descriptionFg: '#6B7280',
|
|
153
|
+
separator: '#E5E7EB',
|
|
154
|
+
containerBg: '#FFFFFF',
|
|
59
155
|
},
|
|
60
156
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
157
|
+
// ---------------------------------------------------------------------------
|
|
158
|
+
// Dark scheme — semantic-dark mode
|
|
159
|
+
// ---------------------------------------------------------------------------
|
|
160
|
+
exports.darkColors = {
|
|
161
|
+
intents: {
|
|
162
|
+
neutral: {
|
|
163
|
+
default: {
|
|
164
|
+
default: { bg: '#111827', fg: '#E5E7EB', border: '#4B5563' },
|
|
165
|
+
hover: { bg: '#1F2937', fg: '#F3F4F6', border: '#6B7280' },
|
|
166
|
+
active: { bg: '#374151', fg: '#F9FAFB', border: '#9CA3AF' },
|
|
167
|
+
},
|
|
168
|
+
bold: {
|
|
169
|
+
default: { bg: '#E5E7EB', fg: '#111827', border: '#E5E7EB' },
|
|
170
|
+
hover: { bg: '#F3F4F6', fg: '#111827', border: '#F3F4F6' },
|
|
171
|
+
active: { bg: '#F9FAFB', fg: '#111827', border: '#F9FAFB' },
|
|
172
|
+
},
|
|
173
|
+
subtle: {
|
|
174
|
+
default: { bg: 'transparent', fg: '#E5E7EB', border: 'transparent' },
|
|
175
|
+
hover: { bg: '#1F2937', fg: '#F3F4F6', border: 'transparent' },
|
|
176
|
+
active: { bg: '#374151', fg: '#F9FAFB', border: 'transparent' },
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
brand: {
|
|
180
|
+
default: {
|
|
181
|
+
default: { bg: '#111827', fg: '#60A5FA', border: '#2563EB' },
|
|
182
|
+
hover: { bg: '#1E3A8A', fg: '#93C5FD', border: '#3B82F6' },
|
|
183
|
+
active: { bg: '#1E40AF', fg: '#BFDBFE', border: '#60A5FA' },
|
|
184
|
+
},
|
|
185
|
+
// Bold (filled) intents keep their light values — white-on-600 stays
|
|
186
|
+
// AA-accessible on dark surfaces and preserves brand recognition.
|
|
187
|
+
bold: {
|
|
188
|
+
default: { bg: '#2563EB', fg: '#FFFFFF', border: '#2563EB' },
|
|
189
|
+
hover: { bg: '#1D4ED8', fg: '#FFFFFF', border: '#1D4ED8' },
|
|
190
|
+
active: { bg: '#1E40AF', fg: '#FFFFFF', border: '#1E40AF' },
|
|
191
|
+
},
|
|
192
|
+
subtle: {
|
|
193
|
+
default: { bg: 'transparent', fg: '#60A5FA', border: 'transparent' },
|
|
194
|
+
hover: { bg: '#1E3A8A', fg: '#93C5FD', border: 'transparent' },
|
|
195
|
+
active: { bg: '#1E40AF', fg: '#BFDBFE', border: 'transparent' },
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
danger: {
|
|
199
|
+
default: {
|
|
200
|
+
default: { bg: '#111827', fg: '#F87171', border: '#DC2626' },
|
|
201
|
+
hover: { bg: '#7F1D1D', fg: '#FCA5A5', border: '#EF4444' },
|
|
202
|
+
active: { bg: '#991B1B', fg: '#FECACA', border: '#F87171' },
|
|
203
|
+
},
|
|
204
|
+
bold: {
|
|
205
|
+
default: { bg: '#DC2626', fg: '#FFFFFF', border: '#DC2626' },
|
|
206
|
+
hover: { bg: '#B91C1C', fg: '#FFFFFF', border: '#B91C1C' },
|
|
207
|
+
active: { bg: '#991B1B', fg: '#FFFFFF', border: '#991B1B' },
|
|
208
|
+
},
|
|
209
|
+
subtle: {
|
|
210
|
+
default: { bg: 'transparent', fg: '#F87171', border: 'transparent' },
|
|
211
|
+
hover: { bg: '#7F1D1D', fg: '#FCA5A5', border: 'transparent' },
|
|
212
|
+
active: { bg: '#991B1B', fg: '#FECACA', border: 'transparent' },
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
disabled: { bg: '#1F2937', fg: '#4B5563', border: '#374151' },
|
|
217
|
+
focusRing: { color: '#60A5FA' }, // blue/400 — lifted one step for dark surfaces
|
|
218
|
+
surface: {
|
|
219
|
+
base: '#111827', // cool-grey/900
|
|
220
|
+
subtle: '#1F2937', // cool-grey/800
|
|
221
|
+
overlay: { bg: '#1F2937', border: '#374151', borderRadius: 8 },
|
|
222
|
+
},
|
|
223
|
+
text: {
|
|
224
|
+
description: '#9CA3AF',
|
|
225
|
+
placeholder: '#6B7280',
|
|
226
|
+
},
|
|
227
|
+
overlay: { scrimOpacity: 0.5 },
|
|
228
|
+
select: {
|
|
229
|
+
option: {
|
|
230
|
+
default: { bg: 'transparent', fg: '#E5E7EB' },
|
|
231
|
+
hover: { bg: '#374151', fg: '#F9FAFB' },
|
|
232
|
+
selected: { bg: '#1E3A8A', fg: '#93C5FD' },
|
|
233
|
+
selectedHover: { bg: '#1E40AF', fg: '#93C5FD' },
|
|
234
|
+
disabled: { bg: 'transparent', fg: '#6B7280' },
|
|
235
|
+
},
|
|
236
|
+
separator: '#374151',
|
|
237
|
+
},
|
|
238
|
+
tag: {
|
|
239
|
+
bg: '#374151',
|
|
240
|
+
fg: '#E5E7EB',
|
|
241
|
+
borderRadius: 4,
|
|
242
|
+
paddingX: 6,
|
|
243
|
+
paddingY: 1,
|
|
244
|
+
gap: 4,
|
|
245
|
+
closeSize: 12,
|
|
246
|
+
},
|
|
247
|
+
error: { border: '#DC2626', fg: '#F87171' },
|
|
248
|
+
checkbox: {
|
|
249
|
+
box: {
|
|
250
|
+
uncheckedDefault: { bg: '#111827', border: '#4B5563' },
|
|
251
|
+
uncheckedHover: { bg: '#111827', border: '#6B7280' },
|
|
252
|
+
checked: { bg: '#2563EB', border: 'transparent' },
|
|
253
|
+
disabled: { bg: '#1F2937', border: '#374151' },
|
|
254
|
+
},
|
|
255
|
+
icon: { default: '#FFFFFF', disabled: '#6B7280' },
|
|
256
|
+
label: { default: '#E5E7EB', disabled: '#6B7280' },
|
|
257
|
+
},
|
|
258
|
+
radio: {
|
|
259
|
+
indicator: {
|
|
260
|
+
uncheckedDefault: { bg: '#111827', border: '#4B5563' },
|
|
261
|
+
uncheckedHover: { bg: '#111827', border: '#6B7280' },
|
|
262
|
+
checked: { bg: '#2563EB', border: 'transparent' },
|
|
263
|
+
checkedHover: { bg: '#1D4ED8', border: 'transparent' },
|
|
264
|
+
disabled: { bg: '#1F2937', border: '#374151' },
|
|
265
|
+
},
|
|
266
|
+
dot: { default: '#FFFFFF', disabled: '#6B7280' },
|
|
267
|
+
label: { default: '#E5E7EB', disabled: '#6B7280' },
|
|
268
|
+
},
|
|
269
|
+
toggle: {
|
|
270
|
+
track: {
|
|
271
|
+
off: '#374151',
|
|
272
|
+
offHover: '#4B5563',
|
|
273
|
+
on: '#2563EB',
|
|
274
|
+
onHover: '#1D4ED8',
|
|
275
|
+
disabledOff: '#1F2937',
|
|
276
|
+
disabledOn: '#4B5563',
|
|
277
|
+
},
|
|
278
|
+
thumb: '#FFFFFF',
|
|
279
|
+
label: { default: '#E5E7EB', disabled: '#6B7280' },
|
|
280
|
+
},
|
|
281
|
+
avatar: { bg: '#374151', fg: '#E5E7EB' },
|
|
282
|
+
skeleton: { bg: '#1F2937', highlight: '#374151' },
|
|
283
|
+
list: {
|
|
284
|
+
item: {
|
|
285
|
+
default: { bg: 'transparent', fg: '#E5E7EB' },
|
|
286
|
+
hover: { bg: '#374151', fg: '#F9FAFB' },
|
|
287
|
+
selected: { bg: '#1E3A8A', fg: '#93C5FD' },
|
|
288
|
+
selectedHover: { bg: '#1E40AF', fg: '#93C5FD' },
|
|
289
|
+
disabled: { bg: '#1F2937', fg: '#6B7280' },
|
|
290
|
+
},
|
|
291
|
+
subheaderFg: '#9CA3AF',
|
|
292
|
+
descriptionFg: '#9CA3AF',
|
|
293
|
+
separator: '#374151',
|
|
294
|
+
containerBg: '#1F2937',
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
/** Scheme lookup by colour mode */
|
|
298
|
+
exports.colorSchemes = {
|
|
299
|
+
light: exports.lightColors,
|
|
300
|
+
dark: exports.darkColors,
|
|
66
301
|
};
|
|
302
|
+
// ---------------------------------------------------------------------------
|
|
303
|
+
// Legacy flat exports — light-scheme values, kept for backwards compatibility.
|
|
304
|
+
// Prefer reading from useTheme().scheme so dark mode is respected.
|
|
305
|
+
// ---------------------------------------------------------------------------
|
|
306
|
+
exports.intentColors = exports.lightColors.intents;
|
|
307
|
+
/** Disabled state — shared across all intents */
|
|
308
|
+
exports.disabledColors = exports.lightColors.disabled;
|
|
67
309
|
/** Semantic control constants */
|
|
68
|
-
|
|
310
|
+
exports.controlTokens = {
|
|
69
311
|
borderWidth: 1,
|
|
312
|
+
/** Focus ring width — control/focus-ring-width */
|
|
313
|
+
focusRingWidth: 2,
|
|
314
|
+
/** Focus ring offset — control/focus-ring-offset */
|
|
315
|
+
focusRingOffset: 2,
|
|
316
|
+
/** Focus ring colour — control/focus-ring-colour (blue/500). Mode-aware value: useTheme().scheme.focusRing.color */
|
|
317
|
+
focusRingColor: exports.lightColors.focusRing.color,
|
|
70
318
|
};
|
|
71
319
|
/** Surface tokens — backgrounds and overlay styling */
|
|
72
|
-
|
|
73
|
-
/** Page/screen background — cool-grey/50 */
|
|
74
|
-
base: '#F9FAFB',
|
|
75
|
-
/** Subtle background for sections/cards — cool-grey/100 */
|
|
76
|
-
subtle: '#F3F4F6',
|
|
77
|
-
/** Overlay surfaces (Dialog, Popover, Tooltip, Select, etc.) */
|
|
78
|
-
overlay: {
|
|
79
|
-
bg: '#FFFFFF',
|
|
80
|
-
border: '#E5E7EB',
|
|
81
|
-
borderRadius: 8,
|
|
82
|
-
},
|
|
83
|
-
};
|
|
320
|
+
exports.surfaceTokens = exports.lightColors.surface;
|
|
84
321
|
/** Semantic text tokens */
|
|
85
|
-
|
|
86
|
-
description: '#6B7280',
|
|
87
|
-
};
|
|
322
|
+
exports.textTokens = exports.lightColors.text;
|
|
88
323
|
/** Overlay/scrim opacity */
|
|
89
|
-
|
|
90
|
-
scrimOpacity:
|
|
324
|
+
exports.overlayTokens = {
|
|
325
|
+
scrimOpacity: exports.lightColors.overlay.scrimOpacity,
|
|
91
326
|
};
|
|
92
327
|
/** Option state colours — used by SelectOption (neutral intent) */
|
|
93
|
-
|
|
94
|
-
option: {
|
|
95
|
-
default: { bg: 'transparent', fg: '#374151' },
|
|
96
|
-
hover: { bg: '#F9FAFB', fg: '#111827' },
|
|
97
|
-
selected: { bg: '#EFF6FF', fg: '#1D4ED8' },
|
|
98
|
-
selectedHover: { bg: '#DBEAFE', fg: '#1D4ED8' },
|
|
99
|
-
disabled: { bg: 'transparent', fg: '#9CA3AF' },
|
|
100
|
-
},
|
|
101
|
-
/** Separator line colour */
|
|
102
|
-
separator: '#E5E7EB',
|
|
103
|
-
};
|
|
328
|
+
exports.selectColors = exports.lightColors.select;
|
|
104
329
|
/** Tag tokens — multi-select pill styling (constant across densities) */
|
|
105
|
-
|
|
106
|
-
bg: '#F3F4F6',
|
|
107
|
-
fg: '#374151',
|
|
108
|
-
borderRadius: 4,
|
|
109
|
-
paddingX: 6,
|
|
110
|
-
paddingY: 1,
|
|
111
|
-
gap: 4,
|
|
112
|
-
closeSize: 12,
|
|
113
|
-
};
|
|
330
|
+
exports.tagTokens = exports.lightColors.tag;
|
|
114
331
|
/** Error/danger colour for form field borders and helper text */
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
332
|
+
exports.errorTokens = exports.lightColors.error;
|
|
333
|
+
/** Checkbox colours — indicator box, icon, and label */
|
|
334
|
+
exports.checkboxColors = exports.lightColors.checkbox;
|
|
335
|
+
/** Radio colours — indicator ring/fill, centre dot, and label */
|
|
336
|
+
exports.radioColors = exports.lightColors.radio;
|
|
337
|
+
/** Toggle colours — track (on/off/disabled) + thumb + label */
|
|
338
|
+
exports.toggleColors = exports.lightColors.toggle;
|
|
339
|
+
/** Avatar colours — initials/icon fallback surface + foreground */
|
|
340
|
+
exports.avatarColors = exports.lightColors.avatar;
|
|
341
|
+
/** Skeleton colours — placeholder surface for loading states */
|
|
342
|
+
exports.skeletonColors = exports.lightColors.skeleton;
|
|
343
|
+
/** List colours — used by List / ListItem / ListSubheader */
|
|
344
|
+
exports.listColors = exports.lightColors.list;
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { intentColors, disabledColors, controlTokens, surfaceTokens, textTokens, overlayTokens, selectColors, tagTokens, errorTokens, type IntentName, type ProminenceName, type StateName, } from './colors';
|
|
1
|
+
export { lightColors, darkColors, colorSchemes, intentColors, disabledColors, controlTokens, surfaceTokens, textTokens, overlayTokens, selectColors, tagTokens, errorTokens, listColors, checkboxColors, toggleColors, radioColors, avatarColors, skeletonColors, type IntentName, type ProminenceName, type StateName, type ColorMode, type ColorScheme, } from './colors';
|
|
2
2
|
export { fontFamily, fontWeight, label, title, body, caption, type LabelSize } from './typography';
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/tokens/index.js
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.caption = exports.body = exports.title = exports.label = exports.fontWeight = exports.fontFamily = exports.skeletonColors = exports.avatarColors = exports.radioColors = exports.toggleColors = exports.checkboxColors = exports.listColors = exports.errorTokens = exports.tagTokens = exports.selectColors = exports.overlayTokens = exports.textTokens = exports.surfaceTokens = exports.controlTokens = exports.disabledColors = exports.intentColors = exports.colorSchemes = exports.darkColors = exports.lightColors = void 0;
|
|
4
|
+
var colors_1 = require("./colors");
|
|
5
|
+
Object.defineProperty(exports, "lightColors", { enumerable: true, get: function () { return colors_1.lightColors; } });
|
|
6
|
+
Object.defineProperty(exports, "darkColors", { enumerable: true, get: function () { return colors_1.darkColors; } });
|
|
7
|
+
Object.defineProperty(exports, "colorSchemes", { enumerable: true, get: function () { return colors_1.colorSchemes; } });
|
|
8
|
+
Object.defineProperty(exports, "intentColors", { enumerable: true, get: function () { return colors_1.intentColors; } });
|
|
9
|
+
Object.defineProperty(exports, "disabledColors", { enumerable: true, get: function () { return colors_1.disabledColors; } });
|
|
10
|
+
Object.defineProperty(exports, "controlTokens", { enumerable: true, get: function () { return colors_1.controlTokens; } });
|
|
11
|
+
Object.defineProperty(exports, "surfaceTokens", { enumerable: true, get: function () { return colors_1.surfaceTokens; } });
|
|
12
|
+
Object.defineProperty(exports, "textTokens", { enumerable: true, get: function () { return colors_1.textTokens; } });
|
|
13
|
+
Object.defineProperty(exports, "overlayTokens", { enumerable: true, get: function () { return colors_1.overlayTokens; } });
|
|
14
|
+
Object.defineProperty(exports, "selectColors", { enumerable: true, get: function () { return colors_1.selectColors; } });
|
|
15
|
+
Object.defineProperty(exports, "tagTokens", { enumerable: true, get: function () { return colors_1.tagTokens; } });
|
|
16
|
+
Object.defineProperty(exports, "errorTokens", { enumerable: true, get: function () { return colors_1.errorTokens; } });
|
|
17
|
+
Object.defineProperty(exports, "listColors", { enumerable: true, get: function () { return colors_1.listColors; } });
|
|
18
|
+
Object.defineProperty(exports, "checkboxColors", { enumerable: true, get: function () { return colors_1.checkboxColors; } });
|
|
19
|
+
Object.defineProperty(exports, "toggleColors", { enumerable: true, get: function () { return colors_1.toggleColors; } });
|
|
20
|
+
Object.defineProperty(exports, "radioColors", { enumerable: true, get: function () { return colors_1.radioColors; } });
|
|
21
|
+
Object.defineProperty(exports, "avatarColors", { enumerable: true, get: function () { return colors_1.avatarColors; } });
|
|
22
|
+
Object.defineProperty(exports, "skeletonColors", { enumerable: true, get: function () { return colors_1.skeletonColors; } });
|
|
23
|
+
var typography_1 = require("./typography");
|
|
24
|
+
Object.defineProperty(exports, "fontFamily", { enumerable: true, get: function () { return typography_1.fontFamily; } });
|
|
25
|
+
Object.defineProperty(exports, "fontWeight", { enumerable: true, get: function () { return typography_1.fontWeight; } });
|
|
26
|
+
Object.defineProperty(exports, "label", { enumerable: true, get: function () { return typography_1.label; } });
|
|
27
|
+
Object.defineProperty(exports, "title", { enumerable: true, get: function () { return typography_1.title; } });
|
|
28
|
+
Object.defineProperty(exports, "body", { enumerable: true, get: function () { return typography_1.body; } });
|
|
29
|
+
Object.defineProperty(exports, "caption", { enumerable: true, get: function () { return typography_1.caption; } });
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Typography tokens — derived from primitive.tokens.json + semantic.tokens.json
|
|
3
4
|
*
|
|
@@ -6,37 +7,38 @@
|
|
|
6
7
|
* font-weight/{light|regular|medium|semibold|bold}
|
|
7
8
|
* label/{sm|md|lg}, title/{sm|md|lg}, body/{sm|md|lg} → fontSize, lineHeight, letterSpacing
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.caption = exports.body = exports.title = exports.label = exports.fontWeight = exports.fontFamily = void 0;
|
|
12
|
+
const react_native_1 = require("react-native");
|
|
13
|
+
exports.fontFamily = {
|
|
14
|
+
sans: react_native_1.Platform.select({ web: 'Inter, system-ui, sans-serif', default: 'Inter' }),
|
|
15
|
+
mono: react_native_1.Platform.select({
|
|
13
16
|
web: '"JetBrains Mono", monospace',
|
|
14
17
|
default: 'JetBrains Mono',
|
|
15
18
|
}),
|
|
16
|
-
serif: Platform.select({ web: '"Noto Serif", serif', default: 'Noto Serif' }),
|
|
19
|
+
serif: react_native_1.Platform.select({ web: '"Noto Serif", serif', default: 'Noto Serif' }),
|
|
17
20
|
};
|
|
18
|
-
|
|
21
|
+
exports.fontWeight = {
|
|
19
22
|
light: '300',
|
|
20
23
|
regular: '400',
|
|
21
24
|
medium: '500',
|
|
22
25
|
semibold: '600',
|
|
23
26
|
bold: '700',
|
|
24
27
|
};
|
|
25
|
-
|
|
28
|
+
exports.label = {
|
|
26
29
|
sm: { fontSize: 12, lineHeight: 16, letterSpacing: 0.25 },
|
|
27
30
|
md: { fontSize: 14, lineHeight: 20, letterSpacing: 0 },
|
|
28
31
|
lg: { fontSize: 16, lineHeight: 24, letterSpacing: 0 },
|
|
29
32
|
};
|
|
30
|
-
|
|
33
|
+
exports.title = {
|
|
31
34
|
sm: { fontSize: 16, lineHeight: 24, letterSpacing: 0 },
|
|
32
35
|
md: { fontSize: 18, lineHeight: 24, letterSpacing: 0 },
|
|
33
36
|
lg: { fontSize: 20, lineHeight: 28, letterSpacing: 0 },
|
|
34
37
|
};
|
|
35
|
-
|
|
38
|
+
exports.body = {
|
|
36
39
|
sm: { fontSize: 12, lineHeight: 18, letterSpacing: 0.25 },
|
|
37
40
|
md: { fontSize: 14, lineHeight: 20, letterSpacing: 0 },
|
|
38
41
|
lg: { fontSize: 16, lineHeight: 24, letterSpacing: 0 },
|
|
39
42
|
};
|
|
40
43
|
/** Caption scale — helper text, group labels, tags */
|
|
41
|
-
|
|
42
|
-
//# sourceMappingURL=typography.js.map
|
|
44
|
+
exports.caption = { fontSize: 11, lineHeight: 16, letterSpacing: 0.5 };
|
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@castui/cast-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "A cross-platform design system for React Native (iOS, Android, Web) with multi-theme support.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./package.json": "./package.json"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": false,
|
|
7
15
|
"files": [
|
|
8
16
|
"dist/",
|
|
9
17
|
"README.md",
|
|
@@ -14,7 +22,7 @@
|
|
|
14
22
|
"build-storybook": "STORYBOOK_DISABLE_TELEMETRY=1 storybook build",
|
|
15
23
|
"build": "tsc --project tsconfig.build.json",
|
|
16
24
|
"prepublishOnly": "npm run build",
|
|
17
|
-
"test": "
|
|
25
|
+
"test": "npm run build && node scripts/smoke-test.js",
|
|
18
26
|
"zh:track-package": "zh-adoption track-package"
|
|
19
27
|
},
|
|
20
28
|
"repository": {
|
|
@@ -33,6 +41,9 @@
|
|
|
33
41
|
"author": "Connagh <connagh@users.noreply.github.com>",
|
|
34
42
|
"license": "MIT",
|
|
35
43
|
"type": "commonjs",
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18"
|
|
46
|
+
},
|
|
36
47
|
"bugs": {
|
|
37
48
|
"url": "https://github.com/Connagh/cast-ui/issues"
|
|
38
49
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAgC,MAAM,OAAO,CAAC;AACrD,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC3B,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAO/D,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG;IACxB,6BAA6B;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,kDAAkD;IAClD,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,4EAA4E;IAC5E,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,kEAAkE;IAClE,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACvC,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACxC,qBAAqB;IACrB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC7C,mEAAmE;IACnE,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAoBF,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,MAAkB,EAClB,UAAsB,EAC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sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAqC,MAAM,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAmBtB,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG;IACzB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,8EAA8E;IAC9E,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iEAAiE;IACjE,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,uEAAuE;IACvE,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B,mCAAmC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAA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,OAAO,EAAE,IAAI,EACb,WAAW,QACX,aAAa,EAAC,MAAM,EACpB,cAAc,EAAE,OAAO,YAEvB,KAAC,SAAS,IACR,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAC,QAAQ,EAC1B,kBAAkB,EAAC,cAAc,EACjC,KAAK,EAAE;gBACL,IAAI,EAAE,CAAC;gBACP,eAAe,EAAE,iBAAiB,aAAa,CAAC,YAAY,GAAG;gBAC/D,cAAc,EAAE,QAAQ;gBACxB,UAAU,EAAE,QAAQ;aACrB,YAED,KAAC,SAAS,IACR,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,EACnC,iBAAiB,EAAC,MAAM,EACxB,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,YAE1B,KAAC,aAAa,OAAK,YAAY,GAAI,GACzB,GACF,GACN,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,aAAa,EACb,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,UAAU,GAChB,MAAM,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,aAAa,GAKd,MAAM,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAkB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9E,MAAM,MAAM,SAAS,GAAG;IACtB,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAOF,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,IAAS,EAAE,KAAiB,EAAE,KAAK,EAAE,EAAE,SAAS,2CA6B5E"}
|