@onewelcome/react-lib-components 4.2.0 → 5.0.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 (783) hide show
  1. package/dist/cjs/Breadcrumbs/Breadcrumbs.cjs.js +2 -0
  2. package/dist/cjs/Breadcrumbs/Breadcrumbs.cjs.js.map +1 -0
  3. package/dist/cjs/Breadcrumbs/Breadcrumbs.module.cjs.js +2 -0
  4. package/dist/cjs/Breadcrumbs/Breadcrumbs.module.cjs.js.map +1 -0
  5. package/dist/cjs/Button/BaseButton.cjs.js +2 -0
  6. package/dist/cjs/Button/BaseButton.cjs.js.map +1 -0
  7. package/dist/cjs/Button/BaseButton.module.cjs.js +2 -0
  8. package/dist/cjs/Button/BaseButton.module.cjs.js.map +1 -0
  9. package/dist/cjs/Button/Button.cjs.js +2 -0
  10. package/dist/cjs/Button/Button.cjs.js.map +1 -0
  11. package/dist/cjs/Button/Button.module.cjs.js +2 -0
  12. package/dist/cjs/Button/Button.module.cjs.js.map +1 -0
  13. package/dist/cjs/Button/IconButton.cjs.js +2 -0
  14. package/dist/cjs/Button/IconButton.cjs.js.map +1 -0
  15. package/dist/cjs/Button/IconButton.module.cjs.js +2 -0
  16. package/dist/cjs/Button/IconButton.module.cjs.js.map +1 -0
  17. package/dist/cjs/Button/Spinner.cjs.js +2 -0
  18. package/dist/cjs/Button/Spinner.cjs.js.map +1 -0
  19. package/dist/cjs/ContextMenu/ContextMenu.cjs.js +2 -0
  20. package/dist/cjs/ContextMenu/ContextMenu.cjs.js.map +1 -0
  21. package/dist/cjs/ContextMenu/ContextMenu.module.cjs.js +2 -0
  22. package/dist/cjs/ContextMenu/ContextMenu.module.cjs.js.map +1 -0
  23. package/dist/cjs/ContextMenu/ContextMenuItem.cjs.js +2 -0
  24. package/dist/cjs/ContextMenu/ContextMenuItem.cjs.js.map +1 -0
  25. package/dist/cjs/ContextMenu/ContextMenuItem.module.cjs.js +2 -0
  26. package/dist/cjs/ContextMenu/ContextMenuItem.module.cjs.js.map +1 -0
  27. package/dist/cjs/ContextMenu/ContextMenuService.cjs.js +2 -0
  28. package/dist/cjs/ContextMenu/ContextMenuService.cjs.js.map +1 -0
  29. package/dist/cjs/DataGrid/DataGrid.cjs.js +2 -0
  30. package/dist/cjs/DataGrid/DataGrid.cjs.js.map +1 -0
  31. package/dist/cjs/DataGrid/DataGrid.module.cjs.js +2 -0
  32. package/dist/cjs/DataGrid/DataGrid.module.cjs.js.map +1 -0
  33. package/dist/cjs/DataGrid/DataGridActions/DataGridActions.cjs.js +2 -0
  34. package/dist/cjs/DataGrid/DataGridActions/DataGridActions.cjs.js.map +1 -0
  35. package/dist/cjs/DataGrid/DataGridActions/DataGridActions.module.cjs.js +2 -0
  36. package/dist/cjs/DataGrid/DataGridActions/DataGridActions.module.cjs.js.map +1 -0
  37. package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.cjs.js +2 -0
  38. package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.cjs.js.map +1 -0
  39. package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.module.cjs.js +2 -0
  40. package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.module.cjs.js.map +1 -0
  41. package/dist/cjs/DataGrid/DataGridBody/DataGridBody.cjs.js +2 -0
  42. package/dist/cjs/DataGrid/DataGridBody/DataGridBody.cjs.js.map +1 -0
  43. package/dist/cjs/DataGrid/DataGridBody/DataGridBody.module.cjs.js +2 -0
  44. package/dist/cjs/DataGrid/DataGridBody/DataGridBody.module.cjs.js.map +1 -0
  45. package/dist/cjs/DataGrid/DataGridBody/DataGridCell.cjs.js +2 -0
  46. package/dist/cjs/DataGrid/DataGridBody/DataGridCell.cjs.js.map +1 -0
  47. package/dist/cjs/DataGrid/DataGridBody/DataGridCell.module.cjs.js +2 -0
  48. package/dist/cjs/DataGrid/DataGridBody/DataGridCell.module.cjs.js.map +1 -0
  49. package/dist/cjs/DataGrid/DataGridBody/DataGridRow.cjs.js +2 -0
  50. package/dist/cjs/DataGrid/DataGridBody/DataGridRow.cjs.js.map +1 -0
  51. package/dist/cjs/DataGrid/DataGridBody/DataGridRow.module.cjs.js +2 -0
  52. package/dist/cjs/DataGrid/DataGridBody/DataGridRow.module.cjs.js.map +1 -0
  53. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.cjs.js +2 -0
  54. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.cjs.js.map +1 -0
  55. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.module.cjs.js +2 -0
  56. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.module.cjs.js.map +1 -0
  57. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js +2 -0
  58. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js.map +1 -0
  59. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.module.cjs.js +2 -0
  60. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.module.cjs.js.map +1 -0
  61. package/dist/cjs/Form/Checkbox/Checkbox.cjs.js +2 -0
  62. package/dist/cjs/Form/Checkbox/Checkbox.cjs.js.map +1 -0
  63. package/dist/cjs/Form/Checkbox/Checkbox.module.cjs.js +2 -0
  64. package/dist/cjs/Form/Checkbox/Checkbox.module.cjs.js.map +1 -0
  65. package/dist/cjs/Form/Fieldset/Fieldset.cjs.js +2 -0
  66. package/dist/cjs/Form/Fieldset/Fieldset.cjs.js.map +1 -0
  67. package/dist/cjs/Form/Fieldset/Fieldset.module.cjs.js +2 -0
  68. package/dist/cjs/Form/Fieldset/Fieldset.module.cjs.js.map +1 -0
  69. package/dist/cjs/Form/Form.cjs.js +2 -0
  70. package/dist/cjs/Form/Form.cjs.js.map +1 -0
  71. package/dist/cjs/Form/Form.module.cjs.js +2 -0
  72. package/dist/cjs/Form/Form.module.cjs.js.map +1 -0
  73. package/dist/cjs/Form/FormControl/FormControl.cjs.js +2 -0
  74. package/dist/cjs/Form/FormControl/FormControl.cjs.js.map +1 -0
  75. package/dist/cjs/Form/FormControl/FormControl.module.cjs.js +2 -0
  76. package/dist/cjs/Form/FormControl/FormControl.module.cjs.js.map +1 -0
  77. package/dist/cjs/Form/FormGroup/FormGroup.cjs.js +2 -0
  78. package/dist/cjs/Form/FormGroup/FormGroup.cjs.js.map +1 -0
  79. package/dist/cjs/Form/FormGroup/FormGroup.module.cjs.js +2 -0
  80. package/dist/cjs/Form/FormGroup/FormGroup.module.cjs.js.map +1 -0
  81. package/dist/cjs/Form/FormHelperText/FormHelperText.cjs.js +2 -0
  82. package/dist/cjs/Form/FormHelperText/FormHelperText.cjs.js.map +1 -0
  83. package/dist/cjs/Form/FormHelperText/FormHelperText.module.cjs.js +2 -0
  84. package/dist/cjs/Form/FormHelperText/FormHelperText.module.cjs.js.map +1 -0
  85. package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js +2 -0
  86. package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js.map +1 -0
  87. package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.module.cjs.js +2 -0
  88. package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.module.cjs.js.map +1 -0
  89. package/dist/cjs/Form/Input/Input.cjs.js +2 -0
  90. package/dist/cjs/Form/Input/Input.cjs.js.map +1 -0
  91. package/dist/cjs/Form/Input/Input.module.cjs.js +2 -0
  92. package/dist/cjs/Form/Input/Input.module.cjs.js.map +1 -0
  93. package/dist/cjs/Form/Label/Label.cjs.js +2 -0
  94. package/dist/cjs/Form/Label/Label.cjs.js.map +1 -0
  95. package/dist/cjs/Form/Label/Label.module.cjs.js +2 -0
  96. package/dist/cjs/Form/Label/Label.module.cjs.js.map +1 -0
  97. package/dist/cjs/Form/Radio/Radio.cjs.js +2 -0
  98. package/dist/cjs/Form/Radio/Radio.cjs.js.map +1 -0
  99. package/dist/cjs/Form/Radio/Radio.module.cjs.js +2 -0
  100. package/dist/cjs/Form/Radio/Radio.module.cjs.js.map +1 -0
  101. package/dist/cjs/Form/Select/Option.cjs.js +2 -0
  102. package/dist/cjs/Form/Select/Option.cjs.js.map +1 -0
  103. package/dist/cjs/Form/Select/Select.cjs.js +2 -0
  104. package/dist/cjs/Form/Select/Select.cjs.js.map +1 -0
  105. package/dist/cjs/Form/Select/Select.module.cjs.js +2 -0
  106. package/dist/cjs/Form/Select/Select.module.cjs.js.map +1 -0
  107. package/dist/cjs/Form/Select/SelectService.cjs.js +2 -0
  108. package/dist/cjs/Form/Select/SelectService.cjs.js.map +1 -0
  109. package/dist/cjs/Form/Textarea/Textarea.cjs.js +2 -0
  110. package/dist/cjs/Form/Textarea/Textarea.cjs.js.map +1 -0
  111. package/dist/cjs/Form/Textarea/Textarea.module.cjs.js +2 -0
  112. package/dist/cjs/Form/Textarea/Textarea.module.cjs.js.map +1 -0
  113. package/dist/cjs/Form/Toggle/Toggle.cjs.js +2 -0
  114. package/dist/cjs/Form/Toggle/Toggle.cjs.js.map +1 -0
  115. package/dist/cjs/Form/Toggle/Toggle.module.cjs.js +2 -0
  116. package/dist/cjs/Form/Toggle/Toggle.module.cjs.js.map +1 -0
  117. package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js +2 -0
  118. package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js.map +1 -0
  119. package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.cjs.js +2 -0
  120. package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.cjs.js.map +1 -0
  121. package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.cjs.js +2 -0
  122. package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.cjs.js.map +1 -0
  123. package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.module.cjs.js +2 -0
  124. package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.module.cjs.js.map +1 -0
  125. package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +2 -0
  126. package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -0
  127. package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.module.cjs.js +2 -0
  128. package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.module.cjs.js.map +1 -0
  129. package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js +2 -0
  130. package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js.map +1 -0
  131. package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.module.cjs.js +2 -0
  132. package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.module.cjs.js.map +1 -0
  133. package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js +2 -0
  134. package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js.map +1 -0
  135. package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.cjs.js +2 -0
  136. package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.cjs.js.map +1 -0
  137. package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.cjs.js +2 -0
  138. package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.cjs.js.map +1 -0
  139. package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.module.cjs.js +2 -0
  140. package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.module.cjs.js.map +1 -0
  141. package/dist/cjs/Icon/Icon.cjs.js +2 -0
  142. package/dist/cjs/Icon/Icon.cjs.js.map +1 -0
  143. package/dist/cjs/Icon/Icon.module.cjs.js +2 -0
  144. package/dist/cjs/Icon/Icon.module.cjs.js.map +1 -0
  145. package/dist/cjs/Link/Link.cjs.js +2 -0
  146. package/dist/cjs/Link/Link.cjs.js.map +1 -0
  147. package/dist/cjs/Link/Link.module.cjs.js +2 -0
  148. package/dist/cjs/Link/Link.module.cjs.js.map +1 -0
  149. package/dist/cjs/Notifications/Banner/Banner.cjs.js +2 -0
  150. package/dist/cjs/Notifications/Banner/Banner.cjs.js.map +1 -0
  151. package/dist/cjs/Notifications/Banner/Banner.module.cjs.js +2 -0
  152. package/dist/cjs/Notifications/Banner/Banner.module.cjs.js.map +1 -0
  153. package/dist/cjs/Notifications/BaseModal/BaseModal.cjs.js +2 -0
  154. package/dist/cjs/Notifications/BaseModal/BaseModal.cjs.js.map +1 -0
  155. package/dist/cjs/Notifications/BaseModal/BaseModal.module.cjs.js +2 -0
  156. package/dist/cjs/Notifications/BaseModal/BaseModal.module.cjs.js.map +1 -0
  157. package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js +2 -0
  158. package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js.map +1 -0
  159. package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.cjs.js +2 -0
  160. package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.cjs.js.map +1 -0
  161. package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js +2 -0
  162. package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js.map +1 -0
  163. package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.cjs.js +2 -0
  164. package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.cjs.js.map +1 -0
  165. package/dist/cjs/Notifications/BaseModal/BaseModalContext.cjs.js +2 -0
  166. package/dist/cjs/Notifications/BaseModal/BaseModalContext.cjs.js.map +1 -0
  167. package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js +2 -0
  168. package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js.map +1 -0
  169. package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.cjs.js +2 -0
  170. package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.cjs.js.map +1 -0
  171. package/dist/cjs/Notifications/Dialog/Dialog.cjs.js +2 -0
  172. package/dist/cjs/Notifications/Dialog/Dialog.cjs.js.map +1 -0
  173. package/dist/cjs/Notifications/Dialog/Dialog.module.cjs.js +2 -0
  174. package/dist/cjs/Notifications/Dialog/Dialog.module.cjs.js.map +1 -0
  175. package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.cjs.js +2 -0
  176. package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.cjs.js.map +1 -0
  177. package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.module.cjs.js +2 -0
  178. package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.module.cjs.js.map +1 -0
  179. package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js +2 -0
  180. package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js.map +1 -0
  181. package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.module.cjs.js +2 -0
  182. package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.module.cjs.js.map +1 -0
  183. package/dist/cjs/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js +2 -0
  184. package/dist/cjs/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js.map +1 -0
  185. package/dist/cjs/Notifications/DiscardChangesModal/DiscardChangesModal.cjs.js +2 -0
  186. package/dist/cjs/Notifications/DiscardChangesModal/DiscardChangesModal.cjs.js.map +1 -0
  187. package/dist/cjs/Notifications/NotificationProvider/NotificationContext.cjs.js +2 -0
  188. package/dist/cjs/Notifications/NotificationProvider/NotificationContext.cjs.js.map +1 -0
  189. package/dist/cjs/Notifications/NotificationProvider/NotificationService.cjs.js +2 -0
  190. package/dist/cjs/Notifications/NotificationProvider/NotificationService.cjs.js.map +1 -0
  191. package/dist/cjs/Notifications/SlideInModal/SlideInModal.cjs.js +2 -0
  192. package/dist/cjs/Notifications/SlideInModal/SlideInModal.cjs.js.map +1 -0
  193. package/dist/cjs/Notifications/SlideInModal/SlideInModal.module.cjs.js +2 -0
  194. package/dist/cjs/Notifications/SlideInModal/SlideInModal.module.cjs.js.map +1 -0
  195. package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.cjs.js +2 -0
  196. package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.cjs.js.map +1 -0
  197. package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.cjs.js +2 -0
  198. package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.cjs.js.map +1 -0
  199. package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.cjs.js +2 -0
  200. package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.cjs.js.map +1 -0
  201. package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.cjs.js +2 -0
  202. package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.cjs.js.map +1 -0
  203. package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.cjs.js +2 -0
  204. package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.cjs.js.map +1 -0
  205. package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.cjs.js +2 -0
  206. package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.cjs.js.map +1 -0
  207. package/dist/cjs/Notifications/Snackbar/useSnackbar.cjs.js +2 -0
  208. package/dist/cjs/Notifications/Snackbar/useSnackbar.cjs.js.map +1 -0
  209. package/dist/cjs/Pagination/Pagination.cjs.js +2 -0
  210. package/dist/cjs/Pagination/Pagination.cjs.js.map +1 -0
  211. package/dist/cjs/Pagination/Pagination.module.cjs.js +2 -0
  212. package/dist/cjs/Pagination/Pagination.module.cjs.js.map +1 -0
  213. package/dist/cjs/Popover/Popover.cjs.js +2 -0
  214. package/dist/cjs/Popover/Popover.cjs.js.map +1 -0
  215. package/dist/cjs/Popover/Popover.module.cjs.js +2 -0
  216. package/dist/cjs/Popover/Popover.module.cjs.js.map +1 -0
  217. package/dist/cjs/ProgressBar/ProgressBar.cjs.js +2 -0
  218. package/dist/cjs/ProgressBar/ProgressBar.cjs.js.map +1 -0
  219. package/dist/cjs/ProgressBar/ProgressBar.module.cjs.js +2 -0
  220. package/dist/cjs/ProgressBar/ProgressBar.module.cjs.js.map +1 -0
  221. package/dist/cjs/Skeleton/Skeleton.cjs.js +2 -0
  222. package/dist/cjs/Skeleton/Skeleton.cjs.js.map +1 -0
  223. package/dist/cjs/Skeleton/Skeleton.module.cjs.js +2 -0
  224. package/dist/cjs/Skeleton/Skeleton.module.cjs.js.map +1 -0
  225. package/dist/cjs/StatusIndicator/StatusIndicator.cjs.js +2 -0
  226. package/dist/cjs/StatusIndicator/StatusIndicator.cjs.js.map +1 -0
  227. package/dist/cjs/StatusIndicator/StatusIndicator.module.cjs.js +2 -0
  228. package/dist/cjs/StatusIndicator/StatusIndicator.module.cjs.js.map +1 -0
  229. package/dist/cjs/Stepper/Step.cjs.js +2 -0
  230. package/dist/cjs/Stepper/Step.cjs.js.map +1 -0
  231. package/dist/cjs/Stepper/Step.module.cjs.js +2 -0
  232. package/dist/cjs/Stepper/Step.module.cjs.js.map +1 -0
  233. package/dist/cjs/Stepper/Stepper.cjs.js +2 -0
  234. package/dist/cjs/Stepper/Stepper.cjs.js.map +1 -0
  235. package/dist/cjs/Stepper/Stepper.module.cjs.js +2 -0
  236. package/dist/cjs/Stepper/Stepper.module.cjs.js.map +1 -0
  237. package/dist/cjs/Tabs/Tab.cjs.js +2 -0
  238. package/dist/cjs/Tabs/Tab.cjs.js.map +1 -0
  239. package/dist/cjs/Tabs/Tab.module.cjs.js +2 -0
  240. package/dist/cjs/Tabs/Tab.module.cjs.js.map +1 -0
  241. package/dist/cjs/Tabs/TabButton.cjs.js +2 -0
  242. package/dist/cjs/Tabs/TabButton.cjs.js.map +1 -0
  243. package/dist/cjs/Tabs/TabButton.module.cjs.js +2 -0
  244. package/dist/cjs/Tabs/TabButton.module.cjs.js.map +1 -0
  245. package/dist/cjs/Tabs/Tabs.cjs.js +2 -0
  246. package/dist/cjs/Tabs/Tabs.cjs.js.map +1 -0
  247. package/dist/cjs/Tabs/Tabs.module.cjs.js +2 -0
  248. package/dist/cjs/Tabs/Tabs.module.cjs.js.map +1 -0
  249. package/dist/cjs/Tag/Tag.cjs.js +2 -0
  250. package/dist/cjs/Tag/Tag.cjs.js.map +1 -0
  251. package/dist/cjs/Tag/Tag.module.cjs.js +2 -0
  252. package/dist/cjs/Tag/Tag.module.cjs.js.map +1 -0
  253. package/dist/cjs/TextEllipsis/TextEllipsis.cjs.js +2 -0
  254. package/dist/cjs/TextEllipsis/TextEllipsis.cjs.js.map +1 -0
  255. package/dist/cjs/TextEllipsis/TextEllipsis.module.cjs.js +2 -0
  256. package/dist/cjs/TextEllipsis/TextEllipsis.module.cjs.js.map +1 -0
  257. package/dist/cjs/Tiles/Tile.cjs.js +2 -0
  258. package/dist/cjs/Tiles/Tile.cjs.js.map +1 -0
  259. package/dist/cjs/Tiles/Tile.module.cjs.js +2 -0
  260. package/dist/cjs/Tiles/Tile.module.cjs.js.map +1 -0
  261. package/dist/cjs/Tiles/Tiles.cjs.js +2 -0
  262. package/dist/cjs/Tiles/Tiles.cjs.js.map +1 -0
  263. package/dist/cjs/Tiles/Tiles.module.cjs.js +2 -0
  264. package/dist/cjs/Tiles/Tiles.module.cjs.js.map +1 -0
  265. package/dist/cjs/Tooltip/Tooltip.cjs.js +2 -0
  266. package/dist/cjs/Tooltip/Tooltip.cjs.js.map +1 -0
  267. package/dist/cjs/Tooltip/Tooltip.module.cjs.js +2 -0
  268. package/dist/cjs/Tooltip/Tooltip.module.cjs.js.map +1 -0
  269. package/dist/cjs/Typography/Typography.cjs.js +2 -0
  270. package/dist/cjs/Typography/Typography.cjs.js.map +1 -0
  271. package/dist/cjs/Typography/Typography.module.cjs.js +2 -0
  272. package/dist/cjs/Typography/Typography.module.cjs.js.map +1 -0
  273. package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.cjs.js +2 -0
  274. package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.cjs.js.map +1 -0
  275. package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.module.cjs.js +2 -0
  276. package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.module.cjs.js.map +1 -0
  277. package/dist/cjs/Wizard/Wizard.cjs.js +2 -0
  278. package/dist/cjs/Wizard/Wizard.cjs.js.map +1 -0
  279. package/dist/cjs/Wizard/WizardActions/WizardActions.cjs.js +2 -0
  280. package/dist/cjs/Wizard/WizardActions/WizardActions.cjs.js.map +1 -0
  281. package/dist/cjs/Wizard/WizardStateProvider.cjs.js +2 -0
  282. package/dist/cjs/Wizard/WizardStateProvider.cjs.js.map +1 -0
  283. package/dist/cjs/Wizard/WizardSteps/WizardSteps.cjs.js +2 -0
  284. package/dist/cjs/Wizard/WizardSteps/WizardSteps.cjs.js.map +1 -0
  285. package/dist/cjs/Wizard/wizardStateReducer.cjs.js +2 -0
  286. package/dist/cjs/Wizard/wizardStateReducer.cjs.js.map +1 -0
  287. package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js +2 -0
  288. package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js.map +1 -0
  289. package/dist/cjs/node_modules/style-inject/dist/style-inject.es.cjs.js +2 -0
  290. package/dist/cjs/node_modules/style-inject/dist/style-inject.es.cjs.js.map +1 -0
  291. package/dist/cjs/src/components/Breadcrumbs/Breadcrumbs.d.ts +9 -0
  292. package/dist/cjs/src/components/Breadcrumbs/Breadcrumbs.test.d.ts +1 -0
  293. package/dist/cjs/src/components/Button/BaseButton.d.ts +8 -0
  294. package/dist/cjs/src/components/Button/BaseButton.test.d.ts +1 -0
  295. package/dist/cjs/src/components/Button/Button.d.ts +8 -0
  296. package/dist/cjs/src/components/Button/Button.test.d.ts +1 -0
  297. package/dist/cjs/src/components/Button/IconButton.d.ts +11 -0
  298. package/dist/cjs/src/components/Button/IconButton.test.d.ts +1 -0
  299. package/dist/cjs/src/components/Button/Spinner.d.ts +2 -0
  300. package/dist/cjs/src/components/ContextMenu/ContextMenu.d.ts +24 -0
  301. package/dist/cjs/src/components/ContextMenu/ContextMenu.test.d.ts +1 -0
  302. package/dist/cjs/src/components/ContextMenu/ContextMenuItem.d.ts +14 -0
  303. package/dist/cjs/src/components/ContextMenu/ContextMenuService.d.ts +18 -0
  304. package/dist/cjs/src/components/DataGrid/DataGrid.d.ts +33 -0
  305. package/dist/cjs/src/components/DataGrid/DataGrid.test.d.ts +1 -0
  306. package/dist/cjs/src/components/DataGrid/DataGridActions/DataGridActions.d.ts +15 -0
  307. package/dist/cjs/src/components/DataGrid/DataGridActions/DataGridActions.test.d.ts +1 -0
  308. package/dist/cjs/src/components/DataGrid/DataGridActions/DataGridColumnsToggle.d.ts +13 -0
  309. package/dist/cjs/src/components/DataGrid/DataGridActions/DataGridColumnsToggle.test.d.ts +1 -0
  310. package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridBody.d.ts +17 -0
  311. package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridBody.test.d.ts +1 -0
  312. package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridCell.d.ts +10 -0
  313. package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridCell.test.d.ts +1 -0
  314. package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridRow.d.ts +9 -0
  315. package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridRow.test.d.ts +1 -0
  316. package/dist/cjs/src/components/DataGrid/DataGridHeader/DataGridHeader.d.ts +11 -0
  317. package/dist/cjs/src/components/DataGrid/DataGridHeader/DataGridHeader.test.d.ts +1 -0
  318. package/dist/cjs/src/components/DataGrid/DataGridHeader/DataGridHeaderCell.d.ts +10 -0
  319. package/dist/cjs/src/components/DataGrid/DataGridHeader/DataGridHeaderCell.test.d.ts +1 -0
  320. package/dist/cjs/src/components/DataGrid/datagrid.interfaces.d.ts +13 -0
  321. package/dist/cjs/src/components/Form/Checkbox/Checkbox.d.ts +12 -0
  322. package/dist/cjs/src/components/Form/Checkbox/Checkbox.test.d.ts +1 -0
  323. package/dist/cjs/src/components/Form/Fieldset/Fieldset.d.ts +14 -0
  324. package/dist/cjs/src/components/Form/Fieldset/Fieldset.test.d.ts +1 -0
  325. package/dist/cjs/src/components/Form/FileUpload/FileItem/FileItem.d.ts +17 -0
  326. package/dist/cjs/src/components/Form/FileUpload/FileItem/FileItem.test.d.ts +1 -0
  327. package/dist/cjs/src/components/Form/FileUpload/FileUpload.d.ts +26 -0
  328. package/dist/cjs/src/components/Form/FileUpload/FileUpload.test.d.ts +1 -0
  329. package/dist/cjs/src/components/Form/Form.d.ts +5 -0
  330. package/dist/cjs/src/components/Form/Form.test.d.ts +1 -0
  331. package/dist/cjs/src/components/Form/FormControl/FormControl.d.ts +8 -0
  332. package/dist/cjs/src/components/Form/FormControl/FormControl.test.d.ts +1 -0
  333. package/dist/cjs/src/components/Form/FormGroup/FormGroup.d.ts +17 -0
  334. package/dist/cjs/src/components/Form/FormGroup/FormGroup.test.d.ts +1 -0
  335. package/dist/cjs/src/components/Form/FormHelperText/FormHelperText.d.ts +7 -0
  336. package/dist/cjs/src/components/Form/FormHelperText/FormHelperText.test.d.ts +1 -0
  337. package/dist/cjs/src/components/Form/FormSelectorWrapper/FormSelectorWrapper.d.ts +14 -0
  338. package/dist/cjs/src/components/Form/FormSelectorWrapper/FormSelectorWrapper.test.d.ts +1 -0
  339. package/dist/cjs/src/components/Form/Input/Input.d.ts +13 -0
  340. package/dist/cjs/src/components/Form/Input/Input.test.d.ts +1 -0
  341. package/dist/cjs/src/components/Form/Label/Label.d.ts +5 -0
  342. package/dist/cjs/src/components/Form/Label/Label.test.d.ts +1 -0
  343. package/dist/cjs/src/components/Form/Radio/Radio.d.ts +11 -0
  344. package/dist/cjs/src/components/Form/Radio/Radio.test.d.ts +1 -0
  345. package/dist/cjs/src/components/Form/Select/Option.d.ts +16 -0
  346. package/dist/cjs/src/components/Form/Select/Option.test.d.ts +1 -0
  347. package/dist/cjs/src/components/Form/Select/Select.d.ts +23 -0
  348. package/dist/cjs/src/components/Form/Select/Select.interfaces.d.ts +21 -0
  349. package/dist/cjs/src/components/Form/Select/Select.test.d.ts +1 -0
  350. package/dist/cjs/src/components/Form/Select/SelectService.d.ts +12 -0
  351. package/dist/cjs/src/components/Form/Textarea/Textarea.d.ts +6 -0
  352. package/dist/cjs/src/components/Form/Textarea/Textarea.test.d.ts +1 -0
  353. package/dist/cjs/src/components/Form/Toggle/Toggle.d.ts +11 -0
  354. package/dist/cjs/src/components/Form/Toggle/Toggle.test.d.ts +1 -0
  355. package/dist/cjs/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.d.ts +12 -0
  356. package/dist/cjs/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.test.d.ts +1 -0
  357. package/dist/cjs/src/components/Form/Wrapper/InputWrapper/InputWrapper.d.ts +18 -0
  358. package/dist/cjs/src/components/Form/Wrapper/InputWrapper/InputWrapper.test.d.ts +1 -0
  359. package/dist/cjs/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.d.ts +10 -0
  360. package/dist/cjs/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.test.d.ts +1 -0
  361. package/dist/cjs/src/components/Form/Wrapper/SelectWrapper/SelectWrapper.d.ts +16 -0
  362. package/dist/cjs/src/components/Form/Wrapper/SelectWrapper/SelectWrapper.test.d.ts +1 -0
  363. package/dist/cjs/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.d.ts +15 -0
  364. package/dist/cjs/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.test.d.ts +1 -0
  365. package/dist/cjs/src/components/Form/Wrapper/Wrapper/Wrapper.d.ts +26 -0
  366. package/dist/cjs/src/components/Form/Wrapper/Wrapper/Wrapper.test.d.ts +1 -0
  367. package/dist/cjs/src/components/Form/form.interfaces.d.ts +14 -0
  368. package/dist/cjs/src/components/Icon/Icon.d.ts +82 -0
  369. package/dist/cjs/src/components/Icon/Icon.test.d.ts +1 -0
  370. package/dist/cjs/src/components/Link/Link.d.ts +14 -0
  371. package/dist/cjs/src/components/Link/Link.test.d.ts +1 -0
  372. package/dist/cjs/src/components/Notifications/Banner/Banner.d.ts +11 -0
  373. package/dist/cjs/src/components/Notifications/Banner/Banner.test.d.ts +1 -0
  374. package/dist/cjs/src/components/Notifications/BaseModal/BaseModal.d.ts +19 -0
  375. package/dist/cjs/src/components/Notifications/BaseModal/BaseModal.test.d.ts +1 -0
  376. package/dist/cjs/src/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.d.ts +13 -0
  377. package/dist/cjs/src/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.test.d.ts +1 -0
  378. package/dist/cjs/src/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.d.ts +8 -0
  379. package/dist/cjs/src/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.test.d.ts +1 -0
  380. package/dist/cjs/src/components/Notifications/BaseModal/BaseModalContext.d.ts +2 -0
  381. package/dist/cjs/src/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.d.ts +8 -0
  382. package/dist/cjs/src/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.test.d.ts +1 -0
  383. package/dist/cjs/src/components/Notifications/Dialog/Dialog.d.ts +22 -0
  384. package/dist/cjs/src/components/Notifications/Dialog/Dialog.test.d.ts +1 -0
  385. package/dist/cjs/src/components/Notifications/Dialog/DialogActions/DialogActions.d.ts +6 -0
  386. package/dist/cjs/src/components/Notifications/Dialog/DialogActions/DialogActions.test.d.ts +1 -0
  387. package/dist/cjs/src/components/Notifications/Dialog/DialogTitle/DialogTitle.d.ts +8 -0
  388. package/dist/cjs/src/components/Notifications/Dialog/DialogTitle/DialogTitle.test.d.ts +1 -0
  389. package/dist/cjs/src/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.d.ts +15 -0
  390. package/dist/cjs/src/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.test.d.ts +1 -0
  391. package/dist/cjs/src/components/Notifications/DiscardChangesModal/DiscardChangesModal.d.ts +13 -0
  392. package/dist/cjs/src/components/Notifications/DiscardChangesModal/DiscardChangesModal.test.d.ts +1 -0
  393. package/dist/cjs/src/components/Notifications/Modal/Modal.d.ts +2 -0
  394. package/dist/cjs/src/components/Notifications/Modal/Modal.test.d.ts +1 -0
  395. package/dist/cjs/src/components/Notifications/Modal/ModalActions/ModalActions.d.ts +2 -0
  396. package/dist/cjs/src/components/Notifications/Modal/ModalContent/ModalContent.d.ts +2 -0
  397. package/dist/cjs/src/components/Notifications/Modal/ModalHeader/ModalHeader.d.ts +2 -0
  398. package/dist/cjs/src/components/Notifications/NotificationProvider/NotificationContext.d.ts +35 -0
  399. package/dist/cjs/src/components/Notifications/NotificationProvider/NotificationContext.test.d.ts +1 -0
  400. package/dist/cjs/src/components/Notifications/NotificationProvider/NotificationService.d.ts +2 -0
  401. package/dist/cjs/src/components/Notifications/NotificationProvider/notification.interfaces.d.ts +46 -0
  402. package/dist/cjs/src/components/Notifications/SlideInModal/SlideInModal.d.ts +4 -0
  403. package/dist/cjs/src/components/Notifications/SlideInModal/SlideInModal.test.d.ts +1 -0
  404. package/dist/cjs/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.d.ts +12 -0
  405. package/dist/cjs/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.test.d.ts +1 -0
  406. package/dist/cjs/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.d.ts +14 -0
  407. package/dist/cjs/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.test.d.ts +1 -0
  408. package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +30 -0
  409. package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.test.d.ts +1 -0
  410. package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.d.ts +18 -0
  411. package/dist/cjs/src/components/Notifications/Snackbar/interfaces.d.ts +12 -0
  412. package/dist/cjs/src/components/Notifications/Snackbar/useSnackbar.d.ts +6 -0
  413. package/dist/cjs/src/components/Pagination/Pagination.d.ts +19 -0
  414. package/dist/cjs/src/components/Pagination/Pagination.test.d.ts +1 -0
  415. package/dist/cjs/src/components/Popover/Popover.d.ts +13 -0
  416. package/dist/cjs/src/components/Popover/Popover.test.d.ts +1 -0
  417. package/dist/cjs/src/components/ProgressBar/ProgressBar.d.ts +9 -0
  418. package/dist/cjs/src/components/ProgressBar/ProgressBar.test.d.ts +1 -0
  419. package/dist/cjs/src/components/Skeleton/Skeleton.d.ts +7 -0
  420. package/dist/cjs/src/components/Skeleton/Skeleton.test.d.ts +1 -0
  421. package/dist/cjs/src/components/StatusIndicator/StatusIndicator.d.ts +9 -0
  422. package/dist/cjs/src/components/StatusIndicator/StatusIndicator.test.d.ts +1 -0
  423. package/dist/cjs/src/components/Stepper/Step.d.ts +13 -0
  424. package/dist/cjs/src/components/Stepper/Stepper.d.ts +7 -0
  425. package/dist/cjs/src/components/Stepper/Stepper.test.d.ts +1 -0
  426. package/dist/cjs/src/components/Tabs/Tab.d.ts +8 -0
  427. package/dist/cjs/src/components/Tabs/Tab.test.d.ts +1 -0
  428. package/dist/cjs/src/components/Tabs/TabButton.d.ts +9 -0
  429. package/dist/cjs/src/components/Tabs/TabButton.test.d.ts +1 -0
  430. package/dist/cjs/src/components/Tabs/Tabs.d.ts +12 -0
  431. package/dist/cjs/src/components/Tabs/Tabs.test.d.ts +1 -0
  432. package/dist/cjs/src/components/Tag/Tag.d.ts +10 -0
  433. package/dist/cjs/src/components/Tag/Tag.test.d.ts +1 -0
  434. package/dist/cjs/src/components/TextEllipsis/TextEllipsis.d.ts +6 -0
  435. package/dist/cjs/src/components/TextEllipsis/TextEllipsis.test.d.ts +1 -0
  436. package/dist/cjs/src/components/Tiles/Tile.d.ts +15 -0
  437. package/dist/cjs/src/components/Tiles/Tile.test.d.ts +1 -0
  438. package/dist/cjs/src/components/Tiles/Tiles.d.ts +6 -0
  439. package/dist/cjs/src/components/Tiles/Tiles.test.d.ts +1 -0
  440. package/dist/cjs/src/components/Tooltip/Tooltip.d.ts +11 -0
  441. package/dist/cjs/src/components/Tooltip/Tooltip.test.d.ts +1 -0
  442. package/dist/cjs/src/components/Typography/Typography.d.ts +14 -0
  443. package/dist/cjs/src/components/Typography/Typography.test.d.ts +1 -0
  444. package/dist/cjs/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.d.ts +12 -0
  445. package/dist/cjs/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.test.d.ts +1 -0
  446. package/dist/cjs/src/components/Wizard/Wizard.d.ts +11 -0
  447. package/dist/cjs/src/components/Wizard/Wizard.test.d.ts +1 -0
  448. package/dist/cjs/src/components/Wizard/WizardActions/WizardActions.d.ts +22 -0
  449. package/dist/cjs/src/components/Wizard/WizardActions/WizardActions.test.d.ts +1 -0
  450. package/dist/cjs/src/components/Wizard/WizardStateProvider.d.ts +12 -0
  451. package/dist/cjs/src/components/Wizard/WizardSteps/WizardSteps.d.ts +5 -0
  452. package/dist/cjs/src/components/Wizard/WizardSteps/WizardSteps.test.d.ts +1 -0
  453. package/dist/cjs/src/components/Wizard/wizardStateReducer.d.ts +24 -0
  454. package/dist/cjs/src/components/_BaseStyling_/BaseStyling.d.ts +182 -0
  455. package/dist/cjs/src/components/_BaseStyling_/BaseStyling.test.d.ts +1 -0
  456. package/dist/cjs/src/hooks/useAnimation.cjs.js +2 -0
  457. package/dist/cjs/src/hooks/useAnimation.cjs.js.map +1 -0
  458. package/dist/cjs/src/hooks/useAnimation.d.ts +5 -0
  459. package/dist/cjs/src/hooks/useAnimation.test.d.ts +1 -0
  460. package/dist/cjs/src/hooks/useBodyClick.cjs.js +2 -0
  461. package/dist/cjs/src/hooks/useBodyClick.cjs.js.map +1 -0
  462. package/dist/cjs/src/hooks/useBodyClick.d.ts +1 -0
  463. package/dist/cjs/src/hooks/useBodyClick.test.d.ts +1 -0
  464. package/dist/cjs/src/hooks/useDebouncedCallback.cjs.js +2 -0
  465. package/dist/cjs/src/hooks/useDebouncedCallback.cjs.js.map +1 -0
  466. package/dist/cjs/src/hooks/useDebouncedCallback.d.ts +1 -0
  467. package/dist/cjs/src/hooks/useDebouncedCallback.test.d.ts +1 -0
  468. package/dist/cjs/src/hooks/useDetermineStatusIcon.cjs.js +2 -0
  469. package/dist/cjs/src/hooks/useDetermineStatusIcon.cjs.js.map +1 -0
  470. package/dist/cjs/src/hooks/useDetermineStatusIcon.d.ts +3 -0
  471. package/dist/cjs/src/hooks/useDetermineStatusIcon.test.d.ts +1 -0
  472. package/dist/cjs/src/hooks/useFormSelector.cjs.js +2 -0
  473. package/dist/cjs/src/hooks/useFormSelector.cjs.js.map +1 -0
  474. package/dist/cjs/src/hooks/useFormSelector.d.ts +13 -0
  475. package/dist/cjs/src/hooks/useFormSelector.test.d.ts +1 -0
  476. package/dist/cjs/src/hooks/useGetDomRoot.cjs.js +2 -0
  477. package/dist/cjs/src/hooks/useGetDomRoot.cjs.js.map +1 -0
  478. package/dist/cjs/src/hooks/useGetDomRoot.d.ts +3 -0
  479. package/dist/cjs/src/hooks/usePosition.cjs.js +2 -0
  480. package/dist/cjs/src/hooks/usePosition.cjs.js.map +1 -0
  481. package/dist/cjs/src/hooks/usePosition.d.ts +50 -0
  482. package/dist/cjs/src/hooks/usePosition.test.d.ts +1 -0
  483. package/dist/cjs/src/hooks/useRepeater.cjs.js +2 -0
  484. package/dist/cjs/src/hooks/useRepeater.cjs.js.map +1 -0
  485. package/dist/cjs/src/hooks/useRepeater.d.ts +10 -0
  486. package/dist/cjs/src/hooks/useRepeater.test.d.ts +6 -0
  487. package/dist/cjs/src/hooks/useScroll.d.ts +2 -0
  488. package/dist/cjs/src/hooks/useScroll.test.d.ts +1 -0
  489. package/dist/cjs/src/hooks/useSpacing.cjs.js +2 -0
  490. package/dist/cjs/src/hooks/useSpacing.cjs.js.map +1 -0
  491. package/dist/cjs/src/hooks/useSpacing.d.ts +18 -0
  492. package/dist/cjs/src/hooks/useSpacing.test.d.ts +1 -0
  493. package/dist/cjs/src/hooks/useUploadFile.d.ts +21 -0
  494. package/dist/cjs/src/hooks/useUploadFile.test.d.ts +1 -0
  495. package/dist/cjs/src/hooks/useWrapper.cjs.js +2 -0
  496. package/dist/cjs/src/hooks/useWrapper.cjs.js.map +1 -0
  497. package/dist/cjs/src/hooks/useWrapper.d.ts +7 -0
  498. package/dist/cjs/src/hooks/useWrapper.test.d.ts +1 -0
  499. package/dist/cjs/src/index.cjs.js +2 -0
  500. package/dist/cjs/src/index.cjs.js.map +1 -0
  501. package/dist/cjs/src/index.d.ts +121 -0
  502. package/dist/cjs/src/interfaces.d.ts +9 -0
  503. package/dist/cjs/src/readyclasses.module.cjs.js +2 -0
  504. package/dist/cjs/src/readyclasses.module.cjs.js.map +1 -0
  505. package/dist/cjs/src/util/helper.cjs.js +2 -0
  506. package/dist/cjs/src/util/helper.cjs.js.map +1 -0
  507. package/dist/cjs/src/util/helper.d.ts +17 -0
  508. package/dist/cjs/src/util/helper.test.d.ts +1 -0
  509. package/dist/cjs/stories/utils/useStoryCentring.d.ts +1 -0
  510. package/dist/esm/Breadcrumbs/Breadcrumbs.esm.js +1 -1
  511. package/dist/esm/Breadcrumbs/Breadcrumbs.esm.js.map +1 -1
  512. package/dist/esm/Breadcrumbs/Breadcrumbs.module.esm.js +1 -1
  513. package/dist/esm/Button/BaseButton.esm.js +1 -1
  514. package/dist/esm/Button/BaseButton.esm.js.map +1 -1
  515. package/dist/esm/Button/BaseButton.module.esm.js +1 -1
  516. package/dist/esm/Button/Button.esm.js +1 -1
  517. package/dist/esm/Button/Button.esm.js.map +1 -1
  518. package/dist/esm/Button/Button.module.esm.js +1 -1
  519. package/dist/esm/Button/IconButton.esm.js +1 -1
  520. package/dist/esm/Button/IconButton.esm.js.map +1 -1
  521. package/dist/esm/Button/IconButton.module.esm.js +1 -1
  522. package/dist/esm/Button/Spinner.esm.js.map +1 -1
  523. package/dist/esm/ContextMenu/ContextMenu.esm.js +1 -1
  524. package/dist/esm/ContextMenu/ContextMenu.esm.js.map +1 -1
  525. package/dist/esm/ContextMenu/ContextMenu.module.esm.js +1 -1
  526. package/dist/esm/ContextMenu/ContextMenuItem.esm.js +1 -1
  527. package/dist/esm/ContextMenu/ContextMenuItem.esm.js.map +1 -1
  528. package/dist/esm/ContextMenu/ContextMenuItem.module.esm.js +1 -1
  529. package/dist/esm/ContextMenu/ContextMenuService.esm.js +1 -1
  530. package/dist/esm/ContextMenu/ContextMenuService.esm.js.map +1 -1
  531. package/dist/esm/DataGrid/DataGrid.esm.js +1 -1
  532. package/dist/esm/DataGrid/DataGrid.esm.js.map +1 -1
  533. package/dist/esm/DataGrid/DataGrid.module.esm.js +1 -1
  534. package/dist/esm/DataGrid/DataGridActions/DataGridActions.esm.js +1 -1
  535. package/dist/esm/DataGrid/DataGridActions/DataGridActions.esm.js.map +1 -1
  536. package/dist/esm/DataGrid/DataGridActions/DataGridActions.module.esm.js +1 -1
  537. package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.esm.js +1 -1
  538. package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.esm.js.map +1 -1
  539. package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.module.esm.js +1 -1
  540. package/dist/esm/DataGrid/DataGridBody/DataGridBody.esm.js +1 -1
  541. package/dist/esm/DataGrid/DataGridBody/DataGridBody.esm.js.map +1 -1
  542. package/dist/esm/DataGrid/DataGridBody/DataGridBody.module.esm.js +1 -1
  543. package/dist/esm/DataGrid/DataGridBody/DataGridCell.esm.js +1 -1
  544. package/dist/esm/DataGrid/DataGridBody/DataGridCell.esm.js.map +1 -1
  545. package/dist/esm/DataGrid/DataGridBody/DataGridCell.module.esm.js +1 -1
  546. package/dist/esm/DataGrid/DataGridBody/DataGridRow.esm.js +1 -1
  547. package/dist/esm/DataGrid/DataGridBody/DataGridRow.esm.js.map +1 -1
  548. package/dist/esm/DataGrid/DataGridBody/DataGridRow.module.esm.js +1 -1
  549. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.esm.js +1 -1
  550. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.esm.js.map +1 -1
  551. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.module.esm.js +1 -1
  552. package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.esm.js +1 -1
  553. package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.esm.js.map +1 -1
  554. package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.module.esm.js +1 -1
  555. package/dist/esm/Form/Checkbox/Checkbox.esm.js +1 -1
  556. package/dist/esm/Form/Checkbox/Checkbox.esm.js.map +1 -1
  557. package/dist/esm/Form/Checkbox/Checkbox.module.esm.js +1 -1
  558. package/dist/esm/Form/Fieldset/Fieldset.esm.js +1 -1
  559. package/dist/esm/Form/Fieldset/Fieldset.esm.js.map +1 -1
  560. package/dist/esm/Form/Fieldset/Fieldset.module.esm.js +1 -1
  561. package/dist/esm/Form/Form.esm.js +1 -1
  562. package/dist/esm/Form/Form.esm.js.map +1 -1
  563. package/dist/esm/Form/Form.module.esm.js +1 -1
  564. package/dist/esm/Form/FormControl/FormControl.esm.js +1 -1
  565. package/dist/esm/Form/FormControl/FormControl.esm.js.map +1 -1
  566. package/dist/esm/Form/FormControl/FormControl.module.esm.js +1 -1
  567. package/dist/esm/Form/FormGroup/FormGroup.esm.js +1 -1
  568. package/dist/esm/Form/FormGroup/FormGroup.esm.js.map +1 -1
  569. package/dist/esm/Form/FormGroup/FormGroup.module.esm.js +1 -1
  570. package/dist/esm/Form/FormHelperText/FormHelperText.esm.js +1 -1
  571. package/dist/esm/Form/FormHelperText/FormHelperText.esm.js.map +1 -1
  572. package/dist/esm/Form/FormHelperText/FormHelperText.module.esm.js +1 -1
  573. package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.esm.js +1 -1
  574. package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.esm.js.map +1 -1
  575. package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.module.esm.js +1 -1
  576. package/dist/esm/Form/Input/Input.esm.js +1 -1
  577. package/dist/esm/Form/Input/Input.esm.js.map +1 -1
  578. package/dist/esm/Form/Input/Input.module.esm.js +1 -1
  579. package/dist/esm/Form/Label/Label.esm.js +1 -1
  580. package/dist/esm/Form/Label/Label.esm.js.map +1 -1
  581. package/dist/esm/Form/Label/Label.module.esm.js +1 -1
  582. package/dist/esm/Form/Radio/Radio.esm.js +1 -1
  583. package/dist/esm/Form/Radio/Radio.esm.js.map +1 -1
  584. package/dist/esm/Form/Radio/Radio.module.esm.js +1 -1
  585. package/dist/esm/Form/Select/Option.esm.js +1 -1
  586. package/dist/esm/Form/Select/Option.esm.js.map +1 -1
  587. package/dist/esm/Form/Select/Select.esm.js +1 -1
  588. package/dist/esm/Form/Select/Select.esm.js.map +1 -1
  589. package/dist/esm/Form/Select/Select.module.esm.js +1 -1
  590. package/dist/esm/Form/Select/SelectService.esm.js +1 -1
  591. package/dist/esm/Form/Select/SelectService.esm.js.map +1 -1
  592. package/dist/esm/Form/Textarea/Textarea.esm.js +1 -1
  593. package/dist/esm/Form/Textarea/Textarea.esm.js.map +1 -1
  594. package/dist/esm/Form/Textarea/Textarea.module.esm.js +1 -1
  595. package/dist/esm/Form/Toggle/Toggle.esm.js +1 -1
  596. package/dist/esm/Form/Toggle/Toggle.esm.js.map +1 -1
  597. package/dist/esm/Form/Toggle/Toggle.module.esm.js +1 -1
  598. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js +1 -1
  599. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js.map +1 -1
  600. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.esm.js +1 -1
  601. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.esm.js +1 -1
  602. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.esm.js.map +1 -1
  603. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.module.esm.js +1 -1
  604. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js +1 -1
  605. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js.map +1 -1
  606. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.module.esm.js +1 -1
  607. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.esm.js +1 -1
  608. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.esm.js.map +1 -1
  609. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.module.esm.js +1 -1
  610. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.esm.js +1 -1
  611. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.esm.js.map +1 -1
  612. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.esm.js +1 -1
  613. package/dist/esm/Form/Wrapper/Wrapper/Wrapper.esm.js +1 -1
  614. package/dist/esm/Form/Wrapper/Wrapper/Wrapper.esm.js.map +1 -1
  615. package/dist/esm/Form/Wrapper/Wrapper/Wrapper.module.esm.js +1 -1
  616. package/dist/esm/Icon/Icon.esm.js +1 -1
  617. package/dist/esm/Icon/Icon.esm.js.map +1 -1
  618. package/dist/esm/Icon/Icon.module.esm.js +1 -1
  619. package/dist/esm/Link/Link.esm.js +1 -1
  620. package/dist/esm/Link/Link.esm.js.map +1 -1
  621. package/dist/esm/Link/Link.module.esm.js +1 -1
  622. package/dist/esm/Notifications/Banner/Banner.esm.js +1 -1
  623. package/dist/esm/Notifications/Banner/Banner.esm.js.map +1 -1
  624. package/dist/esm/Notifications/Banner/Banner.module.esm.js +1 -1
  625. package/dist/esm/Notifications/BaseModal/BaseModal.esm.js +1 -1
  626. package/dist/esm/Notifications/BaseModal/BaseModal.esm.js.map +1 -1
  627. package/dist/esm/Notifications/BaseModal/BaseModal.module.esm.js +1 -1
  628. package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.esm.js +1 -1
  629. package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.esm.js.map +1 -1
  630. package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.esm.js +1 -1
  631. package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.esm.js +1 -1
  632. package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.esm.js.map +1 -1
  633. package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.esm.js +1 -1
  634. package/dist/esm/Notifications/BaseModal/BaseModalContext.esm.js +1 -1
  635. package/dist/esm/Notifications/BaseModal/BaseModalContext.esm.js.map +1 -1
  636. package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.esm.js +1 -1
  637. package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.esm.js.map +1 -1
  638. package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.esm.js +1 -1
  639. package/dist/esm/Notifications/Dialog/Dialog.esm.js +1 -1
  640. package/dist/esm/Notifications/Dialog/Dialog.esm.js.map +1 -1
  641. package/dist/esm/Notifications/Dialog/Dialog.module.esm.js +1 -1
  642. package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.esm.js +1 -1
  643. package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.esm.js.map +1 -1
  644. package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.module.esm.js +1 -1
  645. package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.esm.js +1 -1
  646. package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.esm.js.map +1 -1
  647. package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.module.esm.js +1 -1
  648. package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.esm.js +1 -1
  649. package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.esm.js.map +1 -1
  650. package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesModal.esm.js +1 -1
  651. package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesModal.esm.js.map +1 -1
  652. package/dist/esm/Notifications/NotificationProvider/NotificationContext.esm.js +1 -1
  653. package/dist/esm/Notifications/NotificationProvider/NotificationContext.esm.js.map +1 -1
  654. package/dist/esm/Notifications/NotificationProvider/NotificationService.esm.js.map +1 -1
  655. package/dist/esm/Notifications/SlideInModal/SlideInModal.esm.js +1 -1
  656. package/dist/esm/Notifications/SlideInModal/SlideInModal.esm.js.map +1 -1
  657. package/dist/esm/Notifications/SlideInModal/SlideInModal.module.esm.js +1 -1
  658. package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.esm.js +1 -1
  659. package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.esm.js.map +1 -1
  660. package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.esm.js +1 -1
  661. package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.esm.js +1 -1
  662. package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.esm.js.map +1 -1
  663. package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.esm.js +1 -1
  664. package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.esm.js +1 -1
  665. package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.esm.js.map +1 -1
  666. package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.esm.js +1 -1
  667. package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.esm.js.map +1 -1
  668. package/dist/esm/Notifications/Snackbar/useSnackbar.esm.js.map +1 -1
  669. package/dist/esm/Pagination/Pagination.esm.js +1 -1
  670. package/dist/esm/Pagination/Pagination.esm.js.map +1 -1
  671. package/dist/esm/Pagination/Pagination.module.esm.js +1 -1
  672. package/dist/esm/Popover/Popover.esm.js +1 -1
  673. package/dist/esm/Popover/Popover.esm.js.map +1 -1
  674. package/dist/esm/Popover/Popover.module.esm.js +1 -1
  675. package/dist/esm/ProgressBar/ProgressBar.esm.js +1 -1
  676. package/dist/esm/ProgressBar/ProgressBar.esm.js.map +1 -1
  677. package/dist/esm/ProgressBar/ProgressBar.module.esm.js +1 -1
  678. package/dist/esm/Skeleton/Skeleton.esm.js +1 -1
  679. package/dist/esm/Skeleton/Skeleton.esm.js.map +1 -1
  680. package/dist/esm/Skeleton/Skeleton.module.esm.js +1 -1
  681. package/dist/esm/StatusIndicator/StatusIndicator.esm.js +1 -1
  682. package/dist/esm/StatusIndicator/StatusIndicator.esm.js.map +1 -1
  683. package/dist/esm/StatusIndicator/StatusIndicator.module.esm.js +1 -1
  684. package/dist/esm/Stepper/Step.esm.js +2 -0
  685. package/dist/esm/Stepper/Step.esm.js.map +1 -0
  686. package/dist/esm/Stepper/Step.module.esm.js +2 -0
  687. package/dist/esm/Stepper/Step.module.esm.js.map +1 -0
  688. package/dist/esm/Stepper/Stepper.esm.js +2 -0
  689. package/dist/esm/Stepper/Stepper.esm.js.map +1 -0
  690. package/dist/esm/Stepper/Stepper.module.esm.js +2 -0
  691. package/dist/esm/Stepper/Stepper.module.esm.js.map +1 -0
  692. package/dist/esm/Tabs/Tab.esm.js +1 -1
  693. package/dist/esm/Tabs/Tab.esm.js.map +1 -1
  694. package/dist/esm/Tabs/Tab.module.esm.js +1 -1
  695. package/dist/esm/Tabs/TabButton.esm.js +1 -1
  696. package/dist/esm/Tabs/TabButton.esm.js.map +1 -1
  697. package/dist/esm/Tabs/TabButton.module.esm.js +1 -1
  698. package/dist/esm/Tabs/Tabs.esm.js +1 -1
  699. package/dist/esm/Tabs/Tabs.esm.js.map +1 -1
  700. package/dist/esm/Tabs/Tabs.module.esm.js +1 -1
  701. package/dist/esm/Tag/Tag.esm.js +1 -1
  702. package/dist/esm/Tag/Tag.esm.js.map +1 -1
  703. package/dist/esm/Tag/Tag.module.esm.js +1 -1
  704. package/dist/esm/TextEllipsis/TextEllipsis.esm.js +1 -1
  705. package/dist/esm/TextEllipsis/TextEllipsis.esm.js.map +1 -1
  706. package/dist/esm/TextEllipsis/TextEllipsis.module.esm.js +1 -1
  707. package/dist/esm/Tiles/Tile.esm.js +1 -1
  708. package/dist/esm/Tiles/Tile.esm.js.map +1 -1
  709. package/dist/esm/Tiles/Tile.module.esm.js +1 -1
  710. package/dist/esm/Tiles/Tiles.esm.js +1 -1
  711. package/dist/esm/Tiles/Tiles.esm.js.map +1 -1
  712. package/dist/esm/Tiles/Tiles.module.esm.js +1 -1
  713. package/dist/esm/Tooltip/Tooltip.esm.js +1 -1
  714. package/dist/esm/Tooltip/Tooltip.esm.js.map +1 -1
  715. package/dist/esm/Tooltip/Tooltip.module.esm.js +1 -1
  716. package/dist/esm/Typography/Typography.esm.js +1 -1
  717. package/dist/esm/Typography/Typography.esm.js.map +1 -1
  718. package/dist/esm/Typography/Typography.module.esm.js +1 -1
  719. package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.esm.js +1 -1
  720. package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.esm.js.map +1 -1
  721. package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.module.esm.js +1 -1
  722. package/dist/esm/Wizard/Wizard.esm.js +1 -1
  723. package/dist/esm/Wizard/Wizard.esm.js.map +1 -1
  724. package/dist/esm/Wizard/WizardActions/WizardActions.esm.js +1 -1
  725. package/dist/esm/Wizard/WizardActions/WizardActions.esm.js.map +1 -1
  726. package/dist/esm/Wizard/WizardStateProvider.esm.js +1 -1
  727. package/dist/esm/Wizard/WizardStateProvider.esm.js.map +1 -1
  728. package/dist/esm/Wizard/WizardSteps/WizardSteps.esm.js +1 -1
  729. package/dist/esm/Wizard/WizardSteps/WizardSteps.esm.js.map +1 -1
  730. package/dist/esm/Wizard/wizardStateReducer.esm.js +1 -1
  731. package/dist/esm/Wizard/wizardStateReducer.esm.js.map +1 -1
  732. package/dist/esm/_BaseStyling_/BaseStyling.esm.js +1 -1
  733. package/dist/esm/_BaseStyling_/BaseStyling.esm.js.map +1 -1
  734. package/dist/esm/node_modules/style-inject/dist/style-inject.es.esm.js +2 -0
  735. package/dist/esm/node_modules/style-inject/dist/style-inject.es.esm.js.map +1 -0
  736. package/dist/esm/src/components/Form/Fieldset/Fieldset.d.ts +0 -1
  737. package/dist/esm/src/components/Form/FormControl/FormControl.d.ts +0 -1
  738. package/dist/esm/src/components/Stepper/Step.d.ts +13 -0
  739. package/dist/esm/src/components/Stepper/Stepper.d.ts +7 -0
  740. package/dist/esm/src/components/Stepper/Stepper.test.d.ts +1 -0
  741. package/dist/esm/src/components/_BaseStyling_/BaseStyling.d.ts +32 -1
  742. package/dist/esm/src/hooks/useAnimation.esm.js +1 -1
  743. package/dist/esm/src/hooks/useAnimation.esm.js.map +1 -1
  744. package/dist/esm/src/hooks/useBodyClick.esm.js +1 -1
  745. package/dist/esm/src/hooks/useBodyClick.esm.js.map +1 -1
  746. package/dist/esm/src/hooks/useDebouncedCallback.esm.js +1 -1
  747. package/dist/esm/src/hooks/useDebouncedCallback.esm.js.map +1 -1
  748. package/dist/esm/src/hooks/useDetermineStatusIcon.esm.js +1 -1
  749. package/dist/esm/src/hooks/useDetermineStatusIcon.esm.js.map +1 -1
  750. package/dist/esm/src/hooks/useFormSelector.esm.js +1 -1
  751. package/dist/esm/src/hooks/useFormSelector.esm.js.map +1 -1
  752. package/dist/esm/src/hooks/useGetDomRoot.esm.js +1 -1
  753. package/dist/esm/src/hooks/useGetDomRoot.esm.js.map +1 -1
  754. package/dist/esm/src/hooks/usePosition.esm.js +1 -1
  755. package/dist/esm/src/hooks/usePosition.esm.js.map +1 -1
  756. package/dist/esm/src/hooks/useRepeater.esm.js +1 -1
  757. package/dist/esm/src/hooks/useRepeater.esm.js.map +1 -1
  758. package/dist/esm/src/hooks/useSpacing.esm.js +1 -1
  759. package/dist/esm/src/hooks/useSpacing.esm.js.map +1 -1
  760. package/dist/esm/src/hooks/useWrapper.esm.js +1 -1
  761. package/dist/esm/src/hooks/useWrapper.esm.js.map +1 -1
  762. package/dist/esm/src/index.d.ts +3 -0
  763. package/dist/esm/src/index.esm.js +1 -1
  764. package/dist/esm/src/readyclasses.module.esm.js +1 -1
  765. package/dist/esm/src/util/helper.esm.js +1 -1
  766. package/dist/esm/src/util/helper.esm.js.map +1 -1
  767. package/dist/lib/style-inject.js +55 -0
  768. package/dist/lib/style-inject.js.map +1 -0
  769. package/package.json +35 -35
  770. package/src/components/Form/Fieldset/Fieldset.tsx +6 -11
  771. package/src/components/Form/FormControl/FormControl.tsx +2 -4
  772. package/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.tsx +1 -1
  773. package/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.tsx +1 -1
  774. package/src/components/Stepper/Step.module.scss +231 -0
  775. package/src/components/Stepper/Step.tsx +112 -0
  776. package/src/components/Stepper/Stepper.module.scss +13 -0
  777. package/src/components/Stepper/Stepper.test.tsx +83 -0
  778. package/src/components/Stepper/Stepper.tsx +45 -0
  779. package/src/components/_BaseStyling_/BaseStyling.tsx +63 -1
  780. package/src/index.ts +3 -0
  781. package/src/mixins.module.scss +1 -1
  782. package/dist/esm/node_modules/rollup-plugin-styles/dist/runtime/inject-css.esm.js +0 -2
  783. package/dist/esm/node_modules/rollup-plugin-styles/dist/runtime/inject-css.esm.js.map +0 -1
@@ -1,2 +1,2 @@
1
- var containers=[],styleTags=[];const n = function(e,t){if(e&&"undefined"!=typeof document){var n,s=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,a="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var i=containers.indexOf(a);-1===i&&(i=containers.push(a)-1,styleTags[i]={}),n=styleTags[i]&&styleTags[i][s]?styleTags[i][s]:styleTags[i][s]=c()}else n=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var i="prepend"===s?"afterbegin":"beforeend";return a.insertAdjacentElement(i,e),e}};var _=".Banner_module_banner__47d111af{background-color:var(--light);border-radius:var(--banner-border-radius);border-style:solid;border-width:0 0 0 var(--banner-border-width);display:flex;flex-grow:0;padding:1rem 1.25rem}.Banner_module_banner__47d111af .Banner_module_container__47d111af{color:var(--default);display:block;flex:1;margin-left:1rem}.Banner_module_banner__47d111af .Banner_module_headline__47d111af{margin-bottom:.25rem}.Banner_module_banner__47d111af .Banner_module_content__47d111af{margin-bottom:0}.Banner_module_banner__47d111af .Banner_module_icon__47d111af{font-size:1.25rem;line-height:var(--default-line-height);margin-top:.1rem}.Banner_module_banner__47d111af.Banner_module_info__47d111af{border-color:var(--info)}.Banner_module_banner__47d111af.Banner_module_info__47d111af .Banner_module_headline__47d111af,.Banner_module_banner__47d111af.Banner_module_info__47d111af .Banner_module_icon__47d111af{color:var(--info)}.Banner_module_banner__47d111af.Banner_module_warning__47d111af{border-color:var(--warning)}.Banner_module_banner__47d111af.Banner_module_warning__47d111af .Banner_module_headline__47d111af,.Banner_module_banner__47d111af.Banner_module_warning__47d111af .Banner_module_icon__47d111af{color:var(--warning)}.Banner_module_banner__47d111af.Banner_module_error__47d111af{border-color:var(--error)}.Banner_module_banner__47d111af.Banner_module_error__47d111af .Banner_module_headline__47d111af,.Banner_module_banner__47d111af.Banner_module_error__47d111af .Banner_module_icon__47d111af{color:var(--error)}",e={banner:"Banner_module_banner__47d111af",container:"Banner_module_container__47d111af",headline:"Banner_module_headline__47d111af",content:"Banner_module_content__47d111af",icon:"Banner_module_icon__47d111af",info:"Banner_module_info__47d111af",warning:"Banner_module_warning__47d111af",error:"Banner_module_error__47d111af"};n(_,{});export{_ as css,e as default};
1
+ import n from "../../../lib/style-inject.js";var e='/*!\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 */.Banner-module_banner__YfpRS{background-color:var(--light);border-radius:var(--banner-border-radius);border-style:solid;border-width:0 0 0 var(--banner-border-width);display:flex;flex-grow:0;padding:1rem 1.25rem}.Banner-module_banner__YfpRS .Banner-module_container__IwBEp{color:var(--default);display:block;flex:1;margin-left:1rem}.Banner-module_banner__YfpRS .Banner-module_headline__J6Wud{margin-bottom:.25rem}.Banner-module_banner__YfpRS .Banner-module_content__OKABk{margin-bottom:0}.Banner-module_banner__YfpRS .Banner-module_icon__Nlh-W{font-size:1.25rem;line-height:var(--default-line-height);margin-top:.1rem}.Banner-module_banner__YfpRS.Banner-module_info__uEjbr{border-color:var(--info)}.Banner-module_banner__YfpRS.Banner-module_info__uEjbr .Banner-module_headline__J6Wud,.Banner-module_banner__YfpRS.Banner-module_info__uEjbr .Banner-module_icon__Nlh-W{color:var(--info)}.Banner-module_banner__YfpRS.Banner-module_warning__gBzK0{border-color:var(--warning)}.Banner-module_banner__YfpRS.Banner-module_warning__gBzK0 .Banner-module_headline__J6Wud,.Banner-module_banner__YfpRS.Banner-module_warning__gBzK0 .Banner-module_icon__Nlh-W{color:var(--warning)}.Banner-module_banner__YfpRS.Banner-module_error__1Tb4E{border-color:var(--error)}.Banner-module_banner__YfpRS.Banner-module_error__1Tb4E .Banner-module_headline__J6Wud,.Banner-module_banner__YfpRS.Banner-module_error__1Tb4E .Banner-module_icon__Nlh-W{color:var(--error)}\n/*# source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NXJlbTtcbiAgbGluZS1oZWlnaHQ6IHZhcigtLWRlZmF1bHQtbGluZS1oZWlnaHQpO1xufVxuLmJhbm5lci5pbmZvIHtcbiAgYm9yZGVyLWNvbG9yOiB2YXIoLS1pbmZvKTtcbn1cbi5iYW5uZXIuaW5mbyAuaWNvbiB7XG4gIGNvbG9yOiB2YXIoLS1pbmZvKTtcbn1cbi5iYW5uZXIuaW5mbyAuaGVhZGxpbmUge1xuICBjb2xvcjogdmFyKC0taW5mbyk7XG59XG4uYmFubmVyLndhcm5pbmcge1xuICBib3JkZXItY29sb3I6IHZhcigtLXdhcm5pbmcpO1xufVxuLmJhbm5lci53YXJuaW5nIC5pY29uIHtcbiAgY29sb3I6IHZhcigtLXdhcm5pbmcpO1xufVxuLmJhbm5lci53YXJuaW5nIC5oZWFkbGluZSB7XG4gIGNvbG9yOiB2YXIoLS13YXJuaW5nKTtcbn1cbi5iYW5uZXIuZXJyb3Ige1xuICBib3JkZXItY29sb3I6IHZhcigtLWVycm9yKTtcbn1cbi5iYW5uZXIuZXJyb3IgLmljb24ge1xuICBjb2xvcjogdmFyKC0tZXJyb3IpO1xufVxuLmJhbm5lci5lcnJvciAuaGVhZGxpbmUge1xuICBjb2xvcjogdmFyKC0tZXJyb3IpO1xufSJdfQ== */';var l={banner:"Banner-module_banner__YfpRS",container:"Banner-module_container__IwBEp",headline:"Banner-module_headline__J6Wud",content:"Banner-module_content__OKABk",icon:"Banner-module_icon__Nlh-W",info:"Banner-module_info__uEjbr",warning:"Banner-module_warning__gBzK0",error:"Banner-module_error__1Tb4E"};n(e);export{l as default};
2
2
  //# sourceMappingURL=Banner.module.esm.js.map
@@ -1,2 +1,2 @@
1
- import e,{useRef as o,useEffect as l}from"react";import{createPortal as a}from"react-dom";import{useGetDomRoot as d}from"../../src/hooks/useGetDomRoot.esm.js";import n from"./BaseModal.module.esm.js";import{labelId as r,descriptionId as t}from"./BaseModalContext.esm.js";const s="overflow",i=e=>{l((()=>{e?document.body.style[s]="hidden":0===document.querySelectorAll("[role=dialog][data-hidden=false]").length&&document.body.style.removeProperty(s)}),[e])},m=e.forwardRef((({id:s,children:m,open:c,onClose:u,className:p="",containerProps:v,backdropProps:b,labelledby:y,describedby:f,disableEscapeKeyDown:h=!1,disableBackdrop:E=!1,forceContainerOpen:$=!1,zIndex:N,domRoot:x,...C},g)=>{var k,I,w;i(c);const z=o(null),{root:P}=d(x,z);l((()=>{var e;c&&(null===(e=z.current)||void 0===e||e.focus())}),[c]);const j=()=>e.Children.map(m,(o=>{var l;return e.isValidElement(o)?e.cloneElement(o,{onClose:null!==(l=o.props.onClose)&&void 0!==l?l:u}):o}));return e.createElement("div",{ref:z},a(e.createElement("div",{...C,ref:g,id:s,className:`${n.modal} ${c?n.visible:""} ${p}`,role:"dialog","aria-modal":"true","aria-labelledby":null!=y?y:r(s),"aria-describedby":null!=f?f:t(s),"aria-hidden":!c,tabIndex:-1,"data-hidden":!c,onKeyDown:e=>{h||"Escape"!==e.key||(e.stopPropagation(),null==u||u())},style:{zIndex:N}},e.createElement("div",{...b,className:`${n.backdrop} ${null!==(k=null==b?void 0:b.className)&&void 0!==k?k:""}`,onClick:()=>!E&&u&&u()}),$?e.createElement("div",{...v,"aria-hidden":!c,"data-element":"dialog",hidden:!c,style:{zIndex:N&&N+1},className:`${n.container} ${null!==(I=null==v?void 0:v.className)&&void 0!==I?I:""}`},j()):c&&e.createElement("div",{...v,"data-element":"dialog",style:{zIndex:N&&N+1},className:`${n.container} ${null!==(w=null==v?void 0:v.className)&&void 0!==w?w:""}`},j())),P))}));export{m as BaseModal,i as useSetBodyScroll};
1
+ import e,{useRef as o,useEffect as l}from"react";import{createPortal as a}from"react-dom";import{useGetDomRoot as d}from"../../src/hooks/useGetDomRoot.esm.js";import n from"./BaseModal.module.esm.js";import{labelId as t,descriptionId as s}from"./BaseModalContext.esm.js";const r="overflow";const i="hidden";const c=e=>{const o=()=>{document.body.style[r]=i};const a=()=>{const e=document.querySelectorAll("[role=dialog][data-hidden=false]").length===0;if(e)document.body.style.removeProperty(r)};l((()=>{if(e)o();else a()}),[e])};const m=({id:r,children:i,open:m,onClose:v,className:u="",containerProps:f,backdropProps:p,labelledby:b,describedby:y,disableEscapeKeyDown:h=false,disableBackdrop:E=false,forceContainerOpen:$=false,zIndex:N,domRoot:x,...C},g)=>{var k,I,w;c(m);const z=o(null);const{root:P}=d(x,z);const j=e=>{if(!h&&e.key==="Escape"){e.stopPropagation();v===null||v===void 0?void 0:v()}};l((()=>{var e;if(m)(e=z.current)===null||e===void 0?void 0:e.focus()}),[m]);const B=()=>!E&&v&&v();const D=()=>e.Children.map(i,(o=>{var l;if(e.isValidElement(o))return e.cloneElement(o,{onClose:(l=o.props.onClose)!==null&&l!==void 0?l:v});return o}));return e.createElement("div",{ref:z},a(e.createElement("div",{...C,ref:g,id:r,className:`${n["modal"]} ${m?n["visible"]:""} ${u}`,role:"dialog","aria-modal":"true","aria-labelledby":b!==null&&b!==void 0?b:t(r),"aria-describedby":y!==null&&y!==void 0?y:s(r),"aria-hidden":!m,tabIndex:-1,"data-hidden":!m,onKeyDown:j,style:{zIndex:N}},e.createElement("div",{...p,className:`${n["backdrop"]} ${(k=p===null||p===void 0?void 0:p.className)!==null&&k!==void 0?k:""}`,onClick:B}),$?e.createElement("div",{...f,"aria-hidden":!m,"data-element":"dialog",hidden:!m,style:{zIndex:N&&N+1},className:`${n["container"]} ${(I=f===null||f===void 0?void 0:f.className)!==null&&I!==void 0?I:""}`},D()):m&&e.createElement("div",{...f,"data-element":"dialog",style:{zIndex:N&&N+1},className:`${n["container"]} ${(w=f===null||f===void 0?void 0:f.className)!==null&&w!==void 0?w:""}`},D())),P))};const v=e.forwardRef(m);export{v as BaseModal,c as useSetBodyScroll};
2
2
  //# sourceMappingURL=BaseModal.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseModal.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"BaseModal.esm.js","sources":["../../../../../../src/components/Notifications/BaseModal/BaseModal.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 ForwardRefRenderFunction,\n ComponentPropsWithRef,\n useEffect,\n useRef,\n ReactElement\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { useGetDomRoot } from \"../../../hooks/useGetDomRoot\";\nimport classes from \"./BaseModal.module.scss\";\nimport { labelId, descriptionId } from \"./BaseModalContext\";\n\nconst SCROLL_PROPERTY_NAME = \"overflow\";\nconst SCROLL_PROPERTY_VALUE = \"hidden\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id: string;\n children: React.ReactNode;\n open: boolean;\n onClose?: (event?: React.MouseEvent<HTMLElement>) => unknown;\n className?: string;\n containerProps?: ComponentPropsWithRef<\"div\">;\n backdropProps?: ComponentPropsWithRef<\"div\">;\n labelledby?: string;\n describedby?: string;\n disableEscapeKeyDown?: boolean;\n disableBackdrop?: boolean;\n forceContainerOpen?: boolean;\n zIndex?: number;\n domRoot?: HTMLElement;\n}\n\nexport const useSetBodyScroll = (open: boolean) => {\n const hideBodyScroll = () => {\n document.body.style[SCROLL_PROPERTY_NAME] = SCROLL_PROPERTY_VALUE;\n };\n\n const showBodyScroll = () => {\n const allModalsClosed =\n document.querySelectorAll(\"[role=dialog][data-hidden=false]\").length === 0;\n if (allModalsClosed) {\n document.body.style.removeProperty(SCROLL_PROPERTY_NAME);\n }\n };\n\n useEffect(() => {\n if (open) {\n hideBodyScroll();\n } else {\n showBodyScroll();\n }\n }, [open]);\n};\n\nconst BaseModalComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n {\n id,\n children,\n open,\n onClose,\n className = \"\",\n containerProps,\n backdropProps,\n labelledby,\n describedby,\n disableEscapeKeyDown = false,\n disableBackdrop = false,\n forceContainerOpen = false,\n zIndex,\n domRoot,\n ...rest\n }: Props,\n ref\n) => {\n useSetBodyScroll(open);\n const wrappingDivRef = useRef<HTMLDivElement>(null);\n const { root } = useGetDomRoot(domRoot, wrappingDivRef);\n\n const handleEscKeyPress = (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (!disableEscapeKeyDown && event.key === \"Escape\") {\n event.stopPropagation();\n onClose?.();\n }\n };\n\n useEffect(() => {\n if (open) {\n wrappingDivRef.current?.focus();\n }\n }, [open]);\n\n const handleBackdropClick = () => !disableBackdrop && onClose && onClose();\n\n const renderChildren = () =>\n React.Children.map(children, child => {\n if (React.isValidElement(child)) {\n return React.cloneElement(child as ReactElement, {\n onClose: child.props.onClose ?? onClose\n });\n }\n return child;\n });\n\n return (\n <div ref={wrappingDivRef}>\n {createPortal(\n <div\n {...rest}\n ref={ref}\n id={id}\n className={`${classes[\"modal\"]} ${open ? classes[\"visible\"] : \"\"} ${className}`}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={labelledby ?? labelId(id)}\n aria-describedby={describedby ?? descriptionId(id)}\n aria-hidden={!open}\n tabIndex={-1}\n data-hidden={!open}\n onKeyDown={handleEscKeyPress}\n style={{ zIndex }}\n >\n <div\n {...backdropProps}\n className={`${classes[\"backdrop\"]} ${backdropProps?.className ?? \"\"}`}\n onClick={handleBackdropClick}\n ></div>\n {forceContainerOpen ? (\n <div\n {...containerProps}\n aria-hidden={!open}\n data-element=\"dialog\"\n hidden={!open}\n style={{ zIndex: zIndex && zIndex + 1 }}\n className={`${classes[\"container\"]} ${containerProps?.className ?? \"\"}`}\n >\n {renderChildren()}\n </div>\n ) : (\n open && (\n <div\n {...containerProps}\n data-element=\"dialog\"\n style={{ zIndex: zIndex && zIndex + 1 }}\n className={`${classes[\"container\"]} ${containerProps?.className ?? \"\"}`}\n >\n {renderChildren()}\n </div>\n )\n )}\n </div>,\n root\n )}\n </div>\n );\n};\n\nexport const BaseModal = React.forwardRef(BaseModalComponent);\n"],"names":["SCROLL_PROPERTY_NAME","SCROLL_PROPERTY_VALUE","useSetBodyScroll","open","hideBodyScroll","document","body","style","showBodyScroll","allModalsClosed","querySelectorAll","length","removeProperty","useEffect","BaseModalComponent","id","children","onClose","className","containerProps","backdropProps","labelledby","describedby","disableEscapeKeyDown","disableBackdrop","forceContainerOpen","zIndex","domRoot","rest","ref","wrappingDivRef","useRef","root","useGetDomRoot","handleEscKeyPress","event","key","stopPropagation","_a","current","focus","handleBackdropClick","renderChildren","React","Children","map","child","isValidElement","cloneElement","props","createElement","createPortal","classes","role","labelId","descriptionId","tabIndex","onKeyDown","onClick","hidden","_b","_c","BaseModal","forwardRef"],"mappings":"+QA4BA,MAAMA,EAAuB,WAC7B,MAAMC,EAAwB,SAmBjB,MAAAC,EAAoBC,IAC/B,MAAMC,EAAiB,KACrBC,SAASC,KAAKC,MAAMP,GAAwBC,CAAqB,EAGnE,MAAMO,EAAiB,KACrB,MAAMC,EACJJ,SAASK,iBAAiB,oCAAoCC,SAAW,EAC3E,GAAIF,EACFJ,SAASC,KAAKC,MAAMK,eAAeZ,EACpC,EAGHa,GAAU,KACR,GAAIV,EACFC,SAEAI,GACD,GACA,CAACL,GAAM,EAGZ,MAAMW,EAAsE,EAExEC,KACAC,WACAb,OACAc,UACAC,YAAY,GACZC,iBACAC,gBACAC,aACAC,cACAC,uBAAuB,MACvBC,kBAAkB,MAClBC,qBAAqB,MACrBC,SACAC,aACGC,GAELC,eAEA3B,EAAiBC,GACjB,MAAM2B,EAAiBC,EAAuB,MAC9C,MAAMC,KAAEA,GAASC,EAAcN,EAASG,GAExC,MAAMI,EAAqBC,IACzB,IAAKZ,GAAwBY,EAAMC,MAAQ,SAAU,CACnDD,EAAME,kBACNpB,IAAA,MAAAA,SAAA,OAA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GAAUA,EAAS,GACpCR,UAAW,GAAGkC,EAAQ,iBAAgBS,EAAA1C,IAAA,MAAAA,kBAAAA,EAAgBD,aAAS,MAAA2C,SAAA,EAAAA,EAAI,MAElEnB,MAKTV,GAGJ,EAGS,MAAA8B,EAAYnB,EAAMoB,WAAWjD"}
@@ -1,2 +1,2 @@
1
- var containers=[],styleTags=[];const e = function(e,t){if(e&&"undefined"!=typeof document){var n,s=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,a="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var i=containers.indexOf(a);-1===i&&(i=containers.push(a)-1,styleTags[i]={}),n=styleTags[i]&&styleTags[i][s]?styleTags[i][s]:styleTags[i][s]=c()}else n=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var i="prepend"===s?"afterbegin":"beforeend";return a.insertAdjacentElement(i,e),e}};var d='.BaseModal_module_srOnly__f0ede9cc{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.BaseModal_module_hidden__f0ede9cc{display:none}.BaseModal_module_slideIn__f0ede9cc{animation:BaseModal_module_slideIn__f0ede9cc .5s forwards}@media (prefers-reduced-motion:reduce){.BaseModal_module_slideIn__f0ede9cc{animation-duration:.1ms}}.BaseModal_module_slideOut__f0ede9cc{animation:BaseModal_module_slideOut__f0ede9cc .5s forwards}@media (prefers-reduced-motion:reduce){.BaseModal_module_slideOut__f0ede9cc{animation-duration:.1ms}}@keyframes BaseModal_module_slideIn__f0ede9cc{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes BaseModal_module_slideOut__f0ede9cc{0%{transform:translateY(0)}to{transform:translateY(100vh)}}.BaseModal_module_modal__f0ede9cc{align-items:flex-start;display:flex;height:100vh;justify-content:center;left:0;position:fixed;top:0;visibility:hidden;width:100vw;z-index:10}.BaseModal_module_modal__f0ede9cc .BaseModal_module_backdrop__f0ede9cc{background-color:transparent;content:"";height:100%;left:0;position:absolute;top:0;transition-duration:.5s;transition-property:background-color;transition-timing-function:ease;width:100%}@media (prefers-reduced-motion:reduce){.BaseModal_module_modal__f0ede9cc .BaseModal_module_backdrop__f0ede9cc{transition-duration:.1ms}}.BaseModal_module_modal__f0ede9cc.BaseModal_module_visible__f0ede9cc{visibility:visible}.BaseModal_module_modal__f0ede9cc.BaseModal_module_visible__f0ede9cc .BaseModal_module_backdrop__f0ede9cc{background-color:var(--modal-backdrop-color);opacity:.75}.BaseModal_module_container__f0ede9cc{background-color:var(--modal-background-color);display:flex;flex-direction:column;height:auto;margin-top:3.125rem;max-height:calc(90% - 3.125rem);width:calc(100% - 2rem);z-index:11}@media only screen and (min-width:50em){.BaseModal_module_container__f0ede9cc{border-radius:2px;box-shadow:0 30px 50px var(--modal-shadow-color);width:50rem}}',o={"sr-only":"BaseModal_module_srOnly__f0ede9cc",hidden:"BaseModal_module_hidden__f0ede9cc","slide-in":"BaseModal_module_slideIn__f0ede9cc","slide-out":"BaseModal_module_slideOut__f0ede9cc",modal:"BaseModal_module_modal__f0ede9cc",backdrop:"BaseModal_module_backdrop__f0ede9cc",visible:"BaseModal_module_visible__f0ede9cc",container:"BaseModal_module_container__f0ede9cc"};e(d,{});export{d as css,o as default};
1
+ import i from "../../../lib/style-inject.js";var e='/*!\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 * 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 * 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 */.BaseModal-module_sr-only__zUl6G{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.BaseModal-module_hidden__Tky0a{display:none}.BaseModal-module_slide-in__3bHb-{animation:BaseModal-module_slide-in__3bHb- .5s forwards}@media (prefers-reduced-motion:reduce){.BaseModal-module_slide-in__3bHb-{animation-duration:.1ms}}.BaseModal-module_slide-out__uPXZJ{animation:BaseModal-module_slide-out__uPXZJ .5s forwards}@media (prefers-reduced-motion:reduce){.BaseModal-module_slide-out__uPXZJ{animation-duration:.1ms}}@keyframes BaseModal-module_slide-in__3bHb-{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes BaseModal-module_slide-out__uPXZJ{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*!\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 */.BaseModal-module_modal__IoSIp{align-items:flex-start;display:flex;height:100vh;justify-content:center;left:0;position:fixed;top:0;visibility:hidden;width:100vw;z-index:10}.BaseModal-module_modal__IoSIp .BaseModal-module_backdrop__c4BrM{background-color:transparent;content:"";height:100%;left:0;position:absolute;top:0;transition-duration:.5s;transition-property:background-color;transition-timing-function:ease;width:100%}@media (prefers-reduced-motion:reduce){.BaseModal-module_modal__IoSIp .BaseModal-module_backdrop__c4BrM{transition-duration:.1ms}}.BaseModal-module_modal__IoSIp.BaseModal-module_visible__r7HeM{visibility:visible}.BaseModal-module_modal__IoSIp.BaseModal-module_visible__r7HeM .BaseModal-module_backdrop__c4BrM{background-color:var(--modal-backdrop-color);opacity:.75}.BaseModal-module_container__vHjfd{background-color:var(--modal-background-color);display:flex;flex-direction:column;height:auto;margin-top:3.125rem;max-height:calc(90% - 3.125rem);width:calc(100% - 2rem);z-index:11}@media only screen and (min-width:50em){.BaseModal-module_container__vHjfd{border-radius:2px;box-shadow:0 30px 50px var(--modal-shadow-color);width:50rem}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2VNb2RhbC5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRTtBQUNGOzs7Ozs7Ozs7Ozs7OztFQWNFO0FBQ0Y7Ozs7Ozs7Ozs7Ozs7O0VBY0UsQ0FDRixpQ0FPRSxrQkFBc0IsQ0FDdEIsUUFBUyxDQUxULFVBQVcsQ0FFWCxXQUFZLENBQ1osZUFBZ0IsQ0FGaEIsU0FBVSxDQUhWLGlCQUFrQixDQUNsQixTQU9GLENBRUEsZ0NBQ0UsWUFDRixDQUVBLGtDQUNFLHVEQUNGLENBQ0Esd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2tncm91bmQtY29sb3I6IHZhcigtLW1vZGFsLWJhY2tncm91bmQtY29sb3IpO1xuICB6LWluZGV4OiAxMTtcbiAgd2lkdGg6IGNhbGMoMTAwJSAtIDJyZW0pO1xuICBoZWlnaHQ6IGF1dG87XG4gIG1heC1oZWlnaHQ6IGNhbGMoOTAlIC0gMy4xMjVyZW0pO1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xufVxuXG5AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtaW4td2lkdGg6IDUwZW0pIHtcbiAgLmNvbnRhaW5lciB7XG4gICAgd2lkdGg6IDUwcmVtO1xuICAgIGJvcmRlci1yYWRpdXM6IDJweDtcbiAgICBib3gtc2hhZG93OiAwIDMwcHggNTBweCB2YXIoLS1tb2RhbC1zaGFkb3ctY29sb3IpO1xuICB9XG59Il19 */';var l={"sr-only":"BaseModal-module_sr-only__zUl6G",hidden:"BaseModal-module_hidden__Tky0a","slide-in":"BaseModal-module_slide-in__3bHb-","slide-out":"BaseModal-module_slide-out__uPXZJ",modal:"BaseModal-module_modal__IoSIp",backdrop:"BaseModal-module_backdrop__c4BrM",visible:"BaseModal-module_visible__r7HeM",container:"BaseModal-module_container__vHjfd"};i(e);export{l as default};
2
2
  //# sourceMappingURL=BaseModal.module.esm.js.map
@@ -1,2 +1,2 @@
1
- import e,{useRef as t}from"react";import a from"./BaseModalActions.module.esm.js";import{Button as l}from"../../../Button/Button.esm.js";const c=e.forwardRef((({children:c,cancelAction:o,cancelActionsClassName:n="",onClose:r,className:s="",...m},i)=>{const d=e.createRef()||i,f=t(null),u=t(null),p=e.createElement(l,{variant:"text",color:"default",...null==o?void 0:o.cancelButtonProps,onClick:r},null==o?void 0:o.label);return e.createElement("div",{...m,ref:d,className:`${a.actions} ${s}`},o&&e.createElement("div",{className:`${a["cancel-action"]} ${n}`,ref:f},p),c&&e.createElement("div",{ref:u,className:a["primary-actions"]},c))}));export{c as BaseModalActions};
1
+ import e,{useRef as t}from"react";import o from"./BaseModalActions.module.esm.js";import{Button as c}from"../../../Button/Button.esm.js";const n=({children:n,cancelAction:a,cancelActionsClassName:l="",onClose:s,className:r="",...i},m)=>{const d=e.createRef()||m;const f=t(null);const u=t(null);const v=e.createElement(c,{variant:"text",color:"default",...a===null||a===void 0?void 0:a.cancelButtonProps,onClick:s},a===null||a===void 0?void 0:a.label);return e.createElement("div",{...i,ref:d,className:`${o["actions"]} ${r}`},a&&e.createElement("div",{className:`${o["cancel-action"]} ${l}`,ref:f},v),n&&e.createElement("div",{ref:u,className:o["primary-actions"]},n))};const a=e.forwardRef(n);export{a as BaseModalActions};
2
2
  //# sourceMappingURL=BaseModalActions.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseModalActions.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"BaseModalActions.esm.js","sources":["../../../../../../../src/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.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, useRef } from \"react\";\nimport classes from \"./BaseModalActions.module.scss\";\nimport { Button, Props as ButtonProps } from \"../../../Button/Button\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n children?: React.ReactNode;\n onClose?: () => void;\n cancelAction?: CancelAction;\n cancelActionsClassName?: string;\n}\n\nexport interface CancelAction {\n label: string;\n cancelButtonProps?: ButtonProps;\n}\n\nconst BaseModalActionsComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, cancelAction, cancelActionsClassName = \"\", onClose, className = \"\", ...rest }: Props,\n ref\n) => {\n const innerRef = (React.createRef() as React.RefObject<HTMLDivElement>) || ref;\n const cancelButtonRef = useRef<HTMLDivElement>(null);\n const primaryActionsRef = useRef<HTMLDivElement>(null);\n\n const cancelButton = (\n <Button variant=\"text\" color=\"default\" {...cancelAction?.cancelButtonProps} onClick={onClose}>\n {cancelAction?.label}\n </Button>\n );\n\n return (\n <div {...rest} ref={innerRef} className={`${classes[\"actions\"]} ${className}`}>\n {cancelAction && (\n <div\n className={`${classes[\"cancel-action\"]} ${cancelActionsClassName}`}\n ref={cancelButtonRef}\n >\n {cancelButton}\n </div>\n )}\n {children && (\n <div ref={primaryActionsRef} className={classes[\"primary-actions\"]}>\n {children}\n </div>\n )}\n </div>\n );\n};\n\nexport const BaseModalActions = React.forwardRef(BaseModalActionsComponent);\n"],"names":["BaseModalActionsComponent","children","cancelAction","cancelActionsClassName","onClose","className","rest","ref","innerRef","React","createRef","cancelButtonRef","useRef","primaryActionsRef","cancelButton","createElement","Button","variant","color","cancelButtonProps","onClick","label","classes","BaseModalActions","forwardRef"],"mappings":"yIAgCA,MAAMA,EAA6E,EAC/EC,WAAUC,eAAcC,yBAAyB,GAAIC,UAASC,YAAY,MAAOC,GACnFC,KAEA,MAAMC,EAAYC,EAAMC,aAAmDH,EAC3E,MAAMI,EAAkBC,EAAuB,MAC/C,MAAMC,EAAoBD,EAAuB,MAEjD,MAAME,EACJL,EAAAM,cAACC,EAAO,CAAAC,QAAQ,OAAOC,MAAM,aAAchB,IAAA,MAAAA,SAAA,OAAA,EAAAA,EAAciB,kBAAmBC,QAAShB,GAClFF,IAAA,MAAAA,kBAAAA,EAAcmB,OAInB,OACEZ,EAASM,cAAA,MAAA,IAAAT,EAAMC,IAAKC,EAAUH,UAAW,GAAGiB,EAAQ,cAAcjB,KAC/DH,GACCO,EACEM,cAAA,MAAA,CAAAV,UAAW,GAAGiB,EAAQ,oBAAoBnB,IAC1CI,IAAKI,GAEJG,GAGJb,GACCQ,EAAAM,cAAA,MAAA,CAAKR,IAAKM,EAAmBR,UAAWiB,EAAQ,oBAC7CrB,GAIP,EAGS,MAAAsB,EAAmBd,EAAMe,WAAWxB"}
@@ -1,2 +1,2 @@
1
- var containers=[],styleTags=[];const e = function(e,t){if(e&&"undefined"!=typeof document){var n,s=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,a="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var i=containers.indexOf(a);-1===i&&(i=containers.push(a)-1,styleTags[i]={}),n=styleTags[i]&&styleTags[i][s]?styleTags[i][s]:styleTags[i][s]=c()}else n=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var i="prepend"===s?"afterbegin":"beforeend";return a.insertAdjacentElement(i,e),e}};var a=".BaseModalActions_module_actions__f86dea4c{border-top:1px solid var(--color-blue-grey100);display:flex;justify-content:space-between;margin:1.5rem 0 1rem;padding:1rem 1.5rem 0}.BaseModalActions_module_actions__f86dea4c>*+*{margin-left:2rem}@media screen and (max-width:640px){.BaseModalActions_module_actions__f86dea4c{display:block}.BaseModalActions_module_actions__f86dea4c .BaseModalActions_module_cancelAction__f86dea4c{display:none}.BaseModalActions_module_actions__f86dea4c .BaseModalActions_module_primaryActions__f86dea4c{align-items:flex-end;flex-direction:column;margin-left:0}.BaseModalActions_module_actions__f86dea4c .BaseModalActions_module_primaryActions__f86dea4c>*{width:100%}.BaseModalActions_module_actions__f86dea4c .BaseModalActions_module_primaryActions__f86dea4c>*+*{margin-top:.5rem}}.BaseModalActions_module_primaryActions__f86dea4c{display:flex;flex-grow:1;justify-content:flex-end}.BaseModalActions_module_primaryActions__f86dea4c button{white-space:nowrap}@media screen and (min-width:640px){.BaseModalActions_module_primaryActions__f86dea4c button+button{margin-left:.5rem}}",o={actions:"BaseModalActions_module_actions__f86dea4c","cancel-action":"BaseModalActions_module_cancelAction__f86dea4c","primary-actions":"BaseModalActions_module_primaryActions__f86dea4c"};e(a,{});export{a as css,o as default};
1
+ import i from "../../../../lib/style-inject.js";var e='/*!\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 */.BaseModalActions-module_actions__U83Sp{border-top:1px solid var(--color-blue-grey100);display:flex;justify-content:space-between;margin:1.5rem 0 1rem;padding:1rem 1.5rem 0}.BaseModalActions-module_actions__U83Sp>*+*{margin-left:2rem}@media screen and (max-width:640px){.BaseModalActions-module_actions__U83Sp{display:block}.BaseModalActions-module_actions__U83Sp .BaseModalActions-module_cancel-action__MFK8v{display:none}.BaseModalActions-module_actions__U83Sp .BaseModalActions-module_primary-actions__KFtY1{align-items:flex-end;flex-direction:column;margin-left:0}.BaseModalActions-module_actions__U83Sp .BaseModalActions-module_primary-actions__KFtY1>*{width:100%}.BaseModalActions-module_actions__U83Sp .BaseModalActions-module_primary-actions__KFtY1>*+*{margin-top:.5rem}}.BaseModalActions-module_primary-actions__KFtY1{display:flex;flex-grow:1;justify-content:flex-end}.BaseModalActions-module_primary-actions__KFtY1 button{white-space:nowrap}@media screen and (min-width:640px){.BaseModalActions-module_primary-actions__KFtY1 button+button{margin-left:.5rem}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2VNb2RhbEFjdGlvbnMubW9kdWxlLnNjc3MiXSwibmFtZ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gKiB7XG4gICAgbWFyZ2luLXRvcDogMC41cmVtO1xuICB9XG59XG5cbi5wcmltYXJ5LWFjdGlvbnMge1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWdyb3c6IDE7XG4gIGp1c3RpZnktY29udGVudDogZmxleC1lbmQ7XG59XG4ucHJpbWFyeS1hY3Rpb25zIGJ1dHRvbiB7XG4gIHdoaXRlLXNwYWNlOiBub3dyYXA7XG59XG5AbWVkaWEgc2NyZWVuIGFuZCAobWluLXdpZHRoOiA2NDBweCkge1xuICAucHJpbWFyeS1hY3Rpb25zIGJ1dHRvbiArIGJ1dHRvbiB7XG4gICAgbWFyZ2luLWxlZnQ6IDAuNXJlbTtcbiAgfVxufSJdfQ== */';var c={actions:"BaseModalActions-module_actions__U83Sp","cancel-action":"BaseModalActions-module_cancel-action__MFK8v","primary-actions":"BaseModalActions-module_primary-actions__KFtY1"};i(e);export{c as default};
2
2
  //# sourceMappingURL=BaseModalActions.module.esm.js.map
@@ -1,2 +1,2 @@
1
- import e,{createRef as o,useEffect as r}from"react";import t from"./BaseModalContent.module.esm.js";const n=e.forwardRef((({id:n,children:c,className:l="",disableAutoFocus:s=!1,...a},d)=>{const u=o();return r((()=>{var e,o;!s&&d?null===(e=d.current)||void 0===e||e.focus():s||null===(o=u.current)||void 0===o||o.focus()}),[]),e.createElement("div",{...a,ref:null!=d?d:u,id:n,className:`${t.content} ${l}`,tabIndex:-1},c)}));export{n as BaseModalContent};
1
+ import e,{createRef as o,useEffect as r}from"react";import t from"./BaseModalContent.module.esm.js";const n=({id:n,children:s,className:l="",disableAutoFocus:c=false,...d},i)=>{const a=o();r((()=>{var e,o;if(!c&&i)(e=i.current)===null||e===void 0?void 0:e.focus();else if(!c)(o=a.current)===null||o===void 0?void 0:o.focus()}),[]);return e.createElement("div",{...d,ref:i!==null&&i!==void 0?i:a,id:n,className:`${t["content"]} ${l}`,tabIndex:-1},s)};const s=e.forwardRef(n);export{s as BaseModalContent};
2
2
  //# sourceMappingURL=BaseModalContent.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseModalContent.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"BaseModalContent.esm.js","sources":["../../../../../../../src/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.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 ForwardRefRenderFunction,\n ComponentPropsWithRef,\n createRef,\n useEffect\n} from \"react\";\nimport classes from \"./BaseModalContent.module.scss\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id?: string;\n children: React.ReactNode;\n className?: string;\n disableAutoFocus?: boolean;\n}\n\nconst BaseModalContentComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { id, children, className = \"\", disableAutoFocus = false, ...rest }: Props,\n ref\n) => {\n const contentRef = createRef<HTMLDivElement>();\n\n useEffect(() => {\n if (!disableAutoFocus && ref) {\n (ref as React.RefObject<HTMLDivElement>).current?.focus();\n } else if (!disableAutoFocus) {\n contentRef.current?.focus();\n }\n }, []);\n\n /**tabIndex is set to be able to do focus on that element which we need for catching keyDown events */\n return (\n <div\n {...rest}\n ref={ref ?? contentRef}\n id={id}\n className={`${classes[\"content\"]} ${className}`}\n tabIndex={-1}\n >\n {children}\n </div>\n );\n};\n\nexport const BaseModalContent = React.forwardRef(BaseModalContentComponent);\n"],"names":["BaseModalContentComponent","id","children","className","disableAutoFocus","rest","ref","contentRef","createRef","useEffect","_a","current","focus","_b","React","createElement","classes","tabIndex","BaseModalContent","forwardRef"],"mappings":"oGA+BA,MAAMA,EAA6E,EAC/EC,KAAIC,WAAUC,YAAY,GAAIC,mBAAmB,SAAUC,GAC7DC,KAEA,MAAMC,EAAaC,IAEnBC,GAAU,aACR,IAAKL,GAAoBE,GACvBI,EAACJ,EAAwCK,WAAS,MAAAD,SAAA,OAAA,EAAAA,EAAAE,aAC7C,IAAKR,GACVS,EAAAN,EAAWI,WAAS,MAAAE,SAAA,OAAA,EAAAA,EAAAD,OACrB,GACA,IAGH,OACEE,EACMC,cAAA,MAAA,IAAAV,EACJC,IAAKA,IAAG,MAAHA,SAAG,EAAHA,EAAOC,EACZN,GAAIA,EACJE,UAAW,GAAGa,EAAQ,cAAcb,IACpCc,UAAW,GAEVf,EAEH,EAGS,MAAAgB,EAAmBJ,EAAMK,WAAWnB"}
@@ -1,2 +1,2 @@
1
- var containers=[],styleTags=[];const e = function(e,t){if(e&&"undefined"!=typeof document){var n,s=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,a="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var i=containers.indexOf(a);-1===i&&(i=containers.push(a)-1,styleTags[i]={}),n=styleTags[i]&&styleTags[i][s]?styleTags[i][s]:styleTags[i][s]=c()}else n=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var i="prepend"===s?"afterbegin":"beforeend";return a.insertAdjacentElement(i,e),e}};var o=".BaseModalContent_module_content__31c9c47f{color:var(--color-blue-grey500);flex:1;font-size:.875rem;line-height:1.25rem;outline:none;overflow-y:auto;padding:1.25rem 1.5rem 0}",t={content:"BaseModalContent_module_content__31c9c47f"};e(o,{});export{o as css,t as default};
1
+ import e from "../../../../lib/style-inject.js";var i='/*!\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 */.BaseModalContent-module_content__EBc1p{color:var(--color-blue-grey500);flex:1;font-size:.875rem;line-height:1.25rem;outline:none;overflow-y:auto;padding:1.25rem 1.5rem 0}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2VNb2RhbENvbnRlbnQubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0UsQ0FDRix3Q0FLRSwrQkFBZ0MsQ0FGaEMsTUFBTyxDQUdQLGlCQUFtQixDQUNuQixtQkFBb0IsQ0FIcEIsWUFBYSxDQUZiLGVBQWdCLENBRGhCLHdCQU9GIiwiZmlsZSI6IkJhc2VNb2RhbENvbnRlbnQubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIvKiFcbiAqIENvcHlyaWdodCAyMDIyIE9uZVdlbGNvbWUgQi5WLlxuICpcbiAqICAgIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiAgICB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiAgICBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgICAgaHR0cDovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXG4gKlxuICogICAgVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogICAgZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIEJBU0lTLFxuICogICAgV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiAgICBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiAgICBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuLmNvbnRlbnQge1xuICBwYWRkaW5nOiAxLjI1cmVtIDEuNXJlbSAwO1xuICBvdmVyZmxvdy15OiBhdXRvO1xuICBmbGV4OiAxO1xuICBvdXRsaW5lOiBub25lO1xuICBjb2xvcjogdmFyKC0tY29sb3ItYmx1ZS1ncmV5NTAwKTtcbiAgZm9udC1zaXplOiAwLjg3NXJlbTtcbiAgbGluZS1oZWlnaHQ6IDEuMjVyZW07XG59Il19 */';var n={content:"BaseModalContent-module_content__EBc1p"};e(i);export{n as default};
2
2
  //# sourceMappingURL=BaseModalContent.module.esm.js.map
@@ -1,2 +1,2 @@
1
- const e=e=>`${e}-label`,o=e=>`${e}-description`;export{o as descriptionId,e as labelId};
1
+ const o=o=>`${o}-label`;const t=o=>`${o}-description`;export{t as descriptionId,o as labelId};
2
2
  //# sourceMappingURL=BaseModalContext.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseModalContext.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"BaseModalContext.esm.js","sources":["../../../../../../src/components/Notifications/BaseModal/BaseModalContext.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const labelId = (id: string) => `${id}-label`;\nexport const descriptionId = (id: string) => `${id}-description`;\n"],"names":["labelId","id","descriptionId"],"mappings":"AAgBO,MAAMA,EAAWC,GAAe,GAAGA,UACnC,MAAMC,EAAiBD,GAAe,GAAGA"}
@@ -1,2 +1,2 @@
1
- import e from"react";import t from"./BaseModalHeader.module.esm.js";import{IconButton as a}from"../../../Button/IconButton.esm.js";import{Icon as o,Icons as m}from"../../../Icon/Icon.esm.js";import{Typography as r}from"../../../Typography/Typography.esm.js";const s=e.forwardRef((({id:s,title:l,children:c,onClose:i,...n},d)=>e.createElement("div",{...n,ref:d,className:t.header},e.createElement("div",{className:t.headline},e.createElement("div",{className:t["title-wrapper"]},e.createElement(r,{id:s,className:t.title,tag:"h1",spacing:{marginBottom:0},variant:"h4"},l)),e.createElement(a,{onClick:i,className:t.closeBtn,title:"close modal"},e.createElement(o,{icon:m.Times}))),c)));export{s as BaseModalHeader};
1
+ import e from"react";import t from"./BaseModalHeader.module.esm.js";import{IconButton as a}from"../../../Button/IconButton.esm.js";import{Icon as o,Icons as m}from"../../../Icon/Icon.esm.js";import{Typography as r}from"../../../Typography/Typography.esm.js";const s=({id:s,title:l,children:c,onClose:i,...n},d)=>e.createElement("div",{...n,ref:d,className:t["header"]},e.createElement("div",{className:t["headline"]},e.createElement("div",{className:t["title-wrapper"]},e.createElement(r,{id:s,className:t["title"],tag:"h1",spacing:{marginBottom:0},variant:"h4"},l)),e.createElement(a,{onClick:i,className:t["closeBtn"],title:"close modal"},e.createElement(o,{icon:m.Times}))),c);const l=e.forwardRef(s);export{l as BaseModalHeader};
2
2
  //# sourceMappingURL=BaseModalHeader.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseModalHeader.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"BaseModalHeader.esm.js","sources":["../../../../../../../src/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.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 } from \"react\";\nimport classes from \"./BaseModalHeader.module.scss\";\nimport { IconButton } from \"../../../Button/IconButton\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\nimport { Typography } from \"../../../Typography/Typography\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id: string;\n title: string;\n children?: React.ReactNode;\n onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n}\n\nconst BaseModalHeaderComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { id, title, children, onClose, ...rest }: Props,\n ref\n) => {\n return (\n <div {...rest} ref={ref} className={classes[\"header\"]}>\n <div className={classes[\"headline\"]}>\n <div className={classes[\"title-wrapper\"]}>\n <Typography\n id={id}\n className={classes[\"title\"]}\n tag=\"h1\"\n spacing={{ marginBottom: 0 }}\n variant=\"h4\"\n >\n {title}\n </Typography>\n </div>\n <IconButton onClick={onClose} className={classes[\"closeBtn\"]} title=\"close modal\">\n <Icon icon={Icons.Times} />\n </IconButton>\n </div>\n {children}\n </div>\n );\n};\n\nexport const BaseModalHeader = React.forwardRef(BaseModalHeaderComponent);\n"],"names":["BaseModalHeaderComponent","id","title","children","onClose","rest","ref","React","createElement","className","classes","Typography","tag","spacing","marginBottom","variant","IconButton","onClick","Icon","icon","Icons","Times","BaseModalHeader","forwardRef"],"mappings":"kQA6BA,MAAMA,EAA4E,EAC9EC,KAAIC,QAAOC,WAAUC,aAAYC,GACnCC,IAGEC,EAAAC,cAAA,MAAA,IAASH,EAAMC,IAAKA,EAAKG,UAAWC,EAAQ,WAC1CH,EAAAC,cAAA,MAAA,CAAKC,UAAWC,EAAQ,aACtBH,EAAAC,cAAA,MAAA,CAAKC,UAAWC,EAAQ,kBACtBH,EAAAC,cAACG,EAAU,CACTV,GAAIA,EACJQ,UAAWC,EAAQ,SACnBE,IAAI,KACJC,QAAS,CAAEC,aAAc,GACzBC,QAAQ,MAEPb,IAGLK,EAAAC,cAACQ,EAAU,CAACC,QAASb,EAASK,UAAWC,EAAQ,YAAaR,MAAM,eAClEK,EAACC,cAAAU,GAAKC,KAAMC,EAAMC,UAGrBlB,GAKM,MAAAmB,EAAkBf,EAAMgB,WAAWvB"}
@@ -1,2 +1,2 @@
1
- var containers=[],styleTags=[];const e = function(e,t){if(e&&"undefined"!=typeof document){var n,s=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,a="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var i=containers.indexOf(a);-1===i&&(i=containers.push(a)-1,styleTags[i]={}),n=styleTags[i]&&styleTags[i][s]?styleTags[i][s]:styleTags[i][s]=c()}else n=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var i="prepend"===s?"afterbegin":"beforeend";return a.insertAdjacentElement(i,e),e}};var d=".BaseModalHeader_module_header__21d2b4f9{border-top-left-radius:8px;border-top-right-radius:8px;min-width:80px;padding:1.25rem 1.5rem 0}.BaseModalHeader_module_headline__21d2b4f9{align-items:center;display:flex;justify-content:space-between}.BaseModalHeader_module_title__21d2b4f9{flex:1;margin:0}",a={header:"BaseModalHeader_module_header__21d2b4f9",headline:"BaseModalHeader_module_headline__21d2b4f9",title:"BaseModalHeader_module_title__21d2b4f9"};e(d,{});export{d as css,a as default};
1
+ import e from "../../../../lib/style-inject.js";var l='/*!\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 */.BaseModalHeader-module_header__TYT6j{border-top-left-radius:8px;border-top-right-radius:8px;min-width:80px;padding:1.25rem 1.5rem 0}.BaseModalHeader-module_headline__07ZhA{align-items:center;display:flex;justify-content:space-between}.BaseModalHeader-module_title__8sCRn{flex:1;margin:0}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2VNb2RhbEhlYWRlci5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLHNDQUdFLDBCQUEyQixDQUMzQiwyQkFBNEIsQ0FINUIsY0FBZSxDQUNmLHdCQUdGLENBRUEsd0NBRUUsa0JBQW1CLENBRG5CLFlBQWEsQ0FFYiw2QkFDRixDQUVBLHFDQUNFLE1BQU8sQ0FDUCxRQUNGIiwiZmlsZSI6IkJhc2VNb2RhbEhlYWRlci5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250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sZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2Vlbjtcbn1cblxuLnRpdGxlIHtcbiAgZmxleDogMTtcbiAgbWFyZ2luOiAwO1xufSJdfQ== */';var i={header:"BaseModalHeader-module_header__TYT6j",headline:"BaseModalHeader-module_headline__07ZhA",title:"BaseModalHeader-module_title__8sCRn"};e(l);export{i as default};
2
2
  //# sourceMappingURL=BaseModalHeader.module.esm.js.map
@@ -1,2 +1,2 @@
1
- import e,{useState as o}from"react";import{BaseModal as t}from"../BaseModal/BaseModal.esm.js";import{BaseModalContent as a}from"../BaseModal/BaseModalContent/BaseModalContent.esm.js";import{DialogActions as n}from"./DialogActions/DialogActions.esm.js";import i from"./Dialog.module.esm.js";import{DialogTitle as l}from"./DialogTitle/DialogTitle.esm.js";import{Button as r}from"../../Button/Button.esm.js";import{labelId as s,descriptionId as c}from"../BaseModal/BaseModalContext.esm.js";import{generateID as m}from"../../src/util/helper.esm.js";const d=e.forwardRef((({id:d,open:p,children:u,onClose:f,title:y,primaryAction:B,secondaryAction:E,cancelAction:b,zIndex:g,disableEscapeKeyDown:j=!0,titleIcon:D,caption:h,...A},C)=>{const[M]=o(null!=d?d:m(20)),{label:x,...k}=B,w=e.createElement(r,{key:"primary",...k},x),I=E&&function(){const{label:o,...t}=E;return e.createElement(r,{key:"tertiary",variant:"outline",...t},o)}();return e.createElement(t,{...A,ref:C,id:M,className:i.dialog,containerProps:{className:i.container},open:p,disableBackdrop:!0,onClose:f,zIndex:g,disableEscapeKeyDown:j},e.createElement(l,{titleIcon:D,caption:h,id:s(M),title:y}),e.createElement(a,{id:c(M),className:i.content,disableAutoFocus:!0},u),e.createElement(n,{onClose:f,cancelAction:b},[I,w]),e.createElement("input",{autoFocus:!0,"aria-hidden":!0,style:{position:"absolute",width:0,height:0,opacity:0},maxLength:0,tabIndex:-1,onKeyDown:e=>{"Enter"===e.key&&B.onClick()}}))}));export{d as Dialog};
1
+ import e,{useState as t}from"react";import{BaseModal as o}from"../BaseModal/BaseModal.esm.js";import{BaseModalContent as n}from"../BaseModal/BaseModalContent/BaseModalContent.esm.js";import{DialogActions as a}from"./DialogActions/DialogActions.esm.js";import i from"./Dialog.module.esm.js";import{DialogTitle as r}from"./DialogTitle/DialogTitle.esm.js";import{Button as s}from"../../Button/Button.esm.js";import{labelId as l,descriptionId as c}from"../BaseModal/BaseModalContext.esm.js";import{generateID as m}from"../../src/util/helper.esm.js";const d=({id:d,open:p,children:u,onClose:f,title:y,primaryAction:B,secondaryAction:E,cancelAction:b,zIndex:g,disableEscapeKeyDown:j=true,titleIcon:D,caption:h,...A},C)=>{const[M]=t(d!==null&&d!==void 0?d:m(20));const{label:x,...k}=B;const w=e.createElement(s,{key:"primary",...k},x);const I=E&&function(){const{label:t,...o}=E;return e.createElement(s,{key:"tertiary",variant:"outline",...o},t)}();const K=e=>{if(e.key==="Enter")B.onClick()};return e.createElement(o,{...A,ref:C,id:M,className:i["dialog"],containerProps:{className:i["container"]},open:p,disableBackdrop:true,onClose:f,zIndex:g,disableEscapeKeyDown:j},e.createElement(r,{titleIcon:D,caption:h,id:l(M),title:y}),e.createElement(n,{id:c(M),className:i["content"],disableAutoFocus:true},u),e.createElement(a,{onClose:f,cancelAction:b},[I,w]),e.createElement("input",{autoFocus:true,"aria-hidden":true,style:{position:"absolute",width:0,height:0,opacity:0},maxLength:0,tabIndex:-1,onKeyDown:K}))};const p=e.forwardRef(d);export{p as Dialog};
2
2
  //# sourceMappingURL=Dialog.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"Dialog.esm.js","sources":["../../../../../../src/components/Notifications/Dialog/Dialog.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, useState } from \"react\";\nimport { BaseModal } from \"../BaseModal/BaseModal\";\nimport { BaseModalContent } from \"../BaseModal/BaseModalContent/BaseModalContent\";\nimport { DialogActions } from \"./DialogActions/DialogActions\";\nimport classes from \"./Dialog.module.scss\";\nimport { DialogTitle } from \"./DialogTitle/DialogTitle\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { labelId, descriptionId } from \"../BaseModal/BaseModalContext\";\nimport { generateID } from \"../../../util/helper\";\nimport { CancelAction } from \"../BaseModal/BaseModalActions/BaseModalActions\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id?: string;\n open: boolean;\n children: React.ReactNode;\n onClose: () => void;\n title: string;\n primaryAction: Action;\n secondaryAction?: Action;\n cancelAction?: CancelAction;\n zIndex?: number;\n disableEscapeKeyDown?: boolean;\n titleIcon?: React.ReactNode;\n caption?: string;\n}\n\nexport interface Action extends Omit<ButtonProps, \"variant\" | \"ref\"> {\n label: string;\n onClick: (event?: React.MouseEvent<HTMLButtonElement>) => unknown;\n}\n\nconst DialogComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n {\n id,\n open,\n children,\n onClose,\n title,\n primaryAction,\n secondaryAction,\n cancelAction,\n zIndex,\n disableEscapeKeyDown = true,\n titleIcon,\n caption,\n ...rest\n }: Props,\n ref\n) => {\n const [dialogId] = useState(id ?? generateID(20));\n const { label: primaryLabel, ...restOfPrimaryAction } = primaryAction;\n const PrimaryButton = (\n <Button key=\"primary\" {...restOfPrimaryAction}>\n {primaryLabel}\n </Button>\n );\n\n const SecondaryButton =\n secondaryAction &&\n (function () {\n const { label: secondaryLabel, ...restOfSecondaryAction } = secondaryAction;\n return (\n <Button key=\"tertiary\" variant=\"outline\" {...restOfSecondaryAction}>\n {secondaryLabel}\n </Button>\n );\n })();\n\n const onHiddenInputKeyPress = (event: React.KeyboardEvent<HTMLInputElement>) => {\n /** It has to be here because then we will need to check if user doesn't click tab to select action button and want to do another action then primary one? */\n if (event.key === \"Enter\") {\n primaryAction.onClick();\n }\n };\n\n return (\n <BaseModal\n {...rest}\n ref={ref}\n id={dialogId}\n className={classes[\"dialog\"]}\n containerProps={{ className: classes[\"container\"] }}\n open={open}\n disableBackdrop\n onClose={onClose}\n zIndex={zIndex}\n disableEscapeKeyDown={disableEscapeKeyDown}\n >\n <DialogTitle titleIcon={titleIcon} caption={caption} id={labelId(dialogId)} title={title} />\n <BaseModalContent\n id={descriptionId(dialogId)}\n className={classes[\"content\"]}\n disableAutoFocus\n >\n {children}\n </BaseModalContent>\n <DialogActions onClose={onClose} cancelAction={cancelAction}>\n {[SecondaryButton, PrimaryButton]}\n </DialogActions>\n <input\n autoFocus\n aria-hidden={true}\n style={{\n position: \"absolute\",\n width: 0,\n height: 0,\n opacity: 0\n }}\n maxLength={0}\n tabIndex={-1}\n onKeyDown={onHiddenInputKeyPress}\n />\n </BaseModal>\n );\n};\n\nexport const Dialog = React.forwardRef(DialogComponent);\n"],"names":["DialogComponent","id","open","children","onClose","title","primaryAction","secondaryAction","cancelAction","zIndex","disableEscapeKeyDown","titleIcon","caption","rest","ref","dialogId","useState","generateID","label","primaryLabel","restOfPrimaryAction","PrimaryButton","React","createElement","Button","key","SecondaryButton","secondaryLabel","restOfSecondaryAction","variant","onHiddenInputKeyPress","event","onClick","BaseModal","className","classes","containerProps","disableBackdrop","DialogTitle","labelId","BaseModalContent","descriptionId","disableAutoFocus","DialogActions","autoFocus","style","position","width","height","opacity","maxLength","tabIndex","onKeyDown","Dialog","forwardRef"],"mappings":"iiBA+CA,MAAMA,EAAmE,EAErEC,KACAC,OACAC,WACAC,UACAC,QACAC,gBACAC,kBACAC,eACAC,SACAC,uBAAuB,KACvBC,YACAC,aACGC,GAELC,KAEA,MAAOC,GAAYC,EAASf,IAAE,MAAFA,SAAE,EAAFA,EAAMgB,EAAW,KAC7C,MAAQC,MAAOC,KAAiBC,GAAwBd,EACxD,MAAMe,EACJC,EAAAC,cAACC,EAAO,CAAAC,IAAI,aAAcL,GACvBD,GAIL,MAAMO,EACJnB,GACA,WACE,MAAQW,MAAOS,KAAmBC,GAA0BrB,EAC5D,OACEe,EAACC,cAAAC,EAAO,CAAAC,IAAI,WAAWI,QAAQ,aAAcD,GAC1CD,EAGN,CAPD,GASF,MAAMG,EAAyBC,IAE7B,GAAIA,EAAMN,MAAQ,QAChBnB,EAAc0B,SACf,EAGH,OACEV,gBAACW,EAAS,IACJpB,EACJC,IAAKA,EACLb,GAAIc,EACJmB,UAAWC,EAAQ,UACnBC,eAAgB,CAAEF,UAAWC,EAAQ,cACrCjC,KAAMA,EACNmC,qBACAjC,QAASA,EACTK,OAAQA,EACRC,qBAAsBA,GAEtBY,EAACC,cAAAe,GAAY3B,UAAWA,EAAWC,QAASA,EAASX,GAAIsC,EAAQxB,GAAWV,MAAOA,IACnFiB,EAAAC,cAACiB,EACC,CAAAvC,GAAIwC,EAAc1B,GAClBmB,UAAWC,EAAQ,WACnBO,iBAAgB,MAEfvC,GAEHmB,EAAAC,cAACoB,EAAa,CAACvC,QAASA,EAASI,aAAcA,GAC5C,CAACkB,EAAiBL,IAErBC,EAAAC,cAAA,QAAA,CACEqB,UAAS,KAAA,cACI,KACbC,MAAO,CACLC,SAAU,WACVC,MAAO,EACPC,OAAQ,EACRC,QAAS,GAEXC,UAAW,EACXC,UAAW,EACXC,UAAWtB,IAGf,EAGS,MAAAuB,EAAS/B,EAAMgC,WAAWtD"}
@@ -1,2 +1,2 @@
1
- var containers=[],styleTags=[];const o = function(e,t){if(e&&"undefined"!=typeof document){var n,s=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,a="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var i=containers.indexOf(a);-1===i&&(i=containers.push(a)-1,styleTags[i]={}),n=styleTags[i]&&styleTags[i][s]?styleTags[i][s]:styleTags[i][s]=c()}else n=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var i="prepend"===s?"afterbegin":"beforeend";return a.insertAdjacentElement(i,e),e}};var e=".Dialog_module_dialog__80b933d4{align-items:center}@media only screen and (min-width:50em){.Dialog_module_container__80b933d4{margin-top:0;max-height:90%;width:30rem}}.Dialog_module_content__80b933d4{padding-top:0}",i={dialog:"Dialog_module_dialog__80b933d4",container:"Dialog_module_container__80b933d4",content:"Dialog_module_content__80b933d4"};o(e,{});export{e as css,i as default};
1
+ import i from "../../../lib/style-inject.js";var e='/*!\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 */.Dialog-module_dialog__91qHi{align-items:center}@media only screen and (min-width:50em){.Dialog-module_container__SXyt2{margin-top:0;max-height:90%;width:30rem}}.Dialog-module_content__RTnpE{padding-top:0}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpYWxvZy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDZCQUNFLGtCQUNGLENBRUEs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c2NyZWVuIGFuZCAobWluLXdpZHRoOiA1MGVtKSB7XG4gIC5jb250YWluZXIge1xuICAgIHdpZHRoOiAzMHJlbTtcbiAgICBtYXJnaW4tdG9wOiAwO1xuICAgIG1heC1oZWlnaHQ6IDkwJTtcbiAgfVxufVxuLmNvbnRlbnQge1xuICBwYWRkaW5nLXRvcDogMDtcbn0iXX0= */';var l={dialog:"Dialog-module_dialog__91qHi",container:"Dialog-module_container__SXyt2",content:"Dialog-module_content__RTnpE"};i(e);export{l as default};
2
2
  //# sourceMappingURL=Dialog.module.esm.js.map
@@ -1,2 +1,2 @@
1
- import o from"react";import{BaseModalActions as e}from"../../BaseModal/BaseModalActions/BaseModalActions.esm.js";import c from"./DialogActions.module.esm.js";const a=o.forwardRef((({children:a,cancelAction:s,onClose:n,...t},l)=>o.createElement(e,{...t,cancelAction:s,cancelActionsClassName:c["cancel-action"],onClose:n,ref:l,className:c.actions},a)));export{a as DialogActions};
1
+ import o from"react";import{BaseModalActions as e}from"../../BaseModal/BaseModalActions/BaseModalActions.esm.js";import c from"./DialogActions.module.esm.js";const a=({children:a,cancelAction:s,onClose:n,...t},l)=>o.createElement(e,{...t,cancelAction:s,cancelActionsClassName:c["cancel-action"],onClose:n,ref:l,className:c["actions"]},a);const s=o.forwardRef(a);export{s as DialogActions};
2
2
  //# sourceMappingURL=DialogActions.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DialogActions.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"DialogActions.esm.js","sources":["../../../../../../../src/components/Notifications/Dialog/DialogActions/DialogActions.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 } from \"react\";\nimport {\n BaseModalActions,\n Props as BaseModalActionsProps,\n CancelAction\n} from \"../../BaseModal/BaseModalActions/BaseModalActions\";\nimport classes from \"./DialogActions.module.scss\";\n\nexport interface Props extends ComponentPropsWithRef<any>, BaseModalActionsProps {\n cancelAction?: CancelAction;\n}\n\nconst DialogActionsComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, cancelAction, onClose, ...rest }: Props,\n ref\n) => {\n return (\n <BaseModalActions\n {...rest}\n cancelAction={cancelAction}\n cancelActionsClassName={classes[\"cancel-action\"]}\n onClose={onClose}\n ref={ref}\n className={classes[\"actions\"]}\n >\n {children}\n </BaseModalActions>\n );\n};\n\nexport const DialogActions = React.forwardRef(DialogActionsComponent);\n"],"names":["DialogActionsComponent","children","cancelAction","onClose","rest","ref","React","createElement","BaseModalActions","cancelActionsClassName","classes","className","DialogActions","forwardRef"],"mappings":"8JA4BA,MAAMA,EAA0E,EAC5EC,WAAUC,eAAcC,aAAYC,GACtCC,IAGEC,EAAAC,cAACC,EAAgB,IACXJ,EACJF,aAAcA,EACdO,uBAAwBC,EAAQ,iBAChCP,QAASA,EACTE,IAAKA,EACLM,UAAWD,EAAQ,YAElBT,GAKM,MAAAW,EAAgBN,EAAMO,WAAWb"}
@@ -1,2 +1,2 @@
1
- var containers=[],styleTags=[];const o = function(e,t){if(e&&"undefined"!=typeof document){var n,s=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,a="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var i=containers.indexOf(a);-1===i&&(i=containers.push(a)-1,styleTags[i]={}),n=styleTags[i]&&styleTags[i][s]?styleTags[i][s]:styleTags[i][s]=c()}else n=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var i="prepend"===s?"afterbegin":"beforeend";return a.insertAdjacentElement(i,e),e}};var i=".DialogActions_module_actions__3e00d0bf *+*{margin-left:.5rem}@media screen and (max-width:640px){.DialogActions_module_actions__3e00d0bf .DialogActions_module_cancelAction__3e00d0bf{align-items:flex-end;display:block;flex-direction:column;margin-bottom:.5rem;margin-left:0}.DialogActions_module_actions__3e00d0bf .DialogActions_module_cancelAction__3e00d0bf>*{width:100%}}",e={actions:"DialogActions_module_actions__3e00d0bf","cancel-action":"DialogActions_module_cancelAction__3e00d0bf"};o(i,{});export{i as css,e as default};
1
+ import i from "../../../../lib/style-inject.js";var e='/*!\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 */.DialogActions-module_actions__K5DW4 *+*{margin-left:.5rem}@media screen and (max-width:640px){.DialogActions-module_actions__K5DW4 .DialogActions-module_cancel-action__0GxwH{align-items:flex-end;display:block;flex-direction:column;margin-bottom:.5rem;margin-left:0}.DialogActions-module_actions__K5DW4 .DialogActions-module_cancel-action__0GxwH>*{width:100%}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpYWxvZ0FjdGlvbnMubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0UsQ0FDRix5Q0FDRSxpQkFDRixDQUNBLG9DQUN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1xuICBtYXJnaW4tbGVmdDogMC41cmVtO1xufVxuQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogNjQwcHgpIHtcbiAgLmFjdGlvbnMgLmNhbmNlbC1hY3Rpb24ge1xuICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgYWxpZ24taXRlbXM6IGZsZXgtZW5kO1xuICAgIG1hcmdpbi1sZWZ0OiAwO1xuICAgIG1hcmdpbi1ib3R0b206IDAuNXJlbTtcbiAgfVxuICAuYWN0aW9ucyAuY2FuY2VsLWFjdGlvbiA+ICoge1xuICAgIHdpZHRoOiAxMDAlO1xuICB9XG59Il19 */';var c={actions:"DialogActions-module_actions__K5DW4","cancel-action":"DialogActions-module_cancel-action__0GxwH"};i(e);export{c as default};
2
2
  //# sourceMappingURL=DialogActions.module.esm.js.map
@@ -1,2 +1,2 @@
1
- import e from"react";import{Typography as t}from"../../../Typography/Typography.esm.js";import a from"./DialogTitle.module.esm.js";import{Icon as r,Icons as i}from"../../../Icon/Icon.esm.js";const o=e.forwardRef((({id:o,title:m,titleIcon:c,caption:n,...l},s)=>e.createElement("div",{...l,ref:s,className:a.header},c&&e.createElement("div",{className:a["title-icon"]},"boolean"==typeof c?e.createElement(r,{icon:i.InfoCircle}):c),e.createElement("div",{className:a["title-wrapper"]},e.createElement(t,{id:o,className:a.title,spacing:c&&{marginLeft:2},tag:"h1",variant:"h4"},m),n&&e.createElement(t,{className:a.caption,spacing:{marginLeft:2},variant:"sub-text"},n)))));export{o as DialogTitle};
1
+ import e from"react";import{Typography as t}from"../../../Typography/Typography.esm.js";import a from"./DialogTitle.module.esm.js";import{Icon as r,Icons as i}from"../../../Icon/Icon.esm.js";const o=({id:o,title:m,titleIcon:c,caption:n,...l},s)=>e.createElement("div",{...l,ref:s,className:a["header"]},c&&e.createElement("div",{className:a["title-icon"]},typeof c==="boolean"?e.createElement(r,{icon:i.InfoCircle}):c),e.createElement("div",{className:a["title-wrapper"]},e.createElement(t,{id:o,className:a["title"],spacing:c&&{marginLeft:2},tag:"h1",variant:"h4"},m),n&&e.createElement(t,{className:a["caption"],spacing:{marginLeft:2},variant:"sub-text"},n)));const m=e.forwardRef(o);export{m as DialogTitle};
2
2
  //# sourceMappingURL=DialogTitle.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DialogTitle.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"DialogTitle.esm.js","sources":["../../../../../../../src/components/Notifications/Dialog/DialogTitle/DialogTitle.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 } from \"react\";\nimport { Typography } from \"../../../Typography/Typography\";\nimport classes from \"./DialogTitle.module.scss\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id: string;\n title: string;\n titleIcon?: React.ReactNode;\n caption?: string;\n}\n\nconst DialogTitleComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { id, title, titleIcon, caption, ...rest }: Props,\n ref\n) => {\n return (\n <div {...rest} ref={ref} className={classes[\"header\"]}>\n {titleIcon && (\n <div className={classes[\"title-icon\"]}>\n {typeof titleIcon === \"boolean\" ? <Icon icon={Icons.InfoCircle} /> : titleIcon}\n </div>\n )}\n <div className={classes[\"title-wrapper\"]}>\n <Typography\n id={id}\n className={classes[\"title\"]}\n spacing={titleIcon && { marginLeft: 2 }}\n tag=\"h1\"\n variant=\"h4\"\n >\n {title}\n </Typography>\n {caption && (\n <Typography className={classes[\"caption\"]} spacing={{ marginLeft: 2 }} variant=\"sub-text\">\n {caption}\n </Typography>\n )}\n </div>\n </div>\n );\n};\n\nexport const DialogTitle = React.forwardRef(DialogTitleComponent);\n"],"names":["DialogTitleComponent","id","title","titleIcon","caption","rest","ref","React","createElement","className","classes","Icon","icon","Icons","InfoCircle","Typography","spacing","marginLeft","tag","variant","DialogTitle","forwardRef"],"mappings":"+LA4BA,MAAMA,EAAwE,EAC1EC,KAAIC,QAAOC,YAAWC,aAAYC,GACpCC,IAGEC,EAAAC,cAAA,MAAA,IAASH,EAAMC,IAAKA,EAAKG,UAAWC,EAAQ,WACzCP,GACCI,EAAKC,cAAA,MAAA,CAAAC,UAAWC,EAAQ,sBACdP,IAAc,UAAYI,EAACC,cAAAG,EAAK,CAAAC,KAAMC,EAAMC,aAAiBX,GAGzEI,EAAAC,cAAA,MAAA,CAAKC,UAAWC,EAAQ,kBACtBH,EAAAC,cAACO,EAAU,CACTd,GAAIA,EACJQ,UAAWC,EAAQ,SACnBM,QAASb,GAAa,CAAEc,WAAY,GACpCC,IAAI,KACJC,QAAQ,MAEPjB,GAEFE,GACCG,EAACC,cAAAO,EAAW,CAAAN,UAAWC,EAAQ,WAAYM,QAAS,CAAEC,WAAY,GAAKE,QAAQ,YAC5Ef,KAQA,MAAAgB,EAAcb,EAAMc,WAAWrB"}
@@ -1,2 +1,2 @@
1
- var containers=[],styleTags=[];const e = function(e,t){if(e&&"undefined"!=typeof document){var n,s=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,a="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var i=containers.indexOf(a);-1===i&&(i=containers.push(a)-1,styleTags[i]={}),n=styleTags[i]&&styleTags[i][s]?styleTags[i][s]:styleTags[i][s]=c()}else n=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var i="prepend"===s?"afterbegin":"beforeend";return a.insertAdjacentElement(i,e),e}};var l=".DialogTitle_module_header__0bb91a80{align-items:flex-start;display:flex;margin:1rem 1.5rem}.DialogTitle_module_title__0bb91a80{line-height:1;margin:0}.DialogTitle_module_titleIcon__0bb91a80>[data-icon]{font-size:1.25rem}.DialogTitle_module_caption__0bb91a80{color:var(--color-blue-grey500)}",i={header:"DialogTitle_module_header__0bb91a80",title:"DialogTitle_module_title__0bb91a80","title-icon":"DialogTitle_module_titleIcon__0bb91a80",caption:"DialogTitle_module_caption__0bb91a80"};e(l,{});export{l as css,i as default};
1
+ import i from "../../../../lib/style-inject.js";var l='/*!\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 */.DialogTitle-module_header__maiky{align-items:flex-start;display:flex;margin:1rem 1.5rem}.DialogTitle-module_title__2Date{line-height:1;margin:0}.DialogTitle-module_title-icon__RFCV->[data-icon]{font-size:1.25rem}.DialogTitle-module_caption__08LUu{color:var(--color-blue-grey500)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpYWxvZ1RpdGxlLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztFQWNFLENBQ0Ysa0NBR0Usc0JBQXVCLENBRHZCLFlBQWEsQ0FEYixrQkFHRixDQUVBLGlDQUV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gYWxpZ24taXRlbXM6IGZsZXgtc3RhcnQ7XG59XG5cbi50aXRsZSB7XG4gIG1hcmdpbjogMDtcbiAgbGluZS1oZWlnaHQ6IDE7XG59XG4udGl0bGUtaWNvbiA+IFtkYXRhLWljb25dIHtcbiAgZm9udC1zaXplOiAxLjI1cmVtO1xufVxuXG4uY2FwdGlvbiB7XG4gIGNvbG9yOiB2YXIoLS1jb2xvci1ibHVlLWdyZXk1MDApO1xufSJdfQ== */';var e={header:"DialogTitle-module_header__maiky",title:"DialogTitle-module_title__2Date","title-icon":"DialogTitle-module_title-icon__RFCV-",caption:"DialogTitle-module_caption__08LUu"};i(l);export{e as default};
2
2
  //# sourceMappingURL=DialogTitle.module.esm.js.map
@@ -1,2 +1,2 @@
1
- import e from"react";import{Dialog as o}from"../../Dialog/Dialog.esm.js";import{Typography as n}from"../../../Typography/Typography.esm.js";const a=e.forwardRef((({open:a,onKeepEditing:t,onDiscardChanges:i,discardChangesButtonLabel:r,keepEditingButtonLabel:c,contentLabel:l,titleLabel:p,cancelAction:s,...m},g)=>e.createElement(o,{...m,ref:g,open:a,title:p,onClose:t,cancelAction:s,primaryAction:{label:r,onClick:i},secondaryAction:{label:c,onClick:t},disableEscapeKeyDown:!1},e.createElement(n,{variant:"body",spacing:{margin:0}},l))));export{a as DiscardChangesDialog};
1
+ import e from"react";import{Dialog as o}from"../../Dialog/Dialog.esm.js";import{Typography as n}from"../../../Typography/Typography.esm.js";const a=({open:a,onKeepEditing:t,onDiscardChanges:i,discardChangesButtonLabel:r,keepEditingButtonLabel:c,contentLabel:l,titleLabel:s,cancelAction:p,...m},g)=>e.createElement(o,{...m,ref:g,open:a,title:s,onClose:t,cancelAction:p,primaryAction:{label:r,onClick:i},secondaryAction:{label:c,onClick:t},disableEscapeKeyDown:false},e.createElement(n,{variant:"body",spacing:{margin:0}},l));const t=e.forwardRef(a);export{t as DiscardChangesDialog};
2
2
  //# sourceMappingURL=DiscardChangesDialog.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DiscardChangesDialog.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"DiscardChangesDialog.esm.js","sources":["../../../../../../../src/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.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 } from \"react\";\nimport { Dialog } from \"../../Dialog/Dialog\";\nimport { Typography } from \"../../../Typography/Typography\";\nimport { DataAttributeKey } from \"../../../../interfaces\";\nimport { CancelAction } from \"../../BaseModal/BaseModalActions/BaseModalActions\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n open: boolean;\n discardChangesButtonLabel: string;\n keepEditingButtonLabel: string;\n cancelAction?: CancelAction;\n contentLabel: string;\n titleLabel: string;\n [dataAttribute: DataAttributeKey]: any;\n onKeepEditing: () => void;\n onDiscardChanges: () => void;\n}\n\nconst DiscardChangesDialogComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n {\n open,\n onKeepEditing,\n onDiscardChanges,\n discardChangesButtonLabel,\n keepEditingButtonLabel,\n contentLabel,\n titleLabel,\n cancelAction,\n ...rest\n }: Props,\n ref\n) => {\n return (\n <Dialog\n {...rest}\n ref={ref}\n open={open}\n title={titleLabel}\n onClose={onKeepEditing}\n cancelAction={cancelAction}\n primaryAction={{\n label: discardChangesButtonLabel,\n onClick: onDiscardChanges\n }}\n secondaryAction={{\n label: keepEditingButtonLabel,\n onClick: onKeepEditing\n }}\n disableEscapeKeyDown={false}\n >\n <Typography variant=\"body\" spacing={{ margin: 0 }}>\n {contentLabel}\n </Typography>\n </Dialog>\n );\n};\n\nexport const DiscardChangesDialog = React.forwardRef(DiscardChangesDialogComponent);\n"],"names":["DiscardChangesDialogComponent","open","onKeepEditing","onDiscardChanges","discardChangesButtonLabel","keepEditingButtonLabel","contentLabel","titleLabel","cancelAction","rest","ref","React","createElement","Dialog","title","onClose","primaryAction","label","onClick","secondaryAction","disableEscapeKeyDown","Typography","variant","spacing","margin","DiscardChangesDialog","forwardRef"],"mappings":"4IAkCA,MAAMA,EAAiF,EAEnFC,OACAC,gBACAC,mBACAC,4BACAC,yBACAC,eACAC,aACAC,kBACGC,GAELC,IAGEC,EAACC,cAAAC,EACK,IAAAJ,EACJC,IAAKA,EACLT,KAAMA,EACNa,MAAOP,EACPQ,QAASb,EACTM,aAAcA,EACdQ,cAAe,CACbC,MAAOb,EACPc,QAASf,GAEXgB,gBAAiB,CACfF,MAAOZ,EACPa,QAAShB,GAEXkB,qBAAsB,OAEtBT,EAAAC,cAACS,EAAW,CAAAC,QAAQ,OAAOC,QAAS,CAAEC,OAAQ,IAC3ClB,IAMI,MAAAmB,EAAuBd,EAAMe,WAAW1B"}
@@ -1,2 +1,2 @@
1
- import e,{useState as a,Fragment as o}from"react";import{BaseModal as r}from"../BaseModal/BaseModal.esm.js";import{BaseModalHeader as s}from"../BaseModal/BaseModalHeader/BaseModalHeader.esm.js";import{DiscardChangesDialog as d}from"./DiscardChangesDialog/DiscardChangesDialog.esm.js";const l=({id:l,children:n,headerProps:i,discardChangedDialogProps:t,modalRef:m,dialogRef:c,onClose:g,hasUnsavedChanges:p,...f})=>{const[h,C]=a(!1),D=()=>p()?C(!0):g();return e.createElement(o,null,e.createElement(r,{id:l,ref:m,onClose:D,...f},e.createElement(s,{...i,id:`${l}-label`,onClose:D}),n),e.createElement(d,{...t,ref:c,open:h,onKeepEditing:()=>{C(!1)},onDiscardChanges:()=>{C(!1),g()}}))};export{l as DiscardChangesModal};
1
+ import e,{useState as a,Fragment as o}from"react";import{BaseModal as s}from"../BaseModal/BaseModal.esm.js";import{BaseModalHeader as r}from"../BaseModal/BaseModalHeader/BaseModalHeader.esm.js";import{DiscardChangesDialog as l}from"./DiscardChangesDialog/DiscardChangesDialog.esm.js";const n=({id:n,children:d,headerProps:t,discardChangedDialogProps:i,modalRef:m,dialogRef:c,onClose:f,hasUnsavedChanges:g,...p})=>{const[h,C]=a(false);const D=()=>g()?C(true):f();const B=()=>{C(false)};const E=()=>{C(false);f()};return e.createElement(o,null,e.createElement(s,{id:n,ref:m,onClose:D,...p},e.createElement(r,{...t,id:`${n}-label`,onClose:D}),d),e.createElement(l,{...i,ref:c,open:h,onKeepEditing:B,onDiscardChanges:E}))};export{n as DiscardChangesModal};
2
2
  //# sourceMappingURL=DiscardChangesModal.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DiscardChangesModal.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"DiscardChangesModal.esm.js","sources":["../../../../../../src/components/Notifications/DiscardChangesModal/DiscardChangesModal.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, { Fragment, useState } from \"react\";\nimport { Modal, Props as ModalProps } from \"../Modal/Modal\";\nimport { ModalHeader, Props as ModalHeaderProps } from \"../Modal/ModalHeader/ModalHeader\";\nimport {\n DiscardChangesDialog,\n Props as DiscardChangesDialogProps\n} from \"./DiscardChangesDialog/DiscardChangesDialog\";\n\nexport interface Props extends Omit<ModalProps, \"onClose\"> {\n hasUnsavedChanges: () => boolean;\n onClose: (event?: React.MouseEvent<HTMLElement>) => unknown;\n headerProps: Omit<ModalHeaderProps, \"onClose\" | \"id\">;\n discardChangedDialogProps: Omit<\n DiscardChangesDialogProps,\n \"open\" | \"onKeepEditing\" | \"onDiscardChanges\"\n >;\n modalRef?: React.RefObject<HTMLDivElement>;\n dialogRef?: React.RefObject<HTMLDivElement>;\n}\n\nexport const DiscardChangesModal = ({\n id,\n children,\n headerProps,\n discardChangedDialogProps,\n modalRef,\n dialogRef,\n onClose,\n hasUnsavedChanges,\n ...rest\n}: Props) => {\n const [openDiscardChangesDialog, setOpenDiscardChangesDialog] = useState(false);\n\n const onCloseWrapper = () =>\n hasUnsavedChanges() ? setOpenDiscardChangesDialog(true) : onClose();\n\n const onDialogKeepEditing = () => {\n setOpenDiscardChangesDialog(false);\n };\n\n const onDialogDiscardChanges = () => {\n setOpenDiscardChangesDialog(false);\n onClose();\n };\n\n return (\n <Fragment>\n <Modal id={id} ref={modalRef} onClose={onCloseWrapper} {...rest}>\n <ModalHeader {...headerProps} id={`${id}-label`} onClose={onCloseWrapper} />\n {children}\n </Modal>\n <DiscardChangesDialog\n {...discardChangedDialogProps}\n ref={dialogRef}\n open={openDiscardChangesDialog}\n onKeepEditing={onDialogKeepEditing}\n onDiscardChanges={onDialogDiscardChanges}\n />\n </Fragment>\n );\n};\n"],"names":["DiscardChangesModal","id","children","headerProps","discardChangedDialogProps","modalRef","dialogRef","onClose","hasUnsavedChanges","rest","openDiscardChangesDialog","setOpenDiscardChangesDialog","useState","onCloseWrapper","onDialogKeepEditing","onDialogDiscardChanges","React","Fragment","createElement","Modal","ref","ModalHeader","DiscardChangesDialog","open","onKeepEditing","onDiscardChanges"],"mappings":"4RAoCa,MAAAA,EAAsB,EACjCC,KACAC,WACAC,cACAC,4BACAC,WACAC,YACAC,UACAC,uBACGC,MAEH,MAAOC,EAA0BC,GAA+BC,EAAS,OAEzE,MAAMC,EAAiB,IACrBL,IAAsBG,EAA4B,MAAQJ,IAE5D,MAAMO,EAAsB,KAC1BH,EAA4B,MAAM,EAGpC,MAAMI,EAAyB,KAC7BJ,EAA4B,OAC5BJ,GAAS,EAGX,OACES,gBAACC,EAAQ,KACPD,EAAAE,cAACC,EAAK,CAAClB,GAAIA,EAAImB,IAAKf,EAAUE,QAASM,KAAoBJ,GACzDO,EAAAE,cAACG,EAAW,IAAKlB,EAAaF,GAAI,GAAGA,UAAYM,QAASM,IACzDX,GAEHc,EAACE,cAAAI,MACKlB,EACJgB,IAAKd,EACLiB,KAAMb,EACNc,cAAeV,EACfW,iBAAkBV,IAGtB"}
@@ -1,2 +1,2 @@
1
- import e,{createContext as t,useReducer as a,useContext as s,useCallback as i,useEffect as r}from"react";import{defaultTranslations as n}from"./NotificationService.esm.js";import{useSnackbar as o}from"../Snackbar/useSnackbar.esm.js";import{generateID as d,deepMerge as c}from"../../src/util/helper.esm.js";const l={notifications:[]},u=({translations:e={},dispatchFn:t})=>{const{enqueueErrorSnackbar:a,enqueueSuccessSnackbar:s}=o(),{state:{notifications:i}}=h(),d=c(n,e);return r((()=>{i.forEach((e=>{var i,r;e.status&&e.handled&&(401===e.status||403===e.status)?t({type:"remove",payload:{id:e.id}}):e.status&&!e.handled&&"error"===e.type?(a(null!==(i=e.title)&&void 0!==i?i:d.general.error,(e=>{if(e.message)return e.message;switch(e.status){case 500:default:return d.messages.general;case 400:return d.messages.badRequest;case 401:return d.messages.unauthorized;case 403:return d.messages.forbidden;case 404:return d.messages.notFound;case 502:case 503:return d.messages.unavailable;case 504:return d.messages.timeout}})(e),{onClose:()=>t({type:"remove",payload:{id:e.id}})}),t({type:"handled",payload:{id:e.id,handled:!0}})):e.title&&!e.handled&&"success"===e.type&&(s(null!==(r=e.title)&&void 0!==r?r:d.general.success,e.message,{onClose:()=>t({type:"remove",payload:{id:e.id}})}),t({type:"handled",payload:{id:e.id,handled:!0}}))}))}),[i.length]),null},p=t({state:l,dispatch:()=>{}}),m=({children:t,translations:s})=>{const[i,r]=a(f,l);return e.createElement(p.Provider,{value:{state:i,dispatch:r}},t,e.createElement(u,{translations:s,dispatchFn:r}))},h=()=>{const e=s(p),t=i((t=>{e.dispatch({type:"add",payload:t})}),[e]),a=i((t=>{e.dispatch({type:"remove",payload:{id:t}})}),[e]),r=i((()=>{e.dispatch({type:"reset"})}),[e]);return{state:e.state,addNotification:t,removeNotification:a,resetNotifications:r}},f=(e,t)=>{switch(t.type){case"add":return{...e,notifications:[...e.notifications,{...t.payload,id:d(),handled:!1}]};case"remove":return{...e,notifications:e.notifications.filter((e=>{var a;return e.id!==(null===(a=t.payload)||void 0===a?void 0:a.id)}))};case"handled":return{...e,notifications:e.notifications.map((e=>{var a;return e.id===(null===(a=t.payload)||void 0===a?void 0:a.id)?{...e,handled:!0}:e}))};case"reset":return{...e,notifications:[]};default:return e}};export{p as NotificationContext,u as NotificationHandler,m as NotificationProvider,f as notificationReducer,h as useNotificationContext};
1
+ import e,{createContext as t,useReducer as s,useContext as a,useCallback as n,useEffect as r}from"react";import{defaultTranslations as i}from"./NotificationService.esm.js";import{useSnackbar as o}from"../Snackbar/useSnackbar.esm.js";import{generateID as d,deepMerge as c}from"../../src/util/helper.esm.js";const l={notifications:[]};const u=({translations:e={},dispatchFn:t})=>{const{enqueueErrorSnackbar:s,enqueueSuccessSnackbar:a}=o();const{state:{notifications:n}}=f();const d=c(i,e);const l=e=>{if(e.message)return e.message;switch(e.status){case 500:return d.messages.general;case 400:return d.messages.badRequest;case 401:return d.messages.unauthorized;case 403:return d.messages.forbidden;case 404:return d.messages.notFound;case 502:case 503:return d.messages.unavailable;case 504:return d.messages.timeout;default:return d.messages.general}};r((()=>{n.forEach((e=>{var n,r;if(e.status&&e.handled&&(e.status===401||e.status===403))t({type:"remove",payload:{id:e.id}});else if(e.status&&!e.handled&&e.type==="error"){s((n=e.title)!==null&&n!==void 0?n:d.general.error,l(e),{onClose:()=>t({type:"remove",payload:{id:e.id}})});t({type:"handled",payload:{id:e.id,handled:true}})}else if(e.title&&!e.handled&&e.type==="success"){a((r=e.title)!==null&&r!==void 0?r:d.general.success,e.message,{onClose:()=>t({type:"remove",payload:{id:e.id}})});t({type:"handled",payload:{id:e.id,handled:true}})}}))}),[n.length]);return null};const p=t({state:l,dispatch:()=>{}});const m=({children:t,translations:a})=>{const[n,r]=s(h,l);return e.createElement(p.Provider,{value:{state:n,dispatch:r}},t,e.createElement(u,{translations:a,dispatchFn:r}))};const f=()=>{const e=a(p);const t=n((t=>{e.dispatch({type:"add",payload:t})}),[e]);const s=n((t=>{e.dispatch({type:"remove",payload:{id:t}})}),[e]);const r=n((()=>{e.dispatch({type:"reset"})}),[e]);return{state:e.state,addNotification:t,removeNotification:s,resetNotifications:r}};const h=(e,t)=>{switch(t.type){case"add":return{...e,notifications:[...e.notifications,{...t.payload,id:d(),handled:false}]};case"remove":return{...e,notifications:e.notifications.filter((e=>{var s;return e.id!==((s=t.payload)===null||s===void 0?void 0:s.id)}))};case"handled":return{...e,notifications:e.notifications.map((e=>{var s;return e.id===((s=t.payload)===null||s===void 0?void 0:s.id)?{...e,handled:true}:e}))};case"reset":return{...e,notifications:[]};default:return e}};export{p as NotificationContext,u as NotificationHandler,m as NotificationProvider,h as notificationReducer,f as useNotificationContext};
2
2
  //# sourceMappingURL=NotificationContext.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationContext.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"NotificationContext.esm.js","sources":["../../../../../../src/components/Notifications/NotificationProvider/NotificationContext.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 ReactNode,\n createContext,\n useCallback,\n useContext,\n useEffect,\n useReducer\n} from \"react\";\nimport {\n Notification,\n ErrorNotification,\n SuccessNotification,\n Translations,\n AddNotification\n} from \"./notification.interfaces\";\nimport { defaultTranslations } from \"./NotificationService\";\nimport { useSnackbar } from \"../Snackbar/useSnackbar\";\nimport { deepMerge, generateID } from \"../../../util/helper\";\nimport { DeepPartial } from \"../../../interfaces\";\n\ninterface NotificationState {\n notifications: Notification<ErrorNotification | SuccessNotification>[];\n}\n\nexport interface NotificationAction {\n type: \"add\" | \"remove\" | \"handled\" | \"reset\";\n payload?: Notification<ErrorNotification | SuccessNotification> & {\n id?: string;\n handled?: boolean;\n };\n}\n\nconst initialState: NotificationState = {\n notifications: []\n};\n\nexport interface NotificationHandlerProps {\n translations?: DeepPartial<Translations>;\n dispatchFn: React.Dispatch<NotificationAction>;\n}\n\nexport const NotificationHandler = ({\n translations = {},\n dispatchFn\n}: NotificationHandlerProps) => {\n const { enqueueErrorSnackbar, enqueueSuccessSnackbar } = useSnackbar();\n const {\n state: { notifications }\n } = useNotificationContext();\n\n const mergedTranslations = deepMerge<Translations>(defaultTranslations, translations);\n\n const determineNotificationMessage = (notification: Notification<ErrorNotification>) => {\n if (notification.message) {\n return notification.message;\n }\n\n switch (notification.status) {\n case 500:\n return mergedTranslations.messages.general;\n case 400:\n return mergedTranslations.messages.badRequest;\n case 401:\n return mergedTranslations.messages.unauthorized;\n case 403:\n return mergedTranslations.messages.forbidden;\n case 404:\n return mergedTranslations.messages.notFound;\n case 502:\n case 503:\n return mergedTranslations.messages.unavailable;\n case 504:\n return mergedTranslations.messages.timeout;\n default:\n return mergedTranslations.messages.general;\n }\n };\n\n useEffect(() => {\n notifications.forEach(notification => {\n if (\n notification.status &&\n notification.handled &&\n (notification.status === 401 || notification.status === 403)\n ) {\n dispatchFn({ type: \"remove\", payload: { id: notification.id } });\n } else if (notification.status && !notification.handled && notification.type === \"error\") {\n enqueueErrorSnackbar(\n notification.title ?? mergedTranslations.general.error,\n determineNotificationMessage(notification as Notification<ErrorNotification>),\n {\n onClose: () => dispatchFn({ type: \"remove\", payload: { id: notification.id } })\n }\n );\n dispatchFn({ type: \"handled\", payload: { id: notification.id, handled: true } });\n } else if (notification.title && !notification.handled && notification.type === \"success\") {\n enqueueSuccessSnackbar(\n notification.title ?? mergedTranslations.general.success,\n notification.message,\n {\n onClose: () => dispatchFn({ type: \"remove\", payload: { id: notification.id } })\n }\n );\n\n dispatchFn({ type: \"handled\", payload: { id: notification.id, handled: true } });\n }\n });\n }, [notifications.length]);\n\n return null;\n};\n\nexport const NotificationContext = createContext<{\n state: NotificationState;\n dispatch: React.Dispatch<NotificationAction>;\n}>({\n state: initialState,\n dispatch: () => undefined\n});\n\nexport interface Props {\n children?: ReactNode;\n translations?: DeepPartial<Translations>;\n}\n\nexport const NotificationProvider = ({ children, translations }: Props) => {\n const [state, dispatch] = useReducer(notificationReducer, initialState);\n\n return (\n <NotificationContext.Provider value={{ state, dispatch }}>\n {children}\n <NotificationHandler translations={translations} dispatchFn={dispatch} />\n </NotificationContext.Provider>\n );\n};\n\nexport const useNotificationContext = () => {\n const ctx = useContext(NotificationContext);\n\n const addNotification = useCallback(\n (notification: AddNotification) => {\n ctx.dispatch({ type: \"add\", payload: notification });\n },\n [ctx]\n );\n\n const removeNotification = useCallback(\n (id: string) => {\n ctx.dispatch({ type: \"remove\", payload: { id } });\n },\n [ctx]\n );\n\n const resetNotifications = useCallback(() => {\n ctx.dispatch({ type: \"reset\" });\n }, [ctx]);\n\n return {\n state: ctx.state,\n addNotification,\n removeNotification,\n resetNotifications\n };\n};\n\nexport const notificationReducer = (\n state: NotificationState,\n action: NotificationAction\n): NotificationState => {\n switch (action.type) {\n case \"add\":\n return {\n ...state,\n notifications: [\n ...state.notifications,\n {\n ...action.payload,\n id: generateID(),\n handled: false\n }\n ]\n };\n case \"remove\":\n return {\n ...state,\n notifications: state.notifications.filter(\n notification => notification.id !== action.payload?.id\n )\n };\n case \"handled\":\n return {\n ...state,\n notifications: state.notifications.map(notification =>\n notification.id === action.payload?.id ? { ...notification, handled: true } : notification\n )\n };\n case \"reset\":\n return {\n ...state,\n notifications: []\n };\n default:\n return state;\n }\n};\n"],"names":["initialState","notifications","NotificationHandler","translations","dispatchFn","enqueueErrorSnackbar","enqueueSuccessSnackbar","useSnackbar","state","useNotificationContext","mergedTranslations","deepMerge","defaultTranslations","determineNotificationMessage","notification","message","status","messages","general","badRequest","unauthorized","forbidden","notFound","unavailable","timeout","useEffect","forEach","handled","type","payload","id","_a","title","error","onClose","_b","success","length","NotificationContext","createContext","dispatch","NotificationProvider","children","useReducer","notificationReducer","React","createElement","Provider","value","ctx","useContext","addNotification","useCallback","removeNotification","resetNotifications","action","generateID","filter","map"],"mappings":"kTAgDA,MAAMA,EAAkC,CACtCC,cAAe,IAQV,MAAMC,EAAsB,EACjCC,eAAe,CAAE,EACjBC,iBAEA,MAAMC,qBAAEA,EAAoBC,uBAAEA,GAA2BC,IACzD,MACEC,OAAOP,cAAEA,IACPQ,IAEJ,MAAMC,EAAqBC,EAAwBC,EAAqBT,GAExE,MAAMU,EAAgCC,IACpC,GAAIA,EAAaC,QACf,OAAOD,EAAaC,QAGtB,OAAQD,EAAaE,QACnB,KAAK,IACH,OAAON,EAAmBO,SAASC,QACrC,KAAK,IACH,OAAOR,EAAmBO,SAASE,WACrC,KAAK,IACH,OAAOT,EAAmBO,SAASG,aACrC,KAAK,IACH,OAAOV,EAAmBO,SAASI,UACrC,KAAK,IACH,OAAOX,EAAmBO,SAASK,SACrC,KAAK,IACL,KAAK,IACH,OAAOZ,EAAmBO,SAASM,YACrC,KAAK,IACH,OAAOb,EAAmBO,SAASO,QACrC,QACE,OAAOd,EAAmBO,SAASC,QACtC,EAGHO,GAAU,KACRxB,EAAcyB,SAAQZ,YACpB,GACEA,EAAaE,QACbF,EAAaa,UACZb,EAAaE,SAAW,KAAOF,EAAaE,SAAW,KAExDZ,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AAM,SAAUC,QAAS,CAAEC,OAAO,GAEnD,CAACmB,IAGH,MAAMK,EAAqBF,GAAY,KACrCH,EAAIT,SAAS,CAAEZ,KAAM,SAAU,GAC9B,CAACqB,IAEJ,MAAO,CACLzC,MAAOyC,EAAIzC,MACX2C,kBACAE,qBACAC,qBACD,QAGUV,EAAsB,CACjCpC,EACA+C,KAEA,OAAQA,EAAO3B,MACb,IAAK,MACH,MAAO,IACFpB,EACHP,cAAe,IACVO,EAAMP,cACT,IACKsD,EAAO1B,QACVC,GAAI0B,IACJ7B,QAAS,SAIjB,IAAK,SACH,MAAO,IACFnB,EACHP,cAAeO,EAAMP,cAAcwD,QACjC3C,IAAgB,IAAAiB,EAAA,OAAAjB,EAAagB,OAAOC,EAAAwB,EAAO1B,WAAO,MAAAE,SAAA,OAAA,EAAAA,EAAED,GAAE,KAG5D,IAAK,UACH,MAAO,IACFtB,EACHP,cAAeO,EAAMP,cAAcyD,KAAI5C,IAAe,IAAAiB,EACpD,OAAAjB,EAAagB,OAAOC,EAAAwB,EAAO1B,WAAS,MAAAE,SAAA,OAAA,EAAAA,EAAAD,IAAK,IAAKhB,EAAca,QAAS,MAASb,CAAY,KAGhG,IAAK,QACH,MAAO,IACFN,EACHP,cAAe,IAEnB,QACE,OAAOO,EACV"}
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationService.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"NotificationService.esm.js","sources":["../../../../../../src/components/Notifications/NotificationProvider/NotificationService.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Translations } from \"./notification.interfaces\";\n\nexport const defaultTranslations: Translations = {\n general: {\n error: \"Error\",\n success: \"Success\"\n },\n messages: {\n general: \"Something went wrong. Please try again later.\",\n badRequest: \"Bad request\",\n unauthorized: \"You are not authorized to perform this action.\",\n forbidden: \"You are not allowed to perform this action.\",\n notFound: \"The requested resource could not be found.\",\n timeout: \"The request timed out.\",\n unavailable: \"The server is currently unavailable. Please try again later.\"\n }\n};\n"],"names":["defaultTranslations","general","error","success","messages","badRequest","unauthorized","forbidden","notFound","timeout","unavailable"],"mappings":"AAkBa,MAAAA,EAAoC,CAC/CC,QAAS,CACPC,MAAO,QACPC,QAAS,WAEXC,SAAU,CACRH,QAAS,gDACTI,WAAY,cACZC,aAAc,iDACdC,UAAW,8CACXC,SAAU,6CACVC,QAAS,yBACTC,YAAa"}
@@ -1,2 +1,2 @@
1
- import e,{useState as o,useRef as r,useCallback as n,useEffect as a}from"react";import{BaseModal as i}from"../BaseModal/BaseModal.esm.js";import d from"./SlideInModal.module.esm.js";const s=e.forwardRef((({children:s,id:l,open:t,...m},c)=>{const[p,f]=o("hide"),[u,b]=o(!1),h=r(null),M=n((e=>{e.target===h.current&&(f((e=>e?"":"hide")),!t&&u&&b(!1))}),[t]);return a((()=>{t&&b(t)}),[t]),e.createElement(i,{...m,id:l,open:u,className:`${d["slide-in-modal"]} ${t?d.visible:""} ${t?"":d[p]}`,containerProps:{className:d.container},backdropProps:{id:d["backdrop-slide"]},onTransitionEnd:M,ref:null!=c?c:h},s)}));export{s as SlideInModal};
1
+ import e,{useState as o,useRef as r,useCallback as n,useEffect as s}from"react";import{BaseModal as i}from"../BaseModal/BaseModal.esm.js";import a from"./SlideInModal.module.esm.js";const t=({children:t,id:d,open:l,...c},m)=>{const[f,p]=o("hide");const[u,b]=o(false);const h=r(null);const M=n((e=>{if(e.target===h.current){p((e=>e?"":"hide"));if(!l&&u)b(false)}}),[l]);s((()=>{l&&b(l)}),[l]);return e.createElement(i,{...c,id:d,open:u,className:`${a["slide-in-modal"]} ${l?a["visible"]:""} ${!l?a[f]:""}`,containerProps:{className:a["container"]},backdropProps:{id:a["backdrop-slide"]},onTransitionEnd:M,ref:m!==null&&m!==void 0?m:h},t)};const d=e.forwardRef(t);export{d as SlideInModal};
2
2
  //# sourceMappingURL=SlideInModal.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SlideInModal.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"SlideInModal.esm.js","sources":["../../../../../../src/components/Notifications/SlideInModal/SlideInModal.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 ForwardRefRenderFunction,\n TransitionEventHandler,\n useState,\n useRef,\n useCallback,\n useEffect\n} from \"react\";\nimport { Props as ModalProps, Modal } from \"../Modal/Modal\";\nimport classes from \"./SlideInModal.module.scss\";\n\nconst SlideInModalComponent: ForwardRefRenderFunction<HTMLDivElement, ModalProps> = (\n { children, id, open, ...rest }: ModalProps,\n ref\n) => {\n const [classHideOnTransition, setClassHideOnTransition] = useState<string>(\"hide\");\n const [controlledOpen, setControlledOpen] = useState(false);\n const containerRef = useRef(null);\n\n const onTransitionEnd: TransitionEventHandler<HTMLDivElement> = useCallback(\n e => {\n if (e.target === containerRef.current) {\n setClassHideOnTransition(prev => (prev ? \"\" : \"hide\"));\n if (!open && controlledOpen) {\n setControlledOpen(false);\n }\n }\n },\n [open]\n );\n\n useEffect(() => {\n open && setControlledOpen(open);\n }, [open]);\n\n return (\n <Modal\n {...rest}\n id={id}\n open={controlledOpen}\n className={`${classes[\"slide-in-modal\"]} ${open ? classes[\"visible\"] : \"\"} ${\n !open ? classes[classHideOnTransition] : \"\"\n }`}\n containerProps={{ className: classes[\"container\"] }}\n backdropProps={{ id: classes[\"backdrop-slide\"] }}\n onTransitionEnd={onTransitionEnd}\n ref={ref ?? containerRef}\n >\n {children}\n </Modal>\n );\n};\n\nexport type { Props } from \"../Modal/Modal\";\n\nexport const SlideInModal = React.forwardRef(SlideInModalComponent);\n"],"names":["SlideInModalComponent","children","id","open","rest","ref","classHideOnTransition","setClassHideOnTransition","useState","controlledOpen","setControlledOpen","containerRef","useRef","onTransitionEnd","useCallback","e","target","current","prev","useEffect","React","createElement","Modal","className","classes","containerProps","backdropProps","SlideInModal","forwardRef"],"mappings":"sLA2BA,MAAMA,EAA8E,EAChFC,WAAUC,KAAIC,UAASC,GACzBC,KAEA,MAAOC,EAAuBC,GAA4BC,EAAiB,QAC3E,MAAOC,EAAgBC,GAAqBF,EAAS,OACrD,MAAMG,EAAeC,EAAO,MAE5B,MAAMC,EAA0DC,GAC9DC,IACE,GAAIA,EAAEC,SAAWL,EAAaM,QAAS,CACrCV,GAAyBW,GAASA,EAAO,GAAK,SAC9C,IAAKf,GAAQM,EACXC,EAAkB,MAErB,IAEH,CAACP,IAGHgB,GAAU,KACRhB,GAAQO,EAAkBP,EAAK,GAC9B,CAACA,IAEJ,OACEiB,EAACC,cAAAC,MACKlB,EACJF,GAAIA,EACJC,KAAMM,EACNc,UAAW,GAAGC,EAAQ,qBAAqBrB,EAAOqB,EAAQ,WAAa,OACpErB,EAAOqB,EAAQlB,GAAyB,KAE3CmB,eAAgB,CAAEF,UAAWC,EAAQ,cACrCE,cAAe,CAAExB,GAAIsB,EAAQ,mBAC7BX,gBAAiBA,EACjBR,IAAKA,UAAAA,SAAG,EAAHA,EAAOM,GAEXV,EAEH,EAKS,MAAA0B,EAAeP,EAAMQ,WAAW5B"}
@@ -1,2 +1,2 @@
1
- var containers=[],styleTags=[];const e = function(e,t){if(e&&"undefined"!=typeof document){var n,s=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,a="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var i=containers.indexOf(a);-1===i&&(i=containers.push(a)-1,styleTags[i]={}),n=styleTags[i]&&styleTags[i][s]?styleTags[i][s]:styleTags[i][s]=c()}else n=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var i="prepend"===s?"afterbegin":"beforeend";return a.insertAdjacentElement(i,e),e}};var d=".SlideInModal_module_srOnly__7ce961ec{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.SlideInModal_module_hidden__7ce961ec{display:none}.SlideInModal_module_slideIn__7ce961ec{animation:SlideInModal_module_slideIn__7ce961ec .5s forwards}@media (prefers-reduced-motion:reduce){.SlideInModal_module_slideIn__7ce961ec{animation-duration:.1ms}}.SlideInModal_module_slideOut__7ce961ec{animation:SlideInModal_module_slideOut__7ce961ec .5s forwards}@media (prefers-reduced-motion:reduce){.SlideInModal_module_slideOut__7ce961ec{animation-duration:.1ms}}@keyframes SlideInModal_module_slideIn__7ce961ec{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes SlideInModal_module_slideOut__7ce961ec{0%{transform:translateY(0)}to{transform:translateY(100vh)}}.SlideInModal_module_slideInModal__7ce961ec{justify-content:flex-end;transform:translate(120%);transition-duration:.5s;transition-property:transform;transition-timing-function:ease-in-out;visibility:visible}@media (prefers-reduced-motion:reduce){.SlideInModal_module_slideInModal__7ce961ec{transition-duration:.1ms}}.SlideInModal_module_slideInModal__7ce961ec.SlideInModal_module_hide__7ce961ec{visibility:hidden}.SlideInModal_module_slideInModal__7ce961ec.SlideInModal_module_visible__7ce961ec{transform:translate(0);visibility:visible}#SlideInModal_module_backdropSlide__7ce961ec,.SlideInModal_module_slideInModal__7ce961ec.SlideInModal_module_visible__7ce961ec #SlideInModal_module_backdropSlide__7ce961ec{background-color:transparent}@media only screen and (min-width:50rem){.SlideInModal_module_container__7ce961ec{border-radius:0;box-shadow:0 1.875rem 3.125rem var(--modal-shadow-color);height:100%;margin-top:0;max-height:unset;width:50rem}}",l={"sr-only":"SlideInModal_module_srOnly__7ce961ec",hidden:"SlideInModal_module_hidden__7ce961ec","slide-in":"SlideInModal_module_slideIn__7ce961ec","slide-out":"SlideInModal_module_slideOut__7ce961ec","slide-in-modal":"SlideInModal_module_slideInModal__7ce961ec",hide:"SlideInModal_module_hide__7ce961ec",visible:"SlideInModal_module_visible__7ce961ec","backdrop-slide":"SlideInModal_module_backdropSlide__7ce961ec",container:"SlideInModal_module_container__7ce961ec"};e(d,{});export{d as css,l as default};
1
+ import i from "../../../lib/style-inject.js";var l='/*!\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 * 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 * 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 */.SlideInModal-module_sr-only__VfRzI{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.SlideInModal-module_hidden__fanzF{display:none}.SlideInModal-module_slide-in__8nxNQ{animation:SlideInModal-module_slide-in__8nxNQ .5s forwards}@media (prefers-reduced-motion:reduce){.SlideInModal-module_slide-in__8nxNQ{animation-duration:.1ms}}.SlideInModal-module_slide-out__L5Lz9{animation:SlideInModal-module_slide-out__L5Lz9 .5s forwards}@media (prefers-reduced-motion:reduce){.SlideInModal-module_slide-out__L5Lz9{animation-duration:.1ms}}@keyframes SlideInModal-module_slide-in__8nxNQ{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes SlideInModal-module_slide-out__L5Lz9{0%{transform:translateY(0)}to{transform:translateY(100vh)}}.SlideInModal-module_slide-in-modal__DO9Dr{justify-content:flex-end;transform:translate(120%);transition-duration:.5s;transition-property:transform;transition-timing-function:ease-in-out;visibility:visible}@media (prefers-reduced-motion:reduce){.SlideInModal-module_slide-in-modal__DO9Dr{transition-duration:.1ms}}.SlideInModal-module_slide-in-modal__DO9Dr.SlideInModal-module_hide__VBlq8{visibility:hidden}.SlideInModal-module_slide-in-modal__DO9Dr.SlideInModal-module_visible__BE0yF{transform:translate(0);visibility:visible}#SlideInModal-module_backdrop-slide__bTmK6,.SlideInModal-module_slide-in-modal__DO9Dr.SlideInModal-module_visible__BE0yF #SlideInModal-module_backdrop-slide__bTmK6{background-color:transparent}@media only screen and (min-width:50rem){.SlideInModal-module_container__-x8ci{border-radius:0;box-shadow:0 1.875rem 3.125rem var(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yb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG59XG5cbiNiYWNrZHJvcC1zbGlkZSB7XG4gIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xufVxuXG5AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtaW4td2lkdGg6IDUwcmVtKSB7XG4gIC5jb250YWluZXIge1xuICAgIG1hcmdpbi10b3A6IDA7XG4gICAgd2lkdGg6IDUwcmVtO1xuICAgIGhlaWdodDogMTAwJTtcbiAgICBtYXgtaGVpZ2h0OiB1bnNldDtcbiAgICBib3JkZXItcmFkaXVzOiAwO1xuICAgIGJveC1zaGFkb3c6IDAgMS44NzVyZW0gMy4xMjVyZW0gdmFyKC0tbW9kYWwtc2hhZG93LWNvbG9yKTtcbiAgfVxufSJdfQ== */';var e={"sr-only":"SlideInModal-module_sr-only__VfRzI",hidden:"SlideInModal-module_hidden__fanzF","slide-in":"SlideInModal-module_slide-in__8nxNQ","slide-out":"SlideInModal-module_slide-out__L5Lz9","slide-in-modal":"SlideInModal-module_slide-in-modal__DO9Dr",hide:"SlideInModal-module_hide__VBlq8",visible:"SlideInModal-module_visible__BE0yF","backdrop-slide":"SlideInModal-module_backdrop-slide__bTmK6",container:"SlideInModal-module_container__-x8ci"};i(l);export{e as default};
2
2
  //# sourceMappingURL=SlideInModal.module.esm.js.map
@@ -1,2 +1,2 @@
1
- import e,{useContext as t,useState as n,useEffect as r}from"react";import a from"./SnackbarContainer.module.esm.js";import{SnackbarContext as s}from"../SnackbarProvider/SnackbarStateProvider.esm.js";const l=({placement:l,children:o,zIndex:i,className:c,...m})=>{const{height:h,justifyContent:f}=(()=>{const{snackbars:e}=t(s),[a,l]=n(0),[o,i]=n("flex-start"),c=e.length>=3;return r((()=>{let t=e.map((e=>e.height)).reduce(((e,t)=>e+t),0);t+=8*(Math.min(e.length,3)-1),c&&setTimeout((()=>{i("flex-end")}),500),a>t&&"flex-end"!==o?i("flex-end"):a<t&&"flex-start"!==o&&i("flex-start"),l(t)}),[e]),{height:a,justifyContent:o}})();return e.createElement("div",{...m,style:{zIndex:i,height:h,justifyContent:f},className:`${a.snackbars} ${a[l.horizontal]} ${a[l.vertical]} ${null!=c?c:""}`},o)};export{l as SnackbarContainer};
1
+ import t,{useContext as e,useState as n,useEffect as r}from"react";import s from"./SnackbarContainer.module.esm.js";import{SnackbarContext as o}from"../SnackbarProvider/SnackbarStateProvider.esm.js";const a=()=>{const{snackbars:t}=e(o);const[s,a]=n(0);const[i,c]=n("flex-start");const l=8;const m=t.length>=3;r((()=>{const e=t.map((t=>t.height));let n=e.reduce(((t,e)=>t+e),0);n+=(Math.min(t.length,3)-1)*l;if(m)setTimeout((()=>{c("flex-end")}),500);if(s>n&&i!=="flex-end")c("flex-end");else if(s<n&&i!=="flex-start")c("flex-start");a(n)}),[t]);return{height:s,justifyContent:i}};const i=({placement:e,children:n,zIndex:r,className:o,...i})=>{const{height:c,justifyContent:l}=a();return t.createElement("div",{...i,style:{zIndex:r,height:c,justifyContent:l},className:`${s["snackbars"]} ${s[e.horizontal]} ${s[e.vertical]} ${o!==null&&o!==void 0?o:""}`},n)};export{i as SnackbarContainer};
2
2
  //# sourceMappingURL=SnackbarContainer.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SnackbarContainer.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"SnackbarContainer.esm.js","sources":["../../../../../../../src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.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, { useContext, useEffect, useState } from \"react\";\nimport classes from \"./SnackbarContainer.module.scss\";\nimport { SnackbarContext } from \"../SnackbarProvider/SnackbarStateProvider\";\n\nexport interface Placement {\n vertical: \"top\" | \"bottom\";\n horizontal: \"start\" | \"center\" | \"end\";\n}\n\nexport interface Props {\n placement: Placement;\n children?: React.ReactNode;\n zIndex?: number;\n className?: string;\n}\n\nconst useSnackbarContainerHeightAnimation = () => {\n const { snackbars } = useContext(SnackbarContext);\n const [height, setHeight] = useState(0);\n const [justifyContent, setJustifyContent] = useState<\"flex-start\" | \"flex-end\">(\"flex-start\");\n const spaceBetweenSnackbars = 8;\n const exceedsMaximumVisibleSnackbars = snackbars.length >= 3;\n\n useEffect(() => {\n const allHeights = snackbars.map(snackbar => snackbar.height);\n\n let totalHeight = allHeights.reduce((prev, curr) => prev + curr, 0);\n\n totalHeight += (Math.min(snackbars.length, 3) - 1) * spaceBetweenSnackbars;\n\n /**\n * Once we reach the maximum amount of snackbars, they will start to disappear. We have to wait with reversing the justify-content until the last snackbar\n * has completed their animationIn. This is around 500ms. Then we want to reverse it, because otherwise whenever a snackbar disappears they shift up\n * and then down again, which looks really bad.\n * */\n if (exceedsMaximumVisibleSnackbars)\n setTimeout(() => {\n setJustifyContent(\"flex-end\");\n }, 500);\n\n if (height > totalHeight && justifyContent !== \"flex-end\") {\n setJustifyContent(\"flex-end\");\n } else if (height < totalHeight && justifyContent !== \"flex-start\") {\n setJustifyContent(\"flex-start\");\n }\n\n setHeight(totalHeight);\n }, [snackbars]);\n\n return { height, justifyContent };\n};\n\nexport const SnackbarContainer = ({ placement, children, zIndex, className, ...rest }: Props) => {\n const { height, justifyContent } = useSnackbarContainerHeightAnimation();\n\n return (\n <div\n {...rest}\n style={{ zIndex, height, justifyContent }}\n className={`${classes[\"snackbars\"]} ${classes[placement.horizontal]} ${\n classes[placement.vertical]\n } ${className ?? \"\"}`}\n >\n {children}\n </div>\n );\n};\n"],"names":["useSnackbarContainerHeightAnimation","snackbars","useContext","SnackbarContext","height","setHeight","useState","justifyContent","setJustifyContent","spaceBetweenSnackbars","exceedsMaximumVisibleSnackbars","length","useEffect","allHeights","map","snackbar","totalHeight","reduce","prev","curr","Math","min","setTimeout","SnackbarContainer","placement","children","zIndex","className","rest","React","style","classes","horizontal","vertical"],"mappings":"uMAgCA,MAAMA,EAAsC,KAC1C,MAAMC,UAAEA,GAAcC,EAAWC,GACjC,MAAOC,EAAQC,GAAaC,EAAS,GACrC,MAAOC,EAAgBC,GAAqBF,EAAoC,cAChF,MAAMG,EAAwB,EAC9B,MAAMC,EAAiCT,EAAUU,QAAU,EAE3DC,GAAU,KACR,MAAMC,EAAaZ,EAAUa,KAAIC,GAAYA,EAASX,SAEtD,IAAIY,EAAcH,EAAWI,QAAO,CAACC,EAAMC,IAASD,EAAOC,GAAM,GAEjEH,IAAgBI,KAAKC,IAAIpB,EAAUU,OAAQ,GAAK,GAAKF,EAOrD,GAAIC,EACFY,YAAW,KACTd,EAAkB,WAAW,GAC5B,KAEL,GAAIJ,EAASY,GAAeT,IAAmB,WAC7CC,EAAkB,iBACb,GAAIJ,EAASY,GAAeT,IAAmB,aACpDC,EAAkB,cAGpBH,EAAUW,EAAY,GACrB,CAACf,IAEJ,MAAO,CAAEG,SAAQG,iBAAgB,EAGtB,MAAAgB,EAAoB,EAAGC,YAAWC,WAAUC,SAAQC,eAAcC,MAC7E,MAAMxB,OAAEA,EAAMG,eAAEA,GAAmBP,IAEnC,OACE6B,0BACMD,EACJE,MAAO,CAAEJ,SAAQtB,SAAQG,kBACzBoB,UAAW,GAAGI,EAAQ,gBAAgBA,EAAQP,EAAUQ,eACtDD,EAAQP,EAAUS,aAChBN,UAAAA,SAAS,EAATA,EAAa,MAEhBF,EAEH"}