@grupor5/raya 0.2.1 → 0.2.3

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 +68 -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,292 @@
1
+ // src/tokens/typography.ts
2
+ var typography = {
3
+ fontFamily: {
4
+ primary: [
5
+ "Rubik",
6
+ "-apple-system",
7
+ "BlinkMacSystemFont",
8
+ "Segoe UI",
9
+ "Roboto",
10
+ "Oxygen",
11
+ "Ubuntu",
12
+ "Cantarell",
13
+ "sans-serif"
14
+ ]
15
+ },
16
+ fontWeight: {
17
+ light: 300,
18
+ regular: 400,
19
+ medium: 500,
20
+ semibold: 600,
21
+ bold: 700
22
+ },
23
+ fontSize: {
24
+ // Display Scale - Large typography for hero sections and prominent headers
25
+ display: {
26
+ l: "2.5rem"
27
+ // 40px - Display/L
28
+ },
29
+ // Heading Scale - Semantic headings with Bold weight
30
+ heading: {
31
+ xl: "2.25rem",
32
+ // 36px - Heading/XL
33
+ lg: "2rem",
34
+ // 32px - Heading/L
35
+ md: "1.75rem",
36
+ // 28px - Heading/M
37
+ sm: "1.5rem"
38
+ // 24px - Heading/S
39
+ },
40
+ // Subheading Scale - Secondary headings with Bold weight
41
+ subheading: {
42
+ lg: "1.25rem",
43
+ // 20px - Subheading/L
44
+ md: "1.125rem",
45
+ // 18px - Subheading/M
46
+ sm: "1rem"
47
+ // 16px - Subheading/S
48
+ },
49
+ // Body Scale - Text content with Regular and Semi-bold variants
50
+ body: {
51
+ // Body Bold variants (Semi-bold weight)
52
+ "bold-lg": "1.125rem",
53
+ // 18px - Body/Bold/L
54
+ "bold-md": "1rem",
55
+ // 16px - Body/Bold/M
56
+ "bold-sm": "0.875rem",
57
+ // 14px - Body/Bold/S
58
+ "bold-xs": "0.75rem",
59
+ // 12px - Body/Bold/XS
60
+ // Body Regular variants
61
+ lg: "1.125rem",
62
+ // 18px - Body/L
63
+ md: "1rem",
64
+ // 16px - Body/M
65
+ sm: "0.875rem",
66
+ // 14px - Body/S
67
+ xs: "0.75rem"
68
+ // 12px - Body/XS
69
+ },
70
+ // Caption Scale - Small text for labels and metadata
71
+ caption: {
72
+ "c1": "0.75rem"
73
+ // 12px - Caption/C-1
74
+ }
75
+ },
76
+ lineHeight: {
77
+ // Display line heights
78
+ display: {
79
+ l: "3.25rem"
80
+ // 52px - Display/L
81
+ },
82
+ // Heading line heights
83
+ heading: {
84
+ xl: "2.75rem",
85
+ // 44px - Heading/XL
86
+ lg: "2.5rem",
87
+ // 40px - Heading/L
88
+ md: "2.25rem",
89
+ // 36px - Heading/M
90
+ sm: "2rem"
91
+ // 32px - Heading/S
92
+ },
93
+ // Subheading line heights
94
+ subheading: {
95
+ lg: "1.75rem",
96
+ // 28px - Subheading/L
97
+ md: "1.5rem",
98
+ // 24px - Subheading/M
99
+ sm: "1.25rem"
100
+ // 20px - Subheading/S
101
+ },
102
+ // Body line heights (same for both bold and regular)
103
+ body: {
104
+ lg: "1.75rem",
105
+ // 28px - Body/L & Body/Bold/L
106
+ md: "1.5rem",
107
+ // 24px - Body/M & Body/Bold/M
108
+ sm: "1.25rem",
109
+ // 20px - Body/S & Body/Bold/S
110
+ xs: "1.25rem"
111
+ // 20px - Body/XS & Body/Bold/XS
112
+ },
113
+ // Caption line heights
114
+ caption: {
115
+ c1: "1.125rem"
116
+ // 18px - Caption/C-1
117
+ }
118
+ },
119
+ // Letter spacing values
120
+ letterSpacing: {
121
+ normal: "0px",
122
+ // 0px - Default for most text
123
+ caption: "4px"
124
+ // 4px - Caption/C-1 specific
125
+ },
126
+ // Pre-composed typography styles for common use cases
127
+ presets: {
128
+ // Display presets
129
+ "display-l": {
130
+ fontSize: "2.5rem",
131
+ lineHeight: "3.25rem",
132
+ fontWeight: 700,
133
+ letterSpacing: "0px"
134
+ },
135
+ // Heading presets (all use Bold weight)
136
+ "heading-xl": {
137
+ fontSize: "2.25rem",
138
+ lineHeight: "2.75rem",
139
+ fontWeight: 700,
140
+ letterSpacing: "0px"
141
+ },
142
+ "heading-lg": {
143
+ fontSize: "2rem",
144
+ lineHeight: "2.5rem",
145
+ fontWeight: 700,
146
+ letterSpacing: "0px"
147
+ },
148
+ "heading-md": {
149
+ fontSize: "1.75rem",
150
+ lineHeight: "2.25rem",
151
+ fontWeight: 700,
152
+ letterSpacing: "0px"
153
+ },
154
+ "heading-sm": {
155
+ fontSize: "1.5rem",
156
+ lineHeight: "2rem",
157
+ fontWeight: 700,
158
+ letterSpacing: "0px"
159
+ },
160
+ // Subheading presets (all use Bold weight)
161
+ "subheading-lg": {
162
+ fontSize: "1.25rem",
163
+ lineHeight: "1.75rem",
164
+ fontWeight: 700,
165
+ letterSpacing: "0px"
166
+ },
167
+ "subheading-md": {
168
+ fontSize: "1.125rem",
169
+ lineHeight: "1.5rem",
170
+ fontWeight: 700,
171
+ letterSpacing: "0px"
172
+ },
173
+ "subheading-sm": {
174
+ fontSize: "1rem",
175
+ lineHeight: "1.25rem",
176
+ fontWeight: 700,
177
+ letterSpacing: "0px"
178
+ },
179
+ // Body Bold presets (Semi-bold weight)
180
+ "body-bold-lg": {
181
+ fontSize: "1.125rem",
182
+ lineHeight: "1.75rem",
183
+ fontWeight: 600,
184
+ letterSpacing: "0px"
185
+ },
186
+ "body-bold-md": {
187
+ fontSize: "1rem",
188
+ lineHeight: "1.5rem",
189
+ fontWeight: 600,
190
+ letterSpacing: "0px"
191
+ },
192
+ "body-bold-sm": {
193
+ fontSize: "0.875rem",
194
+ lineHeight: "1.25rem",
195
+ fontWeight: 600,
196
+ letterSpacing: "0px"
197
+ },
198
+ "body-bold-xs": {
199
+ fontSize: "0.75rem",
200
+ lineHeight: "1.25rem",
201
+ fontWeight: 600,
202
+ letterSpacing: "0px"
203
+ },
204
+ // Body Regular presets
205
+ "body-lg": {
206
+ fontSize: "1.125rem",
207
+ lineHeight: "1.75rem",
208
+ fontWeight: 400,
209
+ letterSpacing: "0px"
210
+ },
211
+ "body-md": {
212
+ fontSize: "1rem",
213
+ lineHeight: "1.5rem",
214
+ fontWeight: 400,
215
+ letterSpacing: "0px"
216
+ },
217
+ "body-sm": {
218
+ fontSize: "0.875rem",
219
+ lineHeight: "1.25rem",
220
+ fontWeight: 400,
221
+ letterSpacing: "0px"
222
+ },
223
+ "body-xs": {
224
+ fontSize: "0.75rem",
225
+ lineHeight: "1.25rem",
226
+ fontWeight: 400,
227
+ letterSpacing: "0px"
228
+ },
229
+ // Caption presets
230
+ "caption-c1": {
231
+ fontSize: "0.75rem",
232
+ lineHeight: "1.125rem",
233
+ fontWeight: 400,
234
+ letterSpacing: "4px"
235
+ }
236
+ }
237
+ };
238
+ var typographyVars = {
239
+ // Font family
240
+ "--font-primary": typography.fontFamily.primary.join(", "),
241
+ // Font weights
242
+ "--font-weight-light": typography.fontWeight.light,
243
+ "--font-weight-regular": typography.fontWeight.regular,
244
+ "--font-weight-medium": typography.fontWeight.medium,
245
+ "--font-weight-semibold": typography.fontWeight.semibold,
246
+ "--font-weight-bold": typography.fontWeight.bold,
247
+ // Display scale
248
+ "--text-display-l": typography.fontSize.display.l,
249
+ // Heading scale
250
+ "--text-heading-xl": typography.fontSize.heading.xl,
251
+ "--text-heading-lg": typography.fontSize.heading.lg,
252
+ "--text-heading-md": typography.fontSize.heading.md,
253
+ "--text-heading-sm": typography.fontSize.heading.sm,
254
+ // Subheading scale
255
+ "--text-subheading-lg": typography.fontSize.subheading.lg,
256
+ "--text-subheading-md": typography.fontSize.subheading.md,
257
+ "--text-subheading-sm": typography.fontSize.subheading.sm,
258
+ // Body scale
259
+ "--text-body-bold-lg": typography.fontSize.body["bold-lg"],
260
+ "--text-body-bold-md": typography.fontSize.body["bold-md"],
261
+ "--text-body-bold-sm": typography.fontSize.body["bold-sm"],
262
+ "--text-body-bold-xs": typography.fontSize.body["bold-xs"],
263
+ "--text-body-lg": typography.fontSize.body.lg,
264
+ "--text-body-md": typography.fontSize.body.md,
265
+ "--text-body-sm": typography.fontSize.body.sm,
266
+ "--text-body-xs": typography.fontSize.body.xs,
267
+ // Caption scale
268
+ "--text-caption-c1": typography.fontSize.caption.c1,
269
+ // Line heights
270
+ "--leading-display-l": typography.lineHeight.display.l,
271
+ "--leading-heading-xl": typography.lineHeight.heading.xl,
272
+ "--leading-heading-lg": typography.lineHeight.heading.lg,
273
+ "--leading-heading-md": typography.lineHeight.heading.md,
274
+ "--leading-heading-sm": typography.lineHeight.heading.sm,
275
+ "--leading-subheading-lg": typography.lineHeight.subheading.lg,
276
+ "--leading-subheading-md": typography.lineHeight.subheading.md,
277
+ "--leading-subheading-sm": typography.lineHeight.subheading.sm,
278
+ "--leading-body-lg": typography.lineHeight.body.lg,
279
+ "--leading-body-md": typography.lineHeight.body.md,
280
+ "--leading-body-sm": typography.lineHeight.body.sm,
281
+ "--leading-body-xs": typography.lineHeight.body.xs,
282
+ "--leading-caption-c1": typography.lineHeight.caption.c1,
283
+ // Letter spacing
284
+ "--tracking-normal": typography.letterSpacing.normal,
285
+ "--tracking-caption": typography.letterSpacing.caption
286
+ };
287
+ var generateTypographyCSS = () => {
288
+ return Object.entries(typographyVars).map(([property, value]) => ` ${property}: ${value};`).join("\n");
289
+ };
290
+ var { fontFamily, fontWeight, fontSize, lineHeight, letterSpacing, presets } = typography;
291
+
292
+ export { fontFamily, fontSize, fontWeight, generateTypographyCSS, letterSpacing, lineHeight, presets, typography, typographyVars };
@@ -0,0 +1,3 @@
1
+ declare function classNames(...classes: (string | undefined | null | false)[]): string;
2
+
3
+ export { classNames };
@@ -0,0 +1,3 @@
1
+ declare function classNames(...classes: (string | undefined | null | false)[]): string;
2
+
3
+ export { classNames };
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ // src/utils/classNames.ts
4
+ function classNames(...classes) {
5
+ return classes.filter(Boolean).join(" ");
6
+ }
7
+
8
+ exports.classNames = classNames;
@@ -0,0 +1,6 @@
1
+ // src/utils/classNames.ts
2
+ function classNames(...classes) {
3
+ return classes.filter(Boolean).join(" ");
4
+ }
5
+
6
+ export { classNames };
@@ -0,0 +1,5 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ declare function cn(...inputs: ClassValue[]): string;
4
+
5
+ export { cn };
@@ -0,0 +1,5 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ declare function cn(...inputs: ClassValue[]): string;
4
+
5
+ export { cn };
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var clsx = require('clsx');
4
+ var tailwindMerge = require('tailwind-merge');
5
+
6
+ // src/utils/cn.ts
7
+ function cn(...inputs) {
8
+ return tailwindMerge.twMerge(clsx.clsx(inputs));
9
+ }
10
+
11
+ exports.cn = cn;
@@ -0,0 +1,9 @@
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+
4
+ // src/utils/cn.ts
5
+ function cn(...inputs) {
6
+ return twMerge(clsx(inputs));
7
+ }
8
+
9
+ export { cn };
@@ -0,0 +1,3 @@
1
+ export { classNames } from './classNames.mjs';
2
+ export { cn } from './cn.mjs';
3
+ import 'clsx';
@@ -0,0 +1,3 @@
1
+ export { classNames } from './classNames.js';
2
+ export { cn } from './cn.js';
3
+ import 'clsx';
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var clsx = require('clsx');
4
+ var tailwindMerge = require('tailwind-merge');
5
+
6
+ // src/utils/classNames.ts
7
+ function classNames(...classes) {
8
+ return classes.filter(Boolean).join(" ");
9
+ }
10
+ function cn(...inputs) {
11
+ return tailwindMerge.twMerge(clsx.clsx(inputs));
12
+ }
13
+
14
+ exports.classNames = classNames;
15
+ exports.cn = cn;
@@ -0,0 +1,12 @@
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+
4
+ // src/utils/classNames.ts
5
+ function classNames(...classes) {
6
+ return classes.filter(Boolean).join(" ");
7
+ }
8
+ function cn(...inputs) {
9
+ return twMerge(clsx(inputs));
10
+ }
11
+
12
+ export { classNames, cn };
package/package.json CHANGED
@@ -1,9 +1,42 @@
1
1
  {
2
2
  "name": "@grupor5/raya",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.js"
12
+ },
13
+ "./atoms/*": {
14
+ "types": "./dist/atoms/*/index.d.ts",
15
+ "import": "./dist/atoms/*/index.mjs",
16
+ "require": "./dist/atoms/*/index.js"
17
+ },
18
+ "./molecules/*": {
19
+ "types": "./dist/molecules/*/index.d.ts",
20
+ "import": "./dist/molecules/*/index.mjs",
21
+ "require": "./dist/molecules/*/index.js"
22
+ },
23
+ "./hooks/*": {
24
+ "types": "./dist/hooks/*.d.ts",
25
+ "import": "./dist/hooks/*.mjs",
26
+ "require": "./dist/hooks/*.js"
27
+ },
28
+ "./utils/*": {
29
+ "types": "./dist/utils/*.d.ts",
30
+ "import": "./dist/utils/*.mjs",
31
+ "require": "./dist/utils/*.js"
32
+ },
33
+ "./tokens/*": {
34
+ "types": "./dist/tokens/*.d.ts",
35
+ "import": "./dist/tokens/*.mjs",
36
+ "require": "./dist/tokens/*.js"
37
+ },
38
+ "./styles/*": "./dist/styles/*"
39
+ },
7
40
  "files": [
8
41
  "dist"
9
42
  ],