@uva-glass/component-library 3.22.0 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button.module-Dlqf6mMD.js +15 -0
- package/dist/Button.module-Dlqf6mMD.js.map +1 -0
- package/dist/RteEditor.module-B_3uFnFu.js +41 -0
- package/dist/RteEditor.module-B_3uFnFu.js.map +1 -0
- package/dist/{SelectListbox.module-N3Kg0UvL.js → SelectListbox.module-DHFU0NjU.js} +21 -21
- package/dist/SelectListbox.module-DHFU0NjU.js.map +1 -0
- package/dist/Sortable.module-CekPNg54.js +23 -0
- package/dist/Sortable.module-CekPNg54.js.map +1 -0
- package/dist/{SortableProvider-B3_u0pKv.js → SortableProvider-CwX1lFMa.js} +2 -2
- package/dist/{SortableProvider-B3_u0pKv.js.map → SortableProvider-CwX1lFMa.js.map} +1 -1
- package/dist/{TablePlugin-CrCof8yO.js → TablePlugin-Bj5FObQ_.js} +3 -3
- package/dist/{TablePlugin-CrCof8yO.js.map → TablePlugin-Bj5FObQ_.js.map} +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/CheckboxTree.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/EditorHeader.css +1 -1
- package/dist/assets/Flyout.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/MultiSelectBox.css +1 -1
- package/dist/assets/OverlayStepBar.css +1 -1
- package/dist/assets/PageOverlay.css +1 -1
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/assets/Sortable.css +1 -1
- package/dist/assets/StatusBage.css +1 -1
- package/dist/assets/TableCellContextMenu.css +1 -1
- package/dist/assets/ToggleSwitch.css +1 -1
- package/dist/assets/variables.css +75 -52
- 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/CheckboxTree/CheckboxTree.js +19 -19
- package/dist/components/FormInput/FormInput.js +2 -2
- package/dist/components/Input/Input.js +16 -16
- package/dist/components/InputField/InputField.stories.js +2 -2
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.js +56 -56
- package/dist/components/MultiSelectBox/MultiSelectBox.js.map +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +6 -6
- package/dist/components/PageOverlay/PageOverlay.js +26 -26
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.js +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +8 -8
- 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/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 +20 -20
- 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/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/StatusBadge/StatusBage.js +6 -6
- package/dist/components/TextArea/TextArea.d.ts +3 -1
- package/dist/components/TextArea/TextArea.js +9 -8
- package/dist/components/TextArea/TextArea.js.map +1 -1
- package/dist/components/TextArea/TextArea.stories.js +8 -7
- package/dist/components/TextArea/TextArea.stories.js.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.js +10 -10
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/storyComponents/Container/Container.js +22 -22
- package/package.json +1 -1
- package/dist/Button.module-BXzi8gZH.js +0 -15
- package/dist/Button.module-BXzi8gZH.js.map +0 -1
- package/dist/RteEditor.module-45648CA2.js +0 -41
- package/dist/RteEditor.module-45648CA2.js.map +0 -1
- package/dist/SelectListbox.module-N3Kg0UvL.js.map +0 -1
- package/dist/Sortable.module-CuvuQhr8.js +0 -23
- package/dist/Sortable.module-CuvuQhr8.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
._toggle-
|
|
1
|
+
._toggle-switch_1lmpu_1{align-items:center;cursor:pointer;display:inline-flex;gap:1ch;-webkit-user-select:none;user-select:none}._toggle-switch__visible_1lmpu_9{align-items:center;background-color:var(--new-color-uva-white);border:1px solid var(--new-color-uva-black);border-radius:.75rem;box-shadow:0 1px 1px #0000000f,0 1px 2px #0000001a;display:flex;height:1.5rem;outline:.125rem dotted transparent;outline-offset:.125rem;padding:.25rem;transition:background-color .15s;width:3.125rem}:focus-visible+._toggle-switch__visible_1lmpu_9{outline-color:var(--new-color-navy-600)}:checked+._toggle-switch__visible_1lmpu_9{background-color:var(--new-color-forest-600)}._toggle-switch__visible_1lmpu_9:before{background-color:var(--new-color-grey-300);border:1px solid var(--new-color-uva-black);border-radius:.75rem;content:"";display:inline-block;height:1rem;min-width:1rem;transform:translate(-.1rem);transition:background-color .15s,transform .15s,width .15s}:checked+._toggle-switch__visible_1lmpu_9:before{background-color:var(--new-color-uva-white);transform:translate(1.6rem)}._toggle-switch--disabled_1lmpu_54 ._toggle-switch__visible_1lmpu_9:before{background-color:#0000001a;border-color:#0000001a}:checked:active+._toggle-switch__visible_1lmpu_9:before{transform:translate(1.25rem)}._toggle-switch--disabled_1lmpu_54,._toggle-switch--loading_1lmpu_64{pointer-events:none}._toggle-switch--disabled_1lmpu_54 ._toggle-switch__visible_1lmpu_9{background-color:var(--new-color-grey-300);border-color:#0000001a;box-shadow:none}._toggle-switch--visually-hidden_1lmpu_74{border:0;clip:rect(0,0,0,0);clip-path:inset(50%);height:1px;margin:0 -1px -1px 0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}._toggle-switch--disabled-label_1lmpu_87{color:var(--new-color-grey-700)}._toggle-switch--loading-cursor_1lmpu_91{cursor:wait}._toggle-switch--extra-left-gap_1lmpu_95{margin-left:.5rem}
|
|
@@ -1,56 +1,4 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--color-black: #1f1d20;
|
|
3
|
-
--color-grey-500: #69666c;
|
|
4
|
-
--color-grey-400: #8f8e90;
|
|
5
|
-
--color-grey-300: #b0b1b2;
|
|
6
|
-
--color-grey-200: #dcddde;
|
|
7
|
-
--color-grey-100: #ebebec;
|
|
8
|
-
--color-grey-50: #f5f5f6;
|
|
9
|
-
--color-white: #fff;
|
|
10
|
-
--color-red-600: #a0002a;
|
|
11
|
-
--color-red-500: #bc0031;
|
|
12
|
-
--color-red-400: #e00030;
|
|
13
|
-
--color-red-50: #ffe8ee;
|
|
14
|
-
--color-green-500: #2f6f31;
|
|
15
|
-
--color-green-400: #3a863d;
|
|
16
|
-
--color-green-300: #4cae4f;
|
|
17
|
-
--color-green-100: #64df9f;
|
|
18
|
-
--color-green-50: #e9fbf2;
|
|
19
|
-
--color-yellow-600: #cc8500;
|
|
20
|
-
--color-yellow-500: #ffa600;
|
|
21
|
-
--color-yellow-400: #ffde67;
|
|
22
|
-
--color-yellow-50: #fff6d7;
|
|
23
|
-
--color-blue-500: #0e4ea7;
|
|
24
|
-
--color-blue-400: #a3e7ff;
|
|
25
|
-
--color-blue-50: #e0f7ff;
|
|
26
|
-
--color-purple-400: #9747ff;
|
|
27
|
-
--color-cobalt: #0d4da5;
|
|
28
|
-
--color-san-felix: #2c632e;
|
|
29
|
-
--color-uva-green: #49a74c;
|
|
30
|
-
--color-scarpa-flow: #69656c;
|
|
31
|
-
--color-uva-red-dark: #9e002a;
|
|
32
|
-
--color-uva-red: #bd0032;
|
|
33
|
-
--color-silver: #bfbfbf;
|
|
34
|
-
--color-chilean-fire: #d45c3a;
|
|
35
|
-
--color-pattens-blue: #dddedf;
|
|
36
|
-
--color-amaranth: #dc3251;
|
|
37
|
-
--color-ghost-white: #f4f4f5;
|
|
38
|
-
--color-lavender: #ebebec;
|
|
39
|
-
--color-mint-cream: #eafbf2;
|
|
40
|
-
--color-amour: #ffe5ec;
|
|
41
|
-
--color-dandelion: #ffde66;
|
|
42
|
-
--color-natural-wood: #fff6d6;
|
|
43
|
-
--color-uva-black: #1F1D20;
|
|
44
|
-
--color-electric-violet: #9747FF;
|
|
45
|
-
--color-lemon-grass: #99998a;
|
|
46
|
-
--color-vista-blue: #8feabb;
|
|
47
|
-
--color-medium-aquamarine: #62df9f;
|
|
48
|
-
--color-uva-orange: #cc8500;
|
|
49
|
-
--color-fog: #cfcdd0;
|
|
50
|
-
--color-french-grey: #b3afb6;
|
|
51
|
-
--color-columbia-blue: #a1e7fc;
|
|
52
|
-
--color-light-cyan: #e1f8ff;
|
|
53
|
-
--color-natural-wool: #FFF6D6;
|
|
54
2
|
--new-color-uva-white: #FFFFFF;
|
|
55
3
|
--new-color-uva-black: #1B1918;
|
|
56
4
|
--new-color-uva-red: #BD0032;
|
|
@@ -126,4 +74,79 @@
|
|
|
126
74
|
--new-color-purple-700: #7E076C;
|
|
127
75
|
--new-color-purple-800: #6B065B;
|
|
128
76
|
--new-color-purple-900: #57054B;
|
|
77
|
+
--color-uva-white: #FFFFFF;
|
|
78
|
+
--color-uva-black: #1B1918;
|
|
79
|
+
--color-uva-red: #BD0032;
|
|
80
|
+
--color-grey-100: #FAFAFA;
|
|
81
|
+
--color-grey-200: #F5F5F4;
|
|
82
|
+
--color-grey-300: #E7E5E4;
|
|
83
|
+
--color-grey-400: #D8D6D4;
|
|
84
|
+
--color-grey-500: #A8A29F;
|
|
85
|
+
--color-grey-600: #78716D;
|
|
86
|
+
--color-grey-700: #56504E;
|
|
87
|
+
--color-grey-800: #433F3D;
|
|
88
|
+
--color-grey-900: #282524;
|
|
89
|
+
--color-red-100: #FFEBEF;
|
|
90
|
+
--color-red-200: #F9B4C3;
|
|
91
|
+
--color-red-300: #F5849D;
|
|
92
|
+
--color-red-400: #F15577;
|
|
93
|
+
--color-red-500: #EC1342;
|
|
94
|
+
--color-red-600: #E00031;
|
|
95
|
+
--color-red-700: #C2002A;
|
|
96
|
+
--color-red-800: #A30023;
|
|
97
|
+
--color-red-900: #85001D;
|
|
98
|
+
--color-orange-100: #FFF2E0;
|
|
99
|
+
--color-orange-200: #FFE0B8;
|
|
100
|
+
--color-orange-300: #FFD399;
|
|
101
|
+
--color-orange-400: #FFBD66;
|
|
102
|
+
--color-orange-500: #FFA733;
|
|
103
|
+
--color-orange-600: #F58B00;
|
|
104
|
+
--color-orange-700: #E07F00;
|
|
105
|
+
--color-orange-800: #C26E00;
|
|
106
|
+
--color-orange-900: #A35C00;
|
|
107
|
+
--color-lime-100: #FDFBE3;
|
|
108
|
+
--color-lime-200: #FAF7BD;
|
|
109
|
+
--color-lime-300: #F7F297;
|
|
110
|
+
--color-lime-400: #F3EC68;
|
|
111
|
+
--color-lime-500: #EFE639;
|
|
112
|
+
--color-lime-600: #D9CF12;
|
|
113
|
+
--color-lime-700: #C2B800;
|
|
114
|
+
--color-lime-800: #A39B00;
|
|
115
|
+
--color-lime-900: #857E00;
|
|
116
|
+
--color-forest-100: #EAF5EC;
|
|
117
|
+
--color-forest-200: #C8E4CE;
|
|
118
|
+
--color-forest-300: #98CDA2;
|
|
119
|
+
--color-forest-400: #68B677;
|
|
120
|
+
--color-forest-500: #41AA56;
|
|
121
|
+
--color-forest-600: #1C9C35;
|
|
122
|
+
--color-forest-700: #0F8A28;
|
|
123
|
+
--color-forest-800: #0C6E20;
|
|
124
|
+
--color-forest-900: #0A5C1B;
|
|
125
|
+
--color-sky-100: #EEF8FB;
|
|
126
|
+
--color-sky-200: #DFF1F8;
|
|
127
|
+
--color-sky-300: #C2E7F4;
|
|
128
|
+
--color-sky-400: #9DDBF1;
|
|
129
|
+
--color-sky-500: #63C9EE;
|
|
130
|
+
--color-sky-600: #35B9E9;
|
|
131
|
+
--color-sky-700: #17A1D3;
|
|
132
|
+
--color-sky-800: #127EA5;
|
|
133
|
+
--color-sky-900: #00698F;
|
|
134
|
+
--color-navy-100: #E7F0F9;
|
|
135
|
+
--color-navy-200: #CEE2F3;
|
|
136
|
+
--color-navy-300: #ADCEEB;
|
|
137
|
+
--color-navy-400: #74ACDC;
|
|
138
|
+
--color-navy-500: #3385CC;
|
|
139
|
+
--color-navy-600: #0562B3;
|
|
140
|
+
--color-navy-700: #005299;
|
|
141
|
+
--color-navy-800: #00417A;
|
|
142
|
+
--color-navy-900: #003666;
|
|
143
|
+
--color-purple-100: #F5EAF3;
|
|
144
|
+
--color-purple-200: #EDD4E9;
|
|
145
|
+
--color-purple-300: #E0AED9;
|
|
146
|
+
--color-purple-400: #D47DC7;
|
|
147
|
+
--color-purple-500: #B42D9F;
|
|
148
|
+
--color-purple-600: #91087D;
|
|
149
|
+
--color-purple-700: #7E076C;
|
|
150
|
+
--color-purple-800: #6B065B;
|
|
151
|
+
--color-purple-900: #57054B;
|
|
129
152
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../assets/Backdrop.css';const
|
|
3
|
-
backdrop:
|
|
4
|
-
},
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Backdrop.css';const s = "_backdrop_1n3f5_1", a = {
|
|
3
|
+
backdrop: s
|
|
4
|
+
}, d = ({ children: o, ...c }) => /* @__PURE__ */ r("div", { ...c, className: a.backdrop, children: o });
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as Backdrop
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=Backdrop.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { c as u } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { forwardRef as a } from "react";
|
|
4
|
-
import { s as t } from "../../Button.module-
|
|
4
|
+
import { s as t } from "../../Button.module-Dlqf6mMD.js";
|
|
5
5
|
const p = a(
|
|
6
6
|
({ children: o, type: r = "button", variant: s, displayColumn: m = !1, ...n }, e) => /* @__PURE__ */ f(
|
|
7
7
|
"button",
|
|
@@ -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-Dlqf6mMD.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-Dlqf6mMD.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: [
|
|
@@ -17,7 +17,7 @@ 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-Bj5FObQ_.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,19 +25,19 @@ 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-
|
|
28
|
+
import "../../SortableProvider-CwX1lFMa.js";
|
|
29
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:
|
|
31
|
+
"checkbox-tree__header": "_checkbox-tree__header_l338d_1",
|
|
32
|
+
"checkbox-tree__branch": "_checkbox-tree__branch_l338d_8",
|
|
33
|
+
"checkbox-tree__branch--icon": "_checkbox-tree__branch--icon_l338d_21",
|
|
34
|
+
"checkbox-tree__branch--icon--expanded": "_checkbox-tree__branch--icon--expanded_l338d_27",
|
|
35
|
+
"checkbox-tree__branch--formfield": "_checkbox-tree__branch--formfield_l338d_32",
|
|
36
|
+
"checkbox-tree__leaves": "_checkbox-tree__leaves_l338d_39",
|
|
37
|
+
"checkbox-tree__leaves--expanded": "_checkbox-tree__leaves--expanded_l338d_48",
|
|
38
|
+
"checkbox-tree__leaf": "_checkbox-tree__leaf_l338d_52"
|
|
39
|
+
}, _e = ({
|
|
40
|
+
title: f,
|
|
41
41
|
checkboxTree: F,
|
|
42
42
|
selectedValues: d,
|
|
43
43
|
noLabelFrontWeight: p = !1,
|
|
@@ -45,7 +45,7 @@ import '../../assets/CheckboxTree.css';const s = {
|
|
|
45
45
|
}) => {
|
|
46
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((_, O) => (_[O] = (_[O] || 0) + 1, _), {}), c = t(r), a = t(e);
|
|
49
49
|
return !Object.keys(c).some((o) => c[o] !== a[o]);
|
|
50
50
|
}, k = (r) => (n.current[r] || (n.current[r] = q()), n.current[r]), v = () => {
|
|
51
51
|
const r = [];
|
|
@@ -53,7 +53,7 @@ import '../../assets/CheckboxTree.css';const s = {
|
|
|
53
53
|
const t = n.current[e].current;
|
|
54
54
|
t && t.name.indexOf("Group") === -1 && t.checked && r.push(t.value);
|
|
55
55
|
}), x(r), b && b(r);
|
|
56
|
-
},
|
|
56
|
+
}, l = (r) => {
|
|
57
57
|
if (r === "") return;
|
|
58
58
|
const e = [];
|
|
59
59
|
Object.entries(n.current).forEach(([a]) => {
|
|
@@ -84,10 +84,10 @@ import '../../assets/CheckboxTree.css';const s = {
|
|
|
84
84
|
if (!a || !o) return;
|
|
85
85
|
a.checked = !!o.checked;
|
|
86
86
|
}
|
|
87
|
-
}),
|
|
87
|
+
}), l(t), v();
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
l(e.getAttribute("data-groupname") || ""), v();
|
|
91
91
|
}
|
|
92
92
|
}, y = (r) => {
|
|
93
93
|
const e = r.target, t = e.closest("[data-li]");
|
|
@@ -101,10 +101,10 @@ import '../../assets/CheckboxTree.css';const s = {
|
|
|
101
101
|
}, [d]), E(() => {
|
|
102
102
|
Object.entries(n.current).forEach(([r]) => {
|
|
103
103
|
const e = n.current[r].current;
|
|
104
|
-
e && e.name.indexOf("Group") !== -1 &&
|
|
104
|
+
e && e.name.indexOf("Group") !== -1 && l(e.name);
|
|
105
105
|
});
|
|
106
106
|
}, [m]), /* @__PURE__ */ u("div", { children: [
|
|
107
|
-
|
|
107
|
+
f && /* @__PURE__ */ i("span", { className: s["checkbox-tree__header"], children: f }),
|
|
108
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
|
{
|
|
@@ -164,6 +164,6 @@ import '../../assets/CheckboxTree.css';const s = {
|
|
|
164
164
|
] });
|
|
165
165
|
};
|
|
166
166
|
export {
|
|
167
|
-
|
|
167
|
+
_e as CheckboxTree
|
|
168
168
|
};
|
|
169
169
|
//# sourceMappingURL=CheckboxTree.js.map
|
|
@@ -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 "../../TablePlugin-
|
|
19
|
+
import "../../TablePlugin-Bj5FObQ_.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";
|
|
@@ -24,7 +24,7 @@ import "../../index-DllfJcv4.js";
|
|
|
24
24
|
import "../SelectListbox/SelectListbox.js";
|
|
25
25
|
import "../SelectListbox/SelectProvider.js";
|
|
26
26
|
import "../Sortable/components/SortableItem.js";
|
|
27
|
-
import "../../SortableProvider-
|
|
27
|
+
import "../../SortableProvider-CwX1lFMa.js";
|
|
28
28
|
import '../../assets/FormInput.css';const o = {
|
|
29
29
|
"form-input__container": "_form-input__container_c0vpz_1",
|
|
30
30
|
"form-input__container--label-left": "_form-input__container--label-left_c0vpz_7",
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c } from "../../clsx-OuTLNxxd.js";
|
|
4
|
-
import '../../assets/Input.css';const
|
|
5
|
-
input:
|
|
6
|
-
"input--numeric": "_input--
|
|
7
|
-
"input--error": "_input--
|
|
8
|
-
"input--full-with": "_input--full-
|
|
9
|
-
},
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import '../../assets/Input.css';const m = "_input_1jwvu_1", t = {
|
|
5
|
+
input: m,
|
|
6
|
+
"input--numeric": "_input--numeric_1jwvu_13",
|
|
7
|
+
"input--error": "_input--error_1jwvu_18",
|
|
8
|
+
"input--full-with": "_input--full-with_1jwvu_23"
|
|
9
|
+
}, a = c(function({ id: u, appearance: r, type: n = "text", isNumeric: i, fullWidth: p, ...o }, e) {
|
|
10
10
|
return /* @__PURE__ */ _(
|
|
11
11
|
"input",
|
|
12
12
|
{
|
|
13
|
-
...
|
|
13
|
+
...o,
|
|
14
14
|
ref: e,
|
|
15
|
-
id:
|
|
16
|
-
className:
|
|
17
|
-
[t["input--error"]]:
|
|
18
|
-
[t["input--full-with"]]:
|
|
19
|
-
[t["input--numeric"]]:
|
|
15
|
+
id: u,
|
|
16
|
+
className: f(t.input, {
|
|
17
|
+
[t["input--error"]]: r === "error",
|
|
18
|
+
[t["input--full-with"]]: p,
|
|
19
|
+
[t["input--numeric"]]: i
|
|
20
20
|
}),
|
|
21
|
-
type:
|
|
21
|
+
type: n
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
});
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
a as Input
|
|
27
27
|
};
|
|
28
28
|
//# sourceMappingURL=Input.js.map
|
|
@@ -16,7 +16,7 @@ import "../GridRow/GridRow.js";
|
|
|
16
16
|
import "../IconButton/IconButton.js";
|
|
17
17
|
import "../Input/Input.js";
|
|
18
18
|
import "react-router";
|
|
19
|
-
import "../../TablePlugin-
|
|
19
|
+
import "../../TablePlugin-Bj5FObQ_.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";
|
|
@@ -24,7 +24,7 @@ import "../../index-DllfJcv4.js";
|
|
|
24
24
|
import "../SelectListbox/SelectListbox.js";
|
|
25
25
|
import "../SelectListbox/SelectProvider.js";
|
|
26
26
|
import "../Sortable/components/SortableItem.js";
|
|
27
|
-
import "../../SortableProvider-
|
|
27
|
+
import "../../SortableProvider-CwX1lFMa.js";
|
|
28
28
|
const f = `
|
|
29
29
|
// Has all HTMLInputElement props available except "className" and "style"
|
|
30
30
|
<InputField aria-labelledby={aria-labelledby} id={id} onChange={onChangeFunction}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { fn as d } from "../../index-Dwqes6RH.js";
|
|
3
3
|
import { useState as p } from "react";
|
|
4
|
-
import { M as e } from "../../TablePlugin-
|
|
4
|
+
import { M as e } from "../../TablePlugin-Bj5FObQ_.js";
|
|
5
5
|
import { Container as M } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
const C = `
|
|
7
7
|
// MultiSelectHeader can be added optionally
|
|
@@ -15,7 +15,7 @@ import "../../IconButton/IconButton.js";
|
|
|
15
15
|
import "../../Input/Input.js";
|
|
16
16
|
import "../../InputField/InputField.js";
|
|
17
17
|
import "react-router";
|
|
18
|
-
import { a as y } from "../../../TablePlugin-
|
|
18
|
+
import { a as y } from "../../../TablePlugin-Bj5FObQ_.js";
|
|
19
19
|
import "../../RteEditor/Providers/LanguageProvider.js";
|
|
20
20
|
import "../../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
21
21
|
import "../../RteEditor/hooks/components/Flyout.js";
|
|
@@ -23,7 +23,7 @@ import "../../../index-DllfJcv4.js";
|
|
|
23
23
|
import "../../SelectListbox/SelectListbox.js";
|
|
24
24
|
import "../../SelectListbox/SelectProvider.js";
|
|
25
25
|
import "../../Sortable/components/SortableItem.js";
|
|
26
|
-
import "../../../SortableProvider-
|
|
26
|
+
import "../../../SortableProvider-CwX1lFMa.js";
|
|
27
27
|
export {
|
|
28
28
|
y as MultiSelectHeader
|
|
29
29
|
};
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useId as U, useState as b, useRef as S, useCallback as
|
|
1
|
+
import { jsxs as g, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { useId as U, useState as b, useRef as S, useCallback as _, useEffect as y } from "react";
|
|
3
3
|
import { c as I } from "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import { Icon as H } from "../Icon/Icon.js";
|
|
5
5
|
import { Checkbox as q } from "../Checkbox/Checkbox.js";
|
|
6
6
|
import { usePositionedFloaters as G } from "../hooks/usePositionedFloaters.js";
|
|
7
7
|
import '../../assets/MultiSelectBox.css';const n = {
|
|
8
|
-
"multi-select-box-wrapper": "_multi-select-box-
|
|
9
|
-
"multi-select-box-trigger": "_multi-select-box-
|
|
10
|
-
"multi-select-box-trigger-label": "_multi-select-box-trigger-
|
|
11
|
-
"multi-select-box-trigger-icon": "_multi-select-box-trigger-
|
|
12
|
-
"multi-select-box-trigger-icon--open": "_multi-select-box-trigger-icon--
|
|
13
|
-
"multi-select-box-listbox--wrapper": "_multi-select-box-listbox--
|
|
14
|
-
"multi-select-box-listbox": "_multi-select-box-
|
|
15
|
-
"multi-select-box-listbox-option": "_multi-select-box-listbox-
|
|
16
|
-
"multi-select-box-listbox-option--active": "_multi-select-box-listbox-option--
|
|
17
|
-
"multi-select-box-listbox-option-content": "_multi-select-box-listbox-option-
|
|
18
|
-
"multi-select-box-listbox-option--disabled": "_multi-select-box-listbox-option--
|
|
8
|
+
"multi-select-box-wrapper": "_multi-select-box-wrapper_4fwo9_1",
|
|
9
|
+
"multi-select-box-trigger": "_multi-select-box-trigger_4fwo9_5",
|
|
10
|
+
"multi-select-box-trigger-label": "_multi-select-box-trigger-label_4fwo9_32",
|
|
11
|
+
"multi-select-box-trigger-icon": "_multi-select-box-trigger-icon_4fwo9_41",
|
|
12
|
+
"multi-select-box-trigger-icon--open": "_multi-select-box-trigger-icon--open_4fwo9_46",
|
|
13
|
+
"multi-select-box-listbox--wrapper": "_multi-select-box-listbox--wrapper_4fwo9_50",
|
|
14
|
+
"multi-select-box-listbox": "_multi-select-box-listbox_4fwo9_50",
|
|
15
|
+
"multi-select-box-listbox-option": "_multi-select-box-listbox-option_4fwo9_77",
|
|
16
|
+
"multi-select-box-listbox-option--active": "_multi-select-box-listbox-option--active_4fwo9_88",
|
|
17
|
+
"multi-select-box-listbox-option-content": "_multi-select-box-listbox-option-content_4fwo9_99",
|
|
18
|
+
"multi-select-box-listbox-option--disabled": "_multi-select-box-listbox-option--disabled_4fwo9_113"
|
|
19
19
|
}, Z = ({
|
|
20
20
|
selectData: c,
|
|
21
21
|
onChange: m,
|
|
22
|
-
defaultSelectedItems:
|
|
22
|
+
defaultSelectedItems: f,
|
|
23
23
|
labelSuffix: E = "geselecteerd",
|
|
24
24
|
disabled: P = !1,
|
|
25
25
|
fullWidth: C = !1,
|
|
26
26
|
maxOptionHeight: L,
|
|
27
27
|
optionPositionRight: O
|
|
28
28
|
}) => {
|
|
29
|
-
const
|
|
29
|
+
const w = U(), [r, h] = b(f || []), [N, v] = b((f == null ? void 0 : f.length) || 0), [i, a] = b(!1), [d, x] = b(-1), k = S(null), A = S(null), [F, K] = b(null), [R, $] = b(null), { style: D } = G(F, R, {
|
|
30
30
|
mouseEvent: "click",
|
|
31
31
|
offset: 4,
|
|
32
32
|
maxFixedHeight: L,
|
|
33
33
|
horizontalPosition: O ? "right" : "left",
|
|
34
34
|
mobileBreakpoint: "28rem",
|
|
35
35
|
fullWidth: C
|
|
36
|
-
}), p =
|
|
36
|
+
}), p = _(
|
|
37
37
|
({ target: e }) => {
|
|
38
38
|
!e || !k.current || k.current.contains(e) || a(!1);
|
|
39
39
|
},
|
|
40
40
|
[a]
|
|
41
|
-
), M =
|
|
41
|
+
), M = _(
|
|
42
42
|
(e) => {
|
|
43
43
|
switch (e.key) {
|
|
44
44
|
case "Enter":
|
|
@@ -50,36 +50,36 @@ import '../../assets/MultiSelectBox.css';const n = {
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
[i]
|
|
53
|
-
), T =
|
|
53
|
+
), T = _(
|
|
54
54
|
(e) => {
|
|
55
55
|
if (i)
|
|
56
56
|
switch (e.key) {
|
|
57
57
|
case "ArrowDown":
|
|
58
58
|
e.preventDefault(), x((t) => {
|
|
59
|
-
var
|
|
60
|
-
let
|
|
59
|
+
var o;
|
|
60
|
+
let l = t;
|
|
61
61
|
do
|
|
62
|
-
|
|
63
|
-
while ((
|
|
64
|
-
return
|
|
62
|
+
l = l < c.length - 1 ? l + 1 : 0;
|
|
63
|
+
while ((o = c[l]) != null && o.disabled);
|
|
64
|
+
return l;
|
|
65
65
|
});
|
|
66
66
|
break;
|
|
67
67
|
case "ArrowUp":
|
|
68
68
|
e.preventDefault(), x((t) => {
|
|
69
|
-
var
|
|
70
|
-
let
|
|
69
|
+
var o;
|
|
70
|
+
let l = t;
|
|
71
71
|
do
|
|
72
|
-
|
|
73
|
-
while ((
|
|
74
|
-
return
|
|
72
|
+
l = l <= 0 ? c.length - 1 : l - 1;
|
|
73
|
+
while ((o = c[l]) != null && o.disabled);
|
|
74
|
+
return l;
|
|
75
75
|
});
|
|
76
76
|
break;
|
|
77
77
|
case "Enter": {
|
|
78
78
|
e.preventDefault();
|
|
79
79
|
const t = c[d];
|
|
80
80
|
if (!t || t.disabled) break;
|
|
81
|
-
const
|
|
82
|
-
|
|
81
|
+
const o = r.some((s) => s.value === t.value) ? r.filter((s) => s.value !== t.value) : [...r, t];
|
|
82
|
+
h(o), v(o.length), m(o);
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
85
|
case "Tab":
|
|
@@ -93,34 +93,34 @@ import '../../assets/MultiSelectBox.css';const n = {
|
|
|
93
93
|
[d, i, c, r, m]
|
|
94
94
|
), j = (e, t) => {
|
|
95
95
|
if (t.disabled || e.target.tagName === "INPUT") return;
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
}, z =
|
|
96
|
+
const o = r.some((s) => s.value === t.value) ? r.filter((s) => s.value !== t.value) : [...r, t];
|
|
97
|
+
h(o), v(o.length), m(o);
|
|
98
|
+
}, z = _(
|
|
99
99
|
(e) => {
|
|
100
|
-
const { checked: t, value:
|
|
101
|
-
let
|
|
100
|
+
const { checked: t, value: l } = e.target;
|
|
101
|
+
let o = [...r];
|
|
102
102
|
if (t) {
|
|
103
|
-
const s = c.find((B) => B.value ===
|
|
104
|
-
s &&
|
|
103
|
+
const s = c.find((B) => B.value === l);
|
|
104
|
+
s && o.push(s);
|
|
105
105
|
} else
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
o = o.filter((s) => s.value !== l);
|
|
107
|
+
h(o), v(o.length), m(o);
|
|
108
108
|
},
|
|
109
109
|
[c, r, m]
|
|
110
110
|
);
|
|
111
|
-
return
|
|
111
|
+
return y(() => {
|
|
112
112
|
i && x(0);
|
|
113
|
-
}, [i]),
|
|
113
|
+
}, [i]), y(() => {
|
|
114
114
|
var t;
|
|
115
115
|
const e = (t = A.current) == null ? void 0 : t.children[d];
|
|
116
116
|
e == null || e.focus();
|
|
117
|
-
}, [d]),
|
|
117
|
+
}, [d]), y(() => {
|
|
118
118
|
if (i)
|
|
119
119
|
return document.addEventListener("click", p, !0), document.addEventListener("scroll", p, !0), () => {
|
|
120
120
|
document.removeEventListener("click", p, !0), document.removeEventListener("scroll", p, !0);
|
|
121
121
|
};
|
|
122
|
-
}, [p, i]), /* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
122
|
+
}, [p, i]), /* @__PURE__ */ g("div", { className: n["multi-select-box-wrapper"], ref: k, children: [
|
|
123
|
+
/* @__PURE__ */ g(
|
|
124
124
|
"button",
|
|
125
125
|
{
|
|
126
126
|
className: n["multi-select-box-trigger"],
|
|
@@ -133,10 +133,10 @@ import '../../assets/MultiSelectBox.css';const n = {
|
|
|
133
133
|
"aria-haspopup": "listbox",
|
|
134
134
|
"aria-label": `${N} ${E}`,
|
|
135
135
|
disabled: P,
|
|
136
|
-
...i && { "aria-controls":
|
|
136
|
+
...i && { "aria-controls": w },
|
|
137
137
|
ref: $,
|
|
138
138
|
children: [
|
|
139
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ g("span", { className: n["multi-select-box-trigger-label"], children: [
|
|
140
140
|
N,
|
|
141
141
|
" ",
|
|
142
142
|
E
|
|
@@ -157,34 +157,34 @@ import '../../assets/MultiSelectBox.css';const n = {
|
|
|
157
157
|
/* @__PURE__ */ u(
|
|
158
158
|
"div",
|
|
159
159
|
{
|
|
160
|
-
id:
|
|
160
|
+
id: w,
|
|
161
161
|
className: I(n["multi-select-box-listbox--wrapper"]),
|
|
162
162
|
style: { ...D.style, visibility: i ? "visible" : "hidden" },
|
|
163
163
|
role: "listbox",
|
|
164
164
|
ref: K,
|
|
165
|
-
children: /* @__PURE__ */ u("ul", { className: n["multi-select-box-listbox"], ref: A, children: c.map(({ label: e, value: t, disabled:
|
|
165
|
+
children: /* @__PURE__ */ u("ul", { className: n["multi-select-box-listbox"], ref: A, children: c.map(({ label: e, value: t, disabled: l }, o) => /* @__PURE__ */ u(
|
|
166
166
|
"li",
|
|
167
167
|
{
|
|
168
168
|
className: I(n["multi-select-box-listbox-option"], {
|
|
169
|
-
[n["multi-select-box-listbox-option--active"]]:
|
|
170
|
-
[n["multi-select-box-listbox-option--disabled"]]:
|
|
169
|
+
[n["multi-select-box-listbox-option--active"]]: o === d,
|
|
170
|
+
[n["multi-select-box-listbox-option--disabled"]]: l
|
|
171
171
|
}),
|
|
172
172
|
role: "option",
|
|
173
173
|
onKeyDown: T,
|
|
174
|
-
onClick: (s) => j(s, { label: e, value: t, disabled:
|
|
175
|
-
onMouseOver: () => x(
|
|
176
|
-
onFocus: () => x(
|
|
174
|
+
onClick: (s) => j(s, { label: e, value: t, disabled: l }),
|
|
175
|
+
onMouseOver: () => x(o),
|
|
176
|
+
onFocus: () => x(o),
|
|
177
177
|
tabIndex: 0,
|
|
178
178
|
"aria-selected": r.some((s) => s.value === t),
|
|
179
|
-
children: /* @__PURE__ */
|
|
179
|
+
children: /* @__PURE__ */ g("label", { htmlFor: e, className: n["multi-select-box-listbox-option-content"], tabIndex: -1, children: [
|
|
180
180
|
/* @__PURE__ */ u(
|
|
181
181
|
q,
|
|
182
182
|
{
|
|
183
|
-
id: `${e}-${
|
|
183
|
+
id: `${e}-${w}`,
|
|
184
184
|
onChange: z,
|
|
185
185
|
value: t,
|
|
186
186
|
tabIndex: -1,
|
|
187
|
-
disabled:
|
|
187
|
+
disabled: l,
|
|
188
188
|
checked: r.some((s) => s.value === t)
|
|
189
189
|
}
|
|
190
190
|
),
|