@uva-glass/component-library 3.49.0 → 3.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button.module-S1-6tV9o.js +16 -0
- package/dist/Button.module-S1-6tV9o.js.map +1 -0
- package/dist/MultiSelectItem-BzBmsKof.js +24 -0
- package/dist/{MultiSelectItem-DbOdEllV.js.map → MultiSelectItem-BzBmsKof.js.map} +1 -1
- package/dist/RteEditor.module-CmYZ4MmA.js +36 -0
- package/dist/RteEditor.module-CmYZ4MmA.js.map +1 -0
- package/dist/SearchField.module-CMUEgX7d.js +17 -0
- package/dist/SearchField.module-CMUEgX7d.js.map +1 -0
- package/dist/{SelectListbox.module-CAKDuwcy.js → SelectListbox.module-CgZyIxwT.js} +25 -25
- package/dist/SelectListbox.module-CgZyIxwT.js.map +1 -0
- package/dist/Sortable.module-DCVXxKnw.js +26 -0
- package/dist/Sortable.module-DCVXxKnw.js.map +1 -0
- package/dist/{SortableProvider-l8-7ClBJ.js → SortableProvider-BbwlEPIr.js} +2 -2
- package/dist/{SortableProvider-l8-7ClBJ.js.map → SortableProvider-BbwlEPIr.js.map} +1 -1
- package/dist/{TablePlugin-Cvw0NmoH.js → TablePlugin-8TKXJMYE.js} +62 -62
- package/dist/{TablePlugin-Cvw0NmoH.js.map → TablePlugin-8TKXJMYE.js.map} +1 -1
- package/dist/WeekSelector.module-Clco7jTs.js +17 -0
- package/dist/WeekSelector.module-Clco7jTs.js.map +1 -0
- 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/Backdrop2.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/CheckboxButtonBar.css +1 -1
- package/dist/assets/CheckboxTree.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/ControlsButton.css +1 -1
- package/dist/assets/CopyableText.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/EditorHeader.css +1 -1
- package/dist/assets/EmptyStateDataDisplay.css +1 -1
- package/dist/assets/ExpandableInfoPanel.css +1 -1
- package/dist/assets/FeedbackBar.css +1 -1
- package/dist/assets/FeedbackBox.css +1 -1
- package/dist/assets/Flyout.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/InfoBanner.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/Notification.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/RadioTabSelector.css +1 -1
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/assets/SectionNotification.css +1 -1
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/assets/Slider.css +1 -1
- package/dist/assets/Sortable.css +1 -1
- package/dist/assets/Spinner.css +1 -1
- package/dist/assets/StatusBage.css +1 -1
- package/dist/assets/StatusPill.css +1 -1
- package/dist/assets/TableCellContextMenu.css +1 -1
- package/dist/assets/TablePlugin.css +1 -1
- package/dist/assets/TextArea.css +1 -1
- package/dist/assets/ToggleSwitch.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/assets/VarIndicator.css +1 -1
- package/dist/assets/WeekSelector.css +1 -1
- package/dist/assets/variables.css +72 -147
- package/dist/components/AccordionCard/AccordionCard.js +12 -12
- package/dist/components/ActionList/ActionList.js +16 -16
- package/dist/components/AppStatusBar/AppStatusBar.js +5 -5
- package/dist/components/Backdrop/Backdrop.js +1 -1
- 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 +17 -17
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +40 -40
- package/dist/components/CheckboxTree/CheckboxTree.js +33 -33
- package/dist/components/Chip/Chip.js +6 -6
- package/dist/components/ControlsButton/ControlsButton.js +31 -31
- package/dist/components/CopyableText/CopyableText.js +18 -18
- package/dist/components/Drawer/Drawer.js +34 -34
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js +20 -20
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js +21 -21
- package/dist/components/FeedbackBar/FeedbackBar.js +11 -11
- package/dist/components/FeedbackBox/FeedbackBox.js +18 -18
- package/dist/components/FormInput/FormInput.js +22 -22
- package/dist/components/Icon/Icon.stories.js +9 -9
- package/dist/components/IconButton/IconButton.js +9 -9
- package/dist/components/InfoBanner/InfoBanner.js +1 -1
- package/dist/components/InfoMessage/InfoMessage.js +5 -5
- package/dist/components/Input/Input.js +16 -16
- package/dist/components/InputField/InputField.js +29 -29
- package/dist/components/InputField/InputField.stories.js +2 -2
- package/dist/components/Label/Label.js +7 -7
- package/dist/components/MetaDataList/MetaDataList.js +7 -7
- package/dist/components/ModalDialog/ModalDialog.js +55 -55
- 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 +27 -27
- package/dist/components/Notification/Notification.js +36 -36
- package/dist/components/OverlayCloseButton/OverlayCloseButton.js +10 -10
- package/dist/components/OverlayStepBar/OverlayStepBar.js +24 -24
- package/dist/components/PageOverlay/PageOverlay.js +37 -37
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/Periods/Periods.js +24 -24
- package/dist/components/ProgrammeCard/ProgrammeCard.js +7 -7
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RadioButton/RadioButton.js +12 -12
- package/dist/components/RadioGroup/RadioGroup.js +23 -23
- package/dist/components/RadioTabSelector/RadioTabSelector.js +25 -25
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +7 -7
- 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 +17 -17
- 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 +31 -31
- 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/RteEditor/hooks/components/Flyout.js +3 -3
- package/dist/components/SearchField/SearchField.js +1 -1
- package/dist/components/SearchField/components/ResultOptionBox.js +1 -1
- package/dist/components/SearchField/components/ResultsOption.js +1 -1
- package/dist/components/SectionNotification/SectionNotification.js +5 -5
- 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/Slider/Slider.js +43 -41
- package/dist/components/Slider/Slider.js.map +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 +8 -8
- package/dist/components/StatusBadge/StatusBage.js +6 -6
- package/dist/components/StatusPill/StatusPill.js +12 -12
- package/dist/components/TextArea/TextArea.js +17 -17
- package/dist/components/ToggleSwitch/ToggleSwitch.js +13 -13
- package/dist/components/Tooltip/Tooltip.js +23 -23
- package/dist/components/VarIndicator/VarIndicator.js +18 -18
- package/dist/components/WeekSelector/WeekSelector.js +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorButton.js +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOption.js +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOptionContainer.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/storyComponents/Container/Container.js +10 -10
- package/package.json +4 -4
- package/dist/Button.module-D-q-W0TM.js +0 -16
- package/dist/Button.module-D-q-W0TM.js.map +0 -1
- package/dist/MultiSelectItem-DbOdEllV.js +0 -24
- package/dist/RteEditor.module-SmmXEc4R.js +0 -36
- package/dist/RteEditor.module-SmmXEc4R.js.map +0 -1
- package/dist/SearchField.module-Be9ZoU-6.js +0 -17
- package/dist/SearchField.module-Be9ZoU-6.js.map +0 -1
- package/dist/SelectListbox.module-CAKDuwcy.js.map +0 -1
- package/dist/Sortable.module-B6I6E9un.js +0 -26
- package/dist/Sortable.module-B6I6E9un.js.map +0 -1
- package/dist/WeekSelector.module-D9MD4nVJ.js +0 -17
- package/dist/WeekSelector.module-D9MD4nVJ.js.map +0 -1
|
@@ -2,7 +2,7 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
3
|
import { Link as i } from "react-router";
|
|
4
4
|
import { c as n } from "../../clsx-OuTLNxxd.js";
|
|
5
|
-
import { s as o } from "../../Button.module-
|
|
5
|
+
import { s as o } from "../../Button.module-S1-6tV9o.js";
|
|
6
6
|
const l = f(
|
|
7
7
|
({ variant: r, ...t }, m) => /* @__PURE__ */ s(i, { ...t, className: n(o.button, o[`button--${r}`]), ref: m })
|
|
8
8
|
);
|
|
@@ -2,7 +2,7 @@ import { jsxs as e, jsx as p } from "react/jsx-runtime";
|
|
|
2
2
|
import { useButton as c } from "@react-aria/button";
|
|
3
3
|
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import { Icon as i } from "../Icon/Icon.js";
|
|
5
|
-
import { s as r } from "../../Button.module-
|
|
5
|
+
import { s as r } from "../../Button.module-S1-6tV9o.js";
|
|
6
6
|
function B({ buttonRef: t, variant: s, iconName: o, children: n, ...m }) {
|
|
7
7
|
const { buttonProps: u } = c(m, t);
|
|
8
8
|
return /* @__PURE__ */ e("button", { ...u, ref: t, className: f(r.button, r[`button--${s}`]), children: [
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { jsxs as m, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { c as t } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { SectionNotification as o } from "../SectionNotification/SectionNotification.js";
|
|
4
|
-
import '../../assets/Card.css';const g = "
|
|
4
|
+
import '../../assets/Card.css';const g = "_card_1m1jk_1", r = {
|
|
5
5
|
card: g,
|
|
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
|
-
},
|
|
6
|
+
"card--regular": "_card--regular_1m1jk_7",
|
|
7
|
+
"card--large": "_card--large_1m1jk_8",
|
|
8
|
+
"card--small": "_card--small_1m1jk_13",
|
|
9
|
+
"card-header": "_card-header_1m1jk_26",
|
|
10
|
+
"card--high-contrast": "_card--high-contrast_1m1jk_33",
|
|
11
|
+
"card--align-center": "_card--align-center_1m1jk_37"
|
|
12
|
+
}, j = ({
|
|
13
13
|
children: d,
|
|
14
14
|
header: c,
|
|
15
15
|
highContrast: s,
|
|
16
16
|
notification: e,
|
|
17
|
-
padding:
|
|
17
|
+
padding: a = "regular",
|
|
18
18
|
alignCenter: _ = !1
|
|
19
19
|
}) => /* @__PURE__ */ m(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
className: t(
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
22
|
+
className: t(r.card, {
|
|
23
|
+
[r["card--high-contrast"]]: s,
|
|
24
|
+
[r["card--regular"]]: a === "regular",
|
|
25
|
+
[r["card--small"]]: a === "small",
|
|
26
|
+
[r["card--large"]]: a === "large",
|
|
27
|
+
[r["card--align-center"]]: _
|
|
28
28
|
}),
|
|
29
29
|
children: [
|
|
30
30
|
e && /* @__PURE__ */ l(o, { children: e }),
|
|
31
|
-
c && /* @__PURE__ */ l("div", { className:
|
|
31
|
+
c && /* @__PURE__ */ l("div", { className: r["card-header"], children: c }),
|
|
32
32
|
d
|
|
33
33
|
]
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
j as Card
|
|
38
38
|
};
|
|
39
39
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
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_rbntw_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 {
|
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import { jsxs as F, jsx as
|
|
1
|
+
import { jsxs as F, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { useState as S } from "react";
|
|
3
3
|
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import { Label as L } from "../Label/Label.js";
|
|
5
5
|
import { FeedbackBox as $ } from "../FeedbackBox/FeedbackBox.js";
|
|
6
6
|
import { ControlsButton as C } from "../ControlsButton/ControlsButton.js";
|
|
7
|
-
import '../../assets/CheckboxButtonBar.css';const
|
|
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-container--segmented": "_checkbox-button-bar__row-container--
|
|
13
|
-
"checkbox-button-bar__row": "_checkbox-button-
|
|
14
|
-
"checkbox-button-bar__row--not-validated": "_checkbox-button-bar__row--not-
|
|
15
|
-
"checkbox-button-bar__footer": "_checkbox-button-
|
|
7
|
+
import '../../assets/CheckboxButtonBar.css';const t = {
|
|
8
|
+
"checkbox-button-bar__container": "_checkbox-button-bar__container_114ld_1",
|
|
9
|
+
"checkbox-button-bar__container--label-left": "_checkbox-button-bar__container--label-left_114ld_6",
|
|
10
|
+
"checkbox-button-bar__container--label-top": "_checkbox-button-bar__container--label-top_114ld_12",
|
|
11
|
+
"checkbox-button-bar__row-container": "_checkbox-button-bar__row-container_114ld_18",
|
|
12
|
+
"checkbox-button-bar__row-container--segmented": "_checkbox-button-bar__row-container--segmented_114ld_24",
|
|
13
|
+
"checkbox-button-bar__row": "_checkbox-button-bar__row_114ld_18",
|
|
14
|
+
"checkbox-button-bar__row--not-validated": "_checkbox-button-bar__row--not-validated_114ld_39",
|
|
15
|
+
"checkbox-button-bar__footer": "_checkbox-button-bar__footer_114ld_43"
|
|
16
16
|
}, J = ({
|
|
17
|
-
checkboxes:
|
|
17
|
+
checkboxes: x,
|
|
18
18
|
defaultValues: r,
|
|
19
|
-
label:
|
|
19
|
+
label: d,
|
|
20
20
|
labelPosition: y = "top",
|
|
21
21
|
required: j = !1,
|
|
22
|
-
notValidated:
|
|
22
|
+
notValidated: m = !1,
|
|
23
23
|
notValidatedText: n = "",
|
|
24
24
|
actAsRadioButtonBar: a = !1,
|
|
25
|
-
footerText:
|
|
25
|
+
footerText: u = "",
|
|
26
26
|
disableGroup: f = !1,
|
|
27
27
|
segmented: p = !1,
|
|
28
28
|
forceSquared: w = !1,
|
|
29
29
|
onSetValues: g
|
|
30
30
|
}) => {
|
|
31
|
-
const [
|
|
31
|
+
const [l, v] = S(
|
|
32
32
|
r && !a ? r.map(String) : r && a ? r.slice(0, 1) : []
|
|
33
|
-
), N = (
|
|
34
|
-
let o =
|
|
35
|
-
a ? (v([
|
|
33
|
+
), N = (e) => {
|
|
34
|
+
let o = l;
|
|
35
|
+
a ? (v([e]), g([e])) : (o.includes(e) ? o = o.filter((b) => b !== e) : o = [...o, e], v(o), g(o));
|
|
36
36
|
};
|
|
37
37
|
return /* @__PURE__ */ F(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
40
|
className: _(
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
t["checkbox-button-bar__container"],
|
|
42
|
+
t[`checkbox-button-bar__container--label-${y}`]
|
|
43
43
|
),
|
|
44
44
|
children: [
|
|
45
|
-
|
|
46
|
-
/* @__PURE__ */
|
|
45
|
+
d && /* @__PURE__ */ c(L, { htmlFor: "", required: j, children: d }),
|
|
46
|
+
/* @__PURE__ */ c(
|
|
47
47
|
"div",
|
|
48
48
|
{
|
|
49
|
-
className: _(
|
|
50
|
-
[
|
|
49
|
+
className: _(t["checkbox-button-bar__row-container"], {
|
|
50
|
+
[t["checkbox-button-bar__row-container--segmented"]]: p
|
|
51
51
|
}),
|
|
52
|
-
children: p ?
|
|
52
|
+
children: p ? x.map(({ label: e, value: o, prefix: b, tooltip: h, tooltipPosition: i, disabled: s }) => /* @__PURE__ */ c(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
|
-
className: _(
|
|
56
|
-
[
|
|
55
|
+
className: _(t["checkbox-button-bar__row"], {
|
|
56
|
+
[t["checkbox-button-bar__row--not-validated"]]: m || n
|
|
57
57
|
}),
|
|
58
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ c(
|
|
59
59
|
C,
|
|
60
60
|
{
|
|
61
61
|
type: "checkbox",
|
|
62
|
-
label:
|
|
62
|
+
label: e,
|
|
63
63
|
prefix: b,
|
|
64
|
-
tooltip:
|
|
64
|
+
tooltip: h,
|
|
65
65
|
tooltipPosition: i,
|
|
66
66
|
forceSquared: w,
|
|
67
67
|
value: o,
|
|
68
|
-
checked:
|
|
68
|
+
checked: l.includes(o),
|
|
69
69
|
disabled: s || f,
|
|
70
70
|
onSetValue: (k) => N(k.target.value)
|
|
71
71
|
}
|
|
72
72
|
)
|
|
73
73
|
},
|
|
74
74
|
o
|
|
75
|
-
)) : /* @__PURE__ */
|
|
75
|
+
)) : /* @__PURE__ */ c(
|
|
76
76
|
"div",
|
|
77
77
|
{
|
|
78
|
-
className: _(
|
|
79
|
-
[
|
|
78
|
+
className: _(t["checkbox-button-bar__row"], {
|
|
79
|
+
[t["checkbox-button-bar__row--not-validated"]]: m || n
|
|
80
80
|
}),
|
|
81
|
-
children:
|
|
81
|
+
children: x.map(({ label: e, value: o, prefix: b, tooltip: h, tooltipPosition: i, disabled: s }) => /* @__PURE__ */ c(
|
|
82
82
|
C,
|
|
83
83
|
{
|
|
84
84
|
type: "checkbox",
|
|
85
|
-
label:
|
|
85
|
+
label: e,
|
|
86
86
|
prefix: b,
|
|
87
|
-
tooltip:
|
|
87
|
+
tooltip: h,
|
|
88
88
|
tooltipPosition: i,
|
|
89
89
|
forceSquared: w,
|
|
90
90
|
value: o,
|
|
91
|
-
checked:
|
|
91
|
+
checked: l.includes(o),
|
|
92
92
|
disabled: s || f,
|
|
93
93
|
onSetValue: (k) => N(k.target.value)
|
|
94
94
|
},
|
|
@@ -98,8 +98,8 @@ import '../../assets/CheckboxButtonBar.css';const e = {
|
|
|
98
98
|
)
|
|
99
99
|
}
|
|
100
100
|
),
|
|
101
|
-
|
|
102
|
-
n !== "" && /* @__PURE__ */
|
|
101
|
+
u && /* @__PURE__ */ c("div", { className: t["checkbox-button-bar__footer"], children: u }),
|
|
102
|
+
n !== "" && /* @__PURE__ */ c($, { level: "error", feedback: n })
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
105
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as G, useState as S, useEffect as
|
|
3
|
-
import { c as
|
|
1
|
+
import { jsxs as u, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as G, useState as S, useEffect as O, createRef as q } from "react";
|
|
3
|
+
import { c as E } from "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import "../Accordion/Accordion.js";
|
|
5
5
|
import { Icon as I } from "../Icon/Icon.js";
|
|
6
6
|
import { Button as L } from "../Buttons/Button.js";
|
|
@@ -18,7 +18,7 @@ import "../IconButton/IconButton.js";
|
|
|
18
18
|
import "../Input/Input.js";
|
|
19
19
|
import "../InputField/InputField.js";
|
|
20
20
|
import "react-router";
|
|
21
|
-
import "../../TablePlugin-
|
|
21
|
+
import "../../TablePlugin-8TKXJMYE.js";
|
|
22
22
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
23
23
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
24
24
|
import "../RteEditor/hooks/components/Flyout.js";
|
|
@@ -28,36 +28,36 @@ import "../SearchField/SearchField.js";
|
|
|
28
28
|
import "../SelectListbox/SelectListbox.js";
|
|
29
29
|
import "../SelectListbox/SelectProvider.js";
|
|
30
30
|
import "../Sortable/components/SortableItem.js";
|
|
31
|
-
import "../../SortableProvider-
|
|
31
|
+
import "../../SortableProvider-BbwlEPIr.js";
|
|
32
32
|
import "../WeekSelector/components/WeekSelectorOptionContainer.js";
|
|
33
33
|
import { useResponsive as N } from "../hooks/useResponsive.js";
|
|
34
34
|
import '../../assets/CheckboxTree.css';const a = {
|
|
35
|
-
"checkbox-tree__header": "_checkbox-
|
|
36
|
-
"checkbox-tree__branch": "_checkbox-
|
|
37
|
-
"checkbox-tree__branch--icon": "_checkbox-tree__branch--
|
|
38
|
-
"checkbox-tree__branch--icon--expanded": "_checkbox-tree__branch--icon--
|
|
39
|
-
"checkbox-tree__branch--formfield": "_checkbox-tree__branch--
|
|
40
|
-
"checkbox-tree__leaves": "_checkbox-
|
|
41
|
-
"checkbox-tree__leaves--expanded": "_checkbox-tree__leaves--
|
|
42
|
-
"checkbox-tree__leaf": "_checkbox-
|
|
35
|
+
"checkbox-tree__header": "_checkbox-tree__header_1kejb_1",
|
|
36
|
+
"checkbox-tree__branch": "_checkbox-tree__branch_1kejb_8",
|
|
37
|
+
"checkbox-tree__branch--icon": "_checkbox-tree__branch--icon_1kejb_21",
|
|
38
|
+
"checkbox-tree__branch--icon--expanded": "_checkbox-tree__branch--icon--expanded_1kejb_27",
|
|
39
|
+
"checkbox-tree__branch--formfield": "_checkbox-tree__branch--formfield_1kejb_32",
|
|
40
|
+
"checkbox-tree__leaves": "_checkbox-tree__leaves_1kejb_39",
|
|
41
|
+
"checkbox-tree__leaves--expanded": "_checkbox-tree__leaves--expanded_1kejb_48",
|
|
42
|
+
"checkbox-tree__leaf": "_checkbox-tree__leaf_1kejb_52"
|
|
43
43
|
}, me = ({
|
|
44
|
-
title:
|
|
44
|
+
title: b,
|
|
45
45
|
checkboxTree: F,
|
|
46
46
|
selectedValues: d,
|
|
47
|
-
noLabelFrontWeight:
|
|
48
|
-
onChange:
|
|
47
|
+
noLabelFrontWeight: p = !1,
|
|
48
|
+
onChange: f
|
|
49
49
|
}) => {
|
|
50
50
|
const c = G({}), [m, x] = S([]), { lessThan: h } = N(), R = (r, e) => {
|
|
51
51
|
if (r.length !== e.length) return !1;
|
|
52
|
-
const t = (o) => o.reduce((_,
|
|
52
|
+
const t = (o) => o.reduce((_, j) => (_[j] = (_[j] || 0) + 1, _), {}), n = t(r), s = t(e);
|
|
53
53
|
return !Object.keys(n).some((o) => n[o] !== s[o]);
|
|
54
54
|
}, k = (r) => (c.current[r] || (c.current[r] = q()), c.current[r]), v = () => {
|
|
55
55
|
const r = [];
|
|
56
56
|
Object.entries(c.current).forEach(([e]) => {
|
|
57
57
|
const t = c.current[e].current;
|
|
58
58
|
t && t.name.indexOf("Group") === -1 && t.checked && r.push(t.value);
|
|
59
|
-
}), x(r),
|
|
60
|
-
},
|
|
59
|
+
}), x(r), f && f(r);
|
|
60
|
+
}, l = (r) => {
|
|
61
61
|
if (r === "") return;
|
|
62
62
|
const e = [];
|
|
63
63
|
Object.entries(c.current).forEach(([s]) => {
|
|
@@ -87,41 +87,41 @@ import '../../assets/CheckboxTree.css';const a = {
|
|
|
87
87
|
if (!s || !o) return;
|
|
88
88
|
s.checked = !!o.checked;
|
|
89
89
|
}
|
|
90
|
-
}),
|
|
90
|
+
}), l(t), v();
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
l(e.getAttribute("data-groupname") || ""), v();
|
|
94
94
|
}
|
|
95
95
|
}, y = (r) => {
|
|
96
96
|
const e = r.target, t = e.closest("[data-li]");
|
|
97
97
|
g(e, t);
|
|
98
98
|
};
|
|
99
|
-
return
|
|
99
|
+
return O(() => {
|
|
100
100
|
d && !R(d, m) && Object.entries(c.current).forEach(([r]) => {
|
|
101
101
|
const e = c.current[r].current;
|
|
102
102
|
e && (d?.includes(e.value) ? e.checked = !0 : e.checked = !1, e.name.indexOf("Group") !== -1 && x(d || []));
|
|
103
103
|
});
|
|
104
|
-
}, [d]),
|
|
104
|
+
}, [d]), O(() => {
|
|
105
105
|
Object.entries(c.current).forEach(([r]) => {
|
|
106
106
|
const e = c.current[r].current;
|
|
107
|
-
e && e.name.indexOf("Group") !== -1 &&
|
|
107
|
+
e && e.name.indexOf("Group") !== -1 && l(e.name);
|
|
108
108
|
});
|
|
109
|
-
}, [m]), /* @__PURE__ */
|
|
110
|
-
|
|
111
|
-
/* @__PURE__ */ i("div", { onClick: $, "data-ul": !0, role: "tree", tabIndex: 0, children: F.map(({ itemName: r, children: e }, t) => /* @__PURE__ */
|
|
109
|
+
}, [m]), /* @__PURE__ */ u("div", { children: [
|
|
110
|
+
b && /* @__PURE__ */ i("span", { className: a["checkbox-tree__header"], children: b }),
|
|
111
|
+
/* @__PURE__ */ i("div", { onClick: $, "data-ul": !0, role: "tree", tabIndex: 0, children: F.map(({ itemName: r, children: e }, t) => /* @__PURE__ */ u(
|
|
112
112
|
"div",
|
|
113
113
|
{
|
|
114
114
|
className: a["checkbox-tree__branch"],
|
|
115
115
|
"data-li": !0,
|
|
116
116
|
"aria-expanded": h.md ? "false" : "true",
|
|
117
117
|
children: [
|
|
118
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ u(C, { inline: !0, className: a["checkbox-tree__branch--formfield"], children: [
|
|
119
119
|
/* @__PURE__ */ i(L, { variant: "blank", onClick: y, children: /* @__PURE__ */ i(
|
|
120
120
|
I,
|
|
121
121
|
{
|
|
122
122
|
name: "CheveronRight",
|
|
123
123
|
size: 16,
|
|
124
|
-
className:
|
|
124
|
+
className: E(a["checkbox-tree__branch--icon"], {
|
|
125
125
|
[a["checkbox-tree__branch--icon--expanded"]]: !h.md
|
|
126
126
|
})
|
|
127
127
|
}
|
|
@@ -135,16 +135,16 @@ import '../../assets/CheckboxTree.css';const a = {
|
|
|
135
135
|
ref: k(`Group${t}`)
|
|
136
136
|
}
|
|
137
137
|
),
|
|
138
|
-
/* @__PURE__ */ i(A, { htmlFor: r, noFontWeight:
|
|
138
|
+
/* @__PURE__ */ i(A, { htmlFor: r, noFontWeight: p, children: r })
|
|
139
139
|
] }),
|
|
140
140
|
/* @__PURE__ */ i(
|
|
141
141
|
"div",
|
|
142
142
|
{
|
|
143
|
-
className:
|
|
143
|
+
className: E(a["checkbox-tree__leaves"], {
|
|
144
144
|
[a["checkbox-tree__leaves--expanded"]]: !h.md
|
|
145
145
|
}),
|
|
146
146
|
"data-ul": !0,
|
|
147
|
-
children: e.map(({ itemName: n, itemValue: s, disabled: o }) => /* @__PURE__ */ i("div", { className: a["checkbox-tree__leaf"], "data-li": !0, children: /* @__PURE__ */
|
|
147
|
+
children: e.map(({ itemName: n, itemValue: s, disabled: o }) => /* @__PURE__ */ i("div", { className: a["checkbox-tree__leaf"], "data-li": !0, children: /* @__PURE__ */ u(C, { inline: !0, className: a["checkbox-tree__branch--formfield"], children: [
|
|
148
148
|
/* @__PURE__ */ i(
|
|
149
149
|
B,
|
|
150
150
|
{
|
|
@@ -156,7 +156,7 @@ import '../../assets/CheckboxTree.css';const a = {
|
|
|
156
156
|
ref: k(`Group${t}_${n}`)
|
|
157
157
|
}
|
|
158
158
|
),
|
|
159
|
-
/* @__PURE__ */ i(A, { htmlFor: n, noFontWeight:
|
|
159
|
+
/* @__PURE__ */ i(A, { htmlFor: n, noFontWeight: p, children: n })
|
|
160
160
|
] }) }, n))
|
|
161
161
|
}
|
|
162
162
|
)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as o, jsx as
|
|
1
|
+
import { jsxs as o, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as t } from "../Icon/Icon.js";
|
|
3
|
-
import '../../assets/Chip.css';const e = "
|
|
3
|
+
import '../../assets/Chip.css';const e = "_chip_12dmi_1", l = "_chip__label_12dmi_25", c = {
|
|
4
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_12dmi_32"
|
|
7
|
+
}, h = ({ label: _, onDelete: i }) => /* @__PURE__ */ o("button", { className: c.chip, onClick: () => i(_), children: [
|
|
8
|
+
/* @__PURE__ */ s("span", { className: c.chip__label, children: _ }),
|
|
9
|
+
/* @__PURE__ */ s(t, { name: "Cross", size: 20, className: c["chip__close-button"] })
|
|
10
10
|
] });
|
|
11
11
|
export {
|
|
12
12
|
h as Chip
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, Fragment as g, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useId as I } from "react";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as a } from "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import { Icon as $ } from "../Icon/Icon.js";
|
|
5
5
|
import '../../assets/ControlsButton.css';const t = {
|
|
6
|
-
"controls-input": "_controls-
|
|
7
|
-
"controls-button": "_controls-
|
|
8
|
-
"controls-button--squared": "_controls-button--
|
|
9
|
-
"controls-button--with-prefix": "_controls-button--with-
|
|
10
|
-
"controls-button--with-icon": "_controls-button--with-
|
|
11
|
-
"controls-button__wrapper": "_controls-
|
|
12
|
-
"controls-button__prefix": "_controls-
|
|
13
|
-
"controls-button__tooltip": "_controls-
|
|
14
|
-
"controls-button__tooltip--left": "_controls-button__tooltip--
|
|
15
|
-
"controls-button__tooltip--center": "_controls-button__tooltip--
|
|
16
|
-
"controls-button__tooltip--right": "_controls-button__tooltip--
|
|
6
|
+
"controls-input": "_controls-input_amb4c_1",
|
|
7
|
+
"controls-button": "_controls-button_amb4c_32",
|
|
8
|
+
"controls-button--squared": "_controls-button--squared_amb4c_50",
|
|
9
|
+
"controls-button--with-prefix": "_controls-button--with-prefix_amb4c_62",
|
|
10
|
+
"controls-button--with-icon": "_controls-button--with-icon_amb4c_68",
|
|
11
|
+
"controls-button__wrapper": "_controls-button__wrapper_amb4c_72",
|
|
12
|
+
"controls-button__prefix": "_controls-button__prefix_amb4c_78",
|
|
13
|
+
"controls-button__tooltip": "_controls-button__tooltip_amb4c_83",
|
|
14
|
+
"controls-button__tooltip--left": "_controls-button__tooltip--left_amb4c_98",
|
|
15
|
+
"controls-button__tooltip--center": "_controls-button__tooltip--center_amb4c_102",
|
|
16
|
+
"controls-button__tooltip--right": "_controls-button__tooltip--right_amb4c_107"
|
|
17
17
|
}, z = ({
|
|
18
|
-
type:
|
|
18
|
+
type: u = "checkbox",
|
|
19
19
|
label: n,
|
|
20
20
|
value: i,
|
|
21
21
|
iconName: r,
|
|
22
|
-
prefix:
|
|
22
|
+
prefix: c,
|
|
23
23
|
tooltip: s,
|
|
24
|
-
tooltipPosition:
|
|
25
|
-
name:
|
|
24
|
+
tooltipPosition: p = "center",
|
|
25
|
+
name: m,
|
|
26
26
|
forceSquared: d = !1,
|
|
27
27
|
checked: h,
|
|
28
|
-
disabled:
|
|
28
|
+
disabled: f,
|
|
29
29
|
onSetValue: x
|
|
30
30
|
}) => {
|
|
31
|
-
const w = I(),
|
|
32
|
-
return /* @__PURE__ */
|
|
31
|
+
const w = I(), e = (typeof n == "string" ? n : i).replace(/\s+/g, "_"), _ = `${w}${e}`, b = `${_}-tooltip`;
|
|
32
|
+
return /* @__PURE__ */ l(g, { children: [
|
|
33
33
|
/* @__PURE__ */ o(
|
|
34
34
|
"input",
|
|
35
35
|
{
|
|
36
|
-
type:
|
|
36
|
+
type: u,
|
|
37
37
|
id: _,
|
|
38
|
-
name:
|
|
39
|
-
disabled:
|
|
38
|
+
name: m ?? e,
|
|
39
|
+
disabled: f,
|
|
40
40
|
value: i,
|
|
41
41
|
checked: h,
|
|
42
42
|
onChange: x,
|
|
43
43
|
className: t["controls-input"],
|
|
44
|
-
"aria-describedby": s ?
|
|
44
|
+
"aria-describedby": s ? b : void 0
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ l(
|
|
48
48
|
"label",
|
|
49
49
|
{
|
|
50
50
|
htmlFor: _,
|
|
51
|
-
className:
|
|
51
|
+
className: a(t["controls-button"], [
|
|
52
52
|
d && t["controls-button--squared"],
|
|
53
|
-
|
|
53
|
+
c && t["controls-button--with-prefix"],
|
|
54
54
|
r && t["controls-button--with-icon"]
|
|
55
55
|
]),
|
|
56
56
|
children: [
|
|
57
57
|
r && /* @__PURE__ */ o($, { name: r, size: 20 }),
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
|
|
58
|
+
/* @__PURE__ */ l("div", { className: t["controls-button__wrapper"], children: [
|
|
59
|
+
c && /* @__PURE__ */ o("div", { className: t["controls-button__prefix"], children: c }),
|
|
60
60
|
n
|
|
61
61
|
] }),
|
|
62
62
|
s && /* @__PURE__ */ o(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
|
-
id:
|
|
65
|
+
id: b,
|
|
66
66
|
role: "tooltip",
|
|
67
|
-
className:
|
|
67
|
+
className: a(t["controls-button__tooltip"], t[`controls-button__tooltip--${p}`]),
|
|
68
68
|
children: s
|
|
69
69
|
}
|
|
70
70
|
)
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as u, jsx as y } from "react/jsx-runtime";
|
|
2
2
|
import { c as b } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { useState as f, useRef as m, useEffect as h } from "react";
|
|
4
4
|
import { Icon as C } from "../Icon/Icon.js";
|
|
5
5
|
import '../../assets/CopyableText.css';const a = {
|
|
6
|
-
"copyable-text-container": "_copyable-text-
|
|
7
|
-
"copyable-text-copy-button": "_copyable-text-copy-
|
|
8
|
-
"copyable-text-copy-visually-hidden": "_copyable-text-copy-visually-
|
|
6
|
+
"copyable-text-container": "_copyable-text-container_l97qt_1",
|
|
7
|
+
"copyable-text-copy-button": "_copyable-text-copy-button_l97qt_8",
|
|
8
|
+
"copyable-text-copy-visually-hidden": "_copyable-text-copy-visually-hidden_l97qt_32"
|
|
9
9
|
}, _ = 2e3, T = ({
|
|
10
10
|
text: o,
|
|
11
11
|
additionalClassName: r = "",
|
|
12
12
|
ariaLabelCopy: s,
|
|
13
13
|
ariaLabelHasBeenCopied: p
|
|
14
14
|
}) => {
|
|
15
|
-
const [
|
|
15
|
+
const [e, n] = f(!1), c = m(null), x = m(null), [d, t] = f(!1);
|
|
16
16
|
h(() => () => {
|
|
17
17
|
c.current && clearTimeout(c.current);
|
|
18
18
|
}, []);
|
|
19
|
-
const
|
|
19
|
+
const i = () => {
|
|
20
20
|
n(!0), c.current = setTimeout(() => {
|
|
21
|
-
n(!1),
|
|
21
|
+
n(!1), t(!1);
|
|
22
22
|
}, _), navigator.clipboard.writeText(o).catch(() => n(!1));
|
|
23
23
|
};
|
|
24
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ u(
|
|
25
25
|
"span",
|
|
26
26
|
{
|
|
27
27
|
className: b(a["copyable-text-container"], r),
|
|
28
28
|
role: "button",
|
|
29
29
|
tabIndex: 0,
|
|
30
|
-
onFocus: () =>
|
|
31
|
-
onBlur: () => !
|
|
30
|
+
onFocus: () => t(!0),
|
|
31
|
+
onBlur: () => !e && t(!1),
|
|
32
32
|
onKeyDown: (l) => {
|
|
33
|
-
|
|
33
|
+
t(!0), (l.key === "Enter" || l.key === " ") && (l.preventDefault(), i());
|
|
34
34
|
},
|
|
35
|
-
onMouseEnter: () =>
|
|
36
|
-
onMouseLeave: () => !
|
|
35
|
+
onMouseEnter: () => t(!0),
|
|
36
|
+
onMouseLeave: () => !e && t(!1),
|
|
37
37
|
children: [
|
|
38
38
|
o,
|
|
39
|
-
d && /* @__PURE__ */
|
|
39
|
+
d && /* @__PURE__ */ u(
|
|
40
40
|
"button",
|
|
41
41
|
{
|
|
42
42
|
ref: x,
|
|
43
43
|
className: b(a["copyable-text-copy-button"], r),
|
|
44
|
-
onClick:
|
|
44
|
+
onClick: i,
|
|
45
45
|
type: "button",
|
|
46
46
|
"aria-keyshortcuts": "Enter Space",
|
|
47
|
-
"aria-label":
|
|
47
|
+
"aria-label": e ? p ?? "Copied" : s ?? "Copy to clipboard",
|
|
48
48
|
tabIndex: -1,
|
|
49
49
|
children: [
|
|
50
50
|
o,
|
|
51
|
-
/* @__PURE__ */ y(C, { name:
|
|
52
|
-
/* @__PURE__ */ y("span", { className: a["copyable-text-copy-visually-hidden"], "aria-live": "polite", children:
|
|
51
|
+
/* @__PURE__ */ y(C, { name: e ? "CheckSmall" : "Copy", size: 20 }),
|
|
52
|
+
/* @__PURE__ */ y("span", { className: a["copyable-text-copy-visually-hidden"], "aria-live": "polite", children: e ? p ?? "Copied" : s ?? "Copy to clipboard" })
|
|
53
53
|
]
|
|
54
54
|
}
|
|
55
55
|
)
|