@uva-glass/component-library 3.21.2 → 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.
Files changed (96) hide show
  1. package/dist/Button.module-Dlqf6mMD.js +15 -0
  2. package/dist/Button.module-Dlqf6mMD.js.map +1 -0
  3. package/dist/RteEditor.module-B_3uFnFu.js +41 -0
  4. package/dist/RteEditor.module-B_3uFnFu.js.map +1 -0
  5. package/dist/{SelectListbox.module-N3Kg0UvL.js → SelectListbox.module-DHFU0NjU.js} +21 -21
  6. package/dist/SelectListbox.module-DHFU0NjU.js.map +1 -0
  7. package/dist/Sortable.module-CekPNg54.js +23 -0
  8. package/dist/Sortable.module-CekPNg54.js.map +1 -0
  9. package/dist/{SortableProvider-B3_u0pKv.js → SortableProvider-CwX1lFMa.js} +2 -2
  10. package/dist/{SortableProvider-B3_u0pKv.js.map → SortableProvider-CwX1lFMa.js.map} +1 -1
  11. package/dist/{TablePlugin-CrCof8yO.js → TablePlugin-Bj5FObQ_.js} +3 -3
  12. package/dist/{TablePlugin-CrCof8yO.js.map → TablePlugin-Bj5FObQ_.js.map} +1 -1
  13. package/dist/assets/Backdrop.css +1 -1
  14. package/dist/assets/Backdrop2.css +1 -1
  15. package/dist/assets/Button.css +1 -1
  16. package/dist/assets/CheckboxTree.css +1 -1
  17. package/dist/assets/Container.css +1 -1
  18. package/dist/assets/EditorHeader.css +1 -1
  19. package/dist/assets/Flyout.css +1 -1
  20. package/dist/assets/Input.css +1 -1
  21. package/dist/assets/MultiSelectBox.css +1 -1
  22. package/dist/assets/OverlayStepBar.css +1 -1
  23. package/dist/assets/PageOverlay.css +1 -1
  24. package/dist/assets/Periods.css +1 -1
  25. package/dist/assets/RteEditor.css +1 -1
  26. package/dist/assets/SelectListbox.css +1 -1
  27. package/dist/assets/Sortable.css +1 -1
  28. package/dist/assets/StatusBage.css +1 -1
  29. package/dist/assets/TableCellContextMenu.css +1 -1
  30. package/dist/assets/ToggleSwitch.css +1 -1
  31. package/dist/assets/variables.css +75 -52
  32. package/dist/components/Backdrop/Backdrop.js +5 -5
  33. package/dist/components/Buttons/Button.js +1 -1
  34. package/dist/components/Buttons/LinkButton.js +1 -1
  35. package/dist/components/Buttons/MenuButton.js +1 -1
  36. package/dist/components/CheckboxTree/CheckboxTree.js +19 -19
  37. package/dist/components/FormInput/FormInput.js +2 -2
  38. package/dist/components/Input/Input.js +16 -16
  39. package/dist/components/InputField/InputField.stories.js +2 -2
  40. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  41. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  42. package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
  43. package/dist/components/MultiSelect/index.js +1 -1
  44. package/dist/components/MultiSelectBox/MultiSelectBox.js +56 -56
  45. package/dist/components/MultiSelectBox/MultiSelectBox.js.map +1 -1
  46. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -1
  47. package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
  48. package/dist/components/OverlayStepBar/OverlayStepBar.js +6 -6
  49. package/dist/components/PageOverlay/PageOverlay.js +26 -26
  50. package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
  51. package/dist/components/Periods/Periods.js +25 -25
  52. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
  53. package/dist/components/RadioTabSelector/RadioTabSelector.js +2 -2
  54. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +8 -8
  55. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  56. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +3 -3
  57. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  58. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +3 -3
  59. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +1 -1
  60. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
  61. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +20 -20
  62. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  63. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  64. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +2 -2
  65. package/dist/components/RteEditor/Plugins/index.js +1 -1
  66. package/dist/components/RteEditor/RteEditor.js +3 -3
  67. package/dist/components/RteEditor/UvaTheme/UvaTheme.js +1 -1
  68. package/dist/components/RteEditor/hooks/components/Flyout.js +3 -3
  69. package/dist/components/SelectListbox/components/SelectButton.js +1 -1
  70. package/dist/components/SelectListbox/components/SelectContainer.js +1 -1
  71. package/dist/components/SelectListbox/components/SelectOption.js +1 -1
  72. package/dist/components/SelectListbox/components/SelectOptionBox.js +1 -1
  73. package/dist/components/Sortable/Sortable.js +1 -1
  74. package/dist/components/Sortable/SortableProvider.js +1 -1
  75. package/dist/components/Sortable/components/SortableContainer.js +2 -2
  76. package/dist/components/Sortable/components/SortableHandle.js +1 -1
  77. package/dist/components/Sortable/components/SortableItem.js +2 -2
  78. package/dist/components/StatusBadge/StatusBage.js +6 -6
  79. package/dist/components/TextArea/TextArea.d.ts +3 -1
  80. package/dist/components/TextArea/TextArea.js +9 -8
  81. package/dist/components/TextArea/TextArea.js.map +1 -1
  82. package/dist/components/TextArea/TextArea.stories.js +8 -7
  83. package/dist/components/TextArea/TextArea.stories.js.map +1 -1
  84. package/dist/components/ToggleSwitch/ToggleSwitch.js +10 -10
  85. package/dist/components/index.js +1 -1
  86. package/dist/index.js +1 -1
  87. package/dist/storyComponents/Container/Container.js +22 -22
  88. package/dist/types/UserInterface.d.ts +1 -1
  89. package/package.json +4 -4
  90. package/dist/Button.module-BVsTgdTe.js +0 -15
  91. package/dist/Button.module-BVsTgdTe.js.map +0 -1
  92. package/dist/RteEditor.module-45648CA2.js +0 -41
  93. package/dist/RteEditor.module-45648CA2.js.map +0 -1
  94. package/dist/SelectListbox.module-N3Kg0UvL.js.map +0 -1
  95. package/dist/Sortable.module-CuvuQhr8.js +0 -23
  96. package/dist/Sortable.module-CuvuQhr8.js.map +0 -1
@@ -1 +1 @@
1
- ._context-menu__wrapper_17pea_1{left:0;min-width:10rem;position:fixed;top:0;visibility:visible;z-index:1000}._context-menu__button_17pea_10{align-items:center;background-color:var(--new-color-grey-300);border:0;border-radius:4px;color:var(--color-grey-500);display:flex;height:1.35rem;justify-content:center;position:absolute;right:.25rem;top:-1.6rem;width:1.35rem}._context-menu_17pea_1{background-color:var(--new-color-uva-white);border:1px solid var(--new-color-grey-500);border-radius:4px;box-shadow:0 2px 6px #0003;height:0;list-style-type:none;margin:-2px 0 0;overflow:hidden;padding:0;visibility:hidden}._context-menu--open_17pea_38{height:auto;visibility:visible}._context-menu__item_17pea_43{align-items:center;background-color:var(--new-color-uva-white);border:none;color:var(--new-color-uva-black);display:flex;padding:.65rem;width:100%}._context-menu__item_17pea_43:hover{background-color:var(--new-color-grey-300)}._context-menu__item-divider_17pea_57{border-bottom:1px solid var(--new-color-grey-500)}._context-menu__wrapper--hidden_17pea_61,._context-menu__wrapper--hidden_17pea_61 ._context-menu_17pea_1{visibility:hidden}
1
+ ._context-menu__wrapper_6m871_1{left:0;min-width:10rem;position:fixed;top:0;visibility:visible;z-index:1000}._context-menu__button_6m871_10{align-items:center;background-color:var(--new-color-grey-300);border:0;border-radius:4px;color:var(--new-color-grey-700);display:flex;height:1.35rem;justify-content:center;position:absolute;right:.25rem;top:-1.6rem;width:1.35rem}._context-menu_6m871_1{background-color:var(--new-color-uva-white);border:1px solid var(--new-color-grey-500);border-radius:4px;box-shadow:0 2px 6px #0003;height:0;list-style-type:none;margin:-2px 0 0;overflow:hidden;padding:0;visibility:hidden}._context-menu--open_6m871_38{height:auto;visibility:visible}._context-menu__item_6m871_43{align-items:center;background-color:var(--new-color-uva-white);border:none;color:var(--new-color-uva-black);display:flex;padding:.65rem;width:100%}._context-menu__item_6m871_43:hover{background-color:var(--new-color-grey-300)}._context-menu__item-divider_6m871_57{border-bottom:1px solid var(--new-color-grey-500)}._context-menu__wrapper--hidden_6m871_61,._context-menu__wrapper--hidden_6m871_61 ._context-menu_6m871_1{visibility:hidden}
@@ -1 +1 @@
1
- ._toggle-switch_98blk_1{align-items:center;cursor:pointer;display:inline-flex;gap:1ch;-webkit-user-select:none;user-select:none}._toggle-switch__visible_98blk_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_98blk_9{outline-color:var(--new-color-navy-600)}:checked+._toggle-switch__visible_98blk_9{background-color:var(--new-color-forest-600)}._toggle-switch__visible_98blk_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_98blk_9:before{background-color:var(--new-color-uva-white);transform:translate(1.6rem)}._toggle-switch--disabled_98blk_52 ._toggle-switch__visible_98blk_9:before{background-color:#0000001a;border-color:#0000001a}:checked:active+._toggle-switch__visible_98blk_9:before{transform:translate(1.25rem)}._toggle-switch--disabled_98blk_52,._toggle-switch--loading_98blk_62{pointer-events:none}._toggle-switch--disabled_98blk_52 ._toggle-switch__visible_98blk_9{background-color:var(--new-color-grey-300);border-color:#0000001a;box-shadow:none}._toggle-switch--visually-hidden_98blk_72{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_98blk_85{color:var(--new-color-grey-700)}._toggle-switch--loading-cursor_98blk_89{cursor:wait}._toggle-switch--extra-left-gap_98blk_93{margin-left:.5rem}
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 s } from "react/jsx-runtime";
2
- import '../../assets/Backdrop.css';const r = "_backdrop_t17s7_1", a = {
3
- backdrop: r
4
- }, t = ({ children: o, ...c }) => /* @__PURE__ */ s("div", { ...c, className: a.backdrop, children: o });
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
- t as Backdrop
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-BVsTgdTe.js";
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-BVsTgdTe.js";
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-BVsTgdTe.js";
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-CrCof8yO.js";
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-B3_u0pKv.js";
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-tree__header_1nrfk_1",
32
- "checkbox-tree__branch": "_checkbox-tree__branch_1nrfk_8",
33
- "checkbox-tree__branch--icon": "_checkbox-tree__branch--icon_1nrfk_21",
34
- "checkbox-tree__branch--icon--expanded": "_checkbox-tree__branch--icon--expanded_1nrfk_27",
35
- "checkbox-tree__branch--formfield": "_checkbox-tree__branch--formfield_1nrfk_32",
36
- "checkbox-tree__leaves": "_checkbox-tree__leaves_1nrfk_39",
37
- "checkbox-tree__leaves--expanded": "_checkbox-tree__leaves--expanded_1nrfk_48",
38
- "checkbox-tree__leaf": "_checkbox-tree__leaf_1nrfk_52"
39
- }, fe = ({
40
- title: l,
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((f, O) => (f[O] = (f[O] || 0) + 1, f), {}), c = t(r), a = t(e);
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
- }, _ = (r) => {
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
- }), _(t), v();
87
+ }), l(t), v();
88
88
  return;
89
89
  }
90
- _(e.getAttribute("data-groupname") || ""), v();
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 && _(e.name);
104
+ e && e.name.indexOf("Group") !== -1 && l(e.name);
105
105
  });
106
106
  }, [m]), /* @__PURE__ */ u("div", { children: [
107
- l && /* @__PURE__ */ i("span", { className: s["checkbox-tree__header"], children: l }),
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
- fe as CheckboxTree
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-CrCof8yO.js";
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-B3_u0pKv.js";
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 h } from "react";
3
- import { c } from "../../clsx-OuTLNxxd.js";
4
- import '../../assets/Input.css';const f = "_input_1hohz_1", t = {
5
- input: f,
6
- "input--numeric": "_input--numeric_1hohz_13",
7
- "input--error": "_input--error_1hohz_18",
8
- "input--full-with": "_input--full-with_1hohz_23"
9
- }, w = h(function({ id: r, appearance: n, type: i = "text", isNumeric: u, fullWidth: o, ...p }, e) {
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
- ...p,
13
+ ...o,
14
14
  ref: e,
15
- id: r,
16
- className: c(t.input, {
17
- [t["input--error"]]: n === "error",
18
- [t["input--full-with"]]: o,
19
- [t["input--numeric"]]: u
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: i
21
+ type: n
22
22
  }
23
23
  );
24
24
  });
25
25
  export {
26
- w as Input
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-CrCof8yO.js";
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-B3_u0pKv.js";
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 "react/jsx-runtime";
2
2
  import "../../clsx-OuTLNxxd.js";
3
3
  import "../../MultiSelectItem-DbOdEllV.js";
4
- import { M as p } from "../../TablePlugin-CrCof8yO.js";
4
+ import { M as p } from "../../TablePlugin-Bj5FObQ_.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 { fn as d } from "../../index-Dwqes6RH.js";
3
3
  import { useState as p } from "react";
4
- import { M as e } from "../../TablePlugin-CrCof8yO.js";
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-CrCof8yO.js";
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-B3_u0pKv.js";
26
+ import "../../../SortableProvider-CwX1lFMa.js";
27
27
  export {
28
28
  y as MultiSelectHeader
29
29
  };
@@ -1,4 +1,4 @@
1
- import { M as l } from "../../TablePlugin-CrCof8yO.js";
1
+ import { M as l } from "../../TablePlugin-Bj5FObQ_.js";
2
2
  export {
3
3
  l as MultiSelect
4
4
  };
@@ -1,44 +1,44 @@
1
- import { jsxs as f, jsx as u } from "react/jsx-runtime";
2
- import { useId as U, useState as b, useRef as S, useCallback as g, useEffect as w } from "react";
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-wrapper_1yhht_1",
9
- "multi-select-box-trigger": "_multi-select-box-trigger_1yhht_5",
10
- "multi-select-box-trigger-label": "_multi-select-box-trigger-label_1yhht_32",
11
- "multi-select-box-trigger-icon": "_multi-select-box-trigger-icon_1yhht_41",
12
- "multi-select-box-trigger-icon--open": "_multi-select-box-trigger-icon--open_1yhht_46",
13
- "multi-select-box-listbox--wrapper": "_multi-select-box-listbox--wrapper_1yhht_50",
14
- "multi-select-box-listbox": "_multi-select-box-listbox_1yhht_50",
15
- "multi-select-box-listbox-option": "_multi-select-box-listbox-option_1yhht_77",
16
- "multi-select-box-listbox-option--active": "_multi-select-box-listbox-option--active_1yhht_88",
17
- "multi-select-box-listbox-option-content": "_multi-select-box-listbox-option-content_1yhht_99",
18
- "multi-select-box-listbox-option--disabled": "_multi-select-box-listbox-option--disabled_1yhht_113"
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: h,
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 _ = U(), [r, y] = b(h || []), [N, v] = b((h == null ? void 0 : h.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, {
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 = g(
36
+ }), p = _(
37
37
  ({ target: e }) => {
38
38
  !e || !k.current || k.current.contains(e) || a(!1);
39
39
  },
40
40
  [a]
41
- ), M = g(
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 = g(
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 l;
60
- let o = t;
59
+ var o;
60
+ let l = t;
61
61
  do
62
- o = o < c.length - 1 ? o + 1 : 0;
63
- while ((l = c[o]) != null && l.disabled);
64
- return o;
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 l;
70
- let o = t;
69
+ var o;
70
+ let l = t;
71
71
  do
72
- o = o <= 0 ? c.length - 1 : o - 1;
73
- while ((l = c[o]) != null && l.disabled);
74
- return o;
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 l = r.some((s) => s.value === t.value) ? r.filter((s) => s.value !== t.value) : [...r, t];
82
- y(l), v(l.length), m(l);
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 l = r.some((s) => s.value === t.value) ? r.filter((s) => s.value !== t.value) : [...r, t];
97
- y(l), v(l.length), m(l);
98
- }, z = g(
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: o } = e.target;
101
- let l = [...r];
100
+ const { checked: t, value: l } = e.target;
101
+ let o = [...r];
102
102
  if (t) {
103
- const s = c.find((B) => B.value === o);
104
- s && l.push(s);
103
+ const s = c.find((B) => B.value === l);
104
+ s && o.push(s);
105
105
  } else
106
- l = l.filter((s) => s.value !== o);
107
- y(l), v(l.length), m(l);
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 w(() => {
111
+ return y(() => {
112
112
  i && x(0);
113
- }, [i]), w(() => {
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]), w(() => {
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__ */ f("div", { className: n["multi-select-box-wrapper"], ref: k, children: [
123
- /* @__PURE__ */ f(
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__ */ f("span", { className: n["multi-select-box-trigger-label"], children: [
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: o }, l) => /* @__PURE__ */ u(
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"]]: l === d,
170
- [n["multi-select-box-listbox-option--disabled"]]: o
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: o }),
175
- onMouseOver: () => x(l),
176
- onFocus: () => x(l),
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__ */ f("label", { htmlFor: e, className: n["multi-select-box-listbox-option-content"], tabIndex: -1, children: [
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: o,
187
+ disabled: l,
188
188
  checked: r.some((s) => s.value === t)
189
189
  }
190
190
  ),