@lindle/linoardo 1.0.39 → 1.0.41

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 (76) hide show
  1. package/dist/{ExpansionPanelItem-CFm8a8R_.d.ts → ExpansionPanelItem-C4-2nlhq.d.ts} +1 -1
  2. package/dist/{ExpansionPanelItem-ufS2RIZf.d.cts → ExpansionPanelItem-CEhDj2Uw.d.cts} +1 -1
  3. package/dist/badge.d.cts +1 -1
  4. package/dist/badge.d.ts +1 -1
  5. package/dist/block.d.cts +1 -1
  6. package/dist/block.d.ts +1 -1
  7. package/dist/button.d.cts +1 -1
  8. package/dist/button.d.ts +1 -1
  9. package/dist/card.d.cts +1 -1
  10. package/dist/card.d.ts +1 -1
  11. package/dist/chip.d.cts +12 -12
  12. package/dist/chip.d.ts +12 -12
  13. package/dist/chip.js +2 -1
  14. package/dist/chunk-4J3SRVOS.js +217 -0
  15. package/dist/chunk-4J3SRVOS.js.map +1 -0
  16. package/dist/chunk-HT5XBHWN.js +119 -0
  17. package/dist/chunk-HT5XBHWN.js.map +1 -0
  18. package/dist/{chunk-BDN4EDJQ.js → chunk-LULQOD2K.js} +12 -6
  19. package/dist/chunk-LULQOD2K.js.map +1 -0
  20. package/dist/{chunk-P3ESW6KM.js → chunk-OBGYXMZ3.js} +74 -28
  21. package/dist/chunk-OBGYXMZ3.js.map +1 -0
  22. package/dist/{chunk-HJFHZNOV.js → chunk-PSMGRUU5.js} +3 -116
  23. package/dist/chunk-PSMGRUU5.js.map +1 -0
  24. package/dist/expansion-panel/item.d.cts +2 -2
  25. package/dist/expansion-panel/item.d.ts +2 -2
  26. package/dist/expansion-panel.d.cts +3 -3
  27. package/dist/expansion-panel.d.ts +3 -3
  28. package/dist/{global.types-D-o85tuX.d.cts → global.types-gx9A7mUe.d.cts} +1 -1
  29. package/dist/{global.types-D-o85tuX.d.ts → global.types-gx9A7mUe.d.ts} +1 -1
  30. package/dist/hero.d.cts +1 -1
  31. package/dist/hero.d.ts +1 -1
  32. package/dist/icon.d.cts +1 -1
  33. package/dist/icon.d.ts +1 -1
  34. package/dist/{index-B7xZzSwm.d.cts → index-BDrBOeFI.d.cts} +1 -1
  35. package/dist/{index-BhfThlf0.d.ts → index-CNwl6vmH.d.ts} +1 -1
  36. package/dist/index.cjs +700 -38
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.cts +61 -6
  39. package/dist/index.d.ts +61 -6
  40. package/dist/index.js +409 -5
  41. package/dist/index.js.map +1 -1
  42. package/dist/input.cjs +71 -25
  43. package/dist/input.cjs.map +1 -1
  44. package/dist/input.d.cts +4 -2
  45. package/dist/input.d.ts +4 -2
  46. package/dist/input.js +1 -1
  47. package/dist/list/item.d.cts +2 -2
  48. package/dist/list/item.d.ts +2 -2
  49. package/dist/list.d.cts +3 -3
  50. package/dist/list.d.ts +3 -3
  51. package/dist/notification.d.cts +1 -1
  52. package/dist/notification.d.ts +1 -1
  53. package/dist/profileCard.d.cts +1 -1
  54. package/dist/profileCard.d.ts +1 -1
  55. package/dist/select.cjs +14 -4
  56. package/dist/select.cjs.map +1 -1
  57. package/dist/select.d.cts +5 -4
  58. package/dist/select.d.ts +5 -4
  59. package/dist/select.js +1 -1
  60. package/dist/slider.d.cts +1 -1
  61. package/dist/slider.d.ts +1 -1
  62. package/dist/styles.css +166 -5
  63. package/dist/switch.d.cts +1 -1
  64. package/dist/switch.d.ts +1 -1
  65. package/dist/timeline.cjs +274 -0
  66. package/dist/timeline.cjs.map +1 -0
  67. package/dist/timeline.d.cts +54 -0
  68. package/dist/timeline.d.ts +54 -0
  69. package/dist/timeline.js +5 -0
  70. package/dist/timeline.js.map +1 -0
  71. package/dist/{types-DqPSePni.d.cts → types-CJ0zqPXF.d.cts} +1 -1
  72. package/dist/{types-CbQEphC3.d.ts → types-DaTHYIPO.d.ts} +1 -1
  73. package/package.json +13 -1
  74. package/dist/chunk-BDN4EDJQ.js.map +0 -1
  75. package/dist/chunk-HJFHZNOV.js.map +0 -1
  76. package/dist/chunk-P3ESW6KM.js.map +0 -1
package/dist/select.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import react__default from 'react';
2
- import { b as PropIcon, a as GlobalSize } from './global.types-D-o85tuX.cjs';
3
- import { a as InputVariant } from './types-DqPSePni.cjs';
2
+ import { P as PropIcon, G as GlobalSize } from './global.types-gx9A7mUe.cjs';
3
+ import { a as InputVariant } from './types-CJ0zqPXF.cjs';
4
4
 
5
5
  interface SelectOptionObject {
6
6
  value: string | number;
@@ -9,7 +9,7 @@ interface SelectOptionObject {
9
9
  icon?: PropIcon;
10
10
  }
11
11
  type SelectOption = SelectOptionObject | string;
12
- interface SelectProps extends Omit<react__default.DetailsHTMLAttributes<HTMLDetailsElement>, 'onChange' | 'value' | 'defaultValue'> {
12
+ interface SelectProps extends Omit<react__default.DetailsHTMLAttributes<HTMLDetailsElement>, 'onBlur' | 'onChange' | 'value' | 'defaultValue'> {
13
13
  options: SelectOption[];
14
14
  label?: string;
15
15
  placeholder?: string;
@@ -25,11 +25,12 @@ interface SelectProps extends Omit<react__default.DetailsHTMLAttributes<HTMLDeta
25
25
  disabled?: boolean;
26
26
  required?: boolean;
27
27
  onChange?: react__default.ChangeEventHandler<HTMLInputElement>;
28
+ onBlur?: react__default.FocusEventHandler<HTMLInputElement>;
28
29
  }
29
30
  /**
30
31
  * Custom styled Select component using <details> and radio/checkbox inputs.
31
32
  * Supports icons and custom styling while remaining a Server Component (no hooks).
32
33
  */
33
- declare const Select: react__default.FC<SelectProps>;
34
+ declare const Select: react__default.ForwardRefExoticComponent<SelectProps & react__default.RefAttributes<HTMLInputElement>>;
34
35
 
35
36
  export { type SelectOption, type SelectOptionObject, type SelectProps, Select as default };
package/dist/select.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import react__default from 'react';
2
- import { b as PropIcon, a as GlobalSize } from './global.types-D-o85tuX.js';
3
- import { a as InputVariant } from './types-CbQEphC3.js';
2
+ import { P as PropIcon, G as GlobalSize } from './global.types-gx9A7mUe.js';
3
+ import { a as InputVariant } from './types-DaTHYIPO.js';
4
4
 
5
5
  interface SelectOptionObject {
6
6
  value: string | number;
@@ -9,7 +9,7 @@ interface SelectOptionObject {
9
9
  icon?: PropIcon;
10
10
  }
11
11
  type SelectOption = SelectOptionObject | string;
12
- interface SelectProps extends Omit<react__default.DetailsHTMLAttributes<HTMLDetailsElement>, 'onChange' | 'value' | 'defaultValue'> {
12
+ interface SelectProps extends Omit<react__default.DetailsHTMLAttributes<HTMLDetailsElement>, 'onBlur' | 'onChange' | 'value' | 'defaultValue'> {
13
13
  options: SelectOption[];
14
14
  label?: string;
15
15
  placeholder?: string;
@@ -25,11 +25,12 @@ interface SelectProps extends Omit<react__default.DetailsHTMLAttributes<HTMLDeta
25
25
  disabled?: boolean;
26
26
  required?: boolean;
27
27
  onChange?: react__default.ChangeEventHandler<HTMLInputElement>;
28
+ onBlur?: react__default.FocusEventHandler<HTMLInputElement>;
28
29
  }
29
30
  /**
30
31
  * Custom styled Select component using <details> and radio/checkbox inputs.
31
32
  * Supports icons and custom styling while remaining a Server Component (no hooks).
32
33
  */
33
- declare const Select: react__default.FC<SelectProps>;
34
+ declare const Select: react__default.ForwardRefExoticComponent<SelectProps & react__default.RefAttributes<HTMLInputElement>>;
34
35
 
35
36
  export { type SelectOption, type SelectOptionObject, type SelectProps, Select as default };
package/dist/select.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Select_default as default } from './chunk-BDN4EDJQ.js';
1
+ export { Select_default as default } from './chunk-LULQOD2K.js';
2
2
  import './chunk-6SKW43XI.js';
3
3
  import './chunk-IEILIKS2.js';
4
4
  //# sourceMappingURL=select.js.map
package/dist/slider.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as Palette } from './global.types-D-o85tuX.cjs';
1
+ import { a as Palette } from './global.types-gx9A7mUe.cjs';
2
2
 
3
3
  type SliderSize = 'small' | 'medium' | 'large';
4
4
  type SliderProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'size' | 'onChange' | 'value' | 'defaultValue'> & {
package/dist/slider.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as Palette } from './global.types-D-o85tuX.js';
1
+ import { a as Palette } from './global.types-gx9A7mUe.js';
2
2
 
3
3
  type SliderSize = 'small' | 'medium' | 'large';
4
4
  type SliderProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'size' | 'onChange' | 'value' | 'defaultValue'> & {
package/dist/styles.css CHANGED
@@ -471,6 +471,9 @@
471
471
  .-mr-1 {
472
472
  margin-right: calc(var(--spacing) * -1);
473
473
  }
474
+ .-mb-px {
475
+ margin-bottom: -1px;
476
+ }
474
477
  .mb-1 {
475
478
  margin-bottom: calc(var(--spacing) * 1);
476
479
  }
@@ -543,6 +546,9 @@
543
546
  .h-10 {
544
547
  height: calc(var(--spacing) * 10);
545
548
  }
549
+ .h-11 {
550
+ height: calc(var(--spacing) * 11);
551
+ }
546
552
  .h-20 {
547
553
  height: calc(var(--spacing) * 20);
548
554
  }
@@ -606,6 +612,9 @@
606
612
  .min-h-80 {
607
613
  min-height: calc(var(--spacing) * 80);
608
614
  }
615
+ .min-h-112 {
616
+ min-height: calc(var(--spacing) * 112);
617
+ }
609
618
  .min-h-\[1\.5rem\] {
610
619
  min-height: 1.5rem;
611
620
  }
@@ -627,9 +636,6 @@
627
636
  .min-h-\[18rem\] {
628
637
  min-height: 18rem;
629
638
  }
630
- .min-h-\[28rem\] {
631
- min-height: 28rem;
632
- }
633
639
  .min-h-screen {
634
640
  min-height: 100vh;
635
641
  }
@@ -858,6 +864,9 @@
858
864
  .grid-cols-7 {
859
865
  grid-template-columns: repeat(7, minmax(0, 1fr));
860
866
  }
867
+ .grid-cols-\[1fr_auto_1fr\] {
868
+ grid-template-columns: 1fr auto 1fr;
869
+ }
861
870
  .grid-cols-\[auto_1fr_auto\] {
862
871
  grid-template-columns: auto 1fr auto;
863
872
  }
@@ -1013,6 +1022,9 @@
1013
1022
  .overflow-visible {
1014
1023
  overflow: visible;
1015
1024
  }
1025
+ .overflow-x-auto {
1026
+ overflow-x: auto;
1027
+ }
1016
1028
  .overflow-y-auto {
1017
1029
  overflow-y: auto;
1018
1030
  }
@@ -1106,6 +1118,12 @@
1106
1118
  .border-black {
1107
1119
  border-color: var(--color-black);
1108
1120
  }
1121
+ .border-black\/20 {
1122
+ border-color: color-mix(in srgb, #000 20%, transparent);
1123
+ @supports (color: color-mix(in lab, red, red)) {
1124
+ border-color: color-mix(in oklab, var(--color-black) 20%, transparent);
1125
+ }
1126
+ }
1109
1127
  .border-black\/30 {
1110
1128
  border-color: color-mix(in srgb, #000 30%, transparent);
1111
1129
  @supports (color: color-mix(in lab, red, red)) {
@@ -1313,12 +1331,21 @@
1313
1331
  .bg-gray-100 {
1314
1332
  background-color: var(--color-gray-100);
1315
1333
  }
1334
+ .bg-gray-100\/80 {
1335
+ background-color: color-mix(in srgb, oklch(96.7% 0.003 264.542) 80%, transparent);
1336
+ @supports (color: color-mix(in lab, red, red)) {
1337
+ background-color: color-mix(in oklab, var(--color-gray-100) 80%, transparent);
1338
+ }
1339
+ }
1316
1340
  .bg-gray-200 {
1317
1341
  background-color: var(--color-gray-200);
1318
1342
  }
1319
1343
  .bg-gray-300 {
1320
1344
  background-color: var(--color-gray-300);
1321
1345
  }
1346
+ .bg-gray-400 {
1347
+ background-color: var(--color-gray-400);
1348
+ }
1322
1349
  .bg-gray-500 {
1323
1350
  background-color: var(--color-gray-500);
1324
1351
  }
@@ -1729,6 +1756,9 @@
1729
1756
  .px-7 {
1730
1757
  padding-inline: calc(var(--spacing) * 7);
1731
1758
  }
1759
+ .py-0\.5 {
1760
+ padding-block: calc(var(--spacing) * 0.5);
1761
+ }
1732
1762
  .py-1 {
1733
1763
  padding-block: calc(var(--spacing) * 1);
1734
1764
  }
@@ -1852,6 +1882,12 @@
1852
1882
  .pl-12 {
1853
1883
  padding-left: calc(var(--spacing) * 12);
1854
1884
  }
1885
+ .pl-14 {
1886
+ padding-left: calc(var(--spacing) * 14);
1887
+ }
1888
+ .pl-16 {
1889
+ padding-left: calc(var(--spacing) * 16);
1890
+ }
1855
1891
  .text-center {
1856
1892
  text-align: center;
1857
1893
  }
@@ -1896,6 +1932,9 @@
1896
1932
  font-size: var(--text-xs);
1897
1933
  line-height: var(--tw-leading, var(--text-xs--line-height));
1898
1934
  }
1935
+ .text-\[0\.6rem\] {
1936
+ font-size: 0.6rem;
1937
+ }
1899
1938
  .text-\[0\.55rem\] {
1900
1939
  font-size: 0.55rem;
1901
1940
  }
@@ -1989,6 +2028,9 @@
1989
2028
  .text-emerald-900 {
1990
2029
  color: var(--color-emerald-900);
1991
2030
  }
2031
+ .text-gray-400 {
2032
+ color: var(--color-gray-400);
2033
+ }
1992
2034
  .text-gray-500 {
1993
2035
  color: var(--color-gray-500);
1994
2036
  }
@@ -2240,6 +2282,18 @@
2240
2282
  --tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-slate-900) 40%, transparent) var(--tw-shadow-alpha), transparent);
2241
2283
  }
2242
2284
  }
2285
+ .ring-amber-500\/20 {
2286
+ --tw-ring-color: color-mix(in srgb, oklch(76.9% 0.188 70.08) 20%, transparent);
2287
+ @supports (color: color-mix(in lab, red, red)) {
2288
+ --tw-ring-color: color-mix(in oklab, var(--color-amber-500) 20%, transparent);
2289
+ }
2290
+ }
2291
+ .ring-amber-500\/30 {
2292
+ --tw-ring-color: color-mix(in srgb, oklch(76.9% 0.188 70.08) 30%, transparent);
2293
+ @supports (color: color-mix(in lab, red, red)) {
2294
+ --tw-ring-color: color-mix(in oklab, var(--color-amber-500) 30%, transparent);
2295
+ }
2296
+ }
2243
2297
  .ring-black {
2244
2298
  --tw-ring-color: var(--color-black);
2245
2299
  }
@@ -2255,6 +2309,18 @@
2255
2309
  --tw-ring-color: color-mix(in oklab, var(--color-black) 10%, transparent);
2256
2310
  }
2257
2311
  }
2312
+ .ring-black\/20 {
2313
+ --tw-ring-color: color-mix(in srgb, #000 20%, transparent);
2314
+ @supports (color: color-mix(in lab, red, red)) {
2315
+ --tw-ring-color: color-mix(in oklab, var(--color-black) 20%, transparent);
2316
+ }
2317
+ }
2318
+ .ring-black\/30 {
2319
+ --tw-ring-color: color-mix(in srgb, #000 30%, transparent);
2320
+ @supports (color: color-mix(in lab, red, red)) {
2321
+ --tw-ring-color: color-mix(in oklab, var(--color-black) 30%, transparent);
2322
+ }
2323
+ }
2258
2324
  .ring-black\/40 {
2259
2325
  --tw-ring-color: color-mix(in srgb, #000 40%, transparent);
2260
2326
  @supports (color: color-mix(in lab, red, red)) {
@@ -2267,6 +2333,84 @@
2267
2333
  --tw-ring-color: color-mix(in oklab, currentcolor 50%, transparent);
2268
2334
  }
2269
2335
  }
2336
+ .ring-emerald-500\/20 {
2337
+ --tw-ring-color: color-mix(in srgb, oklch(69.6% 0.17 162.48) 20%, transparent);
2338
+ @supports (color: color-mix(in lab, red, red)) {
2339
+ --tw-ring-color: color-mix(in oklab, var(--color-emerald-500) 20%, transparent);
2340
+ }
2341
+ }
2342
+ .ring-emerald-500\/30 {
2343
+ --tw-ring-color: color-mix(in srgb, oklch(69.6% 0.17 162.48) 30%, transparent);
2344
+ @supports (color: color-mix(in lab, red, red)) {
2345
+ --tw-ring-color: color-mix(in oklab, var(--color-emerald-500) 30%, transparent);
2346
+ }
2347
+ }
2348
+ .ring-gray-300\/20 {
2349
+ --tw-ring-color: color-mix(in srgb, oklch(87.2% 0.01 258.338) 20%, transparent);
2350
+ @supports (color: color-mix(in lab, red, red)) {
2351
+ --tw-ring-color: color-mix(in oklab, var(--color-gray-300) 20%, transparent);
2352
+ }
2353
+ }
2354
+ .ring-gray-300\/30 {
2355
+ --tw-ring-color: color-mix(in srgb, oklch(87.2% 0.01 258.338) 30%, transparent);
2356
+ @supports (color: color-mix(in lab, red, red)) {
2357
+ --tw-ring-color: color-mix(in oklab, var(--color-gray-300) 30%, transparent);
2358
+ }
2359
+ }
2360
+ .ring-gray-900\/10 {
2361
+ --tw-ring-color: color-mix(in srgb, oklch(21% 0.034 264.665) 10%, transparent);
2362
+ @supports (color: color-mix(in lab, red, red)) {
2363
+ --tw-ring-color: color-mix(in oklab, var(--color-gray-900) 10%, transparent);
2364
+ }
2365
+ }
2366
+ .ring-gray-900\/15 {
2367
+ --tw-ring-color: color-mix(in srgb, oklch(21% 0.034 264.665) 15%, transparent);
2368
+ @supports (color: color-mix(in lab, red, red)) {
2369
+ --tw-ring-color: color-mix(in oklab, var(--color-gray-900) 15%, transparent);
2370
+ }
2371
+ }
2372
+ .ring-gray-900\/20 {
2373
+ --tw-ring-color: color-mix(in srgb, oklch(21% 0.034 264.665) 20%, transparent);
2374
+ @supports (color: color-mix(in lab, red, red)) {
2375
+ --tw-ring-color: color-mix(in oklab, var(--color-gray-900) 20%, transparent);
2376
+ }
2377
+ }
2378
+ .ring-primary\/20 {
2379
+ --tw-ring-color: color-mix(in srgb, oklch(0.62 0.13 250) 20%, transparent);
2380
+ @supports (color: color-mix(in lab, red, red)) {
2381
+ --tw-ring-color: color-mix(in oklab, var(--color-primary) 20%, transparent);
2382
+ }
2383
+ }
2384
+ .ring-primary\/30 {
2385
+ --tw-ring-color: color-mix(in srgb, oklch(0.62 0.13 250) 30%, transparent);
2386
+ @supports (color: color-mix(in lab, red, red)) {
2387
+ --tw-ring-color: color-mix(in oklab, var(--color-primary) 30%, transparent);
2388
+ }
2389
+ }
2390
+ .ring-red-500\/20 {
2391
+ --tw-ring-color: color-mix(in srgb, oklch(63.7% 0.237 25.331) 20%, transparent);
2392
+ @supports (color: color-mix(in lab, red, red)) {
2393
+ --tw-ring-color: color-mix(in oklab, var(--color-red-500) 20%, transparent);
2394
+ }
2395
+ }
2396
+ .ring-red-500\/30 {
2397
+ --tw-ring-color: color-mix(in srgb, oklch(63.7% 0.237 25.331) 30%, transparent);
2398
+ @supports (color: color-mix(in lab, red, red)) {
2399
+ --tw-ring-color: color-mix(in oklab, var(--color-red-500) 30%, transparent);
2400
+ }
2401
+ }
2402
+ .ring-sky-500\/20 {
2403
+ --tw-ring-color: color-mix(in srgb, oklch(68.5% 0.169 237.323) 20%, transparent);
2404
+ @supports (color: color-mix(in lab, red, red)) {
2405
+ --tw-ring-color: color-mix(in oklab, var(--color-sky-500) 20%, transparent);
2406
+ }
2407
+ }
2408
+ .ring-sky-500\/30 {
2409
+ --tw-ring-color: color-mix(in srgb, oklch(68.5% 0.169 237.323) 30%, transparent);
2410
+ @supports (color: color-mix(in lab, red, red)) {
2411
+ --tw-ring-color: color-mix(in oklab, var(--color-sky-500) 30%, transparent);
2412
+ }
2413
+ }
2270
2414
  .ring-white {
2271
2415
  --tw-ring-color: var(--color-white);
2272
2416
  }
@@ -2618,9 +2762,14 @@
2618
2762
  top: calc(var(--spacing) * 0);
2619
2763
  }
2620
2764
  }
2621
- .peer-focus\:left-7 {
2765
+ .peer-focus\:left-3 {
2766
+ &:is(:where(.peer):focus ~ *) {
2767
+ left: calc(var(--spacing) * 3);
2768
+ }
2769
+ }
2770
+ .peer-focus\:left-10 {
2622
2771
  &:is(:where(.peer):focus ~ *) {
2623
- left: calc(var(--spacing) * 7);
2772
+ left: calc(var(--spacing) * 10);
2624
2773
  }
2625
2774
  }
2626
2775
  .peer-focus\:-translate-y-1\/2 {
@@ -3145,6 +3294,13 @@
3145
3294
  }
3146
3295
  }
3147
3296
  }
3297
+ .hover\:text-gray-900 {
3298
+ &:hover {
3299
+ @media (hover: hover) {
3300
+ color: var(--color-gray-900);
3301
+ }
3302
+ }
3303
+ }
3148
3304
  .hover\:text-primary {
3149
3305
  &:hover {
3150
3306
  @media (hover: hover) {
@@ -3788,6 +3944,11 @@
3788
3944
  background-color: var(--color-gray-100);
3789
3945
  }
3790
3946
  }
3947
+ .dark\:bg-gray-700 {
3948
+ &:is(.dark &) {
3949
+ background-color: var(--color-gray-700);
3950
+ }
3951
+ }
3791
3952
  .dark\:bg-gray-800 {
3792
3953
  &:is(.dark &) {
3793
3954
  background-color: var(--color-gray-800);
package/dist/switch.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { P as Palette } from './global.types-D-o85tuX.cjs';
2
+ import { a as Palette } from './global.types-gx9A7mUe.cjs';
3
3
 
4
4
  type SwitchSize = 'small' | 'medium' | 'large';
5
5
 
package/dist/switch.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { P as Palette } from './global.types-D-o85tuX.js';
2
+ import { a as Palette } from './global.types-gx9A7mUe.js';
3
3
 
4
4
  type SwitchSize = 'small' | 'medium' | 'large';
5
5
 
@@ -0,0 +1,274 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var tailwindMerge = require('tailwind-merge');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n.default = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
28
+
29
+ // src/Feedback/TimeLine/index.tsx
30
+
31
+ // src/globals.ts
32
+ var iconBaseClasses = {
33
+ mdi: ["mdi"]
34
+ };
35
+
36
+ // src/Containment/Chip/states.chip.ts
37
+ var resolveIconClassName = (icon) => {
38
+ if (!icon) {
39
+ return void 0;
40
+ }
41
+ if (typeof icon === "string") {
42
+ const trimmed = icon.trim();
43
+ if (!trimmed) {
44
+ return void 0;
45
+ }
46
+ if (trimmed.includes(" ")) {
47
+ return trimmed;
48
+ }
49
+ const normalized2 = trimmed.startsWith("mdi-") ? trimmed : `mdi-${trimmed}`;
50
+ return ["mdi", normalized2].join(" ");
51
+ }
52
+ const [library, providedName] = icon;
53
+ const normalizedLibrary = library.trim();
54
+ const baseClasses = iconBaseClasses[normalizedLibrary] ?? [normalizedLibrary];
55
+ const iconName = providedName.trim();
56
+ if (!iconName) {
57
+ return baseClasses.join(" ");
58
+ }
59
+ const normalized = iconName.startsWith("mdi-") ? iconName : `mdi-${iconName}`;
60
+ return Array.from(/* @__PURE__ */ new Set([...baseClasses, normalized])).join(" ");
61
+ };
62
+ var densityGapClasses = {
63
+ default: "gap-6",
64
+ compact: "gap-4"
65
+ };
66
+ var alignClasses = {
67
+ start: "items-start",
68
+ center: "items-center",
69
+ end: "items-end"
70
+ };
71
+ var dotSizeClasses = {
72
+ sm: "h-6 w-6 text-xs",
73
+ md: "h-8 w-8 text-sm",
74
+ lg: "h-10 w-10 text-base"
75
+ };
76
+ var paletteDotClasses = {
77
+ primary: {
78
+ filled: { dot: "bg-primary text-white border border-primary", ring: "ring-primary/30" },
79
+ outlined: { dot: "bg-white text-primary border border-primary", ring: "ring-primary/20" },
80
+ tonal: { dot: "bg-primary/15 text-primary border border-primary/20", ring: "ring-primary/20" }
81
+ },
82
+ neutral: {
83
+ filled: { dot: "bg-gray-900 text-white border border-gray-900", ring: "ring-gray-900/20" },
84
+ outlined: { dot: "bg-white text-gray-900 border border-gray-900", ring: "ring-gray-900/15" },
85
+ tonal: { dot: "bg-gray-100 text-gray-800 border border-gray-200", ring: "ring-gray-900/10" }
86
+ },
87
+ info: {
88
+ filled: { dot: "bg-sky-500 text-white border border-sky-500", ring: "ring-sky-500/30" },
89
+ outlined: { dot: "bg-white text-sky-600 border border-sky-500", ring: "ring-sky-500/20" },
90
+ tonal: { dot: "bg-sky-100 text-sky-700 border border-sky-200", ring: "ring-sky-500/20" }
91
+ },
92
+ success: {
93
+ filled: { dot: "bg-emerald-500 text-white border border-emerald-500", ring: "ring-emerald-500/30" },
94
+ outlined: { dot: "bg-white text-emerald-600 border border-emerald-500", ring: "ring-emerald-500/20" },
95
+ tonal: { dot: "bg-emerald-100 text-emerald-700 border border-emerald-200", ring: "ring-emerald-500/20" }
96
+ },
97
+ warning: {
98
+ filled: { dot: "bg-amber-500 text-white border border-amber-500", ring: "ring-amber-500/30" },
99
+ outlined: { dot: "bg-white text-amber-700 border border-amber-500", ring: "ring-amber-500/20" },
100
+ tonal: { dot: "bg-amber-100 text-amber-800 border border-amber-200", ring: "ring-amber-500/20" }
101
+ },
102
+ danger: {
103
+ filled: { dot: "bg-red-500 text-white border border-red-500", ring: "ring-red-500/30" },
104
+ outlined: { dot: "bg-white text-red-600 border border-red-500", ring: "ring-red-500/20" },
105
+ tonal: { dot: "bg-red-100 text-red-700 border border-red-200", ring: "ring-red-500/20" }
106
+ },
107
+ surface: {
108
+ filled: { dot: "bg-white text-gray-900 border border-gray-200", ring: "ring-gray-300/30" },
109
+ outlined: { dot: "bg-white text-gray-900 border border-gray-300", ring: "ring-gray-300/20" },
110
+ tonal: { dot: "bg-gray-50 text-gray-800 border border-gray-200", ring: "ring-gray-300/20" }
111
+ },
112
+ bw: {
113
+ filled: { dot: "bg-black text-white border border-black", ring: "ring-black/30" },
114
+ outlined: { dot: "bg-white text-black border border-black", ring: "ring-black/20" },
115
+ tonal: { dot: "bg-black/10 text-black border border-black/20", ring: "ring-black/20" }
116
+ }
117
+ };
118
+ var resolveDotPalette = (color, variant) => {
119
+ const palette = paletteDotClasses[color] ?? paletteDotClasses.primary;
120
+ return palette[variant] ?? palette.filled;
121
+ };
122
+ var resolveSide = (side, index) => {
123
+ if (side === "alternate") {
124
+ return index % 2 === 0 ? "left" : "right";
125
+ }
126
+ return side;
127
+ };
128
+ var resolveIconNode = (icon) => {
129
+ if (!icon) return null;
130
+ const iconClass = resolveIconClassName(icon);
131
+ return iconClass ? /* @__PURE__ */ jsxRuntime.jsx("i", { className: iconClass, "aria-hidden": true }) : null;
132
+ };
133
+ var TimeLineItem = React__namespace.forwardRef((props, ref) => {
134
+ const {
135
+ title,
136
+ subtitle,
137
+ opposite,
138
+ icon,
139
+ dot,
140
+ color,
141
+ variant = "filled",
142
+ side,
143
+ align,
144
+ hideLine,
145
+ dotClassName,
146
+ contentClassName,
147
+ oppositeClassName,
148
+ lineClassName,
149
+ className,
150
+ children,
151
+ __timelineSide = "right",
152
+ __timelineAlign = "center",
153
+ __timelineDensity = "default",
154
+ __timelineColor = "primary",
155
+ __timelineDotSize = "md",
156
+ __timelineLineColor,
157
+ __timelineLineWidth = 2,
158
+ __timelineIndex = 0,
159
+ __timelineCount = 1,
160
+ ...rest
161
+ } = props;
162
+ const resolvedAlign = align ?? __timelineAlign;
163
+ const resolvedSide = resolveSide(side ?? __timelineSide, __timelineIndex);
164
+ const resolvedColor = color ?? __timelineColor;
165
+ const dotSizeClass = dotSizeClasses[__timelineDotSize] ?? dotSizeClasses.md;
166
+ const dotPalette = resolveDotPalette(resolvedColor, variant);
167
+ const iconNode = resolveIconNode(icon);
168
+ const isLast = __timelineIndex >= __timelineCount - 1;
169
+ const showLine = !hideLine && !isLast;
170
+ const lineStyle = {
171
+ width: __timelineLineWidth,
172
+ backgroundColor: __timelineLineColor
173
+ };
174
+ const baseItemClass = tailwindMerge.twMerge(
175
+ "timeline-item grid grid-cols-[1fr_auto_1fr] gap-4",
176
+ alignClasses[resolvedAlign] ?? alignClasses.center,
177
+ className
178
+ );
179
+ const contentNode = children ?? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
180
+ title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-semibold text-gray-900", children: title }),
181
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-gray-500", children: subtitle })
182
+ ] });
183
+ const leftContent = resolvedSide === "left" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("flex flex-col text-right", contentClassName), children: contentNode }) : opposite ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("flex flex-col text-right text-sm text-gray-500", oppositeClassName), children: opposite }) : /* @__PURE__ */ jsxRuntime.jsx("div", {});
184
+ const rightContent = resolvedSide === "right" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("flex flex-col text-left", contentClassName), children: contentNode }) : opposite ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("flex flex-col text-left text-sm text-gray-500", oppositeClassName), children: opposite }) : /* @__PURE__ */ jsxRuntime.jsx("div", {});
185
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { ...rest, ref, className: baseItemClass, children: [
186
+ leftContent,
187
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex h-full flex-col items-center", children: [
188
+ /* @__PURE__ */ jsxRuntime.jsx(
189
+ "span",
190
+ {
191
+ className: tailwindMerge.twMerge(
192
+ "flex items-center justify-center rounded-full ring-4 ring-white",
193
+ dotSizeClass,
194
+ dotPalette.dot,
195
+ dotPalette.ring,
196
+ dotClassName
197
+ ),
198
+ children: dot ?? iconNode
199
+ }
200
+ ),
201
+ /* @__PURE__ */ jsxRuntime.jsx(
202
+ "span",
203
+ {
204
+ className: tailwindMerge.twMerge(
205
+ "mt-3 flex-1 bg-gray-200 dark:bg-gray-700",
206
+ showLine ? void 0 : "invisible",
207
+ lineClassName
208
+ ),
209
+ style: lineStyle,
210
+ "aria-hidden": true
211
+ }
212
+ )
213
+ ] }),
214
+ rightContent
215
+ ] });
216
+ });
217
+ TimeLineItem.displayName = "TimeLine.Item";
218
+ var isTimeLineItem = (child) => {
219
+ if (!React__namespace.isValidElement(child)) {
220
+ return false;
221
+ }
222
+ const elementType = child.type;
223
+ return child.type === TimeLineItem || elementType.displayName === TimeLineItem.displayName;
224
+ };
225
+ var TimeLine = React__namespace.forwardRef((props, ref) => {
226
+ const {
227
+ side = "right",
228
+ align = "center",
229
+ density = "default",
230
+ color = "primary",
231
+ lineColor,
232
+ lineWidth = 2,
233
+ dotSize = "md",
234
+ className,
235
+ children,
236
+ ...rest
237
+ } = props;
238
+ const resolvedGap = densityGapClasses[density] ?? densityGapClasses.default;
239
+ const childArray = React__namespace.Children.toArray(children);
240
+ const resolvedChildren = childArray.map((child, index) => {
241
+ if (!isTimeLineItem(child)) {
242
+ return child;
243
+ }
244
+ return React__namespace.cloneElement(child, {
245
+ __timelineSide: side,
246
+ __timelineAlign: align,
247
+ __timelineDensity: density,
248
+ __timelineColor: color,
249
+ __timelineDotSize: dotSize,
250
+ __timelineLineColor: lineColor,
251
+ __timelineLineWidth: lineWidth,
252
+ __timelineIndex: index,
253
+ __timelineCount: childArray.length
254
+ });
255
+ });
256
+ return /* @__PURE__ */ jsxRuntime.jsx(
257
+ "div",
258
+ {
259
+ ...rest,
260
+ ref,
261
+ className: tailwindMerge.twMerge("timeline flex flex-col", resolvedGap, className),
262
+ children: resolvedChildren
263
+ }
264
+ );
265
+ });
266
+ TimeLine.displayName = "TimeLine";
267
+ var TimeLineWithItem = TimeLine;
268
+ TimeLineWithItem.Item = TimeLineItem;
269
+ var TimeLine_default = TimeLineWithItem;
270
+
271
+ exports.TimeLineItem = TimeLineItem;
272
+ exports.default = TimeLine_default;
273
+ //# sourceMappingURL=timeline.cjs.map
274
+ //# sourceMappingURL=timeline.cjs.map