@idealyst/components 1.0.24 → 1.0.26

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.
Files changed (110) hide show
  1. package/README.md +567 -567
  2. package/package.json +2 -2
  3. package/plugin/web.js +319 -185
  4. package/src/Avatar/Avatar.native.tsx +43 -43
  5. package/src/Avatar/Avatar.styles.tsx +66 -66
  6. package/src/Avatar/Avatar.web.tsx +50 -50
  7. package/src/Avatar/index.native.ts +1 -1
  8. package/src/Avatar/index.ts +1 -1
  9. package/src/Avatar/index.web.ts +1 -1
  10. package/src/Avatar/types.ts +42 -42
  11. package/src/Badge/Badge.native.tsx +42 -42
  12. package/src/Badge/Badge.styles.tsx +153 -153
  13. package/src/Badge/Badge.web.tsx +44 -44
  14. package/src/Badge/index.native.ts +1 -1
  15. package/src/Badge/index.ts +1 -1
  16. package/src/Badge/index.web.ts +1 -1
  17. package/src/Badge/types.ts +33 -33
  18. package/src/Button/Button.native.tsx +38 -38
  19. package/src/Button/Button.styles.tsx +214 -214
  20. package/src/Button/Button.types.ts +11 -11
  21. package/src/Button/Button.web.tsx +55 -55
  22. package/src/Button/index.native.ts +2 -2
  23. package/src/Button/index.ts +4 -4
  24. package/src/Button/index.web.ts +2 -2
  25. package/src/Button/types.ts +48 -48
  26. package/src/Card/Card.native.tsx +51 -51
  27. package/src/Card/Card.styles.tsx +239 -239
  28. package/src/Card/Card.web.tsx +61 -61
  29. package/src/Card/index.native.ts +2 -2
  30. package/src/Card/index.ts +4 -4
  31. package/src/Card/index.web.ts +2 -2
  32. package/src/Card/types.ts +58 -58
  33. package/src/Checkbox/Checkbox.native.tsx +98 -98
  34. package/src/Checkbox/Checkbox.styles.tsx +291 -291
  35. package/src/Checkbox/Checkbox.web.tsx +130 -130
  36. package/src/Checkbox/index.native.ts +2 -2
  37. package/src/Checkbox/index.ts +4 -4
  38. package/src/Checkbox/index.web.ts +2 -2
  39. package/src/Checkbox/types.ts +78 -78
  40. package/src/Divider/Divider.native.tsx +144 -144
  41. package/src/Divider/Divider.styles.tsx +601 -601
  42. package/src/Divider/Divider.web.tsx +72 -72
  43. package/src/Divider/index.native.ts +2 -2
  44. package/src/Divider/index.ts +4 -4
  45. package/src/Divider/index.web.ts +2 -2
  46. package/src/Divider/types.ts +53 -53
  47. package/src/Icon/Icon.native.tsx +38 -38
  48. package/src/Icon/Icon.styles.tsx +49 -49
  49. package/src/Icon/Icon.web.tsx +46 -46
  50. package/src/Icon/icon-types.ts +7452 -7452
  51. package/src/Icon/index.native.ts +2 -2
  52. package/src/Icon/index.ts +4 -4
  53. package/src/Icon/index.web.ts +2 -2
  54. package/src/Icon/types.ts +35 -35
  55. package/src/Input/Input.native.tsx +74 -74
  56. package/src/Input/Input.styles.tsx +176 -176
  57. package/src/Input/Input.web.tsx +70 -70
  58. package/src/Input/index.native.ts +2 -2
  59. package/src/Input/index.ts +4 -4
  60. package/src/Input/index.web.ts +2 -2
  61. package/src/Input/types.ts +68 -68
  62. package/src/Screen/Screen.native.tsx +40 -40
  63. package/src/Screen/Screen.styles.tsx +59 -59
  64. package/src/Screen/Screen.web.tsx +32 -32
  65. package/src/Screen/index.native.ts +1 -1
  66. package/src/Screen/index.ts +1 -1
  67. package/src/Screen/index.web.ts +1 -1
  68. package/src/Screen/types.ts +37 -37
  69. package/src/Text/Text.native.tsx +35 -35
  70. package/src/Text/Text.styles.tsx +66 -66
  71. package/src/Text/Text.web.tsx +40 -40
  72. package/src/Text/index.native.ts +2 -2
  73. package/src/Text/index.ts +4 -4
  74. package/src/Text/index.web.ts +2 -2
  75. package/src/Text/types.ts +38 -38
  76. package/src/View/View.native.tsx +55 -55
  77. package/src/View/View.styles.tsx +102 -102
  78. package/src/View/View.web.tsx +59 -59
  79. package/src/View/index.native.ts +2 -2
  80. package/src/View/index.ts +4 -4
  81. package/src/View/index.web.ts +2 -2
  82. package/src/View/types.ts +72 -72
  83. package/src/examples/AllExamples.tsx +71 -71
  84. package/src/examples/AvatarExamples.tsx +96 -96
  85. package/src/examples/BadgeExamples.tsx +199 -199
  86. package/src/examples/ButtonExamples.tsx +149 -149
  87. package/src/examples/CardExamples.tsx +175 -175
  88. package/src/examples/CheckboxExamples.tsx +216 -216
  89. package/src/examples/DividerExamples.tsx +217 -217
  90. package/src/examples/IconExamples.tsx +341 -341
  91. package/src/examples/InputExamples.tsx +133 -133
  92. package/src/examples/README.md +135 -135
  93. package/src/examples/ScreenExamples.tsx +153 -153
  94. package/src/examples/TextExamples.tsx +88 -88
  95. package/src/examples/ThemeExtensionExamples.tsx +90 -90
  96. package/src/examples/ValidationExamples.tsx +94 -94
  97. package/src/examples/ViewExamples.tsx +128 -128
  98. package/src/examples/extendedTheme.ts +328 -328
  99. package/src/examples/index.ts +14 -14
  100. package/src/index.native.ts +48 -48
  101. package/src/index.ts +47 -47
  102. package/src/theme/breakpoints.ts +8 -8
  103. package/src/theme/colorResolver.ts +217 -217
  104. package/src/theme/colors.ts +314 -314
  105. package/src/theme/defaultThemes.ts +325 -325
  106. package/src/theme/index.ts +187 -187
  107. package/src/theme/themeBuilder.ts +601 -601
  108. package/src/theme/unistyles.d.ts +5 -5
  109. package/src/theme/variantHelpers.ts +583 -583
  110. package/src/theme/variants.ts +55 -55
@@ -1,329 +1,329 @@
1
- import {
2
- createTheme,
3
- type ThemeConfig,
4
- createStandardPalettes,
5
- createDarkPalettes,
6
- createLightIntentMappings,
7
- createDarkIntentMappings,
8
- createLightColorMappings,
9
- createDarkColorMappings
10
- } from '@idealyst/theme';
11
-
12
- // Extended color palettes - includes all base colors plus additional ones
13
- export const extendedColorPalettes = {
14
- // Include all base colors
15
- ...createStandardPalettes(),
16
-
17
- // Add extended colors
18
- orange: {
19
- 50: '#fff7ed',
20
- 100: '#ffedd5',
21
- 200: '#fed7aa',
22
- 300: '#fdba74',
23
- 400: '#fb923c',
24
- 500: '#f97316',
25
- 600: '#ea580c',
26
- 700: '#c2410c',
27
- 800: '#9a3412',
28
- 900: '#7c2d12',
29
- },
30
-
31
- teal: {
32
- 50: '#f0fdfa',
33
- 100: '#ccfbf1',
34
- 200: '#99f6e4',
35
- 300: '#5eead4',
36
- 400: '#2dd4bf',
37
- 500: '#14b8a6',
38
- 600: '#0d9488',
39
- 700: '#0f766e',
40
- 800: '#115e59',
41
- 900: '#134e4a',
42
- },
43
-
44
- indigo: {
45
- 50: '#eef2ff',
46
- 100: '#e0e7ff',
47
- 200: '#c7d2fe',
48
- 300: '#a5b4fc',
49
- 400: '#818cf8',
50
- 500: '#6366f1',
51
- 600: '#4f46e5',
52
- 700: '#4338ca',
53
- 800: '#3730a3',
54
- 900: '#312e81',
55
- },
56
-
57
- violet: {
58
- 50: '#faf5ff',
59
- 100: '#f3e8ff',
60
- 200: '#e9d5ff',
61
- 300: '#d8b4fe',
62
- 400: '#c084fc',
63
- 500: '#a855f7',
64
- 600: '#9333ea',
65
- 700: '#7c3aed',
66
- 800: '#6b21a8',
67
- 900: '#581c87',
68
- },
69
-
70
- emerald: {
71
- 50: '#ecfdf5',
72
- 100: '#d1fae5',
73
- 200: '#a7f3d0',
74
- 300: '#6ee7b7',
75
- 400: '#34d399',
76
- 500: '#10b981',
77
- 600: '#059669',
78
- 700: '#047857',
79
- 800: '#065f46',
80
- 900: '#064e3b',
81
- },
82
- } as const;
83
-
84
- // Extended color palettes for dark mode
85
- export const extendedDarkColorPalettes = {
86
- // Include all base dark colors
87
- ...createDarkPalettes(),
88
-
89
- // Add the same extended colors (they work well in both light and dark)
90
- orange: extendedColorPalettes.orange,
91
- teal: extendedColorPalettes.teal,
92
- indigo: extendedColorPalettes.indigo,
93
- violet: extendedColorPalettes.violet,
94
- emerald: extendedColorPalettes.emerald,
95
- } as const;
96
-
97
- // Helper function to create extended light intents
98
- function createExtendedLightIntents(palettes: typeof extendedColorPalettes) {
99
- return {
100
- // Include all base intents
101
- ...createLightIntentMappings(),
102
-
103
- // Add extended intents with resolved colors
104
- accent: {
105
- main: palettes.orange[500],
106
- on: '#ffffff',
107
- container: palettes.orange[100],
108
- onContainer: palettes.orange[800],
109
- light: palettes.orange[200],
110
- dark: palettes.orange[700],
111
- border: palettes.orange[300],
112
- },
113
-
114
- feature: {
115
- main: palettes.teal[500],
116
- on: '#ffffff',
117
- container: palettes.teal[100],
118
- onContainer: palettes.teal[800],
119
- light: palettes.teal[200],
120
- dark: palettes.teal[700],
121
- border: palettes.teal[300],
122
- },
123
-
124
- highlight: {
125
- main: palettes.violet[500],
126
- on: '#ffffff',
127
- container: palettes.violet[100],
128
- onContainer: palettes.violet[800],
129
- light: palettes.violet[200],
130
- dark: palettes.violet[700],
131
- border: palettes.violet[300],
132
- },
133
- } as any; // Type assertion for extended intents
134
- }
135
-
136
- // Helper function to create extended dark intents
137
- function createExtendedDarkIntents(palettes: typeof extendedDarkColorPalettes) {
138
- return {
139
- // Include all base intents
140
- ...createDarkIntentMappings(),
141
-
142
- // Add extended intents with resolved colors
143
- accent: {
144
- main: palettes.orange[400],
145
- on: palettes.gray[50],
146
- container: palettes.orange[200],
147
- onContainer: palettes.orange[800],
148
- light: palettes.orange[300],
149
- dark: palettes.orange[600],
150
- border: palettes.orange[400],
151
- },
152
-
153
- feature: {
154
- main: palettes.teal[400],
155
- on: palettes.gray[50],
156
- container: palettes.teal[200],
157
- onContainer: palettes.teal[800],
158
- light: palettes.teal[300],
159
- dark: palettes.teal[600],
160
- border: palettes.teal[400],
161
- },
162
-
163
- highlight: {
164
- main: palettes.violet[400],
165
- on: palettes.gray[50],
166
- container: palettes.violet[200],
167
- onContainer: palettes.violet[800],
168
- light: palettes.violet[300],
169
- dark: palettes.violet[600],
170
- border: palettes.violet[400],
171
- },
172
- } as any; // Type assertion for extended intents
173
- }
174
-
175
- // Create extended themes using the new theme builder
176
- export const extendedThemes = {
177
- light: createTheme({
178
- name: 'ExtendedLight',
179
- mode: 'light',
180
- palettes: extendedColorPalettes,
181
- intents: createExtendedLightIntents(extendedColorPalettes),
182
- colors: createLightColorMappings(),
183
-
184
- typography: {
185
- fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
186
- },
187
-
188
- borderRadius: {
189
- sm: 4,
190
- md: 8,
191
- lg: 12,
192
- xl: 16,
193
- xxl: 20,
194
- },
195
-
196
- spacing: {
197
- xs: 4,
198
- sm: 8,
199
- md: 16,
200
- lg: 24,
201
- xl: 32,
202
- xxl: 40,
203
- xxxl: 48,
204
- },
205
-
206
- shadows: {
207
- sm: {
208
- shadowColor: '#000',
209
- shadowOffset: { width: 0, height: 1 },
210
- shadowOpacity: 0.05,
211
- shadowRadius: 2,
212
- elevation: 1,
213
- },
214
- md: {
215
- shadowColor: '#000',
216
- shadowOffset: { width: 0, height: 4 },
217
- shadowOpacity: 0.1,
218
- shadowRadius: 8,
219
- elevation: 4,
220
- },
221
- lg: {
222
- shadowColor: '#000',
223
- shadowOffset: { width: 0, height: 8 },
224
- shadowOpacity: 0.15,
225
- shadowRadius: 16,
226
- elevation: 8,
227
- },
228
- },
229
-
230
- transitions: {
231
- fast: '0.15s ease',
232
- base: '0.2s ease',
233
- slow: '0.3s ease',
234
- button: 'all 0.2s ease',
235
- fade: 'opacity 0.2s ease',
236
- slide: 'transform 0.3s ease',
237
- },
238
- }),
239
-
240
- dark: createTheme({
241
- name: 'ExtendedDark',
242
- mode: 'dark',
243
- palettes: extendedDarkColorPalettes,
244
- intents: createExtendedDarkIntents(extendedDarkColorPalettes),
245
- colors: createDarkColorMappings(),
246
-
247
- typography: {
248
- fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
249
- },
250
-
251
- borderRadius: {
252
- sm: 4,
253
- md: 8,
254
- lg: 12,
255
- xl: 16,
256
- xxl: 20,
257
- },
258
-
259
- spacing: {
260
- xs: 4,
261
- sm: 8,
262
- md: 16,
263
- lg: 24,
264
- xl: 32,
265
- xxl: 40,
266
- xxxl: 48,
267
- },
268
-
269
- shadows: {
270
- sm: {
271
- shadowColor: '#000',
272
- shadowOffset: { width: 0, height: 1 },
273
- shadowOpacity: 0.2,
274
- shadowRadius: 2,
275
- elevation: 1,
276
- },
277
- md: {
278
- shadowColor: '#000',
279
- shadowOffset: { width: 0, height: 4 },
280
- shadowOpacity: 0.3,
281
- shadowRadius: 8,
282
- elevation: 4,
283
- },
284
- lg: {
285
- shadowColor: '#000',
286
- shadowOffset: { width: 0, height: 8 },
287
- shadowOpacity: 0.4,
288
- shadowRadius: 16,
289
- elevation: 8,
290
- },
291
- },
292
-
293
- transitions: {
294
- fast: '0.15s ease',
295
- base: '0.2s ease',
296
- slow: '0.3s ease',
297
- button: 'all 0.2s ease',
298
- fade: 'opacity 0.2s ease',
299
- slide: 'transform 0.3s ease',
300
- },
301
- }),
302
- } as const;
303
-
304
- // Extended type definitions for TypeScript
305
- export type ExtendedColorVariant =
306
- | 'blue'
307
- | 'green'
308
- | 'red'
309
- | 'amber'
310
- | 'gray'
311
- | 'purple'
312
- | 'pink'
313
- | 'cyan'
314
- | 'orange'
315
- | 'teal'
316
- | 'indigo'
317
- | 'violet'
318
- | 'emerald';
319
-
320
- export type ExtendedIntentVariant =
321
- | 'primary'
322
- | 'success'
323
- | 'error'
324
- | 'warning'
325
- | 'neutral'
326
- | 'info'
327
- | 'accent'
328
- | 'feature'
1
+ import {
2
+ createTheme,
3
+ type ThemeConfig,
4
+ createStandardPalettes,
5
+ createDarkPalettes,
6
+ createLightIntentMappings,
7
+ createDarkIntentMappings,
8
+ createLightColorMappings,
9
+ createDarkColorMappings
10
+ } from '@idealyst/theme';
11
+
12
+ // Extended color palettes - includes all base colors plus additional ones
13
+ export const extendedColorPalettes = {
14
+ // Include all base colors
15
+ ...createStandardPalettes(),
16
+
17
+ // Add extended colors
18
+ orange: {
19
+ 50: '#fff7ed',
20
+ 100: '#ffedd5',
21
+ 200: '#fed7aa',
22
+ 300: '#fdba74',
23
+ 400: '#fb923c',
24
+ 500: '#f97316',
25
+ 600: '#ea580c',
26
+ 700: '#c2410c',
27
+ 800: '#9a3412',
28
+ 900: '#7c2d12',
29
+ },
30
+
31
+ teal: {
32
+ 50: '#f0fdfa',
33
+ 100: '#ccfbf1',
34
+ 200: '#99f6e4',
35
+ 300: '#5eead4',
36
+ 400: '#2dd4bf',
37
+ 500: '#14b8a6',
38
+ 600: '#0d9488',
39
+ 700: '#0f766e',
40
+ 800: '#115e59',
41
+ 900: '#134e4a',
42
+ },
43
+
44
+ indigo: {
45
+ 50: '#eef2ff',
46
+ 100: '#e0e7ff',
47
+ 200: '#c7d2fe',
48
+ 300: '#a5b4fc',
49
+ 400: '#818cf8',
50
+ 500: '#6366f1',
51
+ 600: '#4f46e5',
52
+ 700: '#4338ca',
53
+ 800: '#3730a3',
54
+ 900: '#312e81',
55
+ },
56
+
57
+ violet: {
58
+ 50: '#faf5ff',
59
+ 100: '#f3e8ff',
60
+ 200: '#e9d5ff',
61
+ 300: '#d8b4fe',
62
+ 400: '#c084fc',
63
+ 500: '#a855f7',
64
+ 600: '#9333ea',
65
+ 700: '#7c3aed',
66
+ 800: '#6b21a8',
67
+ 900: '#581c87',
68
+ },
69
+
70
+ emerald: {
71
+ 50: '#ecfdf5',
72
+ 100: '#d1fae5',
73
+ 200: '#a7f3d0',
74
+ 300: '#6ee7b7',
75
+ 400: '#34d399',
76
+ 500: '#10b981',
77
+ 600: '#059669',
78
+ 700: '#047857',
79
+ 800: '#065f46',
80
+ 900: '#064e3b',
81
+ },
82
+ } as const;
83
+
84
+ // Extended color palettes for dark mode
85
+ export const extendedDarkColorPalettes = {
86
+ // Include all base dark colors
87
+ ...createDarkPalettes(),
88
+
89
+ // Add the same extended colors (they work well in both light and dark)
90
+ orange: extendedColorPalettes.orange,
91
+ teal: extendedColorPalettes.teal,
92
+ indigo: extendedColorPalettes.indigo,
93
+ violet: extendedColorPalettes.violet,
94
+ emerald: extendedColorPalettes.emerald,
95
+ } as const;
96
+
97
+ // Helper function to create extended light intents
98
+ function createExtendedLightIntents(palettes: typeof extendedColorPalettes) {
99
+ return {
100
+ // Include all base intents
101
+ ...createLightIntentMappings(),
102
+
103
+ // Add extended intents with resolved colors
104
+ accent: {
105
+ main: palettes.orange[500],
106
+ on: '#ffffff',
107
+ container: palettes.orange[100],
108
+ onContainer: palettes.orange[800],
109
+ light: palettes.orange[200],
110
+ dark: palettes.orange[700],
111
+ border: palettes.orange[300],
112
+ },
113
+
114
+ feature: {
115
+ main: palettes.teal[500],
116
+ on: '#ffffff',
117
+ container: palettes.teal[100],
118
+ onContainer: palettes.teal[800],
119
+ light: palettes.teal[200],
120
+ dark: palettes.teal[700],
121
+ border: palettes.teal[300],
122
+ },
123
+
124
+ highlight: {
125
+ main: palettes.violet[500],
126
+ on: '#ffffff',
127
+ container: palettes.violet[100],
128
+ onContainer: palettes.violet[800],
129
+ light: palettes.violet[200],
130
+ dark: palettes.violet[700],
131
+ border: palettes.violet[300],
132
+ },
133
+ } as any; // Type assertion for extended intents
134
+ }
135
+
136
+ // Helper function to create extended dark intents
137
+ function createExtendedDarkIntents(palettes: typeof extendedDarkColorPalettes) {
138
+ return {
139
+ // Include all base intents
140
+ ...createDarkIntentMappings(),
141
+
142
+ // Add extended intents with resolved colors
143
+ accent: {
144
+ main: palettes.orange[400],
145
+ on: palettes.gray[50],
146
+ container: palettes.orange[200],
147
+ onContainer: palettes.orange[800],
148
+ light: palettes.orange[300],
149
+ dark: palettes.orange[600],
150
+ border: palettes.orange[400],
151
+ },
152
+
153
+ feature: {
154
+ main: palettes.teal[400],
155
+ on: palettes.gray[50],
156
+ container: palettes.teal[200],
157
+ onContainer: palettes.teal[800],
158
+ light: palettes.teal[300],
159
+ dark: palettes.teal[600],
160
+ border: palettes.teal[400],
161
+ },
162
+
163
+ highlight: {
164
+ main: palettes.violet[400],
165
+ on: palettes.gray[50],
166
+ container: palettes.violet[200],
167
+ onContainer: palettes.violet[800],
168
+ light: palettes.violet[300],
169
+ dark: palettes.violet[600],
170
+ border: palettes.violet[400],
171
+ },
172
+ } as any; // Type assertion for extended intents
173
+ }
174
+
175
+ // Create extended themes using the new theme builder
176
+ export const extendedThemes = {
177
+ light: createTheme({
178
+ name: 'ExtendedLight',
179
+ mode: 'light',
180
+ palettes: extendedColorPalettes,
181
+ intents: createExtendedLightIntents(extendedColorPalettes),
182
+ colors: createLightColorMappings(),
183
+
184
+ typography: {
185
+ fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
186
+ },
187
+
188
+ borderRadius: {
189
+ sm: 4,
190
+ md: 8,
191
+ lg: 12,
192
+ xl: 16,
193
+ xxl: 20,
194
+ },
195
+
196
+ spacing: {
197
+ xs: 4,
198
+ sm: 8,
199
+ md: 16,
200
+ lg: 24,
201
+ xl: 32,
202
+ xxl: 40,
203
+ xxxl: 48,
204
+ },
205
+
206
+ shadows: {
207
+ sm: {
208
+ shadowColor: '#000',
209
+ shadowOffset: { width: 0, height: 1 },
210
+ shadowOpacity: 0.05,
211
+ shadowRadius: 2,
212
+ elevation: 1,
213
+ },
214
+ md: {
215
+ shadowColor: '#000',
216
+ shadowOffset: { width: 0, height: 4 },
217
+ shadowOpacity: 0.1,
218
+ shadowRadius: 8,
219
+ elevation: 4,
220
+ },
221
+ lg: {
222
+ shadowColor: '#000',
223
+ shadowOffset: { width: 0, height: 8 },
224
+ shadowOpacity: 0.15,
225
+ shadowRadius: 16,
226
+ elevation: 8,
227
+ },
228
+ },
229
+
230
+ transitions: {
231
+ fast: '0.15s ease',
232
+ base: '0.2s ease',
233
+ slow: '0.3s ease',
234
+ button: 'all 0.2s ease',
235
+ fade: 'opacity 0.2s ease',
236
+ slide: 'transform 0.3s ease',
237
+ },
238
+ }),
239
+
240
+ dark: createTheme({
241
+ name: 'ExtendedDark',
242
+ mode: 'dark',
243
+ palettes: extendedDarkColorPalettes,
244
+ intents: createExtendedDarkIntents(extendedDarkColorPalettes),
245
+ colors: createDarkColorMappings(),
246
+
247
+ typography: {
248
+ fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
249
+ },
250
+
251
+ borderRadius: {
252
+ sm: 4,
253
+ md: 8,
254
+ lg: 12,
255
+ xl: 16,
256
+ xxl: 20,
257
+ },
258
+
259
+ spacing: {
260
+ xs: 4,
261
+ sm: 8,
262
+ md: 16,
263
+ lg: 24,
264
+ xl: 32,
265
+ xxl: 40,
266
+ xxxl: 48,
267
+ },
268
+
269
+ shadows: {
270
+ sm: {
271
+ shadowColor: '#000',
272
+ shadowOffset: { width: 0, height: 1 },
273
+ shadowOpacity: 0.2,
274
+ shadowRadius: 2,
275
+ elevation: 1,
276
+ },
277
+ md: {
278
+ shadowColor: '#000',
279
+ shadowOffset: { width: 0, height: 4 },
280
+ shadowOpacity: 0.3,
281
+ shadowRadius: 8,
282
+ elevation: 4,
283
+ },
284
+ lg: {
285
+ shadowColor: '#000',
286
+ shadowOffset: { width: 0, height: 8 },
287
+ shadowOpacity: 0.4,
288
+ shadowRadius: 16,
289
+ elevation: 8,
290
+ },
291
+ },
292
+
293
+ transitions: {
294
+ fast: '0.15s ease',
295
+ base: '0.2s ease',
296
+ slow: '0.3s ease',
297
+ button: 'all 0.2s ease',
298
+ fade: 'opacity 0.2s ease',
299
+ slide: 'transform 0.3s ease',
300
+ },
301
+ }),
302
+ } as const;
303
+
304
+ // Extended type definitions for TypeScript
305
+ export type ExtendedColorVariant =
306
+ | 'blue'
307
+ | 'green'
308
+ | 'red'
309
+ | 'amber'
310
+ | 'gray'
311
+ | 'purple'
312
+ | 'pink'
313
+ | 'cyan'
314
+ | 'orange'
315
+ | 'teal'
316
+ | 'indigo'
317
+ | 'violet'
318
+ | 'emerald';
319
+
320
+ export type ExtendedIntentVariant =
321
+ | 'primary'
322
+ | 'success'
323
+ | 'error'
324
+ | 'warning'
325
+ | 'neutral'
326
+ | 'info'
327
+ | 'accent'
328
+ | 'feature'
329
329
  | 'highlight';
@@ -1,15 +1,15 @@
1
- export { ButtonExamples } from './ButtonExamples';
2
- export { TextExamples } from './TextExamples';
3
- export { ViewExamples } from './ViewExamples';
4
- export { InputExamples } from './InputExamples';
5
- export { IconExamples } from './IconExamples';
6
- export { CardExamples } from './CardExamples';
7
- export { CheckboxExamples } from './CheckboxExamples';
8
- export { DividerExamples } from './DividerExamples';
9
- export { BadgeExamples } from './BadgeExamples';
10
- export { AvatarExamples } from './AvatarExamples';
11
- export { ScreenExamples } from './ScreenExamples';
12
- export { ThemeExtensionExamples } from './ThemeExtensionExamples';
13
- export { extendedThemes, } from './extendedTheme';
14
- export type { ExtendedColorVariant, ExtendedIntentVariant } from './extendedTheme';
1
+ export { ButtonExamples } from './ButtonExamples';
2
+ export { TextExamples } from './TextExamples';
3
+ export { ViewExamples } from './ViewExamples';
4
+ export { InputExamples } from './InputExamples';
5
+ export { IconExamples } from './IconExamples';
6
+ export { CardExamples } from './CardExamples';
7
+ export { CheckboxExamples } from './CheckboxExamples';
8
+ export { DividerExamples } from './DividerExamples';
9
+ export { BadgeExamples } from './BadgeExamples';
10
+ export { AvatarExamples } from './AvatarExamples';
11
+ export { ScreenExamples } from './ScreenExamples';
12
+ export { ThemeExtensionExamples } from './ThemeExtensionExamples';
13
+ export { extendedThemes, } from './extendedTheme';
14
+ export type { ExtendedColorVariant, ExtendedIntentVariant } from './extendedTheme';
15
15
  export { AllExamples } from './AllExamples';