@uva-glass/component-library 3.57.2 → 3.57.4

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 (273) hide show
  1. package/dist/ActionList-D2GC2qPX.js.map +1 -1
  2. package/dist/{AddCatalogueLinkForm-Di0xm7Ep.js → AddCatalogueLinkForm-CvJoaUFz.js} +2 -2
  3. package/dist/{AddCatalogueLinkForm-Di0xm7Ep.js.map → AddCatalogueLinkForm-CvJoaUFz.js.map} +1 -1
  4. package/dist/ClipboardButton-Cg6LGUiD.js.map +1 -1
  5. package/dist/ControlsButton-Byx4XQtB.js.map +1 -1
  6. package/dist/CopyableText-BKsM-TuS.js.map +1 -1
  7. package/dist/{DataTable-Cgn_RKTA.js → DataTable-Guuh0GZc.js} +53 -49
  8. package/dist/DataTable-Guuh0GZc.js.map +1 -0
  9. package/dist/{FeedbackBar-DEDpoNy7.js → FeedbackBar-DsOWAAGt.js} +2 -2
  10. package/dist/{FeedbackBar-DEDpoNy7.js.map → FeedbackBar-DsOWAAGt.js.map} +1 -1
  11. package/dist/{Lexical.prod-nAj5fF96.js → Lexical.prod-Dy5aDppc.js} +2449 -1794
  12. package/dist/Lexical.prod-Dy5aDppc.js.map +1 -0
  13. package/dist/LexicalClipboard.prod-CS8a49uL.js +398 -0
  14. package/dist/LexicalClipboard.prod-CS8a49uL.js.map +1 -0
  15. package/dist/{LexicalComposerContext.prod-DumMmRBt.js → LexicalComposerContext.prod-D4HOlWII.js} +3 -3
  16. package/dist/LexicalComposerContext.prod-D4HOlWII.js.map +1 -0
  17. package/dist/LexicalHtml.prod-BtzosUOH.js +1611 -0
  18. package/dist/LexicalHtml.prod-BtzosUOH.js.map +1 -0
  19. package/dist/LexicalLink.prod-DzgwWhQM.js +646 -0
  20. package/dist/LexicalLink.prod-DzgwWhQM.js.map +1 -0
  21. package/dist/LexicalList.prod-icY8mpm6.js +710 -0
  22. package/dist/LexicalList.prod-icY8mpm6.js.map +1 -0
  23. package/dist/{LexicalTable.prod-BpHQYpBM.js → LexicalTable.prod-Bf0is-op.js} +674 -750
  24. package/dist/LexicalTable.prod-Bf0is-op.js.map +1 -0
  25. package/dist/LexicalUtils.prod-CjGUKarD.js +259 -0
  26. package/dist/LexicalUtils.prod-CjGUKarD.js.map +1 -0
  27. package/dist/{LinkContextMenu-Byu3AEqp.js → LinkContextMenu-C8ehPbP8.js} +2 -2
  28. package/dist/{LinkContextMenu-Byu3AEqp.js.map → LinkContextMenu-C8ehPbP8.js.map} +1 -1
  29. package/dist/MenuLink-sK2_W2zs.js.map +1 -1
  30. package/dist/MetaDataList-Co9WCexh.js.map +1 -1
  31. package/dist/MultiSelectBox-D34qAgzc.js.map +1 -1
  32. package/dist/OverlayStepBar-BiC06Itd.js.map +1 -1
  33. package/dist/{PasteHandlerPlugin-DyTXcFsj.js → PasteHandlerPlugin-CSo_lOE8.js} +6 -6
  34. package/dist/{PasteHandlerPlugin-DyTXcFsj.js.map → PasteHandlerPlugin-CSo_lOE8.js.map} +1 -1
  35. package/dist/Periods-B4ms3N24.js.map +1 -1
  36. package/dist/Repeater-DUo13Mq6.js +23 -0
  37. package/dist/Repeater-DUo13Mq6.js.map +1 -0
  38. package/dist/SortableProvider-D-6Ttz0h.js.map +1 -1
  39. package/dist/{TableCellContextMenu--4IdoKAU.js → TableCellContextMenu-Cu5iXYSJ.js} +2 -2
  40. package/dist/{TableCellContextMenu--4IdoKAU.js.map → TableCellContextMenu-Cu5iXYSJ.js.map} +1 -1
  41. package/dist/{TableCellResizerPlugin-Dn8Ks2Lm.js → TableCellResizerPlugin-Bb2blXnq.js} +43 -43
  42. package/dist/TableCellResizerPlugin-Bb2blXnq.js.map +1 -0
  43. package/dist/VarIndicator-D0cnlcIf.js.map +1 -1
  44. package/dist/assets/DataTable.css +1 -1
  45. package/dist/assets/Repeater.css +1 -1
  46. package/dist/{chunk-5WKL7XVT-3IraU-Ja.js → chunk-5WKL7XVT-CvOIS3NE.js} +15 -15
  47. package/dist/{chunk-5WKL7XVT-3IraU-Ja.js.map → chunk-5WKL7XVT-CvOIS3NE.js.map} +1 -1
  48. package/dist/{client-BcEWjSJP.js → client-CXlG3hNo.js} +956 -957
  49. package/dist/{client-BcEWjSJP.js.map → client-CXlG3hNo.js.map} +1 -1
  50. package/dist/components/Accordion/Accordion.test.js +3 -3
  51. package/dist/components/Accordion/Accordion.test.js.map +1 -1
  52. package/dist/components/AccordionCard/AccordionCard.stories.js.map +1 -1
  53. package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
  54. package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
  55. package/dist/components/ActionList/ActionList.test.js +3 -3
  56. package/dist/components/ActionList/ActionList.test.js.map +1 -1
  57. package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
  58. package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
  59. package/dist/components/Attention/Attention.stories.js.map +1 -1
  60. package/dist/components/Attention/Attention.test.js +2 -2
  61. package/dist/components/Attention/Attention.test.js.map +1 -1
  62. package/dist/components/Backdrop/Backdrop.stories.js.map +1 -1
  63. package/dist/components/Backdrop/Backdrop.test.js +2 -2
  64. package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
  65. package/dist/components/Buttons/Button.stories.js +1 -1
  66. package/dist/components/Buttons/Button.test.js +2 -2
  67. package/dist/components/Buttons/Button.test.js.map +1 -1
  68. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  69. package/dist/components/Buttons/LinkButton.test.js +2 -2
  70. package/dist/components/Buttons/LinkButton.test.js.map +1 -1
  71. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  72. package/dist/components/Buttons/MenuButton.test.js +2 -2
  73. package/dist/components/Buttons/MenuButton.test.js.map +1 -1
  74. package/dist/components/Card/Card.test.js +2 -2
  75. package/dist/components/Card/Card.test.js.map +1 -1
  76. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  77. package/dist/components/Checkbox/Checkbox.stories.js.map +1 -1
  78. package/dist/components/Checkbox/Checkbox.test.js +3 -3
  79. package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
  80. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  81. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
  82. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
  83. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  84. package/dist/components/CheckboxTree/CheckboxTree.stories.js +3 -3
  85. package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
  86. package/dist/components/CheckboxTree/index.js +1 -1
  87. package/dist/components/Chip/Chip.stories.js +1 -1
  88. package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
  89. package/dist/components/CopyableText/CopyableText.stories.js.map +1 -1
  90. package/dist/components/DataTable/DataTable.d.ts +3 -1
  91. package/dist/components/DataTable/DataTable.js +1 -1
  92. package/dist/components/DataTable/DataTable.stories.js +49 -58
  93. package/dist/components/DataTable/DataTable.stories.js.map +1 -1
  94. package/dist/components/DataTable/index.js +1 -1
  95. package/dist/components/Drawer/Drawer.stories.js +1 -1
  96. package/dist/components/Drawer/Drawer.stories.js.map +1 -1
  97. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js.map +1 -1
  98. package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js +1 -1
  99. package/dist/components/FeedbackBar/FeedbackBar.js +1 -1
  100. package/dist/components/FeedbackBar/FeedbackBar.stories.js +2 -2
  101. package/dist/components/FeedbackBar/FeedbackBar.stories.js.map +1 -1
  102. package/dist/components/FeedbackBar/FeedbackBar.test.js +3 -3
  103. package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
  104. package/dist/components/FeedbackBar/index.js +1 -1
  105. package/dist/components/FeedbackBox/FeedbackBox.stories.js +1 -1
  106. package/dist/components/FormInput/FormInput.js +1 -1
  107. package/dist/components/FormInput/FormInput.stories.js +2 -2
  108. package/dist/components/FormInput/index.js +1 -1
  109. package/dist/components/GridRow/GridRow.stories.js.map +1 -1
  110. package/dist/components/Icon/Icon.stories.js.map +1 -1
  111. package/dist/components/IconButton/IconButton.stories.js +1 -1
  112. package/dist/components/IconButton/IconButton.stories.js.map +1 -1
  113. package/dist/components/InfoBanner/InfoBanner.stories.js.map +1 -1
  114. package/dist/components/InfoMessage/InfoMessage.stories.js.map +1 -1
  115. package/dist/components/InputField/InputField.stories.js +1 -1
  116. package/dist/components/InputField/InputField.stories.js.map +1 -1
  117. package/dist/components/Label/Label.test.js +2 -2
  118. package/dist/components/Label/Label.test.js.map +1 -1
  119. package/dist/components/MenuLink/MenuLink.stories.js.map +1 -1
  120. package/dist/components/MetaDataBar/MetaDataBar.stories.js.map +1 -1
  121. package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -1
  122. package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
  123. package/dist/components/MetaDataList/MetaDataList.stories.js.map +1 -1
  124. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  125. package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -1
  126. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  127. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  128. package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
  129. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  130. package/dist/components/MultiSelect/index.js +1 -1
  131. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
  132. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -1
  133. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -2
  134. package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
  135. package/dist/components/Notification/Notification.stories.js +1 -1
  136. package/dist/components/Notification/Notification.test.js +2 -2
  137. package/dist/components/Notification/Notification.test.js.map +1 -1
  138. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  139. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
  140. package/dist/components/PageOverlay/PageOverlay.stories.js +1 -1
  141. package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -1
  142. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  143. package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -2
  144. package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
  145. package/dist/components/PeriodSelector/index.js +1 -1
  146. package/dist/components/Periods/Periods.stories.js.map +1 -1
  147. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  148. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
  149. package/dist/components/RadioButton/RadioButton.stories.js.map +1 -1
  150. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  151. package/dist/components/RadioGroup/RadioGroup.stories.js.map +1 -1
  152. package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
  153. package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
  154. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  155. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -2
  156. package/dist/components/RadioTabSelector/index.js +1 -1
  157. package/dist/components/Repeater/Repeater.d.ts +1 -1
  158. package/dist/components/Repeater/Repeater.js +1 -1
  159. package/dist/components/Repeater/Repeater.stories.js +1 -1
  160. package/dist/components/Repeater/Repeater.stories.js.map +1 -1
  161. package/dist/components/Repeater/index.js +1 -1
  162. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  163. package/dist/components/RteEditor/EditorHeader/index.js +1 -1
  164. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +4 -4
  165. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +1 -1
  166. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +1 -1
  167. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +36 -36
  168. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js.map +1 -1
  169. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -1
  170. package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -1
  171. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  172. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  173. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -1
  174. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  175. package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -1
  176. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +15 -15
  177. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
  178. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
  179. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
  180. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  181. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  182. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
  183. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js +1 -1
  184. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -1
  185. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +33 -33
  186. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
  187. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +2 -2
  188. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -1
  189. package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -1
  190. package/dist/components/RteEditor/Plugins/index.js +4 -4
  191. package/dist/components/RteEditor/RteEditor.js +1 -1
  192. package/dist/components/RteEditor/RteEditor.stories.js +1 -1
  193. package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
  194. package/dist/components/RteEditor/helpers.js +7 -7
  195. package/dist/components/RteEditor/helpers.js.map +1 -1
  196. package/dist/components/RteEditor/index.js +1 -1
  197. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +18 -18
  198. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js.map +1 -1
  199. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +22 -22
  200. package/dist/components/SearchField/SearcheField.stories.js.map +1 -1
  201. package/dist/components/SectionNotification/SectionNotification.stories.js.map +1 -1
  202. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  203. package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
  204. package/dist/components/SelectListbox/SelectProvider.js.map +1 -1
  205. package/dist/components/SelectListbox/components/SelectButton.js.map +1 -1
  206. package/dist/components/SelectListbox/components/SelectOption.js.map +1 -1
  207. package/dist/components/Slider/Slider.stories.js.map +1 -1
  208. package/dist/components/Sortable/Sortable.stories.js +1 -1
  209. package/dist/components/Sortable/Sortable.stories.js.map +1 -1
  210. package/dist/components/Spinner/Spinner.stories.js.map +1 -1
  211. package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
  212. package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
  213. package/dist/components/StatusPill/StatusPill.stories.js.map +1 -1
  214. package/dist/components/TextArea/TextArea.stories.js +1 -1
  215. package/dist/components/TextArea/TextArea.test.js +3 -3
  216. package/dist/components/TextArea/TextArea.test.js.map +1 -1
  217. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  218. package/dist/components/Tooltip/Tooltip.stories.js.map +1 -1
  219. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  220. package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
  221. package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
  222. package/dist/components/WeekSelector/WeekSelector.js.map +1 -1
  223. package/dist/components/WeekSelector/WeekSelector.stories.js.map +1 -1
  224. package/dist/components/WeekSelector/components/WeekSelectorOption.js.map +1 -1
  225. package/dist/components/hooks/useOnClickOutside.js.map +1 -1
  226. package/dist/components/hooks/usePositionedFloaters.js.map +1 -1
  227. package/dist/components/hooks/useResponsive.js.map +1 -1
  228. package/dist/components/index.js +4 -4
  229. package/dist/components-CgBF6db6.js +2013 -0
  230. package/dist/components-CgBF6db6.js.map +1 -0
  231. package/dist/{dist-C6Ar8a59.js → dist-oLwM--0y.js} +14 -14
  232. package/dist/{dist-C6Ar8a59.js.map → dist-oLwM--0y.js.map} +1 -1
  233. package/dist/{esm-B6Pg-v2v.js → esm-BXzGXYWZ.js} +3 -3
  234. package/dist/{esm-B6Pg-v2v.js.map → esm-BXzGXYWZ.js.map} +1 -1
  235. package/dist/{helpers-BzYayeT-.js → helpers-MMNO9vlK.js} +9 -9
  236. package/dist/helpers-MMNO9vlK.js.map +1 -0
  237. package/dist/index.js +4 -4
  238. package/dist/{react-18-DbbN8Pdb.js → react-18-BwdnKC48.js} +3 -3
  239. package/dist/react-18-BwdnKC48.js.map +1 -0
  240. package/dist/{react.esm-56DGmlLk.js → react.esm-DwWzhs9e.js} +17 -17
  241. package/dist/react.esm-DwWzhs9e.js.map +1 -0
  242. package/dist/setupTests.js +2 -2
  243. package/dist/setupTests.js.map +1 -1
  244. package/dist/storybook__react.d.js +266 -266
  245. package/dist/storybook__react.d.js.map +1 -1
  246. package/dist/{test-WxLxsxwA.js → test-Gtly6H2f.js} +7 -5
  247. package/dist/{test-WxLxsxwA.js.map → test-Gtly6H2f.js.map} +1 -1
  248. package/dist/{test-utils-CMrZ33U0.js → test-utils-BVa31HVj.js} +2 -2
  249. package/dist/{test-utils-CMrZ33U0.js.map → test-utils-BVa31HVj.js.map} +1 -1
  250. package/package.json +24 -25
  251. package/dist/DataTable-Cgn_RKTA.js.map +0 -1
  252. package/dist/Lexical.prod-nAj5fF96.js.map +0 -1
  253. package/dist/LexicalClipboard.prod-B9sWgdS2.js +0 -348
  254. package/dist/LexicalClipboard.prod-B9sWgdS2.js.map +0 -1
  255. package/dist/LexicalComposerContext.prod-DumMmRBt.js.map +0 -1
  256. package/dist/LexicalHtml.prod-RCMsF0qt.js +0 -2139
  257. package/dist/LexicalHtml.prod-RCMsF0qt.js.map +0 -1
  258. package/dist/LexicalLink.prod-BcBNTFEb.js +0 -707
  259. package/dist/LexicalLink.prod-BcBNTFEb.js.map +0 -1
  260. package/dist/LexicalList.prod-THQt9B32.js +0 -890
  261. package/dist/LexicalList.prod-THQt9B32.js.map +0 -1
  262. package/dist/LexicalTable.prod-BpHQYpBM.js.map +0 -1
  263. package/dist/LexicalUtils.prod-7S6iuu9A.js +0 -347
  264. package/dist/LexicalUtils.prod-7S6iuu9A.js.map +0 -1
  265. package/dist/Repeater-BAEfOMZI.js +0 -22
  266. package/dist/Repeater-BAEfOMZI.js.map +0 -1
  267. package/dist/TableCellResizerPlugin-Dn8Ks2Lm.js.map +0 -1
  268. package/dist/components-KU0q76JR.js +0 -2150
  269. package/dist/components-KU0q76JR.js.map +0 -1
  270. package/dist/helpers-BzYayeT-.js.map +0 -1
  271. package/dist/react-18-DbbN8Pdb.js.map +0 -1
  272. package/dist/react.esm-56DGmlLk.js.map +0 -1
  273. /package/dist/{chunk-CWhphoD1.js → rolldown-runtime-CWhphoD1.js} +0 -0
@@ -1,7 +1,7 @@
1
- import "../../dist-C6Ar8a59.js";
1
+ import "../../dist-oLwM--0y.js";
2
2
  import { t as e } from "../../Accordion-DQNoRsg_.js";
3
- import { i as t, n } from "../../react.esm-56DGmlLk.js";
4
- import { t as r } from "../../esm-B6Pg-v2v.js";
3
+ import { i as t, n } from "../../react.esm-DwWzhs9e.js";
4
+ import { t as r } from "../../esm-BXzGXYWZ.js";
5
5
  import { jsx as i } from "react/jsx-runtime";
6
6
  //#region src/components/Accordion/Accordion.test.tsx
7
7
  describe("Accordion", () => {
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.test.js","names":[],"sources":["../../../src/components/Accordion/Accordion.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\n\nimport { Accordion } from './Accordion';\n\ndescribe('Accordion', () => {\n it('should render', () => {\n render(<Accordion title=\"Test Accordion\" content=\"Test Content\" />);\n const titleElement = screen.getByText('Test Accordion');\n expect(titleElement).toBeInTheDocument();\n expect(titleElement).toHaveAttribute('aria-expanded', 'false');\n });\n\n it('should display content when expanded by default', () => {\n render(<Accordion title=\"Test Accordion\" content=\"Test Content\" expanded />);\n const titleElement = screen.getByText('Test Accordion');\n expect(titleElement).toBeInTheDocument();\n expect(titleElement).toHaveAttribute('aria-expanded', 'true');\n });\n\n it('should toggle content visibility on click', async () => {\n render(<Accordion title=\"Test Accordion\" content=\"Test Content\" />);\n const titleElement = screen.getByText('Test Accordion');\n await userEvent.click(titleElement);\n expect(titleElement).toHaveAttribute('aria-expanded', 'true');\n await userEvent.click(titleElement);\n expect(titleElement).toHaveAttribute('aria-expanded', 'false');\n });\n\n it('should toggle content visibility on Enter key press', async () => {\n render(<Accordion title=\"Test Accordion\" content=\"Test Content\" />);\n const titleElement = screen.getByText('Test Accordion');\n await userEvent.keyboard('[Tab]');\n await userEvent.keyboard('[Enter]');\n expect(titleElement).toHaveAttribute('aria-expanded', 'true');\n await userEvent.keyboard('[Enter]');\n expect(titleElement).toHaveAttribute('aria-expanded', 'false');\n });\n\n it('should toggle content visibility on Space key press', async () => {\n render(<Accordion title=\"Test Accordion\" content=\"Test Content\" />);\n const titleElement = screen.getByText('Test Accordion');\n await userEvent.keyboard('[Tab]');\n await userEvent.keyboard('[Space]');\n expect(titleElement).toHaveAttribute('aria-expanded', 'true');\n await userEvent.keyboard('[Space]');\n expect(titleElement).toHaveAttribute('aria-expanded', 'false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,OAAM;GAAiB,SAAQ;EAAgB,CAAA,CAAC;EAClE,IAAM,IAAe,EAAO,UAAU,gBAAgB;EAKtD,AAJA,MAAM,EAAU,SAAS,OAAO,GAChC,MAAM,EAAU,SAAS,SAAS,GAClC,OAAO,CAAY,EAAE,gBAAgB,iBAAiB,MAAM,GAC5D,MAAM,EAAU,SAAS,SAAS,GAClC,OAAO,CAAY,EAAE,gBAAgB,iBAAiB,OAAO;CAC/D,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"Accordion.test.js","names":[],"sources":["../../../src/components/Accordion/Accordion.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\n\nimport { Accordion } from './Accordion';\n\ndescribe('Accordion', () => {\n it('should render', () => {\n render(<Accordion title=\"Test Accordion\" content=\"Test Content\" />);\n const titleElement = screen.getByText('Test Accordion');\n expect(titleElement).toBeInTheDocument();\n expect(titleElement).toHaveAttribute('aria-expanded', 'false');\n });\n\n it('should display content when expanded by default', () => {\n render(<Accordion title=\"Test Accordion\" content=\"Test Content\" expanded />);\n const titleElement = screen.getByText('Test Accordion');\n expect(titleElement).toBeInTheDocument();\n expect(titleElement).toHaveAttribute('aria-expanded', 'true');\n });\n\n it('should toggle content visibility on click', async () => {\n render(<Accordion title=\"Test Accordion\" content=\"Test Content\" />);\n const titleElement = screen.getByText('Test Accordion');\n await userEvent.click(titleElement);\n expect(titleElement).toHaveAttribute('aria-expanded', 'true');\n await userEvent.click(titleElement);\n expect(titleElement).toHaveAttribute('aria-expanded', 'false');\n });\n\n it('should toggle content visibility on Enter key press', async () => {\n render(<Accordion title=\"Test Accordion\" content=\"Test Content\" />);\n const titleElement = screen.getByText('Test Accordion');\n await userEvent.keyboard('[Tab]');\n await userEvent.keyboard('[Enter]');\n expect(titleElement).toHaveAttribute('aria-expanded', 'true');\n await userEvent.keyboard('[Enter]');\n expect(titleElement).toHaveAttribute('aria-expanded', 'false');\n });\n\n it('should toggle content visibility on Space key press', async () => {\n render(<Accordion title=\"Test Accordion\" content=\"Test Content\" />);\n const titleElement = screen.getByText('Test Accordion');\n await userEvent.keyboard('[Tab]');\n await userEvent.keyboard('[Space]');\n expect(titleElement).toHaveAttribute('aria-expanded', 'true');\n await userEvent.keyboard('[Space]');\n expect(titleElement).toHaveAttribute('aria-expanded', 'false');\n });\n});\n"],"mappings":";;;;;;AAMA,SAAS,mBAAmB;CAkC1B,AAjCA,GAAG,uBAAuB;EACxB,EAAO,kBAAC,GAAD;GAAW,OAAM;GAAiB,SAAQ;EAAgB,CAAA,CAAC;EAClE,IAAM,IAAe,EAAO,UAAU,gBAAgB;EAEtD,AADA,OAAO,CAAY,CAAC,CAAC,kBAAkB,GACvC,OAAO,CAAY,CAAC,CAAC,gBAAgB,iBAAiB,OAAO;CAC/D,CAAC,GAED,GAAG,yDAAyD;EAC1D,EAAO,kBAAC,GAAD;GAAW,OAAM;GAAiB,SAAQ;GAAe,UAAA;EAAU,CAAA,CAAC;EAC3E,IAAM,IAAe,EAAO,UAAU,gBAAgB;EAEtD,AADA,OAAO,CAAY,CAAC,CAAC,kBAAkB,GACvC,OAAO,CAAY,CAAC,CAAC,gBAAgB,iBAAiB,MAAM;CAC9D,CAAC,GAED,GAAG,6CAA6C,YAAY;EAC1D,EAAO,kBAAC,GAAD;GAAW,OAAM;GAAiB,SAAQ;EAAgB,CAAA,CAAC;EAClE,IAAM,IAAe,EAAO,UAAU,gBAAgB;EAItD,AAHA,MAAM,EAAU,MAAM,CAAY,GAClC,OAAO,CAAY,CAAC,CAAC,gBAAgB,iBAAiB,MAAM,GAC5D,MAAM,EAAU,MAAM,CAAY,GAClC,OAAO,CAAY,CAAC,CAAC,gBAAgB,iBAAiB,OAAO;CAC/D,CAAC,GAED,GAAG,uDAAuD,YAAY;EACpE,EAAO,kBAAC,GAAD;GAAW,OAAM;GAAiB,SAAQ;EAAgB,CAAA,CAAC;EAClE,IAAM,IAAe,EAAO,UAAU,gBAAgB;EAKtD,AAJA,MAAM,EAAU,SAAS,OAAO,GAChC,MAAM,EAAU,SAAS,SAAS,GAClC,OAAO,CAAY,CAAC,CAAC,gBAAgB,iBAAiB,MAAM,GAC5D,MAAM,EAAU,SAAS,SAAS,GAClC,OAAO,CAAY,CAAC,CAAC,gBAAgB,iBAAiB,OAAO;CAC/D,CAAC,GAED,GAAG,uDAAuD,YAAY;EACpE,EAAO,kBAAC,GAAD;GAAW,OAAM;GAAiB,SAAQ;EAAgB,CAAA,CAAC;EAClE,IAAM,IAAe,EAAO,UAAU,gBAAgB;EAKtD,AAJA,MAAM,EAAU,SAAS,OAAO,GAChC,MAAM,EAAU,SAAS,SAAS,GAClC,OAAO,CAAY,CAAC,CAAC,gBAAgB,iBAAiB,MAAM,GAC5D,MAAM,EAAU,SAAS,SAAS,GAClC,OAAO,CAAY,CAAC,CAAC,gBAAgB,iBAAiB,OAAO;CAC/D,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionCard.stories.js","names":[],"sources":["../../../src/components/AccordionCard/AccordionCard.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { AccordionCardProps } from './AccordionCard';\n\nimport { AccordionCard } from './AccordionCard';\n\nimport { Container } from 'storyComponents/Container';\n\nconst codeString = '<AccordionCard title={title} content={content}/>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/AccordionCard',\n component: AccordionCard,\n argTypes: {\n expanded: {\n // Hide the expanded prop. Changing the value in Storybook doesn't update the state of the component.\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: AccordionCard,\n codeString: codeString,\n },\n} as Meta<AccordionCardProps>;\n\nconst Template: StoryFn<AccordionCardProps> = (args) => (\n <Container size=\"large\">\n <AccordionCard {...args} />\n </Container>\n);\n\nexport const AccordionCardExample = Template.bind({});\nAccordionCardExample.args = {\n title: 'Vakaanbieding 1',\n content: (\n <div>\n <h3 style={{ marginTop: '0' }}>Vakaanmelding: Het Belang van een Goede Start van Je Studiejaar</h3>\n <p>\n Vakaanmelding is een cruciale stap in het studieproces, waarbij studenten zich inschrijven voor de vakken die\n zij tijdens een semester of studiejaar willen volgen. Deze procedure is belangrijk om een gestructureerd en\n succesvol academisch traject te waarborgen. Hieronder bespreken we wat vakaanmelding inhoudt, waarom het\n essentieel is en hoe je je optimaal kunt voorbereiden.\n </p>\n <h3>Wat is vakaanmelding?</h3>\n <p>\n Vakaanmelding is het proces waarbij studenten via een digitaal systeem (zoals Blackboard, Canvas of een\n specifieke universiteitsportal) aangeven welke vakken zij willen volgen. Dit kan variëren van verplichte\n kernvakken tot keuzevakken die aansluiten bij persoonlijke interesses of specialisaties.\n </p>\n </div>\n ),\n};\n"],"mappings":";;;;AAUA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU,EACR,UAAU,EAER,OAAO,EACL,SAAS,GACX,EACF,EACF;CACA,YAAY;EACV,kBAAkB;EACN;CACd;AACF,GAQa,MANkC,MAC7C,kBAAC,GAAD;CAAW,MAAK;WACd,kBAAC,GAAD,EAAe,GAAI,EAAO,CAAA;AACjB,CAAA,GAGgC,KAAK,CAAC,CAAC;AACpD,EAAqB,OAAO;CAC1B,OAAO;CACP,SACE,kBAAC,OAAD,EAAA,UAAA;EACE,kBAAC,MAAD;GAAI,OAAO,EAAE,WAAW,IAAI;aAAG;EAAmE,CAAA;EAClG,kBAAC,KAAD,EAAA,UAAG,4XAKA,CAAA;EACH,kBAAC,MAAD,EAAA,UAAI,wBAAyB,CAAA;EAC7B,kBAAC,KAAD,EAAA,UAAG,4SAIA,CAAA;CACA,EAAA,CAAA;AAET"}
1
+ {"version":3,"file":"AccordionCard.stories.js","names":[],"sources":["../../../src/components/AccordionCard/AccordionCard.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { AccordionCardProps } from './AccordionCard';\n\nimport { AccordionCard } from './AccordionCard';\n\nimport { Container } from 'storyComponents/Container';\n\nconst codeString = '<AccordionCard title={title} content={content}/>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/AccordionCard',\n component: AccordionCard,\n argTypes: {\n expanded: {\n // Hide the expanded prop. Changing the value in Storybook doesn't update the state of the component.\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: AccordionCard,\n codeString: codeString,\n },\n} as Meta<AccordionCardProps>;\n\nconst Template: StoryFn<AccordionCardProps> = (args) => (\n <Container size=\"large\">\n <AccordionCard {...args} />\n </Container>\n);\n\nexport const AccordionCardExample = Template.bind({});\nAccordionCardExample.args = {\n title: 'Vakaanbieding 1',\n content: (\n <div>\n <h3 style={{ marginTop: '0' }}>Vakaanmelding: Het Belang van een Goede Start van Je Studiejaar</h3>\n <p>\n Vakaanmelding is een cruciale stap in het studieproces, waarbij studenten zich inschrijven voor de vakken die\n zij tijdens een semester of studiejaar willen volgen. Deze procedure is belangrijk om een gestructureerd en\n succesvol academisch traject te waarborgen. Hieronder bespreken we wat vakaanmelding inhoudt, waarom het\n essentieel is en hoe je je optimaal kunt voorbereiden.\n </p>\n <h3>Wat is vakaanmelding?</h3>\n <p>\n Vakaanmelding is het proces waarbij studenten via een digitaal systeem (zoals Blackboard, Canvas of een\n specifieke universiteitsportal) aangeven welke vakken zij willen volgen. Dit kan variëren van verplichte\n kernvakken tot keuzevakken die aansluiten bij persoonlijke interesses of specialisaties.\n </p>\n </div>\n ),\n};\n"],"mappings":";;;;AAUA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU,EACR,UAAU,EAER,OAAO,EACL,SAAS,GACX,EACF,EACF;CACA,YAAY;EACV,kBAAkB;EACN;CACd;AACF,GAQa,MANkC,MAC7C,kBAAC,GAAD;CAAW,MAAK;WACd,kBAAC,GAAD,EAAe,GAAI,EAAO,CAAA;AACjB,CAAA,EAGuB,CAAS,KAAK,CAAC,CAAC;AACpD,EAAqB,OAAO;CAC1B,OAAO;CACP,SACE,kBAAC,OAAD,EAAA,UAAA;EACE,kBAAC,MAAD;GAAI,OAAO,EAAE,WAAW,IAAI;aAAG;EAAmE,CAAA;EAClG,kBAAC,KAAD,EAAA,UAAG,4XAKA,CAAA;EACH,kBAAC,MAAD,EAAA,UAAI,wBAAyB,CAAA;EAC7B,kBAAC,KAAD,EAAA,UAAG,4SAIA,CAAA;CACA,EAAA,CAAA;AAET"}
@@ -1,7 +1,7 @@
1
- import "../../dist-C6Ar8a59.js";
1
+ import "../../dist-oLwM--0y.js";
2
2
  import { t as e } from "../../AccordionCard-C4k8EI39.js";
3
- import { a as t, i as n, n as r, t as i } from "../../react.esm-56DGmlLk.js";
4
- import { t as a } from "../../esm-B6Pg-v2v.js";
3
+ import { a as t, i as n, n as r, t as i } from "../../react.esm-DwWzhs9e.js";
4
+ import { t as a } from "../../esm-BXzGXYWZ.js";
5
5
  import { jsx as o } from "react/jsx-runtime";
6
6
  //#region src/components/AccordionCard/AccordionCard.test.tsx
7
7
  describe("AccordionCard", () => {
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionCard.test.js","names":[],"sources":["../../../src/components/AccordionCard/AccordionCard.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { fireEvent, render, screen, waitFor } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\n\nimport { AccordionCard } from './AccordionCard';\n\ndescribe('AccordionCard', () => {\n it('should render', () => {\n render(<AccordionCard title=\"Test Accordion Card\" content={'TestComponent'} expanded />);\n expect(screen.getByText('Test Accordion Card')).toBeInTheDocument();\n expect(screen.getByText('TestComponent')).toBeInTheDocument();\n });\n\n it('should display content when expanded by default', () => {\n render(<AccordionCard title=\"Test Accordion Card\" content={'TestComponent'} expanded />);\n expect(screen.getByText('Test Accordion Card')).toBeInTheDocument();\n expect(screen.getByText('TestComponent')).toHaveClass('accordion-card__content--expanded');\n });\n\n it('should toggle content visibility on click', () => {\n render(<AccordionCard title=\"Test Accordion Card\" content={'TestComponent'} />);\n const titleElement = screen.getByText('Test Accordion Card');\n const contentElement = screen.getByText('TestComponent');\n expect(titleElement).toBeInTheDocument();\n fireEvent.click(titleElement);\n expect(contentElement).toHaveClass('accordion-card__content--expanded');\n fireEvent.click(titleElement);\n expect(contentElement).not.toHaveClass('accordion-card__content--expanded');\n });\n\n it('should toggle content visibility on Enter key press', async () => {\n render(<AccordionCard title=\"Test Accordion Card\" content={'TestComponent'} />);\n const titleElement = screen.getByRole('button');\n const contentElement = screen.getByText('TestComponent');\n titleElement.focus();\n await userEvent.keyboard('[Enter]');\n await waitFor(() => {\n expect(contentElement).toHaveClass('accordion-card__content--expanded');\n });\n await userEvent.keyboard('[Enter]');\n await waitFor(() => {\n expect(contentElement).not.toHaveClass('accordion-card__content--expanded');\n });\n });\n\n it('should toggle content visibility on Space key press', async () => {\n render(<AccordionCard title=\"Test Accordion Card\" content={'TestComponent'} />);\n const titleElement = screen.getByRole('button');\n const contentElement = screen.getByText('TestComponent');\n titleElement.focus();\n await userEvent.keyboard('[Space]');\n await waitFor(() => {\n expect(contentElement).toHaveClass('accordion-card__content--expanded');\n });\n await userEvent.keyboard('[Space]');\n await waitFor(() => {\n expect(contentElement).not.toHaveClass('accordion-card__content--expanded');\n });\n });\n});\n"],"mappings":";;;;;;AAMA,SAAS,uBAAuB;CAuC9B,AAtCA,GAAG,uBAAuB;EAGxB,AAFA,EAAO,kBAAC,GAAD;GAAe,OAAM;GAAsB,SAAS;GAAiB,UAAA;EAAU,CAAA,CAAC,GACvF,OAAO,EAAO,UAAU,qBAAqB,CAAC,EAAE,kBAAkB,GAClE,OAAO,EAAO,UAAU,eAAe,CAAC,EAAE,kBAAkB;CAC9D,CAAC,GAED,GAAG,yDAAyD;EAG1D,AAFA,EAAO,kBAAC,GAAD;GAAe,OAAM;GAAsB,SAAS;GAAiB,UAAA;EAAU,CAAA,CAAC,GACvF,OAAO,EAAO,UAAU,qBAAqB,CAAC,EAAE,kBAAkB,GAClE,OAAO,EAAO,UAAU,eAAe,CAAC,EAAE,YAAY,mCAAmC;CAC3F,CAA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ard.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { fireEvent, render, screen, waitFor } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\n\nimport { AccordionCard } from './AccordionCard';\n\ndescribe('AccordionCard', () => {\n it('should render', () => {\n render(<AccordionCard title=\"Test Accordion Card\" content={'TestComponent'} expanded />);\n expect(screen.getByText('Test Accordion Card')).toBeInTheDocument();\n expect(screen.getByText('TestComponent')).toBeInTheDocument();\n });\n\n it('should display content when expanded by default', () => {\n render(<AccordionCard title=\"Test Accordion Card\" content={'TestComponent'} expanded />);\n expect(screen.getByText('Test Accordion Card')).toBeInTheDocument();\n expect(screen.getByText('TestComponent')).toHaveClass('accordion-card__content--expanded');\n });\n\n it('should toggle content visibility on click', () => {\n render(<AccordionCard title=\"Test Accordion Card\" content={'TestComponent'} />);\n const titleElement = screen.getByText('Test Accordion Card');\n const contentElement = screen.getByText('TestComponent');\n expect(titleElement).toBeInTheDocument();\n fireEvent.click(titleElement);\n expect(contentElement).toHaveClass('accordion-card__content--expanded');\n fireEvent.click(titleElement);\n expect(contentElement).not.toHaveClass('accordion-card__content--expanded');\n });\n\n it('should toggle content visibility on Enter key press', async () => {\n render(<AccordionCard title=\"Test Accordion Card\" content={'TestComponent'} />);\n const titleElement = screen.getByRole('button');\n const contentElement = screen.getByText('TestComponent');\n titleElement.focus();\n await userEvent.keyboard('[Enter]');\n await waitFor(() => {\n expect(contentElement).toHaveClass('accordion-card__content--expanded');\n });\n await userEvent.keyboard('[Enter]');\n await waitFor(() => {\n expect(contentElement).not.toHaveClass('accordion-card__content--expanded');\n });\n });\n\n it('should toggle content visibility on Space key press', async () => {\n render(<AccordionCard title=\"Test Accordion Card\" content={'TestComponent'} />);\n const titleElement = screen.getByRole('button');\n const contentElement = screen.getByText('TestComponent');\n titleElement.focus();\n await userEvent.keyboard('[Space]');\n await waitFor(() => {\n expect(contentElement).toHaveClass('accordion-card__content--expanded');\n });\n await userEvent.keyboard('[Space]');\n await waitFor(()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CAAC,GACD,MAAM,EAAU,SAAS,SAAS,GAClC,MAAM,QAAc;GAClB,OAAO,CAAc,CAAC,CAAC,IAAI,YAAY,mCAAmC;EAC5E,CAAC;CACH,CAAC,GAED,GAAG,uDAAuD,YAAY;EACpE,EAAO,kBAAC,GAAD;GAAe,OAAM;GAAsB,SAAS;EAAkB,CAAA,CAAC;EAC9E,IAAM,IAAe,EAAO,UAAU,QAAQ,GACxC,IAAiB,EAAO,UAAU,eAAe;EAOvD,AANA,EAAa,MAAM,GACnB,MAAM,EAAU,SAAS,SAAS,GAClC,MAAM,QAAc;GAClB,OAAO,CAAc,CAAC,CAAC,YAAY,mCAAmC;EACxE,CAAC,GACD,MAAM,EAAU,SAAS,SAAS,GAClC,MAAM,QAAc;GAClB,OAAO,CAAc,CAAC,CAAC,IAAI,YAAY,mCAAmC;EAC5E,CAAC;CACH,CAAC;AACH,CAAC"}
@@ -1,7 +1,7 @@
1
- import "../../dist-C6Ar8a59.js";
1
+ import "../../dist-oLwM--0y.js";
2
2
  import { t as e } from "../../ActionList-D2GC2qPX.js";
3
- import { a as t, i as n, n as r } from "../../react.esm-56DGmlLk.js";
4
- import { t as i } from "../../esm-B6Pg-v2v.js";
3
+ import { a as t, i as n, n as r } from "../../react.esm-DwWzhs9e.js";
4
+ import { t as i } from "../../esm-BXzGXYWZ.js";
5
5
  import { jsx as a } from "react/jsx-runtime";
6
6
  //#region src/components/ActionList/ActionList.test.tsx
7
7
  var o = jest.fn(), s = [
@@ -1 +1 @@
1
- {"version":3,"file":"ActionList.test.js","names":[],"sources":["../../../src/components/ActionList/ActionList.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen, waitFor } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\n\nimport { ActionList } from './ActionList';\n\nconst onClickSpy = jest.fn();\n\nconst BUTTON_LIST = [\n <button key=\"1\" type=\"button\" onClick={onClickSpy}>\n Test Action 1\n </button>,\n <button key=\"2\" type=\"button\">\n Test Action 2\n </button>,\n <button key=\"3\" type=\"button\">\n Test Action 3\n </button>,\n];\n\ndescribe('ActionList', () => {\n it('should render (variant primary)', () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"primary\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n expect(screen.getByText('Test ActionList')).toBeInTheDocument();\n expect(screen.getByText('Test ActionList')).toHaveClass('button--primary');\n expect(screen.getByText('Test Action 1')).toBeInTheDocument();\n expect(screen.getByText('Test Action 2')).toBeInTheDocument();\n expect(screen.getByText('Test Action 3')).toBeInTheDocument();\n });\n\n it('should render variant secondary', () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"secondary\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n expect(screen.getByText('Test ActionList')).toBeInTheDocument();\n expect(screen.getByText('Test ActionList')).toHaveClass('button--secondary');\n });\n\n it('should render variant destructive-primary', () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"destructive-primary\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n expect(screen.getByText('Test ActionList')).toBeInTheDocument();\n expect(screen.getByText('Test ActionList')).toHaveClass('button--destructive-primary');\n });\n\n it('should render variant destructive-secondary', () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"destructive-secondary\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n expect(screen.getByText('Test ActionList')).toBeInTheDocument();\n expect(screen.getByText('Test ActionList')).toHaveClass('button--destructive-secondary');\n });\n\n it('should render variant blank', () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"blank\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n expect(screen.getByText('Test ActionList')).toBeInTheDocument();\n expect(screen.getByText('Test ActionList')).toHaveClass('button--blank');\n });\n\n it('should render variant blank-icon', () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"blank-icon\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n expect(screen.getByText('Test ActionList')).toBeInTheDocument();\n expect(screen.getByText('Test ActionList')).toHaveClass('button--blank-icon');\n });\n\n it('should toggle content visibility on click', async () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"blank-icon\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n const triggerElement = screen.getByText('Test ActionList');\n const actionListElement = screen.getByRole('menu');\n expect(triggerElement).toBeInTheDocument();\n expect(actionListElement).toBeInTheDocument();\n await userEvent.click(triggerElement);\n await waitFor(() => {\n expect(actionListElement).toHaveClass('action-list--open');\n });\n await userEvent.click(triggerElement);\n await waitFor(() => {\n expect(actionListElement).not.toHaveClass('action-list--open');\n });\n });\n\n it('should fire action on click on action button', async () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"blank-icon\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n const triggerElement = screen.getByText('Test ActionList');\n const actionListElement = screen.getByRole('menu');\n expect(triggerElement).toBeInTheDocument();\n expect(actionListElement).toBeInTheDocument();\n await userEvent.click(triggerElement);\n await waitFor(() => {\n expect(actionListElement).toHaveClass('action-list--open');\n });\n const actionButton = screen.getByText('Test Action 1');\n await userEvent.click(actionButton);\n expect(onClickSpy).toHaveBeenCalledTimes(1);\n await waitFor(() => {\n expect(actionListElement).not.toHaveClass('action-list--open');\n });\n });\n});\n"],"mappings":";;;;;;AAMA,IAAM,IAAa,KAAK,GAAG,GAErB,IAAc;CAClB,kBAAC,UAAD;EAAgB,MAAK;EAAS,SAAS;YAAY;CAE3C,GAFI,GAEJ;CACR,kBAAC,UAAD;EAAgB,MAAK;YAAS;CAEtB,GAFI,GAEJ;CACR,kBAAC,UAAD;EAAgB,MAAK;YAAS;CAEtB,GAFI,GAEJ;AACV;AAEA,SAAS,oBAAoB;CAoF3B,AAnFA,GAA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O,CAAiB,EAAE,kBAAkB,GAC5C,MAAM,EAAU,MAAM,CAAc,GACpC,MAAM,QAAc;GAClB,OAAO,CAAiB,EAAE,YAAY,mBAAmB;EAC3D,CAAC;EACD,IAAM,IAAe,EAAO,UAAU,eAAe;EAGrD,AAFA,MAAM,EAAU,MAAM,CAAY,GAClC,OAAO,CAAU,EAAE,sBAAsB,CAAC,GAC1C,MAAM,QAAc;GAClB,OAAO,CAAiB,EAAE,IAAI,YAAY,mBAAmB;EAC/D,CAAC;CACH,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"ActionList.test.js","names":[],"sources":["../../../src/components/ActionList/ActionList.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen, waitFor } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\n\nimport { ActionList } from './ActionList';\n\nconst onClickSpy = jest.fn();\n\nconst BUTTON_LIST = [\n <button key=\"1\" type=\"button\" onClick={onClickSpy}>\n Test Action 1\n </button>,\n <button key=\"2\" type=\"button\">\n Test Action 2\n </button>,\n <button key=\"3\" type=\"button\">\n Test Action 3\n </button>,\n];\n\ndescribe('ActionList', () => {\n it('should render (variant primary)', () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"primary\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n expect(screen.getByText('Test ActionList')).toBeInTheDocument();\n expect(screen.getByText('Test ActionList')).toHaveClass('button--primary');\n expect(screen.getByText('Test Action 1')).toBeInTheDocument();\n expect(screen.getByText('Test Action 2')).toBeInTheDocument();\n expect(screen.getByText('Test Action 3')).toBeInTheDocument();\n });\n\n it('should render variant secondary', () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"secondary\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n expect(screen.getByText('Test ActionList')).toBeInTheDocument();\n expect(screen.getByText('Test ActionList')).toHaveClass('button--secondary');\n });\n\n it('should render variant destructive-primary', () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"destructive-primary\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n expect(screen.getByText('Test ActionList')).toBeInTheDocument();\n expect(screen.getByText('Test ActionList')).toHaveClass('button--destructive-primary');\n });\n\n it('should render variant destructive-secondary', () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"destructive-secondary\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n expect(screen.getByText('Test ActionList')).toBeInTheDocument();\n expect(screen.getByText('Test ActionList')).toHaveClass('button--destructive-secondary');\n });\n\n it('should render variant blank', () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"blank\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n expect(screen.getByText('Test ActionList')).toBeInTheDocument();\n expect(screen.getByText('Test ActionList')).toHaveClass('button--blank');\n });\n\n it('should render variant blank-icon', () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"blank-icon\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n expect(screen.getByText('Test ActionList')).toBeInTheDocument();\n expect(screen.getByText('Test ActionList')).toHaveClass('button--blank-icon');\n });\n\n it('should toggle content visibility on click', async () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"blank-icon\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n const triggerElement = screen.getByText('Test ActionList');\n const actionListElement = screen.getByRole('menu');\n expect(triggerElement).toBeInTheDocument();\n expect(actionListElement).toBeInTheDocument();\n await userEvent.click(triggerElement);\n await waitFor(() => {\n expect(actionListElement).toHaveClass('action-list--open');\n });\n await userEvent.click(triggerElement);\n await waitFor(() => {\n expect(actionListElement).not.toHaveClass('action-list--open');\n });\n });\n\n it('should fire action on click on action button', async () => {\n render(\n <ActionList label=\"Test ActionList\" variant=\"blank-icon\" iconName=\"EllipsisVertical\">\n {BUTTON_LIST.map((button) => button)}\n </ActionList>\n );\n const triggerElement = screen.getByText('Test ActionList');\n const actionListElement = screen.getByRole('menu');\n expect(triggerElement).toBeInTheDocument();\n expect(actionListElement).toBeInTheDocument();\n await userEvent.click(triggerElement);\n await waitFor(() => {\n expect(actionListElement).toHaveClass('action-list--open');\n });\n const actionButton = screen.getByText('Test Action 1');\n await userEvent.click(actionButton);\n expect(onClickSpy).toHaveBeenCalledTimes(1);\n await waitFor(() => {\n expect(actionListElement).not.toHaveClass('action-list--open');\n });\n });\n});\n"],"mappings":";;;;;;AAMA,IAAM,IAAa,KAAK,GAAG,GAErB,IAAc;CAClB,kBAAC,UAAD;EAAgB,MAAK;EAAS,SAAS;YAAY;CAE3C,GAFI,GAEJ;CACR,kBAAC,UAAD;EAAgB,MAAK;YAAS;CAEtB,GAFI,GAEJ;CACR,kBAAC,UAAD;EAAgB,MAAK;YAAS;CAEtB,GAFI,GAEJ;AACV;AAEA,SAAS,oBAAoB;CAoF3B,AAnFA,GAAG,yCAAyC;EAU1C,AATA,EACE,kBAAC,GAAD;GAAY,OAAM;GAAkB,SAAQ;GAAU,UAAS;aAC5D,EAAY,KAAK,MAAW,CAAM;EACzB,CAAA,CACd,GACA,OAAO,EAAO,UAAU,iBAAiB,CAAC,CAAC,CAAC,kBAAkB,GAC9D,OAAO,EAAO,UAAU,iBAAiB,CAAC,CAAC,CAAC,YAAY,iBAAiB,GACzE,OAAO,EAAO,UAAU,eAAe,CAAC,CAAC,CAAC,kBAAkB,GAC5D,OAAO,EAAO,UAAU,eAAe,CAAC,CAAC,CAAC,kBAAkB,GAC5D,OAAO,EAAO,UAAU,eAAe,CAAC,CAAC,CAAC,kBAAkB;CAC9D,CAAC,GAED,GAAG,yCAAyC;EAO1C,AANA,EACE,kBAAC,GAAD;GAAY,OAAM;GAAkB,SAAQ;GAAY,UAAS;aAC9D,EAAY,KAAK,MAAW,CAAM;EACzB,CAAA,CACd,GACA,OAAO,EAAO,U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nzp.js";
3
- import { i as t, n } from "../../react.esm-56DGmlLk.js";
3
+ import { i as t, n } from "../../react.esm-DwWzhs9e.js";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  //#region src/components/AppStatusBar/AppStatusBar.test.tsx
6
6
  describe("AppStatusBar", () => {
@@ -1 +1 @@
1
- {"version":3,"file":"AppStatusBar.test.js","names":[],"sources":["../../../src/components/AppStatusBar/AppStatusBar.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { AppStatusBar } from './AppStatusBar';\n\ndescribe('AppStatusBar', () => {\n it('should render', () => {\n render(<AppStatusBar message=\"AppStatusBar message\" severity=\"info\" />);\n expect(screen.getByText('AppStatusBar message')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,sBAAsB;CAC7B,GAAG,uBAAuB;EAExB,AADA,EAAO,kBAAC,GAAD;GAAc,SAAQ;GAAuB,UAAS;EAAQ,CAAA,CAAC,GACtE,OAAO,EAAO,UAAU,sBAAsB,CAAC,EAAE,kBAAkB;CACrE,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"AppStatusBar.test.js","names":[],"sources":["../../../src/components/AppStatusBar/AppStatusBar.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { AppStatusBar } from './AppStatusBar';\n\ndescribe('AppStatusBar', () => {\n it('should render', () => {\n render(<AppStatusBar message=\"AppStatusBar message\" severity=\"info\" />);\n expect(screen.getByText('AppStatusBar message')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,sBAAsB;CAC7B,GAAG,uBAAuB;EAExB,AADA,EAAO,kBAAC,GAAD;GAAc,SAAQ;GAAuB,UAAS;EAAQ,CAAA,CAAC,GACtE,OAAO,EAAO,UAAU,sBAAsB,CAAC,CAAC,CAAC,kBAAkB;CACrE,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Attention.stories.js","names":[],"sources":["../../../src/components/Attention/Attention.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { PropsWithChildren } from 'react';\n\nimport { Attention } from './Attention';\n\nconst codeString = '<Attention>{message}</Attention>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Attention',\n component: Attention,\n parameters: {\n inspectComponent: Attention,\n codeString: codeString,\n },\n} as Meta<PropsWithChildren>;\n\nconst Template: StoryFn<PropsWithChildren> = (args) => <Attention {...args}>Example Attention</Attention>;\n\nexport const AttentionExample = Template.bind({});\nAttentionExample.args = {};\n"],"mappings":";;AAQA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN;CACd;AACF,GAIa,MAFiC,MAAS,kBAAC,GAAD;CAAW,GAAI;WAAM;AAA4B,CAAA,GAE/D,KAAK,CAAC,CAAC;AAChD,EAAiB,OAAO,CAAC"}
1
+ {"version":3,"file":"Attention.stories.js","names":[],"sources":["../../../src/components/Attention/Attention.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { PropsWithChildren } from 'react';\n\nimport { Attention } from './Attention';\n\nconst codeString = '<Attention>{message}</Attention>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Attention',\n component: Attention,\n parameters: {\n inspectComponent: Attention,\n codeString: codeString,\n },\n} as Meta<PropsWithChildren>;\n\nconst Template: StoryFn<PropsWithChildren> = (args) => <Attention {...args}>Example Attention</Attention>;\n\nexport const AttentionExample = Template.bind({});\nAttentionExample.args = {};\n"],"mappings":";;AAQA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN;CACd;AACF,GAIa,MAFiC,MAAS,kBAAC,GAAD;CAAW,GAAI;WAAM;AAA4B,CAAA,EAExE,CAAS,KAAK,CAAC,CAAC;AAChD,EAAiB,OAAO,CAAC"}
@@ -1,6 +1,6 @@
1
- import "../../dist-C6Ar8a59.js";
1
+ import "../../dist-oLwM--0y.js";
2
2
  import { t as e } from "../../Attention-xqGAJ7-T.js";
3
- import { i as t, n } from "../../react.esm-56DGmlLk.js";
3
+ import { i as t, n } from "../../react.esm-DwWzhs9e.js";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  //#region src/components/Attention/Attention.test.tsx
6
6
  describe("Attention", () => {
@@ -1 +1 @@
1
- {"version":3,"file":"Attention.test.js","names":[],"sources":["../../../src/components/Attention/Attention.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { Attention } from './Attention';\n\ndescribe('Attention', () => {\n it('should render (variant primary)', () => {\n render(<Attention>Attention message</Attention>);\n expect(screen.getByText('Attention message')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,mBAAmB;CAC1B,GAAG,yCAAyC;EAE1C,AADA,EAAO,kBAAC,GAAD,EAAA,UAAW,oBAA4B,CAAA,CAAC,GAC/C,OAAO,EAAO,UAAU,mBAAmB,CAAC,EAAE,kBAAkB;CAClE,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"Attention.test.js","names":[],"sources":["../../../src/components/Attention/Attention.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { Attention } from './Attention';\n\ndescribe('Attention', () => {\n it('should render (variant primary)', () => {\n render(<Attention>Attention message</Attention>);\n expect(screen.getByText('Attention message')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,mBAAmB;CAC1B,GAAG,yCAAyC;EAE1C,AADA,EAAO,kBAAC,GAAD,EAAA,UAAW,oBAA4B,CAAA,CAAC,GAC/C,OAAO,EAAO,UAAU,mBAAmB,CAAC,CAAC,CAAC,kBAAkB;CAClE,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Backdrop.stories.js","names":[],"sources":["../../../src/components/Backdrop/Backdrop.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { BackdropProps } from './Backdrop';\n\nimport { Backdrop } from './Backdrop';\n\nimport { Container } from 'storyComponents/Container';\n\nimport './Backdrop.stories.css';\n\ntype BackdropStoryProps = BackdropProps & { visible: boolean };\n\nconst codeString = '<Backdrop>{children}</Backdrop>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Backdrop',\n component: Backdrop,\n argTypes: {\n children: {\n control: 'text',\n },\n visible: {\n control: 'boolean',\n name: 'Show Backdrop',\n },\n },\n parameters: {\n inspectComponent: Backdrop,\n codeString: codeString,\n },\n} as Meta<BackdropStoryProps>;\n\nconst Template: StoryFn<BackdropStoryProps> = (args) => {\n return (\n <Container visible={args.visible}>\n <Backdrop>\n <div className=\"container\">{args.children}</div>\n </Backdrop>\n </Container>\n );\n};\n\nexport const BackdropExample = Template.bind({});\nBackdropExample.args = {\n visible: true,\n children: 'Dummy Overlay',\n};\n"],"mappings":";;;;AAcA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,UAAU,EACR,SAAS,OACX;EACA,SAAS;GACP,SAAS;GACT,MAAM;EACR;CACF;CACA,YAAY;EACV,kBAAkB;EACN;CACd;AACF,GAYa,MAVkC,MAE3C,kBAAC,GAAD;CAAW,SAAS,EAAK;WACvB,kBAAC,GAAD,EAAA,UACE,kBAAC,OAAD;EAAK,WAAU;YAAa,EAAK;CAAc,CAAA,EACvC,CAAA;AACD,CAAA,GAIyB,KAAK,CAAC,CAAC;AAC/C,EAAgB,OAAO;CACrB,SAAS;CACT,UAAU;AACZ"}
1
+ {"version":3,"file":"Backdrop.stories.js","names":[],"sources":["../../../src/components/Backdrop/Backdrop.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { BackdropProps } from './Backdrop';\n\nimport { Backdrop } from './Backdrop';\n\nimport { Container } from 'storyComponents/Container';\n\nimport './Backdrop.stories.css';\n\ntype BackdropStoryProps = BackdropProps & { visible: boolean };\n\nconst codeString = '<Backdrop>{children}</Backdrop>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Backdrop',\n component: Backdrop,\n argTypes: {\n children: {\n control: 'text',\n },\n visible: {\n control: 'boolean',\n name: 'Show Backdrop',\n },\n },\n parameters: {\n inspectComponent: Backdrop,\n codeString: codeString,\n },\n} as Meta<BackdropStoryProps>;\n\nconst Template: StoryFn<BackdropStoryProps> = (args) => {\n return (\n <Container visible={args.visible}>\n <Backdrop>\n <div className=\"container\">{args.children}</div>\n </Backdrop>\n </Container>\n );\n};\n\nexport const BackdropExample = Template.bind({});\nBackdropExample.args = {\n visible: true,\n children: 'Dummy Overlay',\n};\n"],"mappings":";;;;AAcA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,UAAU,EACR,SAAS,OACX;EACA,SAAS;GACP,SAAS;GACT,MAAM;EACR;CACF;CACA,YAAY;EACV,kBAAkB;EACN;CACd;AACF,GAYa,MAVkC,MAE3C,kBAAC,GAAD;CAAW,SAAS,EAAK;WACvB,kBAAC,GAAD,EAAA,UACE,kBAAC,OAAD;EAAK,WAAU;YAAa,EAAK;CAAc,CAAA,EACvC,CAAA;AACD,CAAA,EAIgB,CAAS,KAAK,CAAC,CAAC;AAC/C,EAAgB,OAAO;CACrB,SAAS;CACT,UAAU;AACZ"}
@@ -1,6 +1,6 @@
1
- import "../../dist-C6Ar8a59.js";
1
+ import "../../dist-oLwM--0y.js";
2
2
  import { t as e } from "../../Backdrop-bQ8kXsge.js";
3
- import { i as t, n } from "../../react.esm-56DGmlLk.js";
3
+ import { i as t, n } from "../../react.esm-DwWzhs9e.js";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  //#region src/components/Backdrop/Backdrop.test.tsx
6
6
  describe("Backdrop", () => {
@@ -1 +1 @@
1
- {"version":3,"file":"Backdrop.test.js","names":[],"sources":["../../../src/components/Backdrop/Backdrop.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { Backdrop } from './Backdrop';\n\ndescribe('Backdrop', () => {\n it('should render', () => {\n render(<Backdrop>Backdrop overlay</Backdrop>);\n expect(screen.getByText('Backdrop overlay')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,kBAAkB;CACzB,GAAG,uBAAuB;EAExB,AADA,EAAO,kBAAC,GAAD,EAAA,UAAU,mBAA0B,CAAA,CAAC,GAC5C,OAAO,EAAO,UAAU,kBAAkB,CAAC,EAAE,kBAAkB;CACjE,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"Backdrop.test.js","names":[],"sources":["../../../src/components/Backdrop/Backdrop.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { Backdrop } from './Backdrop';\n\ndescribe('Backdrop', () => {\n it('should render', () => {\n render(<Backdrop>Backdrop overlay</Backdrop>);\n expect(screen.getByText('Backdrop overlay')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,kBAAkB;CACzB,GAAG,uBAAuB;EAExB,AADA,EAAO,kBAAC,GAAD,EAAA,UAAU,mBAA0B,CAAA,CAAC,GAC5C,OAAO,EAAO,UAAU,kBAAkB,CAAC,CAAC,CAAC,kBAAkB;CACjE,CAAC;AACH,CAAC"}
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../test-WxLxsxwA.js";
1
+ import { r as e } from "../../test-Gtly6H2f.js";
2
2
  import { Button as t } from "./Button.js";
3
3
  import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
4
  var a = {
@@ -1,6 +1,6 @@
1
- import "../../dist-C6Ar8a59.js";
1
+ import "../../dist-oLwM--0y.js";
2
2
  import { Button as e } from "./Button.js";
3
- import { i as t, n, t as r } from "../../react.esm-56DGmlLk.js";
3
+ import { i as t, n, t as r } from "../../react.esm-DwWzhs9e.js";
4
4
  import { jsx as i } from "react/jsx-runtime";
5
5
  //#region src/components/Buttons/Button.test.tsx
6
6
  var a = jest.fn();
@@ -1 +1 @@
1
- {"version":3,"file":"Button.test.js","names":[],"sources":["../../../src/components/Buttons/Button.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { fireEvent, render, screen } from '@testing-library/react';\n\nimport { Button } from './Button';\n\nconst onClickSpy = jest.fn();\n\ndescribe('Button', () => {\n it('should render primary', () => {\n render(<Button variant=\"primary\">Test Button</Button>);\n expect(screen.getByText('Test Button')).toBeInTheDocument();\n });\n\n it('should render secondary', () => {\n render(<Button variant=\"secondary\">Test Button</Button>);\n expect(screen.getByText('Test Button')).toBeInTheDocument();\n expect(screen.getByText('Test Button')).toHaveClass('button--secondary');\n });\n\n it('should render destructive-primary', () => {\n render(<Button variant=\"destructive-primary\">Test Button</Button>);\n expect(screen.getByText('Test Button')).toBeInTheDocument();\n expect(screen.getByText('Test Button')).toHaveClass('button--destructive-primary');\n });\n\n it('should render destructive-secondary', () => {\n render(<Button variant=\"destructive-secondary\">Test Button</Button>);\n expect(screen.getByText('Test Button')).toBeInTheDocument();\n expect(screen.getByText('Test Button')).toHaveClass('button--destructive-secondary');\n });\n\n it('should render blank', () => {\n render(<Button variant=\"blank\">Test Button</Button>);\n expect(screen.getByText('Test Button')).toBeInTheDocument();\n expect(screen.getByText('Test Button')).toHaveClass('button--blank');\n });\n\n it('should render as column', () => {\n render(\n <Button variant=\"primary\" displayColumn>\n Test Button\n </Button>\n );\n expect(screen.getByText('Test Button')).toBeInTheDocument();\n expect(screen.getByText('Test Button')).toHaveClass('button--wide-column');\n });\n\n it('should render disabled', () => {\n render(\n <Button variant=\"primary\" disabled>\n Test Button\n </Button>\n );\n const button = screen.getByText('Test Button');\n expect(button).toBeInTheDocument();\n expect(button).toHaveAttribute('disabled');\n fireEvent.click(button);\n expect(onClickSpy).toHaveBeenCalledTimes(0);\n });\n\n it('should call onClick when clicked', () => {\n render(\n <Button variant=\"primary\" onClick={onClickSpy}>\n Test Button\n </Button>\n );\n const button = screen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GAAU,eAAA;aAAc;EAEhC,CAAA,CACV,GACA,OAAO,EAAO,UAAU,aAAa,CAAC,EAAE,kBAAkB,GAC1D,OAAO,EAAO,UAAU,aAAa,CAAC,EAAE,YAAY,qBAAqB;CAC3E,CAAC,GAED,GAAG,gCAAgC;EACjC,EACE,kBAAC,GAAD;GAAQ,SAAQ;GAAU,UAAA;aAAS;EAE3B,CAAA,CACV;EACA,IAAM,IAAS,EAAO,UAAU,aAAa;EAI7C,AAHA,OAAO,CAAM,EAAE,kBAAkB,GACjC,OAAO,CAAM,EAAE,gBAAgB,UAAU,GACzC,EAAU,MAAM,CAAM,GACtB,OAAO,CAAU,EAAE,sBAAsB,CAAC;CAC5C,CAAC,GAED,GAAG,0CAA0C;EAC3C,EACE,kBAAC,GAAD;GAAQ,SAAQ;GAAU,SAAS;aAAY;EAEvC,CAAA,CACV;EACA,IAAM,IAAS,EAAO,UAAU,aAAa;EAG7C,AAFA,OAAO,CAAM,EAAE,kBAAkB,GACjC,EAAU,MAAM,CAAM,GACtB,OAAO,CAAU,EAAE,sBAAsB,CAAC;CAC5C,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"Button.test.js","names":[],"sources":["../../../src/components/Buttons/Button.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { fireEvent, render, screen } from '@testing-library/react';\n\nimport { Button } from './Button';\n\nconst onClickSpy = jest.fn();\n\ndescribe('Button', () => {\n it('should render primary', () => {\n render(<Button variant=\"primary\">Test Button</Button>);\n expect(screen.getByText('Test Button')).toBeInTheDocument();\n });\n\n it('should render secondary', () => {\n render(<Button variant=\"secondary\">Test Button</Button>);\n expect(screen.getByText('Test Button')).toBeInTheDocument();\n expect(screen.getByText('Test Button')).toHaveClass('button--secondary');\n });\n\n it('should render destructive-primary', () => {\n render(<Button variant=\"destructive-primary\">Test Button</Button>);\n expect(screen.getByText('Test Button')).toBeInTheDocument();\n expect(screen.getByText('Test Button')).toHaveClass('button--destructive-primary');\n });\n\n it('should render destructive-secondary', () => {\n render(<Button variant=\"destructive-secondary\">Test Button</Button>);\n expect(screen.getByText('Test Button')).toBeInTheDocument();\n expect(screen.getByText('Test Button')).toHaveClass('button--destructive-secondary');\n });\n\n it('should render blank', () => {\n render(<Button variant=\"blank\">Test Button</Button>);\n expect(screen.getByText('Test Button')).toBeInTheDocument();\n expect(screen.getByText('Test Button')).toHaveClass('button--blank');\n });\n\n it('should render as column', () => {\n render(\n <Button variant=\"primary\" displayColumn>\n Test Button\n </Button>\n );\n expect(screen.getByText('Test Button')).toBeInTheDocument();\n expect(screen.getByText('Test Button')).toHaveClass('button--wide-column');\n });\n\n it('should render disabled', () => {\n render(\n <Button variant=\"primary\" disabled>\n Test Button\n </Button>\n );\n const button = screen.getByText('Test Button');\n expect(button).toBeInTheDocument();\n expect(button).toHaveAttribute('disabled');\n fireEvent.click(button);\n expect(onClickSpy).toHaveBeenCalledTimes(0);\n });\n\n it('should call onClick when clicked', () => {\n render(\n <Button variant=\"primary\" onClick={onClickSpy}>\n Test Button\n </Button>\n );\n const button = screen.getByText('Test Button');\n expect(button).toBeInTheDocument();\n fireEvent.click(button);\n expect(onClickSpy).toHaveBeenCalledTimes(1);\n });\n});\n"],"mappings":";;;;;AAKA,IAAM,IAAa,KAAK,GAAG;AAE3B,SAAS,gBAAgB;CAqDvB,AApDA,GAAG,+BAA+B;EAEhC,AADA,EAAO,kBAAC,GAAD;GAAQ,SAAQ;aAAU;EAAmB,CAAA,CAAC,GACrD,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,CAAC,kBAAkB;CAC5D,CAAC,GAED,GAAG,iCAAiC;EAGlC,AAFA,EAAO,kBAAC,GAAD;GAAQ,SAAQ;aAAY;EAAmB,CAAA,CAAC,GACvD,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,CAAC,kBAAkB,GAC1D,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,CAAC,YAAY,mBAAmB;CACzE,CAAC,GAED,GAAG,2CAA2C;EAG5C,AAFA,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GAAU,SAAS;aAAY;EAEvC,CAAA,CACV;EACA,IAAM,IAAS,EAAO,UAAU,aAAa;EAG7C,AAFA,OAAO,CAAM,CAAC,CAAC,kBAAkB,GACjC,EAAU,MAAM,CAAM,GACtB,OAAO,CAAU,CAAC,CAAC,sBAAsB,CAAC;CAC5C,CAAC;AACH,CAAC"}
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../test-WxLxsxwA.js";
1
+ import { r as e } from "../../test-Gtly6H2f.js";
2
2
  import { LinkButton as t } from "./LinkButton.js";
3
3
  import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
4
  import { BrowserRouter as a } from "react-router";
@@ -1,6 +1,6 @@
1
- import "../../dist-C6Ar8a59.js";
1
+ import "../../dist-oLwM--0y.js";
2
2
  import { LinkButton as e } from "./LinkButton.js";
3
- import { i as t, n, t as r } from "../../react.esm-56DGmlLk.js";
3
+ import { i as t, n, t as r } from "../../react.esm-DwWzhs9e.js";
4
4
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
5
  import { BrowserRouter as o, Route as s, Routes as c } from "react-router";
6
6
  //#region src/components/Buttons/LinkButton.test.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"LinkButton.test.js","names":[],"sources":["../../../src/components/Buttons/LinkButton.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { fireEvent, render, screen } from '@testing-library/react';\nimport { BrowserRouter, Routes, Route } from 'react-router';\n\nimport type { ReactNode } from 'react';\n\nimport { LinkButton } from './LinkButton';\n\nconst routerContainer = ({ children }: { children: ReactNode }) => (\n <BrowserRouter>\n <Routes>\n <Route path={`/`} element={<div>Test route</div>} />\n </Routes>\n {children}\n </BrowserRouter>\n);\n\ndescribe('LinkButton', () => {\n it('should render', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"primary\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n });\n\n it('should render primary', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"primary\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--primary');\n });\n\n it('should render secondary', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"secondary\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--secondary');\n });\n\n it('should render destructive-primary', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"destructive-primary\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--destructive-primary');\n });\n\n it('should render destructive-secondary', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"destructive-secondary\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--destructive-secondary');\n });\n\n it('should render blank', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"blank\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--blank');\n });\n\n it('should render blank-subtle', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"blank-subtle\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--blank-subtle');\n });\n\n it('should render blank-icon', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"blank-icon\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--blank-icon');\n });\n\n it('should goto route when clicked', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"primary\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n fireEvent.click(screen.getByText('Test LinkButton'));\n expect(screen.getByText('Test route')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;;AAQA,IAAM,KAAmB,EAAE,kBACzB,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;CAAO,MAAM;CAAK,SAAS,kBAAC,OAAD,EAAA,UAAK,aAAe,CAAA;AAAI,CAAA,EAC7C,CAAA,GACP,CACY,EAAA,CAAA;AAGjB,SAAS,oBAAoB;CAgH3B,AA/GA,GAAG,uBAAuB;EAUxB,AATA,EACE,EAAgB,EACd,UACE,kBAAC,GAAD;GAAY,SAAQ;GAAU,IAAI;aAAK;EAE3B,CAAA,EAEhB,CAAC,CACH,GACA,OAAO,EAAO,UAAU,iBAAiB,CAAC,EAAE,kBAAkB;CAChE,CAAC,GAED,GAAG,+BAA+B;EAWhC,AAVA,EACE,EAAgB,EACd,UACE,kBAAC,GAAD;GAAY,SAAQ;GAAU,IAAI;aAAK;EAE3B,CAAA,EAEhB,CAAC,CACH,GACA,OAAO,EAAO,UAAU,iBAAiB,CAAC,EAAE,kBAAkB,GAC9D,OAAO,EAAO,UAAU,iBAAiB,CAAC,EAAE,YAAY,iBAAiB;CAC3E,CAAC,GAED,GAAG,iCAAiC;EAWlC,AAVA,EACE,EAAgB,EACd,UACE,kBAAC,GAAD;GAAY,SAAQ;GAAY,IAAI;aAAK;EAE7B,CAAA,EAEhB,CAAC,CACH,GACA,OAAO,EAAO,UAAU,iBAAiB,CAAC,EAAE,kBAAkB,GAC9D,OAAO,EAAO,UAAU,iBAAiB,CAAC,EAAE,YAAY,mBAAmB;CAC7E,CAAC,GAED,GAAG,2CAA2C;EA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AoB;CAC9E,CAAC,GAED,GAAG,wCAAwC;EAWzC,AAVA,EACE,EAAgB,EACd,UACE,kBAAC,GAAD;GAAY,SAAQ;GAAU,IAAI;aAAK;EAE3B,CAAA,EAEhB,CAAC,CACH,GACA,EAAU,MAAM,EAAO,UAAU,iBAAiB,CAAC,GACnD,OAAO,EAAO,UAAU,YAAY,CAAC,EAAE,kBAAkB;CAC3D,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"LinkButton.test.js","names":[],"sources":["../../../src/components/Buttons/LinkButton.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { fireEvent, render, screen } from '@testing-library/react';\nimport { BrowserRouter, Routes, Route } from 'react-router';\n\nimport type { ReactNode } from 'react';\n\nimport { LinkButton } from './LinkButton';\n\nconst routerContainer = ({ children }: { children: ReactNode }) => (\n <BrowserRouter>\n <Routes>\n <Route path={`/`} element={<div>Test route</div>} />\n </Routes>\n {children}\n </BrowserRouter>\n);\n\ndescribe('LinkButton', () => {\n it('should render', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"primary\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n });\n\n it('should render primary', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"primary\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--primary');\n });\n\n it('should render secondary', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"secondary\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--secondary');\n });\n\n it('should render destructive-primary', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"destructive-primary\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--destructive-primary');\n });\n\n it('should render destructive-secondary', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"destructive-secondary\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--destructive-secondary');\n });\n\n it('should render blank', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"blank\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--blank');\n });\n\n it('should render blank-subtle', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"blank-subtle\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--blank-subtle');\n });\n\n it('should render blank-icon', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"blank-icon\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n expect(screen.getByText('Test LinkButton')).toBeInTheDocument();\n expect(screen.getByText('Test LinkButton')).toHaveClass('button--blank-icon');\n });\n\n it('should goto route when clicked', () => {\n render(\n routerContainer({\n children: (\n <LinkButton variant=\"primary\" to={'/'}>\n Test LinkButton\n </LinkButton>\n ),\n })\n );\n fireEvent.click(screen.getByText('Test LinkButton'));\n expect(screen.getByText('Test route')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;;AAQA,IAAM,KAAmB,EAAE,kBACzB,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;CAAO,MAAM;CAAK,SAAS,kBAAC,OAAD,EAAA,UAAK,aAAe,CAAA;AAAI,CAAA,EAC7C,CAAA,GACP,C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enuButton as t } from "./MenuButton.js";
3
3
  import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
4
  var a = {
@@ -1,6 +1,6 @@
1
- import "../../dist-C6Ar8a59.js";
1
+ import "../../dist-oLwM--0y.js";
2
2
  import { MenuButton as e } from "./MenuButton.js";
3
- import { i as t, n, t as r } from "../../react.esm-56DGmlLk.js";
3
+ import { i as t, n, t as r } from "../../react.esm-DwWzhs9e.js";
4
4
  import { createRef as i } from "react";
5
5
  import { jsx as a } from "react/jsx-runtime";
6
6
  //#region src/components/Buttons/MenuButton.test.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"MenuButton.test.js","names":[],"sources":["../../../src/components/Buttons/MenuButton.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { fireEvent, render, screen } from '@testing-library/react';\nimport { createRef } from 'react';\n\nimport type { RefObject } from 'react';\n\nimport { MenuButton } from './MenuButton';\n\nconst onClickSpy = jest.fn();\n\ndescribe('LinkButton', () => {\n it('should render', () => {\n const testRef = createRef();\n render(\n <MenuButton variant=\"primary\" onClick={onClickSpy} buttonRef={testRef as RefObject<HTMLButtonElement>}>\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n });\n\n it('should render primary', () => {\n const testRef = createRef();\n render(\n <MenuButton variant=\"primary\" onClick={onClickSpy} buttonRef={testRef as RefObject<HTMLButtonElement>}>\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n expect(screen.getByText('Test MenuButton')).toHaveClass('button--primary');\n });\n\n it('should render secondary', () => {\n const testRef = createRef();\n render(\n <MenuButton variant=\"secondary\" onClick={onClickSpy} buttonRef={testRef as RefObject<HTMLButtonElement>}>\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n expect(screen.getByText('Test MenuButton')).toHaveClass('button--secondary');\n });\n\n it('should render destructive-primary', () => {\n const testRef = createRef();\n render(\n <MenuButton\n variant=\"destructive-primary\"\n onClick={onClickSpy}\n buttonRef={testRef as RefObject<HTMLButtonElement>}\n >\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n expect(screen.getByText('Test MenuButton')).toHaveClass('button--destructive-primary');\n });\n\n it('should render destructive-secondary', () => {\n const testRef = createRef();\n render(\n <MenuButton\n variant=\"destructive-secondary\"\n onClick={onClickSpy}\n buttonRef={testRef as RefObject<HTMLButtonElement>}\n >\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n expect(screen.getByText('Test MenuButton')).toHaveClass('button--destructive-secondary');\n });\n\n it('should render blank', () => {\n const testRef = createRef();\n render(\n <MenuButton variant=\"blank\" onClick={onClickSpy} buttonRef={testRef as RefObject<HTMLButtonElement>}>\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n expect(screen.getByText('Test MenuButton')).toHaveClass('button--blank');\n });\n\n it('should render blank-icon', () => {\n const testRef = createRef();\n render(\n <MenuButton variant=\"blank-icon\" onClick={onClickSpy} buttonRef={testRef as RefObject<HTMLButtonElement>}>\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n expect(screen.getByText('Test MenuButton')).toHaveClass('button--blank-icon');\n });\n\n it('should fire when clicked', () => {\n const testRef = createRef();\n render(\n <MenuButton variant=\"blank-icon\" onClick={onClickSpy} buttonRef={testRef as RefObject<HTMLButtonElement>}>\n Test MenuButton\n </MenuButton>\n );\n fireEvent.click(screen.getByText('Test MenuButton'));\n expect(onClickSpy).toHaveBeenCalledTimes(1);\n });\n});\n"],"mappings":";;;;;;AAQA,IAAM,IAAa,KAAK,GAAG;AAE3B,SAAS,oBAAoB;CAqF3B,AApFA,GAAG,uBAAuB;EAOxB,AALA,EACE,kBAAC,GAAD;GAAY,SAAQ;GAAU,SAAS;GAAY,WAFrC,EAEgD;a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OAAO,EAAO,UAAU,iBAAiB,CAAC,EAAE,YAAY,eAAe;CACzE,CAAC,GAED,GAAG,kCAAkC;EAQnC,AANA,EACE,kBAAC,GAAD;GAAY,SAAQ;GAAa,SAAS;GAAY,WAFxC,EAEmD;aAAyC;EAE9F,CAAA,CACd,GACA,OAAO,EAAO,UAAU,iBAAiB,CAAC,EAAE,kBAAkB,GAC9D,OAAO,EAAO,UAAU,iBAAiB,CAAC,EAAE,YAAY,oBAAoB;CAC9E,CAAC,GAED,GAAG,kCAAkC;EAQnC,AANA,EACE,kBAAC,GAAD;GAAY,SAAQ;GAAa,SAAS;GAAY,WAFxC,EAEmD;aAAyC;EAE9F,CAAA,CACd,GACA,EAAU,MAAM,EAAO,UAAU,iBAAiB,CAAC,GACnD,OAAO,CAAU,EAAE,sBAAsB,CAAC;CAC5C,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"MenuButton.test.js","names":[],"sources":["../../../src/components/Buttons/MenuButton.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { fireEvent, render, screen } from '@testing-library/react';\nimport { createRef } from 'react';\n\nimport type { RefObject } from 'react';\n\nimport { MenuButton } from './MenuButton';\n\nconst onClickSpy = jest.fn();\n\ndescribe('LinkButton', () => {\n it('should render', () => {\n const testRef = createRef();\n render(\n <MenuButton variant=\"primary\" onClick={onClickSpy} buttonRef={testRef as RefObject<HTMLButtonElement>}>\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n });\n\n it('should render primary', () => {\n const testRef = createRef();\n render(\n <MenuButton variant=\"primary\" onClick={onClickSpy} buttonRef={testRef as RefObject<HTMLButtonElement>}>\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n expect(screen.getByText('Test MenuButton')).toHaveClass('button--primary');\n });\n\n it('should render secondary', () => {\n const testRef = createRef();\n render(\n <MenuButton variant=\"secondary\" onClick={onClickSpy} buttonRef={testRef as RefObject<HTMLButtonElement>}>\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n expect(screen.getByText('Test MenuButton')).toHaveClass('button--secondary');\n });\n\n it('should render destructive-primary', () => {\n const testRef = createRef();\n render(\n <MenuButton\n variant=\"destructive-primary\"\n onClick={onClickSpy}\n buttonRef={testRef as RefObject<HTMLButtonElement>}\n >\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n expect(screen.getByText('Test MenuButton')).toHaveClass('button--destructive-primary');\n });\n\n it('should render destructive-secondary', () => {\n const testRef = createRef();\n render(\n <MenuButton\n variant=\"destructive-secondary\"\n onClick={onClickSpy}\n buttonRef={testRef as RefObject<HTMLButtonElement>}\n >\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n expect(screen.getByText('Test MenuButton')).toHaveClass('button--destructive-secondary');\n });\n\n it('should render blank', () => {\n const testRef = createRef();\n render(\n <MenuButton variant=\"blank\" onClick={onClickSpy} buttonRef={testRef as RefObject<HTMLButtonElement>}>\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n expect(screen.getByText('Test MenuButton')).toHaveClass('button--blank');\n });\n\n it('should render blank-icon', () => {\n const testRef = createRef();\n render(\n <MenuButton variant=\"blank-icon\" onClick={onClickSpy} buttonRef={testRef as RefObject<HTMLButtonElement>}>\n Test MenuButton\n </MenuButton>\n );\n expect(screen.getByText('Test MenuButton')).toBeInTheDocument();\n expect(screen.getByText('Test MenuButton')).toHaveClass('button--blank-icon');\n });\n\n it('should fire when clicked', () => {\n const testRef = createRef();\n render(\n <MenuButton variant=\"blank-icon\" onClick={onClickSpy} buttonRef={testRef as RefObject<HTMLButtonElement>}>\n Test MenuButton\n </MenuButton>\n );\n fireEvent.click(screen.getByText('Test MenuButton'));\n expect(onClickSpy).toHaveBeenCalledTimes(1);\n });\n});\n"],"mappings":";;;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,CAAC,YAAY,+BAA+B;CACzF,CAAC,GAED,GAAG,6BAA6B;EAQ9B,AANA,EACE,kBAAC,GAAD;GAAY,SAAQ;GAAQ,SAAS;GAAY,WAFnC,EAE8C;aAAyC;EAEzF,CAAA,CACd,GACA,OAAO,EAAO,UAAU,iBAAiB,CAAC,CAAC,CAAC,kBAAkB,GAC9D,OAAO,EAAO,UAAU,iBAAiB,CAAC,CAAC,CAAC,YAAY,eAAe;CACzE,CAAC,GAED,GAAG,kCAAkC;EAQnC,AANA,EACE,kBAAC,GAAD;GAAY,SAAQ;GAAa,SAAS;GAAY,WAFxC,EAEmD;aAAyC;EAE9F,CAAA,CACd,GACA,OAAO,EAAO,UAAU,iBAAiB,CAAC,CAAC,CAAC,kBAAkB,GAC9D,OAAO,EAAO,UAAU,iBAAiB,CAAC,CAAC,CAAC,YAAY,oBAAoB;CAC9E,CAAC,GAED,GAAG,kCAAkC;EAQnC,AANA,EACE,kBAAC,GAAD;GAAY,SAAQ;GAAa,SAAS;GAAY,WAFxC,EAEmD;aAAyC;EAE9F,CAAA,CACd,GACA,EAAU,MAAM,EAAO,UAAU,iBAAiB,CAAC,GACnD,OAAO,CAAU,CAAC,CAAC,sBAAsB,CAAC;CAC5C,CAAC;AACH,CAAC"}
@@ -1,6 +1,6 @@
1
- import "../../dist-C6Ar8a59.js";
1
+ import "../../dist-oLwM--0y.js";
2
2
  import { t as e } from "../../Card-DENYj3eR.js";
3
- import { i as t, n } from "../../react.esm-56DGmlLk.js";
3
+ import { i as t, n } from "../../react.esm-DwWzhs9e.js";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  //#region src/components/Card/Card.test.tsx
6
6
  describe("Card", () => {
@@ -1 +1 @@
1
- {"version":3,"file":"Card.test.js","names":[],"sources":["../../../src/components/Card/Card.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { Card } from './Card';\n\ndescribe('Card', () => {\n it('should render', () => {\n render(<Card header=\"Header Card\" />);\n expect(screen.getByText('Header Card')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,cAAc;CACrB,GAAG,uBAAuB;EAExB,AADA,EAAO,kBAAC,GAAD,EAAM,QAAO,cAAe,CAAA,CAAC,GACpC,OAAO,EAAO,UAAU,aAAa,CAAC,EAAE,kBAAkB;CAC5D,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"Card.test.js","names":[],"sources":["../../../src/components/Card/Card.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { Card } from './Card';\n\ndescribe('Card', () => {\n it('should render', () => {\n render(<Card header=\"Header Card\" />);\n expect(screen.getByText('Header Card')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,cAAc;CACrB,GAAG,uBAAuB;EAExB,AADA,EAAO,kBAAC,GAAD,EAAM,QAAO,cAAe,CAAA,CAAC,GACpC,OAAO,EAAO,UAAU,aAAa,CAAC,CAAC,CAAC,kBAAkB;CAC5D,CAAC;AACH,CAAC"}
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../test-WxLxsxwA.js";
1
+ import { r as e } from "../../test-Gtly6H2f.js";
2
2
  import { t } from "../../Checkbox-sAt4To2B.js";
3
3
  import { t as n } from "../../Label-52ny6d06.js";
4
4
  import { t as r } from "../../FormField-ByjTkKKq.js";
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.stories.js","names":[],"sources":["../../../src/components/Checkbox/Checkbox.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { CheckboxProps } from './Checkbox';\n\nimport { Checkbox } from './Checkbox';\n\nimport { FormField } from 'components/FormField';\nimport { Label } from 'components/Label';\n\nconst codeString = '<Checkbox checked={} id={} onChange={} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Checkbox',\n component: Checkbox,\n parameters: {\n inspectComponent: Checkbox,\n codeString: codeString,\n },\n} as Meta<CheckboxProps>;\n\nconst Template: StoryFn<CheckboxProps> = (args) => (\n <FormField inline>\n <Checkbox id=\"72103b4d\" {...args} />\n <Label htmlFor=\"72103b4d\">Example Checkbox</Label>\n </FormField>\n);\n\nexport const CheckboxExample = Template.bind({});\nCheckboxExample.args = {\n onChange: fn(),\n};\n\n// Extra story created for UX to see how we can solve placement of checkbox when paired with long content\n// TODO: should this component be refactored to always include a label? (see RadioButton)\nconst WithLongLabelTemplate: StoryFn<CheckboxProps> = (args) => (\n <FormField inline>\n <div\n style={{\n alignSelf: 'flex-start',\n marginTop: '0.18rem',\n }}\n >\n <Checkbox id=\"72103b4e\" {...args} />\n </div>\n <Label htmlFor=\"72103b4e\">\n Example Checkbox with long long long long long long long long long long long long long long long long long long\n long long long long long long long long long long long long long long long long long long long long long long long\n long long long long long long long long long long long long long long long long long long long long long long long\n long long long long long long long long long long long label\n </Label>\n </FormField>\n);\n\nexport const WithLongLabel = WithLongLabelTemplate.bind({});\nWithLongLabel.args = {\n onChange: fn(),\n};\n"],"mappings":";;;;;AAaA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN;CACd;AACF,GASa,MAP6B,MACxC,kBAAC,GAAD;CAAW,QAAA;WAAX,CACE,kBAAC,GAAD;EAAU,IAAG;EAAW,GAAI;CAAO,CAAA,GACnC,kBAAC,GAAD;EAAO,SAAQ;YAAW;CAAuB,CAAA,CACxC;IAG2B,KAAK,CAAC,CAAC;AAC/C,EAAgB,OAAO,EACrB,UAAU,EAAG,EACf;AAuBA,IAAa,MAnB0C,MACrD,kBAAC,GAAD;CAAW,QAAA;WAAX,CACE,kBAAC,OAAD;EACE,OAAO;GACL,WAAW;GACX,WAAW;EACb;YAEA,kBAAC,GAAD;GAAU,IAAG;GAAW,GAAI;EAAO,CAAA;CAChC,CAAA,GACL,kBAAC,GAAD;EAAO,SAAQ;YAAW;CAKnB,CAAA,CACE;IAGsC,KAAK,CAAC,CAAC;AAC1D,EAAc,OAAO,EACnB,UAAU,EAAG,EACf"}
1
+ {"version":3,"file":"Checkbox.stories.js","names":[],"sources":["../../../src/components/Checkbox/Checkbox.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { CheckboxProps } from './Checkbox';\n\nimport { Checkbox } from './Checkbox';\n\nimport { FormField } from 'components/FormField';\nimport { Label } from 'components/Label';\n\nconst codeString = '<Checkbox checked={} id={} onChange={} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Checkbox',\n component: Checkbox,\n parameters: {\n inspectComponent: Checkbox,\n codeString: codeString,\n },\n} as Meta<CheckboxProps>;\n\nconst Template: StoryFn<CheckboxProps> = (args) => (\n <FormField inline>\n <Checkbox id=\"72103b4d\" {...args} />\n <Label htmlFor=\"72103b4d\">Example Checkbox</Label>\n </FormField>\n);\n\nexport const CheckboxExample = Template.bind({});\nCheckboxExample.args = {\n onChange: fn(),\n};\n\n// Extra story created for UX to see how we can solve placement of checkbox when paired with long content\n// TODO: should this component be refactored to always include a label? (see RadioButton)\nconst WithLongLabelTemplate: StoryFn<CheckboxProps> = (args) => (\n <FormField inline>\n <div\n style={{\n alignSelf: 'flex-start',\n marginTop: '0.18rem',\n }}\n >\n <Checkbox id=\"72103b4e\" {...args} />\n </div>\n <Label htmlFor=\"72103b4e\">\n Example Checkbox with long long long long long long long long long long long long long long long long long long\n long long long long long long long long long long long long long long long long long long long long long long long\n long long long long long long long long long long long long long long long long long long long long long long long\n long long long long long long long long long long long label\n </Label>\n </FormField>\n);\n\nexport const WithLongLabel = WithLongLabelTemplate.bind({});\nWithLongLabel.args = {\n onChange: fn(),\n};\n"],"mappings":";;;;;AAaA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN;CACd;AACF,GASa,MAP6B,MACxC,kBAAC,GAAD;CAAW,QAAA;WAAX,CACE,kBAAC,GAAD;EAAU,IAAG;EAAW,GAAI;CAAO,CAAA,GACnC,kBAAC,GAAD;EAAO,SAAQ;YAAW;CAAuB,CAAA,CACxC;GAGkB,CAAS,KAAK,CAAC,CAAC;AAC/C,EAAgB,OAAO,EACrB,UAAU,EAAG,EACf;AAuBA,IAAa,MAnB0C,MACrD,kBAAC,GAAD;CAAW,QAAA;WAAX,CACE,kBAAC,OAAD;EACE,OAAO;GACL,WAAW;GACX,WAAW;EACb;YAEA,kBAAC,GAAD;GAAU,IAAG;GAAW,GAAI;EAAO,CAAA;CAChC,CAAA,GACL,kBAAC,GAAD;EAAO,SAAQ;YAAW;CAKnB,CAAA,CACE;GAGgB,CAAsB,KAAK,CAAC,CAAC;AAC1D,EAAc,OAAO,EACnB,UAAU,EAAG,EACf"}
@@ -1,7 +1,7 @@
1
- import "../../dist-C6Ar8a59.js";
1
+ import "../../dist-oLwM--0y.js";
2
2
  import { t as e } from "../../Checkbox-sAt4To2B.js";
3
- import { i as t, n } from "../../react.esm-56DGmlLk.js";
4
- import { t as r } from "../../esm-B6Pg-v2v.js";
3
+ import { i as t, n } from "../../react.esm-DwWzhs9e.js";
4
+ import { t as r } from "../../esm-BXzGXYWZ.js";
5
5
  import { jsx as i } from "react/jsx-runtime";
6
6
  //#region src/components/Checkbox/Checkbox.test.tsx
7
7
  describe("Checkbox", () => {
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.test.js","names":[],"sources":["../../../src/components/Checkbox/Checkbox.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\n\nimport { Checkbox } from './Checkbox';\n\ndescribe('Checkbox', () => {\n it('should render', () => {\n render(<Checkbox id=\"test-checkbox\" />);\n const checkbox = screen.getByRole('checkbox');\n expect(checkbox).toBeInTheDocument();\n });\n\n it('should be checked if clicked', async () => {\n render(<Checkbox id=\"test-checkbox\" />);\n const checkbox = screen.getByRole('checkbox');\n expect(checkbox).toBeInTheDocument();\n await userEvent.click(checkbox);\n expect(checkbox).toBeChecked();\n });\n});\n"],"mappings":";;;;;;AAMA,SAAS,kBAAkB;CAOzB,AANA,GAAG,uBAAuB;EACxB,EAAO,kBAAC,GAAD,EAAU,IAAG,gBAAiB,CAAA,CAAC;EACtC,IAAM,IAAW,EAAO,UAAU,UAAU;EAC5C,OAAO,CAAQ,EAAE,kBAAkB;CACrC,CAAC,GAED,GAAG,gCAAgC,YAAY;EAC7C,EAAO,kBAAC,GAAD,EAAU,IAAG,gBAAiB,CAAA,CAAC;EACtC,IAAM,IAAW,EAAO,UAAU,UAAU;EAG5C,AAFA,OAAO,CAAQ,EAAE,kBAAkB,GACnC,MAAM,EAAU,MAAM,CAAQ,GAC9B,OAAO,CAAQ,EAAE,YAAY;CAC/B,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"Checkbox.test.js","names":[],"sources":["../../../src/components/Checkbox/Checkbox.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\n\nimport { Checkbox } from './Checkbox';\n\ndescribe('Checkbox', () => {\n it('should render', () => {\n render(<Checkbox id=\"test-checkbox\" />);\n const checkbox = screen.getByRole('checkbox');\n expect(checkbox).toBeInTheDocument();\n });\n\n it('should be checked if clicked', async () => {\n render(<Checkbox id=\"test-checkbox\" />);\n const checkbox = screen.getByRole('checkbox');\n expect(checkbox).toBeInTheDocument();\n await userEvent.click(checkbox);\n expect(checkbox).toBeChecked();\n });\n});\n"],"mappings":";;;;;;AAMA,SAAS,kBAAkB;CAOzB,AANA,GAAG,uBAAuB;EACxB,EAAO,kBAAC,GAAD,EAAU,IAAG,gBAAiB,CAAA,CAAC;EACtC,IAAM,IAAW,EAAO,UAAU,UAAU;EAC5C,OAAO,CAAQ,CAAC,CAAC,kBAAkB;CACrC,CAAC,GAED,GAAG,gCAAgC,YAAY;EAC7C,EAAO,kBAAC,GAAD,EAAU,IAAG,gBAAiB,CAAA,CAAC;EACtC,IAAM,IAAW,EAAO,UAAU,UAAU;EAG5C,AAFA,OAAO,CAAQ,CAAC,CAAC,kBAAkB,GACnC,MAAM,EAAU,MAAM,CAAQ,GAC9B,OAAO,CAAQ,CAAC,CAAC,YAAY;CAC/B,CAAC;AACH,CAAC"}
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../test-WxLxsxwA.js";
1
+ import { r as e } from "../../test-Gtly6H2f.js";
2
2
  import { t } from "../../CheckboxButtonBar-OrJSqUTN.js";
3
3
  import { t as n } from "../../Periods-B4ms3N24.js";
4
4
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
- import "../../dist-C6Ar8a59.js";
1
+ import "../../dist-oLwM--0y.js";
2
2
  import { t as e } from "../../CheckboxButtonBar-OrJSqUTN.js";
3
- import { i as t, n } from "../../react.esm-56DGmlLk.js";
3
+ import { i as t, n } from "../../react.esm-DwWzhs9e.js";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  //#region src/components/CheckboxButtonBar/CheckboxButtonBar.test.tsx
6
6
  var i = jest.fn(), a = [
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxButtonBar.test.js","names":[],"sources":["../../../src/components/CheckboxButtonBar/CheckboxButtonBar.test.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-magic-numbers */\nimport '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { CheckboxButtonBar } from './CheckboxButtonBar';\n\nconst onClickSpy = jest.fn();\n\nconst MOCK_CHECKBOXES = [\n {\n label: '1.1',\n value: '1',\n },\n {\n label: '1.2',\n value: '2',\n },\n {\n label: '1.3',\n value: '3',\n },\n];\n\ndescribe('CheckboxButton', () => {\n it('should render', () => {\n render(\n <CheckboxButtonBar\n label=\"Periode\"\n checkboxes={MOCK_CHECKBOXES}\n defaultValues={['1', '2']}\n labelPosition=\"top\"\n onSetValues={onClickSpy}\n />\n );\n expect(screen.getByText('Periode')).toBeInTheDocument();\n const checkbox = screen.getAllByRole('checkbox');\n expect(checkbox).toHaveLength(3);\n });\n\n it('should render required', () => {\n render(\n <CheckboxButtonBar\n label=\"Periode\"\n required={true}\n checkboxes={MOCK_CHECKBOXES}\n defaultValues={['1', '2']}\n labelPosition=\"top\"\n onSetValues={onClickSpy}\n />\n );\n const label = screen.getByText('Periode');\n expect(label).toHaveTextContent('Periode');\n expect(label).toHaveClass('label--required');\n const checkbox = screen.getAllByRole('checkbox');\n expect(checkbox).toHaveLength(3);\n });\n\n it('should render default checked', () => {\n render(\n <CheckboxButtonBar\n label=\"Periode\"\n checkboxes={MOCK_CHECKBOXES}\n defaultValues={['1', '2']}\n labelPosition=\"top\"\n onSetValues={onClickSpy}\n />\n );\n const label = screen.getByText('Periode');\n expect(label).toHaveTextContent('Periode');\n const checkbox = screen.getAllByRole('checkbox');\n expect(checkbox).toHaveLength(3);\n expect(checkbox[0]).toBeChecked();\n expect(checkbox[1]).toBeChecked();\n expect(checkbox[2]).not.toBeChecked();\n });\n\n it('should render notValidatedText and notValid style', () => {\n render(\n <CheckboxButtonBar\n label=\"Periode\"\n notValidatedText=\"Not Valid\"\n checkboxes={MOCK_CHECKBOXES}\n defaultValues={['1', '2']}\n labelPosition=\"top\"\n onSetValues={onClickSpy}\n />\n );\n const label = screen.getByText('Periode');\n expect(label).toHaveTextContent('Periode');\n expect(screen.getByText('Not Valid')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;AAMA,IAAM,IAAa,KAAK,GAAG,GAErB,IAAkB;CACtB;EACE,OAAO;EACP,OAAO;CACT;CACA;EACE,OAAO;EACP,OAAO;CACT;CACA;EACE,OAAO;EACP,OAAO;CACT;AACF;AAEA,SAAS,wBAAwB;CAqD/B,AApDA,GAAG,uBAAuB;EAUxB,AATA,EACE,kBAAC,GAAD;GACE,OAAM;GACN,YAAY;GACZ,eAAe,CAAC,KAAK,GAAG;GACxB,eAAc;GACd,aAAa;EACd,CAAA,CACH,GACA,OAAO,EAAO,UAAU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../../../src/components/CheckboxButtonBar/CheckboxButtonBar.test.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-magic-numbers */\nimport '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { CheckboxButtonBar } from './CheckboxButtonBar';\n\nconst onClickSpy = jest.fn();\n\nconst MOCK_CHECKBOXES = [\n {\n label: '1.1',\n value: '1',\n },\n {\n label: '1.2',\n value: '2',\n },\n {\n label: '1.3',\n value: '3',\n },\n];\n\ndescribe('CheckboxButton', () => {\n it('should render', () => {\n render(\n <CheckboxButtonBar\n label=\"Periode\"\n checkboxes={MOCK_CHECKBOXES}\n defaultValues={['1', '2']}\n labelPosition=\"top\"\n onSetValues={onClickSpy}\n />\n );\n expect(screen.getByText('Periode')).toBeInTheDocument();\n const checkbox = screen.getAllByRole('checkbox');\n expect(checkbox).toHaveLength(3);\n });\n\n it('should render required', () => {\n render(\n <CheckboxButtonBar\n label=\"Periode\"\n required={true}\n checkboxes={MOCK_CHECKBOXES}\n defaultValues={['1', '2']}\n labelPosition=\"top\"\n onSetValues={onClickSpy}\n />\n );\n const label = screen.getByText('Periode');\n expect(label).toHaveTextContent('Periode');\n expect(label).toHaveClass('label--required');\n const checkbox = screen.getAllByRole('checkbox');\n expect(checkbox).toHaveLength(3);\n });\n\n it('should render default checked', () => {\n render(\n <CheckboxButtonBar\n label=\"Periode\"\n checkboxes={MOCK_CHECKBOXES}\n defaultValues={['1', '2']}\n labelPosition=\"top\"\n onSetValues={onClickSpy}\n />\n );\n const label = screen.getByText('Periode');\n expect(label).toHaveTextContent('Periode');\n const checkbox = screen.getAllByRole('checkbox');\n expect(checkbox).toHaveLength(3);\n expect(checkbox[0]).toBeChecked();\n expect(checkbox[1]).toBeChecked();\n expect(checkbox[2]).not.toBeChecked();\n });\n\n it('should render notValidatedText and notValid style', () => {\n render(\n <CheckboxButtonBar\n label=\"Periode\"\n notValidatedText=\"Not Valid\"\n checkboxes={MOCK_CHECKBOXES}\n defaultValues={['1', '2']}\n labelPosition=\"top\"\n onSetValues={onClickSpy}\n />\n );\n const label = screen.getByText('Periode');\n expect(label).toHaveTextContent('Periode');\n expect(screen.getByText('Not Valid')).toBeInTheDocument();\n });\n});\n"],"mappings":";;;;;AAMA,IAAM,IAAa,KAAK,GAAG,GAErB,IAAkB;CACtB;EACE,OAAO;EACP,OAAO;CACT;CACA;EACE,OAAO;EACP,OAAO;CACT;CACA;EACE,OAAO;EACP,OAAO;CACT;AACF;AAEA,SAAS,wBAAwB;CAqD/B,AApDA,GAAG,uBAAuB;EAUxB,AATA,EACE,kBAAC,GAAD;GACE,OAAM;GACN,YAAY;GACZ,eAAe,CAAC,KAAK,GAAG;GACxB,eAAc;GACd,aAAa;EACd,CAAA,CACH,GACA,OAAO,EAAO,UAAU,SAAS,CAAC,CAAC,CAAC,kBAAkB;EACtD,IAAM,IAAW,EAAO,aAAa,UAAU;EAC/C,OAAO,CAAQ,CAAC,CAAC,aAAa,CAAC;CACjC,CAAC,GAED,GAAG,gCAAgC;EACjC,EACE,kBAAC,GAAD;GACE,OAAM;GACN,UAAU;GACV,YAAY;GACZ,eAAe,CAAC,KAAK,GAAG;GACxB,eAAc;GACd,aAAa;EACd,CAAA,CACH;EACA,IAAM,IAAQ,EAAO,UAAU,SAAS;EAExC,AADA,OAAO,CAAK,CAAC,CAAC,kBAAkB,SAAS,GACzC,OAAO,CAAK,CAAC,CAAC,YAAY,iBAAiB;EAC3C,IAAM,IAAW,EAAO,aAAa,UAAU;EAC/C,OAAO,CAAQ,CAAC,CAAC,aAAa,CAAC;CACjC,CAAC,GAED,GAAG,uCAAuC;EACxC,EACE,kBAAC,GAAD;GACE,OAAM;GACN,YAAY;GACZ,eAAe,CAAC,KAAK,GAAG;GACxB,eAAc;GACd,aAAa;EACd,CAAA,CACH;EACA,IAAM,IAAQ,EAAO,UAAU,SAAS;EACxC,OAAO,CAAK,CAAC,CAAC,kBAAkB,SAAS;EACzC,IAAM,IAAW,EAAO,aAAa,UAAU;EAI/C,AAHA,OAAO,CAAQ,CAAC,CAAC,aAAa,CAAC,GAC/B,OAAO,EAAS,EAAE,CAAC,CAAC,YAAY,GAChC,OAAO,EAAS,EAAE,CAAC,CAAC,YAAY,GAChC,OAAO,EAAS,EAAE,CAAC,CAAC,IAAI,YAAY;CACtC,CAAC,GAED,GAAG,2DAA2D;EAC5D,EACE,kBAAC,GAAD;GACE,OAAM;GACN,kBAAiB;GACjB,YAAY;GACZ,eAAe,CAAC,KAAK,GAAG;GACxB,eAAc;GACd,aAAa;EACd,CAAA,CACH;EACA,IAAM,IAAQ,EAAO,UAAU,SAAS;EAExC,AADA,OAAO,CAAK,CAAC,CAAC,kBAAkB,SAAS,GACzC,OAAO,EAAO,UAAU,WAAW,CAAC,CAAC,CAAC,kBAAkB;CAC1D,CAAC;AACH,CAAC"}
@@ -1,2 +1,2 @@
1
- import { h as e } from "../../components-KU0q76JR.js";
1
+ import { h as e } from "../../components-CgBF6db6.js";
2
2
  export { e as CheckboxTree };
@@ -1,6 +1,6 @@
1
- import { o as e } from "../../chunk-5WKL7XVT-3IraU-Ja.js";
2
- import { r as t } from "../../test-WxLxsxwA.js";
3
- import { h as n } from "../../components-KU0q76JR.js";
1
+ import { o as e } from "../../chunk-5WKL7XVT-CvOIS3NE.js";
2
+ import { r as t } from "../../test-Gtly6H2f.js";
3
+ import { h as n } from "../../components-CgBF6db6.js";
4
4
  import { t as r } from "../../Chip-9XnXFhoJ.js";
5
5
  import { useState as i } from "react";
6
6
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxTree.stories.js","names":[],"sources":["../../../src/components/CheckboxTree/CheckboxTree.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\nimport { action } from 'storybook/actions';\nimport { useState } from 'react';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { CheckboxLeaf, CheckboxBranch, CheckboxTreeProps } from './CheckboxTree';\n\nimport { CheckboxTree } from './CheckboxTree';\n\nimport { Chip } from 'components/Chip';\n\nconst createPeriodTree = (periodIndices: string[], numberOfPeriods: number, periodPerSemester: number) => {\n const allPeriods = Array.from({ length: numberOfPeriods }, (_, idx) => idx + 1);\n\n const periodValueToLabel = (value: string) => {\n const semester = Math.ceil(parseInt(value) / periodPerSemester);\n const period = semester === periodPerSemester ? '' : `.${parseInt(value) % periodPerSemester || periodPerSemester}`;\n return `${semester}${period}`;\n };\n\n const periodTree = allPeriods.map((periodIndex) => ({\n itemName: periodValueToLabel(String(periodIndex)),\n itemValue: periodIndex,\n disabled: false,\n }));\n\n const periodTreeObject = allPeriods.reduce((periods, currentPeriod, periodIndex) => {\n const semester = Math.ceil(currentPeriod / periodPerSemester);\n if (periodIndices.includes(String(periodIndex + 1))) {\n if (!periods[semester]) {\n periods[semester] = {\n itemName: `Semester ${semester}`,\n children: [],\n };\n }\n periods[semester].children.push({\n ...periodTree[periodIndex],\n itemValue: String(periodTree[periodIndex].itemValue),\n } as CheckboxLeaf);\n }\n return periods;\n }, [] as CheckboxBranch[]);\n\n return periodTreeObject;\n};\n\nconst NUMBER_OF_PERIODS = 7;\nconst PERIOD_PER_SEMESTER = 3;\n\nconst MOCK_CHECKBOX_TREE = createPeriodTree(\n ['1', '2', '3', '4', '5', '6', '7'],\n NUMBER_OF_PERIODS,\n PERIOD_PER_SEMESTER\n);\n\nconst codeString = '<CheckboxTree title={} checkboxTree={} selectedValues={} onChange={} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/CheckboxTree',\n component: CheckboxTree,\n parameters: {\n inspectComponent: CheckboxTree,\n codeString: codeString,\n },\n} as Meta<CheckboxTreeProps>;\n\nconst Template: StoryFn<CheckboxTreeProps> = (args) => <CheckboxTree {...args} />;\n\nexport const CheckboxTreeExample = Template.bind({});\nCheckboxTreeExample.args = {\n title: 'Periode',\n checkboxTree: MOCK_CHECKBOX_TREE,\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n selectedValues: ['3', '4'],\n onChange: fn(),\n};\n\nconst PERIOD_SEGMENT = 3;\n\nconst periodValueToLabel = (value: string) => {\n const semester = Math.ceil(parseInt(value) / PERIOD_SEGMENT);\n const period = semester === PERIOD_SEGMENT ? '' : `.${parseInt(value) % PERIOD_SEGMENT || PERIOD_SEGMENT}`;\n return `${semester}${period}`;\n};\n\nconst periodLabelToValue = (value: string): string => {\n const [row, col] = value.split('.').map(Number);\n return `${(row - 1) * PERIOD_SEGMENT + (col || 1)}`;\n};\n\nexport const CheckboxTreeWithChips: StoryFn<CheckboxTreeProps> = () => {\n const [activeFilters, setActiveFilters] = useState<string[]>(['5', '4', '1']);\n\n const handleRemoveActiveFilter = (filterToRemove: string) => {\n const newActiveFilters = JSON.parse(JSON.stringify(activeFilters)).filter(\n (filter: string) => filter !== periodLabelToValue(filterToRemove)\n );\n\n setActiveFilters(() => newActiveFilters);\n action('onChange value:')(newActiveFilters);\n };\n\n const handlePeriodChange = (value: string[]) => {\n setActiveFilters([...value]);\n action('onChange value:')(value);\n };\n\n return (\n <div style={{ width: '15rem' }}>\n <div style={{ display: 'flex', flexWrap: 'wrap', gap: '0.5rem', width: '100%', marginBottom: '1rem' }}>\n {activeFilters &&\n activeFilters.map((activeFilter, index) => (\n <Chip\n label={periodValueToLabel(activeFilter)}\n onDelete={handleRemoveActiveFilter}\n key={`${index}_${activeFilter}`}\n />\n ))}\n </div>\n <CheckboxTree\n title=\"Periode\"\n checkboxTree={MOCK_CHECKBOX_TREE}\n selectedValues={activeFilters}\n onChange={handlePeriodChange}\n />\n </div>\n );\n};\n"],"mappings":";;;;;;AAiDA,IAAM,MAtCoB,GAAyB,GAAyB,MAA8B;CACxG,IAAM,IAAa,MAAM,KAAK,EAAE,QAAQ,EAAgB,IAAI,GAAG,MAAQ,IAAM,CAAC,GAExE,KAAsB,MAAkB;EAC5C,IAAM,IAAW,KAAK,KAAK,SAAS,CAAK,IAAI,CAAiB;EAE9D,OAAO,GAAG,IADK,MAAa,IAAoB,KAAK,IAAI,S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,IAAmB,KAAK,MAAM,KAAK,UAAU,CAAa,CAAC,EAAE,QAChE,MAAmB,MAAW,EAAmB,CAAc,CAClE;EAGA,AADA,QAAuB,CAAgB,GACvC,EAAO,iBAAiB,EAAE,CAAgB;CAC5C;CAOA,OACE,kBAAC,OAAD;EAAK,OAAO,EAAE,OAAO,QAAQ;YAA7B,CACE,kBAAC,OAAD;GAAK,OAAO;IAAE,SAAS;IAAQ,UAAU;IAAQ,KAAK;IAAU,OAAO;IAAQ,cAAc;GAAO;aACjG,KACC,EAAc,KAAK,GAAc,MAC/B,kBAAC,GAAD;IACE,OAAO,EAAmB,CAAY;IACtC,UAAU;GAEX,GADM,GAAG,EAAM,GAAG,GAClB,CACF;EACA,CAAA,GACL,kBAAC,GAAD;GACE,OAAM;GACN,cAAc;GACd,gBAAgB;GAChB,WArBsB,MAAoB;IAE9C,AADA,EAAiB,CAAC,GAAG,CAAK,CAAC,GAC3B,EAAO,iBAAiB,EAAE,CAAK;GACjC;EAmBK,CAAA,CACE;;AAET"}
1
+ {"version":3,"file":"CheckboxTree.stories.js","names":[],"sources":["../../../src/components/CheckboxTree/CheckboxTree.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\nimport { action } from 'storybook/actions';\nimport { useState } from 'react';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { CheckboxBranch, CheckboxTreeProps } from './CheckboxTree';\n\nimport { CheckboxTree } from './CheckboxTree';\n\nimport { Chip } from 'components/Chip';\n\nconst createPeriodTree = (periodIndices: string[], numberOfPeriods: number, periodPerSemester: number) => {\n const allPeriods = Array.from({ length: numberOfPeriods }, (_, idx) => idx + 1);\n\n const periodValueToLabel = (value: string) => {\n const semester = Math.ceil(parseInt(value) / periodPerSemester);\n const period = semester === periodPerSemester ? '' : `.${parseInt(value) % periodPerSemester || periodPerSemester}`;\n return `${semester}${period}`;\n };\n\n const periodTree = allPeriods.map((periodIndex) => ({\n itemName: periodValueToLabel(String(periodIndex)),\n itemValue: periodIndex,\n disabled: false,\n }));\n\n const periodTreeObject = allPeriods.reduce((periods, currentPeriod, periodIndex) => {\n const semester = Math.ceil(currentPeriod / periodPerSemester);\n if (periodIndices.includes(String(periodIndex + 1))) {\n if (!periods[semester]) {\n periods[semester] = {\n itemName: `Semester ${semester}`,\n children: [],\n };\n }\n periods[semester].children.push({\n ...periodTree[periodIndex],\n itemValue: String(periodTree[periodIndex].itemValue),\n });\n }\n return periods;\n }, [] as CheckboxBranch[]);\n\n return periodTreeObject;\n};\n\nconst NUMBER_OF_PERIODS = 7;\nconst PERIOD_PER_SEMESTER = 3;\n\nconst MOCK_CHECKBOX_TREE = createPeriodTree(\n ['1', '2', '3', '4', '5', '6', '7'],\n NUMBER_OF_PERIODS,\n PERIOD_PER_SEMESTER\n);\n\nconst codeString = '<CheckboxTree title={} checkboxTree={} selectedValues={} onChange={} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/CheckboxTree',\n component: CheckboxTree,\n parameters: {\n inspectComponent: CheckboxTree,\n codeString: codeString,\n },\n} as Meta<CheckboxTreeProps>;\n\nconst Template: StoryFn<CheckboxTreeProps> = (args) => <CheckboxTree {...args} />;\n\nexport const CheckboxTreeExample = Template.bind({});\nCheckboxTreeExample.args = {\n title: 'Periode',\n checkboxTree: MOCK_CHECKBOX_TREE,\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n selectedValues: ['3', '4'],\n onChange: fn(),\n};\n\nconst PERIOD_SEGMENT = 3;\n\nconst periodValueToLabel = (value: string) => {\n const semester = Math.ceil(parseInt(value) / PERIOD_SEGMENT);\n const period = semester === PERIOD_SEGMENT ? '' : `.${parseInt(value) % PERIOD_SEGMENT || PERIOD_SEGMENT}`;\n return `${semester}${period}`;\n};\n\nconst periodLabelToValue = (value: string): string => {\n const [row, col] = value.split('.').map(Number);\n return `${(row - 1) * PERIOD_SEGMENT + (col || 1)}`;\n};\n\nexport const CheckboxTreeWithChips: StoryFn<CheckboxTreeProps> = () => {\n const [activeFilters, setActiveFilters] = useState<string[]>(['5', '4', '1']);\n\n const handleRemoveActiveFilter = (filterToRemove: string) => {\n const newActiveFilters = JSON.parse(JSON.stringify(activeFilters)).filter(\n (filter: string) => filter !== periodLabelToValue(filterToRemove)\n );\n\n setActiveFilters(() => newActiveFilters);\n action('onChange value:')(newActiveFilters);\n };\n\n const handlePeriodChange = (value: string[]) => {\n setActiveFilters([...value]);\n action('onChange value:')(value);\n };\n\n return (\n <div style={{ width: '15rem' }}>\n <div style={{ display: 'flex', flexWrap: 'wrap', gap: '0.5rem', width: '100%', marginBottom: '1rem' }}>\n {activeFilters &&\n activeFilters.map((activeFilter, index) => (\n <Chip\n label={periodValueToLabel(activeFilter)}\n onDelete={handleRemoveActiveFilter}\n key={`${index}_${activeFilter}`}\n />\n ))}\n </div>\n <CheckboxTree\n title=\"Periode\"\n checkboxTree={MOCK_CHECKBOX_TREE}\n selectedValues={activeFilters}\n onChange={handlePeriodChange}\n />\n </div>\n );\n};\n"],"mappings":";;;;;;AAiDA,IAAM,MAtCoB,GAAyB,GAAyB,MAA8B;CACxG,IAAM,IAAa,MAAM,KAAK,EAAE,QAAQ,EAAgB,IAAI,GAAG,MAAQ,IAAM,CAAC,GAExE,KAAsB,MAAkB;EAC5C,IAAM,IAAW,KAAK,KAAK,SAAS,CAAK,IAAI,CAAiB;EAE9D,OAAO,GAAG,IADK,MAAa,IAAoB,KAAK,IAAI,SAAS,CAAK,IAAI,KAAqB;CAElG,GAEM,IAAa,EAAW,KAAK,OAAiB;EAClD,UAAU,EAAmB,OAAO,CAAW,CAAC;EAChD,WAAW;EACX,UAAU;CACZ,EAAE;CAmBF,OAjByB,EAAW,QAAQ,GAAS,GAAe,MAAgB;EAClF,IAAM,IAAW,KAAK,KAAK,IAAgB,CAAiB;EAa5D,OAZI,EAAc,SAAS,OAAO,IAAc,CAAC,CAAC,MAC3C,EAAQ,OACX,EAAQ,KAAY;GAClB,UAAU,YAAY;GACtB,UAAU,CAAC;EACb,IAEF,EAA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O;aACjG,KACC,EAAc,KAAK,GAAc,MAC/B,kBAAC,GAAD;IACE,OAAO,EAAmB,CAAY;IACtC,UAAU;GAEX,GADM,GAAG,EAAM,GAAG,GAClB,CACF;EACA,CAAA,GACL,kBAAC,GAAD;GACE,OAAM;GACN,cAAc;GACd,gBAAgB;GAChB,WArBsB,MAAoB;IAE9C,AADA,EAAiB,CAAC,GAAG,CAAK,CAAC,GAC3B,EAAO,iBAAiB,CAAC,CAAC,CAAK;GACjC;EAmBK,CAAA,CACE;;AAET"}
@@ -1,2 +1,2 @@
1
- import { h as e } from "../../components-KU0q76JR.js";
1
+ import { h as e } from "../../components-CgBF6db6.js";
2
2
  export { e as CheckboxTree };
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../test-WxLxsxwA.js";
1
+ import { r as e } from "../../test-Gtly6H2f.js";
2
2
  import { t } from "../../Chip-9XnXFhoJ.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  var r = {
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../test-WxLxsxwA.js";
1
+ import { r as e } from "../../test-Gtly6H2f.js";
2
2
  import { t } from "../../icons-C80wqcF0.js";
3
3
  import { t as n } from "../../ControlsButton-Byx4XQtB.js";
4
4
  import { t as r } from "../../Periods-B4ms3N24.js";
@@ -1 +1 @@
1
- {"version":3,"file":"CopyableText.stories.js","names":[],"sources":["../../../src/components/CopyableText/CopyableText.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\r\nimport type { CopyableTextProps } from './CopyableText';\r\n\r\nimport { CopyableText } from './CopyableText';\r\n\r\nconst codeString =\r\n '<CopyableText text={string} additionalClassName={string} ariaLabelCopy={string} ariaLabelHasBeenCopied={string} />';\r\n\r\n// Adding custom styles for the story\r\nconst customStyle = document.createElement('style');\r\ncustomStyle.type = 'text/css';\r\ncustomStyle.innerHTML = '.customClass { font-weight: bold; color: #333; }';\r\ndocument.head.appendChild(customStyle);\r\n\r\n// eslint-disable-next-line import/no-default-export\r\nexport default {\r\n title: 'Atoms/CopyableText',\r\n component: CopyableText,\r\n argTypes: {\r\n additionalClassName: {\r\n table: {\r\n disable: true,\r\n },\r\n },\r\n },\r\n parameters: {\r\n inspectComponent: CopyableText,\r\n codeString,\r\n },\r\n} as Meta<CopyableTextProps>;\r\n\r\nconst Template: StoryFn<CopyableTextProps> = (args) => {\r\n return (\r\n <div style={{ padding: '1rem', backgroundColor: '#FFF', display: 'flex', gap: '1rem', alignItems: 'center' }}>\r\n <CopyableText {...args} />\r\n <span>EC</span>\r\n <span>Tutoring and Study Guidance Advanced Professional Programme in Conservation and Restoration</span>\r\n </div>\r\n );\r\n};\r\n\r\nexport const CopyableTextExample = Template.bind({});\r\nCopyableTextExample.args = {\r\n text: '3154CAR1VY',\r\n additionalClassName: 'customClass',\r\n ariaLabelCopy: 'Copy to clipboard',\r\n ariaLabelHasBeenCopied: 'Copied to clipboard',\r\n};\r\n"],"mappings":";;;AAKA,IAAM,IACJ,sHAGI,IAAc,SAAS,cAAc,OAAO;AAClD,EAAY,OAAO,YACnB,EAAY,YAAY,oDACxB,SAAS,KAAK,YAAY,CAAW;AAGrC,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU,EACR,qBAAqB,EACnB,OAAO,EACL,SAAS,GACX,EACF,EACF;CACA,YAAY;EACV,kBAAkB;EAClB;CACF;AACF,GAYa,MAViC,MAE1C,kBAAC,OAAD;CAAK,OAAO;EAAE,SAAS;EAAQ,iBAAiB;EAAQ,SAAS;EAAQ,KAAK;EAAQ,YAAY;CAAS;WAA3G;EACE,kBAAC,GAAD,EAAc,GAAI,EAAO,CAAA;EACzB,kBAAC,QAAD,EAAA,UAAM,KAAQ,CAAA;EACd,kBAAC,QAAD,EAAA,UAAM,8FAAiG,CAAA;CACpG;IAImC,KAAK,CAAC,CAAC;AACnD,EAAoB,OAAO;CACzB,MAAM;CACN,qBAAqB;CACrB,eAAe;CACf,wBAAwB;AAC1B"}
1
+ {"version":3,"file":"CopyableText.stories.js","names":[],"sources":["../../../src/components/CopyableText/CopyableText.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\r\nimport type { CopyableTextProps } from './CopyableText';\r\n\r\nimport { CopyableText } from './CopyableText';\r\n\r\nconst codeString =\r\n '<CopyableText text={string} additionalClassName={string} ariaLabelCopy={string} ariaLabelHasBeenCopied={string} />';\r\n\r\n// Adding custom styles for the story\r\nconst customStyle = document.createElement('style');\r\ncustomStyle.type = 'text/css';\r\ncustomStyle.innerHTML = '.customClass { font-weight: bold; color: #333; }';\r\ndocument.head.appendChild(customStyle);\r\n\r\n// eslint-disable-next-line import/no-default-export\r\nexport default {\r\n title: 'Atoms/CopyableText',\r\n component: CopyableText,\r\n argTypes: {\r\n additionalClassName: {\r\n table: {\r\n disable: true,\r\n },\r\n },\r\n },\r\n parameters: {\r\n inspectComponent: CopyableText,\r\n codeString,\r\n },\r\n} as Meta<CopyableTextProps>;\r\n\r\nconst Template: StoryFn<CopyableTextProps> = (args) => {\r\n return (\r\n <div style={{ padding: '1rem', backgroundColor: '#FFF', display: 'flex', gap: '1rem', alignItems: 'center' }}>\r\n <CopyableText {...args} />\r\n <span>EC</span>\r\n <span>Tutoring and Study Guidance Advanced Professional Programme in Conservation and Restoration</span>\r\n </div>\r\n );\r\n};\r\n\r\nexport const CopyableTextExample = Template.bind({});\r\nCopyableTextExample.args = {\r\n text: '3154CAR1VY',\r\n additionalClassName: 'customClass',\r\n ariaLabelCopy: 'Copy to clipboard',\r\n ariaLabelHasBeenCopied: 'Copied to clipboard',\r\n};\r\n"],"mappings":";;;AAKA,IAAM,IACJ,sHAGI,IAAc,SAAS,cAAc,OAAO;AAClD,EAAY,OAAO,YACnB,EAAY,YAAY,oDACxB,SAAS,KAAK,YAAY,CAAW;AAGrC,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU,EACR,qBAAqB,EACnB,OAAO,EACL,SAAS,GACX,EACF,EACF;CACA,YAAY;EACV,kBAAkB;EAClB;CACF;AACF,GAYa,MAViC,MAE1C,kBAAC,OAAD;CAAK,OAAO;EAAE,SAAS;EAAQ,iBAAiB;EAAQ,SAAS;EAAQ,KAAK;EAAQ,YAAY;CAAS;WAA3G;EACE,kBAAC,GAAD,EAAc,GAAI,EAAO,CAAA;EACzB,kBAAC,QAAD,EAAA,UAAM,KAAQ,CAAA;EACd,kBAAC,QAAD,EAAA,UAAM,8FAAiG,CAAA;CACpG;GAI0B,CAAS,KAAK,CAAC,CAAC;AACnD,EAAoB,OAAO;CACzB,MAAM;CACN,qBAAqB;CACrB,eAAe;CACf,wBAAwB;AAC1B"}