@xola/ui-kit 2.0.0 → 2.0.2

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