@onewelcome/react-lib-components 8.12.1 → 8.12.2

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 (436) hide show
  1. package/dist/cjs/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +1 -1
  2. package/dist/cjs/Button/BaseButton.module.scss.cjs.js +1 -1
  3. package/dist/cjs/Button/Button.module.scss.cjs.js +1 -1
  4. package/dist/cjs/Button/IconButton.module.scss.cjs.js +1 -1
  5. package/dist/cjs/ContextMenu/ContextMenu.module.scss.cjs.js +1 -1
  6. package/dist/cjs/ContextMenu/ContextMenuItem.module.scss.cjs.js +1 -1
  7. package/dist/cjs/DataGrid/DataGrid.module.scss.cjs.js +1 -1
  8. package/dist/cjs/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +1 -1
  9. package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +1 -1
  10. package/dist/cjs/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +1 -1
  11. package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +1 -1
  12. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +1 -1
  13. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +1 -1
  14. package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +1 -1
  15. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +1 -1
  16. package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +1 -1
  17. package/dist/cjs/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +1 -1
  18. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +1 -1
  19. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +1 -1
  20. package/dist/cjs/DatePicker/DatePicker.module.scss.cjs.js +1 -1
  21. package/dist/cjs/Form/Checkbox/Checkbox.module.scss.cjs.js +1 -1
  22. package/dist/cjs/Form/Fieldset/Fieldset.module.scss.cjs.js +1 -1
  23. package/dist/cjs/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +1 -1
  24. package/dist/cjs/Form/FileUpload/FileUpload.module.scss.cjs.js +1 -1
  25. package/dist/cjs/Form/Form.module.scss.cjs.js +1 -1
  26. package/dist/cjs/Form/FormControl/FormControl.module.scss.cjs.js +1 -1
  27. package/dist/cjs/Form/FormGroup/FormGroup.module.scss.cjs.js +1 -1
  28. package/dist/cjs/Form/FormHelperText/FormHelperText.module.scss.cjs.js +1 -1
  29. package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +1 -1
  30. package/dist/cjs/Form/Input/Input.module.scss.cjs.js +1 -1
  31. package/dist/cjs/Form/Label/Label.module.scss.cjs.js +1 -1
  32. package/dist/cjs/Form/Radio/Radio.module.scss.cjs.js +1 -1
  33. package/dist/cjs/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +1 -1
  34. package/dist/cjs/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +1 -1
  35. package/dist/cjs/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +1 -1
  36. package/dist/cjs/Form/Select/SingleSelect/Select.module.scss.cjs.js +1 -1
  37. package/dist/cjs/Form/Select/useAddNewBtn.module.scss.cjs.js +1 -1
  38. package/dist/cjs/Form/Textarea/Textarea.module.scss.cjs.js +1 -1
  39. package/dist/cjs/Form/Toggle/Toggle.module.scss.cjs.js +1 -1
  40. package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +1 -1
  41. package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +1 -1
  42. package/dist/cjs/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +1 -1
  43. package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +1 -1
  44. package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +1 -1
  45. package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +1 -1
  46. package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +1 -1
  47. package/dist/cjs/Icon/Icon.module.scss.cjs.js +1 -1
  48. package/dist/cjs/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +1 -1
  49. package/dist/cjs/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +1 -1
  50. package/dist/cjs/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +1 -1
  51. package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +1 -1
  52. package/dist/cjs/Link/Link.module.scss.cjs.js +1 -1
  53. package/dist/cjs/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +1 -1
  54. package/dist/cjs/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +1 -1
  55. package/dist/cjs/Notifications/Banner/Banner.module.scss.cjs.js +1 -1
  56. package/dist/cjs/Notifications/BaseModal/BaseModal.module.scss.cjs.js +1 -1
  57. package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +1 -1
  58. package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +1 -1
  59. package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +1 -1
  60. package/dist/cjs/Notifications/Dialog/Dialog.module.scss.cjs.js +1 -1
  61. package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +1 -1
  62. package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +1 -1
  63. package/dist/cjs/Notifications/SideSheet/SideSheet.module.scss.cjs.js +1 -1
  64. package/dist/cjs/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +1 -1
  65. package/dist/cjs/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +1 -1
  66. package/dist/cjs/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +1 -1
  67. package/dist/cjs/Pagination/Pagination.module.scss.cjs.js +1 -1
  68. package/dist/cjs/Popover/Popover.module.scss.cjs.js +1 -1
  69. package/dist/cjs/ProgressBar/ProgressBar.module.scss.cjs.js +1 -1
  70. package/dist/cjs/Skeleton/Skeleton.module.scss.cjs.js +1 -1
  71. package/dist/cjs/Spinner/Spinner.module.scss.cjs.js +1 -1
  72. package/dist/cjs/Stepper/Step.module.scss.cjs.js +1 -1
  73. package/dist/cjs/Stepper/Stepper.module.scss.cjs.js +1 -1
  74. package/dist/cjs/Tabs/Tab.module.scss.cjs.js +1 -1
  75. package/dist/cjs/Tabs/TabButton.module.scss.cjs.js +1 -1
  76. package/dist/cjs/Tabs/Tabs.module.scss.cjs.js +1 -1
  77. package/dist/cjs/Tag/RemoveButton.module.scss.cjs.js +1 -1
  78. package/dist/cjs/Tag/Tag.module.scss.cjs.js +1 -1
  79. package/dist/cjs/TextEllipsis/TextEllipsis.module.scss.cjs.js +1 -1
  80. package/dist/cjs/Tiles/Tile.module.scss.cjs.js +1 -1
  81. package/dist/cjs/Tiles/Tiles.module.scss.cjs.js +1 -1
  82. package/dist/cjs/Tooltip/Tooltip.module.scss.cjs.js +1 -1
  83. package/dist/cjs/Typography/Typography.module.scss.cjs.js +1 -1
  84. package/dist/cjs/admin/layout/LeftNav/LeftNav.cjs.js.map +1 -1
  85. package/dist/cjs/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +1 -1
  86. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js +1 -1
  87. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js.map +1 -1
  88. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +1 -1
  89. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js +1 -1
  90. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js.map +1 -1
  91. package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +1 -1
  92. package/dist/cjs/miscellaneous/IdentityProviderButton.module.scss.cjs.js +1 -1
  93. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNav.d.ts +1 -1
  94. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.d.ts +1 -1
  95. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.d.ts +1 -1
  96. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.d.ts +2 -1
  97. package/dist/cjs/src/index.d.ts +1 -0
  98. package/dist/cjs/src/readyclasses.module.scss.cjs.js +1 -1
  99. package/dist/esm/Breadcrumbs/Breadcrumbs.esm.js +9 -9
  100. package/dist/esm/Breadcrumbs/Breadcrumbs.esm.js.map +1 -1
  101. package/dist/esm/Breadcrumbs/Breadcrumbs.module.scss.esm.js +2 -2
  102. package/dist/esm/Button/BaseButton.esm.js +5 -5
  103. package/dist/esm/Button/BaseButton.esm.js.map +1 -1
  104. package/dist/esm/Button/BaseButton.module.scss.esm.js +2 -2
  105. package/dist/esm/Button/Button.esm.js +6 -6
  106. package/dist/esm/Button/Button.esm.js.map +1 -1
  107. package/dist/esm/Button/Button.module.scss.esm.js +2 -2
  108. package/dist/esm/Button/IconButton.esm.js +5 -5
  109. package/dist/esm/Button/IconButton.esm.js.map +1 -1
  110. package/dist/esm/Button/IconButton.module.scss.esm.js +2 -2
  111. package/dist/esm/Button/Spinner.esm.js +3 -3
  112. package/dist/esm/Button/Spinner.esm.js.map +1 -1
  113. package/dist/esm/ContextMenu/ContextMenu.esm.js +10 -10
  114. package/dist/esm/ContextMenu/ContextMenu.esm.js.map +1 -1
  115. package/dist/esm/ContextMenu/ContextMenu.module.scss.esm.js +2 -2
  116. package/dist/esm/ContextMenu/ContextMenuItem.esm.js +4 -4
  117. package/dist/esm/ContextMenu/ContextMenuItem.esm.js.map +1 -1
  118. package/dist/esm/ContextMenu/ContextMenuItem.module.scss.esm.js +2 -2
  119. package/dist/esm/DataGrid/DataGrid.esm.js +11 -11
  120. package/dist/esm/DataGrid/DataGrid.esm.js.map +1 -1
  121. package/dist/esm/DataGrid/DataGrid.module.scss.esm.js +2 -2
  122. package/dist/esm/DataGrid/DataGridActions/DataGridActions.esm.js +14 -14
  123. package/dist/esm/DataGrid/DataGridActions/DataGridActions.esm.js.map +1 -1
  124. package/dist/esm/DataGrid/DataGridActions/DataGridActions.module.scss.esm.js +2 -2
  125. package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.esm.js +11 -11
  126. package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.esm.js.map +1 -1
  127. package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.esm.js +2 -2
  128. package/dist/esm/DataGrid/DataGridBody/DataGridBody.esm.js +10 -10
  129. package/dist/esm/DataGrid/DataGridBody/DataGridBody.esm.js.map +1 -1
  130. package/dist/esm/DataGrid/DataGridBody/DataGridBody.module.scss.esm.js +2 -2
  131. package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.esm.js +10 -10
  132. package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.esm.js.map +1 -1
  133. package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.esm.js +2 -2
  134. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.esm.js +4 -4
  135. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.esm.js.map +1 -1
  136. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.esm.js +2 -2
  137. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.esm.js +6 -6
  138. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.esm.js.map +1 -1
  139. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.esm.js +2 -2
  140. package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.esm.js +15 -15
  141. package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.esm.js.map +1 -1
  142. package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.esm.js +2 -2
  143. package/dist/esm/DataGrid/DataGridBody/DataGridRow/useNestedRow.esm.js +4 -4
  144. package/dist/esm/DataGrid/DataGridBody/DataGridRow/useNestedRow.esm.js.map +1 -1
  145. package/dist/esm/DataGrid/DataGridFilters/DataGridDateFilter.esm.js +4 -4
  146. package/dist/esm/DataGrid/DataGridFilters/DataGridDateFilter.esm.js.map +1 -1
  147. package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.esm.js +4 -4
  148. package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.esm.js.map +1 -1
  149. package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.module.scss.esm.js +2 -2
  150. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterPopover.esm.js +12 -12
  151. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterPopover.esm.js.map +1 -1
  152. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterTag.esm.js +17 -17
  153. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterTag.esm.js.map +1 -1
  154. package/dist/esm/DataGrid/DataGridFilters/DataGridSearchbar.esm.js +3 -3
  155. package/dist/esm/DataGrid/DataGridFilters/DataGridSearchbar.esm.js.map +1 -1
  156. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.esm.js +8 -8
  157. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.esm.js.map +1 -1
  158. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.module.scss.esm.js +2 -2
  159. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbarWrapper.esm.js +5 -5
  160. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbarWrapper.esm.js.map +1 -1
  161. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.esm.js +13 -13
  162. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.esm.js.map +1 -1
  163. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.esm.js +2 -2
  164. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.esm.js +8 -8
  165. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.esm.js.map +1 -1
  166. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.esm.js +4 -4
  167. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.esm.js.map +1 -1
  168. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/SideMenu.esm.js +3 -3
  169. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/SideMenu.esm.js.map +1 -1
  170. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.esm.js +7 -7
  171. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.esm.js.map +1 -1
  172. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.module.scss.esm.js +2 -2
  173. package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.esm.js +7 -7
  174. package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.esm.js.map +1 -1
  175. package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.esm.js +2 -2
  176. package/dist/esm/DatePicker/DatePicker.esm.js +2 -2
  177. package/dist/esm/DatePicker/DatePicker.esm.js.map +1 -1
  178. package/dist/esm/DatePicker/DatePicker.module.scss.esm.js +2 -2
  179. package/dist/esm/Form/Checkbox/Checkbox.esm.js +12 -12
  180. package/dist/esm/Form/Checkbox/Checkbox.esm.js.map +1 -1
  181. package/dist/esm/Form/Checkbox/Checkbox.module.scss.esm.js +2 -2
  182. package/dist/esm/Form/Fieldset/Fieldset.esm.js +7 -7
  183. package/dist/esm/Form/Fieldset/Fieldset.esm.js.map +1 -1
  184. package/dist/esm/Form/Fieldset/Fieldset.module.scss.esm.js +2 -2
  185. package/dist/esm/Form/FileUpload/FileItem/FileItem.esm.js +17 -17
  186. package/dist/esm/Form/FileUpload/FileItem/FileItem.esm.js.map +1 -1
  187. package/dist/esm/Form/FileUpload/FileItem/FileItem.module.scss.esm.js +2 -2
  188. package/dist/esm/Form/FileUpload/FileUpload.esm.js +17 -17
  189. package/dist/esm/Form/FileUpload/FileUpload.esm.js.map +1 -1
  190. package/dist/esm/Form/FileUpload/FileUpload.module.scss.esm.js +2 -2
  191. package/dist/esm/Form/Form.esm.js +3 -3
  192. package/dist/esm/Form/Form.esm.js.map +1 -1
  193. package/dist/esm/Form/Form.module.scss.esm.js +2 -2
  194. package/dist/esm/Form/FormControl/FormControl.esm.js +6 -6
  195. package/dist/esm/Form/FormControl/FormControl.esm.js.map +1 -1
  196. package/dist/esm/Form/FormControl/FormControl.module.scss.esm.js +2 -2
  197. package/dist/esm/Form/FormGroup/FormGroup.esm.js +9 -9
  198. package/dist/esm/Form/FormGroup/FormGroup.esm.js.map +1 -1
  199. package/dist/esm/Form/FormGroup/FormGroup.module.scss.esm.js +2 -2
  200. package/dist/esm/Form/FormHelperText/FormHelperText.esm.js +3 -3
  201. package/dist/esm/Form/FormHelperText/FormHelperText.esm.js.map +1 -1
  202. package/dist/esm/Form/FormHelperText/FormHelperText.module.scss.esm.js +2 -2
  203. package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.esm.js +5 -5
  204. package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.esm.js.map +1 -1
  205. package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.esm.js +2 -2
  206. package/dist/esm/Form/Input/Input.esm.js +8 -8
  207. package/dist/esm/Form/Input/Input.esm.js.map +1 -1
  208. package/dist/esm/Form/Input/Input.module.scss.esm.js +2 -2
  209. package/dist/esm/Form/Label/Label.esm.js +3 -3
  210. package/dist/esm/Form/Label/Label.esm.js.map +1 -1
  211. package/dist/esm/Form/Label/Label.module.scss.esm.js +2 -2
  212. package/dist/esm/Form/Radio/Radio.esm.js +7 -7
  213. package/dist/esm/Form/Radio/Radio.esm.js.map +1 -1
  214. package/dist/esm/Form/Radio/Radio.module.scss.esm.js +2 -2
  215. package/dist/esm/Form/Select/MultiSelect/MultiOption.esm.js +3 -3
  216. package/dist/esm/Form/Select/MultiSelect/MultiOption.esm.js.map +1 -1
  217. package/dist/esm/Form/Select/MultiSelect/MultiSelect.esm.js +24 -24
  218. package/dist/esm/Form/Select/MultiSelect/MultiSelect.esm.js.map +1 -1
  219. package/dist/esm/Form/Select/MultiSelect/MultiSelect.module.scss.esm.js +2 -2
  220. package/dist/esm/Form/Select/MultiSelect/SelectButton.esm.js +3 -3
  221. package/dist/esm/Form/Select/MultiSelect/SelectButton.esm.js.map +1 -1
  222. package/dist/esm/Form/Select/MultiSelect/SelectButton.module.scss.esm.js +2 -2
  223. package/dist/esm/Form/Select/MultiSelect/SelectedOptions.esm.js +3 -3
  224. package/dist/esm/Form/Select/MultiSelect/SelectedOptions.esm.js.map +1 -1
  225. package/dist/esm/Form/Select/MultiSelect/SelectedOptions.module.scss.esm.js +2 -2
  226. package/dist/esm/Form/Select/MultiSelect/useMultiSelect.esm.js +2 -2
  227. package/dist/esm/Form/Select/MultiSelect/useMultiSelect.esm.js.map +1 -1
  228. package/dist/esm/Form/Select/MultiSelect/useSearch.esm.js +2 -2
  229. package/dist/esm/Form/Select/MultiSelect/useSearch.esm.js.map +1 -1
  230. package/dist/esm/Form/Select/SingleSelect/Option.esm.js +3 -3
  231. package/dist/esm/Form/Select/SingleSelect/Option.esm.js.map +1 -1
  232. package/dist/esm/Form/Select/SingleSelect/Select.esm.js +22 -22
  233. package/dist/esm/Form/Select/SingleSelect/Select.esm.js.map +1 -1
  234. package/dist/esm/Form/Select/SingleSelect/Select.module.scss.esm.js +2 -2
  235. package/dist/esm/Form/Select/SingleSelect/useSearch.esm.js +2 -2
  236. package/dist/esm/Form/Select/SingleSelect/useSearch.esm.js.map +1 -1
  237. package/dist/esm/Form/Select/useAddNewBtn.esm.js +3 -3
  238. package/dist/esm/Form/Select/useAddNewBtn.esm.js.map +1 -1
  239. package/dist/esm/Form/Select/useAddNewBtn.module.scss.esm.js +2 -2
  240. package/dist/esm/Form/Textarea/Textarea.esm.js +6 -6
  241. package/dist/esm/Form/Textarea/Textarea.esm.js.map +1 -1
  242. package/dist/esm/Form/Textarea/Textarea.module.scss.esm.js +2 -2
  243. package/dist/esm/Form/Toggle/Toggle.esm.js +5 -5
  244. package/dist/esm/Form/Toggle/Toggle.esm.js.map +1 -1
  245. package/dist/esm/Form/Toggle/Toggle.module.scss.esm.js +2 -2
  246. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js +5 -5
  247. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js.map +1 -1
  248. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.esm.js +2 -2
  249. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.esm.js +4 -4
  250. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.esm.js.map +1 -1
  251. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.module.scss.esm.js +2 -2
  252. package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.esm.js +4 -4
  253. package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.esm.js.map +1 -1
  254. package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.esm.js +2 -2
  255. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js +6 -6
  256. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js.map +1 -1
  257. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.esm.js +2 -2
  258. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.esm.js +4 -4
  259. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.esm.js.map +1 -1
  260. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.esm.js +2 -2
  261. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.esm.js +5 -5
  262. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.esm.js.map +1 -1
  263. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.esm.js +2 -2
  264. package/dist/esm/Form/Wrapper/Wrapper/Wrapper.esm.js +7 -7
  265. package/dist/esm/Form/Wrapper/Wrapper/Wrapper.esm.js.map +1 -1
  266. package/dist/esm/Form/Wrapper/Wrapper/Wrapper.module.scss.esm.js +2 -2
  267. package/dist/esm/Icon/Icon.esm.js +3 -3
  268. package/dist/esm/Icon/Icon.esm.js.map +1 -1
  269. package/dist/esm/Icon/Icon.module.scss.esm.js +2 -2
  270. package/dist/esm/Layout/ContentHeader/ContentHeader.esm.js +17 -17
  271. package/dist/esm/Layout/ContentHeader/ContentHeader.esm.js.map +1 -1
  272. package/dist/esm/Layout/ContentHeader/ContentHeader.module.scss.esm.js +2 -2
  273. package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.esm.js +6 -6
  274. package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.esm.js.map +1 -1
  275. package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.esm.js +2 -2
  276. package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.esm.js +3 -3
  277. package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.esm.js.map +1 -1
  278. package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.esm.js +2 -2
  279. package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.esm.js +3 -3
  280. package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.esm.js.map +1 -1
  281. package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.esm.js +2 -2
  282. package/dist/esm/Link/Link.esm.js +5 -5
  283. package/dist/esm/Link/Link.esm.js.map +1 -1
  284. package/dist/esm/Link/Link.module.scss.esm.js +2 -2
  285. package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.esm.js +2 -2
  286. package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.esm.js.map +1 -1
  287. package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.module.scss.esm.js +2 -2
  288. package/dist/esm/Notifications/Alert/AlertItem/AlertItem.esm.js +11 -11
  289. package/dist/esm/Notifications/Alert/AlertItem/AlertItem.esm.js.map +1 -1
  290. package/dist/esm/Notifications/Alert/AlertItem/AlertItem.module.scss.esm.js +2 -2
  291. package/dist/esm/Notifications/Alert/AlertProvider/AlertProvider.esm.js +4 -4
  292. package/dist/esm/Notifications/Alert/AlertProvider/AlertProvider.esm.js.map +1 -1
  293. package/dist/esm/Notifications/Banner/Banner.esm.js +7 -7
  294. package/dist/esm/Notifications/Banner/Banner.esm.js.map +1 -1
  295. package/dist/esm/Notifications/Banner/Banner.module.scss.esm.js +2 -2
  296. package/dist/esm/Notifications/BaseModal/BaseModal.esm.js +8 -8
  297. package/dist/esm/Notifications/BaseModal/BaseModal.esm.js.map +1 -1
  298. package/dist/esm/Notifications/BaseModal/BaseModal.module.scss.esm.js +2 -2
  299. package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.esm.js +7 -7
  300. package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.esm.js.map +1 -1
  301. package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.esm.js +2 -2
  302. package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.esm.js +3 -3
  303. package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.esm.js.map +1 -1
  304. package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.esm.js +2 -2
  305. package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.esm.js +9 -9
  306. package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.esm.js.map +1 -1
  307. package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.esm.js +2 -2
  308. package/dist/esm/Notifications/Dialog/Dialog.esm.js +9 -9
  309. package/dist/esm/Notifications/Dialog/Dialog.esm.js.map +1 -1
  310. package/dist/esm/Notifications/Dialog/Dialog.module.scss.esm.js +2 -2
  311. package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.esm.js +3 -3
  312. package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.esm.js.map +1 -1
  313. package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.module.scss.esm.js +2 -2
  314. package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.esm.js +10 -10
  315. package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.esm.js.map +1 -1
  316. package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.esm.js +2 -2
  317. package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.esm.js +4 -4
  318. package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.esm.js.map +1 -1
  319. package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesModal.esm.js +5 -5
  320. package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesModal.esm.js.map +1 -1
  321. package/dist/esm/Notifications/NotificationProvider/NotificationContext.esm.js +3 -3
  322. package/dist/esm/Notifications/NotificationProvider/NotificationContext.esm.js.map +1 -1
  323. package/dist/esm/Notifications/SideSheet/SideSheet.esm.js +11 -11
  324. package/dist/esm/Notifications/SideSheet/SideSheet.esm.js.map +1 -1
  325. package/dist/esm/Notifications/SideSheet/SideSheet.module.scss.esm.js +2 -2
  326. package/dist/esm/Notifications/SideSheet/SideSheetContent/SideSheetContent.esm.js +2 -2
  327. package/dist/esm/Notifications/SideSheet/SideSheetContent/SideSheetContent.esm.js.map +1 -1
  328. package/dist/esm/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.esm.js +2 -2
  329. package/dist/esm/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.esm.js +2 -2
  330. package/dist/esm/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.esm.js.map +1 -1
  331. package/dist/esm/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.esm.js +2 -2
  332. package/dist/esm/Notifications/SlideInModal/SlideInModal.esm.js +3 -3
  333. package/dist/esm/Notifications/SlideInModal/SlideInModal.esm.js.map +1 -1
  334. package/dist/esm/Notifications/SlideInModal/SlideInModal.module.scss.esm.js +2 -2
  335. package/dist/esm/Pagination/Pagination.esm.js +29 -29
  336. package/dist/esm/Pagination/Pagination.esm.js.map +1 -1
  337. package/dist/esm/Pagination/Pagination.module.scss.esm.js +2 -2
  338. package/dist/esm/Popover/Popover.esm.js +4 -4
  339. package/dist/esm/Popover/Popover.esm.js.map +1 -1
  340. package/dist/esm/Popover/Popover.module.scss.esm.js +2 -2
  341. package/dist/esm/ProgressBar/ProgressBar.esm.js +10 -10
  342. package/dist/esm/ProgressBar/ProgressBar.esm.js.map +1 -1
  343. package/dist/esm/ProgressBar/ProgressBar.module.scss.esm.js +2 -2
  344. package/dist/esm/Skeleton/Skeleton.esm.js +3 -3
  345. package/dist/esm/Skeleton/Skeleton.esm.js.map +1 -1
  346. package/dist/esm/Skeleton/Skeleton.module.scss.esm.js +2 -2
  347. package/dist/esm/Spinner/Spinner.esm.js +4 -4
  348. package/dist/esm/Spinner/Spinner.esm.js.map +1 -1
  349. package/dist/esm/Spinner/Spinner.module.scss.esm.js +2 -2
  350. package/dist/esm/Stepper/Step.esm.js +10 -10
  351. package/dist/esm/Stepper/Step.esm.js.map +1 -1
  352. package/dist/esm/Stepper/Step.module.scss.esm.js +2 -2
  353. package/dist/esm/Stepper/Stepper.esm.js +2 -2
  354. package/dist/esm/Stepper/Stepper.esm.js.map +1 -1
  355. package/dist/esm/Stepper/Stepper.module.scss.esm.js +2 -2
  356. package/dist/esm/Tabs/Tab.esm.js +2 -2
  357. package/dist/esm/Tabs/Tab.esm.js.map +1 -1
  358. package/dist/esm/Tabs/Tab.module.scss.esm.js +2 -2
  359. package/dist/esm/Tabs/TabButton.esm.js +4 -4
  360. package/dist/esm/Tabs/TabButton.esm.js.map +1 -1
  361. package/dist/esm/Tabs/TabButton.module.scss.esm.js +2 -2
  362. package/dist/esm/Tabs/Tabs.esm.js +10 -10
  363. package/dist/esm/Tabs/Tabs.esm.js.map +1 -1
  364. package/dist/esm/Tabs/Tabs.module.scss.esm.js +2 -2
  365. package/dist/esm/Tag/RemoveButton.esm.js +4 -4
  366. package/dist/esm/Tag/RemoveButton.esm.js.map +1 -1
  367. package/dist/esm/Tag/RemoveButton.module.scss.esm.js +2 -2
  368. package/dist/esm/Tag/Tag.esm.js +7 -7
  369. package/dist/esm/Tag/Tag.esm.js.map +1 -1
  370. package/dist/esm/Tag/Tag.module.scss.esm.js +2 -2
  371. package/dist/esm/TextEllipsis/TextEllipsis.esm.js +4 -4
  372. package/dist/esm/TextEllipsis/TextEllipsis.esm.js.map +1 -1
  373. package/dist/esm/TextEllipsis/TextEllipsis.module.scss.esm.js +2 -2
  374. package/dist/esm/Tiles/Tile.esm.js +11 -11
  375. package/dist/esm/Tiles/Tile.esm.js.map +1 -1
  376. package/dist/esm/Tiles/Tile.module.scss.esm.js +2 -2
  377. package/dist/esm/Tiles/Tiles.esm.js +6 -6
  378. package/dist/esm/Tiles/Tiles.esm.js.map +1 -1
  379. package/dist/esm/Tiles/Tiles.module.scss.esm.js +2 -2
  380. package/dist/esm/Tooltip/Tooltip.esm.js +10 -10
  381. package/dist/esm/Tooltip/Tooltip.esm.js.map +1 -1
  382. package/dist/esm/Tooltip/Tooltip.module.scss.esm.js +2 -2
  383. package/dist/esm/Typography/Typography.esm.js +3 -3
  384. package/dist/esm/Typography/Typography.esm.js.map +1 -1
  385. package/dist/esm/Typography/Typography.module.scss.esm.js +2 -2
  386. package/dist/esm/_BaseStyling_/BaseStyling.esm.js +2 -2
  387. package/dist/esm/_BaseStyling_/BaseStyling.esm.js.map +1 -1
  388. package/dist/esm/admin/layout/LeftNav/LeftNav.esm.js +5 -5
  389. package/dist/esm/admin/layout/LeftNav/LeftNav.esm.js.map +1 -1
  390. package/dist/esm/admin/layout/LeftNav/LeftNav.module.scss.esm.js +2 -2
  391. package/dist/esm/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.esm.js +14 -12
  392. package/dist/esm/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.esm.js.map +1 -1
  393. package/dist/esm/admin/layout/LeftNav/LeftNavItem/LeftNavItem.esm.js +3 -3
  394. package/dist/esm/admin/layout/LeftNav/LeftNavItem/LeftNavItem.esm.js.map +1 -1
  395. package/dist/esm/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.esm.js +2 -2
  396. package/dist/esm/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.esm.js +14 -16
  397. package/dist/esm/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.esm.js.map +1 -1
  398. package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.esm.js +4 -4
  399. package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.esm.js.map +1 -1
  400. package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.esm.js +2 -2
  401. package/dist/esm/miscellaneous/IdentityProviderButton.esm.js +4 -4
  402. package/dist/esm/miscellaneous/IdentityProviderButton.esm.js.map +1 -1
  403. package/dist/esm/miscellaneous/IdentityProviderButton.module.scss.esm.js +2 -2
  404. package/dist/esm/src/components/admin/layout/LeftNav/LeftNav.d.ts +1 -1
  405. package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.d.ts +1 -1
  406. package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.d.ts +1 -1
  407. package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.d.ts +2 -1
  408. package/dist/esm/src/hooks/useDebouncedCallback.esm.js +3 -3
  409. package/dist/esm/src/hooks/useDebouncedCallback.esm.js.map +1 -1
  410. package/dist/esm/src/hooks/useDetermineStatusIcon.esm.js +3 -3
  411. package/dist/esm/src/hooks/useDetermineStatusIcon.esm.js.map +1 -1
  412. package/dist/esm/src/hooks/useRepeater.esm.js +2 -2
  413. package/dist/esm/src/hooks/useRepeater.esm.js.map +1 -1
  414. package/dist/esm/src/index.d.ts +1 -0
  415. package/dist/esm/src/readyclasses.module.scss.esm.js +2 -2
  416. package/dist/esm/withReadOnly.esm.js +3 -3
  417. package/dist/esm/withReadOnly.esm.js.map +1 -1
  418. package/package.json +1 -3
  419. package/src/components/DataGrid/DataGrid.module.scss +1 -0
  420. package/src/components/admin/layout/LeftNav/LeftNav.tsx +1 -1
  421. package/src/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.tsx +11 -7
  422. package/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.ts +1 -1
  423. package/src/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.tsx +12 -11
  424. package/src/index.ts +1 -0
  425. package/dist/cjs/node_modules/@remix-run/router/dist/router.cjs.js +0 -12
  426. package/dist/cjs/node_modules/@remix-run/router/dist/router.cjs.js.map +0 -1
  427. package/dist/cjs/node_modules/react-router/dist/index.cjs.js +0 -12
  428. package/dist/cjs/node_modules/react-router/dist/index.cjs.js.map +0 -1
  429. package/dist/cjs/node_modules/react-router-dom/dist/index.cjs.js +0 -12
  430. package/dist/cjs/node_modules/react-router-dom/dist/index.cjs.js.map +0 -1
  431. package/dist/esm/node_modules/@remix-run/router/dist/router.esm.js +0 -373
  432. package/dist/esm/node_modules/@remix-run/router/dist/router.esm.js.map +0 -1
  433. package/dist/esm/node_modules/react-router/dist/index.esm.js +0 -328
  434. package/dist/esm/node_modules/react-router/dist/index.esm.js.map +0 -1
  435. package/dist/esm/node_modules/react-router-dom/dist/index.esm.js +0 -609
  436. package/dist/esm/node_modules/react-router-dom/dist/index.esm.js.map +0 -1
@@ -4,7 +4,7 @@ export interface Props extends ComponentPropsWithRef<"nav"> {
4
4
  isSideMenuOpen?: boolean;
5
5
  items: MenuItem[];
6
6
  navigate: (path: string) => void;
7
- onItemClick: (path?: string, button?: boolean) => void;
7
+ onItemClick?: (path?: string, button?: boolean) => void;
8
8
  marginTop?: string;
9
9
  }
10
10
  export declare const LeftNav: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLElement>>;
@@ -5,7 +5,7 @@ import { LeftNavItemProps } from "./LeftNavItem.interface";
5
5
  export interface Props extends HTMLProps<HTMLElement> {
6
6
  item: MenuItem;
7
7
  navigate: (path: string) => void;
8
- onItemClick: (path?: string, button?: boolean) => void;
8
+ onItemClick?: (path?: string, button?: boolean) => void;
9
9
  refItems: UseRefItemsReturnType;
10
10
  NestedComponent: ForwardRefExoticComponent<LeftNavItemProps>;
11
11
  closeParentList?: () => void;
@@ -4,7 +4,7 @@ import { UseRefItemsReturnType } from "../useRefItems";
4
4
  export interface LeftNavItemProps extends HTMLProps<HTMLElement> {
5
5
  item: MenuItem;
6
6
  navigate: (path: string) => void;
7
- onItemClick: (path?: string, button?: boolean) => void;
7
+ onItemClick?: (path?: string, button?: boolean) => void;
8
8
  refItems: UseRefItemsReturnType;
9
9
  closeParentList?: () => void;
10
10
  }
@@ -3,7 +3,8 @@ import { MenuItem } from "../LeftNav.interfaces";
3
3
  import { UseRefItemsReturnType } from "../useRefItems";
4
4
  export interface Props extends HTMLProps<HTMLElement> {
5
5
  item: MenuItem;
6
- onItemClick: (path?: string, button?: boolean) => void;
6
+ navigate: (path: string) => void;
7
+ onItemClick?: (path?: string, button?: boolean) => void;
7
8
  refItems: UseRefItemsReturnType;
8
9
  closeParentList?: () => void;
9
10
  }
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import React from 'react';
2
2
 
3
3
  /*
4
4
  * Copyright 2022 OneWelcome B.V.
@@ -17,10 +17,10 @@ import React__default from 'react';
17
17
  */
18
18
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types */
19
19
  const useDebouncedCallback = (callback, delay, dependencies) => {
20
- const timeout = React__default.useRef();
20
+ const timeout = React.useRef();
21
21
  const comboDeps = dependencies ? [callback, delay, ...dependencies] : [callback, delay];
22
22
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
23
- return React__default.useCallback((...args) => {
23
+ return React.useCallback((...args) => {
24
24
  if (timeout.current != null) {
25
25
  clearTimeout(timeout.current);
26
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useDebouncedCallback.esm.js","sources":["../../../../../../src/hooks/useDebouncedCallback.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\n\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types */\nexport const useDebouncedCallback = (callback: Function, delay: number, dependencies?: any[]) => {\n const timeout = React.useRef<ReturnType<typeof setTimeout>>();\n const comboDeps = dependencies ? [callback, delay, ...dependencies] : [callback, delay];\n\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n return React.useCallback((...args: any[]) => {\n if (timeout.current != null) {\n clearTimeout(timeout.current);\n }\n\n timeout.current = setTimeout(() => {\n callback(...args);\n }, delay);\n }, comboDeps);\n};\n"],"names":["React"],"mappings":";;AAAA;;;;;;;;;;;;;;AAcG;AAIH;AACa,MAAA,oBAAoB,GAAG,CAAC,QAAkB,EAAE,KAAa,EAAE,YAAoB,KAAI;AAC9F,IAAA,MAAM,OAAO,GAAGA,cAAK,CAAC,MAAM,EAAiC,CAAC;IAC9D,MAAM,SAAS,GAAG,YAAY,GAAG,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;;IAGxF,OAAOA,cAAK,CAAC,WAAW,CAAC,CAAC,GAAG,IAAW,KAAI;AAC1C,QAAA,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,EAAE;AAC3B,YAAA,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SAC/B;AAED,QAAA,OAAO,CAAC,OAAO,GAAG,UAAU,CAAC,MAAK;AAChC,YAAA,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;SACnB,EAAE,KAAK,CAAC,CAAC;KACX,EAAE,SAAS,CAAC,CAAC;AAChB;;;;"}
1
+ {"version":3,"file":"useDebouncedCallback.esm.js","sources":["../../../../../../src/hooks/useDebouncedCallback.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\n\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types */\nexport const useDebouncedCallback = (callback: Function, delay: number, dependencies?: any[]) => {\n const timeout = React.useRef<ReturnType<typeof setTimeout>>();\n const comboDeps = dependencies ? [callback, delay, ...dependencies] : [callback, delay];\n\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n return React.useCallback((...args: any[]) => {\n if (timeout.current != null) {\n clearTimeout(timeout.current);\n }\n\n timeout.current = setTimeout(() => {\n callback(...args);\n }, delay);\n }, comboDeps);\n};\n"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;AAcG;AAIH;AACa,MAAA,oBAAoB,GAAG,CAAC,QAAkB,EAAE,KAAa,EAAE,YAAoB,KAAI;AAC9F,IAAA,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,EAAiC,CAAC;IAC9D,MAAM,SAAS,GAAG,YAAY,GAAG,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;;IAGxF,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,GAAG,IAAW,KAAI;AAC1C,QAAA,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,EAAE;AAC3B,YAAA,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SAC/B;AAED,QAAA,OAAO,CAAC,OAAO,GAAG,UAAU,CAAC,MAAK;AAChC,YAAA,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;SACnB,EAAE,KAAK,CAAC,CAAC;KACX,EAAE,SAAS,CAAC,CAAC;AAChB;;;;"}
@@ -1,4 +1,4 @@
1
- import React__default, { useRef } from 'react';
1
+ import React, { useRef } from 'react';
2
2
  import { Icon, Icons } from '../../Icon/Icon.esm.js';
3
3
 
4
4
  /*
@@ -22,10 +22,10 @@ const useDetermineStatusIcon = (params) => {
22
22
  const errorRef = useRef(null);
23
23
  const successRef = useRef(null);
24
24
  if (error) {
25
- icon = React__default.createElement(Icon, { ref: errorRef, "data-icon-status": "error", icon: Icons.Error });
25
+ icon = React.createElement(Icon, { ref: errorRef, "data-icon-status": "error", icon: Icons.Error });
26
26
  }
27
27
  else if (success) {
28
- icon = React__default.createElement(Icon, { ref: successRef, "data-icon-status": "success", icon: Icons.CheckmarkCircleAlt });
28
+ icon = React.createElement(Icon, { ref: successRef, "data-icon-status": "success", icon: Icons.CheckmarkCircleAlt });
29
29
  }
30
30
  return icon;
31
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useDetermineStatusIcon.esm.js","sources":["../../../../../../src/hooks/useDetermineStatusIcon.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormElement } from \"../components/Form/form.interfaces\";\nimport React, { ReactElement, useRef } from \"react\";\nimport { Icon, Icons } from \"../components/Icon/Icon\";\nexport const useDetermineStatusIcon = (params: Partial<FormElement>): ReactElement | null => {\n const { error, success } = params || false;\n let icon = null;\n const errorRef = useRef(null);\n const successRef = useRef(null);\n\n if (error) {\n icon = <Icon ref={errorRef} data-icon-status=\"error\" icon={Icons.Error} />;\n } else if (success) {\n icon = <Icon ref={successRef} data-icon-status=\"success\" icon={Icons.CheckmarkCircleAlt} />;\n }\n\n return icon;\n};\n"],"names":["React"],"mappings":";;;AAAA;;;;;;;;;;;;;;AAcG;AAKU,MAAA,sBAAsB,GAAG,CAAC,MAA4B,KAAyB;IAC1F,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,KAAK,CAAC;IAC3C,IAAI,IAAI,GAAG,IAAI,CAAC;AAChB,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;AAC9B,IAAA,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAEhC,IAAI,KAAK,EAAE;AACT,QAAA,IAAI,GAAGA,cAAC,CAAA,aAAA,CAAA,IAAI,EAAC,EAAA,GAAG,EAAE,QAAQ,EAAA,kBAAA,EAAmB,OAAO,EAAC,IAAI,EAAE,KAAK,CAAC,KAAK,GAAI,CAAC;KAC5E;SAAM,IAAI,OAAO,EAAE;AAClB,QAAA,IAAI,GAAGA,cAAC,CAAA,aAAA,CAAA,IAAI,EAAC,EAAA,GAAG,EAAE,UAAU,EAAA,kBAAA,EAAmB,SAAS,EAAC,IAAI,EAAE,KAAK,CAAC,kBAAkB,GAAI,CAAC;KAC7F;AAED,IAAA,OAAO,IAAI,CAAC;AACd;;;;"}
1
+ {"version":3,"file":"useDetermineStatusIcon.esm.js","sources":["../../../../../../src/hooks/useDetermineStatusIcon.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormElement } from \"../components/Form/form.interfaces\";\nimport React, { ReactElement, useRef } from \"react\";\nimport { Icon, Icons } from \"../components/Icon/Icon\";\nexport const useDetermineStatusIcon = (params: Partial<FormElement>): ReactElement | null => {\n const { error, success } = params || false;\n let icon = null;\n const errorRef = useRef(null);\n const successRef = useRef(null);\n\n if (error) {\n icon = <Icon ref={errorRef} data-icon-status=\"error\" icon={Icons.Error} />;\n } else if (success) {\n icon = <Icon ref={successRef} data-icon-status=\"success\" icon={Icons.CheckmarkCircleAlt} />;\n }\n\n return icon;\n};\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;AAcG;AAKU,MAAA,sBAAsB,GAAG,CAAC,MAA4B,KAAyB;IAC1F,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,KAAK,CAAC;IAC3C,IAAI,IAAI,GAAG,IAAI,CAAC;AAChB,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;AAC9B,IAAA,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAEhC,IAAI,KAAK,EAAE;AACT,QAAA,IAAI,GAAG,KAAC,CAAA,aAAA,CAAA,IAAI,EAAC,EAAA,GAAG,EAAE,QAAQ,EAAA,kBAAA,EAAmB,OAAO,EAAC,IAAI,EAAE,KAAK,CAAC,KAAK,GAAI,CAAC;KAC5E;SAAM,IAAI,OAAO,EAAE;AAClB,QAAA,IAAI,GAAG,KAAC,CAAA,aAAA,CAAA,IAAI,EAAC,EAAA,GAAG,EAAE,UAAU,EAAA,kBAAA,EAAmB,SAAS,EAAC,IAAI,EAAE,KAAK,CAAC,kBAAkB,GAAI,CAAC;KAC7F;AAED,IAAA,OAAO,IAAI,CAAC;AACd;;;;"}
@@ -1,4 +1,4 @@
1
- import React__default, { useState, useEffect } from 'react';
1
+ import React, { useState, useEffect } from 'react';
2
2
  import { generateID } from '../util/helper.esm.js';
3
3
 
4
4
  /*
@@ -22,7 +22,7 @@ const useRepeater = ({ componentToRepeat }) => {
22
22
  repeat();
23
23
  }, []);
24
24
  const repeat = () => {
25
- const clonedComponent = React__default.cloneElement(componentToRepeat, { key: generateID(20) });
25
+ const clonedComponent = React.cloneElement(componentToRepeat, { key: generateID(20) });
26
26
  setRepeatedComponents(prevState => [...prevState, clonedComponent]);
27
27
  };
28
28
  const remove = (componentToRemove) => {
@@ -1 +1 @@
1
- {"version":3,"file":"useRepeater.esm.js","sources":["../../../../../../src/hooks/useRepeater.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useEffect, useState, JSX } from \"react\";\nimport { generateID } from \"../util/helper\";\n\ninterface Arguments {\n componentToRepeat: React.ReactElement;\n}\n\nexport const useRepeater = <T>({ componentToRepeat }: Arguments) => {\n const [repeatedComponents, setRepeatedComponents] = useState<JSX.Element[]>([]);\n\n useEffect(() => {\n repeat();\n }, []);\n\n const repeat = () => {\n const clonedComponent = React.cloneElement(componentToRepeat, { key: generateID(20) });\n\n setRepeatedComponents(prevState => [...prevState, clonedComponent]);\n };\n\n const remove = (componentToRemove: React.ReactElement<T>) => {\n const newRepeatedComponents = repeatedComponents.filter(\n component => component !== componentToRemove\n );\n\n setRepeatedComponents(newRepeatedComponents);\n };\n\n return {\n repeatedComponents,\n repeat,\n remove\n };\n};\n"],"names":["React"],"mappings":";;;AAAA;;;;;;;;;;;;;;AAcG;MASU,WAAW,GAAG,CAAI,EAAE,iBAAiB,EAAa,KAAI;IACjE,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAgB,EAAE,CAAC,CAAC;IAEhF,SAAS,CAAC,MAAK;AACb,QAAA,MAAM,EAAE,CAAC;KACV,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,MAAM,GAAG,MAAK;AAClB,QAAA,MAAM,eAAe,GAAGA,cAAK,CAAC,YAAY,CAAC,iBAAiB,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAEvF,QAAA,qBAAqB,CAAC,SAAS,IAAI,CAAC,GAAG,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC;AACtE,KAAC,CAAC;AAEF,IAAA,MAAM,MAAM,GAAG,CAAC,iBAAwC,KAAI;AAC1D,QAAA,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,MAAM,CACrD,SAAS,IAAI,SAAS,KAAK,iBAAiB,CAC7C,CAAC;QAEF,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;AAC/C,KAAC,CAAC;IAEF,OAAO;QACL,kBAAkB;QAClB,MAAM;QACN,MAAM;KACP,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"useRepeater.esm.js","sources":["../../../../../../src/hooks/useRepeater.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useEffect, useState, JSX } from \"react\";\nimport { generateID } from \"../util/helper\";\n\ninterface Arguments {\n componentToRepeat: React.ReactElement;\n}\n\nexport const useRepeater = <T>({ componentToRepeat }: Arguments) => {\n const [repeatedComponents, setRepeatedComponents] = useState<JSX.Element[]>([]);\n\n useEffect(() => {\n repeat();\n }, []);\n\n const repeat = () => {\n const clonedComponent = React.cloneElement(componentToRepeat, { key: generateID(20) });\n\n setRepeatedComponents(prevState => [...prevState, clonedComponent]);\n };\n\n const remove = (componentToRemove: React.ReactElement<T>) => {\n const newRepeatedComponents = repeatedComponents.filter(\n component => component !== componentToRemove\n );\n\n setRepeatedComponents(newRepeatedComponents);\n };\n\n return {\n repeatedComponents,\n repeat,\n remove\n };\n};\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;AAcG;MASU,WAAW,GAAG,CAAI,EAAE,iBAAiB,EAAa,KAAI;IACjE,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAgB,EAAE,CAAC,CAAC;IAEhF,SAAS,CAAC,MAAK;AACb,QAAA,MAAM,EAAE,CAAC;KACV,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,MAAM,GAAG,MAAK;AAClB,QAAA,MAAM,eAAe,GAAG,KAAK,CAAC,YAAY,CAAC,iBAAiB,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAEvF,QAAA,qBAAqB,CAAC,SAAS,IAAI,CAAC,GAAG,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC;AACtE,KAAC,CAAC;AAEF,IAAA,MAAM,MAAM,GAAG,CAAC,iBAAwC,KAAI;AAC1D,QAAA,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,MAAM,CACrD,SAAS,IAAI,SAAS,KAAK,iBAAiB,CAC7C,CAAC;QAEF,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;AAC/C,KAAC,CAAC;IAEF,OAAO;QACL,kBAAkB;QAClB,MAAM;QACN,MAAM;KACP,CAAC;AACJ;;;;"}
@@ -158,6 +158,7 @@ export { MicrofrontendContainer } from "./components/admin/layout/MicrofrontendC
158
158
  export type { Props as MicrofrontendContainerProps } from "./components/admin/layout/MicrofrontendContainer/MicrofrontendContainer";
159
159
  export { LeftNav } from "./components/admin/layout/LeftNav/LeftNav";
160
160
  export type { Props as LeftNavProps } from "./components/admin/layout/LeftNav/LeftNav";
161
+ export type { MenuItem as LeftNavMenuItem } from "./components/admin/layout/LeftNav/LeftNav.interfaces";
161
162
  /**
162
163
  * Miscellaneous
163
164
  */
@@ -1,7 +1,7 @@
1
1
  import styleInject from '../node_modules/style-inject/dist/style-inject.es.esm.js';
2
2
 
3
- var css_248z = "/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.readyclasses_sr-only_zs31Q{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.readyclasses_hidden_zs31Q{display:none}.readyclasses_slide-in_zs31Q{animation:readyclasses_slide-in_zs31Q .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-in_zs31Q{animation-duration:.1ms}}.readyclasses_slide-out_zs31Q{animation:readyclasses_slide-out_zs31Q .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-out_zs31Q{animation-duration:.1ms}}@keyframes readyclasses_slide-in_zs31Q{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes readyclasses_slide-out_zs31Q{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlYWR5Y2xhc3Nlcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDRCQU9FLGtCQUFzQixDQUN0QixRQUFTLENBTFQsVUFBVyxDQUVYLFdBQVksQ0FDWixlQUFnQixDQUZoQixTQUFVLENBSFYsaUJBQWtCLENBQ2xCLFNBT0YsQ0FFQSwyQkFDRSxZQUNGLENBRUEsNkJBQ0Usa0RBQ0YsQ0FDQSx1Q0FDRSw2QkFDRSx1QkFDRixDQUNGLENBRUEsOEJBQ0UsbURBQ0YsQ0FDQSx1Q0FDRSw4QkFDRSx1QkFDRixDQUNGLENBRUEsdUNBQ0UsR0FDRSwyQkFDRixDQUNBL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4O1xuICBoZWlnaHQ6IDFweDtcbiAgcGFkZGluZzogMDtcbiAgbWFyZ2luOiAtMXB4O1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICBjbGlwOiByZWN0KDAsIDAsIDAsIDApO1xuICBib3JkZXI6IDA7XG59XG5cbi5oaWRkZW4ge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uc2xpZGUtaW4ge1xuICBhbmltYXRpb246IHNsaWRlLWluIDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtaW4ge1xuICAgIGFuaW1hdGlvbi1kdXJhdGlvbjogMC4xbXM7XG4gIH1cbn1cblxuLnNsaWRlLW91dCB7XG4gIGFuaW1hdGlvbjogc2xpZGUtb3V0IDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtb3V0IHtcbiAgICBhbmltYXRpb24tZHVyYXRpb246IDAuMW1zO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgc2xpZGUtaW4ge1xuICAwJSB7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDEwMHZoKTtcbiAgfVxuICAxMDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG59XG5Aa2V5ZnJhbWVzIHNsaWRlLW91dCB7XG4gIDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG4gIDEwMCUge1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDB2aCk7XG4gIH1cbn0iXX0= */";
4
- var readyclasses = {"sr-only":"readyclasses_sr-only_zs31Q","hidden":"readyclasses_hidden_zs31Q","slide-in":"readyclasses_slide-in_zs31Q","slide-out":"readyclasses_slide-out_zs31Q"};
3
+ var css_248z = "/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.readyclasses_sr-only_rE09l{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.readyclasses_hidden_rE09l{display:none}.readyclasses_slide-in_rE09l{animation:readyclasses_slide-in_rE09l .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-in_rE09l{animation-duration:.1ms}}.readyclasses_slide-out_rE09l{animation:readyclasses_slide-out_rE09l .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-out_rE09l{animation-duration:.1ms}}@keyframes readyclasses_slide-in_rE09l{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes readyclasses_slide-out_rE09l{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlYWR5Y2xhc3Nlcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDRCQU9FLGtCQUFzQixDQUN0QixRQUFTLENBTFQsVUFBVyxDQUVYLFdBQVksQ0FDWixlQUFnQixDQUZoQixTQUFVLENBSFYsaUJBQWtCLENBQ2xCLFNBT0YsQ0FFQSwyQkFDRSxZQUNGLENBRUEsNkJBQ0Usa0RBQ0YsQ0FDQSx1Q0FDRSw2QkFDRSx1QkFDRixDQUNGLENBRUEsOEJBQ0UsbURBQ0YsQ0FDQSx1Q0FDRSw4QkFDRSx1QkFDRixDQUNGLENBRUEsd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246IGFic29sdXRlO1xuICB3aWR0aDogMXB4O1xuICBoZWlnaHQ6IDFweDtcbiAgcGFkZGluZzogMDtcbiAgbWFyZ2luOiAtMXB4O1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICBjbGlwOiByZWN0KDAsIDAsIDAsIDApO1xuICBib3JkZXI6IDA7XG59XG5cbi5oaWRkZW4ge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uc2xpZGUtaW4ge1xuICBhbmltYXRpb246IHNsaWRlLWluIDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtaW4ge1xuICAgIGFuaW1hdGlvbi1kdXJhdGlvbjogMC4xbXM7XG4gIH1cbn1cblxuLnNsaWRlLW91dCB7XG4gIGFuaW1hdGlvbjogc2xpZGUtb3V0IDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtb3V0IHtcbiAgICBhbmltYXRpb24tZHVyYXRpb246IDAuMW1zO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgc2xpZGUtaW4ge1xuICAwJSB7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDEwMHZoKTtcbiAgfVxuICAxMDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG59XG5Aa2V5ZnJhbWVzIHNsaWRlLW91dCB7XG4gIDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG4gIDEwMCUge1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDB2aCk7XG4gIH1cbn0iXX0= */";
4
+ var readyclasses = {"sr-only":"readyclasses_sr-only_rE09l","hidden":"readyclasses_hidden_rE09l","slide-in":"readyclasses_slide-in_rE09l","slide-out":"readyclasses_slide-out_rE09l"};
5
5
  styleInject(css_248z);
6
6
 
7
7
  export { readyclasses as default };
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import React from 'react';
2
2
 
3
3
  /*
4
4
  * Copyright 2022 OneWelcome B.V.
@@ -58,9 +58,9 @@ const withReadOnly = (WrappedComponent) => {
58
58
  }
59
59
  return {};
60
60
  };
61
- const WithReadOnlyComponent = React__default.forwardRef((props, ref) => {
61
+ const WithReadOnlyComponent = React.forwardRef((props, ref) => {
62
62
  const { readOnlyView = false, required, children, helperText, type = "", ...restProps } = props;
63
- return (React__default.createElement(WrappedComponent, { ref: ref, ...restProps, "data-readonlyview": readOnlyView, "aria-readonly": readOnlyView, required: readOnlyView ? false : required, ...getConditionalProps(readOnlyView, type, helperText), ...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView) }, children));
63
+ return (React.createElement(WrappedComponent, { ref: ref, ...restProps, "data-readonlyview": readOnlyView, "aria-readonly": readOnlyView, required: readOnlyView ? false : required, ...getConditionalProps(readOnlyView, type, helperText), ...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView) }, children));
64
64
  });
65
65
  WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;
66
66
  return WithReadOnlyComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"withReadOnly.esm.js","sources":["../../../../src/components/withReadOnly.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentType, ForwardedRef, PropsWithChildren } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\nexport const withReadOnly = <P extends object>(WrappedComponent: ComponentType<P>) => {\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (props: PropsWithChildren<P & WithReadOnlyProps>, ref: ForwardedRef<unknown>) => {\n const {\n readOnlyView = false,\n required,\n children,\n helperText,\n type = \"\",\n ...restProps\n } = props;\n\n return (\n <WrappedComponent\n ref={ref}\n {...(restProps as P)}\n data-readonlyview={readOnlyView}\n aria-readonly={readOnlyView}\n required={readOnlyView ? false : required}\n {...getConditionalProps(readOnlyView, type, helperText)}\n {...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}\n >\n {children}\n </WrappedComponent>\n );\n }\n );\n\n WithRe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C,CAAA,CAAE,CAAC;AACvF,IAAA,OAAO,qBAAqB,CAAC;AAC/B;;;;"}
1
+ {"version":3,"file":"withReadOnly.esm.js","sources":["../../../../src/components/withReadOnly.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentType, ForwardedRef, PropsWithChildren } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\nexport const withReadOnly = <P extends object>(WrappedComponent: ComponentType<P>) => {\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (props: PropsWithChildren<P & WithReadOnlyProps>, ref: ForwardedRef<unknown>) => {\n const {\n readOnlyView = false,\n required,\n children,\n helperText,\n type = \"\",\n ...restProps\n } = props;\n\n return (\n <WrappedComponent\n ref={ref}\n {...(restProps as P)}\n data-readonlyview={readOnlyView}\n aria-readonly={readOnlyView}\n required={readOnlyView ? false : required}\n {...getConditionalProps(readOnlyView, type, helperText)}\n {...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}\n >\n {children}\n </WrappedComponent>\n );\n }\n );\n\n WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;\n return WithReadOnlyComponent;\n};\n"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;AAcG;AAWH,MAAM,gCAAgC,GAAa,CAAC,iBAAiB,CAAC,CAAC;AAEvE,MAAM,cAAc,GAAG,CAAK,gBAAkC,KAAI;;IAChE,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,gBAAgB,CAAC,WAAW,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,gBAAgB,CAAC,IAAI,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,WAAW,CAAC;AAC9E,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,YAAqB,EAAE,IAAY,EAAE,UAAmB,KAAI;IACvF,MAAM,KAAK,GAA4B,EAAE,CAAC;IAE1C,IAAI,YAAY,EAAE;AAChB,QAAA,KAAK,CAAC,KAAK,GAAG,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QAC5D,IAAI,UAAU,EAAE;AACd,YAAA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AK,EACpB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,IAAI,GAAG,EAAE,EACT,GAAG,SAAS,EACb,GAAG,KAAK,CAAC;AAEV,QAAA,QACE,KAAC,CAAA,aAAA,CAAA,gBAAgB,IACf,GAAG,EAAE,GAAG,EACH,GAAA,SAAe,uBACD,YAAY,EAAA,eAAA,EAChB,YAAY,EAC3B,QAAQ,EAAE,YAAY,GAAG,KAAK,GAAG,QAAQ,EACrC,GAAA,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,UAAU,CAAC,EACnD,GAAA,kDAAkD,CAAC,YAAY,CAAC,IAEnE,QAAQ,CACQ,EACnB;AACJ,KAAC,CACF,CAAC;IAEF,qBAAqB,CAAC,WAAW,GAAG,CAAA,aAAA,EAAgB,cAAc,CAAC,gBAAgB,CAAC,CAAA,CAAE,CAAC;AACvF,IAAA,OAAO,qBAAqB,CAAC;AAC/B;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "homepage": "http://onewelcome.github.io/react-lib-components",
3
3
  "name": "@onewelcome/react-lib-components",
4
- "version": "8.12.1",
4
+ "version": "8.12.2",
5
5
  "license": "Apache-2.0",
6
6
  "author": "OneWelcome B.V.",
7
7
  "main": "dist/cjs/src/index.cjs.js",
@@ -91,8 +91,6 @@
91
91
  "@types/mdx": "^2.0.13",
92
92
  "@types/react": "^18.3.3",
93
93
  "@types/react-dom": "^18.3.0",
94
- "@types/react-router": "^5.1.20",
95
- "@types/react-router-dom": "^5.3.3",
96
94
  "@typescript-eslint/eslint-plugin": "^7.15.0",
97
95
  "@typescript-eslint/parser": "^7.15.0",
98
96
  "babel-loader": "^9.1.3",
@@ -20,6 +20,7 @@
20
20
 
21
21
  .table-wrapper {
22
22
  overflow-x: auto;
23
+ overflow-y: hidden; // hides additional vertical scroll which can be seen when using nested rows
23
24
  }
24
25
 
25
26
  .table {
@@ -29,7 +29,7 @@ export interface Props extends ComponentPropsWithRef<"nav"> {
29
29
  isSideMenuOpen?: boolean;
30
30
  items: MenuItem[];
31
31
  navigate: (path: string) => void;
32
- onItemClick: (path?: string, button?: boolean) => void;
32
+ onItemClick?: (path?: string, button?: boolean) => void;
33
33
  marginTop?: string;
34
34
  }
35
35
 
@@ -24,7 +24,6 @@ import React, {
24
24
  useState
25
25
  } from "react";
26
26
  import classes from "./LeftNavItem.module.scss";
27
- import { Link as RouterLink } from "react-router-dom";
28
27
  import { MenuItem } from "../LeftNav.interfaces";
29
28
  import { Icon, Icons } from "../../../../Icon/Icon";
30
29
  import { useKeyboardNavigation } from "./useKeyboardNavigation";
@@ -34,7 +33,7 @@ import { LeftNavItemProps } from "./LeftNavItem.interface";
34
33
  export interface Props extends HTMLProps<HTMLElement> {
35
34
  item: MenuItem;
36
35
  navigate: (path: string) => void;
37
- onItemClick: (path?: string, button?: boolean) => void;
36
+ onItemClick?: (path?: string, button?: boolean) => void;
38
37
  refItems: UseRefItemsReturnType;
39
38
  NestedComponent: ForwardRefExoticComponent<LeftNavItemProps>;
40
39
  closeParentList?: () => void;
@@ -55,10 +54,14 @@ const ButtonLeftNavItemComponent: ForwardRefRenderFunction<HTMLElement, Props> =
55
54
  if (!isChevronIcon && item.path && !item.disabled) {
56
55
  event.preventDefault();
57
56
  navigate(item.path);
58
- onItemClick(item.path, true);
57
+ onItemClick?.(item.path, true);
59
58
  }
60
59
  };
61
60
 
61
+ const onLinkClickHandler = (event: MouseEvent<HTMLAnchorElement>) => {
62
+ event.preventDefault();
63
+ };
64
+
62
65
  const onExpandIconClickHandler = () => {
63
66
  setExpanded(expanded => !expanded);
64
67
  };
@@ -93,7 +96,7 @@ const ButtonLeftNavItemComponent: ForwardRefRenderFunction<HTMLElement, Props> =
93
96
  <li className={buttonWrapperClasses.join(" ")} data-testid={item.key}>
94
97
  <button
95
98
  aria-controls={item.key}
96
- data-testid={`tab-btn-${item.key}`}
99
+ data-testid={`left-nav-item-${item.key}`}
97
100
  aria-expanded={expanded}
98
101
  ref={ref as Ref<HTMLButtonElement>}
99
102
  onKeyDown={onKeyPressNavigation}
@@ -106,14 +109,15 @@ const ButtonLeftNavItemComponent: ForwardRefRenderFunction<HTMLElement, Props> =
106
109
  {item.iconComponent &&
107
110
  React.cloneElement(item.iconComponent, { className: classes["menu-item-icon"] })}
108
111
  {item.path ? (
109
- <RouterLink
110
- to={item.path}
112
+ <a
113
+ href={item.path}
111
114
  aria-current={item.active ? "page" : false}
112
115
  className={classes["menu-item-text"]}
116
+ onClick={onLinkClickHandler}
113
117
  tabIndex={-1}
114
118
  >
115
119
  {item.title}
116
- </RouterLink>
120
+ </a>
117
121
  ) : (
118
122
  <span className={classes["menu-item-text"]}>{item.title}</span>
119
123
  )}
@@ -21,7 +21,7 @@ import { UseRefItemsReturnType } from "../useRefItems";
21
21
  export interface LeftNavItemProps extends HTMLProps<HTMLElement> {
22
22
  item: MenuItem;
23
23
  navigate: (path: string) => void;
24
- onItemClick: (path?: string, button?: boolean) => void;
24
+ onItemClick?: (path?: string, button?: boolean) => void;
25
25
  refItems: UseRefItemsReturnType;
26
26
  closeParentList?: () => void;
27
27
  }
@@ -16,7 +16,6 @@
16
16
 
17
17
  import React, { ForwardRefRenderFunction, HTMLProps, MouseEvent, Ref } from "react";
18
18
  import classes from "./LeftNavItem.module.scss";
19
- import { Link as RouterLink } from "react-router-dom";
20
19
  import { MenuItem } from "../LeftNav.interfaces";
21
20
  import { Link } from "../../../../Link/Link";
22
21
  import { useKeyboardNavigation } from "./useKeyboardNavigation";
@@ -24,22 +23,23 @@ import { UseRefItemsReturnType } from "../useRefItems";
24
23
 
25
24
  export interface Props extends HTMLProps<HTMLElement> {
26
25
  item: MenuItem;
27
- onItemClick: (path?: string, button?: boolean) => void;
26
+ navigate: (path: string) => void;
27
+ onItemClick?: (path?: string, button?: boolean) => void;
28
28
  refItems: UseRefItemsReturnType;
29
29
  closeParentList?: () => void;
30
30
  }
31
31
 
32
32
  const LinkLeftNavItemComponent: ForwardRefRenderFunction<HTMLElement, Props> = (
33
- { item, onItemClick, refItems, closeParentList },
33
+ { item, onItemClick, refItems, closeParentList, navigate },
34
34
  ref
35
35
  ) => {
36
36
  const { onKeyPressNavigation } = useKeyboardNavigation({ refItems, item, closeParentList });
37
37
 
38
38
  const onLinkClickHandler = (event: MouseEvent<HTMLAnchorElement>) => {
39
- if (item.disabled) {
40
- event.preventDefault();
41
- } else {
42
- onItemClick(item.path);
39
+ event.preventDefault();
40
+ if (!item.disabled) {
41
+ onItemClick?.(item.path);
42
+ item.path && navigate(item.path);
43
43
  }
44
44
  };
45
45
 
@@ -65,7 +65,7 @@ const LinkLeftNavItemComponent: ForwardRefRenderFunction<HTMLElement, Props> = (
65
65
  ref={ref as Ref<HTMLAnchorElement>}
66
66
  onKeyDown={onKeyPressNavigation}
67
67
  onClick={onLinkClickHandler}
68
- data-testid={item.key}
68
+ data-testid={`left-nav-item-${item.key}`}
69
69
  aria-current={item.active ? "page" : false}
70
70
  aria-disabled={item.disabled}
71
71
  className={menuItemLinkClasses.join(" ")}
@@ -81,14 +81,15 @@ const LinkLeftNavItemComponent: ForwardRefRenderFunction<HTMLElement, Props> = (
81
81
  </div>
82
82
  </Link>
83
83
  ) : (
84
- <RouterLink
84
+ <a
85
85
  ref={ref as Ref<HTMLAnchorElement>}
86
86
  onKeyDown={onKeyPressNavigation}
87
87
  onClick={onLinkClickHandler}
88
+ data-testid={`left-nav-item-${item.key}`}
88
89
  aria-current={item.active ? "page" : false}
89
90
  aria-disabled={item.disabled}
90
91
  className={menuItemLinkClasses.join(" ")}
91
- to={item.path ?? ""}
92
+ href={item.path ?? ""}
92
93
  tabIndex={tabIndex}
93
94
  >
94
95
  <div className={classes["menu-item-text-wrapper"]}>
@@ -96,7 +97,7 @@ const LinkLeftNavItemComponent: ForwardRefRenderFunction<HTMLElement, Props> = (
96
97
  React.cloneElement(item.iconComponent, { className: classes["menu-item-icon"] })}
97
98
  <span className={classes["menu-item-text"]}>{item.title}</span>
98
99
  </div>
99
- </RouterLink>
100
+ </a>
100
101
  )}
101
102
  </li>
102
103
  );
package/src/index.ts CHANGED
@@ -222,6 +222,7 @@ export { MicrofrontendContainer } from "./components/admin/layout/MicrofrontendC
222
222
  export type { Props as MicrofrontendContainerProps } from "./components/admin/layout/MicrofrontendContainer/MicrofrontendContainer";
223
223
  export { LeftNav } from "./components/admin/layout/LeftNav/LeftNav";
224
224
  export type { Props as LeftNavProps } from "./components/admin/layout/LeftNav/LeftNav";
225
+ export type { MenuItem as LeftNavMenuItem } from "./components/admin/layout/LeftNav/LeftNav.interfaces";
225
226
 
226
227
  /**
227
228
  * Miscellaneous
@@ -1,12 +0,0 @@
1
- "use strict";
2
- /**
3
- * @remix-run/router v1.17.1
4
- *
5
- * Copyright (c) Remix Software Inc.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE.md file in the root directory of this source tree.
9
- *
10
- * @license MIT
11
- */function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},e.apply(this,arguments)}var t,a;function r(e,t){if(!1===e||null==e)throw new Error(t)}function n(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function s(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substr(a),e=e.substr(0,a));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function i(e,t){void 0===t&&(t="/");let{pathname:a,search:r="",hash:n=""}="string"==typeof e?s(e):e,i=a?a.startsWith("/")?a:function(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?a.length>1&&a.pop():"."!==e&&a.push(e)})),a.length>1?a.join("/"):"/"}(a,t):t;return{pathname:i,search:o(r),hash:l(n)}}function h(e,t,a,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+a+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}exports.Action=void 0,(t=exports.Action||(exports.Action={})).Pop="POP",t.Push="PUSH",t.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(a||(a={}));const o=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",l=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",p=["post","put","patch","delete"];new Set(p);const c=["get",...p];new Set(c),exports.UNSAFE_getResolveToMatches=function(e,t){let a=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?a.map(((e,t)=>t===a.length-1?e.pathname:e.pathnameBase)):a.map((e=>e.pathnameBase))},exports.UNSAFE_invariant=r,exports.UNSAFE_warning=n,exports.createPath=function(e){let{pathname:t="/",search:a="",hash:r=""}=e;return a&&"?"!==a&&(t+="?"===a.charAt(0)?a:"?"+a),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t},exports.joinPaths=e=>e.join("/").replace(/\/\/+/g,"/"),exports.matchPath=function(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[a,r]=function(e,t,a){void 0===t&&(t=!1);void 0===a&&(a=!0);n("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,a)=>(r.push({paramName:t,isOptional:null!=a}),a?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),s+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?s+="\\/*$":""!==e&&"/"!==e&&(s+="(?:(?=\\/|$))");let i=new RegExp(s,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),s=t.match(a);if(!s)return null;let i=s[0],h=i.replace(/(.)\/+$/,"$1"),o=s.slice(1);return{params:r.reduce(((e,t,a)=>{let{paramName:r,isOptional:n}=t;if("*"===r){let e=o[a]||"";h=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const s=o[a];return e[r]=n&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:h,pattern:e}},exports.parsePath=s,exports.resolvePath=i,exports.resolveTo=function(t,a,n,o){let l;void 0===o&&(o=!1),"string"==typeof t?l=s(t):(l=e({},t),r(!l.pathname||!l.pathname.includes("?"),h("?","pathname","search",l)),r(!l.pathname||!l.pathname.includes("#"),h("#","pathname","hash",l)),r(!l.search||!l.search.includes("#"),h("#","search","hash",l)));let p,c=""===t||""===l.pathname,u=c?"/":l.pathname;if(null==u)p=n;else{let e=a.length-1;if(!o&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;l.pathname=t.join("/")}p=e>=0?a[e]:"/"}let f=i(l,p),d=u&&"/"!==u&&u.endsWith("/"),m=(c||"."===u)&&n.endsWith("/");return f.pathname.endsWith("/")||!d&&!m||(f.pathname+="/"),f},exports.stripBasename=function(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,r=e.charAt(a);return r&&"/"!==r?null:e.slice(a)||"/"};
12
- //# sourceMappingURL=router.cjs.js.map