@onewelcome/react-lib-components 12.0.1 → 12.0.3

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 (659) 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.map +1 -1
  293. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +2 -2
  294. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.es.js +4 -4
  295. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js +1 -1
  296. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js.map +1 -1
  297. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.es.js.map +1 -1
  298. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +2 -2
  299. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.es.js +3 -3
  300. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +1 -1
  301. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -1
  302. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.es.js.map +1 -1
  303. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +2 -2
  304. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js +3 -3
  305. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js +1 -1
  306. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js.map +1 -1
  307. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.es.js.map +1 -1
  308. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +2 -2
  309. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.es.js +3 -3
  310. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js +1 -1
  311. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js.map +1 -1
  312. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.es.js.map +1 -1
  313. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +2 -2
  314. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.es.js +8 -8
  315. package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js +1 -1
  316. package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js.map +1 -1
  317. package/dist/components/Form/Wrapper/Wrapper/Wrapper.es.js.map +1 -1
  318. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +2 -2
  319. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.es.js +6 -6
  320. package/dist/components/Icon/Icon.cjs.js +1 -1
  321. package/dist/components/Icon/Icon.cjs.js.map +1 -1
  322. package/dist/components/Icon/Icon.es.js.map +1 -1
  323. package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
  324. package/dist/components/Icon/Icon.module.scss.es.js +107 -107
  325. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.cjs.js +1 -1
  326. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.cjs.js.map +1 -1
  327. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.es.js +11 -9
  328. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.es.js.map +1 -1
  329. package/dist/components/InlineEditing/InlineEditingContext.cjs.js +1 -1
  330. package/dist/components/InlineEditing/InlineEditingContext.cjs.js.map +1 -1
  331. package/dist/components/InlineEditing/InlineEditingContext.es.js +40 -2
  332. package/dist/components/InlineEditing/InlineEditingContext.es.js.map +1 -1
  333. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.cjs.js +1 -1
  334. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.cjs.js.map +1 -1
  335. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.es.js +13 -10
  336. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.es.js.map +1 -1
  337. package/dist/components/Layout/Card/Card.cjs.js.map +1 -1
  338. package/dist/components/Layout/Card/Card.es.js.map +1 -1
  339. package/dist/components/Layout/Card/Card.module.scss.cjs.js +2 -2
  340. package/dist/components/Layout/Card/Card.module.scss.es.js +12 -12
  341. package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js +1 -1
  342. package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js.map +1 -1
  343. package/dist/components/Layout/ContentHeader/ContentHeader.es.js.map +1 -1
  344. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +2 -2
  345. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js +12 -12
  346. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.cjs.js.map +1 -1
  347. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.es.js.map +1 -1
  348. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +2 -2
  349. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js +4 -4
  350. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js +1 -1
  351. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js.map +1 -1
  352. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.es.js +1 -1
  353. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.es.js.map +1 -1
  354. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +2 -2
  355. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js +2 -2
  356. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.cjs.js.map +1 -1
  357. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.es.js.map +1 -1
  358. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +2 -2
  359. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.es.js +3 -3
  360. package/dist/components/Link/Link.cjs.js +1 -1
  361. package/dist/components/Link/Link.cjs.js.map +1 -1
  362. package/dist/components/Link/Link.es.js.map +1 -1
  363. package/dist/components/Link/Link.module.scss.cjs.js +2 -2
  364. package/dist/components/Link/Link.module.scss.es.js +19 -16
  365. package/dist/components/Link/Link.module.scss.es.js.map +1 -1
  366. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.cjs.js.map +1 -1
  367. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.es.js.map +1 -1
  368. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +2 -2
  369. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.es.js +11 -11
  370. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js +1 -1
  371. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js.map +1 -1
  372. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.es.js.map +1 -1
  373. package/dist/components/Notifications/Alert/AlertItem/AlertItem.cjs.js +1 -1
  374. package/dist/components/Notifications/Alert/AlertItem/AlertItem.cjs.js.map +1 -1
  375. package/dist/components/Notifications/Alert/AlertItem/AlertItem.es.js.map +1 -1
  376. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +2 -2
  377. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.es.js +22 -22
  378. package/dist/components/Notifications/Alert/AlertProvider/AlertContext.cjs.js.map +1 -1
  379. package/dist/components/Notifications/Alert/AlertProvider/AlertContext.es.js.map +1 -1
  380. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.cjs.js +1 -1
  381. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.cjs.js.map +1 -1
  382. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.es.js.map +1 -1
  383. package/dist/components/Notifications/Alert/useAlert.cjs.js.map +1 -1
  384. package/dist/components/Notifications/Alert/useAlert.es.js.map +1 -1
  385. package/dist/components/Notifications/Banner/Banner.cjs.js +1 -1
  386. package/dist/components/Notifications/Banner/Banner.cjs.js.map +1 -1
  387. package/dist/components/Notifications/Banner/Banner.es.js.map +1 -1
  388. package/dist/components/Notifications/Banner/Banner.module.scss.cjs.js +2 -2
  389. package/dist/components/Notifications/Banner/Banner.module.scss.es.js +9 -9
  390. package/dist/components/Notifications/BaseModal/BaseModal.cjs.js +1 -1
  391. package/dist/components/Notifications/BaseModal/BaseModal.cjs.js.map +1 -1
  392. package/dist/components/Notifications/BaseModal/BaseModal.es.js +1 -1
  393. package/dist/components/Notifications/BaseModal/BaseModal.es.js.map +1 -1
  394. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.cjs.js +2 -2
  395. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.es.js +5 -5
  396. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js +1 -1
  397. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js.map +1 -1
  398. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.es.js.map +1 -1
  399. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +2 -2
  400. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.es.js +4 -4
  401. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js +1 -1
  402. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js.map +1 -1
  403. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.es.js.map +1 -1
  404. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +2 -2
  405. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.es.js +2 -2
  406. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js +1 -1
  407. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js.map +1 -1
  408. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.es.js.map +1 -1
  409. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +2 -2
  410. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.es.js +6 -6
  411. package/dist/components/Notifications/Dialog/Dialog.cjs.js +1 -1
  412. package/dist/components/Notifications/Dialog/Dialog.cjs.js.map +1 -1
  413. package/dist/components/Notifications/Dialog/Dialog.es.js +2 -2
  414. package/dist/components/Notifications/Dialog/Dialog.es.js.map +1 -1
  415. package/dist/components/Notifications/Dialog/Dialog.module.scss.cjs.js +2 -2
  416. package/dist/components/Notifications/Dialog/Dialog.module.scss.es.js +4 -4
  417. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.cjs.js +1 -1
  418. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.cjs.js.map +1 -1
  419. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.es.js.map +1 -1
  420. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +2 -2
  421. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.es.js +3 -3
  422. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js +1 -1
  423. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js.map +1 -1
  424. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.es.js.map +1 -1
  425. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +2 -2
  426. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.es.js +10 -10
  427. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js +1 -1
  428. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js.map +1 -1
  429. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.es.js.map +1 -1
  430. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.cjs.js.map +1 -1
  431. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.es.js.map +1 -1
  432. package/dist/components/Notifications/NotificationProvider/NotificationContext.cjs.js +1 -1
  433. package/dist/components/Notifications/NotificationProvider/NotificationContext.cjs.js.map +1 -1
  434. package/dist/components/Notifications/NotificationProvider/NotificationContext.es.js +1 -1
  435. package/dist/components/Notifications/NotificationProvider/NotificationContext.es.js.map +1 -1
  436. package/dist/components/Notifications/NotificationProvider/NotificationService.es.js.map +1 -1
  437. package/dist/components/Notifications/SideSheet/SideSheet.cjs.js +1 -1
  438. package/dist/components/Notifications/SideSheet/SideSheet.cjs.js.map +1 -1
  439. package/dist/components/Notifications/SideSheet/SideSheet.es.js.map +1 -1
  440. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.cjs.js +2 -2
  441. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.es.js +13 -13
  442. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.cjs.js.map +1 -1
  443. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.es.js.map +1 -1
  444. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +2 -2
  445. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.es.js +2 -2
  446. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.cjs.js.map +1 -1
  447. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.es.js.map +1 -1
  448. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +2 -2
  449. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.es.js +2 -2
  450. package/dist/components/Notifications/SlideInModal/SlideInModal.cjs.js +1 -1
  451. package/dist/components/Notifications/SlideInModal/SlideInModal.cjs.js.map +1 -1
  452. package/dist/components/Notifications/SlideInModal/SlideInModal.es.js.map +1 -1
  453. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +2 -2
  454. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.es.js +10 -10
  455. package/dist/components/Pagination/Pagination.cjs.js +1 -1
  456. package/dist/components/Pagination/Pagination.cjs.js.map +1 -1
  457. package/dist/components/Pagination/Pagination.es.js.map +1 -1
  458. package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
  459. package/dist/components/Pagination/Pagination.module.scss.es.js +14 -14
  460. package/dist/components/Popover/Popover.cjs.js +1 -1
  461. package/dist/components/Popover/Popover.cjs.js.map +1 -1
  462. package/dist/components/Popover/Popover.es.js.map +1 -1
  463. package/dist/components/Popover/Popover.module.scss.cjs.js +2 -2
  464. package/dist/components/Popover/Popover.module.scss.es.js +3 -3
  465. package/dist/components/ProgressBar/ProgressBar.cjs.js +1 -1
  466. package/dist/components/ProgressBar/ProgressBar.cjs.js.map +1 -1
  467. package/dist/components/ProgressBar/ProgressBar.es.js.map +1 -1
  468. package/dist/components/ProgressBar/ProgressBar.module.scss.cjs.js +2 -2
  469. package/dist/components/ProgressBar/ProgressBar.module.scss.es.js +9 -9
  470. package/dist/components/RequiredSign/RequiredSign.cjs.js.map +1 -1
  471. package/dist/components/RequiredSign/RequiredSign.es.js.map +1 -1
  472. package/dist/components/Skeleton/Skeleton.cjs.js +1 -1
  473. package/dist/components/Skeleton/Skeleton.cjs.js.map +1 -1
  474. package/dist/components/Skeleton/Skeleton.es.js.map +1 -1
  475. package/dist/components/Skeleton/Skeleton.module.scss.cjs.js +2 -2
  476. package/dist/components/Skeleton/Skeleton.module.scss.es.js +5 -5
  477. package/dist/components/Spinner/Spinner.cjs.js.map +1 -1
  478. package/dist/components/Spinner/Spinner.es.js.map +1 -1
  479. package/dist/components/Spinner/Spinner.module.scss.cjs.js +2 -2
  480. package/dist/components/Spinner/Spinner.module.scss.es.js +3 -3
  481. package/dist/components/Stepper/Step.cjs.js.map +1 -1
  482. package/dist/components/Stepper/Step.es.js.map +1 -1
  483. package/dist/components/Stepper/Step.module.scss.cjs.js +2 -2
  484. package/dist/components/Stepper/Step.module.scss.es.js +22 -22
  485. package/dist/components/Stepper/Stepper.cjs.js +1 -1
  486. package/dist/components/Stepper/Stepper.cjs.js.map +1 -1
  487. package/dist/components/Stepper/Stepper.es.js.map +1 -1
  488. package/dist/components/Stepper/Stepper.module.scss.cjs.js +2 -2
  489. package/dist/components/Stepper/Stepper.module.scss.es.js +4 -4
  490. package/dist/components/Tabs/Tab.cjs.js.map +1 -1
  491. package/dist/components/Tabs/Tab.es.js.map +1 -1
  492. package/dist/components/Tabs/Tab.module.scss.cjs.js +2 -2
  493. package/dist/components/Tabs/Tab.module.scss.es.js +3 -3
  494. package/dist/components/Tabs/TabButton.cjs.js +1 -1
  495. package/dist/components/Tabs/TabButton.cjs.js.map +1 -1
  496. package/dist/components/Tabs/TabButton.es.js.map +1 -1
  497. package/dist/components/Tabs/TabButton.module.scss.cjs.js +2 -2
  498. package/dist/components/Tabs/TabButton.module.scss.es.js +12 -12
  499. package/dist/components/Tabs/Tabs.cjs.js +1 -1
  500. package/dist/components/Tabs/Tabs.cjs.js.map +1 -1
  501. package/dist/components/Tabs/Tabs.es.js.map +1 -1
  502. package/dist/components/Tabs/Tabs.module.scss.cjs.js +2 -2
  503. package/dist/components/Tabs/Tabs.module.scss.es.js +10 -10
  504. package/dist/components/Tag/RemoveButton.cjs.js +1 -1
  505. package/dist/components/Tag/RemoveButton.cjs.js.map +1 -1
  506. package/dist/components/Tag/RemoveButton.es.js.map +1 -1
  507. package/dist/components/Tag/RemoveButton.module.scss.cjs.js +2 -2
  508. package/dist/components/Tag/RemoveButton.module.scss.es.js +3 -3
  509. package/dist/components/Tag/Tag.cjs.js +1 -1
  510. package/dist/components/Tag/Tag.cjs.js.map +1 -1
  511. package/dist/components/Tag/Tag.es.js.map +1 -1
  512. package/dist/components/Tag/Tag.module.scss.cjs.js +2 -2
  513. package/dist/components/Tag/Tag.module.scss.es.js +6 -6
  514. package/dist/components/TextEllipsis/TextEllipsis.cjs.js +1 -1
  515. package/dist/components/TextEllipsis/TextEllipsis.cjs.js.map +1 -1
  516. package/dist/components/TextEllipsis/TextEllipsis.es.js.map +1 -1
  517. package/dist/components/TextEllipsis/TextEllipsis.module.scss.cjs.js +2 -2
  518. package/dist/components/TextEllipsis/TextEllipsis.module.scss.es.js +3 -3
  519. package/dist/components/Tiles/Tile.cjs.js +1 -1
  520. package/dist/components/Tiles/Tile.cjs.js.map +1 -1
  521. package/dist/components/Tiles/Tile.es.js.map +1 -1
  522. package/dist/components/Tiles/Tile.module.scss.cjs.js +2 -2
  523. package/dist/components/Tiles/Tile.module.scss.es.js +8 -8
  524. package/dist/components/Tiles/Tiles.cjs.js +1 -1
  525. package/dist/components/Tiles/Tiles.cjs.js.map +1 -1
  526. package/dist/components/Tiles/Tiles.es.js.map +1 -1
  527. package/dist/components/Tiles/Tiles.module.scss.cjs.js +2 -2
  528. package/dist/components/Tiles/Tiles.module.scss.es.js +2 -2
  529. package/dist/components/Tooltip/Tooltip.cjs.js +1 -1
  530. package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -1
  531. package/dist/components/Tooltip/Tooltip.es.js +1 -1
  532. package/dist/components/Tooltip/Tooltip.es.js.map +1 -1
  533. package/dist/components/Tooltip/Tooltip.module.scss.cjs.js +2 -2
  534. package/dist/components/Tooltip/Tooltip.module.scss.es.js +27 -27
  535. package/dist/components/Typography/Typography.cjs.js +1 -1
  536. package/dist/components/Typography/Typography.cjs.js.map +1 -1
  537. package/dist/components/Typography/Typography.es.js.map +1 -1
  538. package/dist/components/Typography/Typography.module.scss.cjs.js +2 -2
  539. package/dist/components/Typography/Typography.module.scss.es.js +13 -13
  540. package/dist/components/_BaseStyling_/BaseStyling.cjs.js +1 -1
  541. package/dist/components/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
  542. package/dist/components/_BaseStyling_/BaseStyling.es.js.map +1 -1
  543. package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js +1 -1
  544. package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js.map +1 -1
  545. package/dist/components/admin/layout/LeftNav/LeftNav.es.js +2 -0
  546. package/dist/components/admin/layout/LeftNav/LeftNav.es.js.map +1 -1
  547. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -2
  548. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.es.js +5 -5
  549. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js +1 -1
  550. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js.map +1 -1
  551. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.es.js +2 -0
  552. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.es.js.map +1 -1
  553. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.cjs.js +1 -1
  554. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.cjs.js.map +1 -1
  555. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.es.js.map +1 -1
  556. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -2
  557. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.es.js +14 -14
  558. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js +1 -1
  559. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js.map +1 -1
  560. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.es.js +90 -2
  561. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.es.js.map +1 -1
  562. package/dist/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.cjs.js.map +1 -1
  563. package/dist/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.es.js.map +1 -1
  564. package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js +1 -1
  565. package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js.map +1 -1
  566. package/dist/components/admin/layout/LeftNav/useRefItems.es.js.map +1 -1
  567. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js +1 -1
  568. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js.map +1 -1
  569. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.es.js +1 -1
  570. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.es.js.map +1 -1
  571. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +2 -2
  572. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js +3 -3
  573. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.cjs.js +2 -0
  574. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.cjs.js.map +1 -0
  575. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.es.js +33 -0
  576. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.es.js.map +1 -0
  577. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js +3 -0
  578. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js.map +1 -0
  579. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js +25 -0
  580. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js.map +1 -0
  581. package/dist/components/admin/layout/TopNavBar/TopNavBar.cjs.js +2 -0
  582. package/dist/components/admin/layout/TopNavBar/TopNavBar.cjs.js.map +1 -0
  583. package/dist/components/admin/layout/TopNavBar/TopNavBar.es.js +45 -0
  584. package/dist/components/admin/layout/TopNavBar/TopNavBar.es.js.map +1 -0
  585. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js +3 -0
  586. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js.map +1 -0
  587. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js +25 -0
  588. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js.map +1 -0
  589. package/dist/components/miscellaneous/IdentityProviderButton.cjs.js.map +1 -1
  590. package/dist/components/miscellaneous/IdentityProviderButton.es.js.map +1 -1
  591. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.cjs.js +2 -2
  592. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.es.js +3 -3
  593. package/dist/components/withReadOnly.cjs.js +1 -1
  594. package/dist/components/withReadOnly.cjs.js.map +1 -1
  595. package/dist/components/withReadOnly.es.js.map +1 -1
  596. package/dist/hooks/useAnimation.cjs.js +1 -1
  597. package/dist/hooks/useAnimation.cjs.js.map +1 -1
  598. package/dist/hooks/useAnimation.es.js.map +1 -1
  599. package/dist/hooks/useClickOutside.cjs.js +1 -1
  600. package/dist/hooks/useClickOutside.cjs.js.map +1 -1
  601. package/dist/hooks/useClickOutside.es.js.map +1 -1
  602. package/dist/hooks/useDebouncedCallback.cjs.js +1 -1
  603. package/dist/hooks/useDebouncedCallback.cjs.js.map +1 -1
  604. package/dist/hooks/useDebouncedCallback.es.js.map +1 -1
  605. package/dist/hooks/useDescribedBy.cjs.js.map +1 -1
  606. package/dist/hooks/useDescribedBy.es.js.map +1 -1
  607. package/dist/hooks/useDetermineStatusIcon.cjs.js.map +1 -1
  608. package/dist/hooks/useDetermineStatusIcon.es.js.map +1 -1
  609. package/dist/hooks/useFormSelector.cjs.js.map +1 -1
  610. package/dist/hooks/useFormSelector.es.js.map +1 -1
  611. package/dist/hooks/useFullHeightCollapse.cjs.js.map +1 -1
  612. package/dist/hooks/useFullHeightCollapse.es.js.map +1 -1
  613. package/dist/hooks/useGetDomRoot.cjs.js +1 -1
  614. package/dist/hooks/useGetDomRoot.cjs.js.map +1 -1
  615. package/dist/hooks/useGetDomRoot.es.js.map +1 -1
  616. package/dist/hooks/usePosition.cjs.js +1 -1
  617. package/dist/hooks/usePosition.cjs.js.map +1 -1
  618. package/dist/hooks/usePosition.es.js.map +1 -1
  619. package/dist/hooks/useRepeatFocus.cjs.js +1 -1
  620. package/dist/hooks/useRepeatFocus.cjs.js.map +1 -1
  621. package/dist/hooks/useRepeatFocus.es.js +6 -23
  622. package/dist/hooks/useRepeatFocus.es.js.map +1 -1
  623. package/dist/hooks/useRepeater.cjs.js +1 -1
  624. package/dist/hooks/useRepeater.cjs.js.map +1 -1
  625. package/dist/hooks/useRepeater.es.js.map +1 -1
  626. package/dist/hooks/useScreenSize.cjs.js +1 -1
  627. package/dist/hooks/useScreenSize.cjs.js.map +1 -1
  628. package/dist/hooks/useScreenSize.es.js.map +1 -1
  629. package/dist/hooks/useSpacing.cjs.js +1 -1
  630. package/dist/hooks/useSpacing.cjs.js.map +1 -1
  631. package/dist/hooks/useSpacing.es.js.map +1 -1
  632. package/dist/hooks/useUploadFile.cjs.js +1 -1
  633. package/dist/hooks/useUploadFile.cjs.js.map +1 -1
  634. package/dist/hooks/useUploadFile.es.js.map +1 -1
  635. package/dist/hooks/useWrapper.cjs.js.map +1 -1
  636. package/dist/hooks/useWrapper.es.js.map +1 -1
  637. package/dist/index.cjs.js +1 -1
  638. package/dist/index.d.ts +48 -4
  639. package/dist/index.es.js +6 -0
  640. package/dist/index.es.js.map +1 -1
  641. package/dist/node_modules/tabbable/dist/index.esm.cjs.js +2 -0
  642. package/dist/node_modules/tabbable/dist/index.esm.cjs.js.map +1 -0
  643. package/dist/node_modules/tabbable/dist/index.esm.es.js +322 -0
  644. package/dist/node_modules/tabbable/dist/index.esm.es.js.map +1 -0
  645. package/dist/readyclasses.module.scss.cjs.js +2 -2
  646. package/dist/readyclasses.module.scss.es.js +5 -5
  647. package/dist/util/helper.cjs.js +1 -1
  648. package/dist/util/helper.cjs.js.map +1 -1
  649. package/dist/util/helper.es.js +1 -1
  650. package/dist/util/helper.es.js.map +1 -1
  651. package/dist/utils/focusManagement.cjs.js +2 -0
  652. package/dist/utils/focusManagement.cjs.js.map +1 -0
  653. package/dist/utils/focusManagement.es.js +8 -0
  654. package/dist/utils/focusManagement.es.js.map +1 -0
  655. package/dist/utils/statusUtils.cjs.js.map +1 -1
  656. package/dist/utils/statusUtils.es.js.map +1 -1
  657. package/dist/variables.cjs.js.map +1 -1
  658. package/dist/variables.es.js.map +1 -1
  659. package/package.json +26 -21
@@ -1 +1 @@
1
- {"version":3,"file":"useAlertContainerHeightAnimation.es.js","sources":["../../../../../src/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.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 { useContext, useEffect, useState } from \"react\";\nimport AlertContext from \"../AlertProvider/AlertContext\";\n\nexport function useAlertContainerHeightAnimation() {\n const { alerts } = useContext(AlertContext);\n const [height, setHeight] = useState(0);\n const [justifyContent, setJustifyContent] = useState<\"flex-start\" | \"flex-end\">(\"flex-start\");\n const spaceBetweenAlerts = 8;\n const exceedsMaximumVisibleAlerts = alerts.length >= 3;\n\n useEffect(() => {\n const allHeights = alerts.map(alert => alert.height ?? 0);\n let totalHeight = allHeights.reduce((prev, curr) => prev + curr, 0);\n totalHeight += (Math.min(alerts.length, 3) - 1) * spaceBetweenAlerts;\n\n if (exceedsMaximumVisibleAlerts) {\n setTimeout(() => {\n setJustifyContent(\"flex-end\");\n }, 500);\n }\n if (height > totalHeight && justifyContent !== \"flex-end\") {\n setJustifyContent(\"flex-end\");\n } else if (height < totalHeight && justifyContent !== \"flex-start\") {\n setJustifyContent(\"flex-start\");\n }\n\n setHeight(totalHeight);\n }, [alerts]);\n\n return { height, justifyContent };\n}\n"],"names":[],"mappings":";;AAmBO,SAAS,mCAAmC;AACjD,QAAM,EAAE,OAAA,IAAW,WAAW,YAAY;AAC1C,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,CAAC;AACtC,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAoC,YAAY;AAC5F,QAAM,qBAAqB;AACrB,QAAA,8BAA8B,OAAO,UAAU;AAErD,YAAU,MAAM;AACd,UAAM,aAAa,OAAO,IAAI,CAAS,UAAA,MAAM,UAAU,CAAC;AACpD,QAAA,cAAc,WAAW,OAAO,CAAC,MAAM,SAAS,OAAO,MAAM,CAAC;AAClE,oBAAgB,KAAK,IAAI,OAAO,QAAQ,CAAC,IAAI,KAAK;AAElD,QAAI,6BAA6B;AAC/B,iBAAW,MAAM;AACf,0BAAkB,UAAU;AAAA,SAC3B,GAAG;AAAA,IAAA;AAEJ,QAAA,SAAS,eAAe,mBAAmB,YAAY;AACzD,wBAAkB,UAAU;AAAA,IACnB,WAAA,SAAS,eAAe,mBAAmB,cAAc;AAClE,wBAAkB,YAAY;AAAA,IAAA;AAGhC,cAAU,WAAW;AAAA,EAAA,GACpB,CAAC,MAAM,CAAC;AAEJ,SAAA,EAAE,QAAQ,eAAe;AAClC;"}
1
+ {"version":3,"file":"useAlertContainerHeightAnimation.es.js","sources":["../../../../../src/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.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 { useContext, useEffect, useState } from \"react\";\nimport AlertContext from \"../AlertProvider/AlertContext\";\n\nexport function useAlertContainerHeightAnimation() {\n const { alerts } = useContext(AlertContext);\n const [height, setHeight] = useState(0);\n const [justifyContent, setJustifyContent] = useState<\"flex-start\" | \"flex-end\">(\"flex-start\");\n const spaceBetweenAlerts = 8;\n const exceedsMaximumVisibleAlerts = alerts.length >= 3;\n\n useEffect(() => {\n const allHeights = alerts.map(alert => alert.height ?? 0);\n let totalHeight = allHeights.reduce((prev, curr) => prev + curr, 0);\n totalHeight += (Math.min(alerts.length, 3) - 1) * spaceBetweenAlerts;\n\n if (exceedsMaximumVisibleAlerts) {\n setTimeout(() => {\n setJustifyContent(\"flex-end\");\n }, 500);\n }\n if (height > totalHeight && justifyContent !== \"flex-end\") {\n setJustifyContent(\"flex-end\");\n } else if (height < totalHeight && justifyContent !== \"flex-start\") {\n setJustifyContent(\"flex-start\");\n }\n\n setHeight(totalHeight);\n }, [alerts]);\n\n return { height, justifyContent };\n}\n"],"names":[],"mappings":";;AAmBO,SAAS,mCAAmC;AACjD,QAAM,EAAE,OAAA,IAAW,WAAW,YAAY;AAC1C,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,CAAC;AACtC,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAoC,YAAY;AAC5F,QAAM,qBAAqB;AAC3B,QAAM,8BAA8B,OAAO,UAAU;AAErD,YAAU,MAAM;AACd,UAAM,aAAa,OAAO,IAAI,CAAA,UAAS,MAAM,UAAU,CAAC;AACxD,QAAI,cAAc,WAAW,OAAO,CAAC,MAAM,SAAS,OAAO,MAAM,CAAC;AAClE,oBAAgB,KAAK,IAAI,OAAO,QAAQ,CAAC,IAAI,KAAK;AAElD,QAAI,6BAA6B;AAC/B,iBAAW,MAAM;AACf,0BAAkB,UAAU;AAAA,MAC9B,GAAG,GAAG;AAAA,IACR;AACA,QAAI,SAAS,eAAe,mBAAmB,YAAY;AACzD,wBAAkB,UAAU;AAAA,IAC9B,WAAW,SAAS,eAAe,mBAAmB,cAAc;AAClE,wBAAkB,YAAY;AAAA,IAChC;AAEA,cAAU,WAAW;AAAA,EACvB,GAAG,CAAC,MAAM,CAAC;AAEX,SAAO,EAAE,QAAQ,eAAA;AACnB;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("../../../Button/IconButton.cjs.js"),r=require("../../../Icon/Icon.cjs.js"),n=require("./AlertItem.module.scss.cjs.js"),a=require("../../../../readyclasses.module.scss.cjs.js"),l=require("../../../../hooks/useAnimation.cjs.js"),s=require("../../../Typography/Typography.cjs.js"),o=require("../AlertProvider/AlertContext.cjs.js");let c=1;exports.AlertItem=({id:i,title:u,duration:d,variant:m="neutral",emphasis:p="low",content:f,className:g,actions:h=[],onClose:v,closeButtonTitle:E,wasShown:j})=>{const y=e.useRef(),{ref:I,animationStarted:b,startAnimation:T}=l.useAnimation((()=>{null==v||v()}));((t,r)=>{const n=e.useContext(o.default);e.useEffect((()=>{t.current&&n.setAlertHeight(r,t.current.getBoundingClientRect().height)}),[t.current])})(I,i),e.useEffect((()=>{var e,t,r,n;return d&&d>0&&(y.current=setTimeout((()=>T()),d)),I&&(null==(e=I.current)||e.addEventListener("focus",A),null==(t=I.current)||t.addEventListener("blur",C),null==(r=I.current)||r.addEventListener("mouseenter",A),null==(n=I.current)||n.addEventListener("mouseleave",C)),()=>{y.current&&clearTimeout(y.current)}}),[]);const A=()=>{y.current&&clearTimeout(y.current)},C=()=>{d&&d>0&&(y.current=setTimeout((()=>T()),d))},N=h.map((t=>e.createElement("button",{key:`alert-action-button-${(c++).toString()}`,...t,onClick:e=>{var r;null==v||v(),null==(r=t.onClick)||r.call(t,e)},className:n.default["action-button"]},t.label)));return e.createElement("div",{"data-testid":"alert-container",ref:I,"aria-live":"error"!==m||"medium"!==p&&"high"!==p?"polite":"assertive",className:(()=>{const e=[n.default.alert,n.default[`${m}`],n.default[`emph-${p}`]];return b&&e.push(a.default["slide-out"]),b||j||e.push(a.default["slide-in"]),g&&e.push(g),e.join(" ")})(),role:"alert"},e.createElement("div",{className:n.default["outer-content-wrapper"]},e.createElement(r.Icon,{icon:"error"===m?r.Icons.ErrorAlt:"warning"===m?r.Icons.Warning:"success"===m?r.Icons.CheckmarkCircleAlt:r.Icons.InfoCircle,className:n.default.icon}),e.createElement("div",{className:n.default["content-wrapper"],role:"log"},!!u&&!!f&&e.createElement(s.Typography,{"data-testid":"alert-title",className:n.default.title,variant:"body-bold",tag:"span"},u),(!!f||!!u)&&e.createElement(s.Typography,{"data-testid":"alert-content",className:n.default.content,variant:"body"},f||u))),N.length>0&&e.createElement("div",{"data-testid":"alert-actions",className:n.default.actions},N),v&&e.createElement(t.IconButton,{className:n.default["close-btn"],onClick:e=>{e.stopPropagation(),T()},title:E,"data-testid":"alert-close"},e.createElement(r.Icon,{icon:r.Icons.Times})))};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("../../../Button/IconButton.cjs.js"),r=require("../../../Icon/Icon.cjs.js"),n=require("./AlertItem.module.scss.cjs.js"),a=require("../../../../readyclasses.module.scss.cjs.js"),l=require("../../../../hooks/useAnimation.cjs.js"),s=require("../../../Typography/Typography.cjs.js"),o=require("../AlertProvider/AlertContext.cjs.js");let c=1;exports.AlertItem=({id:i,title:u,duration:d,variant:m="neutral",emphasis:p="low",content:f,className:g,actions:h=[],onClose:v,closeButtonTitle:E,wasShown:j})=>{const y=e.useRef(),{ref:I,animationStarted:b,startAnimation:T}=l.useAnimation(()=>{null==v||v()});((t,r)=>{const n=e.useContext(o.default);e.useEffect(()=>{t.current&&n.setAlertHeight(r,t.current.getBoundingClientRect().height)},[t.current])})(I,i),e.useEffect(()=>{var e,t,r,n;return d&&d>0&&(y.current=setTimeout(()=>T(),d)),I&&(null==(e=I.current)||e.addEventListener("focus",A),null==(t=I.current)||t.addEventListener("blur",C),null==(r=I.current)||r.addEventListener("mouseenter",A),null==(n=I.current)||n.addEventListener("mouseleave",C)),()=>{y.current&&clearTimeout(y.current)}},[]);const A=()=>{y.current&&clearTimeout(y.current)},C=()=>{d&&d>0&&(y.current=setTimeout(()=>T(),d))},N=h.map(t=>e.createElement("button",{key:`alert-action-button-${(c++).toString()}`,...t,onClick:e=>{var r;null==v||v(),null==(r=t.onClick)||r.call(t,e)},className:n.default["action-button"]},t.label));return e.createElement("div",{"data-testid":"alert-container",ref:I,"aria-live":"error"!==m||"medium"!==p&&"high"!==p?"polite":"assertive",className:(()=>{const e=[n.default.alert,n.default[`${m}`],n.default[`emph-${p}`]];return b&&e.push(a.default["slide-out"]),b||j||e.push(a.default["slide-in"]),g&&e.push(g),e.join(" ")})(),role:"alert"},e.createElement("div",{className:n.default["outer-content-wrapper"]},e.createElement(r.Icon,{icon:"error"===m?r.Icons.ErrorAlt:"warning"===m?r.Icons.Warning:"success"===m?r.Icons.CheckmarkCircleAlt:r.Icons.InfoCircle,className:n.default.icon}),e.createElement("div",{className:n.default["content-wrapper"],role:"log"},!!u&&!!f&&e.createElement(s.Typography,{"data-testid":"alert-title",className:n.default.title,variant:"body-bold",tag:"span"},u),(!!f||!!u)&&e.createElement(s.Typography,{"data-testid":"alert-content",className:n.default.content,variant:"body"},f||u))),N.length>0&&e.createElement("div",{"data-testid":"alert-actions",className:n.default.actions},N),v&&e.createElement(t.IconButton,{className:n.default["close-btn"],onClick:e=>{e.stopPropagation(),T()},title:E,"data-testid":"alert-close"},e.createElement(r.Icon,{icon:r.Icons.Times})))};
2
2
  //# sourceMappingURL=AlertItem.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlertItem.cjs.js","sources":["../../../../../src/components/Notifications/Alert/AlertItem/AlertItem.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, { ButtonHTMLAttributes, useContext, useEffect, useRef } from \"react\";\nimport { IconButton } from \"../../../Button/IconButton\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\nimport classes from \"./AlertItem.module.scss\";\nimport readyclasses from \"../../../../readyclasses.module.scss\";\nimport { useAnimation } from \"../../../../hooks/useAnimation\";\nimport { Typography } from \"../../../Typography/Typography\";\nimport AlertContext from \"../AlertProvider/AlertContext\";\n\nexport const EMPHASES = [\"low\", \"medium\", \"high\"] as const;\nexport type Emphasis = (typeof EMPHASES)[keyof typeof EMPHASES];\n\nexport const VARIANTS = [\"neutral\", \"informative\", \"success\", \"warning\", \"error\"] as const;\nexport type Variant = (typeof VARIANTS)[keyof typeof VARIANTS];\n\nexport type Actions = (ButtonHTMLAttributes<HTMLButtonElement> & { label: string })[];\n\nexport interface Props {\n id: string;\n title?: string | React.ReactNode;\n content?: string | React.ReactNode;\n duration?: number;\n emphasis?: Emphasis;\n variant?: Variant;\n className?: string;\n onClose?: () => void;\n closeButtonTitle?: string;\n actions?: Actions;\n wasShown?: boolean;\n}\n\nconst useRegisterAlertHeight = (\n singleAlertRef: React.RefObject<HTMLDivElement>,\n alertId: string\n) => {\n const ctx = useContext(AlertContext);\n\n useEffect(() => {\n if (singleAlertRef.current) {\n ctx.setAlertHeight(alertId, singleAlertRef.current.getBoundingClientRect().height);\n }\n }, [singleAlertRef.current]);\n};\n\nlet actionButtonKeyCounter = 1;\nexport const AlertItem = ({\n id,\n title,\n duration,\n variant = \"neutral\",\n emphasis = \"low\",\n content,\n className,\n actions = [],\n onClose,\n closeButtonTitle,\n wasShown\n}: Props) => {\n const timerHandler = useRef<ReturnType<typeof setTimeout>>();\n const onAnimationEnd = () => {\n onClose?.();\n };\n const { ref, animationStarted, startAnimation } = useAnimation<HTMLDivElement>(onAnimationEnd);\n\n useRegisterAlertHeight(ref, id);\n\n useEffect(() => {\n if (duration && duration > 0) {\n timerHandler.current = setTimeout(() => startAnimation(), duration);\n }\n if (ref) {\n ref.current?.addEventListener(\"focus\", onItemFocus);\n ref.current?.addEventListener(\"blur\", onItemBlur);\n ref.current?.addEventListener(\"mouseenter\", onItemFocus);\n ref.current?.addEventListener(\"mouseleave\", onItemBlur);\n }\n return () => {\n timerHandler.current && clearTimeout(timerHandler.current);\n };\n }, []);\n\n const onItemFocus = () => {\n timerHandler.current && clearTimeout(timerHandler.current);\n };\n\n const onItemBlur = () => {\n if (duration && duration > 0) {\n timerHandler.current = setTimeout(() => startAnimation(), duration);\n }\n };\n\n const getVariantIcon = () => {\n if (variant === \"error\") {\n return Icons.ErrorAlt;\n }\n\n if (variant === \"warning\") {\n return Icons.Warning;\n }\n\n return variant === \"success\" ? Icons.CheckmarkCircleAlt : Icons.InfoCircle;\n };\n\n const actionButtons = actions.map(actionProp => (\n <button\n key={`alert-action-button-${(actionButtonKeyCounter++).toString()}`}\n {...actionProp}\n onClick={e => {\n onClose?.();\n actionProp.onClick?.(e);\n }}\n className={classes[\"action-button\"]}\n >\n {actionProp.label}\n </button>\n ));\n\n const getAlertClasses = (): string => {\n const alertClasses = [classes[\"alert\"], classes[`${variant}`], classes[`emph-${emphasis}`]];\n if (animationStarted) {\n alertClasses.push(readyclasses[\"slide-out\"]);\n }\n if (!animationStarted && !wasShown) {\n alertClasses.push(readyclasses[\"slide-in\"]);\n }\n if (className) {\n alertClasses.push(className);\n }\n return alertClasses.join(\" \");\n };\n\n const getAria = () => {\n if (variant === \"error\" && (emphasis === \"medium\" || emphasis === \"high\")) {\n return \"assertive\";\n }\n return \"polite\";\n };\n\n const getContentOrTitle = () => {\n if (content) {\n return content;\n }\n return title;\n };\n\n return (\n <div\n {...{ [\"data-testid\"]: \"alert-container\" }}\n ref={ref}\n aria-live={getAria()}\n className={getAlertClasses()}\n role=\"alert\"\n >\n <div className={classes[\"outer-content-wrapper\"]}>\n <Icon icon={getVariantIcon()} className={classes[\"icon\"]} />\n <div className={classes[\"content-wrapper\"]} role=\"log\">\n {!!title && !!content && (\n <Typography\n {...{ [\"data-testid\"]: \"alert-title\" }}\n className={classes[\"title\"]}\n variant=\"body-bold\"\n tag=\"span\"\n >\n {title}\n </Typography>\n )}\n {(!!content || !!title) && (\n <Typography\n {...{ [\"data-testid\"]: \"alert-content\" }}\n className={classes[\"content\"]}\n variant=\"body\"\n >\n {getContentOrTitle()}\n </Typography>\n )}\n </div>\n </div>\n {actionButtons.length > 0 && (\n <div {...{ [\"data-testid\"]: \"alert-actions\" }} className={classes[\"actions\"]}>\n {actionButtons}\n </div>\n )}\n {onClose && (\n <IconButton\n className={classes[\"close-btn\"]}\n onClick={e => {\n e.stopPropagation();\n startAnimation();\n }}\n title={closeButtonTitle}\n {...{ [\"data-testid\"]: \"alert-close\" }}\n >\n <Icon icon={Icons.Times} />\n </IconButton>\n )}\n </div>\n );\n};\n"],"names":["actionButtonKeyCounter","id","title","duration","variant","emphasis","content","className","actions","onClose","closeButtonTitle","wasShown","timerHandler","useRef","ref","animationStarted","startAnimation","useAnimation","singleAlertRef","alertId","ctx","useContext","AlertContext","useEffect","current","setAlertHeight","getBoundingClientRect","height","useRegisterAlertHeight","setTimeout","_a","addEventListener","onItemFocus","_b","onItemBlur","_c","_d","clearTimeout","actionButtons","map","actionProp","React","createElement","key","toString","onClick","e","call","classes","label","alertClasses","default","push","readyclasses","join","getAlertClasses","role","Icon","icon","Icons","ErrorAlt","Warning","CheckmarkCircleAlt","InfoCircle","Typography","tag","length","IconButton","stopPropagation","Times"],"mappings":"4bA4DA,IAAIA,EAAyB,oBACJ,EACvBC,KACAC,QACAC,WACAC,UAAU,UACVC,WAAW,MACXC,UACAC,YACAC,UAAU,GACVC,UACAC,mBACAC,eAEM,MAAAC,EAAeC,EAAAA,UAIfC,IAAEA,EAAKC,iBAAAA,EAAAC,eAAkBA,GAAmBC,EAAAA,cAH3B,KACX,MAAAR,GAAAA,GAAA,IA7BiB,EAC7BS,EACAC,KAEM,MAAAC,EAAMC,aAAWC,WAEvBC,EAAAA,WAAU,KACJL,EAAeM,SACjBJ,EAAIK,eAAeN,EAASD,EAAeM,QAAQE,wBAAwBC,OAAM,GAElF,CAACT,EAAeM,SAAQ,EAuB3BI,CAAuBd,EAAKb,GAE5BsB,EAAAA,WAAU,iBAUR,OATIpB,GAAYA,EAAW,IACzBS,EAAaY,QAAUK,YAAW,IAAMb,KAAkBb,IAExDW,IACE,OAAAgB,EAAAhB,EAAAU,UAASM,EAAAC,iBAAiB,QAASC,GACnC,OAAAC,EAAAnB,EAAAU,UAASS,EAAAF,iBAAiB,OAAQG,GAClC,OAAAC,EAAArB,EAAAU,UAASW,EAAAJ,iBAAiB,aAAcC,GACxC,OAAAI,EAAAtB,EAAAU,UAASY,EAAAL,iBAAiB,aAAcG,IAEvC,KACQtB,EAAAY,SAAWa,aAAazB,EAAaY,QAAO,CAC3D,GACC,IAEH,MAAMQ,EAAc,KACLpB,EAAAY,SAAWa,aAAazB,EAAaY,QAAO,EAGrDU,EAAa,KACb/B,GAAYA,EAAW,IACzBS,EAAaY,QAAUK,YAAW,IAAMb,KAAkBb,GAAQ,EAgBhEmC,EAAgB9B,EAAQ+B,KAC5BC,GAAAC,EAAAC,cAAC,SAAA,CACCC,IAAK,wBAAwB3C,KAA0B4C,gBACnDJ,EACJK,QAAcC,UACF,MAAArC,GAAAA,IACV,OAAAqB,EAAAU,EAAWK,UAAUf,EAAAiB,KAAAP,EAAAM,EAAA,EAEvBvC,UAAWyC,UAAQ,kBAElBR,EAAWS,SAiCd,OAAAR,EAAAC,cAAC,MAAA,CACO,cAAiB,kBACvB5B,MACA,YAjBc,UAAZV,GAAqC,WAAbC,GAAsC,SAAbA,EAG9C,SAFE,YAiBPE,UAjCoB,MACtB,MAAM2C,EAAe,CAACF,EAAAA,QAAe,MAAGA,EAAQG,QAAA,GAAG/C,KAAY4C,EAAAA,QAAQ,QAAQ3C,MAUxE,OATHU,GACWmC,EAAAE,KAAKC,UAAa,cAE5BtC,GAAqBJ,GACXuC,EAAAE,KAAKC,UAAa,aAE7B9C,GACF2C,EAAaE,KAAK7C,GAEb2C,EAAaI,KAAK,IAAG,EAsBfC,GACXC,KAAK,WAEJd,cAAA,MAAA,CAAInC,UAAWyC,EAAAA,QAAQ,0BACrBP,EAAAC,cAAAe,EAAAA,KAAA,CAAKC,KA9DM,UAAZtD,EACKuD,EAAMA,MAAAC,SAGC,YAAZxD,EACKuD,EAAMA,MAAAE,QAGI,YAAZzD,EAAwBuD,EAAMA,MAAAG,mBAAqBH,EAAMA,MAAAI,WAsD9BxD,UAAWyC,UAAc,OACtDP,EAAAC,cAAA,MAAA,CAAInC,UAAWyC,EAAAA,QAAQ,mBAAoBQ,KAAK,SAC5CtD,KAAWI,GACZmC,EAAAC,cAACsB,EAAAA,WAAA,CACO,cAAiB,cACvBzD,UAAWyC,UAAe,MAC1B5C,QAAQ,YACR6D,IAAI,QAEH/D,MAGDI,KAAaJ,IACfuC,EAAAC,cAACsB,EAAAA,WAAA,CACO,cAAiB,gBACvBzD,UAAWyC,UAAiB,QAC5B5C,QAAQ,QA/BdE,GAGGJ,KAmCJoC,EAAc4B,OAAS,GACrBzB,EAAAC,cAAA,MAAA,CAAU,cAAiB,gBAAmBnC,UAAWyC,EAAQG,QAAS,SACxEb,GAGJ7B,GACCgC,EAAAC,cAACyB,EAAAA,WAAA,CACC5D,UAAWyC,UAAQ,aACnBH,QAAcC,IACZA,EAAEsB,kBACapD,GAAA,EAEjBd,MAAOQ,EACD,cAAiB,eAEtB+B,EAAAC,cAAAe,EAAAA,KAAA,CAAKC,KAAMC,EAAAA,MAAMU,SAGxB"}
1
+ {"version":3,"file":"AlertItem.cjs.js","sources":["../../../../../src/components/Notifications/Alert/AlertItem/AlertItem.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, { ButtonHTMLAttributes, useContext, useEffect, useRef } from \"react\";\nimport { IconButton } from \"../../../Button/IconButton\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\nimport classes from \"./AlertItem.module.scss\";\nimport readyclasses from \"../../../../readyclasses.module.scss\";\nimport { useAnimation } from \"../../../../hooks/useAnimation\";\nimport { Typography } from \"../../../Typography/Typography\";\nimport AlertContext from \"../AlertProvider/AlertContext\";\n\nexport const EMPHASES = [\"low\", \"medium\", \"high\"] as const;\nexport type Emphasis = (typeof EMPHASES)[keyof typeof EMPHASES];\n\nexport const VARIANTS = [\"neutral\", \"informative\", \"success\", \"warning\", \"error\"] as const;\nexport type Variant = (typeof VARIANTS)[keyof typeof VARIANTS];\n\nexport type Actions = (ButtonHTMLAttributes<HTMLButtonElement> & { label: string })[];\n\nexport interface Props {\n id: string;\n title?: string | React.ReactNode;\n content?: string | React.ReactNode;\n duration?: number;\n emphasis?: Emphasis;\n variant?: Variant;\n className?: string;\n onClose?: () => void;\n closeButtonTitle?: string;\n actions?: Actions;\n wasShown?: boolean;\n}\n\nconst useRegisterAlertHeight = (\n singleAlertRef: React.RefObject<HTMLDivElement>,\n alertId: string\n) => {\n const ctx = useContext(AlertContext);\n\n useEffect(() => {\n if (singleAlertRef.current) {\n ctx.setAlertHeight(alertId, singleAlertRef.current.getBoundingClientRect().height);\n }\n }, [singleAlertRef.current]);\n};\n\nlet actionButtonKeyCounter = 1;\nexport const AlertItem = ({\n id,\n title,\n duration,\n variant = \"neutral\",\n emphasis = \"low\",\n content,\n className,\n actions = [],\n onClose,\n closeButtonTitle,\n wasShown\n}: Props) => {\n const timerHandler = useRef<ReturnType<typeof setTimeout>>();\n const onAnimationEnd = () => {\n onClose?.();\n };\n const { ref, animationStarted, startAnimation } = useAnimation<HTMLDivElement>(onAnimationEnd);\n\n useRegisterAlertHeight(ref, id);\n\n useEffect(() => {\n if (duration && duration > 0) {\n timerHandler.current = setTimeout(() => startAnimation(), duration);\n }\n if (ref) {\n ref.current?.addEventListener(\"focus\", onItemFocus);\n ref.current?.addEventListener(\"blur\", onItemBlur);\n ref.current?.addEventListener(\"mouseenter\", onItemFocus);\n ref.current?.addEventListener(\"mouseleave\", onItemBlur);\n }\n return () => {\n timerHandler.current && clearTimeout(timerHandler.current);\n };\n }, []);\n\n const onItemFocus = () => {\n timerHandler.current && clearTimeout(timerHandler.current);\n };\n\n const onItemBlur = () => {\n if (duration && duration > 0) {\n timerHandler.current = setTimeout(() => startAnimation(), duration);\n }\n };\n\n const getVariantIcon = () => {\n if (variant === \"error\") {\n return Icons.ErrorAlt;\n }\n\n if (variant === \"warning\") {\n return Icons.Warning;\n }\n\n return variant === \"success\" ? Icons.CheckmarkCircleAlt : Icons.InfoCircle;\n };\n\n const actionButtons = actions.map(actionProp => (\n <button\n key={`alert-action-button-${(actionButtonKeyCounter++).toString()}`}\n {...actionProp}\n onClick={e => {\n onClose?.();\n actionProp.onClick?.(e);\n }}\n className={classes[\"action-button\"]}\n >\n {actionProp.label}\n </button>\n ));\n\n const getAlertClasses = (): string => {\n const alertClasses = [classes[\"alert\"], classes[`${variant}`], classes[`emph-${emphasis}`]];\n if (animationStarted) {\n alertClasses.push(readyclasses[\"slide-out\"]);\n }\n if (!animationStarted && !wasShown) {\n alertClasses.push(readyclasses[\"slide-in\"]);\n }\n if (className) {\n alertClasses.push(className);\n }\n return alertClasses.join(\" \");\n };\n\n const getAria = () => {\n if (variant === \"error\" && (emphasis === \"medium\" || emphasis === \"high\")) {\n return \"assertive\";\n }\n return \"polite\";\n };\n\n const getContentOrTitle = () => {\n if (content) {\n return content;\n }\n return title;\n };\n\n return (\n <div\n {...{ [\"data-testid\"]: \"alert-container\" }}\n ref={ref}\n aria-live={getAria()}\n className={getAlertClasses()}\n role=\"alert\"\n >\n <div className={classes[\"outer-content-wrapper\"]}>\n <Icon icon={getVariantIcon()} className={classes[\"icon\"]} />\n <div className={classes[\"content-wrapper\"]} role=\"log\">\n {!!title && !!content && (\n <Typography\n {...{ [\"data-testid\"]: \"alert-title\" }}\n className={classes[\"title\"]}\n variant=\"body-bold\"\n tag=\"span\"\n >\n {title}\n </Typography>\n )}\n {(!!content || !!title) && (\n <Typography\n {...{ [\"data-testid\"]: \"alert-content\" }}\n className={classes[\"content\"]}\n variant=\"body\"\n >\n {getContentOrTitle()}\n </Typography>\n )}\n </div>\n </div>\n {actionButtons.length > 0 && (\n <div {...{ [\"data-testid\"]: \"alert-actions\" }} className={classes[\"actions\"]}>\n {actionButtons}\n </div>\n )}\n {onClose && (\n <IconButton\n className={classes[\"close-btn\"]}\n onClick={e => {\n e.stopPropagation();\n startAnimation();\n }}\n title={closeButtonTitle}\n {...{ [\"data-testid\"]: \"alert-close\" }}\n >\n <Icon icon={Icons.Times} />\n </IconButton>\n )}\n </div>\n );\n};\n"],"names":["actionButtonKeyCounter","id","title","duration","variant","emphasis","content","className","actions","onClose","closeButtonTitle","wasShown","timerHandler","useRef","ref","animationStarted","startAnimation","useAnimation","singleAlertRef","alertId","ctx","useContext","AlertContext","useEffect","current","setAlertHeight","getBoundingClientRect","height","useRegisterAlertHeight","setTimeout","_a","addEventListener","onItemFocus","_b","onItemBlur","_c","_d","clearTimeout","actionButtons","map","actionProp","React","createElement","key","toString","onClick","e","call","classes","label","alertClasses","push","readyclasses","join","getAlertClasses","role","Icon","icon","Icons","ErrorAlt","Warning","CheckmarkCircleAlt","InfoCircle","Typography","tag","length","IconButton","stopPropagation","Times"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"AlertItem.es.js","sources":["../../../../../src/components/Notifications/Alert/AlertItem/AlertItem.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, { ButtonHTMLAttributes, useContext, useEffect, useRef } from \"react\";\nimport { IconButton } from \"../../../Button/IconButton\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\nimport classes from \"./AlertItem.module.scss\";\nimport readyclasses from \"../../../../readyclasses.module.scss\";\nimport { useAnimation } from \"../../../../hooks/useAnimation\";\nimport { Typography } from \"../../../Typography/Typography\";\nimport AlertContext from \"../AlertProvider/AlertContext\";\n\nexport const EMPHASES = [\"low\", \"medium\", \"high\"] as const;\nexport type Emphasis = (typeof EMPHASES)[keyof typeof EMPHASES];\n\nexport const VARIANTS = [\"neutral\", \"informative\", \"success\", \"warning\", \"error\"] as const;\nexport type Variant = (typeof VARIANTS)[keyof typeof VARIANTS];\n\nexport type Actions = (ButtonHTMLAttributes<HTMLButtonElement> & { label: string })[];\n\nexport interface Props {\n id: string;\n title?: string | React.ReactNode;\n content?: string | React.ReactNode;\n duration?: number;\n emphasis?: Emphasis;\n variant?: Variant;\n className?: string;\n onClose?: () => void;\n closeButtonTitle?: string;\n actions?: Actions;\n wasShown?: boolean;\n}\n\nconst useRegisterAlertHeight = (\n singleAlertRef: React.RefObject<HTMLDivElement>,\n alertId: string\n) => {\n const ctx = useContext(AlertContext);\n\n useEffect(() => {\n if (singleAlertRef.current) {\n ctx.setAlertHeight(alertId, singleAlertRef.current.getBoundingClientRect().height);\n }\n }, [singleAlertRef.current]);\n};\n\nlet actionButtonKeyCounter = 1;\nexport const AlertItem = ({\n id,\n title,\n duration,\n variant = \"neutral\",\n emphasis = \"low\",\n content,\n className,\n actions = [],\n onClose,\n closeButtonTitle,\n wasShown\n}: Props) => {\n const timerHandler = useRef<ReturnType<typeof setTimeout>>();\n const onAnimationEnd = () => {\n onClose?.();\n };\n const { ref, animationStarted, startAnimation } = useAnimation<HTMLDivElement>(onAnimationEnd);\n\n useRegisterAlertHeight(ref, id);\n\n useEffect(() => {\n if (duration && duration > 0) {\n timerHandler.current = setTimeout(() => startAnimation(), duration);\n }\n if (ref) {\n ref.current?.addEventListener(\"focus\", onItemFocus);\n ref.current?.addEventListener(\"blur\", onItemBlur);\n ref.current?.addEventListener(\"mouseenter\", onItemFocus);\n ref.current?.addEventListener(\"mouseleave\", onItemBlur);\n }\n return () => {\n timerHandler.current && clearTimeout(timerHandler.current);\n };\n }, []);\n\n const onItemFocus = () => {\n timerHandler.current && clearTimeout(timerHandler.current);\n };\n\n const onItemBlur = () => {\n if (duration && duration > 0) {\n timerHandler.current = setTimeout(() => startAnimation(), duration);\n }\n };\n\n const getVariantIcon = () => {\n if (variant === \"error\") {\n return Icons.ErrorAlt;\n }\n\n if (variant === \"warning\") {\n return Icons.Warning;\n }\n\n return variant === \"success\" ? Icons.CheckmarkCircleAlt : Icons.InfoCircle;\n };\n\n const actionButtons = actions.map(actionProp => (\n <button\n key={`alert-action-button-${(actionButtonKeyCounter++).toString()}`}\n {...actionProp}\n onClick={e => {\n onClose?.();\n actionProp.onClick?.(e);\n }}\n className={classes[\"action-button\"]}\n >\n {actionProp.label}\n </button>\n ));\n\n const getAlertClasses = (): string => {\n const alertClasses = [classes[\"alert\"], classes[`${variant}`], classes[`emph-${emphasis}`]];\n if (animationStarted) {\n alertClasses.push(readyclasses[\"slide-out\"]);\n }\n if (!animationStarted && !wasShown) {\n alertClasses.push(readyclasses[\"slide-in\"]);\n }\n if (className) {\n alertClasses.push(className);\n }\n return alertClasses.join(\" \");\n };\n\n const getAria = () => {\n if (variant === \"error\" && (emphasis === \"medium\" || emphasis === \"high\")) {\n return \"assertive\";\n }\n return \"polite\";\n };\n\n const getContentOrTitle = () => {\n if (content) {\n return content;\n }\n return title;\n };\n\n return (\n <div\n {...{ [\"data-testid\"]: \"alert-container\" }}\n ref={ref}\n aria-live={getAria()}\n className={getAlertClasses()}\n role=\"alert\"\n >\n <div className={classes[\"outer-content-wrapper\"]}>\n <Icon icon={getVariantIcon()} className={classes[\"icon\"]} />\n <div className={classes[\"content-wrapper\"]} role=\"log\">\n {!!title && !!content && (\n <Typography\n {...{ [\"data-testid\"]: \"alert-title\" }}\n className={classes[\"title\"]}\n variant=\"body-bold\"\n tag=\"span\"\n >\n {title}\n </Typography>\n )}\n {(!!content || !!title) && (\n <Typography\n {...{ [\"data-testid\"]: \"alert-content\" }}\n className={classes[\"content\"]}\n variant=\"body\"\n >\n {getContentOrTitle()}\n </Typography>\n )}\n </div>\n </div>\n {actionButtons.length > 0 && (\n <div {...{ [\"data-testid\"]: \"alert-actions\" }} className={classes[\"actions\"]}>\n {actionButtons}\n </div>\n )}\n {onClose && (\n <IconButton\n className={classes[\"close-btn\"]}\n onClick={e => {\n e.stopPropagation();\n startAnimation();\n }}\n title={closeButtonTitle}\n {...{ [\"data-testid\"]: \"alert-close\" }}\n >\n <Icon icon={Icons.Times} />\n </IconButton>\n )}\n </div>\n );\n};\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"AlertItem.es.js","sources":["../../../../../src/components/Notifications/Alert/AlertItem/AlertItem.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, { ButtonHTMLAttributes, useContext, useEffect, useRef } from \"react\";\nimport { IconButton } from \"../../../Button/IconButton\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\nimport classes from \"./AlertItem.module.scss\";\nimport readyclasses from \"../../../../readyclasses.module.scss\";\nimport { useAnimation } from \"../../../../hooks/useAnimation\";\nimport { Typography } from \"../../../Typography/Typography\";\nimport AlertContext from \"../AlertProvider/AlertContext\";\n\nexport const EMPHASES = [\"low\", \"medium\", \"high\"] as const;\nexport type Emphasis = (typeof EMPHASES)[keyof typeof EMPHASES];\n\nexport const VARIANTS = [\"neutral\", \"informative\", \"success\", \"warning\", \"error\"] as const;\nexport type Variant = (typeof VARIANTS)[keyof typeof VARIANTS];\n\nexport type Actions = (ButtonHTMLAttributes<HTMLButtonElement> & { label: string })[];\n\nexport interface Props {\n id: string;\n title?: string | React.ReactNode;\n content?: string | React.ReactNode;\n duration?: number;\n emphasis?: Emphasis;\n variant?: Variant;\n className?: string;\n onClose?: () => void;\n closeButtonTitle?: string;\n actions?: Actions;\n wasShown?: boolean;\n}\n\nconst useRegisterAlertHeight = (\n singleAlertRef: React.RefObject<HTMLDivElement>,\n alertId: string\n) => {\n const ctx = useContext(AlertContext);\n\n useEffect(() => {\n if (singleAlertRef.current) {\n ctx.setAlertHeight(alertId, singleAlertRef.current.getBoundingClientRect().height);\n }\n }, [singleAlertRef.current]);\n};\n\nlet actionButtonKeyCounter = 1;\nexport const AlertItem = ({\n id,\n title,\n duration,\n variant = \"neutral\",\n emphasis = \"low\",\n content,\n className,\n actions = [],\n onClose,\n closeButtonTitle,\n wasShown\n}: Props) => {\n const timerHandler = useRef<ReturnType<typeof setTimeout>>();\n const onAnimationEnd = () => {\n onClose?.();\n };\n const { ref, animationStarted, startAnimation } = useAnimation<HTMLDivElement>(onAnimationEnd);\n\n useRegisterAlertHeight(ref, id);\n\n useEffect(() => {\n if (duration && duration > 0) {\n timerHandler.current = setTimeout(() => startAnimation(), duration);\n }\n if (ref) {\n ref.current?.addEventListener(\"focus\", onItemFocus);\n ref.current?.addEventListener(\"blur\", onItemBlur);\n ref.current?.addEventListener(\"mouseenter\", onItemFocus);\n ref.current?.addEventListener(\"mouseleave\", onItemBlur);\n }\n return () => {\n timerHandler.current && clearTimeout(timerHandler.current);\n };\n }, []);\n\n const onItemFocus = () => {\n timerHandler.current && clearTimeout(timerHandler.current);\n };\n\n const onItemBlur = () => {\n if (duration && duration > 0) {\n timerHandler.current = setTimeout(() => startAnimation(), duration);\n }\n };\n\n const getVariantIcon = () => {\n if (variant === \"error\") {\n return Icons.ErrorAlt;\n }\n\n if (variant === \"warning\") {\n return Icons.Warning;\n }\n\n return variant === \"success\" ? Icons.CheckmarkCircleAlt : Icons.InfoCircle;\n };\n\n const actionButtons = actions.map(actionProp => (\n <button\n key={`alert-action-button-${(actionButtonKeyCounter++).toString()}`}\n {...actionProp}\n onClick={e => {\n onClose?.();\n actionProp.onClick?.(e);\n }}\n className={classes[\"action-button\"]}\n >\n {actionProp.label}\n </button>\n ));\n\n const getAlertClasses = (): string => {\n const alertClasses = [classes[\"alert\"], classes[`${variant}`], classes[`emph-${emphasis}`]];\n if (animationStarted) {\n alertClasses.push(readyclasses[\"slide-out\"]);\n }\n if (!animationStarted && !wasShown) {\n alertClasses.push(readyclasses[\"slide-in\"]);\n }\n if (className) {\n alertClasses.push(className);\n }\n return alertClasses.join(\" \");\n };\n\n const getAria = () => {\n if (variant === \"error\" && (emphasis === \"medium\" || emphasis === \"high\")) {\n return \"assertive\";\n }\n return \"polite\";\n };\n\n const getContentOrTitle = () => {\n if (content) {\n return content;\n }\n return title;\n };\n\n return (\n <div\n {...{ [\"data-testid\"]: \"alert-container\" }}\n ref={ref}\n aria-live={getAria()}\n className={getAlertClasses()}\n role=\"alert\"\n >\n <div className={classes[\"outer-content-wrapper\"]}>\n <Icon icon={getVariantIcon()} className={classes[\"icon\"]} />\n <div className={classes[\"content-wrapper\"]} role=\"log\">\n {!!title && !!content && (\n <Typography\n {...{ [\"data-testid\"]: \"alert-title\" }}\n className={classes[\"title\"]}\n variant=\"body-bold\"\n tag=\"span\"\n >\n {title}\n </Typography>\n )}\n {(!!content || !!title) && (\n <Typography\n {...{ [\"data-testid\"]: \"alert-content\" }}\n className={classes[\"content\"]}\n variant=\"body\"\n >\n {getContentOrTitle()}\n </Typography>\n )}\n </div>\n </div>\n {actionButtons.length > 0 && (\n <div {...{ [\"data-testid\"]: \"alert-actions\" }} className={classes[\"actions\"]}>\n {actionButtons}\n </div>\n )}\n {onClose && (\n <IconButton\n className={classes[\"close-btn\"]}\n onClick={e => {\n e.stopPropagation();\n startAnimation();\n }}\n title={closeButtonTitle}\n {...{ [\"data-testid\"]: \"alert-close\" }}\n >\n <Icon icon={Icons.Times} />\n </IconButton>\n )}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AA+CA,MAAM,yBAAyB,CAC7B,gBACA,YACG;AACH,QAAM,MAAM,WAAW,YAAY;AAEnC,YAAU,MAAM;AACd,QAAI,eAAe,SAAS;AAC1B,UAAI,eAAe,SAAS,eAAe,QAAQ,sBAAA,EAAwB,MAAM;AAAA,IACnF;AAAA,EACF,GAAG,CAAC,eAAe,OAAO,CAAC;AAC7B;AAEA,IAAI,yBAAyB;AACtB,MAAM,YAAY,CAAC;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA,UAAU,CAAA;AAAA,EACV;AAAA,EACA;AAAA,EACA;AACF,MAAa;AACX,QAAM,eAAe,OAAA;AACrB,QAAM,iBAAiB,MAAM;AAC3B;AAAA,EACF;AACA,QAAM,EAAE,KAAK,kBAAkB,eAAA,IAAmB,aAA6B,cAAc;AAE7F,yBAAuB,KAAK,EAAE;AAE9B,YAAU,MAAM;;AACd,QAAI,YAAY,WAAW,GAAG;AAC5B,mBAAa,UAAU,WAAW,MAAM,eAAA,GAAkB,QAAQ;AAAA,IACpE;AACA,QAAI,KAAK;AACP,gBAAI,YAAJ,mBAAa,iBAAiB,SAAS;AACvC,gBAAI,YAAJ,mBAAa,iBAAiB,QAAQ;AACtC,gBAAI,YAAJ,mBAAa,iBAAiB,cAAc;AAC5C,gBAAI,YAAJ,mBAAa,iBAAiB,cAAc;AAAA,IAC9C;AACA,WAAO,MAAM;AACX,mBAAa,WAAW,aAAa,aAAa,OAAO;AAAA,IAC3D;AAAA,EACF,GAAG,CAAA,CAAE;AAEL,QAAM,cAAc,MAAM;AACxB,iBAAa,WAAW,aAAa,aAAa,OAAO;AAAA,EAC3D;AAEA,QAAM,aAAa,MAAM;AACvB,QAAI,YAAY,WAAW,GAAG;AAC5B,mBAAa,UAAU,WAAW,MAAM,eAAA,GAAkB,QAAQ;AAAA,IACpE;AAAA,EACF;AAEA,QAAM,iBAAiB,MAAM;AAC3B,QAAI,YAAY,SAAS;AACvB,aAAO,MAAM;AAAA,IACf;AAEA,QAAI,YAAY,WAAW;AACzB,aAAO,MAAM;AAAA,IACf;AAEA,WAAO,YAAY,YAAY,MAAM,qBAAqB,MAAM;AAAA,EAClE;AAEA,QAAM,gBAAgB,QAAQ,IAAI,CAAA,eAChC,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAK,wBAAwB,0BAA0B,SAAA,CAAU;AAAA,MAChE,GAAG;AAAA,MACJ,SAAS,CAAA,MAAK;;AACZ;AACA,yBAAW,YAAX,oCAAqB;AAAA,MACvB;AAAA,MACA,WAAW,QAAQ,eAAe;AAAA,IAAA;AAAA,IAEjC,WAAW;AAAA,EAAA,CAEf;AAED,QAAM,kBAAkB,MAAc;AACpC,UAAM,eAAe,CAAC,QAAQ,OAAO,GAAG,QAAQ,GAAG,OAAO,EAAE,GAAG,QAAQ,QAAQ,QAAQ,EAAE,CAAC;AAC1F,QAAI,kBAAkB;AACpB,mBAAa,KAAK,aAAa,WAAW,CAAC;AAAA,IAC7C;AACA,QAAI,CAAC,oBAAoB,CAAC,UAAU;AAClC,mBAAa,KAAK,aAAa,UAAU,CAAC;AAAA,IAC5C;AACA,QAAI,WAAW;AACb,mBAAa,KAAK,SAAS;AAAA,IAC7B;AACA,WAAO,aAAa,KAAK,GAAG;AAAA,EAC9B;AAEA,QAAM,UAAU,MAAM;AACpB,QAAI,YAAY,YAAY,aAAa,YAAY,aAAa,SAAS;AACzE,aAAO;AAAA,IACT;AACA,WAAO;AAAA,EACT;AAEA,QAAM,oBAAoB,MAAM;AAC9B,QAAI,SAAS;AACX,aAAO;AAAA,IACT;AACA,WAAO;AAAA,EACT;AAEA,SACE,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAG,EAAE,CAAC,aAAa,GAAG,kBAAA;AAAA,MACvB;AAAA,MACA,aAAW,QAAA;AAAA,MACX,WAAW,gBAAA;AAAA,MACX,MAAK;AAAA,IAAA;AAAA,IAEL,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,uBAAuB,EAAA,GAC7C,sBAAA,cAAC,MAAA,EAAK,MAAM,eAAA,GAAkB,WAAW,QAAQ,MAAM,EAAA,CAAG,GAC1D,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,iBAAiB,GAAG,MAAK,MAAA,GAC9C,CAAC,CAAC,SAAS,CAAC,CAAC,WACZ,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACE,GAAG,EAAE,CAAC,aAAa,GAAG,cAAA;AAAA,QACvB,WAAW,QAAQ,OAAO;AAAA,QAC1B,SAAQ;AAAA,QACR,KAAI;AAAA,MAAA;AAAA,MAEH;AAAA,IAAA,IAGH,CAAC,CAAC,WAAW,CAAC,CAAC,UACf,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACE,GAAG,EAAE,CAAC,aAAa,GAAG,gBAAA;AAAA,QACvB,WAAW,QAAQ,SAAS;AAAA,QAC5B,SAAQ;AAAA,MAAA;AAAA,MAEP,kBAAA;AAAA,IAAkB,CAGzB,CACF;AAAA,IACC,cAAc,SAAS,KACtB,sBAAA,cAAC,OAAA,EAAK,GAAG,EAAE,CAAC,aAAa,GAAG,mBAAmB,WAAW,QAAQ,SAAS,KACxE,aACH;AAAA,IAED,WACC,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,QAAQ,WAAW;AAAA,QAC9B,SAAS,CAAA,MAAK;AACZ,YAAE,gBAAA;AACF,yBAAA;AAAA,QACF;AAAA,QACA,OAAO;AAAA,QACN,GAAG,EAAE,CAAC,aAAa,GAAG,cAAA;AAAA,MAAc;AAAA,MAErC,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,MAAA,CAAO;AAAA,IAAA;AAAA,EAC3B;AAIR;"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.AlertItem_sr-only_gFXfX{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.AlertItem_hidden_gFXfX{display:none}.AlertItem_slide-in_gFXfX{animation:AlertItem_slide-in_gFXfX .5s forwards}@media (prefers-reduced-motion: reduce){.AlertItem_slide-in_gFXfX{animation-duration:.1ms}}.AlertItem_slide-out_gFXfX{animation:AlertItem_slide-out_gFXfX .5s forwards}@media (prefers-reduced-motion: reduce){.AlertItem_slide-out_gFXfX{animation-duration:.1ms}}@keyframes AlertItem_slide-in_gFXfX{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes AlertItem_slide-out_gFXfX{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 */.AlertItem_alert_gFXfX{padding:1rem .875rem;border-radius:var(--alert-border-radius);display:flex;gap:.5rem;align-items:center;width:100%;box-sizing:border-box;flex-grow:0}.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX{background-color:var(--alert-neutral-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-low_gFXfX{color:unset}.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-medium_gFXfX{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-neutral-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-high_gFXfX{background-color:var(--alert-neutral-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_content_gFXfX,.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_title_gFXfX,.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_close-btn_gFXfX,.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_icon_gFXfX,.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_action-button_gFXfX{color:var(--alert-text-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX{background-color:var(--alert-info-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-low_gFXfX{color:unset}.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-medium_gFXfX{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-info-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-high_gFXfX{background-color:var(--alert-info-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_content_gFXfX,.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_title_gFXfX,.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_close-btn_gFXfX,.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_icon_gFXfX,.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_action-button_gFXfX{color:var(--alert-text-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_success_gFXfX{background-color:var(--alert-success-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-low_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-success-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-medium_gFXfX{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-success-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-medium_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-success-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-high_gFXfX{background-color:var(--alert-success-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_content_gFXfX,.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_title_gFXfX,.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_close-btn_gFXfX,.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_icon_gFXfX,.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_action-button_gFXfX{color:var(--alert-text-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX{background-color:var(--alert-warning-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-low_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-warning-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-medium_gFXfX{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-warning-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-medium_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-warning-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-high_gFXfX{background-color:var(--alert-warning-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_content_gFXfX,.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_title_gFXfX,.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_close-btn_gFXfX,.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_icon_gFXfX,.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_action-button_gFXfX{color:var(--alert-text-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_error_gFXfX{background-color:var(--alert-error-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-low_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-error-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-medium_gFXfX{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-error-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-medium_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-error-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-high_gFXfX{background-color:var(--alert-error-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_content_gFXfX,.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_title_gFXfX,.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_close-btn_gFXfX,.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_icon_gFXfX,.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_action-button_gFXfX{color:var(--alert-text-inverted-color)}.AlertItem_alert_gFXfX+.AlertItem_alert_gFXfX{margin-top:.5rem}.AlertItem_alert_gFXfX .AlertItem_close-btn_gFXfX{color:var(--alert-text-color);align-self:center;width:2.5rem;height:2.5rem;margin:-.5rem 0;flex-shrink:0;border:0}.AlertItem_alert_gFXfX .AlertItem_close-btn_gFXfX span{font-size:var(--alert-font-size)}.AlertItem_alert_gFXfX .AlertItem_close-btn_gFXfX:not(:disabled):hover,.AlertItem_alert_gFXfX .AlertItem_close-btn_gFXfX:not(:disabled):focus{background-color:var(--color-black10)}.AlertItem_alert_gFXfX .AlertItem_close-btn_gFXfX:not(:disabled):active{background-color:var(--color-black20)}.AlertItem_alert_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-text-color);font-size:var(--font-size);height:var(--font-size-big);display:inline-flex;align-items:center;align-self:flex-start}.AlertItem_alert_gFXfX .AlertItem_title_gFXfX{color:var(--alert-text-color);flex:1;font-size:var(--alert-font-size);line-height:1.43;margin-bottom:.25rem;display:block}.AlertItem_alert_gFXfX .AlertItem_outer-content-wrapper_gFXfX{display:flex;gap:.5rem;flex-grow:1}.AlertItem_alert_gFXfX .AlertItem_content-wrapper_gFXfX{flex-grow:1;padding-left:.125rem}.AlertItem_alert_gFXfX .AlertItem_content_gFXfX{color:var(--alert-text-color);font-size:var(--alert-font-size);line-height:1.43;margin-bottom:0;word-break:break-word}.AlertItem_alert_gFXfX .AlertItem_actions_gFXfX{text-align:right;align-self:center}.AlertItem_alert_gFXfX .AlertItem_action-button_gFXfX{border-width:var(--button-border-width);border-style:var(--button-border-style);border-radius:var(--button-border-radius);white-space:nowrap;font-size:var(--alert-font-size);line-height:1;font-weight:400;margin:-.5rem 0;padding:.625rem 1.25rem;cursor:pointer;transition:color,background-color,border-color .2s ease-in-out;font-family:var(--font-family);color:var(--alert-text-color);background-color:transparent;border-color:transparent}.AlertItem_alert_gFXfX .AlertItem_action-button_gFXfX:disabled{color:var(--greyed-out);cursor:not-allowed}.AlertItem_alert_gFXfX .AlertItem_action-button_gFXfX:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.AlertItem_alert_gFXfX .AlertItem_action-button_gFXfX:not(:disabled):hover,.AlertItem_alert_gFXfX .AlertItem_action-button_gFXfX:not(:disabled):focus{background-color:var(--color-black10)}.AlertItem_alert_gFXfX .AlertItem_action-button_gFXfX:not(:disabled):active{background-color:var(--color-black20)}@media only screen and (min-width: 37.5em){.AlertItem_alert_gFXfX{width:-webkit-min-content;width:min-content;min-width:25rem}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="AlertItem_hidden_gFXfX",t="AlertItem_alert_gFXfX",r="AlertItem_neutral_gFXfX",o="AlertItem_content_gFXfX",n="AlertItem_title_gFXfX",l="AlertItem_icon_gFXfX",_="AlertItem_informative_gFXfX",X="AlertItem_success_gFXfX",s="AlertItem_warning_gFXfX",i="AlertItem_error_gFXfX",m="AlertItem_actions_gFXfX",g={"sr-only":"AlertItem_sr-only_gFXfX",hidden:e,"slide-in":"AlertItem_slide-in_gFXfX","slide-out":"AlertItem_slide-out_gFXfX",alert:t,neutral:r,"emph-low":"AlertItem_emph-low_gFXfX","emph-medium":"AlertItem_emph-medium_gFXfX","emph-high":"AlertItem_emph-high_gFXfX",content:o,title:n,"close-btn":"AlertItem_close-btn_gFXfX",icon:l,"action-button":"AlertItem_action-button_gFXfX",informative:_,success:X,warning:s,error:i,"outer-content-wrapper":"AlertItem_outer-content-wrapper_gFXfX","content-wrapper":"AlertItem_content-wrapper_gFXfX",actions:m};exports.actions=m,exports.alert=t,exports.content=o,exports.default=g,exports.error=i,exports.hidden=e,exports.icon=l,exports.informative=_,exports.neutral=r,exports.success=X,exports.title=n,exports.warning=s;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.AlertItem_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.AlertItem_hidden_jyx43{display:none}.AlertItem_slide-in_jyx43{animation:AlertItem_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.AlertItem_slide-in_jyx43{animation-duration:.1ms}}.AlertItem_slide-out_jyx43{animation:AlertItem_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.AlertItem_slide-out_jyx43{animation-duration:.1ms}}@keyframes AlertItem_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes AlertItem_slide-out_jyx43{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 */.AlertItem_alert_jyx43{padding:1rem .875rem;border-radius:var(--alert-border-radius);display:flex;gap:.5rem;align-items:center;width:100%;box-sizing:border-box;flex-grow:0;pointer-events:auto}.AlertItem_alert_jyx43.AlertItem_neutral_jyx43{background-color:var(--alert-neutral-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-low_jyx43{color:unset}.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-medium_jyx43{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-neutral-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-high_jyx43{background-color:var(--alert-neutral-inverted-color)}.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-high_jyx43 .AlertItem_content_jyx43,.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-high_jyx43 .AlertItem_title_jyx43,.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-high_jyx43 .AlertItem_close-btn_jyx43,.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-high_jyx43 .AlertItem_icon_jyx43,.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-high_jyx43 .AlertItem_action-button_jyx43{color:var(--alert-text-inverted-color)}.AlertItem_alert_jyx43.AlertItem_informative_jyx43{background-color:var(--alert-info-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-low_jyx43{color:unset}.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-medium_jyx43{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-info-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-high_jyx43{background-color:var(--alert-info-inverted-color)}.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-high_jyx43 .AlertItem_content_jyx43,.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-high_jyx43 .AlertItem_title_jyx43,.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-high_jyx43 .AlertItem_close-btn_jyx43,.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-high_jyx43 .AlertItem_icon_jyx43,.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-high_jyx43 .AlertItem_action-button_jyx43{color:var(--alert-text-inverted-color)}.AlertItem_alert_jyx43.AlertItem_success_jyx43{background-color:var(--alert-success-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-low_jyx43 .AlertItem_icon_jyx43{color:var(--alert-success-inverted-color)}.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-medium_jyx43{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-success-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-medium_jyx43 .AlertItem_icon_jyx43{color:var(--alert-success-inverted-color)}.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-high_jyx43{background-color:var(--alert-success-inverted-color)}.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-high_jyx43 .AlertItem_content_jyx43,.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-high_jyx43 .AlertItem_title_jyx43,.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-high_jyx43 .AlertItem_close-btn_jyx43,.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-high_jyx43 .AlertItem_icon_jyx43,.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-high_jyx43 .AlertItem_action-button_jyx43{color:var(--alert-text-inverted-color)}.AlertItem_alert_jyx43.AlertItem_warning_jyx43{background-color:var(--alert-warning-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-low_jyx43 .AlertItem_icon_jyx43{color:var(--alert-warning-inverted-color)}.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-medium_jyx43{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-warning-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-medium_jyx43 .AlertItem_icon_jyx43{color:var(--alert-warning-inverted-color)}.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-high_jyx43{background-color:var(--alert-warning-inverted-color)}.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-high_jyx43 .AlertItem_content_jyx43,.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-high_jyx43 .AlertItem_title_jyx43,.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-high_jyx43 .AlertItem_close-btn_jyx43,.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-high_jyx43 .AlertItem_icon_jyx43,.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-high_jyx43 .AlertItem_action-button_jyx43{color:var(--alert-text-inverted-color)}.AlertItem_alert_jyx43.AlertItem_error_jyx43{background-color:var(--alert-error-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-low_jyx43 .AlertItem_icon_jyx43{color:var(--alert-error-inverted-color)}.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-medium_jyx43{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-error-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-medium_jyx43 .AlertItem_icon_jyx43{color:var(--alert-error-inverted-color)}.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-high_jyx43{background-color:var(--alert-error-inverted-color)}.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-high_jyx43 .AlertItem_content_jyx43,.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-high_jyx43 .AlertItem_title_jyx43,.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-high_jyx43 .AlertItem_close-btn_jyx43,.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-high_jyx43 .AlertItem_icon_jyx43,.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-high_jyx43 .AlertItem_action-button_jyx43{color:var(--alert-text-inverted-color)}.AlertItem_alert_jyx43+.AlertItem_alert_jyx43{margin-top:.5rem}.AlertItem_alert_jyx43 .AlertItem_close-btn_jyx43{color:var(--alert-text-color);align-self:center;width:2.5rem;height:2.5rem;margin:-.5rem 0;flex-shrink:0;border:0}.AlertItem_alert_jyx43 .AlertItem_close-btn_jyx43 span{font-size:var(--alert-font-size)}.AlertItem_alert_jyx43 .AlertItem_close-btn_jyx43:not(:disabled):hover,.AlertItem_alert_jyx43 .AlertItem_close-btn_jyx43:not(:disabled):focus{background-color:var(--color-black10)}.AlertItem_alert_jyx43 .AlertItem_close-btn_jyx43:not(:disabled):active{background-color:var(--color-black20)}.AlertItem_alert_jyx43 .AlertItem_icon_jyx43{color:var(--alert-text-color);font-size:var(--font-size);height:var(--font-size-big);display:inline-flex;align-items:center;align-self:flex-start}.AlertItem_alert_jyx43 .AlertItem_title_jyx43{color:var(--alert-text-color);flex:1;font-size:var(--alert-font-size);line-height:1.43;margin-bottom:.25rem;display:block}.AlertItem_alert_jyx43 .AlertItem_outer-content-wrapper_jyx43{display:flex;gap:.5rem;flex-grow:1}.AlertItem_alert_jyx43 .AlertItem_content-wrapper_jyx43{flex-grow:1;padding-left:.125rem}.AlertItem_alert_jyx43 .AlertItem_content_jyx43{color:var(--alert-text-color);font-size:var(--alert-font-size);line-height:1.43;margin-bottom:0;word-break:break-word}.AlertItem_alert_jyx43 .AlertItem_actions_jyx43{text-align:right;align-self:center}.AlertItem_alert_jyx43 .AlertItem_action-button_jyx43{border-width:var(--button-border-width);border-style:var(--button-border-style);border-radius:var(--button-border-radius);white-space:nowrap;font-size:var(--alert-font-size);line-height:1;font-weight:400;margin:-.5rem 0;padding:.625rem 1.25rem;cursor:pointer;transition:color,background-color,border-color .2s ease-in-out;font-family:var(--font-family);color:var(--alert-text-color);background-color:transparent;border-color:transparent}.AlertItem_alert_jyx43 .AlertItem_action-button_jyx43:disabled{color:var(--greyed-out);cursor:not-allowed}.AlertItem_alert_jyx43 .AlertItem_action-button_jyx43:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.AlertItem_alert_jyx43 .AlertItem_action-button_jyx43:not(:disabled):hover,.AlertItem_alert_jyx43 .AlertItem_action-button_jyx43:not(:disabled):focus{background-color:var(--color-black10)}.AlertItem_alert_jyx43 .AlertItem_action-button_jyx43:not(:disabled):active{background-color:var(--color-black20)}@media only screen and (min-width:37.5em){.AlertItem_alert_jyx43{width:min-content;min-width:25rem}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="AlertItem_hidden_jyx43",t="AlertItem_alert_jyx43",r="AlertItem_neutral_jyx43",o="AlertItem_content_jyx43",n="AlertItem_title_jyx43",l="AlertItem_icon_jyx43",_="AlertItem_informative_jyx43",s="AlertItem_success_jyx43",i="AlertItem_warning_jyx43",m="AlertItem_error_jyx43",x="AlertItem_actions_jyx43",p={"sr-only":"AlertItem_sr-only_jyx43",hidden:e,"slide-in":"AlertItem_slide-in_jyx43","slide-out":"AlertItem_slide-out_jyx43",alert:t,neutral:r,"emph-low":"AlertItem_emph-low_jyx43","emph-medium":"AlertItem_emph-medium_jyx43","emph-high":"AlertItem_emph-high_jyx43",content:o,title:n,"close-btn":"AlertItem_close-btn_jyx43",icon:l,"action-button":"AlertItem_action-button_jyx43",informative:_,success:s,warning:i,error:m,"outer-content-wrapper":"AlertItem_outer-content-wrapper_jyx43","content-wrapper":"AlertItem_content-wrapper_jyx43",actions:x};exports.actions=x,exports.alert=t,exports.content=o,exports.default=p,exports.error=m,exports.hidden=e,exports.icon=l,exports.informative=_,exports.neutral=r,exports.success=s,exports.title=n,exports.warning=i;
3
3
  //# sourceMappingURL=AlertItem.module.scss.cjs.js.map
@@ -1,36 +1,36 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.AlertItem_sr-only_gFXfX{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.AlertItem_hidden_gFXfX{display:none}.AlertItem_slide-in_gFXfX{animation:AlertItem_slide-in_gFXfX .5s forwards}@media (prefers-reduced-motion: reduce){.AlertItem_slide-in_gFXfX{animation-duration:.1ms}}.AlertItem_slide-out_gFXfX{animation:AlertItem_slide-out_gFXfX .5s forwards}@media (prefers-reduced-motion: reduce){.AlertItem_slide-out_gFXfX{animation-duration:.1ms}}@keyframes AlertItem_slide-in_gFXfX{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes AlertItem_slide-out_gFXfX{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 */.AlertItem_alert_gFXfX{padding:1rem .875rem;border-radius:var(--alert-border-radius);display:flex;gap:.5rem;align-items:center;width:100%;box-sizing:border-box;flex-grow:0}.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX{background-color:var(--alert-neutral-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-low_gFXfX{color:unset}.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-medium_gFXfX{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-neutral-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-high_gFXfX{background-color:var(--alert-neutral-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_content_gFXfX,.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_title_gFXfX,.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_close-btn_gFXfX,.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_icon_gFXfX,.AlertItem_alert_gFXfX.AlertItem_neutral_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_action-button_gFXfX{color:var(--alert-text-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX{background-color:var(--alert-info-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-low_gFXfX{color:unset}.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-medium_gFXfX{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-info-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-high_gFXfX{background-color:var(--alert-info-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_content_gFXfX,.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_title_gFXfX,.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_close-btn_gFXfX,.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_icon_gFXfX,.AlertItem_alert_gFXfX.AlertItem_informative_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_action-button_gFXfX{color:var(--alert-text-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_success_gFXfX{background-color:var(--alert-success-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-low_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-success-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-medium_gFXfX{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-success-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-medium_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-success-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-high_gFXfX{background-color:var(--alert-success-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_content_gFXfX,.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_title_gFXfX,.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_close-btn_gFXfX,.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_icon_gFXfX,.AlertItem_alert_gFXfX.AlertItem_success_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_action-button_gFXfX{color:var(--alert-text-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX{background-color:var(--alert-warning-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-low_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-warning-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-medium_gFXfX{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-warning-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-medium_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-warning-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-high_gFXfX{background-color:var(--alert-warning-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_content_gFXfX,.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_title_gFXfX,.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_close-btn_gFXfX,.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_icon_gFXfX,.AlertItem_alert_gFXfX.AlertItem_warning_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_action-button_gFXfX{color:var(--alert-text-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_error_gFXfX{background-color:var(--alert-error-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-low_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-error-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-medium_gFXfX{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-error-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-medium_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-error-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-high_gFXfX{background-color:var(--alert-error-inverted-color)}.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_content_gFXfX,.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_title_gFXfX,.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_close-btn_gFXfX,.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_icon_gFXfX,.AlertItem_alert_gFXfX.AlertItem_error_gFXfX.AlertItem_emph-high_gFXfX .AlertItem_action-button_gFXfX{color:var(--alert-text-inverted-color)}.AlertItem_alert_gFXfX+.AlertItem_alert_gFXfX{margin-top:.5rem}.AlertItem_alert_gFXfX .AlertItem_close-btn_gFXfX{color:var(--alert-text-color);align-self:center;width:2.5rem;height:2.5rem;margin:-.5rem 0;flex-shrink:0;border:0}.AlertItem_alert_gFXfX .AlertItem_close-btn_gFXfX span{font-size:var(--alert-font-size)}.AlertItem_alert_gFXfX .AlertItem_close-btn_gFXfX:not(:disabled):hover,.AlertItem_alert_gFXfX .AlertItem_close-btn_gFXfX:not(:disabled):focus{background-color:var(--color-black10)}.AlertItem_alert_gFXfX .AlertItem_close-btn_gFXfX:not(:disabled):active{background-color:var(--color-black20)}.AlertItem_alert_gFXfX .AlertItem_icon_gFXfX{color:var(--alert-text-color);font-size:var(--font-size);height:var(--font-size-big);display:inline-flex;align-items:center;align-self:flex-start}.AlertItem_alert_gFXfX .AlertItem_title_gFXfX{color:var(--alert-text-color);flex:1;font-size:var(--alert-font-size);line-height:1.43;margin-bottom:.25rem;display:block}.AlertItem_alert_gFXfX .AlertItem_outer-content-wrapper_gFXfX{display:flex;gap:.5rem;flex-grow:1}.AlertItem_alert_gFXfX .AlertItem_content-wrapper_gFXfX{flex-grow:1;padding-left:.125rem}.AlertItem_alert_gFXfX .AlertItem_content_gFXfX{color:var(--alert-text-color);font-size:var(--alert-font-size);line-height:1.43;margin-bottom:0;word-break:break-word}.AlertItem_alert_gFXfX .AlertItem_actions_gFXfX{text-align:right;align-self:center}.AlertItem_alert_gFXfX .AlertItem_action-button_gFXfX{border-width:var(--button-border-width);border-style:var(--button-border-style);border-radius:var(--button-border-radius);white-space:nowrap;font-size:var(--alert-font-size);line-height:1;font-weight:400;margin:-.5rem 0;padding:.625rem 1.25rem;cursor:pointer;transition:color,background-color,border-color .2s ease-in-out;font-family:var(--font-family);color:var(--alert-text-color);background-color:transparent;border-color:transparent}.AlertItem_alert_gFXfX .AlertItem_action-button_gFXfX:disabled{color:var(--greyed-out);cursor:not-allowed}.AlertItem_alert_gFXfX .AlertItem_action-button_gFXfX:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.AlertItem_alert_gFXfX .AlertItem_action-button_gFXfX:not(:disabled):hover,.AlertItem_alert_gFXfX .AlertItem_action-button_gFXfX:not(:disabled):focus{background-color:var(--color-black10)}.AlertItem_alert_gFXfX .AlertItem_action-button_gFXfX:not(:disabled):active{background-color:var(--color-black20)}@media only screen and (min-width: 37.5em){.AlertItem_alert_gFXfX{width:-webkit-min-content;width:min-content;min-width:25rem}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- const hidden = "AlertItem_hidden_gFXfX";
3
- const alert = "AlertItem_alert_gFXfX";
4
- const neutral = "AlertItem_neutral_gFXfX";
5
- const content = "AlertItem_content_gFXfX";
6
- const title = "AlertItem_title_gFXfX";
7
- const icon = "AlertItem_icon_gFXfX";
8
- const informative = "AlertItem_informative_gFXfX";
9
- const success = "AlertItem_success_gFXfX";
10
- const warning = "AlertItem_warning_gFXfX";
11
- const error = "AlertItem_error_gFXfX";
12
- const actions = "AlertItem_actions_gFXfX";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.AlertItem_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.AlertItem_hidden_jyx43{display:none}.AlertItem_slide-in_jyx43{animation:AlertItem_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.AlertItem_slide-in_jyx43{animation-duration:.1ms}}.AlertItem_slide-out_jyx43{animation:AlertItem_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.AlertItem_slide-out_jyx43{animation-duration:.1ms}}@keyframes AlertItem_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes AlertItem_slide-out_jyx43{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 */.AlertItem_alert_jyx43{padding:1rem .875rem;border-radius:var(--alert-border-radius);display:flex;gap:.5rem;align-items:center;width:100%;box-sizing:border-box;flex-grow:0;pointer-events:auto}.AlertItem_alert_jyx43.AlertItem_neutral_jyx43{background-color:var(--alert-neutral-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-low_jyx43{color:unset}.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-medium_jyx43{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-neutral-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-high_jyx43{background-color:var(--alert-neutral-inverted-color)}.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-high_jyx43 .AlertItem_content_jyx43,.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-high_jyx43 .AlertItem_title_jyx43,.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-high_jyx43 .AlertItem_close-btn_jyx43,.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-high_jyx43 .AlertItem_icon_jyx43,.AlertItem_alert_jyx43.AlertItem_neutral_jyx43.AlertItem_emph-high_jyx43 .AlertItem_action-button_jyx43{color:var(--alert-text-inverted-color)}.AlertItem_alert_jyx43.AlertItem_informative_jyx43{background-color:var(--alert-info-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-low_jyx43{color:unset}.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-medium_jyx43{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-info-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-high_jyx43{background-color:var(--alert-info-inverted-color)}.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-high_jyx43 .AlertItem_content_jyx43,.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-high_jyx43 .AlertItem_title_jyx43,.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-high_jyx43 .AlertItem_close-btn_jyx43,.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-high_jyx43 .AlertItem_icon_jyx43,.AlertItem_alert_jyx43.AlertItem_informative_jyx43.AlertItem_emph-high_jyx43 .AlertItem_action-button_jyx43{color:var(--alert-text-inverted-color)}.AlertItem_alert_jyx43.AlertItem_success_jyx43{background-color:var(--alert-success-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-low_jyx43 .AlertItem_icon_jyx43{color:var(--alert-success-inverted-color)}.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-medium_jyx43{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-success-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-medium_jyx43 .AlertItem_icon_jyx43{color:var(--alert-success-inverted-color)}.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-high_jyx43{background-color:var(--alert-success-inverted-color)}.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-high_jyx43 .AlertItem_content_jyx43,.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-high_jyx43 .AlertItem_title_jyx43,.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-high_jyx43 .AlertItem_close-btn_jyx43,.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-high_jyx43 .AlertItem_icon_jyx43,.AlertItem_alert_jyx43.AlertItem_success_jyx43.AlertItem_emph-high_jyx43 .AlertItem_action-button_jyx43{color:var(--alert-text-inverted-color)}.AlertItem_alert_jyx43.AlertItem_warning_jyx43{background-color:var(--alert-warning-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-low_jyx43 .AlertItem_icon_jyx43{color:var(--alert-warning-inverted-color)}.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-medium_jyx43{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-warning-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-medium_jyx43 .AlertItem_icon_jyx43{color:var(--alert-warning-inverted-color)}.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-high_jyx43{background-color:var(--alert-warning-inverted-color)}.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-high_jyx43 .AlertItem_content_jyx43,.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-high_jyx43 .AlertItem_title_jyx43,.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-high_jyx43 .AlertItem_close-btn_jyx43,.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-high_jyx43 .AlertItem_icon_jyx43,.AlertItem_alert_jyx43.AlertItem_warning_jyx43.AlertItem_emph-high_jyx43 .AlertItem_action-button_jyx43{color:var(--alert-text-inverted-color)}.AlertItem_alert_jyx43.AlertItem_error_jyx43{background-color:var(--alert-error-background-color);border-radius:var(--alert-border-radius)}.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-low_jyx43 .AlertItem_icon_jyx43{color:var(--alert-error-inverted-color)}.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-medium_jyx43{border-style:none none none solid;border-width:var(--alert-border-width);border-color:var(--alert-error-inverted-color);padding-left:calc(1 * var(--font-size) - var(--alert-border-width))}.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-medium_jyx43 .AlertItem_icon_jyx43{color:var(--alert-error-inverted-color)}.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-high_jyx43{background-color:var(--alert-error-inverted-color)}.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-high_jyx43 .AlertItem_content_jyx43,.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-high_jyx43 .AlertItem_title_jyx43,.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-high_jyx43 .AlertItem_close-btn_jyx43,.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-high_jyx43 .AlertItem_icon_jyx43,.AlertItem_alert_jyx43.AlertItem_error_jyx43.AlertItem_emph-high_jyx43 .AlertItem_action-button_jyx43{color:var(--alert-text-inverted-color)}.AlertItem_alert_jyx43+.AlertItem_alert_jyx43{margin-top:.5rem}.AlertItem_alert_jyx43 .AlertItem_close-btn_jyx43{color:var(--alert-text-color);align-self:center;width:2.5rem;height:2.5rem;margin:-.5rem 0;flex-shrink:0;border:0}.AlertItem_alert_jyx43 .AlertItem_close-btn_jyx43 span{font-size:var(--alert-font-size)}.AlertItem_alert_jyx43 .AlertItem_close-btn_jyx43:not(:disabled):hover,.AlertItem_alert_jyx43 .AlertItem_close-btn_jyx43:not(:disabled):focus{background-color:var(--color-black10)}.AlertItem_alert_jyx43 .AlertItem_close-btn_jyx43:not(:disabled):active{background-color:var(--color-black20)}.AlertItem_alert_jyx43 .AlertItem_icon_jyx43{color:var(--alert-text-color);font-size:var(--font-size);height:var(--font-size-big);display:inline-flex;align-items:center;align-self:flex-start}.AlertItem_alert_jyx43 .AlertItem_title_jyx43{color:var(--alert-text-color);flex:1;font-size:var(--alert-font-size);line-height:1.43;margin-bottom:.25rem;display:block}.AlertItem_alert_jyx43 .AlertItem_outer-content-wrapper_jyx43{display:flex;gap:.5rem;flex-grow:1}.AlertItem_alert_jyx43 .AlertItem_content-wrapper_jyx43{flex-grow:1;padding-left:.125rem}.AlertItem_alert_jyx43 .AlertItem_content_jyx43{color:var(--alert-text-color);font-size:var(--alert-font-size);line-height:1.43;margin-bottom:0;word-break:break-word}.AlertItem_alert_jyx43 .AlertItem_actions_jyx43{text-align:right;align-self:center}.AlertItem_alert_jyx43 .AlertItem_action-button_jyx43{border-width:var(--button-border-width);border-style:var(--button-border-style);border-radius:var(--button-border-radius);white-space:nowrap;font-size:var(--alert-font-size);line-height:1;font-weight:400;margin:-.5rem 0;padding:.625rem 1.25rem;cursor:pointer;transition:color,background-color,border-color .2s ease-in-out;font-family:var(--font-family);color:var(--alert-text-color);background-color:transparent;border-color:transparent}.AlertItem_alert_jyx43 .AlertItem_action-button_jyx43:disabled{color:var(--greyed-out);cursor:not-allowed}.AlertItem_alert_jyx43 .AlertItem_action-button_jyx43:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.AlertItem_alert_jyx43 .AlertItem_action-button_jyx43:not(:disabled):hover,.AlertItem_alert_jyx43 .AlertItem_action-button_jyx43:not(:disabled):focus{background-color:var(--color-black10)}.AlertItem_alert_jyx43 .AlertItem_action-button_jyx43:not(:disabled):active{background-color:var(--color-black20)}@media only screen and (min-width:37.5em){.AlertItem_alert_jyx43{width:min-content;min-width:25rem}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ const hidden = "AlertItem_hidden_jyx43";
3
+ const alert = "AlertItem_alert_jyx43";
4
+ const neutral = "AlertItem_neutral_jyx43";
5
+ const content = "AlertItem_content_jyx43";
6
+ const title = "AlertItem_title_jyx43";
7
+ const icon = "AlertItem_icon_jyx43";
8
+ const informative = "AlertItem_informative_jyx43";
9
+ const success = "AlertItem_success_jyx43";
10
+ const warning = "AlertItem_warning_jyx43";
11
+ const error = "AlertItem_error_jyx43";
12
+ const actions = "AlertItem_actions_jyx43";
13
13
  const classes = {
14
- "sr-only": "AlertItem_sr-only_gFXfX",
14
+ "sr-only": "AlertItem_sr-only_jyx43",
15
15
  hidden,
16
- "slide-in": "AlertItem_slide-in_gFXfX",
17
- "slide-out": "AlertItem_slide-out_gFXfX",
16
+ "slide-in": "AlertItem_slide-in_jyx43",
17
+ "slide-out": "AlertItem_slide-out_jyx43",
18
18
  alert,
19
19
  neutral,
20
- "emph-low": "AlertItem_emph-low_gFXfX",
21
- "emph-medium": "AlertItem_emph-medium_gFXfX",
22
- "emph-high": "AlertItem_emph-high_gFXfX",
20
+ "emph-low": "AlertItem_emph-low_jyx43",
21
+ "emph-medium": "AlertItem_emph-medium_jyx43",
22
+ "emph-high": "AlertItem_emph-high_jyx43",
23
23
  content,
24
24
  title,
25
- "close-btn": "AlertItem_close-btn_gFXfX",
25
+ "close-btn": "AlertItem_close-btn_jyx43",
26
26
  icon,
27
- "action-button": "AlertItem_action-button_gFXfX",
27
+ "action-button": "AlertItem_action-button_jyx43",
28
28
  informative,
29
29
  success,
30
30
  warning,
31
31
  error,
32
- "outer-content-wrapper": "AlertItem_outer-content-wrapper_gFXfX",
33
- "content-wrapper": "AlertItem_content-wrapper_gFXfX",
32
+ "outer-content-wrapper": "AlertItem_outer-content-wrapper_jyx43",
33
+ "content-wrapper": "AlertItem_content-wrapper_jyx43",
34
34
  actions
35
35
  };
36
36
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"AlertContext.cjs.js","sources":["../../../../../src/components/Notifications/Alert/AlertProvider/AlertContext.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 { AlertEntry } from \"./AlertProvider\";\nimport { createContext } from \"react\";\n\nexport type AlertQueue = Omit<AlertEntry, \"id\">;\n\nexport interface AlertContextValue {\n enqueueAlert: (entry: AlertQueue) => void;\n enqueueInfoAlert: (entry: AlertQueue) => void;\n enqueueSuccessAlert: (entry: AlertQueue) => void;\n enqueueWarningAlert: (entry: AlertQueue) => void;\n enqueueErrorAlert: (entry: AlertQueue) => void;\n setAlertHeight: (id: string, height: number) => void;\n alerts: AlertEntry[];\n}\n\nconst AlertContext = createContext<AlertContextValue>({\n enqueueAlert: entry => null,\n enqueueInfoAlert: entry => null,\n enqueueSuccessAlert: entry => null,\n enqueueErrorAlert: entry => null,\n enqueueWarningAlert: entry => null,\n setAlertHeight: (id, height) => null,\n alerts: []\n});\n\nexport default AlertContext;\n"],"names":["AlertContext","createContext","enqueueAlert","entry","enqueueInfoAlert","enqueueSuccessAlert","enqueueErrorAlert","enqueueWarningAlert","setAlertHeight","id","height","alerts"],"mappings":"kHA+BMA,mBAAeC,cAAiC,CACpDC,aAAuBC,GAAA,KACvBC,iBAA2BD,GAAA,KAC3BE,oBAA8BF,GAAA,KAC9BG,kBAA4BH,GAAA,KAC5BI,oBAA8BJ,GAAA,KAC9BK,eAAgB,CAACC,EAAIC,IAAW,KAChCC,OAAQ"}
1
+ {"version":3,"file":"AlertContext.cjs.js","sources":["../../../../../src/components/Notifications/Alert/AlertProvider/AlertContext.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 { AlertEntry } from \"./AlertProvider\";\nimport { createContext } from \"react\";\n\nexport type AlertQueue = Omit<AlertEntry, \"id\">;\n\nexport interface AlertContextValue {\n enqueueAlert: (entry: AlertQueue) => void;\n enqueueInfoAlert: (entry: AlertQueue) => void;\n enqueueSuccessAlert: (entry: AlertQueue) => void;\n enqueueWarningAlert: (entry: AlertQueue) => void;\n enqueueErrorAlert: (entry: AlertQueue) => void;\n setAlertHeight: (id: string, height: number) => void;\n alerts: AlertEntry[];\n}\n\nconst AlertContext = createContext<AlertContextValue>({\n enqueueAlert: entry => null,\n enqueueInfoAlert: entry => null,\n enqueueSuccessAlert: entry => null,\n enqueueErrorAlert: entry => null,\n enqueueWarningAlert: entry => null,\n setAlertHeight: (id, height) => null,\n alerts: []\n});\n\nexport default AlertContext;\n"],"names":["AlertContext","createContext","enqueueAlert","entry","enqueueInfoAlert","enqueueSuccessAlert","enqueueErrorAlert","enqueueWarningAlert","setAlertHeight","id","height","alerts"],"mappings":"kHA+BMA,mBAAeC,cAAiC,CACpDC,aAAcC,GAAS,KACvBC,iBAAkBD,GAAS,KAC3BE,oBAAqBF,GAAS,KAC9BG,kBAAmBH,GAAS,KAC5BI,oBAAqBJ,GAAS,KAC9BK,eAAgB,CAACC,EAAIC,IAAW,KAChCC,OAAQ"}
@@ -1 +1 @@
1
- {"version":3,"file":"AlertContext.es.js","sources":["../../../../../src/components/Notifications/Alert/AlertProvider/AlertContext.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 { AlertEntry } from \"./AlertProvider\";\nimport { createContext } from \"react\";\n\nexport type AlertQueue = Omit<AlertEntry, \"id\">;\n\nexport interface AlertContextValue {\n enqueueAlert: (entry: AlertQueue) => void;\n enqueueInfoAlert: (entry: AlertQueue) => void;\n enqueueSuccessAlert: (entry: AlertQueue) => void;\n enqueueWarningAlert: (entry: AlertQueue) => void;\n enqueueErrorAlert: (entry: AlertQueue) => void;\n setAlertHeight: (id: string, height: number) => void;\n alerts: AlertEntry[];\n}\n\nconst AlertContext = createContext<AlertContextValue>({\n enqueueAlert: entry => null,\n enqueueInfoAlert: entry => null,\n enqueueSuccessAlert: entry => null,\n enqueueErrorAlert: entry => null,\n enqueueWarningAlert: entry => null,\n setAlertHeight: (id, height) => null,\n alerts: []\n});\n\nexport default AlertContext;\n"],"names":[],"mappings":";AA+BA,MAAM,eAAe,cAAiC;AAAA,EACpD,cAAc,CAAS,UAAA;AAAA,EACvB,kBAAkB,CAAS,UAAA;AAAA,EAC3B,qBAAqB,CAAS,UAAA;AAAA,EAC9B,mBAAmB,CAAS,UAAA;AAAA,EAC5B,qBAAqB,CAAS,UAAA;AAAA,EAC9B,gBAAgB,CAAC,IAAI,WAAW;AAAA,EAChC,QAAQ,CAAA;AACV,CAAC;"}
1
+ {"version":3,"file":"AlertContext.es.js","sources":["../../../../../src/components/Notifications/Alert/AlertProvider/AlertContext.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 { AlertEntry } from \"./AlertProvider\";\nimport { createContext } from \"react\";\n\nexport type AlertQueue = Omit<AlertEntry, \"id\">;\n\nexport interface AlertContextValue {\n enqueueAlert: (entry: AlertQueue) => void;\n enqueueInfoAlert: (entry: AlertQueue) => void;\n enqueueSuccessAlert: (entry: AlertQueue) => void;\n enqueueWarningAlert: (entry: AlertQueue) => void;\n enqueueErrorAlert: (entry: AlertQueue) => void;\n setAlertHeight: (id: string, height: number) => void;\n alerts: AlertEntry[];\n}\n\nconst AlertContext = createContext<AlertContextValue>({\n enqueueAlert: entry => null,\n enqueueInfoAlert: entry => null,\n enqueueSuccessAlert: entry => null,\n enqueueErrorAlert: entry => null,\n enqueueWarningAlert: entry => null,\n setAlertHeight: (id, height) => null,\n alerts: []\n});\n\nexport default AlertContext;\n"],"names":[],"mappings":";AA+BA,MAAM,eAAe,cAAiC;AAAA,EACpD,cAAc,CAAA,UAAS;AAAA,EACvB,kBAAkB,CAAA,UAAS;AAAA,EAC3B,qBAAqB,CAAA,UAAS;AAAA,EAC9B,mBAAmB,CAAA,UAAS;AAAA,EAC5B,qBAAqB,CAAA,UAAS;AAAA,EAC9B,gBAAgB,CAAC,IAAI,WAAW;AAAA,EAChC,QAAQ,CAAA;AACV,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("react-dom"),r=require("../AlertContainer/AlertContainer.cjs.js"),o=require("../../../../util/helper.cjs.js"),n=require("../AlertItem/AlertItem.cjs.js"),l=require("../../../../hooks/useGetDomRoot.cjs.js"),s=require("./AlertContext.cjs.js");exports.AlertProvider=({closeButtonTitle:a,placement:i={vertical:"bottom",horizontal:"center"},autoHideDuration:u={long:8e3,short:4e3},stackSize:c=3,domRoot:m,children:d,className:A})=>{const[v,q]=e.useState([]),h=e.useRef(null),{root:j}=l.useGetDomRoot(m,h),g=(e,t)=>{let r=a;return e.closeButtonTitle&&(r=e.closeButtonTitle),{...e,variant:t??e.variant,id:o.generateID(),duration:e.duration??(n=e,"error"===n.variant||(null==(l=n.actions)?void 0:l.length)?u.long:u.short),closeButtonTitle:r};var n,l},p=e=>{const t=g(e);q((e=>[...e,t]))},f=e=>{const t=g(e,"informative");q((e=>[...e,t]))},C=e=>{const t=g(e,"success");q((e=>[...e,t]))},S=e=>{const t=g(e,"warning");q((e=>[...e,t]))},E=e=>{const t=g(e,"error");q((e=>[...e,t]))},I=(e,t)=>{const r=v.map((r=>r.id!==e?r:{...r,height:t}));q(r)},T=e.useMemo((()=>({enqueueAlert:p,enqueueInfoAlert:f,enqueueSuccessAlert:C,enqueueErrorAlert:E,enqueueWarningAlert:S,setAlertHeight:I,alerts:v})),[p,f,C,E,S,I,v]);return e.createElement(s.default.Provider,{value:T},d,e.createElement("div",{ref:h},t.createPortal(e.createElement(r.AlertContainer,{placement:i,className:A},v.slice(0,c).map((t=>e.createElement(n.AlertItem,{...t,key:`${t.id}`,onClose:()=>{var e,r;r=t.id,q((e=>e.filter(((t,o)=>(o<c&&(e[o]={...e[o],wasShown:!0}),t.id!==r))))),null==(e=t.onClose)||e.call(t)}})))),j)))};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("react-dom"),r=require("../AlertContainer/AlertContainer.cjs.js"),o=require("../../../../util/helper.cjs.js"),n=require("../AlertItem/AlertItem.cjs.js"),l=require("../../../../hooks/useGetDomRoot.cjs.js"),s=require("./AlertContext.cjs.js");exports.AlertProvider=({closeButtonTitle:a,placement:i={vertical:"bottom",horizontal:"center"},autoHideDuration:u={long:8e3,short:4e3},stackSize:c=3,domRoot:m,children:d,className:A})=>{const[v,q]=e.useState([]),h=e.useRef(null),{root:j}=l.useGetDomRoot(m,h),g=(e,t)=>{let r=a;return e.closeButtonTitle&&(r=e.closeButtonTitle),{...e,variant:t??e.variant,id:o.generateID(),duration:e.duration??(n=e,"error"===n.variant||(null==(l=n.actions)?void 0:l.length)?u.long:u.short),closeButtonTitle:r};var n,l},p=e=>{const t=g(e);q(e=>[...e,t])},f=e=>{const t=g(e,"informative");q(e=>[...e,t])},C=e=>{const t=g(e,"success");q(e=>[...e,t])},S=e=>{const t=g(e,"warning");q(e=>[...e,t])},E=e=>{const t=g(e,"error");q(e=>[...e,t])},I=(e,t)=>{const r=v.map(r=>r.id!==e?r:{...r,height:t});q(r)},T=e.useMemo(()=>({enqueueAlert:p,enqueueInfoAlert:f,enqueueSuccessAlert:C,enqueueErrorAlert:E,enqueueWarningAlert:S,setAlertHeight:I,alerts:v}),[p,f,C,E,S,I,v]);return e.createElement(s.default.Provider,{value:T},d,e.createElement("div",{ref:h},t.createPortal(e.createElement(r.AlertContainer,{placement:i,className:A},v.slice(0,c).map(t=>e.createElement(n.AlertItem,{...t,key:`${t.id}`,onClose:()=>{var e,r;r=t.id,q(e=>e.filter((t,o)=>(o<c&&(e[o]={...e[o],wasShown:!0}),t.id!==r))),null==(e=t.onClose)||e.call(t)}}))),j)))};
2
2
  //# sourceMappingURL=AlertProvider.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlertProvider.cjs.js","sources":["../../../../../src/components/Notifications/Alert/AlertProvider/AlertProvider.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, { ReactNode, useRef, useState, useMemo } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { Placement, AlertContainer } from \"../AlertContainer/AlertContainer\";\nimport { generateID } from \"../../../../util/helper\";\nimport { AlertItem, Props as AlertComponentProps, Variant } from \"../AlertItem/AlertItem\";\nimport { useGetDomRoot } from \"../../../../hooks/useGetDomRoot\";\nimport AlertContext, { AlertContextValue } from \"./AlertContext\";\n\n/** Short msg is when only title is provided. Long one when content or/and actions are provided (or type is error). */\ninterface Duration {\n long: number;\n short: number;\n}\n\nexport interface Props {\n closeButtonTitle: string;\n children?: ReactNode;\n placement?: Placement;\n stackSize?: number;\n domRoot?: HTMLElement;\n autoHideDuration?: Duration;\n className?: string;\n}\n\nexport type AlertEntry = AlertComponentProps & { height?: number };\n\nexport const AlertProvider = ({\n closeButtonTitle,\n placement = { vertical: \"bottom\", horizontal: \"center\" },\n autoHideDuration = { long: 8000, short: 4000 },\n stackSize = 3,\n domRoot,\n children,\n className\n}: Props) => {\n const [alertEntries, setAlertEntries] = useState<AlertEntry[]>([]);\n const wrappingDivRef = useRef(null);\n const { root } = useGetDomRoot(domRoot, wrappingDivRef);\n\n const getDuration = (entry: Omit<AlertEntry, \"id\">) => {\n if (entry.variant === \"error\") {\n return autoHideDuration.long;\n }\n if (entry.actions?.length) {\n return autoHideDuration.long;\n }\n return autoHideDuration.short;\n };\n\n const buildEntryWithVariant = (arg: Omit<AlertEntry, \"id\">, variant?: Variant): AlertEntry => {\n let closeTitle = closeButtonTitle;\n if (arg.closeButtonTitle) {\n closeTitle = arg.closeButtonTitle;\n }\n return {\n ...arg,\n variant: variant ?? arg.variant,\n id: generateID(),\n duration: arg.duration ?? getDuration(arg),\n closeButtonTitle: closeTitle\n };\n };\n\n const enqueueAlert = (arg: Omit<AlertEntry, \"id\">) => {\n const newEntry = buildEntryWithVariant(arg);\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueInfoAlert: AlertContextValue[\"enqueueInfoAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"informative\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueSuccessAlert: AlertContextValue[\"enqueueSuccessAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"success\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueWarningAlert: AlertContextValue[\"enqueueWarningAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"warning\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueErrorAlert: AlertContextValue[\"enqueueErrorAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"error\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const setAlertHeight = (id: string, height: number) => {\n const newAlertsState = alertEntries.map(alertEntry => {\n if (alertEntry.id !== id) {\n return alertEntry;\n }\n return { ...alertEntry, height };\n });\n setAlertEntries(newAlertsState);\n };\n\n const removeEntry = (entryId: string) => {\n setAlertEntries(entries => {\n return entries.filter((entry, idx) => {\n if (idx < stackSize) {\n entries[idx] = { ...entries[idx], wasShown: true };\n }\n return entry.id !== entryId;\n });\n });\n };\n\n const renderAlertList = (): ReactNode => {\n return alertEntries.slice(0, stackSize).map(entry => (\n <AlertItem\n {...entry}\n key={`${entry.id}`}\n onClose={() => {\n removeEntry(entry.id);\n entry.onClose?.();\n }}\n />\n ));\n };\n\n const contextValue = useMemo(\n () => ({\n enqueueAlert,\n enqueueInfoAlert,\n enqueueSuccessAlert,\n enqueueErrorAlert,\n enqueueWarningAlert,\n setAlertHeight,\n alerts: alertEntries\n }),\n [\n enqueueAlert,\n enqueueInfoAlert,\n enqueueSuccessAlert,\n enqueueErrorAlert,\n enqueueWarningAlert,\n setAlertHeight,\n alertEntries\n ]\n );\n\n return (\n <AlertContext.Provider value={contextValue}>\n {children}\n <div ref={wrappingDivRef}>\n {createPortal(\n <AlertContainer placement={placement} className={className}>\n {renderAlertList()}\n </AlertContainer>,\n root\n )}\n </div>\n </AlertContext.Provider>\n );\n};\n"],"names":["closeButtonTitle","placement","vertical","horizontal","autoHideDuration","long","short","stackSize","domRoot","children","className","alertEntries","setAlertEntries","useState","wrappingDivRef","useRef","root","useGetDomRoot","buildEntryWithVariant","arg","variant","closeTitle","id","generateID","duration","entry","_a","actions","length","enqueueAlert","newEntry","entries","enqueueInfoAlert","enqueueSuccessAlert","enqueueWarningAlert","enqueueErrorAlert","setAlertHeight","height","newAlertsState","map","alertEntry","contextValue","useMemo","alerts","createElement","AlertContext","Provider","value","ref","createPortal","React","AlertContainer","slice","AlertItem","key","onClose","entryId","filter","idx","wasShown","call"],"mappings":"yXA0C6B,EAC3BA,mBACAC,YAAY,CAAEC,SAAU,SAAUC,WAAY,UAC9CC,mBAAmB,CAAEC,KAAM,IAAMC,MAAO,KACxCC,YAAY,EACZC,UACAC,WACAC,gBAEA,MAAOC,EAAcC,GAAmBC,EAAAA,SAAuB,IACzDC,EAAiBC,SAAO,OACxBC,KAAEA,GAASC,gBAAcT,EAASM,GAYlCI,EAAwB,CAACC,EAA6BC,KAC1D,IAAIC,EAAarB,EAIV,OAHHmB,EAAInB,mBACNqB,EAAaF,EAAInB,kBAEZ,IACFmB,EACHC,QAASA,GAAWD,EAAIC,QACxBE,GAAIC,EAAAA,aACJC,SAAUL,EAAIK,WAnBGC,EAmBqBN,EAlBlB,UAAlBM,EAAML,UAGN,OAAAM,EAAAD,EAAME,cAAN,EAAAD,EAAeE,QAFVxB,EAAiBC,KAKnBD,EAAiBE,OAatBN,iBAAkBqB,GApBF,IAACI,GAqBnB,EAGII,EAAgBV,IACd,MAAAW,EAAWZ,EAAsBC,GACvCP,GAA2BmB,GAAA,IAAIA,EAASD,IAAS,EAG7CE,EAAiEb,IAC/D,MAAAW,EAAuBZ,EAAsBC,EAAK,eACxDP,GAA2BmB,GAAA,IAAIA,EAASD,IAAS,EAG7CG,EAAuEd,IACrE,MAAAW,EAAuBZ,EAAsBC,EAAK,WACxDP,GAA2BmB,GAAA,IAAIA,EAASD,IAAS,EAG7CI,EAAuEf,IACrE,MAAAW,EAAuBZ,EAAsBC,EAAK,WACxDP,GAA2BmB,GAAA,IAAIA,EAASD,IAAS,EAG7CK,EAAmEhB,IACjE,MAAAW,EAAuBZ,EAAsBC,EAAK,SACxDP,GAA2BmB,GAAA,IAAIA,EAASD,IAAS,EAG7CM,EAAiB,CAACd,EAAYe,KAC5B,MAAAC,EAAiB3B,EAAa4B,KAAkBC,GAChDA,EAAWlB,KAAOA,EACbkB,EAEF,IAAKA,EAAYH,YAE1BzB,EAAgB0B,EAAc,EA2B1BG,EAAeC,EAAAA,SACnB,KAAO,CACLb,eACAG,mBACAC,sBACAE,oBACAD,sBACAE,iBACAO,OAAQhC,KAEV,CACEkB,EACAG,EACAC,EACAE,EACAD,EACAE,EACAzB,IAKF,SAAAiC,cAACC,EAAAA,QAAaC,SAAb,CAAsBC,MAAON,GAC3BhC,IACDmC,cAAC,MAAI,CAAAI,IAAKlC,GACPmC,EAAAA,aACEC,EAAAN,cAAAO,iBAAA,CAAelD,YAAsBS,aAtCrCC,EAAayC,MAAM,EAAG7C,GAAWgC,KACtCd,GAAAyB,EAAAN,cAACS,EAAAA,UAAA,IACK5B,EACJ6B,IAAK,GAAG7B,EAAMH,KACdiC,QAAS,WAhBMC,IAiBD/B,EAAMH,GAhBxBV,GAA2BmB,GAClBA,EAAQ0B,QAAO,CAAChC,EAAOiC,KACxBA,EAAMnD,IACAwB,EAAA2B,GAAO,IAAK3B,EAAQ2B,GAAMC,UAAU,IAEvClC,EAAMH,KAAOkC,OAYlB,OAAA9B,EAAAD,EAAM8B,UAAN7B,EAAAkC,KAAAnC,EAAA,OAmCAT,IAGN"}
1
+ {"version":3,"file":"AlertProvider.cjs.js","sources":["../../../../../src/components/Notifications/Alert/AlertProvider/AlertProvider.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, { ReactNode, useRef, useState, useMemo } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { Placement, AlertContainer } from \"../AlertContainer/AlertContainer\";\nimport { generateID } from \"../../../../util/helper\";\nimport { AlertItem, Props as AlertComponentProps, Variant } from \"../AlertItem/AlertItem\";\nimport { useGetDomRoot } from \"../../../../hooks/useGetDomRoot\";\nimport AlertContext, { AlertContextValue } from \"./AlertContext\";\n\n/** Short msg is when only title is provided. Long one when content or/and actions are provided (or type is error). */\ninterface Duration {\n long: number;\n short: number;\n}\n\nexport interface Props {\n closeButtonTitle: string;\n children?: ReactNode;\n placement?: Placement;\n stackSize?: number;\n domRoot?: HTMLElement;\n autoHideDuration?: Duration;\n className?: string;\n}\n\nexport type AlertEntry = AlertComponentProps & { height?: number };\n\nexport const AlertProvider = ({\n closeButtonTitle,\n placement = { vertical: \"bottom\", horizontal: \"center\" },\n autoHideDuration = { long: 8000, short: 4000 },\n stackSize = 3,\n domRoot,\n children,\n className\n}: Props) => {\n const [alertEntries, setAlertEntries] = useState<AlertEntry[]>([]);\n const wrappingDivRef = useRef(null);\n const { root } = useGetDomRoot(domRoot, wrappingDivRef);\n\n const getDuration = (entry: Omit<AlertEntry, \"id\">) => {\n if (entry.variant === \"error\") {\n return autoHideDuration.long;\n }\n if (entry.actions?.length) {\n return autoHideDuration.long;\n }\n return autoHideDuration.short;\n };\n\n const buildEntryWithVariant = (arg: Omit<AlertEntry, \"id\">, variant?: Variant): AlertEntry => {\n let closeTitle = closeButtonTitle;\n if (arg.closeButtonTitle) {\n closeTitle = arg.closeButtonTitle;\n }\n return {\n ...arg,\n variant: variant ?? arg.variant,\n id: generateID(),\n duration: arg.duration ?? getDuration(arg),\n closeButtonTitle: closeTitle\n };\n };\n\n const enqueueAlert = (arg: Omit<AlertEntry, \"id\">) => {\n const newEntry = buildEntryWithVariant(arg);\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueInfoAlert: AlertContextValue[\"enqueueInfoAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"informative\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueSuccessAlert: AlertContextValue[\"enqueueSuccessAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"success\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueWarningAlert: AlertContextValue[\"enqueueWarningAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"warning\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueErrorAlert: AlertContextValue[\"enqueueErrorAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"error\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const setAlertHeight = (id: string, height: number) => {\n const newAlertsState = alertEntries.map(alertEntry => {\n if (alertEntry.id !== id) {\n return alertEntry;\n }\n return { ...alertEntry, height };\n });\n setAlertEntries(newAlertsState);\n };\n\n const removeEntry = (entryId: string) => {\n setAlertEntries(entries => {\n return entries.filter((entry, idx) => {\n if (idx < stackSize) {\n entries[idx] = { ...entries[idx], wasShown: true };\n }\n return entry.id !== entryId;\n });\n });\n };\n\n const renderAlertList = (): ReactNode => {\n return alertEntries.slice(0, stackSize).map(entry => (\n <AlertItem\n {...entry}\n key={`${entry.id}`}\n onClose={() => {\n removeEntry(entry.id);\n entry.onClose?.();\n }}\n />\n ));\n };\n\n const contextValue = useMemo(\n () => ({\n enqueueAlert,\n enqueueInfoAlert,\n enqueueSuccessAlert,\n enqueueErrorAlert,\n enqueueWarningAlert,\n setAlertHeight,\n alerts: alertEntries\n }),\n [\n enqueueAlert,\n enqueueInfoAlert,\n enqueueSuccessAlert,\n enqueueErrorAlert,\n enqueueWarningAlert,\n setAlertHeight,\n alertEntries\n ]\n );\n\n return (\n <AlertContext.Provider value={contextValue}>\n {children}\n <div ref={wrappingDivRef}>\n {createPortal(\n <AlertContainer placement={placement} className={className}>\n {renderAlertList()}\n </AlertContainer>,\n root\n )}\n </div>\n </AlertContext.Provider>\n );\n};\n"],"names":["closeButtonTitle","placement","vertical","horizontal","autoHideDuration","long","short","stackSize","domRoot","children","className","alertEntries","setAlertEntries","useState","wrappingDivRef","useRef","root","useGetDomRoot","buildEntryWithVariant","arg","variant","closeTitle","id","generateID","duration","entry","_a","actions","length","enqueueAlert","newEntry","entries","enqueueInfoAlert","enqueueSuccessAlert","enqueueWarningAlert","enqueueErrorAlert","setAlertHeight","height","newAlertsState","map","alertEntry","contextValue","useMemo","alerts","createElement","AlertContext","Provider","value","ref","createPortal","React","AlertContainer","slice","AlertItem","key","onClose","entryId","filter","idx","wasShown","call"],"mappings":"yXA0C6B,EAC3BA,mBACAC,YAAY,CAAEC,SAAU,SAAUC,WAAY,UAC9CC,mBAAmB,CAAEC,KAAM,IAAMC,MAAO,KACxCC,YAAY,EACZC,UACAC,WACAC,gBAEA,MAAOC,EAAcC,GAAmBC,EAAAA,SAAuB,IACzDC,EAAiBC,EAAAA,OAAO,OACxBC,KAAEA,GAASC,gBAAcT,EAASM,GAYlCI,EAAwB,CAACC,EAA6BC,KAC1D,IAAIC,EAAarB,EAIjB,OAHImB,EAAInB,mBACNqB,EAAaF,EAAInB,kBAEZ,IACFmB,EACHC,QAASA,GAAWD,EAAIC,QACxBE,GAAIC,EAAAA,aACJC,SAAUL,EAAIK,WAnBGC,EAmBqBN,EAlBlB,UAAlBM,EAAML,UAGN,OAAAM,EAAAD,EAAME,cAAN,EAAAD,EAAeE,QAFVxB,EAAiBC,KAKnBD,EAAiBE,OAatBN,iBAAkBqB,GApBF,IAACI,KAwBfI,EAAgBV,IACpB,MAAMW,EAAWZ,EAAsBC,GACvCP,EAAgBmB,GAAW,IAAIA,EAASD,KAGpCE,EAA0Db,IAC9D,MAAMW,EAAuBZ,EAAsBC,EAAK,eACxDP,EAAgBmB,GAAW,IAAIA,EAASD,KAGpCG,EAAgEd,IACpE,MAAMW,EAAuBZ,EAAsBC,EAAK,WACxDP,EAAgBmB,GAAW,IAAIA,EAASD,KAGpCI,EAAgEf,IACpE,MAAMW,EAAuBZ,EAAsBC,EAAK,WACxDP,EAAgBmB,GAAW,IAAIA,EAASD,KAGpCK,EAA4DhB,IAChE,MAAMW,EAAuBZ,EAAsBC,EAAK,SACxDP,EAAgBmB,GAAW,IAAIA,EAASD,KAGpCM,EAAiB,CAACd,EAAYe,KAClC,MAAMC,EAAiB3B,EAAa4B,IAAIC,GAClCA,EAAWlB,KAAOA,EACbkB,EAEF,IAAKA,EAAYH,WAE1BzB,EAAgB0B,IA2BZG,EAAeC,EAAAA,QACnB,KAAA,CACEb,eACAG,mBACAC,sBACAE,oBACAD,sBACAE,iBACAO,OAAQhC,IAEV,CACEkB,EACAG,EACAC,EACAE,EACAD,EACAE,EACAzB,IAIJ,SACEiC,cAACC,EAAAA,QAAaC,SAAb,CAAsBC,MAAON,GAC3BhC,IACDmC,cAAC,MAAA,CAAII,IAAKlC,GACPmC,EAAAA,aACCC,EAAAN,cAACO,iBAAA,CAAelD,YAAsBS,aAtCrCC,EAAayC,MAAM,EAAG7C,GAAWgC,IAAId,GAC1CyB,EAAAN,cAACS,EAAAA,UAAA,IACK5B,EACJ6B,IAAK,GAAG7B,EAAMH,KACdiC,QAAS,WAhBMC,IAiBD/B,EAAMH,GAhBxBV,EAAgBmB,GACPA,EAAQ0B,OAAO,CAAChC,EAAOiC,KACxBA,EAAMnD,IACRwB,EAAQ2B,GAAO,IAAK3B,EAAQ2B,GAAMC,UAAU,IAEvClC,EAAMH,KAAOkC,KAYlB,OAAA9B,EAAAD,EAAM8B,UAAN7B,EAAAkC,KAAAnC,QAmCAT"}
@@ -1 +1 @@
1
- {"version":3,"file":"AlertProvider.es.js","sources":["../../../../../src/components/Notifications/Alert/AlertProvider/AlertProvider.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, { ReactNode, useRef, useState, useMemo } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { Placement, AlertContainer } from \"../AlertContainer/AlertContainer\";\nimport { generateID } from \"../../../../util/helper\";\nimport { AlertItem, Props as AlertComponentProps, Variant } from \"../AlertItem/AlertItem\";\nimport { useGetDomRoot } from \"../../../../hooks/useGetDomRoot\";\nimport AlertContext, { AlertContextValue } from \"./AlertContext\";\n\n/** Short msg is when only title is provided. Long one when content or/and actions are provided (or type is error). */\ninterface Duration {\n long: number;\n short: number;\n}\n\nexport interface Props {\n closeButtonTitle: string;\n children?: ReactNode;\n placement?: Placement;\n stackSize?: number;\n domRoot?: HTMLElement;\n autoHideDuration?: Duration;\n className?: string;\n}\n\nexport type AlertEntry = AlertComponentProps & { height?: number };\n\nexport const AlertProvider = ({\n closeButtonTitle,\n placement = { vertical: \"bottom\", horizontal: \"center\" },\n autoHideDuration = { long: 8000, short: 4000 },\n stackSize = 3,\n domRoot,\n children,\n className\n}: Props) => {\n const [alertEntries, setAlertEntries] = useState<AlertEntry[]>([]);\n const wrappingDivRef = useRef(null);\n const { root } = useGetDomRoot(domRoot, wrappingDivRef);\n\n const getDuration = (entry: Omit<AlertEntry, \"id\">) => {\n if (entry.variant === \"error\") {\n return autoHideDuration.long;\n }\n if (entry.actions?.length) {\n return autoHideDuration.long;\n }\n return autoHideDuration.short;\n };\n\n const buildEntryWithVariant = (arg: Omit<AlertEntry, \"id\">, variant?: Variant): AlertEntry => {\n let closeTitle = closeButtonTitle;\n if (arg.closeButtonTitle) {\n closeTitle = arg.closeButtonTitle;\n }\n return {\n ...arg,\n variant: variant ?? arg.variant,\n id: generateID(),\n duration: arg.duration ?? getDuration(arg),\n closeButtonTitle: closeTitle\n };\n };\n\n const enqueueAlert = (arg: Omit<AlertEntry, \"id\">) => {\n const newEntry = buildEntryWithVariant(arg);\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueInfoAlert: AlertContextValue[\"enqueueInfoAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"informative\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueSuccessAlert: AlertContextValue[\"enqueueSuccessAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"success\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueWarningAlert: AlertContextValue[\"enqueueWarningAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"warning\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueErrorAlert: AlertContextValue[\"enqueueErrorAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"error\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const setAlertHeight = (id: string, height: number) => {\n const newAlertsState = alertEntries.map(alertEntry => {\n if (alertEntry.id !== id) {\n return alertEntry;\n }\n return { ...alertEntry, height };\n });\n setAlertEntries(newAlertsState);\n };\n\n const removeEntry = (entryId: string) => {\n setAlertEntries(entries => {\n return entries.filter((entry, idx) => {\n if (idx < stackSize) {\n entries[idx] = { ...entries[idx], wasShown: true };\n }\n return entry.id !== entryId;\n });\n });\n };\n\n const renderAlertList = (): ReactNode => {\n return alertEntries.slice(0, stackSize).map(entry => (\n <AlertItem\n {...entry}\n key={`${entry.id}`}\n onClose={() => {\n removeEntry(entry.id);\n entry.onClose?.();\n }}\n />\n ));\n };\n\n const contextValue = useMemo(\n () => ({\n enqueueAlert,\n enqueueInfoAlert,\n enqueueSuccessAlert,\n enqueueErrorAlert,\n enqueueWarningAlert,\n setAlertHeight,\n alerts: alertEntries\n }),\n [\n enqueueAlert,\n enqueueInfoAlert,\n enqueueSuccessAlert,\n enqueueErrorAlert,\n enqueueWarningAlert,\n setAlertHeight,\n alertEntries\n ]\n );\n\n return (\n <AlertContext.Provider value={contextValue}>\n {children}\n <div ref={wrappingDivRef}>\n {createPortal(\n <AlertContainer placement={placement} className={className}>\n {renderAlertList()}\n </AlertContainer>,\n root\n )}\n </div>\n </AlertContext.Provider>\n );\n};\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"AlertProvider.es.js","sources":["../../../../../src/components/Notifications/Alert/AlertProvider/AlertProvider.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, { ReactNode, useRef, useState, useMemo } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { Placement, AlertContainer } from \"../AlertContainer/AlertContainer\";\nimport { generateID } from \"../../../../util/helper\";\nimport { AlertItem, Props as AlertComponentProps, Variant } from \"../AlertItem/AlertItem\";\nimport { useGetDomRoot } from \"../../../../hooks/useGetDomRoot\";\nimport AlertContext, { AlertContextValue } from \"./AlertContext\";\n\n/** Short msg is when only title is provided. Long one when content or/and actions are provided (or type is error). */\ninterface Duration {\n long: number;\n short: number;\n}\n\nexport interface Props {\n closeButtonTitle: string;\n children?: ReactNode;\n placement?: Placement;\n stackSize?: number;\n domRoot?: HTMLElement;\n autoHideDuration?: Duration;\n className?: string;\n}\n\nexport type AlertEntry = AlertComponentProps & { height?: number };\n\nexport const AlertProvider = ({\n closeButtonTitle,\n placement = { vertical: \"bottom\", horizontal: \"center\" },\n autoHideDuration = { long: 8000, short: 4000 },\n stackSize = 3,\n domRoot,\n children,\n className\n}: Props) => {\n const [alertEntries, setAlertEntries] = useState<AlertEntry[]>([]);\n const wrappingDivRef = useRef(null);\n const { root } = useGetDomRoot(domRoot, wrappingDivRef);\n\n const getDuration = (entry: Omit<AlertEntry, \"id\">) => {\n if (entry.variant === \"error\") {\n return autoHideDuration.long;\n }\n if (entry.actions?.length) {\n return autoHideDuration.long;\n }\n return autoHideDuration.short;\n };\n\n const buildEntryWithVariant = (arg: Omit<AlertEntry, \"id\">, variant?: Variant): AlertEntry => {\n let closeTitle = closeButtonTitle;\n if (arg.closeButtonTitle) {\n closeTitle = arg.closeButtonTitle;\n }\n return {\n ...arg,\n variant: variant ?? arg.variant,\n id: generateID(),\n duration: arg.duration ?? getDuration(arg),\n closeButtonTitle: closeTitle\n };\n };\n\n const enqueueAlert = (arg: Omit<AlertEntry, \"id\">) => {\n const newEntry = buildEntryWithVariant(arg);\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueInfoAlert: AlertContextValue[\"enqueueInfoAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"informative\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueSuccessAlert: AlertContextValue[\"enqueueSuccessAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"success\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueWarningAlert: AlertContextValue[\"enqueueWarningAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"warning\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const enqueueErrorAlert: AlertContextValue[\"enqueueErrorAlert\"] = arg => {\n const newEntry: AlertEntry = buildEntryWithVariant(arg, \"error\");\n setAlertEntries(entries => [...entries, newEntry]);\n };\n\n const setAlertHeight = (id: string, height: number) => {\n const newAlertsState = alertEntries.map(alertEntry => {\n if (alertEntry.id !== id) {\n return alertEntry;\n }\n return { ...alertEntry, height };\n });\n setAlertEntries(newAlertsState);\n };\n\n const removeEntry = (entryId: string) => {\n setAlertEntries(entries => {\n return entries.filter((entry, idx) => {\n if (idx < stackSize) {\n entries[idx] = { ...entries[idx], wasShown: true };\n }\n return entry.id !== entryId;\n });\n });\n };\n\n const renderAlertList = (): ReactNode => {\n return alertEntries.slice(0, stackSize).map(entry => (\n <AlertItem\n {...entry}\n key={`${entry.id}`}\n onClose={() => {\n removeEntry(entry.id);\n entry.onClose?.();\n }}\n />\n ));\n };\n\n const contextValue = useMemo(\n () => ({\n enqueueAlert,\n enqueueInfoAlert,\n enqueueSuccessAlert,\n enqueueErrorAlert,\n enqueueWarningAlert,\n setAlertHeight,\n alerts: alertEntries\n }),\n [\n enqueueAlert,\n enqueueInfoAlert,\n enqueueSuccessAlert,\n enqueueErrorAlert,\n enqueueWarningAlert,\n setAlertHeight,\n alertEntries\n ]\n );\n\n return (\n <AlertContext.Provider value={contextValue}>\n {children}\n <div ref={wrappingDivRef}>\n {createPortal(\n <AlertContainer placement={placement} className={className}>\n {renderAlertList()}\n </AlertContainer>,\n root\n )}\n </div>\n </AlertContext.Provider>\n );\n};\n"],"names":[],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAlert.cjs.js","sources":["../../../../src/components/Notifications/Alert/useAlert.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 { useContext } from \"react\";\nimport AlertContext from \"./AlertProvider/AlertContext\";\n\nexport const useAlert = () => {\n const ctx = useContext(AlertContext);\n\n return {\n enqueueAlert: ctx.enqueueAlert,\n enqueueInfoAlert: ctx.enqueueInfoAlert,\n enqueueSuccessAlert: ctx.enqueueSuccessAlert,\n enqueueWarningAlert: ctx.enqueueWarningAlert,\n enqueueErrorAlert: ctx.enqueueErrorAlert\n };\n};\n"],"names":["ctx","useContext","AlertContext","enqueueAlert","enqueueInfoAlert","enqueueSuccessAlert","enqueueWarningAlert","enqueueErrorAlert"],"mappings":"2KAmBwB,KAChB,MAAAA,EAAMC,aAAWC,WAEhB,MAAA,CACLC,aAAcH,EAAIG,aAClBC,iBAAkBJ,EAAII,iBACtBC,oBAAqBL,EAAIK,oBACzBC,oBAAqBN,EAAIM,oBACzBC,kBAAmBP,EAAIO,kBACzB"}
1
+ {"version":3,"file":"useAlert.cjs.js","sources":["../../../../src/components/Notifications/Alert/useAlert.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 { useContext } from \"react\";\nimport AlertContext from \"./AlertProvider/AlertContext\";\n\nexport const useAlert = () => {\n const ctx = useContext(AlertContext);\n\n return {\n enqueueAlert: ctx.enqueueAlert,\n enqueueInfoAlert: ctx.enqueueInfoAlert,\n enqueueSuccessAlert: ctx.enqueueSuccessAlert,\n enqueueWarningAlert: ctx.enqueueWarningAlert,\n enqueueErrorAlert: ctx.enqueueErrorAlert\n };\n};\n"],"names":["ctx","useContext","AlertContext","enqueueAlert","enqueueInfoAlert","enqueueSuccessAlert","enqueueWarningAlert","enqueueErrorAlert"],"mappings":"2KAmBwB,KACtB,MAAMA,EAAMC,EAAAA,WAAWC,WAEvB,MAAO,CACLC,aAAcH,EAAIG,aAClBC,iBAAkBJ,EAAII,iBACtBC,oBAAqBL,EAAIK,oBACzBC,oBAAqBN,EAAIM,oBACzBC,kBAAmBP,EAAIO"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAlert.es.js","sources":["../../../../src/components/Notifications/Alert/useAlert.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 { useContext } from \"react\";\nimport AlertContext from \"./AlertProvider/AlertContext\";\n\nexport const useAlert = () => {\n const ctx = useContext(AlertContext);\n\n return {\n enqueueAlert: ctx.enqueueAlert,\n enqueueInfoAlert: ctx.enqueueInfoAlert,\n enqueueSuccessAlert: ctx.enqueueSuccessAlert,\n enqueueWarningAlert: ctx.enqueueWarningAlert,\n enqueueErrorAlert: ctx.enqueueErrorAlert\n };\n};\n"],"names":[],"mappings":";;AAmBO,MAAM,WAAW,MAAM;AACtB,QAAA,MAAM,WAAW,YAAY;AAE5B,SAAA;AAAA,IACL,cAAc,IAAI;AAAA,IAClB,kBAAkB,IAAI;AAAA,IACtB,qBAAqB,IAAI;AAAA,IACzB,qBAAqB,IAAI;AAAA,IACzB,mBAAmB,IAAI;AAAA,EACzB;AACF;"}
1
+ {"version":3,"file":"useAlert.es.js","sources":["../../../../src/components/Notifications/Alert/useAlert.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 { useContext } from \"react\";\nimport AlertContext from \"./AlertProvider/AlertContext\";\n\nexport const useAlert = () => {\n const ctx = useContext(AlertContext);\n\n return {\n enqueueAlert: ctx.enqueueAlert,\n enqueueInfoAlert: ctx.enqueueInfoAlert,\n enqueueSuccessAlert: ctx.enqueueSuccessAlert,\n enqueueWarningAlert: ctx.enqueueWarningAlert,\n enqueueErrorAlert: ctx.enqueueErrorAlert\n };\n};\n"],"names":[],"mappings":";;AAmBO,MAAM,WAAW,MAAM;AAC5B,QAAM,MAAM,WAAW,YAAY;AAEnC,SAAO;AAAA,IACL,cAAc,IAAI;AAAA,IAClB,kBAAkB,IAAI;AAAA,IACtB,qBAAqB,IAAI;AAAA,IACzB,qBAAqB,IAAI;AAAA,IACzB,mBAAmB,IAAI;AAAA,EAAA;AAE3B;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=require("../../Typography/Typography.cjs.js"),a=require("../../Icon/Icon.cjs.js"),n=require("./Banner.module.scss.cjs.js"),t=e.forwardRef((({children:t,ariaLabel:c,ariaRole:l,ariaLive:s,type:o,title:i,...u},d)=>{const f=(e=>{switch(e){case"info":return a.Icons.InfoCircle;case"error":return a.Icons.Error;case"warning":return a.Icons.Warning;default:return null}})(o);return e.createElement("section",{...u,ref:d,"aria-live":s,"aria-label":c,role:l,className:`${n.default.banner} ${n.default[o]}`},f&&e.createElement(a.Icon,{icon:f,className:n.default.icon}),e.createElement("div",{className:n.default.container},e.createElement(r.Typography,{variant:"h4",className:n.default.headline},i),e.createElement(r.Typography,{variant:"body",className:n.default.content,tag:"p"},t)))}));exports.Banner=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=require("../../Typography/Typography.cjs.js"),a=require("../../Icon/Icon.cjs.js"),n=require("./Banner.module.scss.cjs.js"),t=e.forwardRef(({children:t,ariaLabel:c,ariaRole:l,ariaLive:s,type:o,title:i,...u},d)=>{const f=(e=>{switch(e){case"info":return a.Icons.InfoCircle;case"error":return a.Icons.Error;case"warning":return a.Icons.Warning;default:return null}})(o);return e.createElement("section",{...u,ref:d,"aria-live":s,"aria-label":c,role:l,className:`${n.default.banner} ${n.default[o]}`},f&&e.createElement(a.Icon,{icon:f,className:n.default.icon}),e.createElement("div",{className:n.default.container},e.createElement(r.Typography,{variant:"h4",className:n.default.headline},i),e.createElement(r.Typography,{variant:"body",className:n.default.content,tag:"p"},t)))});exports.Banner=t;
2
2
  //# sourceMappingURL=Banner.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.cjs.js","sources":["../../../../src/components/Notifications/Banner/Banner.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 AriaAttributes,\n AriaRole,\n ComponentPropsWithRef,\n ForwardRefRenderFunction\n} from \"react\";\nimport { Typography } from \"../../Typography/Typography\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport classes from \"./Banner.module.scss\";\n\nexport type BannerType = \"error\" | \"warning\" | \"info\";\nexport interface Props extends ComponentPropsWithRef<\"section\"> {\n children: string;\n ariaRole?: AriaRole;\n ariaLive?: AriaAttributes[\"aria-live\"];\n ariaLabel?: AriaAttributes[\"aria-label\"];\n type: BannerType;\n title: string;\n}\n\nconst BannerComponent: ForwardRefRenderFunction<HTMLElement, Props> = (\n { children, ariaLabel, ariaRole, ariaLive, type, title, ...rest }: Props,\n ref\n) => {\n const getIconVariant = (type: BannerType): Icons | null => {\n switch (type) {\n case \"info\":\n return Icons.InfoCircle;\n case \"error\":\n return Icons.Error;\n case \"warning\":\n return Icons.Warning;\n default:\n return null;\n }\n };\n\n const icon = getIconVariant(type);\n\n return (\n <section\n {...rest}\n ref={ref}\n aria-live={ariaLive}\n aria-label={ariaLabel}\n role={ariaRole}\n className={`${classes[\"banner\"]} ${classes[type]}`}\n >\n {icon && <Icon icon={icon} className={classes[\"icon\"]} />}\n <div className={classes[\"container\"]}>\n <Typography variant={\"h4\"} className={classes[\"headline\"]}>\n {title}\n </Typography>\n <Typography variant={\"body\"} className={classes[\"content\"]} tag={\"p\"}>\n {children}\n </Typography>\n </div>\n </section>\n );\n};\n\nexport const Banner = React.forwardRef(BannerComponent);\n"],"names":["Banner","React","forwardRef","children","ariaLabel","ariaRole","ariaLive","type","title","rest","ref","icon","Icons","InfoCircle","Error","Warning","getIconVariant","createElement","role","className","classes","Icon","Typography","variant","default","tag"],"mappings":"sOA6EaA,EAASC,EAAMC,YAzC0C,EAClEC,WAAUC,YAAWC,WAAUC,WAAUC,OAAMC,WAAUC,GAC3DC,KAEM,MAaAC,EAbiB,CAACJ,IACtB,OAAQA,GACN,IAAK,OACH,OAAOK,EAAMA,MAAAC,WACf,IAAK,QACH,OAAOD,EAAMA,MAAAE,MACf,IAAK,UACH,OAAOF,EAAMA,MAAAG,QACf,QACS,OAAA,KAAA,EAIAC,CAAeT,GAG1B,OAAAN,EAAAgB,cAAC,UAAA,IACKR,EACJC,MACA,YAAWJ,EACX,aAAYF,EACZc,KAAMb,EACNc,UAAW,GAAGC,UAAgB,UAAKA,EAAAA,QAAQb,MAE1CI,GAASV,EAAAgB,cAAAI,OAAA,CAAKV,OAAYQ,UAAWC,EAAAA,QAAc,SACpDH,cAAC,MAAI,CAAAE,UAAWC,EAAAA,QAAmB,WACjCnB,EAAAgB,cAACK,EAAAA,WAAW,CAAAC,QAAS,KAAMJ,UAAWC,EAAQI,QAAU,UACrDhB,KAEHS,cAACK,EAAAA,WAAW,CAAAC,QAAS,OAAQJ,UAAWC,EAAQI,QAAS,QAAGC,IAAK,KAC9DtB,IAGP"}
1
+ {"version":3,"file":"Banner.cjs.js","sources":["../../../../src/components/Notifications/Banner/Banner.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 AriaAttributes,\n AriaRole,\n ComponentPropsWithRef,\n ForwardRefRenderFunction\n} from \"react\";\nimport { Typography } from \"../../Typography/Typography\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport classes from \"./Banner.module.scss\";\n\nexport type BannerType = \"error\" | \"warning\" | \"info\";\nexport interface Props extends ComponentPropsWithRef<\"section\"> {\n children: string;\n ariaRole?: AriaRole;\n ariaLive?: AriaAttributes[\"aria-live\"];\n ariaLabel?: AriaAttributes[\"aria-label\"];\n type: BannerType;\n title: string;\n}\n\nconst BannerComponent: ForwardRefRenderFunction<HTMLElement, Props> = (\n { children, ariaLabel, ariaRole, ariaLive, type, title, ...rest }: Props,\n ref\n) => {\n const getIconVariant = (type: BannerType): Icons | null => {\n switch (type) {\n case \"info\":\n return Icons.InfoCircle;\n case \"error\":\n return Icons.Error;\n case \"warning\":\n return Icons.Warning;\n default:\n return null;\n }\n };\n\n const icon = getIconVariant(type);\n\n return (\n <section\n {...rest}\n ref={ref}\n aria-live={ariaLive}\n aria-label={ariaLabel}\n role={ariaRole}\n className={`${classes[\"banner\"]} ${classes[type]}`}\n >\n {icon && <Icon icon={icon} className={classes[\"icon\"]} />}\n <div className={classes[\"container\"]}>\n <Typography variant={\"h4\"} className={classes[\"headline\"]}>\n {title}\n </Typography>\n <Typography variant={\"body\"} className={classes[\"content\"]} tag={\"p\"}>\n {children}\n </Typography>\n </div>\n </section>\n );\n};\n\nexport const Banner = React.forwardRef(BannerComponent);\n"],"names":["Banner","React","forwardRef","children","ariaLabel","ariaRole","ariaLive","type","title","rest","ref","icon","Icons","InfoCircle","Error","Warning","getIconVariant","createElement","role","className","classes","Icon","Typography","variant","tag"],"mappings":"sOA6EaA,EAASC,EAAMC,WAzC0C,EAClEC,WAAUC,YAAWC,WAAUC,WAAUC,OAAMC,WAAUC,GAC3DC,KAEA,MAaMC,EAbiB,CAACJ,IACtB,OAAQA,GACN,IAAK,OACH,OAAOK,EAAAA,MAAMC,WACf,IAAK,QACH,OAAOD,EAAAA,MAAME,MACf,IAAK,UACH,OAAOF,EAAAA,MAAMG,QACf,QACE,OAAO,OAIAC,CAAeT,GAE5B,OACEN,EAAAgB,cAAC,UAAA,IACKR,EACJC,MACA,YAAWJ,EACX,aAAYF,EACZc,KAAMb,EACNc,UAAW,GAAGC,UAAgB,UAAKA,EAAAA,QAAQb,MAE1CI,GAAQV,EAAAgB,cAACI,OAAA,CAAKV,OAAYQ,UAAWC,EAAAA,QAAc,SACpDH,cAAC,MAAA,CAAIE,UAAWC,EAAAA,QAAmB,WACjCnB,EAAAgB,cAACK,EAAAA,WAAA,CAAWC,QAAS,KAAMJ,UAAWC,EAAAA,QAAkB,UACrDZ,KAEHS,cAACK,EAAAA,WAAA,CAAWC,QAAS,OAAQJ,UAAWC,EAAAA,QAAiB,QAAGI,IAAK,KAC9DrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.es.js","sources":["../../../../src/components/Notifications/Banner/Banner.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 AriaAttributes,\n AriaRole,\n ComponentPropsWithRef,\n ForwardRefRenderFunction\n} from \"react\";\nimport { Typography } from \"../../Typography/Typography\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport classes from \"./Banner.module.scss\";\n\nexport type BannerType = \"error\" | \"warning\" | \"info\";\nexport interface Props extends ComponentPropsWithRef<\"section\"> {\n children: string;\n ariaRole?: AriaRole;\n ariaLive?: AriaAttributes[\"aria-live\"];\n ariaLabel?: AriaAttributes[\"aria-label\"];\n type: BannerType;\n title: string;\n}\n\nconst BannerComponent: ForwardRefRenderFunction<HTMLElement, Props> = (\n { children, ariaLabel, ariaRole, ariaLive, type, title, ...rest }: Props,\n ref\n) => {\n const getIconVariant = (type: BannerType): Icons | null => {\n switch (type) {\n case \"info\":\n return Icons.InfoCircle;\n case \"error\":\n return Icons.Error;\n case \"warning\":\n return Icons.Warning;\n default:\n return null;\n }\n };\n\n const icon = getIconVariant(type);\n\n return (\n <section\n {...rest}\n ref={ref}\n aria-live={ariaLive}\n aria-label={ariaLabel}\n role={ariaRole}\n className={`${classes[\"banner\"]} ${classes[type]}`}\n >\n {icon && <Icon icon={icon} className={classes[\"icon\"]} />}\n <div className={classes[\"container\"]}>\n <Typography variant={\"h4\"} className={classes[\"headline\"]}>\n {title}\n </Typography>\n <Typography variant={\"body\"} className={classes[\"content\"]} tag={\"p\"}>\n {children}\n </Typography>\n </div>\n </section>\n );\n};\n\nexport const Banner = React.forwardRef(BannerComponent);\n"],"names":["type"],"mappings":";;;;AAoCA,MAAM,kBAAgE,CACpE,EAAE,UAAU,WAAW,UAAU,UAAU,MAAM,OAAO,GAAG,KAAK,GAChE,QACG;AACG,QAAA,iBAAiB,CAACA,UAAmC;AACzD,YAAQA,OAAM;AAAA,MACZ,KAAK;AACH,eAAO,MAAM;AAAA,MACf,KAAK;AACH,eAAO,MAAM;AAAA,MACf,KAAK;AACH,eAAO,MAAM;AAAA,MACf;AACS,eAAA;AAAA,IAAA;AAAA,EAEb;AAEM,QAAA,OAAO,eAAe,IAAI;AAG9B,SAAA,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA,aAAW;AAAA,MACX,cAAY;AAAA,MACZ,MAAM;AAAA,MACN,WAAW,GAAG,QAAQ,QAAQ,CAAC,IAAI,QAAQ,IAAI,CAAC;AAAA,IAAA;AAAA,IAE/C,QAAS,sBAAA,cAAA,MAAA,EAAK,MAAY,WAAW,QAAQ,MAAM,GAAG;AAAA,IACvD,sBAAA,cAAC,OAAI,EAAA,WAAW,QAAQ,WAAW,EACjC,GAAA,sBAAA,cAAC,YAAW,EAAA,SAAS,MAAM,WAAW,QAAQ,UAAU,EACrD,GAAA,KACH,GACA,sBAAA,cAAC,YAAW,EAAA,SAAS,QAAQ,WAAW,QAAQ,SAAS,GAAG,KAAK,IAC9D,GAAA,QACH,CACF;AAAA,EACF;AAEJ;AAEa,MAAA,SAAS,MAAM,WAAW,eAAe;"}
1
+ {"version":3,"file":"Banner.es.js","sources":["../../../../src/components/Notifications/Banner/Banner.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 AriaAttributes,\n AriaRole,\n ComponentPropsWithRef,\n ForwardRefRenderFunction\n} from \"react\";\nimport { Typography } from \"../../Typography/Typography\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport classes from \"./Banner.module.scss\";\n\nexport type BannerType = \"error\" | \"warning\" | \"info\";\nexport interface Props extends ComponentPropsWithRef<\"section\"> {\n children: string;\n ariaRole?: AriaRole;\n ariaLive?: AriaAttributes[\"aria-live\"];\n ariaLabel?: AriaAttributes[\"aria-label\"];\n type: BannerType;\n title: string;\n}\n\nconst BannerComponent: ForwardRefRenderFunction<HTMLElement, Props> = (\n { children, ariaLabel, ariaRole, ariaLive, type, title, ...rest }: Props,\n ref\n) => {\n const getIconVariant = (type: BannerType): Icons | null => {\n switch (type) {\n case \"info\":\n return Icons.InfoCircle;\n case \"error\":\n return Icons.Error;\n case \"warning\":\n return Icons.Warning;\n default:\n return null;\n }\n };\n\n const icon = getIconVariant(type);\n\n return (\n <section\n {...rest}\n ref={ref}\n aria-live={ariaLive}\n aria-label={ariaLabel}\n role={ariaRole}\n className={`${classes[\"banner\"]} ${classes[type]}`}\n >\n {icon && <Icon icon={icon} className={classes[\"icon\"]} />}\n <div className={classes[\"container\"]}>\n <Typography variant={\"h4\"} className={classes[\"headline\"]}>\n {title}\n </Typography>\n <Typography variant={\"body\"} className={classes[\"content\"]} tag={\"p\"}>\n {children}\n </Typography>\n </div>\n </section>\n );\n};\n\nexport const Banner = React.forwardRef(BannerComponent);\n"],"names":["type"],"mappings":";;;;AAoCA,MAAM,kBAAgE,CACpE,EAAE,UAAU,WAAW,UAAU,UAAU,MAAM,OAAO,GAAG,KAAA,GAC3D,QACG;AACH,QAAM,iBAAiB,CAACA,UAAmC;AACzD,YAAQA,OAAAA;AAAAA,MACN,KAAK;AACH,eAAO,MAAM;AAAA,MACf,KAAK;AACH,eAAO,MAAM;AAAA,MACf,KAAK;AACH,eAAO,MAAM;AAAA,MACf;AACE,eAAO;AAAA,IAAA;AAAA,EAEb;AAEA,QAAM,OAAO,eAAe,IAAI;AAEhC,SACE,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA,aAAW;AAAA,MACX,cAAY;AAAA,MACZ,MAAM;AAAA,MACN,WAAW,GAAG,QAAQ,QAAQ,CAAC,IAAI,QAAQ,IAAI,CAAC;AAAA,IAAA;AAAA,IAE/C,QAAQ,sBAAA,cAAC,MAAA,EAAK,MAAY,WAAW,QAAQ,MAAM,GAAG;AAAA,IACvD,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,WAAW,EAAA,GACjC,sBAAA,cAAC,YAAA,EAAW,SAAS,MAAM,WAAW,QAAQ,UAAU,EAAA,GACrD,KACH,GACA,sBAAA,cAAC,YAAA,EAAW,SAAS,QAAQ,WAAW,QAAQ,SAAS,GAAG,KAAK,IAAA,GAC9D,QACH,CACF;AAAA,EAAA;AAGN;AAEO,MAAM,SAAS,MAAM,WAAW,eAAe;"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var n=document.createElement("style");n.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 */.Banner_banner_gFXfX{padding:1rem 1.25rem;background-color:var(--light);display:flex;border-width:0 0 0 var(--banner-border-width);border-style:solid;flex-grow:0;border-radius:var(--banner-border-radius)}.Banner_banner_gFXfX .Banner_container_gFXfX{display:block;margin-left:1rem;flex:1;color:var(--default)}.Banner_banner_gFXfX .Banner_headline_gFXfX{margin-bottom:.25rem}.Banner_banner_gFXfX .Banner_content_gFXfX{margin-bottom:0}.Banner_banner_gFXfX .Banner_icon_gFXfX{margin-top:.1rem;font-size:var(--font-size-big);line-height:var(--default-line-height)}.Banner_banner_gFXfX.Banner_info_gFXfX{border-color:var(--info)}.Banner_banner_gFXfX.Banner_info_gFXfX .Banner_icon_gFXfX,.Banner_banner_gFXfX.Banner_info_gFXfX .Banner_headline_gFXfX{color:var(--info)}.Banner_banner_gFXfX.Banner_warning_gFXfX{border-color:var(--warning)}.Banner_banner_gFXfX.Banner_warning_gFXfX .Banner_icon_gFXfX,.Banner_banner_gFXfX.Banner_warning_gFXfX .Banner_headline_gFXfX{color:var(--warning)}.Banner_banner_gFXfX.Banner_error_gFXfX{border-color:var(--error)}.Banner_banner_gFXfX.Banner_error_gFXfX .Banner_icon_gFXfX,.Banner_banner_gFXfX.Banner_error_gFXfX .Banner_headline_gFXfX{color:var(--error)}')),document.head.appendChild(n)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n="Banner_banner_gFXfX",e="Banner_container_gFXfX",r="Banner_headline_gFXfX",o="Banner_content_gFXfX",t="Banner_icon_gFXfX",a="Banner_info_gFXfX",i="Banner_warning_gFXfX",_="Banner_error_gFXfX",X={banner:n,container:e,headline:r,content:o,icon:t,info:a,warning:i,error:_};exports.banner=n,exports.container=e,exports.content=o,exports.default=X,exports.error=_,exports.headline=r,exports.icon=t,exports.info=a,exports.warning=i;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var n=document.createElement("style");n.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 */.Banner_banner_jyx43{padding:1rem 1.25rem;background-color:var(--light);display:flex;border-width:0 0 0 var(--banner-border-width);border-style:solid;flex-grow:0;border-radius:var(--banner-border-radius)}.Banner_banner_jyx43 .Banner_container_jyx43{display:block;margin-left:1rem;flex:1;color:var(--default)}.Banner_banner_jyx43 .Banner_headline_jyx43{margin-bottom:.25rem}.Banner_banner_jyx43 .Banner_content_jyx43{margin-bottom:0}.Banner_banner_jyx43 .Banner_icon_jyx43{margin-top:.1rem;font-size:var(--font-size-big);line-height:var(--default-line-height)}.Banner_banner_jyx43.Banner_info_jyx43{border-color:var(--info)}.Banner_banner_jyx43.Banner_info_jyx43 .Banner_icon_jyx43,.Banner_banner_jyx43.Banner_info_jyx43 .Banner_headline_jyx43{color:var(--info)}.Banner_banner_jyx43.Banner_warning_jyx43{border-color:var(--warning)}.Banner_banner_jyx43.Banner_warning_jyx43 .Banner_icon_jyx43,.Banner_banner_jyx43.Banner_warning_jyx43 .Banner_headline_jyx43{color:var(--warning)}.Banner_banner_jyx43.Banner_error_jyx43{border-color:var(--error)}.Banner_banner_jyx43.Banner_error_jyx43 .Banner_icon_jyx43,.Banner_banner_jyx43.Banner_error_jyx43 .Banner_headline_jyx43{color:var(--error)}')),document.head.appendChild(n)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n="Banner_banner_jyx43",e="Banner_container_jyx43",r="Banner_headline_jyx43",o="Banner_content_jyx43",t="Banner_icon_jyx43",a="Banner_info_jyx43",i="Banner_warning_jyx43",x="Banner_error_jyx43",_={banner:n,container:e,headline:r,content:o,icon:t,info:a,warning:i,error:x};exports.banner=n,exports.container=e,exports.content=o,exports.default=_,exports.error=x,exports.headline=r,exports.icon=t,exports.info=a,exports.warning=i;
3
3
  //# sourceMappingURL=Banner.module.scss.cjs.js.map