@uva-glass/component-library 3.55.5 → 3.55.7

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 (317) hide show
  1. package/dist/Accordion-DvblEUVu.js.map +1 -1
  2. package/dist/AccordionCard-BXy-plB7.js.map +1 -1
  3. package/dist/ActionList-O9w1hqNg.js.map +1 -1
  4. package/dist/AddCatalogueLinkForm-rph4K9P0.js.map +1 -1
  5. package/dist/CheckboxButtonBar-5UMIFMKH.js.map +1 -1
  6. package/dist/ClipboardButton-geHjMl2J.js.map +1 -1
  7. package/dist/ControlsButton-B1XRpMUM.js.map +1 -1
  8. package/dist/CopyableText-DkyhZ6wk.js.map +1 -1
  9. package/dist/Drawer-e7UFHVg9.js.map +1 -1
  10. package/dist/EmptyStateDataDisplay-D0QiI8nE.js.map +1 -1
  11. package/dist/ExpandableInfoPanel-CnBVVNlJ.js.map +1 -1
  12. package/dist/FeedbackBar-ByKp32HE.js.map +1 -1
  13. package/dist/FieldHint-fxnEOsVZ.js.map +1 -1
  14. package/dist/Input-Bn-arMaC.js.map +1 -1
  15. package/dist/InputField-BWAy19w9.js.map +1 -1
  16. package/dist/{Lexical.prod-sbwgNRjw.js → Lexical.prod-CqPLSi0R.js} +1194 -1096
  17. package/dist/Lexical.prod-CqPLSi0R.js.map +1 -0
  18. package/dist/LexicalClipboard.prod-BVw_sFpo.js +651 -0
  19. package/dist/LexicalClipboard.prod-BVw_sFpo.js.map +1 -0
  20. package/dist/LexicalComposerContext.prod-Ca-YN_fj.js.map +1 -1
  21. package/dist/{LexicalExtension.prod-jTSDl1mh.js → LexicalExtension.prod-CUQTgbur.js} +306 -289
  22. package/dist/LexicalExtension.prod-CUQTgbur.js.map +1 -0
  23. package/dist/{LexicalLink.prod-BKLNLyu8.js → LexicalLink.prod-DMhcqD9x.js} +209 -208
  24. package/dist/LexicalLink.prod-DMhcqD9x.js.map +1 -0
  25. package/dist/{LexicalList.prod-DEtc4lSr.js → LexicalList.prod-eYlcb5Ao.js} +208 -168
  26. package/dist/LexicalList.prod-eYlcb5Ao.js.map +1 -0
  27. package/dist/{LexicalTable.prod-CpIPDW6z.js → LexicalTable.prod-DlOxUQou.js} +787 -781
  28. package/dist/LexicalTable.prod-DlOxUQou.js.map +1 -0
  29. package/dist/LexicalUtils.prod-BqcriFWV.js +343 -0
  30. package/dist/LexicalUtils.prod-BqcriFWV.js.map +1 -0
  31. package/dist/{LinkContextMenu-CTkNPiIW.js → LinkContextMenu-ePn1iZ_z.js} +2 -2
  32. package/dist/{LinkContextMenu-CTkNPiIW.js.map → LinkContextMenu-ePn1iZ_z.js.map} +1 -1
  33. package/dist/MenuLink-Cm1yZO_5.js.map +1 -1
  34. package/dist/ModalDialog-N50NGnd4.js.map +1 -1
  35. package/dist/MultiSelectBox-Cuh_o-A1.js.map +1 -1
  36. package/dist/MultiSelectItem-BF5xRjz5.js.map +1 -1
  37. package/dist/Notification-CIhsHuF0.js.map +1 -1
  38. package/dist/OverlayStepBar-CjaoYdsh.js.map +1 -1
  39. package/dist/PageOverlay-S4xsqJha.js.map +1 -1
  40. package/dist/{PasteHandlerPlugin-YpQruA-w.js → PasteHandlerPlugin-BNp8ST0q.js} +5 -5
  41. package/dist/{PasteHandlerPlugin-YpQruA-w.js.map → PasteHandlerPlugin-BNp8ST0q.js.map} +1 -1
  42. package/dist/Periods-BYETtB6R.js.map +1 -1
  43. package/dist/ProgrammeCard-76gG7ksx.js.map +1 -1
  44. package/dist/RadioGroup-JeTjVp5B.js.map +1 -1
  45. package/dist/Slider-BlLyrET9.js.map +1 -1
  46. package/dist/SortableProvider-8HYiBXJS.js.map +1 -1
  47. package/dist/Spinner-BpElTDIu.js.map +1 -1
  48. package/dist/StatusPill-DM7n3I4W.js.map +1 -1
  49. package/dist/TableCellContextMenu-D0IMQr3E.js.map +1 -1
  50. package/dist/{TableCellResizerPlugin-Ceof6StD.js → TableCellResizerPlugin-Bc5y-Qbx.js} +37 -37
  51. package/dist/{TableCellResizerPlugin-Ceof6StD.js.map → TableCellResizerPlugin-Bc5y-Qbx.js.map} +1 -1
  52. package/dist/TextArea-CuASC9bX.js.map +1 -1
  53. package/dist/ToggleSwitch-C7z7JVtx.js.map +1 -1
  54. package/dist/Tooltip-D27p9kh4.js.map +1 -1
  55. package/dist/VarIndicator-C-GueOZD.js.map +1 -1
  56. package/dist/assets/{src/css/fonts.css → fonts.css} +4 -4
  57. package/dist/{chunk-DeC0fbbY.js → chunk-3e0lkp8x.js} +1 -1
  58. package/dist/{chunk-SZQXB3JV-KiB8lSa9.js → chunk-SZQXB3JV-D6GR5B4F.js} +2 -2
  59. package/dist/chunk-SZQXB3JV-D6GR5B4F.js.map +1 -0
  60. package/dist/{client-CHQ7u_QI.js → client-b7M3CmlC.js} +10 -10
  61. package/dist/{client-CHQ7u_QI.js.map → client-b7M3CmlC.js.map} +1 -1
  62. package/dist/clsx-BD2qMUU1.js.map +1 -1
  63. package/dist/components/Accordion/Accordion.stories.js.map +1 -1
  64. package/dist/components/Accordion/Accordion.test.js +3 -3
  65. package/dist/components/Accordion/Accordion.test.js.map +1 -1
  66. package/dist/components/AccordionCard/AccordionCard.stories.js.map +1 -1
  67. package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
  68. package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
  69. package/dist/components/ActionList/ActionList.stories.js.map +1 -1
  70. package/dist/components/ActionList/ActionList.test.js +3 -3
  71. package/dist/components/ActionList/ActionList.test.js.map +1 -1
  72. package/dist/components/AppStatusBar/AppStatusBar.stories.js.map +1 -1
  73. package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
  74. package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
  75. package/dist/components/Attention/Attention.stories.js.map +1 -1
  76. package/dist/components/Attention/Attention.test.js +2 -2
  77. package/dist/components/Attention/Attention.test.js.map +1 -1
  78. package/dist/components/Backdrop/Backdrop.stories.js.map +1 -1
  79. package/dist/components/Backdrop/Backdrop.test.js +2 -2
  80. package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
  81. package/dist/components/ButtonGroup/ButtonGroup.stories.js.map +1 -1
  82. package/dist/components/Buttons/Button.stories.js +1 -1
  83. package/dist/components/Buttons/Button.stories.js.map +1 -1
  84. package/dist/components/Buttons/Button.test.js +2 -2
  85. package/dist/components/Buttons/Button.test.js.map +1 -1
  86. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  87. package/dist/components/Buttons/LinkButton.stories.js.map +1 -1
  88. package/dist/components/Buttons/LinkButton.test.js +2 -2
  89. package/dist/components/Buttons/LinkButton.test.js.map +1 -1
  90. package/dist/components/Buttons/MenuButton.js.map +1 -1
  91. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  92. package/dist/components/Buttons/MenuButton.stories.js.map +1 -1
  93. package/dist/components/Buttons/MenuButton.test.js +2 -2
  94. package/dist/components/Buttons/MenuButton.test.js.map +1 -1
  95. package/dist/components/Card/Card.stories.js.map +1 -1
  96. package/dist/components/Card/Card.test.js +2 -2
  97. package/dist/components/Card/Card.test.js.map +1 -1
  98. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  99. package/dist/components/Checkbox/Checkbox.stories.js.map +1 -1
  100. package/dist/components/Checkbox/Checkbox.test.js +3 -3
  101. package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
  102. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  103. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -1
  104. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
  105. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
  106. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  107. package/dist/components/CheckboxTree/CheckboxTree.stories.js +3 -3
  108. package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
  109. package/dist/components/CheckboxTree/index.js +1 -1
  110. package/dist/components/Chip/Chip.stories.js +1 -1
  111. package/dist/components/Chip/Chip.stories.js.map +1 -1
  112. package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
  113. package/dist/components/ControlsButton/ControlsButton.stories.js.map +1 -1
  114. package/dist/components/Drawer/Drawer.stories.js +1 -1
  115. package/dist/components/Drawer/Drawer.stories.js.map +1 -1
  116. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js.map +1 -1
  117. package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js.map +1 -1
  118. package/dist/components/FeedbackBar/FeedbackBar.stories.js.map +1 -1
  119. package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -2
  120. package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
  121. package/dist/components/FeedbackBox/FeedbackBox.stories.js.map +1 -1
  122. package/dist/components/FieldHint/FieldHint.stories.js.map +1 -1
  123. package/dist/components/Fieldset/Fieldset.stories.js.map +1 -1
  124. package/dist/components/FormField/FormField.stories.js.map +1 -1
  125. package/dist/components/FormInput/FormInput.js +1 -1
  126. package/dist/components/FormInput/FormInput.stories.js +2 -2
  127. package/dist/components/FormInput/FormInput.stories.js.map +1 -1
  128. package/dist/components/FormInput/index.js +1 -1
  129. package/dist/components/GridRow/GridRow.stories.js.map +1 -1
  130. package/dist/components/HorizontalList/HorizontalList.stories.js.map +1 -1
  131. package/dist/components/Icon/Icon.js.map +1 -1
  132. package/dist/components/Icon/Icon.stories.js.map +1 -1
  133. package/dist/components/IconButton/IconButton.stories.js +1 -1
  134. package/dist/components/IconButton/IconButton.stories.js.map +1 -1
  135. package/dist/components/InfoBanner/InfoBanner.stories.js.map +1 -1
  136. package/dist/components/InfoMessage/InfoMessage.stories.js.map +1 -1
  137. package/dist/components/Input/Input.stories.js.map +1 -1
  138. package/dist/components/InputField/InputField.stories.js +1 -1
  139. package/dist/components/InputField/InputField.stories.js.map +1 -1
  140. package/dist/components/Label/Label.stories.js.map +1 -1
  141. package/dist/components/Label/Label.test.js +2 -2
  142. package/dist/components/Label/Label.test.js.map +1 -1
  143. package/dist/components/MenuLink/MenuLink.stories.js.map +1 -1
  144. package/dist/components/MetaDataBar/MetaDataBar.stories.js.map +1 -1
  145. package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -1
  146. package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
  147. package/dist/components/MetaDataList/MetaDataList.stories.js.map +1 -1
  148. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  149. package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -1
  150. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  151. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  152. package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
  153. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  154. package/dist/components/MultiSelect/index.js +1 -1
  155. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
  156. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -1
  157. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -2
  158. package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
  159. package/dist/components/Notification/Notification.stories.js +1 -1
  160. package/dist/components/Notification/Notification.stories.js.map +1 -1
  161. package/dist/components/Notification/Notification.test.js +2 -2
  162. package/dist/components/Notification/Notification.test.js.map +1 -1
  163. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  164. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
  165. package/dist/components/OverlayStepBar/OverlayStepBar.stories.js.map +1 -1
  166. package/dist/components/PageOverlay/PageOverlay.stories.js +2 -2
  167. package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -1
  168. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  169. package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -2
  170. package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
  171. package/dist/components/PeriodSelector/index.js +1 -1
  172. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
  173. package/dist/components/RadioButton/RadioButton.stories.js.map +1 -1
  174. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  175. package/dist/components/RadioGroup/RadioGroup.stories.js.map +1 -1
  176. package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
  177. package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
  178. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  179. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -2
  180. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js.map +1 -1
  181. package/dist/components/RadioTabSelector/index.js +1 -1
  182. package/dist/components/Repeater/Repeater.stories.js.map +1 -1
  183. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  184. package/dist/components/RteEditor/EditorHeader/index.js +1 -1
  185. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +4 -4
  186. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js.map +1 -1
  187. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +25 -25
  188. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js.map +1 -1
  189. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -1
  190. package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -1
  191. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  192. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  193. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -1
  194. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  195. package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -1
  196. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +15 -15
  197. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
  198. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
  199. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
  200. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
  201. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  202. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  203. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -1
  204. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +23 -23
  205. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
  206. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  207. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -1
  208. package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -1
  209. package/dist/components/RteEditor/Plugins/index.js +3 -3
  210. package/dist/components/RteEditor/Providers/LanguageProvider.js.map +1 -1
  211. package/dist/components/RteEditor/RteEditor.js +1 -1
  212. package/dist/components/RteEditor/RteEditor.stories.js +1 -1
  213. package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
  214. package/dist/components/RteEditor/helpers.js +6 -6
  215. package/dist/components/RteEditor/helpers.js.map +1 -1
  216. package/dist/components/RteEditor/hooks/useFlyout.js.map +1 -1
  217. package/dist/components/RteEditor/hooks/useTranslation.js.map +1 -1
  218. package/dist/components/RteEditor/index.js +1 -1
  219. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +12 -12
  220. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js.map +1 -1
  221. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +19 -19
  222. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js.map +1 -1
  223. package/dist/components/SearchField/SearchField.js.map +1 -1
  224. package/dist/components/SearchField/SearcheField.stories.js.map +1 -1
  225. package/dist/components/SearchField/components/ResultsOption.js.map +1 -1
  226. package/dist/components/SectionNotification/SectionNotification.stories.js.map +1 -1
  227. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  228. package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
  229. package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
  230. package/dist/components/SelectListbox/SelectProvider.js.map +1 -1
  231. package/dist/components/SelectListbox/components/SelectButton.js.map +1 -1
  232. package/dist/components/SelectListbox/components/SelectContainer.js.map +1 -1
  233. package/dist/components/SelectListbox/components/SelectOption.js.map +1 -1
  234. package/dist/components/SelectListbox/components/SelectOptionBox.js.map +1 -1
  235. package/dist/components/Slider/Slider.stories.js.map +1 -1
  236. package/dist/components/Sortable/Sortable.js.map +1 -1
  237. package/dist/components/Sortable/Sortable.stories.js +1 -1
  238. package/dist/components/Sortable/Sortable.stories.js.map +1 -1
  239. package/dist/components/Sortable/components/SortableHandle.js.map +1 -1
  240. package/dist/components/Sortable/components/SortableItem.js.map +1 -1
  241. package/dist/components/Sortable/sortableReducer.js.map +1 -1
  242. package/dist/components/Spinner/Spinner.stories.js.map +1 -1
  243. package/dist/components/StatusBadge/StatusBadge.stories.js.map +1 -1
  244. package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
  245. package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
  246. package/dist/components/StatusPill/StatusPill.stories.js.map +1 -1
  247. package/dist/components/TextArea/TextArea.stories.js +1 -1
  248. package/dist/components/TextArea/TextArea.stories.js.map +1 -1
  249. package/dist/components/TextArea/TextArea.test.js +3 -3
  250. package/dist/components/TextArea/TextArea.test.js.map +1 -1
  251. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  252. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js.map +1 -1
  253. package/dist/components/Tooltip/Tooltip.stories.js.map +1 -1
  254. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  255. package/dist/components/VarIndicator/VarIndicator.stories.js.map +1 -1
  256. package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
  257. package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
  258. package/dist/components/WeekSelector/WeekSelector.js.map +1 -1
  259. package/dist/components/WeekSelector/WeekSelector.stories.js.map +1 -1
  260. package/dist/components/WeekSelector/components/WeekSelectorOption.js.map +1 -1
  261. package/dist/components/hooks/useDebounce.js.map +1 -1
  262. package/dist/components/hooks/useOnClickOutside.js.map +1 -1
  263. package/dist/components/hooks/usePositionedFloaters.js.map +1 -1
  264. package/dist/components/hooks/useResponsive.js.map +1 -1
  265. package/dist/components/index.js +1 -1
  266. package/dist/{components-DAwjkky5.js → components-BzxAULjf.js} +549 -549
  267. package/dist/components-BzxAULjf.js.map +1 -0
  268. package/dist/{dist-BIkFjHck.js → dist-V_v3kC0L.js} +3 -3
  269. package/dist/dist-V_v3kC0L.js.map +1 -0
  270. package/dist/{esm-ipAmzhQq.js → esm-BoujHjK5.js} +3 -3
  271. package/dist/{esm-ipAmzhQq.js.map → esm-BoujHjK5.js.map} +1 -1
  272. package/dist/{helpers-MNJmfDe_.js → helpers-B1VK8xTF.js} +2 -2
  273. package/dist/{helpers-MNJmfDe_.js.map → helpers-B1VK8xTF.js.map} +1 -1
  274. package/dist/index.js +1 -1
  275. package/dist/{lib-6BbFZdI7.js → lib-BvOQt8El.js} +2 -2
  276. package/dist/{lib-6BbFZdI7.js.map → lib-BvOQt8El.js.map} +1 -1
  277. package/dist/{react-18-Dwpebadr.js → react-18-DxAWL8_m.js} +3 -3
  278. package/dist/{react-18-Dwpebadr.js.map → react-18-DxAWL8_m.js.map} +1 -1
  279. package/dist/{react.esm-R7eBXTUI.js → react.esm-CweFe1CK.js} +5 -5
  280. package/dist/react.esm-CweFe1CK.js.map +1 -0
  281. package/dist/setupTests.js +4 -4
  282. package/dist/setupTests.js.map +1 -1
  283. package/dist/storybook__react.d.js +5 -5
  284. package/dist/storybook__react.d.js.map +1 -1
  285. package/dist/{test-Cr_l59hN.js → test-Pa9Lwbsq.js} +2 -2
  286. package/dist/test-Pa9Lwbsq.js.map +1 -0
  287. package/dist/{test-utils-BSs0eZfL.js → test-utils-Cmn06m_x.js} +2 -2
  288. package/dist/{test-utils-BSs0eZfL.js.map → test-utils-Cmn06m_x.js.map} +1 -1
  289. package/package.json +21 -20
  290. package/dist/Lexical.prod-sbwgNRjw.js.map +0 -1
  291. package/dist/LexicalClipboard.prod-DdImsyd1.js +0 -248
  292. package/dist/LexicalClipboard.prod-DdImsyd1.js.map +0 -1
  293. package/dist/LexicalExtension.prod-jTSDl1mh.js.map +0 -1
  294. package/dist/LexicalLink.prod-BKLNLyu8.js.map +0 -1
  295. package/dist/LexicalList.prod-DEtc4lSr.js.map +0 -1
  296. package/dist/LexicalTable.prod-CpIPDW6z.js.map +0 -1
  297. package/dist/LexicalUtils.prod-DjjGkphN.js +0 -360
  298. package/dist/LexicalUtils.prod-DjjGkphN.js.map +0 -1
  299. package/dist/chunk-SZQXB3JV-KiB8lSa9.js.map +0 -1
  300. package/dist/components-DAwjkky5.js.map +0 -1
  301. package/dist/dist-BIkFjHck.js.map +0 -1
  302. package/dist/react.esm-R7eBXTUI.js.map +0 -1
  303. package/dist/test-Cr_l59hN.js.map +0 -1
  304. /package/dist/assets/favicon/{src/assets/favicon/android-chrome-192x192.png → android-chrome-192x192.png} +0 -0
  305. /package/dist/assets/favicon/{src/assets/favicon/android-chrome-512x512.png → android-chrome-512x512.png} +0 -0
  306. /package/dist/assets/favicon/{src/assets/favicon/apple-touch-icon.png → apple-touch-icon.png} +0 -0
  307. /package/dist/assets/favicon/{src/assets/favicon/favicon-16x16.png → favicon-16x16.png} +0 -0
  308. /package/dist/assets/favicon/{src/assets/favicon/favicon-32x32.png → favicon-32x32.png} +0 -0
  309. /package/dist/assets/favicon/{src/assets/favicon/favicon.ico → favicon.ico} +0 -0
  310. /package/dist/assets/favicon/{src/assets/favicon/favicon.svg → favicon.svg} +0 -0
  311. /package/dist/assets/favicon/{src/assets/favicon/site.webmanifest → site.webmanifest} +0 -0
  312. /package/dist/assets/fonts/{src/assets/fonts/SourceSans3-Regular.otf.woff → SourceSans3-Regular.otf.woff} +0 -0
  313. /package/dist/assets/fonts/{src/assets/fonts/SourceSans3-Regular.otf.woff2 → SourceSans3-Regular.otf.woff2} +0 -0
  314. /package/dist/assets/fonts/{src/assets/fonts/SourceSans3-Semibold.otf.woff → SourceSans3-Semibold.otf.woff} +0 -0
  315. /package/dist/assets/fonts/{src/assets/fonts/SourceSans3-Semibold.otf.woff2 → SourceSans3-Semibold.otf.woff2} +0 -0
  316. /package/dist/assets/{src/css/globals.css → globals.css} +0 -0
  317. /package/dist/assets/{src/css/variables.css → variables.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Input.stories.js","names":[],"sources":["../../../src/components/Input/Input.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { InputProps } from './Input';\n\nimport { Input } from './Input';\n\nconst codeString = `\n// Has all HTMLInputElement props available except \"className\" and \"style\" \n<Input id={id} type={type} aria-label={aria-label} onChange={onChangeFunction} value={value}/>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Input',\n component: Input,\n argTypes: {\n appearance: {\n table: {\n disable: true,\n },\n },\n type: {\n control: 'inline-radio',\n },\n },\n args: {\n id: '30daa7c7',\n type: 'text',\n disabled: false,\n placeholder: '',\n },\n parameters: {\n inspectComponent: Input,\n codeString: codeString,\n },\n} as Meta<InputProps>;\n\nconst Template: StoryFn<InputProps> = (args) => {\n return <Input {...args} />;\n};\n\nexport const InputExample = Template.bind({});\nInputExample.args = {};\n\nexport const FullWidth = Template.bind({});\nFullWidth.args = {\n fullWidth: true,\n};\n\nexport const Numeric = Template.bind({});\nNumeric.args = {\n isNumeric: true,\n};\n\nexport const WithErrorAppearance = Template.bind({});\nWithErrorAppearance.args = {\n appearance: 'error',\n};\n"],"mappings":";;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,YAAY,EACV,OAAO,EACL,SAAS,IACV,EACF;EACD,MAAM,EACJ,SAAS,gBACV;EACF;CACD,MAAM;EACJ,IAAI;EACJ,MAAM;EACN,UAAU;EACV,aAAa;EACd;CACD,YAAY;EACV,kBAAkB;EACN,YA3BG;EA4BhB;CACF,EAEK,KAAiC,MAC9B,kBAAC,GAAD,EAAO,GAAI,GAAQ,CAAA,EAGf,IAAe,EAAS,KAAK,EAAE,CAAC;AAC7C,EAAa,OAAO,EAAE;AAEtB,IAAa,IAAY,EAAS,KAAK,EAAE,CAAC;AAC1C,EAAU,OAAO,EACf,WAAW,IACZ;AAED,IAAa,IAAU,EAAS,KAAK,EAAE,CAAC;AACxC,EAAQ,OAAO,EACb,WAAW,IACZ;AAED,IAAa,IAAsB,EAAS,KAAK,EAAE,CAAC;AACpD,EAAoB,OAAO,EACzB,YAAY,SACb"}
1
+ {"version":3,"file":"Input.stories.js","names":[],"sources":["../../../src/components/Input/Input.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { InputProps } from './Input';\n\nimport { Input } from './Input';\n\nconst codeString = `\n// Has all HTMLInputElement props available except \"className\" and \"style\" \n<Input id={id} type={type} aria-label={aria-label} onChange={onChangeFunction} value={value}/>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Input',\n component: Input,\n argTypes: {\n appearance: {\n table: {\n disable: true,\n },\n },\n type: {\n control: 'inline-radio',\n },\n },\n args: {\n id: '30daa7c7',\n type: 'text',\n disabled: false,\n placeholder: '',\n },\n parameters: {\n inspectComponent: Input,\n codeString: codeString,\n },\n} as Meta<InputProps>;\n\nconst Template: StoryFn<InputProps> = (args) => {\n return <Input {...args} />;\n};\n\nexport const InputExample = Template.bind({});\nInputExample.args = {};\n\nexport const FullWidth = Template.bind({});\nFullWidth.args = {\n fullWidth: true,\n};\n\nexport const Numeric = Template.bind({});\nNumeric.args = {\n isNumeric: true,\n};\n\nexport const WithErrorAppearance = Template.bind({});\nWithErrorAppearance.args = {\n appearance: 'error',\n};\n"],"mappings":";;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,YAAY,EACV,OAAO,EACL,SAAS,IACV,EACF;EACD,MAAM,EACJ,SAAS,gBACV;EACF;CACD,MAAM;EACJ,IAAI;EACJ,MAAM;EACN,UAAU;EACV,aAAa;EACd;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,KAAiC,MAC9B,kBAAC,GAAD,EAAO,GAAI,GAAQ,CAAA,EAGf,IAAe,EAAS,KAAK,EAAE,CAAC;AAC7C,EAAa,OAAO,EAAE;AAEtB,IAAa,IAAY,EAAS,KAAK,EAAE,CAAC;AAC1C,EAAU,OAAO,EACf,WAAW,IACZ;AAED,IAAa,IAAU,EAAS,KAAK,EAAE,CAAC;AACxC,EAAQ,OAAO,EACb,WAAW,IACZ;AAED,IAAa,IAAsB,EAAS,KAAK,EAAE,CAAC;AACpD,EAAoB,OAAO,EACzB,YAAY,SACb"}
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../test-Cr_l59hN.js";
1
+ import { r as e } from "../../test-Pa9Lwbsq.js";
2
2
  import { Icon as t } from "../Icon/Icon.js";
3
3
  import { t as n } from "../../InputField-BWAy19w9.js";
4
4
  import { t as r } from "../../Container-BLjtYDqq.js";
@@ -1 +1 @@
1
- {"version":3,"file":"InputField.stories.js","names":[],"sources":["../../../src/components/InputField/InputField.stories.tsx"],"sourcesContent":["import { useRef, useState } from 'react';\nimport { fn } from 'storybook/test';\n\nimport type { ChangeEvent } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { InputFieldProps } from './InputField';\n\nimport { InputField } from './InputField';\n\nimport { Container } from 'storyComponents/Container';\nimport { Icon } from 'components';\n\nconst codeString = `\n// Has all HTMLInputElement props available except \"className\" and \"style\" \n<InputField aria-labelledby={aria-labelledby} id={id} onChange={onChangeFunction}\n value={value} type={type} clearTrigger={clearTrigger} />\n`;\n\nconst transformArgs = (args: InputFieldProps) => {\n // args.variant is provided as an array because the control type is set to a checkbox. So this transforms the selected value into its proper value: a string\n const variantArray = (args.variant as unknown as string[]) ?? [];\n return { ...args, ...{ variant: variantArray.toString() } } as InputFieldProps;\n};\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/InputField',\n component: InputField,\n argTypes: {\n variant: {\n options: ['large'],\n control: 'check',\n },\n width: {\n control: 'radio',\n options: [undefined, 'small', 'compact'],\n },\n type: {\n control: 'radio',\n options: ['text', 'password', 'email'],\n },\n background: {\n control: 'check',\n options: ['white'],\n },\n id: {\n control: 'text',\n },\n autoComplete: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: InputField,\n codeString: codeString,\n },\n} as Meta<InputFieldProps>;\n\nconst Template: StoryFn<InputFieldProps> = (args) => {\n const [inputValue, setInputValue] = useState<InputFieldProps['value']>('');\n const inputRef = useRef<HTMLInputElement>(null);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setInputValue(event.target.value);\n fn()('handleChange');\n };\n\n const handleClear = () => {\n setInputValue('');\n fn()('handleClear');\n };\n\n return (\n <Container>\n <InputField\n {...transformArgs(args)}\n value={inputValue}\n onChange={handleChange}\n onClear={handleClear}\n ref={inputRef}\n />\n </Container>\n );\n};\n\nconst defaultArgs: Partial<InputFieldProps> = {\n type: 'text',\n variant: undefined,\n id: '4f9ca77d',\n};\n\nexport const InputFieldExample = Template.bind({});\nInputFieldExample.args = {\n ...defaultArgs,\n};\n\nexport const WithStringClearTrigger = Template.bind({});\nWithStringClearTrigger.args = {\n ...defaultArgs,\n clearTrigger: 'Clear',\n};\n\nexport const WithIconClearTrigger = Template.bind({});\nWithIconClearTrigger.args = {\n ...defaultArgs,\n clearTrigger: <Icon name=\"Cross\" />,\n};\n"],"mappings":";;;;;;;;AAYA,IAAM,IAAa,sOAMb,KAAiB,MAA0B;CAE/C,IAAM,IAAgB,EAAK,WAAmC,EAAE;AAChE,QAAO;EAAE,GAAG;EAAW,SAAS,EAAa,UAAU;EAAI;GAI7D,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,SAAS;GACP,SAAS,CAAC,QAAQ;GAClB,SAAS;GACV;EACD,OAAO;GACL,SAAS;GACT,SAAS;IAAC,KAAA;IAAW;IAAS;IAAU;GACzC;EACD,MAAM;GACJ,SAAS;GACT,SAAS;IAAC;IAAQ;IAAY;IAAQ;GACvC;EACD,YAAY;GACV,SAAS;GACT,SAAS,CAAC,QAAQ;GACnB;EACD,IAAI,EACF,SAAS,QACV;EACD,cAAc,EACZ,OAAO,EACL,SAAS,IACV,EACF;EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,KAAsC,MAAS;CACnD,IAAM,CAAC,GAAY,KAAiB,EAAmC,GAAG,EACpE,IAAW,EAAyB,KAAK,EAEzC,KAAgB,MAAyC;AAE7D,EADA,EAAc,EAAM,OAAO,MAAM,EACjC,GAAI,CAAC,eAAe;IAGhB,UAAoB;AAExB,EADA,EAAc,GAAG,EACjB,GAAI,CAAC,cAAc;;AAGrB,QACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;EACE,GAAI,EAAc,EAAK;EACvB,OAAO;EACP,UAAU;EACV,SAAS;EACT,KAAK;EACL,CAAA,EACQ,CAAA;GAIV,IAAwC;CAC5C,MAAM;CACN,SAAS,KAAA;CACT,IAAI;CACL,EAEY,IAAoB,EAAS,KAAK,EAAE,CAAC;AAClD,EAAkB,OAAO,EACvB,GAAG,GACJ;AAED,IAAa,IAAyB,EAAS,KAAK,EAAE,CAAC;AACvD,EAAuB,OAAO;CAC5B,GAAG;CACH,cAAc;CACf;AAED,IAAa,IAAuB,EAAS,KAAK,EAAE,CAAC;AACrD,EAAqB,OAAO;CAC1B,GAAG;CACH,cAAc,kBAAC,GAAD,EAAM,MAAK,SAAU,CAAA;CACpC"}
1
+ {"version":3,"file":"InputField.stories.js","names":[],"sources":["../../../src/components/InputField/InputField.stories.tsx"],"sourcesContent":["import { useRef, useState } from 'react';\nimport { fn } from 'storybook/test';\n\nimport type { ChangeEvent } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { InputFieldProps } from './InputField';\n\nimport { InputField } from './InputField';\n\nimport { Container } from 'storyComponents/Container';\nimport { Icon } from 'components';\n\nconst codeString = `\n// Has all HTMLInputElement props available except \"className\" and \"style\" \n<InputField aria-labelledby={aria-labelledby} id={id} onChange={onChangeFunction}\n value={value} type={type} clearTrigger={clearTrigger} />\n`;\n\nconst transformArgs = (args: InputFieldProps) => {\n // args.variant is provided as an array because the control type is set to a checkbox. So this transforms the selected value into its proper value: a string\n const variantArray = (args.variant as unknown as string[]) ?? [];\n return { ...args, ...{ variant: variantArray.toString() } } as InputFieldProps;\n};\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/InputField',\n component: InputField,\n argTypes: {\n variant: {\n options: ['large'],\n control: 'check',\n },\n width: {\n control: 'radio',\n options: [undefined, 'small', 'compact'],\n },\n type: {\n control: 'radio',\n options: ['text', 'password', 'email'],\n },\n background: {\n control: 'check',\n options: ['white'],\n },\n id: {\n control: 'text',\n },\n autoComplete: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: InputField,\n codeString: codeString,\n },\n} as Meta<InputFieldProps>;\n\nconst Template: StoryFn<InputFieldProps> = (args) => {\n const [inputValue, setInputValue] = useState<InputFieldProps['value']>('');\n const inputRef = useRef<HTMLInputElement>(null);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setInputValue(event.target.value);\n fn()('handleChange');\n };\n\n const handleClear = () => {\n setInputValue('');\n fn()('handleClear');\n };\n\n return (\n <Container>\n <InputField\n {...transformArgs(args)}\n value={inputValue}\n onChange={handleChange}\n onClear={handleClear}\n ref={inputRef}\n />\n </Container>\n );\n};\n\nconst defaultArgs: Partial<InputFieldProps> = {\n type: 'text',\n variant: undefined,\n id: '4f9ca77d',\n};\n\nexport const InputFieldExample = Template.bind({});\nInputFieldExample.args = {\n ...defaultArgs,\n};\n\nexport const WithStringClearTrigger = Template.bind({});\nWithStringClearTrigger.args = {\n ...defaultArgs,\n clearTrigger: 'Clear',\n};\n\nexport const WithIconClearTrigger = Template.bind({});\nWithIconClearTrigger.args = {\n ...defaultArgs,\n clearTrigger: <Icon name=\"Cross\" />,\n};\n"],"mappings":";;;;;;;;AAYA,IAAM,IAAa,sOAMb,KAAiB,MAA0B;CAE/C,IAAM,IAAgB,EAAK,WAAmC,EAAE;CAChE,OAAO;EAAE,GAAG;EAAW,SAAS,EAAa,UAAU;EAAI;GAI7D,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,SAAS;GACP,SAAS,CAAC,QAAQ;GAClB,SAAS;GACV;EACD,OAAO;GACL,SAAS;GACT,SAAS;IAAC,KAAA;IAAW;IAAS;IAAU;GACzC;EACD,MAAM;GACJ,SAAS;GACT,SAAS;IAAC;IAAQ;IAAY;IAAQ;GACvC;EACD,YAAY;GACV,SAAS;GACT,SAAS,CAAC,QAAQ;GACnB;EACD,IAAI,EACF,SAAS,QACV;EACD,cAAc,EACZ,OAAO,EACL,SAAS,IACV,EACF;EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,KAAsC,MAAS;CACnD,IAAM,CAAC,GAAY,KAAiB,EAAmC,GAAG,EACpE,IAAW,EAAyB,KAAK,EAEzC,KAAgB,MAAyC;EAE7D,AADA,EAAc,EAAM,OAAO,MAAM,EACjC,GAAI,CAAC,eAAe;IAGhB,UAAoB;EAExB,AADA,EAAc,GAAG,EACjB,GAAI,CAAC,cAAc;;CAGrB,OACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;EACE,GAAI,EAAc,EAAK;EACvB,OAAO;EACP,UAAU;EACV,SAAS;EACT,KAAK;EACL,CAAA,EACQ,CAAA;GAIV,IAAwC;CAC5C,MAAM;CACN,SAAS,KAAA;CACT,IAAI;CACL,EAEY,IAAoB,EAAS,KAAK,EAAE,CAAC;AAClD,EAAkB,OAAO,EACvB,GAAG,GACJ;AAED,IAAa,IAAyB,EAAS,KAAK,EAAE,CAAC;AACvD,EAAuB,OAAO;CAC5B,GAAG;CACH,cAAc;CACf;AAED,IAAa,IAAuB,EAAS,KAAK,EAAE,CAAC;AACrD,EAAqB,OAAO;CAC1B,GAAG;CACH,cAAc,kBAAC,GAAD,EAAM,MAAK,SAAU,CAAA;CACpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Label.stories.js","names":[],"sources":["../../../src/components/Label/Label.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { LabelProps } from './Label';\n\nimport { Label } from './Label';\n\nconst codeString = `\n// Has all LabelHTMLAttributes props available except \"className\" and \"style\" \n <Label htmlFor={htmlFor}>{children}</Label>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Label',\n component: Label,\n argTypes: {\n htmlFor: {\n control: 'text',\n },\n children: {\n control: 'text',\n },\n },\n parameters: {\n inspectComponent: Label,\n codeString: codeString,\n },\n} as Meta<LabelProps>;\n\nconst Template: StoryFn<LabelProps> = (args) => <Label {...args} />;\n\nconst defaultArgs: Partial<LabelProps> = {\n children: 'Lorem Ipsum',\n htmlFor: 'bd79f7ec',\n};\n\nexport const LabelExample = Template.bind({});\nLabelExample.args = {\n ...defaultArgs,\n};\n\nexport const WithNoFontWeight = Template.bind({});\nWithNoFontWeight.args = {\n ...defaultArgs,\n noFontWeight: true,\n};\n"],"mappings":";;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,SAAS,EACP,SAAS,QACV;EACD,UAAU,EACR,SAAS,QACV;EACF;CACD,YAAY;EACV,kBAAkB;EACN,YAnBG;EAoBhB;CACF,EAEK,KAAiC,MAAS,kBAAC,GAAD,EAAO,GAAI,GAAQ,CAAA,EAE7D,IAAmC;CACvC,UAAU;CACV,SAAS;CACV,EAEY,IAAe,EAAS,KAAK,EAAE,CAAC;AAC7C,EAAa,OAAO,EAClB,GAAG,GACJ;AAED,IAAa,IAAmB,EAAS,KAAK,EAAE,CAAC;AACjD,EAAiB,OAAO;CACtB,GAAG;CACH,cAAc;CACf"}
1
+ {"version":3,"file":"Label.stories.js","names":[],"sources":["../../../src/components/Label/Label.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { LabelProps } from './Label';\n\nimport { Label } from './Label';\n\nconst codeString = `\n// Has all LabelHTMLAttributes props available except \"className\" and \"style\" \n <Label htmlFor={htmlFor}>{children}</Label>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Label',\n component: Label,\n argTypes: {\n htmlFor: {\n control: 'text',\n },\n children: {\n control: 'text',\n },\n },\n parameters: {\n inspectComponent: Label,\n codeString: codeString,\n },\n} as Meta<LabelProps>;\n\nconst Template: StoryFn<LabelProps> = (args) => <Label {...args} />;\n\nconst defaultArgs: Partial<LabelProps> = {\n children: 'Lorem Ipsum',\n htmlFor: 'bd79f7ec',\n};\n\nexport const LabelExample = Template.bind({});\nLabelExample.args = {\n ...defaultArgs,\n};\n\nexport const WithNoFontWeight = Template.bind({});\nWithNoFontWeight.args = {\n ...defaultArgs,\n noFontWeight: true,\n};\n"],"mappings":";;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,SAAS,EACP,SAAS,QACV;EACD,UAAU,EACR,SAAS,QACV;EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,KAAiC,MAAS,kBAAC,GAAD,EAAO,GAAI,GAAQ,CAAA,EAE7D,IAAmC;CACvC,UAAU;CACV,SAAS;CACV,EAEY,IAAe,EAAS,KAAK,EAAE,CAAC;AAC7C,EAAa,OAAO,EAClB,GAAG,GACJ;AAED,IAAa,IAAmB,EAAS,KAAK,EAAE,CAAC;AACjD,EAAiB,OAAO;CACtB,GAAG;CACH,cAAc;CACf"}
@@ -1,6 +1,6 @@
1
- import "../../dist-BIkFjHck.js";
1
+ import "../../dist-V_v3kC0L.js";
2
2
  import { t as e } from "../../Label-o0BcWTUS.js";
3
- import { i as t, n } from "../../react.esm-R7eBXTUI.js";
3
+ import { i as t, n } from "../../react.esm-CweFe1CK.js";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  //#region src/components/Label/Label.test.tsx
6
6
  describe("Label", () => {
@@ -1 +1 @@
1
- {"version":3,"file":"Label.test.js","names":[],"sources":["../../../src/components/Label/Label.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { Label } from './Label';\n\ndescribe('Label', () => {\n it('should render', () => {\n render(<Label htmlFor=\"testComponent\">Test label</Label>);\n expect(screen.getByText('Test label')).toBeInTheDocument();\n });\n\n it('should render with required', () => {\n render(\n <Label htmlFor=\"testComponent\" required={true}>\n Test label\n </Label>\n );\n expect(screen.getByText('Test label')).toHaveClass('label--required');\n });\n\n it('should render with noFontWeight', () => {\n render(\n <Label htmlFor=\"testComponent\" noFontWeight={true}>\n Test label\n </Label>\n );\n expect(screen.getByText('Test label')).toHaveClass('label--unset-font-weight');\n });\n\n it('should render with alignRight', () => {\n render(\n <Label htmlFor=\"testComponent\" alignRight={true}>\n Test label\n </Label>\n );\n expect(screen.getByText('Test label')).toHaveClass('label--align-right');\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,eAAe;AAwBtB,CAvBA,GAAG,uBAAuB;AAExB,EADA,EAAO,kBAAC,GAAD;GAAO,SAAQ;aAAgB;GAAkB,CAAA,CAAC,EACzD,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,mBAAmB;GAC1D,EAEF,GAAG,qCAAqC;AAMtC,EALA,EACE,kBAAC,GAAD;GAAO,SAAQ;GAAgB,UAAU;aAAM;GAEvC,CAAA,CACT,EACD,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,YAAY,kBAAkB;GACrE,EAEF,GAAG,yCAAyC;AAM1C,EALA,EACE,kBAAC,GAAD;GAAO,SAAQ;GAAgB,cAAc;aAAM;GAE3C,CAAA,CACT,EACD,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,YAAY,2BAA2B;GAC9E,EAEF,GAAG,uCAAuC;AAMxC,EALA,EACE,kBAAC,GAAD;GAAO,SAAQ;GAAgB,YAAY;aAAM;GAEzC,CAAA,CACT,EACD,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,YAAY,qBAAqB;GACxE;EACF"}
1
+ {"version":3,"file":"Label.test.js","names":[],"sources":["../../../src/components/Label/Label.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { Label } from './Label';\n\ndescribe('Label', () => {\n it('should render', () => {\n render(<Label htmlFor=\"testComponent\">Test label</Label>);\n expect(screen.getByText('Test label')).toBeInTheDocument();\n });\n\n it('should render with required', () => {\n render(\n <Label htmlFor=\"testComponent\" required={true}>\n Test label\n </Label>\n );\n expect(screen.getByText('Test label')).toHaveClass('label--required');\n });\n\n it('should render with noFontWeight', () => {\n render(\n <Label htmlFor=\"testComponent\" noFontWeight={true}>\n Test label\n </Label>\n );\n expect(screen.getByText('Test label')).toHaveClass('label--unset-font-weight');\n });\n\n it('should render with alignRight', () => {\n render(\n <Label htmlFor=\"testComponent\" alignRight={true}>\n Test label\n </Label>\n );\n expect(screen.getByText('Test label')).toHaveClass('label--align-right');\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,eAAe;CAwBtB,AAvBA,GAAG,uBAAuB;EAExB,AADA,EAAO,kBAAC,GAAD;GAAO,SAAQ;aAAgB;GAAkB,CAAA,CAAC,EACzD,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,mBAAmB;GAC1D,EAEF,GAAG,qCAAqC;EAMtC,AALA,EACE,kBAAC,GAAD;GAAO,SAAQ;GAAgB,UAAU;aAAM;GAEvC,CAAA,CACT,EACD,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,YAAY,kBAAkB;GACrE,EAEF,GAAG,yCAAyC;EAM1C,AALA,EACE,kBAAC,GAAD;GAAO,SAAQ;GAAgB,cAAc;aAAM;GAE3C,CAAA,CACT,EACD,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,YAAY,2BAA2B;GAC9E,EAEF,GAAG,uCAAuC;EAMxC,AALA,EACE,kBAAC,GAAD;GAAO,SAAQ;GAAgB,YAAY;aAAM;GAEzC,CAAA,CACT,EACD,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,YAAY,qBAAqB;GACxE;EACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuLink.stories.js","names":[],"sources":["../../../src/components/MenuLink/MenuLink.stories.tsx"],"sourcesContent":["import { MemoryRouter, type NavLinkProps } from 'react-router';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { MenuLinkProps } from './MenuLink';\n\nimport { MenuLink } from './MenuLink';\n\nimport './MenuLink.stories.css';\n\nconst codeString = `\n// Can only be used wrapped in a 'react-router' <MemoryRouter />\n <MenuLink to={linkUrl}>{children}</MenuLink>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/MenuLink',\n component: MenuLink,\n parameters: {\n inspectComponent: MenuLink,\n codeString: codeString,\n },\n} as Meta<Omit<NavLinkProps, 'style'>>;\n\nconst menuLinks = [\n { to: '/menu-link-1', title: 'Menu Link One' },\n { to: '/menu-link-2', title: 'Menu Link Two' },\n { to: '/menu-link-3', title: 'Menu Link Three' },\n];\n\nconst Template: StoryFn<Omit<MenuLinkProps, 'style'>> = () => {\n return (\n <MemoryRouter initialEntries={menuLinks.map((link) => link.to)} initialIndex={0}>\n <nav className=\"navbar\">\n {menuLinks.map((link) => (\n <MenuLink key={link.to} to={link.to}>\n {link.title}\n </MenuLink>\n ))}\n </nav>\n </MemoryRouter>\n );\n};\n\nexport const MenuLinkExample = Template.bind({});\n\nconst menuLinks02 = [\n { to: '/menu-link-1', title: 'Menu Link One (no default behavior)', overrideDefaultBehavior: true },\n { to: '/menu-link-2', title: 'Menu Link Two', overrideDefaultBehavior: false },\n { to: '/menu-link-3', title: 'Menu Link Three', overrideDefaultBehavior: false },\n];\n\nconst TemplateMenuLinkOverrideDefaultBehavior: StoryFn<Omit<MenuLinkProps, 'style'>> = () => {\n return (\n <MemoryRouter initialEntries={menuLinks02.map((link) => link.to)} initialIndex={0}>\n <nav className=\"navbar\">\n {menuLinks02.map((link) => (\n <MenuLink key={link.to} to={link.to} overrideDefault={link.overrideDefaultBehavior}>\n {link.title}\n </MenuLink>\n ))}\n </nav>\n </MemoryRouter>\n );\n};\n\nexport const MenuLinkOverrideDefaultBehavior = TemplateMenuLinkOverrideDefaultBehavior.bind({});\n"],"mappings":";;;AAeA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN,YAXG;EAYhB;CACF,EAEK,IAAY;CAChB;EAAE,IAAI;EAAgB,OAAO;EAAiB;CAC9C;EAAE,IAAI;EAAgB,OAAO;EAAiB;CAC9C;EAAE,IAAI;EAAgB,OAAO;EAAmB;CACjD,EAgBY,WAZT,kBAAC,GAAD;CAAc,gBAAgB,EAAU,KAAK,MAAS,EAAK,GAAG;CAAE,cAAc;WAC5E,kBAAC,OAAD;EAAK,WAAU;YACZ,EAAU,KAAK,MACd,kBAAC,GAAD;GAAwB,IAAI,EAAK;aAC9B,EAAK;GACG,EAFI,EAAK,GAET,CACX;EACE,CAAA;CACO,CAAA,EAIqB,KAAK,EAAE,CAAC,EAE1C,IAAc;CAClB;EAAE,IAAI;EAAgB,OAAO;EAAuC,yBAAyB;EAAM;CACnG;EAAE,IAAI;EAAgB,OAAO;EAAiB,yBAAyB;EAAO;CAC9E;EAAE,IAAI;EAAgB,OAAO;EAAmB,yBAAyB;EAAO;CACjF,EAgBY,WAZT,kBAAC,GAAD;CAAc,gBAAgB,EAAY,KAAK,MAAS,EAAK,GAAG;CAAE,cAAc;WAC9E,kBAAC,OAAD;EAAK,WAAU;YACZ,EAAY,KAAK,MAChB,kBAAC,GAAD;GAAwB,IAAI,EAAK;GAAI,iBAAiB,EAAK;aACxD,EAAK;GACG,EAFI,EAAK,GAET,CACX;EACE,CAAA;CACO,CAAA,EAIoE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"MenuLink.stories.js","names":[],"sources":["../../../src/components/MenuLink/MenuLink.stories.tsx"],"sourcesContent":["import { MemoryRouter, type NavLinkProps } from 'react-router';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { MenuLinkProps } from './MenuLink';\n\nimport { MenuLink } from './MenuLink';\n\nimport './MenuLink.stories.css';\n\nconst codeString = `\n// Can only be used wrapped in a 'react-router' <MemoryRouter />\n <MenuLink to={linkUrl}>{children}</MenuLink>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/MenuLink',\n component: MenuLink,\n parameters: {\n inspectComponent: MenuLink,\n codeString: codeString,\n },\n} as Meta<Omit<NavLinkProps, 'style'>>;\n\nconst menuLinks = [\n { to: '/menu-link-1', title: 'Menu Link One' },\n { to: '/menu-link-2', title: 'Menu Link Two' },\n { to: '/menu-link-3', title: 'Menu Link Three' },\n];\n\nconst Template: StoryFn<Omit<MenuLinkProps, 'style'>> = () => {\n return (\n <MemoryRouter initialEntries={menuLinks.map((link) => link.to)} initialIndex={0}>\n <nav className=\"navbar\">\n {menuLinks.map((link) => (\n <MenuLink key={link.to} to={link.to}>\n {link.title}\n </MenuLink>\n ))}\n </nav>\n </MemoryRouter>\n );\n};\n\nexport const MenuLinkExample = Template.bind({});\n\nconst menuLinks02 = [\n { to: '/menu-link-1', title: 'Menu Link One (no default behavior)', overrideDefaultBehavior: true },\n { to: '/menu-link-2', title: 'Menu Link Two', overrideDefaultBehavior: false },\n { to: '/menu-link-3', title: 'Menu Link Three', overrideDefaultBehavior: false },\n];\n\nconst TemplateMenuLinkOverrideDefaultBehavior: StoryFn<Omit<MenuLinkProps, 'style'>> = () => {\n return (\n <MemoryRouter initialEntries={menuLinks02.map((link) => link.to)} initialIndex={0}>\n <nav className=\"navbar\">\n {menuLinks02.map((link) => (\n <MenuLink key={link.to} to={link.to} overrideDefault={link.overrideDefaultBehavior}>\n {link.title}\n </MenuLink>\n ))}\n </nav>\n </MemoryRouter>\n );\n};\n\nexport const MenuLinkOverrideDefaultBehavior = TemplateMenuLinkOverrideDefaultBehavior.bind({});\n"],"mappings":";;;AAeA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,IAAY;CAChB;EAAE,IAAI;EAAgB,OAAO;EAAiB;CAC9C;EAAE,IAAI;EAAgB,OAAO;EAAiB;CAC9C;EAAE,IAAI;EAAgB,OAAO;EAAmB;CACjD,EAgBY,WAZT,kBAAC,GAAD;CAAc,gBAAgB,EAAU,KAAK,MAAS,EAAK,GAAG;CAAE,cAAc;WAC5E,kBAAC,OAAD;EAAK,WAAU;YACZ,EAAU,KAAK,MACd,kBAAC,GAAD;GAAwB,IAAI,EAAK;aAC9B,EAAK;GACG,EAFI,EAAK,GAET,CACX;EACE,CAAA;CACO,CAAA,EAIqB,KAAK,EAAE,CAAC,EAE1C,IAAc;CAClB;EAAE,IAAI;EAAgB,OAAO;EAAuC,yBAAyB;EAAM;CACnG;EAAE,IAAI;EAAgB,OAAO;EAAiB,yBAAyB;EAAO;CAC9E;EAAE,IAAI;EAAgB,OAAO;EAAmB,yBAAyB;EAAO;CACjF,EAgBY,WAZT,kBAAC,GAAD;CAAc,gBAAgB,EAAY,KAAK,MAAS,EAAK,GAAG;CAAE,cAAc;WAC9E,kBAAC,OAAD;EAAK,WAAU;YACZ,EAAY,KAAK,MAChB,kBAAC,GAAD;GAAwB,IAAI,EAAK;GAAI,iBAAiB,EAAK;aACxD,EAAK;GACG,EAFI,EAAK,GAET,CACX;EACE,CAAA;CACO,CAAA,EAIoE,KAAK,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MetaDataBar.stories.js","names":[],"sources":["../../../src/components/MetaDataBar/MetaDataBar.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { MetaDataBarProps } from './MetaDataBar';\nimport type { IconProps } from 'components/Icon';\n\nimport { MetaDataBar } from './MetaDataBar';\n\nconst codeString = '<MetaDataBar itemData={itemData} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/MetaDataBar',\n component: MetaDataBar,\n parameters: {\n inspectComponent: MetaDataBar,\n codeString: codeString,\n },\n} as Meta<MetaDataBarProps>;\n\nconst Template: StoryFn<MetaDataBarProps> = (args) => <MetaDataBar {...args} />;\n\nexport const MetaDataBarExample = Template.bind({});\nMetaDataBarExample.args = {\n itemData: [\n { iconName: 'AcademicCap' as IconProps['name'], itemLabel: 'Jedi Academy' },\n { iconName: 'UserCircle' as IconProps['name'], itemLabel: 'Luuk Hemelwandelaar' },\n ],\n};\n"],"mappings":";;AASA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN,YARG;EAShB;CACF,EAIY,MAFgC,MAAS,kBAAC,GAAD,EAAa,GAAI,GAAQ,CAAA,EAEpC,KAAK,EAAE,CAAC;AACnD,EAAmB,OAAO,EACxB,UAAU,CACR;CAAE,UAAU;CAAoC,WAAW;CAAgB,EAC3E;CAAE,UAAU;CAAmC,WAAW;CAAuB,CAClF,EACF"}
1
+ {"version":3,"file":"MetaDataBar.stories.js","names":[],"sources":["../../../src/components/MetaDataBar/MetaDataBar.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { MetaDataBarProps } from './MetaDataBar';\nimport type { IconProps } from 'components/Icon';\n\nimport { MetaDataBar } from './MetaDataBar';\n\nconst codeString = '<MetaDataBar itemData={itemData} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/MetaDataBar',\n component: MetaDataBar,\n parameters: {\n inspectComponent: MetaDataBar,\n codeString: codeString,\n },\n} as Meta<MetaDataBarProps>;\n\nconst Template: StoryFn<MetaDataBarProps> = (args) => <MetaDataBar {...args} />;\n\nexport const MetaDataBarExample = Template.bind({});\nMetaDataBarExample.args = {\n itemData: [\n { iconName: 'AcademicCap' as IconProps['name'], itemLabel: 'Jedi Academy' },\n { iconName: 'UserCircle' as IconProps['name'], itemLabel: 'Luuk Hemelwandelaar' },\n ],\n};\n"],"mappings":";;AASA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAIY,MAFgC,MAAS,kBAAC,GAAD,EAAa,GAAI,GAAQ,CAAA,EAEpC,KAAK,EAAE,CAAC;AACnD,EAAmB,OAAO,EACxB,UAAU,CACR;CAAE,UAAU;CAAoC,WAAW;CAAgB,EAC3E;CAAE,UAAU;CAAmC,WAAW;CAAuB,CAClF,EACF"}
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../../MetaDataBar-C4QO9oBV.js";
2
- import { i as t, n } from "../../react.esm-R7eBXTUI.js";
2
+ import { i as t, n } from "../../react.esm-CweFe1CK.js";
3
3
  import { jsx as r } from "react/jsx-runtime";
4
4
  //#region src/components/MetaDataBar/MetaDataBar.test.tsx
5
5
  jest.mock("components/Icon", () => ({ Icon: ({ name: e }) => /* @__PURE__ */ r("span", {
@@ -1 +1 @@
1
- {"version":3,"file":"MetaDataBar.test.js","names":[],"sources":["../../../src/components/MetaDataBar/MetaDataBar.test.tsx"],"sourcesContent":["import { render, screen } from '@testing-library/react';\n\nimport type { IconProps } from 'components/Icon';\n\nimport { MetaDataBar } from './MetaDataBar';\n\njest.mock('components/Icon', () => ({\n Icon: ({ name }: { name: IconProps['name'] }) => <span data-testid=\"icon\">{name}</span>,\n}));\n\nconst mockItemData = [\n { iconName: 'AcademicCap' as IconProps['name'], itemLabel: 'Jedi Academy' },\n { iconName: 'User' as IconProps['name'], itemLabel: 'Luuk Hemelwandelaar' },\n];\n\ndescribe('MetaDataBar', () => {\n it('renders correctly with content items', () => {\n render(<MetaDataBar itemData={mockItemData} />);\n\n expect(screen.getByText('AcademicCap')).toBeInTheDocument();\n expect(screen.getByText('Jedi Academy')).toBeInTheDocument();\n expect(screen.getByText('User')).toBeInTheDocument();\n expect(screen.getByText('Luuk Hemelwandelaar')).toBeInTheDocument();\n\n expect(screen.getAllByTestId('icon')).toHaveLength(mockItemData.length);\n });\n\n it('renders nothing when content is empty', () => {\n render(<MetaDataBar itemData={[]} />);\n expect(screen.queryByTestId('icon')).not.toBeInTheDocument();\n expect(screen.queryByText(/.+/)).not.toBeInTheDocument();\n });\n});\n"],"mappings":";;;;AAMA,KAAK,KAAK,0BAA0B,EAClC,OAAO,EAAE,cAAwC,kBAAC,QAAD;CAAM,eAAY;WAAQ;CAAY,CAAA,EACxF,EAAE;AAEH,IAAM,IAAe,CACnB;CAAE,UAAU;CAAoC,WAAW;CAAgB,EAC3E;CAAE,UAAU;CAA6B,WAAW;CAAuB,CAC5E;AAED,SAAS,qBAAqB;AAY5B,CAXA,GAAG,8CAA8C;AAQ/C,EAPA,EAAO,kBAAC,GAAD,EAAa,UAAU,GAAgB,CAAA,CAAC,EAE/C,OAAO,EAAO,UAAU,cAAc,CAAC,CAAC,mBAAmB,EAC3D,OAAO,EAAO,UAAU,eAAe,CAAC,CAAC,mBAAmB,EAC5D,OAAO,EAAO,UAAU,OAAO,CAAC,CAAC,mBAAmB,EACpD,OAAO,EAAO,UAAU,sBAAsB,CAAC,CAAC,mBAAmB,EAEnE,OAAO,EAAO,eAAe,OAAO,CAAC,CAAC,aAAa,EAAa,OAAO;GACvE,EAEF,GAAG,+CAA+C;AAGhD,EAFA,EAAO,kBAAC,GAAD,EAAa,UAAU,EAAE,EAAI,CAAA,CAAC,EACrC,OAAO,EAAO,cAAc,OAAO,CAAC,CAAC,IAAI,mBAAmB,EAC5D,OAAO,EAAO,YAAY,KAAK,CAAC,CAAC,IAAI,mBAAmB;GACxD;EACF"}
1
+ {"version":3,"file":"MetaDataBar.test.js","names":[],"sources":["../../../src/components/MetaDataBar/MetaDataBar.test.tsx"],"sourcesContent":["import { render, screen } from '@testing-library/react';\n\nimport type { IconProps } from 'components/Icon';\n\nimport { MetaDataBar } from './MetaDataBar';\n\njest.mock('components/Icon', () => ({\n Icon: ({ name }: { name: IconProps['name'] }) => <span data-testid=\"icon\">{name}</span>,\n}));\n\nconst mockItemData = [\n { iconName: 'AcademicCap' as IconProps['name'], itemLabel: 'Jedi Academy' },\n { iconName: 'User' as IconProps['name'], itemLabel: 'Luuk Hemelwandelaar' },\n];\n\ndescribe('MetaDataBar', () => {\n it('renders correctly with content items', () => {\n render(<MetaDataBar itemData={mockItemData} />);\n\n expect(screen.getByText('AcademicCap')).toBeInTheDocument();\n expect(screen.getByText('Jedi Academy')).toBeInTheDocument();\n expect(screen.getByText('User')).toBeInTheDocument();\n expect(screen.getByText('Luuk Hemelwandelaar')).toBeInTheDocument();\n\n expect(screen.getAllByTestId('icon')).toHaveLength(mockItemData.length);\n });\n\n it('renders nothing when content is empty', () => {\n render(<MetaDataBar itemData={[]} />);\n expect(screen.queryByTestId('icon')).not.toBeInTheDocument();\n expect(screen.queryByText(/.+/)).not.toBeInTheDocument();\n });\n});\n"],"mappings":";;;;AAMA,KAAK,KAAK,0BAA0B,EAClC,OAAO,EAAE,cAAwC,kBAAC,QAAD;CAAM,eAAY;WAAQ;CAAY,CAAA,EACxF,EAAE;AAEH,IAAM,IAAe,CACnB;CAAE,UAAU;CAAoC,WAAW;CAAgB,EAC3E;CAAE,UAAU;CAA6B,WAAW;CAAuB,CAC5E;AAED,SAAS,qBAAqB;CAY5B,AAXA,GAAG,8CAA8C;EAQ/C,AAPA,EAAO,kBAAC,GAAD,EAAa,UAAU,GAAgB,CAAA,CAAC,EAE/C,OAAO,EAAO,UAAU,cAAc,CAAC,CAAC,mBAAmB,EAC3D,OAAO,EAAO,UAAU,eAAe,CAAC,CAAC,mBAAmB,EAC5D,OAAO,EAAO,UAAU,OAAO,CAAC,CAAC,mBAAmB,EACpD,OAAO,EAAO,UAAU,sBAAsB,CAAC,CAAC,mBAAmB,EAEnE,OAAO,EAAO,eAAe,OAAO,CAAC,CAAC,aAAa,EAAa,OAAO;GACvE,EAEF,GAAG,+CAA+C;EAGhD,AAFA,EAAO,kBAAC,GAAD,EAAa,UAAU,EAAE,EAAI,CAAA,CAAC,EACrC,OAAO,EAAO,cAAc,OAAO,CAAC,CAAC,IAAI,mBAAmB,EAC5D,OAAO,EAAO,YAAY,KAAK,CAAC,CAAC,IAAI,mBAAmB;GACxD;EACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"MetaDataList.stories.js","names":[],"sources":["../../../src/components/MetaDataList/MetaDataList.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { MetaDataListProps } from './MetaDataList';\n\nimport { MetaDataList } from './MetaDataList';\n\nimport { Container } from 'storyComponents/Container/';\n\nconst codeString = '<MetaDataList items={items} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/MetaDataList',\n component: MetaDataList,\n parameters: {\n inspectComponent: MetaDataList,\n codeString: codeString,\n },\n} as Meta<MetaDataListProps>;\n\nconst Template: StoryFn<MetaDataListProps> = (args) => (\n <Container>\n <MetaDataList {...args} />\n </Container>\n);\n\nexport const MetaDataListExample = Template.bind({});\nMetaDataListExample.args = {\n items: {\n 'item one': 'foo',\n 'item two': 'bar',\n 'item three': 'baz',\n },\n};\n"],"mappings":";;;;AAUA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN,YARG;EAShB;CACF,EAQY,MANiC,MAC5C,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAc,GAAI,GAAQ,CAAA,EAChB,CAAA,EAG8B,KAAK,EAAE,CAAC;AACpD,EAAoB,OAAO,EACzB,OAAO;CACL,YAAY;CACZ,YAAY;CACZ,cAAc;CACf,EACF"}
1
+ {"version":3,"file":"MetaDataList.stories.js","names":[],"sources":["../../../src/components/MetaDataList/MetaDataList.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { MetaDataListProps } from './MetaDataList';\n\nimport { MetaDataList } from './MetaDataList';\n\nimport { Container } from 'storyComponents/Container/';\n\nconst codeString = '<MetaDataList items={items} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/MetaDataList',\n component: MetaDataList,\n parameters: {\n inspectComponent: MetaDataList,\n codeString: codeString,\n },\n} as Meta<MetaDataListProps>;\n\nconst Template: StoryFn<MetaDataListProps> = (args) => (\n <Container>\n <MetaDataList {...args} />\n </Container>\n);\n\nexport const MetaDataListExample = Template.bind({});\nMetaDataListExample.args = {\n items: {\n 'item one': 'foo',\n 'item two': 'bar',\n 'item three': 'baz',\n },\n};\n"],"mappings":";;;;AAUA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAQY,MANiC,MAC5C,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAc,GAAI,GAAQ,CAAA,EAChB,CAAA,EAG8B,KAAK,EAAE,CAAC;AACpD,EAAoB,OAAO,EACzB,OAAO;CACL,YAAY;CACZ,YAAY;CACZ,cAAc;CACf,EACF"}
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../test-Cr_l59hN.js";
1
+ import { r as e } from "../../test-Pa9Lwbsq.js";
2
2
  import { Button as t } from "../Buttons/Button.js";
3
3
  import { t as n } from "../../ButtonGroup-DR80lTLz.js";
4
4
  import { t as r } from "../../Label-o0BcWTUS.js";
@@ -1 +1 @@
1
- {"version":3,"file":"ModalDialog.stories.js","names":[],"sources":["../../../src/components/ModalDialog/ModalDialog.stories.tsx"],"sourcesContent":["import { ModalProvider } from '@react-aria/overlays';\nimport { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { ModalDialogProps } from './ModalDialog';\n\nimport { ModalDialog } from './ModalDialog';\n\nimport { Button } from 'components/Buttons';\nimport { ButtonGroup } from 'components/ButtonGroup';\nimport { FormField } from 'components/FormField';\nimport { InputField } from 'components/InputField';\nimport { Label } from 'components/Label';\n\nconst codeString = `\n/* ModalDialog has more styling props (see Info-tab).\n Code example is made with the most commonly used props. **/\n <ModalDialog isOpen={isOpen} title={title} onClose={onCloseFunction}\n onSubmit={onSubmitFunction} buttons={buttons}> {children} </ModalDialog>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/ModalDialog',\n component: ModalDialog,\n argTypes: {\n isOpen: {\n table: {\n disable: true,\n },\n },\n noValidate: {\n control: 'boolean',\n },\n role: {\n control: 'radio',\n options: ['dialog', 'alertdialog'],\n },\n onSubmit: {\n table: {\n disable: true,\n },\n },\n onClose: {\n table: {\n disable: true,\n },\n },\n buttons: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: ModalDialog,\n codeString: codeString,\n },\n} as Meta<ModalDialogProps>;\n\nconst Template: StoryFn<ModalDialogProps> = (args: ModalDialogProps) => (\n <ModalProvider>\n <ModalDialog {...args}>\n <FormField outerSpace>\n <Label htmlFor=\"text-field\">Example Text Field</Label>\n <InputField id=\"text-field\" />\n </FormField>\n </ModalDialog>\n </ModalProvider>\n);\n\nconst defaultArgs: Partial<ModalDialogProps> = {\n padded: false,\n size: 'regular',\n noButtonBorder: false,\n variant: 'dialog',\n role: 'dialog',\n title: 'Example Title',\n closeButtonAriaValueText: 'Close',\n noValidate: false,\n onSubmit: fn(),\n onClose: fn(),\n buttons: (\n <ButtonGroup reversed>\n <Button variant=\"primary\" onClick={fn()}>\n OK\n </Button>\n <Button variant=\"secondary\" onClick={fn()}>\n Cancel\n </Button>\n </ButtonGroup>\n ),\n isOpen: true,\n};\n\nexport const ModalDialogExample = Template.bind({});\nModalDialogExample.args = {\n ...defaultArgs,\n};\n\nexport const Loading = Template.bind({});\nLoading.args = {\n ...defaultArgs,\n isLoading: true,\n spinnerAriaValueText: 'Loading',\n};\n\nconst LongContentTemplate: StoryFn<ModalDialogProps> = (args: ModalDialogProps) => (\n <ModalProvider>\n <ModalDialog {...args}>\n <FormField outerSpace>\n <div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ac dui et nibh eleifend ultricies a id nulla.\n Pellentesque eleifend sem a tellus dictum tempus. Proin non leo id risus placerat vulputate at ac erat. Ut\n fringilla imperdiet sollicitudin. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere\n cubilia curae; Cras molestie ante ac magna ornare rhoncus non at quam. Mauris elementum luctus euismod.\n Pellentesque molestie malesuada purus, sed egestas lacus interdum sit amet. Morbi blandit lacus sit amet\n dictum pulvinar. Ut semper nunc ac enim imperdiet, non interdum diam gravida. In nunc tortor, mollis ac\n molestie dignissim, elementum sed quam. Suspendisse mollis venenatis libero, pellentesque vestibulum elit\n consequat et. Aliquam fringilla tellus id libero tempus, sit amet suscipit augue tristique. Quisque cursus\n neque vel justo tristique, eget semper turpis elementum. Etiam venenatis mattis sapien ac mattis. Mauris vitae\n ultrices erat.\n </div>\n <div>\n Aliquam facilisis massa sed justo rhoncus bibendum. Sed lobortis urna orci, vitae porta leo placerat nec. Nam\n porta porttitor ornare. Suspendisse vehicula nunc nec egestas finibus. Aliquam non luctus risus. Phasellus ac\n diam tincidunt, bibendum sem eget, sollicitudin neque. Curabitur mauris risus, feugiat ac euismod non,\n vulputate ac justo. Curabitur pretium vehicula augue, blandit porta odio rutrum sit amet. Proin semper enim ut\n sapien tempor, a ornare ipsum faucibus.\n </div>\n </FormField>\n </ModalDialog>\n </ModalProvider>\n);\n\nexport const WithLongContentAndNoBorder = LongContentTemplate.bind({});\nWithLongContentAndNoBorder.args = {\n ...defaultArgs,\n noButtonBorder: true,\n};\n"],"mappings":";;;;;;;;;AAsBA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,QAAQ,EACN,OAAO,EACL,SAAS,IACV,EACF;EACD,YAAY,EACV,SAAS,WACV;EACD,MAAM;GACJ,SAAS;GACT,SAAS,CAAC,UAAU,cAAc;GACnC;EACD,UAAU,EACR,OAAO,EACL,SAAS,IACV,EACF;EACD,SAAS,EACP,OAAO,EACL,SAAS,IACV,EACF;EACD,SAAS,EACP,OAAO,EACL,SAAS,IACV,EACF;EACF;CACD,YAAY;EACV,kBAAkB;EACN,YA1CG;EA2ChB;CACF,EAEK,KAAuC,MAC3C,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;CAAa,GAAI;WACf,kBAAC,GAAD;EAAW,YAAA;YAAX,CACE,kBAAC,GAAD;GAAO,SAAQ;aAAa;GAA0B,CAAA,EACtD,kBAAC,GAAD,EAAY,IAAG,cAAe,CAAA,CACpB;;CACA,CAAA,EACA,CAAA,EAGZ,IAAyC;CAC7C,QAAQ;CACR,MAAM;CACN,gBAAgB;CAChB,SAAS;CACT,MAAM;CACN,OAAO;CACP,0BAA0B;CAC1B,YAAY;CACZ,UAAU,GAAI;CACd,SAAS,GAAI;CACb,SACE,kBAAC,GAAD;EAAa,UAAA;YAAb,CACE,kBAAC,GAAD;GAAQ,SAAQ;GAAU,SAAS,GAAI;aAAE;GAEhC,CAAA,EACT,kBAAC,GAAD;GAAQ,SAAQ;GAAY,SAAS,GAAI;aAAE;GAElC,CAAA,CACG;;CAEhB,QAAQ;CACT,EAEY,IAAqB,EAAS,KAAK,EAAE,CAAC;AACnD,EAAmB,OAAO,EACxB,GAAG,GACJ;AAED,IAAa,IAAU,EAAS,KAAK,EAAE,CAAC;AACxC,EAAQ,OAAO;CACb,GAAG;CACH,WAAW;CACX,sBAAsB;CACvB;AA8BD,IAAa,MA5B2C,MACtD,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;CAAa,GAAI;WACf,kBAAC,GAAD;EAAW,YAAA;YAAX,CACE,kBAAC,OAAD,EAAA,UAAK,+8BAWC,CAAA,EACN,kBAAC,OAAD,EAAA,UAAK,6dAMC,CAAA,CACI;;CACA,CAAA,EACA,CAAA,EAG4C,KAAK,EAAE,CAAC;AACtE,EAA2B,OAAO;CAChC,GAAG;CACH,gBAAgB;CACjB"}
1
+ {"version":3,"file":"ModalDialog.stories.js","names":[],"sources":["../../../src/components/ModalDialog/ModalDialog.stories.tsx"],"sourcesContent":["import { ModalProvider } from '@react-aria/overlays';\nimport { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { ModalDialogProps } from './ModalDialog';\n\nimport { ModalDialog } from './ModalDialog';\n\nimport { Button } from 'components/Buttons';\nimport { ButtonGroup } from 'components/ButtonGroup';\nimport { FormField } from 'components/FormField';\nimport { InputField } from 'components/InputField';\nimport { Label } from 'components/Label';\n\nconst codeString = `\n/* ModalDialog has more styling props (see Info-tab).\n Code example is made with the most commonly used props. **/\n <ModalDialog isOpen={isOpen} title={title} onClose={onCloseFunction}\n onSubmit={onSubmitFunction} buttons={buttons}> {children} </ModalDialog>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/ModalDialog',\n component: ModalDialog,\n argTypes: {\n isOpen: {\n table: {\n disable: true,\n },\n },\n noValidate: {\n control: 'boolean',\n },\n role: {\n control: 'radio',\n options: ['dialog', 'alertdialog'],\n },\n onSubmit: {\n table: {\n disable: true,\n },\n },\n onClose: {\n table: {\n disable: true,\n },\n },\n buttons: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: ModalDialog,\n codeString: codeString,\n },\n} as Meta<ModalDialogProps>;\n\nconst Template: StoryFn<ModalDialogProps> = (args: ModalDialogProps) => (\n <ModalProvider>\n <ModalDialog {...args}>\n <FormField outerSpace>\n <Label htmlFor=\"text-field\">Example Text Field</Label>\n <InputField id=\"text-field\" />\n </FormField>\n </ModalDialog>\n </ModalProvider>\n);\n\nconst defaultArgs: Partial<ModalDialogProps> = {\n padded: false,\n size: 'regular',\n noButtonBorder: false,\n variant: 'dialog',\n role: 'dialog',\n title: 'Example Title',\n closeButtonAriaValueText: 'Close',\n noValidate: false,\n onSubmit: fn(),\n onClose: fn(),\n buttons: (\n <ButtonGroup reversed>\n <Button variant=\"primary\" onClick={fn()}>\n OK\n </Button>\n <Button variant=\"secondary\" onClick={fn()}>\n Cancel\n </Button>\n </ButtonGroup>\n ),\n isOpen: true,\n};\n\nexport const ModalDialogExample = Template.bind({});\nModalDialogExample.args = {\n ...defaultArgs,\n};\n\nexport const Loading = Template.bind({});\nLoading.args = {\n ...defaultArgs,\n isLoading: true,\n spinnerAriaValueText: 'Loading',\n};\n\nconst LongContentTemplate: StoryFn<ModalDialogProps> = (args: ModalDialogProps) => (\n <ModalProvider>\n <ModalDialog {...args}>\n <FormField outerSpace>\n <div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ac dui et nibh eleifend ultricies a id nulla.\n Pellentesque eleifend sem a tellus dictum tempus. Proin non leo id risus placerat vulputate at ac erat. Ut\n fringilla imperdiet sollicitudin. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere\n cubilia curae; Cras molestie ante ac magna ornare rhoncus non at quam. Mauris elementum luctus euismod.\n Pellentesque molestie malesuada purus, sed egestas lacus interdum sit amet. Morbi blandit lacus sit amet\n dictum pulvinar. Ut semper nunc ac enim imperdiet, non interdum diam gravida. In nunc tortor, mollis ac\n molestie dignissim, elementum sed quam. Suspendisse mollis venenatis libero, pellentesque vestibulum elit\n consequat et. Aliquam fringilla tellus id libero tempus, sit amet suscipit augue tristique. Quisque cursus\n neque vel justo tristique, eget semper turpis elementum. Etiam venenatis mattis sapien ac mattis. Mauris vitae\n ultrices erat.\n </div>\n <div>\n Aliquam facilisis massa sed justo rhoncus bibendum. Sed lobortis urna orci, vitae porta leo placerat nec. Nam\n porta porttitor ornare. Suspendisse vehicula nunc nec egestas finibus. Aliquam non luctus risus. Phasellus ac\n diam tincidunt, bibendum sem eget, sollicitudin neque. Curabitur mauris risus, feugiat ac euismod non,\n vulputate ac justo. Curabitur pretium vehicula augue, blandit porta odio rutrum sit amet. Proin semper enim ut\n sapien tempor, a ornare ipsum faucibus.\n </div>\n </FormField>\n </ModalDialog>\n </ModalProvider>\n);\n\nexport const WithLongContentAndNoBorder = LongContentTemplate.bind({});\nWithLongContentAndNoBorder.args = {\n ...defaultArgs,\n noButtonBorder: true,\n};\n"],"mappings":";;;;;;;;;AAsBA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,QAAQ,EACN,OAAO,EACL,SAAS,IACV,EACF;EACD,YAAY,EACV,SAAS,WACV;EACD,MAAM;GACJ,SAAS;GACT,SAAS,CAAC,UAAU,cAAc;GACnC;EACD,UAAU,EACR,OAAO,EACL,SAAS,IACV,EACF;EACD,SAAS,EACP,OAAO,EACL,SAAS,IACV,EACF;EACD,SAAS,EACP,OAAO,EACL,SAAS,IACV,EACF;EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,KAAuC,MAC3C,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;CAAa,GAAI;WACf,kBAAC,GAAD;EAAW,YAAA;YAAX,CACE,kBAAC,GAAD;GAAO,SAAQ;aAAa;GAA0B,CAAA,EACtD,kBAAC,GAAD,EAAY,IAAG,cAAe,CAAA,CACpB;;CACA,CAAA,EACA,CAAA,EAGZ,IAAyC;CAC7C,QAAQ;CACR,MAAM;CACN,gBAAgB;CAChB,SAAS;CACT,MAAM;CACN,OAAO;CACP,0BAA0B;CAC1B,YAAY;CACZ,UAAU,GAAI;CACd,SAAS,GAAI;CACb,SACE,kBAAC,GAAD;EAAa,UAAA;YAAb,CACE,kBAAC,GAAD;GAAQ,SAAQ;GAAU,SAAS,GAAI;aAAE;GAEhC,CAAA,EACT,kBAAC,GAAD;GAAQ,SAAQ;GAAY,SAAS,GAAI;aAAE;GAElC,CAAA,CACG;;CAEhB,QAAQ;CACT,EAEY,IAAqB,EAAS,KAAK,EAAE,CAAC;AACnD,EAAmB,OAAO,EACxB,GAAG,GACJ;AAED,IAAa,IAAU,EAAS,KAAK,EAAE,CAAC;AACxC,EAAQ,OAAO;CACb,GAAG;CACH,WAAW;CACX,sBAAsB;CACvB;AA8BD,IAAa,MA5B2C,MACtD,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;CAAa,GAAI;WACf,kBAAC,GAAD;EAAW,YAAA;YAAX,CACE,kBAAC,OAAD,EAAA,UAAK,+8BAWC,CAAA,EACN,kBAAC,OAAD,EAAA,UAAK,6dAMC,CAAA,CACI;;CACA,CAAA,EACA,CAAA,EAG4C,KAAK,EAAE,CAAC;AACtE,EAA2B,OAAO;CAChC,GAAG;CACH,gBAAgB;CACjB"}
@@ -1,2 +1,2 @@
1
- import { f as e } from "../../components-DAwjkky5.js";
1
+ import { f as e } from "../../components-BzxAULjf.js";
2
2
  export { e as MultiSelect };
@@ -1,5 +1,5 @@
1
- import { r as e } from "../../test-Cr_l59hN.js";
2
- import { f as t } from "../../components-DAwjkky5.js";
1
+ import { r as e } from "../../test-Pa9Lwbsq.js";
2
+ import { f as t } from "../../components-BzxAULjf.js";
3
3
  import { t as n } from "../../Container-BLjtYDqq.js";
4
4
  import "../../storyComponents/Container/index.js";
5
5
  import { useState as r } from "react";
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelect.stories.js","names":[],"sources":["../../../src/components/MultiSelect/MultiSelect.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\nimport { useState } from 'react';\n\nimport type { ChangeEvent, PropsWithChildren } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { MultiSelectProps } from './MultiSelect';\n\nimport { MultiSelect } from './MultiSelect';\n\nimport { Container } from 'storyComponents/Container';\n\nconst codeString = `\n // MultiSelectHeader can be added optionally\n <MultiSelect.MultiSelectHeader label={label} clearTrigger={clearTrigger} onClear={handleClear} />\n <MultiSelect noBorder={noBorder} scrollable={scrollable}>\n {mockItems.map(({ itemName, itemValue, disabled }) => (\n <MultiSelect.MultiSelectItem key={itemName} label={itemName} value={itemValue}\n checked={stateItems.includes(itemValue)} onChange={handleChange} disabled={disabled} />\n ))}\n </MultiSelect>\n `;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/MultiSelect',\n component: MultiSelect,\n argTypes: {\n header: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: MultiSelect,\n codeString: codeString,\n },\n} as Meta<PropsWithChildren<MultiSelectProps>>;\n\nconst Template: StoryFn<PropsWithChildren<MultiSelectProps>> = (args) => {\n const [items, setItems] = useState<string[]>([]);\n\n const mockItems = [\n { itemName: 'AItem 1', itemValue: '1', disabled: true },\n { itemName: 'BItem 2', itemValue: '2' },\n { itemName: 'Multi line Item 3 Item 3 Item 3 Item 3 Item 3 Item 3 Item 3 Item 3 Item 3 Item 3', itemValue: '3' },\n { itemName: 'CItem 4', itemValue: '4' },\n { itemName: 'DItem 5', itemValue: '5' },\n { itemName: 'EItem 6', itemValue: '6' },\n ];\n\n const handleClear = () => {\n setItems([]);\n fn()();\n };\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n const { checked, value } = event.target;\n setItems((prevState) => {\n const newItems = checked ? [...prevState, value] : prevState.filter((itemValue) => itemValue !== value);\n fn()(newItems);\n return newItems;\n });\n };\n\n return (\n <Container>\n {/* header added under separate boolean arg here for storybook purpose, \n it should be added as direct arg to MultiSelect when used in application */}\n {args.header && (\n <MultiSelect.MultiSelectHeader\n label=\"Item list\"\n clearTrigger={items.length > 0 ? 'Clear Selection' : ''}\n onClear={handleClear}\n />\n )}\n <MultiSelect {...args}>\n {mockItems.map(({ itemName, itemValue, disabled }) => (\n <MultiSelect.MultiSelectItem\n key={itemName}\n label={itemName}\n value={itemValue}\n checked={items.includes(itemValue)}\n onChange={handleChange}\n disabled={disabled}\n />\n ))}\n </MultiSelect>\n </Container>\n );\n};\n\nconst defaultArgs: Partial<MultiSelectProps> = {\n scrollable: true,\n noBorder: false,\n};\n\nexport const MultiSelectExample = Template.bind({});\nMultiSelectExample.args = {\n ...defaultArgs,\n};\n\nexport const WithHeader = Template.bind({});\nWithHeader.args = {\n ...defaultArgs,\n // boolean is not normal way of adding header but if added after template the rerender logic of\n // storybook would not correctly clear the checkboxes\n header: true,\n};\n\nexport const WithheaderAndWithoutScrollContainerAndBorder = Template.bind({});\nWithheaderAndWithoutScrollContainerAndBorder.args = {\n scrollable: false,\n noBorder: true,\n // boolean is not normal way of adding header but if added after template the rerender logic of\n // storybook would not correctly clear the checkboxes\n header: true,\n};\n"],"mappings":";;;;;;AAuBA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU,EACR,QAAQ,EACN,OAAO,EACL,SAAS,IACV,EACF,EACF;CACD,YAAY;EACV,kBAAkB;EACN,YAxBG;EAyBhB;CACF,EAEK,KAA0D,MAAS;CACvE,IAAM,CAAC,GAAO,KAAY,EAAmB,EAAE,CAAC,EAE1C,IAAY;EAChB;GAAE,UAAU;GAAW,WAAW;GAAK,UAAU;GAAM;EACvD;GAAE,UAAU;GAAW,WAAW;GAAK;EACvC;GAAE,UAAU;GAAoF,WAAW;GAAK;EAChH;GAAE,UAAU;GAAW,WAAW;GAAK;EACvC;GAAE,UAAU;GAAW,WAAW;GAAK;EACvC;GAAE,UAAU;GAAW,WAAW;GAAK;EACxC,EAEK,UAAoB;AAExB,EADA,EAAS,EAAE,CAAC,EACZ,GAAI,EAAE;IAGF,KAAgB,MAAyC;EAC7D,IAAM,EAAE,YAAS,aAAU,EAAM;AACjC,KAAU,MAAc;GACtB,IAAM,IAAW,IAAU,CAAC,GAAG,GAAW,EAAM,GAAG,EAAU,QAAQ,MAAc,MAAc,EAAM;AAEvG,UADA,GAAI,CAAC,EAAS,EACP;IACP;;AAGJ,QACE,kBAAC,GAAD,EAAA,UAAA,CAGG,EAAK,UACJ,kBAAC,EAAY,mBAAb;EACE,OAAM;EACN,cAAc,EAAM,SAAS,IAAI,oBAAoB;EACrD,SAAS;EACT,CAAA,EAEJ,kBAAC,GAAD;EAAa,GAAI;YACd,EAAU,KAAK,EAAE,aAAU,cAAW,kBACrC,kBAAC,EAAY,iBAAb;GAEE,OAAO;GACP,OAAO;GACP,SAAS,EAAM,SAAS,EAAU;GAClC,UAAU;GACA;GACV,EANK,EAML,CACF;EACU,CAAA,CACJ,EAAA,CAAA;GAIV,IAAyC;CAC7C,YAAY;CACZ,UAAU;CACX,EAEY,IAAqB,EAAS,KAAK,EAAE,CAAC;AACnD,EAAmB,OAAO,EACxB,GAAG,GACJ;AAED,IAAa,IAAa,EAAS,KAAK,EAAE,CAAC;AAC3C,EAAW,OAAO;CAChB,GAAG;CAGH,QAAQ;CACT;AAED,IAAa,IAA+C,EAAS,KAAK,EAAE,CAAC;AAC7E,EAA6C,OAAO;CAClD,YAAY;CACZ,UAAU;CAGV,QAAQ;CACT"}
1
+ {"version":3,"file":"MultiSelect.stories.js","names":[],"sources":["../../../src/components/MultiSelect/MultiSelect.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\nimport { useState } from 'react';\n\nimport type { ChangeEvent, PropsWithChildren } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { MultiSelectProps } from './MultiSelect';\n\nimport { MultiSelect } from './MultiSelect';\n\nimport { Container } from 'storyComponents/Container';\n\nconst codeString = `\n // MultiSelectHeader can be added optionally\n <MultiSelect.MultiSelectHeader label={label} clearTrigger={clearTrigger} onClear={handleClear} />\n <MultiSelect noBorder={noBorder} scrollable={scrollable}>\n {mockItems.map(({ itemName, itemValue, disabled }) => (\n <MultiSelect.MultiSelectItem key={itemName} label={itemName} value={itemValue}\n checked={stateItems.includes(itemValue)} onChange={handleChange} disabled={disabled} />\n ))}\n </MultiSelect>\n `;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/MultiSelect',\n component: MultiSelect,\n argTypes: {\n header: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: MultiSelect,\n codeString: codeString,\n },\n} as Meta<PropsWithChildren<MultiSelectProps>>;\n\nconst Template: StoryFn<PropsWithChildren<MultiSelectProps>> = (args) => {\n const [items, setItems] = useState<string[]>([]);\n\n const mockItems = [\n { itemName: 'AItem 1', itemValue: '1', disabled: true },\n { itemName: 'BItem 2', itemValue: '2' },\n { itemName: 'Multi line Item 3 Item 3 Item 3 Item 3 Item 3 Item 3 Item 3 Item 3 Item 3 Item 3', itemValue: '3' },\n { itemName: 'CItem 4', itemValue: '4' },\n { itemName: 'DItem 5', itemValue: '5' },\n { itemName: 'EItem 6', itemValue: '6' },\n ];\n\n const handleClear = () => {\n setItems([]);\n fn()();\n };\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n const { checked, value } = event.target;\n setItems((prevState) => {\n const newItems = checked ? [...prevState, value] : prevState.filter((itemValue) => itemValue !== value);\n fn()(newItems);\n return newItems;\n });\n };\n\n return (\n <Container>\n {/* header added under separate boolean arg here for storybook purpose, \n it should be added as direct arg to MultiSelect when used in application */}\n {args.header && (\n <MultiSelect.MultiSelectHeader\n label=\"Item list\"\n clearTrigger={items.length > 0 ? 'Clear Selection' : ''}\n onClear={handleClear}\n />\n )}\n <MultiSelect {...args}>\n {mockItems.map(({ itemName, itemValue, disabled }) => (\n <MultiSelect.MultiSelectItem\n key={itemName}\n label={itemName}\n value={itemValue}\n checked={items.includes(itemValue)}\n onChange={handleChange}\n disabled={disabled}\n />\n ))}\n </MultiSelect>\n </Container>\n );\n};\n\nconst defaultArgs: Partial<MultiSelectProps> = {\n scrollable: true,\n noBorder: false,\n};\n\nexport const MultiSelectExample = Template.bind({});\nMultiSelectExample.args = {\n ...defaultArgs,\n};\n\nexport const WithHeader = Template.bind({});\nWithHeader.args = {\n ...defaultArgs,\n // boolean is not normal way of adding header but if added after template the rerender logic of\n // storybook would not correctly clear the checkboxes\n header: true,\n};\n\nexport const WithheaderAndWithoutScrollContainerAndBorder = Template.bind({});\nWithheaderAndWithoutScrollContainerAndBorder.args = {\n scrollable: false,\n noBorder: true,\n // boolean is not normal way of adding header but if added after template the rerender logic of\n // storybook would not correctly clear the checkboxes\n header: true,\n};\n"],"mappings":";;;;;;AAuBA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU,EACR,QAAQ,EACN,OAAO,EACL,SAAS,IACV,EACF,EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,KAA0D,MAAS;CACvE,IAAM,CAAC,GAAO,KAAY,EAAmB,EAAE,CAAC,EAE1C,IAAY;EAChB;GAAE,UAAU;GAAW,WAAW;GAAK,UAAU;GAAM;EACvD;GAAE,UAAU;GAAW,WAAW;GAAK;EACvC;GAAE,UAAU;GAAoF,WAAW;GAAK;EAChH;GAAE,UAAU;GAAW,WAAW;GAAK;EACvC;GAAE,UAAU;GAAW,WAAW;GAAK;EACvC;GAAE,UAAU;GAAW,WAAW;GAAK;EACxC,EAEK,UAAoB;EAExB,AADA,EAAS,EAAE,CAAC,EACZ,GAAI,EAAE;IAGF,KAAgB,MAAyC;EAC7D,IAAM,EAAE,YAAS,aAAU,EAAM;EACjC,GAAU,MAAc;GACtB,IAAM,IAAW,IAAU,CAAC,GAAG,GAAW,EAAM,GAAG,EAAU,QAAQ,MAAc,MAAc,EAAM;GAEvG,OADA,GAAI,CAAC,EAAS,EACP;IACP;;CAGJ,OACE,kBAAC,GAAD,EAAA,UAAA,CAGG,EAAK,UACJ,kBAAC,EAAY,mBAAb;EACE,OAAM;EACN,cAAc,EAAM,SAAS,IAAI,oBAAoB;EACrD,SAAS;EACT,CAAA,EAEJ,kBAAC,GAAD;EAAa,GAAI;YACd,EAAU,KAAK,EAAE,aAAU,cAAW,kBACrC,kBAAC,EAAY,iBAAb;GAEE,OAAO;GACP,OAAO;GACP,SAAS,EAAM,SAAS,EAAU;GAClC,UAAU;GACA;GACV,EANK,EAML,CACF;EACU,CAAA,CACJ,EAAA,CAAA;GAIV,IAAyC;CAC7C,YAAY;CACZ,UAAU;CACX,EAEY,IAAqB,EAAS,KAAK,EAAE,CAAC;AACnD,EAAmB,OAAO,EACxB,GAAG,GACJ;AAED,IAAa,IAAa,EAAS,KAAK,EAAE,CAAC;AAC3C,EAAW,OAAO;CAChB,GAAG;CAGH,QAAQ;CACT;AAED,IAAa,IAA+C,EAAS,KAAK,EAAE,CAAC;AAC7E,EAA6C,OAAO;CAClD,YAAY;CACZ,UAAU;CAGV,QAAQ;CACT"}
@@ -1,2 +1,2 @@
1
- import { p as e } from "../../../components-DAwjkky5.js";
1
+ import { p as e } from "../../../components-BzxAULjf.js";
2
2
  export { e as MultiSelectHeader };
@@ -1,2 +1,2 @@
1
- import { f as e } from "../../components-DAwjkky5.js";
1
+ import { f as e } from "../../components-BzxAULjf.js";
2
2
  export { e as MultiSelect };
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../test-Cr_l59hN.js";
1
+ import { r as e } from "../../test-Pa9Lwbsq.js";
2
2
  import { t } from "../../MultiSelectBox-Cuh_o-A1.js";
3
3
  import { useState as n } from "react";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelectBox.stories.js","names":[],"sources":["../../../src/components/MultiSelectBox/MultiSelectBox.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\nimport { useState } from 'react';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { MultiSelectBoxProps, MultiSelectData } from './MultiSelectBox';\n\nimport { MultiSelectBox } from './MultiSelectBox';\n\nconst codeString = `<MultiSelectBox selectData={[{label, value}]} onChange={fn} labelSuffix={string} />`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/MultiSelectBox',\n component: MultiSelectBox,\n argTypes: {\n onChange: {\n action: 'Selected values',\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: MultiSelectBox,\n codeString: codeString,\n },\n} as Meta<MultiSelectBoxProps>;\n\nconst mockItems = [\n { label: 'A.B. Docent', value: '1' },\n { label: 'B.C. Docent met lange achternaam', value: '2' },\n {\n label: 'prof. F.G. Docent met lang achternaam',\n value: '3',\n },\n { label: 'H.I. Docent', value: '4' },\n { label: 'K.L. Docent ', value: '5' },\n { label: 'A.B. Docent', value: '6' },\n { label: 'B.C. Docent met lange achternaam', value: '7' },\n {\n label: 'prof. F.G. Docent met lang achternaam',\n value: '8',\n },\n { label: 'H.I. Docent', value: '9' },\n { label: 'K.L. Docent ', value: '10' },\n];\n\nconst Template: StoryFn<MultiSelectBoxProps> = (args) => {\n const [selectedItems, setSelectedItems] = useState<MultiSelectData[]>(args.defaultSelectedItems || []);\n\n const handleChange = (items: MultiSelectData[]) => {\n if (args.onChange) {\n args.onChange(items);\n }\n setSelectedItems(items);\n };\n\n return (\n <div style={{ width: '30rem', margin: '0rem auto 0 auto' }}>\n <span>{selectedItems.map((item) => item.label).join(', ')}</span>\n <MultiSelectBox {...args} onChange={handleChange} />\n </div>\n );\n};\n\nconst defaultArgs: Partial<MultiSelectBoxProps> = {\n fullWidth: false,\n labelSuffix: 'geselecteerd',\n maxOptionHeight: '20rem',\n optionPositionRight: false,\n disabled: false,\n selectData: mockItems,\n onChange: fn(),\n};\n\nexport const MultiSelectBoxExample = Template.bind({});\nMultiSelectBoxExample.args = {\n ...defaultArgs,\n};\n\nexport const WithDefaultSelectedItems = Template.bind({});\nWithDefaultSelectedItems.args = {\n ...defaultArgs,\n defaultSelectedItems: [\n { label: 'A.B. Docent', value: '1' },\n { label: 'H.I. Docent', value: '4' },\n { label: 'A.B. Docent', value: '6' },\n ],\n};\n"],"mappings":";;;;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU,EACR,UAAU;EACR,QAAQ;EACR,OAAO,EACL,SAAS,IACV;EACF,EACF;CACD,YAAY;EACV,kBAAkB;EACN,YAhBG;EAiBhB;CACF,EAEK,IAAY;CAChB;EAAE,OAAO;EAAe,OAAO;EAAK;CACpC;EAAE,OAAO;EAAoC,OAAO;EAAK;CACzD;EACE,OAAO;EACP,OAAO;EACR;CACD;EAAE,OAAO;EAAe,OAAO;EAAK;CACpC;EAAE,OAAO;EAAgB,OAAO;EAAK;CACrC;EAAE,OAAO;EAAe,OAAO;EAAK;CACpC;EAAE,OAAO;EAAoC,OAAO;EAAK;CACzD;EACE,OAAO;EACP,OAAO;EACR;CACD;EAAE,OAAO;EAAe,OAAO;EAAK;CACpC;EAAE,OAAO;EAAgB,OAAO;EAAM;CACvC,EAEK,KAA0C,MAAS;CACvD,IAAM,CAAC,GAAe,KAAoB,EAA4B,EAAK,wBAAwB,EAAE,CAAC,EAEhG,KAAgB,MAA6B;AAIjD,EAHI,EAAK,YACP,EAAK,SAAS,EAAM,EAEtB,EAAiB,EAAM;;AAGzB,QACE,kBAAC,OAAD;EAAK,OAAO;GAAE,OAAO;GAAS,QAAQ;GAAoB;YAA1D,CACE,kBAAC,QAAD,EAAA,UAAO,EAAc,KAAK,MAAS,EAAK,MAAM,CAAC,KAAK,KAAK,EAAQ,CAAA,EACjE,kBAAC,GAAD;GAAgB,GAAI;GAAM,UAAU;GAAgB,CAAA,CAChD;;GAIJ,IAA4C;CAChD,WAAW;CACX,aAAa;CACb,iBAAiB;CACjB,qBAAqB;CACrB,UAAU;CACV,YAAY;CACZ,UAAU,GAAI;CACf,EAEY,IAAwB,EAAS,KAAK,EAAE,CAAC;AACtD,EAAsB,OAAO,EAC3B,GAAG,GACJ;AAED,IAAa,IAA2B,EAAS,KAAK,EAAE,CAAC;AACzD,EAAyB,OAAO;CAC9B,GAAG;CACH,sBAAsB;EACpB;GAAE,OAAO;GAAe,OAAO;GAAK;EACpC;GAAE,OAAO;GAAe,OAAO;GAAK;EACpC;GAAE,OAAO;GAAe,OAAO;GAAK;EACrC;CACF"}
1
+ {"version":3,"file":"MultiSelectBox.stories.js","names":[],"sources":["../../../src/components/MultiSelectBox/MultiSelectBox.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\nimport { useState } from 'react';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { MultiSelectBoxProps, MultiSelectData } from './MultiSelectBox';\n\nimport { MultiSelectBox } from './MultiSelectBox';\n\nconst codeString = `<MultiSelectBox selectData={[{label, value}]} onChange={fn} labelSuffix={string} />`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/MultiSelectBox',\n component: MultiSelectBox,\n argTypes: {\n onChange: {\n action: 'Selected values',\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: MultiSelectBox,\n codeString: codeString,\n },\n} as Meta<MultiSelectBoxProps>;\n\nconst mockItems = [\n { label: 'A.B. Docent', value: '1' },\n { label: 'B.C. Docent met lange achternaam', value: '2' },\n {\n label: 'prof. F.G. Docent met lang achternaam',\n value: '3',\n },\n { label: 'H.I. Docent', value: '4' },\n { label: 'K.L. Docent ', value: '5' },\n { label: 'A.B. Docent', value: '6' },\n { label: 'B.C. Docent met lange achternaam', value: '7' },\n {\n label: 'prof. F.G. Docent met lang achternaam',\n value: '8',\n },\n { label: 'H.I. Docent', value: '9' },\n { label: 'K.L. Docent ', value: '10' },\n];\n\nconst Template: StoryFn<MultiSelectBoxProps> = (args) => {\n const [selectedItems, setSelectedItems] = useState<MultiSelectData[]>(args.defaultSelectedItems || []);\n\n const handleChange = (items: MultiSelectData[]) => {\n if (args.onChange) {\n args.onChange(items);\n }\n setSelectedItems(items);\n };\n\n return (\n <div style={{ width: '30rem', margin: '0rem auto 0 auto' }}>\n <span>{selectedItems.map((item) => item.label).join(', ')}</span>\n <MultiSelectBox {...args} onChange={handleChange} />\n </div>\n );\n};\n\nconst defaultArgs: Partial<MultiSelectBoxProps> = {\n fullWidth: false,\n labelSuffix: 'geselecteerd',\n maxOptionHeight: '20rem',\n optionPositionRight: false,\n disabled: false,\n selectData: mockItems,\n onChange: fn(),\n};\n\nexport const MultiSelectBoxExample = Template.bind({});\nMultiSelectBoxExample.args = {\n ...defaultArgs,\n};\n\nexport const WithDefaultSelectedItems = Template.bind({});\nWithDefaultSelectedItems.args = {\n ...defaultArgs,\n defaultSelectedItems: [\n { label: 'A.B. Docent', value: '1' },\n { label: 'H.I. Docent', value: '4' },\n { label: 'A.B. Docent', value: '6' },\n ],\n};\n"],"mappings":";;;;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU,EACR,UAAU;EACR,QAAQ;EACR,OAAO,EACL,SAAS,IACV;EACF,EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,IAAY;CAChB;EAAE,OAAO;EAAe,OAAO;EAAK;CACpC;EAAE,OAAO;EAAoC,OAAO;EAAK;CACzD;EACE,OAAO;EACP,OAAO;EACR;CACD;EAAE,OAAO;EAAe,OAAO;EAAK;CACpC;EAAE,OAAO;EAAgB,OAAO;EAAK;CACrC;EAAE,OAAO;EAAe,OAAO;EAAK;CACpC;EAAE,OAAO;EAAoC,OAAO;EAAK;CACzD;EACE,OAAO;EACP,OAAO;EACR;CACD;EAAE,OAAO;EAAe,OAAO;EAAK;CACpC;EAAE,OAAO;EAAgB,OAAO;EAAM;CACvC,EAEK,KAA0C,MAAS;CACvD,IAAM,CAAC,GAAe,KAAoB,EAA4B,EAAK,wBAAwB,EAAE,CAAC,EAEhG,KAAgB,MAA6B;EAIjD,AAHI,EAAK,YACP,EAAK,SAAS,EAAM,EAEtB,EAAiB,EAAM;;CAGzB,OACE,kBAAC,OAAD;EAAK,OAAO;GAAE,OAAO;GAAS,QAAQ;GAAoB;YAA1D,CACE,kBAAC,QAAD,EAAA,UAAO,EAAc,KAAK,MAAS,EAAK,MAAM,CAAC,KAAK,KAAK,EAAQ,CAAA,EACjE,kBAAC,GAAD;GAAgB,GAAI;GAAM,UAAU;GAAgB,CAAA,CAChD;;GAIJ,IAA4C;CAChD,WAAW;CACX,aAAa;CACb,iBAAiB;CACjB,qBAAqB;CACrB,UAAU;CACV,YAAY;CACZ,UAAU,GAAI;CACf,EAEY,IAAwB,EAAS,KAAK,EAAE,CAAC;AACtD,EAAsB,OAAO,EAC3B,GAAG,GACJ;AAED,IAAa,IAA2B,EAAS,KAAK,EAAE,CAAC;AACzD,EAAyB,OAAO;CAC9B,GAAG;CACH,sBAAsB;EACpB;GAAE,OAAO;GAAe,OAAO;GAAK;EACpC;GAAE,OAAO;GAAe,OAAO;GAAK;EACpC;GAAE,OAAO;GAAe,OAAO;GAAK;EACrC;CACF"}
@@ -1,6 +1,6 @@
1
- import "../../dist-BIkFjHck.js";
1
+ import "../../dist-V_v3kC0L.js";
2
2
  import { t as e } from "../../MultiSelectBox-Cuh_o-A1.js";
3
- import { i as t, n, t as r } from "../../react.esm-R7eBXTUI.js";
3
+ import { i as t, n, t as r } from "../../react.esm-CweFe1CK.js";
4
4
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
5
5
  //#region src/components/MultiSelectBox/MultiSelectBox.test.tsx
6
6
  var s = jest.fn(), c = [
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelectBox.test.js","names":[],"sources":["../../../src/components/MultiSelectBox/MultiSelectBox.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen, fireEvent } from '@testing-library/react';\n\nimport { MultiSelectBox } from './MultiSelectBox';\n\nconst onChangeSpy = jest.fn();\n\nconst mockSelectData = [\n { label: 'Option 1', value: '1' },\n { label: 'Option 2', value: '2' },\n { label: 'Option 3', value: '3' },\n];\n\ndescribe('MultiSelectBox', () => {\n it('renders the component with default props', () => {\n render(<MultiSelectBox selectData={mockSelectData} onChange={onChangeSpy} labelSuffix=\"selected\" />);\n const button = screen.getByRole('button');\n expect(button).toBeInTheDocument();\n expect(button).toHaveAttribute('aria-expanded', 'false');\n });\n\n it('opens the dropdown when the button is clicked', () => {\n render(<MultiSelectBox selectData={mockSelectData} onChange={onChangeSpy} labelSuffix=\"selected\" />);\n const button = screen.getByRole('button');\n fireEvent.click(button);\n expect(button).toHaveAttribute('aria-expanded', 'true');\n expect(screen.getByRole('listbox')).toBeInTheDocument();\n });\n\n it('closes the dropdown when clicking outside', () => {\n render(\n <>\n <MultiSelectBox selectData={mockSelectData} onChange={onChangeSpy} labelSuffix=\"selected\" />\n <div data-testid=\"outside-element\">Outside</div>\n </>\n );\n\n const button = screen.getByRole('button');\n fireEvent.click(button);\n expect(button).toHaveAttribute('aria-expanded', 'true');\n const outsideElement = screen.getByTestId('outside-element');\n fireEvent.click(outsideElement);\n expect(button).toHaveAttribute('aria-expanded', 'false');\n });\n});\n"],"mappings":";;;;;AAKA,IAAM,IAAc,KAAK,IAAI,EAEvB,IAAiB;CACrB;EAAE,OAAO;EAAY,OAAO;EAAK;CACjC;EAAE,OAAO;EAAY,OAAO;EAAK;CACjC;EAAE,OAAO;EAAY,OAAO;EAAK;CAClC;AAED,SAAS,wBAAwB;AAgB/B,CAfA,GAAG,kDAAkD;AACnD,IAAO,kBAAC,GAAD;GAAgB,YAAY;GAAgB,UAAU;GAAa,aAAY;GAAa,CAAA,CAAC;EACpG,IAAM,IAAS,EAAO,UAAU,SAAS;AAEzC,EADA,OAAO,EAAO,CAAC,mBAAmB,EAClC,OAAO,EAAO,CAAC,gBAAgB,iBAAiB,QAAQ;GACxD,EAEF,GAAG,uDAAuD;AACxD,IAAO,kBAAC,GAAD;GAAgB,YAAY;GAAgB,UAAU;GAAa,aAAY;GAAa,CAAA,CAAC;EACpG,IAAM,IAAS,EAAO,UAAU,SAAS;AAGzC,EAFA,EAAU,MAAM,EAAO,EACvB,OAAO,EAAO,CAAC,gBAAgB,iBAAiB,OAAO,EACvD,OAAO,EAAO,UAAU,UAAU,CAAC,CAAC,mBAAmB;GACvD,EAEF,GAAG,mDAAmD;AACpD,IACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;GAAgB,YAAY;GAAgB,UAAU;GAAa,aAAY;GAAa,CAAA,EAC5F,kBAAC,OAAD;GAAK,eAAY;aAAkB;GAAa,CAAA,CAC/C,EAAA,CAAA,CACJ;EAED,IAAM,IAAS,EAAO,UAAU,SAAS;AAEzC,EADA,EAAU,MAAM,EAAO,EACvB,OAAO,EAAO,CAAC,gBAAgB,iBAAiB,OAAO;EACvD,IAAM,IAAiB,EAAO,YAAY,kBAAkB;AAE5D,EADA,EAAU,MAAM,EAAe,EAC/B,OAAO,EAAO,CAAC,gBAAgB,iBAAiB,QAAQ;GACxD;EACF"}
1
+ {"version":3,"file":"MultiSelectBox.test.js","names":[],"sources":["../../../src/components/MultiSelectBox/MultiSelectBox.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen, fireEvent } from '@testing-library/react';\n\nimport { MultiSelectBox } from './MultiSelectBox';\n\nconst onChangeSpy = jest.fn();\n\nconst mockSelectData = [\n { label: 'Option 1', value: '1' },\n { label: 'Option 2', value: '2' },\n { label: 'Option 3', value: '3' },\n];\n\ndescribe('MultiSelectBox', () => {\n it('renders the component with default props', () => {\n render(<MultiSelectBox selectData={mockSelectData} onChange={onChangeSpy} labelSuffix=\"selected\" />);\n const button = screen.getByRole('button');\n expect(button).toBeInTheDocument();\n expect(button).toHaveAttribute('aria-expanded', 'false');\n });\n\n it('opens the dropdown when the button is clicked', () => {\n render(<MultiSelectBox selectData={mockSelectData} onChange={onChangeSpy} labelSuffix=\"selected\" />);\n const button = screen.getByRole('button');\n fireEvent.click(button);\n expect(button).toHaveAttribute('aria-expanded', 'true');\n expect(screen.getByRole('listbox')).toBeInTheDocument();\n });\n\n it('closes the dropdown when clicking outside', () => {\n render(\n <>\n <MultiSelectBox selectData={mockSelectData} onChange={onChangeSpy} labelSuffix=\"selected\" />\n <div data-testid=\"outside-element\">Outside</div>\n </>\n );\n\n const button = screen.getByRole('button');\n fireEvent.click(button);\n expect(button).toHaveAttribute('aria-expanded', 'true');\n const outsideElement = screen.getByTestId('outside-element');\n fireEvent.click(outsideElement);\n expect(button).toHaveAttribute('aria-expanded', 'false');\n });\n});\n"],"mappings":";;;;;AAKA,IAAM,IAAc,KAAK,IAAI,EAEvB,IAAiB;CACrB;EAAE,OAAO;EAAY,OAAO;EAAK;CACjC;EAAE,OAAO;EAAY,OAAO;EAAK;CACjC;EAAE,OAAO;EAAY,OAAO;EAAK;CAClC;AAED,SAAS,wBAAwB;CAgB/B,AAfA,GAAG,kDAAkD;EACnD,EAAO,kBAAC,GAAD;GAAgB,YAAY;GAAgB,UAAU;GAAa,aAAY;GAAa,CAAA,CAAC;EACpG,IAAM,IAAS,EAAO,UAAU,SAAS;EAEzC,AADA,OAAO,EAAO,CAAC,mBAAmB,EAClC,OAAO,EAAO,CAAC,gBAAgB,iBAAiB,QAAQ;GACxD,EAEF,GAAG,uDAAuD;EACxD,EAAO,kBAAC,GAAD;GAAgB,YAAY;GAAgB,UAAU;GAAa,aAAY;GAAa,CAAA,CAAC;EACpG,IAAM,IAAS,EAAO,UAAU,SAAS;EAGzC,AAFA,EAAU,MAAM,EAAO,EACvB,OAAO,EAAO,CAAC,gBAAgB,iBAAiB,OAAO,EACvD,OAAO,EAAO,UAAU,UAAU,CAAC,CAAC,mBAAmB;GACvD,EAEF,GAAG,mDAAmD;EACpD,EACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;GAAgB,YAAY;GAAgB,UAAU;GAAa,aAAY;GAAa,CAAA,EAC5F,kBAAC,OAAD;GAAK,eAAY;aAAkB;GAAa,CAAA,CAC/C,EAAA,CAAA,CACJ;EAED,IAAM,IAAS,EAAO,UAAU,SAAS;EAEzC,AADA,EAAU,MAAM,EAAO,EACvB,OAAO,EAAO,CAAC,gBAAgB,iBAAiB,OAAO;EACvD,IAAM,IAAiB,EAAO,YAAY,kBAAkB;EAE5D,AADA,EAAU,MAAM,EAAe,EAC/B,OAAO,EAAO,CAAC,gBAAgB,iBAAiB,QAAQ;GACxD;EACF"}
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../test-Cr_l59hN.js";
1
+ import { r as e } from "../../test-Pa9Lwbsq.js";
2
2
  import { t } from "../../Notification-CIhsHuF0.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  var r = {
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.stories.js","names":[],"sources":["../../../src/components/Notification/Notification.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { NotificationProps } from './Notification';\n\nimport { Notification } from './Notification';\n\nconst codeString = `<Notification title={title} subtitle={subtitle} action={action} \n level={level} variant={variant} onClose={() => {}} />`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/Notification',\n component: Notification,\n argTypes: {\n level: {\n options: ['neutral', 'information', 'success', 'warning', 'danger'],\n control: { type: 'radio' },\n },\n variant: {\n options: ['default', 'bar'],\n control: { type: 'radio' },\n },\n },\n parameters: {\n inspectComponent: Notification,\n codeString: codeString,\n },\n} as Meta<NotificationProps>;\n\nconst Template: StoryFn<NotificationProps> = (args) => <Notification {...args} />;\n\nconst defaultArgs: Partial<NotificationProps> = {\n level: 'information',\n title: 'Titel van de melding',\n onClose: fn(),\n};\n\nexport const NotificationExample = Template.bind({});\nNotificationExample.args = {\n ...defaultArgs,\n variant: 'default',\n subtitle: 'Subtekst ter verduidelijking van de melding.',\n action: <span>Actie</span>,\n};\n\nexport const AsBar = Template.bind({});\nAsBar.args = {\n ...defaultArgs,\n variant: 'bar',\n};\n"],"mappings":";;;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,OAAO;GACL,SAAS;IAAC;IAAW;IAAe;IAAW;IAAW;IAAS;GACnE,SAAS,EAAE,MAAM,SAAS;GAC3B;EACD,SAAS;GACP,SAAS,CAAC,WAAW,MAAM;GAC3B,SAAS,EAAE,MAAM,SAAS;GAC3B;EACF;CACD,YAAY;EACV,kBAAkB;EACN,YAnBG;EAoBhB;CACF,EAEK,KAAwC,MAAS,kBAAC,GAAD,EAAc,GAAI,GAAQ,CAAA,EAE3E,IAA0C;CAC9C,OAAO;CACP,OAAO;CACP,SAAS,GAAI;CACd,EAEY,IAAsB,EAAS,KAAK,EAAE,CAAC;AACpD,EAAoB,OAAO;CACzB,GAAG;CACH,SAAS;CACT,UAAU;CACV,QAAQ,kBAAC,QAAD,EAAA,UAAM,SAAY,CAAA;CAC3B;AAED,IAAa,IAAQ,EAAS,KAAK,EAAE,CAAC;AACtC,EAAM,OAAO;CACX,GAAG;CACH,SAAS;CACV"}
1
+ {"version":3,"file":"Notification.stories.js","names":[],"sources":["../../../src/components/Notification/Notification.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { NotificationProps } from './Notification';\n\nimport { Notification } from './Notification';\n\nconst codeString = `<Notification title={title} subtitle={subtitle} action={action} \n level={level} variant={variant} onClose={() => {}} />`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/Notification',\n component: Notification,\n argTypes: {\n level: {\n options: ['neutral', 'information', 'success', 'warning', 'danger'],\n control: { type: 'radio' },\n },\n variant: {\n options: ['default', 'bar'],\n control: { type: 'radio' },\n },\n },\n parameters: {\n inspectComponent: Notification,\n codeString: codeString,\n },\n} as Meta<NotificationProps>;\n\nconst Template: StoryFn<NotificationProps> = (args) => <Notification {...args} />;\n\nconst defaultArgs: Partial<NotificationProps> = {\n level: 'information',\n title: 'Titel van de melding',\n onClose: fn(),\n};\n\nexport const NotificationExample = Template.bind({});\nNotificationExample.args = {\n ...defaultArgs,\n variant: 'default',\n subtitle: 'Subtekst ter verduidelijking van de melding.',\n action: <span>Actie</span>,\n};\n\nexport const AsBar = Template.bind({});\nAsBar.args = {\n ...defaultArgs,\n variant: 'bar',\n};\n"],"mappings":";;;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,OAAO;GACL,SAAS;IAAC;IAAW;IAAe;IAAW;IAAW;IAAS;GACnE,SAAS,EAAE,MAAM,SAAS;GAC3B;EACD,SAAS;GACP,SAAS,CAAC,WAAW,MAAM;GAC3B,SAAS,EAAE,MAAM,SAAS;GAC3B;EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,KAAwC,MAAS,kBAAC,GAAD,EAAc,GAAI,GAAQ,CAAA,EAE3E,IAA0C;CAC9C,OAAO;CACP,OAAO;CACP,SAAS,GAAI;CACd,EAEY,IAAsB,EAAS,KAAK,EAAE,CAAC;AACpD,EAAoB,OAAO;CACzB,GAAG;CACH,SAAS;CACT,UAAU;CACV,QAAQ,kBAAC,QAAD,EAAA,UAAM,SAAY,CAAA;CAC3B;AAED,IAAa,IAAQ,EAAS,KAAK,EAAE,CAAC;AACtC,EAAM,OAAO;CACX,GAAG;CACH,SAAS;CACV"}
@@ -1,6 +1,6 @@
1
- import "../../dist-BIkFjHck.js";
1
+ import "../../dist-V_v3kC0L.js";
2
2
  import { t as e } from "../../Notification-CIhsHuF0.js";
3
- import { i as t, n } from "../../react.esm-R7eBXTUI.js";
3
+ import { i as t, n } from "../../react.esm-CweFe1CK.js";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  //#region src/components/Notification/Notification.test.tsx
6
6
  describe("Notification", () => {
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.test.js","names":[],"sources":["../../../src/components/Notification/Notification.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { Notification } from './Notification';\n\ndescribe('Notification', () => {\n it('renders title and subtitle', () => {\n render(<Notification level=\"information\" title=\"Info title\" subtitle=\"Info subtitle\" />);\n expect(screen.getByText('Info title')).toBeInTheDocument();\n expect(screen.getByText('Info subtitle')).toBeInTheDocument();\n });\n\n it('renders bar variant', () => {\n render(<Notification level=\"danger\" variant=\"bar\" title=\"Danger title\" />);\n expect(screen.getByText('Danger title')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,sBAAsB;AAO7B,CANA,GAAG,oCAAoC;AAGrC,EAFA,EAAO,kBAAC,GAAD;GAAc,OAAM;GAAc,OAAM;GAAa,UAAS;GAAkB,CAAA,CAAC,EACxF,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,mBAAmB,EAC1D,OAAO,EAAO,UAAU,gBAAgB,CAAC,CAAC,mBAAmB;GAC7D,EAEF,GAAG,6BAA6B;AAE9B,EADA,EAAO,kBAAC,GAAD;GAAc,OAAM;GAAS,SAAQ;GAAM,OAAM;GAAiB,CAAA,CAAC,EAC1E,OAAO,EAAO,UAAU,eAAe,CAAC,CAAC,mBAAmB;GAC5D;EACF"}
1
+ {"version":3,"file":"Notification.test.js","names":[],"sources":["../../../src/components/Notification/Notification.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { Notification } from './Notification';\n\ndescribe('Notification', () => {\n it('renders title and subtitle', () => {\n render(<Notification level=\"information\" title=\"Info title\" subtitle=\"Info subtitle\" />);\n expect(screen.getByText('Info title')).toBeInTheDocument();\n expect(screen.getByText('Info subtitle')).toBeInTheDocument();\n });\n\n it('renders bar variant', () => {\n render(<Notification level=\"danger\" variant=\"bar\" title=\"Danger title\" />);\n expect(screen.getByText('Danger title')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,sBAAsB;CAO7B,AANA,GAAG,oCAAoC;EAGrC,AAFA,EAAO,kBAAC,GAAD;GAAc,OAAM;GAAc,OAAM;GAAa,UAAS;GAAkB,CAAA,CAAC,EACxF,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,mBAAmB,EAC1D,OAAO,EAAO,UAAU,gBAAgB,CAAC,CAAC,mBAAmB;GAC7D,EAEF,GAAG,6BAA6B;EAE9B,AADA,EAAO,kBAAC,GAAD;GAAc,OAAM;GAAS,SAAQ;GAAM,OAAM;GAAiB,CAAA,CAAC,EAC1E,OAAO,EAAO,UAAU,eAAe,CAAC,CAAC,mBAAmB;GAC5D;EACF"}
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../test-Cr_l59hN.js";
1
+ import { r as e } from "../../test-Pa9Lwbsq.js";
2
2
  import { t } from "../../OverlayCloseButton-rttFbAM_.js";
3
3
  import { t as n } from "../../Container-BLjtYDqq.js";
4
4
  import "../../storyComponents/Container/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"OverlayCloseButton.stories.js","names":[],"sources":["../../../src/components/OverlayCloseButton/OverlayCloseButton.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { OverlayCloseButtonProps } from './OverlayCloseButton';\n\nimport { OverlayCloseButton } from './OverlayCloseButton';\n\nimport { Container } from 'storyComponents/Container/';\n\nconst codeString = '<OverlayCloseButton aria-label={aria-label} onClick={onClickFunction} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/OverlayCloseButton',\n component: OverlayCloseButton,\n argTypes: {\n paddedModal: {\n control: 'boolean',\n },\n 'aria-label': {\n control: 'text',\n },\n },\n parameters: {\n inspectComponent: OverlayCloseButton,\n codeString: codeString,\n },\n} as Meta<OverlayCloseButtonProps>;\n\nconst Template: StoryFn<OverlayCloseButtonProps> = (args) => {\n return (\n <Container size=\"small\" padded={false}>\n <OverlayCloseButton {...args} />\n </Container>\n );\n};\n\nexport const OverlayCloseButtonExample = Template.bind({});\nOverlayCloseButtonExample.args = {\n paddedModal: false,\n 'aria-label': 'Close',\n onClick: fn(),\n};\n"],"mappings":";;;;;AAYA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,aAAa,EACX,SAAS,WACV;EACD,cAAc,EACZ,SAAS,QACV;EACF;CACD,YAAY;EACV,kBAAkB;EACN,YAhBG;EAiBhB;CACF,EAUY,MARuC,MAEhD,kBAAC,GAAD;CAAW,MAAK;CAAQ,QAAQ;WAC9B,kBAAC,GAAD,EAAoB,GAAI,GAAQ,CAAA;CACtB,CAAA,EAIkC,KAAK,EAAE,CAAC;AAC1D,EAA0B,OAAO;CAC/B,aAAa;CACb,cAAc;CACd,SAAS,GAAI;CACd"}
1
+ {"version":3,"file":"OverlayCloseButton.stories.js","names":[],"sources":["../../../src/components/OverlayCloseButton/OverlayCloseButton.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { OverlayCloseButtonProps } from './OverlayCloseButton';\n\nimport { OverlayCloseButton } from './OverlayCloseButton';\n\nimport { Container } from 'storyComponents/Container/';\n\nconst codeString = '<OverlayCloseButton aria-label={aria-label} onClick={onClickFunction} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/OverlayCloseButton',\n component: OverlayCloseButton,\n argTypes: {\n paddedModal: {\n control: 'boolean',\n },\n 'aria-label': {\n control: 'text',\n },\n },\n parameters: {\n inspectComponent: OverlayCloseButton,\n codeString: codeString,\n },\n} as Meta<OverlayCloseButtonProps>;\n\nconst Template: StoryFn<OverlayCloseButtonProps> = (args) => {\n return (\n <Container size=\"small\" padded={false}>\n <OverlayCloseButton {...args} />\n </Container>\n );\n};\n\nexport const OverlayCloseButtonExample = Template.bind({});\nOverlayCloseButtonExample.args = {\n paddedModal: false,\n 'aria-label': 'Close',\n onClick: fn(),\n};\n"],"mappings":";;;;;AAYA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,aAAa,EACX,SAAS,WACV;EACD,cAAc,EACZ,SAAS,QACV;EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAUY,MARuC,MAEhD,kBAAC,GAAD;CAAW,MAAK;CAAQ,QAAQ;WAC9B,kBAAC,GAAD,EAAoB,GAAI,GAAQ,CAAA;CACtB,CAAA,EAIkC,KAAK,EAAE,CAAC;AAC1D,EAA0B,OAAO;CAC/B,aAAa;CACb,cAAc;CACd,SAAS,GAAI;CACd"}
@@ -1 +1 @@
1
- {"version":3,"file":"OverlayStepBar.stories.js","names":[],"sources":["../../../src/components/OverlayStepBar/OverlayStepBar.stories.tsx"],"sourcesContent":["import { useState } from 'react';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { OverlayStepBarProps } from './OverlayStepBar';\n\nimport { OverlayStepBar } from './OverlayStepBar';\n\nconst codeString =\n '<OverlayStepBar stepLabels={[string]} activeStep={number} disabledCountPrefix={[numbers]} onStepClick={(step) => void}/>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/OverlayStepBar',\n component: OverlayStepBar,\n argTypes: {\n activeStep: { control: 'number' },\n stepLabels: { control: 'object' },\n disabledCountPrefix: {\n table: {\n disable: true,\n },\n },\n onStepClick: { action: 'stepClicked' },\n },\n parameters: {\n inspectComponent: OverlayStepBar,\n codeString: codeString,\n },\n} as Meta<OverlayStepBarProps>;\n\nconst Template: StoryFn<OverlayStepBarProps> = (args) => {\n const [activeStep, setActiveStep] = useState(args.activeStep || 1);\n\n return (\n <OverlayStepBar\n {...args}\n activeStep={activeStep}\n onStepClick={(step) => {\n setActiveStep(step);\n args.onStepClick?.(step);\n }}\n />\n );\n};\n\nconst defaultArgs: Partial<OverlayStepBarProps> = {\n stepLabels: ['Basic Details', 'Lecturers', 'Period Planning', 'Assessment', 'Miscellaneous', 'Overview'],\n};\n\nexport const OverlayStepBarExample = Template.bind({});\nOverlayStepBarExample.args = {\n ...defaultArgs,\n activeStep: 2,\n};\n\nexport const OverlayStepBarHidePrifix = Template.bind({});\nOverlayStepBarHidePrifix.args = {\n ...defaultArgs,\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n disabledCountPrefix: [1, 6],\n activeStep: 2,\n};\n"],"mappings":";;;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,YAAY,EAAE,SAAS,UAAU;EACjC,YAAY,EAAE,SAAS,UAAU;EACjC,qBAAqB,EACnB,OAAO,EACL,SAAS,IACV,EACF;EACD,aAAa,EAAE,QAAQ,eAAe;EACvC;CACD,YAAY;EACV,kBAAkB;EACN,YAlBd;EAmBC;CACF,EAEK,KAA0C,MAAS;CACvD,IAAM,CAAC,GAAY,KAAiB,EAAS,EAAK,cAAc,EAAE;AAElE,QACE,kBAAC,GAAD;EACE,GAAI;EACQ;EACZ,cAAc,MAAS;AAErB,GADA,EAAc,EAAK,EACnB,EAAK,cAAc,EAAK;;EAE1B,CAAA;GAIA,IAA4C,EAChD,YAAY;CAAC;CAAiB;CAAa;CAAmB;CAAc;CAAiB;CAAW,EACzG,EAEY,IAAwB,EAAS,KAAK,EAAE,CAAC;AACtD,EAAsB,OAAO;CAC3B,GAAG;CACH,YAAY;CACb;AAED,IAAa,IAA2B,EAAS,KAAK,EAAE,CAAC;AACzD,EAAyB,OAAO;CAC9B,GAAG;CAEH,qBAAqB,CAAC,GAAG,EAAE;CAC3B,YAAY;CACb"}
1
+ {"version":3,"file":"OverlayStepBar.stories.js","names":[],"sources":["../../../src/components/OverlayStepBar/OverlayStepBar.stories.tsx"],"sourcesContent":["import { useState } from 'react';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { OverlayStepBarProps } from './OverlayStepBar';\n\nimport { OverlayStepBar } from './OverlayStepBar';\n\nconst codeString =\n '<OverlayStepBar stepLabels={[string]} activeStep={number} disabledCountPrefix={[numbers]} onStepClick={(step) => void}/>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/OverlayStepBar',\n component: OverlayStepBar,\n argTypes: {\n activeStep: { control: 'number' },\n stepLabels: { control: 'object' },\n disabledCountPrefix: {\n table: {\n disable: true,\n },\n },\n onStepClick: { action: 'stepClicked' },\n },\n parameters: {\n inspectComponent: OverlayStepBar,\n codeString: codeString,\n },\n} as Meta<OverlayStepBarProps>;\n\nconst Template: StoryFn<OverlayStepBarProps> = (args) => {\n const [activeStep, setActiveStep] = useState(args.activeStep || 1);\n\n return (\n <OverlayStepBar\n {...args}\n activeStep={activeStep}\n onStepClick={(step) => {\n setActiveStep(step);\n args.onStepClick?.(step);\n }}\n />\n );\n};\n\nconst defaultArgs: Partial<OverlayStepBarProps> = {\n stepLabels: ['Basic Details', 'Lecturers', 'Period Planning', 'Assessment', 'Miscellaneous', 'Overview'],\n};\n\nexport const OverlayStepBarExample = Template.bind({});\nOverlayStepBarExample.args = {\n ...defaultArgs,\n activeStep: 2,\n};\n\nexport const OverlayStepBarHidePrifix = Template.bind({});\nOverlayStepBarHidePrifix.args = {\n ...defaultArgs,\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n disabledCountPrefix: [1, 6],\n activeStep: 2,\n};\n"],"mappings":";;;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,YAAY,EAAE,SAAS,UAAU;EACjC,YAAY,EAAE,SAAS,UAAU;EACjC,qBAAqB,EACnB,OAAO,EACL,SAAS,IACV,EACF;EACD,aAAa,EAAE,QAAQ,eAAe;EACvC;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,KAA0C,MAAS;CACvD,IAAM,CAAC,GAAY,KAAiB,EAAS,EAAK,cAAc,EAAE;CAElE,OACE,kBAAC,GAAD;EACE,GAAI;EACQ;EACZ,cAAc,MAAS;GAErB,AADA,EAAc,EAAK,EACnB,EAAK,cAAc,EAAK;;EAE1B,CAAA;GAIA,IAA4C,EAChD,YAAY;CAAC;CAAiB;CAAa;CAAmB;CAAc;CAAiB;CAAW,EACzG,EAEY,IAAwB,EAAS,KAAK,EAAE,CAAC;AACtD,EAAsB,OAAO;CAC3B,GAAG;CACH,YAAY;CACb;AAED,IAAa,IAA2B,EAAS,KAAK,EAAE,CAAC;AACzD,EAAyB,OAAO;CAC9B,GAAG;CAEH,qBAAqB,CAAC,GAAG,EAAE;CAC3B,YAAY;CACb"}
@@ -7,7 +7,7 @@ import { t as a } from "../../PageOverlay-S4xsqJha.js";
7
7
  import o, { useCallback as s, useEffect as c, useReducer as l, useRef as u, useState as d } from "react";
8
8
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
9
9
  import { OverlayProvider as m } from "@react-aria/overlays";
10
- //#region node_modules/@react-stately/utils/dist/useControlledState.mjs
10
+ //#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
11
11
  var h = typeof document < "u" ? o.useInsertionEffect ?? o.useLayoutEffect : () => {};
12
12
  function g(e, t, n) {
13
13
  let [r, i] = d(e || t), a = u(r), o = u(e !== void 0), f = e !== void 0;
@@ -26,7 +26,7 @@ function g(e, t, n) {
26
26
  }, [n])];
27
27
  }
28
28
  //#endregion
29
- //#region node_modules/@react-stately/overlays/dist/useOverlayTriggerState.mjs
29
+ //#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
30
30
  function _(e) {
31
31
  let [t, n] = g(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
32
32
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"PageOverlay.stories.js","names":["$3whtM$react","$3whtM$useState","$3whtM$useRef","$3whtM$useEffect","$3whtM$useReducer","$3whtM$useCallback","$hnMvi$useControlledState","$hnMvi$useCallback"],"sources":["../../../node_modules/@react-stately/utils/dist/useControlledState.mjs","../../../node_modules/@react-stately/overlays/dist/useOverlayTriggerState.mjs","../../../src/components/PageOverlay/PageOverlay.stories.tsx"],"sourcesContent":["import $3whtM$react, {useState as $3whtM$useState, useRef as $3whtM$useRef, useEffect as $3whtM$useEffect, useReducer as $3whtM$useReducer, useCallback as $3whtM$useCallback} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nvar $458b0a5536c1a7cf$var$_React_useInsertionEffect;\n// Use the earliest effect possible to reset the ref below.\nconst $458b0a5536c1a7cf$var$useEarlyEffect = typeof document !== 'undefined' ? ($458b0a5536c1a7cf$var$_React_useInsertionEffect = (0, $3whtM$react)['useInsertionEffect']) !== null && $458b0a5536c1a7cf$var$_React_useInsertionEffect !== void 0 ? $458b0a5536c1a7cf$var$_React_useInsertionEffect : (0, $3whtM$react).useLayoutEffect : ()=>{};\nfunction $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {\n // Store the value in both state and a ref. The state value will only be used when uncontrolled.\n // The ref is used to track the most current value, which is passed to the function setState callback.\n let [stateValue, setStateValue] = (0, $3whtM$useState)(value || defaultValue);\n let valueRef = (0, $3whtM$useRef)(stateValue);\n let isControlledRef = (0, $3whtM$useRef)(value !== undefined);\n let isControlled = value !== undefined;\n (0, $3whtM$useEffect)(()=>{\n let wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled && process.env.NODE_ENV !== 'production') console.warn(`WARN: A component changed from ${wasControlled ? 'controlled' : 'uncontrolled'} to ${isControlled ? 'controlled' : 'uncontrolled'}.`);\n isControlledRef.current = isControlled;\n }, [\n isControlled\n ]);\n // After each render, update the ref to the current value.\n // This ensures that the setState callback argument is reset.\n // Note: the effect should not have any dependencies so that controlled values always reset.\n let currentValue = isControlled ? value : stateValue;\n $458b0a5536c1a7cf$var$useEarlyEffect(()=>{\n valueRef.current = currentValue;\n });\n let [, forceUpdate] = (0, $3whtM$useReducer)(()=>({}), {});\n let setValue = (0, $3whtM$useCallback)((value, ...args)=>{\n // @ts-ignore - TS doesn't know that T cannot be a function.\n let newValue = typeof value === 'function' ? value(valueRef.current) : value;\n if (!Object.is(valueRef.current, newValue)) {\n // Update the ref so that the next setState callback has the most recent value.\n valueRef.current = newValue;\n setStateValue(newValue);\n // Always trigger a re-render, even when controlled, so that the layout effect above runs to reset the value.\n forceUpdate();\n // Trigger onChange. Note that if setState is called multiple times in a single event,\n // onChange will be called for each one instead of only once.\n onChange === null || onChange === void 0 ? void 0 : onChange(newValue, ...args);\n }\n }, [\n onChange\n ]);\n return [\n currentValue,\n setValue\n ];\n}\n\n\nexport {$458b0a5536c1a7cf$export$40bfa8c7b0832715 as useControlledState};\n//# sourceMappingURL=useControlledState.module.js.map\n","import {useCallback as $hnMvi$useCallback} from \"react\";\nimport {useControlledState as $hnMvi$useControlledState} from \"@react-stately/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $fc909762b330b746$export$61c6a8c84e605fb6(props) {\n let [isOpen, setOpen] = (0, $hnMvi$useControlledState)(props.isOpen, props.defaultOpen || false, props.onOpenChange);\n const open = (0, $hnMvi$useCallback)(()=>{\n setOpen(true);\n }, [\n setOpen\n ]);\n const close = (0, $hnMvi$useCallback)(()=>{\n setOpen(false);\n }, [\n setOpen\n ]);\n const toggle = (0, $hnMvi$useCallback)(()=>{\n setOpen(!isOpen);\n }, [\n setOpen,\n isOpen\n ]);\n return {\n isOpen: isOpen,\n setOpen: setOpen,\n open: open,\n close: close,\n toggle: toggle\n };\n}\n\n\nexport {$fc909762b330b746$export$61c6a8c84e605fb6 as useOverlayTriggerState};\n//# sourceMappingURL=useOverlayTriggerState.module.js.map\n","import { OverlayProvider } from '@react-aria/overlays';\nimport { useOverlayTriggerState } from '@react-stately/overlays';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { PageOverlayProps } from './PageOverlay';\n\nimport { PageOverlay } from './PageOverlay';\n\nimport { Button } from 'components/Buttons';\nimport { ButtonGroup } from 'components/ButtonGroup';\nimport { InputField } from 'components/InputField';\nimport { GridRow } from 'components/GridRow';\nimport { Repeater } from 'components/Repeater';\n\nconst codeString = `\n <PageOverlay isOpen={isOpen} title={title} onClose={onCloseFunction}\n onSubmit={onSubmitFunction} buttons={buttons}> {children} </PageOverlay>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/PageOverlay',\n component: PageOverlay,\n argTypes: {\n isOpen: {\n table: {\n disable: true,\n },\n },\n noValidate: {\n control: 'boolean',\n },\n onSubmit: {\n table: {\n disable: true,\n },\n },\n onClose: {\n table: {\n disable: true,\n },\n },\n buttons: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: PageOverlay,\n codeString: codeString,\n },\n} as Meta<PageOverlayProps>;\n\nconst Template: StoryFn<PageOverlayProps> = (args: PageOverlayProps) => {\n const { open, close, isOpen } = useOverlayTriggerState({});\n return (\n <OverlayProvider>\n <Button variant=\"primary\" onClick={() => open()}>\n Open PageOverlay\n </Button>\n <PageOverlay\n {...args}\n isOpen={isOpen}\n buttons={\n <ButtonGroup reversed>\n <Button variant=\"primary\" onClick={() => close()}>\n OK\n </Button>\n <Button variant=\"secondary\" onClick={() => close()}>\n Cancel\n </Button>\n </ButtonGroup>\n }\n onClose={() => close()}\n >\n Your content goes here\n </PageOverlay>\n </OverlayProvider>\n );\n};\n\nconst defaultArgs: Partial<PageOverlayProps> = {\n title: 'Example Title',\n closeButtonAriaValueText: 'Close',\n noValidate: false,\n};\n\nexport const PageOverlayExample = Template.bind({});\nPageOverlayExample.args = {\n ...defaultArgs,\n};\n\nexport const Loading = Template.bind({});\nLoading.args = {\n ...defaultArgs,\n isLoading: true,\n spinnerAriaValueText: 'Loading',\n};\n\nconst LongContentTemplate: StoryFn<PageOverlayProps> = (args: PageOverlayProps) => {\n const { open, close, isOpen } = useOverlayTriggerState({});\n return (\n <OverlayProvider>\n <Button variant=\"primary\" onClick={() => open()}>\n Open PageOverlay\n </Button>\n <PageOverlay\n {...args}\n isOpen={isOpen}\n buttons={\n <GridRow>\n <GridRow.Column size=\"8\" mediumSize=\"9\" startPositon=\"2\" mediumStartPosition=\"3\">\n <ButtonGroup reversed>\n <Button variant=\"primary\" onClick={() => close()}>\n OK\n </Button>\n <Button variant=\"secondary\" onClick={() => close()}>\n Cancel\n </Button>\n </ButtonGroup>\n </GridRow.Column>\n </GridRow>\n }\n onClose={() => close()}\n >\n <GridRow marginTop=\"100\">\n <GridRow.Column size=\"8\" mediumSize=\"9\" startPositon=\"2\" mediumStartPosition=\"3\">\n <Repeater gap=\"100\">\n <div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ac dui et nibh eleifend ultricies a id\n nulla. Pellentesque eleifend sem a tellus dictum tempus. Proin non leo id risus placerat vulputate at ac\n erat. Ut fringilla imperdiet sollicitudin. Vestibulum ante ipsum primis in faucibus orci luctus et\n ultrices posuere cubilia curae; Gijs molestie ante ac magna ornare rhoncus non at quam. Mauris elementum\n luctus euismod. Pellentesque molestie malesuada purus, sed egestas lacus interdum sit amet. Morbi\n blandit lacus sit amet dictum pulvinar. Ut semper nunc ac enim imperdiet, non interdum diam gravida. In\n nunc tortor, mollis ac molestie dignissim, elementum sed quam. Suspendisse mollis venenatis Laura,\n pellentesque vestibulum elit consequat et. Aliquam fringilla tellus id libero tempus, sit amet suscipit\n augue tristique. Quisque cursus neque vel justo tristique, eget semper turpis elementum. Etiam venenatis\n mattis sapien ac mattis. Mauris vitae ultrices erat.\n </div>\n <div>\n Aliquam facilisis massa sed justo rhoncus bibendum. Sed lobortis urna orci, vitae porta leo placerat\n nec. Nam porta porttitor ornare. Suspendisse vehicula nunc nec egestas finibus. Aliquam non luctus\n risus. Pien ac diam tincidunt, bibendum sem eget, sollicitudin neque. Curabitur mauris risus, feugiat ac\n euismod non, vulputate ac justo. Curabitur pretium vehicula augue, blandit porta odio rutrum sit amet.\n Proin semper enim ut sapien tempor, a ornare ipsum faucibus.\n </div>\n <Button variant=\"primary\">Test Button</Button>\n <div>\n Cras bibendum arcu vitae nulla venenatis, at cursus urna dapibus. In hac habitasse platea dictumst. In\n porttitor at lectus nec rhoncus. In hac habitasse platea dictumst. Sed nec lectus neque. Aliquam erat\n volutpat. Morbi elit orci, ultricies a porttitor eget, eleifend eu metus. Maarten sollicitudin vitae\n massa a tempor. Aliquam dignissim metus id sem sollicitudin, eget lacinia nulla imperdiet. Nullam nec\n vestibulum eros, ut aliquam libero. Nulla hendrerit cursus ante id auctor. Curabitur condimentum\n malesuada maximus. Aliquam felis diam, gravida nec eleifend quis, placerat et orci.\n </div>\n <div>\n Nulla leo ligula, hendrerit vel egestas in, suscipit vitae erat. Vivamus interdum quam lacinia, egestas\n felis non, volutpat velit. Vestibulum orci diam, tincidunt ac mattis quis, ornare posuere magna. Aliquam\n erat volutpat. Maecenas facilisis lacus id ante efficitur, non dignissim lorem suscipit. Praesent at\n posuere velit. Nulla imperdiet, dui rhoncus volutpat feugiat, eros mauris cursus justo, a tincidunt\n ipsum ipsum eu nisl. Nulla eu dui Thierry. Aliquam vitae risus ut velit fringilla sodales nec id lacus.\n Interdum et malesuada fames ac ante ipsum primis in faucibus. Suspendisse ullamcorper purus quis nunc\n placerat, vel bibendum urna mollis. Nulla facilisi. Phasellus sed erat nec ex ullamcorper viverra.\n Phasellus convallis nibh sed dolor vulputate convallis. Phasellus ac posuere sapien, et elementum ipsum.\n </div>\n <InputField id=\"test-input\" placeholder=\"Test Input\" />\n <div>\n Sed malesuada ut nulla ut maximus. Class aptent taciti sociosqu ad litora torquent per conubia nostra,\n per inceptos himenaeos. Morten in libero rhoncus, maximus tortor sit amet, molestie ex. Mauris rhoncus\n et erat dapibus aliquam. Vestibulum placerat quam eget lorem tempor, vel venenatis lorem malesuada. Duis\n ut venenatis arcu. Cras lacinia mi ac dui sollicitudin semper sit amet eget nisl. Fusce viverra ex eget\n tortor molestie dictum. Cras ullamcorper faucibus nisi in congue. Sanne in tristique est. Praesent id\n rhoncus ligula, ut porta dui. Sed tincidunt, mi nec varius auctor, nunc diam venenatis felis, at\n facilisis tortor sem et magna. Aliquam erat volutpat.\n </div>\n <div>\n Proin ipsum ante, auctor id consectetur a, pulvinar id nibh. Phasellus molestie quam eu mi lacinia\n condimentum. Nullam fermentum id diam eu pharetra. Donec dictum sem vitae Jos scelerisque semper.\n Suspendisse sed facilisis orci. Sed ut scelerisque odio. Curabitur felis felis, finibus ac orci at,\n pellentesque efficitur risus. Sed et leo ac orci mollis tincidunt et pulvinar velit. Duis non nibh\n tincidunt, lacinia urna a, fringilla augue. Benjamin fermentum, massa a mollis cursus, ex dui tincidunt\n tellus, ut sollicitudin ex neque ac sapien.\n </div>\n <div>\n Nunc rhoncus imperdiet leo. Fusce interdum malesuada aliquet. Aenean porttitor, tortor et volutpat\n blandit, sapien diam scelerisque massa, ac facilisis metus turpis id quam. Donec ac elementum augue,\n congue pulvinar arcu. Interdum et malesuada fames ac ante ipsum primis in faucibus. Cras tempor\n convallis elit, id vehicula Robin semper nec. Sed ut ultrices nulla. Cras nec dolor justo. Proin mollis\n mauris ligula, luctus faucibus dolor ultrices ac. Nunc quis mauris fringilla, pellentesque massa nec,\n dictum metus. Praesent odio ligula, tincidunt ultrices maximus quis, accumsan ut odio. Nullam iaculis\n molestie nulla quis ultrices. Praesent quam velit, sagittis eget auctor a, dignissim ut massa. Donec\n mollis at lorem sit amet accumsan. Praesent nec nulla laoreet nunc pretium egestas. Malesuada Wim arcu\n pharetra, dictum nibh a, facilisis risus.\n </div>\n </Repeater>\n </GridRow.Column>\n </GridRow>\n </PageOverlay>\n </OverlayProvider>\n );\n};\n\nexport const WithLongComplexContent = LongContentTemplate.bind({});\nWithLongComplexContent.args = {\n ...defaultArgs,\n};\n"],"x_google_ignoreList":[0,1],"mappings":";;;;;;;;;;AAaA,IAEM,IAAuC,OAAO,WAAa,MAAqEA,EAAc,sBAAsJA,EAAc,wBAAsB;AAC9U,SAAS,EAA0C,GAAO,GAAc,GAAU;CAG9E,IAAI,CAAC,GAAY,KAAqBC,EAAiB,KAAS,EAAa,EACzE,IAAeC,EAAe,EAAW,EACzC,IAAsBA,EAAe,MAAU,KAAA,EAAU,EACzD,IAAe,MAAU,KAAA;AACzBC,SAAsB;EACtB,IAAI,IAAgB,EAAgB;AAEpC,EADI,MAAkB,KAAA,QAAA,IAAA,aAAyC,gBAAc,QAAQ,KAAK,kCAAkC,IAAgB,eAAe,eAAe,MAAM,IAAe,eAAe,eAAe,GAAG,EAChO,EAAgB,UAAU;IAC3B,CACC,EACH,CAAC;CAIF,IAAI,IAAe,IAAe,IAAQ;AAC1C,SAAyC;AACrC,IAAS,UAAU;GACrB;CACF,IAAI,GAAG,KAAmBC,SAAwB,EAAE,GAAG,EAAE,CAAC;AAiB1D,QAAO,CACH,GAjBeC,GAAqB,GAAO,GAAG,MAAO;EAErD,IAAI,IAAW,OAAO,KAAU,aAAa,EAAM,EAAS,QAAQ,GAAG;AACvE,EAAK,OAAO,GAAG,EAAS,SAAS,EAAS,KAEtC,EAAS,UAAU,GACnB,EAAc,EAAS,EAEvB,GAAa,EAGb,IAA6D,GAAU,GAAG,EAAK;IAEpF,CACC,EACH,CAAC,CAID;;;;AC1CL,SAAS,EAA0C,GAAO;CACtD,IAAI,CAAC,GAAQ,KAAeC,EAA2B,EAAM,QAAQ,EAAM,eAAe,IAAO,EAAM,aAAa;AAiBpH,QAAO;EACK;EACC;EACT,MAnBaC,QAAwB;AACrC,KAAQ,GAAK;KACd,CACC,EACH,CAAC;EAgBE,OAfcA,QAAwB;AACtC,KAAQ,GAAM;KACf,CACC,EACH,CAAC;EAYE,QAXeA,QAAwB;AACvC,KAAQ,CAAC,EAAO;KACjB,CACC,GACA,EACH,CAAC;EAOD;;ACnBL,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,QAAQ,EACN,OAAO,EACL,SAAS,IACV,EACF;EACD,YAAY,EACV,SAAS,WACV;EACD,UAAU,EACR,OAAO,EACL,SAAS,IACV,EACF;EACD,SAAS,EACP,OAAO,EACL,SAAS,IACV,EACF;EACD,SAAS,EACP,OAAO,EACL,SAAS,IACV,EACF;EACF;CACD,YAAY;EACV,kBAAkB;EACN,YApCG;EAqChB;CACF,EAEK,KAAuC,MAA2B;CACtE,IAAM,EAAE,SAAM,UAAO,cAAW,EAAuB,EAAE,CAAC;AAC1D,QACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;EAAQ,SAAQ;EAAU,eAAe,GAAM;YAAE;EAExC,CAAA,EACT,kBAAC,GAAD;EACE,GAAI;EACI;EACR,SACE,kBAAC,GAAD;GAAa,UAAA;aAAb,CACE,kBAAC,GAAD;IAAQ,SAAQ;IAAU,eAAe,GAAO;cAAE;IAEzC,CAAA,EACT,kBAAC,GAAD;IAAQ,SAAQ;IAAY,eAAe,GAAO;cAAE;IAE3C,CAAA,CACG;;EAEhB,eAAe,GAAO;YACvB;EAEa,CAAA,CACE,EAAA,CAAA;GAIhB,IAAyC;CAC7C,OAAO;CACP,0BAA0B;CAC1B,YAAY;CACb,EAEY,IAAqB,EAAS,KAAK,EAAE,CAAC;AACnD,EAAmB,OAAO,EACxB,GAAG,GACJ;AAED,IAAa,IAAU,EAAS,KAAK,EAAE,CAAC;AACxC,EAAQ,OAAO;CACb,GAAG;CACH,WAAW;CACX,sBAAsB;CACvB;AA0GD,IAAa,MAxG2C,MAA2B;CACjF,IAAM,EAAE,SAAM,UAAO,cAAW,EAAuB,EAAE,CAAC;AAC1D,QACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;EAAQ,SAAQ;EAAU,eAAe,GAAM;YAAE;EAExC,CAAA,EACT,kBAAC,GAAD;EACE,GAAI;EACI;EACR,SACE,kBAAC,GAAD,EAAA,UACE,kBAAC,EAAQ,QAAT;GAAgB,MAAK;GAAI,YAAW;GAAI,cAAa;GAAI,qBAAoB;aAC3E,kBAAC,GAAD;IAAa,UAAA;cAAb,CACE,kBAAC,GAAD;KAAQ,SAAQ;KAAU,eAAe,GAAO;eAAE;KAEzC,CAAA,EACT,kBAAC,GAAD;KAAQ,SAAQ;KAAY,eAAe,GAAO;eAAE;KAE3C,CAAA,CACG;;GACC,CAAA,EACT,CAAA;EAEZ,eAAe,GAAO;YAEtB,kBAAC,GAAD;GAAS,WAAU;aACjB,kBAAC,EAAQ,QAAT;IAAgB,MAAK;IAAI,YAAW;IAAI,cAAa;IAAI,qBAAoB;cAC3E,kBAAC,GAAD;KAAU,KAAI;eAAd;MACE,kBAAC,OAAD,EAAA,UAAK,88BAWC,CAAA;MACN,kBAAC,OAAD,EAAA,UAAK,wdAMC,CAAA;MACN,kBAAC,GAAD;OAAQ,SAAQ;iBAAU;OAAoB,CAAA;MAC9C,kBAAC,OAAD,EAAA,UAAK,glBAOC,CAAA;MACN,kBAAC,OAAD,EAAA,UAAK,uzBASC,CAAA;MACN,kBAAC,GAAD;OAAY,IAAG;OAAa,aAAY;OAAe,CAAA;MACvD,kBAAC,OAAD,EAAA,UAAK,+pBAQC,CAAA;MACN,kBAAC,OAAD,EAAA,UAAK,miBAOC,CAAA;MACN,kBAAC,OAAD,EAAA,UAAK,q1BAUC,CAAA;MACG;;IACI,CAAA;GACT,CAAA;EACE,CAAA,CACE,EAAA,CAAA;GAIoC,KAAK,EAAE,CAAC;AAClE,EAAuB,OAAO,EAC5B,GAAG,GACJ"}
1
+ {"version":3,"file":"PageOverlay.stories.js","names":["$1CcWn$react","$1CcWn$useState","$1CcWn$useRef","$1CcWn$useEffect","$1CcWn$useReducer","$1CcWn$useCallback","$kE40A$useCallback"],"sources":["../../../node_modules/react-stately/dist/private/utils/useControlledState.mjs","../../../node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs","../../../src/components/PageOverlay/PageOverlay.stories.tsx"],"sourcesContent":["import $1CcWn$react, {useState as $1CcWn$useState, useRef as $1CcWn$useRef, useEffect as $1CcWn$useEffect, useReducer as $1CcWn$useReducer, useCallback as $1CcWn$useCallback} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n// Use the earliest effect possible to reset the ref below.\nconst $3e6197669829fe11$var$useEarlyEffect = typeof document !== 'undefined' ? (0, $1CcWn$react)['useInsertionEffect'] ?? (0, $1CcWn$react).useLayoutEffect : ()=>{};\nfunction $3e6197669829fe11$export$40bfa8c7b0832715(value, defaultValue, onChange) {\n // Store the value in both state and a ref. The state value will only be used when uncontrolled.\n // The ref is used to track the most current value, which is passed to the function setState callback.\n let [stateValue, setStateValue] = (0, $1CcWn$useState)(value || defaultValue);\n let valueRef = (0, $1CcWn$useRef)(stateValue);\n let isControlledRef = (0, $1CcWn$useRef)(value !== undefined);\n let isControlled = value !== undefined;\n (0, $1CcWn$useEffect)(()=>{\n let wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled && process.env.NODE_ENV !== 'production') console.warn(`WARN: A component changed from ${wasControlled ? 'controlled' : 'uncontrolled'} to ${isControlled ? 'controlled' : 'uncontrolled'}.`);\n isControlledRef.current = isControlled;\n }, [\n isControlled\n ]);\n // After each render, update the ref to the current value.\n // This ensures that the setState callback argument is reset.\n // Note: the effect should not have any dependencies so that controlled values always reset.\n let currentValue = isControlled ? value : stateValue;\n $3e6197669829fe11$var$useEarlyEffect(()=>{\n valueRef.current = currentValue;\n });\n let [, forceUpdate] = (0, $1CcWn$useReducer)(()=>({}), {});\n let setValue = (0, $1CcWn$useCallback)((value, ...args)=>{\n // @ts-ignore - TS doesn't know that T cannot be a function.\n let newValue = typeof value === 'function' ? value(valueRef.current) : value;\n if (!Object.is(valueRef.current, newValue)) {\n // Update the ref so that the next setState callback has the most recent value.\n valueRef.current = newValue;\n setStateValue(newValue);\n // Always trigger a re-render, even when controlled, so that the layout effect above runs to reset the value.\n forceUpdate();\n // Trigger onChange. Note that if setState is called multiple times in a single event,\n // onChange will be called for each one instead of only once.\n onChange?.(newValue, ...args);\n }\n }, [\n onChange\n ]);\n return [\n currentValue,\n setValue\n ];\n}\n\n\nexport {$3e6197669829fe11$export$40bfa8c7b0832715 as useControlledState};\n//# sourceMappingURL=useControlledState.mjs.map\n","import {useControlledState as $3e6197669829fe11$export$40bfa8c7b0832715} from \"../utils/useControlledState.mjs\";\nimport {useCallback as $kE40A$useCallback} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props) {\n let [isOpen, setOpen] = (0, $3e6197669829fe11$export$40bfa8c7b0832715)(props.isOpen, props.defaultOpen || false, props.onOpenChange);\n const open = (0, $kE40A$useCallback)(()=>{\n setOpen(true);\n }, [\n setOpen\n ]);\n const close = (0, $kE40A$useCallback)(()=>{\n setOpen(false);\n }, [\n setOpen\n ]);\n const toggle = (0, $kE40A$useCallback)(()=>{\n setOpen(!isOpen);\n }, [\n setOpen,\n isOpen\n ]);\n return {\n isOpen: isOpen,\n setOpen: setOpen,\n open: open,\n close: close,\n toggle: toggle\n };\n}\n\n\nexport {$f11fb0bcf1b2687a$export$61c6a8c84e605fb6 as useOverlayTriggerState};\n//# sourceMappingURL=useOverlayTriggerState.mjs.map\n","import { OverlayProvider } from '@react-aria/overlays';\nimport { useOverlayTriggerState } from '@react-stately/overlays';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { PageOverlayProps } from './PageOverlay';\n\nimport { PageOverlay } from './PageOverlay';\n\nimport { Button } from 'components/Buttons';\nimport { ButtonGroup } from 'components/ButtonGroup';\nimport { InputField } from 'components/InputField';\nimport { GridRow } from 'components/GridRow';\nimport { Repeater } from 'components/Repeater';\n\nconst codeString = `\n <PageOverlay isOpen={isOpen} title={title} onClose={onCloseFunction}\n onSubmit={onSubmitFunction} buttons={buttons}> {children} </PageOverlay>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/PageOverlay',\n component: PageOverlay,\n argTypes: {\n isOpen: {\n table: {\n disable: true,\n },\n },\n noValidate: {\n control: 'boolean',\n },\n onSubmit: {\n table: {\n disable: true,\n },\n },\n onClose: {\n table: {\n disable: true,\n },\n },\n buttons: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: PageOverlay,\n codeString: codeString,\n },\n} as Meta<PageOverlayProps>;\n\nconst Template: StoryFn<PageOverlayProps> = (args: PageOverlayProps) => {\n const { open, close, isOpen } = useOverlayTriggerState({});\n return (\n <OverlayProvider>\n <Button variant=\"primary\" onClick={() => open()}>\n Open PageOverlay\n </Button>\n <PageOverlay\n {...args}\n isOpen={isOpen}\n buttons={\n <ButtonGroup reversed>\n <Button variant=\"primary\" onClick={() => close()}>\n OK\n </Button>\n <Button variant=\"secondary\" onClick={() => close()}>\n Cancel\n </Button>\n </ButtonGroup>\n }\n onClose={() => close()}\n >\n Your content goes here\n </PageOverlay>\n </OverlayProvider>\n );\n};\n\nconst defaultArgs: Partial<PageOverlayProps> = {\n title: 'Example Title',\n closeButtonAriaValueText: 'Close',\n noValidate: false,\n};\n\nexport const PageOverlayExample = Template.bind({});\nPageOverlayExample.args = {\n ...defaultArgs,\n};\n\nexport const Loading = Template.bind({});\nLoading.args = {\n ...defaultArgs,\n isLoading: true,\n spinnerAriaValueText: 'Loading',\n};\n\nconst LongContentTemplate: StoryFn<PageOverlayProps> = (args: PageOverlayProps) => {\n const { open, close, isOpen } = useOverlayTriggerState({});\n return (\n <OverlayProvider>\n <Button variant=\"primary\" onClick={() => open()}>\n Open PageOverlay\n </Button>\n <PageOverlay\n {...args}\n isOpen={isOpen}\n buttons={\n <GridRow>\n <GridRow.Column size=\"8\" mediumSize=\"9\" startPositon=\"2\" mediumStartPosition=\"3\">\n <ButtonGroup reversed>\n <Button variant=\"primary\" onClick={() => close()}>\n OK\n </Button>\n <Button variant=\"secondary\" onClick={() => close()}>\n Cancel\n </Button>\n </ButtonGroup>\n </GridRow.Column>\n </GridRow>\n }\n onClose={() => close()}\n >\n <GridRow marginTop=\"100\">\n <GridRow.Column size=\"8\" mediumSize=\"9\" startPositon=\"2\" mediumStartPosition=\"3\">\n <Repeater gap=\"100\">\n <div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ac dui et nibh eleifend ultricies a id\n nulla. Pellentesque eleifend sem a tellus dictum tempus. Proin non leo id risus placerat vulputate at ac\n erat. Ut fringilla imperdiet sollicitudin. Vestibulum ante ipsum primis in faucibus orci luctus et\n ultrices posuere cubilia curae; Gijs molestie ante ac magna ornare rhoncus non at quam. Mauris elementum\n luctus euismod. Pellentesque molestie malesuada purus, sed egestas lacus interdum sit amet. Morbi\n blandit lacus sit amet dictum pulvinar. Ut semper nunc ac enim imperdiet, non interdum diam gravida. In\n nunc tortor, mollis ac molestie dignissim, elementum sed quam. Suspendisse mollis venenatis Laura,\n pellentesque vestibulum elit consequat et. Aliquam fringilla tellus id libero tempus, sit amet suscipit\n augue tristique. Quisque cursus neque vel justo tristique, eget semper turpis elementum. Etiam venenatis\n mattis sapien ac mattis. Mauris vitae ultrices erat.\n </div>\n <div>\n Aliquam facilisis massa sed justo rhoncus bibendum. Sed lobortis urna orci, vitae porta leo placerat\n nec. Nam porta porttitor ornare. Suspendisse vehicula nunc nec egestas finibus. Aliquam non luctus\n risus. Pien ac diam tincidunt, bibendum sem eget, sollicitudin neque. Curabitur mauris risus, feugiat ac\n euismod non, vulputate ac justo. Curabitur pretium vehicula augue, blandit porta odio rutrum sit amet.\n Proin semper enim ut sapien tempor, a ornare ipsum faucibus.\n </div>\n <Button variant=\"primary\">Test Button</Button>\n <div>\n Cras bibendum arcu vitae nulla venenatis, at cursus urna dapibus. In hac habitasse platea dictumst. In\n porttitor at lectus nec rhoncus. In hac habitasse platea dictumst. Sed nec lectus neque. Aliquam erat\n volutpat. Morbi elit orci, ultricies a porttitor eget, eleifend eu metus. Maarten sollicitudin vitae\n massa a tempor. Aliquam dignissim metus id sem sollicitudin, eget lacinia nulla imperdiet. Nullam nec\n vestibulum eros, ut aliquam libero. Nulla hendrerit cursus ante id auctor. Curabitur condimentum\n malesuada maximus. Aliquam felis diam, gravida nec eleifend quis, placerat et orci.\n </div>\n <div>\n Nulla leo ligula, hendrerit vel egestas in, suscipit vitae erat. Vivamus interdum quam lacinia, egestas\n felis non, volutpat velit. Vestibulum orci diam, tincidunt ac mattis quis, ornare posuere magna. Aliquam\n erat volutpat. Maecenas facilisis lacus id ante efficitur, non dignissim lorem suscipit. Praesent at\n posuere velit. Nulla imperdiet, dui rhoncus volutpat feugiat, eros mauris cursus justo, a tincidunt\n ipsum ipsum eu nisl. Nulla eu dui Thierry. Aliquam vitae risus ut velit fringilla sodales nec id lacus.\n Interdum et malesuada fames ac ante ipsum primis in faucibus. Suspendisse ullamcorper purus quis nunc\n placerat, vel bibendum urna mollis. Nulla facilisi. Phasellus sed erat nec ex ullamcorper viverra.\n Phasellus convallis nibh sed dolor vulputate convallis. Phasellus ac posuere sapien, et elementum ipsum.\n </div>\n <InputField id=\"test-input\" placeholder=\"Test Input\" />\n <div>\n Sed malesuada ut nulla ut maximus. Class aptent taciti sociosqu ad litora torquent per conubia nostra,\n per inceptos himenaeos. Morten in libero rhoncus, maximus tortor sit amet, molestie ex. Mauris rhoncus\n et erat dapibus aliquam. Vestibulum placerat quam eget lorem tempor, vel venenatis lorem malesuada. Duis\n ut venenatis arcu. Cras lacinia mi ac dui sollicitudin semper sit amet eget nisl. Fusce viverra ex eget\n tortor molestie dictum. Cras ullamcorper faucibus nisi in congue. Sanne in tristique est. Praesent id\n rhoncus ligula, ut porta dui. Sed tincidunt, mi nec varius auctor, nunc diam venenatis felis, at\n facilisis tortor sem et magna. Aliquam erat volutpat.\n </div>\n <div>\n Proin ipsum ante, auctor id consectetur a, pulvinar id nibh. Phasellus molestie quam eu mi lacinia\n condimentum. Nullam fermentum id diam eu pharetra. Donec dictum sem vitae Jos scelerisque semper.\n Suspendisse sed facilisis orci. Sed ut scelerisque odio. Curabitur felis felis, finibus ac orci at,\n pellentesque efficitur risus. Sed et leo ac orci mollis tincidunt et pulvinar velit. Duis non nibh\n tincidunt, lacinia urna a, fringilla augue. Benjamin fermentum, massa a mollis cursus, ex dui tincidunt\n tellus, ut sollicitudin ex neque ac sapien.\n </div>\n <div>\n Nunc rhoncus imperdiet leo. Fusce interdum malesuada aliquet. Aenean porttitor, tortor et volutpat\n blandit, sapien diam scelerisque massa, ac facilisis metus turpis id quam. Donec ac elementum augue,\n congue pulvinar arcu. Interdum et malesuada fames ac ante ipsum primis in faucibus. Cras tempor\n convallis elit, id vehicula Robin semper nec. Sed ut ultrices nulla. Cras nec dolor justo. Proin mollis\n mauris ligula, luctus faucibus dolor ultrices ac. Nunc quis mauris fringilla, pellentesque massa nec,\n dictum metus. Praesent odio ligula, tincidunt ultrices maximus quis, accumsan ut odio. Nullam iaculis\n molestie nulla quis ultrices. Praesent quam velit, sagittis eget auctor a, dignissim ut massa. Donec\n mollis at lorem sit amet accumsan. Praesent nec nulla laoreet nunc pretium egestas. Malesuada Wim arcu\n pharetra, dictum nibh a, facilisis risus.\n </div>\n </Repeater>\n </GridRow.Column>\n </GridRow>\n </PageOverlay>\n </OverlayProvider>\n );\n};\n\nexport const WithLongComplexContent = LongContentTemplate.bind({});\nWithLongComplexContent.args = {\n ...defaultArgs,\n};\n"],"x_google_ignoreList":[0,1],"mappings":";;;;;;;;;;AAcA,IAAM,IAAuC,OAAO,WAAa,MAAkBA,EAAc,sBAA6BA,EAAc,wBAAsB;AAClK,SAAS,EAA0C,GAAO,GAAc,GAAU;CAG9E,IAAI,CAAC,GAAY,KAAqBC,EAAiB,KAAS,EAAa,EACzE,IAAeC,EAAe,EAAW,EACzC,IAAsBA,EAAe,MAAU,KAAA,EAAU,EACzD,IAAe,MAAU,KAAA;CAC7B,QAA0B;EACtB,IAAI,IAAgB,EAAgB;EAEpC,AADI,MAAkB,KAAA,QAAA,IAAA,aAAyC,gBAAc,QAAQ,KAAK,kCAAkC,IAAgB,eAAe,eAAe,MAAM,IAAe,eAAe,eAAe,GAAG,EAChO,EAAgB,UAAU;IAC3B,CACC,EACH,CAAC;CAIF,IAAI,IAAe,IAAe,IAAQ;CAC1C,QAAyC;EACrC,EAAS,UAAU;GACrB;CACF,IAAI,GAAG,KAAmBE,SAAwB,EAAE,GAAG,EAAE,CAAC;CAiB1D,OAAO,CACH,GAjBeC,GAAqB,GAAO,GAAG,MAAO;EAErD,IAAI,IAAW,OAAO,KAAU,aAAa,EAAM,EAAS,QAAQ,GAAG;EACvE,AAAK,OAAO,GAAG,EAAS,SAAS,EAAS,KAEtC,EAAS,UAAU,GACnB,EAAc,EAAS,EAEvB,GAAa,EAGb,IAAW,GAAU,GAAG,EAAK;IAElC,CACC,EACH,CAGW,CACX;;;;ACzCL,SAAS,EAA0C,GAAO;CACtD,IAAI,CAAC,GAAQ,KAAe,EAA2C,EAAM,QAAQ,EAAM,eAAe,IAAO,EAAM,aAAa;CAiBpI,OAAO;EACK;EACC;EACT,MAnBaC,QAAwB;GACrC,EAAQ,GAAK;KACd,CACC,EACH,CAea;EACV,OAfcA,QAAwB;GACtC,EAAQ,GAAM;KACf,CACC,EACH,CAWe;EACZ,QAXeA,QAAwB;GACvC,EAAQ,CAAC,EAAO;KACjB,CACC,GACA,EACH,CAMiB;EACjB;;ACnBL,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,QAAQ,EACN,OAAO,EACL,SAAS,IACV,EACF;EACD,YAAY,EACV,SAAS,WACV;EACD,UAAU,EACR,OAAO,EACL,SAAS,IACV,EACF;EACD,SAAS,EACP,OAAO,EACL,SAAS,IACV,EACF;EACD,SAAS,EACP,OAAO,EACL,SAAS,IACV,EACF;EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,KAAuC,MAA2B;CACtE,IAAM,EAAE,SAAM,UAAO,cAAW,EAAuB,EAAE,CAAC;CAC1D,OACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;EAAQ,SAAQ;EAAU,eAAe,GAAM;YAAE;EAExC,CAAA,EACT,kBAAC,GAAD;EACE,GAAI;EACI;EACR,SACE,kBAAC,GAAD;GAAa,UAAA;aAAb,CACE,kBAAC,GAAD;IAAQ,SAAQ;IAAU,eAAe,GAAO;cAAE;IAEzC,CAAA,EACT,kBAAC,GAAD;IAAQ,SAAQ;IAAY,eAAe,GAAO;cAAE;IAE3C,CAAA,CACG;;EAEhB,eAAe,GAAO;YACvB;EAEa,CAAA,CACE,EAAA,CAAA;GAIhB,IAAyC;CAC7C,OAAO;CACP,0BAA0B;CAC1B,YAAY;CACb,EAEY,IAAqB,EAAS,KAAK,EAAE,CAAC;AACnD,EAAmB,OAAO,EACxB,GAAG,GACJ;AAED,IAAa,IAAU,EAAS,KAAK,EAAE,CAAC;AACxC,EAAQ,OAAO;CACb,GAAG;CACH,WAAW;CACX,sBAAsB;CACvB;AA0GD,IAAa,MAxG2C,MAA2B;CACjF,IAAM,EAAE,SAAM,UAAO,cAAW,EAAuB,EAAE,CAAC;CAC1D,OACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;EAAQ,SAAQ;EAAU,eAAe,GAAM;YAAE;EAExC,CAAA,EACT,kBAAC,GAAD;EACE,GAAI;EACI;EACR,SACE,kBAAC,GAAD,EAAA,UACE,kBAAC,EAAQ,QAAT;GAAgB,MAAK;GAAI,YAAW;GAAI,cAAa;GAAI,qBAAoB;aAC3E,kBAAC,GAAD;IAAa,UAAA;cAAb,CACE,kBAAC,GAAD;KAAQ,SAAQ;KAAU,eAAe,GAAO;eAAE;KAEzC,CAAA,EACT,kBAAC,GAAD;KAAQ,SAAQ;KAAY,eAAe,GAAO;eAAE;KAE3C,CAAA,CACG;;GACC,CAAA,EACT,CAAA;EAEZ,eAAe,GAAO;YAEtB,kBAAC,GAAD;GAAS,WAAU;aACjB,kBAAC,EAAQ,QAAT;IAAgB,MAAK;IAAI,YAAW;IAAI,cAAa;IAAI,qBAAoB;cAC3E,kBAAC,GAAD;KAAU,KAAI;eAAd;MACE,kBAAC,OAAD,EAAA,UAAK,88BAWC,CAAA;MACN,kBAAC,OAAD,EAAA,UAAK,wdAMC,CAAA;MACN,kBAAC,GAAD;OAAQ,SAAQ;iBAAU;OAAoB,CAAA;MAC9C,kBAAC,OAAD,EAAA,UAAK,glBAOC,CAAA;MACN,kBAAC,OAAD,EAAA,UAAK,uzBASC,CAAA;MACN,kBAAC,GAAD;OAAY,IAAG;OAAa,aAAY;OAAe,CAAA;MACvD,kBAAC,OAAD,EAAA,UAAK,+pBAQC,CAAA;MACN,kBAAC,OAAD,EAAA,UAAK,miBAOC,CAAA;MACN,kBAAC,OAAD,EAAA,UAAK,q1BAUC,CAAA;MACG;;IACI,CAAA;GACT,CAAA;EACE,CAAA,CACE,EAAA,CAAA;GAIoC,KAAK,EAAE,CAAC;AAClE,EAAuB,OAAO,EAC5B,GAAG,GACJ"}
@@ -1,2 +1,2 @@
1
- import { d as e } from "../../components-DAwjkky5.js";
1
+ import { d as e } from "../../components-BzxAULjf.js";
2
2
  export { e as PeriodSelector };
@@ -1,5 +1,5 @@
1
- import { r as e } from "../../test-Cr_l59hN.js";
2
- import { d as t } from "../../components-DAwjkky5.js";
1
+ import { r as e } from "../../test-Pa9Lwbsq.js";
2
+ import { d as t } from "../../components-BzxAULjf.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  var r = {
5
5
  title: "Organisms/PeriodSelector",
@@ -1 +1 @@
1
- {"version":3,"file":"PeriodSelector.stories.js","names":[],"sources":["../../../src/components/PeriodSelector/PeriodSelector.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { PeriodSelectorProps } from './PeriodSelector';\n\nimport { PeriodSelector } from './PeriodSelector';\n\nconst codeString =\n '<PeriodSelector maxPeriods={} defaultValues={} label={} labelPosition={} required={} onChange={} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/PeriodSelector',\n component: PeriodSelector,\n parameters: {\n inspectComponent: PeriodSelector,\n codeString: codeString,\n },\n} as Meta<PeriodSelectorProps>;\n\nconst Template: StoryFn<PeriodSelectorProps> = (args) => <PeriodSelector {...args} />;\n\nexport const PeriodSelectorExample = Template.bind({});\n\nPeriodSelectorExample.args = {\n maxPeriods: 7,\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n defaultValues: [1, 5, 6],\n label: 'Periode',\n labelPosition: 'top',\n required: true,\n onChange: fn(),\n};\n"],"mappings":";;;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN,YARd;EASC;CACF,EAIY,MAFmC,MAAS,kBAAC,GAAD,EAAgB,GAAI,GAAQ,CAAA,EAEvC,KAAK,EAAE,CAAC;AAEtD,EAAsB,OAAO;CAC3B,YAAY;CAEZ,eAAe;EAAC;EAAG;EAAG;EAAE;CACxB,OAAO;CACP,eAAe;CACf,UAAU;CACV,UAAU,GAAI;CACf"}
1
+ {"version":3,"file":"PeriodSelector.stories.js","names":[],"sources":["../../../src/components/PeriodSelector/PeriodSelector.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { PeriodSelectorProps } from './PeriodSelector';\n\nimport { PeriodSelector } from './PeriodSelector';\n\nconst codeString =\n '<PeriodSelector maxPeriods={} defaultValues={} label={} labelPosition={} required={} onChange={} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/PeriodSelector',\n component: PeriodSelector,\n parameters: {\n inspectComponent: PeriodSelector,\n codeString: codeString,\n },\n} as Meta<PeriodSelectorProps>;\n\nconst Template: StoryFn<PeriodSelectorProps> = (args) => <PeriodSelector {...args} />;\n\nexport const PeriodSelectorExample = Template.bind({});\n\nPeriodSelectorExample.args = {\n maxPeriods: 7,\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n defaultValues: [1, 5, 6],\n label: 'Periode',\n labelPosition: 'top',\n required: true,\n onChange: fn(),\n};\n"],"mappings":";;;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAIY,MAFmC,MAAS,kBAAC,GAAD,EAAgB,GAAI,GAAQ,CAAA,EAEvC,KAAK,EAAE,CAAC;AAEtD,EAAsB,OAAO;CAC3B,YAAY;CAEZ,eAAe;EAAC;EAAG;EAAG;EAAE;CACxB,OAAO;CACP,eAAe;CACf,UAAU;CACV,UAAU,GAAI;CACf"}
@@ -1,2 +1,2 @@
1
- import { d as e } from "../../components-DAwjkky5.js";
1
+ import { d as e } from "../../components-BzxAULjf.js";
2
2
  export { e as PeriodSelector };
@@ -1 +1 @@
1
- {"version":3,"file":"ProgrammeCard.stories.js","names":[],"sources":["../../../src/components/ProgrammeCard/ProgrammeCard.stories.tsx"],"sourcesContent":["import { BrowserRouter } from 'react-router';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { ProgrammeCardProps } from './ProgrammeCard';\n\nimport { ProgrammeCard } from './ProgrammeCard';\n\nimport { Container } from 'storyComponents/Container';\nimport { Icon, Repeater } from 'components';\n\nconst codeString = '<ProgrammeCard key={key} header={header} details={details} href={href} isNew={boolean} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/ProgrammeCard',\n component: ProgrammeCard,\n parameters: {\n inspectComponent: ProgrammeCard,\n codeString: codeString,\n },\n} as Meta<ProgrammeCardProps>;\n\nconst Template: StoryFn<ProgrammeCardProps> = (args) => (\n <BrowserRouter>\n <Container size=\"large\">\n <ProgrammeCard {...args} />\n </Container>\n </BrowserRouter>\n);\n\nexport const ProgrammeCardExample = Template.bind({});\nProgrammeCardExample.args = {\n header: 'This is our header',\n details: 'This is our details',\n href: '/',\n};\n\nexport const WithComplexContent = Template.bind({});\nWithComplexContent.args = {\n header: (\n <Repeater flexDirection=\"row\" gap=\"150\">\n <Icon name=\"Envelope\" size={32} />\n <h2 style={{ margin: 0 }}>This is my header</h2>\n </Repeater>\n ),\n details: (\n <Repeater flexDirection=\"row\" gap=\"150\">\n <Repeater flexDirection=\"row\">\n <Icon name=\"FaceFrown\" />\n Details 1\n </Repeater>\n <Repeater flexDirection=\"row\">\n <Icon name=\"Heart\" />\n Details 2\n </Repeater>\n <Repeater flexDirection=\"row\">\n <Icon name=\"Sparkles\" />\n Details 3\n </Repeater>\n </Repeater>\n ),\n href: '/',\n};\n\nconst MultiProgrammeCardsTemplate: StoryFn<ProgrammeCardProps> = (args) => (\n <BrowserRouter>\n <Container size=\"large\">\n <Repeater>\n <ProgrammeCard {...args} />\n <ProgrammeCard {...args} />\n <ProgrammeCard {...args} />\n </Repeater>\n </Container>\n </BrowserRouter>\n);\n\nexport const MultiProgrammeCards = MultiProgrammeCardsTemplate.bind({});\nMultiProgrammeCards.args = {\n header: 'This is my header',\n details: 'This is my details',\n href: '/',\n};\n"],"mappings":";;;;;;;AAaA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN,YARG;EAShB;CACF,EAEK,KAAyC,MAC7C,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;CAAW,MAAK;WACd,kBAAC,GAAD,EAAe,GAAI,GAAQ,CAAA;CACjB,CAAA,EACE,CAAA,EAGL,IAAuB,EAAS,KAAK,EAAE,CAAC;AACrD,EAAqB,OAAO;CAC1B,QAAQ;CACR,SAAS;CACT,MAAM;CACP;AAED,IAAa,IAAqB,EAAS,KAAK,EAAE,CAAC;AACnD,EAAmB,OAAO;CACxB,QACE,kBAAC,GAAD;EAAU,eAAc;EAAM,KAAI;YAAlC,CACE,kBAAC,GAAD;GAAM,MAAK;GAAW,MAAM;GAAM,CAAA,EAClC,kBAAC,MAAD;GAAI,OAAO,EAAE,QAAQ,GAAG;aAAE;GAAsB,CAAA,CACvC;;CAEb,SACE,kBAAC,GAAD;EAAU,eAAc;EAAM,KAAI;YAAlC;GACE,kBAAC,GAAD;IAAU,eAAc;cAAxB,CACE,kBAAC,GAAD,EAAM,MAAK,aAAc,CAAA,EAAA,YAEhB;;GACX,kBAAC,GAAD;IAAU,eAAc;cAAxB,CACE,kBAAC,GAAD,EAAM,MAAK,SAAU,CAAA,EAAA,YAEZ;;GACX,kBAAC,GAAD;IAAU,eAAc;cAAxB,CACE,kBAAC,GAAD,EAAM,MAAK,YAAa,CAAA,EAAA,YAEf;;GACF;;CAEb,MAAM;CACP;AAcD,IAAa,MAZqD,MAChE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;CAAW,MAAK;WACd,kBAAC,GAAD,EAAA,UAAA;EACE,kBAAC,GAAD,EAAe,GAAI,GAAQ,CAAA;EAC3B,kBAAC,GAAD,EAAe,GAAI,GAAQ,CAAA;EAC3B,kBAAC,GAAD,EAAe,GAAI,GAAQ,CAAA;EAClB,EAAA,CAAA;CACD,CAAA,EACE,CAAA,EAG6C,KAAK,EAAE,CAAC;AACvE,EAAoB,OAAO;CACzB,QAAQ;CACR,SAAS;CACT,MAAM;CACP"}
1
+ {"version":3,"file":"ProgrammeCard.stories.js","names":[],"sources":["../../../src/components/ProgrammeCard/ProgrammeCard.stories.tsx"],"sourcesContent":["import { BrowserRouter } from 'react-router';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { ProgrammeCardProps } from './ProgrammeCard';\n\nimport { ProgrammeCard } from './ProgrammeCard';\n\nimport { Container } from 'storyComponents/Container';\nimport { Icon, Repeater } from 'components';\n\nconst codeString = '<ProgrammeCard key={key} header={header} details={details} href={href} isNew={boolean} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/ProgrammeCard',\n component: ProgrammeCard,\n parameters: {\n inspectComponent: ProgrammeCard,\n codeString: codeString,\n },\n} as Meta<ProgrammeCardProps>;\n\nconst Template: StoryFn<ProgrammeCardProps> = (args) => (\n <BrowserRouter>\n <Container size=\"large\">\n <ProgrammeCard {...args} />\n </Container>\n </BrowserRouter>\n);\n\nexport const ProgrammeCardExample = Template.bind({});\nProgrammeCardExample.args = {\n header: 'This is our header',\n details: 'This is our details',\n href: '/',\n};\n\nexport const WithComplexContent = Template.bind({});\nWithComplexContent.args = {\n header: (\n <Repeater flexDirection=\"row\" gap=\"150\">\n <Icon name=\"Envelope\" size={32} />\n <h2 style={{ margin: 0 }}>This is my header</h2>\n </Repeater>\n ),\n details: (\n <Repeater flexDirection=\"row\" gap=\"150\">\n <Repeater flexDirection=\"row\">\n <Icon name=\"FaceFrown\" />\n Details 1\n </Repeater>\n <Repeater flexDirection=\"row\">\n <Icon name=\"Heart\" />\n Details 2\n </Repeater>\n <Repeater flexDirection=\"row\">\n <Icon name=\"Sparkles\" />\n Details 3\n </Repeater>\n </Repeater>\n ),\n href: '/',\n};\n\nconst MultiProgrammeCardsTemplate: StoryFn<ProgrammeCardProps> = (args) => (\n <BrowserRouter>\n <Container size=\"large\">\n <Repeater>\n <ProgrammeCard {...args} />\n <ProgrammeCard {...args} />\n <ProgrammeCard {...args} />\n </Repeater>\n </Container>\n </BrowserRouter>\n);\n\nexport const MultiProgrammeCards = MultiProgrammeCardsTemplate.bind({});\nMultiProgrammeCards.args = {\n header: 'This is my header',\n details: 'This is my details',\n href: '/',\n};\n"],"mappings":";;;;;;;AAaA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,KAAyC,MAC7C,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;CAAW,MAAK;WACd,kBAAC,GAAD,EAAe,GAAI,GAAQ,CAAA;CACjB,CAAA,EACE,CAAA,EAGL,IAAuB,EAAS,KAAK,EAAE,CAAC;AACrD,EAAqB,OAAO;CAC1B,QAAQ;CACR,SAAS;CACT,MAAM;CACP;AAED,IAAa,IAAqB,EAAS,KAAK,EAAE,CAAC;AACnD,EAAmB,OAAO;CACxB,QACE,kBAAC,GAAD;EAAU,eAAc;EAAM,KAAI;YAAlC,CACE,kBAAC,GAAD;GAAM,MAAK;GAAW,MAAM;GAAM,CAAA,EAClC,kBAAC,MAAD;GAAI,OAAO,EAAE,QAAQ,GAAG;aAAE;GAAsB,CAAA,CACvC;;CAEb,SACE,kBAAC,GAAD;EAAU,eAAc;EAAM,KAAI;YAAlC;GACE,kBAAC,GAAD;IAAU,eAAc;cAAxB,CACE,kBAAC,GAAD,EAAM,MAAK,aAAc,CAAA,EAAA,YAEhB;;GACX,kBAAC,GAAD;IAAU,eAAc;cAAxB,CACE,kBAAC,GAAD,EAAM,MAAK,SAAU,CAAA,EAAA,YAEZ;;GACX,kBAAC,GAAD;IAAU,eAAc;cAAxB,CACE,kBAAC,GAAD,EAAM,MAAK,YAAa,CAAA,EAAA,YAEf;;GACF;;CAEb,MAAM;CACP;AAcD,IAAa,MAZqD,MAChE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;CAAW,MAAK;WACd,kBAAC,GAAD,EAAA,UAAA;EACE,kBAAC,GAAD,EAAe,GAAI,GAAQ,CAAA;EAC3B,kBAAC,GAAD,EAAe,GAAI,GAAQ,CAAA;EAC3B,kBAAC,GAAD,EAAe,GAAI,GAAQ,CAAA;EAClB,EAAA,CAAA;CACD,CAAA,EACE,CAAA,EAG6C,KAAK,EAAE,CAAC;AACvE,EAAoB,OAAO;CACzB,QAAQ;CACR,SAAS;CACT,MAAM;CACP"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButton.stories.js","names":[],"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"],"mappings":";;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,IAAI,EACF,SAAS,QACV;EACD,OAAO,EACL,SAAS,QACV;EACD,aAAa,EACX,SAAS,QACV;EACD,UAAU,EACR,SAAS,WACV;EACD,KAAK,EACH,SAAS,SACV;EACF;CACD,YAAY;EACV,kBAAkB;EACN,YA3BG;EA4BhB;CACF,EAQY,MANgC,MAC3C,kBAAC,YAAD;CAAU,WAAU;WAClB,kBAAC,GAAD,EAAa,GAAI,GAAQ,CAAA;CAChB,CAAA,EAG8B,KAAK,EAAE,CAAC;AACnD,EAAmB,OAAO;CACxB,KAAK;CACL,UAAU;CACV,OAAO;CACP,aAAa;CACb,IAAI;CACL"}
1
+ {"version":3,"file":"RadioButton.stories.js","names":[],"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"],"mappings":";;AAWA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,IAAI,EACF,SAAS,QACV;EACD,OAAO,EACL,SAAS,QACV;EACD,aAAa,EACX,SAAS,QACV;EACD,UAAU,EACR,SAAS,WACV;EACD,KAAK,EACH,SAAS,SACV;EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAQY,MANgC,MAC3C,kBAAC,YAAD;CAAU,WAAU;WAClB,kBAAC,GAAD,EAAa,GAAI,GAAQ,CAAA;CAChB,CAAA,EAG8B,KAAK,EAAE,CAAC;AACnD,EAAmB,OAAO;CACxB,KAAK;CACL,UAAU;CACV,OAAO;CACP,aAAa;CACb,IAAI;CACL"}
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../test-Cr_l59hN.js";
1
+ import { r as e } from "../../test-Pa9Lwbsq.js";
2
2
  import { t } from "../../RadioGroup-JeTjVp5B.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  var r = {