@uva-glass/component-library 3.43.0 → 3.44.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/RteEditor.module-CovRFt0S.js +34 -0
- package/dist/RteEditor.module-CovRFt0S.js.map +1 -0
- package/dist/SelectListbox.module-CAKDuwcy.js +28 -0
- package/dist/SelectListbox.module-CAKDuwcy.js.map +1 -0
- package/dist/{TablePlugin-CAoOq8iA.js → TablePlugin-DaKDRL4G.js} +2 -2
- package/dist/{TablePlugin-CAoOq8iA.js.map → TablePlugin-DaKDRL4G.js.map} +1 -1
- package/dist/assets/CheckboxButtonBar.css +1 -1
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.d.ts +4 -2
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +95 -64
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js.map +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.d.ts +4 -3
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +61 -26
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +2 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.d.ts +1 -1
- package/dist/components/ControlsButton/ControlsButton.js +27 -27
- package/dist/components/ControlsButton/ControlsButton.js.map +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.d.ts +1 -0
- package/dist/components/ControlsButton/ControlsButton.stories.js +70 -25
- package/dist/components/ControlsButton/ControlsButton.stories.js.map +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +2 -2
- 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 +2 -2
- package/dist/components/RteEditor/RteEditor.stories.js +64 -25
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/UvaTheme.d.ts +2 -0
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +4 -2
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +6 -6
- package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
- package/dist/components/SelectListbox/SelectListbox.d.ts +1 -1
- package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectButton.d.ts +1 -1
- package/dist/components/SelectListbox/components/SelectButton.js +1 -1
- package/dist/components/SelectListbox/components/SelectButton.js.map +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.stories.js +1 -1
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{index-BVrrnUn0.js → index-BfMTX2kB.js} +6 -3
- package/dist/index-BfMTX2kB.js.map +1 -0
- package/dist/{index-BamlKH-k.js → index-DvUwfXNb.js} +3 -2
- package/dist/{index-BamlKH-k.js.map → index-DvUwfXNb.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/storybook__react.d.js +3 -3
- package/package.json +14 -14
- package/dist/RteEditor.module-dE9wQTC9.js +0 -42
- package/dist/RteEditor.module-dE9wQTC9.js.map +0 -1
- package/dist/SelectListbox.module-yzXaWwsm.js +0 -26
- package/dist/SelectListbox.module-yzXaWwsm.js.map +0 -1
- package/dist/index-BVrrnUn0.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { l as o } from "../../index-
|
|
3
|
-
import { CheckboxButtonBar as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as e, jsxs as t, Fragment as l } from "react/jsx-runtime";
|
|
2
|
+
import { l as o } from "../../index-DvUwfXNb.js";
|
|
3
|
+
import { CheckboxButtonBar as i } from "./CheckboxButtonBar.js";
|
|
4
|
+
const u = "<CheckboxButtonBar checkboxes={} defaultValues={} label={} labelPosition={} required={} notValidatedText={} disableGroup={} onSetValues={} />", v = {
|
|
5
5
|
title: "Molecules/CheckboxButtonBar",
|
|
6
|
-
component:
|
|
6
|
+
component: i,
|
|
7
7
|
argTypes: {
|
|
8
8
|
checkboxes: {
|
|
9
9
|
table: {
|
|
@@ -41,11 +41,11 @@ const b = "<CheckboxButtonBar checkboxes={} defaultValues={} label={} labelPosit
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
parameters: {
|
|
44
|
-
inspectComponent:
|
|
45
|
-
codeString:
|
|
44
|
+
inspectComponent: i,
|
|
45
|
+
codeString: u
|
|
46
46
|
}
|
|
47
|
-
}, a = (
|
|
48
|
-
|
|
47
|
+
}, a = (r) => /* @__PURE__ */ e(i, { ...r }), s = a.bind({});
|
|
48
|
+
s.args = {
|
|
49
49
|
label: "Periode",
|
|
50
50
|
required: !0,
|
|
51
51
|
checkboxes: [
|
|
@@ -79,8 +79,8 @@ u.args = {
|
|
|
79
79
|
footerText: "Weken in periode 2",
|
|
80
80
|
onSetValues: o()
|
|
81
81
|
};
|
|
82
|
-
const
|
|
83
|
-
|
|
82
|
+
const b = a.bind({});
|
|
83
|
+
b.args = {
|
|
84
84
|
label: "Weken",
|
|
85
85
|
required: !0,
|
|
86
86
|
checkboxes: [
|
|
@@ -114,8 +114,8 @@ n.args = {
|
|
|
114
114
|
actAsRadioButtonBar: !0,
|
|
115
115
|
onSetValues: o()
|
|
116
116
|
};
|
|
117
|
-
const
|
|
118
|
-
|
|
117
|
+
const n = a.bind({});
|
|
118
|
+
n.args = {
|
|
119
119
|
label: "Weken",
|
|
120
120
|
required: !0,
|
|
121
121
|
checkboxes: [
|
|
@@ -164,7 +164,7 @@ p.args = {
|
|
|
164
164
|
label: "1",
|
|
165
165
|
value: "1",
|
|
166
166
|
prefix: "36",
|
|
167
|
-
tooltip: /* @__PURE__ */ l
|
|
167
|
+
tooltip: /* @__PURE__ */ t(l, { children: [
|
|
168
168
|
"1 sept - 5 sept",
|
|
169
169
|
/* @__PURE__ */ e("br", {}),
|
|
170
170
|
"2025"
|
|
@@ -175,7 +175,7 @@ p.args = {
|
|
|
175
175
|
label: "2",
|
|
176
176
|
value: "2",
|
|
177
177
|
prefix: "37",
|
|
178
|
-
tooltip: /* @__PURE__ */ l
|
|
178
|
+
tooltip: /* @__PURE__ */ t(l, { children: [
|
|
179
179
|
"8 sept - 12 sept",
|
|
180
180
|
/* @__PURE__ */ e("br", {}),
|
|
181
181
|
"2025"
|
|
@@ -185,7 +185,7 @@ p.args = {
|
|
|
185
185
|
label: "3",
|
|
186
186
|
value: "3",
|
|
187
187
|
prefix: "38",
|
|
188
|
-
tooltip: /* @__PURE__ */ l
|
|
188
|
+
tooltip: /* @__PURE__ */ t(l, { children: [
|
|
189
189
|
"15 sept - 19 sept",
|
|
190
190
|
/* @__PURE__ */ e("br", {}),
|
|
191
191
|
"2025"
|
|
@@ -195,7 +195,7 @@ p.args = {
|
|
|
195
195
|
label: "4",
|
|
196
196
|
value: "4",
|
|
197
197
|
prefix: "39",
|
|
198
|
-
tooltip: /* @__PURE__ */ l
|
|
198
|
+
tooltip: /* @__PURE__ */ t(l, { children: [
|
|
199
199
|
"22 sept - 26 sept",
|
|
200
200
|
/* @__PURE__ */ e("br", {}),
|
|
201
201
|
"2025"
|
|
@@ -205,7 +205,7 @@ p.args = {
|
|
|
205
205
|
label: "5",
|
|
206
206
|
value: "5",
|
|
207
207
|
prefix: "40",
|
|
208
|
-
tooltip: /* @__PURE__ */ l
|
|
208
|
+
tooltip: /* @__PURE__ */ t(l, { children: [
|
|
209
209
|
"29 sept - 3 okt",
|
|
210
210
|
/* @__PURE__ */ e("br", {}),
|
|
211
211
|
"2025"
|
|
@@ -215,7 +215,7 @@ p.args = {
|
|
|
215
215
|
label: "6",
|
|
216
216
|
value: "6",
|
|
217
217
|
prefix: "41",
|
|
218
|
-
tooltip: /* @__PURE__ */ l
|
|
218
|
+
tooltip: /* @__PURE__ */ t(l, { children: [
|
|
219
219
|
"6 okt - 10 okt",
|
|
220
220
|
/* @__PURE__ */ e("br", {}),
|
|
221
221
|
"2025"
|
|
@@ -225,7 +225,7 @@ p.args = {
|
|
|
225
225
|
label: "7",
|
|
226
226
|
value: "7",
|
|
227
227
|
prefix: "42",
|
|
228
|
-
tooltip: /* @__PURE__ */ l
|
|
228
|
+
tooltip: /* @__PURE__ */ t(l, { children: [
|
|
229
229
|
"13 okt - 17 okt",
|
|
230
230
|
/* @__PURE__ */ e("br", {}),
|
|
231
231
|
"2025"
|
|
@@ -235,7 +235,7 @@ p.args = {
|
|
|
235
235
|
label: "8",
|
|
236
236
|
value: "8",
|
|
237
237
|
prefix: "43",
|
|
238
|
-
tooltip: /* @__PURE__ */ l
|
|
238
|
+
tooltip: /* @__PURE__ */ t(l, { children: [
|
|
239
239
|
"20 okt - 24 okt",
|
|
240
240
|
/* @__PURE__ */ e("br", {}),
|
|
241
241
|
"2025"
|
|
@@ -248,11 +248,46 @@ p.args = {
|
|
|
248
248
|
actAsRadioButtonBar: !1,
|
|
249
249
|
onSetValues: o()
|
|
250
250
|
};
|
|
251
|
+
const c = a.bind({});
|
|
252
|
+
c.args = {
|
|
253
|
+
label: "Year(s)",
|
|
254
|
+
required: !0,
|
|
255
|
+
checkboxes: [
|
|
256
|
+
{
|
|
257
|
+
label: "1",
|
|
258
|
+
value: "1",
|
|
259
|
+
tooltip: /* @__PURE__ */ e(l, { children: "2023 - 2024" }),
|
|
260
|
+
tooltipPosition: "left"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
label: "2",
|
|
264
|
+
value: "2",
|
|
265
|
+
tooltip: /* @__PURE__ */ e(l, { children: "2025 - 2026" })
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
label: "3",
|
|
269
|
+
value: "3",
|
|
270
|
+
tooltip: /* @__PURE__ */ e(l, { children: "2026 - 2027" })
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
label: "4",
|
|
274
|
+
value: "4",
|
|
275
|
+
tooltip: /* @__PURE__ */ e(l, { children: "2027 - 2028" }),
|
|
276
|
+
tooltipPosition: "right"
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
defaultValues: ["1"],
|
|
280
|
+
labelPosition: "top",
|
|
281
|
+
actAsRadioButtonBar: !1,
|
|
282
|
+
segmented: !0,
|
|
283
|
+
onSetValues: o()
|
|
284
|
+
};
|
|
251
285
|
export {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
286
|
+
b as AsRadioButtonBar,
|
|
287
|
+
s as CheckboxButtonBarExample,
|
|
288
|
+
c as Segmented,
|
|
289
|
+
n as WithPrefix,
|
|
290
|
+
p as WithTooltip,
|
|
291
|
+
v as default
|
|
257
292
|
};
|
|
258
293
|
//# sourceMappingURL=CheckboxButtonBar.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxButtonBar.stories.js","sources":["../../../src/components/CheckboxButtonBar/CheckboxButtonBar.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { CheckboxButtonBarProps } from './CheckboxButtonBar';\n\nimport { CheckboxButtonBar } from './CheckboxButtonBar';\n\nconst codeString =\n '<CheckboxButtonBar checkboxes={} defaultValues={} label={} labelPosition={} required={} notValidatedText={} disableGroup={} onSetValues={} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/CheckboxButtonBar',\n component: CheckboxButtonBar,\n argTypes: {\n checkboxes: {\n table: {\n disable: true,\n },\n },\n defaultValues: {\n table: {\n disable: true,\n },\n },\n label: {\n control: 'text',\n },\n labelPosition: {\n control: 'radio',\n options: ['top', 'left'],\n },\n required: {\n control: 'boolean',\n },\n notValidatedText: {\n control: 'text',\n },\n disableGroup: {\n control: 'boolean',\n },\n actAsRadioButtonBar: {\n control: 'boolean',\n },\n onSetValues: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: CheckboxButtonBar,\n codeString: codeString,\n },\n} as Meta<CheckboxButtonBarProps>;\n\nconst Template: StoryFn<CheckboxButtonBarProps> = (args) => <CheckboxButtonBar {...args} />;\n\nexport const CheckboxButtonBarExample = Template.bind({});\nCheckboxButtonBarExample.args = {\n label: 'Periode',\n required: true,\n checkboxes: [\n {\n label: '1.1',\n value: '1',\n },\n {\n label: '1.2',\n value: '2',\n },\n {\n label: '1.3',\n value: '3',\n },\n {\n label: '4',\n value: '4',\n },\n {\n label: '5',\n value: '5',\n },\n {\n label: '6',\n value: '6',\n },\n ],\n defaultValues: ['1', '2'],\n labelPosition: 'top',\n footerText: 'Weken in periode 2',\n onSetValues: fn(),\n};\n\nexport const CheckboxButtonBarAsRadioButtonBar = Template.bind({});\nCheckboxButtonBarAsRadioButtonBar.args = {\n label: 'Weken',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n },\n {\n label: '2',\n value: '2',\n },\n {\n label: '3',\n value: '3',\n },\n {\n label: '4',\n value: '4',\n },\n {\n label: '5',\n value: '5',\n },\n {\n label: '6',\n value: '6',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: true,\n onSetValues: fn(),\n};\n\nexport const CheckboxButtonBarWithPrefix = Template.bind({});\nCheckboxButtonBarWithPrefix.args = {\n label: 'Weken',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n prefix: '13',\n },\n {\n label: '2',\n value: '2',\n prefix: '14',\n },\n {\n label: '3',\n value: '3',\n prefix: '15',\n },\n {\n label: '4',\n value: '4',\n prefix: '16',\n },\n {\n label: '5',\n value: '5',\n prefix: '17',\n },\n {\n label: '6',\n value: '6',\n prefix: '18',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n onSetValues: fn(),\n};\n\nexport const CheckboxButtonBarWithTooltip = Template.bind({});\nCheckboxButtonBarWithTooltip.args = {\n label: 'Weken',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n prefix: '36',\n tooltip: (\n <>\n 1 sept - 5 sept\n <br />\n 2025\n </>\n ),\n tooltipPosition: 'left',\n },\n {\n label: '2',\n value: '2',\n prefix: '37',\n tooltip: (\n <>\n 8 sept - 12 sept\n <br />\n 2025\n </>\n ),\n },\n {\n label: '3',\n value: '3',\n prefix: '38',\n tooltip: (\n <>\n 15 sept - 19 sept\n <br />\n 2025\n </>\n ),\n },\n {\n label: '4',\n value: '4',\n prefix: '39',\n tooltip: (\n <>\n 22 sept - 26 sept\n <br />\n 2025\n </>\n ),\n },\n {\n label: '5',\n value: '5',\n prefix: '40',\n tooltip: (\n <>\n 29 sept - 3 okt\n <br />\n 2025\n </>\n ),\n },\n {\n label: '6',\n value: '6',\n prefix: '41',\n tooltip: (\n <>\n 6 okt - 10 okt\n <br />\n 2025\n </>\n ),\n },\n {\n label: '7',\n value: '7',\n prefix: '42',\n tooltip: (\n <>\n 13 okt - 17 okt\n <br />\n 2025\n </>\n ),\n },\n {\n label: '8',\n value: '8',\n prefix: '43',\n tooltip: (\n <>\n 20 okt - 24 okt\n <br />\n 2025\n </>\n ),\n tooltipPosition: 'right',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n onSetValues: fn(),\n};\n"],"names":["codeString","CheckboxButtonBar_stories","CheckboxButtonBar","Template","args","jsx","CheckboxButtonBarExample","fn","CheckboxButtonBarA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,GAAA,EAAE,UAAA;AAAA,QAAA;AAAA,0BAEC,MAAA,EAAG;AAAA,QAAE;AAAA,MAAA,EAAA,CAER;AAAA,IAAA;AAAA,IAGJ;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,SACE,gBAAAD,EAAAC,GAAA,EAAE,UAAA;AAAA,QAAA;AAAA,0BAEC,MAAA,EAAG;AAAA,QAAE;AAAA,MAAA,EAAA,CAER;AAAA,IAAA;AAAA,IAGJ;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,SACE,gBAAAD,EAAAC,GAAA,EAAE,UAAA;AAAA,QAAA;AAAA,0BAEC,MAAA,EAAG;AAAA,QAAE;AAAA,MAAA,EAAA,CAER;AAAA,IAAA;AAAA,IAGJ;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,SACE,gBAAAD,EAAAC,GAAA,EAAE,UAAA;AAAA,QAAA;AAAA,0BAEC,MAAA,EAAG;AAAA,QAAE;AAAA,MAAA,GAER;AAAA,MAEF,iBAAiB;AAAA,IAAA;AAAA,EACnB;AAAA,EAEF,eAAe,CAAC,GAAG;AAAA,EACnB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,aAAaL,EAAA;AACf;"}
|
|
1
|
+
{"version":3,"file":"CheckboxButtonBar.stories.js","sources":["../../../src/components/CheckboxButtonBar/CheckboxButtonBar.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { CheckboxButtonBarProps } from './CheckboxButtonBar';\n\nimport { CheckboxButtonBar } from './CheckboxButtonBar';\n\nconst codeString =\n '<CheckboxButtonBar checkboxes={} defaultValues={} label={} labelPosition={} required={} notValidatedText={} disableGroup={} onSetValues={} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/CheckboxButtonBar',\n component: CheckboxButtonBar,\n argTypes: {\n checkboxes: {\n table: {\n disable: true,\n },\n },\n defaultValues: {\n table: {\n disable: true,\n },\n },\n label: {\n control: 'text',\n },\n labelPosition: {\n control: 'radio',\n options: ['top', 'left'],\n },\n required: {\n control: 'boolean',\n },\n notValidatedText: {\n control: 'text',\n },\n disableGroup: {\n control: 'boolean',\n },\n actAsRadioButtonBar: {\n control: 'boolean',\n },\n onSetValues: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: CheckboxButtonBar,\n codeString: codeString,\n },\n} as Meta<CheckboxButtonBarProps>;\n\nconst Template: StoryFn<CheckboxButtonBarProps> = (args) => <CheckboxButtonBar {...args} />;\n\nexport const CheckboxButtonBarExample = Template.bind({});\nCheckboxButtonBarExample.args = {\n label: 'Periode',\n required: true,\n checkboxes: [\n {\n label: '1.1',\n value: '1',\n },\n {\n label: '1.2',\n value: '2',\n },\n {\n label: '1.3',\n value: '3',\n },\n {\n label: '4',\n value: '4',\n },\n {\n label: '5',\n value: '5',\n },\n {\n label: '6',\n value: '6',\n },\n ],\n defaultValues: ['1', '2'],\n labelPosition: 'top',\n footerText: 'Weken in periode 2',\n onSetValues: fn(),\n};\n\nexport const AsRadioButtonBar = Template.bind({});\nAsRadioButtonBar.args = {\n label: 'Weken',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n },\n {\n label: '2',\n value: '2',\n },\n {\n label: '3',\n value: '3',\n },\n {\n label: '4',\n value: '4',\n },\n {\n label: '5',\n value: '5',\n },\n {\n label: '6',\n value: '6',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: true,\n onSetValues: fn(),\n};\n\nexport const WithPrefix = Template.bind({});\nWithPrefix.args = {\n label: 'Weken',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n prefix: '13',\n },\n {\n label: '2',\n value: '2',\n prefix: '14',\n },\n {\n label: '3',\n value: '3',\n prefix: '15',\n },\n {\n label: '4',\n value: '4',\n prefix: '16',\n },\n {\n label: '5',\n value: '5',\n prefix: '17',\n },\n {\n label: '6',\n value: '6',\n prefix: '18',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n onSetValues: fn(),\n};\n\nexport const WithTooltip = Template.bind({});\nWithTooltip.args = {\n label: 'Weken',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n prefix: '36',\n tooltip: (\n <>\n 1 sept - 5 sept\n <br />\n 2025\n </>\n ),\n tooltipPosition: 'left',\n },\n {\n label: '2',\n value: '2',\n prefix: '37',\n tooltip: (\n <>\n 8 sept - 12 sept\n <br />\n 2025\n </>\n ),\n },\n {\n label: '3',\n value: '3',\n prefix: '38',\n tooltip: (\n <>\n 15 sept - 19 sept\n <br />\n 2025\n </>\n ),\n },\n {\n label: '4',\n value: '4',\n prefix: '39',\n tooltip: (\n <>\n 22 sept - 26 sept\n <br />\n 2025\n </>\n ),\n },\n {\n label: '5',\n value: '5',\n prefix: '40',\n tooltip: (\n <>\n 29 sept - 3 okt\n <br />\n 2025\n </>\n ),\n },\n {\n label: '6',\n value: '6',\n prefix: '41',\n tooltip: (\n <>\n 6 okt - 10 okt\n <br />\n 2025\n </>\n ),\n },\n {\n label: '7',\n value: '7',\n prefix: '42',\n tooltip: (\n <>\n 13 okt - 17 okt\n <br />\n 2025\n </>\n ),\n },\n {\n label: '8',\n value: '8',\n prefix: '43',\n tooltip: (\n <>\n 20 okt - 24 okt\n <br />\n 2025\n </>\n ),\n tooltipPosition: 'right',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n onSetValues: fn(),\n};\n\nexport const Segmented = Template.bind({});\nSegmented.args = {\n label: 'Year(s)',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n tooltip: <>2023 - 2024</>,\n tooltipPosition: 'left',\n },\n {\n label: '2',\n value: '2',\n tooltip: <>2025 - 2026</>,\n },\n {\n label: '3',\n value: '3',\n tooltip: <>2026 - 2027</>,\n },\n {\n label: '4',\n value: '4',\n tooltip: <>2027 - 2028</>,\n tooltipPosition: 'right',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n segmented: true,\n onSetValues: fn(),\n};\n"],"names":["codeString","CheckboxButtonBar_stories","CheckboxButtonBar","Template","args","jsx","CheckboxButtonBarExample","fn","AsRadioButtonBar","WithPrefix","WithTooltip","jsxs","Fragment","Segmented"],"mappings":";;;AAOA,MAAMA,IACJ,iJAGFC,IAAe;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,YAAY;AAAA,MACV,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IACX;AAAA,IAEF,eAAe;AAAA,MACb,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IACX;AAAA,IAEF,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,eAAe;AAAA,MACb,SAAS;AAAA,MACT,SAAS,CAAC,OAAO,MAAM;AAAA,IAAA;AAAA,IAEzB,UAAU;AAAA,MACR,SAAS;AAAA,IAAA;AAAA,IAEX,kBAAkB;AAAA,MAChB,SAAS;AAAA,IAAA;AAAA,IAEX,cAAc;AAAA,MACZ,SAAS;AAAA,IAAA;AAAA,IAEX,qBAAqB;AAAA,MACnB,SAAS;AAAA,IAAA;AAAA,IAEX,aAAa;AAAA,MACX,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IACX;AAAA,EACF;AAAA,EAEF,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EAAA;AAEJ,GAEMG,IAA4C,CAACC,MAAS,gBAAAC,EAACH,GAAA,EAAmB,GAAGE,GAAM,GAE5EE,IAA2BH,EAAS,KAAK,CAAA,CAAE;AACxDG,EAAyB,OAAO;AAAA,EAC9B,OAAO;AAAA,EACP,UAAU;AAAA,EACV,YAAY;AAAA,IACV;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,IAAA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AAA,IAAA;AAAA,IAEnB;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,gCAAW,UAAA,cAAA,CAAW;AAAA,IAAA;AAAA,IAExB;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,gCAAW,UAAA,cAAA,CAAW;AAAA,IAAA;AAAA,IAExB;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,gCAAW,UAAA,cAAA,CAAW;AAAA,MACtB,iBAAiB;AAAA,IAAA;AAAA,EACnB;AAAA,EAEF,eAAe,CAAC,GAAG;AAAA,EACnB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,WAAW;AAAA,EACX,aAAaN,EAAA;AACf;"}
|
|
@@ -18,7 +18,7 @@ import "../IconButton/IconButton.js";
|
|
|
18
18
|
import "../Input/Input.js";
|
|
19
19
|
import "../InputField/InputField.js";
|
|
20
20
|
import "react-router";
|
|
21
|
-
import "../../TablePlugin-
|
|
21
|
+
import "../../TablePlugin-DaKDRL4G.js";
|
|
22
22
|
import "../RteEditor/Providers/LanguageProvider.js";
|
|
23
23
|
import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
|
|
24
24
|
import "../RteEditor/hooks/components/Flyout.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { s as T, l as C } from "../../index-
|
|
3
|
-
import { G as v, _ as w } from "../../index-
|
|
2
|
+
import { s as T, l as C } from "../../index-DvUwfXNb.js";
|
|
3
|
+
import { G as v, _ as w } from "../../index-BfMTX2kB.js";
|
|
4
4
|
import { useState as R } from "react";
|
|
5
5
|
import { CheckboxTree as b } from "./CheckboxTree.js";
|
|
6
6
|
import { Chip as S } from "../Chip/Chip.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { l as t } from "../../index-
|
|
2
|
+
import { l as t } from "../../index-DvUwfXNb.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",
|
|
@@ -4,7 +4,7 @@ export interface ControlsButtonProps {
|
|
|
4
4
|
/** to set type/behaviour of input radio or checkbox */
|
|
5
5
|
type?: 'radio' | 'checkbox';
|
|
6
6
|
/** button label */
|
|
7
|
-
label: string;
|
|
7
|
+
label: string | ReactNode;
|
|
8
8
|
/** button value */
|
|
9
9
|
value: string;
|
|
10
10
|
/** set if icon is needed in font of label */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useId as
|
|
3
|
-
import { c as
|
|
4
|
-
import { Icon as
|
|
1
|
+
import { jsxs as c, Fragment as g, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useId as I } from "react";
|
|
3
|
+
import { c as b } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { Icon as $ } from "../Icon/Icon.js";
|
|
5
5
|
import '../../assets/ControlsButton.css';const t = {
|
|
6
6
|
"controls-input": "_controls-input_lu12f_1",
|
|
7
7
|
"controls-button": "_controls-button_lu12f_32",
|
|
@@ -14,13 +14,13 @@ import '../../assets/ControlsButton.css';const t = {
|
|
|
14
14
|
"controls-button__tooltip--left": "_controls-button__tooltip--left_lu12f_98",
|
|
15
15
|
"controls-button__tooltip--center": "_controls-button__tooltip--center_lu12f_102",
|
|
16
16
|
"controls-button__tooltip--right": "_controls-button__tooltip--right_lu12f_107"
|
|
17
|
-
},
|
|
18
|
-
type:
|
|
19
|
-
label:
|
|
20
|
-
value:
|
|
21
|
-
iconName:
|
|
17
|
+
}, z = ({
|
|
18
|
+
type: p = "checkbox",
|
|
19
|
+
label: n,
|
|
20
|
+
value: i,
|
|
21
|
+
iconName: r,
|
|
22
22
|
prefix: l,
|
|
23
|
-
tooltip:
|
|
23
|
+
tooltip: s,
|
|
24
24
|
tooltipPosition: a = "center",
|
|
25
25
|
name: f,
|
|
26
26
|
forceSquared: d = !1,
|
|
@@ -28,44 +28,44 @@ import '../../assets/ControlsButton.css';const t = {
|
|
|
28
28
|
disabled: m,
|
|
29
29
|
onSetValue: x
|
|
30
30
|
}) => {
|
|
31
|
-
const w =
|
|
32
|
-
return /* @__PURE__ */
|
|
31
|
+
const w = I(), u = (typeof n == "string" ? n : i).replace(/\s+/g, "_"), _ = `${w}${u}`, e = `${_}-tooltip`;
|
|
32
|
+
return /* @__PURE__ */ c(g, { children: [
|
|
33
33
|
/* @__PURE__ */ o(
|
|
34
34
|
"input",
|
|
35
35
|
{
|
|
36
|
-
type:
|
|
36
|
+
type: p,
|
|
37
37
|
id: _,
|
|
38
|
-
name: f ??
|
|
38
|
+
name: f ?? u,
|
|
39
39
|
disabled: m,
|
|
40
|
-
value:
|
|
40
|
+
value: i,
|
|
41
41
|
checked: h,
|
|
42
42
|
onChange: x,
|
|
43
43
|
className: t["controls-input"],
|
|
44
|
-
"aria-describedby":
|
|
44
|
+
"aria-describedby": s ? e : void 0
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ c(
|
|
48
48
|
"label",
|
|
49
49
|
{
|
|
50
50
|
htmlFor: _,
|
|
51
|
-
className:
|
|
51
|
+
className: b(t["controls-button"], [
|
|
52
52
|
d && t["controls-button--squared"],
|
|
53
53
|
l && t["controls-button--with-prefix"],
|
|
54
|
-
|
|
54
|
+
r && t["controls-button--with-icon"]
|
|
55
55
|
]),
|
|
56
56
|
children: [
|
|
57
|
-
|
|
58
|
-
/* @__PURE__ */
|
|
57
|
+
r && /* @__PURE__ */ o($, { name: r, size: 20 }),
|
|
58
|
+
/* @__PURE__ */ c("div", { className: t["controls-button__wrapper"], children: [
|
|
59
59
|
l && /* @__PURE__ */ o("div", { className: t["controls-button__prefix"], children: l }),
|
|
60
|
-
|
|
60
|
+
n
|
|
61
61
|
] }),
|
|
62
|
-
|
|
62
|
+
s && /* @__PURE__ */ o(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
|
-
id:
|
|
65
|
+
id: e,
|
|
66
66
|
role: "tooltip",
|
|
67
|
-
className:
|
|
68
|
-
children:
|
|
67
|
+
className: b(t["controls-button__tooltip"], t[`controls-button__tooltip--${a}`]),
|
|
68
|
+
children: s
|
|
69
69
|
}
|
|
70
70
|
)
|
|
71
71
|
]
|
|
@@ -74,6 +74,6 @@ import '../../assets/ControlsButton.css';const t = {
|
|
|
74
74
|
] });
|
|
75
75
|
};
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
z as ControlsButton
|
|
78
78
|
};
|
|
79
79
|
//# sourceMappingURL=ControlsButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlsButton.js","sources":["../../../src/components/ControlsButton/ControlsButton.tsx"],"sourcesContent":["import { useId } from 'react';\r\nimport { clsx } from 'clsx';\r\n\r\nimport type { ChangeEvent, ReactNode } from 'react';\r\nimport type { IconProps } from 'components/Icon';\r\n\r\nimport styles from './ControlsButton.module.css';\r\n\r\nimport { Icon } from 'components/Icon';\r\n\r\nexport interface ControlsButtonProps {\r\n /** to set type/behaviour of input radio or checkbox */\r\n type?: 'radio' | 'checkbox';\r\n /** button label */\r\n label: string;\r\n /** button value */\r\n value: string;\r\n /** set if icon is needed in font of label */\r\n iconName?: IconProps['name'];\r\n /** set if prefix is needed above of label */\r\n prefix?: string;\r\n /** set tooltip */\r\n tooltip?: ReactNode;\r\n /** set horizontal position of the tooltip */\r\n tooltipPosition?: 'left' | 'center' | 'right';\r\n /** set if used as radiogroup */\r\n name?: string;\r\n /** `true` to set squared button; otherwise, `false`. The default is `false`. Note: hides icon */\r\n forceSquared?: boolean;\r\n /** to set default status */\r\n checked?: boolean;\r\n /** `true` to disable the button; otherwise, `false`. The default is `false`. */\r\n disabled?: boolean;\r\n /** The callback function that is invoked when the radio button changes value. */\r\n onSetValue: (event: ChangeEvent<HTMLInputElement>) => void;\r\n}\r\n\r\nexport const ControlsButton = ({\r\n type = 'checkbox',\r\n label,\r\n value,\r\n iconName,\r\n prefix,\r\n tooltip,\r\n tooltipPosition = 'center',\r\n name,\r\n forceSquared = false,\r\n checked,\r\n disabled,\r\n onSetValue,\r\n}: ControlsButtonProps) => {\r\n const idPrefix = useId();\r\n const sanitizedLabel =
|
|
1
|
+
{"version":3,"file":"ControlsButton.js","sources":["../../../src/components/ControlsButton/ControlsButton.tsx"],"sourcesContent":["import { useId } from 'react';\r\nimport { clsx } from 'clsx';\r\n\r\nimport type { ChangeEvent, ReactNode } from 'react';\r\nimport type { IconProps } from 'components/Icon';\r\n\r\nimport styles from './ControlsButton.module.css';\r\n\r\nimport { Icon } from 'components/Icon';\r\n\r\nexport interface ControlsButtonProps {\r\n /** to set type/behaviour of input radio or checkbox */\r\n type?: 'radio' | 'checkbox';\r\n /** button label */\r\n label: string | ReactNode;\r\n /** button value */\r\n value: string;\r\n /** set if icon is needed in font of label */\r\n iconName?: IconProps['name'];\r\n /** set if prefix is needed above of label */\r\n prefix?: string;\r\n /** set tooltip */\r\n tooltip?: ReactNode;\r\n /** set horizontal position of the tooltip */\r\n tooltipPosition?: 'left' | 'center' | 'right';\r\n /** set if used as radiogroup */\r\n name?: string;\r\n /** `true` to set squared button; otherwise, `false`. The default is `false`. Note: hides icon */\r\n forceSquared?: boolean;\r\n /** to set default status */\r\n checked?: boolean;\r\n /** `true` to disable the button; otherwise, `false`. The default is `false`. */\r\n disabled?: boolean;\r\n /** The callback function that is invoked when the radio button changes value. */\r\n onSetValue: (event: ChangeEvent<HTMLInputElement>) => void;\r\n}\r\n\r\nexport const ControlsButton = ({\r\n type = 'checkbox',\r\n label,\r\n value,\r\n iconName,\r\n prefix,\r\n tooltip,\r\n tooltipPosition = 'center',\r\n name,\r\n forceSquared = false,\r\n checked,\r\n disabled,\r\n onSetValue,\r\n}: ControlsButtonProps) => {\r\n const idPrefix = useId();\r\n const labelString = typeof label === 'string' ? label : value;\r\n const sanitizedLabel = labelString.replace(/\\s+/g, '_');\r\n const baseId = `${idPrefix}${sanitizedLabel}`;\r\n const tooltipId = `${baseId}-tooltip`;\r\n\r\n return (\r\n <>\r\n <input\r\n type={type}\r\n id={baseId}\r\n name={name ?? sanitizedLabel}\r\n disabled={disabled}\r\n value={value}\r\n checked={checked}\r\n onChange={onSetValue}\r\n className={styles['controls-input']}\r\n aria-describedby={tooltip ? tooltipId : undefined}\r\n />\r\n <label\r\n htmlFor={baseId}\r\n className={clsx(styles['controls-button'], [\r\n forceSquared && styles['controls-button--squared'],\r\n prefix && styles['controls-button--with-prefix'],\r\n iconName && styles['controls-button--with-icon'],\r\n ])}\r\n >\r\n {iconName && <Icon name={iconName} size={20} />}\r\n <div className={styles['controls-button__wrapper']}>\r\n {prefix && <div className={styles['controls-button__prefix']}>{prefix}</div>}\r\n {label}\r\n </div>\r\n {tooltip && (\r\n <div\r\n id={tooltipId}\r\n role=\"tooltip\"\r\n className={clsx(styles['controls-button__tooltip'], styles[`controls-button__tooltip--${tooltipPosition}`])}\r\n >\r\n {tooltip}\r\n </div>\r\n )}\r\n </label>\r\n </>\r\n );\r\n};\r\n"],"names":["ControlsButton","type","label","value","iconName","prefix","tooltip","tooltipPosition","name","forceSquared","checked","disabled","onSetValue","idPrefix","useId","sanitizedLabel","baseId","tooltipId","jsxs","Fragment","jsx","styles","clsx","Icon"],"mappings":";;;;;;;;;;;;;;;;GAqCaA,IAAiB,CAAC;AAAA,EAC7B,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,MAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AACF,MAA2B;AACzB,QAAMC,IAAWC,EAAA,GAEXC,KADc,OAAOb,KAAU,WAAWA,I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declare const ControlsButtonExample: import('storybook/internal/csf').Ann
|
|
|
6
6
|
export declare const WithPrefix: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ControlsButtonProps>;
|
|
7
7
|
export declare const WithIcon: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ControlsButtonProps>;
|
|
8
8
|
export declare const WithTooltip: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ControlsButtonProps>;
|
|
9
|
+
export declare const WithComplexLabel: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ControlsButtonProps>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { l as
|
|
1
|
+
import { jsx as r, jsxs as l, Fragment as s } from "react/jsx-runtime";
|
|
2
|
+
import { l as e } from "../../index-DvUwfXNb.js";
|
|
3
3
|
import { ControlsButton as t } from "./ControlsButton.js";
|
|
4
|
-
import { Icons as
|
|
5
|
-
|
|
4
|
+
import { Icons as a } from "../Icon/icons/index.js";
|
|
5
|
+
import { Periods as i } from "../Periods/Periods.js";
|
|
6
|
+
const c = Object.keys(a), m = "<ControlsButton type={radio or checkbox} label={} value={} prefix={} tooltip={} forceSquared={}isChecked={} variant={} disabled={} notValid={} onSetValue={} key={} />", C = {
|
|
6
7
|
title: "Atoms/ControlsButton",
|
|
7
8
|
component: t,
|
|
8
9
|
argTypes: {
|
|
@@ -14,7 +15,7 @@ const i = Object.keys(c), s = "<ControlsButton type={radio or checkbox} label={}
|
|
|
14
15
|
},
|
|
15
16
|
iconName: {
|
|
16
17
|
control: { type: "select" },
|
|
17
|
-
options:
|
|
18
|
+
options: c
|
|
18
19
|
},
|
|
19
20
|
forceSquared: {
|
|
20
21
|
control: "boolean"
|
|
@@ -33,51 +34,95 @@ const i = Object.keys(c), s = "<ControlsButton type={radio or checkbox} label={}
|
|
|
33
34
|
},
|
|
34
35
|
parameters: {
|
|
35
36
|
inspectComponent: t,
|
|
36
|
-
codeString:
|
|
37
|
+
codeString: m
|
|
37
38
|
}
|
|
38
|
-
},
|
|
39
|
-
|
|
39
|
+
}, o = (n) => /* @__PURE__ */ r(t, { ...n }), b = o.bind({});
|
|
40
|
+
b.args = {
|
|
40
41
|
type: "checkbox",
|
|
41
42
|
label: "1.2",
|
|
42
43
|
value: "1.2",
|
|
43
44
|
forceSquared: !0,
|
|
44
|
-
onSetValue:
|
|
45
|
+
onSetValue: e()
|
|
45
46
|
};
|
|
46
|
-
const
|
|
47
|
-
|
|
47
|
+
const p = o.bind({});
|
|
48
|
+
p.args = {
|
|
48
49
|
type: "checkbox",
|
|
49
50
|
label: "1.3",
|
|
50
51
|
value: "1.3",
|
|
51
52
|
prefix: "13",
|
|
52
|
-
onSetValue:
|
|
53
|
+
onSetValue: e()
|
|
53
54
|
};
|
|
54
|
-
const
|
|
55
|
-
|
|
55
|
+
const d = o.bind({});
|
|
56
|
+
d.args = {
|
|
56
57
|
type: "checkbox",
|
|
57
58
|
label: "2.1",
|
|
58
59
|
value: "2.1",
|
|
59
60
|
iconName: "AcademicCap",
|
|
60
|
-
onSetValue:
|
|
61
|
+
onSetValue: e()
|
|
61
62
|
};
|
|
62
|
-
const
|
|
63
|
-
|
|
63
|
+
const u = o.bind({});
|
|
64
|
+
u.args = {
|
|
64
65
|
type: "checkbox",
|
|
65
66
|
label: "5",
|
|
66
67
|
value: "5",
|
|
67
68
|
prefix: "40",
|
|
68
|
-
tooltip: /* @__PURE__ */
|
|
69
|
+
tooltip: /* @__PURE__ */ l(s, { children: [
|
|
69
70
|
"15 dec - 19 dec",
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ r("br", {}),
|
|
71
72
|
"2025"
|
|
72
73
|
] }),
|
|
73
74
|
tooltipPosition: "center",
|
|
74
|
-
onSetValue:
|
|
75
|
+
onSetValue: e()
|
|
76
|
+
};
|
|
77
|
+
const x = o.bind({});
|
|
78
|
+
x.args = {
|
|
79
|
+
type: "checkbox",
|
|
80
|
+
label: /* @__PURE__ */ r(
|
|
81
|
+
i,
|
|
82
|
+
{
|
|
83
|
+
periods: [
|
|
84
|
+
{
|
|
85
|
+
id: "2023P1",
|
|
86
|
+
number: 1,
|
|
87
|
+
semesterNumber: 1,
|
|
88
|
+
periodInSemester: 1
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: "2023P2",
|
|
92
|
+
number: 2,
|
|
93
|
+
semesterNumber: 1,
|
|
94
|
+
periodInSemester: 2
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: "2023P3",
|
|
98
|
+
number: 3,
|
|
99
|
+
semesterNumber: 1,
|
|
100
|
+
periodInSemester: 3
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: "2023P5",
|
|
104
|
+
number: 5,
|
|
105
|
+
semesterNumber: 2,
|
|
106
|
+
periodInSemester: 2
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
id: "2023P7",
|
|
110
|
+
number: 7,
|
|
111
|
+
semesterNumber: 3,
|
|
112
|
+
periodInSemester: 1
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
value: "5",
|
|
118
|
+
onSetValue: e()
|
|
75
119
|
};
|
|
76
120
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
121
|
+
b as ControlsButtonExample,
|
|
122
|
+
x as WithComplexLabel,
|
|
123
|
+
d as WithIcon,
|
|
124
|
+
p as WithPrefix,
|
|
125
|
+
u as WithTooltip,
|
|
126
|
+
C as default
|
|
82
127
|
};
|
|
83
128
|
//# sourceMappingURL=ControlsButton.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlsButton.stories.js","sources":["../../../src/components/ControlsButton/ControlsButton.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\r\n\r\nimport type { Meta, StoryFn } from '@storybook/react';\r\nimport type { ControlsButtonProps } from './ControlsButton';\r\n\r\nimport { ControlsButton } from './ControlsButton';\r\n\r\nimport { Icons } from 'components/Icon/icons';\r\n\r\nconst iconNames = Object.keys(Icons) as (keyof typeof Icons)[];\r\n\r\nconst codeString =\r\n '<ControlsButton type={radio or checkbox} label={} value={} prefix={} tooltip={} forceSquared={}isChecked={} variant={} disabled={} notValid={} onSetValue={} key={} />';\r\n\r\n// eslint-disable-next-line import/no-default-export\r\nexport default {\r\n title: 'Atoms/ControlsButton',\r\n component: ControlsButton,\r\n argTypes: {\r\n label: {\r\n control: 'text',\r\n },\r\n value: {\r\n control: 'string',\r\n },\r\n iconName: {\r\n control: { type: 'select' },\r\n options: iconNames,\r\n },\r\n forceSquared: {\r\n control: 'boolean',\r\n },\r\n isChecked: {\r\n control: 'boolean',\r\n },\r\n disabled: {\r\n control: 'boolean',\r\n },\r\n onSetValue: {\r\n table: {\r\n disable: true,\r\n },\r\n },\r\n },\r\n parameters: {\r\n inspectComponent: ControlsButton,\r\n codeString: codeString,\r\n },\r\n} as Meta<ControlsButtonProps>;\r\n\r\nconst Template: StoryFn<ControlsButtonProps> = (args) => <ControlsButton {...args} />;\r\n\r\nexport const ControlsButtonExample = Template.bind({});\r\nControlsButtonExample.args = {\r\n type: 'checkbox',\r\n label: '1.2',\r\n value: '1.2',\r\n forceSquared: true,\r\n onSetValue: fn(),\r\n};\r\n\r\nexport const WithPrefix = Template.bind({});\r\nWithPrefix.args = {\r\n type: 'checkbox',\r\n label: '1.3',\r\n value: '1.3',\r\n prefix: '13',\r\n onSetValue: fn(),\r\n};\r\n\r\nexport const WithIcon = Template.bind({});\r\nWithIcon.args = {\r\n type: 'checkbox',\r\n label: '2.1',\r\n value: '2.1',\r\n iconName: 'AcademicCap',\r\n onSetValue: fn(),\r\n};\r\n\r\nexport const WithTooltip = Template.bind({});\r\nWithTooltip.args = {\r\n type: 'checkbox',\r\n label: '5',\r\n value: '5',\r\n prefix: '40',\r\n tooltip: (\r\n <>\r\n 15 dec - 19 dec\r\n <br />\r\n 2025\r\n </>\r\n ),\r\n tooltipPosition: 'center',\r\n onSetValue: fn(),\r\n};\r\n"],"names":["iconNames","Icons","codeString","ControlsButton_stories","ControlsButton","Template","args","jsx","ControlsButtonExample","fn","WithPrefix","WithIcon","WithTooltip","jsxs","Fragment"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ControlsButton.stories.js","sources":["../../../src/components/ControlsButton/ControlsButton.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\r\n\r\nimport type { Meta, StoryFn } from '@storybook/react';\r\nimport type { ControlsButtonProps } from './ControlsButton';\r\n\r\nimport { ControlsButton } from './ControlsButton';\r\n\r\nimport { Icons } from 'components/Icon/icons';\r\nimport { Periods } from 'components/Periods';\r\n\r\nconst iconNames = Object.keys(Icons) as (keyof typeof Icons)[];\r\n\r\nconst codeString =\r\n '<ControlsButton type={radio or checkbox} label={} value={} prefix={} tooltip={} forceSquared={}isChecked={} variant={} disabled={} notValid={} onSetValue={} key={} />';\r\n\r\n// eslint-disable-next-line import/no-default-export\r\nexport default {\r\n title: 'Atoms/ControlsButton',\r\n component: ControlsButton,\r\n argTypes: {\r\n label: {\r\n control: 'text',\r\n },\r\n value: {\r\n control: 'string',\r\n },\r\n iconName: {\r\n control: { type: 'select' },\r\n options: iconNames,\r\n },\r\n forceSquared: {\r\n control: 'boolean',\r\n },\r\n isChecked: {\r\n control: 'boolean',\r\n },\r\n disabled: {\r\n control: 'boolean',\r\n },\r\n onSetValue: {\r\n table: {\r\n disable: true,\r\n },\r\n },\r\n },\r\n parameters: {\r\n inspectComponent: ControlsButton,\r\n codeString: codeString,\r\n },\r\n} as Meta<ControlsButtonProps>;\r\n\r\nconst Template: StoryFn<ControlsButtonProps> = (args) => <ControlsButton {...args} />;\r\n\r\nexport const ControlsButtonExample = Template.bind({});\r\nControlsButtonExample.args = {\r\n type: 'checkbox',\r\n label: '1.2',\r\n value: '1.2',\r\n forceSquared: true,\r\n onSetValue: fn(),\r\n};\r\n\r\nexport const WithPrefix = Template.bind({});\r\nWithPrefix.args = {\r\n type: 'checkbox',\r\n label: '1.3',\r\n value: '1.3',\r\n prefix: '13',\r\n onSetValue: fn(),\r\n};\r\n\r\nexport const WithIcon = Template.bind({});\r\nWithIcon.args = {\r\n type: 'checkbox',\r\n label: '2.1',\r\n value: '2.1',\r\n iconName: 'AcademicCap',\r\n onSetValue: fn(),\r\n};\r\n\r\nexport const WithTooltip = Template.bind({});\r\nWithTooltip.args = {\r\n type: 'checkbox',\r\n label: '5',\r\n value: '5',\r\n prefix: '40',\r\n tooltip: (\r\n <>\r\n 15 dec - 19 dec\r\n <br />\r\n 2025\r\n </>\r\n ),\r\n tooltipPosition: 'center',\r\n onSetValue: fn(),\r\n};\r\n\r\nexport const WithComplexLabel = Template.bind({});\r\nWithComplexLabel.args = {\r\n type: 'checkbox',\r\n label: (\r\n <Periods\r\n periods={[\r\n {\r\n id: '2023P1',\r\n number: 1,\r\n semesterNumber: 1,\r\n periodInSemester: 1,\r\n },\r\n {\r\n id: '2023P2',\r\n number: 2,\r\n semesterNumber: 1,\r\n periodInSemester: 2,\r\n },\r\n {\r\n id: '2023P3',\r\n number: 3,\r\n semesterNumber: 1,\r\n periodInSemester: 3,\r\n },\r\n {\r\n id: '2023P5',\r\n number: 5,\r\n semesterNumber: 2,\r\n periodInSemester: 2,\r\n },\r\n {\r\n id: '2023P7',\r\n number: 7,\r\n semesterNumber: 3,\r\n periodInSemester: 1,\r\n },\r\n ]}\r\n />\r\n ),\r\n value: '5',\r\n onSetValue: fn(),\r\n};\r\n"],"names":["iconNames","Icons","codeString","ControlsButton_stories","ControlsButton","Template","args","jsx","ControlsButtonExample","fn","WithPrefix","WithIcon","WithTooltip","jsxs","Fragment","WithComplexLabel","Periods"],"mappings":";;;;;AAUA,MAAMA,IAAY,OAAO,KAAKC,CAAK,GAE7BC,IACJ,0KAGFC,IAAe;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,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IAAA;AAAA,sBAEC,MAAA,EAAG;AAAA,IAAE;AAAA,EAAA,GAER;AAAA,EAEF,iBAAiB;AAAA,EACjB,YAAYL,EAAA;AACd;AAEO,MAAMM,IAAmBV,EAAS,KAAK,CAAA,CAAE;AAChDU,EAAiB,OAAO;AAAA,EACtB,MAAM;AAAA,EACN,OACE,gBAAAR;AAAA,IAACS;AAAA,IAAA;AAAA,MACC,SAAS;AAAA,QACP;AAAA,UACE,IAAI;AAAA,UACJ,QAAQ;AAAA,UACR,gBAAgB;AAAA,UAChB,kBAAkB;AAAA,QAAA;AAAA,QAEpB;AAAA,UACE,IAAI;AAAA,UACJ,QAAQ;AAAA,UACR,gBAAgB;AAAA,UAChB,kBAAkB;AAAA,QAAA;AAAA,QAEpB;AAAA,UACE,IAAI;AAAA,UACJ,QAAQ;AAAA,UACR,gBAAgB;AAAA,UAChB,kBAAkB;AAAA,QAAA;AAAA,QAEpB;AAAA,UACE,IAAI;AAAA,UACJ,QAAQ;AAAA,UACR,gBAAgB;AAAA,UAChB,kBAAkB;AAAA,QAAA;AAAA,QAEpB;AAAA,UACE,IAAI;AAAA,UACJ,QAAQ;AAAA,UACR,gBAAgB;AAAA,UAChB,kBAAkB;AAAA,QAAA;AAAA,MACpB;AAAA,IACF;AAAA,EAAA;AAAA,EAGJ,OAAO;AAAA,EACP,YAAYP,EAAA;AACd;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { OverlayProvider as p } from "@react-aria/overlays";
|
|
3
|
-
import { l as m } from "../../index-
|
|
3
|
+
import { l as m } from "../../index-DvUwfXNb.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";
|
|
@@ -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-DaKDRL4G.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { l as i } from "../../index-
|
|
2
|
+
import { l as i } from "../../index-DvUwfXNb.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 e } from "react/jsx-runtime";
|
|
2
|
-
import { l as r } from "../../index-
|
|
2
|
+
import { l as r } from "../../index-DvUwfXNb.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 o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useRef as g } from "react";
|
|
3
|
-
import { l } from "../../index-
|
|
3
|
+
import { l } from "../../index-DvUwfXNb.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";
|
|
@@ -17,7 +17,7 @@ import "../GridRow/GridRow.js";
|
|
|
17
17
|
import "../IconButton/IconButton.js";
|
|
18
18
|
import "../Input/Input.js";
|
|
19
19
|
import "react-router";
|
|
20
|
-
import "../../TablePlugin-
|
|
20
|
+
import "../../TablePlugin-DaKDRL4G.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { ModalProvider as n } from "@react-aria/overlays";
|
|
3
|
-
import { l as i } from "../../index-
|
|
3
|
+
import { l as i } from "../../index-DvUwfXNb.js";
|
|
4
4
|
import { ModalDialog as t } from "./ModalDialog.js";
|
|
5
5
|
import { Button as l } from "../Buttons/Button.js";
|
|
6
6
|
import "../Buttons/LinkButton.js";
|