@altimateai/ui-components 0.0.69-beta.2 → 0.0.69-beta.3

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/Stack.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { j as g, S as ys, d as xs } from "./index2.js";
2
2
  import * as l from "react";
3
- import ve, { useLayoutEffect as ws, useEffect as Cs, forwardRef as H, useState as Es, createElement as Qe } from "react";
3
+ import ve, { useLayoutEffect as ws, useEffect as Cs, forwardRef as H, createElement as Qe, useState as Es } from "react";
4
4
  import * as qn from "react-dom";
5
5
  import Rs from "react-dom";
6
6
  function Zn(e) {
@@ -5417,7 +5417,67 @@ const Zl = l.forwardRef(
5417
5417
  )
5418
5418
  );
5419
5419
  Zl.displayName = "Textarea";
5420
- var wt = "focusScope.autoFocusOnMount", Ct = "focusScope.autoFocusOnUnmount", $n = { bubbles: !1, cancelable: !0 }, Ql = "FocusScope", ln = l.forwardRef((e, t) => {
5420
+ /**
5421
+ * @license @tabler/icons-react v3.34.1 - MIT
5422
+ *
5423
+ * This source code is licensed under the MIT license.
5424
+ * See the LICENSE file in the root directory of this source tree.
5425
+ */
5426
+ var Ql = {
5427
+ outline: {
5428
+ xmlns: "http://www.w3.org/2000/svg",
5429
+ width: 24,
5430
+ height: 24,
5431
+ viewBox: "0 0 24 24",
5432
+ fill: "none",
5433
+ stroke: "currentColor",
5434
+ strokeWidth: 2,
5435
+ strokeLinecap: "round",
5436
+ strokeLinejoin: "round"
5437
+ },
5438
+ filled: {
5439
+ xmlns: "http://www.w3.org/2000/svg",
5440
+ width: 24,
5441
+ height: 24,
5442
+ viewBox: "0 0 24 24",
5443
+ fill: "currentColor",
5444
+ stroke: "none"
5445
+ }
5446
+ };
5447
+ /**
5448
+ * @license @tabler/icons-react v3.34.1 - MIT
5449
+ *
5450
+ * This source code is licensed under the MIT license.
5451
+ * See the LICENSE file in the root directory of this source tree.
5452
+ */
5453
+ const od = (e, t, n, r) => {
5454
+ const o = H(
5455
+ ({ color: s = "currentColor", size: a = 24, stroke: i = 2, title: c, className: u, children: d, ...f }, h) => Qe(
5456
+ "svg",
5457
+ {
5458
+ ref: h,
5459
+ ...Ql[e],
5460
+ width: a,
5461
+ height: a,
5462
+ className: ["tabler-icon", `tabler-icon-${t}`, u].join(" "),
5463
+ ...e === "filled" ? {
5464
+ fill: s
5465
+ } : {
5466
+ strokeWidth: i,
5467
+ stroke: s
5468
+ },
5469
+ ...f
5470
+ },
5471
+ [
5472
+ c && Qe("title", { key: "svg-title" }, c),
5473
+ ...r.map(([m, v]) => Qe(m, v)),
5474
+ ...Array.isArray(d) ? d : [d]
5475
+ ]
5476
+ )
5477
+ );
5478
+ return o.displayName = `${n}`, o;
5479
+ };
5480
+ var wt = "focusScope.autoFocusOnMount", Ct = "focusScope.autoFocusOnUnmount", $n = { bubbles: !1, cancelable: !0 }, Jl = "FocusScope", ln = l.forwardRef((e, t) => {
5421
5481
  const {
5422
5482
  loop: n = !1,
5423
5483
  trapped: r = !1,
@@ -5460,7 +5520,7 @@ var wt = "focusScope.autoFocusOnMount", Ct = "focusScope.autoFocusOnUnmount", $n
5460
5520
  const p = document.activeElement;
5461
5521
  if (!i.contains(p)) {
5462
5522
  const y = new CustomEvent(wt, $n);
5463
- i.addEventListener(wt, u), i.dispatchEvent(y), y.defaultPrevented || (Jl(oc(ho(i)), { select: !0 }), document.activeElement === p && ce(i));
5523
+ i.addEventListener(wt, u), i.dispatchEvent(y), y.defaultPrevented || (ec(sc(ho(i)), { select: !0 }), document.activeElement === p && ce(i));
5464
5524
  }
5465
5525
  return () => {
5466
5526
  i.removeEventListener(wt, u), setTimeout(() => {
@@ -5475,7 +5535,7 @@ var wt = "focusScope.autoFocusOnMount", Ct = "focusScope.autoFocusOnUnmount", $n
5475
5535
  if (!n && !r || m.paused) return;
5476
5536
  const b = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
5477
5537
  if (b && y) {
5478
- const x = p.currentTarget, [C, w] = ec(x);
5538
+ const x = p.currentTarget, [C, w] = tc(x);
5479
5539
  C && w ? !p.shiftKey && y === w ? (p.preventDefault(), n && ce(C, { select: !0 })) : p.shiftKey && y === C && (p.preventDefault(), n && ce(w, { select: !0 })) : y === x && p.preventDefault();
5480
5540
  }
5481
5541
  },
@@ -5483,13 +5543,13 @@ var wt = "focusScope.autoFocusOnMount", Ct = "focusScope.autoFocusOnUnmount", $n
5483
5543
  );
5484
5544
  return /* @__PURE__ */ g.jsx($.div, { tabIndex: -1, ...a, ref: h, onKeyDown: v });
5485
5545
  });
5486
- ln.displayName = Ql;
5487
- function Jl(e, { select: t = !1 } = {}) {
5546
+ ln.displayName = Jl;
5547
+ function ec(e, { select: t = !1 } = {}) {
5488
5548
  const n = document.activeElement;
5489
5549
  for (const r of e)
5490
5550
  if (ce(r, { select: t }), document.activeElement !== n) return;
5491
5551
  }
5492
- function ec(e) {
5552
+ function tc(e) {
5493
5553
  const t = ho(e), n = Wn(t, e), r = Wn(t.reverse(), e);
5494
5554
  return [n, r];
5495
5555
  }
@@ -5505,9 +5565,9 @@ function ho(e) {
5505
5565
  }
5506
5566
  function Wn(e, t) {
5507
5567
  for (const n of e)
5508
- if (!tc(n, { upTo: t })) return n;
5568
+ if (!nc(n, { upTo: t })) return n;
5509
5569
  }
5510
- function tc(e, { upTo: t }) {
5570
+ function nc(e, { upTo: t }) {
5511
5571
  if (getComputedStyle(e).visibility === "hidden") return !0;
5512
5572
  for (; e; ) {
5513
5573
  if (t !== void 0 && e === t) return !1;
@@ -5516,17 +5576,17 @@ function tc(e, { upTo: t }) {
5516
5576
  }
5517
5577
  return !1;
5518
5578
  }
5519
- function nc(e) {
5579
+ function rc(e) {
5520
5580
  return e instanceof HTMLInputElement && "select" in e;
5521
5581
  }
5522
5582
  function ce(e, { select: t = !1 } = {}) {
5523
5583
  if (e && e.focus) {
5524
5584
  const n = document.activeElement;
5525
- e.focus({ preventScroll: !0 }), e !== n && nc(e) && t && e.select();
5585
+ e.focus({ preventScroll: !0 }), e !== n && rc(e) && t && e.select();
5526
5586
  }
5527
5587
  }
5528
- var Vn = rc();
5529
- function rc() {
5588
+ var Vn = oc();
5589
+ function oc() {
5530
5590
  let e = [];
5531
5591
  return {
5532
5592
  add(t) {
@@ -5543,7 +5603,7 @@ function zn(e, t) {
5543
5603
  const n = [...e], r = n.indexOf(t);
5544
5604
  return r !== -1 && n.splice(r, 1), n;
5545
5605
  }
5546
- function oc(e) {
5606
+ function sc(e) {
5547
5607
  return e.filter((t) => t.tagName !== "A");
5548
5608
  }
5549
5609
  var Et = 0;
@@ -5576,16 +5636,16 @@ function bo(e, t) {
5576
5636
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
5577
5637
  return n;
5578
5638
  }
5579
- function sc(e, t, n) {
5639
+ function ac(e, t, n) {
5580
5640
  if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
5581
5641
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
5582
5642
  return e.concat(s || Array.prototype.slice.call(t));
5583
5643
  }
5584
- var et = "right-scroll-bar-position", tt = "width-before-scroll-bar", ac = "with-scroll-bars-hidden", ic = "--removed-body-scroll-bar-size";
5644
+ var et = "right-scroll-bar-position", tt = "width-before-scroll-bar", ic = "with-scroll-bars-hidden", lc = "--removed-body-scroll-bar-size";
5585
5645
  function Rt(e, t) {
5586
5646
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
5587
5647
  }
5588
- function lc(e, t) {
5648
+ function cc(e, t) {
5589
5649
  var n = Es(function() {
5590
5650
  return {
5591
5651
  // value
@@ -5606,14 +5666,14 @@ function lc(e, t) {
5606
5666
  })[0];
5607
5667
  return n.callback = t, n.facade;
5608
5668
  }
5609
- var cc = typeof window < "u" ? l.useLayoutEffect : l.useEffect, Hn = /* @__PURE__ */ new WeakMap();
5610
- function uc(e, t) {
5611
- var n = lc(null, function(r) {
5669
+ var uc = typeof window < "u" ? l.useLayoutEffect : l.useEffect, Hn = /* @__PURE__ */ new WeakMap();
5670
+ function dc(e, t) {
5671
+ var n = cc(null, function(r) {
5612
5672
  return e.forEach(function(o) {
5613
5673
  return Rt(o, r);
5614
5674
  });
5615
5675
  });
5616
- return cc(function() {
5676
+ return uc(function() {
5617
5677
  var r = Hn.get(n);
5618
5678
  if (r) {
5619
5679
  var o = new Set(r), s = new Set(e), a = n.current;
@@ -5626,11 +5686,11 @@ function uc(e, t) {
5626
5686
  Hn.set(n, e);
5627
5687
  }, [e]), n;
5628
5688
  }
5629
- function dc(e) {
5689
+ function fc(e) {
5630
5690
  return e;
5631
5691
  }
5632
- function fc(e, t) {
5633
- t === void 0 && (t = dc);
5692
+ function pc(e, t) {
5693
+ t === void 0 && (t = fc);
5634
5694
  var n = [], r = !1, o = {
5635
5695
  read: function() {
5636
5696
  if (r)
@@ -5684,9 +5744,9 @@ function fc(e, t) {
5684
5744
  };
5685
5745
  return o;
5686
5746
  }
5687
- function pc(e) {
5747
+ function mc(e) {
5688
5748
  e === void 0 && (e = {});
5689
- var t = fc(null);
5749
+ var t = pc(null);
5690
5750
  return t.options = Q({ async: !0, ssr: !1 }, e), t;
5691
5751
  }
5692
5752
  var yo = function(e) {
@@ -5699,16 +5759,16 @@ var yo = function(e) {
5699
5759
  return l.createElement(r, Q({}, n));
5700
5760
  };
5701
5761
  yo.isSideCarExport = !0;
5702
- function mc(e, t) {
5762
+ function gc(e, t) {
5703
5763
  return e.useMedium(t), yo;
5704
5764
  }
5705
- var xo = pc(), Pt = function() {
5765
+ var xo = mc(), Pt = function() {
5706
5766
  }, ht = l.forwardRef(function(e, t) {
5707
5767
  var n = l.useRef(null), r = l.useState({
5708
5768
  onScrollCapture: Pt,
5709
5769
  onWheelCapture: Pt,
5710
5770
  onTouchMoveCapture: Pt
5711
- }), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar, m = e.noIsolation, v = e.inert, p = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, x = e.gapMode, C = bo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = h, E = uc([n, t]), P = Q(Q({}, C), o);
5771
+ }), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, h = e.sideCar, m = e.noIsolation, v = e.inert, p = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, x = e.gapMode, C = bo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = h, E = dc([n, t]), P = Q(Q({}, C), o);
5712
5772
  return l.createElement(
5713
5773
  l.Fragment,
5714
5774
  null,
@@ -5725,37 +5785,37 @@ ht.classNames = {
5725
5785
  fullWidth: tt,
5726
5786
  zeroRight: et
5727
5787
  };
5728
- var gc = function() {
5788
+ var hc = function() {
5729
5789
  if (typeof __webpack_nonce__ < "u")
5730
5790
  return __webpack_nonce__;
5731
5791
  };
5732
- function hc() {
5792
+ function vc() {
5733
5793
  if (!document)
5734
5794
  return null;
5735
5795
  var e = document.createElement("style");
5736
5796
  e.type = "text/css";
5737
- var t = gc();
5797
+ var t = hc();
5738
5798
  return t && e.setAttribute("nonce", t), e;
5739
5799
  }
5740
- function vc(e, t) {
5800
+ function bc(e, t) {
5741
5801
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
5742
5802
  }
5743
- function bc(e) {
5803
+ function yc(e) {
5744
5804
  var t = document.head || document.getElementsByTagName("head")[0];
5745
5805
  t.appendChild(e);
5746
5806
  }
5747
- var yc = function() {
5807
+ var xc = function() {
5748
5808
  var e = 0, t = null;
5749
5809
  return {
5750
5810
  add: function(n) {
5751
- e == 0 && (t = hc()) && (vc(t, n), bc(t)), e++;
5811
+ e == 0 && (t = vc()) && (bc(t, n), yc(t)), e++;
5752
5812
  },
5753
5813
  remove: function() {
5754
5814
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
5755
5815
  }
5756
5816
  };
5757
- }, xc = function() {
5758
- var e = yc();
5817
+ }, wc = function() {
5818
+ var e = xc();
5759
5819
  return function(t, n) {
5760
5820
  l.useEffect(function() {
5761
5821
  return e.add(t), function() {
@@ -5764,35 +5824,35 @@ var yc = function() {
5764
5824
  }, [t && n]);
5765
5825
  };
5766
5826
  }, wo = function() {
5767
- var e = xc(), t = function(n) {
5827
+ var e = wc(), t = function(n) {
5768
5828
  var r = n.styles, o = n.dynamic;
5769
5829
  return e(r, o), null;
5770
5830
  };
5771
5831
  return t;
5772
- }, wc = {
5832
+ }, Cc = {
5773
5833
  left: 0,
5774
5834
  top: 0,
5775
5835
  right: 0,
5776
5836
  gap: 0
5777
5837
  }, St = function(e) {
5778
5838
  return parseInt(e || "", 10) || 0;
5779
- }, Cc = function(e) {
5839
+ }, Ec = function(e) {
5780
5840
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
5781
5841
  return [St(n), St(r), St(o)];
5782
- }, Ec = function(e) {
5842
+ }, Rc = function(e) {
5783
5843
  if (e === void 0 && (e = "margin"), typeof window > "u")
5784
- return wc;
5785
- var t = Cc(e), n = document.documentElement.clientWidth, r = window.innerWidth;
5844
+ return Cc;
5845
+ var t = Ec(e), n = document.documentElement.clientWidth, r = window.innerWidth;
5786
5846
  return {
5787
5847
  left: t[0],
5788
5848
  top: t[1],
5789
5849
  right: t[2],
5790
5850
  gap: Math.max(0, r - n + t[2] - t[0])
5791
5851
  };
5792
- }, Rc = wo(), Ae = "data-scroll-locked", Pc = function(e, t, n, r) {
5852
+ }, Pc = wo(), Ae = "data-scroll-locked", Sc = function(e, t, n, r) {
5793
5853
  var o = e.left, s = e.top, a = e.right, i = e.gap;
5794
5854
  return n === void 0 && (n = "margin"), `
5795
- .`.concat(ac, ` {
5855
+ .`.concat(ic, ` {
5796
5856
  overflow: hidden `).concat(r, `;
5797
5857
  padding-right: `).concat(i, "px ").concat(r, `;
5798
5858
  }
@@ -5830,26 +5890,26 @@ var yc = function() {
5830
5890
  }
5831
5891
 
5832
5892
  body[`).concat(Ae, `] {
5833
- `).concat(ic, ": ").concat(i, `px;
5893
+ `).concat(lc, ": ").concat(i, `px;
5834
5894
  }
5835
5895
  `);
5836
5896
  }, Gn = function() {
5837
5897
  var e = parseInt(document.body.getAttribute(Ae) || "0", 10);
5838
5898
  return isFinite(e) ? e : 0;
5839
- }, Sc = function() {
5899
+ }, Ac = function() {
5840
5900
  l.useEffect(function() {
5841
5901
  return document.body.setAttribute(Ae, (Gn() + 1).toString()), function() {
5842
5902
  var e = Gn() - 1;
5843
5903
  e <= 0 ? document.body.removeAttribute(Ae) : document.body.setAttribute(Ae, e.toString());
5844
5904
  };
5845
5905
  }, []);
5846
- }, Ac = function(e) {
5906
+ }, Nc = function(e) {
5847
5907
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
5848
- Sc();
5908
+ Ac();
5849
5909
  var s = l.useMemo(function() {
5850
- return Ec(o);
5910
+ return Rc(o);
5851
5911
  }, [o]);
5852
- return l.createElement(Rc, { styles: Pc(s, !t, o, n ? "" : "!important") });
5912
+ return l.createElement(Pc, { styles: Sc(s, !t, o, n ? "" : "!important") });
5853
5913
  }, Vt = !1;
5854
5914
  if (typeof window < "u")
5855
5915
  try {
@@ -5862,7 +5922,7 @@ if (typeof window < "u")
5862
5922
  } catch {
5863
5923
  Vt = !1;
5864
5924
  }
5865
- var we = Vt ? { passive: !1 } : !1, Nc = function(e) {
5925
+ var we = Vt ? { passive: !1 } : !1, Oc = function(e) {
5866
5926
  return e.tagName === "TEXTAREA";
5867
5927
  }, Co = function(e, t) {
5868
5928
  if (!(e instanceof Element))
@@ -5871,11 +5931,11 @@ var we = Vt ? { passive: !1 } : !1, Nc = function(e) {
5871
5931
  return (
5872
5932
  // not-not-scrollable
5873
5933
  n[t] !== "hidden" && // contains scroll inside self
5874
- !(n.overflowY === n.overflowX && !Nc(e) && n[t] === "visible")
5934
+ !(n.overflowY === n.overflowX && !Oc(e) && n[t] === "visible")
5875
5935
  );
5876
- }, Oc = function(e) {
5877
- return Co(e, "overflowY");
5878
5936
  }, Tc = function(e) {
5937
+ return Co(e, "overflowY");
5938
+ }, kc = function(e) {
5879
5939
  return Co(e, "overflowX");
5880
5940
  }, Un = function(e, t) {
5881
5941
  var n = t.ownerDocument, r = t;
@@ -5890,14 +5950,14 @@ var we = Vt ? { passive: !1 } : !1, Nc = function(e) {
5890
5950
  r = r.parentNode;
5891
5951
  } while (r && r !== n.body);
5892
5952
  return !1;
5893
- }, kc = function(e) {
5953
+ }, Dc = function(e) {
5894
5954
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
5895
5955
  return [
5896
5956
  t,
5897
5957
  n,
5898
5958
  r
5899
5959
  ];
5900
- }, Dc = function(e) {
5960
+ }, jc = function(e) {
5901
5961
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
5902
5962
  return [
5903
5963
  t,
@@ -5905,13 +5965,13 @@ var we = Vt ? { passive: !1 } : !1, Nc = function(e) {
5905
5965
  r
5906
5966
  ];
5907
5967
  }, Eo = function(e, t) {
5908
- return e === "v" ? Oc(t) : Tc(t);
5968
+ return e === "v" ? Tc(t) : kc(t);
5909
5969
  }, Ro = function(e, t) {
5910
- return e === "v" ? kc(t) : Dc(t);
5911
- }, jc = function(e, t) {
5970
+ return e === "v" ? Dc(t) : jc(t);
5971
+ }, Ic = function(e, t) {
5912
5972
  return e === "h" && t === "rtl" ? -1 : 1;
5913
- }, Ic = function(e, t, n, r, o) {
5914
- var s = jc(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, c = t.contains(i), u = !1, d = a > 0, f = 0, h = 0;
5973
+ }, Mc = function(e, t, n, r, o) {
5974
+ var s = Ic(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, c = t.contains(i), u = !1, d = a > 0, f = 0, h = 0;
5915
5975
  do {
5916
5976
  var m = Ro(e, i), v = m[0], p = m[1], b = m[2], y = p - b - s * v;
5917
5977
  (v || y) && Eo(e, i) && (f += y, h += v), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
@@ -5927,22 +5987,22 @@ var we = Vt ? { passive: !1 } : !1, Nc = function(e) {
5927
5987
  return [e.deltaX, e.deltaY];
5928
5988
  }, Yn = function(e) {
5929
5989
  return e && "current" in e ? e.current : e;
5930
- }, Mc = function(e, t) {
5990
+ }, _c = function(e, t) {
5931
5991
  return e[0] === t[0] && e[1] === t[1];
5932
- }, _c = function(e) {
5992
+ }, Lc = function(e) {
5933
5993
  return `
5934
5994
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
5935
5995
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
5936
5996
  `);
5937
- }, Lc = 0, Ce = [];
5938
- function Fc(e) {
5939
- var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(Lc++)[0], s = l.useState(wo)[0], a = l.useRef(e);
5997
+ }, Fc = 0, Ce = [];
5998
+ function $c(e) {
5999
+ var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(Fc++)[0], s = l.useState(wo)[0], a = l.useRef(e);
5940
6000
  l.useEffect(function() {
5941
6001
  a.current = e;
5942
6002
  }, [e]), l.useEffect(function() {
5943
6003
  if (e.inert) {
5944
6004
  document.body.classList.add("block-interactivity-".concat(o));
5945
- var p = sc([e.lockRef.current], (e.shards || []).map(Yn), !0).filter(Boolean);
6005
+ var p = ac([e.lockRef.current], (e.shards || []).map(Yn), !0).filter(Boolean);
5946
6006
  return p.forEach(function(b) {
5947
6007
  return b.classList.add("allow-interactivity-".concat(o));
5948
6008
  }), function() {
@@ -5966,12 +6026,12 @@ function Fc(e) {
5966
6026
  if (!r.current && "changedTouches" in p && (C || w) && (r.current = E), !E)
5967
6027
  return !0;
5968
6028
  var I = r.current || E;
5969
- return Ic(I, b, p, I === "h" ? C : w, !0);
6029
+ return Mc(I, b, p, I === "h" ? C : w, !0);
5970
6030
  }, []), c = l.useCallback(function(p) {
5971
6031
  var b = p;
5972
6032
  if (!(!Ce.length || Ce[Ce.length - 1] !== s)) {
5973
6033
  var y = "deltaY" in b ? Kn(b) : Xe(b), x = t.current.filter(function(E) {
5974
- return E.name === b.type && (E.target === b.target || b.target === E.shadowParent) && Mc(E.delta, y);
6034
+ return E.name === b.type && (E.target === b.target || b.target === E.shadowParent) && _c(E.delta, y);
5975
6035
  })[0];
5976
6036
  if (x && x.should) {
5977
6037
  b.cancelable && b.preventDefault();
@@ -5985,7 +6045,7 @@ function Fc(e) {
5985
6045
  }
5986
6046
  }
5987
6047
  }, []), u = l.useCallback(function(p, b, y, x) {
5988
- var C = { name: p, delta: b, target: y, should: x, shadowParent: $c(y) };
6048
+ var C = { name: p, delta: b, target: y, should: x, shadowParent: Wc(y) };
5989
6049
  t.current.push(C), setTimeout(function() {
5990
6050
  t.current = t.current.filter(function(w) {
5991
6051
  return w !== C;
@@ -6013,28 +6073,28 @@ function Fc(e) {
6013
6073
  return l.createElement(
6014
6074
  l.Fragment,
6015
6075
  null,
6016
- v ? l.createElement(s, { styles: _c(o) }) : null,
6017
- m ? l.createElement(Ac, { gapMode: e.gapMode }) : null
6076
+ v ? l.createElement(s, { styles: Lc(o) }) : null,
6077
+ m ? l.createElement(Nc, { gapMode: e.gapMode }) : null
6018
6078
  );
6019
6079
  }
6020
- function $c(e) {
6080
+ function Wc(e) {
6021
6081
  for (var t = null; e !== null; )
6022
6082
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
6023
6083
  return t;
6024
6084
  }
6025
- const Wc = mc(xo, Fc);
6085
+ const Vc = gc(xo, $c);
6026
6086
  var cn = l.forwardRef(function(e, t) {
6027
- return l.createElement(ht, Q({}, e, { ref: t, sideCar: Wc }));
6087
+ return l.createElement(ht, Q({}, e, { ref: t, sideCar: Vc }));
6028
6088
  });
6029
6089
  cn.classNames = ht.classNames;
6030
- var Vc = function(e) {
6090
+ var zc = function(e) {
6031
6091
  if (typeof document > "u")
6032
6092
  return null;
6033
6093
  var t = Array.isArray(e) ? e[0] : e;
6034
6094
  return t.ownerDocument.body;
6035
6095
  }, Ee = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), Ze = {}, At = 0, Po = function(e) {
6036
6096
  return e && (e.host || Po(e.parentNode));
6037
- }, zc = function(e, t) {
6097
+ }, Bc = function(e, t) {
6038
6098
  return t.map(function(n) {
6039
6099
  if (e.contains(n))
6040
6100
  return n;
@@ -6043,8 +6103,8 @@ var Vc = function(e) {
6043
6103
  }).filter(function(n) {
6044
6104
  return !!n;
6045
6105
  });
6046
- }, Bc = function(e, t, n, r) {
6047
- var o = zc(t, Array.isArray(e) ? e : [e]);
6106
+ }, Hc = function(e, t, n, r) {
6107
+ var o = Bc(t, Array.isArray(e) ? e : [e]);
6048
6108
  Ze[n] || (Ze[n] = /* @__PURE__ */ new WeakMap());
6049
6109
  var s = Ze[n], a = [], i = /* @__PURE__ */ new Set(), c = new Set(o), u = function(f) {
6050
6110
  !f || i.has(f) || (i.add(f), u(f.parentNode));
@@ -6071,12 +6131,12 @@ var Vc = function(e) {
6071
6131
  };
6072
6132
  }, So = function(e, t, n) {
6073
6133
  n === void 0 && (n = "data-aria-hidden");
6074
- var r = Array.from(Array.isArray(e) ? e : [e]), o = Vc(e);
6075
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Bc(r, o, n, "aria-hidden")) : function() {
6134
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = zc(e);
6135
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Hc(r, o, n, "aria-hidden")) : function() {
6076
6136
  return null;
6077
6137
  };
6078
6138
  }, Ao = l.forwardRef((e, t) => {
6079
- const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(Gc);
6139
+ const { children: n, ...r } = e, o = l.Children.toArray(n), s = o.find(Uc);
6080
6140
  if (s) {
6081
6141
  const a = s.props.children, i = o.map((c) => c === s ? l.Children.count(a) > 1 ? l.Children.only(null) : l.isValidElement(a) ? a.props.children : null : c);
6082
6142
  return /* @__PURE__ */ g.jsx(zt, { ...r, ref: t, children: l.isValidElement(a) ? l.cloneElement(a, void 0, i) : null });
@@ -6087,9 +6147,9 @@ Ao.displayName = "Slot";
6087
6147
  var zt = l.forwardRef((e, t) => {
6088
6148
  const { children: n, ...r } = e;
6089
6149
  if (l.isValidElement(n)) {
6090
- const o = Kc(n);
6150
+ const o = Yc(n);
6091
6151
  return l.cloneElement(n, {
6092
- ...Uc(r, n.props),
6152
+ ...Kc(r, n.props),
6093
6153
  // @ts-ignore
6094
6154
  ref: t ? De(t, o) : o
6095
6155
  });
@@ -6097,11 +6157,11 @@ var zt = l.forwardRef((e, t) => {
6097
6157
  return l.Children.count(n) > 1 ? l.Children.only(null) : null;
6098
6158
  });
6099
6159
  zt.displayName = "SlotClone";
6100
- var Hc = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
6101
- function Gc(e) {
6102
- return l.isValidElement(e) && e.type === Hc;
6160
+ var Gc = ({ children: e }) => /* @__PURE__ */ g.jsx(g.Fragment, { children: e });
6161
+ function Uc(e) {
6162
+ return l.isValidElement(e) && e.type === Gc;
6103
6163
  }
6104
- function Uc(e, t) {
6164
+ function Kc(e, t) {
6105
6165
  const n = { ...t };
6106
6166
  for (const r in t) {
6107
6167
  const o = e[r], s = t[r];
@@ -6111,12 +6171,12 @@ function Uc(e, t) {
6111
6171
  }
6112
6172
  return { ...e, ...n };
6113
6173
  }
6114
- function Kc(e) {
6174
+ function Yc(e) {
6115
6175
  var r, o;
6116
6176
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
6117
6177
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
6118
6178
  }
6119
- var un = "Dialog", [No, od] = ae(un), [Yc, Z] = No(un), Oo = (e) => {
6179
+ var un = "Dialog", [No, sd] = ae(un), [Xc, Z] = No(un), Oo = (e) => {
6120
6180
  const {
6121
6181
  __scopeDialog: t,
6122
6182
  children: n,
@@ -6130,7 +6190,7 @@ var un = "Dialog", [No, od] = ae(un), [Yc, Z] = No(un), Oo = (e) => {
6130
6190
  onChange: s
6131
6191
  });
6132
6192
  return /* @__PURE__ */ g.jsx(
6133
- Yc,
6193
+ Xc,
6134
6194
  {
6135
6195
  scope: t,
6136
6196
  triggerRef: i,
@@ -6166,21 +6226,21 @@ var To = "DialogTrigger", ko = l.forwardRef(
6166
6226
  }
6167
6227
  );
6168
6228
  ko.displayName = To;
6169
- var dn = "DialogPortal", [Xc, Do] = No(dn, {
6229
+ var dn = "DialogPortal", [qc, Do] = No(dn, {
6170
6230
  forceMount: void 0
6171
6231
  }), jo = (e) => {
6172
6232
  const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Z(dn, t);
6173
- return /* @__PURE__ */ g.jsx(Xc, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ g.jsx(te, { present: n || s.open, children: /* @__PURE__ */ g.jsx(dt, { asChild: !0, container: o, children: a }) })) });
6233
+ return /* @__PURE__ */ g.jsx(qc, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ g.jsx(te, { present: n || s.open, children: /* @__PURE__ */ g.jsx(dt, { asChild: !0, container: o, children: a }) })) });
6174
6234
  };
6175
6235
  jo.displayName = dn;
6176
6236
  var at = "DialogOverlay", Io = l.forwardRef(
6177
6237
  (e, t) => {
6178
6238
  const n = Do(at, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Z(at, e.__scopeDialog);
6179
- return s.modal ? /* @__PURE__ */ g.jsx(te, { present: r || s.open, children: /* @__PURE__ */ g.jsx(qc, { ...o, ref: t }) }) : null;
6239
+ return s.modal ? /* @__PURE__ */ g.jsx(te, { present: r || s.open, children: /* @__PURE__ */ g.jsx(Zc, { ...o, ref: t }) }) : null;
6180
6240
  }
6181
6241
  );
6182
6242
  Io.displayName = at;
6183
- var qc = l.forwardRef(
6243
+ var Zc = l.forwardRef(
6184
6244
  (e, t) => {
6185
6245
  const { __scopeDialog: n, ...r } = e, o = Z(at, n);
6186
6246
  return (
@@ -6200,11 +6260,11 @@ var qc = l.forwardRef(
6200
6260
  ), xe = "DialogContent", Mo = l.forwardRef(
6201
6261
  (e, t) => {
6202
6262
  const n = Do(xe, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Z(xe, e.__scopeDialog);
6203
- return /* @__PURE__ */ g.jsx(te, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(Zc, { ...o, ref: t }) : /* @__PURE__ */ g.jsx(Qc, { ...o, ref: t }) });
6263
+ return /* @__PURE__ */ g.jsx(te, { present: r || s.open, children: s.modal ? /* @__PURE__ */ g.jsx(Qc, { ...o, ref: t }) : /* @__PURE__ */ g.jsx(Jc, { ...o, ref: t }) });
6204
6264
  }
6205
6265
  );
6206
6266
  Mo.displayName = xe;
6207
- var Zc = l.forwardRef(
6267
+ var Qc = l.forwardRef(
6208
6268
  (e, t) => {
6209
6269
  const n = Z(xe, e.__scopeDialog), r = l.useRef(null), o = z(t, n.contentRef, r);
6210
6270
  return l.useEffect(() => {
@@ -6232,7 +6292,7 @@ var Zc = l.forwardRef(
6232
6292
  }
6233
6293
  );
6234
6294
  }
6235
- ), Qc = l.forwardRef(
6295
+ ), Jc = l.forwardRef(
6236
6296
  (e, t) => {
6237
6297
  const n = Z(xe, e.__scopeDialog), r = l.useRef(!1), o = l.useRef(!1);
6238
6298
  return /* @__PURE__ */ g.jsx(
@@ -6283,8 +6343,8 @@ var Zc = l.forwardRef(
6283
6343
  }
6284
6344
  ),
6285
6345
  /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
6286
- /* @__PURE__ */ g.jsx(Jc, { titleId: i.titleId }),
6287
- /* @__PURE__ */ g.jsx(tu, { contentRef: c, descriptionId: i.descriptionId })
6346
+ /* @__PURE__ */ g.jsx(eu, { titleId: i.titleId }),
6347
+ /* @__PURE__ */ g.jsx(nu, { contentRef: c, descriptionId: i.descriptionId })
6288
6348
  ] })
6289
6349
  ] });
6290
6350
  }
@@ -6320,11 +6380,11 @@ Vo.displayName = Wo;
6320
6380
  function pn(e) {
6321
6381
  return e ? "open" : "closed";
6322
6382
  }
6323
- var zo = "DialogTitleWarning", [sd, Bo] = da(zo, {
6383
+ var zo = "DialogTitleWarning", [ad, Bo] = da(zo, {
6324
6384
  contentName: xe,
6325
6385
  titleName: fn,
6326
6386
  docsSlug: "dialog"
6327
- }), Jc = ({ titleId: e }) => {
6387
+ }), eu = ({ titleId: e }) => {
6328
6388
  const t = Bo(zo), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
6329
6389
 
6330
6390
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -6333,74 +6393,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
6333
6393
  return l.useEffect(() => {
6334
6394
  e && (document.getElementById(e) || console.error(n));
6335
6395
  }, [n, e]), null;
6336
- }, eu = "DialogDescriptionWarning", tu = ({ contentRef: e, descriptionId: t }) => {
6337
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bo(eu).contentName}}.`;
6396
+ }, tu = "DialogDescriptionWarning", nu = ({ contentRef: e, descriptionId: t }) => {
6397
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bo(tu).contentName}}.`;
6338
6398
  return l.useEffect(() => {
6339
6399
  var s;
6340
6400
  const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
6341
6401
  t && o && (document.getElementById(t) || console.warn(r));
6342
6402
  }, [r, e, t]), null;
6343
- }, nu = Oo, ru = ko, ou = jo, Ho = Io, Go = Mo, Uo = Lo, Ko = $o, Yo = Vo;
6344
- /**
6345
- * @license @tabler/icons-react v3.34.1 - MIT
6346
- *
6347
- * This source code is licensed under the MIT license.
6348
- * See the LICENSE file in the root directory of this source tree.
6349
- */
6350
- var su = {
6351
- outline: {
6352
- xmlns: "http://www.w3.org/2000/svg",
6353
- width: 24,
6354
- height: 24,
6355
- viewBox: "0 0 24 24",
6356
- fill: "none",
6357
- stroke: "currentColor",
6358
- strokeWidth: 2,
6359
- strokeLinecap: "round",
6360
- strokeLinejoin: "round"
6361
- },
6362
- filled: {
6363
- xmlns: "http://www.w3.org/2000/svg",
6364
- width: 24,
6365
- height: 24,
6366
- viewBox: "0 0 24 24",
6367
- fill: "currentColor",
6368
- stroke: "none"
6369
- }
6370
- };
6371
- /**
6372
- * @license @tabler/icons-react v3.34.1 - MIT
6373
- *
6374
- * This source code is licensed under the MIT license.
6375
- * See the LICENSE file in the root directory of this source tree.
6376
- */
6377
- const ad = (e, t, n, r) => {
6378
- const o = H(
6379
- ({ color: s = "currentColor", size: a = 24, stroke: i = 2, title: c, className: u, children: d, ...f }, h) => Qe(
6380
- "svg",
6381
- {
6382
- ref: h,
6383
- ...su[e],
6384
- width: a,
6385
- height: a,
6386
- className: ["tabler-icon", `tabler-icon-${t}`, u].join(" "),
6387
- ...e === "filled" ? {
6388
- fill: s
6389
- } : {
6390
- strokeWidth: i,
6391
- stroke: s
6392
- },
6393
- ...f
6394
- },
6395
- [
6396
- c && Qe("title", { key: "svg-title" }, c),
6397
- ...r.map(([m, v]) => Qe(m, v)),
6398
- ...Array.isArray(d) ? d : [d]
6399
- ]
6400
- )
6401
- );
6402
- return o.displayName = `${n}`, o;
6403
- };
6403
+ }, ru = Oo, ou = ko, su = jo, Ho = Io, Go = Mo, Uo = Lo, Ko = $o, Yo = Vo;
6404
6404
  function Xn(e, t) {
6405
6405
  if (typeof e == "function")
6406
6406
  return e(t);
@@ -6558,7 +6558,7 @@ const Ru = H(
6558
6558
  ({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: M("al-flex al-items-center al-p-6 al-pt-0", e), ...t })
6559
6559
  );
6560
6560
  Ru.displayName = "CardFooter";
6561
- const id = nu, ld = ru, Pu = ou, cd = Yo, Zo = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
6561
+ const id = ru, ld = ou, Pu = su, cd = Yo, Zo = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
6562
6562
  Ho,
6563
6563
  {
6564
6564
  ref: n,
@@ -7053,17 +7053,17 @@ export {
7053
7053
  Ho as O,
7054
7054
  $ as P,
7055
7055
  be as Q,
7056
- nu as R,
7057
- od as S,
7056
+ ru as R,
7057
+ sd as S,
7058
7058
  Zl as T,
7059
7059
  fl as U,
7060
7060
  Tr as V,
7061
- sd as W,
7061
+ ad as W,
7062
7062
  gd as X,
7063
7063
  dl as Y,
7064
7064
  dd as Z,
7065
7065
  fd as _,
7066
- Me as a,
7066
+ ae as a,
7067
7067
  md as a0,
7068
7068
  bu as a1,
7069
7069
  sa as a2,
@@ -7093,15 +7093,15 @@ export {
7093
7093
  Ou as aq,
7094
7094
  Tu as ar,
7095
7095
  pd as as,
7096
- k as b,
7097
- ae as c,
7098
- Vr as d,
7099
- Qt as e,
7100
- M as f,
7101
- Gt as g,
7102
- ad as h,
7103
- ru as i,
7104
- ou as j,
7096
+ Me as b,
7097
+ od as c,
7098
+ k as d,
7099
+ Vr as e,
7100
+ Qt as f,
7101
+ M as g,
7102
+ Gt as h,
7103
+ ou as i,
7104
+ su as j,
7105
7105
  Go as k,
7106
7106
  Uo as l,
7107
7107
  De as m,