@stenajs-webui/core 25.15.1 → 26.0.1

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,19 +1,19 @@
1
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";
2
+ import { jsx as a, jsxs as U, Fragment as O } from "react/jsx-runtime";
3
+ import Y, { forwardRef as g, useState as v, useCallback as p, useLayoutEffect as V, useRef as f, createContext as K, useEffect as m, useMemo as C, useContext as Z, isValidElement as J, Fragment as Q } from "react";
4
+ import E from "classnames";
5
5
  import L from "@emotion/styled";
6
- import { 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, system 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(
6
+ import { 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 ae, borderWidth as ce, 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, system as we } from "styled-system";
7
+ import { memoize as xe, pickBy as B, debounce as _e } from "lodash-es";
8
+ import './index.css';const ke = "_separatorLine_nzfcz_1", $e = {
9
+ separatorLine: ke
10
+ }, F = g(
11
11
  ({
12
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__ */ c(
16
+ }, u) => /* @__PURE__ */ a(
17
17
  "hr",
18
18
  {
19
19
  className: $e.separatorLine,
@@ -27,16 +27,16 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
27
27
  ref: u
28
28
  }
29
29
  )
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", $ = {
30
+ ), Se = "_text_1iisw_1", ze = "_standard_1iisw_24", Te = "_bold_1iisw_27", Ce = "_caption_1iisw_31", Ee = "_overline_1iisw_39", Ie = "_large_1iisw_48", Re = "_medium_1iisw_53", Le = "_small_1iisw_58", Ae = "_smaller_1iisw_63", $ = {
31
31
  text: Se,
32
- standard: Ee,
33
- bold: Ce,
34
- caption: Te,
35
- overline: Ie,
36
- large: Re,
37
- medium: Le,
38
- small: Ae,
39
- smaller: Pe
32
+ standard: ze,
33
+ bold: Te,
34
+ caption: Ce,
35
+ overline: Ee,
36
+ large: Ie,
37
+ medium: Re,
38
+ small: Le,
39
+ smaller: Ae
40
40
  }, x = g(
41
41
  ({
42
42
  children: e,
@@ -48,14 +48,14 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
48
48
  whiteSpace: i,
49
49
  wordBreak: l,
50
50
  textAlign: s = "left",
51
- overflow: a,
51
+ overflow: c,
52
52
  textOverflow: d,
53
53
  style: h,
54
54
  ...y
55
- }, b) => /* @__PURE__ */ c(
55
+ }, b) => /* @__PURE__ */ a(
56
56
  "span",
57
57
  {
58
- className: I($.text, $[t], $[r], n),
58
+ className: E($.text, $[t], $[r], n),
59
59
  ref: b,
60
60
  style: {
61
61
  color: u,
@@ -63,7 +63,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
63
63
  whiteSpace: i,
64
64
  wordBreak: l,
65
65
  textAlign: s,
66
- overflow: a,
66
+ overflow: c,
67
67
  textOverflow: d,
68
68
  ...h
69
69
  },
@@ -71,10 +71,10 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
71
71
  children: e
72
72
  }
73
73
  )
74
- ), _t = x, C = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, Oe = (e) => {
74
+ ), bt = x, T = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, Pe = (e) => {
75
75
  if (e !== 0)
76
76
  return `calc(${e} * var(--swui-metrics-space))`;
77
- }, F = (e) => Oe(C(e)), ze = {
77
+ }, M = (e) => Pe(T(e)), Oe = {
78
78
  // react props
79
79
  // https://github.com/facebook/react/blob/5495a7f24aef85ba6937truetrue1ce962673ca9f5fde6/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js
80
80
  children: !0,
@@ -561,7 +561,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
561
561
  for: !0,
562
562
  class: !0,
563
563
  autofocus: !0
564
- }, Fe = `^((${Object.keys(ze).join(
564
+ }, Fe = `^((${Object.keys(Oe).join(
565
565
  "|"
566
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
@@ -578,7 +578,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
578
578
  "height",
579
579
  "overflow",
580
580
  "display"
581
- ], Ue = (e) => Ne.includes(e), Ve = we({
581
+ ], je = (e) => Ne.includes(e), Ue = we({
582
582
  row: {
583
583
  property: "flexDirection",
584
584
  transform: (e) => e ? "row" : "column"
@@ -586,32 +586,32 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
586
586
  indent: {
587
587
  // @ts-expect-error Sets a CSS property.
588
588
  property: "--current-indent",
589
- transform: C
589
+ transform: T
590
590
  },
591
591
  spacing: {
592
592
  // @ts-expect-error Sets a CSS property.
593
593
  property: "--current-spacing",
594
- transform: C
594
+ transform: T
595
595
  },
596
596
  gap: {
597
597
  // @ts-expect-error Sets a CSS property.
598
598
  property: "--current-gap",
599
- transform: C
599
+ transform: T
600
600
  },
601
601
  columnGap: {
602
602
  property: "columnGap",
603
- transform: F
603
+ transform: M
604
604
  },
605
605
  rowGap: {
606
606
  property: "rowGap",
607
- transform: F
607
+ transform: M
608
608
  },
609
609
  shadow: {
610
610
  property: "boxShadow",
611
611
  transform: (e) => He[e] ?? e
612
612
  }
613
613
  }), w = L("div", {
614
- shouldForwardProp: (e) => typeof e == "string" ? Ue(e) ? !1 : De(e) : !1
614
+ shouldForwardProp: (e) => typeof e == "string" ? je(e) ? !1 : De(e) : !1
615
615
  })`
616
616
  --current-spacing: 0;
617
617
  --current-indent: 0;
@@ -619,7 +619,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
619
619
  box-sizing: border-box;
620
620
  display: flex;
621
621
  flex-direction: column;
622
- ${Ve};
622
+ ${Ue};
623
623
  ${ee};
624
624
  ${te};
625
625
  ${re};
@@ -628,8 +628,8 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
628
628
  ${oe};
629
629
  ${se};
630
630
  ${ie};
631
- ${ce};
632
631
  ${ae};
632
+ ${ce};
633
633
  ${le};
634
634
  ${de};
635
635
  ${pe};
@@ -660,15 +660,15 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
660
660
  ${({ focusWithinBackground: e }) => e ? `background: ${e};` : ""}
661
661
  ${({ focusWithinBorder: e }) => e ? `border: ${e};` : ""}
662
662
  }
663
- `, Be = g(
663
+ `, Ve = g(
664
664
  function(t, r) {
665
- return /* @__PURE__ */ c(w, { row: !0, ref: r, ...t });
665
+ return /* @__PURE__ */ a(w, { row: !0, ref: r, ...t });
666
666
  }
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`
667
+ ), wt = ({ children: e }) => /* @__PURE__ */ U(Ve, { alignItems: "center", gap: 2, children: [
668
+ /* @__PURE__ */ a(w, { flexGrow: 1, children: /* @__PURE__ */ a(F, {}) }),
669
+ typeof e == "string" ? /* @__PURE__ */ a(x, { children: e }) : e,
670
+ /* @__PURE__ */ a(w, { flexGrow: 1, children: /* @__PURE__ */ a(F, {}) })
671
+ ] }), Be = L.button`
672
672
  display: inline-block;
673
673
  user-select: none;
674
674
  border: 0;
@@ -691,7 +691,7 @@ import './index.css';const _e = "_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
- `, St = g(
694
+ `, xt = g(
695
695
  ({
696
696
  disableFocusHighlight: e,
697
697
  onClick: t,
@@ -702,13 +702,13 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
702
702
  opacityOnHover: i,
703
703
  disabled: l,
704
704
  children: s,
705
- background: a = "transparent",
705
+ background: c = "transparent",
706
706
  hoverBackground: d,
707
707
  focusBackground: h,
708
708
  type: y = "button",
709
709
  ...b
710
- }, k) => /* @__PURE__ */ c(
711
- We,
710
+ }, _) => /* @__PURE__ */ a(
711
+ Be,
712
712
  {
713
713
  opacityOnHover: i,
714
714
  title: n,
@@ -718,8 +718,8 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
718
718
  onDoubleClick: r,
719
719
  disableFocusHighlight: e,
720
720
  pointer: !!(t || r) && !o,
721
- ref: k,
722
- background: a,
721
+ ref: _,
722
+ background: c,
723
723
  hoverBackground: d,
724
724
  focusBackground: h,
725
725
  type: y,
@@ -727,11 +727,11 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
727
727
  children: s
728
728
  }
729
729
  )
730
- ), Et = g(
730
+ ), _t = g(
731
731
  function(t, r) {
732
- return /* @__PURE__ */ c(w, { ref: r, ...t });
732
+ return /* @__PURE__ */ a(w, { ref: r, ...t });
733
733
  }
734
- ), je = (e) => {
734
+ ), We = (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,
@@ -747,40 +747,40 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
747
747
  const [r, n] = v(), u = p(() => {
748
748
  window.requestAnimationFrame(() => {
749
749
  if (e.current) {
750
- const o = je(e.current);
750
+ const o = We(e.current);
751
751
  (!r || !qe(r, o)) && t && t(o), n(o);
752
752
  }
753
753
  });
754
754
  }, [e, r, n, t]);
755
- return B(() => {
755
+ return V(() => {
756
756
  u();
757
757
  }, [u]), {
758
758
  dimensions: r
759
759
  };
760
- }, Ct = g(
760
+ }, kt = g(
761
761
  function({ onResize: t, ...r }, n) {
762
762
  const u = f(null);
763
- return Ge(n ?? u, t), /* @__PURE__ */ c(w, { ...r, ref: n });
763
+ return Ge(n ?? u, t), /* @__PURE__ */ a(w, { ...r, ref: n });
764
764
  }
765
- ), Tt = g(function({ num: t = 1, ...r }, n) {
766
- return /* @__PURE__ */ c(w, { indent: t, ref: n, ...r });
767
- }), It = g(
765
+ ), $t = g(function({ num: t = 1, ...r }, n) {
766
+ return /* @__PURE__ */ a(w, { indent: t, ref: n, ...r });
767
+ }), St = g(
768
768
  function({ num: t = 1, ...r }, n) {
769
- return /* @__PURE__ */ c(w, { spacing: t, ref: n, ...r });
769
+ return /* @__PURE__ */ a(w, { spacing: t, ref: n, ...r });
770
770
  }
771
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
- `, Rt = ({
776
+ `, zt = ({
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__ */ c(
783
+ return /* @__PURE__ */ a(
784
784
  Xe,
785
785
  {
786
786
  style: {
@@ -790,28 +790,28 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
790
790
  }
791
791
  }
792
792
  );
793
- }, Lt = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ c(O, { children: r(e) }) : /* @__PURE__ */ c(O, { children: e }), j = K({
793
+ }, Tt = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ a(O, { children: r(e) }) : /* @__PURE__ */ a(O, { children: e }), W = K({
794
794
  isFontLarge: !1,
795
795
  fontSizeRatio: 1
796
- }), M = 12, At = ({ children: e }) => {
796
+ }), D = 12, Ct = ({ 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 a of s) {
803
- const d = a.contentRect.height;
804
- n(d > M), o(d / M);
802
+ for (const c of s) {
803
+ const d = c.contentRect.height;
804
+ n(d > D), o(d / D);
805
805
  }
806
806
  });
807
807
  return l.observe(t.current), () => l.disconnect();
808
808
  }, []);
809
- const i = T(
809
+ const i = C(
810
810
  () => ({ isFontLarge: r, fontSizeRatio: u }),
811
811
  [u, r]
812
812
  );
813
- return /* @__PURE__ */ V(j.Provider, { value: i, children: [
814
- /* @__PURE__ */ c(
813
+ return /* @__PURE__ */ U(W.Provider, { value: i, children: [
814
+ /* @__PURE__ */ a(
815
815
  "div",
816
816
  {
817
817
  ref: t,
@@ -829,20 +829,20 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
829
829
  ),
830
830
  e
831
831
  ] });
832
- }, Pt = () => {
833
- const e = Z(j);
832
+ }, Et = () => {
833
+ const e = Z(W);
834
834
  return e || {
835
835
  isFontLarge: !1,
836
836
  fontSizeRatio: 1
837
837
  };
838
838
  }, Ye = "_lively_1k3wm_6", Ke = {
839
839
  lively: Ye
840
- }, Ot = g(function({ politeness: t = "polite", className: r, children: n, ...u }, o) {
841
- return /* @__PURE__ */ c(
840
+ }, It = g(function({ politeness: t = "polite", className: r, children: n, ...u }, o) {
841
+ return /* @__PURE__ */ a(
842
842
  "div",
843
843
  {
844
844
  ref: o,
845
- className: I(Ke.lively, r),
845
+ className: E(Ke.lively, r),
846
846
  "aria-live": t,
847
847
  ...u,
848
848
  children: n
@@ -850,10 +850,10 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
850
850
  );
851
851
  }), Ze = "_visuallyHidden_1gevf_1", Je = {
852
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 = ({
853
+ }, Qe = (e) => B(e, et), Rt = (e) => B(e, tt), et = (e, t) => t.startsWith("data-") || t.startsWith("aria-"), tt = (e, t) => t.startsWith("aria-"), Lt = ({
854
854
  children: e,
855
855
  ...t
856
- }) => /* @__PURE__ */ c("span", { className: Je.visuallyHidden, ...Qe(t), children: e }), rt = g(
856
+ }) => /* @__PURE__ */ a("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 _e = "_separatorLine_nzfcz_1", $e = {
864
864
  whiteSpace: i,
865
865
  wordBreak: l,
866
866
  textAlign: s = "left",
867
- overflow: a,
867
+ overflow: c,
868
868
  textOverflow: d,
869
869
  style: h,
870
870
  ...y
871
- }, b) => /* @__PURE__ */ c(
871
+ }, b) => /* @__PURE__ */ a(
872
872
  "p",
873
873
  {
874
- className: I($.text, $[t], $[r], n),
874
+ className: E($.text, $[t], $[r], n),
875
875
  ref: b,
876
876
  style: {
877
877
  color: u,
@@ -879,7 +879,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
879
879
  whiteSpace: i,
880
880
  wordBreak: l,
881
881
  textAlign: s,
882
- overflow: a,
882
+ overflow: c,
883
883
  textOverflow: d,
884
884
  ...h
885
885
  },
@@ -887,42 +887,59 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
887
887
  children: e
888
888
  }
889
889
  )
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 = {
890
+ ), At = rt, Pt = (e) => /* @__PURE__ */ a(x, { size: "small", ...e }), Ot = (e) => /* @__PURE__ */ a(x, { size: "smaller", ...e }), Ft = (e) => /* @__PURE__ */ a(x, { size: "medium", ...e }), Mt = (e) => /* @__PURE__ */ a(x, { size: "large", ...e }), nt = "_heading_18j6t_1", ut = "_display_18j6t_110", I = {
891
891
  heading: nt,
892
- h1: ut,
893
- h2: ot,
894
- h3: st,
895
- h4: it,
896
- h5: ct,
897
- h6: at
898
- }, lt = g(
892
+ "size-xs": "_size-xs_18j6t_25",
893
+ "size-s": "_size-s_18j6t_37",
894
+ "size-m": "_size-m_18j6t_49",
895
+ "size-l": "_size-l_18j6t_61",
896
+ "size-xl": "_size-xl_18j6t_73",
897
+ "size-2xl": "_size-2xl_18j6t_85",
898
+ "size-3xl": "_size-3xl_18j6t_97",
899
+ "size-4xl": "_size-4xl_18j6t_103",
900
+ display: ut
901
+ }, ot = {
902
+ h1: "2xl",
903
+ h2: "xl",
904
+ h3: "l",
905
+ h4: "m",
906
+ h5: "s",
907
+ h6: "xs",
908
+ span: "l"
909
+ }, st = g(
899
910
  ({
900
- variant: e = "h3",
901
- className: t,
902
- color: r,
903
- whiteSpace: n,
904
- wordBreak: u,
905
- style: o,
906
- children: i,
907
- as: l,
908
- ...s
909
- }, a) => /* @__PURE__ */ c(
910
- l ?? e,
911
+ as: e = "h3",
912
+ variant: t = "default",
913
+ size: r = ot[e],
914
+ className: n,
915
+ color: u,
916
+ whiteSpace: o,
917
+ wordBreak: i,
918
+ style: l,
919
+ children: s,
920
+ ...c
921
+ }, d) => /* @__PURE__ */ a(
922
+ e,
911
923
  {
912
- className: I(D.heading, D[e], t),
913
- style: { color: r, whiteSpace: n, wordBreak: u, ...o },
914
- ref: a,
915
- ...s,
916
- children: i
924
+ className: E(
925
+ I.heading,
926
+ I[`size-${r}`],
927
+ t === "display" && I.display,
928
+ n
929
+ ),
930
+ style: { color: u, whiteSpace: o, wordBreak: i, ...l },
931
+ ref: d,
932
+ ...c,
933
+ children: s
917
934
  }
918
935
  )
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 = ({
936
+ ), Dt = ({ as: e = "h2", ...t }) => /* @__PURE__ */ a(st, { as: e, size: "xl", ...t }), it = "_ol_25p86_1", at = "_ul_25p86_2", q = {
937
+ ol: it,
938
+ ul: at
939
+ }, Ht = ({ children: e }) => /* @__PURE__ */ a("ul", { className: q.ul, children: e }), Nt = ({
923
940
  children: e,
924
941
  start: t
925
- }) => /* @__PURE__ */ c("ol", { className: q.ol, start: t, children: e }), jt = ({ children: e }) => /* @__PURE__ */ c("li", { children: typeof e == "string" ? /* @__PURE__ */ c(x, { children: e }) : e }), qt = ({
942
+ }) => /* @__PURE__ */ a("ol", { className: q.ol, start: t, children: e }), jt = ({ children: e }) => /* @__PURE__ */ a("li", { children: typeof e == "string" ? /* @__PURE__ */ a(x, { children: e }) : e }), Ut = ({
926
943
  blockedKeys: e,
927
944
  blockMouse: t = !1,
928
945
  ...r
@@ -938,7 +955,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
938
955
  },
939
956
  [t]
940
957
  );
941
- return /* @__PURE__ */ c(
958
+ return /* @__PURE__ */ a(
942
959
  w,
943
960
  {
944
961
  ...r,
@@ -948,28 +965,28 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
948
965
  onMouseUp: u
949
966
  }
950
967
  );
951
- }, mt = (e, t) => e === t, Gt = (e, t, r = mt) => {
968
+ }, ct = (e, t) => e === t, Vt = (e, t, r = ct) => {
952
969
  const n = p(
953
970
  (s) => {
954
- e.some((a) => r(a, s)) || t([...e, s]);
971
+ e.some((c) => r(c, s)) || t([...e, s]);
955
972
  },
956
973
  [e, t, r]
957
974
  ), u = p(
958
975
  (s) => {
959
976
  t(
960
- s.reduce((a, d) => a.some((h) => r(h, d)) ? a : [...a, d], e)
977
+ s.reduce((c, d) => c.some((h) => r(h, d)) ? c : [...c, d], e)
961
978
  );
962
979
  },
963
980
  [e, t, r]
964
981
  ), o = p(
965
982
  (s) => {
966
- const a = e.findIndex((d) => r(d, s));
967
- a >= 0 && t(e.filter((d, h) => h !== a));
983
+ const c = e.findIndex((d) => r(d, s));
984
+ c >= 0 && t(e.filter((d, h) => h !== c));
968
985
  },
969
986
  [e, t, r]
970
987
  ), i = p(
971
988
  (s) => {
972
- t(e.filter((a) => !s.some((d) => r(d, a))));
989
+ t(e.filter((c) => !s.some((d) => r(d, c))));
973
990
  },
974
991
  [e, t, r]
975
992
  ), l = p(
@@ -994,7 +1011,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
994
1011
  r((i) => !i);
995
1012
  }, [r]);
996
1013
  return [t, n, u, o];
997
- }, Xt = (e, t) => {
1014
+ }, Bt = (e, t) => {
998
1015
  const [r, n] = v(e);
999
1016
  return m(() => {
1000
1017
  const u = setTimeout(() => {
@@ -1006,26 +1023,26 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
1006
1023
  }, [e, t]), r;
1007
1024
  }, R = (e) => {
1008
1025
  const t = f(e);
1009
- return B(() => {
1026
+ return V(() => {
1010
1027
  t.current = e;
1011
1028
  }), p((...r) => {
1012
1029
  const { current: n } = t;
1013
1030
  return n(...r);
1014
1031
  }, []);
1015
- }, ht = (e) => {
1032
+ }, lt = (e) => {
1016
1033
  const t = Y.useRef(e);
1017
1034
  return t.current = e, t;
1018
- }, Yt = (e, { delay: t, onError: r, onSettled: n }) => {
1035
+ }, Wt = (e, { delay: t, onError: r, onSettled: n }) => {
1019
1036
  const u = R(e), o = R(
1020
- (_, E) => r?.(_, E)
1021
- ), i = R(() => n?.()), l = ht(t), s = f(null), a = f(null), d = f(null), h = p(() => {
1022
- a.current != null && (clearTimeout(a.current), a.current = null);
1037
+ (k, z) => r?.(k, z)
1038
+ ), i = R(() => n?.()), l = lt(t), s = f(null), c = f(null), d = f(null), h = p(() => {
1039
+ c.current != null && (clearTimeout(c.current), c.current = null);
1023
1040
  }, []), y = p(() => {
1024
1041
  if (d.current != null)
1025
1042
  return d.current;
1026
1043
  if (s.current == null)
1027
1044
  return Promise.resolve();
1028
- const _ = async () => {
1045
+ const k = async () => {
1029
1046
  try {
1030
1047
  for (; s.current != null; ) {
1031
1048
  const { value: P } = s.current;
@@ -1039,23 +1056,23 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
1039
1056
  } finally {
1040
1057
  d.current = null, i();
1041
1058
  }
1042
- }, E = Promise.resolve().then(_);
1043
- return d.current = E, E;
1059
+ }, z = Promise.resolve().then(k);
1060
+ return d.current = z, z;
1044
1061
  }, [h, u, o, i]), b = p(
1045
- (_) => {
1046
- s.current = { value: _ }, h(), a.current = setTimeout(() => {
1047
- a.current = null, y();
1062
+ (k) => {
1063
+ s.current = { value: k }, h(), c.current = setTimeout(() => {
1064
+ c.current = null, y();
1048
1065
  }, l.current);
1049
1066
  },
1050
1067
  [h, y, l]
1051
- ), k = p(() => {
1068
+ ), _ = p(() => {
1052
1069
  h(), s.current = null;
1053
1070
  }, [h]);
1054
- return m(() => k, [k]), T(
1055
- () => ({ schedule: b, flush: y, cancel: k }),
1056
- [b, y, k]
1071
+ return m(() => _, [_]), C(
1072
+ () => ({ schedule: b, flush: y, cancel: _ }),
1073
+ [b, y, _]
1057
1074
  );
1058
- }, Kt = (e, t) => {
1075
+ }, qt = (e, t) => {
1059
1076
  const [r, n] = v(e);
1060
1077
  return m(() => {
1061
1078
  e && n(!0);
@@ -1067,8 +1084,8 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
1067
1084
  };
1068
1085
  }, [e, t]), r;
1069
1086
  };
1070
- let ft = 0;
1071
- const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
1087
+ let dt = 0;
1088
+ const H = (e) => `webui-${e ? e + "-" : ""}${++dt}`, Gt = (e) => {
1072
1089
  const [t, r] = v(() => H(e));
1073
1090
  return m(() => r(H(e)), [e]), t;
1074
1091
  }, S = (e, t, r) => {
@@ -1088,7 +1105,7 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
1088
1105
  i && i.removeEventListener(t, o);
1089
1106
  };
1090
1107
  }, [t, e]);
1091
- }, Jt = (e) => {
1108
+ }, Xt = (e) => {
1092
1109
  const [t, r, n] = A(!1);
1093
1110
  m(() => {
1094
1111
  document.activeElement === e.current ? r() : n();
@@ -1099,13 +1116,13 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
1099
1116
  e.current && e.current.blur();
1100
1117
  }, [e]);
1101
1118
  return { isInFocus: t, focus: u, blur: o };
1102
- }, Qt = (e) => {
1119
+ }, Yt = (e) => {
1103
1120
  const [t, r, n] = A(!1);
1104
1121
  return S(e, "mouseover", r), S(e, "mouseout", n), t;
1105
- }, er = (e) => {
1122
+ }, Kt = (e) => {
1106
1123
  const [t, r, n] = A(!1);
1107
1124
  return S(e, "mouseenter", r), S(e, "mouseleave", n), t;
1108
- }, tr = (e, t) => {
1125
+ }, Zt = (e, t) => {
1109
1126
  const r = f(() => {
1110
1127
  });
1111
1128
  m(() => {
@@ -1118,7 +1135,7 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
1118
1135
  document.removeEventListener("mousedown", n), document.removeEventListener("touchstart", n);
1119
1136
  };
1120
1137
  }, [...e]);
1121
- }, rr = (e, t, r) => {
1138
+ }, Jt = (e, t, r) => {
1122
1139
  const n = f(() => {
1123
1140
  });
1124
1141
  m(() => {
@@ -1131,21 +1148,21 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
1131
1148
  document.removeEventListener("mousedown", u, r), document.removeEventListener("touchstart", u, r);
1132
1149
  };
1133
1150
  }, [e, r]);
1134
- }, N = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], nr = (e, t) => {
1151
+ }, N = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], Qt = (e, t) => {
1135
1152
  const r = f(() => {
1136
1153
  });
1137
1154
  m(() => {
1138
1155
  r.current = e;
1139
1156
  }, [e]), m(() => {
1140
- const n = ke(r.current, t);
1157
+ const n = _e(r.current, t);
1141
1158
  return N.forEach((u) => window.addEventListener(u, n)), () => {
1142
1159
  N.forEach(
1143
1160
  (u) => window.removeEventListener(u, n)
1144
1161
  );
1145
1162
  };
1146
1163
  }, [t]);
1147
- }, ur = (e, t) => {
1148
- const [r, n] = v(!1), { rootMargin: u, root: o, threshold: i } = t || {}, l = T(() => new IntersectionObserver(
1164
+ }, er = (e, t) => {
1165
+ const [r, n] = v(!1), { rootMargin: u, root: o, threshold: i } = t || {}, l = C(() => new IntersectionObserver(
1149
1166
  ([s]) => n(s.isIntersecting),
1150
1167
  {
1151
1168
  rootMargin: u,
@@ -1156,12 +1173,12 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
1156
1173
  return m(() => (e.current && l.observe(e.current), () => {
1157
1174
  l.disconnect();
1158
1175
  }), [l, e]), r;
1159
- }, or = (e) => {
1176
+ }, tr = (e) => {
1160
1177
  const t = f(null);
1161
1178
  return m(() => {
1162
1179
  e && (typeof e == "function" ? e(t.current) : e.current = t.current);
1163
1180
  }), t;
1164
- }, sr = (e, t, r = !0) => {
1181
+ }, rr = (e, t, r = !0) => {
1165
1182
  const [n, u] = v(e), o = f(null), i = p(
1166
1183
  (l, s = t) => {
1167
1184
  u(l), r && clearTimeout(o.current), o.current = setTimeout(() => u(e), s);
@@ -1171,30 +1188,30 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
1171
1188
  return m(() => () => {
1172
1189
  clearTimeout(o.current);
1173
1190
  }, []), [n, i];
1174
- }, ir = () => T(() => /* @__PURE__ */ new Date(), []), cr = (e) => (t, r) => e(t).localeCompare(e(r)), ar = (e) => (t, r) => e(t) - e(r), lr = (e) => {
1191
+ }, nr = () => C(() => /* @__PURE__ */ new Date(), []), ur = (e) => (t, r) => e(t).localeCompare(e(r)), or = (e) => (t, r) => e(t) - e(r), sr = (e) => {
1175
1192
  throw new Error(`Switch unhandled case: ${e}`);
1176
- }, dr = (e, t) => t, pr = (e) => Object.keys(e).filter((t) => e[t]), mr = (e) => {
1193
+ }, ir = (e, t) => t, ar = (e) => Object.keys(e).filter((t) => e[t]), cr = (e) => {
1177
1194
  try {
1178
1195
  const t = parseFloat(e);
1179
1196
  return isNaN(t) || t == null ? void 0 : t;
1180
1197
  } catch {
1181
1198
  }
1182
- }, hr = (e) => {
1199
+ }, lr = (e) => {
1183
1200
  try {
1184
1201
  const t = parseInt(e, 10);
1185
1202
  return isNaN(t) || t == null ? void 0 : t;
1186
1203
  } catch {
1187
1204
  }
1188
1205
  };
1189
- function fr(e, t) {
1206
+ function dr(e, t) {
1190
1207
  if (e == null)
1191
1208
  throw new Error("Invariant error: " + t);
1192
1209
  }
1193
- const gr = (e) => {
1210
+ const pr = (e) => {
1194
1211
  if (!J(e) || e.type !== Q) return !1;
1195
1212
  const r = e.props.children;
1196
- return Array.isArray(r) ? r.every(U) : U(r);
1197
- }, U = (e) => e == null || e === !1, yr = (e) => {
1213
+ return Array.isArray(r) ? r.every(j) : j(r);
1214
+ }, j = (e) => e == null || e === !1, mr = (e) => {
1198
1215
  try {
1199
1216
  const t = new Intl.PluralRules(e);
1200
1217
  return (r) => t.select(r);
@@ -1212,72 +1229,72 @@ const gr = (e) => {
1212
1229
  }
1213
1230
  };
1214
1231
  }
1215
- }, vr = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
1232
+ }, hr = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
1216
1233
  export {
1217
- j as AccessibleFontSizeContext,
1218
- At as AccessibleFontSizeProvider,
1219
- qt as BlockKeyboardEvents,
1234
+ W as AccessibleFontSizeContext,
1235
+ Ct as AccessibleFontSizeProvider,
1236
+ Ut as BlockKeyboardEvents,
1220
1237
  w as Box,
1221
- St as Clickable,
1222
- Et as Column,
1223
- Vt as HeaderText,
1224
- lt as Heading,
1225
- Tt as Indent,
1226
- Ut as LargeText,
1238
+ xt as Clickable,
1239
+ _t as Column,
1240
+ Dt as HeaderText,
1241
+ st as Heading,
1242
+ $t as Indent,
1243
+ Mt as LargeText,
1227
1244
  jt as ListItem,
1228
- Ot as Lively,
1229
- Lt as Nest,
1230
- Wt as OrderedList,
1231
- Mt as P,
1245
+ It as Lively,
1246
+ Tt as Nest,
1247
+ Nt as OrderedList,
1248
+ At as P,
1232
1249
  rt as Paragraph,
1233
- Ct as ResizeAwareBox,
1234
- Be as Row,
1235
- Ft as ScreenReaderOnlyText,
1236
- z as SeparatorLine,
1237
- $t as SeparatorText,
1238
- Dt as SmallText,
1239
- Ht as SmallerText,
1240
- Rt as Space,
1241
- It as Spacing,
1242
- Nt as StandardText,
1250
+ kt as ResizeAwareBox,
1251
+ Ve as Row,
1252
+ Lt as ScreenReaderOnlyText,
1253
+ F as SeparatorLine,
1254
+ wt as SeparatorText,
1255
+ Pt as SmallText,
1256
+ Ot as SmallerText,
1257
+ zt as Space,
1258
+ St as Spacing,
1259
+ Ft as StandardText,
1243
1260
  x as Text,
1244
- _t as Txt,
1245
- Bt as UnorderedList,
1246
- C as booleanOrNumberToNumber,
1247
- ar as byNumberField,
1248
- cr as byStringField,
1249
- dr as exhaustSwitchCase,
1250
- lr as exhaustSwitchCaseElseThrow,
1251
- zt as getAriaProps,
1261
+ bt as Txt,
1262
+ Ht as UnorderedList,
1263
+ T as booleanOrNumberToNumber,
1264
+ or as byNumberField,
1265
+ ur as byStringField,
1266
+ ir as exhaustSwitchCase,
1267
+ sr as exhaustSwitchCaseElseThrow,
1268
+ Rt as getAriaProps,
1252
1269
  Qe as getDataProps,
1253
- je as getDimensionObject,
1254
- fr as invariant,
1255
- gr as isEmptyFragment,
1256
- mr as parseFloatElseUndefined,
1257
- hr as parseIntElseUndefined,
1258
- vr as pluralFormatter,
1259
- yr as selectPluralRule,
1260
- pr as truthyKeysAsList,
1261
- Pt as useAccessibleFontSizeContext,
1262
- Gt as useArraySet,
1270
+ We as getDimensionObject,
1271
+ dr as invariant,
1272
+ pr as isEmptyFragment,
1273
+ cr as parseFloatElseUndefined,
1274
+ lr as parseIntElseUndefined,
1275
+ hr as pluralFormatter,
1276
+ mr as selectPluralRule,
1277
+ ar as truthyKeysAsList,
1278
+ Et as useAccessibleFontSizeContext,
1279
+ Vt as useArraySet,
1263
1280
  A as useBoolean,
1264
- Xt as useDebounce,
1265
- Yt as useDebouncedWrite,
1266
- Kt as useDelayedFalse,
1267
- Zt as useDomId,
1281
+ Bt as useDebounce,
1282
+ Wt as useDebouncedWrite,
1283
+ qt as useDelayedFalse,
1284
+ Gt as useDomId,
1268
1285
  Ge as useElementDimensions,
1269
- Jt as useElementFocus,
1286
+ Xt as useElementFocus,
1270
1287
  R as useEventCallback,
1271
1288
  S as useEventListener,
1272
- or as useForwardedRef,
1273
- ht as useLatest,
1274
- er as useMouseIsEntered,
1275
- Qt as useMouseIsOver,
1276
- tr as useMultiOnClickOutside,
1277
- rr as useOnClickOutside,
1278
- nr as useOnNoMouseMovement,
1279
- ur as useOnScreen,
1280
- sr as useTimeoutState,
1281
- ir as useToday
1289
+ tr as useForwardedRef,
1290
+ lt as useLatest,
1291
+ Kt as useMouseIsEntered,
1292
+ Yt as useMouseIsOver,
1293
+ Zt as useMultiOnClickOutside,
1294
+ Jt as useOnClickOutside,
1295
+ Qt as useOnNoMouseMovement,
1296
+ er as useOnScreen,
1297
+ rr as useTimeoutState,
1298
+ nr as useToday
1282
1299
  };
1283
1300
  //# sourceMappingURL=index.es.js.map