@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.
@@ -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,5 @@
1
+ import { FormField as e } from "./FormField.js";
2
+ export {
3
+ e as FormField
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -4,6 +4,7 @@ export * from './Backdrop';
4
4
  export * from './Button';
5
5
  export * from './Card';
6
6
  export * from './FieldHint';
7
+ export * from './FormField';
7
8
  export * from './Icon';
8
9
  export * from './IconButton';
9
10
  export * from './InfoMessage';
@@ -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 x } from "./Backdrop/Backdrop.js";
4
- import { Button as n } from "./Button/Button.js";
5
- import { Card as i } from "./Card/Card.js";
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 { Icon as u } from "./Icon/Icon.js";
8
- import { IconButton as B } from "./IconButton/IconButton.js";
9
- import { InfoMessage as S } from "./InfoMessage/InfoMessage.js";
10
- import { Input as L } from "./Input/Input.js";
11
- import { InputField as g } from "./InputField/InputField.js";
12
- import { Label as v } from "./Label/Label.js";
13
- import { M as C } from "../MenuLink-CLEqkVVh.js";
14
- import { MetaDataList as F } from "./MetaDataList/MetaDataList.js";
15
- import { M as H } from "../ModalDialog-yEr_JLht.js";
16
- import { OverlayCloseButton as O } from "./OverlayCloseButton/OverlayCloseButton.js";
17
- import { RadioButton as R } from "./RadioButton/RadioButton.js";
18
- import { SectionNotification as h } from "./SectionNotification/SectionNotification.js";
19
- import { SelectListbox as q } from "./SelectListbox/SelectListbox.js";
20
- import { SelectProvider as z, useSelect as E } from "./SelectListbox/SelectProvider.js";
21
- import { Spinner as J } from "./Spinner/Spinner.js";
22
- import { Tooltip as Q } from "./Tooltip/Tooltip.js";
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
- x as Backdrop,
27
- n as Button,
28
- i as Card,
27
+ m as Backdrop,
28
+ i as Button,
29
+ a as Card,
29
30
  c as FieldHint,
30
- u as Icon,
31
- B as IconButton,
32
- S as InfoMessage,
33
- L as Input,
34
- g as InputField,
35
- v as Label,
36
- C as MenuLink,
37
- F as MetaDataList,
38
- H as ModalDialog,
39
- O as OverlayCloseButton,
40
- R as RadioButton,
41
- h as SectionNotification,
42
- q as SelectListbox,
43
- z as SelectProvider,
44
- J as Spinner,
45
- Q as Tooltip,
46
- E as useSelect
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 x } from "./components/Backdrop/Backdrop.js";
4
- import { Button as n } from "./components/Button/Button.js";
5
- import { Card as i } from "./components/Card/Card.js";
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 { Icon as u } from "./components/Icon/Icon.js";
8
- import { IconButton as B } from "./components/IconButton/IconButton.js";
9
- import { InfoMessage as S } from "./components/InfoMessage/InfoMessage.js";
10
- import { Input as L } from "./components/Input/Input.js";
11
- import { InputField as g } from "./components/InputField/InputField.js";
12
- import { Label as v } from "./components/Label/Label.js";
13
- import { M as C } from "./MenuLink-CLEqkVVh.js";
14
- import { MetaDataList as F } from "./components/MetaDataList/MetaDataList.js";
15
- import { M as H } from "./ModalDialog-yEr_JLht.js";
16
- import { OverlayCloseButton as O } from "./components/OverlayCloseButton/OverlayCloseButton.js";
17
- import { RadioButton as R } from "./components/RadioButton/RadioButton.js";
18
- import { SectionNotification as h } from "./components/SectionNotification/SectionNotification.js";
19
- import { SelectListbox as q } from "./components/SelectListbox/SelectListbox.js";
20
- import { SelectProvider as z, useSelect as E } from "./components/SelectListbox/SelectProvider.js";
21
- import { Spinner as J } from "./components/Spinner/Spinner.js";
22
- import { Tooltip as Q } from "./components/Tooltip/Tooltip.js";
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
- x as Backdrop,
27
- n as Button,
28
- i as Card,
27
+ m as Backdrop,
28
+ i as Button,
29
+ a as Card,
29
30
  c as FieldHint,
30
- u as Icon,
31
- B as IconButton,
32
- S as InfoMessage,
33
- L as Input,
34
- g as InputField,
35
- v as Label,
36
- C as MenuLink,
37
- F as MetaDataList,
38
- H as ModalDialog,
39
- O as OverlayCloseButton,
40
- R as RadioButton,
41
- h as SectionNotification,
42
- q as SelectListbox,
43
- z as SelectProvider,
44
- J as Spinner,
45
- Q as Tooltip,
46
- E as useSelect
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":";;;;;;;;;;;;;;;;;;;;;;;"}
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.21.0",
5
+ "version": "1.22.0",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",