@xola/ui-kit 2.0.1 → 2.0.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/build/ui-kit.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  import { Transition as ye, Dialog as Qe, Switch as kn } from "@headlessui/react";
2
2
  import c from "prop-types";
3
3
  import * as Z from "react";
4
- import n, { cloneElement as pt, Fragment as fe, useState as ne, Children as Se, createContext as gt, useRef as de, useCallback as ae, useMemo as Ne, useContext as Te, useEffect as ht, useLayoutEffect as io, forwardRef as An, createElement as He, Component as $a } from "react";
4
+ import n, { cloneElement as gt, Fragment as fe, useState as ne, useEffect as _e, Children as Se, createContext as ht, useRef as de, useCallback as ae, useMemo as Ne, useContext as Te, useLayoutEffect as io, forwardRef as An, createElement as He, Component as $a } from "react";
5
5
  import I from "clsx";
6
6
  import Ln from "@tippyjs/react";
7
7
  import { followCursor as so } from "tippy.js";
8
8
  import { useCombobox as Kt } from "downshift";
9
9
  import { useHotkeys as ur } from "react-hotkeys-hook";
10
10
  import Pt from "get-user-locale";
11
- import { round as tt, isArray as e1, isFunction as t1, merge as Ue } from "lodash";
11
+ import { round as nt, isArray as e1, isFunction as t1, merge as Ue } from "lodash";
12
12
  import n1 from "react-select";
13
13
  import { createPortal as r1 } from "react-dom";
14
14
  import o1 from "nouislider-react";
@@ -253,7 +253,7 @@ const uo = {
253
253
  a
254
254
  ),
255
255
  ...i
256
- }, o ? pt(o, { className: I("mr-1", f1[t]) }) : null, r);
256
+ }, o ? gt(o, { className: I("mr-1", f1[t]) }) : null, r);
257
257
  v1.propTypes = {
258
258
  className: c.string,
259
259
  color: c.oneOf(Object.keys(uo)),
@@ -275,7 +275,7 @@ const mr = {
275
275
  size: c.oneOf(Object.keys(mr)),
276
276
  className: c.string
277
277
  }, t;
278
- }, _e = p((e) => /* @__PURE__ */ n.createElement("svg", {
278
+ }, $e = p((e) => /* @__PURE__ */ n.createElement("svg", {
279
279
  width: 14,
280
280
  height: 14,
281
281
  fill: "none",
@@ -295,7 +295,7 @@ const mr = {
295
295
  fill: "#fff",
296
296
  d: "M0 0h14v14H0z"
297
297
  })))));
298
- _e.tags = ["cross", "delete", "x"];
298
+ $e.tags = ["cross", "delete", "x"];
299
299
  const po = {
300
300
  primary: "bg-primary-lighter text-black border border-primary",
301
301
  secondary: "bg-secondary-light text-gray-darker border border-secondary",
@@ -314,7 +314,7 @@ const po = {
314
314
  return /* @__PURE__ */ n.createElement("span", {
315
315
  className: I("ui-tag", "inline-flex rounded", po[e], go[t], a),
316
316
  ...i
317
- }, r, o ? /* @__PURE__ */ n.createElement(_e, {
317
+ }, r, o ? /* @__PURE__ */ n.createElement($e, {
318
318
  size: "small",
319
319
  className: I(
320
320
  "ui-tag-close ml-2 cursor-pointer leading-4 hover:text-gray-darker",
@@ -364,7 +364,7 @@ const fo = {
364
364
  }, a), o ? /* @__PURE__ */ n.createElement("button", {
365
365
  type: "button",
366
366
  className: "ui-alert-close ml-3 cursor-pointer hover:text-gray-dark"
367
- }, /* @__PURE__ */ n.createElement(_e, {
367
+ }, /* @__PURE__ */ n.createElement($e, {
368
368
  onClick: o
369
369
  })) : null);
370
370
  vo.propTypes = {
@@ -485,7 +485,7 @@ const un = ({ isOpen: e = !1, title: t, content: o, onClose: a, classNames: r =
485
485
  variant: "link",
486
486
  className: "text-gray-darker focus:hidden",
487
487
  onClick: a
488
- }, /* @__PURE__ */ n.createElement(_e, null))))), /* @__PURE__ */ n.createElement("div", {
488
+ }, /* @__PURE__ */ n.createElement($e, null))))), /* @__PURE__ */ n.createElement("div", {
489
489
  className: I("relative mt-3 flex-1 px-4 sm:px-6", r.content)
490
490
  }, o))))))));
491
491
  un.propTypes = {
@@ -684,7 +684,11 @@ Rn.propTypes = {
684
684
  const y1 = {
685
685
  background: "linear-gradient(138.65deg, #583DFF 19.59%, #F849C7 62.96%, #FFC03D 97.07%)"
686
686
  }, Ve = ({ logo: e, children: t, className: o, footer: a, notifications: r, isFixed: i = !0, onLogoClick: l }) => {
687
- const [s, u] = ne(!1), [d, m] = ne(!1), g = () => {
687
+ const [s, u] = ne(!1), [d, m] = ne(!1);
688
+ _e(() => {
689
+ u(!1), m(!1);
690
+ }, [r]);
691
+ const g = () => {
688
692
  s || m(!1), u(!s);
689
693
  }, w = () => {
690
694
  d || u(!1), m(!d);
@@ -913,7 +917,7 @@ const M1 = {
913
917
  type: "button",
914
918
  className: "absolute top-0 right-0 m-4 hidden p-2 text-gray hover:text-gray-darker sm:block",
915
919
  onClick: a
916
- }, /* @__PURE__ */ n.createElement(_e, null)) : null, r)))));
920
+ }, /* @__PURE__ */ n.createElement($e, null)) : null, r)))));
917
921
  }, On = ({ children: e, description: t, className: o, ...a }) => /* @__PURE__ */ n.createElement(Qe.Title, {
918
922
  as: "div",
919
923
  className: I(o, "ui-modal-header text-center"),
@@ -982,7 +986,7 @@ le.Header.propTypes = {
982
986
  le.Body = ({ className: e, isStriped: t = !1, children: o, ...a }) => /* @__PURE__ */ n.createElement("tbody", {
983
987
  className: I("ui-table-body", "border-none", e),
984
988
  ...a
985
- }, Se.map(o, (r) => r && pt(r, { isStriped: t })));
989
+ }, Se.map(o, (r) => r && gt(r, { isStriped: t })));
986
990
  le.Body.displayName = "Table.Body";
987
991
  le.Body.propTypes = {
988
992
  className: c.string,
@@ -1016,7 +1020,7 @@ const Pn = {
1016
1020
  }, Se.map(i, (s, u) => {
1017
1021
  const d = { size: e };
1018
1022
  if (!s.props.isHidden)
1019
- return t !== void 0 && (d.isActive = t === u), o && t >= 0 && t !== u && (d.shouldShowText = !1), a && (d.onClick = () => a(u)), pt(s, d);
1023
+ return t !== void 0 && (d.isActive = t === u), o && t >= 0 && t !== u && (d.shouldShowText = !1), a && (d.onClick = () => a(u)), gt(s, d);
1020
1024
  }));
1021
1025
  Io.propTypes = {
1022
1026
  className: c.string,
@@ -1098,16 +1102,16 @@ var O1 = H1, W1 = O1, j1 = /^\s+/;
1098
1102
  function P1(e) {
1099
1103
  return e && e.slice(0, W1(e) + 1).replace(j1, "");
1100
1104
  }
1101
- var Z1 = P1, X1 = ko, Y1 = X1.Symbol, Ao = Y1, pr = Ao, Lo = Object.prototype, J1 = Lo.hasOwnProperty, U1 = Lo.toString, nt = pr ? pr.toStringTag : void 0;
1105
+ var Z1 = P1, X1 = ko, Y1 = X1.Symbol, Ao = Y1, pr = Ao, Lo = Object.prototype, J1 = Lo.hasOwnProperty, U1 = Lo.toString, rt = pr ? pr.toStringTag : void 0;
1102
1106
  function Q1(e) {
1103
- var t = J1.call(e, nt), o = e[nt];
1107
+ var t = J1.call(e, rt), o = e[rt];
1104
1108
  try {
1105
- e[nt] = void 0;
1109
+ e[rt] = void 0;
1106
1110
  var a = !0;
1107
1111
  } catch {
1108
1112
  }
1109
1113
  var r = U1.call(e);
1110
- return a && (t ? e[nt] = o : delete e[nt]), r;
1114
+ return a && (t ? e[rt] = o : delete e[rt]), r;
1111
1115
  }
1112
1116
  var q1 = Q1, K1 = Object.prototype, _1 = K1.toString;
1113
1117
  function $1(e) {
@@ -1192,7 +1196,7 @@ function Li(e, t, o) {
1192
1196
  var Mi = Li;
1193
1197
  const yt = typeof window > "u" ? !1 : window.navigator.userAgent.includes("Macintosh");
1194
1198
  let Ni = 1;
1195
- const Mo = gt({
1199
+ const Mo = ht({
1196
1200
  generateId: () => (console.warn(
1197
1201
  "Please wrap your app with `<Provider />` component from `@xola/ui-kit`. Otherwise your app will not work with SSR frameworks."
1198
1202
  ), Ni++)
@@ -1206,7 +1210,7 @@ const Mo = gt({
1206
1210
  return o;
1207
1211
  }, Bi = () => {
1208
1212
  const [e, t] = ne(!1);
1209
- return ht(() => {
1213
+ return _e(() => {
1210
1214
  t(!0);
1211
1215
  }, []), e;
1212
1216
  }, No = p((e) => /* @__PURE__ */ n.createElement("svg", {
@@ -1281,7 +1285,7 @@ const Si = Mi((e, t) => e(t), 500), Bo = ({
1281
1285
  defaultHighlightedIndex: 0,
1282
1286
  onSelectedItemChange: M
1283
1287
  });
1284
- ht(() => {
1288
+ _e(() => {
1285
1289
  P ? E(!1) : setTimeout(() => E(!0), 1);
1286
1290
  }, [P, E]);
1287
1291
  const O = () => {
@@ -1420,7 +1424,7 @@ const Ti = Pt(), Vi = /* @__PURE__ */ new Set(["JPY", "CLP", "KRW", "LAK", "PYG"
1420
1424
  return t && (s.currency = t, s.currencyDisplay = i ? "narrowSymbol" : "symbol"), r ? Gi(e, o) : new Intl.NumberFormat(o, s).format(e);
1421
1425
  }, To = (e, t) => {
1422
1426
  let o = Number(t);
1423
- return Xn(e) ? tt(o) : (tt(o, 3) === tt(o, 4) && (o = tt(o, 3)), tt(o, 2));
1427
+ return Xn(e) ? nt(o) : (nt(o, 3) === nt(o, 4) && (o = nt(o, 3)), nt(o, 2));
1424
1428
  }, Gi = (e, t = Fo) => new Intl.NumberFormat(t, { notation: "compact", maximumFractionDigits: 2 }).format(e), Vo = Pt(), We = ({
1425
1429
  currency: e = "USD",
1426
1430
  locale: t = Vo,
@@ -1488,7 +1492,7 @@ const Xt = {
1488
1492
  success: "text-success",
1489
1493
  danger: "text-danger",
1490
1494
  caution: "text-caution"
1491
- }, Jn = gt(), je = ({ children: e, className: t, currency: o, ...a }) => /* @__PURE__ */ n.createElement(Jn.Provider, {
1495
+ }, Jn = ht(), je = ({ children: e, className: t, currency: o, ...a }) => /* @__PURE__ */ n.createElement(Jn.Provider, {
1492
1496
  value: o
1493
1497
  }, /* @__PURE__ */ n.createElement("table", {
1494
1498
  className: I("ui-breakdown", "w-full", t),
@@ -1629,7 +1633,7 @@ function S() {
1629
1633
  return e;
1630
1634
  }, S.apply(this, arguments);
1631
1635
  }
1632
- function at(e, t, o) {
1636
+ function it(e, t, o) {
1633
1637
  return t in e ? Object.defineProperty(e, t, {
1634
1638
  value: o,
1635
1639
  enumerable: !0,
@@ -1651,7 +1655,7 @@ function T(e) {
1651
1655
  for (var t = 1; t < arguments.length; t++) {
1652
1656
  var o = arguments[t] != null ? arguments[t] : {};
1653
1657
  t % 2 ? wr(Object(o), !0).forEach(function(a) {
1654
- at(e, a, o[a]);
1658
+ it(e, a, o[a]);
1655
1659
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : wr(Object(o)).forEach(function(a) {
1656
1660
  Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(o, a));
1657
1661
  });
@@ -1768,7 +1772,7 @@ function Ji() {
1768
1772
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1769
1773
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1770
1774
  }
1771
- function st(e) {
1775
+ function lt(e) {
1772
1776
  return Xi(e) || Yi(e) || Ho(e) || Ji();
1773
1777
  }
1774
1778
  function Ui(e) {
@@ -1835,7 +1839,7 @@ function hn(e, t) {
1835
1839
  function oe(e, t) {
1836
1840
  return e.charCodeAt(t) | 0;
1837
1841
  }
1838
- function lt(e, t, o) {
1842
+ function ct(e, t, o) {
1839
1843
  return e.slice(t, o);
1840
1844
  }
1841
1845
  function Ie(e) {
@@ -1850,32 +1854,32 @@ function wt(e, t) {
1850
1854
  function ns(e, t) {
1851
1855
  return e.map(t).join("");
1852
1856
  }
1853
- var Jt = 1, Ke = 1, jo = 0, me = 0, te = 0, $e = "";
1857
+ var Jt = 1, Ke = 1, jo = 0, me = 0, te = 0, et = "";
1854
1858
  function Ut(e, t, o, a, r, i, l) {
1855
1859
  return { value: e, root: t, parent: o, type: a, props: r, children: i, line: Jt, column: Ke, length: l, return: "" };
1856
1860
  }
1857
- function rt(e, t) {
1861
+ function ot(e, t) {
1858
1862
  return $i(Ut("", null, null, "", null, null, 0), e, { length: -e.length }, t);
1859
1863
  }
1860
1864
  function rs() {
1861
1865
  return te;
1862
1866
  }
1863
1867
  function os() {
1864
- return te = me > 0 ? oe($e, --me) : 0, Ke--, te === 10 && (Ke = 1, Jt--), te;
1868
+ return te = me > 0 ? oe(et, --me) : 0, Ke--, te === 10 && (Ke = 1, Jt--), te;
1865
1869
  }
1866
1870
  function pe() {
1867
- return te = me < jo ? oe($e, me++) : 0, Ke++, te === 10 && (Ke = 1, Jt++), te;
1871
+ return te = me < jo ? oe(et, me++) : 0, Ke++, te === 10 && (Ke = 1, Jt++), te;
1868
1872
  }
1869
1873
  function ke() {
1870
- return oe($e, me);
1874
+ return oe(et, me);
1871
1875
  }
1872
1876
  function kt() {
1873
1877
  return me;
1874
1878
  }
1875
1879
  function bt(e, t) {
1876
- return lt($e, e, t);
1880
+ return ct(et, e, t);
1877
1881
  }
1878
- function ct(e) {
1882
+ function ut(e) {
1879
1883
  switch (e) {
1880
1884
  case 0:
1881
1885
  case 9:
@@ -1908,10 +1912,10 @@ function ct(e) {
1908
1912
  return 0;
1909
1913
  }
1910
1914
  function Po(e) {
1911
- return Jt = Ke = 1, jo = Ie($e = e), me = 0, [];
1915
+ return Jt = Ke = 1, jo = Ie(et = e), me = 0, [];
1912
1916
  }
1913
1917
  function Zo(e) {
1914
- return $e = "", e;
1918
+ return et = "", e;
1915
1919
  }
1916
1920
  function At(e) {
1917
1921
  return Wo(bt(me - 1, fn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
@@ -1919,7 +1923,7 @@ function At(e) {
1919
1923
  function as(e) {
1920
1924
  for (; (te = ke()) && te < 33; )
1921
1925
  pe();
1922
- return ct(e) > 2 || ct(te) > 3 ? "" : " ";
1926
+ return ut(e) > 2 || ut(te) > 3 ? "" : " ";
1923
1927
  }
1924
1928
  function is(e, t) {
1925
1929
  for (; --t && pe() && !(te < 48 || te > 102 || te > 57 && te < 65 || te > 70 && te < 97); )
@@ -1951,7 +1955,7 @@ function ss(e, t) {
1951
1955
  return "/*" + bt(t, me - 1) + "*" + Yt(e === 47 ? e : pe());
1952
1956
  }
1953
1957
  function ls(e) {
1954
- for (; !ct(ke()); )
1958
+ for (; !ut(ke()); )
1955
1959
  pe();
1956
1960
  return bt(e, me);
1957
1961
  }
@@ -2048,15 +2052,15 @@ function Lt(e, t, o, a, r, i, l, s, u) {
2048
2052
  }
2049
2053
  function Er(e, t, o, a, r, i, l, s, u, d, m) {
2050
2054
  for (var g = r - 1, w = r === 0 ? i : [""], x = Kn(w), v = 0, h = 0, f = 0; v < a; ++v)
2051
- for (var b = 0, k = lt(e, g + 1, g = _i(h = l[v])), y = e; b < x; ++b)
2055
+ for (var b = 0, k = ct(e, g + 1, g = _i(h = l[v])), y = e; b < x; ++b)
2052
2056
  (y = Wo(h > 0 ? w[b] + " " + k : Q(k, /&\f/g, w[b]))) && (u[f++] = y);
2053
2057
  return Ut(e, t, o, r === 0 ? Qn : s, u, d, m);
2054
2058
  }
2055
2059
  function us(e, t, o) {
2056
- return Ut(e, t, o, Un, Yt(rs()), lt(e, 2, -2), 0);
2060
+ return Ut(e, t, o, Un, Yt(rs()), ct(e, 2, -2), 0);
2057
2061
  }
2058
2062
  function Ir(e, t, o, a) {
2059
- return Ut(e, t, o, qn, lt(e, 0, a), lt(e, a + 1, -1), a);
2063
+ return Ut(e, t, o, qn, ct(e, 0, a), ct(e, a + 1, -1), a);
2060
2064
  }
2061
2065
  function qe(e, t) {
2062
2066
  for (var o = "", a = Kn(e), r = 0; r < a; r++)
@@ -2097,13 +2101,13 @@ function gs(e) {
2097
2101
  };
2098
2102
  }
2099
2103
  var hs = function(t, o, a) {
2100
- for (var r = 0, i = 0; r = i, i = ke(), r === 38 && i === 12 && (o[a] = 1), !ct(i); )
2104
+ for (var r = 0, i = 0; r = i, i = ke(), r === 38 && i === 12 && (o[a] = 1), !ut(i); )
2101
2105
  pe();
2102
2106
  return bt(t, me);
2103
2107
  }, fs = function(t, o) {
2104
2108
  var a = -1, r = 44;
2105
2109
  do
2106
- switch (ct(r)) {
2110
+ switch (ut(r)) {
2107
2111
  case 0:
2108
2112
  r === 38 && ke() === 12 && (o[a] = 1), t[a] += hs(me - 1, o, a);
2109
2113
  break;
@@ -2295,7 +2299,7 @@ var ks = function(t, o, a, r) {
2295
2299
  t.return = Yo(t.value, t.length);
2296
2300
  break;
2297
2301
  case Oo:
2298
- return qe([rt(t, {
2302
+ return qe([ot(t, {
2299
2303
  value: Q(t.value, "@", "@" + X)
2300
2304
  })], r);
2301
2305
  case Qn:
@@ -2304,15 +2308,15 @@ var ks = function(t, o, a, r) {
2304
2308
  switch (ts(i, /(::plac\w+|:read-\w+)/)) {
2305
2309
  case ":read-only":
2306
2310
  case ":read-write":
2307
- return qe([rt(t, {
2311
+ return qe([ot(t, {
2308
2312
  props: [Q(i, /:(read-\w+)/, ":" + Dt + "$1")]
2309
2313
  })], r);
2310
2314
  case "::placeholder":
2311
- return qe([rt(t, {
2315
+ return qe([ot(t, {
2312
2316
  props: [Q(i, /:(plac\w+)/, ":" + X + "input-$1")]
2313
- }), rt(t, {
2317
+ }), ot(t, {
2314
2318
  props: [Q(i, /:(plac\w+)/, ":" + Dt + "$1")]
2315
- }), rt(t, {
2319
+ }), ot(t, {
2316
2320
  props: [Q(i, /:(plac\w+)/, ie + "input-$1")]
2317
2321
  })], r);
2318
2322
  }
@@ -2682,7 +2686,7 @@ if (process.env.NODE_ENV !== "production") {
2682
2686
  };
2683
2687
  }
2684
2688
  var _o = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
2685
- function ut(e, t, o) {
2689
+ function dt(e, t, o) {
2686
2690
  if (o == null)
2687
2691
  return "";
2688
2692
  if (o.__emotion_styles !== void 0) {
@@ -2717,7 +2721,7 @@ function ut(e, t, o) {
2717
2721
  case "function": {
2718
2722
  if (e !== void 0) {
2719
2723
  var i = we, l = o(e);
2720
- return we = i, ut(e, t, l);
2724
+ return we = i, dt(e, t, l);
2721
2725
  } else
2722
2726
  process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
2723
2727
  break;
@@ -2746,7 +2750,7 @@ function js(e, t, o) {
2746
2750
  var a = "";
2747
2751
  if (Array.isArray(o))
2748
2752
  for (var r = 0; r < o.length; r++)
2749
- a += ut(e, t, o[r]) + ";";
2753
+ a += dt(e, t, o[r]) + ";";
2750
2754
  else
2751
2755
  for (var i in o) {
2752
2756
  var l = o[i];
@@ -2759,7 +2763,7 @@ function js(e, t, o) {
2759
2763
  for (var s = 0; s < l.length; s++)
2760
2764
  Mr(l[s]) && (a += $t(i) + ":" + zt(i, l[s]) + ";");
2761
2765
  else {
2762
- var u = ut(e, t, l);
2766
+ var u = dt(e, t, l);
2763
2767
  switch (i) {
2764
2768
  case "animation":
2765
2769
  case "animationName": {
@@ -2776,15 +2780,15 @@ function js(e, t, o) {
2776
2780
  }
2777
2781
  var Br = /label:\s*([^\s;\n{]+)\s*(;|$)/g, $o;
2778
2782
  process.env.NODE_ENV !== "production" && ($o = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
2779
- var we, dt = function(t, o, a) {
2783
+ var we, mt = function(t, o, a) {
2780
2784
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
2781
2785
  return t[0];
2782
2786
  var r = !0, i = "";
2783
2787
  we = void 0;
2784
2788
  var l = t[0];
2785
- l == null || l.raw === void 0 ? (r = !1, i += ut(a, o, l)) : (process.env.NODE_ENV !== "production" && l[0] === void 0 && console.error(Lr), i += l[0]);
2789
+ l == null || l.raw === void 0 ? (r = !1, i += dt(a, o, l)) : (process.env.NODE_ENV !== "production" && l[0] === void 0 && console.error(Lr), i += l[0]);
2786
2790
  for (var s = 1; s < t.length; s++)
2787
- i += ut(a, o, t[s]), r && (process.env.NODE_ENV !== "production" && l[s] === void 0 && console.error(Lr), i += l[s]);
2791
+ i += dt(a, o, t[s]), r && (process.env.NODE_ENV !== "production" && l[s] === void 0 && console.error(Lr), i += l[s]);
2788
2792
  var u;
2789
2793
  process.env.NODE_ENV !== "production" && (i = i.replace($o, function(w) {
2790
2794
  return u = w, "";
@@ -2807,7 +2811,7 @@ var we, dt = function(t, o, a) {
2807
2811
  };
2808
2812
  }, Ps = function(t) {
2809
2813
  return t();
2810
- }, ea = Z["useInsertionEffect"] ? Z["useInsertionEffect"] : !1, ta = ea || Ps, Fr = ea || io, tr = {}.hasOwnProperty, nr = /* @__PURE__ */ gt(
2814
+ }, ea = Z["useInsertionEffect"] ? Z["useInsertionEffect"] : !1, ta = ea || Ps, Fr = ea || io, tr = {}.hasOwnProperty, nr = /* @__PURE__ */ ht(
2811
2815
  typeof HTMLElement < "u" ? /* @__PURE__ */ Ls({
2812
2816
  key: "css"
2813
2817
  }) : null
@@ -2819,7 +2823,7 @@ var rr = function(t) {
2819
2823
  var r = Te(nr);
2820
2824
  return t(o, r, a);
2821
2825
  });
2822
- }, Qt = /* @__PURE__ */ gt({});
2826
+ }, Qt = /* @__PURE__ */ ht({});
2823
2827
  process.env.NODE_ENV !== "production" && (Qt.displayName = "EmotionThemeContext");
2824
2828
  var Sr = function(t) {
2825
2829
  var o = t.split(".");
@@ -2863,10 +2867,10 @@ var Sr = function(t) {
2863
2867
  typeof a == "string" && t.registered[a] !== void 0 && (a = t.registered[a]);
2864
2868
  var r = e[vn], i = [a], l = "";
2865
2869
  typeof e.className == "string" ? l = qo(t.registered, i, e.className) : e.className != null && (l = e.className + " ");
2866
- var s = dt(i, void 0, Te(Qt));
2870
+ var s = mt(i, void 0, Te(Qt));
2867
2871
  if (process.env.NODE_ENV !== "production" && s.name.indexOf("-") === -1) {
2868
2872
  var u = e[bn];
2869
- u && (s = dt([s, "label:" + u + ";"]));
2873
+ u && (s = mt([s, "label:" + u + ";"]));
2870
2874
  }
2871
2875
  l += t.key + "-" + s.name;
2872
2876
  var d = {};
@@ -3011,7 +3015,7 @@ var qs = {
3011
3015
  return He.apply(null, i);
3012
3016
  }, Tr = !1, Ks = /* @__PURE__ */ rr(function(e, t) {
3013
3017
  process.env.NODE_ENV !== "production" && !Tr && (e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), Tr = !0);
3014
- var o = e.styles, a = dt([o], void 0, Te(Qt)), r = de();
3018
+ var o = e.styles, a = mt([o], void 0, Te(Qt)), r = de();
3015
3019
  return Fr(function() {
3016
3020
  var i = t.key + "-global", l = new t.sheet.constructor({
3017
3021
  key: i,
@@ -3039,7 +3043,7 @@ process.env.NODE_ENV !== "production" && (Ks.displayName = "EmotionGlobal");
3039
3043
  function or() {
3040
3044
  for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
3041
3045
  t[o] = arguments[o];
3042
- return dt(t);
3046
+ return mt(t);
3043
3047
  }
3044
3048
  var _s = function() {
3045
3049
  var t = or.apply(void 0, arguments), o = "animation-" + t.name;
@@ -3093,7 +3097,7 @@ var t0 = function(t) {
3093
3097
  throw new Error("css can only be used during render");
3094
3098
  for (var d = arguments.length, m = new Array(d), g = 0; g < d; g++)
3095
3099
  m[g] = arguments[g];
3096
- var w = dt(m, t.registered);
3100
+ var w = mt(m, t.registered);
3097
3101
  return a.push(w), _n(t, w, !1), t.key + "-" + w.name;
3098
3102
  }, i = function() {
3099
3103
  if (o && process.env.NODE_ENV !== "production")
@@ -3423,7 +3427,7 @@ function k0(e) {
3423
3427
  function A0(e) {
3424
3428
  return Array.isArray(e);
3425
3429
  }
3426
- function it(e, t, o) {
3430
+ function st(e, t, o) {
3427
3431
  return e ? t : o;
3428
3432
  }
3429
3433
  var L0 = function(t) {
@@ -3520,14 +3524,14 @@ var ma = function(t) {
3520
3524
  var a, r = t.placement, i = t.theme, l = i.borderRadius, s = i.spacing, u = i.colors;
3521
3525
  return T((a = {
3522
3526
  label: "menu"
3523
- }, at(a, N0(r), "100%"), at(a, "position", "absolute"), at(a, "width", "100%"), at(a, "zIndex", 1), a), o ? {} : {
3527
+ }, it(a, N0(r), "100%"), it(a, "position", "absolute"), it(a, "width", "100%"), it(a, "zIndex", 1), a), o ? {} : {
3524
3528
  backgroundColor: u.neutral0,
3525
3529
  borderRadius: l,
3526
3530
  boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
3527
3531
  marginBottom: s.menuGutter,
3528
3532
  marginTop: s.menuGutter
3529
3533
  });
3530
- }, pa = /* @__PURE__ */ gt(null), F0 = function(t) {
3534
+ }, pa = /* @__PURE__ */ ht(null), F0 = function(t) {
3531
3535
  var o = t.children, a = t.minMenuHeight, r = t.maxMenuHeight, i = t.menuPlacement, l = t.menuPosition, s = t.menuShouldScrollIntoView, u = t.theme, d = Te(pa) || {}, m = d.setPortalPlacement, g = de(null), w = ne(r), x = Be(w, 2), v = x[0], h = x[1], f = ne(null), b = Be(f, 2), k = b[0], y = b[1], C = u.spacing.controlHeight;
3532
3536
  return xn(function() {
3533
3537
  var E = g.current;
@@ -4612,7 +4616,7 @@ function Pl(e) {
4612
4616
  }, [x, w, g]), h = ae(function(f) {
4613
4617
  !f || (f.removeEventListener("wheel", g, !1), f.removeEventListener("touchstart", w, !1), f.removeEventListener("touchmove", x, !1));
4614
4618
  }, [x, w, g]);
4615
- return ht(function() {
4619
+ return _e(function() {
4616
4620
  if (!!t) {
4617
4621
  var f = d.current;
4618
4622
  return v(f), function() {
@@ -4642,7 +4646,7 @@ function Kr() {
4642
4646
  function _r() {
4643
4647
  return "ontouchstart" in window || navigator.maxTouchPoints;
4644
4648
  }
4645
- var $r = !!(typeof window < "u" && window.document && window.document.createElement), ot = 0, Je = {
4649
+ var $r = !!(typeof window < "u" && window.document && window.document.createElement), at = 0, Je = {
4646
4650
  capture: !1,
4647
4651
  passive: !1
4648
4652
  };
@@ -4653,25 +4657,25 @@ function Zl(e) {
4653
4657
  if (a && Jr.forEach(function(v) {
4654
4658
  var h = m && m[v];
4655
4659
  r.current[v] = h;
4656
- }), a && ot < 1) {
4660
+ }), a && at < 1) {
4657
4661
  var g = parseInt(r.current.paddingRight, 10) || 0, w = document.body ? document.body.clientWidth : 0, x = window.innerWidth - w + g || 0;
4658
4662
  Object.keys(Ur).forEach(function(v) {
4659
4663
  var h = Ur[v];
4660
4664
  m && (m[v] = h);
4661
4665
  }), m && (m.paddingRight = "".concat(x, "px"));
4662
4666
  }
4663
- d && _r() && (d.addEventListener("touchmove", Qr, Je), u && (u.addEventListener("touchstart", Kr, Je), u.addEventListener("touchmove", qr, Je))), ot += 1;
4667
+ d && _r() && (d.addEventListener("touchmove", Qr, Je), u && (u.addEventListener("touchstart", Kr, Je), u.addEventListener("touchmove", qr, Je))), at += 1;
4664
4668
  }
4665
4669
  }, [a]), s = ae(function(u) {
4666
4670
  if (!!$r) {
4667
4671
  var d = document.body, m = d && d.style;
4668
- ot = Math.max(ot - 1, 0), a && ot < 1 && Jr.forEach(function(g) {
4672
+ at = Math.max(at - 1, 0), a && at < 1 && Jr.forEach(function(g) {
4669
4673
  var w = r.current[g];
4670
4674
  m && (m[g] = w);
4671
4675
  }), d && _r() && (d.removeEventListener("touchmove", Qr, Je), u && (u.removeEventListener("touchstart", Kr, Je), u.removeEventListener("touchmove", qr, Je)));
4672
4676
  }
4673
4677
  }, [a]);
4674
- return ht(function() {
4678
+ return _e(function() {
4675
4679
  if (!!t) {
4676
4680
  var u = i.current;
4677
4681
  return l(u), function() {
@@ -4874,7 +4878,7 @@ function Ma(e, t) {
4874
4878
  }
4875
4879
  function Na(e) {
4876
4880
  return e.reduce(function(t, o) {
4877
- return o.type === "group" ? t.push.apply(t, st(o.options.map(function(a) {
4881
+ return o.type === "group" ? t.push.apply(t, lt(o.options.map(function(a) {
4878
4882
  return a.data;
4879
4883
  }))) : t.push(o.data), t;
4880
4884
  }, []);
@@ -4977,7 +4981,7 @@ var Va = function(t) {
4977
4981
  return r.getOptionValue(f) !== h;
4978
4982
  }), "deselect-option", s);
4979
4983
  } else if (!v)
4980
- m ? r.setValue([].concat(st(w), [s]), "select-option", s) : r.setValue(s, "select-option");
4984
+ m ? r.setValue([].concat(lt(w), [s]), "select-option", s) : r.setValue(s, "select-option");
4981
4985
  else {
4982
4986
  r.ariaOnChange(s, {
4983
4987
  action: "select-option",
@@ -4990,19 +4994,19 @@ var Va = function(t) {
4990
4994
  }, r.removeValue = function(s) {
4991
4995
  var u = r.props.isMulti, d = r.state.selectValue, m = r.getOptionValue(s), g = d.filter(function(x) {
4992
4996
  return r.getOptionValue(x) !== m;
4993
- }), w = it(u, g, g[0] || null);
4997
+ }), w = st(u, g, g[0] || null);
4994
4998
  r.onChange(w, {
4995
4999
  action: "remove-value",
4996
5000
  removedValue: s
4997
5001
  }), r.focusInput();
4998
5002
  }, r.clearValue = function() {
4999
5003
  var s = r.state.selectValue;
5000
- r.onChange(it(r.props.isMulti, [], null), {
5004
+ r.onChange(st(r.props.isMulti, [], null), {
5001
5005
  action: "clear",
5002
5006
  removedValues: s
5003
5007
  });
5004
5008
  }, r.popValue = function() {
5005
- var s = r.props.isMulti, u = r.state.selectValue, d = u[u.length - 1], m = u.slice(0, u.length - 1), g = it(s, m, m[0] || null);
5009
+ var s = r.props.isMulti, u = r.state.selectValue, d = u[u.length - 1], m = u.slice(0, u.length - 1), g = st(s, m, m[0] || null);
5006
5010
  r.onChange(g, {
5007
5011
  action: "pop-value",
5008
5012
  removedValue: d
@@ -5785,7 +5789,7 @@ var Va = function(t) {
5785
5789
  inputIsHiddenAfterUpdate: void 0
5786
5790
  } : {}, L = d, M = m && g;
5787
5791
  return m && !M && (L = {
5788
- value: it(f, b, b[0] || null),
5792
+ value: st(f, b, b[0] || null),
5789
5793
  options: b,
5790
5794
  action: "initial-input-focus"
5791
5795
  }, M = !g), (d == null ? void 0 : d.action) === "initial-input-focus" && (L = null), T(T(T({}, k), A), {}, {
@@ -5848,7 +5852,7 @@ function gc(e) {
5848
5852
  getOptionLabel: y
5849
5853
  }) ? m(C, l(C)) : void 0;
5850
5854
  }, [l, m, y, b, C, u, x, L]), P = Ne(function() {
5851
- return (o || !E) && V ? r === "first" ? [V].concat(st(x)) : [].concat(st(x), [V]) : x;
5855
+ return (o || !E) && V ? r === "first" ? [V].concat(lt(x)) : [].concat(lt(x), [V]) : x;
5852
5856
  }, [o, r, E, V, x]), q = ae(function(D, Y) {
5853
5857
  if (Y.action !== "select-option")
5854
5858
  return v(D, Y);
@@ -5862,7 +5866,7 @@ function gc(e) {
5862
5866
  name: M,
5863
5867
  option: z
5864
5868
  };
5865
- v(it(A, [].concat(st(Ot(L)), [z]), z), B);
5869
+ v(st(A, [].concat(lt(Ot(L)), [z]), z), B);
5866
5870
  }
5867
5871
  return;
5868
5872
  }
@@ -6036,31 +6040,31 @@ wc.propTypes = {
6036
6040
  step: c.number,
6037
6041
  onChange: c.func
6038
6042
  };
6039
- const et = ({ classNames: e, children: t }) => /* @__PURE__ */ n.createElement("div", {
6043
+ const tt = ({ classNames: e, children: t }) => /* @__PURE__ */ n.createElement("div", {
6040
6044
  className: I(
6041
6045
  "ui-header-toolbar",
6042
6046
  "flex w-full items-center space-x-2 border-b border-gray-light px-5 py-3 pr-3 xl:space-x-6 xl:px-10 xl:py-5",
6043
6047
  e
6044
6048
  )
6045
6049
  }, t);
6046
- et.propTypes = {
6050
+ tt.propTypes = {
6047
6051
  classNames: c.string,
6048
6052
  children: c.node.isRequired
6049
6053
  };
6050
- et.Breadcrumb = ({ className: e, children: t }) => /* @__PURE__ */ n.createElement(vt, {
6054
+ tt.Breadcrumb = ({ className: e, children: t }) => /* @__PURE__ */ n.createElement(vt, {
6051
6055
  className: I(
6052
6056
  "ui-header-toolbar-breadcrumb",
6053
6057
  "border-r border-gray-light text-xl md:pr-4 xl:pr-6",
6054
6058
  e
6055
6059
  )
6056
6060
  }, t);
6057
- et.Breadcrumb.displayName = "HeaderToolbar.Breadcrumb";
6058
- et.Breadcrumb.propTypes = {
6061
+ tt.Breadcrumb.displayName = "HeaderToolbar.Breadcrumb";
6062
+ tt.Breadcrumb.propTypes = {
6059
6063
  className: c.string,
6060
6064
  children: c.node.isRequired
6061
6065
  };
6062
- et.Breadcrumb.displayName = "HeaderToolbar.Search";
6063
- et.Search = (e) => /* @__PURE__ */ n.createElement(Bo, {
6066
+ tt.Breadcrumb.displayName = "HeaderToolbar.Search";
6067
+ tt.Search = (e) => /* @__PURE__ */ n.createElement(Bo, {
6064
6068
  className: "ui-header-toolbar-search w-full flex-grow pr-1",
6065
6069
  ...e
6066
6070
  });
@@ -6108,14 +6112,14 @@ sr.displayName = "Tabs.Tab";
6108
6112
  const za = {
6109
6113
  default: "border-t border-gray-light",
6110
6114
  simple: "bg-gray-lighter"
6111
- }, mt = ({ className: e, variant: t = "default", value: o, onChange: a, children: r, ...i }) => {
6112
- const l = Se.toArray(r), s = l.filter((d) => d.type === mt.Tab), u = l.filter((d) => d.type === mt.Panel);
6115
+ }, pt = ({ className: e, variant: t = "default", value: o, onChange: a, children: r, ...i }) => {
6116
+ const l = Se.toArray(r), s = l.filter((d) => d.type === pt.Tab), u = l.filter((d) => d.type === pt.Panel);
6113
6117
  return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("nav", {
6114
6118
  className: I("ui-tabs", "flex overflow-x-auto", za[t], e),
6115
6119
  ...i
6116
6120
  }, t === "default" ? /* @__PURE__ */ n.createElement("div", {
6117
6121
  className: "min-w-10 flex-shrink-0 border-b border-gray-light"
6118
- }) : null, s.map((d, m) => pt(d, {
6122
+ }) : null, s.map((d, m) => gt(d, {
6119
6123
  variant: t,
6120
6124
  isActive: m === o,
6121
6125
  onClick: () => a == null ? void 0 : a(m)
@@ -6123,15 +6127,15 @@ const za = {
6123
6127
  className: "min-w-10 flex-grow border-b border-gray-light"
6124
6128
  }) : null), u[o]);
6125
6129
  };
6126
- mt.propTypes = {
6130
+ pt.propTypes = {
6127
6131
  variant: c.oneOf(Object.keys(za)),
6128
6132
  className: c.string,
6129
6133
  value: c.number.isRequired,
6130
6134
  onChange: c.func.isRequired,
6131
6135
  children: c.node.isRequired
6132
6136
  };
6133
- mt.Tab = sr;
6134
- mt.Panel = ir;
6137
+ pt.Tab = sr;
6138
+ pt.Panel = ir;
6135
6139
  const xc = "_shimmer_qt4e9_7", Ec = {
6136
6140
  shimmer: xc
6137
6141
  }, Ic = ({ style: e, height: t = 300, shouldAnimate: o = !0, children: a, classNames: r = {}, ...i }) => /* @__PURE__ */ n.createElement("div", {
@@ -6618,7 +6622,7 @@ const Nt = {
6618
6622
  }) => {
6619
6623
  var H, z;
6620
6624
  const h = e === Nt.single ? t : t.from, [f, b] = ne(h), [k, y] = ne(""), C = e === Nt.range;
6621
- ht(() => {
6625
+ _e(() => {
6622
6626
  l == null || l(f);
6623
6627
  }, [f, l]);
6624
6628
  const E = (B, G, O) => {
@@ -6952,7 +6956,7 @@ const Nc = (e, t = "YYYY-MM-DD") => R(e).format(t), A4 = (e, t = "h:mm a") => {
6952
6956
  className: I("ui-date-picker-input", i.popover),
6953
6957
  onClickOutside: b,
6954
6958
  ...s
6955
- }, r ? pt(r, { onClick: v }) : /* @__PURE__ */ n.createElement(Ja, {
6959
+ }, r ? gt(r, { onClick: v }) : /* @__PURE__ */ n.createElement(Ja, {
6956
6960
  readOnly: !0,
6957
6961
  size: "medium",
6958
6962
  value: e ? Nc(e, o) : "",
@@ -6960,7 +6964,7 @@ const Nc = (e, t = "YYYY-MM-DD") => R(e).format(t), A4 = (e, t = "h:mm a") => {
6960
6964
  onClick: v
6961
6965
  }), /* @__PURE__ */ n.createElement(Ae.Content, {
6962
6966
  className: "pr-1"
6963
- }, /* @__PURE__ */ n.createElement(lr, {
6967
+ }, w && /* @__PURE__ */ n.createElement(lr, {
6964
6968
  variant: t,
6965
6969
  getDayContent: u,
6966
6970
  value: e,
@@ -7384,7 +7388,7 @@ const N4 = (e) => /* @__PURE__ */ n.createElement("svg", {
7384
7388
  }, e), o && /* @__PURE__ */ n.createElement("div", {
7385
7389
  className: "flex cursor-pointer items-center justify-center pl-3 opacity-60 hover:opacity-100",
7386
7390
  onClick: r
7387
- }, /* @__PURE__ */ n.createElement(_e, null))));
7391
+ }, /* @__PURE__ */ n.createElement($e, null))));
7388
7392
  },
7389
7393
  dismiss(e) {
7390
7394
  dr.dismiss(e);
@@ -11461,7 +11465,7 @@ export {
11461
11465
  $4 as ClockAltIcon,
11462
11466
  e3 as ClockIcon,
11463
11467
  gu as ClockManualIcon,
11464
- _e as CloseIcon,
11468
+ $e as CloseIcon,
11465
11469
  o3 as CollapseIcon,
11466
11470
  fc as ComboBox,
11467
11471
  n3 as CommentAltIcon,
@@ -11519,7 +11523,7 @@ export {
11519
11523
  p3 as GlobeIcon,
11520
11524
  Ju as HandIcon,
11521
11525
  Uu as HandshakeIcon,
11522
- et as HeaderToolbar,
11526
+ tt as HeaderToolbar,
11523
11527
  a4 as HelpCenterIcon,
11524
11528
  F4 as HistogramOptions,
11525
11529
  Qu as HouseIcon,
@@ -11609,7 +11613,7 @@ export {
11609
11613
  p1 as SubmitButton,
11610
11614
  Ye as Switch,
11611
11615
  le as Table,
11612
- mt as Tabs,
11616
+ pt as Tabs,
11613
11617
  b1 as Tag,
11614
11618
  R2 as TaxIcon,
11615
11619
  Di as Textarea,