@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/components/decorators/separator-text/SeparatorText.d.ts +5 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +301 -296
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +27 -27
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- /package/dist/components/decorators/{separatorline → separator-line}/SeparatorLine.d.ts +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { cssColor as
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import E from "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import './index.css';const
|
|
9
|
-
separatorLine:
|
|
10
|
-
},
|
|
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 =
|
|
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__ */
|
|
16
|
+
}, u) => /* @__PURE__ */ a(
|
|
17
17
|
"hr",
|
|
18
18
|
{
|
|
19
|
-
className:
|
|
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
|
-
),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
:
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
},
|
|
70
|
-
|
|
55
|
+
}, _) => /* @__PURE__ */ a(
|
|
56
|
+
"span",
|
|
71
57
|
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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:
|
|
71
|
+
children: e
|
|
87
72
|
}
|
|
88
73
|
)
|
|
89
|
-
), $ = (e) => e == null ? 0 : typeof e == "boolean" ? e ? 1 : 0 : 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
|
-
},
|
|
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
|
-
},
|
|
564
|
+
}, Ie = `^((${Object.keys(Re).join(
|
|
580
565
|
"|"
|
|
581
|
-
)})|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$`,
|
|
582
|
-
(e) =>
|
|
583
|
-
),
|
|
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
|
-
},
|
|
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
|
-
],
|
|
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:
|
|
603
|
+
transform: A
|
|
619
604
|
},
|
|
620
605
|
rowGap: {
|
|
621
606
|
property: "rowGap",
|
|
622
|
-
transform:
|
|
607
|
+
transform: A
|
|
623
608
|
},
|
|
624
609
|
shadow: {
|
|
625
610
|
property: "boxShadow",
|
|
626
|
-
transform: (e) =>
|
|
611
|
+
transform: (e) => Pe[e] ?? e
|
|
627
612
|
}
|
|
628
|
-
}),
|
|
629
|
-
shouldForwardProp: (e) => typeof e == "string" ?
|
|
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
|
-
${
|
|
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
|
-
`,
|
|
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__ */
|
|
732
|
+
return /* @__PURE__ */ a(v, { ref: r, ...t });
|
|
681
733
|
}
|
|
682
|
-
),
|
|
683
|
-
const { x: t, y: r, width: n, height: u, bottom: o, top: s, left:
|
|
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:
|
|
740
|
+
left: c,
|
|
689
741
|
x: t,
|
|
690
742
|
y: r,
|
|
691
743
|
right: i,
|
|
692
744
|
bottom: o
|
|
693
745
|
};
|
|
694
|
-
},
|
|
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 =
|
|
699
|
-
(!r || !
|
|
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
|
|
755
|
+
return H(() => {
|
|
704
756
|
u();
|
|
705
757
|
}, [u]), {
|
|
706
758
|
dimensions: r
|
|
707
759
|
};
|
|
708
|
-
},
|
|
760
|
+
}, yt = h(
|
|
709
761
|
function({ onResize: t, ...r }, n) {
|
|
710
762
|
const u = y(null);
|
|
711
|
-
return
|
|
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
|
-
),
|
|
718
|
-
return /* @__PURE__ */
|
|
719
|
-
}),
|
|
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__ */
|
|
769
|
+
return /* @__PURE__ */ a(v, { spacing: t, ref: n, ...r });
|
|
722
770
|
}
|
|
723
|
-
),
|
|
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
|
-
`,
|
|
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__ */
|
|
736
|
-
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
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
|
|
754
|
-
for (const
|
|
755
|
-
const d =
|
|
756
|
-
n(d >
|
|
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
|
|
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__ */
|
|
766
|
-
/* @__PURE__ */
|
|
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
|
-
},
|
|
785
|
-
const e =
|
|
832
|
+
}, _t = () => {
|
|
833
|
+
const e = q(N);
|
|
786
834
|
return e || {
|
|
787
835
|
isFontLarge: !1,
|
|
788
836
|
fontSizeRatio: 1
|
|
789
837
|
};
|
|
790
|
-
},
|
|
791
|
-
visuallyHidden:
|
|
792
|
-
},
|
|
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__ */
|
|
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:
|
|
852
|
+
wordBreak: c,
|
|
815
853
|
textAlign: i = "left",
|
|
816
|
-
overflow:
|
|
854
|
+
overflow: l,
|
|
817
855
|
textOverflow: d,
|
|
818
856
|
style: f,
|
|
819
|
-
...
|
|
820
|
-
},
|
|
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:
|
|
858
|
-
ref:
|
|
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:
|
|
867
|
+
wordBreak: c,
|
|
864
868
|
textAlign: i,
|
|
865
|
-
overflow:
|
|
869
|
+
overflow: l,
|
|
866
870
|
textOverflow: d,
|
|
867
871
|
...f
|
|
868
872
|
},
|
|
869
|
-
...
|
|
873
|
+
...k,
|
|
870
874
|
children: e
|
|
871
875
|
}
|
|
872
876
|
)
|
|
873
|
-
),
|
|
874
|
-
heading:
|
|
875
|
-
h1:
|
|
876
|
-
h2:
|
|
877
|
-
h3:
|
|
878
|
-
h4:
|
|
879
|
-
h5:
|
|
880
|
-
h6:
|
|
881
|
-
},
|
|
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:
|
|
894
|
+
as: c,
|
|
891
895
|
...i
|
|
892
|
-
},
|
|
893
|
-
|
|
896
|
+
}, l) => /* @__PURE__ */ a(
|
|
897
|
+
c ?? e,
|
|
894
898
|
{
|
|
895
|
-
className:
|
|
899
|
+
className: E(P.heading, P[e], t),
|
|
896
900
|
style: { color: r, whiteSpace: n, wordBreak: u, ...o },
|
|
897
|
-
ref:
|
|
901
|
+
ref: l,
|
|
898
902
|
...i,
|
|
899
903
|
children: s
|
|
900
904
|
}
|
|
901
905
|
)
|
|
902
|
-
),
|
|
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__ */
|
|
919
|
-
|
|
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
|
-
},
|
|
932
|
+
}, nt = (e, t) => e === t, Pt = (e, t, r = nt) => {
|
|
929
933
|
const n = m(
|
|
930
934
|
(i) => {
|
|
931
|
-
e.some((
|
|
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((
|
|
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
|
|
944
|
-
|
|
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((
|
|
953
|
+
t(e.filter((l) => !i.some((d) => r(d, l))));
|
|
950
954
|
},
|
|
951
955
|
[e, t, r]
|
|
952
|
-
),
|
|
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:
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
997
|
-
const
|
|
998
|
-
const [t, r] = g(() =>
|
|
999
|
-
return p(() => r(
|
|
1000
|
-
},
|
|
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 = (
|
|
1010
|
+
const o = (c) => {
|
|
1007
1011
|
if (n.current)
|
|
1008
|
-
return n.current(
|
|
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
|
-
},
|
|
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]),
|
|
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
|
-
},
|
|
1032
|
+
}, Ht = (e) => {
|
|
1029
1033
|
const t = y(e);
|
|
1030
|
-
return
|
|
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
|
|
1041
|
-
return
|
|
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
|
|
1045
|
-
}, Ut = (e
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
1078
|
-
return
|
|
1079
|
-
|
|
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
|
-
},
|
|
1085
|
-
const [r, n] = g(!1), { rootMargin: u, root: o, threshold: s } = t || {},
|
|
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 &&
|
|
1094
|
-
|
|
1095
|
-
}), [
|
|
1096
|
-
},
|
|
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
|
-
},
|
|
1105
|
+
}, Gt = (e, t, r = !0) => {
|
|
1102
1106
|
const [n, u] = g(e), o = y(null), s = m(
|
|
1103
|
-
(
|
|
1104
|
-
u(
|
|
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(), []),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
1130
|
+
function rr(e, t) {
|
|
1127
1131
|
if (e == null)
|
|
1128
1132
|
throw new Error("Invariant error: " + t);
|
|
1129
1133
|
}
|
|
1130
|
-
const
|
|
1131
|
-
if (!
|
|
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(
|
|
1134
|
-
},
|
|
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
|
-
},
|
|
1156
|
+
}, or = (e) => (t, r) => r[e(t)] ?? r.other ?? "";
|
|
1153
1157
|
export {
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
Ct as
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
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
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
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
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
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
|