@finhay-pro/leaf-design-system 0.1.7 → 0.1.9

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 (160) hide show
  1. package/README.md +384 -212
  2. package/dist/button.css +21 -13
  3. package/dist/calendar.css +325 -0
  4. package/dist/cdn/leaf-0.1.9.min.css +2 -0
  5. package/dist/cdn/leaf-0.1.9.min.js +2 -0
  6. package/dist/checkbox.css +132 -0
  7. package/dist/classes.css +2272 -3155
  8. package/dist/color.css +1 -1
  9. package/dist/components/Button/Button.d.ts.map +1 -1
  10. package/dist/components/Button/Button.js +3 -3
  11. package/dist/components/Button/Button.js.map +1 -1
  12. package/dist/components/Calendar/Calendar.d.ts +49 -0
  13. package/dist/components/Calendar/Calendar.d.ts.map +1 -0
  14. package/dist/components/Calendar/Calendar.js +167 -0
  15. package/dist/components/Calendar/Calendar.js.map +1 -0
  16. package/dist/components/Calendar/index.d.ts +2 -0
  17. package/dist/components/Calendar/index.d.ts.map +1 -0
  18. package/dist/components/Calendar/index.js +2 -0
  19. package/dist/components/Calendar/index.js.map +1 -0
  20. package/dist/components/Checkbox/Checkbox.d.ts +25 -0
  21. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  22. package/dist/components/Checkbox/Checkbox.js +40 -0
  23. package/dist/components/Checkbox/Checkbox.js.map +1 -0
  24. package/dist/components/Checkbox/index.d.ts +2 -0
  25. package/dist/components/Checkbox/index.d.ts.map +1 -0
  26. package/dist/components/Checkbox/index.js +2 -0
  27. package/dist/components/Checkbox/index.js.map +1 -0
  28. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  29. package/dist/components/Dialog/Dialog.js +1 -1
  30. package/dist/components/Dialog/Dialog.js.map +1 -1
  31. package/dist/components/Dropdown/Dropdown.d.ts +62 -0
  32. package/dist/components/Dropdown/Dropdown.d.ts.map +1 -0
  33. package/dist/components/Dropdown/Dropdown.js +199 -0
  34. package/dist/components/Dropdown/Dropdown.js.map +1 -0
  35. package/dist/components/Dropdown/LanguageDropdown.d.ts +15 -0
  36. package/dist/components/Dropdown/LanguageDropdown.d.ts.map +1 -0
  37. package/dist/components/Dropdown/LanguageDropdown.js +18 -0
  38. package/dist/components/Dropdown/LanguageDropdown.js.map +1 -0
  39. package/dist/components/Dropdown/index.d.ts +4 -0
  40. package/dist/components/Dropdown/index.d.ts.map +1 -0
  41. package/dist/components/Dropdown/index.js +5 -0
  42. package/dist/components/Dropdown/index.js.map +1 -0
  43. package/dist/components/Input/Input.d.ts +57 -0
  44. package/dist/components/Input/Input.d.ts.map +1 -0
  45. package/dist/components/Input/Input.js +78 -0
  46. package/dist/components/Input/Input.js.map +1 -0
  47. package/dist/components/Input/InputDate.d.ts +65 -0
  48. package/dist/components/Input/InputDate.d.ts.map +1 -0
  49. package/dist/components/Input/InputDate.js +129 -0
  50. package/dist/components/Input/InputDate.js.map +1 -0
  51. package/dist/components/Input/InputOtp.d.ts +33 -0
  52. package/dist/components/Input/InputOtp.d.ts.map +1 -0
  53. package/dist/components/Input/InputOtp.js +96 -0
  54. package/dist/components/Input/InputOtp.js.map +1 -0
  55. package/dist/components/Input/InputStepper.d.ts +42 -0
  56. package/dist/components/Input/InputStepper.d.ts.map +1 -0
  57. package/dist/components/Input/InputStepper.js +86 -0
  58. package/dist/components/Input/InputStepper.js.map +1 -0
  59. package/dist/components/Input/index.d.ts +5 -0
  60. package/dist/components/Input/index.d.ts.map +1 -0
  61. package/dist/components/Input/index.js +5 -0
  62. package/dist/components/Input/index.js.map +1 -0
  63. package/dist/components/Logo/Logo.d.ts.map +1 -1
  64. package/dist/components/Logo/Logo.js +2 -2
  65. package/dist/components/Logo/Logo.js.map +1 -1
  66. package/dist/components/Radio/Radio.d.ts +39 -0
  67. package/dist/components/Radio/Radio.d.ts.map +1 -0
  68. package/dist/components/Radio/Radio.js +50 -0
  69. package/dist/components/Radio/Radio.js.map +1 -0
  70. package/dist/components/Radio/index.d.ts +2 -0
  71. package/dist/components/Radio/index.d.ts.map +1 -0
  72. package/dist/components/Radio/index.js +2 -0
  73. package/dist/components/Radio/index.js.map +1 -0
  74. package/dist/components/Skeleton/Skeleton.js +1 -1
  75. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  76. package/dist/components/Slider/Slider.d.ts +1 -1
  77. package/dist/components/Slider/Slider.d.ts.map +1 -1
  78. package/dist/components/Slider/Slider.js +9 -6
  79. package/dist/components/Slider/Slider.js.map +1 -1
  80. package/dist/components/Spinner/Spinner.d.ts.map +1 -1
  81. package/dist/components/Spinner/Spinner.js +2 -2
  82. package/dist/components/Spinner/Spinner.js.map +1 -1
  83. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  84. package/dist/components/Tabs/Tabs.js +3 -3
  85. package/dist/components/Tabs/Tabs.js.map +1 -1
  86. package/dist/components/Toast/Toast.d.ts +66 -0
  87. package/dist/components/Toast/Toast.d.ts.map +1 -0
  88. package/dist/components/Toast/Toast.js +77 -0
  89. package/dist/components/Toast/Toast.js.map +1 -0
  90. package/dist/components/Toast/index.d.ts +2 -0
  91. package/dist/components/Toast/index.d.ts.map +1 -0
  92. package/dist/components/Toast/index.js +2 -0
  93. package/dist/components/Toast/index.js.map +1 -0
  94. package/dist/components/Toggle/Toggle.d.ts +2 -1
  95. package/dist/components/Toggle/Toggle.d.ts.map +1 -1
  96. package/dist/components/Toggle/Toggle.js +6 -3
  97. package/dist/components/Toggle/Toggle.js.map +1 -1
  98. package/dist/components/Tooltip/Tooltip.d.ts +13 -1
  99. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  100. package/dist/components/Tooltip/Tooltip.js +2 -2
  101. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  102. package/dist/core/calendar.d.ts +36 -0
  103. package/dist/core/calendar.d.ts.map +1 -0
  104. package/dist/core/calendar.js +65 -0
  105. package/dist/core/calendar.js.map +1 -0
  106. package/dist/core/dropdown.d.ts +66 -0
  107. package/dist/core/dropdown.d.ts.map +1 -0
  108. package/dist/core/dropdown.js +131 -0
  109. package/dist/core/dropdown.js.map +1 -0
  110. package/dist/core/language.d.ts +25 -0
  111. package/dist/core/language.d.ts.map +1 -0
  112. package/dist/core/language.js +17 -0
  113. package/dist/core/language.js.map +1 -0
  114. package/dist/core/otp.d.ts +30 -0
  115. package/dist/core/otp.d.ts.map +1 -0
  116. package/dist/core/otp.js +65 -0
  117. package/dist/core/otp.js.map +1 -0
  118. package/dist/core/stepper.d.ts +39 -0
  119. package/dist/core/stepper.d.ts.map +1 -0
  120. package/dist/core/stepper.js +109 -0
  121. package/dist/core/stepper.js.map +1 -0
  122. package/dist/core/toast.d.ts +67 -0
  123. package/dist/core/toast.d.ts.map +1 -0
  124. package/dist/core/toast.js +102 -0
  125. package/dist/core/toast.js.map +1 -0
  126. package/dist/core/tooltip.d.ts +4 -0
  127. package/dist/core/tooltip.d.ts.map +1 -1
  128. package/dist/core/tooltip.js.map +1 -1
  129. package/dist/dialog.css +42 -4
  130. package/dist/dropdown.css +303 -0
  131. package/dist/index.d.ts +6 -0
  132. package/dist/index.d.ts.map +1 -1
  133. package/dist/index.js +6 -0
  134. package/dist/index.js.map +1 -1
  135. package/dist/input-date.css +49 -0
  136. package/dist/input-otp.css +76 -0
  137. package/dist/input-stepper.css +179 -0
  138. package/dist/input.css +218 -0
  139. package/dist/logo.css +7 -2
  140. package/dist/radio.css +124 -0
  141. package/dist/skeleton.css +4 -0
  142. package/dist/slider.css +36 -6
  143. package/dist/spinner.css +16 -2
  144. package/dist/styles.css +2272 -3191
  145. package/dist/tabs.css +15 -3
  146. package/dist/toast.css +234 -0
  147. package/dist/toggle.css +21 -9
  148. package/dist/tokens.css +0 -36
  149. package/dist/tooltip.css +17 -3
  150. package/package.json +10 -9
  151. package/dist/border.css +0 -182
  152. package/dist/cdn/leaf-0.1.7.min.css +0 -2
  153. package/dist/cdn/leaf-0.1.7.min.js +0 -2
  154. package/dist/flex.css +0 -229
  155. package/dist/grid.css +0 -533
  156. package/dist/overflow.css +0 -72
  157. package/dist/position.css +0 -140
  158. package/dist/sizing.css +0 -377
  159. package/dist/spacing.css +0 -906
  160. package/dist/text-layout.css +0 -219
package/dist/sizing.css DELETED
@@ -1,377 +0,0 @@
1
- /* @finhay-pro/leaf-design-system — generated by scripts/build-css.mjs. Do not edit. */
2
- @layer theme, base, components, utilities;
3
-
4
- /* --- src/styles/sizing.css --- */
5
-
6
- /*
7
- * Sizing classes — keyword + phân số.
8
- *
9
- * Chỉ size tương đối / keyword (`full`, `auto`, `1/2`…). Size cố định (w-80…)
10
- * để app viết trong SCSS module.
11
- *
12
- * Nằm trong @layer components (cùng lý do với flex.css).
13
- */
14
-
15
- @layer components {
16
- .w-0 {
17
- width: 0px;
18
- }
19
-
20
- .w-px {
21
- width: 1px;
22
- }
23
-
24
- .w-full {
25
- width: 100%;
26
- }
27
-
28
- .w-auto {
29
- width: auto;
30
- }
31
-
32
- .w-fit {
33
- width: fit-content;
34
- }
35
-
36
- .w-min {
37
- width: min-content;
38
- }
39
-
40
- .w-max {
41
- width: max-content;
42
- }
43
-
44
- .w-screen {
45
- width: 100vw;
46
- }
47
-
48
- .h-0 {
49
- height: 0px;
50
- }
51
-
52
- .h-px {
53
- height: 1px;
54
- }
55
-
56
- .h-full {
57
- height: 100%;
58
- }
59
-
60
- .h-auto {
61
- height: auto;
62
- }
63
-
64
- .h-fit {
65
- height: fit-content;
66
- }
67
-
68
- .h-min {
69
- height: min-content;
70
- }
71
-
72
- .h-max {
73
- height: max-content;
74
- }
75
-
76
- .h-screen {
77
- height: 100vh;
78
- }
79
-
80
- .h-dvh {
81
- height: 100dvh;
82
- }
83
-
84
- .w-1\/2 {
85
- width: calc(1 / 2 * 100%);
86
- }
87
-
88
- .w-1\/3 {
89
- width: calc(1 / 3 * 100%);
90
- }
91
-
92
- .w-2\/3 {
93
- width: calc(2 / 3 * 100%);
94
- }
95
-
96
- .w-1\/4 {
97
- width: calc(1 / 4 * 100%);
98
- }
99
-
100
- .w-2\/4 {
101
- width: calc(2 / 4 * 100%);
102
- }
103
-
104
- .w-3\/4 {
105
- width: calc(3 / 4 * 100%);
106
- }
107
-
108
- .w-1\/5 {
109
- width: calc(1 / 5 * 100%);
110
- }
111
-
112
- .w-2\/5 {
113
- width: calc(2 / 5 * 100%);
114
- }
115
-
116
- .w-3\/5 {
117
- width: calc(3 / 5 * 100%);
118
- }
119
-
120
- .w-4\/5 {
121
- width: calc(4 / 5 * 100%);
122
- }
123
-
124
- .w-1\/6 {
125
- width: calc(1 / 6 * 100%);
126
- }
127
-
128
- .w-2\/6 {
129
- width: calc(2 / 6 * 100%);
130
- }
131
-
132
- .w-3\/6 {
133
- width: calc(3 / 6 * 100%);
134
- }
135
-
136
- .w-4\/6 {
137
- width: calc(4 / 6 * 100%);
138
- }
139
-
140
- .w-5\/6 {
141
- width: calc(5 / 6 * 100%);
142
- }
143
-
144
- .w-1\/12 {
145
- width: calc(1 / 12 * 100%);
146
- }
147
-
148
- .w-2\/12 {
149
- width: calc(2 / 12 * 100%);
150
- }
151
-
152
- .w-3\/12 {
153
- width: calc(3 / 12 * 100%);
154
- }
155
-
156
- .w-4\/12 {
157
- width: calc(4 / 12 * 100%);
158
- }
159
-
160
- .w-5\/12 {
161
- width: calc(5 / 12 * 100%);
162
- }
163
-
164
- .w-6\/12 {
165
- width: calc(6 / 12 * 100%);
166
- }
167
-
168
- .w-7\/12 {
169
- width: calc(7 / 12 * 100%);
170
- }
171
-
172
- .w-8\/12 {
173
- width: calc(8 / 12 * 100%);
174
- }
175
-
176
- .w-9\/12 {
177
- width: calc(9 / 12 * 100%);
178
- }
179
-
180
- .w-10\/12 {
181
- width: calc(10 / 12 * 100%);
182
- }
183
-
184
- .w-11\/12 {
185
- width: calc(11 / 12 * 100%);
186
- }
187
-
188
- .h-1\/2 {
189
- height: calc(1 / 2 * 100%);
190
- }
191
-
192
- .h-1\/3 {
193
- height: calc(1 / 3 * 100%);
194
- }
195
-
196
- .h-2\/3 {
197
- height: calc(2 / 3 * 100%);
198
- }
199
-
200
- .h-1\/4 {
201
- height: calc(1 / 4 * 100%);
202
- }
203
-
204
- .h-2\/4 {
205
- height: calc(2 / 4 * 100%);
206
- }
207
-
208
- .h-3\/4 {
209
- height: calc(3 / 4 * 100%);
210
- }
211
-
212
- .h-1\/5 {
213
- height: calc(1 / 5 * 100%);
214
- }
215
-
216
- .h-2\/5 {
217
- height: calc(2 / 5 * 100%);
218
- }
219
-
220
- .h-3\/5 {
221
- height: calc(3 / 5 * 100%);
222
- }
223
-
224
- .h-4\/5 {
225
- height: calc(4 / 5 * 100%);
226
- }
227
-
228
- .h-1\/6 {
229
- height: calc(1 / 6 * 100%);
230
- }
231
-
232
- .h-2\/6 {
233
- height: calc(2 / 6 * 100%);
234
- }
235
-
236
- .h-3\/6 {
237
- height: calc(3 / 6 * 100%);
238
- }
239
-
240
- .h-4\/6 {
241
- height: calc(4 / 6 * 100%);
242
- }
243
-
244
- .h-5\/6 {
245
- height: calc(5 / 6 * 100%);
246
- }
247
-
248
- .h-1\/12 {
249
- height: calc(1 / 12 * 100%);
250
- }
251
-
252
- .h-2\/12 {
253
- height: calc(2 / 12 * 100%);
254
- }
255
-
256
- .h-3\/12 {
257
- height: calc(3 / 12 * 100%);
258
- }
259
-
260
- .h-4\/12 {
261
- height: calc(4 / 12 * 100%);
262
- }
263
-
264
- .h-5\/12 {
265
- height: calc(5 / 12 * 100%);
266
- }
267
-
268
- .h-6\/12 {
269
- height: calc(6 / 12 * 100%);
270
- }
271
-
272
- .h-7\/12 {
273
- height: calc(7 / 12 * 100%);
274
- }
275
-
276
- .h-8\/12 {
277
- height: calc(8 / 12 * 100%);
278
- }
279
-
280
- .h-9\/12 {
281
- height: calc(9 / 12 * 100%);
282
- }
283
-
284
- .h-10\/12 {
285
- height: calc(10 / 12 * 100%);
286
- }
287
-
288
- .h-11\/12 {
289
- height: calc(11 / 12 * 100%);
290
- }
291
-
292
- .size-full {
293
- width: 100%;
294
- height: 100%;
295
- }
296
-
297
- .size-auto {
298
- width: auto;
299
- height: auto;
300
- }
301
-
302
- .min-w-0 {
303
- min-width: 0px;
304
- }
305
-
306
- .min-w-full {
307
- min-width: 100%;
308
- }
309
-
310
- .min-w-fit {
311
- min-width: fit-content;
312
- }
313
-
314
- .min-w-min {
315
- min-width: min-content;
316
- }
317
-
318
- .min-w-max {
319
- min-width: max-content;
320
- }
321
-
322
- .max-w-full {
323
- max-width: 100%;
324
- }
325
-
326
- .max-w-fit {
327
- max-width: fit-content;
328
- }
329
-
330
- .max-w-min {
331
- max-width: min-content;
332
- }
333
-
334
- .max-w-max {
335
- max-width: max-content;
336
- }
337
-
338
- .max-w-none {
339
- max-width: none;
340
- }
341
-
342
- .min-h-0 {
343
- min-height: 0px;
344
- }
345
-
346
- .min-h-full {
347
- min-height: 100%;
348
- }
349
-
350
- .min-h-fit {
351
- min-height: fit-content;
352
- }
353
-
354
- .min-h-screen {
355
- min-height: 100vh;
356
- }
357
-
358
- .min-h-dvh {
359
- min-height: 100dvh;
360
- }
361
-
362
- .max-h-full {
363
- max-height: 100%;
364
- }
365
-
366
- .max-h-fit {
367
- max-height: fit-content;
368
- }
369
-
370
- .max-h-screen {
371
- max-height: 100vh;
372
- }
373
-
374
- .max-h-none {
375
- max-height: none;
376
- }
377
- }