@stenajs-webui/core 23.20.2 → 23.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,22 +1,22 @@
1
- import { cssColor as 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(
1
+ import { cssColor as V } from "@stenajs-webui/theme";
2
+ import { jsx as a, jsxs as O, Fragment as R } from "react/jsx-runtime";
3
+ import B, { forwardRef as h, useState as g, useCallback as m, useLayoutEffect as H, useRef as y, createContext as j, useEffect as p, useMemo as S, useContext as q, isValidElement as W, Fragment as G } from "react";
4
+ import E from "classnames";
5
+ import C from "@emotion/styled";
6
+ import { system as X, 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 D, debounce as ge } from "lodash-es";
8
+ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
9
+ separatorLine: ye
10
+ }, I = h(
11
11
  ({
12
- color: e = N("--lhds-color-ui-300"),
12
+ color: e = V("--lhds-color-ui-400"),
13
13
  size: t = "100%",
14
14
  width: r = "1px",
15
15
  vertical: n = !1
16
- }, u) => /* @__PURE__ */ l(
16
+ }, u) => /* @__PURE__ */ a(
17
17
  "hr",
18
18
  {
19
- className: ye.separatorLine,
19
+ className: ve.separatorLine,
20
20
  "aria-hidden": !0,
21
21
  color: e,
22
22
  style: {
@@ -27,69 +27,54 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
27
27
  ref: u
28
28
  }
29
29
  )
30
- ), ve = E.button`
31
- display: inline-block;
32
- user-select: none;
33
- border: 0;
34
- padding: 0;
35
- background: ${({ background: e }) => e};
36
- ${({ pointer: e }) => e ? "cursor: pointer;" : ""}
37
-
38
- :hover {
39
- ${(e) => e.opacityOnHover ? "opacity: 0.7;" : ""};
40
- ${({ hoverBackground: e }) => `background: ${e};`}
41
- }
42
- :active {
43
- ${({ disableOpacityOnClick: e }) => e ? "" : "opacity: 0.5;"}
44
- }
45
- :focus {
46
- outline: 0;
47
- ${({ disableFocusHighlight: e }) => e ? "" : "box-shadow: 0 0 3pt 2pt rgba(0, 0, 100, 0.3);"}
48
- ${({ focusBackground: e }) => `background: ${e};`}
49
- }
50
- ${({ width: e }) => e ? `width: ${e};` : ""}
51
- ${({ height: e }) => e ? `height: ${e};` : ""}
52
- ${({ borderRadius: e }) => e ? `border-radius: ${e};` : ""}
53
- `, pt = h(
30
+ ), be = "_text_1iisw_1", we = "_standard_1iisw_24", xe = "_bold_1iisw_27", ke = "_caption_1iisw_31", _e = "_overline_1iisw_39", $e = "_large_1iisw_48", Se = "_medium_1iisw_53", Ee = "_small_1iisw_58", Ce = "_smaller_1iisw_63", b = {
31
+ text: be,
32
+ standard: we,
33
+ bold: xe,
34
+ caption: ke,
35
+ overline: _e,
36
+ large: $e,
37
+ medium: Se,
38
+ small: Ee,
39
+ smaller: Ce
40
+ }, x = h(
54
41
  ({
55
- disableFocusHighlight: e,
56
- onClick: t,
57
- onDblClick: r,
58
- tooltip: n,
59
- disableOpacityOnClick: u,
60
- disablePointer: o,
61
- opacityOnHover: s,
62
- disabled: a,
63
- children: i,
64
- background: c = "transparent",
65
- hoverBackground: d,
66
- focusBackground: f,
67
- type: x = "button",
42
+ children: e,
43
+ variant: t = "standard",
44
+ size: r = "medium",
45
+ className: n,
46
+ color: u,
47
+ userSelect: o,
48
+ whiteSpace: s,
49
+ wordBreak: c,
50
+ textAlign: i = "left",
51
+ overflow: l,
52
+ textOverflow: d,
53
+ style: f,
68
54
  ...k
69
- }, D) => /* @__PURE__ */ l(
70
- ve,
55
+ }, _) => /* @__PURE__ */ a(
56
+ "span",
71
57
  {
72
- opacityOnHover: s,
73
- title: n,
74
- disabled: a,
75
- disableOpacityOnClick: u,
76
- onClick: t,
77
- onDoubleClick: r,
78
- disableFocusHighlight: e,
79
- pointer: !!(t || r) && !o,
80
- ref: D,
81
- background: c,
82
- hoverBackground: d,
83
- focusBackground: f,
84
- type: x,
58
+ className: E(b.text, b[t], b[r], n),
59
+ ref: _,
60
+ style: {
61
+ color: u,
62
+ userSelect: o,
63
+ whiteSpace: s,
64
+ wordBreak: c,
65
+ textAlign: i,
66
+ overflow: l,
67
+ textOverflow: d,
68
+ ...f
69
+ },
85
70
  ...k,
86
- children: i
71
+ children: e
87
72
  }
88
73
  )
89
- ), $ = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, be = (e) => {
74
+ ), mt = x, $ = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, Te = (e) => {
90
75
  if (e !== 0)
91
76
  return `calc(${e} * var(--swui-metrics-space))`;
92
- }, I = (e) => be($(e)), we = {
77
+ }, A = (e) => Te($(e)), Re = {
93
78
  // react props
94
79
  // https://github.com/facebook/react/blob/5495a7f24aef85ba6937truetrue1ce962673ca9f5fde6/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js
95
80
  children: !0,
@@ -576,16 +561,16 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
576
561
  for: !0,
577
562
  class: !0,
578
563
  autofocus: !0
579
- }, xe = `^((${Object.keys(we).join(
564
+ }, Ie = `^((${Object.keys(Re).join(
580
565
  "|"
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 = {
566
+ )})|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$`, Ae = new RegExp(Ie), Le = fe(
567
+ (e) => Ae.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91
568
+ ), Pe = {
584
569
  box: "var(--swui-shadow-box)",
585
570
  popover: "var(--swui-shadow-popover)",
586
571
  modal: "var(--swui-shadow-modal)",
587
572
  bottom: "var(--swui-shadow-bottom)"
588
- }, Se = [
573
+ }, ze = [
589
574
  "spacing",
590
575
  "indent",
591
576
  "gap",
@@ -593,7 +578,7 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
593
578
  "height",
594
579
  "overflow",
595
580
  "display"
596
- ], Ee = (e) => Se.includes(e), Ce = X({
581
+ ], Fe = (e) => ze.includes(e), Me = X({
597
582
  row: {
598
583
  property: "flexDirection",
599
584
  transform: (e) => e ? "row" : "column"
@@ -615,18 +600,18 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
615
600
  },
616
601
  columnGap: {
617
602
  property: "columnGap",
618
- transform: I
603
+ transform: A
619
604
  },
620
605
  rowGap: {
621
606
  property: "rowGap",
622
- transform: I
607
+ transform: A
623
608
  },
624
609
  shadow: {
625
610
  property: "boxShadow",
626
- transform: (e) => $e[e] ?? e
611
+ transform: (e) => Pe[e] ?? e
627
612
  }
628
- }), w = E("div", {
629
- shouldForwardProp: (e) => typeof e == "string" ? Ee(e) ? !1 : _e(e) : !1
613
+ }), v = C("div", {
614
+ shouldForwardProp: (e) => typeof e == "string" ? Fe(e) ? !1 : Le(e) : !1
630
615
  })`
631
616
  --current-spacing: 0;
632
617
  --current-indent: 0;
@@ -634,8 +619,7 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
634
619
  box-sizing: border-box;
635
620
  display: flex;
636
621
  flex-direction: column;
637
- ${Ce};
638
- ${G};
622
+ ${Me};
639
623
  ${Y};
640
624
  ${K};
641
625
  ${Z};
@@ -655,6 +639,7 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
655
639
  ${de};
656
640
  ${pe};
657
641
  ${me};
642
+ ${he};
658
643
 
659
644
  gap: calc(var(--current-gap) * var(--swui-metrics-space));
660
645
 
@@ -675,65 +660,128 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
675
660
  ${({ focusWithinBackground: e }) => e ? `background: ${e};` : ""}
676
661
  ${({ focusWithinBorder: e }) => e ? `border: ${e};` : ""}
677
662
  }
678
- `, mt = h(
663
+ `, Oe = h(
664
+ function(t, r) {
665
+ return /* @__PURE__ */ a(v, { row: !0, ref: r, ...t });
666
+ }
667
+ ), ht = ({ children: e }) => /* @__PURE__ */ O(Oe, { alignItems: "center", gap: 2, children: [
668
+ /* @__PURE__ */ a(v, { flexGrow: 1, children: /* @__PURE__ */ a(I, {}) }),
669
+ typeof e == "string" ? /* @__PURE__ */ a(x, { children: e }) : e,
670
+ /* @__PURE__ */ a(v, { flexGrow: 1, children: /* @__PURE__ */ a(I, {}) })
671
+ ] }), He = C.button`
672
+ display: inline-block;
673
+ user-select: none;
674
+ border: 0;
675
+ padding: 0;
676
+ background: ${({ background: e }) => e};
677
+ ${({ pointer: e }) => e ? "cursor: pointer;" : ""}
678
+
679
+ :hover {
680
+ ${(e) => e.opacityOnHover ? "opacity: 0.7;" : ""};
681
+ ${({ hoverBackground: e }) => `background: ${e};`}
682
+ }
683
+ :active {
684
+ ${({ disableOpacityOnClick: e }) => e ? "" : "opacity: 0.5;"}
685
+ }
686
+ :focus {
687
+ outline: 0;
688
+ ${({ disableFocusHighlight: e }) => e ? "" : "box-shadow: 0 0 3pt 2pt rgba(0, 0, 100, 0.3);"}
689
+ ${({ focusBackground: e }) => `background: ${e};`}
690
+ }
691
+ ${({ width: e }) => e ? `width: ${e};` : ""}
692
+ ${({ height: e }) => e ? `height: ${e};` : ""}
693
+ ${({ borderRadius: e }) => e ? `border-radius: ${e};` : ""}
694
+ `, ft = h(
695
+ ({
696
+ disableFocusHighlight: e,
697
+ onClick: t,
698
+ onDblClick: r,
699
+ tooltip: n,
700
+ disableOpacityOnClick: u,
701
+ disablePointer: o,
702
+ opacityOnHover: s,
703
+ disabled: c,
704
+ children: i,
705
+ background: l = "transparent",
706
+ hoverBackground: d,
707
+ focusBackground: f,
708
+ type: k = "button",
709
+ ..._
710
+ }, U) => /* @__PURE__ */ a(
711
+ He,
712
+ {
713
+ opacityOnHover: s,
714
+ title: n,
715
+ disabled: c,
716
+ disableOpacityOnClick: u,
717
+ onClick: t,
718
+ onDoubleClick: r,
719
+ disableFocusHighlight: e,
720
+ pointer: !!(t || r) && !o,
721
+ ref: U,
722
+ background: l,
723
+ hoverBackground: d,
724
+ focusBackground: f,
725
+ type: k,
726
+ ..._,
727
+ children: i
728
+ }
729
+ )
730
+ ), gt = h(
679
731
  function(t, r) {
680
- return /* @__PURE__ */ l(w, { ref: r, ...t });
732
+ return /* @__PURE__ */ a(v, { ref: r, ...t });
681
733
  }
682
- ), Te = (e) => {
683
- const { x: t, y: r, width: n, height: u, bottom: o, top: s, left: a, right: i } = e.getBoundingClientRect();
734
+ ), De = (e) => {
735
+ const { x: t, y: r, width: n, height: u, bottom: o, top: s, left: c, right: i } = e.getBoundingClientRect();
684
736
  return {
685
737
  width: n,
686
738
  height: u,
687
739
  top: s,
688
- left: a,
740
+ left: c,
689
741
  x: t,
690
742
  y: r,
691
743
  right: i,
692
744
  bottom: o
693
745
  };
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) => {
746
+ }, Ne = (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, Ue = (e, t) => {
695
747
  const [r, n] = g(), u = m(() => {
696
748
  window.requestAnimationFrame(() => {
697
749
  if (e.current) {
698
- const o = Te(e.current);
699
- (!r || !Re(r, o)) && t && t(o), n(o);
750
+ const o = De(e.current);
751
+ (!r || !Ne(r, o)) && t && t(o), n(o);
700
752
  }
701
753
  });
702
754
  }, [e, r, n, t]);
703
- return M(() => {
755
+ return H(() => {
704
756
  u();
705
757
  }, [u]), {
706
758
  dimensions: r
707
759
  };
708
- }, ht = h(
760
+ }, yt = h(
709
761
  function({ onResize: t, ...r }, n) {
710
762
  const u = y(null);
711
- return Ie(n ?? u, t), /* @__PURE__ */ l(w, { ...r, ref: n });
712
- }
713
- ), ft = h(
714
- function(t, r) {
715
- return /* @__PURE__ */ l(w, { row: !0, ref: r, ...t });
763
+ return Ue(n ?? u, t), /* @__PURE__ */ a(v, { ...r, ref: n });
716
764
  }
717
- ), gt = h(function({ num: t = 1, ...r }, n) {
718
- return /* @__PURE__ */ l(w, { indent: t, ref: n, ...r });
719
- }), yt = h(
765
+ ), vt = h(function({ num: t = 1, ...r }, n) {
766
+ return /* @__PURE__ */ a(v, { indent: t, ref: n, ...r });
767
+ }), bt = h(
720
768
  function({ num: t = 1, ...r }, n) {
721
- return /* @__PURE__ */ l(w, { spacing: t, ref: n, ...r });
769
+ return /* @__PURE__ */ a(v, { spacing: t, ref: n, ...r });
722
770
  }
723
- ), Ae = E.div`
771
+ ), Ve = C.div`
724
772
  --current-size: 1;
725
773
  flex: none;
726
774
  width: calc(var(--current-size) * var(--swui-metrics-space));
727
775
  height: calc(var(--current-size) * var(--swui-metrics-space));
728
- `, vt = ({
776
+ `, wt = ({
729
777
  half: e = !1,
730
778
  horizontal: t = !1,
731
779
  num: r = 1,
732
780
  vertical: n = !1
733
781
  }) => {
734
782
  const u = r * (e ? 0.5 : 1);
735
- return /* @__PURE__ */ l(
736
- Ae,
783
+ return /* @__PURE__ */ a(
784
+ Ve,
737
785
  {
738
786
  style: {
739
787
  "--current-size": u,
@@ -742,28 +790,28 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
742
790
  }
743
791
  }
744
792
  );
745
- }, bt = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ l(R, { children: r(e) }) : /* @__PURE__ */ l(R, { children: e }), H = B({
793
+ }, xt = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ a(R, { children: r(e) }) : /* @__PURE__ */ a(R, { children: e }), N = j({
746
794
  isFontLarge: !1,
747
795
  fontSizeRatio: 1
748
- }), A = 12, wt = ({ children: e }) => {
796
+ }), L = 12, kt = ({ children: e }) => {
749
797
  const t = y(null), [r, n] = g(!1), [u, o] = g(1);
750
798
  p(() => {
751
799
  if (!t.current)
752
800
  return;
753
- const a = new ResizeObserver((i) => {
754
- for (const c of i) {
755
- const d = c.contentRect.height;
756
- n(d > A), o(d / A);
801
+ const c = new ResizeObserver((i) => {
802
+ for (const l of i) {
803
+ const d = l.contentRect.height;
804
+ n(d > L), o(d / L);
757
805
  }
758
806
  });
759
- return a.observe(t.current), () => a.disconnect();
807
+ return c.observe(t.current), () => c.disconnect();
760
808
  }, []);
761
809
  const s = S(
762
810
  () => ({ isFontLarge: r, fontSizeRatio: u }),
763
811
  [u, r]
764
812
  );
765
- return /* @__PURE__ */ U(H.Provider, { value: s, children: [
766
- /* @__PURE__ */ l(
813
+ return /* @__PURE__ */ O(N.Provider, { value: s, children: [
814
+ /* @__PURE__ */ a(
767
815
  "div",
768
816
  {
769
817
  ref: t,
@@ -781,28 +829,18 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
781
829
  ),
782
830
  e
783
831
  ] });
784
- }, xt = () => {
785
- const e = j(H);
832
+ }, _t = () => {
833
+ const e = q(N);
786
834
  return e || {
787
835
  isFontLarge: !1,
788
836
  fontSizeRatio: 1
789
837
  };
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 = ({
838
+ }, Be = "_visuallyHidden_1gevf_1", je = {
839
+ visuallyHidden: Be
840
+ }, qe = (e) => D(e, We), $t = (e) => D(e, Ge), We = (e, t) => t.startsWith("data-") || t.startsWith("aria-"), Ge = (e, t) => t.startsWith("aria-"), St = ({
793
841
  children: e,
794
842
  ...t
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
805
- }, _ = h(
843
+ }) => /* @__PURE__ */ a("span", { className: je.visuallyHidden, ...qe(t), children: e }), Xe = h(
806
844
  ({
807
845
  children: e,
808
846
  variant: t = "standard",
@@ -811,74 +849,40 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
811
849
  color: u,
812
850
  userSelect: o,
813
851
  whiteSpace: s,
814
- wordBreak: a,
852
+ wordBreak: c,
815
853
  textAlign: i = "left",
816
- overflow: c,
854
+ overflow: l,
817
855
  textOverflow: d,
818
856
  style: f,
819
- ...x
820
- }, k) => /* @__PURE__ */ l(
821
- "span",
822
- {
823
- className: C(v.text, v[t], v[r], n),
824
- ref: k,
825
- style: {
826
- color: u,
827
- userSelect: o,
828
- whiteSpace: s,
829
- wordBreak: a,
830
- textAlign: i,
831
- overflow: c,
832
- textOverflow: d,
833
- ...f
834
- },
835
- ...x,
836
- children: e
837
- }
838
- )
839
- ), $t = _, We = h(
840
- ({
841
- children: e,
842
- variant: t = "standard",
843
- size: r = "medium",
844
- className: n,
845
- color: u,
846
- userSelect: o,
847
- whiteSpace: s,
848
- wordBreak: a,
849
- textAlign: i = "left",
850
- overflow: c,
851
- textOverflow: d,
852
- style: f,
853
- ...x
854
- }, k) => /* @__PURE__ */ l(
857
+ ...k
858
+ }, _) => /* @__PURE__ */ a(
855
859
  "p",
856
860
  {
857
- className: C(v.text, v[t], v[r], n),
858
- ref: k,
861
+ className: E(b.text, b[t], b[r], n),
862
+ ref: _,
859
863
  style: {
860
864
  color: u,
861
865
  userSelect: o,
862
866
  whiteSpace: s,
863
- wordBreak: a,
867
+ wordBreak: c,
864
868
  textAlign: i,
865
- overflow: c,
869
+ overflow: l,
866
870
  textOverflow: d,
867
871
  ...f
868
872
  },
869
- ...x,
873
+ ...k,
870
874
  children: e
871
875
  }
872
876
  )
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(
877
+ ), Et = Xe, Ct = (e) => /* @__PURE__ */ a(x, { size: "small", ...e }), Tt = (e) => /* @__PURE__ */ a(x, { size: "smaller", ...e }), Rt = (e) => /* @__PURE__ */ a(x, { size: "medium", ...e }), It = (e) => /* @__PURE__ */ a(x, { size: "large", ...e }), Ye = "_heading_1cnsg_1", Ke = "_h1_1cnsg_10", Ze = "_h2_1cnsg_14", Je = "_h3_1cnsg_18", Qe = "_h4_1cnsg_22", et = "_h5_1cnsg_26", tt = "_h6_1cnsg_30", P = {
878
+ heading: Ye,
879
+ h1: Ke,
880
+ h2: Ze,
881
+ h3: Je,
882
+ h4: Qe,
883
+ h5: et,
884
+ h6: tt
885
+ }, rt = h(
882
886
  ({
883
887
  variant: e = "h3",
884
888
  className: t,
@@ -887,19 +891,19 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
887
891
  wordBreak: u,
888
892
  style: o,
889
893
  children: s,
890
- as: a,
894
+ as: c,
891
895
  ...i
892
- }, c) => /* @__PURE__ */ l(
893
- a ?? e,
896
+ }, l) => /* @__PURE__ */ a(
897
+ c ?? e,
894
898
  {
895
- className: C(L.heading, L[e], t),
899
+ className: E(P.heading, P[e], t),
896
900
  style: { color: r, whiteSpace: n, wordBreak: u, ...o },
897
- ref: c,
901
+ ref: l,
898
902
  ...i,
899
903
  children: s
900
904
  }
901
905
  )
902
- ), It = (e) => /* @__PURE__ */ l(et, { variant: "h2", ...e }), At = ({
906
+ ), At = (e) => /* @__PURE__ */ a(rt, { variant: "h2", ...e }), Lt = ({
903
907
  blockedKeys: e,
904
908
  blockMouse: t = !1,
905
909
  ...r
@@ -915,8 +919,8 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
915
919
  },
916
920
  [t]
917
921
  );
918
- return /* @__PURE__ */ l(
919
- w,
922
+ return /* @__PURE__ */ a(
923
+ v,
920
924
  {
921
925
  ...r,
922
926
  onKeyDown: n,
@@ -925,31 +929,31 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
925
929
  onMouseUp: u
926
930
  }
927
931
  );
928
- }, tt = (e, t) => e === t, Lt = (e, t, r = tt) => {
932
+ }, nt = (e, t) => e === t, Pt = (e, t, r = nt) => {
929
933
  const n = m(
930
934
  (i) => {
931
- e.some((c) => r(c, i)) || t([...e, i]);
935
+ e.some((l) => r(l, i)) || t([...e, i]);
932
936
  },
933
937
  [e, t, r]
934
938
  ), u = m(
935
939
  (i) => {
936
940
  t(
937
- i.reduce((c, d) => c.some((f) => r(f, d)) ? c : [...c, d], e)
941
+ i.reduce((l, d) => l.some((f) => r(f, d)) ? l : [...l, d], e)
938
942
  );
939
943
  },
940
944
  [e, t, r]
941
945
  ), o = m(
942
946
  (i) => {
943
- const c = e.findIndex((d) => r(d, i));
944
- c >= 0 && t(e.filter((d, f) => f !== c));
947
+ const l = e.findIndex((d) => r(d, i));
948
+ l >= 0 && t(e.filter((d, f) => f !== l));
945
949
  },
946
950
  [e, t, r]
947
951
  ), s = m(
948
952
  (i) => {
949
- t(e.filter((c) => !i.some((d) => r(d, c))));
953
+ t(e.filter((l) => !i.some((d) => r(d, l))));
950
954
  },
951
955
  [e, t, r]
952
- ), a = m(
956
+ ), c = m(
953
957
  (i) => {
954
958
  e.some((d) => r(d, i)) ? o(i) : n(i);
955
959
  },
@@ -960,7 +964,7 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
960
964
  addMultiple: u,
961
965
  remove: o,
962
966
  removeMultiple: s,
963
- toggle: a
967
+ toggle: c
964
968
  };
965
969
  }, T = (e) => {
966
970
  const [t, r] = g(e), n = m(() => {
@@ -971,7 +975,7 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
971
975
  r((s) => !s);
972
976
  }, [r]);
973
977
  return [t, n, u, o];
974
- }, Pt = (e, t) => {
978
+ }, zt = (e, t) => {
975
979
  const [r, n] = g(e);
976
980
  return p(() => {
977
981
  const u = setTimeout(() => {
@@ -981,7 +985,7 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
981
985
  clearTimeout(u);
982
986
  };
983
987
  }, [e, t]), r;
984
- }, zt = (e, t) => {
988
+ }, Ft = (e, t) => {
985
989
  const [r, n] = g(e);
986
990
  return p(() => {
987
991
  e && n(!0);
@@ -993,19 +997,19 @@ import './index.css';const ge = "_separatorLine_nzfcz_1", ye = {
993
997
  };
994
998
  }, [e, t]), r;
995
999
  };
996
- let rt = 0;
997
- const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
998
- const [t, r] = g(() => P(e));
999
- return p(() => r(P(e)), [e]), t;
1000
- }, b = (e, t, r) => {
1000
+ let ut = 0;
1001
+ const z = (e) => `webui-${e ? e + "-" : ""}${++ut}`, Mt = (e) => {
1002
+ const [t, r] = g(() => z(e));
1003
+ return p(() => r(z(e)), [e]), t;
1004
+ }, w = (e, t, r) => {
1001
1005
  const n = y(null);
1002
1006
  p(() => {
1003
1007
  n.current = r;
1004
1008
  }, [r]), p(() => {
1005
1009
  if (!(e.current && e.current.addEventListener)) return;
1006
- const o = (a) => {
1010
+ const o = (c) => {
1007
1011
  if (n.current)
1008
- return n.current(a);
1012
+ return n.current(c);
1009
1013
  };
1010
1014
  if (!e.current)
1011
1015
  return;
@@ -1014,35 +1018,35 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1014
1018
  s && s.removeEventListener(t, o);
1015
1019
  };
1016
1020
  }, [t, e]);
1017
- }, Mt = (e) => {
1021
+ }, Ot = (e) => {
1018
1022
  const [t, r, n] = T(!1);
1019
1023
  p(() => {
1020
1024
  document.activeElement === e.current ? r() : n();
1021
- }, [e, n, r]), b(e, "focus", r), b(e, "blur", n);
1025
+ }, [e, n, r]), w(e, "focus", r), w(e, "blur", n);
1022
1026
  const u = m(() => {
1023
1027
  e.current && e.current.focus();
1024
1028
  }, [e]), o = m(() => {
1025
1029
  e.current && e.current.blur();
1026
1030
  }, [e]);
1027
1031
  return { isInFocus: t, focus: u, blur: o };
1028
- }, Ot = (e) => {
1032
+ }, Ht = (e) => {
1029
1033
  const t = y(e);
1030
- return M(() => {
1034
+ return H(() => {
1031
1035
  t.current = e;
1032
1036
  }), m((...r) => {
1033
1037
  const { current: n } = t;
1034
1038
  return n(...r);
1035
1039
  }, []);
1036
- }, Ht = (e) => {
1037
- const t = V.useRef(e);
1038
- return t.current = e, t;
1039
1040
  }, Dt = (e) => {
1040
- const [t, r, n] = T(!1);
1041
- return b(e, "mouseover", r), b(e, "mouseout", n), t;
1041
+ const t = B.useRef(e);
1042
+ return t.current = e, t;
1042
1043
  }, Nt = (e) => {
1043
1044
  const [t, r, n] = T(!1);
1044
- return b(e, "mouseenter", r), b(e, "mouseleave", n), t;
1045
- }, Ut = (e, t) => {
1045
+ return w(e, "mouseover", r), w(e, "mouseout", n), t;
1046
+ }, Ut = (e) => {
1047
+ const [t, r, n] = T(!1);
1048
+ return w(e, "mouseenter", r), w(e, "mouseleave", n), t;
1049
+ }, Vt = (e, t) => {
1046
1050
  const r = y(() => {
1047
1051
  });
1048
1052
  p(() => {
@@ -1055,7 +1059,7 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1055
1059
  document.removeEventListener("mousedown", n), document.removeEventListener("touchstart", n);
1056
1060
  };
1057
1061
  }, [...e]);
1058
- }, Vt = (e, t, r) => {
1062
+ }, Bt = (e, t, r) => {
1059
1063
  const n = y(() => {
1060
1064
  });
1061
1065
  p(() => {
@@ -1068,21 +1072,21 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1068
1072
  document.removeEventListener("mousedown", u, r), document.removeEventListener("touchstart", u, r);
1069
1073
  };
1070
1074
  }, [e, r]);
1071
- }, z = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], Bt = (e, t) => {
1075
+ }, F = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], jt = (e, t) => {
1072
1076
  const r = y(() => {
1073
1077
  });
1074
1078
  p(() => {
1075
1079
  r.current = e;
1076
1080
  }, [e]), p(() => {
1077
- const n = fe(r.current, t);
1078
- return z.forEach((u) => window.addEventListener(u, n)), () => {
1079
- z.forEach(
1081
+ const n = ge(r.current, t);
1082
+ return F.forEach((u) => window.addEventListener(u, n)), () => {
1083
+ F.forEach(
1080
1084
  (u) => window.removeEventListener(u, n)
1081
1085
  );
1082
1086
  };
1083
1087
  }, [t]);
1084
- }, jt = (e, t) => {
1085
- const [r, n] = g(!1), { rootMargin: u, root: o, threshold: s } = t || {}, a = S(() => new IntersectionObserver(
1088
+ }, qt = (e, t) => {
1089
+ const [r, n] = g(!1), { rootMargin: u, root: o, threshold: s } = t || {}, c = S(() => new IntersectionObserver(
1086
1090
  ([i]) => n(i.isIntersecting),
1087
1091
  {
1088
1092
  rootMargin: u,
@@ -1090,48 +1094,48 @@ const P = (e) => `webui-${e ? e + "-" : ""}${++rt}`, Ft = (e) => {
1090
1094
  threshold: s
1091
1095
  }
1092
1096
  ), [n, u, o, s]);
1093
- return p(() => (e.current && a.observe(e.current), () => {
1094
- a.disconnect();
1095
- }), [a, e]), r;
1096
- }, qt = (e) => {
1097
+ return p(() => (e.current && c.observe(e.current), () => {
1098
+ c.disconnect();
1099
+ }), [c, e]), r;
1100
+ }, Wt = (e) => {
1097
1101
  const t = y(null);
1098
1102
  return p(() => {
1099
1103
  e && (typeof e == "function" ? e(t.current) : e.current = t.current);
1100
1104
  }), t;
1101
- }, Wt = (e, t, r = !0) => {
1105
+ }, Gt = (e, t, r = !0) => {
1102
1106
  const [n, u] = g(e), o = y(null), s = m(
1103
- (a, i = t) => {
1104
- u(a), r && clearTimeout(o.current), o.current = setTimeout(() => u(e), i);
1107
+ (c, i = t) => {
1108
+ u(c), r && clearTimeout(o.current), o.current = setTimeout(() => u(e), i);
1105
1109
  },
1106
1110
  [t, r, e]
1107
1111
  );
1108
1112
  return p(() => () => {
1109
1113
  clearTimeout(o.current);
1110
1114
  }, []), [n, s];
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) => {
1115
+ }, Xt = () => S(() => /* @__PURE__ */ new Date(), []), Yt = (e) => (t, r) => e(t).localeCompare(e(r)), Kt = (e) => (t, r) => e(t) - e(r), Zt = (e) => {
1112
1116
  throw new Error(`Switch unhandled case: ${e}`);
1113
- }, Zt = (e, t) => t, Jt = (e) => Object.keys(e).filter((t) => e[t]), Qt = (e) => {
1117
+ }, Jt = (e, t) => t, Qt = (e) => Object.keys(e).filter((t) => e[t]), er = (e) => {
1114
1118
  try {
1115
1119
  const t = parseFloat(e);
1116
1120
  return isNaN(t) || t == null ? void 0 : t;
1117
1121
  } catch {
1118
1122
  }
1119
- }, er = (e) => {
1123
+ }, tr = (e) => {
1120
1124
  try {
1121
1125
  const t = parseInt(e, 10);
1122
1126
  return isNaN(t) || t == null ? void 0 : t;
1123
1127
  } catch {
1124
1128
  }
1125
1129
  };
1126
- function tr(e, t) {
1130
+ function rr(e, t) {
1127
1131
  if (e == null)
1128
1132
  throw new Error("Invariant error: " + t);
1129
1133
  }
1130
- const rr = (e) => {
1131
- if (!q(e) || e.type !== W) return !1;
1134
+ const nr = (e) => {
1135
+ if (!W(e) || e.type !== G) return !1;
1132
1136
  const r = e.props.children;
1133
- return Array.isArray(r) ? r.every(F) : F(r);
1134
- }, F = (e) => e == null || e === !1, nr = (e) => {
1137
+ return Array.isArray(r) ? r.every(M) : M(r);
1138
+ }, M = (e) => e == null || e === !1, ur = (e) => {
1135
1139
  try {
1136
1140
  const t = new Intl.PluralRules(e);
1137
1141
  return (r) => t.select(r);
@@ -1149,66 +1153,67 @@ const rr = (e) => {
1149
1153
  }
1150
1154
  };
1151
1155
  }
1152
- }, ur = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
1156
+ }, or = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
1153
1157
  export {
1154
- H as AccessibleFontSizeContext,
1155
- wt as AccessibleFontSizeProvider,
1156
- At as BlockKeyboardEvents,
1157
- w as Box,
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,
1176
- _ as Text,
1177
- $t as Txt,
1158
+ N as AccessibleFontSizeContext,
1159
+ kt as AccessibleFontSizeProvider,
1160
+ Lt as BlockKeyboardEvents,
1161
+ v as Box,
1162
+ ft as Clickable,
1163
+ gt as Column,
1164
+ At as HeaderText,
1165
+ rt as Heading,
1166
+ vt as Indent,
1167
+ It as LargeText,
1168
+ xt as Nest,
1169
+ Et as P,
1170
+ Xe as Paragraph,
1171
+ yt as ResizeAwareBox,
1172
+ Oe as Row,
1173
+ St as ScreenReaderOnlyText,
1174
+ I as SeparatorLine,
1175
+ ht as SeparatorText,
1176
+ Ct as SmallText,
1177
+ Tt as SmallerText,
1178
+ wt as Space,
1179
+ bt as Spacing,
1180
+ Rt as StandardText,
1181
+ x as Text,
1182
+ mt as Txt,
1178
1183
  $ as booleanOrNumberToNumber,
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,
1184
+ Kt as byNumberField,
1185
+ Yt as byStringField,
1186
+ Jt as exhaustSwitchCase,
1187
+ Zt as exhaustSwitchCaseElseThrow,
1188
+ $t as getAriaProps,
1189
+ qe as getDataProps,
1190
+ De as getDimensionObject,
1191
+ rr as invariant,
1192
+ nr as isEmptyFragment,
1193
+ er as parseFloatElseUndefined,
1194
+ tr as parseIntElseUndefined,
1195
+ or as pluralFormatter,
1196
+ ur as selectPluralRule,
1197
+ Qt as truthyKeysAsList,
1198
+ _t as useAccessibleFontSizeContext,
1199
+ Pt as useArraySet,
1195
1200
  T as useBoolean,
1196
- Pt as useDebounce,
1197
- zt as useDelayedFalse,
1198
- Ft as useDomId,
1199
- Ie as useElementDimensions,
1200
- Mt as useElementFocus,
1201
- Ot as useEventCallback,
1202
- b as useEventListener,
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,
1201
+ zt as useDebounce,
1202
+ Ft as useDelayedFalse,
1203
+ Mt as useDomId,
1204
+ Ue as useElementDimensions,
1205
+ Ot as useElementFocus,
1206
+ Ht as useEventCallback,
1207
+ w as useEventListener,
1208
+ Wt as useForwardedRef,
1209
+ Dt as useLatest,
1210
+ Ut as useMouseIsEntered,
1211
+ Nt as useMouseIsOver,
1212
+ Vt as useMultiOnClickOutside,
1213
+ Bt as useOnClickOutside,
1214
+ jt as useOnNoMouseMovement,
1215
+ qt as useOnScreen,
1216
+ Gt as useTimeoutState,
1212
1217
  Xt as useToday
1213
1218
  };
1214
1219
  //# sourceMappingURL=index.es.js.map