@onewelcome/react-lib-components 13.2.0 → 13.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +2 -2
  2. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.es.js +5 -5
  3. package/dist/components/Button/BaseButton.module.scss.cjs.js +2 -2
  4. package/dist/components/Button/BaseButton.module.scss.es.js +4 -4
  5. package/dist/components/Button/Button.module.scss.cjs.js +2 -2
  6. package/dist/components/Button/Button.module.scss.es.js +17 -17
  7. package/dist/components/Button/IconButton.module.scss.cjs.js +2 -2
  8. package/dist/components/Button/IconButton.module.scss.es.js +18 -18
  9. package/dist/components/ContextMenu/ContextMenu.cjs.js.map +1 -1
  10. package/dist/components/ContextMenu/ContextMenu.es.js.map +1 -1
  11. package/dist/components/ContextMenu/ContextMenu.module.scss.cjs.js +2 -2
  12. package/dist/components/ContextMenu/ContextMenu.module.scss.es.js +6 -6
  13. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.cjs.js +2 -2
  14. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.es.js +2 -2
  15. package/dist/components/ContextMenu/ContextMenuItem.module.scss.cjs.js +2 -2
  16. package/dist/components/ContextMenu/ContextMenuItem.module.scss.es.js +3 -3
  17. package/dist/components/ContextMenu/ContextMenuService.cjs.js +1 -1
  18. package/dist/components/ContextMenu/ContextMenuService.cjs.js.map +1 -1
  19. package/dist/components/ContextMenu/ContextMenuService.es.js +20 -17
  20. package/dist/components/ContextMenu/ContextMenuService.es.js.map +1 -1
  21. package/dist/components/DataGrid/DataGrid.cjs.js +1 -1
  22. package/dist/components/DataGrid/DataGrid.cjs.js.map +1 -1
  23. package/dist/components/DataGrid/DataGrid.es.js +76 -51
  24. package/dist/components/DataGrid/DataGrid.es.js.map +1 -1
  25. package/dist/components/DataGrid/DataGrid.module.scss.cjs.js +2 -2
  26. package/dist/components/DataGrid/DataGrid.module.scss.es.js +8 -7
  27. package/dist/components/DataGrid/DataGrid.module.scss.es.js.map +1 -1
  28. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +2 -2
  29. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.es.js +6 -6
  30. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +2 -2
  31. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.es.js +7 -7
  32. package/dist/components/DataGrid/DataGridBody/DataGridBody.cjs.js +1 -1
  33. package/dist/components/DataGrid/DataGridBody/DataGridBody.cjs.js.map +1 -1
  34. package/dist/components/DataGrid/DataGridBody/DataGridBody.es.js +4 -2
  35. package/dist/components/DataGrid/DataGridBody/DataGridBody.es.js.map +1 -1
  36. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +2 -2
  37. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.es.js +2 -2
  38. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +2 -2
  39. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.es.js +5 -5
  40. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +2 -2
  41. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.es.js +4 -4
  42. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +2 -2
  43. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.es.js +5 -5
  44. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +2 -2
  45. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.es.js +24 -24
  46. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.cjs.js.map +1 -1
  47. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.es.js +1 -1
  48. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.es.js.map +1 -1
  49. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js +1 -1
  50. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js.map +1 -1
  51. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js +3 -3
  52. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js.map +1 -1
  53. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +2 -2
  54. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.es.js +9 -9
  55. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js +1 -1
  56. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js.map +1 -1
  57. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js +1 -1
  58. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js.map +1 -1
  59. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.cjs.js +1 -1
  60. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.cjs.js.map +1 -1
  61. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.es.js +4 -4
  62. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.es.js.map +1 -1
  63. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +2 -2
  64. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.es.js +10 -10
  65. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.cjs.js +1 -1
  66. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.cjs.js.map +1 -1
  67. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.es.js +1 -1
  68. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.es.js.map +1 -1
  69. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +2 -2
  70. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.es.js +17 -17
  71. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.cjs.js +1 -1
  72. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.cjs.js.map +1 -1
  73. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.es.js +45 -24
  74. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.es.js.map +1 -1
  75. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.cjs.js +1 -1
  76. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.cjs.js.map +1 -1
  77. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.es.js +7 -9
  78. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.es.js.map +1 -1
  79. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.cjs.js +1 -1
  80. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.cjs.js.map +1 -1
  81. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.es.js +5 -2
  82. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.es.js.map +1 -1
  83. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +2 -2
  84. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js +7 -4
  85. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js.map +1 -1
  86. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js.map +1 -1
  87. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.es.js +1 -1
  88. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.es.js.map +1 -1
  89. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +2 -2
  90. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.es.js +11 -11
  91. package/dist/components/DatePicker/DatePicker.module.scss.cjs.js +2 -2
  92. package/dist/components/DatePicker/DatePicker.module.scss.es.js +31 -31
  93. package/dist/components/Form/Checkbox/Checkbox.module.scss.cjs.js +2 -2
  94. package/dist/components/Form/Checkbox/Checkbox.module.scss.es.js +13 -13
  95. package/dist/components/Form/Fieldset/Fieldset.cjs.js +1 -1
  96. package/dist/components/Form/Fieldset/Fieldset.cjs.js.map +1 -1
  97. package/dist/components/Form/Fieldset/Fieldset.es.js +2 -1
  98. package/dist/components/Form/Fieldset/Fieldset.es.js.map +1 -1
  99. package/dist/components/Form/Fieldset/Fieldset.module.scss.cjs.js +2 -2
  100. package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js +8 -5
  101. package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js.map +1 -1
  102. package/dist/components/Form/FileUpload/FileItem/FileItem.cjs.js +1 -1
  103. package/dist/components/Form/FileUpload/FileItem/FileItem.cjs.js.map +1 -1
  104. package/dist/components/Form/FileUpload/FileItem/FileItem.es.js +1 -1
  105. package/dist/components/Form/FileUpload/FileItem/FileItem.es.js.map +1 -1
  106. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +2 -2
  107. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.es.js +18 -18
  108. package/dist/components/Form/FileUpload/FileUpload.cjs.js +1 -1
  109. package/dist/components/Form/FileUpload/FileUpload.cjs.js.map +1 -1
  110. package/dist/components/Form/FileUpload/FileUpload.es.js +6 -6
  111. package/dist/components/Form/FileUpload/FileUpload.es.js.map +1 -1
  112. package/dist/components/Form/FileUpload/FileUpload.module.scss.cjs.js +2 -2
  113. package/dist/components/Form/FileUpload/FileUpload.module.scss.es.js +16 -16
  114. package/dist/components/Form/Form.module.scss.cjs.js +2 -2
  115. package/dist/components/Form/Form.module.scss.es.js +2 -2
  116. package/dist/components/Form/FormControl/FormControl.module.scss.cjs.js +2 -2
  117. package/dist/components/Form/FormControl/FormControl.module.scss.es.js +13 -13
  118. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.cjs.js +2 -2
  119. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js +9 -6
  120. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js.map +1 -1
  121. package/dist/components/Form/FormGroup/FormGroup.module.scss.cjs.js +2 -2
  122. package/dist/components/Form/FormGroup/FormGroup.module.scss.es.js +3 -3
  123. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.cjs.js +2 -2
  124. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.es.js +4 -4
  125. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js +1 -1
  126. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js.map +1 -1
  127. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.es.js +4 -1
  128. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.es.js.map +1 -1
  129. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +2 -2
  130. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.es.js +6 -6
  131. package/dist/components/Form/Input/Input.cjs.js +1 -1
  132. package/dist/components/Form/Input/Input.cjs.js.map +1 -1
  133. package/dist/components/Form/Input/Input.es.js +48 -5
  134. package/dist/components/Form/Input/Input.es.js.map +1 -1
  135. package/dist/components/Form/Input/Input.module.scss.cjs.js +2 -2
  136. package/dist/components/Form/Input/Input.module.scss.es.js +8 -8
  137. package/dist/components/Form/Label/Label.module.scss.cjs.js +2 -2
  138. package/dist/components/Form/Label/Label.module.scss.es.js +2 -2
  139. package/dist/components/Form/Radio/Radio.cjs.js.map +1 -1
  140. package/dist/components/Form/Radio/Radio.es.js +1 -1
  141. package/dist/components/Form/Radio/Radio.es.js.map +1 -1
  142. package/dist/components/Form/Radio/Radio.module.scss.cjs.js +2 -2
  143. package/dist/components/Form/Radio/Radio.module.scss.es.js +11 -11
  144. package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js +1 -1
  145. package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js.map +1 -1
  146. package/dist/components/Form/Select/MultiSelect/MultiOption.es.js +3 -4
  147. package/dist/components/Form/Select/MultiSelect/MultiOption.es.js.map +1 -1
  148. package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js +1 -1
  149. package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js.map +1 -1
  150. package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js +68 -39
  151. package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js.map +1 -1
  152. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +2 -2
  153. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js +15 -15
  154. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +2 -2
  155. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.es.js +2 -2
  156. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +2 -2
  157. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.es.js +4 -4
  158. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js +1 -1
  159. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js.map +1 -1
  160. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.es.js +81 -33
  161. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.es.js.map +1 -1
  162. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js +1 -1
  163. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
  164. package/dist/components/Form/Select/MultiSelect/useSearch.es.js +5 -4
  165. package/dist/components/Form/Select/MultiSelect/useSearch.es.js.map +1 -1
  166. package/dist/components/Form/Select/SingleSelect/Option.cjs.js +1 -1
  167. package/dist/components/Form/Select/SingleSelect/Option.cjs.js.map +1 -1
  168. package/dist/components/Form/Select/SingleSelect/Option.es.js +7 -1
  169. package/dist/components/Form/Select/SingleSelect/Option.es.js.map +1 -1
  170. package/dist/components/Form/Select/SingleSelect/Select.cjs.js +1 -1
  171. package/dist/components/Form/Select/SingleSelect/Select.cjs.js.map +1 -1
  172. package/dist/components/Form/Select/SingleSelect/Select.es.js +48 -28
  173. package/dist/components/Form/Select/SingleSelect/Select.es.js.map +1 -1
  174. package/dist/components/Form/Select/SingleSelect/Select.module.scss.cjs.js +2 -2
  175. package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js +17 -17
  176. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js +1 -1
  177. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js.map +1 -1
  178. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.es.js +119 -91
  179. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.es.js.map +1 -1
  180. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js +1 -1
  181. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -1
  182. package/dist/components/Form/Select/SingleSelect/useSearch.es.js +2 -2
  183. package/dist/components/Form/Select/SingleSelect/useSearch.es.js.map +1 -1
  184. package/dist/components/Form/Select/useAddNewBtn.module.scss.cjs.js +2 -2
  185. package/dist/components/Form/Select/useAddNewBtn.module.scss.es.js +4 -4
  186. package/dist/components/Form/Textarea/Textarea.cjs.js +1 -1
  187. package/dist/components/Form/Textarea/Textarea.cjs.js.map +1 -1
  188. package/dist/components/Form/Textarea/Textarea.es.js +4 -0
  189. package/dist/components/Form/Textarea/Textarea.es.js.map +1 -1
  190. package/dist/components/Form/Textarea/Textarea.module.scss.cjs.js +2 -2
  191. package/dist/components/Form/Textarea/Textarea.module.scss.es.js +6 -6
  192. package/dist/components/Form/Toggle/Toggle.cjs.js +1 -1
  193. package/dist/components/Form/Toggle/Toggle.cjs.js.map +1 -1
  194. package/dist/components/Form/Toggle/Toggle.es.js +5 -3
  195. package/dist/components/Form/Toggle/Toggle.es.js.map +1 -1
  196. package/dist/components/Form/Toggle/Toggle.module.scss.cjs.js +2 -2
  197. package/dist/components/Form/Toggle/Toggle.module.scss.es.js +18 -18
  198. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js +1 -1
  199. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js.map +1 -1
  200. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.es.js +25 -17
  201. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.es.js.map +1 -1
  202. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +2 -2
  203. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js +8 -4
  204. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js.map +1 -1
  205. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +2 -2
  206. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.es.js +5 -5
  207. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +2 -2
  208. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.es.js +3 -3
  209. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +1 -1
  210. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -1
  211. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.es.js +37 -21
  212. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.es.js.map +1 -1
  213. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +2 -2
  214. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js +8 -4
  215. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js.map +1 -1
  216. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +2 -2
  217. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.es.js +3 -3
  218. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js +1 -1
  219. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js.map +1 -1
  220. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.es.js +2 -0
  221. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.es.js.map +1 -1
  222. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +2 -2
  223. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.es.js +8 -8
  224. package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js +1 -1
  225. package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js.map +1 -1
  226. package/dist/components/Form/Wrapper/Wrapper/Wrapper.es.js +1 -1
  227. package/dist/components/Form/Wrapper/Wrapper/Wrapper.es.js.map +1 -1
  228. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +2 -2
  229. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.es.js +6 -6
  230. package/dist/components/Icon/Icon.cjs.js +1 -1
  231. package/dist/components/Icon/Icon.cjs.js.map +1 -1
  232. package/dist/components/Icon/Icon.es.js +1 -1
  233. package/dist/components/Icon/Icon.es.js.map +1 -1
  234. package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
  235. package/dist/components/Icon/Icon.module.scss.es.js +108 -108
  236. package/dist/components/Layout/ActionBar/ActionBar.module.scss.cjs.js +2 -2
  237. package/dist/components/Layout/ActionBar/ActionBar.module.scss.es.js +10 -10
  238. package/dist/components/Layout/Card/Card.module.scss.cjs.js +2 -2
  239. package/dist/components/Layout/Card/Card.module.scss.es.js +12 -12
  240. package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js +1 -1
  241. package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js.map +1 -1
  242. package/dist/components/Layout/ContentHeader/ContentHeader.es.js +66 -41
  243. package/dist/components/Layout/ContentHeader/ContentHeader.es.js.map +1 -1
  244. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +2 -2
  245. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js +28 -13
  246. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js.map +1 -1
  247. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +2 -2
  248. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js +4 -4
  249. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +2 -2
  250. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js +2 -2
  251. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +2 -2
  252. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.es.js +3 -3
  253. package/dist/components/Link/Link.cjs.js.map +1 -1
  254. package/dist/components/Link/Link.es.js +1 -1
  255. package/dist/components/Link/Link.es.js.map +1 -1
  256. package/dist/components/Link/Link.module.scss.cjs.js +2 -2
  257. package/dist/components/Link/Link.module.scss.es.js +17 -17
  258. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +2 -2
  259. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.es.js +11 -11
  260. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js +1 -1
  261. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js.map +1 -1
  262. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.es.js +7 -1
  263. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.es.js.map +1 -1
  264. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +2 -2
  265. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.es.js +22 -22
  266. package/dist/components/Notifications/Banner/Banner.module.scss.cjs.js +2 -2
  267. package/dist/components/Notifications/Banner/Banner.module.scss.es.js +9 -9
  268. package/dist/components/Notifications/BaseModal/BaseModal.cjs.js +1 -1
  269. package/dist/components/Notifications/BaseModal/BaseModal.cjs.js.map +1 -1
  270. package/dist/components/Notifications/BaseModal/BaseModal.es.js +1 -1
  271. package/dist/components/Notifications/BaseModal/BaseModal.es.js.map +1 -1
  272. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.cjs.js +2 -2
  273. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.es.js +5 -5
  274. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +2 -2
  275. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.es.js +4 -4
  276. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +2 -2
  277. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.es.js +2 -2
  278. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +2 -2
  279. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.es.js +6 -6
  280. package/dist/components/Notifications/Dialog/Dialog.module.scss.cjs.js +2 -2
  281. package/dist/components/Notifications/Dialog/Dialog.module.scss.es.js +4 -4
  282. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +2 -2
  283. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.es.js +3 -3
  284. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +2 -2
  285. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.es.js +10 -10
  286. package/dist/components/Notifications/SideSheet/SideSheet.cjs.js.map +1 -1
  287. package/dist/components/Notifications/SideSheet/SideSheet.es.js +1 -1
  288. package/dist/components/Notifications/SideSheet/SideSheet.es.js.map +1 -1
  289. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.cjs.js +2 -2
  290. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.es.js +13 -13
  291. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +2 -2
  292. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.es.js +2 -2
  293. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +2 -2
  294. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.es.js +2 -2
  295. package/dist/components/Notifications/SlideInModal/SlideInModal.cjs.js.map +1 -1
  296. package/dist/components/Notifications/SlideInModal/SlideInModal.es.js +1 -1
  297. package/dist/components/Notifications/SlideInModal/SlideInModal.es.js.map +1 -1
  298. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +2 -2
  299. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.es.js +10 -10
  300. package/dist/components/Pagination/Pagination.cjs.js +1 -1
  301. package/dist/components/Pagination/Pagination.cjs.js.map +1 -1
  302. package/dist/components/Pagination/Pagination.es.js +118 -90
  303. package/dist/components/Pagination/Pagination.es.js.map +1 -1
  304. package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
  305. package/dist/components/Pagination/Pagination.module.scss.es.js +15 -14
  306. package/dist/components/Pagination/Pagination.module.scss.es.js.map +1 -1
  307. package/dist/components/Popover/Popover.module.scss.cjs.js +2 -2
  308. package/dist/components/Popover/Popover.module.scss.es.js +3 -3
  309. package/dist/components/ProgressBar/ProgressBar.cjs.js.map +1 -1
  310. package/dist/components/ProgressBar/ProgressBar.es.js.map +1 -1
  311. package/dist/components/ProgressBar/ProgressBar.module.scss.cjs.js +2 -2
  312. package/dist/components/ProgressBar/ProgressBar.module.scss.es.js +9 -9
  313. package/dist/components/Skeleton/Skeleton.module.scss.cjs.js +2 -2
  314. package/dist/components/Skeleton/Skeleton.module.scss.es.js +5 -5
  315. package/dist/components/Spinner/Spinner.module.scss.cjs.js +2 -2
  316. package/dist/components/Spinner/Spinner.module.scss.es.js +3 -3
  317. package/dist/components/Stepper/Step.module.scss.cjs.js +2 -2
  318. package/dist/components/Stepper/Step.module.scss.es.js +22 -22
  319. package/dist/components/Stepper/Stepper.module.scss.cjs.js +2 -2
  320. package/dist/components/Stepper/Stepper.module.scss.es.js +4 -4
  321. package/dist/components/Tabs/Tab.module.scss.cjs.js +2 -2
  322. package/dist/components/Tabs/Tab.module.scss.es.js +3 -3
  323. package/dist/components/Tabs/TabButton.module.scss.cjs.js +2 -2
  324. package/dist/components/Tabs/TabButton.module.scss.es.js +12 -12
  325. package/dist/components/Tabs/Tabs.module.scss.cjs.js +2 -2
  326. package/dist/components/Tabs/Tabs.module.scss.es.js +10 -10
  327. package/dist/components/Tag/RemoveButton.module.scss.cjs.js +2 -2
  328. package/dist/components/Tag/RemoveButton.module.scss.es.js +3 -3
  329. package/dist/components/Tag/Tag.module.scss.cjs.js +2 -2
  330. package/dist/components/Tag/Tag.module.scss.es.js +6 -6
  331. package/dist/components/TextEllipsis/TextEllipsis.cjs.js.map +1 -1
  332. package/dist/components/TextEllipsis/TextEllipsis.es.js.map +1 -1
  333. package/dist/components/TextEllipsis/TextEllipsis.module.scss.cjs.js +2 -2
  334. package/dist/components/TextEllipsis/TextEllipsis.module.scss.es.js +3 -3
  335. package/dist/components/Tiles/Tile.cjs.js.map +1 -1
  336. package/dist/components/Tiles/Tile.es.js.map +1 -1
  337. package/dist/components/Tiles/Tile.module.scss.cjs.js +2 -2
  338. package/dist/components/Tiles/Tile.module.scss.es.js +8 -8
  339. package/dist/components/Tiles/Tiles.module.scss.cjs.js +2 -2
  340. package/dist/components/Tiles/Tiles.module.scss.es.js +2 -2
  341. package/dist/components/Tooltip/Tooltip.cjs.js +1 -1
  342. package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -1
  343. package/dist/components/Tooltip/Tooltip.es.js +9 -16
  344. package/dist/components/Tooltip/Tooltip.es.js.map +1 -1
  345. package/dist/components/Tooltip/Tooltip.module.scss.cjs.js +2 -2
  346. package/dist/components/Tooltip/Tooltip.module.scss.es.js +28 -27
  347. package/dist/components/Tooltip/Tooltip.module.scss.es.js.map +1 -1
  348. package/dist/components/Typography/Typography.module.scss.cjs.js +2 -2
  349. package/dist/components/Typography/Typography.module.scss.es.js +13 -13
  350. package/dist/components/_BaseStyling_/BaseStyling.cjs.js +2 -2
  351. package/dist/components/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
  352. package/dist/components/_BaseStyling_/BaseStyling.es.js +2 -4
  353. package/dist/components/_BaseStyling_/BaseStyling.es.js.map +1 -1
  354. package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js.map +1 -1
  355. package/dist/components/admin/layout/LeftNav/LeftNav.es.js +1 -1
  356. package/dist/components/admin/layout/LeftNav/LeftNav.es.js.map +1 -1
  357. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -2
  358. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.es.js +5 -5
  359. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -2
  360. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.es.js +14 -14
  361. package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js +1 -1
  362. package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js.map +1 -1
  363. package/dist/components/admin/layout/LeftNav/useRefItems.es.js +7 -6
  364. package/dist/components/admin/layout/LeftNav/useRefItems.es.js.map +1 -1
  365. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +2 -2
  366. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js +3 -3
  367. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js +2 -2
  368. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js +7 -7
  369. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js +2 -2
  370. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js +13 -13
  371. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.cjs.js +2 -2
  372. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.es.js +3 -3
  373. package/dist/components/withReadOnly.cjs.js +1 -1
  374. package/dist/components/withReadOnly.cjs.js.map +1 -1
  375. package/dist/components/withReadOnly.es.js +2 -4
  376. package/dist/components/withReadOnly.es.js.map +1 -1
  377. package/dist/hooks/useScreenSize.cjs.js +1 -1
  378. package/dist/hooks/useScreenSize.cjs.js.map +1 -1
  379. package/dist/hooks/useScreenSize.es.js +1 -1
  380. package/dist/hooks/useScreenSize.es.js.map +1 -1
  381. package/dist/hooks/useStickyStacking.cjs.js +2 -0
  382. package/dist/hooks/useStickyStacking.cjs.js.map +1 -0
  383. package/dist/hooks/useStickyStacking.es.js +208 -0
  384. package/dist/hooks/useStickyStacking.es.js.map +1 -0
  385. package/dist/hooks/useUploadFile.cjs.js +1 -1
  386. package/dist/hooks/useUploadFile.cjs.js.map +1 -1
  387. package/dist/hooks/useUploadFile.es.js +1 -1
  388. package/dist/hooks/useUploadFile.es.js.map +1 -1
  389. package/dist/index.cjs.js +1 -1
  390. package/dist/index.d.ts +33 -5
  391. package/dist/index.es.js +2 -0
  392. package/dist/index.es.js.map +1 -1
  393. package/dist/readyclasses.module.scss.cjs.js +2 -2
  394. package/dist/readyclasses.module.scss.es.js +5 -5
  395. package/dist/util/helper.cjs.js +1 -1
  396. package/dist/util/helper.cjs.js.map +1 -1
  397. package/dist/util/helper.es.js +14 -16
  398. package/dist/util/helper.es.js.map +1 -1
  399. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.ActionBar_action-bar_EVNeA{display:flex;align-items:center;justify-content:space-between;padding:calc(.75 * var(--font-size)) 0;background-color:var(--color-white);width:100%;box-sizing:border-box;min-height:calc(3.5 * var(--font-size));gap:calc(1 * var(--font-size))}.ActionBar_inline_EVNeA{position:relative}.ActionBar_docked_EVNeA{position:fixed;bottom:0;left:0;right:0;padding-top:calc(.75 * var(--font-size));padding-bottom:calc(.75 * var(--font-size));padding-left:var(--action-bar-horizontal-padding, 2rem);padding-right:var(--action-bar-horizontal-padding, 2rem);z-index:10;box-shadow:0 -2px 4px #01053205,0 -4px 12px #0105320a,0 -8px 24px #0105320a}.ActionBar_sticky_EVNeA{position:sticky;bottom:0;z-index:10}.ActionBar_sticky_EVNeA.ActionBar_is-stuck_EVNeA{margin-left:calc(-1 * var(--action-bar-horizontal-padding, 2rem));margin-right:calc(-1 * var(--action-bar-horizontal-padding, 2rem));padding-left:var(--action-bar-horizontal-padding, 2rem);padding-right:var(--action-bar-horizontal-padding, 2rem);width:auto;box-shadow:0 -2px 4px #01053205,0 -4px 12px #0105320a,0 -8px 24px #0105320a}.ActionBar_placeholder_EVNeA{visibility:hidden;pointer-events:none}.ActionBar_button-area_EVNeA{display:flex;align-items:center;gap:calc(.5 * var(--font-size));flex-shrink:0}.ActionBar_status-area_EVNeA{display:flex;align-items:center;justify-content:flex-end;flex:1 1 auto;min-width:0}.ActionBar_status-text_EVNeA{color:var(--color-blue-grey500);font-size:calc(.875 * var(--font-size));line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="ActionBar_inline_EVNeA",e="ActionBar_docked_EVNeA",a="ActionBar_sticky_EVNeA",o="ActionBar_placeholder_EVNeA",r={"action-bar":"ActionBar_action-bar_EVNeA",inline:t,docked:e,sticky:a,"is-stuck":"ActionBar_is-stuck_EVNeA",placeholder:o,"button-area":"ActionBar_button-area_EVNeA","status-area":"ActionBar_status-area_EVNeA","status-text":"ActionBar_status-text_EVNeA"};exports.default=r,exports.docked=e,exports.inline=t,exports.placeholder=o,exports.sticky=a;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.ActionBar_action-bar_FHLkT{display:flex;align-items:center;justify-content:space-between;padding:calc(.75 * var(--font-size)) 0;background-color:var(--color-white);width:100%;box-sizing:border-box;min-height:calc(3.5 * var(--font-size));gap:calc(1 * var(--font-size))}.ActionBar_inline_FHLkT{position:relative}.ActionBar_docked_FHLkT{position:fixed;bottom:0;left:0;right:0;padding-top:calc(.75 * var(--font-size));padding-bottom:calc(.75 * var(--font-size));padding-left:var(--action-bar-horizontal-padding, 2rem);padding-right:var(--action-bar-horizontal-padding, 2rem);z-index:10;box-shadow:0 -2px 4px #01053205,0 -4px 12px #0105320a,0 -8px 24px #0105320a}.ActionBar_sticky_FHLkT{position:sticky;bottom:0;z-index:10}.ActionBar_sticky_FHLkT.ActionBar_is-stuck_FHLkT{margin-left:calc(-1 * var(--action-bar-horizontal-padding, 2rem));margin-right:calc(-1 * var(--action-bar-horizontal-padding, 2rem));padding-left:var(--action-bar-horizontal-padding, 2rem);padding-right:var(--action-bar-horizontal-padding, 2rem);width:auto;box-shadow:0 -2px 4px #01053205,0 -4px 12px #0105320a,0 -8px 24px #0105320a}.ActionBar_placeholder_FHLkT{visibility:hidden;pointer-events:none}.ActionBar_button-area_FHLkT{display:flex;align-items:center;gap:calc(.5 * var(--font-size));flex-shrink:0}.ActionBar_status-area_FHLkT{display:flex;align-items:center;justify-content:flex-end;flex:1 1 auto;min-width:0}.ActionBar_status-text_FHLkT{color:var(--color-blue-grey500);font-size:calc(.875 * var(--font-size));line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="ActionBar_inline_FHLkT",e="ActionBar_docked_FHLkT",a="ActionBar_sticky_FHLkT",o="ActionBar_placeholder_FHLkT",r={"action-bar":"ActionBar_action-bar_FHLkT",inline:t,docked:e,sticky:a,"is-stuck":"ActionBar_is-stuck_FHLkT",placeholder:o,"button-area":"ActionBar_button-area_FHLkT","status-area":"ActionBar_status-area_FHLkT","status-text":"ActionBar_status-text_FHLkT"};exports.default=r,exports.docked=e,exports.inline=t,exports.placeholder=o,exports.sticky=a;
3
3
  //# sourceMappingURL=ActionBar.module.scss.cjs.js.map
@@ -1,18 +1,18 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.ActionBar_action-bar_EVNeA{display:flex;align-items:center;justify-content:space-between;padding:calc(.75 * var(--font-size)) 0;background-color:var(--color-white);width:100%;box-sizing:border-box;min-height:calc(3.5 * var(--font-size));gap:calc(1 * var(--font-size))}.ActionBar_inline_EVNeA{position:relative}.ActionBar_docked_EVNeA{position:fixed;bottom:0;left:0;right:0;padding-top:calc(.75 * var(--font-size));padding-bottom:calc(.75 * var(--font-size));padding-left:var(--action-bar-horizontal-padding, 2rem);padding-right:var(--action-bar-horizontal-padding, 2rem);z-index:10;box-shadow:0 -2px 4px #01053205,0 -4px 12px #0105320a,0 -8px 24px #0105320a}.ActionBar_sticky_EVNeA{position:sticky;bottom:0;z-index:10}.ActionBar_sticky_EVNeA.ActionBar_is-stuck_EVNeA{margin-left:calc(-1 * var(--action-bar-horizontal-padding, 2rem));margin-right:calc(-1 * var(--action-bar-horizontal-padding, 2rem));padding-left:var(--action-bar-horizontal-padding, 2rem);padding-right:var(--action-bar-horizontal-padding, 2rem);width:auto;box-shadow:0 -2px 4px #01053205,0 -4px 12px #0105320a,0 -8px 24px #0105320a}.ActionBar_placeholder_EVNeA{visibility:hidden;pointer-events:none}.ActionBar_button-area_EVNeA{display:flex;align-items:center;gap:calc(.5 * var(--font-size));flex-shrink:0}.ActionBar_status-area_EVNeA{display:flex;align-items:center;justify-content:flex-end;flex:1 1 auto;min-width:0}.ActionBar_status-text_EVNeA{color:var(--color-blue-grey500);font-size:calc(.875 * var(--font-size));line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
- const inline = "ActionBar_inline_EVNeA";
3
- const docked = "ActionBar_docked_EVNeA";
4
- const sticky = "ActionBar_sticky_EVNeA";
5
- const placeholder = "ActionBar_placeholder_EVNeA";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.ActionBar_action-bar_FHLkT{display:flex;align-items:center;justify-content:space-between;padding:calc(.75 * var(--font-size)) 0;background-color:var(--color-white);width:100%;box-sizing:border-box;min-height:calc(3.5 * var(--font-size));gap:calc(1 * var(--font-size))}.ActionBar_inline_FHLkT{position:relative}.ActionBar_docked_FHLkT{position:fixed;bottom:0;left:0;right:0;padding-top:calc(.75 * var(--font-size));padding-bottom:calc(.75 * var(--font-size));padding-left:var(--action-bar-horizontal-padding, 2rem);padding-right:var(--action-bar-horizontal-padding, 2rem);z-index:10;box-shadow:0 -2px 4px #01053205,0 -4px 12px #0105320a,0 -8px 24px #0105320a}.ActionBar_sticky_FHLkT{position:sticky;bottom:0;z-index:10}.ActionBar_sticky_FHLkT.ActionBar_is-stuck_FHLkT{margin-left:calc(-1 * var(--action-bar-horizontal-padding, 2rem));margin-right:calc(-1 * var(--action-bar-horizontal-padding, 2rem));padding-left:var(--action-bar-horizontal-padding, 2rem);padding-right:var(--action-bar-horizontal-padding, 2rem);width:auto;box-shadow:0 -2px 4px #01053205,0 -4px 12px #0105320a,0 -8px 24px #0105320a}.ActionBar_placeholder_FHLkT{visibility:hidden;pointer-events:none}.ActionBar_button-area_FHLkT{display:flex;align-items:center;gap:calc(.5 * var(--font-size));flex-shrink:0}.ActionBar_status-area_FHLkT{display:flex;align-items:center;justify-content:flex-end;flex:1 1 auto;min-width:0}.ActionBar_status-text_FHLkT{color:var(--color-blue-grey500);font-size:calc(.875 * var(--font-size));line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ const inline = "ActionBar_inline_FHLkT";
3
+ const docked = "ActionBar_docked_FHLkT";
4
+ const sticky = "ActionBar_sticky_FHLkT";
5
+ const placeholder = "ActionBar_placeholder_FHLkT";
6
6
  const classes = {
7
- "action-bar": "ActionBar_action-bar_EVNeA",
7
+ "action-bar": "ActionBar_action-bar_FHLkT",
8
8
  inline,
9
9
  docked,
10
10
  sticky,
11
- "is-stuck": "ActionBar_is-stuck_EVNeA",
11
+ "is-stuck": "ActionBar_is-stuck_FHLkT",
12
12
  placeholder,
13
- "button-area": "ActionBar_button-area_EVNeA",
14
- "status-area": "ActionBar_status-area_EVNeA",
15
- "status-text": "ActionBar_status-text_EVNeA"
13
+ "button-area": "ActionBar_button-area_FHLkT",
14
+ "status-area": "ActionBar_status-area_FHLkT",
15
+ "status-text": "ActionBar_status-text_FHLkT"
16
16
  };
17
17
  export {
18
18
  classes as default,
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Card_main_EVNeA{border-radius:calc(.25 * var(--font-size));min-width:calc(18.5 * var(--font-size));overflow:hidden}.Card_header_EVNeA{display:flex;align-items:center;padding:calc(.5 * var(--font-size)) calc(1.5 * var(--font-size));justify-content:space-between;gap:calc(.5 * var(--font-size));background-color:var(--color-primary100)}.Card_header_EVNeA .Card_title-left_EVNeA{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.Card_header_EVNeA .Card_title-left_EVNeA .Card_title_EVNeA{margin:0;font-weight:500;max-width:100%;display:block}.Card_header_EVNeA .Card_title-left_EVNeA .Card_description_EVNeA{margin:0;max-width:100%;display:block}.Card_header_EVNeA .Card_title-right_EVNeA{flex:0 0 auto;display:flex;align-items:center;height:100%;gap:calc(.5 * var(--font-size));white-space:nowrap}.Card_body_EVNeA{padding:calc(1 * var(--font-size)) calc(1.5 * var(--font-size))}.Card_body_EVNeA.Card_default-body-style_EVNeA{background-color:var(--color-blue-grey50)}.Card_body_EVNeA.Card_white-body-style_EVNeA{background-color:var(--color-white);border:1px solid var(--color-blue-grey100)}.Card_body_EVNeA.Card_white-body-style_EVNeA.Card_without-header_EVNeA{border-radius:calc(.25 * var(--font-size))}.Card_body_EVNeA.Card_white-body-style_EVNeA.Card_with-header_EVNeA{border-top:none;border-bottom-left-radius:calc(.25 * var(--font-size));border-bottom-right-radius:calc(.25 * var(--font-size))}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Card_main_EVNeA",t="Card_header_EVNeA",d="Card_title_EVNeA",r="Card_description_EVNeA",i="Card_body_EVNeA",a={main:e,header:t,"title-left":"Card_title-left_EVNeA",title:d,description:r,"title-right":"Card_title-right_EVNeA",body:i,"default-body-style":"Card_default-body-style_EVNeA","white-body-style":"Card_white-body-style_EVNeA","without-header":"Card_without-header_EVNeA","with-header":"Card_with-header_EVNeA"};exports.body=i,exports.default=a,exports.description=r,exports.header=t,exports.main=e,exports.title=d;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Card_main_FHLkT{border-radius:calc(.25 * var(--font-size));min-width:calc(18.5 * var(--font-size));overflow:hidden}.Card_header_FHLkT{display:flex;align-items:center;padding:calc(.5 * var(--font-size)) calc(1.5 * var(--font-size));justify-content:space-between;gap:calc(.5 * var(--font-size));background-color:var(--color-primary100)}.Card_header_FHLkT .Card_title-left_FHLkT{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.Card_header_FHLkT .Card_title-left_FHLkT .Card_title_FHLkT{margin:0;font-weight:500;max-width:100%;display:block}.Card_header_FHLkT .Card_title-left_FHLkT .Card_description_FHLkT{margin:0;max-width:100%;display:block}.Card_header_FHLkT .Card_title-right_FHLkT{flex:0 0 auto;display:flex;align-items:center;height:100%;gap:calc(.5 * var(--font-size));white-space:nowrap}.Card_body_FHLkT{padding:calc(1 * var(--font-size)) calc(1.5 * var(--font-size))}.Card_body_FHLkT.Card_default-body-style_FHLkT{background-color:var(--color-blue-grey50)}.Card_body_FHLkT.Card_white-body-style_FHLkT{background-color:var(--color-white);border:1px solid var(--color-blue-grey100)}.Card_body_FHLkT.Card_white-body-style_FHLkT.Card_without-header_FHLkT{border-radius:calc(.25 * var(--font-size))}.Card_body_FHLkT.Card_white-body-style_FHLkT.Card_with-header_FHLkT{border-top:none;border-bottom-left-radius:calc(.25 * var(--font-size));border-bottom-right-radius:calc(.25 * var(--font-size))}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Card_main_FHLkT",t="Card_header_FHLkT",d="Card_title_FHLkT",r="Card_description_FHLkT",i="Card_body_FHLkT",a={main:e,header:t,"title-left":"Card_title-left_FHLkT",title:d,description:r,"title-right":"Card_title-right_FHLkT",body:i,"default-body-style":"Card_default-body-style_FHLkT","white-body-style":"Card_white-body-style_FHLkT","without-header":"Card_without-header_FHLkT","with-header":"Card_with-header_FHLkT"};exports.body=i,exports.default=a,exports.description=r,exports.header=t,exports.main=e,exports.title=d;
3
3
  //# sourceMappingURL=Card.module.scss.cjs.js.map
@@ -1,21 +1,21 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Card_main_EVNeA{border-radius:calc(.25 * var(--font-size));min-width:calc(18.5 * var(--font-size));overflow:hidden}.Card_header_EVNeA{display:flex;align-items:center;padding:calc(.5 * var(--font-size)) calc(1.5 * var(--font-size));justify-content:space-between;gap:calc(.5 * var(--font-size));background-color:var(--color-primary100)}.Card_header_EVNeA .Card_title-left_EVNeA{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.Card_header_EVNeA .Card_title-left_EVNeA .Card_title_EVNeA{margin:0;font-weight:500;max-width:100%;display:block}.Card_header_EVNeA .Card_title-left_EVNeA .Card_description_EVNeA{margin:0;max-width:100%;display:block}.Card_header_EVNeA .Card_title-right_EVNeA{flex:0 0 auto;display:flex;align-items:center;height:100%;gap:calc(.5 * var(--font-size));white-space:nowrap}.Card_body_EVNeA{padding:calc(1 * var(--font-size)) calc(1.5 * var(--font-size))}.Card_body_EVNeA.Card_default-body-style_EVNeA{background-color:var(--color-blue-grey50)}.Card_body_EVNeA.Card_white-body-style_EVNeA{background-color:var(--color-white);border:1px solid var(--color-blue-grey100)}.Card_body_EVNeA.Card_white-body-style_EVNeA.Card_without-header_EVNeA{border-radius:calc(.25 * var(--font-size))}.Card_body_EVNeA.Card_white-body-style_EVNeA.Card_with-header_EVNeA{border-top:none;border-bottom-left-radius:calc(.25 * var(--font-size));border-bottom-right-radius:calc(.25 * var(--font-size))}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
- const main = "Card_main_EVNeA";
3
- const header = "Card_header_EVNeA";
4
- const title = "Card_title_EVNeA";
5
- const description = "Card_description_EVNeA";
6
- const body = "Card_body_EVNeA";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Card_main_FHLkT{border-radius:calc(.25 * var(--font-size));min-width:calc(18.5 * var(--font-size));overflow:hidden}.Card_header_FHLkT{display:flex;align-items:center;padding:calc(.5 * var(--font-size)) calc(1.5 * var(--font-size));justify-content:space-between;gap:calc(.5 * var(--font-size));background-color:var(--color-primary100)}.Card_header_FHLkT .Card_title-left_FHLkT{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.Card_header_FHLkT .Card_title-left_FHLkT .Card_title_FHLkT{margin:0;font-weight:500;max-width:100%;display:block}.Card_header_FHLkT .Card_title-left_FHLkT .Card_description_FHLkT{margin:0;max-width:100%;display:block}.Card_header_FHLkT .Card_title-right_FHLkT{flex:0 0 auto;display:flex;align-items:center;height:100%;gap:calc(.5 * var(--font-size));white-space:nowrap}.Card_body_FHLkT{padding:calc(1 * var(--font-size)) calc(1.5 * var(--font-size))}.Card_body_FHLkT.Card_default-body-style_FHLkT{background-color:var(--color-blue-grey50)}.Card_body_FHLkT.Card_white-body-style_FHLkT{background-color:var(--color-white);border:1px solid var(--color-blue-grey100)}.Card_body_FHLkT.Card_white-body-style_FHLkT.Card_without-header_FHLkT{border-radius:calc(.25 * var(--font-size))}.Card_body_FHLkT.Card_white-body-style_FHLkT.Card_with-header_FHLkT{border-top:none;border-bottom-left-radius:calc(.25 * var(--font-size));border-bottom-right-radius:calc(.25 * var(--font-size))}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
+ const main = "Card_main_FHLkT";
3
+ const header = "Card_header_FHLkT";
4
+ const title = "Card_title_FHLkT";
5
+ const description = "Card_description_FHLkT";
6
+ const body = "Card_body_FHLkT";
7
7
  const classes = {
8
8
  main,
9
9
  header,
10
- "title-left": "Card_title-left_EVNeA",
10
+ "title-left": "Card_title-left_FHLkT",
11
11
  title,
12
12
  description,
13
- "title-right": "Card_title-right_EVNeA",
13
+ "title-right": "Card_title-right_FHLkT",
14
14
  body,
15
- "default-body-style": "Card_default-body-style_EVNeA",
16
- "white-body-style": "Card_white-body-style_EVNeA",
17
- "without-header": "Card_without-header_EVNeA",
18
- "with-header": "Card_with-header_EVNeA"
15
+ "default-body-style": "Card_default-body-style_FHLkT",
16
+ "white-body-style": "Card_white-body-style_FHLkT",
17
+ "without-header": "Card_without-header_FHLkT",
18
+ "with-header": "Card_with-header_FHLkT"
19
19
  };
20
20
  export {
21
21
  body,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("../../Typography/Typography.cjs.js"),a=require("./ContentHeader.module.scss.cjs.js"),r=require("../../Button/IconButton.cjs.js"),l=require("../../Icon/Icon.cjs.js"),n=require("../../Tag/Tag.cjs.js"),s=require("../../TextEllipsis/TextEllipsis.cjs.js"),c=({title:c,children:o,buttons:i,collapsed:d,subtitle:m,navigation:u,tags:p,error:g,errorMessage:E,errorTagText:f,...h})=>{const y=e.createElement(n.Tag,{icon:l.Icons.Forbidden,backgroundColor:"var(--color-red100)",color:"var(--color-red900)"},f||"Blocked"),T=()=>p??[],b=e.useMemo(()=>g&&d?[y,...T().filter(e=>"enabled"!==e.props.variant)]:g?T().filter(e=>"enabled"!==e.props.variant):T(),[p,g,d]);return e.createElement("div",{className:a.default["header-background-color"]},e.createElement("div",{className:`${a.default.header} ${h.className} ${d?a.default["collapsed-header"]:""}`,...h},e.createElement("div",null,u&&!d&&e.createElement(r.IconButton,{onClick:()=>{u.navigateFN(-1)},className:a.default["back-arrow"],iconSize:"s"},e.createElement(l.Icon,{icon:l.Icons.ArrowLeft}),e.createElement("span",{className:a.default["back-text"]},u.displayText?u.displayText:"Back")),e.createElement(t.Typography,{className:a.default["header-text"],variant:"h1"},u&&d&&e.createElement(r.IconButton,{onClick:()=>{u.navigateFN(-1)},className:a.default["back-arrow"]},e.createElement(l.Icon,{icon:l.Icons.ArrowLeft})),e.createElement(s.TextEllipsis,{"data-testid":"content-header-title"},c),e.createElement("span",{className:a.default["header-tags"]},b.map((t,a)=>e.createElement(e.Fragment,{key:t.key||a},t)))),m&&!g&&e.createElement(t.Typography,{className:`${a.default["header-subtitle"]} ${d?a.default["hide-text"]:""}`,variant:"h4"},m),e.createElement(t.Typography,{className:`${d?a.default["hide-text"]:""}`,variant:"body",spacing:{margin:0}},g?e.createElement(e.Fragment,null,y,e.createElement("span",{className:a.default["error-text"]},E)):o)),i&&e.createElement("div",{className:a.default["buttons-wrapper"]},i)))},o=c;exports.ContentHeader=o,exports.ContentHeaderComponent=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),a=require("../../Typography/Typography.cjs.js"),t=require("./ContentHeader.module.scss.cjs.js"),l=require("../../Button/IconButton.cjs.js"),r=require("../../Icon/Icon.cjs.js"),n=require("../../Tag/Tag.cjs.js"),c=require("../../TextEllipsis/TextEllipsis.cjs.js"),s=require("../../../hooks/useStickyStacking.cjs.js"),i=({title:i,children:o,buttons:d,collapsed:u,subtitle:m,navigation:p,tags:f,error:E,errorMessage:g,errorTagText:v,sticky:h,...y})=>{const b=e.useRef(null),k=e.useRef(null),N=e.useRef(null),{isStuck:T}=s.useStickyStacking(b,{enabled:!!h,zIndex:12,disableScrollAnchoring:!0}),x=h&&T||!!u;e.useLayoutEffect(()=>{var e,a;p&&(x&&document.activeElement===k.current?null==(e=N.current)||e.focus():x||document.activeElement!==N.current||null==(a=k.current)||a.focus())},[x,p]);const j=e.createElement(n.Tag,{icon:r.Icons.Forbidden,backgroundColor:"var(--color-red100)",color:"var(--color-red900)"},v||"Blocked"),$=()=>f??[],S=e.useMemo(()=>E&&x?[j,...$().filter(e=>"enabled"!==e.props.variant)]:E?$().filter(e=>"enabled"!==e.props.variant):$(),[f,E,x]),I=`${t.default.collapsible} ${x?t.default.collapsed:""}`,q=(a,n,c={})=>e.createElement(l.IconButton,{ref:a,onClick:()=>null==p?void 0:p.navigateFN(-1),className:t.default["back-arrow"],iconSize:c.iconSize,tabIndex:n?0:-1},e.createElement(r.Icon,{icon:r.Icons.ArrowLeft}),c.withText&&e.createElement("span",{className:t.default["back-text"]},(null==p?void 0:p.displayText)?p.displayText:"Back"));return e.createElement("div",{className:`${t.default["header-background-color"]} ${h?t.default.sticky:""} ${h&&T?t.default["sticky-spacing"]:""}`,ref:b},e.createElement("div",{className:`${t.default.header} ${y.className} ${x?t.default["collapsed-header"]:""}`,...y},e.createElement("div",null,p&&e.createElement("div",{className:I},e.createElement("div",{className:`${t.default["collapsible-inner"]} ${t.default["navigation-top"]} ${x?t.default.collapsed:""}`,"aria-hidden":x},q(k,!x,{withText:!0,iconSize:"s"}))),e.createElement(a.Typography,{className:t.default["header-text"],variant:"h1"},p&&e.createElement("span",{className:`${t.default["inline-back"]} ${x?"":t.default.hidden}`,"aria-hidden":!x},q(N,x)),e.createElement(c.TextEllipsis,{"data-testid":"content-header-title"},i),e.createElement("span",{className:t.default["header-tags"]},S.map((a,t)=>e.createElement(e.Fragment,{key:a.key||t},a)))),m&&!E&&e.createElement("div",{className:I},e.createElement("div",{className:t.default["collapsible-inner"],"aria-hidden":x},e.createElement(a.Typography,{className:t.default["header-subtitle"],variant:"h4"},m))),e.createElement("div",{className:I},e.createElement("div",{className:t.default["collapsible-inner"],"aria-hidden":x},e.createElement(a.Typography,{variant:"body",spacing:{margin:0}},E?e.createElement(e.Fragment,null,j,e.createElement("span",{className:t.default["error-text"]},g)):o)))),d&&e.createElement("div",{className:t.default["buttons-wrapper"]},d)))},o=i;exports.ContentHeader=o,exports.ContentHeaderComponent=i;
2
2
  //# sourceMappingURL=ContentHeader.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentHeader.cjs.js","sources":["../../../../src/components/Layout/ContentHeader/ContentHeader.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, { HTMLAttributes, ReactElement, useMemo } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./ContentHeader.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { NavigateFunction } from \"react-router-dom\";\nimport { Tag, Props as TagProps } from \"../../Tag/Tag\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\n\nexport interface ContentHeaderNavigationProps {\n displayText?: string;\n navigateFN: NavigateFunction;\n}\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n title: string;\n /**\n * @deprecated pass text as children\n */\n subtitle?: string;\n buttons?: ReactElement<ButtonProps, typeof Button> | ReactElement<ButtonProps, typeof Button>[];\n collapsed?: boolean;\n navigation?: ContentHeaderNavigationProps;\n tags?: ReactElement<TagProps, typeof Tag>[];\n error?: boolean;\n errorMessage?: string;\n errorTagText?: string;\n}\n\nexport const ContentHeaderComponent = ({\n title,\n children,\n buttons,\n collapsed,\n subtitle,\n navigation,\n tags,\n error,\n errorMessage,\n errorTagText,\n ...rest\n}: Props) => {\n const errorTag = (\n <Tag icon={Icons.Forbidden} backgroundColor=\"var(--color-red100)\" color=\"var(--color-red900)\">\n {errorTagText || \"Blocked\"}\n </Tag>\n );\n\n const getTags = () => tags ?? [];\n\n const renderTags = useMemo(() => {\n if (error && collapsed) {\n return [errorTag, ...getTags().filter(tag => tag.props.variant !== \"enabled\")];\n } else if (error) {\n return getTags().filter(tag => tag.props.variant !== \"enabled\");\n }\n return getTags();\n }, [tags, error, collapsed]);\n\n return (\n <div className={classes[\"header-background-color\"]}>\n <div\n className={`${classes[\"header\"]} ${rest.className} ${collapsed ? classes[\"collapsed-header\"] : \"\"}`}\n {...rest}\n >\n <div>\n {navigation && !collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n iconSize=\"s\"\n >\n <Icon icon={Icons.ArrowLeft} />\n <span className={classes[\"back-text\"]}>\n {navigation.displayText ? navigation.displayText : \"Back\"}\n </span>\n </IconButton>\n )}\n <Typography className={classes[\"header-text\"]} variant={\"h1\"}>\n {navigation && collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n >\n <Icon icon={Icons.ArrowLeft} />\n </IconButton>\n )}\n <TextEllipsis data-testid={\"content-header-title\"}>{title}</TextEllipsis>\n <span className={classes[\"header-tags\"]}>\n {renderTags.map((tag, index) => (\n <React.Fragment key={tag.key || index}>{tag}</React.Fragment>\n ))}\n </span>\n </Typography>\n {subtitle && !error && (\n <Typography\n className={`${classes[\"header-subtitle\"]} ${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"h4\"\n >\n {subtitle}\n </Typography>\n )}\n <Typography\n className={`${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"body\"\n spacing={{ margin: 0 }}\n >\n {error ? (\n <>\n {errorTag}\n <span className={classes[\"error-text\"]}>{errorMessage}</span>\n </>\n ) : (\n children\n )}\n </Typography>\n </div>\n {buttons && <div className={classes[\"buttons-wrapper\"]}>{buttons}</div>}\n </div>\n </div>\n );\n};\n\nexport const ContentHeader = ContentHeaderComponent;\n"],"names":["ContentHeaderComponent","title","children","buttons","collapsed","subtitle","navigation","tags","error","errorMessage","errorTagText","rest","errorTag","React","createElement","Tag","icon","Icons","Forbidden","backgroundColor","color","getTags","renderTags","useMemo","filter","tag","props","variant","className","classes","IconButton","onClick","navigateFN","iconSize","Icon","ArrowLeft","displayText","Typography","TextEllipsis","map","index","Fragment","key","spacing","margin","ContentHeader"],"mappings":"+WA+CaA,EAAyB,EACpCC,QACAC,WACAC,UACAC,YACAC,WACAC,aACAC,OACAC,QACAC,eACAC,kBACGC,MAEH,MAAMC,EACJC,EAAAC,cAACC,EAAAA,IAAA,CAAIC,KAAMC,EAAAA,MAAMC,UAAWC,gBAAgB,sBAAsBC,MAAM,uBACrEV,GAAgB,WAIfW,EAAU,IAAMd,GAAQ,GAExBe,EAAaC,EAAAA,QAAQ,IACrBf,GAASJ,EACJ,CAACQ,KAAaS,IAAUG,OAAOC,GAA6B,YAAtBA,EAAIC,MAAMC,UAC9CnB,EACFa,IAAUG,UAAoC,YAAtBC,EAAIC,MAAMC,SAEpCN,IACN,CAACd,EAAMC,EAAOJ,IAEjB,OACES,EAAAC,cAAC,MAAA,CAAIc,UAAWC,EAAAA,QAAQ,4BACtBhB,EAAAC,cAAC,MAAA,CACCc,UAAW,GAAGC,EAAAA,QAAgB,UAAKlB,EAAKiB,aAAaxB,EAAYyB,EAAAA,QAAQ,oBAAsB,QAC3FlB,KAEJG,cAAC,MAAA,KACER,IAAeF,GACdS,EAAAC,cAACgB,EAAAA,WAAA,CACCC,QAAS,KACPzB,EAAW0B,YAAW,IAExBJ,UAAWC,EAAAA,QAAQ,cACnBI,SAAS,KAETpB,EAAAC,cAACoB,EAAAA,KAAA,CAAKlB,KAAMC,EAAAA,MAAMkB,YAClBtB,EAAAC,cAAC,OAAA,CAAKc,UAAWC,EAAAA,QAAQ,cACtBvB,EAAW8B,YAAc9B,EAAW8B,YAAc,SAIzDvB,EAAAC,cAACuB,EAAAA,WAAA,CAAWT,UAAWC,EAAAA,QAAQ,eAAgBF,QAAS,MACrDrB,GAAcF,GACbS,EAAAC,cAACgB,EAAAA,WAAA,CACCC,QAAS,KACPzB,EAAW0B,YAAW,IAExBJ,UAAWC,EAAAA,QAAQ,eAEnBhB,EAAAC,cAACoB,EAAAA,KAAA,CAAKlB,KAAMC,EAAAA,MAAMkB,eAGtBrB,cAACwB,EAAAA,aAAA,CAAa,cAAa,wBAAyBrC,GACpDY,EAAAC,cAAC,OAAA,CAAKc,UAAWC,EAAAA,QAAQ,gBACtBP,EAAWiB,IAAI,CAACd,EAAKe,IACpB3B,EAAAC,cAACD,EAAM4B,SAAN,CAAeC,IAAKjB,EAAIiB,KAAOF,GAAQf,MAI7CpB,IAAaG,GACZK,EAAAC,cAACuB,EAAAA,WAAA,CACCT,UAAW,GAAGC,UAAQ,sBAAsBzB,EAAYyB,UAAQ,aAAe,KAC/EF,QAAQ,MAEPtB,GAGLQ,EAAAC,cAACuB,EAAAA,WAAA,CACCT,UAAW,GAAGxB,EAAYyB,EAAAA,QAAQ,aAAe,KACjDF,QAAQ,OACRgB,QAAS,CAAEC,OAAQ,IAElBpC,EACCK,EAAAC,cAAAD,EAAA4B,SAAA,KACG7B,EACDC,EAAAC,cAAC,OAAA,CAAKc,UAAWC,EAAAA,QAAQ,eAAgBpB,IAG3CP,IAILC,GAAWU,EAAAC,cAAC,MAAA,CAAIc,UAAWC,EAAAA,QAAQ,oBAAqB1B,MAMpD0C,EAAgB7C"}
1
+ {"version":3,"file":"ContentHeader.cjs.js","sources":["../../../../src/components/Layout/ContentHeader/ContentHeader.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, { HTMLAttributes, ReactElement, useLayoutEffect, useMemo, useRef } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./ContentHeader.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { NavigateFunction } from \"react-router-dom\";\nimport { Tag, Props as TagProps } from \"../../Tag/Tag\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\nimport { useStickyStacking } from \"../../../hooks/useStickyStacking\";\n\nconst STICKY_CONTENT_HEADER_Z_INDEX = 12; //Keeps the docked header above form fields(toggle).\n\nexport interface ContentHeaderNavigationProps {\n displayText?: string;\n navigateFN: NavigateFunction;\n}\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n title: string;\n /**\n * @deprecated pass text as children\n */\n subtitle?: string;\n buttons?: ReactElement<ButtonProps, typeof Button> | ReactElement<ButtonProps, typeof Button>[];\n collapsed?: boolean;\n navigation?: ContentHeaderNavigationProps;\n tags?: ReactElement<TagProps, typeof Tag>[];\n error?: boolean;\n errorMessage?: string;\n errorTagText?: string;\n sticky?: boolean;\n}\n\nexport const ContentHeaderComponent = ({\n title,\n children,\n buttons,\n collapsed,\n subtitle,\n navigation,\n tags,\n error,\n errorMessage,\n errorTagText,\n sticky,\n ...rest\n}: Props) => {\n const rootRef = useRef<HTMLDivElement>(null);\n const topBackButtonRef = useRef<HTMLButtonElement>(null);\n const inlineBackButtonRef = useRef<HTMLButtonElement>(null);\n\n const { isStuck } = useStickyStacking(rootRef, {\n enabled: !!sticky,\n zIndex: STICKY_CONTENT_HEADER_Z_INDEX,\n disableScrollAnchoring: true\n });\n const effectiveCollapsed = sticky ? isStuck || !!collapsed : !!collapsed;\n\n useLayoutEffect(() => {\n if (!navigation) {\n return;\n }\n if (effectiveCollapsed && document.activeElement === topBackButtonRef.current) {\n inlineBackButtonRef.current?.focus();\n } else if (!effectiveCollapsed && document.activeElement === inlineBackButtonRef.current) {\n topBackButtonRef.current?.focus();\n }\n }, [effectiveCollapsed, navigation]);\n\n const errorTag = (\n <Tag icon={Icons.Forbidden} backgroundColor=\"var(--color-red100)\" color=\"var(--color-red900)\">\n {errorTagText || \"Blocked\"}\n </Tag>\n );\n\n const getTags = () => tags ?? [];\n\n const renderTags = useMemo(() => {\n if (error && effectiveCollapsed) {\n return [errorTag, ...getTags().filter(tag => tag.props.variant !== \"enabled\")];\n } else if (error) {\n return getTags().filter(tag => tag.props.variant !== \"enabled\");\n }\n return getTags();\n }, [tags, error, effectiveCollapsed]);\n\n const collapsibleClassName = `${classes[\"collapsible\"]} ${\n effectiveCollapsed ? classes[\"collapsed\"] : \"\"\n }`;\n\n const renderBackButton = (\n ref: React.RefObject<HTMLButtonElement>,\n isActive: boolean,\n options: { withText?: boolean; iconSize?: \"s\" | \"m\" | \"l\" } = {}\n ) => (\n <IconButton\n ref={ref}\n onClick={() => navigation?.navigateFN(-1)}\n className={classes[\"back-arrow\"]}\n iconSize={options.iconSize}\n tabIndex={isActive ? 0 : -1}\n >\n <Icon icon={Icons.ArrowLeft} />\n {options.withText && (\n <span className={classes[\"back-text\"]}>\n {navigation?.displayText ? navigation.displayText : \"Back\"}\n </span>\n )}\n </IconButton>\n );\n\n return (\n <div\n className={`${classes[\"header-background-color\"]} ${sticky ? classes[\"sticky\"] : \"\"} ${\n sticky && isStuck ? classes[\"sticky-spacing\"] : \"\"\n }`}\n ref={rootRef}\n >\n <div\n className={`${classes[\"header\"]} ${rest.className} ${effectiveCollapsed ? classes[\"collapsed-header\"] : \"\"}`}\n {...rest}\n >\n <div>\n {navigation && (\n <div className={collapsibleClassName}>\n <div\n className={`${classes[\"collapsible-inner\"]} ${classes[\"navigation-top\"]} ${effectiveCollapsed ? classes[\"collapsed\"] : \"\"}`}\n aria-hidden={effectiveCollapsed}\n >\n {renderBackButton(topBackButtonRef, !effectiveCollapsed, {\n withText: true,\n iconSize: \"s\"\n })}\n </div>\n </div>\n )}\n <Typography className={classes[\"header-text\"]} variant={\"h1\"}>\n {navigation && (\n <span\n className={`${classes[\"inline-back\"]} ${effectiveCollapsed ? \"\" : classes[\"hidden\"]}`}\n aria-hidden={!effectiveCollapsed}\n >\n {renderBackButton(inlineBackButtonRef, effectiveCollapsed)}\n </span>\n )}\n <TextEllipsis data-testid={\"content-header-title\"}>{title}</TextEllipsis>\n <span className={classes[\"header-tags\"]}>\n {renderTags.map((tag, index) => (\n <React.Fragment key={tag.key || index}>{tag}</React.Fragment>\n ))}\n </span>\n </Typography>\n {subtitle && !error && (\n <div className={collapsibleClassName}>\n <div className={classes[\"collapsible-inner\"]} aria-hidden={effectiveCollapsed}>\n <Typography className={classes[\"header-subtitle\"]} variant=\"h4\">\n {subtitle}\n </Typography>\n </div>\n </div>\n )}\n <div className={collapsibleClassName}>\n <div className={classes[\"collapsible-inner\"]} aria-hidden={effectiveCollapsed}>\n <Typography variant=\"body\" spacing={{ margin: 0 }}>\n {error ? (\n <>\n {errorTag}\n <span className={classes[\"error-text\"]}>{errorMessage}</span>\n </>\n ) : (\n children\n )}\n </Typography>\n </div>\n </div>\n </div>\n {buttons && <div className={classes[\"buttons-wrapper\"]}>{buttons}</div>}\n </div>\n </div>\n );\n};\n\nexport const ContentHeader = ContentHeaderComponent;\n"],"names":["ContentHeaderComponent","title","children","buttons","collapsed","subtitle","navigation","tags","error","errorMessage","errorTagText","sticky","rest","rootRef","useRef","topBackButtonRef","inlineBackButtonRef","isStuck","useStickyStacking","enabled","zIndex","disableScrollAnchoring","effectiveCollapsed","useLayoutEffect","document","activeElement","current","_a","focus","_b","errorTag","React","createElement","Tag","icon","Icons","Forbidden","backgroundColor","color","getTags","renderTags","useMemo","filter","tag","props","variant","collapsibleClassName","classes","renderBackButton","ref","isActive","options","IconButton","onClick","navigateFN","className","iconSize","tabIndex","Icon","ArrowLeft","withText","displayText","Typography","TextEllipsis","map","index","Fragment","key","spacing","margin","ContentHeader"],"mappings":"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"}
@@ -1,10 +1,12 @@
1
- import React, { useMemo } from "react";
1
+ import React, { useRef, useLayoutEffect, useMemo } from "react";
2
2
  import { Typography } from "../../Typography/Typography.es.js";
3
3
  import classes from "./ContentHeader.module.scss.es.js";
4
4
  import { IconButton } from "../../Button/IconButton.es.js";
5
5
  import { Icons, Icon } from "../../Icon/Icon.es.js";
6
6
  import { Tag } from "../../Tag/Tag.es.js";
7
7
  import { TextEllipsis } from "../../TextEllipsis/TextEllipsis.es.js";
8
+ import { useStickyStacking } from "../../../hooks/useStickyStacking.es.js";
9
+ const STICKY_CONTENT_HEADER_Z_INDEX = 12;
8
10
  const ContentHeaderComponent = ({
9
11
  title,
10
12
  children,
@@ -16,62 +18,85 @@ const ContentHeaderComponent = ({
16
18
  error,
17
19
  errorMessage,
18
20
  errorTagText,
21
+ sticky,
19
22
  ...rest
20
23
  }) => {
24
+ const rootRef = useRef(null);
25
+ const topBackButtonRef = useRef(null);
26
+ const inlineBackButtonRef = useRef(null);
27
+ const { isStuck } = useStickyStacking(rootRef, {
28
+ enabled: !!sticky,
29
+ zIndex: STICKY_CONTENT_HEADER_Z_INDEX,
30
+ disableScrollAnchoring: true
31
+ });
32
+ const effectiveCollapsed = sticky ? isStuck || !!collapsed : !!collapsed;
33
+ useLayoutEffect(() => {
34
+ var _a, _b;
35
+ if (!navigation) {
36
+ return;
37
+ }
38
+ if (effectiveCollapsed && document.activeElement === topBackButtonRef.current) {
39
+ (_a = inlineBackButtonRef.current) == null ? void 0 : _a.focus();
40
+ } else if (!effectiveCollapsed && document.activeElement === inlineBackButtonRef.current) {
41
+ (_b = topBackButtonRef.current) == null ? void 0 : _b.focus();
42
+ }
43
+ }, [effectiveCollapsed, navigation]);
21
44
  const errorTag = /* @__PURE__ */ React.createElement(Tag, { icon: Icons.Forbidden, backgroundColor: "var(--color-red100)", color: "var(--color-red900)" }, errorTagText || "Blocked");
22
45
  const getTags = () => tags ?? [];
23
46
  const renderTags = useMemo(() => {
24
- if (error && collapsed) {
47
+ if (error && effectiveCollapsed) {
25
48
  return [errorTag, ...getTags().filter((tag) => tag.props.variant !== "enabled")];
26
49
  } else if (error) {
27
50
  return getTags().filter((tag) => tag.props.variant !== "enabled");
28
51
  }
29
52
  return getTags();
30
- }, [tags, error, collapsed]);
31
- return /* @__PURE__ */ React.createElement("div", { className: classes["header-background-color"] }, /* @__PURE__ */ React.createElement(
53
+ }, [tags, error, effectiveCollapsed]);
54
+ const collapsibleClassName = `${classes["collapsible"]} ${effectiveCollapsed ? classes["collapsed"] : ""}`;
55
+ const renderBackButton = (ref, isActive, options = {}) => /* @__PURE__ */ React.createElement(
56
+ IconButton,
57
+ {
58
+ ref,
59
+ onClick: () => navigation == null ? void 0 : navigation.navigateFN(-1),
60
+ className: classes["back-arrow"],
61
+ iconSize: options.iconSize,
62
+ tabIndex: isActive ? 0 : -1
63
+ },
64
+ /* @__PURE__ */ React.createElement(Icon, { icon: Icons.ArrowLeft }),
65
+ options.withText && /* @__PURE__ */ React.createElement("span", { className: classes["back-text"] }, (navigation == null ? void 0 : navigation.displayText) ? navigation.displayText : "Back")
66
+ );
67
+ return /* @__PURE__ */ React.createElement(
32
68
  "div",
33
69
  {
34
- className: `${classes["header"]} ${rest.className} ${collapsed ? classes["collapsed-header"] : ""}`,
35
- ...rest
70
+ className: `${classes["header-background-color"]} ${sticky ? classes["sticky"] : ""} ${sticky && isStuck ? classes["sticky-spacing"] : ""}`,
71
+ ref: rootRef
36
72
  },
37
- /* @__PURE__ */ React.createElement("div", null, navigation && !collapsed && /* @__PURE__ */ React.createElement(
38
- IconButton,
73
+ /* @__PURE__ */ React.createElement(
74
+ "div",
39
75
  {
40
- onClick: () => {
41
- navigation.navigateFN(-1);
42
- },
43
- className: classes["back-arrow"],
44
- iconSize: "s"
76
+ className: `${classes["header"]} ${rest.className} ${effectiveCollapsed ? classes["collapsed-header"] : ""}`,
77
+ ...rest
45
78
  },
46
- /* @__PURE__ */ React.createElement(Icon, { icon: Icons.ArrowLeft }),
47
- /* @__PURE__ */ React.createElement("span", { className: classes["back-text"] }, navigation.displayText ? navigation.displayText : "Back")
48
- ), /* @__PURE__ */ React.createElement(Typography, { className: classes["header-text"], variant: "h1" }, navigation && collapsed && /* @__PURE__ */ React.createElement(
49
- IconButton,
50
- {
51
- onClick: () => {
52
- navigation.navigateFN(-1);
79
+ /* @__PURE__ */ React.createElement("div", null, navigation && /* @__PURE__ */ React.createElement("div", { className: collapsibleClassName }, /* @__PURE__ */ React.createElement(
80
+ "div",
81
+ {
82
+ className: `${classes["collapsible-inner"]} ${classes["navigation-top"]} ${effectiveCollapsed ? classes["collapsed"] : ""}`,
83
+ "aria-hidden": effectiveCollapsed
53
84
  },
54
- className: classes["back-arrow"]
55
- },
56
- /* @__PURE__ */ React.createElement(Icon, { icon: Icons.ArrowLeft })
57
- ), /* @__PURE__ */ React.createElement(TextEllipsis, { "data-testid": "content-header-title" }, title), /* @__PURE__ */ React.createElement("span", { className: classes["header-tags"] }, renderTags.map((tag, index) => /* @__PURE__ */ React.createElement(React.Fragment, { key: tag.key || index }, tag)))), subtitle && !error && /* @__PURE__ */ React.createElement(
58
- Typography,
59
- {
60
- className: `${classes["header-subtitle"]} ${collapsed ? classes["hide-text"] : ""}`,
61
- variant: "h4"
62
- },
63
- subtitle
64
- ), /* @__PURE__ */ React.createElement(
65
- Typography,
66
- {
67
- className: `${collapsed ? classes["hide-text"] : ""}`,
68
- variant: "body",
69
- spacing: { margin: 0 }
70
- },
71
- error ? /* @__PURE__ */ React.createElement(React.Fragment, null, errorTag, /* @__PURE__ */ React.createElement("span", { className: classes["error-text"] }, errorMessage)) : children
72
- )),
73
- buttons && /* @__PURE__ */ React.createElement("div", { className: classes["buttons-wrapper"] }, buttons)
74
- ));
85
+ renderBackButton(topBackButtonRef, !effectiveCollapsed, {
86
+ withText: true,
87
+ iconSize: "s"
88
+ })
89
+ )), /* @__PURE__ */ React.createElement(Typography, { className: classes["header-text"], variant: "h1" }, navigation && /* @__PURE__ */ React.createElement(
90
+ "span",
91
+ {
92
+ className: `${classes["inline-back"]} ${effectiveCollapsed ? "" : classes["hidden"]}`,
93
+ "aria-hidden": !effectiveCollapsed
94
+ },
95
+ renderBackButton(inlineBackButtonRef, effectiveCollapsed)
96
+ ), /* @__PURE__ */ React.createElement(TextEllipsis, { "data-testid": "content-header-title" }, title), /* @__PURE__ */ React.createElement("span", { className: classes["header-tags"] }, renderTags.map((tag, index) => /* @__PURE__ */ React.createElement(React.Fragment, { key: tag.key || index }, tag)))), subtitle && !error && /* @__PURE__ */ React.createElement("div", { className: collapsibleClassName }, /* @__PURE__ */ React.createElement("div", { className: classes["collapsible-inner"], "aria-hidden": effectiveCollapsed }, /* @__PURE__ */ React.createElement(Typography, { className: classes["header-subtitle"], variant: "h4" }, subtitle))), /* @__PURE__ */ React.createElement("div", { className: collapsibleClassName }, /* @__PURE__ */ React.createElement("div", { className: classes["collapsible-inner"], "aria-hidden": effectiveCollapsed }, /* @__PURE__ */ React.createElement(Typography, { variant: "body", spacing: { margin: 0 } }, error ? /* @__PURE__ */ React.createElement(React.Fragment, null, errorTag, /* @__PURE__ */ React.createElement("span", { className: classes["error-text"] }, errorMessage)) : children)))),
97
+ buttons && /* @__PURE__ */ React.createElement("div", { className: classes["buttons-wrapper"] }, buttons)
98
+ )
99
+ );
75
100
  };
76
101
  const ContentHeader = ContentHeaderComponent;
77
102
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"ContentHeader.es.js","sources":["../../../../src/components/Layout/ContentHeader/ContentHeader.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, { HTMLAttributes, ReactElement, useMemo } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./ContentHeader.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { NavigateFunction } from \"react-router-dom\";\nimport { Tag, Props as TagProps } from \"../../Tag/Tag\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\n\nexport interface ContentHeaderNavigationProps {\n displayText?: string;\n navigateFN: NavigateFunction;\n}\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n title: string;\n /**\n * @deprecated pass text as children\n */\n subtitle?: string;\n buttons?: ReactElement<ButtonProps, typeof Button> | ReactElement<ButtonProps, typeof Button>[];\n collapsed?: boolean;\n navigation?: ContentHeaderNavigationProps;\n tags?: ReactElement<TagProps, typeof Tag>[];\n error?: boolean;\n errorMessage?: string;\n errorTagText?: string;\n}\n\nexport const ContentHeaderComponent = ({\n title,\n children,\n buttons,\n collapsed,\n subtitle,\n navigation,\n tags,\n error,\n errorMessage,\n errorTagText,\n ...rest\n}: Props) => {\n const errorTag = (\n <Tag icon={Icons.Forbidden} backgroundColor=\"var(--color-red100)\" color=\"var(--color-red900)\">\n {errorTagText || \"Blocked\"}\n </Tag>\n );\n\n const getTags = () => tags ?? [];\n\n const renderTags = useMemo(() => {\n if (error && collapsed) {\n return [errorTag, ...getTags().filter(tag => tag.props.variant !== \"enabled\")];\n } else if (error) {\n return getTags().filter(tag => tag.props.variant !== \"enabled\");\n }\n return getTags();\n }, [tags, error, collapsed]);\n\n return (\n <div className={classes[\"header-background-color\"]}>\n <div\n className={`${classes[\"header\"]} ${rest.className} ${collapsed ? classes[\"collapsed-header\"] : \"\"}`}\n {...rest}\n >\n <div>\n {navigation && !collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n iconSize=\"s\"\n >\n <Icon icon={Icons.ArrowLeft} />\n <span className={classes[\"back-text\"]}>\n {navigation.displayText ? navigation.displayText : \"Back\"}\n </span>\n </IconButton>\n )}\n <Typography className={classes[\"header-text\"]} variant={\"h1\"}>\n {navigation && collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n >\n <Icon icon={Icons.ArrowLeft} />\n </IconButton>\n )}\n <TextEllipsis data-testid={\"content-header-title\"}>{title}</TextEllipsis>\n <span className={classes[\"header-tags\"]}>\n {renderTags.map((tag, index) => (\n <React.Fragment key={tag.key || index}>{tag}</React.Fragment>\n ))}\n </span>\n </Typography>\n {subtitle && !error && (\n <Typography\n className={`${classes[\"header-subtitle\"]} ${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"h4\"\n >\n {subtitle}\n </Typography>\n )}\n <Typography\n className={`${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"body\"\n spacing={{ margin: 0 }}\n >\n {error ? (\n <>\n {errorTag}\n <span className={classes[\"error-text\"]}>{errorMessage}</span>\n </>\n ) : (\n children\n )}\n </Typography>\n </div>\n {buttons && <div className={classes[\"buttons-wrapper\"]}>{buttons}</div>}\n </div>\n </div>\n );\n};\n\nexport const ContentHeader = ContentHeaderComponent;\n"],"names":[],"mappings":";;;;;;;AA+CO,MAAM,yBAAyB,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAa;AACX,QAAM,WACJ,sBAAA,cAAC,KAAA,EAAI,MAAM,MAAM,WAAW,iBAAgB,uBAAsB,OAAM,sBAAA,GACrE,gBAAgB,SACnB;AAGF,QAAM,UAAU,MAAM,QAAQ,CAAA;AAE9B,QAAM,aAAa,QAAQ,MAAM;AAC/B,QAAI,SAAS,WAAW;AACtB,aAAO,CAAC,UAAU,GAAG,QAAA,EAAU,OAAO,CAAA,QAAO,IAAI,MAAM,YAAY,SAAS,CAAC;AAAA,IAC/E,WAAW,OAAO;AAChB,aAAO,UAAU,OAAO,SAAO,IAAI,MAAM,YAAY,SAAS;AAAA,IAChE;AACA,WAAO,QAAA;AAAA,EACT,GAAG,CAAC,MAAM,OAAO,SAAS,CAAC;AAE3B,SACE,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,yBAAyB,KAC/C,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,GAAG,QAAQ,QAAQ,CAAC,IAAI,KAAK,SAAS,IAAI,YAAY,QAAQ,kBAAkB,IAAI,EAAE;AAAA,MAChG,GAAG;AAAA,IAAA;AAAA,IAEJ,sBAAA,cAAC,OAAA,MACE,cAAc,CAAC,aACd,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,SAAS,MAAM;AACb,qBAAW,WAAW,EAAE;AAAA,QAC1B;AAAA,QACA,WAAW,QAAQ,YAAY;AAAA,QAC/B,UAAS;AAAA,MAAA;AAAA,MAET,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,WAAW;AAAA,MAC7B,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,WAAW,KACjC,WAAW,cAAc,WAAW,cAAc,MACrD;AAAA,IAAA,GAGJ,sBAAA,cAAC,YAAA,EAAW,WAAW,QAAQ,aAAa,GAAG,SAAS,KAAA,GACrD,cAAc,aACb,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,SAAS,MAAM;AACb,qBAAW,WAAW,EAAE;AAAA,QAC1B;AAAA,QACA,WAAW,QAAQ,YAAY;AAAA,MAAA;AAAA,MAE/B,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,UAAA,CAAW;AAAA,IAAA,GAGjC,sBAAA,cAAC,cAAA,EAAa,eAAa,0BAAyB,KAAM,GAC1D,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,aAAa,EAAA,GACnC,WAAW,IAAI,CAAC,KAAK,UACpB,sBAAA,cAAC,MAAM,UAAN,EAAe,KAAK,IAAI,OAAO,MAAA,GAAQ,GAAI,CAC7C,CACH,CACF,GACC,YAAY,CAAC,SACZ,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,GAAG,QAAQ,iBAAiB,CAAC,IAAI,YAAY,QAAQ,WAAW,IAAI,EAAE;AAAA,QACjF,SAAQ;AAAA,MAAA;AAAA,MAEP;AAAA,IAAA,GAGL,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,GAAG,YAAY,QAAQ,WAAW,IAAI,EAAE;AAAA,QACnD,SAAQ;AAAA,QACR,SAAS,EAAE,QAAQ,EAAA;AAAA,MAAE;AAAA,MAEpB,QACC,sBAAA,cAAA,MAAA,UAAA,MACG,UACD,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,YAAY,EAAA,GAAI,YAAa,CACxD,IAEA;AAAA,IAAA,CAGN;AAAA,IACC,WAAW,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,iBAAiB,KAAI,OAAQ;AAAA,EAAA,CAErE;AAEJ;AAEO,MAAM,gBAAgB;"}
1
+ {"version":3,"file":"ContentHeader.es.js","sources":["../../../../src/components/Layout/ContentHeader/ContentHeader.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, { HTMLAttributes, ReactElement, useLayoutEffect, useMemo, useRef } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./ContentHeader.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { NavigateFunction } from \"react-router-dom\";\nimport { Tag, Props as TagProps } from \"../../Tag/Tag\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\nimport { useStickyStacking } from \"../../../hooks/useStickyStacking\";\n\nconst STICKY_CONTENT_HEADER_Z_INDEX = 12; //Keeps the docked header above form fields(toggle).\n\nexport interface ContentHeaderNavigationProps {\n displayText?: string;\n navigateFN: NavigateFunction;\n}\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n title: string;\n /**\n * @deprecated pass text as children\n */\n subtitle?: string;\n buttons?: ReactElement<ButtonProps, typeof Button> | ReactElement<ButtonProps, typeof Button>[];\n collapsed?: boolean;\n navigation?: ContentHeaderNavigationProps;\n tags?: ReactElement<TagProps, typeof Tag>[];\n error?: boolean;\n errorMessage?: string;\n errorTagText?: string;\n sticky?: boolean;\n}\n\nexport const ContentHeaderComponent = ({\n title,\n children,\n buttons,\n collapsed,\n subtitle,\n navigation,\n tags,\n error,\n errorMessage,\n errorTagText,\n sticky,\n ...rest\n}: Props) => {\n const rootRef = useRef<HTMLDivElement>(null);\n const topBackButtonRef = useRef<HTMLButtonElement>(null);\n const inlineBackButtonRef = useRef<HTMLButtonElement>(null);\n\n const { isStuck } = useStickyStacking(rootRef, {\n enabled: !!sticky,\n zIndex: STICKY_CONTENT_HEADER_Z_INDEX,\n disableScrollAnchoring: true\n });\n const effectiveCollapsed = sticky ? isStuck || !!collapsed : !!collapsed;\n\n useLayoutEffect(() => {\n if (!navigation) {\n return;\n }\n if (effectiveCollapsed && document.activeElement === topBackButtonRef.current) {\n inlineBackButtonRef.current?.focus();\n } else if (!effectiveCollapsed && document.activeElement === inlineBackButtonRef.current) {\n topBackButtonRef.current?.focus();\n }\n }, [effectiveCollapsed, navigation]);\n\n const errorTag = (\n <Tag icon={Icons.Forbidden} backgroundColor=\"var(--color-red100)\" color=\"var(--color-red900)\">\n {errorTagText || \"Blocked\"}\n </Tag>\n );\n\n const getTags = () => tags ?? [];\n\n const renderTags = useMemo(() => {\n if (error && effectiveCollapsed) {\n return [errorTag, ...getTags().filter(tag => tag.props.variant !== \"enabled\")];\n } else if (error) {\n return getTags().filter(tag => tag.props.variant !== \"enabled\");\n }\n return getTags();\n }, [tags, error, effectiveCollapsed]);\n\n const collapsibleClassName = `${classes[\"collapsible\"]} ${\n effectiveCollapsed ? classes[\"collapsed\"] : \"\"\n }`;\n\n const renderBackButton = (\n ref: React.RefObject<HTMLButtonElement>,\n isActive: boolean,\n options: { withText?: boolean; iconSize?: \"s\" | \"m\" | \"l\" } = {}\n ) => (\n <IconButton\n ref={ref}\n onClick={() => navigation?.navigateFN(-1)}\n className={classes[\"back-arrow\"]}\n iconSize={options.iconSize}\n tabIndex={isActive ? 0 : -1}\n >\n <Icon icon={Icons.ArrowLeft} />\n {options.withText && (\n <span className={classes[\"back-text\"]}>\n {navigation?.displayText ? navigation.displayText : \"Back\"}\n </span>\n )}\n </IconButton>\n );\n\n return (\n <div\n className={`${classes[\"header-background-color\"]} ${sticky ? classes[\"sticky\"] : \"\"} ${\n sticky && isStuck ? classes[\"sticky-spacing\"] : \"\"\n }`}\n ref={rootRef}\n >\n <div\n className={`${classes[\"header\"]} ${rest.className} ${effectiveCollapsed ? classes[\"collapsed-header\"] : \"\"}`}\n {...rest}\n >\n <div>\n {navigation && (\n <div className={collapsibleClassName}>\n <div\n className={`${classes[\"collapsible-inner\"]} ${classes[\"navigation-top\"]} ${effectiveCollapsed ? classes[\"collapsed\"] : \"\"}`}\n aria-hidden={effectiveCollapsed}\n >\n {renderBackButton(topBackButtonRef, !effectiveCollapsed, {\n withText: true,\n iconSize: \"s\"\n })}\n </div>\n </div>\n )}\n <Typography className={classes[\"header-text\"]} variant={\"h1\"}>\n {navigation && (\n <span\n className={`${classes[\"inline-back\"]} ${effectiveCollapsed ? \"\" : classes[\"hidden\"]}`}\n aria-hidden={!effectiveCollapsed}\n >\n {renderBackButton(inlineBackButtonRef, effectiveCollapsed)}\n </span>\n )}\n <TextEllipsis data-testid={\"content-header-title\"}>{title}</TextEllipsis>\n <span className={classes[\"header-tags\"]}>\n {renderTags.map((tag, index) => (\n <React.Fragment key={tag.key || index}>{tag}</React.Fragment>\n ))}\n </span>\n </Typography>\n {subtitle && !error && (\n <div className={collapsibleClassName}>\n <div className={classes[\"collapsible-inner\"]} aria-hidden={effectiveCollapsed}>\n <Typography className={classes[\"header-subtitle\"]} variant=\"h4\">\n {subtitle}\n </Typography>\n </div>\n </div>\n )}\n <div className={collapsibleClassName}>\n <div className={classes[\"collapsible-inner\"]} aria-hidden={effectiveCollapsed}>\n <Typography variant=\"body\" spacing={{ margin: 0 }}>\n {error ? (\n <>\n {errorTag}\n <span className={classes[\"error-text\"]}>{errorMessage}</span>\n </>\n ) : (\n children\n )}\n </Typography>\n </div>\n </div>\n </div>\n {buttons && <div className={classes[\"buttons-wrapper\"]}>{buttons}</div>}\n </div>\n </div>\n );\n};\n\nexport const ContentHeader = ContentHeaderComponent;\n"],"names":[],"mappings":"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"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".ContentHeader_header_EVNeA{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:2rem;z-index:1;transition:.5s;max-width:105rem}.ContentHeader_header_EVNeA.ContentHeader_collapsed-header_EVNeA{padding:1rem 2rem;transition:.5s;align-items:center}.ContentHeader_header-background-color_EVNeA{background-color:var(--color-blue-grey25)}.ContentHeader_header_EVNeA button.ContentHeader_back-arrow_EVNeA{width:auto;height:1rem;display:block;gap:.5rem}.ContentHeader_hide-text_EVNeA{display:none}.ContentHeader_header-text_EVNeA{margin:0;font-weight:500;color:var(--color-blue-grey900);line-height:1.25;display:flex;align-items:center;max-width:65vw}@media screen and (max-width:900px){.ContentHeader_header-text_EVNeA{max-width:unset}.ContentHeader_header-text_EVNeA div{text-wrap:wrap}}.ContentHeader_header-text_EVNeA div{vertical-align:middle;align-self:center}.ContentHeader_header-text_EVNeA button.ContentHeader_back-arrow_EVNeA{margin-right:.5rem;width:2.5rem;height:2.5rem}.ContentHeader_header-tags_EVNeA{display:flex;margin-left:1rem;gap:.5rem}.ContentHeader_header-subtitle_EVNeA{color:var(--color-blue-grey400);font-weight:500}.ContentHeader_back-text_EVNeA{font-size:.875rem;font-weight:400;margin-left:.5rem}.ContentHeader_error-text_EVNeA{color:var(--color-red500);vertical-align:middle;margin-left:.5rem}.ContentHeader_buttons-wrapper_EVNeA{display:flex;justify-content:flex-end;flex-shrink:0;gap:1rem}")),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="ContentHeader_header_EVNeA",t={header:e,"collapsed-header":"ContentHeader_collapsed-header_EVNeA","header-background-color":"ContentHeader_header-background-color_EVNeA","back-arrow":"ContentHeader_back-arrow_EVNeA","hide-text":"ContentHeader_hide-text_EVNeA","header-text":"ContentHeader_header-text_EVNeA","header-tags":"ContentHeader_header-tags_EVNeA","header-subtitle":"ContentHeader_header-subtitle_EVNeA","back-text":"ContentHeader_back-text_EVNeA","error-text":"ContentHeader_error-text_EVNeA","buttons-wrapper":"ContentHeader_buttons-wrapper_EVNeA"};exports.default=t,exports.header=e;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".ContentHeader_header_FHLkT{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:2rem;z-index:1;transition:.5s;max-width:105rem}.ContentHeader_header_FHLkT.ContentHeader_collapsed-header_FHLkT{padding:1rem 2rem;transition:.5s}.ContentHeader_header_FHLkT.ContentHeader_collapsed-header_FHLkT .ContentHeader_buttons-wrapper_FHLkT{margin-bottom:.25rem}.ContentHeader_header-background-color_FHLkT{background-color:var(--color-blue-grey25)}.ContentHeader_header_FHLkT button.ContentHeader_back-arrow_FHLkT{width:auto;height:1rem;display:block;gap:.5rem}.ContentHeader_sticky_FHLkT{border-bottom:0 solid var(--color-white);transition:border-bottom-width .5s}.ContentHeader_sticky_FHLkT .ContentHeader_header_FHLkT,.ContentHeader_sticky_FHLkT .ContentHeader_header_FHLkT.ContentHeader_collapsed-header_FHLkT{transition:.5s}.ContentHeader_sticky-spacing_FHLkT{border-bottom-width:.5rem}.ContentHeader_collapsible_FHLkT{display:grid;grid-template-rows:1fr;transition:grid-template-rows .5s}.ContentHeader_collapsible_FHLkT.ContentHeader_collapsed_FHLkT{grid-template-rows:0fr}.ContentHeader_collapsible-inner_FHLkT{overflow:hidden;min-height:0}.ContentHeader_collapsible-inner_FHLkT.ContentHeader_navigation-top_FHLkT:not(.ContentHeader_collapsed_FHLkT){padding:.25rem;margin:-.25rem -.25rem .25rem}.ContentHeader_header-text_FHLkT{margin:0;font-weight:500;color:var(--color-blue-grey900);line-height:1.25;display:flex;align-items:center;max-width:65vw}@media screen and (max-width:900px){.ContentHeader_header-text_FHLkT{max-width:unset}.ContentHeader_header-text_FHLkT div{text-wrap:wrap}}.ContentHeader_header-text_FHLkT div{vertical-align:middle;align-self:center}.ContentHeader_header-text_FHLkT button.ContentHeader_back-arrow_FHLkT{margin-right:.5rem;width:2.5rem;height:2.5rem}.ContentHeader_header-tags_FHLkT{display:flex;margin-left:1rem;gap:.5rem}.ContentHeader_header-subtitle_FHLkT{color:var(--color-blue-grey400);font-weight:500}.ContentHeader_back-text_FHLkT{font-size:.875rem;font-weight:400;margin-left:.5rem}.ContentHeader_error-text_FHLkT{color:var(--color-red500);vertical-align:middle;margin-left:.5rem}.ContentHeader_navigation-top_FHLkT{margin-bottom:.5rem;transition:margin-bottom .5s,padding-bottom .5s}.ContentHeader_navigation-top_FHLkT.ContentHeader_collapsed_FHLkT{margin-bottom:0}.ContentHeader_inline-back_FHLkT{display:flex;overflow:hidden;max-width:4rem;transition:max-width .5s,opacity .5s;opacity:1}.ContentHeader_inline-back_FHLkT:not(.ContentHeader_hidden_FHLkT){padding:.25rem;margin:-.25rem}.ContentHeader_inline-back_FHLkT.ContentHeader_hidden_FHLkT{max-width:0;opacity:0}.ContentHeader_buttons-wrapper_FHLkT{display:flex;justify-content:flex-end;flex-shrink:0;gap:1rem;transition:margin-bottom .5s}")),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="ContentHeader_header_FHLkT",t="ContentHeader_sticky_FHLkT",a="ContentHeader_collapsible_FHLkT",r="ContentHeader_collapsed_FHLkT",n="ContentHeader_hidden_FHLkT",o={header:e,"collapsed-header":"ContentHeader_collapsed-header_FHLkT","buttons-wrapper":"ContentHeader_buttons-wrapper_FHLkT","header-background-color":"ContentHeader_header-background-color_FHLkT","back-arrow":"ContentHeader_back-arrow_FHLkT",sticky:t,"sticky-spacing":"ContentHeader_sticky-spacing_FHLkT",collapsible:a,collapsed:r,"collapsible-inner":"ContentHeader_collapsible-inner_FHLkT","navigation-top":"ContentHeader_navigation-top_FHLkT","header-text":"ContentHeader_header-text_FHLkT","header-tags":"ContentHeader_header-tags_FHLkT","header-subtitle":"ContentHeader_header-subtitle_FHLkT","back-text":"ContentHeader_back-text_FHLkT","error-text":"ContentHeader_error-text_FHLkT","inline-back":"ContentHeader_inline-back_FHLkT",hidden:n};exports.collapsed=r,exports.collapsible=a,exports.default=o,exports.header=e,exports.hidden=n,exports.sticky=t;
3
3
  //# sourceMappingURL=ContentHeader.module.scss.cjs.js.map
@@ -1,20 +1,35 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".ContentHeader_header_EVNeA{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:2rem;z-index:1;transition:.5s;max-width:105rem}.ContentHeader_header_EVNeA.ContentHeader_collapsed-header_EVNeA{padding:1rem 2rem;transition:.5s;align-items:center}.ContentHeader_header-background-color_EVNeA{background-color:var(--color-blue-grey25)}.ContentHeader_header_EVNeA button.ContentHeader_back-arrow_EVNeA{width:auto;height:1rem;display:block;gap:.5rem}.ContentHeader_hide-text_EVNeA{display:none}.ContentHeader_header-text_EVNeA{margin:0;font-weight:500;color:var(--color-blue-grey900);line-height:1.25;display:flex;align-items:center;max-width:65vw}@media screen and (max-width:900px){.ContentHeader_header-text_EVNeA{max-width:unset}.ContentHeader_header-text_EVNeA div{text-wrap:wrap}}.ContentHeader_header-text_EVNeA div{vertical-align:middle;align-self:center}.ContentHeader_header-text_EVNeA button.ContentHeader_back-arrow_EVNeA{margin-right:.5rem;width:2.5rem;height:2.5rem}.ContentHeader_header-tags_EVNeA{display:flex;margin-left:1rem;gap:.5rem}.ContentHeader_header-subtitle_EVNeA{color:var(--color-blue-grey400);font-weight:500}.ContentHeader_back-text_EVNeA{font-size:.875rem;font-weight:400;margin-left:.5rem}.ContentHeader_error-text_EVNeA{color:var(--color-red500);vertical-align:middle;margin-left:.5rem}.ContentHeader_buttons-wrapper_EVNeA{display:flex;justify-content:flex-end;flex-shrink:0;gap:1rem}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- const header = "ContentHeader_header_EVNeA";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".ContentHeader_header_FHLkT{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:2rem;z-index:1;transition:.5s;max-width:105rem}.ContentHeader_header_FHLkT.ContentHeader_collapsed-header_FHLkT{padding:1rem 2rem;transition:.5s}.ContentHeader_header_FHLkT.ContentHeader_collapsed-header_FHLkT .ContentHeader_buttons-wrapper_FHLkT{margin-bottom:.25rem}.ContentHeader_header-background-color_FHLkT{background-color:var(--color-blue-grey25)}.ContentHeader_header_FHLkT button.ContentHeader_back-arrow_FHLkT{width:auto;height:1rem;display:block;gap:.5rem}.ContentHeader_sticky_FHLkT{border-bottom:0 solid var(--color-white);transition:border-bottom-width .5s}.ContentHeader_sticky_FHLkT .ContentHeader_header_FHLkT,.ContentHeader_sticky_FHLkT .ContentHeader_header_FHLkT.ContentHeader_collapsed-header_FHLkT{transition:.5s}.ContentHeader_sticky-spacing_FHLkT{border-bottom-width:.5rem}.ContentHeader_collapsible_FHLkT{display:grid;grid-template-rows:1fr;transition:grid-template-rows .5s}.ContentHeader_collapsible_FHLkT.ContentHeader_collapsed_FHLkT{grid-template-rows:0fr}.ContentHeader_collapsible-inner_FHLkT{overflow:hidden;min-height:0}.ContentHeader_collapsible-inner_FHLkT.ContentHeader_navigation-top_FHLkT:not(.ContentHeader_collapsed_FHLkT){padding:.25rem;margin:-.25rem -.25rem .25rem}.ContentHeader_header-text_FHLkT{margin:0;font-weight:500;color:var(--color-blue-grey900);line-height:1.25;display:flex;align-items:center;max-width:65vw}@media screen and (max-width:900px){.ContentHeader_header-text_FHLkT{max-width:unset}.ContentHeader_header-text_FHLkT div{text-wrap:wrap}}.ContentHeader_header-text_FHLkT div{vertical-align:middle;align-self:center}.ContentHeader_header-text_FHLkT button.ContentHeader_back-arrow_FHLkT{margin-right:.5rem;width:2.5rem;height:2.5rem}.ContentHeader_header-tags_FHLkT{display:flex;margin-left:1rem;gap:.5rem}.ContentHeader_header-subtitle_FHLkT{color:var(--color-blue-grey400);font-weight:500}.ContentHeader_back-text_FHLkT{font-size:.875rem;font-weight:400;margin-left:.5rem}.ContentHeader_error-text_FHLkT{color:var(--color-red500);vertical-align:middle;margin-left:.5rem}.ContentHeader_navigation-top_FHLkT{margin-bottom:.5rem;transition:margin-bottom .5s,padding-bottom .5s}.ContentHeader_navigation-top_FHLkT.ContentHeader_collapsed_FHLkT{margin-bottom:0}.ContentHeader_inline-back_FHLkT{display:flex;overflow:hidden;max-width:4rem;transition:max-width .5s,opacity .5s;opacity:1}.ContentHeader_inline-back_FHLkT:not(.ContentHeader_hidden_FHLkT){padding:.25rem;margin:-.25rem}.ContentHeader_inline-back_FHLkT.ContentHeader_hidden_FHLkT{max-width:0;opacity:0}.ContentHeader_buttons-wrapper_FHLkT{display:flex;justify-content:flex-end;flex-shrink:0;gap:1rem;transition:margin-bottom .5s}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ const header = "ContentHeader_header_FHLkT";
3
+ const sticky = "ContentHeader_sticky_FHLkT";
4
+ const collapsible = "ContentHeader_collapsible_FHLkT";
5
+ const collapsed = "ContentHeader_collapsed_FHLkT";
6
+ const hidden = "ContentHeader_hidden_FHLkT";
3
7
  const classes = {
4
8
  header,
5
- "collapsed-header": "ContentHeader_collapsed-header_EVNeA",
6
- "header-background-color": "ContentHeader_header-background-color_EVNeA",
7
- "back-arrow": "ContentHeader_back-arrow_EVNeA",
8
- "hide-text": "ContentHeader_hide-text_EVNeA",
9
- "header-text": "ContentHeader_header-text_EVNeA",
10
- "header-tags": "ContentHeader_header-tags_EVNeA",
11
- "header-subtitle": "ContentHeader_header-subtitle_EVNeA",
12
- "back-text": "ContentHeader_back-text_EVNeA",
13
- "error-text": "ContentHeader_error-text_EVNeA",
14
- "buttons-wrapper": "ContentHeader_buttons-wrapper_EVNeA"
9
+ "collapsed-header": "ContentHeader_collapsed-header_FHLkT",
10
+ "buttons-wrapper": "ContentHeader_buttons-wrapper_FHLkT",
11
+ "header-background-color": "ContentHeader_header-background-color_FHLkT",
12
+ "back-arrow": "ContentHeader_back-arrow_FHLkT",
13
+ sticky,
14
+ "sticky-spacing": "ContentHeader_sticky-spacing_FHLkT",
15
+ collapsible,
16
+ collapsed,
17
+ "collapsible-inner": "ContentHeader_collapsible-inner_FHLkT",
18
+ "navigation-top": "ContentHeader_navigation-top_FHLkT",
19
+ "header-text": "ContentHeader_header-text_FHLkT",
20
+ "header-tags": "ContentHeader_header-tags_FHLkT",
21
+ "header-subtitle": "ContentHeader_header-subtitle_FHLkT",
22
+ "back-text": "ContentHeader_back-text_FHLkT",
23
+ "error-text": "ContentHeader_error-text_FHLkT",
24
+ "inline-back": "ContentHeader_inline-back_FHLkT",
25
+ hidden
15
26
  };
16
27
  export {
28
+ collapsed,
29
+ collapsible,
17
30
  classes as default,
18
- header
31
+ header,
32
+ hidden,
33
+ sticky
19
34
  };
20
35
  //# sourceMappingURL=ContentHeader.module.scss.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentHeader.module.scss.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ContentHeader.module.scss.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormSection_section-wrapper_EVNeA{padding-bottom:4rem}.FormSection_section-header-wrapper_EVNeA{margin-bottom:1rem}.FormSection_section-header_EVNeA{line-height:1.6;color:var(--color-primary500)}")),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"}}),exports.default={"section-wrapper":"FormSection_section-wrapper_EVNeA","section-header-wrapper":"FormSection_section-header-wrapper_EVNeA","section-header":"FormSection_section-header_EVNeA"};
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormSection_section-wrapper_FHLkT{padding-bottom:4rem}.FormSection_section-header-wrapper_FHLkT{margin-bottom:1rem}.FormSection_section-header_FHLkT{line-height:1.6;color:var(--color-primary500)}")),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"}}),exports.default={"section-wrapper":"FormSection_section-wrapper_FHLkT","section-header-wrapper":"FormSection_section-header-wrapper_FHLkT","section-header":"FormSection_section-header_FHLkT"};
3
3
  //# sourceMappingURL=FormSection.module.scss.cjs.js.map
@@ -1,8 +1,8 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormSection_section-wrapper_EVNeA{padding-bottom:4rem}.FormSection_section-header-wrapper_EVNeA{margin-bottom:1rem}.FormSection_section-header_EVNeA{line-height:1.6;color:var(--color-primary500)}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormSection_section-wrapper_FHLkT{padding-bottom:4rem}.FormSection_section-header-wrapper_FHLkT{margin-bottom:1rem}.FormSection_section-header_FHLkT{line-height:1.6;color:var(--color-primary500)}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
2
  const classes = {
3
- "section-wrapper": "FormSection_section-wrapper_EVNeA",
4
- "section-header-wrapper": "FormSection_section-header-wrapper_EVNeA",
5
- "section-header": "FormSection_section-header_EVNeA"
3
+ "section-wrapper": "FormSection_section-wrapper_FHLkT",
4
+ "section-header-wrapper": "FormSection_section-header-wrapper_FHLkT",
5
+ "section-header": "FormSection_section-header_FHLkT"
6
6
  };
7
7
  export {
8
8
  classes as default
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormStepper_stepper_EVNeA{position:sticky;top:0}.FormStepper_stepper_EVNeA>div:first-child{height:auto;min-height:15rem;align-items:flex-start}")),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="FormStepper_stepper_EVNeA",t={stepper:e};exports.default=t,exports.stepper=e;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormStepper_stepper_FHLkT{position:sticky;top:0}.FormStepper_stepper_FHLkT>div:first-child{height:auto;min-height:15rem;align-items:flex-start}")),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="FormStepper_stepper_FHLkT",t={stepper:e};exports.default=t,exports.stepper=e;
3
3
  //# sourceMappingURL=FormStepper.module.scss.cjs.js.map
@@ -1,5 +1,5 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormStepper_stepper_EVNeA{position:sticky;top:0}.FormStepper_stepper_EVNeA>div:first-child{height:auto;min-height:15rem;align-items:flex-start}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- const stepper = "FormStepper_stepper_EVNeA";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormStepper_stepper_FHLkT{position:sticky;top:0}.FormStepper_stepper_FHLkT>div:first-child{height:auto;min-height:15rem;align-items:flex-start}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ const stepper = "FormStepper_stepper_FHLkT";
3
3
  const classes = {
4
4
  stepper
5
5
  };
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormWithStepper_content_EVNeA{margin:0 auto;font-family:var(--font-family);position:relative;display:flex;gap:3.5rem;background-color:var(--color-white);height:calc(100vh - 13.25rem);overflow:auto;scroll-behavior:smooth}.FormWithStepper_content_EVNeA .FormWithStepper_form-section_EVNeA{display:flex;flex-direction:column;flex:0 0 72%}")),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="FormWithStepper_content_EVNeA",t={content:e,"form-section":"FormWithStepper_form-section_EVNeA"};exports.content=e,exports.default=t;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormWithStepper_content_FHLkT{margin:0 auto;font-family:var(--font-family);position:relative;display:flex;gap:3.5rem;background-color:var(--color-white);height:calc(100vh - 13.25rem);overflow:auto;scroll-behavior:smooth}.FormWithStepper_content_FHLkT .FormWithStepper_form-section_FHLkT{display:flex;flex-direction:column;flex:0 0 72%}")),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="FormWithStepper_content_FHLkT",t={content:e,"form-section":"FormWithStepper_form-section_FHLkT"};exports.content=e,exports.default=t;
3
3
  //# sourceMappingURL=FormWithStepper.module.scss.cjs.js.map
@@ -1,8 +1,8 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormWithStepper_content_EVNeA{margin:0 auto;font-family:var(--font-family);position:relative;display:flex;gap:3.5rem;background-color:var(--color-white);height:calc(100vh - 13.25rem);overflow:auto;scroll-behavior:smooth}.FormWithStepper_content_EVNeA .FormWithStepper_form-section_EVNeA{display:flex;flex-direction:column;flex:0 0 72%}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- const content = "FormWithStepper_content_EVNeA";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormWithStepper_content_FHLkT{margin:0 auto;font-family:var(--font-family);position:relative;display:flex;gap:3.5rem;background-color:var(--color-white);height:calc(100vh - 13.25rem);overflow:auto;scroll-behavior:smooth}.FormWithStepper_content_FHLkT .FormWithStepper_form-section_FHLkT{display:flex;flex-direction:column;flex:0 0 72%}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ const content = "FormWithStepper_content_FHLkT";
3
3
  const classes = {
4
4
  content,
5
- "form-section": "FormWithStepper_form-section_EVNeA"
5
+ "form-section": "FormWithStepper_form-section_FHLkT"
6
6
  };
7
7
  export {
8
8
  content,
@@ -1 +1 @@
1
- {"version":3,"file":"Link.cjs.js","sources":["../../../src/components/Link/Link.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, {\n ForwardRefRenderFunction,\n ComponentPropsWithRef,\n ForwardRefExoticComponent,\n ReactElement\n} from \"react\";\nimport classes from \"./Link.module.scss\";\nimport { IconProps, Icon } from \"../../index\";\n\nexport type AnchorType = \"external\" | \"internal\" | \"download\";\n\nexport interface Props extends ComponentPropsWithRef<\"a\"> {\n prefixIcon?: ReactElement<IconProps, typeof Icon>;\n color?: \"primary\" | \"success\" | \"danger\" | \"warning\" | \"inherit\";\n display?: \"link\" | \"button\";\n buttonVariant?: \"outline\" | \"text\" | \"fill\";\n type?: AnchorType;\n to: string;\n disabled?: boolean;\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n component?: ForwardRefExoticComponent<any>;\n}\n\nconst LinkComponent: ForwardRefRenderFunction<HTMLAnchorElement, Props> = (\n {\n children,\n className,\n disabled = false,\n prefixIcon = undefined,\n to,\n color = \"primary\",\n type = \"internal\",\n display = \"link\",\n buttonVariant = \"fill\",\n component,\n ...rest\n }: Props,\n ref\n) => {\n const determineTarget = () => {\n if (rest.target) {\n return rest.target;\n }\n\n if (type === \"external\") {\n return \"_blank\";\n }\n\n return \"\";\n };\n\n const classNames = [classes[color]];\n display === \"link\" && classNames.push(classes[\"link\"]);\n display === \"button\" && classNames.push(classes[\"button\"], classes[buttonVariant]);\n disabled && classNames.push(classes[\"disabled\"]);\n className && classNames.push(className);\n\n if (component) {\n return React.createElement(\n component,\n {\n ...rest,\n ref: ref,\n to: to,\n className: classNames.join(\" \"),\n \"aria-disabled\": disabled,\n style: {\n ...rest.style\n }\n },\n children\n );\n }\n\n return (\n <a\n {...rest}\n ref={ref}\n download={type === \"download\"}\n rel={type === \"external\" ? \"noopener noreferer\" : undefined}\n href={!disabled ? to : undefined}\n className={classNames.join(\" \")}\n aria-disabled={disabled}\n target={determineTarget()}\n style={{\n ...rest.style\n }}\n >\n {prefixIcon}\n <span data-underline=\"true\">{children}</span>\n </a>\n );\n};\n\nexport const Link = React.forwardRef(LinkComponent);\n"],"names":["Link","React","forwardRef","children","className","disabled","prefixIcon","to","color","type","display","buttonVariant","component","rest","ref","classNames","classes","push","createElement","join","style","download","rel","href","target"],"mappings":"gJA8GaA,EAAOC,EAAMC,WAvEgD,EAEtEC,WACAC,YACAC,YAAW,EACXC,aACAC,KACAC,QAAQ,UACRC,OAAO,WACPC,UAAU,OACVC,gBAAgB,OAChBC,eACGC,GAELC,KAEA,MAYMC,EAAa,CAACC,UAAQR,IAM5B,MALY,SAAZE,GAAsBK,EAAWE,KAAKD,EAAAA,QAAc,MACxC,WAAZN,GAAwBK,EAAWE,KAAKD,EAAAA,QAAgB,OAAGA,UAAQL,IACnEN,GAAYU,EAAWE,KAAKD,EAAAA,QAAkB,UAC9CZ,GAAaW,EAAWE,KAAKb,GAEzBQ,EACKX,EAAMiB,cACXN,EACA,IACKC,EACHC,MACAP,KACAH,UAAWW,EAAWI,KAAK,KAC3B,gBAAiBd,EACjBe,MAAO,IACFP,EAAKO,QAGZjB,GAKFF,EAAAiB,cAAC,IAAA,IACKL,EACJC,MACAO,SAAmB,aAATZ,EACVa,IAAc,aAATb,EAAsB,0BAAuB,EAClDc,KAAOlB,OAAgB,EAALE,EAClBH,UAAWW,EAAWI,KAAK,KAC3B,gBAAed,EACfmB,OA3CEX,EAAKW,OACAX,EAAKW,OAGD,aAATf,EACK,SAGF,GAoCLW,MAAO,IACFP,EAAKO,QAGTd,IACDY,cAAC,OAAA,CAAK,iBAAe,QAAQf"}
1
+ {"version":3,"file":"Link.cjs.js","sources":["../../../src/components/Link/Link.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, {\n ForwardRefRenderFunction,\n ComponentPropsWithRef,\n ForwardRefExoticComponent,\n ReactElement\n} from \"react\";\nimport classes from \"./Link.module.scss\";\nimport { IconProps, Icon } from \"../../index\";\n\nexport type AnchorType = \"external\" | \"internal\" | \"download\";\n\nexport interface Props extends ComponentPropsWithRef<\"a\"> {\n prefixIcon?: ReactElement<IconProps, typeof Icon>;\n color?: \"primary\" | \"success\" | \"danger\" | \"warning\" | \"inherit\";\n display?: \"link\" | \"button\";\n buttonVariant?: \"outline\" | \"text\" | \"fill\";\n type?: AnchorType;\n to: string;\n disabled?: boolean;\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n component?: ForwardRefExoticComponent<any>;\n}\n\nconst LinkComponent: ForwardRefRenderFunction<HTMLAnchorElement, Props> = (\n {\n children,\n className,\n disabled = false,\n prefixIcon = undefined,\n to,\n color = \"primary\",\n type = \"internal\",\n display = \"link\",\n buttonVariant = \"fill\",\n component,\n ...rest\n }: Props,\n ref\n) => {\n const determineTarget = () => {\n if (rest.target) {\n return rest.target;\n }\n\n if (type === \"external\") {\n return \"_blank\";\n }\n\n return \"\";\n };\n\n const classNames = [classes[color]];\n display === \"link\" && classNames.push(classes[\"link\"]);\n display === \"button\" && classNames.push(classes[\"button\"], classes[buttonVariant]);\n disabled && classNames.push(classes[\"disabled\"]);\n className && classNames.push(className);\n\n if (component) {\n return React.createElement(\n component,\n {\n ...rest,\n ref: ref,\n to: to,\n className: classNames.join(\" \"),\n \"aria-disabled\": disabled,\n style: {\n ...rest.style\n }\n },\n children\n );\n }\n\n return (\n <a\n {...rest}\n ref={ref}\n download={type === \"download\"}\n rel={type === \"external\" ? \"noopener noreferer\" : undefined}\n href={disabled ? undefined : to}\n className={classNames.join(\" \")}\n aria-disabled={disabled}\n target={determineTarget()}\n style={{\n ...rest.style\n }}\n >\n {prefixIcon}\n <span data-underline=\"true\">{children}</span>\n </a>\n );\n};\n\nexport const Link = React.forwardRef(LinkComponent);\n"],"names":["Link","React","forwardRef","children","className","disabled","prefixIcon","to","color","type","display","buttonVariant","component","rest","ref","classNames","classes","push","createElement","join","style","download","rel","href","target"],"mappings":"gJA8GaA,EAAOC,EAAMC,WAvEgD,EAEtEC,WACAC,YACAC,YAAW,EACXC,aACAC,KACAC,QAAQ,UACRC,OAAO,WACPC,UAAU,OACVC,gBAAgB,OAChBC,eACGC,GAELC,KAEA,MAYMC,EAAa,CAACC,UAAQR,IAM5B,MALY,SAAZE,GAAsBK,EAAWE,KAAKD,EAAAA,QAAc,MACxC,WAAZN,GAAwBK,EAAWE,KAAKD,EAAAA,QAAgB,OAAGA,UAAQL,IACnEN,GAAYU,EAAWE,KAAKD,EAAAA,QAAkB,UAC9CZ,GAAaW,EAAWE,KAAKb,GAEzBQ,EACKX,EAAMiB,cACXN,EACA,IACKC,EACHC,MACAP,KACAH,UAAWW,EAAWI,KAAK,KAC3B,gBAAiBd,EACjBe,MAAO,IACFP,EAAKO,QAGZjB,GAKFF,EAAAiB,cAAC,IAAA,IACKL,EACJC,MACAO,SAAmB,aAATZ,EACVa,IAAc,aAATb,EAAsB,0BAAuB,EAClDc,KAAMlB,OAAW,EAAYE,EAC7BH,UAAWW,EAAWI,KAAK,KAC3B,gBAAed,EACfmB,OA3CEX,EAAKW,OACAX,EAAKW,OAGD,aAATf,EACK,SAGF,GAoCLW,MAAO,IACFP,EAAKO,QAGTd,IACDY,cAAC,OAAA,CAAK,iBAAe,QAAQf"}
@@ -50,7 +50,7 @@ const LinkComponent = ({
50
50
  ref,
51
51
  download: type === "download",
52
52
  rel: type === "external" ? "noopener noreferer" : void 0,
53
- href: !disabled ? to : void 0,
53
+ href: disabled ? void 0 : to,
54
54
  className: classNames.join(" "),
55
55
  "aria-disabled": disabled,
56
56
  target: determineTarget(),