@uva-glass/component-library 3.19.1 → 3.19.3
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/Button.module-BVsTgdTe.js +15 -0
- package/dist/Button.module-BVsTgdTe.js.map +1 -0
- package/dist/MultiSelectItem-DbOdEllV.js +24 -0
- package/dist/{MultiSelectItem-D9PxdX43.js.map → MultiSelectItem-DbOdEllV.js.map} +1 -1
- package/dist/RteEditor.module-45648CA2.js +41 -0
- package/dist/RteEditor.module-45648CA2.js.map +1 -0
- package/dist/{SelectListbox.module-ignbxWNU.js → SelectListbox.module-N3Kg0UvL.js} +21 -21
- package/dist/SelectListbox.module-N3Kg0UvL.js.map +1 -0
- package/dist/Sortable.module-CuvuQhr8.js +23 -0
- package/dist/Sortable.module-CuvuQhr8.js.map +1 -0
- package/dist/{SortableProvider-DZggDO3M.js → SortableProvider-B3_u0pKv.js} +2 -2
- package/dist/{SortableProvider-DZggDO3M.js.map → SortableProvider-B3_u0pKv.js.map} +1 -1
- package/dist/{TablePlugin-CE20cPhW.js → TablePlugin-hxs9O_ox.js} +28 -28
- package/dist/{TablePlugin-CE20cPhW.js.map → TablePlugin-hxs9O_ox.js.map} +1 -1
- package/dist/assets/AccordionCard.css +1 -1
- package/dist/assets/ActionList.css +1 -1
- package/dist/assets/AppStatusBar.css +1 -1
- package/dist/assets/Backdrop.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Card.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/CheckboxButton.css +1 -1
- package/dist/assets/CheckboxButtonBar.css +1 -1
- package/dist/assets/CheckboxTree.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/EmptyStateDataDisplay.css +1 -1
- package/dist/assets/FeedbackBar.css +1 -1
- package/dist/assets/FeedbackBox.css +1 -1
- package/dist/assets/FormInput.css +1 -1
- package/dist/assets/Icon.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/InfoMessage.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputField.css +1 -1
- package/dist/assets/Label.css +1 -1
- package/dist/assets/LinkContextMenu.css +1 -1
- package/dist/assets/MetaDataList.css +1 -1
- package/dist/assets/ModalDialog.css +1 -1
- package/dist/assets/MultiSelectBox.css +1 -1
- package/dist/assets/MultiSelectItem.css +1 -1
- package/dist/assets/OverlayCloseButton.css +1 -1
- package/dist/assets/OverlayStepBar.css +1 -1
- package/dist/assets/PageOverlay.css +1 -1
- package/dist/assets/Periods.css +1 -1
- package/dist/assets/ProgrammeCard.css +1 -1
- package/dist/assets/RadioButton.css +1 -1
- package/dist/assets/RadioGroup.css +1 -1
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/SectionNotification.css +1 -1
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/assets/Sortable.css +1 -1
- package/dist/assets/Spinner.css +1 -1
- package/dist/assets/TableCellContextMenu.css +1 -1
- package/dist/assets/TablePlugin.css +1 -1
- package/dist/components/AccordionCard/AccordionCard.js +22 -22
- package/dist/components/ActionList/ActionList.js +14 -14
- package/dist/components/AppStatusBar/AppStatusBar.js +5 -5
- package/dist/components/Backdrop/Backdrop.js +5 -5
- package/dist/components/Buttons/Button.js +1 -1
- package/dist/components/Buttons/LinkButton.js +1 -1
- package/dist/components/Buttons/MenuButton.js +1 -1
- package/dist/components/Card/Card.js +23 -23
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/CheckboxButton/CheckboxButton.js +21 -21
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +20 -20
- package/dist/components/CheckboxTree/CheckboxTree.js +42 -42
- package/dist/components/Chip/Chip.js +8 -8
- package/dist/components/Drawer/Drawer.js +28 -28
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js +20 -20
- package/dist/components/FeedbackBar/FeedbackBar.js +15 -15
- package/dist/components/FeedbackBox/FeedbackBox.js +13 -13
- package/dist/components/FormInput/FormInput.js +21 -21
- package/dist/components/Icon/Icon.stories.js +9 -9
- package/dist/components/IconButton/IconButton.js +10 -10
- package/dist/components/InfoMessage/InfoMessage.js +5 -5
- package/dist/components/Input/Input.js +14 -14
- package/dist/components/InputField/InputField.js +40 -40
- package/dist/components/InputField/InputField.stories.js +2 -2
- package/dist/components/Label/Label.js +13 -13
- package/dist/components/MetaDataList/MetaDataList.js +4 -4
- package/dist/components/ModalDialog/ModalDialog.js +27 -27
- package/dist/components/MultiSelect/MultiSelect.js +2 -2
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +3 -3
- package/dist/components/MultiSelect/components/MultiSelectItem.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.js +33 -33
- package/dist/components/OverlayCloseButton/OverlayCloseButton.js +2 -2
- package/dist/components/OverlayStepBar/OverlayStepBar.js +6 -6
- package/dist/components/PageOverlay/PageOverlay.js +30 -30
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/Periods/Periods.js +16 -16
- package/dist/components/ProgrammeCard/ProgrammeCard.js +4 -4
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RadioButton/RadioButton.js +9 -9
- package/dist/components/RadioGroup/RadioGroup.js +27 -27
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +23 -23
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +37 -37
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +3 -3
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +1 -1
- package/dist/components/SectionNotification/SectionNotification.js +2 -2
- package/dist/components/SelectListbox/components/SelectButton.js +1 -1
- package/dist/components/SelectListbox/components/SelectContainer.js +1 -1
- package/dist/components/SelectListbox/components/SelectOption.js +1 -1
- package/dist/components/SelectListbox/components/SelectOptionBox.js +1 -1
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +2 -2
- package/dist/components/Sortable/components/SortableHandle.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +2 -2
- package/dist/components/Spinner/Spinner.js +2 -2
- package/dist/components/Timeline/Timeline.test.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -7
- package/dist/Button.module-FL3-CODh.js +0 -15
- package/dist/Button.module-FL3-CODh.js.map +0 -1
- package/dist/MultiSelectItem-D9PxdX43.js +0 -24
- package/dist/RteEditor.module-oFMKEW6f.js +0 -41
- package/dist/RteEditor.module-oFMKEW6f.js.map +0 -1
- package/dist/SelectListbox.module-ignbxWNU.js.map +0 -1
- package/dist/Sortable.module-DDhRFD1T.js +0 -23
- package/dist/Sortable.module-DDhRFD1T.js.map +0 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { SectionNotification as
|
|
4
|
-
import '../../assets/Card.css';const
|
|
5
|
-
card:
|
|
6
|
-
"card--regular": "_card--
|
|
7
|
-
"card--large": "_card--
|
|
8
|
-
"card--small": "_card--
|
|
9
|
-
"card-header": "_card-
|
|
10
|
-
"card--high-contrast": "_card--high-
|
|
11
|
-
"card--align-center": "_card--align-
|
|
12
|
-
},
|
|
1
|
+
import { jsxs as m, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { c as t } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { SectionNotification as o } from "../SectionNotification/SectionNotification.js";
|
|
4
|
+
import '../../assets/Card.css';const g = "_card_18vam_1", a = {
|
|
5
|
+
card: g,
|
|
6
|
+
"card--regular": "_card--regular_18vam_7",
|
|
7
|
+
"card--large": "_card--large_18vam_8",
|
|
8
|
+
"card--small": "_card--small_18vam_13",
|
|
9
|
+
"card-header": "_card-header_18vam_26",
|
|
10
|
+
"card--high-contrast": "_card--high-contrast_18vam_33",
|
|
11
|
+
"card--align-center": "_card--align-center_18vam_37"
|
|
12
|
+
}, v = ({
|
|
13
13
|
children: d,
|
|
14
14
|
header: c,
|
|
15
15
|
highContrast: s,
|
|
16
16
|
notification: e,
|
|
17
|
-
padding:
|
|
17
|
+
padding: r = "regular",
|
|
18
18
|
alignCenter: _ = !1
|
|
19
|
-
}) => /* @__PURE__ */
|
|
19
|
+
}) => /* @__PURE__ */ m(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
className:
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
22
|
+
className: t(a.card, {
|
|
23
|
+
[a["card--high-contrast"]]: s,
|
|
24
|
+
[a["card--regular"]]: r === "regular",
|
|
25
|
+
[a["card--small"]]: r === "small",
|
|
26
|
+
[a["card--large"]]: r === "large",
|
|
27
|
+
[a["card--align-center"]]: _
|
|
28
28
|
}),
|
|
29
29
|
children: [
|
|
30
|
-
e && /* @__PURE__ */ l(
|
|
31
|
-
c && /* @__PURE__ */ l("div", { className:
|
|
30
|
+
e && /* @__PURE__ */ l(o, { children: e }),
|
|
31
|
+
c && /* @__PURE__ */ l("div", { className: a["card-header"], children: c }),
|
|
32
32
|
d
|
|
33
33
|
]
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
v as Card
|
|
38
38
|
};
|
|
39
39
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
|
-
import '../../assets/Checkbox.css';const r = "
|
|
3
|
+
import '../../assets/Checkbox.css';const r = "_checkbox_uai6q_1", s = {
|
|
4
4
|
checkbox: r
|
|
5
|
-
},
|
|
5
|
+
}, h = t(({ ...c }, o) => /* @__PURE__ */ e("input", { ...c, type: "checkbox", className: s.checkbox, ref: o }));
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
h as Checkbox
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useId as
|
|
1
|
+
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { useId as l, useState as m } from "react";
|
|
4
4
|
import '../../assets/CheckboxButton.css';const t = {
|
|
5
|
-
"checkbox-button__container": "_checkbox-
|
|
6
|
-
"checkbox-button": "_checkbox-
|
|
7
|
-
"checkbox-button--not-valid": "_checkbox-button--not-
|
|
8
|
-
"checkbox-button--single": "_checkbox-button--
|
|
9
|
-
"checkbox-button--start": "_checkbox-button--
|
|
10
|
-
"checkbox-button--middle": "_checkbox-button--
|
|
11
|
-
"checkbox-button--end": "_checkbox-button--
|
|
12
|
-
},
|
|
5
|
+
"checkbox-button__container": "_checkbox-button__container_bnmy8_1",
|
|
6
|
+
"checkbox-button": "_checkbox-button_bnmy8_1",
|
|
7
|
+
"checkbox-button--not-valid": "_checkbox-button--not-valid_bnmy8_59",
|
|
8
|
+
"checkbox-button--single": "_checkbox-button--single_bnmy8_69",
|
|
9
|
+
"checkbox-button--start": "_checkbox-button--start_bnmy8_73",
|
|
10
|
+
"checkbox-button--middle": "_checkbox-button--middle_bnmy8_77",
|
|
11
|
+
"checkbox-button--end": "_checkbox-button--end_bnmy8_84"
|
|
12
|
+
}, f = ({
|
|
13
13
|
label: c,
|
|
14
14
|
value: b,
|
|
15
15
|
isChecked: h = !1,
|
|
16
16
|
variant: _ = "single",
|
|
17
17
|
disabled: s,
|
|
18
|
-
notValid:
|
|
19
|
-
onSetValue:
|
|
18
|
+
notValid: u,
|
|
19
|
+
onSetValue: x
|
|
20
20
|
}) => {
|
|
21
|
-
const e =
|
|
22
|
-
|
|
21
|
+
const e = l(), [k, a] = m(h), r = (o) => {
|
|
22
|
+
a(o.target.checked), x(o.target.checked ? o.target.value : null);
|
|
23
23
|
};
|
|
24
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ i("span", { className: t["checkbox-button__container"], children: [
|
|
25
25
|
/* @__PURE__ */ n(
|
|
26
26
|
"input",
|
|
27
27
|
{
|
|
@@ -29,16 +29,16 @@ import '../../assets/CheckboxButton.css';const t = {
|
|
|
29
29
|
id: `${e}${c}`,
|
|
30
30
|
disabled: s,
|
|
31
31
|
value: b,
|
|
32
|
-
checked:
|
|
33
|
-
onChange:
|
|
32
|
+
checked: k,
|
|
33
|
+
onChange: r
|
|
34
34
|
}
|
|
35
35
|
),
|
|
36
36
|
/* @__PURE__ */ n(
|
|
37
37
|
"label",
|
|
38
38
|
{
|
|
39
39
|
htmlFor: `${e}${c}`,
|
|
40
|
-
className:
|
|
41
|
-
[t["checkbox-button--not-valid"]]:
|
|
40
|
+
className: d(t["checkbox-button"], t[`checkbox-button--${_}`], {
|
|
41
|
+
[t["checkbox-button--not-valid"]]: u
|
|
42
42
|
}),
|
|
43
43
|
children: c
|
|
44
44
|
}
|
|
@@ -46,6 +46,6 @@ import '../../assets/CheckboxButton.css';const t = {
|
|
|
46
46
|
] });
|
|
47
47
|
};
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
f as CheckboxButton
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=CheckboxButton.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as a, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as d } from "react";
|
|
3
|
-
import { c as
|
|
4
|
-
import { CheckboxButton as
|
|
5
|
-
import { Label as
|
|
6
|
-
import { Icon as
|
|
3
|
+
import { c as v } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { CheckboxButton as y } from "../CheckboxButton/CheckboxButton.js";
|
|
5
|
+
import { Label as g } from "../Label/Label.js";
|
|
6
|
+
import { Icon as w } from "../Icon/Icon.js";
|
|
7
7
|
import '../../assets/CheckboxButtonBar.css';const n = {
|
|
8
|
-
"checkbox-button-bar__container": "_checkbox-button-
|
|
9
|
-
"checkbox-button-bar__container--label-left": "_checkbox-button-bar__container--label-
|
|
10
|
-
"checkbox-button-bar__container--label-top": "_checkbox-button-bar__container--label-
|
|
11
|
-
"checkbox-button-bar__row-container": "_checkbox-button-bar__row-
|
|
12
|
-
"checkbox-button-bar__row": "_checkbox-button-
|
|
13
|
-
"checkbox-button-bar__error": "_checkbox-button-
|
|
14
|
-
},
|
|
15
|
-
checkboxes:
|
|
8
|
+
"checkbox-button-bar__container": "_checkbox-button-bar__container_y43lv_1",
|
|
9
|
+
"checkbox-button-bar__container--label-left": "_checkbox-button-bar__container--label-left_y43lv_6",
|
|
10
|
+
"checkbox-button-bar__container--label-top": "_checkbox-button-bar__container--label-top_y43lv_12",
|
|
11
|
+
"checkbox-button-bar__row-container": "_checkbox-button-bar__row-container_y43lv_19",
|
|
12
|
+
"checkbox-button-bar__row": "_checkbox-button-bar__row_y43lv_19",
|
|
13
|
+
"checkbox-button-bar__error": "_checkbox-button-bar__error_y43lv_30"
|
|
14
|
+
}, $ = ({
|
|
15
|
+
checkboxes: l,
|
|
16
16
|
defaultValues: t,
|
|
17
|
-
label:
|
|
17
|
+
label: i,
|
|
18
18
|
labelPosition: s = "top",
|
|
19
19
|
required: h = !1,
|
|
20
20
|
notValidatedText: b = "",
|
|
@@ -27,20 +27,20 @@ import '../../assets/CheckboxButtonBar.css';const n = {
|
|
|
27
27
|
return /* @__PURE__ */ a(
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
|
-
className:
|
|
30
|
+
className: v(
|
|
31
31
|
n["checkbox-button-bar__container"],
|
|
32
32
|
n[`checkbox-button-bar__container--label-${s}`]
|
|
33
33
|
),
|
|
34
34
|
children: [
|
|
35
|
-
|
|
35
|
+
i && /* @__PURE__ */ c(g, { htmlFor: "", required: h, children: i }),
|
|
36
36
|
/* @__PURE__ */ a("div", { className: n["checkbox-button-bar__row-container"], children: [
|
|
37
|
-
/* @__PURE__ */ c("div", { className: n["checkbox-button-bar__row"], children:
|
|
38
|
-
|
|
37
|
+
/* @__PURE__ */ c("div", { className: n["checkbox-button-bar__row"], children: l.map(({ label: o, value: r, disabled: _ }, f) => /* @__PURE__ */ c(
|
|
38
|
+
y,
|
|
39
39
|
{
|
|
40
40
|
label: o,
|
|
41
41
|
value: r,
|
|
42
42
|
isChecked: t ? t.includes(r) : !1,
|
|
43
|
-
variant: k(f,
|
|
43
|
+
variant: k(f, l.length),
|
|
44
44
|
disabled: _ || u,
|
|
45
45
|
notValid: b !== "",
|
|
46
46
|
onSetValue: (p) => x(p, r)
|
|
@@ -48,7 +48,7 @@ import '../../assets/CheckboxButtonBar.css';const n = {
|
|
|
48
48
|
`${r}`
|
|
49
49
|
)) }),
|
|
50
50
|
b !== "" && /* @__PURE__ */ a("div", { className: n["checkbox-button-bar__error"], children: [
|
|
51
|
-
/* @__PURE__ */ c(
|
|
51
|
+
/* @__PURE__ */ c(w, { name: "ExclamationTriangleFill", size: 24 }),
|
|
52
52
|
b
|
|
53
53
|
] })
|
|
54
54
|
] })
|
|
@@ -57,6 +57,6 @@ import '../../assets/CheckboxButtonBar.css';const n = {
|
|
|
57
57
|
);
|
|
58
58
|
};
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
$ as CheckboxButtonBar
|
|
61
61
|
};
|
|
62
62
|
//# sourceMappingURL=CheckboxButtonBar.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsxs as u, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Button as
|
|
2
|
+
import { useRef as G, useState as S, useEffect as E, createRef as q } from "react";
|
|
3
|
+
import { c as j } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { Icon as I } from "../Icon/Icon.js";
|
|
5
|
+
import { Button as L } from "../Buttons/Button.js";
|
|
6
6
|
import "../Buttons/LinkButton.js";
|
|
7
7
|
import "@react-aria/button";
|
|
8
|
-
import { Checkbox as
|
|
9
|
-
import { Label as
|
|
8
|
+
import { Checkbox as A } from "../Checkbox/Checkbox.js";
|
|
9
|
+
import { Label as C } from "../Label/Label.js";
|
|
10
10
|
import "@react-aria/dialog";
|
|
11
11
|
import "@react-aria/focus";
|
|
12
12
|
import "@react-aria/overlays";
|
|
13
13
|
import "../OverlayCloseButton/OverlayCloseButton.js";
|
|
14
|
-
import { FormField as
|
|
14
|
+
import { FormField as B } from "../FormField/FormField.js";
|
|
15
15
|
import "../GridRow/GridRow.js";
|
|
16
16
|
import "../IconButton/IconButton.js";
|
|
17
17
|
import "../Input/Input.js";
|
|
18
18
|
import "../InputField/InputField.js";
|
|
19
19
|
import "react-router";
|
|
20
|
-
import "../../TablePlugin-
|
|
20
|
+
import "../../TablePlugin-hxs9O_ox.js";
|
|
21
21
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
22
22
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
23
23
|
import "../RteEditor/hooks/components/Flyout.js";
|
|
@@ -25,29 +25,29 @@ import "../../index-DllfJcv4.js";
|
|
|
25
25
|
import "../SelectListbox/SelectListbox.js";
|
|
26
26
|
import "../SelectListbox/SelectProvider.js";
|
|
27
27
|
import "../Sortable/components/SortableItem.js";
|
|
28
|
-
import "../../SortableProvider-
|
|
29
|
-
import { useResponsive as
|
|
28
|
+
import "../../SortableProvider-B3_u0pKv.js";
|
|
29
|
+
import { useResponsive as N } from "../hooks/useResponsive.js";
|
|
30
30
|
import '../../assets/CheckboxTree.css';const s = {
|
|
31
|
-
"checkbox-tree__header": "_checkbox-
|
|
32
|
-
"checkbox-tree__branch": "_checkbox-
|
|
33
|
-
"checkbox-tree__branch--icon": "_checkbox-tree__branch--
|
|
34
|
-
"checkbox-tree__branch--icon--expanded": "_checkbox-tree__branch--icon--
|
|
35
|
-
"checkbox-tree__branch--formfield": "_checkbox-tree__branch--
|
|
36
|
-
"checkbox-tree__leaves": "_checkbox-
|
|
37
|
-
"checkbox-tree__leaves--expanded": "_checkbox-tree__leaves--
|
|
38
|
-
"checkbox-tree__leaf": "_checkbox-
|
|
39
|
-
},
|
|
40
|
-
title:
|
|
41
|
-
checkboxTree:
|
|
31
|
+
"checkbox-tree__header": "_checkbox-tree__header_1nrfk_1",
|
|
32
|
+
"checkbox-tree__branch": "_checkbox-tree__branch_1nrfk_8",
|
|
33
|
+
"checkbox-tree__branch--icon": "_checkbox-tree__branch--icon_1nrfk_21",
|
|
34
|
+
"checkbox-tree__branch--icon--expanded": "_checkbox-tree__branch--icon--expanded_1nrfk_27",
|
|
35
|
+
"checkbox-tree__branch--formfield": "_checkbox-tree__branch--formfield_1nrfk_32",
|
|
36
|
+
"checkbox-tree__leaves": "_checkbox-tree__leaves_1nrfk_39",
|
|
37
|
+
"checkbox-tree__leaves--expanded": "_checkbox-tree__leaves--expanded_1nrfk_48",
|
|
38
|
+
"checkbox-tree__leaf": "_checkbox-tree__leaf_1nrfk_52"
|
|
39
|
+
}, fe = ({
|
|
40
|
+
title: l,
|
|
41
|
+
checkboxTree: F,
|
|
42
42
|
selectedValues: d,
|
|
43
43
|
noLabelFrontWeight: p = !1,
|
|
44
44
|
onChange: b
|
|
45
45
|
}) => {
|
|
46
|
-
const n =
|
|
46
|
+
const n = G({}), [m, x] = S([]), { lessThan: h } = N(), R = (r, e) => {
|
|
47
47
|
if (r.length !== e.length) return !1;
|
|
48
|
-
const t = (o) => o.reduce((
|
|
48
|
+
const t = (o) => o.reduce((f, O) => (f[O] = (f[O] || 0) + 1, f), {}), c = t(r), a = t(e);
|
|
49
49
|
return !Object.keys(c).some((o) => c[o] !== a[o]);
|
|
50
|
-
}, k = (r) => (n.current[r] || (n.current[r] =
|
|
50
|
+
}, k = (r) => (n.current[r] || (n.current[r] = q()), n.current[r]), v = () => {
|
|
51
51
|
const r = [];
|
|
52
52
|
Object.entries(n.current).forEach(([e]) => {
|
|
53
53
|
const t = n.current[e].current;
|
|
@@ -69,7 +69,7 @@ import '../../assets/CheckboxTree.css';const s = {
|
|
|
69
69
|
"aria-expanded",
|
|
70
70
|
((c = e == null ? void 0 : e.closest("[data-li]")) == null ? void 0 : c.getAttribute("aria-expanded")) === "false" ? "true" : "false"
|
|
71
71
|
), t && t.classList.toggle(s["checkbox-tree__leaves--expanded"]);
|
|
72
|
-
},
|
|
72
|
+
}, $ = (r) => {
|
|
73
73
|
const e = r.target;
|
|
74
74
|
if (!(e.type !== "checkbox" && e.type !== "button")) {
|
|
75
75
|
if (h.md && e.name.indexOf("Group") !== -1 && e.parentNode && e.parentNode.parentNode.getAttribute("aria-expanded") === "false") {
|
|
@@ -89,42 +89,42 @@ import '../../assets/CheckboxTree.css';const s = {
|
|
|
89
89
|
}
|
|
90
90
|
_(e.getAttribute("data-groupname") || ""), v();
|
|
91
91
|
}
|
|
92
|
-
},
|
|
92
|
+
}, y = (r) => {
|
|
93
93
|
const e = r.target, t = e.closest("[data-li]");
|
|
94
94
|
g(e, t);
|
|
95
95
|
};
|
|
96
|
-
return
|
|
97
|
-
d && !
|
|
96
|
+
return E(() => {
|
|
97
|
+
d && !R(d, m) && Object.entries(n.current).forEach(([r]) => {
|
|
98
98
|
const e = n.current[r].current;
|
|
99
99
|
e && (d != null && d.includes(e.value) ? e.checked = !0 : e.checked = !1, e.name.indexOf("Group") !== -1 && x(d || []));
|
|
100
100
|
});
|
|
101
|
-
}, [d]),
|
|
101
|
+
}, [d]), E(() => {
|
|
102
102
|
Object.entries(n.current).forEach(([r]) => {
|
|
103
103
|
const e = n.current[r].current;
|
|
104
104
|
e && e.name.indexOf("Group") !== -1 && _(e.name);
|
|
105
105
|
});
|
|
106
106
|
}, [m]), /* @__PURE__ */ u("div", { children: [
|
|
107
|
-
|
|
108
|
-
/* @__PURE__ */ i("div", { onClick:
|
|
107
|
+
l && /* @__PURE__ */ i("span", { className: s["checkbox-tree__header"], children: l }),
|
|
108
|
+
/* @__PURE__ */ i("div", { onClick: $, "data-ul": !0, role: "tree", tabIndex: 0, children: F.map(({ itemName: r, children: e }, t) => /* @__PURE__ */ u(
|
|
109
109
|
"div",
|
|
110
110
|
{
|
|
111
111
|
className: s["checkbox-tree__branch"],
|
|
112
112
|
"data-li": !0,
|
|
113
113
|
"aria-expanded": h.md ? "false" : "true",
|
|
114
114
|
children: [
|
|
115
|
-
/* @__PURE__ */ u(
|
|
116
|
-
/* @__PURE__ */ i(
|
|
117
|
-
|
|
115
|
+
/* @__PURE__ */ u(B, { inline: !0, className: s["checkbox-tree__branch--formfield"], children: [
|
|
116
|
+
/* @__PURE__ */ i(L, { variant: "blank", onClick: y, children: /* @__PURE__ */ i(
|
|
117
|
+
I,
|
|
118
118
|
{
|
|
119
119
|
name: "CheveronRight",
|
|
120
120
|
size: 16,
|
|
121
|
-
className:
|
|
121
|
+
className: j(s["checkbox-tree__branch--icon"], {
|
|
122
122
|
[s["checkbox-tree__branch--icon--expanded"]]: !h.md
|
|
123
123
|
})
|
|
124
124
|
}
|
|
125
125
|
) }),
|
|
126
126
|
/* @__PURE__ */ i(
|
|
127
|
-
|
|
127
|
+
A,
|
|
128
128
|
{
|
|
129
129
|
id: r,
|
|
130
130
|
name: `Group${t}`,
|
|
@@ -132,18 +132,18 @@ import '../../assets/CheckboxTree.css';const s = {
|
|
|
132
132
|
ref: k(`Group${t}`)
|
|
133
133
|
}
|
|
134
134
|
),
|
|
135
|
-
/* @__PURE__ */ i(
|
|
135
|
+
/* @__PURE__ */ i(C, { htmlFor: r, noFontWeight: p, children: r })
|
|
136
136
|
] }),
|
|
137
137
|
/* @__PURE__ */ i(
|
|
138
138
|
"div",
|
|
139
139
|
{
|
|
140
|
-
className:
|
|
140
|
+
className: j(s["checkbox-tree__leaves"], {
|
|
141
141
|
[s["checkbox-tree__leaves--expanded"]]: !h.md
|
|
142
142
|
}),
|
|
143
143
|
"data-ul": !0,
|
|
144
|
-
children: e.map(({ itemName: c, itemValue: a, disabled: o }) => /* @__PURE__ */ i("div", { className: s["checkbox-tree__leaf"], "data-li": !0, children: /* @__PURE__ */ u(
|
|
144
|
+
children: e.map(({ itemName: c, itemValue: a, disabled: o }) => /* @__PURE__ */ i("div", { className: s["checkbox-tree__leaf"], "data-li": !0, children: /* @__PURE__ */ u(B, { inline: !0, className: s["checkbox-tree__branch--formfield"], children: [
|
|
145
145
|
/* @__PURE__ */ i(
|
|
146
|
-
|
|
146
|
+
A,
|
|
147
147
|
{
|
|
148
148
|
id: c,
|
|
149
149
|
name: c,
|
|
@@ -153,7 +153,7 @@ import '../../assets/CheckboxTree.css';const s = {
|
|
|
153
153
|
ref: k(`Group${t}_${c}`)
|
|
154
154
|
}
|
|
155
155
|
),
|
|
156
|
-
/* @__PURE__ */ i(
|
|
156
|
+
/* @__PURE__ */ i(C, { htmlFor: c, noFontWeight: p, children: c })
|
|
157
157
|
] }) }, c))
|
|
158
158
|
}
|
|
159
159
|
)
|
|
@@ -164,6 +164,6 @@ import '../../assets/CheckboxTree.css';const s = {
|
|
|
164
164
|
] });
|
|
165
165
|
};
|
|
166
166
|
export {
|
|
167
|
-
|
|
167
|
+
fe as CheckboxTree
|
|
168
168
|
};
|
|
169
169
|
//# sourceMappingURL=CheckboxTree.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as o, jsx as
|
|
2
|
-
import { Icon as
|
|
3
|
-
import '../../assets/Chip.css';const
|
|
4
|
-
chip:
|
|
1
|
+
import { jsxs as o, jsx as _ } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as t } from "../Icon/Icon.js";
|
|
3
|
+
import '../../assets/Chip.css';const e = "_chip_1uifs_1", l = "_chip__label_1uifs_25", c = {
|
|
4
|
+
chip: e,
|
|
5
5
|
chip__label: l,
|
|
6
|
-
"chip__close-button": "_chip__close-
|
|
7
|
-
}, h = ({ label:
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
6
|
+
"chip__close-button": "_chip__close-button_1uifs_32"
|
|
7
|
+
}, h = ({ label: s, onDelete: i }) => /* @__PURE__ */ o("button", { className: c.chip, onClick: () => i(s), children: [
|
|
8
|
+
/* @__PURE__ */ _("span", { className: c.chip__label, children: s }),
|
|
9
|
+
/* @__PURE__ */ _(t, { name: "Cross", size: 20, className: c["chip__close-button"] })
|
|
10
10
|
] });
|
|
11
11
|
export {
|
|
12
12
|
h as Chip
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useDialog as
|
|
1
|
+
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { useDialog as b } from "@react-aria/dialog";
|
|
3
3
|
import { FocusScope as C } from "@react-aria/focus";
|
|
4
4
|
import { useModal as D, useOverlay as g, usePreventScroll as N, OverlayContainer as v } from "@react-aria/overlays";
|
|
5
|
-
import { c as
|
|
6
|
-
import { useState as
|
|
7
|
-
import { Backdrop as
|
|
8
|
-
import { OverlayCloseButton as
|
|
9
|
-
import '../../assets/Drawer.css';const
|
|
10
|
-
drawer:
|
|
11
|
-
drawer__content:
|
|
12
|
-
drawer__header:
|
|
13
|
-
drawer__footer:
|
|
14
|
-
drawer__heading:
|
|
15
|
-
"drawer--open": "_drawer--
|
|
16
|
-
drawer__buttons:
|
|
17
|
-
},
|
|
5
|
+
import { c as z } from "../../clsx-OuTLNxxd.js";
|
|
6
|
+
import { useState as P, useRef as x, useEffect as S } from "react";
|
|
7
|
+
import { Backdrop as j } from "../Backdrop/Backdrop.js";
|
|
8
|
+
import { OverlayCloseButton as k } from "../OverlayCloseButton/OverlayCloseButton.js";
|
|
9
|
+
import '../../assets/Drawer.css';const B = "_drawer_1yz6e_1", F = "_drawer__content_1yz6e_22", R = "_drawer__header_1yz6e_32", T = "_drawer__footer_1yz6e_39", E = "_drawer__heading_1yz6e_26", K = "_drawer__buttons_1yz6e_64", e = {
|
|
10
|
+
drawer: B,
|
|
11
|
+
drawer__content: F,
|
|
12
|
+
drawer__header: R,
|
|
13
|
+
drawer__footer: T,
|
|
14
|
+
drawer__heading: E,
|
|
15
|
+
"drawer--open": "_drawer--open_1yz6e_59",
|
|
16
|
+
drawer__buttons: K
|
|
17
|
+
}, M = 200;
|
|
18
18
|
function U({
|
|
19
19
|
buttons: s,
|
|
20
20
|
children: n,
|
|
@@ -24,34 +24,34 @@ function U({
|
|
|
24
24
|
closeButtonAriaValueText: i = "Close",
|
|
25
25
|
...w
|
|
26
26
|
}) {
|
|
27
|
-
const [m, t] =
|
|
27
|
+
const [m, t] = P(e.drawer), { modalProps: u } = D({ isDisabled: !o }), a = x(null);
|
|
28
28
|
function _() {
|
|
29
|
-
t(
|
|
29
|
+
t(e.drawer), globalThis.setTimeout(() => {
|
|
30
30
|
l();
|
|
31
|
-
},
|
|
31
|
+
}, M);
|
|
32
32
|
}
|
|
33
33
|
const { overlayProps: f, underlayProps: h } = g(
|
|
34
34
|
{ isDismissable: !0, isKeyboardDismissDisabled: !1, isOpen: o, onClose: _ },
|
|
35
35
|
a
|
|
36
|
-
), { dialogProps:
|
|
37
|
-
return N({ isDisabled: !o }),
|
|
38
|
-
t(
|
|
39
|
-
}, [o]), /* @__PURE__ */
|
|
36
|
+
), { dialogProps: p, titleProps: y } = b({}, a);
|
|
37
|
+
return N({ isDisabled: !o }), S(() => {
|
|
38
|
+
t(z(e.drawer, { [e["drawer--open"]]: o }));
|
|
39
|
+
}, [o]), /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(j, { ...h, children: /* @__PURE__ */ r(C, { contain: !0, restoreFocus: !0, children: /* @__PURE__ */ d(
|
|
40
40
|
"aside",
|
|
41
41
|
{
|
|
42
42
|
...u,
|
|
43
43
|
...f,
|
|
44
|
-
...
|
|
44
|
+
...p,
|
|
45
45
|
...w,
|
|
46
46
|
className: m,
|
|
47
47
|
ref: a,
|
|
48
48
|
children: [
|
|
49
|
-
/* @__PURE__ */ d("header", { className:
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ d("header", { className: e.drawer__header, children: [
|
|
50
|
+
/* @__PURE__ */ r("h1", { className: e.drawer__heading, ...y, children: c }),
|
|
51
|
+
/* @__PURE__ */ r(k, { "aria-label": i, onClick: _ })
|
|
52
52
|
] }),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
s && /* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ r("div", { className: e.drawer__content, children: n }),
|
|
54
|
+
s && /* @__PURE__ */ r("footer", { className: e.drawer__footer, children: /* @__PURE__ */ r("div", { className: e.drawer__buttons, children: s }) })
|
|
55
55
|
]
|
|
56
56
|
}
|
|
57
57
|
) }) }) });
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { Icon as
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { Icon as l } from "../Icon/Icon.js";
|
|
4
4
|
import '../../assets/EmptyStateDataDisplay.css';const a = {
|
|
5
|
-
"empty-state-data-display_wrapper": "_empty-state-data-
|
|
6
|
-
"empty-state-data-display_icon-frame": "_empty-state-data-display_icon-
|
|
7
|
-
"empty-state-data-display_wrapper--invert-colors": "_empty-state-data-display_wrapper--invert-
|
|
8
|
-
"empty-state-data-display_icon-frame--invert-colors": "_empty-state-data-display_icon-frame--invert-
|
|
9
|
-
"empty-state-data-display_text-content": "_empty-state-data-display_text-
|
|
10
|
-
"empty-state-data-display_label": "_empty-state-data-
|
|
11
|
-
"empty-state-data-display_paragraph": "_empty-state-data-
|
|
5
|
+
"empty-state-data-display_wrapper": "_empty-state-data-display_wrapper_14bsh_1",
|
|
6
|
+
"empty-state-data-display_icon-frame": "_empty-state-data-display_icon-frame_14bsh_9",
|
|
7
|
+
"empty-state-data-display_wrapper--invert-colors": "_empty-state-data-display_wrapper--invert-colors_14bsh_19",
|
|
8
|
+
"empty-state-data-display_icon-frame--invert-colors": "_empty-state-data-display_icon-frame--invert-colors_14bsh_23",
|
|
9
|
+
"empty-state-data-display_text-content": "_empty-state-data-display_text-content_14bsh_27",
|
|
10
|
+
"empty-state-data-display_label": "_empty-state-data-display_label_14bsh_33",
|
|
11
|
+
"empty-state-data-display_paragraph": "_empty-state-data-display_paragraph_14bsh_37"
|
|
12
12
|
};
|
|
13
|
-
function
|
|
14
|
-
return /* @__PURE__ */
|
|
13
|
+
function m({ label: r, paragraph: e, invertColors: s }) {
|
|
14
|
+
return /* @__PURE__ */ p(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
|
-
className:
|
|
18
|
-
[a["empty-state-data-display_wrapper--invert-colors"]]:
|
|
17
|
+
className: d(a["empty-state-data-display_wrapper"], {
|
|
18
|
+
[a["empty-state-data-display_wrapper--invert-colors"]]: s
|
|
19
19
|
}),
|
|
20
20
|
children: [
|
|
21
21
|
/* @__PURE__ */ t(
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
|
-
className:
|
|
25
|
-
[a["empty-state-data-display_icon-frame--invert-colors"]]:
|
|
24
|
+
className: d(a["empty-state-data-display_icon-frame"], {
|
|
25
|
+
[a["empty-state-data-display_icon-frame--invert-colors"]]: s
|
|
26
26
|
}),
|
|
27
|
-
children: /* @__PURE__ */ t(
|
|
27
|
+
children: /* @__PURE__ */ t(l, { name: "CubeTransparent" })
|
|
28
28
|
}
|
|
29
29
|
),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */ t("label", { className: a["empty-state-data-display_label"], children:
|
|
30
|
+
/* @__PURE__ */ p("div", { className: a["empty-state-data-display_text-content"], children: [
|
|
31
|
+
/* @__PURE__ */ t("label", { className: a["empty-state-data-display_label"], children: r }),
|
|
32
32
|
e && /* @__PURE__ */ t("p", { className: a["empty-state-data-display_paragraph"], children: e })
|
|
33
33
|
] })
|
|
34
34
|
]
|
|
@@ -36,6 +36,6 @@ function _({ label: d, paragraph: e, invertColors: p }) {
|
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
m as EmptyStateDataDisplay
|
|
40
40
|
};
|
|
41
41
|
//# sourceMappingURL=EmptyStateDataDisplay.js.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { useState as l, useEffect as _ } from "react";
|
|
4
|
-
import { Icon as
|
|
4
|
+
import { Icon as b } from "../Icon/Icon.js";
|
|
5
5
|
import { Repeater as f } from "../Repeater/Repeater.js";
|
|
6
6
|
import '../../assets/FeedbackBar.css';const e = {
|
|
7
|
-
"feedback-bar": "_feedback-
|
|
8
|
-
"feedback-bar--visible": "_feedback-bar--
|
|
9
|
-
"feedback-bar__icon": "_feedback-
|
|
10
|
-
"feedback-bar__close-button": "_feedback-bar__close-
|
|
11
|
-
}, x = ({ children:
|
|
12
|
-
const [t,
|
|
7
|
+
"feedback-bar": "_feedback-bar_1exld_1",
|
|
8
|
+
"feedback-bar--visible": "_feedback-bar--visible_1exld_15",
|
|
9
|
+
"feedback-bar__icon": "_feedback-bar__icon_1exld_21",
|
|
10
|
+
"feedback-bar__close-button": "_feedback-bar__close-button_1exld_25"
|
|
11
|
+
}, x = ({ children: o }) => {
|
|
12
|
+
const [t, r] = l(!1);
|
|
13
13
|
_(() => {
|
|
14
|
-
|
|
14
|
+
r(!0);
|
|
15
15
|
}, []);
|
|
16
16
|
const i = () => {
|
|
17
|
-
|
|
17
|
+
r(!1);
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */ a(
|
|
22
|
-
|
|
19
|
+
return /* @__PURE__ */ s("div", { className: c(e["feedback-bar"], { [e["feedback-bar--visible"]]: t }), role: "alert", children: [
|
|
20
|
+
/* @__PURE__ */ s(f, { flexDirection: "row", children: [
|
|
21
|
+
/* @__PURE__ */ a(b, { className: c(e["feedback-bar__icon"]), name: "CheckCircle" }),
|
|
22
|
+
o
|
|
23
23
|
] }),
|
|
24
|
-
/* @__PURE__ */ a("button", { className: c(e["feedback-bar__close-button"]), type: "button", onClick: i, children: /* @__PURE__ */ a(
|
|
24
|
+
/* @__PURE__ */ a("button", { className: c(e["feedback-bar__close-button"]), type: "button", onClick: i, children: /* @__PURE__ */ a(b, { name: "Cross", size: 24 }) })
|
|
25
25
|
] });
|
|
26
26
|
};
|
|
27
27
|
export {
|