@stenajs-webui/core 23.16.1 → 23.16.3

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