@uva-glass/component-library 1.4.2 → 1.6.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.
Files changed (39) hide show
  1. package/dist/{SelectListbox.module-1nd3xIGj.js → SelectListbox.module-DSjx989r.js} +1 -2
  2. package/dist/SelectListbox.module-DSjx989r.js.map +1 -0
  3. package/dist/assets/AppStatusBar.css +1 -0
  4. package/dist/assets/Button.css +1 -1
  5. package/dist/assets/Card.css +1 -1
  6. package/dist/assets/IconButton.css +1 -1
  7. package/dist/assets/InfoMessage.css +1 -1
  8. package/dist/assets/SectionNotification.css +1 -1
  9. package/dist/assets/SelectListbox.css +1 -1
  10. package/dist/components/AppStatusBar/AppStatusBar.d.ts +6 -0
  11. package/dist/components/AppStatusBar/AppStatusBar.js +13 -0
  12. package/dist/components/AppStatusBar/AppStatusBar.js.map +1 -0
  13. package/dist/components/AppStatusBar/AppStatusBar.stories.d.ts +7 -0
  14. package/dist/components/AppStatusBar/AppStatusBar.stories.js +23 -0
  15. package/dist/components/AppStatusBar/AppStatusBar.stories.js.map +1 -0
  16. package/dist/components/AppStatusBar/index.d.ts +1 -0
  17. package/dist/components/AppStatusBar/index.js +5 -0
  18. package/dist/components/AppStatusBar/index.js.map +1 -0
  19. package/dist/components/Button/Button.js +10 -11
  20. package/dist/components/Button/Button.js.map +1 -1
  21. package/dist/components/Card/Card.js +9 -10
  22. package/dist/components/Card/Card.js.map +1 -1
  23. package/dist/components/IconButton/IconButton.js +12 -13
  24. package/dist/components/IconButton/IconButton.js.map +1 -1
  25. package/dist/components/InfoMessage/InfoMessage.js +8 -9
  26. package/dist/components/InfoMessage/InfoMessage.js.map +1 -1
  27. package/dist/components/SectionNotification/SectionNotification.js +2 -3
  28. package/dist/components/SectionNotification/SectionNotification.js.map +1 -1
  29. package/dist/components/SelectListbox/components/SelectButton.js +1 -1
  30. package/dist/components/SelectListbox/components/SelectContainer.js +1 -1
  31. package/dist/components/SelectListbox/components/SelectOption.js +1 -1
  32. package/dist/components/SelectListbox/components/SelectOptionBox.js +1 -1
  33. package/dist/components/index.d.ts +1 -0
  34. package/dist/components/index.js +21 -19
  35. package/dist/components/index.js.map +1 -1
  36. package/dist/index.js +21 -19
  37. package/dist/index.js.map +1 -1
  38. package/package.json +10 -10
  39. package/dist/SelectListbox.module-1nd3xIGj.js.map +0 -1
@@ -0,0 +1,6 @@
1
+ interface AppStatusBarProps {
2
+ message: string;
3
+ severity: 'info' | 'warning' | 'error';
4
+ }
5
+ export declare const AppStatusBar: ({ message, severity }: AppStatusBarProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,13 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { c as r } from "../../clsx-DB4S2d7J.js";
3
+ import '../../assets/AppStatusBar.css';const a = {
4
+ "app-status-bar": "_app-status-bar_1ddv0_1",
5
+ "app-status-bar__message": "_app-status-bar__message_1ddv0_9",
6
+ "app-status-bar--info": "_app-status-bar--info_1ddv0_13",
7
+ "app-status-bar--warning": "_app-status-bar--warning_1ddv0_17",
8
+ "app-status-bar--error": "_app-status-bar--error_1ddv0_21"
9
+ }, u = ({ message: t, severity: p }) => /* @__PURE__ */ s("div", { className: r(a["app-status-bar"], a[`app-status-bar--${p.toLowerCase()}`]), children: /* @__PURE__ */ s("p", { className: a["app-status-bar__message"], dangerouslySetInnerHTML: { __html: t } }) });
10
+ export {
11
+ u as AppStatusBar
12
+ };
13
+ //# sourceMappingURL=AppStatusBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppStatusBar.js","sources":["../../../src/components/AppStatusBar/AppStatusBar.tsx"],"sourcesContent":["import classNames from 'clsx';\n\nimport styles from './AppStatusBar.module.css';\n\ninterface AppStatusBarProps {\n message: string;\n severity: 'info' | 'warning' | 'error';\n}\n\nexport const AppStatusBar = ({ message, severity }: AppStatusBarProps) => (\n <div className={classNames(styles['app-status-bar'], styles[`app-status-bar--${severity.toLowerCase()}`])}>\n <p className={styles['app-status-bar__message']} dangerouslySetInnerHTML={{ __html: message }} />\n </div>\n);\n"],"names":["AppStatusBar","message","severity","jsx","classNames","styles"],"mappings":";;;;;;;;GASaA,IAAe,CAAC,EAAE,SAAAC,GAAS,UAAAC,QACtC,gBAAAC,EAAC,OAAI,EAAA,WAAWC,EAAWC,EAAO,gBAAgB,GAAGA,EAAO,mBAAmBH,EAAS,YAAY,CAAC,EAAE,CAAC,GACtG,UAAA,gBAAAC,EAAC,OAAE,WAAWE,EAAO,yBAAyB,GAAG,yBAAyB,EAAE,QAAQJ,EAAA,EAAW,CAAA,EACjG,CAAA;"}
@@ -0,0 +1,7 @@
1
+ interface AppStatusBarProps {
2
+ message: string;
3
+ severity: 'info' | 'warning' | 'error';
4
+ }
5
+ declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, AppStatusBarProps>;
6
+ export default _default;
7
+ export declare const AppStatusBarExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, AppStatusBarProps>;
@@ -0,0 +1,23 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { AppStatusBar as t } from "./AppStatusBar.js";
3
+ const p = {
4
+ title: "Atoms/AppStatusBar",
5
+ component: t,
6
+ argTypes: {
7
+ severity: {
8
+ options: ["info", "warning", "error"],
9
+ control: { type: "radio" }
10
+ }
11
+ }
12
+ }, n = (e) => /* @__PURE__ */ o(t, { ...e }), r = {
13
+ message: "Dit is de ontwikkelomgeving van Storybook. Hier kun je componenten bekijken en testen.",
14
+ severity: "warning"
15
+ }, s = n.bind({});
16
+ s.args = {
17
+ ...r
18
+ };
19
+ export {
20
+ s as AppStatusBarExample,
21
+ p as default
22
+ };
23
+ //# sourceMappingURL=AppStatusBar.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppStatusBar.stories.js","sources":["../../../src/components/AppStatusBar/AppStatusBar.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { AppStatusBar } from './AppStatusBar';\n\ninterface AppStatusBarProps {\n message: string;\n severity: 'info' | 'warning' | 'error';\n}\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/AppStatusBar',\n component: AppStatusBar,\n argTypes: {\n severity: {\n options: ['info', 'warning', 'error'],\n control: { type: 'radio' },\n },\n },\n} as Meta<AppStatusBarProps>;\n\nconst Template: StoryFn<AppStatusBarProps> = (args) => <AppStatusBar {...args} />;\n\nconst defaultArgs: Partial<AppStatusBarProps> = {\n message: 'Dit is de ontwikkelomgeving van Storybook. Hier kun je componenten bekijken en testen.',\n severity: 'warning',\n};\n\nexport const AppStatusBarExample = Template.bind({});\nAppStatusBarExample.args = {\n ...defaultArgs,\n};\n"],"names":["AppStatusBar_stories","AppStatusBar","Template","args","jsx","defaultArgs","AppStatusBarExample"],"mappings":";;AAUA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,UAAU;AAAA,MACR,SAAS,CAAC,QAAQ,WAAW,OAAO;AAAA,MACpC,SAAS,EAAE,MAAM,QAAQ;AAAA,IAC3B;AAAA,EACF;AACF,GAEMC,IAAuC,CAACC,MAAU,gBAAAC,EAAAH,GAAA,EAAc,GAAGE,EAAM,CAAA,GAEzEE,IAA0C;AAAA,EAC9C,SAAS;AAAA,EACT,UAAU;AACZ,GAEaC,IAAsBJ,EAAS,KAAK,EAAE;AACnDI,EAAoB,OAAO;AAAA,EACzB,GAAGD;AACL;"}
@@ -0,0 +1 @@
1
+ export * from './AppStatusBar';
@@ -0,0 +1,5 @@
1
+ import { AppStatusBar as t } from "./AppStatusBar.js";
2
+ export {
3
+ t as AppStatusBar
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,31 +1,30 @@
1
- import { jsx as _ } from "react/jsx-runtime";
1
+ import { jsx as b } from "react/jsx-runtime";
2
2
  import { c as m } from "../../clsx-DB4S2d7J.js";
3
- import { forwardRef as b } from "react";
4
- import '../../assets/Button.css';const a = "_button_1gimu_3", t = {
5
- "visually-hidden": "_visually-hidden_1gimu_1",
6
- button: a,
3
+ import { forwardRef as _ } from "react";
4
+ import '../../assets/Button.css';const c = "_button_1gimu_3", t = {
5
+ button: c,
7
6
  "button--blank": "_button--blank_1gimu_36",
8
7
  "button--primary": "_button--primary_1gimu_53",
9
8
  "button--secondary": "_button--secondary_1gimu_69",
10
9
  "button--destructive-primary": "_button--destructive-primary_1gimu_85",
11
10
  "button--destructive-secondary": "_button--destructive-secondary_1gimu_103",
12
11
  "button--wide-column": "_button--wide-column_1gimu_121"
13
- }, y = b((o, n) => {
14
- const { children: u, type: r = "button", variant: i, displayColumn: e = !1, ...s } = o;
15
- return /* @__PURE__ */ _(
12
+ }, p = _((o, n) => {
13
+ const { children: u, type: r = "button", variant: e, displayColumn: i = !1, ...s } = o;
14
+ return /* @__PURE__ */ b(
16
15
  "button",
17
16
  {
18
17
  ...s,
19
18
  type: r,
20
19
  ref: n,
21
- className: m(t.button, t[`button--${i}`], {
22
- [t["button--wide-column"]]: e
20
+ className: m(t.button, t[`button--${e}`], {
21
+ [t["button--wide-column"]]: i
23
22
  }),
24
23
  children: u
25
24
  }
26
25
  );
27
26
  });
28
27
  export {
29
- y as Button
28
+ p as Button
30
29
  };
31
30
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport type { ButtonHTMLAttributes, ReactNode } from 'react';\n\nimport styles from './Button.module.css';\n\nexport type UIButtonVariant = 'primary' | 'secondary' | 'destructive-primary' | 'destructive-secondary' | 'blank';\n\nexport interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'style'> {\n variant: UIButtonVariant;\n children: ReactNode;\n displayColumn?: boolean;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>((props, forwardedRef) => {\n const { children, type = 'button', variant, displayColumn = false, ...restProps } = props;\n\n return (\n <button\n {...restProps}\n type={type}\n ref={forwardedRef}\n className={clsx(styles['button'], styles[`button--${variant}`], {\n [styles['button--wide-column']]: displayColumn,\n })}\n >\n {children}\n </button>\n );\n});\n"],"names":["Button","forwardRef","props","forwardedRef","children","type","variant","displayColumn","restProps","jsx","clsx","styles"],"mappings":";;;;;;;;;;;;GAeaA,IAASC,EAA2C,CAACC,GAAOC,MAAiB;AAClF,QAAA,EAAE,UAAAC,GAAU,MAAAC,IAAO,UAAU,SAAAC,GAAS,eAAAC,IAAgB,IAAO,GAAGC,EAAc,IAAAN;AAGlF,SAAA,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGD;AAAA,MACJ,MAAAH;AAAA,MACA,KAAKF;AAAA,MACL,WAAWO,EAAKC,EAAO,QAAWA,EAAO,WAAWL,CAAO,EAAE,GAAG;AAAA,QAC9D,CAACK,EAAO,qBAAqB,CAAC,GAAGJ;AAAA,MAAA,CAClC;AAAA,MAEA,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
1
+ {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport type { ButtonHTMLAttributes, ReactNode } from 'react';\n\nimport styles from './Button.module.css';\n\nexport type UIButtonVariant = 'primary' | 'secondary' | 'destructive-primary' | 'destructive-secondary' | 'blank';\n\nexport interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'style'> {\n variant: UIButtonVariant;\n children: ReactNode;\n displayColumn?: boolean;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>((props, forwardedRef) => {\n const { children, type = 'button', variant, displayColumn = false, ...restProps } = props;\n\n return (\n <button\n {...restProps}\n type={type}\n ref={forwardedRef}\n className={clsx(styles['button'], styles[`button--${variant}`], {\n [styles['button--wide-column']]: displayColumn,\n })}\n >\n {children}\n </button>\n );\n});\n"],"names":["Button","forwardRef","props","forwardedRef","children","type","variant","displayColumn","restProps","jsx","clsx","styles"],"mappings":";;;;;;;;;;;GAeaA,IAASC,EAA2C,CAACC,GAAOC,MAAiB;AAClF,QAAA,EAAE,UAAAC,GAAU,MAAAC,IAAO,UAAU,SAAAC,GAAS,eAAAC,IAAgB,IAAO,GAAGC,EAAc,IAAAN;AAGlF,SAAA,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGD;AAAA,MACJ,MAAAH;AAAA,MACA,KAAKF;AAAA,MACL,WAAWO,EAAKC,EAAO,QAAWA,EAAO,WAAWL,CAAO,EAAE,GAAG;AAAA,QAC9D,CAACK,EAAO,qBAAqB,CAAC,GAAGJ;AAAA,MAAA,CAClC;AAAA,MAEA,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
@@ -1,9 +1,8 @@
1
- import { jsxs as h, jsx as d } from "react/jsx-runtime";
1
+ import { jsxs as h, jsx as l } from "react/jsx-runtime";
2
2
  import { c as t } from "../../clsx-DB4S2d7J.js";
3
- import { SectionNotification as i } from "../SectionNotification/SectionNotification.js";
4
- import '../../assets/Card.css';const n = "_card_aw9hz_3", a = {
5
- "visually-hidden": "_visually-hidden_aw9hz_1",
6
- card: n,
3
+ import { SectionNotification as o } from "../SectionNotification/SectionNotification.js";
4
+ import '../../assets/Card.css';const g = "_card_aw9hz_3", a = {
5
+ card: g,
7
6
  "card--regular": "_card--regular_aw9hz_9",
8
7
  "card--large": "_card--large_aw9hz_10",
9
8
  "card--small": "_card--small_aw9hz_15",
@@ -11,10 +10,10 @@ import '../../assets/Card.css';const n = "_card_aw9hz_3", a = {
11
10
  "card--high-contrast": "_card--high-contrast_aw9hz_35",
12
11
  "card--align-center": "_card--align-center_aw9hz_39"
13
12
  }, w = ({
14
- children: e,
13
+ children: d,
15
14
  header: c,
16
15
  highContrast: s,
17
- notification: l,
16
+ notification: e,
18
17
  padding: r = "regular",
19
18
  alignCenter: _ = !1
20
19
  }) => /* @__PURE__ */ h(
@@ -28,9 +27,9 @@ import '../../assets/Card.css';const n = "_card_aw9hz_3", a = {
28
27
  [a["card--align-center"]]: _
29
28
  }),
30
29
  children: [
31
- l && /* @__PURE__ */ d(i, { children: l }),
32
- c && /* @__PURE__ */ d("div", { className: a["card-header"], children: c }),
33
- e
30
+ e && /* @__PURE__ */ l(o, { children: e }),
31
+ c && /* @__PURE__ */ l("div", { className: a["card-header"], children: c }),
32
+ d
34
33
  ]
35
34
  }
36
35
  );
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","sources":["../../../src/components/Card/Card.tsx"],"sourcesContent":["import classNames from 'clsx';\n\nimport type { PropsWithChildren, ReactNode } from 'react';\n\nimport styles from './Card.module.css';\n\nimport { SectionNotification } from 'components/SectionNotification';\n\nexport interface CardProps {\n header?: ReactNode;\n highContrast?: boolean;\n notification?: ReactNode;\n padding?: 'small' | 'regular' | 'large';\n alignCenter?: boolean;\n}\n\nexport const Card = ({\n children,\n header,\n highContrast,\n notification,\n padding = 'regular',\n alignCenter = false,\n}: PropsWithChildren<CardProps>) => (\n <div\n className={classNames(styles['card'], {\n [styles['card--high-contrast']]: highContrast,\n [styles['card--regular']]: padding === 'regular',\n [styles['card--small']]: padding === 'small',\n [styles['card--large']]: padding === 'large',\n [styles['card--align-center']]: alignCenter,\n })}\n >\n {notification && <SectionNotification>{notification}</SectionNotification>}\n {header && <div className={styles['card-header']}>{header}</div>}\n {children}\n </div>\n);\n"],"names":["Card","children","header","highContrast","notification","padding","alignCenter","jsxs","classNames","styles","jsx","SectionNotification"],"mappings":";;;;;;;;;;;;GAgBaA,IAAO,CAAC;AAAA,EACnB,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,aAAAC,IAAc;AAChB,MACE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAWC,EAAO,MAAS;AAAA,MACpC,CAACA,EAAO,qBAAqB,CAAC,GAAGN;AAAA,MACjC,CAACM,EAAO,eAAe,CAAC,GAAGJ,MAAY;AAAA,MACvC,CAACI,EAAO,aAAa,CAAC,GAAGJ,MAAY;AAAA,MACrC,CAACI,EAAO,aAAa,CAAC,GAAGJ,MAAY;AAAA,MACrC,CAACI,EAAO,oBAAoB,CAAC,GAAGH;AAAA,IAAA,CACjC;AAAA,IAEA,UAAA;AAAA,MAAgBF,KAAA,gBAAAM,EAACC,KAAqB,UAAaP,EAAA,CAAA;AAAA,MACnDF,KAAW,gBAAAQ,EAAA,OAAA,EAAI,WAAWD,EAAO,aAAa,GAAI,UAAOP,GAAA;AAAA,MACzDD;AAAA,IAAA;AAAA,EAAA;AACH;"}
1
+ {"version":3,"file":"Card.js","sources":["../../../src/components/Card/Card.tsx"],"sourcesContent":["import classNames from 'clsx';\n\nimport type { PropsWithChildren, ReactNode } from 'react';\n\nimport styles from './Card.module.css';\n\nimport { SectionNotification } from 'components/SectionNotification';\n\nexport interface CardProps {\n header?: ReactNode;\n highContrast?: boolean;\n notification?: ReactNode;\n padding?: 'small' | 'regular' | 'large';\n alignCenter?: boolean;\n}\n\nexport const Card = ({\n children,\n header,\n highContrast,\n notification,\n padding = 'regular',\n alignCenter = false,\n}: PropsWithChildren<CardProps>) => (\n <div\n className={classNames(styles['card'], {\n [styles['card--high-contrast']]: highContrast,\n [styles['card--regular']]: padding === 'regular',\n [styles['card--small']]: padding === 'small',\n [styles['card--large']]: padding === 'large',\n [styles['card--align-center']]: alignCenter,\n })}\n >\n {notification && <SectionNotification>{notification}</SectionNotification>}\n {header && <div className={styles['card-header']}>{header}</div>}\n {children}\n </div>\n);\n"],"names":["Card","children","header","highContrast","notification","padding","alignCenter","jsxs","classNames","styles","jsx","SectionNotification"],"mappings":";;;;;;;;;;;GAgBaA,IAAO,CAAC;AAAA,EACnB,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,aAAAC,IAAc;AAChB,MACE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAWC,EAAO,MAAS;AAAA,MACpC,CAACA,EAAO,qBAAqB,CAAC,GAAGN;AAAA,MACjC,CAACM,EAAO,eAAe,CAAC,GAAGJ,MAAY;AAAA,MACvC,CAACI,EAAO,aAAa,CAAC,GAAGJ,MAAY;AAAA,MACrC,CAACI,EAAO,aAAa,CAAC,GAAGJ,MAAY;AAAA,MACrC,CAACI,EAAO,oBAAoB,CAAC,GAAGH;AAAA,IAAA,CACjC;AAAA,IAEA,UAAA;AAAA,MAAgBF,KAAA,gBAAAM,EAACC,KAAqB,UAAaP,EAAA,CAAA;AAAA,MACnDF,KAAW,gBAAAQ,EAAA,OAAA,EAAI,WAAWD,EAAO,aAAa,GAAI,UAAOP,GAAA;AAAA,MACzDD;AAAA,IAAA;AAAA,EAAA;AACH;"}
@@ -1,29 +1,28 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { c as b } from "../../clsx-DB4S2d7J.js";
3
- import { forwardRef as l } from "react";
1
+ import { jsx as b } from "react/jsx-runtime";
2
+ import { c as d } from "../../clsx-DB4S2d7J.js";
3
+ import { forwardRef as s } from "react";
4
4
  import '../../assets/IconButton.css';const t = {
5
- "visually-hidden": "_visually-hidden_ldxal_1",
6
5
  "icon-button": "_icon-button_ldxal_3",
7
6
  "icon-button--destructive": "_icon-button--destructive_ldxal_29",
8
7
  "icon-button--no-border": "_icon-button--no-border_ldxal_37",
9
8
  "icon-button--wide": "_icon-button--wide_ldxal_46"
10
- }, x = l(
11
- ({ children: o, type: n = "button", variant: i, noBorder: c, wide: e, ...u }, d) => /* @__PURE__ */ r(
9
+ }, m = s(
10
+ ({ children: o, type: n = "button", variant: c, noBorder: i, wide: r, ...e }, u) => /* @__PURE__ */ b(
12
11
  "button",
13
12
  {
14
- ...u,
15
- className: b(t["icon-button"], {
16
- [t["icon-button--destructive"]]: i === "destructive",
17
- [t["icon-button--no-border"]]: c,
18
- [t["icon-button--wide"]]: e
13
+ ...e,
14
+ className: d(t["icon-button"], {
15
+ [t["icon-button--destructive"]]: c === "destructive",
16
+ [t["icon-button--no-border"]]: i,
17
+ [t["icon-button--wide"]]: r
19
18
  }),
20
- ref: d,
19
+ ref: u,
21
20
  type: n,
22
21
  children: o
23
22
  }
24
23
  )
25
24
  );
26
25
  export {
27
- x as IconButton
26
+ m as IconButton
28
27
  };
29
28
  //# sourceMappingURL=IconButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.js","sources":["../../../src/components/IconButton/IconButton.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport type { ButtonHTMLAttributes } from 'react';\n\nimport styles from './IconButton.module.css';\n\nexport interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {\n 'aria-label': string;\n variant?: 'destructive';\n noBorder?: boolean;\n wide?: boolean;\n}\n\nexport const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(\n ({ children, type = 'button', variant, noBorder, wide, ...restProps }: IconButtonProps, forwardedRef) => (\n <button\n {...restProps}\n className={clsx(styles['icon-button'], {\n [styles['icon-button--destructive']]: variant === 'destructive',\n [styles['icon-button--no-border']]: noBorder,\n [styles['icon-button--wide']]: wide,\n })}\n ref={forwardedRef}\n type={type}\n >\n {children}\n </button>\n )\n);\n"],"names":["IconButton","forwardRef","children","type","variant","noBorder","wide","restProps","forwardedRef","jsx","clsx","styles"],"mappings":";;;;;;;;;GAcaA,IAAaC;AAAA,EACxB,CAAC,EAAE,UAAAC,GAAU,MAAAC,IAAO,UAAU,SAAAC,GAAS,UAAAC,GAAU,MAAAC,GAAM,GAAGC,KAA8BC,MACtF,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGF;AAAA,MACJ,WAAWG,EAAKC,EAAO,aAAa,GAAG;AAAA,QACrC,CAACA,EAAO,0BAA0B,CAAC,GAAGP,MAAY;AAAA,QAClD,CAACO,EAAO,wBAAwB,CAAC,GAAGN;AAAA,QACpC,CAACM,EAAO,mBAAmB,CAAC,GAAGL;AAAA,MAAA,CAChC;AAAA,MACD,KAAKE;AAAA,MACL,MAAAL;AAAA,MAEC,UAAAD;AAAA,IAAA;AAAA,EACH;AAEJ;"}
1
+ {"version":3,"file":"IconButton.js","sources":["../../../src/components/IconButton/IconButton.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport type { ButtonHTMLAttributes } from 'react';\n\nimport styles from './IconButton.module.css';\n\nexport interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {\n 'aria-label': string;\n variant?: 'destructive';\n noBorder?: boolean;\n wide?: boolean;\n}\n\nexport const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(\n ({ children, type = 'button', variant, noBorder, wide, ...restProps }: IconButtonProps, forwardedRef) => (\n <button\n {...restProps}\n className={clsx(styles['icon-button'], {\n [styles['icon-button--destructive']]: variant === 'destructive',\n [styles['icon-button--no-border']]: noBorder,\n [styles['icon-button--wide']]: wide,\n })}\n ref={forwardedRef}\n type={type}\n >\n {children}\n </button>\n )\n);\n"],"names":["IconButton","forwardRef","children","type","variant","noBorder","wide","restProps","forwardedRef","jsx","clsx","styles"],"mappings":";;;;;;;;GAcaA,IAAaC;AAAA,EACxB,CAAC,EAAE,UAAAC,GAAU,MAAAC,IAAO,UAAU,SAAAC,GAAS,UAAAC,GAAU,MAAAC,GAAM,GAAGC,KAA8BC,MACtF,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGF;AAAA,MACJ,WAAWG,EAAKC,EAAO,aAAa,GAAG;AAAA,QACrC,CAACA,EAAO,0BAA0B,CAAC,GAAGP,MAAY;AAAA,QAClD,CAACO,EAAO,wBAAwB,CAAC,GAAGN;AAAA,QACpC,CAACM,EAAO,mBAAmB,CAAC,GAAGL;AAAA,MAAA,CAChC;AAAA,MACD,KAAKE;AAAA,MACL,MAAAL;AAAA,MAEC,UAAAD;AAAA,IAAA;AAAA,EACH;AAEJ;"}
@@ -1,24 +1,23 @@
1
- import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
- import { c as _ } from "../../clsx-DB4S2d7J.js";
3
- import { Icon as a } from "../Icon/Icon.js";
1
+ import { jsxs as n, jsx as i } from "react/jsx-runtime";
2
+ import { c as a } from "../../clsx-DB4S2d7J.js";
3
+ import { Icon as _ } from "../Icon/Icon.js";
4
4
  import '../../assets/InfoMessage.css';const e = {
5
- "visually-hidden": "_visually-hidden_elg9f_1",
6
5
  "info-message": "_info-message_elg9f_3",
7
6
  "info-message__container": "_info-message__container_elg9f_8",
8
7
  "info-message__icon": "_info-message__icon_elg9f_13"
9
- }, c = ({ message: s, hasOwnContainer: i = !1 }) => /* @__PURE__ */ n(
8
+ }, g = ({ message: s, hasOwnContainer: o = !1 }) => /* @__PURE__ */ n(
10
9
  "div",
11
10
  {
12
- className: _(e["info-message"], {
13
- [e["info-message__container"]]: i
11
+ className: a(e["info-message"], {
12
+ [e["info-message__container"]]: o
14
13
  }),
15
14
  children: [
16
- /* @__PURE__ */ o(a, { name: "InformationCircleFillMini", className: e["info-message__icon"] }),
15
+ /* @__PURE__ */ i(_, { name: "InformationCircleFillMini", className: e["info-message__icon"] }),
17
16
  s
18
17
  ]
19
18
  }
20
19
  );
21
20
  export {
22
- c as InfoMessage
21
+ g as InfoMessage
23
22
  };
24
23
  //# sourceMappingURL=InfoMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InfoMessage.js","sources":["../../../src/components/InfoMessage/InfoMessage.tsx"],"sourcesContent":["import { clsx } from 'clsx';\n\nimport type { PropsWithChildren } from 'react';\n\nimport styles from './InfoMessage.module.css';\n\nimport { Icon } from 'components/Icon';\n\nexport interface InfoMessageProps {\n message: string;\n hasOwnContainer?: boolean;\n}\n\nexport const InfoMessage = ({ message, hasOwnContainer = false }: PropsWithChildren<InfoMessageProps>) => (\n <div\n className={clsx(styles['info-message'], {\n [styles['info-message__container']]: hasOwnContainer,\n })}\n >\n <Icon name=\"InformationCircleFillMini\" className={styles['info-message__icon']} />\n {message}\n </div>\n);\n"],"names":["InfoMessage","message","hasOwnContainer","jsxs","clsx","styles","jsx","Icon"],"mappings":";;;;;;;;GAaaA,IAAc,CAAC,EAAE,SAAAC,GAAS,iBAAAC,IAAkB,GACvD,MAAA,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAKC,EAAO,cAAc,GAAG;AAAA,MACtC,CAACA,EAAO,yBAAyB,CAAC,GAAGH;AAAA,IAAA,CACtC;AAAA,IAED,UAAA;AAAA,MAAA,gBAAAI,EAACC,KAAK,MAAK,6BAA4B,WAAWF,EAAO,oBAAoB,GAAG;AAAA,MAC/EJ;AAAA,IAAA;AAAA,EAAA;AACH;"}
1
+ {"version":3,"file":"InfoMessage.js","sources":["../../../src/components/InfoMessage/InfoMessage.tsx"],"sourcesContent":["import { clsx } from 'clsx';\n\nimport type { PropsWithChildren } from 'react';\n\nimport styles from './InfoMessage.module.css';\n\nimport { Icon } from 'components/Icon';\n\nexport interface InfoMessageProps {\n message: string;\n hasOwnContainer?: boolean;\n}\n\nexport const InfoMessage = ({ message, hasOwnContainer = false }: PropsWithChildren<InfoMessageProps>) => (\n <div\n className={clsx(styles['info-message'], {\n [styles['info-message__container']]: hasOwnContainer,\n })}\n >\n <Icon name=\"InformationCircleFillMini\" className={styles['info-message__icon']} />\n {message}\n </div>\n);\n"],"names":["InfoMessage","message","hasOwnContainer","jsxs","clsx","styles","jsx","Icon"],"mappings":";;;;;;;GAaaA,IAAc,CAAC,EAAE,SAAAC,GAAS,iBAAAC,IAAkB,GACvD,MAAA,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAKC,EAAO,cAAc,GAAG;AAAA,MACtC,CAACA,EAAO,yBAAyB,CAAC,GAAGH;AAAA,IAAA,CACtC;AAAA,IAED,UAAA;AAAA,MAAA,gBAAAI,EAACC,KAAK,MAAK,6BAA4B,WAAWF,EAAO,oBAAoB,GAAG;AAAA,MAC/EJ;AAAA,IAAA;AAAA,EAAA;AACH;"}
@@ -1,13 +1,12 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { c as s } from "../../clsx-DB4S2d7J.js";
2
+ import { c } from "../../clsx-DB4S2d7J.js";
3
3
  import '../../assets/SectionNotification.css';const i = {
4
- "visually-hidden": "_visually-hidden_xsb8x_1",
5
4
  "section-notification": "_section-notification_xsb8x_3",
6
5
  "section-notification--fullwidth": "_section-notification--fullwidth_xsb8x_12"
7
6
  }, a = ({ fullWidth: t = !1, children: o }) => /* @__PURE__ */ n(
8
7
  "div",
9
8
  {
10
- className: s(i["section-notification"], {
9
+ className: c(i["section-notification"], {
11
10
  [i["section-notification--fullwidth"]]: t
12
11
  }),
13
12
  children: o
@@ -1 +1 @@
1
- {"version":3,"file":"SectionNotification.js","sources":["../../../src/components/SectionNotification/SectionNotification.tsx"],"sourcesContent":["import classNames from 'clsx';\n\nimport type { PropsWithChildren } from 'react';\n\nimport styles from './SectionNotification.module.css';\n\nexport interface SectionNotificationProps {\n fullWidth?: boolean;\n}\n\nexport const SectionNotification = ({ fullWidth = false, children }: PropsWithChildren<SectionNotificationProps>) => (\n <div\n className={classNames(styles['section-notification'], {\n [styles['section-notification--fullwidth']]: fullWidth,\n })}\n >\n {children}\n </div>\n);\n"],"names":["SectionNotification","fullWidth","children","jsx","classNames","styles"],"mappings":";;;;;;GAUaA,IAAsB,CAAC,EAAE,WAAAC,IAAY,IAAO,UAAAC,EACvD,MAAA,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAWC,EAAO,sBAAsB,GAAG;AAAA,MACpD,CAACA,EAAO,iCAAiC,CAAC,GAAGJ;AAAA,IAAA,CAC9C;AAAA,IAEA,UAAAC;AAAA,EAAA;AACH;"}
1
+ {"version":3,"file":"SectionNotification.js","sources":["../../../src/components/SectionNotification/SectionNotification.tsx"],"sourcesContent":["import classNames from 'clsx';\n\nimport type { PropsWithChildren } from 'react';\n\nimport styles from './SectionNotification.module.css';\n\nexport interface SectionNotificationProps {\n fullWidth?: boolean;\n}\n\nexport const SectionNotification = ({ fullWidth = false, children }: PropsWithChildren<SectionNotificationProps>) => (\n <div\n className={classNames(styles['section-notification'], {\n [styles['section-notification--fullwidth']]: fullWidth,\n })}\n >\n {children}\n </div>\n);\n"],"names":["SectionNotification","fullWidth","children","jsx","classNames","styles"],"mappings":";;;;;GAUaA,IAAsB,CAAC,EAAE,WAAAC,IAAY,IAAO,UAAAC,EACvD,MAAA,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAWC,EAAO,sBAAsB,GAAG;AAAA,MACpD,CAACA,EAAO,iCAAiC,CAAC,GAAGJ;AAAA,IAAA,CAC9C;AAAA,IAEA,UAAAC;AAAA,EAAA;AACH;"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as a, jsxs as C } from "react/jsx-runtime";
2
2
  import { c as f } from "../../../clsx-DB4S2d7J.js";
3
3
  import { forwardRef as E, useRef as g, useEffect as c } from "react";
4
- import { s as t } from "../../../SelectListbox.module-1nd3xIGj.js";
4
+ import { s as t } from "../../../SelectListbox.module-DSjx989r.js";
5
5
  import { Icon as L } from "../../Icon/Icon.js";
6
6
  import { useSelect as N } from "../SelectProvider.js";
7
7
  const O = E((d, u) => {
@@ -1,7 +1,7 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import { useRef as i, useCallback as u, useEffect as l } from "react";
3
3
  import { useSelect as m } from "../SelectProvider.js";
4
- import { s as f } from "../../../SelectListbox.module-1nd3xIGj.js";
4
+ import { s as f } from "../../../SelectListbox.module-DSjx989r.js";
5
5
  const E = ({ children: o }) => {
6
6
  const { isOpen: r, setIsOpen: n } = m(), t = i(null), e = u(
7
7
  ({ target: s }) => {
@@ -2,7 +2,7 @@ import { jsx as d } from "react/jsx-runtime";
2
2
  import { c as v } from "../../../clsx-DB4S2d7J.js";
3
3
  import { useRef as D, useEffect as p } from "react";
4
4
  import { useSelect as y } from "../SelectProvider.js";
5
- import { s as b } from "../../../SelectListbox.module-1nd3xIGj.js";
5
+ import { s as b } from "../../../SelectListbox.module-DSjx989r.js";
6
6
  const S = ({ option: t, index: l, children: m }) => {
7
7
  const o = D(null), { isOpen: r, activeIndex: s, setActiveIndex: c, selectedValue: f, setSelectedValue: u, setIsOpen: i, options: a } = y(), w = (e) => {
8
8
  u(a[e]), i(!1);
@@ -1,6 +1,6 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as m, useRef as x } from "react";
3
- import { s as i } from "../../../SelectListbox.module-1nd3xIGj.js";
3
+ import { s as i } from "../../../SelectListbox.module-DSjx989r.js";
4
4
  import { useSelect as a } from "../SelectProvider.js";
5
5
  const h = m((l, e) => {
6
6
  const { style: t, children: o } = l, { listboxId: r, isOpen: c } = a(), n = x(null);
@@ -1,3 +1,4 @@
1
+ export * from './AppStatusBar';
1
2
  export * from './Button';
2
3
  export * from './Card';
3
4
  export * from './Icon';
@@ -1,22 +1,24 @@
1
- import { Button as e } from "./Button/Button.js";
2
- import { Card as f } from "./Card/Card.js";
3
- import { Icon as x } from "./Icon/Icon.js";
4
- import { IconButton as n } from "./IconButton/IconButton.js";
5
- import { InfoMessage as i } from "./InfoMessage/InfoMessage.js";
6
- import { SectionNotification as s } from "./SectionNotification/SectionNotification.js";
7
- import { SelectListbox as l } from "./SelectListbox/SelectListbox.js";
8
- import { SelectProvider as I, useSelect as d } from "./SelectListbox/SelectProvider.js";
9
- import { Spinner as b } from "./Spinner/Spinner.js";
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 { Icon as n } from "./Icon/Icon.js";
5
+ import { IconButton as i } from "./IconButton/IconButton.js";
6
+ import { InfoMessage as a } from "./InfoMessage/InfoMessage.js";
7
+ import { SectionNotification as u } from "./SectionNotification/SectionNotification.js";
8
+ import { SelectListbox as B } from "./SelectListbox/SelectListbox.js";
9
+ import { SelectProvider as d, useSelect as b } from "./SelectListbox/SelectProvider.js";
10
+ import { Spinner as v } from "./Spinner/Spinner.js";
10
11
  export {
11
- e as Button,
12
- f as Card,
13
- x as Icon,
14
- n as IconButton,
15
- i as InfoMessage,
16
- s as SectionNotification,
17
- l as SelectListbox,
18
- I as SelectProvider,
19
- b as Spinner,
20
- d as useSelect
12
+ t as AppStatusBar,
13
+ p as Button,
14
+ x as Card,
15
+ n as Icon,
16
+ i as IconButton,
17
+ a as InfoMessage,
18
+ u as SectionNotification,
19
+ B as SelectListbox,
20
+ d as SelectProvider,
21
+ v as Spinner,
22
+ b as useSelect
21
23
  };
22
24
  //# 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,22 +1,24 @@
1
- import { Button as e } from "./components/Button/Button.js";
2
- import { Card as f } from "./components/Card/Card.js";
3
- import { Icon as x } from "./components/Icon/Icon.js";
4
- import { IconButton as n } from "./components/IconButton/IconButton.js";
5
- import { InfoMessage as i } from "./components/InfoMessage/InfoMessage.js";
6
- import { SectionNotification as s } from "./components/SectionNotification/SectionNotification.js";
7
- import { SelectListbox as l } from "./components/SelectListbox/SelectListbox.js";
8
- import { SelectProvider as I, useSelect as d } from "./components/SelectListbox/SelectProvider.js";
9
- import { Spinner as b } from "./components/Spinner/Spinner.js";
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 { Icon as n } from "./components/Icon/Icon.js";
5
+ import { IconButton as i } from "./components/IconButton/IconButton.js";
6
+ import { InfoMessage as a } from "./components/InfoMessage/InfoMessage.js";
7
+ import { SectionNotification as u } from "./components/SectionNotification/SectionNotification.js";
8
+ import { SelectListbox as B } from "./components/SelectListbox/SelectListbox.js";
9
+ import { SelectProvider as d, useSelect as b } from "./components/SelectListbox/SelectProvider.js";
10
+ import { Spinner as v } from "./components/Spinner/Spinner.js";
10
11
  export {
11
- e as Button,
12
- f as Card,
13
- x as Icon,
14
- n as IconButton,
15
- i as InfoMessage,
16
- s as SectionNotification,
17
- l as SelectListbox,
18
- I as SelectProvider,
19
- b as Spinner,
20
- d as useSelect
12
+ t as AppStatusBar,
13
+ p as Button,
14
+ x as Card,
15
+ n as Icon,
16
+ i as IconButton,
17
+ a as InfoMessage,
18
+ u as SectionNotification,
19
+ B as SelectListbox,
20
+ d as SelectProvider,
21
+ v as Spinner,
22
+ b as useSelect
21
23
  };
22
24
  //# 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.4.2",
5
+ "version": "1.6.0",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -44,14 +44,14 @@
44
44
  "@semantic-release/git": "^10.0.1",
45
45
  "@semantic-release/gitlab": "^13.1.0",
46
46
  "@semantic-release/npm": "^12.0.1",
47
- "@storybook/addon-a11y": "^8.1.0",
48
- "@storybook/addon-essentials": "^8.1.0",
49
- "@storybook/addon-interactions": "^8.1.0",
50
- "@storybook/addon-links": "^8.1.0",
51
- "@storybook/blocks": "^8.1.0",
52
- "@storybook/react": "^8.1.0",
53
- "@storybook/react-vite": "^8.1.0",
54
- "@storybook/test": "^8.1.0",
47
+ "@storybook/addon-a11y": "^8.1.1",
48
+ "@storybook/addon-essentials": "^8.1.1",
49
+ "@storybook/addon-interactions": "^8.1.1",
50
+ "@storybook/addon-links": "^8.1.1",
51
+ "@storybook/blocks": "^8.1.1",
52
+ "@storybook/react": "^8.1.1",
53
+ "@storybook/react-vite": "^8.1.1",
54
+ "@storybook/test": "^8.1.1",
55
55
  "@types/node": "^20.12.12",
56
56
  "@types/react": "^18.3.2",
57
57
  "@types/react-dom": "^18.3.0",
@@ -77,7 +77,7 @@
77
77
  "react": "^18.3.1",
78
78
  "react-dom": "^18.3.1",
79
79
  "semantic-release": "^23.1.1",
80
- "storybook": "^8.1.0",
80
+ "storybook": "^8.1.1",
81
81
  "style-dictionary": "^3.9.2",
82
82
  "stylelint": "^16.5.0",
83
83
  "stylelint-config-recommended": "^14.0.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectListbox.module-1nd3xIGj.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}