@onewelcome/react-lib-components 8.12.2 → 8.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/dist/cjs/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +1 -1
  2. package/dist/cjs/Button/BaseButton.module.scss.cjs.js +1 -1
  3. package/dist/cjs/Button/Button.module.scss.cjs.js +1 -1
  4. package/dist/cjs/Button/IconButton.module.scss.cjs.js +1 -1
  5. package/dist/cjs/ContextMenu/ContextMenu.module.scss.cjs.js +1 -1
  6. package/dist/cjs/ContextMenu/ContextMenuItem.module.scss.cjs.js +1 -1
  7. package/dist/cjs/DataGrid/DataGrid.module.scss.cjs.js +1 -1
  8. package/dist/cjs/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +1 -1
  9. package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +1 -1
  10. package/dist/cjs/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +1 -1
  11. package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +1 -1
  12. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +1 -1
  13. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +1 -1
  14. package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +1 -1
  15. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +1 -1
  16. package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +1 -1
  17. package/dist/cjs/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +1 -1
  18. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +1 -1
  19. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +1 -1
  20. package/dist/cjs/DatePicker/DatePicker.module.scss.cjs.js +1 -1
  21. package/dist/cjs/Form/Checkbox/Checkbox.module.scss.cjs.js +1 -1
  22. package/dist/cjs/Form/Fieldset/Fieldset.module.scss.cjs.js +1 -1
  23. package/dist/cjs/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +1 -1
  24. package/dist/cjs/Form/FileUpload/FileUpload.module.scss.cjs.js +1 -1
  25. package/dist/cjs/Form/Form.module.scss.cjs.js +1 -1
  26. package/dist/cjs/Form/FormControl/FormControl.module.scss.cjs.js +1 -1
  27. package/dist/cjs/Form/FormGroup/FormGroup.module.scss.cjs.js +1 -1
  28. package/dist/cjs/Form/FormHelperText/FormHelperText.module.scss.cjs.js +1 -1
  29. package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +1 -1
  30. package/dist/cjs/Form/Input/Input.module.scss.cjs.js +1 -1
  31. package/dist/cjs/Form/Label/Label.module.scss.cjs.js +1 -1
  32. package/dist/cjs/Form/Radio/Radio.module.scss.cjs.js +1 -1
  33. package/dist/cjs/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +1 -1
  34. package/dist/cjs/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +1 -1
  35. package/dist/cjs/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +1 -1
  36. package/dist/cjs/Form/Select/SingleSelect/Select.module.scss.cjs.js +1 -1
  37. package/dist/cjs/Form/Select/useAddNewBtn.module.scss.cjs.js +1 -1
  38. package/dist/cjs/Form/Textarea/Textarea.module.scss.cjs.js +1 -1
  39. package/dist/cjs/Form/Toggle/Toggle.module.scss.cjs.js +1 -1
  40. package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js +1 -1
  41. package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js.map +1 -1
  42. package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +1 -1
  43. package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.cjs.js +1 -1
  44. package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.cjs.js.map +1 -1
  45. package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +1 -1
  46. package/dist/cjs/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js +1 -1
  47. package/dist/cjs/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js.map +1 -1
  48. package/dist/cjs/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +1 -1
  49. package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +1 -1
  50. package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -1
  51. package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +1 -1
  52. package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js +1 -1
  53. package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js.map +1 -1
  54. package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +1 -1
  55. package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js +1 -1
  56. package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js.map +1 -1
  57. package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +1 -1
  58. package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +1 -1
  59. package/dist/cjs/Icon/Icon.module.scss.cjs.js +1 -1
  60. package/dist/cjs/Layout/ContentHeader/ContentHeader.cjs.js +1 -1
  61. package/dist/cjs/Layout/ContentHeader/ContentHeader.cjs.js.map +1 -1
  62. package/dist/cjs/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +1 -1
  63. package/dist/cjs/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +1 -1
  64. package/dist/cjs/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +1 -1
  65. package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +1 -1
  66. package/dist/cjs/Link/Link.module.scss.cjs.js +1 -1
  67. package/dist/cjs/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +1 -1
  68. package/dist/cjs/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +1 -1
  69. package/dist/cjs/Notifications/Banner/Banner.module.scss.cjs.js +1 -1
  70. package/dist/cjs/Notifications/BaseModal/BaseModal.module.scss.cjs.js +1 -1
  71. package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +1 -1
  72. package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +1 -1
  73. package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +1 -1
  74. package/dist/cjs/Notifications/Dialog/Dialog.module.scss.cjs.js +1 -1
  75. package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +1 -1
  76. package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +1 -1
  77. package/dist/cjs/Notifications/SideSheet/SideSheet.module.scss.cjs.js +1 -1
  78. package/dist/cjs/Notifications/SideSheet/SideSheetContent/SideSheetContent.cjs.js.map +1 -1
  79. package/dist/cjs/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +1 -1
  80. package/dist/cjs/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.cjs.js.map +1 -1
  81. package/dist/cjs/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +1 -1
  82. package/dist/cjs/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +1 -1
  83. package/dist/cjs/Pagination/Pagination.module.scss.cjs.js +1 -1
  84. package/dist/cjs/Popover/Popover.module.scss.cjs.js +1 -1
  85. package/dist/cjs/ProgressBar/ProgressBar.module.scss.cjs.js +1 -1
  86. package/dist/cjs/Skeleton/Skeleton.module.scss.cjs.js +1 -1
  87. package/dist/cjs/Spinner/Spinner.module.scss.cjs.js +1 -1
  88. package/dist/cjs/Stepper/Step.module.scss.cjs.js +1 -1
  89. package/dist/cjs/Stepper/Stepper.module.scss.cjs.js +1 -1
  90. package/dist/cjs/Tabs/Tab.module.scss.cjs.js +1 -1
  91. package/dist/cjs/Tabs/TabButton.module.scss.cjs.js +1 -1
  92. package/dist/cjs/Tabs/Tabs.module.scss.cjs.js +1 -1
  93. package/dist/cjs/Tag/RemoveButton.module.scss.cjs.js +1 -1
  94. package/dist/cjs/Tag/Tag.module.scss.cjs.js +1 -1
  95. package/dist/cjs/TextEllipsis/TextEllipsis.module.scss.cjs.js +1 -1
  96. package/dist/cjs/Tiles/Tile.module.scss.cjs.js +1 -1
  97. package/dist/cjs/Tiles/Tiles.module.scss.cjs.js +1 -1
  98. package/dist/cjs/Tooltip/Tooltip.module.scss.cjs.js +1 -1
  99. package/dist/cjs/Typography/Typography.module.scss.cjs.js +1 -1
  100. package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js +1 -1
  101. package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
  102. package/dist/cjs/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +1 -1
  103. package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +1 -1
  104. package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +1 -1
  105. package/dist/cjs/miscellaneous/IdentityProviderButton.cjs.js +1 -1
  106. package/dist/cjs/miscellaneous/IdentityProviderButton.cjs.js.map +1 -1
  107. package/dist/cjs/miscellaneous/IdentityProviderButton.module.scss.cjs.js +1 -1
  108. package/dist/cjs/src/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.d.ts +1 -1
  109. package/dist/cjs/src/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.d.ts +1 -1
  110. package/dist/cjs/src/components/_BaseStyling_/BaseStyling.d.ts +4 -2
  111. package/dist/cjs/src/components/withReadOnly.d.ts +5 -1
  112. package/dist/cjs/src/index.d.ts +5 -4
  113. package/dist/cjs/src/readyclasses.module.scss.cjs.js +1 -1
  114. package/dist/cjs/withReadOnly.cjs.js +1 -1
  115. package/dist/cjs/withReadOnly.cjs.js.map +1 -1
  116. package/dist/esm/Breadcrumbs/Breadcrumbs.module.scss.esm.js +2 -2
  117. package/dist/esm/Button/BaseButton.module.scss.esm.js +2 -2
  118. package/dist/esm/Button/Button.module.scss.esm.js +2 -2
  119. package/dist/esm/Button/IconButton.module.scss.esm.js +2 -2
  120. package/dist/esm/ContextMenu/ContextMenu.module.scss.esm.js +2 -2
  121. package/dist/esm/ContextMenu/ContextMenuItem.module.scss.esm.js +2 -2
  122. package/dist/esm/DataGrid/DataGrid.module.scss.esm.js +2 -2
  123. package/dist/esm/DataGrid/DataGridActions/DataGridActions.module.scss.esm.js +2 -2
  124. package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.esm.js +2 -2
  125. package/dist/esm/DataGrid/DataGridBody/DataGridBody.module.scss.esm.js +2 -2
  126. package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.esm.js +2 -2
  127. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.esm.js +2 -2
  128. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.esm.js +2 -2
  129. package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.esm.js +2 -2
  130. package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.module.scss.esm.js +2 -2
  131. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.module.scss.esm.js +2 -2
  132. package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.esm.js +2 -2
  133. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.module.scss.esm.js +2 -2
  134. package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.esm.js +2 -2
  135. package/dist/esm/DatePicker/DatePicker.module.scss.esm.js +2 -2
  136. package/dist/esm/Form/Checkbox/Checkbox.module.scss.esm.js +2 -2
  137. package/dist/esm/Form/Fieldset/Fieldset.module.scss.esm.js +2 -2
  138. package/dist/esm/Form/FileUpload/FileItem/FileItem.module.scss.esm.js +2 -2
  139. package/dist/esm/Form/FileUpload/FileUpload.module.scss.esm.js +2 -2
  140. package/dist/esm/Form/Form.module.scss.esm.js +2 -2
  141. package/dist/esm/Form/FormControl/FormControl.module.scss.esm.js +2 -2
  142. package/dist/esm/Form/FormGroup/FormGroup.module.scss.esm.js +2 -2
  143. package/dist/esm/Form/FormHelperText/FormHelperText.module.scss.esm.js +2 -2
  144. package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.esm.js +2 -2
  145. package/dist/esm/Form/Input/Input.module.scss.esm.js +2 -2
  146. package/dist/esm/Form/Label/Label.module.scss.esm.js +2 -2
  147. package/dist/esm/Form/Radio/Radio.module.scss.esm.js +2 -2
  148. package/dist/esm/Form/Select/MultiSelect/MultiSelect.module.scss.esm.js +2 -2
  149. package/dist/esm/Form/Select/MultiSelect/SelectButton.module.scss.esm.js +2 -2
  150. package/dist/esm/Form/Select/MultiSelect/SelectedOptions.module.scss.esm.js +2 -2
  151. package/dist/esm/Form/Select/SingleSelect/Select.module.scss.esm.js +2 -2
  152. package/dist/esm/Form/Select/useAddNewBtn.module.scss.esm.js +2 -2
  153. package/dist/esm/Form/Textarea/Textarea.module.scss.esm.js +2 -2
  154. package/dist/esm/Form/Toggle/Toggle.module.scss.esm.js +2 -2
  155. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js +1 -1
  156. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js.map +1 -1
  157. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.esm.js +2 -2
  158. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.esm.js +3 -1
  159. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.esm.js.map +1 -1
  160. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.module.scss.esm.js +2 -2
  161. package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.esm.js +3 -1
  162. package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.esm.js.map +1 -1
  163. package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.esm.js +2 -2
  164. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js +3 -1
  165. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js.map +1 -1
  166. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.esm.js +2 -2
  167. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.esm.js +1 -1
  168. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.esm.js.map +1 -1
  169. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.esm.js +2 -2
  170. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.esm.js +3 -1
  171. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.esm.js.map +1 -1
  172. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.esm.js +2 -2
  173. package/dist/esm/Form/Wrapper/Wrapper/Wrapper.module.scss.esm.js +2 -2
  174. package/dist/esm/Icon/Icon.module.scss.esm.js +2 -2
  175. package/dist/esm/Layout/ContentHeader/ContentHeader.esm.js +1 -1
  176. package/dist/esm/Layout/ContentHeader/ContentHeader.esm.js.map +1 -1
  177. package/dist/esm/Layout/ContentHeader/ContentHeader.module.scss.esm.js +2 -2
  178. package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.esm.js +2 -2
  179. package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.esm.js +2 -2
  180. package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.esm.js +2 -2
  181. package/dist/esm/Link/Link.module.scss.esm.js +2 -2
  182. package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.module.scss.esm.js +2 -2
  183. package/dist/esm/Notifications/Alert/AlertItem/AlertItem.module.scss.esm.js +2 -2
  184. package/dist/esm/Notifications/Banner/Banner.module.scss.esm.js +2 -2
  185. package/dist/esm/Notifications/BaseModal/BaseModal.module.scss.esm.js +2 -2
  186. package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.esm.js +2 -2
  187. package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.esm.js +2 -2
  188. package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.esm.js +2 -2
  189. package/dist/esm/Notifications/Dialog/Dialog.module.scss.esm.js +2 -2
  190. package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.module.scss.esm.js +2 -2
  191. package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.esm.js +2 -2
  192. package/dist/esm/Notifications/SideSheet/SideSheet.module.scss.esm.js +2 -2
  193. package/dist/esm/Notifications/SideSheet/SideSheetContent/SideSheetContent.esm.js.map +1 -1
  194. package/dist/esm/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.esm.js +2 -2
  195. package/dist/esm/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.esm.js.map +1 -1
  196. package/dist/esm/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.esm.js +2 -2
  197. package/dist/esm/Notifications/SlideInModal/SlideInModal.module.scss.esm.js +2 -2
  198. package/dist/esm/Pagination/Pagination.module.scss.esm.js +2 -2
  199. package/dist/esm/Popover/Popover.module.scss.esm.js +2 -2
  200. package/dist/esm/ProgressBar/ProgressBar.module.scss.esm.js +2 -2
  201. package/dist/esm/Skeleton/Skeleton.module.scss.esm.js +2 -2
  202. package/dist/esm/Spinner/Spinner.module.scss.esm.js +2 -2
  203. package/dist/esm/Stepper/Step.module.scss.esm.js +2 -2
  204. package/dist/esm/Stepper/Stepper.module.scss.esm.js +2 -2
  205. package/dist/esm/Tabs/Tab.module.scss.esm.js +2 -2
  206. package/dist/esm/Tabs/TabButton.module.scss.esm.js +2 -2
  207. package/dist/esm/Tabs/Tabs.module.scss.esm.js +2 -2
  208. package/dist/esm/Tag/RemoveButton.module.scss.esm.js +2 -2
  209. package/dist/esm/Tag/Tag.module.scss.esm.js +2 -2
  210. package/dist/esm/TextEllipsis/TextEllipsis.module.scss.esm.js +2 -2
  211. package/dist/esm/Tiles/Tile.module.scss.esm.js +2 -2
  212. package/dist/esm/Tiles/Tiles.module.scss.esm.js +2 -2
  213. package/dist/esm/Tooltip/Tooltip.module.scss.esm.js +2 -2
  214. package/dist/esm/Typography/Typography.module.scss.esm.js +2 -2
  215. package/dist/esm/_BaseStyling_/BaseStyling.esm.js +7 -5
  216. package/dist/esm/_BaseStyling_/BaseStyling.esm.js.map +1 -1
  217. package/dist/esm/admin/layout/LeftNav/LeftNav.module.scss.esm.js +2 -2
  218. package/dist/esm/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.esm.js +2 -2
  219. package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.esm.js +2 -2
  220. package/dist/esm/miscellaneous/IdentityProviderButton.esm.js +1 -1
  221. package/dist/esm/miscellaneous/IdentityProviderButton.esm.js.map +1 -1
  222. package/dist/esm/miscellaneous/IdentityProviderButton.module.scss.esm.js +2 -2
  223. package/dist/esm/src/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.d.ts +1 -1
  224. package/dist/esm/src/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.d.ts +1 -1
  225. package/dist/esm/src/components/_BaseStyling_/BaseStyling.d.ts +4 -2
  226. package/dist/esm/src/components/withReadOnly.d.ts +5 -1
  227. package/dist/esm/src/index.d.ts +5 -4
  228. package/dist/esm/src/readyclasses.module.scss.esm.js +2 -2
  229. package/dist/esm/withReadOnly.esm.js +4 -3
  230. package/dist/esm/withReadOnly.esm.js.map +1 -1
  231. package/package.json +19 -18
  232. package/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.tsx +1 -1
  233. package/src/components/Form/Wrapper/InputWrapper/InputWrapper.tsx +3 -1
  234. package/src/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.tsx +3 -1
  235. package/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.tsx +3 -1
  236. package/src/components/Form/Wrapper/SelectWrapper/SelectWrapper.tsx +1 -1
  237. package/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.tsx +3 -1
  238. package/src/components/Layout/ContentHeader/ContentHeader.tsx +1 -1
  239. package/src/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.tsx +1 -1
  240. package/src/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.tsx +1 -1
  241. package/src/components/_BaseStyling_/BaseStyling.tsx +11 -7
  242. package/src/components/miscellaneous/IdentityProviderButton.tsx +1 -0
  243. package/src/components/withReadOnly.tsx +12 -3
  244. package/src/index.ts +6 -8
@@ -16,21 +16,23 @@ export interface CSSProperties {
16
16
  colorPrimary700?: string;
17
17
  colorPrimary900?: string;
18
18
  colorPrimary50?: string;
19
+ colorBlueGrey25?: string;
20
+ colorBlueGrey50?: string;
19
21
  colorBlueGrey100?: string;
20
22
  colorBlueGrey200?: string;
21
23
  colorBlueGrey300?: string;
22
24
  colorBlueGrey400?: string;
23
- colorBlueGrey25?: string;
24
- colorBlueGrey50?: string;
25
25
  colorBlueGrey500?: string;
26
26
  colorBlueGrey700?: string;
27
27
  colorBlueGrey800?: string;
28
28
  colorBlueGrey900?: string;
29
+ colorGreen50?: string;
29
30
  colorGreen100?: string;
30
31
  colorGreen200?: string;
31
32
  colorGreen500?: string;
32
33
  colorGreen600?: string;
33
34
  colorGreen700?: string;
35
+ colorOrange50?: string;
34
36
  colorOrange100?: string;
35
37
  colorOrange500?: string;
36
38
  colorOrange600?: string;
@@ -5,4 +5,8 @@ export interface WithReadOnlyProps {
5
5
  helperText?: string;
6
6
  type?: string;
7
7
  }
8
- export declare const withReadOnly: <P extends object>(WrappedComponent: ComponentType<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithChildren<P & WithReadOnlyProps>> & React.RefAttributes<unknown>>;
8
+ type WithReadOnlyOptions = {
9
+ isWrapperComponent: boolean;
10
+ };
11
+ export declare const withReadOnly: <P extends object>(WrappedComponent: ComponentType<P>, options?: WithReadOnlyOptions) => React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithChildren<P & WithReadOnlyProps>> & React.RefAttributes<unknown>>;
12
+ export {};
@@ -1,5 +1,5 @@
1
- export { BaseStyling, CSSProperties as BaseStylingCSSProperties } from "./components/_BaseStyling_/BaseStyling";
2
- export type { Props as BaseStylingProps } from "./components/_BaseStyling_/BaseStyling";
1
+ export { BaseStyling } from "./components/_BaseStyling_/BaseStyling";
2
+ export type { Props as BaseStylingProps, CSSProperties as BaseStylingCSSProperties } from "./components/_BaseStyling_/BaseStyling";
3
3
  export { Button } from "./components/Button/Button";
4
4
  export type { Props as ButtonProps } from "./components/Button/Button";
5
5
  export { Breadcrumbs } from "./components/Breadcrumbs/Breadcrumbs";
@@ -54,7 +54,8 @@ export { Modal } from "./components/Notifications/Modal/Modal";
54
54
  export type { Props as ModalProps } from "./components/Notifications/Modal/Modal";
55
55
  export { useAlert } from "./components/Notifications/Alert/useAlert";
56
56
  export { AlertProvider } from "./components/Notifications/Alert/AlertProvider/AlertProvider";
57
- export { AlertItem, Props as AlertItemProps } from "./components/Notifications/Alert/AlertItem/AlertItem";
57
+ export { AlertItem } from "./components/Notifications/Alert/AlertItem/AlertItem";
58
+ export type { Props as AlertItemProps } from "./components/Notifications/Alert/AlertItem/AlertItem";
58
59
  export type { Props as AlertProviderProps } from "./components/Notifications/Alert/AlertProvider/AlertProvider";
59
60
  export { Dialog } from "./components/Notifications/Dialog/Dialog";
60
61
  export type { Props as DialogProps, Action as DialogAction } from "./components/Notifications/Dialog/Dialog";
@@ -144,7 +145,7 @@ export { DataGridDrawerItem } from "./components/DataGrid/DataGridBody/DataGridD
144
145
  export type { Props as DataGridDrawerItemProps } from "./components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem";
145
146
  export { DataGridCell } from "./components/DataGrid/DataGridBody/DataGridCell/DataGridCell";
146
147
  export type { Props as DataGridCellProps } from "./components/DataGrid/DataGridBody/DataGridCell/DataGridCell";
147
- export { Filter } from "./components/DataGrid/DataGridFilters/DataGridFilters.interfaces";
148
+ export type { Filter } from "./components/DataGrid/DataGridFilters/DataGridFilters.interfaces";
148
149
  export { FilterKeyMapper } from "./components/DataGrid/DataGridFilters/FilterKeyMapper";
149
150
  export { useFiltersReducer } from "./components/DataGrid/DataGridFilters/useFiltersReducer";
150
151
  /** Banner */
@@ -1,7 +1,7 @@
1
1
  import styleInject from '../node_modules/style-inject/dist/style-inject.es.esm.js';
2
2
 
3
- var css_248z = "/*!\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 */.readyclasses_sr-only_rE09l{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.readyclasses_hidden_rE09l{display:none}.readyclasses_slide-in_rE09l{animation:readyclasses_slide-in_rE09l .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-in_rE09l{animation-duration:.1ms}}.readyclasses_slide-out_rE09l{animation:readyclasses_slide-out_rE09l .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-out_rE09l{animation-duration:.1ms}}@keyframes readyclasses_slide-in_rE09l{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes readyclasses_slide-out_rE09l{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlYWR5Y2xhc3Nlcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDRCQU9FLGtCQUFzQixDQUN0QixRQUFTLENBTFQsVUFBVyxDQUVYLFdBQVksQ0FDWixlQUFnQixDQUZoQixTQUFVLENBSFYsaUJBQWtCLENBQ2xCLFNBT0YsQ0FFQSwyQkFDRSxZQUNGLENBRUEsNkJBQ0Usa0RBQ0YsQ0FDQSx1Q0FDRSw2QkFDRSx1QkFDRixDQUNGLENBRUEsOEJBQ0UsbURBQ0YsQ0FDQSx1Q0FDRSw4QkFDRSx1QkFDRixDQUNGLENBRUEsdUNBQ0UsR0FDRSwyQkFDRixDQUNBLEdBQ0UsdUJBQ0YsQ0FDRixDQUNBLHdDQUNFLEdBQ0UsdUJBQ0YsQ0FDQSxHQUNFLDJCQUNGLENBQ0YiLCJmaWxlIjoicmVhZHljbGFzc2VzLm1vZHVsZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLyohXG4gKiBDb3B5cmlnaHQgMjAyMiBPbmVXZWxjb21lIEIuVi5cbiAqXG4gKiAgICBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogICAgeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW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C4xbXM7XG4gIH1cbn1cblxuLnNsaWRlLW91dCB7XG4gIGFuaW1hdGlvbjogc2xpZGUtb3V0IDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtb3V0IHtcbiAgICBhbmltYXRpb24tZHVyYXRpb246IDAuMW1zO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgc2xpZGUtaW4ge1xuICAwJSB7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDEwMHZoKTtcbiAgfVxuICAxMDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG59XG5Aa2V5ZnJhbWVzIHNsaWRlLW91dCB7XG4gIDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG4gIDEwMCUge1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDB2aCk7XG4gIH1cbn0iXX0= */";
4
- var readyclasses = {"sr-only":"readyclasses_sr-only_rE09l","hidden":"readyclasses_hidden_rE09l","slide-in":"readyclasses_slide-in_rE09l","slide-out":"readyclasses_slide-out_rE09l"};
3
+ var css_248z = "/*!\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 */.readyclasses_sr-only_DsK2j{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.readyclasses_hidden_DsK2j{display:none}.readyclasses_slide-in_DsK2j{animation:readyclasses_slide-in_DsK2j .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-in_DsK2j{animation-duration:.1ms}}.readyclasses_slide-out_DsK2j{animation:readyclasses_slide-out_DsK2j .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-out_DsK2j{animation-duration:.1ms}}@keyframes readyclasses_slide-in_DsK2j{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes readyclasses_slide-out_DsK2j{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlYWR5Y2xhc3Nlcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDRCQU9FLGtCQUFzQixDQUN0QixRQUFTLENBTFQsVUFBVyxDQUVYLFdBQVksQ0FDWixlQUFnQixDQUZoQixTQUFVLENBSFYsaUJBQWtCLENBQ2xCLFNBT0YsQ0FFQSwyQkFDRSxZQUNGLENBRUEsNkJBQ0Usa0RBQ0YsQ0FDQSx1Q0FDRSw2QkFDRSx1QkFDRixDQUNGLENBRUEsOEJBQ0UsbURBQ0YsQ0FDQSx1Q0FDRSw4QkFDRSx1QkFDRixDQUNGLENBRUEsdUNBQ0UsR0FDRSwyQkFDRixDQUNBLEdBQ0UsdUJBQ0YsQ0FDRixDQUNBLHdDQUNFLEdBQ0UsdUJBQ0YsQ0FDQSxHQUNFLDJCQUNGLENBQ0YiLCJmaWxlIjoicmVhZHljbGFzc2VzLm1vZHVsZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLyohXG4gKiBDb3B5cmlnaHQgMjAyMiBPbmVXZWxjb21lIEIuVi5cbiAqXG4gKiAgICBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogICAgeW91IG1heSBub3QgdXNlIH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1xuICAgIGFuaW1hdGlvbi1kdXJhdGlvbjogMC4xbXM7XG4gIH1cbn1cblxuLnNsaWRlLW91dCB7XG4gIGFuaW1hdGlvbjogc2xpZGUtb3V0IDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtb3V0IHtcbiAgICBhbmltYXRpb24tZHVyYXRpb246IDAuMW1zO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgc2xpZGUtaW4ge1xuICAwJSB7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDEwMHZoKTtcbiAgfVxuICAxMDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG59XG5Aa2V5ZnJhbWVzIHNsaWRlLW91dCB7XG4gIDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG4gIDEwMCUge1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDB2aCk7XG4gIH1cbn0iXX0= */";
4
+ var readyclasses = {"sr-only":"readyclasses_sr-only_DsK2j","hidden":"readyclasses_hidden_DsK2j","slide-in":"readyclasses_slide-in_DsK2j","slide-out":"readyclasses_slide-out_DsK2j"};
5
5
  styleInject(css_248z);
6
6
 
7
7
  export { readyclasses as default };
@@ -28,7 +28,7 @@ const getConditionalProps = (readOnlyView, type, helperText) => {
28
28
  props.helperText = "";
29
29
  }
30
30
  }
31
- else {
31
+ else if (helperText) {
32
32
  props.helperText = helperText;
33
33
  }
34
34
  if (type) {
@@ -36,7 +36,8 @@ const getConditionalProps = (readOnlyView, type, helperText) => {
36
36
  }
37
37
  return props;
38
38
  };
39
- const withReadOnly = (WrappedComponent) => {
39
+ const withReadOnly = (WrappedComponent, options) => {
40
+ const { isWrapperComponent } = options || {};
40
41
  const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView) => {
41
42
  const preventSubmissionKeys = (e) => {
42
43
  const isEnterOrSpace = (e) => e.key === "Enter" || e.key === " ";
@@ -60,7 +61,7 @@ const withReadOnly = (WrappedComponent) => {
60
61
  };
61
62
  const WithReadOnlyComponent = React.forwardRef((props, ref) => {
62
63
  const { readOnlyView = false, required, children, helperText, type = "", ...restProps } = props;
63
- return (React.createElement(WrappedComponent, { ref: ref, ...restProps, "data-readonlyview": readOnlyView, "aria-readonly": readOnlyView, required: readOnlyView ? false : required, ...getConditionalProps(readOnlyView, type, helperText), ...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView) }, children));
64
+ return (React.createElement(WrappedComponent, { ref: ref, ...restProps, "data-readonlyview": readOnlyView, "aria-readonly": isWrapperComponent ? undefined : readOnlyView, required: readOnlyView ? false : required, ...getConditionalProps(readOnlyView, type, helperText), ...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView) }, children));
64
65
  });
65
66
  WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;
66
67
  return WithReadOnlyComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"withReadOnly.esm.js","sources":["../../../../src/components/withReadOnly.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentType, ForwardedRef, PropsWithChildren } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\nexport const withReadOnly = <P extends object>(WrappedComponent: ComponentType<P>) => {\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (props: PropsWithChildren<P & WithReadOnlyProps>, ref: ForwardedRef<unknown>) => {\n const {\n readOnlyView = false,\n required,\n children,\n helperText,\n type = \"\",\n ...restProps\n } = props;\n\n return (\n <WrappedComponent\n ref={ref}\n {...(restProps as P)}\n data-readonlyview={readOnlyView}\n aria-readonly={readOnlyView}\n required={readOnlyView ? false : required}\n {...getConditionalProps(readOnlyView, type, helperText)}\n {...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}\n >\n {children}\n </WrappedComponent>\n );\n }\n );\n\n WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;\n return WithReadOnlyComponent;\n};\n"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;AAcG;AAWH,M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sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentType, ForwardedRef, PropsWithChildren } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else if (helperText) {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\ntype WithReadOnlyOptions = {\n isWrapperComponent: boolean;\n};\n\nexport const withReadOnly = <P extends object>(\n WrappedComponent: ComponentType<P>,\n options?: WithReadOnlyOptions\n) => {\n const { isWrapperComponent } = options || {};\n\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (props: PropsWithChildren<P & WithReadOnlyProps>, ref: ForwardedRef<unknown>) => {\n const {\n readOnlyView = false,\n required,\n children,\n helperText,\n type = \"\",\n ...restProps\n } = props;\n\n return (\n <WrappedComponent\n ref={ref}\n {...(restProps as P)}\n data-readonlyview={readOnlyView}\n aria-readonly={isWrapperComponent ? undefined : readOnlyView}\n required={readOnlyView ? false : required}\n {...getConditionalProps(readOnlyView, type, helperText)}\n {...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}\n >\n {children}\n </WrappedComponent>\n );\n }\n );\n\n WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;\n return WithReadOnlyComponent;\n};\n"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;AAcG;AAWH,MAAM,gCAAgC,GAAa,CAAC,iBAAiB,CAAC,CAAC;AAEvE,MAAM,cAAc,GAAG,CAAK,gBAAkC,KAAI;;IAChE,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,gBAAgB,CAAC,WAAW,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,gBAAgB,CAAC,IAAI,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,WAAW,CAAC;AAC9E,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,YAAqB,EAAE,IAAY,EAAE,UAAmB,KAAI;IACvF,MAAM,KAAK,GAA4B,EAAE,CAAC;IAE1C,IAAI,YAAY,EAAE;AAChB,QAAA,KAAK,CAAC,KAAK,GAAG,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QAC5D,IAAI,UAAU,EAAE;AACd,YAAA,KAAK,CAA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CAAC,UAAU,CAC5C,CAAC,KAA+C,EAAE,GAA0B,KAAI;QAC9E,MAAM,EACJ,YAAY,GAAG,KAAK,EACpB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,IAAI,GAAG,EAAE,EACT,GAAG,SAAS,EACb,GAAG,KAAK,CAAC;QAEV,QACE,oBAAC,gBAAgB,EAAA,EACf,GAAG,EAAE,GAAG,EACH,GAAA,SAAe,EACD,mBAAA,EAAA,YAAY,mBAChB,kBAAkB,GAAG,SAAS,GAAG,YAAY,EAC5D,QAAQ,EAAE,YAAY,GAAG,KAAK,GAAG,QAAQ,EACrC,GAAA,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,UAAU,CAAC,EACnD,GAAA,kDAAkD,CAAC,YAAY,CAAC,EAEnE,EAAA,QAAQ,CACQ,EACnB;AACJ,KAAC,CACF,CAAC;IAEF,qBAAqB,CAAC,WAAW,GAAG,CAAA,aAAA,EAAgB,cAAc,CAAC,gBAAgB,CAAC,CAAA,CAAE,CAAC;AACvF,IAAA,OAAO,qBAAqB,CAAC;AAC/B;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "homepage": "http://onewelcome.github.io/react-lib-components",
3
3
  "name": "@onewelcome/react-lib-components",
4
- "version": "8.12.2",
4
+ "version": "8.14.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "OneWelcome B.V.",
7
7
  "main": "dist/cjs/src/index.cjs.js",
@@ -61,7 +61,7 @@
61
61
  "@babel/preset-env": "^7.26.9",
62
62
  "@babel/preset-react": "^7.26.3",
63
63
  "@babel/preset-typescript": "^7.26.0",
64
- "@chromatic-com/storybook": "^1.6.0",
64
+ "@chromatic-com/storybook": "^3.2.6",
65
65
  "@mdx-js/react": "^3.0.1",
66
66
  "@onewelcome/eslint-config-shared-codestyle": "^9.3.0",
67
67
  "@onewelcome/storybook-addon-basestyling": "^2.0.0",
@@ -69,20 +69,21 @@
69
69
  "@rollup/plugin-node-resolve": "^15.2.3",
70
70
  "@rollup/plugin-terser": "^0.4.4",
71
71
  "@rollup/plugin-typescript": "^11.1.6",
72
- "@storybook/addon-a11y": "~8.1.11",
73
- "@storybook/addon-actions": "~8.1.11",
74
- "@storybook/addon-docs": "~8.1.11",
75
- "@storybook/addon-essentials": "~8.1.11",
76
- "@storybook/addon-interactions": "~8.1.11",
77
- "@storybook/addon-links": "~8.1.11",
72
+ "@storybook/addon-a11y": "^8.6.12",
73
+ "@storybook/addon-actions": "^8.6.12",
74
+ "@storybook/addon-docs": "^8.6.12",
75
+ "@storybook/addon-essentials": "^8.6.12",
76
+ "@storybook/addon-interactions": "^8.6.12",
77
+ "@storybook/addon-links": "^8.6.12",
78
78
  "@storybook/addon-styling-webpack": "^1.0.1",
79
- "@storybook/addon-webpack5-compiler-babel": "~3.0.3",
80
- "@storybook/blocks": "~8.1.11",
81
- "@storybook/components": "~8.1.11",
82
- "@storybook/manager-api": "~8.1.11",
83
- "@storybook/react": "~8.1.11",
84
- "@storybook/react-webpack5": "~8.1.11",
85
- "@storybook/theming": "~8.1.11",
79
+ "@storybook/addon-webpack5-compiler-babel": "^3.0.6",
80
+ "@storybook/blocks": "^8.6.12",
81
+ "@storybook/components": "^8.6.12",
82
+ "@storybook/manager-api": "^8.6.12",
83
+ "@storybook/preview-api": "^8.6.12",
84
+ "@storybook/react": "^8.6.12",
85
+ "@storybook/react-webpack5": "^8.6.12",
86
+ "@storybook/theming": "^8.6.12",
86
87
  "@testing-library/dom": "^10.3.0",
87
88
  "@testing-library/jest-dom": "^6.4.6",
88
89
  "@testing-library/react": "^16.0.0",
@@ -104,7 +105,7 @@
104
105
  "eslint-plugin-prettier": "^5.1.3",
105
106
  "eslint-plugin-react": "^7.34.3",
106
107
  "eslint-plugin-react-hooks": "^4.6.2",
107
- "eslint-plugin-storybook": "^0.8.0",
108
+ "eslint-plugin-storybook": "^0.12.0",
108
109
  "husky": "^9.1.7",
109
110
  "identity-obj-proxy": "^3.0.0",
110
111
  "jest": "^29.7.0",
@@ -129,9 +130,9 @@
129
130
  "sass": "1.77.6",
130
131
  "sass-loader": "^14.2.1",
131
132
  "size-limit": "^11.1.4",
132
- "storybook": "~8.1.11",
133
+ "storybook": "^8.6.12",
133
134
  "storybook-addon-mock": "^5.0.0",
134
- "storybook-addon-pseudo-states": "^3.1.1",
135
+ "storybook-addon-pseudo-states": "^4.0.4",
135
136
  "style-loader": "^4.0.0",
136
137
  "ts-jest": "^29.1.5",
137
138
  "tslib": "^2.6.3",
@@ -86,4 +86,4 @@ ForwardedCheckboxWrapper.displayName = "CheckboxWrapper";
86
86
  /**
87
87
  * @deprecated
88
88
  */
89
- export const CheckboxWrapper = withReadOnly(ForwardedCheckboxWrapper);
89
+ export const CheckboxWrapper = withReadOnly(ForwardedCheckboxWrapper, { isWrapperComponent: true });
@@ -120,4 +120,6 @@ const InputWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
120
120
  );
121
121
  };
122
122
 
123
- export const InputWrapper = withReadOnly(React.forwardRef(InputWrapperComponent));
123
+ export const InputWrapper = withReadOnly(React.forwardRef(InputWrapperComponent), {
124
+ isWrapperComponent: true
125
+ });
@@ -83,4 +83,6 @@ const MultiSelectWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Prop
83
83
  );
84
84
  };
85
85
 
86
- export const MultiSelectWrapper = withReadOnly(React.forwardRef(MultiSelectWrapperComponent));
86
+ export const MultiSelectWrapper = withReadOnly(React.forwardRef(MultiSelectWrapperComponent), {
87
+ isWrapperComponent: true
88
+ });
@@ -101,4 +101,6 @@ const RadioWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
101
101
  );
102
102
  };
103
103
 
104
- export const RadioWrapper = withReadOnly(React.forwardRef(RadioWrapperComponent));
104
+ export const RadioWrapper = withReadOnly(React.forwardRef(RadioWrapperComponent), {
105
+ isWrapperComponent: true
106
+ });
@@ -86,4 +86,4 @@ const SelectWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Props> =
86
86
  const forwardedSelectWrapper = React.forwardRef(SelectWrapperComponent);
87
87
  forwardedSelectWrapper.displayName = "SelectWrapper";
88
88
 
89
- export const SelectWrapper = withReadOnly(forwardedSelectWrapper);
89
+ export const SelectWrapper = withReadOnly(forwardedSelectWrapper, { isWrapperComponent: true });
@@ -149,4 +149,6 @@ const TextareaWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Props>
149
149
  );
150
150
  };
151
151
 
152
- export const TextareaWrapper = withReadOnly(React.forwardRef(TextareaWrapperComponent));
152
+ export const TextareaWrapper = withReadOnly(React.forwardRef(TextareaWrapperComponent), {
153
+ isWrapperComponent: true
154
+ });
@@ -59,7 +59,7 @@ export const ContentHeaderComponent = ({
59
59
  ...rest
60
60
  }: Props) => {
61
61
  const errorTag = (
62
- <Tag icon={Icons.Forbidden} backgroundColor="var(--color-red50)" color="var(--color-red900)">
62
+ <Tag icon={Icons.Forbidden} backgroundColor="var(--color-red100)" color="var(--color-red900)">
63
63
  {errorTagText || "Blocked"}
64
64
  </Tag>
65
65
  );
@@ -22,4 +22,4 @@ export const SideSheetContent: React.FC<Props> = ({ className, ...rest }) => (
22
22
  <BaseModalContent {...rest} className={`${classes["side-sheet-content"]} ${className}`} />
23
23
  );
24
24
 
25
- export { Props } from "../../BaseModal/BaseModalContent/BaseModalContent";
25
+ export type { Props } from "../../BaseModal/BaseModalContent/BaseModalContent";
@@ -22,4 +22,4 @@ export const SideSheetHeader: React.FC<Props> = ({ className, ...rest }) => (
22
22
  <BaseModalHeader {...rest} className={`${classes["side-sheet-header"]} ${className}`} />
23
23
  );
24
24
 
25
- export { Props } from "../../BaseModal/BaseModalHeader/BaseModalHeader";
25
+ export type { Props } from "../../BaseModal/BaseModalHeader/BaseModalHeader";
@@ -34,21 +34,23 @@ export interface CSSProperties {
34
34
  colorPrimary700?: string;
35
35
  colorPrimary900?: string;
36
36
  colorPrimary50?: string;
37
+ colorBlueGrey25?: string;
38
+ colorBlueGrey50?: string;
37
39
  colorBlueGrey100?: string;
38
40
  colorBlueGrey200?: string;
39
41
  colorBlueGrey300?: string;
40
42
  colorBlueGrey400?: string;
41
- colorBlueGrey25?: string;
42
- colorBlueGrey50?: string;
43
43
  colorBlueGrey500?: string;
44
44
  colorBlueGrey700?: string;
45
45
  colorBlueGrey800?: string;
46
46
  colorBlueGrey900?: string;
47
+ colorGreen50?: string;
47
48
  colorGreen100?: string;
48
49
  colorGreen200?: string;
49
50
  colorGreen500?: string;
50
51
  colorGreen600?: string;
51
52
  colorGreen700?: string;
53
+ colorOrange50?: string;
52
54
  colorOrange100?: string;
53
55
  colorOrange500?: string;
54
56
  colorOrange600?: string;
@@ -246,16 +248,18 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
246
248
  colorBlueGrey700: "#383A4B",
247
249
  colorBlueGrey800: "#252733",
248
250
  colorBlueGrey900: "#131319",
251
+ colorGreen50: "#E8F3ED",
249
252
  colorGreen100: "#D1E6DA",
250
253
  colorGreen200: "#A2CDB4",
251
254
  colorGreen500: "#178244",
252
255
  colorGreen600: "#126836",
253
256
  colorGreen700: "#0E4E29",
257
+ colorOrange50: "#FCF2E6",
254
258
  colorOrange100: "#FFE0B2",
255
259
  colorOrange500: "#E07900",
256
260
  colorOrange600: "#B36100",
257
261
  colorOrange700: "#864900",
258
- colorRed50: "#F9D2CC",
262
+ colorRed50: "#FCE9E6",
259
263
  colorRed100: "#FFCDD2",
260
264
  colorRed200: "#F3A599",
261
265
  colorRed500: "#E01E00",
@@ -341,16 +345,16 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
341
345
  alertNeutralBackgroundColor: "var(--color-blue-grey50)",
342
346
  alertNeutralInvertedColor: "var(--color-blue-grey500)",
343
347
 
344
- alertInfoBackgroundColor: "var(--color-primary100)",
348
+ alertInfoBackgroundColor: "var(--color-primary50)",
345
349
  alertInfoInvertedColor: "var(--color-primary500)",
346
350
 
347
- alertSuccessBackgroundColor: "var(--color-green100)",
351
+ alertSuccessBackgroundColor: "var(--color-green50)",
348
352
  alertSuccessInvertedColor: "var(--color-green500)",
349
353
 
350
- alertErrorBackgroundColor: "var(--color-red100)",
354
+ alertErrorBackgroundColor: "var(--color-red50)",
351
355
  alertErrorInvertedColor: "var(--color-red500)",
352
356
 
353
- alertWarningBackgroundColor: "var(--color-orange100)",
357
+ alertWarningBackgroundColor: "var(--color-orange50)",
354
358
  alertWarningInvertedColor: "var(--color-orange500)",
355
359
 
356
360
  alertBorderWidth: "4px",
@@ -79,6 +79,7 @@ export const IdentityProviderButton: ForwardRefRenderFunction<HTMLButtonElement,
79
79
  <img
80
80
  height={24}
81
81
  width={24}
82
+ aria-hidden={!imgAltText}
82
83
  src={iconUrl || `/ui-resources-static/common/idb/icons/${idpType}.svg`}
83
84
  alt={imgAltText || "Identity Provider icon"}
84
85
  />
@@ -37,7 +37,7 @@ const getConditionalProps = (readOnlyView: boolean, type: string, helperText?: s
37
37
  if (helperText) {
38
38
  props.helperText = "";
39
39
  }
40
- } else {
40
+ } else if (helperText) {
41
41
  props.helperText = helperText;
42
42
  }
43
43
 
@@ -48,7 +48,16 @@ const getConditionalProps = (readOnlyView: boolean, type: string, helperText?: s
48
48
  return props;
49
49
  };
50
50
 
51
- export const withReadOnly = <P extends object>(WrappedComponent: ComponentType<P>) => {
51
+ type WithReadOnlyOptions = {
52
+ isWrapperComponent: boolean;
53
+ };
54
+
55
+ export const withReadOnly = <P extends object>(
56
+ WrappedComponent: ComponentType<P>,
57
+ options?: WithReadOnlyOptions
58
+ ) => {
59
+ const { isWrapperComponent } = options || {};
60
+
52
61
  const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {
53
62
  const preventSubmissionKeys = (e: KeyboardEvent) => {
54
63
  const isEnterOrSpace = (e: KeyboardEvent) => e.key === "Enter" || e.key === " ";
@@ -96,7 +105,7 @@ export const withReadOnly = <P extends object>(WrappedComponent: ComponentType<P
96
105
  ref={ref}
97
106
  {...(restProps as P)}
98
107
  data-readonlyview={readOnlyView}
99
- aria-readonly={readOnlyView}
108
+ aria-readonly={isWrapperComponent ? undefined : readOnlyView}
100
109
  required={readOnlyView ? false : required}
101
110
  {...getConditionalProps(readOnlyView, type, helperText)}
102
111
  {...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}
package/src/index.ts CHANGED
@@ -15,11 +15,11 @@
15
15
  */
16
16
 
17
17
  /* Components */
18
- export {
19
- BaseStyling,
18
+ export { BaseStyling } from "./components/_BaseStyling_/BaseStyling";
19
+ export type {
20
+ Props as BaseStylingProps,
20
21
  CSSProperties as BaseStylingCSSProperties
21
22
  } from "./components/_BaseStyling_/BaseStyling";
22
- export type { Props as BaseStylingProps } from "./components/_BaseStyling_/BaseStyling";
23
23
  export { Button } from "./components/Button/Button";
24
24
  export type { Props as ButtonProps } from "./components/Button/Button";
25
25
  export { Breadcrumbs } from "./components/Breadcrumbs/Breadcrumbs";
@@ -89,10 +89,8 @@ export { Modal } from "./components/Notifications/Modal/Modal";
89
89
  export type { Props as ModalProps } from "./components/Notifications/Modal/Modal";
90
90
  export { useAlert } from "./components/Notifications/Alert/useAlert";
91
91
  export { AlertProvider } from "./components/Notifications/Alert/AlertProvider/AlertProvider";
92
- export {
93
- AlertItem,
94
- Props as AlertItemProps
95
- } from "./components/Notifications/Alert/AlertItem/AlertItem";
92
+ export { AlertItem } from "./components/Notifications/Alert/AlertItem/AlertItem";
93
+ export type { Props as AlertItemProps } from "./components/Notifications/Alert/AlertItem/AlertItem";
96
94
  export type { Props as AlertProviderProps } from "./components/Notifications/Alert/AlertProvider/AlertProvider";
97
95
  export { Dialog } from "./components/Notifications/Dialog/Dialog";
98
96
  export type {
@@ -205,7 +203,7 @@ export { DataGridDrawerItem } from "./components/DataGrid/DataGridBody/DataGridD
205
203
  export type { Props as DataGridDrawerItemProps } from "./components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem";
206
204
  export { DataGridCell } from "./components/DataGrid/DataGridBody/DataGridCell/DataGridCell";
207
205
  export type { Props as DataGridCellProps } from "./components/DataGrid/DataGridBody/DataGridCell/DataGridCell";
208
- export { Filter } from "./components/DataGrid/DataGridFilters/DataGridFilters.interfaces";
206
+ export type { Filter } from "./components/DataGrid/DataGridFilters/DataGridFilters.interfaces";
209
207
  export { FilterKeyMapper } from "./components/DataGrid/DataGridFilters/FilterKeyMapper";
210
208
  export { useFiltersReducer } from "./components/DataGrid/DataGridFilters/useFiltersReducer";
211
209