@uva-glass/component-library 3.0.3 → 3.0.5
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/{Lexical.prod-CQl7J8uU.js → Lexical.prod-DTADK2yJ.js} +1498 -1471
- package/dist/Lexical.prod-DTADK2yJ.js.map +1 -0
- package/dist/LexicalClipboard.prod-Dx5Fm6e5.js +258 -0
- package/dist/LexicalClipboard.prod-Dx5Fm6e5.js.map +1 -0
- package/dist/{LexicalComposerContext.prod-DxxjdrXB.js → LexicalComposerContext.prod-BCXERl09.js} +6 -7
- package/dist/{LexicalComposerContext.prod-DxxjdrXB.js.map → LexicalComposerContext.prod-BCXERl09.js.map} +1 -1
- package/dist/{LexicalLink.prod-D8-zZW0o.js → LexicalLink.prod-JpC4y56U.js} +25 -25
- package/dist/LexicalLink.prod-JpC4y56U.js.map +1 -0
- package/dist/LexicalList.prod-w0kSq9sB.js +579 -0
- package/dist/LexicalList.prod-w0kSq9sB.js.map +1 -0
- package/dist/LexicalSelection.prod-DQLHaigk.js +78 -0
- package/dist/LexicalSelection.prod-DQLHaigk.js.map +1 -0
- package/dist/{LexicalTable.prod-BvJxbarH.js → LexicalTable.prod-DjfZc87j.js} +352 -334
- package/dist/LexicalTable.prod-DjfZc87j.js.map +1 -0
- package/dist/{LexicalUtils.prod-D9KKqgU7.js → LexicalUtils.prod-BBwue2Aj.js} +39 -39
- package/dist/LexicalUtils.prod-BBwue2Aj.js.map +1 -0
- package/dist/{SortableProvider-RaH_ZXB3.js → SortableProvider-Ck_XnBVq.js} +10 -10
- package/dist/{SortableProvider-RaH_ZXB3.js.map → SortableProvider-Ck_XnBVq.js.map} +1 -1
- package/dist/{TablePlugin-CPEwD-wi.js → TablePlugin-Co5vgBHF.js} +87 -88
- package/dist/{TablePlugin-CPEwD-wi.js.map → TablePlugin-Co5vgBHF.js.map} +1 -1
- package/dist/__mocks__/fileMock.d.ts +2 -0
- package/dist/__mocks__/svgrMock.d.ts +3 -0
- package/dist/__mocks__/svgrMock.js +10 -0
- package/dist/__mocks__/svgrMock.js.map +1 -0
- package/dist/client-CTOhtEms.js +33 -0
- package/dist/client-CTOhtEms.js.map +1 -0
- package/dist/components/AccordionCard/AccordionCard.stories.js +1 -1
- package/dist/components/Buttons/Button.stories.js +2 -2
- package/dist/components/Buttons/LinkButton.stories.js +2 -2
- package/dist/components/Buttons/MenuButton.stories.js +2 -2
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +11 -11
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FormInput/FormInput.js +3 -3
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +3 -3
- package/dist/components/Label/Label.test.d.ts +0 -0
- package/dist/components/Label/Label.test.js +4257 -0
- package/dist/components/Label/Label.test.js.map +1 -0
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +4 -4
- package/dist/components/Repeater/Repeater.stories.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -3
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +48 -48
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +28 -28
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +8 -8
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +20 -20
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +15 -15
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/Providers/LanguageProvider.js +3 -3
- package/dist/components/RteEditor/RteEditor.js +454 -454
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/RteEditor/hooks/components/Flyout.js +12 -13
- package/dist/components/RteEditor/hooks/components/Flyout.js.map +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/SelectListbox/SelectListbox.js +8 -9
- package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
- package/dist/components/SelectListbox/SelectProvider.js +3 -3
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/actions.js +8 -8
- package/dist/components/Sortable/components/SortableContainer.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +1 -1
- package/dist/components/Spinner/Spinner.js +11 -12
- package/dist/components/Spinner/Spinner.js.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{helpers-C_Mib4v3.js → helpers-DgTW1vIO.js} +33 -33
- package/dist/{helpers-C_Mib4v3.js.map → helpers-DgTW1vIO.js.map} +1 -1
- package/dist/index-BqHyOZsF.js +10322 -0
- package/dist/index-BqHyOZsF.js.map +1 -0
- package/dist/{index-Sh2oo6_C.js → index-DkNZhwJb.js} +399 -392
- package/dist/index-DkNZhwJb.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/react-18-CcyoHPTJ.js +38 -0
- package/dist/react-18-CcyoHPTJ.js.map +1 -0
- package/dist/setupTests.d.ts +0 -0
- package/dist/setupTests.js +1573 -0
- package/dist/setupTests.js.map +1 -0
- package/dist/storybook__react.d.js +538 -1657
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/test-utils-CTqdUiUm.js +1126 -0
- package/dist/test-utils-CTqdUiUm.js.map +1 -0
- package/package.json +52 -33
- package/dist/Lexical.prod-CQl7J8uU.js.map +0 -1
- package/dist/LexicalClipboard.prod-C48GDxiy.js +0 -258
- package/dist/LexicalClipboard.prod-C48GDxiy.js.map +0 -1
- package/dist/LexicalLink.prod-D8-zZW0o.js.map +0 -1
- package/dist/LexicalList.prod-B4_DTbPB.js +0 -576
- package/dist/LexicalList.prod-B4_DTbPB.js.map +0 -1
- package/dist/LexicalSelection.prod-BU3GAQB4.js +0 -86
- package/dist/LexicalSelection.prod-BU3GAQB4.js.map +0 -1
- package/dist/LexicalTable.prod-BvJxbarH.js.map +0 -1
- package/dist/LexicalUtils.prod-D9KKqgU7.js.map +0 -1
- package/dist/index-Sh2oo6_C.js.map +0 -1
- package/dist/react-18-C9Y1Flwa.js +0 -65
- package/dist/react-18-C9Y1Flwa.js.map +0 -1
|
@@ -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-Co5vgBHF.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,7 +25,7 @@ import "../../index-B3c5pcHk.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-Ck_XnBVq.js";
|
|
29
29
|
import { useResponsive as L } from "../hooks/useResponsive.js";
|
|
30
30
|
import '../../assets/CheckboxTree.css';const s = {
|
|
31
31
|
"checkbox-tree__header": "_checkbox-tree__header_3w3rj_1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as g, jsxs as x } from "react/jsx-runtime";
|
|
2
|
-
import { j as S,
|
|
2
|
+
import { j as S, z as D, f as V } from "../../index-DkNZhwJb.js";
|
|
3
3
|
import { s as f } from "../../index-2mUSc_Ki.js";
|
|
4
4
|
import { useState as v } from "react";
|
|
5
5
|
import { CheckboxTree as y } from "./CheckboxTree.js";
|
|
@@ -55,7 +55,7 @@ function _(e, t = {}) {
|
|
|
55
55
|
};
|
|
56
56
|
return o.isAction = !0, o.implicit = t.implicit, o;
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const z = (e, t, n) => {
|
|
59
59
|
const o = Array.from({ length: t }, (i, a) => a + 1), c = (i) => {
|
|
60
60
|
const a = Math.ceil(parseInt(i) / n), l = a === n ? "" : `.${parseInt(i) % n || n}`;
|
|
61
61
|
return `${a}${l}`;
|
|
@@ -74,26 +74,26 @@ const K = (e, t, n) => {
|
|
|
74
74
|
itemValue: String(s[l].itemValue)
|
|
75
75
|
})), i;
|
|
76
76
|
}, []);
|
|
77
|
-
},
|
|
77
|
+
}, K = 7, L = 3, C = z(
|
|
78
78
|
["1", "2", "3", "4", "5", "6", "7"],
|
|
79
|
-
|
|
79
|
+
K,
|
|
80
80
|
L
|
|
81
|
-
),
|
|
81
|
+
), H = "<CheckboxTree title={} checkboxTree={} selectedValues={} onChange={} />", oe = {
|
|
82
82
|
title: "Organisms/CheckboxTree",
|
|
83
83
|
component: y,
|
|
84
84
|
parameters: {
|
|
85
85
|
inspectComponent: y,
|
|
86
|
-
codeString:
|
|
86
|
+
codeString: H
|
|
87
87
|
}
|
|
88
|
-
},
|
|
89
|
-
|
|
88
|
+
}, J = (e) => /* @__PURE__ */ g(y, { ...e }), Y = J.bind({});
|
|
89
|
+
Y.args = {
|
|
90
90
|
title: "Periode",
|
|
91
91
|
checkboxTree: C,
|
|
92
92
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
93
93
|
selectedValues: ["3", "4"],
|
|
94
94
|
onChange: V()
|
|
95
95
|
};
|
|
96
|
-
const u = 3,
|
|
96
|
+
const u = 3, G = (e) => {
|
|
97
97
|
const t = Math.ceil(parseInt(e) / u), n = t === u ? "" : `.${parseInt(e) % u || u}`;
|
|
98
98
|
return `${t}${n}`;
|
|
99
99
|
}, X = (e) => {
|
|
@@ -112,7 +112,7 @@ const u = 3, Y = (e) => {
|
|
|
112
112
|
/* @__PURE__ */ g("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem", width: "100%", marginBottom: "1rem" }, children: e && e.map((c, s) => /* @__PURE__ */ g(
|
|
113
113
|
I,
|
|
114
114
|
{
|
|
115
|
-
label:
|
|
115
|
+
label: G(c),
|
|
116
116
|
onDelete: n
|
|
117
117
|
},
|
|
118
118
|
`${s}_${c}`
|
|
@@ -129,7 +129,7 @@ const u = 3, Y = (e) => {
|
|
|
129
129
|
] });
|
|
130
130
|
};
|
|
131
131
|
export {
|
|
132
|
-
|
|
132
|
+
Y as CheckboxTreeExample,
|
|
133
133
|
re as CheckboxTreeWithChips,
|
|
134
134
|
oe as default
|
|
135
135
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { f as t } from "../../index-
|
|
2
|
+
import { f as t } from "../../index-DkNZhwJb.js";
|
|
3
3
|
import { Chip as e } from "./Chip.js";
|
|
4
4
|
const s = "<Chip label={string} onDelete={onDeleteFunction(label)}/>", b = {
|
|
5
5
|
title: "Atoms/Chip",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { OverlayProvider as p } from "@react-aria/overlays";
|
|
3
|
-
import { f as m } from "../../index-
|
|
3
|
+
import { f as m } from "../../index-DkNZhwJb.js";
|
|
4
4
|
import { useState as c } from "react";
|
|
5
5
|
import { Drawer as r } from "./Drawer.js";
|
|
6
6
|
import { Button as o } from "../Buttons/Button.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as c, jsx as t, Fragment as b } from "react/jsx-runtime";
|
|
2
2
|
import { c as g } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../Buttons/Button.js";
|
|
@@ -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-Co5vgBHF.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-B3c5pcHk.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-Ck_XnBVq.js";
|
|
28
28
|
import '../../assets/FormInput.css';const o = {
|
|
29
29
|
"form-input__container": "_form-input__container_g2j8x_1",
|
|
30
30
|
"form-input__container--label-left": "_form-input__container--label-left_g2j8x_7",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { f as i } from "../../index-
|
|
2
|
+
import { f as i } from "../../index-DkNZhwJb.js";
|
|
3
3
|
import { FormInput as a } from "./FormInput.js";
|
|
4
4
|
import { SelectListbox as o } from "../SelectListbox/SelectListbox.js";
|
|
5
5
|
const m = `
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { f as r } from "../../index-
|
|
2
|
+
import { f as r } from "../../index-DkNZhwJb.js";
|
|
3
3
|
import { IconButton as t } from "./IconButton.js";
|
|
4
4
|
import { Icon as i } from "../Icon/Icon.js";
|
|
5
5
|
const l = `<IconButton variant={variant} aria-label={aria-label} onClick={onClickFunction}>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useRef as g } from "react";
|
|
3
|
-
import { f as p } from "../../index-
|
|
3
|
+
import { f as p } from "../../index-DkNZhwJb.js";
|
|
4
4
|
import { InputField as o } from "./InputField.js";
|
|
5
5
|
import { Container as u } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
import { Icon as f } from "../Icon/Icon.js";
|
|
@@ -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-Co5vgBHF.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-B3c5pcHk.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-Ck_XnBVq.js";
|
|
28
28
|
const C = `
|
|
29
29
|
// Has all HTMLInputElement props available except "className" and "style"
|
|
30
30
|
<InputField aria-labelledby={aria-labelledby} id={id} onChange={onChangeFunction}
|
|
File without changes
|