@uva-glass/component-library 3.55.7 → 3.55.8

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 (665) hide show
  1. package/dist/{Accordion-DvblEUVu.js → Accordion-DaCqVof1.js} +2 -2
  2. package/dist/{Accordion-DvblEUVu.js.map → Accordion-DaCqVof1.js.map} +1 -1
  3. package/dist/{AccordionCard-BXy-plB7.js → AccordionCard-CD5H9gR1.js} +2 -2
  4. package/dist/{AccordionCard-BXy-plB7.js.map → AccordionCard-CD5H9gR1.js.map} +1 -1
  5. package/dist/{ActionList-O9w1hqNg.js → ActionList-C0hD9noC.js} +2 -2
  6. package/dist/{ActionList-O9w1hqNg.js.map → ActionList-C0hD9noC.js.map} +1 -1
  7. package/dist/{AddCatalogueLinkForm-rph4K9P0.js → AddCatalogueLinkForm-DNv2tEdF.js} +5 -5
  8. package/dist/{AddCatalogueLinkForm-rph4K9P0.js.map → AddCatalogueLinkForm-DNv2tEdF.js.map} +1 -1
  9. package/dist/{AppStatusBar-Bca0KFDR.js → AppStatusBar-BK0yaC4G.js} +2 -2
  10. package/dist/{AppStatusBar-Bca0KFDR.js.map → AppStatusBar-BK0yaC4G.js.map} +1 -1
  11. package/dist/{Attention-Bq5UU9I8.js → Attention-xqGAJ7-T.js} +1 -1
  12. package/dist/{Attention-Bq5UU9I8.js.map → Attention-xqGAJ7-T.js.map} +1 -1
  13. package/dist/{Backdrop-D8AHeuBn.js → Backdrop-bQ8kXsge.js} +1 -1
  14. package/dist/{Backdrop-D8AHeuBn.js.map → Backdrop-bQ8kXsge.js.map} +1 -1
  15. package/dist/{Button.module-DJlNwQUj.js → Button.module-BkAiXo3V.js} +1 -1
  16. package/dist/{Button.module-DJlNwQUj.js.map → Button.module-BkAiXo3V.js.map} +1 -1
  17. package/dist/{ButtonGroup-DR80lTLz.js → ButtonGroup-ZqGGZ1rz.js} +2 -2
  18. package/dist/{ButtonGroup-DR80lTLz.js.map → ButtonGroup-ZqGGZ1rz.js.map} +1 -1
  19. package/dist/{Card-DMFyuTmy.js → Card-BH1ySOiP.js} +3 -3
  20. package/dist/{Card-DMFyuTmy.js.map → Card-BH1ySOiP.js.map} +1 -1
  21. package/dist/{Checkbox-D6-b_4dC.js → Checkbox-sAt4To2B.js} +1 -1
  22. package/dist/{Checkbox-D6-b_4dC.js.map → Checkbox-sAt4To2B.js.map} +1 -1
  23. package/dist/{CheckboxButtonBar-5UMIFMKH.js → CheckboxButtonBar-DpNnwLzI.js} +5 -5
  24. package/dist/{CheckboxButtonBar-5UMIFMKH.js.map → CheckboxButtonBar-DpNnwLzI.js.map} +1 -1
  25. package/dist/{Chip-DJHvFToV.js → Chip-9XnXFhoJ.js} +1 -1
  26. package/dist/{Chip-DJHvFToV.js.map → Chip-9XnXFhoJ.js.map} +1 -1
  27. package/dist/{ClipboardButton-geHjMl2J.js → ClipboardButton-Cg6LGUiD.js} +1 -1
  28. package/dist/{ClipboardButton-geHjMl2J.js.map → ClipboardButton-Cg6LGUiD.js.map} +1 -1
  29. package/dist/{Column-BwKEOOuL.js → Column-BwCVSZrG.js} +2 -2
  30. package/dist/{Column-BwKEOOuL.js.map → Column-BwCVSZrG.js.map} +1 -1
  31. package/dist/{Container-BLjtYDqq.js → Container-DK25h_-f.js} +2 -2
  32. package/dist/{Container-BLjtYDqq.js.map → Container-DK25h_-f.js.map} +1 -1
  33. package/dist/{ControlsButton-B1XRpMUM.js → ControlsButton-9uR_zW_F.js} +2 -2
  34. package/dist/{ControlsButton-B1XRpMUM.js.map → ControlsButton-9uR_zW_F.js.map} +1 -1
  35. package/dist/{CopyableText-DkyhZ6wk.js → CopyableText-hSqhyUWx.js} +2 -2
  36. package/dist/{CopyableText-DkyhZ6wk.js.map → CopyableText-hSqhyUWx.js.map} +1 -1
  37. package/dist/{Drawer-e7UFHVg9.js → Drawer-BbVJqFQI.js} +4 -4
  38. package/dist/{Drawer-e7UFHVg9.js.map → Drawer-BbVJqFQI.js.map} +1 -1
  39. package/dist/{EmptyStateDataDisplay-D0QiI8nE.js → EmptyStateDataDisplay-IT2P3ius.js} +2 -2
  40. package/dist/{EmptyStateDataDisplay-D0QiI8nE.js.map → EmptyStateDataDisplay-IT2P3ius.js.map} +1 -1
  41. package/dist/{ExpandableInfoPanel-CnBVVNlJ.js → ExpandableInfoPanel-DMfcJFP3.js} +2 -2
  42. package/dist/{ExpandableInfoPanel-CnBVVNlJ.js.map → ExpandableInfoPanel-DMfcJFP3.js.map} +1 -1
  43. package/dist/{FeedbackBar-ByKp32HE.js → FeedbackBar-DRbJVniP.js} +3 -3
  44. package/dist/{FeedbackBar-ByKp32HE.js.map → FeedbackBar-DRbJVniP.js.map} +1 -1
  45. package/dist/{FeedbackBox-Bu7uB9DP.js → FeedbackBox-CaSxB4uc.js} +2 -2
  46. package/dist/{FeedbackBox-Bu7uB9DP.js.map → FeedbackBox-CaSxB4uc.js.map} +1 -1
  47. package/dist/{FieldHint-fxnEOsVZ.js → FieldHint-FEBzgLI_.js} +2 -2
  48. package/dist/{FieldHint-fxnEOsVZ.js.map → FieldHint-FEBzgLI_.js.map} +1 -1
  49. package/dist/{Fieldset-0LFsZ3Mz.js → Fieldset-D01_rj_p.js} +2 -2
  50. package/dist/{Fieldset-0LFsZ3Mz.js.map → Fieldset-D01_rj_p.js.map} +1 -1
  51. package/dist/{Flyout-DEpzfZOC.js → Flyout-JUwXvgo6.js} +1 -1
  52. package/dist/{Flyout-DEpzfZOC.js.map → Flyout-JUwXvgo6.js.map} +1 -1
  53. package/dist/{FormField-BZSoQdp9.js → FormField-CcV84TfI.js} +2 -2
  54. package/dist/{FormField-BZSoQdp9.js.map → FormField-CcV84TfI.js.map} +1 -1
  55. package/dist/{HorizontalList-C22DaDz-.js → HorizontalList-CLlRGWZX.js} +1 -1
  56. package/dist/{HorizontalList-C22DaDz-.js.map → HorizontalList-CLlRGWZX.js.map} +1 -1
  57. package/dist/{IconButton-CWCMH9uf.js → IconButton-CSNMVEG1.js} +2 -2
  58. package/dist/{IconButton-CWCMH9uf.js.map → IconButton-CSNMVEG1.js.map} +1 -1
  59. package/dist/{InfoBanner-DyznQLGr.js → InfoBanner-DqBWtCVE.js} +1 -1
  60. package/dist/{InfoBanner-DyznQLGr.js.map → InfoBanner-DqBWtCVE.js.map} +1 -1
  61. package/dist/{InfoMessage-I-VlwxVc.js → InfoMessage-COywXu4O.js} +2 -2
  62. package/dist/{InfoMessage-I-VlwxVc.js.map → InfoMessage-COywXu4O.js.map} +1 -1
  63. package/dist/{Input-Bn-arMaC.js → Input-BzKvzbzP.js} +2 -2
  64. package/dist/{Input-Bn-arMaC.js.map → Input-BzKvzbzP.js.map} +1 -1
  65. package/dist/{InputField-BWAy19w9.js → InputField-T01uazlI.js} +2 -2
  66. package/dist/{InputField-BWAy19w9.js.map → InputField-T01uazlI.js.map} +1 -1
  67. package/dist/{Label-o0BcWTUS.js → Label-D0ACrYG3.js} +2 -2
  68. package/dist/{Label-o0BcWTUS.js.map → Label-D0ACrYG3.js.map} +1 -1
  69. package/dist/{Lexical.prod-CqPLSi0R.js → Lexical.prod-8zZnpGo4.js} +1 -1
  70. package/dist/Lexical.prod-8zZnpGo4.js.map +1 -0
  71. package/dist/{LexicalClipboard.prod-BVw_sFpo.js → LexicalClipboard.prod-hbxbsROy.js} +4 -4
  72. package/dist/LexicalClipboard.prod-hbxbsROy.js.map +1 -0
  73. package/dist/{LexicalComposerContext.prod-Ca-YN_fj.js → LexicalComposerContext.prod-y_BRxu3Z.js} +1 -1
  74. package/dist/{LexicalComposerContext.prod-Ca-YN_fj.js.map → LexicalComposerContext.prod-y_BRxu3Z.js.map} +1 -1
  75. package/dist/{LexicalExtension.prod-CUQTgbur.js → LexicalExtension.prod-v8IpET5E.js} +3 -3
  76. package/dist/LexicalExtension.prod-v8IpET5E.js.map +1 -0
  77. package/dist/{LexicalLink.prod-DMhcqD9x.js → LexicalLink.prod-BVUv9-sZ.js} +4 -4
  78. package/dist/LexicalLink.prod-BVUv9-sZ.js.map +1 -0
  79. package/dist/{LexicalList.prod-eYlcb5Ao.js → LexicalList.prod-CCPDDafy.js} +4 -4
  80. package/dist/LexicalList.prod-CCPDDafy.js.map +1 -0
  81. package/dist/{LexicalTable.prod-DlOxUQou.js → LexicalTable.prod-D_9Dr3kL.js} +5 -5
  82. package/dist/LexicalTable.prod-D_9Dr3kL.js.map +1 -0
  83. package/dist/{LexicalUtils.prod-BqcriFWV.js → LexicalUtils.prod-BWhWP8es.js} +2 -2
  84. package/dist/{LexicalUtils.prod-BqcriFWV.js.map → LexicalUtils.prod-BWhWP8es.js.map} +1 -1
  85. package/dist/{LinkContextMenu-ePn1iZ_z.js → LinkContextMenu-CTu2nP2j.js} +2 -2
  86. package/dist/{LinkContextMenu-ePn1iZ_z.js.map → LinkContextMenu-CTu2nP2j.js.map} +1 -1
  87. package/dist/{MenuLink-Cm1yZO_5.js → MenuLink-La_3ANEL.js} +2 -2
  88. package/dist/{MenuLink-Cm1yZO_5.js.map → MenuLink-La_3ANEL.js.map} +1 -1
  89. package/dist/{MetaDataBar-C4QO9oBV.js → MetaDataBar-48J7yPrb.js} +1 -1
  90. package/dist/{MetaDataBar-C4QO9oBV.js.map → MetaDataBar-48J7yPrb.js.map} +1 -1
  91. package/dist/{MetaDataList-CAR1HTYs.js → MetaDataList-Co9WCexh.js} +1 -1
  92. package/dist/{MetaDataList-CAR1HTYs.js.map → MetaDataList-Co9WCexh.js.map} +1 -1
  93. package/dist/{ModalDialog-N50NGnd4.js → ModalDialog-J7xcPcnS.js} +5 -5
  94. package/dist/{ModalDialog-N50NGnd4.js.map → ModalDialog-J7xcPcnS.js.map} +1 -1
  95. package/dist/{MultiSelectBox-Cuh_o-A1.js → MultiSelectBox-BmBxa6PH.js} +3 -3
  96. package/dist/{MultiSelectBox-Cuh_o-A1.js.map → MultiSelectBox-BmBxa6PH.js.map} +1 -1
  97. package/dist/{MultiSelectItem-BF5xRjz5.js → MultiSelectItem-6d8kQgFs.js} +3 -3
  98. package/dist/{MultiSelectItem-BF5xRjz5.js.map → MultiSelectItem-6d8kQgFs.js.map} +1 -1
  99. package/dist/{Notification-CIhsHuF0.js → Notification-BAqCenxt.js} +2 -2
  100. package/dist/{Notification-CIhsHuF0.js.map → Notification-BAqCenxt.js.map} +1 -1
  101. package/dist/{OverlayCloseButton-rttFbAM_.js → OverlayCloseButton-j-7mC4Zz.js} +2 -2
  102. package/dist/{OverlayCloseButton-rttFbAM_.js.map → OverlayCloseButton-j-7mC4Zz.js.map} +1 -1
  103. package/dist/{OverlayStepBar-CjaoYdsh.js → OverlayStepBar-Cj_-0waE.js} +2 -2
  104. package/dist/{OverlayStepBar-CjaoYdsh.js.map → OverlayStepBar-Cj_-0waE.js.map} +1 -1
  105. package/dist/{PageOverlay-S4xsqJha.js → PageOverlay-DqwdG5ve.js} +5 -5
  106. package/dist/{PageOverlay-S4xsqJha.js.map → PageOverlay-DqwdG5ve.js.map} +1 -1
  107. package/dist/{PasteHandlerPlugin-BNp8ST0q.js → PasteHandlerPlugin-Bc6n-G35.js} +6 -6
  108. package/dist/{PasteHandlerPlugin-BNp8ST0q.js.map → PasteHandlerPlugin-Bc6n-G35.js.map} +1 -1
  109. package/dist/{Periods-BYETtB6R.js → Periods-C5cxLlWt.js} +2 -2
  110. package/dist/{Periods-BYETtB6R.js.map → Periods-C5cxLlWt.js.map} +1 -1
  111. package/dist/{ProgrammeCard-76gG7ksx.js → ProgrammeCard-CAAOSWKa.js} +2 -2
  112. package/dist/{ProgrammeCard-76gG7ksx.js.map → ProgrammeCard-CAAOSWKa.js.map} +1 -1
  113. package/dist/{RadioButton-Bto2p5B9.js → RadioButton-CKALsbBb.js} +2 -2
  114. package/dist/{RadioButton-Bto2p5B9.js.map → RadioButton-CKALsbBb.js.map} +1 -1
  115. package/dist/{RadioGroup-JeTjVp5B.js → RadioGroup-DhnnBRJu.js} +3 -3
  116. package/dist/{RadioGroup-JeTjVp5B.js.map → RadioGroup-DhnnBRJu.js.map} +1 -1
  117. package/dist/{Repeater-BhkTEUai.js → Repeater-Bnoqqz0X.js} +2 -2
  118. package/dist/{Repeater-BhkTEUai.js.map → Repeater-Bnoqqz0X.js.map} +1 -1
  119. package/dist/{RteEditor.module-BJLUYSpf.js → RteEditor.module-pWBasED2.js} +1 -1
  120. package/dist/{RteEditor.module-BJLUYSpf.js.map → RteEditor.module-pWBasED2.js.map} +1 -1
  121. package/dist/{SearchField.module-BgxjHaPG.js → SearchField.module-Bn9xQD-f.js} +1 -1
  122. package/dist/{SearchField.module-BgxjHaPG.js.map → SearchField.module-Bn9xQD-f.js.map} +1 -1
  123. package/dist/{SectionNotification-CQqwPTqP.js → SectionNotification-BT0Z2edJ.js} +2 -2
  124. package/dist/{SectionNotification-CQqwPTqP.js.map → SectionNotification-BT0Z2edJ.js.map} +1 -1
  125. package/dist/{SelectListbox.module-HaPs1CLD.js → SelectListbox.module-Df90DNyN.js} +1 -1
  126. package/dist/{SelectListbox.module-HaPs1CLD.js.map → SelectListbox.module-Df90DNyN.js.map} +1 -1
  127. package/dist/{Slider-BlLyrET9.js → Slider-dCmT0VM2.js} +2 -2
  128. package/dist/{Slider-BlLyrET9.js.map → Slider-dCmT0VM2.js.map} +1 -1
  129. package/dist/{Sortable.module-8SoaHfuE.js → Sortable.module-CgDMpWM8.js} +1 -1
  130. package/dist/{Sortable.module-8SoaHfuE.js.map → Sortable.module-CgDMpWM8.js.map} +1 -1
  131. package/dist/{SortableProvider-8HYiBXJS.js → SortableProvider-DV6gWmq_.js} +3 -3
  132. package/dist/{SortableProvider-8HYiBXJS.js.map → SortableProvider-DV6gWmq_.js.map} +1 -1
  133. package/dist/{Spinner-BpElTDIu.js → Spinner-BmPjd2Bv.js} +1 -1
  134. package/dist/{Spinner-BpElTDIu.js.map → Spinner-BmPjd2Bv.js.map} +1 -1
  135. package/dist/{StatusBage-DQDOF5-U.js → StatusBage-CfEIuIPa.js} +2 -2
  136. package/dist/{StatusBage-DQDOF5-U.js.map → StatusBage-CfEIuIPa.js.map} +1 -1
  137. package/dist/{StatusPill-DM7n3I4W.js → StatusPill-CbJV4t-V.js} +2 -2
  138. package/dist/{StatusPill-DM7n3I4W.js.map → StatusPill-CbJV4t-V.js.map} +1 -1
  139. package/dist/{TableCellContextMenu-D0IMQr3E.js → TableCellContextMenu-9V8mnPmU.js} +3 -3
  140. package/dist/{TableCellContextMenu-D0IMQr3E.js.map → TableCellContextMenu-9V8mnPmU.js.map} +1 -1
  141. package/dist/{TableCellResizerPlugin-Bc5y-Qbx.js → TableCellResizerPlugin-Djym940U.js} +5 -5
  142. package/dist/{TableCellResizerPlugin-Bc5y-Qbx.js.map → TableCellResizerPlugin-Djym940U.js.map} +1 -1
  143. package/dist/{TextArea-CuASC9bX.js → TextArea-GR2ZWwLh.js} +2 -2
  144. package/dist/{TextArea-CuASC9bX.js.map → TextArea-GR2ZWwLh.js.map} +1 -1
  145. package/dist/{ToggleSwitch-C7z7JVtx.js → ToggleSwitch-b54K58vY.js} +2 -2
  146. package/dist/{ToggleSwitch-C7z7JVtx.js.map → ToggleSwitch-b54K58vY.js.map} +1 -1
  147. package/dist/{Tooltip-D27p9kh4.js → Tooltip-DvkGwn4j.js} +1 -1
  148. package/dist/{Tooltip-D27p9kh4.js.map → Tooltip-DvkGwn4j.js.map} +1 -1
  149. package/dist/{VarIndicator-C-GueOZD.js → VarIndicator-DoMWwSUm.js} +2 -2
  150. package/dist/{VarIndicator-C-GueOZD.js.map → VarIndicator-DoMWwSUm.js.map} +1 -1
  151. package/dist/{WeekSelector.module-BLPrVYgn.js → WeekSelector.module-DuEbNvok.js} +1 -1
  152. package/dist/{WeekSelector.module-BLPrVYgn.js.map → WeekSelector.module-DuEbNvok.js.map} +1 -1
  153. package/dist/__mocks__/svgrMock.js.map +1 -1
  154. package/dist/{chunk-SZQXB3JV-D6GR5B4F.js → chunk-SZQXB3JV-xjYHmnzP.js} +891 -949
  155. package/dist/{chunk-SZQXB3JV-D6GR5B4F.js.map → chunk-SZQXB3JV-xjYHmnzP.js.map} +1 -1
  156. package/dist/{client-b7M3CmlC.js → client-DJaPTT6C.js} +10 -10
  157. package/dist/{client-b7M3CmlC.js.map → client-DJaPTT6C.js.map} +1 -1
  158. package/dist/{clsx-BD2qMUU1.js → clsx-BWCAbrjV.js} +1 -1
  159. package/dist/{clsx-BD2qMUU1.js.map → clsx-BWCAbrjV.js.map} +1 -1
  160. package/dist/components/Accordion/Accordion.js +1 -1
  161. package/dist/components/Accordion/Accordion.stories.js +2 -2
  162. package/dist/components/Accordion/Accordion.stories.js.map +1 -1
  163. package/dist/components/Accordion/Accordion.test.js +4 -4
  164. package/dist/components/Accordion/Accordion.test.js.map +1 -1
  165. package/dist/components/Accordion/index.js +1 -1
  166. package/dist/components/AccordionCard/AccordionCard.d.ts +1 -1
  167. package/dist/components/AccordionCard/AccordionCard.js +1 -1
  168. package/dist/components/AccordionCard/AccordionCard.stories.js +2 -2
  169. package/dist/components/AccordionCard/AccordionCard.stories.js.map +1 -1
  170. package/dist/components/AccordionCard/AccordionCard.test.js +4 -4
  171. package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
  172. package/dist/components/AccordionCard/index.js +1 -1
  173. package/dist/components/ActionList/ActionList.d.ts +1 -1
  174. package/dist/components/ActionList/ActionList.js +1 -1
  175. package/dist/components/ActionList/ActionList.stories.js +1 -1
  176. package/dist/components/ActionList/ActionList.stories.js.map +1 -1
  177. package/dist/components/ActionList/ActionList.test.js +4 -4
  178. package/dist/components/ActionList/ActionList.test.js.map +1 -1
  179. package/dist/components/ActionList/index.js +1 -1
  180. package/dist/components/AppStatusBar/AppStatusBar.d.ts +1 -1
  181. package/dist/components/AppStatusBar/AppStatusBar.js +1 -1
  182. package/dist/components/AppStatusBar/AppStatusBar.stories.js +1 -1
  183. package/dist/components/AppStatusBar/AppStatusBar.stories.js.map +1 -1
  184. package/dist/components/AppStatusBar/AppStatusBar.test.js +3 -3
  185. package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
  186. package/dist/components/AppStatusBar/index.js +1 -1
  187. package/dist/components/Attention/Attention.d.ts +1 -1
  188. package/dist/components/Attention/Attention.js +1 -1
  189. package/dist/components/Attention/Attention.stories.js +1 -1
  190. package/dist/components/Attention/Attention.stories.js.map +1 -1
  191. package/dist/components/Attention/Attention.test.js +3 -3
  192. package/dist/components/Attention/Attention.test.js.map +1 -1
  193. package/dist/components/Attention/index.js +1 -1
  194. package/dist/components/Backdrop/Backdrop.d.ts +1 -1
  195. package/dist/components/Backdrop/Backdrop.js +1 -1
  196. package/dist/components/Backdrop/Backdrop.stories.js +2 -2
  197. package/dist/components/Backdrop/Backdrop.stories.js.map +1 -1
  198. package/dist/components/Backdrop/Backdrop.test.js +3 -3
  199. package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
  200. package/dist/components/Backdrop/index.js +1 -1
  201. package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  202. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  203. package/dist/components/ButtonGroup/ButtonGroup.stories.js +2 -2
  204. package/dist/components/ButtonGroup/ButtonGroup.stories.js.map +1 -1
  205. package/dist/components/ButtonGroup/index.js +1 -1
  206. package/dist/components/Buttons/Button.js +2 -2
  207. package/dist/components/Buttons/Button.js.map +1 -1
  208. package/dist/components/Buttons/Button.stories.js +1 -1
  209. package/dist/components/Buttons/Button.stories.js.map +1 -1
  210. package/dist/components/Buttons/Button.test.js +2 -2
  211. package/dist/components/Buttons/Button.test.js.map +1 -1
  212. package/dist/components/Buttons/LinkButton.js +2 -2
  213. package/dist/components/Buttons/LinkButton.js.map +1 -1
  214. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  215. package/dist/components/Buttons/LinkButton.stories.js.map +1 -1
  216. package/dist/components/Buttons/LinkButton.test.js +2 -2
  217. package/dist/components/Buttons/LinkButton.test.js.map +1 -1
  218. package/dist/components/Buttons/MenuButton.d.ts +1 -1
  219. package/dist/components/Buttons/MenuButton.js +2 -2
  220. package/dist/components/Buttons/MenuButton.js.map +1 -1
  221. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  222. package/dist/components/Buttons/MenuButton.stories.js.map +1 -1
  223. package/dist/components/Buttons/MenuButton.test.js +2 -2
  224. package/dist/components/Buttons/MenuButton.test.js.map +1 -1
  225. package/dist/components/Card/Card.d.ts +1 -1
  226. package/dist/components/Card/Card.js +1 -1
  227. package/dist/components/Card/Card.stories.js +1 -1
  228. package/dist/components/Card/Card.stories.js.map +1 -1
  229. package/dist/components/Card/Card.test.js +3 -3
  230. package/dist/components/Card/Card.test.js.map +1 -1
  231. package/dist/components/Card/index.js +1 -1
  232. package/dist/components/Checkbox/Checkbox.js +1 -1
  233. package/dist/components/Checkbox/Checkbox.stories.js +4 -4
  234. package/dist/components/Checkbox/Checkbox.stories.js.map +1 -1
  235. package/dist/components/Checkbox/Checkbox.test.js +4 -4
  236. package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
  237. package/dist/components/Checkbox/index.js +1 -1
  238. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.d.ts +1 -1
  239. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +1 -1
  240. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +3 -3
  241. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -1
  242. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -3
  243. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
  244. package/dist/components/CheckboxButtonBar/index.js +1 -1
  245. package/dist/components/CheckboxTree/CheckboxTree.d.ts +1 -1
  246. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  247. package/dist/components/CheckboxTree/CheckboxTree.stories.js +4 -4
  248. package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
  249. package/dist/components/CheckboxTree/index.js +1 -1
  250. package/dist/components/Chip/Chip.d.ts +1 -1
  251. package/dist/components/Chip/Chip.js +1 -1
  252. package/dist/components/Chip/Chip.stories.js +2 -2
  253. package/dist/components/Chip/Chip.stories.js.map +1 -1
  254. package/dist/components/Chip/index.js +1 -1
  255. package/dist/components/ControlsButton/ControlsButton.d.ts +1 -1
  256. package/dist/components/ControlsButton/ControlsButton.js +1 -1
  257. package/dist/components/ControlsButton/ControlsButton.stories.js +4 -4
  258. package/dist/components/ControlsButton/ControlsButton.stories.js.map +1 -1
  259. package/dist/components/ControlsButton/index.js +1 -1
  260. package/dist/components/CopyableText/CopyableText.d.ts +1 -1
  261. package/dist/components/CopyableText/CopyableText.js +1 -1
  262. package/dist/components/CopyableText/CopyableText.stories.js +1 -1
  263. package/dist/components/CopyableText/CopyableText.stories.js.map +1 -1
  264. package/dist/components/CopyableText/index.js +1 -1
  265. package/dist/components/Drawer/Drawer.d.ts +1 -1
  266. package/dist/components/Drawer/Drawer.js +1 -1
  267. package/dist/components/Drawer/Drawer.stories.js +3 -3
  268. package/dist/components/Drawer/Drawer.stories.js.map +1 -1
  269. package/dist/components/Drawer/index.js +1 -1
  270. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.d.ts +1 -1
  271. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js +1 -1
  272. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js +1 -1
  273. package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js.map +1 -1
  274. package/dist/components/EmptyStateDataDisplay/index.js +1 -1
  275. package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.d.ts +1 -1
  276. package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js +1 -1
  277. package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js +2 -2
  278. package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js.map +1 -1
  279. package/dist/components/ExpandableInfoPanel/index.js +1 -1
  280. package/dist/components/FeedbackBar/FeedbackBar.d.ts +1 -1
  281. package/dist/components/FeedbackBar/FeedbackBar.js +1 -1
  282. package/dist/components/FeedbackBar/FeedbackBar.stories.js +3 -3
  283. package/dist/components/FeedbackBar/FeedbackBar.stories.js.map +1 -1
  284. package/dist/components/FeedbackBar/FeedbackBar.test.js +3 -3
  285. package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
  286. package/dist/components/FeedbackBar/index.js +1 -1
  287. package/dist/components/FeedbackBox/FeedbackBox.d.ts +1 -1
  288. package/dist/components/FeedbackBox/FeedbackBox.js +1 -1
  289. package/dist/components/FeedbackBox/FeedbackBox.stories.js +3 -3
  290. package/dist/components/FeedbackBox/FeedbackBox.stories.js.map +1 -1
  291. package/dist/components/FeedbackBox/index.js +1 -1
  292. package/dist/components/FieldHint/FieldHint.d.ts +1 -1
  293. package/dist/components/FieldHint/FieldHint.js +1 -1
  294. package/dist/components/FieldHint/FieldHint.stories.js +1 -1
  295. package/dist/components/FieldHint/FieldHint.stories.js.map +1 -1
  296. package/dist/components/FieldHint/index.js +1 -1
  297. package/dist/components/Fieldset/Fieldset.d.ts +1 -1
  298. package/dist/components/Fieldset/Fieldset.js +1 -1
  299. package/dist/components/Fieldset/Fieldset.stories.js +5 -5
  300. package/dist/components/Fieldset/Fieldset.stories.js.map +1 -1
  301. package/dist/components/Fieldset/index.js +1 -1
  302. package/dist/components/FormField/FormField.d.ts +1 -1
  303. package/dist/components/FormField/FormField.js +1 -1
  304. package/dist/components/FormField/FormField.stories.js +4 -4
  305. package/dist/components/FormField/FormField.stories.js.map +1 -1
  306. package/dist/components/FormField/index.js +1 -1
  307. package/dist/components/FormInput/FormInput.d.ts +1 -1
  308. package/dist/components/FormInput/FormInput.js +1 -1
  309. package/dist/components/FormInput/FormInput.stories.js +2 -2
  310. package/dist/components/FormInput/FormInput.stories.js.map +1 -1
  311. package/dist/components/FormInput/index.js +1 -1
  312. package/dist/components/GridRow/Column/Column.d.ts +1 -1
  313. package/dist/components/GridRow/Column/Column.js +1 -1
  314. package/dist/components/GridRow/Column/index.js +1 -1
  315. package/dist/components/GridRow/GridRow.d.ts +2 -2
  316. package/dist/components/GridRow/GridRow.js +2 -2
  317. package/dist/components/GridRow/GridRow.js.map +1 -1
  318. package/dist/components/GridRow/GridRow.stories.js.map +1 -1
  319. package/dist/components/HorizontalList/HorizontalList.d.ts +1 -1
  320. package/dist/components/HorizontalList/HorizontalList.js +1 -1
  321. package/dist/components/HorizontalList/HorizontalList.stories.js +1 -1
  322. package/dist/components/HorizontalList/HorizontalList.stories.js.map +1 -1
  323. package/dist/components/HorizontalList/index.js +1 -1
  324. package/dist/components/Icon/Icon.js +1 -1
  325. package/dist/components/Icon/Icon.js.map +1 -1
  326. package/dist/components/Icon/Icon.stories.d.ts +1 -1
  327. package/dist/components/Icon/Icon.stories.js +2 -2
  328. package/dist/components/Icon/Icon.stories.js.map +1 -1
  329. package/dist/components/Icon/icons/index.js +1 -1
  330. package/dist/components/IconButton/IconButton.js +1 -1
  331. package/dist/components/IconButton/IconButton.stories.js +2 -2
  332. package/dist/components/IconButton/IconButton.stories.js.map +1 -1
  333. package/dist/components/IconButton/index.js +1 -1
  334. package/dist/components/InfoBanner/InfoBanner.d.ts +1 -1
  335. package/dist/components/InfoBanner/InfoBanner.js +1 -1
  336. package/dist/components/InfoBanner/InfoBanner.stories.js +1 -1
  337. package/dist/components/InfoBanner/InfoBanner.stories.js.map +1 -1
  338. package/dist/components/InfoBanner/index.js +1 -1
  339. package/dist/components/InfoMessage/InfoMessage.d.ts +1 -1
  340. package/dist/components/InfoMessage/InfoMessage.js +1 -1
  341. package/dist/components/InfoMessage/InfoMessage.stories.js +1 -1
  342. package/dist/components/InfoMessage/InfoMessage.stories.js.map +1 -1
  343. package/dist/components/InfoMessage/index.js +1 -1
  344. package/dist/components/Input/Input.js +1 -1
  345. package/dist/components/Input/Input.stories.js +1 -1
  346. package/dist/components/Input/Input.stories.js.map +1 -1
  347. package/dist/components/Input/index.js +1 -1
  348. package/dist/components/InputField/InputField.js +1 -1
  349. package/dist/components/InputField/InputField.stories.js +3 -3
  350. package/dist/components/InputField/InputField.stories.js.map +1 -1
  351. package/dist/components/InputField/index.js +1 -1
  352. package/dist/components/Label/Label.d.ts +1 -1
  353. package/dist/components/Label/Label.js +1 -1
  354. package/dist/components/Label/Label.stories.js +1 -1
  355. package/dist/components/Label/Label.stories.js.map +1 -1
  356. package/dist/components/Label/Label.test.js +3 -3
  357. package/dist/components/Label/Label.test.js.map +1 -1
  358. package/dist/components/Label/index.js +1 -1
  359. package/dist/components/MenuLink/MenuLink.d.ts +1 -1
  360. package/dist/components/MenuLink/MenuLink.js +1 -1
  361. package/dist/components/MenuLink/MenuLink.stories.js +1 -1
  362. package/dist/components/MenuLink/MenuLink.stories.js.map +1 -1
  363. package/dist/components/MenuLink/index.js +1 -1
  364. package/dist/components/MetaDataBar/MetaDataBar.d.ts +1 -1
  365. package/dist/components/MetaDataBar/MetaDataBar.js +1 -1
  366. package/dist/components/MetaDataBar/MetaDataBar.stories.js +1 -1
  367. package/dist/components/MetaDataBar/MetaDataBar.stories.js.map +1 -1
  368. package/dist/components/MetaDataBar/MetaDataBar.test.js +2 -2
  369. package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
  370. package/dist/components/MetaDataBar/index.js +1 -1
  371. package/dist/components/MetaDataList/MetaDataList.d.ts +1 -1
  372. package/dist/components/MetaDataList/MetaDataList.js +1 -1
  373. package/dist/components/MetaDataList/MetaDataList.stories.js +2 -2
  374. package/dist/components/MetaDataList/MetaDataList.stories.js.map +1 -1
  375. package/dist/components/MetaDataList/index.js +1 -1
  376. package/dist/components/ModalDialog/ModalDialog.d.ts +1 -1
  377. package/dist/components/ModalDialog/ModalDialog.js +1 -1
  378. package/dist/components/ModalDialog/ModalDialog.stories.js +6 -6
  379. package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -1
  380. package/dist/components/ModalDialog/index.js +1 -1
  381. package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
  382. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  383. package/dist/components/MultiSelect/MultiSelect.stories.js +3 -3
  384. package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
  385. package/dist/components/MultiSelect/components/MultiSelectHeader.d.ts +1 -1
  386. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  387. package/dist/components/MultiSelect/components/MultiSelectItem.d.ts +1 -1
  388. package/dist/components/MultiSelect/components/MultiSelectItem.js +1 -1
  389. package/dist/components/MultiSelect/index.js +1 -1
  390. package/dist/components/MultiSelectBox/MultiSelectBox.d.ts +1 -1
  391. package/dist/components/MultiSelectBox/MultiSelectBox.js +1 -1
  392. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +2 -2
  393. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -1
  394. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +3 -3
  395. package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
  396. package/dist/components/MultiSelectBox/index.js +1 -1
  397. package/dist/components/Notification/Notification.d.ts +1 -1
  398. package/dist/components/Notification/Notification.js +1 -1
  399. package/dist/components/Notification/Notification.stories.js +2 -2
  400. package/dist/components/Notification/Notification.stories.js.map +1 -1
  401. package/dist/components/Notification/Notification.test.js +3 -3
  402. package/dist/components/Notification/Notification.test.js.map +1 -1
  403. package/dist/components/Notification/index.js +1 -1
  404. package/dist/components/OverlayCloseButton/OverlayCloseButton.js +1 -1
  405. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +3 -3
  406. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
  407. package/dist/components/OverlayCloseButton/index.js +1 -1
  408. package/dist/components/OverlayStepBar/OverlayStepBar.d.ts +1 -1
  409. package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
  410. package/dist/components/OverlayStepBar/OverlayStepBar.stories.js +1 -1
  411. package/dist/components/OverlayStepBar/OverlayStepBar.stories.js.map +1 -1
  412. package/dist/components/OverlayStepBar/index.js +1 -1
  413. package/dist/components/PageOverlay/PageOverlay.d.ts +1 -1
  414. package/dist/components/PageOverlay/PageOverlay.js +1 -1
  415. package/dist/components/PageOverlay/PageOverlay.stories.js +4 -4
  416. package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -1
  417. package/dist/components/PageOverlay/index.js +1 -1
  418. package/dist/components/PeriodSelector/PeriodSelector.d.ts +1 -1
  419. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  420. package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -2
  421. package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
  422. package/dist/components/PeriodSelector/index.js +1 -1
  423. package/dist/components/Periods/Periods.d.ts +1 -1
  424. package/dist/components/Periods/Periods.js +1 -1
  425. package/dist/components/Periods/Periods.stories.js +1 -1
  426. package/dist/components/Periods/Periods.stories.js.map +1 -1
  427. package/dist/components/Periods/index.js +1 -1
  428. package/dist/components/ProgrammeCard/ProgrammeCard.d.ts +1 -1
  429. package/dist/components/ProgrammeCard/ProgrammeCard.js +1 -1
  430. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
  431. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
  432. package/dist/components/ProgrammeCard/index.js +1 -1
  433. package/dist/components/RadioButton/RadioButton.d.ts +1 -1
  434. package/dist/components/RadioButton/RadioButton.js +1 -1
  435. package/dist/components/RadioButton/RadioButton.stories.js +1 -1
  436. package/dist/components/RadioButton/RadioButton.stories.js.map +1 -1
  437. package/dist/components/RadioButton/index.js +1 -1
  438. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
  439. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  440. package/dist/components/RadioGroup/RadioGroup.stories.js +2 -2
  441. package/dist/components/RadioGroup/RadioGroup.stories.js.map +1 -1
  442. package/dist/components/RadioGroup/Radiogroup.test.js +3 -3
  443. package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
  444. package/dist/components/RadioGroup/index.js +1 -1
  445. package/dist/components/RadioTabSelector/RadioTabSelector.d.ts +1 -1
  446. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  447. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -2
  448. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js.map +1 -1
  449. package/dist/components/RadioTabSelector/index.js +1 -1
  450. package/dist/components/Repeater/Repeater.d.ts +1 -1
  451. package/dist/components/Repeater/Repeater.js +1 -1
  452. package/dist/components/Repeater/Repeater.stories.js +2 -2
  453. package/dist/components/Repeater/Repeater.stories.js.map +1 -1
  454. package/dist/components/Repeater/index.js +1 -1
  455. package/dist/components/RteEditor/EditorHeader/EditorHeader.d.ts +1 -1
  456. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  457. package/dist/components/RteEditor/EditorHeader/index.js +1 -1
  458. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +4 -4
  459. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js.map +1 -1
  460. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.d.ts +1 -1
  461. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +1 -1
  462. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +1 -1
  463. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.d.ts +1 -1
  464. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +6 -6
  465. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js.map +1 -1
  466. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.d.ts +1 -1
  467. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -1
  468. package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -1
  469. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  470. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  471. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.d.ts +1 -1
  472. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -1
  473. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  474. package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -1
  475. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.d.ts +1 -1
  476. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +6 -6
  477. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
  478. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
  479. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
  480. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
  481. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  482. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  483. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.d.ts +1 -1
  484. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
  485. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js +1 -1
  486. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -1
  487. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
  488. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
  489. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +2 -2
  490. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -1
  491. package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -1
  492. package/dist/components/RteEditor/Plugins/index.js +4 -4
  493. package/dist/components/RteEditor/Providers/LanguageProvider.d.ts +1 -1
  494. package/dist/components/RteEditor/Providers/LanguageProvider.js.map +1 -1
  495. package/dist/components/RteEditor/RteEditor.d.ts +2 -2
  496. package/dist/components/RteEditor/RteEditor.js +1 -1
  497. package/dist/components/RteEditor/RteEditor.stories.d.ts +1 -1
  498. package/dist/components/RteEditor/RteEditor.stories.js +2 -2
  499. package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
  500. package/dist/components/RteEditor/UvaTheme/UvaTheme.js +1 -1
  501. package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -1
  502. package/dist/components/RteEditor/helpers.js +4 -4
  503. package/dist/components/RteEditor/helpers.js.map +1 -1
  504. package/dist/components/RteEditor/hooks/components/Flyout.js +1 -1
  505. package/dist/components/RteEditor/hooks/useFlyout.js +1 -1
  506. package/dist/components/RteEditor/hooks/useFlyout.js.map +1 -1
  507. package/dist/components/RteEditor/hooks/useTranslation.js.map +1 -1
  508. package/dist/components/RteEditor/index.js +1 -1
  509. package/dist/components/RteEditor/mockCatalogueSearchData.js.map +1 -1
  510. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +3 -3
  511. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js.map +1 -1
  512. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +3 -3
  513. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js.map +1 -1
  514. package/dist/components/RteEditor/translations.js.map +1 -1
  515. package/dist/components/SearchField/SearchField.d.ts +2 -2
  516. package/dist/components/SearchField/SearchField.js +2 -2
  517. package/dist/components/SearchField/SearchField.js.map +1 -1
  518. package/dist/components/SearchField/SearcheField.stories.js.map +1 -1
  519. package/dist/components/SearchField/components/ResultOptionBox.js +1 -1
  520. package/dist/components/SearchField/components/ResultOptionBox.js.map +1 -1
  521. package/dist/components/SearchField/components/ResultsOption.d.ts +1 -1
  522. package/dist/components/SearchField/components/ResultsOption.js +1 -1
  523. package/dist/components/SearchField/components/ResultsOption.js.map +1 -1
  524. package/dist/components/SearchField/mockData.js.map +1 -1
  525. package/dist/components/SectionNotification/SectionNotification.d.ts +1 -1
  526. package/dist/components/SectionNotification/SectionNotification.js +1 -1
  527. package/dist/components/SectionNotification/SectionNotification.stories.js +1 -1
  528. package/dist/components/SectionNotification/SectionNotification.stories.js.map +1 -1
  529. package/dist/components/SectionNotification/index.js +1 -1
  530. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  531. package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
  532. package/dist/components/SelectListbox/SelectListbox.d.ts +2 -2
  533. package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
  534. package/dist/components/SelectListbox/SelectProvider.d.ts +1 -1
  535. package/dist/components/SelectListbox/SelectProvider.js.map +1 -1
  536. package/dist/components/SelectListbox/components/SelectButton.js +2 -2
  537. package/dist/components/SelectListbox/components/SelectButton.js.map +1 -1
  538. package/dist/components/SelectListbox/components/SelectContainer.d.ts +1 -1
  539. package/dist/components/SelectListbox/components/SelectContainer.js +1 -1
  540. package/dist/components/SelectListbox/components/SelectContainer.js.map +1 -1
  541. package/dist/components/SelectListbox/components/SelectOption.d.ts +1 -1
  542. package/dist/components/SelectListbox/components/SelectOption.js +2 -2
  543. package/dist/components/SelectListbox/components/SelectOption.js.map +1 -1
  544. package/dist/components/SelectListbox/components/SelectOptionBox.js +1 -1
  545. package/dist/components/SelectListbox/components/SelectOptionBox.js.map +1 -1
  546. package/dist/components/Slider/Slider.d.ts +1 -1
  547. package/dist/components/Slider/Slider.js +1 -1
  548. package/dist/components/Slider/Slider.stories.js +1 -1
  549. package/dist/components/Slider/Slider.stories.js.map +1 -1
  550. package/dist/components/Slider/index.js +1 -1
  551. package/dist/components/Sortable/Sortable.d.ts +1 -1
  552. package/dist/components/Sortable/Sortable.js +1 -1
  553. package/dist/components/Sortable/Sortable.js.map +1 -1
  554. package/dist/components/Sortable/Sortable.stories.js +2 -2
  555. package/dist/components/Sortable/Sortable.stories.js.map +1 -1
  556. package/dist/components/Sortable/SortableProvider.d.ts +1 -1
  557. package/dist/components/Sortable/SortableProvider.js +1 -1
  558. package/dist/components/Sortable/actions.js.map +1 -1
  559. package/dist/components/Sortable/components/SortableContainer.d.ts +1 -1
  560. package/dist/components/Sortable/components/SortableContainer.js +1 -1
  561. package/dist/components/Sortable/components/SortableHandle.d.ts +1 -1
  562. package/dist/components/Sortable/components/SortableHandle.js +1 -1
  563. package/dist/components/Sortable/components/SortableHandle.js.map +1 -1
  564. package/dist/components/Sortable/components/SortableItem.d.ts +1 -1
  565. package/dist/components/Sortable/components/SortableItem.js +3 -3
  566. package/dist/components/Sortable/components/SortableItem.js.map +1 -1
  567. package/dist/components/Sortable/sortableReducer.js.map +1 -1
  568. package/dist/components/Spinner/Spinner.d.ts +1 -1
  569. package/dist/components/Spinner/Spinner.js +1 -1
  570. package/dist/components/Spinner/Spinner.stories.js +1 -1
  571. package/dist/components/Spinner/Spinner.stories.js.map +1 -1
  572. package/dist/components/Spinner/index.js +1 -1
  573. package/dist/components/StatusBadge/StatusBadge.stories.js +1 -1
  574. package/dist/components/StatusBadge/StatusBadge.stories.js.map +1 -1
  575. package/dist/components/StatusBadge/StatusBadge.test.js +3 -3
  576. package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
  577. package/dist/components/StatusBadge/StatusBage.d.ts +1 -1
  578. package/dist/components/StatusBadge/StatusBage.js +1 -1
  579. package/dist/components/StatusBadge/index.js +1 -1
  580. package/dist/components/StatusPill/StatusPill.d.ts +1 -1
  581. package/dist/components/StatusPill/StatusPill.js +1 -1
  582. package/dist/components/StatusPill/StatusPill.stories.js +2 -2
  583. package/dist/components/StatusPill/StatusPill.stories.js.map +1 -1
  584. package/dist/components/StatusPill/index.js +1 -1
  585. package/dist/components/TextArea/TextArea.d.ts +1 -1
  586. package/dist/components/TextArea/TextArea.js +1 -1
  587. package/dist/components/TextArea/TextArea.stories.js +2 -2
  588. package/dist/components/TextArea/TextArea.stories.js.map +1 -1
  589. package/dist/components/TextArea/TextArea.test.js +4 -4
  590. package/dist/components/TextArea/TextArea.test.js.map +1 -1
  591. package/dist/components/TextArea/index.js +1 -1
  592. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +1 -1
  593. package/dist/components/ToggleSwitch/ToggleSwitch.js +1 -1
  594. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +2 -2
  595. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js.map +1 -1
  596. package/dist/components/ToggleSwitch/index.js +1 -1
  597. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  598. package/dist/components/Tooltip/Tooltip.js +1 -1
  599. package/dist/components/Tooltip/Tooltip.stories.js +2 -2
  600. package/dist/components/Tooltip/Tooltip.stories.js.map +1 -1
  601. package/dist/components/Tooltip/index.js +1 -1
  602. package/dist/components/VarIndicator/VarIndicator.d.ts +1 -1
  603. package/dist/components/VarIndicator/VarIndicator.js +1 -1
  604. package/dist/components/VarIndicator/VarIndicator.stories.js +2 -2
  605. package/dist/components/VarIndicator/VarIndicator.stories.js.map +1 -1
  606. package/dist/components/VarIndicator/VarIndicator.test.js +4 -4
  607. package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
  608. package/dist/components/VarIndicator/index.js +1 -1
  609. package/dist/components/WeekSelector/WeekSelector.d.ts +1 -1
  610. package/dist/components/WeekSelector/WeekSelector.js +2 -2
  611. package/dist/components/WeekSelector/WeekSelector.js.map +1 -1
  612. package/dist/components/WeekSelector/WeekSelector.stories.js.map +1 -1
  613. package/dist/components/WeekSelector/components/WeekSelectorButton.d.ts +1 -1
  614. package/dist/components/WeekSelector/components/WeekSelectorButton.js +1 -1
  615. package/dist/components/WeekSelector/components/WeekSelectorButton.js.map +1 -1
  616. package/dist/components/WeekSelector/components/WeekSelectorOption.d.ts +1 -1
  617. package/dist/components/WeekSelector/components/WeekSelectorOption.js +2 -2
  618. package/dist/components/WeekSelector/components/WeekSelectorOption.js.map +1 -1
  619. package/dist/components/WeekSelector/components/WeekSelectorOptionContainer.js +1 -1
  620. package/dist/components/WeekSelector/components/WeekSelectorOptionContainer.js.map +1 -1
  621. package/dist/components/WeekSelector/mockdata.js.map +1 -1
  622. package/dist/components/hooks/useDebounce.js.map +1 -1
  623. package/dist/components/hooks/useOnClickOutside.js.map +1 -1
  624. package/dist/components/hooks/usePositionedFloaters.js.map +1 -1
  625. package/dist/components/hooks/useResponsive.js.map +1 -1
  626. package/dist/components/index.js +52 -52
  627. package/dist/{components-BzxAULjf.js → components-D6_Sx8Hs.js} +24 -24
  628. package/dist/{components-BzxAULjf.js.map → components-D6_Sx8Hs.js.map} +1 -1
  629. package/dist/{dist-V_v3kC0L.js → dist-Cxk2-lJw.js} +4 -4
  630. package/dist/{dist-V_v3kC0L.js.map → dist-Cxk2-lJw.js.map} +1 -1
  631. package/dist/{esm-BoujHjK5.js → esm-BJhEQquH.js} +10 -10
  632. package/dist/{esm-BoujHjK5.js.map → esm-BJhEQquH.js.map} +1 -1
  633. package/dist/{helpers-B1VK8xTF.js → helpers-z8cqBNoz.js} +3 -3
  634. package/dist/{helpers-B1VK8xTF.js.map → helpers-z8cqBNoz.js.map} +1 -1
  635. package/dist/{icons-TRhI-4V6.js → icons-ClUPu6KU.js} +1 -1
  636. package/dist/{icons-TRhI-4V6.js.map → icons-ClUPu6KU.js.map} +1 -1
  637. package/dist/index.js +52 -52
  638. package/dist/{lib-BvOQt8El.js → lib-Do6N-CJR.js} +2 -2
  639. package/dist/{lib-BvOQt8El.js.map → lib-Do6N-CJR.js.map} +1 -1
  640. package/dist/{react-18-DxAWL8_m.js → react-18-BAudFSEM.js} +3 -3
  641. package/dist/{react-18-DxAWL8_m.js.map → react-18-BAudFSEM.js.map} +1 -1
  642. package/dist/{react.esm-CweFe1CK.js → react.esm-GvSawg5E.js} +79 -79
  643. package/dist/{react.esm-CweFe1CK.js.map → react.esm-GvSawg5E.js.map} +1 -1
  644. package/dist/setupTests.js +2 -2
  645. package/dist/setupTests.js.map +1 -1
  646. package/dist/storyComponents/ClipboardButton/ClipboardButton.d.ts +1 -1
  647. package/dist/storyComponents/ClipboardButton/ClipboardButton.js +1 -1
  648. package/dist/storyComponents/ClipboardButton/index.js +1 -1
  649. package/dist/storyComponents/Container/Container.d.ts +1 -1
  650. package/dist/storyComponents/Container/Container.js +1 -1
  651. package/dist/storyComponents/Container/index.js +1 -1
  652. package/dist/storybook__react.d.js +5 -5
  653. package/dist/storybook__react.d.js.map +1 -1
  654. package/dist/{test-Pa9Lwbsq.js → test-CpW02epT.js} +2 -2
  655. package/dist/{test-Pa9Lwbsq.js.map → test-CpW02epT.js.map} +1 -1
  656. package/dist/{test-utils-Cmn06m_x.js → test-utils-DcI4ZXle.js} +2 -2
  657. package/dist/{test-utils-Cmn06m_x.js.map → test-utils-DcI4ZXle.js.map} +1 -1
  658. package/package.json +28 -27
  659. package/dist/Lexical.prod-CqPLSi0R.js.map +0 -1
  660. package/dist/LexicalClipboard.prod-BVw_sFpo.js.map +0 -1
  661. package/dist/LexicalExtension.prod-CUQTgbur.js.map +0 -1
  662. package/dist/LexicalLink.prod-DMhcqD9x.js.map +0 -1
  663. package/dist/LexicalList.prod-eYlcb5Ao.js.map +0 -1
  664. package/dist/LexicalTable.prod-DlOxUQou.js.map +0 -1
  665. /package/dist/{chunk-3e0lkp8x.js → chunk-CWhphoD1.js} +0 -0
@@ -33,6 +33,6 @@ export interface SelectListboxProps {
33
33
  }
34
34
  /** Represents a component to render a select list box. */
35
35
  export declare const SelectListbox: {
36
- ({ options, variant, fullWidth, size, optionPositionRight, defaultValue, maxOptionHeight, disabled, buttonLabelProp, buttonLabelBold, onChange, dividerAfter, notValid, children, }: PropsWithChildren<SelectListboxProps>): import("react/jsx-runtime").JSX.Element;
37
- SelectOption: ({ option, index, dividerAfter, children }: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
36
+ ({ options, variant, fullWidth, size, optionPositionRight, defaultValue, maxOptionHeight, disabled, buttonLabelProp, buttonLabelBold, onChange, dividerAfter, notValid, children, }: PropsWithChildren<SelectListboxProps>): import("react").JSX.Element;
37
+ SelectOption: ({ option, index, dividerAfter, children }: SelectOptionProps) => import("react").JSX.Element;
38
38
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SelectListbox.js","names":[],"sources":["../../../src/components/SelectListbox/SelectListbox.tsx"],"sourcesContent":["import { Children, cloneElement, isValidElement, useState } from 'react';\n\nimport type { PropsWithChildren } from 'react';\nimport type { OptionValue, SelectValue } from './SelectProvider';\nimport type { SelectOptionProps } from './components/SelectOption';\n\nimport { SelectProvider } from './SelectProvider';\nimport { SelectButton } from './components/SelectButton';\nimport { SelectContainer } from './components/SelectContainer';\nimport { SelectOptionBox } from './components/SelectOptionBox';\nimport { SelectOption } from './components/SelectOption';\n\nimport { usePositionedFloaters } from 'components/hooks/usePositionedFloaters';\n\nexport interface SelectListboxProps {\n /** The possible options to select. */\n options: OptionValue[];\n /** The selected value by default. */\n defaultValue?: SelectValue;\n /** The max height of the options. */\n maxOptionHeight?: `${number}${'px' | 'rem'}`;\n /** `true` to disable the select box; otherwise, `false`. The default is `false`. */\n disabled?: boolean;\n /** The name of the property in the options structure that contains the label of the options. */\n buttonLabelProp?: string;\n /** `true` to render the labels in bold; otherwise, `false`. The default is `false`. */\n buttonLabelBold?: boolean;\n /** The variant of the select box. */\n variant?: 'noborder' | 'pill' | 'pillLeft' | 'pillRight' | 'darkBorder' | 'roundedLeft' | 'roundedRight';\n /** If true sets the option dropdown min-width to the width of the select button. */\n fullWidth?: boolean;\n /** The size of the select box. */\n size?: 'small' | 'medium' | 'default';\n /** `true` to align the right side of the options with the select box; otherwise, `false` to align on the left side. */\n optionPositionRight?: boolean;\n /** The breakpoint at which to switch to the mobile view. */\n mobileBreakpoint?: `${number}${'px' | 'rem'}`;\n /** The callback function that is invoked when an option is selected. */\n onChange?: (option: OptionValue) => void;\n /** Option to add a devider after a given amout of options in the select option box. */\n dividerAfter?: number;\n /** `true` to color border red to show not valid; otherwise, `false`. */\n notValid?: boolean;\n}\n\n/** Represents a component to render a select list box. */\nexport const SelectListbox = ({\n options,\n variant,\n fullWidth = false,\n size = 'default',\n optionPositionRight,\n defaultValue = -1,\n maxOptionHeight,\n disabled,\n buttonLabelProp = 'label',\n buttonLabelBold,\n onChange,\n dividerAfter,\n notValid = false,\n children,\n}: PropsWithChildren<SelectListboxProps>) => {\n const [positionElement, setPositionElement] = useState<HTMLElement | null>(null);\n const [referenceElement, setReferenceElement] = useState<HTMLElement | null>(null);\n const { style: positionStyle } = usePositionedFloaters(positionElement, referenceElement, {\n mouseEvent: 'click',\n position: 'bottomLeft',\n offset: 4,\n maxFixedHeight: maxOptionHeight,\n horizontalPosition: optionPositionRight ? 'right' : 'left',\n mobileBreakpoint: '28rem',\n fullWidth,\n });\n\n return (\n <SelectProvider options={options} defaultValue={defaultValue}>\n <SelectContainer>\n <SelectButton\n disabled={disabled}\n buttonLabelProp={buttonLabelProp}\n buttonLabelBold={buttonLabelBold}\n variant={variant}\n size={size}\n notValid={notValid}\n onChange={onChange}\n ref={setReferenceElement}\n />\n\n <SelectOptionBox ref={setPositionElement} {...positionStyle}>\n {Children.map(children, (child, index) => {\n if (isValidElement<SelectOptionProps>(child)) {\n return cloneElement(child, {\n dividerAfter,\n key: index,\n });\n }\n return child;\n })}\n </SelectOptionBox>\n </SelectContainer>\n </SelectProvider>\n );\n};\n\nSelectListbox.SelectOption = SelectOption;\n"],"mappings":";;;;;;;;;AA8CA,IAAa,KAAiB,EAC5B,YACA,YACA,eAAY,IACZ,UAAO,WACP,wBACA,kBAAe,IACf,oBACA,aACA,qBAAkB,SAClB,oBACA,aACA,iBACA,cAAW,IACX,kBAC2C;CAC3C,IAAM,CAAC,GAAiB,KAAsB,EAA6B,KAAK,EAC1E,CAAC,GAAkB,KAAuB,EAA6B,KAAK,EAC5E,EAAE,OAAO,MAAkB,EAAsB,GAAiB,GAAkB;EACxF,YAAY;EACZ,UAAU;EACV,QAAQ;EACR,gBAAgB;EAChB,oBAAoB,IAAsB,UAAU;EACpD,kBAAkB;EAClB;EACD,CAAC;CAEF,OACE,kBAAC,GAAD;EAAyB;EAAuB;YAC9C,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;GACY;GACO;GACA;GACR;GACH;GACI;GACA;GACV,KAAK;GACL,CAAA,EAEF,kBAAC,GAAD;GAAiB,KAAK;GAAoB,GAAI;aAC3C,EAAS,IAAI,IAAW,GAAO,MAC1B,EAAkC,EAAM,GACnC,EAAa,GAAO;IACzB;IACA,KAAK;IACN,CAAC,GAEG,EACP;GACc,CAAA,CACF,EAAA,CAAA;EACH,CAAA;;AAIrB,EAAc,eAAe"}
1
+ {"version":3,"file":"SelectListbox.js","names":[],"sources":["../../../src/components/SelectListbox/SelectListbox.tsx"],"sourcesContent":["import { Children, cloneElement, isValidElement, useState } from 'react';\n\nimport type { PropsWithChildren } from 'react';\nimport type { OptionValue, SelectValue } from './SelectProvider';\nimport type { SelectOptionProps } from './components/SelectOption';\n\nimport { SelectProvider } from './SelectProvider';\nimport { SelectButton } from './components/SelectButton';\nimport { SelectContainer } from './components/SelectContainer';\nimport { SelectOptionBox } from './components/SelectOptionBox';\nimport { SelectOption } from './components/SelectOption';\n\nimport { usePositionedFloaters } from 'components/hooks/usePositionedFloaters';\n\nexport interface SelectListboxProps {\n /** The possible options to select. */\n options: OptionValue[];\n /** The selected value by default. */\n defaultValue?: SelectValue;\n /** The max height of the options. */\n maxOptionHeight?: `${number}${'px' | 'rem'}`;\n /** `true` to disable the select box; otherwise, `false`. The default is `false`. */\n disabled?: boolean;\n /** The name of the property in the options structure that contains the label of the options. */\n buttonLabelProp?: string;\n /** `true` to render the labels in bold; otherwise, `false`. The default is `false`. */\n buttonLabelBold?: boolean;\n /** The variant of the select box. */\n variant?: 'noborder' | 'pill' | 'pillLeft' | 'pillRight' | 'darkBorder' | 'roundedLeft' | 'roundedRight';\n /** If true sets the option dropdown min-width to the width of the select button. */\n fullWidth?: boolean;\n /** The size of the select box. */\n size?: 'small' | 'medium' | 'default';\n /** `true` to align the right side of the options with the select box; otherwise, `false` to align on the left side. */\n optionPositionRight?: boolean;\n /** The breakpoint at which to switch to the mobile view. */\n mobileBreakpoint?: `${number}${'px' | 'rem'}`;\n /** The callback function that is invoked when an option is selected. */\n onChange?: (option: OptionValue) => void;\n /** Option to add a devider after a given amout of options in the select option box. */\n dividerAfter?: number;\n /** `true` to color border red to show not valid; otherwise, `false`. */\n notValid?: boolean;\n}\n\n/** Represents a component to render a select list box. */\nexport const SelectListbox = ({\n options,\n variant,\n fullWidth = false,\n size = 'default',\n optionPositionRight,\n defaultValue = -1,\n maxOptionHeight,\n disabled,\n buttonLabelProp = 'label',\n buttonLabelBold,\n onChange,\n dividerAfter,\n notValid = false,\n children,\n}: PropsWithChildren<SelectListboxProps>) => {\n const [positionElement, setPositionElement] = useState<HTMLElement | null>(null);\n const [referenceElement, setReferenceElement] = useState<HTMLElement | null>(null);\n const { style: positionStyle } = usePositionedFloaters(positionElement, referenceElement, {\n mouseEvent: 'click',\n position: 'bottomLeft',\n offset: 4,\n maxFixedHeight: maxOptionHeight,\n horizontalPosition: optionPositionRight ? 'right' : 'left',\n mobileBreakpoint: '28rem',\n fullWidth,\n });\n\n return (\n <SelectProvider options={options} defaultValue={defaultValue}>\n <SelectContainer>\n <SelectButton\n disabled={disabled}\n buttonLabelProp={buttonLabelProp}\n buttonLabelBold={buttonLabelBold}\n variant={variant}\n size={size}\n notValid={notValid}\n onChange={onChange}\n ref={setReferenceElement}\n />\n\n <SelectOptionBox ref={setPositionElement} {...positionStyle}>\n {Children.map(children, (child, index) => {\n if (isValidElement<SelectOptionProps>(child)) {\n return cloneElement(child, {\n dividerAfter,\n key: index,\n });\n }\n return child;\n })}\n </SelectOptionBox>\n </SelectContainer>\n </SelectProvider>\n );\n};\n\nSelectListbox.SelectOption = SelectOption;\n"],"mappings":";;;;;;;;;AA8CA,IAAa,KAAiB,EAC5B,YACA,YACA,eAAY,IACZ,UAAO,WACP,wBACA,kBAAe,IACf,oBACA,aACA,qBAAkB,SAClB,oBACA,aACA,iBACA,cAAW,IACX,kBAC2C;CAC3C,IAAM,CAAC,GAAiB,KAAsB,EAA6B,IAAI,GACzE,CAAC,GAAkB,KAAuB,EAA6B,IAAI,GAC3E,EAAE,OAAO,MAAkB,EAAsB,GAAiB,GAAkB;EACxF,YAAY;EACZ,UAAU;EACV,QAAQ;EACR,gBAAgB;EAChB,oBAAoB,IAAsB,UAAU;EACpD,kBAAkB;EAClB;CACF,CAAC;CAED,OACE,kBAAC,GAAD;EAAyB;EAAuB;YAC9C,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;GACY;GACO;GACA;GACR;GACH;GACI;GACA;GACV,KAAK;EACN,CAAA,GAED,kBAAC,GAAD;GAAiB,KAAK;GAAoB,GAAI;aAC3C,EAAS,IAAI,IAAW,GAAO,MAC1B,EAAkC,CAAK,IAClC,EAAa,GAAO;IACzB;IACA,KAAK;GACP,CAAC,IAEI,CACR;EACc,CAAA,CACF,EAAA,CAAA;CACH,CAAA;AAEpB;AAEA,EAAc,eAAe"}
@@ -23,6 +23,6 @@ interface Props {
23
23
  options: OptionValue[];
24
24
  defaultValue: SelectValue;
25
25
  }
26
- export declare const SelectProvider: ({ options, defaultValue, children }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const SelectProvider: ({ options, defaultValue, children }: PropsWithChildren<Props>) => import("react").JSX.Element;
27
27
  export declare const useSelect: () => SelectListboxContext;
28
28
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"SelectProvider.js","names":[],"sources":["../../../src/components/SelectListbox/SelectProvider.tsx"],"sourcesContent":["import { createContext, useContext, useState, useId, useRef, useEffect } from 'react';\n\nimport type { PropsWithChildren } from 'react';\n\nexport type SelectValue = string | number | null;\n\nexport type OptionValue = {\n value: SelectValue;\n label: string;\n selectedLabel?: string;\n disabled?: boolean;\n};\nexport interface SelectListboxContext {\n options: OptionValue[];\n selectedValue: OptionValue;\n setSelectedValue: (v: OptionValue) => void;\n isOpen: boolean;\n setIsOpen: (v: boolean) => void;\n toggleListbox: () => void;\n getValue: (value: SelectValue) => OptionValue;\n activeIndex: number;\n setActiveIndex: (v: number) => void;\n listboxId: string;\n isDirty: boolean;\n}\n\nconst SelectContext = createContext<SelectListboxContext>({} as SelectListboxContext);\n\ninterface Props {\n options: OptionValue[];\n defaultValue: SelectValue;\n}\n\nexport const SelectProvider = ({ options, defaultValue, children }: PropsWithChildren<Props>) => {\n const [value, setValue] = useState<OptionValue>({ value: '', label: '' });\n const [isOpen, setIsOpen] = useState(false);\n const [activeIndex, setActiveIndex] = useState(-1);\n const [isDirty, setIsDirty] = useState(false);\n const listboxId = useRef<string>(useId());\n\n const toggleListbox = () => {\n setIsOpen((status) => !status);\n setIsDirty(false);\n };\n\n const getValue = (value: SelectValue) => {\n return (\n options.find((option) => option.value === value) || {\n value: -1,\n label: '',\n selectedLabel: '-',\n }\n );\n };\n\n const setSelectedValue = (value: OptionValue, isDefault = false) => {\n const selectedIndex = options.findIndex((option) => option.value === value.value);\n setActiveIndex(selectedIndex);\n setValue(value);\n setIsOpen(false);\n setIsDirty(!isDefault);\n };\n\n if (defaultValue !== -1 && !value.value) {\n setSelectedValue(getValue(defaultValue), true);\n }\n\n useEffect(() => {\n const newLabel = getValue(value.value || defaultValue).label;\n if (newLabel !== value.label) {\n setSelectedValue(getValue(value.value || defaultValue));\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [options, defaultValue]);\n\n return (\n <SelectContext.Provider\n value={{\n options,\n selectedValue: value,\n setSelectedValue,\n isOpen,\n setIsOpen,\n toggleListbox,\n getValue,\n activeIndex,\n setActiveIndex,\n listboxId: listboxId.current,\n isDirty,\n }}\n >\n {children}\n </SelectContext.Provider>\n );\n};\n\nexport const useSelect = () => {\n const context = useContext(SelectContext);\n\n if (context === undefined) throw new Error('useSelect can only be used in an SelectProvider');\n\n return context;\n};\n"],"mappings":";;;AA0BA,IAAM,IAAgB,EAAoC,EAAE,CAAyB,EAOxE,KAAkB,EAAE,YAAS,iBAAc,kBAAyC;CAC/F,IAAM,CAAC,GAAO,KAAY,EAAsB;EAAE,OAAO;EAAI,OAAO;EAAI,CAAC,EACnE,CAAC,GAAQ,KAAa,EAAS,GAAM,EACrC,CAAC,GAAa,KAAkB,EAAS,GAAG,EAC5C,CAAC,GAAS,KAAc,EAAS,GAAM,EACvC,IAAY,EAAe,GAAO,CAAC,EAEnC,UAAsB;EAE1B,AADA,GAAW,MAAW,CAAC,EAAO,EAC9B,EAAW,GAAM;IAGb,KAAY,MAEd,EAAQ,MAAM,MAAW,EAAO,UAAU,EAAM,IAAI;EAClD,OAAO;EACP,OAAO;EACP,eAAe;EAChB,EAIC,KAAoB,GAAoB,IAAY,OAAU;EAKlE,AAHA,EADsB,EAAQ,WAAW,MAAW,EAAO,UAAU,EAAM,MAC5D,CAAc,EAC7B,EAAS,EAAM,EACf,EAAU,GAAM,EAChB,EAAW,CAAC,EAAU;;CAexB,OAZI,MAAiB,MAAM,CAAC,EAAM,SAChC,EAAiB,EAAS,EAAa,EAAE,GAAK,EAGhD,QAAgB;EAEd,AADiB,EAAS,EAAM,SAAS,EAAa,CAAC,UACtC,EAAM,SACrB,EAAiB,EAAS,EAAM,SAAS,EAAa,CAAC;IAGxD,CAAC,GAAS,EAAa,CAAC,EAGzB,kBAAC,EAAc,UAAf;EACE,OAAO;GACL;GACA,eAAe;GACf;GACA;GACA;GACA;GACA;GACA;GACA;GACA,WAAW,EAAU;GACrB;GACD;EAEA;EACsB,CAAA;GAIhB,UAAkB;CAC7B,IAAM,IAAU,EAAW,EAAc;CAEzC,IAAI,MAAY,KAAA,GAAW,MAAU,MAAM,kDAAkD;CAE7F,OAAO"}
1
+ {"version":3,"file":"SelectProvider.js","names":[],"sources":["../../../src/components/SelectListbox/SelectProvider.tsx"],"sourcesContent":["import { createContext, useContext, useState, useId, useRef, useEffect } from 'react';\n\nimport type { PropsWithChildren } from 'react';\n\nexport type SelectValue = string | number | null;\n\nexport type OptionValue = {\n value: SelectValue;\n label: string;\n selectedLabel?: string;\n disabled?: boolean;\n};\nexport interface SelectListboxContext {\n options: OptionValue[];\n selectedValue: OptionValue;\n setSelectedValue: (v: OptionValue) => void;\n isOpen: boolean;\n setIsOpen: (v: boolean) => void;\n toggleListbox: () => void;\n getValue: (value: SelectValue) => OptionValue;\n activeIndex: number;\n setActiveIndex: (v: number) => void;\n listboxId: string;\n isDirty: boolean;\n}\n\nconst SelectContext = createContext<SelectListboxContext>({} as SelectListboxContext);\n\ninterface Props {\n options: OptionValue[];\n defaultValue: SelectValue;\n}\n\nexport const SelectProvider = ({ options, defaultValue, children }: PropsWithChildren<Props>) => {\n const [value, setValue] = useState<OptionValue>({ value: '', label: '' });\n const [isOpen, setIsOpen] = useState(false);\n const [activeIndex, setActiveIndex] = useState(-1);\n const [isDirty, setIsDirty] = useState(false);\n const listboxId = useRef<string>(useId());\n\n const toggleListbox = () => {\n setIsOpen((status) => !status);\n setIsDirty(false);\n };\n\n const getValue = (value: SelectValue) => {\n return (\n options.find((option) => option.value === value) || {\n value: -1,\n label: '',\n selectedLabel: '-',\n }\n );\n };\n\n const setSelectedValue = (value: OptionValue, isDefault = false) => {\n const selectedIndex = options.findIndex((option) => option.value === value.value);\n setActiveIndex(selectedIndex);\n setValue(value);\n setIsOpen(false);\n setIsDirty(!isDefault);\n };\n\n if (defaultValue !== -1 && !value.value) {\n setSelectedValue(getValue(defaultValue), true);\n }\n\n useEffect(() => {\n const newLabel = getValue(value.value || defaultValue).label;\n if (newLabel !== value.label) {\n setSelectedValue(getValue(value.value || defaultValue));\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [options, defaultValue]);\n\n return (\n <SelectContext.Provider\n value={{\n options,\n selectedValue: value,\n setSelectedValue,\n isOpen,\n setIsOpen,\n toggleListbox,\n getValue,\n activeIndex,\n setActiveIndex,\n listboxId: listboxId.current,\n isDirty,\n }}\n >\n {children}\n </SelectContext.Provider>\n );\n};\n\nexport const useSelect = () => {\n const context = useContext(SelectContext);\n\n if (context === undefined) throw new Error('useSelect can only be used in an SelectProvider');\n\n return context;\n};\n"],"mappings":";;;AA0BA,IAAM,IAAgB,EAAoC,CAAC,CAAyB,GAOvE,KAAkB,EAAE,YAAS,iBAAc,kBAAyC;CAC/F,IAAM,CAAC,GAAO,KAAY,EAAsB;EAAE,OAAO;EAAI,OAAO;CAAG,CAAC,GAClE,CAAC,GAAQ,KAAa,EAAS,EAAK,GACpC,CAAC,GAAa,KAAkB,EAAS,EAAE,GAC3C,CAAC,GAAS,KAAc,EAAS,EAAK,GACtC,IAAY,EAAe,EAAM,CAAC,GAElC,UAAsB;EAE1B,AADA,GAAW,MAAW,CAAC,CAAM,GAC7B,EAAW,EAAK;CAClB,GAEM,KAAY,MAEd,EAAQ,MAAM,MAAW,EAAO,UAAU,CAAK,KAAK;EAClD,OAAO;EACP,OAAO;EACP,eAAe;CACjB,GAIE,KAAoB,GAAoB,IAAY,OAAU;EAKlE,AAHA,EADsB,EAAQ,WAAW,MAAW,EAAO,UAAU,EAAM,KAC5D,CAAa,GAC5B,EAAS,CAAK,GACd,EAAU,EAAK,GACf,EAAW,CAAC,CAAS;CACvB;CAcA,OAZI,MAAiB,MAAM,CAAC,EAAM,SAChC,EAAiB,EAAS,CAAY,GAAG,EAAI,GAG/C,QAAgB;EAEd,AADiB,EAAS,EAAM,SAAS,CAAY,EAAE,UACtC,EAAM,SACrB,EAAiB,EAAS,EAAM,SAAS,CAAY,CAAC;CAG1D,GAAG,CAAC,GAAS,CAAY,CAAC,GAGxB,kBAAC,EAAc,UAAf;EACE,OAAO;GACL;GACA,eAAe;GACf;GACA;GACA;GACA;GACA;GACA;GACA;GACA,WAAW,EAAU;GACrB;EACF;EAEC;CACqB,CAAA;AAE5B,GAEa,UAAkB;CAC7B,IAAM,IAAU,EAAW,CAAa;CAExC,IAAI,MAAY,KAAA,GAAW,MAAU,MAAM,iDAAiD;CAE5F,OAAO;AACT"}
@@ -1,7 +1,7 @@
1
- import { t as e } from "../../../clsx-BD2qMUU1.js";
1
+ import { t as e } from "../../../clsx-BWCAbrjV.js";
2
2
  import { Icon as t } from "../../Icon/Icon.js";
3
3
  import { useSelect as n } from "../SelectProvider.js";
4
- import { t as r } from "../../../SelectListbox.module-HaPs1CLD.js";
4
+ import { t as r } from "../../../SelectListbox.module-Df90DNyN.js";
5
5
  import { forwardRef as i, useEffect as a, useRef as o } from "react";
6
6
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
7
  //#region src/components/SelectListbox/components/SelectButton.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"SelectButton.js","names":[],"sources":["../../../../src/components/SelectListbox/components/SelectButton.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { useEffect, useRef, forwardRef } from 'react';\n\nimport type { KeyboardEvent } from 'react';\nimport type { OptionValue, SelectValue } from 'components/SelectListbox/SelectProvider';\n\nimport styles from 'components/SelectListbox/SelectListbox.module.css';\nimport { Icon } from 'components/Icon';\nimport { useSelect } from 'components/SelectListbox/SelectProvider';\n\nexport interface SelectButtonProps {\n variant?: 'noborder' | 'pill' | 'pillLeft' | 'pillRight' | 'darkBorder' | 'roundedLeft' | 'roundedRight';\n size?: 'small' | 'medium' | 'default';\n onChange?: (option: OptionValue) => void;\n buttonLabelProp?: string;\n buttonLabelBold?: boolean;\n disabled?: boolean;\n notValid?: boolean;\n}\n\nexport const SelectButton = forwardRef<HTMLButtonElement, SelectButtonProps>((props, ref) => {\n const {\n variant,\n size = 'default',\n onChange,\n buttonLabelProp = 'label',\n buttonLabelBold,\n disabled = false,\n notValid = false,\n } = props;\n const buttonWrapper = useRef<HTMLSpanElement>(null);\n const { listboxId, isOpen, selectedValue, toggleListbox, setIsOpen, setActiveIndex, options, isDirty } =\n useSelect() || {};\n\n const onTriggerKeyDown = (event: KeyboardEvent<HTMLButtonElement>) => {\n if (event.key.length === 1) {\n const key = event.key.toLocaleLowerCase();\n const optionIndexStartsWithKey = options.findIndex(\n (option) => !option.disabled && option.label.toLocaleLowerCase().startsWith(key)\n );\n if (optionIndexStartsWithKey !== -1) {\n setActiveIndex(optionIndexStartsWithKey);\n if (!isOpen) setIsOpen(true);\n event.preventDefault();\n return;\n }\n }\n\n switch (event.key) {\n case 'Enter':\n event.preventDefault();\n if (!isOpen) {\n setIsOpen(true);\n return;\n }\n break;\n case 'Escape':\n if (isOpen) {\n event.stopPropagation();\n setActiveIndex(options.findIndex((option) => option.value === selectedValue?.value));\n setIsOpen(false);\n }\n break;\n }\n };\n\n useEffect(() => {\n if (isOpen) {\n (buttonWrapper.current?.children[0] as HTMLButtonElement).blur();\n }\n }, [isOpen]);\n\n useEffect(() => {\n if (onChange) {\n onChange(selectedValue);\n }\n\n isDirty && (buttonWrapper.current?.children[0] as HTMLButtonElement).focus();\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [selectedValue]);\n\n return (\n <span ref={buttonWrapper}>\n <button\n className={clsx(styles['select-listbox-trigger'], styles[`select-listbox-trigger--${size}`], {\n [styles[`select-listbox-trigger--${variant}`]]: variant,\n [styles['select-listbox-trigger--bold']]: buttonLabelBold,\n [styles['select-listbox-trigger--not-valid']]: notValid,\n })}\n type=\"button\"\n onClick={toggleListbox}\n onKeyDown={onTriggerKeyDown}\n aria-expanded={isOpen}\n aria-haspopup=\"listbox\"\n aria-label={`${selectedValue.label}`}\n disabled={disabled}\n aria-controls={listboxId}\n {...(ref && { ref: ref })}\n >\n <span className={styles['select-listbox-trigger-label']}>\n {selectedValue[buttonLabelProp as keyof SelectValue]}\n </span>\n\n <Icon\n className={clsx(styles['select-listbox-trigger-icon'], {\n [styles['select-listbox-trigger-icon--open']]: isOpen,\n })}\n name=\"CheveronDown\"\n size={16}\n />\n </button>\n </span>\n );\n});\n"],"mappings":";;;;;;;AAoBA,IAAa,IAAe,GAAkD,GAAO,MAAQ;CAC3F,IAAM,EACJ,YACA,UAAO,WACP,aACA,qBAAkB,SAClB,oBACA,cAAW,IACX,cAAW,OACT,GACE,IAAgB,EAAwB,KAAK,EAC7C,EAAE,cAAW,WAAQ,kBAAe,kBAAe,cAAW,mBAAgB,YAAS,eAC3F,GAAW,IAAI,EAAE,EAEb,KAAoB,MAA4C;EACpE,IAAI,EAAM,IAAI,WAAW,GAAG;GAC1B,IAAM,IAAM,EAAM,IAAI,mBAAmB,EACnC,IAA2B,EAAQ,WACtC,MAAW,CAAC,EAAO,YAAY,EAAO,MAAM,mBAAmB,CAAC,WAAW,EAAI,CACjF;GACD,IAAI,MAA6B,IAAI;IAGnC,AAFA,EAAe,EAAyB,EACnC,KAAQ,EAAU,GAAK,EAC5B,EAAM,gBAAgB;IACtB;;;EAIJ,QAAQ,EAAM,KAAd;GACE,KAAK;IAEH,IADA,EAAM,gBAAgB,EAClB,CAAC,GAAQ;KACX,EAAU,GAAK;KACf;;IAEF;GACF,KAAK;IACH,AAAI,MACF,EAAM,iBAAiB,EACvB,EAAe,EAAQ,WAAW,MAAW,EAAO,UAAU,GAAe,MAAM,CAAC,EACpF,EAAU,GAAM;IAElB;;;CAoBN,OAhBA,QAAgB;EACd,AAAI,MACD,EAAc,SAAS,SAAS,IAAyB,MAAM;IAEjE,CAAC,EAAO,CAAC,EAEZ,QAAgB;EAKd,AAJI,KACF,EAAS,EAAc,EAGzB,MAAY,EAAc,SAAS,SAAS,IAAyB,OAAO;IAG3E,CAAC,EAAc,CAAC,EAGjB,kBAAC,QAAD;EAAM,KAAK;YACT,kBAAC,UAAD;GACE,WAAW,EAAK,EAAO,2BAA2B,EAAO,2BAA2B,MAAS;KAC1F,EAAO,2BAA2B,OAAa;KAC/C,EAAO,kCAAkC;KACzC,EAAO,uCAAuC;IAChD,CAAC;GACF,MAAK;GACL,SAAS;GACT,WAAW;GACX,iBAAe;GACf,iBAAc;GACd,cAAY,GAAG,EAAc;GACnB;GACV,iBAAe;GACf,GAAK,KAAO,EAAO,QAAK;aAd1B,CAgBE,kBAAC,QAAD;IAAM,WAAW,EAAO;cACrB,EAAc;IACV,CAAA,EAEP,kBAAC,GAAD;IACE,WAAW,EAAK,EAAO,gCAAgC,GACpD,EAAO,uCAAuC,GAChD,CAAC;IACF,MAAK;IACL,MAAM;IACN,CAAA,CACK;;EACJ,CAAA;EAET"}
1
+ {"version":3,"file":"SelectButton.js","names":[],"sources":["../../../../src/components/SelectListbox/components/SelectButton.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { useEffect, useRef, forwardRef } from 'react';\n\nimport type { KeyboardEvent } from 'react';\nimport type { OptionValue, SelectValue } from 'components/SelectListbox/SelectProvider';\n\nimport styles from 'components/SelectListbox/SelectListbox.module.css';\nimport { Icon } from 'components/Icon';\nimport { useSelect } from 'components/SelectListbox/SelectProvider';\n\nexport interface SelectButtonProps {\n variant?: 'noborder' | 'pill' | 'pillLeft' | 'pillRight' | 'darkBorder' | 'roundedLeft' | 'roundedRight';\n size?: 'small' | 'medium' | 'default';\n onChange?: (option: OptionValue) => void;\n buttonLabelProp?: string;\n buttonLabelBold?: boolean;\n disabled?: boolean;\n notValid?: boolean;\n}\n\nexport const SelectButton = forwardRef<HTMLButtonElement, SelectButtonProps>((props, ref) => {\n const {\n variant,\n size = 'default',\n onChange,\n buttonLabelProp = 'label',\n buttonLabelBold,\n disabled = false,\n notValid = false,\n } = props;\n const buttonWrapper = useRef<HTMLSpanElement>(null);\n const { listboxId, isOpen, selectedValue, toggleListbox, setIsOpen, setActiveIndex, options, isDirty } =\n useSelect() || {};\n\n const onTriggerKeyDown = (event: KeyboardEvent<HTMLButtonElement>) => {\n if (event.key.length === 1) {\n const key = event.key.toLocaleLowerCase();\n const optionIndexStartsWithKey = options.findIndex(\n (option) => !option.disabled && option.label.toLocaleLowerCase().startsWith(key)\n );\n if (optionIndexStartsWithKey !== -1) {\n setActiveIndex(optionIndexStartsWithKey);\n if (!isOpen) setIsOpen(true);\n event.preventDefault();\n return;\n }\n }\n\n switch (event.key) {\n case 'Enter':\n event.preventDefault();\n if (!isOpen) {\n setIsOpen(true);\n return;\n }\n break;\n case 'Escape':\n if (isOpen) {\n event.stopPropagation();\n setActiveIndex(options.findIndex((option) => option.value === selectedValue?.value));\n setIsOpen(false);\n }\n break;\n }\n };\n\n useEffect(() => {\n if (isOpen) {\n (buttonWrapper.current?.children[0] as HTMLButtonElement).blur();\n }\n }, [isOpen]);\n\n useEffect(() => {\n if (onChange) {\n onChange(selectedValue);\n }\n\n isDirty && (buttonWrapper.current?.children[0] as HTMLButtonElement).focus();\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [selectedValue]);\n\n return (\n <span ref={buttonWrapper}>\n <button\n className={clsx(styles['select-listbox-trigger'], styles[`select-listbox-trigger--${size}`], {\n [styles[`select-listbox-trigger--${variant}`]]: variant,\n [styles['select-listbox-trigger--bold']]: buttonLabelBold,\n [styles['select-listbox-trigger--not-valid']]: notValid,\n })}\n type=\"button\"\n onClick={toggleListbox}\n onKeyDown={onTriggerKeyDown}\n aria-expanded={isOpen}\n aria-haspopup=\"listbox\"\n aria-label={`${selectedValue.label}`}\n disabled={disabled}\n aria-controls={listboxId}\n {...(ref && { ref: ref })}\n >\n <span className={styles['select-listbox-trigger-label']}>\n {selectedValue[buttonLabelProp as keyof SelectValue]}\n </span>\n\n <Icon\n className={clsx(styles['select-listbox-trigger-icon'], {\n [styles['select-listbox-trigger-icon--open']]: isOpen,\n })}\n name=\"CheveronDown\"\n size={16}\n />\n </button>\n </span>\n );\n});\n"],"mappings":";;;;;;;AAoBA,IAAa,IAAe,GAAkD,GAAO,MAAQ;CAC3F,IAAM,EACJ,YACA,UAAO,WACP,aACA,qBAAkB,SAClB,oBACA,cAAW,IACX,cAAW,OACT,GACE,IAAgB,EAAwB,IAAI,GAC5C,EAAE,cAAW,WAAQ,kBAAe,kBAAe,cAAW,mBAAgB,YAAS,eAC3F,EAAU,KAAK,CAAC,GAEZ,KAAoB,MAA4C;EACpE,IAAI,EAAM,IAAI,WAAW,GAAG;GAC1B,IAAM,IAAM,EAAM,IAAI,kBAAkB,GAClC,IAA2B,EAAQ,WACtC,MAAW,CAAC,EAAO,YAAY,EAAO,MAAM,kBAAkB,EAAE,WAAW,CAAG,CACjF;GACA,IAAI,MAA6B,IAAI;IAGnC,AAFA,EAAe,CAAwB,GAClC,KAAQ,EAAU,EAAI,GAC3B,EAAM,eAAe;IACrB;GACF;EACF;EAEA,QAAQ,EAAM,KAAd;GACE,KAAK;IAEH,IADA,EAAM,eAAe,GACjB,CAAC,GAAQ;KACX,EAAU,EAAI;KACd;IACF;IACA;GACF,KAAK;IACH,AAAI,MACF,EAAM,gBAAgB,GACtB,EAAe,EAAQ,WAAW,MAAW,EAAO,UAAU,GAAe,KAAK,CAAC,GACnF,EAAU,EAAK;IAEjB;EACJ;CACF;CAkBA,OAhBA,QAAgB;EACd,AAAI,MACD,EAAc,SAAS,SAAS,IAAyB,KAAK;CAEnE,GAAG,CAAC,CAAM,CAAC,GAEX,QAAgB;EAKd,AAJI,KACF,EAAS,CAAa,GAGxB,MAAY,EAAc,SAAS,SAAS,IAAyB,MAAM;CAG7E,GAAG,CAAC,CAAa,CAAC,GAGhB,kBAAC,QAAD;EAAM,KAAK;YACT,kBAAC,UAAD;GACE,WAAW,EAAK,EAAO,2BAA2B,EAAO,2BAA2B,MAAS;KAC1F,EAAO,2BAA2B,OAAa;KAC/C,EAAO,kCAAkC;KACzC,EAAO,uCAAuC;GACjD,CAAC;GACD,MAAK;GACL,SAAS;GACT,WAAW;GACX,iBAAe;GACf,iBAAc;GACd,cAAY,GAAG,EAAc;GACnB;GACV,iBAAe;GACf,GAAK,KAAO,EAAO,OAAI;aAdzB,CAgBE,kBAAC,QAAD;IAAM,WAAW,EAAO;cACrB,EAAc;GACX,CAAA,GAEN,kBAAC,GAAD;IACE,WAAW,EAAK,EAAO,gCAAgC,GACpD,EAAO,uCAAuC,EACjD,CAAC;IACD,MAAK;IACL,MAAM;GACP,CAAA,CACK;;CACJ,CAAA;AAEV,CAAC"}
@@ -1,2 +1,2 @@
1
1
  import { PropsWithChildren } from 'react';
2
- export declare const SelectContainer: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const SelectContainer: ({ children }: PropsWithChildren) => import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { useSelect as e } from "../SelectProvider.js";
2
- import { t } from "../../../SelectListbox.module-HaPs1CLD.js";
2
+ import { t } from "../../../SelectListbox.module-Df90DNyN.js";
3
3
  import { useCallback as n, useEffect as r, useRef as i } from "react";
4
4
  import { jsx as a } from "react/jsx-runtime";
5
5
  //#region src/components/SelectListbox/components/SelectContainer.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"SelectContainer.js","names":[],"sources":["../../../../src/components/SelectListbox/components/SelectContainer.tsx"],"sourcesContent":["import { useCallback, useRef, useEffect } from 'react';\n\nimport type { PropsWithChildren } from 'react';\n\nimport { useSelect } from 'components/SelectListbox/SelectProvider';\nimport styles from 'components/SelectListbox/SelectListbox.module.css';\n\nexport const SelectContainer = ({ children }: PropsWithChildren) => {\n const { isOpen, setIsOpen } = useSelect();\n const listboxRef = useRef<HTMLDivElement>(null);\n\n const onMouseEventOutside = useCallback(\n ({ target }: Event | MouseEvent) => {\n if (!target || !listboxRef.current) return;\n\n if (!listboxRef.current.contains(target as Node)) {\n setIsOpen(false);\n }\n },\n [setIsOpen]\n );\n\n useEffect(() => {\n if (!isOpen) return;\n\n document.addEventListener('click', onMouseEventOutside, true);\n document.addEventListener('scroll', onMouseEventOutside, true);\n\n return () => {\n document.removeEventListener('click', onMouseEventOutside, true);\n document.removeEventListener('scroll', onMouseEventOutside, true);\n };\n }, [onMouseEventOutside, isOpen]);\n\n return (\n <div className={styles['select-listbox-container']} ref={listboxRef}>\n {children}\n </div>\n );\n};\n"],"mappings":";;;;;AAOA,IAAa,KAAmB,EAAE,kBAAkC;CAClE,IAAM,EAAE,WAAQ,iBAAc,GAAW,EACnC,IAAa,EAAuB,KAAK,EAEzC,IAAsB,GACzB,EAAE,gBAAiC;EAC9B,CAAC,KAAU,CAAC,EAAW,WAEtB,EAAW,QAAQ,SAAS,EAAe,IAC9C,EAAU,GAAM;IAGpB,CAAC,EAAU,CACZ;CAcD,OAZA,QAAgB;EACT,OAKL,OAHA,SAAS,iBAAiB,SAAS,GAAqB,GAAK,EAC7D,SAAS,iBAAiB,UAAU,GAAqB,GAAK,QAEjD;GAEX,AADA,SAAS,oBAAoB,SAAS,GAAqB,GAAK,EAChE,SAAS,oBAAoB,UAAU,GAAqB,GAAK;;IAElE,CAAC,GAAqB,EAAO,CAAC,EAG/B,kBAAC,OAAD;EAAK,WAAW,EAAO;EAA6B,KAAK;EACtD;EACG,CAAA"}
1
+ {"version":3,"file":"SelectContainer.js","names":[],"sources":["../../../../src/components/SelectListbox/components/SelectContainer.tsx"],"sourcesContent":["import { useCallback, useRef, useEffect } from 'react';\n\nimport type { PropsWithChildren } from 'react';\n\nimport { useSelect } from 'components/SelectListbox/SelectProvider';\nimport styles from 'components/SelectListbox/SelectListbox.module.css';\n\nexport const SelectContainer = ({ children }: PropsWithChildren) => {\n const { isOpen, setIsOpen } = useSelect();\n const listboxRef = useRef<HTMLDivElement>(null);\n\n const onMouseEventOutside = useCallback(\n ({ target }: Event | MouseEvent) => {\n if (!target || !listboxRef.current) return;\n\n if (!listboxRef.current.contains(target as Node)) {\n setIsOpen(false);\n }\n },\n [setIsOpen]\n );\n\n useEffect(() => {\n if (!isOpen) return;\n\n document.addEventListener('click', onMouseEventOutside, true);\n document.addEventListener('scroll', onMouseEventOutside, true);\n\n return () => {\n document.removeEventListener('click', onMouseEventOutside, true);\n document.removeEventListener('scroll', onMouseEventOutside, true);\n };\n }, [onMouseEventOutside, isOpen]);\n\n return (\n <div className={styles['select-listbox-container']} ref={listboxRef}>\n {children}\n </div>\n );\n};\n"],"mappings":";;;;;AAOA,IAAa,KAAmB,EAAE,kBAAkC;CAClE,IAAM,EAAE,WAAQ,iBAAc,EAAU,GAClC,IAAa,EAAuB,IAAI,GAExC,IAAsB,GACzB,EAAE,gBAAiC;EAC9B,CAAC,KAAU,CAAC,EAAW,WAEtB,EAAW,QAAQ,SAAS,CAAc,KAC7C,EAAU,EAAK;CAEnB,GACA,CAAC,CAAS,CACZ;CAcA,OAZA,QAAgB;EACT,OAKL,OAHA,SAAS,iBAAiB,SAAS,GAAqB,EAAI,GAC5D,SAAS,iBAAiB,UAAU,GAAqB,EAAI,SAEhD;GAEX,AADA,SAAS,oBAAoB,SAAS,GAAqB,EAAI,GAC/D,SAAS,oBAAoB,UAAU,GAAqB,EAAI;EAClE;CACF,GAAG,CAAC,GAAqB,CAAM,CAAC,GAG9B,kBAAC,OAAD;EAAK,WAAW,EAAO;EAA6B,KAAK;EACtD;CACE,CAAA;AAET"}
@@ -7,4 +7,4 @@ export interface SelectOptionProps {
7
7
  dividerAfter?: number;
8
8
  children: ReactNode;
9
9
  }
10
- export declare const SelectOption: ({ option, index, dividerAfter, children }: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const SelectOption: ({ option, index, dividerAfter, children }: SelectOptionProps) => import("react").JSX.Element;
@@ -1,6 +1,6 @@
1
- import { t as e } from "../../../clsx-BD2qMUU1.js";
1
+ import { t as e } from "../../../clsx-BWCAbrjV.js";
2
2
  import { useSelect as t } from "../SelectProvider.js";
3
- import { t as n } from "../../../SelectListbox.module-HaPs1CLD.js";
3
+ import { t as n } from "../../../SelectListbox.module-Df90DNyN.js";
4
4
  import { useEffect as r, useRef as i } from "react";
5
5
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
6
6
  //#region src/components/SelectListbox/components/SelectOption.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOption.js","names":[],"sources":["../../../../src/components/SelectListbox/components/SelectOption.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { useEffect, useRef } from 'react';\n\nimport type { KeyboardEvent, ReactNode } from 'react';\nimport type { OptionValue } from 'components/SelectListbox/SelectProvider';\n\nimport { useSelect } from 'components/SelectListbox/SelectProvider';\nimport styles from 'components/SelectListbox/SelectListbox.module.css';\n\nexport interface SelectOptionProps {\n option: OptionValue;\n index: number;\n key: string | number;\n dividerAfter?: number;\n children: ReactNode;\n}\n\nexport const SelectOption = ({ option, index, dividerAfter, children }: SelectOptionProps) => {\n const selectOptionRef = useRef<HTMLLIElement>(null);\n const { isOpen, activeIndex, setActiveIndex, selectedValue, setSelectedValue, setIsOpen, options } = useSelect();\n\n const handleSelectOption = (aIndex: number) => {\n setSelectedValue(options[aIndex]);\n setIsOpen(false);\n };\n\n const onOptionKeyDown = (event: KeyboardEvent<HTMLLIElement>) => {\n if (event.key.length === 1) {\n const key = event.key.toLocaleLowerCase();\n const optionIndexStartsWithKey = options.findIndex(\n (option) => !option.disabled && option.label.toLocaleLowerCase().startsWith(key)\n );\n if (optionIndexStartsWithKey !== -1) {\n setActiveIndex(optionIndexStartsWithKey);\n event.preventDefault();\n return;\n }\n }\n\n switch (event.key) {\n case 'Tab':\n event.preventDefault();\n if (isOpen) {\n setIsOpen(false);\n }\n break;\n case 'ArrowDown':\n case 'ArrowUp':\n event.preventDefault();\n if (!isOpen) {\n return;\n }\n if (event.key === 'ArrowDown' && activeIndex < options.length - 1) {\n setActiveIndex(activeIndex + 1);\n }\n if (event.key === 'ArrowUp' && activeIndex > 0) {\n setActiveIndex(activeIndex - 1);\n }\n break;\n case 'Enter':\n event.preventDefault();\n if (options?.length && activeIndex > -1 && !options[activeIndex].disabled) {\n handleSelectOption(activeIndex);\n }\n break;\n case 'Escape':\n if (isOpen) {\n event.stopPropagation();\n setIsOpen(false);\n }\n break;\n }\n };\n\n useEffect(() => {\n if (index === activeIndex) {\n isOpen ? selectOptionRef.current?.focus() : selectOptionRef.current?.blur();\n }\n }, [activeIndex, index, isOpen]);\n\n useEffect(() => {\n if (selectedValue.value === option.value) {\n setActiveIndex(index);\n }\n }, [index, option.value, selectedValue.value, setActiveIndex]);\n\n return (\n <>\n <li\n className={clsx(styles['select-listbox-option'], {\n [styles['select-listbox-option--active']]: index === activeIndex,\n [styles['select-listbox-option--divider']]: index + 1 === dividerAfter,\n })}\n key={`${option.value}`}\n {...(!option.disabled && {\n onClick: () => setSelectedValue(option),\n onKeyDown: onOptionKeyDown,\n tabIndex: 0,\n role: 'option',\n 'aria-selected': selectedValue.value === option.value,\n })}\n ref={selectOptionRef}\n >\n {children}\n </li>\n {index + 1 === dividerAfter && <div className={styles['select-listbox-divider']} aria-hidden=\"true\" />}\n </>\n );\n};\n"],"mappings":";;;;;;AAiBA,IAAa,KAAgB,EAAE,WAAQ,UAAO,iBAAc,kBAAkC;CAC5F,IAAM,IAAkB,EAAsB,KAAK,EAC7C,EAAE,WAAQ,gBAAa,mBAAgB,kBAAe,qBAAkB,cAAW,eAAY,GAAW,EAE1G,KAAsB,MAAmB;EAE7C,AADA,EAAiB,EAAQ,GAAQ,EACjC,EAAU,GAAM;IAGZ,KAAmB,MAAwC;EAC/D,IAAI,EAAM,IAAI,WAAW,GAAG;GAC1B,IAAM,IAAM,EAAM,IAAI,mBAAmB,EACnC,IAA2B,EAAQ,WACtC,MAAW,CAAC,EAAO,YAAY,EAAO,MAAM,mBAAmB,CAAC,WAAW,EAAI,CACjF;GACD,IAAI,MAA6B,IAAI;IAEnC,AADA,EAAe,EAAyB,EACxC,EAAM,gBAAgB;IACtB;;;EAIJ,QAAQ,EAAM,KAAd;GACE,KAAK;IAEH,AADA,EAAM,gBAAgB,EAClB,KACF,EAAU,GAAM;IAElB;GACF,KAAK;GACL,KAAK;IAEH,IADA,EAAM,gBAAgB,EAClB,CAAC,GACH;IAKF,AAHI,EAAM,QAAQ,eAAe,IAAc,EAAQ,SAAS,KAC9D,EAAe,IAAc,EAAE,EAE7B,EAAM,QAAQ,aAAa,IAAc,KAC3C,EAAe,IAAc,EAAE;IAEjC;GACF,KAAK;IAEH,AADA,EAAM,gBAAgB,EAClB,GAAS,UAAU,IAAc,MAAM,CAAC,EAAQ,GAAa,YAC/D,EAAmB,EAAY;IAEjC;GACF,KAAK;IACH,AAAI,MACF,EAAM,iBAAiB,EACvB,EAAU,GAAM;IAElB;;;CAgBN,OAZA,QAAgB;EACd,AAAI,MAAU,MACZ,IAAS,EAAgB,SAAS,OAAO,GAAG,EAAgB,SAAS,MAAM;IAE5E;EAAC;EAAa;EAAO;EAAO,CAAC,EAEhC,QAAgB;EACd,AAAI,EAAc,UAAU,EAAO,SACjC,EAAe,EAAM;IAEtB;EAAC;EAAO,EAAO;EAAO,EAAc;EAAO;EAAe,CAAC,EAG5D,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,MAAD;EACE,WAAW,EAAK,EAAO,0BAA0B;IAC9C,EAAO,mCAAmC,MAAU;IACpD,EAAO,oCAAoC,IAAQ,MAAM;GAC3D,CAAC;EAEF,GAAK,CAAC,EAAO,YAAY;GACvB,eAAe,EAAiB,EAAO;GACvC,WAAW;GACX,UAAU;GACV,MAAM;GACN,iBAAiB,EAAc,UAAU,EAAO;GACjD;EACD,KAAK;EAEJ;EACE,EAXE,GAAG,EAAO,QAWZ,EACJ,IAAQ,MAAM,KAAgB,kBAAC,OAAD;EAAK,WAAW,EAAO;EAA2B,eAAY;EAAS,CAAA,CACrG,EAAA,CAAA"}
1
+ {"version":3,"file":"SelectOption.js","names":[],"sources":["../../../../src/components/SelectListbox/components/SelectOption.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { useEffect, useRef } from 'react';\n\nimport type { KeyboardEvent, ReactNode } from 'react';\nimport type { OptionValue } from 'components/SelectListbox/SelectProvider';\n\nimport { useSelect } from 'components/SelectListbox/SelectProvider';\nimport styles from 'components/SelectListbox/SelectListbox.module.css';\n\nexport interface SelectOptionProps {\n option: OptionValue;\n index: number;\n key: string | number;\n dividerAfter?: number;\n children: ReactNode;\n}\n\nexport const SelectOption = ({ option, index, dividerAfter, children }: SelectOptionProps) => {\n const selectOptionRef = useRef<HTMLLIElement>(null);\n const { isOpen, activeIndex, setActiveIndex, selectedValue, setSelectedValue, setIsOpen, options } = useSelect();\n\n const handleSelectOption = (aIndex: number) => {\n setSelectedValue(options[aIndex]);\n setIsOpen(false);\n };\n\n const onOptionKeyDown = (event: KeyboardEvent<HTMLLIElement>) => {\n if (event.key.length === 1) {\n const key = event.key.toLocaleLowerCase();\n const optionIndexStartsWithKey = options.findIndex(\n (option) => !option.disabled && option.label.toLocaleLowerCase().startsWith(key)\n );\n if (optionIndexStartsWithKey !== -1) {\n setActiveIndex(optionIndexStartsWithKey);\n event.preventDefault();\n return;\n }\n }\n\n switch (event.key) {\n case 'Tab':\n event.preventDefault();\n if (isOpen) {\n setIsOpen(false);\n }\n break;\n case 'ArrowDown':\n case 'ArrowUp':\n event.preventDefault();\n if (!isOpen) {\n return;\n }\n if (event.key === 'ArrowDown' && activeIndex < options.length - 1) {\n setActiveIndex(activeIndex + 1);\n }\n if (event.key === 'ArrowUp' && activeIndex > 0) {\n setActiveIndex(activeIndex - 1);\n }\n break;\n case 'Enter':\n event.preventDefault();\n if (options?.length && activeIndex > -1 && !options[activeIndex].disabled) {\n handleSelectOption(activeIndex);\n }\n break;\n case 'Escape':\n if (isOpen) {\n event.stopPropagation();\n setIsOpen(false);\n }\n break;\n }\n };\n\n useEffect(() => {\n if (index === activeIndex) {\n isOpen ? selectOptionRef.current?.focus() : selectOptionRef.current?.blur();\n }\n }, [activeIndex, index, isOpen]);\n\n useEffect(() => {\n if (selectedValue.value === option.value) {\n setActiveIndex(index);\n }\n }, [index, option.value, selectedValue.value, setActiveIndex]);\n\n return (\n <>\n <li\n className={clsx(styles['select-listbox-option'], {\n [styles['select-listbox-option--active']]: index === activeIndex,\n [styles['select-listbox-option--divider']]: index + 1 === dividerAfter,\n })}\n key={`${option.value}`}\n {...(!option.disabled && {\n onClick: () => setSelectedValue(option),\n onKeyDown: onOptionKeyDown,\n tabIndex: 0,\n role: 'option',\n 'aria-selected': selectedValue.value === option.value,\n })}\n ref={selectOptionRef}\n >\n {children}\n </li>\n {index + 1 === dividerAfter && <div className={styles['select-listbox-divider']} aria-hidden=\"true\" />}\n </>\n );\n};\n"],"mappings":";;;;;;AAiBA,IAAa,KAAgB,EAAE,WAAQ,UAAO,iBAAc,kBAAkC;CAC5F,IAAM,IAAkB,EAAsB,IAAI,GAC5C,EAAE,WAAQ,gBAAa,mBAAgB,kBAAe,qBAAkB,cAAW,eAAY,EAAU,GAEzG,KAAsB,MAAmB;EAE7C,AADA,EAAiB,EAAQ,EAAO,GAChC,EAAU,EAAK;CACjB,GAEM,KAAmB,MAAwC;EAC/D,IAAI,EAAM,IAAI,WAAW,GAAG;GAC1B,IAAM,IAAM,EAAM,IAAI,kBAAkB,GAClC,IAA2B,EAAQ,WACtC,MAAW,CAAC,EAAO,YAAY,EAAO,MAAM,kBAAkB,EAAE,WAAW,CAAG,CACjF;GACA,IAAI,MAA6B,IAAI;IAEnC,AADA,EAAe,CAAwB,GACvC,EAAM,eAAe;IACrB;GACF;EACF;EAEA,QAAQ,EAAM,KAAd;GACE,KAAK;IAEH,AADA,EAAM,eAAe,GACjB,KACF,EAAU,EAAK;IAEjB;GACF,KAAK;GACL,KAAK;IAEH,IADA,EAAM,eAAe,GACjB,CAAC,GACH;IAKF,AAHI,EAAM,QAAQ,eAAe,IAAc,EAAQ,SAAS,KAC9D,EAAe,IAAc,CAAC,GAE5B,EAAM,QAAQ,aAAa,IAAc,KAC3C,EAAe,IAAc,CAAC;IAEhC;GACF,KAAK;IAEH,AADA,EAAM,eAAe,GACjB,GAAS,UAAU,IAAc,MAAM,CAAC,EAAQ,GAAa,YAC/D,EAAmB,CAAW;IAEhC;GACF,KAAK;IACH,AAAI,MACF,EAAM,gBAAgB,GACtB,EAAU,EAAK;IAEjB;EACJ;CACF;CAcA,OAZA,QAAgB;EACd,AAAI,MAAU,MACZ,IAAS,EAAgB,SAAS,MAAM,IAAI,EAAgB,SAAS,KAAK;CAE9E,GAAG;EAAC;EAAa;EAAO;CAAM,CAAC,GAE/B,QAAgB;EACd,AAAI,EAAc,UAAU,EAAO,SACjC,EAAe,CAAK;CAExB,GAAG;EAAC;EAAO,EAAO;EAAO,EAAc;EAAO;CAAc,CAAC,GAG3D,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,MAAD;EACE,WAAW,EAAK,EAAO,0BAA0B;IAC9C,EAAO,mCAAmC,MAAU;IACpD,EAAO,oCAAoC,IAAQ,MAAM;EAC5D,CAAC;EAED,GAAK,CAAC,EAAO,YAAY;GACvB,eAAe,EAAiB,CAAM;GACtC,WAAW;GACX,UAAU;GACV,MAAM;GACN,iBAAiB,EAAc,UAAU,EAAO;EAClD;EACA,KAAK;EAEJ;CACC,GAXG,GAAG,EAAO,OAWb,GACH,IAAQ,MAAM,KAAgB,kBAAC,OAAD;EAAK,WAAW,EAAO;EAA2B,eAAY;CAAQ,CAAA,CACrG,EAAA,CAAA;AAEN"}
@@ -1,5 +1,5 @@
1
1
  import { useSelect as e } from "../SelectProvider.js";
2
- import { t } from "../../../SelectListbox.module-HaPs1CLD.js";
2
+ import { t } from "../../../SelectListbox.module-Df90DNyN.js";
3
3
  import { forwardRef as n, useRef as r } from "react";
4
4
  import { jsx as i } from "react/jsx-runtime";
5
5
  //#region src/components/SelectListbox/components/SelectOptionBox.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOptionBox.js","names":[],"sources":["../../../../src/components/SelectListbox/components/SelectOptionBox.tsx"],"sourcesContent":["import { useRef, forwardRef } from 'react';\n\nimport type { CSSProperties, ReactNode } from 'react';\n\nimport styles from 'components/SelectListbox/SelectListbox.module.css';\nimport { useSelect } from 'components/SelectListbox/SelectProvider';\n\nexport interface SelectOptionBoxProps {\n style: CSSProperties;\n children: ReactNode;\n}\n\nexport const SelectOptionBox = forwardRef<HTMLDivElement, SelectOptionBoxProps>((props, ref) => {\n const { style, children } = props;\n const { listboxId, isOpen } = useSelect();\n const selectOptionBoxRef = useRef<HTMLUListElement>(null);\n\n return (\n <div\n className={styles['select-listbox__wrapper']}\n style={{ ...style, visibility: isOpen ? 'visible' : 'hidden' }}\n {...(ref && { ref: ref })}\n >\n <ul\n className={styles['select-listbox']}\n role=\"listbox\"\n ref={selectOptionBoxRef}\n id={listboxId}\n tabIndex={-1}\n style={{ maxHeight: style.maxHeight }}\n >\n {children}\n </ul>\n </div>\n );\n});\n"],"mappings":";;;;;AAYA,IAAa,IAAkB,GAAkD,GAAO,MAAQ;CAC9F,IAAM,EAAE,UAAO,gBAAa,GACtB,EAAE,cAAW,cAAW,GAAW,EACnC,IAAqB,EAAyB,KAAK;CAEzD,OACE,kBAAC,OAAD;EACE,WAAW,EAAO;EAClB,OAAO;GAAE,GAAG;GAAO,YAAY,IAAS,YAAY;GAAU;EAC9D,GAAK,KAAO,EAAO,QAAK;YAExB,kBAAC,MAAD;GACE,WAAW,EAAO;GAClB,MAAK;GACL,KAAK;GACL,IAAI;GACJ,UAAU;GACV,OAAO,EAAE,WAAW,EAAM,WAAW;GAEpC;GACE,CAAA;EACD,CAAA;EAER"}
1
+ {"version":3,"file":"SelectOptionBox.js","names":[],"sources":["../../../../src/components/SelectListbox/components/SelectOptionBox.tsx"],"sourcesContent":["import { useRef, forwardRef } from 'react';\n\nimport type { CSSProperties, ReactNode } from 'react';\n\nimport styles from 'components/SelectListbox/SelectListbox.module.css';\nimport { useSelect } from 'components/SelectListbox/SelectProvider';\n\nexport interface SelectOptionBoxProps {\n style: CSSProperties;\n children: ReactNode;\n}\n\nexport const SelectOptionBox = forwardRef<HTMLDivElement, SelectOptionBoxProps>((props, ref) => {\n const { style, children } = props;\n const { listboxId, isOpen } = useSelect();\n const selectOptionBoxRef = useRef<HTMLUListElement>(null);\n\n return (\n <div\n className={styles['select-listbox__wrapper']}\n style={{ ...style, visibility: isOpen ? 'visible' : 'hidden' }}\n {...(ref && { ref: ref })}\n >\n <ul\n className={styles['select-listbox']}\n role=\"listbox\"\n ref={selectOptionBoxRef}\n id={listboxId}\n tabIndex={-1}\n style={{ maxHeight: style.maxHeight }}\n >\n {children}\n </ul>\n </div>\n );\n});\n"],"mappings":";;;;;AAYA,IAAa,IAAkB,GAAkD,GAAO,MAAQ;CAC9F,IAAM,EAAE,UAAO,gBAAa,GACtB,EAAE,cAAW,cAAW,EAAU,GAClC,IAAqB,EAAyB,IAAI;CAExD,OACE,kBAAC,OAAD;EACE,WAAW,EAAO;EAClB,OAAO;GAAE,GAAG;GAAO,YAAY,IAAS,YAAY;EAAS;EAC7D,GAAK,KAAO,EAAO,OAAI;YAEvB,kBAAC,MAAD;GACE,WAAW,EAAO;GAClB,MAAK;GACL,KAAK;GACL,IAAI;GACJ,UAAU;GACV,OAAO,EAAE,WAAW,EAAM,UAAU;GAEnC;EACC,CAAA;CACD,CAAA;AAET,CAAC"}
@@ -11,4 +11,4 @@ export interface SliderProps {
11
11
  disabled?: boolean;
12
12
  onChange?: (value: number) => void;
13
13
  }
14
- export declare const Slider: ({ min, max, value, step, units, navigationLabels, disabled, onChange, }: SliderProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const Slider: ({ min, max, value, step, units, navigationLabels, disabled, onChange, }: SliderProps) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../Slider-BlLyrET9.js";
1
+ import { t as e } from "../../Slider-dCmT0VM2.js";
2
2
  export { e as Slider };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../Slider-BlLyrET9.js";
1
+ import { t as e } from "../../Slider-dCmT0VM2.js";
2
2
  import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
3
  var i = {
4
4
  title: "Atoms/Slider",
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.stories.js","names":[],"sources":["../../../src/components/Slider/Slider.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\r\nimport type { SliderProps } from './Slider';\r\n\r\nimport { Slider } from './Slider';\r\n\r\nconst codeString =\r\n '<Slider min={number} max={number} value?={number} step?={number} units?={string} onChange?={(value: number) => void} />';\r\n\r\n// eslint-disable-next-line import/no-default-export\r\nexport default {\r\n title: 'Atoms/Slider',\r\n component: Slider,\r\n argTypes: {\r\n onChange: {\r\n action: 'Slider value',\r\n table: {\r\n disable: true,\r\n },\r\n },\r\n },\r\n parameters: {\r\n inspectComponent: Slider,\r\n codeString: codeString,\r\n },\r\n} as Meta<SliderProps>;\r\n\r\nconst Template: StoryFn<SliderProps> = (args) => {\r\n const handleSliderChange = (value: number) => {\r\n if (args.onChange) {\r\n args.onChange(value);\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n <div style={{ width: '150px' }}>\r\n <Slider {...args} onChange={handleSliderChange} />\r\n </div>\r\n <div style={{ width: '300px', marginTop: '40px' }}>\r\n <Slider {...args} onChange={handleSliderChange} value={40} />\r\n </div>\r\n <div style={{ width: '600px', marginTop: '40px' }}>\r\n <Slider {...args} onChange={handleSliderChange} value={60} />\r\n </div>\r\n </>\r\n );\r\n};\r\n\r\nexport const SliderExample = Template.bind({});\r\nSliderExample.args = {\r\n min: 0,\r\n max: 100,\r\n step: 5,\r\n units: '%',\r\n value: 80,\r\n};\r\n"],"mappings":";;AASA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU,EACR,UAAU;EACR,QAAQ;EACR,OAAO,EACL,SAAS,IACV;EACF,EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAwBY,MAtB2B,MAAS;CAC/C,IAAM,KAAsB,MAAkB;EAC5C,AAAI,EAAK,YACP,EAAK,SAAS,EAAM;;CAIxB,OACE,kBAAA,GAAA,EAAA,UAAA;EACE,kBAAC,OAAD;GAAK,OAAO,EAAE,OAAO,SAAS;aAC5B,kBAAC,GAAD;IAAQ,GAAI;IAAM,UAAU;IAAsB,CAAA;GAC9C,CAAA;EACN,kBAAC,OAAD;GAAK,OAAO;IAAE,OAAO;IAAS,WAAW;IAAQ;aAC/C,kBAAC,GAAD;IAAQ,GAAI;IAAM,UAAU;IAAoB,OAAO;IAAM,CAAA;GACzD,CAAA;EACN,kBAAC,OAAD;GAAK,OAAO;IAAE,OAAO;IAAS,WAAW;IAAQ;aAC/C,kBAAC,GAAD;IAAQ,GAAI;IAAM,UAAU;IAAoB,OAAO;IAAM,CAAA;GACzD,CAAA;EACL,EAAA,CAAA;GAI+B,KAAK,EAAE,CAAC;AAC9C,EAAc,OAAO;CACnB,KAAK;CACL,KAAK;CACL,MAAM;CACN,OAAO;CACP,OAAO;CACR"}
1
+ {"version":3,"file":"Slider.stories.js","names":[],"sources":["../../../src/components/Slider/Slider.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\r\nimport type { SliderProps } from './Slider';\r\n\r\nimport { Slider } from './Slider';\r\n\r\nconst codeString =\r\n '<Slider min={number} max={number} value?={number} step?={number} units?={string} onChange?={(value: number) => void} />';\r\n\r\n// eslint-disable-next-line import/no-default-export\r\nexport default {\r\n title: 'Atoms/Slider',\r\n component: Slider,\r\n argTypes: {\r\n onChange: {\r\n action: 'Slider value',\r\n table: {\r\n disable: true,\r\n },\r\n },\r\n },\r\n parameters: {\r\n inspectComponent: Slider,\r\n codeString: codeString,\r\n },\r\n} as Meta<SliderProps>;\r\n\r\nconst Template: StoryFn<SliderProps> = (args) => {\r\n const handleSliderChange = (value: number) => {\r\n if (args.onChange) {\r\n args.onChange(value);\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n <div style={{ width: '150px' }}>\r\n <Slider {...args} onChange={handleSliderChange} />\r\n </div>\r\n <div style={{ width: '300px', marginTop: '40px' }}>\r\n <Slider {...args} onChange={handleSliderChange} value={40} />\r\n </div>\r\n <div style={{ width: '600px', marginTop: '40px' }}>\r\n <Slider {...args} onChange={handleSliderChange} value={60} />\r\n </div>\r\n </>\r\n );\r\n};\r\n\r\nexport const SliderExample = Template.bind({});\r\nSliderExample.args = {\r\n min: 0,\r\n max: 100,\r\n step: 5,\r\n units: '%',\r\n value: 80,\r\n};\r\n"],"mappings":";;AASA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU,EACR,UAAU;EACR,QAAQ;EACR,OAAO,EACL,SAAS,GACX;CACF,EACF;CACA,YAAY;EACV,kBAAkB;EACN;CACd;AACF,GAwBa,MAtB2B,MAAS;CAC/C,IAAM,KAAsB,MAAkB;EAC5C,AAAI,EAAK,YACP,EAAK,SAAS,CAAK;CAEvB;CAEA,OACE,kBAAA,GAAA,EAAA,UAAA;EACE,kBAAC,OAAD;GAAK,OAAO,EAAE,OAAO,QAAQ;aAC3B,kBAAC,GAAD;IAAQ,GAAI;IAAM,UAAU;GAAqB,CAAA;EAC9C,CAAA;EACL,kBAAC,OAAD;GAAK,OAAO;IAAE,OAAO;IAAS,WAAW;GAAO;aAC9C,kBAAC,GAAD;IAAQ,GAAI;IAAM,UAAU;IAAoB,OAAO;GAAK,CAAA;EACzD,CAAA;EACL,kBAAC,OAAD;GAAK,OAAO;IAAE,OAAO;IAAS,WAAW;GAAO;aAC9C,kBAAC,GAAD;IAAQ,GAAI;IAAM,UAAU;IAAoB,OAAO;GAAK,CAAA;EACzD,CAAA;CACL,EAAA,CAAA;AAEN,GAEsC,KAAK,CAAC,CAAC;AAC7C,EAAc,OAAO;CACnB,KAAK;CACL,KAAK;CACL,MAAM;CACN,OAAO;CACP,OAAO;AACT"}
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../Slider-BlLyrET9.js";
1
+ import { t as e } from "../../Slider-dCmT0VM2.js";
2
2
  export { e as Slider };
@@ -20,4 +20,4 @@ export interface SortableProps<T = unknown> {
20
20
  /** The callback function that is invoked when new sorting takes place. */
21
21
  onSort?: (items: T[]) => void;
22
22
  }
23
- export declare const Sortable: <T>({ children, childrenData, ItemHandlePlacement, scrollable, disabled, onSort, hideNumbers, sortableItemColor, }: SortableProps<T>) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const Sortable: <T>({ children, childrenData, ItemHandlePlacement, scrollable, disabled, onSort, hideNumbers, sortableItemColor, }: SortableProps<T>) => import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../SortableProvider-8HYiBXJS.js";
1
+ import { t as e } from "../../SortableProvider-DV6gWmq_.js";
2
2
  import { SortableItem as t } from "./components/SortableItem.js";
3
3
  import { Children as n } from "react";
4
4
  import { jsx as r } from "react/jsx-runtime";
@@ -1 +1 @@
1
- {"version":3,"file":"Sortable.js","names":[],"sources":["../../../src/components/Sortable/Sortable.tsx"],"sourcesContent":["import { Children } from 'react';\n\nimport type { ReactElement } from 'react';\nimport type { SortableItemProps } from './components/SortableItem';\n\nimport { SortableItem } from './components/SortableItem';\nimport { SortableProvider } from './SortableProvider';\n\nexport type Index = string | number;\nexport type SortableItemColors = 'grey-200' | 'white';\n\nexport interface SortableProps<T = unknown> {\n /** The elements to show inside the Sortable. */\n children: ReactElement[] | string[];\n /** The data objects that are actually being sorted. */\n childrenData?: T[];\n /** The placement of each item Handle (6 dots 2x3). */\n ItemHandlePlacement?: SortableItemProps['handlePlacement'];\n /** If true, a scrollable version of the list will be rendered (max height 21rem/336px). */\n scrollable?: boolean;\n /** If true, the sorting will be disabled. */\n disabled?: boolean;\n /** Hide the numbers shown next to the sortable elements. */\n hideNumbers?: boolean;\n /** Change the color of the SortableItem wrapper. */\n sortableItemColor?: SortableItemColors;\n /** The callback function that is invoked when new sorting takes place. */\n onSort?: (items: T[]) => void;\n}\n\n// A component that renders a list of children that can be sorted with drag and drop.\nexport const Sortable = <T,>({\n children,\n childrenData,\n ItemHandlePlacement = 'left',\n scrollable,\n disabled,\n onSort,\n hideNumbers,\n sortableItemColor = 'grey-200',\n}: SortableProps<T>) => {\n const sortableData: T[] = childrenData ?? (children as unknown as T[]);\n\n const wrappedItems = children.map((child, index) => (\n <SortableItem\n handlePlacement={ItemHandlePlacement}\n disabled={disabled || Children.count(children) <= 1}\n sortableItemColor={sortableItemColor}\n index={index}\n key={`sortable-item-${index}`}\n >\n {child}\n </SortableItem>\n ));\n\n return (\n <SortableProvider\n renderItems={wrappedItems}\n dataItems={sortableData}\n scrollable={scrollable}\n hideNumbers={hideNumbers}\n onSort={onSort}\n key={`sortable-with-children-${Children.count(children)}`}\n >\n {wrappedItems}\n </SortableProvider>\n );\n};\n"],"mappings":";;;;;AA+BA,IAAa,KAAgB,EAC3B,aACA,iBACA,yBAAsB,QACtB,eACA,aACA,WACA,gBACA,uBAAoB,iBACE;CACtB,IAAM,IAAoB,KAAiB,GAErC,IAAe,EAAS,KAAK,GAAO,MACxC,kBAAC,GAAD;EACE,iBAAiB;EACjB,UAAU,KAAY,EAAS,MAAM,EAAS,IAAI;EAC/B;EACZ;YAGN;EACY,EAHR,iBAAiB,IAGT,CACf;CAEF,OACE,kBAAC,GAAD;EACE,aAAa;EACb,WAAW;EACC;EACC;EACL;YAGP;EACgB,EAHZ,0BAA0B,EAAS,MAAM,EAAS,GAGtC"}
1
+ {"version":3,"file":"Sortable.js","names":[],"sources":["../../../src/components/Sortable/Sortable.tsx"],"sourcesContent":["import { Children } from 'react';\n\nimport type { ReactElement } from 'react';\nimport type { SortableItemProps } from './components/SortableItem';\n\nimport { SortableItem } from './components/SortableItem';\nimport { SortableProvider } from './SortableProvider';\n\nexport type Index = string | number;\nexport type SortableItemColors = 'grey-200' | 'white';\n\nexport interface SortableProps<T = unknown> {\n /** The elements to show inside the Sortable. */\n children: ReactElement[] | string[];\n /** The data objects that are actually being sorted. */\n childrenData?: T[];\n /** The placement of each item Handle (6 dots 2x3). */\n ItemHandlePlacement?: SortableItemProps['handlePlacement'];\n /** If true, a scrollable version of the list will be rendered (max height 21rem/336px). */\n scrollable?: boolean;\n /** If true, the sorting will be disabled. */\n disabled?: boolean;\n /** Hide the numbers shown next to the sortable elements. */\n hideNumbers?: boolean;\n /** Change the color of the SortableItem wrapper. */\n sortableItemColor?: SortableItemColors;\n /** The callback function that is invoked when new sorting takes place. */\n onSort?: (items: T[]) => void;\n}\n\n// A component that renders a list of children that can be sorted with drag and drop.\nexport const Sortable = <T,>({\n children,\n childrenData,\n ItemHandlePlacement = 'left',\n scrollable,\n disabled,\n onSort,\n hideNumbers,\n sortableItemColor = 'grey-200',\n}: SortableProps<T>) => {\n const sortableData: T[] = childrenData ?? (children as unknown as T[]);\n\n const wrappedItems = children.map((child, index) => (\n <SortableItem\n handlePlacement={ItemHandlePlacement}\n disabled={disabled || Children.count(children) <= 1}\n sortableItemColor={sortableItemColor}\n index={index}\n key={`sortable-item-${index}`}\n >\n {child}\n </SortableItem>\n ));\n\n return (\n <SortableProvider\n renderItems={wrappedItems}\n dataItems={sortableData}\n scrollable={scrollable}\n hideNumbers={hideNumbers}\n onSort={onSort}\n key={`sortable-with-children-${Children.count(children)}`}\n >\n {wrappedItems}\n </SortableProvider>\n );\n};\n"],"mappings":";;;;;AA+BA,IAAa,KAAgB,EAC3B,aACA,iBACA,yBAAsB,QACtB,eACA,aACA,WACA,gBACA,uBAAoB,iBACE;CACtB,IAAM,IAAoB,KAAiB,GAErC,IAAe,EAAS,KAAK,GAAO,MACxC,kBAAC,GAAD;EACE,iBAAiB;EACjB,UAAU,KAAY,EAAS,MAAM,CAAQ,KAAK;EAC/B;EACZ;YAGN;CACW,GAHP,iBAAiB,GAGV,CACf;CAED,OACE,kBAAC,GAAD;EACE,aAAa;EACb,WAAW;EACC;EACC;EACL;YAGP;CACe,GAHX,0BAA0B,EAAS,MAAM,CAAQ,GAGtC;AAEtB"}
@@ -1,7 +1,7 @@
1
- import { r as e } from "../../test-Pa9Lwbsq.js";
1
+ import { r as e } from "../../test-CpW02epT.js";
2
2
  import { Icon as t } from "../Icon/Icon.js";
3
3
  import { Button as n } from "../Buttons/Button.js";
4
- import { t as r } from "../../InputField-BWAy19w9.js";
4
+ import { t as r } from "../../InputField-T01uazlI.js";
5
5
  import { Sortable as i } from "./Sortable.js";
6
6
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
7
7
  var c = {
@@ -1 +1 @@
1
- {"version":3,"file":"Sortable.stories.js","names":[],"sources":["../../../src/components/Sortable/Sortable.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\nimport { Fragment } from 'react/jsx-runtime';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { SortableProps } from './Sortable';\n\nimport { Sortable } from './Sortable';\n\nimport { InputField } from 'components/InputField';\nimport { Icon } from 'components/Icon';\nimport { Button } from 'components/Buttons';\n\nconst codeString = `<Sortable onSort={onSortFunction} ItemHandlePlacement={ItemHandlePlacement} scrollable={scrollable} \n disabled={ disabled } hideNumbers={ hideNumbers } sortableItemColor={ sortableItemColor } > { children } </ Sortable > `;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/Sortable',\n component: Sortable,\n argTypes: {\n children: {\n table: {\n disable: true,\n },\n },\n ItemHandlePlacement: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: Sortable,\n codeString: codeString,\n },\n} as Meta<SortableProps>;\n\nconst defaultArgs: Partial<SortableProps> = {\n ItemHandlePlacement: 'left',\n onSort: fn(),\n};\n\nconst mockItems = ['Item-1', 'Item-2', 'Item-3', 'Item-4', 'Item-5'];\n\nconst Template: StoryFn<SortableProps> = (args) => <Sortable {...args}>{mockItems}</Sortable>;\n\nexport const SortableExample = Template.bind({});\nSortableExample.args = {\n ...defaultArgs,\n};\n\nexport const withHandleRight = Template.bind({});\nwithHandleRight.args = {\n ...defaultArgs,\n ItemHandlePlacement: 'right',\n};\n\nconst TemplateComplex: StoryFn<SortableProps> = (args) => (\n <Sortable {...args}>\n {mockItems.map((item) => (\n <Fragment key={item}>\n <div style={{ width: '100%' }}>\n <InputField key={item} id={item} placeholder={item} />\n </div>\n <Button variant=\"blank-icon\">\n <Icon name=\"Trash\" color=\"#a0002aff\" />\n </Button>\n </Fragment>\n ))}\n </Sortable>\n);\n\nexport const WithComplexChildren = TemplateComplex.bind({});\nWithComplexChildren.args = {\n ...defaultArgs,\n childrenData: [\n { title: 'item-1', value: 1 },\n { title: 'item-2', value: 2 },\n { title: 'item-3', value: 3 },\n { title: 'item-4', value: 4 },\n { title: 'item-5', value: 5 },\n ],\n};\n"],"mappings":";;;;;;AAgBA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,UAAU,EACR,OAAO,EACL,SAAS,IACV,EACF;EACD,qBAAqB,EACnB,OAAO,EACL,SAAS,IACV,EACF;EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,IAAsC;CAC1C,qBAAqB;CACrB,QAAQ,GAAI;CACb,EAEK,IAAY;CAAC;CAAU;CAAU;CAAU;CAAU;CAAS,EAE9D,KAAoC,MAAS,kBAAC,GAAD;CAAU,GAAI;WAAO;CAAqB,CAAA,EAEhF,IAAkB,EAAS,KAAK,EAAE,CAAC;AAChD,EAAgB,OAAO,EACrB,GAAG,GACJ;AAED,IAAa,IAAkB,EAAS,KAAK,EAAE,CAAC;AAChD,EAAgB,OAAO;CACrB,GAAG;CACH,qBAAqB;CACtB;AAiBD,IAAa,MAfoC,MAC/C,kBAAC,GAAD;CAAU,GAAI;WACX,EAAU,KAAK,MACd,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,OAAD;EAAK,OAAO,EAAE,OAAO,QAAQ;YAC3B,kBAAC,GAAD;GAAuB,IAAI;GAAM,aAAa;GAAQ,EAArC,EAAqC;EAClD,CAAA,EACN,kBAAC,GAAD;EAAQ,SAAQ;YACd,kBAAC,GAAD;GAAM,MAAK;GAAQ,OAAM;GAAc,CAAA;EAChC,CAAA,CACA,EAAA,EAPI,EAOJ,CACX;CACO,CAAA,EAGsC,KAAK,EAAE,CAAC;AAC3D,EAAoB,OAAO;CACzB,GAAG;CACH,cAAc;EACZ;GAAE,OAAO;GAAU,OAAO;GAAG;EAC7B;GAAE,OAAO;GAAU,OAAO;GAAG;EAC7B;GAAE,OAAO;GAAU,OAAO;GAAG;EAC7B;GAAE,OAAO;GAAU,OAAO;GAAG;EAC7B;GAAE,OAAO;GAAU,OAAO;GAAG;EAC9B;CACF"}
1
+ {"version":3,"file":"Sortable.stories.js","names":[],"sources":["../../../src/components/Sortable/Sortable.stories.tsx"],"sourcesContent":["import { fn } from 'storybook/test';\nimport { Fragment } from 'react/jsx-runtime';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { SortableProps } from './Sortable';\n\nimport { Sortable } from './Sortable';\n\nimport { InputField } from 'components/InputField';\nimport { Icon } from 'components/Icon';\nimport { Button } from 'components/Buttons';\n\nconst codeString = `<Sortable onSort={onSortFunction} ItemHandlePlacement={ItemHandlePlacement} scrollable={scrollable} \n disabled={ disabled } hideNumbers={ hideNumbers } sortableItemColor={ sortableItemColor } > { children } </ Sortable > `;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/Sortable',\n component: Sortable,\n argTypes: {\n children: {\n table: {\n disable: true,\n },\n },\n ItemHandlePlacement: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: Sortable,\n codeString: codeString,\n },\n} as Meta<SortableProps>;\n\nconst defaultArgs: Partial<SortableProps> = {\n ItemHandlePlacement: 'left',\n onSort: fn(),\n};\n\nconst mockItems = ['Item-1', 'Item-2', 'Item-3', 'Item-4', 'Item-5'];\n\nconst Template: StoryFn<SortableProps> = (args) => <Sortable {...args}>{mockItems}</Sortable>;\n\nexport const SortableExample = Template.bind({});\nSortableExample.args = {\n ...defaultArgs,\n};\n\nexport const withHandleRight = Template.bind({});\nwithHandleRight.args = {\n ...defaultArgs,\n ItemHandlePlacement: 'right',\n};\n\nconst TemplateComplex: StoryFn<SortableProps> = (args) => (\n <Sortable {...args}>\n {mockItems.map((item) => (\n <Fragment key={item}>\n <div style={{ width: '100%' }}>\n <InputField key={item} id={item} placeholder={item} />\n </div>\n <Button variant=\"blank-icon\">\n <Icon name=\"Trash\" color=\"#a0002aff\" />\n </Button>\n </Fragment>\n ))}\n </Sortable>\n);\n\nexport const WithComplexChildren = TemplateComplex.bind({});\nWithComplexChildren.args = {\n ...defaultArgs,\n childrenData: [\n { title: 'item-1', value: 1 },\n { title: 'item-2', value: 2 },\n { title: 'item-3', value: 3 },\n { title: 'item-4', value: 4 },\n { title: 'item-5', value: 5 },\n ],\n};\n"],"mappings":";;;;;;AAgBA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,UAAU,EACR,OAAO,EACL,SAAS,GACX,EACF;EACA,qBAAqB,EACnB,OAAO,EACL,SAAS,GACX,EACF;CACF;CACA,YAAY;EACV,kBAAkB;EACN;CACd;AACF,GAEM,IAAsC;CAC1C,qBAAqB;CACrB,QAAQ,EAAG;AACb,GAEM,IAAY;CAAC;CAAU;CAAU;CAAU;CAAU;AAAQ,GAE7D,KAAoC,MAAS,kBAAC,GAAD;CAAU,GAAI;WAAO;AAAoB,CAAA,GAE/E,IAAkB,EAAS,KAAK,CAAC,CAAC;AAC/C,EAAgB,OAAO,EACrB,GAAG,EACL;AAEA,IAAa,IAAkB,EAAS,KAAK,CAAC,CAAC;AAC/C,EAAgB,OAAO;CACrB,GAAG;CACH,qBAAqB;AACvB;AAiBA,IAAa,MAfoC,MAC/C,kBAAC,GAAD;CAAU,GAAI;WACX,EAAU,KAAK,MACd,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,OAAD;EAAK,OAAO,EAAE,OAAO,OAAO;YAC1B,kBAAC,GAAD;GAAuB,IAAI;GAAM,aAAa;EAAO,GAApC,CAAoC;CAClD,CAAA,GACL,kBAAC,GAAD;EAAQ,SAAQ;YACd,kBAAC,GAAD;GAAM,MAAK;GAAQ,OAAM;EAAa,CAAA;CAChC,CAAA,CACA,EAAA,GAPK,CAOL,CACX;AACO,CAAA,GAGuC,KAAK,CAAC,CAAC;AAC1D,EAAoB,OAAO;CACzB,GAAG;CACH,cAAc;EACZ;GAAE,OAAO;GAAU,OAAO;EAAE;EAC5B;GAAE,OAAO;GAAU,OAAO;EAAE;EAC5B;GAAE,OAAO;GAAU,OAAO;EAAE;EAC5B;GAAE,OAAO;GAAU,OAAO;EAAE;EAC5B;GAAE,OAAO;GAAU,OAAO;EAAE;CAC9B;AACF"}
@@ -22,6 +22,6 @@ interface Props<T = unknown> {
22
22
  onSort?: (items: T[]) => void;
23
23
  children?: ReactNode;
24
24
  }
25
- export declare function SortableProvider<T>({ renderItems, dataItems, scrollable, hideNumbers, onSort }: Props<T>): import("react/jsx-runtime").JSX.Element;
25
+ export declare function SortableProvider<T>({ renderItems, dataItems, scrollable, hideNumbers, onSort }: Props<T>): import("react").JSX.Element;
26
26
  export declare function useSortable(): SortableContextType & SortableStateType;
27
27
  export {};
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../SortableProvider-8HYiBXJS.js";
1
+ import { n as e, t } from "../../SortableProvider-DV6gWmq_.js";
2
2
  export { t as SortableProvider, e as useSortable };
@@ -1 +1 @@
1
- {"version":3,"file":"actions.js","names":[],"sources":["../../../src/components/Sortable/actions.ts"],"sourcesContent":["import {\n CLEAR_DRAGGING_SOURCE,\n CLEAR_DRAGGING_TARGET,\n DRAG_END,\n DRAG_START,\n DROP,\n MOVE_TO_POSITION,\n RESET,\n SET_CLONE,\n SET_DRAGGING_SOURCE,\n SET_DRAGGING_TARGET,\n} from './constants';\n\ntype ClearDraggingSourceAction = {\n type: typeof CLEAR_DRAGGING_SOURCE;\n};\n\ntype ClearDraggingTargetAction = {\n type: typeof CLEAR_DRAGGING_TARGET;\n};\n\ntype DragEndAction = {\n type: typeof DRAG_END;\n};\n\ntype DragStartAction = {\n type: typeof DRAG_START;\n payload: number;\n};\n\ntype DropAction = {\n type: typeof DROP;\n payload: number;\n};\n\ntype MoveToPositionAction = {\n type: typeof MOVE_TO_POSITION;\n payload: number;\n};\n\ntype ResetAction = {\n type: typeof RESET;\n};\n\ntype SetCloneAction = {\n type: typeof SET_CLONE;\n payload: Element;\n};\n\ntype SetDraggingSourceAction = {\n type: typeof SET_DRAGGING_SOURCE;\n payload: number;\n};\n\ntype SetDraggingTargetAction = {\n type: typeof SET_DRAGGING_TARGET;\n payload: number;\n};\n\nexport type Actions =\n | ClearDraggingSourceAction\n | ClearDraggingTargetAction\n | DragEndAction\n | DragStartAction\n | DropAction\n | MoveToPositionAction\n | ResetAction\n | SetCloneAction\n | SetDraggingSourceAction\n | SetDraggingTargetAction;\n\nexport const setClone = (payload: SetCloneAction['payload']): SetCloneAction => ({\n type: SET_CLONE,\n payload,\n});\n\nexport const clearDraggingSource = (): ClearDraggingSourceAction => ({ type: CLEAR_DRAGGING_SOURCE });\n\nexport const clearDraggingTarget = (): ClearDraggingTargetAction => ({ type: CLEAR_DRAGGING_TARGET });\n\nexport const dragEnd = (): DragEndAction => ({ type: DRAG_END });\n\nexport const dragStart = (draggingItemIndex: DragStartAction['payload']): DragStartAction => ({\n type: DRAG_START,\n payload: draggingItemIndex,\n});\n\nexport const drop = (targetItemIndex: DropAction['payload']): DropAction => ({\n type: DROP,\n payload: targetItemIndex,\n});\n\nexport const moveToPosition = (targetItemIndex: MoveToPositionAction['payload']): MoveToPositionAction => ({\n type: MOVE_TO_POSITION,\n payload: targetItemIndex,\n});\n\nexport const reset = (): ResetAction => ({ type: RESET });\n\nexport const setDraggingSource = (sourceItemIndex: SetDraggingSourceAction['payload']): SetDraggingSourceAction => ({\n type: SET_DRAGGING_SOURCE,\n payload: sourceItemIndex,\n});\n\nexport const setDraggingTarget = (targetItemIndex: SetDraggingTargetAction['payload']): SetDraggingTargetAction => ({\n type: SET_DRAGGING_TARGET,\n payload: targetItemIndex,\n});\n"],"mappings":";;AAuEA,IAAa,KAAY,OAAwD;CAC/E,MAAM;CACN;CACD,GAEY,WAAwD,EAAE,MAAM,GAAuB,GAEvF,WAAwD,EAAE,MAAM,GAAuB,GAEvF,WAAgC,EAAE,MAAM,GAAU,GAElD,KAAa,OAAoE;CAC5F,MAAM;CACN,SAAS;CACV,GAEY,KAAQ,OAAwD;CAC3E,MAAM;CACN,SAAS;CACV,GAEY,KAAkB,OAA4E;CACzG,MAAM;CACN,SAAS;CACV,GAEY,WAA4B,EAAE,MAAM,GAAO,GAE3C,KAAqB,OAAkF;CAClH,MAAM;CACN,SAAS;CACV,GAEY,KAAqB,OAAkF;CAClH,MAAM;CACN,SAAS;CACV"}
1
+ {"version":3,"file":"actions.js","names":[],"sources":["../../../src/components/Sortable/actions.ts"],"sourcesContent":["import {\n CLEAR_DRAGGING_SOURCE,\n CLEAR_DRAGGING_TARGET,\n DRAG_END,\n DRAG_START,\n DROP,\n MOVE_TO_POSITION,\n RESET,\n SET_CLONE,\n SET_DRAGGING_SOURCE,\n SET_DRAGGING_TARGET,\n} from './constants';\n\ntype ClearDraggingSourceAction = {\n type: typeof CLEAR_DRAGGING_SOURCE;\n};\n\ntype ClearDraggingTargetAction = {\n type: typeof CLEAR_DRAGGING_TARGET;\n};\n\ntype DragEndAction = {\n type: typeof DRAG_END;\n};\n\ntype DragStartAction = {\n type: typeof DRAG_START;\n payload: number;\n};\n\ntype DropAction = {\n type: typeof DROP;\n payload: number;\n};\n\ntype MoveToPositionAction = {\n type: typeof MOVE_TO_POSITION;\n payload: number;\n};\n\ntype ResetAction = {\n type: typeof RESET;\n};\n\ntype SetCloneAction = {\n type: typeof SET_CLONE;\n payload: Element;\n};\n\ntype SetDraggingSourceAction = {\n type: typeof SET_DRAGGING_SOURCE;\n payload: number;\n};\n\ntype SetDraggingTargetAction = {\n type: typeof SET_DRAGGING_TARGET;\n payload: number;\n};\n\nexport type Actions =\n | ClearDraggingSourceAction\n | ClearDraggingTargetAction\n | DragEndAction\n | DragStartAction\n | DropAction\n | MoveToPositionAction\n | ResetAction\n | SetCloneAction\n | SetDraggingSourceAction\n | SetDraggingTargetAction;\n\nexport const setClone = (payload: SetCloneAction['payload']): SetCloneAction => ({\n type: SET_CLONE,\n payload,\n});\n\nexport const clearDraggingSource = (): ClearDraggingSourceAction => ({ type: CLEAR_DRAGGING_SOURCE });\n\nexport const clearDraggingTarget = (): ClearDraggingTargetAction => ({ type: CLEAR_DRAGGING_TARGET });\n\nexport const dragEnd = (): DragEndAction => ({ type: DRAG_END });\n\nexport const dragStart = (draggingItemIndex: DragStartAction['payload']): DragStartAction => ({\n type: DRAG_START,\n payload: draggingItemIndex,\n});\n\nexport const drop = (targetItemIndex: DropAction['payload']): DropAction => ({\n type: DROP,\n payload: targetItemIndex,\n});\n\nexport const moveToPosition = (targetItemIndex: MoveToPositionAction['payload']): MoveToPositionAction => ({\n type: MOVE_TO_POSITION,\n payload: targetItemIndex,\n});\n\nexport const reset = (): ResetAction => ({ type: RESET });\n\nexport const setDraggingSource = (sourceItemIndex: SetDraggingSourceAction['payload']): SetDraggingSourceAction => ({\n type: SET_DRAGGING_SOURCE,\n payload: sourceItemIndex,\n});\n\nexport const setDraggingTarget = (targetItemIndex: SetDraggingTargetAction['payload']): SetDraggingTargetAction => ({\n type: SET_DRAGGING_TARGET,\n payload: targetItemIndex,\n});\n"],"mappings":";;AAuEA,IAAa,KAAY,OAAwD;CAC/E,MAAM;CACN;AACF,IAEa,WAAwD,EAAE,MAAM,EAAsB,IAEtF,WAAwD,EAAE,MAAM,EAAsB,IAEtF,WAAgC,EAAE,MAAM,EAAS,IAEjD,KAAa,OAAoE;CAC5F,MAAM;CACN,SAAS;AACX,IAEa,KAAQ,OAAwD;CAC3E,MAAM;CACN,SAAS;AACX,IAEa,KAAkB,OAA4E;CACzG,MAAM;CACN,SAAS;AACX,IAEa,WAA4B,EAAE,MAAM,EAAM,IAE1C,KAAqB,OAAkF;CAClH,MAAM;CACN,SAAS;AACX,IAEa,KAAqB,OAAkF;CAClH,MAAM;CACN,SAAS;AACX"}
@@ -4,5 +4,5 @@ interface SortableContainerProps {
4
4
  hideNumbers?: boolean;
5
5
  onSort?: OnSort;
6
6
  }
7
- export declare function SortableContainer({ scrollable, hideNumbers, onSort }: SortableContainerProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function SortableContainer({ scrollable, hideNumbers, onSort }: SortableContainerProps): import("react").JSX.Element;
8
8
  export {};
@@ -1,2 +1,2 @@
1
- import { r as e } from "../../../SortableProvider-8HYiBXJS.js";
1
+ import { r as e } from "../../../SortableProvider-DV6gWmq_.js";
2
2
  export { e as SortableContainer };
@@ -1,4 +1,4 @@
1
1
  export interface SortableHandleProps {
2
2
  placement: 'left' | 'right';
3
3
  }
4
- export declare function SortableHandle({ placement }: SortableHandleProps): import("react/jsx-runtime").JSX.Element | null;
4
+ export declare function SortableHandle({ placement }: SortableHandleProps): import("react").JSX.Element | null;
@@ -1,5 +1,5 @@
1
1
  import { Icon as e } from "../../Icon/Icon.js";
2
- import { t } from "../../../Sortable.module-8SoaHfuE.js";
2
+ import { t } from "../../../Sortable.module-CgDMpWM8.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  //#region src/components/Sortable/components/SortableHandle.tsx
5
5
  var r = "ontouchstart" in globalThis.document.documentElement;
@@ -1 +1 @@
1
- {"version":3,"file":"SortableHandle.js","names":[],"sources":["../../../../src/components/Sortable/components/SortableHandle.tsx"],"sourcesContent":["import { Icon } from 'components/Icon';\nimport styles from 'components/Sortable/Sortable.module.css';\n\nexport interface SortableHandleProps {\n placement: 'left' | 'right';\n}\n\nconst noSupportTouch = 'ontouchstart' in globalThis.document.documentElement;\n\nexport function SortableHandle({ placement }: SortableHandleProps) {\n if (noSupportTouch) return null;\n\n return (\n <div className={`${styles['sortable__handle']} ${styles[`sortable__handle--${placement}`]}`}>\n <Icon name=\"Dots\" />\n </div>\n );\n}\n"],"mappings":";;;;AAOA,IAAM,IAAiB,kBAAkB,WAAW,SAAS;AAE7D,SAAgB,EAAe,EAAE,gBAAkC;CAGjE,OAFI,IAAuB,OAGzB,kBAAC,OAAD;EAAK,WAAW,GAAG,EAAO,iBAAoB,GAAG,EAAO,qBAAqB;YAC3E,kBAAC,GAAD,EAAM,MAAK,QAAS,CAAA;EAChB,CAAA"}
1
+ {"version":3,"file":"SortableHandle.js","names":[],"sources":["../../../../src/components/Sortable/components/SortableHandle.tsx"],"sourcesContent":["import { Icon } from 'components/Icon';\nimport styles from 'components/Sortable/Sortable.module.css';\n\nexport interface SortableHandleProps {\n placement: 'left' | 'right';\n}\n\nconst noSupportTouch = 'ontouchstart' in globalThis.document.documentElement;\n\nexport function SortableHandle({ placement }: SortableHandleProps) {\n if (noSupportTouch) return null;\n\n return (\n <div className={`${styles['sortable__handle']} ${styles[`sortable__handle--${placement}`]}`}>\n <Icon name=\"Dots\" />\n </div>\n );\n}\n"],"mappings":";;;;AAOA,IAAM,IAAiB,kBAAkB,WAAW,SAAS;AAE7D,SAAgB,EAAe,EAAE,gBAAkC;CAGjE,OAFI,IAAuB,OAGzB,kBAAC,OAAD;EAAK,WAAW,GAAG,EAAO,iBAAoB,GAAG,EAAO,qBAAqB;YAC3E,kBAAC,GAAD,EAAM,MAAK,OAAQ,CAAA;CAChB,CAAA;AAET"}
@@ -8,4 +8,4 @@ export interface SortableItemProps {
8
8
  sortableItemColor: SortableItemColors;
9
9
  index: number;
10
10
  }
11
- export declare function SortableItem({ children, handlePlacement, disabled, sortableItemColor, index }: SortableItemProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function SortableItem({ children, handlePlacement, disabled, sortableItemColor, index }: SortableItemProps): import("react").JSX.Element;
@@ -1,8 +1,8 @@
1
- import { t as e } from "../../../clsx-BD2qMUU1.js";
1
+ import { t as e } from "../../../clsx-BWCAbrjV.js";
2
2
  import { Icon as t } from "../../Icon/Icon.js";
3
- import { t as n } from "../../../Sortable.module-8SoaHfuE.js";
3
+ import { t as n } from "../../../Sortable.module-CgDMpWM8.js";
4
4
  import { SortableHandle as r } from "./SortableHandle.js";
5
- import { n as i } from "../../../SortableProvider-8HYiBXJS.js";
5
+ import { n as i } from "../../../SortableProvider-DV6gWmq_.js";
6
6
  import { useEffect as a, useRef as o, useState as s } from "react";
7
7
  import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
8
8
  //#region src/components/Sortable/components/SortableItem.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"SortableItem.js","names":[],"sources":["../../../../src/components/Sortable/components/SortableItem.tsx"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\nimport { clsx } from 'clsx';\n\nimport type { DragEvent, MouseEvent, KeyboardEvent as ReactKeyboardEvent, ReactNode } from 'react';\nimport type { SortableHandleProps } from './SortableHandle';\nimport type { SortableItemColors } from 'components/Sortable/Sortable';\n\nimport { Icon } from 'components/Icon';\nimport { SortableHandle } from 'components/Sortable/components/SortableHandle';\nimport styles from 'components/Sortable/Sortable.module.css';\nimport { useSortable } from 'components/Sortable/SortableProvider';\n\nexport interface SortableItemProps {\n children: ReactNode;\n handlePlacement: SortableHandleProps['placement'];\n disabled?: boolean;\n sortableItemColor: SortableItemColors;\n index: number;\n}\n\nconst ACCESS_KEYS = ['Space', 'ArrowDown', 'ArrowUp'];\nconst noSupportTouch = 'ontouchstart' in globalThis.document.documentElement;\nconst dragImage = new Image(0, 0);\n\ndragImage.src =\n // 1px transparent png\n 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==';\n\nexport function SortableItem({ children, handlePlacement, disabled, sortableItemColor, index }: SortableItemProps) {\n const {\n clone,\n dragEnd,\n draggingSource,\n draggingTarget,\n dragStart,\n drop,\n maxIndex,\n moveToPosition,\n setClone,\n setDraggingSource,\n } = useSortable();\n const [grabbing, setGrabbing] = useState(false);\n const [moving, setmoving] = useState(false);\n const itemRef = useRef<HTMLDivElement>(null);\n const hasIndex = index !== undefined && index >= 0;\n\n useEffect(() => {\n if (!itemRef.current) return;\n if (globalThis.document.activeElement === itemRef.current) return;\n\n if (index === draggingTarget && draggingTarget === draggingSource) {\n // Manually setting focus after an item has been moved with the keyboard; focus is lost after rerender\n itemRef.current.focus();\n setmoving(true);\n } else {\n setmoving(false);\n }\n }, [index, draggingTarget, draggingSource, setDraggingSource]);\n\n function handleDragStart(event: DragEvent<HTMLDivElement>) {\n event.stopPropagation();\n\n event.dataTransfer.effectAllowed = 'move';\n event.dataTransfer.setDragImage(dragImage, 0, 0);\n\n if (itemRef.current) {\n const cloned = itemRef.current.cloneNode(true) as Element;\n\n cloned.classList.add(styles['sortable__sort-item--ghost']);\n\n setClone(cloned);\n }\n\n if (hasIndex) dragStart(index);\n setGrabbing(true);\n }\n\n function handleDragEnd() {\n if (grabbing) return;\n\n if (clone) document.body.removeChild(clone);\n\n setGrabbing(false);\n dragEnd();\n }\n\n function handleKeyUp(event: ReactKeyboardEvent<HTMLDivElement>) {\n const { code } = event;\n\n if (code === 'Tab' && draggingSource !== undefined) {\n dragEnd();\n return;\n }\n\n if (ACCESS_KEYS.includes(code) === false) return;\n\n if (!hasIndex) return;\n\n if (code === 'Space') {\n if (moving) {\n setmoving(false);\n dragEnd();\n } else {\n setmoving(true);\n dragStart(index);\n }\n\n return;\n }\n\n if (draggingSource === undefined) return;\n\n const newTarget = code === 'ArrowUp' ? index - 1 : index + 1;\n\n if (newTarget < 0 || newTarget > maxIndex) return;\n\n moveToPosition(newTarget);\n }\n\n function handleMove(event: MouseEvent<HTMLButtonElement>) {\n event.preventDefault();\n\n if (!hasIndex) return;\n\n dragStart(index);\n\n const { direction } = event.currentTarget.dataset;\n const newTarget = direction === 'up' ? index - 1 : index + 1;\n\n drop(newTarget);\n }\n\n return (\n <div\n className={clsx(styles['sortable__sort-item'], styles[`sortable__sort-item--${sortableItemColor}`])}\n draggable={!disabled}\n onDragEnd={handleDragEnd}\n onDragStart={handleDragStart}\n onKeyUpCapture={handleKeyUp}\n ref={itemRef}\n role=\"presentation\"\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex={0}\n >\n <div\n className={`${styles['sortable__sort-item__contents']} ${styles[`sortable__sort-item__contents--handle-${handlePlacement}`]}`}\n >\n {handlePlacement === 'left' && <SortableHandle placement=\"left\" />}\n {children}\n {handlePlacement === 'right' && <SortableHandle placement=\"right\" />}\n </div>\n\n <div className={styles['sortable__sort-item__button-container']} data-touch={noSupportTouch}>\n {!disabled && hasIndex && (\n <>\n {hasIndex && (\n <>\n {index > 0 && (\n <button\n className={`${styles['sortable__sort-item__handle']} ${styles['sortable__sort-item__handle--up']}`}\n data-direction=\"up\"\n onClickCapture={handleMove}\n >\n <div className={styles['sortable__sort-item__handle--icon']}>\n <Icon name=\"CheveronDown\" />\n </div>\n <span className={styles['sortable__visually-hidden']}>Move up</span>\n </button>\n )}\n\n {index < maxIndex && (\n <button\n className={`${styles['sortable__sort-item__handle']} ${styles['sortable__sort-item__handle--down']}`}\n data-direction=\"down\"\n onClickCapture={handleMove}\n >\n <div className={styles['sortable__sort-item__handle--icon']}>\n <Icon name=\"CheveronDown\" />\n </div>\n <span className={styles['sortable__visually-hidden']}>Move down</span>\n </button>\n )}\n </>\n )}\n </>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAoBA,IAAM,IAAc;CAAC;CAAS;CAAa;CAAU,EAC/C,IAAiB,kBAAkB,WAAW,SAAS,iBACvD,IAAY,IAAI,MAAM,GAAG,EAAE;AAEjC,EAAU,MAER;AAEF,SAAgB,EAAa,EAAE,aAAU,oBAAiB,aAAU,sBAAmB,YAA4B;CACjH,IAAM,EACJ,UACA,YACA,mBACA,mBACA,cACA,SACA,aACA,mBACA,aACA,yBACE,GAAa,EACX,CAAC,GAAU,KAAe,EAAS,GAAM,EACzC,CAAC,GAAQ,KAAa,EAAS,GAAM,EACrC,IAAU,EAAuB,KAAK,EACtC,IAAW,MAAU,KAAA,KAAa,KAAS;CAEjD,QAAgB;EACT,EAAQ,WACT,WAAW,SAAS,kBAAkB,EAAQ,YAE9C,MAAU,KAAkB,MAAmB,KAEjD,EAAQ,QAAQ,OAAO,EACvB,EAAU,GAAK,IAEf,EAAU,GAAM;IAEjB;EAAC;EAAO;EAAgB;EAAgB;EAAkB,CAAC;CAE9D,SAAS,EAAgB,GAAkC;EAMzD,IALA,EAAM,iBAAiB,EAEvB,EAAM,aAAa,gBAAgB,QACnC,EAAM,aAAa,aAAa,GAAW,GAAG,EAAE,EAE5C,EAAQ,SAAS;GACnB,IAAM,IAAS,EAAQ,QAAQ,UAAU,GAAK;GAI9C,AAFA,EAAO,UAAU,IAAI,EAAO,8BAA8B,EAE1D,EAAS,EAAO;;EAIlB,AADI,KAAU,EAAU,EAAM,EAC9B,EAAY,GAAK;;CAGnB,SAAS,IAAgB;EACnB,MAEA,KAAO,SAAS,KAAK,YAAY,EAAM,EAE3C,EAAY,GAAM,EAClB,GAAS;;CAGX,SAAS,EAAY,GAA2C;EAC9D,IAAM,EAAE,YAAS;EAEjB,IAAI,MAAS,SAAS,MAAmB,KAAA,GAAW;GAClD,GAAS;GACT;;EAKF,IAFI,EAAY,SAAS,EAAK,KAAK,MAE/B,CAAC,GAAU;EAEf,IAAI,MAAS,SAAS;GACpB,AAAI,KACF,EAAU,GAAM,EAChB,GAAS,KAET,EAAU,GAAK,EACf,EAAU,EAAM;GAGlB;;EAGF,IAAI,MAAmB,KAAA,GAAW;EAElC,IAAM,IAAY,MAAS,YAAY,IAAQ,IAAI,IAAQ;EAEvD,IAAY,KAAK,IAAY,KAEjC,EAAe,EAAU;;CAG3B,SAAS,EAAW,GAAsC;EAGxD,IAFA,EAAM,gBAAgB,EAElB,CAAC,GAAU;EAEf,EAAU,EAAM;EAEhB,IAAM,EAAE,iBAAc,EAAM,cAAc;EAG1C,EAFkB,MAAc,OAAO,IAAQ,IAAI,IAAQ,EAE5C;;CAGjB,OACE,kBAAC,OAAD;EACE,WAAW,EAAK,EAAO,wBAAwB,EAAO,wBAAwB,KAAqB;EACnG,WAAW,CAAC;EACZ,WAAW;EACX,aAAa;EACb,gBAAgB;EAChB,KAAK;EACL,MAAK;EAEL,UAAU;YATZ,CAWE,kBAAC,OAAD;GACE,WAAW,GAAG,EAAO,iCAAiC,GAAG,EAAO,yCAAyC;aAD3G;IAGG,MAAoB,UAAU,kBAAC,GAAD,EAAgB,WAAU,QAAS,CAAA;IACjE;IACA,MAAoB,WAAW,kBAAC,GAAD,EAAgB,WAAU,SAAU,CAAA;IAChE;MAEN,kBAAC,OAAD;GAAK,WAAW,EAAO;GAA0C,cAAY;aAC1E,CAAC,KAAY,KACZ,kBAAA,GAAA,EAAA,UACG,KACC,kBAAA,GAAA,EAAA,UAAA,CACG,IAAQ,KACP,kBAAC,UAAD;IACE,WAAW,GAAG,EAAO,+BAA+B,GAAG,EAAO;IAC9D,kBAAe;IACf,gBAAgB;cAHlB,CAKE,kBAAC,OAAD;KAAK,WAAW,EAAO;eACrB,kBAAC,GAAD,EAAM,MAAK,gBAAiB,CAAA;KACxB,CAAA,EACN,kBAAC,QAAD;KAAM,WAAW,EAAO;eAA8B;KAAc,CAAA,CAC7D;OAGV,IAAQ,KACP,kBAAC,UAAD;IACE,WAAW,GAAG,EAAO,+BAA+B,GAAG,EAAO;IAC9D,kBAAe;IACf,gBAAgB;cAHlB,CAKE,kBAAC,OAAD;KAAK,WAAW,EAAO;eACrB,kBAAC,GAAD,EAAM,MAAK,gBAAiB,CAAA;KACxB,CAAA,EACN,kBAAC,QAAD;KAAM,WAAW,EAAO;eAA8B;KAAgB,CAAA,CAC/D;MAEV,EAAA,CAAA,EAEJ,CAAA;GAED,CAAA,CACF"}
1
+ {"version":3,"file":"SortableItem.js","names":[],"sources":["../../../../src/components/Sortable/components/SortableItem.tsx"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\nimport { clsx } from 'clsx';\n\nimport type { DragEvent, MouseEvent, KeyboardEvent as ReactKeyboardEvent, ReactNode } from 'react';\nimport type { SortableHandleProps } from './SortableHandle';\nimport type { SortableItemColors } from 'components/Sortable/Sortable';\n\nimport { Icon } from 'components/Icon';\nimport { SortableHandle } from 'components/Sortable/components/SortableHandle';\nimport styles from 'components/Sortable/Sortable.module.css';\nimport { useSortable } from 'components/Sortable/SortableProvider';\n\nexport interface SortableItemProps {\n children: ReactNode;\n handlePlacement: SortableHandleProps['placement'];\n disabled?: boolean;\n sortableItemColor: SortableItemColors;\n index: number;\n}\n\nconst ACCESS_KEYS = ['Space', 'ArrowDown', 'ArrowUp'];\nconst noSupportTouch = 'ontouchstart' in globalThis.document.documentElement;\nconst dragImage = new Image(0, 0);\n\ndragImage.src =\n // 1px transparent png\n 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==';\n\nexport function SortableItem({ children, handlePlacement, disabled, sortableItemColor, index }: SortableItemProps) {\n const {\n clone,\n dragEnd,\n draggingSource,\n draggingTarget,\n dragStart,\n drop,\n maxIndex,\n moveToPosition,\n setClone,\n setDraggingSource,\n } = useSortable();\n const [grabbing, setGrabbing] = useState(false);\n const [moving, setmoving] = useState(false);\n const itemRef = useRef<HTMLDivElement>(null);\n const hasIndex = index !== undefined && index >= 0;\n\n useEffect(() => {\n if (!itemRef.current) return;\n if (globalThis.document.activeElement === itemRef.current) return;\n\n if (index === draggingTarget && draggingTarget === draggingSource) {\n // Manually setting focus after an item has been moved with the keyboard; focus is lost after rerender\n itemRef.current.focus();\n setmoving(true);\n } else {\n setmoving(false);\n }\n }, [index, draggingTarget, draggingSource, setDraggingSource]);\n\n function handleDragStart(event: DragEvent<HTMLDivElement>) {\n event.stopPropagation();\n\n event.dataTransfer.effectAllowed = 'move';\n event.dataTransfer.setDragImage(dragImage, 0, 0);\n\n if (itemRef.current) {\n const cloned = itemRef.current.cloneNode(true) as Element;\n\n cloned.classList.add(styles['sortable__sort-item--ghost']);\n\n setClone(cloned);\n }\n\n if (hasIndex) dragStart(index);\n setGrabbing(true);\n }\n\n function handleDragEnd() {\n if (grabbing) return;\n\n if (clone) document.body.removeChild(clone);\n\n setGrabbing(false);\n dragEnd();\n }\n\n function handleKeyUp(event: ReactKeyboardEvent<HTMLDivElement>) {\n const { code } = event;\n\n if (code === 'Tab' && draggingSource !== undefined) {\n dragEnd();\n return;\n }\n\n if (ACCESS_KEYS.includes(code) === false) return;\n\n if (!hasIndex) return;\n\n if (code === 'Space') {\n if (moving) {\n setmoving(false);\n dragEnd();\n } else {\n setmoving(true);\n dragStart(index);\n }\n\n return;\n }\n\n if (draggingSource === undefined) return;\n\n const newTarget = code === 'ArrowUp' ? index - 1 : index + 1;\n\n if (newTarget < 0 || newTarget > maxIndex) return;\n\n moveToPosition(newTarget);\n }\n\n function handleMove(event: MouseEvent<HTMLButtonElement>) {\n event.preventDefault();\n\n if (!hasIndex) return;\n\n dragStart(index);\n\n const { direction } = event.currentTarget.dataset;\n const newTarget = direction === 'up' ? index - 1 : index + 1;\n\n drop(newTarget);\n }\n\n return (\n <div\n className={clsx(styles['sortable__sort-item'], styles[`sortable__sort-item--${sortableItemColor}`])}\n draggable={!disabled}\n onDragEnd={handleDragEnd}\n onDragStart={handleDragStart}\n onKeyUpCapture={handleKeyUp}\n ref={itemRef}\n role=\"presentation\"\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex={0}\n >\n <div\n className={`${styles['sortable__sort-item__contents']} ${styles[`sortable__sort-item__contents--handle-${handlePlacement}`]}`}\n >\n {handlePlacement === 'left' && <SortableHandle placement=\"left\" />}\n {children}\n {handlePlacement === 'right' && <SortableHandle placement=\"right\" />}\n </div>\n\n <div className={styles['sortable__sort-item__button-container']} data-touch={noSupportTouch}>\n {!disabled && hasIndex && (\n <>\n {hasIndex && (\n <>\n {index > 0 && (\n <button\n className={`${styles['sortable__sort-item__handle']} ${styles['sortable__sort-item__handle--up']}`}\n data-direction=\"up\"\n onClickCapture={handleMove}\n >\n <div className={styles['sortable__sort-item__handle--icon']}>\n <Icon name=\"CheveronDown\" />\n </div>\n <span className={styles['sortable__visually-hidden']}>Move up</span>\n </button>\n )}\n\n {index < maxIndex && (\n <button\n className={`${styles['sortable__sort-item__handle']} ${styles['sortable__sort-item__handle--down']}`}\n data-direction=\"down\"\n onClickCapture={handleMove}\n >\n <div className={styles['sortable__sort-item__handle--icon']}>\n <Icon name=\"CheveronDown\" />\n </div>\n <span className={styles['sortable__visually-hidden']}>Move down</span>\n </button>\n )}\n </>\n )}\n </>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAoBA,IAAM,IAAc;CAAC;CAAS;CAAa;AAAS,GAC9C,IAAiB,kBAAkB,WAAW,SAAS,iBACvD,IAAY,IAAI,MAAM,GAAG,CAAC;AAEhC,EAAU,MAER;AAEF,SAAgB,EAAa,EAAE,aAAU,oBAAiB,aAAU,sBAAmB,YAA4B;CACjH,IAAM,EACJ,UACA,YACA,mBACA,mBACA,cACA,SACA,aACA,mBACA,aACA,yBACE,EAAY,GACV,CAAC,GAAU,KAAe,EAAS,EAAK,GACxC,CAAC,GAAQ,KAAa,EAAS,EAAK,GACpC,IAAU,EAAuB,IAAI,GACrC,IAAW,MAAU,KAAA,KAAa,KAAS;CAEjD,QAAgB;EACT,EAAQ,WACT,WAAW,SAAS,kBAAkB,EAAQ,YAE9C,MAAU,KAAkB,MAAmB,KAEjD,EAAQ,QAAQ,MAAM,GACtB,EAAU,EAAI,KAEd,EAAU,EAAK;CAEnB,GAAG;EAAC;EAAO;EAAgB;EAAgB;CAAiB,CAAC;CAE7D,SAAS,EAAgB,GAAkC;EAMzD,IALA,EAAM,gBAAgB,GAEtB,EAAM,aAAa,gBAAgB,QACnC,EAAM,aAAa,aAAa,GAAW,GAAG,CAAC,GAE3C,EAAQ,SAAS;GACnB,IAAM,IAAS,EAAQ,QAAQ,UAAU,EAAI;GAI7C,AAFA,EAAO,UAAU,IAAI,EAAO,6BAA6B,GAEzD,EAAS,CAAM;EACjB;EAGA,AADI,KAAU,EAAU,CAAK,GAC7B,EAAY,EAAI;CAClB;CAEA,SAAS,IAAgB;EACnB,MAEA,KAAO,SAAS,KAAK,YAAY,CAAK,GAE1C,EAAY,EAAK,GACjB,EAAQ;CACV;CAEA,SAAS,EAAY,GAA2C;EAC9D,IAAM,EAAE,YAAS;EAEjB,IAAI,MAAS,SAAS,MAAmB,KAAA,GAAW;GAClD,EAAQ;GACR;EACF;EAIA,IAFI,EAAY,SAAS,CAAI,MAAM,MAE/B,CAAC,GAAU;EAEf,IAAI,MAAS,SAAS;GACpB,AAAI,KACF,EAAU,EAAK,GACf,EAAQ,MAER,EAAU,EAAI,GACd,EAAU,CAAK;GAGjB;EACF;EAEA,IAAI,MAAmB,KAAA,GAAW;EAElC,IAAM,IAAY,MAAS,YAAY,IAAQ,IAAI,IAAQ;EAEvD,IAAY,KAAK,IAAY,KAEjC,EAAe,CAAS;CAC1B;CAEA,SAAS,EAAW,GAAsC;EAGxD,IAFA,EAAM,eAAe,GAEjB,CAAC,GAAU;EAEf,EAAU,CAAK;EAEf,IAAM,EAAE,iBAAc,EAAM,cAAc;EAG1C,EAFkB,MAAc,OAAO,IAAQ,IAAI,IAAQ,CAE7C;CAChB;CAEA,OACE,kBAAC,OAAD;EACE,WAAW,EAAK,EAAO,wBAAwB,EAAO,wBAAwB,IAAoB;EAClG,WAAW,CAAC;EACZ,WAAW;EACX,aAAa;EACb,gBAAgB;EAChB,KAAK;EACL,MAAK;EAEL,UAAU;YATZ,CAWE,kBAAC,OAAD;GACE,WAAW,GAAG,EAAO,iCAAiC,GAAG,EAAO,yCAAyC;aAD3G;IAGG,MAAoB,UAAU,kBAAC,GAAD,EAAgB,WAAU,OAAQ,CAAA;IAChE;IACA,MAAoB,WAAW,kBAAC,GAAD,EAAgB,WAAU,QAAS,CAAA;GAChE;MAEL,kBAAC,OAAD;GAAK,WAAW,EAAO;GAA0C,cAAY;aAC1E,CAAC,KAAY,KACZ,kBAAA,GAAA,EAAA,UACG,KACC,kBAAA,GAAA,EAAA,UAAA,CACG,IAAQ,KACP,kBAAC,UAAD;IACE,WAAW,GAAG,EAAO,+BAA+B,GAAG,EAAO;IAC9D,kBAAe;IACf,gBAAgB;cAHlB,CAKE,kBAAC,OAAD;KAAK,WAAW,EAAO;eACrB,kBAAC,GAAD,EAAM,MAAK,eAAgB,CAAA;IACxB,CAAA,GACL,kBAAC,QAAD;KAAM,WAAW,EAAO;eAA8B;IAAa,CAAA,CAC7D;OAGT,IAAQ,KACP,kBAAC,UAAD;IACE,WAAW,GAAG,EAAO,+BAA+B,GAAG,EAAO;IAC9D,kBAAe;IACf,gBAAgB;cAHlB,CAKE,kBAAC,OAAD;KAAK,WAAW,EAAO;eACrB,kBAAC,GAAD,EAAM,MAAK,eAAgB,CAAA;IACxB,CAAA,GACL,kBAAC,QAAD;KAAM,WAAW,EAAO;eAA8B;IAAe,CAAA,CAC/D;KAEV,EAAA,CAAA,EAEJ,CAAA;EAED,CAAA,CACF;;AAET"}
@@ -1 +1 @@
1
- {"version":3,"file":"sortableReducer.js","names":[],"sources":["../../../src/components/Sortable/sortableReducer.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport type { Actions } from './actions';\nimport type { SortableItem, SortableItemProps } from './components/SortableItem';\n\nimport {\n CLEAR_DRAGGING_SOURCE,\n CLEAR_DRAGGING_TARGET,\n DRAG_END,\n DRAG_START,\n DROP,\n MOVE_TO_POSITION,\n RESET,\n SET_CLONE,\n SET_DRAGGING_SOURCE,\n SET_DRAGGING_TARGET,\n} from './constants';\n\ntype SortableItems = ReactElement<SortableItemProps, typeof SortableItem>[];\n\nexport interface SortableStateType {\n clone?: Element;\n draggingSource?: number;\n draggingTarget?: number;\n indices: number[];\n itemsBeforeDrag: SortableItems;\n maxIndex: number;\n sortableItems: SortableItems;\n}\n\n// When dragging has started, draggingSource is a number value and not undefined any more\ntype SortableStateWithSource = SortableStateType & {\n draggingSource: number;\n};\n\nexport const initialState = {\n clone: undefined,\n draggingSource: undefined,\n draggingTarget: undefined,\n indices: [],\n itemsBeforeDrag: [],\n maxIndex: 0,\n sortableItems: [],\n};\n\nconst getReorderedList = (from: number, to: number, ...arr: SortableItems) =>\n from === to ? arr : (arr.splice(to, 0, ...arr.splice(from, 1)), arr);\n\nfunction getReorderedListWithPlaceholder(from: number, to: number, ...arr: SortableItems) {\n arr.splice(from, 1);\n\n return [...arr.splice(to, 0, <span />), ...arr];\n}\n\nexport const sortableReducer = (state: SortableStateType = initialState, action: Actions): SortableStateType => {\n const stateWithSource = state as SortableStateWithSource;\n\n switch (action.type) {\n case SET_CLONE: {\n return {\n ...state,\n clone: action.payload,\n };\n }\n\n case DRAG_START: {\n return {\n ...state,\n draggingSource: action.payload,\n itemsBeforeDrag: state.sortableItems,\n };\n }\n\n case DRAG_END: {\n return {\n ...state,\n draggingSource: undefined,\n draggingTarget: undefined,\n };\n }\n\n case RESET: {\n return {\n ...state,\n draggingTarget: undefined,\n sortableItems: state.itemsBeforeDrag,\n };\n }\n\n case DROP: {\n const sortableItems = getReorderedList(stateWithSource.draggingSource, action.payload, ...state.itemsBeforeDrag);\n const indices = sortableItems.map(({ props }) => props.index);\n\n return {\n ...state,\n clone: undefined,\n draggingSource: undefined,\n draggingTarget: undefined,\n indices,\n sortableItems,\n };\n }\n\n case SET_DRAGGING_TARGET: {\n return {\n ...state,\n draggingTarget: action.payload,\n sortableItems: getReorderedListWithPlaceholder(\n stateWithSource.draggingSource,\n action.payload,\n ...state.itemsBeforeDrag\n ),\n };\n }\n\n case SET_DRAGGING_SOURCE: {\n return {\n ...state,\n draggingSource: action.payload,\n };\n }\n\n case MOVE_TO_POSITION: {\n return {\n ...state,\n draggingTarget: action.payload,\n draggingSource: action.payload,\n sortableItems: getReorderedList(stateWithSource.draggingSource, action.payload, ...state.sortableItems),\n };\n }\n\n case CLEAR_DRAGGING_TARGET:\n return {\n ...state,\n draggingTarget: undefined,\n };\n\n case CLEAR_DRAGGING_SOURCE:\n return {\n ...state,\n draggingSource: undefined,\n };\n\n default:\n return state;\n }\n};\n"],"mappings":";;;AAkCA,IAAa,IAAe;CAC1B,OAAO,KAAA;CACP,gBAAgB,KAAA;CAChB,gBAAgB,KAAA;CAChB,SAAS,EAAE;CACX,iBAAiB,EAAE;CACnB,UAAU;CACV,eAAe,EAAE;CAClB,EAEK,KAAoB,GAAc,GAAY,GAAG,OACrD,MAAS,KAAY,EAAI,OAAO,GAAI,GAAG,GAAG,EAAI,OAAO,GAAM,EAAE,CAAC,EAAhD;AAEhB,SAAS,EAAgC,GAAc,GAAY,GAAG,GAAoB;CAGxF,OAFA,EAAI,OAAO,GAAM,EAAE,EAEZ,CAAC,GAAG,EAAI,OAAO,GAAI,GAAG,kBAAC,QAAD,EAAQ,CAAA,CAAC,EAAE,GAAG,EAAI;;AAGjD,IAAa,KAAmB,IAA2B,GAAc,MAAuC;CAC9G,IAAM,IAAkB;CAExB,QAAQ,EAAO,MAAf;EACE,KAAK,GACH,OAAO;GACL,GAAG;GACH,OAAO,EAAO;GACf;EAGH,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,EAAO;GACvB,iBAAiB,EAAM;GACxB;EAGH,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,KAAA;GAChB,gBAAgB,KAAA;GACjB;EAGH,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,KAAA;GAChB,eAAe,EAAM;GACtB;EAGH,KAAK,GAAM;GACT,IAAM,IAAgB,EAAiB,EAAgB,gBAAgB,EAAO,SAAS,GAAG,EAAM,gBAAgB,EAC1G,IAAU,EAAc,KAAK,EAAE,eAAY,EAAM,MAAM;GAE7D,OAAO;IACL,GAAG;IACH,OAAO,KAAA;IACP,gBAAgB,KAAA;IAChB,gBAAgB,KAAA;IAChB;IACA;IACD;;EAGH,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,EAAO;GACvB,eAAe,EACb,EAAgB,gBAChB,EAAO,SACP,GAAG,EAAM,gBACV;GACF;EAGH,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,EAAO;GACxB;EAGH,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,EAAO;GACvB,gBAAgB,EAAO;GACvB,eAAe,EAAiB,EAAgB,gBAAgB,EAAO,SAAS,GAAG,EAAM,cAAc;GACxG;EAGH,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,KAAA;GACjB;EAEH,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,KAAA;GACjB;EAEH,SACE,OAAO"}
1
+ {"version":3,"file":"sortableReducer.js","names":[],"sources":["../../../src/components/Sortable/sortableReducer.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport type { Actions } from './actions';\nimport type { SortableItem, SortableItemProps } from './components/SortableItem';\n\nimport {\n CLEAR_DRAGGING_SOURCE,\n CLEAR_DRAGGING_TARGET,\n DRAG_END,\n DRAG_START,\n DROP,\n MOVE_TO_POSITION,\n RESET,\n SET_CLONE,\n SET_DRAGGING_SOURCE,\n SET_DRAGGING_TARGET,\n} from './constants';\n\ntype SortableItems = ReactElement<SortableItemProps, typeof SortableItem>[];\n\nexport interface SortableStateType {\n clone?: Element;\n draggingSource?: number;\n draggingTarget?: number;\n indices: number[];\n itemsBeforeDrag: SortableItems;\n maxIndex: number;\n sortableItems: SortableItems;\n}\n\n// When dragging has started, draggingSource is a number value and not undefined any more\ntype SortableStateWithSource = SortableStateType & {\n draggingSource: number;\n};\n\nexport const initialState = {\n clone: undefined,\n draggingSource: undefined,\n draggingTarget: undefined,\n indices: [],\n itemsBeforeDrag: [],\n maxIndex: 0,\n sortableItems: [],\n};\n\nconst getReorderedList = (from: number, to: number, ...arr: SortableItems) =>\n from === to ? arr : (arr.splice(to, 0, ...arr.splice(from, 1)), arr);\n\nfunction getReorderedListWithPlaceholder(from: number, to: number, ...arr: SortableItems) {\n arr.splice(from, 1);\n\n return [...arr.splice(to, 0, <span />), ...arr];\n}\n\nexport const sortableReducer = (state: SortableStateType = initialState, action: Actions): SortableStateType => {\n const stateWithSource = state as SortableStateWithSource;\n\n switch (action.type) {\n case SET_CLONE: {\n return {\n ...state,\n clone: action.payload,\n };\n }\n\n case DRAG_START: {\n return {\n ...state,\n draggingSource: action.payload,\n itemsBeforeDrag: state.sortableItems,\n };\n }\n\n case DRAG_END: {\n return {\n ...state,\n draggingSource: undefined,\n draggingTarget: undefined,\n };\n }\n\n case RESET: {\n return {\n ...state,\n draggingTarget: undefined,\n sortableItems: state.itemsBeforeDrag,\n };\n }\n\n case DROP: {\n const sortableItems = getReorderedList(stateWithSource.draggingSource, action.payload, ...state.itemsBeforeDrag);\n const indices = sortableItems.map(({ props }) => props.index);\n\n return {\n ...state,\n clone: undefined,\n draggingSource: undefined,\n draggingTarget: undefined,\n indices,\n sortableItems,\n };\n }\n\n case SET_DRAGGING_TARGET: {\n return {\n ...state,\n draggingTarget: action.payload,\n sortableItems: getReorderedListWithPlaceholder(\n stateWithSource.draggingSource,\n action.payload,\n ...state.itemsBeforeDrag\n ),\n };\n }\n\n case SET_DRAGGING_SOURCE: {\n return {\n ...state,\n draggingSource: action.payload,\n };\n }\n\n case MOVE_TO_POSITION: {\n return {\n ...state,\n draggingTarget: action.payload,\n draggingSource: action.payload,\n sortableItems: getReorderedList(stateWithSource.draggingSource, action.payload, ...state.sortableItems),\n };\n }\n\n case CLEAR_DRAGGING_TARGET:\n return {\n ...state,\n draggingTarget: undefined,\n };\n\n case CLEAR_DRAGGING_SOURCE:\n return {\n ...state,\n draggingSource: undefined,\n };\n\n default:\n return state;\n }\n};\n"],"mappings":";;;AAkCA,IAAa,IAAe;CAC1B,OAAO,KAAA;CACP,gBAAgB,KAAA;CAChB,gBAAgB,KAAA;CAChB,SAAS,CAAC;CACV,iBAAiB,CAAC;CAClB,UAAU;CACV,eAAe,CAAC;AAClB,GAEM,KAAoB,GAAc,GAAY,GAAG,OACrD,MAAS,KAAY,EAAI,OAAO,GAAI,GAAG,GAAG,EAAI,OAAO,GAAM,CAAC,CAAC,GAA/C;AAEhB,SAAS,EAAgC,GAAc,GAAY,GAAG,GAAoB;CAGxF,OAFA,EAAI,OAAO,GAAM,CAAC,GAEX,CAAC,GAAG,EAAI,OAAO,GAAI,GAAG,kBAAC,QAAD,CAAO,CAAA,CAAC,GAAG,GAAG,CAAG;AAChD;AAEA,IAAa,KAAmB,IAA2B,GAAc,MAAuC;CAC9G,IAAM,IAAkB;CAExB,QAAQ,EAAO,MAAf;EACE,KAAK,GACH,OAAO;GACL,GAAG;GACH,OAAO,EAAO;EAChB;EAGF,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,EAAO;GACvB,iBAAiB,EAAM;EACzB;EAGF,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,KAAA;GAChB,gBAAgB,KAAA;EAClB;EAGF,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,KAAA;GAChB,eAAe,EAAM;EACvB;EAGF,KAAK,GAAM;GACT,IAAM,IAAgB,EAAiB,EAAgB,gBAAgB,EAAO,SAAS,GAAG,EAAM,eAAe,GACzG,IAAU,EAAc,KAAK,EAAE,eAAY,EAAM,KAAK;GAE5D,OAAO;IACL,GAAG;IACH,OAAO,KAAA;IACP,gBAAgB,KAAA;IAChB,gBAAgB,KAAA;IAChB;IACA;GACF;EACF;EAEA,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,EAAO;GACvB,eAAe,EACb,EAAgB,gBAChB,EAAO,SACP,GAAG,EAAM,eACX;EACF;EAGF,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,EAAO;EACzB;EAGF,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,EAAO;GACvB,gBAAgB,EAAO;GACvB,eAAe,EAAiB,EAAgB,gBAAgB,EAAO,SAAS,GAAG,EAAM,aAAa;EACxG;EAGF,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,KAAA;EAClB;EAEF,KAAK,GACH,OAAO;GACL,GAAG;GACH,gBAAgB,KAAA;EAClB;EAEF,SACE,OAAO;CACX;AACF"}
@@ -5,4 +5,4 @@ export interface SpinnerProps {
5
5
  showAfterMs?: number;
6
6
  }
7
7
  /** Represents a component to display a spinner. */
8
- export declare const Spinner: ({ ariaValueText, showAfterMs }: SpinnerProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ export declare const Spinner: ({ ariaValueText, showAfterMs }: SpinnerProps) => import("react").JSX.Element | null;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../Spinner-BpElTDIu.js";
1
+ import { t as e } from "../../Spinner-BmPjd2Bv.js";
2
2
  export { e as Spinner };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../Spinner-BpElTDIu.js";
1
+ import { t as e } from "../../Spinner-BmPjd2Bv.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  var n = {
4
4
  title: "Atoms/Spinner",
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.stories.js","names":[],"sources":["../../../src/components/Spinner/Spinner.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { SpinnerProps } from './Spinner';\n\nimport { Spinner } from './Spinner';\n\nconst codeString = '<Spinner ariaValueText={ariaValueText} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Spinner',\n component: Spinner,\n argTypes: {\n ariaValueText: {\n control: 'text',\n },\n showAfterMs: {\n control: 'number',\n },\n },\n parameters: {\n inspectComponent: Spinner,\n codeString: codeString,\n },\n} as Meta<SpinnerProps>;\n\nconst Template: StoryFn<SpinnerProps> = (args) => <Spinner {...args} />;\n\nexport const SpinnerExample = Template.bind({});\nSpinnerExample.args = {\n ariaValueText: 'Example value text',\n showAfterMs: 250,\n};\n"],"mappings":";;AAQA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,eAAe,EACb,SAAS,QACV;EACD,aAAa,EACX,SAAS,UACV;EACF;CACD,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAIY,MAF4B,MAAS,kBAAC,GAAD,EAAS,GAAI,GAAQ,CAAA,EAEhC,KAAK,EAAE,CAAC;AAC/C,EAAe,OAAO;CACpB,eAAe;CACf,aAAa;CACd"}
1
+ {"version":3,"file":"Spinner.stories.js","names":[],"sources":["../../../src/components/Spinner/Spinner.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { SpinnerProps } from './Spinner';\n\nimport { Spinner } from './Spinner';\n\nconst codeString = '<Spinner ariaValueText={ariaValueText} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Spinner',\n component: Spinner,\n argTypes: {\n ariaValueText: {\n control: 'text',\n },\n showAfterMs: {\n control: 'number',\n },\n },\n parameters: {\n inspectComponent: Spinner,\n codeString: codeString,\n },\n} as Meta<SpinnerProps>;\n\nconst Template: StoryFn<SpinnerProps> = (args) => <Spinner {...args} />;\n\nexport const SpinnerExample = Template.bind({});\nSpinnerExample.args = {\n ariaValueText: 'Example value text',\n showAfterMs: 250,\n};\n"],"mappings":";;AAQA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,UAAU;EACR,eAAe,EACb,SAAS,OACX;EACA,aAAa,EACX,SAAS,SACX;CACF;CACA,YAAY;EACV,kBAAkB;EACN;CACd;AACF,GAIa,MAF4B,MAAS,kBAAC,GAAD,EAAS,GAAI,EAAO,CAAA,GAE/B,KAAK,CAAC,CAAC;AAC9C,EAAe,OAAO;CACpB,eAAe;CACf,aAAa;AACf"}
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../Spinner-BpElTDIu.js";
1
+ import { t as e } from "../../Spinner-BmPjd2Bv.js";
2
2
  export { e as Spinner };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../StatusBage-DQDOF5-U.js";
1
+ import { t as e } from "../../StatusBage-CfEIuIPa.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  var n = {
4
4
  title: "Atoms/StatusBadge",
@@ -1 +1 @@
1
- {"version":3,"file":"StatusBadge.stories.js","names":[],"sources":["../../../src/components/StatusBadge/StatusBadge.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { StatusBadgeProps } from 'components/StatusBadge';\n\nimport { StatusBadge } from 'components/StatusBadge';\n\nconst codeString = '<InfoBadge highContrast=[boolean]>{label}</InfoBadge>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/StatusBadge',\n component: StatusBadge,\n parameters: {\n inspectComponent: StatusBadge,\n codeString: codeString,\n },\n} as Meta<StatusBadgeProps>;\n\nconst Template: StoryFn<StatusBadgeProps> = (args) => <StatusBadge {...args} />;\n\nconst defaultArgs: StatusBadgeProps = {\n label: 'This is example badge',\n highContrast: false,\n};\n\nexport const StatusBadgeExample = Template.bind({});\n\nStatusBadgeExample.args = {\n ...defaultArgs,\n};\n"],"mappings":";;AAQA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN;EACb;CACF,EAEK,KAAuC,MAAS,kBAAC,GAAD,EAAa,GAAI,GAAQ,CAAA,EAEzE,IAAgC;CACpC,OAAO;CACP,cAAc;CACf,EAEY,IAAqB,EAAS,KAAK,EAAE,CAAC;AAEnD,EAAmB,OAAO,EACxB,GAAG,GACJ"}
1
+ {"version":3,"file":"StatusBadge.stories.js","names":[],"sources":["../../../src/components/StatusBadge/StatusBadge.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { StatusBadgeProps } from 'components/StatusBadge';\n\nimport { StatusBadge } from 'components/StatusBadge';\n\nconst codeString = '<InfoBadge highContrast=[boolean]>{label}</InfoBadge>';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/StatusBadge',\n component: StatusBadge,\n parameters: {\n inspectComponent: StatusBadge,\n codeString: codeString,\n },\n} as Meta<StatusBadgeProps>;\n\nconst Template: StoryFn<StatusBadgeProps> = (args) => <StatusBadge {...args} />;\n\nconst defaultArgs: StatusBadgeProps = {\n label: 'This is example badge',\n highContrast: false,\n};\n\nexport const StatusBadgeExample = Template.bind({});\n\nStatusBadgeExample.args = {\n ...defaultArgs,\n};\n"],"mappings":";;AAQA,IAAA,IAAe;CACb,OAAO;CACP,WAAW;CACX,YAAY;EACV,kBAAkB;EACN;CACd;AACF,GAEM,KAAuC,MAAS,kBAAC,GAAD,EAAa,GAAI,EAAO,CAAA,GAExE,IAAgC;CACpC,OAAO;CACP,cAAc;AAChB,GAEa,IAAqB,EAAS,KAAK,CAAC,CAAC;AAElD,EAAmB,OAAO,EACxB,GAAG,EACL"}
@@ -1,6 +1,6 @@
1
- import "../../dist-V_v3kC0L.js";
2
- import { t as e } from "../../StatusBage-DQDOF5-U.js";
3
- import { i as t, n } from "../../react.esm-CweFe1CK.js";
1
+ import "../../dist-Cxk2-lJw.js";
2
+ import { t as e } from "../../StatusBage-CfEIuIPa.js";
3
+ import { i as t, n } from "../../react.esm-GvSawg5E.js";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  //#region src/components/StatusBadge/StatusBadge.test.tsx
6
6
  describe("StatusBadge", () => {
@@ -1 +1 @@
1
- {"version":3,"file":"StatusBadge.test.js","names":[],"sources":["../../../src/components/StatusBadge/StatusBadge.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { StatusBadge } from './StatusBage';\n\ndescribe('StatusBadge', () => {\n it('should render with message', () => {\n render(<StatusBadge label=\"Status message\" />);\n expect(screen.getByText('Status message')).toBeInTheDocument();\n });\n\n it('should render with highContract', () => {\n render(<StatusBadge label=\"Status message\" highContrast={true} />);\n expect(screen.getByText('Status message')).toHaveClass('statusbadge--high-contrast');\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,qBAAqB;CAM5B,AALA,GAAG,oCAAoC;EAErC,AADA,EAAO,kBAAC,GAAD,EAAa,OAAM,kBAAmB,CAAA,CAAC,EAC9C,OAAO,EAAO,UAAU,iBAAiB,CAAC,CAAC,mBAAmB;GAC9D,EAEF,GAAG,yCAAyC;EAE1C,AADA,EAAO,kBAAC,GAAD;GAAa,OAAM;GAAiB,cAAc;GAAQ,CAAA,CAAC,EAClE,OAAO,EAAO,UAAU,iBAAiB,CAAC,CAAC,YAAY,6BAA6B;GACpF;EACF"}
1
+ {"version":3,"file":"StatusBadge.test.js","names":[],"sources":["../../../src/components/StatusBadge/StatusBadge.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { StatusBadge } from './StatusBage';\n\ndescribe('StatusBadge', () => {\n it('should render with message', () => {\n render(<StatusBadge label=\"Status message\" />);\n expect(screen.getByText('Status message')).toBeInTheDocument();\n });\n\n it('should render with highContract', () => {\n render(<StatusBadge label=\"Status message\" highContrast={true} />);\n expect(screen.getByText('Status message')).toHaveClass('statusbadge--high-contrast');\n });\n});\n"],"mappings":";;;;;AAKA,SAAS,qBAAqB;CAM5B,AALA,GAAG,oCAAoC;EAErC,AADA,EAAO,kBAAC,GAAD,EAAa,OAAM,iBAAkB,CAAA,CAAC,GAC7C,OAAO,EAAO,UAAU,gBAAgB,CAAC,EAAE,kBAAkB;CAC/D,CAAC,GAED,GAAG,yCAAyC;EAE1C,AADA,EAAO,kBAAC,GAAD;GAAa,OAAM;GAAiB,cAAc;EAAO,CAAA,CAAC,GACjE,OAAO,EAAO,UAAU,gBAAgB,CAAC,EAAE,YAAY,4BAA4B;CACrF,CAAC;AACH,CAAC"}