@vaneui/ui 0.3.1-alpha.20250930162311.b66aed0 → 0.3.1-alpha.20251001131502.03a0ce2

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 (37) hide show
  1. package/dist/components/ui/theme/badgeTheme.d.ts +4 -2
  2. package/dist/components/ui/theme/badgeTheme.d.ts.map +1 -1
  3. package/dist/components/ui/theme/buttonTheme.d.ts +4 -2
  4. package/dist/components/ui/theme/buttonTheme.d.ts.map +1 -1
  5. package/dist/components/ui/theme/cardTheme.d.ts +2 -0
  6. package/dist/components/ui/theme/cardTheme.d.ts.map +1 -1
  7. package/dist/components/ui/theme/checkboxTheme.d.ts +2 -1
  8. package/dist/components/ui/theme/checkboxTheme.d.ts.map +1 -1
  9. package/dist/components/ui/theme/chipTheme.d.ts +4 -2
  10. package/dist/components/ui/theme/chipTheme.d.ts.map +1 -1
  11. package/dist/components/ui/theme/codeTheme.d.ts +4 -2
  12. package/dist/components/ui/theme/codeTheme.d.ts.map +1 -1
  13. package/dist/components/ui/theme/common/ComponentTheme.d.ts +0 -2
  14. package/dist/components/ui/theme/common/ComponentTheme.d.ts.map +1 -1
  15. package/dist/components/ui/theme/inputTheme.d.ts +4 -2
  16. package/dist/components/ui/theme/inputTheme.d.ts.map +1 -1
  17. package/dist/components/ui/theme/labelTheme.d.ts +4 -2
  18. package/dist/components/ui/theme/labelTheme.d.ts.map +1 -1
  19. package/dist/components/ui/theme/sectionTheme.d.ts.map +1 -1
  20. package/dist/components/ui/theme/size/fontSizeTheme.d.ts +21 -0
  21. package/dist/components/ui/theme/size/fontSizeTheme.d.ts.map +1 -0
  22. package/dist/components/ui/theme/{typography → size}/lineHeightTheme.d.ts +1 -0
  23. package/dist/components/ui/theme/size/lineHeightTheme.d.ts.map +1 -0
  24. package/dist/components/ui/theme/size/pxTheme.d.ts +1 -1
  25. package/dist/components/ui/theme/size/pxTheme.d.ts.map +1 -1
  26. package/dist/components/ui/theme/size/sizeTheme.d.ts +1 -2
  27. package/dist/components/ui/theme/size/sizeTheme.d.ts.map +1 -1
  28. package/dist/components/ui/theme/typographyTheme.d.ts +6 -6
  29. package/dist/components/ui/theme/typographyTheme.d.ts.map +1 -1
  30. package/dist/index.esm.js +190 -143
  31. package/dist/index.esm.js.map +1 -1
  32. package/dist/index.js +190 -143
  33. package/dist/index.js.map +1 -1
  34. package/dist/ui.css +62 -75
  35. package/dist/vars.css +12 -4
  36. package/package.json +1 -1
  37. package/dist/components/ui/theme/typography/lineHeightTheme.d.ts.map +0 -1
package/dist/ui.css CHANGED
@@ -247,10 +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;
252
+ --br-base: var(--spacing);
253
+ --ui-br-base: calc(var(--spacing) * 0.5);
254
+ --fs-base: calc(var(--spacing) * 0.5);
254
255
  }
255
256
  }
256
257
  @layer base {
@@ -431,6 +432,12 @@
431
432
  }
432
433
  .container {
433
434
  width: 100%;
435
+ @media (width >= 20rem) {
436
+ max-width: 20rem;
437
+ }
438
+ @media (width >= 40rem) {
439
+ max-width: 40rem;
440
+ }
434
441
  @media (width >= 40rem) {
435
442
  max-width: 40rem;
436
443
  }
@@ -440,6 +447,12 @@
440
447
  @media (width >= 64rem) {
441
448
  max-width: 64rem;
442
449
  }
450
+ @media (width >= 64rem) {
451
+ max-width: 64rem;
452
+ }
453
+ @media (width >= 80rem) {
454
+ max-width: 80rem;
455
+ }
443
456
  @media (width >= 80rem) {
444
457
  max-width: 80rem;
445
458
  }
@@ -1159,6 +1172,9 @@
1159
1172
  font-size: var(--text-xs);
1160
1173
  line-height: var(--tw-leading, var(--text-xs--line-height));
1161
1174
  }
1175
+ .text-\(length\:--fs\) {
1176
+ font-size: var(--fs);
1177
+ }
1162
1178
  .leading-\(--lh\) {
1163
1179
  --tw-leading: var(--lh);
1164
1180
  line-height: var(--lh);
@@ -1568,6 +1584,39 @@
1568
1584
  .\[--br-unit\:7\] {
1569
1585
  --br-unit: 7;
1570
1586
  }
1587
+ .\[--fs-unit\:6\] {
1588
+ --fs-unit: 6;
1589
+ }
1590
+ .\[--fs-unit\:7\] {
1591
+ --fs-unit: 7;
1592
+ }
1593
+ .\[--fs-unit\:8\] {
1594
+ --fs-unit: 8;
1595
+ }
1596
+ .\[--fs-unit\:9\] {
1597
+ --fs-unit: 9;
1598
+ }
1599
+ .\[--fs-unit\:10\] {
1600
+ --fs-unit: 10;
1601
+ }
1602
+ .\[--fs-unit\:12\] {
1603
+ --fs-unit: 12;
1604
+ }
1605
+ .\[--fs-unit\:15\] {
1606
+ --fs-unit: 15;
1607
+ }
1608
+ .\[--fs-unit\:18\] {
1609
+ --fs-unit: 18;
1610
+ }
1611
+ .\[--fs-unit\:24\] {
1612
+ --fs-unit: 24;
1613
+ }
1614
+ .\[--fs-unit\:30\] {
1615
+ --fs-unit: 30;
1616
+ }
1617
+ .\[--fs-unit\:36\] {
1618
+ --fs-unit: 36;
1619
+ }
1571
1620
  .\[--gap-unit\:1\.5\] {
1572
1621
  --gap-unit: 1.5;
1573
1622
  }
@@ -1595,6 +1644,9 @@
1595
1644
  .\[--lh-unit\:1\.2\] {
1596
1645
  --lh-unit: 1.2;
1597
1646
  }
1647
+ .\[--lh-unit\:1\.3\] {
1648
+ --lh-unit: 1.3;
1649
+ }
1598
1650
  .\[--lh-unit\:1\.4\] {
1599
1651
  --lh-unit: 1.4;
1600
1652
  }
@@ -2301,42 +2353,6 @@
2301
2353
  flex-direction: column;
2302
2354
  }
2303
2355
  }
2304
- .max-lg\:text-2xl {
2305
- @media (width < 64rem) {
2306
- font-size: var(--text-2xl);
2307
- line-height: var(--tw-leading, var(--text-2xl--line-height));
2308
- }
2309
- }
2310
- .max-lg\:text-3xl {
2311
- @media (width < 64rem) {
2312
- font-size: var(--text-3xl);
2313
- line-height: var(--tw-leading, var(--text-3xl--line-height));
2314
- }
2315
- }
2316
- .max-lg\:text-4xl {
2317
- @media (width < 64rem) {
2318
- font-size: var(--text-4xl);
2319
- line-height: var(--tw-leading, var(--text-4xl--line-height));
2320
- }
2321
- }
2322
- .max-lg\:text-5xl {
2323
- @media (width < 64rem) {
2324
- font-size: var(--text-5xl);
2325
- line-height: var(--tw-leading, var(--text-5xl--line-height));
2326
- }
2327
- }
2328
- .max-lg\:text-6xl {
2329
- @media (width < 64rem) {
2330
- font-size: var(--text-6xl);
2331
- line-height: var(--tw-leading, var(--text-6xl--line-height));
2332
- }
2333
- }
2334
- .max-lg\:text-xl {
2335
- @media (width < 64rem) {
2336
- font-size: var(--text-xl);
2337
- line-height: var(--tw-leading, var(--text-xl--line-height));
2338
- }
2339
- }
2340
2356
  .max-md\:hidden {
2341
2357
  @media (width < 48rem) {
2342
2358
  display: none;
@@ -2347,42 +2363,6 @@
2347
2363
  flex-direction: column;
2348
2364
  }
2349
2365
  }
2350
- .max-md\:text-2xl {
2351
- @media (width < 48rem) {
2352
- font-size: var(--text-2xl);
2353
- line-height: var(--tw-leading, var(--text-2xl--line-height));
2354
- }
2355
- }
2356
- .max-md\:text-3xl {
2357
- @media (width < 48rem) {
2358
- font-size: var(--text-3xl);
2359
- line-height: var(--tw-leading, var(--text-3xl--line-height));
2360
- }
2361
- }
2362
- .max-md\:text-4xl {
2363
- @media (width < 48rem) {
2364
- font-size: var(--text-4xl);
2365
- line-height: var(--tw-leading, var(--text-4xl--line-height));
2366
- }
2367
- }
2368
- .max-md\:text-5xl {
2369
- @media (width < 48rem) {
2370
- font-size: var(--text-5xl);
2371
- line-height: var(--tw-leading, var(--text-5xl--line-height));
2372
- }
2373
- }
2374
- .max-md\:text-lg {
2375
- @media (width < 48rem) {
2376
- font-size: var(--text-lg);
2377
- line-height: var(--tw-leading, var(--text-lg--line-height));
2378
- }
2379
- }
2380
- .max-md\:text-xl {
2381
- @media (width < 48rem) {
2382
- font-size: var(--text-xl);
2383
- line-height: var(--tw-leading, var(--text-xl--line-height));
2384
- }
2385
- }
2386
2366
  .max-sm\:hidden {
2387
2367
  @media (width < 40rem) {
2388
2368
  display: none;
@@ -2393,6 +2373,11 @@
2393
2373
  flex-direction: column;
2394
2374
  }
2395
2375
  }
2376
+ .max-tablet\:bg-red-500 {
2377
+ @media (width < 40rem) {
2378
+ background-color: var(--color-red-500);
2379
+ }
2380
+ }
2396
2381
  .sm\:grid-cols-2 {
2397
2382
  @media (width >= 40rem) {
2398
2383
  grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -2446,6 +2431,8 @@
2446
2431
  --ui-br: calc(var(--br-unit) * var(--ui-br-base));
2447
2432
  --lh-unit: 1.5;
2448
2433
  --lh: var(--lh-unit);
2434
+ --fs-unit: 8;
2435
+ --fs: calc(var(--fs-unit) * var(--fs-base));
2449
2436
  }
2450
2437
  }
2451
2438
  }
package/dist/vars.css CHANGED
@@ -146,15 +146,20 @@
146
146
  --color-border-filled-info: var(--color-blue-600);
147
147
  --color-border-filled-link: var(--color-blue-600);
148
148
 
149
- --layout-spacing: clamp(0.1rem, 0.16rem + 0.4vw, 0.3rem);
149
+ --layout-spacing: var(--spacing);
150
150
  --ui-spacing: var(--spacing);
151
- --br-base: 0.25rem;
152
- --ui-br-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: 20rem;
156
+ --breakpoint-tablet: 40rem;
157
+ --breakpoint-laptop: 64rem;
158
+ --breakpoint-desktop: 80rem;
153
159
  }
154
160
 
155
161
  @layer base {
156
162
  :where(*) {
157
- /* Layout Gap: the --gap-unit variable is set depending on component and it's size */
158
163
  --gap-unit: 1;
159
164
  --gap: calc(var(--gap-unit) * var(--layout-spacing));
160
165
  --ui-gap: calc(var(--gap-unit) * var(--ui-spacing));
@@ -172,5 +177,8 @@
172
177
 
173
178
  --lh-unit: 1.5;
174
179
  --lh: var(--lh-unit);
180
+
181
+ --fs-unit: 8; /* Default to text-base (1rem = 8 * 0.125rem) */
182
+ --fs: calc(var(--fs-unit) * var(--fs-base));
175
183
  }
176
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaneui/ui",
3
- "version": "0.3.1-alpha.20250930162311.b66aed0",
3
+ "version": "0.3.1-alpha.20251001131502.03a0ce2",
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":"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"}