@uva-glass/component-library 1.21.0 → 1.22.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/FormField.css +1 -0
- package/dist/components/FormField/FormField.d.ts +7 -0
- package/dist/components/FormField/FormField.js +21 -0
- package/dist/components/FormField/FormField.js.map +1 -0
- package/dist/components/FormField/FormField.stories.d.ts +6 -0
- package/dist/components/FormField/FormField.stories.js +37 -0
- package/dist/components/FormField/FormField.stories.js.map +1 -0
- package/dist/components/FormField/index.d.ts +1 -0
- package/dist/components/FormField/index.js +5 -0
- package/dist/components/FormField/index.js.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +41 -39
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +41 -39
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._form-field_18714_1{display:flex;flex-direction:column;gap:.5rem 1rem}._form-field--outerspace_18714_7{margin:1.5rem 0}._form-field--inline_18714_11{align-items:center;flex-direction:row}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
outerSpace?: boolean;
|
|
5
|
+
inline?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormField: ({ children, outerSpace, inline, ...rest }: PropsWithChildren<FormFieldProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "../../clsx-DB4S2d7J.js";
|
|
3
|
+
import '../../assets/FormField.css';const e = {
|
|
4
|
+
"form-field": "_form-field_18714_1",
|
|
5
|
+
"form-field--outerspace": "_form-field--outerspace_18714_7",
|
|
6
|
+
"form-field--inline": "_form-field--inline_18714_11"
|
|
7
|
+
}, t = ({ children: f, outerSpace: o, inline: i, ...r }) => /* @__PURE__ */ l(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
className: m(e["form-field"], {
|
|
11
|
+
[e["form-field--outerspace"]]: o,
|
|
12
|
+
[e["form-field--inline"]]: i
|
|
13
|
+
}),
|
|
14
|
+
...r,
|
|
15
|
+
children: f
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
export {
|
|
19
|
+
t as FormField
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=FormField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormField.js","sources":["../../../src/components/FormField/FormField.tsx"],"sourcesContent":["import classNames from 'clsx';\n\nimport type { HTMLAttributes, PropsWithChildren } from 'react';\n\nimport styles from './FormField.module.css';\n\nexport interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {\n outerSpace?: boolean;\n inline?: boolean;\n}\n\nexport const FormField = ({ children, outerSpace, inline, ...rest }: PropsWithChildren<FormFieldProps>) => (\n <div\n className={classNames(styles['form-field'], {\n [styles['form-field--outerspace']]: outerSpace,\n [styles['form-field--inline']]: inline,\n })}\n {...rest}\n >\n {children}\n </div>\n);\n"],"names":["FormField","children","outerSpace","inline","rest","jsx","classNames","styles"],"mappings":";;;;;;GAWaA,IAAY,CAAC,EAAE,UAAAC,GAAU,YAAAC,GAAY,QAAAC,GAAQ,GAAGC,QAC3D,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAWC,EAAO,YAAY,GAAG;AAAA,MAC1C,CAACA,EAAO,wBAAwB,CAAC,GAAGL;AAAA,MACpC,CAACK,EAAO,oBAAoB,CAAC,GAAGJ;AAAA,IAAA,CACjC;AAAA,IACA,GAAGC;AAAA,IAEH,UAAAH;AAAA,EAAA;AACH;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { FormFieldProps } from './FormField';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, PropsWithChildren<FormFieldProps>>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const FormFieldExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<FormFieldProps>>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { FormField as l } from "./FormField.js";
|
|
3
|
+
import { InputField as t } from "../InputField/InputField.js";
|
|
4
|
+
import { Label as i } from "../Label/Label.js";
|
|
5
|
+
import { Container as a } from "../storyComponents/Container/Container.js";
|
|
6
|
+
const h = {
|
|
7
|
+
title: "Atoms/FormField",
|
|
8
|
+
component: l,
|
|
9
|
+
argTypes: {
|
|
10
|
+
outerSpace: {
|
|
11
|
+
control: "boolean"
|
|
12
|
+
},
|
|
13
|
+
inline: {
|
|
14
|
+
control: "boolean"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}, n = (r) => /* @__PURE__ */ o(a, { children: [
|
|
18
|
+
/* @__PURE__ */ o(l, { ...r, children: [
|
|
19
|
+
/* @__PURE__ */ e(i, { htmlFor: "d6aa53fd", children: "Example label 1" }),
|
|
20
|
+
/* @__PURE__ */ e(t, { id: "d6aa53fd" })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ o(l, { ...r, children: [
|
|
23
|
+
/* @__PURE__ */ e(i, { htmlFor: "4e7a2f22", children: "Example label 2" }),
|
|
24
|
+
/* @__PURE__ */ e(t, { id: "4e7a2f22" })
|
|
25
|
+
] })
|
|
26
|
+
] }), m = {
|
|
27
|
+
outerSpace: !1,
|
|
28
|
+
inline: !1
|
|
29
|
+
}, d = n.bind({});
|
|
30
|
+
d.args = {
|
|
31
|
+
...m
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
d as FormFieldExample,
|
|
35
|
+
h as default
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=FormField.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormField.stories.js","sources":["../../../src/components/FormField/FormField.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { PropsWithChildren } from 'react';\nimport type { FormFieldProps } from './FormField';\n\nimport { FormField } from './FormField';\n\nimport { InputField } from 'components/InputField';\nimport { Label } from 'components/Label';\nimport { Container } from 'components/storyComponents/Container';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/FormField',\n component: FormField,\n argTypes: {\n outerSpace: {\n control: 'boolean',\n },\n inline: {\n control: 'boolean',\n },\n },\n} as Meta<PropsWithChildren<FormFieldProps>>;\n\nconst Template: StoryFn<PropsWithChildren<FormFieldProps>> = (args) => (\n <Container>\n <FormField {...args}>\n <Label htmlFor=\"d6aa53fd\">Example label 1</Label>\n <InputField id=\"d6aa53fd\" />\n </FormField>\n <FormField {...args}>\n <Label htmlFor=\"4e7a2f22\">Example label 2</Label>\n <InputField id=\"4e7a2f22\" />\n </FormField>\n </Container>\n);\n\nconst defaultArgs: Partial<PropsWithChildren<FormFieldProps>> = {\n outerSpace: false,\n inline: false,\n};\n\nexport const FormFieldExample = Template.bind({});\nFormFieldExample.args = {\n ...defaultArgs,\n};\n"],"names":["FormField_stories","FormField","Template","args","jsxs","Container","jsx","Label","InputField","defaultArgs","FormFieldExample"],"mappings":";;;;;AAWA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,YAAY;AAAA,MACV,SAAS;AAAA,IACX;AAAA,IACA,QAAQ;AAAA,MACN,SAAS;AAAA,IACX;AAAA,EACF;AACF,GAEMC,IAAuD,CAACC,MAC5D,gBAAAC,EAACC,GACC,EAAA,UAAA;AAAA,EAAC,gBAAAD,EAAAH,GAAA,EAAW,GAAGE,GACb,UAAA;AAAA,IAAC,gBAAAG,EAAAC,GAAA,EAAM,SAAQ,YAAW,UAAe,mBAAA;AAAA,IACzC,gBAAAD,EAACE,GAAW,EAAA,IAAG,WAAW,CAAA;AAAA,EAAA,GAC5B;AAAA,EACA,gBAAAJ,EAACH,GAAW,EAAA,GAAGE,GACb,UAAA;AAAA,IAAC,gBAAAG,EAAAC,GAAA,EAAM,SAAQ,YAAW,UAAe,mBAAA;AAAA,IACzC,gBAAAD,EAACE,GAAW,EAAA,IAAG,WAAW,CAAA;AAAA,EAAA,GAC5B;AAAA,EACF,CAAA,GAGIC,IAA0D;AAAA,EAC9D,YAAY;AAAA,EACZ,QAAQ;AACV,GAEaC,IAAmBR,EAAS,KAAK,EAAE;AAChDQ,EAAiB,OAAO;AAAA,EACtB,GAAGD;AACL;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,48 +1,50 @@
|
|
|
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 { Card as
|
|
3
|
+
import { Backdrop as m } from "./Backdrop/Backdrop.js";
|
|
4
|
+
import { Button as i } from "./Button/Button.js";
|
|
5
|
+
import { Card as a } from "./Card/Card.js";
|
|
6
6
|
import { FieldHint as c } from "./FieldHint/FieldHint.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
7
|
+
import { FormField as s } from "./FormField/FormField.js";
|
|
8
|
+
import { Icon as B } from "./Icon/Icon.js";
|
|
9
|
+
import { IconButton as S } from "./IconButton/IconButton.js";
|
|
10
|
+
import { InfoMessage as F } from "./InfoMessage/InfoMessage.js";
|
|
11
|
+
import { Input as b } from "./Input/Input.js";
|
|
12
|
+
import { InputField as k } from "./InputField/InputField.js";
|
|
13
|
+
import { Label as A } from "./Label/Label.js";
|
|
14
|
+
import { M as D } from "../MenuLink-CLEqkVVh.js";
|
|
15
|
+
import { MetaDataList as H } from "./MetaDataList/MetaDataList.js";
|
|
16
|
+
import { M as O } from "../ModalDialog-yEr_JLht.js";
|
|
17
|
+
import { OverlayCloseButton as R } from "./OverlayCloseButton/OverlayCloseButton.js";
|
|
18
|
+
import { RadioButton as h } from "./RadioButton/RadioButton.js";
|
|
19
|
+
import { SectionNotification as q } from "./SectionNotification/SectionNotification.js";
|
|
20
|
+
import { SelectListbox as z } from "./SelectListbox/SelectListbox.js";
|
|
21
|
+
import { SelectProvider as G, useSelect as J } from "./SelectListbox/SelectProvider.js";
|
|
22
|
+
import { Spinner as Q } from "./Spinner/Spinner.js";
|
|
23
|
+
import { Tooltip as V } from "./Tooltip/Tooltip.js";
|
|
23
24
|
export {
|
|
24
25
|
t as Accordion,
|
|
25
26
|
p as AppStatusBar,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
m as Backdrop,
|
|
28
|
+
i as Button,
|
|
29
|
+
a as Card,
|
|
29
30
|
c as FieldHint,
|
|
30
|
-
|
|
31
|
-
B as
|
|
32
|
-
S as
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
H as
|
|
39
|
-
O as
|
|
40
|
-
R as
|
|
41
|
-
h as
|
|
42
|
-
q as
|
|
43
|
-
z as
|
|
44
|
-
|
|
45
|
-
Q as
|
|
46
|
-
|
|
31
|
+
s as FormField,
|
|
32
|
+
B as Icon,
|
|
33
|
+
S as IconButton,
|
|
34
|
+
F as InfoMessage,
|
|
35
|
+
b as Input,
|
|
36
|
+
k as InputField,
|
|
37
|
+
A as Label,
|
|
38
|
+
D as MenuLink,
|
|
39
|
+
H as MetaDataList,
|
|
40
|
+
O as ModalDialog,
|
|
41
|
+
R as OverlayCloseButton,
|
|
42
|
+
h as RadioButton,
|
|
43
|
+
q as SectionNotification,
|
|
44
|
+
z as SelectListbox,
|
|
45
|
+
G as SelectProvider,
|
|
46
|
+
Q as Spinner,
|
|
47
|
+
V as Tooltip,
|
|
48
|
+
J as useSelect
|
|
47
49
|
};
|
|
48
50
|
//# 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,48 +1,50 @@
|
|
|
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 { Card as
|
|
3
|
+
import { Backdrop as m } from "./components/Backdrop/Backdrop.js";
|
|
4
|
+
import { Button as i } from "./components/Button/Button.js";
|
|
5
|
+
import { Card as a } from "./components/Card/Card.js";
|
|
6
6
|
import { FieldHint as c } from "./components/FieldHint/FieldHint.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
7
|
+
import { FormField as s } from "./components/FormField/FormField.js";
|
|
8
|
+
import { Icon as B } from "./components/Icon/Icon.js";
|
|
9
|
+
import { IconButton as S } from "./components/IconButton/IconButton.js";
|
|
10
|
+
import { InfoMessage as F } from "./components/InfoMessage/InfoMessage.js";
|
|
11
|
+
import { Input as b } from "./components/Input/Input.js";
|
|
12
|
+
import { InputField as k } from "./components/InputField/InputField.js";
|
|
13
|
+
import { Label as A } from "./components/Label/Label.js";
|
|
14
|
+
import { M as D } from "./MenuLink-CLEqkVVh.js";
|
|
15
|
+
import { MetaDataList as H } from "./components/MetaDataList/MetaDataList.js";
|
|
16
|
+
import { M as O } from "./ModalDialog-yEr_JLht.js";
|
|
17
|
+
import { OverlayCloseButton as R } from "./components/OverlayCloseButton/OverlayCloseButton.js";
|
|
18
|
+
import { RadioButton as h } from "./components/RadioButton/RadioButton.js";
|
|
19
|
+
import { SectionNotification as q } from "./components/SectionNotification/SectionNotification.js";
|
|
20
|
+
import { SelectListbox as z } from "./components/SelectListbox/SelectListbox.js";
|
|
21
|
+
import { SelectProvider as G, useSelect as J } from "./components/SelectListbox/SelectProvider.js";
|
|
22
|
+
import { Spinner as Q } from "./components/Spinner/Spinner.js";
|
|
23
|
+
import { Tooltip as V } from "./components/Tooltip/Tooltip.js";
|
|
23
24
|
export {
|
|
24
25
|
t as Accordion,
|
|
25
26
|
p as AppStatusBar,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
m as Backdrop,
|
|
28
|
+
i as Button,
|
|
29
|
+
a as Card,
|
|
29
30
|
c as FieldHint,
|
|
30
|
-
|
|
31
|
-
B as
|
|
32
|
-
S as
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
H as
|
|
39
|
-
O as
|
|
40
|
-
R as
|
|
41
|
-
h as
|
|
42
|
-
q as
|
|
43
|
-
z as
|
|
44
|
-
|
|
45
|
-
Q as
|
|
46
|
-
|
|
31
|
+
s as FormField,
|
|
32
|
+
B as Icon,
|
|
33
|
+
S as IconButton,
|
|
34
|
+
F as InfoMessage,
|
|
35
|
+
b as Input,
|
|
36
|
+
k as InputField,
|
|
37
|
+
A as Label,
|
|
38
|
+
D as MenuLink,
|
|
39
|
+
H as MetaDataList,
|
|
40
|
+
O as ModalDialog,
|
|
41
|
+
R as OverlayCloseButton,
|
|
42
|
+
h as RadioButton,
|
|
43
|
+
q as SectionNotification,
|
|
44
|
+
z as SelectListbox,
|
|
45
|
+
G as SelectProvider,
|
|
46
|
+
Q as Spinner,
|
|
47
|
+
V as Tooltip,
|
|
48
|
+
J as useSelect
|
|
47
49
|
};
|
|
48
50
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;"}
|