@stenajs-webui/core 25.15.1 → 26.0.1
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/accessibility/lively/Lively.d.ts +1 -1
- package/dist/components/deprecated-text/HeaderText.d.ts +3 -1
- package/dist/components/heading/Heading.d.ts +20 -4
- package/dist/index.css +1 -1
- package/dist/index.es.js +227 -210
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { cssColor as X } from "@stenajs-webui/theme";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import Y, { forwardRef as g, useState as v, useCallback as p, useLayoutEffect as
|
|
4
|
-
import
|
|
2
|
+
import { jsx as a, jsxs as U, Fragment as O } from "react/jsx-runtime";
|
|
3
|
+
import Y, { forwardRef as g, useState as v, useCallback as p, useLayoutEffect as V, useRef as f, createContext as K, useEffect as m, useMemo as C, useContext as Z, isValidElement as J, Fragment as Q } from "react";
|
|
4
|
+
import E from "classnames";
|
|
5
5
|
import L from "@emotion/styled";
|
|
6
|
-
import { background as ee, border as te, borderRight as re, borderLeft as ne, borderTop as ue, borderBottom as oe, borderColor as se, borderRadius as ie, borderStyle as
|
|
7
|
-
import { memoize as xe, pickBy as
|
|
8
|
-
import './index.css';const
|
|
9
|
-
separatorLine:
|
|
10
|
-
},
|
|
6
|
+
import { background as ee, border as te, borderRight as re, borderLeft as ne, borderTop as ue, borderBottom as oe, borderColor as se, borderRadius as ie, borderStyle as ae, borderWidth as ce, boxShadow as le, flexbox as de, overflow as pe, position as me, layout as he, zIndex as fe, left as ge, right as ye, top as ve, bottom as be, system as we } from "styled-system";
|
|
7
|
+
import { memoize as xe, pickBy as B, debounce as _e } from "lodash-es";
|
|
8
|
+
import './index.css';const ke = "_separatorLine_nzfcz_1", $e = {
|
|
9
|
+
separatorLine: ke
|
|
10
|
+
}, F = g(
|
|
11
11
|
({
|
|
12
12
|
color: e = X("--lhds-color-ui-400"),
|
|
13
13
|
size: t = "100%",
|
|
14
14
|
width: r = "1px",
|
|
15
15
|
vertical: n = !1
|
|
16
|
-
}, u) => /* @__PURE__ */
|
|
16
|
+
}, u) => /* @__PURE__ */ a(
|
|
17
17
|
"hr",
|
|
18
18
|
{
|
|
19
19
|
className: $e.separatorLine,
|
|
@@ -27,16 +27,16 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
27
27
|
ref: u
|
|
28
28
|
}
|
|
29
29
|
)
|
|
30
|
-
), Se = "_text_1iisw_1",
|
|
30
|
+
), Se = "_text_1iisw_1", ze = "_standard_1iisw_24", Te = "_bold_1iisw_27", Ce = "_caption_1iisw_31", Ee = "_overline_1iisw_39", Ie = "_large_1iisw_48", Re = "_medium_1iisw_53", Le = "_small_1iisw_58", Ae = "_smaller_1iisw_63", $ = {
|
|
31
31
|
text: Se,
|
|
32
|
-
standard:
|
|
33
|
-
bold:
|
|
34
|
-
caption:
|
|
35
|
-
overline:
|
|
36
|
-
large:
|
|
37
|
-
medium:
|
|
38
|
-
small:
|
|
39
|
-
smaller:
|
|
32
|
+
standard: ze,
|
|
33
|
+
bold: Te,
|
|
34
|
+
caption: Ce,
|
|
35
|
+
overline: Ee,
|
|
36
|
+
large: Ie,
|
|
37
|
+
medium: Re,
|
|
38
|
+
small: Le,
|
|
39
|
+
smaller: Ae
|
|
40
40
|
}, x = g(
|
|
41
41
|
({
|
|
42
42
|
children: e,
|
|
@@ -48,14 +48,14 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
48
48
|
whiteSpace: i,
|
|
49
49
|
wordBreak: l,
|
|
50
50
|
textAlign: s = "left",
|
|
51
|
-
overflow:
|
|
51
|
+
overflow: c,
|
|
52
52
|
textOverflow: d,
|
|
53
53
|
style: h,
|
|
54
54
|
...y
|
|
55
|
-
}, b) => /* @__PURE__ */
|
|
55
|
+
}, b) => /* @__PURE__ */ a(
|
|
56
56
|
"span",
|
|
57
57
|
{
|
|
58
|
-
className:
|
|
58
|
+
className: E($.text, $[t], $[r], n),
|
|
59
59
|
ref: b,
|
|
60
60
|
style: {
|
|
61
61
|
color: u,
|
|
@@ -63,7 +63,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
63
63
|
whiteSpace: i,
|
|
64
64
|
wordBreak: l,
|
|
65
65
|
textAlign: s,
|
|
66
|
-
overflow:
|
|
66
|
+
overflow: c,
|
|
67
67
|
textOverflow: d,
|
|
68
68
|
...h
|
|
69
69
|
},
|
|
@@ -71,10 +71,10 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
71
71
|
children: e
|
|
72
72
|
}
|
|
73
73
|
)
|
|
74
|
-
),
|
|
74
|
+
), bt = x, T = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : e, Pe = (e) => {
|
|
75
75
|
if (e !== 0)
|
|
76
76
|
return `calc(${e} * var(--swui-metrics-space))`;
|
|
77
|
-
},
|
|
77
|
+
}, M = (e) => Pe(T(e)), Oe = {
|
|
78
78
|
// react props
|
|
79
79
|
// https://github.com/facebook/react/blob/5495a7f24aef85ba6937truetrue1ce962673ca9f5fde6/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js
|
|
80
80
|
children: !0,
|
|
@@ -561,7 +561,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
561
561
|
for: !0,
|
|
562
562
|
class: !0,
|
|
563
563
|
autofocus: !0
|
|
564
|
-
}, Fe = `^((${Object.keys(
|
|
564
|
+
}, Fe = `^((${Object.keys(Oe).join(
|
|
565
565
|
"|"
|
|
566
566
|
)})|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$`, Me = new RegExp(Fe), De = xe(
|
|
567
567
|
(e) => Me.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91
|
|
@@ -578,7 +578,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
578
578
|
"height",
|
|
579
579
|
"overflow",
|
|
580
580
|
"display"
|
|
581
|
-
],
|
|
581
|
+
], je = (e) => Ne.includes(e), Ue = we({
|
|
582
582
|
row: {
|
|
583
583
|
property: "flexDirection",
|
|
584
584
|
transform: (e) => e ? "row" : "column"
|
|
@@ -586,32 +586,32 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
586
586
|
indent: {
|
|
587
587
|
// @ts-expect-error Sets a CSS property.
|
|
588
588
|
property: "--current-indent",
|
|
589
|
-
transform:
|
|
589
|
+
transform: T
|
|
590
590
|
},
|
|
591
591
|
spacing: {
|
|
592
592
|
// @ts-expect-error Sets a CSS property.
|
|
593
593
|
property: "--current-spacing",
|
|
594
|
-
transform:
|
|
594
|
+
transform: T
|
|
595
595
|
},
|
|
596
596
|
gap: {
|
|
597
597
|
// @ts-expect-error Sets a CSS property.
|
|
598
598
|
property: "--current-gap",
|
|
599
|
-
transform:
|
|
599
|
+
transform: T
|
|
600
600
|
},
|
|
601
601
|
columnGap: {
|
|
602
602
|
property: "columnGap",
|
|
603
|
-
transform:
|
|
603
|
+
transform: M
|
|
604
604
|
},
|
|
605
605
|
rowGap: {
|
|
606
606
|
property: "rowGap",
|
|
607
|
-
transform:
|
|
607
|
+
transform: M
|
|
608
608
|
},
|
|
609
609
|
shadow: {
|
|
610
610
|
property: "boxShadow",
|
|
611
611
|
transform: (e) => He[e] ?? e
|
|
612
612
|
}
|
|
613
613
|
}), w = L("div", {
|
|
614
|
-
shouldForwardProp: (e) => typeof e == "string" ?
|
|
614
|
+
shouldForwardProp: (e) => typeof e == "string" ? je(e) ? !1 : De(e) : !1
|
|
615
615
|
})`
|
|
616
616
|
--current-spacing: 0;
|
|
617
617
|
--current-indent: 0;
|
|
@@ -619,7 +619,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
619
619
|
box-sizing: border-box;
|
|
620
620
|
display: flex;
|
|
621
621
|
flex-direction: column;
|
|
622
|
-
${
|
|
622
|
+
${Ue};
|
|
623
623
|
${ee};
|
|
624
624
|
${te};
|
|
625
625
|
${re};
|
|
@@ -628,8 +628,8 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
628
628
|
${oe};
|
|
629
629
|
${se};
|
|
630
630
|
${ie};
|
|
631
|
-
${ce};
|
|
632
631
|
${ae};
|
|
632
|
+
${ce};
|
|
633
633
|
${le};
|
|
634
634
|
${de};
|
|
635
635
|
${pe};
|
|
@@ -660,15 +660,15 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
660
660
|
${({ focusWithinBackground: e }) => e ? `background: ${e};` : ""}
|
|
661
661
|
${({ focusWithinBorder: e }) => e ? `border: ${e};` : ""}
|
|
662
662
|
}
|
|
663
|
-
`,
|
|
663
|
+
`, Ve = g(
|
|
664
664
|
function(t, r) {
|
|
665
|
-
return /* @__PURE__ */
|
|
665
|
+
return /* @__PURE__ */ a(w, { row: !0, ref: r, ...t });
|
|
666
666
|
}
|
|
667
|
-
),
|
|
668
|
-
/* @__PURE__ */
|
|
669
|
-
typeof e == "string" ? /* @__PURE__ */
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
] }),
|
|
667
|
+
), wt = ({ children: e }) => /* @__PURE__ */ U(Ve, { alignItems: "center", gap: 2, children: [
|
|
668
|
+
/* @__PURE__ */ a(w, { flexGrow: 1, children: /* @__PURE__ */ a(F, {}) }),
|
|
669
|
+
typeof e == "string" ? /* @__PURE__ */ a(x, { children: e }) : e,
|
|
670
|
+
/* @__PURE__ */ a(w, { flexGrow: 1, children: /* @__PURE__ */ a(F, {}) })
|
|
671
|
+
] }), Be = L.button`
|
|
672
672
|
display: inline-block;
|
|
673
673
|
user-select: none;
|
|
674
674
|
border: 0;
|
|
@@ -691,7 +691,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
691
691
|
${({ width: e }) => e ? `width: ${e};` : ""}
|
|
692
692
|
${({ height: e }) => e ? `height: ${e};` : ""}
|
|
693
693
|
${({ borderRadius: e }) => e ? `border-radius: ${e};` : ""}
|
|
694
|
-
`,
|
|
694
|
+
`, xt = g(
|
|
695
695
|
({
|
|
696
696
|
disableFocusHighlight: e,
|
|
697
697
|
onClick: t,
|
|
@@ -702,13 +702,13 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
702
702
|
opacityOnHover: i,
|
|
703
703
|
disabled: l,
|
|
704
704
|
children: s,
|
|
705
|
-
background:
|
|
705
|
+
background: c = "transparent",
|
|
706
706
|
hoverBackground: d,
|
|
707
707
|
focusBackground: h,
|
|
708
708
|
type: y = "button",
|
|
709
709
|
...b
|
|
710
|
-
},
|
|
711
|
-
|
|
710
|
+
}, _) => /* @__PURE__ */ a(
|
|
711
|
+
Be,
|
|
712
712
|
{
|
|
713
713
|
opacityOnHover: i,
|
|
714
714
|
title: n,
|
|
@@ -718,8 +718,8 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
718
718
|
onDoubleClick: r,
|
|
719
719
|
disableFocusHighlight: e,
|
|
720
720
|
pointer: !!(t || r) && !o,
|
|
721
|
-
ref:
|
|
722
|
-
background:
|
|
721
|
+
ref: _,
|
|
722
|
+
background: c,
|
|
723
723
|
hoverBackground: d,
|
|
724
724
|
focusBackground: h,
|
|
725
725
|
type: y,
|
|
@@ -727,11 +727,11 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
727
727
|
children: s
|
|
728
728
|
}
|
|
729
729
|
)
|
|
730
|
-
),
|
|
730
|
+
), _t = g(
|
|
731
731
|
function(t, r) {
|
|
732
|
-
return /* @__PURE__ */
|
|
732
|
+
return /* @__PURE__ */ a(w, { ref: r, ...t });
|
|
733
733
|
}
|
|
734
|
-
),
|
|
734
|
+
), We = (e) => {
|
|
735
735
|
const { x: t, y: r, width: n, height: u, bottom: o, top: i, left: l, right: s } = e.getBoundingClientRect();
|
|
736
736
|
return {
|
|
737
737
|
width: n,
|
|
@@ -747,40 +747,40 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
747
747
|
const [r, n] = v(), u = p(() => {
|
|
748
748
|
window.requestAnimationFrame(() => {
|
|
749
749
|
if (e.current) {
|
|
750
|
-
const o =
|
|
750
|
+
const o = We(e.current);
|
|
751
751
|
(!r || !qe(r, o)) && t && t(o), n(o);
|
|
752
752
|
}
|
|
753
753
|
});
|
|
754
754
|
}, [e, r, n, t]);
|
|
755
|
-
return
|
|
755
|
+
return V(() => {
|
|
756
756
|
u();
|
|
757
757
|
}, [u]), {
|
|
758
758
|
dimensions: r
|
|
759
759
|
};
|
|
760
|
-
},
|
|
760
|
+
}, kt = g(
|
|
761
761
|
function({ onResize: t, ...r }, n) {
|
|
762
762
|
const u = f(null);
|
|
763
|
-
return Ge(n ?? u, t), /* @__PURE__ */
|
|
763
|
+
return Ge(n ?? u, t), /* @__PURE__ */ a(w, { ...r, ref: n });
|
|
764
764
|
}
|
|
765
|
-
),
|
|
766
|
-
return /* @__PURE__ */
|
|
767
|
-
}),
|
|
765
|
+
), $t = g(function({ num: t = 1, ...r }, n) {
|
|
766
|
+
return /* @__PURE__ */ a(w, { indent: t, ref: n, ...r });
|
|
767
|
+
}), St = g(
|
|
768
768
|
function({ num: t = 1, ...r }, n) {
|
|
769
|
-
return /* @__PURE__ */
|
|
769
|
+
return /* @__PURE__ */ a(w, { spacing: t, ref: n, ...r });
|
|
770
770
|
}
|
|
771
771
|
), Xe = L.div`
|
|
772
772
|
--current-size: 1;
|
|
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
|
-
`,
|
|
776
|
+
`, zt = ({
|
|
777
777
|
half: e = !1,
|
|
778
778
|
horizontal: t = !1,
|
|
779
779
|
num: r = 1,
|
|
780
780
|
vertical: n = !1
|
|
781
781
|
}) => {
|
|
782
782
|
const u = r * (e ? 0.5 : 1);
|
|
783
|
-
return /* @__PURE__ */
|
|
783
|
+
return /* @__PURE__ */ a(
|
|
784
784
|
Xe,
|
|
785
785
|
{
|
|
786
786
|
style: {
|
|
@@ -790,28 +790,28 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
);
|
|
793
|
-
},
|
|
793
|
+
}, Tt = ({ children: e, nest: t, render: r }) => t ? /* @__PURE__ */ a(O, { children: r(e) }) : /* @__PURE__ */ a(O, { children: e }), W = K({
|
|
794
794
|
isFontLarge: !1,
|
|
795
795
|
fontSizeRatio: 1
|
|
796
|
-
}),
|
|
796
|
+
}), D = 12, Ct = ({ children: e }) => {
|
|
797
797
|
const t = f(null), [r, n] = v(!1), [u, o] = v(1);
|
|
798
798
|
m(() => {
|
|
799
799
|
if (!t.current)
|
|
800
800
|
return;
|
|
801
801
|
const l = new ResizeObserver((s) => {
|
|
802
|
-
for (const
|
|
803
|
-
const d =
|
|
804
|
-
n(d >
|
|
802
|
+
for (const c of s) {
|
|
803
|
+
const d = c.contentRect.height;
|
|
804
|
+
n(d > D), o(d / D);
|
|
805
805
|
}
|
|
806
806
|
});
|
|
807
807
|
return l.observe(t.current), () => l.disconnect();
|
|
808
808
|
}, []);
|
|
809
|
-
const i =
|
|
809
|
+
const i = C(
|
|
810
810
|
() => ({ isFontLarge: r, fontSizeRatio: u }),
|
|
811
811
|
[u, r]
|
|
812
812
|
);
|
|
813
|
-
return /* @__PURE__ */
|
|
814
|
-
/* @__PURE__ */
|
|
813
|
+
return /* @__PURE__ */ U(W.Provider, { value: i, children: [
|
|
814
|
+
/* @__PURE__ */ a(
|
|
815
815
|
"div",
|
|
816
816
|
{
|
|
817
817
|
ref: t,
|
|
@@ -829,20 +829,20 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
829
829
|
),
|
|
830
830
|
e
|
|
831
831
|
] });
|
|
832
|
-
},
|
|
833
|
-
const e = Z(
|
|
832
|
+
}, Et = () => {
|
|
833
|
+
const e = Z(W);
|
|
834
834
|
return e || {
|
|
835
835
|
isFontLarge: !1,
|
|
836
836
|
fontSizeRatio: 1
|
|
837
837
|
};
|
|
838
838
|
}, Ye = "_lively_1k3wm_6", Ke = {
|
|
839
839
|
lively: Ye
|
|
840
|
-
},
|
|
841
|
-
return /* @__PURE__ */
|
|
840
|
+
}, It = g(function({ politeness: t = "polite", className: r, children: n, ...u }, o) {
|
|
841
|
+
return /* @__PURE__ */ a(
|
|
842
842
|
"div",
|
|
843
843
|
{
|
|
844
844
|
ref: o,
|
|
845
|
-
className:
|
|
845
|
+
className: E(Ke.lively, r),
|
|
846
846
|
"aria-live": t,
|
|
847
847
|
...u,
|
|
848
848
|
children: n
|
|
@@ -850,10 +850,10 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
850
850
|
);
|
|
851
851
|
}), Ze = "_visuallyHidden_1gevf_1", Je = {
|
|
852
852
|
visuallyHidden: Ze
|
|
853
|
-
}, Qe = (e) =>
|
|
853
|
+
}, Qe = (e) => B(e, et), Rt = (e) => B(e, tt), et = (e, t) => t.startsWith("data-") || t.startsWith("aria-"), tt = (e, t) => t.startsWith("aria-"), Lt = ({
|
|
854
854
|
children: e,
|
|
855
855
|
...t
|
|
856
|
-
}) => /* @__PURE__ */
|
|
856
|
+
}) => /* @__PURE__ */ a("span", { className: Je.visuallyHidden, ...Qe(t), children: e }), rt = g(
|
|
857
857
|
({
|
|
858
858
|
children: e,
|
|
859
859
|
variant: t = "standard",
|
|
@@ -864,14 +864,14 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
864
864
|
whiteSpace: i,
|
|
865
865
|
wordBreak: l,
|
|
866
866
|
textAlign: s = "left",
|
|
867
|
-
overflow:
|
|
867
|
+
overflow: c,
|
|
868
868
|
textOverflow: d,
|
|
869
869
|
style: h,
|
|
870
870
|
...y
|
|
871
|
-
}, b) => /* @__PURE__ */
|
|
871
|
+
}, b) => /* @__PURE__ */ a(
|
|
872
872
|
"p",
|
|
873
873
|
{
|
|
874
|
-
className:
|
|
874
|
+
className: E($.text, $[t], $[r], n),
|
|
875
875
|
ref: b,
|
|
876
876
|
style: {
|
|
877
877
|
color: u,
|
|
@@ -879,7 +879,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
879
879
|
whiteSpace: i,
|
|
880
880
|
wordBreak: l,
|
|
881
881
|
textAlign: s,
|
|
882
|
-
overflow:
|
|
882
|
+
overflow: c,
|
|
883
883
|
textOverflow: d,
|
|
884
884
|
...h
|
|
885
885
|
},
|
|
@@ -887,42 +887,59 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
887
887
|
children: e
|
|
888
888
|
}
|
|
889
889
|
)
|
|
890
|
-
),
|
|
890
|
+
), At = rt, Pt = (e) => /* @__PURE__ */ a(x, { size: "small", ...e }), Ot = (e) => /* @__PURE__ */ a(x, { size: "smaller", ...e }), Ft = (e) => /* @__PURE__ */ a(x, { size: "medium", ...e }), Mt = (e) => /* @__PURE__ */ a(x, { size: "large", ...e }), nt = "_heading_18j6t_1", ut = "_display_18j6t_110", I = {
|
|
891
891
|
heading: nt,
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
892
|
+
"size-xs": "_size-xs_18j6t_25",
|
|
893
|
+
"size-s": "_size-s_18j6t_37",
|
|
894
|
+
"size-m": "_size-m_18j6t_49",
|
|
895
|
+
"size-l": "_size-l_18j6t_61",
|
|
896
|
+
"size-xl": "_size-xl_18j6t_73",
|
|
897
|
+
"size-2xl": "_size-2xl_18j6t_85",
|
|
898
|
+
"size-3xl": "_size-3xl_18j6t_97",
|
|
899
|
+
"size-4xl": "_size-4xl_18j6t_103",
|
|
900
|
+
display: ut
|
|
901
|
+
}, ot = {
|
|
902
|
+
h1: "2xl",
|
|
903
|
+
h2: "xl",
|
|
904
|
+
h3: "l",
|
|
905
|
+
h4: "m",
|
|
906
|
+
h5: "s",
|
|
907
|
+
h6: "xs",
|
|
908
|
+
span: "l"
|
|
909
|
+
}, st = g(
|
|
899
910
|
({
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
+
as: e = "h3",
|
|
912
|
+
variant: t = "default",
|
|
913
|
+
size: r = ot[e],
|
|
914
|
+
className: n,
|
|
915
|
+
color: u,
|
|
916
|
+
whiteSpace: o,
|
|
917
|
+
wordBreak: i,
|
|
918
|
+
style: l,
|
|
919
|
+
children: s,
|
|
920
|
+
...c
|
|
921
|
+
}, d) => /* @__PURE__ */ a(
|
|
922
|
+
e,
|
|
911
923
|
{
|
|
912
|
-
className:
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
924
|
+
className: E(
|
|
925
|
+
I.heading,
|
|
926
|
+
I[`size-${r}`],
|
|
927
|
+
t === "display" && I.display,
|
|
928
|
+
n
|
|
929
|
+
),
|
|
930
|
+
style: { color: u, whiteSpace: o, wordBreak: i, ...l },
|
|
931
|
+
ref: d,
|
|
932
|
+
...c,
|
|
933
|
+
children: s
|
|
917
934
|
}
|
|
918
935
|
)
|
|
919
|
-
),
|
|
920
|
-
ol:
|
|
921
|
-
ul:
|
|
922
|
-
},
|
|
936
|
+
), Dt = ({ as: e = "h2", ...t }) => /* @__PURE__ */ a(st, { as: e, size: "xl", ...t }), it = "_ol_25p86_1", at = "_ul_25p86_2", q = {
|
|
937
|
+
ol: it,
|
|
938
|
+
ul: at
|
|
939
|
+
}, Ht = ({ children: e }) => /* @__PURE__ */ a("ul", { className: q.ul, children: e }), Nt = ({
|
|
923
940
|
children: e,
|
|
924
941
|
start: t
|
|
925
|
-
}) => /* @__PURE__ */
|
|
942
|
+
}) => /* @__PURE__ */ a("ol", { className: q.ol, start: t, children: e }), jt = ({ children: e }) => /* @__PURE__ */ a("li", { children: typeof e == "string" ? /* @__PURE__ */ a(x, { children: e }) : e }), Ut = ({
|
|
926
943
|
blockedKeys: e,
|
|
927
944
|
blockMouse: t = !1,
|
|
928
945
|
...r
|
|
@@ -938,7 +955,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
938
955
|
},
|
|
939
956
|
[t]
|
|
940
957
|
);
|
|
941
|
-
return /* @__PURE__ */
|
|
958
|
+
return /* @__PURE__ */ a(
|
|
942
959
|
w,
|
|
943
960
|
{
|
|
944
961
|
...r,
|
|
@@ -948,28 +965,28 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
948
965
|
onMouseUp: u
|
|
949
966
|
}
|
|
950
967
|
);
|
|
951
|
-
},
|
|
968
|
+
}, ct = (e, t) => e === t, Vt = (e, t, r = ct) => {
|
|
952
969
|
const n = p(
|
|
953
970
|
(s) => {
|
|
954
|
-
e.some((
|
|
971
|
+
e.some((c) => r(c, s)) || t([...e, s]);
|
|
955
972
|
},
|
|
956
973
|
[e, t, r]
|
|
957
974
|
), u = p(
|
|
958
975
|
(s) => {
|
|
959
976
|
t(
|
|
960
|
-
s.reduce((
|
|
977
|
+
s.reduce((c, d) => c.some((h) => r(h, d)) ? c : [...c, d], e)
|
|
961
978
|
);
|
|
962
979
|
},
|
|
963
980
|
[e, t, r]
|
|
964
981
|
), o = p(
|
|
965
982
|
(s) => {
|
|
966
|
-
const
|
|
967
|
-
|
|
983
|
+
const c = e.findIndex((d) => r(d, s));
|
|
984
|
+
c >= 0 && t(e.filter((d, h) => h !== c));
|
|
968
985
|
},
|
|
969
986
|
[e, t, r]
|
|
970
987
|
), i = p(
|
|
971
988
|
(s) => {
|
|
972
|
-
t(e.filter((
|
|
989
|
+
t(e.filter((c) => !s.some((d) => r(d, c))));
|
|
973
990
|
},
|
|
974
991
|
[e, t, r]
|
|
975
992
|
), l = p(
|
|
@@ -994,7 +1011,7 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
994
1011
|
r((i) => !i);
|
|
995
1012
|
}, [r]);
|
|
996
1013
|
return [t, n, u, o];
|
|
997
|
-
},
|
|
1014
|
+
}, Bt = (e, t) => {
|
|
998
1015
|
const [r, n] = v(e);
|
|
999
1016
|
return m(() => {
|
|
1000
1017
|
const u = setTimeout(() => {
|
|
@@ -1006,26 +1023,26 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
1006
1023
|
}, [e, t]), r;
|
|
1007
1024
|
}, R = (e) => {
|
|
1008
1025
|
const t = f(e);
|
|
1009
|
-
return
|
|
1026
|
+
return V(() => {
|
|
1010
1027
|
t.current = e;
|
|
1011
1028
|
}), p((...r) => {
|
|
1012
1029
|
const { current: n } = t;
|
|
1013
1030
|
return n(...r);
|
|
1014
1031
|
}, []);
|
|
1015
|
-
},
|
|
1032
|
+
}, lt = (e) => {
|
|
1016
1033
|
const t = Y.useRef(e);
|
|
1017
1034
|
return t.current = e, t;
|
|
1018
|
-
},
|
|
1035
|
+
}, Wt = (e, { delay: t, onError: r, onSettled: n }) => {
|
|
1019
1036
|
const u = R(e), o = R(
|
|
1020
|
-
(
|
|
1021
|
-
), i = R(() => n?.()), l =
|
|
1022
|
-
|
|
1037
|
+
(k, z) => r?.(k, z)
|
|
1038
|
+
), i = R(() => n?.()), l = lt(t), s = f(null), c = f(null), d = f(null), h = p(() => {
|
|
1039
|
+
c.current != null && (clearTimeout(c.current), c.current = null);
|
|
1023
1040
|
}, []), y = p(() => {
|
|
1024
1041
|
if (d.current != null)
|
|
1025
1042
|
return d.current;
|
|
1026
1043
|
if (s.current == null)
|
|
1027
1044
|
return Promise.resolve();
|
|
1028
|
-
const
|
|
1045
|
+
const k = async () => {
|
|
1029
1046
|
try {
|
|
1030
1047
|
for (; s.current != null; ) {
|
|
1031
1048
|
const { value: P } = s.current;
|
|
@@ -1039,23 +1056,23 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
1039
1056
|
} finally {
|
|
1040
1057
|
d.current = null, i();
|
|
1041
1058
|
}
|
|
1042
|
-
},
|
|
1043
|
-
return d.current =
|
|
1059
|
+
}, z = Promise.resolve().then(k);
|
|
1060
|
+
return d.current = z, z;
|
|
1044
1061
|
}, [h, u, o, i]), b = p(
|
|
1045
|
-
(
|
|
1046
|
-
s.current = { value:
|
|
1047
|
-
|
|
1062
|
+
(k) => {
|
|
1063
|
+
s.current = { value: k }, h(), c.current = setTimeout(() => {
|
|
1064
|
+
c.current = null, y();
|
|
1048
1065
|
}, l.current);
|
|
1049
1066
|
},
|
|
1050
1067
|
[h, y, l]
|
|
1051
|
-
),
|
|
1068
|
+
), _ = p(() => {
|
|
1052
1069
|
h(), s.current = null;
|
|
1053
1070
|
}, [h]);
|
|
1054
|
-
return m(() =>
|
|
1055
|
-
() => ({ schedule: b, flush: y, cancel:
|
|
1056
|
-
[b, y,
|
|
1071
|
+
return m(() => _, [_]), C(
|
|
1072
|
+
() => ({ schedule: b, flush: y, cancel: _ }),
|
|
1073
|
+
[b, y, _]
|
|
1057
1074
|
);
|
|
1058
|
-
},
|
|
1075
|
+
}, qt = (e, t) => {
|
|
1059
1076
|
const [r, n] = v(e);
|
|
1060
1077
|
return m(() => {
|
|
1061
1078
|
e && n(!0);
|
|
@@ -1067,8 +1084,8 @@ import './index.css';const _e = "_separatorLine_nzfcz_1", $e = {
|
|
|
1067
1084
|
};
|
|
1068
1085
|
}, [e, t]), r;
|
|
1069
1086
|
};
|
|
1070
|
-
let
|
|
1071
|
-
const H = (e) => `webui-${e ? e + "-" : ""}${++
|
|
1087
|
+
let dt = 0;
|
|
1088
|
+
const H = (e) => `webui-${e ? e + "-" : ""}${++dt}`, Gt = (e) => {
|
|
1072
1089
|
const [t, r] = v(() => H(e));
|
|
1073
1090
|
return m(() => r(H(e)), [e]), t;
|
|
1074
1091
|
}, S = (e, t, r) => {
|
|
@@ -1088,7 +1105,7 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
|
|
|
1088
1105
|
i && i.removeEventListener(t, o);
|
|
1089
1106
|
};
|
|
1090
1107
|
}, [t, e]);
|
|
1091
|
-
},
|
|
1108
|
+
}, Xt = (e) => {
|
|
1092
1109
|
const [t, r, n] = A(!1);
|
|
1093
1110
|
m(() => {
|
|
1094
1111
|
document.activeElement === e.current ? r() : n();
|
|
@@ -1099,13 +1116,13 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
|
|
|
1099
1116
|
e.current && e.current.blur();
|
|
1100
1117
|
}, [e]);
|
|
1101
1118
|
return { isInFocus: t, focus: u, blur: o };
|
|
1102
|
-
},
|
|
1119
|
+
}, Yt = (e) => {
|
|
1103
1120
|
const [t, r, n] = A(!1);
|
|
1104
1121
|
return S(e, "mouseover", r), S(e, "mouseout", n), t;
|
|
1105
|
-
},
|
|
1122
|
+
}, Kt = (e) => {
|
|
1106
1123
|
const [t, r, n] = A(!1);
|
|
1107
1124
|
return S(e, "mouseenter", r), S(e, "mouseleave", n), t;
|
|
1108
|
-
},
|
|
1125
|
+
}, Zt = (e, t) => {
|
|
1109
1126
|
const r = f(() => {
|
|
1110
1127
|
});
|
|
1111
1128
|
m(() => {
|
|
@@ -1118,7 +1135,7 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
|
|
|
1118
1135
|
document.removeEventListener("mousedown", n), document.removeEventListener("touchstart", n);
|
|
1119
1136
|
};
|
|
1120
1137
|
}, [...e]);
|
|
1121
|
-
},
|
|
1138
|
+
}, Jt = (e, t, r) => {
|
|
1122
1139
|
const n = f(() => {
|
|
1123
1140
|
});
|
|
1124
1141
|
m(() => {
|
|
@@ -1131,21 +1148,21 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
|
|
|
1131
1148
|
document.removeEventListener("mousedown", u, r), document.removeEventListener("touchstart", u, r);
|
|
1132
1149
|
};
|
|
1133
1150
|
}, [e, r]);
|
|
1134
|
-
}, N = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"],
|
|
1151
|
+
}, N = ["mousemove", "mousedown", "keydown", "touchstart", "scroll"], Qt = (e, t) => {
|
|
1135
1152
|
const r = f(() => {
|
|
1136
1153
|
});
|
|
1137
1154
|
m(() => {
|
|
1138
1155
|
r.current = e;
|
|
1139
1156
|
}, [e]), m(() => {
|
|
1140
|
-
const n =
|
|
1157
|
+
const n = _e(r.current, t);
|
|
1141
1158
|
return N.forEach((u) => window.addEventListener(u, n)), () => {
|
|
1142
1159
|
N.forEach(
|
|
1143
1160
|
(u) => window.removeEventListener(u, n)
|
|
1144
1161
|
);
|
|
1145
1162
|
};
|
|
1146
1163
|
}, [t]);
|
|
1147
|
-
},
|
|
1148
|
-
const [r, n] = v(!1), { rootMargin: u, root: o, threshold: i } = t || {}, l =
|
|
1164
|
+
}, er = (e, t) => {
|
|
1165
|
+
const [r, n] = v(!1), { rootMargin: u, root: o, threshold: i } = t || {}, l = C(() => new IntersectionObserver(
|
|
1149
1166
|
([s]) => n(s.isIntersecting),
|
|
1150
1167
|
{
|
|
1151
1168
|
rootMargin: u,
|
|
@@ -1156,12 +1173,12 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
|
|
|
1156
1173
|
return m(() => (e.current && l.observe(e.current), () => {
|
|
1157
1174
|
l.disconnect();
|
|
1158
1175
|
}), [l, e]), r;
|
|
1159
|
-
},
|
|
1176
|
+
}, tr = (e) => {
|
|
1160
1177
|
const t = f(null);
|
|
1161
1178
|
return m(() => {
|
|
1162
1179
|
e && (typeof e == "function" ? e(t.current) : e.current = t.current);
|
|
1163
1180
|
}), t;
|
|
1164
|
-
},
|
|
1181
|
+
}, rr = (e, t, r = !0) => {
|
|
1165
1182
|
const [n, u] = v(e), o = f(null), i = p(
|
|
1166
1183
|
(l, s = t) => {
|
|
1167
1184
|
u(l), r && clearTimeout(o.current), o.current = setTimeout(() => u(e), s);
|
|
@@ -1171,30 +1188,30 @@ const H = (e) => `webui-${e ? e + "-" : ""}${++ft}`, Zt = (e) => {
|
|
|
1171
1188
|
return m(() => () => {
|
|
1172
1189
|
clearTimeout(o.current);
|
|
1173
1190
|
}, []), [n, i];
|
|
1174
|
-
},
|
|
1191
|
+
}, nr = () => C(() => /* @__PURE__ */ new Date(), []), ur = (e) => (t, r) => e(t).localeCompare(e(r)), or = (e) => (t, r) => e(t) - e(r), sr = (e) => {
|
|
1175
1192
|
throw new Error(`Switch unhandled case: ${e}`);
|
|
1176
|
-
},
|
|
1193
|
+
}, ir = (e, t) => t, ar = (e) => Object.keys(e).filter((t) => e[t]), cr = (e) => {
|
|
1177
1194
|
try {
|
|
1178
1195
|
const t = parseFloat(e);
|
|
1179
1196
|
return isNaN(t) || t == null ? void 0 : t;
|
|
1180
1197
|
} catch {
|
|
1181
1198
|
}
|
|
1182
|
-
},
|
|
1199
|
+
}, lr = (e) => {
|
|
1183
1200
|
try {
|
|
1184
1201
|
const t = parseInt(e, 10);
|
|
1185
1202
|
return isNaN(t) || t == null ? void 0 : t;
|
|
1186
1203
|
} catch {
|
|
1187
1204
|
}
|
|
1188
1205
|
};
|
|
1189
|
-
function
|
|
1206
|
+
function dr(e, t) {
|
|
1190
1207
|
if (e == null)
|
|
1191
1208
|
throw new Error("Invariant error: " + t);
|
|
1192
1209
|
}
|
|
1193
|
-
const
|
|
1210
|
+
const pr = (e) => {
|
|
1194
1211
|
if (!J(e) || e.type !== Q) return !1;
|
|
1195
1212
|
const r = e.props.children;
|
|
1196
|
-
return Array.isArray(r) ? r.every(
|
|
1197
|
-
},
|
|
1213
|
+
return Array.isArray(r) ? r.every(j) : j(r);
|
|
1214
|
+
}, j = (e) => e == null || e === !1, mr = (e) => {
|
|
1198
1215
|
try {
|
|
1199
1216
|
const t = new Intl.PluralRules(e);
|
|
1200
1217
|
return (r) => t.select(r);
|
|
@@ -1212,72 +1229,72 @@ const gr = (e) => {
|
|
|
1212
1229
|
}
|
|
1213
1230
|
};
|
|
1214
1231
|
}
|
|
1215
|
-
},
|
|
1232
|
+
}, hr = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
|
|
1216
1233
|
export {
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1234
|
+
W as AccessibleFontSizeContext,
|
|
1235
|
+
Ct as AccessibleFontSizeProvider,
|
|
1236
|
+
Ut as BlockKeyboardEvents,
|
|
1220
1237
|
w as Box,
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1238
|
+
xt as Clickable,
|
|
1239
|
+
_t as Column,
|
|
1240
|
+
Dt as HeaderText,
|
|
1241
|
+
st as Heading,
|
|
1242
|
+
$t as Indent,
|
|
1243
|
+
Mt as LargeText,
|
|
1227
1244
|
jt as ListItem,
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1245
|
+
It as Lively,
|
|
1246
|
+
Tt as Nest,
|
|
1247
|
+
Nt as OrderedList,
|
|
1248
|
+
At as P,
|
|
1232
1249
|
rt as Paragraph,
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1250
|
+
kt as ResizeAwareBox,
|
|
1251
|
+
Ve as Row,
|
|
1252
|
+
Lt as ScreenReaderOnlyText,
|
|
1253
|
+
F as SeparatorLine,
|
|
1254
|
+
wt as SeparatorText,
|
|
1255
|
+
Pt as SmallText,
|
|
1256
|
+
Ot as SmallerText,
|
|
1257
|
+
zt as Space,
|
|
1258
|
+
St as Spacing,
|
|
1259
|
+
Ft as StandardText,
|
|
1243
1260
|
x as Text,
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1261
|
+
bt as Txt,
|
|
1262
|
+
Ht as UnorderedList,
|
|
1263
|
+
T as booleanOrNumberToNumber,
|
|
1264
|
+
or as byNumberField,
|
|
1265
|
+
ur as byStringField,
|
|
1266
|
+
ir as exhaustSwitchCase,
|
|
1267
|
+
sr as exhaustSwitchCaseElseThrow,
|
|
1268
|
+
Rt as getAriaProps,
|
|
1252
1269
|
Qe as getDataProps,
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1270
|
+
We as getDimensionObject,
|
|
1271
|
+
dr as invariant,
|
|
1272
|
+
pr as isEmptyFragment,
|
|
1273
|
+
cr as parseFloatElseUndefined,
|
|
1274
|
+
lr as parseIntElseUndefined,
|
|
1275
|
+
hr as pluralFormatter,
|
|
1276
|
+
mr as selectPluralRule,
|
|
1277
|
+
ar as truthyKeysAsList,
|
|
1278
|
+
Et as useAccessibleFontSizeContext,
|
|
1279
|
+
Vt as useArraySet,
|
|
1263
1280
|
A as useBoolean,
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1281
|
+
Bt as useDebounce,
|
|
1282
|
+
Wt as useDebouncedWrite,
|
|
1283
|
+
qt as useDelayedFalse,
|
|
1284
|
+
Gt as useDomId,
|
|
1268
1285
|
Ge as useElementDimensions,
|
|
1269
|
-
|
|
1286
|
+
Xt as useElementFocus,
|
|
1270
1287
|
R as useEventCallback,
|
|
1271
1288
|
S as useEventListener,
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1289
|
+
tr as useForwardedRef,
|
|
1290
|
+
lt as useLatest,
|
|
1291
|
+
Kt as useMouseIsEntered,
|
|
1292
|
+
Yt as useMouseIsOver,
|
|
1293
|
+
Zt as useMultiOnClickOutside,
|
|
1294
|
+
Jt as useOnClickOutside,
|
|
1295
|
+
Qt as useOnNoMouseMovement,
|
|
1296
|
+
er as useOnScreen,
|
|
1297
|
+
rr as useTimeoutState,
|
|
1298
|
+
nr as useToday
|
|
1282
1299
|
};
|
|
1283
1300
|
//# sourceMappingURL=index.es.js.map
|