@uva-glass/component-library 2.1.1 → 2.3.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 (27) hide show
  1. package/dist/{SelectListbox.module-D-jCitTr.js → SelectListbox.module-BWavTmq8.js} +22 -22
  2. package/dist/SelectListbox.module-BWavTmq8.js.map +1 -0
  3. package/dist/assets/SelectListbox.css +1 -1
  4. package/dist/assets/ToggleSwitch.css +1 -0
  5. package/dist/components/Icon/icons/index.d.ts +66 -0
  6. package/dist/components/Icon/icons/index.js +146 -91
  7. package/dist/components/Icon/icons/index.js.map +1 -1
  8. package/dist/components/SelectListbox/components/SelectButton.js +1 -1
  9. package/dist/components/SelectListbox/components/SelectContainer.js +1 -1
  10. package/dist/components/SelectListbox/components/SelectOption.js +1 -1
  11. package/dist/components/SelectListbox/components/SelectOptionBox.js +1 -1
  12. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +15 -0
  13. package/dist/components/ToggleSwitch/ToggleSwitch.js +66 -0
  14. package/dist/components/ToggleSwitch/ToggleSwitch.js.map +1 -0
  15. package/dist/components/ToggleSwitch/ToggleSwitch.stories.d.ts +5 -0
  16. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +26 -0
  17. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js.map +1 -0
  18. package/dist/components/ToggleSwitch/index.d.ts +1 -0
  19. package/dist/components/ToggleSwitch/index.js +5 -0
  20. package/dist/components/ToggleSwitch/index.js.map +1 -0
  21. package/dist/components/index.d.ts +1 -0
  22. package/dist/components/index.js +30 -28
  23. package/dist/components/index.js.map +1 -1
  24. package/dist/index.js +30 -28
  25. package/dist/index.js.map +1 -1
  26. package/package.json +16 -16
  27. package/dist/SelectListbox.module-D-jCitTr.js.map +0 -1
@@ -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-OuTLNxxd.js";
3
3
  import { forwardRef as E, useRef as g, useEffect as c } from "react";
4
- import { s as t } from "../../../SelectListbox.module-D-jCitTr.js";
4
+ import { s as t } from "../../../SelectListbox.module-BWavTmq8.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-D-jCitTr.js";
4
+ import { s as f } from "../../../SelectListbox.module-BWavTmq8.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-OuTLNxxd.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-D-jCitTr.js";
5
+ import { s as b } from "../../../SelectListbox.module-BWavTmq8.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-D-jCitTr.js";
3
+ import { s as i } from "../../../SelectListbox.module-BWavTmq8.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);
@@ -0,0 +1,15 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ export interface ToggleSwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'style' | 'className'> {
3
+ /** The label for the toggle switch. */
4
+ label: string;
5
+ /** Boolean value if label should be visible. */
6
+ labelVisible?: boolean;
7
+ /** Selection for label placement compared to toggle switch. */
8
+ labelPosition?: 'before' | 'after';
9
+ /** Boolean value to be used if the toggle mutates. If true the toggle is disabled in a loading state. */
10
+ loading?: boolean;
11
+ /** Boolean value if extra gap is needed on left of component. */
12
+ extraLeftGap?: boolean;
13
+ }
14
+ /** Represents a component for a toggle switch. */
15
+ export declare function ToggleSwitch({ label, labelPosition, labelVisible, loading, extraLeftGap, ...restProps }: ToggleSwitchProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,66 @@
1
+ import { jsx as l, jsxs as _ } from "react/jsx-runtime";
2
+ import { c as a } from "../../clsx-OuTLNxxd.js";
3
+ import '../../assets/ToggleSwitch.css';const t = {
4
+ "toggle-switch": "_toggle-switch_1df21_1",
5
+ "toggle-switch__visible": "_toggle-switch__visible_1df21_9",
6
+ "toggle-switch--disabled": "_toggle-switch--disabled_1df21_54",
7
+ "toggle-switch--loading": "_toggle-switch--loading_1df21_64",
8
+ "toggle-switch--visually-hidden": "_toggle-switch--visually-hidden_1df21_74",
9
+ "toggle-switch--disabled-label": "_toggle-switch--disabled-label_1df21_87",
10
+ "toggle-switch--loading-cursor": "_toggle-switch--loading-cursor_1df21_91",
11
+ "toggle-switch--extra-left-gap": "_toggle-switch--extra-left-gap_1df21_95"
12
+ };
13
+ function n({
14
+ condition: i,
15
+ wrapper: g,
16
+ children: e
17
+ }) {
18
+ return i ? g(e) : e;
19
+ }
20
+ function f({
21
+ label: i,
22
+ labelPosition: g = "after",
23
+ labelVisible: e = !0,
24
+ loading: o = !1,
25
+ extraLeftGap: d,
26
+ ...s
27
+ }) {
28
+ const c = /* @__PURE__ */ l(
29
+ "span",
30
+ {
31
+ className: a(
32
+ { [t["toggle-switch--visually-hidden"]]: !e },
33
+ { [t["toggle-switch--disabled-label"]]: s.disabled }
34
+ ),
35
+ children: i
36
+ }
37
+ );
38
+ return /* @__PURE__ */ l(
39
+ n,
40
+ {
41
+ condition: o,
42
+ wrapper: (h) => /* @__PURE__ */ l("div", { className: t["toggle-switch--loading-cursor"], children: h }),
43
+ children: /* @__PURE__ */ _(
44
+ "label",
45
+ {
46
+ className: a(
47
+ t["toggle-switch"],
48
+ { [t["toggle-switch--disabled"]]: s.disabled },
49
+ { [t["toggle-switch--loading"]]: o },
50
+ { [t["toggle-switch--extra-left-gap"]]: d }
51
+ ),
52
+ children: [
53
+ g === "before" && c,
54
+ /* @__PURE__ */ l("input", { className: t["toggle-switch--visually-hidden"], ...s, type: "checkbox" }),
55
+ /* @__PURE__ */ l("span", { className: t["toggle-switch__visible"], title: e ? "" : i }),
56
+ g === "after" && c
57
+ ]
58
+ }
59
+ )
60
+ }
61
+ );
62
+ }
63
+ export {
64
+ f as ToggleSwitch
65
+ };
66
+ //# sourceMappingURL=ToggleSwitch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToggleSwitch.js","sources":["../../../src/components/ToggleSwitch/ToggleSwitch.tsx"],"sourcesContent":["import classNames from 'clsx';\n\nimport type { InputHTMLAttributes, ReactNode } from 'react';\n\nimport styles from './ToggleSwitch.module.css';\n\nexport interface ToggleSwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'style' | 'className'> {\n /** The label for the toggle switch. */\n label: string;\n /** Boolean value if label should be visible. */\n labelVisible?: boolean;\n /** Selection for label placement compared to toggle switch. */\n labelPosition?: 'before' | 'after';\n /** Boolean value to be used if the toggle mutates. If true the toggle is disabled in a loading state. */\n loading?: boolean;\n /** Boolean value if extra gap is needed on left of component. */\n extraLeftGap?: boolean;\n}\n\nfunction ConditionalWrapper({\n condition,\n wrapper,\n children,\n}: {\n condition: boolean;\n wrapper: (children: ReactNode) => ReactNode;\n children: ReactNode;\n}) {\n return condition ? wrapper(children) : children;\n}\n\n/** Represents a component for a toggle switch. */\nexport function ToggleSwitch({\n label,\n labelPosition = 'after',\n labelVisible = true,\n loading = false,\n extraLeftGap,\n ...restProps\n}: ToggleSwitchProps) {\n const labelComponent = (\n <span\n className={classNames(\n { [styles['toggle-switch--visually-hidden']]: !labelVisible },\n { [styles['toggle-switch--disabled-label']]: restProps.disabled }\n )}\n >\n {label}\n </span>\n );\n\n return (\n <ConditionalWrapper\n condition={loading}\n wrapper={(children) => <div className={styles['toggle-switch--loading-cursor']}>{children}</div>}\n >\n <label\n className={classNames(\n styles['toggle-switch'],\n { [styles['toggle-switch--disabled']]: restProps.disabled },\n { [styles['toggle-switch--loading']]: loading },\n { [styles['toggle-switch--extra-left-gap']]: extraLeftGap }\n )}\n >\n {labelPosition === 'before' && labelComponent}\n <input className={styles['toggle-switch--visually-hidden']} {...restProps} type=\"checkbox\" />\n <span className={styles['toggle-switch__visible']} title={!labelVisible ? label : ''} />\n {labelPosition === 'after' && labelComponent}\n </label>\n </ConditionalWrapper>\n );\n}\n"],"names":["ConditionalWrapper","condition","wrapper","children","ToggleSwitch","label","labelPosition","labelVisible","loading","extraLeftGap","restProps","labelComponent","jsx","classNames","styles","jsxs"],"mappings":";;;;;;;;;;;;AAmBA,SAASA,EAAmB;AAAA,EAC1B,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AACF,GAIG;AACM,SAAAF,IAAYC,EAAQC,CAAQ,IAAIA;AACzC;AAGO,SAASC,EAAa;AAAA,EAC3B,OAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,cAAAC,IAAe;AAAA,EACf,SAAAC,IAAU;AAAA,EACV,cAAAC;AAAA,EACA,GAAGC;AACL,GAAsB;AACpB,QAAMC,IACJ,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAAA,QACT,EAAE,CAACC,EAAO,gCAAgC,CAAC,GAAG,CAACP,EAAa;AAAA,QAC5D,EAAE,CAACO,EAAO,+BAA+B,CAAC,GAAGJ,EAAU,SAAS;AAAA,MAClE;AAAA,MAEC,UAAAL;AAAA,IAAA;AAAA,EACH;AAIA,SAAA,gBAAAO;AAAA,IAACZ;AAAA,IAAA;AAAA,MACC,WAAWQ;AAAA,MACX,SAAS,CAACL,MAAa,gBAAAS,EAAC,SAAI,WAAWE,EAAO,+BAA+B,GAAI,UAAAX,GAAS;AAAA,MAE1F,UAAA,gBAAAY;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAWF;AAAAA,YACTC,EAAO,eAAe;AAAA,YACtB,EAAE,CAACA,EAAO,yBAAyB,CAAC,GAAGJ,EAAU,SAAS;AAAA,YAC1D,EAAE,CAACI,EAAO,wBAAwB,CAAC,GAAGN,EAAQ;AAAA,YAC9C,EAAE,CAACM,EAAO,+BAA+B,CAAC,GAAGL,EAAa;AAAA,UAC5D;AAAA,UAEC,UAAA;AAAA,YAAAH,MAAkB,YAAYK;AAAA,YAC/B,gBAAAC,EAAC,WAAM,WAAWE,EAAO,gCAAgC,GAAI,GAAGJ,GAAW,MAAK,YAAW;AAAA,YAC3F,gBAAAE,EAAC,QAAK,EAAA,WAAWE,EAAO,wBAAwB,GAAG,OAAQP,IAAuB,KAARF,EAAY,CAAA;AAAA,YACrFC,MAAkB,WAAWK;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAChC;AAAA,EACF;AAEJ;"}
@@ -0,0 +1,5 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { ToggleSwitchProps } from './ToggleSwitch';
3
+ declare const _default: Meta<ToggleSwitchProps>;
4
+ export default _default;
5
+ export declare const ToggleSwitchExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ToggleSwitchProps>;
@@ -0,0 +1,26 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { fn as l } from "../../index-DWzkl4aY.js";
3
+ import { ToggleSwitch as e } from "./ToggleSwitch.js";
4
+ const n = `
5
+ // Has all InputHTMLAttributes props available except "className" and "style"
6
+ <ToggleSwitch onChange={onChangeFunction} checked={checked} label={label} />
7
+ `, p = {
8
+ title: "Atoms/ToggleSwitch",
9
+ component: e,
10
+ parameters: {
11
+ inspectComponent: e,
12
+ codeString: n
13
+ }
14
+ }, a = (t) => /* @__PURE__ */ o(e, { ...t }), s = {
15
+ label: "Toggle switch example",
16
+ labelPosition: "before",
17
+ onChange: l()
18
+ }, c = a.bind({});
19
+ c.args = {
20
+ ...s
21
+ };
22
+ export {
23
+ c as ToggleSwitchExample,
24
+ p as default
25
+ };
26
+ //# sourceMappingURL=ToggleSwitch.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToggleSwitch.stories.js","sources":["../../../src/components/ToggleSwitch/ToggleSwitch.stories.tsx"],"sourcesContent":["import { fn } from '@storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { ToggleSwitchProps } from './ToggleSwitch';\n\nimport { ToggleSwitch } from './ToggleSwitch';\n\nconst codeString = `\n// Has all InputHTMLAttributes props available except \"className\" and \"style\" \n<ToggleSwitch onChange={onChangeFunction} checked={checked} label={label} />\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/ToggleSwitch',\n component: ToggleSwitch,\n parameters: {\n inspectComponent: ToggleSwitch,\n codeString: codeString,\n },\n} as Meta<ToggleSwitchProps>;\n\nconst Template: StoryFn<ToggleSwitchProps> = (args) => {\n return <ToggleSwitch {...args} />;\n};\n\nconst defaultArgs: Partial<ToggleSwitchProps> = {\n label: 'Toggle switch example',\n labelPosition: 'before',\n onChange: fn(),\n};\n\nexport const ToggleSwitchExample = Template.bind({});\nToggleSwitchExample.args = {\n ...defaultArgs,\n};\n"],"names":["codeString","ToggleSwitch_stories","ToggleSwitch","Template","args","jsx","defaultArgs","fn","ToggleSwitchExample"],"mappings":";;;AAOA,MAAMA,IAAa;AAAA;AAAA;AAAA,GAMJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EAAA;AAEJ,GAEMG,IAAuC,CAACC,MACrC,gBAAAC,EAACH,GAAc,EAAA,GAAGE,EAAM,CAAA,GAG3BE,IAA0C;AAAA,EAC9C,OAAO;AAAA,EACP,eAAe;AAAA,EACf,UAAUC,EAAG;AACf,GAEaC,IAAsBL,EAAS,KAAK,CAAE,CAAA;AACnDK,EAAoB,OAAO;AAAA,EACzB,GAAGF;AACL;"}
@@ -0,0 +1 @@
1
+ export * from './ToggleSwitch';
@@ -0,0 +1,5 @@
1
+ import { ToggleSwitch as g } from "./ToggleSwitch.js";
2
+ export {
3
+ g as ToggleSwitch
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -44,4 +44,5 @@ export * from './SelectListbox/SelectProvider';
44
44
  export * from './Sortable';
45
45
  export * from './Spinner';
46
46
  export * from './StatusPill';
47
+ export * from './ToggleSwitch';
47
48
  export * from './Tooltip';
@@ -9,14 +9,14 @@ import { Button as B } from "./Buttons/Button.js";
9
9
  import { LinkButton as b } from "./Buttons/LinkButton.js";
10
10
  import { MenuButton as C } from "./Buttons/MenuButton.js";
11
11
  import { Card as L } from "./Card/Card.js";
12
- import { Checkbox as I } from "./Checkbox/Checkbox.js";
13
- import { CheckboxButton as A } from "./CheckboxButton/CheckboxButton.js";
14
- import { CheckboxButtonBar as R } from "./CheckboxButtonBar/CheckboxButtonBar.js";
15
- import { CheckboxTree as h } from "./CheckboxTree/CheckboxTree.js";
12
+ import { Checkbox as g } from "./Checkbox/Checkbox.js";
13
+ import { CheckboxButton as P } from "./CheckboxButton/CheckboxButton.js";
14
+ import { CheckboxButtonBar as A } from "./CheckboxButtonBar/CheckboxButtonBar.js";
15
+ import { CheckboxTree as R } from "./CheckboxTree/CheckboxTree.js";
16
16
  import { Drawer as v } from "./Drawer/Drawer.js";
17
- import { EmptyStateDataDisplay as E } from "./EmptyStateDataDisplay/EmptyStateDataDisplay.js";
18
- import { FeedbackBox as H } from "./FeedbackBox/FeedbackBox.js";
19
- import { FieldHint as T } from "./FieldHint/FieldHint.js";
17
+ import { EmptyStateDataDisplay as T } from "./EmptyStateDataDisplay/EmptyStateDataDisplay.js";
18
+ import { FeedbackBox as G } from "./FeedbackBox/FeedbackBox.js";
19
+ import { FieldHint as O } from "./FieldHint/FieldHint.js";
20
20
  import { Fieldset as N } from "./Fieldset/Fieldset.js";
21
21
  import { FormField as q } from "./FormField/FormField.js";
22
22
  import { FormInput as K } from "./FormInput/FormInput.js";
@@ -36,17 +36,18 @@ import { OverlayCloseButton as So } from "./OverlayCloseButton/OverlayCloseButto
36
36
  import { PageOverlay as ko } from "./PageOverlay/PageOverlay.js";
37
37
  import { Periods as Fo } from "./Periods/Periods.js";
38
38
  import { PeriodSelector as Mo } from "./PeriodSelector/PeriodSelector.js";
39
- import { ProgrammeCard as Po } from "./ProgrammeCard/ProgrammeCard.js";
40
- import { RadioButton as Do } from "./RadioButton/RadioButton.js";
41
- import { Repeater as go } from "./Repeater/Repeater.js";
39
+ import { ProgrammeCard as Io } from "./ProgrammeCard/ProgrammeCard.js";
40
+ import { RadioButton as ho } from "./RadioButton/RadioButton.js";
41
+ import { Repeater as Do } from "./Repeater/Repeater.js";
42
42
  import { Rte as yo, RteEditor as vo } from "./RteEditor/RteEditor.js";
43
- import { SectionNotification as Eo } from "./SectionNotification/SectionNotification.js";
44
- import { SelectListbox as Ho } from "./SelectListbox/SelectListbox.js";
45
- import { SelectProvider as To, useSelect as zo } from "./SelectListbox/SelectProvider.js";
43
+ import { SectionNotification as To } from "./SectionNotification/SectionNotification.js";
44
+ import { SelectListbox as Go } from "./SelectListbox/SelectListbox.js";
45
+ import { SelectProvider as Oo, useSelect as zo } from "./SelectListbox/SelectProvider.js";
46
46
  import { Sortable as jo } from "./Sortable/Sortable.js";
47
47
  import { Spinner as Jo } from "./Spinner/Spinner.js";
48
48
  import { StatusPill as Qo } from "./StatusPill/StatusPill.js";
49
- import { Tooltip as Vo } from "./Tooltip/Tooltip.js";
49
+ import { ToggleSwitch as Vo } from "./ToggleSwitch/ToggleSwitch.js";
50
+ import { Tooltip as Xo } from "./Tooltip/Tooltip.js";
50
51
  export {
51
52
  t as Accordion,
52
53
  p as AccordionCard,
@@ -57,14 +58,14 @@ export {
57
58
  B as Button,
58
59
  d as ButtonGroup,
59
60
  L as Card,
60
- I as Checkbox,
61
- A as CheckboxButton,
62
- R as CheckboxButtonBar,
63
- h as CheckboxTree,
61
+ g as Checkbox,
62
+ P as CheckboxButton,
63
+ A as CheckboxButtonBar,
64
+ R as CheckboxTree,
64
65
  v as Drawer,
65
- E as EmptyStateDataDisplay,
66
- H as FeedbackBox,
67
- T as FieldHint,
66
+ T as EmptyStateDataDisplay,
67
+ G as FeedbackBox,
68
+ O as FieldHint,
68
69
  N as Fieldset,
69
70
  q as FormField,
70
71
  K as FormInput,
@@ -86,18 +87,19 @@ export {
86
87
  ko as PageOverlay,
87
88
  Mo as PeriodSelector,
88
89
  Fo as Periods,
89
- Po as ProgrammeCard,
90
- Do as RadioButton,
91
- go as Repeater,
90
+ Io as ProgrammeCard,
91
+ ho as RadioButton,
92
+ Do as Repeater,
92
93
  yo as Rte,
93
94
  vo as RteEditor,
94
- Eo as SectionNotification,
95
- Ho as SelectListbox,
96
- To as SelectProvider,
95
+ To as SectionNotification,
96
+ Go as SelectListbox,
97
+ Oo as SelectProvider,
97
98
  jo as Sortable,
98
99
  Jo as Spinner,
99
100
  Qo as StatusPill,
100
- Vo as Tooltip,
101
+ Vo as ToggleSwitch,
102
+ Xo as Tooltip,
101
103
  zo as useSelect
102
104
  };
103
105
  //# 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
@@ -9,14 +9,14 @@ import { Button as B } from "./components/Buttons/Button.js";
9
9
  import { LinkButton as b } from "./components/Buttons/LinkButton.js";
10
10
  import { MenuButton as C } from "./components/Buttons/MenuButton.js";
11
11
  import { Card as L } from "./components/Card/Card.js";
12
- import { Checkbox as I } from "./components/Checkbox/Checkbox.js";
13
- import { CheckboxButton as A } from "./components/CheckboxButton/CheckboxButton.js";
14
- import { CheckboxButtonBar as R } from "./components/CheckboxButtonBar/CheckboxButtonBar.js";
15
- import { CheckboxTree as h } from "./components/CheckboxTree/CheckboxTree.js";
12
+ import { Checkbox as g } from "./components/Checkbox/Checkbox.js";
13
+ import { CheckboxButton as P } from "./components/CheckboxButton/CheckboxButton.js";
14
+ import { CheckboxButtonBar as A } from "./components/CheckboxButtonBar/CheckboxButtonBar.js";
15
+ import { CheckboxTree as R } from "./components/CheckboxTree/CheckboxTree.js";
16
16
  import { Drawer as v } from "./components/Drawer/Drawer.js";
17
- import { EmptyStateDataDisplay as E } from "./components/EmptyStateDataDisplay/EmptyStateDataDisplay.js";
18
- import { FeedbackBox as H } from "./components/FeedbackBox/FeedbackBox.js";
19
- import { FieldHint as T } from "./components/FieldHint/FieldHint.js";
17
+ import { EmptyStateDataDisplay as T } from "./components/EmptyStateDataDisplay/EmptyStateDataDisplay.js";
18
+ import { FeedbackBox as G } from "./components/FeedbackBox/FeedbackBox.js";
19
+ import { FieldHint as O } from "./components/FieldHint/FieldHint.js";
20
20
  import { Fieldset as N } from "./components/Fieldset/Fieldset.js";
21
21
  import { FormField as q } from "./components/FormField/FormField.js";
22
22
  import { FormInput as K } from "./components/FormInput/FormInput.js";
@@ -36,17 +36,18 @@ import { OverlayCloseButton as So } from "./components/OverlayCloseButton/Overla
36
36
  import { PageOverlay as ko } from "./components/PageOverlay/PageOverlay.js";
37
37
  import { Periods as Fo } from "./components/Periods/Periods.js";
38
38
  import { PeriodSelector as Mo } from "./components/PeriodSelector/PeriodSelector.js";
39
- import { ProgrammeCard as Po } from "./components/ProgrammeCard/ProgrammeCard.js";
40
- import { RadioButton as Do } from "./components/RadioButton/RadioButton.js";
41
- import { Repeater as go } from "./components/Repeater/Repeater.js";
39
+ import { ProgrammeCard as Io } from "./components/ProgrammeCard/ProgrammeCard.js";
40
+ import { RadioButton as ho } from "./components/RadioButton/RadioButton.js";
41
+ import { Repeater as Do } from "./components/Repeater/Repeater.js";
42
42
  import { Rte as yo, RteEditor as vo } from "./components/RteEditor/RteEditor.js";
43
- import { SectionNotification as Eo } from "./components/SectionNotification/SectionNotification.js";
44
- import { SelectListbox as Ho } from "./components/SelectListbox/SelectListbox.js";
45
- import { SelectProvider as To, useSelect as zo } from "./components/SelectListbox/SelectProvider.js";
43
+ import { SectionNotification as To } from "./components/SectionNotification/SectionNotification.js";
44
+ import { SelectListbox as Go } from "./components/SelectListbox/SelectListbox.js";
45
+ import { SelectProvider as Oo, useSelect as zo } from "./components/SelectListbox/SelectProvider.js";
46
46
  import { Sortable as jo } from "./components/Sortable/Sortable.js";
47
47
  import { Spinner as Jo } from "./components/Spinner/Spinner.js";
48
48
  import { StatusPill as Qo } from "./components/StatusPill/StatusPill.js";
49
- import { Tooltip as Vo } from "./components/Tooltip/Tooltip.js";
49
+ import { ToggleSwitch as Vo } from "./components/ToggleSwitch/ToggleSwitch.js";
50
+ import { Tooltip as Xo } from "./components/Tooltip/Tooltip.js";
50
51
  export {
51
52
  t as Accordion,
52
53
  p as AccordionCard,
@@ -57,14 +58,14 @@ export {
57
58
  B as Button,
58
59
  d as ButtonGroup,
59
60
  L as Card,
60
- I as Checkbox,
61
- A as CheckboxButton,
62
- R as CheckboxButtonBar,
63
- h as CheckboxTree,
61
+ g as Checkbox,
62
+ P as CheckboxButton,
63
+ A as CheckboxButtonBar,
64
+ R as CheckboxTree,
64
65
  v as Drawer,
65
- E as EmptyStateDataDisplay,
66
- H as FeedbackBox,
67
- T as FieldHint,
66
+ T as EmptyStateDataDisplay,
67
+ G as FeedbackBox,
68
+ O as FieldHint,
68
69
  N as Fieldset,
69
70
  q as FormField,
70
71
  K as FormInput,
@@ -86,18 +87,19 @@ export {
86
87
  ko as PageOverlay,
87
88
  Mo as PeriodSelector,
88
89
  Fo as Periods,
89
- Po as ProgrammeCard,
90
- Do as RadioButton,
91
- go as Repeater,
90
+ Io as ProgrammeCard,
91
+ ho as RadioButton,
92
+ Do as Repeater,
92
93
  yo as Rte,
93
94
  vo as RteEditor,
94
- Eo as SectionNotification,
95
- Ho as SelectListbox,
96
- To as SelectProvider,
95
+ To as SectionNotification,
96
+ Go as SelectListbox,
97
+ Oo as SelectProvider,
97
98
  jo as Sortable,
98
99
  Jo as Spinner,
99
100
  Qo as StatusPill,
100
- Vo as Tooltip,
101
+ Vo as ToggleSwitch,
102
+ Xo as Tooltip,
101
103
  zo as useSelect
102
104
  };
103
105
  //# 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": "2.1.1",
5
+ "version": "2.3.0",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -49,25 +49,25 @@
49
49
  "@semantic-release/git": "^10.0.1",
50
50
  "@semantic-release/gitlab": "^13.2.3",
51
51
  "@semantic-release/npm": "^12.0.1",
52
- "@storybook/addon-a11y": "^8.4.6",
53
- "@storybook/addon-essentials": "^8.4.6",
54
- "@storybook/addon-links": "^8.4.6",
55
- "@storybook/blocks": "^8.4.6",
56
- "@storybook/manager-api": "^8.4.6",
57
- "@storybook/preview-api": "^8.4.6",
58
- "@storybook/react-vite": "^8.4.6",
59
- "@storybook/react": "^8.4.6",
60
- "@storybook/test": "^8.4.6",
52
+ "@storybook/addon-a11y": "^8.4.7",
53
+ "@storybook/addon-essentials": "^8.4.7",
54
+ "@storybook/addon-links": "^8.4.7",
55
+ "@storybook/blocks": "^8.4.7",
56
+ "@storybook/manager-api": "^8.4.7",
57
+ "@storybook/preview-api": "^8.4.7",
58
+ "@storybook/react-vite": "^8.4.7",
59
+ "@storybook/react": "^8.4.7",
60
+ "@storybook/test": "^8.4.7",
61
61
  "@types/node": "^22.10.1",
62
- "@types/react-dom": "^18.3.1",
63
- "@types/react": "^18.3.13",
62
+ "@types/react-dom": "^18.3.2",
63
+ "@types/react": "^18.3.14",
64
64
  "@uva-glass/eslint-config": "^1.3.1",
65
65
  "@uva-glass/stylelint-config": "^1.1.0",
66
66
  "@vitejs/plugin-react": "^4.3.4",
67
67
  "clsx": "^2.1.1",
68
68
  "eslint-config-prettier": "^9.1.0",
69
69
  "eslint-plugin-prettier": "^5.2.1",
70
- "eslint-plugin-react-hooks": "^5.0.0",
70
+ "eslint-plugin-react-hooks": "^5.1.0",
71
71
  "eslint-plugin-react-refresh": "^0.4.16",
72
72
  "eslint-plugin-storybook": "^0.11.1",
73
73
  "glob": "^11.0.0",
@@ -80,7 +80,7 @@
80
80
  "react-router": "^7.0.2",
81
81
  "react": "^18.3.1",
82
82
  "semantic-release": "^24.2.0",
83
- "storybook": "^8.4.6",
83
+ "storybook": "^8.4.7",
84
84
  "style-dictionary": "^4.2.0",
85
85
  "stylelint-config-recommended": "^14.0.1",
86
86
  "stylelint-config-standard": "^36.0.1",
@@ -91,8 +91,8 @@
91
91
  "vite-plugin-lib-inject-css": "^2.1.1",
92
92
  "vite-plugin-static-copy": "^2.2.0",
93
93
  "vite-plugin-svgr": "^4.3.0",
94
- "vite-tsconfig-paths": "^5.1.3",
95
- "vite": "^6.0.2"
94
+ "vite-tsconfig-paths": "^5.1.4",
95
+ "vite": "^6.0.3"
96
96
  },
97
97
  "dependencies": {
98
98
  "@lexical/link": "^0.21.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectListbox.module-D-jCitTr.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}