@uva-glass/component-library 1.48.0 → 1.49.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 (199) hide show
  1. package/dist/MultiSelect-Ckf3uGw5.js.map +1 -1
  2. package/dist/assets/CheckboxButton.css +1 -0
  3. package/dist/assets/CheckboxButtonBar.css +1 -0
  4. package/dist/assets/CheckboxTree.css +1 -1
  5. package/dist/assets/Label.css +1 -1
  6. package/dist/assets/PeriodSelector.css +1 -0
  7. package/dist/components/Accordion/Accordion.d.ts +2 -2
  8. package/dist/components/Accordion/Accordion.js.map +1 -1
  9. package/dist/components/ActionList/ActionList.d.ts +6 -0
  10. package/dist/components/ActionList/ActionList.js +1 -1
  11. package/dist/components/ActionList/ActionList.js.map +1 -1
  12. package/dist/components/ActionList/ActionList.stories.js +4 -3
  13. package/dist/components/ActionList/ActionList.stories.js.map +1 -1
  14. package/dist/components/AppStatusBar/AppStatusBar.d.ts +3 -0
  15. package/dist/components/AppStatusBar/AppStatusBar.js.map +1 -1
  16. package/dist/components/AppStatusBar/AppStatusBar.stories.js +8 -7
  17. package/dist/components/AppStatusBar/AppStatusBar.stories.js.map +1 -1
  18. package/dist/components/Attention/Attention.d.ts +1 -0
  19. package/dist/components/Attention/Attention.js.map +1 -1
  20. package/dist/components/Attention/Attention.stories.js +3 -2
  21. package/dist/components/Attention/Attention.stories.js.map +1 -1
  22. package/dist/components/Backdrop/Backdrop.d.ts +1 -0
  23. package/dist/components/Backdrop/Backdrop.js.map +1 -1
  24. package/dist/components/Backdrop/Backdrop.stories.js +8 -7
  25. package/dist/components/Backdrop/Backdrop.stories.js.map +1 -1
  26. package/dist/components/Button/Button.d.ts +4 -0
  27. package/dist/components/Button/Button.js.map +1 -1
  28. package/dist/components/Button/Button.stories.js +14 -13
  29. package/dist/components/Button/Button.stories.js.map +1 -1
  30. package/dist/components/ButtonGroup/ButtonGroup.d.ts +3 -0
  31. package/dist/components/ButtonGroup/ButtonGroup.js.map +1 -1
  32. package/dist/components/ButtonGroup/ButtonGroup.stories.js +1 -0
  33. package/dist/components/ButtonGroup/ButtonGroup.stories.js.map +1 -1
  34. package/dist/components/Card/Card.d.ts +6 -0
  35. package/dist/components/Card/Card.js.map +1 -1
  36. package/dist/components/Card/Card.stories.js +14 -13
  37. package/dist/components/Card/Card.stories.js.map +1 -1
  38. package/dist/components/Checkbox/Checkbox.d.ts +1 -0
  39. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  40. package/dist/components/Checkbox/Checkbox.stories.js +17 -16
  41. package/dist/components/Checkbox/Checkbox.stories.js.map +1 -1
  42. package/dist/components/CheckboxButton/CheckboxButton.d.ts +16 -0
  43. package/dist/components/CheckboxButton/CheckboxButton.js +51 -0
  44. package/dist/components/CheckboxButton/CheckboxButton.js.map +1 -0
  45. package/dist/components/CheckboxButton/CheckboxButton.stories.d.ts +5 -0
  46. package/dist/components/CheckboxButton/CheckboxButton.stories.js +48 -0
  47. package/dist/components/CheckboxButton/CheckboxButton.stories.js.map +1 -0
  48. package/dist/components/CheckboxButton/index.d.ts +1 -0
  49. package/dist/components/CheckboxButton/index.js +5 -0
  50. package/dist/components/CheckboxButton/index.js.map +1 -0
  51. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.d.ts +22 -0
  52. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +62 -0
  53. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js.map +1 -0
  54. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.d.ts +5 -0
  55. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +70 -0
  56. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -0
  57. package/dist/components/CheckboxButtonBar/index.d.ts +1 -0
  58. package/dist/components/CheckboxButtonBar/index.js +5 -0
  59. package/dist/components/CheckboxButtonBar/index.js.map +1 -0
  60. package/dist/components/CheckboxTree/CheckboxTree.d.ts +5 -3
  61. package/dist/components/CheckboxTree/CheckboxTree.js +21 -21
  62. package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
  63. package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
  64. package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
  65. package/dist/components/Drawer/Drawer.d.ts +6 -0
  66. package/dist/components/Drawer/Drawer.js.map +1 -1
  67. package/dist/components/Drawer/Drawer.stories.js +16 -15
  68. package/dist/components/Drawer/Drawer.stories.js.map +1 -1
  69. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.d.ts +3 -0
  70. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js.map +1 -1
  71. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js +3 -2
  72. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js.map +1 -1
  73. package/dist/components/FeedbackBox/FeedbackBox.d.ts +4 -0
  74. package/dist/components/FeedbackBox/FeedbackBox.js.map +1 -1
  75. package/dist/components/FeedbackBox/FeedbackBox.stories.js +10 -9
  76. package/dist/components/FeedbackBox/FeedbackBox.stories.js.map +1 -1
  77. package/dist/components/FieldHint/FieldHint.d.ts +4 -0
  78. package/dist/components/FieldHint/FieldHint.js.map +1 -1
  79. package/dist/components/FieldHint/FieldHint.stories.js +1 -0
  80. package/dist/components/FieldHint/FieldHint.stories.js.map +1 -1
  81. package/dist/components/Fieldset/Fieldset.d.ts +5 -0
  82. package/dist/components/Fieldset/Fieldset.js.map +1 -1
  83. package/dist/components/Fieldset/Fieldset.stories.js +20 -19
  84. package/dist/components/Fieldset/Fieldset.stories.js.map +1 -1
  85. package/dist/components/FormField/FormField.d.ts +3 -0
  86. package/dist/components/FormField/FormField.js.map +1 -1
  87. package/dist/components/FormField/FormField.stories.js +16 -15
  88. package/dist/components/FormField/FormField.stories.js.map +1 -1
  89. package/dist/components/GridRow/GridRow.d.ts +4 -0
  90. package/dist/components/GridRow/GridRow.js +4 -4
  91. package/dist/components/GridRow/GridRow.js.map +1 -1
  92. package/dist/components/GridRow/GridRow.stories.js +1 -0
  93. package/dist/components/GridRow/GridRow.stories.js.map +1 -1
  94. package/dist/components/HorizontalList/HorizontalList.d.ts +3 -0
  95. package/dist/components/HorizontalList/HorizontalList.js.map +1 -1
  96. package/dist/components/HorizontalList/HorizontalList.stories.js +7 -6
  97. package/dist/components/HorizontalList/HorizontalList.stories.js.map +1 -1
  98. package/dist/components/Icon/Icon.d.ts +4 -0
  99. package/dist/components/Icon/Icon.js.map +1 -1
  100. package/dist/components/Icon/Icon.stories.js +1 -0
  101. package/dist/components/Icon/Icon.stories.js.map +1 -1
  102. package/dist/components/IconButton/IconButton.d.ts +5 -0
  103. package/dist/components/IconButton/IconButton.js.map +1 -1
  104. package/dist/components/IconButton/IconButton.stories.js +8 -7
  105. package/dist/components/IconButton/IconButton.stories.js.map +1 -1
  106. package/dist/components/InfoMessage/InfoMessage.d.ts +3 -0
  107. package/dist/components/InfoMessage/InfoMessage.js.map +1 -1
  108. package/dist/components/InfoMessage/InfoMessage.stories.js +4 -3
  109. package/dist/components/InfoMessage/InfoMessage.stories.js.map +1 -1
  110. package/dist/components/Input/Input.d.ts +6 -0
  111. package/dist/components/Input/Input.js.map +1 -1
  112. package/dist/components/Input/Input.stories.js +11 -10
  113. package/dist/components/Input/Input.stories.js.map +1 -1
  114. package/dist/components/InputField/InputField.d.ts +6 -0
  115. package/dist/components/InputField/InputField.js.map +1 -1
  116. package/dist/components/InputField/InputField.stories.js +16 -15
  117. package/dist/components/InputField/InputField.stories.js.map +1 -1
  118. package/dist/components/Label/Label.d.ts +6 -1
  119. package/dist/components/Label/Label.js +12 -10
  120. package/dist/components/Label/Label.js.map +1 -1
  121. package/dist/components/Label/Label.stories.js +1 -0
  122. package/dist/components/Label/Label.stories.js.map +1 -1
  123. package/dist/components/MenuButton/MenuButton.d.ts +4 -0
  124. package/dist/components/MenuButton/MenuButton.js +1 -1
  125. package/dist/components/MenuButton/MenuButton.js.map +1 -1
  126. package/dist/components/MenuButton/MenuButton.stories.js +19 -18
  127. package/dist/components/MenuButton/MenuButton.stories.js.map +1 -1
  128. package/dist/components/MenuLink/MenuLink.d.ts +1 -0
  129. package/dist/components/MenuLink/MenuLink.js.map +1 -1
  130. package/dist/components/MenuLink/MenuLink.stories.js +5 -4
  131. package/dist/components/MenuLink/MenuLink.stories.js.map +1 -1
  132. package/dist/components/MetaDataList/MetaDataList.d.ts +2 -0
  133. package/dist/components/MetaDataList/MetaDataList.js.map +1 -1
  134. package/dist/components/MetaDataList/MetaDataList.stories.js +5 -4
  135. package/dist/components/MetaDataList/MetaDataList.stories.js.map +1 -1
  136. package/dist/components/ModalDialog/ModalDialog.d.ts +20 -1
  137. package/dist/components/ModalDialog/ModalDialog.js.map +1 -1
  138. package/dist/components/ModalDialog/ModalDialog.stories.js +9 -8
  139. package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -1
  140. package/dist/components/MultiSelect/MultiSelect.d.ts +4 -0
  141. package/dist/components/MultiSelect/MultiSelect.stories.js +23 -22
  142. package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
  143. package/dist/components/OverlayCloseButton/OverlayCloseButton.d.ts +3 -0
  144. package/dist/components/OverlayCloseButton/OverlayCloseButton.js.map +1 -1
  145. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +11 -10
  146. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
  147. package/dist/components/PeriodSelector/PeriodSelector.d.ts +16 -0
  148. package/dist/components/PeriodSelector/PeriodSelector.js +74 -0
  149. package/dist/components/PeriodSelector/PeriodSelector.js.map +1 -0
  150. package/dist/components/PeriodSelector/PeriodSelector.stories.d.ts +5 -0
  151. package/dist/components/PeriodSelector/PeriodSelector.stories.js +25 -0
  152. package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -0
  153. package/dist/components/PeriodSelector/index.d.ts +1 -0
  154. package/dist/components/PeriodSelector/index.js +5 -0
  155. package/dist/components/PeriodSelector/index.js.map +1 -0
  156. package/dist/components/Periods/Periods.d.ts +4 -0
  157. package/dist/components/Periods/Periods.js.map +1 -1
  158. package/dist/components/Periods/Periods.stories.js +1 -0
  159. package/dist/components/Periods/Periods.stories.js.map +1 -1
  160. package/dist/components/ProgrammeCard/ProgrammeCard.d.ts +4 -0
  161. package/dist/components/ProgrammeCard/ProgrammeCard.js.map +1 -1
  162. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +19 -18
  163. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
  164. package/dist/components/RadioButton/RadioButton.d.ts +5 -0
  165. package/dist/components/RadioButton/RadioButton.js.map +1 -1
  166. package/dist/components/RadioButton/RadioButton.stories.js +9 -8
  167. package/dist/components/RadioButton/RadioButton.stories.js.map +1 -1
  168. package/dist/components/Repeater/Repeater.d.ts +3 -0
  169. package/dist/components/Repeater/Repeater.js.map +1 -1
  170. package/dist/components/Repeater/Repeater.stories.js +6 -5
  171. package/dist/components/Repeater/Repeater.stories.js.map +1 -1
  172. package/dist/components/SectionNotification/SectionNotification.d.ts +2 -0
  173. package/dist/components/SectionNotification/SectionNotification.js.map +1 -1
  174. package/dist/components/SectionNotification/SectionNotification.stories.js +1 -0
  175. package/dist/components/SectionNotification/SectionNotification.stories.js.map +1 -1
  176. package/dist/components/SelectListbox/SelectListBox.stories.d.ts +2 -2
  177. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -0
  178. package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
  179. package/dist/components/SelectListbox/SelectListbox.d.ts +12 -0
  180. package/dist/components/SelectListbox/SelectListbox.js +9 -9
  181. package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
  182. package/dist/components/Spinner/Spinner.d.ts +3 -1
  183. package/dist/components/Spinner/Spinner.js.map +1 -1
  184. package/dist/components/Spinner/Spinner.stories.js +4 -3
  185. package/dist/components/Spinner/Spinner.stories.js.map +1 -1
  186. package/dist/components/StatusPill/StatusPill.d.ts +4 -0
  187. package/dist/components/StatusPill/StatusPill.js.map +1 -1
  188. package/dist/components/StatusPill/StatusPill.stories.js +7 -6
  189. package/dist/components/StatusPill/StatusPill.stories.js.map +1 -1
  190. package/dist/components/Tooltip/Tooltip.d.ts +6 -0
  191. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  192. package/dist/components/Tooltip/Tooltip.stories.js +10 -9
  193. package/dist/components/Tooltip/Tooltip.stories.js.map +1 -1
  194. package/dist/components/index.d.ts +3 -0
  195. package/dist/components/index.js +73 -67
  196. package/dist/components/index.js.map +1 -1
  197. package/dist/index.js +73 -67
  198. package/dist/index.js.map +1 -1
  199. package/package.json +15 -15
@@ -1,8 +1,13 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  export interface RadioButtonProps extends InputHTMLAttributes<HTMLInputElement> {
3
+ /** The id of the element. */
3
4
  id: string;
5
+ /** The label of the radio button. */
4
6
  label: string;
7
+ /** The description that is shown under the label. */
5
8
  description?: string;
9
+ /** The gap between the label and radio button. */
6
10
  gap?: 'normal' | 'large';
7
11
  }
12
+ /** Represents a component for a radio button. */
8
13
  export declare const RadioButton: ({ id, label, gap, description, ...restProps }: RadioButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButton.js","sources":["../../../src/components/RadioButton/RadioButton.tsx"],"sourcesContent":["import { clsx } from 'clsx';\n\nimport type { InputHTMLAttributes } from 'react';\n\nimport styles from './RadioButton.module.css';\n\nexport interface RadioButtonProps extends InputHTMLAttributes<HTMLInputElement> {\n id: string;\n label: string;\n description?: string;\n gap?: 'normal' | 'large';\n}\n\nexport const RadioButton = ({ id, label, gap = 'normal', description, ...restProps }: RadioButtonProps) => (\n <div className={clsx(styles['radio-button'], styles[`radio-button--gap-${gap}`])}>\n <input\n className={styles['radio-button__input']}\n {...restProps}\n id={id}\n type=\"radio\"\n aria-describedby={description ? `${id}-description` : undefined}\n />\n <label className={styles['radio-button__label']} htmlFor={id}>\n {label}\n </label>\n {description && (\n <p id={`${id}-description`} className={styles['radio-button__description']}>\n {description}\n </p>\n )}\n </div>\n);\n"],"names":["RadioButton","id","label","gap","description","restProps","clsx","styles","jsx"],"mappings":";;;;;;;;GAaaA,IAAc,CAAC,EAAE,IAAAC,GAAI,OAAAC,GAAO,KAAAC,IAAM,UAAU,aAAAC,GAAa,GAAGC,0BACtE,OAAI,EAAA,WAAWC,EAAKC,EAAO,cAAc,GAAGA,EAAO,qBAAqBJ,CAAG,EAAE,CAAC,GAC7E,UAAA;AAAA,EAAA,gBAAAK;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWD,EAAO,qBAAqB;AAAA,MACtC,GAAGF;AAAA,MACJ,IAAAJ;AAAA,MACA,MAAK;AAAA,MACL,oBAAkBG,IAAc,GAAGH,CAAE,iBAAiB;AAAA,IAAA;AAAA,EACxD;AAAA,EACA,gBAAAO,EAAC,WAAM,WAAWD,EAAO,qBAAqB,GAAG,SAASN,GACvD,UACHC,GAAA;AAAA,EACCE,KACE,gBAAAI,EAAA,KAAA,EAAE,IAAI,GAAGP,CAAE,gBAAgB,WAAWM,EAAO,2BAA2B,GACtE,UACHH,EAAA,CAAA;AAAA,EAEJ,CAAA;"}
1
+ {"version":3,"file":"RadioButton.js","sources":["../../../src/components/RadioButton/RadioButton.tsx"],"sourcesContent":["import { clsx } from 'clsx';\n\nimport type { InputHTMLAttributes } from 'react';\n\nimport styles from './RadioButton.module.css';\n\nexport interface RadioButtonProps extends InputHTMLAttributes<HTMLInputElement> {\n /** The id of the element. */\n id: string;\n /** The label of the radio button. */\n label: string;\n /** The description that is shown under the label. */\n description?: string;\n /** The gap between the label and radio button. */\n gap?: 'normal' | 'large';\n}\n\n/** Represents a component for a radio button. */\nexport const RadioButton = ({ id, label, gap = 'normal', description, ...restProps }: RadioButtonProps) => (\n <div className={clsx(styles['radio-button'], styles[`radio-button--gap-${gap}`])}>\n <input\n className={styles['radio-button__input']}\n {...restProps}\n id={id}\n type=\"radio\"\n aria-describedby={description ? `${id}-description` : undefined}\n />\n <label className={styles['radio-button__label']} htmlFor={id}>\n {label}\n </label>\n {description && (\n <p id={`${id}-description`} className={styles['radio-button__description']}>\n {description}\n </p>\n )}\n </div>\n);\n"],"names":["RadioButton","id","label","gap","description","restProps","clsx","styles","jsx"],"mappings":";;;;;;;;GAkBaA,IAAc,CAAC,EAAE,IAAAC,GAAI,OAAAC,GAAO,KAAAC,IAAM,UAAU,aAAAC,GAAa,GAAGC,0BACtE,OAAI,EAAA,WAAWC,EAAKC,EAAO,cAAc,GAAGA,EAAO,qBAAqBJ,CAAG,EAAE,CAAC,GAC7E,UAAA;AAAA,EAAA,gBAAAK;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWD,EAAO,qBAAqB;AAAA,MACtC,GAAGF;AAAA,MACJ,IAAAJ;AAAA,MACA,MAAK;AAAA,MACL,oBAAkBG,IAAc,GAAGH,CAAE,iBAAiB;AAAA,IAAA;AAAA,EACxD;AAAA,EACA,gBAAAO,EAAC,WAAM,WAAWD,EAAO,qBAAqB,GAAG,SAASN,GACvD,UACHC,GAAA;AAAA,EACCE,KACE,gBAAAI,EAAA,KAAA,EAAE,IAAI,GAAGP,CAAE,gBAAgB,WAAWM,EAAO,2BAA2B,GACtE,UACHH,EAAA,CAAA;AAAA,EAEJ,CAAA;"}
@@ -1,10 +1,10 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { RadioButton as o } from "./RadioButton.js";
3
- import '../../assets/RadioButton2.css';const a = `
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { RadioButton as e } from "./RadioButton.js";
3
+ import '../../assets/RadioButton2.css';const n = `
4
4
  <RadioButton checked={checked} id={id} label={label} name={name}
5
- onChange={onChangeFunction} value={value} description={description} /> `, r = {
5
+ onChange={onChangeFunction} value={value} description={description} /> `, s = {
6
6
  title: "Atoms/RadioButton",
7
- component: o,
7
+ component: e,
8
8
  argTypes: {
9
9
  id: {
10
10
  control: "text"
@@ -23,9 +23,10 @@ import '../../assets/RadioButton2.css';const a = `
23
23
  }
24
24
  },
25
25
  parameters: {
26
- codeString: a
26
+ inspectComponent: e,
27
+ codeString: n
27
28
  }
28
- }, n = (t) => /* @__PURE__ */ e("fieldset", { className: "fieldset", children: /* @__PURE__ */ e(o, { ...t }) }), i = n.bind({});
29
+ }, a = (t) => /* @__PURE__ */ o("fieldset", { className: "fieldset", children: /* @__PURE__ */ o(e, { ...t }) }), i = a.bind({});
29
30
  i.args = {
30
31
  gap: "normal",
31
32
  disabled: !1,
@@ -35,6 +36,6 @@ i.args = {
35
36
  };
36
37
  export {
37
38
  i as RadioButtonExample,
38
- r as default
39
+ s as default
39
40
  };
40
41
  //# sourceMappingURL=RadioButton.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButton.stories.js","sources":["../../../src/components/RadioButton/RadioButton.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { RadioButtonProps } from './RadioButton';\n\nimport { RadioButton } from './RadioButton';\nimport './RadioButton.stories.css';\n\nconst codeString = `\n <RadioButton checked={checked} id={id} label={label} name={name} \n onChange={onChangeFunction} value={value} description={description} /> `;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/RadioButton',\n component: RadioButton,\n argTypes: {\n id: {\n control: 'text',\n },\n label: {\n control: 'text',\n },\n description: {\n control: 'text',\n },\n disabled: {\n control: 'boolean',\n },\n gap: {\n control: 'radio',\n },\n },\n parameters: {\n codeString: codeString,\n },\n} as Meta<RadioButtonProps>;\n\nconst Template: StoryFn<RadioButtonProps> = (args) => (\n <fieldset className=\"fieldset\">\n <RadioButton {...args} />\n </fieldset>\n);\n\nexport const RadioButtonExample = Template.bind({});\nRadioButtonExample.args = {\n gap: 'normal',\n disabled: false,\n label: 'Sample label',\n description: 'Sample description',\n id: 'de501f21',\n};\n"],"names":["codeString","RadioButton_stories","RadioButton","Template","args","jsx","RadioButtonExample"],"mappings":";;AAMA,MAAMA,IAAa;AAAA;AAAA,8EAKJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,IAAI;AAAA,MACF,SAAS;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA,IACA,aAAa;AAAA,MACX,SAAS;AAAA,IACX;AAAA,IACA,UAAU;AAAA,MACR,SAAS;AAAA,IACX;AAAA,IACA,KAAK;AAAA,MACH,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,YAAY;AAAA,IACV,YAAAF;AAAA,EACF;AACF,GAEMG,IAAsC,CAACC,MAC1C,gBAAAC,EAAA,YAAA,EAAS,WAAU,YAClB,UAAC,gBAAAA,EAAAH,GAAA,EAAa,GAAGE,EAAM,CAAA,EACzB,CAAA,GAGWE,IAAqBH,EAAS,KAAK,EAAE;AAClDG,EAAmB,OAAO;AAAA,EACxB,KAAK;AAAA,EACL,UAAU;AAAA,EACV,OAAO;AAAA,EACP,aAAa;AAAA,EACb,IAAI;AACN;"}
1
+ {"version":3,"file":"RadioButton.stories.js","sources":["../../../src/components/RadioButton/RadioButton.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { RadioButtonProps } from './RadioButton';\n\nimport { RadioButton } from './RadioButton';\nimport './RadioButton.stories.css';\n\nconst codeString = `\n <RadioButton checked={checked} id={id} label={label} name={name} \n onChange={onChangeFunction} value={value} description={description} /> `;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/RadioButton',\n component: RadioButton,\n argTypes: {\n id: {\n control: 'text',\n },\n label: {\n control: 'text',\n },\n description: {\n control: 'text',\n },\n disabled: {\n control: 'boolean',\n },\n gap: {\n control: 'radio',\n },\n },\n parameters: {\n inspectComponent: RadioButton,\n codeString: codeString,\n },\n} as Meta<RadioButtonProps>;\n\nconst Template: StoryFn<RadioButtonProps> = (args) => (\n <fieldset className=\"fieldset\">\n <RadioButton {...args} />\n </fieldset>\n);\n\nexport const RadioButtonExample = Template.bind({});\nRadioButtonExample.args = {\n gap: 'normal',\n disabled: false,\n label: 'Sample label',\n description: 'Sample description',\n id: 'de501f21',\n};\n"],"names":["codeString","RadioButton_stories","RadioButton","Template","args","jsx","RadioButtonExample"],"mappings":";;AAMA,MAAMA,IAAa;AAAA;AAAA,8EAKJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,IAAI;AAAA,MACF,SAAS;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,SAAS;AAAA,IACX;AAAA,IACA,aAAa;AAAA,MACX,SAAS;AAAA,IACX;AAAA,IACA,UAAU;AAAA,MACR,SAAS;AAAA,IACX;AAAA,IACA,KAAK;AAAA,MACH,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EACF;AACF,GAEMG,IAAsC,CAACC,MAC1C,gBAAAC,EAAA,YAAA,EAAS,WAAU,YAClB,UAAC,gBAAAA,EAAAH,GAAA,EAAa,GAAGE,EAAM,CAAA,EACzB,CAAA,GAGWE,IAAqBH,EAAS,KAAK,EAAE;AAClDG,EAAmB,OAAO;AAAA,EACxB,KAAK;AAAA,EACL,UAAU;AAAA,EACV,OAAO;AAAA,EACP,aAAa;AAAA,EACb,IAAI;AACN;"}
@@ -1,6 +1,9 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export interface RepeaterProps {
3
+ /** The direction of the items. */
3
4
  flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
5
+ /** The gap between the items. */
4
6
  gap?: '025' | '050' | '075' | '100' | '150' | '200';
5
7
  }
8
+ /** Represents a component to show a list of items. */
6
9
  export declare const Repeater: ({ children, flexDirection, gap }: PropsWithChildren<RepeaterProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Repeater.js","sources":["../../../src/components/Repeater/Repeater.tsx"],"sourcesContent":["import { clsx } from 'clsx';\n\nimport type { PropsWithChildren } from 'react';\n\nimport styles from './Repeater.module.css';\n\nexport interface RepeaterProps {\n flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n gap?: '025' | '050' | '075' | '100' | '150' | '200';\n}\n\nexport const Repeater = ({ children, flexDirection = 'column', gap = '050' }: PropsWithChildren<RepeaterProps>) => {\n return (\n <div className={clsx(styles['repeater'], styles[`repeater--${flexDirection}`], styles[`repeater--gap-${gap}`])}>\n {children}\n </div>\n );\n};\n"],"names":["Repeater","children","flexDirection","gap","clsx","styles"],"mappings":";;;;;;;;;;;;;;GAWaA,IAAW,CAAC,EAAE,UAAAC,GAAU,eAAAC,IAAgB,UAAU,KAAAC,IAAM,8BAEhE,OAAI,EAAA,WAAWC,EAAKC,EAAO,UAAaA,EAAO,aAAaH,CAAa,EAAE,GAAGG,EAAO,iBAAiBF,CAAG,EAAE,CAAC,GAC1G,UAAAF,EACH,CAAA;"}
1
+ {"version":3,"file":"Repeater.js","sources":["../../../src/components/Repeater/Repeater.tsx"],"sourcesContent":["import { clsx } from 'clsx';\n\nimport type { PropsWithChildren } from 'react';\n\nimport styles from './Repeater.module.css';\n\nexport interface RepeaterProps {\n /** The direction of the items. */\n flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n /** The gap between the items. */\n gap?: '025' | '050' | '075' | '100' | '150' | '200';\n}\n\n/** Represents a component to show a list of items. */\nexport const Repeater = ({ children, flexDirection = 'column', gap = '050' }: PropsWithChildren<RepeaterProps>) => {\n return (\n <div className={clsx(styles['repeater'], styles[`repeater--${flexDirection}`], styles[`repeater--gap-${gap}`])}>\n {children}\n </div>\n );\n};\n"],"names":["Repeater","children","flexDirection","gap","clsx","styles"],"mappings":";;;;;;;;;;;;;;GAcaA,IAAW,CAAC,EAAE,UAAAC,GAAU,eAAAC,IAAgB,UAAU,KAAAC,IAAM,8BAEhE,OAAI,EAAA,WAAWC,EAAKC,EAAO,UAAaA,EAAO,aAAaH,CAAa,EAAE,GAAGG,EAAO,iBAAiBF,CAAG,EAAE,CAAC,GAC1G,UAAAF,EACH,CAAA;"}
@@ -1,7 +1,7 @@
1
- import { jsxs as i, Fragment as l, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as i, Fragment as n, jsx as e } from "react/jsx-runtime";
2
2
  import { Repeater as t } from "./Repeater.js";
3
3
  import { Container as o } from "../../storyComponents/Container/Container.js";
4
- const a = "<Repeater flexDirection={flexDirection} gap={gap}>{children}</Repeater>", d = {
4
+ const l = "<Repeater flexDirection={flexDirection} gap={gap}>{children}</Repeater>", d = {
5
5
  title: "Atoms/Repeater",
6
6
  component: t,
7
7
  argTypes: {
@@ -23,13 +23,14 @@ const a = "<Repeater flexDirection={flexDirection} gap={gap}>{children}</Repeate
23
23
  }
24
24
  },
25
25
  parameters: {
26
- codeString: a
26
+ inspectComponent: t,
27
+ codeString: l
27
28
  }
28
- }, n = (r) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(t, { ...r }) }), p = n.bind({});
29
+ }, a = (r) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(t, { ...r }) }), p = a.bind({});
29
30
  p.args = {
30
31
  flexDirection: "column",
31
32
  gap: "050",
32
- children: /* @__PURE__ */ i(l, { children: [
33
+ children: /* @__PURE__ */ i(n, { children: [
33
34
  /* @__PURE__ */ e("div", { children: "Example item 1" }),
34
35
  /* @__PURE__ */ e("div", { children: "Example item 2" }),
35
36
  /* @__PURE__ */ e("div", { children: "Example item 3" })
@@ -1 +1 @@
1
- {"version":3,"file":"Repeater.stories.js","sources":["../../../src/components/Repeater/Repeater.stories.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { RepeaterProps } from './Repeater';\n\nimport { Repeater } from './Repeater';\n\nimport { Container } from 'storyComponents/Container';\n\nconst codeString = '<Repeater flexDirection={flexDirection} gap={gap}>{children}</Repeater>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Repeater',\n component: Repeater,\n argTypes: {\n flexDirection: {\n control: {\n type: 'select',\n },\n },\n gap: {\n control: {\n type: 'select',\n sort: false,\n },\n },\n children: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n codeString: codeString,\n },\n} as Meta<PropsWithChildren<RepeaterProps>>;\n\nconst Template: StoryFn<PropsWithChildren<RepeaterProps>> = (args) => (\n <Container>\n <Repeater {...args} />\n </Container>\n);\n\nexport const RepeaterExample = Template.bind({});\nRepeaterExample.args = {\n flexDirection: 'column',\n gap: '050',\n children: (\n <>\n <div>Example item 1</div>\n <div>Example item 2</div>\n <div>Example item 3</div>\n </>\n ),\n};\n"],"names":["codeString","Repeater_stories","Repeater","Template","args","jsx","Container","RepeaterExample","jsxs","Fragment"],"mappings":";;;AAQA,MAAMA,IAAa,2EAGJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,eAAe;AAAA,MACb,SAAS;AAAA,QACP,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,KAAK;AAAA,MACH,SAAS;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AAAA,EACA,YAAY;AAAA,IACV,YAAAF;AAAA,EACF;AACF,GAEMG,IAAsD,CAACC,MAC3D,gBAAAC,EAACC,KACC,UAAC,gBAAAD,EAAAH,GAAA,EAAU,GAAGE,EAAM,CAAA,EACtB,CAAA,GAGWG,IAAkBJ,EAAS,KAAK,EAAE;AAC/CI,EAAgB,OAAO;AAAA,EACrB,eAAe;AAAA,EACf,KAAK;AAAA,EACL,UAEI,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAJ,EAAC,SAAI,UAAc,iBAAA,CAAA;AAAA,IACnB,gBAAAA,EAAC,SAAI,UAAc,iBAAA,CAAA;AAAA,IACnB,gBAAAA,EAAC,SAAI,UAAc,iBAAA,CAAA;AAAA,EAAA,GACrB;AAEJ;"}
1
+ {"version":3,"file":"Repeater.stories.js","sources":["../../../src/components/Repeater/Repeater.stories.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { RepeaterProps } from './Repeater';\n\nimport { Repeater } from './Repeater';\n\nimport { Container } from 'storyComponents/Container';\n\nconst codeString = '<Repeater flexDirection={flexDirection} gap={gap}>{children}</Repeater>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Repeater',\n component: Repeater,\n argTypes: {\n flexDirection: {\n control: {\n type: 'select',\n },\n },\n gap: {\n control: {\n type: 'select',\n sort: false,\n },\n },\n children: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: Repeater,\n codeString: codeString,\n },\n} as Meta<PropsWithChildren<RepeaterProps>>;\n\nconst Template: StoryFn<PropsWithChildren<RepeaterProps>> = (args) => (\n <Container>\n <Repeater {...args} />\n </Container>\n);\n\nexport const RepeaterExample = Template.bind({});\nRepeaterExample.args = {\n flexDirection: 'column',\n gap: '050',\n children: (\n <>\n <div>Example item 1</div>\n <div>Example item 2</div>\n <div>Example item 3</div>\n </>\n ),\n};\n"],"names":["codeString","Repeater_stories","Repeater","Template","args","jsx","Container","RepeaterExample","jsxs","Fragment"],"mappings":";;;AAQA,MAAMA,IAAa,2EAGJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,eAAe;AAAA,MACb,SAAS;AAAA,QACP,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,KAAK;AAAA,MACH,SAAS;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AAAA,EACA,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EACF;AACF,GAEMG,IAAsD,CAACC,MAC3D,gBAAAC,EAACC,KACC,UAAC,gBAAAD,EAAAH,GAAA,EAAU,GAAGE,EAAM,CAAA,EACtB,CAAA,GAGWG,IAAkBJ,EAAS,KAAK,EAAE;AAC/CI,EAAgB,OAAO;AAAA,EACrB,eAAe;AAAA,EACf,KAAK;AAAA,EACL,UAEI,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAJ,EAAC,SAAI,UAAc,iBAAA,CAAA;AAAA,IACnB,gBAAAA,EAAC,SAAI,UAAc,iBAAA,CAAA;AAAA,IACnB,gBAAAA,EAAC,SAAI,UAAc,iBAAA,CAAA;AAAA,EAAA,GACrB;AAEJ;"}
@@ -1,5 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export interface SectionNotificationProps {
3
+ /** `true` if the notification bar should be full width; otherwise, `false`. */
3
4
  fullWidth?: boolean;
4
5
  }
6
+ /** Represents a component to show notifications within a [Card](/story/atoms-card--card-example). */
5
7
  export declare const SectionNotification: ({ fullWidth, children }: PropsWithChildren<SectionNotificationProps>) => import("react/jsx-runtime").JSX.Element;
@@ -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 /** `true` if the notification bar should be full width; otherwise, `false`. */\n fullWidth?: boolean;\n}\n\n/** Represents a component to show notifications within a [Card](/story/atoms-card--card-example). */\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":";;;;;GAYaA,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;"}
@@ -10,6 +10,7 @@ const n = "<SectionNotification fullWidth={fullWidth}>{children}</SectionNotific
10
10
  }
11
11
  },
12
12
  parameters: {
13
+ inspectComponent: t,
13
14
  codeString: n
14
15
  }
15
16
  }, e = (i) => /* @__PURE__ */ o(t, { ...i }), c = e.bind({});
@@ -1 +1 @@
1
- {"version":3,"file":"SectionNotification.stories.js","sources":["../../../src/components/SectionNotification/SectionNotification.stories.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { SectionNotificationProps } from 'components/SectionNotification';\n\nimport { SectionNotification } from 'components/SectionNotification';\n\nconst codeString = '<SectionNotification fullWidth={fullWidth}>{children}</SectionNotification>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/SectionNotification',\n component: SectionNotification,\n argTypes: {\n fullWidth: {\n control: 'boolean',\n default: false,\n },\n },\n parameters: {\n codeString: codeString,\n },\n} as Meta<PropsWithChildren<SectionNotificationProps>>;\n\nconst Template: StoryFn<PropsWithChildren<SectionNotificationProps>> = (args) => <SectionNotification {...args} />;\n\nexport const SectionNotificationExample = Template.bind({});\nSectionNotificationExample.args = {\n fullWidth: true,\n children: 'This is an example notification',\n};\n"],"names":["codeString","SectionNotification_stories","SectionNotification","Template","args","jsx","SectionNotificationExample"],"mappings":";;AAMA,MAAMA,IAAa,+EAGJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,WAAW;AAAA,MACT,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,YAAY;AAAA,IACV,YAAAF;AAAA,EACF;AACF,GAEMG,IAAiE,CAACC,MAAU,gBAAAC,EAAAH,GAAA,EAAqB,GAAGE,EAAM,CAAA,GAEnGE,IAA6BH,EAAS,KAAK,EAAE;AAC1DG,EAA2B,OAAO;AAAA,EAChC,WAAW;AAAA,EACX,UAAU;AACZ;"}
1
+ {"version":3,"file":"SectionNotification.stories.js","sources":["../../../src/components/SectionNotification/SectionNotification.stories.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { SectionNotificationProps } from 'components/SectionNotification';\n\nimport { SectionNotification } from 'components/SectionNotification';\n\nconst codeString = '<SectionNotification fullWidth={fullWidth}>{children}</SectionNotification>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/SectionNotification',\n component: SectionNotification,\n argTypes: {\n fullWidth: {\n control: 'boolean',\n default: false,\n },\n },\n parameters: {\n inspectComponent: SectionNotification,\n codeString: codeString,\n },\n} as Meta<PropsWithChildren<SectionNotificationProps>>;\n\nconst Template: StoryFn<PropsWithChildren<SectionNotificationProps>> = (args) => <SectionNotification {...args} />;\n\nexport const SectionNotificationExample = Template.bind({});\nSectionNotificationExample.args = {\n fullWidth: true,\n children: 'This is an example notification',\n};\n"],"names":["codeString","SectionNotification_stories","SectionNotification","Template","args","jsx","SectionNotificationExample"],"mappings":";;AAMA,MAAMA,IAAa,+EAGJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,WAAW;AAAA,MACT,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EACF;AACF,GAEMG,IAAiE,CAACC,MAAU,gBAAAC,EAAAH,GAAA,EAAqB,GAAGE,EAAM,CAAA,GAEnGE,IAA6BH,EAAS,KAAK,EAAE;AAC1DG,EAA2B,OAAO;AAAA,EAChC,WAAW;AAAA,EACX,UAAU;AACZ;"}
@@ -1,7 +1,7 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { PropsWithChildren } from 'react';
3
- import { SelectListboxProps, SelectListbox } from './SelectListbox';
4
- declare const _default: Meta<typeof SelectListbox>;
3
+ import { SelectListboxProps } from './SelectListbox';
4
+ declare const _default: Meta<SelectListboxProps>;
5
5
  export default _default;
6
6
  export declare const SelectListboxExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<SelectListboxProps>>;
7
7
  export declare const WithComponentOption: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<SelectListboxProps>>;
@@ -131,6 +131,7 @@ const d = ({
131
131
  }
132
132
  },
133
133
  parameters: {
134
+ inspectComponent: r,
134
135
  codeString: v
135
136
  }
136
137
  }, o = {