@onewelcome/react-lib-components 13.2.0 → 13.3.0-alpha.2

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 (419) hide show
  1. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +2 -2
  2. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.es.js +5 -5
  3. package/dist/components/Button/BaseButton.module.scss.cjs.js +2 -2
  4. package/dist/components/Button/BaseButton.module.scss.es.js +4 -4
  5. package/dist/components/Button/Button.module.scss.cjs.js +2 -2
  6. package/dist/components/Button/Button.module.scss.es.js +17 -17
  7. package/dist/components/Button/IconButton.module.scss.cjs.js +2 -2
  8. package/dist/components/Button/IconButton.module.scss.es.js +18 -18
  9. package/dist/components/ContextMenu/ContextMenu.cjs.js.map +1 -1
  10. package/dist/components/ContextMenu/ContextMenu.es.js.map +1 -1
  11. package/dist/components/ContextMenu/ContextMenu.module.scss.cjs.js +2 -2
  12. package/dist/components/ContextMenu/ContextMenu.module.scss.es.js +6 -6
  13. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.cjs.js +2 -2
  14. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.es.js +2 -2
  15. package/dist/components/ContextMenu/ContextMenuItem.module.scss.cjs.js +2 -2
  16. package/dist/components/ContextMenu/ContextMenuItem.module.scss.es.js +3 -3
  17. package/dist/components/ContextMenu/ContextMenuService.cjs.js +1 -1
  18. package/dist/components/ContextMenu/ContextMenuService.cjs.js.map +1 -1
  19. package/dist/components/ContextMenu/ContextMenuService.es.js +20 -17
  20. package/dist/components/ContextMenu/ContextMenuService.es.js.map +1 -1
  21. package/dist/components/DataGrid/DataGrid.cjs.js +1 -1
  22. package/dist/components/DataGrid/DataGrid.cjs.js.map +1 -1
  23. package/dist/components/DataGrid/DataGrid.es.js +76 -51
  24. package/dist/components/DataGrid/DataGrid.es.js.map +1 -1
  25. package/dist/components/DataGrid/DataGrid.module.scss.cjs.js +2 -2
  26. package/dist/components/DataGrid/DataGrid.module.scss.es.js +8 -7
  27. package/dist/components/DataGrid/DataGrid.module.scss.es.js.map +1 -1
  28. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +2 -2
  29. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.es.js +6 -6
  30. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +2 -2
  31. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.es.js +7 -7
  32. package/dist/components/DataGrid/DataGridBody/DataGridBody.cjs.js +1 -1
  33. package/dist/components/DataGrid/DataGridBody/DataGridBody.cjs.js.map +1 -1
  34. package/dist/components/DataGrid/DataGridBody/DataGridBody.es.js +4 -2
  35. package/dist/components/DataGrid/DataGridBody/DataGridBody.es.js.map +1 -1
  36. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +2 -2
  37. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.es.js +2 -2
  38. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +2 -2
  39. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.es.js +5 -5
  40. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +2 -2
  41. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.es.js +4 -4
  42. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +2 -2
  43. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.es.js +5 -5
  44. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +2 -2
  45. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.es.js +24 -24
  46. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.cjs.js.map +1 -1
  47. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.es.js +1 -1
  48. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.es.js.map +1 -1
  49. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js +1 -1
  50. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js.map +1 -1
  51. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js +4 -4
  52. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js.map +1 -1
  53. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +2 -2
  54. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.es.js +9 -9
  55. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js +1 -1
  56. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js.map +1 -1
  57. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js +44 -25
  58. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js.map +1 -1
  59. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js +1 -1
  60. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js.map +1 -1
  61. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js +15 -4
  62. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js.map +1 -1
  63. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js +1 -1
  64. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js.map +1 -1
  65. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js +56 -6
  66. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js.map +1 -1
  67. package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.cjs.js.map +1 -1
  68. package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.es.js.map +1 -1
  69. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.cjs.js +1 -1
  70. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.cjs.js.map +1 -1
  71. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.es.js +4 -4
  72. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.es.js.map +1 -1
  73. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +2 -2
  74. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.es.js +10 -10
  75. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.cjs.js +1 -1
  76. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.cjs.js.map +1 -1
  77. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.es.js +1 -1
  78. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.es.js.map +1 -1
  79. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +2 -2
  80. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.es.js +17 -17
  81. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.cjs.js +1 -1
  82. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.cjs.js.map +1 -1
  83. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.es.js +45 -24
  84. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.es.js.map +1 -1
  85. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.cjs.js +1 -1
  86. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.cjs.js.map +1 -1
  87. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.es.js +7 -9
  88. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.es.js.map +1 -1
  89. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.cjs.js +1 -1
  90. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.cjs.js.map +1 -1
  91. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.es.js +5 -2
  92. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.es.js.map +1 -1
  93. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +2 -2
  94. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js +7 -4
  95. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js.map +1 -1
  96. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js.map +1 -1
  97. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.es.js +1 -1
  98. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.es.js.map +1 -1
  99. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +2 -2
  100. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.es.js +11 -11
  101. package/dist/components/DatePicker/DatePicker.module.scss.cjs.js +2 -2
  102. package/dist/components/DatePicker/DatePicker.module.scss.es.js +31 -31
  103. package/dist/components/Form/Checkbox/Checkbox.module.scss.cjs.js +2 -2
  104. package/dist/components/Form/Checkbox/Checkbox.module.scss.es.js +13 -13
  105. package/dist/components/Form/Fieldset/Fieldset.cjs.js +1 -1
  106. package/dist/components/Form/Fieldset/Fieldset.cjs.js.map +1 -1
  107. package/dist/components/Form/Fieldset/Fieldset.es.js +2 -1
  108. package/dist/components/Form/Fieldset/Fieldset.es.js.map +1 -1
  109. package/dist/components/Form/Fieldset/Fieldset.module.scss.cjs.js +2 -2
  110. package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js +8 -5
  111. package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js.map +1 -1
  112. package/dist/components/Form/FileUpload/FileItem/FileItem.cjs.js +1 -1
  113. package/dist/components/Form/FileUpload/FileItem/FileItem.cjs.js.map +1 -1
  114. package/dist/components/Form/FileUpload/FileItem/FileItem.es.js +1 -1
  115. package/dist/components/Form/FileUpload/FileItem/FileItem.es.js.map +1 -1
  116. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +2 -2
  117. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.es.js +18 -18
  118. package/dist/components/Form/FileUpload/FileUpload.cjs.js +1 -1
  119. package/dist/components/Form/FileUpload/FileUpload.cjs.js.map +1 -1
  120. package/dist/components/Form/FileUpload/FileUpload.es.js +6 -6
  121. package/dist/components/Form/FileUpload/FileUpload.es.js.map +1 -1
  122. package/dist/components/Form/FileUpload/FileUpload.module.scss.cjs.js +2 -2
  123. package/dist/components/Form/FileUpload/FileUpload.module.scss.es.js +16 -16
  124. package/dist/components/Form/Form.module.scss.cjs.js +2 -2
  125. package/dist/components/Form/Form.module.scss.es.js +2 -2
  126. package/dist/components/Form/FormControl/FormControl.module.scss.cjs.js +2 -2
  127. package/dist/components/Form/FormControl/FormControl.module.scss.es.js +13 -13
  128. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.cjs.js +2 -2
  129. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js +9 -6
  130. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js.map +1 -1
  131. package/dist/components/Form/FormGroup/FormGroup.module.scss.cjs.js +2 -2
  132. package/dist/components/Form/FormGroup/FormGroup.module.scss.es.js +3 -3
  133. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.cjs.js +2 -2
  134. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.es.js +4 -4
  135. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js +1 -1
  136. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js.map +1 -1
  137. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.es.js +4 -1
  138. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.es.js.map +1 -1
  139. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +2 -2
  140. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.es.js +6 -6
  141. package/dist/components/Form/Input/Input.cjs.js +1 -1
  142. package/dist/components/Form/Input/Input.cjs.js.map +1 -1
  143. package/dist/components/Form/Input/Input.es.js +2 -1
  144. package/dist/components/Form/Input/Input.es.js.map +1 -1
  145. package/dist/components/Form/Input/Input.module.scss.cjs.js +2 -2
  146. package/dist/components/Form/Input/Input.module.scss.es.js +8 -8
  147. package/dist/components/Form/Label/Label.module.scss.cjs.js +2 -2
  148. package/dist/components/Form/Label/Label.module.scss.es.js +2 -2
  149. package/dist/components/Form/Radio/Radio.cjs.js.map +1 -1
  150. package/dist/components/Form/Radio/Radio.es.js +1 -1
  151. package/dist/components/Form/Radio/Radio.es.js.map +1 -1
  152. package/dist/components/Form/Radio/Radio.module.scss.cjs.js +2 -2
  153. package/dist/components/Form/Radio/Radio.module.scss.es.js +11 -11
  154. package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js +1 -1
  155. package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js.map +1 -1
  156. package/dist/components/Form/Select/MultiSelect/MultiOption.es.js +6 -6
  157. package/dist/components/Form/Select/MultiSelect/MultiOption.es.js.map +1 -1
  158. package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js +1 -1
  159. package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js.map +1 -1
  160. package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js +198 -40
  161. package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js.map +1 -1
  162. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +2 -2
  163. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js +18 -15
  164. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js.map +1 -1
  165. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +2 -2
  166. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.es.js +2 -2
  167. package/dist/components/Form/Select/MultiSelect/SelectedOptions.cjs.js.map +1 -1
  168. package/dist/components/Form/Select/MultiSelect/SelectedOptions.es.js.map +1 -1
  169. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +2 -2
  170. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.es.js +4 -4
  171. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js +1 -1
  172. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js.map +1 -1
  173. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.es.js +81 -33
  174. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.es.js.map +1 -1
  175. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js +1 -1
  176. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
  177. package/dist/components/Form/Select/MultiSelect/useSearch.es.js +40 -6
  178. package/dist/components/Form/Select/MultiSelect/useSearch.es.js.map +1 -1
  179. package/dist/components/Form/Select/Select.interfaces.cjs.js.map +1 -1
  180. package/dist/components/Form/Select/Select.interfaces.es.js.map +1 -1
  181. package/dist/components/Form/Select/SingleSelect/Option.cjs.js +1 -1
  182. package/dist/components/Form/Select/SingleSelect/Option.cjs.js.map +1 -1
  183. package/dist/components/Form/Select/SingleSelect/Option.es.js +10 -3
  184. package/dist/components/Form/Select/SingleSelect/Option.es.js.map +1 -1
  185. package/dist/components/Form/Select/SingleSelect/Select.cjs.js +1 -1
  186. package/dist/components/Form/Select/SingleSelect/Select.cjs.js.map +1 -1
  187. package/dist/components/Form/Select/SingleSelect/Select.es.js +169 -31
  188. package/dist/components/Form/Select/SingleSelect/Select.es.js.map +1 -1
  189. package/dist/components/Form/Select/SingleSelect/Select.module.scss.cjs.js +2 -2
  190. package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js +20 -17
  191. package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js.map +1 -1
  192. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js +1 -1
  193. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js.map +1 -1
  194. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.es.js +119 -91
  195. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.es.js.map +1 -1
  196. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js +1 -1
  197. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -1
  198. package/dist/components/Form/Select/SingleSelect/useSearch.es.js +34 -4
  199. package/dist/components/Form/Select/SingleSelect/useSearch.es.js.map +1 -1
  200. package/dist/components/Form/Select/useAddNewBtn.module.scss.cjs.js +2 -2
  201. package/dist/components/Form/Select/useAddNewBtn.module.scss.es.js +4 -4
  202. package/dist/components/Form/Textarea/Textarea.cjs.js +1 -1
  203. package/dist/components/Form/Textarea/Textarea.cjs.js.map +1 -1
  204. package/dist/components/Form/Textarea/Textarea.es.js +4 -0
  205. package/dist/components/Form/Textarea/Textarea.es.js.map +1 -1
  206. package/dist/components/Form/Textarea/Textarea.module.scss.cjs.js +2 -2
  207. package/dist/components/Form/Textarea/Textarea.module.scss.es.js +6 -6
  208. package/dist/components/Form/Toggle/Toggle.cjs.js +1 -1
  209. package/dist/components/Form/Toggle/Toggle.cjs.js.map +1 -1
  210. package/dist/components/Form/Toggle/Toggle.es.js +5 -3
  211. package/dist/components/Form/Toggle/Toggle.es.js.map +1 -1
  212. package/dist/components/Form/Toggle/Toggle.module.scss.cjs.js +2 -2
  213. package/dist/components/Form/Toggle/Toggle.module.scss.es.js +18 -18
  214. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js +1 -1
  215. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js.map +1 -1
  216. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.es.js +25 -17
  217. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.es.js.map +1 -1
  218. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +2 -2
  219. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js +8 -4
  220. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js.map +1 -1
  221. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +2 -2
  222. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.es.js +5 -5
  223. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +2 -2
  224. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.es.js +3 -3
  225. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +1 -1
  226. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -1
  227. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.es.js +37 -21
  228. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.es.js.map +1 -1
  229. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +2 -2
  230. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js +8 -4
  231. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js.map +1 -1
  232. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +2 -2
  233. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.es.js +3 -3
  234. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js +1 -1
  235. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js.map +1 -1
  236. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.es.js +2 -0
  237. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.es.js.map +1 -1
  238. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +2 -2
  239. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.es.js +8 -8
  240. package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js +1 -1
  241. package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js.map +1 -1
  242. package/dist/components/Form/Wrapper/Wrapper/Wrapper.es.js +1 -1
  243. package/dist/components/Form/Wrapper/Wrapper/Wrapper.es.js.map +1 -1
  244. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +2 -2
  245. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.es.js +6 -6
  246. package/dist/components/Icon/Icon.cjs.js +1 -1
  247. package/dist/components/Icon/Icon.cjs.js.map +1 -1
  248. package/dist/components/Icon/Icon.es.js +1 -1
  249. package/dist/components/Icon/Icon.es.js.map +1 -1
  250. package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
  251. package/dist/components/Icon/Icon.module.scss.es.js +108 -108
  252. package/dist/components/Layout/ActionBar/ActionBar.module.scss.cjs.js +2 -2
  253. package/dist/components/Layout/ActionBar/ActionBar.module.scss.es.js +10 -10
  254. package/dist/components/Layout/Card/Card.module.scss.cjs.js +2 -2
  255. package/dist/components/Layout/Card/Card.module.scss.es.js +12 -12
  256. package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js +1 -1
  257. package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js.map +1 -1
  258. package/dist/components/Layout/ContentHeader/ContentHeader.es.js +66 -41
  259. package/dist/components/Layout/ContentHeader/ContentHeader.es.js.map +1 -1
  260. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +2 -2
  261. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js +28 -13
  262. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js.map +1 -1
  263. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +2 -2
  264. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js +4 -4
  265. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +2 -2
  266. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js +2 -2
  267. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +2 -2
  268. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.es.js +3 -3
  269. package/dist/components/Link/Link.cjs.js.map +1 -1
  270. package/dist/components/Link/Link.es.js +1 -1
  271. package/dist/components/Link/Link.es.js.map +1 -1
  272. package/dist/components/Link/Link.module.scss.cjs.js +2 -2
  273. package/dist/components/Link/Link.module.scss.es.js +17 -17
  274. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +2 -2
  275. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.es.js +11 -11
  276. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js +1 -1
  277. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js.map +1 -1
  278. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.es.js +7 -1
  279. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.es.js.map +1 -1
  280. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +2 -2
  281. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.es.js +22 -22
  282. package/dist/components/Notifications/Banner/Banner.module.scss.cjs.js +2 -2
  283. package/dist/components/Notifications/Banner/Banner.module.scss.es.js +9 -9
  284. package/dist/components/Notifications/BaseModal/BaseModal.cjs.js +1 -1
  285. package/dist/components/Notifications/BaseModal/BaseModal.cjs.js.map +1 -1
  286. package/dist/components/Notifications/BaseModal/BaseModal.es.js +1 -1
  287. package/dist/components/Notifications/BaseModal/BaseModal.es.js.map +1 -1
  288. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.cjs.js +2 -2
  289. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.es.js +5 -5
  290. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +2 -2
  291. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.es.js +4 -4
  292. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +2 -2
  293. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.es.js +2 -2
  294. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +2 -2
  295. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.es.js +6 -6
  296. package/dist/components/Notifications/Dialog/Dialog.module.scss.cjs.js +2 -2
  297. package/dist/components/Notifications/Dialog/Dialog.module.scss.es.js +4 -4
  298. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +2 -2
  299. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.es.js +3 -3
  300. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +2 -2
  301. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.es.js +10 -10
  302. package/dist/components/Notifications/SideSheet/SideSheet.cjs.js.map +1 -1
  303. package/dist/components/Notifications/SideSheet/SideSheet.es.js +1 -1
  304. package/dist/components/Notifications/SideSheet/SideSheet.es.js.map +1 -1
  305. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.cjs.js +2 -2
  306. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.es.js +13 -13
  307. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +2 -2
  308. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.es.js +2 -2
  309. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +2 -2
  310. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.es.js +2 -2
  311. package/dist/components/Notifications/SlideInModal/SlideInModal.cjs.js.map +1 -1
  312. package/dist/components/Notifications/SlideInModal/SlideInModal.es.js +1 -1
  313. package/dist/components/Notifications/SlideInModal/SlideInModal.es.js.map +1 -1
  314. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +2 -2
  315. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.es.js +10 -10
  316. package/dist/components/Pagination/Pagination.cjs.js +1 -1
  317. package/dist/components/Pagination/Pagination.cjs.js.map +1 -1
  318. package/dist/components/Pagination/Pagination.es.js +118 -90
  319. package/dist/components/Pagination/Pagination.es.js.map +1 -1
  320. package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
  321. package/dist/components/Pagination/Pagination.module.scss.es.js +15 -14
  322. package/dist/components/Pagination/Pagination.module.scss.es.js.map +1 -1
  323. package/dist/components/Popover/Popover.module.scss.cjs.js +2 -2
  324. package/dist/components/Popover/Popover.module.scss.es.js +3 -3
  325. package/dist/components/ProgressBar/ProgressBar.cjs.js.map +1 -1
  326. package/dist/components/ProgressBar/ProgressBar.es.js.map +1 -1
  327. package/dist/components/ProgressBar/ProgressBar.module.scss.cjs.js +2 -2
  328. package/dist/components/ProgressBar/ProgressBar.module.scss.es.js +9 -9
  329. package/dist/components/Skeleton/Skeleton.module.scss.cjs.js +2 -2
  330. package/dist/components/Skeleton/Skeleton.module.scss.es.js +5 -5
  331. package/dist/components/Spinner/Spinner.module.scss.cjs.js +2 -2
  332. package/dist/components/Spinner/Spinner.module.scss.es.js +3 -3
  333. package/dist/components/Stepper/Step.module.scss.cjs.js +2 -2
  334. package/dist/components/Stepper/Step.module.scss.es.js +22 -22
  335. package/dist/components/Stepper/Stepper.module.scss.cjs.js +2 -2
  336. package/dist/components/Stepper/Stepper.module.scss.es.js +4 -4
  337. package/dist/components/Tabs/Tab.module.scss.cjs.js +2 -2
  338. package/dist/components/Tabs/Tab.module.scss.es.js +3 -3
  339. package/dist/components/Tabs/TabButton.module.scss.cjs.js +2 -2
  340. package/dist/components/Tabs/TabButton.module.scss.es.js +12 -12
  341. package/dist/components/Tabs/Tabs.module.scss.cjs.js +2 -2
  342. package/dist/components/Tabs/Tabs.module.scss.es.js +10 -10
  343. package/dist/components/Tag/RemoveButton.module.scss.cjs.js +2 -2
  344. package/dist/components/Tag/RemoveButton.module.scss.es.js +3 -3
  345. package/dist/components/Tag/Tag.cjs.js +1 -1
  346. package/dist/components/Tag/Tag.cjs.js.map +1 -1
  347. package/dist/components/Tag/Tag.es.js +1 -1
  348. package/dist/components/Tag/Tag.es.js.map +1 -1
  349. package/dist/components/Tag/Tag.module.scss.cjs.js +2 -2
  350. package/dist/components/Tag/Tag.module.scss.es.js +6 -6
  351. package/dist/components/TextEllipsis/TextEllipsis.cjs.js.map +1 -1
  352. package/dist/components/TextEllipsis/TextEllipsis.es.js.map +1 -1
  353. package/dist/components/TextEllipsis/TextEllipsis.module.scss.cjs.js +2 -2
  354. package/dist/components/TextEllipsis/TextEllipsis.module.scss.es.js +3 -3
  355. package/dist/components/Tiles/Tile.cjs.js.map +1 -1
  356. package/dist/components/Tiles/Tile.es.js.map +1 -1
  357. package/dist/components/Tiles/Tile.module.scss.cjs.js +2 -2
  358. package/dist/components/Tiles/Tile.module.scss.es.js +8 -8
  359. package/dist/components/Tiles/Tiles.module.scss.cjs.js +2 -2
  360. package/dist/components/Tiles/Tiles.module.scss.es.js +2 -2
  361. package/dist/components/Tooltip/Tooltip.cjs.js +1 -1
  362. package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -1
  363. package/dist/components/Tooltip/Tooltip.es.js +9 -16
  364. package/dist/components/Tooltip/Tooltip.es.js.map +1 -1
  365. package/dist/components/Tooltip/Tooltip.module.scss.cjs.js +2 -2
  366. package/dist/components/Tooltip/Tooltip.module.scss.es.js +28 -27
  367. package/dist/components/Tooltip/Tooltip.module.scss.es.js.map +1 -1
  368. package/dist/components/Typography/Typography.module.scss.cjs.js +2 -2
  369. package/dist/components/Typography/Typography.module.scss.es.js +13 -13
  370. package/dist/components/_BaseStyling_/BaseStyling.cjs.js +2 -2
  371. package/dist/components/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
  372. package/dist/components/_BaseStyling_/BaseStyling.es.js +2 -4
  373. package/dist/components/_BaseStyling_/BaseStyling.es.js.map +1 -1
  374. package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js.map +1 -1
  375. package/dist/components/admin/layout/LeftNav/LeftNav.es.js +1 -1
  376. package/dist/components/admin/layout/LeftNav/LeftNav.es.js.map +1 -1
  377. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -2
  378. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.es.js +5 -5
  379. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -2
  380. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.es.js +14 -14
  381. package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js +1 -1
  382. package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js.map +1 -1
  383. package/dist/components/admin/layout/LeftNav/useRefItems.es.js +7 -6
  384. package/dist/components/admin/layout/LeftNav/useRefItems.es.js.map +1 -1
  385. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +2 -2
  386. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js +3 -3
  387. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js +2 -2
  388. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js +7 -7
  389. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js +2 -2
  390. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js +13 -13
  391. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.cjs.js +2 -2
  392. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.es.js +3 -3
  393. package/dist/components/withReadOnly.cjs.js +1 -1
  394. package/dist/components/withReadOnly.cjs.js.map +1 -1
  395. package/dist/components/withReadOnly.es.js +2 -4
  396. package/dist/components/withReadOnly.es.js.map +1 -1
  397. package/dist/hooks/useScreenSize.cjs.js +1 -1
  398. package/dist/hooks/useScreenSize.cjs.js.map +1 -1
  399. package/dist/hooks/useScreenSize.es.js +1 -1
  400. package/dist/hooks/useScreenSize.es.js.map +1 -1
  401. package/dist/hooks/useStickyStacking.cjs.js +2 -0
  402. package/dist/hooks/useStickyStacking.cjs.js.map +1 -0
  403. package/dist/hooks/useStickyStacking.es.js +208 -0
  404. package/dist/hooks/useStickyStacking.es.js.map +1 -0
  405. package/dist/hooks/useUploadFile.cjs.js +1 -1
  406. package/dist/hooks/useUploadFile.cjs.js.map +1 -1
  407. package/dist/hooks/useUploadFile.es.js +1 -1
  408. package/dist/hooks/useUploadFile.es.js.map +1 -1
  409. package/dist/index.cjs.js +1 -1
  410. package/dist/index.d.ts +95 -7
  411. package/dist/index.es.js +2 -0
  412. package/dist/index.es.js.map +1 -1
  413. package/dist/readyclasses.module.scss.cjs.js +2 -2
  414. package/dist/readyclasses.module.scss.es.js +5 -5
  415. package/dist/util/helper.cjs.js +1 -1
  416. package/dist/util/helper.cjs.js.map +1 -1
  417. package/dist/util/helper.es.js +14 -16
  418. package/dist/util/helper.es.js.map +1 -1
  419. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.MicrofrontendContainer_microfrontend-container-margin_EVNeA{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_EVNeA{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_EVNeA","microfrontend-container-max-width":"MicrofrontendContainer_microfrontend-container-max-width_EVNeA"};
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.MicrofrontendContainer_microfrontend-container-margin_PX3IM{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_PX3IM{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_PX3IM","microfrontend-container-max-width":"MicrofrontendContainer_microfrontend-container-max-width_PX3IM"};
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_EVNeA{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_EVNeA{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_PX3IM{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_PX3IM{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_EVNeA",
4
- "microfrontend-container-max-width": "MicrofrontendContainer_microfrontend-container-max-width_EVNeA"
3
+ "microfrontend-container-margin": "MicrofrontendContainer_microfrontend-container-margin_PX3IM",
4
+ "microfrontend-container-max-width": "MicrofrontendContainer_microfrontend-container-max-width_PX3IM"
5
5
  };
6
6
  export {
7
7
  classes as default
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ProfileMenu_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ProfileMenu_hidden_EVNeA{display:none}.ProfileMenu_slide-in_EVNeA{animation:ProfileMenu_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-in_EVNeA{animation-duration:.1ms}}.ProfileMenu_slide-out_EVNeA{animation:ProfileMenu_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-out_EVNeA{animation-duration:.1ms}}@keyframes ProfileMenu_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes ProfileMenu_slide-out_EVNeA{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_EVNeA{display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:0 .75rem}.ProfileMenu_trigger_EVNeA: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_EVNeA{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_EVNeA:hover{background-color:var(--color-primary600)}.ProfileMenu_circle_EVNeA.ProfileMenu_active_EVNeA{background-color:var(--color-primary700)}.ProfileMenu_initials_EVNeA{font-weight:700;font-size:1rem;pointer-events:none}.ProfileMenu_img_EVNeA{width:100%;height:100%;object-fit:cover;border-radius:50%}.ProfileMenu_popover_EVNeA{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_EVNeA",i="ProfileMenu_circle_EVNeA",r="ProfileMenu_active_EVNeA",o="ProfileMenu_initials_EVNeA",t="ProfileMenu_img_EVNeA",l="ProfileMenu_popover_EVNeA",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;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ProfileMenu_sr-only_PX3IM{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ProfileMenu_hidden_PX3IM{display:none}.ProfileMenu_slide-in_PX3IM{animation:ProfileMenu_slide-in_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-in_PX3IM{animation-duration:.1ms}}.ProfileMenu_slide-out_PX3IM{animation:ProfileMenu_slide-out_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-out_PX3IM{animation-duration:.1ms}}@keyframes ProfileMenu_slide-in_PX3IM{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes ProfileMenu_slide-out_PX3IM{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_PX3IM{display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:0 .75rem}.ProfileMenu_trigger_PX3IM: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_PX3IM{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_PX3IM:hover{background-color:var(--color-primary600)}.ProfileMenu_circle_PX3IM.ProfileMenu_active_PX3IM{background-color:var(--color-primary700)}.ProfileMenu_initials_PX3IM{font-weight:700;font-size:1rem;pointer-events:none}.ProfileMenu_img_PX3IM{width:100%;height:100%;object-fit:cover;border-radius:50%}.ProfileMenu_popover_PX3IM{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_PX3IM",i="ProfileMenu_circle_PX3IM",r="ProfileMenu_active_PX3IM",o="ProfileMenu_initials_PX3IM",t="ProfileMenu_img_PX3IM",l="ProfileMenu_popover_PX3IM",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
3
  //# sourceMappingURL=ProfileMenu.module.scss.cjs.js.map
@@ -1,10 +1,10 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ProfileMenu_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ProfileMenu_hidden_EVNeA{display:none}.ProfileMenu_slide-in_EVNeA{animation:ProfileMenu_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-in_EVNeA{animation-duration:.1ms}}.ProfileMenu_slide-out_EVNeA{animation:ProfileMenu_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-out_EVNeA{animation-duration:.1ms}}@keyframes ProfileMenu_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes ProfileMenu_slide-out_EVNeA{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_EVNeA{display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:0 .75rem}.ProfileMenu_trigger_EVNeA: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_EVNeA{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_EVNeA:hover{background-color:var(--color-primary600)}.ProfileMenu_circle_EVNeA.ProfileMenu_active_EVNeA{background-color:var(--color-primary700)}.ProfileMenu_initials_EVNeA{font-weight:700;font-size:1rem;pointer-events:none}.ProfileMenu_img_EVNeA{width:100%;height:100%;object-fit:cover;border-radius:50%}.ProfileMenu_popover_EVNeA{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_EVNeA";
3
- const circle = "ProfileMenu_circle_EVNeA";
4
- const active = "ProfileMenu_active_EVNeA";
5
- const initials = "ProfileMenu_initials_EVNeA";
6
- const img = "ProfileMenu_img_EVNeA";
7
- const popover = "ProfileMenu_popover_EVNeA";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ProfileMenu_sr-only_PX3IM{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ProfileMenu_hidden_PX3IM{display:none}.ProfileMenu_slide-in_PX3IM{animation:ProfileMenu_slide-in_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-in_PX3IM{animation-duration:.1ms}}.ProfileMenu_slide-out_PX3IM{animation:ProfileMenu_slide-out_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-out_PX3IM{animation-duration:.1ms}}@keyframes ProfileMenu_slide-in_PX3IM{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes ProfileMenu_slide-out_PX3IM{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_PX3IM{display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:0 .75rem}.ProfileMenu_trigger_PX3IM: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_PX3IM{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_PX3IM:hover{background-color:var(--color-primary600)}.ProfileMenu_circle_PX3IM.ProfileMenu_active_PX3IM{background-color:var(--color-primary700)}.ProfileMenu_initials_PX3IM{font-weight:700;font-size:1rem;pointer-events:none}.ProfileMenu_img_PX3IM{width:100%;height:100%;object-fit:cover;border-radius:50%}.ProfileMenu_popover_PX3IM{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_PX3IM";
3
+ const circle = "ProfileMenu_circle_PX3IM";
4
+ const active = "ProfileMenu_active_PX3IM";
5
+ const initials = "ProfileMenu_initials_PX3IM";
6
+ const img = "ProfileMenu_img_PX3IM";
7
+ const popover = "ProfileMenu_popover_PX3IM";
8
8
  const classes = {
9
9
  trigger,
10
10
  circle,
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.TopNavBar_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TopNavBar_hidden_EVNeA{display:none}.TopNavBar_slide-in_EVNeA{animation:TopNavBar_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-in_EVNeA{animation-duration:.1ms}}.TopNavBar_slide-out_EVNeA{animation:TopNavBar_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-out_EVNeA{animation-duration:.1ms}}@keyframes TopNavBar_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TopNavBar_slide-out_EVNeA{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_EVNeA{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_EVNeA .TopNavBar_left-section_EVNeA{flex-shrink:0;display:flex;align-items:center}.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-link_EVNeA{display:flex;align-items:center;text-decoration:none}.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-container_EVNeA{display:flex;align-items:center}.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-container_EVNeA .TopNavBar_logo-small_EVNeA{height:2.5rem;display:flex;align-items:center;margin:0 1rem}.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-container_EVNeA .TopNavBar_logo_EVNeA{display:none}@media screen and (min-width:30em){.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-container_EVNeA .TopNavBar_logo-small_EVNeA{display:none;height:0}.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-container_EVNeA .TopNavBar_logo_EVNeA{display:block;margin-left:1rem}}@media screen and (min-width:30em)and (min-width:50em){.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-container_EVNeA .TopNavBar_logo_EVNeA{margin-left:.75rem;margin-right:0}}.TopNavBar_topnavbar_EVNeA .TopNavBar_sr-only_EVNeA{position:absolute;margin:-1px;height:1px;width:1px;overflow:hidden}.TopNavBar_topnavbar_EVNeA .TopNavBar_separator_EVNeA{border:none;width:1px;height:2.5rem;background-color:#dedee6;flex-shrink:0;align-self:center;margin:0 3rem}.TopNavBar_topnavbar_EVNeA .TopNavBar_middle-section_EVNeA{flex:1;display:flex;align-items:center;min-width:0;margin-left:6.0625rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_EVNeA .TopNavBar_middle-section_EVNeA{margin-left:0}}.TopNavBar_topnavbar_EVNeA .TopNavBar_separator_EVNeA+.TopNavBar_middle-section_EVNeA{margin-left:0}.TopNavBar_topnavbar_EVNeA .TopNavBar_right-section_EVNeA{display:flex;align-items:center;margin-left:auto;justify-content:flex-end;gap:1rem;padding-left:1rem}.TopNavBar_topnavbar_EVNeA .TopNavBar_menu-button_EVNeA{flex-shrink:0;margin-left:.75rem;display:none;--font-size: 1rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_EVNeA .TopNavBar_menu-button_EVNeA{display:initial}}.TopNavBar_topnavbar_EVNeA .TopNavBar_menu-button_EVNeA.TopNavBar_menu--collapsed_EVNeA{display:initial}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="TopNavBar_topnavbar_EVNeA",e="TopNavBar_logo_EVNeA",a="TopNavBar_separator_EVNeA",r={"sr-only":"TopNavBar_sr-only_EVNeA",topnavbar:o,"left-section":"TopNavBar_left-section_EVNeA","logo-link":"TopNavBar_logo-link_EVNeA","logo-container":"TopNavBar_logo-container_EVNeA","logo-small":"TopNavBar_logo-small_EVNeA",logo:e,separator:a,"middle-section":"TopNavBar_middle-section_EVNeA","right-section":"TopNavBar_right-section_EVNeA","menu-button":"TopNavBar_menu-button_EVNeA","menu--collapsed":"TopNavBar_menu--collapsed_EVNeA"};exports.default=r,exports.logo=e,exports.separator=a,exports.topnavbar=o;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.TopNavBar_sr-only_PX3IM{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TopNavBar_hidden_PX3IM{display:none}.TopNavBar_slide-in_PX3IM{animation:TopNavBar_slide-in_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-in_PX3IM{animation-duration:.1ms}}.TopNavBar_slide-out_PX3IM{animation:TopNavBar_slide-out_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-out_PX3IM{animation-duration:.1ms}}@keyframes TopNavBar_slide-in_PX3IM{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TopNavBar_slide-out_PX3IM{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_PX3IM{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_PX3IM .TopNavBar_left-section_PX3IM{flex-shrink:0;display:flex;align-items:center}.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-link_PX3IM{display:flex;align-items:center;text-decoration:none}.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-container_PX3IM{display:flex;align-items:center}.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-container_PX3IM .TopNavBar_logo-small_PX3IM{height:2.5rem;display:flex;align-items:center;margin:0 1rem}.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-container_PX3IM .TopNavBar_logo_PX3IM{display:none}@media screen and (min-width:30em){.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-container_PX3IM .TopNavBar_logo-small_PX3IM{display:none;height:0}.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-container_PX3IM .TopNavBar_logo_PX3IM{display:block;margin-left:1rem}}@media screen and (min-width:30em)and (min-width:50em){.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-container_PX3IM .TopNavBar_logo_PX3IM{margin-left:.75rem;margin-right:0}}.TopNavBar_topnavbar_PX3IM .TopNavBar_sr-only_PX3IM{position:absolute;margin:-1px;height:1px;width:1px;overflow:hidden}.TopNavBar_topnavbar_PX3IM .TopNavBar_separator_PX3IM{border:none;width:1px;height:2.5rem;background-color:#dedee6;flex-shrink:0;align-self:center;margin:0 3rem}.TopNavBar_topnavbar_PX3IM .TopNavBar_middle-section_PX3IM{flex:1;display:flex;align-items:center;min-width:0;margin-left:6.0625rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_PX3IM .TopNavBar_middle-section_PX3IM{margin-left:0}}.TopNavBar_topnavbar_PX3IM .TopNavBar_separator_PX3IM+.TopNavBar_middle-section_PX3IM{margin-left:0}.TopNavBar_topnavbar_PX3IM .TopNavBar_right-section_PX3IM{display:flex;align-items:center;margin-left:auto;justify-content:flex-end;gap:1rem;padding-left:1rem}.TopNavBar_topnavbar_PX3IM .TopNavBar_menu-button_PX3IM{flex-shrink:0;margin-left:.75rem;display:none;--font-size: 1rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_PX3IM .TopNavBar_menu-button_PX3IM{display:initial}}.TopNavBar_topnavbar_PX3IM .TopNavBar_menu-button_PX3IM.TopNavBar_menu--collapsed_PX3IM{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_PX3IM",a="TopNavBar_logo_PX3IM",e="TopNavBar_separator_PX3IM",r={"sr-only":"TopNavBar_sr-only_PX3IM",topnavbar:o,"left-section":"TopNavBar_left-section_PX3IM","logo-link":"TopNavBar_logo-link_PX3IM","logo-container":"TopNavBar_logo-container_PX3IM","logo-small":"TopNavBar_logo-small_PX3IM",logo:a,separator:e,"middle-section":"TopNavBar_middle-section_PX3IM","right-section":"TopNavBar_right-section_PX3IM","menu-button":"TopNavBar_menu-button_PX3IM","menu--collapsed":"TopNavBar_menu--collapsed_PX3IM"};exports.default=r,exports.logo=a,exports.separator=e,exports.topnavbar=o;
3
3
  //# sourceMappingURL=TopNavBar.module.scss.cjs.js.map
@@ -1,20 +1,20 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.TopNavBar_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TopNavBar_hidden_EVNeA{display:none}.TopNavBar_slide-in_EVNeA{animation:TopNavBar_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-in_EVNeA{animation-duration:.1ms}}.TopNavBar_slide-out_EVNeA{animation:TopNavBar_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-out_EVNeA{animation-duration:.1ms}}@keyframes TopNavBar_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TopNavBar_slide-out_EVNeA{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_EVNeA{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_EVNeA .TopNavBar_left-section_EVNeA{flex-shrink:0;display:flex;align-items:center}.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-link_EVNeA{display:flex;align-items:center;text-decoration:none}.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-container_EVNeA{display:flex;align-items:center}.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-container_EVNeA .TopNavBar_logo-small_EVNeA{height:2.5rem;display:flex;align-items:center;margin:0 1rem}.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-container_EVNeA .TopNavBar_logo_EVNeA{display:none}@media screen and (min-width:30em){.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-container_EVNeA .TopNavBar_logo-small_EVNeA{display:none;height:0}.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-container_EVNeA .TopNavBar_logo_EVNeA{display:block;margin-left:1rem}}@media screen and (min-width:30em)and (min-width:50em){.TopNavBar_topnavbar_EVNeA .TopNavBar_logo-container_EVNeA .TopNavBar_logo_EVNeA{margin-left:.75rem;margin-right:0}}.TopNavBar_topnavbar_EVNeA .TopNavBar_sr-only_EVNeA{position:absolute;margin:-1px;height:1px;width:1px;overflow:hidden}.TopNavBar_topnavbar_EVNeA .TopNavBar_separator_EVNeA{border:none;width:1px;height:2.5rem;background-color:#dedee6;flex-shrink:0;align-self:center;margin:0 3rem}.TopNavBar_topnavbar_EVNeA .TopNavBar_middle-section_EVNeA{flex:1;display:flex;align-items:center;min-width:0;margin-left:6.0625rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_EVNeA .TopNavBar_middle-section_EVNeA{margin-left:0}}.TopNavBar_topnavbar_EVNeA .TopNavBar_separator_EVNeA+.TopNavBar_middle-section_EVNeA{margin-left:0}.TopNavBar_topnavbar_EVNeA .TopNavBar_right-section_EVNeA{display:flex;align-items:center;margin-left:auto;justify-content:flex-end;gap:1rem;padding-left:1rem}.TopNavBar_topnavbar_EVNeA .TopNavBar_menu-button_EVNeA{flex-shrink:0;margin-left:.75rem;display:none;--font-size: 1rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_EVNeA .TopNavBar_menu-button_EVNeA{display:initial}}.TopNavBar_topnavbar_EVNeA .TopNavBar_menu-button_EVNeA.TopNavBar_menu--collapsed_EVNeA{display:initial}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
2
- const topnavbar = "TopNavBar_topnavbar_EVNeA";
3
- const logo = "TopNavBar_logo_EVNeA";
4
- const separator = "TopNavBar_separator_EVNeA";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.TopNavBar_sr-only_PX3IM{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TopNavBar_hidden_PX3IM{display:none}.TopNavBar_slide-in_PX3IM{animation:TopNavBar_slide-in_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-in_PX3IM{animation-duration:.1ms}}.TopNavBar_slide-out_PX3IM{animation:TopNavBar_slide-out_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-out_PX3IM{animation-duration:.1ms}}@keyframes TopNavBar_slide-in_PX3IM{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TopNavBar_slide-out_PX3IM{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_PX3IM{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_PX3IM .TopNavBar_left-section_PX3IM{flex-shrink:0;display:flex;align-items:center}.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-link_PX3IM{display:flex;align-items:center;text-decoration:none}.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-container_PX3IM{display:flex;align-items:center}.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-container_PX3IM .TopNavBar_logo-small_PX3IM{height:2.5rem;display:flex;align-items:center;margin:0 1rem}.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-container_PX3IM .TopNavBar_logo_PX3IM{display:none}@media screen and (min-width:30em){.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-container_PX3IM .TopNavBar_logo-small_PX3IM{display:none;height:0}.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-container_PX3IM .TopNavBar_logo_PX3IM{display:block;margin-left:1rem}}@media screen and (min-width:30em)and (min-width:50em){.TopNavBar_topnavbar_PX3IM .TopNavBar_logo-container_PX3IM .TopNavBar_logo_PX3IM{margin-left:.75rem;margin-right:0}}.TopNavBar_topnavbar_PX3IM .TopNavBar_sr-only_PX3IM{position:absolute;margin:-1px;height:1px;width:1px;overflow:hidden}.TopNavBar_topnavbar_PX3IM .TopNavBar_separator_PX3IM{border:none;width:1px;height:2.5rem;background-color:#dedee6;flex-shrink:0;align-self:center;margin:0 3rem}.TopNavBar_topnavbar_PX3IM .TopNavBar_middle-section_PX3IM{flex:1;display:flex;align-items:center;min-width:0;margin-left:6.0625rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_PX3IM .TopNavBar_middle-section_PX3IM{margin-left:0}}.TopNavBar_topnavbar_PX3IM .TopNavBar_separator_PX3IM+.TopNavBar_middle-section_PX3IM{margin-left:0}.TopNavBar_topnavbar_PX3IM .TopNavBar_right-section_PX3IM{display:flex;align-items:center;margin-left:auto;justify-content:flex-end;gap:1rem;padding-left:1rem}.TopNavBar_topnavbar_PX3IM .TopNavBar_menu-button_PX3IM{flex-shrink:0;margin-left:.75rem;display:none;--font-size: 1rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_PX3IM .TopNavBar_menu-button_PX3IM{display:initial}}.TopNavBar_topnavbar_PX3IM .TopNavBar_menu-button_PX3IM.TopNavBar_menu--collapsed_PX3IM{display:initial}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
+ const topnavbar = "TopNavBar_topnavbar_PX3IM";
3
+ const logo = "TopNavBar_logo_PX3IM";
4
+ const separator = "TopNavBar_separator_PX3IM";
5
5
  const classes = {
6
- "sr-only": "TopNavBar_sr-only_EVNeA",
6
+ "sr-only": "TopNavBar_sr-only_PX3IM",
7
7
  topnavbar,
8
- "left-section": "TopNavBar_left-section_EVNeA",
9
- "logo-link": "TopNavBar_logo-link_EVNeA",
10
- "logo-container": "TopNavBar_logo-container_EVNeA",
11
- "logo-small": "TopNavBar_logo-small_EVNeA",
8
+ "left-section": "TopNavBar_left-section_PX3IM",
9
+ "logo-link": "TopNavBar_logo-link_PX3IM",
10
+ "logo-container": "TopNavBar_logo-container_PX3IM",
11
+ "logo-small": "TopNavBar_logo-small_PX3IM",
12
12
  logo,
13
13
  separator,
14
- "middle-section": "TopNavBar_middle-section_EVNeA",
15
- "right-section": "TopNavBar_right-section_EVNeA",
16
- "menu-button": "TopNavBar_menu-button_EVNeA",
17
- "menu--collapsed": "TopNavBar_menu--collapsed_EVNeA"
14
+ "middle-section": "TopNavBar_middle-section_PX3IM",
15
+ "right-section": "TopNavBar_right-section_PX3IM",
16
+ "menu-button": "TopNavBar_menu-button_PX3IM",
17
+ "menu--collapsed": "TopNavBar_menu--collapsed_PX3IM"
18
18
  };
19
19
  export {
20
20
  classes as default,
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-only_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.IdentityProviderButton_hidden_EVNeA{display:none}.IdentityProviderButton_slide-in_EVNeA{animation:IdentityProviderButton_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-in_EVNeA{animation-duration:.1ms}}.IdentityProviderButton_slide-out_EVNeA{animation:IdentityProviderButton_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-out_EVNeA{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_EVNeA{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_EVNeA{width:100%}.IdentityProviderButton_idp-button--with-icon_EVNeA{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_EVNeA","idp-button--with-icon":"IdentityProviderButton_idp-button--with-icon_EVNeA"};
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-only_PX3IM{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.IdentityProviderButton_hidden_PX3IM{display:none}.IdentityProviderButton_slide-in_PX3IM{animation:IdentityProviderButton_slide-in_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-in_PX3IM{animation-duration:.1ms}}.IdentityProviderButton_slide-out_PX3IM{animation:IdentityProviderButton_slide-out_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-out_PX3IM{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_PX3IM{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_PX3IM{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_PX3IM{width:100%}.IdentityProviderButton_idp-button--with-icon_PX3IM{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_PX3IM","idp-button--with-icon":"IdentityProviderButton_idp-button--with-icon_PX3IM"};
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_EVNeA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.IdentityProviderButton_hidden_EVNeA{display:none}.IdentityProviderButton_slide-in_EVNeA{animation:IdentityProviderButton_slide-in_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-in_EVNeA{animation-duration:.1ms}}.IdentityProviderButton_slide-out_EVNeA{animation:IdentityProviderButton_slide-out_EVNeA .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-out_EVNeA{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_EVNeA{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_EVNeA{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_EVNeA{width:100%}.IdentityProviderButton_idp-button--with-icon_EVNeA{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_PX3IM{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.IdentityProviderButton_hidden_PX3IM{display:none}.IdentityProviderButton_slide-in_PX3IM{animation:IdentityProviderButton_slide-in_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-in_PX3IM{animation-duration:.1ms}}.IdentityProviderButton_slide-out_PX3IM{animation:IdentityProviderButton_slide-out_PX3IM .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-out_PX3IM{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_PX3IM{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_PX3IM{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_PX3IM{width:100%}.IdentityProviderButton_idp-button--with-icon_PX3IM{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_EVNeA",
4
- "idp-button--with-icon": "IdentityProviderButton_idp-button--with-icon_EVNeA"
3
+ "idp-button": "IdentityProviderButton_idp-button_PX3IM",
4
+ "idp-button--with-icon": "IdentityProviderButton_idp-button--with-icon_PX3IM"
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=new Set(["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.has(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:y,type:d="",...u}=r;return e.createElement(n,{ref:a,...u,"data-readonlyview":i,"aria-readonly":o?void 0:i,required:!i&&l,...t(i,d,y),...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, 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
+ {"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 = new Set<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.has(WrappedComponent.displayName || WrappedComponent.name)\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","Set","getConditionalProps","readOnlyView","type","helperText","props","style","pointerEvents","userSelect","WrappedComponent","options","isWrapperComponent","preventKeyUpAndKeyDownHandlerForSpecificComponents","preventSubmissionKeys","e","key","stopPropagation","preventDefault","has","displayName","name","WithReadOnlyComponent","React","forwardRef","ref","required","children","restProps","createElement","getDisplayName"],"mappings":"yGAyBMA,EAAmC,IAAIC,IAAY,CAAC,oBAMpDC,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,GACAH,EAAiCmB,IAAIT,EAAiBU,aAAeV,EAAiBW,MACtF,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,gBA5Ff,CAAKV,GACnBA,EAAiBU,aAAeV,EAAiBW,MAAQ,YA2FZS,CAAepB,KAC5DY"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- const componentsWithKeyEventsToPrevent = ["CheckboxWrapper"];
2
+ const componentsWithKeyEventsToPrevent = /* @__PURE__ */ new Set(["CheckboxWrapper"]);
3
3
  const getDisplayName = (WrappedComponent) => {
4
4
  return WrappedComponent.displayName ?? WrappedComponent.name ?? "Component";
5
5
  };
@@ -28,9 +28,7 @@ const withReadOnly = (WrappedComponent, options) => {
28
28
  e.preventDefault();
29
29
  }
30
30
  };
31
- if (readOnlyView && componentsWithKeyEventsToPrevent.includes(
32
- WrappedComponent.displayName || WrappedComponent.name
33
- )) {
31
+ if (readOnlyView && componentsWithKeyEventsToPrevent.has(WrappedComponent.displayName || WrappedComponent.name)) {
34
32
  const props = {};
35
33
  props.onKeyUp = (e) => {
36
34
  preventSubmissionKeys(e);
@@ -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, 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
+ {"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 = new Set<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.has(WrappedComponent.displayName || WrappedComponent.name)\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,mCAAmC,oBAAI,IAAY,CAAC,iBAAiB,CAAC;AAE5E,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,IAAI,iBAAiB,eAAe,iBAAiB,IAAI,GAC1F;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"),n=require("../variables.cjs.js"),r=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),t=e=>e<r(n.breakpoints[n.ScreenSize.SMALL])?n.ScreenSize.SMALL:e<r(n.breakpoints[n.ScreenSize.MEDIUM])?n.ScreenSize.MEDIUM:n.ScreenSize.LARGE;exports.useScreenSize=({onScreenSizeChange:r}={})=>{const[i,S]=e.useState(t(window.innerWidth));return e.useEffect(()=>{const e=()=>{const e=t(window.innerWidth);S(n=>e!==n?(null==r||r(e,n),e):n)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),{screenSize:i,isDesktopScreenSize:()=>i===n.ScreenSize.LARGE}};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),n=require("../variables.cjs.js"),r=e=>e*Number.parseFloat(getComputedStyle(document.documentElement).fontSize),t=e=>e<r(n.breakpoints[n.ScreenSize.SMALL])?n.ScreenSize.SMALL:e<r(n.breakpoints[n.ScreenSize.MEDIUM])?n.ScreenSize.MEDIUM:n.ScreenSize.LARGE;exports.useScreenSize=({onScreenSizeChange:r}={})=>{const[i,S]=e.useState(t(window.innerWidth));return e.useEffect(()=>{const e=()=>{const e=t(window.innerWidth);S(n=>e!==n?(null==r||r(e,n),e):n)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),{screenSize:i,isDesktopScreenSize:()=>i===n.ScreenSize.LARGE}};
2
2
  //# sourceMappingURL=useScreenSize.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useScreenSize.cjs.js","sources":["../../src/hooks/useScreenSize.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 { useState, useEffect } from \"react\";\nimport { breakpoints, ScreenSize } from \"../variables\";\n\ninterface Props {\n onScreenSizeChange?: (nextScreenSize: ScreenSize, prevScreenSize?: ScreenSize) => void;\n}\n\nconst emToPx = (em: number) => em * parseFloat(getComputedStyle(document.documentElement).fontSize);\n\nconst getScreenSize = (width: number) => {\n if (width < emToPx(breakpoints[ScreenSize.SMALL])) {\n return ScreenSize.SMALL;\n }\n if (width < emToPx(breakpoints[ScreenSize.MEDIUM])) {\n return ScreenSize.MEDIUM;\n }\n\n return ScreenSize.LARGE;\n};\n\nexport const useScreenSize = ({ onScreenSizeChange }: Props = {}) => {\n const [screenSize, setScreenSize] = useState<ScreenSize>(getScreenSize(window.innerWidth));\n\n useEffect(() => {\n const handleResize = () => {\n const newScreenSize = getScreenSize(window.innerWidth);\n setScreenSize(prevScreenSize => {\n if (newScreenSize !== prevScreenSize) {\n onScreenSizeChange?.(newScreenSize, prevScreenSize);\n return newScreenSize;\n }\n return prevScreenSize;\n });\n };\n\n window.addEventListener(\"resize\", handleResize);\n handleResize();\n return () => window.removeEventListener(\"resize\", handleResize);\n }, []);\n\n const isDesktopScreenSize = () => screenSize === ScreenSize.LARGE;\n\n return { screenSize, isDesktopScreenSize };\n};\n"],"names":["emToPx","em","parseFloat","getComputedStyle","document","documentElement","fontSize","getScreenSize","width","breakpoints","ScreenSize","SMALL","MEDIUM","LARGE","onScreenSizeChange","screenSize","setScreenSize","useState","window","innerWidth","useEffect","handleResize","newScreenSize","prevScreenSize","addEventListener","removeEventListener","isDesktopScreenSize"],"mappings":"0IAuBMA,EAAUC,GAAeA,EAAKC,WAAWC,iBAAiBC,SAASC,iBAAiBC,UAEpFC,EAAiBC,GACjBA,EAAQR,EAAOS,EAAAA,YAAYC,EAAAA,WAAWC,QACjCD,EAAAA,WAAWC,MAEhBH,EAAQR,EAAOS,EAAAA,YAAYC,EAAAA,WAAWE,SACjCF,EAAAA,WAAWE,OAGbF,EAAAA,WAAWG,4BAGS,EAAGC,sBAA8B,MAC5D,MAAOC,EAAYC,GAAiBC,EAAAA,SAAqBV,EAAcW,OAAOC,aAqB9E,OAnBAC,EAAAA,UAAU,KACR,MAAMC,EAAe,KACnB,MAAMC,EAAgBf,EAAcW,OAAOC,YAC3CH,EAAcO,GACRD,IAAkBC,GACpB,MAAAT,GAAAA,EAAqBQ,EAAeC,GAC7BD,GAEFC,IAMX,OAFAL,OAAOM,iBAAiB,SAAUH,GAClCA,IACO,IAAMH,OAAOO,oBAAoB,SAAUJ,IACjD,IAII,CAAEN,aAAYW,oBAFO,IAAMX,IAAeL,EAAAA,WAAWG"}
1
+ {"version":3,"file":"useScreenSize.cjs.js","sources":["../../src/hooks/useScreenSize.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 { useState, useEffect } from \"react\";\nimport { breakpoints, ScreenSize } from \"../variables\";\n\ninterface Props {\n onScreenSizeChange?: (nextScreenSize: ScreenSize, prevScreenSize?: ScreenSize) => void;\n}\n\nconst emToPx = (em: number) =>\n em * Number.parseFloat(getComputedStyle(document.documentElement).fontSize);\n\nconst getScreenSize = (width: number) => {\n if (width < emToPx(breakpoints[ScreenSize.SMALL])) {\n return ScreenSize.SMALL;\n }\n if (width < emToPx(breakpoints[ScreenSize.MEDIUM])) {\n return ScreenSize.MEDIUM;\n }\n\n return ScreenSize.LARGE;\n};\n\nexport const useScreenSize = ({ onScreenSizeChange }: Props = {}) => {\n const [screenSize, setScreenSize] = useState<ScreenSize>(getScreenSize(window.innerWidth));\n\n useEffect(() => {\n const handleResize = () => {\n const newScreenSize = getScreenSize(window.innerWidth);\n setScreenSize(prevScreenSize => {\n if (newScreenSize !== prevScreenSize) {\n onScreenSizeChange?.(newScreenSize, prevScreenSize);\n return newScreenSize;\n }\n return prevScreenSize;\n });\n };\n\n window.addEventListener(\"resize\", handleResize);\n handleResize();\n return () => window.removeEventListener(\"resize\", handleResize);\n }, []);\n\n const isDesktopScreenSize = () => screenSize === ScreenSize.LARGE;\n\n return { screenSize, isDesktopScreenSize };\n};\n"],"names":["emToPx","em","Number","parseFloat","getComputedStyle","document","documentElement","fontSize","getScreenSize","width","breakpoints","ScreenSize","SMALL","MEDIUM","LARGE","onScreenSizeChange","screenSize","setScreenSize","useState","window","innerWidth","useEffect","handleResize","newScreenSize","prevScreenSize","addEventListener","removeEventListener","isDesktopScreenSize"],"mappings":"0IAuBMA,EAAUC,GACdA,EAAKC,OAAOC,WAAWC,iBAAiBC,SAASC,iBAAiBC,UAE9DC,EAAiBC,GACjBA,EAAQT,EAAOU,EAAAA,YAAYC,EAAAA,WAAWC,QACjCD,EAAAA,WAAWC,MAEhBH,EAAQT,EAAOU,EAAAA,YAAYC,EAAAA,WAAWE,SACjCF,EAAAA,WAAWE,OAGbF,EAAAA,WAAWG,4BAGS,EAAGC,sBAA8B,MAC5D,MAAOC,EAAYC,GAAiBC,EAAAA,SAAqBV,EAAcW,OAAOC,aAqB9E,OAnBAC,EAAAA,UAAU,KACR,MAAMC,EAAe,KACnB,MAAMC,EAAgBf,EAAcW,OAAOC,YAC3CH,EAAcO,GACRD,IAAkBC,GACpB,MAAAT,GAAAA,EAAqBQ,EAAeC,GAC7BD,GAEFC,IAMX,OAFAL,OAAOM,iBAAiB,SAAUH,GAClCA,IACO,IAAMH,OAAOO,oBAAoB,SAAUJ,IACjD,IAII,CAAEN,aAAYW,oBAFO,IAAMX,IAAeL,EAAAA,WAAWG"}
@@ -1,6 +1,6 @@
1
1
  import { useState, useEffect } from "react";
2
2
  import { breakpoints, ScreenSize } from "../variables.es.js";
3
- const emToPx = (em) => em * parseFloat(getComputedStyle(document.documentElement).fontSize);
3
+ const emToPx = (em) => em * Number.parseFloat(getComputedStyle(document.documentElement).fontSize);
4
4
  const getScreenSize = (width) => {
5
5
  if (width < emToPx(breakpoints[ScreenSize.SMALL])) {
6
6
  return ScreenSize.SMALL;
@@ -1 +1 @@
1
- {"version":3,"file":"useScreenSize.es.js","sources":["../../src/hooks/useScreenSize.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 { useState, useEffect } from \"react\";\nimport { breakpoints, ScreenSize } from \"../variables\";\n\ninterface Props {\n onScreenSizeChange?: (nextScreenSize: ScreenSize, prevScreenSize?: ScreenSize) => void;\n}\n\nconst emToPx = (em: number) => em * parseFloat(getComputedStyle(document.documentElement).fontSize);\n\nconst getScreenSize = (width: number) => {\n if (width < emToPx(breakpoints[ScreenSize.SMALL])) {\n return ScreenSize.SMALL;\n }\n if (width < emToPx(breakpoints[ScreenSize.MEDIUM])) {\n return ScreenSize.MEDIUM;\n }\n\n return ScreenSize.LARGE;\n};\n\nexport const useScreenSize = ({ onScreenSizeChange }: Props = {}) => {\n const [screenSize, setScreenSize] = useState<ScreenSize>(getScreenSize(window.innerWidth));\n\n useEffect(() => {\n const handleResize = () => {\n const newScreenSize = getScreenSize(window.innerWidth);\n setScreenSize(prevScreenSize => {\n if (newScreenSize !== prevScreenSize) {\n onScreenSizeChange?.(newScreenSize, prevScreenSize);\n return newScreenSize;\n }\n return prevScreenSize;\n });\n };\n\n window.addEventListener(\"resize\", handleResize);\n handleResize();\n return () => window.removeEventListener(\"resize\", handleResize);\n }, []);\n\n const isDesktopScreenSize = () => screenSize === ScreenSize.LARGE;\n\n return { screenSize, isDesktopScreenSize };\n};\n"],"names":[],"mappings":";;AAuBA,MAAM,SAAS,CAAC,OAAe,KAAK,WAAW,iBAAiB,SAAS,eAAe,EAAE,QAAQ;AAElG,MAAM,gBAAgB,CAAC,UAAkB;AACvC,MAAI,QAAQ,OAAO,YAAY,WAAW,KAAK,CAAC,GAAG;AACjD,WAAO,WAAW;AAAA,EACpB;AACA,MAAI,QAAQ,OAAO,YAAY,WAAW,MAAM,CAAC,GAAG;AAClD,WAAO,WAAW;AAAA,EACpB;AAEA,SAAO,WAAW;AACpB;AAEO,MAAM,gBAAgB,CAAC,EAAE,mBAAA,IAA8B,OAAO;AACnE,QAAM,CAAC,YAAY,aAAa,IAAI,SAAqB,cAAc,OAAO,UAAU,CAAC;AAEzF,YAAU,MAAM;AACd,UAAM,eAAe,MAAM;AACzB,YAAM,gBAAgB,cAAc,OAAO,UAAU;AACrD,oBAAc,CAAA,mBAAkB;AAC9B,YAAI,kBAAkB,gBAAgB;AACpC,mEAAqB,eAAe;AACpC,iBAAO;AAAA,QACT;AACA,eAAO;AAAA,MACT,CAAC;AAAA,IACH;AAEA,WAAO,iBAAiB,UAAU,YAAY;AAC9C,iBAAA;AACA,WAAO,MAAM,OAAO,oBAAoB,UAAU,YAAY;AAAA,EAChE,GAAG,CAAA,CAAE;AAEL,QAAM,sBAAsB,MAAM,eAAe,WAAW;AAE5D,SAAO,EAAE,YAAY,oBAAA;AACvB;"}
1
+ {"version":3,"file":"useScreenSize.es.js","sources":["../../src/hooks/useScreenSize.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 { useState, useEffect } from \"react\";\nimport { breakpoints, ScreenSize } from \"../variables\";\n\ninterface Props {\n onScreenSizeChange?: (nextScreenSize: ScreenSize, prevScreenSize?: ScreenSize) => void;\n}\n\nconst emToPx = (em: number) =>\n em * Number.parseFloat(getComputedStyle(document.documentElement).fontSize);\n\nconst getScreenSize = (width: number) => {\n if (width < emToPx(breakpoints[ScreenSize.SMALL])) {\n return ScreenSize.SMALL;\n }\n if (width < emToPx(breakpoints[ScreenSize.MEDIUM])) {\n return ScreenSize.MEDIUM;\n }\n\n return ScreenSize.LARGE;\n};\n\nexport const useScreenSize = ({ onScreenSizeChange }: Props = {}) => {\n const [screenSize, setScreenSize] = useState<ScreenSize>(getScreenSize(window.innerWidth));\n\n useEffect(() => {\n const handleResize = () => {\n const newScreenSize = getScreenSize(window.innerWidth);\n setScreenSize(prevScreenSize => {\n if (newScreenSize !== prevScreenSize) {\n onScreenSizeChange?.(newScreenSize, prevScreenSize);\n return newScreenSize;\n }\n return prevScreenSize;\n });\n };\n\n window.addEventListener(\"resize\", handleResize);\n handleResize();\n return () => window.removeEventListener(\"resize\", handleResize);\n }, []);\n\n const isDesktopScreenSize = () => screenSize === ScreenSize.LARGE;\n\n return { screenSize, isDesktopScreenSize };\n};\n"],"names":[],"mappings":";;AAuBA,MAAM,SAAS,CAAC,OACd,KAAK,OAAO,WAAW,iBAAiB,SAAS,eAAe,EAAE,QAAQ;AAE5E,MAAM,gBAAgB,CAAC,UAAkB;AACvC,MAAI,QAAQ,OAAO,YAAY,WAAW,KAAK,CAAC,GAAG;AACjD,WAAO,WAAW;AAAA,EACpB;AACA,MAAI,QAAQ,OAAO,YAAY,WAAW,MAAM,CAAC,GAAG;AAClD,WAAO,WAAW;AAAA,EACpB;AAEA,SAAO,WAAW;AACpB;AAEO,MAAM,gBAAgB,CAAC,EAAE,mBAAA,IAA8B,OAAO;AACnE,QAAM,CAAC,YAAY,aAAa,IAAI,SAAqB,cAAc,OAAO,UAAU,CAAC;AAEzF,YAAU,MAAM;AACd,UAAM,eAAe,MAAM;AACzB,YAAM,gBAAgB,cAAc,OAAO,UAAU;AACrD,oBAAc,CAAA,mBAAkB;AAC9B,YAAI,kBAAkB,gBAAgB;AACpC,mEAAqB,eAAe;AACpC,iBAAO;AAAA,QACT;AACA,eAAO;AAAA,MACT,CAAC;AAAA,IACH;AAEA,WAAO,iBAAiB,UAAU,YAAY;AAC9C,iBAAA;AACA,WAAO,MAAM,OAAO,oBAAoB,UAAU,YAAY;AAAA,EAChE,GAAG,CAAA,CAAE;AAEL,QAAM,sBAAsB,MAAM,eAAe,WAAW;AAE5D,SAAO,EAAE,YAAY,oBAAA;AACvB;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=new Map,o=new Set;let n=0,r=null,s=0;function c(e,o){let n=0;for(let r=0;r<o;r++){const o=e[r],s=t.get(o);if(null==s?void 0:s.scope){const e=s.scope.getBoundingClientRect(),t=Math.min(o.offsetHeight,e.bottom-n);if(t<=0)continue;n+=t;continue}n+=o.offsetHeight}return n}function l(){const e=[...t.keys()].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);for(let o=0;o<e.length;o++){const n=e[o],r=t.get(n);if(!r)continue;const s=c(e,o);let l=0;s>0?l=s-1:r.cssOnly&&(l=-1),r.offset=l,n.style.setProperty("--sticky-stack-offset",`${l}px`),r.cssOnly||(n.style.position="sticky",n.style.top=`${l}px`,n.style.zIndex=`${r.zIndex}`)}}function i(){l(),o.forEach(e=>e())}const u=new Map;function f(e){const t=u.get(e);t?t.count++:(u.set(e,{count:1,previous:e.style.getPropertyValue("overflow-anchor")}),e.style.setProperty("overflow-anchor","none"))}function d(e){const t=u.get(e);t&&(t.count--,t.count>0||(u.delete(e),t.previous?e.style.setProperty("overflow-anchor",t.previous):e.style.removeProperty("overflow-anchor")))}exports.useStickyStacking=function(c,u=!0){const y="boolean"==typeof u?{enabled:u}:u,{enabled:a=!0,cssOnly:p=!1,zIndex:m,scope:v,disableScrollAnchoring:w=!1}=y,[g,E]=e.useState(!1),h=e.useRef(!1);e.useEffect(()=>{const e=c.current;if(!a||!e)return E(!1),void(h.current=!1);const u=(null==v?void 0:v.current)??void 0,y={element:e,scope:u,zIndex:m??(u?2:3),cssOnly:p,offset:0};t.set(e,y);const g=function(e){const t=e.ownerDocument,o=t.defaultView;let n=e.parentElement;for(;n&&n!==t.documentElement;){const e=o?o.getComputedStyle(n).overflowY:"";if("auto"===e||"scroll"===e||"overlay"===e)return n;n=n.parentElement}return null}(e),P=w?function(e,t){if(t)return[t];const o=e.ownerDocument;return o.body?[o.documentElement,o.body]:[o.documentElement]}(e,g):[];P.forEach(f);const b=()=>{const t=e.getBoundingClientRect(),o=g?g.getBoundingClientRect().top:0,n=(!g||g.scrollTop>0)&&t.top<=o+y.offset;n!==h.current&&(h.current=n,E(n))},O=new ResizeObserver(()=>{i()});return O.observe(e),o.add(b),n++,1===n&&(r=()=>{s||(s=requestAnimationFrame(()=>{s=0,i()}))},window.addEventListener("scroll",r,!0),window.addEventListener("resize",r)),i(),()=>{t.delete(e),o.delete(b),O.disconnect(),n--,0===n&&r&&(s&&(cancelAnimationFrame(s),s=0),window.removeEventListener("scroll",r,!0),window.removeEventListener("resize",r),r=null),P.forEach(d),l(),e.style.removeProperty("--sticky-stack-offset"),p||(e.style.removeProperty("position"),e.style.removeProperty("top"),e.style.removeProperty("z-index")),h.current=!1,E(!1)}},[a,c,v,m,p,w]);const P=e.useRef(!0);return e.useLayoutEffect(()=>{P.current?P.current=!1:l()},[g]),{isStuck:g}};
2
+ //# sourceMappingURL=useStickyStacking.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStickyStacking.cjs.js","sources":["../../src/hooks/useStickyStacking.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, useLayoutEffect, useRef, useState, RefObject } from \"react\";\n\ninterface StickyEntry {\n element: HTMLElement;\n scope?: HTMLElement;\n zIndex: number;\n cssOnly: boolean;\n offset: number;\n}\n\nexport interface StickyStackingOptions {\n enabled?: boolean;\n zIndex?: number;\n scope?: RefObject<HTMLElement | null>;\n cssOnly?: boolean;\n /**\n * Set when the sticky element changes size while docked (e.g. a header that\n * collapses when stuck). While such an element is mounted, scroll anchoring is\n * suppressed on its scroll container: otherwise the browser nudges the scroll\n * position to compensate for the element's own resize, which re-crosses the\n * stuck/unstuck threshold and makes the element oscillate indefinitely.\n */\n disableScrollAnchoring?: boolean;\n}\n\nexport interface StickyStackingResult {\n isStuck: boolean;\n}\n\nconst registry = new Map<HTMLElement, StickyEntry>();\nconst listeners = new Set<() => void>();\n\nlet scrollListenerCount = 0;\nlet scrollHandler: (() => void) | null = null;\nlet scrollFrame = 0;\n\nfunction computeCumulativeTop(sorted: HTMLElement[], myIndex: number): number {\n let top = 0;\n for (let i = 0; i < myIndex; i++) {\n const other = sorted[i];\n const otherEntry = registry.get(other);\n\n if (otherEntry?.scope) {\n const scopeRect = otherEntry.scope.getBoundingClientRect();\n const occupied = Math.min(other.offsetHeight, scopeRect.bottom - top);\n if (occupied <= 0) {\n continue;\n }\n top += occupied;\n continue;\n }\n\n top += other.offsetHeight;\n }\n return top;\n}\n\nfunction repositionAll() {\n const sorted = [...registry.keys()].sort((a, b) =>\n a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1\n );\n\n for (let myIndex = 0; myIndex < sorted.length; myIndex++) {\n const el = sorted[myIndex];\n const entry = registry.get(el);\n if (!entry) {\n continue;\n }\n\n const top = computeCumulativeTop(sorted, myIndex);\n\n let calculatedOffset = 0;\n if (top > 0) {\n calculatedOffset = top - 1;\n } else if (entry.cssOnly) {\n calculatedOffset = -1;\n }\n entry.offset = calculatedOffset;\n\n el.style.setProperty(\"--sticky-stack-offset\", `${calculatedOffset}px`);\n\n if (!entry.cssOnly) {\n el.style.position = \"sticky\";\n el.style.top = `${calculatedOffset}px`;\n el.style.zIndex = `${entry.zIndex}`;\n }\n }\n}\n\nfunction updateAll() {\n repositionAll();\n listeners.forEach(fn => fn());\n}\n\nfunction addScrollListener() {\n scrollListenerCount++;\n if (scrollListenerCount === 1) {\n scrollHandler = () => {\n if (!scrollFrame) {\n scrollFrame = requestAnimationFrame(() => {\n scrollFrame = 0;\n updateAll();\n });\n }\n };\n window.addEventListener(\"scroll\", scrollHandler, true);\n window.addEventListener(\"resize\", scrollHandler);\n }\n}\n\nfunction removeScrollListener() {\n scrollListenerCount--;\n if (scrollListenerCount === 0 && scrollHandler) {\n if (scrollFrame) {\n cancelAnimationFrame(scrollFrame);\n scrollFrame = 0;\n }\n window.removeEventListener(\"scroll\", scrollHandler, true);\n window.removeEventListener(\"resize\", scrollHandler);\n scrollHandler = null;\n }\n}\n\n// Elements whose scroll anchoring we have suppressed, ref-counted so multiple\n// resizing sticky elements sharing a scroll container restore it exactly once.\nconst scrollAnchorSuppressors = new Map<HTMLElement, { count: number; previous: string }>();\n\n/**\n * Nearest scrollable ancestor the element docks within, or null when it sticks\n * to the document/window scroller. Uses the element's own document/window so\n * it works inside iframes (e.g. the Storybook canvas).\n */\nfunction findScrollContainer(el: HTMLElement): HTMLElement | null {\n const doc = el.ownerDocument;\n const win = doc.defaultView;\n let node = el.parentElement;\n while (node && node !== doc.documentElement) {\n const overflowY = win ? win.getComputedStyle(node).overflowY : \"\";\n if (overflowY === \"auto\" || overflowY === \"scroll\" || overflowY === \"overlay\") {\n return node;\n }\n node = node.parentElement;\n }\n return null;\n}\n\n/**\n * Resolve which element(s) to suppress scroll anchoring on: the scrolling box the\n * sticky element docks within (nearest scrollable ancestor).\n *\n * For the root/viewport scroller there is a well-known quirk: whether scroll\n * anchoring is controlled by <html> or <body> differs between browsers, and\n * suppressing it on only one leaves the other anchoring the viewport (verified\n * live — the header still snapped back to scrollTop 0 with `none` on <html>\n * alone). So for the root case we suppress on both.\n */\nfunction getAnchorSuppressionTargets(\n el: HTMLElement,\n scrollContainer: HTMLElement | null\n): HTMLElement[] {\n if (scrollContainer) {\n return [scrollContainer];\n }\n const doc = el.ownerDocument;\n return doc.body ? [doc.documentElement, doc.body] : [doc.documentElement];\n}\n\nfunction suppressScrollAnchoring(container: HTMLElement) {\n const existing = scrollAnchorSuppressors.get(container);\n if (existing) {\n existing.count++;\n return;\n }\n scrollAnchorSuppressors.set(container, {\n count: 1,\n previous: container.style.getPropertyValue(\"overflow-anchor\")\n });\n container.style.setProperty(\"overflow-anchor\", \"none\");\n}\n\nfunction restoreScrollAnchoring(container: HTMLElement) {\n const existing = scrollAnchorSuppressors.get(container);\n if (!existing) {\n return;\n }\n existing.count--;\n if (existing.count > 0) {\n return;\n }\n scrollAnchorSuppressors.delete(container);\n if (existing.previous) {\n container.style.setProperty(\"overflow-anchor\", existing.previous);\n } else {\n container.style.removeProperty(\"overflow-anchor\");\n }\n}\n\nexport function useStickyStacking(\n ref: RefObject<HTMLElement | null>,\n options: StickyStackingOptions | boolean = true\n): StickyStackingResult {\n const opts = typeof options === \"boolean\" ? { enabled: options } : options;\n const {\n enabled = true,\n cssOnly = false,\n zIndex: zIndexOption,\n scope,\n disableScrollAnchoring = false\n } = opts;\n\n const [isStuck, setIsStuck] = useState(false);\n const isStuckRef = useRef(false);\n\n useEffect(() => {\n const el = ref.current;\n if (!enabled || !el) {\n setIsStuck(false);\n isStuckRef.current = false;\n return;\n }\n\n const resolvedScope = scope?.current ?? undefined;\n const zIndex = zIndexOption ?? (resolvedScope ? 2 : 3);\n\n const entry: StickyEntry = {\n element: el,\n scope: resolvedScope,\n zIndex,\n cssOnly,\n offset: 0\n };\n registry.set(el, entry);\n\n const scrollContainer = findScrollContainer(el);\n const scrollAnchorTargets = disableScrollAnchoring\n ? getAnchorSuppressionTargets(el, scrollContainer)\n : [];\n scrollAnchorTargets.forEach(suppressScrollAnchoring);\n\n const detect = () => {\n const rect = el.getBoundingClientRect();\n const containerTop = scrollContainer ? scrollContainer.getBoundingClientRect().top : 0;\n const stuck =\n (!scrollContainer || scrollContainer.scrollTop > 0) &&\n rect.top <= containerTop + entry.offset;\n if (stuck !== isStuckRef.current) {\n isStuckRef.current = stuck;\n setIsStuck(stuck);\n }\n };\n\n const observer = new ResizeObserver(() => {\n updateAll();\n });\n observer.observe(el);\n\n listeners.add(detect);\n addScrollListener();\n updateAll();\n\n return () => {\n registry.delete(el);\n listeners.delete(detect);\n observer.disconnect();\n removeScrollListener();\n scrollAnchorTargets.forEach(restoreScrollAnchoring);\n repositionAll();\n\n el.style.removeProperty(\"--sticky-stack-offset\");\n if (!cssOnly) {\n el.style.removeProperty(\"position\");\n el.style.removeProperty(\"top\");\n el.style.removeProperty(\"z-index\");\n }\n\n isStuckRef.current = false;\n setIsStuck(false);\n };\n }, [enabled, ref, scope, zIndexOption, cssOnly, disableScrollAnchoring]);\n\n const isInitialMount = useRef(true);\n useLayoutEffect(() => {\n if (isInitialMount.current) {\n isInitialMount.current = false;\n return;\n }\n repositionAll();\n }, [isStuck]);\n\n return { isStuck };\n}\n"],"names":["registry","Map","listeners","Set","scrollListenerCount","scrollHandler","scrollFrame","computeCumulativeTop","sorted","myIndex","top","i","other","otherEntry","get","scope","scopeRect","getBoundingClientRect","occupied","Math","min","offsetHeight","bottom","repositionAll","keys","sort","a","b","compareDocumentPosition","Node","DOCUMENT_POSITION_FOLLOWING","length","el","entry","calculatedOffset","cssOnly","offset","style","setProperty","position","zIndex","updateAll","forEach","fn","scrollAnchorSuppressors","suppressScrollAnchoring","container","existing","count","set","previous","getPropertyValue","restoreScrollAnchoring","delete","removeProperty","ref","options","opts","enabled","zIndexOption","disableScrollAnchoring","isStuck","setIsStuck","useState","isStuckRef","useRef","useEffect","current","resolvedScope","element","scrollContainer","doc","ownerDocument","win","defaultView","node","parentElement","documentElement","overflowY","getComputedStyle","findScrollContainer","scrollAnchorTargets","body","getAnchorSuppressionTargets","detect","rect","containerTop","stuck","scrollTop","observer","ResizeObserver","observe","add","requestAnimationFrame","window","addEventListener","disconnect","cancelAnimationFrame","removeEventListener","isInitialMount","useLayoutEffect"],"mappings":"yGA6CMA,MAAeC,IACfC,MAAgBC,IAEtB,IAAIC,EAAsB,EACtBC,EAAqC,KACrCC,EAAc,EAElB,SAASC,EAAqBC,EAAuBC,GACnD,IAAIC,EAAM,EACV,IAAA,IAASC,EAAI,EAAGA,EAAIF,EAASE,IAAK,CAChC,MAAMC,EAAQJ,EAAOG,GACfE,EAAab,EAASc,IAAIF,GAEhC,SAAIC,WAAYE,MAAO,CACrB,MAAMC,EAAYH,EAAWE,MAAME,wBAC7BC,EAAWC,KAAKC,IAAIR,EAAMS,aAAcL,EAAUM,OAASZ,GACjE,GAAIQ,GAAY,EACd,SAEFR,GAAOQ,EACP,QACF,CAEAR,GAAOE,EAAMS,YACf,CACA,OAAOX,CACT,CAEA,SAASa,IACP,MAAMf,EAAS,IAAIR,EAASwB,QAAQC,KAAK,CAACC,EAAGC,IAC3CD,EAAEE,wBAAwBD,GAAKE,KAAKC,6BAA8B,EAAK,GAGzE,IAAA,IAASrB,EAAU,EAAGA,EAAUD,EAAOuB,OAAQtB,IAAW,CACxD,MAAMuB,EAAKxB,EAAOC,GACZwB,EAAQjC,EAASc,IAAIkB,GAC3B,IAAKC,EACH,SAGF,MAAMvB,EAAMH,EAAqBC,EAAQC,GAEzC,IAAIyB,EAAmB,EACnBxB,EAAM,EACRwB,EAAmBxB,EAAM,EAChBuB,EAAME,UACfD,GAAmB,GAErBD,EAAMG,OAASF,EAEfF,EAAGK,MAAMC,YAAY,wBAAyB,GAAGJ,OAE5CD,EAAME,UACTH,EAAGK,MAAME,SAAW,SACpBP,EAAGK,MAAM3B,IAAM,GAAGwB,MAClBF,EAAGK,MAAMG,OAAS,GAAGP,EAAMO,SAE/B,CACF,CAEA,SAASC,IACPlB,IACArB,EAAUwC,QAAQC,GAAMA,IAC1B,CAiCA,MAAMC,MAA8B3C,IA0CpC,SAAS4C,EAAwBC,GAC/B,MAAMC,EAAWH,EAAwB9B,IAAIgC,GACzCC,EACFA,EAASC,SAGXJ,EAAwBK,IAAIH,EAAW,CACrCE,MAAO,EACPE,SAAUJ,EAAUT,MAAMc,iBAAiB,qBAE7CL,EAAUT,MAAMC,YAAY,kBAAmB,QACjD,CAEA,SAASc,EAAuBN,GAC9B,MAAMC,EAAWH,EAAwB9B,IAAIgC,GACxCC,IAGLA,EAASC,QACLD,EAASC,MAAQ,IAGrBJ,EAAwBS,OAAOP,GAC3BC,EAASG,SACXJ,EAAUT,MAAMC,YAAY,kBAAmBS,EAASG,UAExDJ,EAAUT,MAAMiB,eAAe,oBAEnC,2BAEO,SACLC,EACAC,GAA2C,GAE3C,MAAMC,EAA0B,kBAAZD,EAAwB,CAAEE,QAASF,GAAYA,GAC7DE,QACJA,GAAU,EAAAvB,QACVA,GAAU,EACVK,OAAQmB,EAAA5C,MACRA,EAAA6C,uBACAA,GAAyB,GACvBH,GAEGI,EAASC,GAAcC,EAAAA,UAAS,GACjCC,EAAaC,EAAAA,QAAO,GAE1BC,EAAAA,UAAU,KACR,MAAMlC,EAAKuB,EAAIY,QACf,IAAKT,IAAY1B,EAGf,OAFA8B,GAAW,QACXE,EAAWG,SAAU,GAIvB,MAAMC,SAAgBrD,WAAOoD,eAAW,EAGlClC,EAAqB,CACzBoC,QAASrC,EACTjB,MAAOqD,EACP5B,OALamB,IAAiBS,EAAgB,EAAI,GAMlDjC,UACAC,OAAQ,GAEVpC,EAASiD,IAAIjB,EAAIC,GAEjB,MAAMqC,EArGV,SAA6BtC,GAC3B,MAAMuC,EAAMvC,EAAGwC,cACTC,EAAMF,EAAIG,YAChB,IAAIC,EAAO3C,EAAG4C,cACd,KAAOD,GAAQA,IAASJ,EAAIM,iBAAiB,CAC3C,MAAMC,EAAYL,EAAMA,EAAIM,iBAAiBJ,GAAMG,UAAY,GAC/D,GAAkB,SAAdA,GAAsC,WAAdA,GAAwC,YAAdA,EACpD,OAAOH,EAETA,EAAOA,EAAKC,aACd,CACA,OAAO,IACT,CAyF4BI,CAAoBhD,GACtCiD,EAAsBrB,EA9EhC,SACE5B,EACAsC,GAEA,GAAIA,EACF,MAAO,CAACA,GAEV,MAAMC,EAAMvC,EAAGwC,cACf,OAAOD,EAAIW,KAAO,CAACX,EAAIM,gBAAiBN,EAAIW,MAAQ,CAACX,EAAIM,gBAC3D,CAsEQM,CAA4BnD,EAAIsC,GAChC,GACJW,EAAoBvC,QAAQG,GAE5B,MAAMuC,EAAS,KACb,MAAMC,EAAOrD,EAAGf,wBACVqE,EAAehB,EAAkBA,EAAgBrD,wBAAwBP,IAAM,EAC/E6E,IACFjB,GAAmBA,EAAgBkB,UAAY,IACjDH,EAAK3E,KAAO4E,EAAerD,EAAMG,OAC/BmD,IAAUvB,EAAWG,UACvBH,EAAWG,QAAUoB,EACrBzB,EAAWyB,KAITE,EAAW,IAAIC,eAAe,KAClCjD,MAQF,OANAgD,EAASE,QAAQ3D,GAEjB9B,EAAU0F,IAAIR,GAjKhBhF,IAC4B,IAAxBA,IACFC,EAAgB,KACTC,IACHA,EAAcuF,sBAAsB,KAClCvF,EAAc,EACdmC,QAINqD,OAAOC,iBAAiB,SAAU1F,GAAe,GACjDyF,OAAOC,iBAAiB,SAAU1F,IAwJlCoC,IAEO,KACLzC,EAASqD,OAAOrB,GAChB9B,EAAUmD,OAAO+B,GACjBK,EAASO,aAxJb5F,IAC4B,IAAxBA,GAA6BC,IAC3BC,IACF2F,qBAAqB3F,GACrBA,EAAc,GAEhBwF,OAAOI,oBAAoB,SAAU7F,GAAe,GACpDyF,OAAOI,oBAAoB,SAAU7F,GACrCA,EAAgB,MAkJd4E,EAAoBvC,QAAQU,GAC5B7B,IAEAS,EAAGK,MAAMiB,eAAe,yBACnBnB,IACHH,EAAGK,MAAMiB,eAAe,YACxBtB,EAAGK,MAAMiB,eAAe,OACxBtB,EAAGK,MAAMiB,eAAe,YAG1BU,EAAWG,SAAU,EACrBL,GAAW,KAEZ,CAACJ,EAASH,EAAKxC,EAAO4C,EAAcxB,EAASyB,IAEhD,MAAMuC,EAAiBlC,EAAAA,QAAO,GAS9B,OARAmC,EAAAA,gBAAgB,KACVD,EAAehC,QACjBgC,EAAehC,SAAU,EAG3B5C,KACC,CAACsC,IAEG,CAAEA,UACX"}
@@ -0,0 +1,208 @@
1
+ import { useState, useRef, useEffect, useLayoutEffect } from "react";
2
+ const registry = /* @__PURE__ */ new Map();
3
+ const listeners = /* @__PURE__ */ new Set();
4
+ let scrollListenerCount = 0;
5
+ let scrollHandler = null;
6
+ let scrollFrame = 0;
7
+ function computeCumulativeTop(sorted, myIndex) {
8
+ let top = 0;
9
+ for (let i = 0; i < myIndex; i++) {
10
+ const other = sorted[i];
11
+ const otherEntry = registry.get(other);
12
+ if (otherEntry == null ? void 0 : otherEntry.scope) {
13
+ const scopeRect = otherEntry.scope.getBoundingClientRect();
14
+ const occupied = Math.min(other.offsetHeight, scopeRect.bottom - top);
15
+ if (occupied <= 0) {
16
+ continue;
17
+ }
18
+ top += occupied;
19
+ continue;
20
+ }
21
+ top += other.offsetHeight;
22
+ }
23
+ return top;
24
+ }
25
+ function repositionAll() {
26
+ const sorted = [...registry.keys()].sort(
27
+ (a, b) => a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1
28
+ );
29
+ for (let myIndex = 0; myIndex < sorted.length; myIndex++) {
30
+ const el = sorted[myIndex];
31
+ const entry = registry.get(el);
32
+ if (!entry) {
33
+ continue;
34
+ }
35
+ const top = computeCumulativeTop(sorted, myIndex);
36
+ let calculatedOffset = 0;
37
+ if (top > 0) {
38
+ calculatedOffset = top - 1;
39
+ } else if (entry.cssOnly) {
40
+ calculatedOffset = -1;
41
+ }
42
+ entry.offset = calculatedOffset;
43
+ el.style.setProperty("--sticky-stack-offset", `${calculatedOffset}px`);
44
+ if (!entry.cssOnly) {
45
+ el.style.position = "sticky";
46
+ el.style.top = `${calculatedOffset}px`;
47
+ el.style.zIndex = `${entry.zIndex}`;
48
+ }
49
+ }
50
+ }
51
+ function updateAll() {
52
+ repositionAll();
53
+ listeners.forEach((fn) => fn());
54
+ }
55
+ function addScrollListener() {
56
+ scrollListenerCount++;
57
+ if (scrollListenerCount === 1) {
58
+ scrollHandler = () => {
59
+ if (!scrollFrame) {
60
+ scrollFrame = requestAnimationFrame(() => {
61
+ scrollFrame = 0;
62
+ updateAll();
63
+ });
64
+ }
65
+ };
66
+ window.addEventListener("scroll", scrollHandler, true);
67
+ window.addEventListener("resize", scrollHandler);
68
+ }
69
+ }
70
+ function removeScrollListener() {
71
+ scrollListenerCount--;
72
+ if (scrollListenerCount === 0 && scrollHandler) {
73
+ if (scrollFrame) {
74
+ cancelAnimationFrame(scrollFrame);
75
+ scrollFrame = 0;
76
+ }
77
+ window.removeEventListener("scroll", scrollHandler, true);
78
+ window.removeEventListener("resize", scrollHandler);
79
+ scrollHandler = null;
80
+ }
81
+ }
82
+ const scrollAnchorSuppressors = /* @__PURE__ */ new Map();
83
+ function findScrollContainer(el) {
84
+ const doc = el.ownerDocument;
85
+ const win = doc.defaultView;
86
+ let node = el.parentElement;
87
+ while (node && node !== doc.documentElement) {
88
+ const overflowY = win ? win.getComputedStyle(node).overflowY : "";
89
+ if (overflowY === "auto" || overflowY === "scroll" || overflowY === "overlay") {
90
+ return node;
91
+ }
92
+ node = node.parentElement;
93
+ }
94
+ return null;
95
+ }
96
+ function getAnchorSuppressionTargets(el, scrollContainer) {
97
+ if (scrollContainer) {
98
+ return [scrollContainer];
99
+ }
100
+ const doc = el.ownerDocument;
101
+ return doc.body ? [doc.documentElement, doc.body] : [doc.documentElement];
102
+ }
103
+ function suppressScrollAnchoring(container) {
104
+ const existing = scrollAnchorSuppressors.get(container);
105
+ if (existing) {
106
+ existing.count++;
107
+ return;
108
+ }
109
+ scrollAnchorSuppressors.set(container, {
110
+ count: 1,
111
+ previous: container.style.getPropertyValue("overflow-anchor")
112
+ });
113
+ container.style.setProperty("overflow-anchor", "none");
114
+ }
115
+ function restoreScrollAnchoring(container) {
116
+ const existing = scrollAnchorSuppressors.get(container);
117
+ if (!existing) {
118
+ return;
119
+ }
120
+ existing.count--;
121
+ if (existing.count > 0) {
122
+ return;
123
+ }
124
+ scrollAnchorSuppressors.delete(container);
125
+ if (existing.previous) {
126
+ container.style.setProperty("overflow-anchor", existing.previous);
127
+ } else {
128
+ container.style.removeProperty("overflow-anchor");
129
+ }
130
+ }
131
+ function useStickyStacking(ref, options = true) {
132
+ const opts = typeof options === "boolean" ? { enabled: options } : options;
133
+ const {
134
+ enabled = true,
135
+ cssOnly = false,
136
+ zIndex: zIndexOption,
137
+ scope,
138
+ disableScrollAnchoring = false
139
+ } = opts;
140
+ const [isStuck, setIsStuck] = useState(false);
141
+ const isStuckRef = useRef(false);
142
+ useEffect(() => {
143
+ const el = ref.current;
144
+ if (!enabled || !el) {
145
+ setIsStuck(false);
146
+ isStuckRef.current = false;
147
+ return;
148
+ }
149
+ const resolvedScope = (scope == null ? void 0 : scope.current) ?? void 0;
150
+ const zIndex = zIndexOption ?? (resolvedScope ? 2 : 3);
151
+ const entry = {
152
+ element: el,
153
+ scope: resolvedScope,
154
+ zIndex,
155
+ cssOnly,
156
+ offset: 0
157
+ };
158
+ registry.set(el, entry);
159
+ const scrollContainer = findScrollContainer(el);
160
+ const scrollAnchorTargets = disableScrollAnchoring ? getAnchorSuppressionTargets(el, scrollContainer) : [];
161
+ scrollAnchorTargets.forEach(suppressScrollAnchoring);
162
+ const detect = () => {
163
+ const rect = el.getBoundingClientRect();
164
+ const containerTop = scrollContainer ? scrollContainer.getBoundingClientRect().top : 0;
165
+ const stuck = (!scrollContainer || scrollContainer.scrollTop > 0) && rect.top <= containerTop + entry.offset;
166
+ if (stuck !== isStuckRef.current) {
167
+ isStuckRef.current = stuck;
168
+ setIsStuck(stuck);
169
+ }
170
+ };
171
+ const observer = new ResizeObserver(() => {
172
+ updateAll();
173
+ });
174
+ observer.observe(el);
175
+ listeners.add(detect);
176
+ addScrollListener();
177
+ updateAll();
178
+ return () => {
179
+ registry.delete(el);
180
+ listeners.delete(detect);
181
+ observer.disconnect();
182
+ removeScrollListener();
183
+ scrollAnchorTargets.forEach(restoreScrollAnchoring);
184
+ repositionAll();
185
+ el.style.removeProperty("--sticky-stack-offset");
186
+ if (!cssOnly) {
187
+ el.style.removeProperty("position");
188
+ el.style.removeProperty("top");
189
+ el.style.removeProperty("z-index");
190
+ }
191
+ isStuckRef.current = false;
192
+ setIsStuck(false);
193
+ };
194
+ }, [enabled, ref, scope, zIndexOption, cssOnly, disableScrollAnchoring]);
195
+ const isInitialMount = useRef(true);
196
+ useLayoutEffect(() => {
197
+ if (isInitialMount.current) {
198
+ isInitialMount.current = false;
199
+ return;
200
+ }
201
+ repositionAll();
202
+ }, [isStuck]);
203
+ return { isStuck };
204
+ }
205
+ export {
206
+ useStickyStacking
207
+ };
208
+ //# sourceMappingURL=useStickyStacking.es.js.map