@stenajs-webui/core 23.21.6 → 23.21.8

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/README.md CHANGED
@@ -28,6 +28,11 @@ Box is the main building stone which most other components are derived from.
28
28
 
29
29
  - SeparatorLine
30
30
 
31
+ ### Accessibility
32
+
33
+ - [Lively](src/accessibility/lively/Lively.md)
34
+ - ScreenReaderOnlyText
35
+
31
36
  ## Hooks
32
37
 
33
38
  `core` includes a collection of hooks.
@@ -0,0 +1,36 @@
1
+ import * as React from "react";
2
+ import { DivProps } from "../../types/ElementProps";
3
+ export type LivelyPoliteness = "off" | "polite" | "assertive";
4
+ export interface LivelyProps extends Omit<DivProps, "aria-live"> {
5
+ /**
6
+ * How eagerly assistive technology should announce changes to the content.
7
+ *
8
+ * - `polite` waits until the user is idle.
9
+ * - `assertive` interrupts the user, and should be used sparingly.
10
+ * - `off` stops announcing changes, without removing the region.
11
+ *
12
+ * @default "polite"
13
+ */
14
+ politeness?: LivelyPoliteness;
15
+ }
16
+ /**
17
+ * Turns its children into an ARIA live region, so that changes to the content
18
+ * are announced by screen readers.
19
+ *
20
+ * The wrapper renders with `display: contents`, which means it does not create
21
+ * a box of its own. Children keep participating in the parent layout, so gap,
22
+ * alignment and `:nth-child` selectors work exactly as they did without the
23
+ * wrapper.
24
+ *
25
+ * The region must be rendered before the content changes, since screen readers
26
+ * only announce updates to live regions that already exist. Render `Lively`
27
+ * around the place where the content will appear, rather than mounting it
28
+ * together with the content.
29
+ *
30
+ * @example
31
+ * <Column gap={2}>
32
+ * <Heading variant={"h2"}>Search</Heading>
33
+ * <Lively>{numResults != null && <Text>{numResults} hits</Text>}</Lively>
34
+ * </Column>
35
+ */
36
+ export declare const Lively: React.ForwardRefExoticComponent<LivelyProps & React.RefAttributes<HTMLDivElement>>;
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- ._separatorLine_nzfcz_1{display:flex;border:0;margin:0;flex:none}._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)}._visuallyHidden_1gevf_1{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}._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}
1
+ ._separatorLine_nzfcz_1{display:flex;border:0;margin:0;flex:none}._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)}._lively_1k3wm_6{display:contents}._visuallyHidden_1gevf_1{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}._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}
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ export * from "./components/layout/space/Space";
12
12
  export * from "./components/util/Nest";
13
13
  export * from "./accessibility/accessible-font-size-detector/AccessibleFontSizeProvider";
14
14
  export * from "./accessibility/accessible-font-size-detector/UseAccessibleFontSizeContext";
15
+ export * from "./accessibility/lively/Lively";
15
16
  export * from "./accessibility/screen-reader-only-text/ScreenReaderOnlyText";
16
17
  export * from "./components/text/Text";
17
18
  export * from "./components/text/Paragraph";
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { cssColor as V } from "@stenajs-webui/theme";
2
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";
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 E, useContext as q, isValidElement as W, Fragment as G } from "react";
4
+ import S from "classnames";
5
5
  import C from "@emotion/styled";
6
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
7
  import { memoize as fe, pickBy as D, debounce as ge } from "lodash-es";
@@ -55,7 +55,7 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
55
55
  }, _) => /* @__PURE__ */ a(
56
56
  "span",
57
57
  {
58
- className: E(b.text, b[t], b[r], n),
58
+ className: S(b.text, b[t], b[r], n),
59
59
  ref: _,
60
60
  style: {
61
61
  color: u,
@@ -71,7 +71,7 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
71
71
  children: e
72
72
  }
73
73
  )
74
- ), mt = x, $ = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, Te = (e) => {
74
+ ), ft = x, $ = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, Te = (e) => {
75
75
  if (e !== 0)
76
76
  return `calc(${e} * var(--swui-metrics-space))`;
77
77
  }, A = (e) => Te($(e)), Re = {
@@ -664,7 +664,7 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
664
664
  function(t, r) {
665
665
  return /* @__PURE__ */ a(v, { row: !0, ref: r, ...t });
666
666
  }
667
- ), ht = ({ children: e }) => /* @__PURE__ */ O(Oe, { alignItems: "center", gap: 2, children: [
667
+ ), gt = ({ children: e }) => /* @__PURE__ */ O(Oe, { alignItems: "center", gap: 2, children: [
668
668
  /* @__PURE__ */ a(v, { flexGrow: 1, children: /* @__PURE__ */ a(I, {}) }),
669
669
  typeof e == "string" ? /* @__PURE__ */ a(x, { children: e }) : e,
670
670
  /* @__PURE__ */ a(v, { flexGrow: 1, children: /* @__PURE__ */ a(I, {}) })
@@ -691,7 +691,7 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
691
691
  ${({ width: e }) => e ? `width: ${e};` : ""}
692
692
  ${({ height: e }) => e ? `height: ${e};` : ""}
693
693
  ${({ borderRadius: e }) => e ? `border-radius: ${e};` : ""}
694
- `, ft = h(
694
+ `, yt = h(
695
695
  ({
696
696
  disableFocusHighlight: e,
697
697
  onClick: t,
@@ -727,7 +727,7 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
727
727
  children: i
728
728
  }
729
729
  )
730
- ), gt = h(
730
+ ), vt = h(
731
731
  function(t, r) {
732
732
  return /* @__PURE__ */ a(v, { ref: r, ...t });
733
733
  }
@@ -757,14 +757,14 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
757
757
  }, [u]), {
758
758
  dimensions: r
759
759
  };
760
- }, yt = h(
760
+ }, bt = h(
761
761
  function({ onResize: t, ...r }, n) {
762
762
  const u = y(null);
763
763
  return Ue(n ?? u, t), /* @__PURE__ */ a(v, { ...r, ref: n });
764
764
  }
765
- ), vt = h(function({ num: t = 1, ...r }, n) {
765
+ ), wt = h(function({ num: t = 1, ...r }, n) {
766
766
  return /* @__PURE__ */ a(v, { indent: t, ref: n, ...r });
767
- }), bt = h(
767
+ }), xt = h(
768
768
  function({ num: t = 1, ...r }, n) {
769
769
  return /* @__PURE__ */ a(v, { spacing: t, ref: n, ...r });
770
770
  }
@@ -773,7 +773,7 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
773
773
  flex: none;
774
774
  width: calc(var(--current-size) * var(--swui-metrics-space));
775
775
  height: calc(var(--current-size) * var(--swui-metrics-space));
776
- `, wt = ({
776
+ `, kt = ({
777
777
  half: e = !1,
778
778
  horizontal: t = !1,
779
779
  num: r = 1,
@@ -790,10 +790,10 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
790
790
  }
791
791
  }
792
792
  );
793
- }, xt = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ a(R, { children: r(e) }) : /* @__PURE__ */ a(R, { children: e }), N = j({
793
+ }, _t = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ a(R, { children: r(e) }) : /* @__PURE__ */ a(R, { children: e }), N = j({
794
794
  isFontLarge: !1,
795
795
  fontSizeRatio: 1
796
- }), L = 12, kt = ({ children: e }) => {
796
+ }), L = 12, $t = ({ children: e }) => {
797
797
  const t = y(null), [r, n] = g(!1), [u, o] = g(1);
798
798
  p(() => {
799
799
  if (!t.current)
@@ -806,7 +806,7 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
806
806
  });
807
807
  return c.observe(t.current), () => c.disconnect();
808
808
  }, []);
809
- const s = S(
809
+ const s = E(
810
810
  () => ({ isFontLarge: r, fontSizeRatio: u }),
811
811
  [u, r]
812
812
  );
@@ -829,18 +829,31 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
829
829
  ),
830
830
  e
831
831
  ] });
832
- }, _t = () => {
832
+ }, St = () => {
833
833
  const e = q(N);
834
834
  return e || {
835
835
  isFontLarge: !1,
836
836
  fontSizeRatio: 1
837
837
  };
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 = ({
838
+ }, Be = "_lively_1k3wm_6", je = {
839
+ lively: Be
840
+ }, Et = h(function({ politeness: t = "polite", className: r, children: n, ...u }, o) {
841
+ return /* @__PURE__ */ a(
842
+ "div",
843
+ {
844
+ ref: o,
845
+ className: S(je.lively, r),
846
+ "aria-live": t,
847
+ ...u,
848
+ children: n
849
+ }
850
+ );
851
+ }), qe = "_visuallyHidden_1gevf_1", We = {
852
+ visuallyHidden: qe
853
+ }, Ge = (e) => D(e, Xe), Ct = (e) => D(e, Ye), Xe = (e, t) => t.startsWith("data-") || t.startsWith("aria-"), Ye = (e, t) => t.startsWith("aria-"), Tt = ({
841
854
  children: e,
842
855
  ...t
843
- }) => /* @__PURE__ */ a("span", { className: je.visuallyHidden, ...qe(t), children: e }), Xe = h(
856
+ }) => /* @__PURE__ */ a("span", { className: We.visuallyHidden, ...Ge(t), children: e }), Ke = h(
844
857
  ({
845
858
  children: e,
846
859
  variant: t = "standard",
@@ -858,7 +871,7 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
858
871
  }, _) => /* @__PURE__ */ a(
859
872
  "p",
860
873
  {
861
- className: E(b.text, b[t], b[r], n),
874
+ className: S(b.text, b[t], b[r], n),
862
875
  ref: _,
863
876
  style: {
864
877
  color: u,
@@ -874,15 +887,15 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
874
887
  children: e
875
888
  }
876
889
  )
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(
890
+ ), Rt = Ke, It = (e) => /* @__PURE__ */ a(x, { size: "small", ...e }), At = (e) => /* @__PURE__ */ a(x, { size: "smaller", ...e }), Lt = (e) => /* @__PURE__ */ a(x, { size: "medium", ...e }), Pt = (e) => /* @__PURE__ */ a(x, { size: "large", ...e }), Ze = "_heading_1cnsg_1", Je = "_h1_1cnsg_10", Qe = "_h2_1cnsg_14", et = "_h3_1cnsg_18", tt = "_h4_1cnsg_22", rt = "_h5_1cnsg_26", nt = "_h6_1cnsg_30", P = {
891
+ heading: Ze,
892
+ h1: Je,
893
+ h2: Qe,
894
+ h3: et,
895
+ h4: tt,
896
+ h5: rt,
897
+ h6: nt
898
+ }, ut = h(
886
899
  ({
887
900
  variant: e = "h3",
888
901
  className: t,
@@ -896,14 +909,14 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
896
909
  }, l) => /* @__PURE__ */ a(
897
910
  c ?? e,
898
911
  {
899
- className: E(P.heading, P[e], t),
912
+ className: S(P.heading, P[e], t),
900
913
  style: { color: r, whiteSpace: n, wordBreak: u, ...o },
901
914
  ref: l,
902
915
  ...i,
903
916
  children: s
904
917
  }
905
918
  )
906
- ), At = (e) => /* @__PURE__ */ a(rt, { variant: "h2", ...e }), Lt = ({
919
+ ), zt = (e) => /* @__PURE__ */ a(ut, { variant: "h2", ...e }), Ft = ({
907
920
  blockedKeys: e,
908
921
  blockMouse: t = !1,
909
922
  ...r
@@ -929,7 +942,7 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
929
942
  onMouseUp: u
930
943
  }
931
944
  );
932
- }, nt = (e, t) => e === t, Pt = (e, t, r = nt) => {
945
+ }, ot = (e, t) => e === t, Mt = (e, t, r = ot) => {
933
946
  const n = m(
934
947
  (i) => {
935
948
  e.some((l) => r(l, i)) || t([...e, i]);
@@ -975,7 +988,7 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
975
988
  r((s) => !s);
976
989
  }, [r]);
977
990
  return [t, n, u, o];
978
- }, zt = (e, t) => {
991
+ }, Ot = (e, t) => {
979
992
  const [r, n] = g(e);
980
993
  return p(() => {
981
994
  const u = setTimeout(() => {
@@ -985,7 +998,7 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
985
998
  clearTimeout(u);
986
999
  };
987
1000
  }, [e, t]), r;
988
- }, Ft = (e, t) => {
1001
+ }, Ht = (e, t) => {
989
1002
  const [r, n] = g(e);
990
1003
  return p(() => {
991
1004
  e && n(!0);
@@ -997,8 +1010,8 @@ import './index.css';const ye = "_separatorLine_nzfcz_1", ve = {
997
1010
  };
998
1011
  }, [e, t]), r;
999
1012
  };
1000
- let ut = 0;
1001
- const z = (e) => `webui-${e ? e + "-" : ""}${++ut}`, Mt = (e) => {
1013
+ let st = 0;
1014
+ const z = (e) => `webui-${e ? e + "-" : ""}${++st}`, Dt = (e) => {
1002
1015
  const [t, r] = g(() => z(e));
1003
1016
  return p(() => r(z(e)), [e]), t;
1004
1017
  }, w = (e, t, r) => {
@@ -1018,7 +1031,7 @@ const z = (e) => `webui-${e ? e + "-" : ""}${++ut}`, Mt = (e) => {
1018
1031
  s && s.removeEventListener(t, o);
1019
1032
  };
1020
1033
  }, [t, e]);
1021
- }, Ot = (e) => {
1034
+ }, Nt = (e) => {
1022
1035
  const [t, r, n] = T(!1);
1023
1036
  p(() => {
1024
1037
  document.activeElement === e.current ? r() : n();
@@ -1029,7 +1042,7 @@ const z = (e) => `webui-${e ? e + "-" : ""}${++ut}`, Mt = (e) => {
1029
1042
  e.current && e.current.blur();
1030
1043
  }, [e]);
1031
1044
  return { isInFocus: t, focus: u, blur: o };
1032
- }, Ht = (e) => {
1045
+ }, Ut = (e) => {
1033
1046
  const t = y(e);
1034
1047
  return H(() => {
1035
1048
  t.current = e;
@@ -1037,16 +1050,16 @@ const z = (e) => `webui-${e ? e + "-" : ""}${++ut}`, Mt = (e) => {
1037
1050
  const { current: n } = t;
1038
1051
  return n(...r);
1039
1052
  }, []);
1040
- }, Dt = (e) => {
1053
+ }, Vt = (e) => {
1041
1054
  const t = B.useRef(e);
1042
1055
  return t.current = e, t;
1043
- }, Nt = (e) => {
1056
+ }, Bt = (e) => {
1044
1057
  const [t, r, n] = T(!1);
1045
1058
  return w(e, "mouseover", r), w(e, "mouseout", n), t;
1046
- }, Ut = (e) => {
1059
+ }, jt = (e) => {
1047
1060
  const [t, r, n] = T(!1);
1048
1061
  return w(e, "mouseenter", r), w(e, "mouseleave", n), t;
1049
- }, Vt = (e, t) => {
1062
+ }, qt = (e, t) => {
1050
1063
  const r = y(() => {
1051
1064
  });
1052
1065
  p(() => {
@@ -1059,7 +1072,7 @@ const z = (e) => `webui-${e ? e + "-" : ""}${++ut}`, Mt = (e) => {
1059
1072
  document.removeEventListener("mousedown", n), document.removeEventListener("touchstart", n);
1060
1073
  };
1061
1074
  }, [...e]);
1062
- }, Bt = (e, t, r) => {
1075
+ }, Wt = (e, t, r) => {
1063
1076
  const n = y(() => {
1064
1077
  });
1065
1078
  p(() => {
@@ -1072,7 +1085,7 @@ const z = (e) => `webui-${e ? e + "-" : ""}${++ut}`, Mt = (e) => {
1072
1085
  document.removeEventListener("mousedown", u, r), document.removeEventListener("touchstart", u, r);
1073
1086
  };
1074
1087
  }, [e, r]);
1075
- }, F = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], jt = (e, t) => {
1088
+ }, F = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], Gt = (e, t) => {
1076
1089
  const r = y(() => {
1077
1090
  });
1078
1091
  p(() => {
@@ -1085,8 +1098,8 @@ const z = (e) => `webui-${e ? e + "-" : ""}${++ut}`, Mt = (e) => {
1085
1098
  );
1086
1099
  };
1087
1100
  }, [t]);
1088
- }, qt = (e, t) => {
1089
- const [r, n] = g(!1), { rootMargin: u, root: o, threshold: s } = t || {}, c = S(() => new IntersectionObserver(
1101
+ }, Xt = (e, t) => {
1102
+ const [r, n] = g(!1), { rootMargin: u, root: o, threshold: s } = t || {}, c = E(() => new IntersectionObserver(
1090
1103
  ([i]) => n(i.isIntersecting),
1091
1104
  {
1092
1105
  rootMargin: u,
@@ -1097,12 +1110,12 @@ const z = (e) => `webui-${e ? e + "-" : ""}${++ut}`, Mt = (e) => {
1097
1110
  return p(() => (e.current && c.observe(e.current), () => {
1098
1111
  c.disconnect();
1099
1112
  }), [c, e]), r;
1100
- }, Wt = (e) => {
1113
+ }, Yt = (e) => {
1101
1114
  const t = y(null);
1102
1115
  return p(() => {
1103
1116
  e && (typeof e == "function" ? e(t.current) : e.current = t.current);
1104
1117
  }), t;
1105
- }, Gt = (e, t, r = !0) => {
1118
+ }, Kt = (e, t, r = !0) => {
1106
1119
  const [n, u] = g(e), o = y(null), s = m(
1107
1120
  (c, i = t) => {
1108
1121
  u(c), r && clearTimeout(o.current), o.current = setTimeout(() => u(e), i);
@@ -1112,30 +1125,30 @@ const z = (e) => `webui-${e ? e + "-" : ""}${++ut}`, Mt = (e) => {
1112
1125
  return p(() => () => {
1113
1126
  clearTimeout(o.current);
1114
1127
  }, []), [n, s];
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) => {
1128
+ }, Zt = () => E(() => /* @__PURE__ */ new Date(), []), Jt = (e) => (t, r) => e(t).localeCompare(e(r)), Qt = (e) => (t, r) => e(t) - e(r), er = (e) => {
1116
1129
  throw new Error(`Switch unhandled case: ${e}`);
1117
- }, Jt = (e, t) => t, Qt = (e) => Object.keys(e).filter((t) => e[t]), er = (e) => {
1130
+ }, tr = (e, t) => t, rr = (e) => Object.keys(e).filter((t) => e[t]), nr = (e) => {
1118
1131
  try {
1119
1132
  const t = parseFloat(e);
1120
1133
  return isNaN(t) || t == null ? void 0 : t;
1121
1134
  } catch {
1122
1135
  }
1123
- }, tr = (e) => {
1136
+ }, ur = (e) => {
1124
1137
  try {
1125
1138
  const t = parseInt(e, 10);
1126
1139
  return isNaN(t) || t == null ? void 0 : t;
1127
1140
  } catch {
1128
1141
  }
1129
1142
  };
1130
- function rr(e, t) {
1143
+ function or(e, t) {
1131
1144
  if (e == null)
1132
1145
  throw new Error("Invariant error: " + t);
1133
1146
  }
1134
- const nr = (e) => {
1147
+ const sr = (e) => {
1135
1148
  if (!W(e) || e.type !== G) return !1;
1136
1149
  const r = e.props.children;
1137
1150
  return Array.isArray(r) ? r.every(M) : M(r);
1138
- }, M = (e) => e == null || e === !1, ur = (e) => {
1151
+ }, M = (e) => e == null || e === !1, ir = (e) => {
1139
1152
  try {
1140
1153
  const t = new Intl.PluralRules(e);
1141
1154
  return (r) => t.select(r);
@@ -1153,67 +1166,68 @@ const nr = (e) => {
1153
1166
  }
1154
1167
  };
1155
1168
  }
1156
- }, or = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
1169
+ }, ar = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
1157
1170
  export {
1158
1171
  N as AccessibleFontSizeContext,
1159
- kt as AccessibleFontSizeProvider,
1160
- Lt as BlockKeyboardEvents,
1172
+ $t as AccessibleFontSizeProvider,
1173
+ Ft as BlockKeyboardEvents,
1161
1174
  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,
1175
+ yt as Clickable,
1176
+ vt as Column,
1177
+ zt as HeaderText,
1178
+ ut as Heading,
1179
+ wt as Indent,
1180
+ Pt as LargeText,
1181
+ Et as Lively,
1182
+ _t as Nest,
1183
+ Rt as P,
1184
+ Ke as Paragraph,
1185
+ bt as ResizeAwareBox,
1172
1186
  Oe as Row,
1173
- St as ScreenReaderOnlyText,
1187
+ Tt as ScreenReaderOnlyText,
1174
1188
  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,
1189
+ gt as SeparatorText,
1190
+ It as SmallText,
1191
+ At as SmallerText,
1192
+ kt as Space,
1193
+ xt as Spacing,
1194
+ Lt as StandardText,
1181
1195
  x as Text,
1182
- mt as Txt,
1196
+ ft as Txt,
1183
1197
  $ as booleanOrNumberToNumber,
1184
- Kt as byNumberField,
1185
- Yt as byStringField,
1186
- Jt as exhaustSwitchCase,
1187
- Zt as exhaustSwitchCaseElseThrow,
1188
- $t as getAriaProps,
1189
- qe as getDataProps,
1198
+ Qt as byNumberField,
1199
+ Jt as byStringField,
1200
+ tr as exhaustSwitchCase,
1201
+ er as exhaustSwitchCaseElseThrow,
1202
+ Ct as getAriaProps,
1203
+ Ge as getDataProps,
1190
1204
  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,
1205
+ or as invariant,
1206
+ sr as isEmptyFragment,
1207
+ nr as parseFloatElseUndefined,
1208
+ ur as parseIntElseUndefined,
1209
+ ar as pluralFormatter,
1210
+ ir as selectPluralRule,
1211
+ rr as truthyKeysAsList,
1212
+ St as useAccessibleFontSizeContext,
1213
+ Mt as useArraySet,
1200
1214
  T as useBoolean,
1201
- zt as useDebounce,
1202
- Ft as useDelayedFalse,
1203
- Mt as useDomId,
1215
+ Ot as useDebounce,
1216
+ Ht as useDelayedFalse,
1217
+ Dt as useDomId,
1204
1218
  Ue as useElementDimensions,
1205
- Ot as useElementFocus,
1206
- Ht as useEventCallback,
1219
+ Nt as useElementFocus,
1220
+ Ut as useEventCallback,
1207
1221
  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,
1217
- Xt as useToday
1222
+ Yt as useForwardedRef,
1223
+ Vt as useLatest,
1224
+ jt as useMouseIsEntered,
1225
+ Bt as useMouseIsOver,
1226
+ qt as useMultiOnClickOutside,
1227
+ Wt as useOnClickOutside,
1228
+ Gt as useOnNoMouseMovement,
1229
+ Xt as useOnScreen,
1230
+ Kt as useTimeoutState,
1231
+ Zt as useToday
1218
1232
  };
1219
1233
  //# sourceMappingURL=index.es.js.map