@onewelcome/react-lib-components 12.1.0-alpha → 12.1.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (668) hide show
  1. package/dist/components/Breadcrumbs/Breadcrumbs.cjs.js +1 -1
  2. package/dist/components/Breadcrumbs/Breadcrumbs.cjs.js.map +1 -1
  3. package/dist/components/Breadcrumbs/Breadcrumbs.es.js.map +1 -1
  4. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +2 -2
  5. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.es.js +5 -5
  6. package/dist/components/Button/BaseButton.cjs.js +1 -1
  7. package/dist/components/Button/BaseButton.cjs.js.map +1 -1
  8. package/dist/components/Button/BaseButton.es.js.map +1 -1
  9. package/dist/components/Button/BaseButton.module.scss.cjs.js +2 -2
  10. package/dist/components/Button/BaseButton.module.scss.es.js +4 -4
  11. package/dist/components/Button/Button.cjs.js +1 -1
  12. package/dist/components/Button/Button.cjs.js.map +1 -1
  13. package/dist/components/Button/Button.es.js.map +1 -1
  14. package/dist/components/Button/Button.module.scss.cjs.js +2 -2
  15. package/dist/components/Button/Button.module.scss.es.js +17 -17
  16. package/dist/components/Button/IconButton.cjs.js.map +1 -1
  17. package/dist/components/Button/IconButton.es.js.map +1 -1
  18. package/dist/components/Button/IconButton.module.scss.cjs.js +2 -2
  19. package/dist/components/Button/IconButton.module.scss.es.js +18 -18
  20. package/dist/components/Button/Spinner.cjs.js.map +1 -1
  21. package/dist/components/Button/Spinner.es.js.map +1 -1
  22. package/dist/components/ContextMenu/ContextMenu.cjs.js +1 -1
  23. package/dist/components/ContextMenu/ContextMenu.cjs.js.map +1 -1
  24. package/dist/components/ContextMenu/ContextMenu.es.js +28 -11
  25. package/dist/components/ContextMenu/ContextMenu.es.js.map +1 -1
  26. package/dist/components/ContextMenu/ContextMenu.module.scss.cjs.js +2 -2
  27. package/dist/components/ContextMenu/ContextMenu.module.scss.es.js +8 -5
  28. package/dist/components/ContextMenu/ContextMenu.module.scss.es.js.map +1 -1
  29. package/dist/components/ContextMenu/ContextMenuDivider.cjs.js.map +1 -1
  30. package/dist/components/ContextMenu/ContextMenuDivider.es.js.map +1 -1
  31. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.cjs.js +2 -2
  32. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.es.js +2 -2
  33. package/dist/components/ContextMenu/ContextMenuItem.cjs.js +1 -1
  34. package/dist/components/ContextMenu/ContextMenuItem.cjs.js.map +1 -1
  35. package/dist/components/ContextMenu/ContextMenuItem.es.js.map +1 -1
  36. package/dist/components/ContextMenu/ContextMenuItem.module.scss.cjs.js +2 -2
  37. package/dist/components/ContextMenu/ContextMenuItem.module.scss.es.js +3 -3
  38. package/dist/components/ContextMenu/ContextMenuService.cjs.js +1 -1
  39. package/dist/components/ContextMenu/ContextMenuService.cjs.js.map +1 -1
  40. package/dist/components/ContextMenu/ContextMenuService.es.js.map +1 -1
  41. package/dist/components/DataGrid/DataGrid.cjs.js +1 -1
  42. package/dist/components/DataGrid/DataGrid.cjs.js.map +1 -1
  43. package/dist/components/DataGrid/DataGrid.es.js.map +1 -1
  44. package/dist/components/DataGrid/DataGrid.module.scss.cjs.js +2 -2
  45. package/dist/components/DataGrid/DataGrid.module.scss.es.js +6 -6
  46. package/dist/components/DataGrid/DataGridActions/DataGridActions.cjs.js +1 -1
  47. package/dist/components/DataGrid/DataGridActions/DataGridActions.cjs.js.map +1 -1
  48. package/dist/components/DataGrid/DataGridActions/DataGridActions.es.js.map +1 -1
  49. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +2 -2
  50. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.es.js +6 -6
  51. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.cjs.js +1 -1
  52. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.cjs.js.map +1 -1
  53. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.es.js.map +1 -1
  54. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +2 -2
  55. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.es.js +7 -7
  56. package/dist/components/DataGrid/DataGridBody/DataGridBody.cjs.js +1 -1
  57. package/dist/components/DataGrid/DataGridBody/DataGridBody.cjs.js.map +1 -1
  58. package/dist/components/DataGrid/DataGridBody/DataGridBody.es.js.map +1 -1
  59. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +2 -2
  60. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.es.js +2 -2
  61. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js +1 -1
  62. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js.map +1 -1
  63. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.es.js.map +1 -1
  64. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +2 -2
  65. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.es.js +5 -5
  66. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.cjs.js +1 -1
  67. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.cjs.js.map +1 -1
  68. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.es.js.map +1 -1
  69. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +2 -2
  70. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.es.js +4 -4
  71. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js +1 -1
  72. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js.map +1 -1
  73. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.es.js.map +1 -1
  74. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +2 -2
  75. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.es.js +5 -5
  76. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js +1 -1
  77. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js.map +1 -1
  78. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.es.js +2 -1
  79. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.es.js.map +1 -1
  80. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +2 -2
  81. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.es.js +24 -24
  82. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.cjs.js +1 -1
  83. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.cjs.js.map +1 -1
  84. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.es.js.map +1 -1
  85. package/dist/components/DataGrid/DataGridFilters/DataGridDateFilter.cjs.js.map +1 -1
  86. package/dist/components/DataGrid/DataGridFilters/DataGridDateFilter.es.js.map +1 -1
  87. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js +1 -1
  88. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js.map +1 -1
  89. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js.map +1 -1
  90. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +2 -2
  91. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.es.js +9 -9
  92. package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.cjs.js +1 -1
  93. package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.cjs.js.map +1 -1
  94. package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.es.js.map +1 -1
  95. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js +1 -1
  96. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js.map +1 -1
  97. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js.map +1 -1
  98. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js +1 -1
  99. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js.map +1 -1
  100. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js.map +1 -1
  101. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js +1 -1
  102. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js.map +1 -1
  103. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js.map +1 -1
  104. package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.cjs.js.map +1 -1
  105. package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.es.js.map +1 -1
  106. package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.cjs.js +1 -1
  107. package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.cjs.js.map +1 -1
  108. package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.es.js.map +1 -1
  109. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.cjs.js +1 -1
  110. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.cjs.js.map +1 -1
  111. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.es.js.map +1 -1
  112. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +2 -2
  113. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.es.js +8 -8
  114. package/dist/components/DataGrid/DataGridFilters/DataGridToolbarWrapper.cjs.js.map +1 -1
  115. package/dist/components/DataGrid/DataGridFilters/DataGridToolbarWrapper.es.js.map +1 -1
  116. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.cjs.js +1 -1
  117. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.cjs.js.map +1 -1
  118. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.es.js.map +1 -1
  119. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +2 -2
  120. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.es.js +17 -17
  121. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.cjs.js.map +1 -1
  122. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.es.js.map +1 -1
  123. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.cjs.js +1 -1
  124. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.cjs.js.map +1 -1
  125. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.es.js.map +1 -1
  126. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimeService.cjs.js.map +1 -1
  127. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimeService.es.js.map +1 -1
  128. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.cjs.js +1 -1
  129. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.cjs.js.map +1 -1
  130. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.es.js.map +1 -1
  131. package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.cjs.js +1 -1
  132. package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.cjs.js.map +1 -1
  133. package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.es.js.map +1 -1
  134. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.cjs.js +1 -1
  135. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.cjs.js.map +1 -1
  136. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.es.js.map +1 -1
  137. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.cjs.js +1 -1
  138. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.cjs.js.map +1 -1
  139. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.es.js.map +1 -1
  140. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +2 -2
  141. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js +3 -3
  142. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js +1 -1
  143. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js.map +1 -1
  144. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.es.js.map +1 -1
  145. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +2 -2
  146. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.es.js +7 -7
  147. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  148. package/dist/components/DatePicker/DatePicker.cjs.js.map +1 -1
  149. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  150. package/dist/components/DatePicker/DatePicker.es.js.map +1 -1
  151. package/dist/components/DatePicker/DatePicker.module.scss.cjs.js +2 -2
  152. package/dist/components/DatePicker/DatePicker.module.scss.es.js +31 -31
  153. package/dist/components/Form/Checkbox/Checkbox.cjs.js +1 -1
  154. package/dist/components/Form/Checkbox/Checkbox.cjs.js.map +1 -1
  155. package/dist/components/Form/Checkbox/Checkbox.es.js +1 -0
  156. package/dist/components/Form/Checkbox/Checkbox.es.js.map +1 -1
  157. package/dist/components/Form/Checkbox/Checkbox.module.scss.cjs.js +2 -2
  158. package/dist/components/Form/Checkbox/Checkbox.module.scss.es.js +13 -13
  159. package/dist/components/Form/Fieldset/Fieldset.cjs.js +1 -1
  160. package/dist/components/Form/Fieldset/Fieldset.cjs.js.map +1 -1
  161. package/dist/components/Form/Fieldset/Fieldset.es.js.map +1 -1
  162. package/dist/components/Form/Fieldset/Fieldset.module.scss.cjs.js +2 -2
  163. package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js +5 -5
  164. package/dist/components/Form/FileUpload/FileItem/FileItem.cjs.js +1 -1
  165. package/dist/components/Form/FileUpload/FileItem/FileItem.cjs.js.map +1 -1
  166. package/dist/components/Form/FileUpload/FileItem/FileItem.es.js.map +1 -1
  167. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +2 -2
  168. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.es.js +18 -18
  169. package/dist/components/Form/FileUpload/FileUpload.cjs.js +1 -1
  170. package/dist/components/Form/FileUpload/FileUpload.cjs.js.map +1 -1
  171. package/dist/components/Form/FileUpload/FileUpload.es.js +18 -4
  172. package/dist/components/Form/FileUpload/FileUpload.es.js.map +1 -1
  173. package/dist/components/Form/FileUpload/FileUpload.module.scss.cjs.js +2 -2
  174. package/dist/components/Form/FileUpload/FileUpload.module.scss.es.js +16 -16
  175. package/dist/components/Form/Form.cjs.js +1 -1
  176. package/dist/components/Form/Form.cjs.js.map +1 -1
  177. package/dist/components/Form/Form.es.js.map +1 -1
  178. package/dist/components/Form/Form.module.scss.cjs.js +2 -2
  179. package/dist/components/Form/Form.module.scss.es.js +2 -2
  180. package/dist/components/Form/FormControl/FormControl.cjs.js +1 -1
  181. package/dist/components/Form/FormControl/FormControl.cjs.js.map +1 -1
  182. package/dist/components/Form/FormControl/FormControl.es.js.map +1 -1
  183. package/dist/components/Form/FormControl/FormControl.module.scss.cjs.js +2 -2
  184. package/dist/components/Form/FormControl/FormControl.module.scss.es.js +13 -13
  185. package/dist/components/Form/FormErrorText/FormErrorText.cjs.js.map +1 -1
  186. package/dist/components/Form/FormErrorText/FormErrorText.es.js.map +1 -1
  187. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.cjs.js +2 -2
  188. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js +5 -5
  189. package/dist/components/Form/FormGroup/FormGroup.cjs.js +1 -1
  190. package/dist/components/Form/FormGroup/FormGroup.cjs.js.map +1 -1
  191. package/dist/components/Form/FormGroup/FormGroup.es.js.map +1 -1
  192. package/dist/components/Form/FormGroup/FormGroup.module.scss.cjs.js +2 -2
  193. package/dist/components/Form/FormGroup/FormGroup.module.scss.es.js +3 -3
  194. package/dist/components/Form/FormHelperText/FormHelperText.cjs.js +1 -1
  195. package/dist/components/Form/FormHelperText/FormHelperText.cjs.js.map +1 -1
  196. package/dist/components/Form/FormHelperText/FormHelperText.es.js.map +1 -1
  197. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.cjs.js +2 -2
  198. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.es.js +4 -4
  199. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js +1 -1
  200. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js.map +1 -1
  201. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.es.js.map +1 -1
  202. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +2 -2
  203. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.es.js +6 -6
  204. package/dist/components/Form/FormStatusIndicator/FormStatusIndicator.cjs.js.map +1 -1
  205. package/dist/components/Form/FormStatusIndicator/FormStatusIndicator.es.js.map +1 -1
  206. package/dist/components/Form/Input/Input.cjs.js +1 -1
  207. package/dist/components/Form/Input/Input.cjs.js.map +1 -1
  208. package/dist/components/Form/Input/Input.es.js +1 -0
  209. package/dist/components/Form/Input/Input.es.js.map +1 -1
  210. package/dist/components/Form/Input/Input.module.scss.cjs.js +2 -2
  211. package/dist/components/Form/Input/Input.module.scss.es.js +9 -9
  212. package/dist/components/Form/Label/Label.cjs.js +1 -1
  213. package/dist/components/Form/Label/Label.cjs.js.map +1 -1
  214. package/dist/components/Form/Label/Label.es.js.map +1 -1
  215. package/dist/components/Form/Label/Label.module.scss.cjs.js +2 -2
  216. package/dist/components/Form/Label/Label.module.scss.es.js +2 -2
  217. package/dist/components/Form/Radio/Radio.cjs.js +1 -1
  218. package/dist/components/Form/Radio/Radio.cjs.js.map +1 -1
  219. package/dist/components/Form/Radio/Radio.es.js +1 -0
  220. package/dist/components/Form/Radio/Radio.es.js.map +1 -1
  221. package/dist/components/Form/Radio/Radio.module.scss.cjs.js +2 -2
  222. package/dist/components/Form/Radio/Radio.module.scss.es.js +11 -11
  223. package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js +1 -1
  224. package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js.map +1 -1
  225. package/dist/components/Form/Select/MultiSelect/MultiOption.es.js.map +1 -1
  226. package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js +1 -1
  227. package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js.map +1 -1
  228. package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js.map +1 -1
  229. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +2 -2
  230. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js +15 -15
  231. package/dist/components/Form/Select/MultiSelect/SelectButton.cjs.js +1 -1
  232. package/dist/components/Form/Select/MultiSelect/SelectButton.cjs.js.map +1 -1
  233. package/dist/components/Form/Select/MultiSelect/SelectButton.es.js.map +1 -1
  234. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +2 -2
  235. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.es.js +2 -2
  236. package/dist/components/Form/Select/MultiSelect/SelectedOptions.cjs.js +1 -1
  237. package/dist/components/Form/Select/MultiSelect/SelectedOptions.cjs.js.map +1 -1
  238. package/dist/components/Form/Select/MultiSelect/SelectedOptions.es.js.map +1 -1
  239. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +2 -2
  240. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.es.js +4 -4
  241. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js +1 -1
  242. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js.map +1 -1
  243. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.es.js.map +1 -1
  244. package/dist/components/Form/Select/MultiSelect/useMultiSelect.cjs.js +1 -1
  245. package/dist/components/Form/Select/MultiSelect/useMultiSelect.cjs.js.map +1 -1
  246. package/dist/components/Form/Select/MultiSelect/useMultiSelect.es.js.map +1 -1
  247. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js +1 -1
  248. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
  249. package/dist/components/Form/Select/MultiSelect/useSearch.es.js.map +1 -1
  250. package/dist/components/Form/Select/Select.interfaces.cjs.js.map +1 -1
  251. package/dist/components/Form/Select/Select.interfaces.es.js.map +1 -1
  252. package/dist/components/Form/Select/SingleSelect/Option.cjs.js +1 -1
  253. package/dist/components/Form/Select/SingleSelect/Option.cjs.js.map +1 -1
  254. package/dist/components/Form/Select/SingleSelect/Option.es.js.map +1 -1
  255. package/dist/components/Form/Select/SingleSelect/Select.cjs.js +1 -1
  256. package/dist/components/Form/Select/SingleSelect/Select.cjs.js.map +1 -1
  257. package/dist/components/Form/Select/SingleSelect/Select.es.js.map +1 -1
  258. package/dist/components/Form/Select/SingleSelect/Select.module.scss.cjs.js +2 -2
  259. package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js +17 -17
  260. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js +1 -1
  261. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js.map +1 -1
  262. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.es.js.map +1 -1
  263. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js +1 -1
  264. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -1
  265. package/dist/components/Form/Select/SingleSelect/useSearch.es.js.map +1 -1
  266. package/dist/components/Form/Select/useAddNewBtn.cjs.js +1 -1
  267. package/dist/components/Form/Select/useAddNewBtn.cjs.js.map +1 -1
  268. package/dist/components/Form/Select/useAddNewBtn.es.js.map +1 -1
  269. package/dist/components/Form/Select/useAddNewBtn.module.scss.cjs.js +2 -2
  270. package/dist/components/Form/Select/useAddNewBtn.module.scss.es.js +4 -4
  271. package/dist/components/Form/Select/useSelectPositionList.cjs.js +1 -1
  272. package/dist/components/Form/Select/useSelectPositionList.cjs.js.map +1 -1
  273. package/dist/components/Form/Select/useSelectPositionList.es.js.map +1 -1
  274. package/dist/components/Form/Textarea/Textarea.cjs.js +1 -1
  275. package/dist/components/Form/Textarea/Textarea.cjs.js.map +1 -1
  276. package/dist/components/Form/Textarea/Textarea.es.js +1 -0
  277. package/dist/components/Form/Textarea/Textarea.es.js.map +1 -1
  278. package/dist/components/Form/Textarea/Textarea.module.scss.cjs.js +2 -2
  279. package/dist/components/Form/Textarea/Textarea.module.scss.es.js +6 -6
  280. package/dist/components/Form/Toggle/Toggle.cjs.js +1 -1
  281. package/dist/components/Form/Toggle/Toggle.cjs.js.map +1 -1
  282. package/dist/components/Form/Toggle/Toggle.es.js.map +1 -1
  283. package/dist/components/Form/Toggle/Toggle.module.scss.cjs.js +2 -2
  284. package/dist/components/Form/Toggle/Toggle.module.scss.es.js +18 -18
  285. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js +1 -1
  286. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js.map +1 -1
  287. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.es.js.map +1 -1
  288. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +2 -2
  289. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js +3 -3
  290. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.cjs.js +1 -1
  291. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.cjs.js.map +1 -1
  292. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.es.js +9 -1
  293. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.es.js.map +1 -1
  294. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +2 -2
  295. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.es.js +4 -4
  296. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js +1 -1
  297. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js.map +1 -1
  298. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.es.js +9 -1
  299. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.es.js.map +1 -1
  300. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +2 -2
  301. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.es.js +3 -3
  302. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +1 -1
  303. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -1
  304. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.es.js.map +1 -1
  305. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +2 -2
  306. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js +3 -3
  307. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js +1 -1
  308. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js.map +1 -1
  309. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.es.js +9 -1
  310. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.es.js.map +1 -1
  311. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +2 -2
  312. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.es.js +3 -3
  313. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js +1 -1
  314. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js.map +1 -1
  315. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.es.js +10 -2
  316. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.es.js.map +1 -1
  317. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +2 -2
  318. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.es.js +8 -8
  319. package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js +1 -1
  320. package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js.map +1 -1
  321. package/dist/components/Form/Wrapper/Wrapper/Wrapper.es.js.map +1 -1
  322. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +2 -2
  323. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.es.js +6 -6
  324. package/dist/components/Icon/Icon.cjs.js +1 -1
  325. package/dist/components/Icon/Icon.cjs.js.map +1 -1
  326. package/dist/components/Icon/Icon.es.js.map +1 -1
  327. package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
  328. package/dist/components/Icon/Icon.module.scss.es.js +107 -107
  329. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.cjs.js +1 -1
  330. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.cjs.js.map +1 -1
  331. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.es.js +11 -9
  332. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.es.js.map +1 -1
  333. package/dist/components/InlineEditing/InlineEditingContext.cjs.js +1 -1
  334. package/dist/components/InlineEditing/InlineEditingContext.cjs.js.map +1 -1
  335. package/dist/components/InlineEditing/InlineEditingContext.es.js +40 -2
  336. package/dist/components/InlineEditing/InlineEditingContext.es.js.map +1 -1
  337. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.cjs.js +1 -1
  338. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.cjs.js.map +1 -1
  339. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.es.js +13 -10
  340. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.es.js.map +1 -1
  341. package/dist/components/Layout/Card/Card.cjs.js.map +1 -1
  342. package/dist/components/Layout/Card/Card.es.js.map +1 -1
  343. package/dist/components/Layout/Card/Card.module.scss.cjs.js +2 -2
  344. package/dist/components/Layout/Card/Card.module.scss.es.js +12 -12
  345. package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js +1 -1
  346. package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js.map +1 -1
  347. package/dist/components/Layout/ContentHeader/ContentHeader.es.js.map +1 -1
  348. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +2 -2
  349. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js +12 -12
  350. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.cjs.js.map +1 -1
  351. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.es.js.map +1 -1
  352. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +2 -2
  353. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js +4 -4
  354. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js +1 -1
  355. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js.map +1 -1
  356. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.es.js +1 -1
  357. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.es.js.map +1 -1
  358. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +2 -2
  359. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js +2 -2
  360. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.cjs.js.map +1 -1
  361. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.es.js.map +1 -1
  362. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +2 -2
  363. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.es.js +3 -3
  364. package/dist/components/Link/Link.cjs.js +1 -1
  365. package/dist/components/Link/Link.cjs.js.map +1 -1
  366. package/dist/components/Link/Link.es.js.map +1 -1
  367. package/dist/components/Link/Link.module.scss.cjs.js +2 -2
  368. package/dist/components/Link/Link.module.scss.es.js +19 -16
  369. package/dist/components/Link/Link.module.scss.es.js.map +1 -1
  370. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.cjs.js.map +1 -1
  371. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.es.js.map +1 -1
  372. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +2 -2
  373. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.es.js +11 -11
  374. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js +1 -1
  375. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js.map +1 -1
  376. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.es.js.map +1 -1
  377. package/dist/components/Notifications/Alert/AlertItem/AlertItem.cjs.js +1 -1
  378. package/dist/components/Notifications/Alert/AlertItem/AlertItem.cjs.js.map +1 -1
  379. package/dist/components/Notifications/Alert/AlertItem/AlertItem.es.js.map +1 -1
  380. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +2 -2
  381. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.es.js +22 -22
  382. package/dist/components/Notifications/Alert/AlertProvider/AlertContext.cjs.js.map +1 -1
  383. package/dist/components/Notifications/Alert/AlertProvider/AlertContext.es.js.map +1 -1
  384. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.cjs.js +1 -1
  385. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.cjs.js.map +1 -1
  386. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.es.js.map +1 -1
  387. package/dist/components/Notifications/Alert/useAlert.cjs.js.map +1 -1
  388. package/dist/components/Notifications/Alert/useAlert.es.js.map +1 -1
  389. package/dist/components/Notifications/Banner/Banner.cjs.js +1 -1
  390. package/dist/components/Notifications/Banner/Banner.cjs.js.map +1 -1
  391. package/dist/components/Notifications/Banner/Banner.es.js.map +1 -1
  392. package/dist/components/Notifications/Banner/Banner.module.scss.cjs.js +2 -2
  393. package/dist/components/Notifications/Banner/Banner.module.scss.es.js +9 -9
  394. package/dist/components/Notifications/BaseModal/BaseModal.cjs.js +1 -1
  395. package/dist/components/Notifications/BaseModal/BaseModal.cjs.js.map +1 -1
  396. package/dist/components/Notifications/BaseModal/BaseModal.es.js +1 -1
  397. package/dist/components/Notifications/BaseModal/BaseModal.es.js.map +1 -1
  398. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.cjs.js +2 -2
  399. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.es.js +5 -5
  400. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js +1 -1
  401. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js.map +1 -1
  402. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.es.js.map +1 -1
  403. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +2 -2
  404. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.es.js +4 -4
  405. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js +1 -1
  406. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js.map +1 -1
  407. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.es.js.map +1 -1
  408. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +2 -2
  409. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.es.js +2 -2
  410. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js +1 -1
  411. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js.map +1 -1
  412. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.es.js.map +1 -1
  413. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +2 -2
  414. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.es.js +6 -6
  415. package/dist/components/Notifications/Dialog/Dialog.cjs.js +1 -1
  416. package/dist/components/Notifications/Dialog/Dialog.cjs.js.map +1 -1
  417. package/dist/components/Notifications/Dialog/Dialog.es.js +2 -2
  418. package/dist/components/Notifications/Dialog/Dialog.es.js.map +1 -1
  419. package/dist/components/Notifications/Dialog/Dialog.module.scss.cjs.js +2 -2
  420. package/dist/components/Notifications/Dialog/Dialog.module.scss.es.js +4 -4
  421. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.cjs.js +1 -1
  422. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.cjs.js.map +1 -1
  423. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.es.js.map +1 -1
  424. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +2 -2
  425. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.es.js +3 -3
  426. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js +1 -1
  427. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js.map +1 -1
  428. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.es.js.map +1 -1
  429. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +2 -2
  430. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.es.js +10 -10
  431. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js +1 -1
  432. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js.map +1 -1
  433. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.es.js.map +1 -1
  434. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.cjs.js.map +1 -1
  435. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.es.js.map +1 -1
  436. package/dist/components/Notifications/NotificationProvider/NotificationContext.cjs.js +1 -1
  437. package/dist/components/Notifications/NotificationProvider/NotificationContext.cjs.js.map +1 -1
  438. package/dist/components/Notifications/NotificationProvider/NotificationContext.es.js +1 -1
  439. package/dist/components/Notifications/NotificationProvider/NotificationContext.es.js.map +1 -1
  440. package/dist/components/Notifications/NotificationProvider/NotificationService.es.js.map +1 -1
  441. package/dist/components/Notifications/SideSheet/SideSheet.cjs.js +1 -1
  442. package/dist/components/Notifications/SideSheet/SideSheet.cjs.js.map +1 -1
  443. package/dist/components/Notifications/SideSheet/SideSheet.es.js.map +1 -1
  444. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.cjs.js +2 -2
  445. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.es.js +13 -13
  446. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.cjs.js.map +1 -1
  447. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.es.js.map +1 -1
  448. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +2 -2
  449. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.es.js +2 -2
  450. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.cjs.js.map +1 -1
  451. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.es.js.map +1 -1
  452. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +2 -2
  453. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.es.js +2 -2
  454. package/dist/components/Notifications/SlideInModal/SlideInModal.cjs.js +1 -1
  455. package/dist/components/Notifications/SlideInModal/SlideInModal.cjs.js.map +1 -1
  456. package/dist/components/Notifications/SlideInModal/SlideInModal.es.js.map +1 -1
  457. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +2 -2
  458. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.es.js +10 -10
  459. package/dist/components/Pagination/Pagination.cjs.js +1 -1
  460. package/dist/components/Pagination/Pagination.cjs.js.map +1 -1
  461. package/dist/components/Pagination/Pagination.es.js.map +1 -1
  462. package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
  463. package/dist/components/Pagination/Pagination.module.scss.es.js +14 -14
  464. package/dist/components/Popover/Popover.cjs.js +1 -1
  465. package/dist/components/Popover/Popover.cjs.js.map +1 -1
  466. package/dist/components/Popover/Popover.es.js.map +1 -1
  467. package/dist/components/Popover/Popover.module.scss.cjs.js +2 -2
  468. package/dist/components/Popover/Popover.module.scss.es.js +3 -3
  469. package/dist/components/ProgressBar/ProgressBar.cjs.js +1 -1
  470. package/dist/components/ProgressBar/ProgressBar.cjs.js.map +1 -1
  471. package/dist/components/ProgressBar/ProgressBar.es.js.map +1 -1
  472. package/dist/components/ProgressBar/ProgressBar.module.scss.cjs.js +2 -2
  473. package/dist/components/ProgressBar/ProgressBar.module.scss.es.js +9 -9
  474. package/dist/components/RequiredSign/RequiredSign.cjs.js.map +1 -1
  475. package/dist/components/RequiredSign/RequiredSign.es.js.map +1 -1
  476. package/dist/components/Skeleton/Skeleton.cjs.js +1 -1
  477. package/dist/components/Skeleton/Skeleton.cjs.js.map +1 -1
  478. package/dist/components/Skeleton/Skeleton.es.js.map +1 -1
  479. package/dist/components/Skeleton/Skeleton.module.scss.cjs.js +2 -2
  480. package/dist/components/Skeleton/Skeleton.module.scss.es.js +5 -5
  481. package/dist/components/Spinner/Spinner.cjs.js.map +1 -1
  482. package/dist/components/Spinner/Spinner.es.js.map +1 -1
  483. package/dist/components/Spinner/Spinner.module.scss.cjs.js +2 -2
  484. package/dist/components/Spinner/Spinner.module.scss.es.js +3 -3
  485. package/dist/components/Stepper/Step.cjs.js.map +1 -1
  486. package/dist/components/Stepper/Step.es.js.map +1 -1
  487. package/dist/components/Stepper/Step.module.scss.cjs.js +2 -2
  488. package/dist/components/Stepper/Step.module.scss.es.js +22 -22
  489. package/dist/components/Stepper/Stepper.cjs.js +1 -1
  490. package/dist/components/Stepper/Stepper.cjs.js.map +1 -1
  491. package/dist/components/Stepper/Stepper.es.js.map +1 -1
  492. package/dist/components/Stepper/Stepper.module.scss.cjs.js +2 -2
  493. package/dist/components/Stepper/Stepper.module.scss.es.js +4 -4
  494. package/dist/components/Tabs/Tab.cjs.js.map +1 -1
  495. package/dist/components/Tabs/Tab.es.js.map +1 -1
  496. package/dist/components/Tabs/Tab.module.scss.cjs.js +2 -2
  497. package/dist/components/Tabs/Tab.module.scss.es.js +3 -3
  498. package/dist/components/Tabs/TabButton.cjs.js +1 -1
  499. package/dist/components/Tabs/TabButton.cjs.js.map +1 -1
  500. package/dist/components/Tabs/TabButton.es.js.map +1 -1
  501. package/dist/components/Tabs/TabButton.module.scss.cjs.js +2 -2
  502. package/dist/components/Tabs/TabButton.module.scss.es.js +12 -12
  503. package/dist/components/Tabs/Tabs.cjs.js +1 -1
  504. package/dist/components/Tabs/Tabs.cjs.js.map +1 -1
  505. package/dist/components/Tabs/Tabs.es.js +61 -36
  506. package/dist/components/Tabs/Tabs.es.js.map +1 -1
  507. package/dist/components/Tabs/Tabs.module.scss.cjs.js +2 -2
  508. package/dist/components/Tabs/Tabs.module.scss.es.js +10 -10
  509. package/dist/components/Tag/RemoveButton.cjs.js +1 -1
  510. package/dist/components/Tag/RemoveButton.cjs.js.map +1 -1
  511. package/dist/components/Tag/RemoveButton.es.js.map +1 -1
  512. package/dist/components/Tag/RemoveButton.module.scss.cjs.js +2 -2
  513. package/dist/components/Tag/RemoveButton.module.scss.es.js +3 -3
  514. package/dist/components/Tag/Tag.cjs.js +1 -1
  515. package/dist/components/Tag/Tag.cjs.js.map +1 -1
  516. package/dist/components/Tag/Tag.es.js.map +1 -1
  517. package/dist/components/Tag/Tag.module.scss.cjs.js +2 -2
  518. package/dist/components/Tag/Tag.module.scss.es.js +6 -6
  519. package/dist/components/TextEllipsis/TextEllipsis.cjs.js +1 -1
  520. package/dist/components/TextEllipsis/TextEllipsis.cjs.js.map +1 -1
  521. package/dist/components/TextEllipsis/TextEllipsis.es.js.map +1 -1
  522. package/dist/components/TextEllipsis/TextEllipsis.module.scss.cjs.js +2 -2
  523. package/dist/components/TextEllipsis/TextEllipsis.module.scss.es.js +3 -3
  524. package/dist/components/Tiles/Tile.cjs.js +1 -1
  525. package/dist/components/Tiles/Tile.cjs.js.map +1 -1
  526. package/dist/components/Tiles/Tile.es.js.map +1 -1
  527. package/dist/components/Tiles/Tile.module.scss.cjs.js +2 -2
  528. package/dist/components/Tiles/Tile.module.scss.es.js +8 -8
  529. package/dist/components/Tiles/Tiles.cjs.js +1 -1
  530. package/dist/components/Tiles/Tiles.cjs.js.map +1 -1
  531. package/dist/components/Tiles/Tiles.es.js.map +1 -1
  532. package/dist/components/Tiles/Tiles.module.scss.cjs.js +2 -2
  533. package/dist/components/Tiles/Tiles.module.scss.es.js +2 -2
  534. package/dist/components/Tooltip/Tooltip.cjs.js +1 -1
  535. package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -1
  536. package/dist/components/Tooltip/Tooltip.es.js +1 -1
  537. package/dist/components/Tooltip/Tooltip.es.js.map +1 -1
  538. package/dist/components/Tooltip/Tooltip.module.scss.cjs.js +2 -2
  539. package/dist/components/Tooltip/Tooltip.module.scss.es.js +27 -27
  540. package/dist/components/Typography/Typography.cjs.js +1 -1
  541. package/dist/components/Typography/Typography.cjs.js.map +1 -1
  542. package/dist/components/Typography/Typography.es.js.map +1 -1
  543. package/dist/components/Typography/Typography.module.scss.cjs.js +2 -2
  544. package/dist/components/Typography/Typography.module.scss.es.js +13 -13
  545. package/dist/components/_BaseStyling_/BaseStyling.cjs.js +1 -1
  546. package/dist/components/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
  547. package/dist/components/_BaseStyling_/BaseStyling.es.js.map +1 -1
  548. package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js +1 -1
  549. package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js.map +1 -1
  550. package/dist/components/admin/layout/LeftNav/LeftNav.es.js +2 -0
  551. package/dist/components/admin/layout/LeftNav/LeftNav.es.js.map +1 -1
  552. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -2
  553. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.es.js +5 -5
  554. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js +1 -1
  555. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js.map +1 -1
  556. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.es.js +2 -0
  557. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.es.js.map +1 -1
  558. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.cjs.js +1 -1
  559. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.cjs.js.map +1 -1
  560. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.es.js.map +1 -1
  561. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -2
  562. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.es.js +14 -14
  563. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js +1 -1
  564. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js.map +1 -1
  565. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.es.js +90 -2
  566. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.es.js.map +1 -1
  567. package/dist/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.cjs.js.map +1 -1
  568. package/dist/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.es.js.map +1 -1
  569. package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js +1 -1
  570. package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js.map +1 -1
  571. package/dist/components/admin/layout/LeftNav/useRefItems.es.js.map +1 -1
  572. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js +1 -1
  573. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js.map +1 -1
  574. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.es.js +1 -1
  575. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.es.js.map +1 -1
  576. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +2 -2
  577. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js +3 -3
  578. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.cjs.js +2 -0
  579. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.cjs.js.map +1 -0
  580. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.es.js +33 -0
  581. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.es.js.map +1 -0
  582. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js +3 -0
  583. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js.map +1 -0
  584. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js +25 -0
  585. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js.map +1 -0
  586. package/dist/components/admin/layout/TopNavBar/TopNavBar.cjs.js +2 -0
  587. package/dist/components/admin/layout/TopNavBar/TopNavBar.cjs.js.map +1 -0
  588. package/dist/components/admin/layout/TopNavBar/TopNavBar.es.js +45 -0
  589. package/dist/components/admin/layout/TopNavBar/TopNavBar.es.js.map +1 -0
  590. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js +3 -0
  591. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js.map +1 -0
  592. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js +25 -0
  593. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js.map +1 -0
  594. package/dist/components/miscellaneous/IdentityProviderButton.cjs.js.map +1 -1
  595. package/dist/components/miscellaneous/IdentityProviderButton.es.js.map +1 -1
  596. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.cjs.js +2 -2
  597. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.es.js +3 -3
  598. package/dist/components/withReadOnly.cjs.js +1 -1
  599. package/dist/components/withReadOnly.cjs.js.map +1 -1
  600. package/dist/components/withReadOnly.es.js.map +1 -1
  601. package/dist/hooks/useAnimation.cjs.js +1 -1
  602. package/dist/hooks/useAnimation.cjs.js.map +1 -1
  603. package/dist/hooks/useAnimation.es.js.map +1 -1
  604. package/dist/hooks/useClickOutside.cjs.js +1 -1
  605. package/dist/hooks/useClickOutside.cjs.js.map +1 -1
  606. package/dist/hooks/useClickOutside.es.js.map +1 -1
  607. package/dist/hooks/useDebouncedCallback.cjs.js +1 -1
  608. package/dist/hooks/useDebouncedCallback.cjs.js.map +1 -1
  609. package/dist/hooks/useDebouncedCallback.es.js.map +1 -1
  610. package/dist/hooks/useDescribedBy.cjs.js +2 -0
  611. package/dist/hooks/useDescribedBy.cjs.js.map +1 -0
  612. package/dist/hooks/useDescribedBy.es.js +30 -0
  613. package/dist/hooks/useDescribedBy.es.js.map +1 -0
  614. package/dist/hooks/useDetermineStatusIcon.cjs.js.map +1 -1
  615. package/dist/hooks/useDetermineStatusIcon.es.js.map +1 -1
  616. package/dist/hooks/useFormSelector.cjs.js +1 -1
  617. package/dist/hooks/useFormSelector.cjs.js.map +1 -1
  618. package/dist/hooks/useFormSelector.es.js +11 -16
  619. package/dist/hooks/useFormSelector.es.js.map +1 -1
  620. package/dist/hooks/useFullHeightCollapse.cjs.js.map +1 -1
  621. package/dist/hooks/useFullHeightCollapse.es.js.map +1 -1
  622. package/dist/hooks/useGetDomRoot.cjs.js +1 -1
  623. package/dist/hooks/useGetDomRoot.cjs.js.map +1 -1
  624. package/dist/hooks/useGetDomRoot.es.js.map +1 -1
  625. package/dist/hooks/usePosition.cjs.js +1 -1
  626. package/dist/hooks/usePosition.cjs.js.map +1 -1
  627. package/dist/hooks/usePosition.es.js.map +1 -1
  628. package/dist/hooks/useRepeatFocus.cjs.js +1 -1
  629. package/dist/hooks/useRepeatFocus.cjs.js.map +1 -1
  630. package/dist/hooks/useRepeatFocus.es.js +6 -23
  631. package/dist/hooks/useRepeatFocus.es.js.map +1 -1
  632. package/dist/hooks/useRepeater.cjs.js +1 -1
  633. package/dist/hooks/useRepeater.cjs.js.map +1 -1
  634. package/dist/hooks/useRepeater.es.js.map +1 -1
  635. package/dist/hooks/useScreenSize.cjs.js +1 -1
  636. package/dist/hooks/useScreenSize.cjs.js.map +1 -1
  637. package/dist/hooks/useScreenSize.es.js.map +1 -1
  638. package/dist/hooks/useSpacing.cjs.js +1 -1
  639. package/dist/hooks/useSpacing.cjs.js.map +1 -1
  640. package/dist/hooks/useSpacing.es.js.map +1 -1
  641. package/dist/hooks/useUploadFile.cjs.js +1 -1
  642. package/dist/hooks/useUploadFile.cjs.js.map +1 -1
  643. package/dist/hooks/useUploadFile.es.js.map +1 -1
  644. package/dist/hooks/useWrapper.cjs.js.map +1 -1
  645. package/dist/hooks/useWrapper.es.js.map +1 -1
  646. package/dist/index.cjs.js +1 -1
  647. package/dist/index.d.ts +48 -4
  648. package/dist/index.es.js +6 -0
  649. package/dist/index.es.js.map +1 -1
  650. package/dist/node_modules/tabbable/dist/index.esm.cjs.js +2 -0
  651. package/dist/node_modules/tabbable/dist/index.esm.cjs.js.map +1 -0
  652. package/dist/node_modules/tabbable/dist/index.esm.es.js +322 -0
  653. package/dist/node_modules/tabbable/dist/index.esm.es.js.map +1 -0
  654. package/dist/readyclasses.module.scss.cjs.js +2 -2
  655. package/dist/readyclasses.module.scss.es.js +5 -5
  656. package/dist/util/helper.cjs.js +1 -1
  657. package/dist/util/helper.cjs.js.map +1 -1
  658. package/dist/util/helper.es.js +1 -1
  659. package/dist/util/helper.es.js.map +1 -1
  660. package/dist/utils/focusManagement.cjs.js +2 -0
  661. package/dist/utils/focusManagement.cjs.js.map +1 -0
  662. package/dist/utils/focusManagement.es.js +8 -0
  663. package/dist/utils/focusManagement.es.js.map +1 -0
  664. package/dist/utils/statusUtils.cjs.js.map +1 -1
  665. package/dist/utils/statusUtils.es.js.map +1 -1
  666. package/dist/variables.cjs.js.map +1 -1
  667. package/dist/variables.es.js.map +1 -1
  668. package/package.json +26 -21
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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_dialog_7l1Pc{align-items:center}@media only screen and (min-width: 50em){.Dialog_container_7l1Pc{width:30rem;margin-top:0;max-height:90%}}.Dialog_content_7l1Pc{padding-top:0}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Dialog_dialog_7l1Pc",o="Dialog_container_7l1Pc",t="Dialog_content_7l1Pc",l={dialog:e,container:o,content:t};exports.container=o,exports.content=t,exports.default=l,exports.dialog=e;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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_dialog_SI2V3{align-items:center}@media only screen and (min-width:50em){.Dialog_container_SI2V3{width:30rem;margin-top:0;max-height:90%}}.Dialog_content_SI2V3{padding-top:0}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Dialog_dialog_SI2V3",o="Dialog_container_SI2V3",t="Dialog_content_SI2V3",n={dialog:e,container:o,content:t};exports.container=o,exports.content=t,exports.default=n,exports.dialog=e;
3
3
  //# sourceMappingURL=Dialog.module.scss.cjs.js.map
@@ -1,7 +1,7 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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_dialog_7l1Pc{align-items:center}@media only screen and (min-width: 50em){.Dialog_container_7l1Pc{width:30rem;margin-top:0;max-height:90%}}.Dialog_content_7l1Pc{padding-top:0}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- const dialog = "Dialog_dialog_7l1Pc";
3
- const container = "Dialog_container_7l1Pc";
4
- const content = "Dialog_content_7l1Pc";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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_dialog_SI2V3{align-items:center}@media only screen and (min-width:50em){.Dialog_container_SI2V3{width:30rem;margin-top:0;max-height:90%}}.Dialog_content_SI2V3{padding-top:0}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ const dialog = "Dialog_dialog_SI2V3";
3
+ const container = "Dialog_container_SI2V3";
4
+ const content = "Dialog_content_SI2V3";
5
5
  const classes = {
6
6
  dialog,
7
7
  container,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),o=require("../../BaseModal/BaseModalActions/BaseModalActions.cjs.js"),s=require("./DialogActions.module.scss.cjs.js"),c=e.forwardRef((({children:c,cancelAction:a,onClose:t,...l},n)=>e.createElement(o.BaseModalActions,{...l,cancelAction:a,cancelActionsClassName:s.default["cancel-action"],onClose:t,ref:n,className:s.default.actions},c)));exports.DialogActions=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),o=require("../../BaseModal/BaseModalActions/BaseModalActions.cjs.js"),s=require("./DialogActions.module.scss.cjs.js"),c=e.forwardRef(({children:c,cancelAction:a,onClose:t,...l},n)=>e.createElement(o.BaseModalActions,{...l,cancelAction:a,cancelActionsClassName:s.default["cancel-action"],onClose:t,ref:n,className:s.default.actions},c));exports.DialogActions=c;
2
2
  //# sourceMappingURL=DialogActions.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DialogActions.cjs.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\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any */\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":["DialogActions","React","forwardRef","children","cancelAction","onClose","rest","ref","createElement","BaseModalActions","cancelActionsClassName","classes","className"],"mappings":"+NA+CaA,EAAgBC,EAAMC,YAlB6C,EAC5EC,WAAUC,eAAcC,aAAYC,GACtCC,IAGEN,EAAAO,cAACC,EAAAA,iBAAA,IACKH,EACJF,eACAM,uBAAwBC,UAAQ,iBAChCN,UACAE,MACAK,UAAWD,UAAiB,SAE3BR"}
1
+ {"version":3,"file":"DialogActions.cjs.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\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any */\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":["DialogActions","React","forwardRef","children","cancelAction","onClose","rest","ref","createElement","BaseModalActions","cancelActionsClassName","classes","className"],"mappings":"+NA+CaA,EAAgBC,EAAMC,WAlB6C,EAC5EC,WAAUC,eAAcC,aAAYC,GACtCC,IAGEN,EAAAO,cAACC,EAAAA,iBAAA,IACKH,EACJF,eACAM,uBAAwBC,EAAAA,QAAQ,iBAChCN,UACAE,MACAK,UAAWD,EAAAA,QAAiB,SAE3BR"}
@@ -1 +1 @@
1
- {"version":3,"file":"DialogActions.es.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\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any */\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":[],"mappings":";;;AA6BA,MAAM,yBAA0E,CAC9E,EAAE,UAAU,cAAc,SAAS,GAAG,KAAK,GAC3C,QACG;AAED,SAAA,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA,wBAAwB,QAAQ,eAAe;AAAA,MAC/C;AAAA,MACA;AAAA,MACA,WAAW,QAAQ,SAAS;AAAA,IAAA;AAAA,IAE3B;AAAA,EACH;AAEJ;AAEa,MAAA,gBAAgB,MAAM,WAAW,sBAAsB;"}
1
+ {"version":3,"file":"DialogActions.es.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\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any */\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":[],"mappings":";;;AA6BA,MAAM,yBAA0E,CAC9E,EAAE,UAAU,cAAc,SAAS,GAAG,KAAA,GACtC,QACG;AACH,SACE,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA,wBAAwB,QAAQ,eAAe;AAAA,MAC/C;AAAA,MACA;AAAA,MACA,WAAW,QAAQ,SAAS;AAAA,IAAA;AAAA,IAE3B;AAAA,EAAA;AAGP;AAEO,MAAM,gBAAgB,MAAM,WAAW,sBAAsB;"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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_actions_7l1Pc *+*{margin-left:.5rem}@media screen and (max-width: 640px){.DialogActions_actions_7l1Pc .DialogActions_cancel-action_7l1Pc{display:block;flex-direction:column;align-items:flex-end;margin-left:0;margin-bottom:.5rem}.DialogActions_actions_7l1Pc .DialogActions_cancel-action_7l1Pc>*{width:100%}}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="DialogActions_actions_7l1Pc",t={actions:o,"cancel-action":"DialogActions_cancel-action_7l1Pc"};exports.actions=o,exports.default=t;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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_actions_SI2V3 *+*{margin-left:.5rem}@media screen and (max-width:640px){.DialogActions_actions_SI2V3 .DialogActions_cancel-action_SI2V3{display:block;flex-direction:column;align-items:flex-end;margin-left:0;margin-bottom:.5rem}.DialogActions_actions_SI2V3 .DialogActions_cancel-action_SI2V3>*{width:100%}}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="DialogActions_actions_SI2V3",t={actions:o,"cancel-action":"DialogActions_cancel-action_SI2V3"};exports.actions=o,exports.default=t;
3
3
  //# sourceMappingURL=DialogActions.module.scss.cjs.js.map
@@ -1,8 +1,8 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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_actions_7l1Pc *+*{margin-left:.5rem}@media screen and (max-width: 640px){.DialogActions_actions_7l1Pc .DialogActions_cancel-action_7l1Pc{display:block;flex-direction:column;align-items:flex-end;margin-left:0;margin-bottom:.5rem}.DialogActions_actions_7l1Pc .DialogActions_cancel-action_7l1Pc>*{width:100%}}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- const actions = "DialogActions_actions_7l1Pc";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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_actions_SI2V3 *+*{margin-left:.5rem}@media screen and (max-width:640px){.DialogActions_actions_SI2V3 .DialogActions_cancel-action_SI2V3{display:block;flex-direction:column;align-items:flex-end;margin-left:0;margin-bottom:.5rem}.DialogActions_actions_SI2V3 .DialogActions_cancel-action_SI2V3>*{width:100%}}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ const actions = "DialogActions_actions_SI2V3";
3
3
  const classes = {
4
4
  actions,
5
- "cancel-action": "DialogActions_cancel-action_7l1Pc"
5
+ "cancel-action": "DialogActions_cancel-action_SI2V3"
6
6
  };
7
7
  export {
8
8
  actions,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("../../../Typography/Typography.cjs.js"),a=require("./DialogTitle.module.scss.cjs.js"),c=require("../../../Icon/Icon.cjs.js"),l=require("../../../Button/IconButton.cjs.js"),o=e.forwardRef((({id:o,title:n,titleIcon:i,caption:r,onClose:s,...u},d)=>e.createElement("div",{...u,ref:d,className:a.default.header},e.createElement("div",{className:`${a.default.headline} ${r?a.default["with-caption"]:a.default["no-caption"]}`},i&&e.createElement("div",{className:a.default["title-icon"]},"boolean"==typeof i?e.createElement(c.Icon,{icon:c.Icons.InfoCircle}):i),e.createElement("div",{className:a.default["title-wrapper"]},e.createElement(t.Typography,{id:o,className:a.default.title,spacing:i&&{marginLeft:2},tag:"h1",variant:"h4"},n),r&&e.createElement(t.Typography,{className:a.default.caption,spacing:{marginLeft:2},variant:"sub-text"},r))),s&&e.createElement(l.IconButton,{onClick:s,className:a.default["close-button"],title:"close modal"},e.createElement(c.Icon,{icon:c.Icons.Times})))));exports.DialogTitle=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("../../../Typography/Typography.cjs.js"),a=require("./DialogTitle.module.scss.cjs.js"),c=require("../../../Icon/Icon.cjs.js"),l=require("../../../Button/IconButton.cjs.js"),o=e.forwardRef(({id:o,title:n,titleIcon:i,caption:r,onClose:s,...u},d)=>e.createElement("div",{...u,ref:d,className:a.default.header},e.createElement("div",{className:`${a.default.headline} ${r?a.default["with-caption"]:a.default["no-caption"]}`},i&&e.createElement("div",{className:a.default["title-icon"]},"boolean"==typeof i?e.createElement(c.Icon,{icon:c.Icons.InfoCircle}):i),e.createElement("div",{className:a.default["title-wrapper"]},e.createElement(t.Typography,{id:o,className:a.default.title,spacing:i&&{marginLeft:2},tag:"h1",variant:"h4"},n),r&&e.createElement(t.Typography,{className:a.default.caption,spacing:{marginLeft:2},variant:"sub-text"},r))),s&&e.createElement(l.IconButton,{onClick:s,className:a.default["close-button"],title:"close modal"},e.createElement(c.Icon,{icon:c.Icons.Times}))));exports.DialogTitle=o;
2
2
  //# sourceMappingURL=DialogTitle.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DialogTitle.cjs.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\";\nimport { IconButton } from \"../../../Button/IconButton\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id: string;\n title: string;\n titleIcon?: React.ReactNode;\n caption?: string;\n onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n}\n\nconst DialogTitleComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { id, title, titleIcon, caption, onClose, ...rest }: Props,\n ref\n) => {\n return (\n <div {...rest} ref={ref} className={classes[\"header\"]}>\n <div\n className={`${classes[\"headline\"]} ${caption ? classes[\"with-caption\"] : classes[\"no-caption\"]}`}\n >\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\n className={classes[\"caption\"]}\n spacing={{ marginLeft: 2 }}\n variant=\"sub-text\"\n >\n {caption}\n </Typography>\n )}\n </div>\n </div>\n {onClose && (\n <IconButton onClick={onClose} className={classes[\"close-button\"]} title=\"close modal\">\n <Icon icon={Icons.Times} />\n </IconButton>\n )}\n </div>\n );\n};\n\nexport const DialogTitle = React.forwardRef(DialogTitleComponent);\n"],"names":["DialogTitle","React","forwardRef","id","title","titleIcon","caption","onClose","rest","ref","createElement","className","classes","default","Icon","icon","Icons","InfoCircle","Typography","spacing","marginLeft","tag","variant","IconButton","onClick","Times"],"mappings":"gSA0EaA,EAAcC,EAAMC,YA5C6C,EAC1EC,KAAIC,QAAOC,YAAWC,UAASC,aAAYC,GAC7CC,IAGER,EAAAS,cAAC,UAAQF,EAAMC,MAAUE,UAAWC,EAAAA,QAAgB,QAClDX,EAAAS,cAAC,MAAA,CACCC,UAAW,GAAGC,UAAkB,YAAKN,EAAUM,EAAAA,QAAQ,gBAAkBA,EAAQC,QAAA,iBAEhFR,GACEJ,EAAAS,cAAA,MAAA,CAAIC,UAAWC,EAAAC,QAAQ,eACA,kBAAdR,kBAA2BS,OAAK,CAAAC,KAAMC,QAAMC,aAAiBZ,GAGxEJ,EAAAS,cAAA,MAAA,CAAIC,UAAWC,EAAAA,QAAQ,kBACtBX,EAAAS,cAACQ,EAAAA,WAAA,CACCf,KACAQ,UAAWC,UAAe,MAC1BO,QAASd,GAAa,CAAEe,WAAY,GACpCC,IAAI,KACJC,QAAQ,MAEPlB,GAEFE,GACCL,EAAAS,cAACQ,EAAAA,WAAA,CACCP,UAAWC,UAAiB,QAC5BO,QAAS,CAAEC,WAAY,GACvBE,QAAQ,YAEPhB,KAKRC,GACCN,EAAAS,cAACa,cAAWC,QAASjB,EAASI,UAAWC,EAAAA,QAAQ,gBAAiBR,MAAM,eACrEH,EAAAS,cAAAI,EAAAA,KAAA,CAAKC,KAAMC,EAAMA,MAAAS"}
1
+ {"version":3,"file":"DialogTitle.cjs.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\";\nimport { IconButton } from \"../../../Button/IconButton\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id: string;\n title: string;\n titleIcon?: React.ReactNode;\n caption?: string;\n onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n}\n\nconst DialogTitleComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { id, title, titleIcon, caption, onClose, ...rest }: Props,\n ref\n) => {\n return (\n <div {...rest} ref={ref} className={classes[\"header\"]}>\n <div\n className={`${classes[\"headline\"]} ${caption ? classes[\"with-caption\"] : classes[\"no-caption\"]}`}\n >\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\n className={classes[\"caption\"]}\n spacing={{ marginLeft: 2 }}\n variant=\"sub-text\"\n >\n {caption}\n </Typography>\n )}\n </div>\n </div>\n {onClose && (\n <IconButton onClick={onClose} className={classes[\"close-button\"]} title=\"close modal\">\n <Icon icon={Icons.Times} />\n </IconButton>\n )}\n </div>\n );\n};\n\nexport const DialogTitle = React.forwardRef(DialogTitleComponent);\n"],"names":["DialogTitle","React","forwardRef","id","title","titleIcon","caption","onClose","rest","ref","createElement","className","classes","Icon","icon","Icons","InfoCircle","Typography","spacing","marginLeft","tag","variant","IconButton","onClick","Times"],"mappings":"gSA0EaA,EAAcC,EAAMC,WA5C6C,EAC1EC,KAAIC,QAAOC,YAAWC,UAASC,aAAYC,GAC7CC,IAGER,EAAAS,cAAC,UAAQF,EAAMC,MAAUE,UAAWC,EAAAA,QAAgB,QAClDX,EAAAS,cAAC,MAAA,CACCC,UAAW,GAAGC,UAAkB,YAAKN,EAAUM,EAAAA,QAAQ,gBAAkBA,EAAAA,QAAQ,iBAEhFP,GACCJ,EAAAS,cAAC,MAAA,CAAIC,UAAWC,EAAAA,QAAQ,eACA,kBAAdP,kBAA2BQ,OAAA,CAAKC,KAAMC,QAAMC,aAAiBX,GAGzEJ,EAAAS,cAAC,MAAA,CAAIC,UAAWC,EAAAA,QAAQ,kBACtBX,EAAAS,cAACO,EAAAA,WAAA,CACCd,KACAQ,UAAWC,EAAAA,QAAe,MAC1BM,QAASb,GAAa,CAAEc,WAAY,GACpCC,IAAI,KACJC,QAAQ,MAEPjB,GAEFE,GACCL,EAAAS,cAACO,EAAAA,WAAA,CACCN,UAAWC,EAAAA,QAAiB,QAC5BM,QAAS,CAAEC,WAAY,GACvBE,QAAQ,YAEPf,KAKRC,GACCN,EAAAS,cAACY,EAAAA,YAAWC,QAAShB,EAASI,UAAWC,EAAAA,QAAQ,gBAAiBR,MAAM,eACtEH,EAAAS,cAACG,EAAAA,KAAA,CAAKC,KAAMC,EAAAA,MAAMS"}
@@ -1 +1 @@
1
- {"version":3,"file":"DialogTitle.es.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\";\nimport { IconButton } from \"../../../Button/IconButton\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id: string;\n title: string;\n titleIcon?: React.ReactNode;\n caption?: string;\n onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n}\n\nconst DialogTitleComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { id, title, titleIcon, caption, onClose, ...rest }: Props,\n ref\n) => {\n return (\n <div {...rest} ref={ref} className={classes[\"header\"]}>\n <div\n className={`${classes[\"headline\"]} ${caption ? classes[\"with-caption\"] : classes[\"no-caption\"]}`}\n >\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\n className={classes[\"caption\"]}\n spacing={{ marginLeft: 2 }}\n variant=\"sub-text\"\n >\n {caption}\n </Typography>\n )}\n </div>\n </div>\n {onClose && (\n <IconButton onClick={onClose} className={classes[\"close-button\"]} title=\"close modal\">\n <Icon icon={Icons.Times} />\n </IconButton>\n )}\n </div>\n );\n};\n\nexport const DialogTitle = React.forwardRef(DialogTitleComponent);\n"],"names":[],"mappings":";;;;;AA8BA,MAAM,uBAAwE,CAC5E,EAAE,IAAI,OAAO,WAAW,SAAS,SAAS,GAAG,KAAK,GAClD,QACG;AAED,SAAA,sBAAA,cAAC,SAAK,GAAG,MAAM,KAAU,WAAW,QAAQ,QAAQ,EAClD,GAAA,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,GAAG,QAAQ,UAAU,CAAC,IAAI,UAAU,QAAQ,cAAc,IAAI,QAAQ,YAAY,CAAC;AAAA,IAAA;AAAA,IAE7F,aACE,sBAAA,cAAA,OAAA,EAAI,WAAW,QAAQ,YAAY,EACjC,GAAA,OAAO,cAAc,gDAAa,MAAK,EAAA,MAAM,MAAM,YAAY,IAAK,SACvE;AAAA,IAED,sBAAA,cAAA,OAAA,EAAI,WAAW,QAAQ,eAAe,KACrC,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,QAAQ,OAAO;AAAA,QAC1B,SAAS,aAAa,EAAE,YAAY,EAAE;AAAA,QACtC,KAAI;AAAA,QACJ,SAAQ;AAAA,MAAA;AAAA,MAEP;AAAA,IAAA,GAEF,WACC,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,QAAQ,SAAS;AAAA,QAC5B,SAAS,EAAE,YAAY,EAAE;AAAA,QACzB,SAAQ;AAAA,MAAA;AAAA,MAEP;AAAA,IAGP,CAAA;AAAA,EAAA,GAED,WACC,sBAAA,cAAC,cAAW,SAAS,SAAS,WAAW,QAAQ,cAAc,GAAG,OAAM,iBACrE,sBAAA,cAAA,MAAA,EAAK,MAAM,MAAM,MAAO,CAAA,CAC3B,CAEJ;AAEJ;AAEa,MAAA,cAAc,MAAM,WAAW,oBAAoB;"}
1
+ {"version":3,"file":"DialogTitle.es.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\";\nimport { IconButton } from \"../../../Button/IconButton\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id: string;\n title: string;\n titleIcon?: React.ReactNode;\n caption?: string;\n onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n}\n\nconst DialogTitleComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { id, title, titleIcon, caption, onClose, ...rest }: Props,\n ref\n) => {\n return (\n <div {...rest} ref={ref} className={classes[\"header\"]}>\n <div\n className={`${classes[\"headline\"]} ${caption ? classes[\"with-caption\"] : classes[\"no-caption\"]}`}\n >\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\n className={classes[\"caption\"]}\n spacing={{ marginLeft: 2 }}\n variant=\"sub-text\"\n >\n {caption}\n </Typography>\n )}\n </div>\n </div>\n {onClose && (\n <IconButton onClick={onClose} className={classes[\"close-button\"]} title=\"close modal\">\n <Icon icon={Icons.Times} />\n </IconButton>\n )}\n </div>\n );\n};\n\nexport const DialogTitle = React.forwardRef(DialogTitleComponent);\n"],"names":[],"mappings":";;;;;AA8BA,MAAM,uBAAwE,CAC5E,EAAE,IAAI,OAAO,WAAW,SAAS,SAAS,GAAG,KAAA,GAC7C,QACG;AACH,SACE,sBAAA,cAAC,SAAK,GAAG,MAAM,KAAU,WAAW,QAAQ,QAAQ,EAAA,GAClD,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,GAAG,QAAQ,UAAU,CAAC,IAAI,UAAU,QAAQ,cAAc,IAAI,QAAQ,YAAY,CAAC;AAAA,IAAA;AAAA,IAE7F,aACC,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,YAAY,EAAA,GACjC,OAAO,cAAc,gDAAa,MAAA,EAAK,MAAM,MAAM,YAAY,IAAK,SACvE;AAAA,IAEF,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,eAAe,KACrC,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,QAAQ,OAAO;AAAA,QAC1B,SAAS,aAAa,EAAE,YAAY,EAAA;AAAA,QACpC,KAAI;AAAA,QACJ,SAAQ;AAAA,MAAA;AAAA,MAEP;AAAA,IAAA,GAEF,WACC,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,QAAQ,SAAS;AAAA,QAC5B,SAAS,EAAE,YAAY,EAAA;AAAA,QACvB,SAAQ;AAAA,MAAA;AAAA,MAEP;AAAA,IAAA,CAGP;AAAA,EAAA,GAED,WACC,sBAAA,cAAC,cAAW,SAAS,SAAS,WAAW,QAAQ,cAAc,GAAG,OAAM,iBACtE,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,MAAA,CAAO,CAC3B,CAEJ;AAEJ;AAEO,MAAM,cAAc,MAAM,WAAW,oBAAoB;"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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_header_7l1Pc{margin:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between}.DialogTitle_header_7l1Pc .DialogTitle_headline_7l1Pc{display:flex;min-width:0}.DialogTitle_header_7l1Pc .DialogTitle_headline_7l1Pc.DialogTitle_with-caption_7l1Pc{align-items:flex-start}.DialogTitle_header_7l1Pc .DialogTitle_headline_7l1Pc.DialogTitle_no-caption_7l1Pc{align-items:center}.DialogTitle_header_7l1Pc .DialogTitle_headline_7l1Pc .DialogTitle_title-wrapper_7l1Pc{min-width:0}.DialogTitle_header_7l1Pc .DialogTitle_headline_7l1Pc .DialogTitle_title_7l1Pc{margin:0;line-height:1;color:var(--modal-title-color);overflow-wrap:break-word}.DialogTitle_header_7l1Pc .DialogTitle_headline_7l1Pc .DialogTitle_title-icon_7l1Pc>[data-icon]{font-size:var(--font-size-big)}.DialogTitle_header_7l1Pc .DialogTitle_caption_7l1Pc{color:var(--color-blue-grey500)}.DialogTitle_header_7l1Pc .DialogTitle_close-button_7l1Pc{flex-shrink:0}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="DialogTitle_header_7l1Pc",t="DialogTitle_headline_7l1Pc",l="DialogTitle_title_7l1Pc",i="DialogTitle_caption_7l1Pc",o={header:e,headline:t,"with-caption":"DialogTitle_with-caption_7l1Pc","no-caption":"DialogTitle_no-caption_7l1Pc","title-wrapper":"DialogTitle_title-wrapper_7l1Pc",title:l,"title-icon":"DialogTitle_title-icon_7l1Pc",caption:i,"close-button":"DialogTitle_close-button_7l1Pc"};exports.caption=i,exports.default=o,exports.header=e,exports.headline=t,exports.title=l;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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_header_SI2V3{margin:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between}.DialogTitle_header_SI2V3 .DialogTitle_headline_SI2V3{display:flex;min-width:0}.DialogTitle_header_SI2V3 .DialogTitle_headline_SI2V3.DialogTitle_with-caption_SI2V3{align-items:flex-start}.DialogTitle_header_SI2V3 .DialogTitle_headline_SI2V3.DialogTitle_no-caption_SI2V3{align-items:center}.DialogTitle_header_SI2V3 .DialogTitle_headline_SI2V3 .DialogTitle_title-wrapper_SI2V3{min-width:0}.DialogTitle_header_SI2V3 .DialogTitle_headline_SI2V3 .DialogTitle_title_SI2V3{margin:0;line-height:1;color:var(--modal-title-color);overflow-wrap:break-word}.DialogTitle_header_SI2V3 .DialogTitle_headline_SI2V3 .DialogTitle_title-icon_SI2V3>[data-icon]{font-size:var(--font-size-big)}.DialogTitle_header_SI2V3 .DialogTitle_caption_SI2V3{color:var(--color-blue-grey500)}.DialogTitle_header_SI2V3 .DialogTitle_close-button_SI2V3{flex-shrink:0}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="DialogTitle_header_SI2V3",t="DialogTitle_headline_SI2V3",i="DialogTitle_title_SI2V3",l="DialogTitle_caption_SI2V3",o={header:e,headline:t,"with-caption":"DialogTitle_with-caption_SI2V3","no-caption":"DialogTitle_no-caption_SI2V3","title-wrapper":"DialogTitle_title-wrapper_SI2V3",title:i,"title-icon":"DialogTitle_title-icon_SI2V3",caption:l,"close-button":"DialogTitle_close-button_SI2V3"};exports.caption=l,exports.default=o,exports.header=e,exports.headline=t,exports.title=i;
3
3
  //# sourceMappingURL=DialogTitle.module.scss.cjs.js.map
@@ -1,18 +1,18 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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_header_7l1Pc{margin:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between}.DialogTitle_header_7l1Pc .DialogTitle_headline_7l1Pc{display:flex;min-width:0}.DialogTitle_header_7l1Pc .DialogTitle_headline_7l1Pc.DialogTitle_with-caption_7l1Pc{align-items:flex-start}.DialogTitle_header_7l1Pc .DialogTitle_headline_7l1Pc.DialogTitle_no-caption_7l1Pc{align-items:center}.DialogTitle_header_7l1Pc .DialogTitle_headline_7l1Pc .DialogTitle_title-wrapper_7l1Pc{min-width:0}.DialogTitle_header_7l1Pc .DialogTitle_headline_7l1Pc .DialogTitle_title_7l1Pc{margin:0;line-height:1;color:var(--modal-title-color);overflow-wrap:break-word}.DialogTitle_header_7l1Pc .DialogTitle_headline_7l1Pc .DialogTitle_title-icon_7l1Pc>[data-icon]{font-size:var(--font-size-big)}.DialogTitle_header_7l1Pc .DialogTitle_caption_7l1Pc{color:var(--color-blue-grey500)}.DialogTitle_header_7l1Pc .DialogTitle_close-button_7l1Pc{flex-shrink:0}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- const header = "DialogTitle_header_7l1Pc";
3
- const headline = "DialogTitle_headline_7l1Pc";
4
- const title = "DialogTitle_title_7l1Pc";
5
- const caption = "DialogTitle_caption_7l1Pc";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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_header_SI2V3{margin:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between}.DialogTitle_header_SI2V3 .DialogTitle_headline_SI2V3{display:flex;min-width:0}.DialogTitle_header_SI2V3 .DialogTitle_headline_SI2V3.DialogTitle_with-caption_SI2V3{align-items:flex-start}.DialogTitle_header_SI2V3 .DialogTitle_headline_SI2V3.DialogTitle_no-caption_SI2V3{align-items:center}.DialogTitle_header_SI2V3 .DialogTitle_headline_SI2V3 .DialogTitle_title-wrapper_SI2V3{min-width:0}.DialogTitle_header_SI2V3 .DialogTitle_headline_SI2V3 .DialogTitle_title_SI2V3{margin:0;line-height:1;color:var(--modal-title-color);overflow-wrap:break-word}.DialogTitle_header_SI2V3 .DialogTitle_headline_SI2V3 .DialogTitle_title-icon_SI2V3>[data-icon]{font-size:var(--font-size-big)}.DialogTitle_header_SI2V3 .DialogTitle_caption_SI2V3{color:var(--color-blue-grey500)}.DialogTitle_header_SI2V3 .DialogTitle_close-button_SI2V3{flex-shrink:0}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ const header = "DialogTitle_header_SI2V3";
3
+ const headline = "DialogTitle_headline_SI2V3";
4
+ const title = "DialogTitle_title_SI2V3";
5
+ const caption = "DialogTitle_caption_SI2V3";
6
6
  const classes = {
7
7
  header,
8
8
  headline,
9
- "with-caption": "DialogTitle_with-caption_7l1Pc",
10
- "no-caption": "DialogTitle_no-caption_7l1Pc",
11
- "title-wrapper": "DialogTitle_title-wrapper_7l1Pc",
9
+ "with-caption": "DialogTitle_with-caption_SI2V3",
10
+ "no-caption": "DialogTitle_no-caption_SI2V3",
11
+ "title-wrapper": "DialogTitle_title-wrapper_SI2V3",
12
12
  title,
13
- "title-icon": "DialogTitle_title-icon_7l1Pc",
13
+ "title-icon": "DialogTitle_title-icon_SI2V3",
14
14
  caption,
15
- "close-button": "DialogTitle_close-button_7l1Pc"
15
+ "close-button": "DialogTitle_close-button_SI2V3"
16
16
  };
17
17
  export {
18
18
  caption,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),a=require("../../Dialog/Dialog.cjs.js"),o=require("../../../Typography/Typography.cjs.js"),n=e.forwardRef((({open:n,onKeepEditing:t,onDiscardChanges:i,discardChangesButtonLabel:r,keepEditingButtonLabel:c,contentLabel:l,titleLabel:s,cancelAction:g,...p},d)=>e.createElement(a.Dialog,{...p,ref:d,open:n,title:s,onClose:t,cancelAction:g,primaryAction:{label:r,onClick:i},secondaryAction:{label:c,onClick:t},disableEscapeKeyDown:!1},e.createElement(o.Typography,{variant:"body",spacing:{margin:0}},l))));exports.DiscardChangesDialog=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),a=require("../../Dialog/Dialog.cjs.js"),o=require("../../../Typography/Typography.cjs.js"),n=e.forwardRef(({open:n,onKeepEditing:t,onDiscardChanges:i,discardChangesButtonLabel:r,keepEditingButtonLabel:c,contentLabel:l,titleLabel:s,cancelAction:g,...p},d)=>e.createElement(a.Dialog,{...p,ref:d,open:n,title:s,onClose:t,cancelAction:g,primaryAction:{label:r,onClick:i},secondaryAction:{label:c,onClick:t},disableEscapeKeyDown:!1},e.createElement(o.Typography,{variant:"body",spacing:{margin:0}},l)));exports.DiscardChangesDialog=n;
2
2
  //# sourceMappingURL=DiscardChangesDialog.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DiscardChangesDialog.cjs.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\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n [dataAttribute: DataAttributeKey]: any;\n\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":["DiscardChangesDialog","React","forwardRef","open","onKeepEditing","onDiscardChanges","discardChangesButtonLabel","keepEditingButtonLabel","contentLabel","titleLabel","cancelAction","rest","ref","createElement","Dialog","title","onClose","primaryAction","label","onClick","secondaryAction","disableEscapeKeyDown","Typography","variant","spacing","margin"],"mappings":"oMA4EaA,EAAuBC,EAAMC,YAvC6C,EAEnFC,OACAC,gBACAC,mBACAC,4BACAC,yBACAC,eACAC,aACAC,kBACGC,GAELC,IAGEX,EAAAY,cAACC,EAAAA,OAAA,IACKH,EACJC,MACAT,OACAY,MAAON,EACPO,QAASZ,EACTM,eACAO,cAAe,CACbC,MAAOZ,EACPa,QAASd,GAEXe,gBAAiB,CACfF,MAAOX,EACPY,QAASf,GAEXiB,sBAAsB,GAEtBpB,EAAAY,cAACS,cAAWC,QAAQ,OAAOC,QAAS,CAAEC,OAAQ,IAC3CjB"}
1
+ {"version":3,"file":"DiscardChangesDialog.cjs.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\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n [dataAttribute: DataAttributeKey]: any;\n\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":["DiscardChangesDialog","React","forwardRef","open","onKeepEditing","onDiscardChanges","discardChangesButtonLabel","keepEditingButtonLabel","contentLabel","titleLabel","cancelAction","rest","ref","createElement","Dialog","title","onClose","primaryAction","label","onClick","secondaryAction","disableEscapeKeyDown","Typography","variant","spacing","margin"],"mappings":"oMA4EaA,EAAuBC,EAAMC,WAvC6C,EAEnFC,OACAC,gBACAC,mBACAC,4BACAC,yBACAC,eACAC,aACAC,kBACGC,GAELC,IAGEX,EAAAY,cAACC,EAAAA,OAAA,IACKH,EACJC,MACAT,OACAY,MAAON,EACPO,QAASZ,EACTM,eACAO,cAAe,CACbC,MAAOZ,EACPa,QAASd,GAEXe,gBAAiB,CACfF,MAAOX,EACPY,QAASf,GAEXiB,sBAAsB,GAEtBpB,EAAAY,cAACS,cAAWC,QAAQ,OAAOC,QAAS,CAAEC,OAAQ,IAC3CjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"DiscardChangesDialog.es.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\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n [dataAttribute: DataAttributeKey]: any;\n\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":[],"mappings":";;;AAqCA,MAAM,gCAAiF,CACrF;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,QACG;AAED,SAAA,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,MACA,OAAO;AAAA,MACP,SAAS;AAAA,MACT;AAAA,MACA,eAAe;AAAA,QACb,OAAO;AAAA,QACP,SAAS;AAAA,MACX;AAAA,MACA,iBAAiB;AAAA,QACf,OAAO;AAAA,QACP,SAAS;AAAA,MACX;AAAA,MACA,sBAAsB;AAAA,IAAA;AAAA,IAEtB,sBAAA,cAAC,cAAW,SAAQ,QAAO,SAAS,EAAE,QAAQ,EAAE,EAAA,GAC7C,YACH;AAAA,EACF;AAEJ;AAEa,MAAA,uBAAuB,MAAM,WAAW,6BAA6B;"}
1
+ {"version":3,"file":"DiscardChangesDialog.es.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\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n [dataAttribute: DataAttributeKey]: any;\n\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":[],"mappings":";;;AAqCA,MAAM,gCAAiF,CACrF;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,QACG;AACH,SACE,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,MACA,OAAO;AAAA,MACP,SAAS;AAAA,MACT;AAAA,MACA,eAAe;AAAA,QACb,OAAO;AAAA,QACP,SAAS;AAAA,MAAA;AAAA,MAEX,iBAAiB;AAAA,QACf,OAAO;AAAA,QACP,SAAS;AAAA,MAAA;AAAA,MAEX,sBAAsB;AAAA,IAAA;AAAA,IAEtB,sBAAA,cAAC,cAAW,SAAQ,QAAO,SAAS,EAAE,QAAQ,EAAA,EAAE,GAC7C,YACH;AAAA,EAAA;AAGN;AAEO,MAAM,uBAAuB,MAAM,WAAW,6BAA6B;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DiscardChangesModal.cjs.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":["id","children","headerProps","discardChangedDialogProps","modalRef","dialogRef","onClose","hasUnsavedChanges","rest","openDiscardChangesDialog","setOpenDiscardChangesDialog","useState","onCloseWrapper","React","createElement","Fragment","Modal","ref","ModalHeader","BaseModalHeader","DiscardChangesDialog","open","onKeepEditing","onDiscardChanges"],"mappings":"iTAoCmC,EACjCA,KACAC,WACAC,cACAC,4BACAC,WACAC,YACAC,UACAC,uBACGC,MAEH,MAAOC,EAA0BC,GAA+BC,EAAAA,UAAS,GAEnEC,EAAiB,IACrBL,IAAsBG,GAA4B,GAAQJ,IAY1D,OAAAO,EAAAC,cAACC,EAAAA,cACEF,EAAAC,cAAAE,EAAAA,UAAA,CAAMhB,KAAQiB,IAAKb,EAAUE,QAASM,KAAoBJ,mBACxDU,EAAaC,gBAAA,IAAGjB,EAAaF,GAAI,GAAGA,UAAYM,QAASM,IACzDX,GAEHY,EAAAC,cAACM,EAAAA,qBAAA,IACKjB,EACJc,IAAKZ,EACLgB,KAAMZ,EACNa,cAnBsB,KAC1BZ,GAA4B,EAAK,EAmB7Ba,iBAhByB,KAC7Bb,GAA4B,GACpBJ,GAAA,IAgBR"}
1
+ {"version":3,"file":"DiscardChangesModal.cjs.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":["id","children","headerProps","discardChangedDialogProps","modalRef","dialogRef","onClose","hasUnsavedChanges","rest","openDiscardChangesDialog","setOpenDiscardChangesDialog","useState","onCloseWrapper","React","createElement","Fragment","Modal","ref","ModalHeader","DiscardChangesDialog","open","onKeepEditing","onDiscardChanges"],"mappings":"iTAoCmC,EACjCA,KACAC,WACAC,cACAC,4BACAC,WACAC,YACAC,UACAC,uBACGC,MAEH,MAAOC,EAA0BC,GAA+BC,EAAAA,UAAS,GAEnEC,EAAiB,IACrBL,IAAsBG,GAA4B,GAAQJ,IAW5D,OACEO,EAAAC,cAACC,EAAAA,cACCF,EAAAC,cAACE,EAAAA,UAAA,CAAMhB,KAAQiB,IAAKb,EAAUE,QAASM,KAAoBJ,mBACxDU,EAAAA,gBAAA,IAAgBhB,EAAaF,GAAI,GAAGA,UAAYM,QAASM,IACzDX,GAEHY,EAAAC,cAACK,EAAAA,qBAAA,IACKhB,EACJc,IAAKZ,EACLe,KAAMX,EACNY,cAnBsB,KAC1BX,GAA4B,IAmBxBY,iBAhByB,KAC7BZ,GAA4B,GAC5BJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"DiscardChangesModal.es.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":["Modal","ModalHeader"],"mappings":";;;;AAoCO,MAAM,sBAAsB,CAAC;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAa;AACX,QAAM,CAAC,0BAA0B,2BAA2B,IAAI,SAAS,KAAK;AAE9E,QAAM,iBAAiB,MACrB,kBAAA,IAAsB,4BAA4B,IAAI,IAAI,QAAQ;AAEpE,QAAM,sBAAsB,MAAM;AAChC,gCAA4B,KAAK;AAAA,EACnC;AAEA,QAAM,yBAAyB,MAAM;AACnC,gCAA4B,KAAK;AACzB,YAAA;AAAA,EACV;AAGE,SAAA,sBAAA,cAAC,gBACE,sBAAA,cAAAA,WAAA,EAAM,IAAQ,KAAK,UAAU,SAAS,gBAAiB,GAAG,KAAA,uCACxDC,iBAAa,EAAA,GAAG,aAAa,IAAI,GAAG,EAAE,UAAU,SAAS,eAAgB,CAAA,GACzE,QACH,GACA,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ,KAAK;AAAA,MACL,MAAM;AAAA,MACN,eAAe;AAAA,MACf,kBAAkB;AAAA,IAAA;AAAA,EAAA,CAEtB;AAEJ;"}
1
+ {"version":3,"file":"DiscardChangesModal.es.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":["Modal","ModalHeader"],"mappings":";;;;AAoCO,MAAM,sBAAsB,CAAC;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAa;AACX,QAAM,CAAC,0BAA0B,2BAA2B,IAAI,SAAS,KAAK;AAE9E,QAAM,iBAAiB,MACrB,kBAAA,IAAsB,4BAA4B,IAAI,IAAI,QAAA;AAE5D,QAAM,sBAAsB,MAAM;AAChC,gCAA4B,KAAK;AAAA,EACnC;AAEA,QAAM,yBAAyB,MAAM;AACnC,gCAA4B,KAAK;AACjC,YAAA;AAAA,EACF;AAEA,SACE,sBAAA,cAAC,gBACC,sBAAA,cAACA,WAAA,EAAM,IAAQ,KAAK,UAAU,SAAS,gBAAiB,GAAG,KAAA,uCACxDC,iBAAA,EAAa,GAAG,aAAa,IAAI,GAAG,EAAE,UAAU,SAAS,eAAA,CAAgB,GACzE,QACH,GACA,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ,KAAK;AAAA,MACL,MAAM;AAAA,MACN,eAAe;AAAA,MACf,kBAAkB;AAAA,IAAA;AAAA,EAAA,CAEtB;AAEJ;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./NotificationService.cjs.js"),a=require("../../../util/helper.cjs.js"),s=require("../Alert/useAlert.cjs.js"),i={notifications:[]},r=({translations:i={},dispatchFn:r})=>{const{enqueueErrorAlert:n,enqueueSuccessAlert:d}=s.useAlert(),{state:{notifications:c}}=o(),l=a.deepMerge(t.defaultTranslations,i),u=e=>{if(e.message)return e.message;switch(e.status){case 500:default:return l.messages.general;case 400:return l.messages.badRequest;case 401:return l.messages.unauthorized;case 403:return l.messages.forbidden;case 404:return l.messages.notFound;case 502:case 503:return l.messages.unavailable;case 504:return l.messages.timeout}};return e.useEffect((()=>{c.forEach((e=>{e.status&&e.handled&&(401===e.status||403===e.status)?r({type:"remove",payload:{id:e.id}}):e.status&&!e.handled&&"error"===e.type?(n({title:e.title??l.general.error,content:u(e),onClose:()=>r({type:"remove",payload:{id:e.id}})}),r({type:"handled",payload:{id:e.id,handled:!0}})):e.title&&!e.handled&&"success"===e.type&&(d({title:e.title??l.general.success,content:e.message,onClose:()=>r({type:"remove",payload:{id:e.id}})}),r({type:"handled",payload:{id:e.id,handled:!0}}))}))}),[c.length]),null},n=e.createContext({state:i,dispatch:()=>{}}),o=()=>{const t=e.useContext(n),a=e.useCallback((e=>{t.dispatch({type:"add",payload:e})}),[t]),s=e.useCallback((e=>{t.dispatch({type:"remove",payload:{id:e}})}),[t]),i=e.useCallback((()=>{t.dispatch({type:"reset"})}),[t]);return{state:t.state,addNotification:a,removeNotification:s,resetNotifications:i}},d=(e,t)=>{switch(t.type){case"add":return{...e,notifications:[...e.notifications,{...t.payload,id:a.generateID(),handled:!1}]};case"remove":return{...e,notifications:e.notifications.filter((e=>{var a;return e.id!==(null==(a=t.payload)?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.id)?{...e,handled:!0}:e}))};case"reset":return{...e,notifications:[]};default:return e}};exports.NotificationContext=n,exports.NotificationHandler=r,exports.NotificationProvider=({children:t,translations:a})=>{const[s,o]=e.useReducer(d,i);return e.createElement(n.Provider,{value:{state:s,dispatch:o}},t,e.createElement(r,{translations:a,dispatchFn:o}))},exports.notificationReducer=d,exports.useNotificationContext=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./NotificationService.cjs.js"),a=require("../../../util/helper.cjs.js"),s=require("../Alert/useAlert.cjs.js"),i={notifications:[]},r=({translations:i={},dispatchFn:r})=>{const{enqueueErrorAlert:n,enqueueSuccessAlert:d}=s.useAlert(),{state:{notifications:c}}=o(),l=a.deepMerge(t.defaultTranslations,i),u=e=>{if(e.message)return e.message;switch(e.status){case 500:default:return l.messages.general;case 400:return l.messages.badRequest;case 401:return l.messages.unauthorized;case 403:return l.messages.forbidden;case 404:return l.messages.notFound;case 502:case 503:return l.messages.unavailable;case 504:return l.messages.timeout}};return e.useEffect(()=>{c.forEach(e=>{e.status&&e.handled&&(401===e.status||403===e.status)?r({type:"remove",payload:{id:e.id}}):e.status&&!e.handled&&"error"===e.type?(n({title:e.title??l.general.error,content:u(e),onClose:()=>r({type:"remove",payload:{id:e.id}})}),r({type:"handled",payload:{id:e.id,handled:!0}})):e.title&&!e.handled&&"success"===e.type&&(d({title:e.title??l.general.success,content:e.message,onClose:()=>r({type:"remove",payload:{id:e.id}})}),r({type:"handled",payload:{id:e.id,handled:!0}}))})},[c.length]),null},n=e.createContext({state:i,dispatch:()=>{}}),o=()=>{const t=e.useContext(n),a=e.useCallback(e=>{t.dispatch({type:"add",payload:e})},[t]),s=e.useCallback(e=>{t.dispatch({type:"remove",payload:{id:e}})},[t]),i=e.useCallback(()=>{t.dispatch({type:"reset"})},[t]);return{state:t.state,addNotification:a,removeNotification:s,resetNotifications:i}},d=(e,t)=>{switch(t.type){case"add":return{...e,notifications:[...e.notifications,{...t.payload,id:a.generateID(),handled:!1}]};case"remove":return{...e,notifications:e.notifications.filter(e=>{var a;return e.id!==(null==(a=t.payload)?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.id)?{...e,handled:!0}:e})};case"reset":return{...e,notifications:[]};default:return e}};exports.NotificationContext=n,exports.NotificationHandler=r,exports.NotificationProvider=({children:t,translations:a})=>{const[s,o]=e.useReducer(d,i);return e.createElement(n.Provider,{value:{state:s,dispatch:o}},t,e.createElement(r,{translations:a,dispatchFn:o}))},exports.notificationReducer=d,exports.useNotificationContext=o;
2
2
  //# sourceMappingURL=NotificationContext.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationContext.cjs.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 { deepMerge, generateID } from \"../../../util/helper\";\nimport { DeepPartial } from \"../../../interfaces\";\nimport { useAlert } from \"../Alert/useAlert\";\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 { enqueueErrorAlert, enqueueSuccessAlert } = useAlert();\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 enqueueErrorAlert({\n title: notification.title ?? mergedTranslations.general.error,\n content: determineNotificationMessage(notification as Notification<ErrorNotification>),\n onClose: () => dispatchFn({ type: \"remove\", payload: { id: notification.id } })\n });\n dispatchFn({ type: \"handled\", payload: { id: notification.id, handled: true } });\n } else if (notification.title && !notification.handled && notification.type === \"success\") {\n enqueueSuccessAlert({\n title: notification.title ?? mergedTranslations.general.success,\n content: notification.message,\n onClose: () => dispatchFn({ type: \"remove\", payload: { id: notification.id } })\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","enqueueErrorAlert","enqueueSuccessAlert","useAlert","state","useNotificationContext","mergedTranslations","deepMerge","defaultTranslations","determineNotificationMessage","notification","message","status","messages","general","badRequest","unauthorized","forbidden","notFound","unavailable","timeout","useEffect","forEach","handled","type","payload","id","title","error","content","onClose","success","length","NotificationContext","createContext","dispatch","ctx","useContext","addNotification","useCallback","removeNotification","resetNotifications","notificationReducer","action","generateID","filter","_a","map","children","useReducer","React","createElement","Provider","value"],"mappings":"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"}
1
+ {"version":3,"file":"NotificationContext.cjs.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 { deepMerge, generateID } from \"../../../util/helper\";\nimport { DeepPartial } from \"../../../interfaces\";\nimport { useAlert } from \"../Alert/useAlert\";\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 { enqueueErrorAlert, enqueueSuccessAlert } = useAlert();\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 enqueueErrorAlert({\n title: notification.title ?? mergedTranslations.general.error,\n content: determineNotificationMessage(notification as Notification<ErrorNotification>),\n onClose: () => dispatchFn({ type: \"remove\", payload: { id: notification.id } })\n });\n dispatchFn({ type: \"handled\", payload: { id: notification.id, handled: true } });\n } else if (notification.title && !notification.handled && notification.type === \"success\") {\n enqueueSuccessAlert({\n title: notification.title ?? mergedTranslations.general.success,\n content: notification.message,\n onClose: () => dispatchFn({ type: \"remove\", payload: { id: notification.id } })\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","enqueueErrorAlert","enqueueSuccessAlert","useAlert","state","useNotificationContext","mergedTranslations","deepMerge","defaultTranslations","determineNotificationMessage","notification","message","status","messages","general","badRequest","unauthorized","forbidden","notFound","unavailable","timeout","useEffect","forEach","handled","type","payload","id","title","error","content","onClose","success","length","NotificationContext","createContext","dispatch","ctx","useContext","addNotification","useCallback","removeNotification","resetNotifications","notificationReducer","action","generateID","filter","_a","map","children","useReducer","React","createElement","Provider","value"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import React, { useReducer, createContext, useContext, useCallback, useEffect } from "react";
1
+ import React, { useReducer, useContext, useCallback, createContext, useEffect } from "react";
2
2
  import { defaultTranslations } from "./NotificationService.es.js";
3
3
  import { generateID, deepMerge } from "../../../util/helper.es.js";
4
4
  import { useAlert } from "../Alert/useAlert.es.js";
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationContext.es.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 { deepMerge, generateID } from \"../../../util/helper\";\nimport { DeepPartial } from \"../../../interfaces\";\nimport { useAlert } from \"../Alert/useAlert\";\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 { enqueueErrorAlert, enqueueSuccessAlert } = useAlert();\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 enqueueErrorAlert({\n title: notification.title ?? mergedTranslations.general.error,\n content: determineNotificationMessage(notification as Notification<ErrorNotification>),\n onClose: () => dispatchFn({ type: \"remove\", payload: { id: notification.id } })\n });\n dispatchFn({ type: \"handled\", payload: { id: notification.id, handled: true } });\n } else if (notification.title && !notification.handled && notification.type === \"success\") {\n enqueueSuccessAlert({\n title: notification.title ?? mergedTranslations.general.success,\n content: notification.message,\n onClose: () => dispatchFn({ type: \"remove\", payload: { id: notification.id } })\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":[],"mappings":"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"}
1
+ {"version":3,"file":"NotificationContext.es.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 { deepMerge, generateID } from \"../../../util/helper\";\nimport { DeepPartial } from \"../../../interfaces\";\nimport { useAlert } from \"../Alert/useAlert\";\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 { enqueueErrorAlert, enqueueSuccessAlert } = useAlert();\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 enqueueErrorAlert({\n title: notification.title ?? mergedTranslations.general.error,\n content: determineNotificationMessage(notification as Notification<ErrorNotification>),\n onClose: () => dispatchFn({ type: \"remove\", payload: { id: notification.id } })\n });\n dispatchFn({ type: \"handled\", payload: { id: notification.id, handled: true } });\n } else if (notification.title && !notification.handled && notification.type === \"success\") {\n enqueueSuccessAlert({\n title: notification.title ?? mergedTranslations.general.success,\n content: notification.message,\n onClose: () => dispatchFn({ type: \"remove\", payload: { id: notification.id } })\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":[],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationService.es.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":[],"mappings":"AAkBO,MAAM,sBAAoC;AAAA,EAC/C,SAAS;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AAAA,EACA,UAAU;AAAA,IACR,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,UAAU;AAAA,IACV,SAAS;AAAA,IACT,aAAa;AAAA,EAAA;AAEjB;"}
1
+ {"version":3,"file":"NotificationService.es.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":[],"mappings":"AAkBO,MAAM,sBAAoC;AAAA,EAC/C,SAAS;AAAA,IACP,OAAO;AAAA,IACP,SAAS;AAAA,EAAA;AAAA,EAEX,UAAU;AAAA,IACR,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,UAAU;AAAA,IACV,SAAS;AAAA,IACT,aAAa;AAAA,EAAA;AAEjB;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./SideSheet.module.scss.cjs.js"),a=require("../../Button/IconButton.cjs.js"),n=require("../../Icon/Icon.cjs.js"),l=require("../BaseModal/BaseModal.cjs.js"),s=e.forwardRef((({children:s,id:o,open:r,handleButtonProps:d,...c},i)=>{const[u,m]=e.useState("hide"),[h,f]=e.useState(!1),p=e.useRef(null),S=(null==d?void 0:d.title)??"Side sheet handle",E={width:"1.5rem",height:"3.5rem",borderTopLeftRadius:"4px",borderBottomLeftRadius:"4px"},B=e.useCallback((e=>{e.target===p.current&&(m((e=>e?"":"hide")),!r&&h&&f(!1))}),[r]);return e.useEffect((()=>{r&&f(r)}),[r]),e.createElement(e.Fragment,null,d&&!r&&e.createElement("div",{className:t.default["collapsed-sheet"]},e.createElement("div",{className:t.default.handle},e.createElement(a.IconButton,{style:E,className:t.default["handle-button"],onClick:d.onOpen,title:S},e.createElement(n.Icon,{size:"0.9rem",icon:n.Icons.SideSheetHandle})))),e.createElement(l.BaseModal,{...c,id:o,open:h,className:`${t.default["slide-in-modal"]} ${r?t.default.visible:""} ${r?"":t.default[u]}`,containerProps:{className:t.default.container},hideBackdrop:!0,onTransitionEnd:B,ref:i??p},d&&e.createElement("div",{className:t.default.handle},e.createElement(a.IconButton,{style:E,title:S,onClick:d.onClose},e.createElement(n.Icon,{size:"0.9rem",icon:n.Icons.SideSheetHandle}))),s))}));exports.SideSheet=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./SideSheet.module.scss.cjs.js"),a=require("../../Button/IconButton.cjs.js"),n=require("../../Icon/Icon.cjs.js"),l=require("../BaseModal/BaseModal.cjs.js"),s=e.forwardRef(({children:s,id:o,open:r,handleButtonProps:d,...c},i)=>{const[u,m]=e.useState("hide"),[h,f]=e.useState(!1),p=e.useRef(null),S=(null==d?void 0:d.title)??"Side sheet handle",E={width:"1.5rem",height:"3.5rem",borderTopLeftRadius:"4px",borderBottomLeftRadius:"4px"},B=e.useCallback(e=>{e.target===p.current&&(m(e=>e?"":"hide"),!r&&h&&f(!1))},[r]);return e.useEffect(()=>{r&&f(r)},[r]),e.createElement(e.Fragment,null,d&&!r&&e.createElement("div",{className:t.default["collapsed-sheet"]},e.createElement("div",{className:t.default.handle},e.createElement(a.IconButton,{style:E,className:t.default["handle-button"],onClick:d.onOpen,title:S},e.createElement(n.Icon,{size:"0.9rem",icon:n.Icons.SideSheetHandle})))),e.createElement(l.BaseModal,{...c,id:o,open:h,className:`${t.default["slide-in-modal"]} ${r?t.default.visible:""} ${r?"":t.default[u]}`,containerProps:{className:t.default.container},hideBackdrop:!0,onTransitionEnd:B,ref:i??p},d&&e.createElement("div",{className:t.default.handle},e.createElement(a.IconButton,{style:E,title:S,onClick:d.onClose},e.createElement(n.Icon,{size:"0.9rem",icon:n.Icons.SideSheetHandle}))),s))});exports.SideSheet=s;
2
2
  //# sourceMappingURL=SideSheet.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SideSheet.cjs.js","sources":["../../../../src/components/Notifications/SideSheet/SideSheet.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 \"./SideSheet.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\n\nexport interface Props extends Omit<ModalProps, \"hideBackdrop\" | \"disableBackdrop\"> {\n handleButtonProps?: {\n onOpen: () => void;\n onClose: () => void;\n title?: string;\n };\n}\n\nconst SideSheetComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, id, open, handleButtonProps, ...rest }: Props,\n ref\n) => {\n const [classHideOnTransition, setClassHideOnTransition] = useState<string>(\"hide\");\n const [controlledOpen, setControlledOpen] = useState(false);\n const containerRef = useRef(null);\n const handleTitle = handleButtonProps?.title ?? \"Side sheet handle\";\n const handleButtonStyle = {\n width: \"1.5rem\",\n height: \"3.5rem\",\n borderTopLeftRadius: \"4px\",\n borderBottomLeftRadius: \"4px\"\n };\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 <>\n {handleButtonProps && !open && (\n <div className={classes[\"collapsed-sheet\"]}>\n <div className={classes[\"handle\"]}>\n <IconButton\n style={handleButtonStyle}\n className={classes[\"handle-button\"]}\n onClick={handleButtonProps.onOpen}\n title={handleTitle}\n >\n <Icon size=\"0.9rem\" icon={Icons.SideSheetHandle} />\n </IconButton>\n </div>\n </div>\n )}\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 hideBackdrop={true}\n onTransitionEnd={onTransitionEnd}\n ref={ref ?? containerRef}\n >\n {handleButtonProps && (\n <div className={classes[\"handle\"]}>\n <IconButton\n style={handleButtonStyle}\n title={handleTitle}\n onClick={handleButtonProps.onClose}\n >\n <Icon size=\"0.9rem\" icon={Icons.SideSheetHandle} />\n </IconButton>\n </div>\n )}\n {children}\n </Modal>\n </>\n );\n};\n\nexport const SideSheet = React.forwardRef(SideSheetComponent);\n"],"names":["SideSheet","React","forwardRef","children","id","open","handleButtonProps","rest","ref","classHideOnTransition","setClassHideOnTransition","useState","controlledOpen","setControlledOpen","containerRef","useRef","handleTitle","title","handleButtonStyle","width","height","borderTopLeftRadius","borderBottomLeftRadius","onTransitionEnd","useCallback","e","target","current","prev","useEffect","createElement","Fragment","className","classes","default","IconButton","style","onClick","onOpen","Icon","size","icon","Icons","SideSheetHandle","Modal","BaseModal","containerProps","hideBackdrop","onClose"],"mappings":"gRAiHaA,EAAYC,EAAMC,YA5E6C,EACxEC,WAAUC,KAAIC,OAAMC,uBAAsBC,GAC5CC,KAEA,MAAOC,EAAuBC,GAA4BC,EAAAA,SAAiB,SACpEC,EAAgBC,GAAqBF,EAAAA,UAAS,GAC/CG,EAAeC,SAAO,MACtBC,SAAcV,WAAmBW,QAAS,oBAC1CC,EAAoB,CACxBC,MAAO,SACPC,OAAQ,SACRC,oBAAqB,MACrBC,uBAAwB,OAGpBC,EAA0DC,EAAAA,aACzDC,IACCA,EAAEC,SAAWZ,EAAaa,UACHjB,GAAAkB,GAASA,EAAO,GAAK,UACzCvB,GAAQO,GACXC,GAAkB,GACpB,GAGJ,CAACR,IAOH,OAJAwB,EAAAA,WAAU,KACRxB,GAAQQ,EAAkBR,EAAI,GAC7B,CAACA,IAICJ,EAAA6B,cAAA7B,EAAA8B,SAAA,KAAAzB,IAAsBD,mBACpB,MAAI,CAAA2B,UAAWC,EAAQC,QAAA,oBACrBjC,EAAA6B,cAAA,MAAA,CAAIE,UAAWC,UAAgB,QAC9BhC,EAAA6B,cAACK,EAAAA,WAAA,CACCC,MAAOlB,EACPc,UAAWC,UAAQ,iBACnBI,QAAS/B,EAAkBgC,OAC3BrB,MAAOD,mBAENuB,EAAAA,KAAK,CAAAC,KAAK,SAASC,KAAMC,QAAMC,qBAKxC1C,EAAA6B,cAACc,EAAAC,UAAA,IACKtC,EACJH,KACAC,KAAMO,EACNoB,UAAW,GAAGC,UAAQ,qBAAqB5B,EAAO4B,UAAiB,QAAI,MACpE5B,EAAwC,GAAjC4B,EAAQC,QAAAzB,KAElBqC,eAAgB,CAAEd,UAAWC,EAAAC,QAAmB,WAChDa,cAAc,EACdxB,kBACAf,IAAKA,GAAOM,GAEXR,GACEL,EAAA6B,cAAA,MAAA,CAAIE,UAAWC,EAAAA,QAAgB,QAC9BhC,EAAA6B,cAACK,EAAAA,WAAA,CACCC,MAAOlB,EACPD,MAAOD,EACPqB,QAAS/B,EAAkB0C,yBAE1BT,EAAAA,KAAK,CAAAC,KAAK,SAASC,KAAMC,QAAMC,oBAIrCxC,GAEL"}
1
+ {"version":3,"file":"SideSheet.cjs.js","sources":["../../../../src/components/Notifications/SideSheet/SideSheet.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 \"./SideSheet.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\n\nexport interface Props extends Omit<ModalProps, \"hideBackdrop\" | \"disableBackdrop\"> {\n handleButtonProps?: {\n onOpen: () => void;\n onClose: () => void;\n title?: string;\n };\n}\n\nconst SideSheetComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, id, open, handleButtonProps, ...rest }: Props,\n ref\n) => {\n const [classHideOnTransition, setClassHideOnTransition] = useState<string>(\"hide\");\n const [controlledOpen, setControlledOpen] = useState(false);\n const containerRef = useRef(null);\n const handleTitle = handleButtonProps?.title ?? \"Side sheet handle\";\n const handleButtonStyle = {\n width: \"1.5rem\",\n height: \"3.5rem\",\n borderTopLeftRadius: \"4px\",\n borderBottomLeftRadius: \"4px\"\n };\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 <>\n {handleButtonProps && !open && (\n <div className={classes[\"collapsed-sheet\"]}>\n <div className={classes[\"handle\"]}>\n <IconButton\n style={handleButtonStyle}\n className={classes[\"handle-button\"]}\n onClick={handleButtonProps.onOpen}\n title={handleTitle}\n >\n <Icon size=\"0.9rem\" icon={Icons.SideSheetHandle} />\n </IconButton>\n </div>\n </div>\n )}\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 hideBackdrop={true}\n onTransitionEnd={onTransitionEnd}\n ref={ref ?? containerRef}\n >\n {handleButtonProps && (\n <div className={classes[\"handle\"]}>\n <IconButton\n style={handleButtonStyle}\n title={handleTitle}\n onClick={handleButtonProps.onClose}\n >\n <Icon size=\"0.9rem\" icon={Icons.SideSheetHandle} />\n </IconButton>\n </div>\n )}\n {children}\n </Modal>\n </>\n );\n};\n\nexport const SideSheet = React.forwardRef(SideSheetComponent);\n"],"names":["SideSheet","React","forwardRef","children","id","open","handleButtonProps","rest","ref","classHideOnTransition","setClassHideOnTransition","useState","controlledOpen","setControlledOpen","containerRef","useRef","handleTitle","title","handleButtonStyle","width","height","borderTopLeftRadius","borderBottomLeftRadius","onTransitionEnd","useCallback","e","target","current","prev","useEffect","createElement","Fragment","className","classes","IconButton","style","onClick","onOpen","Icon","size","icon","Icons","SideSheetHandle","Modal","containerProps","hideBackdrop","onClose"],"mappings":"gRAiHaA,EAAYC,EAAMC,WA5E6C,EACxEC,WAAUC,KAAIC,OAAMC,uBAAsBC,GAC5CC,KAEA,MAAOC,EAAuBC,GAA4BC,EAAAA,SAAiB,SACpEC,EAAgBC,GAAqBF,EAAAA,UAAS,GAC/CG,EAAeC,EAAAA,OAAO,MACtBC,SAAcV,WAAmBW,QAAS,oBAC1CC,EAAoB,CACxBC,MAAO,SACPC,OAAQ,SACRC,oBAAqB,MACrBC,uBAAwB,OAGpBC,EAA0DC,EAAAA,YAC9DC,IACMA,EAAEC,SAAWZ,EAAaa,UAC5BjB,EAAyBkB,GAASA,EAAO,GAAK,SACzCvB,GAAQO,GACXC,GAAkB,KAIxB,CAACR,IAOH,OAJAwB,EAAAA,UAAU,KACRxB,GAAQQ,EAAkBR,IACzB,CAACA,IAGFJ,EAAA6B,cAAA7B,EAAA8B,SAAA,KACGzB,IAAsBD,mBACpB,MAAA,CAAI2B,UAAWC,EAAAA,QAAQ,oBACtBhC,EAAA6B,cAAC,MAAA,CAAIE,UAAWC,UAAgB,QAC9BhC,EAAA6B,cAACI,EAAAA,WAAA,CACCC,MAAOjB,EACPc,UAAWC,EAAAA,QAAQ,iBACnBG,QAAS9B,EAAkB+B,OAC3BpB,MAAOD,mBAENsB,EAAAA,KAAA,CAAKC,KAAK,SAASC,KAAMC,EAAAA,MAAMC,qBAKxCzC,EAAA6B,cAACa,EAAAA,UAAA,IACKpC,EACJH,KACAC,KAAMO,EACNoB,UAAW,GAAGC,UAAQ,qBAAqB5B,EAAO4B,UAAiB,QAAI,MACpE5B,EAAwC,GAAjC4B,EAAAA,QAAQxB,KAElBmC,eAAgB,CAAEZ,UAAWC,EAAAA,QAAmB,WAChDY,cAAc,EACdtB,kBACAf,IAAKA,GAAOM,GAEXR,GACCL,EAAA6B,cAAC,MAAA,CAAIE,UAAWC,EAAAA,QAAgB,QAC9BhC,EAAA6B,cAACI,EAAAA,WAAA,CACCC,MAAOjB,EACPD,MAAOD,EACPoB,QAAS9B,EAAkBwC,yBAE1BR,EAAAA,KAAA,CAAKC,KAAK,SAASC,KAAMC,EAAAA,MAAMC,oBAIrCvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SideSheet.es.js","sources":["../../../../src/components/Notifications/SideSheet/SideSheet.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 \"./SideSheet.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\n\nexport interface Props extends Omit<ModalProps, \"hideBackdrop\" | \"disableBackdrop\"> {\n handleButtonProps?: {\n onOpen: () => void;\n onClose: () => void;\n title?: string;\n };\n}\n\nconst SideSheetComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, id, open, handleButtonProps, ...rest }: Props,\n ref\n) => {\n const [classHideOnTransition, setClassHideOnTransition] = useState<string>(\"hide\");\n const [controlledOpen, setControlledOpen] = useState(false);\n const containerRef = useRef(null);\n const handleTitle = handleButtonProps?.title ?? \"Side sheet handle\";\n const handleButtonStyle = {\n width: \"1.5rem\",\n height: \"3.5rem\",\n borderTopLeftRadius: \"4px\",\n borderBottomLeftRadius: \"4px\"\n };\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 <>\n {handleButtonProps && !open && (\n <div className={classes[\"collapsed-sheet\"]}>\n <div className={classes[\"handle\"]}>\n <IconButton\n style={handleButtonStyle}\n className={classes[\"handle-button\"]}\n onClick={handleButtonProps.onOpen}\n title={handleTitle}\n >\n <Icon size=\"0.9rem\" icon={Icons.SideSheetHandle} />\n </IconButton>\n </div>\n </div>\n )}\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 hideBackdrop={true}\n onTransitionEnd={onTransitionEnd}\n ref={ref ?? containerRef}\n >\n {handleButtonProps && (\n <div className={classes[\"handle\"]}>\n <IconButton\n style={handleButtonStyle}\n title={handleTitle}\n onClick={handleButtonProps.onClose}\n >\n <Icon size=\"0.9rem\" icon={Icons.SideSheetHandle} />\n </IconButton>\n </div>\n )}\n {children}\n </Modal>\n </>\n );\n};\n\nexport const SideSheet = React.forwardRef(SideSheetComponent);\n"],"names":["Modal"],"mappings":";;;;;AAqCA,MAAM,qBAAsE,CAC1E,EAAE,UAAU,IAAI,MAAM,mBAAmB,GAAG,KAAK,GACjD,QACG;AACH,QAAM,CAAC,uBAAuB,wBAAwB,IAAI,SAAiB,MAAM;AACjF,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAS,KAAK;AACpD,QAAA,eAAe,OAAO,IAAI;AAC1B,QAAA,eAAc,uDAAmB,UAAS;AAChD,QAAM,oBAAoB;AAAA,IACxB,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,qBAAqB;AAAA,IACrB,wBAAwB;AAAA,EAC1B;AAEA,QAAM,kBAA0D;AAAA,IAC9D,CAAK,MAAA;AACC,UAAA,EAAE,WAAW,aAAa,SAAS;AACZ,iCAAA,CAAA,SAAS,OAAO,KAAK,MAAO;AACjD,YAAA,CAAC,QAAQ,gBAAgB;AAC3B,4BAAkB,KAAK;AAAA,QAAA;AAAA,MACzB;AAAA,IAEJ;AAAA,IACA,CAAC,IAAI;AAAA,EACP;AAEA,YAAU,MAAM;AACd,YAAQ,kBAAkB,IAAI;AAAA,EAAA,GAC7B,CAAC,IAAI,CAAC;AAET,SAEK,sBAAA,cAAA,MAAA,UAAA,MAAA,qBAAqB,CAAC,4CACpB,OAAI,EAAA,WAAW,QAAQ,iBAAiB,KACtC,sBAAA,cAAA,OAAA,EAAI,WAAW,QAAQ,QAAQ,EAC9B,GAAA,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP,WAAW,QAAQ,eAAe;AAAA,MAClC,SAAS,kBAAkB;AAAA,MAC3B,OAAO;AAAA,IAAA;AAAA,wCAEN,MAAK,EAAA,MAAK,UAAS,MAAM,MAAM,gBAAiB,CAAA;AAAA,EAAA,CAErD,CACF,GAEF,sBAAA;AAAA,IAACA;AAAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,MACN,WAAW,GAAG,QAAQ,gBAAgB,CAAC,IAAI,OAAO,QAAQ,SAAS,IAAI,EAAE,IACvE,CAAC,OAAO,QAAQ,qBAAqB,IAAI,EAC3C;AAAA,MACA,gBAAgB,EAAE,WAAW,QAAQ,WAAW,EAAE;AAAA,MAClD,cAAc;AAAA,MACd;AAAA,MACA,KAAK,OAAO;AAAA,IAAA;AAAA,IAEX,qBACE,sBAAA,cAAA,OAAA,EAAI,WAAW,QAAQ,QAAQ,KAC9B,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,OAAO;AAAA,QACP,OAAO;AAAA,QACP,SAAS,kBAAkB;AAAA,MAAA;AAAA,0CAE1B,MAAK,EAAA,MAAK,UAAS,MAAM,MAAM,gBAAiB,CAAA;AAAA,IAAA,CAErD;AAAA,IAED;AAAA,EAAA,CAEL;AAEJ;AAEa,MAAA,YAAY,MAAM,WAAW,kBAAkB;"}
1
+ {"version":3,"file":"SideSheet.es.js","sources":["../../../../src/components/Notifications/SideSheet/SideSheet.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 \"./SideSheet.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\n\nexport interface Props extends Omit<ModalProps, \"hideBackdrop\" | \"disableBackdrop\"> {\n handleButtonProps?: {\n onOpen: () => void;\n onClose: () => void;\n title?: string;\n };\n}\n\nconst SideSheetComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, id, open, handleButtonProps, ...rest }: Props,\n ref\n) => {\n const [classHideOnTransition, setClassHideOnTransition] = useState<string>(\"hide\");\n const [controlledOpen, setControlledOpen] = useState(false);\n const containerRef = useRef(null);\n const handleTitle = handleButtonProps?.title ?? \"Side sheet handle\";\n const handleButtonStyle = {\n width: \"1.5rem\",\n height: \"3.5rem\",\n borderTopLeftRadius: \"4px\",\n borderBottomLeftRadius: \"4px\"\n };\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 <>\n {handleButtonProps && !open && (\n <div className={classes[\"collapsed-sheet\"]}>\n <div className={classes[\"handle\"]}>\n <IconButton\n style={handleButtonStyle}\n className={classes[\"handle-button\"]}\n onClick={handleButtonProps.onOpen}\n title={handleTitle}\n >\n <Icon size=\"0.9rem\" icon={Icons.SideSheetHandle} />\n </IconButton>\n </div>\n </div>\n )}\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 hideBackdrop={true}\n onTransitionEnd={onTransitionEnd}\n ref={ref ?? containerRef}\n >\n {handleButtonProps && (\n <div className={classes[\"handle\"]}>\n <IconButton\n style={handleButtonStyle}\n title={handleTitle}\n onClick={handleButtonProps.onClose}\n >\n <Icon size=\"0.9rem\" icon={Icons.SideSheetHandle} />\n </IconButton>\n </div>\n )}\n {children}\n </Modal>\n </>\n );\n};\n\nexport const SideSheet = React.forwardRef(SideSheetComponent);\n"],"names":["Modal"],"mappings":";;;;;AAqCA,MAAM,qBAAsE,CAC1E,EAAE,UAAU,IAAI,MAAM,mBAAmB,GAAG,KAAA,GAC5C,QACG;AACH,QAAM,CAAC,uBAAuB,wBAAwB,IAAI,SAAiB,MAAM;AACjF,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAS,KAAK;AAC1D,QAAM,eAAe,OAAO,IAAI;AAChC,QAAM,eAAc,uDAAmB,UAAS;AAChD,QAAM,oBAAoB;AAAA,IACxB,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,qBAAqB;AAAA,IACrB,wBAAwB;AAAA,EAAA;AAG1B,QAAM,kBAA0D;AAAA,IAC9D,CAAA,MAAK;AACH,UAAI,EAAE,WAAW,aAAa,SAAS;AACrC,iCAAyB,CAAA,SAAS,OAAO,KAAK,MAAO;AACrD,YAAI,CAAC,QAAQ,gBAAgB;AAC3B,4BAAkB,KAAK;AAAA,QACzB;AAAA,MACF;AAAA,IACF;AAAA,IACA,CAAC,IAAI;AAAA,EAAA;AAGP,YAAU,MAAM;AACd,YAAQ,kBAAkB,IAAI;AAAA,EAChC,GAAG,CAAC,IAAI,CAAC;AAET,SACE,sBAAA,cAAA,MAAA,UAAA,MACG,qBAAqB,CAAC,4CACpB,OAAA,EAAI,WAAW,QAAQ,iBAAiB,KACvC,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,QAAQ,EAAA,GAC9B,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP,WAAW,QAAQ,eAAe;AAAA,MAClC,SAAS,kBAAkB;AAAA,MAC3B,OAAO;AAAA,IAAA;AAAA,wCAEN,MAAA,EAAK,MAAK,UAAS,MAAM,MAAM,gBAAA,CAAiB;AAAA,EAAA,CAErD,CACF,GAEF,sBAAA;AAAA,IAACA;AAAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,MACN,WAAW,GAAG,QAAQ,gBAAgB,CAAC,IAAI,OAAO,QAAQ,SAAS,IAAI,EAAE,IACvE,CAAC,OAAO,QAAQ,qBAAqB,IAAI,EAC3C;AAAA,MACA,gBAAgB,EAAE,WAAW,QAAQ,WAAW,EAAA;AAAA,MAChD,cAAc;AAAA,MACd;AAAA,MACA,KAAK,OAAO;AAAA,IAAA;AAAA,IAEX,qBACC,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,QAAQ,KAC9B,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,OAAO;AAAA,QACP,OAAO;AAAA,QACP,SAAS,kBAAkB;AAAA,MAAA;AAAA,0CAE1B,MAAA,EAAK,MAAK,UAAS,MAAM,MAAM,gBAAA,CAAiB;AAAA,IAAA,CAErD;AAAA,IAED;AAAA,EAAA,CAEL;AAEJ;AAEO,MAAM,YAAY,MAAM,WAAW,kBAAkB;"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.SideSheet_sr-only_7l1Pc{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.SideSheet_hidden_7l1Pc{display:none}.SideSheet_slide-in_7l1Pc{animation:SideSheet_slide-in_7l1Pc .5s forwards}@media (prefers-reduced-motion: reduce){.SideSheet_slide-in_7l1Pc{animation-duration:.1ms}}.SideSheet_slide-out_7l1Pc{animation:SideSheet_slide-out_7l1Pc .5s forwards}@media (prefers-reduced-motion: reduce){.SideSheet_slide-out_7l1Pc{animation-duration:.1ms}}@keyframes SideSheet_slide-in_7l1Pc{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes SideSheet_slide-out_7l1Pc{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\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 */.SideSheet_slide-in-modal_7l1Pc{right:0;left:auto;justify-content:flex-end;min-width:25rem;width:33vw;max-width:40rem;visibility:visible;transform:translate(calc(100% - .5rem));transition-property:transform;transition-duration:.5s;transition-timing-function:ease-in-out}@media (prefers-reduced-motion: reduce){.SideSheet_slide-in-modal_7l1Pc{transition-duration:.1ms}}.SideSheet_slide-in-modal_7l1Pc.SideSheet_hide_7l1Pc{visibility:hidden}.SideSheet_slide-in-modal_7l1Pc.SideSheet_visible_7l1Pc{visibility:visible;transform:translate(0)}.SideSheet_slide-in-modal_7l1Pc.SideSheet_visible_7l1Pc #SideSheet_backdrop-slide_7l1Pc{background-color:transparent}.SideSheet_handle_7l1Pc{position:absolute;top:13.25rem;left:calc(-1.5 * var(--font-size));display:flex;align-items:center;justify-content:center;width:1.5rem;height:2.5rem;padding:.5rem 0;border-top-left-radius:4px;border-bottom-left-radius:4px;background-color:var(--modal-background-color);box-shadow:-4px 4px 5px 0 var(--side-sheet-shadow-color-one),-4px 3px 14px 0 var(--side-sheet-shadow-color-two),-4px 8px 10px 0 var(--side-sheet-shadow-color-two)}.SideSheet_handle-button_7l1Pc{transform:rotateY(180deg)}.SideSheet_collapsed-sheet_7l1Pc{position:absolute;top:0;right:0;width:.5rem;height:100vh;background-color:var(--modal-background-color);box-shadow:0 4px 5px 0 var(--side-sheet-shadow-color-one),0 3px 14px 0 var(--side-sheet-shadow-color-two),0 8px 10px 0 var(--side-sheet-shadow-color-two)}.SideSheet_container_7l1Pc{margin-top:0;width:50rem;height:100%;max-height:unset;border-radius:0;box-shadow:0 4px 5px 0 var(--side-sheet-shadow-color-one),0 3px 14px 0 var(--side-sheet-shadow-color-two),0 8px 10px 0 var(--side-sheet-shadow-color-two)}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="SideSheet_hidden_7l1Pc",d="SideSheet_hide_7l1Pc",i="SideSheet_visible_7l1Pc",l="SideSheet_handle_7l1Pc",t="SideSheet_container_7l1Pc",s={"sr-only":"SideSheet_sr-only_7l1Pc",hidden:e,"slide-in":"SideSheet_slide-in_7l1Pc","slide-out":"SideSheet_slide-out_7l1Pc","slide-in-modal":"SideSheet_slide-in-modal_7l1Pc",hide:d,visible:i,"backdrop-slide":"SideSheet_backdrop-slide_7l1Pc",handle:l,"handle-button":"SideSheet_handle-button_7l1Pc","collapsed-sheet":"SideSheet_collapsed-sheet_7l1Pc",container:t};exports.container=t,exports.default=s,exports.handle=l,exports.hidden=e,exports.hide=d,exports.visible=i;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.SideSheet_sr-only_SI2V3{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.SideSheet_hidden_SI2V3{display:none}.SideSheet_slide-in_SI2V3{animation:SideSheet_slide-in_SI2V3 .5s forwards}@media(prefers-reduced-motion:reduce){.SideSheet_slide-in_SI2V3{animation-duration:.1ms}}.SideSheet_slide-out_SI2V3{animation:SideSheet_slide-out_SI2V3 .5s forwards}@media(prefers-reduced-motion:reduce){.SideSheet_slide-out_SI2V3{animation-duration:.1ms}}@keyframes SideSheet_slide-in_SI2V3{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes SideSheet_slide-out_SI2V3{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\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 */.SideSheet_slide-in-modal_SI2V3{right:0;left:auto;justify-content:flex-end;min-width:25rem;width:33vw;max-width:40rem;visibility:visible;transform:translate(calc(100% - .5rem));transition-property:transform;transition-duration:.5s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.SideSheet_slide-in-modal_SI2V3{transition-duration:.1ms}}.SideSheet_slide-in-modal_SI2V3.SideSheet_hide_SI2V3{visibility:hidden}.SideSheet_slide-in-modal_SI2V3.SideSheet_visible_SI2V3{visibility:visible;transform:translate(0)}.SideSheet_slide-in-modal_SI2V3.SideSheet_visible_SI2V3 #SideSheet_backdrop-slide_SI2V3{background-color:transparent}.SideSheet_handle_SI2V3{position:absolute;top:13.25rem;left:calc(-1.5 * var(--font-size));display:flex;align-items:center;justify-content:center;width:1.5rem;height:2.5rem;padding:.5rem 0;border-top-left-radius:4px;border-bottom-left-radius:4px;background-color:var(--modal-background-color);box-shadow:-4px 4px 5px 0 var(--side-sheet-shadow-color-one),-4px 3px 14px 0 var(--side-sheet-shadow-color-two),-4px 8px 10px 0 var(--side-sheet-shadow-color-two)}.SideSheet_handle-button_SI2V3{transform:rotateY(180deg)}.SideSheet_collapsed-sheet_SI2V3{position:absolute;top:0;right:0;width:.5rem;height:100vh;background-color:var(--modal-background-color);box-shadow:0 4px 5px 0 var(--side-sheet-shadow-color-one),0 3px 14px 0 var(--side-sheet-shadow-color-two),0 8px 10px 0 var(--side-sheet-shadow-color-two)}.SideSheet_container_SI2V3{margin-top:0;width:50rem;height:100%;max-height:unset;border-radius:0;box-shadow:0 4px 5px 0 var(--side-sheet-shadow-color-one),0 3px 14px 0 var(--side-sheet-shadow-color-two),0 8px 10px 0 var(--side-sheet-shadow-color-two)}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="SideSheet_hidden_SI2V3",d="SideSheet_hide_SI2V3",i="SideSheet_visible_SI2V3",t="SideSheet_handle_SI2V3",S="SideSheet_container_SI2V3",l={"sr-only":"SideSheet_sr-only_SI2V3",hidden:e,"slide-in":"SideSheet_slide-in_SI2V3","slide-out":"SideSheet_slide-out_SI2V3","slide-in-modal":"SideSheet_slide-in-modal_SI2V3",hide:d,visible:i,"backdrop-slide":"SideSheet_backdrop-slide_SI2V3",handle:t,"handle-button":"SideSheet_handle-button_SI2V3","collapsed-sheet":"SideSheet_collapsed-sheet_SI2V3",container:S};exports.container=S,exports.default=l,exports.handle=t,exports.hidden=e,exports.hide=d,exports.visible=i;
3
3
  //# sourceMappingURL=SideSheet.module.scss.cjs.js.map