@onewelcome/react-lib-components 6.7.0 → 7.0.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 (395) hide show
  1. package/README.md +6 -0
  2. package/dist/cjs/DataGrid/DataGrid.cjs.js +1 -1
  3. package/dist/cjs/DataGrid/DataGrid.cjs.js.map +1 -1
  4. package/dist/cjs/DataGrid/DataGridBody/DataGridBody.cjs.js +1 -1
  5. package/dist/cjs/DataGrid/DataGridBody/DataGridBody.cjs.js.map +1 -1
  6. package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js +2 -0
  7. package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js.map +1 -0
  8. package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.cjs.js +2 -0
  9. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.cjs.js +2 -0
  10. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.cjs.js.map +1 -0
  11. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.cjs.js +2 -0
  12. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.cjs.js.map +1 -0
  13. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js +2 -0
  14. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js.map +1 -0
  15. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.cjs.js +2 -0
  16. package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.cjs.js.map +1 -0
  17. package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js +2 -0
  18. package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js.map +1 -0
  19. package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.cjs.js +2 -0
  20. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.cjs.js +2 -0
  21. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.cjs.js.map +1 -0
  22. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.module.cjs.js +2 -0
  23. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.module.cjs.js.map +1 -0
  24. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilterPopover.cjs.js +2 -0
  25. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilterPopover.cjs.js.map +1 -0
  26. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilterService.cjs.js +2 -0
  27. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilterService.cjs.js.map +1 -0
  28. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js +2 -0
  29. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js.map +1 -0
  30. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilters.interfaces.cjs.js +2 -0
  31. package/dist/cjs/DataGrid/DataGridFilters/DataGridFilters.interfaces.cjs.js.map +1 -0
  32. package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.cjs.js +2 -0
  33. package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.cjs.js.map +1 -0
  34. package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.module.cjs.js +2 -0
  35. package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.module.cjs.js.map +1 -0
  36. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.cjs.js +1 -1
  37. package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.cjs.js.map +1 -1
  38. package/dist/cjs/Form/FileUpload/FileItem/FileItem.cjs.js +1 -1
  39. package/dist/cjs/Form/FileUpload/FileItem/FileItem.cjs.js.map +1 -1
  40. package/dist/cjs/Form/FileUpload/FileUpload.cjs.js +1 -1
  41. package/dist/cjs/Form/FileUpload/FileUpload.cjs.js.map +1 -1
  42. package/dist/cjs/Form/FileUpload/FileUpload.module.cjs.js +1 -1
  43. package/dist/cjs/Form/Select/MultiSelect/MultiOption.cjs.js +1 -1
  44. package/dist/cjs/Form/Select/MultiSelect/MultiOption.cjs.js.map +1 -1
  45. package/dist/cjs/Form/Select/MultiSelect/MultiSelect.cjs.js +1 -1
  46. package/dist/cjs/Form/Select/MultiSelect/MultiSelect.cjs.js.map +1 -1
  47. package/dist/cjs/Form/Select/MultiSelect/useSearch.cjs.js +1 -1
  48. package/dist/cjs/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
  49. package/dist/cjs/Form/Select/SingleSelect/Select.cjs.js +1 -1
  50. package/dist/cjs/Form/Select/SingleSelect/Select.cjs.js.map +1 -1
  51. package/dist/cjs/Form/Select/SingleSelect/useSearch.cjs.js +1 -1
  52. package/dist/cjs/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -1
  53. package/dist/cjs/Icon/Icon.cjs.js +1 -1
  54. package/dist/cjs/Icon/Icon.cjs.js.map +1 -1
  55. package/dist/cjs/Icon/Icon.module.cjs.js +1 -1
  56. package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.cjs.js +1 -1
  57. package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.cjs.js.map +1 -1
  58. package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.module.cjs.js +1 -1
  59. package/dist/cjs/Notifications/NotificationProvider/NotificationContext.cjs.js +1 -1
  60. package/dist/cjs/Notifications/NotificationProvider/NotificationContext.cjs.js.map +1 -1
  61. package/dist/cjs/Pagination/Pagination.cjs.js +1 -1
  62. package/dist/cjs/Pagination/Pagination.cjs.js.map +1 -1
  63. package/dist/cjs/Popover/Popover.cjs.js +1 -1
  64. package/dist/cjs/Popover/Popover.cjs.js.map +1 -1
  65. package/dist/cjs/Tag/RemoveButton.module.cjs.js +1 -1
  66. package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js +1 -1
  67. package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
  68. package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js +2 -0
  69. package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js.map +1 -0
  70. package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.cjs.js +2 -0
  71. package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.cjs.js.map +1 -0
  72. package/dist/cjs/src/components/DataGrid/DataGrid.d.ts +6 -0
  73. package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.d.ts +5 -0
  74. package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.d.ts +6 -0
  75. package/dist/cjs/src/components/DataGrid/DataGridBody/{DataGridRow.d.ts → DataGridRow/DataGridRow.d.ts} +8 -1
  76. package/dist/cjs/src/components/DataGrid/DataGridFilters/DataGridFilter.d.ts +15 -0
  77. package/dist/cjs/src/components/DataGrid/DataGridFilters/DataGridFilterPopover.d.ts +22 -0
  78. package/dist/cjs/src/components/DataGrid/DataGridFilters/DataGridFilterService.d.ts +15 -0
  79. package/dist/cjs/src/components/DataGrid/DataGridFilters/DataGridFilterTag.d.ts +12 -0
  80. package/dist/cjs/src/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.d.ts +57 -0
  81. package/dist/cjs/src/components/DataGrid/DataGridFilters/DataGridToolbar.d.ts +13 -0
  82. package/dist/cjs/src/components/DataGrid/DataGridHeader/DataGridHeader.d.ts +1 -0
  83. package/dist/cjs/src/components/DataGrid/testUtils.d.ts +13 -0
  84. package/dist/cjs/src/components/Form/FileUpload/FileUpload.d.ts +2 -1
  85. package/dist/cjs/src/components/Form/Select/MultiSelect/MultiSelect.test.d.ts +2 -3
  86. package/dist/cjs/src/components/Form/Select/MultiSelect/useSearch.d.ts +2 -12
  87. package/dist/cjs/src/components/Form/Select/Select.interfaces.d.ts +1 -11
  88. package/dist/cjs/src/components/Form/Select/SingleSelect/Select.test.d.ts +2 -3
  89. package/dist/cjs/src/components/Form/Select/SingleSelect/useSearch.d.ts +2 -12
  90. package/dist/cjs/src/components/Form/Select/useSelectPositionList.d.ts +2 -2
  91. package/dist/cjs/src/components/Icon/Icon.d.ts +2 -1
  92. package/dist/cjs/src/components/_BaseStyling_/BaseStyling.d.ts +0 -26
  93. package/dist/cjs/src/hooks/useFullHeightCollapse.cjs.js +2 -0
  94. package/dist/cjs/src/hooks/useFullHeightCollapse.cjs.js.map +1 -0
  95. package/dist/cjs/src/hooks/useFullHeightCollapse.d.ts +4 -0
  96. package/dist/cjs/src/hooks/usePosition.cjs.js +1 -1
  97. package/dist/cjs/src/hooks/usePosition.cjs.js.map +1 -1
  98. package/dist/cjs/src/index.cjs.js +1 -1
  99. package/dist/cjs/src/index.d.ts +10 -21
  100. package/dist/esm/DataGrid/DataGrid.esm.js +1 -1
  101. package/dist/esm/DataGrid/DataGrid.esm.js.map +1 -1
  102. package/dist/esm/DataGrid/DataGridBody/DataGridBody.esm.js +1 -1
  103. package/dist/esm/DataGrid/DataGridBody/DataGridBody.esm.js.map +1 -1
  104. package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.esm.js +2 -0
  105. package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.esm.js.map +1 -0
  106. package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.esm.js +2 -0
  107. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.esm.js +2 -0
  108. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.esm.js.map +1 -0
  109. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.esm.js +2 -0
  110. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.esm.js.map +1 -0
  111. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.esm.js +2 -0
  112. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.esm.js.map +1 -0
  113. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.esm.js +2 -0
  114. package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.esm.js.map +1 -0
  115. package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.esm.js +2 -0
  116. package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.esm.js.map +1 -0
  117. package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.esm.js +2 -0
  118. package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.esm.js +2 -0
  119. package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.esm.js.map +1 -0
  120. package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.module.esm.js +2 -0
  121. package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.module.esm.js.map +1 -0
  122. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterPopover.esm.js +2 -0
  123. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterPopover.esm.js.map +1 -0
  124. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterService.esm.js +2 -0
  125. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterService.esm.js.map +1 -0
  126. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterTag.esm.js +2 -0
  127. package/dist/esm/DataGrid/DataGridFilters/DataGridFilterTag.esm.js.map +1 -0
  128. package/dist/esm/DataGrid/DataGridFilters/DataGridFilters.interfaces.esm.js +2 -0
  129. package/dist/esm/DataGrid/DataGridFilters/DataGridFilters.interfaces.esm.js.map +1 -0
  130. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.esm.js +2 -0
  131. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.esm.js.map +1 -0
  132. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.module.esm.js +2 -0
  133. package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.module.esm.js.map +1 -0
  134. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.esm.js +1 -1
  135. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.esm.js.map +1 -1
  136. package/dist/esm/Form/FileUpload/FileItem/FileItem.esm.js +1 -1
  137. package/dist/esm/Form/FileUpload/FileItem/FileItem.esm.js.map +1 -1
  138. package/dist/esm/Form/FileUpload/FileUpload.esm.js +1 -1
  139. package/dist/esm/Form/FileUpload/FileUpload.esm.js.map +1 -1
  140. package/dist/esm/Form/FileUpload/FileUpload.module.esm.js +1 -1
  141. package/dist/esm/Form/Select/MultiSelect/MultiOption.esm.js +1 -1
  142. package/dist/esm/Form/Select/MultiSelect/MultiOption.esm.js.map +1 -1
  143. package/dist/esm/Form/Select/MultiSelect/MultiSelect.esm.js +1 -1
  144. package/dist/esm/Form/Select/MultiSelect/MultiSelect.esm.js.map +1 -1
  145. package/dist/esm/Form/Select/MultiSelect/useSearch.esm.js +1 -1
  146. package/dist/esm/Form/Select/MultiSelect/useSearch.esm.js.map +1 -1
  147. package/dist/esm/Form/Select/SingleSelect/Select.esm.js +1 -1
  148. package/dist/esm/Form/Select/SingleSelect/Select.esm.js.map +1 -1
  149. package/dist/esm/Form/Select/SingleSelect/useSearch.esm.js +1 -1
  150. package/dist/esm/Form/Select/SingleSelect/useSearch.esm.js.map +1 -1
  151. package/dist/esm/Icon/Icon.esm.js +1 -1
  152. package/dist/esm/Icon/Icon.esm.js.map +1 -1
  153. package/dist/esm/Icon/Icon.module.esm.js +1 -1
  154. package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.esm.js +1 -1
  155. package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.esm.js.map +1 -1
  156. package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.module.esm.js +1 -1
  157. package/dist/esm/Notifications/NotificationProvider/NotificationContext.esm.js +1 -1
  158. package/dist/esm/Notifications/NotificationProvider/NotificationContext.esm.js.map +1 -1
  159. package/dist/esm/Pagination/Pagination.esm.js +1 -1
  160. package/dist/esm/Pagination/Pagination.esm.js.map +1 -1
  161. package/dist/esm/Popover/Popover.esm.js +1 -1
  162. package/dist/esm/Popover/Popover.esm.js.map +1 -1
  163. package/dist/esm/Tag/RemoveButton.module.esm.js +1 -1
  164. package/dist/esm/_BaseStyling_/BaseStyling.esm.js +1 -1
  165. package/dist/esm/_BaseStyling_/BaseStyling.esm.js.map +1 -1
  166. package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.esm.js +2 -0
  167. package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.esm.js.map +1 -0
  168. package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.esm.js +2 -0
  169. package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.esm.js.map +1 -0
  170. package/dist/esm/src/components/DataGrid/DataGrid.d.ts +6 -0
  171. package/dist/esm/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.d.ts +5 -0
  172. package/dist/esm/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.d.ts +6 -0
  173. package/dist/esm/src/components/DataGrid/DataGridBody/{DataGridRow.d.ts → DataGridRow/DataGridRow.d.ts} +8 -1
  174. package/dist/esm/src/components/DataGrid/DataGridFilters/DataGridFilter.d.ts +15 -0
  175. package/dist/esm/src/components/DataGrid/DataGridFilters/DataGridFilterPopover.d.ts +22 -0
  176. package/dist/esm/src/components/DataGrid/DataGridFilters/DataGridFilterService.d.ts +15 -0
  177. package/dist/esm/src/components/DataGrid/DataGridFilters/DataGridFilterTag.d.ts +12 -0
  178. package/dist/esm/src/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.d.ts +57 -0
  179. package/dist/esm/src/components/DataGrid/DataGridFilters/DataGridToolbar.d.ts +13 -0
  180. package/dist/esm/src/components/DataGrid/DataGridHeader/DataGridHeader.d.ts +1 -0
  181. package/dist/esm/src/components/DataGrid/testUtils.d.ts +13 -0
  182. package/dist/esm/src/components/Form/FileUpload/FileUpload.d.ts +2 -1
  183. package/dist/esm/src/components/Form/Select/MultiSelect/MultiSelect.test.d.ts +2 -3
  184. package/dist/esm/src/components/Form/Select/MultiSelect/useSearch.d.ts +2 -12
  185. package/dist/esm/src/components/Form/Select/Select.interfaces.d.ts +1 -11
  186. package/dist/esm/src/components/Form/Select/SingleSelect/Select.test.d.ts +2 -3
  187. package/dist/esm/src/components/Form/Select/SingleSelect/useSearch.d.ts +2 -12
  188. package/dist/esm/src/components/Form/Select/useSelectPositionList.d.ts +2 -2
  189. package/dist/esm/src/components/Icon/Icon.d.ts +2 -1
  190. package/dist/esm/src/components/_BaseStyling_/BaseStyling.d.ts +0 -26
  191. package/dist/esm/src/hooks/useFullHeightCollapse.d.ts +4 -0
  192. package/dist/esm/src/hooks/useFullHeightCollapse.esm.js +2 -0
  193. package/dist/esm/src/hooks/useFullHeightCollapse.esm.js.map +1 -0
  194. package/dist/esm/src/hooks/usePosition.esm.js +1 -1
  195. package/dist/esm/src/hooks/usePosition.esm.js.map +1 -1
  196. package/dist/esm/src/index.d.ts +10 -21
  197. package/dist/esm/src/index.esm.js +1 -1
  198. package/package.json +50 -49
  199. package/src/components/DataGrid/DataGrid.tsx +24 -10
  200. package/src/components/DataGrid/DataGridBody/DataGridBody.tsx +2 -2
  201. package/src/components/DataGrid/DataGridBody/{DataGridCell.module.scss → DataGridCell/DataGridCell.module.scss} +2 -2
  202. package/src/components/DataGrid/DataGridBody/{DataGridCell.tsx → DataGridCell/DataGridCell.tsx} +1 -1
  203. package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss +60 -0
  204. package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.tsx +39 -0
  205. package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss +21 -0
  206. package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.tsx +47 -0
  207. package/src/components/DataGrid/DataGridBody/{DataGridRow.module.scss → DataGridRow/DataGridRow.module.scss} +17 -1
  208. package/src/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.tsx +122 -0
  209. package/src/components/DataGrid/DataGridBody/__snapshots__/DataGridBody.test.tsx.snap +4 -4
  210. package/src/components/DataGrid/DataGridFilters/DataGridFilter.module.scss +105 -0
  211. package/src/components/DataGrid/DataGridFilters/DataGridFilter.tsx +150 -0
  212. package/src/components/DataGrid/DataGridFilters/DataGridFilterPopover.tsx +181 -0
  213. package/src/components/DataGrid/DataGridFilters/DataGridFilterService.ts +97 -0
  214. package/src/components/DataGrid/DataGridFilters/DataGridFilterTag.tsx +91 -0
  215. package/src/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.ts +84 -0
  216. package/src/components/{Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.scss → DataGrid/DataGridFilters/DataGridToolbar.module.scss} +27 -34
  217. package/src/components/DataGrid/DataGridFilters/DataGridToolbar.tsx +126 -0
  218. package/src/components/DataGrid/DataGridHeader/DataGridHeader.tsx +6 -1
  219. package/src/components/DataGrid/testUtils.ts +77 -0
  220. package/src/components/Form/FileUpload/FileItem/FileItem.tsx +5 -8
  221. package/src/components/Form/FileUpload/FileUpload.module.scss +9 -4
  222. package/src/components/Form/FileUpload/FileUpload.tsx +34 -15
  223. package/src/components/Form/Select/MultiSelect/MultiOption.tsx +4 -2
  224. package/src/components/Form/Select/MultiSelect/MultiSelect.tsx +1 -5
  225. package/src/components/Form/Select/MultiSelect/useSearch.tsx +6 -16
  226. package/src/components/Form/Select/Select.interfaces.ts +1 -9
  227. package/src/components/Form/Select/SingleSelect/Select.tsx +1 -5
  228. package/src/components/Form/Select/SingleSelect/useSearch.tsx +6 -18
  229. package/src/components/Icon/Icon.module.scss +5 -0
  230. package/src/components/Icon/Icon.tsx +2 -1
  231. package/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss +12 -15
  232. package/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.tsx +3 -5
  233. package/src/components/Notifications/NotificationProvider/NotificationContext.tsx +12 -16
  234. package/src/components/Pagination/Pagination.tsx +15 -6
  235. package/src/components/Popover/Popover.tsx +1 -1
  236. package/src/components/Tag/RemoveButton.module.scss +1 -0
  237. package/src/components/_BaseStyling_/BaseStyling.tsx +0 -36
  238. package/src/font/icomoon.eot +0 -0
  239. package/src/font/icomoon.svg +1 -0
  240. package/src/font/icomoon.ttf +0 -0
  241. package/src/font/icomoon.woff +0 -0
  242. package/src/font/selection.json +1 -1
  243. package/src/{components/Notifications/Snackbar/useSnackbar.ts → hooks/useFullHeightCollapse.ts} +12 -11
  244. package/src/hooks/usePosition.ts +3 -4
  245. package/src/index.ts +11 -25
  246. package/dist/cjs/DataGrid/DataGridBody/DataGridCell.cjs.js +0 -2
  247. package/dist/cjs/DataGrid/DataGridBody/DataGridCell.cjs.js.map +0 -1
  248. package/dist/cjs/DataGrid/DataGridBody/DataGridCell.module.cjs.js +0 -2
  249. package/dist/cjs/DataGrid/DataGridBody/DataGridRow.cjs.js +0 -2
  250. package/dist/cjs/DataGrid/DataGridBody/DataGridRow.cjs.js.map +0 -1
  251. package/dist/cjs/DataGrid/DataGridBody/DataGridRow.module.cjs.js +0 -2
  252. package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.cjs.js +0 -2
  253. package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.cjs.js.map +0 -1
  254. package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.cjs.js +0 -2
  255. package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.cjs.js.map +0 -1
  256. package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.cjs.js +0 -2
  257. package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.cjs.js.map +0 -1
  258. package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.cjs.js +0 -2
  259. package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.cjs.js.map +0 -1
  260. package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.cjs.js +0 -2
  261. package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.cjs.js.map +0 -1
  262. package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.cjs.js +0 -2
  263. package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.cjs.js.map +0 -1
  264. package/dist/cjs/Notifications/Snackbar/interfaces.cjs.js +0 -2
  265. package/dist/cjs/Notifications/Snackbar/interfaces.cjs.js.map +0 -1
  266. package/dist/cjs/Notifications/Snackbar/useSnackbar.cjs.js +0 -2
  267. package/dist/cjs/Notifications/Snackbar/useSnackbar.cjs.js.map +0 -1
  268. package/dist/cjs/StatusIndicator/StatusIndicator.cjs.js +0 -2
  269. package/dist/cjs/StatusIndicator/StatusIndicator.cjs.js.map +0 -1
  270. package/dist/cjs/StatusIndicator/StatusIndicator.module.cjs.js +0 -2
  271. package/dist/cjs/StatusIndicator/StatusIndicator.module.cjs.js.map +0 -1
  272. package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.cjs.js +0 -2
  273. package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.cjs.js.map +0 -1
  274. package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.module.cjs.js +0 -2
  275. package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.module.cjs.js.map +0 -1
  276. package/dist/cjs/Wizard/Wizard.cjs.js +0 -2
  277. package/dist/cjs/Wizard/Wizard.cjs.js.map +0 -1
  278. package/dist/cjs/Wizard/WizardActions/WizardActions.cjs.js +0 -2
  279. package/dist/cjs/Wizard/WizardActions/WizardActions.cjs.js.map +0 -1
  280. package/dist/cjs/Wizard/WizardStateProvider.cjs.js +0 -2
  281. package/dist/cjs/Wizard/WizardStateProvider.cjs.js.map +0 -1
  282. package/dist/cjs/Wizard/WizardSteps/WizardSteps.cjs.js +0 -2
  283. package/dist/cjs/Wizard/WizardSteps/WizardSteps.cjs.js.map +0 -1
  284. package/dist/cjs/Wizard/wizardStateReducer.cjs.js +0 -2
  285. package/dist/cjs/Wizard/wizardStateReducer.cjs.js.map +0 -1
  286. package/dist/cjs/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.d.ts +0 -21
  287. package/dist/cjs/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.d.ts +0 -20
  288. package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +0 -39
  289. package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.d.ts +0 -27
  290. package/dist/cjs/src/components/Notifications/Snackbar/interfaces.d.ts +0 -36
  291. package/dist/cjs/src/components/Notifications/Snackbar/useSnackbar.d.ts +0 -9
  292. package/dist/cjs/src/components/StatusIndicator/StatusIndicator.d.ts +0 -9
  293. package/dist/cjs/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.d.ts +0 -12
  294. package/dist/cjs/src/components/Wizard/Wizard.d.ts +0 -11
  295. package/dist/cjs/src/components/Wizard/WizardActions/WizardActions.d.ts +0 -25
  296. package/dist/cjs/src/components/Wizard/WizardStateProvider.d.ts +0 -15
  297. package/dist/cjs/src/components/Wizard/WizardSteps/WizardSteps.d.ts +0 -8
  298. package/dist/cjs/src/components/Wizard/WizardSteps/WizardSteps.test.d.ts +0 -1
  299. package/dist/cjs/src/components/Wizard/wizardStateReducer.d.ts +0 -24
  300. package/dist/esm/DataGrid/DataGridBody/DataGridCell.esm.js +0 -2
  301. package/dist/esm/DataGrid/DataGridBody/DataGridCell.esm.js.map +0 -1
  302. package/dist/esm/DataGrid/DataGridBody/DataGridCell.module.esm.js +0 -2
  303. package/dist/esm/DataGrid/DataGridBody/DataGridRow.esm.js +0 -2
  304. package/dist/esm/DataGrid/DataGridBody/DataGridRow.esm.js.map +0 -1
  305. package/dist/esm/DataGrid/DataGridBody/DataGridRow.module.esm.js +0 -2
  306. package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.esm.js +0 -2
  307. package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.esm.js.map +0 -1
  308. package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.esm.js +0 -2
  309. package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.esm.js.map +0 -1
  310. package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.esm.js +0 -2
  311. package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.esm.js.map +0 -1
  312. package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.esm.js +0 -2
  313. package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.esm.js.map +0 -1
  314. package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.esm.js +0 -2
  315. package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.esm.js.map +0 -1
  316. package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.esm.js +0 -2
  317. package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.esm.js.map +0 -1
  318. package/dist/esm/Notifications/Snackbar/interfaces.esm.js +0 -2
  319. package/dist/esm/Notifications/Snackbar/interfaces.esm.js.map +0 -1
  320. package/dist/esm/Notifications/Snackbar/useSnackbar.esm.js +0 -2
  321. package/dist/esm/Notifications/Snackbar/useSnackbar.esm.js.map +0 -1
  322. package/dist/esm/StatusIndicator/StatusIndicator.esm.js +0 -2
  323. package/dist/esm/StatusIndicator/StatusIndicator.esm.js.map +0 -1
  324. package/dist/esm/StatusIndicator/StatusIndicator.module.esm.js +0 -2
  325. package/dist/esm/StatusIndicator/StatusIndicator.module.esm.js.map +0 -1
  326. package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.esm.js +0 -2
  327. package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.esm.js.map +0 -1
  328. package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.module.esm.js +0 -2
  329. package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.module.esm.js.map +0 -1
  330. package/dist/esm/Wizard/Wizard.esm.js +0 -2
  331. package/dist/esm/Wizard/Wizard.esm.js.map +0 -1
  332. package/dist/esm/Wizard/WizardActions/WizardActions.esm.js +0 -2
  333. package/dist/esm/Wizard/WizardActions/WizardActions.esm.js.map +0 -1
  334. package/dist/esm/Wizard/WizardStateProvider.esm.js +0 -2
  335. package/dist/esm/Wizard/WizardStateProvider.esm.js.map +0 -1
  336. package/dist/esm/Wizard/WizardSteps/WizardSteps.esm.js +0 -2
  337. package/dist/esm/Wizard/WizardSteps/WizardSteps.esm.js.map +0 -1
  338. package/dist/esm/Wizard/wizardStateReducer.esm.js +0 -2
  339. package/dist/esm/Wizard/wizardStateReducer.esm.js.map +0 -1
  340. package/dist/esm/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.d.ts +0 -21
  341. package/dist/esm/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.test.d.ts +0 -1
  342. package/dist/esm/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.d.ts +0 -20
  343. package/dist/esm/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.test.d.ts +0 -1
  344. package/dist/esm/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +0 -39
  345. package/dist/esm/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.test.d.ts +0 -1
  346. package/dist/esm/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.d.ts +0 -27
  347. package/dist/esm/src/components/Notifications/Snackbar/interfaces.d.ts +0 -36
  348. package/dist/esm/src/components/Notifications/Snackbar/useSnackbar.d.ts +0 -9
  349. package/dist/esm/src/components/Notifications/Snackbar/useSnackbar.test.d.ts +0 -1
  350. package/dist/esm/src/components/StatusIndicator/StatusIndicator.d.ts +0 -9
  351. package/dist/esm/src/components/StatusIndicator/StatusIndicator.test.d.ts +0 -1
  352. package/dist/esm/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.d.ts +0 -12
  353. package/dist/esm/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.test.d.ts +0 -1
  354. package/dist/esm/src/components/Wizard/Wizard.d.ts +0 -11
  355. package/dist/esm/src/components/Wizard/Wizard.test.d.ts +0 -1
  356. package/dist/esm/src/components/Wizard/WizardActions/WizardActions.d.ts +0 -25
  357. package/dist/esm/src/components/Wizard/WizardActions/WizardActions.test.d.ts +0 -1
  358. package/dist/esm/src/components/Wizard/WizardStateProvider.d.ts +0 -15
  359. package/dist/esm/src/components/Wizard/WizardSteps/WizardSteps.d.ts +0 -8
  360. package/dist/esm/src/components/Wizard/WizardSteps/WizardSteps.test.d.ts +0 -1
  361. package/dist/esm/src/components/Wizard/wizardStateReducer.d.ts +0 -24
  362. package/src/components/DataGrid/DataGridBody/DataGridRow.tsx +0 -58
  363. package/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.tsx +0 -92
  364. package/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.scss +0 -156
  365. package/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.tsx +0 -161
  366. package/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.tsx +0 -219
  367. package/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.tsx +0 -57
  368. package/src/components/Notifications/Snackbar/interfaces.ts +0 -62
  369. package/src/components/StatusIndicator/StatusIndicator.module.scss +0 -43
  370. package/src/components/StatusIndicator/StatusIndicator.tsx +0 -44
  371. package/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.module.scss +0 -214
  372. package/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.tsx +0 -93
  373. package/src/components/Wizard/Wizard.tsx +0 -67
  374. package/src/components/Wizard/WizardActions/WizardActions.tsx +0 -116
  375. package/src/components/Wizard/WizardStateProvider.tsx +0 -45
  376. package/src/components/Wizard/WizardSteps/WizardSteps.tsx +0 -54
  377. package/src/components/Wizard/wizardStateReducer.ts +0 -61
  378. /package/dist/cjs/DataGrid/DataGridBody/{DataGridCell.module.cjs.js.map → DataGridCell/DataGridCell.module.cjs.js.map} +0 -0
  379. /package/dist/cjs/DataGrid/DataGridBody/{DataGridRow.module.cjs.js.map → DataGridRow/DataGridRow.module.cjs.js.map} +0 -0
  380. /package/dist/cjs/src/components/DataGrid/DataGridBody/{DataGridCell.d.ts → DataGridCell/DataGridCell.d.ts} +0 -0
  381. /package/dist/cjs/src/components/DataGrid/DataGridBody/{DataGridCell.test.d.ts → DataGridCell/DataGridCell.test.d.ts} +0 -0
  382. /package/dist/cjs/src/components/DataGrid/DataGridBody/{DataGridRow.test.d.ts → DataGridDrawer/DataGridDrawerItem.test.d.ts} +0 -0
  383. /package/dist/{esm/src/components/DataGrid/DataGridBody → cjs/src/components/DataGrid/DataGridBody/DataGridRow}/DataGridRow.test.d.ts +0 -0
  384. /package/dist/cjs/src/components/{Notifications/Snackbar/SnackbarContainer/SnackbarContainer.test.d.ts → DataGrid/DataGridFilters/DataGridFilterTag.test.d.ts} +0 -0
  385. /package/dist/cjs/src/components/{Notifications/Snackbar/SnackbarItem/SnackbarItem.test.d.ts → DataGrid/DataGridFilters/DataGridToolbar.test.d.ts} +0 -0
  386. /package/dist/cjs/src/{components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.test.d.ts → hooks/useFullHeightCollapse.test.d.ts} +0 -0
  387. /package/dist/esm/DataGrid/DataGridBody/{DataGridCell.module.esm.js.map → DataGridCell/DataGridCell.module.esm.js.map} +0 -0
  388. /package/dist/esm/DataGrid/DataGridBody/{DataGridRow.module.esm.js.map → DataGridRow/DataGridRow.module.esm.js.map} +0 -0
  389. /package/dist/esm/src/components/DataGrid/DataGridBody/{DataGridCell.d.ts → DataGridCell/DataGridCell.d.ts} +0 -0
  390. /package/dist/esm/src/components/DataGrid/DataGridBody/{DataGridCell.test.d.ts → DataGridCell/DataGridCell.test.d.ts} +0 -0
  391. /package/dist/{cjs/src/components/Notifications/Snackbar/useSnackbar.test.d.ts → esm/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.test.d.ts} +0 -0
  392. /package/dist/{cjs/src/components/StatusIndicator/StatusIndicator.test.d.ts → esm/src/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.test.d.ts} +0 -0
  393. /package/dist/{cjs/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.test.d.ts → esm/src/components/DataGrid/DataGridFilters/DataGridFilterTag.test.d.ts} +0 -0
  394. /package/dist/{cjs/src/components/Wizard/Wizard.test.d.ts → esm/src/components/DataGrid/DataGridFilters/DataGridToolbar.test.d.ts} +0 -0
  395. /package/dist/{cjs/src/components/Wizard/WizardActions/WizardActions.test.d.ts → esm/src/hooks/useFullHeightCollapse.test.d.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"wizardStateReducer.esm.js","sources":["../../../../../src/components/Wizard/wizardStateReducer.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Reducer } from \"react\";\nimport { Step } from \"./BaseWizardSteps/BaseWizardSteps\";\nimport { WizardMode } from \"./Wizard\";\n\ntype WizardStateType = {\n steps: Step[];\n currentStepNo: number;\n mode: WizardMode;\n};\n\ninterface SetWizardStateAction {\n type: \"SET_STATE\";\n payload: {\n steps: Step[];\n mode: WizardMode;\n };\n}\n\ninterface ChangeCurrentStepNoAction {\n type: \"CHANGE_CURRENT_STEP_NO\";\n payload: number;\n}\n\nconst setWizardState = (steps: Step[], mode: WizardMode): SetWizardStateAction => {\n return { type: \"SET_STATE\", payload: { steps, mode } };\n};\n\nconst changeCurrentStepNo = (currentStepNo: number): ChangeCurrentStepNoAction => {\n return { type: \"CHANGE_CURRENT_STEP_NO\", payload: currentStepNo };\n};\n\ntype WizardActions = SetWizardStateAction | ChangeCurrentStepNoAction;\n\nconst reducer: Reducer<WizardStateType, WizardActions> = (state, action) => {\n switch (action.type) {\n case \"SET_STATE\":\n return { ...state, ...action.payload };\n case \"CHANGE_CURRENT_STEP_NO\":\n return { ...state, currentStepNo: action.payload };\n default:\n return state;\n }\n};\n\nexport { setWizardState, changeCurrentStepNo, reducer, WizardActions, WizardStateType };\n"],"names":["setWizardState","steps","mode","type","payload","changeCurrentStepNo","currentStepNo","reducer","state","action"],"mappings":"AAuCA,MAAMA,EAAiB,CAACC,EAAeC,KAC9B,CAAEC,KAAM,YAAaC,QAAS,CAAEH,QAAOC,UAGhD,MAAMG,EAAuBC,IACpB,CAAEH,KAAM,yBAA0BC,QAASE,IAKpD,MAAMC,EAAmD,CAACC,EAAOC,KAC/D,OAAQA,EAAON,MACb,IAAK,YACH,MAAO,IAAKK,KAAUC,EAAOL,SAC/B,IAAK,yBACH,MAAO,IAAKI,EAAOF,cAAeG,EAAOL,SAC3C,QACE,OAAOI,EACV"}
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- /**
3
- * @deprecated
4
- */
5
- export interface Placement {
6
- vertical: "top" | "bottom";
7
- horizontal: "start" | "center" | "end";
8
- }
9
- /**
10
- * @deprecated
11
- */
12
- export interface Props {
13
- placement: Placement;
14
- children?: React.ReactNode;
15
- zIndex?: number;
16
- className?: string;
17
- }
18
- /**
19
- * @deprecated
20
- */
21
- export declare const SnackbarContainer: ({ placement, children, zIndex, className, ...rest }: Props) => React.JSX.Element;
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- import { Variant, Actions } from "../interfaces";
3
- /**
4
- * @deprecated
5
- */
6
- export interface Props {
7
- id: string;
8
- title?: string;
9
- duration: number;
10
- variant: Variant;
11
- className?: string;
12
- onClose: (key: string) => void;
13
- closeButtonTitle: string;
14
- content?: string;
15
- actions?: Actions;
16
- }
17
- /**
18
- * @deprecated
19
- */
20
- export declare const SnackbarItem: ({ id, title, duration, variant, content, className, actions, onClose, closeButtonTitle }: Props) => React.JSX.Element;
@@ -1,39 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- import { Actions, Variant } from "../interfaces";
3
- import { Placement } from "../SnackbarContainer/SnackbarContainer";
4
- /** Short msg is when only title is provided. Long one when content or/and actions are provided (or type is error). */
5
- interface Duration {
6
- long: number;
7
- short: number;
8
- }
9
- /**
10
- * @deprecated
11
- */
12
- export interface Props {
13
- closeButtonTitle: string;
14
- children?: ReactNode;
15
- placement?: Placement;
16
- stackSize?: number;
17
- domRoot?: HTMLElement;
18
- autoHideDuration?: Duration;
19
- className?: string;
20
- }
21
- /**
22
- * @deprecated
23
- */
24
- export interface Item {
25
- id: string;
26
- title?: string;
27
- duration: number;
28
- className?: string;
29
- height: number;
30
- variant: Variant;
31
- content?: string;
32
- actions?: Actions;
33
- onClose?: () => void;
34
- }
35
- /**
36
- * @deprecated
37
- */
38
- export declare const SnackbarProvider: ({ closeButtonTitle, placement, autoHideDuration, stackSize, domRoot, children, className }?: Props) => React.JSX.Element;
39
- export {};
@@ -1,27 +0,0 @@
1
- import React from "react";
2
- import { DeprecatedEnqueueSnackbarType } from "../interfaces";
3
- import { Item } from "./SnackbarProvider";
4
- /**
5
- * @deprecated
6
- */
7
- interface SnackbarContextProps {
8
- enqueueSnackbar: DeprecatedEnqueueSnackbarType;
9
- enqueueSuccessSnackbar: DeprecatedEnqueueSnackbarType;
10
- enqueueWarningSnackbar: DeprecatedEnqueueSnackbarType;
11
- enqueueErrorSnackbar: DeprecatedEnqueueSnackbarType;
12
- setSnackbarHeight: (id: string, height: number) => void;
13
- snackbars: Item[];
14
- }
15
- /**
16
- * @deprecated
17
- */
18
- declare const SnackbarContext: React.Context<SnackbarContextProps>;
19
- interface Props {
20
- initialState: SnackbarContextProps;
21
- children?: React.ReactNode;
22
- }
23
- /**
24
- * @deprecated
25
- */
26
- declare const SnackbarContextProvider: ({ children, initialState }: Props) => React.JSX.Element;
27
- export { SnackbarContextProvider, SnackbarContext, SnackbarContextProps };
@@ -1,36 +0,0 @@
1
- import { ButtonHTMLAttributes } from "react";
2
- /**
3
- * @deprecated
4
- */
5
- export type Variant = "info" | "success" | "error" | "warning";
6
- /**
7
- * @deprecated
8
- */
9
- export type Actions = (ButtonHTMLAttributes<HTMLButtonElement> & {
10
- label: string;
11
- })[];
12
- /**
13
- * @deprecated
14
- */
15
- export interface SnackbarOptionsProps {
16
- actions?: Actions;
17
- className?: string;
18
- variant?: Variant;
19
- duration?: number;
20
- onClose?: () => void;
21
- }
22
- /**
23
- * @deprecated
24
- */
25
- export interface EnqueueSnackbarProps extends SnackbarOptionsProps {
26
- title?: string;
27
- content?: string;
28
- }
29
- /**
30
- * @deprecated
31
- */
32
- export type DeprecatedEnqueueSnackbarType = (propsOrTitle: EnqueueSnackbarProps | string | undefined, content?: string, options?: SnackbarOptionsProps) => void;
33
- /**
34
- * @deprecated
35
- */
36
- export declare function isNewEnqueueSnackbarInterface(args: unknown): args is EnqueueSnackbarProps;
@@ -1,9 +0,0 @@
1
- /**
2
- * @deprecated
3
- */
4
- export declare const useSnackbar: () => {
5
- enqueueWarningSnackbar: import("./interfaces").DeprecatedEnqueueSnackbarType;
6
- enqueueErrorSnackbar: import("./interfaces").DeprecatedEnqueueSnackbarType;
7
- enqueueSuccessSnackbar: import("./interfaces").DeprecatedEnqueueSnackbarType;
8
- enqueueSnackbar: import("./interfaces").DeprecatedEnqueueSnackbarType;
9
- };
@@ -1,9 +0,0 @@
1
- import React, { ComponentPropsWithRef, ReactNode } from "react";
2
- import { Props as TypographyProps } from "../Typography/Typography";
3
- export interface Props extends ComponentPropsWithRef<"div"> {
4
- children?: ReactNode;
5
- status: "active" | "error" | "neutral" | "warning";
6
- badgeProps?: ComponentPropsWithRef<"div">;
7
- typographyProps?: TypographyProps;
8
- }
9
- export declare const StatusIndicator: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,12 +0,0 @@
1
- import React, { ComponentPropsWithRef } from "react";
2
- export interface Step {
3
- label: string;
4
- disabled?: boolean;
5
- }
6
- export interface Props extends Omit<ComponentPropsWithRef<"div">, "onClick"> {
7
- steps: Step[];
8
- currentStepNo: number;
9
- onClick?: (stepNo: number) => void;
10
- futureStepsClickable?: boolean;
11
- }
12
- export declare const BaseWizardSteps: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { Step } from "./BaseWizardSteps/BaseWizardSteps";
3
- export type WizardMode = "add" | "edit";
4
- export interface Props {
5
- steps: Step[];
6
- mode: WizardMode;
7
- initialStepNo?: number;
8
- onStepChange: (stepNo: number) => void;
9
- children: React.ReactNode;
10
- }
11
- export declare const Wizard: (props: Props) => React.JSX.Element;
@@ -1 +0,0 @@
1
- export {};
@@ -1,25 +0,0 @@
1
- import React from "react";
2
- import { Props as ButtonProps } from "../../Button/Button";
3
- export interface Props extends React.HTMLProps<HTMLDivElement> {
4
- actions: {
5
- previous: {
6
- label: string;
7
- onClick: () => void;
8
- previousButtonProps?: ButtonProps;
9
- };
10
- next: {
11
- label: string;
12
- onClick: (currentStepNo: number) => boolean;
13
- nextButtonProps?: ButtonProps;
14
- };
15
- saveAndClose: {
16
- label: string;
17
- onClick: (currentStepNo: number) => void;
18
- saveAndCloseButtonProps?: ButtonProps;
19
- };
20
- };
21
- }
22
- /**
23
- * @deprecated
24
- */
25
- export declare const WizardActions: ({ actions }: Props) => React.JSX.Element;
@@ -1,15 +0,0 @@
1
- import React, { Dispatch } from "react";
2
- import { WizardActions, WizardStateType } from "./wizardStateReducer";
3
- declare const WizardStateContext: React.Context<{
4
- state: WizardStateType;
5
- dispatch: Dispatch<WizardActions>;
6
- }>;
7
- export interface Props {
8
- initialState: WizardStateType;
9
- children?: React.ReactNode;
10
- }
11
- /**
12
- * @deprecated
13
- */
14
- declare const WizardStateProvider: ({ children, initialState }: Props) => React.JSX.Element;
15
- export { WizardStateProvider, WizardStateContext };
@@ -1,8 +0,0 @@
1
- import React, { ComponentPropsWithRef } from "react";
2
- export interface Props extends ComponentPropsWithRef<"div"> {
3
- onStepClick: (currentStepNo: number, selectedStepNo: number) => boolean;
4
- }
5
- /**
6
- * @deprecated
7
- */
8
- export declare const WizardSteps: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,24 +0,0 @@
1
- import { Reducer } from "react";
2
- import { Step } from "./BaseWizardSteps/BaseWizardSteps";
3
- import { WizardMode } from "./Wizard";
4
- type WizardStateType = {
5
- steps: Step[];
6
- currentStepNo: number;
7
- mode: WizardMode;
8
- };
9
- interface SetWizardStateAction {
10
- type: "SET_STATE";
11
- payload: {
12
- steps: Step[];
13
- mode: WizardMode;
14
- };
15
- }
16
- interface ChangeCurrentStepNoAction {
17
- type: "CHANGE_CURRENT_STEP_NO";
18
- payload: number;
19
- }
20
- declare const setWizardState: (steps: Step[], mode: WizardMode) => SetWizardStateAction;
21
- declare const changeCurrentStepNo: (currentStepNo: number) => ChangeCurrentStepNoAction;
22
- type WizardActions = SetWizardStateAction | ChangeCurrentStepNoAction;
23
- declare const reducer: Reducer<WizardStateType, WizardActions>;
24
- export { setWizardState, changeCurrentStepNo, reducer, WizardActions, WizardStateType };
@@ -1,58 +0,0 @@
1
- /*
2
- * Copyright 2022 OneWelcome B.V.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import React, { ForwardRefRenderFunction, ComponentPropsWithRef } from "react";
18
- import { HeaderCell } from "../datagrid.interfaces";
19
- import classes from "./DataGridRow.module.scss";
20
-
21
- export interface Props extends ComponentPropsWithRef<"tr"> {
22
- headers?: HeaderCell[];
23
- isLoading?: boolean;
24
- spacing?: React.CSSProperties;
25
- disableContextMenuColumn?: boolean;
26
- }
27
-
28
- const DataGridRowComponent: ForwardRefRenderFunction<HTMLTableRowElement, Props> = (
29
- { children, className, headers, isLoading, spacing, disableContextMenuColumn, ...rest }: Props,
30
- ref
31
- ) => {
32
- const visibleCells = React.Children.map(children as React.ReactElement[], (child, index) => {
33
- if (child) {
34
- const cellWithSpacing = React.cloneElement(child, {
35
- spacing: spacing,
36
- cellIndex: index,
37
- columnLength: headers?.length,
38
- disableContextMenuColumn
39
- });
40
-
41
- const visible = headers && headers.length > index ? !headers[index].hidden : true;
42
- return visible && cellWithSpacing;
43
- }
44
- return null;
45
- });
46
-
47
- const classNames = [classes["row"]];
48
- className && classNames.push(className);
49
- isLoading && classNames.push(classes["loading"]);
50
-
51
- return (
52
- <tr {...rest} ref={ref} className={classNames.join(" ")}>
53
- {visibleCells}
54
- </tr>
55
- );
56
- };
57
-
58
- export const DataGridRow = React.forwardRef(DataGridRowComponent);
@@ -1,92 +0,0 @@
1
- /*
2
- * Copyright 2022 OneWelcome B.V.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import React, { useContext, useEffect, useState } from "react";
18
- import classes from "./SnackbarContainer.module.scss";
19
- import { SnackbarContext } from "../SnackbarProvider/SnackbarStateProvider";
20
-
21
- /**
22
- * @deprecated
23
- */
24
- export interface Placement {
25
- vertical: "top" | "bottom";
26
- horizontal: "start" | "center" | "end";
27
- }
28
-
29
- /**
30
- * @deprecated
31
- */
32
- export interface Props {
33
- placement: Placement;
34
- children?: React.ReactNode;
35
- zIndex?: number;
36
- className?: string;
37
- }
38
-
39
- const useSnackbarContainerHeightAnimation = () => {
40
- const { snackbars } = useContext(SnackbarContext);
41
- const [height, setHeight] = useState(0);
42
- const [justifyContent, setJustifyContent] = useState<"flex-start" | "flex-end">("flex-start");
43
- const spaceBetweenSnackbars = 8;
44
- const exceedsMaximumVisibleSnackbars = snackbars.length >= 3;
45
-
46
- useEffect(() => {
47
- const allHeights = snackbars.map(snackbar => snackbar.height);
48
-
49
- let totalHeight = allHeights.reduce((prev, curr) => prev + curr, 0);
50
-
51
- totalHeight += (Math.min(snackbars.length, 3) - 1) * spaceBetweenSnackbars;
52
-
53
- /**
54
- * Once we reach the maximum amount of snackbars, they will start to disappear. We have to wait with reversing the justify-content until the last snackbar
55
- * has completed their animationIn. This is around 500ms. Then we want to reverse it, because otherwise whenever a snackbar disappears they shift up
56
- * and then down again, which looks really bad.
57
- * */
58
- if (exceedsMaximumVisibleSnackbars)
59
- setTimeout(() => {
60
- setJustifyContent("flex-end");
61
- }, 500);
62
-
63
- if (height > totalHeight && justifyContent !== "flex-end") {
64
- setJustifyContent("flex-end");
65
- } else if (height < totalHeight && justifyContent !== "flex-start") {
66
- setJustifyContent("flex-start");
67
- }
68
-
69
- setHeight(totalHeight);
70
- }, [snackbars]);
71
-
72
- return { height, justifyContent };
73
- };
74
-
75
- /**
76
- * @deprecated
77
- */
78
- export const SnackbarContainer = ({ placement, children, zIndex, className, ...rest }: Props) => {
79
- const { height, justifyContent } = useSnackbarContainerHeightAnimation();
80
-
81
- return (
82
- <div
83
- {...rest}
84
- style={{ zIndex, height, justifyContent }}
85
- className={`${classes["snackbars"]} ${classes[placement.horizontal]} ${
86
- classes[placement.vertical]
87
- } ${className ?? ""}`}
88
- >
89
- {children}
90
- </div>
91
- );
92
- };
@@ -1,156 +0,0 @@
1
- /*!
2
- * Copyright 2022 OneWelcome B.V.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- @use "../../../../mixins.module.scss";
18
-
19
- .snackbar {
20
- padding: 1rem;
21
- border-radius: var(--snackbar-border-radius);
22
- display: flex;
23
- gap: 0.5rem;
24
- align-items: center;
25
- width: 100%;
26
- box-sizing: border-box;
27
- @include mixins.transition(height, 0.2s, ease-in-out);
28
- flex-grow: 0;
29
-
30
- &.info {
31
- background-color: var(--snackbar-info-background-color);
32
- }
33
-
34
- &.success {
35
- background-color: var(--snackbar-success-background-color);
36
- }
37
-
38
- &.error {
39
- background-color: var(--snackbar-error-background-color);
40
- }
41
-
42
- &.warning {
43
- background-color: var(--snackbar-warning-background-color);
44
- }
45
-
46
- & + & {
47
- margin-top: 0.5rem;
48
- }
49
-
50
- #close-btn {
51
- color: var(--snackbar-text-color);
52
- align-self: center;
53
- width: 2.5rem;
54
- height: 2.5rem;
55
- margin: -0.5rem 0;
56
- flex-shrink: 0;
57
- border: 0;
58
-
59
- span {
60
- font-size: 0.875rem;
61
- }
62
-
63
- &:not(:disabled):hover,
64
- &:not(:disabled):focus {
65
- background-color: var(--color-black10);
66
- }
67
-
68
- &:not(:disabled):active {
69
- background-color: var(--color-black20);
70
- }
71
- }
72
-
73
- .icon {
74
- color: var(--snackbar-text-color);
75
- font-size: 1rem;
76
- height: 1.25rem;
77
- display: inline-flex;
78
- align-items: center;
79
- align-self: flex-start;
80
- }
81
-
82
- .title {
83
- color: var(--snackbar-text-color);
84
- flex: 1;
85
- font-size: 0.875rem;
86
- line-height: 1.25rem;
87
- margin-bottom: 0.25rem;
88
- display: block;
89
- }
90
-
91
- .outer-content-wrapper {
92
- display: flex;
93
- gap: 0.5rem;
94
- flex-grow: 1;
95
- }
96
-
97
- .content-wrapper {
98
- flex-grow: 1;
99
- }
100
-
101
- .content {
102
- color: var(--snackbar-text-color);
103
- font-size: 0.875rem;
104
- line-height: 1.25rem;
105
- margin-bottom: 0;
106
- }
107
-
108
- .actions {
109
- text-align: right;
110
- align-self: center;
111
- }
112
-
113
- .action-button {
114
- border-width: var(--button-border-width);
115
- border-style: var(--button-border-style);
116
- border-radius: var(--button-border-radius);
117
- white-space: nowrap;
118
- font-size: 0.875rem;
119
- line-height: var(--button-font-size);
120
- font-weight: 400;
121
- margin: -0.5rem 0;
122
- padding: 0.625rem 1.25rem;
123
- cursor: pointer;
124
- transition:
125
- color,
126
- background-color,
127
- border-color 0.2s ease-in-out;
128
- font-family: var(--font-family);
129
- color: var(--snackbar-text-color);
130
- background-color: transparent;
131
- border-color: transparent;
132
-
133
- &:disabled {
134
- color: var(--greyed-out);
135
- cursor: not-allowed;
136
- }
137
-
138
- @include mixins.focusVisibleOutline();
139
-
140
- &:not(:disabled):hover,
141
- &:not(:disabled):focus {
142
- background-color: var(--color-black10);
143
- }
144
-
145
- &:not(:disabled):active {
146
- background-color: var(--color-black20);
147
- }
148
- }
149
- }
150
-
151
- @media only screen and (min-width: 37.5em) {
152
- .snackbar {
153
- width: min-content;
154
- min-width: 25rem;
155
- }
156
- }