@onewelcome/react-lib-components 8.9.1 → 8.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (661) hide show
  1. package/dist/cjs/Breadcrumbs/Breadcrumbs.cjs.js +1 -1
  2. package/dist/cjs/Breadcrumbs/Breadcrumbs.cjs.js.map +1 -1
  3. package/dist/cjs/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +1 -1
  4. package/dist/cjs/Button/BaseButton.cjs.js.map +1 -1
  5. package/dist/cjs/Button/BaseButton.module.scss.cjs.js +1 -1
  6. package/dist/cjs/Button/Button.module.scss.cjs.js +1 -1
  7. package/dist/cjs/Button/IconButton.cjs.js +1 -1
  8. package/dist/cjs/Button/IconButton.cjs.js.map +1 -1
  9. package/dist/cjs/Button/IconButton.module.scss.cjs.js +1 -1
  10. package/dist/cjs/ContextMenu/ContextMenu.module.scss.cjs.js +1 -1
  11. package/dist/cjs/ContextMenu/ContextMenuItem.cjs.js +1 -1
  12. package/dist/cjs/ContextMenu/ContextMenuItem.cjs.js.map +1 -1
  13. package/dist/cjs/ContextMenu/ContextMenuItem.module.scss.cjs.js +1 -1
  14. package/dist/cjs/DataGrid/DataGrid.cjs.js.map +1 -1
  15. package/dist/cjs/DataGrid/DataGrid.module.scss.cjs.js +1 -1
  16. package/dist/cjs/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +1 -1
  17. package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +1 -1
  18. package/dist/cjs/DataGrid/DataGridBody/DataGridBody.cjs.js.map +1 -1
  19. package/dist/cjs/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +1 -1
  20. package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js +1 -1
  21. package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js.map +1 -1
  22. package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +1 -1
  23. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +1 -1
  24. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +1 -1
  25. package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js.map +1 -1
  26. package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +1 -1
  27. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +1 -1
  28. package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +1 -1
  29. package/dist/cjs/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +1 -1
  30. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.cjs.js +1 -1
  31. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.cjs.js.map +1 -1
  32. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +1 -1
  33. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +1 -1
  34. package/dist/cjs/DatePicker/DatePicker.cjs.js.map +1 -1
  35. package/dist/cjs/DatePicker/DatePicker.module.scss.cjs.js +1 -1
  36. package/dist/cjs/Form/Checkbox/Checkbox.module.scss.cjs.js +1 -1
  37. package/dist/cjs/Form/Fieldset/Fieldset.cjs.js.map +1 -1
  38. package/dist/cjs/Form/Fieldset/Fieldset.module.scss.cjs.js +1 -1
  39. package/dist/cjs/Form/FileUpload/FileItem/FileItem.cjs.js +1 -1
  40. package/dist/cjs/Form/FileUpload/FileItem/FileItem.cjs.js.map +1 -1
  41. package/dist/cjs/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +1 -1
  42. package/dist/cjs/Form/FileUpload/FileUpload.cjs.js +1 -1
  43. package/dist/cjs/Form/FileUpload/FileUpload.cjs.js.map +1 -1
  44. package/dist/cjs/Form/FileUpload/FileUpload.module.scss.cjs.js +1 -1
  45. package/dist/cjs/Form/Form.module.scss.cjs.js +1 -1
  46. package/dist/cjs/Form/FormControl/FormControl.module.scss.cjs.js +1 -1
  47. package/dist/cjs/Form/FormGroup/FormGroup.module.scss.cjs.js +1 -1
  48. package/dist/cjs/Form/FormHelperText/FormHelperText.module.scss.cjs.js +1 -1
  49. package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +1 -1
  50. package/dist/cjs/Form/Input/Input.module.scss.cjs.js +1 -1
  51. package/dist/cjs/Form/Label/Label.module.scss.cjs.js +1 -1
  52. package/dist/cjs/Form/Radio/Radio.cjs.js.map +1 -1
  53. package/dist/cjs/Form/Radio/Radio.module.scss.cjs.js +1 -1
  54. package/dist/cjs/Form/Select/MultiSelect/MultiOption.cjs.js +1 -1
  55. package/dist/cjs/Form/Select/MultiSelect/MultiOption.cjs.js.map +1 -1
  56. package/dist/cjs/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +1 -1
  57. package/dist/cjs/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +1 -1
  58. package/dist/cjs/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +1 -1
  59. package/dist/cjs/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
  60. package/dist/cjs/Form/Select/SingleSelect/Option.cjs.js +1 -1
  61. package/dist/cjs/Form/Select/SingleSelect/Option.cjs.js.map +1 -1
  62. package/dist/cjs/Form/Select/SingleSelect/Select.module.scss.cjs.js +1 -1
  63. package/dist/cjs/Form/Select/useAddNewBtn.module.scss.cjs.js +1 -1
  64. package/dist/cjs/Form/Textarea/Textarea.module.scss.cjs.js +1 -1
  65. package/dist/cjs/Form/Toggle/Toggle.module.scss.cjs.js +1 -1
  66. package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +1 -1
  67. package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +1 -1
  68. package/dist/cjs/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +1 -1
  69. package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +1 -1
  70. package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +1 -1
  71. package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +1 -1
  72. package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +1 -1
  73. package/dist/cjs/Icon/Icon.cjs.js +1 -1
  74. package/dist/cjs/Icon/Icon.cjs.js.map +1 -1
  75. package/dist/cjs/Icon/Icon.module.scss.cjs.js +1 -1
  76. package/dist/cjs/Layout/ContentHeader/ContentHeader.cjs.js +1 -1
  77. package/dist/cjs/Layout/ContentHeader/ContentHeader.cjs.js.map +1 -1
  78. package/dist/cjs/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +1 -1
  79. package/dist/cjs/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +1 -1
  80. package/dist/cjs/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +1 -1
  81. package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +1 -1
  82. package/dist/cjs/Link/Link.cjs.js.map +1 -1
  83. package/dist/cjs/Link/Link.module.scss.cjs.js +1 -1
  84. package/dist/cjs/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +1 -1
  85. package/dist/cjs/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +1 -1
  86. package/dist/cjs/Notifications/Banner/Banner.module.scss.cjs.js +1 -1
  87. package/dist/cjs/Notifications/BaseModal/BaseModal.module.scss.cjs.js +1 -1
  88. package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +1 -1
  89. package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +1 -1
  90. package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +1 -1
  91. package/dist/cjs/Notifications/Dialog/Dialog.module.scss.cjs.js +1 -1
  92. package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.cjs.js.map +1 -1
  93. package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +1 -1
  94. package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +1 -1
  95. package/dist/cjs/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js.map +1 -1
  96. package/dist/cjs/Notifications/SideSheet/SideSheet.module.scss.cjs.js +1 -1
  97. package/dist/cjs/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +1 -1
  98. package/dist/cjs/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +1 -1
  99. package/dist/cjs/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +1 -1
  100. package/dist/cjs/Pagination/Pagination.cjs.js.map +1 -1
  101. package/dist/cjs/Pagination/Pagination.module.scss.cjs.js +1 -1
  102. package/dist/cjs/Popover/Popover.module.scss.cjs.js +1 -1
  103. package/dist/cjs/ProgressBar/ProgressBar.module.scss.cjs.js +1 -1
  104. package/dist/cjs/Skeleton/Skeleton.module.scss.cjs.js +1 -1
  105. package/dist/cjs/Spinner/Spinner.module.scss.cjs.js +1 -1
  106. package/dist/cjs/Stepper/Step.module.scss.cjs.js +1 -1
  107. package/dist/cjs/Stepper/Stepper.module.scss.cjs.js +1 -1
  108. package/dist/cjs/Tabs/Tab.cjs.js.map +1 -1
  109. package/dist/cjs/Tabs/Tab.module.scss.cjs.js +1 -1
  110. package/dist/cjs/Tabs/TabButton.cjs.js +1 -1
  111. package/dist/cjs/Tabs/TabButton.cjs.js.map +1 -1
  112. package/dist/cjs/Tabs/TabButton.module.scss.cjs.js +1 -1
  113. package/dist/cjs/Tabs/Tabs.cjs.js.map +1 -1
  114. package/dist/cjs/Tabs/Tabs.module.scss.cjs.js +1 -1
  115. package/dist/cjs/Tag/RemoveButton.module.scss.cjs.js +1 -1
  116. package/dist/cjs/Tag/Tag.cjs.js.map +1 -1
  117. package/dist/cjs/Tag/Tag.module.scss.cjs.js +1 -1
  118. package/dist/cjs/TextEllipsis/TextEllipsis.module.scss.cjs.js +1 -1
  119. package/dist/cjs/Tiles/Tile.module.scss.cjs.js +1 -1
  120. package/dist/cjs/Tiles/Tiles.module.scss.cjs.js +1 -1
  121. package/dist/cjs/Tooltip/Tooltip.cjs.js.map +1 -1
  122. package/dist/cjs/Tooltip/Tooltip.module.scss.cjs.js +1 -1
  123. package/dist/cjs/Typography/Typography.cjs.js +1 -1
  124. package/dist/cjs/Typography/Typography.cjs.js.map +1 -1
  125. package/dist/cjs/Typography/Typography.module.scss.cjs.js +1 -1
  126. package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js +1 -1
  127. package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
  128. package/dist/cjs/admin/layout/LeftNav/LeftNav.cjs.js +2 -0
  129. package/dist/cjs/admin/layout/LeftNav/LeftNav.cjs.js.map +1 -0
  130. package/dist/cjs/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -0
  131. package/dist/cjs/admin/layout/LeftNav/LeftNav.module.scss.cjs.js.map +1 -0
  132. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js +2 -0
  133. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js.map +1 -0
  134. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LeftNavItem.cjs.js +2 -0
  135. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LeftNavItem.cjs.js.map +1 -0
  136. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -0
  137. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js.map +1 -0
  138. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js +2 -0
  139. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js.map +1 -0
  140. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.cjs.js +2 -0
  141. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.cjs.js.map +1 -0
  142. package/dist/cjs/admin/layout/LeftNav/useRefItems.cjs.js +2 -0
  143. package/dist/cjs/admin/layout/LeftNav/useRefItems.cjs.js.map +1 -0
  144. package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +1 -1
  145. package/dist/cjs/miscellaneous/IdentityProviderButton.cjs.js +1 -1
  146. package/dist/cjs/miscellaneous/IdentityProviderButton.cjs.js.map +1 -1
  147. package/dist/cjs/miscellaneous/IdentityProviderButton.module.scss.cjs.js +1 -1
  148. package/dist/cjs/node_modules/@remix-run/router/dist/router.cjs.js +12 -0
  149. package/dist/cjs/node_modules/@remix-run/router/dist/router.cjs.js.map +1 -0
  150. package/dist/cjs/node_modules/react-router/dist/index.cjs.js +12 -0
  151. package/dist/cjs/node_modules/react-router/dist/index.cjs.js.map +1 -0
  152. package/dist/cjs/node_modules/react-router-dom/dist/index.cjs.js +12 -0
  153. package/dist/cjs/node_modules/react-router-dom/dist/index.cjs.js.map +1 -0
  154. package/dist/cjs/src/components/DataGrid/DataGrid.d.ts +1 -1
  155. package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridBody.d.ts +1 -1
  156. package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.d.ts +1 -1
  157. package/dist/cjs/src/components/Form/Checkbox/Checkbox.d.ts +1 -1
  158. package/dist/cjs/src/components/Form/Fieldset/Fieldset.d.ts +1 -1
  159. package/dist/cjs/src/components/Form/FileUpload/FileItem/FileItem.d.ts +1 -1
  160. package/dist/cjs/src/components/Form/FileUpload/FileUpload.d.ts +1 -1
  161. package/dist/cjs/src/components/Form/Input/Input.d.ts +1 -1
  162. package/dist/cjs/src/components/Form/Radio/Radio.d.ts +1 -1
  163. package/dist/cjs/src/components/Form/Select/MultiSelect/MultiSelect.d.ts +1 -1
  164. package/dist/cjs/src/components/Form/Select/SingleSelect/Select.d.ts +1 -1
  165. package/dist/cjs/src/components/Form/Textarea/Textarea.d.ts +1 -1
  166. package/dist/cjs/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.d.ts +1 -1
  167. package/dist/cjs/src/components/Form/Wrapper/InputWrapper/InputWrapper.d.ts +1 -1
  168. package/dist/cjs/src/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.d.ts +1 -1
  169. package/dist/cjs/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.d.ts +1 -1
  170. package/dist/cjs/src/components/Form/Wrapper/SelectWrapper/SelectWrapper.d.ts +1 -1
  171. package/dist/cjs/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.d.ts +1 -1
  172. package/dist/cjs/src/components/Icon/Icon.d.ts +1 -0
  173. package/dist/cjs/src/components/Layout/ContentHeader/ContentHeader.d.ts +16 -2
  174. package/dist/cjs/src/components/Typography/Typography.d.ts +1 -1
  175. package/dist/cjs/src/components/_BaseStyling_/BaseStyling.d.ts +10 -2
  176. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNav.d.ts +10 -0
  177. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNav.interfaces.d.ts +13 -0
  178. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNav.test.d.ts +1 -0
  179. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.d.ts +13 -0
  180. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.d.ts +3 -0
  181. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.d.ts +10 -0
  182. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.test.d.ts +1 -0
  183. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.d.ts +10 -0
  184. package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.d.ts +12 -0
  185. package/dist/cjs/src/components/admin/layout/LeftNav/useRefItems.d.ts +22 -0
  186. package/dist/cjs/src/components/admin/layout/LeftNav/useRefItems.test.d.ts +1 -0
  187. package/dist/cjs/src/components/miscellaneous/IdentityProviderButton.d.ts +1 -0
  188. package/dist/cjs/src/components/withReadOnly.d.ts +1 -1
  189. package/dist/cjs/src/hooks/useDebouncedCallback.cjs.js.map +1 -1
  190. package/dist/cjs/src/hooks/useRepeatFocus.cjs.js.map +1 -1
  191. package/dist/cjs/src/index.cjs.js +1 -1
  192. package/dist/cjs/src/index.d.ts +3 -1
  193. package/dist/cjs/src/readyclasses.module.scss.cjs.js +1 -1
  194. package/dist/cjs/src/util/helper.cjs.js +1 -1
  195. package/dist/cjs/src/util/helper.cjs.js.map +1 -1
  196. package/dist/cjs/src/util/helper.d.ts +1 -2
  197. package/dist/cjs/withReadOnly.cjs.js.map +1 -1
  198. package/dist/esm/Breadcrumbs/Breadcrumbs.esm.js +9 -9
  199. package/dist/esm/Breadcrumbs/Breadcrumbs.esm.js.map +1 -1
  200. package/dist/esm/Breadcrumbs/Breadcrumbs.module.scss.esm.js +2 -2
  201. package/dist/esm/Button/BaseButton.esm.js +7 -6
  202. package/dist/esm/Button/BaseButton.esm.js.map +1 -1
  203. package/dist/esm/Button/BaseButton.module.scss.esm.js +2 -2
  204. package/dist/esm/Button/Button.esm.js +6 -6
  205. package/dist/esm/Button/Button.esm.js.map +1 -1
  206. package/dist/esm/Button/Button.module.scss.esm.js +2 -2
  207. package/dist/esm/Button/IconButton.esm.js +6 -9
  208. package/dist/esm/Button/IconButton.esm.js.map +1 -1
  209. package/dist/esm/Button/IconButton.module.scss.esm.js +2 -2
  210. package/dist/esm/Button/Spinner.esm.js +3 -3
  211. package/dist/esm/Button/Spinner.esm.js.map +1 -1
  212. package/dist/esm/ContextMenu/ContextMenu.esm.js +10 -10
  213. package/dist/esm/ContextMenu/ContextMenu.esm.js.map +1 -1
  214. package/dist/esm/ContextMenu/ContextMenu.module.scss.esm.js +2 -2
  215. package/dist/esm/ContextMenu/ContextMenuItem.esm.js +5 -5
  216. package/dist/esm/ContextMenu/ContextMenuItem.esm.js.map +1 -1
  217. package/dist/esm/ContextMenu/ContextMenuItem.module.scss.esm.js +2 -2
  218. package/dist/esm/DataGrid/DataGrid.esm.js +11 -11
  219. package/dist/esm/DataGrid/DataGrid.esm.js.map +1 -1
  220. package/dist/esm/DataGrid/DataGrid.module.scss.esm.js +2 -2
  221. package/dist/esm/DataGrid/DataGridActions/DataGridActions.esm.js +14 -14
  222. package/dist/esm/DataGrid/DataGridActions/DataGridActions.esm.js.map +1 -1
  223. package/dist/esm/DataGrid/DataGridActions/DataGridActions.module.scss.esm.js +2 -2
  224. package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.esm.js +11 -11
  225. package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.esm.js.map +1 -1
  226. package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.esm.js +2 -2
  227. package/dist/esm/DataGrid/DataGridBody/DataGridBody.esm.js +10 -10
  228. package/dist/esm/DataGrid/DataGridBody/DataGridBody.esm.js.map +1 -1
  229. package/dist/esm/DataGrid/DataGridBody/DataGridBody.module.scss.esm.js +2 -2
  230. package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.esm.js +13 -12
  231. package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.esm.js.map +1 -1
  232. package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.esm.js +2 -2
  233. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.esm.js +4 -4
  234. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.esm.js.map +1 -1
  235. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.esm.js +2 -2
  236. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.esm.js +6 -6
  237. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.esm.js.map +1 -1
  238. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.esm.js +2 -2
  239. package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.esm.js +15 -15
  240. package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.esm.js.map +1 -1
  241. package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.esm.js +2 -2
  242. package/dist/esm/DataGrid/DataGridBody/DataGridRow/useNestedRow.esm.js +4 -4
  243. package/dist/esm/DataGrid/DataGridBody/DataGridRow/useNestedRow.esm.js.map +1 -1
  244. package/dist/esm/DataGrid/DataGridFilters/DataGridDateFilter.esm.js +4 -4
  245. package/dist/esm/DataGrid/DataGridFilters/DataGridDateFilter.esm.js.map +1 -1
  246. package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.esm.js +4 -4
  247. package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.esm.js.map +1 -1
  248. package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.module.scss.esm.js +2 -2
  249. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterPopover.esm.js +12 -12
  250. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterPopover.esm.js.map +1 -1
  251. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterTag.esm.js +17 -17
  252. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterTag.esm.js.map +1 -1
  253. package/dist/esm/DataGrid/DataGridFilters/DataGridSearchbar.esm.js +3 -3
  254. package/dist/esm/DataGrid/DataGridFilters/DataGridSearchbar.esm.js.map +1 -1
  255. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.esm.js +8 -8
  256. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.esm.js.map +1 -1
  257. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.module.scss.esm.js +2 -2
  258. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbarWrapper.esm.js +5 -5
  259. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbarWrapper.esm.js.map +1 -1
  260. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.esm.js +13 -13
  261. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.esm.js.map +1 -1
  262. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.esm.js +2 -2
  263. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.esm.js +8 -8
  264. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.esm.js.map +1 -1
  265. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.esm.js +4 -4
  266. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.esm.js.map +1 -1
  267. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/SideMenu.esm.js +3 -3
  268. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/SideMenu.esm.js.map +1 -1
  269. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.esm.js +8 -8
  270. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.esm.js.map +1 -1
  271. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.module.scss.esm.js +2 -2
  272. package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.esm.js +7 -7
  273. package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.esm.js.map +1 -1
  274. package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.esm.js +2 -2
  275. package/dist/esm/DatePicker/DatePicker.esm.js +3 -3
  276. package/dist/esm/DatePicker/DatePicker.esm.js.map +1 -1
  277. package/dist/esm/DatePicker/DatePicker.module.scss.esm.js +2 -2
  278. package/dist/esm/Form/Checkbox/Checkbox.esm.js +12 -12
  279. package/dist/esm/Form/Checkbox/Checkbox.esm.js.map +1 -1
  280. package/dist/esm/Form/Checkbox/Checkbox.module.scss.esm.js +2 -2
  281. package/dist/esm/Form/Fieldset/Fieldset.esm.js +11 -10
  282. package/dist/esm/Form/Fieldset/Fieldset.esm.js.map +1 -1
  283. package/dist/esm/Form/Fieldset/Fieldset.module.scss.esm.js +2 -2
  284. package/dist/esm/Form/FileUpload/FileItem/FileItem.esm.js +18 -18
  285. package/dist/esm/Form/FileUpload/FileItem/FileItem.esm.js.map +1 -1
  286. package/dist/esm/Form/FileUpload/FileItem/FileItem.module.scss.esm.js +2 -2
  287. package/dist/esm/Form/FileUpload/FileUpload.esm.js +22 -22
  288. package/dist/esm/Form/FileUpload/FileUpload.esm.js.map +1 -1
  289. package/dist/esm/Form/FileUpload/FileUpload.module.scss.esm.js +2 -2
  290. package/dist/esm/Form/Form.esm.js +3 -3
  291. package/dist/esm/Form/Form.esm.js.map +1 -1
  292. package/dist/esm/Form/Form.module.scss.esm.js +2 -2
  293. package/dist/esm/Form/FormControl/FormControl.esm.js +6 -6
  294. package/dist/esm/Form/FormControl/FormControl.esm.js.map +1 -1
  295. package/dist/esm/Form/FormControl/FormControl.module.scss.esm.js +2 -2
  296. package/dist/esm/Form/FormGroup/FormGroup.esm.js +9 -9
  297. package/dist/esm/Form/FormGroup/FormGroup.esm.js.map +1 -1
  298. package/dist/esm/Form/FormGroup/FormGroup.module.scss.esm.js +2 -2
  299. package/dist/esm/Form/FormHelperText/FormHelperText.esm.js +3 -3
  300. package/dist/esm/Form/FormHelperText/FormHelperText.esm.js.map +1 -1
  301. package/dist/esm/Form/FormHelperText/FormHelperText.module.scss.esm.js +2 -2
  302. package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.esm.js +5 -5
  303. package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.esm.js.map +1 -1
  304. package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.esm.js +2 -2
  305. package/dist/esm/Form/Input/Input.esm.js +8 -8
  306. package/dist/esm/Form/Input/Input.esm.js.map +1 -1
  307. package/dist/esm/Form/Input/Input.module.scss.esm.js +2 -2
  308. package/dist/esm/Form/Label/Label.esm.js +3 -3
  309. package/dist/esm/Form/Label/Label.esm.js.map +1 -1
  310. package/dist/esm/Form/Label/Label.module.scss.esm.js +2 -2
  311. package/dist/esm/Form/Radio/Radio.esm.js +8 -7
  312. package/dist/esm/Form/Radio/Radio.esm.js.map +1 -1
  313. package/dist/esm/Form/Radio/Radio.module.scss.esm.js +2 -2
  314. package/dist/esm/Form/Select/MultiSelect/MultiOption.esm.js +4 -4
  315. package/dist/esm/Form/Select/MultiSelect/MultiOption.esm.js.map +1 -1
  316. package/dist/esm/Form/Select/MultiSelect/MultiSelect.esm.js +24 -24
  317. package/dist/esm/Form/Select/MultiSelect/MultiSelect.esm.js.map +1 -1
  318. package/dist/esm/Form/Select/MultiSelect/MultiSelect.module.scss.esm.js +2 -2
  319. package/dist/esm/Form/Select/MultiSelect/SelectButton.esm.js +3 -3
  320. package/dist/esm/Form/Select/MultiSelect/SelectButton.esm.js.map +1 -1
  321. package/dist/esm/Form/Select/MultiSelect/SelectButton.module.scss.esm.js +2 -2
  322. package/dist/esm/Form/Select/MultiSelect/SelectedOptions.esm.js +3 -3
  323. package/dist/esm/Form/Select/MultiSelect/SelectedOptions.esm.js.map +1 -1
  324. package/dist/esm/Form/Select/MultiSelect/SelectedOptions.module.scss.esm.js +2 -2
  325. package/dist/esm/Form/Select/MultiSelect/useMultiSelect.esm.js +2 -2
  326. package/dist/esm/Form/Select/MultiSelect/useMultiSelect.esm.js.map +1 -1
  327. package/dist/esm/Form/Select/MultiSelect/useSearch.esm.js +2 -2
  328. package/dist/esm/Form/Select/MultiSelect/useSearch.esm.js.map +1 -1
  329. package/dist/esm/Form/Select/SingleSelect/Option.esm.js +4 -4
  330. package/dist/esm/Form/Select/SingleSelect/Option.esm.js.map +1 -1
  331. package/dist/esm/Form/Select/SingleSelect/Select.esm.js +22 -22
  332. package/dist/esm/Form/Select/SingleSelect/Select.esm.js.map +1 -1
  333. package/dist/esm/Form/Select/SingleSelect/Select.module.scss.esm.js +2 -2
  334. package/dist/esm/Form/Select/SingleSelect/useSearch.esm.js +2 -2
  335. package/dist/esm/Form/Select/SingleSelect/useSearch.esm.js.map +1 -1
  336. package/dist/esm/Form/Select/useAddNewBtn.esm.js +3 -3
  337. package/dist/esm/Form/Select/useAddNewBtn.esm.js.map +1 -1
  338. package/dist/esm/Form/Select/useAddNewBtn.module.scss.esm.js +2 -2
  339. package/dist/esm/Form/Textarea/Textarea.esm.js +6 -6
  340. package/dist/esm/Form/Textarea/Textarea.esm.js.map +1 -1
  341. package/dist/esm/Form/Textarea/Textarea.module.scss.esm.js +2 -2
  342. package/dist/esm/Form/Toggle/Toggle.esm.js +5 -5
  343. package/dist/esm/Form/Toggle/Toggle.esm.js.map +1 -1
  344. package/dist/esm/Form/Toggle/Toggle.module.scss.esm.js +2 -2
  345. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js +5 -5
  346. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js.map +1 -1
  347. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.esm.js +2 -2
  348. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.esm.js +4 -4
  349. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.esm.js.map +1 -1
  350. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.module.scss.esm.js +2 -2
  351. package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.esm.js +4 -4
  352. package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.esm.js.map +1 -1
  353. package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.esm.js +2 -2
  354. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js +6 -6
  355. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js.map +1 -1
  356. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.esm.js +2 -2
  357. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.esm.js +4 -4
  358. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.esm.js.map +1 -1
  359. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.esm.js +2 -2
  360. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.esm.js +5 -5
  361. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.esm.js.map +1 -1
  362. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.esm.js +2 -2
  363. package/dist/esm/Form/Wrapper/Wrapper/Wrapper.esm.js +7 -7
  364. package/dist/esm/Form/Wrapper/Wrapper/Wrapper.esm.js.map +1 -1
  365. package/dist/esm/Form/Wrapper/Wrapper/Wrapper.module.scss.esm.js +2 -2
  366. package/dist/esm/Icon/Icon.esm.js +4 -3
  367. package/dist/esm/Icon/Icon.esm.js.map +1 -1
  368. package/dist/esm/Icon/Icon.module.scss.esm.js +2 -2
  369. package/dist/esm/Layout/ContentHeader/ContentHeader.esm.js +37 -9
  370. package/dist/esm/Layout/ContentHeader/ContentHeader.esm.js.map +1 -1
  371. package/dist/esm/Layout/ContentHeader/ContentHeader.module.scss.esm.js +2 -2
  372. package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.esm.js +6 -6
  373. package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.esm.js.map +1 -1
  374. package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.esm.js +2 -2
  375. package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.esm.js +3 -3
  376. package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.esm.js.map +1 -1
  377. package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.esm.js +2 -2
  378. package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.esm.js +3 -3
  379. package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.esm.js.map +1 -1
  380. package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.esm.js +2 -2
  381. package/dist/esm/Link/Link.esm.js +5 -5
  382. package/dist/esm/Link/Link.esm.js.map +1 -1
  383. package/dist/esm/Link/Link.module.scss.esm.js +2 -2
  384. package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.esm.js +2 -2
  385. package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.esm.js.map +1 -1
  386. package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.module.scss.esm.js +2 -2
  387. package/dist/esm/Notifications/Alert/AlertItem/AlertItem.esm.js +11 -11
  388. package/dist/esm/Notifications/Alert/AlertItem/AlertItem.esm.js.map +1 -1
  389. package/dist/esm/Notifications/Alert/AlertItem/AlertItem.module.scss.esm.js +2 -2
  390. package/dist/esm/Notifications/Alert/AlertProvider/AlertProvider.esm.js +4 -4
  391. package/dist/esm/Notifications/Alert/AlertProvider/AlertProvider.esm.js.map +1 -1
  392. package/dist/esm/Notifications/Banner/Banner.esm.js +7 -7
  393. package/dist/esm/Notifications/Banner/Banner.esm.js.map +1 -1
  394. package/dist/esm/Notifications/Banner/Banner.module.scss.esm.js +2 -2
  395. package/dist/esm/Notifications/BaseModal/BaseModal.esm.js +8 -8
  396. package/dist/esm/Notifications/BaseModal/BaseModal.esm.js.map +1 -1
  397. package/dist/esm/Notifications/BaseModal/BaseModal.module.scss.esm.js +2 -2
  398. package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.esm.js +7 -7
  399. package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.esm.js.map +1 -1
  400. package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.esm.js +2 -2
  401. package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.esm.js +3 -3
  402. package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.esm.js.map +1 -1
  403. package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.esm.js +2 -2
  404. package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.esm.js +9 -9
  405. package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.esm.js.map +1 -1
  406. package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.esm.js +2 -2
  407. package/dist/esm/Notifications/Dialog/Dialog.esm.js +9 -9
  408. package/dist/esm/Notifications/Dialog/Dialog.esm.js.map +1 -1
  409. package/dist/esm/Notifications/Dialog/Dialog.module.scss.esm.js +2 -2
  410. package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.esm.js +3 -3
  411. package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.esm.js.map +1 -1
  412. package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.module.scss.esm.js +2 -2
  413. package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.esm.js +10 -10
  414. package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.esm.js.map +1 -1
  415. package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.esm.js +2 -2
  416. package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.esm.js +4 -4
  417. package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.esm.js.map +1 -1
  418. package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesModal.esm.js +5 -5
  419. package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesModal.esm.js.map +1 -1
  420. package/dist/esm/Notifications/NotificationProvider/NotificationContext.esm.js +3 -3
  421. package/dist/esm/Notifications/NotificationProvider/NotificationContext.esm.js.map +1 -1
  422. package/dist/esm/Notifications/SideSheet/SideSheet.esm.js +11 -11
  423. package/dist/esm/Notifications/SideSheet/SideSheet.esm.js.map +1 -1
  424. package/dist/esm/Notifications/SideSheet/SideSheet.module.scss.esm.js +2 -2
  425. package/dist/esm/Notifications/SideSheet/SideSheetContent/SideSheetContent.esm.js +2 -2
  426. package/dist/esm/Notifications/SideSheet/SideSheetContent/SideSheetContent.esm.js.map +1 -1
  427. package/dist/esm/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.esm.js +2 -2
  428. package/dist/esm/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.esm.js +2 -2
  429. package/dist/esm/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.esm.js.map +1 -1
  430. package/dist/esm/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.esm.js +2 -2
  431. package/dist/esm/Notifications/SlideInModal/SlideInModal.esm.js +3 -3
  432. package/dist/esm/Notifications/SlideInModal/SlideInModal.esm.js.map +1 -1
  433. package/dist/esm/Notifications/SlideInModal/SlideInModal.module.scss.esm.js +2 -2
  434. package/dist/esm/Pagination/Pagination.esm.js +31 -30
  435. package/dist/esm/Pagination/Pagination.esm.js.map +1 -1
  436. package/dist/esm/Pagination/Pagination.module.scss.esm.js +2 -2
  437. package/dist/esm/Popover/Popover.esm.js +4 -4
  438. package/dist/esm/Popover/Popover.esm.js.map +1 -1
  439. package/dist/esm/Popover/Popover.module.scss.esm.js +2 -2
  440. package/dist/esm/ProgressBar/ProgressBar.esm.js +10 -10
  441. package/dist/esm/ProgressBar/ProgressBar.esm.js.map +1 -1
  442. package/dist/esm/ProgressBar/ProgressBar.module.scss.esm.js +2 -2
  443. package/dist/esm/Skeleton/Skeleton.esm.js +3 -3
  444. package/dist/esm/Skeleton/Skeleton.esm.js.map +1 -1
  445. package/dist/esm/Skeleton/Skeleton.module.scss.esm.js +2 -2
  446. package/dist/esm/Spinner/Spinner.esm.js +4 -4
  447. package/dist/esm/Spinner/Spinner.esm.js.map +1 -1
  448. package/dist/esm/Spinner/Spinner.module.scss.esm.js +2 -2
  449. package/dist/esm/Stepper/Step.esm.js +10 -10
  450. package/dist/esm/Stepper/Step.esm.js.map +1 -1
  451. package/dist/esm/Stepper/Step.module.scss.esm.js +2 -2
  452. package/dist/esm/Stepper/Stepper.esm.js +2 -2
  453. package/dist/esm/Stepper/Stepper.esm.js.map +1 -1
  454. package/dist/esm/Stepper/Stepper.module.scss.esm.js +2 -2
  455. package/dist/esm/Tabs/Tab.esm.js +2 -2
  456. package/dist/esm/Tabs/Tab.esm.js.map +1 -1
  457. package/dist/esm/Tabs/Tab.module.scss.esm.js +2 -2
  458. package/dist/esm/Tabs/TabButton.esm.js +5 -5
  459. package/dist/esm/Tabs/TabButton.esm.js.map +1 -1
  460. package/dist/esm/Tabs/TabButton.module.scss.esm.js +2 -2
  461. package/dist/esm/Tabs/Tabs.esm.js +14 -12
  462. package/dist/esm/Tabs/Tabs.esm.js.map +1 -1
  463. package/dist/esm/Tabs/Tabs.module.scss.esm.js +2 -2
  464. package/dist/esm/Tag/RemoveButton.esm.js +4 -4
  465. package/dist/esm/Tag/RemoveButton.esm.js.map +1 -1
  466. package/dist/esm/Tag/RemoveButton.module.scss.esm.js +2 -2
  467. package/dist/esm/Tag/Tag.esm.js +7 -7
  468. package/dist/esm/Tag/Tag.esm.js.map +1 -1
  469. package/dist/esm/Tag/Tag.module.scss.esm.js +2 -2
  470. package/dist/esm/TextEllipsis/TextEllipsis.esm.js +4 -4
  471. package/dist/esm/TextEllipsis/TextEllipsis.esm.js.map +1 -1
  472. package/dist/esm/TextEllipsis/TextEllipsis.module.scss.esm.js +2 -2
  473. package/dist/esm/Tiles/Tile.esm.js +11 -11
  474. package/dist/esm/Tiles/Tile.esm.js.map +1 -1
  475. package/dist/esm/Tiles/Tile.module.scss.esm.js +2 -2
  476. package/dist/esm/Tiles/Tiles.esm.js +6 -6
  477. package/dist/esm/Tiles/Tiles.esm.js.map +1 -1
  478. package/dist/esm/Tiles/Tiles.module.scss.esm.js +2 -2
  479. package/dist/esm/Tooltip/Tooltip.esm.js +12 -11
  480. package/dist/esm/Tooltip/Tooltip.esm.js.map +1 -1
  481. package/dist/esm/Tooltip/Tooltip.module.scss.esm.js +2 -2
  482. package/dist/esm/Typography/Typography.esm.js +4 -4
  483. package/dist/esm/Typography/Typography.esm.js.map +1 -1
  484. package/dist/esm/Typography/Typography.module.scss.esm.js +2 -2
  485. package/dist/esm/_BaseStyling_/BaseStyling.esm.js +17 -8
  486. package/dist/esm/_BaseStyling_/BaseStyling.esm.js.map +1 -1
  487. package/dist/esm/admin/layout/LeftNav/LeftNav.esm.js +41 -0
  488. package/dist/esm/admin/layout/LeftNav/LeftNav.esm.js.map +1 -0
  489. package/dist/esm/admin/layout/LeftNav/LeftNav.module.scss.esm.js +8 -0
  490. package/dist/esm/admin/layout/LeftNav/LeftNav.module.scss.esm.js.map +1 -0
  491. package/dist/esm/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.esm.js +74 -0
  492. package/dist/esm/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.esm.js.map +1 -0
  493. package/dist/esm/admin/layout/LeftNav/LeftNavItem/LeftNavItem.esm.js +28 -0
  494. package/dist/esm/admin/layout/LeftNav/LeftNavItem/LeftNavItem.esm.js.map +1 -0
  495. package/dist/esm/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.esm.js +8 -0
  496. package/dist/esm/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.esm.js.map +1 -0
  497. package/dist/esm/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.esm.js +59 -0
  498. package/dist/esm/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.esm.js.map +1 -0
  499. package/dist/esm/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.esm.js +56 -0
  500. package/dist/esm/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.esm.js.map +1 -0
  501. package/dist/esm/admin/layout/LeftNav/useRefItems.esm.js +236 -0
  502. package/dist/esm/admin/layout/LeftNav/useRefItems.esm.js.map +1 -0
  503. package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.esm.js +4 -4
  504. package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.esm.js.map +1 -1
  505. package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.esm.js +2 -2
  506. package/dist/esm/miscellaneous/IdentityProviderButton.esm.js +5 -5
  507. package/dist/esm/miscellaneous/IdentityProviderButton.esm.js.map +1 -1
  508. package/dist/esm/miscellaneous/IdentityProviderButton.module.scss.esm.js +2 -2
  509. package/dist/esm/node_modules/@remix-run/router/dist/router.esm.js +373 -0
  510. package/dist/esm/node_modules/@remix-run/router/dist/router.esm.js.map +1 -0
  511. package/dist/esm/node_modules/react-router/dist/index.esm.js +328 -0
  512. package/dist/esm/node_modules/react-router/dist/index.esm.js.map +1 -0
  513. package/dist/esm/node_modules/react-router-dom/dist/index.esm.js +609 -0
  514. package/dist/esm/node_modules/react-router-dom/dist/index.esm.js.map +1 -0
  515. package/dist/esm/src/components/DataGrid/DataGrid.d.ts +1 -1
  516. package/dist/esm/src/components/DataGrid/DataGridBody/DataGridBody.d.ts +1 -1
  517. package/dist/esm/src/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.d.ts +1 -1
  518. package/dist/esm/src/components/Form/Checkbox/Checkbox.d.ts +1 -1
  519. package/dist/esm/src/components/Form/Fieldset/Fieldset.d.ts +1 -1
  520. package/dist/esm/src/components/Form/FileUpload/FileItem/FileItem.d.ts +1 -1
  521. package/dist/esm/src/components/Form/FileUpload/FileUpload.d.ts +1 -1
  522. package/dist/esm/src/components/Form/Input/Input.d.ts +1 -1
  523. package/dist/esm/src/components/Form/Radio/Radio.d.ts +1 -1
  524. package/dist/esm/src/components/Form/Select/MultiSelect/MultiSelect.d.ts +1 -1
  525. package/dist/esm/src/components/Form/Select/SingleSelect/Select.d.ts +1 -1
  526. package/dist/esm/src/components/Form/Textarea/Textarea.d.ts +1 -1
  527. package/dist/esm/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.d.ts +1 -1
  528. package/dist/esm/src/components/Form/Wrapper/InputWrapper/InputWrapper.d.ts +1 -1
  529. package/dist/esm/src/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.d.ts +1 -1
  530. package/dist/esm/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.d.ts +1 -1
  531. package/dist/esm/src/components/Form/Wrapper/SelectWrapper/SelectWrapper.d.ts +1 -1
  532. package/dist/esm/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.d.ts +1 -1
  533. package/dist/esm/src/components/Icon/Icon.d.ts +1 -0
  534. package/dist/esm/src/components/Layout/ContentHeader/ContentHeader.d.ts +16 -2
  535. package/dist/esm/src/components/Typography/Typography.d.ts +1 -1
  536. package/dist/esm/src/components/_BaseStyling_/BaseStyling.d.ts +10 -2
  537. package/dist/esm/src/components/admin/layout/LeftNav/LeftNav.d.ts +10 -0
  538. package/dist/esm/src/components/admin/layout/LeftNav/LeftNav.interfaces.d.ts +13 -0
  539. package/dist/esm/src/components/admin/layout/LeftNav/LeftNav.test.d.ts +1 -0
  540. package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.d.ts +13 -0
  541. package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.d.ts +3 -0
  542. package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.d.ts +10 -0
  543. package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.test.d.ts +1 -0
  544. package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.d.ts +10 -0
  545. package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.d.ts +12 -0
  546. package/dist/esm/src/components/admin/layout/LeftNav/useRefItems.d.ts +22 -0
  547. package/dist/esm/src/components/admin/layout/LeftNav/useRefItems.test.d.ts +1 -0
  548. package/dist/esm/src/components/miscellaneous/IdentityProviderButton.d.ts +1 -0
  549. package/dist/esm/src/components/withReadOnly.d.ts +1 -1
  550. package/dist/esm/src/hooks/useDebouncedCallback.esm.js +5 -3
  551. package/dist/esm/src/hooks/useDebouncedCallback.esm.js.map +1 -1
  552. package/dist/esm/src/hooks/useDetermineStatusIcon.esm.js +3 -3
  553. package/dist/esm/src/hooks/useDetermineStatusIcon.esm.js.map +1 -1
  554. package/dist/esm/src/hooks/useRepeatFocus.esm.js +6 -3
  555. package/dist/esm/src/hooks/useRepeatFocus.esm.js.map +1 -1
  556. package/dist/esm/src/hooks/useRepeater.esm.js +2 -2
  557. package/dist/esm/src/hooks/useRepeater.esm.js.map +1 -1
  558. package/dist/esm/src/index.d.ts +3 -1
  559. package/dist/esm/src/index.esm.js +1 -0
  560. package/dist/esm/src/index.esm.js.map +1 -1
  561. package/dist/esm/src/readyclasses.module.scss.esm.js +2 -2
  562. package/dist/esm/src/util/helper.d.ts +1 -2
  563. package/dist/esm/src/util/helper.esm.js +7 -6
  564. package/dist/esm/src/util/helper.esm.js.map +1 -1
  565. package/dist/esm/withReadOnly.esm.js +3 -3
  566. package/dist/esm/withReadOnly.esm.js.map +1 -1
  567. package/package.json +12 -12
  568. package/src/_functions.scss +19 -0
  569. package/src/components/Breadcrumbs/Breadcrumbs.module.scss +1 -1
  570. package/src/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
  571. package/src/components/Button/BaseButton.tsx +2 -1
  572. package/src/components/Button/Button.module.scss +3 -2
  573. package/src/components/Button/IconButton.module.scss +10 -9
  574. package/src/components/Button/IconButton.tsx +9 -5
  575. package/src/components/ContextMenu/ContextMenuItem.module.scss +2 -2
  576. package/src/components/ContextMenu/ContextMenuItem.tsx +1 -1
  577. package/src/components/DataGrid/DataGrid.tsx +2 -2
  578. package/src/components/DataGrid/DataGridBody/DataGridBody.tsx +2 -2
  579. package/src/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.tsx +4 -2
  580. package/src/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss +3 -2
  581. package/src/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.tsx +1 -1
  582. package/src/components/DataGrid/DataGridFilters/DataGridFilter.module.scss +2 -1
  583. package/src/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss +9 -7
  584. package/src/components/DataGrid/DataGridHeader/DataGridHeader.tsx +1 -1
  585. package/src/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss +1 -1
  586. package/src/components/DatePicker/DatePicker.module.scss +10 -6
  587. package/src/components/DatePicker/DatePicker.tsx +2 -1
  588. package/src/components/Form/Checkbox/Checkbox.module.scss +9 -6
  589. package/src/components/Form/Fieldset/Fieldset.tsx +4 -3
  590. package/src/components/Form/FileUpload/FileItem/FileItem.module.scss +7 -7
  591. package/src/components/Form/FileUpload/FileItem/FileItem.tsx +1 -1
  592. package/src/components/Form/FileUpload/FileUpload.module.scss +2 -2
  593. package/src/components/Form/FileUpload/FileUpload.tsx +6 -5
  594. package/src/components/Form/FormGroup/FormGroup.module.scss +2 -2
  595. package/src/components/Form/FormSection/FormSection.module.scss +1 -1
  596. package/src/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss +3 -1
  597. package/src/components/Form/Input/Input.module.scss +5 -4
  598. package/src/components/Form/Radio/Radio.module.scss +11 -9
  599. package/src/components/Form/Radio/Radio.tsx +1 -0
  600. package/src/components/Form/Select/MultiSelect/MultiOption.tsx +1 -1
  601. package/src/components/Form/Select/MultiSelect/MultiSelect.module.scss +7 -5
  602. package/src/components/Form/Select/MultiSelect/useSearch.tsx +1 -0
  603. package/src/components/Form/Select/SingleSelect/Option.tsx +1 -1
  604. package/src/components/Form/Select/SingleSelect/Select.module.scss +6 -5
  605. package/src/components/Form/Select/useAddNewBtn.module.scss +2 -1
  606. package/src/components/Form/Textarea/Textarea.module.scss +4 -4
  607. package/src/components/Form/Toggle/Toggle.module.scss +11 -10
  608. package/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss +3 -1
  609. package/src/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss +2 -2
  610. package/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss +1 -1
  611. package/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss +1 -1
  612. package/src/components/Icon/Icon.module.scss +5 -1
  613. package/src/components/Icon/Icon.tsx +1 -0
  614. package/src/components/Layout/ContentHeader/ContentHeader.module.scss +53 -1
  615. package/src/components/Layout/ContentHeader/ContentHeader.tsx +82 -6
  616. package/src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss +1 -1
  617. package/src/components/Link/Link.tsx +1 -0
  618. package/src/components/Notifications/Alert/AlertItem/AlertItem.module.scss +9 -9
  619. package/src/components/Notifications/Banner/Banner.module.scss +1 -1
  620. package/src/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss +2 -2
  621. package/src/components/Notifications/Dialog/DialogActions/DialogActions.tsx +1 -0
  622. package/src/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss +1 -1
  623. package/src/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.tsx +3 -0
  624. package/src/components/Notifications/SideSheet/SideSheet.module.scss +2 -1
  625. package/src/components/Pagination/Pagination.module.scss +7 -5
  626. package/src/components/Pagination/Pagination.tsx +3 -1
  627. package/src/components/Tabs/Tab.tsx +1 -0
  628. package/src/components/Tabs/TabButton.module.scss +5 -3
  629. package/src/components/Tabs/TabButton.tsx +1 -1
  630. package/src/components/Tabs/Tabs.tsx +6 -2
  631. package/src/components/Tag/RemoveButton.module.scss +1 -1
  632. package/src/components/Tag/Tag.module.scss +1 -3
  633. package/src/components/Tag/Tag.tsx +1 -1
  634. package/src/components/Tooltip/Tooltip.module.scss +4 -4
  635. package/src/components/Tooltip/Tooltip.tsx +3 -1
  636. package/src/components/Typography/Typography.module.scss +1 -1
  637. package/src/components/Typography/Typography.tsx +3 -2
  638. package/src/components/_BaseStyling_/BaseStyling.tsx +25 -7
  639. package/src/components/admin/layout/LeftNav/LeftNav.interfaces.ts +30 -0
  640. package/src/components/admin/layout/LeftNav/LeftNav.module.scss +52 -0
  641. package/src/components/admin/layout/LeftNav/LeftNav.tsx +81 -0
  642. package/src/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.tsx +153 -0
  643. package/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.ts +27 -0
  644. package/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss +217 -0
  645. package/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.tsx +34 -0
  646. package/src/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.tsx +105 -0
  647. package/src/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.ts +64 -0
  648. package/src/components/admin/layout/LeftNav/useRefItems.ts +280 -0
  649. package/src/components/miscellaneous/IdentityProviderButton.tsx +4 -1
  650. package/src/components/withReadOnly.tsx +3 -3
  651. package/src/font/icomoon.eot +0 -0
  652. package/src/font/icomoon.svg +1 -0
  653. package/src/font/icomoon.ttf +0 -0
  654. package/src/font/icomoon.woff +0 -0
  655. package/src/font/selection.json +1 -1
  656. package/src/hooks/useDebouncedCallback.tsx +2 -0
  657. package/src/hooks/useRepeatFocus.tsx +9 -3
  658. package/src/index.ts +6 -1
  659. package/src/mixins.module.scss +34 -1
  660. package/src/util/helper.tsx +12 -8
  661. package/src/variables.scss +11 -0
@@ -10,5 +10,5 @@ export interface Props extends ComponentPropsWithRef<any> {
10
10
  spacing?: Spacing;
11
11
  align?: "left" | "center" | "right";
12
12
  }
13
- export declare const Typography: React.ForwardRefExoticComponent<Omit<Omit<Props, "ref">, "ref"> & React.RefAttributes<any>>;
13
+ export declare const Typography: React.ForwardRefExoticComponent<Omit<Omit<Props, "ref">, "ref"> & React.RefAttributes<unknown>>;
14
14
  export {};
@@ -3,7 +3,7 @@
3
3
  * and make sure to add it to the shouldBeColorPicker array!
4
4
  */
5
5
  import React, { HTMLAttributes, ReactElement } from "react";
6
- interface CSSProperties {
6
+ export interface CSSProperties {
7
7
  colorFocus?: string;
8
8
  colorPrimary?: string;
9
9
  colorSuccess?: string;
@@ -35,11 +35,13 @@ interface CSSProperties {
35
35
  colorOrange500?: string;
36
36
  colorOrange600?: string;
37
37
  colorOrange700?: string;
38
+ colorRed50?: string;
38
39
  colorRed100?: string;
39
40
  colorRed200?: string;
40
41
  colorRed500?: string;
41
42
  colorRed600?: string;
42
43
  colorRed700?: string;
44
+ colorRed900?: string;
43
45
  colorWhite?: string;
44
46
  colorBlack100?: string;
45
47
  colorBlack50?: string;
@@ -95,14 +97,17 @@ interface CSSProperties {
95
97
  inputHelperTextColor?: string;
96
98
  inputHoverBackgroundColor?: string;
97
99
  inputDisabledBackgroundColor?: string;
100
+ inputFontSize?: string;
98
101
  dragBorderStyle?: string;
99
102
  modalShadowColor?: string;
100
103
  modalBackgroundColor?: string;
101
104
  modalBackdropColor?: string;
105
+ modalContentFontSize?: string;
102
106
  sideSheetShadowColorOne?: string;
103
107
  sideSheetShadowColorTwo?: string;
104
108
  skeletonBackgroundColor?: string;
105
109
  skeletonAnimationColorRgb?: string;
110
+ alertFontSize?: string;
106
111
  alertTextColor?: string;
107
112
  alertTextInvertedColor?: string;
108
113
  alertNeutralBackgroundColor?: string;
@@ -163,6 +168,7 @@ interface CSSProperties {
163
168
  tooltipBackgroundColor?: string;
164
169
  contextMenuHoverColor?: string;
165
170
  contextMenuPressedColor?: string;
171
+ contextMenuFontSize?: string;
166
172
  default?: string;
167
173
  success?: string;
168
174
  error?: string;
@@ -181,6 +187,8 @@ interface CSSProperties {
181
187
  fontSizeH3?: string;
182
188
  fontSizeH4?: string;
183
189
  fontSizeSub?: string;
190
+ fontSizeSmall?: string;
191
+ fontSizeBig?: string;
184
192
  fontSizeCode?: string;
185
193
  formControlFontSize?: string;
186
194
  fileUploadBorderWidth?: string;
@@ -188,10 +196,10 @@ interface CSSProperties {
188
196
  fontSizeDataGrid?: string;
189
197
  readOnlyBorderColor?: string;
190
198
  readOnlyTextColor?: string;
199
+ iconFontBig?: string;
191
200
  }
192
201
  export interface Props extends HTMLAttributes<HTMLDivElement> {
193
202
  children?: ReactElement[] | ReactElement | string[] | string | number[] | number;
194
203
  properties?: CSSProperties;
195
204
  }
196
205
  export declare const BaseStyling: ({ children, properties }: Props) => React.JSX.Element;
197
- export {};
@@ -0,0 +1,10 @@
1
+ import React, { ComponentPropsWithRef } from "react";
2
+ import { MenuItem } from "./LeftNav.interfaces";
3
+ export interface Props extends ComponentPropsWithRef<"nav"> {
4
+ isSideMenuOpen?: boolean;
5
+ items: MenuItem[];
6
+ navigate: (path: string) => void;
7
+ onItemClick: (path?: string, button?: boolean) => void;
8
+ marginTop?: string;
9
+ }
10
+ export declare const LeftNav: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,13 @@
1
+ import { ReactElement } from "react";
2
+ export interface MenuItem {
3
+ key: string;
4
+ path?: string;
5
+ active?: boolean;
6
+ /**
7
+ * @deprecated it can be removed in next release
8
+ */
9
+ disabled?: boolean;
10
+ title: string;
11
+ iconComponent?: ReactElement;
12
+ items?: MenuItem[];
13
+ }
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -0,0 +1,13 @@
1
+ import React, { ForwardRefExoticComponent, HTMLProps } from "react";
2
+ import { MenuItem } from "../LeftNav.interfaces";
3
+ import { UseRefItemsReturnType } from "../useRefItems";
4
+ import { LeftNavItemProps } from "./LeftNavItem.interface";
5
+ export interface Props extends HTMLProps<HTMLElement> {
6
+ item: MenuItem;
7
+ navigate: (path: string) => void;
8
+ onItemClick: (path?: string, button?: boolean) => void;
9
+ refItems: UseRefItemsReturnType;
10
+ NestedComponent: ForwardRefExoticComponent<LeftNavItemProps>;
11
+ closeParentList?: () => void;
12
+ }
13
+ export declare const ButtonLeftNavItem: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { LeftNavItemProps } from "./LeftNavItem.interface";
3
+ export declare const LeftNavItem: React.ForwardRefExoticComponent<Omit<LeftNavItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,10 @@
1
+ import { HTMLProps } from "react";
2
+ import { MenuItem } from "../LeftNav.interfaces";
3
+ import { UseRefItemsReturnType } from "../useRefItems";
4
+ export interface LeftNavItemProps extends HTMLProps<HTMLElement> {
5
+ item: MenuItem;
6
+ navigate: (path: string) => void;
7
+ onItemClick: (path?: string, button?: boolean) => void;
8
+ refItems: UseRefItemsReturnType;
9
+ closeParentList?: () => void;
10
+ }
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -0,0 +1,10 @@
1
+ import React, { HTMLProps } from "react";
2
+ import { MenuItem } from "../LeftNav.interfaces";
3
+ import { UseRefItemsReturnType } from "../useRefItems";
4
+ export interface Props extends HTMLProps<HTMLElement> {
5
+ item: MenuItem;
6
+ onItemClick: (path?: string, button?: boolean) => void;
7
+ refItems: UseRefItemsReturnType;
8
+ closeParentList?: () => void;
9
+ }
10
+ export declare const LinkLeftNavItem: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,12 @@
1
+ import { KeyboardEvent } from "react";
2
+ import { MenuItem } from "../LeftNav.interfaces";
3
+ import { UseRefItemsReturnType } from "../useRefItems";
4
+ interface Props {
5
+ item: MenuItem;
6
+ refItems: UseRefItemsReturnType;
7
+ closeParentList?: () => void;
8
+ }
9
+ export declare const useKeyboardNavigation: ({ refItems, item, closeParentList }: Props) => {
10
+ onKeyPressNavigation: (e: KeyboardEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
11
+ };
12
+ export {};
@@ -0,0 +1,22 @@
1
+ import { MenuItem } from "./LeftNav.interfaces";
2
+ interface Props {
3
+ items: MenuItem[];
4
+ }
5
+ interface LinkedMapValue {
6
+ item: MenuItem;
7
+ level: number;
8
+ prev?: MenuItem;
9
+ next?: MenuItem;
10
+ }
11
+ export type UseRefItemsReturnType = ReturnType<typeof useRefItems>;
12
+ export declare const useRefItems: ({ items }: Props) => {
13
+ addElementReference: (el: HTMLElement | null, key: string) => void;
14
+ getNextElement: (currentKey: string, whenHavingChildren?: boolean) => HTMLElement | undefined;
15
+ getNextElementOnSameLevel: (currentKey: string) => HTMLElement | undefined;
16
+ getPrevElementOnSameLevel: (currentKey: string) => HTMLElement | undefined;
17
+ getFirstElementOnSameLevel: (currentKey: string) => HTMLElement | undefined;
18
+ getLastElementOnSameLevel: (currentKey: string) => HTMLElement | undefined;
19
+ getParentElement: (currentKey: string) => HTMLElement | undefined;
20
+ getItemMap: () => Record<string, LinkedMapValue>;
21
+ };
22
+ export {};
@@ -13,5 +13,6 @@ export interface Props extends Omit<ComponentPropsWithRef<"button">, "color"> {
13
13
  imgAltText?: string;
14
14
  idpType: string;
15
15
  customization?: SupportedCustomizationKeys;
16
+ loading?: boolean;
16
17
  }
17
18
  export declare const IdentityProviderButton: ForwardRefRenderFunction<HTMLButtonElement, Props>;
@@ -5,4 +5,4 @@ export interface WithReadOnlyProps {
5
5
  helperText?: string;
6
6
  type?: string;
7
7
  }
8
- export declare const withReadOnly: <P extends object>(WrappedComponent: ComponentType<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithChildren<P & WithReadOnlyProps>> & React.RefAttributes<any>>;
8
+ export declare const withReadOnly: <P extends object>(WrappedComponent: ComponentType<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithChildren<P & WithReadOnlyProps>> & React.RefAttributes<unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"useDebouncedCallback.cjs.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\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 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":["callback","delay","dependencies","timeout","React","useRef","comboDeps","useCallback","args","current","clearTimeout","setTimeout"],"mappings":"iEAkBoC,CAACA,EAAoBC,EAAeC,KACtE,MAAMC,EAAUC,EAAMC,SAChBC,EAAYJ,EAAe,CAACF,EAAUC,KAAUC,GAAgB,CAACF,EAAUC,GAEjF,OAAOG,EAAMG,aAAY,IAAIC,KACJ,MAAnBL,EAAQM,SACVC,aAAaP,EAAQM,SAGvBN,EAAQM,QAAUE,YAAW,KAC3BX,KAAYQ,EAAK,GAChBP,EAAM,GACRK,EAAU"}
1
+ {"version":3,"file":"useDebouncedCallback.cjs.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":["callback","delay","dependencies","timeout","React","useRef","comboDeps","useCallback","args","current","clearTimeout","setTimeout"],"mappings":"iEAmBoC,CAACA,EAAoBC,EAAeC,KACtE,MAAMC,EAAUC,EAAMC,SAChBC,EAAYJ,EAAe,CAACF,EAAUC,KAAUC,GAAgB,CAACF,EAAUC,GAGjF,OAAOG,EAAMG,aAAY,IAAIC,KACJ,MAAnBL,EAAQM,SACVC,aAAaP,EAAQM,SAGvBN,EAAQM,QAAUE,YAAW,KAC3BX,KAAYQ,EAAK,GAChBP,EAAM,GACRK,EAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"useRepeatFocus.cjs.js","sources":["../../../../../../src/hooks/useRepeatFocus.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 { RefObject, useEffect } from \"react\";\n\n/**\n * @description This is a hook that will make sure that when a modal is open and the user tabs through the it,\n * the focus will be repeated and the user will not lose their entire focusable element to an element in the background\n * that is being blocked by the modal.\n */\n\nexport const useRepeatFocus = (ref: RefObject<HTMLDivElement>) => {\n const getFocusableElement = (\n element: HTMLElement,\n position: \"first\" | \"last\"\n ): HTMLElement | null => {\n const baseSelectors = [\n \"button\",\n \"[href]\",\n \"input\",\n \"select\",\n \"textarea\",\n \"[tabindex]\",\n \"[contenteditable]\"\n ];\n const focusableSelectors = baseSelectors\n .map(selector => `${selector}:not([tabindex=\"-1\"])`)\n .join(\", \");\n const focusableElements = element.querySelectorAll<HTMLElement>(focusableSelectors);\n\n if (position === \"first\") {\n return focusableElements[0] || null;\n } else if (position === \"last\") {\n return focusableElements[focusableElements.length - 1] || null;\n }\n\n return null;\n };\n\n useEffect(() => {\n if (!ref.current || !open) return;\n\n const lastFocusableElement = getFocusableElement(ref.current, \"last\");\n const firstFocusableElement = getFocusableElement(ref.current, \"first\");\n\n if (!lastFocusableElement || !firstFocusableElement) return;\n\n const handleTabKeyPress = (event: KeyboardEvent) => {\n if (event.key !== \"Tab\") return;\n\n if (event.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n event.preventDefault();\n lastFocusableElement?.focus();\n }\n } else if (document.activeElement === lastFocusableElement) {\n event.preventDefault();\n firstFocusableElement?.focus();\n }\n };\n\n lastFocusableElement.addEventListener(\"keydown\", handleTabKeyPress);\n firstFocusableElement.addEventListener(\"keydown\", handleTabKeyPress);\n\n return () => {\n lastFocusableElement.removeEventListener(\"keydown\", handleTabKeyPress);\n firstFocusableElement.removeEventListener(\"keydown\", handleTabKeyPress);\n };\n }, [ref, open]);\n};\n"],"names":["ref","getFocusableElement","element","position","focusableSelectors","map","selector","join","focusableElements","querySelectorAll","length","useEffect","current","open","lastFocusableElement","firstFocusableElement","handleTabKeyPress","event","key","shiftKey","document","activeElement","preventDefault","focus","addEventListener","removeEventListener"],"mappings":"2DAwB+BA,IAC7B,MAAMC,EAAsB,CAC1BC,EACAC,KAEA,MASMC,EATgB,CACpB,SACA,SACA,QACA,SACA,WACA,aACA,qBAGCC,KAAIC,GAAY,GAAGA,2BACnBC,KAAK,MACFC,EAAoBN,EAAQO,iBAA8BL,GAEhE,MAAiB,UAAbD,EACKK,EAAkB,IAAM,KACT,SAAbL,GACFK,EAAkBA,EAAkBE,OAAS,IAG/C,IAAI,EAGbC,EAAAA,WAAU,KACR,IAAKX,EAAIY,UAAYC,KAAM,OAE3B,MAAMC,EAAuBb,EAAoBD,EAAIY,QAAS,QACxDG,EAAwBd,EAAoBD,EAAIY,QAAS,SAE/D,IAAKE,IAAyBC,EAAuB,OAErD,MAAMC,EAAqBC,IACP,QAAdA,EAAMC,MAEND,EAAME,SACJC,SAASC,gBAAkBN,IAC7BE,EAAMK,iBACNR,SAAAA,EAAsBS,SAEfH,SAASC,gBAAkBP,IACpCG,EAAMK,iBACNP,SAAAA,EAAuBQ,SACxB,EAMH,OAHAT,EAAqBU,iBAAiB,UAAWR,GACjDD,EAAsBS,iBAAiB,UAAWR,GAE3C,KACLF,EAAqBW,oBAAoB,UAAWT,GACpDD,EAAsBU,oBAAoB,UAAWT,EAAkB,CACxE,GACA,CAAChB,EAAKa,MAAM"}
1
+ {"version":3,"file":"useRepeatFocus.cjs.js","sources":["../../../../../../src/hooks/useRepeatFocus.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 { RefObject, useEffect } from \"react\";\n\n/**\n * @description This is a hook that will make sure that when a modal is open and the user tabs through the it,\n * the focus will be repeated and the user will not lose their entire focusable element to an element in the background\n * that is being blocked by the modal.\n */\n\nexport const useRepeatFocus = (ref: RefObject<HTMLDivElement>) => {\n const getFocusableElement = (\n element: HTMLElement,\n position: \"first\" | \"last\"\n ): HTMLElement | null => {\n const baseSelectors = [\n \"button\",\n \"[href]\",\n \"input\",\n \"select\",\n \"textarea\",\n \"[tabindex]\",\n \"[contenteditable]\"\n ];\n const focusableSelectors = baseSelectors\n .map(selector => `${selector}:not([tabindex=\"-1\"])`)\n .join(\", \");\n const focusableElements = element.querySelectorAll<HTMLElement>(focusableSelectors);\n\n if (position === \"first\") {\n return focusableElements[0] || null;\n } else if (position === \"last\") {\n return focusableElements[focusableElements.length - 1] || null;\n }\n\n return null;\n };\n\n useEffect(() => {\n if (!ref.current || !open) {\n return;\n }\n\n const lastFocusableElement = getFocusableElement(ref.current, \"last\");\n const firstFocusableElement = getFocusableElement(ref.current, \"first\");\n\n if (!lastFocusableElement || !firstFocusableElement) {\n return;\n }\n\n const handleTabKeyPress = (event: KeyboardEvent) => {\n if (event.key !== \"Tab\") {\n return;\n }\n\n if (event.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n event.preventDefault();\n lastFocusableElement?.focus();\n }\n } else if (document.activeElement === lastFocusableElement) {\n event.preventDefault();\n firstFocusableElement?.focus();\n }\n };\n\n lastFocusableElement.addEventListener(\"keydown\", handleTabKeyPress);\n firstFocusableElement.addEventListener(\"keydown\", handleTabKeyPress);\n\n return () => {\n lastFocusableElement.removeEventListener(\"keydown\", handleTabKeyPress);\n firstFocusableElement.removeEventListener(\"keydown\", handleTabKeyPress);\n };\n }, [ref, open]);\n};\n"],"names":["ref","getFocusableElement","element","position","focusableSelectors","map","selector","join","focusableElements","querySelectorAll","length","useEffect","current","open","lastFocusableElement","firstFocusableElement","handleTabKeyPress","event","key","shiftKey","document","activeElement","preventDefault","focus","addEventListener","removeEventListener"],"mappings":"2DAwB+BA,IAC7B,MAAMC,EAAsB,CAC1BC,EACAC,KAEA,MASMC,EATgB,CACpB,SACA,SACA,QACA,SACA,WACA,aACA,qBAGCC,KAAIC,GAAY,GAAGA,2BACnBC,KAAK,MACFC,EAAoBN,EAAQO,iBAA8BL,GAEhE,MAAiB,UAAbD,EACKK,EAAkB,IAAM,KACT,SAAbL,GACFK,EAAkBA,EAAkBE,OAAS,IAG/C,IAAI,EAGbC,EAAAA,WAAU,KACR,IAAKX,EAAIY,UAAYC,KACnB,OAGF,MAAMC,EAAuBb,EAAoBD,EAAIY,QAAS,QACxDG,EAAwBd,EAAoBD,EAAIY,QAAS,SAE/D,IAAKE,IAAyBC,EAC5B,OAGF,MAAMC,EAAqBC,IACP,QAAdA,EAAMC,MAIND,EAAME,SACJC,SAASC,gBAAkBN,IAC7BE,EAAMK,iBACNR,SAAAA,EAAsBS,SAEfH,SAASC,gBAAkBP,IACpCG,EAAMK,iBACNP,SAAAA,EAAuBQ,SACxB,EAMH,OAHAT,EAAqBU,iBAAiB,UAAWR,GACjDD,EAAsBS,iBAAiB,UAAWR,GAE3C,KACLF,EAAqBW,oBAAoB,UAAWT,GACpDD,EAAsBU,oBAAoB,UAAWT,EAAkB,CACxE,GACA,CAAChB,EAAKa,MAAM"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../_BaseStyling_/BaseStyling.cjs.js"),r=require("../Button/Button.cjs.js"),t=require("../Breadcrumbs/Breadcrumbs.cjs.js"),o=require("../ContextMenu/ContextMenu.cjs.js"),s=require("../ContextMenu/ContextMenuItem.cjs.js"),i=require("../Link/Link.cjs.js"),a=require("../Icon/Icon.cjs.js"),p=require("../Button/IconButton.cjs.js"),l=require("../Tabs/Tab.cjs.js"),n=require("../Tabs/Tabs.cjs.js"),c=require("../Tag/Tag.cjs.js"),u=require("../TextEllipsis/TextEllipsis.cjs.js"),j=require("../Tiles/Tile.cjs.js"),d=require("../Tiles/Tiles.cjs.js"),x=require("../Tooltip/Tooltip.cjs.js"),S=require("../Typography/Typography.cjs.js"),F=require("../ProgressBar/ProgressBar.cjs.js"),q=require("../Skeleton/Skeleton.cjs.js"),m=require("../Spinner/Spinner.cjs.js"),C=require("../Stepper/Stepper.cjs.js"),M=require("../Pagination/Pagination.cjs.js"),T=require("./hooks/useRepeater.cjs.js"),g=require("./hooks/useClickOutside.cjs.js"),h=require("./hooks/useFullHeightCollapse.cjs.js"),D=require("./hooks/usePosition.cjs.js"),B=require("./hooks/useDebouncedCallback.cjs.js"),I=require("./hooks/useUploadFile.cjs.js"),b=require("./util/helper.cjs.js"),W=require("../Notifications/BaseModal/BaseModal.cjs.js"),k=require("../Notifications/Alert/useAlert.cjs.js"),f=require("../Notifications/Alert/AlertProvider/AlertProvider.cjs.js"),P=require("../Notifications/Alert/AlertItem/AlertItem.cjs.js"),G=require("../Notifications/Dialog/Dialog.cjs.js"),y=require("../Notifications/DiscardChangesModal/DiscardChangesModal.cjs.js"),A=require("../Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js"),N=require("../Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js"),H=require("../Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js"),R=require("../Notifications/NotificationProvider/NotificationContext.cjs.js"),O=require("../Notifications/SlideInModal/SlideInModal.cjs.js"),L=require("../Notifications/SideSheet/SideSheet.cjs.js"),v=require("../Notifications/SideSheet/SideSheetContent/SideSheetContent.cjs.js"),U=require("../Notifications/SideSheet/SideSheetHeader/SideSheetHeader.cjs.js"),w=require("../Form/Checkbox/Checkbox.cjs.js"),E=require("../Form/Fieldset/Fieldset.cjs.js"),_=require("../Form/Form.cjs.js"),K=require("../Form/FormControl/FormControl.cjs.js"),z=require("../Form/FormGroup/FormGroup.cjs.js"),J=require("../Form/FormHelperText/FormHelperText.cjs.js"),Q=require("../Form/Input/Input.cjs.js"),V=require("../Form/Wrapper/InputWrapper/InputWrapper.cjs.js"),X=require("../Form/Label/Label.cjs.js"),Y=require("../Form/Radio/Radio.cjs.js"),Z=require("../Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js"),$=require("../Form/Select/SingleSelect/Select.cjs.js"),ee=require("../Form/Select/MultiSelect/MultiSelect.cjs.js"),re=require("../Form/Select/SingleSelect/Option.cjs.js"),te=require("../Form/Select/MultiSelect/MultiOption.cjs.js"),oe=require("../Form/Textarea/Textarea.cjs.js"),se=require("../Form/Toggle/Toggle.cjs.js"),ie=require("../Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js"),ae=require("../Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js"),pe=require("../Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js"),le=require("../Form/FileUpload/FileUpload.cjs.js"),ne=require("../Form/FileUpload/FileItem/FileItem.cjs.js"),ce=require("../Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js"),ue=require("../Form/Select/MultiSelect/useMultiSelect.cjs.js"),je=require("../Layout/ContentHeader/ContentHeader.cjs.js"),de=require("../Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js"),xe=require("../Layout/FormPage/FormWithStepper/FormSection/FormSection.cjs.js"),Se=require("../Layout/FormPage/FormWithStepper/FormWithStepper.cjs.js"),Fe=require("../DataGrid/DataGrid.cjs.js"),qe=require("../DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js"),me=require("../DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js"),Ce=require("../DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js"),Me=require("../DataGrid/DataGridFilters/FilterKeyMapper.cjs.js"),Te=require("../DataGrid/DataGridFilters/useFiltersReducer.cjs.js"),ge=require("../Notifications/Banner/Banner.cjs.js"),he=require("../DatePicker/DatePicker.cjs.js"),De=require("../admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js"),Be=require("../miscellaneous/IdentityProviderButton.cjs.js");exports.BaseStyling=e.BaseStyling,exports.Button=r.Button,exports.Breadcrumbs=t.Breadcrumbs,exports.ContextMenu=o.ContextMenu,exports.ContextMenuItem=s.ContextMenuItem,exports.Link=i.Link,exports.Icon=a.Icon,Object.defineProperty(exports,"Icons",{enumerable:!0,get:function(){return a.Icons}}),exports.IconButton=p.IconButton,exports.Tab=l.Tab,exports.Tabs=n.Tabs,exports.Tag=c.Tag,exports.TextEllipsis=u.TextEllipsis,exports.Tile=j.Tile,exports.Tiles=d.Tiles,exports.Tooltip=x.Tooltip,exports.Typography=S.Typography,exports.ProgressBar=F.ProgressBar,exports.Skeleton=q.Skeleton,exports.Spinner=m.Spinner,exports.Stepper=C.Stepper,exports.Pagination=M.Pagination,exports.useRepeater=T.useRepeater,exports.useClickOutside=g.useClickOutside,exports.useFullHeightCollapse=h.useFullHeightCollapse,exports.usePosition=D.usePosition,exports.useDebouncedCallback=B.useDebouncedCallback,exports.useUploadFile=I.useUploadFile,exports.debounce=b.debounce,exports.generateID=b.generateID,exports.throttle=b.throttle,exports.Modal=W.BaseModal,exports.useAlert=k.useAlert,exports.AlertProvider=f.AlertProvider,exports.AlertItem=P.AlertItem,exports.Dialog=G.Dialog,exports.DiscardChangesModal=y.DiscardChangesModal,exports.ModalActions=A.BaseModalActions,exports.SideSheetActions=A.BaseModalActions,exports.ModalContent=N.BaseModalContent,exports.ModalHeader=H.BaseModalHeader,exports.NotificationProvider=R.NotificationProvider,exports.useNotificationContext=R.useNotificationContext,exports.SlideInModal=O.SlideInModal,exports.SideSheet=L.SideSheet,exports.SideSheetContent=v.SideSheetContent,exports.SideSheetHeader=U.SideSheetHeader,exports.Checkbox=w.Checkbox,exports.Fieldset=E.Fieldset,exports.Form=_.Form,exports.FormControl=K.FormControl,exports.FormGroup=z.FormGroup,exports.FormHelperText=J.FormHelperText,exports.Input=Q.Input,exports.InputWrapper=V.InputWrapper,exports.Label=X.Label,exports.Radio=Y.Radio,exports.RadioWrapper=Z.RadioWrapper,exports.Select=$.Select,exports.MultiSelect=ee.MultiSelect,exports.Option=re.Option,exports.MultiOption=te.MultiOption,exports.Textarea=oe.Textarea,exports.Toggle=se.Toggle,exports.CheckboxWrapper=ie.CheckboxWrapper,exports.TextareaWrapper=ae.TextareaWrapper,exports.SelectWrapper=pe.SelectWrapper,exports.FileUpload=le.FileUpload,Object.defineProperty(exports,"ACTION_STATUS",{enumerable:!0,get:function(){return ne.ACTION_STATUS}}),Object.defineProperty(exports,"FILE_ACTION",{enumerable:!0,get:function(){return ne.FILE_ACTION}}),exports.MultiSelectWrapper=ce.MultiSelectWrapper,exports.useMultiSelect=ue.useMultiSelect,exports.ContentHeader=je.ContentHeader,exports.FormStepper=de.FormStepper,exports.FormSection=xe.FormSection,exports.FormWithStepper=Se.FormWithStepper,exports.DataGrid=Fe.DataGrid,exports.DataGridRow=qe.DataGridRow,exports.DataGridDrawerItem=me.DataGridDrawerItem,exports.DataGridCell=Ce.DataGridCell,exports.FilterKeyMapper=Me.FilterKeyMapper,exports.useFiltersReducer=Te.useFiltersReducer,exports.Banner=ge.Banner,exports.DatePicker=he.DatePicker,exports.MicrofrontendContainer=De.MicrofrontendContainer,exports.IdentityProviderButton=Be.IdentityProviderButton;
1
+ "use strict";var e=require("../_BaseStyling_/BaseStyling.cjs.js"),r=require("../Button/Button.cjs.js"),t=require("../Breadcrumbs/Breadcrumbs.cjs.js"),o=require("../ContextMenu/ContextMenu.cjs.js"),s=require("../ContextMenu/ContextMenuItem.cjs.js"),i=require("../Link/Link.cjs.js"),a=require("../Icon/Icon.cjs.js"),p=require("../Button/IconButton.cjs.js"),l=require("../Tabs/Tab.cjs.js"),n=require("../Tabs/Tabs.cjs.js"),c=require("../Tag/Tag.cjs.js"),u=require("../TextEllipsis/TextEllipsis.cjs.js"),j=require("../Tiles/Tile.cjs.js"),d=require("../Tiles/Tiles.cjs.js"),x=require("../Tooltip/Tooltip.cjs.js"),S=require("../Typography/Typography.cjs.js"),F=require("../ProgressBar/ProgressBar.cjs.js"),q=require("../Skeleton/Skeleton.cjs.js"),m=require("../Spinner/Spinner.cjs.js"),C=require("../Stepper/Stepper.cjs.js"),M=require("../Pagination/Pagination.cjs.js"),T=require("./hooks/useRepeater.cjs.js"),g=require("./hooks/useClickOutside.cjs.js"),h=require("./hooks/useFullHeightCollapse.cjs.js"),D=require("./hooks/usePosition.cjs.js"),B=require("./hooks/useDebouncedCallback.cjs.js"),I=require("./hooks/useUploadFile.cjs.js"),b=require("./util/helper.cjs.js"),W=require("../Notifications/BaseModal/BaseModal.cjs.js"),f=require("../Notifications/Alert/useAlert.cjs.js"),k=require("../Notifications/Alert/AlertProvider/AlertProvider.cjs.js"),P=require("../Notifications/Alert/AlertItem/AlertItem.cjs.js"),y=require("../Notifications/Dialog/Dialog.cjs.js"),G=require("../Notifications/DiscardChangesModal/DiscardChangesModal.cjs.js"),N=require("../Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js"),A=require("../Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js"),H=require("../Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js"),L=require("../Notifications/NotificationProvider/NotificationContext.cjs.js"),R=require("../Notifications/SlideInModal/SlideInModal.cjs.js"),O=require("../Notifications/SideSheet/SideSheet.cjs.js"),v=require("../Notifications/SideSheet/SideSheetContent/SideSheetContent.cjs.js"),U=require("../Notifications/SideSheet/SideSheetHeader/SideSheetHeader.cjs.js"),w=require("../Form/Checkbox/Checkbox.cjs.js"),E=require("../Form/Fieldset/Fieldset.cjs.js"),_=require("../Form/Form.cjs.js"),K=require("../Form/FormControl/FormControl.cjs.js"),z=require("../Form/FormGroup/FormGroup.cjs.js"),J=require("../Form/FormHelperText/FormHelperText.cjs.js"),Q=require("../Form/Input/Input.cjs.js"),V=require("../Form/Wrapper/InputWrapper/InputWrapper.cjs.js"),X=require("../Form/Label/Label.cjs.js"),Y=require("../Form/Radio/Radio.cjs.js"),Z=require("../Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js"),$=require("../Form/Select/SingleSelect/Select.cjs.js"),ee=require("../Form/Select/MultiSelect/MultiSelect.cjs.js"),re=require("../Form/Select/SingleSelect/Option.cjs.js"),te=require("../Form/Select/MultiSelect/MultiOption.cjs.js"),oe=require("../Form/Textarea/Textarea.cjs.js"),se=require("../Form/Toggle/Toggle.cjs.js"),ie=require("../Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js"),ae=require("../Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js"),pe=require("../Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js"),le=require("../Form/FileUpload/FileUpload.cjs.js"),ne=require("../Form/FileUpload/FileItem/FileItem.cjs.js"),ce=require("../Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js"),ue=require("../Form/Select/MultiSelect/useMultiSelect.cjs.js"),je=require("../Layout/ContentHeader/ContentHeader.cjs.js"),de=require("../Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js"),xe=require("../Layout/FormPage/FormWithStepper/FormSection/FormSection.cjs.js"),Se=require("../Layout/FormPage/FormWithStepper/FormWithStepper.cjs.js"),Fe=require("../DataGrid/DataGrid.cjs.js"),qe=require("../DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js"),me=require("../DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js"),Ce=require("../DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js"),Me=require("../DataGrid/DataGridFilters/FilterKeyMapper.cjs.js"),Te=require("../DataGrid/DataGridFilters/useFiltersReducer.cjs.js"),ge=require("../Notifications/Banner/Banner.cjs.js"),he=require("../DatePicker/DatePicker.cjs.js"),De=require("../admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js"),Be=require("../admin/layout/LeftNav/LeftNav.cjs.js"),Ie=require("../miscellaneous/IdentityProviderButton.cjs.js");exports.BaseStyling=e.BaseStyling,exports.Button=r.Button,exports.Breadcrumbs=t.Breadcrumbs,exports.ContextMenu=o.ContextMenu,exports.ContextMenuItem=s.ContextMenuItem,exports.Link=i.Link,exports.Icon=a.Icon,Object.defineProperty(exports,"Icons",{enumerable:!0,get:function(){return a.Icons}}),exports.IconButton=p.IconButton,exports.Tab=l.Tab,exports.Tabs=n.Tabs,exports.Tag=c.Tag,exports.TextEllipsis=u.TextEllipsis,exports.Tile=j.Tile,exports.Tiles=d.Tiles,exports.Tooltip=x.Tooltip,exports.Typography=S.Typography,exports.ProgressBar=F.ProgressBar,exports.Skeleton=q.Skeleton,exports.Spinner=m.Spinner,exports.Stepper=C.Stepper,exports.Pagination=M.Pagination,exports.useRepeater=T.useRepeater,exports.useClickOutside=g.useClickOutside,exports.useFullHeightCollapse=h.useFullHeightCollapse,exports.usePosition=D.usePosition,exports.useDebouncedCallback=B.useDebouncedCallback,exports.useUploadFile=I.useUploadFile,exports.debounce=b.debounce,exports.generateID=b.generateID,exports.throttle=b.throttle,exports.Modal=W.BaseModal,exports.useAlert=f.useAlert,exports.AlertProvider=k.AlertProvider,exports.AlertItem=P.AlertItem,exports.Dialog=y.Dialog,exports.DiscardChangesModal=G.DiscardChangesModal,exports.ModalActions=N.BaseModalActions,exports.SideSheetActions=N.BaseModalActions,exports.ModalContent=A.BaseModalContent,exports.ModalHeader=H.BaseModalHeader,exports.NotificationProvider=L.NotificationProvider,exports.useNotificationContext=L.useNotificationContext,exports.SlideInModal=R.SlideInModal,exports.SideSheet=O.SideSheet,exports.SideSheetContent=v.SideSheetContent,exports.SideSheetHeader=U.SideSheetHeader,exports.Checkbox=w.Checkbox,exports.Fieldset=E.Fieldset,exports.Form=_.Form,exports.FormControl=K.FormControl,exports.FormGroup=z.FormGroup,exports.FormHelperText=J.FormHelperText,exports.Input=Q.Input,exports.InputWrapper=V.InputWrapper,exports.Label=X.Label,exports.Radio=Y.Radio,exports.RadioWrapper=Z.RadioWrapper,exports.Select=$.Select,exports.MultiSelect=ee.MultiSelect,exports.Option=re.Option,exports.MultiOption=te.MultiOption,exports.Textarea=oe.Textarea,exports.Toggle=se.Toggle,exports.CheckboxWrapper=ie.CheckboxWrapper,exports.TextareaWrapper=ae.TextareaWrapper,exports.SelectWrapper=pe.SelectWrapper,exports.FileUpload=le.FileUpload,Object.defineProperty(exports,"ACTION_STATUS",{enumerable:!0,get:function(){return ne.ACTION_STATUS}}),Object.defineProperty(exports,"FILE_ACTION",{enumerable:!0,get:function(){return ne.FILE_ACTION}}),exports.MultiSelectWrapper=ce.MultiSelectWrapper,exports.useMultiSelect=ue.useMultiSelect,exports.ContentHeader=je.ContentHeader,exports.FormStepper=de.FormStepper,exports.FormSection=xe.FormSection,exports.FormWithStepper=Se.FormWithStepper,exports.DataGrid=Fe.DataGrid,exports.DataGridRow=qe.DataGridRow,exports.DataGridDrawerItem=me.DataGridDrawerItem,exports.DataGridCell=Ce.DataGridCell,exports.FilterKeyMapper=Me.FilterKeyMapper,exports.useFiltersReducer=Te.useFiltersReducer,exports.Banner=ge.Banner,exports.DatePicker=he.DatePicker,exports.MicrofrontendContainer=De.MicrofrontendContainer,exports.LeftNav=Be.LeftNav,exports.IdentityProviderButton=Ie.IdentityProviderButton;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,4 +1,4 @@
1
- export { BaseStyling } from "./components/_BaseStyling_/BaseStyling";
1
+ export { BaseStyling, CSSProperties as BaseStylingCSSProperties } from "./components/_BaseStyling_/BaseStyling";
2
2
  export type { Props as BaseStylingProps } from "./components/_BaseStyling_/BaseStyling";
3
3
  export { Button } from "./components/Button/Button";
4
4
  export type { Props as ButtonProps } from "./components/Button/Button";
@@ -156,6 +156,8 @@ export type { Props as DatePickerProps } from "./components/DatePicker/DatePicke
156
156
  /** Admin */
157
157
  export { MicrofrontendContainer } from "./components/admin/layout/MicrofrontendContainer/MicrofrontendContainer";
158
158
  export type { Props as MicrofrontendContainerProps } from "./components/admin/layout/MicrofrontendContainer/MicrofrontendContainer";
159
+ export { LeftNav } from "./components/admin/layout/LeftNav/LeftNav";
160
+ export type { Props as LeftNavProps } from "./components/admin/layout/LeftNav/LeftNav";
159
161
  /**
160
162
  * Miscellaneous
161
163
  */
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("../node_modules/style-inject/dist/style-inject.es.cjs.js").default('/*!\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_6dWwy{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.readyclasses_hidden_6dWwy{display:none}.readyclasses_slide-in_6dWwy{animation:readyclasses_slide-in_6dWwy .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-in_6dWwy{animation-duration:.1ms}}.readyclasses_slide-out_6dWwy{animation:readyclasses_slide-out_6dWwy .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-out_6dWwy{animation-duration:.1ms}}@keyframes readyclasses_slide-in_6dWwy{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes readyclasses_slide-out_6dWwy{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlYWR5Y2xhc3Nlcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDRCQU9FLGtCQUFzQixDQUN0QixRQUFTLENBTFQsVUFBVyxDQUVYLFdBQVksQ0FDWixlQUFnQixDQUZoQixTQUFVLENBSFYsaUJBQWtCLENBQ2xCLFNBT0YsQ0FFQSwyQkFDRSxZQUNGLENBRUEsNkJBQ0Usa0RBQ0YsQ0FDQSx1Q0FDRSw2QkFDRSx1QkFDRixDQUNGLENBRUEsOEJBQ0UsbURBQ0YsQ0FDQSx1Q0FDRSw4QkFDRSx1QkFDRixDQUNGLENBRUEsdUNBQ0UsR0FDRSwyQkFDRixDQUNBLEdBQ0UsdUJBQ0YsQ0FDRixDQUNBLHdDQUNFLEdBQ0UsdUJBQ0YsQ0FDQSxHQUNFLDJCQUNGLENBQ0YiLCJmaWxlIjoicmVhZHljbGFzc2VzLm1vZHVsZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLyohXG4gKiBDb3B5cmlnaHQgMjAyMiBPbmVXZWxjb21lIEIuVi5cbiAqXG4gKiAgICBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogICAgeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogICAgWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgICAgIGh0dHA6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqICAgIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqICAgIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqICAgIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogICAgU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogICAgbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cbi5zci1vbmx5IHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB3aWR0aDogMXB4O1xuICBoZWlnaHQ6IDFweDtcbiAgcGFkZGluZzogMDtcbiAgbWFyZ2luOiAtMXB4O1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICBjbGlwOiByZWN0KDAsIDAsIDAsIDApO1xuICBib3JkZXI6IDA7XG59XG5cbi5oaWRkZW4ge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uc2xpZGUtaW4ge1xuICBhbmltYXRpb246IHNsaWRlLWluIDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtaW4ge1xuICAgIGFuaW1hdGlvbi1kdXJhdGlvbjogMC4xbXM7XG4gIH1cbn1cblxuLnNsaWRlLW91dCB7XG4gIGFuaW1hdGlvbjogc2xpZGUtb3V0IDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtb3V0IHtcbiAgICBhbmltYXRpb24tZHVyYXRpb246IDAuMW1zO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgc2xpZGUtaW4ge1xuICAwJSB7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDEwMHZoKTtcbiAgfVxuICAxMDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG59XG5Aa2V5ZnJhbWVzIHNsaWRlLW91dCB7XG4gIDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG4gIDEwMCUge1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDB2aCk7XG4gIH1cbn0iXX0= */'),exports.default={"sr-only":"readyclasses_sr-only_6dWwy",hidden:"readyclasses_hidden_6dWwy","slide-in":"readyclasses_slide-in_6dWwy","slide-out":"readyclasses_slide-out_6dWwy"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("../node_modules/style-inject/dist/style-inject.es.cjs.js").default('/*!\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_Pphm5{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.readyclasses_hidden_Pphm5{display:none}.readyclasses_slide-in_Pphm5{animation:readyclasses_slide-in_Pphm5 .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-in_Pphm5{animation-duration:.1ms}}.readyclasses_slide-out_Pphm5{animation:readyclasses_slide-out_Pphm5 .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-out_Pphm5{animation-duration:.1ms}}@keyframes readyclasses_slide-in_Pphm5{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes readyclasses_slide-out_Pphm5{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlYWR5Y2xhc3Nlcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDRCQU9FLGtCQUFzQixDQUN0QixRQUFTLENBTFQsVUFBVyxDQUVYLFdBQVksQ0FDWixlQUFnQixDQUZoQixTQUFVLENBSFYsaUJBQWtCLENBQ2xCLFNBT0YsQ0FFQSwyQkFDRSxZQUNGLENBRUEsNkJBQ0Usa0RBQ0YsQ0FDQSx1Q0FDRSw2QkFDRSx1QkFDRixDQUNGLENBRUEsOEJBQ0UsbURBQ0YsQ0FDQSx1Q0FDRSw4QkFDRSx1QkFDRixDQUNGLENBRUEsdUNBQ0UsR0FDRSwyQkFDRixDQUNBLEdBQ0UsdUJBQ0YsQ0FDRixDQUNBLHdDQUNFLEdBQ0UsdUJBQ0YsQ0FDQSxHQUNFLDJCQUNGLENBQ0YiLCJmaWxlIjoicmVhZHljbGFzc2VzLm1vZHVsZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLyohXG4gKiBDb3B5cmlnaHQgMjAyMiBPbmVXZWxjb21lIEIuVi5cbiAqXG4gKiAgICBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogICAgeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogICAgWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgICAgIGh0dHA6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqICAgIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqICAgIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqICAgIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogICAgU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogICAgbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cbi5zci1vbmx5IHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB3aWR0aDogMXB4O1xuICBoZWlnaHQ6IDFweDtcbiAgcGFkZGluZzogMDtcbiAgbWFyZ2luOiAtMXB4O1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICBjbGlwOiByZWN0KDAsIDAsIDAsIDApO1xuICBib3JkZXI6IDA7XG59XG5cbi5oaWRkZW4ge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uc2xpZGUtaW4ge1xuICBhbmltYXRpb246IHNsaWRlLWluIDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtaW4ge1xuICAgIGFuaW1hdGlvbi1kdXJhdGlvbjogMC4xbXM7XG4gIH1cbn1cblxuLnNsaWRlLW91dCB7XG4gIGFuaW1hdGlvbjogc2xpZGUtb3V0IDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtb3V0IHtcbiAgICBhbmltYXRpb24tZHVyYXRpb246IDAuMW1zO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgc2xpZGUtaW4ge1xuICAwJSB7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDEwMHZoKTtcbiAgfVxuICAxMDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG59XG5Aa2V5ZnJhbWVzIHNsaWRlLW91dCB7XG4gIDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG4gIDEwMCUge1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDB2aCk7XG4gIH1cbn0iXX0= */'),exports.default={"sr-only":"readyclasses_sr-only_Pphm5",hidden:"readyclasses_hidden_Pphm5","slide-in":"readyclasses_slide-in_Pphm5","slide-out":"readyclasses_slide-out_Pphm5"};
2
2
  //# sourceMappingURL=readyclasses.module.scss.cjs.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=(t,r)=>{if(!r)return t;let o={...t};for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&("object"==typeof r[n]&&null!==r[n]&&Object.prototype.hasOwnProperty.call(t,n)&&!Array.isArray(r[n])?o[n]=e(t[n],r[n]):o[n]=r[n]);return o};exports.debounce=(e,t)=>{let r;return function(...o){clearTimeout(r),r=setTimeout((()=>{clearTimeout(r),e(...o)}),t)}},exports.deepMerge=e,exports.escapeRegExp=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),exports.filterProps=(e,t,r=!0)=>r?Object.keys(e).reduce(((r,o)=>(t.test(o)&&(r[o]=e[o]),r)),{}):Object.entries(e).filter((([e])=>!t.test(e))).reduce(((e,t)=>({...e,[t[0]]:t[1]})),{}),exports.generateID=(e=15,t)=>{let r=["1","2","3","4","5","6","7","8","9","0","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],o="";for(let n=0;n<e&&o.length<e;n++){o=o+("string"!=typeof t||void 0===(null==t?void 0:t[n])||/\s/.test(t[n])?"":t[n])+r[Math.floor(Math.random()*r.length)]}return o.slice(0,e)},exports.isJsonString=e=>{try{JSON.parse(e)}catch(e){return!1}return!0},exports.remToPx=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),exports.throttle=(e,t)=>{let r=0;return function(){let o=Date.now();o-r>=t&&(e(),r=o)}};
1
+ "use strict";const e=(t,r)=>{if(!r)return t;const o={...t};for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&("object"==typeof r[n]&&null!==r[n]&&Object.prototype.hasOwnProperty.call(t,n)&&!Array.isArray(r[n])?o[n]=e(t[n],r[n]):o[n]=r[n]);return o};exports.debounce=(e,t)=>{let r;return function(...o){clearTimeout(r),r=setTimeout((()=>{clearTimeout(r),e(...o)}),t)}},exports.deepMerge=e,exports.escapeRegExp=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),exports.filterProps=(e,t,r=!0)=>r?Object.keys(e).reduce(((r,o)=>(t.test(o)&&(r[o]=e[o]),r)),{}):Object.entries(e).filter((([e])=>!t.test(e))).reduce(((e,t)=>({...e,[t[0]]:t[1]})),{}),exports.generateID=(e=15,t)=>{const r=["1","2","3","4","5","6","7","8","9","0","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];let o="";for(let n=0;n<e&&o.length<e;n++){o=o+("string"!=typeof t||void 0===(null==t?void 0:t[n])||/\s/.test(t[n])?"":t[n])+r[Math.floor(Math.random()*r.length)]}return o.slice(0,e)},exports.isJsonString=e=>{try{JSON.parse(e)}catch(e){return!1}return!0},exports.remToPx=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),exports.throttle=(e,t)=>{let r=0;return function(){const o=Date.now();o-r>=t&&(e(),r=o)}};
2
2
  //# sourceMappingURL=helper.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.cjs.js","sources":["../../../../../../src/util/helper.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\ntype KeyValuePair = { [key: string]: unknown };\n\nexport const generateID = (length = 15, stringToWeaveIn?: string) => {\n /** We will make sure to mesh the generate id and name property together to basically create a unique ID */\n let hashCharacters = [\n \"1\",\n \"2\",\n \"3\",\n \"4\",\n \"5\",\n \"6\",\n \"7\",\n \"8\",\n \"9\",\n \"0\",\n \"A\",\n \"B\",\n \"C\",\n \"D\",\n \"E\",\n \"F\",\n \"G\",\n \"H\",\n \"I\",\n \"J\",\n \"K\",\n \"L\",\n \"M\",\n \"N\",\n \"O\",\n \"P\",\n \"Q\",\n \"R\",\n \"S\",\n \"T\",\n \"U\",\n \"V\",\n \"W\",\n \"X\",\n \"Y\",\n \"Z\",\n \"a\",\n \"b\",\n \"c\",\n \"d\",\n \"e\",\n \"f\",\n \"g\",\n \"h\",\n \"i\",\n \"j\",\n \"k\",\n \"l\",\n \"m\",\n \"n\",\n \"o\",\n \"p\",\n \"q\",\n \"r\",\n \"s\",\n \"t\",\n \"u\",\n \"v\",\n \"w\",\n \"x\",\n \"y\",\n \"z\"\n ];\n\n let id = \"\";\n\n /** Generate an id of x characters in length */\n for (let i = 0; i < length && id.length < length; i++) {\n let stringCharacter =\n typeof stringToWeaveIn === \"string\" &&\n stringToWeaveIn?.[i] !== undefined &&\n !/\\s/.test(stringToWeaveIn[i])\n ? stringToWeaveIn[i]\n : \"\";\n id = id + stringCharacter + hashCharacters[Math.floor(Math.random() * hashCharacters.length)];\n }\n\n return id.slice(0, length);\n};\n\nexport const filterProps = (props: any, regexPattern: RegExp, returnFiltered: boolean = true) => {\n if (returnFiltered) {\n return Object.keys(props).reduce((acc: KeyValuePair, key) => {\n if (regexPattern.test(key)) {\n acc[key] = props[key];\n }\n\n return acc;\n }, {});\n } else {\n return Object.entries(props)\n .filter(([key]) => !regexPattern.test(key))\n .reduce(\n (prevObj, currKeyValPair) => ({ ...prevObj, [currKeyValPair[0]]: currKeyValPair[1] }),\n {}\n );\n }\n};\n\nexport const debounce = (fn: (...args: unknown[]) => unknown, delay: number) => {\n let timeout: undefined | ReturnType<typeof setTimeout>;\n\n return function executedFunction(...args: unknown[]) {\n const later = () => {\n clearTimeout(timeout);\n fn(...args);\n };\n\n clearTimeout(timeout);\n\n timeout = setTimeout(later, delay);\n };\n};\n\nexport const throttle = (fn: (...args: unknown[]) => unknown, delay: number) => {\n let lastTime = 0;\n\n return function () {\n let now = Date.now();\n\n if (now - lastTime >= delay) {\n fn();\n lastTime = now;\n }\n };\n};\n\nexport const isEqual = (x: any, y: any): boolean => {\n const typesCoincide = x && y && typeof x === \"object\" && typeof y === \"object\";\n return typesCoincide\n ? Object.keys(x).length === Object.keys(y).length &&\n Object.keys(x).every(key => isEqual(x[key], y[key]))\n : x === y;\n};\n\nexport const areArraysDifferent = (\n arr1: Record<string, any>[],\n arr2: Record<string, any>[],\n key: string\n) => {\n if (arr1.length !== arr2.length) {\n return true;\n } else {\n const firstFilteredArray = arr1.filter(arr1Item =>\n arr2.some((arr2Item: { [x: string]: any }) => !isEqual(arr1Item[key], arr2Item[key]))\n );\n const secondFilteredArray = arr2.filter(arr2Item =>\n arr1.some((arr1Item: { [x: string]: any }) => !isEqual(arr1Item[key], arr2Item[key]))\n );\n\n return !!firstFilteredArray.length || !!secondFilteredArray.length;\n }\n};\n\n/** Source: https://stackoverflow.com/a/42769683/5084110 */\nexport const remToPx = (rem: number): number => {\n return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);\n};\n\nexport const isJsonString = (str: any) => {\n try {\n JSON.parse(str);\n } catch (e) {\n return false;\n }\n return true;\n};\n\ntype ObjectType = { [key: string]: any };\n\nexport const deepMerge = <T extends {}>(obj1: ObjectType, obj2: ObjectType | false): T => {\n if (!obj2) return obj1 as T;\n\n let result: ObjectType = { ...obj1 };\n\n for (let key in obj2) {\n if (Object.prototype.hasOwnProperty.call(obj2, key)) {\n if (\n typeof obj2[key] === \"object\" &&\n obj2[key] !== null &&\n Object.prototype.hasOwnProperty.call(obj1, key) &&\n !Array.isArray(obj2[key])\n ) {\n result[key] = deepMerge(obj1[key], obj2[key]);\n } else {\n result[key] = obj2[key];\n }\n }\n }\n\n return result as T;\n};\n\nexport const escapeRegExp = (str: string) => str.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n"],"names":["deepMerge","obj1","obj2","result","key","Object","prototype","hasOwnProperty","call","Array","isArray","fn","delay","timeout","args","clearTimeout","setTimeout","str","replace","props","regexPattern","returnFiltered","keys","reduce","acc","test","entries","filter","prevObj","currKeyValPair","length","stringToWeaveIn","hashCharacters","id","i","undefined","Math","floor","random","slice","JSON","parse","e","rem","parseFloat","getComputedStyle","document","documentElement","fontSize","lastTime","now","Date"],"mappings":"aAkBa,MA6KAA,EAAY,CAAeC,EAAkBC,KACxD,IAAKA,EAAM,OAAOD,EAElB,IAAIE,EAAqB,IAAKF,GAE9B,IAAK,IAAIG,KAAOF,EACVG,OAAOC,UAAUC,eAAeC,KAAKN,EAAME,KAEtB,iBAAdF,EAAKE,IACE,OAAdF,EAAKE,IACLC,OAAOC,UAAUC,eAAeC,KAAKP,EAAMG,KAC1CK,MAAMC,QAAQR,EAAKE,IAEpBD,EAAOC,GAAOJ,EAAUC,EAAKG,GAAMF,EAAKE,IAExCD,EAAOC,GAAOF,EAAKE,IAKzB,OAAOD,CAAW,mBA3FI,CAACQ,EAAqCC,KAC5D,IAAIC,EAEJ,OAAO,YAA6BC,GAMlCC,aAAaF,GAEbA,EAAUG,YAPI,KACZD,aAAaF,GACbF,KAAMG,EAAK,GAKeF,EAC9B,CAAC,2CAkF0BK,GAAgBA,EAAIC,QAAQ,sBAAuB,4BAjHrD,CAACC,EAAYC,EAAsBC,GAA0B,IAClFA,EACKhB,OAAOiB,KAAKH,GAAOI,QAAO,CAACC,EAAmBpB,KAC/CgB,EAAaK,KAAKrB,KACpBoB,EAAIpB,GAAOe,EAAMf,IAGZoB,IACN,CAAE,GAEEnB,OAAOqB,QAAQP,GACnBQ,QAAO,EAAEvB,MAAUgB,EAAaK,KAAKrB,KACrCmB,QACC,CAACK,EAASC,KAAc,IAAWD,EAAS,CAACC,EAAe,IAAKA,EAAe,MAChF,CAAE,sBAjGgB,CAACC,EAAS,GAAIC,KAEtC,IAAIC,EAAiB,CACnB,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,KAGEC,EAAK,GAGT,IAAK,IAAIC,EAAI,EAAGA,EAAIJ,GAAUG,EAAGH,OAASA,EAAQI,IAAK,CAOrDD,EAAKA,GALwB,iBAApBF,QACkBI,KAAzBJ,aAAe,EAAfA,EAAkBG,KACjB,KAAKT,KAAKM,EAAgBG,IAEvB,GADAH,EAAgBG,IAEMF,EAAeI,KAAKC,MAAMD,KAAKE,SAAWN,EAAeF,QACtF,CAED,OAAOG,EAAGM,MAAM,EAAGT,EAAO,uBAkFCb,IAC3B,IACEuB,KAAKC,MAAMxB,EACZ,CAAC,MAAOyB,GACP,OAAO,CACR,CACD,OAAO,CAAI,kBAVWC,GACfA,EAAMC,WAAWC,iBAAiBC,SAASC,iBAAiBC,2BA1C7C,CAACrC,EAAqCC,KAC5D,IAAIqC,EAAW,EAEf,OAAO,WACL,IAAIC,EAAMC,KAAKD,MAEXA,EAAMD,GAAYrC,IACpBD,IACAsC,EAAWC,EAEf,CAAC"}
1
+ {"version":3,"file":"helper.cjs.js","sources":["../../../../../../src/util/helper.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\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\ntype KeyValuePair = { [key: string]: unknown };\n\nexport const generateID = (length = 15, stringToWeaveIn?: string) => {\n /** We will make sure to mesh the generate id and name property together to basically create a unique ID */\n const hashCharacters = [\n \"1\",\n \"2\",\n \"3\",\n \"4\",\n \"5\",\n \"6\",\n \"7\",\n \"8\",\n \"9\",\n \"0\",\n \"A\",\n \"B\",\n \"C\",\n \"D\",\n \"E\",\n \"F\",\n \"G\",\n \"H\",\n \"I\",\n \"J\",\n \"K\",\n \"L\",\n \"M\",\n \"N\",\n \"O\",\n \"P\",\n \"Q\",\n \"R\",\n \"S\",\n \"T\",\n \"U\",\n \"V\",\n \"W\",\n \"X\",\n \"Y\",\n \"Z\",\n \"a\",\n \"b\",\n \"c\",\n \"d\",\n \"e\",\n \"f\",\n \"g\",\n \"h\",\n \"i\",\n \"j\",\n \"k\",\n \"l\",\n \"m\",\n \"n\",\n \"o\",\n \"p\",\n \"q\",\n \"r\",\n \"s\",\n \"t\",\n \"u\",\n \"v\",\n \"w\",\n \"x\",\n \"y\",\n \"z\"\n ];\n\n let id = \"\";\n\n /** Generate an id of x characters in length */\n for (let i = 0; i < length && id.length < length; i++) {\n const stringCharacter =\n typeof stringToWeaveIn === \"string\" &&\n stringToWeaveIn?.[i] !== undefined &&\n !/\\s/.test(stringToWeaveIn[i])\n ? stringToWeaveIn[i]\n : \"\";\n id = id + stringCharacter + hashCharacters[Math.floor(Math.random() * hashCharacters.length)];\n }\n\n return id.slice(0, length);\n};\n\nexport const filterProps = (props: any, regexPattern: RegExp, returnFiltered: boolean = true) => {\n if (returnFiltered) {\n return Object.keys(props).reduce((acc: KeyValuePair, key) => {\n if (regexPattern.test(key)) {\n acc[key] = props[key];\n }\n\n return acc;\n }, {});\n } else {\n return Object.entries(props)\n .filter(([key]) => !regexPattern.test(key))\n .reduce(\n (prevObj, currKeyValPair) => ({ ...prevObj, [currKeyValPair[0]]: currKeyValPair[1] }),\n {}\n );\n }\n};\n\nexport const debounce = (fn: (...args: unknown[]) => unknown, delay: number) => {\n let timeout: undefined | ReturnType<typeof setTimeout>;\n\n return function executedFunction(...args: unknown[]) {\n const later = () => {\n clearTimeout(timeout);\n fn(...args);\n };\n\n clearTimeout(timeout);\n\n timeout = setTimeout(later, delay);\n };\n};\n\nexport const throttle = (fn: (...args: unknown[]) => unknown, delay: number) => {\n let lastTime = 0;\n\n return function () {\n const now = Date.now();\n\n if (now - lastTime >= delay) {\n fn();\n lastTime = now;\n }\n };\n};\n\nconst isEqual = (x: any, y: any): boolean => {\n const typesCoincide = x && y && typeof x === \"object\" && typeof y === \"object\";\n return typesCoincide\n ? Object.keys(x).length === Object.keys(y).length &&\n Object.keys(x).every(key => isEqual(x[key], y[key]))\n : x === y;\n};\n\nexport const areArraysDifferent = (\n arr1: Record<string, any>[],\n arr2: Record<string, any>[],\n key: string\n) => {\n if (arr1.length !== arr2.length) {\n return true;\n } else {\n const firstFilteredArray = arr1.filter(arr1Item =>\n arr2.some((arr2Item: { [x: string]: any }) => !isEqual(arr1Item[key], arr2Item[key]))\n );\n const secondFilteredArray = arr2.filter(arr2Item =>\n arr1.some((arr1Item: { [x: string]: any }) => !isEqual(arr1Item[key], arr2Item[key]))\n );\n\n return !!firstFilteredArray.length || !!secondFilteredArray.length;\n }\n};\n\n/** Source: https://stackoverflow.com/a/42769683/5084110 */\nexport const remToPx = (rem: number): number => {\n return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);\n};\n\nexport const isJsonString = (str: any) => {\n try {\n JSON.parse(str);\n } catch (e) {\n return false;\n }\n return true;\n};\n\ntype ObjectType = { [key: string]: any };\n\nexport const deepMerge = <T extends object>(obj1: ObjectType, obj2: ObjectType | false): T => {\n if (!obj2) {\n return obj1 as T;\n }\n\n const result: ObjectType = { ...obj1 };\n\n for (const key in obj2) {\n if (Object.prototype.hasOwnProperty.call(obj2, key)) {\n if (\n typeof obj2[key] === \"object\" &&\n obj2[key] !== null &&\n Object.prototype.hasOwnProperty.call(obj1, key) &&\n !Array.isArray(obj2[key])\n ) {\n result[key] = deepMerge(obj1[key], obj2[key]);\n } else {\n result[key] = obj2[key];\n }\n }\n }\n\n return result as T;\n};\n\nexport const escapeRegExp = (str: string) => str.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n"],"names":["deepMerge","obj1","obj2","result","key","Object","prototype","hasOwnProperty","call","Array","isArray","fn","delay","timeout","args","clearTimeout","setTimeout","str","replace","props","regexPattern","returnFiltered","keys","reduce","acc","test","entries","filter","prevObj","currKeyValPair","length","stringToWeaveIn","hashCharacters","id","i","undefined","Math","floor","random","slice","JSON","parse","e","rem","parseFloat","getComputedStyle","document","documentElement","fontSize","lastTime","now","Date"],"mappings":"aAoBa,MA6KAA,EAAY,CAAmBC,EAAkBC,KAC5D,IAAKA,EACH,OAAOD,EAGT,MAAME,EAAqB,IAAKF,GAEhC,IAAK,MAAMG,KAAOF,EACZG,OAAOC,UAAUC,eAAeC,KAAKN,EAAME,KAEtB,iBAAdF,EAAKE,IACE,OAAdF,EAAKE,IACLC,OAAOC,UAAUC,eAAeC,KAAKP,EAAMG,KAC1CK,MAAMC,QAAQR,EAAKE,IAEpBD,EAAOC,GAAOJ,EAAUC,EAAKG,GAAMF,EAAKE,IAExCD,EAAOC,GAAOF,EAAKE,IAKzB,OAAOD,CAAW,mBA7FI,CAACQ,EAAqCC,KAC5D,IAAIC,EAEJ,OAAO,YAA6BC,GAMlCC,aAAaF,GAEbA,EAAUG,YAPI,KACZD,aAAaF,GACbF,KAAMG,EAAK,GAKeF,EAC9B,CAAC,2CAoF0BK,GAAgBA,EAAIC,QAAQ,sBAAuB,4BAnHrD,CAACC,EAAYC,EAAsBC,GAA0B,IAClFA,EACKhB,OAAOiB,KAAKH,GAAOI,QAAO,CAACC,EAAmBpB,KAC/CgB,EAAaK,KAAKrB,KACpBoB,EAAIpB,GAAOe,EAAMf,IAGZoB,IACN,CAAE,GAEEnB,OAAOqB,QAAQP,GACnBQ,QAAO,EAAEvB,MAAUgB,EAAaK,KAAKrB,KACrCmB,QACC,CAACK,EAASC,KAAc,IAAWD,EAAS,CAACC,EAAe,IAAKA,EAAe,MAChF,CAAE,sBAjGgB,CAACC,EAAS,GAAIC,KAEtC,MAAMC,EAAiB,CACrB,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,KAGF,IAAIC,EAAK,GAGT,IAAK,IAAIC,EAAI,EAAGA,EAAIJ,GAAUG,EAAGH,OAASA,EAAQI,IAAK,CAOrDD,EAAKA,GALwB,iBAApBF,QACkBI,KAAzBJ,aAAe,EAAfA,EAAkBG,KACjB,KAAKT,KAAKM,EAAgBG,IAEvB,GADAH,EAAgBG,IAEMF,EAAeI,KAAKC,MAAMD,KAAKE,SAAWN,EAAeF,QACtF,CAED,OAAOG,EAAGM,MAAM,EAAGT,EAAO,uBAkFCb,IAC3B,IACEuB,KAAKC,MAAMxB,EACZ,CAAC,MAAOyB,GACP,OAAO,CACR,CACD,OAAO,CAAI,kBAVWC,GACfA,EAAMC,WAAWC,iBAAiBC,SAASC,iBAAiBC,2BA1C7C,CAACrC,EAAqCC,KAC5D,IAAIqC,EAAW,EAEf,OAAO,WACL,MAAMC,EAAMC,KAAKD,MAEbA,EAAMD,GAAYrC,IACpBD,IACAsC,EAAWC,EAEf,CAAC"}
@@ -2,7 +2,6 @@ export declare const generateID: (length?: number, stringToWeaveIn?: string) =>
2
2
  export declare const filterProps: (props: any, regexPattern: RegExp, returnFiltered?: boolean) => {};
3
3
  export declare const debounce: (fn: (...args: unknown[]) => unknown, delay: number) => (...args: unknown[]) => void;
4
4
  export declare const throttle: (fn: (...args: unknown[]) => unknown, delay: number) => () => void;
5
- export declare const isEqual: (x: any, y: any) => boolean;
6
5
  export declare const areArraysDifferent: (arr1: Record<string, any>[], arr2: Record<string, any>[], key: string) => boolean;
7
6
  /** Source: https://stackoverflow.com/a/42769683/5084110 */
8
7
  export declare const remToPx: (rem: number) => number;
@@ -10,6 +9,6 @@ export declare const isJsonString: (str: any) => boolean;
10
9
  type ObjectType = {
11
10
  [key: string]: any;
12
11
  };
13
- export declare const deepMerge: <T extends {}>(obj1: ObjectType, obj2: ObjectType | false) => T;
12
+ export declare const deepMerge: <T extends object>(obj1: ObjectType, obj2: ObjectType | false) => T;
14
13
  export declare const escapeRegExp: (str: string) => string;
15
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"withReadOnly.cjs.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, any> = {};\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, any> = {};\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<any>) => {\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":["componentsWithKeyEventsToPrevent","getConditionalProps","readOnlyView","type","helperText","props","style","pointerEvents","userSelect","WrappedComponent","preventKeyUpAndKeyDownHandlerForSpecificComponents","preventSubmissionKeys","e","key","isEnterOrSpace","stopPropagation","preventDefault","includes","displayName","name","WithReadOnlyComponent","React","forwardRef","ref","required","children","restProps","createElement","_b","_a","getDisplayName"],"mappings":"oCAyBA,MAAMA,EAA6C,CAAC,mBAM9CC,EAAsB,CAACC,EAAuBC,EAAcC,KAChE,MAAMC,EAA6B,CAAA,EAenC,OAbIH,GACFG,EAAMC,MAAQ,CAAEC,cAAe,OAAQC,WAAY,QAC/CJ,IACFC,EAAMD,WAAa,KAGrBC,EAAMD,WAAaA,EAGjBD,IACFE,EAAMF,KAAOA,GAGRE,CAAK,uBAGiCI,IAC7C,MAAMC,EAAsDR,IAC1D,MAAMS,EAAyBC,IACN,CAACA,GAA+B,UAAVA,EAAEC,KAA6B,MAAVD,EAAEC,IAChEC,CAAeF,KACjBA,EAAEG,kBACFH,EAAEI,iBACH,EAGH,GACEd,GACAF,EAAiCiB,SAC/BR,EAAiBS,aAAeT,EAAiBU,MAEnD,CACA,MAAMd,EAA6B,CAEnCA,QAAiBO,IACfD,EAAsBC,EAAE,EAG1BP,UAAmBO,IACjBD,EAAsBC,EAAE,GAG1B,OAAOP,CACR,CAED,MAAO,EAAE,EAGLe,EAAwBC,EAAMC,YAClC,CAACjB,EAAiDkB,KAChD,MAAMrB,aACJA,GAAe,EAAKsB,SACpBA,EAAQC,SACRA,EAAQrB,WACRA,EAAUD,KACVA,EAAO,MACJuB,GACDrB,EAEJ,OACEgB,EAACM,cAAAlB,GACCc,IAAKA,KACAG,sBACcxB,EAAY,gBAChBA,EACfsB,UAAUtB,GAAuBsB,KAC7BvB,EAAoBC,EAAcC,EAAMC,MACxCM,EAAmDR,IAEtDuB,EAEH,IAKN,OADAL,EAAsBF,YAAc,gBAlFf,CAAKT,YAC1B,OAAgE,QAAzDmB,EAAgC,QAAhCC,EAAApB,EAAiBS,mBAAe,IAAAW,EAAAA,EAAApB,EAAiBU,YAAQ,IAAAS,EAAAA,EAAA,WAAW,EAiFvBE,CAAerB,KAC5DW,CAAqB"}
1
+ {"version":3,"file":"withReadOnly.cjs.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":["componentsWithKeyEventsToPrevent","getConditionalProps","readOnlyView","type","helperText","props","style","pointerEvents","userSelect","WrappedComponent","preventKeyUpAndKeyDownHandlerForSpecificComponents","preventSubmissionKeys","e","key","isEnterOrSpace","stopPropagation","preventDefault","includes","displayName","name","WithReadOnlyComponent","React","forwardRef","ref","required","children","restProps","createElement","_b","_a","getDisplayName"],"mappings":"oCAyBA,MAAMA,EAA6C,CAAC,mBAM9CC,EAAsB,CAACC,EAAuBC,EAAcC,KAChE,MAAMC,EAAiC,CAAA,EAevC,OAbIH,GACFG,EAAMC,MAAQ,CAAEC,cAAe,OAAQC,WAAY,QAC/CJ,IACFC,EAAMD,WAAa,KAGrBC,EAAMD,WAAaA,EAGjBD,IACFE,EAAMF,KAAOA,GAGRE,CAAK,uBAGiCI,IAC7C,MAAMC,EAAsDR,IAC1D,MAAMS,EAAyBC,IACN,CAACA,GAA+B,UAAVA,EAAEC,KAA6B,MAAVD,EAAEC,IAChEC,CAAeF,KACjBA,EAAEG,kBACFH,EAAEI,iBACH,EAGH,GACEd,GACAF,EAAiCiB,SAC/BR,EAAiBS,aAAeT,EAAiBU,MAEnD,CACA,MAAMd,EAAiC,CAEvCA,QAAiBO,IACfD,EAAsBC,EAAE,EAG1BP,UAAmBO,IACjBD,EAAsBC,EAAE,GAG1B,OAAOP,CACR,CAED,MAAO,EAAE,EAGLe,EAAwBC,EAAMC,YAClC,CAACjB,EAAiDkB,KAChD,MAAMrB,aACJA,GAAe,EAAKsB,SACpBA,EAAQC,SACRA,EAAQrB,WACRA,EAAUD,KACVA,EAAO,MACJuB,GACDrB,EAEJ,OACEgB,EAACM,cAAAlB,GACCc,IAAKA,KACAG,sBACcxB,EAAY,gBAChBA,EACfsB,UAAUtB,GAAuBsB,KAC7BvB,EAAoBC,EAAcC,EAAMC,MACxCM,EAAmDR,IAEtDuB,EAEH,IAKN,OADAL,EAAsBF,YAAc,gBAlFf,CAAKT,YAC1B,OAAgE,QAAzDmB,EAAgC,QAAhCC,EAAApB,EAAiBS,mBAAe,IAAAW,EAAAA,EAAApB,EAAiBU,YAAQ,IAAAS,EAAAA,EAAA,WAAW,EAiFvBE,CAAerB,KAC5DW,CAAqB"}
@@ -1,4 +1,4 @@
1
- import React, { Fragment } from 'react';
1
+ import React__default, { Fragment } from 'react';
2
2
  import { Icon, Icons } from '../Icon/Icon.esm.js';
3
3
  import { Typography } from '../Typography/Typography.esm.js';
4
4
  import classes from './Breadcrumbs.module.scss.esm.js';
@@ -19,29 +19,29 @@ import classes from './Breadcrumbs.module.scss.esm.js';
19
19
  * limitations under the License.
20
20
  */
21
21
  const BreadcrumbsComponent = ({ children, ariaLabel, className = "", ...rest }, ref) => {
22
- const items = React.Children.map(children, (child, index) => {
22
+ const items = React__default.Children.map(children, (child, index) => {
23
23
  const isLastElement = Array.isArray(children) ? index === children.length - 1 : true;
24
24
  const isFirstElement = Array.isArray(children) && index === 0;
25
- let item = React.cloneElement(child, {
25
+ const item = React__default.cloneElement(child, {
26
26
  className: classes["breadcrumb-link"],
27
27
  ...(isFirstElement
28
28
  ? {
29
- prefixIcon: React.createElement(Icon, { icon: Icons.HomeFilled, style: { marginRight: "0.35rem" } })
29
+ prefixIcon: React__default.createElement(Icon, { icon: Icons.HomeFilled, style: { marginRight: "0.35rem" } })
30
30
  }
31
31
  : {})
32
32
  });
33
33
  if (isLastElement) {
34
- return (React.createElement(Typography, { key: child.key, variant: "body", tag: "span", className: classes["last"], "aria-current": "page" }, child.props.children));
34
+ return (React__default.createElement(Typography, { key: child.key, variant: "body", tag: "span", className: classes["last"], "aria-current": "page" }, child.props.children));
35
35
  }
36
36
  else {
37
- return (React.createElement(Fragment, { key: child.key },
37
+ return (React__default.createElement(Fragment, { key: child.key },
38
38
  item,
39
- React.createElement(Icon, { icon: Icons.ChevronRight, className: classes["icon"] })));
39
+ React__default.createElement(Icon, { icon: Icons.ChevronRight, className: classes["icon"] })));
40
40
  }
41
41
  });
42
- return (React.createElement("nav", { ...rest, ref: ref, "aria-label": ariaLabel, className: `${classes["breadcrumbs"]} ${className}` }, items));
42
+ return (React__default.createElement("nav", { ...rest, ref: ref, "aria-label": ariaLabel, className: `${classes["breadcrumbs"]} ${className}` }, items));
43
43
  };
44
- const Breadcrumbs = React.forwardRef(BreadcrumbsComponent);
44
+ const Breadcrumbs = React__default.forwardRef(BreadcrumbsComponent);
45
45
 
46
46
  export { Breadcrumbs };
47
47
  //# sourceMappingURL=Breadcrumbs.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.esm.js","sources":["../../../../../src/components/Breadcrumbs/Breadcrumbs.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, {\n ComponentPropsWithRef,\n ForwardRefRenderFunction,\n Fragment,\n ReactElement\n} from \"react\";\nimport { Icon, Icons } from \"../Icon/Icon\";\nimport { Link, Props as LinkProps } from \"../Link/Link\";\nimport { Typography } from \"../Typography/Typography\";\nimport classes from \"./Breadcrumbs.module.scss\";\n\ntype ChildrenType = ReactElement<LinkProps, typeof Link>;\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n children: ChildrenType | ChildrenType[];\n ariaLabel: string;\n}\n\nconst BreadcrumbsComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, ariaLabel, className = \"\", ...rest }: Props,\n ref\n) => {\n const items = React.Children.map(children, (child, index) => {\n const isLastElement = Array.isArray(children) ? index === children.length - 1 : true;\n const isFirstElement = Array.isArray(children) && index === 0;\n let item = React.cloneElement(child, {\n className: classes[\"breadcrumb-link\"],\n ...(isFirstElement\n ? {\n prefixIcon: <Icon icon={Icons.HomeFilled} style={{ marginRight: \"0.35rem\" }} />\n }\n : {})\n } as LinkProps);\n\n if (isLastElement) {\n return (\n <Typography\n key={child.key}\n variant=\"body\"\n tag=\"span\"\n className={classes[\"last\"]}\n aria-current=\"page\"\n >\n {child.props.children}\n </Typography>\n );\n } else {\n return (\n <Fragment key={child.key}>\n {item}\n <Icon icon={Icons.ChevronRight} className={classes[\"icon\"]} />\n </Fragment>\n );\n }\n });\n return (\n <nav\n {...rest}\n ref={ref}\n aria-label={ariaLabel}\n className={`${classes[\"breadcrumbs\"]} ${className}`}\n >\n {items}\n </nav>\n );\n};\n\nexport const Breadcrumbs = React.forwardRef(BreadcrumbsComponent);\n"],"names":[],"mappings":";;;;;AAAA;;;;;;;;;;;;;;AAcG;AAoBH,MAAM,oBAAoB,GAAoD,CAC5E,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAS,EACvD,GAAG,KACD;AACF,IAAA,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAI;QAC1D,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,KAAK,KAAK,QAAQ,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC;AACrF,QAAA,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC;AAC9D,QAAA,IAAI,IAAI,GAAG,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE;AACnC,YAAA,SAAS,EAAE,OAAO,CAAC,iBAAiB,CAAC;AACrC,YAAA,IAAI,cAAc;AAChB,kBAAE;AACE,oBAAA,UAAU,EAAE,KAAC,CAAA,aAAA,CAAA,IAAI,EAAC,EAAA,IAAI,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,EAAI,CAAA;AAChF,iBAAA;kBACD,EAAE,CAAC;AACK,SAAA,CAAC,CAAC;QAEhB,IAAI,aAAa,EAAE;AACjB,YAAA,QACE,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EACT,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,OAAO,EAAC,MAAM,EACd,GAAG,EAAC,MAAM,EACV,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,EACb,cAAA,EAAA,MAAM,EAElB,EAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,CACV,EACb;SACH;aAAM;YACL,QACE,oBAAC,QAAQ,EAAA,EAAC,GAAG,EAAE,KAAK,CAAC,GAAG,EAAA;gBACrB,IAAI;AACL,gBAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAC,EAAA,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,EAAI,CAAA,CACrD,EACX;SACH;AACH,KAAC,CAAC,CAAC;IACH,QACE,KACM,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,GAAA,IAAI,EACR,GAAG,EAAE,GAAG,EAAA,YAAA,EACI,SAAS,EACrB,SAAS,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAI,CAAA,EAAA,SAAS,EAAE,EAElD,EAAA,KAAK,CACF,EACN;AACJ,CAAC,CAAC;AAEW,MAAA,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC,oBAAoB;;;;"}
1
+ {"version":3,"file":"Breadcrumbs.esm.js","sources":["../../../../../src/components/Breadcrumbs/Breadcrumbs.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, {\n ComponentPropsWithRef,\n ForwardRefRenderFunction,\n Fragment,\n ReactElement\n} from \"react\";\nimport { Icon, Icons } from \"../Icon/Icon\";\nimport { Link, Props as LinkProps } from \"../Link/Link\";\nimport { Typography } from \"../Typography/Typography\";\nimport classes from \"./Breadcrumbs.module.scss\";\n\ntype ChildrenType = ReactElement<LinkProps, typeof Link>;\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n children: ChildrenType | ChildrenType[];\n ariaLabel: string;\n}\n\nconst BreadcrumbsComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, ariaLabel, className = \"\", ...rest }: Props,\n ref\n) => {\n const items = React.Children.map(children, (child, index) => {\n const isLastElement = Array.isArray(children) ? index === children.length - 1 : true;\n const isFirstElement = Array.isArray(children) && index === 0;\n const item = React.cloneElement(child, {\n className: classes[\"breadcrumb-link\"],\n ...(isFirstElement\n ? {\n prefixIcon: <Icon icon={Icons.HomeFilled} style={{ marginRight: \"0.35rem\" }} />\n }\n : {})\n } as LinkProps);\n\n if (isLastElement) {\n return (\n <Typography\n key={child.key}\n variant=\"body\"\n tag=\"span\"\n className={classes[\"last\"]}\n aria-current=\"page\"\n >\n {child.props.children}\n </Typography>\n );\n } else {\n return (\n <Fragment key={child.key}>\n {item}\n <Icon icon={Icons.ChevronRight} className={classes[\"icon\"]} />\n </Fragment>\n );\n }\n });\n return (\n <nav\n {...rest}\n ref={ref}\n aria-label={ariaLabel}\n className={`${classes[\"breadcrumbs\"]} ${className}`}\n >\n {items}\n </nav>\n );\n};\n\nexport const Breadcrumbs = React.forwardRef(BreadcrumbsComponent);\n"],"names":["React"],"mappings":";;;;;AAAA;;;;;;;;;;;;;;AAcG;AAoBH,MAAM,oBAAoB,GAAoD,CAC5E,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAS,EACvD,GAAG,KACD;AACF,IAAA,MAAM,KAAK,GAAGA,cAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAI;QAC1D,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,KAAK,KAAK,QAAQ,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC;AACrF,QAAA,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC;AAC9D,QAAA,MAAM,IAAI,GAAGA,cAAK,CAAC,YAAY,CAAC,KAAK,EAAE;AACrC,YAAA,SAAS,EAAE,OAAO,CAAC,iBAAiB,CAAC;AACrC,YAAA,IAAI,cAAc;AAChB,kBAAE;AACE,oBAAA,UAAU,EAAEA,cAAC,CAAA,aAAA,CAAA,IAAI,EAAC,EAAA,IAAI,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,EAAI,CAAA;AAChF,iBAAA;kBACD,EAAE,CAAC;AACK,SAAA,CAAC,CAAC;QAEhB,IAAI,aAAa,EAAE;AACjB,YAAA,QACEA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EACT,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,OAAO,EAAC,MAAM,EACd,GAAG,EAAC,MAAM,EACV,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,EACb,cAAA,EAAA,MAAM,EAElB,EAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,CACV,EACb;SACH;aAAM;YACL,QACEA,6BAAC,QAAQ,EAAA,EAAC,GAAG,EAAE,KAAK,CAAC,GAAG,EAAA;gBACrB,IAAI;AACL,gBAAAA,cAAA,CAAA,aAAA,CAAC,IAAI,EAAC,EAAA,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,EAAI,CAAA,CACrD,EACX;SACH;AACH,KAAC,CAAC,CAAC;IACH,QACEA,cACM,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,GAAA,IAAI,EACR,GAAG,EAAE,GAAG,EAAA,YAAA,EACI,SAAS,EACrB,SAAS,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAI,CAAA,EAAA,SAAS,EAAE,EAElD,EAAA,KAAK,CACF,EACN;AACJ,CAAC,CAAC;AAEW,MAAA,WAAW,GAAGA,cAAK,CAAC,UAAU,CAAC,oBAAoB;;;;"}
@@ -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 */.Breadcrumbs_breadcrumbs_6dWwy .Breadcrumbs_last_6dWwy{color:var(--color-primary900);font-weight:700;margin:0}.Breadcrumbs_breadcrumbs_6dWwy .Breadcrumbs_icon_6dWwy{color:var(--color-primary);font-size:.625rem;line-height:var(--default-line-height);margin:0 .84rem}.Breadcrumbs_breadcrumbs_6dWwy .Breadcrumbs_breadcrumb-link_6dWwy{text-decoration:none}.Breadcrumbs_breadcrumbs_6dWwy .Breadcrumbs_breadcrumb-link_6dWwy.Breadcrumbs_visited_6dWwy [data-underline],.Breadcrumbs_breadcrumbs_6dWwy .Breadcrumbs_breadcrumb-link_6dWwy:hover [data-underline]{text-decoration:underline}.Breadcrumbs_breadcrumbs_6dWwy .Breadcrumbs_breadcrumb-link_6dWwy:focus,.Breadcrumbs_breadcrumbs_6dWwy .Breadcrumbs_breadcrumb-link_6dWwy:focus-visible{outline:2px solid var(--color-focus);outline-offset:1px}.Breadcrumbs_breadcrumbs_6dWwy .Breadcrumbs_breadcrumb-link_6dWwy:visited{color:var(--color-primary700)}.Breadcrumbs_breadcrumbs_6dWwy .Breadcrumbs_breadcrumb-link_6dWwy:active{color:var(--color-primary900);font-weight:700}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJyZWFkY3J1bWJzLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztFQWNFLENBQ0YsdURBQ0UsNkJBQThCLENBQzlCLGVBQWdCLENBQ2hCLFFBQ0YsQ0FDQSx1REFDRSwwQkFBMkIsQ0FDM0IsaUJBQW1CLENBQ25CLHNDQUF1QyxDQUN2QyxlQUNGLENBQ0Esa0VBQ0Usb0JBQ0YsQ0FDQSxzTUFDRSx5QkFDRixDQUNBLHdKQUNFLG9DQUFxQyxDQUNyQyxrQkFDRixDQUNBLDBFQUNFLDZCQUNGLENBQ0EseUVBQ0UsNkJBQThCLENBQzlCLGVBQ0YiLCJmaWxlIjoiQnJlYWRjcnVtYnMubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIvKiFcbiAqIENvcHlyaWdodCAyMDIyIE9uZVdlbGNvbWUgQi5WLlxuICpcbiAqICAgIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiAgICB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiAgICBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgICAgaHR0cDovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogICAgVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogICAgZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogICAgV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiAgICBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiAgICBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuLmJyZWFkY3J1bWJzIC5sYXN0IHtcbiAgY29sb3I6IHZhcigtLWNvbG9yLXByaW1hcnk5MDApO1xuICBmb250LXdlaWdodDogNzAwO1xuICBtYXJnaW46IDA7XG59XG4uYnJlYWRjcnVtYnMgLmljb24ge1xuICBjb2xvcjogdmFyKC0tY29sb3ItcHJpbWFyeSk7XG4gIGZvbnQtc2l6ZTogMC42MjVyZW07XG4gIGxpbmUtaGVpZ2h0OiB2YXIoLS1kZWZhdWx0LWxpbmUtaGVpZ2h0KTtcbiAgbWFyZ2luOiAwIDAuODRyZW07XG59XG4uYnJlYWRjcnVtYnMgLmJyZWFkY3J1bWItbGluayB7XG4gIHRleHQtZGVjb3JhdGlvbjogbm9uZTtcbn1cbi5icmVhZGNydW1icyAuYnJlYWRjcnVtYi1saW5rOmhvdmVyIFtkYXRhLXVuZGVybGluZV0sIC5icmVhZGNydW1icyAuYnJlYWRjcnVtYi1saW5rLnZpc2l0ZWQgW2RhdGEtdW5kZXJsaW5lXSB7XG4gIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lO1xufVxuLmJyZWFkY3J1bWJzIC5icmVhZGNydW1iLWxpbms6Zm9jdXMsIC5icmVhZGNydW1icyAuYnJlYWRjcnVtYi1saW5rOmZvY3VzLXZpc2libGUge1xuICBvdXRsaW5lOiAycHggc29saWQgdmFyKC0tY29sb3ItZm9jdXMpO1xuICBvdXRsaW5lLW9mZnNldDogMXB4O1xufVxuLmJyZWFkY3J1bWJzIC5icmVhZGNydW1iLWxpbms6dmlzaXRlZCB7XG4gIGNvbG9yOiB2YXIoLS1jb2xvci1wcmltYXJ5NzAwKTtcbn1cbi5icmVhZGNydW1icyAuYnJlYWRjcnVtYi1saW5rOmFjdGl2ZSB7XG4gIGNvbG9yOiB2YXIoLS1jb2xvci1wcmltYXJ5OTAwKTtcbiAgZm9udC13ZWlnaHQ6IDcwMDtcbn0iXX0= */";
4
- var classes = {"breadcrumbs":"Breadcrumbs_breadcrumbs_6dWwy","last":"Breadcrumbs_last_6dWwy","icon":"Breadcrumbs_icon_6dWwy","breadcrumb-link":"Breadcrumbs_breadcrumb-link_6dWwy","visited":"Breadcrumbs_visited_6dWwy"};
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 */.Breadcrumbs_breadcrumbs_Pphm5 .Breadcrumbs_last_Pphm5{color:var(--color-primary900);font-weight:700;margin:0}.Breadcrumbs_breadcrumbs_Pphm5 .Breadcrumbs_icon_Pphm5{color:var(--color-primary);font-size:var(--font-size-small);line-height:var(--default-line-height);margin:0 .84rem}.Breadcrumbs_breadcrumbs_Pphm5 .Breadcrumbs_breadcrumb-link_Pphm5{text-decoration:none}.Breadcrumbs_breadcrumbs_Pphm5 .Breadcrumbs_breadcrumb-link_Pphm5.Breadcrumbs_visited_Pphm5 [data-underline],.Breadcrumbs_breadcrumbs_Pphm5 .Breadcrumbs_breadcrumb-link_Pphm5:hover [data-underline]{text-decoration:underline}.Breadcrumbs_breadcrumbs_Pphm5 .Breadcrumbs_breadcrumb-link_Pphm5:focus,.Breadcrumbs_breadcrumbs_Pphm5 .Breadcrumbs_breadcrumb-link_Pphm5:focus-visible{outline:2px solid var(--color-focus);outline-offset:1px}.Breadcrumbs_breadcrumbs_Pphm5 .Breadcrumbs_breadcrumb-link_Pphm5:visited{color:var(--color-primary700)}.Breadcrumbs_breadcrumbs_Pphm5 .Breadcrumbs_breadcrumb-link_Pphm5:active{color:var(--color-primary900);font-weight:700}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJyZWFkY3J1bWJzLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztFQWNFLENBQ0YsdURBQ0UsNkJBQThCLENBQzlCLGVBQWdCLENBQ2hCLFFBQ0YsQ0FDQSx1REFDRSwwQkFBMkIsQ0FDM0IsZ0NBQWlDLENBQ2pDLHNDQUF1QyxDQUN2QyxlQUNGLENBQ0Esa0VBQ0Usb0JBQ0YsQ0FDQSxzTUFDRSx5QkFDRixDQUNBLHdKQUNFLG9DQUFxQyxDQUNyQyxrQkFDRixDQUNBLDBFQUNFLDZCQUNGLENBQ0EseUVBQ0UsNkJBQThCLENBQzlCLGVBQ0YiLCJmaWxlIjoiQnJlYWRjcnVtYnMubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIvKiFcbiAqIENvcHlyaWdodCAyMDIyIE9uZVdlbGNvbWUgQi5WLlxuICpcbiAqICAgIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiAgICB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiAgICBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgICAgaHR0cDovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogICAgVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogICAgZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogICAgV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiAgICBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiAgICBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuLmJyZWFkY3J1bWJzIC5sYXN0IHtcbiAgY29sb3I6IHZhcigtLWNvbG9yLXByaW1hcnk5MDApO1xuICBmb250LXdlaWdodDogNzAwO1xuICBtYXJnaW46IDA7XG59XG4uYnJlYWRjcnVtYnMgLmljb24ge1xuICBjb2xvcjogdmFyKC0tY29sb3ItcHJpbWFyeSk7XG4gIGZvbnQtc2l6ZTogdmFyKC0tZm9udC1zaXplLXNtYWxsKTtcbiAgbGluZS1oZWlnaHQ6IHZhcigtLWRlZmF1bHQtbGluZS1oZWlnaHQpO1xuICBtYXJnaW46IDAgMC44NHJlbTtcbn1cbi5icmVhZGNydW1icyAuYnJlYWRjcnVtYi1saW5rIHtcbiAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xufVxuLmJyZWFkY3J1bWJzIC5icmVhZGNydW1iLWxpbms6aG92ZXIgW2RhdGEtdW5kZXJsaW5lXSwgLmJyZWFkY3J1bWJzIC5icmVhZGNydW1iLWxpbmsudmlzaXRlZCBbZGF0YS11bmRlcmxpbmVdIHtcbiAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7XG59XG4uYnJlYWRjcnVtYnMgLmJyZWFkY3J1bWItbGluazpmb2N1cywgLmJyZWFkY3J1bWJzIC5icmVhZGNydW1iLWxpbms6Zm9jdXMtdmlzaWJsZSB7XG4gIG91dGxpbmU6IDJweCBzb2xpZCB2YXIoLS1jb2xvci1mb2N1cyk7XG4gIG91dGxpbmUtb2Zmc2V0OiAxcHg7XG59XG4uYnJlYWRjcnVtYnMgLmJyZWFkY3J1bWItbGluazp2aXNpdGVkIHtcbiAgY29sb3I6IHZhcigtLWNvbG9yLXByaW1hcnk3MDApO1xufVxuLmJyZWFkY3J1bWJzIC5icmVhZGNydW1iLWxpbms6YWN0aXZlIHtcbiAgY29sb3I6IHZhcigtLWNvbG9yLXByaW1hcnk5MDApO1xuICBmb250LXdlaWdodDogNzAwO1xufSJdfQ== */";
4
+ var classes = {"breadcrumbs":"Breadcrumbs_breadcrumbs_Pphm5","last":"Breadcrumbs_last_Pphm5","icon":"Breadcrumbs_icon_Pphm5","breadcrumb-link":"Breadcrumbs_breadcrumb-link_Pphm5","visited":"Breadcrumbs_visited_Pphm5"};
5
5
  styleInject(css_248z);
6
6
 
7
7
  export { classes as default };
@@ -1,4 +1,4 @@
1
- import React, { Fragment } from 'react';
1
+ import React__default, { Fragment } from 'react';
2
2
  import classes from './BaseButton.module.scss.esm.js';
3
3
  import { ButtonSpinner } from './Spinner.esm.js';
4
4
 
@@ -20,16 +20,17 @@ import { ButtonSpinner } from './Spinner.esm.js';
20
20
  const BaseButtonComponent = ({ children, type = "button", className, loading, disabled, hidden, ...rest }, ref) => {
21
21
  const validTypes = ["submit", "button", "reset"];
22
22
  const isDisabled = disabled !== null && disabled !== void 0 ? disabled : loading;
23
- if (!validTypes.includes(type))
23
+ if (!validTypes.includes(type)) {
24
24
  throw new Error(`You have entered an invalid button type. Expected 'submit', 'button' or 'reset' got ${type}`);
25
+ }
25
26
  const buttonClasses = [classes.button];
26
27
  loading && buttonClasses.push(classes.loading);
27
28
  className && buttonClasses.push(className);
28
- return (React.createElement("button", { ...rest, disabled: isDisabled, ref: ref, type: type, hidden: hidden, className: hidden ? "" : buttonClasses.join(" ") }, loading ? (React.createElement(Fragment, null,
29
- React.createElement("div", { className: classes["content-hidden"] }, children),
30
- React.createElement(ButtonSpinner, { className: classes["spinner"] }))) : (children)));
29
+ return (React__default.createElement("button", { ...rest, disabled: isDisabled, ref: ref, type: type, hidden: hidden, className: hidden ? "" : buttonClasses.join(" ") }, loading ? (React__default.createElement(Fragment, null,
30
+ React__default.createElement("div", { className: classes["content-hidden"] }, children),
31
+ React__default.createElement(ButtonSpinner, { className: classes["spinner"] }))) : (children)));
31
32
  };
32
- const BaseButton = React.forwardRef(BaseButtonComponent);
33
+ const BaseButton = React__default.forwardRef(BaseButtonComponent);
33
34
 
34
35
  export { BaseButton };
35
36
  //# sourceMappingURL=BaseButton.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseButton.esm.js","sources":["../../../../../src/components/Button/BaseButton.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, { ForwardRefRenderFunction, ComponentPropsWithRef, Fragment } from \"react\";\nimport classes from \"./BaseButton.module.scss\";\nimport { ButtonSpinner } from \"./Spinner\";\n\nexport interface Props extends ComponentPropsWithRef<\"button\"> {\n type?: \"submit\" | \"button\" | \"reset\";\n disabled?: boolean;\n loading?: boolean;\n color?: \"primary\" | \"danger\" | \"default\" | \"success\" | \"warning\";\n}\n\nconst BaseButtonComponent: ForwardRefRenderFunction<HTMLButtonElement, Props> = (\n { children, type = \"button\", className, loading, disabled, hidden, ...rest },\n ref\n) => {\n const validTypes = [\"submit\", \"button\", \"reset\"];\n const isDisabled = disabled ?? loading;\n if (!validTypes.includes(type))\n throw new Error(\n `You have entered an invalid button type. Expected 'submit', 'button' or 'reset' got ${type}`\n );\n\n const buttonClasses = [classes.button];\n loading && buttonClasses.push(classes.loading);\n className && buttonClasses.push(className);\n\n return (\n <button\n {...rest}\n disabled={isDisabled}\n ref={ref}\n type={type}\n hidden={hidden}\n className={hidden ? \"\" : buttonClasses.join(\" \")}\n >\n {loading ? (\n <Fragment>\n <div className={classes[\"content-hidden\"]}>{children}</div>\n <ButtonSpinner className={classes[\"spinner\"]} />\n </Fragment>\n ) : (\n children\n )}\n </button>\n );\n};\n\nexport const BaseButton = React.forwardRef(BaseButtonComponent);\n"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;AAcG;AAaH,MAAM,mBAAmB,GAAuD,CAC9E,EAAE,QAAQ,EAAE,IAAI,GAAG,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAC5E,GAAG,KACD;IACF,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACjD,MAAM,UAAU,GAAG,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAR,KAAA,CAAA,GAAA,QAAQ,GAAI,OAAO,CAAC;AACvC,IAAA,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC5B,QAAA,MAAM,IAAI,KAAK,CACb,uFAAuF,IAAI,CAAA,CAAE,CAC9F,CAAC;AAEJ,IAAA,MAAM,aAAa,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACvC,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAC/C,IAAA,SAAS,IAAI,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAE3C,IAAA,QACE,KACM,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,GAAA,IAAI,EACR,QAAQ,EAAE,UAAU,EACpB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAAG,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,IAE/C,OAAO,IACN,oBAAC,QAAQ,EAAA,IAAA;QACP,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAAA,EAAG,QAAQ,CAAO;AAC3D,QAAA,KAAA,CAAA,aAAA,CAAC,aAAa,EAAC,EAAA,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,EAAA,CAAI,CACvC,KAEX,QAAQ,CACT,CACM,EACT;AACJ,CAAC,CAAC;AAEW,MAAA,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"BaseButton.esm.js","sources":["../../../../../src/components/Button/BaseButton.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, { ForwardRefRenderFunction, ComponentPropsWithRef, Fragment } from \"react\";\nimport classes from \"./BaseButton.module.scss\";\nimport { ButtonSpinner } from \"./Spinner\";\n\nexport interface Props extends ComponentPropsWithRef<\"button\"> {\n type?: \"submit\" | \"button\" | \"reset\";\n disabled?: boolean;\n loading?: boolean;\n color?: \"primary\" | \"danger\" | \"default\" | \"success\" | \"warning\";\n}\n\nconst BaseButtonComponent: ForwardRefRenderFunction<HTMLButtonElement, Props> = (\n { children, type = \"button\", className, loading, disabled, hidden, ...rest },\n ref\n) => {\n const validTypes = [\"submit\", \"button\", \"reset\"];\n const isDisabled = disabled ?? loading;\n if (!validTypes.includes(type)) {\n throw new Error(\n `You have entered an invalid button type. Expected 'submit', 'button' or 'reset' got ${type}`\n );\n }\n\n const buttonClasses = [classes.button];\n loading && buttonClasses.push(classes.loading);\n className && buttonClasses.push(className);\n\n return (\n <button\n {...rest}\n disabled={isDisabled}\n ref={ref}\n type={type}\n hidden={hidden}\n className={hidden ? \"\" : buttonClasses.join(\" \")}\n >\n {loading ? (\n <Fragment>\n <div className={classes[\"content-hidden\"]}>{children}</div>\n <ButtonSpinner className={classes[\"spinner\"]} />\n </Fragment>\n ) : (\n children\n )}\n </button>\n );\n};\n\nexport const BaseButton = React.forwardRef(BaseButtonComponent);\n"],"names":["React"],"mappings":";;;;AAAA;;;;;;;;;;;;;;AAcG;AAaH,MAAM,mBAAmB,GAAuD,CAC9E,EAAE,QAAQ,EAAE,IAAI,GAAG,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAC5E,GAAG,KACD;IACF,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACjD,MAAM,UAAU,GAAG,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAR,KAAA,CAAA,GAAA,QAAQ,GAAI,OAAO,CAAC;IACvC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;AAC9B,QAAA,MAAM,IAAI,KAAK,CACb,uFAAuF,IAAI,CAAA,CAAE,CAC9F,CAAC;KACH;AAED,IAAA,MAAM,aAAa,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACvC,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAC/C,IAAA,SAAS,IAAI,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAE3C,IAAA,QACEA,cACM,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,GAAA,IAAI,EACR,QAAQ,EAAE,UAAU,EACpB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAAG,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,IAE/C,OAAO,IACNA,6BAAC,QAAQ,EAAA,IAAA;QACPA,cAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAAA,EAAG,QAAQ,CAAO;AAC3D,QAAAA,cAAA,CAAA,aAAA,CAAC,aAAa,EAAC,EAAA,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,EAAA,CAAI,CACvC,KAEX,QAAQ,CACT,CACM,EACT;AACJ,CAAC,CAAC;AAEW,MAAA,UAAU,GAAGA,cAAK,CAAC,UAAU,CAAC,mBAAmB;;;;"}