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