@stenajs-webui/core 24.0.1 → 25.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,22 +1,22 @@
1
- import { cssColor as G } from "@stenajs-webui/theme";
2
- import { jsx as a, jsxs as V, Fragment as z } from "react/jsx-runtime";
3
- import X, { forwardRef as g, useState as v, useCallback as p, useLayoutEffect as B, useRef as f, createContext as Y, useEffect as m, useMemo as T, useContext as K, isValidElement as Z, Fragment as J } from "react";
4
- import R from "classnames";
5
- import A from "@emotion/styled";
6
- import { system as Q, background as ee, border as te, borderRight as re, borderLeft as ne, borderTop as ue, borderBottom as oe, borderColor as se, borderRadius as ie, borderStyle as ce, borderWidth as ae, boxShadow as le, flexbox as de, overflow as pe, position as me, layout as he, zIndex as fe, left as ge, right as ye, top as ve, bottom as be } from "styled-system";
7
- import { memoize as we, pickBy as W, debounce as xe } from "lodash-es";
8
- import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
9
- separatorLine: ke
10
- }, F = g(
1
+ import { cssColor as X } from "@stenajs-webui/theme";
2
+ import { jsx as c, jsxs as V, Fragment as O } from "react/jsx-runtime";
3
+ import Y, { forwardRef as g, useState as v, useCallback as p, useLayoutEffect as B, useRef as f, createContext as K, useEffect as m, useMemo as T, useContext as Z, isValidElement as J, Fragment as Q } from "react";
4
+ import I from "classnames";
5
+ import L from "@emotion/styled";
6
+ import { system as ee, background as te, border as re, borderRight as ne, borderLeft as ue, borderTop as oe, borderBottom as se, borderColor as ie, borderRadius as ce, borderStyle as ae, borderWidth as le, boxShadow as de, flexbox as pe, overflow as me, position as he, layout as fe, zIndex as ge, left as ye, right as ve, top as be, bottom as we } from "styled-system";
7
+ import { memoize as xe, pickBy as W, debounce as ke } from "lodash-es";
8
+ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
9
+ separatorLine: _e
10
+ }, z = g(
11
11
  ({
12
- color: e = G("--lhds-color-ui-400"),
12
+ color: e = X("--lhds-color-ui-400"),
13
13
  size: t = "100%",
14
14
  width: r = "1px",
15
15
  vertical: n = !1
16
- }, u) => /* @__PURE__ */ a(
16
+ }, u) => /* @__PURE__ */ c(
17
17
  "hr",
18
18
  {
19
- className: _e.separatorLine,
19
+ className: $e.separatorLine,
20
20
  "aria-hidden": !0,
21
21
  color: e,
22
22
  style: {
@@ -27,17 +27,17 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
27
27
  ref: u
28
28
  }
29
29
  )
30
- ), $e = "_text_1iisw_1", Se = "_standard_1iisw_24", Ee = "_bold_1iisw_27", Ce = "_caption_1iisw_31", Te = "_overline_1iisw_39", Re = "_large_1iisw_48", Ie = "_medium_1iisw_53", Ae = "_small_1iisw_58", Le = "_smaller_1iisw_63", _ = {
31
- text: $e,
32
- standard: Se,
33
- bold: Ee,
34
- caption: Ce,
35
- overline: Te,
30
+ ), Se = "_text_1iisw_1", Ee = "_standard_1iisw_24", Ce = "_bold_1iisw_27", Te = "_caption_1iisw_31", Ie = "_overline_1iisw_39", Re = "_large_1iisw_48", Le = "_medium_1iisw_53", Ae = "_small_1iisw_58", Pe = "_smaller_1iisw_63", $ = {
31
+ text: Se,
32
+ standard: Ee,
33
+ bold: Ce,
34
+ caption: Te,
35
+ overline: Ie,
36
36
  large: Re,
37
- medium: Ie,
37
+ medium: Le,
38
38
  small: Ae,
39
- smaller: Le
40
- }, S = g(
39
+ smaller: Pe
40
+ }, x = g(
41
41
  ({
42
42
  children: e,
43
43
  variant: t = "standard",
@@ -48,14 +48,14 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
48
48
  whiteSpace: i,
49
49
  wordBreak: l,
50
50
  textAlign: s = "left",
51
- overflow: c,
51
+ overflow: a,
52
52
  textOverflow: d,
53
53
  style: h,
54
54
  ...y
55
- }, b) => /* @__PURE__ */ a(
55
+ }, b) => /* @__PURE__ */ c(
56
56
  "span",
57
57
  {
58
- className: R(_.text, _[t], _[r], n),
58
+ className: I($.text, $[t], $[r], n),
59
59
  ref: b,
60
60
  style: {
61
61
  color: u,
@@ -63,7 +63,7 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
63
63
  whiteSpace: i,
64
64
  wordBreak: l,
65
65
  textAlign: s,
66
- overflow: c,
66
+ overflow: a,
67
67
  textOverflow: d,
68
68
  ...h
69
69
  },
@@ -71,10 +71,10 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
71
71
  children: e
72
72
  }
73
73
  )
74
- ), wt = S, C = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, Pe = (e) => {
74
+ ), _t = x, C = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, Oe = (e) => {
75
75
  if (e !== 0)
76
76
  return `calc(${e} * var(--swui-metrics-space))`;
77
- }, M = (e) => Pe(C(e)), ze = {
77
+ }, F = (e) => Oe(C(e)), ze = {
78
78
  // react props
79
79
  // https://github.com/facebook/react/blob/5495a7f24aef85ba6937truetrue1ce962673ca9f5fde6/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js
80
80
  children: !0,
@@ -563,14 +563,14 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
563
563
  autofocus: !0
564
564
  }, Fe = `^((${Object.keys(ze).join(
565
565
  "|"
566
- )})|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$`, Me = new RegExp(Fe), Oe = we(
566
+ )})|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$`, Me = new RegExp(Fe), De = xe(
567
567
  (e) => Me.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91
568
- ), De = {
568
+ ), He = {
569
569
  box: "var(--swui-shadow-box)",
570
570
  popover: "var(--swui-shadow-popover)",
571
571
  modal: "var(--swui-shadow-modal)",
572
572
  bottom: "var(--swui-shadow-bottom)"
573
- }, He = [
573
+ }, Ne = [
574
574
  "spacing",
575
575
  "indent",
576
576
  "gap",
@@ -578,7 +578,7 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
578
578
  "height",
579
579
  "overflow",
580
580
  "display"
581
- ], Ne = (e) => He.includes(e), Ue = Q({
581
+ ], Ue = (e) => Ne.includes(e), Ve = ee({
582
582
  row: {
583
583
  property: "flexDirection",
584
584
  transform: (e) => e ? "row" : "column"
@@ -600,18 +600,18 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
600
600
  },
601
601
  columnGap: {
602
602
  property: "columnGap",
603
- transform: M
603
+ transform: F
604
604
  },
605
605
  rowGap: {
606
606
  property: "rowGap",
607
- transform: M
607
+ transform: F
608
608
  },
609
609
  shadow: {
610
610
  property: "boxShadow",
611
- transform: (e) => De[e] ?? e
611
+ transform: (e) => He[e] ?? e
612
612
  }
613
- }), w = A("div", {
614
- shouldForwardProp: (e) => typeof e == "string" ? Ne(e) ? !1 : Oe(e) : !1
613
+ }), w = L("div", {
614
+ shouldForwardProp: (e) => typeof e == "string" ? Ue(e) ? !1 : De(e) : !1
615
615
  })`
616
616
  --current-spacing: 0;
617
617
  --current-indent: 0;
@@ -619,8 +619,7 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
619
619
  box-sizing: border-box;
620
620
  display: flex;
621
621
  flex-direction: column;
622
- ${Ue};
623
- ${ee};
622
+ ${Ve};
624
623
  ${te};
625
624
  ${re};
626
625
  ${ne};
@@ -640,6 +639,7 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
640
639
  ${ye};
641
640
  ${ve};
642
641
  ${be};
642
+ ${we};
643
643
 
644
644
  gap: calc(var(--current-gap) * var(--swui-metrics-space));
645
645
 
@@ -660,15 +660,15 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
660
660
  ${({ focusWithinBackground: e }) => e ? `background: ${e};` : ""}
661
661
  ${({ focusWithinBorder: e }) => e ? `border: ${e};` : ""}
662
662
  }
663
- `, Ve = g(
663
+ `, Be = g(
664
664
  function(t, r) {
665
- return /* @__PURE__ */ a(w, { row: !0, ref: r, ...t });
665
+ return /* @__PURE__ */ c(w, { row: !0, ref: r, ...t });
666
666
  }
667
- ), xt = ({ children: e }) => /* @__PURE__ */ V(Ve, { alignItems: "center", gap: 2, children: [
668
- /* @__PURE__ */ a(w, { flexGrow: 1, children: /* @__PURE__ */ a(F, {}) }),
669
- typeof e == "string" ? /* @__PURE__ */ a(S, { children: e }) : e,
670
- /* @__PURE__ */ a(w, { flexGrow: 1, children: /* @__PURE__ */ a(F, {}) })
671
- ] }), Be = A.button`
667
+ ), $t = ({ children: e }) => /* @__PURE__ */ V(Be, { alignItems: "center", gap: 2, children: [
668
+ /* @__PURE__ */ c(w, { flexGrow: 1, children: /* @__PURE__ */ c(z, {}) }),
669
+ typeof e == "string" ? /* @__PURE__ */ c(x, { children: e }) : e,
670
+ /* @__PURE__ */ c(w, { flexGrow: 1, children: /* @__PURE__ */ c(z, {}) })
671
+ ] }), We = L.button`
672
672
  display: inline-block;
673
673
  user-select: none;
674
674
  border: 0;
@@ -691,7 +691,7 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
691
691
  ${({ width: e }) => e ? `width: ${e};` : ""}
692
692
  ${({ height: e }) => e ? `height: ${e};` : ""}
693
693
  ${({ borderRadius: e }) => e ? `border-radius: ${e};` : ""}
694
- `, kt = g(
694
+ `, St = g(
695
695
  ({
696
696
  disableFocusHighlight: e,
697
697
  onClick: t,
@@ -702,13 +702,13 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
702
702
  opacityOnHover: i,
703
703
  disabled: l,
704
704
  children: s,
705
- background: c = "transparent",
705
+ background: a = "transparent",
706
706
  hoverBackground: d,
707
707
  focusBackground: h,
708
708
  type: y = "button",
709
709
  ...b
710
- }, x) => /* @__PURE__ */ a(
711
- Be,
710
+ }, k) => /* @__PURE__ */ c(
711
+ We,
712
712
  {
713
713
  opacityOnHover: i,
714
714
  title: n,
@@ -718,8 +718,8 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
718
718
  onDoubleClick: r,
719
719
  disableFocusHighlight: e,
720
720
  pointer: !!(t || r) && !o,
721
- ref: x,
722
- background: c,
721
+ ref: k,
722
+ background: a,
723
723
  hoverBackground: d,
724
724
  focusBackground: h,
725
725
  type: y,
@@ -727,11 +727,11 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
727
727
  children: s
728
728
  }
729
729
  )
730
- ), _t = g(
730
+ ), Et = g(
731
731
  function(t, r) {
732
- return /* @__PURE__ */ a(w, { ref: r, ...t });
732
+ return /* @__PURE__ */ c(w, { ref: r, ...t });
733
733
  }
734
- ), We = (e) => {
734
+ ), je = (e) => {
735
735
  const { x: t, y: r, width: n, height: u, bottom: o, top: i, left: l, right: s } = e.getBoundingClientRect();
736
736
  return {
737
737
  width: n,
@@ -743,12 +743,12 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
743
743
  right: s,
744
744
  bottom: o
745
745
  };
746
- }, je = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height && e.bottom === t.bottom && e.top === t.top && e.left === t.left && e.right === t.right, qe = (e, t) => {
746
+ }, qe = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height && e.bottom === t.bottom && e.top === t.top && e.left === t.left && e.right === t.right, Ge = (e, t) => {
747
747
  const [r, n] = v(), u = p(() => {
748
748
  window.requestAnimationFrame(() => {
749
749
  if (e.current) {
750
- const o = We(e.current);
751
- (!r || !je(r, o)) && t && t(o), n(o);
750
+ const o = je(e.current);
751
+ (!r || !qe(r, o)) && t && t(o), n(o);
752
752
  }
753
753
  });
754
754
  }, [e, r, n, t]);
@@ -757,31 +757,31 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
757
757
  }, [u]), {
758
758
  dimensions: r
759
759
  };
760
- }, $t = g(
760
+ }, Ct = g(
761
761
  function({ onResize: t, ...r }, n) {
762
762
  const u = f(null);
763
- return qe(n ?? u, t), /* @__PURE__ */ a(w, { ...r, ref: n });
763
+ return Ge(n ?? u, t), /* @__PURE__ */ c(w, { ...r, ref: n });
764
764
  }
765
- ), St = g(function({ num: t = 1, ...r }, n) {
766
- return /* @__PURE__ */ a(w, { indent: t, ref: n, ...r });
767
- }), Et = g(
765
+ ), Tt = g(function({ num: t = 1, ...r }, n) {
766
+ return /* @__PURE__ */ c(w, { indent: t, ref: n, ...r });
767
+ }), It = g(
768
768
  function({ num: t = 1, ...r }, n) {
769
- return /* @__PURE__ */ a(w, { spacing: t, ref: n, ...r });
769
+ return /* @__PURE__ */ c(w, { spacing: t, ref: n, ...r });
770
770
  }
771
- ), Ge = A.div`
771
+ ), Xe = L.div`
772
772
  --current-size: 1;
773
773
  flex: none;
774
774
  width: calc(var(--current-size) * var(--swui-metrics-space));
775
775
  height: calc(var(--current-size) * var(--swui-metrics-space));
776
- `, Ct = ({
776
+ `, Rt = ({
777
777
  half: e = !1,
778
778
  horizontal: t = !1,
779
779
  num: r = 1,
780
780
  vertical: n = !1
781
781
  }) => {
782
782
  const u = r * (e ? 0.5 : 1);
783
- return /* @__PURE__ */ a(
784
- Ge,
783
+ return /* @__PURE__ */ c(
784
+ Xe,
785
785
  {
786
786
  style: {
787
787
  "--current-size": u,
@@ -790,18 +790,18 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
790
790
  }
791
791
  }
792
792
  );
793
- }, Tt = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ a(z, { children: r(e) }) : /* @__PURE__ */ a(z, { children: e }), j = Y({
793
+ }, Lt = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ c(O, { children: r(e) }) : /* @__PURE__ */ c(O, { children: e }), j = K({
794
794
  isFontLarge: !1,
795
795
  fontSizeRatio: 1
796
- }), O = 12, Rt = ({ children: e }) => {
796
+ }), M = 12, At = ({ children: e }) => {
797
797
  const t = f(null), [r, n] = v(!1), [u, o] = v(1);
798
798
  m(() => {
799
799
  if (!t.current)
800
800
  return;
801
801
  const l = new ResizeObserver((s) => {
802
- for (const c of s) {
803
- const d = c.contentRect.height;
804
- n(d > O), o(d / O);
802
+ for (const a of s) {
803
+ const d = a.contentRect.height;
804
+ n(d > M), o(d / M);
805
805
  }
806
806
  });
807
807
  return l.observe(t.current), () => l.disconnect();
@@ -811,7 +811,7 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
811
811
  [u, r]
812
812
  );
813
813
  return /* @__PURE__ */ V(j.Provider, { value: i, children: [
814
- /* @__PURE__ */ a(
814
+ /* @__PURE__ */ c(
815
815
  "div",
816
816
  {
817
817
  ref: t,
@@ -829,31 +829,31 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
829
829
  ),
830
830
  e
831
831
  ] });
832
- }, It = () => {
833
- const e = K(j);
832
+ }, Pt = () => {
833
+ const e = Z(j);
834
834
  return e || {
835
835
  isFontLarge: !1,
836
836
  fontSizeRatio: 1
837
837
  };
838
- }, Xe = "_lively_1k3wm_6", Ye = {
839
- lively: Xe
840
- }, At = g(function({ politeness: t = "polite", className: r, children: n, ...u }, o) {
841
- return /* @__PURE__ */ a(
838
+ }, Ye = "_lively_1k3wm_6", Ke = {
839
+ lively: Ye
840
+ }, Ot = g(function({ politeness: t = "polite", className: r, children: n, ...u }, o) {
841
+ return /* @__PURE__ */ c(
842
842
  "div",
843
843
  {
844
844
  ref: o,
845
- className: R(Ye.lively, r),
845
+ className: I(Ke.lively, r),
846
846
  "aria-live": t,
847
847
  ...u,
848
848
  children: n
849
849
  }
850
850
  );
851
- }), Ke = "_visuallyHidden_1gevf_1", Ze = {
852
- visuallyHidden: Ke
853
- }, Je = (e) => W(e, Qe), Lt = (e) => W(e, et), Qe = (e, t) => t.startsWith("data-") || t.startsWith("aria-"), et = (e, t) => t.startsWith("aria-"), Pt = ({
851
+ }), Ze = "_visuallyHidden_1gevf_1", Je = {
852
+ visuallyHidden: Ze
853
+ }, Qe = (e) => W(e, et), zt = (e) => W(e, tt), et = (e, t) => t.startsWith("data-") || t.startsWith("aria-"), tt = (e, t) => t.startsWith("aria-"), Ft = ({
854
854
  children: e,
855
855
  ...t
856
- }) => /* @__PURE__ */ a("span", { className: Ze.visuallyHidden, ...Je(t), children: e }), tt = g(
856
+ }) => /* @__PURE__ */ c("span", { className: Je.visuallyHidden, ...Qe(t), children: e }), rt = g(
857
857
  ({
858
858
  children: e,
859
859
  variant: t = "standard",
@@ -864,14 +864,14 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
864
864
  whiteSpace: i,
865
865
  wordBreak: l,
866
866
  textAlign: s = "left",
867
- overflow: c,
867
+ overflow: a,
868
868
  textOverflow: d,
869
869
  style: h,
870
870
  ...y
871
- }, b) => /* @__PURE__ */ a(
871
+ }, b) => /* @__PURE__ */ c(
872
872
  "p",
873
873
  {
874
- className: R(_.text, _[t], _[r], n),
874
+ className: I($.text, $[t], $[r], n),
875
875
  ref: b,
876
876
  style: {
877
877
  color: u,
@@ -879,7 +879,7 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
879
879
  whiteSpace: i,
880
880
  wordBreak: l,
881
881
  textAlign: s,
882
- overflow: c,
882
+ overflow: a,
883
883
  textOverflow: d,
884
884
  ...h
885
885
  },
@@ -887,15 +887,15 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
887
887
  children: e
888
888
  }
889
889
  )
890
- ), zt = tt, Ft = (e) => /* @__PURE__ */ a(S, { size: "small", ...e }), Mt = (e) => /* @__PURE__ */ a(S, { size: "smaller", ...e }), Ot = (e) => /* @__PURE__ */ a(S, { size: "medium", ...e }), Dt = (e) => /* @__PURE__ */ a(S, { size: "large", ...e }), rt = "_heading_1cnsg_1", nt = "_h1_1cnsg_10", ut = "_h2_1cnsg_14", ot = "_h3_1cnsg_18", st = "_h4_1cnsg_22", it = "_h5_1cnsg_26", ct = "_h6_1cnsg_30", D = {
891
- heading: rt,
892
- h1: nt,
893
- h2: ut,
894
- h3: ot,
895
- h4: st,
896
- h5: it,
897
- h6: ct
898
- }, at = g(
890
+ ), Mt = rt, Dt = (e) => /* @__PURE__ */ c(x, { size: "small", ...e }), Ht = (e) => /* @__PURE__ */ c(x, { size: "smaller", ...e }), Nt = (e) => /* @__PURE__ */ c(x, { size: "medium", ...e }), Ut = (e) => /* @__PURE__ */ c(x, { size: "large", ...e }), nt = "_heading_1cnsg_1", ut = "_h1_1cnsg_10", ot = "_h2_1cnsg_14", st = "_h3_1cnsg_18", it = "_h4_1cnsg_22", ct = "_h5_1cnsg_26", at = "_h6_1cnsg_30", D = {
891
+ heading: nt,
892
+ h1: ut,
893
+ h2: ot,
894
+ h3: st,
895
+ h4: it,
896
+ h5: ct,
897
+ h6: at
898
+ }, lt = g(
899
899
  ({
900
900
  variant: e = "h3",
901
901
  className: t,
@@ -906,17 +906,20 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
906
906
  children: i,
907
907
  as: l,
908
908
  ...s
909
- }, c) => /* @__PURE__ */ a(
909
+ }, a) => /* @__PURE__ */ c(
910
910
  l ?? e,
911
911
  {
912
- className: R(D.heading, D[e], t),
912
+ className: I(D.heading, D[e], t),
913
913
  style: { color: r, whiteSpace: n, wordBreak: u, ...o },
914
- ref: c,
914
+ ref: a,
915
915
  ...s,
916
916
  children: i
917
917
  }
918
918
  )
919
- ), Ht = (e) => /* @__PURE__ */ a(at, { variant: "h2", ...e }), Nt = ({
919
+ ), Vt = (e) => /* @__PURE__ */ c(lt, { variant: "h2", ...e }), dt = "_ol_25p86_1", pt = "_ul_25p86_2", q = {
920
+ ol: dt,
921
+ ul: pt
922
+ }, Bt = ({ children: e }) => /* @__PURE__ */ c("ul", { className: q.ul, children: e }), Wt = ({ children: e }) => /* @__PURE__ */ c("ol", { className: q.ol, children: e }), jt = ({ children: e }) => /* @__PURE__ */ c("li", { children: typeof e == "string" ? /* @__PURE__ */ c(x, { children: e }) : e }), qt = ({
920
923
  blockedKeys: e,
921
924
  blockMouse: t = !1,
922
925
  ...r
@@ -932,7 +935,7 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
932
935
  },
933
936
  [t]
934
937
  );
935
- return /* @__PURE__ */ a(
938
+ return /* @__PURE__ */ c(
936
939
  w,
937
940
  {
938
941
  ...r,
@@ -942,28 +945,28 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
942
945
  onMouseUp: u
943
946
  }
944
947
  );
945
- }, lt = (e, t) => e === t, Ut = (e, t, r = lt) => {
948
+ }, mt = (e, t) => e === t, Gt = (e, t, r = mt) => {
946
949
  const n = p(
947
950
  (s) => {
948
- e.some((c) => r(c, s)) || t([...e, s]);
951
+ e.some((a) => r(a, s)) || t([...e, s]);
949
952
  },
950
953
  [e, t, r]
951
954
  ), u = p(
952
955
  (s) => {
953
956
  t(
954
- s.reduce((c, d) => c.some((h) => r(h, d)) ? c : [...c, d], e)
957
+ s.reduce((a, d) => a.some((h) => r(h, d)) ? a : [...a, d], e)
955
958
  );
956
959
  },
957
960
  [e, t, r]
958
961
  ), o = p(
959
962
  (s) => {
960
- const c = e.findIndex((d) => r(d, s));
961
- c >= 0 && t(e.filter((d, h) => h !== c));
963
+ const a = e.findIndex((d) => r(d, s));
964
+ a >= 0 && t(e.filter((d, h) => h !== a));
962
965
  },
963
966
  [e, t, r]
964
967
  ), i = p(
965
968
  (s) => {
966
- t(e.filter((c) => !s.some((d) => r(d, c))));
969
+ t(e.filter((a) => !s.some((d) => r(d, a))));
967
970
  },
968
971
  [e, t, r]
969
972
  ), l = p(
@@ -979,7 +982,7 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
979
982
  removeMultiple: i,
980
983
  toggle: l
981
984
  };
982
- }, L = (e) => {
985
+ }, A = (e) => {
983
986
  const [t, r] = v(e), n = p(() => {
984
987
  r(!0);
985
988
  }, [r]), u = p(() => {
@@ -988,7 +991,7 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
988
991
  r((i) => !i);
989
992
  }, [r]);
990
993
  return [t, n, u, o];
991
- }, Vt = (e, t) => {
994
+ }, Xt = (e, t) => {
992
995
  const [r, n] = v(e);
993
996
  return m(() => {
994
997
  const u = setTimeout(() => {
@@ -998,7 +1001,7 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
998
1001
  clearTimeout(u);
999
1002
  };
1000
1003
  }, [e, t]), r;
1001
- }, I = (e) => {
1004
+ }, R = (e) => {
1002
1005
  const t = f(e);
1003
1006
  return B(() => {
1004
1007
  t.current = e;
@@ -1006,50 +1009,50 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
1006
1009
  const { current: n } = t;
1007
1010
  return n(...r);
1008
1011
  }, []);
1009
- }, dt = (e) => {
1010
- const t = X.useRef(e);
1012
+ }, ht = (e) => {
1013
+ const t = Y.useRef(e);
1011
1014
  return t.current = e, t;
1012
- }, Bt = (e, { delay: t, onError: r, onSettled: n }) => {
1013
- const u = I(e), o = I(
1014
- (k, E) => r?.(k, E)
1015
- ), i = I(() => n?.()), l = dt(t), s = f(null), c = f(null), d = f(null), h = p(() => {
1016
- c.current != null && (clearTimeout(c.current), c.current = null);
1015
+ }, Yt = (e, { delay: t, onError: r, onSettled: n }) => {
1016
+ const u = R(e), o = R(
1017
+ (_, E) => r?.(_, E)
1018
+ ), i = R(() => n?.()), l = ht(t), s = f(null), a = f(null), d = f(null), h = p(() => {
1019
+ a.current != null && (clearTimeout(a.current), a.current = null);
1017
1020
  }, []), y = p(() => {
1018
1021
  if (d.current != null)
1019
1022
  return d.current;
1020
1023
  if (s.current == null)
1021
1024
  return Promise.resolve();
1022
- const k = async () => {
1025
+ const _ = async () => {
1023
1026
  try {
1024
1027
  for (; s.current != null; ) {
1025
1028
  const { value: P } = s.current;
1026
1029
  s.current = null, h();
1027
1030
  try {
1028
1031
  await u(P);
1029
- } catch (q) {
1030
- o(q, P);
1032
+ } catch (G) {
1033
+ o(G, P);
1031
1034
  }
1032
1035
  }
1033
1036
  } finally {
1034
1037
  d.current = null, i();
1035
1038
  }
1036
- }, E = Promise.resolve().then(k);
1039
+ }, E = Promise.resolve().then(_);
1037
1040
  return d.current = E, E;
1038
1041
  }, [h, u, o, i]), b = p(
1039
- (k) => {
1040
- s.current = { value: k }, h(), c.current = setTimeout(() => {
1041
- c.current = null, y();
1042
+ (_) => {
1043
+ s.current = { value: _ }, h(), a.current = setTimeout(() => {
1044
+ a.current = null, y();
1042
1045
  }, l.current);
1043
1046
  },
1044
1047
  [h, y, l]
1045
- ), x = p(() => {
1048
+ ), k = p(() => {
1046
1049
  h(), s.current = null;
1047
1050
  }, [h]);
1048
- return m(() => x, [x]), T(
1049
- () => ({ schedule: b, flush: y, cancel: x }),
1050
- [b, y, x]
1051
+ return m(() => k, [k]), T(
1052
+ () => ({ schedule: b, flush: y, cancel: k }),
1053
+ [b, y, k]
1051
1054
  );
1052
- }, Wt = (e, t) => {
1055
+ }, Kt = (e, t) => {
1053
1056
  const [r, n] = v(e);
1054
1057
  return m(() => {
1055
1058
  e && n(!0);
@@ -1061,11 +1064,11 @@ import './index.css';const ke = "_separatorLine_nzfcz_1", _e = {
1061
1064
  };
1062
1065
  }, [e, t]), r;
1063
1066
  };
1064
- let pt = 0;
1065
- const H = (e) => `webui-${e ? e + "-" : ""}${++pt}`, jt = (e) => {
1067
+ let ft = 0;
1068
+ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
1066
1069
  const [t, r] = v(() => H(e));
1067
1070
  return m(() => r(H(e)), [e]), t;
1068
- }, $ = (e, t, r) => {
1071
+ }, S = (e, t, r) => {
1069
1072
  const n = f(null);
1070
1073
  m(() => {
1071
1074
  n.current = r;
@@ -1082,24 +1085,24 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++pt}`, jt = (e) => {
1082
1085
  i && i.removeEventListener(t, o);
1083
1086
  };
1084
1087
  }, [t, e]);
1085
- }, qt = (e) => {
1086
- const [t, r, n] = L(!1);
1088
+ }, Jt = (e) => {
1089
+ const [t, r, n] = A(!1);
1087
1090
  m(() => {
1088
1091
  document.activeElement === e.current ? r() : n();
1089
- }, [e, n, r]), $(e, "focus", r), $(e, "blur", n);
1092
+ }, [e, n, r]), S(e, "focus", r), S(e, "blur", n);
1090
1093
  const u = p(() => {
1091
1094
  e.current && e.current.focus();
1092
1095
  }, [e]), o = p(() => {
1093
1096
  e.current && e.current.blur();
1094
1097
  }, [e]);
1095
1098
  return { isInFocus: t, focus: u, blur: o };
1096
- }, Gt = (e) => {
1097
- const [t, r, n] = L(!1);
1098
- return $(e, "mouseover", r), $(e, "mouseout", n), t;
1099
- }, Xt = (e) => {
1100
- const [t, r, n] = L(!1);
1101
- return $(e, "mouseenter", r), $(e, "mouseleave", n), t;
1102
- }, Yt = (e, t) => {
1099
+ }, Qt = (e) => {
1100
+ const [t, r, n] = A(!1);
1101
+ return S(e, "mouseover", r), S(e, "mouseout", n), t;
1102
+ }, er = (e) => {
1103
+ const [t, r, n] = A(!1);
1104
+ return S(e, "mouseenter", r), S(e, "mouseleave", n), t;
1105
+ }, tr = (e, t) => {
1103
1106
  const r = f(() => {
1104
1107
  });
1105
1108
  m(() => {
@@ -1112,7 +1115,7 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++pt}`, jt = (e) => {
1112
1115
  document.removeEventListener("mousedown", n), document.removeEventListener("touchstart", n);
1113
1116
  };
1114
1117
  }, [...e]);
1115
- }, Kt = (e, t, r) => {
1118
+ }, rr = (e, t, r) => {
1116
1119
  const n = f(() => {
1117
1120
  });
1118
1121
  m(() => {
@@ -1125,20 +1128,20 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++pt}`, jt = (e) => {
1125
1128
  document.removeEventListener("mousedown", u, r), document.removeEventListener("touchstart", u, r);
1126
1129
  };
1127
1130
  }, [e, r]);
1128
- }, N = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], Zt = (e, t) => {
1131
+ }, N = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], nr = (e, t) => {
1129
1132
  const r = f(() => {
1130
1133
  });
1131
1134
  m(() => {
1132
1135
  r.current = e;
1133
1136
  }, [e]), m(() => {
1134
- const n = xe(r.current, t);
1137
+ const n = ke(r.current, t);
1135
1138
  return N.forEach((u) => window.addEventListener(u, n)), () => {
1136
1139
  N.forEach(
1137
1140
  (u) => window.removeEventListener(u, n)
1138
1141
  );
1139
1142
  };
1140
1143
  }, [t]);
1141
- }, Jt = (e, t) => {
1144
+ }, ur = (e, t) => {
1142
1145
  const [r, n] = v(!1), { rootMargin: u, root: o, threshold: i } = t || {}, l = T(() => new IntersectionObserver(
1143
1146
  ([s]) => n(s.isIntersecting),
1144
1147
  {
@@ -1150,12 +1153,12 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++pt}`, jt = (e) => {
1150
1153
  return m(() => (e.current && l.observe(e.current), () => {
1151
1154
  l.disconnect();
1152
1155
  }), [l, e]), r;
1153
- }, Qt = (e) => {
1156
+ }, or = (e) => {
1154
1157
  const t = f(null);
1155
1158
  return m(() => {
1156
1159
  e && (typeof e == "function" ? e(t.current) : e.current = t.current);
1157
1160
  }), t;
1158
- }, er = (e, t, r = !0) => {
1161
+ }, sr = (e, t, r = !0) => {
1159
1162
  const [n, u] = v(e), o = f(null), i = p(
1160
1163
  (l, s = t) => {
1161
1164
  u(l), r && clearTimeout(o.current), o.current = setTimeout(() => u(e), s);
@@ -1165,30 +1168,30 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++pt}`, jt = (e) => {
1165
1168
  return m(() => () => {
1166
1169
  clearTimeout(o.current);
1167
1170
  }, []), [n, i];
1168
- }, tr = () => T(() => /* @__PURE__ */ new Date(), []), rr = (e) => (t, r) => e(t).localeCompare(e(r)), nr = (e) => (t, r) => e(t) - e(r), ur = (e) => {
1171
+ }, ir = () => T(() => /* @__PURE__ */ new Date(), []), cr = (e) => (t, r) => e(t).localeCompare(e(r)), ar = (e) => (t, r) => e(t) - e(r), lr = (e) => {
1169
1172
  throw new Error(`Switch unhandled case: ${e}`);
1170
- }, or = (e, t) => t, sr = (e) => Object.keys(e).filter((t) => e[t]), ir = (e) => {
1173
+ }, dr = (e, t) => t, pr = (e) => Object.keys(e).filter((t) => e[t]), mr = (e) => {
1171
1174
  try {
1172
1175
  const t = parseFloat(e);
1173
1176
  return isNaN(t) || t == null ? void 0 : t;
1174
1177
  } catch {
1175
1178
  }
1176
- }, cr = (e) => {
1179
+ }, hr = (e) => {
1177
1180
  try {
1178
1181
  const t = parseInt(e, 10);
1179
1182
  return isNaN(t) || t == null ? void 0 : t;
1180
1183
  } catch {
1181
1184
  }
1182
1185
  };
1183
- function ar(e, t) {
1186
+ function fr(e, t) {
1184
1187
  if (e == null)
1185
1188
  throw new Error("Invariant error: " + t);
1186
1189
  }
1187
- const lr = (e) => {
1188
- if (!Z(e) || e.type !== J) return !1;
1190
+ const gr = (e) => {
1191
+ if (!J(e) || e.type !== Q) return !1;
1189
1192
  const r = e.props.children;
1190
1193
  return Array.isArray(r) ? r.every(U) : U(r);
1191
- }, U = (e) => e == null || e === !1, dr = (e) => {
1194
+ }, U = (e) => e == null || e === !1, yr = (e) => {
1192
1195
  try {
1193
1196
  const t = new Intl.PluralRules(e);
1194
1197
  return (r) => t.select(r);
@@ -1206,69 +1209,72 @@ const lr = (e) => {
1206
1209
  }
1207
1210
  };
1208
1211
  }
1209
- }, pr = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
1212
+ }, vr = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
1210
1213
  export {
1211
1214
  j as AccessibleFontSizeContext,
1212
- Rt as AccessibleFontSizeProvider,
1213
- Nt as BlockKeyboardEvents,
1215
+ At as AccessibleFontSizeProvider,
1216
+ qt as BlockKeyboardEvents,
1214
1217
  w as Box,
1215
- kt as Clickable,
1216
- _t as Column,
1217
- Ht as HeaderText,
1218
- at as Heading,
1219
- St as Indent,
1220
- Dt as LargeText,
1221
- At as Lively,
1222
- Tt as Nest,
1223
- zt as P,
1224
- tt as Paragraph,
1225
- $t as ResizeAwareBox,
1226
- Ve as Row,
1227
- Pt as ScreenReaderOnlyText,
1228
- F as SeparatorLine,
1229
- xt as SeparatorText,
1230
- Ft as SmallText,
1231
- Mt as SmallerText,
1232
- Ct as Space,
1233
- Et as Spacing,
1234
- Ot as StandardText,
1235
- S as Text,
1236
- wt as Txt,
1218
+ St as Clickable,
1219
+ Et as Column,
1220
+ Vt as HeaderText,
1221
+ lt as Heading,
1222
+ Tt as Indent,
1223
+ Ut as LargeText,
1224
+ jt as ListItem,
1225
+ Ot as Lively,
1226
+ Lt as Nest,
1227
+ Wt as OrderedList,
1228
+ Mt as P,
1229
+ rt as Paragraph,
1230
+ Ct as ResizeAwareBox,
1231
+ Be as Row,
1232
+ Ft as ScreenReaderOnlyText,
1233
+ z as SeparatorLine,
1234
+ $t as SeparatorText,
1235
+ Dt as SmallText,
1236
+ Ht as SmallerText,
1237
+ Rt as Space,
1238
+ It as Spacing,
1239
+ Nt as StandardText,
1240
+ x as Text,
1241
+ _t as Txt,
1242
+ Bt as UnorderedList,
1237
1243
  C as booleanOrNumberToNumber,
1238
- nr as byNumberField,
1239
- rr as byStringField,
1240
- or as exhaustSwitchCase,
1241
- ur as exhaustSwitchCaseElseThrow,
1242
- Lt as getAriaProps,
1243
- Je as getDataProps,
1244
- We as getDimensionObject,
1245
- ar as invariant,
1246
- lr as isEmptyFragment,
1247
- ir as parseFloatElseUndefined,
1248
- cr as parseIntElseUndefined,
1249
- pr as pluralFormatter,
1250
- dr as selectPluralRule,
1251
- sr as truthyKeysAsList,
1252
- It as useAccessibleFontSizeContext,
1253
- Ut as useArraySet,
1254
- L as useBoolean,
1255
- Vt as useDebounce,
1256
- Bt as useDebouncedWrite,
1257
- Wt as useDelayedFalse,
1258
- jt as useDomId,
1259
- qe as useElementDimensions,
1260
- qt as useElementFocus,
1261
- I as useEventCallback,
1262
- $ as useEventListener,
1263
- Qt as useForwardedRef,
1264
- dt as useLatest,
1265
- Xt as useMouseIsEntered,
1266
- Gt as useMouseIsOver,
1267
- Yt as useMultiOnClickOutside,
1268
- Kt as useOnClickOutside,
1269
- Zt as useOnNoMouseMovement,
1270
- Jt as useOnScreen,
1271
- er as useTimeoutState,
1272
- tr as useToday
1244
+ ar as byNumberField,
1245
+ cr as byStringField,
1246
+ dr as exhaustSwitchCase,
1247
+ lr as exhaustSwitchCaseElseThrow,
1248
+ zt as getAriaProps,
1249
+ Qe as getDataProps,
1250
+ je as getDimensionObject,
1251
+ fr as invariant,
1252
+ gr as isEmptyFragment,
1253
+ mr as parseFloatElseUndefined,
1254
+ hr as parseIntElseUndefined,
1255
+ vr as pluralFormatter,
1256
+ yr as selectPluralRule,
1257
+ pr as truthyKeysAsList,
1258
+ Pt as useAccessibleFontSizeContext,
1259
+ Gt as useArraySet,
1260
+ A as useBoolean,
1261
+ Xt as useDebounce,
1262
+ Yt as useDebouncedWrite,
1263
+ Kt as useDelayedFalse,
1264
+ Zt as useDomId,
1265
+ Ge as useElementDimensions,
1266
+ Jt as useElementFocus,
1267
+ R as useEventCallback,
1268
+ S as useEventListener,
1269
+ or as useForwardedRef,
1270
+ ht as useLatest,
1271
+ er as useMouseIsEntered,
1272
+ Qt as useMouseIsOver,
1273
+ tr as useMultiOnClickOutside,
1274
+ rr as useOnClickOutside,
1275
+ nr as useOnNoMouseMovement,
1276
+ ur as useOnScreen,
1277
+ sr as useTimeoutState,
1278
+ ir as useToday
1273
1279
  };
1274
1280
  //# sourceMappingURL=index.es.js.map