@uva-glass/component-library 1.17.1 → 1.18.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
+ ._backdrop_k1x6d_1{bottom:0;left:0;position:fixed;right:0;top:0;z-index:100}@media (min-width: 28rem) and (min-height: 28rem){._backdrop_k1x6d_1{align-items:center;background:var(--color-black-transparent);display:flex;justify-content:center}}
@@ -0,0 +1 @@
1
+ .container{align-items:center;background-color:var(--color-white);border:2px dotted var(--color-black);display:flex;height:10rem;justify-content:center;padding:1rem;position:relative;width:10rem}
@@ -1 +1 @@
1
- ._container_13q1e_1{background-color:var(--color-white);border:2px dotted var(--color-black);padding:1rem;position:relative}._container--small_13q1e_8{height:10rem;width:10rem}._container--medium_13q1e_13{height:30rem;width:30rem}._container--large_13q1e_18{height:50rem;width:50rem}
1
+ ._container_u74kd_1{background-color:var(--color-white);border:2px dotted var(--color-black);padding:1rem;position:relative}._container--small_u74kd_8{height:10rem;width:10rem}._container--medium_u74kd_13{height:30rem;width:30rem}._container--large_u74kd_18{height:50rem;width:50rem}._container--hidden_u74kd_23{display:none}
@@ -0,0 +1,4 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export type BackdropProps = Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'style'>;
4
+ export declare const Backdrop: ({ children, ...restProps }: BackdropProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import '../../assets/Backdrop.css';const s = "_backdrop_k1x6d_1", a = {
3
+ backdrop: s
4
+ }, p = ({ children: o, ...c }) => /* @__PURE__ */ r("div", { ...c, className: a.backdrop, children: o });
5
+ export {
6
+ p as Backdrop
7
+ };
8
+ //# sourceMappingURL=Backdrop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Backdrop.js","sources":["../../../src/components/Backdrop/Backdrop.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\n\nimport styles from './Backdrop.module.css';\n\nexport type BackdropProps = Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'style'>;\n\nexport const Backdrop = ({ children, ...restProps }: BackdropProps) => (\n <div {...restProps} className={styles['backdrop']}>\n {children}\n </div>\n);\n"],"names":["Backdrop","children","restProps","jsx","styles"],"mappings":";;;GAMaA,IAAW,CAAC,EAAE,UAAAC,GAAU,GAAGC,EAAU,MAC/C,gBAAAC,EAAA,OAAA,EAAK,GAAGD,GAAW,WAAWE,EAAO,UACnC,UAAAH,EACH,CAAA;"}
@@ -0,0 +1,8 @@
1
+ import { BackdropProps } from './Backdrop';
2
+
3
+ type BackdropStoryProps = BackdropProps & {
4
+ visible: boolean;
5
+ };
6
+ declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, BackdropStoryProps>;
7
+ export default _default;
8
+ export declare const BackdropExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, BackdropStoryProps>;
@@ -0,0 +1,25 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Backdrop as r } from "./Backdrop.js";
3
+ import { Container as i } from "../storyComponents/Container/Container.js";
4
+ import '../../assets/Backdrop2.css';const s = {
5
+ title: "Atoms/Backdrop",
6
+ component: r,
7
+ argTypes: {
8
+ children: {
9
+ control: "text"
10
+ },
11
+ visible: {
12
+ control: "boolean",
13
+ name: "Show Backdrop"
14
+ }
15
+ }
16
+ }, t = (o) => /* @__PURE__ */ e(i, { visible: o.visible, children: /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e("div", { className: "container", children: o.children }) }) }), n = t.bind({});
17
+ n.args = {
18
+ visible: !0,
19
+ children: "Dummy Overlay"
20
+ };
21
+ export {
22
+ n as BackdropExample,
23
+ s as default
24
+ };
25
+ //# sourceMappingURL=Backdrop.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Backdrop.stories.js","sources":["../../../src/components/Backdrop/Backdrop.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { BackdropProps } from './Backdrop';\n\nimport { Backdrop } from './Backdrop';\n\nimport { Container } from 'components/storyComponents/Container';\n\nimport './Backdrop.stories.css';\n\ntype BackdropStoryProps = BackdropProps & { visible: boolean };\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Backdrop',\n component: Backdrop,\n argTypes: {\n children: {\n control: 'text',\n },\n visible: {\n control: 'boolean',\n name: 'Show Backdrop',\n },\n },\n} as Meta<BackdropStoryProps>;\n\nconst Template: StoryFn<BackdropStoryProps> = (args) => {\n return (\n <Container visible={args.visible}>\n <Backdrop>\n <div className=\"container\">{args.children}</div>\n </Backdrop>\n </Container>\n );\n};\n\nexport const BackdropExample = Template.bind({});\nBackdropExample.args = {\n visible: true,\n children: 'Dummy Overlay',\n};\n"],"names":["Backdrop_stories","Backdrop","Template","args","jsx","Container","BackdropExample"],"mappings":";;;AAYA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,UAAU;AAAA,MACR,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF,GAEMC,IAAwC,CAACC,MAE1C,gBAAAC,EAAAC,GAAA,EAAU,SAASF,EAAK,SACvB,UAAC,gBAAAC,EAAAH,GAAA,EACC,UAAC,gBAAAG,EAAA,OAAA,EAAI,WAAU,aAAa,UAAKD,EAAA,SAAS,CAAA,GAC5C,EACF,CAAA,GAISG,IAAkBJ,EAAS,KAAK,EAAE;AAC/CI,EAAgB,OAAO;AAAA,EACrB,SAAS;AAAA,EACT,UAAU;AACZ;"}
@@ -0,0 +1 @@
1
+ export * from './Backdrop';
@@ -0,0 +1,5 @@
1
+ import { Backdrop as p } from "./Backdrop.js";
2
+ export {
3
+ p as Backdrop
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,4 +1,5 @@
1
1
  export * from './AppStatusBar';
2
+ export * from './Backdrop';
2
3
  export * from './Button';
3
4
  export * from './Card';
4
5
  export * from './FieldHint';
@@ -1,40 +1,42 @@
1
1
  import { AppStatusBar as t } from "./AppStatusBar/AppStatusBar.js";
2
- import { Button as p } from "./Button/Button.js";
3
- import { Card as x } from "./Card/Card.js";
4
- import { FieldHint as n } from "./FieldHint/FieldHint.js";
5
- import { Icon as a } from "./Icon/Icon.js";
6
- import { IconButton as l } from "./IconButton/IconButton.js";
7
- import { InfoMessage as c } from "./InfoMessage/InfoMessage.js";
8
- import { Input as d } from "./Input/Input.js";
9
- import { InputField as I } from "./InputField/InputField.js";
10
- import { Label as M } from "./Label/Label.js";
11
- import { M as v } from "../MenuLink-DDAin3rf.js";
12
- import { MetaDataList as F } from "./MetaDataList/MetaDataList.js";
13
- import { OverlayCloseButton as k } from "./OverlayCloseButton/OverlayCloseButton.js";
14
- import { RadioButton as A } from "./RadioButton/RadioButton.js";
15
- import { SectionNotification as H } from "./SectionNotification/SectionNotification.js";
16
- import { SelectListbox as O } from "./SelectListbox/SelectListbox.js";
17
- import { SelectProvider as R, useSelect as h } from "./SelectListbox/SelectProvider.js";
18
- import { Spinner as q } from "./Spinner/Spinner.js";
2
+ import { Backdrop as p } from "./Backdrop/Backdrop.js";
3
+ import { Button as x } from "./Button/Button.js";
4
+ import { Card as n } from "./Card/Card.js";
5
+ import { FieldHint as i } from "./FieldHint/FieldHint.js";
6
+ import { Icon as c } from "./Icon/Icon.js";
7
+ import { IconButton as s } from "./IconButton/IconButton.js";
8
+ import { InfoMessage as B } from "./InfoMessage/InfoMessage.js";
9
+ import { Input as I } from "./Input/Input.js";
10
+ import { InputField as M } from "./InputField/InputField.js";
11
+ import { Label as k } from "./Label/Label.js";
12
+ import { M as C } from "../MenuLink-DDAin3rf.js";
13
+ import { MetaDataList as g } from "./MetaDataList/MetaDataList.js";
14
+ import { OverlayCloseButton as A } from "./OverlayCloseButton/OverlayCloseButton.js";
15
+ import { RadioButton as H } from "./RadioButton/RadioButton.js";
16
+ import { SectionNotification as O } from "./SectionNotification/SectionNotification.js";
17
+ import { SelectListbox as R } from "./SelectListbox/SelectListbox.js";
18
+ import { SelectProvider as j, useSelect as q } from "./SelectListbox/SelectProvider.js";
19
+ import { Spinner as z } from "./Spinner/Spinner.js";
19
20
  export {
20
21
  t as AppStatusBar,
21
- p as Button,
22
- x as Card,
23
- n as FieldHint,
24
- a as Icon,
25
- l as IconButton,
26
- c as InfoMessage,
27
- d as Input,
28
- I as InputField,
29
- M as Label,
30
- v as MenuLink,
31
- F as MetaDataList,
32
- k as OverlayCloseButton,
33
- A as RadioButton,
34
- H as SectionNotification,
35
- O as SelectListbox,
36
- R as SelectProvider,
37
- q as Spinner,
38
- h as useSelect
22
+ p as Backdrop,
23
+ x as Button,
24
+ n as Card,
25
+ i as FieldHint,
26
+ c as Icon,
27
+ s as IconButton,
28
+ B as InfoMessage,
29
+ I as Input,
30
+ M as InputField,
31
+ k as Label,
32
+ C as MenuLink,
33
+ g as MetaDataList,
34
+ A as OverlayCloseButton,
35
+ H as RadioButton,
36
+ O as SectionNotification,
37
+ R as SelectListbox,
38
+ j as SelectProvider,
39
+ z as Spinner,
40
+ q as useSelect
39
41
  };
40
42
  //# 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":";;;;;;;;;;;;;;;;;;;"}
@@ -2,6 +2,7 @@ import { PropsWithChildren } from 'react';
2
2
 
3
3
  interface ContainerProps {
4
4
  size?: 'small' | 'medium' | 'large';
5
+ visible?: boolean;
5
6
  }
6
- export declare const Container: ({ children, size }: PropsWithChildren<ContainerProps>) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Container: ({ children, size, visible }: PropsWithChildren<ContainerProps>) => import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -1,26 +1,28 @@
1
- import { jsxs as o, Fragment as t, jsx as r } from "react/jsx-runtime";
2
- import { c as i } from "../../../clsx-DB4S2d7J.js";
3
- import '../../../assets/Container.css';const c = "_container_13q1e_1", n = {
4
- container: c,
5
- "container--small": "_container--small_13q1e_8",
6
- "container--medium": "_container--medium_13q1e_13",
7
- "container--large": "_container--large_13q1e_18"
8
- }, s = ({ children: a, size: e = "medium" }) => /* @__PURE__ */ o(t, { children: [
1
+ import { jsxs as t, Fragment as o, jsx as r } from "react/jsx-runtime";
2
+ import { c } from "../../../clsx-DB4S2d7J.js";
3
+ import '../../../assets/Container.css';const d = "_container_u74kd_1", n = {
4
+ container: d,
5
+ "container--small": "_container--small_u74kd_8",
6
+ "container--medium": "_container--medium_u74kd_13",
7
+ "container--large": "_container--large_u74kd_18",
8
+ "container--hidden": "_container--hidden_u74kd_23"
9
+ }, _ = ({ children: a, size: e = "medium", visible: i = !0 }) => /* @__PURE__ */ t(o, { children: [
9
10
  /* @__PURE__ */ r("label", { htmlFor: "container", children: "Storybook container with 1rem padding" }),
10
11
  /* @__PURE__ */ r(
11
12
  "div",
12
13
  {
13
14
  id: "container",
14
- className: i(n.container, {
15
+ className: c(n.container, {
15
16
  [n["container--small"]]: e === "small",
16
17
  [n["container--medium"]]: e === "medium",
17
- [n["container--large"]]: e === "large"
18
+ [n["container--large"]]: e === "large",
19
+ [n["container--hidden"]]: !i
18
20
  }),
19
21
  children: a
20
22
  }
21
23
  )
22
24
  ] });
23
25
  export {
24
- s as Container
26
+ _ as Container
25
27
  };
26
28
  //# sourceMappingURL=Container.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Container.js","sources":["../../../../src/components/storyComponents/Container/Container.tsx"],"sourcesContent":["import clsx from 'clsx';\n\nimport type { PropsWithChildren } from 'react';\n\nimport styles from './Container.module.css';\n\ninterface ContainerProps {\n size?: 'small' | 'medium' | 'large';\n}\n\nexport const Container = ({ children, size = 'medium' }: PropsWithChildren<ContainerProps>) => {\n return (\n <>\n <label htmlFor=\"container\">Storybook container with 1rem padding</label>\n <div\n id=\"container\"\n className={clsx(styles['container'], {\n [styles['container--small']]: size === 'small',\n [styles['container--medium']]: size === 'medium',\n [styles['container--large']]: size === 'large',\n })}\n >\n {children}\n </div>\n </>\n );\n};\n"],"names":["Container","children","size","jsxs","Fragment","jsx","clsx","styles"],"mappings":";;;;;;;GAUaA,IAAY,CAAC,EAAE,UAAAC,GAAU,MAAAC,IAAO,eAGvC,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,EAAC,gBAAAC,EAAA,SAAA,EAAM,SAAQ,aAAY,UAAqC,yCAAA;AAAA,EAChE,gBAAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,WAAWC,EAAKC,EAAO,WAAc;AAAA,QACnC,CAACA,EAAO,kBAAkB,CAAC,GAAGL,MAAS;AAAA,QACvC,CAACK,EAAO,mBAAmB,CAAC,GAAGL,MAAS;AAAA,QACxC,CAACK,EAAO,kBAAkB,CAAC,GAAGL,MAAS;AAAA,MAAA,CACxC;AAAA,MAEA,UAAAD;AAAA,IAAA;AAAA,EACH;AACF,EAAA,CAAA;"}
1
+ {"version":3,"file":"Container.js","sources":["../../../../src/components/storyComponents/Container/Container.tsx"],"sourcesContent":["import clsx from 'clsx';\n\nimport type { PropsWithChildren } from 'react';\n\nimport styles from './Container.module.css';\n\ninterface ContainerProps {\n size?: 'small' | 'medium' | 'large';\n visible?: boolean;\n}\n\nexport const Container = ({ children, size = 'medium', visible = true }: PropsWithChildren<ContainerProps>) => {\n return (\n <>\n <label htmlFor=\"container\">Storybook container with 1rem padding</label>\n <div\n id=\"container\"\n className={clsx(styles['container'], {\n [styles['container--small']]: size === 'small',\n [styles['container--medium']]: size === 'medium',\n [styles['container--large']]: size === 'large',\n [styles['container--hidden']]: !visible,\n })}\n >\n {children}\n </div>\n </>\n );\n};\n"],"names":["Container","children","size","visible","jsxs","Fragment","jsx","clsx","styles"],"mappings":";;;;;;;;GAWaA,IAAY,CAAC,EAAE,UAAAC,GAAU,MAAAC,IAAO,UAAU,SAAAC,IAAU,SAG3D,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,EAAC,gBAAAC,EAAA,SAAA,EAAM,SAAQ,aAAY,UAAqC,yCAAA;AAAA,EAChE,gBAAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,WAAWC,EAAKC,EAAO,WAAc;AAAA,QACnC,CAACA,EAAO,kBAAkB,CAAC,GAAGN,MAAS;AAAA,QACvC,CAACM,EAAO,mBAAmB,CAAC,GAAGN,MAAS;AAAA,QACxC,CAACM,EAAO,kBAAkB,CAAC,GAAGN,MAAS;AAAA,QACvC,CAACM,EAAO,mBAAmB,CAAC,GAAG,CAACL;AAAA,MAAA,CACjC;AAAA,MAEA,UAAAF;AAAA,IAAA;AAAA,EACH;AACF,EAAA,CAAA;"}
package/dist/index.js CHANGED
@@ -1,40 +1,42 @@
1
1
  import { AppStatusBar as t } from "./components/AppStatusBar/AppStatusBar.js";
2
- import { Button as p } from "./components/Button/Button.js";
3
- import { Card as x } from "./components/Card/Card.js";
4
- import { FieldHint as n } from "./components/FieldHint/FieldHint.js";
5
- import { Icon as a } from "./components/Icon/Icon.js";
6
- import { IconButton as l } from "./components/IconButton/IconButton.js";
7
- import { InfoMessage as c } from "./components/InfoMessage/InfoMessage.js";
8
- import { Input as d } from "./components/Input/Input.js";
9
- import { InputField as I } from "./components/InputField/InputField.js";
10
- import { Label as M } from "./components/Label/Label.js";
11
- import { M as v } from "./MenuLink-DDAin3rf.js";
12
- import { MetaDataList as F } from "./components/MetaDataList/MetaDataList.js";
13
- import { OverlayCloseButton as k } from "./components/OverlayCloseButton/OverlayCloseButton.js";
14
- import { RadioButton as A } from "./components/RadioButton/RadioButton.js";
15
- import { SectionNotification as H } from "./components/SectionNotification/SectionNotification.js";
16
- import { SelectListbox as O } from "./components/SelectListbox/SelectListbox.js";
17
- import { SelectProvider as R, useSelect as h } from "./components/SelectListbox/SelectProvider.js";
18
- import { Spinner as q } from "./components/Spinner/Spinner.js";
2
+ import { Backdrop as p } from "./components/Backdrop/Backdrop.js";
3
+ import { Button as x } from "./components/Button/Button.js";
4
+ import { Card as n } from "./components/Card/Card.js";
5
+ import { FieldHint as i } from "./components/FieldHint/FieldHint.js";
6
+ import { Icon as c } from "./components/Icon/Icon.js";
7
+ import { IconButton as s } from "./components/IconButton/IconButton.js";
8
+ import { InfoMessage as B } from "./components/InfoMessage/InfoMessage.js";
9
+ import { Input as I } from "./components/Input/Input.js";
10
+ import { InputField as M } from "./components/InputField/InputField.js";
11
+ import { Label as k } from "./components/Label/Label.js";
12
+ import { M as C } from "./MenuLink-DDAin3rf.js";
13
+ import { MetaDataList as g } from "./components/MetaDataList/MetaDataList.js";
14
+ import { OverlayCloseButton as A } from "./components/OverlayCloseButton/OverlayCloseButton.js";
15
+ import { RadioButton as H } from "./components/RadioButton/RadioButton.js";
16
+ import { SectionNotification as O } from "./components/SectionNotification/SectionNotification.js";
17
+ import { SelectListbox as R } from "./components/SelectListbox/SelectListbox.js";
18
+ import { SelectProvider as j, useSelect as q } from "./components/SelectListbox/SelectProvider.js";
19
+ import { Spinner as z } from "./components/Spinner/Spinner.js";
19
20
  export {
20
21
  t as AppStatusBar,
21
- p as Button,
22
- x as Card,
23
- n as FieldHint,
24
- a as Icon,
25
- l as IconButton,
26
- c as InfoMessage,
27
- d as Input,
28
- I as InputField,
29
- M as Label,
30
- v as MenuLink,
31
- F as MetaDataList,
32
- k as OverlayCloseButton,
33
- A as RadioButton,
34
- H as SectionNotification,
35
- O as SelectListbox,
36
- R as SelectProvider,
37
- q as Spinner,
38
- h as useSelect
22
+ p as Backdrop,
23
+ x as Button,
24
+ n as Card,
25
+ i as FieldHint,
26
+ c as Icon,
27
+ s as IconButton,
28
+ B as InfoMessage,
29
+ I as Input,
30
+ M as InputField,
31
+ k as Label,
32
+ C as MenuLink,
33
+ g as MetaDataList,
34
+ A as OverlayCloseButton,
35
+ H as RadioButton,
36
+ O as SectionNotification,
37
+ R as SelectListbox,
38
+ j as SelectProvider,
39
+ z as Spinner,
40
+ q as useSelect
39
41
  };
40
42
  //# 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.17.1",
5
+ "version": "1.18.0",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -52,7 +52,7 @@
52
52
  "@storybook/react": "^8.1.5",
53
53
  "@storybook/react-vite": "^8.1.5",
54
54
  "@storybook/test": "^8.1.5",
55
- "@types/node": "^20.12.12",
55
+ "@types/node": "^20.12.13",
56
56
  "@types/react": "^18.3.3",
57
57
  "@types/react-dom": "^18.3.0",
58
58
  "@typescript-eslint/eslint-plugin": "^7.11.0",