@stackloop/ui 2.3.1 → 2.4.0

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.js CHANGED
@@ -161,31 +161,31 @@ const kr = (e, t) => {
161
161
  const l = [];
162
162
  let n = 0, c = 0, i = 0, m;
163
163
  const x = s.length;
164
- for (let w = 0; w < x; w++) {
165
- const M = s[w];
164
+ for (let v = 0; v < x; v++) {
165
+ const M = s[v];
166
166
  if (n === 0 && c === 0) {
167
167
  if (M === Ae) {
168
- l.push(s.slice(i, w)), i = w + 1;
168
+ l.push(s.slice(i, v)), i = v + 1;
169
169
  continue;
170
170
  }
171
171
  if (M === "/") {
172
- m = w;
172
+ m = v;
173
173
  continue;
174
174
  }
175
175
  }
176
176
  M === "[" ? n++ : M === "]" ? n-- : M === "(" ? c++ : M === ")" && c--;
177
177
  }
178
178
  const y = l.length === 0 ? s : s.slice(i);
179
- let h = y, N = !1;
180
- y.endsWith(ye) ? (h = y.slice(0, -1), N = !0) : (
179
+ let h = y, k = !1;
180
+ y.endsWith(ye) ? (h = y.slice(0, -1), k = !0) : (
181
181
  /**
182
182
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
183
183
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
184
184
  */
185
- y.startsWith(ye) && (h = y.slice(1), N = !0)
185
+ y.startsWith(ye) && (h = y.slice(1), k = !0)
186
186
  );
187
- const k = m && m > i ? m - i : void 0;
188
- return Ie(l, N, h, k);
187
+ const w = m && m > i ? m - i : void 0;
188
+ return Ie(l, k, h, w);
189
189
  };
190
190
  if (t) {
191
191
  const s = t + Ae, l = o;
@@ -229,27 +229,27 @@ const kr = (e, t) => {
229
229
  const x = c[m], {
230
230
  isExternal: y,
231
231
  modifiers: h,
232
- hasImportantModifier: N,
233
- baseClassName: k,
234
- maybePostfixModifierPosition: w
232
+ hasImportantModifier: k,
233
+ baseClassName: w,
234
+ maybePostfixModifierPosition: v
235
235
  } = a(x);
236
236
  if (y) {
237
237
  i = x + (i.length > 0 ? " " + i : i);
238
238
  continue;
239
239
  }
240
- let M = !!w, j = o(M ? k.substring(0, w) : k);
240
+ let M = !!v, j = o(M ? w.substring(0, v) : w);
241
241
  if (!j) {
242
242
  if (!M) {
243
243
  i = x + (i.length > 0 ? " " + i : i);
244
244
  continue;
245
245
  }
246
- if (j = o(k), !j) {
246
+ if (j = o(w), !j) {
247
247
  i = x + (i.length > 0 ? " " + i : i);
248
248
  continue;
249
249
  }
250
250
  M = !1;
251
251
  }
252
- const L = h.length === 0 ? "" : h.length === 1 ? h[0] : l(h).join(":"), T = N ? L + ye : L, F = T + j;
252
+ const L = h.length === 0 ? "" : h.length === 1 ? h[0] : l(h).join(":"), T = k ? L + ye : L, F = T + j;
253
253
  if (n.indexOf(F) > -1)
254
254
  continue;
255
255
  n.push(F);
@@ -301,7 +301,7 @@ const kr = (e, t) => {
301
301
  const o = Ye.exec(e);
302
302
  return o ? o[1] ? t(o[1]) : a : !1;
303
303
  }, qe = (e) => e === "position" || e === "percentage", Je = (e) => e === "image" || e === "url", Qe = (e) => e === "length" || e === "size" || e === "bg-size", Ke = (e) => e === "length", it = (e) => e === "number", lt = (e) => e === "family-name", Xe = (e) => e === "shadow", ct = () => {
304
- const e = R("color"), t = R("font"), a = R("text"), o = R("font-weight"), s = R("tracking"), l = R("leading"), n = R("breakpoint"), c = R("container"), i = R("spacing"), m = R("radius"), x = R("shadow"), y = R("inset-shadow"), h = R("text-shadow"), N = R("drop-shadow"), k = R("blur"), w = R("perspective"), M = R("aspect"), j = R("ease"), L = R("animate"), T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [
304
+ const e = R("color"), t = R("font"), a = R("text"), o = R("font-weight"), s = R("tracking"), l = R("leading"), n = R("breakpoint"), c = R("container"), i = R("spacing"), m = R("radius"), x = R("shadow"), y = R("inset-shadow"), h = R("text-shadow"), k = R("drop-shadow"), w = R("blur"), v = R("perspective"), M = R("aspect"), j = R("ease"), L = R("animate"), T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [
305
305
  "center",
306
306
  "top",
307
307
  "bottom",
@@ -321,7 +321,7 @@ const kr = (e, t) => {
321
321
  "left-bottom"
322
322
  ], P = () => [...F(), b, p], S = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], f = () => [b, p, i], C = () => [X, "full", "auto", ...f()], A = () => [J, "none", "subgrid", b, p], _ = () => ["auto", {
323
323
  span: ["full", J, b, p]
324
- }, J, b, p], V = () => [J, "auto", b, p], W = () => ["auto", "min", "max", "fr", b, p], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...f()], G = () => [X, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], v = () => [e, b, p], ve = () => [...F(), De, je, {
324
+ }, J, b, p], V = () => [J, "auto", b, p], W = () => ["auto", "min", "max", "fr", b, p], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...f()], G = () => [X, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], N = () => [e, b, p], ve = () => [...F(), De, je, {
325
325
  position: [b, p]
326
326
  }], Ne = () => ["no-repeat", {
327
327
  repeat: ["", "x", "y", "space", "round"]
@@ -339,7 +339,7 @@ const kr = (e, t) => {
339
339
  // Deprecated since Tailwind CSS v4.0.0
340
340
  "",
341
341
  "none",
342
- k,
342
+ w,
343
343
  b,
344
344
  p
345
345
  ], ie = () => ["none", z, b, p], le = () => ["none", z, b, p], be = () => [z, b, p], ce = () => [X, "full", ...f()];
@@ -1157,14 +1157,14 @@ const kr = (e, t) => {
1157
1157
  * @see https://v3.tailwindcss.com/docs/placeholder-color
1158
1158
  */
1159
1159
  "placeholder-color": [{
1160
- placeholder: v()
1160
+ placeholder: N()
1161
1161
  }],
1162
1162
  /**
1163
1163
  * Text Color
1164
1164
  * @see https://tailwindcss.com/docs/text-color
1165
1165
  */
1166
1166
  "text-color": [{
1167
- text: v()
1167
+ text: N()
1168
1168
  }],
1169
1169
  /**
1170
1170
  * Text Decoration
@@ -1190,7 +1190,7 @@ const kr = (e, t) => {
1190
1190
  * @see https://tailwindcss.com/docs/text-decoration-color
1191
1191
  */
1192
1192
  "text-decoration-color": [{
1193
- decoration: v()
1193
+ decoration: N()
1194
1194
  }],
1195
1195
  /**
1196
1196
  * Text Underline Offset
@@ -1328,7 +1328,7 @@ const kr = (e, t) => {
1328
1328
  * @see https://tailwindcss.com/docs/background-color
1329
1329
  */
1330
1330
  "bg-color": [{
1331
- bg: v()
1331
+ bg: N()
1332
1332
  }],
1333
1333
  /**
1334
1334
  * Gradient Color Stops From Position
@@ -1356,21 +1356,21 @@ const kr = (e, t) => {
1356
1356
  * @see https://tailwindcss.com/docs/gradient-color-stops
1357
1357
  */
1358
1358
  "gradient-from": [{
1359
- from: v()
1359
+ from: N()
1360
1360
  }],
1361
1361
  /**
1362
1362
  * Gradient Color Stops Via
1363
1363
  * @see https://tailwindcss.com/docs/gradient-color-stops
1364
1364
  */
1365
1365
  "gradient-via": [{
1366
- via: v()
1366
+ via: N()
1367
1367
  }],
1368
1368
  /**
1369
1369
  * Gradient Color Stops To
1370
1370
  * @see https://tailwindcss.com/docs/gradient-color-stops
1371
1371
  */
1372
1372
  "gradient-to": [{
1373
- to: v()
1373
+ to: N()
1374
1374
  }],
1375
1375
  // ---------------
1376
1376
  // --- Borders ---
@@ -1586,70 +1586,70 @@ const kr = (e, t) => {
1586
1586
  * @see https://tailwindcss.com/docs/border-color
1587
1587
  */
1588
1588
  "border-color": [{
1589
- border: v()
1589
+ border: N()
1590
1590
  }],
1591
1591
  /**
1592
1592
  * Border Color X
1593
1593
  * @see https://tailwindcss.com/docs/border-color
1594
1594
  */
1595
1595
  "border-color-x": [{
1596
- "border-x": v()
1596
+ "border-x": N()
1597
1597
  }],
1598
1598
  /**
1599
1599
  * Border Color Y
1600
1600
  * @see https://tailwindcss.com/docs/border-color
1601
1601
  */
1602
1602
  "border-color-y": [{
1603
- "border-y": v()
1603
+ "border-y": N()
1604
1604
  }],
1605
1605
  /**
1606
1606
  * Border Color S
1607
1607
  * @see https://tailwindcss.com/docs/border-color
1608
1608
  */
1609
1609
  "border-color-s": [{
1610
- "border-s": v()
1610
+ "border-s": N()
1611
1611
  }],
1612
1612
  /**
1613
1613
  * Border Color E
1614
1614
  * @see https://tailwindcss.com/docs/border-color
1615
1615
  */
1616
1616
  "border-color-e": [{
1617
- "border-e": v()
1617
+ "border-e": N()
1618
1618
  }],
1619
1619
  /**
1620
1620
  * Border Color Top
1621
1621
  * @see https://tailwindcss.com/docs/border-color
1622
1622
  */
1623
1623
  "border-color-t": [{
1624
- "border-t": v()
1624
+ "border-t": N()
1625
1625
  }],
1626
1626
  /**
1627
1627
  * Border Color Right
1628
1628
  * @see https://tailwindcss.com/docs/border-color
1629
1629
  */
1630
1630
  "border-color-r": [{
1631
- "border-r": v()
1631
+ "border-r": N()
1632
1632
  }],
1633
1633
  /**
1634
1634
  * Border Color Bottom
1635
1635
  * @see https://tailwindcss.com/docs/border-color
1636
1636
  */
1637
1637
  "border-color-b": [{
1638
- "border-b": v()
1638
+ "border-b": N()
1639
1639
  }],
1640
1640
  /**
1641
1641
  * Border Color Left
1642
1642
  * @see https://tailwindcss.com/docs/border-color
1643
1643
  */
1644
1644
  "border-color-l": [{
1645
- "border-l": v()
1645
+ "border-l": N()
1646
1646
  }],
1647
1647
  /**
1648
1648
  * Divide Color
1649
1649
  * @see https://tailwindcss.com/docs/divide-color
1650
1650
  */
1651
1651
  "divide-color": [{
1652
- divide: v()
1652
+ divide: N()
1653
1653
  }],
1654
1654
  /**
1655
1655
  * Outline Style
@@ -1677,7 +1677,7 @@ const kr = (e, t) => {
1677
1677
  * @see https://tailwindcss.com/docs/outline-color
1678
1678
  */
1679
1679
  "outline-color": [{
1680
- outline: v()
1680
+ outline: N()
1681
1681
  }],
1682
1682
  // ---------------
1683
1683
  // --- Effects ---
@@ -1701,7 +1701,7 @@ const kr = (e, t) => {
1701
1701
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
1702
1702
  */
1703
1703
  "shadow-color": [{
1704
- shadow: v()
1704
+ shadow: N()
1705
1705
  }],
1706
1706
  /**
1707
1707
  * Inset Box Shadow
@@ -1715,7 +1715,7 @@ const kr = (e, t) => {
1715
1715
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
1716
1716
  */
1717
1717
  "inset-shadow-color": [{
1718
- "inset-shadow": v()
1718
+ "inset-shadow": N()
1719
1719
  }],
1720
1720
  /**
1721
1721
  * Ring Width
@@ -1736,7 +1736,7 @@ const kr = (e, t) => {
1736
1736
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
1737
1737
  */
1738
1738
  "ring-color": [{
1739
- ring: v()
1739
+ ring: N()
1740
1740
  }],
1741
1741
  /**
1742
1742
  * Ring Offset Width
@@ -1754,7 +1754,7 @@ const kr = (e, t) => {
1754
1754
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1755
1755
  */
1756
1756
  "ring-offset-color": [{
1757
- "ring-offset": v()
1757
+ "ring-offset": N()
1758
1758
  }],
1759
1759
  /**
1760
1760
  * Inset Ring Width
@@ -1768,7 +1768,7 @@ const kr = (e, t) => {
1768
1768
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
1769
1769
  */
1770
1770
  "inset-ring-color": [{
1771
- "inset-ring": v()
1771
+ "inset-ring": N()
1772
1772
  }],
1773
1773
  /**
1774
1774
  * Text Shadow
@@ -1782,7 +1782,7 @@ const kr = (e, t) => {
1782
1782
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
1783
1783
  */
1784
1784
  "text-shadow-color": [{
1785
- "text-shadow": v()
1785
+ "text-shadow": N()
1786
1786
  }],
1787
1787
  /**
1788
1788
  * Opacity
@@ -1833,10 +1833,10 @@ const kr = (e, t) => {
1833
1833
  "mask-linear-to": I()
1834
1834
  }],
1835
1835
  "mask-image-linear-from-color": [{
1836
- "mask-linear-from": v()
1836
+ "mask-linear-from": N()
1837
1837
  }],
1838
1838
  "mask-image-linear-to-color": [{
1839
- "mask-linear-to": v()
1839
+ "mask-linear-to": N()
1840
1840
  }],
1841
1841
  "mask-image-t-from-pos": [{
1842
1842
  "mask-t-from": I()
@@ -1845,10 +1845,10 @@ const kr = (e, t) => {
1845
1845
  "mask-t-to": I()
1846
1846
  }],
1847
1847
  "mask-image-t-from-color": [{
1848
- "mask-t-from": v()
1848
+ "mask-t-from": N()
1849
1849
  }],
1850
1850
  "mask-image-t-to-color": [{
1851
- "mask-t-to": v()
1851
+ "mask-t-to": N()
1852
1852
  }],
1853
1853
  "mask-image-r-from-pos": [{
1854
1854
  "mask-r-from": I()
@@ -1857,10 +1857,10 @@ const kr = (e, t) => {
1857
1857
  "mask-r-to": I()
1858
1858
  }],
1859
1859
  "mask-image-r-from-color": [{
1860
- "mask-r-from": v()
1860
+ "mask-r-from": N()
1861
1861
  }],
1862
1862
  "mask-image-r-to-color": [{
1863
- "mask-r-to": v()
1863
+ "mask-r-to": N()
1864
1864
  }],
1865
1865
  "mask-image-b-from-pos": [{
1866
1866
  "mask-b-from": I()
@@ -1869,10 +1869,10 @@ const kr = (e, t) => {
1869
1869
  "mask-b-to": I()
1870
1870
  }],
1871
1871
  "mask-image-b-from-color": [{
1872
- "mask-b-from": v()
1872
+ "mask-b-from": N()
1873
1873
  }],
1874
1874
  "mask-image-b-to-color": [{
1875
- "mask-b-to": v()
1875
+ "mask-b-to": N()
1876
1876
  }],
1877
1877
  "mask-image-l-from-pos": [{
1878
1878
  "mask-l-from": I()
@@ -1881,10 +1881,10 @@ const kr = (e, t) => {
1881
1881
  "mask-l-to": I()
1882
1882
  }],
1883
1883
  "mask-image-l-from-color": [{
1884
- "mask-l-from": v()
1884
+ "mask-l-from": N()
1885
1885
  }],
1886
1886
  "mask-image-l-to-color": [{
1887
- "mask-l-to": v()
1887
+ "mask-l-to": N()
1888
1888
  }],
1889
1889
  "mask-image-x-from-pos": [{
1890
1890
  "mask-x-from": I()
@@ -1893,10 +1893,10 @@ const kr = (e, t) => {
1893
1893
  "mask-x-to": I()
1894
1894
  }],
1895
1895
  "mask-image-x-from-color": [{
1896
- "mask-x-from": v()
1896
+ "mask-x-from": N()
1897
1897
  }],
1898
1898
  "mask-image-x-to-color": [{
1899
- "mask-x-to": v()
1899
+ "mask-x-to": N()
1900
1900
  }],
1901
1901
  "mask-image-y-from-pos": [{
1902
1902
  "mask-y-from": I()
@@ -1905,10 +1905,10 @@ const kr = (e, t) => {
1905
1905
  "mask-y-to": I()
1906
1906
  }],
1907
1907
  "mask-image-y-from-color": [{
1908
- "mask-y-from": v()
1908
+ "mask-y-from": N()
1909
1909
  }],
1910
1910
  "mask-image-y-to-color": [{
1911
- "mask-y-to": v()
1911
+ "mask-y-to": N()
1912
1912
  }],
1913
1913
  "mask-image-radial": [{
1914
1914
  "mask-radial": [b, p]
@@ -1920,10 +1920,10 @@ const kr = (e, t) => {
1920
1920
  "mask-radial-to": I()
1921
1921
  }],
1922
1922
  "mask-image-radial-from-color": [{
1923
- "mask-radial-from": v()
1923
+ "mask-radial-from": N()
1924
1924
  }],
1925
1925
  "mask-image-radial-to-color": [{
1926
- "mask-radial-to": v()
1926
+ "mask-radial-to": N()
1927
1927
  }],
1928
1928
  "mask-image-radial-shape": [{
1929
1929
  "mask-radial": ["circle", "ellipse"]
@@ -1947,10 +1947,10 @@ const kr = (e, t) => {
1947
1947
  "mask-conic-to": I()
1948
1948
  }],
1949
1949
  "mask-image-conic-from-color": [{
1950
- "mask-conic-from": v()
1950
+ "mask-conic-from": N()
1951
1951
  }],
1952
1952
  "mask-image-conic-to-color": [{
1953
- "mask-conic-to": v()
1953
+ "mask-conic-to": N()
1954
1954
  }],
1955
1955
  /**
1956
1956
  * Mask Mode
@@ -2047,7 +2047,7 @@ const kr = (e, t) => {
2047
2047
  // Deprecated since Tailwind CSS v4.0.0
2048
2048
  "",
2049
2049
  "none",
2050
- N,
2050
+ k,
2051
2051
  me,
2052
2052
  de
2053
2053
  ]
@@ -2057,7 +2057,7 @@ const kr = (e, t) => {
2057
2057
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2058
2058
  */
2059
2059
  "drop-shadow-color": [{
2060
- "drop-shadow": v()
2060
+ "drop-shadow": N()
2061
2061
  }],
2062
2062
  /**
2063
2063
  * Grayscale
@@ -2275,7 +2275,7 @@ const kr = (e, t) => {
2275
2275
  * @see https://tailwindcss.com/docs/perspective
2276
2276
  */
2277
2277
  perspective: [{
2278
- perspective: [w, b, p]
2278
+ perspective: [v, b, p]
2279
2279
  }],
2280
2280
  /**
2281
2281
  * Perspective Origin
@@ -2428,7 +2428,7 @@ const kr = (e, t) => {
2428
2428
  * @see https://tailwindcss.com/docs/accent-color
2429
2429
  */
2430
2430
  accent: [{
2431
- accent: v()
2431
+ accent: N()
2432
2432
  }],
2433
2433
  /**
2434
2434
  * Appearance
@@ -2442,7 +2442,7 @@ const kr = (e, t) => {
2442
2442
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2443
2443
  */
2444
2444
  "caret-color": [{
2445
- caret: v()
2445
+ caret: N()
2446
2446
  }],
2447
2447
  /**
2448
2448
  * Color Scheme
@@ -2688,7 +2688,7 @@ const kr = (e, t) => {
2688
2688
  * @see https://tailwindcss.com/docs/fill
2689
2689
  */
2690
2690
  fill: [{
2691
- fill: ["none", ...v()]
2691
+ fill: ["none", ...N()]
2692
2692
  }],
2693
2693
  /**
2694
2694
  * Stroke Width
@@ -2702,7 +2702,7 @@ const kr = (e, t) => {
2702
2702
  * @see https://tailwindcss.com/docs/stroke
2703
2703
  */
2704
2704
  stroke: [{
2705
- stroke: ["none", ...v()]
2705
+ stroke: ["none", ...N()]
2706
2706
  }],
2707
2707
  // ---------------------
2708
2708
  // --- Accessibility ---
@@ -3088,7 +3088,7 @@ const At = ({
3088
3088
  max: o,
3089
3089
  step: s,
3090
3090
  value: e,
3091
- onChange: (N) => t(Number(N.target.value)),
3091
+ onChange: (k) => t(Number(k.target.value)),
3092
3092
  onMouseDown: () => y(!0),
3093
3093
  onMouseUp: () => y(!1),
3094
3094
  onTouchStart: () => y(!0),
@@ -3126,9 +3126,9 @@ const At = ({
3126
3126
  disabled: m,
3127
3127
  className: x
3128
3128
  }) => {
3129
- const y = e + t, h = y > 0 ? e / y * 100 : 50, N = y > 0 ? t / y * 100 : 50, k = (w) => {
3130
- const M = n - w;
3131
- a(w, Math.max(l, Math.min(n, M)));
3129
+ const y = e + t, h = y > 0 ? e / y * 100 : 50, k = y > 0 ? t / y * 100 : 50, w = (v) => {
3130
+ const M = n - v;
3131
+ a(v, Math.max(l, Math.min(n, M)));
3132
3132
  };
3133
3133
  return /* @__PURE__ */ d("div", { className: u("w-full space-y-3", x), children: [
3134
3134
  /* @__PURE__ */ d("div", { className: "space-y-2", children: [
@@ -3157,7 +3157,7 @@ const At = ({
3157
3157
  max: n,
3158
3158
  step: c,
3159
3159
  value: e,
3160
- onChange: (w) => k(Number(w.target.value)),
3160
+ onChange: (v) => w(Number(v.target.value)),
3161
3161
  disabled: m,
3162
3162
  className: "absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"
3163
3163
  }
@@ -3178,7 +3178,7 @@ const At = ({
3178
3178
  {
3179
3179
  className: "h-full bg-success",
3180
3180
  initial: !1,
3181
- animate: { width: `${N}%` },
3181
+ animate: { width: `${k}%` },
3182
3182
  transition: { type: "spring", stiffness: 300, damping: 30 }
3183
3183
  }
3184
3184
  ) }),
@@ -3190,7 +3190,7 @@ const At = ({
3190
3190
  max: n,
3191
3191
  step: c,
3192
3192
  value: t,
3193
- onChange: (w) => k(n - Number(w.target.value)),
3193
+ onChange: (v) => w(n - Number(v.target.value)),
3194
3194
  disabled: m,
3195
3195
  className: "absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"
3196
3196
  }
@@ -3215,21 +3215,21 @@ const At = ({
3215
3215
  disabled: i,
3216
3216
  className: m
3217
3217
  }) => {
3218
- const [x, y] = D(!1), [h, N] = D(""), k = H(null), w = e.find((T) => T.value === t), M = n ? e.filter(
3218
+ const [x, y] = D(!1), [h, k] = D(""), w = H(null), v = e.find((T) => T.value === t), M = n ? e.filter(
3219
3219
  (T) => T.label.toLowerCase().includes(h.toLowerCase())
3220
3220
  ) : e;
3221
3221
  Z(() => {
3222
3222
  const T = (F) => {
3223
- k.current && !k.current.contains(F.target) && (y(!1), N(""));
3223
+ w.current && !w.current.contains(F.target) && (y(!1), k(""));
3224
3224
  };
3225
3225
  return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
3226
3226
  }, []);
3227
3227
  const j = (T) => {
3228
- a(T), y(!1), N("");
3228
+ a(T), y(!1), k("");
3229
3229
  }, L = (T) => {
3230
3230
  T.stopPropagation(), a("");
3231
3231
  };
3232
- return /* @__PURE__ */ d("div", { ref: k, className: u("relative w-full", m), children: [
3232
+ return /* @__PURE__ */ d("div", { ref: w, className: u("relative w-full", m), children: [
3233
3233
  s && /* @__PURE__ */ r("label", { className: "block mb-1.5 text-sm font-medium text-foreground", children: s }),
3234
3234
  /* @__PURE__ */ d(
3235
3235
  "button",
@@ -3249,11 +3249,11 @@ const At = ({
3249
3249
  ),
3250
3250
  children: [
3251
3251
  /* @__PURE__ */ d("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
3252
- w?.icon && /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: w.icon }),
3253
- /* @__PURE__ */ r("span", { className: u("truncate", !w && "text-foreground/50"), children: w?.label || o })
3252
+ v?.icon && /* @__PURE__ */ r("span", { className: "flex-shrink-0", children: v.icon }),
3253
+ /* @__PURE__ */ r("span", { className: u("truncate", !v && "text-foreground/50"), children: v?.label || o })
3254
3254
  ] }),
3255
3255
  /* @__PURE__ */ d("div", { className: "flex items-center gap-1 flex-shrink-0", children: [
3256
- c && w && /* @__PURE__ */ r(
3256
+ c && v && /* @__PURE__ */ r(
3257
3257
  "button",
3258
3258
  {
3259
3259
  type: "button",
@@ -3292,14 +3292,14 @@ const At = ({
3292
3292
  type: "text",
3293
3293
  placeholder: "Search...",
3294
3294
  value: h,
3295
- onChange: (T) => N(T.target.value),
3295
+ onChange: (T) => k(T.target.value),
3296
3296
  className: "w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary"
3297
3297
  }
3298
3298
  ),
3299
3299
  h && /* @__PURE__ */ r(
3300
3300
  "button",
3301
3301
  {
3302
- onClick: () => N(""),
3302
+ onClick: () => k(""),
3303
3303
  className: "absolute right-2 top-1/2 -translate-y-1/2",
3304
3304
  children: /* @__PURE__ */ r($, { className: "w-4 h-4 text-primary/50 hover:text-primary" })
3305
3305
  }
@@ -3349,17 +3349,17 @@ const At = ({
3349
3349
  required: x,
3350
3350
  className: y
3351
3351
  }, h) => {
3352
- const [N, k] = D(!1), [w, M] = D(""), j = H(null), L = e.find((S) => S.value === t), T = c ? e.filter(
3353
- (S) => S.label.toLowerCase().includes(w.toLowerCase())
3352
+ const [k, w] = D(!1), [v, M] = D(""), j = H(null), L = e.find((S) => S.value === t), T = c ? e.filter(
3353
+ (S) => S.label.toLowerCase().includes(v.toLowerCase())
3354
3354
  ) : e;
3355
3355
  Z(() => {
3356
3356
  const S = (O) => {
3357
- j.current && !j.current.contains(O.target) && (k(!1), M(""));
3357
+ j.current && !j.current.contains(O.target) && (w(!1), M(""));
3358
3358
  };
3359
3359
  return document.addEventListener("mousedown", S), () => document.removeEventListener("mousedown", S);
3360
3360
  }, []);
3361
3361
  const F = (S) => {
3362
- a(S), k(!1), M("");
3362
+ a(S), w(!1), M("");
3363
3363
  }, P = (S) => {
3364
3364
  S.stopPropagation(), a("");
3365
3365
  };
@@ -3373,10 +3373,10 @@ const At = ({
3373
3373
  "button",
3374
3374
  {
3375
3375
  type: "button",
3376
- onClick: () => !m && k(!N),
3376
+ onClick: () => !m && w(!k),
3377
3377
  disabled: m,
3378
3378
  "aria-haspopup": "listbox",
3379
- "aria-expanded": N,
3379
+ "aria-expanded": k,
3380
3380
  "aria-required": x,
3381
3381
  className: u(
3382
3382
  "w-full px-4 py-3 rounded-md border transition-all duration-200",
@@ -3386,7 +3386,7 @@ const At = ({
3386
3386
  "touch-target text-base",
3387
3387
  l && "border-error focus:ring-error",
3388
3388
  !l && "border-border",
3389
- N && "ring-2 ring-primary"
3389
+ k && "ring-2 ring-primary"
3390
3390
  ),
3391
3391
  children: [
3392
3392
  /* @__PURE__ */ d("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
@@ -3409,7 +3409,7 @@ const At = ({
3409
3409
  {
3410
3410
  className: u(
3411
3411
  "w-5 h-5 text-primary transition-transform",
3412
- N && "rotate-180"
3412
+ k && "rotate-180"
3413
3413
  )
3414
3414
  }
3415
3415
  )
@@ -3417,7 +3417,7 @@ const At = ({
3417
3417
  ]
3418
3418
  }
3419
3419
  ),
3420
- /* @__PURE__ */ r(Q, { children: N && /* @__PURE__ */ d(
3420
+ /* @__PURE__ */ r(Q, { children: k && /* @__PURE__ */ d(
3421
3421
  g.div,
3422
3422
  {
3423
3423
  initial: { opacity: 0, y: -10 },
@@ -3434,13 +3434,13 @@ const At = ({
3434
3434
  {
3435
3435
  type: "text",
3436
3436
  placeholder: "Search...",
3437
- value: w,
3437
+ value: v,
3438
3438
  onChange: (S) => M(S.target.value),
3439
3439
  className: "w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary",
3440
3440
  "aria-label": "Search options"
3441
3441
  }
3442
3442
  ),
3443
- w && /* @__PURE__ */ r(
3443
+ v && /* @__PURE__ */ r(
3444
3444
  "button",
3445
3445
  {
3446
3446
  type: "button",
@@ -3501,16 +3501,16 @@ const Dt = ({
3501
3501
  maxDate: c,
3502
3502
  className: i
3503
3503
  }) => {
3504
- const [m, x] = D(!1), [y, h] = D(e || /* @__PURE__ */ new Date()), N = H(null);
3504
+ const [m, x] = D(!1), [y, h] = D(e || /* @__PURE__ */ new Date()), k = H(null);
3505
3505
  Z(() => {
3506
3506
  const C = (A) => {
3507
- N.current && !N.current.contains(A.target) && x(!1);
3507
+ k.current && !k.current.contains(A.target) && x(!1);
3508
3508
  };
3509
3509
  return m && document.addEventListener("mousedown", C), () => {
3510
3510
  document.removeEventListener("mousedown", C);
3511
3511
  };
3512
3512
  }, [m]);
3513
- const k = [
3513
+ const w = [
3514
3514
  "January",
3515
3515
  "February",
3516
3516
  "March",
@@ -3523,7 +3523,7 @@ const Dt = ({
3523
3523
  "October",
3524
3524
  "November",
3525
3525
  "December"
3526
- ], w = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], M = (C) => {
3526
+ ], v = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], M = (C) => {
3527
3527
  const A = C.getFullYear(), _ = C.getMonth(), V = new Date(A, _, 1), te = new Date(A, _ + 1, 0).getDate(), q = V.getDay(), B = [];
3528
3528
  for (let G = 0; G < q; G++)
3529
3529
  B.push(null);
@@ -3541,7 +3541,7 @@ const Dt = ({
3541
3541
  month: "short",
3542
3542
  day: "numeric"
3543
3543
  }) : "", f = M(y);
3544
- return /* @__PURE__ */ d("div", { ref: N, className: u("relative w-full", i), children: [
3544
+ return /* @__PURE__ */ d("div", { ref: k, className: u("relative w-full", i), children: [
3545
3545
  a && /* @__PURE__ */ r("label", { className: "block mb-1.5 text-sm font-medium text-foreground", children: a }),
3546
3546
  /* @__PURE__ */ d(
3547
3547
  "button",
@@ -3585,7 +3585,7 @@ const Dt = ({
3585
3585
  }
3586
3586
  ),
3587
3587
  /* @__PURE__ */ d("div", { className: "font-semibold text-foreground", children: [
3588
- k[y.getMonth()],
3588
+ w[y.getMonth()],
3589
3589
  " ",
3590
3590
  y.getFullYear()
3591
3591
  ] }),
@@ -3599,7 +3599,7 @@ const Dt = ({
3599
3599
  }
3600
3600
  )
3601
3601
  ] }),
3602
- /* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1 mb-2", children: w.map((C) => /* @__PURE__ */ r(
3602
+ /* @__PURE__ */ r("div", { className: "grid grid-cols-7 gap-1 mb-2", children: v.map((C) => /* @__PURE__ */ r(
3603
3603
  "div",
3604
3604
  {
3605
3605
  className: "text-center text-xs font-medium text-primary/70 py-2",
@@ -3877,13 +3877,13 @@ function Vt({
3877
3877
  }) {
3878
3878
  const [n, c] = D(null), [i, m] = D("asc"), x = (h) => {
3879
3879
  n === h ? m(i === "asc" ? "desc" : "asc") : (c(h), m("asc"));
3880
- }, y = n ? [...e].sort((h, N) => {
3881
- const k = h[n], w = N[n];
3882
- return k < w ? i === "asc" ? -1 : 1 : k > w ? i === "asc" ? 1 : -1 : 0;
3880
+ }, y = n ? [...e].sort((h, k) => {
3881
+ const w = h[n], v = k[n];
3882
+ return w < v ? i === "asc" ? -1 : 1 : w > v ? i === "asc" ? 1 : -1 : 0;
3883
3883
  }) : e;
3884
3884
  return a ? /* @__PURE__ */ r("div", { className: u("border border-border rounded-lg overflow-hidden", l), children: /* @__PURE__ */ r("div", { className: "overflow-x-auto", children: /* @__PURE__ */ d("table", { className: "w-full", children: [
3885
- /* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((h, N) => /* @__PURE__ */ r("th", { className: "px-6 py-4 text-left", children: /* @__PURE__ */ r("div", { className: "h-4 bg-border rounded w-24 animate-pulse" }) }, N)) }) }),
3886
- /* @__PURE__ */ r("tbody", { children: [...Array(5)].map((h, N) => /* @__PURE__ */ r("tr", { className: "border-b border-border", children: t.map((k, w) => /* @__PURE__ */ r("td", { className: "px-6 py-4", children: /* @__PURE__ */ r("div", { className: "h-4 bg-secondary rounded animate-pulse" }) }, w)) }, N)) })
3885
+ /* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((h, k) => /* @__PURE__ */ r("th", { className: "px-6 py-4 text-left", children: /* @__PURE__ */ r("div", { className: "h-4 bg-border rounded w-24 animate-pulse" }) }, k)) }) }),
3886
+ /* @__PURE__ */ r("tbody", { children: [...Array(5)].map((h, k) => /* @__PURE__ */ r("tr", { className: "border-b border-border", children: t.map((w, v) => /* @__PURE__ */ r("td", { className: "px-6 py-4", children: /* @__PURE__ */ r("div", { className: "h-4 bg-secondary rounded animate-pulse" }) }, v)) }, k)) })
3887
3887
  ] }) }) }) : /* @__PURE__ */ r(
3888
3888
  g.div,
3889
3889
  {
@@ -3892,7 +3892,7 @@ function Vt({
3892
3892
  transition: { duration: 0.3 },
3893
3893
  className: u("border border-border rounded-lg overflow-hidden", l),
3894
3894
  children: /* @__PURE__ */ r("div", { className: "overflow-x-auto", children: /* @__PURE__ */ d("table", { className: "w-full", children: [
3895
- /* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((h, N) => /* @__PURE__ */ r(
3895
+ /* @__PURE__ */ r("thead", { className: "border-b border-border", children: /* @__PURE__ */ r("tr", { children: t.map((h, k) => /* @__PURE__ */ r(
3896
3896
  "th",
3897
3897
  {
3898
3898
  className: u(
@@ -3906,31 +3906,31 @@ function Vt({
3906
3906
  h.sortable && /* @__PURE__ */ r("span", { className: "text-primary/50 hover:text-primary transition-colors", children: n === h.key ? i === "asc" ? /* @__PURE__ */ r(nr, { className: "w-4 h-4" }) : /* @__PURE__ */ r(ir, { className: "w-4 h-4" }) : /* @__PURE__ */ r(lr, { className: "w-4 h-4" }) })
3907
3907
  ] })
3908
3908
  },
3909
- N
3909
+ k
3910
3910
  )) }) }),
3911
- /* @__PURE__ */ r("tbody", { children: y.map((h, N) => /* @__PURE__ */ r(
3911
+ /* @__PURE__ */ r("tbody", { children: y.map((h, k) => /* @__PURE__ */ r(
3912
3912
  g.tr,
3913
3913
  {
3914
3914
  initial: { opacity: 0, y: 10 },
3915
3915
  animate: { opacity: 1, y: 0 },
3916
- transition: { duration: 0.2, delay: N * 0.05 },
3916
+ transition: { duration: 0.2, delay: k * 0.05 },
3917
3917
  onClick: () => o && o(h),
3918
3918
  className: u(
3919
3919
  "border-b border-border transition-colors",
3920
3920
  o && "cursor-pointer hover:bg-secondary"
3921
3921
  ),
3922
- children: t.map((k, w) => /* @__PURE__ */ r(
3922
+ children: t.map((w, v) => /* @__PURE__ */ r(
3923
3923
  "td",
3924
3924
  {
3925
3925
  className: u(
3926
3926
  "px-6 py-4 text-sm text-foreground/70",
3927
- k.width
3927
+ w.width
3928
3928
  ),
3929
- style: k.width ? { width: k.width } : void 0,
3930
- title: k.truncate && !k.render ? String(h[k.key] ?? "") : void 0,
3931
- children: k.truncate && !k.render ? /* @__PURE__ */ r("div", { className: "truncate", children: String(h[k.key] ?? "") }) : k.render ? k.render(h) : String(h[k.key] ?? "")
3929
+ style: w.width ? { width: w.width } : void 0,
3930
+ title: w.truncate && !w.render ? String(h[w.key] ?? "") : void 0,
3931
+ children: w.truncate && !w.render ? /* @__PURE__ */ r("div", { className: "truncate", children: String(h[w.key] ?? "") }) : w.render ? w.render(h) : String(h[w.key] ?? "")
3932
3932
  },
3933
- w
3933
+ v
3934
3934
  ))
3935
3935
  },
3936
3936
  s(h)
@@ -4060,7 +4060,7 @@ const Wt = ({
4060
4060
  success: "bg-success text-white",
4061
4061
  danger: "bg-error text-white",
4062
4062
  warning: "bg-warning text-white"
4063
- }, N = () => {
4063
+ }, k = () => {
4064
4064
  o && o.length > 0 ? m(!i) : t && t();
4065
4065
  };
4066
4066
  return /* @__PURE__ */ d("div", { className: u(x[l], "z-50", c), children: [
@@ -4071,34 +4071,44 @@ const Wt = ({
4071
4071
  animate: { opacity: 1 },
4072
4072
  exit: { opacity: 0 },
4073
4073
  className: "absolute bottom-20 right-0 flex flex-col gap-3 mb-2",
4074
- children: o.map((k, w) => /* @__PURE__ */ d(
4074
+ children: o.map((w, v) => /* @__PURE__ */ d(
4075
4075
  g.div,
4076
4076
  {
4077
4077
  initial: { opacity: 0, y: 20, scale: 0.8 },
4078
4078
  animate: { opacity: 1, y: 0, scale: 1 },
4079
4079
  exit: { opacity: 0, y: 20, scale: 0.8 },
4080
- transition: { delay: w * 0.05 },
4080
+ transition: { delay: v * 0.05 },
4081
4081
  className: "flex items-center gap-3",
4082
4082
  children: [
4083
- /* @__PURE__ */ r("span", { className: "bg-background border border-border rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap shadow-lg", children: k.label }),
4083
+ /* @__PURE__ */ r(
4084
+ "span",
4085
+ {
4086
+ className: u(
4087
+ "bg-background border border-border rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap shadow-lg",
4088
+ w.labelClassName
4089
+ ),
4090
+ style: w.labelStyle,
4091
+ children: w.label
4092
+ }
4093
+ ),
4084
4094
  /* @__PURE__ */ r(
4085
4095
  g.button,
4086
4096
  {
4087
4097
  whileHover: { scale: 1.1 },
4088
4098
  whileTap: { scale: 0.9 },
4089
4099
  onClick: () => {
4090
- k.onClick(), m(!1);
4100
+ w.onClick(), m(!1);
4091
4101
  },
4092
4102
  className: u(
4093
4103
  "w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",
4094
- h[k.variant || "primary"]
4104
+ h[w.variant || "primary"]
4095
4105
  ),
4096
- children: k.icon
4106
+ children: w.icon
4097
4107
  }
4098
4108
  )
4099
4109
  ]
4100
4110
  },
4101
- w
4111
+ v
4102
4112
  ))
4103
4113
  }
4104
4114
  ) }),
@@ -4107,7 +4117,7 @@ const Wt = ({
4107
4117
  {
4108
4118
  whileTap: { scale: n ? 1 : 0.9 },
4109
4119
  whileHover: { scale: n ? 1 : 1.05 },
4110
- onClick: N,
4120
+ onClick: k,
4111
4121
  disabled: n,
4112
4122
  className: u(
4113
4123
  "z-30 rounded-full p-4 transition-all duration-200",
@@ -4575,28 +4585,28 @@ const Xt = ({
4575
4585
  disabled: o,
4576
4586
  className: s
4577
4587
  }) => {
4578
- const [l, n] = D(!1), [c, i] = D(!1), [m, x] = D(0), [y, h] = D(null), N = H(null), k = H([]), w = H(null), M = async () => {
4588
+ const [l, n] = D(!1), [c, i] = D(!1), [m, x] = D(0), [y, h] = D(null), k = H(null), w = H([]), v = H(null), M = async () => {
4579
4589
  try {
4580
4590
  const S = await navigator.mediaDevices.getUserMedia({ audio: !0 }), O = new MediaRecorder(S);
4581
- N.current = O, k.current = [], O.ondataavailable = (f) => {
4582
- f.data.size > 0 && k.current.push(f.data);
4591
+ k.current = O, w.current = [], O.ondataavailable = (f) => {
4592
+ f.data.size > 0 && w.current.push(f.data);
4583
4593
  }, O.onstop = () => {
4584
- const f = new Blob(k.current, { type: "audio/webm" }), C = URL.createObjectURL(f);
4594
+ const f = new Blob(w.current, { type: "audio/webm" }), C = URL.createObjectURL(f);
4585
4595
  h(C), e(f), S.getTracks().forEach((A) => A.stop());
4586
- }, O.start(), n(!0), x(0), w.current = setInterval(() => {
4596
+ }, O.start(), n(!0), x(0), v.current = setInterval(() => {
4587
4597
  x((f) => f >= a ? (T(), f) : f + 1);
4588
4598
  }, 1e3);
4589
4599
  } catch (S) {
4590
4600
  console.error("Error accessing microphone:", S);
4591
4601
  }
4592
4602
  }, j = () => {
4593
- N.current?.state === "recording" && (N.current.pause(), i(!0), w.current && clearInterval(w.current));
4603
+ k.current?.state === "recording" && (k.current.pause(), i(!0), v.current && clearInterval(v.current));
4594
4604
  }, L = () => {
4595
- N.current?.state === "paused" && (N.current.resume(), i(!1), w.current = setInterval(() => {
4605
+ k.current?.state === "paused" && (k.current.resume(), i(!1), v.current = setInterval(() => {
4596
4606
  x((S) => Math.min(S + 1, a));
4597
4607
  }, 1e3));
4598
4608
  }, T = () => {
4599
- N.current && (N.current.stop(), n(!1), i(!1), w.current && (clearInterval(w.current), w.current = null));
4609
+ k.current && (k.current.stop(), n(!1), i(!1), v.current && (clearInterval(v.current), v.current = null));
4600
4610
  }, F = () => {
4601
4611
  h(null), x(0);
4602
4612
  }, P = (S) => {