@vaneui/ui 0.3.1-alpha.20251002075149.f5b5fd6 → 0.3.1-alpha.20251002123640.8bde935

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.
package/dist/index.esm.js CHANGED
@@ -5446,14 +5446,14 @@ const defaultGrid5Theme = new ComponentTheme("div", "grid-cols-1 sm:grid-cols-2
5446
5446
  const defaultGrid6Theme = new ComponentTheme("div", "grid-cols-1 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-6", gridSubThemes, themeDefaults.grid6, GRID_CATEGORIES);
5447
5447
 
5448
5448
  var _a, _b, _c;
5449
- const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-start-1 cursor-pointer appearance-none ring-transparent", {
5449
+ const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-start-1 cursor-pointer appearance-none ring-transparent size-(--ui-size)", {
5450
5450
  size: {
5451
5451
  size: new SizeTheme({
5452
- xs: 'h-3 w-3',
5453
- sm: 'h-3.5 w-3.5',
5454
- md: 'h-4 w-4',
5455
- lg: 'h-4.5 w-4.5',
5456
- xl: 'h-5 w-5'
5452
+ xs: '[--size-unit:3]',
5453
+ sm: '[--size-unit:3.5]',
5454
+ md: '[--size-unit:4]',
5455
+ lg: '[--size-unit:4.5]',
5456
+ xl: '[--size-unit:5]'
5457
5457
  }),
5458
5458
  text: new FontSizeTheme()
5459
5459
  },
package/dist/index.js CHANGED
@@ -5448,14 +5448,14 @@ const defaultGrid5Theme = new ComponentTheme("div", "grid-cols-1 sm:grid-cols-2
5448
5448
  const defaultGrid6Theme = new ComponentTheme("div", "grid-cols-1 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-6", gridSubThemes, themeDefaults.grid6, GRID_CATEGORIES);
5449
5449
 
5450
5450
  var _a, _b, _c;
5451
- const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-start-1 cursor-pointer appearance-none ring-transparent", {
5451
+ const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-start-1 cursor-pointer appearance-none ring-transparent size-(--ui-size)", {
5452
5452
  size: {
5453
5453
  size: new SizeTheme({
5454
- xs: 'h-3 w-3',
5455
- sm: 'h-3.5 w-3.5',
5456
- md: 'h-4 w-4',
5457
- lg: 'h-4.5 w-4.5',
5458
- xl: 'h-5 w-5'
5454
+ xs: '[--size-unit:3]',
5455
+ sm: '[--size-unit:3.5]',
5456
+ md: '[--size-unit:4]',
5457
+ lg: '[--size-unit:4.5]',
5458
+ xl: '[--size-unit:5]'
5459
5459
  }),
5460
5460
  text: new FontSizeTheme()
5461
5461
  },
package/dist/ui.css CHANGED
@@ -258,6 +258,7 @@
258
258
  --aspect-ratio: 1;
259
259
  --py-unit: 1;
260
260
  --br-unit: 1;
261
+ --size-unit: 1;
261
262
  }
262
263
  }
263
264
  @layer base {
@@ -508,20 +509,9 @@
508
509
  .aspect-ratio {
509
510
  aspect-ratio: var(--aspect-ratio);
510
511
  }
511
- .h-3 {
512
- height: calc(var(--spacing) * 3);
513
- }
514
- .h-3\.5 {
515
- height: calc(var(--spacing) * 3.5);
516
- }
517
- .h-4 {
518
- height: calc(var(--spacing) * 4);
519
- }
520
- .h-4\.5 {
521
- height: calc(var(--spacing) * 4.5);
522
- }
523
- .h-5 {
524
- height: calc(var(--spacing) * 5);
512
+ .size-\(--ui-size\) {
513
+ width: var(--ui-size);
514
+ height: var(--ui-size);
525
515
  }
526
516
  .h-\[calc\(var\(--lh\)\*var\(--fs\)\)\] {
527
517
  height: calc(var(--lh) * var(--fs));
@@ -532,21 +522,6 @@
532
522
  .h-px {
533
523
  height: 1px;
534
524
  }
535
- .w-3 {
536
- width: calc(var(--spacing) * 3);
537
- }
538
- .w-3\.5 {
539
- width: calc(var(--spacing) * 3.5);
540
- }
541
- .w-4 {
542
- width: calc(var(--spacing) * 4);
543
- }
544
- .w-4\.5 {
545
- width: calc(var(--spacing) * 4.5);
546
- }
547
- .w-5 {
548
- width: calc(var(--spacing) * 5);
549
- }
550
525
  .w-fit {
551
526
  width: fit-content;
552
527
  }
@@ -1719,6 +1694,21 @@
1719
1694
  .\[--py-unit\:20\] {
1720
1695
  --py-unit: 20;
1721
1696
  }
1697
+ .\[--size-unit\:3\.5\] {
1698
+ --size-unit: 3.5;
1699
+ }
1700
+ .\[--size-unit\:3\] {
1701
+ --size-unit: 3;
1702
+ }
1703
+ .\[--size-unit\:4\.5\] {
1704
+ --size-unit: 4.5;
1705
+ }
1706
+ .\[--size-unit\:4\] {
1707
+ --size-unit: 4;
1708
+ }
1709
+ .\[--size-unit\:5\] {
1710
+ --size-unit: 5;
1711
+ }
1722
1712
  .ring-inset {
1723
1713
  --tw-ring-inset: inset;
1724
1714
  }
@@ -2610,6 +2600,7 @@
2610
2600
  --ui-px: calc(var(--aspect-ratio) * var(--py-unit) * var(--ui-spacing));
2611
2601
  --py: calc(var(--py-unit) * var(--layout-spacing));
2612
2602
  --ui-py: calc(var(--py-unit) * var(--ui-spacing));
2603
+ --ui-size: calc(var(--size-unit) * var(--ui-spacing));
2613
2604
  --br: calc(var(--br-unit) * var(--br-base));
2614
2605
  --ui-br: calc(var(--br-unit) * var(--ui-br-base));
2615
2606
  --fs: calc(var(--fs-unit) * var(--fs-base));
package/dist/vars.css CHANGED
@@ -163,6 +163,7 @@
163
163
  --aspect-ratio: 1;
164
164
  --py-unit: 1;
165
165
  --br-unit: 1;
166
+ --size-unit: 1;
166
167
  }
167
168
 
168
169
  @layer base {
@@ -174,6 +175,7 @@
174
175
  --ui-px: calc(var(--aspect-ratio) * var(--py-unit) * var(--ui-spacing));
175
176
  --py: calc(var(--py-unit) * var(--layout-spacing));
176
177
  --ui-py: calc(var(--py-unit) * var(--ui-spacing));
178
+ --ui-size: calc(var(--size-unit) * var(--ui-spacing));
177
179
 
178
180
  --br: calc(var(--br-unit) * var(--br-base));
179
181
  --ui-br: calc(var(--br-unit) * var(--ui-br-base));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaneui/ui",
3
- "version": "0.3.1-alpha.20251002075149.f5b5fd6",
3
+ "version": "0.3.1-alpha.20251002123640.8bde935",
4
4
  "description": "A simple and lightweight UI component library for React, built with Tailwind CSS.",
5
5
  "author": "",
6
6
  "license": "ISC",