@onewelcome/react-lib-components 12.0.1 → 12.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (659) hide show
  1. package/dist/components/Breadcrumbs/Breadcrumbs.cjs.js +1 -1
  2. package/dist/components/Breadcrumbs/Breadcrumbs.cjs.js.map +1 -1
  3. package/dist/components/Breadcrumbs/Breadcrumbs.es.js.map +1 -1
  4. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +2 -2
  5. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.es.js +5 -5
  6. package/dist/components/Button/BaseButton.cjs.js +1 -1
  7. package/dist/components/Button/BaseButton.cjs.js.map +1 -1
  8. package/dist/components/Button/BaseButton.es.js.map +1 -1
  9. package/dist/components/Button/BaseButton.module.scss.cjs.js +2 -2
  10. package/dist/components/Button/BaseButton.module.scss.es.js +4 -4
  11. package/dist/components/Button/Button.cjs.js +1 -1
  12. package/dist/components/Button/Button.cjs.js.map +1 -1
  13. package/dist/components/Button/Button.es.js.map +1 -1
  14. package/dist/components/Button/Button.module.scss.cjs.js +2 -2
  15. package/dist/components/Button/Button.module.scss.es.js +17 -17
  16. package/dist/components/Button/IconButton.cjs.js.map +1 -1
  17. package/dist/components/Button/IconButton.es.js.map +1 -1
  18. package/dist/components/Button/IconButton.module.scss.cjs.js +2 -2
  19. package/dist/components/Button/IconButton.module.scss.es.js +18 -18
  20. package/dist/components/Button/Spinner.cjs.js.map +1 -1
  21. package/dist/components/Button/Spinner.es.js.map +1 -1
  22. package/dist/components/ContextMenu/ContextMenu.cjs.js +1 -1
  23. package/dist/components/ContextMenu/ContextMenu.cjs.js.map +1 -1
  24. package/dist/components/ContextMenu/ContextMenu.es.js +28 -11
  25. package/dist/components/ContextMenu/ContextMenu.es.js.map +1 -1
  26. package/dist/components/ContextMenu/ContextMenu.module.scss.cjs.js +2 -2
  27. package/dist/components/ContextMenu/ContextMenu.module.scss.es.js +8 -5
  28. package/dist/components/ContextMenu/ContextMenu.module.scss.es.js.map +1 -1
  29. package/dist/components/ContextMenu/ContextMenuDivider.cjs.js.map +1 -1
  30. package/dist/components/ContextMenu/ContextMenuDivider.es.js.map +1 -1
  31. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.cjs.js +2 -2
  32. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.es.js +2 -2
  33. package/dist/components/ContextMenu/ContextMenuItem.cjs.js +1 -1
  34. package/dist/components/ContextMenu/ContextMenuItem.cjs.js.map +1 -1
  35. package/dist/components/ContextMenu/ContextMenuItem.es.js.map +1 -1
  36. package/dist/components/ContextMenu/ContextMenuItem.module.scss.cjs.js +2 -2
  37. package/dist/components/ContextMenu/ContextMenuItem.module.scss.es.js +3 -3
  38. package/dist/components/ContextMenu/ContextMenuService.cjs.js +1 -1
  39. package/dist/components/ContextMenu/ContextMenuService.cjs.js.map +1 -1
  40. package/dist/components/ContextMenu/ContextMenuService.es.js.map +1 -1
  41. package/dist/components/DataGrid/DataGrid.cjs.js +1 -1
  42. package/dist/components/DataGrid/DataGrid.cjs.js.map +1 -1
  43. package/dist/components/DataGrid/DataGrid.es.js.map +1 -1
  44. package/dist/components/DataGrid/DataGrid.module.scss.cjs.js +2 -2
  45. package/dist/components/DataGrid/DataGrid.module.scss.es.js +6 -6
  46. package/dist/components/DataGrid/DataGridActions/DataGridActions.cjs.js +1 -1
  47. package/dist/components/DataGrid/DataGridActions/DataGridActions.cjs.js.map +1 -1
  48. package/dist/components/DataGrid/DataGridActions/DataGridActions.es.js.map +1 -1
  49. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +2 -2
  50. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.es.js +6 -6
  51. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.cjs.js +1 -1
  52. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.cjs.js.map +1 -1
  53. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.es.js.map +1 -1
  54. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +2 -2
  55. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.es.js +7 -7
  56. package/dist/components/DataGrid/DataGridBody/DataGridBody.cjs.js +1 -1
  57. package/dist/components/DataGrid/DataGridBody/DataGridBody.cjs.js.map +1 -1
  58. package/dist/components/DataGrid/DataGridBody/DataGridBody.es.js.map +1 -1
  59. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +2 -2
  60. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.es.js +2 -2
  61. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js +1 -1
  62. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js.map +1 -1
  63. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.es.js.map +1 -1
  64. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +2 -2
  65. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.es.js +5 -5
  66. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.cjs.js +1 -1
  67. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.cjs.js.map +1 -1
  68. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.es.js.map +1 -1
  69. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +2 -2
  70. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.es.js +4 -4
  71. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js +1 -1
  72. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js.map +1 -1
  73. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.es.js.map +1 -1
  74. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +2 -2
  75. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.es.js +5 -5
  76. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js +1 -1
  77. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js.map +1 -1
  78. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.es.js +2 -1
  79. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.es.js.map +1 -1
  80. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +2 -2
  81. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.es.js +24 -24
  82. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.cjs.js +1 -1
  83. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.cjs.js.map +1 -1
  84. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.es.js.map +1 -1
  85. package/dist/components/DataGrid/DataGridFilters/DataGridDateFilter.cjs.js.map +1 -1
  86. package/dist/components/DataGrid/DataGridFilters/DataGridDateFilter.es.js.map +1 -1
  87. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js +1 -1
  88. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js.map +1 -1
  89. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js.map +1 -1
  90. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +2 -2
  91. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.es.js +9 -9
  92. package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.cjs.js +1 -1
  93. package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.cjs.js.map +1 -1
  94. package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.es.js.map +1 -1
  95. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js +1 -1
  96. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js.map +1 -1
  97. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js.map +1 -1
  98. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js +1 -1
  99. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js.map +1 -1
  100. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js.map +1 -1
  101. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js +1 -1
  102. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js.map +1 -1
  103. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js.map +1 -1
  104. package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.cjs.js.map +1 -1
  105. package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.es.js.map +1 -1
  106. package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.cjs.js +1 -1
  107. package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.cjs.js.map +1 -1
  108. package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.es.js.map +1 -1
  109. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.cjs.js +1 -1
  110. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.cjs.js.map +1 -1
  111. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.es.js.map +1 -1
  112. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +2 -2
  113. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.es.js +8 -8
  114. package/dist/components/DataGrid/DataGridFilters/DataGridToolbarWrapper.cjs.js.map +1 -1
  115. package/dist/components/DataGrid/DataGridFilters/DataGridToolbarWrapper.es.js.map +1 -1
  116. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.cjs.js +1 -1
  117. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.cjs.js.map +1 -1
  118. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.es.js.map +1 -1
  119. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +2 -2
  120. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.es.js +17 -17
  121. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.cjs.js.map +1 -1
  122. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.es.js.map +1 -1
  123. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.cjs.js +1 -1
  124. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.cjs.js.map +1 -1
  125. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.es.js.map +1 -1
  126. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimeService.cjs.js.map +1 -1
  127. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimeService.es.js.map +1 -1
  128. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.cjs.js +1 -1
  129. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.cjs.js.map +1 -1
  130. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.es.js.map +1 -1
  131. package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.cjs.js +1 -1
  132. package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.cjs.js.map +1 -1
  133. package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.es.js.map +1 -1
  134. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.cjs.js +1 -1
  135. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.cjs.js.map +1 -1
  136. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.es.js.map +1 -1
  137. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.cjs.js +1 -1
  138. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.cjs.js.map +1 -1
  139. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.es.js.map +1 -1
  140. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +2 -2
  141. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js +3 -3
  142. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js +1 -1
  143. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js.map +1 -1
  144. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.es.js.map +1 -1
  145. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +2 -2
  146. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.es.js +7 -7
  147. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  148. package/dist/components/DatePicker/DatePicker.cjs.js.map +1 -1
  149. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  150. package/dist/components/DatePicker/DatePicker.es.js.map +1 -1
  151. package/dist/components/DatePicker/DatePicker.module.scss.cjs.js +2 -2
  152. package/dist/components/DatePicker/DatePicker.module.scss.es.js +31 -31
  153. package/dist/components/Form/Checkbox/Checkbox.cjs.js +1 -1
  154. package/dist/components/Form/Checkbox/Checkbox.cjs.js.map +1 -1
  155. package/dist/components/Form/Checkbox/Checkbox.es.js +1 -0
  156. package/dist/components/Form/Checkbox/Checkbox.es.js.map +1 -1
  157. package/dist/components/Form/Checkbox/Checkbox.module.scss.cjs.js +2 -2
  158. package/dist/components/Form/Checkbox/Checkbox.module.scss.es.js +13 -13
  159. package/dist/components/Form/Fieldset/Fieldset.cjs.js +1 -1
  160. package/dist/components/Form/Fieldset/Fieldset.cjs.js.map +1 -1
  161. package/dist/components/Form/Fieldset/Fieldset.es.js.map +1 -1
  162. package/dist/components/Form/Fieldset/Fieldset.module.scss.cjs.js +2 -2
  163. package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js +5 -5
  164. package/dist/components/Form/FileUpload/FileItem/FileItem.cjs.js +1 -1
  165. package/dist/components/Form/FileUpload/FileItem/FileItem.cjs.js.map +1 -1
  166. package/dist/components/Form/FileUpload/FileItem/FileItem.es.js.map +1 -1
  167. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +2 -2
  168. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.es.js +18 -18
  169. package/dist/components/Form/FileUpload/FileUpload.cjs.js +1 -1
  170. package/dist/components/Form/FileUpload/FileUpload.cjs.js.map +1 -1
  171. package/dist/components/Form/FileUpload/FileUpload.es.js +18 -4
  172. package/dist/components/Form/FileUpload/FileUpload.es.js.map +1 -1
  173. package/dist/components/Form/FileUpload/FileUpload.module.scss.cjs.js +2 -2
  174. package/dist/components/Form/FileUpload/FileUpload.module.scss.es.js +16 -16
  175. package/dist/components/Form/Form.cjs.js +1 -1
  176. package/dist/components/Form/Form.cjs.js.map +1 -1
  177. package/dist/components/Form/Form.es.js.map +1 -1
  178. package/dist/components/Form/Form.module.scss.cjs.js +2 -2
  179. package/dist/components/Form/Form.module.scss.es.js +2 -2
  180. package/dist/components/Form/FormControl/FormControl.cjs.js +1 -1
  181. package/dist/components/Form/FormControl/FormControl.cjs.js.map +1 -1
  182. package/dist/components/Form/FormControl/FormControl.es.js.map +1 -1
  183. package/dist/components/Form/FormControl/FormControl.module.scss.cjs.js +2 -2
  184. package/dist/components/Form/FormControl/FormControl.module.scss.es.js +13 -13
  185. package/dist/components/Form/FormErrorText/FormErrorText.cjs.js.map +1 -1
  186. package/dist/components/Form/FormErrorText/FormErrorText.es.js.map +1 -1
  187. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.cjs.js +2 -2
  188. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js +5 -5
  189. package/dist/components/Form/FormGroup/FormGroup.cjs.js +1 -1
  190. package/dist/components/Form/FormGroup/FormGroup.cjs.js.map +1 -1
  191. package/dist/components/Form/FormGroup/FormGroup.es.js.map +1 -1
  192. package/dist/components/Form/FormGroup/FormGroup.module.scss.cjs.js +2 -2
  193. package/dist/components/Form/FormGroup/FormGroup.module.scss.es.js +3 -3
  194. package/dist/components/Form/FormHelperText/FormHelperText.cjs.js +1 -1
  195. package/dist/components/Form/FormHelperText/FormHelperText.cjs.js.map +1 -1
  196. package/dist/components/Form/FormHelperText/FormHelperText.es.js.map +1 -1
  197. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.cjs.js +2 -2
  198. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.es.js +4 -4
  199. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js +1 -1
  200. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js.map +1 -1
  201. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.es.js.map +1 -1
  202. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +2 -2
  203. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.es.js +6 -6
  204. package/dist/components/Form/FormStatusIndicator/FormStatusIndicator.cjs.js.map +1 -1
  205. package/dist/components/Form/FormStatusIndicator/FormStatusIndicator.es.js.map +1 -1
  206. package/dist/components/Form/Input/Input.cjs.js +1 -1
  207. package/dist/components/Form/Input/Input.cjs.js.map +1 -1
  208. package/dist/components/Form/Input/Input.es.js +1 -0
  209. package/dist/components/Form/Input/Input.es.js.map +1 -1
  210. package/dist/components/Form/Input/Input.module.scss.cjs.js +2 -2
  211. package/dist/components/Form/Input/Input.module.scss.es.js +9 -9
  212. package/dist/components/Form/Label/Label.cjs.js +1 -1
  213. package/dist/components/Form/Label/Label.cjs.js.map +1 -1
  214. package/dist/components/Form/Label/Label.es.js.map +1 -1
  215. package/dist/components/Form/Label/Label.module.scss.cjs.js +2 -2
  216. package/dist/components/Form/Label/Label.module.scss.es.js +2 -2
  217. package/dist/components/Form/Radio/Radio.cjs.js +1 -1
  218. package/dist/components/Form/Radio/Radio.cjs.js.map +1 -1
  219. package/dist/components/Form/Radio/Radio.es.js +1 -0
  220. package/dist/components/Form/Radio/Radio.es.js.map +1 -1
  221. package/dist/components/Form/Radio/Radio.module.scss.cjs.js +2 -2
  222. package/dist/components/Form/Radio/Radio.module.scss.es.js +11 -11
  223. package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js +1 -1
  224. package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js.map +1 -1
  225. package/dist/components/Form/Select/MultiSelect/MultiOption.es.js.map +1 -1
  226. package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js +1 -1
  227. package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js.map +1 -1
  228. package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js.map +1 -1
  229. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +2 -2
  230. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js +15 -15
  231. package/dist/components/Form/Select/MultiSelect/SelectButton.cjs.js +1 -1
  232. package/dist/components/Form/Select/MultiSelect/SelectButton.cjs.js.map +1 -1
  233. package/dist/components/Form/Select/MultiSelect/SelectButton.es.js.map +1 -1
  234. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +2 -2
  235. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.es.js +2 -2
  236. package/dist/components/Form/Select/MultiSelect/SelectedOptions.cjs.js +1 -1
  237. package/dist/components/Form/Select/MultiSelect/SelectedOptions.cjs.js.map +1 -1
  238. package/dist/components/Form/Select/MultiSelect/SelectedOptions.es.js.map +1 -1
  239. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +2 -2
  240. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.es.js +4 -4
  241. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js +1 -1
  242. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js.map +1 -1
  243. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.es.js.map +1 -1
  244. package/dist/components/Form/Select/MultiSelect/useMultiSelect.cjs.js +1 -1
  245. package/dist/components/Form/Select/MultiSelect/useMultiSelect.cjs.js.map +1 -1
  246. package/dist/components/Form/Select/MultiSelect/useMultiSelect.es.js.map +1 -1
  247. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js +1 -1
  248. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
  249. package/dist/components/Form/Select/MultiSelect/useSearch.es.js.map +1 -1
  250. package/dist/components/Form/Select/Select.interfaces.cjs.js.map +1 -1
  251. package/dist/components/Form/Select/Select.interfaces.es.js.map +1 -1
  252. package/dist/components/Form/Select/SingleSelect/Option.cjs.js +1 -1
  253. package/dist/components/Form/Select/SingleSelect/Option.cjs.js.map +1 -1
  254. package/dist/components/Form/Select/SingleSelect/Option.es.js.map +1 -1
  255. package/dist/components/Form/Select/SingleSelect/Select.cjs.js +1 -1
  256. package/dist/components/Form/Select/SingleSelect/Select.cjs.js.map +1 -1
  257. package/dist/components/Form/Select/SingleSelect/Select.es.js.map +1 -1
  258. package/dist/components/Form/Select/SingleSelect/Select.module.scss.cjs.js +2 -2
  259. package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js +17 -17
  260. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js +1 -1
  261. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js.map +1 -1
  262. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.es.js.map +1 -1
  263. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js +1 -1
  264. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -1
  265. package/dist/components/Form/Select/SingleSelect/useSearch.es.js.map +1 -1
  266. package/dist/components/Form/Select/useAddNewBtn.cjs.js +1 -1
  267. package/dist/components/Form/Select/useAddNewBtn.cjs.js.map +1 -1
  268. package/dist/components/Form/Select/useAddNewBtn.es.js.map +1 -1
  269. package/dist/components/Form/Select/useAddNewBtn.module.scss.cjs.js +2 -2
  270. package/dist/components/Form/Select/useAddNewBtn.module.scss.es.js +4 -4
  271. package/dist/components/Form/Select/useSelectPositionList.cjs.js +1 -1
  272. package/dist/components/Form/Select/useSelectPositionList.cjs.js.map +1 -1
  273. package/dist/components/Form/Select/useSelectPositionList.es.js.map +1 -1
  274. package/dist/components/Form/Textarea/Textarea.cjs.js +1 -1
  275. package/dist/components/Form/Textarea/Textarea.cjs.js.map +1 -1
  276. package/dist/components/Form/Textarea/Textarea.es.js +1 -0
  277. package/dist/components/Form/Textarea/Textarea.es.js.map +1 -1
  278. package/dist/components/Form/Textarea/Textarea.module.scss.cjs.js +2 -2
  279. package/dist/components/Form/Textarea/Textarea.module.scss.es.js +6 -6
  280. package/dist/components/Form/Toggle/Toggle.cjs.js +1 -1
  281. package/dist/components/Form/Toggle/Toggle.cjs.js.map +1 -1
  282. package/dist/components/Form/Toggle/Toggle.es.js.map +1 -1
  283. package/dist/components/Form/Toggle/Toggle.module.scss.cjs.js +2 -2
  284. package/dist/components/Form/Toggle/Toggle.module.scss.es.js +18 -18
  285. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js +1 -1
  286. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js.map +1 -1
  287. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.es.js.map +1 -1
  288. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +2 -2
  289. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js +3 -3
  290. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.cjs.js +1 -1
  291. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.cjs.js.map +1 -1
  292. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.es.js.map +1 -1
  293. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +2 -2
  294. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.es.js +4 -4
  295. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js +1 -1
  296. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js.map +1 -1
  297. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.es.js.map +1 -1
  298. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +2 -2
  299. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.es.js +3 -3
  300. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +1 -1
  301. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -1
  302. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.es.js.map +1 -1
  303. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +2 -2
  304. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js +3 -3
  305. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js +1 -1
  306. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js.map +1 -1
  307. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.es.js.map +1 -1
  308. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +2 -2
  309. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.es.js +3 -3
  310. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js +1 -1
  311. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js.map +1 -1
  312. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.es.js.map +1 -1
  313. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +2 -2
  314. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.es.js +8 -8
  315. package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js +1 -1
  316. package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js.map +1 -1
  317. package/dist/components/Form/Wrapper/Wrapper/Wrapper.es.js.map +1 -1
  318. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +2 -2
  319. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.es.js +6 -6
  320. package/dist/components/Icon/Icon.cjs.js +1 -1
  321. package/dist/components/Icon/Icon.cjs.js.map +1 -1
  322. package/dist/components/Icon/Icon.es.js.map +1 -1
  323. package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
  324. package/dist/components/Icon/Icon.module.scss.es.js +107 -107
  325. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.cjs.js +1 -1
  326. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.cjs.js.map +1 -1
  327. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.es.js +11 -9
  328. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.es.js.map +1 -1
  329. package/dist/components/InlineEditing/InlineEditingContext.cjs.js +1 -1
  330. package/dist/components/InlineEditing/InlineEditingContext.cjs.js.map +1 -1
  331. package/dist/components/InlineEditing/InlineEditingContext.es.js +40 -2
  332. package/dist/components/InlineEditing/InlineEditingContext.es.js.map +1 -1
  333. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.cjs.js +1 -1
  334. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.cjs.js.map +1 -1
  335. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.es.js +13 -10
  336. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.es.js.map +1 -1
  337. package/dist/components/Layout/Card/Card.cjs.js.map +1 -1
  338. package/dist/components/Layout/Card/Card.es.js.map +1 -1
  339. package/dist/components/Layout/Card/Card.module.scss.cjs.js +2 -2
  340. package/dist/components/Layout/Card/Card.module.scss.es.js +12 -12
  341. package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js +1 -1
  342. package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js.map +1 -1
  343. package/dist/components/Layout/ContentHeader/ContentHeader.es.js.map +1 -1
  344. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +2 -2
  345. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js +12 -12
  346. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.cjs.js.map +1 -1
  347. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.es.js.map +1 -1
  348. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +2 -2
  349. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js +4 -4
  350. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js +1 -1
  351. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js.map +1 -1
  352. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.es.js +1 -1
  353. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.es.js.map +1 -1
  354. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +2 -2
  355. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js +2 -2
  356. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.cjs.js.map +1 -1
  357. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.es.js.map +1 -1
  358. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +2 -2
  359. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.es.js +3 -3
  360. package/dist/components/Link/Link.cjs.js +1 -1
  361. package/dist/components/Link/Link.cjs.js.map +1 -1
  362. package/dist/components/Link/Link.es.js.map +1 -1
  363. package/dist/components/Link/Link.module.scss.cjs.js +2 -2
  364. package/dist/components/Link/Link.module.scss.es.js +19 -16
  365. package/dist/components/Link/Link.module.scss.es.js.map +1 -1
  366. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.cjs.js.map +1 -1
  367. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.es.js.map +1 -1
  368. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +2 -2
  369. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.es.js +11 -11
  370. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js +1 -1
  371. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js.map +1 -1
  372. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.es.js.map +1 -1
  373. package/dist/components/Notifications/Alert/AlertItem/AlertItem.cjs.js +1 -1
  374. package/dist/components/Notifications/Alert/AlertItem/AlertItem.cjs.js.map +1 -1
  375. package/dist/components/Notifications/Alert/AlertItem/AlertItem.es.js.map +1 -1
  376. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +2 -2
  377. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.es.js +22 -22
  378. package/dist/components/Notifications/Alert/AlertProvider/AlertContext.cjs.js.map +1 -1
  379. package/dist/components/Notifications/Alert/AlertProvider/AlertContext.es.js.map +1 -1
  380. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.cjs.js +1 -1
  381. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.cjs.js.map +1 -1
  382. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.es.js.map +1 -1
  383. package/dist/components/Notifications/Alert/useAlert.cjs.js.map +1 -1
  384. package/dist/components/Notifications/Alert/useAlert.es.js.map +1 -1
  385. package/dist/components/Notifications/Banner/Banner.cjs.js +1 -1
  386. package/dist/components/Notifications/Banner/Banner.cjs.js.map +1 -1
  387. package/dist/components/Notifications/Banner/Banner.es.js.map +1 -1
  388. package/dist/components/Notifications/Banner/Banner.module.scss.cjs.js +2 -2
  389. package/dist/components/Notifications/Banner/Banner.module.scss.es.js +9 -9
  390. package/dist/components/Notifications/BaseModal/BaseModal.cjs.js +1 -1
  391. package/dist/components/Notifications/BaseModal/BaseModal.cjs.js.map +1 -1
  392. package/dist/components/Notifications/BaseModal/BaseModal.es.js +1 -1
  393. package/dist/components/Notifications/BaseModal/BaseModal.es.js.map +1 -1
  394. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.cjs.js +2 -2
  395. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.es.js +5 -5
  396. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js +1 -1
  397. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js.map +1 -1
  398. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.es.js.map +1 -1
  399. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +2 -2
  400. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.es.js +4 -4
  401. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js +1 -1
  402. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js.map +1 -1
  403. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.es.js.map +1 -1
  404. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +2 -2
  405. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.es.js +2 -2
  406. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js +1 -1
  407. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js.map +1 -1
  408. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.es.js.map +1 -1
  409. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +2 -2
  410. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.es.js +6 -6
  411. package/dist/components/Notifications/Dialog/Dialog.cjs.js +1 -1
  412. package/dist/components/Notifications/Dialog/Dialog.cjs.js.map +1 -1
  413. package/dist/components/Notifications/Dialog/Dialog.es.js +2 -2
  414. package/dist/components/Notifications/Dialog/Dialog.es.js.map +1 -1
  415. package/dist/components/Notifications/Dialog/Dialog.module.scss.cjs.js +2 -2
  416. package/dist/components/Notifications/Dialog/Dialog.module.scss.es.js +4 -4
  417. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.cjs.js +1 -1
  418. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.cjs.js.map +1 -1
  419. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.es.js.map +1 -1
  420. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +2 -2
  421. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.es.js +3 -3
  422. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js +1 -1
  423. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js.map +1 -1
  424. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.es.js.map +1 -1
  425. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +2 -2
  426. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.es.js +10 -10
  427. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js +1 -1
  428. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js.map +1 -1
  429. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.es.js.map +1 -1
  430. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.cjs.js.map +1 -1
  431. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.es.js.map +1 -1
  432. package/dist/components/Notifications/NotificationProvider/NotificationContext.cjs.js +1 -1
  433. package/dist/components/Notifications/NotificationProvider/NotificationContext.cjs.js.map +1 -1
  434. package/dist/components/Notifications/NotificationProvider/NotificationContext.es.js +1 -1
  435. package/dist/components/Notifications/NotificationProvider/NotificationContext.es.js.map +1 -1
  436. package/dist/components/Notifications/NotificationProvider/NotificationService.es.js.map +1 -1
  437. package/dist/components/Notifications/SideSheet/SideSheet.cjs.js +1 -1
  438. package/dist/components/Notifications/SideSheet/SideSheet.cjs.js.map +1 -1
  439. package/dist/components/Notifications/SideSheet/SideSheet.es.js.map +1 -1
  440. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.cjs.js +2 -2
  441. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.es.js +13 -13
  442. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.cjs.js.map +1 -1
  443. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.es.js.map +1 -1
  444. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +2 -2
  445. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.es.js +2 -2
  446. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.cjs.js.map +1 -1
  447. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.es.js.map +1 -1
  448. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +2 -2
  449. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.es.js +2 -2
  450. package/dist/components/Notifications/SlideInModal/SlideInModal.cjs.js +1 -1
  451. package/dist/components/Notifications/SlideInModal/SlideInModal.cjs.js.map +1 -1
  452. package/dist/components/Notifications/SlideInModal/SlideInModal.es.js.map +1 -1
  453. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +2 -2
  454. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.es.js +10 -10
  455. package/dist/components/Pagination/Pagination.cjs.js +1 -1
  456. package/dist/components/Pagination/Pagination.cjs.js.map +1 -1
  457. package/dist/components/Pagination/Pagination.es.js.map +1 -1
  458. package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
  459. package/dist/components/Pagination/Pagination.module.scss.es.js +14 -14
  460. package/dist/components/Popover/Popover.cjs.js +1 -1
  461. package/dist/components/Popover/Popover.cjs.js.map +1 -1
  462. package/dist/components/Popover/Popover.es.js.map +1 -1
  463. package/dist/components/Popover/Popover.module.scss.cjs.js +2 -2
  464. package/dist/components/Popover/Popover.module.scss.es.js +3 -3
  465. package/dist/components/ProgressBar/ProgressBar.cjs.js +1 -1
  466. package/dist/components/ProgressBar/ProgressBar.cjs.js.map +1 -1
  467. package/dist/components/ProgressBar/ProgressBar.es.js.map +1 -1
  468. package/dist/components/ProgressBar/ProgressBar.module.scss.cjs.js +2 -2
  469. package/dist/components/ProgressBar/ProgressBar.module.scss.es.js +9 -9
  470. package/dist/components/RequiredSign/RequiredSign.cjs.js.map +1 -1
  471. package/dist/components/RequiredSign/RequiredSign.es.js.map +1 -1
  472. package/dist/components/Skeleton/Skeleton.cjs.js +1 -1
  473. package/dist/components/Skeleton/Skeleton.cjs.js.map +1 -1
  474. package/dist/components/Skeleton/Skeleton.es.js.map +1 -1
  475. package/dist/components/Skeleton/Skeleton.module.scss.cjs.js +2 -2
  476. package/dist/components/Skeleton/Skeleton.module.scss.es.js +5 -5
  477. package/dist/components/Spinner/Spinner.cjs.js.map +1 -1
  478. package/dist/components/Spinner/Spinner.es.js.map +1 -1
  479. package/dist/components/Spinner/Spinner.module.scss.cjs.js +2 -2
  480. package/dist/components/Spinner/Spinner.module.scss.es.js +3 -3
  481. package/dist/components/Stepper/Step.cjs.js.map +1 -1
  482. package/dist/components/Stepper/Step.es.js.map +1 -1
  483. package/dist/components/Stepper/Step.module.scss.cjs.js +2 -2
  484. package/dist/components/Stepper/Step.module.scss.es.js +22 -22
  485. package/dist/components/Stepper/Stepper.cjs.js +1 -1
  486. package/dist/components/Stepper/Stepper.cjs.js.map +1 -1
  487. package/dist/components/Stepper/Stepper.es.js.map +1 -1
  488. package/dist/components/Stepper/Stepper.module.scss.cjs.js +2 -2
  489. package/dist/components/Stepper/Stepper.module.scss.es.js +4 -4
  490. package/dist/components/Tabs/Tab.cjs.js.map +1 -1
  491. package/dist/components/Tabs/Tab.es.js.map +1 -1
  492. package/dist/components/Tabs/Tab.module.scss.cjs.js +2 -2
  493. package/dist/components/Tabs/Tab.module.scss.es.js +3 -3
  494. package/dist/components/Tabs/TabButton.cjs.js +1 -1
  495. package/dist/components/Tabs/TabButton.cjs.js.map +1 -1
  496. package/dist/components/Tabs/TabButton.es.js.map +1 -1
  497. package/dist/components/Tabs/TabButton.module.scss.cjs.js +2 -2
  498. package/dist/components/Tabs/TabButton.module.scss.es.js +12 -12
  499. package/dist/components/Tabs/Tabs.cjs.js +1 -1
  500. package/dist/components/Tabs/Tabs.cjs.js.map +1 -1
  501. package/dist/components/Tabs/Tabs.es.js.map +1 -1
  502. package/dist/components/Tabs/Tabs.module.scss.cjs.js +2 -2
  503. package/dist/components/Tabs/Tabs.module.scss.es.js +10 -10
  504. package/dist/components/Tag/RemoveButton.cjs.js +1 -1
  505. package/dist/components/Tag/RemoveButton.cjs.js.map +1 -1
  506. package/dist/components/Tag/RemoveButton.es.js.map +1 -1
  507. package/dist/components/Tag/RemoveButton.module.scss.cjs.js +2 -2
  508. package/dist/components/Tag/RemoveButton.module.scss.es.js +3 -3
  509. package/dist/components/Tag/Tag.cjs.js +1 -1
  510. package/dist/components/Tag/Tag.cjs.js.map +1 -1
  511. package/dist/components/Tag/Tag.es.js.map +1 -1
  512. package/dist/components/Tag/Tag.module.scss.cjs.js +2 -2
  513. package/dist/components/Tag/Tag.module.scss.es.js +6 -6
  514. package/dist/components/TextEllipsis/TextEllipsis.cjs.js +1 -1
  515. package/dist/components/TextEllipsis/TextEllipsis.cjs.js.map +1 -1
  516. package/dist/components/TextEllipsis/TextEllipsis.es.js.map +1 -1
  517. package/dist/components/TextEllipsis/TextEllipsis.module.scss.cjs.js +2 -2
  518. package/dist/components/TextEllipsis/TextEllipsis.module.scss.es.js +3 -3
  519. package/dist/components/Tiles/Tile.cjs.js +1 -1
  520. package/dist/components/Tiles/Tile.cjs.js.map +1 -1
  521. package/dist/components/Tiles/Tile.es.js.map +1 -1
  522. package/dist/components/Tiles/Tile.module.scss.cjs.js +2 -2
  523. package/dist/components/Tiles/Tile.module.scss.es.js +8 -8
  524. package/dist/components/Tiles/Tiles.cjs.js +1 -1
  525. package/dist/components/Tiles/Tiles.cjs.js.map +1 -1
  526. package/dist/components/Tiles/Tiles.es.js.map +1 -1
  527. package/dist/components/Tiles/Tiles.module.scss.cjs.js +2 -2
  528. package/dist/components/Tiles/Tiles.module.scss.es.js +2 -2
  529. package/dist/components/Tooltip/Tooltip.cjs.js +1 -1
  530. package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -1
  531. package/dist/components/Tooltip/Tooltip.es.js +1 -1
  532. package/dist/components/Tooltip/Tooltip.es.js.map +1 -1
  533. package/dist/components/Tooltip/Tooltip.module.scss.cjs.js +2 -2
  534. package/dist/components/Tooltip/Tooltip.module.scss.es.js +27 -27
  535. package/dist/components/Typography/Typography.cjs.js +1 -1
  536. package/dist/components/Typography/Typography.cjs.js.map +1 -1
  537. package/dist/components/Typography/Typography.es.js.map +1 -1
  538. package/dist/components/Typography/Typography.module.scss.cjs.js +2 -2
  539. package/dist/components/Typography/Typography.module.scss.es.js +13 -13
  540. package/dist/components/_BaseStyling_/BaseStyling.cjs.js +1 -1
  541. package/dist/components/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
  542. package/dist/components/_BaseStyling_/BaseStyling.es.js.map +1 -1
  543. package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js +1 -1
  544. package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js.map +1 -1
  545. package/dist/components/admin/layout/LeftNav/LeftNav.es.js +2 -0
  546. package/dist/components/admin/layout/LeftNav/LeftNav.es.js.map +1 -1
  547. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -2
  548. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.es.js +5 -5
  549. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js +1 -1
  550. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js.map +1 -1
  551. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.es.js +2 -0
  552. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.es.js.map +1 -1
  553. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.cjs.js +1 -1
  554. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.cjs.js.map +1 -1
  555. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.es.js.map +1 -1
  556. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -2
  557. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.es.js +14 -14
  558. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js +1 -1
  559. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js.map +1 -1
  560. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.es.js +90 -2
  561. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.es.js.map +1 -1
  562. package/dist/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.cjs.js.map +1 -1
  563. package/dist/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.es.js.map +1 -1
  564. package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js +1 -1
  565. package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js.map +1 -1
  566. package/dist/components/admin/layout/LeftNav/useRefItems.es.js.map +1 -1
  567. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js +1 -1
  568. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js.map +1 -1
  569. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.es.js +1 -1
  570. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.es.js.map +1 -1
  571. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +2 -2
  572. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js +3 -3
  573. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.cjs.js +2 -0
  574. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.cjs.js.map +1 -0
  575. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.es.js +33 -0
  576. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.es.js.map +1 -0
  577. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js +3 -0
  578. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js.map +1 -0
  579. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js +25 -0
  580. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js.map +1 -0
  581. package/dist/components/admin/layout/TopNavBar/TopNavBar.cjs.js +2 -0
  582. package/dist/components/admin/layout/TopNavBar/TopNavBar.cjs.js.map +1 -0
  583. package/dist/components/admin/layout/TopNavBar/TopNavBar.es.js +45 -0
  584. package/dist/components/admin/layout/TopNavBar/TopNavBar.es.js.map +1 -0
  585. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js +3 -0
  586. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js.map +1 -0
  587. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js +25 -0
  588. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js.map +1 -0
  589. package/dist/components/miscellaneous/IdentityProviderButton.cjs.js.map +1 -1
  590. package/dist/components/miscellaneous/IdentityProviderButton.es.js.map +1 -1
  591. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.cjs.js +2 -2
  592. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.es.js +3 -3
  593. package/dist/components/withReadOnly.cjs.js +1 -1
  594. package/dist/components/withReadOnly.cjs.js.map +1 -1
  595. package/dist/components/withReadOnly.es.js.map +1 -1
  596. package/dist/hooks/useAnimation.cjs.js +1 -1
  597. package/dist/hooks/useAnimation.cjs.js.map +1 -1
  598. package/dist/hooks/useAnimation.es.js.map +1 -1
  599. package/dist/hooks/useClickOutside.cjs.js +1 -1
  600. package/dist/hooks/useClickOutside.cjs.js.map +1 -1
  601. package/dist/hooks/useClickOutside.es.js.map +1 -1
  602. package/dist/hooks/useDebouncedCallback.cjs.js +1 -1
  603. package/dist/hooks/useDebouncedCallback.cjs.js.map +1 -1
  604. package/dist/hooks/useDebouncedCallback.es.js.map +1 -1
  605. package/dist/hooks/useDescribedBy.cjs.js.map +1 -1
  606. package/dist/hooks/useDescribedBy.es.js.map +1 -1
  607. package/dist/hooks/useDetermineStatusIcon.cjs.js.map +1 -1
  608. package/dist/hooks/useDetermineStatusIcon.es.js.map +1 -1
  609. package/dist/hooks/useFormSelector.cjs.js.map +1 -1
  610. package/dist/hooks/useFormSelector.es.js.map +1 -1
  611. package/dist/hooks/useFullHeightCollapse.cjs.js.map +1 -1
  612. package/dist/hooks/useFullHeightCollapse.es.js.map +1 -1
  613. package/dist/hooks/useGetDomRoot.cjs.js +1 -1
  614. package/dist/hooks/useGetDomRoot.cjs.js.map +1 -1
  615. package/dist/hooks/useGetDomRoot.es.js.map +1 -1
  616. package/dist/hooks/usePosition.cjs.js +1 -1
  617. package/dist/hooks/usePosition.cjs.js.map +1 -1
  618. package/dist/hooks/usePosition.es.js.map +1 -1
  619. package/dist/hooks/useRepeatFocus.cjs.js +1 -1
  620. package/dist/hooks/useRepeatFocus.cjs.js.map +1 -1
  621. package/dist/hooks/useRepeatFocus.es.js +6 -23
  622. package/dist/hooks/useRepeatFocus.es.js.map +1 -1
  623. package/dist/hooks/useRepeater.cjs.js +1 -1
  624. package/dist/hooks/useRepeater.cjs.js.map +1 -1
  625. package/dist/hooks/useRepeater.es.js.map +1 -1
  626. package/dist/hooks/useScreenSize.cjs.js +1 -1
  627. package/dist/hooks/useScreenSize.cjs.js.map +1 -1
  628. package/dist/hooks/useScreenSize.es.js.map +1 -1
  629. package/dist/hooks/useSpacing.cjs.js +1 -1
  630. package/dist/hooks/useSpacing.cjs.js.map +1 -1
  631. package/dist/hooks/useSpacing.es.js.map +1 -1
  632. package/dist/hooks/useUploadFile.cjs.js +1 -1
  633. package/dist/hooks/useUploadFile.cjs.js.map +1 -1
  634. package/dist/hooks/useUploadFile.es.js.map +1 -1
  635. package/dist/hooks/useWrapper.cjs.js.map +1 -1
  636. package/dist/hooks/useWrapper.es.js.map +1 -1
  637. package/dist/index.cjs.js +1 -1
  638. package/dist/index.d.ts +48 -4
  639. package/dist/index.es.js +6 -0
  640. package/dist/index.es.js.map +1 -1
  641. package/dist/node_modules/tabbable/dist/index.esm.cjs.js +2 -0
  642. package/dist/node_modules/tabbable/dist/index.esm.cjs.js.map +1 -0
  643. package/dist/node_modules/tabbable/dist/index.esm.es.js +322 -0
  644. package/dist/node_modules/tabbable/dist/index.esm.es.js.map +1 -0
  645. package/dist/readyclasses.module.scss.cjs.js +2 -2
  646. package/dist/readyclasses.module.scss.es.js +5 -5
  647. package/dist/util/helper.cjs.js +1 -1
  648. package/dist/util/helper.cjs.js.map +1 -1
  649. package/dist/util/helper.es.js +1 -1
  650. package/dist/util/helper.es.js.map +1 -1
  651. package/dist/utils/focusManagement.cjs.js +2 -0
  652. package/dist/utils/focusManagement.cjs.js.map +1 -0
  653. package/dist/utils/focusManagement.es.js +8 -0
  654. package/dist/utils/focusManagement.es.js.map +1 -0
  655. package/dist/utils/statusUtils.cjs.js.map +1 -1
  656. package/dist/utils/statusUtils.es.js.map +1 -1
  657. package/dist/variables.cjs.js.map +1 -1
  658. package/dist/variables.es.js.map +1 -1
  659. package/package.json +26 -21
@@ -1 +1 @@
1
- {"version":3,"file":"MicrofrontendContainer.cjs.js","sources":["../../../../../src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.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, { ReactElement } from \"react\";\nimport classes from \"./MicrofrontendContainer.module.scss\";\n\nexport interface Props {\n header?: ReactElement | ReactElement[];\n children: ReactElement | ReactElement[];\n contentMargins?: boolean;\n contentMaxWidth?: boolean;\n}\n\nexport const MicrofrontendContainer = ({\n header,\n children,\n contentMargins = true,\n contentMaxWidth = true,\n ...rest\n}: Props) => {\n const appliedClasses = [];\n\n contentMargins && appliedClasses.push(classes[\"microfrontend-container-margin\"]);\n contentMaxWidth && appliedClasses.push(classes[\"microfrontend-container-max-width\"]);\n\n return (\n <>\n <div>{header}</div>\n <div className={appliedClasses.join(\" \")} {...rest}>\n {children}\n </div>\n </>\n );\n};\n"],"names":["header","children","contentMargins","contentMaxWidth","rest","appliedClasses","push","classes","default","React","createElement","Fragment","className","join"],"mappings":"iMA0BsC,EACpCA,SACAC,WACAC,kBAAiB,EACjBC,mBAAkB,KACfC,MAEH,MAAMC,EAAiB,GAOnB,OALJH,GAAkBG,EAAeC,KAAKC,EAAQC,QAAA,mCAC9CL,GAAmBE,EAAeC,KAAKC,EAAQC,QAAA,sCAI3CC,EAAAC,cAAAD,EAAAE,SAAA,OAAAD,cAAC,MAAK,KAAAV,GACLS,EAAAC,cAAA,MAAA,CAAIE,UAAWP,EAAeQ,KAAK,QAAUT,GAC3CH,GAEL"}
1
+ {"version":3,"file":"MicrofrontendContainer.cjs.js","sources":["../../../../../src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.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, { ReactElement } from \"react\";\nimport classes from \"./MicrofrontendContainer.module.scss\";\n\nexport interface Props {\n header?: ReactElement | ReactElement[];\n children: ReactElement | ReactElement[];\n contentMargins?: boolean;\n contentMaxWidth?: boolean;\n}\n\nexport const MicrofrontendContainer = ({\n header,\n children,\n contentMargins = true,\n contentMaxWidth = true,\n ...rest\n}: Props) => {\n const appliedClasses = [];\n\n contentMargins && appliedClasses.push(classes[\"microfrontend-container-margin\"]);\n contentMaxWidth && appliedClasses.push(classes[\"microfrontend-container-max-width\"]);\n\n return (\n <>\n <div>{header}</div>\n <main role=\"main\" className={appliedClasses.join(\" \")} {...rest}>\n {children}\n </main>\n </>\n );\n};\n"],"names":["header","children","contentMargins","contentMaxWidth","rest","appliedClasses","push","classes","React","createElement","role","className","join"],"mappings":"iMA0BsC,EACpCA,SACAC,WACAC,kBAAiB,EACjBC,mBAAkB,KACfC,MAEH,MAAMC,EAAiB,GAKvB,OAHAH,GAAkBG,EAAeC,KAAKC,EAAAA,QAAQ,mCAC9CJ,GAAmBE,EAAeC,KAAKC,EAAAA,QAAQ,sEAI3CC,EAAAC,cAAC,MAAA,KAAKT,mBACL,OAAA,CAAKU,KAAK,OAAOC,UAAWN,EAAeO,KAAK,QAAUR,GACxDH"}
@@ -10,7 +10,7 @@ const MicrofrontendContainer = ({
10
10
  const appliedClasses = [];
11
11
  contentMargins && appliedClasses.push(classes["microfrontend-container-margin"]);
12
12
  contentMaxWidth && appliedClasses.push(classes["microfrontend-container-max-width"]);
13
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", null, header), /* @__PURE__ */ React.createElement("div", { className: appliedClasses.join(" "), ...rest }, children));
13
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", null, header), /* @__PURE__ */ React.createElement("main", { role: "main", className: appliedClasses.join(" "), ...rest }, children));
14
14
  };
15
15
  export {
16
16
  MicrofrontendContainer
@@ -1 +1 @@
1
- {"version":3,"file":"MicrofrontendContainer.es.js","sources":["../../../../../src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.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, { ReactElement } from \"react\";\nimport classes from \"./MicrofrontendContainer.module.scss\";\n\nexport interface Props {\n header?: ReactElement | ReactElement[];\n children: ReactElement | ReactElement[];\n contentMargins?: boolean;\n contentMaxWidth?: boolean;\n}\n\nexport const MicrofrontendContainer = ({\n header,\n children,\n contentMargins = true,\n contentMaxWidth = true,\n ...rest\n}: Props) => {\n const appliedClasses = [];\n\n contentMargins && appliedClasses.push(classes[\"microfrontend-container-margin\"]);\n contentMaxWidth && appliedClasses.push(classes[\"microfrontend-container-max-width\"]);\n\n return (\n <>\n <div>{header}</div>\n <div className={appliedClasses.join(\" \")} {...rest}>\n {children}\n </div>\n </>\n );\n};\n"],"names":[],"mappings":";;AA0BO,MAAM,yBAAyB,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,GAAG;AACL,MAAa;AACX,QAAM,iBAAiB,CAAC;AAExB,oBAAkB,eAAe,KAAK,QAAQ,gCAAgC,CAAC;AAC/E,qBAAmB,eAAe,KAAK,QAAQ,mCAAmC,CAAC;AAEnF,SAEI,sBAAA,cAAA,MAAA,UAAA,MAAA,sBAAA,cAAC,OAAK,MAAA,MAAO,GACZ,sBAAA,cAAA,OAAA,EAAI,WAAW,eAAe,KAAK,GAAG,GAAI,GAAG,QAC3C,QACH,CACF;AAEJ;"}
1
+ {"version":3,"file":"MicrofrontendContainer.es.js","sources":["../../../../../src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.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, { ReactElement } from \"react\";\nimport classes from \"./MicrofrontendContainer.module.scss\";\n\nexport interface Props {\n header?: ReactElement | ReactElement[];\n children: ReactElement | ReactElement[];\n contentMargins?: boolean;\n contentMaxWidth?: boolean;\n}\n\nexport const MicrofrontendContainer = ({\n header,\n children,\n contentMargins = true,\n contentMaxWidth = true,\n ...rest\n}: Props) => {\n const appliedClasses = [];\n\n contentMargins && appliedClasses.push(classes[\"microfrontend-container-margin\"]);\n contentMaxWidth && appliedClasses.push(classes[\"microfrontend-container-max-width\"]);\n\n return (\n <>\n <div>{header}</div>\n <main role=\"main\" className={appliedClasses.join(\" \")} {...rest}>\n {children}\n </main>\n </>\n );\n};\n"],"names":[],"mappings":";;AA0BO,MAAM,yBAAyB,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,GAAG;AACL,MAAa;AACX,QAAM,iBAAiB,CAAA;AAEvB,oBAAkB,eAAe,KAAK,QAAQ,gCAAgC,CAAC;AAC/E,qBAAmB,eAAe,KAAK,QAAQ,mCAAmC,CAAC;AAEnF,mEAEI,sBAAA,cAAC,OAAA,MAAK,MAAO,uCACZ,QAAA,EAAK,MAAK,QAAO,WAAW,eAAe,KAAK,GAAG,GAAI,GAAG,KAAA,GACxD,QACH,CACF;AAEJ;"}
@@ -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 */.MicrofrontendContainer_microfrontend-container-margin_gFXfX{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_gFXfX{max-width:105rem}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"microfrontend-container-margin":"MicrofrontendContainer_microfrontend-container-margin_gFXfX","microfrontend-container-max-width":"MicrofrontendContainer_microfrontend-container-max-width_gFXfX"};
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 */.MicrofrontendContainer_microfrontend-container-margin_jyx43{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_jyx43{max-width:105rem}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"microfrontend-container-margin":"MicrofrontendContainer_microfrontend-container-margin_jyx43","microfrontend-container-max-width":"MicrofrontendContainer_microfrontend-container-max-width_jyx43"};
3
3
  //# sourceMappingURL=MicrofrontendContainer.module.scss.cjs.js.map
@@ -1,7 +1,7 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.MicrofrontendContainer_microfrontend-container-margin_gFXfX{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_gFXfX{max-width:105rem}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
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 */.MicrofrontendContainer_microfrontend-container-margin_jyx43{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_jyx43{max-width:105rem}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
2
2
  const classes = {
3
- "microfrontend-container-margin": "MicrofrontendContainer_microfrontend-container-margin_gFXfX",
4
- "microfrontend-container-max-width": "MicrofrontendContainer_microfrontend-container-max-width_gFXfX"
3
+ "microfrontend-container-margin": "MicrofrontendContainer_microfrontend-container-margin_jyx43",
4
+ "microfrontend-container-max-width": "MicrofrontendContainer_microfrontend-container-max-width_jyx43"
5
5
  };
6
6
  export {
7
7
  classes as default
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./ProfileMenu.module.scss.cjs.js"),r=require("../../../ContextMenu/ContextMenu.cjs.js");exports.ProfileMenu=({initials:a,imgSrc:i,imgAlt:l,menuTriggerTitle:n,headerContent:o,children:s,...c})=>{const[u,m]=e.useState(!1),g=a?a.substring(0,2):"";return e.createElement("div",{...c},e.createElement(r.ContextMenu,{decorativeElement:o,placement:{horizontal:"right",vertical:"bottom"},transformOrigin:{horizontal:"right",vertical:"top"},onShow:()=>m(!0),onClose:()=>m(!1),popoverProps:{className:t.default.popover},showChevron:!0,trigger:e.createElement("button",{className:t.default.trigger,title:n},e.createElement("div",{className:`${t.default.circle} ${u?t.default.active:""}`},i?e.createElement("img",{className:t.default.img,src:i,alt:l??g}):e.createElement("span",{className:t.default.initials},g)))},s))};
2
+ //# sourceMappingURL=ProfileMenu.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileMenu.cjs.js","sources":["../../../../../src/components/admin/layout/ProfileMenu/ProfileMenu.tsx"],"sourcesContent":["import React, { ComponentPropsWithRef, ReactElement, ReactNode, useState } from \"react\";\nimport classes from \"./ProfileMenu.module.scss\";\nimport { ContextMenu } from \"../../../ContextMenu/ContextMenu\";\nimport { ContextMenuDivider } from \"../../../ContextMenu/ContextMenuDivider\";\nimport { Props as ContextMenuItemProps } from \"../../../ContextMenu/ContextMenuItem\";\n\nexport interface ProfileMenuProps extends Omit<ComponentPropsWithRef<\"div\">, \"children\"> {\n initials?: string;\n imgSrc?: string;\n imgAlt?: string;\n menuTriggerTitle?: string;\n headerContent?: ReactNode;\n children:\n | ReactElement<ContextMenuItemProps>\n | ReactElement<typeof ContextMenuDivider>\n | (ReactElement<ContextMenuItemProps> | ReactElement<typeof ContextMenuDivider>)[];\n}\n\nexport const ProfileMenu = ({\n initials,\n imgSrc,\n imgAlt,\n menuTriggerTitle,\n headerContent,\n children,\n ...rest\n}: ProfileMenuProps) => {\n const [menuOpen, setMenuOpen] = useState(false);\n const safeInitials = initials ? initials.substring(0, 2) : \"\";\n\n return (\n <div {...rest}>\n <ContextMenu\n decorativeElement={headerContent}\n placement={{ horizontal: \"right\", vertical: \"bottom\" }}\n transformOrigin={{ horizontal: \"right\", vertical: \"top\" }}\n onShow={() => setMenuOpen(true)}\n onClose={() => setMenuOpen(false)}\n popoverProps={{ className: classes[\"popover\"] }}\n showChevron\n trigger={\n <button className={classes[\"trigger\"]} title={menuTriggerTitle}>\n <div className={`${classes[\"circle\"]} ${menuOpen ? classes[\"active\"] : \"\"}`}>\n {imgSrc ? (\n <img className={classes[\"img\"]} src={imgSrc} alt={imgAlt ?? safeInitials} />\n ) : (\n <span className={classes[\"initials\"]}>{safeInitials}</span>\n )}\n </div>\n </button>\n }\n >\n {children}\n </ContextMenu>\n </div>\n );\n};\n"],"names":["initials","imgSrc","imgAlt","menuTriggerTitle","headerContent","children","rest","menuOpen","setMenuOpen","useState","safeInitials","substring","createElement","React","ContextMenu","decorativeElement","placement","horizontal","vertical","transformOrigin","onShow","onClose","popoverProps","className","classes","showChevron","trigger","title","src","alt"],"mappings":"gOAkB2B,EACzBA,WACAC,SACAC,SACAC,mBACAC,gBACAC,cACGC,MAEH,MAAOC,EAAUC,GAAeC,EAAAA,UAAS,GACnCC,EAAeV,EAAWA,EAASW,UAAU,EAAG,GAAK,GAE3D,SACEC,cAAC,MAAA,IAAQN,GACPO,EAAAD,cAACE,EAAAA,YAAA,CACCC,kBAAmBX,EACnBY,UAAW,CAAEC,WAAY,QAASC,SAAU,UAC5CC,gBAAiB,CAAEF,WAAY,QAASC,SAAU,OAClDE,OAAQ,IAAMZ,GAAY,GAC1Ba,QAAS,IAAMb,GAAY,GAC3Bc,aAAc,CAAEC,UAAWC,EAAAA,QAAiB,SAC5CC,aAAW,EACXC,wBACG,SAAA,CAAOH,UAAWC,EAAAA,QAAiB,QAAGG,MAAOxB,GAC5CU,EAAAD,cAAC,OAAIW,UAAW,GAAGC,UAAgB,UAAKjB,EAAWiB,UAAgB,OAAI,MACpEvB,EACCY,EAAAD,cAAC,OAAIW,UAAWC,EAAAA,QAAa,IAAGI,IAAK3B,EAAQ4B,IAAK3B,GAAUQ,IAE5DG,EAAAD,cAAC,QAAKW,UAAWC,UAAkB,UAAId,MAM9CL"}
@@ -0,0 +1,33 @@
1
+ import React, { useState } from "react";
2
+ import classes from "./ProfileMenu.module.scss.es.js";
3
+ import { ContextMenu } from "../../../ContextMenu/ContextMenu.es.js";
4
+ const ProfileMenu = ({
5
+ initials,
6
+ imgSrc,
7
+ imgAlt,
8
+ menuTriggerTitle,
9
+ headerContent,
10
+ children,
11
+ ...rest
12
+ }) => {
13
+ const [menuOpen, setMenuOpen] = useState(false);
14
+ const safeInitials = initials ? initials.substring(0, 2) : "";
15
+ return /* @__PURE__ */ React.createElement("div", { ...rest }, /* @__PURE__ */ React.createElement(
16
+ ContextMenu,
17
+ {
18
+ decorativeElement: headerContent,
19
+ placement: { horizontal: "right", vertical: "bottom" },
20
+ transformOrigin: { horizontal: "right", vertical: "top" },
21
+ onShow: () => setMenuOpen(true),
22
+ onClose: () => setMenuOpen(false),
23
+ popoverProps: { className: classes["popover"] },
24
+ showChevron: true,
25
+ trigger: /* @__PURE__ */ React.createElement("button", { className: classes["trigger"], title: menuTriggerTitle }, /* @__PURE__ */ React.createElement("div", { className: `${classes["circle"]} ${menuOpen ? classes["active"] : ""}` }, imgSrc ? /* @__PURE__ */ React.createElement("img", { className: classes["img"], src: imgSrc, alt: imgAlt ?? safeInitials }) : /* @__PURE__ */ React.createElement("span", { className: classes["initials"] }, safeInitials)))
26
+ },
27
+ children
28
+ ));
29
+ };
30
+ export {
31
+ ProfileMenu
32
+ };
33
+ //# sourceMappingURL=ProfileMenu.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileMenu.es.js","sources":["../../../../../src/components/admin/layout/ProfileMenu/ProfileMenu.tsx"],"sourcesContent":["import React, { ComponentPropsWithRef, ReactElement, ReactNode, useState } from \"react\";\nimport classes from \"./ProfileMenu.module.scss\";\nimport { ContextMenu } from \"../../../ContextMenu/ContextMenu\";\nimport { ContextMenuDivider } from \"../../../ContextMenu/ContextMenuDivider\";\nimport { Props as ContextMenuItemProps } from \"../../../ContextMenu/ContextMenuItem\";\n\nexport interface ProfileMenuProps extends Omit<ComponentPropsWithRef<\"div\">, \"children\"> {\n initials?: string;\n imgSrc?: string;\n imgAlt?: string;\n menuTriggerTitle?: string;\n headerContent?: ReactNode;\n children:\n | ReactElement<ContextMenuItemProps>\n | ReactElement<typeof ContextMenuDivider>\n | (ReactElement<ContextMenuItemProps> | ReactElement<typeof ContextMenuDivider>)[];\n}\n\nexport const ProfileMenu = ({\n initials,\n imgSrc,\n imgAlt,\n menuTriggerTitle,\n headerContent,\n children,\n ...rest\n}: ProfileMenuProps) => {\n const [menuOpen, setMenuOpen] = useState(false);\n const safeInitials = initials ? initials.substring(0, 2) : \"\";\n\n return (\n <div {...rest}>\n <ContextMenu\n decorativeElement={headerContent}\n placement={{ horizontal: \"right\", vertical: \"bottom\" }}\n transformOrigin={{ horizontal: \"right\", vertical: \"top\" }}\n onShow={() => setMenuOpen(true)}\n onClose={() => setMenuOpen(false)}\n popoverProps={{ className: classes[\"popover\"] }}\n showChevron\n trigger={\n <button className={classes[\"trigger\"]} title={menuTriggerTitle}>\n <div className={`${classes[\"circle\"]} ${menuOpen ? classes[\"active\"] : \"\"}`}>\n {imgSrc ? (\n <img className={classes[\"img\"]} src={imgSrc} alt={imgAlt ?? safeInitials} />\n ) : (\n <span className={classes[\"initials\"]}>{safeInitials}</span>\n )}\n </div>\n </button>\n }\n >\n {children}\n </ContextMenu>\n </div>\n );\n};\n"],"names":[],"mappings":";;;AAkBO,MAAM,cAAc,CAAC;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAwB;AACtB,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,eAAe,WAAW,SAAS,UAAU,GAAG,CAAC,IAAI;AAE3D,SACE,sBAAA,cAAC,OAAA,EAAK,GAAG,KAAA,GACP,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,mBAAmB;AAAA,MACnB,WAAW,EAAE,YAAY,SAAS,UAAU,SAAA;AAAA,MAC5C,iBAAiB,EAAE,YAAY,SAAS,UAAU,MAAA;AAAA,MAClD,QAAQ,MAAM,YAAY,IAAI;AAAA,MAC9B,SAAS,MAAM,YAAY,KAAK;AAAA,MAChC,cAAc,EAAE,WAAW,QAAQ,SAAS,EAAA;AAAA,MAC5C,aAAW;AAAA,MACX,6CACG,UAAA,EAAO,WAAW,QAAQ,SAAS,GAAG,OAAO,iBAAA,GAC5C,sBAAA,cAAC,SAAI,WAAW,GAAG,QAAQ,QAAQ,CAAC,IAAI,WAAW,QAAQ,QAAQ,IAAI,EAAE,MACtE,SACC,sBAAA,cAAC,SAAI,WAAW,QAAQ,KAAK,GAAG,KAAK,QAAQ,KAAK,UAAU,cAAc,IAE1E,sBAAA,cAAC,UAAK,WAAW,QAAQ,UAAU,EAAA,GAAI,YAAa,CAExD,CACF;AAAA,IAAA;AAAA,IAGD;AAAA,EAAA,CAEL;AAEJ;"}
@@ -0,0 +1,3 @@
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ProfileMenu_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ProfileMenu_hidden_jyx43{display:none}.ProfileMenu_slide-in_jyx43{animation:ProfileMenu_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-in_jyx43{animation-duration:.1ms}}.ProfileMenu_slide-out_jyx43{animation:ProfileMenu_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-out_jyx43{animation-duration:.1ms}}@keyframes ProfileMenu_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes ProfileMenu_slide-out_jyx43{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.ProfileMenu_trigger_jyx43{display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:0 .75rem}.ProfileMenu_trigger_jyx43:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.ProfileMenu_circle_jyx43{width:2.5rem;height:2.5rem;border-radius:50%;background-color:var(--color-primary);color:var(--light);display:flex;align-items:center;justify-content:center;overflow:hidden}.ProfileMenu_circle_jyx43:hover{background-color:var(--color-primary600)}.ProfileMenu_circle_jyx43.ProfileMenu_active_jyx43{background-color:var(--color-primary700)}.ProfileMenu_initials_jyx43{font-weight:700;font-size:1rem;pointer-events:none}.ProfileMenu_img_jyx43{width:100%;height:100%;object-fit:cover;border-radius:50%}.ProfileMenu_popover_jyx43{z-index:11;--font-size: .875rem}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="ProfileMenu_trigger_jyx43",i="ProfileMenu_circle_jyx43",r="ProfileMenu_active_jyx43",o="ProfileMenu_initials_jyx43",t="ProfileMenu_img_jyx43",l="ProfileMenu_popover_jyx43",s={trigger:e,circle:i,active:r,initials:o,img:t,popover:l};exports.active=r,exports.circle=i,exports.default=s,exports.img=t,exports.initials=o,exports.popover=l,exports.trigger=e;
3
+ //# sourceMappingURL=ProfileMenu.module.scss.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileMenu.module.scss.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ProfileMenu_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ProfileMenu_hidden_jyx43{display:none}.ProfileMenu_slide-in_jyx43{animation:ProfileMenu_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-in_jyx43{animation-duration:.1ms}}.ProfileMenu_slide-out_jyx43{animation:ProfileMenu_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-out_jyx43{animation-duration:.1ms}}@keyframes ProfileMenu_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes ProfileMenu_slide-out_jyx43{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.ProfileMenu_trigger_jyx43{display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:0 .75rem}.ProfileMenu_trigger_jyx43:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.ProfileMenu_circle_jyx43{width:2.5rem;height:2.5rem;border-radius:50%;background-color:var(--color-primary);color:var(--light);display:flex;align-items:center;justify-content:center;overflow:hidden}.ProfileMenu_circle_jyx43:hover{background-color:var(--color-primary600)}.ProfileMenu_circle_jyx43.ProfileMenu_active_jyx43{background-color:var(--color-primary700)}.ProfileMenu_initials_jyx43{font-weight:700;font-size:1rem;pointer-events:none}.ProfileMenu_img_jyx43{width:100%;height:100%;object-fit:cover;border-radius:50%}.ProfileMenu_popover_jyx43{z-index:11;--font-size: .875rem}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
+ const trigger = "ProfileMenu_trigger_jyx43";
3
+ const circle = "ProfileMenu_circle_jyx43";
4
+ const active = "ProfileMenu_active_jyx43";
5
+ const initials = "ProfileMenu_initials_jyx43";
6
+ const img = "ProfileMenu_img_jyx43";
7
+ const popover = "ProfileMenu_popover_jyx43";
8
+ const classes = {
9
+ trigger,
10
+ circle,
11
+ active,
12
+ initials,
13
+ img,
14
+ popover
15
+ };
16
+ export {
17
+ active,
18
+ circle,
19
+ classes as default,
20
+ img,
21
+ initials,
22
+ popover,
23
+ trigger
24
+ };
25
+ //# sourceMappingURL=ProfileMenu.module.scss.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileMenu.module.scss.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),a=require("./TopNavBar.module.scss.cjs.js"),t=require("../../../Icon/Icon.cjs.js"),l=require("../../../Button/IconButton.cjs.js");exports.TopNavBar=({logo:n,logoSmall:o,homeHref:s="/",homeLabel:r="Home",homeComponent:c,middleComponent:d,rightComponent:i,showSeparator:m=!1,isBurgerDisabled:u=!1,isSideMenuOpen:p=!1,isSideMenuCollapsed:f=!1,onSideMenuOpen:g,burgerMenuLabel:E="Toggle side menu","data-testid":N="topnavbar"})=>e.createElement("nav",{className:a.default.topnavbar,"data-testid":N},!u&&e.createElement(l.IconButton,{"aria-controls":"sidemenu","data-testid":"sidemenu-btn","aria-expanded":p,title:E,color:"default",className:`${a.default["menu-button"]} ${f?a.default["menu--collapsed"]:""}`,onClick:()=>null==g?void 0:g(!p)},p?e.createElement(t.Icon,{icon:t.Icons.Times}):e.createElement(t.Icon,{icon:t.Icons.Hamburger})),e.createElement("div",{className:a.default["left-section"]},c??e.createElement("a",{href:s,className:a.default["logo-link"]},e.createElement("div",{className:a.default["logo-container"]},e.createElement("span",{className:a.default["logo-small"]},o),e.createElement("span",{className:a.default.logo},n)),e.createElement("span",{className:a.default["sr-only"]},r))),m&&e.createElement("hr",{"aria-hidden":"true",className:a.default.separator,"data-testid":`${N}-separator`}),d&&e.createElement("div",{className:a.default["middle-section"]},d),e.createElement("div",{className:a.default["right-section"]},i));
2
+ //# sourceMappingURL=TopNavBar.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopNavBar.cjs.js","sources":["../../../../../src/components/admin/layout/TopNavBar/TopNavBar.tsx"],"sourcesContent":["import React, { ReactNode } from \"react\";\nimport classes from \"./TopNavBar.module.scss\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\nimport { IconButton } from \"../../../Button/IconButton\";\n\nexport interface TopNavBarProps {\n logo?: ReactNode;\n logoSmall?: ReactNode;\n homeHref?: string;\n homeLabel?: string;\n homeComponent?: ReactNode;\n middleComponent?: ReactNode;\n rightComponent?: ReactNode;\n showSeparator?: boolean;\n isBurgerDisabled?: boolean;\n isSideMenuOpen?: boolean;\n isSideMenuCollapsed?: boolean;\n onSideMenuOpen?: (open: boolean) => void;\n burgerMenuLabel?: string;\n \"data-testid\"?: string;\n}\n\nexport const TopNavBar = ({\n logo,\n logoSmall,\n homeHref = \"/\",\n homeLabel = \"Home\",\n homeComponent,\n middleComponent,\n rightComponent,\n showSeparator = false,\n isBurgerDisabled = false,\n isSideMenuOpen = false,\n isSideMenuCollapsed = false,\n onSideMenuOpen,\n burgerMenuLabel = \"Toggle side menu\",\n \"data-testid\": testId = \"topnavbar\"\n}: TopNavBarProps) => {\n return (\n <nav className={classes[\"topnavbar\"]} data-testid={testId}>\n {!isBurgerDisabled && (\n <IconButton\n aria-controls=\"sidemenu\"\n data-testid=\"sidemenu-btn\"\n aria-expanded={isSideMenuOpen}\n title={burgerMenuLabel}\n color=\"default\"\n className={`${classes[\"menu-button\"]} ${isSideMenuCollapsed ? classes[\"menu--collapsed\"] : \"\"}`}\n onClick={() => onSideMenuOpen?.(!isSideMenuOpen)}\n >\n {isSideMenuOpen ? <Icon icon={Icons.Times} /> : <Icon icon={Icons.Hamburger} />}\n </IconButton>\n )}\n\n <div className={classes[\"left-section\"]}>\n {homeComponent ?? (\n <a href={homeHref} className={classes[\"logo-link\"]}>\n <div className={classes[\"logo-container\"]}>\n <span className={classes[\"logo-small\"]}>{logoSmall}</span>\n <span className={classes[\"logo\"]}>{logo}</span>\n </div>\n <span className={classes[\"sr-only\"]}>{homeLabel}</span>\n </a>\n )}\n </div>\n\n {showSeparator && (\n <hr\n aria-hidden=\"true\"\n className={classes[\"separator\"]}\n data-testid={`${testId}-separator`}\n />\n )}\n\n {middleComponent && <div className={classes[\"middle-section\"]}>{middleComponent}</div>}\n\n <div className={classes[\"right-section\"]}>{rightComponent}</div>\n </nav>\n );\n};\n"],"names":["logo","logoSmall","homeHref","homeLabel","homeComponent","middleComponent","rightComponent","showSeparator","isBurgerDisabled","isSideMenuOpen","isSideMenuCollapsed","onSideMenuOpen","burgerMenuLabel","testId","React","createElement","className","classes","IconButton","title","color","onClick","Icon","icon","Icons","Times","Hamburger","href"],"mappings":"6PAsByB,EACvBA,OACAC,YACAC,WAAW,IACXC,YAAY,OACZC,gBACAC,kBACAC,iBACAC,iBAAgB,EAChBC,oBAAmB,EACnBC,kBAAiB,EACjBC,uBAAsB,EACtBC,iBACAC,kBAAkB,mBAClB,cAAeC,EAAS,eAGtBC,EAAAC,cAAC,OAAIC,UAAWC,EAAAA,QAAmB,UAAG,cAAaJ,IAC/CL,GACAM,EAAAC,cAACG,EAAAA,WAAA,CACC,gBAAc,WACd,cAAY,eACZ,gBAAeT,EACfU,MAAOP,EACPQ,MAAM,UACNJ,UAAW,GAAGC,UAAQ,kBAAkBP,EAAsBO,UAAQ,mBAAqB,KAC3FI,QAAS,IAAM,MAAAV,OAAA,EAAAA,GAAkBF,IAEhCA,IAAiBM,cAACO,EAAAA,KAAA,CAAKC,KAAMC,EAAAA,MAAMC,QAAYX,EAAAC,cAACO,EAAAA,KAAA,CAAKC,KAAMC,EAAAA,MAAME,6BAIrE,MAAA,CAAIV,UAAWC,EAAAA,QAAQ,iBACrBb,GACCU,EAAAC,cAAC,IAAA,CAAEY,KAAMzB,EAAUc,UAAWC,EAAAA,QAAQ,gBACpCF,cAAC,OAAIC,UAAWC,EAAAA,QAAQ,qBACtBF,cAAC,OAAA,CAAKC,UAAWC,EAAAA,QAAQ,eAAgBhB,mBACxC,OAAA,CAAKe,UAAWC,EAAAA,QAAc,MAAIjB,IAErCc,EAAAC,cAAC,OAAA,CAAKC,UAAWC,EAAAA,QAAQ,YAAad,KAK3CI,GACCO,EAAAC,cAAC,KAAA,CACC,cAAY,OACZC,UAAWC,EAAAA,QAAmB,UAC9B,cAAa,GAAGJ,gBAInBR,GAAmBS,EAAAC,cAAC,MAAA,CAAIC,UAAWC,EAAAA,QAAQ,mBAAoBZ,mBAE/D,MAAA,CAAIW,UAAWC,EAAAA,QAAQ,kBAAmBX"}
@@ -0,0 +1,45 @@
1
+ import React from "react";
2
+ import classes from "./TopNavBar.module.scss.es.js";
3
+ import { Icon, Icons } from "../../../Icon/Icon.es.js";
4
+ import { IconButton } from "../../../Button/IconButton.es.js";
5
+ const TopNavBar = ({
6
+ logo,
7
+ logoSmall,
8
+ homeHref = "/",
9
+ homeLabel = "Home",
10
+ homeComponent,
11
+ middleComponent,
12
+ rightComponent,
13
+ showSeparator = false,
14
+ isBurgerDisabled = false,
15
+ isSideMenuOpen = false,
16
+ isSideMenuCollapsed = false,
17
+ onSideMenuOpen,
18
+ burgerMenuLabel = "Toggle side menu",
19
+ "data-testid": testId = "topnavbar"
20
+ }) => {
21
+ return /* @__PURE__ */ React.createElement("nav", { className: classes["topnavbar"], "data-testid": testId }, !isBurgerDisabled && /* @__PURE__ */ React.createElement(
22
+ IconButton,
23
+ {
24
+ "aria-controls": "sidemenu",
25
+ "data-testid": "sidemenu-btn",
26
+ "aria-expanded": isSideMenuOpen,
27
+ title: burgerMenuLabel,
28
+ color: "default",
29
+ className: `${classes["menu-button"]} ${isSideMenuCollapsed ? classes["menu--collapsed"] : ""}`,
30
+ onClick: () => onSideMenuOpen == null ? void 0 : onSideMenuOpen(!isSideMenuOpen)
31
+ },
32
+ isSideMenuOpen ? /* @__PURE__ */ React.createElement(Icon, { icon: Icons.Times }) : /* @__PURE__ */ React.createElement(Icon, { icon: Icons.Hamburger })
33
+ ), /* @__PURE__ */ React.createElement("div", { className: classes["left-section"] }, homeComponent ?? /* @__PURE__ */ React.createElement("a", { href: homeHref, className: classes["logo-link"] }, /* @__PURE__ */ React.createElement("div", { className: classes["logo-container"] }, /* @__PURE__ */ React.createElement("span", { className: classes["logo-small"] }, logoSmall), /* @__PURE__ */ React.createElement("span", { className: classes["logo"] }, logo)), /* @__PURE__ */ React.createElement("span", { className: classes["sr-only"] }, homeLabel))), showSeparator && /* @__PURE__ */ React.createElement(
34
+ "hr",
35
+ {
36
+ "aria-hidden": "true",
37
+ className: classes["separator"],
38
+ "data-testid": `${testId}-separator`
39
+ }
40
+ ), middleComponent && /* @__PURE__ */ React.createElement("div", { className: classes["middle-section"] }, middleComponent), /* @__PURE__ */ React.createElement("div", { className: classes["right-section"] }, rightComponent));
41
+ };
42
+ export {
43
+ TopNavBar
44
+ };
45
+ //# sourceMappingURL=TopNavBar.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopNavBar.es.js","sources":["../../../../../src/components/admin/layout/TopNavBar/TopNavBar.tsx"],"sourcesContent":["import React, { ReactNode } from \"react\";\nimport classes from \"./TopNavBar.module.scss\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\nimport { IconButton } from \"../../../Button/IconButton\";\n\nexport interface TopNavBarProps {\n logo?: ReactNode;\n logoSmall?: ReactNode;\n homeHref?: string;\n homeLabel?: string;\n homeComponent?: ReactNode;\n middleComponent?: ReactNode;\n rightComponent?: ReactNode;\n showSeparator?: boolean;\n isBurgerDisabled?: boolean;\n isSideMenuOpen?: boolean;\n isSideMenuCollapsed?: boolean;\n onSideMenuOpen?: (open: boolean) => void;\n burgerMenuLabel?: string;\n \"data-testid\"?: string;\n}\n\nexport const TopNavBar = ({\n logo,\n logoSmall,\n homeHref = \"/\",\n homeLabel = \"Home\",\n homeComponent,\n middleComponent,\n rightComponent,\n showSeparator = false,\n isBurgerDisabled = false,\n isSideMenuOpen = false,\n isSideMenuCollapsed = false,\n onSideMenuOpen,\n burgerMenuLabel = \"Toggle side menu\",\n \"data-testid\": testId = \"topnavbar\"\n}: TopNavBarProps) => {\n return (\n <nav className={classes[\"topnavbar\"]} data-testid={testId}>\n {!isBurgerDisabled && (\n <IconButton\n aria-controls=\"sidemenu\"\n data-testid=\"sidemenu-btn\"\n aria-expanded={isSideMenuOpen}\n title={burgerMenuLabel}\n color=\"default\"\n className={`${classes[\"menu-button\"]} ${isSideMenuCollapsed ? classes[\"menu--collapsed\"] : \"\"}`}\n onClick={() => onSideMenuOpen?.(!isSideMenuOpen)}\n >\n {isSideMenuOpen ? <Icon icon={Icons.Times} /> : <Icon icon={Icons.Hamburger} />}\n </IconButton>\n )}\n\n <div className={classes[\"left-section\"]}>\n {homeComponent ?? (\n <a href={homeHref} className={classes[\"logo-link\"]}>\n <div className={classes[\"logo-container\"]}>\n <span className={classes[\"logo-small\"]}>{logoSmall}</span>\n <span className={classes[\"logo\"]}>{logo}</span>\n </div>\n <span className={classes[\"sr-only\"]}>{homeLabel}</span>\n </a>\n )}\n </div>\n\n {showSeparator && (\n <hr\n aria-hidden=\"true\"\n className={classes[\"separator\"]}\n data-testid={`${testId}-separator`}\n />\n )}\n\n {middleComponent && <div className={classes[\"middle-section\"]}>{middleComponent}</div>}\n\n <div className={classes[\"right-section\"]}>{rightComponent}</div>\n </nav>\n );\n};\n"],"names":[],"mappings":";;;;AAsBO,MAAM,YAAY,CAAC;AAAA,EACxB;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,sBAAsB;AAAA,EACtB;AAAA,EACA,kBAAkB;AAAA,EAClB,eAAe,SAAS;AAC1B,MAAsB;AACpB,SACE,sBAAA,cAAC,SAAI,WAAW,QAAQ,WAAW,GAAG,eAAa,OAAA,GAChD,CAAC,oBACA,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,iBAAc;AAAA,MACd,eAAY;AAAA,MACZ,iBAAe;AAAA,MACf,OAAO;AAAA,MACP,OAAM;AAAA,MACN,WAAW,GAAG,QAAQ,aAAa,CAAC,IAAI,sBAAsB,QAAQ,iBAAiB,IAAI,EAAE;AAAA,MAC7F,SAAS,MAAM,iDAAiB,CAAC;AAAA,IAAc;AAAA,IAE9C,iBAAiB,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,MAAA,CAAO,IAAK,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,UAAA,CAAW;AAAA,EAAA,uCAIhF,OAAA,EAAI,WAAW,QAAQ,cAAc,EAAA,GACnC,iBACC,sBAAA,cAAC,KAAA,EAAE,MAAM,UAAU,WAAW,QAAQ,WAAW,EAAA,GAC/C,sBAAA,cAAC,SAAI,WAAW,QAAQ,gBAAgB,EAAA,GACtC,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,YAAY,KAAI,SAAU,uCAClD,QAAA,EAAK,WAAW,QAAQ,MAAM,EAAA,GAAI,IAAK,CAC1C,GACA,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,SAAS,KAAI,SAAU,CAClD,CAEJ,GAEC,iBACC,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAY;AAAA,MACZ,WAAW,QAAQ,WAAW;AAAA,MAC9B,eAAa,GAAG,MAAM;AAAA,IAAA;AAAA,EAAA,GAIzB,mBAAmB,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,gBAAgB,KAAI,eAAgB,uCAE/E,OAAA,EAAI,WAAW,QAAQ,eAAe,KAAI,cAAe,CAC5D;AAEJ;"}
@@ -0,0 +1,3 @@
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.TopNavBar_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TopNavBar_hidden_jyx43{display:none}.TopNavBar_slide-in_jyx43{animation:TopNavBar_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-in_jyx43{animation-duration:.1ms}}.TopNavBar_slide-out_jyx43{animation:TopNavBar_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-out_jyx43{animation-duration:.1ms}}@keyframes TopNavBar_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TopNavBar_slide-out_jyx43{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.TopNavBar_topnavbar_jyx43{position:sticky;top:0;left:0;z-index:3;width:100%;display:flex;align-items:center;height:4rem;padding:0 .75rem 0 0;background-color:var(--sidenavbar-background);box-shadow:0 2px 4px #0105320a,0 4px 5px #0105320a,0 1px 10px #01053214;--font-size: .875rem;flex-wrap:nowrap}.TopNavBar_topnavbar_jyx43 .TopNavBar_left-section_jyx43{flex-shrink:0;display:flex;align-items:center}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-link_jyx43{display:flex;align-items:center;text-decoration:none}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43{display:flex;align-items:center}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo-small_jyx43{height:2.5rem;display:flex;align-items:center;margin:0 1rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo_jyx43{display:none}@media screen and (min-width:30em){.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo-small_jyx43{display:none;height:0}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo_jyx43{display:block;margin-left:1rem}}@media screen and (min-width:30em)and (min-width:50em){.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo_jyx43{margin-left:.75rem;margin-right:0}}.TopNavBar_topnavbar_jyx43 .TopNavBar_sr-only_jyx43{position:absolute;margin:-1px;height:1px;width:1px;overflow:hidden}.TopNavBar_topnavbar_jyx43 .TopNavBar_separator_jyx43{border:none;width:1px;height:2.5rem;background-color:#dedee6;flex-shrink:0;align-self:center;margin:0 3rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_middle-section_jyx43{flex:1;display:flex;align-items:center;min-width:0;margin-left:6.0625rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_separator_jyx43+.TopNavBar_middle-section_jyx43{margin-left:0}.TopNavBar_topnavbar_jyx43 .TopNavBar_right-section_jyx43{display:flex;align-items:center;margin-left:auto;justify-content:flex-end;gap:1rem;padding-left:1rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_menu-button_jyx43{flex-shrink:0;margin-left:.75rem;display:none;--font-size: 1rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_jyx43 .TopNavBar_menu-button_jyx43{display:initial}}.TopNavBar_topnavbar_jyx43 .TopNavBar_menu-button_jyx43.TopNavBar_menu--collapsed_jyx43{display:initial}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="TopNavBar_topnavbar_jyx43",a="TopNavBar_logo_jyx43",e="TopNavBar_separator_jyx43",r={"sr-only":"TopNavBar_sr-only_jyx43",topnavbar:o,"left-section":"TopNavBar_left-section_jyx43","logo-link":"TopNavBar_logo-link_jyx43","logo-container":"TopNavBar_logo-container_jyx43","logo-small":"TopNavBar_logo-small_jyx43",logo:a,separator:e,"middle-section":"TopNavBar_middle-section_jyx43","right-section":"TopNavBar_right-section_jyx43","menu-button":"TopNavBar_menu-button_jyx43","menu--collapsed":"TopNavBar_menu--collapsed_jyx43"};exports.default=r,exports.logo=a,exports.separator=e,exports.topnavbar=o;
3
+ //# sourceMappingURL=TopNavBar.module.scss.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopNavBar.module.scss.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.TopNavBar_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TopNavBar_hidden_jyx43{display:none}.TopNavBar_slide-in_jyx43{animation:TopNavBar_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-in_jyx43{animation-duration:.1ms}}.TopNavBar_slide-out_jyx43{animation:TopNavBar_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-out_jyx43{animation-duration:.1ms}}@keyframes TopNavBar_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TopNavBar_slide-out_jyx43{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.TopNavBar_topnavbar_jyx43{position:sticky;top:0;left:0;z-index:3;width:100%;display:flex;align-items:center;height:4rem;padding:0 .75rem 0 0;background-color:var(--sidenavbar-background);box-shadow:0 2px 4px #0105320a,0 4px 5px #0105320a,0 1px 10px #01053214;--font-size: .875rem;flex-wrap:nowrap}.TopNavBar_topnavbar_jyx43 .TopNavBar_left-section_jyx43{flex-shrink:0;display:flex;align-items:center}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-link_jyx43{display:flex;align-items:center;text-decoration:none}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43{display:flex;align-items:center}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo-small_jyx43{height:2.5rem;display:flex;align-items:center;margin:0 1rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo_jyx43{display:none}@media screen and (min-width:30em){.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo-small_jyx43{display:none;height:0}.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo_jyx43{display:block;margin-left:1rem}}@media screen and (min-width:30em)and (min-width:50em){.TopNavBar_topnavbar_jyx43 .TopNavBar_logo-container_jyx43 .TopNavBar_logo_jyx43{margin-left:.75rem;margin-right:0}}.TopNavBar_topnavbar_jyx43 .TopNavBar_sr-only_jyx43{position:absolute;margin:-1px;height:1px;width:1px;overflow:hidden}.TopNavBar_topnavbar_jyx43 .TopNavBar_separator_jyx43{border:none;width:1px;height:2.5rem;background-color:#dedee6;flex-shrink:0;align-self:center;margin:0 3rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_middle-section_jyx43{flex:1;display:flex;align-items:center;min-width:0;margin-left:6.0625rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_separator_jyx43+.TopNavBar_middle-section_jyx43{margin-left:0}.TopNavBar_topnavbar_jyx43 .TopNavBar_right-section_jyx43{display:flex;align-items:center;margin-left:auto;justify-content:flex-end;gap:1rem;padding-left:1rem}.TopNavBar_topnavbar_jyx43 .TopNavBar_menu-button_jyx43{flex-shrink:0;margin-left:.75rem;display:none;--font-size: 1rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_jyx43 .TopNavBar_menu-button_jyx43{display:initial}}.TopNavBar_topnavbar_jyx43 .TopNavBar_menu-button_jyx43.TopNavBar_menu--collapsed_jyx43{display:initial}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
+ const topnavbar = "TopNavBar_topnavbar_jyx43";
3
+ const logo = "TopNavBar_logo_jyx43";
4
+ const separator = "TopNavBar_separator_jyx43";
5
+ const classes = {
6
+ "sr-only": "TopNavBar_sr-only_jyx43",
7
+ topnavbar,
8
+ "left-section": "TopNavBar_left-section_jyx43",
9
+ "logo-link": "TopNavBar_logo-link_jyx43",
10
+ "logo-container": "TopNavBar_logo-container_jyx43",
11
+ "logo-small": "TopNavBar_logo-small_jyx43",
12
+ logo,
13
+ separator,
14
+ "middle-section": "TopNavBar_middle-section_jyx43",
15
+ "right-section": "TopNavBar_right-section_jyx43",
16
+ "menu-button": "TopNavBar_menu-button_jyx43",
17
+ "menu--collapsed": "TopNavBar_menu--collapsed_jyx43"
18
+ };
19
+ export {
20
+ classes as default,
21
+ logo,
22
+ separator,
23
+ topnavbar
24
+ };
25
+ //# sourceMappingURL=TopNavBar.module.scss.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopNavBar.module.scss.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"IdentityProviderButton.cjs.js","sources":["../../../src/components/miscellaneous/IdentityProviderButton.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, { ComponentPropsWithRef, CSSProperties, ForwardRefRenderFunction } from \"react\";\nimport classes from \"./IdentityProviderButton.module.scss\";\nimport { Button } from \"../Button/Button\";\n\nexport interface SupportedCustomizationKeys {\n backgroundColor: string;\n focusBorderColor: string;\n focusBackgroundColor: string;\n hoverBackgroundColor: string;\n pressedBackgroundColor: string;\n textColor: string;\n borderColor: string;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"button\">, \"color\"> {\n iconUrl?: string;\n imgAltText?: string;\n idpType: string;\n customization?: SupportedCustomizationKeys;\n loading?: boolean;\n}\n\nexport const IdentityProviderButton: ForwardRefRenderFunction<HTMLButtonElement, Props> = ({\n children,\n iconUrl,\n imgAltText,\n idpType,\n customization,\n loading,\n ...rest\n}) => {\n const DEFAULT_BACKGROUND_COLOR = \"#FFFFFF\";\n const DEFAULT_BORDER_COLOR = \"#000000\";\n const DEFAULT_TEXT_COLOR = \"#000000\";\n const DEFAULT_FOCUS_OUTLINE_COLOR = \"var(--color-black50)\";\n const DEFAULT_HOVER_COLOR = \"var(--color-black10)\";\n const DEFAULT_PRESSED_COLOR = \"var(--color-black20)\";\n\n const generateCSSProperties = () => {\n return {\n \"--button-fill-primary-default-color\":\n customization?.backgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n borderColor: customization?.borderColor ?? DEFAULT_BORDER_COLOR,\n \"--button-fill-text-color\": customization?.textColor ?? DEFAULT_TEXT_COLOR,\n \"--color-focus\": customization?.focusBorderColor ?? DEFAULT_FOCUS_OUTLINE_COLOR,\n \"--button-fill-primary-focused-color\":\n customization?.focusBackgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n \"--button-fill-primary-hover-color\":\n customization?.hoverBackgroundColor ?? DEFAULT_HOVER_COLOR,\n \"--button-fill-primary-pressed-color\":\n customization?.pressedBackgroundColor ?? DEFAULT_PRESSED_COLOR\n } as CSSProperties;\n };\n\n return (\n <Button\n style={generateCSSProperties()}\n color=\"primary\"\n variant=\"fill\"\n className={classes[\"idp-button\"]}\n loading={loading}\n {...rest}\n >\n <span className={classes[\"idp-button--with-icon\"]}>\n <img\n height={24}\n width={24}\n aria-hidden={!imgAltText}\n src={iconUrl || `/ui-resources-static/common/idb/icons/${idpType}.svg`}\n alt={imgAltText || \"Identity Provider icon\"}\n />\n {children}\n </span>\n </Button>\n );\n};\n"],"names":["children","iconUrl","imgAltText","idpType","customization","loading","rest","DEFAULT_BACKGROUND_COLOR","React","createElement","Button","style","backgroundColor","borderColor","textColor","focusBorderColor","focusBackgroundColor","hoverBackgroundColor","pressedBackgroundColor","color","variant","className","classes","height","width","src","alt"],"mappings":"sOAsC0F,EACxFA,WACAC,UACAC,aACAC,UACAC,gBACAC,aACGC,MAEH,MAAMC,EAA2B,UAwB/B,OAAAC,EAAAC,cAACC,EAAAA,OAAA,CACCC,MAjBK,CACL,6CACEP,WAAeQ,kBAAmBL,EACpCM,mBAAaT,WAAeS,cAVH,UAWzB,kCAA4BT,WAAeU,YAVpB,UAWvB,uBAAiBV,WAAeW,mBAVA,uBAWhC,6CACEX,WAAeY,uBAAwBT,EACzC,2CACEH,WAAea,uBAbO,uBAcxB,6CACEb,WAAec,yBAdS,wBAqB1BC,MAAM,UACNC,QAAQ,OACRC,UAAWC,UAAQ,cACnBjB,aACIC,GAEHE,EAAAC,cAAA,OAAA,CAAKY,UAAWC,EAAAA,QAAQ,0BACvBd,EAAAC,cAAC,MAAA,CACCc,OAAQ,GACRC,MAAO,GACP,eAActB,EACduB,IAAKxB,GAAW,yCAAyCE,QACzDuB,IAAKxB,GAAc,2BAEpBF,GAEL"}
1
+ {"version":3,"file":"IdentityProviderButton.cjs.js","sources":["../../../src/components/miscellaneous/IdentityProviderButton.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, { ComponentPropsWithRef, CSSProperties, ForwardRefRenderFunction } from \"react\";\nimport classes from \"./IdentityProviderButton.module.scss\";\nimport { Button } from \"../Button/Button\";\n\nexport interface SupportedCustomizationKeys {\n backgroundColor: string;\n focusBorderColor: string;\n focusBackgroundColor: string;\n hoverBackgroundColor: string;\n pressedBackgroundColor: string;\n textColor: string;\n borderColor: string;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"button\">, \"color\"> {\n iconUrl?: string;\n imgAltText?: string;\n idpType: string;\n customization?: SupportedCustomizationKeys;\n loading?: boolean;\n}\n\nexport const IdentityProviderButton: ForwardRefRenderFunction<HTMLButtonElement, Props> = ({\n children,\n iconUrl,\n imgAltText,\n idpType,\n customization,\n loading,\n ...rest\n}) => {\n const DEFAULT_BACKGROUND_COLOR = \"#FFFFFF\";\n const DEFAULT_BORDER_COLOR = \"#000000\";\n const DEFAULT_TEXT_COLOR = \"#000000\";\n const DEFAULT_FOCUS_OUTLINE_COLOR = \"var(--color-black50)\";\n const DEFAULT_HOVER_COLOR = \"var(--color-black10)\";\n const DEFAULT_PRESSED_COLOR = \"var(--color-black20)\";\n\n const generateCSSProperties = () => {\n return {\n \"--button-fill-primary-default-color\":\n customization?.backgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n borderColor: customization?.borderColor ?? DEFAULT_BORDER_COLOR,\n \"--button-fill-text-color\": customization?.textColor ?? DEFAULT_TEXT_COLOR,\n \"--color-focus\": customization?.focusBorderColor ?? DEFAULT_FOCUS_OUTLINE_COLOR,\n \"--button-fill-primary-focused-color\":\n customization?.focusBackgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n \"--button-fill-primary-hover-color\":\n customization?.hoverBackgroundColor ?? DEFAULT_HOVER_COLOR,\n \"--button-fill-primary-pressed-color\":\n customization?.pressedBackgroundColor ?? DEFAULT_PRESSED_COLOR\n } as CSSProperties;\n };\n\n return (\n <Button\n style={generateCSSProperties()}\n color=\"primary\"\n variant=\"fill\"\n className={classes[\"idp-button\"]}\n loading={loading}\n {...rest}\n >\n <span className={classes[\"idp-button--with-icon\"]}>\n <img\n height={24}\n width={24}\n aria-hidden={!imgAltText}\n src={iconUrl || `/ui-resources-static/common/idb/icons/${idpType}.svg`}\n alt={imgAltText || \"Identity Provider icon\"}\n />\n {children}\n </span>\n </Button>\n );\n};\n"],"names":["children","iconUrl","imgAltText","idpType","customization","loading","rest","DEFAULT_BACKGROUND_COLOR","React","createElement","Button","style","backgroundColor","borderColor","textColor","focusBorderColor","focusBackgroundColor","hoverBackgroundColor","pressedBackgroundColor","color","variant","className","classes","height","width","src","alt"],"mappings":"sOAsC0F,EACxFA,WACAC,UACAC,aACAC,UACAC,gBACAC,aACGC,MAEH,MAAMC,EAA2B,UAuBjC,OACEC,EAAAC,cAACC,EAAAA,OAAA,CACCC,MAjBK,CACL,6CACEP,WAAeQ,kBAAmBL,EACpCM,mBAAaT,WAAeS,cAVH,UAWzB,kCAA4BT,WAAeU,YAVpB,UAWvB,uBAAiBV,WAAeW,mBAVA,uBAWhC,6CACEX,WAAeY,uBAAwBT,EACzC,2CACEH,WAAea,uBAbO,uBAcxB,6CACEb,WAAec,yBAdS,wBAqB1BC,MAAM,UACNC,QAAQ,OACRC,UAAWC,EAAAA,QAAQ,cACnBjB,aACIC,GAEJE,EAAAC,cAAC,OAAA,CAAKY,UAAWC,EAAAA,QAAQ,0BACvBd,EAAAC,cAAC,MAAA,CACCc,OAAQ,GACRC,MAAO,GACP,eAActB,EACduB,IAAKxB,GAAW,yCAAyCE,QACzDuB,IAAKxB,GAAc,2BAEpBF"}
@@ -1 +1 @@
1
- {"version":3,"file":"IdentityProviderButton.es.js","sources":["../../../src/components/miscellaneous/IdentityProviderButton.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, { ComponentPropsWithRef, CSSProperties, ForwardRefRenderFunction } from \"react\";\nimport classes from \"./IdentityProviderButton.module.scss\";\nimport { Button } from \"../Button/Button\";\n\nexport interface SupportedCustomizationKeys {\n backgroundColor: string;\n focusBorderColor: string;\n focusBackgroundColor: string;\n hoverBackgroundColor: string;\n pressedBackgroundColor: string;\n textColor: string;\n borderColor: string;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"button\">, \"color\"> {\n iconUrl?: string;\n imgAltText?: string;\n idpType: string;\n customization?: SupportedCustomizationKeys;\n loading?: boolean;\n}\n\nexport const IdentityProviderButton: ForwardRefRenderFunction<HTMLButtonElement, Props> = ({\n children,\n iconUrl,\n imgAltText,\n idpType,\n customization,\n loading,\n ...rest\n}) => {\n const DEFAULT_BACKGROUND_COLOR = \"#FFFFFF\";\n const DEFAULT_BORDER_COLOR = \"#000000\";\n const DEFAULT_TEXT_COLOR = \"#000000\";\n const DEFAULT_FOCUS_OUTLINE_COLOR = \"var(--color-black50)\";\n const DEFAULT_HOVER_COLOR = \"var(--color-black10)\";\n const DEFAULT_PRESSED_COLOR = \"var(--color-black20)\";\n\n const generateCSSProperties = () => {\n return {\n \"--button-fill-primary-default-color\":\n customization?.backgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n borderColor: customization?.borderColor ?? DEFAULT_BORDER_COLOR,\n \"--button-fill-text-color\": customization?.textColor ?? DEFAULT_TEXT_COLOR,\n \"--color-focus\": customization?.focusBorderColor ?? DEFAULT_FOCUS_OUTLINE_COLOR,\n \"--button-fill-primary-focused-color\":\n customization?.focusBackgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n \"--button-fill-primary-hover-color\":\n customization?.hoverBackgroundColor ?? DEFAULT_HOVER_COLOR,\n \"--button-fill-primary-pressed-color\":\n customization?.pressedBackgroundColor ?? DEFAULT_PRESSED_COLOR\n } as CSSProperties;\n };\n\n return (\n <Button\n style={generateCSSProperties()}\n color=\"primary\"\n variant=\"fill\"\n className={classes[\"idp-button\"]}\n loading={loading}\n {...rest}\n >\n <span className={classes[\"idp-button--with-icon\"]}>\n <img\n height={24}\n width={24}\n aria-hidden={!imgAltText}\n src={iconUrl || `/ui-resources-static/common/idb/icons/${idpType}.svg`}\n alt={imgAltText || \"Identity Provider icon\"}\n />\n {children}\n </span>\n </Button>\n );\n};\n"],"names":[],"mappings":";;;AAsCO,MAAM,yBAA6E,CAAC;AAAA,EACzF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,2BAA2B;AACjC,QAAM,uBAAuB;AAC7B,QAAM,qBAAqB;AAC3B,QAAM,8BAA8B;AACpC,QAAM,sBAAsB;AAC5B,QAAM,wBAAwB;AAE9B,QAAM,wBAAwB,MAAM;AAC3B,WAAA;AAAA,MACL,wCACE,+CAAe,oBAAmB;AAAA,MACpC,cAAa,+CAAe,gBAAe;AAAA,MAC3C,6BAA4B,+CAAe,cAAa;AAAA,MACxD,kBAAiB,+CAAe,qBAAoB;AAAA,MACpD,wCACE,+CAAe,yBAAwB;AAAA,MACzC,sCACE,+CAAe,yBAAwB;AAAA,MACzC,wCACE,+CAAe,2BAA0B;AAAA,IAC7C;AAAA,EACF;AAGE,SAAA,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO,sBAAsB;AAAA,MAC7B,OAAM;AAAA,MACN,SAAQ;AAAA,MACR,WAAW,QAAQ,YAAY;AAAA,MAC/B;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,IAEH,sBAAA,cAAA,QAAA,EAAK,WAAW,QAAQ,uBAAuB,KAC9C,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,eAAa,CAAC;AAAA,QACd,KAAK,WAAW,yCAAyC,OAAO;AAAA,QAChE,KAAK,cAAc;AAAA,MAAA;AAAA,IAAA,GAEpB,QACH;AAAA,EACF;AAEJ;"}
1
+ {"version":3,"file":"IdentityProviderButton.es.js","sources":["../../../src/components/miscellaneous/IdentityProviderButton.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, { ComponentPropsWithRef, CSSProperties, ForwardRefRenderFunction } from \"react\";\nimport classes from \"./IdentityProviderButton.module.scss\";\nimport { Button } from \"../Button/Button\";\n\nexport interface SupportedCustomizationKeys {\n backgroundColor: string;\n focusBorderColor: string;\n focusBackgroundColor: string;\n hoverBackgroundColor: string;\n pressedBackgroundColor: string;\n textColor: string;\n borderColor: string;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"button\">, \"color\"> {\n iconUrl?: string;\n imgAltText?: string;\n idpType: string;\n customization?: SupportedCustomizationKeys;\n loading?: boolean;\n}\n\nexport const IdentityProviderButton: ForwardRefRenderFunction<HTMLButtonElement, Props> = ({\n children,\n iconUrl,\n imgAltText,\n idpType,\n customization,\n loading,\n ...rest\n}) => {\n const DEFAULT_BACKGROUND_COLOR = \"#FFFFFF\";\n const DEFAULT_BORDER_COLOR = \"#000000\";\n const DEFAULT_TEXT_COLOR = \"#000000\";\n const DEFAULT_FOCUS_OUTLINE_COLOR = \"var(--color-black50)\";\n const DEFAULT_HOVER_COLOR = \"var(--color-black10)\";\n const DEFAULT_PRESSED_COLOR = \"var(--color-black20)\";\n\n const generateCSSProperties = () => {\n return {\n \"--button-fill-primary-default-color\":\n customization?.backgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n borderColor: customization?.borderColor ?? DEFAULT_BORDER_COLOR,\n \"--button-fill-text-color\": customization?.textColor ?? DEFAULT_TEXT_COLOR,\n \"--color-focus\": customization?.focusBorderColor ?? DEFAULT_FOCUS_OUTLINE_COLOR,\n \"--button-fill-primary-focused-color\":\n customization?.focusBackgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n \"--button-fill-primary-hover-color\":\n customization?.hoverBackgroundColor ?? DEFAULT_HOVER_COLOR,\n \"--button-fill-primary-pressed-color\":\n customization?.pressedBackgroundColor ?? DEFAULT_PRESSED_COLOR\n } as CSSProperties;\n };\n\n return (\n <Button\n style={generateCSSProperties()}\n color=\"primary\"\n variant=\"fill\"\n className={classes[\"idp-button\"]}\n loading={loading}\n {...rest}\n >\n <span className={classes[\"idp-button--with-icon\"]}>\n <img\n height={24}\n width={24}\n aria-hidden={!imgAltText}\n src={iconUrl || `/ui-resources-static/common/idb/icons/${idpType}.svg`}\n alt={imgAltText || \"Identity Provider icon\"}\n />\n {children}\n </span>\n </Button>\n );\n};\n"],"names":[],"mappings":";;;AAsCO,MAAM,yBAA6E,CAAC;AAAA,EACzF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,2BAA2B;AACjC,QAAM,uBAAuB;AAC7B,QAAM,qBAAqB;AAC3B,QAAM,8BAA8B;AACpC,QAAM,sBAAsB;AAC5B,QAAM,wBAAwB;AAE9B,QAAM,wBAAwB,MAAM;AAClC,WAAO;AAAA,MACL,wCACE,+CAAe,oBAAmB;AAAA,MACpC,cAAa,+CAAe,gBAAe;AAAA,MAC3C,6BAA4B,+CAAe,cAAa;AAAA,MACxD,kBAAiB,+CAAe,qBAAoB;AAAA,MACpD,wCACE,+CAAe,yBAAwB;AAAA,MACzC,sCACE,+CAAe,yBAAwB;AAAA,MACzC,wCACE,+CAAe,2BAA0B;AAAA,IAAA;AAAA,EAE/C;AAEA,SACE,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO,sBAAA;AAAA,MACP,OAAM;AAAA,MACN,SAAQ;AAAA,MACR,WAAW,QAAQ,YAAY;AAAA,MAC/B;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,IAEJ,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,uBAAuB,KAC9C,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,eAAa,CAAC;AAAA,QACd,KAAK,WAAW,yCAAyC,OAAO;AAAA,QAChE,KAAK,cAAc;AAAA,MAAA;AAAA,IAAA,GAEpB,QACH;AAAA,EAAA;AAGN;"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-only_gFXfX{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.IdentityProviderButton_hidden_gFXfX{display:none}.IdentityProviderButton_slide-in_gFXfX{animation:IdentityProviderButton_slide-in_gFXfX .5s forwards}@media (prefers-reduced-motion: reduce){.IdentityProviderButton_slide-in_gFXfX{animation-duration:.1ms}}.IdentityProviderButton_slide-out_gFXfX{animation:IdentityProviderButton_slide-out_gFXfX .5s forwards}@media (prefers-reduced-motion: reduce){.IdentityProviderButton_slide-out_gFXfX{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_gFXfX{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_gFXfX{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.IdentityProviderButton_idp-button_gFXfX{width:100%}.IdentityProviderButton_idp-button--with-icon_gFXfX{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:-.125rem;margin-bottom:-.125rem}')),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={"idp-button":"IdentityProviderButton_idp-button_gFXfX","idp-button--with-icon":"IdentityProviderButton_idp-button--with-icon_gFXfX"};
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.IdentityProviderButton_hidden_jyx43{display:none}.IdentityProviderButton_slide-in_jyx43{animation:IdentityProviderButton_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-in_jyx43{animation-duration:.1ms}}.IdentityProviderButton_slide-out_jyx43{animation:IdentityProviderButton_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-out_jyx43{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_jyx43{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.IdentityProviderButton_idp-button_jyx43{width:100%}.IdentityProviderButton_idp-button--with-icon_jyx43{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:-.125rem;margin-bottom:-.125rem}')),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={"idp-button":"IdentityProviderButton_idp-button_jyx43","idp-button--with-icon":"IdentityProviderButton_idp-button--with-icon_jyx43"};
3
3
  //# sourceMappingURL=IdentityProviderButton.module.scss.cjs.js.map
@@ -1,7 +1,7 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-only_gFXfX{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.IdentityProviderButton_hidden_gFXfX{display:none}.IdentityProviderButton_slide-in_gFXfX{animation:IdentityProviderButton_slide-in_gFXfX .5s forwards}@media (prefers-reduced-motion: reduce){.IdentityProviderButton_slide-in_gFXfX{animation-duration:.1ms}}.IdentityProviderButton_slide-out_gFXfX{animation:IdentityProviderButton_slide-out_gFXfX .5s forwards}@media (prefers-reduced-motion: reduce){.IdentityProviderButton_slide-out_gFXfX{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_gFXfX{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_gFXfX{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.IdentityProviderButton_idp-button_gFXfX{width:100%}.IdentityProviderButton_idp-button--with-icon_gFXfX{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:-.125rem;margin-bottom:-.125rem}')),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('.IdentityProviderButton_sr-only_jyx43{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.IdentityProviderButton_hidden_jyx43{display:none}.IdentityProviderButton_slide-in_jyx43{animation:IdentityProviderButton_slide-in_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-in_jyx43{animation-duration:.1ms}}.IdentityProviderButton_slide-out_jyx43{animation:IdentityProviderButton_slide-out_jyx43 .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-out_jyx43{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_jyx43{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_jyx43{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.IdentityProviderButton_idp-button_jyx43{width:100%}.IdentityProviderButton_idp-button--with-icon_jyx43{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:-.125rem;margin-bottom:-.125rem}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
2
  const classes = {
3
- "idp-button": "IdentityProviderButton_idp-button_gFXfX",
4
- "idp-button--with-icon": "IdentityProviderButton_idp-button--with-icon_gFXfX"
3
+ "idp-button": "IdentityProviderButton_idp-button_jyx43",
4
+ "idp-button--with-icon": "IdentityProviderButton_idp-button--with-icon_jyx43"
5
5
  };
6
6
  export {
7
7
  classes as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=["CheckboxWrapper"],t=(e,r,t)=>{const n={};return e?(n.style={pointerEvents:"none",userSelect:"text"},t&&(n.helperText="")):t&&(n.helperText=t),r&&(n.type=r),n};exports.withReadOnly=(n,a)=>{const{isWrapperComponent:o}=a||{},p=e=>{const t=e=>{var r;("Enter"===(r=e).key||" "===r.key)&&(e.stopPropagation(),e.preventDefault())};if(e&&r.includes(n.displayName||n.name)){return{onKeyUp:e=>{t(e)},onKeyDown:e=>{t(e)}}}return{}},i=e.forwardRef(((r,a)=>{const{readOnlyView:i=!1,required:l,children:s,helperText:d,type:y="",...u}=r;return e.createElement(n,{ref:a,...u,"data-readonlyview":i,"aria-readonly":o?void 0:i,required:!i&&l,...t(i,y,d),...p(i)},s)}));return i.displayName=`withReadOnly_${(e=>e.displayName??e.name??"Component")(n)}`,i};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=["CheckboxWrapper"],t=(e,r,t)=>{const n={};return e?(n.style={pointerEvents:"none",userSelect:"text"},t&&(n.helperText="")):t&&(n.helperText=t),r&&(n.type=r),n};exports.withReadOnly=(n,a)=>{const{isWrapperComponent:o}=a||{},p=e=>{const t=e=>{var r;("Enter"===(r=e).key||" "===r.key)&&(e.stopPropagation(),e.preventDefault())};if(e&&r.includes(n.displayName||n.name)){return{onKeyUp:e=>{t(e)},onKeyDown:e=>{t(e)}}}return{}},i=e.forwardRef((r,a)=>{const{readOnlyView:i=!1,required:l,children:s,helperText:d,type:y="",...u}=r;return e.createElement(n,{ref:a,...u,"data-readonlyview":i,"aria-readonly":o?void 0:i,required:!i&&l,...t(i,y,d),...p(i)},s)});return i.displayName=`withReadOnly_${(e=>e.displayName??e.name??"Component")(n)}`,i};
2
2
  //# sourceMappingURL=withReadOnly.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"withReadOnly.cjs.js","sources":["../../src/components/withReadOnly.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentType, ForwardedRef, PropsWithChildren } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else if (helperText) {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\ntype WithReadOnlyOptions = {\n isWrapperComponent: boolean;\n};\n\nexport const withReadOnly = <P extends object>(\n WrappedComponent: ComponentType<P>,\n options?: WithReadOnlyOptions\n) => {\n const { isWrapperComponent } = options || {};\n\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (props: PropsWithChildren<P & WithReadOnlyProps>, ref: ForwardedRef<unknown>) => {\n const {\n readOnlyView = false,\n required,\n children,\n helperText,\n type = \"\",\n ...restProps\n } = props;\n\n return (\n <WrappedComponent\n ref={ref}\n {...(restProps as P)}\n data-readonlyview={readOnlyView}\n aria-readonly={isWrapperComponent ? undefined : readOnlyView}\n required={readOnlyView ? false : required}\n {...getConditionalProps(readOnlyView, type, helperText)}\n {...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}\n >\n {children}\n </WrappedComponent>\n );\n }\n );\n\n WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;\n return WithReadOnlyComponent;\n};\n"],"names":["componentsWithKeyEventsToPrevent","getConditionalProps","readOnlyView","type","helperText","props","style","pointerEvents","userSelect","WrappedComponent","options","isWrapperComponent","preventKeyUpAndKeyDownHandlerForSpecificComponents","preventSubmissionKeys","e","key","stopPropagation","preventDefault","includes","displayName","name","WithReadOnlyComponent","React","forwardRef","ref","required","children","restProps","createElement","getDisplayName"],"mappings":"yGAyBMA,EAA6C,CAAC,mBAM9CC,EAAsB,CAACC,EAAuBC,EAAcC,KAChE,MAAMC,EAAiC,CAAC,EAejC,OAbHH,GACFG,EAAMC,MAAQ,CAAEC,cAAe,OAAQC,WAAY,QAC/CJ,IACFC,EAAMD,WAAa,KAEZA,IACTC,EAAMD,WAAaA,GAGjBD,IACFE,EAAMF,KAAOA,GAGRE,CAAA,uBAOmB,CAC1BI,EACAC,KAEA,MAAMC,mBAAEA,GAAuBD,GAAW,CAAC,EAErCE,EAAsDV,IACpD,MAAAW,EAAyBC,IACN,IAACA,GAA+B,WAA/BA,EACLA,GAD4BC,KAA6B,MAAVD,EAAEC,OAElED,EAAEE,kBACFF,EAAEG,iBAAe,EAIrB,GACEf,GACAF,EAAiCkB,SAC/BT,EAAiBU,aAAeV,EAAiBW,MAEnD,CAWO,MAVgC,CAEjCf,QAAWS,IACfD,EAAsBC,EAAC,EAGnBT,UAAaS,IACjBD,EAAsBC,EAAC,EAGlB,CAGT,MAAO,CAAC,CAAA,EAGJO,EAAwBC,EAAMC,YAClC,CAAClB,EAAiDmB,KAC1C,MAAAtB,aACJA,GAAe,EAAAuB,SACfA,EAAAC,SACAA,EAAAtB,WACAA,EAAAD,KACAA,EAAO,MACJwB,GACDtB,EAGF,OAAAiB,EAAAM,cAACnB,EAAA,CACCe,SACKG,EACL,oBAAmBzB,EACnB,gBAAeS,OAAqB,EAAYT,EAChDuB,UAAUvB,GAAuBuB,KAC7BxB,EAAoBC,EAAcC,EAAMC,MACxCQ,EAAmDV,IAEtDwB,EACH,IAMC,OADPL,EAAsBF,YAAc,gBA3Ff,CAAKV,GACnBA,EAAiBU,aAAeV,EAAiBW,MAAQ,YA0FZS,CAAepB,KAC5DY,CAAA"}
1
+ {"version":3,"file":"withReadOnly.cjs.js","sources":["../../src/components/withReadOnly.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentType, ForwardedRef, PropsWithChildren, PropsWithoutRef } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else if (helperText) {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\ntype WithReadOnlyOptions = {\n isWrapperComponent: boolean;\n};\n\nexport const withReadOnly = <P extends object>(\n WrappedComponent: ComponentType<P>,\n options?: WithReadOnlyOptions\n) => {\n const { isWrapperComponent } = options || {};\n\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (\n props: PropsWithoutRef<PropsWithChildren<P & WithReadOnlyProps>>,\n ref: ForwardedRef<unknown>\n ) => {\n const {\n readOnlyView = false,\n required,\n children,\n helperText,\n type = \"\",\n ...restProps\n } = props;\n\n return (\n <WrappedComponent\n ref={ref}\n {...(restProps as P)}\n data-readonlyview={readOnlyView}\n aria-readonly={isWrapperComponent ? undefined : readOnlyView}\n required={readOnlyView ? false : required}\n {...getConditionalProps(readOnlyView, type, helperText)}\n {...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}\n >\n {children}\n </WrappedComponent>\n );\n }\n );\n\n WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;\n return WithReadOnlyComponent;\n};\n"],"names":["componentsWithKeyEventsToPrevent","getConditionalProps","readOnlyView","type","helperText","props","style","pointerEvents","userSelect","WrappedComponent","options","isWrapperComponent","preventKeyUpAndKeyDownHandlerForSpecificComponents","preventSubmissionKeys","e","key","stopPropagation","preventDefault","includes","displayName","name","WithReadOnlyComponent","React","forwardRef","ref","required","children","restProps","createElement","getDisplayName"],"mappings":"yGAyBMA,EAA6C,CAAC,mBAM9CC,EAAsB,CAACC,EAAuBC,EAAcC,KAChE,MAAMC,EAAiC,CAAA,EAevC,OAbIH,GACFG,EAAMC,MAAQ,CAAEC,cAAe,OAAQC,WAAY,QAC/CJ,IACFC,EAAMD,WAAa,KAEZA,IACTC,EAAMD,WAAaA,GAGjBD,IACFE,EAAMF,KAAOA,GAGRE,wBAOmB,CAC1BI,EACAC,KAEA,MAAMC,mBAAEA,GAAuBD,GAAW,CAAA,EAEpCE,EAAsDV,IAC1D,MAAMW,EAAyBC,IACN,IAACA,GAA+B,WAA/BA,EACLA,GAD4BC,KAA6B,MAAVD,EAAEC,OAElED,EAAEE,kBACFF,EAAEG,mBAIN,GACEf,GACAF,EAAiCkB,SAC/BT,EAAiBU,aAAeV,EAAiBW,MAEnD,CAWA,MAVuC,CAEvCf,QAAiBS,IACfD,EAAsBC,IAGxBT,UAAmBS,IACjBD,EAAsBC,IAI1B,CAEA,MAAO,CAAA,GAGHO,EAAwBC,EAAMC,WAClC,CACElB,EACAmB,KAEA,MAAMtB,aACJA,GAAe,EAAAuB,SACfA,EAAAC,SACAA,EAAAtB,WACAA,EAAAD,KACAA,EAAO,MACJwB,GACDtB,EAEJ,OACEiB,EAAAM,cAACnB,EAAA,CACCe,SACKG,EACL,oBAAmBzB,EACnB,gBAAeS,OAAqB,EAAYT,EAChDuB,UAAUvB,GAAuBuB,KAC7BxB,EAAoBC,EAAcC,EAAMC,MACxCQ,EAAmDV,IAEtDwB,KAOT,OADAL,EAAsBF,YAAc,gBA9Ff,CAAKV,GACnBA,EAAiBU,aAAeV,EAAiBW,MAAQ,YA6FZS,CAAepB,KAC5DY"}
@@ -1 +1 @@
1
- {"version":3,"file":"withReadOnly.es.js","sources":["../../src/components/withReadOnly.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentType, ForwardedRef, PropsWithChildren } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else if (helperText) {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\ntype WithReadOnlyOptions = {\n isWrapperComponent: boolean;\n};\n\nexport const withReadOnly = <P extends object>(\n WrappedComponent: ComponentType<P>,\n options?: WithReadOnlyOptions\n) => {\n const { isWrapperComponent } = options || {};\n\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (props: PropsWithChildren<P & WithReadOnlyProps>, ref: ForwardedRef<unknown>) => {\n const {\n readOnlyView = false,\n required,\n children,\n helperText,\n type = \"\",\n ...restProps\n } = props;\n\n return (\n <WrappedComponent\n ref={ref}\n {...(restProps as P)}\n data-readonlyview={readOnlyView}\n aria-readonly={isWrapperComponent ? undefined : readOnlyView}\n required={readOnlyView ? false : required}\n {...getConditionalProps(readOnlyView, type, helperText)}\n {...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}\n >\n {children}\n </WrappedComponent>\n );\n }\n );\n\n WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;\n return WithReadOnlyComponent;\n};\n"],"names":["e"],"mappings":";AAyBA,MAAM,mCAA6C,CAAC,iBAAiB;AAErE,MAAM,iBAAiB,CAAK,qBAAuC;AAC1D,SAAA,iBAAiB,eAAe,iBAAiB,QAAQ;AAClE;AAEA,MAAM,sBAAsB,CAAC,cAAuB,MAAc,eAAwB;AACxF,QAAM,QAAiC,CAAC;AAExC,MAAI,cAAc;AAChB,UAAM,QAAQ,EAAE,eAAe,QAAQ,YAAY,OAAO;AAC1D,QAAI,YAAY;AACd,YAAM,aAAa;AAAA,IAAA;AAAA,aAEZ,YAAY;AACrB,UAAM,aAAa;AAAA,EAAA;AAGrB,MAAI,MAAM;AACR,UAAM,OAAO;AAAA,EAAA;AAGR,SAAA;AACT;AAMa,MAAA,eAAe,CAC1B,kBACA,YACG;AACH,QAAM,EAAE,uBAAuB,WAAW,CAAC;AAErC,QAAA,qDAAqD,CAAC,iBAA0B;AAC9E,UAAA,wBAAwB,CAAC,MAAqB;AAClD,YAAM,iBAAiB,CAACA,OAAqBA,GAAE,QAAQ,WAAWA,GAAE,QAAQ;AACxE,UAAA,eAAe,CAAC,GAAG;AACrB,UAAE,gBAAgB;AAClB,UAAE,eAAe;AAAA,MAAA;AAAA,IAErB;AAEA,QACE,gBACA,iCAAiC;AAAA,MAC/B,iBAAiB,eAAe,iBAAiB;AAAA,IAAA,GAEnD;AACA,YAAM,QAAiC,CAAC;AAElC,YAAA,UAAU,CAAC,MAAqB;AACpC,8BAAsB,CAAC;AAAA,MACzB;AAEM,YAAA,YAAY,CAAC,MAAqB;AACtC,8BAAsB,CAAC;AAAA,MACzB;AAEO,aAAA;AAAA,IAAA;AAGT,WAAO,CAAC;AAAA,EACV;AAEA,QAAM,wBAAwB,MAAM;AAAA,IAClC,CAAC,OAAiD,QAA+B;AACzE,YAAA;AAAA,QACJ,eAAe;AAAA,QACf;AAAA,QACA;AAAA,QACA;AAAA,QACA,OAAO;AAAA,QACP,GAAG;AAAA,MAAA,IACD;AAGF,aAAA,sBAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACC,GAAI;AAAA,UACL,qBAAmB;AAAA,UACnB,iBAAe,qBAAqB,SAAY;AAAA,UAChD,UAAU,eAAe,QAAQ;AAAA,UAChC,GAAG,oBAAoB,cAAc,MAAM,UAAU;AAAA,UACrD,GAAG,mDAAmD,YAAY;AAAA,QAAA;AAAA,QAElE;AAAA,MACH;AAAA,IAAA;AAAA,EAGN;AAEA,wBAAsB,cAAc,gBAAgB,eAAe,gBAAgB,CAAC;AAC7E,SAAA;AACT;"}
1
+ {"version":3,"file":"withReadOnly.es.js","sources":["../../src/components/withReadOnly.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentType, ForwardedRef, PropsWithChildren, PropsWithoutRef } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else if (helperText) {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\ntype WithReadOnlyOptions = {\n isWrapperComponent: boolean;\n};\n\nexport const withReadOnly = <P extends object>(\n WrappedComponent: ComponentType<P>,\n options?: WithReadOnlyOptions\n) => {\n const { isWrapperComponent } = options || {};\n\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (\n props: PropsWithoutRef<PropsWithChildren<P & WithReadOnlyProps>>,\n ref: ForwardedRef<unknown>\n ) => {\n const {\n readOnlyView = false,\n required,\n children,\n helperText,\n type = \"\",\n ...restProps\n } = props;\n\n return (\n <WrappedComponent\n ref={ref}\n {...(restProps as P)}\n data-readonlyview={readOnlyView}\n aria-readonly={isWrapperComponent ? undefined : readOnlyView}\n required={readOnlyView ? false : required}\n {...getConditionalProps(readOnlyView, type, helperText)}\n {...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}\n >\n {children}\n </WrappedComponent>\n );\n }\n );\n\n WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;\n return WithReadOnlyComponent;\n};\n"],"names":["e"],"mappings":";AAyBA,MAAM,mCAA6C,CAAC,iBAAiB;AAErE,MAAM,iBAAiB,CAAK,qBAAuC;AACjE,SAAO,iBAAiB,eAAe,iBAAiB,QAAQ;AAClE;AAEA,MAAM,sBAAsB,CAAC,cAAuB,MAAc,eAAwB;AACxF,QAAM,QAAiC,CAAA;AAEvC,MAAI,cAAc;AAChB,UAAM,QAAQ,EAAE,eAAe,QAAQ,YAAY,OAAA;AACnD,QAAI,YAAY;AACd,YAAM,aAAa;AAAA,IACrB;AAAA,EACF,WAAW,YAAY;AACrB,UAAM,aAAa;AAAA,EACrB;AAEA,MAAI,MAAM;AACR,UAAM,OAAO;AAAA,EACf;AAEA,SAAO;AACT;AAMO,MAAM,eAAe,CAC1B,kBACA,YACG;AACH,QAAM,EAAE,uBAAuB,WAAW,CAAA;AAE1C,QAAM,qDAAqD,CAAC,iBAA0B;AACpF,UAAM,wBAAwB,CAAC,MAAqB;AAClD,YAAM,iBAAiB,CAACA,OAAqBA,GAAE,QAAQ,WAAWA,GAAE,QAAQ;AAC5E,UAAI,eAAe,CAAC,GAAG;AACrB,UAAE,gBAAA;AACF,UAAE,eAAA;AAAA,MACJ;AAAA,IACF;AAEA,QACE,gBACA,iCAAiC;AAAA,MAC/B,iBAAiB,eAAe,iBAAiB;AAAA,IAAA,GAEnD;AACA,YAAM,QAAiC,CAAA;AAEvC,YAAM,UAAU,CAAC,MAAqB;AACpC,8BAAsB,CAAC;AAAA,MACzB;AAEA,YAAM,YAAY,CAAC,MAAqB;AACtC,8BAAsB,CAAC;AAAA,MACzB;AAEA,aAAO;AAAA,IACT;AAEA,WAAO,CAAA;AAAA,EACT;AAEA,QAAM,wBAAwB,MAAM;AAAA,IAClC,CACE,OACA,QACG;AACH,YAAM;AAAA,QACJ,eAAe;AAAA,QACf;AAAA,QACA;AAAA,QACA;AAAA,QACA,OAAO;AAAA,QACP,GAAG;AAAA,MAAA,IACD;AAEJ,aACE,sBAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACC,GAAI;AAAA,UACL,qBAAmB;AAAA,UACnB,iBAAe,qBAAqB,SAAY;AAAA,UAChD,UAAU,eAAe,QAAQ;AAAA,UAChC,GAAG,oBAAoB,cAAc,MAAM,UAAU;AAAA,UACrD,GAAG,mDAAmD,YAAY;AAAA,QAAA;AAAA,QAElE;AAAA,MAAA;AAAA,IAGP;AAAA,EAAA;AAGF,wBAAsB,cAAc,gBAAgB,eAAe,gBAAgB,CAAC;AACpF,SAAO;AACT;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useAnimation=t=>{const n=e.useRef(null),[r,a]=e.useState(!1),i=()=>r&&t();return e.useEffect((()=>{var e;return null==(e=n.current)||e.addEventListener("animationend",i),()=>{var e;return null==(e=n.current)?void 0:e.removeEventListener("animationend",i)}}),[r]),{ref:n,animationStarted:r,startAnimation:()=>a(!0)}};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useAnimation=t=>{const n=e.useRef(null),[r,a]=e.useState(!1),i=()=>r&&t();return e.useEffect(()=>{var e;return null==(e=n.current)||e.addEventListener("animationend",i),()=>{var e;return null==(e=n.current)?void 0:e.removeEventListener("animationend",i)}},[r]),{ref:n,animationStarted:r,startAnimation:()=>a(!0)}};
2
2
  //# sourceMappingURL=useAnimation.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAnimation.cjs.js","sources":["../../src/hooks/useAnimation.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEffect, useRef, useState } from \"react\";\n\nexport const useAnimation = <RefElement extends HTMLElement>(callback: () => void) => {\n const animatedObjectRef = useRef<RefElement>(null);\n /** We need to store flag that says us when to call the callback */\n const [animationStarted, setAnimationStarted] = useState(false);\n\n const onAnimationEnd = () => animationStarted && callback();\n\n useEffect(() => {\n animatedObjectRef.current?.addEventListener(\"animationend\", onAnimationEnd);\n return () => animatedObjectRef.current?.removeEventListener(\"animationend\", onAnimationEnd);\n }, [animationStarted]);\n\n return {\n ref: animatedObjectRef,\n animationStarted,\n startAnimation: () => setAnimationStarted(true)\n };\n};\n"],"names":["callback","animatedObjectRef","useRef","animationStarted","setAnimationStarted","useState","onAnimationEnd","useEffect","_a","current","addEventListener","removeEventListener","ref","startAnimation"],"mappings":"8HAkB6DA,IACrD,MAAAC,EAAoBC,SAAmB,OAEtCC,EAAkBC,GAAuBC,EAAAA,UAAS,GAEnDC,EAAiB,IAAMH,GAAoBH,IAO1C,OALPO,EAAAA,WAAU,WAER,OADkB,OAAAC,EAAAP,EAAAQ,UAASD,EAAAE,iBAAiB,eAAgBJ,GACrD,WAAM,OAAA,OAAAE,EAAAP,EAAkBQ,cAAlBD,EAAAA,EAA2BG,oBAAoB,eAAgBL,EAAA,CAAA,GAC3E,CAACH,IAEG,CACLS,IAAKX,EACLE,mBACAU,eAAgB,IAAMT,GAAoB,GAC5C"}
1
+ {"version":3,"file":"useAnimation.cjs.js","sources":["../../src/hooks/useAnimation.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEffect, useRef, useState } from \"react\";\n\nexport const useAnimation = <RefElement extends HTMLElement>(callback: () => void) => {\n const animatedObjectRef = useRef<RefElement>(null);\n /** We need to store flag that says us when to call the callback */\n const [animationStarted, setAnimationStarted] = useState(false);\n\n const onAnimationEnd = () => animationStarted && callback();\n\n useEffect(() => {\n animatedObjectRef.current?.addEventListener(\"animationend\", onAnimationEnd);\n return () => animatedObjectRef.current?.removeEventListener(\"animationend\", onAnimationEnd);\n }, [animationStarted]);\n\n return {\n ref: animatedObjectRef,\n animationStarted,\n startAnimation: () => setAnimationStarted(true)\n };\n};\n"],"names":["callback","animatedObjectRef","useRef","animationStarted","setAnimationStarted","useState","onAnimationEnd","useEffect","_a","current","addEventListener","removeEventListener","ref","startAnimation"],"mappings":"8HAkB6DA,IAC3D,MAAMC,EAAoBC,EAAAA,OAAmB,OAEtCC,EAAkBC,GAAuBC,EAAAA,UAAS,GAEnDC,EAAiB,IAAMH,GAAoBH,IAOjD,OALAO,EAAAA,UAAU,WAER,OADA,OAAAC,EAAAP,EAAkBQ,UAAlBD,EAA2BE,iBAAiB,eAAgBJ,GACrD,WAAM,OAAA,OAAAE,EAAAP,EAAkBQ,cAAlB,EAAAD,EAA2BG,oBAAoB,eAAgBL,KAC3E,CAACH,IAEG,CACLS,IAAKX,EACLE,mBACAU,eAAgB,IAAMT,GAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAnimation.es.js","sources":["../../src/hooks/useAnimation.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEffect, useRef, useState } from \"react\";\n\nexport const useAnimation = <RefElement extends HTMLElement>(callback: () => void) => {\n const animatedObjectRef = useRef<RefElement>(null);\n /** We need to store flag that says us when to call the callback */\n const [animationStarted, setAnimationStarted] = useState(false);\n\n const onAnimationEnd = () => animationStarted && callback();\n\n useEffect(() => {\n animatedObjectRef.current?.addEventListener(\"animationend\", onAnimationEnd);\n return () => animatedObjectRef.current?.removeEventListener(\"animationend\", onAnimationEnd);\n }, [animationStarted]);\n\n return {\n ref: animatedObjectRef,\n animationStarted,\n startAnimation: () => setAnimationStarted(true)\n };\n};\n"],"names":["_a"],"mappings":";AAkBa,MAAA,eAAe,CAAiC,aAAyB;AAC9E,QAAA,oBAAoB,OAAmB,IAAI;AAEjD,QAAM,CAAC,kBAAkB,mBAAmB,IAAI,SAAS,KAAK;AAExD,QAAA,iBAAiB,MAAM,oBAAoB,SAAS;AAE1D,YAAU,MAAM;;AACI,4BAAA,YAAA,mBAAS,iBAAiB,gBAAgB;AAC5D,WAAO,MAAM;;AAAA,cAAAA,MAAA,kBAAkB,YAAlB,gBAAAA,IAA2B,oBAAoB,gBAAgB;AAAA;AAAA,EAAc,GACzF,CAAC,gBAAgB,CAAC;AAEd,SAAA;AAAA,IACL,KAAK;AAAA,IACL;AAAA,IACA,gBAAgB,MAAM,oBAAoB,IAAI;AAAA,EAChD;AACF;"}
1
+ {"version":3,"file":"useAnimation.es.js","sources":["../../src/hooks/useAnimation.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEffect, useRef, useState } from \"react\";\n\nexport const useAnimation = <RefElement extends HTMLElement>(callback: () => void) => {\n const animatedObjectRef = useRef<RefElement>(null);\n /** We need to store flag that says us when to call the callback */\n const [animationStarted, setAnimationStarted] = useState(false);\n\n const onAnimationEnd = () => animationStarted && callback();\n\n useEffect(() => {\n animatedObjectRef.current?.addEventListener(\"animationend\", onAnimationEnd);\n return () => animatedObjectRef.current?.removeEventListener(\"animationend\", onAnimationEnd);\n }, [animationStarted]);\n\n return {\n ref: animatedObjectRef,\n animationStarted,\n startAnimation: () => setAnimationStarted(true)\n };\n};\n"],"names":["_a"],"mappings":";AAkBO,MAAM,eAAe,CAAiC,aAAyB;AACpF,QAAM,oBAAoB,OAAmB,IAAI;AAEjD,QAAM,CAAC,kBAAkB,mBAAmB,IAAI,SAAS,KAAK;AAE9D,QAAM,iBAAiB,MAAM,oBAAoB,SAAA;AAEjD,YAAU,MAAM;;AACd,4BAAkB,YAAlB,mBAA2B,iBAAiB,gBAAgB;AAC5D,WAAO,MAAA;;AAAM,cAAAA,MAAA,kBAAkB,YAAlB,gBAAAA,IAA2B,oBAAoB,gBAAgB;AAAA;AAAA,EAC9E,GAAG,CAAC,gBAAgB,CAAC;AAErB,SAAO;AAAA,IACL,KAAK;AAAA,IACL;AAAA,IACA,gBAAgB,MAAM,oBAAoB,IAAI;AAAA,EAAA;AAElD;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useClickOutside=(t,i,n)=>{function o(e){const n=null==t?void 0:t.current;n&&(n.contains(e.target)||i(e))}e.useEffect((()=>(setTimeout((()=>window.addEventListener("click",o))),()=>{setTimeout((()=>window.removeEventListener("click",o)))})),n)};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useClickOutside=(t,i,n)=>{function o(e){const n=null==t?void 0:t.current;n&&(n.contains(e.target)||i(e))}e.useEffect(()=>(setTimeout(()=>window.addEventListener("click",o)),()=>{setTimeout(()=>window.removeEventListener("click",o))}),n)};
2
2
  //# sourceMappingURL=useClickOutside.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useClickOutside.cjs.js","sources":["../../src/hooks/useClickOutside.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { DependencyList, useEffect } from \"react\";\n\nexport const useClickOutside = (\n myElementRef: React.RefObject<HTMLElement>,\n onClickOutside: (event: MouseEvent) => void,\n dependencies?: DependencyList\n) => {\n function eventListener(event: MouseEvent) {\n const myElement = myElementRef?.current;\n if (!myElement) {\n return;\n }\n const clickedInsideMyElement = myElement.contains(event.target as Node);\n\n if (!clickedInsideMyElement) {\n onClickOutside(event);\n }\n }\n useEffect(() => {\n setTimeout(() => window.addEventListener(\"click\", eventListener));\n\n return () => {\n setTimeout(() => window.removeEventListener(\"click\", eventListener));\n };\n }, dependencies);\n};\n"],"names":["myElementRef","onClickOutside","dependencies","eventListener","event","myElement","current","contains","target","useEffect","setTimeout","window","addEventListener","removeEventListener"],"mappings":"iIAkB+B,CAC7BA,EACAC,EACAC,KAEA,SAASC,EAAcC,GACrB,MAAMC,EAA0B,MAAdL,OAAc,EAAAA,EAAAM,QAC3BD,IAG0BA,EAAUE,SAASH,EAAMI,SAGtDP,EAAeG,GACjB,CAEFK,EAAAA,WAAU,KACRC,YAAW,IAAMC,OAAOC,iBAAiB,QAAST,KAE3C,KACLO,YAAW,IAAMC,OAAOE,oBAAoB,QAASV,IAAc,IAEpED,EAAY"}
1
+ {"version":3,"file":"useClickOutside.cjs.js","sources":["../../src/hooks/useClickOutside.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { DependencyList, useEffect } from \"react\";\n\nexport const useClickOutside = (\n myElementRef: React.RefObject<HTMLElement>,\n onClickOutside: (event: MouseEvent) => void,\n dependencies?: DependencyList\n) => {\n function eventListener(event: MouseEvent) {\n const myElement = myElementRef?.current;\n if (!myElement) {\n return;\n }\n const clickedInsideMyElement = myElement.contains(event.target as Node);\n\n if (!clickedInsideMyElement) {\n onClickOutside(event);\n }\n }\n useEffect(() => {\n setTimeout(() => window.addEventListener(\"click\", eventListener));\n\n return () => {\n setTimeout(() => window.removeEventListener(\"click\", eventListener));\n };\n }, dependencies);\n};\n"],"names":["myElementRef","onClickOutside","dependencies","eventListener","event","myElement","current","contains","target","useEffect","setTimeout","window","addEventListener","removeEventListener"],"mappings":"iIAkB+B,CAC7BA,EACAC,EACAC,KAEA,SAASC,EAAcC,GACrB,MAAMC,EAAY,MAAAL,OAAA,EAAAA,EAAcM,QAC3BD,IAG0BA,EAAUE,SAASH,EAAMI,SAGtDP,EAAeG,GAEnB,CACAK,EAAAA,UAAU,KACRC,WAAW,IAAMC,OAAOC,iBAAiB,QAAST,IAE3C,KACLO,WAAW,IAAMC,OAAOE,oBAAoB,QAASV,MAEtDD"}
@@ -1 +1 @@
1
- {"version":3,"file":"useClickOutside.es.js","sources":["../../src/hooks/useClickOutside.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { DependencyList, useEffect } from \"react\";\n\nexport const useClickOutside = (\n myElementRef: React.RefObject<HTMLElement>,\n onClickOutside: (event: MouseEvent) => void,\n dependencies?: DependencyList\n) => {\n function eventListener(event: MouseEvent) {\n const myElement = myElementRef?.current;\n if (!myElement) {\n return;\n }\n const clickedInsideMyElement = myElement.contains(event.target as Node);\n\n if (!clickedInsideMyElement) {\n onClickOutside(event);\n }\n }\n useEffect(() => {\n setTimeout(() => window.addEventListener(\"click\", eventListener));\n\n return () => {\n setTimeout(() => window.removeEventListener(\"click\", eventListener));\n };\n }, dependencies);\n};\n"],"names":[],"mappings":";AAkBO,MAAM,kBAAkB,CAC7B,cACA,gBACA,iBACG;AACH,WAAS,cAAc,OAAmB;AACxC,UAAM,YAAY,6CAAc;AAChC,QAAI,CAAC,WAAW;AACd;AAAA,IAAA;AAEF,UAAM,yBAAyB,UAAU,SAAS,MAAM,MAAc;AAEtE,QAAI,CAAC,wBAAwB;AAC3B,qBAAe,KAAK;AAAA,IAAA;AAAA,EACtB;AAEF,YAAU,MAAM;AACd,eAAW,MAAM,OAAO,iBAAiB,SAAS,aAAa,CAAC;AAEhE,WAAO,MAAM;AACX,iBAAW,MAAM,OAAO,oBAAoB,SAAS,aAAa,CAAC;AAAA,IACrE;AAAA,KACC,YAAY;AACjB;"}
1
+ {"version":3,"file":"useClickOutside.es.js","sources":["../../src/hooks/useClickOutside.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { DependencyList, useEffect } from \"react\";\n\nexport const useClickOutside = (\n myElementRef: React.RefObject<HTMLElement>,\n onClickOutside: (event: MouseEvent) => void,\n dependencies?: DependencyList\n) => {\n function eventListener(event: MouseEvent) {\n const myElement = myElementRef?.current;\n if (!myElement) {\n return;\n }\n const clickedInsideMyElement = myElement.contains(event.target as Node);\n\n if (!clickedInsideMyElement) {\n onClickOutside(event);\n }\n }\n useEffect(() => {\n setTimeout(() => window.addEventListener(\"click\", eventListener));\n\n return () => {\n setTimeout(() => window.removeEventListener(\"click\", eventListener));\n };\n }, dependencies);\n};\n"],"names":[],"mappings":";AAkBO,MAAM,kBAAkB,CAC7B,cACA,gBACA,iBACG;AACH,WAAS,cAAc,OAAmB;AACxC,UAAM,YAAY,6CAAc;AAChC,QAAI,CAAC,WAAW;AACd;AAAA,IACF;AACA,UAAM,yBAAyB,UAAU,SAAS,MAAM,MAAc;AAEtE,QAAI,CAAC,wBAAwB;AAC3B,qBAAe,KAAK;AAAA,IACtB;AAAA,EACF;AACA,YAAU,MAAM;AACd,eAAW,MAAM,OAAO,iBAAiB,SAAS,aAAa,CAAC;AAEhE,WAAO,MAAM;AACX,iBAAW,MAAM,OAAO,oBAAoB,SAAS,aAAa,CAAC;AAAA,IACrE;AAAA,EACF,GAAG,YAAY;AACjB;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useDebouncedCallback=(r,t,u)=>{const c=e.useRef(),o=u?[r,t,...u]:[r,t];return e.useCallback(((...e)=>{null!=c.current&&clearTimeout(c.current),c.current=setTimeout((()=>{r(...e)}),t)}),o)};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useDebouncedCallback=(r,t,u)=>{const c=e.useRef(),o=u?[r,t,...u]:[r,t];return e.useCallback((...e)=>{null!=c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{r(...e)},t)},o)};
2
2
  //# sourceMappingURL=useDebouncedCallback.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDebouncedCallback.cjs.js","sources":["../../src/hooks/useDebouncedCallback.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\n\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types */\nexport const useDebouncedCallback = (callback: Function, delay: number, dependencies?: any[]) => {\n const timeout = React.useRef<ReturnType<typeof setTimeout>>();\n const comboDeps = dependencies ? [callback, delay, ...dependencies] : [callback, delay];\n\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n return React.useCallback((...args: any[]) => {\n if (timeout.current != null) {\n clearTimeout(timeout.current);\n }\n\n timeout.current = setTimeout(() => {\n callback(...args);\n }, delay);\n }, comboDeps);\n};\n"],"names":["callback","delay","dependencies","timeout","React","useRef","comboDeps","useCallback","args","current","clearTimeout","setTimeout"],"mappings":"sIAmBoC,CAACA,EAAoBC,EAAeC,KAChE,MAAAC,EAAUC,EAAMC,SAChBC,EAAYJ,EAAe,CAACF,EAAUC,KAAUC,GAAgB,CAACF,EAAUC,GAG1E,OAAAG,EAAMG,aAAY,IAAIC,KACJ,MAAnBL,EAAQM,SACVC,aAAaP,EAAQM,SAGfN,EAAAM,QAAUE,YAAW,KAC3BX,KAAYQ,EAAI,GACfP,EAAK,GACPK,EAAS"}
1
+ {"version":3,"file":"useDebouncedCallback.cjs.js","sources":["../../src/hooks/useDebouncedCallback.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\n\nexport const useDebouncedCallback = <T extends unknown[]>(\n callback: (...args: T) => void,\n delay: number,\n dependencies?: React.DependencyList\n) => {\n const timeout = React.useRef<ReturnType<typeof setTimeout>>();\n const comboDeps = dependencies ? [callback, delay, ...dependencies] : [callback, delay];\n\n return React.useCallback((...args: T) => {\n if (timeout.current != null) {\n clearTimeout(timeout.current);\n }\n\n timeout.current = setTimeout(() => {\n callback(...args);\n }, delay);\n }, comboDeps);\n};\n"],"names":["callback","delay","dependencies","timeout","React","useRef","comboDeps","useCallback","args","current","clearTimeout","setTimeout"],"mappings":"sIAkBoC,CAClCA,EACAC,EACAC,KAEA,MAAMC,EAAUC,EAAMC,SAChBC,EAAYJ,EAAe,CAACF,EAAUC,KAAUC,GAAgB,CAACF,EAAUC,GAEjF,OAAOG,EAAMG,YAAY,IAAIC,KACJ,MAAnBL,EAAQM,SACVC,aAAaP,EAAQM,SAGvBN,EAAQM,QAAUE,WAAW,KAC3BX,KAAYQ,IACXP,IACFK"}