@stenajs-webui/core 23.12.9 → 23.12.11

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,23 +1,23 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._separatorLine_nzfcz_1{display:flex;border:0;margin:0;flex:none}._visuallyHidden_1gevf_1{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}._text_1iisw_1{--swui-text-color: var(--swui-text-primary-color);--swui-text-color-caption: var(--lhds-color-ui-600);--swui-text-color-overline: var(--lhds-color-ui-600);--swui-text-font-family: var(--swui-font-primary);--swui-text-font-weight: var(--swui-font-weight-text);--current-color: var(--swui-text-color);--current-font-size: var(--swui-font-size-medium);--current-line-height: var(--swui-line-height-medium);--current-font-weight: var(--swui-text-font-weight);--current-letter-spacing: var(--swui-text-letter-spacing);font-size:var(--current-font-size);line-height:var(--current-line-height);color:var(--current-color);letter-spacing:var(--current-letter-spacing);font-family:var(--swui-text-font-family);font-weight:var(--current-font-weight)}._text_1iisw_1._bold_1iisw_27{--current-font-weight: var(--swui-font-weight-text-bold)}._text_1iisw_1._caption_1iisw_31{--current-font-size: var(--swui-font-size-small);--current-line-height: var(--swui-line-height-small);--current-color: var(--swui-text-color-caption);--current-letter-spacing: 0;font-style:italic}._text_1iisw_1._overline_1iisw_39{--current-font-size: var(--swui-font-size-smaller);--current-line-height: var(--swui-line-height-smaller);--current-color: var(--swui-text-color-overline);--current-font-weight: var(--swui-font-weight-text-bold);--current-letter-spacing: .1rem;text-transform:uppercase}._text_1iisw_1._large_1iisw_48{--current-font-size: var(--swui-font-size-large);--current-line-height: var(--swui-line-height-large)}._text_1iisw_1._medium_1iisw_53{--current-font-size: var(--swui-font-size-medium);--current-line-height: var(--swui-line-height-medium)}._text_1iisw_1._small_1iisw_58{--current-font-size: var(--swui-font-size-small);--current-line-height: var(--swui-line-height-small)}._text_1iisw_1._smaller_1iisw_63{--current-font-size: var(--swui-font-size-smaller);--current-line-height: var(--swui-line-height-smaller)}._heading_1cnsg_1{font-size:2rem;color:var(--swui-text-primary-color);letter-spacing:0;margin:0;line-height:var(--swui-line-height);font-family:var(--swui-font-primary);font-weight:var(--swui-font-weight-text-bold)}._heading_1cnsg_1._h1_1cnsg_10{font-size:2.8rem}._heading_1cnsg_1._h2_1cnsg_14{font-size:2.4rem}._heading_1cnsg_1._h3_1cnsg_18{font-size:2rem}._heading_1cnsg_1._h4_1cnsg_22{font-size:1.8rem}._heading_1cnsg_1._h5_1cnsg_26{font-size:1.6rem}._heading_1cnsg_1._h6_1cnsg_30{font-size:1.4rem}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
- import { cssColor as N } from "@stenajs-webui/theme";
3
- import { jsx as l, Fragment as R, jsxs as U } from "react/jsx-runtime";
4
- import V, { forwardRef as h, useState as g, useCallback as m, useLayoutEffect as M, useRef as y, createContext as B, useEffect as p, useMemo as S, useContext as j, isValidElement as q, Fragment as W } from "react";
5
- import E from "@emotion/styled";
6
- import { system as X, background as G, border as Y, borderRight as K, borderLeft as Z, borderTop as J, borderBottom as Q, borderColor as ee, borderRadius as te, borderStyle as re, borderWidth as ne, boxShadow as ue, flexbox as oe, overflow as se, position as ie, layout as ae, zIndex as ce, left as le, right as de, top as pe, bottom as me } from "styled-system";
7
- import { memoize as he, pickBy as O, debounce as fe } from "lodash-es";
8
- import C from "classnames";
9
- const ge = "_separatorLine_nzfcz_1", ye = {
10
- separatorLine: ge
11
- }, dt = h(
2
+ import { cssColor as U } from "@stenajs-webui/theme";
3
+ import { jsx as l, Fragment as R, jsxs as V } from "react/jsx-runtime";
4
+ import B, { forwardRef as h, useState as g, useCallback as m, useLayoutEffect as M, useRef as y, isValidElement as O, cloneElement as j, createContext as q, useEffect as p, useMemo as E, useContext as W, Fragment as X } from "react";
5
+ import C from "@emotion/styled";
6
+ import { system as G, background as Y, border as K, borderRight as Z, borderLeft as J, borderTop as Q, borderBottom as ee, borderColor as te, borderRadius as re, borderStyle as ne, borderWidth as ue, boxShadow as oe, flexbox as se, overflow as ie, position as ae, layout as ce, zIndex as le, left as de, right as pe, top as me, bottom as he } from "styled-system";
7
+ import { memoize as fe, pickBy as H, debounce as ge } from "lodash-es";
8
+ import S from "classnames";
9
+ const ye = "_separatorLine_nzfcz_1", ve = {
10
+ separatorLine: ye
11
+ }, pt = h(
12
12
  ({
13
- color: e = N("--lhds-color-ui-300"),
13
+ color: e = U("--lhds-color-ui-300"),
14
14
  size: t = "100%",
15
15
  width: r = "1px",
16
16
  vertical: n = !1
17
17
  }, u) => /* @__PURE__ */ l(
18
18
  "hr",
19
19
  {
20
- className: ye.separatorLine,
20
+ className: ve.separatorLine,
21
21
  "aria-hidden": !0,
22
22
  color: e,
23
23
  style: {
@@ -28,7 +28,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
28
28
  ref: u
29
29
  }
30
30
  )
31
- ), ve = E.button`
31
+ ), be = C.button`
32
32
  display: inline-block;
33
33
  user-select: none;
34
34
  border: 0;
@@ -51,7 +51,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
51
51
  ${({ width: e }) => e ? `width: ${e};` : ""}
52
52
  ${({ height: e }) => e ? `height: ${e};` : ""}
53
53
  ${({ borderRadius: e }) => e ? `border-radius: ${e};` : ""}
54
- `, pt = h(
54
+ `, mt = h(
55
55
  ({
56
56
  disableFocusHighlight: e,
57
57
  onClick: t,
@@ -67,8 +67,8 @@ const ge = "_separatorLine_nzfcz_1", ye = {
67
67
  focusBackground: f,
68
68
  type: x = "button",
69
69
  ...k
70
- }, D) => /* @__PURE__ */ l(
71
- ve,
70
+ }, N) => /* @__PURE__ */ l(
71
+ be,
72
72
  {
73
73
  opacityOnHover: s,
74
74
  title: n,
@@ -78,7 +78,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
78
78
  onDoubleClick: r,
79
79
  disableFocusHighlight: e,
80
80
  pointer: !!(t || r) && !o,
81
- ref: D,
81
+ ref: N,
82
82
  background: c,
83
83
  hoverBackground: d,
84
84
  focusBackground: f,
@@ -87,10 +87,10 @@ const ge = "_separatorLine_nzfcz_1", ye = {
87
87
  children: i
88
88
  }
89
89
  )
90
- ), $ = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, be = (e) => {
90
+ ), $ = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, we = (e) => {
91
91
  if (e !== 0)
92
92
  return `calc(${e} * var(--swui-metrics-space))`;
93
- }, I = (e) => be($(e)), we = {
93
+ }, I = (e) => we($(e)), xe = {
94
94
  // react props
95
95
  // https://github.com/facebook/react/blob/5495a7f24aef85ba6937truetrue1ce962673ca9f5fde6/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js
96
96
  children: !0,
@@ -577,16 +577,16 @@ const ge = "_separatorLine_nzfcz_1", ye = {
577
577
  for: !0,
578
578
  class: !0,
579
579
  autofocus: !0
580
- }, xe = `^((${Object.keys(we).join(
580
+ }, ke = `^((${Object.keys(xe).join(
581
581
  "|"
582
- )})|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$`, ke = new RegExp(xe), _e = he(
583
- (e) => ke.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91
584
- ), $e = {
582
+ )})|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$`, _e = new RegExp(ke), $e = fe(
583
+ (e) => _e.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91
584
+ ), Se = {
585
585
  box: "var(--swui-shadow-box)",
586
586
  popover: "var(--swui-shadow-popover)",
587
587
  modal: "var(--swui-shadow-modal)",
588
588
  bottom: "var(--swui-shadow-bottom)"
589
- }, Se = [
589
+ }, Ee = [
590
590
  "spacing",
591
591
  "indent",
592
592
  "gap",
@@ -594,7 +594,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
594
594
  "height",
595
595
  "overflow",
596
596
  "display"
597
- ], Ee = (e) => Se.includes(e), Ce = X({
597
+ ], Ce = (e) => Ee.includes(e), Te = G({
598
598
  row: {
599
599
  property: "flexDirection",
600
600
  transform: (e) => e ? "row" : "column"
@@ -624,10 +624,10 @@ const ge = "_separatorLine_nzfcz_1", ye = {
624
624
  },
625
625
  shadow: {
626
626
  property: "boxShadow",
627
- transform: (e) => $e[e] ?? e
627
+ transform: (e) => Se[e] ?? e
628
628
  }
629
- }), w = E("div", {
630
- shouldForwardProp: (e) => typeof e == "string" ? Ee(e) ? !1 : _e(e) : !1
629
+ }), w = C("div", {
630
+ shouldForwardProp: (e) => typeof e == "string" ? Ce(e) ? !1 : $e(e) : !1
631
631
  })`
632
632
  --current-spacing: 0;
633
633
  --current-indent: 0;
@@ -635,8 +635,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
635
635
  box-sizing: border-box;
636
636
  display: flex;
637
637
  flex-direction: column;
638
- ${Ce};
639
- ${G};
638
+ ${Te};
640
639
  ${Y};
641
640
  ${K};
642
641
  ${Z};
@@ -656,6 +655,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
656
655
  ${de};
657
656
  ${pe};
658
657
  ${me};
658
+ ${he};
659
659
 
660
660
  gap: calc(var(--current-gap) * var(--swui-metrics-space));
661
661
 
@@ -676,11 +676,11 @@ const ge = "_separatorLine_nzfcz_1", ye = {
676
676
  ${({ focusWithinBackground: e }) => e ? `background: ${e};` : ""}
677
677
  ${({ focusWithinBorder: e }) => e ? `border: ${e};` : ""}
678
678
  }
679
- `, mt = h(
679
+ `, ht = h(
680
680
  function(t, r) {
681
681
  return /* @__PURE__ */ l(w, { ref: r, ...t });
682
682
  }
683
- ), Te = (e) => {
683
+ ), Re = (e) => {
684
684
  const { x: t, y: r, width: n, height: u, bottom: o, top: s, left: a, right: i } = e.getBoundingClientRect();
685
685
  return {
686
686
  width: n,
@@ -692,12 +692,12 @@ const ge = "_separatorLine_nzfcz_1", ye = {
692
692
  right: i,
693
693
  bottom: o
694
694
  };
695
- }, Re = (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, Ie = (e, t) => {
695
+ }, Ie = (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, Ae = (e, t) => {
696
696
  const [r, n] = g(), u = m(() => {
697
697
  window.requestAnimationFrame(() => {
698
698
  if (e.current) {
699
- const o = Te(e.current);
700
- (!r || !Re(r, o)) && t && t(o), n(o);
699
+ const o = Re(e.current);
700
+ (!r || !Ie(r, o)) && t && t(o), n(o);
701
701
  }
702
702
  });
703
703
  }, [e, r, n, t]);
@@ -706,27 +706,27 @@ const ge = "_separatorLine_nzfcz_1", ye = {
706
706
  }, [u]), {
707
707
  dimensions: r
708
708
  };
709
- }, ht = h(
709
+ }, ft = h(
710
710
  function({ onResize: t, ...r }, n) {
711
711
  const u = y(null);
712
- return Ie(n ?? u, t), /* @__PURE__ */ l(w, { ...r, ref: n });
712
+ return Ae(n ?? u, t), /* @__PURE__ */ l(w, { ...r, ref: n });
713
713
  }
714
- ), ft = h(
714
+ ), gt = h(
715
715
  function(t, r) {
716
716
  return /* @__PURE__ */ l(w, { row: !0, ref: r, ...t });
717
717
  }
718
- ), gt = h(function({ num: t = 1, ...r }, n) {
718
+ ), yt = h(function({ num: t = 1, ...r }, n) {
719
719
  return /* @__PURE__ */ l(w, { indent: t, ref: n, ...r });
720
- }), yt = h(
720
+ }), vt = h(
721
721
  function({ num: t = 1, ...r }, n) {
722
722
  return /* @__PURE__ */ l(w, { spacing: t, ref: n, ...r });
723
723
  }
724
- ), Ae = E.div`
724
+ ), Le = C.div`
725
725
  --current-size: 1;
726
726
  flex: none;
727
727
  width: calc(var(--current-size) * var(--swui-metrics-space));
728
728
  height: calc(var(--current-size) * var(--swui-metrics-space));
729
- `, vt = ({
729
+ `, bt = ({
730
730
  half: e = !1,
731
731
  horizontal: t = !1,
732
732
  num: r = 1,
@@ -734,7 +734,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
734
734
  }) => {
735
735
  const u = r * (e ? 0.5 : 1);
736
736
  return /* @__PURE__ */ l(
737
- Ae,
737
+ Le,
738
738
  {
739
739
  style: {
740
740
  "--current-size": u,
@@ -743,10 +743,28 @@ const ge = "_separatorLine_nzfcz_1", ye = {
743
743
  }
744
744
  }
745
745
  );
746
- }, bt = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ l(R, { children: r(e) }) : /* @__PURE__ */ l(R, { children: e }), H = B({
746
+ }, wt = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ l(R, { children: r(e) }) : /* @__PURE__ */ l(R, { children: e }), xt = h(
747
+ ({ children: e, ...t }, r) => {
748
+ if (!O(e))
749
+ return null;
750
+ const n = e.props;
751
+ return j(
752
+ e,
753
+ {
754
+ ...t,
755
+ ...n,
756
+ className: S(
757
+ t.className,
758
+ n.className
759
+ ),
760
+ ref: r
761
+ }
762
+ );
763
+ }
764
+ ), D = q({
747
765
  isFontLarge: !1,
748
766
  fontSizeRatio: 1
749
- }), A = 12, wt = ({ children: e }) => {
767
+ }), A = 12, kt = ({ children: e }) => {
750
768
  const t = y(null), [r, n] = g(!1), [u, o] = g(1);
751
769
  p(() => {
752
770
  if (!t.current)
@@ -759,11 +777,11 @@ const ge = "_separatorLine_nzfcz_1", ye = {
759
777
  });
760
778
  return a.observe(t.current), () => a.disconnect();
761
779
  }, []);
762
- const s = S(
780
+ const s = E(
763
781
  () => ({ isFontLarge: r, fontSizeRatio: u }),
764
782
  [u, r]
765
783
  );
766
- return /* @__PURE__ */ U(H.Provider, { value: s, children: [
784
+ return /* @__PURE__ */ V(D.Provider, { value: s, children: [
767
785
  /* @__PURE__ */ l(
768
786
  "div",
769
787
  {
@@ -782,27 +800,27 @@ const ge = "_separatorLine_nzfcz_1", ye = {
782
800
  ),
783
801
  e
784
802
  ] });
785
- }, xt = () => {
786
- const e = j(H);
803
+ }, _t = () => {
804
+ const e = W(D);
787
805
  return e || {
788
806
  isFontLarge: !1,
789
807
  fontSizeRatio: 1
790
808
  };
791
- }, Le = "_visuallyHidden_1gevf_1", Pe = {
792
- visuallyHidden: Le
793
- }, ze = (e) => O(e, Fe), kt = (e) => O(e, Me), Fe = (e, t) => t.startsWith("data-") || t.startsWith("aria-"), Me = (e, t) => t.startsWith("aria-"), _t = ({
809
+ }, Pe = "_visuallyHidden_1gevf_1", ze = {
810
+ visuallyHidden: Pe
811
+ }, Fe = (e) => H(e, Me), $t = (e) => H(e, Oe), Me = (e, t) => t.startsWith("data-") || t.startsWith("aria-"), Oe = (e, t) => t.startsWith("aria-"), St = ({
794
812
  children: e,
795
813
  ...t
796
- }) => /* @__PURE__ */ l("span", { className: Pe.visuallyHidden, ...ze(t), children: e }), Oe = "_text_1iisw_1", He = "_standard_1iisw_24", De = "_bold_1iisw_27", Ne = "_caption_1iisw_31", Ue = "_overline_1iisw_39", Ve = "_large_1iisw_48", Be = "_medium_1iisw_53", je = "_small_1iisw_58", qe = "_smaller_1iisw_63", v = {
797
- text: Oe,
798
- standard: He,
799
- bold: De,
800
- caption: Ne,
801
- overline: Ue,
802
- large: Ve,
803
- medium: Be,
804
- small: je,
805
- smaller: qe
814
+ }) => /* @__PURE__ */ l("span", { className: ze.visuallyHidden, ...Fe(t), children: e }), He = "_text_1iisw_1", De = "_standard_1iisw_24", Ne = "_bold_1iisw_27", Ue = "_caption_1iisw_31", Ve = "_overline_1iisw_39", Be = "_large_1iisw_48", je = "_medium_1iisw_53", qe = "_small_1iisw_58", We = "_smaller_1iisw_63", v = {
815
+ text: He,
816
+ standard: De,
817
+ bold: Ne,
818
+ caption: Ue,
819
+ overline: Ve,
820
+ large: Be,
821
+ medium: je,
822
+ small: qe,
823
+ smaller: We
806
824
  }, _ = h(
807
825
  ({
808
826
  children: e,
@@ -821,7 +839,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
821
839
  }, k) => /* @__PURE__ */ l(
822
840
  "span",
823
841
  {
824
- className: C(v.text, v[t], v[r], n),
842
+ className: S(v.text, v[t], v[r], n),
825
843
  ref: k,
826
844
  style: {
827
845
  color: u,
@@ -837,7 +855,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
837
855
  children: e
838
856
  }
839
857
  )
840
- ), $t = _, We = h(
858
+ ), Et = _, Xe = h(
841
859
  ({
842
860
  children: e,
843
861
  variant: t = "standard",
@@ -855,7 +873,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
855
873
  }, k) => /* @__PURE__ */ l(
856
874
  "p",
857
875
  {
858
- className: C(v.text, v[t], v[r], n),
876
+ className: S(v.text, v[t], v[r], n),
859
877
  ref: k,
860
878
  style: {
861
879
  color: u,
@@ -871,15 +889,15 @@ const ge = "_separatorLine_nzfcz_1", ye = {
871
889
  children: e
872
890
  }
873
891
  )
874
- ), St = We, Et = (e) => /* @__PURE__ */ l(_, { size: "small", ...e }), Ct = (e) => /* @__PURE__ */ l(_, { size: "smaller", ...e }), Tt = (e) => /* @__PURE__ */ l(_, { size: "medium", ...e }), Rt = (e) => /* @__PURE__ */ l(_, { size: "large", ...e }), Xe = "_heading_1cnsg_1", Ge = "_h1_1cnsg_10", Ye = "_h2_1cnsg_14", Ke = "_h3_1cnsg_18", Ze = "_h4_1cnsg_22", Je = "_h5_1cnsg_26", Qe = "_h6_1cnsg_30", L = {
875
- heading: Xe,
876
- h1: Ge,
877
- h2: Ye,
878
- h3: Ke,
879
- h4: Ze,
880
- h5: Je,
881
- h6: Qe
882
- }, et = h(
892
+ ), Ct = Xe, Tt = (e) => /* @__PURE__ */ l(_, { size: "small", ...e }), Rt = (e) => /* @__PURE__ */ l(_, { size: "smaller", ...e }), It = (e) => /* @__PURE__ */ l(_, { size: "medium", ...e }), At = (e) => /* @__PURE__ */ l(_, { size: "large", ...e }), Ge = "_heading_1cnsg_1", Ye = "_h1_1cnsg_10", Ke = "_h2_1cnsg_14", Ze = "_h3_1cnsg_18", Je = "_h4_1cnsg_22", Qe = "_h5_1cnsg_26", et = "_h6_1cnsg_30", L = {
893
+ heading: Ge,
894
+ h1: Ye,
895
+ h2: Ke,
896
+ h3: Ze,
897
+ h4: Je,
898
+ h5: Qe,
899
+ h6: et
900
+ }, tt = h(
883
901
  ({
884
902
  variant: e = "h3",
885
903
  className: t,
@@ -893,14 +911,14 @@ const ge = "_separatorLine_nzfcz_1", ye = {
893
911
  }, c) => /* @__PURE__ */ l(
894
912
  a ?? e,
895
913
  {
896
- className: C(L.heading, L[e], t),
914
+ className: S(L.heading, L[e], t),
897
915
  style: { color: r, whiteSpace: n, wordBreak: u, ...o },
898
916
  ref: c,
899
917
  ...i,
900
918
  children: s
901
919
  }
902
920
  )
903
- ), It = (e) => /* @__PURE__ */ l(et, { variant: "h2", ...e }), At = ({
921
+ ), Lt = (e) => /* @__PURE__ */ l(tt, { variant: "h2", ...e }), Pt = ({
904
922
  blockedKeys: e,
905
923
  blockMouse: t = !1,
906
924
  ...r
@@ -926,7 +944,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
926
944
  onMouseUp: u
927
945
  }
928
946
  );
929
- }, tt = (e, t) => e === t, Lt = (e, t, r = tt) => {
947
+ }, rt = (e, t) => e === t, zt = (e, t, r = rt) => {
930
948
  const n = m(
931
949
  (i) => {
932
950
  e.some((c) => r(c, i)) || t([...e, i]);
@@ -972,7 +990,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
972
990
  r((s) => !s);
973
991
  }, [r]);
974
992
  return [t, n, u, o];
975
- }, Pt = (e, t) => {
993
+ }, Ft = (e, t) => {
976
994
  const [r, n] = g(e);
977
995
  return p(() => {
978
996
  const u = setTimeout(() => {
@@ -982,7 +1000,7 @@ const ge = "_separatorLine_nzfcz_1", ye = {
982
1000
  clearTimeout(u);
983
1001
  };
984
1002
  }, [e, t]), r;
985
- }, zt = (e, t) => {
1003
+ }, Mt = (e, t) => {
986
1004
  const [r, n] = g(e);
987
1005
  return p(() => {
988
1006
  e && n(!0);
@@ -994,8 +1012,8 @@ const ge = "_separatorLine_nzfcz_1", ye = {
994
1012
  };
995
1013
  }, [e, t]), r;
996
1014
  };
997
- let rt = 0;
998
- const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1015
+ let nt = 0;
1016
+ const P = (e) => `webui-${e ? e + "-" : ""}${++nt}`, Ot = (e) => {
999
1017
  const [t, r] = g(() => P(e));
1000
1018
  return p(() => r(P(e)), [e]), t;
1001
1019
  }, b = (e, t, r) => {
@@ -1015,7 +1033,7 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1015
1033
  s && s.removeEventListener(t, o);
1016
1034
  };
1017
1035
  }, [t, e]);
1018
- }, Mt = (e) => {
1036
+ }, Ht = (e) => {
1019
1037
  const [t, r, n] = T(!1);
1020
1038
  p(() => {
1021
1039
  document.activeElement === e.current ? r() : n();
@@ -1026,7 +1044,7 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1026
1044
  e.current && e.current.blur();
1027
1045
  }, [e]);
1028
1046
  return { isInFocus: t, focus: u, blur: o };
1029
- }, Ot = (e) => {
1047
+ }, Dt = (e) => {
1030
1048
  const t = y(e);
1031
1049
  return M(() => {
1032
1050
  t.current = e;
@@ -1034,16 +1052,16 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1034
1052
  const { current: n } = t;
1035
1053
  return n(...r);
1036
1054
  }, []);
1037
- }, Ht = (e) => {
1038
- const t = V.useRef(e);
1055
+ }, Nt = (e) => {
1056
+ const t = B.useRef(e);
1039
1057
  return t.current = e, t;
1040
- }, Dt = (e) => {
1058
+ }, Ut = (e) => {
1041
1059
  const [t, r, n] = T(!1);
1042
1060
  return b(e, "mouseover", r), b(e, "mouseout", n), t;
1043
- }, Nt = (e) => {
1061
+ }, Vt = (e) => {
1044
1062
  const [t, r, n] = T(!1);
1045
1063
  return b(e, "mouseenter", r), b(e, "mouseleave", n), t;
1046
- }, Ut = (e, t) => {
1064
+ }, Bt = (e, t) => {
1047
1065
  const r = y(() => {
1048
1066
  });
1049
1067
  p(() => {
@@ -1056,7 +1074,7 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1056
1074
  document.removeEventListener("mousedown", n), document.removeEventListener("touchstart", n);
1057
1075
  };
1058
1076
  }, [...e]);
1059
- }, Vt = (e, t, r) => {
1077
+ }, jt = (e, t, r) => {
1060
1078
  const n = y(() => {
1061
1079
  });
1062
1080
  p(() => {
@@ -1069,21 +1087,21 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1069
1087
  document.removeEventListener("mousedown", u, r), document.removeEventListener("touchstart", u, r);
1070
1088
  };
1071
1089
  }, [e, r]);
1072
- }, z = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], Bt = (e, t) => {
1090
+ }, z = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], qt = (e, t) => {
1073
1091
  const r = y(() => {
1074
1092
  });
1075
1093
  p(() => {
1076
1094
  r.current = e;
1077
1095
  }, [e]), p(() => {
1078
- const n = fe(r.current, t);
1096
+ const n = ge(r.current, t);
1079
1097
  return z.forEach((u) => window.addEventListener(u, n)), () => {
1080
1098
  z.forEach(
1081
1099
  (u) => window.removeEventListener(u, n)
1082
1100
  );
1083
1101
  };
1084
1102
  }, [t]);
1085
- }, jt = (e, t) => {
1086
- const [r, n] = g(!1), { rootMargin: u, root: o, threshold: s } = t || {}, a = S(() => new IntersectionObserver(
1103
+ }, Wt = (e, t) => {
1104
+ const [r, n] = g(!1), { rootMargin: u, root: o, threshold: s } = t || {}, a = E(() => new IntersectionObserver(
1087
1105
  ([i]) => n(i.isIntersecting),
1088
1106
  {
1089
1107
  rootMargin: u,
@@ -1094,12 +1112,12 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1094
1112
  return p(() => (e.current && a.observe(e.current), () => {
1095
1113
  a.disconnect();
1096
1114
  }), [a, e]), r;
1097
- }, qt = (e) => {
1115
+ }, Xt = (e) => {
1098
1116
  const t = y(null);
1099
1117
  return p(() => {
1100
1118
  e && (typeof e == "function" ? e(t.current) : e.current = t.current);
1101
1119
  }), t;
1102
- }, Wt = (e, t, r = !0) => {
1120
+ }, Gt = (e, t, r = !0) => {
1103
1121
  const [n, u] = g(e), o = y(null), s = m(
1104
1122
  (a, i = t) => {
1105
1123
  u(a), r && clearTimeout(o.current), o.current = setTimeout(() => u(e), i);
@@ -1109,30 +1127,30 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1109
1127
  return p(() => () => {
1110
1128
  clearTimeout(o.current);
1111
1129
  }, []), [n, s];
1112
- }, Xt = () => S(() => /* @__PURE__ */ new Date(), []), Gt = (e) => (t, r) => e(t).localeCompare(e(r)), Yt = (e) => (t, r) => e(t) - e(r), Kt = (e) => {
1130
+ }, Yt = () => E(() => /* @__PURE__ */ new Date(), []), Kt = (e) => (t, r) => e(t).localeCompare(e(r)), Zt = (e) => (t, r) => e(t) - e(r), Jt = (e) => {
1113
1131
  throw new Error(`Switch unhandled case: ${e}`);
1114
- }, Zt = (e, t) => t, Jt = (e) => Object.keys(e).filter((t) => e[t]), Qt = (e) => {
1132
+ }, Qt = (e, t) => t, er = (e) => Object.keys(e).filter((t) => e[t]), tr = (e) => {
1115
1133
  try {
1116
1134
  const t = parseFloat(e);
1117
1135
  return isNaN(t) || t == null ? void 0 : t;
1118
1136
  } catch {
1119
1137
  }
1120
- }, er = (e) => {
1138
+ }, rr = (e) => {
1121
1139
  try {
1122
1140
  const t = parseInt(e, 10);
1123
1141
  return isNaN(t) || t == null ? void 0 : t;
1124
1142
  } catch {
1125
1143
  }
1126
1144
  };
1127
- function tr(e, t) {
1145
+ function nr(e, t) {
1128
1146
  if (e == null)
1129
1147
  throw new Error("Invariant error: " + t);
1130
1148
  }
1131
- const rr = (e) => {
1132
- if (!q(e) || e.type !== W) return !1;
1149
+ const ur = (e) => {
1150
+ if (!O(e) || e.type !== X) return !1;
1133
1151
  const r = e.props.children;
1134
1152
  return Array.isArray(r) ? r.every(F) : F(r);
1135
- }, F = (e) => e == null || e === !1, nr = (e) => {
1153
+ }, F = (e) => e == null || e === !1, or = (e) => {
1136
1154
  try {
1137
1155
  const t = new Intl.PluralRules(e);
1138
1156
  return (r) => t.select(r);
@@ -1150,66 +1168,67 @@ const rr = (e) => {
1150
1168
  }
1151
1169
  };
1152
1170
  }
1153
- }, ur = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
1171
+ }, sr = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
1154
1172
  export {
1155
- H as AccessibleFontSizeContext,
1156
- wt as AccessibleFontSizeProvider,
1157
- At as BlockKeyboardEvents,
1173
+ D as AccessibleFontSizeContext,
1174
+ kt as AccessibleFontSizeProvider,
1175
+ Pt as BlockKeyboardEvents,
1158
1176
  w as Box,
1159
- pt as Clickable,
1160
- mt as Column,
1161
- It as HeaderText,
1162
- et as Heading,
1163
- gt as Indent,
1164
- Rt as LargeText,
1165
- bt as Nest,
1166
- St as P,
1167
- We as Paragraph,
1168
- ht as ResizeAwareBox,
1169
- ft as Row,
1170
- _t as ScreenReaderOnlyText,
1171
- dt as SeparatorLine,
1172
- Et as SmallText,
1173
- Ct as SmallerText,
1174
- vt as Space,
1175
- yt as Spacing,
1176
- Tt as StandardText,
1177
+ mt as Clickable,
1178
+ ht as Column,
1179
+ Lt as HeaderText,
1180
+ tt as Heading,
1181
+ yt as Indent,
1182
+ At as LargeText,
1183
+ wt as Nest,
1184
+ Ct as P,
1185
+ Xe as Paragraph,
1186
+ ft as ResizeAwareBox,
1187
+ gt as Row,
1188
+ St as ScreenReaderOnlyText,
1189
+ pt as SeparatorLine,
1190
+ xt as Slot,
1191
+ Tt as SmallText,
1192
+ Rt as SmallerText,
1193
+ bt as Space,
1194
+ vt as Spacing,
1195
+ It as StandardText,
1177
1196
  _ as Text,
1178
- $t as Txt,
1197
+ Et as Txt,
1179
1198
  $ as booleanOrNumberToNumber,
1180
- Yt as byNumberField,
1181
- Gt as byStringField,
1182
- Zt as exhaustSwitchCase,
1183
- Kt as exhaustSwitchCaseElseThrow,
1184
- kt as getAriaProps,
1185
- ze as getDataProps,
1186
- Te as getDimensionObject,
1187
- tr as invariant,
1188
- rr as isEmptyFragment,
1189
- Qt as parseFloatElseUndefined,
1190
- er as parseIntElseUndefined,
1191
- ur as pluralFormatter,
1192
- nr as selectPluralRule,
1193
- Jt as truthyKeysAsList,
1194
- xt as useAccessibleFontSizeContext,
1195
- Lt as useArraySet,
1199
+ Zt as byNumberField,
1200
+ Kt as byStringField,
1201
+ Qt as exhaustSwitchCase,
1202
+ Jt as exhaustSwitchCaseElseThrow,
1203
+ $t as getAriaProps,
1204
+ Fe as getDataProps,
1205
+ Re as getDimensionObject,
1206
+ nr as invariant,
1207
+ ur as isEmptyFragment,
1208
+ tr as parseFloatElseUndefined,
1209
+ rr as parseIntElseUndefined,
1210
+ sr as pluralFormatter,
1211
+ or as selectPluralRule,
1212
+ er as truthyKeysAsList,
1213
+ _t as useAccessibleFontSizeContext,
1214
+ zt as useArraySet,
1196
1215
  T as useBoolean,
1197
- Pt as useDebounce,
1198
- zt as useDelayedFalse,
1199
- Ft as useDomId,
1200
- Ie as useElementDimensions,
1201
- Mt as useElementFocus,
1202
- Ot as useEventCallback,
1216
+ Ft as useDebounce,
1217
+ Mt as useDelayedFalse,
1218
+ Ot as useDomId,
1219
+ Ae as useElementDimensions,
1220
+ Ht as useElementFocus,
1221
+ Dt as useEventCallback,
1203
1222
  b as useEventListener,
1204
- qt as useForwardedRef,
1205
- Ht as useLatest,
1206
- Nt as useMouseIsEntered,
1207
- Dt as useMouseIsOver,
1208
- Ut as useMultiOnClickOutside,
1209
- Vt as useOnClickOutside,
1210
- Bt as useOnNoMouseMovement,
1211
- jt as useOnScreen,
1212
- Wt as useTimeoutState,
1213
- Xt as useToday
1223
+ Xt as useForwardedRef,
1224
+ Nt as useLatest,
1225
+ Vt as useMouseIsEntered,
1226
+ Ut as useMouseIsOver,
1227
+ Bt as useMultiOnClickOutside,
1228
+ jt as useOnClickOutside,
1229
+ qt as useOnNoMouseMovement,
1230
+ Wt as useOnScreen,
1231
+ Gt as useTimeoutState,
1232
+ Yt as useToday
1214
1233
  };
1215
1234
  //# sourceMappingURL=index.es.js.map