@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
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { jsxs as b, jsx as
|
|
1
|
+
import { jsxs as b, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g, useState as x, useRef as B, useEffect as y } from "react";
|
|
3
3
|
import { c as C } from "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import '../../assets/InputField.css';const t = {
|
|
5
|
-
"input-field-wrapper": "_input-field-
|
|
6
|
-
"input-field": "_input-
|
|
7
|
-
"input-field--large": "_input-field--
|
|
8
|
-
"input-field--small": "_input-field--
|
|
9
|
-
"input-field--compact": "_input-field--
|
|
10
|
-
"input-field--white": "_input-field--
|
|
11
|
-
"input-field__clear-button": "_input-field__clear-
|
|
5
|
+
"input-field-wrapper": "_input-field-wrapper_1tir9_1",
|
|
6
|
+
"input-field": "_input-field_1tir9_1",
|
|
7
|
+
"input-field--large": "_input-field--large_1tir9_22",
|
|
8
|
+
"input-field--small": "_input-field--small_1tir9_26",
|
|
9
|
+
"input-field--compact": "_input-field--compact_1tir9_30",
|
|
10
|
+
"input-field--white": "_input-field--white_1tir9_34",
|
|
11
|
+
"input-field__clear-button": "_input-field__clear-button_1tir9_42"
|
|
12
12
|
}, j = g(
|
|
13
13
|
({
|
|
14
|
-
autoComplete:
|
|
15
|
-
id:
|
|
14
|
+
autoComplete: s = "off",
|
|
15
|
+
id: r,
|
|
16
16
|
value: e,
|
|
17
|
-
variant:
|
|
17
|
+
variant: _,
|
|
18
18
|
width: u,
|
|
19
|
-
type:
|
|
19
|
+
type: o = "text",
|
|
20
20
|
background: p,
|
|
21
|
-
clearTrigger:
|
|
22
|
-
onClear:
|
|
23
|
-
...
|
|
21
|
+
clearTrigger: l,
|
|
22
|
+
onClear: f,
|
|
23
|
+
...a
|
|
24
24
|
}, i) => {
|
|
25
|
-
const [
|
|
25
|
+
const [d, m] = x(0), n = B(null);
|
|
26
26
|
y(() => {
|
|
27
|
-
|
|
27
|
+
n.current && m(n.current.offsetWidth);
|
|
28
28
|
}, [e]);
|
|
29
29
|
const h = () => {
|
|
30
|
-
|
|
30
|
+
f && i && "current" in i && i.current && (f(), i.current.focus());
|
|
31
31
|
};
|
|
32
32
|
return /* @__PURE__ */ b("div", { className: t["input-field-wrapper"], children: [
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ c(
|
|
34
34
|
"input",
|
|
35
35
|
{
|
|
36
|
-
...
|
|
37
|
-
autoComplete:
|
|
36
|
+
...a,
|
|
37
|
+
autoComplete: s,
|
|
38
38
|
ref: i,
|
|
39
|
-
id:
|
|
39
|
+
id: r,
|
|
40
40
|
className: C(t["input-field"], {
|
|
41
|
-
[t["input-field--large"]]:
|
|
41
|
+
[t["input-field--large"]]: _ === "large",
|
|
42
42
|
[t[`input-field--${u}`]]: u,
|
|
43
43
|
[t[`input-field--${p}`]]: p
|
|
44
44
|
}),
|
|
45
|
-
type:
|
|
45
|
+
type: o,
|
|
46
46
|
value: e,
|
|
47
|
-
style: { paddingRight: e &&
|
|
47
|
+
style: { paddingRight: e && l ? d : void 0 }
|
|
48
48
|
}
|
|
49
49
|
),
|
|
50
|
-
!!e &&
|
|
50
|
+
!!e && l && /* @__PURE__ */ c(
|
|
51
51
|
"button",
|
|
52
52
|
{
|
|
53
53
|
type: "button",
|
|
54
54
|
className: t["input-field__clear-button"],
|
|
55
55
|
onClick: h,
|
|
56
|
-
ref:
|
|
57
|
-
"aria-label": `clear trigger for ${
|
|
58
|
-
children:
|
|
56
|
+
ref: n,
|
|
57
|
+
"aria-label": `clear trigger for ${r}`,
|
|
58
|
+
children: l
|
|
59
59
|
}
|
|
60
60
|
)
|
|
61
61
|
] });
|
|
@@ -17,7 +17,7 @@ import "../GridRow/GridRow.js";
|
|
|
17
17
|
import "../IconButton/IconButton.js";
|
|
18
18
|
import "../Input/Input.js";
|
|
19
19
|
import "react-router";
|
|
20
|
-
import "../../TablePlugin-
|
|
20
|
+
import "../../TablePlugin-8TKXJMYE.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";
|
|
@@ -27,7 +27,7 @@ import "../SearchField/SearchField.js";
|
|
|
27
27
|
import "../SelectListbox/SelectListbox.js";
|
|
28
28
|
import "../SelectListbox/SelectProvider.js";
|
|
29
29
|
import "../Sortable/components/SortableItem.js";
|
|
30
|
-
import "../../SortableProvider-
|
|
30
|
+
import "../../SortableProvider-BbwlEPIr.js";
|
|
31
31
|
import "../WeekSelector/components/WeekSelectorOptionContainer.js";
|
|
32
32
|
const C = `
|
|
33
33
|
// Has all HTMLInputElement props available except "className" and "style"
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { c as n } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import '../../assets/Label.css';const _ = "
|
|
3
|
+
import '../../assets/Label.css';const _ = "_label_i3lyd_1", l = {
|
|
4
4
|
label: _,
|
|
5
|
-
"label--required": "_label--
|
|
6
|
-
"label--unset-font-weight": "_label--unset-font-
|
|
7
|
-
"label--align-right": "_label--align-
|
|
8
|
-
}, d = ({ children: e, htmlFor: a, noFontWeight: t, required:
|
|
5
|
+
"label--required": "_label--required_i3lyd_6",
|
|
6
|
+
"label--unset-font-weight": "_label--unset-font-weight_i3lyd_14",
|
|
7
|
+
"label--align-right": "_label--align-right_i3lyd_18"
|
|
8
|
+
}, d = ({ children: e, htmlFor: a, noFontWeight: t, required: i = !1, alignRight: b, ...r }) => /* @__PURE__ */ s(
|
|
9
9
|
"label",
|
|
10
10
|
{
|
|
11
|
-
...
|
|
11
|
+
...r,
|
|
12
12
|
htmlFor: a,
|
|
13
13
|
className: n(l.label, {
|
|
14
14
|
[l["label--unset-font-weight"]]: t,
|
|
15
|
-
[l["label--required"]]:
|
|
15
|
+
[l["label--required"]]: i,
|
|
16
16
|
[l["label--align-right"]]: b
|
|
17
17
|
}),
|
|
18
18
|
children: e
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
1
|
+
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import '../../assets/MetaDataList.css';const t = {
|
|
3
|
-
"meta-data-list": "_meta-data-
|
|
4
|
-
"meta-data-list__item": "_meta-data-
|
|
5
|
-
"meta-data-list__term": "_meta-data-
|
|
6
|
-
"meta-data-list__description": "_meta-data-
|
|
7
|
-
}, m = ({ items:
|
|
3
|
+
"meta-data-list": "_meta-data-list_1kah2_1",
|
|
4
|
+
"meta-data-list__item": "_meta-data-list__item_1kah2_5",
|
|
5
|
+
"meta-data-list__term": "_meta-data-list__term_1kah2_16",
|
|
6
|
+
"meta-data-list__description": "_meta-data-list__description_1kah2_20"
|
|
7
|
+
}, m = ({ items: s }) => /* @__PURE__ */ a("dl", { className: t["meta-data-list"], children: Object.entries(s).map(([e, _]) => /* @__PURE__ */ i("div", { className: t["meta-data-list__item"], children: [
|
|
8
8
|
/* @__PURE__ */ a("dt", { className: t["meta-data-list__term"], children: e }),
|
|
9
|
-
/* @__PURE__ */ a("dd", { className: t["meta-data-list__description"], children:
|
|
9
|
+
/* @__PURE__ */ a("dd", { className: t["meta-data-list__description"], children: _ })
|
|
10
10
|
] }, e)) });
|
|
11
11
|
export {
|
|
12
12
|
m as MetaDataList
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import { jsx as a, Fragment as
|
|
1
|
+
import { jsx as a, Fragment as v, jsxs as _ } from "react/jsx-runtime";
|
|
2
2
|
import { useDialog as $ } from "@react-aria/dialog";
|
|
3
3
|
import { FocusScope as q } from "@react-aria/focus";
|
|
4
4
|
import { useModal as G, useOverlay as J, usePreventScroll as Q, OverlayContainer as W } from "@react-aria/overlays";
|
|
5
5
|
import { c as i } from "../../clsx-OuTLNxxd.js";
|
|
6
|
-
import { useRef as
|
|
6
|
+
import { useRef as S, useState as w, useEffect as X } from "react";
|
|
7
7
|
import { Backdrop as Y } from "../Backdrop/Backdrop.js";
|
|
8
8
|
import { OverlayCloseButton as Z } from "../OverlayCloseButton/OverlayCloseButton.js";
|
|
9
9
|
import { Spinner as oo } from "../Spinner/Spinner.js";
|
|
10
10
|
import '../../assets/ModalDialog.css';const o = {
|
|
11
|
-
"modal-dialog": "_modal-
|
|
12
|
-
"modal-dialog--padded": "_modal-dialog--
|
|
13
|
-
"modal-dialog__content": "_modal-
|
|
14
|
-
"modal-dialog__children": "_modal-
|
|
15
|
-
"modal-dialog__title": "_modal-
|
|
16
|
-
"modal-dialog--confirm": "_modal-dialog--
|
|
17
|
-
"modal-dialog__buttons": "_modal-
|
|
18
|
-
"modal-dialog__buttons--border": "_modal-dialog__buttons--
|
|
19
|
-
"modal-dialog__buttons--shadow": "_modal-dialog__buttons--
|
|
20
|
-
"modal-dialog__close": "_modal-
|
|
21
|
-
"modal-dialog--small": "_modal-dialog--
|
|
22
|
-
"modal-dialog--regular": "_modal-dialog--
|
|
23
|
-
"modal-dialog--medium": "_modal-dialog--
|
|
24
|
-
"modal-dialog--large": "_modal-dialog--
|
|
25
|
-
"modal-dialog--content-with-buttons": "_modal-dialog--content-with-
|
|
11
|
+
"modal-dialog": "_modal-dialog_15zh0_1",
|
|
12
|
+
"modal-dialog--padded": "_modal-dialog--padded_15zh0_18",
|
|
13
|
+
"modal-dialog__content": "_modal-dialog__content_15zh0_22",
|
|
14
|
+
"modal-dialog__children": "_modal-dialog__children_15zh0_33",
|
|
15
|
+
"modal-dialog__title": "_modal-dialog__title_15zh0_37",
|
|
16
|
+
"modal-dialog--confirm": "_modal-dialog--confirm_15zh0_44",
|
|
17
|
+
"modal-dialog__buttons": "_modal-dialog__buttons_15zh0_48",
|
|
18
|
+
"modal-dialog__buttons--border": "_modal-dialog__buttons--border_15zh0_61",
|
|
19
|
+
"modal-dialog__buttons--shadow": "_modal-dialog__buttons--shadow_15zh0_78",
|
|
20
|
+
"modal-dialog__close": "_modal-dialog__close_15zh0_82",
|
|
21
|
+
"modal-dialog--small": "_modal-dialog--small_15zh0_99",
|
|
22
|
+
"modal-dialog--regular": "_modal-dialog--regular_15zh0_103",
|
|
23
|
+
"modal-dialog--medium": "_modal-dialog--medium_15zh0_107",
|
|
24
|
+
"modal-dialog--large": "_modal-dialog--large_15zh0_111",
|
|
25
|
+
"modal-dialog--content-with-buttons": "_modal-dialog--content-with-buttons_15zh0_125"
|
|
26
26
|
};
|
|
27
|
-
function _o(
|
|
27
|
+
function _o(T) {
|
|
28
28
|
const {
|
|
29
29
|
buttons: t,
|
|
30
|
-
children:
|
|
30
|
+
children: y,
|
|
31
31
|
isDismissable: c = !0,
|
|
32
|
-
isKeyboardDismissDisabled:
|
|
33
|
-
isLoading:
|
|
34
|
-
spinnerAriaValueText:
|
|
35
|
-
closeButtonAriaValueText:
|
|
32
|
+
isKeyboardDismissDisabled: x = !c,
|
|
33
|
+
isLoading: B,
|
|
34
|
+
spinnerAriaValueText: D = "Loading",
|
|
35
|
+
closeButtonAriaValueText: P = "Close",
|
|
36
36
|
isOpen: e,
|
|
37
|
-
noValidate:
|
|
38
|
-
onClose:
|
|
39
|
-
onSubmit:
|
|
40
|
-
role:
|
|
41
|
-
title:
|
|
42
|
-
headerContent:
|
|
37
|
+
noValidate: C = !1,
|
|
38
|
+
onClose: g,
|
|
39
|
+
onSubmit: E,
|
|
40
|
+
role: L = "dialog",
|
|
41
|
+
title: r,
|
|
42
|
+
headerContent: s,
|
|
43
43
|
variant: n = "dialog",
|
|
44
|
-
padded:
|
|
45
|
-
size:
|
|
46
|
-
noButtonBorder:
|
|
47
|
-
} =
|
|
48
|
-
{ isDismissable: c, isKeyboardDismissDisabled:
|
|
44
|
+
padded: u,
|
|
45
|
+
size: N = "regular",
|
|
46
|
+
noButtonBorder: h = !1
|
|
47
|
+
} = T, m = S(null), f = S(null), [F, H] = w(!1), [O, V] = w(!1), { dialogProps: k, titleProps: A } = $({ role: L }, m), { modalProps: I } = G({ isDisabled: !e }), { overlayProps: M, underlayProps: R } = J(
|
|
48
|
+
{ isDismissable: c, isKeyboardDismissDisabled: x, isOpen: e, onClose: g },
|
|
49
49
|
m
|
|
50
50
|
);
|
|
51
51
|
Q({ isDisabled: !e }), X(() => {
|
|
52
|
-
const l =
|
|
53
|
-
function
|
|
52
|
+
const l = f.current;
|
|
53
|
+
function p() {
|
|
54
54
|
if (l) {
|
|
55
|
-
const b = l.scrollHeight,
|
|
56
|
-
H(b >
|
|
55
|
+
const b = l.scrollHeight, z = l.clientHeight, U = l.scrollTop;
|
|
56
|
+
H(b > z), V(U + z >= b);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
function d() {
|
|
60
|
-
|
|
60
|
+
p();
|
|
61
61
|
}
|
|
62
62
|
l && (l.addEventListener("scroll", d), window.addEventListener("resize", d));
|
|
63
63
|
const K = setTimeout(() => {
|
|
64
|
-
|
|
64
|
+
p();
|
|
65
65
|
}, 0);
|
|
66
66
|
return () => {
|
|
67
67
|
l && l.removeEventListener("scroll", d), window.removeEventListener("resize", d), clearTimeout(K);
|
|
68
68
|
};
|
|
69
|
-
}, [e,
|
|
69
|
+
}, [e, s]);
|
|
70
70
|
function j(l) {
|
|
71
71
|
l.stopPropagation();
|
|
72
72
|
}
|
|
73
|
-
return e ? /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(Y, { ...R, children:
|
|
73
|
+
return e ? /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(Y, { ...R, children: B ? /* @__PURE__ */ a(oo, { ariaValueText: D }) : /* @__PURE__ */ a(v, { children: /* @__PURE__ */ a(q, { autoFocus: !0, contain: !0, restoreFocus: !0, children: /* @__PURE__ */ _(
|
|
74
74
|
"div",
|
|
75
75
|
{
|
|
76
76
|
...k,
|
|
77
77
|
...I,
|
|
78
78
|
...M,
|
|
79
|
-
className: i(o["modal-dialog"], [o[`modal-dialog--${
|
|
79
|
+
className: i(o["modal-dialog"], [o[`modal-dialog--${N}`]], {
|
|
80
80
|
[o["modal-dialog--confirm"]]: n === "confirm",
|
|
81
|
-
[o["modal-dialog--padded"]]:
|
|
81
|
+
[o["modal-dialog--padded"]]: u
|
|
82
82
|
}),
|
|
83
83
|
onKeyUp: j,
|
|
84
84
|
role: "presentation",
|
|
85
85
|
ref: m,
|
|
86
86
|
children: [
|
|
87
|
-
(
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
(r || s) && n === "dialog" && /* @__PURE__ */ _(v, { children: [
|
|
88
|
+
r && /* @__PURE__ */ a("h1", { ...A, className: o["modal-dialog__title"], children: r }),
|
|
89
|
+
s,
|
|
90
90
|
n === "dialog" && /* @__PURE__ */ a("span", { className: o["modal-dialog__close"], children: /* @__PURE__ */ a(
|
|
91
91
|
Z,
|
|
92
92
|
{
|
|
93
|
-
"aria-label":
|
|
94
|
-
onClick:
|
|
95
|
-
paddedModal:
|
|
93
|
+
"aria-label": P,
|
|
94
|
+
onClick: g,
|
|
95
|
+
paddedModal: u
|
|
96
96
|
}
|
|
97
97
|
) })
|
|
98
98
|
] }),
|
|
@@ -102,16 +102,16 @@ function _o(y) {
|
|
|
102
102
|
className: i(o["modal-dialog__content"], {
|
|
103
103
|
[o["modal-dialog--content-with-buttons"]]: t
|
|
104
104
|
}),
|
|
105
|
-
onSubmit:
|
|
106
|
-
noValidate:
|
|
107
|
-
ref:
|
|
105
|
+
onSubmit: E,
|
|
106
|
+
noValidate: C,
|
|
107
|
+
ref: f,
|
|
108
108
|
children: [
|
|
109
|
-
/* @__PURE__ */ a("div", { className: i({ [o["modal-dialog__children"]]: !
|
|
109
|
+
/* @__PURE__ */ a("div", { className: i({ [o["modal-dialog__children"]]: !h }), children: y }),
|
|
110
110
|
t && /* @__PURE__ */ a(
|
|
111
111
|
"div",
|
|
112
112
|
{
|
|
113
113
|
className: i(o["modal-dialog__buttons"], {
|
|
114
|
-
[o["modal-dialog__buttons--border"]]: !
|
|
114
|
+
[o["modal-dialog__buttons--border"]]: !h,
|
|
115
115
|
[o["modal-dialog__buttons--shadow"]]: F && !O
|
|
116
116
|
}),
|
|
117
117
|
children: t
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import "../../MultiSelectItem-
|
|
4
|
-
import { M as p } from "../../TablePlugin-
|
|
3
|
+
import "../../MultiSelectItem-BzBmsKof.js";
|
|
4
|
+
import { M as p } from "../../TablePlugin-8TKXJMYE.js";
|
|
5
5
|
export {
|
|
6
6
|
p as MultiSelect
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { l as d } from "../../index-DvUwfXNb.js";
|
|
3
3
|
import { useState as p } from "react";
|
|
4
|
-
import { M as e } from "../../TablePlugin-
|
|
4
|
+
import { M as e } from "../../TablePlugin-8TKXJMYE.js";
|
|
5
5
|
import { Container as M } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
const C = `
|
|
7
7
|
// MultiSelectHeader can be added optionally
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../../MultiSelectItem-
|
|
2
|
+
import "../../../MultiSelectItem-BzBmsKof.js";
|
|
3
3
|
import "../../Label/Label.js";
|
|
4
4
|
import "../../Accordion/Accordion.js";
|
|
5
5
|
import "react";
|
|
@@ -16,7 +16,7 @@ import "../../IconButton/IconButton.js";
|
|
|
16
16
|
import "../../Input/Input.js";
|
|
17
17
|
import "../../InputField/InputField.js";
|
|
18
18
|
import "react-router";
|
|
19
|
-
import { a as C } from "../../../TablePlugin-
|
|
19
|
+
import { a as C } from "../../../TablePlugin-8TKXJMYE.js";
|
|
20
20
|
import "../../RteEditor/Providers/LanguageProvider.js";
|
|
21
21
|
import "../../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
22
22
|
import "../../RteEditor/hooks/components/Flyout.js";
|
|
@@ -26,7 +26,7 @@ import "../../SearchField/SearchField.js";
|
|
|
26
26
|
import "../../SelectListbox/SelectListbox.js";
|
|
27
27
|
import "../../SelectListbox/SelectProvider.js";
|
|
28
28
|
import "../../Sortable/components/SortableItem.js";
|
|
29
|
-
import "../../../SortableProvider-
|
|
29
|
+
import "../../../SortableProvider-BbwlEPIr.js";
|
|
30
30
|
import "../../WeekSelector/components/WeekSelectorOptionContainer.js";
|
|
31
31
|
export {
|
|
32
32
|
C as MultiSelectHeader
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsxs as f, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { useId as q, useState as d, useRef as O, useCallback as g, useEffect as
|
|
3
|
-
import { c as
|
|
2
|
+
import { useId as q, useState as d, useRef as O, useCallback as g, useEffect as I } from "react";
|
|
3
|
+
import { c as h } from "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import { Icon as G } from "../Icon/Icon.js";
|
|
5
5
|
import { Checkbox as J } from "../Checkbox/Checkbox.js";
|
|
6
6
|
import { usePositionedFloaters as Q } from "../hooks/usePositionedFloaters.js";
|
|
7
7
|
import '../../assets/MultiSelectBox.css';const r = {
|
|
8
|
-
"multi-select-box-wrapper": "_multi-select-box-
|
|
9
|
-
"multi-select-box-trigger": "_multi-select-box-
|
|
10
|
-
"multi-select-box-trigger--darkBorder": "_multi-select-box-trigger--
|
|
11
|
-
"multi-select-box-trigger-label": "_multi-select-box-trigger-
|
|
12
|
-
"multi-select-box-trigger-icon": "_multi-select-box-trigger-
|
|
13
|
-
"multi-select-box-trigger-icon--open": "_multi-select-box-trigger-icon--
|
|
14
|
-
"multi-select-box-listbox--wrapper": "_multi-select-box-listbox--
|
|
15
|
-
"multi-select-box-listbox": "_multi-select-box-
|
|
16
|
-
"multi-select-box-listbox-option": "_multi-select-box-listbox-
|
|
17
|
-
"multi-select-box-listbox-option--active": "_multi-select-box-listbox-option--
|
|
18
|
-
"multi-select-box-listbox-option-content": "_multi-select-box-listbox-option-
|
|
19
|
-
"multi-select-box-listbox-option--disabled": "_multi-select-box-listbox-option--
|
|
8
|
+
"multi-select-box-wrapper": "_multi-select-box-wrapper_24h2w_1",
|
|
9
|
+
"multi-select-box-trigger": "_multi-select-box-trigger_24h2w_5",
|
|
10
|
+
"multi-select-box-trigger--darkBorder": "_multi-select-box-trigger--darkBorder_24h2w_22",
|
|
11
|
+
"multi-select-box-trigger-label": "_multi-select-box-trigger-label_24h2w_36",
|
|
12
|
+
"multi-select-box-trigger-icon": "_multi-select-box-trigger-icon_24h2w_50",
|
|
13
|
+
"multi-select-box-trigger-icon--open": "_multi-select-box-trigger-icon--open_24h2w_55",
|
|
14
|
+
"multi-select-box-listbox--wrapper": "_multi-select-box-listbox--wrapper_24h2w_59",
|
|
15
|
+
"multi-select-box-listbox": "_multi-select-box-listbox_24h2w_59",
|
|
16
|
+
"multi-select-box-listbox-option": "_multi-select-box-listbox-option_24h2w_86",
|
|
17
|
+
"multi-select-box-listbox-option--active": "_multi-select-box-listbox-option--active_24h2w_97",
|
|
18
|
+
"multi-select-box-listbox-option-content": "_multi-select-box-listbox-option-content_24h2w_108",
|
|
19
|
+
"multi-select-box-listbox-option--disabled": "_multi-select-box-listbox-option--disabled_24h2w_122"
|
|
20
20
|
}, te = ({
|
|
21
21
|
selectData: c,
|
|
22
22
|
onChange: m,
|
|
@@ -28,7 +28,7 @@ import '../../assets/MultiSelectBox.css';const r = {
|
|
|
28
28
|
maxOptionHeight: C,
|
|
29
29
|
optionPositionRight: L
|
|
30
30
|
}) => {
|
|
31
|
-
const _ = q(), [n,
|
|
31
|
+
const _ = q(), [n, w] = d(y || []), [S, v] = d(y?.length || 0), [s, a] = d(!1), [b, x] = d(-1), k = O(null), N = O(null), [F, K] = d(null), [R, $] = d(null), { style: D, updatePosition: M } = Q(F, R, {
|
|
32
32
|
mouseEvent: "click",
|
|
33
33
|
offset: 4,
|
|
34
34
|
maxFixedHeight: C,
|
|
@@ -37,7 +37,7 @@ import '../../assets/MultiSelectBox.css';const r = {
|
|
|
37
37
|
fullWidth: P
|
|
38
38
|
}), p = g(
|
|
39
39
|
({ target: e }) => {
|
|
40
|
-
!e || !
|
|
40
|
+
!e || !k.current || k.current.contains(e) || a(!1);
|
|
41
41
|
},
|
|
42
42
|
[a]
|
|
43
43
|
), T = g(
|
|
@@ -79,7 +79,7 @@ import '../../assets/MultiSelectBox.css';const r = {
|
|
|
79
79
|
const t = c[b];
|
|
80
80
|
if (!t || t.disabled) break;
|
|
81
81
|
const o = n.some((i) => i.value === t.value) ? n.filter((i) => i.value !== t.value) : [...n, t];
|
|
82
|
-
|
|
82
|
+
w(o), v(o.length), m(o);
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
85
|
case "Tab":
|
|
@@ -94,7 +94,7 @@ import '../../assets/MultiSelectBox.css';const r = {
|
|
|
94
94
|
), z = (e, t) => {
|
|
95
95
|
if (t.disabled || e.target.tagName === "INPUT") return;
|
|
96
96
|
const o = n.some((i) => i.value === t.value) ? n.filter((i) => i.value !== t.value) : [...n, t];
|
|
97
|
-
|
|
97
|
+
w(o), v(o.length), m(o);
|
|
98
98
|
}, U = g(
|
|
99
99
|
(e) => {
|
|
100
100
|
const { checked: t, value: l } = e.target;
|
|
@@ -104,25 +104,25 @@ import '../../assets/MultiSelectBox.css';const r = {
|
|
|
104
104
|
i && o.push(i);
|
|
105
105
|
} else
|
|
106
106
|
o = o.filter((i) => i.value !== l);
|
|
107
|
-
|
|
107
|
+
w(o), v(o.length), m(o), M();
|
|
108
108
|
},
|
|
109
109
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
110
110
|
[c, n, m]
|
|
111
111
|
);
|
|
112
|
-
return
|
|
112
|
+
return I(() => {
|
|
113
113
|
s && x(0);
|
|
114
|
-
}, [s]),
|
|
114
|
+
}, [s]), I(() => {
|
|
115
115
|
N.current?.children[b]?.focus();
|
|
116
|
-
}, [b]),
|
|
116
|
+
}, [b]), I(() => {
|
|
117
117
|
if (s)
|
|
118
118
|
return document.addEventListener("click", p, !0), document.addEventListener("scroll", p, !0), () => {
|
|
119
119
|
document.removeEventListener("click", p, !0), document.removeEventListener("scroll", p, !0);
|
|
120
120
|
};
|
|
121
|
-
}, [p, s]), /* @__PURE__ */ f("div", { className: r["multi-select-box-wrapper"], ref:
|
|
121
|
+
}, [p, s]), /* @__PURE__ */ f("div", { className: r["multi-select-box-wrapper"], ref: k, children: [
|
|
122
122
|
/* @__PURE__ */ f(
|
|
123
123
|
"button",
|
|
124
124
|
{
|
|
125
|
-
className:
|
|
125
|
+
className: h(r["multi-select-box-trigger"], {
|
|
126
126
|
[r["multi-select-box-trigger--darkBorder"]]: B
|
|
127
127
|
}),
|
|
128
128
|
type: "button",
|
|
@@ -145,7 +145,7 @@ import '../../assets/MultiSelectBox.css';const r = {
|
|
|
145
145
|
/* @__PURE__ */ u(
|
|
146
146
|
G,
|
|
147
147
|
{
|
|
148
|
-
className:
|
|
148
|
+
className: h(r["multi-select-box-trigger-icon"], {
|
|
149
149
|
[r["multi-select-box-trigger-icon--open"]]: s
|
|
150
150
|
}),
|
|
151
151
|
name: "CheveronDown",
|
|
@@ -159,14 +159,14 @@ import '../../assets/MultiSelectBox.css';const r = {
|
|
|
159
159
|
"div",
|
|
160
160
|
{
|
|
161
161
|
id: _,
|
|
162
|
-
className:
|
|
162
|
+
className: h(r["multi-select-box-listbox--wrapper"]),
|
|
163
163
|
style: { ...D.style, visibility: s ? "visible" : "hidden" },
|
|
164
164
|
role: "listbox",
|
|
165
165
|
ref: K,
|
|
166
166
|
children: /* @__PURE__ */ u("ul", { className: r["multi-select-box-listbox"], ref: N, children: c.map(({ label: e, value: t, disabled: l }, o) => /* @__PURE__ */ u(
|
|
167
167
|
"li",
|
|
168
168
|
{
|
|
169
|
-
className:
|
|
169
|
+
className: h(r["multi-select-box-listbox-option"], {
|
|
170
170
|
[r["multi-select-box-listbox-option--active"]]: o === b,
|
|
171
171
|
[r["multi-select-box-listbox-option--disabled"]]: l
|
|
172
172
|
}),
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import '../../assets/Notification.css';const
|
|
5
|
-
notification:
|
|
6
|
-
"notification--default": "_notification--
|
|
7
|
-
"notification--bar": "_notification--
|
|
8
|
-
"notification--neutral": "_notification--
|
|
9
|
-
"notification--information": "_notification--
|
|
10
|
-
"notification--success": "_notification--
|
|
11
|
-
"notification--warning": "_notification--
|
|
12
|
-
"notification--danger": "_notification--
|
|
13
|
-
"notification-content": "_notification-
|
|
14
|
-
"notification-content--text": "_notification-content--
|
|
15
|
-
"notification-title": "_notification-
|
|
16
|
-
"notification-subtitle": "_notification-
|
|
17
|
-
"notification-close-button": "_notification-close-
|
|
18
|
-
"notification-close-button--bar--neutral": "_notification-close-button--bar--
|
|
19
|
-
"notification-close-button--bar--information": "_notification-close-button--bar--
|
|
20
|
-
"notification-close-button--bar--danger": "_notification-close-button--bar--
|
|
21
|
-
"notification-close-button--neutral": "_notification-close-button--
|
|
22
|
-
"notification-close-button--information": "_notification-close-button--
|
|
23
|
-
"notification-close-button--success": "_notification-close-button--
|
|
24
|
-
"notification-close-button--warning": "_notification-close-button--
|
|
25
|
-
"notification-close-button--danger": "_notification-close-button--
|
|
26
|
-
"notification-close-button--bar--success": "_notification-close-button--bar--
|
|
27
|
-
"notification-close-button--bar--warning": "_notification-close-button--bar--
|
|
28
|
-
},
|
|
29
|
-
const l =
|
|
30
|
-
function
|
|
2
|
+
import { c as u } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { Icon as r } from "../Icon/Icon.js";
|
|
4
|
+
import '../../assets/Notification.css';const m = "_notification_1u5s4_1", t = {
|
|
5
|
+
notification: m,
|
|
6
|
+
"notification--default": "_notification--default_1u5s4_7",
|
|
7
|
+
"notification--bar": "_notification--bar_1u5s4_10",
|
|
8
|
+
"notification--neutral": "_notification--neutral_1u5s4_15",
|
|
9
|
+
"notification--information": "_notification--information_1u5s4_19",
|
|
10
|
+
"notification--success": "_notification--success_1u5s4_23",
|
|
11
|
+
"notification--warning": "_notification--warning_1u5s4_27",
|
|
12
|
+
"notification--danger": "_notification--danger_1u5s4_31",
|
|
13
|
+
"notification-content": "_notification-content_1u5s4_55",
|
|
14
|
+
"notification-content--text": "_notification-content--text_1u5s4_59",
|
|
15
|
+
"notification-title": "_notification-title_1u5s4_65",
|
|
16
|
+
"notification-subtitle": "_notification-subtitle_1u5s4_69",
|
|
17
|
+
"notification-close-button": "_notification-close-button_1u5s4_73",
|
|
18
|
+
"notification-close-button--bar--neutral": "_notification-close-button--bar--neutral_1u5s4_107",
|
|
19
|
+
"notification-close-button--bar--information": "_notification-close-button--bar--information_1u5s4_108",
|
|
20
|
+
"notification-close-button--bar--danger": "_notification-close-button--bar--danger_1u5s4_109",
|
|
21
|
+
"notification-close-button--neutral": "_notification-close-button--neutral_1u5s4_113",
|
|
22
|
+
"notification-close-button--information": "_notification-close-button--information_1u5s4_117",
|
|
23
|
+
"notification-close-button--success": "_notification-close-button--success_1u5s4_121",
|
|
24
|
+
"notification-close-button--warning": "_notification-close-button--warning_1u5s4_124",
|
|
25
|
+
"notification-close-button--danger": "_notification-close-button--danger_1u5s4_127",
|
|
26
|
+
"notification-close-button--bar--success": "_notification-close-button--bar--success_1u5s4_140",
|
|
27
|
+
"notification-close-button--bar--warning": "_notification-close-button--bar--warning_1u5s4_143"
|
|
28
|
+
}, h = ({ title: a, subtitle: s, action: e, variant: f = "default", level: n, onClose: _ }) => {
|
|
29
|
+
const l = f === "bar";
|
|
30
|
+
function b(o) {
|
|
31
31
|
return o === "neutral" ? "CalendarEdit" : o === "information" ? "SquareInfo" : o === "success" ? "CheckCircle" : "ExclamationTriangleMini";
|
|
32
32
|
}
|
|
33
|
-
return /* @__PURE__ */ c("div", { className:
|
|
33
|
+
return /* @__PURE__ */ c("div", { className: u(t.notification, t[`notification--${f}`], t[`notification--${n}`]), children: [
|
|
34
34
|
/* @__PURE__ */ c("div", { className: t["notification-content"], children: [
|
|
35
|
-
/* @__PURE__ */ i(
|
|
35
|
+
/* @__PURE__ */ i(r, { name: b(n) }),
|
|
36
36
|
/* @__PURE__ */ c("div", { className: t["notification-content--text"], children: [
|
|
37
37
|
a && /* @__PURE__ */ i("p", { className: t["notification-title"], children: a }),
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
s && /* @__PURE__ */ i("p", { className: t["notification-subtitle"], children: s }),
|
|
39
|
+
e && /* @__PURE__ */ i("div", { className: t["notification-action"], children: e })
|
|
40
40
|
] })
|
|
41
41
|
] }),
|
|
42
42
|
_ && /* @__PURE__ */ i(
|
|
@@ -44,15 +44,15 @@ import '../../assets/Notification.css';const w = "_notification_qwbrb_1", t = {
|
|
|
44
44
|
{
|
|
45
45
|
type: "button",
|
|
46
46
|
"aria-label": "close",
|
|
47
|
-
className:
|
|
47
|
+
className: u(t["notification-close-button"], t[`notification-close-button--${n}`], {
|
|
48
48
|
[t[`notification-close-button--bar--${n}`]]: l
|
|
49
49
|
}),
|
|
50
|
-
children: /* @__PURE__ */ i(
|
|
50
|
+
children: /* @__PURE__ */ i(r, { name: "Cross", size: 24 })
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
] });
|
|
54
54
|
};
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
h as Notification
|
|
57
57
|
};
|
|
58
58
|
//# sourceMappingURL=Notification.js.map
|