@stenajs-webui/core 23.16.0 → 23.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -9,7 +9,6 @@ export * from "./components/layout/indent/Indent";
9
9
  export * from "./components/layout/spacing/Spacing";
10
10
  export * from "./components/layout/space/Space";
11
11
  export * from "./components/util/Nest";
12
- export * from "./components/util/Slot";
13
12
  export * from "./accessibility/accessible-font-size-detector/AccessibleFontSizeProvider";
14
13
  export * from "./accessibility/accessible-font-size-detector/UseAccessibleFontSizeContext";
15
14
  export * from "./accessibility/screen-reader-only-text/ScreenReaderOnlyText";
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 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(
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(
12
12
  ({
13
- color: e = U("--lhds-color-ui-300"),
13
+ color: e = N("--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: ve.separatorLine,
20
+ className: ye.separatorLine,
21
21
  "aria-hidden": !0,
22
22
  color: e,
23
23
  style: {
@@ -28,7 +28,7 @@ const ye = "_separatorLine_nzfcz_1", ve = {
28
28
  ref: u
29
29
  }
30
30
  )
31
- ), be = C.button`
31
+ ), ve = E.button`
32
32
  display: inline-block;
33
33
  user-select: none;
34
34
  border: 0;
@@ -51,7 +51,7 @@ const ye = "_separatorLine_nzfcz_1", ve = {
51
51
  ${({ width: e }) => e ? `width: ${e};` : ""}
52
52
  ${({ height: e }) => e ? `height: ${e};` : ""}
53
53
  ${({ borderRadius: e }) => e ? `border-radius: ${e};` : ""}
54
- `, mt = h(
54
+ `, pt = h(
55
55
  ({
56
56
  disableFocusHighlight: e,
57
57
  onClick: t,
@@ -67,8 +67,8 @@ const ye = "_separatorLine_nzfcz_1", ve = {
67
67
  focusBackground: f,
68
68
  type: x = "button",
69
69
  ...k
70
- }, N) => /* @__PURE__ */ l(
71
- be,
70
+ }, D) => /* @__PURE__ */ l(
71
+ ve,
72
72
  {
73
73
  opacityOnHover: s,
74
74
  title: n,
@@ -78,7 +78,7 @@ const ye = "_separatorLine_nzfcz_1", ve = {
78
78
  onDoubleClick: r,
79
79
  disableFocusHighlight: e,
80
80
  pointer: !!(t || r) && !o,
81
- ref: N,
81
+ ref: D,
82
82
  background: c,
83
83
  hoverBackground: d,
84
84
  focusBackground: f,
@@ -87,10 +87,10 @@ const ye = "_separatorLine_nzfcz_1", ve = {
87
87
  children: i
88
88
  }
89
89
  )
90
- ), $ = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, we = (e) => {
90
+ ), $ = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, be = (e) => {
91
91
  if (e !== 0)
92
92
  return `calc(${e} * var(--swui-metrics-space))`;
93
- }, I = (e) => we($(e)), xe = {
93
+ }, I = (e) => be($(e)), we = {
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 ye = "_separatorLine_nzfcz_1", ve = {
577
577
  for: !0,
578
578
  class: !0,
579
579
  autofocus: !0
580
- }, ke = `^((${Object.keys(xe).join(
580
+ }, xe = `^((${Object.keys(we).join(
581
581
  "|"
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 = {
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 = {
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
- }, Ee = [
589
+ }, Se = [
590
590
  "spacing",
591
591
  "indent",
592
592
  "gap",
@@ -594,7 +594,7 @@ const ye = "_separatorLine_nzfcz_1", ve = {
594
594
  "height",
595
595
  "overflow",
596
596
  "display"
597
- ], Ce = (e) => Ee.includes(e), Te = G({
597
+ ], Ee = (e) => Se.includes(e), Ce = X({
598
598
  row: {
599
599
  property: "flexDirection",
600
600
  transform: (e) => e ? "row" : "column"
@@ -624,10 +624,10 @@ const ye = "_separatorLine_nzfcz_1", ve = {
624
624
  },
625
625
  shadow: {
626
626
  property: "boxShadow",
627
- transform: (e) => Se[e] ?? e
627
+ transform: (e) => $e[e] ?? e
628
628
  }
629
- }), w = C("div", {
630
- shouldForwardProp: (e) => typeof e == "string" ? Ce(e) ? !1 : $e(e) : !1
629
+ }), w = E("div", {
630
+ shouldForwardProp: (e) => typeof e == "string" ? Ee(e) ? !1 : _e(e) : !1
631
631
  })`
632
632
  --current-spacing: 0;
633
633
  --current-indent: 0;
@@ -635,7 +635,8 @@ const ye = "_separatorLine_nzfcz_1", ve = {
635
635
  box-sizing: border-box;
636
636
  display: flex;
637
637
  flex-direction: column;
638
- ${Te};
638
+ ${Ce};
639
+ ${G};
639
640
  ${Y};
640
641
  ${K};
641
642
  ${Z};
@@ -655,7 +656,6 @@ const ye = "_separatorLine_nzfcz_1", ve = {
655
656
  ${de};
656
657
  ${pe};
657
658
  ${me};
658
- ${he};
659
659
 
660
660
  gap: calc(var(--current-gap) * var(--swui-metrics-space));
661
661
 
@@ -676,11 +676,11 @@ const ye = "_separatorLine_nzfcz_1", ve = {
676
676
  ${({ focusWithinBackground: e }) => e ? `background: ${e};` : ""}
677
677
  ${({ focusWithinBorder: e }) => e ? `border: ${e};` : ""}
678
678
  }
679
- `, ht = h(
679
+ `, mt = h(
680
680
  function(t, r) {
681
681
  return /* @__PURE__ */ l(w, { ref: r, ...t });
682
682
  }
683
- ), Re = (e) => {
683
+ ), Te = (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 ye = "_separatorLine_nzfcz_1", ve = {
692
692
  right: i,
693
693
  bottom: o
694
694
  };
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) => {
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) => {
696
696
  const [r, n] = g(), u = m(() => {
697
697
  window.requestAnimationFrame(() => {
698
698
  if (e.current) {
699
- const o = Re(e.current);
700
- (!r || !Ie(r, o)) && t && t(o), n(o);
699
+ const o = Te(e.current);
700
+ (!r || !Re(r, o)) && t && t(o), n(o);
701
701
  }
702
702
  });
703
703
  }, [e, r, n, t]);
@@ -706,27 +706,27 @@ const ye = "_separatorLine_nzfcz_1", ve = {
706
706
  }, [u]), {
707
707
  dimensions: r
708
708
  };
709
- }, ft = h(
709
+ }, ht = h(
710
710
  function({ onResize: t, ...r }, n) {
711
711
  const u = y(null);
712
- return Ae(n ?? u, t), /* @__PURE__ */ l(w, { ...r, ref: n });
712
+ return Ie(n ?? u, t), /* @__PURE__ */ l(w, { ...r, ref: n });
713
713
  }
714
- ), gt = h(
714
+ ), ft = h(
715
715
  function(t, r) {
716
716
  return /* @__PURE__ */ l(w, { row: !0, ref: r, ...t });
717
717
  }
718
- ), yt = h(function({ num: t = 1, ...r }, n) {
718
+ ), gt = h(function({ num: t = 1, ...r }, n) {
719
719
  return /* @__PURE__ */ l(w, { indent: t, ref: n, ...r });
720
- }), vt = h(
720
+ }), yt = h(
721
721
  function({ num: t = 1, ...r }, n) {
722
722
  return /* @__PURE__ */ l(w, { spacing: t, ref: n, ...r });
723
723
  }
724
- ), Le = C.div`
724
+ ), Ae = E.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
- `, bt = ({
729
+ `, vt = ({
730
730
  half: e = !1,
731
731
  horizontal: t = !1,
732
732
  num: r = 1,
@@ -734,7 +734,7 @@ const ye = "_separatorLine_nzfcz_1", ve = {
734
734
  }) => {
735
735
  const u = r * (e ? 0.5 : 1);
736
736
  return /* @__PURE__ */ l(
737
- Le,
737
+ Ae,
738
738
  {
739
739
  style: {
740
740
  "--current-size": u,
@@ -743,28 +743,10 @@ const ye = "_separatorLine_nzfcz_1", ve = {
743
743
  }
744
744
  }
745
745
  );
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({
746
+ }, bt = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ l(R, { children: r(e) }) : /* @__PURE__ */ l(R, { children: e }), H = B({
765
747
  isFontLarge: !1,
766
748
  fontSizeRatio: 1
767
- }), A = 12, kt = ({ children: e }) => {
749
+ }), A = 12, wt = ({ children: e }) => {
768
750
  const t = y(null), [r, n] = g(!1), [u, o] = g(1);
769
751
  p(() => {
770
752
  if (!t.current)
@@ -777,11 +759,11 @@ const ye = "_separatorLine_nzfcz_1", ve = {
777
759
  });
778
760
  return a.observe(t.current), () => a.disconnect();
779
761
  }, []);
780
- const s = E(
762
+ const s = S(
781
763
  () => ({ isFontLarge: r, fontSizeRatio: u }),
782
764
  [u, r]
783
765
  );
784
- return /* @__PURE__ */ V(D.Provider, { value: s, children: [
766
+ return /* @__PURE__ */ U(H.Provider, { value: s, children: [
785
767
  /* @__PURE__ */ l(
786
768
  "div",
787
769
  {
@@ -800,27 +782,27 @@ const ye = "_separatorLine_nzfcz_1", ve = {
800
782
  ),
801
783
  e
802
784
  ] });
803
- }, _t = () => {
804
- const e = W(D);
785
+ }, xt = () => {
786
+ const e = j(H);
805
787
  return e || {
806
788
  isFontLarge: !1,
807
789
  fontSizeRatio: 1
808
790
  };
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 = ({
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 = ({
812
794
  children: e,
813
795
  ...t
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
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
824
806
  }, _ = h(
825
807
  ({
826
808
  children: e,
@@ -839,7 +821,7 @@ const ye = "_separatorLine_nzfcz_1", ve = {
839
821
  }, k) => /* @__PURE__ */ l(
840
822
  "span",
841
823
  {
842
- className: S(v.text, v[t], v[r], n),
824
+ className: C(v.text, v[t], v[r], n),
843
825
  ref: k,
844
826
  style: {
845
827
  color: u,
@@ -855,7 +837,7 @@ const ye = "_separatorLine_nzfcz_1", ve = {
855
837
  children: e
856
838
  }
857
839
  )
858
- ), Et = _, Xe = h(
840
+ ), $t = _, We = h(
859
841
  ({
860
842
  children: e,
861
843
  variant: t = "standard",
@@ -873,7 +855,7 @@ const ye = "_separatorLine_nzfcz_1", ve = {
873
855
  }, k) => /* @__PURE__ */ l(
874
856
  "p",
875
857
  {
876
- className: S(v.text, v[t], v[r], n),
858
+ className: C(v.text, v[t], v[r], n),
877
859
  ref: k,
878
860
  style: {
879
861
  color: u,
@@ -889,15 +871,15 @@ const ye = "_separatorLine_nzfcz_1", ve = {
889
871
  children: e
890
872
  }
891
873
  )
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(
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(
901
883
  ({
902
884
  variant: e = "h3",
903
885
  className: t,
@@ -911,14 +893,14 @@ const ye = "_separatorLine_nzfcz_1", ve = {
911
893
  }, c) => /* @__PURE__ */ l(
912
894
  a ?? e,
913
895
  {
914
- className: S(L.heading, L[e], t),
896
+ className: C(L.heading, L[e], t),
915
897
  style: { color: r, whiteSpace: n, wordBreak: u, ...o },
916
898
  ref: c,
917
899
  ...i,
918
900
  children: s
919
901
  }
920
902
  )
921
- ), Lt = (e) => /* @__PURE__ */ l(tt, { variant: "h2", ...e }), Pt = ({
903
+ ), It = (e) => /* @__PURE__ */ l(et, { variant: "h2", ...e }), At = ({
922
904
  blockedKeys: e,
923
905
  blockMouse: t = !1,
924
906
  ...r
@@ -944,7 +926,7 @@ const ye = "_separatorLine_nzfcz_1", ve = {
944
926
  onMouseUp: u
945
927
  }
946
928
  );
947
- }, rt = (e, t) => e === t, zt = (e, t, r = rt) => {
929
+ }, tt = (e, t) => e === t, Lt = (e, t, r = tt) => {
948
930
  const n = m(
949
931
  (i) => {
950
932
  e.some((c) => r(c, i)) || t([...e, i]);
@@ -990,7 +972,7 @@ const ye = "_separatorLine_nzfcz_1", ve = {
990
972
  r((s) => !s);
991
973
  }, [r]);
992
974
  return [t, n, u, o];
993
- }, Ft = (e, t) => {
975
+ }, Pt = (e, t) => {
994
976
  const [r, n] = g(e);
995
977
  return p(() => {
996
978
  const u = setTimeout(() => {
@@ -1000,7 +982,7 @@ const ye = "_separatorLine_nzfcz_1", ve = {
1000
982
  clearTimeout(u);
1001
983
  };
1002
984
  }, [e, t]), r;
1003
- }, Mt = (e, t) => {
985
+ }, zt = (e, t) => {
1004
986
  const [r, n] = g(e);
1005
987
  return p(() => {
1006
988
  e && n(!0);
@@ -1012,8 +994,8 @@ const ye = "_separatorLine_nzfcz_1", ve = {
1012
994
  };
1013
995
  }, [e, t]), r;
1014
996
  };
1015
- let nt = 0;
1016
- const P = (e) => `webui-${e ? e + "-" : ""}${++nt}`, Ot = (e) => {
997
+ let rt = 0;
998
+ const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1017
999
  const [t, r] = g(() => P(e));
1018
1000
  return p(() => r(P(e)), [e]), t;
1019
1001
  }, b = (e, t, r) => {
@@ -1033,7 +1015,7 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++nt}`, Ot = (e) => {
1033
1015
  s && s.removeEventListener(t, o);
1034
1016
  };
1035
1017
  }, [t, e]);
1036
- }, Ht = (e) => {
1018
+ }, Mt = (e) => {
1037
1019
  const [t, r, n] = T(!1);
1038
1020
  p(() => {
1039
1021
  document.activeElement === e.current ? r() : n();
@@ -1044,7 +1026,7 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++nt}`, Ot = (e) => {
1044
1026
  e.current && e.current.blur();
1045
1027
  }, [e]);
1046
1028
  return { isInFocus: t, focus: u, blur: o };
1047
- }, Dt = (e) => {
1029
+ }, Ot = (e) => {
1048
1030
  const t = y(e);
1049
1031
  return M(() => {
1050
1032
  t.current = e;
@@ -1052,16 +1034,16 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++nt}`, Ot = (e) => {
1052
1034
  const { current: n } = t;
1053
1035
  return n(...r);
1054
1036
  }, []);
1055
- }, Nt = (e) => {
1056
- const t = B.useRef(e);
1037
+ }, Ht = (e) => {
1038
+ const t = V.useRef(e);
1057
1039
  return t.current = e, t;
1058
- }, Ut = (e) => {
1040
+ }, Dt = (e) => {
1059
1041
  const [t, r, n] = T(!1);
1060
1042
  return b(e, "mouseover", r), b(e, "mouseout", n), t;
1061
- }, Vt = (e) => {
1043
+ }, Nt = (e) => {
1062
1044
  const [t, r, n] = T(!1);
1063
1045
  return b(e, "mouseenter", r), b(e, "mouseleave", n), t;
1064
- }, Bt = (e, t) => {
1046
+ }, Ut = (e, t) => {
1065
1047
  const r = y(() => {
1066
1048
  });
1067
1049
  p(() => {
@@ -1074,7 +1056,7 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++nt}`, Ot = (e) => {
1074
1056
  document.removeEventListener("mousedown", n), document.removeEventListener("touchstart", n);
1075
1057
  };
1076
1058
  }, [...e]);
1077
- }, jt = (e, t, r) => {
1059
+ }, Vt = (e, t, r) => {
1078
1060
  const n = y(() => {
1079
1061
  });
1080
1062
  p(() => {
@@ -1087,21 +1069,21 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++nt}`, Ot = (e) => {
1087
1069
  document.removeEventListener("mousedown", u, r), document.removeEventListener("touchstart", u, r);
1088
1070
  };
1089
1071
  }, [e, r]);
1090
- }, z = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], qt = (e, t) => {
1072
+ }, z = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], Bt = (e, t) => {
1091
1073
  const r = y(() => {
1092
1074
  });
1093
1075
  p(() => {
1094
1076
  r.current = e;
1095
1077
  }, [e]), p(() => {
1096
- const n = ge(r.current, t);
1078
+ const n = fe(r.current, t);
1097
1079
  return z.forEach((u) => window.addEventListener(u, n)), () => {
1098
1080
  z.forEach(
1099
1081
  (u) => window.removeEventListener(u, n)
1100
1082
  );
1101
1083
  };
1102
1084
  }, [t]);
1103
- }, Wt = (e, t) => {
1104
- const [r, n] = g(!1), { rootMargin: u, root: o, threshold: s } = t || {}, a = E(() => new IntersectionObserver(
1085
+ }, jt = (e, t) => {
1086
+ const [r, n] = g(!1), { rootMargin: u, root: o, threshold: s } = t || {}, a = S(() => new IntersectionObserver(
1105
1087
  ([i]) => n(i.isIntersecting),
1106
1088
  {
1107
1089
  rootMargin: u,
@@ -1112,12 +1094,12 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++nt}`, Ot = (e) => {
1112
1094
  return p(() => (e.current && a.observe(e.current), () => {
1113
1095
  a.disconnect();
1114
1096
  }), [a, e]), r;
1115
- }, Xt = (e) => {
1097
+ }, qt = (e) => {
1116
1098
  const t = y(null);
1117
1099
  return p(() => {
1118
1100
  e && (typeof e == "function" ? e(t.current) : e.current = t.current);
1119
1101
  }), t;
1120
- }, Gt = (e, t, r = !0) => {
1102
+ }, Wt = (e, t, r = !0) => {
1121
1103
  const [n, u] = g(e), o = y(null), s = m(
1122
1104
  (a, i = t) => {
1123
1105
  u(a), r && clearTimeout(o.current), o.current = setTimeout(() => u(e), i);
@@ -1127,30 +1109,30 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++nt}`, Ot = (e) => {
1127
1109
  return p(() => () => {
1128
1110
  clearTimeout(o.current);
1129
1111
  }, []), [n, s];
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) => {
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) => {
1131
1113
  throw new Error(`Switch unhandled case: ${e}`);
1132
- }, Qt = (e, t) => t, er = (e) => Object.keys(e).filter((t) => e[t]), tr = (e) => {
1114
+ }, Zt = (e, t) => t, Jt = (e) => Object.keys(e).filter((t) => e[t]), Qt = (e) => {
1133
1115
  try {
1134
1116
  const t = parseFloat(e);
1135
1117
  return isNaN(t) || t == null ? void 0 : t;
1136
1118
  } catch {
1137
1119
  }
1138
- }, rr = (e) => {
1120
+ }, er = (e) => {
1139
1121
  try {
1140
1122
  const t = parseInt(e, 10);
1141
1123
  return isNaN(t) || t == null ? void 0 : t;
1142
1124
  } catch {
1143
1125
  }
1144
1126
  };
1145
- function nr(e, t) {
1127
+ function tr(e, t) {
1146
1128
  if (e == null)
1147
1129
  throw new Error("Invariant error: " + t);
1148
1130
  }
1149
- const ur = (e) => {
1150
- if (!O(e) || e.type !== X) return !1;
1131
+ const rr = (e) => {
1132
+ if (!q(e) || e.type !== W) return !1;
1151
1133
  const r = e.props.children;
1152
1134
  return Array.isArray(r) ? r.every(F) : F(r);
1153
- }, F = (e) => e == null || e === !1, or = (e) => {
1135
+ }, F = (e) => e == null || e === !1, nr = (e) => {
1154
1136
  try {
1155
1137
  const t = new Intl.PluralRules(e);
1156
1138
  return (r) => t.select(r);
@@ -1168,67 +1150,66 @@ const ur = (e) => {
1168
1150
  }
1169
1151
  };
1170
1152
  }
1171
- }, sr = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
1153
+ }, ur = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
1172
1154
  export {
1173
- D as AccessibleFontSizeContext,
1174
- kt as AccessibleFontSizeProvider,
1175
- Pt as BlockKeyboardEvents,
1155
+ H as AccessibleFontSizeContext,
1156
+ wt as AccessibleFontSizeProvider,
1157
+ At as BlockKeyboardEvents,
1176
1158
  w as Box,
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,
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,
1196
1177
  _ as Text,
1197
- Et as Txt,
1178
+ $t as Txt,
1198
1179
  $ as booleanOrNumberToNumber,
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,
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,
1215
1196
  T as useBoolean,
1216
- Ft as useDebounce,
1217
- Mt as useDelayedFalse,
1218
- Ot as useDomId,
1219
- Ae as useElementDimensions,
1220
- Ht as useElementFocus,
1221
- Dt as useEventCallback,
1197
+ Pt as useDebounce,
1198
+ zt as useDelayedFalse,
1199
+ Ft as useDomId,
1200
+ Ie as useElementDimensions,
1201
+ Mt as useElementFocus,
1202
+ Ot as useEventCallback,
1222
1203
  b as useEventListener,
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
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
1233
1214
  };
1234
1215
  //# sourceMappingURL=index.es.js.map