@uva-glass/component-library 3.52.6 → 3.52.8
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/assets/Backdrop.css +1 -1
- package/dist/assets/Card.css +1 -1
- package/dist/assets/Column.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/ModalDialog.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/Spinner.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/chunk-RW5PKMWM-pUx2dyqB.js +11292 -0
- package/dist/chunk-RW5PKMWM-pUx2dyqB.js.map +1 -0
- package/dist/{client--GsCJ9Up.js → client-CFLMKOFW.js} +1 -37
- package/dist/{client--GsCJ9Up.js.map → client-CFLMKOFW.js.map} +1 -1
- package/dist/components/Accordion/Accordion.test.js +3 -3
- package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
- package/dist/components/ActionList/ActionList.test.js +3 -3
- package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
- package/dist/components/Attention/Attention.test.js +2 -2
- package/dist/components/Backdrop/Backdrop.test.js +2 -2
- package/dist/components/Buttons/Button.stories.js +8 -8
- package/dist/components/Buttons/Button.test.js +2 -2
- package/dist/components/Buttons/LinkButton.stories.js +10 -10
- package/dist/components/Buttons/LinkButton.test.js +2 -2
- package/dist/components/Buttons/MenuButton.stories.js +14 -14
- package/dist/components/Buttons/MenuButton.test.js +2 -2
- package/dist/components/Card/Card.test.js +2 -2
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +3 -3
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +7 -7
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +57 -114
- package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
- package/dist/components/Chip/Chip.stories.js +5 -5
- package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +9 -9
- package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -2
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +5 -5
- package/dist/components/InputField/InputField.stories.js +11 -11
- package/dist/components/Label/Label.test.js +2 -2
- package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +12 -12
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +15 -15
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -2
- package/dist/components/Notification/Notification.stories.js +8 -8
- package/dist/components/Notification/Notification.test.js +2 -2
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +4 -4
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +4 -4
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
- package/dist/components/SearchField/SearchField.js +61 -51
- package/dist/components/SearchField/SearchField.js.map +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
- package/dist/components/TextArea/TextArea.stories.js +3 -3
- package/dist/components/TextArea/TextArea.test.js +9 -9
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
- package/dist/{index-DYPpFe2R.js → index-ApPj4mI1.js} +1 -2
- package/dist/{index-DYPpFe2R.js.map → index-ApPj4mI1.js.map} +1 -1
- package/dist/{index-C_1Z-Fok.js → index-BKK3EWVW.js} +2 -2
- package/dist/{index-C_1Z-Fok.js.map → index-BKK3EWVW.js.map} +1 -1
- package/dist/index-Dbb5M7Zc.js +24457 -0
- package/dist/index-Dbb5M7Zc.js.map +1 -0
- package/dist/react-18-C6foUf2n.js +42 -0
- package/dist/react-18-C6foUf2n.js.map +1 -0
- package/dist/{react.esm-DdELhthz.js → react.esm-BjO203QT.js} +3 -19
- package/dist/{react.esm-DdELhthz.js.map → react.esm-BjO203QT.js.map} +1 -1
- package/dist/setupTests.js +1 -1
- package/dist/storybook__react.d.js +7466 -7955
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/{test-utils-BP59mSnn.js → test-utils-BcpWLsLH.js} +1 -19
- package/dist/{test-utils-BP59mSnn.js.map → test-utils-BcpWLsLH.js.map} +1 -1
- package/package.json +13 -13
- package/dist/index-BJRrLdmi.js +0 -34071
- package/dist/index-BJRrLdmi.js.map +0 -1
- package/dist/index-fdIFY6eP.js +0 -11566
- package/dist/index-fdIFY6eP.js.map +0 -1
- package/dist/react-18-BHQltW8V.js +0 -38
- package/dist/react-18-BHQltW8V.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as l, Fragment as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { f as e } from "../../index-Dbb5M7Zc.js";
|
|
3
3
|
import { ControlsButton as t } from "./ControlsButton.js";
|
|
4
4
|
import { Icons as a } from "../Icon/icons/index.js";
|
|
5
5
|
import { Periods as i } from "../Periods/Periods.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { OverlayProvider as p } from "@react-aria/overlays";
|
|
3
|
-
import {
|
|
3
|
+
import { f as m } from "../../index-Dbb5M7Zc.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";
|
|
@@ -34,15 +34,15 @@ const d = `
|
|
|
34
34
|
codeString: d
|
|
35
35
|
}
|
|
36
36
|
}, i = (l) => {
|
|
37
|
-
const [
|
|
37
|
+
const [t, n] = c(!1);
|
|
38
38
|
return /* @__PURE__ */ a(p, { children: [
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
39
|
+
/* @__PURE__ */ e(o, { onClick: () => n(!t), variant: "primary", children: "Open drawer" }),
|
|
40
|
+
t && /* @__PURE__ */ e(
|
|
41
41
|
r,
|
|
42
42
|
{
|
|
43
43
|
...l,
|
|
44
|
-
isOpen:
|
|
45
|
-
onClose: () => (m()(), n(!
|
|
44
|
+
isOpen: t,
|
|
45
|
+
onClose: () => (m()(), n(!t)),
|
|
46
46
|
children: "Example Drawer Content"
|
|
47
47
|
}
|
|
48
48
|
)
|
|
@@ -58,8 +58,8 @@ const f = i.bind({});
|
|
|
58
58
|
f.args = {
|
|
59
59
|
...s,
|
|
60
60
|
buttons: /* @__PURE__ */ a(u, { children: [
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ e(o, { variant: "primary", children: "Primary Example Button" }),
|
|
62
|
+
/* @__PURE__ */ e(o, { variant: "secondary", children: "Secondary Example Button" })
|
|
63
63
|
] })
|
|
64
64
|
};
|
|
65
65
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as s, s as e, f as r } from "../../react.esm-
|
|
2
|
+
import "../../index-ApPj4mI1.js";
|
|
3
|
+
import { r as s, s as e, f as r } from "../../react.esm-BjO203QT.js";
|
|
4
4
|
import { FeedbackBar as c } from "./FeedbackBar.js";
|
|
5
5
|
describe("FeedbackBar", () => {
|
|
6
6
|
it("should render with children text", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { f as i } from "../../index-Dbb5M7Zc.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
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { f as r } from "../../index-Dbb5M7Zc.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}>
|
|
@@ -40,8 +40,8 @@ const l = `<IconButton variant={variant} aria-label={aria-label} onClick={onClic
|
|
|
40
40
|
codeString: l
|
|
41
41
|
}
|
|
42
42
|
}, s = (o) => {
|
|
43
|
-
const
|
|
44
|
-
return /* @__PURE__ */
|
|
43
|
+
const e = o.variant ?? [], a = { ...o, variant: e.toString() };
|
|
44
|
+
return /* @__PURE__ */ n(t, { ...a });
|
|
45
45
|
}, c = s.bind({});
|
|
46
46
|
c.args = {
|
|
47
47
|
"aria-label": "Trash",
|
|
@@ -49,7 +49,7 @@ c.args = {
|
|
|
49
49
|
noBorder: !1,
|
|
50
50
|
wide: !1,
|
|
51
51
|
disabled: !1,
|
|
52
|
-
children: /* @__PURE__ */
|
|
52
|
+
children: /* @__PURE__ */ n(i, { name: "Trash" }),
|
|
53
53
|
onClick: r()
|
|
54
54
|
};
|
|
55
55
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useRef as g } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { f as p } from "../../index-Dbb5M7Zc.js";
|
|
4
4
|
import { InputField as e } from "./InputField.js";
|
|
5
5
|
import { Container as u } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
import "../Accordion/Accordion.js";
|
|
@@ -29,11 +29,11 @@ import "../SelectListbox/SelectProvider.js";
|
|
|
29
29
|
import "../Sortable/components/SortableItem.js";
|
|
30
30
|
import "../../SortableProvider-BbwlEPIr.js";
|
|
31
31
|
import "../WeekSelector/components/WeekSelectorOptionContainer.js";
|
|
32
|
-
const
|
|
32
|
+
const f = `
|
|
33
33
|
// Has all HTMLInputElement props available except "className" and "style"
|
|
34
34
|
<InputField aria-labelledby={aria-labelledby} id={id} onChange={onChangeFunction}
|
|
35
35
|
value={value} type={type} clearTrigger={clearTrigger} />
|
|
36
|
-
`,
|
|
36
|
+
`, C = (t) => {
|
|
37
37
|
const r = t.variant ?? [];
|
|
38
38
|
return { ...t, variant: r.toString() };
|
|
39
39
|
}, Z = {
|
|
@@ -67,7 +67,7 @@ const C = `
|
|
|
67
67
|
},
|
|
68
68
|
parameters: {
|
|
69
69
|
inspectComponent: e,
|
|
70
|
-
codeString:
|
|
70
|
+
codeString: f
|
|
71
71
|
}
|
|
72
72
|
}, i = (t) => {
|
|
73
73
|
const [r, n] = d(""), l = g(null), m = (c) => {
|
|
@@ -78,7 +78,7 @@ const C = `
|
|
|
78
78
|
return /* @__PURE__ */ o(u, { children: /* @__PURE__ */ o(
|
|
79
79
|
e,
|
|
80
80
|
{
|
|
81
|
-
...
|
|
81
|
+
...C(t),
|
|
82
82
|
value: r,
|
|
83
83
|
onChange: m,
|
|
84
84
|
onClear: s,
|
|
@@ -89,12 +89,12 @@ const C = `
|
|
|
89
89
|
type: "text",
|
|
90
90
|
variant: void 0,
|
|
91
91
|
id: "4f9ca77d"
|
|
92
|
-
},
|
|
93
|
-
|
|
92
|
+
}, v = i.bind({});
|
|
93
|
+
v.args = {
|
|
94
94
|
...a
|
|
95
95
|
};
|
|
96
|
-
const
|
|
97
|
-
|
|
96
|
+
const b = i.bind({});
|
|
97
|
+
b.args = {
|
|
98
98
|
...a,
|
|
99
99
|
clearTrigger: "Clear"
|
|
100
100
|
};
|
|
@@ -104,9 +104,9 @@ y.args = {
|
|
|
104
104
|
clearTrigger: /* @__PURE__ */ o(h, { name: "Cross" })
|
|
105
105
|
};
|
|
106
106
|
export {
|
|
107
|
-
|
|
107
|
+
v as InputFieldExample,
|
|
108
108
|
y as WithIconClearTrigger,
|
|
109
|
-
|
|
109
|
+
b as WithStringClearTrigger,
|
|
110
110
|
Z as default
|
|
111
111
|
};
|
|
112
112
|
//# sourceMappingURL=InputField.stories.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as t, s as l } from "../../react.esm-
|
|
2
|
+
import "../../index-ApPj4mI1.js";
|
|
3
|
+
import { r as t, s as l } from "../../react.esm-BjO203QT.js";
|
|
4
4
|
import { Label as r } from "./Label.js";
|
|
5
5
|
describe("Label", () => {
|
|
6
6
|
it("should render", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { r as n, s as e } from "../../react.esm-
|
|
2
|
+
import { r as n, s as e } from "../../react.esm-BjO203QT.js";
|
|
3
3
|
import { MetaDataBar as c } from "./MetaDataBar.js";
|
|
4
4
|
jest.mock("components/Icon", () => ({
|
|
5
5
|
Icon: ({ name: a }) => /* @__PURE__ */ t("span", { "data-testid": "icon", children: a })
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { ModalProvider as
|
|
3
|
-
import {
|
|
2
|
+
import { ModalProvider as r } from "@react-aria/overlays";
|
|
3
|
+
import { f as i } from "../../index-Dbb5M7Zc.js";
|
|
4
4
|
import { ModalDialog as t } from "./ModalDialog.js";
|
|
5
|
-
import { Button as
|
|
5
|
+
import { Button as s } from "../Buttons/Button.js";
|
|
6
6
|
import "../Buttons/LinkButton.js";
|
|
7
7
|
import "@react-aria/button";
|
|
8
8
|
import { ButtonGroup as m } from "../ButtonGroup/ButtonGroup.js";
|
|
9
|
-
import { FormField as
|
|
9
|
+
import { FormField as l } from "../FormField/FormField.js";
|
|
10
10
|
import { InputField as d } from "../InputField/InputField.js";
|
|
11
11
|
import { Label as c } from "../Label/Label.js";
|
|
12
12
|
const p = `
|
|
@@ -50,10 +50,10 @@ const p = `
|
|
|
50
50
|
inspectComponent: t,
|
|
51
51
|
codeString: p
|
|
52
52
|
}
|
|
53
|
-
}, u = (o) => /* @__PURE__ */ e(
|
|
53
|
+
}, u = (o) => /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(t, { ...o, children: /* @__PURE__ */ a(l, { outerSpace: !0, children: [
|
|
54
54
|
/* @__PURE__ */ e(c, { htmlFor: "text-field", children: "Example Text Field" }),
|
|
55
55
|
/* @__PURE__ */ e(d, { id: "text-field" })
|
|
56
|
-
] }) }) }),
|
|
56
|
+
] }) }) }), n = {
|
|
57
57
|
padded: !1,
|
|
58
58
|
size: "regular",
|
|
59
59
|
noButtonBorder: !1,
|
|
@@ -65,26 +65,26 @@ const p = `
|
|
|
65
65
|
onSubmit: i(),
|
|
66
66
|
onClose: i(),
|
|
67
67
|
buttons: /* @__PURE__ */ a(m, { reversed: !0, children: [
|
|
68
|
-
/* @__PURE__ */ e(
|
|
69
|
-
/* @__PURE__ */ e(
|
|
68
|
+
/* @__PURE__ */ e(s, { variant: "primary", onClick: i(), children: "OK" }),
|
|
69
|
+
/* @__PURE__ */ e(s, { variant: "secondary", onClick: i(), children: "Cancel" })
|
|
70
70
|
] }),
|
|
71
71
|
isOpen: !0
|
|
72
72
|
}, b = u.bind({});
|
|
73
73
|
b.args = {
|
|
74
|
-
...
|
|
74
|
+
...n
|
|
75
75
|
};
|
|
76
76
|
const g = u.bind({});
|
|
77
77
|
g.args = {
|
|
78
|
-
...
|
|
78
|
+
...n,
|
|
79
79
|
isLoading: !0,
|
|
80
80
|
spinnerAriaValueText: "Loading"
|
|
81
81
|
};
|
|
82
|
-
const f = (o) => /* @__PURE__ */ e(
|
|
82
|
+
const f = (o) => /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(t, { ...o, children: /* @__PURE__ */ a(l, { outerSpace: !0, children: [
|
|
83
83
|
/* @__PURE__ */ e("div", { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ac dui et nibh eleifend ultricies a id nulla. Pellentesque eleifend sem a tellus dictum tempus. Proin non leo id risus placerat vulputate at ac erat. Ut fringilla imperdiet sollicitudin. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Cras molestie ante ac magna ornare rhoncus non at quam. Mauris elementum luctus euismod. Pellentesque molestie malesuada purus, sed egestas lacus interdum sit amet. Morbi blandit lacus sit amet dictum pulvinar. Ut semper nunc ac enim imperdiet, non interdum diam gravida. In nunc tortor, mollis ac molestie dignissim, elementum sed quam. Suspendisse mollis venenatis libero, pellentesque vestibulum elit consequat et. Aliquam fringilla tellus id libero tempus, sit amet suscipit augue tristique. Quisque cursus neque vel justo tristique, eget semper turpis elementum. Etiam venenatis mattis sapien ac mattis. Mauris vitae ultrices erat." }),
|
|
84
84
|
/* @__PURE__ */ e("div", { children: "Aliquam facilisis massa sed justo rhoncus bibendum. Sed lobortis urna orci, vitae porta leo placerat nec. Nam porta porttitor ornare. Suspendisse vehicula nunc nec egestas finibus. Aliquam non luctus risus. Phasellus ac diam tincidunt, bibendum sem eget, sollicitudin neque. Curabitur mauris risus, feugiat ac euismod non, vulputate ac justo. Curabitur pretium vehicula augue, blandit porta odio rutrum sit amet. Proin semper enim ut sapien tempor, a ornare ipsum faucibus." })
|
|
85
85
|
] }) }) }), h = f.bind({});
|
|
86
86
|
h.args = {
|
|
87
|
-
...
|
|
87
|
+
...n,
|
|
88
88
|
noButtonBorder: !0
|
|
89
89
|
};
|
|
90
90
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { f as d } from "../../index-Dbb5M7Zc.js";
|
|
3
3
|
import { useState as p } from "react";
|
|
4
4
|
import { M as e } from "../../TablePlugin-CqCjNBW_.js";
|
|
5
5
|
import { Container as M } from "../../storyComponents/Container/Container.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { f as u } from "../../index-Dbb5M7Zc.js";
|
|
3
3
|
import { useState as r } from "react";
|
|
4
|
-
import { MultiSelectBox as
|
|
5
|
-
const
|
|
4
|
+
import { MultiSelectBox as l } from "./MultiSelectBox.js";
|
|
5
|
+
const d = "<MultiSelectBox selectData={[{label, value}]} onChange={fn} labelSuffix={string} />", S = {
|
|
6
6
|
title: "Organisms/MultiSelectBox",
|
|
7
|
-
component:
|
|
7
|
+
component: l,
|
|
8
8
|
argTypes: {
|
|
9
9
|
onChange: {
|
|
10
10
|
action: "Selected values",
|
|
@@ -14,10 +14,10 @@ const b = "<MultiSelectBox selectData={[{label, value}]} onChange={fn} labelSuff
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
parameters: {
|
|
17
|
-
inspectComponent:
|
|
18
|
-
codeString:
|
|
17
|
+
inspectComponent: l,
|
|
18
|
+
codeString: d
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, f = [
|
|
21
21
|
{ label: "A.B. Docent", value: "1" },
|
|
22
22
|
{ label: "B.C. Docent met lange achternaam", value: "2" },
|
|
23
23
|
{
|
|
@@ -35,12 +35,12 @@ const b = "<MultiSelectBox selectData={[{label, value}]} onChange={fn} labelSuff
|
|
|
35
35
|
{ label: "H.I. Docent", value: "9" },
|
|
36
36
|
{ label: "K.L. Docent ", value: "10" }
|
|
37
37
|
], n = (e) => {
|
|
38
|
-
const [c, s] = r(e.defaultSelectedItems || []), i = (
|
|
39
|
-
e.onChange && e.onChange(
|
|
38
|
+
const [c, s] = r(e.defaultSelectedItems || []), i = (t) => {
|
|
39
|
+
e.onChange && e.onChange(t), s(t);
|
|
40
40
|
};
|
|
41
41
|
return /* @__PURE__ */ m("div", { style: { width: "30rem", margin: "0rem auto 0 auto" }, children: [
|
|
42
|
-
/* @__PURE__ */ a("span", { children: c.map((
|
|
43
|
-
/* @__PURE__ */ a(
|
|
42
|
+
/* @__PURE__ */ a("span", { children: c.map((t) => t.label).join(", ") }),
|
|
43
|
+
/* @__PURE__ */ a(l, { ...e, onChange: i })
|
|
44
44
|
] });
|
|
45
45
|
}, o = {
|
|
46
46
|
fullWidth: !1,
|
|
@@ -48,10 +48,10 @@ const b = "<MultiSelectBox selectData={[{label, value}]} onChange={fn} labelSuff
|
|
|
48
48
|
maxOptionHeight: "20rem",
|
|
49
49
|
optionPositionRight: !1,
|
|
50
50
|
disabled: !1,
|
|
51
|
-
selectData:
|
|
51
|
+
selectData: f,
|
|
52
52
|
onChange: u()
|
|
53
|
-
},
|
|
54
|
-
|
|
53
|
+
}, b = n.bind({});
|
|
54
|
+
b.args = {
|
|
55
55
|
...o
|
|
56
56
|
};
|
|
57
57
|
const g = n.bind({});
|
|
@@ -64,7 +64,7 @@ g.args = {
|
|
|
64
64
|
]
|
|
65
65
|
};
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
b as MultiSelectBoxExample,
|
|
68
68
|
g as WithDefaultSelectedItems,
|
|
69
69
|
S as default
|
|
70
70
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as d, Fragment as r } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as n, s as t, f as a } from "../../react.esm-
|
|
2
|
+
import "../../index-ApPj4mI1.js";
|
|
3
|
+
import { r as n, s as t, f as a } from "../../react.esm-BjO203QT.js";
|
|
4
4
|
import { MultiSelectBox as l } from "./MultiSelectBox.js";
|
|
5
5
|
const i = jest.fn(), c = [
|
|
6
6
|
{ label: "Option 1", value: "1" },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { f as a } from "../../index-Dbb5M7Zc.js";
|
|
3
3
|
import { Notification as t } from "./Notification.js";
|
|
4
|
-
const
|
|
5
|
-
level={level} variant={variant} onClose={() => {}} />`,
|
|
4
|
+
const r = `<Notification title={title} subtitle={subtitle} action={action}
|
|
5
|
+
level={level} variant={variant} onClose={() => {}} />`, p = {
|
|
6
6
|
title: "Molecules/Notification",
|
|
7
7
|
component: t,
|
|
8
8
|
argTypes: {
|
|
@@ -17,14 +17,14 @@ const l = `<Notification title={title} subtitle={subtitle} action={action}
|
|
|
17
17
|
},
|
|
18
18
|
parameters: {
|
|
19
19
|
inspectComponent: t,
|
|
20
|
-
codeString:
|
|
20
|
+
codeString: r
|
|
21
21
|
}
|
|
22
22
|
}, e = (n) => /* @__PURE__ */ i(t, { ...n }), o = {
|
|
23
23
|
level: "information",
|
|
24
24
|
title: "Titel van de melding",
|
|
25
25
|
onClose: a()
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, l = e.bind({});
|
|
27
|
+
l.args = {
|
|
28
28
|
...o,
|
|
29
29
|
variant: "default",
|
|
30
30
|
subtitle: "Subtekst ter verduidelijking van de melding.",
|
|
@@ -37,7 +37,7 @@ s.args = {
|
|
|
37
37
|
};
|
|
38
38
|
export {
|
|
39
39
|
s as AsBar,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
l as NotificationExample,
|
|
41
|
+
p as default
|
|
42
42
|
};
|
|
43
43
|
//# sourceMappingURL=Notification.stories.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as i, s as t } from "../../react.esm-
|
|
2
|
+
import "../../index-ApPj4mI1.js";
|
|
3
|
+
import { r as i, s as t } from "../../react.esm-BjO203QT.js";
|
|
4
4
|
import { Notification as n } from "./Notification.js";
|
|
5
5
|
describe("Notification", () => {
|
|
6
6
|
it("renders title and subtitle", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { f as a } from "../../index-Dbb5M7Zc.js";
|
|
3
3
|
import { OverlayCloseButton as o } from "./OverlayCloseButton.js";
|
|
4
|
-
import { Container as
|
|
4
|
+
import { Container as l } from "../../storyComponents/Container/Container.js";
|
|
5
5
|
const r = "<OverlayCloseButton aria-label={aria-label} onClick={onClickFunction} />", c = {
|
|
6
6
|
title: "Atoms/OverlayCloseButton",
|
|
7
7
|
component: o,
|
|
@@ -17,11 +17,11 @@ const r = "<OverlayCloseButton aria-label={aria-label} onClick={onClickFunction}
|
|
|
17
17
|
inspectComponent: o,
|
|
18
18
|
codeString: r
|
|
19
19
|
}
|
|
20
|
-
}, n = (
|
|
20
|
+
}, n = (t) => /* @__PURE__ */ e(l, { size: "small", padded: !1, children: /* @__PURE__ */ e(o, { ...t }) }), s = n.bind({});
|
|
21
21
|
s.args = {
|
|
22
22
|
paddedModal: !1,
|
|
23
23
|
"aria-label": "Close",
|
|
24
|
-
onClick:
|
|
24
|
+
onClick: a()
|
|
25
25
|
};
|
|
26
26
|
export {
|
|
27
27
|
s as OverlayCloseButtonExample,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { f as t } from "../../index-Dbb5M7Zc.js";
|
|
3
3
|
import { PeriodSelector as e } from "./PeriodSelector.js";
|
|
4
4
|
const i = "<PeriodSelector maxPeriods={} defaultValues={} label={} labelPosition={} required={} onChange={} />", m = {
|
|
5
5
|
title: "Organisms/PeriodSelector",
|
|
@@ -8,8 +8,8 @@ const i = "<PeriodSelector maxPeriods={} defaultValues={} label={} labelPosition
|
|
|
8
8
|
inspectComponent: e,
|
|
9
9
|
codeString: i
|
|
10
10
|
}
|
|
11
|
-
},
|
|
12
|
-
|
|
11
|
+
}, a = (o) => /* @__PURE__ */ r(e, { ...o }), l = a.bind({});
|
|
12
|
+
l.args = {
|
|
13
13
|
maxPeriods: 7,
|
|
14
14
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
15
15
|
defaultValues: [1, 5, 6],
|
|
@@ -19,7 +19,7 @@ a.args = {
|
|
|
19
19
|
onChange: t()
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
l as PeriodSelectorExample,
|
|
23
23
|
m as default
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=PeriodSelector.stories.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import { r as l, s as t, f as s } from "../../react.esm-
|
|
2
|
+
import "../../index-ApPj4mI1.js";
|
|
3
|
+
import { r as l, s as t, f as s } from "../../react.esm-BjO203QT.js";
|
|
4
4
|
import { RadioGroup as a } from "./RadioGroup.js";
|
|
5
5
|
const i = [
|
|
6
6
|
{ id: "1", titleLabel: "Option 1", value: "option1" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { f as t } from "../../index-Dbb5M7Zc.js";
|
|
3
3
|
import { RadioTabSelector as e } from "./RadioTabSelector.js";
|
|
4
4
|
const i = "<RadioTabSelector radioButtons={} defaultValue={} label={} labelPosition={} required={} notValidatedText={} onSetValue={} />", b = {
|
|
5
5
|
title: "Molecules/RadioTabSelector",
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { jsxs as x, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as y, useState as k, useEffect as
|
|
3
|
-
import { c as
|
|
4
|
-
import { ResultOption as
|
|
5
|
-
import { s as
|
|
6
|
-
import { ResultOptionBox as
|
|
7
|
-
import { Icon as
|
|
8
|
-
import { useOnClickOutside as
|
|
9
|
-
const
|
|
10
|
-
id:
|
|
11
|
-
placeholder:
|
|
12
|
-
isLoading:
|
|
13
|
-
isCompact:
|
|
14
|
-
onChange:
|
|
2
|
+
import { useRef as y, useState as k, useEffect as h, Children as d, isValidElement as F, cloneElement as N } from "react";
|
|
3
|
+
import { c as O } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { ResultOption as S } from "./components/ResultsOption.js";
|
|
5
|
+
import { s as l } from "../../SearchField.module-CMUEgX7d.js";
|
|
6
|
+
import { ResultOptionBox as D } from "./components/ResultOptionBox.js";
|
|
7
|
+
import { Icon as g } from "../Icon/Icon.js";
|
|
8
|
+
import { useOnClickOutside as B } from "../hooks/useOnClickOutside.js";
|
|
9
|
+
const j = ({
|
|
10
|
+
id: _,
|
|
11
|
+
placeholder: m,
|
|
12
|
+
isLoading: v = !1,
|
|
13
|
+
isCompact: n,
|
|
14
|
+
onChange: u,
|
|
15
15
|
children: a,
|
|
16
|
-
resultCountRow:
|
|
16
|
+
resultCountRow: c
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
},
|
|
18
|
+
const t = y(null), [f, p] = k(!1), b = y(null), w = () => {
|
|
19
|
+
t.current && (t.current.value = "", t.current.focus());
|
|
20
|
+
}, E = (e) => {
|
|
21
|
+
const r = e.target, o = r.value;
|
|
22
|
+
r.setSelectionRange(o.length, o.length), o && u(o);
|
|
23
|
+
}, R = (e) => {
|
|
24
24
|
switch (e.key) {
|
|
25
25
|
case "Escape":
|
|
26
|
-
e.preventDefault(),
|
|
26
|
+
e.preventDefault(), u(""), t.current && (t.current.value = ""), n && (p(!1), t.current?.blur());
|
|
27
27
|
break;
|
|
28
28
|
case "ArrowDown": {
|
|
29
29
|
e.preventDefault();
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
32
|
-
let i =
|
|
30
|
+
const o = b.current?.querySelector('li[role="option"]:not([tabindex="-1"])');
|
|
31
|
+
if (o) {
|
|
32
|
+
let i = o;
|
|
33
33
|
for (; i && i.getAttribute("tabindex") === "-1"; )
|
|
34
34
|
i = i.nextElementSibling;
|
|
35
35
|
i?.focus();
|
|
@@ -38,59 +38,69 @@ const A = ({
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
}, [a
|
|
44
|
-
|
|
41
|
+
return h(() => {
|
|
42
|
+
!d.count(a) && t.current?.value.length === 0 && n && c === null && p(!1);
|
|
43
|
+
}, [a, n, c]), h(() => {
|
|
44
|
+
if (t.current === null) return;
|
|
45
|
+
const e = () => {
|
|
46
|
+
n && !d.count(a) && p(!1);
|
|
47
|
+
}, r = t.current;
|
|
48
|
+
return r.addEventListener("blur", e), () => {
|
|
49
|
+
r.removeEventListener("blur", e);
|
|
50
|
+
};
|
|
51
|
+
}, [n, a]), h(() => {
|
|
52
|
+
n && f && t.current && t.current.focus();
|
|
53
|
+
}, [n, f]), B(b, u.bind(null, "")), /* @__PURE__ */ x("div", { className: l["search-field__input-wrapper"], children: [
|
|
54
|
+
n && /* @__PURE__ */ s(
|
|
45
55
|
"button",
|
|
46
56
|
{
|
|
47
57
|
type: "button",
|
|
48
|
-
className:
|
|
49
|
-
onClick: () =>
|
|
50
|
-
"aria-label":
|
|
51
|
-
children: /* @__PURE__ */ s(
|
|
58
|
+
className: l["search-field__compact-button"],
|
|
59
|
+
onClick: () => p(!0),
|
|
60
|
+
"aria-label": m,
|
|
61
|
+
children: /* @__PURE__ */ s(g, { name: "Magnify", className: l["search-field__compact-icon"], "aria-hidden": "true" })
|
|
52
62
|
}
|
|
53
63
|
),
|
|
54
64
|
/* @__PURE__ */ x(
|
|
55
65
|
"div",
|
|
56
66
|
{
|
|
57
|
-
className:
|
|
58
|
-
[
|
|
59
|
-
[
|
|
67
|
+
className: O(l["search-field__input-container"], {
|
|
68
|
+
[l["search-field__input-container--hidden"]]: n && !f,
|
|
69
|
+
[l["search-field__input-container--visible"]]: n && f
|
|
60
70
|
}),
|
|
61
71
|
children: [
|
|
62
|
-
/* @__PURE__ */ s(
|
|
72
|
+
/* @__PURE__ */ s(g, { name: "Magnify", className: l["search-field__icon"], "aria-hidden": "true" }),
|
|
63
73
|
/* @__PURE__ */ s(
|
|
64
74
|
"input",
|
|
65
75
|
{
|
|
66
76
|
type: "text",
|
|
67
|
-
className:
|
|
68
|
-
placeholder:
|
|
69
|
-
id:
|
|
70
|
-
onChange: (e) =>
|
|
71
|
-
onFocus:
|
|
72
|
-
onKeyDown:
|
|
77
|
+
className: l["search-field__input-field"],
|
|
78
|
+
placeholder: m,
|
|
79
|
+
id: _,
|
|
80
|
+
onChange: (e) => u(e.target.value),
|
|
81
|
+
onFocus: E,
|
|
82
|
+
onKeyDown: R,
|
|
73
83
|
role: "combobox",
|
|
74
|
-
"aria-expanded": !!
|
|
75
|
-
"aria-controls": `${
|
|
84
|
+
"aria-expanded": !!d.count(a) || v,
|
|
85
|
+
"aria-controls": `${_}-results`,
|
|
76
86
|
"aria-autocomplete": "list",
|
|
77
87
|
"aria-haspopup": "listbox",
|
|
78
|
-
"aria-label":
|
|
88
|
+
"aria-label": m,
|
|
79
89
|
autoComplete: "off",
|
|
80
|
-
ref:
|
|
90
|
+
ref: t
|
|
81
91
|
}
|
|
82
92
|
)
|
|
83
93
|
]
|
|
84
94
|
}
|
|
85
95
|
),
|
|
86
|
-
(a ||
|
|
87
|
-
key:
|
|
88
|
-
onReset:
|
|
96
|
+
(a || v) && /* @__PURE__ */ s(D, { resultCountRow: c || null, ref: b, children: d.map(a, (e, r) => F(e) ? N(e, {
|
|
97
|
+
key: r,
|
|
98
|
+
onReset: w
|
|
89
99
|
}) : e) })
|
|
90
100
|
] });
|
|
91
101
|
};
|
|
92
|
-
|
|
102
|
+
j.ResultOption = S;
|
|
93
103
|
export {
|
|
94
|
-
|
|
104
|
+
j as SearchField
|
|
95
105
|
};
|
|
96
106
|
//# sourceMappingURL=SearchField.js.map
|