@vaneui/ui 0.3.1-alpha.20250930203841.cec91ca → 0.3.1-alpha.20251001142553.9da86c7

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 (77) hide show
  1. package/dist/components/ui/card.d.ts +8 -10
  2. package/dist/components/ui/card.d.ts.map +1 -1
  3. package/dist/components/ui/checkbox.d.ts +4 -5
  4. package/dist/components/ui/checkbox.d.ts.map +1 -1
  5. package/dist/components/ui/code.d.ts +4 -5
  6. package/dist/components/ui/code.d.ts.map +1 -1
  7. package/dist/components/ui/col.d.ts +4 -5
  8. package/dist/components/ui/col.d.ts.map +1 -1
  9. package/dist/components/ui/container.d.ts +4 -5
  10. package/dist/components/ui/container.d.ts.map +1 -1
  11. package/dist/components/ui/divider.d.ts +4 -5
  12. package/dist/components/ui/divider.d.ts.map +1 -1
  13. package/dist/components/ui/grid.d.ts +20 -25
  14. package/dist/components/ui/grid.d.ts.map +1 -1
  15. package/dist/components/ui/img.d.ts +4 -5
  16. package/dist/components/ui/img.d.ts.map +1 -1
  17. package/dist/components/ui/input.d.ts +4 -5
  18. package/dist/components/ui/input.d.ts.map +1 -1
  19. package/dist/components/ui/label.d.ts +4 -5
  20. package/dist/components/ui/label.d.ts.map +1 -1
  21. package/dist/components/ui/props/breakpoint.d.ts +9 -11
  22. package/dist/components/ui/props/breakpoint.d.ts.map +1 -1
  23. package/dist/components/ui/props/hide.d.ts +9 -11
  24. package/dist/components/ui/props/hide.d.ts.map +1 -1
  25. package/dist/components/ui/props/keys.d.ts +2 -2
  26. package/dist/components/ui/row.d.ts +8 -10
  27. package/dist/components/ui/row.d.ts.map +1 -1
  28. package/dist/components/ui/section.d.ts +8 -10
  29. package/dist/components/ui/section.d.ts.map +1 -1
  30. package/dist/components/ui/stack.d.ts +8 -10
  31. package/dist/components/ui/stack.d.ts.map +1 -1
  32. package/dist/components/ui/theme/badgeTheme.d.ts +4 -2
  33. package/dist/components/ui/theme/badgeTheme.d.ts.map +1 -1
  34. package/dist/components/ui/theme/buttonTheme.d.ts +4 -2
  35. package/dist/components/ui/theme/buttonTheme.d.ts.map +1 -1
  36. package/dist/components/ui/theme/cardTheme.d.ts +2 -0
  37. package/dist/components/ui/theme/cardTheme.d.ts.map +1 -1
  38. package/dist/components/ui/theme/checkboxTheme.d.ts +1 -1
  39. package/dist/components/ui/theme/checkboxTheme.d.ts.map +1 -1
  40. package/dist/components/ui/theme/chipTheme.d.ts +4 -2
  41. package/dist/components/ui/theme/chipTheme.d.ts.map +1 -1
  42. package/dist/components/ui/theme/codeTheme.d.ts +4 -2
  43. package/dist/components/ui/theme/codeTheme.d.ts.map +1 -1
  44. package/dist/components/ui/theme/common/ComponentTheme.d.ts +0 -2
  45. package/dist/components/ui/theme/common/ComponentTheme.d.ts.map +1 -1
  46. package/dist/components/ui/theme/defaults.d.ts.map +1 -1
  47. package/dist/components/ui/theme/inputTheme.d.ts +4 -2
  48. package/dist/components/ui/theme/inputTheme.d.ts.map +1 -1
  49. package/dist/components/ui/theme/labelTheme.d.ts +3 -1
  50. package/dist/components/ui/theme/labelTheme.d.ts.map +1 -1
  51. package/dist/components/ui/theme/layout/hideTheme.d.ts +8 -10
  52. package/dist/components/ui/theme/layout/hideTheme.d.ts.map +1 -1
  53. package/dist/components/ui/theme/sectionTheme.d.ts.map +1 -1
  54. package/dist/components/ui/theme/size/breakpointTheme.d.ts +8 -10
  55. package/dist/components/ui/theme/size/breakpointTheme.d.ts.map +1 -1
  56. package/dist/components/ui/theme/size/fontSizeTheme.d.ts.map +1 -0
  57. package/dist/components/ui/theme/size/gapTheme.d.ts.map +1 -1
  58. package/dist/components/ui/theme/{typography → size}/lineHeightTheme.d.ts +1 -0
  59. package/dist/components/ui/theme/size/lineHeightTheme.d.ts.map +1 -0
  60. package/dist/components/ui/theme/size/pxTheme.d.ts +1 -1
  61. package/dist/components/ui/theme/size/pxTheme.d.ts.map +1 -1
  62. package/dist/components/ui/theme/size/sizeTheme.d.ts +1 -4
  63. package/dist/components/ui/theme/size/sizeTheme.d.ts.map +1 -1
  64. package/dist/components/ui/theme/typographyTheme.d.ts +3 -2
  65. package/dist/components/ui/theme/typographyTheme.d.ts.map +1 -1
  66. package/dist/components/ui/typography.d.ts +4 -5
  67. package/dist/components/ui/typography.d.ts.map +1 -1
  68. package/dist/index.esm.js +175 -173
  69. package/dist/index.esm.js.map +1 -1
  70. package/dist/index.js +182 -182
  71. package/dist/index.js.map +1 -1
  72. package/dist/ui.css +72 -16
  73. package/dist/vars.css +10 -6
  74. package/package.json +1 -1
  75. package/dist/components/ui/theme/typography/fontSizeTheme.d.ts.map +0 -1
  76. package/dist/components/ui/theme/typography/lineHeightTheme.d.ts.map +0 -1
  77. /package/dist/components/ui/theme/{typography → size}/fontSizeTheme.d.ts +0 -0
package/dist/ui.css CHANGED
@@ -247,11 +247,11 @@
247
247
  --color-border-filled-warning: var(--color-yellow-600);
248
248
  --color-border-filled-info: var(--color-blue-600);
249
249
  --color-border-filled-link: var(--color-blue-600);
250
- --layout-spacing: clamp(0.1rem, 0.16rem + 0.4vw, 0.3rem);
250
+ --layout-spacing: var(--spacing);
251
251
  --ui-spacing: var(--spacing);
252
- --br-base: 0.25rem;
253
- --ui-br-base: 0.125rem;
254
- --fs-base: 0.125rem;
252
+ --br-base: var(--spacing);
253
+ --ui-br-base: calc(var(--spacing) * 0.5);
254
+ --fs-base: calc(var(--spacing) * 0.5);
255
255
  }
256
256
  }
257
257
  @layer base {
@@ -435,12 +435,24 @@
435
435
  @media (width >= 40rem) {
436
436
  max-width: 40rem;
437
437
  }
438
+ @media (width >= 40rem) {
439
+ max-width: 40rem;
440
+ }
441
+ @media (width >= 48rem) {
442
+ max-width: 48rem;
443
+ }
438
444
  @media (width >= 48rem) {
439
445
  max-width: 48rem;
440
446
  }
441
447
  @media (width >= 64rem) {
442
448
  max-width: 64rem;
443
449
  }
450
+ @media (width >= 64rem) {
451
+ max-width: 64rem;
452
+ }
453
+ @media (width >= 80rem) {
454
+ max-width: 80rem;
455
+ }
444
456
  @media (width >= 80rem) {
445
457
  max-width: 80rem;
446
458
  }
@@ -1160,6 +1172,9 @@
1160
1172
  font-size: var(--text-xs);
1161
1173
  line-height: var(--tw-leading, var(--text-xs--line-height));
1162
1174
  }
1175
+ .text-\(length\:--fs\) {
1176
+ font-size: var(--fs);
1177
+ }
1163
1178
  .leading-\(--lh\) {
1164
1179
  --tw-leading: var(--lh);
1165
1180
  line-height: var(--lh);
@@ -1278,9 +1293,6 @@
1278
1293
  .text-\(--color-text-warning\) {
1279
1294
  color: var(--color-text-warning);
1280
1295
  }
1281
- .text-\(--fs\) {
1282
- color: var(--fs);
1283
- }
1284
1296
  .text-blue-200 {
1285
1297
  color: var(--color-blue-200);
1286
1298
  }
@@ -1539,6 +1551,9 @@
1539
1551
  .\[--aspect-ratio\:1\.75\] {
1540
1552
  --aspect-ratio: 1.75;
1541
1553
  }
1554
+ .\[--aspect-ratio\:1\] {
1555
+ --aspect-ratio: 1;
1556
+ }
1542
1557
  .\[--aspect-ratio\:2\.5\] {
1543
1558
  --aspect-ratio: 2.5;
1544
1559
  }
@@ -1632,6 +1647,9 @@
1632
1647
  .\[--lh-unit\:1\.2\] {
1633
1648
  --lh-unit: 1.2;
1634
1649
  }
1650
+ .\[--lh-unit\:1\.3\] {
1651
+ --lh-unit: 1.3;
1652
+ }
1635
1653
  .\[--lh-unit\:1\.4\] {
1636
1654
  --lh-unit: 1.4;
1637
1655
  }
@@ -1683,6 +1701,9 @@
1683
1701
  .\[--py-unit\:8\] {
1684
1702
  --py-unit: 8;
1685
1703
  }
1704
+ .\[--py-unit\:10\] {
1705
+ --py-unit: 10;
1706
+ }
1686
1707
  .\[--py-unit\:12\] {
1687
1708
  --py-unit: 12;
1688
1709
  }
@@ -2318,42 +2339,77 @@
2318
2339
  cursor: pointer;
2319
2340
  }
2320
2341
  }
2321
- .max-xl\:hidden {
2342
+ .max-desktop\:hidden {
2322
2343
  @media (width < 80rem) {
2323
2344
  display: none;
2324
2345
  }
2325
2346
  }
2326
- .max-xl\:flex-col {
2347
+ .max-desktop\:flex-col {
2327
2348
  @media (width < 80rem) {
2328
2349
  flex-direction: column;
2329
2350
  }
2330
2351
  }
2331
- .max-lg\:hidden {
2352
+ .max-laptop\:hidden {
2332
2353
  @media (width < 64rem) {
2333
2354
  display: none;
2334
2355
  }
2335
2356
  }
2336
- .max-lg\:flex-col {
2357
+ .max-laptop\:flex-col {
2337
2358
  @media (width < 64rem) {
2338
2359
  flex-direction: column;
2339
2360
  }
2340
2361
  }
2341
- .max-md\:hidden {
2362
+ .max-laptop\:\[--py-unit\:3\] {
2363
+ @media (width < 64rem) {
2364
+ --py-unit: 3;
2365
+ }
2366
+ }
2367
+ .max-laptop\:\[--py-unit\:4\] {
2368
+ @media (width < 64rem) {
2369
+ --py-unit: 4;
2370
+ }
2371
+ }
2372
+ .max-laptop\:\[--py-unit\:6\] {
2373
+ @media (width < 64rem) {
2374
+ --py-unit: 6;
2375
+ }
2376
+ }
2377
+ .max-laptop\:\[--py-unit\:8\] {
2378
+ @media (width < 64rem) {
2379
+ --py-unit: 8;
2380
+ }
2381
+ }
2382
+ .max-laptop\:\[--py-unit\:10\] {
2383
+ @media (width < 64rem) {
2384
+ --py-unit: 10;
2385
+ }
2386
+ }
2387
+ .max-tablet\:hidden {
2342
2388
  @media (width < 48rem) {
2343
2389
  display: none;
2344
2390
  }
2345
2391
  }
2346
- .max-md\:flex-col {
2392
+ .max-tablet\:flex-col {
2347
2393
  @media (width < 48rem) {
2348
2394
  flex-direction: column;
2349
2395
  }
2350
2396
  }
2351
- .max-sm\:hidden {
2397
+ .max-tablet\:\[--py-unit\:2\] {
2398
+ @media (width < 48rem) {
2399
+ --py-unit: 2;
2400
+ }
2401
+ }
2402
+ .max-tablet\:\[--py-unit\:4\] {
2403
+ @media (width < 48rem) {
2404
+ --py-unit: 4;
2405
+ }
2406
+ }
2407
+ .max-mobile\:hidden {
2352
2408
  @media (width < 40rem) {
2353
2409
  display: none;
2354
2410
  }
2355
2411
  }
2356
- .max-sm\:flex-col {
2412
+ .max-mobile\:flex-col {
2357
2413
  @media (width < 40rem) {
2358
2414
  flex-direction: column;
2359
2415
  }
@@ -2403,8 +2459,8 @@
2403
2459
  --aspect-ratio: 1;
2404
2460
  --py-unit: 1;
2405
2461
  --px: calc(var(--aspect-ratio) * var(--py-unit) * var(--layout-spacing));
2406
- --py: calc(var(--py-unit) * var(--layout-spacing));
2407
2462
  --ui-px: calc(var(--aspect-ratio) * var(--py-unit) * var(--ui-spacing));
2463
+ --py: calc(var(--py-unit) * var(--layout-spacing));
2408
2464
  --ui-py: calc(var(--py-unit) * var(--ui-spacing));
2409
2465
  --br-unit: 1;
2410
2466
  --br: calc(var(--br-unit) * var(--br-base));
package/dist/vars.css CHANGED
@@ -146,12 +146,16 @@
146
146
  --color-border-filled-info: var(--color-blue-600);
147
147
  --color-border-filled-link: var(--color-blue-600);
148
148
 
149
-
150
- --layout-spacing: clamp(0.1rem, 0.16rem + 0.4vw, 0.3rem);
149
+ --layout-spacing: var(--spacing);
151
150
  --ui-spacing: var(--spacing);
152
- --br-base: 0.25rem;
153
- --ui-br-base: 0.125rem;
154
- --fs-base: 0.125rem;
151
+ --br-base: var(--spacing);
152
+ --ui-br-base: calc(var(--spacing) * 0.5);
153
+ --fs-base: calc(var(--spacing) * 0.5);
154
+
155
+ --breakpoint-mobile: 40rem;
156
+ --breakpoint-tablet: 48rem;
157
+ --breakpoint-laptop: 64rem;
158
+ --breakpoint-desktop: 80rem;
155
159
  }
156
160
 
157
161
  @layer base {
@@ -163,8 +167,8 @@
163
167
  --aspect-ratio: 1;
164
168
  --py-unit: 1;
165
169
  --px: calc(var(--aspect-ratio) * var(--py-unit) * var(--layout-spacing));
166
- --py: calc(var(--py-unit) * var(--layout-spacing));
167
170
  --ui-px: calc(var(--aspect-ratio) * var(--py-unit) * var(--ui-spacing));
171
+ --py: calc(var(--py-unit) * var(--layout-spacing));
168
172
  --ui-py: calc(var(--py-unit) * var(--ui-spacing));
169
173
 
170
174
  --br-unit: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaneui/ui",
3
- "version": "0.3.1-alpha.20250930203841.cec91ca",
3
+ "version": "0.3.1-alpha.20251001142553.9da86c7",
4
4
  "description": "A simple and lightweight UI component library for React, built with Tailwind CSS.",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -1 +0,0 @@
1
- {"version":3,"file":"fontSizeTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/theme/typography/fontSizeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,aAAc,SAAQ,SAAU,YAAW,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;IAC7E,+DAA+D;IAC/D,EAAE,EAAE,MAAM,CAAmB;IAC7B,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAmB;IAC7B,yDAAyD;IACzD,EAAE,EAAE,MAAM,CAAmB;IAC7B,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAmB;IAC7B,gEAAgE;IAChE,EAAE,EAAE,MAAM,CAAoB;gBAElB,aAAa,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;IAWnD,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,EAAE;IASlD,MAAM,CAAC,kBAAkB,IAAI,aAAa;IAU1C,MAAM,CAAC,qBAAqB,IAAI,aAAa;IAU7C,MAAM,CAAC,cAAc,IAAI,aAAa;CASvC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"lineHeightTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/theme/typography/lineHeightTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,qBAAa,eAAgB,SAAQ,SAAU,YAAW,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;IAC/E,oEAAoE;IACpE,EAAE,EAAE,MAAM,CAAuB;IACjC,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAuB;IACjC,iEAAiE;IACjE,EAAE,EAAE,MAAM,CAAqB;IAC/B,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAuB;IACjC,oEAAoE;IACpE,EAAE,EAAE,MAAM,CAAqB;gBAEnB,aAAa,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;IAWnD,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,EAAE;IASlD,MAAM,CAAC,qBAAqB,IAAI,eAAe;IAU/C,MAAM,CAAC,kBAAkB,IAAI,eAAe;IAU5C,MAAM,CAAC,cAAc,IAAI,eAAe;CASzC"}