@vaneui/ui 0.3.1-alpha.20250925201320.8b6a424 → 0.3.1-alpha.20250927164620.fec55bc

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 (36) hide show
  1. package/dist/components/ui/classes/layoutClasses.d.ts +1 -8
  2. package/dist/components/ui/classes/layoutClasses.d.ts.map +1 -1
  3. package/dist/components/ui/theme/badgeTheme.d.ts.map +1 -1
  4. package/dist/components/ui/theme/buttonTheme.d.ts.map +1 -1
  5. package/dist/components/ui/theme/cardTheme.d.ts.map +1 -1
  6. package/dist/components/ui/theme/checkboxTheme.d.ts.map +1 -1
  7. package/dist/components/ui/theme/chipTheme.d.ts.map +1 -1
  8. package/dist/components/ui/theme/codeTheme.d.ts.map +1 -1
  9. package/dist/components/ui/theme/colTheme.d.ts.map +1 -1
  10. package/dist/components/ui/theme/common/ComponentTheme.d.ts +2 -0
  11. package/dist/components/ui/theme/common/ComponentTheme.d.ts.map +1 -1
  12. package/dist/components/ui/theme/containerTheme.d.ts.map +1 -1
  13. package/dist/components/ui/theme/gridTheme.d.ts.map +1 -1
  14. package/dist/components/ui/theme/inputTheme.d.ts.map +1 -1
  15. package/dist/components/ui/theme/layout/radiusTheme.d.ts +3 -1
  16. package/dist/components/ui/theme/layout/radiusTheme.d.ts.map +1 -1
  17. package/dist/components/ui/theme/rowTheme.d.ts.map +1 -1
  18. package/dist/components/ui/theme/sectionTheme.d.ts.map +1 -1
  19. package/dist/components/ui/theme/size/gapTheme.d.ts +7 -7
  20. package/dist/components/ui/theme/size/gapTheme.d.ts.map +1 -1
  21. package/dist/components/ui/theme/size/pxTheme.d.ts +1 -1
  22. package/dist/components/ui/theme/size/pxTheme.d.ts.map +1 -1
  23. package/dist/components/ui/theme/stackTheme.d.ts.map +1 -1
  24. package/dist/components/ui/theme/typography/lineHeightTheme.d.ts +21 -0
  25. package/dist/components/ui/theme/typography/lineHeightTheme.d.ts.map +1 -0
  26. package/dist/components/ui/theme/typographyTheme.d.ts +2 -1
  27. package/dist/components/ui/theme/typographyTheme.d.ts.map +1 -1
  28. package/dist/index.esm.js +201 -189
  29. package/dist/index.esm.js.map +1 -1
  30. package/dist/index.js +201 -189
  31. package/dist/index.js.map +1 -1
  32. package/dist/ui.css +64 -109
  33. package/dist/vars.css +11 -1
  34. package/package.json +1 -1
  35. package/dist/components/ui/classes/radiusClasses.d.ts +0 -4
  36. package/dist/components/ui/classes/radiusClasses.d.ts.map +0 -1
package/dist/ui.css CHANGED
@@ -49,7 +49,6 @@
49
49
  --color-blue-50: oklch(97% 0.014 254.604);
50
50
  --color-blue-100: oklch(93.2% 0.032 255.585);
51
51
  --color-blue-200: oklch(88.2% 0.059 254.128);
52
- --color-blue-300: oklch(80.9% 0.105 251.813);
53
52
  --color-blue-500: oklch(62.3% 0.214 259.815);
54
53
  --color-blue-600: oklch(54.6% 0.245 262.881);
55
54
  --color-blue-700: oklch(48.8% 0.243 264.376);
@@ -83,7 +82,6 @@
83
82
  --color-gray-950: oklch(13% 0.028 261.692);
84
83
  --color-white: #fff;
85
84
  --spacing: 0.25rem;
86
- --container-md: 28rem;
87
85
  --container-3xl: 48rem;
88
86
  --container-4xl: 56rem;
89
87
  --container-5xl: 64rem;
@@ -250,18 +248,9 @@
250
248
  --color-border-filled-info: var(--color-blue-600);
251
249
  --color-border-filled-link: var(--color-blue-600);
252
250
  --ui-br-unit: 0.125rem;
253
- --ui-br-xs: calc(1 * var(--ui-br-unit));
254
- --ui-br-sm: calc(2 * var(--ui-br-unit));
255
251
  --ui-br-md: calc(3 * var(--ui-br-unit));
256
- --ui-br-lg: calc(4 * var(--ui-br-unit));
257
- --ui-br-xl: calc(5 * var(--ui-br-unit));
258
252
  --layout-br-spacing: 0.25rem;
259
- --layout-br-xs: calc(3 * var(--layout-br-spacing));
260
- --layout-br-sm: calc(4 * var(--layout-br-spacing));
261
- --layout-br-md: calc(5 * var(--layout-br-spacing));
262
- --layout-br-lg: calc(6 * var(--layout-br-spacing));
263
- --layout-br-xl: calc(7 * var(--layout-br-spacing));
264
- --layout-spacing: clamp(0.1rem, 0.16rem + 0.4vw, 0.25rem);
253
+ --layout-spacing: clamp(0.1rem, 0.16rem + 0.4vw, 0.3rem);
265
254
  --ui-spacing: var(--spacing);
266
255
  }
267
256
  }
@@ -432,9 +421,6 @@
432
421
  .sticky {
433
422
  position: sticky;
434
423
  }
435
- .left-3 {
436
- left: calc(var(--spacing) * 3);
437
- }
438
424
  .isolate {
439
425
  isolation: isolate;
440
426
  }
@@ -522,9 +508,6 @@
522
508
  .h-7 {
523
509
  height: calc(var(--spacing) * 7);
524
510
  }
525
- .h-10 {
526
- height: calc(var(--spacing) * 10);
527
- }
528
511
  .h-fit {
529
512
  height: fit-content;
530
513
  }
@@ -567,9 +550,6 @@
567
550
  .max-w-7xl {
568
551
  max-width: var(--container-7xl);
569
552
  }
570
- .max-w-md {
571
- max-width: var(--container-md);
572
- }
573
553
  .transform {
574
554
  transform: var(--tw-rotate-x) var(--tw-rotate-y) var(--tw-rotate-z) var(--tw-skew-x) var(--tw-skew-y);
575
555
  }
@@ -669,18 +649,6 @@
669
649
  .gap-0 {
670
650
  gap: calc(var(--spacing) * 0);
671
651
  }
672
- .gap-1\.5 {
673
- gap: calc(var(--spacing) * 1.5);
674
- }
675
- .gap-2 {
676
- gap: calc(var(--spacing) * 2);
677
- }
678
- .gap-2\.5 {
679
- gap: calc(var(--spacing) * 2.5);
680
- }
681
- .gap-3 {
682
- gap: calc(var(--spacing) * 3);
683
- }
684
652
  .space-y-2 {
685
653
  :where(& > :not(:last-child)) {
686
654
  --tw-space-y-reverse: 0;
@@ -743,35 +711,11 @@
743
711
  .rounded {
744
712
  border-radius: 0.25rem;
745
713
  }
746
- .rounded-\(--layout-br-lg\) {
747
- border-radius: var(--layout-br-lg);
748
- }
749
- .rounded-\(--layout-br-md\) {
750
- border-radius: var(--layout-br-md);
751
- }
752
- .rounded-\(--layout-br-sm\) {
753
- border-radius: var(--layout-br-sm);
754
- }
755
- .rounded-\(--layout-br-xl\) {
756
- border-radius: var(--layout-br-xl);
757
- }
758
- .rounded-\(--layout-br-xs\) {
759
- border-radius: var(--layout-br-xs);
714
+ .rounded-\(--br\) {
715
+ border-radius: var(--br);
760
716
  }
761
- .rounded-\(--ui-br-lg\) {
762
- border-radius: var(--ui-br-lg);
763
- }
764
- .rounded-\(--ui-br-md\) {
765
- border-radius: var(--ui-br-md);
766
- }
767
- .rounded-\(--ui-br-sm\) {
768
- border-radius: var(--ui-br-sm);
769
- }
770
- .rounded-\(--ui-br-xl\) {
771
- border-radius: var(--ui-br-xl);
772
- }
773
- .rounded-\(--ui-br-xs\) {
774
- border-radius: var(--ui-br-xs);
717
+ .rounded-\(--ui-br\) {
718
+ border-radius: var(--ui-br);
775
719
  }
776
720
  .rounded-full {
777
721
  border-radius: calc(infinity * 1px);
@@ -875,21 +819,12 @@
875
819
  .border-\(--color-border-warning\) {
876
820
  border-color: var(--color-border-warning);
877
821
  }
878
- .border-blue-300 {
879
- border-color: var(--color-blue-300);
880
- }
881
- .border-green-200 {
882
- border-color: var(--color-green-200);
883
- }
884
822
  .border-green-500 {
885
823
  border-color: var(--color-green-500);
886
824
  }
887
825
  .border-indigo-400 {
888
826
  border-color: var(--color-indigo-400);
889
827
  }
890
- .border-red-200 {
891
- border-color: var(--color-red-200);
892
- }
893
828
  .border-red-600 {
894
829
  border-color: var(--color-red-600);
895
830
  }
@@ -1058,18 +993,12 @@
1058
993
  .bg-emerald-500 {
1059
994
  background-color: var(--color-emerald-500);
1060
995
  }
1061
- .bg-green-50 {
1062
- background-color: var(--color-green-50);
1063
- }
1064
996
  .bg-green-600 {
1065
997
  background-color: var(--color-green-600);
1066
998
  }
1067
999
  .bg-purple-600 {
1068
1000
  background-color: var(--color-purple-600);
1069
1001
  }
1070
- .bg-red-50 {
1071
- background-color: var(--color-red-50);
1072
- }
1073
1002
  .bg-red-100 {
1074
1003
  background-color: var(--color-red-100);
1075
1004
  }
@@ -1103,24 +1032,12 @@
1103
1032
  .px-\(--ui-px\) {
1104
1033
  padding-inline: var(--ui-px);
1105
1034
  }
1106
- .px-1 {
1107
- padding-inline: calc(var(--spacing) * 1);
1108
- }
1109
- .px-1\.5 {
1110
- padding-inline: calc(var(--spacing) * 1.5);
1111
- }
1112
1035
  .px-2 {
1113
1036
  padding-inline: calc(var(--spacing) * 2);
1114
1037
  }
1115
- .px-2\.5 {
1116
- padding-inline: calc(var(--spacing) * 2.5);
1117
- }
1118
1038
  .px-3 {
1119
1039
  padding-inline: calc(var(--spacing) * 3);
1120
1040
  }
1121
- .px-3\.5 {
1122
- padding-inline: calc(var(--spacing) * 3.5);
1123
- }
1124
1041
  .px-4 {
1125
1042
  padding-inline: calc(var(--spacing) * 4);
1126
1043
  }
@@ -1136,12 +1053,6 @@
1136
1053
  .py-\(--ui-py\) {
1137
1054
  padding-block: var(--ui-py);
1138
1055
  }
1139
- .py-0 {
1140
- padding-block: calc(var(--spacing) * 0);
1141
- }
1142
- .py-0\.5 {
1143
- padding-block: calc(var(--spacing) * 0.5);
1144
- }
1145
1056
  .py-1 {
1146
1057
  padding-block: calc(var(--spacing) * 1);
1147
1058
  }
@@ -1249,6 +1160,10 @@
1249
1160
  font-size: var(--text-xs);
1250
1161
  line-height: var(--tw-leading, var(--text-xs--line-height));
1251
1162
  }
1163
+ .leading-\(--lh\) {
1164
+ --tw-leading: var(--lh);
1165
+ line-height: var(--lh);
1166
+ }
1252
1167
  .leading-relaxed {
1253
1168
  --tw-leading: var(--leading-relaxed);
1254
1169
  line-height: var(--leading-relaxed);
@@ -1369,9 +1284,6 @@
1369
1284
  .text-blue-500 {
1370
1285
  color: var(--color-blue-500);
1371
1286
  }
1372
- .text-gray-500 {
1373
- color: var(--color-gray-500);
1374
- }
1375
1287
  .text-green-500 {
1376
1288
  color: var(--color-green-500);
1377
1289
  }
@@ -1624,23 +1536,38 @@
1624
1536
  .\[--aspect-ratio\:1\.75\] {
1625
1537
  --aspect-ratio: 1.75;
1626
1538
  }
1627
- .\[--aspect-ratio\:1\] {
1628
- --aspect-ratio: 1;
1629
- }
1630
1539
  .\[--aspect-ratio\:2\.5\] {
1631
1540
  --aspect-ratio: 2.5;
1632
1541
  }
1633
1542
  .\[--aspect-ratio\:2\] {
1634
1543
  --aspect-ratio: 2;
1635
1544
  }
1636
- .\[--aspect-ratio\:3\] {
1637
- --aspect-ratio: 3;
1545
+ .\[--br-unit\:1\.5\] {
1546
+ --br-unit: 1.5;
1547
+ }
1548
+ .\[--br-unit\:1\] {
1549
+ --br-unit: 1;
1550
+ }
1551
+ .\[--br-unit\:2\.5\] {
1552
+ --br-unit: 2.5;
1553
+ }
1554
+ .\[--br-unit\:2\] {
1555
+ --br-unit: 2;
1556
+ }
1557
+ .\[--br-unit\:3\] {
1558
+ --br-unit: 3;
1638
1559
  }
1639
- .\[--aspect-ratio\:4\] {
1640
- --aspect-ratio: 4;
1560
+ .\[--br-unit\:4\] {
1561
+ --br-unit: 4;
1641
1562
  }
1642
- .\[--gap-unit\:0\.5\] {
1643
- --gap-unit: 0.5;
1563
+ .\[--br-unit\:5\] {
1564
+ --br-unit: 5;
1565
+ }
1566
+ .\[--br-unit\:6\] {
1567
+ --br-unit: 6;
1568
+ }
1569
+ .\[--br-unit\:7\] {
1570
+ --br-unit: 7;
1644
1571
  }
1645
1572
  .\[--gap-unit\:1\.5\] {
1646
1573
  --gap-unit: 1.5;
@@ -1666,12 +1593,33 @@
1666
1593
  .\[--gap-unit\:6\] {
1667
1594
  --gap-unit: 6;
1668
1595
  }
1596
+ .\[--lh-unit\:1\.2\] {
1597
+ --lh-unit: 1.2;
1598
+ }
1599
+ .\[--lh-unit\:1\.4\] {
1600
+ --lh-unit: 1.4;
1601
+ }
1602
+ .\[--lh-unit\:1\.5\] {
1603
+ --lh-unit: 1.5;
1604
+ }
1605
+ .\[--lh-unit\:1\.111\] {
1606
+ --lh-unit: 1.111;
1607
+ }
1608
+ .\[--lh-unit\:1\.333\] {
1609
+ --lh-unit: 1.333;
1610
+ }
1611
+ .\[--lh-unit\:1\.429\] {
1612
+ --lh-unit: 1.429;
1613
+ }
1614
+ .\[--lh-unit\:1\.556\] {
1615
+ --lh-unit: 1.556;
1616
+ }
1617
+ .\[--lh-unit\:1\] {
1618
+ --lh-unit: 1;
1619
+ }
1669
1620
  .\[--py-unit\:0\.5\] {
1670
1621
  --py-unit: 0.5;
1671
1622
  }
1672
- .\[--py-unit\:0\] {
1673
- --py-unit: 0;
1674
- }
1675
1623
  .\[--py-unit\:1\.5\] {
1676
1624
  --py-unit: 1.5;
1677
1625
  }
@@ -2494,6 +2442,13 @@
2494
2442
  --py: calc(var(--py-unit) * var(--layout-spacing));
2495
2443
  --ui-px: calc(var(--aspect-ratio) * var(--py-unit) * var(--ui-spacing));
2496
2444
  --ui-py: calc(var(--py-unit) * var(--ui-spacing));
2445
+ --br-unit: 1;
2446
+ --br-base: 0.25rem;
2447
+ --br: calc(var(--br-unit) * var(--br-base));
2448
+ --ui-br-base: 0.125rem;
2449
+ --ui-br: calc(var(--br-unit) * var(--ui-br-base));
2450
+ --lh-unit: 1.5;
2451
+ --lh: var(--lh-unit);
2497
2452
  }
2498
2453
  }
2499
2454
  }
package/dist/vars.css CHANGED
@@ -162,7 +162,7 @@
162
162
  --layout-br-lg: calc(6 * var(--layout-br-spacing));
163
163
  --layout-br-xl: calc(7 * var(--layout-br-spacing));
164
164
 
165
- --layout-spacing: clamp(0.1rem, 0.16rem + 0.4vw, 0.25rem);
165
+ --layout-spacing: clamp(0.1rem, 0.16rem + 0.4vw, 0.3rem);
166
166
  --ui-spacing: var(--spacing);
167
167
  }
168
168
 
@@ -181,5 +181,15 @@
181
181
 
182
182
  --ui-px: calc(var(--aspect-ratio) * var(--py-unit) * var(--ui-spacing));
183
183
  --ui-py: calc(var(--py-unit) * var(--ui-spacing));
184
+
185
+ --br-unit: 1;
186
+ --br-base: 0.25rem;
187
+ --br: calc(var(--br-unit) * var(--br-base));
188
+
189
+ --ui-br-base: 0.125rem;
190
+ --ui-br: calc(var(--br-unit) * var(--ui-br-base));
191
+
192
+ --lh-unit: 1.5;
193
+ --lh: var(--lh-unit);
184
194
  }
185
195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaneui/ui",
3
- "version": "0.3.1-alpha.20250925201320.8b6a424",
3
+ "version": "0.3.1-alpha.20250927164620.fec55bc",
4
4
  "description": "A simple and lightweight UI component library for React, built with Tailwind CSS.",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -1,4 +0,0 @@
1
- import { SizeKey } from "../props";
2
- export declare const uiBorderRadiusClasses: Record<SizeKey, string>;
3
- export declare const layoutBorderRadiusClasses: Record<SizeKey, string>;
4
- //# sourceMappingURL=radiusClasses.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radiusClasses.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/classes/radiusClasses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAMzD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAM7D,CAAC"}