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

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 (53) hide show
  1. package/README.md +175 -81
  2. package/dist/border.css +154 -17
  3. package/dist/button.css +2 -12
  4. package/dist/cdn/leaf-0.1.7.min.css +2 -0
  5. package/dist/cdn/leaf-0.1.7.min.js +2 -0
  6. package/dist/classes.css +1898 -268
  7. package/dist/color.css +27 -32
  8. package/dist/components/Button/Button.d.ts.map +1 -1
  9. package/dist/components/Button/Button.js +3 -3
  10. package/dist/components/Button/Button.js.map +1 -1
  11. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  12. package/dist/components/Dialog/Dialog.js +1 -1
  13. package/dist/components/Dialog/Dialog.js.map +1 -1
  14. package/dist/components/Logo/Logo.d.ts.map +1 -1
  15. package/dist/components/Logo/Logo.js +2 -2
  16. package/dist/components/Logo/Logo.js.map +1 -1
  17. package/dist/components/Skeleton/Skeleton.js +1 -1
  18. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  19. package/dist/components/Slider/Slider.js +2 -2
  20. package/dist/components/Slider/Slider.js.map +1 -1
  21. package/dist/components/Spinner/Spinner.d.ts.map +1 -1
  22. package/dist/components/Spinner/Spinner.js +2 -2
  23. package/dist/components/Spinner/Spinner.js.map +1 -1
  24. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  25. package/dist/components/Tabs/Tabs.js +3 -3
  26. package/dist/components/Tabs/Tabs.js.map +1 -1
  27. package/dist/components/Toggle/Toggle.d.ts.map +1 -1
  28. package/dist/components/Toggle/Toggle.js +1 -1
  29. package/dist/components/Toggle/Toggle.js.map +1 -1
  30. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  31. package/dist/components/Tooltip/Tooltip.js +2 -2
  32. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  33. package/dist/dialog.css +4 -36
  34. package/dist/flex.css +229 -0
  35. package/dist/grid.css +533 -0
  36. package/dist/logo.css +2 -7
  37. package/dist/overflow.css +72 -0
  38. package/dist/position.css +140 -0
  39. package/dist/sizing.css +377 -0
  40. package/dist/skeleton.css +0 -4
  41. package/dist/slider.css +3 -31
  42. package/dist/spacing.css +71 -4
  43. package/dist/spinner.css +2 -16
  44. package/dist/styles.css +1909 -276
  45. package/dist/tabs.css +2 -13
  46. package/dist/text-layout.css +219 -0
  47. package/dist/toggle.css +1 -9
  48. package/dist/tokens.css +11 -8
  49. package/dist/tooltip.css +2 -15
  50. package/dist/typography.css +1 -3
  51. package/package.json +7 -1
  52. package/dist/cdn/leaf-0.1.6.min.css +0 -2
  53. package/dist/cdn/leaf-0.1.6.min.js +0 -2
package/dist/grid.css ADDED
@@ -0,0 +1,533 @@
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/grid.css --- */
5
+
6
+ /*
7
+ * Grid classes.
8
+ *
9
+ * Display, template columns/rows, span/start/end, flow, auto-cols/rows, và
10
+ * place/justify-items/self. Gap dùng class spacing (`gap-*`).
11
+ *
12
+ * Nằm trong @layer components (cùng lý do với flex.css).
13
+ */
14
+
15
+ @layer components {
16
+ .grid {
17
+ display: grid;
18
+ }
19
+
20
+ .inline-grid {
21
+ display: inline-grid;
22
+ }
23
+
24
+ /* `hidden` luôn ẩn — cùng lý do với flex.css. */
25
+ .grid[hidden],
26
+ .inline-grid[hidden] {
27
+ display: none;
28
+ }
29
+
30
+ .grid-cols-1 {
31
+ grid-template-columns: repeat(1, minmax(0, 1fr));
32
+ }
33
+
34
+ .grid-cols-2 {
35
+ grid-template-columns: repeat(2, minmax(0, 1fr));
36
+ }
37
+
38
+ .grid-cols-3 {
39
+ grid-template-columns: repeat(3, minmax(0, 1fr));
40
+ }
41
+
42
+ .grid-cols-4 {
43
+ grid-template-columns: repeat(4, minmax(0, 1fr));
44
+ }
45
+
46
+ .grid-cols-5 {
47
+ grid-template-columns: repeat(5, minmax(0, 1fr));
48
+ }
49
+
50
+ .grid-cols-6 {
51
+ grid-template-columns: repeat(6, minmax(0, 1fr));
52
+ }
53
+
54
+ .grid-cols-7 {
55
+ grid-template-columns: repeat(7, minmax(0, 1fr));
56
+ }
57
+
58
+ .grid-cols-8 {
59
+ grid-template-columns: repeat(8, minmax(0, 1fr));
60
+ }
61
+
62
+ .grid-cols-9 {
63
+ grid-template-columns: repeat(9, minmax(0, 1fr));
64
+ }
65
+
66
+ .grid-cols-10 {
67
+ grid-template-columns: repeat(10, minmax(0, 1fr));
68
+ }
69
+
70
+ .grid-cols-11 {
71
+ grid-template-columns: repeat(11, minmax(0, 1fr));
72
+ }
73
+
74
+ .grid-cols-12 {
75
+ grid-template-columns: repeat(12, minmax(0, 1fr));
76
+ }
77
+
78
+ .grid-cols-none {
79
+ grid-template-columns: none;
80
+ }
81
+
82
+ .grid-cols-subgrid {
83
+ grid-template-columns: subgrid;
84
+ }
85
+
86
+ .col-span-1 {
87
+ grid-column: span 1 / span 1;
88
+ }
89
+
90
+ .col-span-2 {
91
+ grid-column: span 2 / span 2;
92
+ }
93
+
94
+ .col-span-3 {
95
+ grid-column: span 3 / span 3;
96
+ }
97
+
98
+ .col-span-4 {
99
+ grid-column: span 4 / span 4;
100
+ }
101
+
102
+ .col-span-5 {
103
+ grid-column: span 5 / span 5;
104
+ }
105
+
106
+ .col-span-6 {
107
+ grid-column: span 6 / span 6;
108
+ }
109
+
110
+ .col-span-7 {
111
+ grid-column: span 7 / span 7;
112
+ }
113
+
114
+ .col-span-8 {
115
+ grid-column: span 8 / span 8;
116
+ }
117
+
118
+ .col-span-9 {
119
+ grid-column: span 9 / span 9;
120
+ }
121
+
122
+ .col-span-10 {
123
+ grid-column: span 10 / span 10;
124
+ }
125
+
126
+ .col-span-11 {
127
+ grid-column: span 11 / span 11;
128
+ }
129
+
130
+ .col-span-12 {
131
+ grid-column: span 12 / span 12;
132
+ }
133
+
134
+ .col-span-full {
135
+ grid-column: 1 / -1;
136
+ }
137
+
138
+ .col-auto {
139
+ grid-column: auto;
140
+ }
141
+
142
+ .col-start-1 {
143
+ grid-column-start: 1;
144
+ }
145
+
146
+ .col-start-2 {
147
+ grid-column-start: 2;
148
+ }
149
+
150
+ .col-start-3 {
151
+ grid-column-start: 3;
152
+ }
153
+
154
+ .col-start-4 {
155
+ grid-column-start: 4;
156
+ }
157
+
158
+ .col-start-5 {
159
+ grid-column-start: 5;
160
+ }
161
+
162
+ .col-start-6 {
163
+ grid-column-start: 6;
164
+ }
165
+
166
+ .col-start-7 {
167
+ grid-column-start: 7;
168
+ }
169
+
170
+ .col-start-8 {
171
+ grid-column-start: 8;
172
+ }
173
+
174
+ .col-start-9 {
175
+ grid-column-start: 9;
176
+ }
177
+
178
+ .col-start-10 {
179
+ grid-column-start: 10;
180
+ }
181
+
182
+ .col-start-11 {
183
+ grid-column-start: 11;
184
+ }
185
+
186
+ .col-start-12 {
187
+ grid-column-start: 12;
188
+ }
189
+
190
+ .col-start-13 {
191
+ grid-column-start: 13;
192
+ }
193
+
194
+ .col-start-auto {
195
+ grid-column-start: auto;
196
+ }
197
+
198
+ .col-end-1 {
199
+ grid-column-end: 1;
200
+ }
201
+
202
+ .col-end-2 {
203
+ grid-column-end: 2;
204
+ }
205
+
206
+ .col-end-3 {
207
+ grid-column-end: 3;
208
+ }
209
+
210
+ .col-end-4 {
211
+ grid-column-end: 4;
212
+ }
213
+
214
+ .col-end-5 {
215
+ grid-column-end: 5;
216
+ }
217
+
218
+ .col-end-6 {
219
+ grid-column-end: 6;
220
+ }
221
+
222
+ .col-end-7 {
223
+ grid-column-end: 7;
224
+ }
225
+
226
+ .col-end-8 {
227
+ grid-column-end: 8;
228
+ }
229
+
230
+ .col-end-9 {
231
+ grid-column-end: 9;
232
+ }
233
+
234
+ .col-end-10 {
235
+ grid-column-end: 10;
236
+ }
237
+
238
+ .col-end-11 {
239
+ grid-column-end: 11;
240
+ }
241
+
242
+ .col-end-12 {
243
+ grid-column-end: 12;
244
+ }
245
+
246
+ .col-end-13 {
247
+ grid-column-end: 13;
248
+ }
249
+
250
+ .col-end-auto {
251
+ grid-column-end: auto;
252
+ }
253
+
254
+ .grid-rows-1 {
255
+ grid-template-rows: repeat(1, minmax(0, 1fr));
256
+ }
257
+
258
+ .grid-rows-2 {
259
+ grid-template-rows: repeat(2, minmax(0, 1fr));
260
+ }
261
+
262
+ .grid-rows-3 {
263
+ grid-template-rows: repeat(3, minmax(0, 1fr));
264
+ }
265
+
266
+ .grid-rows-4 {
267
+ grid-template-rows: repeat(4, minmax(0, 1fr));
268
+ }
269
+
270
+ .grid-rows-5 {
271
+ grid-template-rows: repeat(5, minmax(0, 1fr));
272
+ }
273
+
274
+ .grid-rows-6 {
275
+ grid-template-rows: repeat(6, minmax(0, 1fr));
276
+ }
277
+
278
+ .grid-rows-none {
279
+ grid-template-rows: none;
280
+ }
281
+
282
+ .grid-rows-subgrid {
283
+ grid-template-rows: subgrid;
284
+ }
285
+
286
+ .row-span-1 {
287
+ grid-row: span 1 / span 1;
288
+ }
289
+
290
+ .row-span-2 {
291
+ grid-row: span 2 / span 2;
292
+ }
293
+
294
+ .row-span-3 {
295
+ grid-row: span 3 / span 3;
296
+ }
297
+
298
+ .row-span-4 {
299
+ grid-row: span 4 / span 4;
300
+ }
301
+
302
+ .row-span-5 {
303
+ grid-row: span 5 / span 5;
304
+ }
305
+
306
+ .row-span-6 {
307
+ grid-row: span 6 / span 6;
308
+ }
309
+
310
+ .row-span-full {
311
+ grid-row: 1 / -1;
312
+ }
313
+
314
+ .row-auto {
315
+ grid-row: auto;
316
+ }
317
+
318
+ .row-start-1 {
319
+ grid-row-start: 1;
320
+ }
321
+
322
+ .row-start-2 {
323
+ grid-row-start: 2;
324
+ }
325
+
326
+ .row-start-3 {
327
+ grid-row-start: 3;
328
+ }
329
+
330
+ .row-start-4 {
331
+ grid-row-start: 4;
332
+ }
333
+
334
+ .row-start-5 {
335
+ grid-row-start: 5;
336
+ }
337
+
338
+ .row-start-6 {
339
+ grid-row-start: 6;
340
+ }
341
+
342
+ .row-start-7 {
343
+ grid-row-start: 7;
344
+ }
345
+
346
+ .row-start-auto {
347
+ grid-row-start: auto;
348
+ }
349
+
350
+ .row-end-1 {
351
+ grid-row-end: 1;
352
+ }
353
+
354
+ .row-end-2 {
355
+ grid-row-end: 2;
356
+ }
357
+
358
+ .row-end-3 {
359
+ grid-row-end: 3;
360
+ }
361
+
362
+ .row-end-4 {
363
+ grid-row-end: 4;
364
+ }
365
+
366
+ .row-end-5 {
367
+ grid-row-end: 5;
368
+ }
369
+
370
+ .row-end-6 {
371
+ grid-row-end: 6;
372
+ }
373
+
374
+ .row-end-7 {
375
+ grid-row-end: 7;
376
+ }
377
+
378
+ .row-end-auto {
379
+ grid-row-end: auto;
380
+ }
381
+
382
+ .grid-flow-row {
383
+ grid-auto-flow: row;
384
+ }
385
+
386
+ .grid-flow-col {
387
+ grid-auto-flow: column;
388
+ }
389
+
390
+ .grid-flow-dense {
391
+ grid-auto-flow: dense;
392
+ }
393
+
394
+ .grid-flow-row-dense {
395
+ grid-auto-flow: row dense;
396
+ }
397
+
398
+ .grid-flow-col-dense {
399
+ grid-auto-flow: column dense;
400
+ }
401
+
402
+ .auto-cols-auto {
403
+ grid-auto-columns: auto;
404
+ }
405
+
406
+ .auto-cols-min {
407
+ grid-auto-columns: min-content;
408
+ }
409
+
410
+ .auto-cols-max {
411
+ grid-auto-columns: max-content;
412
+ }
413
+
414
+ .auto-cols-fr {
415
+ grid-auto-columns: minmax(0, 1fr);
416
+ }
417
+
418
+ .auto-rows-auto {
419
+ grid-auto-rows: auto;
420
+ }
421
+
422
+ .auto-rows-min {
423
+ grid-auto-rows: min-content;
424
+ }
425
+
426
+ .auto-rows-max {
427
+ grid-auto-rows: max-content;
428
+ }
429
+
430
+ .auto-rows-fr {
431
+ grid-auto-rows: minmax(0, 1fr);
432
+ }
433
+
434
+ .justify-items-start {
435
+ justify-items: start;
436
+ }
437
+
438
+ .justify-items-end {
439
+ justify-items: end;
440
+ }
441
+
442
+ .justify-items-center {
443
+ justify-items: center;
444
+ }
445
+
446
+ .justify-items-stretch {
447
+ justify-items: stretch;
448
+ }
449
+
450
+ .justify-self-auto {
451
+ justify-self: auto;
452
+ }
453
+
454
+ .justify-self-start {
455
+ justify-self: flex-start;
456
+ }
457
+
458
+ .justify-self-end {
459
+ justify-self: flex-end;
460
+ }
461
+
462
+ .justify-self-center {
463
+ justify-self: center;
464
+ }
465
+
466
+ .justify-self-stretch {
467
+ justify-self: stretch;
468
+ }
469
+
470
+ .place-content-center {
471
+ place-content: center;
472
+ }
473
+
474
+ .place-content-start {
475
+ place-content: start;
476
+ }
477
+
478
+ .place-content-end {
479
+ place-content: end;
480
+ }
481
+
482
+ .place-content-between {
483
+ place-content: space-between;
484
+ }
485
+
486
+ .place-content-around {
487
+ place-content: space-around;
488
+ }
489
+
490
+ .place-content-evenly {
491
+ place-content: space-evenly;
492
+ }
493
+
494
+ .place-content-stretch {
495
+ place-content: stretch;
496
+ }
497
+
498
+ .place-items-start {
499
+ place-items: start;
500
+ }
501
+
502
+ .place-items-end {
503
+ place-items: end;
504
+ }
505
+
506
+ .place-items-center {
507
+ place-items: center;
508
+ }
509
+
510
+ .place-items-stretch {
511
+ place-items: stretch;
512
+ }
513
+
514
+ .place-self-auto {
515
+ place-self: auto;
516
+ }
517
+
518
+ .place-self-start {
519
+ place-self: start;
520
+ }
521
+
522
+ .place-self-end {
523
+ place-self: end;
524
+ }
525
+
526
+ .place-self-center {
527
+ place-self: center;
528
+ }
529
+
530
+ .place-self-stretch {
531
+ place-self: stretch;
532
+ }
533
+ }
package/dist/logo.css CHANGED
@@ -15,10 +15,6 @@
15
15
 
16
16
  @layer components {
17
17
  .leaf-logo {
18
- display: inline-flex;
19
- flex-shrink: 0;
20
- align-items: center;
21
- justify-content: center;
22
18
  margin: 0;
23
19
  padding: 0;
24
20
  border: none;
@@ -27,7 +23,6 @@
27
23
  background-position: center;
28
24
  background-size: contain;
29
25
  line-height: 0;
30
- vertical-align: middle;
31
26
  box-sizing: border-box;
32
27
  }
33
28
 
@@ -42,10 +37,10 @@
42
37
  display: block;
43
38
  height: var(--leaf-logo-size, 40px);
44
39
  width: auto;
45
- max-width: 100%;
40
+ /* max-w-full — class Leaf trên markup (React img) */
46
41
  }
47
42
 
48
- /* `display` ở trên (kể cả `:empty`) thắng `[hidden]` của trình duyệt — khai báo lại, đứng sau. */
43
+ /* `hidden` luôn ẩn — display đến từ class layout; selector `[hidden]` specificity cao hơn nên thắng. */
49
44
  .leaf-logo[hidden] {
50
45
  display: none;
51
46
  }
@@ -0,0 +1,72 @@
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/overflow.css --- */
5
+
6
+ /*
7
+ * Overflow classes.
8
+ *
9
+ * Nằm trong @layer components (cùng lý do với flex.css).
10
+ */
11
+
12
+ @layer components {
13
+ .overflow-auto {
14
+ overflow: auto;
15
+ }
16
+
17
+ .overflow-hidden {
18
+ overflow: hidden;
19
+ }
20
+
21
+ .overflow-clip {
22
+ overflow: clip;
23
+ }
24
+
25
+ .overflow-visible {
26
+ overflow: visible;
27
+ }
28
+
29
+ .overflow-scroll {
30
+ overflow: scroll;
31
+ }
32
+
33
+ .overflow-x-auto {
34
+ overflow-x: auto;
35
+ }
36
+
37
+ .overflow-x-hidden {
38
+ overflow-x: hidden;
39
+ }
40
+
41
+ .overflow-x-clip {
42
+ overflow-x: clip;
43
+ }
44
+
45
+ .overflow-x-visible {
46
+ overflow-x: visible;
47
+ }
48
+
49
+ .overflow-x-scroll {
50
+ overflow-x: scroll;
51
+ }
52
+
53
+ .overflow-y-auto {
54
+ overflow-y: auto;
55
+ }
56
+
57
+ .overflow-y-hidden {
58
+ overflow-y: hidden;
59
+ }
60
+
61
+ .overflow-y-clip {
62
+ overflow-y: clip;
63
+ }
64
+
65
+ .overflow-y-visible {
66
+ overflow-y: visible;
67
+ }
68
+
69
+ .overflow-y-scroll {
70
+ overflow-y: scroll;
71
+ }
72
+ }