@uva-glass/component-library 3.53.1 → 3.53.3

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 (137) hide show
  1. package/dist/{Lexical.prod-CNQPQ6W-.js → Lexical.prod-Dgzi-S1E.js} +2 -2
  2. package/dist/{Lexical.prod-CNQPQ6W-.js.map → Lexical.prod-Dgzi-S1E.js.map} +1 -1
  3. package/dist/{LexicalClipboard.prod-BdghxvkJ.js → LexicalClipboard.prod-Dxc8c2F_.js} +4 -4
  4. package/dist/{LexicalClipboard.prod-BdghxvkJ.js.map → LexicalClipboard.prod-Dxc8c2F_.js.map} +1 -1
  5. package/dist/{LexicalExtension.prod-qYTg6Mah.js → LexicalExtension.prod-CNBWjmfs.js} +5 -5
  6. package/dist/{LexicalExtension.prod-qYTg6Mah.js.map → LexicalExtension.prod-CNBWjmfs.js.map} +1 -1
  7. package/dist/{LexicalLink.prod-DjG5QZHP.js → LexicalLink.prod-EEOzXxej.js} +4 -4
  8. package/dist/{LexicalLink.prod-DjG5QZHP.js.map → LexicalLink.prod-EEOzXxej.js.map} +1 -1
  9. package/dist/{LexicalList.prod-CzxWmBG3.js → LexicalList.prod-DADZlhem.js} +4 -4
  10. package/dist/{LexicalList.prod-CzxWmBG3.js.map → LexicalList.prod-DADZlhem.js.map} +1 -1
  11. package/dist/{LexicalSelection.prod-CqTp0hfr.js → LexicalSelection.prod-B0uiXGSS.js} +2 -2
  12. package/dist/{LexicalSelection.prod-CqTp0hfr.js.map → LexicalSelection.prod-B0uiXGSS.js.map} +1 -1
  13. package/dist/{LexicalTable.prod-C97KnedB.js → LexicalTable.prod-QpQxZNNH.js} +5 -5
  14. package/dist/{LexicalTable.prod-C97KnedB.js.map → LexicalTable.prod-QpQxZNNH.js.map} +1 -1
  15. package/dist/{LexicalUtils.prod-lqA_upYF.js → LexicalUtils.prod-D1mwAww-.js} +2 -2
  16. package/dist/{LexicalUtils.prod-lqA_upYF.js.map → LexicalUtils.prod-D1mwAww-.js.map} +1 -1
  17. package/dist/{TableCellResizerPlugin-BdgrIlKp.js → TableCellResizerPlugin-9kvw_LpH.js} +4 -4
  18. package/dist/{TableCellResizerPlugin-BdgrIlKp.js.map → TableCellResizerPlugin-9kvw_LpH.js.map} +1 -1
  19. package/dist/{TablePlugin-DBKzGTIm.js → TablePlugin-Culqb83M.js} +4 -4
  20. package/dist/{TablePlugin-DBKzGTIm.js.map → TablePlugin-Culqb83M.js.map} +1 -1
  21. package/dist/assets/CheckboxButtonBar.css +1 -1
  22. package/dist/{chunk-GPBRNGY5-UqVYj0H5.js → chunk-GPBRNGY5-BSRMHXbx.js} +2 -2
  23. package/dist/{chunk-GPBRNGY5-UqVYj0H5.js.map → chunk-GPBRNGY5-BSRMHXbx.js.map} +1 -1
  24. package/dist/{client-DkvV9jg_.js → client-DdSuZDnt.js} +4 -6
  25. package/dist/{client-DkvV9jg_.js.map → client-DdSuZDnt.js.map} +1 -1
  26. package/dist/components/Accordion/Accordion.test.js +2 -2
  27. package/dist/components/AccordionCard/AccordionCard.test.js +2 -2
  28. package/dist/components/ActionList/ActionList.d.ts +1 -1
  29. package/dist/components/ActionList/ActionList.test.js +2 -2
  30. package/dist/components/AppStatusBar/AppStatusBar.test.js +1 -1
  31. package/dist/components/Attention/Attention.test.js +1 -1
  32. package/dist/components/Backdrop/Backdrop.test.js +1 -1
  33. package/dist/components/Buttons/Button.stories.js +1 -1
  34. package/dist/components/Buttons/Button.test.js +1 -1
  35. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  36. package/dist/components/Buttons/LinkButton.test.js +1 -1
  37. package/dist/components/Buttons/MenuButton.d.ts +1 -1
  38. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  39. package/dist/components/Buttons/MenuButton.test.js +1 -1
  40. package/dist/components/Card/Card.test.js +1 -1
  41. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  42. package/dist/components/Checkbox/Checkbox.test.js +2 -2
  43. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.d.ts +3 -1
  44. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +64 -60
  45. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js.map +1 -1
  46. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +2 -1
  47. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -1
  48. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +1 -1
  49. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  50. package/dist/components/CheckboxTree/CheckboxTree.stories.js +2 -2
  51. package/dist/components/Chip/Chip.stories.js +1 -1
  52. package/dist/components/ControlsButton/ControlsButton.d.ts +1 -1
  53. package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
  54. package/dist/components/Drawer/Drawer.stories.js +1 -1
  55. package/dist/components/FeedbackBar/FeedbackBar.test.js +1 -1
  56. package/dist/components/FormInput/FormInput.js +1 -1
  57. package/dist/components/FormInput/FormInput.stories.js +1 -1
  58. package/dist/components/IconButton/IconButton.stories.d.ts +1 -1
  59. package/dist/components/IconButton/IconButton.stories.js +1 -1
  60. package/dist/components/InfoBanner/InfoBanner.d.ts +1 -1
  61. package/dist/components/InfoBanner/InfoBanner.stories.d.ts +1 -1
  62. package/dist/components/InputField/InputField.stories.js +2 -2
  63. package/dist/components/Label/Label.test.js +1 -1
  64. package/dist/components/MetaDataBar/MetaDataBar.d.ts +1 -1
  65. package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -1
  66. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  67. package/dist/components/MultiSelect/MultiSelect.d.ts +2 -2
  68. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  69. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  70. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  71. package/dist/components/MultiSelect/index.js +1 -1
  72. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
  73. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +1 -1
  74. package/dist/components/Notification/Notification.stories.js +1 -1
  75. package/dist/components/Notification/Notification.test.js +1 -1
  76. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  77. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  78. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  79. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  80. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  81. package/dist/components/RadioGroup/Radiogroup.test.js +1 -1
  82. package/dist/components/RadioTabSelector/RadioTabSelector.d.ts +1 -1
  83. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  84. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
  85. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  86. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  87. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +33 -33
  88. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js.map +1 -1
  89. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  90. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.d.ts +1 -1
  91. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  92. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +4 -4
  93. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  94. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +3 -3
  95. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
  96. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
  97. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  98. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  99. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.d.ts +1 -1
  100. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
  101. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
  102. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  103. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.d.ts +1 -1
  104. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -3
  105. package/dist/components/RteEditor/Plugins/index.js +2 -2
  106. package/dist/components/RteEditor/RteEditor.js +10 -10
  107. package/dist/components/RteEditor/helpers.js +4 -4
  108. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +2 -2
  109. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +3 -3
  110. package/dist/components/SectionNotification/SectionNotification.stories.d.ts +1 -1
  111. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  112. package/dist/components/SelectListbox/components/SelectButton.d.ts +1 -1
  113. package/dist/components/SelectListbox/components/SelectOption.d.ts +1 -1
  114. package/dist/components/Sortable/Sortable.stories.js +1 -1
  115. package/dist/components/Sortable/components/SortableItem.d.ts +1 -1
  116. package/dist/components/StatusBadge/StatusBadge.stories.d.ts +1 -1
  117. package/dist/components/StatusBadge/StatusBadge.test.js +1 -1
  118. package/dist/components/TextArea/TextArea.stories.js +1 -1
  119. package/dist/components/TextArea/TextArea.test.js +2 -2
  120. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  121. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  122. package/dist/components/VarIndicator/VarIndicator.test.js +2 -2
  123. package/dist/components/WeekSelector/WeekSelector.stories.d.ts +1 -1
  124. package/dist/components/WeekSelector/components/WeekSelectorOption.d.ts +1 -1
  125. package/dist/components/index.js +1 -1
  126. package/dist/{index-BmvI9fji.js → index-Cfzi-sRQ.js} +27 -27
  127. package/dist/{index-BmvI9fji.js.map → index-Cfzi-sRQ.js.map} +1 -1
  128. package/dist/{index-Daa6JVq6.js → index-DcECbqp4.js} +12 -12
  129. package/dist/{index-Daa6JVq6.js.map → index-DcECbqp4.js.map} +1 -1
  130. package/dist/index.js +1 -1
  131. package/dist/{react-18-vQ75Numl.js → react-18-plvLTuyc.js} +2 -2
  132. package/dist/{react-18-vQ75Numl.js.map → react-18-plvLTuyc.js.map} +1 -1
  133. package/dist/{react.esm-CzkD5JmE.js → react.esm-BpII5CMY.js} +712 -733
  134. package/dist/{react.esm-CzkD5JmE.js.map → react.esm-BpII5CMY.js.map} +1 -1
  135. package/dist/storybook__react.d.js +8 -8
  136. package/dist/storybook__react.d.js.map +1 -1
  137. package/package.json +14 -14
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r as n, s as a } from "../../react.esm-CzkD5JmE.js";
4
- import { u as e } from "../../index-Daa6JVq6.js";
3
+ import { r as n, s as a } from "../../react.esm-BpII5CMY.js";
4
+ import { u as e } from "../../index-DcECbqp4.js";
5
5
  import { Accordion as i } from "./Accordion.js";
6
6
  describe("Accordion", () => {
7
7
  it("should render", () => {
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r as c, s as e, f as s, w as d } from "../../react.esm-CzkD5JmE.js";
4
- import { u as r } from "../../index-Daa6JVq6.js";
3
+ import { r as c, s as e, f as s, w as d } from "../../react.esm-BpII5CMY.js";
4
+ import { u as r } from "../../index-DcECbqp4.js";
5
5
  import { AccordionCard as a } from "./AccordionCard.js";
6
6
  describe("AccordionCard", () => {
7
7
  it("should render", () => {
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { IconProps } from 'components/Icon';
2
+ import { IconProps } from '../Icon';
3
3
  import { UIButtonVariant } from 'types/UserInterface';
4
4
  export interface ActionListProps {
5
5
  /** The label that is displayed before the icon. */
@@ -1,7 +1,7 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r as n, s as t, w as a } from "../../react.esm-CzkD5JmE.js";
4
- import { u as l } from "../../index-Daa6JVq6.js";
3
+ import { r as n, s as t, w as a } from "../../react.esm-BpII5CMY.js";
4
+ import { u as l } from "../../index-DcECbqp4.js";
5
5
  import { ActionList as o } from "./ActionList.js";
6
6
  const T = jest.fn(), c = [
7
7
  /* @__PURE__ */ i("button", { type: "button", onClick: T, children: "Test Action 1" }, "1"),
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r, s as t } from "../../react.esm-CzkD5JmE.js";
3
+ import { r, s as t } from "../../react.esm-BpII5CMY.js";
4
4
  import { AppStatusBar as s } from "./AppStatusBar.js";
5
5
  describe("AppStatusBar", () => {
6
6
  it("should render", () => {
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r as t, s as r } from "../../react.esm-CzkD5JmE.js";
3
+ import { r as t, s as r } from "../../react.esm-BpII5CMY.js";
4
4
  import { Attention as n } from "./Attention.js";
5
5
  describe("Attention", () => {
6
6
  it("should render (variant primary)", () => {
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r as e, s as o } from "../../react.esm-CzkD5JmE.js";
3
+ import { r as e, s as o } from "../../react.esm-BpII5CMY.js";
4
4
  import { Backdrop as t } from "./Backdrop.js";
5
5
  describe("Backdrop", () => {
6
6
  it("should render", () => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as a, Fragment as s } from "react/jsx-runtime";
2
- import { f as l } from "../../index-BmvI9fji.js";
2
+ import { f as l } from "../../index-Cfzi-sRQ.js";
3
3
  import { Button as n } from "./Button.js";
4
4
  const c = "<Button variant={variant} onClick={onClictFunction}>{children}</Button>", h = {
5
5
  title: "Atoms/Buttons/Button",
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r as n, s as t, f as c } from "../../react.esm-CzkD5JmE.js";
3
+ import { r as n, s as t, f as c } from "../../react.esm-BpII5CMY.js";
4
4
  import { Button as o } from "./Button.js";
5
5
  const s = jest.fn();
6
6
  describe("Button", () => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as a, Fragment as l } from "react/jsx-runtime";
2
- import { f as s } from "../../index-BmvI9fji.js";
2
+ import { f as s } from "../../index-Cfzi-sRQ.js";
3
3
  import { BrowserRouter as c } from "react-router";
4
4
  import { LinkButton as n } from "./LinkButton.js";
5
5
  const d = `
@@ -1,6 +1,6 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r as n, s as t, f as c } from "../../react.esm-CzkD5JmE.js";
3
+ import { r as n, s as t, f as c } from "../../react.esm-BpII5CMY.js";
4
4
  import { BrowserRouter as u, Routes as a, Route as d } from "react-router";
5
5
  import { LinkButton as o } from "./LinkButton.js";
6
6
  const r = ({ children: i }) => /* @__PURE__ */ s(u, { children: [
@@ -1,5 +1,5 @@
1
1
  import { AriaButtonProps } from '@react-aria/button';
2
- import { IconProps } from 'components/Icon';
2
+ import { IconProps } from '../Icon';
3
3
  import { RefObject } from 'react';
4
4
  import { UIButtonVariant } from 'types/UserInterface';
5
5
  export interface MenuButtonProps extends AriaButtonProps<'button'> {
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as s, Fragment as l } from "react/jsx-runtime";
2
- import { f as c } from "../../index-BmvI9fji.js";
2
+ import { f as c } from "../../index-Cfzi-sRQ.js";
3
3
  import { MenuButton as t } from "./MenuButton.js";
4
4
  const d = `
5
5
  // Has all LabelHTMLAttributes props available except "className" and "style"
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r as u, s as e, f as c } from "../../react.esm-CzkD5JmE.js";
3
+ import { r as u, s as e, f as c } from "../../react.esm-BpII5CMY.js";
4
4
  import { createRef as s } from "react";
5
5
  import { MenuButton as r } from "./MenuButton.js";
6
6
  const n = jest.fn();
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r, s as d } from "../../react.esm-CzkD5JmE.js";
3
+ import { r, s as d } from "../../react.esm-BpII5CMY.js";
4
4
  import { Card as o } from "./Card.js";
5
5
  describe("Card", () => {
6
6
  it("should render", () => {
@@ -1,5 +1,5 @@
1
1
  import { jsxs as g, jsx as o } from "react/jsx-runtime";
2
- import { f as e } from "../../index-BmvI9fji.js";
2
+ import { f as e } from "../../index-Cfzi-sRQ.js";
3
3
  import { Checkbox as n } from "./Checkbox.js";
4
4
  import { FormField as t } from "../FormField/FormField.js";
5
5
  import { Label as i } from "../Label/Label.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r as o, s as t } from "../../react.esm-CzkD5JmE.js";
4
- import { u as s } from "../../index-Daa6JVq6.js";
3
+ import { r as o, s as t } from "../../react.esm-BpII5CMY.js";
4
+ import { u as s } from "../../index-DcECbqp4.js";
5
5
  import { Checkbox as r } from "./Checkbox.js";
6
6
  describe("Checkbox", () => {
7
7
  it("should render", () => {
@@ -12,6 +12,8 @@ export interface CheckboxButtonBarProps {
12
12
  checkboxes: CheckboxProps[];
13
13
  defaultValues?: string[];
14
14
  label?: string;
15
+ /** optional sub-label text (only displayed when label is positioned 'top') */
16
+ subLabel?: string;
15
17
  /** 'top' | 'left' */
16
18
  labelPosition?: 'top' | 'left';
17
19
  /** `true` to show an asterisk to indicate an item is required; otherwise, `false`. */
@@ -32,5 +34,5 @@ export interface CheckboxButtonBarProps {
32
34
  forceSquared?: boolean;
33
35
  onSetValues: (value: string[]) => void;
34
36
  }
35
- export declare const CheckboxButtonBar: ({ checkboxes, defaultValues, label, labelPosition, required, notValid, notValidatedText, actAsRadioButtonBar, footerText, disableGroup, segmented, forceSquared, onSetValues, }: CheckboxButtonBarProps) => import("react/jsx-runtime").JSX.Element;
37
+ export declare const CheckboxButtonBar: ({ checkboxes, defaultValues, label, subLabel, labelPosition, required, notValid, notValidatedText, actAsRadioButtonBar, footerText, disableGroup, segmented, forceSquared, onSetValues, }: CheckboxButtonBarProps) => import("react/jsx-runtime").JSX.Element;
36
38
  export {};
@@ -1,73 +1,77 @@
1
- import { jsxs as F, jsx as r } from "react/jsx-runtime";
2
- import { useState as S } from "react";
1
+ import { jsxs as y, jsx as r } from "react/jsx-runtime";
2
+ import { useState as $ } from "react";
3
3
  import { c as a } from "../../clsx-OuTLNxxd.js";
4
- import { Label as L } from "../Label/Label.js";
5
- import { FeedbackBox as $ } from "../FeedbackBox/FeedbackBox.js";
6
- import { ControlsButton as C } from "../ControlsButton/ControlsButton.js";
4
+ import { Label as z } from "../Label/Label.js";
5
+ import { FeedbackBox as D } from "../FeedbackBox/FeedbackBox.js";
6
+ import { ControlsButton as F } from "../ControlsButton/ControlsButton.js";
7
7
  import '../../assets/CheckboxButtonBar.css';const e = {
8
- "checkbox-button-bar__container": "_checkbox-button-bar__container_1bsrf_1",
9
- "checkbox-button-bar__container--label-left": "_checkbox-button-bar__container--label-left_1bsrf_6",
10
- "checkbox-button-bar__container--label-top": "_checkbox-button-bar__container--label-top_1bsrf_12",
11
- "checkbox-button-bar__row-container": "_checkbox-button-bar__row-container_1bsrf_18",
12
- "checkbox-button-bar__row-container--segmented": "_checkbox-button-bar__row-container--segmented_1bsrf_24",
13
- "checkbox-button-bar__row": "_checkbox-button-bar__row_1bsrf_18",
14
- "checkbox-button-bar__row--not-valid": "_checkbox-button-bar__row--not-valid_1bsrf_39",
15
- "checkbox-button-bar__footer": "_checkbox-button-bar__footer_1bsrf_43"
16
- }, K = ({
17
- checkboxes: x,
8
+ "checkbox-button-bar__container": "_checkbox-button-bar__container_1jark_1",
9
+ "checkbox-button-bar__container--label-left": "_checkbox-button-bar__container--label-left_1jark_6",
10
+ "checkbox-button-bar__container--label-top": "_checkbox-button-bar__container--label-top_1jark_12",
11
+ "checkbox-button-bar__row-container": "_checkbox-button-bar__row-container_1jark_18",
12
+ "checkbox-button-bar__row-container--segmented": "_checkbox-button-bar__row-container--segmented_1jark_24",
13
+ "checkbox-button-bar__row": "_checkbox-button-bar__row_1jark_18",
14
+ "checkbox-button-bar__row--not-valid": "_checkbox-button-bar__row--not-valid_1jark_39",
15
+ "checkbox-button-bar__sub-text": "_checkbox-button-bar__sub-text_1jark_43"
16
+ }, O = ({
17
+ checkboxes: u,
18
18
  defaultValues: n,
19
- label: f,
20
- labelPosition: y = "top",
21
- required: j = !1,
22
- notValid: m = !1,
19
+ label: h,
20
+ subLabel: l = "",
21
+ labelPosition: d = "top",
22
+ required: S = !1,
23
+ notValid: p = !1,
23
24
  notValidatedText: _ = "",
24
- actAsRadioButtonBar: c = !1,
25
- footerText: u = "",
26
- disableGroup: d = !1,
27
- segmented: p = !1,
28
- forceSquared: w = !1,
25
+ actAsRadioButtonBar: t = !1,
26
+ footerText: w = "",
27
+ disableGroup: f = !1,
28
+ segmented: j = !1,
29
+ forceSquared: v = !1,
29
30
  onSetValues: g
30
31
  }) => {
31
- const [l, v] = S(
32
- n && !c ? n.map(String) : n && c ? n.slice(0, 1) : []
33
- ), N = (b) => {
34
- let o = l;
35
- c ? (v([b]), g([b])) : (o.includes(b) ? o = o.filter((t) => t !== b) : o = [...o, b], v(o), g(o));
32
+ const [i, N] = $(
33
+ n && !t ? n.map(String) : n && t ? n.slice(0, 1) : []
34
+ ), C = (c) => {
35
+ let o = i;
36
+ t ? (N([c]), g([c])) : (o.includes(c) ? o = o.filter((b) => b !== c) : o = [...o, c], N(o), g(o));
36
37
  };
37
- return /* @__PURE__ */ F(
38
+ return /* @__PURE__ */ y(
38
39
  "div",
39
40
  {
40
41
  className: a(
41
42
  e["checkbox-button-bar__container"],
42
- e[`checkbox-button-bar__container--label-${y}`]
43
+ e[`checkbox-button-bar__container--label-${d}`]
43
44
  ),
44
45
  children: [
45
- f && /* @__PURE__ */ r(L, { htmlFor: "", required: j, children: f }),
46
+ (h || l) && /* @__PURE__ */ y("div", { children: [
47
+ h && /* @__PURE__ */ r(z, { htmlFor: "", required: S, children: h }),
48
+ l && d === "top" && /* @__PURE__ */ r("div", { className: e["checkbox-button-bar__sub-text"], children: l })
49
+ ] }),
46
50
  /* @__PURE__ */ r(
47
51
  "div",
48
52
  {
49
53
  className: a(e["checkbox-button-bar__row-container"], {
50
- [e["checkbox-button-bar__row-container--segmented"]]: p
54
+ [e["checkbox-button-bar__row-container--segmented"]]: j
51
55
  }),
52
- children: p ? x.map(({ label: b, value: o, prefix: t, tooltip: s, tooltipPosition: h, disabled: i }) => /* @__PURE__ */ r(
56
+ children: j ? u.map(({ label: c, value: o, prefix: b, tooltip: k, tooltipPosition: s, disabled: x }) => /* @__PURE__ */ r(
53
57
  "div",
54
58
  {
55
59
  className: a(e["checkbox-button-bar__row"], {
56
- [e["checkbox-button-bar__row--not-valid"]]: m || _
60
+ [e["checkbox-button-bar__row--not-valid"]]: p || _
57
61
  }),
58
62
  children: /* @__PURE__ */ r(
59
- C,
63
+ F,
60
64
  {
61
- type: c ? "radio" : "checkbox",
62
- label: b,
63
- prefix: t,
64
- tooltip: s,
65
- tooltipPosition: h,
66
- forceSquared: w,
65
+ type: t ? "radio" : "checkbox",
66
+ label: c,
67
+ prefix: b,
68
+ tooltip: k,
69
+ tooltipPosition: s,
70
+ forceSquared: v,
67
71
  value: o,
68
- checked: l.includes(o),
69
- disabled: i || d,
70
- onSetValue: (k) => N(k.target.value)
72
+ checked: i.includes(o),
73
+ disabled: x || f,
74
+ onSetValue: (m) => C(m.target.value)
71
75
  }
72
76
  )
73
77
  },
@@ -76,21 +80,21 @@ import '../../assets/CheckboxButtonBar.css';const e = {
76
80
  "div",
77
81
  {
78
82
  className: a(e["checkbox-button-bar__row"], {
79
- [e["checkbox-button-bar__row--not-valid"]]: m || _
83
+ [e["checkbox-button-bar__row--not-valid"]]: p || _
80
84
  }),
81
- children: x.map(({ label: b, value: o, prefix: t, tooltip: s, tooltipPosition: h, disabled: i }) => /* @__PURE__ */ r(
82
- C,
85
+ children: u.map(({ label: c, value: o, prefix: b, tooltip: k, tooltipPosition: s, disabled: x }) => /* @__PURE__ */ r(
86
+ F,
83
87
  {
84
- type: c ? "radio" : "checkbox",
85
- label: b,
86
- prefix: t,
87
- tooltip: s,
88
- tooltipPosition: h,
89
- forceSquared: w,
88
+ type: t ? "radio" : "checkbox",
89
+ label: c,
90
+ prefix: b,
91
+ tooltip: k,
92
+ tooltipPosition: s,
93
+ forceSquared: v,
90
94
  value: o,
91
- checked: l.includes(o),
92
- disabled: i || d,
93
- onSetValue: (k) => N(k.target.value)
95
+ checked: i.includes(o),
96
+ disabled: x || f,
97
+ onSetValue: (m) => C(m.target.value)
94
98
  },
95
99
  o
96
100
  ))
@@ -98,13 +102,13 @@ import '../../assets/CheckboxButtonBar.css';const e = {
98
102
  )
99
103
  }
100
104
  ),
101
- u && /* @__PURE__ */ r("div", { className: e["checkbox-button-bar__footer"], children: u }),
102
- _ !== "" && /* @__PURE__ */ r($, { level: "error", feedback: _ })
105
+ w && /* @__PURE__ */ r("div", { className: e["checkbox-button-bar__sub-text"], children: w }),
106
+ _ !== "" && /* @__PURE__ */ r(D, { level: "error", feedback: _ })
103
107
  ]
104
108
  }
105
109
  );
106
110
  };
107
111
  export {
108
- K as CheckboxButtonBar
112
+ O as CheckboxButtonBar
109
113
  };
110
114
  //# sourceMappingURL=CheckboxButtonBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxButtonBar.js","sources":["../../../src/components/CheckboxButtonBar/CheckboxButtonBar.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { clsx } from 'clsx';\n\nimport type { ReactNode } from 'react';\n\nimport styles from './CheckboxButtonBar.module.css';\n\nimport { Label } from 'components/Label';\nimport { FeedbackBox } from 'components/FeedbackBox';\nimport { ControlsButton } from 'components/ControlsButton';\n\ntype CheckboxProps = {\n label: string | ReactNode;\n value: string;\n prefix?: string;\n tooltip?: ReactNode;\n tooltipPosition?: 'left' | 'center' | 'right';\n disabled?: boolean;\n};\n\nexport interface CheckboxButtonBarProps {\n /** array with objects with label, value, prefix and disabled*/\n checkboxes: CheckboxProps[];\n //** array with value(s) */\n defaultValues?: string[];\n label?: string;\n /** 'top' | 'left' */\n labelPosition?: 'top' | 'left';\n /** `true` to show an asterisk to indicate an item is required; otherwise, `false`. */\n required?: boolean;\n /** `true` to color border red to show not valid; otherwise, `false`. */\n notValid?: boolean;\n /** error text to display under the bar */\n notValidatedText?: string;\n /** returns an array with only one value */\n actAsRadioButtonBar?: boolean;\n /** optional footer text */\n footerText?: string;\n /** disables all checkboxes in the bar */\n disableGroup?: boolean;\n /** `true` to sepearte each button in their own bordered container */\n segmented?: boolean;\n /** `true` sets forceSquared on all buttons */\n forceSquared?: boolean;\n onSetValues: (value: string[]) => void;\n}\n\nexport const CheckboxButtonBar = ({\n checkboxes,\n defaultValues,\n label,\n labelPosition = 'top',\n required = false,\n notValid = false,\n notValidatedText = '',\n actAsRadioButtonBar = false,\n footerText = '',\n disableGroup = false,\n segmented = false,\n forceSquared = false,\n onSetValues,\n}: CheckboxButtonBarProps) => {\n const [currentValues, setCurrentValues] = useState<string[]>(\n defaultValues && !actAsRadioButtonBar\n ? defaultValues.map(String)\n : defaultValues && actAsRadioButtonBar\n ? defaultValues.slice(0, 1)\n : []\n );\n\n const handleChange = (value: string) => {\n let values = currentValues;\n\n if (actAsRadioButtonBar) {\n setCurrentValues([value]);\n onSetValues([value]);\n } else {\n if (values.includes(value)) {\n values = values.filter((val) => val !== value);\n } else {\n values = [...values, value];\n }\n setCurrentValues(values);\n onSetValues(values);\n }\n };\n\n return (\n <div\n className={clsx(\n styles['checkbox-button-bar__container'],\n styles[`checkbox-button-bar__container--label-${labelPosition}`]\n )}\n >\n {label && (\n <Label htmlFor=\"\" required={required}>\n {label}\n </Label>\n )}\n\n <div\n className={clsx(styles['checkbox-button-bar__row-container'], {\n [styles['checkbox-button-bar__row-container--segmented']]: segmented,\n })}\n >\n {segmented ? (\n checkboxes.map(({ label, value, prefix, tooltip, tooltipPosition, disabled }) => (\n <div\n key={value}\n className={clsx(styles['checkbox-button-bar__row'], {\n [styles['checkbox-button-bar__row--not-valid']]: notValid || notValidatedText,\n })}\n >\n <ControlsButton\n type={actAsRadioButtonBar ? 'radio' : 'checkbox'}\n label={label}\n prefix={prefix}\n tooltip={tooltip}\n tooltipPosition={tooltipPosition}\n forceSquared={forceSquared}\n value={value}\n checked={currentValues.includes(value)}\n disabled={disabled || disableGroup}\n onSetValue={(event) => handleChange(event.target.value)}\n />\n </div>\n ))\n ) : (\n <div\n className={clsx(styles['checkbox-button-bar__row'], {\n [styles['checkbox-button-bar__row--not-valid']]: notValid || notValidatedText,\n })}\n >\n {checkboxes.map(({ label, value, prefix, tooltip, tooltipPosition, disabled }) => (\n <ControlsButton\n key={value}\n type={actAsRadioButtonBar ? 'radio' : 'checkbox'}\n label={label}\n prefix={prefix}\n tooltip={tooltip}\n tooltipPosition={tooltipPosition}\n forceSquared={forceSquared}\n value={value}\n checked={currentValues.includes(value)}\n disabled={disabled || disableGroup}\n onSetValue={(event) => handleChange(event.target.value)}\n />\n ))}\n </div>\n )}\n </div>\n\n {footerText && <div className={styles['checkbox-button-bar__footer']}>{footerText}</div>}\n {notValidatedText !== '' && <FeedbackBox level=\"error\" feedback={notValidatedText} />}\n </div>\n );\n};\n"],"names":["CheckboxButtonBar","checkboxes","defaultValues","label","labelPosition","required","notValid","notValidatedText","actAsRadioButtonBar","footerText","disableGroup","segmented","forceSquared","onSetValues","currentValues","setCurrentValues","useState","handleChange","value","values","val","jsxs","clsx","styles","jsx","Label","prefix","tooltip","tooltipPosition","disabled","ControlsButton","event","FeedbackBox"],"mappings":";;;;;;;;;;;;;;;GA+CaA,IAAoB,CAAC;AAAA,EAChC,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,OAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,UAAAC,IAAW;AAAA,EACX,UAAAC,IAAW;AAAA,EACX,kBAAAC,IAAmB;AAAA,EACnB,qBAAAC,IAAsB;AAAA,EACtB,YAAAC,IAAa;AAAA,EACb,cAAAC,IAAe;AAAA,EACf,WAAAC,IAAY;AAAA,EACZ,cAAAC,IAAe;AAAA,EACf,aAAAC;AACF,MAA8B;AAC5B,QAAM,CAACC,GAAeC,CAAgB,IAAIC;AAAA,IACxCd,KAAiB,CAACM,IACdN,EAAc,IAAI,MAAM,IACxBA,KAAiBM,IACfN,EAAc,MAAM,GAAG,CAAC,IACxB,CAAA;AAAA,EAAC,GAGHe,IAAe,CAACC,MAAkB;AACtC,QAAIC,IAASL;AAEb,IAAIN,KACFO,EAAiB,CAACG,CAAK,CAAC,GACxBL,EAAY,CAACK,CAAK,CAAC,MAEfC,EAAO,SAASD,CAAK,IACvBC,IAASA,EAAO,OAAO,CAACC,MAAQA,MAAQF,CAAK,IAE7CC,IAAS,CAAC,GAAGA,GAAQD,CAAK,GAE5BH,EAAiBI,CAAM,GACvBN,EAAYM,CAAM;AAAA,EAEtB;AAEA,SACE,gBAAAE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACTC,EAAO,gCAAgC;AAAA,QACvCA,EAAO,yCAAyCnB,CAAa,EAAE;AAAA,MAAA;AAAA,MAGhE,UAAA;AAAA,QAAAD,KACC,gBAAAqB,EAACC,GAAA,EAAM,SAAQ,IAAG,UAAApB,GACf,UAAAF,GACH;AAAA,QAGF,gBAAAqB;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWF,EAAKC,E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C;AAAA,oBACA,cAAAhB;AAAA,oBACA,OAAAM;AAAA,oBACA,SAASJ,EAAc,SAASI,CAAK;AAAA,oBACrC,UAAUW,KAAYnB;AAAA,oBACtB,YAAY,CAACqB,MAAUd,EAAac,EAAM,OAAO,KAAK;AAAA,kBAAA;AAAA,kBAVjDb;AAAA,gBAAA,CAYR;AAAA,cAAA;AAAA,YAAA;AAAA,UACH;AAAA,QAAA;AAAA,QAIHT,KAAc,gBAAAe,EAAC,OAAA,EAAI,WAAWD,EAAO,6BAA6B,GAAI,UAAAd,GAAW;AAAA,QACjFF,MAAqB,MAAM,gBAAAiB,EAACQ,KAAY,OAAM,SAAQ,UAAUzB,EAAA,CAAkB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGzF;"}
1
+ {"version":3,"file":"CheckboxButtonBar.js","sources":["../../../src/components/CheckboxButtonBar/CheckboxButtonBar.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { clsx } from 'clsx';\n\nimport type { ReactNode } from 'react';\n\nimport styles from './CheckboxButtonBar.module.css';\n\nimport { Label } from 'components/Label';\nimport { FeedbackBox } from 'components/FeedbackBox';\nimport { ControlsButton } from 'components/ControlsButton';\n\ntype CheckboxProps = {\n label: string | ReactNode;\n value: string;\n prefix?: string;\n tooltip?: ReactNode;\n tooltipPosition?: 'left' | 'center' | 'right';\n disabled?: boolean;\n};\n\nexport interface CheckboxButtonBarProps {\n /** array with objects with label, value, prefix and disabled*/\n checkboxes: CheckboxProps[];\n //** array with value(s) */\n defaultValues?: string[];\n label?: string;\n /** optional sub-label text (only displayed when label is positioned 'top') */\n subLabel?: string;\n /** 'top' | 'left' */\n labelPosition?: 'top' | 'left';\n /** `true` to show an asterisk to indicate an item is required; otherwise, `false`. */\n required?: boolean;\n /** `true` to color border red to show not valid; otherwise, `false`. */\n notValid?: boolean;\n /** error text to display under the bar */\n notValidatedText?: string;\n /** returns an array with only one value */\n actAsRadioButtonBar?: boolean;\n /** optional footer text */\n footerText?: string;\n /** disables all checkboxes in the bar */\n disableGroup?: boolean;\n /** `true` to sepearte each button in their own bordered container */\n segmented?: boolean;\n /** `true` sets forceSquared on all buttons */\n forceSquared?: boolean;\n onSetValues: (value: string[]) => void;\n}\n\nexport const CheckboxButtonBar = ({\n checkboxes,\n defaultValues,\n label,\n subLabel = '',\n labelPosition = 'top',\n required = false,\n notValid = false,\n notValidatedText = '',\n actAsRadioButtonBar = false,\n footerText = '',\n disableGroup = false,\n segmented = false,\n forceSquared = false,\n onSetValues,\n}: CheckboxButtonBarProps) => {\n const [currentValues, setCurrentValues] = useState<string[]>(\n defaultValues && !actAsRadioButtonBar\n ? defaultValues.map(String)\n : defaultValues && actAsRadioButtonBar\n ? defaultValues.slice(0, 1)\n : []\n );\n\n const handleChange = (value: string) => {\n let values = currentValues;\n\n if (actAsRadioButtonBar) {\n setCurrentValues([value]);\n onSetValues([value]);\n } else {\n if (values.includes(value)) {\n values = values.filter((val) => val !== value);\n } else {\n values = [...values, value];\n }\n setCurrentValues(values);\n onSetValues(values);\n }\n };\n\n return (\n <div\n className={clsx(\n styles['checkbox-button-bar__container'],\n styles[`checkbox-button-bar__container--label-${labelPosition}`]\n )}\n >\n {(label || subLabel) && (\n <div>\n {label && (\n <Label htmlFor=\"\" required={required}>\n {label}\n </Label>\n )}\n\n {subLabel && labelPosition === 'top' && (\n <div className={styles['checkbox-button-bar__sub-text']}>{subLabel}</div>\n )}\n </div>\n )}\n\n <div\n className={clsx(styles['checkbox-button-bar__row-container'], {\n [styles['checkbox-button-bar__row-container--segmented']]: segmented,\n })}\n >\n {segmented ? (\n checkboxes.map(({ label, value, prefix, tooltip, tooltipPosition, disabled }) => (\n <div\n key={value}\n className={clsx(styles['checkbox-button-bar__row'], {\n [styles['checkbox-button-bar__row--not-valid']]: notValid || notValidatedText,\n })}\n >\n <ControlsButton\n type={actAsRadioButtonBar ? 'radio' : 'checkbox'}\n label={label}\n prefix={prefix}\n tooltip={tooltip}\n tooltipPosition={tooltipPosition}\n forceSquared={forceSquared}\n value={value}\n checked={currentValues.includes(value)}\n disabled={disabled || disableGroup}\n onSetValue={(event) => handleChange(event.target.value)}\n />\n </div>\n ))\n ) : (\n <div\n className={clsx(styles['checkbox-button-bar__row'], {\n [styles['checkbox-button-bar__row--not-valid']]: notValid || notValidatedText,\n })}\n >\n {checkboxes.map(({ label, value, prefix, tooltip, tooltipPosition, disabled }) => (\n <ControlsButton\n key={value}\n type={actAsRadioButtonBar ? 'radio' : 'checkbox'}\n label={label}\n prefix={prefix}\n tooltip={tooltip}\n tooltipPosition={tooltipPosition}\n forceSquared={forceSquared}\n value={value}\n checked={currentValues.includes(value)}\n disabled={disabled || disableGroup}\n onSetValue={(event) => handleChange(event.target.value)}\n />\n ))}\n </div>\n )}\n </div>\n\n {footerText && <div className={styles['checkbox-button-bar__sub-text']}>{footerText}</div>}\n {notValidatedText !== '' && <FeedbackBox level=\"error\" feedback={notValidatedText} />}\n </div>\n );\n};\n"],"names":["CheckboxButtonBar","checkboxes","defaultValues","label","subLabel","labelPosition","required","notValid","notValidatedText","actAsRadioButtonBar","footerText","disableGroup","segmented","forceSquared","onSetValues","currentValues","setCurrentValues","useState","handleChange","value","values","val","jsxs","clsx","styles","jsx","Label","prefix","tooltip","tooltipPosition","disabled","ControlsButton","event","FeedbackBox"],"mappings":";;;;;;;;;;;;;;;GAiDaA,IAAoB,CAAC;AAAA,EAChC,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,eAAAC,IAAgB;AAAA,EAChB,UAAAC,IAAW;AAAA,EACX,UAAAC,IAAW;AAAA,EACX,kBAAAC,IAAmB;AAAA,EACnB,qBAAAC,IAAsB;AAAA,EACtB,YAAAC,IAAa;AAAA,EACb,cAAAC,IAAe;AAAA,EACf,WAAAC,IAAY;AAAA,EACZ,cAAAC,IAAe;AAAA,EACf,aAAAC;AACF,MAA8B;AAC5B,QAAM,CAACC,GAAeC,CAAgB,IAAIC;AAAA,I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,GAAW;AAAA,QACnFF,MAAqB,MAAM,gBAAAiB,EAACQ,KAAY,OAAM,SAAQ,UAAUzB,EAAA,CAAkB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGzF;"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as t, Fragment as l } from "react/jsx-runtime";
2
- import { f as o } from "../../index-BmvI9fji.js";
2
+ import { f as o } from "../../index-Cfzi-sRQ.js";
3
3
  import { CheckboxButtonBar as i } from "./CheckboxButtonBar.js";
4
4
  import { Periods as r } from "../Periods/Periods.js";
5
5
  const u = "<CheckboxButtonBar checkboxes={} defaultValues={} label={} labelPosition={} required={} notValidatedText={} disableGroup={} onSetValues={} />", B = {
@@ -77,6 +77,7 @@ n.args = {
77
77
  ],
78
78
  defaultValues: ["1", "2"],
79
79
  labelPosition: "top",
80
+ subLabel: "Selecteer een week",
80
81
  footerText: "Weken in periode 2",
81
82
  onSetValues: o()
82
83
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxButtonBar.stories.js","sources":["../../../src/components/CheckboxButtonBar/CheckboxButtonBar.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { CheckboxButtonBarProps } from './CheckboxButtonBar';\n\nimport { CheckboxButtonBar } from './CheckboxButtonBar';\n\nimport { Periods } from 'components/Periods';\n\nconst codeString =\n '<CheckboxButtonBar checkboxes={} defaultValues={} label={} labelPosition={} required={} notValidatedText={} disableGroup={} onSetValues={} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/CheckboxButtonBar',\n component: CheckboxButtonBar,\n argTypes: {\n checkboxes: {\n table: {\n disable: true,\n },\n },\n defaultValues: {\n table: {\n disable: true,\n },\n },\n label: {\n control: 'text',\n },\n labelPosition: {\n control: 'radio',\n options: ['top', 'left'],\n },\n required: {\n control: 'boolean',\n },\n notValidatedText: {\n control: 'text',\n },\n disableGroup: {\n control: 'boolean',\n },\n actAsRadioButtonBar: {\n control: 'boolean',\n },\n onSetValues: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: CheckboxButtonBar,\n codeString: codeString,\n },\n} as Meta<CheckboxButtonBarProps>;\n\nconst Template: StoryFn<CheckboxButtonBarProps> = (args) => <CheckboxButtonBar {...args} />;\n\nexport const CheckboxButtonBarExample = Template.bind({});\nCheckboxButtonBarExample.args = {\n label: 'Periode',\n required: true,\n checkboxes: [\n {\n label: '1.1',\n value: '1',\n },\n {\n label: '1.2',\n value: '2',\n },\n {\n label: '1.3',\n value: '3',\n },\n {\n label: '4',\n value: '4',\n },\n {\n label: '5',\n value: '5',\n },\n {\n label: '6',\n value: '6',\n },\n ],\n defaultValues: ['1', '2'],\n labelPosition: 'top',\n footerText: 'Weken in periode 2',\n onSetValues: fn(),\n};\n\nexport const AsRadioButtonBar = Template.bind({});\nAsRadioButtonBar.args = {\n label: 'Weken',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n },\n {\n label: '2',\n value: '2',\n },\n {\n label: '3',\n value: '3',\n },\n {\n label: '4',\n value: '4',\n },\n {\n label: '5',\n value: '5',\n },\n {\n label: '6',\n value: '6',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: true,\n onSetValues: fn(),\n};\n\nexport const WithPrefix = Template.bind({});\nWithPrefix.args = {\n label: 'Weken',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n prefix: '13',\n },\n {\n label: '2',\n value: '2',\n prefix: '14',\n },\n {\n label: '3',\n value: '3',\n prefix: '15',\n },\n {\n label: '4',\n value: '4',\n prefix: '16',\n },\n {\n label: '5',\n value: '5',\n prefix: '17',\n },\n {\n label: '6',\n value: '6',\n prefix: '18',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n onSetValues: fn(),\n};\n\nexport const WithTooltip = Template.bind({});\nWithTooltip.args = {\n label: 'Weken',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n prefix: '36',\n tooltip: (\n <>\n 1 sept - 5 sept\n <br />\n 2025\n </>\n ),\n tooltipPosition: 'left',\n },\n {\n label: '2',\n value: '2',\n prefix: '37',\n tooltip: (\n <>\n 8 sept - 12 sept\n <br />\n 2025\n </>\n ),\n },\n {\n label: '3',\n value: '3',\n prefix: '38',\n tooltip: (\n <>\n 15 sept - 19 sept\n <br />\n 2025\n </>\n ),\n },\n {\n label: '4',\n value: '4',\n prefix: '39',\n tooltip: (\n <>\n 22 sept - 26 sept\n <br />\n 2025\n </>\n ),\n },\n {\n label: '5',\n value: '5',\n prefix: '40',\n tooltip: (\n <>\n 29 sept - 3 okt\n <br />\n 2025\n </>\n ),\n },\n {\n label: '6',\n value: '6',\n prefix: '41',\n tooltip: (\n <>\n 6 okt - 10 okt\n <br />\n 2025\n </>\n ),\n },\n {\n label: '7',\n value: '7',\n prefix: '42',\n tooltip: (\n <>\n 13 okt - 17 okt\n <br />\n 2025\n </>\n ),\n },\n {\n label: '8',\n value: '8',\n prefix: '43',\n tooltip: (\n <>\n 20 okt - 24 okt\n <br />\n 2025\n </>\n ),\n tooltipPosition: 'right',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n onSetValues: fn(),\n};\n\nexport const Segmented = Template.bind({});\nSegmented.args = {\n label: 'Year(s)',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n tooltip: <>2023 - 2024</>,\n tooltipPosition: 'left',\n },\n {\n label: '2',\n value: '2',\n tooltip: <>2025 - 2026</>,\n },\n {\n label: '3',\n value: '3',\n tooltip: <>2026 - 2027</>,\n },\n {\n label: '4',\n value: '4',\n tooltip: <>2027 - 2028</>,\n tooltipPosition: 'right',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n segmented: true,\n onSetValues: fn(),\n};\n\nexport const WithPeriods = Template.bind({});\nWithPeriods.args = {\n label: 'Aanbieding',\n required: true,\n checkboxes: [\n {\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n label: <Periods periods={[1, 2]} />,\n value: '1',\n },\n {\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n label: <Periods periods={[2, 3]} />,\n value: '2',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n segmented: true,\n onSetValues: fn(),\n};\n"],"names":["codeString","CheckboxButtonBar_stories","CheckboxButtonBar","Template","args","jsx","CheckboxButtonBarExample","fn","AsRadioButtonBar","WithPrefix","WithTooltip","jsxs","Fragment","Segmented","WithPeriods","Periods"],"mappings":";;;;AASA,MAAMA,IACJ,iJAGFC,IAAe;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,YAAY;AAAA,MACV,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IACX;AAAA,IAEF,eAAe;AAAA,MACb,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IACX;AAAA,IAEF,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,eAAe;AAAA,MACb,SAAS;AAAA,MACT,SAAS,CAAC,OAAO,MAAM;AAAA,IAAA;AAAA,IAEzB,UAAU;AAAA,MACR,SAAS;AAAA,IAAA;AAAA,IAEX,kBAAkB;AAAA,MAChB,SAAS;AAAA,IAAA;AAAA,IAEX,cAAc;AAAA,MACZ,SAAS;AAAA,IAAA;AAAA,IAEX,qBAAqB;AAAA,MACnB,SAAS;AAAA,IAAA;AAAA,IAEX,aAAa;AAAA,MACX,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IACX;AAAA,EACF;AAAA,EAEF,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EAAA;AAEJ,GAEMG,IAA4C,CAACC,MAAS,gBAAAC,EAACH,GAAA,EAAmB,GAAGE,GAAM,GAE5EE,IAA2BH,EAAS,KAAK,CAAA,CAAE;AACxDG,EAAyB,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,EACV,YAAY;AAAA,IACV;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,gCAAW,UAAA,cAAA,CAAW;AAAA,MACtB,iBAAiB;AAAA,IAAA;AAAA,IAEnB;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,gCAAW,UAAA,cAAA,CAAW;AAAA,IAAA;AAAA,IAExB;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,gCAAW,UAAA,cAAA,CAAW;AAAA,IAAA;AAAA,IAExB;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,gCAAW,UAAA,cAAA,CAAW;AAAA,MACtB,iBAAiB;AAAA,IAAA;AAAA,EACnB;AAAA,EAEF,eAAe,CAAC,GAAG;AAAA,EACnB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,WAAW;AAAA,EACX,aAAaN,EAAA;AACf;AAEO,MAAMO,IAAcX,EAAS,KAAK,CAAA,CAAE;AAC3CW,EAAY,OAAO;AAAA,EACjB,OAAO;AAAA,EACP,UAAU;AAAA,EACV,YAAY;AAAA,IACV;AAAA;AAAA,MAEE,OAAO,gBAAAT,EAACU,GAAA,EAAQ,SAAS,CAAC,GAAG,CAAC,GAAG;AAAA,MACjC,OAAO;AAAA,IAAA;AAAA,IAET;AAAA;AAAA,MAEE,OAAO,gBAAAV,EAACU,GAAA,EAAQ,SAAS,CAAC,GAAG,CAAC,GAAG;AAAA,MACjC,OAAO;AAAA,IAAA;AAAA,EACT;AAAA,EAEF,eAAe,CAAC,GAAG;AAAA,EACnB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,WAAW;AAAA,EACX,aAAaR,EAAA;AACf;"}
1
+ {"version":3,"file":"CheckboxButtonBar.stories.js","sources":["../../../src/components/CheckboxButtonBar/CheckboxButtonBar.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { CheckboxButtonBarProps } from './CheckboxButtonBar';\n\nimport { CheckboxButtonBar } from './CheckboxButtonBar';\n\nimport { Periods } from 'components/Periods';\n\nconst codeString =\n '<CheckboxButtonBar checkboxes={} defaultValues={} label={} labelPosition={} required={} notValidatedText={} disableGroup={} onSetValues={} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/CheckboxButtonBar',\n component: CheckboxButtonBar,\n argTypes: {\n checkboxes: {\n table: {\n disable: true,\n },\n },\n defaultValues: {\n table: {\n disable: true,\n },\n },\n label: {\n control: 'text',\n },\n labelPosition: {\n control: 'radio',\n options: ['top', 'left'],\n },\n required: {\n control: 'boolean',\n },\n notValidatedText: {\n control: 'text',\n },\n disableGroup: {\n control: 'boolean',\n },\n actAsRadioButtonBar: {\n control: 'boolean',\n },\n onSetValues: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: CheckboxButtonBar,\n codeString: codeString,\n },\n} as Meta<CheckboxButtonBarProps>;\n\nconst Template: StoryFn<CheckboxButtonBarProps> = (args) => <CheckboxButtonBar {...args} />;\n\nexport const CheckboxButtonBarExample = Template.bind({});\nCheckboxButtonBarExample.args = {\n label: 'Periode',\n required: true,\n checkboxes: [\n {\n label: '1.1',\n value: '1',\n },\n {\n label: '1.2',\n value: '2',\n },\n {\n label: '1.3',\n value: '3',\n },\n {\n label: '4',\n value: '4',\n },\n {\n label: '5',\n value: '5',\n },\n {\n label: '6',\n value: '6',\n },\n ],\n defaultValues: ['1', '2'],\n labelPosition: 'top',\n subLabel: 'Selecteer een week',\n footerText: 'Weken in periode 2',\n onSetValues: fn(),\n};\n\nexport const AsRadioButtonBar = Template.bind({});\nAsRadioButtonBar.args = {\n label: 'Weken',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n },\n {\n label: '2',\n value: '2',\n },\n {\n label: '3',\n value: '3',\n },\n {\n label: '4',\n value: '4',\n },\n {\n label: '5',\n value: '5',\n },\n {\n label: '6',\n value: '6',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: true,\n onSetValues: fn(),\n};\n\nexport const WithPrefix = Template.bind({});\nWithPrefix.args = {\n label: 'Weken',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n prefix: '13',\n },\n {\n label: '2',\n value: '2',\n prefix: '14',\n },\n {\n label: '3',\n value: '3',\n prefix: '15',\n },\n {\n label: '4',\n value: '4',\n prefix: '16',\n },\n {\n label: '5',\n value: '5',\n prefix: '17',\n },\n {\n label: '6',\n value: '6',\n prefix: '18',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n onSetValues: fn(),\n};\n\nexport const WithTooltip = Template.bind({});\nWithTooltip.args = {\n label: 'Weken',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n prefix: '36',\n tooltip: (\n <>\n 1 sept - 5 sept\n <br />\n 2025\n </>\n ),\n tooltipPosition: 'left',\n },\n {\n label: '2',\n value: '2',\n prefix: '37',\n tooltip: (\n <>\n 8 sept - 12 sept\n <br />\n 2025\n </>\n ),\n },\n {\n label: '3',\n value: '3',\n prefix: '38',\n tooltip: (\n <>\n 15 sept - 19 sept\n <br />\n 2025\n </>\n ),\n },\n {\n label: '4',\n value: '4',\n prefix: '39',\n tooltip: (\n <>\n 22 sept - 26 sept\n <br />\n 2025\n </>\n ),\n },\n {\n label: '5',\n value: '5',\n prefix: '40',\n tooltip: (\n <>\n 29 sept - 3 okt\n <br />\n 2025\n </>\n ),\n },\n {\n label: '6',\n value: '6',\n prefix: '41',\n tooltip: (\n <>\n 6 okt - 10 okt\n <br />\n 2025\n </>\n ),\n },\n {\n label: '7',\n value: '7',\n prefix: '42',\n tooltip: (\n <>\n 13 okt - 17 okt\n <br />\n 2025\n </>\n ),\n },\n {\n label: '8',\n value: '8',\n prefix: '43',\n tooltip: (\n <>\n 20 okt - 24 okt\n <br />\n 2025\n </>\n ),\n tooltipPosition: 'right',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n onSetValues: fn(),\n};\n\nexport const Segmented = Template.bind({});\nSegmented.args = {\n label: 'Year(s)',\n required: true,\n checkboxes: [\n {\n label: '1',\n value: '1',\n tooltip: <>2023 - 2024</>,\n tooltipPosition: 'left',\n },\n {\n label: '2',\n value: '2',\n tooltip: <>2025 - 2026</>,\n },\n {\n label: '3',\n value: '3',\n tooltip: <>2026 - 2027</>,\n },\n {\n label: '4',\n value: '4',\n tooltip: <>2027 - 2028</>,\n tooltipPosition: 'right',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n segmented: true,\n onSetValues: fn(),\n};\n\nexport const WithPeriods = Template.bind({});\nWithPeriods.args = {\n label: 'Aanbieding',\n required: true,\n checkboxes: [\n {\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n label: <Periods periods={[1, 2]} />,\n value: '1',\n },\n {\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n label: <Periods periods={[2, 3]} />,\n value: '2',\n },\n ],\n defaultValues: ['1'],\n labelPosition: 'top',\n actAsRadioButtonBar: false,\n segmented: true,\n onSetValues: fn(),\n};\n"],"names":["codeString","CheckboxButtonBar_stories","CheckboxButtonBar","Template","args","jsx","CheckboxButtonBarExample","fn","AsRadioButtonBar","WithPrefix","WithTooltip","jsxs","Fragment","Segmented","WithPeriods","Periods"],"mappings":";;;;AASA,MAAMA,IACJ,iJAGFC,IAAe;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,YAAY;AAAA,MACV,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IACX;AAAA,IAEF,eAAe;AAAA,MACb,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IACX;AAAA,IAEF,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,eAAe;AAAA,MACb,SAAS;AAAA,MACT,SAAS,CAAC,OAAO,MAAM;AAAA,IAAA;AAAA,IAEzB,UAAU;A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AAC,GAAG;AAAA,MACjC,OAAO;AAAA,IAAA;AAAA,IAET;AAAA;AAAA,MAEE,OAAO,gBAAAV,EAACU,GAAA,EAAQ,SAAS,CAAC,GAAG,CAAC,GAAG;AAAA,MACjC,OAAO;AAAA,IAAA;AAAA,EACT;AAAA,EAEF,eAAe,CAAC,GAAG;AAAA,EACnB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,WAAW;AAAA,EACX,aAAaR,EAAA;AACf;"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r as c, s as t } from "../../react.esm-CzkD5JmE.js";
3
+ import { r as c, s as t } from "../../react.esm-BpII5CMY.js";
4
4
  import { CheckboxButtonBar as a } from "./CheckboxButtonBar.js";
5
5
  const n = jest.fn(), d = [
6
6
  {
@@ -18,7 +18,7 @@ import "../IconButton/IconButton.js";
18
18
  import "../Input/Input.js";
19
19
  import "../InputField/InputField.js";
20
20
  import "react-router";
21
- import "../../TablePlugin-DBKzGTIm.js";
21
+ import "../../TablePlugin-Culqb83M.js";
22
22
  import "../RteEditor/Providers/LanguageProvider.js";
23
23
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
24
24
  import "../RteEditor/hooks/components/Flyout.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as d, jsxs as y } from "react/jsx-runtime";
2
- import { s as O, f as _ } from "../../index-BmvI9fji.js";
3
- import { I as C, a as v } from "../../chunk-GPBRNGY5-UqVYj0H5.js";
2
+ import { s as O, f as _ } from "../../index-Cfzi-sRQ.js";
3
+ import { I as C, a as v } from "../../chunk-GPBRNGY5-BSRMHXbx.js";
4
4
  import { useState as R } from "react";
5
5
  import { CheckboxTree as u } from "./CheckboxTree.js";
6
6
  import { Chip as w } from "../Chip/Chip.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { f as t } from "../../index-BmvI9fji.js";
2
+ import { f as t } from "../../index-Cfzi-sRQ.js";
3
3
  import { Chip as e } from "./Chip.js";
4
4
  const s = "<Chip label={string} onDelete={onDeleteFunction(label)}/>", b = {
5
5
  title: "Atoms/Chip",
@@ -1,5 +1,5 @@
1
1
  import { ChangeEvent, ReactNode } from 'react';
2
- import { IconProps } from 'components/Icon';
2
+ import { IconProps } from '../Icon';
3
3
  export interface ControlsButtonProps {
4
4
  /** to set type/behaviour of input radio or checkbox */
5
5
  type?: 'radio' | 'checkbox';
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as l, Fragment as s } from "react/jsx-runtime";
2
- import { f as e } from "../../index-BmvI9fji.js";
2
+ import { f as e } from "../../index-Cfzi-sRQ.js";
3
3
  import { ControlsButton as t } from "./ControlsButton.js";
4
4
  import { Icons as a } from "../Icon/icons/index.js";
5
5
  import { Periods as i } from "../Periods/Periods.js";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import { OverlayProvider as p } from "@react-aria/overlays";
3
- import { f as m } from "../../index-BmvI9fji.js";
3
+ import { f as m } from "../../index-Cfzi-sRQ.js";
4
4
  import { useState as c } from "react";
5
5
  import { Drawer as r } from "./Drawer.js";
6
6
  import { Button as o } from "../Buttons/Button.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import "../../index-ApPj4mI1.js";
3
- import { r as s, s as e, f as r } from "../../react.esm-CzkD5JmE.js";
3
+ import { r as s, s as e, f as r } from "../../react.esm-BpII5CMY.js";
4
4
  import { FeedbackBar as c } from "./FeedbackBar.js";
5
5
  describe("FeedbackBar", () => {
6
6
  it("should render with children text", () => {
@@ -17,7 +17,7 @@ import "../IconButton/IconButton.js";
17
17
  import "../Input/Input.js";
18
18
  import "../InputField/InputField.js";
19
19
  import "react-router";
20
- import "../../TablePlugin-DBKzGTIm.js";
20
+ import "../../TablePlugin-Culqb83M.js";
21
21
  import "../RteEditor/Providers/LanguageProvider.js";
22
22
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
23
23
  import "../RteEditor/hooks/components/Flyout.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { f as i } from "../../index-BmvI9fji.js";
2
+ import { f as i } from "../../index-Cfzi-sRQ.js";
3
3
  import { FormInput as a } from "./FormInput.js";
4
4
  import { SelectListbox as o } from "../SelectListbox/SelectListbox.js";
5
5
  const m = `
@@ -1,5 +1,5 @@
1
1
  import { Meta } from '@storybook/react';
2
- import { IconButtonProps } from 'components/IconButton';
2
+ import { IconButtonProps } from '.';
3
3
  declare const _default: Meta<IconButtonProps>;
4
4
  export default _default;
5
5
  export declare const IconButtonExample: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IconButtonProps>;
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { f as r } from "../../index-BmvI9fji.js";
2
+ import { f as r } from "../../index-Cfzi-sRQ.js";
3
3
  import { IconButton as t } from "./IconButton.js";
4
4
  import { Icon as i } from "../Icon/Icon.js";
5
5
  const l = `<IconButton variant={variant} aria-label={aria-label} onClick={onClickFunction}>
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { IconProps } from 'components/Icon';
2
+ import { IconProps } from '../Icon';
3
3
  export interface InfoBannerProps {
4
4
  /** The name of the icon to display in the banner. */
5
5
  iconName?: IconProps['name'];
@@ -1,5 +1,5 @@
1
1
  import { Meta } from '@storybook/react';
2
- import { InfoBannerProps } from 'components/InfoBanner';
2
+ import { InfoBannerProps } from '.';
3
3
  declare const _default: Meta<InfoBannerProps>;
4
4
  export default _default;
5
5
  export declare const InfoBannerExample: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, InfoBannerProps>;