@uva-glass/component-library 1.22.1 → 1.24.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/{ModalDialog-yEr_JLht.js → ModalDialog-B1c9QYLZ.js} +2 -2
- package/dist/{ModalDialog-yEr_JLht.js.map → ModalDialog-B1c9QYLZ.js.map} +1 -1
- package/dist/assets/ButtonGroup.css +1 -0
- package/dist/assets/Checkbox.css +1 -0
- package/dist/assets/ModalDialog.css +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +7 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +26 -0
- package/dist/components/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +6 -0
- package/dist/components/ButtonGroup/ButtonGroup.stories.js +30 -0
- package/dist/components/ButtonGroup/ButtonGroup.stories.js.map +1 -0
- package/dist/components/ButtonGroup/index.d.ts +1 -0
- package/dist/components/ButtonGroup/index.js +5 -0
- package/dist/components/ButtonGroup/index.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.js +8 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/components/Checkbox/Checkbox.stories.js +20 -0
- package/dist/components/Checkbox/Checkbox.stories.js.map +1 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/index.js +5 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/ModalDialog/ModalDialog.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +19 -18
- package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -1
- package/dist/components/ModalDialog/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +47 -43
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +47 -43
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/assets/ModalDialog2.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._button-group_1ti4e_1{display:flex;flex-wrap:wrap;gap:1rem;justify-content:flex-end}._button-group--stacked_1ti4e_8{flex-direction:column}._button-group--reversed_1ti4e_12{flex-flow:row-reverse wrap-reverse;justify-content:flex-start}._button-group--reversed-stacked_1ti4e_17{flex-direction:column-reverse}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._checkbox_lu7hj_1{accent-color:var(--color-black);height:1rem;margin:0;padding:0;width:1rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._modal-dialog_14t7m_1{--modal-dialog-padding: 1.5rem;--modal-dialog-padding-mobile: 1.25rem;background:var(--color-white);box-shadow:0 2px 2px #0000000f,0 4px 3px #00000012;display:flex;flex-direction:column;height:100dvh;position:relative;width:100vw}._modal-dialog--padded_14t7m_18{padding:0}._modal-dialog__content_14t7m_22{display:flex;flex-direction:column;height:100svh;justify-content:space-between;overflow:auto;padding:0 var(--modal-dialog-padding-mobile);width:100%}._modal-dialog__children_14t7m_32{padding-bottom:var(--modal-dialog-padding-mobile)}._modal-dialog__title_14t7m_36{font-size:var(--font-size-m);line-height:var(--line-height-m);margin:0 var(--modal-dialog-padding-mobile) 0 0;padding:var(--modal-dialog-padding-mobile)}._modal-dialog--confirm_14t7m_43{padding:var(--modal-dialog-padding-mobile) 0 0}._modal-dialog__buttons_14t7m_47{background-color:var(--color-white);bottom:0;display:flex;flex-direction:column;gap:.75rem;justify-content:flex-start;margin:0 calc(-1 * var(--modal-dialog-padding-mobile));padding:var(--modal-dialog-padding-mobile);position:sticky;right:0}._modal-dialog--buttons-border_14t7m_60{border-top:1px solid var(--color-pattens-blue)}._modal-dialog__close_14t7m_64{position:absolute;right:var(--modal-dialog-padding-mobile);top:var(--modal-dialog-padding-mobile)}@media (min-width: 28rem) and (min-height: 28rem){._modal-dialog_14t7m_1{height:unset;max-height:100svh;max-width:100vw;width:30rem}._modal-dialog--padded_14t7m_18{width:34.25rem}._modal-dialog--slim_14t7m_82{width:27.5rem}._modal-dialog--wide_14t7m_86{width:36rem}._modal-dialog__title_14t7m_36{margin-right:var(--modal-dialog-padding);padding:var(--modal-dialog-padding)}._modal-dialog__content_14t7m_22{height:unset;padding:0 var(--modal-dialog-padding)}._modal-dialog--content-with-buttons_14t7m_100{margin-bottom:6.25rem}._modal-dialog__children_14t7m_32{padding-bottom:var(--modal-dialog-padding)}._modal-dialog--confirm_14t7m_43{padding:var(--modal-dialog-padding) 0 0}._modal-dialog__buttons_14t7m_47{margin:unset;padding:var(--modal-dialog-padding);position:absolute;width:inherit}._modal-dialog__close_14t7m_64{position:absolute;right:var(--modal-dialog-padding);top:var(--modal-dialog-padding)}}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ButtonGroupProps {
|
|
4
|
+
stacked?: boolean;
|
|
5
|
+
reversed?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ButtonGroup: ({ children, stacked, reversed }: PropsWithChildren<ButtonGroupProps>) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../clsx-DB4S2d7J.js";
|
|
3
|
+
import { Children as n } from "react";
|
|
4
|
+
import '../../assets/ButtonGroup.css';const t = {
|
|
5
|
+
"button-group": "_button-group_1ti4e_1",
|
|
6
|
+
"button-group--stacked": "_button-group--stacked_1ti4e_8",
|
|
7
|
+
"button-group--reversed": "_button-group--reversed_1ti4e_12",
|
|
8
|
+
"button-group--reversed-stacked": "_button-group--reversed-stacked_1ti4e_17"
|
|
9
|
+
}, _ = ({ children: o, stacked: r, reversed: u }) => (
|
|
10
|
+
// only render a <ButtonGroup> when there are children
|
|
11
|
+
n.count(o) > 0 ? /* @__PURE__ */ e(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: s(t["button-group"], {
|
|
15
|
+
[t["button-group--stacked"]]: r,
|
|
16
|
+
[t["button-group--reversed"]]: u,
|
|
17
|
+
[t["button-group--reversed-stacked"]]: r && u
|
|
18
|
+
}),
|
|
19
|
+
children: o
|
|
20
|
+
}
|
|
21
|
+
) : null
|
|
22
|
+
);
|
|
23
|
+
export {
|
|
24
|
+
_ as ButtonGroup
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=ButtonGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroup.js","sources":["../../../src/components/ButtonGroup/ButtonGroup.tsx"],"sourcesContent":["import classNames from 'clsx';\nimport { Children } from 'react';\n\nimport type { PropsWithChildren } from 'react';\n\nimport styles from './ButtonGroup.module.css';\n\nexport interface ButtonGroupProps {\n stacked?: boolean;\n reversed?: boolean;\n}\n\nexport const ButtonGroup = ({ children, stacked, reversed }: PropsWithChildren<ButtonGroupProps>) =>\n // only render a <ButtonGroup> when there are children\n Children.count(children) > 0 ? (\n <div\n className={classNames(styles['button-group'], {\n [styles['button-group--stacked']]: stacked,\n [styles['button-group--reversed']]: reversed,\n [styles['button-group--reversed-stacked']]: stacked && reversed,\n })}\n >\n {children}\n </div>\n ) : null;\n"],"names":["ButtonGroup","children","stacked","reversed","Children","jsx","classNames","styles"],"mappings":";;;;;;;;GAYaA,IAAc,CAAC,EAAE,UAAAC,GAAU,SAAAC,GAAS,UAAAC,EAAS;AAAA;AAAA,EAExDC,EAAS,MAAMH,CAAQ,IAAI,IACzB,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAWC,EAAO,cAAc,GAAG;AAAA,QAC5C,CAACA,EAAO,uBAAuB,CAAC,GAAGL;AAAA,QACnC,CAACK,EAAO,wBAAwB,CAAC,GAAGJ;AAAA,QACpC,CAACI,EAAO,gCAAgC,CAAC,GAAGL,KAAWC;AAAA,MAAA,CACxD;AAAA,MAEA,UAAAF;AAAA,IAAA;AAAA,EAAA,IAED;AAAA;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { ButtonGroupProps } from './ButtonGroup';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, PropsWithChildren<ButtonGroupProps>>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const ButtonGroupExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<ButtonGroupProps>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as t, jsxs as n, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonGroup as o } from "./ButtonGroup.js";
|
|
3
|
+
import { Button as r } from "../Button/Button.js";
|
|
4
|
+
import { Container as s } from "../storyComponents/Container/Container.js";
|
|
5
|
+
const f = {
|
|
6
|
+
title: "Atoms/ButtonGroup",
|
|
7
|
+
component: o,
|
|
8
|
+
argTypes: {
|
|
9
|
+
children: {
|
|
10
|
+
table: {
|
|
11
|
+
disable: !0
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}, i = (e) => /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(o, { ...e }) }), l = {
|
|
16
|
+
stacked: !1,
|
|
17
|
+
reversed: !1,
|
|
18
|
+
children: /* @__PURE__ */ n(a, { children: [
|
|
19
|
+
/* @__PURE__ */ t(r, { variant: "primary", children: "Primary button" }),
|
|
20
|
+
/* @__PURE__ */ t(r, { variant: "secondary", children: "Secondary button" })
|
|
21
|
+
] })
|
|
22
|
+
}, m = i.bind({});
|
|
23
|
+
m.args = {
|
|
24
|
+
...l
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
m as ButtonGroupExample,
|
|
28
|
+
f as default
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=ButtonGroup.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroup.stories.js","sources":["../../../src/components/ButtonGroup/ButtonGroup.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { PropsWithChildren } from 'react';\nimport type { ButtonGroupProps } from './ButtonGroup';\n\nimport { ButtonGroup } from './ButtonGroup';\n\nimport { Button } from 'components/Button/Button';\nimport { Container } from 'components/storyComponents/Container';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/ButtonGroup',\n component: ButtonGroup,\n argTypes: {\n children: {\n table: {\n disable: true,\n },\n },\n },\n} as Meta<PropsWithChildren<ButtonGroupProps>>;\n\nconst Template: StoryFn<PropsWithChildren<ButtonGroupProps>> = (args) => (\n <Container>\n <ButtonGroup {...args} />\n </Container>\n);\n\nconst defaultArgs: Partial<PropsWithChildren<ButtonGroupProps>> = {\n stacked: false,\n reversed: false,\n children: (\n <>\n <Button variant=\"primary\">Primary button</Button>\n <Button variant=\"secondary\">Secondary button</Button>\n </>\n ),\n};\n\nexport const ButtonGroupExample = Template.bind({});\nButtonGroupExample.args = {\n ...defaultArgs,\n};\n"],"names":["ButtonGroup_stories","ButtonGroup","Template","args","jsx","Container","defaultArgs","jsxs","Fragment","Button","ButtonGroupExample"],"mappings":";;;;AAUA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AACF,GAEMC,IAAyD,CAACC,MAC9D,gBAAAC,EAACC,KACC,UAAC,gBAAAD,EAAAH,GAAA,EAAa,GAAGE,EAAM,CAAA,EACzB,CAAA,GAGIG,IAA4D;AAAA,EAChE,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAEI,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAC,gBAAAJ,EAAAK,GAAA,EAAO,SAAQ,WAAU,UAAc,kBAAA;AAAA,IACvC,gBAAAL,EAAAK,GAAA,EAAO,SAAQ,aAAY,UAAgB,oBAAA;AAAA,EAAA,GAC9C;AAEJ,GAEaC,IAAqBR,EAAS,KAAK,EAAE;AAClDQ,EAAmB,OAAO;AAAA,EACxB,GAAGJ;AACL;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ButtonGroup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Checkbox.css';const e = "_checkbox_lu7hj_1", s = {
|
|
3
|
+
checkbox: e
|
|
4
|
+
}, x = ({ ...c }) => /* @__PURE__ */ o("input", { ...c, type: "checkbox", className: s.checkbox });
|
|
5
|
+
export {
|
|
6
|
+
x as Checkbox
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["import type { InputHTMLAttributes } from 'react';\n\nimport styles from './Checkbox.module.css';\n\nexport type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'style' | 'type'>;\n\nexport const Checkbox = ({ ...restProps }: CheckboxProps) => (\n <input {...restProps} type=\"checkbox\" className={styles['checkbox']} />\n);\n"],"names":["Checkbox","restProps","jsx","styles"],"mappings":";;;GAMaA,IAAW,CAAC,EAAE,GAAGC,QAC5B,gBAAAC,EAAC,SAAO,EAAA,GAAGD,GAAW,MAAK,YAAW,WAAWE,EAAO,SAAa,CAAA;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CheckboxProps } from './Checkbox';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, CheckboxProps>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const CheckboxExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, CheckboxProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { f as m } from "../../index-DFUrxrKJ.js";
|
|
3
|
+
import { Checkbox as e } from "./Checkbox.js";
|
|
4
|
+
import { FormField as i } from "../FormField/FormField.js";
|
|
5
|
+
import { Label as n } from "../Label/Label.js";
|
|
6
|
+
const h = {
|
|
7
|
+
title: "Atoms/Checkbox",
|
|
8
|
+
component: e
|
|
9
|
+
}, s = (r) => /* @__PURE__ */ t(i, { inline: !0, children: [
|
|
10
|
+
/* @__PURE__ */ o(e, { id: "72103b4d", ...r }),
|
|
11
|
+
/* @__PURE__ */ o(n, { htmlFor: "72103b4d", children: "Example Checkbox" })
|
|
12
|
+
] }), c = s.bind({});
|
|
13
|
+
c.args = {
|
|
14
|
+
onChange: m()
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
c as CheckboxExample,
|
|
18
|
+
h as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=Checkbox.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.stories.js","sources":["../../../src/components/Checkbox/Checkbox.stories.tsx"],"sourcesContent":["import { fn } from '@storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { CheckboxProps } from './Checkbox';\n\nimport { Checkbox } from './Checkbox';\n\nimport { FormField } from 'components/FormField';\nimport { Label } from 'components/Label';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Checkbox',\n component: Checkbox,\n} as Meta<CheckboxProps>;\n\nconst Template: StoryFn<CheckboxProps> = (args) => (\n <FormField inline>\n <Checkbox id=\"72103b4d\" {...args} />\n <Label htmlFor=\"72103b4d\">Example Checkbox</Label>\n </FormField>\n);\n\nexport const CheckboxExample = Template.bind({});\nCheckboxExample.args = {\n onChange: fn(),\n};\n"],"names":["Checkbox_stories","Checkbox","Template","args","jsxs","FormField","jsx","Label","CheckboxExample","fn"],"mappings":";;;;;AAWA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AACb,GAEMC,IAAmC,CAACC,MACvC,gBAAAC,EAAAC,GAAA,EAAU,QAAM,IACf,UAAA;AAAA,EAAA,gBAAAC,EAACL,GAAS,EAAA,IAAG,YAAY,GAAGE,EAAM,CAAA;AAAA,EACjC,gBAAAG,EAAAC,GAAA,EAAM,SAAQ,YAAW,UAAgB,oBAAA;AAAA,EAC5C,CAAA,GAGWC,IAAkBN,EAAS,KAAK,EAAE;AAC/CM,EAAgB,OAAO;AAAA,EACrB,UAAUC,EAAG;AACf;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Checkbox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { M as l, $ as d } from "../../ModalDialog-
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { M as l, $ as d } from "../../ModalDialog-B1c9QYLZ.js";
|
|
3
3
|
import { f as o } from "../../index-DFUrxrKJ.js";
|
|
4
|
-
import { Button as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { Button as t } from "../Button/Button.js";
|
|
5
|
+
import { ButtonGroup as s } from "../ButtonGroup/ButtonGroup.js";
|
|
6
|
+
import { FormField as m } from "../FormField/FormField.js";
|
|
7
|
+
import { InputField as p } from "../InputField/InputField.js";
|
|
7
8
|
import { Label as c } from "../Label/Label.js";
|
|
8
|
-
|
|
9
|
+
const F = {
|
|
9
10
|
title: "Molecules/ModalDialog",
|
|
10
11
|
component: l,
|
|
11
12
|
argTypes: {
|
|
@@ -37,9 +38,9 @@ import '../../assets/ModalDialog.css';const T = {
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
|
-
}, i = (n) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(l, { ...n, children: /* @__PURE__ */
|
|
41
|
+
}, i = (n) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(l, { ...n, children: /* @__PURE__ */ a(m, { outerSpace: !0, children: [
|
|
41
42
|
/* @__PURE__ */ e(c, { htmlFor: "text-field", children: "Example Text Field" }),
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
+
/* @__PURE__ */ e(p, { id: "text-field" })
|
|
43
44
|
] }) }) }), r = {
|
|
44
45
|
padded: !1,
|
|
45
46
|
slim: !1,
|
|
@@ -52,24 +53,24 @@ import '../../assets/ModalDialog.css';const T = {
|
|
|
52
53
|
noValidate: !1,
|
|
53
54
|
onSubmit: o(),
|
|
54
55
|
onClose: o(),
|
|
55
|
-
buttons: /* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */ e(
|
|
57
|
-
/* @__PURE__ */ e(
|
|
56
|
+
buttons: /* @__PURE__ */ a(s, { reversed: !0, children: [
|
|
57
|
+
/* @__PURE__ */ e(t, { variant: "primary", onClick: o(), children: "OK" }),
|
|
58
|
+
/* @__PURE__ */ e(t, { variant: "secondary", onClick: o(), children: "Cancel" })
|
|
58
59
|
] }),
|
|
59
60
|
isOpen: !0
|
|
60
|
-
},
|
|
61
|
-
|
|
61
|
+
}, u = i.bind({});
|
|
62
|
+
u.args = {
|
|
62
63
|
...r
|
|
63
64
|
};
|
|
64
|
-
const
|
|
65
|
-
|
|
65
|
+
const f = i.bind({});
|
|
66
|
+
f.args = {
|
|
66
67
|
...r,
|
|
67
68
|
isLoading: !0,
|
|
68
69
|
spinnerAriaValueText: "Loading"
|
|
69
70
|
};
|
|
70
71
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
f as Loading,
|
|
73
|
+
u as ModalDialogExample,
|
|
74
|
+
F as default
|
|
74
75
|
};
|
|
75
76
|
//# 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 { FormField } from 'components/FormField';\nimport { InputField } from 'components/InputField';\nimport { Label } from 'components/Label';\
|
|
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) => (\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"],"names":["ModalDialog_stories","ModalDialog","Template","args","jsx","ModalProvider","jsxs","FormField","Label","InputField","defaultArgs","fn","ButtonGroup","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,EAACC,GAAU,EAAA,YAAU,IACnB,UAAA;AAAA,EAAC,gBAAAH,EAAAI,GAAA,EAAM,SAAQ,cAAa,UAAkB,sBAAA;AAAA,EAC9C,gBAAAJ,EAACK,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,gBAAAL,EAACM,GAAY,EAAA,UAAQ,IACnB,UAAA;AAAA,IAAA,gBAAAR,EAACS,KAAO,SAAQ,WAAU,SAASF,KAAM,UAEzC,MAAA;AAAA,sBACCE,GAAO,EAAA,SAAQ,aAAY,SAASF,KAAM,UAE3C,UAAA;AAAA,EAAA,GACF;AAAA,EAEF,QAAQ;AACV,GAEaG,IAAqBZ,EAAS,KAAK,EAAE;AAClDY,EAAmB,OAAO;AAAA,EACxB,GAAGJ;AACL;AAEO,MAAMK,IAAUb,EAAS,KAAK,EAAE;AACvCa,EAAQ,OAAO;AAAA,EACb,GAAGL;AAAA,EACH,WAAW;AAAA,EACX,sBAAsB;AACxB;"}
|
|
@@ -2,7 +2,9 @@ export * from './Accordion';
|
|
|
2
2
|
export * from './AppStatusBar';
|
|
3
3
|
export * from './Backdrop';
|
|
4
4
|
export * from './Button';
|
|
5
|
+
export * from './ButtonGroup';
|
|
5
6
|
export * from './Card';
|
|
7
|
+
export * from './Checkbox';
|
|
6
8
|
export * from './FieldHint';
|
|
7
9
|
export * from './FormField';
|
|
8
10
|
export * from './Icon';
|
package/dist/components/index.js
CHANGED
|
@@ -1,50 +1,54 @@
|
|
|
1
1
|
import { Accordion as t } from "./Accordion/Accordion.js";
|
|
2
2
|
import { AppStatusBar as p } from "./AppStatusBar/AppStatusBar.js";
|
|
3
|
-
import { Backdrop as
|
|
4
|
-
import { Button as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { M as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
3
|
+
import { Backdrop as x } from "./Backdrop/Backdrop.js";
|
|
4
|
+
import { Button as n } from "./Button/Button.js";
|
|
5
|
+
import { ButtonGroup as a } from "./ButtonGroup/ButtonGroup.js";
|
|
6
|
+
import { Card as c } from "./Card/Card.js";
|
|
7
|
+
import { Checkbox as d } from "./Checkbox/Checkbox.js";
|
|
8
|
+
import { FieldHint as B } from "./FieldHint/FieldHint.js";
|
|
9
|
+
import { FormField as S } from "./FormField/FormField.js";
|
|
10
|
+
import { Icon as F } from "./Icon/Icon.js";
|
|
11
|
+
import { IconButton as b } from "./IconButton/IconButton.js";
|
|
12
|
+
import { InfoMessage as C } from "./InfoMessage/InfoMessage.js";
|
|
13
|
+
import { Input as v } from "./Input/Input.js";
|
|
14
|
+
import { InputField as D } from "./InputField/InputField.js";
|
|
15
|
+
import { Label as y } from "./Label/Label.js";
|
|
16
|
+
import { M as H } from "../MenuLink-CLEqkVVh.js";
|
|
17
|
+
import { MetaDataList as O } from "./MetaDataList/MetaDataList.js";
|
|
18
|
+
import { M as R } from "../ModalDialog-B1c9QYLZ.js";
|
|
19
|
+
import { OverlayCloseButton as j } from "./OverlayCloseButton/OverlayCloseButton.js";
|
|
20
|
+
import { RadioButton as w } from "./RadioButton/RadioButton.js";
|
|
21
|
+
import { SectionNotification as E } from "./SectionNotification/SectionNotification.js";
|
|
22
|
+
import { SelectListbox as K } from "./SelectListbox/SelectListbox.js";
|
|
23
|
+
import { SelectProvider as U, useSelect as V } from "./SelectListbox/SelectProvider.js";
|
|
24
|
+
import { Spinner as X } from "./Spinner/Spinner.js";
|
|
25
|
+
import { Tooltip as Z } from "./Tooltip/Tooltip.js";
|
|
24
26
|
export {
|
|
25
27
|
t as Accordion,
|
|
26
28
|
p as AppStatusBar,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
a as
|
|
30
|
-
c as
|
|
31
|
-
|
|
32
|
-
B as
|
|
33
|
-
S as
|
|
34
|
-
F as
|
|
35
|
-
b as
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
D as
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
29
|
+
x as Backdrop,
|
|
30
|
+
n as Button,
|
|
31
|
+
a as ButtonGroup,
|
|
32
|
+
c as Card,
|
|
33
|
+
d as Checkbox,
|
|
34
|
+
B as FieldHint,
|
|
35
|
+
S as FormField,
|
|
36
|
+
F as Icon,
|
|
37
|
+
b as IconButton,
|
|
38
|
+
C as InfoMessage,
|
|
39
|
+
v as Input,
|
|
40
|
+
D as InputField,
|
|
41
|
+
y as Label,
|
|
42
|
+
H as MenuLink,
|
|
43
|
+
O as MetaDataList,
|
|
44
|
+
R as ModalDialog,
|
|
45
|
+
j as OverlayCloseButton,
|
|
46
|
+
w as RadioButton,
|
|
47
|
+
E as SectionNotification,
|
|
48
|
+
K as SelectListbox,
|
|
49
|
+
U as SelectProvider,
|
|
50
|
+
X as Spinner,
|
|
51
|
+
Z as Tooltip,
|
|
52
|
+
V as useSelect
|
|
49
53
|
};
|
|
50
54
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,50 +1,54 @@
|
|
|
1
1
|
import { Accordion as t } from "./components/Accordion/Accordion.js";
|
|
2
2
|
import { AppStatusBar as p } from "./components/AppStatusBar/AppStatusBar.js";
|
|
3
|
-
import { Backdrop as
|
|
4
|
-
import { Button as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { M as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
3
|
+
import { Backdrop as x } from "./components/Backdrop/Backdrop.js";
|
|
4
|
+
import { Button as n } from "./components/Button/Button.js";
|
|
5
|
+
import { ButtonGroup as a } from "./components/ButtonGroup/ButtonGroup.js";
|
|
6
|
+
import { Card as c } from "./components/Card/Card.js";
|
|
7
|
+
import { Checkbox as d } from "./components/Checkbox/Checkbox.js";
|
|
8
|
+
import { FieldHint as B } from "./components/FieldHint/FieldHint.js";
|
|
9
|
+
import { FormField as S } from "./components/FormField/FormField.js";
|
|
10
|
+
import { Icon as F } from "./components/Icon/Icon.js";
|
|
11
|
+
import { IconButton as b } from "./components/IconButton/IconButton.js";
|
|
12
|
+
import { InfoMessage as C } from "./components/InfoMessage/InfoMessage.js";
|
|
13
|
+
import { Input as v } from "./components/Input/Input.js";
|
|
14
|
+
import { InputField as D } from "./components/InputField/InputField.js";
|
|
15
|
+
import { Label as y } from "./components/Label/Label.js";
|
|
16
|
+
import { M as H } from "./MenuLink-CLEqkVVh.js";
|
|
17
|
+
import { MetaDataList as O } from "./components/MetaDataList/MetaDataList.js";
|
|
18
|
+
import { M as R } from "./ModalDialog-B1c9QYLZ.js";
|
|
19
|
+
import { OverlayCloseButton as j } from "./components/OverlayCloseButton/OverlayCloseButton.js";
|
|
20
|
+
import { RadioButton as w } from "./components/RadioButton/RadioButton.js";
|
|
21
|
+
import { SectionNotification as E } from "./components/SectionNotification/SectionNotification.js";
|
|
22
|
+
import { SelectListbox as K } from "./components/SelectListbox/SelectListbox.js";
|
|
23
|
+
import { SelectProvider as U, useSelect as V } from "./components/SelectListbox/SelectProvider.js";
|
|
24
|
+
import { Spinner as X } from "./components/Spinner/Spinner.js";
|
|
25
|
+
import { Tooltip as Z } from "./components/Tooltip/Tooltip.js";
|
|
24
26
|
export {
|
|
25
27
|
t as Accordion,
|
|
26
28
|
p as AppStatusBar,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
a as
|
|
30
|
-
c as
|
|
31
|
-
|
|
32
|
-
B as
|
|
33
|
-
S as
|
|
34
|
-
F as
|
|
35
|
-
b as
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
D as
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
29
|
+
x as Backdrop,
|
|
30
|
+
n as Button,
|
|
31
|
+
a as ButtonGroup,
|
|
32
|
+
c as Card,
|
|
33
|
+
d as Checkbox,
|
|
34
|
+
B as FieldHint,
|
|
35
|
+
S as FormField,
|
|
36
|
+
F as Icon,
|
|
37
|
+
b as IconButton,
|
|
38
|
+
C as InfoMessage,
|
|
39
|
+
v as Input,
|
|
40
|
+
D as InputField,
|
|
41
|
+
y as Label,
|
|
42
|
+
H as MenuLink,
|
|
43
|
+
O as MetaDataList,
|
|
44
|
+
R as ModalDialog,
|
|
45
|
+
j as OverlayCloseButton,
|
|
46
|
+
w as RadioButton,
|
|
47
|
+
E as SectionNotification,
|
|
48
|
+
K as SelectListbox,
|
|
49
|
+
U as SelectProvider,
|
|
50
|
+
X as Spinner,
|
|
51
|
+
Z as Tooltip,
|
|
52
|
+
V as useSelect
|
|
49
53
|
};
|
|
50
54
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uva-glass/component-library",
|
|
3
3
|
"author": "Team Glass - Frontend vrienden",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.24.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@storybook/react": "^8.1.5",
|
|
56
56
|
"@storybook/react-vite": "^8.1.5",
|
|
57
57
|
"@storybook/test": "^8.1.5",
|
|
58
|
-
"@types/node": "^20.
|
|
58
|
+
"@types/node": "^20.14.0",
|
|
59
59
|
"@types/react": "^18.3.3",
|
|
60
60
|
"@types/react-dom": "^18.3.0",
|
|
61
61
|
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react": "^18.3.1",
|
|
81
81
|
"react-dom": "^18.3.1",
|
|
82
82
|
"react-router-dom": "^6.23.1",
|
|
83
|
-
"semantic-release": "^
|
|
83
|
+
"semantic-release": "^24.0.0",
|
|
84
84
|
"storybook": "^8.1.5",
|
|
85
85
|
"style-dictionary": "^3.9.2",
|
|
86
86
|
"stylelint": "^16.6.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._modal-dialog_14t7m_1{--modal-dialog-padding: 1.5rem;--modal-dialog-padding-mobile: 1.25rem;background:var(--color-white);box-shadow:0 2px 2px #0000000f,0 4px 3px #00000012;display:flex;flex-direction:column;height:100dvh;position:relative;width:100vw}._modal-dialog--padded_14t7m_18{padding:0}._modal-dialog__content_14t7m_22{display:flex;flex-direction:column;height:100svh;justify-content:space-between;overflow:auto;padding:0 var(--modal-dialog-padding-mobile);width:100%}._modal-dialog__children_14t7m_32{padding-bottom:var(--modal-dialog-padding-mobile)}._modal-dialog__title_14t7m_36{font-size:var(--font-size-m);line-height:var(--line-height-m);margin:0 var(--modal-dialog-padding-mobile) 0 0;padding:var(--modal-dialog-padding-mobile)}._modal-dialog--confirm_14t7m_43{padding:var(--modal-dialog-padding-mobile) 0 0}._modal-dialog__buttons_14t7m_47{background-color:var(--color-white);bottom:0;display:flex;flex-direction:column;gap:.75rem;justify-content:flex-start;margin:0 calc(-1 * var(--modal-dialog-padding-mobile));padding:var(--modal-dialog-padding-mobile);position:sticky;right:0}._modal-dialog--buttons-border_14t7m_60{border-top:1px solid var(--color-pattens-blue)}._modal-dialog__close_14t7m_64{position:absolute;right:var(--modal-dialog-padding-mobile);top:var(--modal-dialog-padding-mobile)}@media (min-width: 28rem) and (min-height: 28rem){._modal-dialog_14t7m_1{height:unset;max-height:100svh;max-width:100vw;width:30rem}._modal-dialog--padded_14t7m_18{width:34.25rem}._modal-dialog--slim_14t7m_82{width:27.5rem}._modal-dialog--wide_14t7m_86{width:36rem}._modal-dialog__title_14t7m_36{margin-right:var(--modal-dialog-padding);padding:var(--modal-dialog-padding)}._modal-dialog__content_14t7m_22{height:unset;padding:0 var(--modal-dialog-padding)}._modal-dialog--content-with-buttons_14t7m_100{margin-bottom:6.25rem}._modal-dialog__children_14t7m_32{padding-bottom:var(--modal-dialog-padding)}._modal-dialog--confirm_14t7m_43{padding:var(--modal-dialog-padding) 0 0}._modal-dialog__buttons_14t7m_47{margin:unset;padding:var(--modal-dialog-padding);position:absolute;width:inherit}._modal-dialog__close_14t7m_64{position:absolute;right:var(--modal-dialog-padding);top:var(--modal-dialog-padding)}}
|