@grupor5/raya 0.2.1 → 0.2.2

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 (180) hide show
  1. package/README.md +47 -4
  2. package/dist/atoms/avatar/index.d.mts +12 -0
  3. package/dist/atoms/avatar/index.d.ts +12 -0
  4. package/dist/atoms/avatar/index.js +99 -0
  5. package/dist/atoms/avatar/index.mjs +76 -0
  6. package/dist/atoms/badge/index.d.mts +16 -0
  7. package/dist/atoms/badge/index.d.ts +16 -0
  8. package/dist/atoms/badge/index.js +149 -0
  9. package/dist/atoms/badge/index.mjs +146 -0
  10. package/dist/atoms/button/index.d.mts +11 -0
  11. package/dist/atoms/button/index.d.ts +11 -0
  12. package/dist/atoms/button/index.js +307 -0
  13. package/dist/atoms/button/index.mjs +301 -0
  14. package/dist/atoms/checkbox/index.d.mts +6 -0
  15. package/dist/atoms/checkbox/index.d.ts +6 -0
  16. package/dist/atoms/checkbox/index.js +98 -0
  17. package/dist/atoms/checkbox/index.mjs +75 -0
  18. package/dist/atoms/input/index.d.mts +12 -0
  19. package/dist/atoms/input/index.d.ts +12 -0
  20. package/dist/atoms/input/index.js +104 -0
  21. package/dist/atoms/input/index.mjs +82 -0
  22. package/dist/atoms/label/index.d.mts +8 -0
  23. package/dist/atoms/label/index.d.ts +8 -0
  24. package/dist/atoms/label/index.js +77 -0
  25. package/dist/atoms/label/index.mjs +54 -0
  26. package/dist/atoms/radio/index.d.mts +7 -0
  27. package/dist/atoms/radio/index.d.ts +7 -0
  28. package/dist/atoms/radio/index.js +97 -0
  29. package/dist/atoms/radio/index.mjs +73 -0
  30. package/dist/atoms/switch/index.d.mts +6 -0
  31. package/dist/atoms/switch/index.d.ts +6 -0
  32. package/dist/atoms/switch/index.js +97 -0
  33. package/dist/atoms/switch/index.mjs +74 -0
  34. package/dist/atoms/tag/index.d.mts +14 -0
  35. package/dist/atoms/tag/index.d.ts +14 -0
  36. package/dist/atoms/tag/index.js +128 -0
  37. package/dist/atoms/tag/index.mjs +122 -0
  38. package/dist/atoms/textarea/index.d.mts +11 -0
  39. package/dist/atoms/textarea/index.d.ts +11 -0
  40. package/dist/atoms/textarea/index.js +125 -0
  41. package/dist/atoms/textarea/index.mjs +103 -0
  42. package/dist/atoms/typography/index.d.mts +20 -0
  43. package/dist/atoms/typography/index.d.ts +20 -0
  44. package/dist/atoms/typography/index.js +140 -0
  45. package/dist/atoms/typography/index.mjs +115 -0
  46. package/dist/hooks/index.d.mts +1 -0
  47. package/dist/hooks/index.d.ts +1 -0
  48. package/dist/hooks/index.js +17 -0
  49. package/dist/hooks/index.mjs +15 -0
  50. package/dist/hooks/use-pagination.d.mts +10 -0
  51. package/dist/hooks/use-pagination.d.ts +10 -0
  52. package/dist/hooks/use-pagination.js +54 -0
  53. package/dist/hooks/use-pagination.mjs +51 -0
  54. package/dist/hooks/use-toast.d.mts +2 -0
  55. package/dist/hooks/use-toast.d.ts +2 -0
  56. package/dist/hooks/use-toast.js +2 -0
  57. package/dist/hooks/use-toast.mjs +1 -0
  58. package/dist/hooks/useModal.d.mts +7 -0
  59. package/dist/hooks/useModal.d.ts +7 -0
  60. package/dist/hooks/useModal.js +17 -0
  61. package/dist/hooks/useModal.mjs +15 -0
  62. package/dist/index.d.mts +50 -1298
  63. package/dist/index.d.ts +50 -1298
  64. package/dist/molecules/accordion/index.d.mts +17 -0
  65. package/dist/molecules/accordion/index.d.ts +17 -0
  66. package/dist/molecules/accordion/index.js +154 -0
  67. package/dist/molecules/accordion/index.mjs +128 -0
  68. package/dist/molecules/alert/index.d.mts +14 -0
  69. package/dist/molecules/alert/index.d.ts +14 -0
  70. package/dist/molecules/alert/index.js +425 -0
  71. package/dist/molecules/alert/index.mjs +402 -0
  72. package/dist/molecules/card/index.d.mts +10 -0
  73. package/dist/molecules/card/index.d.ts +10 -0
  74. package/dist/molecules/card/index.js +128 -0
  75. package/dist/molecules/card/index.mjs +101 -0
  76. package/dist/molecules/chart/index.d.mts +80 -0
  77. package/dist/molecules/chart/index.d.ts +80 -0
  78. package/dist/molecules/chart/index.js +300 -0
  79. package/dist/molecules/chart/index.mjs +272 -0
  80. package/dist/molecules/data-table/index.d.mts +57 -0
  81. package/dist/molecules/data-table/index.d.ts +57 -0
  82. package/dist/molecules/data-table/index.js +1456 -0
  83. package/dist/molecules/data-table/index.mjs +1430 -0
  84. package/dist/molecules/date-picker/index.d.mts +12 -0
  85. package/dist/molecules/date-picker/index.d.ts +12 -0
  86. package/dist/molecules/date-picker/index.js +756 -0
  87. package/dist/molecules/date-picker/index.mjs +734 -0
  88. package/dist/molecules/dropdown/index.d.mts +21 -0
  89. package/dist/molecules/dropdown/index.d.ts +21 -0
  90. package/dist/molecules/dropdown/index.js +221 -0
  91. package/dist/molecules/dropdown/index.mjs +198 -0
  92. package/dist/molecules/form/index.d.mts +19 -0
  93. package/dist/molecules/form/index.d.ts +19 -0
  94. package/dist/molecules/form/index.js +139 -0
  95. package/dist/molecules/form/index.mjs +114 -0
  96. package/dist/molecules/pagination/index.d.mts +15 -0
  97. package/dist/molecules/pagination/index.d.ts +15 -0
  98. package/dist/molecules/pagination/index.js +605 -0
  99. package/dist/molecules/pagination/index.mjs +583 -0
  100. package/dist/molecules/progress-bar/index.d.mts +15 -0
  101. package/dist/molecules/progress-bar/index.d.ts +15 -0
  102. package/dist/molecules/progress-bar/index.js +166 -0
  103. package/dist/molecules/progress-bar/index.mjs +144 -0
  104. package/dist/molecules/select/index.d.mts +15 -0
  105. package/dist/molecules/select/index.d.ts +15 -0
  106. package/dist/molecules/select/index.js +201 -0
  107. package/dist/molecules/select/index.mjs +169 -0
  108. package/dist/molecules/stepper/index.d.mts +67 -0
  109. package/dist/molecules/stepper/index.d.ts +67 -0
  110. package/dist/molecules/stepper/index.js +287 -0
  111. package/dist/molecules/stepper/index.mjs +260 -0
  112. package/dist/molecules/tabs/index.d.mts +9 -0
  113. package/dist/molecules/tabs/index.d.ts +9 -0
  114. package/dist/molecules/tabs/index.js +112 -0
  115. package/dist/molecules/tabs/index.mjs +86 -0
  116. package/dist/tokens/badge.d.mts +39 -0
  117. package/dist/tokens/badge.d.ts +39 -0
  118. package/dist/tokens/badge.js +61 -0
  119. package/dist/tokens/badge.mjs +59 -0
  120. package/dist/tokens/buttons.d.mts +277 -0
  121. package/dist/tokens/buttons.d.ts +277 -0
  122. package/dist/tokens/buttons.js +191 -0
  123. package/dist/tokens/buttons.mjs +173 -0
  124. package/dist/tokens/colors.d.mts +65 -0
  125. package/dist/tokens/colors.d.ts +65 -0
  126. package/dist/tokens/colors.js +68 -0
  127. package/dist/tokens/colors.mjs +66 -0
  128. package/dist/tokens/effects.d.mts +124 -0
  129. package/dist/tokens/effects.d.ts +124 -0
  130. package/dist/tokens/effects.js +130 -0
  131. package/dist/tokens/effects.mjs +115 -0
  132. package/dist/tokens/grids.d.mts +331 -0
  133. package/dist/tokens/grids.d.ts +331 -0
  134. package/dist/tokens/grids.js +305 -0
  135. package/dist/tokens/grids.mjs +292 -0
  136. package/dist/tokens/icons.d.mts +134 -0
  137. package/dist/tokens/icons.d.ts +134 -0
  138. package/dist/tokens/icons.js +108 -0
  139. package/dist/tokens/icons.mjs +97 -0
  140. package/dist/tokens/index.d.mts +6 -0
  141. package/dist/tokens/index.d.ts +6 -0
  142. package/dist/tokens/index.js +775 -0
  143. package/dist/tokens/index.mjs +743 -0
  144. package/dist/tokens/progress-bar.d.mts +31 -0
  145. package/dist/tokens/progress-bar.d.ts +31 -0
  146. package/dist/tokens/progress-bar.js +70 -0
  147. package/dist/tokens/progress-bar.mjs +68 -0
  148. package/dist/tokens/spacing.d.mts +90 -0
  149. package/dist/tokens/spacing.d.ts +90 -0
  150. package/dist/tokens/spacing.js +120 -0
  151. package/dist/tokens/spacing.mjs +109 -0
  152. package/dist/tokens/stroke.d.mts +292 -0
  153. package/dist/tokens/stroke.d.ts +292 -0
  154. package/dist/tokens/stroke.js +202 -0
  155. package/dist/tokens/stroke.mjs +186 -0
  156. package/dist/tokens/tab.d.mts +31 -0
  157. package/dist/tokens/tab.d.ts +31 -0
  158. package/dist/tokens/tab.js +48 -0
  159. package/dist/tokens/tab.mjs +46 -0
  160. package/dist/tokens/tag.d.mts +53 -0
  161. package/dist/tokens/tag.d.ts +53 -0
  162. package/dist/tokens/tag.js +80 -0
  163. package/dist/tokens/tag.mjs +78 -0
  164. package/dist/tokens/typography.d.mts +394 -0
  165. package/dist/tokens/typography.d.ts +394 -0
  166. package/dist/tokens/typography.js +302 -0
  167. package/dist/tokens/typography.mjs +292 -0
  168. package/dist/utils/classNames.d.mts +3 -0
  169. package/dist/utils/classNames.d.ts +3 -0
  170. package/dist/utils/classNames.js +8 -0
  171. package/dist/utils/classNames.mjs +6 -0
  172. package/dist/utils/cn.d.mts +5 -0
  173. package/dist/utils/cn.d.ts +5 -0
  174. package/dist/utils/cn.js +11 -0
  175. package/dist/utils/cn.mjs +9 -0
  176. package/dist/utils/index.d.mts +3 -0
  177. package/dist/utils/index.d.ts +3 -0
  178. package/dist/utils/index.js +15 -0
  179. package/dist/utils/index.mjs +12 -0
  180. package/package.json +34 -1
@@ -0,0 +1,775 @@
1
+ 'use strict';
2
+
3
+ // src/tokens/colors.ts
4
+ var colors = {
5
+ primary: {
6
+ 100: "#faf9fb",
7
+ 200: "#eeedf1",
8
+ 300: "#dbd9e1",
9
+ 400: "#c3c0cd",
10
+ 500: "#a8a3b6",
11
+ 600: "#8b859e",
12
+ 700: "#706984",
13
+ 800: "#585267",
14
+ 900: "#423e4e",
15
+ 1e3: "#312e3a",
16
+ 1100: "#26242d",
17
+ 1200: "#222028"
18
+ },
19
+ secondary: {
20
+ 100: "#fbf7fc",
21
+ 200: "#f2e4f6",
22
+ 300: "#e4c7ed",
23
+ 400: "#d3a2e1",
24
+ 500: "#c07ad4",
25
+ 600: "#ac50c7",
26
+ 700: "#9037ab",
27
+ 800: "#722b86",
28
+ 900: "#592269",
29
+ 1e3: "#481b55",
30
+ 1100: "#42194e",
31
+ 1200: "#1d0b23"
32
+ },
33
+ neutral: {
34
+ 500: "#bdb3b3",
35
+ 400: "#bdb3b3",
36
+ 300: "#d2caca",
37
+ 200: "#e7e2e2",
38
+ 100: "#fbfafa",
39
+ 10: "#ffffff",
40
+ 20: "#f9f9f9",
41
+ 30: "#f2f2f2"
42
+ },
43
+ red: {
44
+ 600: "#dc2626",
45
+ 500: "#ee4444",
46
+ 400: "#e86e6e",
47
+ 300: "#fca5a5",
48
+ 200: "#e86e6e",
49
+ 100: "#f3b7b7"
50
+ },
51
+ yellow: {
52
+ 300: "#f59e0b",
53
+ 200: "#f8be5c",
54
+ 100: "#fcdfae",
55
+ 10: "#fcdfaeB3"
56
+ },
57
+ green: {
58
+ 600: "#096849",
59
+ 500: "#10b981",
60
+ 400: "#10b981",
61
+ 300: "#10b981",
62
+ 200: "#10b981",
63
+ 100: "#D0FAE5",
64
+ 10: "#beba6bB3"
65
+ }
66
+ };
67
+
68
+ // src/tokens/typography.ts
69
+ var typography = {
70
+ fontFamily: {
71
+ primary: [
72
+ "Rubik",
73
+ "-apple-system",
74
+ "BlinkMacSystemFont",
75
+ "Segoe UI",
76
+ "Roboto",
77
+ "Oxygen",
78
+ "Ubuntu",
79
+ "Cantarell",
80
+ "sans-serif"
81
+ ]
82
+ },
83
+ fontWeight: {
84
+ light: 300,
85
+ regular: 400,
86
+ medium: 500,
87
+ semibold: 600,
88
+ bold: 700
89
+ },
90
+ fontSize: {
91
+ // Display Scale - Large typography for hero sections and prominent headers
92
+ display: {
93
+ l: "2.5rem"
94
+ // 40px - Display/L
95
+ },
96
+ // Heading Scale - Semantic headings with Bold weight
97
+ heading: {
98
+ xl: "2.25rem",
99
+ // 36px - Heading/XL
100
+ lg: "2rem",
101
+ // 32px - Heading/L
102
+ md: "1.75rem",
103
+ // 28px - Heading/M
104
+ sm: "1.5rem"
105
+ // 24px - Heading/S
106
+ },
107
+ // Subheading Scale - Secondary headings with Bold weight
108
+ subheading: {
109
+ lg: "1.25rem",
110
+ // 20px - Subheading/L
111
+ md: "1.125rem",
112
+ // 18px - Subheading/M
113
+ sm: "1rem"
114
+ // 16px - Subheading/S
115
+ },
116
+ // Body Scale - Text content with Regular and Semi-bold variants
117
+ body: {
118
+ // Body Bold variants (Semi-bold weight)
119
+ "bold-lg": "1.125rem",
120
+ // 18px - Body/Bold/L
121
+ "bold-md": "1rem",
122
+ // 16px - Body/Bold/M
123
+ "bold-sm": "0.875rem",
124
+ // 14px - Body/Bold/S
125
+ "bold-xs": "0.75rem",
126
+ // 12px - Body/Bold/XS
127
+ // Body Regular variants
128
+ lg: "1.125rem",
129
+ // 18px - Body/L
130
+ md: "1rem",
131
+ // 16px - Body/M
132
+ sm: "0.875rem",
133
+ // 14px - Body/S
134
+ xs: "0.75rem"
135
+ // 12px - Body/XS
136
+ },
137
+ // Caption Scale - Small text for labels and metadata
138
+ caption: {
139
+ "c1": "0.75rem"
140
+ // 12px - Caption/C-1
141
+ }
142
+ },
143
+ lineHeight: {
144
+ // Display line heights
145
+ display: {
146
+ l: "3.25rem"
147
+ // 52px - Display/L
148
+ },
149
+ // Heading line heights
150
+ heading: {
151
+ xl: "2.75rem",
152
+ // 44px - Heading/XL
153
+ lg: "2.5rem",
154
+ // 40px - Heading/L
155
+ md: "2.25rem",
156
+ // 36px - Heading/M
157
+ sm: "2rem"
158
+ // 32px - Heading/S
159
+ },
160
+ // Subheading line heights
161
+ subheading: {
162
+ lg: "1.75rem",
163
+ // 28px - Subheading/L
164
+ md: "1.5rem",
165
+ // 24px - Subheading/M
166
+ sm: "1.25rem"
167
+ // 20px - Subheading/S
168
+ },
169
+ // Body line heights (same for both bold and regular)
170
+ body: {
171
+ lg: "1.75rem",
172
+ // 28px - Body/L & Body/Bold/L
173
+ md: "1.5rem",
174
+ // 24px - Body/M & Body/Bold/M
175
+ sm: "1.25rem",
176
+ // 20px - Body/S & Body/Bold/S
177
+ xs: "1.25rem"
178
+ // 20px - Body/XS & Body/Bold/XS
179
+ },
180
+ // Caption line heights
181
+ caption: {
182
+ c1: "1.125rem"
183
+ // 18px - Caption/C-1
184
+ }
185
+ },
186
+ // Letter spacing values
187
+ letterSpacing: {
188
+ normal: "0px",
189
+ // 0px - Default for most text
190
+ caption: "4px"
191
+ // 4px - Caption/C-1 specific
192
+ },
193
+ // Pre-composed typography styles for common use cases
194
+ presets: {
195
+ // Display presets
196
+ "display-l": {
197
+ fontSize: "2.5rem",
198
+ lineHeight: "3.25rem",
199
+ fontWeight: 700,
200
+ letterSpacing: "0px"
201
+ },
202
+ // Heading presets (all use Bold weight)
203
+ "heading-xl": {
204
+ fontSize: "2.25rem",
205
+ lineHeight: "2.75rem",
206
+ fontWeight: 700,
207
+ letterSpacing: "0px"
208
+ },
209
+ "heading-lg": {
210
+ fontSize: "2rem",
211
+ lineHeight: "2.5rem",
212
+ fontWeight: 700,
213
+ letterSpacing: "0px"
214
+ },
215
+ "heading-md": {
216
+ fontSize: "1.75rem",
217
+ lineHeight: "2.25rem",
218
+ fontWeight: 700,
219
+ letterSpacing: "0px"
220
+ },
221
+ "heading-sm": {
222
+ fontSize: "1.5rem",
223
+ lineHeight: "2rem",
224
+ fontWeight: 700,
225
+ letterSpacing: "0px"
226
+ },
227
+ // Subheading presets (all use Bold weight)
228
+ "subheading-lg": {
229
+ fontSize: "1.25rem",
230
+ lineHeight: "1.75rem",
231
+ fontWeight: 700,
232
+ letterSpacing: "0px"
233
+ },
234
+ "subheading-md": {
235
+ fontSize: "1.125rem",
236
+ lineHeight: "1.5rem",
237
+ fontWeight: 700,
238
+ letterSpacing: "0px"
239
+ },
240
+ "subheading-sm": {
241
+ fontSize: "1rem",
242
+ lineHeight: "1.25rem",
243
+ fontWeight: 700,
244
+ letterSpacing: "0px"
245
+ },
246
+ // Body Bold presets (Semi-bold weight)
247
+ "body-bold-lg": {
248
+ fontSize: "1.125rem",
249
+ lineHeight: "1.75rem",
250
+ fontWeight: 600,
251
+ letterSpacing: "0px"
252
+ },
253
+ "body-bold-md": {
254
+ fontSize: "1rem",
255
+ lineHeight: "1.5rem",
256
+ fontWeight: 600,
257
+ letterSpacing: "0px"
258
+ },
259
+ "body-bold-sm": {
260
+ fontSize: "0.875rem",
261
+ lineHeight: "1.25rem",
262
+ fontWeight: 600,
263
+ letterSpacing: "0px"
264
+ },
265
+ "body-bold-xs": {
266
+ fontSize: "0.75rem",
267
+ lineHeight: "1.25rem",
268
+ fontWeight: 600,
269
+ letterSpacing: "0px"
270
+ },
271
+ // Body Regular presets
272
+ "body-lg": {
273
+ fontSize: "1.125rem",
274
+ lineHeight: "1.75rem",
275
+ fontWeight: 400,
276
+ letterSpacing: "0px"
277
+ },
278
+ "body-md": {
279
+ fontSize: "1rem",
280
+ lineHeight: "1.5rem",
281
+ fontWeight: 400,
282
+ letterSpacing: "0px"
283
+ },
284
+ "body-sm": {
285
+ fontSize: "0.875rem",
286
+ lineHeight: "1.25rem",
287
+ fontWeight: 400,
288
+ letterSpacing: "0px"
289
+ },
290
+ "body-xs": {
291
+ fontSize: "0.75rem",
292
+ lineHeight: "1.25rem",
293
+ fontWeight: 400,
294
+ letterSpacing: "0px"
295
+ },
296
+ // Caption presets
297
+ "caption-c1": {
298
+ fontSize: "0.75rem",
299
+ lineHeight: "1.125rem",
300
+ fontWeight: 400,
301
+ letterSpacing: "4px"
302
+ }
303
+ }
304
+ };
305
+ var typographyVars = {
306
+ // Font family
307
+ "--font-primary": typography.fontFamily.primary.join(", "),
308
+ // Font weights
309
+ "--font-weight-light": typography.fontWeight.light,
310
+ "--font-weight-regular": typography.fontWeight.regular,
311
+ "--font-weight-medium": typography.fontWeight.medium,
312
+ "--font-weight-semibold": typography.fontWeight.semibold,
313
+ "--font-weight-bold": typography.fontWeight.bold,
314
+ // Display scale
315
+ "--text-display-l": typography.fontSize.display.l,
316
+ // Heading scale
317
+ "--text-heading-xl": typography.fontSize.heading.xl,
318
+ "--text-heading-lg": typography.fontSize.heading.lg,
319
+ "--text-heading-md": typography.fontSize.heading.md,
320
+ "--text-heading-sm": typography.fontSize.heading.sm,
321
+ // Subheading scale
322
+ "--text-subheading-lg": typography.fontSize.subheading.lg,
323
+ "--text-subheading-md": typography.fontSize.subheading.md,
324
+ "--text-subheading-sm": typography.fontSize.subheading.sm,
325
+ // Body scale
326
+ "--text-body-bold-lg": typography.fontSize.body["bold-lg"],
327
+ "--text-body-bold-md": typography.fontSize.body["bold-md"],
328
+ "--text-body-bold-sm": typography.fontSize.body["bold-sm"],
329
+ "--text-body-bold-xs": typography.fontSize.body["bold-xs"],
330
+ "--text-body-lg": typography.fontSize.body.lg,
331
+ "--text-body-md": typography.fontSize.body.md,
332
+ "--text-body-sm": typography.fontSize.body.sm,
333
+ "--text-body-xs": typography.fontSize.body.xs,
334
+ // Caption scale
335
+ "--text-caption-c1": typography.fontSize.caption.c1,
336
+ // Line heights
337
+ "--leading-display-l": typography.lineHeight.display.l,
338
+ "--leading-heading-xl": typography.lineHeight.heading.xl,
339
+ "--leading-heading-lg": typography.lineHeight.heading.lg,
340
+ "--leading-heading-md": typography.lineHeight.heading.md,
341
+ "--leading-heading-sm": typography.lineHeight.heading.sm,
342
+ "--leading-subheading-lg": typography.lineHeight.subheading.lg,
343
+ "--leading-subheading-md": typography.lineHeight.subheading.md,
344
+ "--leading-subheading-sm": typography.lineHeight.subheading.sm,
345
+ "--leading-body-lg": typography.lineHeight.body.lg,
346
+ "--leading-body-md": typography.lineHeight.body.md,
347
+ "--leading-body-sm": typography.lineHeight.body.sm,
348
+ "--leading-body-xs": typography.lineHeight.body.xs,
349
+ "--leading-caption-c1": typography.lineHeight.caption.c1,
350
+ // Letter spacing
351
+ "--tracking-normal": typography.letterSpacing.normal,
352
+ "--tracking-caption": typography.letterSpacing.caption
353
+ };
354
+ var generateTypographyCSS = () => {
355
+ return Object.entries(typographyVars).map(([property, value]) => ` ${property}: ${value};`).join("\n");
356
+ };
357
+ var { fontFamily, fontWeight, fontSize, lineHeight, letterSpacing, presets } = typography;
358
+
359
+ // src/tokens/spacing.ts
360
+ var spacing = {
361
+ // Base unit
362
+ base: "0.25rem",
363
+ // 4px
364
+ // Spacing scale
365
+ xs: "0.25rem",
366
+ // 4px - Minimal spacing, tight layouts
367
+ s: "0.5rem",
368
+ // 8px - Small gaps, compact components
369
+ m: "1rem",
370
+ // 16px - Default spacing, standard gaps
371
+ l: "1.5rem",
372
+ // 24px - Comfortable spacing, section gaps
373
+ xl: "2rem",
374
+ // 32px - Large spacing, major sections
375
+ "2xl": "2.5rem",
376
+ // 40px - Extra large spacing, page sections
377
+ "3xl": "3rem",
378
+ // 48px - Generous spacing, hero sections
379
+ "4xl": "3.5rem"
380
+ // 56px - Maximum spacing, major layouts
381
+ };
382
+ var spacingPx = {
383
+ base: 4,
384
+ xs: 4,
385
+ s: 8,
386
+ m: 16,
387
+ l: 24,
388
+ xl: 32,
389
+ "2xl": 40,
390
+ "3xl": 48,
391
+ "4xl": 56
392
+ };
393
+ var spacingStyles = {
394
+ // Component padding
395
+ buttonPadding: {
396
+ small: `${spacing.xs} ${spacing.s}`,
397
+ // 4px 8px
398
+ medium: `${spacing.s} ${spacing.m}`,
399
+ // 8px 16px
400
+ large: `${spacing.m} ${spacing.l}`
401
+ // 16px 24px
402
+ },
403
+ // Card spacing
404
+ cardPadding: {
405
+ compact: spacing.m,
406
+ // 16px
407
+ comfortable: spacing.l,
408
+ // 24px
409
+ spacious: spacing.xl
410
+ // 32px
411
+ },
412
+ // Form spacing
413
+ formSpacing: {
414
+ fieldGap: spacing.m,
415
+ // 16px between form fields
416
+ labelGap: spacing.xs,
417
+ // 4px between label and input
418
+ helpGap: spacing.xs
419
+ // 4px between input and help text
420
+ },
421
+ // Layout spacing
422
+ layoutSpacing: {
423
+ sectionGap: spacing["2xl"],
424
+ // 40px between major sections
425
+ componentGap: spacing.xl,
426
+ // 32px between components
427
+ elementGap: spacing.m
428
+ // 16px between elements
429
+ },
430
+ // Grid spacing
431
+ gridGap: {
432
+ tight: spacing.s,
433
+ // 8px
434
+ normal: spacing.m,
435
+ // 16px
436
+ comfortable: spacing.l,
437
+ // 24px
438
+ loose: spacing.xl
439
+ // 32px
440
+ }
441
+ };
442
+ var getSpacing = (token) => {
443
+ return spacing[token];
444
+ };
445
+ var getSpacingPx = (token) => {
446
+ return spacingPx[token];
447
+ };
448
+ var generateSpacingCSS = () => {
449
+ const cssVars = Object.entries(spacing).map(([key, value]) => ` --spacing-${key}: ${value};`).join("\n");
450
+ return `:root {
451
+ /* Spacing tokens */
452
+ ${cssVars}
453
+ }`;
454
+ };
455
+ var tailwindSpacing = {
456
+ "xs": "var(--spacing-xs)",
457
+ "s": "var(--spacing-s)",
458
+ "m": "var(--spacing-m)",
459
+ "l": "var(--spacing-l)",
460
+ "xl": "var(--spacing-xl)",
461
+ "2xl": "var(--spacing-2xl)",
462
+ "3xl": "var(--spacing-3xl)",
463
+ "4xl": "var(--spacing-4xl)"
464
+ };
465
+
466
+ // src/tokens/stroke.ts
467
+ var stroke = {
468
+ // Stroke widths
469
+ 1: "1px",
470
+ 2: "2px"
471
+ };
472
+ var strokeColors = {
473
+ default: "hsl(var(--border))",
474
+ muted: "hsl(var(--muted))",
475
+ primary: "hsl(var(--primary))",
476
+ secondary: "hsl(var(--secondary))",
477
+ destructive: "hsl(var(--destructive))",
478
+ focus: "hsl(var(--ring))",
479
+ transparent: "transparent"
480
+ };
481
+ var strokeStyles = {
482
+ // Default stroke styles
483
+ default: {
484
+ width: stroke[1],
485
+ color: strokeColors.default,
486
+ style: "solid"
487
+ },
488
+ emphasized: {
489
+ width: stroke[2],
490
+ color: strokeColors.default,
491
+ style: "solid"
492
+ },
493
+ // Interactive stroke styles
494
+ focus: {
495
+ width: stroke[2],
496
+ color: strokeColors.focus,
497
+ style: "solid"
498
+ },
499
+ hover: {
500
+ width: stroke[2],
501
+ color: strokeColors.primary,
502
+ style: "solid"
503
+ },
504
+ // Semantic stroke styles
505
+ primary: {
506
+ width: stroke[1],
507
+ color: strokeColors.primary,
508
+ style: "solid"
509
+ },
510
+ primaryEmphasized: {
511
+ width: stroke[2],
512
+ color: strokeColors.primary,
513
+ style: "solid"
514
+ },
515
+ destructive: {
516
+ width: stroke[1],
517
+ color: strokeColors.destructive,
518
+ style: "solid"
519
+ },
520
+ destructiveEmphasized: {
521
+ width: stroke[2],
522
+ color: strokeColors.destructive,
523
+ style: "solid"
524
+ },
525
+ // Utility stroke styles
526
+ muted: {
527
+ width: stroke[1],
528
+ color: strokeColors.muted,
529
+ style: "solid"
530
+ },
531
+ transparent: {
532
+ width: stroke[1],
533
+ color: strokeColors.transparent,
534
+ style: "solid"
535
+ }
536
+ };
537
+ var componentStrokes = {
538
+ // Button component strokes
539
+ button: {
540
+ outline: strokeStyles.primary,
541
+ outlineHover: strokeStyles.primaryEmphasized,
542
+ outlineFocus: strokeStyles.focus,
543
+ destructiveOutline: strokeStyles.destructive,
544
+ destructiveOutlineHover: strokeStyles.destructiveEmphasized
545
+ },
546
+ // Card component strokes
547
+ card: {
548
+ default: strokeStyles.default,
549
+ emphasized: strokeStyles.emphasized,
550
+ interactive: strokeStyles.default,
551
+ interactiveHover: strokeStyles.hover,
552
+ selected: strokeStyles.primaryEmphasized
553
+ },
554
+ // Form component strokes
555
+ form: {
556
+ input: strokeStyles.default,
557
+ inputFocus: strokeStyles.focus,
558
+ inputError: strokeStyles.destructive,
559
+ inputDisabled: strokeStyles.muted,
560
+ select: strokeStyles.default,
561
+ checkbox: strokeStyles.default,
562
+ checkboxChecked: strokeStyles.primary
563
+ },
564
+ // Navigation component strokes
565
+ navigation: {
566
+ divider: strokeStyles.default,
567
+ tabActive: strokeStyles.primaryEmphasized,
568
+ tabInactive: strokeStyles.transparent,
569
+ tabHover: strokeStyles.default
570
+ },
571
+ // Layout component strokes
572
+ layout: {
573
+ divider: strokeStyles.default,
574
+ section: strokeStyles.muted,
575
+ container: strokeStyles.default
576
+ }
577
+ };
578
+ var strokeDirections = {
579
+ all: "border",
580
+ top: "border-top",
581
+ right: "border-right",
582
+ bottom: "border-bottom",
583
+ left: "border-left",
584
+ horizontal: ["border-left", "border-right"],
585
+ vertical: ["border-top", "border-bottom"]
586
+ };
587
+ var getStroke = (token) => {
588
+ return stroke[token];
589
+ };
590
+ var getStrokeColor = (token) => {
591
+ return strokeColors[token];
592
+ };
593
+ var createStroke = (width, color = "default", style = "solid") => {
594
+ return `${stroke[width]} ${style} ${strokeColors[color]}`;
595
+ };
596
+ var generateStrokesCSS = () => {
597
+ const widthVars = Object.entries(stroke).map(([key, value]) => ` --stroke-${key}: ${value};`).join("\n");
598
+ const colorVars = Object.entries(strokeColors).map(([key, value]) => ` --stroke-color-${key}: ${value};`).join("\n");
599
+ return `:root {
600
+ /* Stroke width tokens */
601
+ ${widthVars}
602
+
603
+ /* Stroke color tokens */
604
+ ${colorVars}
605
+ }`;
606
+ };
607
+ var tailwindStrokes = {
608
+ // Border widths
609
+ borderWidth: {
610
+ "stroke-1": "var(--stroke-1)",
611
+ "stroke-2": "var(--stroke-2)"
612
+ },
613
+ // Outline widths
614
+ outlineWidth: {
615
+ "stroke-1": "var(--stroke-1)",
616
+ "stroke-2": "var(--stroke-2)"
617
+ },
618
+ // Border colors (using existing design system colors)
619
+ borderColor: {
620
+ "stroke-default": "var(--stroke-color-default)",
621
+ "stroke-muted": "var(--stroke-color-muted)",
622
+ "stroke-primary": "var(--stroke-color-primary)",
623
+ "stroke-destructive": "var(--stroke-color-destructive)",
624
+ "stroke-focus": "var(--stroke-color-focus)"
625
+ }
626
+ };
627
+ var strokeTransitions = {
628
+ fast: "border-width 0.15s ease-in-out, border-color 0.15s ease-in-out",
629
+ medium: "border-width 0.2s ease-in-out, border-color 0.2s ease-in-out",
630
+ slow: "border-width 0.3s ease-in-out, border-color 0.3s ease-in-out",
631
+ colorOnly: "border-color 0.2s ease-in-out",
632
+ widthOnly: "border-width 0.2s ease-in-out"
633
+ };
634
+ var responsiveStrokes = {
635
+ mobile: {
636
+ default: stroke[1],
637
+ emphasized: stroke[1]
638
+ // Reduce emphasis on mobile
639
+ },
640
+ tablet: {
641
+ default: stroke[1],
642
+ emphasized: stroke[2]
643
+ },
644
+ desktop: {
645
+ default: stroke[1],
646
+ emphasized: stroke[2]
647
+ }
648
+ };
649
+
650
+ // src/tokens/badge.ts
651
+ var badgeTokens = {
652
+ colors: {
653
+ inProgress: {
654
+ text: colors.secondary[600],
655
+ background: colors.secondary[200]
656
+ },
657
+ success: {
658
+ text: colors.green[600],
659
+ background: colors.green[100]
660
+ },
661
+ pending: {
662
+ text: colors.primary[700],
663
+ background: colors.primary[200]
664
+ },
665
+ danger: {
666
+ text: colors.neutral[10],
667
+ background: colors.red[400]
668
+ },
669
+ default: {
670
+ text: colors.secondary[1e3],
671
+ background: colors.secondary[1100],
672
+ textOnSolid: colors.secondary[200]
673
+ }
674
+ },
675
+ sizes: {
676
+ sm: "12px",
677
+ md: "14px",
678
+ lg: "16px"
679
+ },
680
+ padding: {
681
+ vertical: "4px",
682
+ horizontal: "12px"
683
+ },
684
+ icon: {
685
+ size: "16px"
686
+ }
687
+ };
688
+
689
+ // src/tokens/tag.ts
690
+ var tagTokens = {
691
+ colors: {
692
+ default: {
693
+ background: colors.primary[200],
694
+ text: colors.primary[900],
695
+ bullet: colors.primary[1200],
696
+ closeIconBorder: colors.primary[300],
697
+ hover: {
698
+ background: colors.primary[300],
699
+ closeIconBorder: colors.primary[700]
700
+ }
701
+ },
702
+ success: {
703
+ background: colors.green[100],
704
+ text: colors.green[600],
705
+ bullet: colors.green[600],
706
+ closeIconBorder: colors.green[600],
707
+ hover: {
708
+ background: "#a7f3d0",
709
+ // Valor cercano a un "green-200"
710
+ closeIconBorder: colors.green[600]
711
+ }
712
+ },
713
+ warning: {
714
+ background: colors.yellow[100],
715
+ text: colors.yellow[300],
716
+ bullet: colors.yellow[300],
717
+ closeIconBorder: colors.yellow[300],
718
+ hover: {
719
+ background: "#fde68a",
720
+ // Valor cercano a un "yellow-200"
721
+ closeIconBorder: colors.yellow[300]
722
+ }
723
+ },
724
+ danger: {
725
+ background: colors.red[100],
726
+ text: colors.red[600],
727
+ bullet: colors.red[600],
728
+ closeIconBorder: colors.red[600],
729
+ hover: {
730
+ background: "#fecaca",
731
+ // Valor cercano a un "red-200"
732
+ closeIconBorder: colors.red[600]
733
+ }
734
+ }
735
+ },
736
+ fontSize: "12px",
737
+ padding: {
738
+ x: "8px",
739
+ y: "0px"
740
+ },
741
+ borderRadius: "6px",
742
+ iconSize: "12px"
743
+ };
744
+
745
+ exports.badgeTokens = badgeTokens;
746
+ exports.colors = colors;
747
+ exports.componentStrokes = componentStrokes;
748
+ exports.createStroke = createStroke;
749
+ exports.fontFamily = fontFamily;
750
+ exports.fontSize = fontSize;
751
+ exports.fontWeight = fontWeight;
752
+ exports.generateSpacingCSS = generateSpacingCSS;
753
+ exports.generateStrokesCSS = generateStrokesCSS;
754
+ exports.generateTypographyCSS = generateTypographyCSS;
755
+ exports.getSpacing = getSpacing;
756
+ exports.getSpacingPx = getSpacingPx;
757
+ exports.getStroke = getStroke;
758
+ exports.getStrokeColor = getStrokeColor;
759
+ exports.letterSpacing = letterSpacing;
760
+ exports.lineHeight = lineHeight;
761
+ exports.presets = presets;
762
+ exports.responsiveStrokes = responsiveStrokes;
763
+ exports.spacing = spacing;
764
+ exports.spacingPx = spacingPx;
765
+ exports.spacingStyles = spacingStyles;
766
+ exports.stroke = stroke;
767
+ exports.strokeColors = strokeColors;
768
+ exports.strokeDirections = strokeDirections;
769
+ exports.strokeStyles = strokeStyles;
770
+ exports.strokeTransitions = strokeTransitions;
771
+ exports.tagTokens = tagTokens;
772
+ exports.tailwindSpacing = tailwindSpacing;
773
+ exports.tailwindStrokes = tailwindStrokes;
774
+ exports.typography = typography;
775
+ exports.typographyVars = typographyVars;