@onewelcome/react-lib-components 12.0.1 → 12.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (659) hide show
  1. package/dist/components/Breadcrumbs/Breadcrumbs.cjs.js +1 -1
  2. package/dist/components/Breadcrumbs/Breadcrumbs.cjs.js.map +1 -1
  3. package/dist/components/Breadcrumbs/Breadcrumbs.es.js.map +1 -1
  4. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +2 -2
  5. package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.es.js +5 -5
  6. package/dist/components/Button/BaseButton.cjs.js +1 -1
  7. package/dist/components/Button/BaseButton.cjs.js.map +1 -1
  8. package/dist/components/Button/BaseButton.es.js.map +1 -1
  9. package/dist/components/Button/BaseButton.module.scss.cjs.js +2 -2
  10. package/dist/components/Button/BaseButton.module.scss.es.js +4 -4
  11. package/dist/components/Button/Button.cjs.js +1 -1
  12. package/dist/components/Button/Button.cjs.js.map +1 -1
  13. package/dist/components/Button/Button.es.js.map +1 -1
  14. package/dist/components/Button/Button.module.scss.cjs.js +2 -2
  15. package/dist/components/Button/Button.module.scss.es.js +17 -17
  16. package/dist/components/Button/IconButton.cjs.js.map +1 -1
  17. package/dist/components/Button/IconButton.es.js.map +1 -1
  18. package/dist/components/Button/IconButton.module.scss.cjs.js +2 -2
  19. package/dist/components/Button/IconButton.module.scss.es.js +18 -18
  20. package/dist/components/Button/Spinner.cjs.js.map +1 -1
  21. package/dist/components/Button/Spinner.es.js.map +1 -1
  22. package/dist/components/ContextMenu/ContextMenu.cjs.js +1 -1
  23. package/dist/components/ContextMenu/ContextMenu.cjs.js.map +1 -1
  24. package/dist/components/ContextMenu/ContextMenu.es.js +28 -11
  25. package/dist/components/ContextMenu/ContextMenu.es.js.map +1 -1
  26. package/dist/components/ContextMenu/ContextMenu.module.scss.cjs.js +2 -2
  27. package/dist/components/ContextMenu/ContextMenu.module.scss.es.js +8 -5
  28. package/dist/components/ContextMenu/ContextMenu.module.scss.es.js.map +1 -1
  29. package/dist/components/ContextMenu/ContextMenuDivider.cjs.js.map +1 -1
  30. package/dist/components/ContextMenu/ContextMenuDivider.es.js.map +1 -1
  31. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.cjs.js +2 -2
  32. package/dist/components/ContextMenu/ContextMenuDivider.module.scss.es.js +2 -2
  33. package/dist/components/ContextMenu/ContextMenuItem.cjs.js +1 -1
  34. package/dist/components/ContextMenu/ContextMenuItem.cjs.js.map +1 -1
  35. package/dist/components/ContextMenu/ContextMenuItem.es.js.map +1 -1
  36. package/dist/components/ContextMenu/ContextMenuItem.module.scss.cjs.js +2 -2
  37. package/dist/components/ContextMenu/ContextMenuItem.module.scss.es.js +3 -3
  38. package/dist/components/ContextMenu/ContextMenuService.cjs.js +1 -1
  39. package/dist/components/ContextMenu/ContextMenuService.cjs.js.map +1 -1
  40. package/dist/components/ContextMenu/ContextMenuService.es.js.map +1 -1
  41. package/dist/components/DataGrid/DataGrid.cjs.js +1 -1
  42. package/dist/components/DataGrid/DataGrid.cjs.js.map +1 -1
  43. package/dist/components/DataGrid/DataGrid.es.js.map +1 -1
  44. package/dist/components/DataGrid/DataGrid.module.scss.cjs.js +2 -2
  45. package/dist/components/DataGrid/DataGrid.module.scss.es.js +6 -6
  46. package/dist/components/DataGrid/DataGridActions/DataGridActions.cjs.js +1 -1
  47. package/dist/components/DataGrid/DataGridActions/DataGridActions.cjs.js.map +1 -1
  48. package/dist/components/DataGrid/DataGridActions/DataGridActions.es.js.map +1 -1
  49. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +2 -2
  50. package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.es.js +6 -6
  51. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.cjs.js +1 -1
  52. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.cjs.js.map +1 -1
  53. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.es.js.map +1 -1
  54. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +2 -2
  55. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.es.js +7 -7
  56. package/dist/components/DataGrid/DataGridBody/DataGridBody.cjs.js +1 -1
  57. package/dist/components/DataGrid/DataGridBody/DataGridBody.cjs.js.map +1 -1
  58. package/dist/components/DataGrid/DataGridBody/DataGridBody.es.js.map +1 -1
  59. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +2 -2
  60. package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.es.js +2 -2
  61. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js +1 -1
  62. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js.map +1 -1
  63. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.es.js.map +1 -1
  64. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +2 -2
  65. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.es.js +5 -5
  66. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.cjs.js +1 -1
  67. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.cjs.js.map +1 -1
  68. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.es.js.map +1 -1
  69. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +2 -2
  70. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.es.js +4 -4
  71. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js +1 -1
  72. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js.map +1 -1
  73. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.es.js.map +1 -1
  74. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +2 -2
  75. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.es.js +5 -5
  76. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js +1 -1
  77. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js.map +1 -1
  78. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.es.js +2 -1
  79. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.es.js.map +1 -1
  80. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +2 -2
  81. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.es.js +24 -24
  82. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.cjs.js +1 -1
  83. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.cjs.js.map +1 -1
  84. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.es.js.map +1 -1
  85. package/dist/components/DataGrid/DataGridFilters/DataGridDateFilter.cjs.js.map +1 -1
  86. package/dist/components/DataGrid/DataGridFilters/DataGridDateFilter.es.js.map +1 -1
  87. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js +1 -1
  88. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js.map +1 -1
  89. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js.map +1 -1
  90. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +2 -2
  91. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.es.js +9 -9
  92. package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.cjs.js +1 -1
  93. package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.cjs.js.map +1 -1
  94. package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.es.js.map +1 -1
  95. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js +1 -1
  96. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js.map +1 -1
  97. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js.map +1 -1
  98. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js +1 -1
  99. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js.map +1 -1
  100. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js.map +1 -1
  101. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js +1 -1
  102. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js.map +1 -1
  103. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js.map +1 -1
  104. package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.cjs.js.map +1 -1
  105. package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.es.js.map +1 -1
  106. package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.cjs.js +1 -1
  107. package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.cjs.js.map +1 -1
  108. package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.es.js.map +1 -1
  109. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.cjs.js +1 -1
  110. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.cjs.js.map +1 -1
  111. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.es.js.map +1 -1
  112. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +2 -2
  113. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.es.js +8 -8
  114. package/dist/components/DataGrid/DataGridFilters/DataGridToolbarWrapper.cjs.js.map +1 -1
  115. package/dist/components/DataGrid/DataGridFilters/DataGridToolbarWrapper.es.js.map +1 -1
  116. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.cjs.js +1 -1
  117. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.cjs.js.map +1 -1
  118. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.es.js.map +1 -1
  119. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +2 -2
  120. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.es.js +17 -17
  121. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.cjs.js.map +1 -1
  122. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.es.js.map +1 -1
  123. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.cjs.js +1 -1
  124. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.cjs.js.map +1 -1
  125. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.es.js.map +1 -1
  126. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimeService.cjs.js.map +1 -1
  127. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimeService.es.js.map +1 -1
  128. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.cjs.js +1 -1
  129. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.cjs.js.map +1 -1
  130. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.es.js.map +1 -1
  131. package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.cjs.js +1 -1
  132. package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.cjs.js.map +1 -1
  133. package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.es.js.map +1 -1
  134. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.cjs.js +1 -1
  135. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.cjs.js.map +1 -1
  136. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.es.js.map +1 -1
  137. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.cjs.js +1 -1
  138. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.cjs.js.map +1 -1
  139. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.es.js.map +1 -1
  140. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +2 -2
  141. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js +3 -3
  142. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js +1 -1
  143. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js.map +1 -1
  144. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.es.js.map +1 -1
  145. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +2 -2
  146. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.es.js +7 -7
  147. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  148. package/dist/components/DatePicker/DatePicker.cjs.js.map +1 -1
  149. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  150. package/dist/components/DatePicker/DatePicker.es.js.map +1 -1
  151. package/dist/components/DatePicker/DatePicker.module.scss.cjs.js +2 -2
  152. package/dist/components/DatePicker/DatePicker.module.scss.es.js +31 -31
  153. package/dist/components/Form/Checkbox/Checkbox.cjs.js +1 -1
  154. package/dist/components/Form/Checkbox/Checkbox.cjs.js.map +1 -1
  155. package/dist/components/Form/Checkbox/Checkbox.es.js +1 -0
  156. package/dist/components/Form/Checkbox/Checkbox.es.js.map +1 -1
  157. package/dist/components/Form/Checkbox/Checkbox.module.scss.cjs.js +2 -2
  158. package/dist/components/Form/Checkbox/Checkbox.module.scss.es.js +13 -13
  159. package/dist/components/Form/Fieldset/Fieldset.cjs.js +1 -1
  160. package/dist/components/Form/Fieldset/Fieldset.cjs.js.map +1 -1
  161. package/dist/components/Form/Fieldset/Fieldset.es.js.map +1 -1
  162. package/dist/components/Form/Fieldset/Fieldset.module.scss.cjs.js +2 -2
  163. package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js +5 -5
  164. package/dist/components/Form/FileUpload/FileItem/FileItem.cjs.js +1 -1
  165. package/dist/components/Form/FileUpload/FileItem/FileItem.cjs.js.map +1 -1
  166. package/dist/components/Form/FileUpload/FileItem/FileItem.es.js.map +1 -1
  167. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +2 -2
  168. package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.es.js +18 -18
  169. package/dist/components/Form/FileUpload/FileUpload.cjs.js +1 -1
  170. package/dist/components/Form/FileUpload/FileUpload.cjs.js.map +1 -1
  171. package/dist/components/Form/FileUpload/FileUpload.es.js +18 -4
  172. package/dist/components/Form/FileUpload/FileUpload.es.js.map +1 -1
  173. package/dist/components/Form/FileUpload/FileUpload.module.scss.cjs.js +2 -2
  174. package/dist/components/Form/FileUpload/FileUpload.module.scss.es.js +16 -16
  175. package/dist/components/Form/Form.cjs.js +1 -1
  176. package/dist/components/Form/Form.cjs.js.map +1 -1
  177. package/dist/components/Form/Form.es.js.map +1 -1
  178. package/dist/components/Form/Form.module.scss.cjs.js +2 -2
  179. package/dist/components/Form/Form.module.scss.es.js +2 -2
  180. package/dist/components/Form/FormControl/FormControl.cjs.js +1 -1
  181. package/dist/components/Form/FormControl/FormControl.cjs.js.map +1 -1
  182. package/dist/components/Form/FormControl/FormControl.es.js.map +1 -1
  183. package/dist/components/Form/FormControl/FormControl.module.scss.cjs.js +2 -2
  184. package/dist/components/Form/FormControl/FormControl.module.scss.es.js +13 -13
  185. package/dist/components/Form/FormErrorText/FormErrorText.cjs.js.map +1 -1
  186. package/dist/components/Form/FormErrorText/FormErrorText.es.js.map +1 -1
  187. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.cjs.js +2 -2
  188. package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js +5 -5
  189. package/dist/components/Form/FormGroup/FormGroup.cjs.js +1 -1
  190. package/dist/components/Form/FormGroup/FormGroup.cjs.js.map +1 -1
  191. package/dist/components/Form/FormGroup/FormGroup.es.js.map +1 -1
  192. package/dist/components/Form/FormGroup/FormGroup.module.scss.cjs.js +2 -2
  193. package/dist/components/Form/FormGroup/FormGroup.module.scss.es.js +3 -3
  194. package/dist/components/Form/FormHelperText/FormHelperText.cjs.js +1 -1
  195. package/dist/components/Form/FormHelperText/FormHelperText.cjs.js.map +1 -1
  196. package/dist/components/Form/FormHelperText/FormHelperText.es.js.map +1 -1
  197. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.cjs.js +2 -2
  198. package/dist/components/Form/FormHelperText/FormHelperText.module.scss.es.js +4 -4
  199. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js +1 -1
  200. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js.map +1 -1
  201. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.es.js.map +1 -1
  202. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +2 -2
  203. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.es.js +6 -6
  204. package/dist/components/Form/FormStatusIndicator/FormStatusIndicator.cjs.js.map +1 -1
  205. package/dist/components/Form/FormStatusIndicator/FormStatusIndicator.es.js.map +1 -1
  206. package/dist/components/Form/Input/Input.cjs.js +1 -1
  207. package/dist/components/Form/Input/Input.cjs.js.map +1 -1
  208. package/dist/components/Form/Input/Input.es.js +1 -0
  209. package/dist/components/Form/Input/Input.es.js.map +1 -1
  210. package/dist/components/Form/Input/Input.module.scss.cjs.js +2 -2
  211. package/dist/components/Form/Input/Input.module.scss.es.js +9 -9
  212. package/dist/components/Form/Label/Label.cjs.js +1 -1
  213. package/dist/components/Form/Label/Label.cjs.js.map +1 -1
  214. package/dist/components/Form/Label/Label.es.js.map +1 -1
  215. package/dist/components/Form/Label/Label.module.scss.cjs.js +2 -2
  216. package/dist/components/Form/Label/Label.module.scss.es.js +2 -2
  217. package/dist/components/Form/Radio/Radio.cjs.js +1 -1
  218. package/dist/components/Form/Radio/Radio.cjs.js.map +1 -1
  219. package/dist/components/Form/Radio/Radio.es.js +1 -0
  220. package/dist/components/Form/Radio/Radio.es.js.map +1 -1
  221. package/dist/components/Form/Radio/Radio.module.scss.cjs.js +2 -2
  222. package/dist/components/Form/Radio/Radio.module.scss.es.js +11 -11
  223. package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js +1 -1
  224. package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js.map +1 -1
  225. package/dist/components/Form/Select/MultiSelect/MultiOption.es.js.map +1 -1
  226. package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js +1 -1
  227. package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js.map +1 -1
  228. package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js.map +1 -1
  229. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +2 -2
  230. package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js +15 -15
  231. package/dist/components/Form/Select/MultiSelect/SelectButton.cjs.js +1 -1
  232. package/dist/components/Form/Select/MultiSelect/SelectButton.cjs.js.map +1 -1
  233. package/dist/components/Form/Select/MultiSelect/SelectButton.es.js.map +1 -1
  234. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +2 -2
  235. package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.es.js +2 -2
  236. package/dist/components/Form/Select/MultiSelect/SelectedOptions.cjs.js +1 -1
  237. package/dist/components/Form/Select/MultiSelect/SelectedOptions.cjs.js.map +1 -1
  238. package/dist/components/Form/Select/MultiSelect/SelectedOptions.es.js.map +1 -1
  239. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +2 -2
  240. package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.es.js +4 -4
  241. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js +1 -1
  242. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js.map +1 -1
  243. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.es.js.map +1 -1
  244. package/dist/components/Form/Select/MultiSelect/useMultiSelect.cjs.js +1 -1
  245. package/dist/components/Form/Select/MultiSelect/useMultiSelect.cjs.js.map +1 -1
  246. package/dist/components/Form/Select/MultiSelect/useMultiSelect.es.js.map +1 -1
  247. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js +1 -1
  248. package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
  249. package/dist/components/Form/Select/MultiSelect/useSearch.es.js.map +1 -1
  250. package/dist/components/Form/Select/Select.interfaces.cjs.js.map +1 -1
  251. package/dist/components/Form/Select/Select.interfaces.es.js.map +1 -1
  252. package/dist/components/Form/Select/SingleSelect/Option.cjs.js +1 -1
  253. package/dist/components/Form/Select/SingleSelect/Option.cjs.js.map +1 -1
  254. package/dist/components/Form/Select/SingleSelect/Option.es.js.map +1 -1
  255. package/dist/components/Form/Select/SingleSelect/Select.cjs.js +1 -1
  256. package/dist/components/Form/Select/SingleSelect/Select.cjs.js.map +1 -1
  257. package/dist/components/Form/Select/SingleSelect/Select.es.js.map +1 -1
  258. package/dist/components/Form/Select/SingleSelect/Select.module.scss.cjs.js +2 -2
  259. package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js +17 -17
  260. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js +1 -1
  261. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js.map +1 -1
  262. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.es.js.map +1 -1
  263. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js +1 -1
  264. package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -1
  265. package/dist/components/Form/Select/SingleSelect/useSearch.es.js.map +1 -1
  266. package/dist/components/Form/Select/useAddNewBtn.cjs.js +1 -1
  267. package/dist/components/Form/Select/useAddNewBtn.cjs.js.map +1 -1
  268. package/dist/components/Form/Select/useAddNewBtn.es.js.map +1 -1
  269. package/dist/components/Form/Select/useAddNewBtn.module.scss.cjs.js +2 -2
  270. package/dist/components/Form/Select/useAddNewBtn.module.scss.es.js +4 -4
  271. package/dist/components/Form/Select/useSelectPositionList.cjs.js +1 -1
  272. package/dist/components/Form/Select/useSelectPositionList.cjs.js.map +1 -1
  273. package/dist/components/Form/Select/useSelectPositionList.es.js.map +1 -1
  274. package/dist/components/Form/Textarea/Textarea.cjs.js +1 -1
  275. package/dist/components/Form/Textarea/Textarea.cjs.js.map +1 -1
  276. package/dist/components/Form/Textarea/Textarea.es.js +1 -0
  277. package/dist/components/Form/Textarea/Textarea.es.js.map +1 -1
  278. package/dist/components/Form/Textarea/Textarea.module.scss.cjs.js +2 -2
  279. package/dist/components/Form/Textarea/Textarea.module.scss.es.js +6 -6
  280. package/dist/components/Form/Toggle/Toggle.cjs.js +1 -1
  281. package/dist/components/Form/Toggle/Toggle.cjs.js.map +1 -1
  282. package/dist/components/Form/Toggle/Toggle.es.js.map +1 -1
  283. package/dist/components/Form/Toggle/Toggle.module.scss.cjs.js +2 -2
  284. package/dist/components/Form/Toggle/Toggle.module.scss.es.js +18 -18
  285. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js +1 -1
  286. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js.map +1 -1
  287. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.es.js.map +1 -1
  288. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +2 -2
  289. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js +3 -3
  290. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.cjs.js +1 -1
  291. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.cjs.js.map +1 -1
  292. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.es.js.map +1 -1
  293. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +2 -2
  294. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.es.js +4 -4
  295. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js +1 -1
  296. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js.map +1 -1
  297. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.es.js.map +1 -1
  298. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +2 -2
  299. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.es.js +3 -3
  300. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +1 -1
  301. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -1
  302. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.es.js.map +1 -1
  303. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +2 -2
  304. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js +3 -3
  305. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js +1 -1
  306. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js.map +1 -1
  307. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.es.js.map +1 -1
  308. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +2 -2
  309. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.es.js +3 -3
  310. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js +1 -1
  311. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js.map +1 -1
  312. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.es.js.map +1 -1
  313. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +2 -2
  314. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.es.js +8 -8
  315. package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js +1 -1
  316. package/dist/components/Form/Wrapper/Wrapper/Wrapper.cjs.js.map +1 -1
  317. package/dist/components/Form/Wrapper/Wrapper/Wrapper.es.js.map +1 -1
  318. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +2 -2
  319. package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.es.js +6 -6
  320. package/dist/components/Icon/Icon.cjs.js +1 -1
  321. package/dist/components/Icon/Icon.cjs.js.map +1 -1
  322. package/dist/components/Icon/Icon.es.js.map +1 -1
  323. package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
  324. package/dist/components/Icon/Icon.module.scss.es.js +107 -107
  325. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.cjs.js +1 -1
  326. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.cjs.js.map +1 -1
  327. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.es.js +11 -9
  328. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.es.js.map +1 -1
  329. package/dist/components/InlineEditing/InlineEditingContext.cjs.js +1 -1
  330. package/dist/components/InlineEditing/InlineEditingContext.cjs.js.map +1 -1
  331. package/dist/components/InlineEditing/InlineEditingContext.es.js +40 -2
  332. package/dist/components/InlineEditing/InlineEditingContext.es.js.map +1 -1
  333. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.cjs.js +1 -1
  334. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.cjs.js.map +1 -1
  335. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.es.js +13 -10
  336. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.es.js.map +1 -1
  337. package/dist/components/Layout/Card/Card.cjs.js.map +1 -1
  338. package/dist/components/Layout/Card/Card.es.js.map +1 -1
  339. package/dist/components/Layout/Card/Card.module.scss.cjs.js +2 -2
  340. package/dist/components/Layout/Card/Card.module.scss.es.js +12 -12
  341. package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js +1 -1
  342. package/dist/components/Layout/ContentHeader/ContentHeader.cjs.js.map +1 -1
  343. package/dist/components/Layout/ContentHeader/ContentHeader.es.js.map +1 -1
  344. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +2 -2
  345. package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js +12 -12
  346. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.cjs.js.map +1 -1
  347. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.es.js.map +1 -1
  348. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +2 -2
  349. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js +4 -4
  350. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js +1 -1
  351. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js.map +1 -1
  352. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.es.js +1 -1
  353. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.es.js.map +1 -1
  354. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +2 -2
  355. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js +2 -2
  356. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.cjs.js.map +1 -1
  357. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.es.js.map +1 -1
  358. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +2 -2
  359. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.es.js +3 -3
  360. package/dist/components/Link/Link.cjs.js +1 -1
  361. package/dist/components/Link/Link.cjs.js.map +1 -1
  362. package/dist/components/Link/Link.es.js.map +1 -1
  363. package/dist/components/Link/Link.module.scss.cjs.js +2 -2
  364. package/dist/components/Link/Link.module.scss.es.js +19 -16
  365. package/dist/components/Link/Link.module.scss.es.js.map +1 -1
  366. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.cjs.js.map +1 -1
  367. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.es.js.map +1 -1
  368. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +2 -2
  369. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.es.js +11 -11
  370. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js +1 -1
  371. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js.map +1 -1
  372. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.es.js.map +1 -1
  373. package/dist/components/Notifications/Alert/AlertItem/AlertItem.cjs.js +1 -1
  374. package/dist/components/Notifications/Alert/AlertItem/AlertItem.cjs.js.map +1 -1
  375. package/dist/components/Notifications/Alert/AlertItem/AlertItem.es.js.map +1 -1
  376. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +2 -2
  377. package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.es.js +22 -22
  378. package/dist/components/Notifications/Alert/AlertProvider/AlertContext.cjs.js.map +1 -1
  379. package/dist/components/Notifications/Alert/AlertProvider/AlertContext.es.js.map +1 -1
  380. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.cjs.js +1 -1
  381. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.cjs.js.map +1 -1
  382. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.es.js.map +1 -1
  383. package/dist/components/Notifications/Alert/useAlert.cjs.js.map +1 -1
  384. package/dist/components/Notifications/Alert/useAlert.es.js.map +1 -1
  385. package/dist/components/Notifications/Banner/Banner.cjs.js +1 -1
  386. package/dist/components/Notifications/Banner/Banner.cjs.js.map +1 -1
  387. package/dist/components/Notifications/Banner/Banner.es.js.map +1 -1
  388. package/dist/components/Notifications/Banner/Banner.module.scss.cjs.js +2 -2
  389. package/dist/components/Notifications/Banner/Banner.module.scss.es.js +9 -9
  390. package/dist/components/Notifications/BaseModal/BaseModal.cjs.js +1 -1
  391. package/dist/components/Notifications/BaseModal/BaseModal.cjs.js.map +1 -1
  392. package/dist/components/Notifications/BaseModal/BaseModal.es.js +1 -1
  393. package/dist/components/Notifications/BaseModal/BaseModal.es.js.map +1 -1
  394. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.cjs.js +2 -2
  395. package/dist/components/Notifications/BaseModal/BaseModal.module.scss.es.js +5 -5
  396. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js +1 -1
  397. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js.map +1 -1
  398. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.es.js.map +1 -1
  399. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +2 -2
  400. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.es.js +4 -4
  401. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js +1 -1
  402. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js.map +1 -1
  403. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.es.js.map +1 -1
  404. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +2 -2
  405. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.es.js +2 -2
  406. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js +1 -1
  407. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js.map +1 -1
  408. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.es.js.map +1 -1
  409. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +2 -2
  410. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.es.js +6 -6
  411. package/dist/components/Notifications/Dialog/Dialog.cjs.js +1 -1
  412. package/dist/components/Notifications/Dialog/Dialog.cjs.js.map +1 -1
  413. package/dist/components/Notifications/Dialog/Dialog.es.js +2 -2
  414. package/dist/components/Notifications/Dialog/Dialog.es.js.map +1 -1
  415. package/dist/components/Notifications/Dialog/Dialog.module.scss.cjs.js +2 -2
  416. package/dist/components/Notifications/Dialog/Dialog.module.scss.es.js +4 -4
  417. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.cjs.js +1 -1
  418. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.cjs.js.map +1 -1
  419. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.es.js.map +1 -1
  420. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +2 -2
  421. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.es.js +3 -3
  422. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js +1 -1
  423. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js.map +1 -1
  424. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.es.js.map +1 -1
  425. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +2 -2
  426. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.es.js +10 -10
  427. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js +1 -1
  428. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js.map +1 -1
  429. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.es.js.map +1 -1
  430. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.cjs.js.map +1 -1
  431. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.es.js.map +1 -1
  432. package/dist/components/Notifications/NotificationProvider/NotificationContext.cjs.js +1 -1
  433. package/dist/components/Notifications/NotificationProvider/NotificationContext.cjs.js.map +1 -1
  434. package/dist/components/Notifications/NotificationProvider/NotificationContext.es.js +1 -1
  435. package/dist/components/Notifications/NotificationProvider/NotificationContext.es.js.map +1 -1
  436. package/dist/components/Notifications/NotificationProvider/NotificationService.es.js.map +1 -1
  437. package/dist/components/Notifications/SideSheet/SideSheet.cjs.js +1 -1
  438. package/dist/components/Notifications/SideSheet/SideSheet.cjs.js.map +1 -1
  439. package/dist/components/Notifications/SideSheet/SideSheet.es.js.map +1 -1
  440. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.cjs.js +2 -2
  441. package/dist/components/Notifications/SideSheet/SideSheet.module.scss.es.js +13 -13
  442. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.cjs.js.map +1 -1
  443. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.es.js.map +1 -1
  444. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +2 -2
  445. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.es.js +2 -2
  446. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.cjs.js.map +1 -1
  447. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.es.js.map +1 -1
  448. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +2 -2
  449. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.es.js +2 -2
  450. package/dist/components/Notifications/SlideInModal/SlideInModal.cjs.js +1 -1
  451. package/dist/components/Notifications/SlideInModal/SlideInModal.cjs.js.map +1 -1
  452. package/dist/components/Notifications/SlideInModal/SlideInModal.es.js.map +1 -1
  453. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +2 -2
  454. package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.es.js +10 -10
  455. package/dist/components/Pagination/Pagination.cjs.js +1 -1
  456. package/dist/components/Pagination/Pagination.cjs.js.map +1 -1
  457. package/dist/components/Pagination/Pagination.es.js.map +1 -1
  458. package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
  459. package/dist/components/Pagination/Pagination.module.scss.es.js +14 -14
  460. package/dist/components/Popover/Popover.cjs.js +1 -1
  461. package/dist/components/Popover/Popover.cjs.js.map +1 -1
  462. package/dist/components/Popover/Popover.es.js.map +1 -1
  463. package/dist/components/Popover/Popover.module.scss.cjs.js +2 -2
  464. package/dist/components/Popover/Popover.module.scss.es.js +3 -3
  465. package/dist/components/ProgressBar/ProgressBar.cjs.js +1 -1
  466. package/dist/components/ProgressBar/ProgressBar.cjs.js.map +1 -1
  467. package/dist/components/ProgressBar/ProgressBar.es.js.map +1 -1
  468. package/dist/components/ProgressBar/ProgressBar.module.scss.cjs.js +2 -2
  469. package/dist/components/ProgressBar/ProgressBar.module.scss.es.js +9 -9
  470. package/dist/components/RequiredSign/RequiredSign.cjs.js.map +1 -1
  471. package/dist/components/RequiredSign/RequiredSign.es.js.map +1 -1
  472. package/dist/components/Skeleton/Skeleton.cjs.js +1 -1
  473. package/dist/components/Skeleton/Skeleton.cjs.js.map +1 -1
  474. package/dist/components/Skeleton/Skeleton.es.js.map +1 -1
  475. package/dist/components/Skeleton/Skeleton.module.scss.cjs.js +2 -2
  476. package/dist/components/Skeleton/Skeleton.module.scss.es.js +5 -5
  477. package/dist/components/Spinner/Spinner.cjs.js.map +1 -1
  478. package/dist/components/Spinner/Spinner.es.js.map +1 -1
  479. package/dist/components/Spinner/Spinner.module.scss.cjs.js +2 -2
  480. package/dist/components/Spinner/Spinner.module.scss.es.js +3 -3
  481. package/dist/components/Stepper/Step.cjs.js.map +1 -1
  482. package/dist/components/Stepper/Step.es.js.map +1 -1
  483. package/dist/components/Stepper/Step.module.scss.cjs.js +2 -2
  484. package/dist/components/Stepper/Step.module.scss.es.js +22 -22
  485. package/dist/components/Stepper/Stepper.cjs.js +1 -1
  486. package/dist/components/Stepper/Stepper.cjs.js.map +1 -1
  487. package/dist/components/Stepper/Stepper.es.js.map +1 -1
  488. package/dist/components/Stepper/Stepper.module.scss.cjs.js +2 -2
  489. package/dist/components/Stepper/Stepper.module.scss.es.js +4 -4
  490. package/dist/components/Tabs/Tab.cjs.js.map +1 -1
  491. package/dist/components/Tabs/Tab.es.js.map +1 -1
  492. package/dist/components/Tabs/Tab.module.scss.cjs.js +2 -2
  493. package/dist/components/Tabs/Tab.module.scss.es.js +3 -3
  494. package/dist/components/Tabs/TabButton.cjs.js +1 -1
  495. package/dist/components/Tabs/TabButton.cjs.js.map +1 -1
  496. package/dist/components/Tabs/TabButton.es.js.map +1 -1
  497. package/dist/components/Tabs/TabButton.module.scss.cjs.js +2 -2
  498. package/dist/components/Tabs/TabButton.module.scss.es.js +12 -12
  499. package/dist/components/Tabs/Tabs.cjs.js +1 -1
  500. package/dist/components/Tabs/Tabs.cjs.js.map +1 -1
  501. package/dist/components/Tabs/Tabs.es.js.map +1 -1
  502. package/dist/components/Tabs/Tabs.module.scss.cjs.js +2 -2
  503. package/dist/components/Tabs/Tabs.module.scss.es.js +10 -10
  504. package/dist/components/Tag/RemoveButton.cjs.js +1 -1
  505. package/dist/components/Tag/RemoveButton.cjs.js.map +1 -1
  506. package/dist/components/Tag/RemoveButton.es.js.map +1 -1
  507. package/dist/components/Tag/RemoveButton.module.scss.cjs.js +2 -2
  508. package/dist/components/Tag/RemoveButton.module.scss.es.js +3 -3
  509. package/dist/components/Tag/Tag.cjs.js +1 -1
  510. package/dist/components/Tag/Tag.cjs.js.map +1 -1
  511. package/dist/components/Tag/Tag.es.js.map +1 -1
  512. package/dist/components/Tag/Tag.module.scss.cjs.js +2 -2
  513. package/dist/components/Tag/Tag.module.scss.es.js +6 -6
  514. package/dist/components/TextEllipsis/TextEllipsis.cjs.js +1 -1
  515. package/dist/components/TextEllipsis/TextEllipsis.cjs.js.map +1 -1
  516. package/dist/components/TextEllipsis/TextEllipsis.es.js.map +1 -1
  517. package/dist/components/TextEllipsis/TextEllipsis.module.scss.cjs.js +2 -2
  518. package/dist/components/TextEllipsis/TextEllipsis.module.scss.es.js +3 -3
  519. package/dist/components/Tiles/Tile.cjs.js +1 -1
  520. package/dist/components/Tiles/Tile.cjs.js.map +1 -1
  521. package/dist/components/Tiles/Tile.es.js.map +1 -1
  522. package/dist/components/Tiles/Tile.module.scss.cjs.js +2 -2
  523. package/dist/components/Tiles/Tile.module.scss.es.js +8 -8
  524. package/dist/components/Tiles/Tiles.cjs.js +1 -1
  525. package/dist/components/Tiles/Tiles.cjs.js.map +1 -1
  526. package/dist/components/Tiles/Tiles.es.js.map +1 -1
  527. package/dist/components/Tiles/Tiles.module.scss.cjs.js +2 -2
  528. package/dist/components/Tiles/Tiles.module.scss.es.js +2 -2
  529. package/dist/components/Tooltip/Tooltip.cjs.js +1 -1
  530. package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -1
  531. package/dist/components/Tooltip/Tooltip.es.js +1 -1
  532. package/dist/components/Tooltip/Tooltip.es.js.map +1 -1
  533. package/dist/components/Tooltip/Tooltip.module.scss.cjs.js +2 -2
  534. package/dist/components/Tooltip/Tooltip.module.scss.es.js +27 -27
  535. package/dist/components/Typography/Typography.cjs.js +1 -1
  536. package/dist/components/Typography/Typography.cjs.js.map +1 -1
  537. package/dist/components/Typography/Typography.es.js.map +1 -1
  538. package/dist/components/Typography/Typography.module.scss.cjs.js +2 -2
  539. package/dist/components/Typography/Typography.module.scss.es.js +13 -13
  540. package/dist/components/_BaseStyling_/BaseStyling.cjs.js +1 -1
  541. package/dist/components/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
  542. package/dist/components/_BaseStyling_/BaseStyling.es.js.map +1 -1
  543. package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js +1 -1
  544. package/dist/components/admin/layout/LeftNav/LeftNav.cjs.js.map +1 -1
  545. package/dist/components/admin/layout/LeftNav/LeftNav.es.js +2 -0
  546. package/dist/components/admin/layout/LeftNav/LeftNav.es.js.map +1 -1
  547. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -2
  548. package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.es.js +5 -5
  549. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js +1 -1
  550. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js.map +1 -1
  551. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.es.js +2 -0
  552. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.es.js.map +1 -1
  553. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.cjs.js +1 -1
  554. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.cjs.js.map +1 -1
  555. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.es.js.map +1 -1
  556. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -2
  557. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.es.js +14 -14
  558. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js +1 -1
  559. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js.map +1 -1
  560. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.es.js +90 -2
  561. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.es.js.map +1 -1
  562. package/dist/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.cjs.js.map +1 -1
  563. package/dist/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.es.js.map +1 -1
  564. package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js +1 -1
  565. package/dist/components/admin/layout/LeftNav/useRefItems.cjs.js.map +1 -1
  566. package/dist/components/admin/layout/LeftNav/useRefItems.es.js.map +1 -1
  567. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js +1 -1
  568. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js.map +1 -1
  569. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.es.js +1 -1
  570. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.es.js.map +1 -1
  571. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +2 -2
  572. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js +3 -3
  573. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.cjs.js +2 -0
  574. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.cjs.js.map +1 -0
  575. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.es.js +33 -0
  576. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.es.js.map +1 -0
  577. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js +3 -0
  578. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js.map +1 -0
  579. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js +25 -0
  580. package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js.map +1 -0
  581. package/dist/components/admin/layout/TopNavBar/TopNavBar.cjs.js +2 -0
  582. package/dist/components/admin/layout/TopNavBar/TopNavBar.cjs.js.map +1 -0
  583. package/dist/components/admin/layout/TopNavBar/TopNavBar.es.js +45 -0
  584. package/dist/components/admin/layout/TopNavBar/TopNavBar.es.js.map +1 -0
  585. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js +3 -0
  586. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js.map +1 -0
  587. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js +25 -0
  588. package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js.map +1 -0
  589. package/dist/components/miscellaneous/IdentityProviderButton.cjs.js.map +1 -1
  590. package/dist/components/miscellaneous/IdentityProviderButton.es.js.map +1 -1
  591. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.cjs.js +2 -2
  592. package/dist/components/miscellaneous/IdentityProviderButton.module.scss.es.js +3 -3
  593. package/dist/components/withReadOnly.cjs.js +1 -1
  594. package/dist/components/withReadOnly.cjs.js.map +1 -1
  595. package/dist/components/withReadOnly.es.js.map +1 -1
  596. package/dist/hooks/useAnimation.cjs.js +1 -1
  597. package/dist/hooks/useAnimation.cjs.js.map +1 -1
  598. package/dist/hooks/useAnimation.es.js.map +1 -1
  599. package/dist/hooks/useClickOutside.cjs.js +1 -1
  600. package/dist/hooks/useClickOutside.cjs.js.map +1 -1
  601. package/dist/hooks/useClickOutside.es.js.map +1 -1
  602. package/dist/hooks/useDebouncedCallback.cjs.js +1 -1
  603. package/dist/hooks/useDebouncedCallback.cjs.js.map +1 -1
  604. package/dist/hooks/useDebouncedCallback.es.js.map +1 -1
  605. package/dist/hooks/useDescribedBy.cjs.js.map +1 -1
  606. package/dist/hooks/useDescribedBy.es.js.map +1 -1
  607. package/dist/hooks/useDetermineStatusIcon.cjs.js.map +1 -1
  608. package/dist/hooks/useDetermineStatusIcon.es.js.map +1 -1
  609. package/dist/hooks/useFormSelector.cjs.js.map +1 -1
  610. package/dist/hooks/useFormSelector.es.js.map +1 -1
  611. package/dist/hooks/useFullHeightCollapse.cjs.js.map +1 -1
  612. package/dist/hooks/useFullHeightCollapse.es.js.map +1 -1
  613. package/dist/hooks/useGetDomRoot.cjs.js +1 -1
  614. package/dist/hooks/useGetDomRoot.cjs.js.map +1 -1
  615. package/dist/hooks/useGetDomRoot.es.js.map +1 -1
  616. package/dist/hooks/usePosition.cjs.js +1 -1
  617. package/dist/hooks/usePosition.cjs.js.map +1 -1
  618. package/dist/hooks/usePosition.es.js.map +1 -1
  619. package/dist/hooks/useRepeatFocus.cjs.js +1 -1
  620. package/dist/hooks/useRepeatFocus.cjs.js.map +1 -1
  621. package/dist/hooks/useRepeatFocus.es.js +6 -23
  622. package/dist/hooks/useRepeatFocus.es.js.map +1 -1
  623. package/dist/hooks/useRepeater.cjs.js +1 -1
  624. package/dist/hooks/useRepeater.cjs.js.map +1 -1
  625. package/dist/hooks/useRepeater.es.js.map +1 -1
  626. package/dist/hooks/useScreenSize.cjs.js +1 -1
  627. package/dist/hooks/useScreenSize.cjs.js.map +1 -1
  628. package/dist/hooks/useScreenSize.es.js.map +1 -1
  629. package/dist/hooks/useSpacing.cjs.js +1 -1
  630. package/dist/hooks/useSpacing.cjs.js.map +1 -1
  631. package/dist/hooks/useSpacing.es.js.map +1 -1
  632. package/dist/hooks/useUploadFile.cjs.js +1 -1
  633. package/dist/hooks/useUploadFile.cjs.js.map +1 -1
  634. package/dist/hooks/useUploadFile.es.js.map +1 -1
  635. package/dist/hooks/useWrapper.cjs.js.map +1 -1
  636. package/dist/hooks/useWrapper.es.js.map +1 -1
  637. package/dist/index.cjs.js +1 -1
  638. package/dist/index.d.ts +48 -4
  639. package/dist/index.es.js +6 -0
  640. package/dist/index.es.js.map +1 -1
  641. package/dist/node_modules/tabbable/dist/index.esm.cjs.js +2 -0
  642. package/dist/node_modules/tabbable/dist/index.esm.cjs.js.map +1 -0
  643. package/dist/node_modules/tabbable/dist/index.esm.es.js +322 -0
  644. package/dist/node_modules/tabbable/dist/index.esm.es.js.map +1 -0
  645. package/dist/readyclasses.module.scss.cjs.js +2 -2
  646. package/dist/readyclasses.module.scss.es.js +5 -5
  647. package/dist/util/helper.cjs.js +1 -1
  648. package/dist/util/helper.cjs.js.map +1 -1
  649. package/dist/util/helper.es.js +1 -1
  650. package/dist/util/helper.es.js.map +1 -1
  651. package/dist/utils/focusManagement.cjs.js +2 -0
  652. package/dist/utils/focusManagement.cjs.js.map +1 -0
  653. package/dist/utils/focusManagement.es.js +8 -0
  654. package/dist/utils/focusManagement.es.js.map +1 -0
  655. package/dist/utils/statusUtils.cjs.js.map +1 -1
  656. package/dist/utils/statusUtils.es.js.map +1 -1
  657. package/dist/variables.cjs.js.map +1 -1
  658. package/dist/variables.es.js.map +1 -1
  659. package/package.json +26 -21
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=require("../../Form/Checkbox/Checkbox.cjs.js"),t=require("../InlineEditingContext.cjs.js");exports.InlineCheckbox=o=>{const{error:i,success:c,tooltipText:n,required:s,...l}=o,u={enabled:!0,error:i,success:c,required:s,tooltipText:n};return e.createElement(t.InlineEditingProvider,{value:u},e.createElement(r.Checkbox,{...l}))};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=require("../../Form/Checkbox/Checkbox.cjs.js"),t=require("../InlineEditingContext.cjs.js");exports.InlineCheckbox=i=>{const{error:o,success:n,tooltipText:c,required:s,readOnlyView:l,...a}=i,d=l||!!a["data-readonlyview"];return e.createElement(t.InlineEditingProvider,{value:{enabled:!0,error:o,success:n,required:s},tooltipText:c,isReadOnlyView:d},e.createElement(r.Checkbox,{...a,readOnlyView:l}))};
2
2
  //# sourceMappingURL=InlineCheckbox.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineCheckbox.cjs.js","sources":["../../../../src/components/InlineEditing/InlineCheckbox/InlineCheckbox.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\nimport { Checkbox, CheckboxProps } from \"../../..\";\nimport { InlineEditingProvider } from \"../InlineEditingContext\";\n\nexport interface Props extends CheckboxProps {\n tooltipText?: string;\n}\n\nexport const InlineCheckbox = (props: Props) => {\n const { error, success, tooltipText, required, ...rest } = props;\n const inlineEditingValues = {\n enabled: true,\n error: error,\n success: success,\n required: required,\n tooltipText: tooltipText\n };\n\n return (\n <InlineEditingProvider value={inlineEditingValues}>\n <Checkbox {...rest} />\n </InlineEditingProvider>\n );\n};\n"],"names":["props","error","success","tooltipText","required","rest","inlineEditingValues","enabled","createElement","InlineEditingProvider","value","Checkbox"],"mappings":"6NAwB+BA,IAC7B,MAAMC,MAAEA,EAAOC,QAAAA,EAAAC,YAASA,WAAaC,KAAaC,GAASL,EACrDM,EAAsB,CAC1BC,SAAS,EACTN,QACAC,UACAE,WACAD,eAIA,SAAAK,cAACC,yBAAsBC,MAAOJ,mBAC3BK,EAAUA,SAAA,IAAGN,IAChB"}
1
+ {"version":3,"file":"InlineCheckbox.cjs.js","sources":["../../../../src/components/InlineEditing/InlineCheckbox/InlineCheckbox.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\nimport { Checkbox, CheckboxProps } from \"../../..\";\nimport { InlineEditingProvider } from \"../InlineEditingContext\";\n\nexport interface Props extends CheckboxProps {\n tooltipText?: string;\n}\n\nexport const InlineCheckbox = (props: Props) => {\n const { error, success, tooltipText, required, readOnlyView, ...rest } = props;\n\n const isReadOnly = readOnlyView || !!(rest as Record<string, unknown>)[\"data-readonlyview\"];\n\n return (\n <InlineEditingProvider\n value={{ enabled: true, error, success, required }}\n tooltipText={tooltipText}\n isReadOnlyView={isReadOnly}\n >\n <Checkbox {...rest} readOnlyView={readOnlyView} />\n </InlineEditingProvider>\n );\n};\n"],"names":["props","error","success","tooltipText","required","readOnlyView","rest","isReadOnly","React","createElement","InlineEditingProvider","value","enabled","isReadOnlyView","Checkbox"],"mappings":"6NAwB+BA,IAC7B,MAAMC,MAAEA,UAAOC,EAAAC,YAASA,EAAAC,SAAaA,eAAUC,KAAiBC,GAASN,EAEnEO,EAAaF,KAAmBC,EAAiC,qBAEvE,OACEE,EAAAC,cAACC,EAAAA,sBAAA,CACCC,MAAO,CAAEC,SAAS,EAAMX,QAAOC,UAASE,YACxCD,cACAU,eAAgBN,GAEhBC,EAAAC,cAACK,EAAAA,SAAA,IAAaR,EAAMD"}
@@ -2,15 +2,17 @@ import React from "react";
2
2
  import { Checkbox } from "../../Form/Checkbox/Checkbox.es.js";
3
3
  import { InlineEditingProvider } from "../InlineEditingContext.es.js";
4
4
  const InlineCheckbox = (props) => {
5
- const { error, success, tooltipText, required, ...rest } = props;
6
- const inlineEditingValues = {
7
- enabled: true,
8
- error,
9
- success,
10
- required,
11
- tooltipText
12
- };
13
- return /* @__PURE__ */ React.createElement(InlineEditingProvider, { value: inlineEditingValues }, /* @__PURE__ */ React.createElement(Checkbox, { ...rest }));
5
+ const { error, success, tooltipText, required, readOnlyView, ...rest } = props;
6
+ const isReadOnly = readOnlyView || !!rest["data-readonlyview"];
7
+ return /* @__PURE__ */ React.createElement(
8
+ InlineEditingProvider,
9
+ {
10
+ value: { enabled: true, error, success, required },
11
+ tooltipText,
12
+ isReadOnlyView: isReadOnly
13
+ },
14
+ /* @__PURE__ */ React.createElement(Checkbox, { ...rest, readOnlyView })
15
+ );
14
16
  };
15
17
  export {
16
18
  InlineCheckbox
@@ -1 +1 @@
1
- {"version":3,"file":"InlineCheckbox.es.js","sources":["../../../../src/components/InlineEditing/InlineCheckbox/InlineCheckbox.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\nimport { Checkbox, CheckboxProps } from \"../../..\";\nimport { InlineEditingProvider } from \"../InlineEditingContext\";\n\nexport interface Props extends CheckboxProps {\n tooltipText?: string;\n}\n\nexport const InlineCheckbox = (props: Props) => {\n const { error, success, tooltipText, required, ...rest } = props;\n const inlineEditingValues = {\n enabled: true,\n error: error,\n success: success,\n required: required,\n tooltipText: tooltipText\n };\n\n return (\n <InlineEditingProvider value={inlineEditingValues}>\n <Checkbox {...rest} />\n </InlineEditingProvider>\n );\n};\n"],"names":[],"mappings":";;;AAwBa,MAAA,iBAAiB,CAAC,UAAiB;AAC9C,QAAM,EAAE,OAAO,SAAS,aAAa,UAAU,GAAG,SAAS;AAC3D,QAAM,sBAAsB;AAAA,IAC1B,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAGE,SAAA,sBAAA,cAAC,yBAAsB,OAAO,oBAAA,uCAC3B,UAAU,EAAA,GAAG,KAAM,CAAA,CACtB;AAEJ;"}
1
+ {"version":3,"file":"InlineCheckbox.es.js","sources":["../../../../src/components/InlineEditing/InlineCheckbox/InlineCheckbox.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\nimport { Checkbox, CheckboxProps } from \"../../..\";\nimport { InlineEditingProvider } from \"../InlineEditingContext\";\n\nexport interface Props extends CheckboxProps {\n tooltipText?: string;\n}\n\nexport const InlineCheckbox = (props: Props) => {\n const { error, success, tooltipText, required, readOnlyView, ...rest } = props;\n\n const isReadOnly = readOnlyView || !!(rest as Record<string, unknown>)[\"data-readonlyview\"];\n\n return (\n <InlineEditingProvider\n value={{ enabled: true, error, success, required }}\n tooltipText={tooltipText}\n isReadOnlyView={isReadOnly}\n >\n <Checkbox {...rest} readOnlyView={readOnlyView} />\n </InlineEditingProvider>\n );\n};\n"],"names":[],"mappings":";;;AAwBO,MAAM,iBAAiB,CAAC,UAAiB;AAC9C,QAAM,EAAE,OAAO,SAAS,aAAa,UAAU,cAAc,GAAG,SAAS;AAEzE,QAAM,aAAa,gBAAgB,CAAC,CAAE,KAAiC,mBAAmB;AAE1F,SACE,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO,EAAE,SAAS,MAAM,OAAO,SAAS,SAAA;AAAA,MACxC;AAAA,MACA,gBAAgB;AAAA,IAAA;AAAA,IAEhB,sBAAA,cAAC,UAAA,EAAU,GAAG,MAAM,aAAA,CAA4B;AAAA,EAAA;AAGtD;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext({enabled:!1}),r=t.Provider;exports.InlineEditingProvider=r,exports.useInlineEditing=()=>e.useContext(t);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("../Tooltip/Tooltip.cjs.js"),o=e.createContext({enabled:!1});exports.InlineEditingProvider=({value:i,tooltipText:l,isReadOnlyView:r,children:n,tooltipLabelWrapperStyle:a,tooltipWrapperStyle:s})=>{const p=!!l&&!!r,c=e.useMemo(()=>({...i,tooltipText:p?void 0:l}),[i,p,l]),d=e.createElement(o.Provider,{value:c},n);return p?e.createElement(t.Tooltip,{style:s,label:e.createElement("span",{tabIndex:-1,style:{display:"inline-flex",alignItems:"center",...a}},d),location:"right",position:"center"},l):d},exports.useInlineEditing=()=>e.useContext(o);
2
2
  //# sourceMappingURL=InlineEditingContext.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineEditingContext.cjs.js","sources":["../../../src/components/InlineEditing/InlineEditingContext.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 { createContext, useContext } from \"react\";\n\nexport interface InlineEditingInterface {\n enabled: boolean;\n required?: boolean;\n error?: boolean;\n success?: boolean;\n tooltipText?: string;\n inlineClassNames?: string;\n}\n\nconst InlineEditingContext = createContext<InlineEditingInterface>({ enabled: false });\n\nexport const InlineEditingProvider = InlineEditingContext.Provider;\n\nexport const useInlineEditing = () => useContext(InlineEditingContext);\n"],"names":["InlineEditingContext","createContext","enabled","InlineEditingProvider","Provider","useContext"],"mappings":"yGA2BMA,EAAuBC,EAAAA,cAAsC,CAAEC,SAAS,IAEjEC,EAAwBH,EAAqBI,kEAE1B,IAAMC,EAAAA,WAAWL"}
1
+ {"version":3,"file":"InlineEditingContext.cjs.js","sources":["../../../src/components/InlineEditing/InlineEditingContext.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ReactNode, createContext, useContext, useMemo } from \"react\";\nimport { Tooltip } from \"../Tooltip/Tooltip\";\n\nexport interface InlineEditingInterface {\n enabled: boolean;\n required?: boolean;\n error?: boolean;\n success?: boolean;\n tooltipText?: string;\n inlineClassNames?: string;\n}\n\nconst InlineEditingContext = createContext<InlineEditingInterface>({ enabled: false });\n\ntype InlineEditingProviderProps = {\n value: Omit<InlineEditingInterface, \"tooltipText\">;\n tooltipText?: string;\n /**\n * When true and tooltipText is provided, tooltip rendering is handled by a wrapper tooltip and\n * the inline status tooltip icon is disabled.\n */\n isReadOnlyView?: boolean;\n children: ReactNode;\n tooltipLabelWrapperStyle?: React.CSSProperties;\n tooltipWrapperStyle?: React.CSSProperties;\n};\n\nexport const InlineEditingProvider = ({\n value,\n tooltipText,\n isReadOnlyView,\n children,\n tooltipLabelWrapperStyle,\n tooltipWrapperStyle\n}: InlineEditingProviderProps) => {\n const shouldUseReadOnlyTooltip = !!tooltipText && !!isReadOnlyView;\n\n const contextValue = useMemo(\n () => ({\n ...value,\n tooltipText: shouldUseReadOnlyTooltip ? undefined : tooltipText\n }),\n [value, shouldUseReadOnlyTooltip, tooltipText]\n );\n\n const provider = (\n <InlineEditingContext.Provider value={contextValue}>{children}</InlineEditingContext.Provider>\n );\n\n if (!shouldUseReadOnlyTooltip) {\n return provider;\n }\n\n return (\n <Tooltip\n style={tooltipWrapperStyle}\n label={\n <span\n tabIndex={-1}\n style={{ display: \"inline-flex\", alignItems: \"center\", ...tooltipLabelWrapperStyle }}\n >\n {provider}\n </span>\n }\n location=\"right\"\n position=\"center\"\n >\n {tooltipText}\n </Tooltip>\n );\n};\n\nexport const useInlineEditing = () => useContext(InlineEditingContext);\n"],"names":["InlineEditingContext","createContext","enabled","value","tooltipText","isReadOnlyView","children","tooltipLabelWrapperStyle","tooltipWrapperStyle","shouldUseReadOnlyTooltip","contextValue","useMemo","provider","createElement","Provider","React","Tooltip","style","label","tabIndex","display","alignItems","location","position","useContext"],"mappings":"gJA4BMA,EAAuBC,EAAAA,cAAsC,CAAEC,SAAS,kCAezC,EACnCC,QACAC,cACAC,iBACAC,WACAC,2BACAC,0BAEA,MAAMC,IAA6BL,KAAiBC,EAE9CK,EAAeC,EAAAA,QACnB,KAAA,IACKR,EACHC,YAAaK,OAA2B,EAAYL,IAEtD,CAACD,EAAOM,EAA0BL,IAG9BQ,IACJC,cAACb,EAAqBc,SAArB,CAA8BX,MAAOO,GAAeJ,GAGvD,OAAKG,EAKHM,EAAAF,cAACG,EAAAA,QAAA,CACCC,MAAOT,EACPU,MACEH,EAAAF,cAAC,OAAA,CACCM,UAAU,EACVF,MAAO,CAAEG,QAAS,cAAeC,WAAY,YAAad,IAEzDK,GAGLU,SAAS,QACTC,SAAS,UAERnB,GAjBIQ,4BAsBqB,IAAMY,EAAAA,WAAWxB"}
@@ -1,6 +1,44 @@
1
- import { createContext, useContext } from "react";
1
+ import React, { useMemo, useContext, createContext } from "react";
2
+ import { Tooltip } from "../Tooltip/Tooltip.es.js";
2
3
  const InlineEditingContext = createContext({ enabled: false });
3
- const InlineEditingProvider = InlineEditingContext.Provider;
4
+ const InlineEditingProvider = ({
5
+ value,
6
+ tooltipText,
7
+ isReadOnlyView,
8
+ children,
9
+ tooltipLabelWrapperStyle,
10
+ tooltipWrapperStyle
11
+ }) => {
12
+ const shouldUseReadOnlyTooltip = !!tooltipText && !!isReadOnlyView;
13
+ const contextValue = useMemo(
14
+ () => ({
15
+ ...value,
16
+ tooltipText: shouldUseReadOnlyTooltip ? void 0 : tooltipText
17
+ }),
18
+ [value, shouldUseReadOnlyTooltip, tooltipText]
19
+ );
20
+ const provider = /* @__PURE__ */ React.createElement(InlineEditingContext.Provider, { value: contextValue }, children);
21
+ if (!shouldUseReadOnlyTooltip) {
22
+ return provider;
23
+ }
24
+ return /* @__PURE__ */ React.createElement(
25
+ Tooltip,
26
+ {
27
+ style: tooltipWrapperStyle,
28
+ label: /* @__PURE__ */ React.createElement(
29
+ "span",
30
+ {
31
+ tabIndex: -1,
32
+ style: { display: "inline-flex", alignItems: "center", ...tooltipLabelWrapperStyle }
33
+ },
34
+ provider
35
+ ),
36
+ location: "right",
37
+ position: "center"
38
+ },
39
+ tooltipText
40
+ );
41
+ };
4
42
  const useInlineEditing = () => useContext(InlineEditingContext);
5
43
  export {
6
44
  InlineEditingProvider,
@@ -1 +1 @@
1
- {"version":3,"file":"InlineEditingContext.es.js","sources":["../../../src/components/InlineEditing/InlineEditingContext.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 { createContext, useContext } from \"react\";\n\nexport interface InlineEditingInterface {\n enabled: boolean;\n required?: boolean;\n error?: boolean;\n success?: boolean;\n tooltipText?: string;\n inlineClassNames?: string;\n}\n\nconst InlineEditingContext = createContext<InlineEditingInterface>({ enabled: false });\n\nexport const InlineEditingProvider = InlineEditingContext.Provider;\n\nexport const useInlineEditing = () => useContext(InlineEditingContext);\n"],"names":[],"mappings":";AA2BA,MAAM,uBAAuB,cAAsC,EAAE,SAAS,OAAO;AAE9E,MAAM,wBAAwB,qBAAqB;AAE7C,MAAA,mBAAmB,MAAM,WAAW,oBAAoB;"}
1
+ {"version":3,"file":"InlineEditingContext.es.js","sources":["../../../src/components/InlineEditing/InlineEditingContext.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ReactNode, createContext, useContext, useMemo } from \"react\";\nimport { Tooltip } from \"../Tooltip/Tooltip\";\n\nexport interface InlineEditingInterface {\n enabled: boolean;\n required?: boolean;\n error?: boolean;\n success?: boolean;\n tooltipText?: string;\n inlineClassNames?: string;\n}\n\nconst InlineEditingContext = createContext<InlineEditingInterface>({ enabled: false });\n\ntype InlineEditingProviderProps = {\n value: Omit<InlineEditingInterface, \"tooltipText\">;\n tooltipText?: string;\n /**\n * When true and tooltipText is provided, tooltip rendering is handled by a wrapper tooltip and\n * the inline status tooltip icon is disabled.\n */\n isReadOnlyView?: boolean;\n children: ReactNode;\n tooltipLabelWrapperStyle?: React.CSSProperties;\n tooltipWrapperStyle?: React.CSSProperties;\n};\n\nexport const InlineEditingProvider = ({\n value,\n tooltipText,\n isReadOnlyView,\n children,\n tooltipLabelWrapperStyle,\n tooltipWrapperStyle\n}: InlineEditingProviderProps) => {\n const shouldUseReadOnlyTooltip = !!tooltipText && !!isReadOnlyView;\n\n const contextValue = useMemo(\n () => ({\n ...value,\n tooltipText: shouldUseReadOnlyTooltip ? undefined : tooltipText\n }),\n [value, shouldUseReadOnlyTooltip, tooltipText]\n );\n\n const provider = (\n <InlineEditingContext.Provider value={contextValue}>{children}</InlineEditingContext.Provider>\n );\n\n if (!shouldUseReadOnlyTooltip) {\n return provider;\n }\n\n return (\n <Tooltip\n style={tooltipWrapperStyle}\n label={\n <span\n tabIndex={-1}\n style={{ display: \"inline-flex\", alignItems: \"center\", ...tooltipLabelWrapperStyle }}\n >\n {provider}\n </span>\n }\n location=\"right\"\n position=\"center\"\n >\n {tooltipText}\n </Tooltip>\n );\n};\n\nexport const useInlineEditing = () => useContext(InlineEditingContext);\n"],"names":[],"mappings":";;AA4BA,MAAM,uBAAuB,cAAsC,EAAE,SAAS,OAAO;AAe9E,MAAM,wBAAwB,CAAC;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAkC;AAChC,QAAM,2BAA2B,CAAC,CAAC,eAAe,CAAC,CAAC;AAEpD,QAAM,eAAe;AAAA,IACnB,OAAO;AAAA,MACL,GAAG;AAAA,MACH,aAAa,2BAA2B,SAAY;AAAA,IAAA;AAAA,IAEtD,CAAC,OAAO,0BAA0B,WAAW;AAAA,EAAA;AAG/C,QAAM,WACJ,sBAAA,cAAC,qBAAqB,UAArB,EAA8B,OAAO,gBAAe,QAAS;AAGhE,MAAI,CAAC,0BAA0B;AAC7B,WAAO;AAAA,EACT;AAEA,SACE,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP,OACE,sBAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,UAAU;AAAA,UACV,OAAO,EAAE,SAAS,eAAe,YAAY,UAAU,GAAG,yBAAA;AAAA,QAAyB;AAAA,QAElF;AAAA,MAAA;AAAA,MAGL,UAAS;AAAA,MACT,UAAS;AAAA,IAAA;AAAA,IAER;AAAA,EAAA;AAGP;AAEO,MAAM,mBAAmB,MAAM,WAAW,oBAAoB;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("../../Form/Select/SingleSelect/Select.cjs.js"),r=require("../InlineEditingContext.cjs.js"),l=require("../../Form/Select/SingleSelect/Select.module.scss.cjs.js");exports.InlineSelect=i=>{const{className:n,error:s,success:c,tooltipText:o,required:u,...a}=i,S={enabled:!0,error:s,success:c,required:u,tooltipText:o,inlineClassNames:[n,l.default.inlineEditing].filter(Boolean).join(" ")};return e.createElement(r.InlineEditingProvider,{value:S},e.createElement(t.Select,{...a}))};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("../../Form/Select/SingleSelect/Select.cjs.js"),l=require("../InlineEditingContext.cjs.js"),i=require("../../Form/Select/SingleSelect/Select.module.scss.cjs.js");exports.InlineSelect=r=>{const{className:s,error:n,success:o,tooltipText:c,required:a,isReadOnlyView:d,...u}=r,S=[s,i.default.inlineEditing].filter(Boolean).join(" "),p=d||!!u["data-readonlyview"];return e.createElement(l.InlineEditingProvider,{value:{enabled:!0,error:n,success:o,required:a,inlineClassNames:S},tooltipText:c,isReadOnlyView:p,tooltipWrapperStyle:{width:"100%",display:"block"},tooltipLabelWrapperStyle:{width:"100%",display:"block"}},e.createElement(t.Select,{...u,isReadOnlyView:d}))};
2
2
  //# sourceMappingURL=InlineSelect.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineSelect.cjs.js","sources":["../../../../src/components/InlineEditing/InlineEditingSelect/InlineSelect.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\nimport { SingleSelectProps } from \"../../Form/Select/Select.interfaces\";\nimport { Select } from \"../../Form/Select/SingleSelect/Select\";\nimport { InlineEditingProvider } from \"../InlineEditingContext\";\nimport selectClasses from \"../../Form/Select/SingleSelect/Select.module.scss\";\n\nexport interface Props extends SingleSelectProps {\n tooltipText?: string;\n}\n\nexport const InlineSelect = (props: Props) => {\n const { className, error, success, tooltipText, required, ...rest } = props;\n const finalClassName = [className, selectClasses.inlineEditing].filter(Boolean).join(\" \");\n const inlineEditingValues = {\n enabled: true,\n error: error,\n success: success,\n required: required,\n tooltipText: tooltipText,\n inlineClassNames: finalClassName\n };\n\n return (\n <InlineEditingProvider value={inlineEditingValues}>\n <Select {...rest} />\n </InlineEditingProvider>\n );\n};\n"],"names":["props","className","error","success","tooltipText","required","rest","inlineEditingValues","enabled","inlineClassNames","selectClasses","inlineEditing","filter","Boolean","join","createElement","InlineEditingProvider","value","Select"],"mappings":"0SA0B6BA,IACrB,MAAAC,UAAEA,QAAWC,EAAOC,QAAAA,EAAAC,YAASA,WAAaC,KAAaC,GAASN,EAEhEO,EAAsB,CAC1BC,SAAS,EACTN,QACAC,UACAE,WACAD,cACAK,iBAPqB,CAACR,EAAWS,UAAcC,eAAeC,OAAOC,SAASC,KAAK,MAWnF,SAAAC,cAACC,yBAAsBC,MAAOV,mBAC3BW,EAAQA,OAAA,IAAGZ,IACd"}
1
+ {"version":3,"file":"InlineSelect.cjs.js","sources":["../../../../src/components/InlineEditing/InlineEditingSelect/InlineSelect.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\nimport { SingleSelectProps } from \"../../Form/Select/Select.interfaces\";\nimport { Select } from \"../../Form/Select/SingleSelect/Select\";\nimport { InlineEditingProvider } from \"../InlineEditingContext\";\nimport selectClasses from \"../../Form/Select/SingleSelect/Select.module.scss\";\n\nexport interface Props extends SingleSelectProps {\n tooltipText?: string;\n}\n\nexport const InlineSelect = (props: Props) => {\n const { className, error, success, tooltipText, required, isReadOnlyView, ...rest } = props;\n\n const finalClassName = [className, selectClasses.inlineEditing].filter(Boolean).join(\" \");\n\n const isReadOnly = isReadOnlyView || !!(rest as Record<string, unknown>)[\"data-readonlyview\"];\n\n return (\n <InlineEditingProvider\n value={{ enabled: true, error, success, required, inlineClassNames: finalClassName }}\n tooltipText={tooltipText}\n isReadOnlyView={isReadOnly}\n // Fill the DataGrid cell so the tooltip anchor matches the element width.\n tooltipWrapperStyle={{ width: \"100%\", display: \"block\" }}\n tooltipLabelWrapperStyle={{ width: \"100%\", display: \"block\" }}\n >\n <Select {...rest} isReadOnlyView={isReadOnlyView} />\n </InlineEditingProvider>\n );\n};\n"],"names":["props","className","error","success","tooltipText","required","isReadOnlyView","rest","finalClassName","selectClasses","inlineEditing","filter","Boolean","join","isReadOnly","React","createElement","InlineEditingProvider","value","enabled","inlineClassNames","tooltipWrapperStyle","width","display","tooltipLabelWrapperStyle","Select"],"mappings":"0SA0B6BA,IAC3B,MAAMC,UAAEA,QAAWC,EAAAC,QAAOA,EAAAC,YAASA,WAAaC,EAAAC,eAAUA,KAAmBC,GAASP,EAEhFQ,EAAiB,CAACP,EAAWQ,UAAcC,eAAeC,OAAOC,SAASC,KAAK,KAE/EC,EAAaR,KAAqBC,EAAiC,qBAEzE,OACEQ,EAAAC,cAACC,EAAAA,sBAAA,CACCC,MAAO,CAAEC,SAAS,EAAMjB,QAAOC,UAASE,WAAUe,iBAAkBZ,GACpEJ,cACAE,eAAgBQ,EAEhBO,oBAAqB,CAAEC,MAAO,OAAQC,QAAS,SAC/CC,yBAA0B,CAAEF,MAAO,OAAQC,QAAS,UAEpDR,EAAAC,cAACS,EAAAA,OAAA,IAAWlB,EAAMD"}
@@ -3,17 +3,20 @@ import { Select } from "../../Form/Select/SingleSelect/Select.es.js";
3
3
  import { InlineEditingProvider } from "../InlineEditingContext.es.js";
4
4
  import selectClasses from "../../Form/Select/SingleSelect/Select.module.scss.es.js";
5
5
  const InlineSelect = (props) => {
6
- const { className, error, success, tooltipText, required, ...rest } = props;
6
+ const { className, error, success, tooltipText, required, isReadOnlyView, ...rest } = props;
7
7
  const finalClassName = [className, selectClasses.inlineEditing].filter(Boolean).join(" ");
8
- const inlineEditingValues = {
9
- enabled: true,
10
- error,
11
- success,
12
- required,
13
- tooltipText,
14
- inlineClassNames: finalClassName
15
- };
16
- return /* @__PURE__ */ React.createElement(InlineEditingProvider, { value: inlineEditingValues }, /* @__PURE__ */ React.createElement(Select, { ...rest }));
8
+ const isReadOnly = isReadOnlyView || !!rest["data-readonlyview"];
9
+ return /* @__PURE__ */ React.createElement(
10
+ InlineEditingProvider,
11
+ {
12
+ value: { enabled: true, error, success, required, inlineClassNames: finalClassName },
13
+ tooltipText,
14
+ isReadOnlyView: isReadOnly,
15
+ tooltipWrapperStyle: { width: "100%", display: "block" },
16
+ tooltipLabelWrapperStyle: { width: "100%", display: "block" }
17
+ },
18
+ /* @__PURE__ */ React.createElement(Select, { ...rest, isReadOnlyView })
19
+ );
17
20
  };
18
21
  export {
19
22
  InlineSelect
@@ -1 +1 @@
1
- {"version":3,"file":"InlineSelect.es.js","sources":["../../../../src/components/InlineEditing/InlineEditingSelect/InlineSelect.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\nimport { SingleSelectProps } from \"../../Form/Select/Select.interfaces\";\nimport { Select } from \"../../Form/Select/SingleSelect/Select\";\nimport { InlineEditingProvider } from \"../InlineEditingContext\";\nimport selectClasses from \"../../Form/Select/SingleSelect/Select.module.scss\";\n\nexport interface Props extends SingleSelectProps {\n tooltipText?: string;\n}\n\nexport const InlineSelect = (props: Props) => {\n const { className, error, success, tooltipText, required, ...rest } = props;\n const finalClassName = [className, selectClasses.inlineEditing].filter(Boolean).join(\" \");\n const inlineEditingValues = {\n enabled: true,\n error: error,\n success: success,\n required: required,\n tooltipText: tooltipText,\n inlineClassNames: finalClassName\n };\n\n return (\n <InlineEditingProvider value={inlineEditingValues}>\n <Select {...rest} />\n </InlineEditingProvider>\n );\n};\n"],"names":[],"mappings":";;;;AA0Ba,MAAA,eAAe,CAAC,UAAiB;AACtC,QAAA,EAAE,WAAW,OAAO,SAAS,aAAa,UAAU,GAAG,SAAS;AAChE,QAAA,iBAAiB,CAAC,WAAW,cAAc,aAAa,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AACxF,QAAM,sBAAsB;AAAA,IAC1B,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,kBAAkB;AAAA,EACpB;AAGE,SAAA,sBAAA,cAAC,yBAAsB,OAAO,oBAAA,uCAC3B,QAAQ,EAAA,GAAG,KAAM,CAAA,CACpB;AAEJ;"}
1
+ {"version":3,"file":"InlineSelect.es.js","sources":["../../../../src/components/InlineEditing/InlineEditingSelect/InlineSelect.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\nimport { SingleSelectProps } from \"../../Form/Select/Select.interfaces\";\nimport { Select } from \"../../Form/Select/SingleSelect/Select\";\nimport { InlineEditingProvider } from \"../InlineEditingContext\";\nimport selectClasses from \"../../Form/Select/SingleSelect/Select.module.scss\";\n\nexport interface Props extends SingleSelectProps {\n tooltipText?: string;\n}\n\nexport const InlineSelect = (props: Props) => {\n const { className, error, success, tooltipText, required, isReadOnlyView, ...rest } = props;\n\n const finalClassName = [className, selectClasses.inlineEditing].filter(Boolean).join(\" \");\n\n const isReadOnly = isReadOnlyView || !!(rest as Record<string, unknown>)[\"data-readonlyview\"];\n\n return (\n <InlineEditingProvider\n value={{ enabled: true, error, success, required, inlineClassNames: finalClassName }}\n tooltipText={tooltipText}\n isReadOnlyView={isReadOnly}\n // Fill the DataGrid cell so the tooltip anchor matches the element width.\n tooltipWrapperStyle={{ width: \"100%\", display: \"block\" }}\n tooltipLabelWrapperStyle={{ width: \"100%\", display: \"block\" }}\n >\n <Select {...rest} isReadOnlyView={isReadOnlyView} />\n </InlineEditingProvider>\n );\n};\n"],"names":[],"mappings":";;;;AA0BO,MAAM,eAAe,CAAC,UAAiB;AAC5C,QAAM,EAAE,WAAW,OAAO,SAAS,aAAa,UAAU,gBAAgB,GAAG,KAAA,IAAS;AAEtF,QAAM,iBAAiB,CAAC,WAAW,cAAc,aAAa,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAExF,QAAM,aAAa,kBAAkB,CAAC,CAAE,KAAiC,mBAAmB;AAE5F,SACE,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO,EAAE,SAAS,MAAM,OAAO,SAAS,UAAU,kBAAkB,eAAA;AAAA,MACpE;AAAA,MACA,gBAAgB;AAAA,MAEhB,qBAAqB,EAAE,OAAO,QAAQ,SAAS,QAAA;AAAA,MAC/C,0BAA0B,EAAE,OAAO,QAAQ,SAAS,QAAA;AAAA,IAAQ;AAAA,IAE5D,sBAAA,cAAC,QAAA,EAAQ,GAAG,MAAM,eAAA,CAAgC;AAAA,EAAA;AAGxD;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Card.cjs.js","sources":["../../../../src/components/Layout/Card/Card.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { HTMLAttributes, ReactElement } from \"react\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./Card.module.scss\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\n\nexport interface CardHeaderInfo {}\n\nexport type CardStyle = \"default\" | \"white\";\n\nexport interface CardProps extends HTMLAttributes<HTMLDivElement> {\n title?: string;\n titleHeadingLevel?: number;\n description?: string;\n action?: ReactElement;\n wrapHeaderText?: boolean;\n headerContent?: ReactElement;\n cardStyle?: CardStyle;\n collapsed?: boolean;\n}\n\nexport const CardComponent = ({\n title,\n titleHeadingLevel,\n description,\n action,\n wrapHeaderText = false,\n headerContent,\n cardStyle = \"default\",\n collapsed = false,\n children,\n ...rest\n}: CardProps) => {\n const headerPresent = Boolean(title || description || action || headerContent);\n return (\n <div className={classes[\"main\"]} {...rest}>\n {headerPresent && (\n <div className={classes[\"header\"]}>\n {headerContent}\n {(title || description || action) && (\n <>\n {(title || description) && (\n <div className={classes[\"title-left\"]}>\n {title && (\n <Typography\n data-testid={\"card-title\"}\n className={classes[\"title\"]}\n variant={\"body\"}\n role={titleHeadingLevel ? \"heading\" : undefined}\n aria-level={titleHeadingLevel}\n >\n {wrapHeaderText ? title : <TextEllipsis>{title}</TextEllipsis>}\n </Typography>\n )}\n {description && (\n <Typography\n data-testid={\"card-description\"}\n className={classes[\"description\"]}\n variant=\"sub-text\"\n spacing={{ margin: 0 }}\n >\n {wrapHeaderText ? description : <TextEllipsis>{description}</TextEllipsis>}\n </Typography>\n )}\n </div>\n )}\n {action && (\n <div data-testid={\"card-action\"} className={classes[\"title-right\"]}>\n {action}\n </div>\n )}\n </>\n )}\n </div>\n )}\n {!collapsed && (\n <div\n data-testid={\"card-body\"}\n className={[\n classes[\"body\"],\n classes[`${cardStyle}-body-style`],\n classes[headerPresent ? \"with-header\" : \"without-header\"]\n ].join(\" \")}\n >\n {children}\n </div>\n )}\n </div>\n );\n};\n\nexport const Card = CardComponent;\n"],"names":["CardComponent","title","titleHeadingLevel","description","action","wrapHeaderText","headerContent","cardStyle","collapsed","children","rest","headerPresent","Boolean","React","createElement","className","classes","Fragment","Typography","variant","role","TextEllipsis","spacing","margin","join","Card"],"mappings":"oPAqCaA,EAAgB,EAC3BC,QACAC,oBACAC,cACAC,SACAC,kBAAiB,EACjBC,gBACAC,YAAY,UACZC,aAAY,EACZC,cACGC,MAEH,MAAMC,EAAgBC,QAAQX,GAASE,GAAeC,GAAUE,GAE7D,OAAAO,EAAAC,cAAA,MAAA,CAAIC,UAAWC,UAAc,QAAON,GAClCC,KACCG,cAAC,MAAI,CAAAC,UAAWC,UAAgB,QAC7BV,GACCL,GAASE,GAAeC,IACxBS,EAAAC,cAAAD,EAAAI,SAAA,MACIhB,GAASE,MACRW,cAAA,MAAA,CAAIC,UAAWC,EAAAA,QAAQ,eACrBf,GACCY,EAAAC,cAACI,EAAAA,WAAA,CACC,cAAa,aACbH,UAAWC,UAAe,MAC1BG,QAAS,OACTC,KAAMlB,EAAoB,eAAY,EACtC,aAAYA,GAEXG,EAAiBJ,EAASY,EAAAC,cAAAO,EAAAA,aAAA,KAAcpB,IAG5CE,GACCU,EAAAC,cAACI,EAAAA,WAAA,CACC,cAAa,mBACbH,UAAWC,UAAqB,YAChCG,QAAQ,WACRG,QAAS,CAAEC,OAAQ,IAElBlB,EAAiBF,EAAeU,EAAAC,cAAAO,EAAAA,aAAA,KAAclB,KAKtDC,GACES,EAAAC,cAAA,MAAA,CAAI,cAAa,cAAeC,UAAWC,EAAAA,QAAQ,gBACjDZ,MAOXI,GACAK,EAAAC,cAAC,MAAA,CACC,cAAa,YACbC,UAAW,CACTC,EAAAA,QAAc,KACdA,EAAAA,QAAQ,GAAGT,gBACXS,UAAQL,EAAgB,cAAgB,mBACxCa,KAAK,MAENf,GAGP,EAISgB,EAAOzB"}
1
+ {"version":3,"file":"Card.cjs.js","sources":["../../../../src/components/Layout/Card/Card.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { HTMLAttributes, ReactElement } from \"react\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./Card.module.scss\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\n\nexport interface CardHeaderInfo {}\n\nexport type CardStyle = \"default\" | \"white\";\n\nexport interface CardProps extends HTMLAttributes<HTMLDivElement> {\n title?: string;\n titleHeadingLevel?: number;\n description?: string;\n action?: ReactElement;\n wrapHeaderText?: boolean;\n headerContent?: ReactElement;\n cardStyle?: CardStyle;\n collapsed?: boolean;\n}\n\nexport const CardComponent = ({\n title,\n titleHeadingLevel,\n description,\n action,\n wrapHeaderText = false,\n headerContent,\n cardStyle = \"default\",\n collapsed = false,\n children,\n ...rest\n}: CardProps) => {\n const headerPresent = Boolean(title || description || action || headerContent);\n return (\n <div className={classes[\"main\"]} {...rest}>\n {headerPresent && (\n <div className={classes[\"header\"]}>\n {headerContent}\n {(title || description || action) && (\n <>\n {(title || description) && (\n <div className={classes[\"title-left\"]}>\n {title && (\n <Typography\n data-testid={\"card-title\"}\n className={classes[\"title\"]}\n variant={\"body\"}\n role={titleHeadingLevel ? \"heading\" : undefined}\n aria-level={titleHeadingLevel}\n >\n {wrapHeaderText ? title : <TextEllipsis>{title}</TextEllipsis>}\n </Typography>\n )}\n {description && (\n <Typography\n data-testid={\"card-description\"}\n className={classes[\"description\"]}\n variant=\"sub-text\"\n spacing={{ margin: 0 }}\n >\n {wrapHeaderText ? description : <TextEllipsis>{description}</TextEllipsis>}\n </Typography>\n )}\n </div>\n )}\n {action && (\n <div data-testid={\"card-action\"} className={classes[\"title-right\"]}>\n {action}\n </div>\n )}\n </>\n )}\n </div>\n )}\n {!collapsed && (\n <div\n data-testid={\"card-body\"}\n className={[\n classes[\"body\"],\n classes[`${cardStyle}-body-style`],\n classes[headerPresent ? \"with-header\" : \"without-header\"]\n ].join(\" \")}\n >\n {children}\n </div>\n )}\n </div>\n );\n};\n\nexport const Card = CardComponent;\n"],"names":["CardComponent","title","titleHeadingLevel","description","action","wrapHeaderText","headerContent","cardStyle","collapsed","children","rest","headerPresent","Boolean","React","createElement","className","classes","Fragment","Typography","variant","role","TextEllipsis","spacing","margin","join","Card"],"mappings":"oPAqCaA,EAAgB,EAC3BC,QACAC,oBACAC,cACAC,SACAC,kBAAiB,EACjBC,gBACAC,YAAY,UACZC,aAAY,EACZC,cACGC,MAEH,MAAMC,EAAgBC,QAAQX,GAASE,GAAeC,GAAUE,GAChE,OACEO,EAAAC,cAAC,MAAA,CAAIC,UAAWC,UAAc,QAAON,GAClCC,KACCG,cAAC,MAAA,CAAIC,UAAWC,UAAgB,QAC7BV,GACCL,GAASE,GAAeC,IACxBS,EAAAC,cAAAD,EAAAI,SAAA,MACIhB,GAASE,MACTW,cAAC,MAAA,CAAIC,UAAWC,EAAAA,QAAQ,eACrBf,GACCY,EAAAC,cAACI,EAAAA,WAAA,CACC,cAAa,aACbH,UAAWC,EAAAA,QAAe,MAC1BG,QAAS,OACTC,KAAMlB,EAAoB,eAAY,EACtC,aAAYA,GAEXG,EAAiBJ,EAAQY,EAAAC,cAACO,EAAAA,aAAA,KAAcpB,IAG5CE,GACCU,EAAAC,cAACI,EAAAA,WAAA,CACC,cAAa,mBACbH,UAAWC,EAAAA,QAAqB,YAChCG,QAAQ,WACRG,QAAS,CAAEC,OAAQ,IAElBlB,EAAiBF,EAAcU,EAAAC,cAACO,EAAAA,aAAA,KAAclB,KAKtDC,GACCS,EAAAC,cAAC,MAAA,CAAI,cAAa,cAAeC,UAAWC,EAAAA,QAAQ,gBACjDZ,MAOXI,GACAK,EAAAC,cAAC,MAAA,CACC,cAAa,YACbC,UAAW,CACTC,EAAAA,QAAc,KACdA,EAAAA,QAAQ,GAAGT,gBACXS,UAAQL,EAAgB,cAAgB,mBACxCa,KAAK,MAENf,KAOEgB,EAAOzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Card.es.js","sources":["../../../../src/components/Layout/Card/Card.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { HTMLAttributes, ReactElement } from \"react\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./Card.module.scss\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\n\nexport interface CardHeaderInfo {}\n\nexport type CardStyle = \"default\" | \"white\";\n\nexport interface CardProps extends HTMLAttributes<HTMLDivElement> {\n title?: string;\n titleHeadingLevel?: number;\n description?: string;\n action?: ReactElement;\n wrapHeaderText?: boolean;\n headerContent?: ReactElement;\n cardStyle?: CardStyle;\n collapsed?: boolean;\n}\n\nexport const CardComponent = ({\n title,\n titleHeadingLevel,\n description,\n action,\n wrapHeaderText = false,\n headerContent,\n cardStyle = \"default\",\n collapsed = false,\n children,\n ...rest\n}: CardProps) => {\n const headerPresent = Boolean(title || description || action || headerContent);\n return (\n <div className={classes[\"main\"]} {...rest}>\n {headerPresent && (\n <div className={classes[\"header\"]}>\n {headerContent}\n {(title || description || action) && (\n <>\n {(title || description) && (\n <div className={classes[\"title-left\"]}>\n {title && (\n <Typography\n data-testid={\"card-title\"}\n className={classes[\"title\"]}\n variant={\"body\"}\n role={titleHeadingLevel ? \"heading\" : undefined}\n aria-level={titleHeadingLevel}\n >\n {wrapHeaderText ? title : <TextEllipsis>{title}</TextEllipsis>}\n </Typography>\n )}\n {description && (\n <Typography\n data-testid={\"card-description\"}\n className={classes[\"description\"]}\n variant=\"sub-text\"\n spacing={{ margin: 0 }}\n >\n {wrapHeaderText ? description : <TextEllipsis>{description}</TextEllipsis>}\n </Typography>\n )}\n </div>\n )}\n {action && (\n <div data-testid={\"card-action\"} className={classes[\"title-right\"]}>\n {action}\n </div>\n )}\n </>\n )}\n </div>\n )}\n {!collapsed && (\n <div\n data-testid={\"card-body\"}\n className={[\n classes[\"body\"],\n classes[`${cardStyle}-body-style`],\n classes[headerPresent ? \"with-header\" : \"without-header\"]\n ].join(\" \")}\n >\n {children}\n </div>\n )}\n </div>\n );\n};\n\nexport const Card = CardComponent;\n"],"names":[],"mappings":";;;;AAqCO,MAAM,gBAAgB,CAAC;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,iBAAiB;AAAA,EACjB;AAAA,EACA,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ;AAAA,EACA,GAAG;AACL,MAAiB;AACf,QAAM,gBAAgB,QAAQ,SAAS,eAAe,UAAU,aAAa;AAC7E,SACG,sBAAA,cAAA,OAAA,EAAI,WAAW,QAAQ,MAAM,GAAI,GAAG,KAAA,GAClC,iBACC,sBAAA,cAAC,OAAI,EAAA,WAAW,QAAQ,QAAQ,EAC7B,GAAA,gBACC,SAAS,eAAe,WACxB,sBAAA,cAAA,MAAA,UAAA,OACI,SAAS,gBACR,sBAAA,cAAA,OAAA,EAAI,WAAW,QAAQ,YAAY,EAAA,GACjC,SACC,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAa;AAAA,MACb,WAAW,QAAQ,OAAO;AAAA,MAC1B,SAAS;AAAA,MACT,MAAM,oBAAoB,YAAY;AAAA,MACtC,cAAY;AAAA,IAAA;AAAA,IAEX,iBAAiB,QAAS,sBAAA,cAAA,cAAA,MAAc,KAAM;AAAA,EAAA,GAGlD,eACC,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAa;AAAA,MACb,WAAW,QAAQ,aAAa;AAAA,MAChC,SAAQ;AAAA,MACR,SAAS,EAAE,QAAQ,EAAE;AAAA,IAAA;AAAA,IAEpB,iBAAiB,cAAe,sBAAA,cAAA,cAAA,MAAc,WAAY;AAAA,EAAA,CAGjE,GAED,UACE,sBAAA,cAAA,OAAA,EAAI,eAAa,eAAe,WAAW,QAAQ,aAAa,KAC9D,MACH,CAEJ,CAEJ,GAED,CAAC,aACA,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAa;AAAA,MACb,WAAW;AAAA,QACT,QAAQ,MAAM;AAAA,QACd,QAAQ,GAAG,SAAS,aAAa;AAAA,QACjC,QAAQ,gBAAgB,gBAAgB,gBAAgB;AAAA,MAC1D,EAAE,KAAK,GAAG;AAAA,IAAA;AAAA,IAET;AAAA,EAAA,CAGP;AAEJ;AAEO,MAAM,OAAO;"}
1
+ {"version":3,"file":"Card.es.js","sources":["../../../../src/components/Layout/Card/Card.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { HTMLAttributes, ReactElement } from \"react\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./Card.module.scss\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\n\nexport interface CardHeaderInfo {}\n\nexport type CardStyle = \"default\" | \"white\";\n\nexport interface CardProps extends HTMLAttributes<HTMLDivElement> {\n title?: string;\n titleHeadingLevel?: number;\n description?: string;\n action?: ReactElement;\n wrapHeaderText?: boolean;\n headerContent?: ReactElement;\n cardStyle?: CardStyle;\n collapsed?: boolean;\n}\n\nexport const CardComponent = ({\n title,\n titleHeadingLevel,\n description,\n action,\n wrapHeaderText = false,\n headerContent,\n cardStyle = \"default\",\n collapsed = false,\n children,\n ...rest\n}: CardProps) => {\n const headerPresent = Boolean(title || description || action || headerContent);\n return (\n <div className={classes[\"main\"]} {...rest}>\n {headerPresent && (\n <div className={classes[\"header\"]}>\n {headerContent}\n {(title || description || action) && (\n <>\n {(title || description) && (\n <div className={classes[\"title-left\"]}>\n {title && (\n <Typography\n data-testid={\"card-title\"}\n className={classes[\"title\"]}\n variant={\"body\"}\n role={titleHeadingLevel ? \"heading\" : undefined}\n aria-level={titleHeadingLevel}\n >\n {wrapHeaderText ? title : <TextEllipsis>{title}</TextEllipsis>}\n </Typography>\n )}\n {description && (\n <Typography\n data-testid={\"card-description\"}\n className={classes[\"description\"]}\n variant=\"sub-text\"\n spacing={{ margin: 0 }}\n >\n {wrapHeaderText ? description : <TextEllipsis>{description}</TextEllipsis>}\n </Typography>\n )}\n </div>\n )}\n {action && (\n <div data-testid={\"card-action\"} className={classes[\"title-right\"]}>\n {action}\n </div>\n )}\n </>\n )}\n </div>\n )}\n {!collapsed && (\n <div\n data-testid={\"card-body\"}\n className={[\n classes[\"body\"],\n classes[`${cardStyle}-body-style`],\n classes[headerPresent ? \"with-header\" : \"without-header\"]\n ].join(\" \")}\n >\n {children}\n </div>\n )}\n </div>\n );\n};\n\nexport const Card = CardComponent;\n"],"names":[],"mappings":";;;;AAqCO,MAAM,gBAAgB,CAAC;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,iBAAiB;AAAA,EACjB;AAAA,EACA,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ;AAAA,EACA,GAAG;AACL,MAAiB;AACf,QAAM,gBAAgB,QAAQ,SAAS,eAAe,UAAU,aAAa;AAC7E,SACE,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,MAAM,GAAI,GAAG,KAAA,GAClC,iBACC,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,QAAQ,EAAA,GAC7B,gBACC,SAAS,eAAe,WACxB,sBAAA,cAAA,MAAA,UAAA,OACI,SAAS,gBACT,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,YAAY,EAAA,GACjC,SACC,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAa;AAAA,MACb,WAAW,QAAQ,OAAO;AAAA,MAC1B,SAAS;AAAA,MACT,MAAM,oBAAoB,YAAY;AAAA,MACtC,cAAY;AAAA,IAAA;AAAA,IAEX,iBAAiB,QAAQ,sBAAA,cAAC,cAAA,MAAc,KAAM;AAAA,EAAA,GAGlD,eACC,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAa;AAAA,MACb,WAAW,QAAQ,aAAa;AAAA,MAChC,SAAQ;AAAA,MACR,SAAS,EAAE,QAAQ,EAAA;AAAA,IAAE;AAAA,IAEpB,iBAAiB,cAAc,sBAAA,cAAC,cAAA,MAAc,WAAY;AAAA,EAAA,CAGjE,GAED,UACC,sBAAA,cAAC,OAAA,EAAI,eAAa,eAAe,WAAW,QAAQ,aAAa,KAC9D,MACH,CAEJ,CAEJ,GAED,CAAC,aACA,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAa;AAAA,MACb,WAAW;AAAA,QACT,QAAQ,MAAM;AAAA,QACd,QAAQ,GAAG,SAAS,aAAa;AAAA,QACjC,QAAQ,gBAAgB,gBAAgB,gBAAgB;AAAA,MAAA,EACxD,KAAK,GAAG;AAAA,IAAA;AAAA,IAET;AAAA,EAAA,CAGP;AAEJ;AAEO,MAAM,OAAO;"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Card_main_gFXfX{border-radius:calc(.25 * var(--font-size));min-width:calc(18.5 * var(--font-size));overflow:hidden}.Card_header_gFXfX{display:flex;align-items:center;padding:calc(.5 * var(--font-size)) calc(1.5 * var(--font-size));justify-content:space-between;gap:calc(.5 * var(--font-size));background-color:var(--color-primary100)}.Card_header_gFXfX .Card_title-left_gFXfX{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.Card_header_gFXfX .Card_title-left_gFXfX .Card_title_gFXfX{margin:0;font-weight:500;max-width:100%;display:block}.Card_header_gFXfX .Card_title-left_gFXfX .Card_description_gFXfX{margin:0;max-width:100%;display:block}.Card_header_gFXfX .Card_title-right_gFXfX{flex:0 0 auto;display:flex;align-items:center;height:100%;gap:calc(.5 * var(--font-size));white-space:nowrap}.Card_body_gFXfX{padding:calc(1 * var(--font-size)) calc(1.5 * var(--font-size))}.Card_body_gFXfX.Card_default-body-style_gFXfX{background-color:var(--color-blue-grey50)}.Card_body_gFXfX.Card_white-body-style_gFXfX{background-color:var(--color-white);border:1px solid var(--color-blue-grey100)}.Card_body_gFXfX.Card_white-body-style_gFXfX.Card_without-header_gFXfX{border-radius:calc(.25 * var(--font-size))}.Card_body_gFXfX.Card_white-body-style_gFXfX.Card_with-header_gFXfX{border-top:none;border-bottom-left-radius:calc(.25 * var(--font-size));border-bottom-right-radius:calc(.25 * var(--font-size))}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Card_main_gFXfX",t="Card_header_gFXfX",d="Card_title_gFXfX",r="Card_description_gFXfX",i="Card_body_gFXfX",a={main:e,header:t,"title-left":"Card_title-left_gFXfX",title:d,description:r,"title-right":"Card_title-right_gFXfX",body:i,"default-body-style":"Card_default-body-style_gFXfX","white-body-style":"Card_white-body-style_gFXfX","without-header":"Card_without-header_gFXfX","with-header":"Card_with-header_gFXfX"};exports.body=i,exports.default=a,exports.description=r,exports.header=t,exports.main=e,exports.title=d;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Card_main_jyx43{border-radius:calc(.25 * var(--font-size));min-width:calc(18.5 * var(--font-size));overflow:hidden}.Card_header_jyx43{display:flex;align-items:center;padding:calc(.5 * var(--font-size)) calc(1.5 * var(--font-size));justify-content:space-between;gap:calc(.5 * var(--font-size));background-color:var(--color-primary100)}.Card_header_jyx43 .Card_title-left_jyx43{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.Card_header_jyx43 .Card_title-left_jyx43 .Card_title_jyx43{margin:0;font-weight:500;max-width:100%;display:block}.Card_header_jyx43 .Card_title-left_jyx43 .Card_description_jyx43{margin:0;max-width:100%;display:block}.Card_header_jyx43 .Card_title-right_jyx43{flex:0 0 auto;display:flex;align-items:center;height:100%;gap:calc(.5 * var(--font-size));white-space:nowrap}.Card_body_jyx43{padding:calc(1 * var(--font-size)) calc(1.5 * var(--font-size))}.Card_body_jyx43.Card_default-body-style_jyx43{background-color:var(--color-blue-grey50)}.Card_body_jyx43.Card_white-body-style_jyx43{background-color:var(--color-white);border:1px solid var(--color-blue-grey100)}.Card_body_jyx43.Card_white-body-style_jyx43.Card_without-header_jyx43{border-radius:calc(.25 * var(--font-size))}.Card_body_jyx43.Card_white-body-style_jyx43.Card_with-header_jyx43{border-top:none;border-bottom-left-radius:calc(.25 * var(--font-size));border-bottom-right-radius:calc(.25 * var(--font-size))}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Card_main_jyx43",t="Card_header_jyx43",d="Card_title_jyx43",r="Card_description_jyx43",i="Card_body_jyx43",a={main:e,header:t,"title-left":"Card_title-left_jyx43",title:d,description:r,"title-right":"Card_title-right_jyx43",body:i,"default-body-style":"Card_default-body-style_jyx43","white-body-style":"Card_white-body-style_jyx43","without-header":"Card_without-header_jyx43","with-header":"Card_with-header_jyx43"};exports.body=i,exports.default=a,exports.description=r,exports.header=t,exports.main=e,exports.title=d;
3
3
  //# sourceMappingURL=Card.module.scss.cjs.js.map
@@ -1,21 +1,21 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Card_main_gFXfX{border-radius:calc(.25 * var(--font-size));min-width:calc(18.5 * var(--font-size));overflow:hidden}.Card_header_gFXfX{display:flex;align-items:center;padding:calc(.5 * var(--font-size)) calc(1.5 * var(--font-size));justify-content:space-between;gap:calc(.5 * var(--font-size));background-color:var(--color-primary100)}.Card_header_gFXfX .Card_title-left_gFXfX{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.Card_header_gFXfX .Card_title-left_gFXfX .Card_title_gFXfX{margin:0;font-weight:500;max-width:100%;display:block}.Card_header_gFXfX .Card_title-left_gFXfX .Card_description_gFXfX{margin:0;max-width:100%;display:block}.Card_header_gFXfX .Card_title-right_gFXfX{flex:0 0 auto;display:flex;align-items:center;height:100%;gap:calc(.5 * var(--font-size));white-space:nowrap}.Card_body_gFXfX{padding:calc(1 * var(--font-size)) calc(1.5 * var(--font-size))}.Card_body_gFXfX.Card_default-body-style_gFXfX{background-color:var(--color-blue-grey50)}.Card_body_gFXfX.Card_white-body-style_gFXfX{background-color:var(--color-white);border:1px solid var(--color-blue-grey100)}.Card_body_gFXfX.Card_white-body-style_gFXfX.Card_without-header_gFXfX{border-radius:calc(.25 * var(--font-size))}.Card_body_gFXfX.Card_white-body-style_gFXfX.Card_with-header_gFXfX{border-top:none;border-bottom-left-radius:calc(.25 * var(--font-size));border-bottom-right-radius:calc(.25 * var(--font-size))}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
- const main = "Card_main_gFXfX";
3
- const header = "Card_header_gFXfX";
4
- const title = "Card_title_gFXfX";
5
- const description = "Card_description_gFXfX";
6
- const body = "Card_body_gFXfX";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Card_main_jyx43{border-radius:calc(.25 * var(--font-size));min-width:calc(18.5 * var(--font-size));overflow:hidden}.Card_header_jyx43{display:flex;align-items:center;padding:calc(.5 * var(--font-size)) calc(1.5 * var(--font-size));justify-content:space-between;gap:calc(.5 * var(--font-size));background-color:var(--color-primary100)}.Card_header_jyx43 .Card_title-left_jyx43{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}.Card_header_jyx43 .Card_title-left_jyx43 .Card_title_jyx43{margin:0;font-weight:500;max-width:100%;display:block}.Card_header_jyx43 .Card_title-left_jyx43 .Card_description_jyx43{margin:0;max-width:100%;display:block}.Card_header_jyx43 .Card_title-right_jyx43{flex:0 0 auto;display:flex;align-items:center;height:100%;gap:calc(.5 * var(--font-size));white-space:nowrap}.Card_body_jyx43{padding:calc(1 * var(--font-size)) calc(1.5 * var(--font-size))}.Card_body_jyx43.Card_default-body-style_jyx43{background-color:var(--color-blue-grey50)}.Card_body_jyx43.Card_white-body-style_jyx43{background-color:var(--color-white);border:1px solid var(--color-blue-grey100)}.Card_body_jyx43.Card_white-body-style_jyx43.Card_without-header_jyx43{border-radius:calc(.25 * var(--font-size))}.Card_body_jyx43.Card_white-body-style_jyx43.Card_with-header_jyx43{border-top:none;border-bottom-left-radius:calc(.25 * var(--font-size));border-bottom-right-radius:calc(.25 * var(--font-size))}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
2
+ const main = "Card_main_jyx43";
3
+ const header = "Card_header_jyx43";
4
+ const title = "Card_title_jyx43";
5
+ const description = "Card_description_jyx43";
6
+ const body = "Card_body_jyx43";
7
7
  const classes = {
8
8
  main,
9
9
  header,
10
- "title-left": "Card_title-left_gFXfX",
10
+ "title-left": "Card_title-left_jyx43",
11
11
  title,
12
12
  description,
13
- "title-right": "Card_title-right_gFXfX",
13
+ "title-right": "Card_title-right_jyx43",
14
14
  body,
15
- "default-body-style": "Card_default-body-style_gFXfX",
16
- "white-body-style": "Card_white-body-style_gFXfX",
17
- "without-header": "Card_without-header_gFXfX",
18
- "with-header": "Card_with-header_gFXfX"
15
+ "default-body-style": "Card_default-body-style_jyx43",
16
+ "white-body-style": "Card_white-body-style_jyx43",
17
+ "without-header": "Card_without-header_jyx43",
18
+ "with-header": "Card_with-header_jyx43"
19
19
  };
20
20
  export {
21
21
  body,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("../../Typography/Typography.cjs.js"),a=require("./ContentHeader.module.scss.cjs.js"),r=require("../../Button/IconButton.cjs.js"),l=require("../../Icon/Icon.cjs.js"),n=require("../../Tag/Tag.cjs.js"),s=require("../../TextEllipsis/TextEllipsis.cjs.js"),c=({title:c,children:o,buttons:i,collapsed:d,subtitle:m,navigation:u,tags:p,error:g,errorMessage:E,errorTagText:f,...h})=>{const y=e.createElement(n.Tag,{icon:l.Icons.Forbidden,backgroundColor:"var(--color-red100)",color:"var(--color-red900)"},f||"Blocked"),T=()=>p??[],b=e.useMemo((()=>g&&d?[y,...T().filter((e=>"enabled"!==e.props.variant))]:g?T().filter((e=>"enabled"!==e.props.variant)):T()),[p,g,d]);return e.createElement("div",{className:a.default["header-background-color"]},e.createElement("div",{className:`${a.default.header} ${h.className} ${d?a.default["collapsed-header"]:""}`,...h},e.createElement("div",null,u&&!d&&e.createElement(r.IconButton,{onClick:()=>{u.navigateFN(-1)},className:a.default["back-arrow"],iconSize:"s"},e.createElement(l.Icon,{icon:l.Icons.ArrowLeft}),e.createElement("span",{className:a.default["back-text"]},u.displayText?u.displayText:"Back")),e.createElement(t.Typography,{className:a.default["header-text"],variant:"h1"},u&&d&&e.createElement(r.IconButton,{onClick:()=>{u.navigateFN(-1)},className:a.default["back-arrow"]},e.createElement(l.Icon,{icon:l.Icons.ArrowLeft})),e.createElement(s.TextEllipsis,{"data-testid":"content-header-title"},c),e.createElement("span",{className:a.default["header-tags"]},b.map(((t,a)=>e.createElement(e.Fragment,{key:t.key||a},t))))),m&&!g&&e.createElement(t.Typography,{className:`${a.default["header-subtitle"]} ${d?a.default["hide-text"]:""}`,variant:"h4"},m),e.createElement(t.Typography,{className:`${d?a.default["hide-text"]:""}`,variant:"body",spacing:{margin:0}},g?e.createElement(e.Fragment,null,y,e.createElement("span",{className:a.default["error-text"]},E)):o)),i&&e.createElement("div",{className:a.default["buttons-wrapper"]},i)))},o=c;exports.ContentHeader=o,exports.ContentHeaderComponent=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("../../Typography/Typography.cjs.js"),a=require("./ContentHeader.module.scss.cjs.js"),r=require("../../Button/IconButton.cjs.js"),l=require("../../Icon/Icon.cjs.js"),n=require("../../Tag/Tag.cjs.js"),s=require("../../TextEllipsis/TextEllipsis.cjs.js"),c=({title:c,children:o,buttons:i,collapsed:d,subtitle:m,navigation:u,tags:p,error:g,errorMessage:E,errorTagText:f,...h})=>{const y=e.createElement(n.Tag,{icon:l.Icons.Forbidden,backgroundColor:"var(--color-red100)",color:"var(--color-red900)"},f||"Blocked"),T=()=>p??[],b=e.useMemo(()=>g&&d?[y,...T().filter(e=>"enabled"!==e.props.variant)]:g?T().filter(e=>"enabled"!==e.props.variant):T(),[p,g,d]);return e.createElement("div",{className:a.default["header-background-color"]},e.createElement("div",{className:`${a.default.header} ${h.className} ${d?a.default["collapsed-header"]:""}`,...h},e.createElement("div",null,u&&!d&&e.createElement(r.IconButton,{onClick:()=>{u.navigateFN(-1)},className:a.default["back-arrow"],iconSize:"s"},e.createElement(l.Icon,{icon:l.Icons.ArrowLeft}),e.createElement("span",{className:a.default["back-text"]},u.displayText?u.displayText:"Back")),e.createElement(t.Typography,{className:a.default["header-text"],variant:"h1"},u&&d&&e.createElement(r.IconButton,{onClick:()=>{u.navigateFN(-1)},className:a.default["back-arrow"]},e.createElement(l.Icon,{icon:l.Icons.ArrowLeft})),e.createElement(s.TextEllipsis,{"data-testid":"content-header-title"},c),e.createElement("span",{className:a.default["header-tags"]},b.map((t,a)=>e.createElement(e.Fragment,{key:t.key||a},t)))),m&&!g&&e.createElement(t.Typography,{className:`${a.default["header-subtitle"]} ${d?a.default["hide-text"]:""}`,variant:"h4"},m),e.createElement(t.Typography,{className:`${d?a.default["hide-text"]:""}`,variant:"body",spacing:{margin:0}},g?e.createElement(e.Fragment,null,y,e.createElement("span",{className:a.default["error-text"]},E)):o)),i&&e.createElement("div",{className:a.default["buttons-wrapper"]},i)))},o=c;exports.ContentHeader=o,exports.ContentHeaderComponent=c;
2
2
  //# sourceMappingURL=ContentHeader.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentHeader.cjs.js","sources":["../../../../src/components/Layout/ContentHeader/ContentHeader.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { HTMLAttributes, ReactElement, useMemo } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./ContentHeader.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { NavigateFunction } from \"react-router-dom\";\nimport { Tag, Props as TagProps } from \"../../Tag/Tag\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\n\nexport interface ContentHeaderNavigationProps {\n displayText?: string;\n navigateFN: NavigateFunction;\n}\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n title: string;\n /**\n * @deprecated pass text as children\n */\n subtitle?: string;\n buttons?: ReactElement<ButtonProps, typeof Button> | ReactElement<ButtonProps, typeof Button>[];\n collapsed?: boolean;\n navigation?: ContentHeaderNavigationProps;\n tags?: ReactElement<TagProps, typeof Tag>[];\n error?: boolean;\n errorMessage?: string;\n errorTagText?: string;\n}\n\nexport const ContentHeaderComponent = ({\n title,\n children,\n buttons,\n collapsed,\n subtitle,\n navigation,\n tags,\n error,\n errorMessage,\n errorTagText,\n ...rest\n}: Props) => {\n const errorTag = (\n <Tag icon={Icons.Forbidden} backgroundColor=\"var(--color-red100)\" color=\"var(--color-red900)\">\n {errorTagText || \"Blocked\"}\n </Tag>\n );\n\n const getTags = () => tags ?? [];\n\n const renderTags = useMemo(() => {\n if (error && collapsed) {\n return [errorTag, ...getTags().filter(tag => tag.props.variant !== \"enabled\")];\n } else if (error) {\n return getTags().filter(tag => tag.props.variant !== \"enabled\");\n }\n return getTags();\n }, [tags, error, collapsed]);\n\n return (\n <div className={classes[\"header-background-color\"]}>\n <div\n className={`${classes[\"header\"]} ${rest.className} ${collapsed ? classes[\"collapsed-header\"] : \"\"}`}\n {...rest}\n >\n <div>\n {navigation && !collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n iconSize=\"s\"\n >\n <Icon icon={Icons.ArrowLeft} />\n <span className={classes[\"back-text\"]}>\n {navigation.displayText ? navigation.displayText : \"Back\"}\n </span>\n </IconButton>\n )}\n <Typography className={classes[\"header-text\"]} variant={\"h1\"}>\n {navigation && collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n >\n <Icon icon={Icons.ArrowLeft} />\n </IconButton>\n )}\n <TextEllipsis data-testid={\"content-header-title\"}>{title}</TextEllipsis>\n <span className={classes[\"header-tags\"]}>\n {renderTags.map((tag, index) => (\n <React.Fragment key={tag.key || index}>{tag}</React.Fragment>\n ))}\n </span>\n </Typography>\n {subtitle && !error && (\n <Typography\n className={`${classes[\"header-subtitle\"]} ${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"h4\"\n >\n {subtitle}\n </Typography>\n )}\n <Typography\n className={`${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"body\"\n spacing={{ margin: 0 }}\n >\n {error ? (\n <>\n {errorTag}\n <span className={classes[\"error-text\"]}>{errorMessage}</span>\n </>\n ) : (\n children\n )}\n </Typography>\n </div>\n {buttons && <div className={classes[\"buttons-wrapper\"]}>{buttons}</div>}\n </div>\n </div>\n );\n};\n\nexport const ContentHeader = ContentHeaderComponent;\n"],"names":["ContentHeaderComponent","title","children","buttons","collapsed","subtitle","navigation","tags","error","errorMessage","errorTagText","rest","errorTag","React","createElement","Tag","icon","Icons","Forbidden","backgroundColor","color","getTags","renderTags","useMemo","filter","tag","props","variant","className","classes","IconButton","onClick","navigateFN","iconSize","Icon","ArrowLeft","default","displayText","Typography","TextEllipsis","map","index","Fragment","key","spacing","margin","ContentHeader"],"mappings":"+WA+CaA,EAAyB,EACpCC,QACAC,WACAC,UACAC,YACAC,WACAC,aACAC,OACAC,QACAC,eACAC,kBACGC,MAEG,MAAAC,EACHC,EAAAC,cAAAC,EAAAA,IAAA,CAAIC,KAAMC,EAAAA,MAAMC,UAAWC,gBAAgB,sBAAsBC,MAAM,uBACrEV,GAAgB,WAIfW,EAAU,IAAMd,GAAQ,GAExBe,EAAaC,EAAAA,SAAQ,IACrBf,GAASJ,EACJ,CAACQ,KAAaS,IAAUG,QAAOC,GAA6B,YAAtBA,EAAIC,MAAMC,WAC9CnB,EACFa,IAAUG,WAAoC,YAAtBC,EAAIC,MAAMC,UAEpCN,KACN,CAACd,EAAMC,EAAOJ,IAGd,OAAAS,EAAAC,cAAA,MAAA,CAAIc,UAAWC,EAAAA,QAAQ,4BACtBhB,EAAAC,cAAC,MAAA,CACCc,UAAW,GAAGC,EAAAA,QAAgB,UAAKlB,EAAKiB,aAAaxB,EAAYyB,EAAAA,QAAQ,oBAAsB,QAC3FlB,KAEHG,cAAA,MAAA,KACER,IAAeF,GACdS,EAAAC,cAACgB,EAAAA,WAAA,CACCC,QAAS,KACPzB,EAAW0B,YAAa,EAAA,EAE1BJ,UAAWC,UAAQ,cACnBI,SAAS,KAERpB,EAAAC,cAAAoB,EAAAA,KAAA,CAAKlB,KAAMC,EAAAA,MAAMkB,YAClBtB,EAAAC,cAAC,OAAK,CAAAc,UAAWC,EAAQO,QAAA,cACtB9B,EAAW+B,YAAc/B,EAAW+B,YAAc,SAIxDxB,EAAAC,cAAAwB,EAAAA,WAAA,CAAWV,UAAWC,EAAAA,QAAQ,eAAgBF,QAAS,MACrDrB,GAAcF,GACbS,EAAAC,cAACgB,EAAAA,WAAA,CACCC,QAAS,KACPzB,EAAW0B,YAAa,EAAA,EAE1BJ,UAAWC,UAAQ,eAElBhB,EAAAC,cAAAoB,EAAAA,KAAA,CAAKlB,KAAMC,EAAAA,MAAMkB,eAGtBrB,cAACyB,EAAaA,aAAA,CAAA,cAAa,wBAAyBtC,GACnDY,EAAAC,cAAA,OAAA,CAAKc,UAAWC,EAAAO,QAAQ,gBACtBd,EAAWkB,KAAI,CAACf,EAAKgB,IACnB5B,EAAAC,cAAAD,EAAM6B,SAAN,CAAeC,IAAKlB,EAAIkB,KAAOF,GAAQhB,OAI7CpB,IAAaG,GACZK,EAAAC,cAACwB,EAAAA,WAAA,CACCV,UAAW,GAAGC,UAAQ,sBAAsBzB,EAAYyB,UAAQ,aAAe,KAC/EF,QAAQ,MAEPtB,GAGLQ,EAAAC,cAACwB,EAAAA,WAAA,CACCV,UAAW,GAAGxB,EAAYyB,EAAQO,QAAA,aAAe,KACjDT,QAAQ,OACRiB,QAAS,CAAEC,OAAQ,IAElBrC,EAEIK,EAAAC,cAAAD,EAAA6B,SAAA,KAAA9B,EACAC,EAAAC,cAAA,OAAA,CAAKc,UAAWC,EAAAO,QAAQ,eAAgB3B,IAG3CP,IAILC,GAAYU,EAAAC,cAAA,MAAA,CAAIc,UAAWC,EAAQO,QAAA,oBAAqBjC,IAE7D,EAIS2C,EAAgB9C"}
1
+ {"version":3,"file":"ContentHeader.cjs.js","sources":["../../../../src/components/Layout/ContentHeader/ContentHeader.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { HTMLAttributes, ReactElement, useMemo } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./ContentHeader.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { NavigateFunction } from \"react-router-dom\";\nimport { Tag, Props as TagProps } from \"../../Tag/Tag\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\n\nexport interface ContentHeaderNavigationProps {\n displayText?: string;\n navigateFN: NavigateFunction;\n}\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n title: string;\n /**\n * @deprecated pass text as children\n */\n subtitle?: string;\n buttons?: ReactElement<ButtonProps, typeof Button> | ReactElement<ButtonProps, typeof Button>[];\n collapsed?: boolean;\n navigation?: ContentHeaderNavigationProps;\n tags?: ReactElement<TagProps, typeof Tag>[];\n error?: boolean;\n errorMessage?: string;\n errorTagText?: string;\n}\n\nexport const ContentHeaderComponent = ({\n title,\n children,\n buttons,\n collapsed,\n subtitle,\n navigation,\n tags,\n error,\n errorMessage,\n errorTagText,\n ...rest\n}: Props) => {\n const errorTag = (\n <Tag icon={Icons.Forbidden} backgroundColor=\"var(--color-red100)\" color=\"var(--color-red900)\">\n {errorTagText || \"Blocked\"}\n </Tag>\n );\n\n const getTags = () => tags ?? [];\n\n const renderTags = useMemo(() => {\n if (error && collapsed) {\n return [errorTag, ...getTags().filter(tag => tag.props.variant !== \"enabled\")];\n } else if (error) {\n return getTags().filter(tag => tag.props.variant !== \"enabled\");\n }\n return getTags();\n }, [tags, error, collapsed]);\n\n return (\n <div className={classes[\"header-background-color\"]}>\n <div\n className={`${classes[\"header\"]} ${rest.className} ${collapsed ? classes[\"collapsed-header\"] : \"\"}`}\n {...rest}\n >\n <div>\n {navigation && !collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n iconSize=\"s\"\n >\n <Icon icon={Icons.ArrowLeft} />\n <span className={classes[\"back-text\"]}>\n {navigation.displayText ? navigation.displayText : \"Back\"}\n </span>\n </IconButton>\n )}\n <Typography className={classes[\"header-text\"]} variant={\"h1\"}>\n {navigation && collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n >\n <Icon icon={Icons.ArrowLeft} />\n </IconButton>\n )}\n <TextEllipsis data-testid={\"content-header-title\"}>{title}</TextEllipsis>\n <span className={classes[\"header-tags\"]}>\n {renderTags.map((tag, index) => (\n <React.Fragment key={tag.key || index}>{tag}</React.Fragment>\n ))}\n </span>\n </Typography>\n {subtitle && !error && (\n <Typography\n className={`${classes[\"header-subtitle\"]} ${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"h4\"\n >\n {subtitle}\n </Typography>\n )}\n <Typography\n className={`${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"body\"\n spacing={{ margin: 0 }}\n >\n {error ? (\n <>\n {errorTag}\n <span className={classes[\"error-text\"]}>{errorMessage}</span>\n </>\n ) : (\n children\n )}\n </Typography>\n </div>\n {buttons && <div className={classes[\"buttons-wrapper\"]}>{buttons}</div>}\n </div>\n </div>\n );\n};\n\nexport const ContentHeader = ContentHeaderComponent;\n"],"names":["ContentHeaderComponent","title","children","buttons","collapsed","subtitle","navigation","tags","error","errorMessage","errorTagText","rest","errorTag","React","createElement","Tag","icon","Icons","Forbidden","backgroundColor","color","getTags","renderTags","useMemo","filter","tag","props","variant","className","classes","IconButton","onClick","navigateFN","iconSize","Icon","ArrowLeft","displayText","Typography","TextEllipsis","map","index","Fragment","key","spacing","margin","ContentHeader"],"mappings":"+WA+CaA,EAAyB,EACpCC,QACAC,WACAC,UACAC,YACAC,WACAC,aACAC,OACAC,QACAC,eACAC,kBACGC,MAEH,MAAMC,EACJC,EAAAC,cAACC,EAAAA,IAAA,CAAIC,KAAMC,EAAAA,MAAMC,UAAWC,gBAAgB,sBAAsBC,MAAM,uBACrEV,GAAgB,WAIfW,EAAU,IAAMd,GAAQ,GAExBe,EAAaC,EAAAA,QAAQ,IACrBf,GAASJ,EACJ,CAACQ,KAAaS,IAAUG,OAAOC,GAA6B,YAAtBA,EAAIC,MAAMC,UAC9CnB,EACFa,IAAUG,UAAoC,YAAtBC,EAAIC,MAAMC,SAEpCN,IACN,CAACd,EAAMC,EAAOJ,IAEjB,OACES,EAAAC,cAAC,MAAA,CAAIc,UAAWC,EAAAA,QAAQ,4BACtBhB,EAAAC,cAAC,MAAA,CACCc,UAAW,GAAGC,EAAAA,QAAgB,UAAKlB,EAAKiB,aAAaxB,EAAYyB,EAAAA,QAAQ,oBAAsB,QAC3FlB,KAEJG,cAAC,MAAA,KACER,IAAeF,GACdS,EAAAC,cAACgB,EAAAA,WAAA,CACCC,QAAS,KACPzB,EAAW0B,YAAW,IAExBJ,UAAWC,EAAAA,QAAQ,cACnBI,SAAS,KAETpB,EAAAC,cAACoB,EAAAA,KAAA,CAAKlB,KAAMC,EAAAA,MAAMkB,YAClBtB,EAAAC,cAAC,OAAA,CAAKc,UAAWC,EAAAA,QAAQ,cACtBvB,EAAW8B,YAAc9B,EAAW8B,YAAc,SAIzDvB,EAAAC,cAACuB,EAAAA,WAAA,CAAWT,UAAWC,EAAAA,QAAQ,eAAgBF,QAAS,MACrDrB,GAAcF,GACbS,EAAAC,cAACgB,EAAAA,WAAA,CACCC,QAAS,KACPzB,EAAW0B,YAAW,IAExBJ,UAAWC,EAAAA,QAAQ,eAEnBhB,EAAAC,cAACoB,EAAAA,KAAA,CAAKlB,KAAMC,EAAAA,MAAMkB,eAGtBrB,cAACwB,EAAAA,aAAA,CAAa,cAAa,wBAAyBrC,GACpDY,EAAAC,cAAC,OAAA,CAAKc,UAAWC,EAAAA,QAAQ,gBACtBP,EAAWiB,IAAI,CAACd,EAAKe,IACpB3B,EAAAC,cAACD,EAAM4B,SAAN,CAAeC,IAAKjB,EAAIiB,KAAOF,GAAQf,MAI7CpB,IAAaG,GACZK,EAAAC,cAACuB,EAAAA,WAAA,CACCT,UAAW,GAAGC,UAAQ,sBAAsBzB,EAAYyB,UAAQ,aAAe,KAC/EF,QAAQ,MAEPtB,GAGLQ,EAAAC,cAACuB,EAAAA,WAAA,CACCT,UAAW,GAAGxB,EAAYyB,EAAAA,QAAQ,aAAe,KACjDF,QAAQ,OACRgB,QAAS,CAAEC,OAAQ,IAElBpC,EACCK,EAAAC,cAAAD,EAAA4B,SAAA,KACG7B,EACDC,EAAAC,cAAC,OAAA,CAAKc,UAAWC,EAAAA,QAAQ,eAAgBpB,IAG3CP,IAILC,GAAWU,EAAAC,cAAC,MAAA,CAAIc,UAAWC,EAAAA,QAAQ,oBAAqB1B,MAMpD0C,EAAgB7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentHeader.es.js","sources":["../../../../src/components/Layout/ContentHeader/ContentHeader.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { HTMLAttributes, ReactElement, useMemo } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./ContentHeader.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { NavigateFunction } from \"react-router-dom\";\nimport { Tag, Props as TagProps } from \"../../Tag/Tag\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\n\nexport interface ContentHeaderNavigationProps {\n displayText?: string;\n navigateFN: NavigateFunction;\n}\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n title: string;\n /**\n * @deprecated pass text as children\n */\n subtitle?: string;\n buttons?: ReactElement<ButtonProps, typeof Button> | ReactElement<ButtonProps, typeof Button>[];\n collapsed?: boolean;\n navigation?: ContentHeaderNavigationProps;\n tags?: ReactElement<TagProps, typeof Tag>[];\n error?: boolean;\n errorMessage?: string;\n errorTagText?: string;\n}\n\nexport const ContentHeaderComponent = ({\n title,\n children,\n buttons,\n collapsed,\n subtitle,\n navigation,\n tags,\n error,\n errorMessage,\n errorTagText,\n ...rest\n}: Props) => {\n const errorTag = (\n <Tag icon={Icons.Forbidden} backgroundColor=\"var(--color-red100)\" color=\"var(--color-red900)\">\n {errorTagText || \"Blocked\"}\n </Tag>\n );\n\n const getTags = () => tags ?? [];\n\n const renderTags = useMemo(() => {\n if (error && collapsed) {\n return [errorTag, ...getTags().filter(tag => tag.props.variant !== \"enabled\")];\n } else if (error) {\n return getTags().filter(tag => tag.props.variant !== \"enabled\");\n }\n return getTags();\n }, [tags, error, collapsed]);\n\n return (\n <div className={classes[\"header-background-color\"]}>\n <div\n className={`${classes[\"header\"]} ${rest.className} ${collapsed ? classes[\"collapsed-header\"] : \"\"}`}\n {...rest}\n >\n <div>\n {navigation && !collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n iconSize=\"s\"\n >\n <Icon icon={Icons.ArrowLeft} />\n <span className={classes[\"back-text\"]}>\n {navigation.displayText ? navigation.displayText : \"Back\"}\n </span>\n </IconButton>\n )}\n <Typography className={classes[\"header-text\"]} variant={\"h1\"}>\n {navigation && collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n >\n <Icon icon={Icons.ArrowLeft} />\n </IconButton>\n )}\n <TextEllipsis data-testid={\"content-header-title\"}>{title}</TextEllipsis>\n <span className={classes[\"header-tags\"]}>\n {renderTags.map((tag, index) => (\n <React.Fragment key={tag.key || index}>{tag}</React.Fragment>\n ))}\n </span>\n </Typography>\n {subtitle && !error && (\n <Typography\n className={`${classes[\"header-subtitle\"]} ${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"h4\"\n >\n {subtitle}\n </Typography>\n )}\n <Typography\n className={`${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"body\"\n spacing={{ margin: 0 }}\n >\n {error ? (\n <>\n {errorTag}\n <span className={classes[\"error-text\"]}>{errorMessage}</span>\n </>\n ) : (\n children\n )}\n </Typography>\n </div>\n {buttons && <div className={classes[\"buttons-wrapper\"]}>{buttons}</div>}\n </div>\n </div>\n );\n};\n\nexport const ContentHeader = ContentHeaderComponent;\n"],"names":[],"mappings":";;;;;;;AA+CO,MAAM,yBAAyB,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAa;AACL,QAAA,WACH,sBAAA,cAAA,KAAA,EAAI,MAAM,MAAM,WAAW,iBAAgB,uBAAsB,OAAM,sBACrE,GAAA,gBAAgB,SACnB;AAGI,QAAA,UAAU,MAAM,QAAQ,CAAC;AAEzB,QAAA,aAAa,QAAQ,MAAM;AAC/B,QAAI,SAAS,WAAW;AACf,aAAA,CAAC,UAAU,GAAG,QAAQ,EAAE,OAAO,CAAA,QAAO,IAAI,MAAM,YAAY,SAAS,CAAC;AAAA,eACpE,OAAO;AAChB,aAAO,UAAU,OAAO,SAAO,IAAI,MAAM,YAAY,SAAS;AAAA,IAAA;AAEhE,WAAO,QAAQ;AAAA,EACd,GAAA,CAAC,MAAM,OAAO,SAAS,CAAC;AAE3B,SACG,sBAAA,cAAA,OAAA,EAAI,WAAW,QAAQ,yBAAyB,KAC/C,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,GAAG,QAAQ,QAAQ,CAAC,IAAI,KAAK,SAAS,IAAI,YAAY,QAAQ,kBAAkB,IAAI,EAAE;AAAA,MAChG,GAAG;AAAA,IAAA;AAAA,IAEH,sBAAA,cAAA,OAAA,MACE,cAAc,CAAC,aACd,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,SAAS,MAAM;AACb,qBAAW,WAAW,EAAE;AAAA,QAC1B;AAAA,QACA,WAAW,QAAQ,YAAY;AAAA,QAC/B,UAAS;AAAA,MAAA;AAAA,MAER,sBAAA,cAAA,MAAA,EAAK,MAAM,MAAM,WAAW;AAAA,MAC7B,sBAAA,cAAC,QAAK,EAAA,WAAW,QAAQ,WAAW,KACjC,WAAW,cAAc,WAAW,cAAc,MACrD;AAAA,IACF,GAED,sBAAA,cAAA,YAAA,EAAW,WAAW,QAAQ,aAAa,GAAG,SAAS,KACrD,GAAA,cAAc,aACb,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,SAAS,MAAM;AACb,qBAAW,WAAW,EAAE;AAAA,QAC1B;AAAA,QACA,WAAW,QAAQ,YAAY;AAAA,MAAA;AAAA,MAE9B,sBAAA,cAAA,MAAA,EAAK,MAAM,MAAM,UAAW,CAAA;AAAA,IAAA,GAGjC,sBAAA,cAAC,cAAa,EAAA,eAAa,0BAAyB,KAAM,GACzD,sBAAA,cAAA,QAAA,EAAK,WAAW,QAAQ,aAAa,EAAA,GACnC,WAAW,IAAI,CAAC,KAAK,UACnB,sBAAA,cAAA,MAAM,UAAN,EAAe,KAAK,IAAI,OAAO,MAAQ,GAAA,GAAI,CAC7C,CACH,CACF,GACC,YAAY,CAAC,SACZ,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,GAAG,QAAQ,iBAAiB,CAAC,IAAI,YAAY,QAAQ,WAAW,IAAI,EAAE;AAAA,QACjF,SAAQ;AAAA,MAAA;AAAA,MAEP;AAAA,IAGL,GAAA,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,GAAG,YAAY,QAAQ,WAAW,IAAI,EAAE;AAAA,QACnD,SAAQ;AAAA,QACR,SAAS,EAAE,QAAQ,EAAE;AAAA,MAAA;AAAA,MAEpB,QAEI,sBAAA,cAAA,MAAA,UAAA,MAAA,UACA,sBAAA,cAAA,QAAA,EAAK,WAAW,QAAQ,YAAY,EAAA,GAAI,YAAa,CACxD,IAEA;AAAA,IAAA,CAGN;AAAA,IACC,WAAY,sBAAA,cAAA,OAAA,EAAI,WAAW,QAAQ,iBAAiB,KAAI,OAAQ;AAAA,EAAA,CAErE;AAEJ;AAEO,MAAM,gBAAgB;"}
1
+ {"version":3,"file":"ContentHeader.es.js","sources":["../../../../src/components/Layout/ContentHeader/ContentHeader.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { HTMLAttributes, ReactElement, useMemo } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Typography } from \"../../Typography/Typography\";\n\nimport classes from \"./ContentHeader.module.scss\";\nimport { IconButton } from \"../../Button/IconButton\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\nimport { NavigateFunction } from \"react-router-dom\";\nimport { Tag, Props as TagProps } from \"../../Tag/Tag\";\nimport { TextEllipsis } from \"../../TextEllipsis/TextEllipsis\";\n\nexport interface ContentHeaderNavigationProps {\n displayText?: string;\n navigateFN: NavigateFunction;\n}\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n title: string;\n /**\n * @deprecated pass text as children\n */\n subtitle?: string;\n buttons?: ReactElement<ButtonProps, typeof Button> | ReactElement<ButtonProps, typeof Button>[];\n collapsed?: boolean;\n navigation?: ContentHeaderNavigationProps;\n tags?: ReactElement<TagProps, typeof Tag>[];\n error?: boolean;\n errorMessage?: string;\n errorTagText?: string;\n}\n\nexport const ContentHeaderComponent = ({\n title,\n children,\n buttons,\n collapsed,\n subtitle,\n navigation,\n tags,\n error,\n errorMessage,\n errorTagText,\n ...rest\n}: Props) => {\n const errorTag = (\n <Tag icon={Icons.Forbidden} backgroundColor=\"var(--color-red100)\" color=\"var(--color-red900)\">\n {errorTagText || \"Blocked\"}\n </Tag>\n );\n\n const getTags = () => tags ?? [];\n\n const renderTags = useMemo(() => {\n if (error && collapsed) {\n return [errorTag, ...getTags().filter(tag => tag.props.variant !== \"enabled\")];\n } else if (error) {\n return getTags().filter(tag => tag.props.variant !== \"enabled\");\n }\n return getTags();\n }, [tags, error, collapsed]);\n\n return (\n <div className={classes[\"header-background-color\"]}>\n <div\n className={`${classes[\"header\"]} ${rest.className} ${collapsed ? classes[\"collapsed-header\"] : \"\"}`}\n {...rest}\n >\n <div>\n {navigation && !collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n iconSize=\"s\"\n >\n <Icon icon={Icons.ArrowLeft} />\n <span className={classes[\"back-text\"]}>\n {navigation.displayText ? navigation.displayText : \"Back\"}\n </span>\n </IconButton>\n )}\n <Typography className={classes[\"header-text\"]} variant={\"h1\"}>\n {navigation && collapsed && (\n <IconButton\n onClick={() => {\n navigation.navigateFN(-1);\n }}\n className={classes[\"back-arrow\"]}\n >\n <Icon icon={Icons.ArrowLeft} />\n </IconButton>\n )}\n <TextEllipsis data-testid={\"content-header-title\"}>{title}</TextEllipsis>\n <span className={classes[\"header-tags\"]}>\n {renderTags.map((tag, index) => (\n <React.Fragment key={tag.key || index}>{tag}</React.Fragment>\n ))}\n </span>\n </Typography>\n {subtitle && !error && (\n <Typography\n className={`${classes[\"header-subtitle\"]} ${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"h4\"\n >\n {subtitle}\n </Typography>\n )}\n <Typography\n className={`${collapsed ? classes[\"hide-text\"] : \"\"}`}\n variant=\"body\"\n spacing={{ margin: 0 }}\n >\n {error ? (\n <>\n {errorTag}\n <span className={classes[\"error-text\"]}>{errorMessage}</span>\n </>\n ) : (\n children\n )}\n </Typography>\n </div>\n {buttons && <div className={classes[\"buttons-wrapper\"]}>{buttons}</div>}\n </div>\n </div>\n );\n};\n\nexport const ContentHeader = ContentHeaderComponent;\n"],"names":[],"mappings":";;;;;;;AA+CO,MAAM,yBAAyB,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAa;AACX,QAAM,WACJ,sBAAA,cAAC,KAAA,EAAI,MAAM,MAAM,WAAW,iBAAgB,uBAAsB,OAAM,sBAAA,GACrE,gBAAgB,SACnB;AAGF,QAAM,UAAU,MAAM,QAAQ,CAAA;AAE9B,QAAM,aAAa,QAAQ,MAAM;AAC/B,QAAI,SAAS,WAAW;AACtB,aAAO,CAAC,UAAU,GAAG,QAAA,EAAU,OAAO,CAAA,QAAO,IAAI,MAAM,YAAY,SAAS,CAAC;AAAA,IAC/E,WAAW,OAAO;AAChB,aAAO,UAAU,OAAO,SAAO,IAAI,MAAM,YAAY,SAAS;AAAA,IAChE;AACA,WAAO,QAAA;AAAA,EACT,GAAG,CAAC,MAAM,OAAO,SAAS,CAAC;AAE3B,SACE,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,yBAAyB,KAC/C,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,GAAG,QAAQ,QAAQ,CAAC,IAAI,KAAK,SAAS,IAAI,YAAY,QAAQ,kBAAkB,IAAI,EAAE;AAAA,MAChG,GAAG;AAAA,IAAA;AAAA,IAEJ,sBAAA,cAAC,OAAA,MACE,cAAc,CAAC,aACd,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,SAAS,MAAM;AACb,qBAAW,WAAW,EAAE;AAAA,QAC1B;AAAA,QACA,WAAW,QAAQ,YAAY;AAAA,QAC/B,UAAS;AAAA,MAAA;AAAA,MAET,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,WAAW;AAAA,MAC7B,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,WAAW,KACjC,WAAW,cAAc,WAAW,cAAc,MACrD;AAAA,IAAA,GAGJ,sBAAA,cAAC,YAAA,EAAW,WAAW,QAAQ,aAAa,GAAG,SAAS,KAAA,GACrD,cAAc,aACb,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,SAAS,MAAM;AACb,qBAAW,WAAW,EAAE;AAAA,QAC1B;AAAA,QACA,WAAW,QAAQ,YAAY;AAAA,MAAA;AAAA,MAE/B,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,UAAA,CAAW;AAAA,IAAA,GAGjC,sBAAA,cAAC,cAAA,EAAa,eAAa,0BAAyB,KAAM,GAC1D,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,aAAa,EAAA,GACnC,WAAW,IAAI,CAAC,KAAK,UACpB,sBAAA,cAAC,MAAM,UAAN,EAAe,KAAK,IAAI,OAAO,MAAA,GAAQ,GAAI,CAC7C,CACH,CACF,GACC,YAAY,CAAC,SACZ,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,GAAG,QAAQ,iBAAiB,CAAC,IAAI,YAAY,QAAQ,WAAW,IAAI,EAAE;AAAA,QACjF,SAAQ;AAAA,MAAA;AAAA,MAEP;AAAA,IAAA,GAGL,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,GAAG,YAAY,QAAQ,WAAW,IAAI,EAAE;AAAA,QACnD,SAAQ;AAAA,QACR,SAAS,EAAE,QAAQ,EAAA;AAAA,MAAE;AAAA,MAEpB,QACC,sBAAA,cAAA,MAAA,UAAA,MACG,UACD,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,YAAY,EAAA,GAAI,YAAa,CACxD,IAEA;AAAA,IAAA,CAGN;AAAA,IACC,WAAW,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,iBAAiB,KAAI,OAAQ;AAAA,EAAA,CAErE;AAEJ;AAEO,MAAM,gBAAgB;"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".ContentHeader_header_gFXfX{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:2rem;z-index:1;transition:.5s;max-width:105rem}.ContentHeader_header_gFXfX.ContentHeader_collapsed-header_gFXfX{padding:1rem 2rem;transition:.5s;align-items:center}.ContentHeader_header-background-color_gFXfX{background-color:var(--color-blue-grey25)}.ContentHeader_header_gFXfX button.ContentHeader_back-arrow_gFXfX{width:auto;height:1rem;display:block;gap:.5rem}.ContentHeader_hide-text_gFXfX{display:none}.ContentHeader_header-text_gFXfX{margin:0;font-weight:500;color:var(--color-blue-grey900);line-height:1.25;display:flex;align-items:center;max-width:65vw}@media screen and (max-width: 900px){.ContentHeader_header-text_gFXfX{max-width:unset}.ContentHeader_header-text_gFXfX div{text-wrap:wrap}}.ContentHeader_header-text_gFXfX div{vertical-align:middle;align-self:center}.ContentHeader_header-text_gFXfX button.ContentHeader_back-arrow_gFXfX{margin-right:.5rem;width:2.5rem;height:2.5rem}.ContentHeader_header-tags_gFXfX{display:flex;margin-left:1rem;gap:.5rem}.ContentHeader_header-subtitle_gFXfX{color:var(--color-blue-grey400);font-weight:500}.ContentHeader_back-text_gFXfX{font-size:.875rem;font-weight:400;margin-left:.5rem}.ContentHeader_error-text_gFXfX{color:var(--color-red500);vertical-align:middle;margin-left:.5rem}.ContentHeader_buttons-wrapper_gFXfX{display:flex;justify-content:flex-end;flex-shrink:0;gap:1rem}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="ContentHeader_header_gFXfX",t={header:e,"collapsed-header":"ContentHeader_collapsed-header_gFXfX","header-background-color":"ContentHeader_header-background-color_gFXfX","back-arrow":"ContentHeader_back-arrow_gFXfX","hide-text":"ContentHeader_hide-text_gFXfX","header-text":"ContentHeader_header-text_gFXfX","header-tags":"ContentHeader_header-tags_gFXfX","header-subtitle":"ContentHeader_header-subtitle_gFXfX","back-text":"ContentHeader_back-text_gFXfX","error-text":"ContentHeader_error-text_gFXfX","buttons-wrapper":"ContentHeader_buttons-wrapper_gFXfX"};exports.default=t,exports.header=e;
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".ContentHeader_header_jyx43{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:2rem;z-index:1;transition:.5s;max-width:105rem}.ContentHeader_header_jyx43.ContentHeader_collapsed-header_jyx43{padding:1rem 2rem;transition:.5s;align-items:center}.ContentHeader_header-background-color_jyx43{background-color:var(--color-blue-grey25)}.ContentHeader_header_jyx43 button.ContentHeader_back-arrow_jyx43{width:auto;height:1rem;display:block;gap:.5rem}.ContentHeader_hide-text_jyx43{display:none}.ContentHeader_header-text_jyx43{margin:0;font-weight:500;color:var(--color-blue-grey900);line-height:1.25;display:flex;align-items:center;max-width:65vw}@media screen and (max-width:900px){.ContentHeader_header-text_jyx43{max-width:unset}.ContentHeader_header-text_jyx43 div{text-wrap:wrap}}.ContentHeader_header-text_jyx43 div{vertical-align:middle;align-self:center}.ContentHeader_header-text_jyx43 button.ContentHeader_back-arrow_jyx43{margin-right:.5rem;width:2.5rem;height:2.5rem}.ContentHeader_header-tags_jyx43{display:flex;margin-left:1rem;gap:.5rem}.ContentHeader_header-subtitle_jyx43{color:var(--color-blue-grey400);font-weight:500}.ContentHeader_back-text_jyx43{font-size:.875rem;font-weight:400;margin-left:.5rem}.ContentHeader_error-text_jyx43{color:var(--color-red500);vertical-align:middle;margin-left:.5rem}.ContentHeader_buttons-wrapper_jyx43{display:flex;justify-content:flex-end;flex-shrink:0;gap:1rem}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="ContentHeader_header_jyx43",t={header:e,"collapsed-header":"ContentHeader_collapsed-header_jyx43","header-background-color":"ContentHeader_header-background-color_jyx43","back-arrow":"ContentHeader_back-arrow_jyx43","hide-text":"ContentHeader_hide-text_jyx43","header-text":"ContentHeader_header-text_jyx43","header-tags":"ContentHeader_header-tags_jyx43","header-subtitle":"ContentHeader_header-subtitle_jyx43","back-text":"ContentHeader_back-text_jyx43","error-text":"ContentHeader_error-text_jyx43","buttons-wrapper":"ContentHeader_buttons-wrapper_jyx43"};exports.default=t,exports.header=e;
3
3
  //# sourceMappingURL=ContentHeader.module.scss.cjs.js.map
@@ -1,17 +1,17 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".ContentHeader_header_gFXfX{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:2rem;z-index:1;transition:.5s;max-width:105rem}.ContentHeader_header_gFXfX.ContentHeader_collapsed-header_gFXfX{padding:1rem 2rem;transition:.5s;align-items:center}.ContentHeader_header-background-color_gFXfX{background-color:var(--color-blue-grey25)}.ContentHeader_header_gFXfX button.ContentHeader_back-arrow_gFXfX{width:auto;height:1rem;display:block;gap:.5rem}.ContentHeader_hide-text_gFXfX{display:none}.ContentHeader_header-text_gFXfX{margin:0;font-weight:500;color:var(--color-blue-grey900);line-height:1.25;display:flex;align-items:center;max-width:65vw}@media screen and (max-width: 900px){.ContentHeader_header-text_gFXfX{max-width:unset}.ContentHeader_header-text_gFXfX div{text-wrap:wrap}}.ContentHeader_header-text_gFXfX div{vertical-align:middle;align-self:center}.ContentHeader_header-text_gFXfX button.ContentHeader_back-arrow_gFXfX{margin-right:.5rem;width:2.5rem;height:2.5rem}.ContentHeader_header-tags_gFXfX{display:flex;margin-left:1rem;gap:.5rem}.ContentHeader_header-subtitle_gFXfX{color:var(--color-blue-grey400);font-weight:500}.ContentHeader_back-text_gFXfX{font-size:.875rem;font-weight:400;margin-left:.5rem}.ContentHeader_error-text_gFXfX{color:var(--color-red500);vertical-align:middle;margin-left:.5rem}.ContentHeader_buttons-wrapper_gFXfX{display:flex;justify-content:flex-end;flex-shrink:0;gap:1rem}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- const header = "ContentHeader_header_gFXfX";
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".ContentHeader_header_jyx43{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:2rem;z-index:1;transition:.5s;max-width:105rem}.ContentHeader_header_jyx43.ContentHeader_collapsed-header_jyx43{padding:1rem 2rem;transition:.5s;align-items:center}.ContentHeader_header-background-color_jyx43{background-color:var(--color-blue-grey25)}.ContentHeader_header_jyx43 button.ContentHeader_back-arrow_jyx43{width:auto;height:1rem;display:block;gap:.5rem}.ContentHeader_hide-text_jyx43{display:none}.ContentHeader_header-text_jyx43{margin:0;font-weight:500;color:var(--color-blue-grey900);line-height:1.25;display:flex;align-items:center;max-width:65vw}@media screen and (max-width:900px){.ContentHeader_header-text_jyx43{max-width:unset}.ContentHeader_header-text_jyx43 div{text-wrap:wrap}}.ContentHeader_header-text_jyx43 div{vertical-align:middle;align-self:center}.ContentHeader_header-text_jyx43 button.ContentHeader_back-arrow_jyx43{margin-right:.5rem;width:2.5rem;height:2.5rem}.ContentHeader_header-tags_jyx43{display:flex;margin-left:1rem;gap:.5rem}.ContentHeader_header-subtitle_jyx43{color:var(--color-blue-grey400);font-weight:500}.ContentHeader_back-text_jyx43{font-size:.875rem;font-weight:400;margin-left:.5rem}.ContentHeader_error-text_jyx43{color:var(--color-red500);vertical-align:middle;margin-left:.5rem}.ContentHeader_buttons-wrapper_jyx43{display:flex;justify-content:flex-end;flex-shrink:0;gap:1rem}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ const header = "ContentHeader_header_jyx43";
3
3
  const classes = {
4
4
  header,
5
- "collapsed-header": "ContentHeader_collapsed-header_gFXfX",
6
- "header-background-color": "ContentHeader_header-background-color_gFXfX",
7
- "back-arrow": "ContentHeader_back-arrow_gFXfX",
8
- "hide-text": "ContentHeader_hide-text_gFXfX",
9
- "header-text": "ContentHeader_header-text_gFXfX",
10
- "header-tags": "ContentHeader_header-tags_gFXfX",
11
- "header-subtitle": "ContentHeader_header-subtitle_gFXfX",
12
- "back-text": "ContentHeader_back-text_gFXfX",
13
- "error-text": "ContentHeader_error-text_gFXfX",
14
- "buttons-wrapper": "ContentHeader_buttons-wrapper_gFXfX"
5
+ "collapsed-header": "ContentHeader_collapsed-header_jyx43",
6
+ "header-background-color": "ContentHeader_header-background-color_jyx43",
7
+ "back-arrow": "ContentHeader_back-arrow_jyx43",
8
+ "hide-text": "ContentHeader_hide-text_jyx43",
9
+ "header-text": "ContentHeader_header-text_jyx43",
10
+ "header-tags": "ContentHeader_header-tags_jyx43",
11
+ "header-subtitle": "ContentHeader_header-subtitle_jyx43",
12
+ "back-text": "ContentHeader_back-text_jyx43",
13
+ "error-text": "ContentHeader_error-text_jyx43",
14
+ "buttons-wrapper": "ContentHeader_buttons-wrapper_jyx43"
15
15
  };
16
16
  export {
17
17
  classes as default,
@@ -1 +1 @@
1
- {"version":3,"file":"FormSection.cjs.js","sources":["../../../../../../src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentPropsWithRef, ForwardRefRenderFunction } from \"react\";\nimport classes from \"./FormSection.module.scss\";\nimport { Typography } from \"../../../../Typography/Typography\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n header?: string;\n subtext?: string;\n}\n\nexport const FormSectionComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { header, subtext, children, ...rest },\n ref\n) => {\n return (\n <div {...rest} className={classes[\"section-wrapper\"]} ref={ref}>\n {header && (\n <div className={classes[\"section-header-wrapper\"]}>\n <Typography\n variant=\"h4\"\n className={classes[\"section-header\"]}\n spacing={{ marginBottom: 0 }}\n >\n {header}\n </Typography>\n {subtext && (\n <Typography variant=\"sub-text\" spacing={{ marginBottom: 0 }}>\n {subtext}\n </Typography>\n )}\n </div>\n )}\n {children}\n </div>\n );\n};\n\nexport const FormSection = React.forwardRef(FormSectionComponent);\n"],"names":["FormSectionComponent","header","subtext","children","rest","ref","React","createElement","className","classes","Typography","variant","spacing","marginBottom","FormSection","forwardRef"],"mappings":"6MAyBaA,EAAwE,EACjFC,SAAQC,UAASC,cAAaC,GAChCC,IAGGC,EAAAC,cAAA,MAAA,IAAQH,EAAMI,UAAWC,EAAAA,QAAQ,mBAAoBJ,OACnDJ,GACEK,EAAAC,cAAA,MAAA,CAAIC,UAAWC,EAAAA,QAAQ,2BACtBH,EAAAC,cAACG,EAAAA,WAAA,CACCC,QAAQ,KACRH,UAAWC,UAAQ,kBACnBG,QAAS,CAAEC,aAAc,IAExBZ,GAEFC,GACEI,EAAAC,cAAAG,EAAAA,WAAA,CAAWC,QAAQ,WAAWC,QAAS,CAAEC,aAAc,IACrDX,IAKRC,GAKMW,EAAcR,EAAMS,WAAWf"}
1
+ {"version":3,"file":"FormSection.cjs.js","sources":["../../../../../../src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentPropsWithRef, ForwardRefRenderFunction } from \"react\";\nimport classes from \"./FormSection.module.scss\";\nimport { Typography } from \"../../../../Typography/Typography\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n header?: string;\n subtext?: string;\n}\n\nexport const FormSectionComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { header, subtext, children, ...rest },\n ref\n) => {\n return (\n <div {...rest} className={classes[\"section-wrapper\"]} ref={ref}>\n {header && (\n <div className={classes[\"section-header-wrapper\"]}>\n <Typography\n variant=\"h4\"\n className={classes[\"section-header\"]}\n spacing={{ marginBottom: 0 }}\n >\n {header}\n </Typography>\n {subtext && (\n <Typography variant=\"sub-text\" spacing={{ marginBottom: 0 }}>\n {subtext}\n </Typography>\n )}\n </div>\n )}\n {children}\n </div>\n );\n};\n\nexport const FormSection = React.forwardRef(FormSectionComponent);\n"],"names":["FormSectionComponent","header","subtext","children","rest","ref","React","createElement","className","classes","Typography","variant","spacing","marginBottom","FormSection","forwardRef"],"mappings":"6MAyBaA,EAAwE,EACjFC,SAAQC,UAASC,cAAaC,GAChCC,IAGEC,EAAAC,cAAC,MAAA,IAAQH,EAAMI,UAAWC,EAAAA,QAAQ,mBAAoBJ,OACnDJ,GACCK,EAAAC,cAAC,MAAA,CAAIC,UAAWC,EAAAA,QAAQ,2BACtBH,EAAAC,cAACG,EAAAA,WAAA,CACCC,QAAQ,KACRH,UAAWC,EAAAA,QAAQ,kBACnBG,QAAS,CAAEC,aAAc,IAExBZ,GAEFC,GACCI,EAAAC,cAACG,EAAAA,WAAA,CAAWC,QAAQ,WAAWC,QAAS,CAAEC,aAAc,IACrDX,IAKRC,GAKMW,EAAcR,EAAMS,WAAWf"}
@@ -1 +1 @@
1
- {"version":3,"file":"FormSection.es.js","sources":["../../../../../../src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentPropsWithRef, ForwardRefRenderFunction } from \"react\";\nimport classes from \"./FormSection.module.scss\";\nimport { Typography } from \"../../../../Typography/Typography\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n header?: string;\n subtext?: string;\n}\n\nexport const FormSectionComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { header, subtext, children, ...rest },\n ref\n) => {\n return (\n <div {...rest} className={classes[\"section-wrapper\"]} ref={ref}>\n {header && (\n <div className={classes[\"section-header-wrapper\"]}>\n <Typography\n variant=\"h4\"\n className={classes[\"section-header\"]}\n spacing={{ marginBottom: 0 }}\n >\n {header}\n </Typography>\n {subtext && (\n <Typography variant=\"sub-text\" spacing={{ marginBottom: 0 }}>\n {subtext}\n </Typography>\n )}\n </div>\n )}\n {children}\n </div>\n );\n};\n\nexport const FormSection = React.forwardRef(FormSectionComponent);\n"],"names":[],"mappings":";;;AAyBa,MAAA,uBAAwE,CACnF,EAAE,QAAQ,SAAS,UAAU,GAAG,KAAK,GACrC,QACG;AACH,SACG,sBAAA,cAAA,OAAA,EAAK,GAAG,MAAM,WAAW,QAAQ,iBAAiB,GAAG,IAAA,GACnD,UACE,sBAAA,cAAA,OAAA,EAAI,WAAW,QAAQ,wBAAwB,KAC9C,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,WAAW,QAAQ,gBAAgB;AAAA,MACnC,SAAS,EAAE,cAAc,EAAE;AAAA,IAAA;AAAA,IAE1B;AAAA,EAAA,GAEF,WACE,sBAAA,cAAA,YAAA,EAAW,SAAQ,YAAW,SAAS,EAAE,cAAc,EAAE,EAAA,GACvD,OACH,CAEJ,GAED,QACH;AAEJ;AAEa,MAAA,cAAc,MAAM,WAAW,oBAAoB;"}
1
+ {"version":3,"file":"FormSection.es.js","sources":["../../../../../../src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentPropsWithRef, ForwardRefRenderFunction } from \"react\";\nimport classes from \"./FormSection.module.scss\";\nimport { Typography } from \"../../../../Typography/Typography\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n header?: string;\n subtext?: string;\n}\n\nexport const FormSectionComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { header, subtext, children, ...rest },\n ref\n) => {\n return (\n <div {...rest} className={classes[\"section-wrapper\"]} ref={ref}>\n {header && (\n <div className={classes[\"section-header-wrapper\"]}>\n <Typography\n variant=\"h4\"\n className={classes[\"section-header\"]}\n spacing={{ marginBottom: 0 }}\n >\n {header}\n </Typography>\n {subtext && (\n <Typography variant=\"sub-text\" spacing={{ marginBottom: 0 }}>\n {subtext}\n </Typography>\n )}\n </div>\n )}\n {children}\n </div>\n );\n};\n\nexport const FormSection = React.forwardRef(FormSectionComponent);\n"],"names":[],"mappings":";;;AAyBO,MAAM,uBAAwE,CACnF,EAAE,QAAQ,SAAS,UAAU,GAAG,KAAA,GAChC,QACG;AACH,SACE,sBAAA,cAAC,OAAA,EAAK,GAAG,MAAM,WAAW,QAAQ,iBAAiB,GAAG,IAAA,GACnD,UACC,sBAAA,cAAC,OAAA,EAAI,WAAW,QAAQ,wBAAwB,KAC9C,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,WAAW,QAAQ,gBAAgB;AAAA,MACnC,SAAS,EAAE,cAAc,EAAA;AAAA,IAAE;AAAA,IAE1B;AAAA,EAAA,GAEF,WACC,sBAAA,cAAC,YAAA,EAAW,SAAQ,YAAW,SAAS,EAAE,cAAc,EAAA,EAAE,GACvD,OACH,CAEJ,GAED,QACH;AAEJ;AAEO,MAAM,cAAc,MAAM,WAAW,oBAAoB;"}
@@ -1,3 +1,3 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormSection_section-wrapper_gFXfX{padding-bottom:4rem}.FormSection_section-header-wrapper_gFXfX{margin-bottom:1rem}.FormSection_section-header_gFXfX{line-height:1.6;color:var(--color-primary500)}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"section-wrapper":"FormSection_section-wrapper_gFXfX","section-header-wrapper":"FormSection_section-header-wrapper_gFXfX","section-header":"FormSection_section-header_gFXfX"};
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormSection_section-wrapper_jyx43{padding-bottom:4rem}.FormSection_section-header-wrapper_jyx43{margin-bottom:1rem}.FormSection_section-header_jyx43{line-height:1.6;color:var(--color-primary500)}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"section-wrapper":"FormSection_section-wrapper_jyx43","section-header-wrapper":"FormSection_section-header-wrapper_jyx43","section-header":"FormSection_section-header_jyx43"};
3
3
  //# sourceMappingURL=FormSection.module.scss.cjs.js.map
@@ -1,8 +1,8 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormSection_section-wrapper_gFXfX{padding-bottom:4rem}.FormSection_section-header-wrapper_gFXfX{margin-bottom:1rem}.FormSection_section-header_gFXfX{line-height:1.6;color:var(--color-primary500)}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".FormSection_section-wrapper_jyx43{padding-bottom:4rem}.FormSection_section-header-wrapper_jyx43{margin-bottom:1rem}.FormSection_section-header_jyx43{line-height:1.6;color:var(--color-primary500)}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
2
  const classes = {
3
- "section-wrapper": "FormSection_section-wrapper_gFXfX",
4
- "section-header-wrapper": "FormSection_section-header-wrapper_gFXfX",
5
- "section-header": "FormSection_section-header_gFXfX"
3
+ "section-wrapper": "FormSection_section-wrapper_jyx43",
4
+ "section-header-wrapper": "FormSection_section-header-wrapper_jyx43",
5
+ "section-header": "FormSection_section-header_jyx43"
6
6
  };
7
7
  export {
8
8
  classes as default