@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,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,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,2 +0,0 @@
1
- import e from"react";import{Typography as a}from"../../Typography/Typography.esm.js";import t from"./DataGridCell.module.esm.js";const l=({children:l,className:i,isLoading:n,spacing:o,cellIndex:d,columnLength:r,disableContextMenuColumn:s,...m},c)=>{let p={};if(d===0)p.paddingLeft=o===null||o===void 0?void 0:o.paddingLeft;if(d===r&&!s||r&&d===r-1&&s)p.paddingRight=o===null||o===void 0?void 0:o.paddingRight;return e.createElement("td",{...m,ref:c,style:{...m.style,...p},className:`${t["cell"]} ${i!==null&&i!==void 0?i:""}`},n&&e.createElement("div",{className:t["loading"],"aria-busy":"true","aria-live":"polite"}),!n&&e.createElement(a,{className:t["text"],variant:"body",tag:"span"},l))};const i=e.forwardRef(l);export{i as DataGridCell};
2
- //# sourceMappingURL=DataGridCell.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataGridCell.esm.js","sources":["../../../../../../src/components/DataGrid/DataGridBody/DataGridCell.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, { ForwardRefRenderFunction, ComponentPropsWithRef, ReactElement } from \"react\";\nimport { Typography } from \"../../Typography/Typography\";\nimport classes from \"./DataGridCell.module.scss\";\n\nexport interface Props extends ComponentPropsWithRef<\"td\"> {\n children?: ReactElement | string | number;\n isLoading?: boolean;\n spacing?: React.CSSProperties;\n cellIndex?: number;\n columnLength?: number;\n disableContextMenuColumn?: boolean;\n}\n\nconst DataGridCellComponent: ForwardRefRenderFunction<HTMLTableCellElement, Props> = (\n {\n children,\n className,\n isLoading,\n spacing,\n cellIndex,\n columnLength,\n disableContextMenuColumn,\n ...rest\n }: Props,\n ref\n) => {\n let cellStyle: React.CSSProperties = {};\n\n if (cellIndex === 0) {\n cellStyle.paddingLeft = spacing?.paddingLeft;\n }\n if (\n (cellIndex === columnLength && !disableContextMenuColumn) ||\n (columnLength && cellIndex === columnLength - 1 && disableContextMenuColumn)\n ) {\n cellStyle.paddingRight = spacing?.paddingRight;\n }\n\n return (\n <td\n {...rest}\n ref={ref}\n style={{ ...rest.style, ...cellStyle }}\n className={`${classes[\"cell\"]} ${className ?? \"\"}`}\n >\n {isLoading && <div className={classes[\"loading\"]} aria-busy=\"true\" aria-live=\"polite\"></div>}\n {!isLoading && (\n <Typography className={classes[\"text\"]} variant=\"body\" tag=\"span\">\n {children}\n </Typography>\n )}\n </td>\n );\n};\n\nexport const DataGridCell = React.forwardRef(DataGridCellComponent);\n"],"names":["DataGridCellComponent","children","className","isLoading","spacing","cellIndex","columnLength","disableContextMenuColumn","rest","ref","cellStyle","paddingLeft","paddingRight","React","createElement","style","classes","Typography","variant","tag","DataGridCell","forwardRef"],"mappings":"iIA6BA,MAAMA,EAA+E,EAEjFC,WACAC,YACAC,YACAC,UACAC,YACAC,eACAC,8BACGC,GAELC,KAEA,IAAIC,EAAiC,CAAA,EAErC,GAAIL,IAAc,EAChBK,EAAUC,YAAcP,IAAO,MAAPA,SAAA,OAAA,EAAAA,EAASO,YAEnC,GACGN,IAAcC,IAAiBC,GAC/BD,GAAgBD,IAAcC,EAAe,GAAKC,EAEnDG,EAAUE,aAAeR,IAAO,MAAPA,SAAA,OAAA,EAAAA,EAASQ,aAGpC,OACEC,EAAAC,cAAA,KAAA,IACMN,EACJC,IAAKA,EACLM,MAAO,IAAKP,EAAKO,SAAUL,GAC3BR,UAAW,GAAGc,EAAQ,WAAWd,UAAAA,SAAS,EAATA,EAAa,MAE7CC,GAAaU,EAAAC,cAAA,MAAA,CAAKZ,UAAWc,EAAQ,WAAsB,YAAA,OAAiB,YAAA,YAC3Eb,GACAU,EAACC,cAAAG,EAAW,CAAAf,UAAWc,EAAQ,QAASE,QAAQ,OAAOC,IAAI,QACxDlB,GAIP,EAGS,MAAAmB,EAAeP,EAAMQ,WAAWrB"}
@@ -1,2 +0,0 @@
1
- import l from "../../../lib/style-inject.js";var i='/*!\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/*!\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/*!\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 */.DataGridCell-module_sr-only__HTz8Y{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DataGridCell-module_hidden__ZIfWN{display:none}.DataGridCell-module_slide-in__3LsNc{animation:DataGridCell-module_slide-in__3LsNc .5s forwards}@media (prefers-reduced-motion:reduce){.DataGridCell-module_slide-in__3LsNc{animation-duration:.1ms}}.DataGridCell-module_slide-out__9KDY3{animation:DataGridCell-module_slide-out__9KDY3 .5s forwards}@media (prefers-reduced-motion:reduce){.DataGridCell-module_slide-out__9KDY3{animation-duration:.1ms}}@keyframes DataGridCell-module_slide-in__3LsNc{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes DataGridCell-module_slide-out__9KDY3{0%{transform:translateY(0)}to{transform:translateY(100vh)}}.DataGridCell-module_cell__-OXjV{min-height:3rem;padding:.25rem 1rem}.DataGridCell-module_cell__-OXjV:first-child{padding-left:1rem}.DataGridCell-module_cell__-OXjV:last-child{padding-right:1rem}.DataGridCell-module_cell__-OXjV .DataGridCell-module_text__uvsdS{font-size:var(--font-size-data-grid);line-height:var(--data-grid-line-height)}.DataGridCell-module_cell__-OXjV .DataGridCell-module_loading__vpaHN{background-color:var(--skeleton-background-color);border-radius:.5rem;height:1.25rem;margin:.625rem 0;overflow:hidden;position:relative}.DataGridCell-module_cell__-OXjV .DataGridCell-module_loading__vpaHN:after{animation:DataGridCell-module_shimmer__G13df 2s infinite;background-image:linear-gradient(90deg,rgba(var(--skeleton-animation-color-rgb),0) 0,rgba(var(--skeleton-animation-color-rgb),.2) 20%,rgba(var(--skeleton-animation-color-rgb),.5) 60%,rgba(var(--skeleton-animation-color-rgb),0));bottom:0;content:"";left:0;position:absolute;right:0;top:0;transform:translateX(-100%)}@media (prefers-reduced-motion:reduce){.DataGridCell-module_cell__-OXjV .DataGridCell-module_loading__vpaHN:after{animation:none}}@keyframes DataGridCell-module_shimmer__G13df{to{transform:translateX(100%)}}@media only screen and (min-width:50em){.DataGridCell-module_cell__-OXjV:first-child{padding-left:1.25rem}.DataGridCell-module_cell__-OXjV:last-child{padding-right:1.25rem}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRhdGFHcmlkQ2VsbC5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRTtBQUNGOzs7Ozs7Ozs7Ozs7OztFQWNFO0FBQ0Y7Ozs7Ozs7Ozs7Ozs7O0VBY0UsQ0FDRixvQ0FPRSxrQkFBc0IsQ0FDdEIsUUFBUyxDQUxULFVBQVcsQ0FFWCxXQUFZLENBQ1osZUFBZ0IsQ0FGaEIsU0FBVSxDQUhWLGlCQUFrQixDQUNsQixTQU9GLENBRUEsbUNBQ0UsWUFDRixDQUVBLHFDQUNFLDBEQUNGLENBQ0EsdUNBQ0UscUNBQ0UsdUJBQ0YsQ0FDRixDQUVBLHNDQUNFLDJEQUNGLENBQ0EsdUNBQ0Usc0NBQ0UsdUJBQ0YsQ0FDRixDQUVBLCtDQUNFLEdBQ0UsMkJBQ0YsQ0FDQSxHQUNFLHVCQUNGLENBQ0YsQ0FDQSxnREFDRSxHQUNFLHVCQUNGLENBQ0EsR0FDRSwyQkFDRixDQUNGLENBQ0EsaUNBQ0UsZUFBZ0IsQ0FDaEIsbUJBQ0YsQ0FDQSw2Q0FDRSxpQkFDRixDQUNBLDRDQUNFLGtCQUNGLENBQ0Esa0VBQ0Usb0NBQXFDLENBQ3JDLHdDQU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WVzIHNoaW1tZXIge1xuICAxMDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoMTAwJSk7XG4gIH1cbn1cblxuQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWluLXdpZHRoOiA1MGVtKSB7XG4gIC5jZWxsOmZpcnN0LWNoaWxkIHtcbiAgICBwYWRkaW5nLWxlZnQ6IDEuMjVyZW07XG4gIH1cbiAgLmNlbGw6bGFzdC1jaGlsZCB7XG4gICAgcGFkZGluZy1yaWdodDogMS4yNXJlbTtcbiAgfVxufSJdfQ== */';var e={"sr-only":"DataGridCell-module_sr-only__HTz8Y",hidden:"DataGridCell-module_hidden__ZIfWN","slide-in":"DataGridCell-module_slide-in__3LsNc","slide-out":"DataGridCell-module_slide-out__9KDY3",cell:"DataGridCell-module_cell__-OXjV",text:"DataGridCell-module_text__uvsdS",loading:"DataGridCell-module_loading__vpaHN",shimmer:"DataGridCell-module_shimmer__G13df"};l(i);export{e as default};
2
- //# sourceMappingURL=DataGridCell.module.esm.js.map
@@ -1,2 +0,0 @@
1
- import e from"react";import n from"./DataGridRow.module.esm.js";const o=({children:o,className:t,headers:r,isLoading:l,spacing:s,disableContextMenuColumn:a,...i},c)=>{const d=e.Children.map(o,((n,o)=>{if(n){const t=e.cloneElement(n,{spacing:s,cellIndex:o,columnLength:r===null||r===void 0?void 0:r.length,disableContextMenuColumn:a});const l=r&&r.length>o?!r[o].hidden:true;return l&&t}return null}));const m=[n["row"]];t&&m.push(t);l&&m.push(n["loading"]);return e.createElement("tr",{...i,ref:c,className:m.join(" ")},d)};const t=e.forwardRef(o);export{t as DataGridRow};
2
- //# sourceMappingURL=DataGridRow.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataGridRow.esm.js","sources":["../../../../../../src/components/DataGrid/DataGridBody/DataGridRow.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, { ForwardRefRenderFunction, ComponentPropsWithRef } from \"react\";\nimport { HeaderCell } from \"../datagrid.interfaces\";\nimport classes from \"./DataGridRow.module.scss\";\n\nexport interface Props extends ComponentPropsWithRef<\"tr\"> {\n headers?: HeaderCell[];\n isLoading?: boolean;\n spacing?: React.CSSProperties;\n disableContextMenuColumn?: boolean;\n}\n\nconst DataGridRowComponent: ForwardRefRenderFunction<HTMLTableRowElement, Props> = (\n { children, className, headers, isLoading, spacing, disableContextMenuColumn, ...rest }: Props,\n ref\n) => {\n const visibleCells = React.Children.map(children as React.ReactElement[], (child, index) => {\n if (child) {\n const cellWithSpacing = React.cloneElement(child, {\n spacing: spacing,\n cellIndex: index,\n columnLength: headers?.length,\n disableContextMenuColumn\n });\n\n const visible = headers && headers.length > index ? !headers[index].hidden : true;\n return visible && cellWithSpacing;\n }\n return null;\n });\n\n const classNames = [classes[\"row\"]];\n className && classNames.push(className);\n isLoading && classNames.push(classes[\"loading\"]);\n\n return (\n <tr {...rest} ref={ref} className={classNames.join(\" \")}>\n {visibleCells}\n </tr>\n );\n};\n\nexport const DataGridRow = React.forwardRef(DataGridRowComponent);\n"],"names":["DataGridRowComponent","children","className","headers","isLoading","spacing","disableContextMenuColumn","rest","ref","visibleCells","React","Children","map","child","index","cellWithSpacing","cloneElement","cellIndex","columnLength","length","visible","hidden","classNames","classes","push","join","DataGridRow","forwardRef"],"mappings":"gEA2BA,MAAMA,EAA6E,EAC/EC,WAAUC,YAAWC,UAASC,YAAWC,UAASC,8BAA6BC,GACjFC,KAEA,MAAMC,EAAeC,EAAMC,SAASC,IAAIX,GAAkC,CAACY,EAAOC,KAChF,GAAID,EAAO,CACT,MAAME,EAAkBL,EAAMM,aAAaH,EAAO,CAChDR,QAASA,EACTY,UAAWH,EACXI,aAAcf,IAAO,MAAPA,SAAA,OAAA,EAAAA,EAASgB,OACvBb,6BAGF,MAAMc,EAAUjB,GAAWA,EAAQgB,OAASL,GAASX,EAAQW,GAAOO,OAAS,KAC7E,OAAOD,GAAWL,CACnB,CACD,OAAO,IAAI,IAGb,MAAMO,EAAa,CAACC,EAAQ,QAC5BrB,GAAaoB,EAAWE,KAAKtB,GAC7BE,GAAakB,EAAWE,KAAKD,EAAQ,YAErC,OACEb,yBAAQH,EAAMC,IAAKA,EAAKN,UAAWoB,EAAWG,KAAK,MAChDhB,EAEH,EAGS,MAAAiB,EAAchB,EAAMiB,WAAW3B"}
@@ -1,2 +0,0 @@
1
- import i from "../../../lib/style-inject.js";var c='/*!\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 */.DataGridRow-module_row__41IVt{background-color:var(--data-grid-row-background-color);position:relative}.DataGridRow-module_row__41IVt:not(.DataGridRow-module_loading__RpedL):hover{background-color:var(--data-grid-row-hover-background-color)}.DataGridRow-module_row__41IVt:not(:last-child):after{border-bottom:1px solid var(--light-grey-border);bottom:0;content:"";left:0;position:absolute;width:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRhdGFHcmlkUm93Lm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztFQWNFLENBQ0YsK0JBRUUsc0RBQXVELENBRHZELG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nJvdyB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tZGF0YS1ncmlkLXJvdy1iYWNrZ3JvdW5kLWNvbG9yKTtcbn1cbi5yb3c6bm90KC5sb2FkaW5nKTpob3ZlciB7XG4gIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWRhdGEtZ3JpZC1yb3ctaG92ZXItYmFja2dyb3VuZC1jb2xvcik7XG59XG4ucm93Om5vdCg6bGFzdC1jaGlsZCk6OmFmdGVyIHtcbiAgY29udGVudDogXCJcIjtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB3aWR0aDogMTAwJTtcbiAgbGVmdDogMDtcbiAgYm90dG9tOiAwO1xuICBib3JkZXItYm90dG9tOiAxcHggc29saWQgdmFyKC0tbGlnaHQtZ3JleS1ib3JkZXIpO1xufSJdfQ== */';var e={row:"DataGridRow-module_row__41IVt",loading:"DataGridRow-module_loading__RpedL"};i(c);export{e as default};
2
- //# sourceMappingURL=DataGridRow.module.esm.js.map
@@ -1,2 +0,0 @@
1
- import t,{useContext as e,useState as n,useEffect as r}from"react";import s from"./SnackbarContainer.module.esm.js";import{SnackbarContext as o}from"../SnackbarProvider/SnackbarStateProvider.esm.js";const a=()=>{const{snackbars:t}=e(o);const[s,a]=n(0);const[i,c]=n("flex-start");const l=8;const m=t.length>=3;r((()=>{const e=t.map((t=>t.height));let n=e.reduce(((t,e)=>t+e),0);n+=(Math.min(t.length,3)-1)*l;if(m)setTimeout((()=>{c("flex-end")}),500);if(s>n&&i!=="flex-end")c("flex-end");else if(s<n&&i!=="flex-start")c("flex-start");a(n)}),[t]);return{height:s,justifyContent:i}};const i=({placement:e,children:n,zIndex:r,className:o,...i})=>{const{height:c,justifyContent:l}=a();return t.createElement("div",{...i,style:{zIndex:r,height:c,justifyContent:l},className:`${s["snackbars"]} ${s[e.horizontal]} ${s[e.vertical]} ${o!==null&&o!==void 0?o:""}`},n)};export{i as SnackbarContainer};
2
- //# sourceMappingURL=SnackbarContainer.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SnackbarContainer.esm.js","sources":["../../../../../../../src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.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, { useContext, useEffect, useState } from \"react\";\nimport classes from \"./SnackbarContainer.module.scss\";\nimport { SnackbarContext } from \"../SnackbarProvider/SnackbarStateProvider\";\n\n/**\n * @deprecated\n */\nexport interface Placement {\n vertical: \"top\" | \"bottom\";\n horizontal: \"start\" | \"center\" | \"end\";\n}\n\n/**\n * @deprecated\n */\nexport interface Props {\n placement: Placement;\n children?: React.ReactNode;\n zIndex?: number;\n className?: string;\n}\n\nconst useSnackbarContainerHeightAnimation = () => {\n const { snackbars } = useContext(SnackbarContext);\n const [height, setHeight] = useState(0);\n const [justifyContent, setJustifyContent] = useState<\"flex-start\" | \"flex-end\">(\"flex-start\");\n const spaceBetweenSnackbars = 8;\n const exceedsMaximumVisibleSnackbars = snackbars.length >= 3;\n\n useEffect(() => {\n const allHeights = snackbars.map(snackbar => snackbar.height);\n\n let totalHeight = allHeights.reduce((prev, curr) => prev + curr, 0);\n\n totalHeight += (Math.min(snackbars.length, 3) - 1) * spaceBetweenSnackbars;\n\n /**\n * 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\n * has completed their animationIn. This is around 500ms. Then we want to reverse it, because otherwise whenever a snackbar disappears they shift up\n * and then down again, which looks really bad.\n * */\n if (exceedsMaximumVisibleSnackbars)\n setTimeout(() => {\n setJustifyContent(\"flex-end\");\n }, 500);\n\n if (height > totalHeight && justifyContent !== \"flex-end\") {\n setJustifyContent(\"flex-end\");\n } else if (height < totalHeight && justifyContent !== \"flex-start\") {\n setJustifyContent(\"flex-start\");\n }\n\n setHeight(totalHeight);\n }, [snackbars]);\n\n return { height, justifyContent };\n};\n\n/**\n * @deprecated\n */\nexport const SnackbarContainer = ({ placement, children, zIndex, className, ...rest }: Props) => {\n const { height, justifyContent } = useSnackbarContainerHeightAnimation();\n\n return (\n <div\n {...rest}\n style={{ zIndex, height, justifyContent }}\n className={`${classes[\"snackbars\"]} ${classes[placement.horizontal]} ${\n classes[placement.vertical]\n } ${className ?? \"\"}`}\n >\n {children}\n </div>\n );\n};\n"],"names":["useSnackbarContainerHeightAnimation","snackbars","useContext","SnackbarContext","height","setHeight","useState","justifyContent","setJustifyContent","spaceBetweenSnackbars","exceedsMaximumVisibleSnackbars","length","useEffect","allHeights","map","snackbar","totalHeight","reduce","prev","curr","Math","min","setTimeout","SnackbarContainer","placement","children","zIndex","className","rest","React","style","classes","horizontal","vertical"],"mappings":"uMAsCA,MAAMA,EAAsC,KAC1C,MAAMC,UAAEA,GAAcC,EAAWC,GACjC,MAAOC,EAAQC,GAAaC,EAAS,GACrC,MAAOC,EAAgBC,GAAqBF,EAAoC,cAChF,MAAMG,EAAwB,EAC9B,MAAMC,EAAiCT,EAAUU,QAAU,EAE3DC,GAAU,KACR,MAAMC,EAAaZ,EAAUa,KAAIC,GAAYA,EAASX,SAEtD,IAAIY,EAAcH,EAAWI,QAAO,CAACC,EAAMC,IAASD,EAAOC,GAAM,GAEjEH,IAAgBI,KAAKC,IAAIpB,EAAUU,OAAQ,GAAK,GAAKF,EAOrD,GAAIC,EACFY,YAAW,KACTd,EAAkB,WAAW,GAC5B,KAEL,GAAIJ,EAASY,GAAeT,IAAmB,WAC7CC,EAAkB,iBACb,GAAIJ,EAASY,GAAeT,IAAmB,aACpDC,EAAkB,cAGpBH,EAAUW,EAAY,GACrB,CAACf,IAEJ,MAAO,CAAEG,SAAQG,iBAAgB,EAMtB,MAAAgB,EAAoB,EAAGC,YAAWC,WAAUC,SAAQC,eAAcC,MAC7E,MAAMxB,OAAEA,EAAMG,eAAEA,GAAmBP,IAEnC,OACE6B,0BACMD,EACJE,MAAO,CAAEJ,SAAQtB,SAAQG,kBACzBoB,UAAW,GAAGI,EAAQ,gBAAgBA,EAAQP,EAAUQ,eACtDD,EAAQP,EAAUS,aAChBN,UAAAA,SAAS,EAATA,EAAa,MAEhBF,EAEH"}
@@ -1,2 +0,0 @@
1
- import e from "../../../../lib/style-inject.js";var n='/*!\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/*!\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/*!\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 */.SnackbarContainer-module_sr-only__D49m-{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.SnackbarContainer-module_hidden__QTars{display:none}.SnackbarContainer-module_slide-in__8wJSk{animation:SnackbarContainer-module_slide-in__8wJSk .5s forwards}@media (prefers-reduced-motion:reduce){.SnackbarContainer-module_slide-in__8wJSk{animation-duration:.1ms}}.SnackbarContainer-module_slide-out__Bg3t3{animation:SnackbarContainer-module_slide-out__Bg3t3 .5s forwards}@media (prefers-reduced-motion:reduce){.SnackbarContainer-module_slide-out__Bg3t3{animation-duration:.1ms}}@keyframes SnackbarContainer-module_slide-in__8wJSk{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes SnackbarContainer-module_slide-out__Bg3t3{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*!\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 */.SnackbarContainer-module_snackbars__EwtAy{display:flex;flex-direction:column;position:fixed;transition-duration:.2s;transition-property:height;transition-timing-function:ease-in-out;width:100%;z-index:20}@media (prefers-reduced-motion:reduce){.SnackbarContainer-module_snackbars__EwtAy{transition-duration:.1ms}}.SnackbarContainer-module_snackbars__EwtAy.SnackbarContainer-module_bottom__b59av{bottom:3.5rem}.SnackbarContainer-module_snackbars__EwtAy.SnackbarContainer-module_top__UTyAc{top:3.5rem}.SnackbarContainer-module_snackbars__EwtAy.SnackbarContainer-module_center__vB40f,.SnackbarContainer-module_snackbars__EwtAy.SnackbarContainer-module_start__h2MqB{left:0}.SnackbarContainer-module_snackbars__EwtAy.SnackbarContainer-module_end__pmr0h{right:0}@media only screen and (min-width:37.5em){.SnackbarContainer-module_snackbars__EwtAy{width:auto}.SnackbarContainer-module_snackbars__EwtAy.SnackbarContainer-module_center__vB40f{left:calc(50% - 18.75rem)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNuYWNrYmFyQ29udGFpbmVyLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztFQWNFO0FBQ0Y7Ozs7Ozs7Ozs7Ozs7O0VBY0U7QUFDRjs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLHlDQU9FLGtCQUFzQixDQUN0QixRQUFTLENBTFQsVUFBVyxDQUVYLFdBQVksQ0FDWixlQUFnQixDQUZoQixTQUFVLENBSFYsaUJBQWtCLENBQ2xCLFNBT0YsQ0FFQSx3Q0FDRSxZQUNGLENBRUEsMENBQ0UsK0RBQ0YsQ0FDQSx1Q0FDRSwwQ0FDRSx1QkFDRixDQUNGLENBRUEsMkNBQ0UsZ0VBQ0YsQ0FDQSx1Q0FDRSwyQ0FDRSx1QkFDRixDQUNGLENBRUEsb0RBQ0UsR0FDRSwyQkFDRixDQUNBLEdBQ0UsdUJBQ0YsQ0FDRixDQUNBLHFEQUNFLEdBQ0UsdUJBQ0YsQ0FDQSxHQUNFLDJCQUNGLENBQ0Y7QUFDQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDJDQUlFLFlBQWEsQ0FDYixxQkFBc0IsQ0FKdEIsY0FBZSxDQU1mLHVCQUF5QixDQUR6QiwwQkFBMkIsQ0FFM0Isc0NBQXVDLENBTHZDLFVBQVcsQ0FEWCxVQU9GLENBQ0EsdUNBQ0UsMkNBQ0Usd0JBQ0YsQ0FDRixDQUNBLGtGQUNFLGFBQ0YsQ0FDQSwrRUFDRSxVQUNGLENBSUEsbUtBQ0UsTUF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5pdGlhbDtcbiAgfVxuICAuc25hY2tiYXJzLmNlbnRlciB7XG4gICAgbGVmdDogY2FsYyg1MCUgLSAxOC43NXJlbSk7XG4gIH1cbn0iXX0= */';var i={"sr-only":"SnackbarContainer-module_sr-only__D49m-",hidden:"SnackbarContainer-module_hidden__QTars","slide-in":"SnackbarContainer-module_slide-in__8wJSk","slide-out":"SnackbarContainer-module_slide-out__Bg3t3",snackbars:"SnackbarContainer-module_snackbars__EwtAy",bottom:"SnackbarContainer-module_bottom__b59av",top:"SnackbarContainer-module_top__UTyAc",start:"SnackbarContainer-module_start__h2MqB",center:"SnackbarContainer-module_center__vB40f",end:"SnackbarContainer-module_end__pmr0h"};e(n);export{i as default};
2
- //# sourceMappingURL=SnackbarContainer.module.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SnackbarContainer.module.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import e,{useRef as t,useEffect as r,useContext as n}from"react";import{IconButton as o}from"../../../Button/IconButton.esm.js";import{Icon as c,Icons as a}from"../../../Icon/Icon.esm.js";import s from"./SnackbarItem.module.esm.js";import i from"../../../src/readyclasses.module.esm.js";import{useAnimation as m}from"../../../src/hooks/useAnimation.esm.js";import{Typography as l}from"../../../Typography/Typography.esm.js";import{SnackbarContext as u}from"../SnackbarProvider/SnackbarStateProvider.esm.js";const d="var(--snackbar-text-color)";const p=(e,t)=>{const o=n(u);r((()=>{if(e.current)o.setSnackbarHeight(t,e.current.getBoundingClientRect().height)}),[e.current])};const v=({id:n,title:u,duration:v,variant:f,content:b,className:k,actions:E=[],onClose:g,closeButtonTitle:N})=>{const h=t();const j=()=>g(n);const{ref:y,animationStarted:C,startAnimation:T}=m(j);const S=!b&&!!u;const I=u&&!S;const B=b||S;p(y,n);r((()=>{h.current=setTimeout((()=>T()),v);return()=>{h.current&&clearTimeout(h.current)}}),[]);const w=()=>{h.current&&clearTimeout(h.current)};const A=()=>{h.current=setTimeout((()=>T()),v)};const x=()=>{if(f==="error")return a.Error;if(f==="warning")return a.Warning;return f==="success"?a.CheckmarkCircleAlt:a.InfoCircle};const M=E.map(((t,r)=>e.createElement("button",{key:r,...t,onClick:e=>{var r;g(n);(r=t.onClick)===null||r===void 0?void 0:r.call(t,e)},className:s["action-button"]},t.label)));const P=[s["snackbar"],s[f],C?i["slide-out"]:i["slide-in"],k!==null&&k!==void 0?k:""].join(" ");return e.createElement("div",{ref:y,"aria-live":"polite",className:P,onMouseEnter:w,onMouseLeave:A},e.createElement("div",{className:s["outer-content-wrapper"]},e.createElement(c,{icon:x(),className:s["icon"]}),e.createElement("div",{className:s["content-wrapper"]},I&&e.createElement(l,{className:s["title"],variant:"body-bold",tag:"span"},u),B&&e.createElement(l,{className:s["content"],variant:"body"},S?u:b))),M.length>0&&e.createElement("div",{className:s["actions"]},M),e.createElement(o,{id:s["close-btn"],onClick:()=>T(),title:N},e.createElement(c,{icon:a.Times,color:d})))};export{v as SnackbarItem};
2
- //# sourceMappingURL=SnackbarItem.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SnackbarItem.esm.js","sources":["../../../../../../../src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.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, { useContext, useEffect, useRef } from \"react\";\nimport { IconButton } from \"../../../Button/IconButton\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\nimport { Variant, Actions } from \"../interfaces\";\nimport classes from \"./SnackbarItem.module.scss\";\nimport readyclasses from \"../../../../readyclasses.module.scss\";\nimport { useAnimation } from \"../../../../hooks/useAnimation\";\nimport { Typography } from \"../../../Typography/Typography\";\nimport { SnackbarContext } from \"../SnackbarProvider/SnackbarStateProvider\";\n\nconst textColor = \"var(--snackbar-text-color)\";\n\n/**\n * @deprecated\n */\nexport interface Props {\n id: string;\n title?: string;\n duration: number;\n variant: Variant;\n className?: string;\n onClose: (key: string) => void;\n closeButtonTitle: string;\n content?: string;\n actions?: Actions;\n}\n\nconst useRegisterSnackbarHeight = (\n singleSnackbarRef: React.RefObject<HTMLDivElement>,\n snackbarId: string\n) => {\n const ctx = useContext(SnackbarContext);\n\n useEffect(() => {\n if (singleSnackbarRef.current) {\n ctx.setSnackbarHeight(snackbarId, singleSnackbarRef.current.getBoundingClientRect().height);\n }\n }, [singleSnackbarRef.current]);\n};\n\n/**\n * @deprecated\n */\nexport const SnackbarItem = ({\n id,\n title,\n duration,\n variant,\n content,\n className,\n actions = [],\n onClose,\n closeButtonTitle\n}: Props) => {\n const timerHandler = useRef<ReturnType<typeof setTimeout>>();\n const onAnimationEnd = () => onClose(id);\n const { ref, animationStarted, startAnimation } = useAnimation<HTMLDivElement>(onAnimationEnd);\n const hasOnlyTitle = !content && !!title;\n const renderTitle = title && !hasOnlyTitle;\n const renderContentOrTitleOnly = content || hasOnlyTitle;\n\n useRegisterSnackbarHeight(ref, id);\n\n useEffect(() => {\n timerHandler.current = setTimeout(() => startAnimation(), duration);\n return () => {\n timerHandler.current && clearTimeout(timerHandler.current);\n };\n }, []);\n\n const onMouseEnter = () => {\n timerHandler.current && clearTimeout(timerHandler.current);\n };\n\n const onMouseLeave = () => {\n timerHandler.current = setTimeout(() => startAnimation(), duration);\n };\n\n const getVariantIcon = () => {\n if (variant === \"error\") {\n return Icons.Error;\n }\n\n if (variant === \"warning\") {\n return Icons.Warning;\n }\n\n return variant === \"success\" ? Icons.CheckmarkCircleAlt : Icons.InfoCircle;\n };\n\n const actionButtons = actions.map((actionProp, index) => (\n <button\n key={index}\n {...actionProp}\n onClick={e => {\n onClose(id);\n actionProp.onClick?.(e);\n }}\n className={classes[\"action-button\"]}\n >\n {actionProp.label}\n </button>\n ));\n\n const snackbarClasses = [\n classes[\"snackbar\"],\n classes[variant],\n animationStarted ? readyclasses[\"slide-out\"] : readyclasses[\"slide-in\"],\n className ?? \"\"\n ].join(\" \");\n\n return (\n <div\n ref={ref}\n aria-live=\"polite\"\n className={snackbarClasses}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n <div className={classes[\"outer-content-wrapper\"]}>\n <Icon icon={getVariantIcon()} className={classes[\"icon\"]} />\n <div className={classes[\"content-wrapper\"]}>\n {renderTitle && (\n <Typography className={classes[\"title\"]} variant=\"body-bold\" tag=\"span\">\n {title}\n </Typography>\n )}\n {renderContentOrTitleOnly && (\n <Typography className={classes[\"content\"]} variant=\"body\">\n {hasOnlyTitle ? title : content}\n </Typography>\n )}\n </div>\n </div>\n {actionButtons.length > 0 && <div className={classes[\"actions\"]}>{actionButtons}</div>}\n <IconButton\n id={classes[\"close-btn\"]}\n onClick={() => startAnimation()}\n title={closeButtonTitle}\n >\n <Icon icon={Icons.Times} color={textColor} />\n </IconButton>\n </div>\n );\n};\n"],"names":["textColor","useRegisterSnackbarHeight","singleSnackbarRef","snackbarId","ctx","useContext","SnackbarContext","useEffect","current","setSnackbarHeight","getBoundingClientRect","height","SnackbarItem","id","title","duration","variant","content","className","actions","onClose","closeButtonTitle","timerHandler","useRef","onAnimationEnd","ref","animationStarted","startAnimation","useAnimation","hasOnlyTitle","renderTitle","renderContentOrTitleOnly","setTimeout","clearTimeout","onMouseEnter","onMouseLeave","getVariantIcon","Icons","Error","Warning","CheckmarkCircleAlt","InfoCircle","actionButtons","map","actionProp","index","React","createElement","key","onClick","e","_a","call","classes","label","snackbarClasses","readyclasses","join","Icon","icon","Typography","tag","length","IconButton","Times","color"],"mappings":"2fA0BA,MAAMA,EAAY,6BAiBlB,MAAMC,EAA4B,CAChCC,EACAC,KAEA,MAAMC,E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,MAAAA,SAAA,EAAAA,EAAa,IACbuC,KAAK,KAEP,OACEX,EACEC,cAAA,MAAA,CAAAtB,IAAKA,EAAG,YACE,SACVP,UAAWqC,EACXrB,aAAcA,EACdC,aAAcA,GAEdW,EAAAC,cAAA,MAAA,CAAK7B,UAAWmC,EAAQ,0BACtBP,EAAAC,cAACW,EAAI,CAACC,KAAMvB,IAAkBlB,UAAWmC,EAAQ,UACjDP,EAAAC,cAAA,MAAA,CAAK7B,UAAWmC,EAAQ,oBACrBvB,GACCgB,EAACC,cAAAa,GAAW1C,UAAWmC,EAAQ,SAAUrC,QAAQ,YAAY6C,IAAI,QAC9D/C,GAGJiB,GACCe,EAACC,cAAAa,EAAW,CAAA1C,UAAWmC,EAAQ,WAAYrC,QAAQ,QAChDa,EAAef,EAAQG,KAK/ByB,EAAcoB,OAAS,GAAKhB,EAAKC,cAAA,MAAA,CAAA7B,UAAWmC,EAAQ,YAAaX,GAClEI,EAAAC,cAACgB,EACC,CAAAlD,GAAIwC,EAAQ,aACZJ,QAAS,IAAMtB,IACfb,MAAOO,GAEPyB,EAAAC,cAACW,EAAI,CAACC,KAAMtB,EAAM2B,MAAOC,MAAOjE,KAGpC"}
@@ -1,2 +0,0 @@
1
- import a from "../../../../lib/style-inject.js";var c='/*!\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/*!\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/*!\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 */.SnackbarItem-module_sr-only__EBvz0{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.SnackbarItem-module_hidden__MnW2t{display:none}.SnackbarItem-module_slide-in__Ruu5V{animation:SnackbarItem-module_slide-in__Ruu5V .5s forwards}@media (prefers-reduced-motion:reduce){.SnackbarItem-module_slide-in__Ruu5V{animation-duration:.1ms}}.SnackbarItem-module_slide-out__6VJFZ{animation:SnackbarItem-module_slide-out__6VJFZ .5s forwards}@media (prefers-reduced-motion:reduce){.SnackbarItem-module_slide-out__6VJFZ{animation-duration:.1ms}}@keyframes SnackbarItem-module_slide-in__Ruu5V{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes SnackbarItem-module_slide-out__6VJFZ{0%{transform:translateY(0)}to{transform:translateY(100vh)}}.SnackbarItem-module_snackbar__6uLYF{align-items:center;border-radius:var(--snackbar-border-radius);box-sizing:border-box;display:flex;flex-grow:0;gap:.5rem;padding:1rem;transition-duration:.2s;transition-property:height;transition-timing-function:ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.SnackbarItem-module_snackbar__6uLYF{transition-duration:.1ms}}.SnackbarItem-module_snackbar__6uLYF.SnackbarItem-module_info__qsV9O{background-color:var(--snackbar-info-background-color)}.SnackbarItem-module_snackbar__6uLYF.SnackbarItem-module_success__Xx2w7{background-color:var(--snackbar-success-background-color)}.SnackbarItem-module_snackbar__6uLYF.SnackbarItem-module_error__vUBNF{background-color:var(--snackbar-error-background-color)}.SnackbarItem-module_snackbar__6uLYF.SnackbarItem-module_warning__8Kp-W{background-color:var(--snackbar-warning-background-color)}.SnackbarItem-module_snackbar__6uLYF+.SnackbarItem-module_snackbar__6uLYF{margin-top:.5rem}.SnackbarItem-module_snackbar__6uLYF #SnackbarItem-module_close-btn__ftGfT{align-self:center;border:0;color:var(--snackbar-text-color);flex-shrink:0;height:2.5rem;margin:-.5rem 0;width:2.5rem}.SnackbarItem-module_snackbar__6uLYF #SnackbarItem-module_close-btn__ftGfT span{font-size:.875rem}.SnackbarItem-module_snackbar__6uLYF #SnackbarItem-module_close-btn__ftGfT:not(:disabled):focus,.SnackbarItem-module_snackbar__6uLYF #SnackbarItem-module_close-btn__ftGfT:not(:disabled):hover{background-color:var(--color-black10)}.SnackbarItem-module_snackbar__6uLYF #SnackbarItem-module_close-btn__ftGfT:not(:disabled):active{background-color:var(--color-black20)}.SnackbarItem-module_snackbar__6uLYF .SnackbarItem-module_icon__oCQ61{align-items:center;align-self:flex-start;color:var(--snackbar-text-color);display:inline-flex;font-size:1rem;height:1.25rem}.SnackbarItem-module_snackbar__6uLYF .SnackbarItem-module_title__sdClo{color:var(--snackbar-text-color);display:block;flex:1;font-size:.875rem;line-height:1.25rem;margin-bottom:.25rem}.SnackbarItem-module_snackbar__6uLYF .SnackbarItem-module_outer-content-wrapper__ENow4{display:flex;flex-grow:1;gap:.5rem}.SnackbarItem-module_snackbar__6uLYF .SnackbarItem-module_content-wrapper__SXr2-{flex-grow:1}.SnackbarItem-module_snackbar__6uLYF .SnackbarItem-module_content__Uw63v{color:var(--snackbar-text-color);font-size:.875rem;line-height:1.25rem;margin-bottom:0}.SnackbarItem-module_snackbar__6uLYF .SnackbarItem-module_actions__4DNWL{align-self:center;text-align:right}.SnackbarItem-module_snackbar__6uLYF .SnackbarItem-module_action-button__yhkBR{background-color:initial;border-color:#0000;border-radius:var(--button-border-radius);border-style:var(--button-border-style);border-width:var(--button-border-width);color:var(--snackbar-text-color);cursor:pointer;font-family:var(--font-family);font-size:.875rem;font-weight:400;line-height:var(--button-font-size);margin:-.5rem 0;padding:.625rem 1.25rem;transition:color,background-color,border-color .2s ease-in-out;white-space:nowrap}.SnackbarItem-module_snackbar__6uLYF .SnackbarItem-module_action-button__yhkBR:disabled{color:var(--greyed-out);cursor:not-allowed}.SnackbarItem-module_snackbar__6uLYF .SnackbarItem-module_action-button__yhkBR:focus-visible{border-radius:var(--focus-border-radius);outline:.125rem solid var(--color-focus);outline-offset:.125rem}.SnackbarItem-module_snackbar__6uLYF .SnackbarItem-module_action-button__yhkBR:not(:disabled):focus,.SnackbarItem-module_snackbar__6uLYF .SnackbarItem-module_action-button__yhkBR:not(:disabled):hover{background-color:var(--color-black10)}.SnackbarItem-module_snackbar__6uLYF .SnackbarItem-module_action-button__yhkBR:not(:disabled):active{background-color:var(--color-black20)}@media only screen and (min-width:37.5em){.SnackbarItem-module_snackbar__6uLYF{min-width:25rem;width:min-content}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNuYWNrYmFySXRlbS5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRTtBQUNGOzs7Ozs7Ozs7Ozs7OztFQWNFO0FBQ0Y7Ozs7Ozs7Ozs7Ozs7O0VBY0UsQ0FDRixvQ0FPRSxrQkFBc0IsQ0FDdEIsUUFBUyxDQUxULFVBQVcsQ0FFWCxXQUFZLENBQ1osZUFBZ0IsQ0FGaEIsU0FBVSxDQUhWLGlCQUFrQixDQUNsQixTQU9GLENBRUEsbUNBQ0UsWUFDRixDQUVBLHFDQUNFLDBEQUNGLENBQ0EsdUNBQ0UscUNBQ0UsdUJBQ0YsQ0FDRixDQUVBLHNDQUNF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JleWVkLW91dCk7XG4gIGN1cnNvcjogbm90LWFsbG93ZWQ7XG59XG4uc25hY2tiYXIgLmFjdGlvbi1idXR0b246Zm9jdXMtdmlzaWJsZSB7XG4gIG91dGxpbmU6IDAuMTI1cmVtIHNvbGlkIHZhcigtLWNvbG9yLWZvY3VzKTtcbiAgb3V0bGluZS1vZmZzZXQ6IDAuMTI1cmVtO1xuICBib3JkZXItcmFkaXVzOiB2YXIoLS1mb2N1cy1ib3JkZXItcmFkaXVzKTtcbn1cbi5zbmFja2JhciAuYWN0aW9uLWJ1dHRvbjpub3QoOmRpc2FibGVkKTpob3ZlciwgLnNuYWNrYmFyIC5hY3Rpb24tYnV0dG9uOm5vdCg6ZGlzYWJsZWQpOmZvY3VzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tY29sb3ItYmxhY2sxMCk7XG59XG4uc25hY2tiYXIgLmFjdGlvbi1idXR0b246bm90KDpkaXNhYmxlZCk6YWN0aXZlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tY29sb3ItYmxhY2syMCk7XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1pbi13aWR0aDogMzcuNWVtKSB7XG4gIC5zbmFja2JhciB7XG4gICAgd2lkdGg6IG1pbi1jb250ZW50O1xuICAgIG1pbi13aWR0aDogMjVyZW07XG4gIH1cbn0iXX0= */';var e={"sr-only":"SnackbarItem-module_sr-only__EBvz0",hidden:"SnackbarItem-module_hidden__MnW2t","slide-in":"SnackbarItem-module_slide-in__Ruu5V","slide-out":"SnackbarItem-module_slide-out__6VJFZ",snackbar:"SnackbarItem-module_snackbar__6uLYF",info:"SnackbarItem-module_info__qsV9O",success:"SnackbarItem-module_success__Xx2w7",error:"SnackbarItem-module_error__vUBNF",warning:"SnackbarItem-module_warning__8Kp-W","close-btn":"SnackbarItem-module_close-btn__ftGfT",icon:"SnackbarItem-module_icon__oCQ61",title:"SnackbarItem-module_title__sdClo","outer-content-wrapper":"SnackbarItem-module_outer-content-wrapper__ENow4","content-wrapper":"SnackbarItem-module_content-wrapper__SXr2-",content:"SnackbarItem-module_content__Uw63v",actions:"SnackbarItem-module_actions__4DNWL","action-button":"SnackbarItem-module_action-button__yhkBR"};a(c);export{e as default};
2
- //# sourceMappingURL=SnackbarItem.module.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SnackbarItem.module.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import t,{useState as e,useRef as n}from"react";import{createPortal as o}from"react-dom";import{SnackbarContextProvider as r}from"./SnackbarStateProvider.esm.js";import{isNewEnqueueSnackbarInterface as s}from"../interfaces.esm.js";import{SnackbarContainer as c}from"../SnackbarContainer/SnackbarContainer.esm.js";import{generateID as a}from"../../../src/util/helper.esm.js";import{SnackbarItem as i}from"../SnackbarItem/SnackbarItem.esm.js";import{useGetDomRoot as l}from"../../../src/hooks/useGetDomRoot.esm.js";const m=({closeButtonTitle:m,placement:u={vertical:"bottom",horizontal:"center"},autoHideDuration:d={long:8e3,short:4e3},stackSize:f=3,domRoot:k,children:p,className:S}={closeButtonTitle:""})=>{const[b,v]=e([]);const h=n(null);const{root:g}=l(k,h);const j=t=>{v((e=>[...e,t]))};const C=(t,e)=>{const n=b.map((n=>{if(n.id!==t)return n;return{...n,height:e}}));v(n)};const N=(t,e,n)=>{const o=t==="error";const r=n!==null&&n!==void 0?n:e;if(o||r)return d.long;return d.short};const E=(t,e,n={})=>{const o=s(t);const r=o?t:q(t,e,n);const{variant:c="info",actions:i,duration:l=N(c,i,r.content),onClose:m}=r;const u={title:r.title,content:r.content,variant:c,className:r.className,actions:i,duration:l,height:0,id:a(15,r.title),onClose:m};j(u)};const q=(t,e,n={})=>({title:t,content:e,...n});const B=(t,e,n={})=>{const o=s(t);const r=o?t:q(t,e,n);E({...r,variant:"success"})};const T=(t,e,n={})=>{const o=s(t);const r=o?t:q(t,e,n);E({...r,variant:"error"})};const z=(t,e,n={})=>{const o=s(t);const r=o?t:q(t,e,n);E({...r,variant:"warning"})};const D=t=>{v((e=>[...e].filter((e=>e.id!==t))))};const H=b.map(((e,n)=>n<f?t.createElement(i,{...e,key:e.id,className:e.className,onClose:()=>{var t;D(e.id);(t=e.onClose)===null||t===void 0?void 0:t.call(e)},closeButtonTitle:m}):null));const I=o(t.createElement(c,{placement:u,className:S},H),g);return t.createElement(r,{initialState:{enqueueSnackbar:E,enqueueSuccessSnackbar:B,enqueueErrorSnackbar:T,enqueueWarningSnackbar:z,setSnackbarHeight:C,snackbars:b}},p,t.createElement("div",{ref:h},I))};export{m as SnackbarProvider};
2
- //# sourceMappingURL=SnackbarProvider.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SnackbarProvider.esm.js","sources":["../../../../../../../src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ReactNode, useRef, useState } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { SnackbarContextProvider } from \"./SnackbarStateProvider\";\nimport {\n Actions,\n EnqueueSnackbarProps,\n SnackbarOptionsProps,\n Variant,\n isNewEnqueueSnackbarInterface\n} from \"../interfaces\";\nimport { Placement, SnackbarContainer } from \"../SnackbarContainer/SnackbarContainer\";\nimport { generateID } from \"../../../../util/helper\";\nimport { SnackbarItem } from \"../SnackbarItem/SnackbarItem\";\nimport { useGetDomRoot } from \"../../../../hooks/useGetDomRoot\";\n\n/** Short msg is when only title is provided. Long one when content or/and actions are provided (or type is error). */\ninterface Duration {\n long: number;\n short: number;\n}\n\n/**\n * @deprecated\n */\nexport interface Props {\n closeButtonTitle: string;\n children?: ReactNode;\n placement?: Placement;\n stackSize?: number;\n domRoot?: HTMLElement;\n autoHideDuration?: Duration;\n className?: string;\n}\n\n/**\n * @deprecated\n */\nexport interface Item {\n id: string;\n title?: string;\n duration: number;\n className?: string;\n height: number;\n variant: Variant;\n content?: string;\n actions?: Actions;\n onClose?: () => void;\n}\n\n/**\n * @deprecated\n */\nexport const SnackbarProvider = (\n {\n closeButtonTitle,\n placement = { vertical: \"bottom\", horizontal: \"center\" },\n autoHideDuration = { long: 8000, short: 4000 },\n stackSize = 3,\n domRoot,\n children,\n className\n }: Props = { closeButtonTitle: \"\" }\n) => {\n const [snackbars, setSnackbars] = useState<Item[]>([]);\n const wrappingDivRef = useRef(null);\n const { root } = useGetDomRoot(domRoot, wrappingDivRef);\n\n const addSnackbar = (item: Item) => {\n setSnackbars(items => [...items, item]);\n };\n\n const setSnackbarHeight = (id: string, height: number) => {\n const newSnackbarsState = snackbars.map(snackbar => {\n if (snackbar.id !== id) {\n return snackbar;\n }\n\n return { ...snackbar, height };\n });\n\n setSnackbars(newSnackbarsState);\n };\n\n const getDuration = (variant: Variant, actions?: Actions, content?: string) => {\n const hasError = variant === \"error\";\n const hasContentOrActions = content ?? actions;\n if (hasError || hasContentOrActions) {\n return autoHideDuration.long;\n }\n return autoHideDuration.short;\n };\n\n const enqueueSnackbar = (\n propsOrTitle: EnqueueSnackbarProps | string | undefined,\n content?: string,\n options: SnackbarOptionsProps = {}\n ): void => {\n const newInterface = isNewEnqueueSnackbarInterface(propsOrTitle);\n const props = newInterface ? propsOrTitle : mapToNewInterface(propsOrTitle, content, options);\n const {\n variant = \"info\",\n actions,\n duration = getDuration(variant, actions, props.content),\n onClose\n } = props;\n const item: Item = {\n title: props.title,\n content: props.content,\n variant,\n className: props.className,\n actions,\n duration,\n height: 0,\n id: generateID(15, props.title),\n onClose\n };\n addSnackbar(item);\n };\n\n const mapToNewInterface = (\n title?: string,\n content?: string,\n options: SnackbarOptionsProps = {}\n ): EnqueueSnackbarProps => {\n return {\n title,\n content,\n ...options\n };\n };\n\n const enqueueSuccessSnackbar = (\n propsOrTitle: EnqueueSnackbarProps | string | undefined,\n content?: string,\n options: SnackbarOptionsProps = {}\n ): void => {\n const newInterface = isNewEnqueueSnackbarInterface(propsOrTitle);\n const props = newInterface ? propsOrTitle : mapToNewInterface(propsOrTitle, content, options);\n enqueueSnackbar({ ...props, variant: \"success\" });\n };\n\n const enqueueErrorSnackbar = (\n propsOrTitle: EnqueueSnackbarProps | string | undefined,\n content?: string,\n options: SnackbarOptionsProps = {}\n ): void => {\n const newInterface = isNewEnqueueSnackbarInterface(propsOrTitle);\n const props = newInterface ? propsOrTitle : mapToNewInterface(propsOrTitle, content, options);\n enqueueSnackbar({ ...props, variant: \"error\" });\n };\n\n const enqueueWarningSnackbar = (\n propsOrTitle: EnqueueSnackbarProps | string | undefined,\n content?: string,\n options: SnackbarOptionsProps = {}\n ): void => {\n const newInterface = isNewEnqueueSnackbarInterface(propsOrTitle);\n const props = newInterface ? propsOrTitle : mapToNewInterface(propsOrTitle, content, options);\n enqueueSnackbar({ ...props, variant: \"warning\" });\n };\n\n const onItemClosed = (id: string) => {\n setSnackbars(items => [...items].filter(item => item.id !== id));\n };\n\n const snackbarList = snackbars.map((item, index) =>\n index < stackSize ? (\n <SnackbarItem\n {...item}\n key={item.id}\n className={item.className}\n onClose={() => {\n onItemClosed(item.id);\n item.onClose?.();\n }}\n closeButtonTitle={closeButtonTitle}\n />\n ) : null\n );\n\n const snackbarPortal = createPortal(\n <SnackbarContainer placement={placement} className={className}>\n {snackbarList}\n </SnackbarContainer>,\n root\n );\n\n return (\n <SnackbarContextProvider\n initialState={{\n enqueueSnackbar,\n enqueueSuccessSnackbar,\n enqueueErrorSnackbar,\n enqueueWarningSnackbar,\n setSnackbarHeight,\n snackbars\n }}\n >\n {children}\n <div ref={wrappingDivRef}>{snackbarPortal}</div>\n </SnackbarContextProvider>\n );\n};\n"],"names":["SnackbarProvider","closeButtonTitle","placement","vertical","horizontal","autoHideDuration","long","short","stackSize","domRoot","children","className","snackbars","setSnackbars","useState","wrappingDivRef","useRef","root","useGetDomRoot","addSnackbar","item","items","setSnackbarHeight","id","height","newSnackbarsState","map","snackbar","getDuration","variant","actions","content","hasError","hasContentOrActions","enqueueSnackbar","propsOrTitle","options","newInterface","isNewEnqueueSnackbarInterface","props","mapToNewInterface","duration","onClose","title","generateID","enqueueSuccessSnackbar","enqueueErrorSnackbar","enqueueWarningSnackbar","onItemClosed","filter","snackbarList","index","React","createElement","SnackbarItem","key","_a","call","snackbarPortal","createPortal","SnackbarContainer","SnackbarContextProvider","initialState","ref"],"mappings":"ugBAoEaA,EAAmB,EAE5BC,mBACAC,YAAY,CAAEC,SAAU,SAAUC,WAAY,UAC9CC,mBAAmB,CAAEC,KAAM,IAAMC,MAAO,KACxCC,YAAY,EACZC,UACAC,WACAC,aACS,CAAEV,iBAAkB,OAE/B,MAAOW,EAAWC,GAAgBC,EAAiB,IACnD,MAAMC,EAAiBC,EAAO,MAC9B,MAAMC,KAAEA,GAASC,EAAcT,EAASM,GAExC,MAAMI,EAAeC,IACnBP,GAAaQ,GAAS,IAAIA,EAAOD,IAAM,EAGzC,MAAME,EAAoB,CAACC,EAAYC,KACrC,MAAMC,EAAoBb,EAAUc,KAAIC,IACtC,GAAIA,EAASJ,KAAOA,EAClB,OAAOI,EAGT,MAAO,IAAKA,EAAUH,SAAQ,IAGhCX,EAAaY,EAAkB,EAGjC,MAAMG,EAAc,CAACC,EAAkBC,EAAmBC,KACxD,MAAMC,EAAWH,IAAY,QAC7B,MAAMI,EAAsBF,IAAO,MAAPA,SAAA,EAAAA,EAAWD,EACvC,GAAIE,GAAYC,EACd,OAAO5B,EAAiBC,KAE1B,OAAOD,EAAiBE,KAAK,EAG/B,MAAM2B,EAAkB,CACtBC,EACAJ,EACAK,EAAgC,CAAA,KAEhC,MAAMC,EAAeC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WS,EAAKT,UAChB+B,QAAS,WACPM,EAAa5B,EAAKG,KAClBiC,EAAApC,EAAKsB,WAAO,MAAAc,SAAA,OAAA,EAAAA,EAAAC,KAAArC,EAAI,EAElBnB,iBAAkBA,IAElB,OAGN,MAAMyD,EAAiBC,EACrBP,gBAACQ,EAAiB,CAAC1D,UAAWA,EAAWS,UAAWA,GACjDuC,GAEHjC,GAGF,OACEmC,EAAAC,cAACQ,EAAuB,CACtBC,aAAc,CACZ5B,kBACAW,yBACAC,uBACAC,yBACAzB,oBACAV,cAGDF,EACD0C,EAAKC,cAAA,MAAA,CAAAU,IAAKhD,GAAiB2C,GAE7B"}
@@ -1,2 +0,0 @@
1
- import e,{createContext as n}from"react";const a=n({enqueueSnackbar:()=>null,enqueueSuccessSnackbar:()=>null,enqueueErrorSnackbar:()=>null,enqueueWarningSnackbar:()=>null,setSnackbarHeight:()=>null,snackbars:[]});const r=({children:n,initialState:r})=>e.createElement(a.Provider,{value:r},n);export{a as SnackbarContext,r as SnackbarContextProvider};
2
- //# sourceMappingURL=SnackbarStateProvider.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SnackbarStateProvider.esm.js","sources":["../../../../../../../src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.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, { createContext } from \"react\";\nimport { DeprecatedEnqueueSnackbarType } from \"../interfaces\";\nimport { Item } from \"./SnackbarProvider\";\n\n/**\n * @deprecated\n */\ninterface SnackbarContextProps {\n enqueueSnackbar: DeprecatedEnqueueSnackbarType;\n enqueueSuccessSnackbar: DeprecatedEnqueueSnackbarType;\n enqueueWarningSnackbar: DeprecatedEnqueueSnackbarType;\n enqueueErrorSnackbar: DeprecatedEnqueueSnackbarType;\n setSnackbarHeight: (id: string, height: number) => void;\n snackbars: Item[];\n}\n\n/**\n * @deprecated\n */\nconst SnackbarContext = createContext<SnackbarContextProps>({\n enqueueSnackbar: () => null,\n enqueueSuccessSnackbar: () => null,\n enqueueErrorSnackbar: () => null,\n enqueueWarningSnackbar: () => null,\n setSnackbarHeight: () => null,\n snackbars: []\n});\n\ninterface Props {\n initialState: SnackbarContextProps;\n children?: React.ReactNode;\n}\n\n/**\n * @deprecated\n */\nconst SnackbarContextProvider = ({ children, initialState }: Props) => {\n return <SnackbarContext.Provider value={initialState}>{children}</SnackbarContext.Provider>;\n};\n\nexport { SnackbarContextProvider, SnackbarContext, SnackbarContextProps };\n"],"names":["SnackbarContext","createContext","enqueueSnackbar","enqueueSuccessSnackbar","enqueueErrorSnackbar","enqueueWarningSnackbar","setSnackbarHeight","snackbars","SnackbarContextProvider","children","initialState","React","createElement","Provider","value"],"mappings":"yCAmCM,MAAAA,EAAkBC,EAAoC,CAC1DC,gBAAiB,IAAM,KACvBC,uBAAwB,IAAM,KAC9BC,qBAAsB,IAAM,KAC5BC,uBAAwB,IAAM,KAC9BC,kBAAmB,IAAM,KACzBC,UAAW,KAWP,MAAAC,EAA0B,EAAGC,WAAUC,kBACpCC,EAAAC,cAACZ,EAAgBa,SAAQ,CAACC,MAAOJ,GAAeD"}
@@ -1,2 +0,0 @@
1
- function t(t){return t!==null&&typeof t==="object"&&("title"in t||"content"in t)}export{t as isNewEnqueueSnackbarInterface};
2
- //# sourceMappingURL=interfaces.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.esm.js","sources":["../../../../../../src/components/Notifications/Snackbar/interfaces.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 { ButtonHTMLAttributes } from \"react\";\n\n/**\n * @deprecated\n */\nexport type Variant = \"info\" | \"success\" | \"error\" | \"warning\";\n\n/**\n * @deprecated\n */\nexport type Actions = (ButtonHTMLAttributes<HTMLButtonElement> & { label: string })[];\n\n/**\n * @deprecated\n */\nexport interface SnackbarOptionsProps {\n actions?: Actions;\n className?: string;\n variant?: Variant;\n duration?: number;\n onClose?: () => void;\n}\n\n/**\n * @deprecated\n */\nexport interface EnqueueSnackbarProps extends SnackbarOptionsProps {\n title?: string;\n content?: string;\n}\n\n/**\n * @deprecated\n */\nexport type DeprecatedEnqueueSnackbarType = (\n propsOrTitle: EnqueueSnackbarProps | string | undefined,\n content?: string,\n options?: SnackbarOptionsProps\n) => void;\n\n/**\n * @deprecated\n */\nexport function isNewEnqueueSnackbarInterface(args: unknown): args is EnqueueSnackbarProps {\n return args !== null && typeof args === \"object\" && (\"title\" in args || \"content\" in args);\n}\n"],"names":["isNewEnqueueSnackbarInterface","args"],"mappings":"AA2DM,SAAUA,EAA8BC,GAC5C,OAAOA,IAAS,aAAeA,IAAS,WAAa,UAAWA,GAAQ,YAAaA,EACvF"}
@@ -1,2 +0,0 @@
1
- import{useContext as e}from"react";import{SnackbarContext as r}from"./SnackbarProvider/SnackbarStateProvider.esm.js";const n=()=>{const n=e(r);return{enqueueWarningSnackbar:n.enqueueWarningSnackbar,enqueueErrorSnackbar:n.enqueueErrorSnackbar,enqueueSuccessSnackbar:n.enqueueSuccessSnackbar,enqueueSnackbar:n.enqueueSnackbar}};export{n as useSnackbar};
2
- //# sourceMappingURL=useSnackbar.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSnackbar.esm.js","sources":["../../../../../../src/components/Notifications/Snackbar/useSnackbar.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 { useContext } from \"react\";\nimport { SnackbarContext } from \"./SnackbarProvider/SnackbarStateProvider\";\n\n/**\n * @deprecated\n */\nexport const useSnackbar = () => {\n const ctx = useContext(SnackbarContext);\n\n return {\n enqueueWarningSnackbar: ctx.enqueueWarningSnackbar,\n enqueueErrorSnackbar: ctx.enqueueErrorSnackbar,\n enqueueSuccessSnackbar: ctx.enqueueSuccessSnackbar,\n enqueueSnackbar: ctx.enqueueSnackbar\n };\n};\n"],"names":["useSnackbar","ctx","useContext","SnackbarContext","enqueueWarningSnackbar","enqueueErrorSnackbar","enqueueSuccessSnackbar","enqueueSnackbar"],"mappings":"qHAsBO,MAAMA,EAAc,KACzB,MAAMC,EAAMC,EAAWC,GAEvB,MAAO,CACLC,uBAAwBH,EAAIG,uBAC5BC,qBAAsBJ,EAAII,qBAC1BC,uBAAwBL,EAAIK,uBAC5BC,gBAAiBN,EAAIM,gBACtB"}
@@ -1,2 +0,0 @@
1
- import a from"react";import{Typography as r}from"../Typography/Typography.esm.js";import e from"./StatusIndicator.module.esm.js";const t=({children:t,status:o,badgeProps:s,typographyProps:i,...d},l)=>{var n,m;return a.createElement("div",{...d,className:e["status-indicator"],ref:l},a.createElement("div",{className:`${e["status-badge"]} ${e[o]} ${(n=s===null||s===void 0?void 0:s.className)!==null&&n!==void 0?n:""}`}),a.createElement(r,{...i,spacing:{margin:"0"},variant:"body",tag:"div"},(m=i===null||i===void 0?void 0:i.children)!==null&&m!==void 0?m:t))};const o=a.forwardRef(t);export{o as StatusIndicator};
2
- //# sourceMappingURL=StatusIndicator.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatusIndicator.esm.js","sources":["../../../../../src/components/StatusIndicator/StatusIndicator.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, { ForwardRefRenderFunction, ComponentPropsWithRef, ReactNode } from \"react\";\nimport { Typography, Props as TypographyProps } from \"../Typography/Typography\";\nimport classes from \"./StatusIndicator.module.scss\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n children?: ReactNode;\n status: \"active\" | \"error\" | \"neutral\" | \"warning\";\n badgeProps?: ComponentPropsWithRef<\"div\">;\n typographyProps?: TypographyProps;\n}\n\nconst StatusIndicatorComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, status, badgeProps, typographyProps, ...rest }: Props,\n ref\n) => {\n return (\n <div {...rest} className={classes[\"status-indicator\"]} ref={ref}>\n <div\n className={`${classes[\"status-badge\"]} ${classes[status]} ${badgeProps?.className ?? \"\"}`}\n />\n <Typography {...typographyProps} spacing={{ margin: \"0\" }} variant=\"body\" tag=\"div\">\n {typographyProps?.children ?? children}\n </Typography>\n </div>\n );\n};\n\nexport const StatusIndicator = React.forwardRef(StatusIndicatorComponent);\n"],"names":["StatusIndicatorComponent","children","status","badgeProps","typographyProps","rest","ref","React","createElement","className","classes","_a","Typography","spacing","margin","variant","tag","_b","StatusIndicator","forwardRef"],"mappings":"iIA2BA,MAAMA,EAA4E,EAC9EC,WAAUC,SAAQC,aAAYC,qBAAoBC,GACpDC,aAEA,OACEC,EAAAC,cAAA,MAAA,IAASH,EAAMI,UAAWC,EAAQ,oBAAqBJ,IAAKA,GAC1DC,EACEC,cAAA,MAAA,CAAAC,UAAW,GAAGC,EAAQ,mBAAmBA,EAAQR,OAAWS,EAAAR,IAAA,MAAAA,SAAA,OAAA,EAAAA,EAAYM,aAAS,MAAAE,SAAA,EAAAA,EAAI,OAEvFJ,EAAAC,cAACI,EAAU,IAAKR,EAAiBS,QAAS,CAAEC,OAAQ,KAAOC,QAAQ,OAAOC,IAAI,QAC3EC,EAAAb,UAAAA,SAAe,OAAA,EAAfA,EAAiBH,YAAY,MAAAgB,SAAA,EAAAA,EAAAhB,GAGlC,EAGS,MAAAiB,EAAkBX,EAAMY,WAAWnB"}
@@ -1,2 +0,0 @@
1
- import t from "../../lib/style-inject.js";var i='/*!\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 */.StatusIndicator-module_status-indicator__BD8IU{align-items:center;display:flex}.StatusIndicator-module_status-badge__HNql-{border-radius:50%;height:.75rem;margin-right:.5rem;width:.75rem}.StatusIndicator-module_active__JISbh{background-color:var(--success)}.StatusIndicator-module_error__mG3qe{background-color:var(--error)}.StatusIndicator-module_neutral__Dlxhu{background-color:var(--greyed-out)}.StatusIndicator-module_warning__CBJ4N{background-color:var(--warning)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN0YXR1c0luZGljYXRvci5tb2R1bGUuc2N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W5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqICAgIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG4uc3RhdHVzLWluZGljYXRvciB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG59XG5cbi5zdGF0dXMtYmFkZ2Uge1xuICB3aWR0aDogMC43NXJlbTtcbiAgaGVpZ2h0OiAwLjc1cmVtO1xuICBtYXJnaW4tcmlnaHQ6IDAuNXJlbTtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xufVxuXG4uYWN0aXZlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tc3VjY2Vzcyk7XG59XG5cbi5lcnJvciB7XG4gIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWVycm9yKTtcbn1cblxuLm5ldXRyYWwge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1ncmV5ZWQtb3V0KTtcbn1cblxuLndhcm5pbmcge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS13YXJuaW5nKTtcbn0iXX0= */';var e={"status-indicator":"StatusIndicator-module_status-indicator__BD8IU","status-badge":"StatusIndicator-module_status-badge__HNql-",active:"StatusIndicator-module_active__JISbh",error:"StatusIndicator-module_error__mG3qe",neutral:"StatusIndicator-module_neutral__Dlxhu",warning:"StatusIndicator-module_warning__CBJ4N"};t(i);export{e as default};
2
- //# sourceMappingURL=StatusIndicator.module.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatusIndicator.module.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import e,{Fragment as r}from"react";import t from"./BaseWizardSteps.module.esm.js";import{Icon as a,Icons as n}from"../../Icon/Icon.esm.js";const s=({steps:s,currentStepNo:l,onClick:c,futureStepsClickable:o=false,...i},m)=>{const u=e=>{if(l===e)return"current";else if(e<l)return"finished";return"future"};const d=(s,l,c)=>{const o=String(l+1);if(s==="finished")return c?null:e.createElement(a,{className:t["checkmark"],icon:n.Checkmark});else return e.createElement(r,null,o)};const f=s.map(((r,a)=>{const n=u(a);const s=r.disabled?t["disabled"]:"";const l=o?t["clickable"]:"";return e.createElement("button",{key:r.label.toLowerCase().replace(/\s/,"-"),disabled:r.disabled||n==="future"&&!o||n==="current","aria-current":n==="current"?"step":void 0,onClick:()=>c===null||c===void 0?void 0:c(a),className:`${t["wizard-element"]} ${t[n]} ${l} ${s}`},e.createElement("div",{className:t["number-wrapper"]},e.createElement("span",{className:t["number"]},d(n,a,r.disabled))),e.createElement("div",{className:t["two-line-text-overflow"]},e.createElement("span",{className:t["label"]},r.label)))}));return e.createElement("div",{...i,ref:m,className:t["wizard"]},f)};const l=e.forwardRef(s);export{l as BaseWizardSteps};
2
- //# sourceMappingURL=BaseWizardSteps.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseWizardSteps.esm.js","sources":["../../../../../../src/components/Wizard/BaseWizardSteps/BaseWizardSteps.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, { ForwardRefRenderFunction, ComponentPropsWithRef, Fragment } from \"react\";\nimport classes from \"./BaseWizardSteps.module.scss\";\nimport { Icon, Icons } from \"../../Icon/Icon\";\n\ntype StepState = \"finished\" | \"current\" | \"future\";\n\nexport interface Step {\n label: string;\n disabled?: boolean;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"div\">, \"onClick\"> {\n steps: Step[];\n currentStepNo: number;\n onClick?: (stepNo: number) => void;\n futureStepsClickable?: boolean;\n}\n\nconst BaseWizardStepsComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { steps, currentStepNo, onClick, futureStepsClickable = false, ...rest }: Props,\n ref\n) => {\n const getStepState = (stepNo: number): StepState => {\n if (currentStepNo === stepNo) {\n return \"current\";\n } else if (stepNo < currentStepNo) {\n return \"finished\";\n }\n return \"future\";\n };\n\n const getStepContent = (stepState: StepState, index: number, disabled?: boolean) => {\n const stepNumberString = String(index + 1);\n if (stepState === \"finished\") {\n return disabled ? null : <Icon className={classes[\"checkmark\"]} icon={Icons.Checkmark} />;\n } else {\n return <Fragment>{stepNumberString}</Fragment>;\n }\n };\n\n const generatedSteps = steps.map((step, index) => {\n const stepState = getStepState(index);\n const disabledStyleClassName = step.disabled ? classes[\"disabled\"] : \"\";\n const clickableClassName = futureStepsClickable ? classes[\"clickable\"] : \"\";\n\n return (\n <button\n key={step.label.toLowerCase().replace(/\\s/, \"-\")}\n disabled={\n step.disabled ||\n (stepState === \"future\" && !futureStepsClickable) ||\n stepState === \"current\"\n }\n aria-current={stepState === \"current\" ? \"step\" : undefined}\n onClick={() => onClick?.(index)}\n className={`${classes[\"wizard-element\"]} ${classes[stepState]} ${clickableClassName} ${disabledStyleClassName}`}\n >\n <div className={classes[\"number-wrapper\"]}>\n <span className={classes[\"number\"]}>\n {getStepContent(stepState, index, step.disabled)}\n </span>\n </div>\n <div className={classes[\"two-line-text-overflow\"]}>\n <span className={classes[\"label\"]}>{step.label}</span>\n </div>\n </button>\n );\n });\n\n return (\n <div {...rest} ref={ref} className={classes[\"wizard\"]}>\n {generatedSteps}\n </div>\n );\n};\n\nexport const BaseWizardSteps = React.forwardRef(BaseWizardStepsComponent);\n"],"names":["BaseWizardStepsComponent","steps","currentStepNo","onClick","futureStepsClickable","rest","ref","getStepState","stepNo","getStepContent","stepState","index","disabled","stepNumberString","String","React","createElement","Icon","className","classes","icon","Icons","Checkmark","Fragment","generatedSteps","map","step","disabledStyleClassName","clickableClassName","key","label","toLowerCase","replace","undefined","BaseWizardSteps","forwardRef"],"mappings":"4IAkCA,MAAMA,EAA4E,EAC9EC,QAAOC,gBAAeC,UAASC,uBAAuB,SAAUC,GAClEC,KAEA,MAAMC,EAAgBC,IACpB,GAAIN,IAAkBM,EACpB,MAAO,eACF,GAAIA,EAASN,EAClB,MAAO,WAET,MAAO,QAAQ,EAGjB,MAAMO,EAAiB,CAACC,EAAsBC,EAAeC,KAC3D,MAAMC,EAAmBC,OAAOH,EAAQ,GACxC,GAAID,IAAc,WAChB,OAAOE,EAAW,KAAOG,EAACC,cAAAC,EAAK,CAAAC,UAAWC,EAAQ,aAAcC,KAAMC,EAAMC,iBAE5E,OAAOP,EAACC,cAAAO,EAAU,KAAAV,EACnB,EAGH,MAAMW,EAAiBvB,EAAMwB,KAAI,CAACC,EAAMf,KACtC,MAAMD,EAAYH,EAAaI,GAC/B,MAAMgB,EAAyBD,EAAKd,SAAWO,EAAQ,YAAc,GACrE,MAAMS,EAAqBxB,EAAuBe,EAAQ,aAAe,GAEzE,OACEJ,0BACEc,IAAKH,EAAKI,MAAMC,cAAcC,QAAQ,KAAM,KAC5CpB,SACEc,EAAKd,UACJF,IAAc,WAAaN,GAC5BM,IAAc,UAEF,eAAAA,IAAc,UAAY,YAASuB,EACjD9B,QAAS,IAAMA,IAAO,MAAPA,SAAA,OAAA,EAAAA,EAAUQ,GACzBO,UAAW,GAAGC,EAAQ,qBAAqBA,EAAQT,MAAckB,KAAsBD,KAEvFZ,EAAAC,cAAA,MAAA,CAAKE,UAAWC,EAAQ,mBACtBJ,EAAAC,cAAA,OAAA,CAAME,UAAWC,EAAQ,WACtBV,EAAeC,EAAWC,EAAOe,EAAKd,YAG3CG,EAAAC,cAAA,MAAA,CAAKE,UAAWC,EAAQ,2BACtBJ,EAAAC,cAAA,OAAA,CAAME,UAAWC,EAAQ,UAAWO,EAAKI,QAG7C,IAGJ,OACEf,EAASC,cAAA,MAAA,IAAAX,EAAMC,IAAKA,EAAKY,UAAWC,EAAQ,WACzCK,EAEH,EAGS,MAAAU,EAAkBnB,EAAMoB,WAAWnC"}
@@ -1,2 +0,0 @@
1
- import e from "../../../lib/style-inject.js";var a='/*!\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 */.BaseWizardSteps-module_wizard__PBGXn{display:flex;padding:1rem}.BaseWizardSteps-module_wizard-element__8mT1Z{align-items:stretch;background-color:initial;border:0;display:flex;flex:1;flex-direction:column;margin:0;padding:0}.BaseWizardSteps-module_wizard-element__8mT1Z:focus-visible{outline:1px dashed var(--color-primary);outline-offset:1px}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3 .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva{border:2px solid var(--color-primary);color:var(--color-primary);font-weight:400}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3 .BaseWizardSteps-module_number-wrapper__pYap-:after,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3 .BaseWizardSteps-module_number-wrapper__pYap-:before{border-bottom:2px solid var(--color-primary)}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3 .BaseWizardSteps-module_label__xlae9{color:var(--color-primary)}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3:disabled .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva{border:2px solid var(--disabled);color:var(--disabled)}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3:disabled .BaseWizardSteps-module_label__xlae9{color:var(--greyed-out)}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3:enabled:active,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3:enabled:hover,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3:focus{cursor:pointer}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3:enabled:active .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3:enabled:hover .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3:focus .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva{background-color:var(--color-primary);color:var(--light)}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3:enabled:active .BaseWizardSteps-module_label__xlae9,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3:enabled:hover .BaseWizardSteps-module_label__xlae9,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3:focus .BaseWizardSteps-module_label__xlae9{text-decoration:underline}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_finished__OaPJ3:enabled:active .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva{border:none;margin:2px}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_current__4Szhl .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva{background-color:var(--color-primary);border:2px solid var(--color-primary);color:var(--light)}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_current__4Szhl .BaseWizardSteps-module_number-wrapper__pYap-:before{border-bottom:2px solid var(--color-primary)}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_current__4Szhl .BaseWizardSteps-module_label__xlae9{color:var(--color-primary);font-weight:700}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_current__4Szhl .BaseWizardSteps-module_two-line-text-overflow__Z3-hg{display:unset}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva{border:2px solid var(--color-primary);color:var(--color-primary)}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN .BaseWizardSteps-module_label__xlae9{color:var(--color-primary)}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN:enabled:active,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN:enabled:hover,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN:focus{cursor:pointer}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN:enabled:active .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN:enabled:hover .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN:focus .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva{background-color:var(--color-primary);color:var(--light)}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN:enabled:active .BaseWizardSteps-module_label__xlae9,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN:enabled:hover .BaseWizardSteps-module_label__xlae9,.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN:focus .BaseWizardSteps-module_label__xlae9{text-decoration:underline}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN:enabled:active .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva{border:none;margin:2px}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN:disabled .BaseWizardSteps-module_number-wrapper__pYap- .BaseWizardSteps-module_number__yqOva{border:2px solid var(--disabled);color:var(--disabled)}.BaseWizardSteps-module_wizard-element__8mT1Z.BaseWizardSteps-module_future__8m3tR.BaseWizardSteps-module_clickable__8vZqN:disabled .BaseWizardSteps-module_label__xlae9{color:var(--greyed-out)}.BaseWizardSteps-module_wizard-element__8mT1Z:first-child .BaseWizardSteps-module_number-wrapper__pYap-:before,.BaseWizardSteps-module_wizard-element__8mT1Z:last-child .BaseWizardSteps-module_number-wrapper__pYap-:after{border-bottom:none}.BaseWizardSteps-module_number-wrapper__pYap-{display:flex;flex-direction:row}.BaseWizardSteps-module_number-wrapper__pYap-:after,.BaseWizardSteps-module_number-wrapper__pYap-:before{border-bottom:2px solid var(--greyed-out);content:" ";margin-bottom:.8125rem;width:100%}.BaseWizardSteps-module_number__yqOva{align-items:center;background-color:var(--light);border:2px solid var(--wizard-step-indicator-future-color);border-radius:50%;box-sizing:initial;color:var(--wizard-step-indicator-future-color);display:flex;font-family:var(--font-family);font-size:1rem;font-weight:400;height:1.5rem;justify-content:center;line-height:var(--default-line-height);min-height:1.5rem;min-width:1.5rem;width:1.5rem}.BaseWizardSteps-module_two-line-text-overflow__Z3-hg{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:none;max-height:2rem;overflow:hidden;padding:.25rem 1rem 0}.BaseWizardSteps-module_label__xlae9{color:var(--default);font-family:var(--font-family);font-size:.75rem;line-height:1rem;overflow:hidden;text-align:center}.BaseWizardSteps-module_checkmark__3-aMX{font-size:.875rem}@media only screen and (min-width:30em){.BaseWizardSteps-module_two-line-text-overflow__Z3-hg{display:unset}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2VXaXphcmRTdGVwcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLHNDQUVFLFlBQWEsQ0FEYixZQUVGLENBRUEsOENBTUUsbUJBQW9CLENBRnBCLHdCQUE2QixDQUM3QixRQUFTLENBSlQsWUFBYSxDQUNiLE1BQU8sQ0FDUCxxQkFBc0IsQ0FLdEIsUUFBUyxDQURULFNBRUYsQ0FDQSw0REFDRSx1Q0FBd0MsQ0FDeEMsa0JBQ0YsQ0FDQSx5S0FDRSxxQ0FBc0MsQ0FDdEMsMEJBQTJCLENBQzNCLGVBQ0YsQ0FDQSxtUkFDRSw0Q0FDRixDQUNBLDBIQUNFLDBCQUNGLENBQ0Esa0xBQ0UsZ0NBQWlDLENBQ2pDLHFCQUNGLENBQ0EsbUlBQ0UsdUJBQ0YsQ0FDQSxrU0FDRSxjQUNGLENBQ0EsOGhCQUNFLHFDQUFzQyxDQUN0QyxrQkFDRixDQUNBLGlaQUNFLHlCQUNGLENBQ0Esd0xBQ0UsV0FBWSxDQUNaLFVBQ0YsQ0FD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WVudDogdmVydGljYWw7XG4gIG92ZXJmbG93OiBoaWRkZW47XG4gIHBhZGRpbmc6IDAuMjVyZW0gMXJlbSAwO1xufVxuXG4ubGFiZWwge1xuICBmb250LWZhbWlseTogdmFyKC0tZm9udC1mYW1pbHkpO1xuICBmb250LXNpemU6IDAuNzVyZW07XG4gIGxpbmUtaGVpZ2h0OiAxcmVtO1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICBjb2xvcjogdmFyKC0tZGVmYXVsdCk7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbn1cblxuLmNoZWNrbWFyayB7XG4gIGZvbnQtc2l6ZTogMC44NzVyZW07XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1pbi13aWR0aDogMzBlbSkge1xuICAudHdvLWxpbmUtdGV4dC1vdmVyZmxvdyB7XG4gICAgZGlzcGxheTogdW5zZXQ7XG4gIH1cbn0iXX0= */';var l={wizard:"BaseWizardSteps-module_wizard__PBGXn","wizard-element":"BaseWizardSteps-module_wizard-element__8mT1Z",finished:"BaseWizardSteps-module_finished__OaPJ3","number-wrapper":"BaseWizardSteps-module_number-wrapper__pYap-",number:"BaseWizardSteps-module_number__yqOva",label:"BaseWizardSteps-module_label__xlae9",current:"BaseWizardSteps-module_current__4Szhl","two-line-text-overflow":"BaseWizardSteps-module_two-line-text-overflow__Z3-hg",future:"BaseWizardSteps-module_future__8m3tR",clickable:"BaseWizardSteps-module_clickable__8vZqN",checkmark:"BaseWizardSteps-module_checkmark__3-aMX"};e(a);export{l as default};
2
- //# sourceMappingURL=BaseWizardSteps.module.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseWizardSteps.module.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import t,{Fragment as e,useContext as r,useEffect as o}from"react";import{WizardStateProvider as n,WizardStateContext as s}from"./WizardStateProvider.esm.js";import{setWizardState as c}from"./wizardStateReducer.esm.js";const a=(t,e)=>{const{dispatch:n}=r(s);o((()=>{n(c(t,e))}),[t,e])};const i=t=>{const{state:{currentStepNo:e}}=r(s);o((()=>{t(e)}),[e])};const m=({steps:r,mode:o,onStepChange:n,children:s})=>{a(r,o);i(n);return t.createElement(e,null,s)};const p=e=>{const{steps:r,initialStepNo:o=0,mode:s}=e;return t.createElement(n,{initialState:{steps:r,currentStepNo:o,mode:s}},t.createElement(m,{...e}))};export{p as Wizard};
2
- //# sourceMappingURL=Wizard.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Wizard.esm.js","sources":["../../../../../src/components/Wizard/Wizard.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, { Fragment, useContext, useEffect } from \"react\";\nimport { Step } from \"./BaseWizardSteps/BaseWizardSteps\";\nimport { WizardStateContext, WizardStateProvider } from \"./WizardStateProvider\";\nimport { setWizardState } from \"./wizardStateReducer\";\n\nexport type WizardMode = \"add\" | \"edit\";\n\nexport interface Props {\n steps: Step[];\n mode: WizardMode;\n initialStepNo?: number;\n onStepChange: (stepNo: number) => void;\n children: React.ReactNode;\n}\n\nconst useSetWizardState = (steps: Step[], mode: WizardMode) => {\n const { dispatch } = useContext(WizardStateContext);\n\n useEffect(() => {\n dispatch(setWizardState(steps, mode));\n }, [steps, mode]);\n};\n\nconst useStepChanging = (onStepChange: (stepNo: number) => void) => {\n const {\n state: { currentStepNo }\n } = useContext(WizardStateContext);\n\n useEffect(() => {\n onStepChange(currentStepNo);\n }, [currentStepNo]);\n};\n\n/**\n * @deprecated\n */\nconst WizardContent = ({ steps, mode, onStepChange, children }: Props) => {\n useSetWizardState(steps, mode);\n useStepChanging(onStepChange);\n\n return <Fragment>{children}</Fragment>;\n};\n\nexport const Wizard = (props: Props) => {\n const { steps, initialStepNo: currentStepNo = 0, mode } = props;\n return (\n <WizardStateProvider initialState={{ steps, currentStepNo, mode }}>\n <WizardContent {...props} />\n </WizardStateProvider>\n );\n};\n"],"names":["useSetWizardState","steps","mode","dispatch","useContext","WizardStateContext","useEffect","setWizardState","useStepChanging","onStepChange","state","currentStepNo","WizardContent","children","React","createElement","Fragment","Wizard","props","initialStepNo","WizardStateProvider","initialState"],"mappings":"2NA+BA,MAAMA,EAAoB,CAACC,EAAeC,KACxC,MAAMC,SAAEA,GAAaC,EAAWC,GAEhCC,GAAU,KACRH,EAASI,EAAeN,EAAOC,GAAM,GACpC,CAACD,EAAOC,GAAM,EAGnB,MAAMM,EAAmBC,IACvB,MACEC,OAAOC,cAAEA,IACPP,EAAWC,GAEfC,GAAU,KACRG,EAAaE,EAAc,GAC1B,CAACA,GAAe,EAMrB,MAAMC,EAAgB,EAAGX,QAAOC,OAAMO,eAAcI,eAClDb,EAAkBC,EAAOC,GACzBM,EAAgBC,GAEhB,OAAOK,EAACC,cAAAC,EAAU,KAAAH,EAAoB,EAG3B,MAAAI,EAAUC,IACrB,MAAMjB,MAAEA,EAAOkB,cAAeR,EAAgB,EAACT,KAAEA,GAASgB,EAC1D,OACEJ,EAAAC,cAACK,EAAmB,CAACC,aAAc,CAAEpB,QAAOU,gBAAeT,SACzDY,EAAAC,cAACH,EAAkB,IAAAM,IAErB"}
@@ -1,2 +0,0 @@
1
- import e,{useContext as t,Fragment as n,useMemo as o}from"react";import{Button as r}from"../../Button/Button.esm.js";import{WizardStateContext as s}from"../WizardStateProvider.esm.js";import{changeCurrentStepNo as c}from"../wizardStateReducer.esm.js";const l=(e,t)=>()=>e.findIndex(((e,n)=>n>t&&!e.disabled));const i=(e,t)=>()=>{const n=e.length-1-t;const o=[...e].reverse().findIndex(((e,t)=>t>n&&!e.disabled));if(o>0)return e.length-1-o;return-1};const a=(e,t,n)=>o(l(n,t),[e,t,n]);const d=(e,t,n)=>o(i(n,t),[e,t,n]);const m=({actions:o})=>{const{state:{mode:l,steps:i,currentStepNo:m},dispatch:u}=t(s);const f=a(l,m,i);const v=f!==-1;const p=d(l,m,i);const C=p!==-1;const k=!v||l==="edit";const b=e=>{if(e==="forward")v&&u(c(f));else C&&u(c(p))};const x=()=>{o.next.onClick(m)&&b("forward")};const w=()=>{var e,t;(t=(e=o.previous).onClick)===null||t===void 0?void 0:t.call(e);b("backward")};const E=()=>{o.saveAndClose.onClick(m)};return e.createElement(n,null,C&&e.createElement(r,{variant:"outline",onClick:w},o.previous.label),v&&e.createElement(r,{variant:l==="edit"?"outline":"fill",onClick:x},o.next.label),k&&e.createElement(r,{onClick:E},o.saveAndClose.label))};export{m as WizardActions};
2
- //# sourceMappingURL=WizardActions.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WizardActions.esm.js","sources":["../../../../../../src/components/Wizard/WizardActions/WizardActions.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, { Fragment, useContext, useMemo } from \"react\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { Step } from \"../BaseWizardSteps/BaseWizardSteps\";\nimport { WizardMode } from \"../Wizard\";\nimport { WizardStateContext } from \"../WizardStateProvider\";\nimport { changeCurrentStepNo } from \"../wizardStateReducer\";\n\nexport interface Props extends React.HTMLProps<HTMLDivElement> {\n actions: {\n previous: {\n label: string;\n onClick: () => void;\n previousButtonProps?: ButtonProps;\n };\n next: {\n label: string;\n onClick: (currentStepNo: number) => boolean;\n nextButtonProps?: ButtonProps;\n };\n saveAndClose: {\n label: string;\n onClick: (currentStepNo: number) => void;\n saveAndCloseButtonProps?: ButtonProps;\n };\n };\n}\n\nconst calculateNextStepNo = (steps: Step[], currentStepNo: number) => () =>\n steps.findIndex((step, stepNo) => stepNo > currentStepNo && !step.disabled);\n\nconst calculatePrevStepNo = (steps: Step[], currentStepNo: number) => () => {\n const reversedCurrentStepNo = steps.length - 1 - currentStepNo;\n const reversedPrevStepNo = [...steps]\n .reverse()\n .findIndex((step, stepNo) => stepNo > reversedCurrentStepNo && !step.disabled);\n if (reversedPrevStepNo > 0) {\n return steps.length - 1 - reversedPrevStepNo;\n }\n return -1;\n};\n\nconst useNextStepNo = (mode: WizardMode, currentStepNo: number, steps: Step[]) =>\n useMemo(calculateNextStepNo(steps, currentStepNo), [mode, currentStepNo, steps]);\n\nconst usePreviousStepNo = (mode: WizardMode, currentStepNo: number, steps: Step[]) =>\n useMemo(calculatePrevStepNo(steps, currentStepNo), [mode, currentStepNo, steps]);\n\n/**\n * @deprecated\n */\nexport const WizardActions = ({ actions }: Props) => {\n const {\n state: { mode, steps, currentStepNo },\n dispatch\n } = useContext(WizardStateContext);\n const nextStepNo = useNextStepNo(mode, currentStepNo, steps);\n const hasNextStep = nextStepNo !== -1;\n const previousStepNo = usePreviousStepNo(mode, currentStepNo, steps);\n const hasPreviousStep = previousStepNo !== -1;\n const isLastStepOrEditMode = !hasNextStep || mode === \"edit\";\n\n const changeStepNo = (direction: \"forward\" | \"backward\") => {\n if (direction === \"forward\") {\n hasNextStep && dispatch(changeCurrentStepNo(nextStepNo));\n } else {\n hasPreviousStep && dispatch(changeCurrentStepNo(previousStepNo));\n }\n };\n\n const onNextWrapper = () => {\n actions.next.onClick(currentStepNo) && changeStepNo(\"forward\");\n };\n\n const onPreviousWrapper = () => {\n actions.previous.onClick?.();\n changeStepNo(\"backward\");\n };\n\n const onSaveAndCloseWrapper = () => {\n actions.saveAndClose.onClick(currentStepNo);\n };\n\n return (\n <Fragment>\n {hasPreviousStep && (\n <Button variant=\"outline\" onClick={onPreviousWrapper}>\n {actions.previous.label}\n </Button>\n )}\n {hasNextStep && (\n <Button variant={mode === \"edit\" ? \"outline\" : \"fill\"} onClick={onNextWrapper}>\n {actions.next.label}\n </Button>\n )}\n {isLastStepOrEditMode && (\n <Button onClick={onSaveAndCloseWrapper}>{actions.saveAndClose.label}</Button>\n )}\n </Fragment>\n );\n};\n"],"names":["calculateNextStepNo","steps","currentStepNo","findIndex","step","stepNo","disabled","calculatePrevStepNo","reversedCurrentStepNo","length","reversedPrevStepNo","reverse","useNextStepNo","mode","useMemo","usePreviousStepNo","WizardActions","actions","state","dispatch","useContext","WizardStateContext","nextStepNo","hasNextStep","previousStepNo","hasPreviousStep","isLastStepOrEditMode","changeStepNo","direction","changeCurrentStepNo","onNextWrapper","next","onClick","onPreviousWrapper","_b","previous","onSaveAndCloseWrapper","saveAndClose","React","Fragment","createElement","Button","variant","label"],"mappings":"2PA2CA,MAAMA,EAAsB,CAACC,EAAeC,IAA0B,IACpED,EAAME,WAAU,CAACC,EAAMC,IAAWA,EAASH,IAAkBE,EAAKE,WAEpE,MAAMC,EAAsB,CAACN,EAAeC,IAA0B,KACpE,MAAMM,EAAwBP,EAAMQ,OAAS,EAAIP,EACjD,MAAMQ,EAAqB,IAAIT,GAC5BU,UACAR,WAAU,CAACC,EAAMC,IAAWA,EAASG,IAA0BJ,EAAKE,WACvE,GAAII,EAAqB,EACvB,OAAOT,EAAMQ,OAAS,EAAIC,EAE5B,OAAQ,CAAC,EAGX,MAAME,EAAgB,CAACC,EAAkBX,EAAuBD,IAC9Da,EAAQd,EAAoBC,EAAOC,GAAgB,CAACW,EAAMX,EAAeD,IAE3E,MAAMc,EAAoB,CAACF,EAAkBX,EAAuBD,IAClEa,EAAQP,EAAoBN,EAAOC,GAAgB,CAACW,EAAMX,EAAeD,UAK9De,EAAgB,EAAGC,cAC9B,MACEC,OAAOL,KAAEA,EAAIZ,MAAEA,EAAKC,cAAEA,GAAeiB,SACrCA,GACEC,EAAWC,GACf,MAAMC,EAAaV,EAAcC,EAAMX,EAAeD,GACtD,MAAMsB,EAAcD,KAAgB,EACpC,MAAME,EAAiBT,EAAkBF,EAAMX,EAAeD,GAC9D,MAAMwB,EAAkBD,KAAoB,EAC5C,MAAME,GAAwBH,GAAeV,IAAS,OAEtD,MAAMc,EAAgBC,IACpB,GAAIA,IAAc,UAChBL,GAAeJ,EAASU,EAAoBP,SAE5CG,GAAmBN,EAASU,EAAoBL,GACjD,EAGH,MAAMM,EAAgB,KACpBb,EAAQc,KAAKC,QAAQ9B,IAAkByB,EAAa,UAAU,EAGhE,MAAMM,EAAoB,cACxBC,KAAAjB,EAAQkB,UAASH,6CACjBL,EAAa,WAAW,EAG1B,MAAMS,EAAwB,KAC5BnB,EAAQoB,aAAaL,QAAQ9B,EAAc,EAG7C,OACEoC,gBAACC,EAAQ,KACNd,GACCa,EAAAE,cAACC,EAAO,CAAAC,QAAQ,UAAUV,QAASC,GAChChB,EAAQkB,SAASQ,OAGrBpB,GACCe,EAACE,cAAAC,EAAO,CAAAC,QAAS7B,IAAS,OAAS,UAAY,OAAQmB,QAASF,GAC7Db,EAAQc,KAAKY,OAGjBjB,GACCY,EAAAE,cAACC,EAAO,CAAAT,QAASI,GAAwBnB,EAAQoB,aAAaM,OAGlE"}
@@ -1,2 +0,0 @@
1
- import t,{createContext as e,useReducer as r}from"react";import{reducer as a}from"./wizardStateReducer.esm.js";const i=e({state:{},dispatch:()=>null});const c=({children:e,initialState:c})=>{const[o,s]=r(a,c);return t.createElement(i.Provider,{value:{state:o,dispatch:s}},e)};export{i as WizardStateContext,c as WizardStateProvider};
2
- //# sourceMappingURL=WizardStateProvider.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WizardStateProvider.esm.js","sources":["../../../../../src/components/Wizard/WizardStateProvider.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, { createContext, Dispatch, useReducer } from \"react\";\nimport { WizardActions, WizardStateType, reducer } from \"./wizardStateReducer\";\n\nconst WizardStateContext = createContext<{\n state: WizardStateType;\n dispatch: Dispatch<WizardActions>;\n}>({\n state: {} as WizardStateType,\n dispatch: () => null\n});\n\nexport interface Props {\n initialState: WizardStateType;\n children?: React.ReactNode;\n}\n\n/**\n * @deprecated\n */\nconst WizardStateProvider = ({ children, initialState }: Props) => {\n const [state, dispatch] = useReducer(reducer, initialState);\n return (\n <WizardStateContext.Provider value={{ state, dispatch }}>\n {children}\n </WizardStateContext.Provider>\n );\n};\n\nexport { WizardStateProvider, WizardStateContext };\n"],"names":["WizardStateContext","createContext","state","dispatch","WizardStateProvider","children","initialState","useReducer","reducer","React","createElement","Provider","value"],"mappings":"+GAmBM,MAAAA,EAAqBC,EAGxB,CACDC,MAAO,CAAqB,EAC5BC,SAAU,IAAM,OAWZ,MAAAC,EAAsB,EAAGC,WAAUC,mBACvC,MAAOJ,EAAOC,GAAYI,EAAWC,EAASF,GAC9C,OACEG,EAACC,cAAAV,EAAmBW,UAASC,MAAO,CAAEV,QAAOC,aAC1CE,EAEH"}
@@ -1,2 +0,0 @@
1
- import e,{useContext as t}from"react";import{WizardStateContext as r}from"../WizardStateProvider.esm.js";import{BaseWizardSteps as s}from"../BaseWizardSteps/BaseWizardSteps.esm.js";import{changeCurrentStepNo as o}from"../wizardStateReducer.esm.js";const a=({onStepClick:a,...i},p)=>{const{state:{currentStepNo:c,mode:m,steps:d},dispatch:n}=t(r);const f=e=>{a(c,e)&&n(o(e))};return e.createElement(s,{...i,ref:p,onClick:f,steps:d,currentStepNo:c,futureStepsClickable:m==="edit"})};const i=e.forwardRef(a);export{i as WizardSteps};
2
- //# sourceMappingURL=WizardSteps.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WizardSteps.esm.js","sources":["../../../../../../src/components/Wizard/WizardSteps/WizardSteps.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, { ForwardRefRenderFunction, ComponentPropsWithRef, useContext } from \"react\";\nimport { WizardStateContext } from \"../WizardStateProvider\";\nimport { BaseWizardSteps } from \"../BaseWizardSteps/BaseWizardSteps\";\nimport { changeCurrentStepNo } from \"../wizardStateReducer\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n onStepClick: (currentStepNo: number, selectedStepNo: number) => boolean;\n}\n\nconst WizardStepsComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { onStepClick, ...rest }: Props,\n ref\n) => {\n const {\n state: { currentStepNo, mode, steps },\n dispatch\n } = useContext(WizardStateContext);\n\n const onClick = (selectedStepNo: number) => {\n onStepClick(currentStepNo, selectedStepNo) && dispatch(changeCurrentStepNo(selectedStepNo));\n };\n\n return (\n <BaseWizardSteps\n {...rest}\n ref={ref}\n onClick={onClick}\n steps={steps}\n currentStepNo={currentStepNo}\n futureStepsClickable={mode === \"edit\"}\n />\n );\n};\n\n/**\n * @deprecated\n */\nexport const WizardSteps = React.forwardRef(WizardStepsComponent);\n"],"names":["WizardStepsComponent","onStepClick","rest","ref","state","currentStepNo","mode","steps","dispatch","useContext","WizardStateContext","onClick","selectedStepNo","changeCurrentStepNo","React","createElement","BaseWizardSteps","futureStepsClickable","WizardSteps","forwardRef"],"mappings":"wPAyBA,MAAMA,EAAwE,EAC1EC,iBAAgBC,GAClBC,KAEA,MACEC,OAAOC,cAAEA,EAAaC,KAAEA,EAAIC,MAAEA,GAAOC,SACrCA,GACEC,EAAWC,GAEf,MAAMC,EAAWC,IACfX,EAAYI,EAAeO,IAAmBJ,EAASK,EAAoBD,GAAgB,EAG7F,OACEE,EAAAC,cAACC,EAAe,IACVd,EACJC,IAAKA,EACLQ,QAASA,EACTJ,MAAOA,EACPF,cAAeA,EACfY,qBAAsBX,IAAS,QAEjC,EAMS,MAAAY,EAAcJ,EAAMK,WAAWnB"}
@@ -1,2 +0,0 @@
1
- const t=(t,e)=>({type:"SET_STATE",payload:{steps:t,mode:e}});const e=t=>({type:"CHANGE_CURRENT_STEP_NO",payload:t});const a=(t,e)=>{switch(e.type){case"SET_STATE":return{...t,...e.payload};case"CHANGE_CURRENT_STEP_NO":return{...t,currentStepNo:e.payload};default:return t}};export{e as changeCurrentStepNo,a as reducer,t as setWizardState};
2
- //# sourceMappingURL=wizardStateReducer.esm.js.map