@uva-glass/component-library 1.19.0 → 1.21.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/MenuLink-CLEqkVVh.js +865 -0
- package/dist/MenuLink-CLEqkVVh.js.map +1 -0
- package/dist/ModalDialog-yEr_JLht.js +1276 -0
- package/dist/ModalDialog-yEr_JLht.js.map +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
- package/dist/assets/Accordion.css +1 -0
- package/dist/assets/Container.css +1 -1
- package/dist/assets/ModalDialog.css +1 -0
- package/dist/assets/ModalDialog2.css +1 -0
- package/dist/components/Accordion/Accordion.d.ts +8 -0
- package/dist/components/Accordion/Accordion.js +55 -0
- package/dist/components/Accordion/Accordion.js.map +1 -0
- package/dist/components/Accordion/Accordion.stories.d.ts +6 -0
- package/dist/components/Accordion/Accordion.stories.js +30 -0
- package/dist/components/Accordion/Accordion.stories.js.map +1 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.js +5 -0
- package/dist/components/Accordion/index.js.map +1 -0
- package/dist/components/Button/Button.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/MenuLink/MenuLink.js +1 -1
- package/dist/components/MenuLink/MenuLink.stories.js +1 -1
- package/dist/components/MenuLink/index.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.d.ts +24 -0
- package/dist/components/ModalDialog/ModalDialog.js +11 -0
- package/dist/components/ModalDialog/ModalDialog.js.map +1 -0
- package/dist/components/ModalDialog/ModalDialog.stories.d.ts +6 -0
- package/dist/components/ModalDialog/ModalDialog.stories.js +74 -0
- package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -0
- package/dist/components/ModalDialog/index.d.ts +1 -0
- package/dist/components/ModalDialog/index.js +5 -0
- package/dist/components/ModalDialog/index.js.map +1 -0
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +4 -4
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +42 -38
- package/dist/components/index.js.map +1 -1
- package/dist/components/storyComponents/Container/Container.d.ts +2 -1
- package/dist/components/storyComponents/Container/Container.js +22 -19
- package/dist/components/storyComponents/Container/Container.js.map +1 -1
- package/dist/{MenuLink-DDAin3rf.js → index-BA9Z7itR.js} +8080 -8937
- package/dist/index-BA9Z7itR.js.map +1 -0
- package/dist/{index-Ce_VqA9S.js → index-DFUrxrKJ.js} +910 -913
- package/dist/{index-Ce_VqA9S.js.map → index-DFUrxrKJ.js.map} +1 -1
- package/dist/index.js +42 -38
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/dist/MenuLink-DDAin3rf.js.map +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AccordionProps } from './Accordion';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, AccordionProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const AccordionExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, AccordionProps>;
|
|
6
|
+
export declare const WithComplexProps: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, AccordionProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Accordion as e } from "./Accordion.js";
|
|
3
|
+
import { Container as i } from "../storyComponents/Container/Container.js";
|
|
4
|
+
const p = {
|
|
5
|
+
title: "Atoms/Accordion",
|
|
6
|
+
component: e,
|
|
7
|
+
argTypes: {
|
|
8
|
+
expanded: {
|
|
9
|
+
// Hide the expanded prop. Changing the value in Storybook doesn't update the state of the component.
|
|
10
|
+
table: {
|
|
11
|
+
disable: !0
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}, o = (n) => /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(e, { ...n }) }), l = o.bind({});
|
|
16
|
+
l.args = {
|
|
17
|
+
title: "Example title",
|
|
18
|
+
content: "Example content"
|
|
19
|
+
};
|
|
20
|
+
const c = o.bind({});
|
|
21
|
+
c.args = {
|
|
22
|
+
title: /* @__PURE__ */ t("div", { style: { fontWeight: "bold" }, children: "Complex sample title" }),
|
|
23
|
+
content: /* @__PURE__ */ t("div", { style: { fontStyle: "italic" }, children: "Complex sample content" })
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
l as AccordionExample,
|
|
27
|
+
c as WithComplexProps,
|
|
28
|
+
p as default
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=Accordion.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.stories.js","sources":["../../../src/components/Accordion/Accordion.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { AccordionProps } from './Accordion';\n\nimport { Accordion } from './Accordion';\n\nimport { Container } from 'components/storyComponents/Container';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Accordion',\n component: Accordion,\n argTypes: {\n expanded: {\n // Hide the expanded prop. Changing the value in Storybook doesn't update the state of the component.\n table: {\n disable: true,\n },\n },\n },\n} as Meta<AccordionProps>;\n\nconst Template: StoryFn<AccordionProps> = (args) => (\n <Container>\n <Accordion {...args} />\n </Container>\n);\n\nexport const AccordionExample = Template.bind({});\nAccordionExample.args = {\n title: 'Example title',\n content: 'Example content',\n};\n\nexport const WithComplexProps = Template.bind({});\nWithComplexProps.args = {\n title: <div style={{ fontWeight: 'bold' }}>Complex sample title</div>,\n content: <div style={{ fontStyle: 'italic' }}>Complex sample content</div>,\n};\n"],"names":["Accordion_stories","Accordion","Template","args","jsx","Container","AccordionExample","WithComplexProps"],"mappings":";;;AAQA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,UAAU;AAAA;AAAA,MAER,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AACF,GAEMC,IAAoC,CAACC,MACzC,gBAAAC,EAACC,KACC,UAAC,gBAAAD,EAAAH,GAAA,EAAW,GAAGE,EAAM,CAAA,EACvB,CAAA,GAGWG,IAAmBJ,EAAS,KAAK,EAAE;AAChDI,EAAiB,OAAO;AAAA,EACtB,OAAO;AAAA,EACP,SAAS;AACX;AAEO,MAAMC,IAAmBL,EAAS,KAAK,EAAE;AAChDK,EAAiB,OAAO;AAAA,EACtB,yBAAQ,OAAI,EAAA,OAAO,EAAE,YAAY,UAAU,UAAoB,wBAAA;AAAA,EAC/D,2BAAU,OAAI,EAAA,OAAO,EAAE,WAAW,YAAY,UAAsB,0BAAA;AACtE;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Accordion';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AriaDialogProps } from '@react-types/dialog';
|
|
2
|
+
import { FormHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface ModalDialogProps {
|
|
5
|
+
buttons?: ReactNode;
|
|
6
|
+
isDismissable?: boolean;
|
|
7
|
+
isKeyboardDismissDisabled?: boolean;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
spinnerAriaValueText?: string;
|
|
10
|
+
closeButtonAriaValueText?: string;
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
noValidate?: boolean;
|
|
13
|
+
onClose?(): void;
|
|
14
|
+
onSubmit?: FormHTMLAttributes<HTMLFormElement>['onSubmit'];
|
|
15
|
+
role?: AriaDialogProps['role'];
|
|
16
|
+
title?: string;
|
|
17
|
+
headerContent?: ReactNode;
|
|
18
|
+
variant?: 'confirm' | 'dialog';
|
|
19
|
+
padded?: boolean;
|
|
20
|
+
slim?: boolean;
|
|
21
|
+
wide?: boolean;
|
|
22
|
+
noButtonBorder?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare function ModalDialog(props: PropsWithChildren<ModalDialogProps>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { M } from "../../ModalDialog-yEr_JLht.js";
|
|
3
|
+
import "../../clsx-DB4S2d7J.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../Backdrop/Backdrop.js";
|
|
6
|
+
import "../OverlayCloseButton/OverlayCloseButton.js";
|
|
7
|
+
import "../Spinner/Spinner.js";
|
|
8
|
+
export {
|
|
9
|
+
M as ModalDialog
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=ModalDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalDialog.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ModalDialogProps } from './ModalDialog';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, ModalDialogProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const ModalDialogExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ModalDialogProps>;
|
|
6
|
+
export declare const Loading: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ModalDialogProps>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { M as t, $ as d } from "../../ModalDialog-yEr_JLht.js";
|
|
3
|
+
import { f as o } from "../../index-DFUrxrKJ.js";
|
|
4
|
+
import { Button as a } from "../Button/Button.js";
|
|
5
|
+
import { InputField as s } from "../InputField/InputField.js";
|
|
6
|
+
import { Label as c } from "../Label/Label.js";
|
|
7
|
+
import '../../assets/ModalDialog.css';const v = {
|
|
8
|
+
title: "Molecules/ModalDialog",
|
|
9
|
+
component: t,
|
|
10
|
+
argTypes: {
|
|
11
|
+
isOpen: {
|
|
12
|
+
table: {
|
|
13
|
+
disable: !0
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
noValidate: {
|
|
17
|
+
control: "boolean"
|
|
18
|
+
},
|
|
19
|
+
role: {
|
|
20
|
+
control: "radio",
|
|
21
|
+
options: ["dialog", "alertdialog"]
|
|
22
|
+
},
|
|
23
|
+
onSubmit: {
|
|
24
|
+
table: {
|
|
25
|
+
disable: !0
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
onClose: {
|
|
29
|
+
table: {
|
|
30
|
+
disable: !0
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
buttons: {
|
|
34
|
+
table: {
|
|
35
|
+
disable: !0
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, i = (n) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(t, { ...n, children: /* @__PURE__ */ l("div", { className: "form-field form-field--outerspace", children: [
|
|
40
|
+
/* @__PURE__ */ e(c, { htmlFor: "text-field", children: "Example Text Field" }),
|
|
41
|
+
/* @__PURE__ */ e(s, { id: "text-field" })
|
|
42
|
+
] }) }) }), r = {
|
|
43
|
+
padded: !1,
|
|
44
|
+
slim: !1,
|
|
45
|
+
wide: !1,
|
|
46
|
+
noButtonBorder: !1,
|
|
47
|
+
variant: "dialog",
|
|
48
|
+
role: "dialog",
|
|
49
|
+
title: "Example Title",
|
|
50
|
+
closeButtonAriaValueText: "Close",
|
|
51
|
+
noValidate: !1,
|
|
52
|
+
onSubmit: o(),
|
|
53
|
+
onClose: o(),
|
|
54
|
+
buttons: /* @__PURE__ */ l("div", { className: "button-group button-group--reversed", children: [
|
|
55
|
+
/* @__PURE__ */ e(a, { variant: "primary", onClick: o(), children: "OK" }),
|
|
56
|
+
/* @__PURE__ */ e(a, { variant: "secondary", onClick: o(), children: "Cancel" })
|
|
57
|
+
] }),
|
|
58
|
+
isOpen: !0
|
|
59
|
+
}, m = i.bind({});
|
|
60
|
+
m.args = {
|
|
61
|
+
...r
|
|
62
|
+
};
|
|
63
|
+
const p = i.bind({});
|
|
64
|
+
p.args = {
|
|
65
|
+
...r,
|
|
66
|
+
isLoading: !0,
|
|
67
|
+
spinnerAriaValueText: "Loading"
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
p as Loading,
|
|
71
|
+
m as ModalDialogExample,
|
|
72
|
+
v as default
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=ModalDialog.stories.js.map
|
|
@@ -0,0 +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 { InputField } from 'components/InputField';\nimport { Label } from 'components/Label';\n\nimport './ModalDialog.stories.css';\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) => (\n <ModalProvider>\n <ModalDialog {...args}>\n <div className=\"form-field form-field--outerspace\">\n <Label htmlFor=\"text-field\">Example Text Field</Label>\n <InputField id=\"text-field\" />\n </div>\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 <div className=\"button-group button-group--reversed\">\n <Button variant=\"primary\" onClick={fn()}>\n OK\n </Button>\n <Button variant=\"secondary\" onClick={fn()}>\n Cancel\n </Button>\n </div>\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"],"names":["ModalDialog_stories","ModalDialog","Template","args","jsx","ModalProvider","jsxs","Label","InputField","defaultArgs","fn","Button","ModalDialogExample","Loading"],"mappings":";;;;;;AAeA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,QAAQ;AAAA,MACN,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV,SAAS;AAAA,IACX;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,SAAS,CAAC,UAAU,aAAa;AAAA,IACnC;AAAA,IACA,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AACF,GAEMC,IAAsC,CAACC,MAC3C,gBAAAC,EAACC,GACC,EAAA,UAAA,gBAAAD,EAACH,GAAa,EAAA,GAAGE,GACf,UAAA,gBAAAG,EAAC,OAAI,EAAA,WAAU,qCACb,UAAA;AAAA,EAAC,gBAAAF,EAAAG,GAAA,EAAM,SAAQ,cAAa,UAAkB,sBAAA;AAAA,EAC9C,gBAAAH,EAACI,GAAW,EAAA,IAAG,aAAa,CAAA;AAAA,GAC9B,GACF,EACF,CAAA,GAGIC,IAAyC;AAAA,EAC7C,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AAAA,EACP,0BAA0B;AAAA,EAC1B,YAAY;AAAA,EACZ,UAAUC,EAAG;AAAA,EACb,SAASA,EAAG;AAAA,EACZ,SACE,gBAAAJ,EAAC,OAAI,EAAA,WAAU,uCACb,UAAA;AAAA,IAAA,gBAAAF,EAACO,KAAO,SAAQ,WAAU,SAASD,KAAM,UAEzC,MAAA;AAAA,sBACCC,GAAO,EAAA,SAAQ,aAAY,SAASD,KAAM,UAE3C,UAAA;AAAA,EAAA,GACF;AAAA,EAEF,QAAQ;AACV,GAEaE,IAAqBV,EAAS,KAAK,EAAE;AAClDU,EAAmB,OAAO;AAAA,EACxB,GAAGH;AACL;AAEO,MAAMI,IAAUX,EAAS,KAAK,EAAE;AACvCW,EAAQ,OAAO;AAAA,EACb,GAAGJ;AAAA,EACH,WAAW;AAAA,EACX,sBAAsB;AACxB;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ModalDialog';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { f as l } from "../../index-
|
|
2
|
+
import { f as l } from "../../index-DFUrxrKJ.js";
|
|
3
3
|
import { OverlayCloseButton as e } from "./OverlayCloseButton.js";
|
|
4
4
|
import { Container as a } from "../storyComponents/Container/Container.js";
|
|
5
5
|
const p = {
|
|
@@ -13,14 +13,14 @@ const p = {
|
|
|
13
13
|
control: "text"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
}, r = (t) => /* @__PURE__ */ o(a, { size: "small", children: /* @__PURE__ */ o(e, { ...t }) }),
|
|
17
|
-
|
|
16
|
+
}, r = (t) => /* @__PURE__ */ o(a, { size: "small", padded: !1, children: /* @__PURE__ */ o(e, { ...t }) }), s = r.bind({});
|
|
17
|
+
s.args = {
|
|
18
18
|
paddedModal: !1,
|
|
19
19
|
"aria-label": "Close",
|
|
20
20
|
onClick: l()
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
s as OverlayCloseButtonExample,
|
|
24
24
|
p as default
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=OverlayCloseButton.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayCloseButton.stories.js","sources":["../../../src/components/OverlayCloseButton/OverlayCloseButton.stories.tsx"],"sourcesContent":["import { fn } from '@storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { OverlayCloseButtonProps } from './OverlayCloseButton';\n\nimport { OverlayCloseButton } from './OverlayCloseButton';\n\nimport { Container } from 'components/storyComponents/Container/';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/OverlayCloseButton',\n component: OverlayCloseButton,\n argTypes: {\n paddedModal: {\n control: 'boolean',\n },\n 'aria-label': {\n control: 'text',\n },\n },\n} as Meta<OverlayCloseButtonProps>;\n\nconst Template: StoryFn<OverlayCloseButtonProps> = (args) => {\n return (\n <Container size=\"small\">\n <OverlayCloseButton {...args} />\n </Container>\n );\n};\n\nexport const OverlayCloseButtonExample = Template.bind({});\nOverlayCloseButtonExample.args = {\n paddedModal: false,\n 'aria-label': 'Close',\n onClick: fn(),\n};\n"],"names":["OverlayCloseButton_stories","OverlayCloseButton","Template","args","jsx","Container","OverlayCloseButtonExample","fn"],"mappings":";;;;AAUA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,aAAa;AAAA,MACX,SAAS;AAAA,IACX;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,IACX;AAAA,EACF;AACF,GAEMC,IAA6C,CAACC,MAEhD,gBAAAC,EAACC,
|
|
1
|
+
{"version":3,"file":"OverlayCloseButton.stories.js","sources":["../../../src/components/OverlayCloseButton/OverlayCloseButton.stories.tsx"],"sourcesContent":["import { fn } from '@storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { OverlayCloseButtonProps } from './OverlayCloseButton';\n\nimport { OverlayCloseButton } from './OverlayCloseButton';\n\nimport { Container } from 'components/storyComponents/Container/';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/OverlayCloseButton',\n component: OverlayCloseButton,\n argTypes: {\n paddedModal: {\n control: 'boolean',\n },\n 'aria-label': {\n control: 'text',\n },\n },\n} as Meta<OverlayCloseButtonProps>;\n\nconst Template: StoryFn<OverlayCloseButtonProps> = (args) => {\n return (\n <Container size=\"small\" padded={false}>\n <OverlayCloseButton {...args} />\n </Container>\n );\n};\n\nexport const OverlayCloseButtonExample = Template.bind({});\nOverlayCloseButtonExample.args = {\n paddedModal: false,\n 'aria-label': 'Close',\n onClick: fn(),\n};\n"],"names":["OverlayCloseButton_stories","OverlayCloseButton","Template","args","jsx","Container","OverlayCloseButtonExample","fn"],"mappings":";;;;AAUA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,aAAa;AAAA,MACX,SAAS;AAAA,IACX;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,IACX;AAAA,EACF;AACF,GAEMC,IAA6C,CAACC,MAEhD,gBAAAC,EAACC,GAAU,EAAA,MAAK,SAAQ,QAAQ,IAC9B,UAAC,gBAAAD,EAAAH,GAAA,EAAoB,GAAGE,EAAM,CAAA,EAChC,CAAA,GAISG,IAA4BJ,EAAS,KAAK,EAAE;AACzDI,EAA0B,OAAO;AAAA,EAC/B,aAAa;AAAA,EACb,cAAc;AAAA,EACd,SAASC,EAAG;AACd;"}
|