@uva-glass/component-library 1.47.7 → 1.48.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/assets/CheckboxTree.css +1 -0
- package/dist/components/Button/Button.stories.js +9 -9
- package/dist/components/ButtonGroup/ButtonGroup.stories.js +20 -12
- package/dist/components/ButtonGroup/ButtonGroup.stories.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +13 -13
- package/dist/components/Checkbox/Checkbox.stories.js.map +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.d.ts +20 -0
- package/dist/components/CheckboxTree/CheckboxTree.js +120 -0
- package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -0
- package/dist/components/CheckboxTree/CheckboxTree.stories.d.ts +5 -0
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +74 -0
- package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -0
- package/dist/components/CheckboxTree/index.d.ts +1 -0
- package/dist/components/CheckboxTree/index.js +5 -0
- package/dist/components/CheckboxTree/index.js.map +1 -0
- package/dist/components/Drawer/Drawer.stories.js +35 -25
- package/dist/components/Drawer/Drawer.stories.js.map +1 -1
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js +9 -6
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js.map +1 -1
- package/dist/components/FeedbackBox/FeedbackBox.stories.js +10 -7
- package/dist/components/FeedbackBox/FeedbackBox.stories.js.map +1 -1
- package/dist/components/GridRow/GridRow.stories.js +26 -18
- package/dist/components/GridRow/GridRow.stories.js.map +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/MenuButton/MenuButton.stories.js +10 -10
- package/dist/components/ModalDialog/ModalDialog.stories.js +33 -25
- package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +22 -14
- package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
- package/dist/components/StatusPill/StatusPill.stories.js +9 -6
- package/dist/components/StatusPill/StatusPill.stories.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +65 -63
- package/dist/components/index.js.map +1 -1
- package/dist/index-2mUSc_Ki.js +8 -0
- package/dist/index-2mUSc_Ki.js.map +1 -0
- package/dist/{index-CuON43Qx.js → index-MQ0yPLdl.js} +89 -12
- package/dist/{index-CuON43Qx.js.map → index-MQ0yPLdl.js.map} +1 -1
- package/dist/index.js +65 -63
- package/dist/index.js.map +1 -1
- package/dist/react-18-m8Z-Ep7B.js +52 -0
- package/dist/react-18-m8Z-Ep7B.js.map +1 -0
- package/dist/storybook__react.d-fgYZl9aD.js +21053 -0
- package/dist/storybook__react.d-fgYZl9aD.js.map +1 -0
- package/dist/storybook__react.d.js +2 -0
- package/dist/storybook__react.d.js.map +1 -0
- package/package.json +18 -18
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { FeedbackBox as o } from "./FeedbackBox.js";
|
|
3
|
-
import { Container as
|
|
4
|
-
const
|
|
3
|
+
import { Container as c } from "../../storyComponents/Container/Container.js";
|
|
4
|
+
const t = "<FeedbackBox id={id} level={level} feedback={feedback} />", b = {
|
|
5
5
|
title: "Molecules/FeedbackBox",
|
|
6
|
-
component: o
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
component: o,
|
|
7
|
+
parameters: {
|
|
8
|
+
codeString: t
|
|
9
|
+
}
|
|
10
|
+
}, d = (a) => /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(o, { ...a }) }), l = d.bind({});
|
|
11
|
+
l.args = {
|
|
9
12
|
id: "gba0d2d4",
|
|
10
13
|
level: "success",
|
|
11
14
|
feedback: "Example FeedbackBox text"
|
|
12
15
|
};
|
|
13
16
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
l as FeedbackBoxExample,
|
|
18
|
+
b as default
|
|
16
19
|
};
|
|
17
20
|
//# sourceMappingURL=FeedbackBox.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedbackBox.stories.js","sources":["../../../src/components/FeedbackBox/FeedbackBox.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { FeedbackBoxProps } from './FeedbackBox';\n\nimport { FeedbackBox } from './FeedbackBox';\n\nimport { Container } from 'storyComponents/Container';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/FeedbackBox',\n component: FeedbackBox,\n} as Meta<FeedbackBoxProps>;\n\nconst Template: StoryFn<FeedbackBoxProps> = (args) => (\n <Container>\n <FeedbackBox {...args} />\n </Container>\n);\n\nexport const FeedbackBoxExample = Template.bind({});\nFeedbackBoxExample.args = {\n id: 'gba0d2d4',\n level: 'success',\n feedback: 'Example FeedbackBox text',\n};\n"],"names":["FeedbackBox_stories","FeedbackBox","Template","args","jsx","Container","FeedbackBoxExample"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"FeedbackBox.stories.js","sources":["../../../src/components/FeedbackBox/FeedbackBox.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { FeedbackBoxProps } from './FeedbackBox';\n\nimport { FeedbackBox } from './FeedbackBox';\n\nimport { Container } from 'storyComponents/Container';\n\nconst codeString = '<FeedbackBox id={id} level={level} feedback={feedback} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/FeedbackBox',\n component: FeedbackBox,\n parameters: {\n codeString,\n },\n} as Meta<FeedbackBoxProps>;\n\nconst Template: StoryFn<FeedbackBoxProps> = (args) => (\n <Container>\n <FeedbackBox {...args} />\n </Container>\n);\n\nexport const FeedbackBoxExample = Template.bind({});\nFeedbackBoxExample.args = {\n id: 'gba0d2d4',\n level: 'success',\n feedback: 'Example FeedbackBox text',\n};\n"],"names":["codeString","FeedbackBox_stories","FeedbackBox","Template","args","jsx","Container","FeedbackBoxExample"],"mappings":";;;AAOA,MAAMA,IAAa,6DAGJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,YAAY;AAAA,IACV,YAAAF;AAAA,EACF;AACF,GAEMG,IAAsC,CAACC,MAC3C,gBAAAC,EAACC,KACC,UAAC,gBAAAD,EAAAH,GAAA,EAAa,GAAGE,EAAM,CAAA,EACzB,CAAA,GAGWG,IAAqBJ,EAAS,KAAK,EAAE;AAClDI,EAAmB,OAAO;AAAA,EACxB,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,UAAU;AACZ;"}
|
|
@@ -13,7 +13,12 @@ import '../../assets/GridRow.css';const n = {
|
|
|
13
13
|
250: { "--grid-gap": "2.5rem" },
|
|
14
14
|
300: { "--grid-gap": "3rem" },
|
|
15
15
|
350: { "--grid-gap": "3.5rem" }
|
|
16
|
-
},
|
|
16
|
+
}, m = `
|
|
17
|
+
<GridRow gutter={gutter} marginTop={marginTop} marginBottom={marginBottom}>
|
|
18
|
+
// Up to 12 GridRow.Column's can be added as needed.
|
|
19
|
+
<GridRow.Column size={size} mediumSize={mediumSize} startPositon={startPositon}
|
|
20
|
+
mediumStartPosition={mediumStartPosition}> {children} </GridRow.Column> </GridRow>
|
|
21
|
+
`, p = {
|
|
17
22
|
title: "Organisms/GridRow",
|
|
18
23
|
component: e,
|
|
19
24
|
argTypes: {
|
|
@@ -29,59 +34,62 @@ import '../../assets/GridRow.css';const n = {
|
|
|
29
34
|
options: ["0", "025", "050", "075", "100", "125", "150", "175", "200", "250", "300", "350"],
|
|
30
35
|
control: { type: "select" }
|
|
31
36
|
}
|
|
37
|
+
},
|
|
38
|
+
parameters: {
|
|
39
|
+
codeString: m
|
|
32
40
|
}
|
|
33
|
-
},
|
|
34
|
-
/* @__PURE__ */ i(e, { ...
|
|
35
|
-
/* @__PURE__ */ r(e, { ...
|
|
41
|
+
}, t = (o) => /* @__PURE__ */ r("div", { className: "page-wrapper", style: o.gutter && n[o.gutter], children: [
|
|
42
|
+
/* @__PURE__ */ i(e, { ...o, children: /* @__PURE__ */ i(e.Column, { children: "Col-12" }) }),
|
|
43
|
+
/* @__PURE__ */ r(e, { ...o, children: [
|
|
36
44
|
/* @__PURE__ */ i(e.Column, { size: "1", children: "Col-1" }),
|
|
37
45
|
/* @__PURE__ */ i(e.Column, { size: "11", children: "Col-11" })
|
|
38
46
|
] }),
|
|
39
|
-
/* @__PURE__ */ r(e, { ...
|
|
47
|
+
/* @__PURE__ */ r(e, { ...o, children: [
|
|
40
48
|
/* @__PURE__ */ i(e.Column, { size: "2", children: "Col-2" }),
|
|
41
49
|
/* @__PURE__ */ i(e.Column, { size: "10", children: "Col-10" })
|
|
42
50
|
] }),
|
|
43
|
-
/* @__PURE__ */ r(e, { ...
|
|
51
|
+
/* @__PURE__ */ r(e, { ...o, children: [
|
|
44
52
|
/* @__PURE__ */ i(e.Column, { size: "3", children: "Col-3" }),
|
|
45
53
|
/* @__PURE__ */ i(e.Column, { size: "9", children: "Col-9" })
|
|
46
54
|
] }),
|
|
47
|
-
/* @__PURE__ */ r(e, { ...
|
|
55
|
+
/* @__PURE__ */ r(e, { ...o, children: [
|
|
48
56
|
/* @__PURE__ */ i(e.Column, { size: "4", children: "Col-4" }),
|
|
49
57
|
/* @__PURE__ */ i(e.Column, { size: "8", children: "Col-8" })
|
|
50
58
|
] }),
|
|
51
|
-
/* @__PURE__ */ r(e, { ...
|
|
59
|
+
/* @__PURE__ */ r(e, { ...o, children: [
|
|
52
60
|
/* @__PURE__ */ i(e.Column, { size: "5", children: "Col-5" }),
|
|
53
61
|
/* @__PURE__ */ i(e.Column, { size: "7", children: "Col-7" })
|
|
54
62
|
] }),
|
|
55
|
-
/* @__PURE__ */ r(e, { ...
|
|
63
|
+
/* @__PURE__ */ r(e, { ...o, children: [
|
|
56
64
|
/* @__PURE__ */ i(e.Column, { size: "6", children: "Col-6" }),
|
|
57
65
|
/* @__PURE__ */ i(e.Column, { size: "6", children: "Col-6" })
|
|
58
66
|
] })
|
|
59
|
-
] }),
|
|
67
|
+
] }), l = {
|
|
60
68
|
gutter: "200",
|
|
61
69
|
marginBottom: "050",
|
|
62
70
|
marginTop: "0"
|
|
63
|
-
}, d =
|
|
71
|
+
}, d = t.bind({});
|
|
64
72
|
d.args = {
|
|
65
|
-
...
|
|
73
|
+
...l
|
|
66
74
|
};
|
|
67
|
-
const
|
|
68
|
-
/* @__PURE__ */ r(e, { ...
|
|
75
|
+
const s = (o) => /* @__PURE__ */ r("div", { className: "page-wrapper", style: o.gutter && n[o.gutter], children: [
|
|
76
|
+
/* @__PURE__ */ r(e, { ...o, children: [
|
|
69
77
|
/* @__PURE__ */ i(e.Column, { size: "4", mediumSize: "6", children: "L: 4, Md: 6, S: 12" }),
|
|
70
78
|
/* @__PURE__ */ i(e.Column, { size: "4", mediumSize: "6", children: "L: 4, Md: 6, S: 12" }),
|
|
71
79
|
/* @__PURE__ */ i(e.Column, { size: "4", mediumSize: "12", children: "L: 4, Md: 12" })
|
|
72
80
|
] }),
|
|
73
|
-
/* @__PURE__ */ r(e, { ...
|
|
81
|
+
/* @__PURE__ */ r(e, { ...o, children: [
|
|
74
82
|
/* @__PURE__ */ i(e.Column, { size: "3", mediumSize: "6", children: "L: 3, Md: 6, S: 12" }),
|
|
75
83
|
/* @__PURE__ */ i(e.Column, { size: "3", mediumSize: "6", children: "L: 3, Md: 12" }),
|
|
76
84
|
/* @__PURE__ */ i(e.Column, { size: "6", mediumSize: "12", children: "L: 6, Md: 12, S: 12" })
|
|
77
85
|
] })
|
|
78
|
-
] }),
|
|
86
|
+
] }), a = s.bind({});
|
|
79
87
|
d.args = {
|
|
80
|
-
...
|
|
88
|
+
...l
|
|
81
89
|
};
|
|
82
90
|
export {
|
|
83
91
|
d as GridRowExample,
|
|
84
|
-
|
|
92
|
+
a as WithMediumBreakpoint,
|
|
85
93
|
p as default
|
|
86
94
|
};
|
|
87
95
|
//# sourceMappingURL=GridRow.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridRow.stories.js","sources":["../../../src/components/GridRow/GridRow.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { GridRowProps } from './GridRow';\nimport type { CSSProperties } from 'react';\n\nimport { GridRow } from './GridRow';\n\nimport './GridRow.stories.css';\n\nconst
|
|
1
|
+
{"version":3,"file":"GridRow.stories.js","sources":["../../../src/components/GridRow/GridRow.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { GridRowProps } from './GridRow';\nimport type { CSSProperties } from 'react';\n\nimport { GridRow } from './GridRow';\n\nimport './GridRow.stories.css';\n\nconst gapStyles = {\n '0': { '--grid-gap': '0.25rem' },\n '025': { '--grid-gap': '0.25rem' },\n '050': { '--grid-gap': '0.5rem' },\n '075': { '--grid-gap': '0.75rem' },\n '100': { '--grid-gap': '1rem' },\n '125': { '--grid-gap': '1.25rem' },\n '150': { '--grid-gap': '1.5rem' },\n '175': { '--grid-gap': '1.75rem' },\n '200': { '--grid-gap': '2rem' },\n '250': { '--grid-gap': '2.5rem' },\n '300': { '--grid-gap': '3rem' },\n '350': { '--grid-gap': '3.5rem' },\n};\n\nconst codeString = `\n <GridRow gutter={gutter} marginTop={marginTop} marginBottom={marginBottom}>\n // Up to 12 GridRow.Column's can be added as needed.\n <GridRow.Column size={size} mediumSize={mediumSize} startPositon={startPositon}\n mediumStartPosition={mediumStartPosition}> {children} </GridRow.Column> </GridRow>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/GridRow',\n component: GridRow,\n argTypes: {\n gutter: {\n options: ['0', '025', '050', '075', '100', '125', '150', '175', '200', '250', '300', '350'],\n control: { type: 'select' },\n },\n marginBottom: {\n options: ['0', '025', '050', '075', '100', '125', '150', '175', '200', '250', '300', '350'],\n control: { type: 'select' },\n },\n marginTop: {\n options: ['0', '025', '050', '075', '100', '125', '150', '175', '200', '250', '300', '350'],\n control: { type: 'select' },\n },\n },\n parameters: {\n codeString: codeString,\n },\n} as Meta<GridRowProps>;\n\nconst Template: StoryFn<GridRowProps> = (args) => (\n <div className=\"page-wrapper\" style={args.gutter && (gapStyles[args.gutter] as CSSProperties)}>\n <GridRow {...args}>\n <GridRow.Column>Col-12</GridRow.Column>\n </GridRow>\n <GridRow {...args}>\n <GridRow.Column size=\"1\">Col-1</GridRow.Column>\n <GridRow.Column size=\"11\">Col-11</GridRow.Column>\n </GridRow>\n <GridRow {...args}>\n <GridRow.Column size=\"2\">Col-2</GridRow.Column>\n <GridRow.Column size=\"10\">Col-10</GridRow.Column>\n </GridRow>\n <GridRow {...args}>\n <GridRow.Column size=\"3\">Col-3</GridRow.Column>\n <GridRow.Column size=\"9\">Col-9</GridRow.Column>\n </GridRow>\n <GridRow {...args}>\n <GridRow.Column size=\"4\">Col-4</GridRow.Column>\n <GridRow.Column size=\"8\">Col-8</GridRow.Column>\n </GridRow>\n <GridRow {...args}>\n <GridRow.Column size=\"5\">Col-5</GridRow.Column>\n <GridRow.Column size=\"7\">Col-7</GridRow.Column>\n </GridRow>\n <GridRow {...args}>\n <GridRow.Column size=\"6\">Col-6</GridRow.Column>\n <GridRow.Column size=\"6\">Col-6</GridRow.Column>\n </GridRow>\n </div>\n);\n\nconst defaultArgs: Partial<GridRowProps> = {\n gutter: '200',\n marginBottom: '050',\n marginTop: '0',\n};\n\nexport const GridRowExample = Template.bind({});\nGridRowExample.args = {\n ...defaultArgs,\n};\n\nconst TemplateMedium: StoryFn<GridRowProps> = (args) => (\n <div className=\"page-wrapper\" style={args.gutter && (gapStyles[args.gutter] as CSSProperties)}>\n <GridRow {...args}>\n <GridRow.Column size=\"4\" mediumSize=\"6\">\n L: 4, Md: 6, S: 12\n </GridRow.Column>\n <GridRow.Column size=\"4\" mediumSize=\"6\">\n L: 4, Md: 6, S: 12\n </GridRow.Column>\n <GridRow.Column size=\"4\" mediumSize=\"12\">\n L: 4, Md: 12\n </GridRow.Column>\n </GridRow>\n <GridRow {...args}>\n <GridRow.Column size=\"3\" mediumSize=\"6\">\n L: 3, Md: 6, S: 12\n </GridRow.Column>\n <GridRow.Column size=\"3\" mediumSize=\"6\">\n L: 3, Md: 12\n </GridRow.Column>\n <GridRow.Column size=\"6\" mediumSize=\"12\">\n L: 6, Md: 12, S: 12\n </GridRow.Column>\n </GridRow>\n </div>\n);\n\nexport const WithMediumBreakpoint = TemplateMedium.bind({});\nGridRowExample.args = {\n ...defaultArgs,\n};\n"],"names":["gapStyles","codeString","GridRow_stories","GridRow","Template","args","jsxs","jsx","defaultArgs","GridRowExample","TemplateMedium","WithMediumBreakpoint"],"mappings":";;AAQA,MAAMA,IAAY;AAAA,EAChB,GAAK,EAAE,cAAc,UAAU;AAAA,EAC/B,OAAO,EAAE,cAAc,UAAU;AAAA,EACjC,OAAO,EAAE,cAAc,SAAS;AAAA,EAChC,OAAO,EAAE,cAAc,UAAU;AAAA,EACjC,KAAO,EAAE,cAAc,OAAO;AAAA,EAC9B,KAAO,EAAE,cAAc,UAAU;AAAA,EACjC,KAAO,EAAE,cAAc,SAAS;AAAA,EAChC,KAAO,EAAE,cAAc,UAAU;AAAA,EACjC,KAAO,EAAE,cAAc,OAAO;AAAA,EAC9B,KAAO,EAAE,cAAc,SAAS;AAAA,EAChC,KAAO,EAAE,cAAc,OAAO;AAAA,EAC9B,KAAO,EAAE,cAAc,SAAS;AAClC,GAEMC,IAAa;AAAA;AAAA;AAAA;AAAA;AAAA,GAQJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,QAAQ;AAAA,MACN,SAAS,CAAC,KAAK,OAAO,OAAO,OAAO,OAAO,OAAO,OAAO,OAAO,OAAO,OAAO,OAAO,KAAK;AAAA,MAC1F,SAAS,EAAE,M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AAA,EAAA,GACF;AAAA,EACA,gBAAAG,EAACH,GAAS,EAAA,GAAGE,GACX,UAAA;AAAA,IAAA,gBAAAE,EAACJ,EAAQ,QAAR,EAAe,MAAK,KAAI,YAAW,KAAI,UAExC,sBAAA;AAAA,IACA,gBAAAI,EAACJ,EAAQ,QAAR,EAAe,MAAK,KAAI,YAAW,KAAI,UAExC,gBAAA;AAAA,IACA,gBAAAI,EAACJ,EAAQ,QAAR,EAAe,MAAK,KAAI,YAAW,MAAK,UAEzC,uBAAA;AAAA,EAAA,GACF;AAAA,EACF,CAAA,GAGWQ,IAAuBD,EAAe,KAAK,EAAE;AAC1DD,EAAe,OAAO;AAAA,EACpB,GAAGD;AACL;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { fn as r } from "../../index-MQ0yPLdl.js";
|
|
3
3
|
import { IconButton as n } 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 r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useRef as g } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { fn as i } from "../../index-MQ0yPLdl.js";
|
|
4
4
|
import { InputField as l } from "./InputField.js";
|
|
5
5
|
import { Container as u } from "../../storyComponents/Container/Container.js";
|
|
6
6
|
import { Icon as f } from "../Icon/Icon.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as l, Fragment as s, jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as l, Fragment as s, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { fn as c } from "../../index-MQ0yPLdl.js";
|
|
3
3
|
import { MenuButton as a } from "./MenuButton.js";
|
|
4
4
|
const d = `
|
|
5
5
|
// Has all LabelHTMLAttributes props available except "className" and "style"
|
|
@@ -16,7 +16,7 @@ const d = `
|
|
|
16
16
|
parameters: {
|
|
17
17
|
codeString: d
|
|
18
18
|
}
|
|
19
|
-
}, r = (o) => /* @__PURE__ */
|
|
19
|
+
}, r = (o) => /* @__PURE__ */ n(a, { ...o }), i = {
|
|
20
20
|
variant: "primary",
|
|
21
21
|
onClick: c()
|
|
22
22
|
}, p = r.bind({});
|
|
@@ -24,13 +24,13 @@ p.args = {
|
|
|
24
24
|
children: "Click me!",
|
|
25
25
|
...i
|
|
26
26
|
};
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
const e = r.bind({});
|
|
28
|
+
e.args = {
|
|
29
29
|
...i,
|
|
30
30
|
iconName: "EllipsisVertical"
|
|
31
31
|
};
|
|
32
|
-
|
|
33
|
-
...
|
|
32
|
+
e.argTypes = {
|
|
33
|
+
...e.argTypes,
|
|
34
34
|
children: {
|
|
35
35
|
table: {
|
|
36
36
|
disable: !0
|
|
@@ -42,8 +42,8 @@ const t = r.bind({});
|
|
|
42
42
|
t.args = {
|
|
43
43
|
...i,
|
|
44
44
|
children: /* @__PURE__ */ l(s, { children: [
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ n("div", { children: "Child 1" }),
|
|
46
|
+
/* @__PURE__ */ n("div", { children: "Child 2" })
|
|
47
47
|
] })
|
|
48
48
|
};
|
|
49
49
|
t.argTypes = {
|
|
@@ -57,7 +57,7 @@ t.argTypes = {
|
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
59
|
p as MenuButtonExample,
|
|
60
|
-
|
|
60
|
+
e as WithIconChildren,
|
|
61
61
|
t as WithMultipleChildren,
|
|
62
62
|
b as default
|
|
63
63
|
};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { ModalProvider as
|
|
3
|
-
import {
|
|
4
|
-
import { ModalDialog as
|
|
5
|
-
import { Button as
|
|
2
|
+
import { ModalProvider as n } from "@react-aria/overlays";
|
|
3
|
+
import { fn as i } from "../../index-MQ0yPLdl.js";
|
|
4
|
+
import { ModalDialog as o } from "./ModalDialog.js";
|
|
5
|
+
import { Button as l } from "../Button/Button.js";
|
|
6
6
|
import { ButtonGroup as m } from "../ButtonGroup/ButtonGroup.js";
|
|
7
|
-
import { FormField as
|
|
7
|
+
import { FormField as r } from "../FormField/FormField.js";
|
|
8
8
|
import { InputField as d } from "../InputField/InputField.js";
|
|
9
9
|
import { Label as c } from "../Label/Label.js";
|
|
10
|
-
const
|
|
10
|
+
const p = `
|
|
11
|
+
/* ModalDialog has more styling props (see Info-tab).
|
|
12
|
+
Code example is made with the most commonly used props. **/
|
|
13
|
+
<ModalDialog isOpen={isOpen} title={title} onClose={onCloseFunction}
|
|
14
|
+
onSubmit={onSubmitFunction} buttons={buttons}> {children} </ModalDialog>
|
|
15
|
+
`, F = {
|
|
11
16
|
title: "Molecules/ModalDialog",
|
|
12
|
-
component:
|
|
17
|
+
component: o,
|
|
13
18
|
argTypes: {
|
|
14
19
|
isOpen: {
|
|
15
20
|
table: {
|
|
@@ -38,11 +43,14 @@ const S = {
|
|
|
38
43
|
disable: !0
|
|
39
44
|
}
|
|
40
45
|
}
|
|
46
|
+
},
|
|
47
|
+
parameters: {
|
|
48
|
+
codeString: p
|
|
41
49
|
}
|
|
42
|
-
}, u = (t) => /* @__PURE__ */ e(
|
|
50
|
+
}, u = (t) => /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(o, { ...t, children: /* @__PURE__ */ a(r, { outerSpace: !0, children: [
|
|
43
51
|
/* @__PURE__ */ e(c, { htmlFor: "text-field", children: "Example Text Field" }),
|
|
44
52
|
/* @__PURE__ */ e(d, { id: "text-field" })
|
|
45
|
-
] }) }) }),
|
|
53
|
+
] }) }) }), s = {
|
|
46
54
|
padded: !1,
|
|
47
55
|
slim: !1,
|
|
48
56
|
wide: !1,
|
|
@@ -55,32 +63,32 @@ const S = {
|
|
|
55
63
|
onSubmit: i(),
|
|
56
64
|
onClose: i(),
|
|
57
65
|
buttons: /* @__PURE__ */ a(m, { reversed: !0, children: [
|
|
58
|
-
/* @__PURE__ */ e(
|
|
59
|
-
/* @__PURE__ */ e(
|
|
66
|
+
/* @__PURE__ */ e(l, { variant: "primary", onClick: i(), children: "OK" }),
|
|
67
|
+
/* @__PURE__ */ e(l, { variant: "secondary", onClick: i(), children: "Cancel" })
|
|
60
68
|
] }),
|
|
61
69
|
isOpen: !0
|
|
62
|
-
},
|
|
63
|
-
p.args = {
|
|
64
|
-
...l
|
|
65
|
-
};
|
|
66
|
-
const b = u.bind({});
|
|
70
|
+
}, b = u.bind({});
|
|
67
71
|
b.args = {
|
|
68
|
-
...
|
|
72
|
+
...s
|
|
73
|
+
};
|
|
74
|
+
const g = u.bind({});
|
|
75
|
+
g.args = {
|
|
76
|
+
...s,
|
|
69
77
|
isLoading: !0,
|
|
70
78
|
spinnerAriaValueText: "Loading"
|
|
71
79
|
};
|
|
72
|
-
const
|
|
80
|
+
const f = (t) => /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(o, { ...t, children: /* @__PURE__ */ a(r, { outerSpace: !0, children: [
|
|
73
81
|
/* @__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." }),
|
|
74
82
|
/* @__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." })
|
|
75
|
-
] }) }) }),
|
|
76
|
-
|
|
77
|
-
...
|
|
83
|
+
] }) }) }), h = f.bind({});
|
|
84
|
+
h.args = {
|
|
85
|
+
...s,
|
|
78
86
|
noButtonBorder: !0
|
|
79
87
|
};
|
|
80
88
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
89
|
+
g as Loading,
|
|
90
|
+
b as ModalDialogExample,
|
|
91
|
+
h as WithLongContentAndNoBorder,
|
|
92
|
+
F as default
|
|
85
93
|
};
|
|
86
94
|
//# sourceMappingURL=ModalDialog.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalDialog.stories.js","sources":["../../../src/components/ModalDialog/ModalDialog.stories.tsx"],"sourcesContent":["import { ModalProvider } from '@react-aria/overlays';\nimport { fn } from '@storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { ModalDialogProps } from './ModalDialog';\n\nimport { ModalDialog } from './ModalDialog';\n\nimport { Button } from 'components/Button';\nimport { ButtonGroup } from 'components/ButtonGroup';\nimport { FormField } from 'components/FormField';\nimport { InputField } from 'components/InputField';\nimport { Label } from 'components/Label';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/ModalDialog',\n component: ModalDialog,\n argTypes: {\n isOpen: {\n table: {\n disable: true,\n },\n },\n noValidate: {\n control: 'boolean',\n },\n role: {\n control: 'radio',\n options: ['dialog', 'alertdialog'],\n },\n onSubmit: {\n table: {\n disable: true,\n },\n },\n onClose: {\n table: {\n disable: true,\n },\n },\n buttons: {\n table: {\n disable: true,\n },\n },\n },\n} as Meta<ModalDialogProps>;\n\nconst Template: StoryFn<ModalDialogProps> = (args: ModalDialogProps) => (\n <ModalProvider>\n <ModalDialog {...args}>\n <FormField outerSpace>\n <Label htmlFor=\"text-field\">Example Text Field</Label>\n <InputField id=\"text-field\" />\n </FormField>\n </ModalDialog>\n </ModalProvider>\n);\n\nconst defaultArgs: Partial<ModalDialogProps> = {\n padded: false,\n slim: false,\n wide: false,\n noButtonBorder: false,\n variant: 'dialog',\n role: 'dialog',\n title: 'Example Title',\n closeButtonAriaValueText: 'Close',\n noValidate: false,\n onSubmit: fn(),\n onClose: fn(),\n buttons: (\n <ButtonGroup reversed>\n <Button variant=\"primary\" onClick={fn()}>\n OK\n </Button>\n <Button variant=\"secondary\" onClick={fn()}>\n Cancel\n </Button>\n </ButtonGroup>\n ),\n isOpen: true,\n};\n\nexport const ModalDialogExample = Template.bind({});\nModalDialogExample.args = {\n ...defaultArgs,\n};\n\nexport const Loading = Template.bind({});\nLoading.args = {\n ...defaultArgs,\n isLoading: true,\n spinnerAriaValueText: 'Loading',\n};\n\nconst LongContentTemplate: StoryFn<ModalDialogProps> = (args: ModalDialogProps) => (\n <ModalProvider>\n <ModalDialog {...args}>\n <FormField outerSpace>\n <div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ac dui et nibh eleifend ultricies a id nulla.\n Pellentesque eleifend sem a tellus dictum tempus. Proin non leo id risus placerat vulputate at ac erat. Ut\n fringilla imperdiet sollicitudin. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere\n cubilia curae; Cras molestie ante ac magna ornare rhoncus non at quam. Mauris elementum luctus euismod.\n Pellentesque molestie malesuada purus, sed egestas lacus interdum sit amet. Morbi blandit lacus sit amet\n dictum pulvinar. Ut semper nunc ac enim imperdiet, non interdum diam gravida. In nunc tortor, mollis ac\n molestie dignissim, elementum sed quam. Suspendisse mollis venenatis libero, pellentesque vestibulum elit\n consequat et. Aliquam fringilla tellus id libero tempus, sit amet suscipit augue tristique. Quisque cursus\n neque vel justo tristique, eget semper turpis elementum. Etiam venenatis mattis sapien ac mattis. Mauris vitae\n ultrices erat.\n </div>\n <div>\n Aliquam facilisis massa sed justo rhoncus bibendum. Sed lobortis urna orci, vitae porta leo placerat nec. Nam\n porta porttitor ornare. Suspendisse vehicula nunc nec egestas finibus. Aliquam non luctus risus. Phasellus ac\n diam tincidunt, bibendum sem eget, sollicitudin neque. Curabitur mauris risus, feugiat ac euismod non,\n vulputate ac justo. Curabitur pretium vehicula augue, blandit porta odio rutrum sit amet. Proin semper enim ut\n sapien tempor, a ornare ipsum faucibus.\n </div>\n </FormField>\n </ModalDialog>\n </ModalProvider>\n);\n\nexport const WithLongContentAndNoBorder = LongContentTemplate.bind({});\nWithLongContentAndNoBorder.args = {\n ...defaultArgs,\n noButtonBorder: true,\n};\n"],"names":["ModalDialog_stories","ModalDialog","Template","args","jsx","ModalProvider","jsxs","FormField","Label","InputField","defaultArgs","fn","ButtonGroup","Button","ModalDialogExample","Loading","LongContentTemplate","WithLongContentAndNoBorder"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ModalDialog.stories.js","sources":["../../../src/components/ModalDialog/ModalDialog.stories.tsx"],"sourcesContent":["import { ModalProvider } from '@react-aria/overlays';\nimport { fn } from '@storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { ModalDialogProps } from './ModalDialog';\n\nimport { ModalDialog } from './ModalDialog';\n\nimport { Button } from 'components/Button';\nimport { ButtonGroup } from 'components/ButtonGroup';\nimport { FormField } from 'components/FormField';\nimport { InputField } from 'components/InputField';\nimport { Label } from 'components/Label';\n\nconst codeString = `\n/* ModalDialog has more styling props (see Info-tab).\n Code example is made with the most commonly used props. **/\n <ModalDialog isOpen={isOpen} title={title} onClose={onCloseFunction}\n onSubmit={onSubmitFunction} buttons={buttons}> {children} </ModalDialog>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/ModalDialog',\n component: ModalDialog,\n argTypes: {\n isOpen: {\n table: {\n disable: true,\n },\n },\n noValidate: {\n control: 'boolean',\n },\n role: {\n control: 'radio',\n options: ['dialog', 'alertdialog'],\n },\n onSubmit: {\n table: {\n disable: true,\n },\n },\n onClose: {\n table: {\n disable: true,\n },\n },\n buttons: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n codeString: codeString,\n },\n} as Meta<ModalDialogProps>;\n\nconst Template: StoryFn<ModalDialogProps> = (args: ModalDialogProps) => (\n <ModalProvider>\n <ModalDialog {...args}>\n <FormField outerSpace>\n <Label htmlFor=\"text-field\">Example Text Field</Label>\n <InputField id=\"text-field\" />\n </FormField>\n </ModalDialog>\n </ModalProvider>\n);\n\nconst defaultArgs: Partial<ModalDialogProps> = {\n padded: false,\n slim: false,\n wide: false,\n noButtonBorder: false,\n variant: 'dialog',\n role: 'dialog',\n title: 'Example Title',\n closeButtonAriaValueText: 'Close',\n noValidate: false,\n onSubmit: fn(),\n onClose: fn(),\n buttons: (\n <ButtonGroup reversed>\n <Button variant=\"primary\" onClick={fn()}>\n OK\n </Button>\n <Button variant=\"secondary\" onClick={fn()}>\n Cancel\n </Button>\n </ButtonGroup>\n ),\n isOpen: true,\n};\n\nexport const ModalDialogExample = Template.bind({});\nModalDialogExample.args = {\n ...defaultArgs,\n};\n\nexport const Loading = Template.bind({});\nLoading.args = {\n ...defaultArgs,\n isLoading: true,\n spinnerAriaValueText: 'Loading',\n};\n\nconst LongContentTemplate: StoryFn<ModalDialogProps> = (args: ModalDialogProps) => (\n <ModalProvider>\n <ModalDialog {...args}>\n <FormField outerSpace>\n <div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ac dui et nibh eleifend ultricies a id nulla.\n Pellentesque eleifend sem a tellus dictum tempus. Proin non leo id risus placerat vulputate at ac erat. Ut\n fringilla imperdiet sollicitudin. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere\n cubilia curae; Cras molestie ante ac magna ornare rhoncus non at quam. Mauris elementum luctus euismod.\n Pellentesque molestie malesuada purus, sed egestas lacus interdum sit amet. Morbi blandit lacus sit amet\n dictum pulvinar. Ut semper nunc ac enim imperdiet, non interdum diam gravida. In nunc tortor, mollis ac\n molestie dignissim, elementum sed quam. Suspendisse mollis venenatis libero, pellentesque vestibulum elit\n consequat et. Aliquam fringilla tellus id libero tempus, sit amet suscipit augue tristique. Quisque cursus\n neque vel justo tristique, eget semper turpis elementum. Etiam venenatis mattis sapien ac mattis. Mauris vitae\n ultrices erat.\n </div>\n <div>\n Aliquam facilisis massa sed justo rhoncus bibendum. Sed lobortis urna orci, vitae porta leo placerat nec. Nam\n porta porttitor ornare. Suspendisse vehicula nunc nec egestas finibus. Aliquam non luctus risus. Phasellus ac\n diam tincidunt, bibendum sem eget, sollicitudin neque. Curabitur mauris risus, feugiat ac euismod non,\n vulputate ac justo. Curabitur pretium vehicula augue, blandit porta odio rutrum sit amet. Proin semper enim ut\n sapien tempor, a ornare ipsum faucibus.\n </div>\n </FormField>\n </ModalDialog>\n </ModalProvider>\n);\n\nexport const WithLongContentAndNoBorder = LongContentTemplate.bind({});\nWithLongContentAndNoBorder.args = {\n ...defaultArgs,\n noButtonBorder: true,\n};\n"],"names":["codeString","ModalDialog_stories","ModalDialog","Template","args","jsx","ModalProvider","jsxs","FormField","Label","InputField","defaultArgs","fn","ButtonGroup","Button","ModalDialogExample","Loading","LongContentTemplate","WithLongContentAndNoBorder"],"mappings":";;;;;;;;;AAcA,MAAMA,IAAa;AAAA;AAAA;AAAA;AAAA;AAAA,GAQJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,QAAQ;AAAA,MACN,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,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,GAAGJ;AACL;AAEO,MAAMK,IAAUb,EAAS,KAAK,EAAE;AACvCa,EAAQ,OAAO;AAAA,EACb,GAAGL;AAAA,EACH,WAAW;AAAA,EACX,sBAAsB;AACxB;AAEA,MAAMM,IAAiD,CAACb,MACtD,gBAAAC,EAACC,GACC,EAAA,UAAA,gBAAAD,EAACH,GAAa,EAAA,GAAGE,GACf,UAAA,gBAAAG,EAACC,GAAU,EAAA,YAAU,IACnB,UAAA;AAAA,EAAA,gBAAAH,EAAC,SAAI,UAWL,88BAAA,CAAA;AAAA,EACA,gBAAAA,EAAC,SAAI,UAML,4dAAA,CAAA;AAAA,GACF,GACF,EACF,CAAA,GAGWa,IAA6BD,EAAoB,KAAK,EAAE;AACrEC,EAA2B,OAAO;AAAA,EAChC,GAAGP;AAAA,EACH,gBAAgB;AAClB;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { fn as d } from "../../index-MQ0yPLdl.js";
|
|
3
3
|
import { useState as M } from "react";
|
|
4
4
|
import { M as a } from "../../MultiSelect-Ckf3uGw5.js";
|
|
5
5
|
import { Container as p } from "../../storyComponents/Container/Container.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { fn as l } from "../../index-MQ0yPLdl.js";
|
|
3
3
|
import { OverlayCloseButton as e } from "./OverlayCloseButton.js";
|
|
4
4
|
import { Container as t } from "../../storyComponents/Container/Container.js";
|
|
5
5
|
const r = "<OverlayCloseButton aria-label={aria-label} onClick={onClickFunction} />", p = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { fn as a } from "../../index-MQ0yPLdl.js";
|
|
3
3
|
import { ProgrammeCard as t } from "./ProgrammeCard.js";
|
|
4
4
|
import { Container as n } from "../../storyComponents/Container/Container.js";
|
|
5
5
|
import "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { fn as i } from "../../index-MQ0yPLdl.js";
|
|
3
3
|
import { SelectListbox as r } from "./SelectListbox.js";
|
|
4
4
|
import * as e from "react";
|
|
5
5
|
const d = ({
|
|
@@ -59,7 +59,12 @@ const d = ({
|
|
|
59
59
|
label: "Spanish",
|
|
60
60
|
value: "ES"
|
|
61
61
|
}
|
|
62
|
-
],
|
|
62
|
+
], v = `
|
|
63
|
+
<SelectListbox options={mockData} defaultValue={defaultValue} variant={variant}
|
|
64
|
+
size={size} buttonLabelBold={buttonLabelBold} onChange={onChangeFunction}>
|
|
65
|
+
{mockData.map(({label, value}, index) => ( <SelectListbox.SelectOption option="{{label, value}}"
|
|
66
|
+
index={index} key={value}> {label} </SelectListbox.SelectOption> ))} </SelectListbox>
|
|
67
|
+
`, S = {
|
|
63
68
|
title: "Organisms/SelectListbox",
|
|
64
69
|
component: r,
|
|
65
70
|
argTypes: {
|
|
@@ -124,8 +129,11 @@ const d = ({
|
|
|
124
129
|
disable: !0
|
|
125
130
|
}
|
|
126
131
|
}
|
|
132
|
+
},
|
|
133
|
+
parameters: {
|
|
134
|
+
codeString: v
|
|
127
135
|
}
|
|
128
|
-
},
|
|
136
|
+
}, o = {
|
|
129
137
|
options: n,
|
|
130
138
|
defaultValue: "EN",
|
|
131
139
|
disabled: !1,
|
|
@@ -135,11 +143,11 @@ const d = ({
|
|
|
135
143
|
mobileBreakpoint: "28rem",
|
|
136
144
|
size: "default",
|
|
137
145
|
onChange: i()
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
...
|
|
146
|
+
}, W = (l) => /* @__PURE__ */ a("div", { style: { width: "10rem", margin: "0rem auto 0 auto" }, children: /* @__PURE__ */ a(r, { ...l, children: n.map(({ label: t, value: c }, h) => /* @__PURE__ */ a(r.SelectOption, { option: { label: t, value: c }, index: h, children: t }, `${c}`)) }) }), z = W.bind({});
|
|
147
|
+
z.args = {
|
|
148
|
+
...o
|
|
141
149
|
};
|
|
142
|
-
const
|
|
150
|
+
const b = ({ label: l, value: t }) => /* @__PURE__ */ s("div", { style: { display: "flex" }, children: [
|
|
143
151
|
{
|
|
144
152
|
NL: /* @__PURE__ */ a(d, { style: { width: "24px", height: "24px", marginRight: "10px" } }),
|
|
145
153
|
EN: /* @__PURE__ */ a(m, { style: { width: "24px", height: "24px", marginRight: "10px" } }),
|
|
@@ -150,13 +158,13 @@ const z = ({ label: l, value: t }) => /* @__PURE__ */ o("div", { style: { displa
|
|
|
150
158
|
ES: /* @__PURE__ */ a(E, { style: { width: "24px", height: "24px", marginRight: "10px" } })
|
|
151
159
|
}[t],
|
|
152
160
|
l
|
|
153
|
-
] }),
|
|
154
|
-
|
|
155
|
-
...
|
|
161
|
+
] }), g = (l) => /* @__PURE__ */ a("div", { style: { width: "10rem", margin: "0rem auto 0 auto" }, children: /* @__PURE__ */ a(r, { ...l, children: l.options.map(({ label: t, value: c }, h) => /* @__PURE__ */ a(r.SelectOption, { option: { label: t, value: c }, index: h, children: /* @__PURE__ */ a(b, { label: t, value: c }) }, `${c}`)) }) }), u = g.bind({});
|
|
162
|
+
u.args = {
|
|
163
|
+
...o
|
|
156
164
|
};
|
|
157
165
|
export {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
166
|
+
z as SelectListboxExample,
|
|
167
|
+
u as WithComponentOption,
|
|
168
|
+
S as default
|
|
161
169
|
};
|
|
162
170
|
//# sourceMappingURL=SelectListBox.stories.js.map
|