@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.
- package/README.md +6 -0
- package/dist/cjs/DataGrid/DataGrid.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGrid.cjs.js.map +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridBody.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridBody.cjs.js.map +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.module.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilterPopover.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilterPopover.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilterService.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilterService.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilters.interfaces.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilters.interfaces.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.module.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.cjs.js.map +1 -1
- package/dist/cjs/Form/FileUpload/FileItem/FileItem.cjs.js +1 -1
- package/dist/cjs/Form/FileUpload/FileItem/FileItem.cjs.js.map +1 -1
- package/dist/cjs/Form/FileUpload/FileUpload.cjs.js +1 -1
- package/dist/cjs/Form/FileUpload/FileUpload.cjs.js.map +1 -1
- package/dist/cjs/Form/FileUpload/FileUpload.module.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/MultiOption.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/MultiOption.cjs.js.map +1 -1
- package/dist/cjs/Form/Select/MultiSelect/MultiSelect.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/MultiSelect.cjs.js.map +1 -1
- package/dist/cjs/Form/Select/MultiSelect/useSearch.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
- package/dist/cjs/Form/Select/SingleSelect/Select.cjs.js +1 -1
- package/dist/cjs/Form/Select/SingleSelect/Select.cjs.js.map +1 -1
- package/dist/cjs/Form/Select/SingleSelect/useSearch.cjs.js +1 -1
- package/dist/cjs/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -1
- package/dist/cjs/Icon/Icon.cjs.js +1 -1
- package/dist/cjs/Icon/Icon.cjs.js.map +1 -1
- package/dist/cjs/Icon/Icon.module.cjs.js +1 -1
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.cjs.js +1 -1
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.cjs.js.map +1 -1
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.module.cjs.js +1 -1
- package/dist/cjs/Notifications/NotificationProvider/NotificationContext.cjs.js +1 -1
- package/dist/cjs/Notifications/NotificationProvider/NotificationContext.cjs.js.map +1 -1
- package/dist/cjs/Pagination/Pagination.cjs.js +1 -1
- package/dist/cjs/Pagination/Pagination.cjs.js.map +1 -1
- package/dist/cjs/Popover/Popover.cjs.js +1 -1
- package/dist/cjs/Popover/Popover.cjs.js.map +1 -1
- package/dist/cjs/Tag/RemoveButton.module.cjs.js +1 -1
- package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js +1 -1
- package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
- package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js +2 -0
- package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.cjs.js.map +1 -0
- package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.cjs.js +2 -0
- package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.cjs.js.map +1 -0
- package/dist/cjs/src/components/DataGrid/DataGrid.d.ts +6 -0
- package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.d.ts +5 -0
- package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.d.ts +6 -0
- package/dist/cjs/src/components/DataGrid/DataGridBody/{DataGridRow.d.ts → DataGridRow/DataGridRow.d.ts} +8 -1
- package/dist/cjs/src/components/DataGrid/DataGridFilters/DataGridFilter.d.ts +15 -0
- package/dist/cjs/src/components/DataGrid/DataGridFilters/DataGridFilterPopover.d.ts +22 -0
- package/dist/cjs/src/components/DataGrid/DataGridFilters/DataGridFilterService.d.ts +15 -0
- package/dist/cjs/src/components/DataGrid/DataGridFilters/DataGridFilterTag.d.ts +12 -0
- package/dist/cjs/src/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.d.ts +57 -0
- package/dist/cjs/src/components/DataGrid/DataGridFilters/DataGridToolbar.d.ts +13 -0
- package/dist/cjs/src/components/DataGrid/DataGridHeader/DataGridHeader.d.ts +1 -0
- package/dist/cjs/src/components/DataGrid/testUtils.d.ts +13 -0
- package/dist/cjs/src/components/Form/FileUpload/FileUpload.d.ts +2 -1
- package/dist/cjs/src/components/Form/Select/MultiSelect/MultiSelect.test.d.ts +2 -3
- package/dist/cjs/src/components/Form/Select/MultiSelect/useSearch.d.ts +2 -12
- package/dist/cjs/src/components/Form/Select/Select.interfaces.d.ts +1 -11
- package/dist/cjs/src/components/Form/Select/SingleSelect/Select.test.d.ts +2 -3
- package/dist/cjs/src/components/Form/Select/SingleSelect/useSearch.d.ts +2 -12
- package/dist/cjs/src/components/Form/Select/useSelectPositionList.d.ts +2 -2
- package/dist/cjs/src/components/Icon/Icon.d.ts +2 -1
- package/dist/cjs/src/components/_BaseStyling_/BaseStyling.d.ts +0 -26
- package/dist/cjs/src/hooks/useFullHeightCollapse.cjs.js +2 -0
- package/dist/cjs/src/hooks/useFullHeightCollapse.cjs.js.map +1 -0
- package/dist/cjs/src/hooks/useFullHeightCollapse.d.ts +4 -0
- package/dist/cjs/src/hooks/usePosition.cjs.js +1 -1
- package/dist/cjs/src/hooks/usePosition.cjs.js.map +1 -1
- package/dist/cjs/src/index.cjs.js +1 -1
- package/dist/cjs/src/index.d.ts +10 -21
- package/dist/esm/DataGrid/DataGrid.esm.js +1 -1
- package/dist/esm/DataGrid/DataGrid.esm.js.map +1 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridBody.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridBody.esm.js.map +1 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.module.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.module.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilterPopover.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilterPopover.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilterService.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilterService.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilterTag.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilterTag.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilters.interfaces.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilters.interfaces.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.module.esm.js +2 -0
- package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.module.esm.js.map +1 -0
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.esm.js.map +1 -1
- package/dist/esm/Form/FileUpload/FileItem/FileItem.esm.js +1 -1
- package/dist/esm/Form/FileUpload/FileItem/FileItem.esm.js.map +1 -1
- package/dist/esm/Form/FileUpload/FileUpload.esm.js +1 -1
- package/dist/esm/Form/FileUpload/FileUpload.esm.js.map +1 -1
- package/dist/esm/Form/FileUpload/FileUpload.module.esm.js +1 -1
- package/dist/esm/Form/Select/MultiSelect/MultiOption.esm.js +1 -1
- package/dist/esm/Form/Select/MultiSelect/MultiOption.esm.js.map +1 -1
- package/dist/esm/Form/Select/MultiSelect/MultiSelect.esm.js +1 -1
- package/dist/esm/Form/Select/MultiSelect/MultiSelect.esm.js.map +1 -1
- package/dist/esm/Form/Select/MultiSelect/useSearch.esm.js +1 -1
- package/dist/esm/Form/Select/MultiSelect/useSearch.esm.js.map +1 -1
- package/dist/esm/Form/Select/SingleSelect/Select.esm.js +1 -1
- package/dist/esm/Form/Select/SingleSelect/Select.esm.js.map +1 -1
- package/dist/esm/Form/Select/SingleSelect/useSearch.esm.js +1 -1
- package/dist/esm/Form/Select/SingleSelect/useSearch.esm.js.map +1 -1
- package/dist/esm/Icon/Icon.esm.js +1 -1
- package/dist/esm/Icon/Icon.esm.js.map +1 -1
- package/dist/esm/Icon/Icon.module.esm.js +1 -1
- package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.esm.js +1 -1
- package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.esm.js.map +1 -1
- package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.module.esm.js +1 -1
- package/dist/esm/Notifications/NotificationProvider/NotificationContext.esm.js +1 -1
- package/dist/esm/Notifications/NotificationProvider/NotificationContext.esm.js.map +1 -1
- package/dist/esm/Pagination/Pagination.esm.js +1 -1
- package/dist/esm/Pagination/Pagination.esm.js.map +1 -1
- package/dist/esm/Popover/Popover.esm.js +1 -1
- package/dist/esm/Popover/Popover.esm.js.map +1 -1
- package/dist/esm/Tag/RemoveButton.module.esm.js +1 -1
- package/dist/esm/_BaseStyling_/BaseStyling.esm.js +1 -1
- package/dist/esm/_BaseStyling_/BaseStyling.esm.js.map +1 -1
- package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.esm.js +2 -0
- package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.esm.js.map +1 -0
- package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.esm.js +2 -0
- package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.esm.js.map +1 -0
- package/dist/esm/src/components/DataGrid/DataGrid.d.ts +6 -0
- package/dist/esm/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.d.ts +5 -0
- package/dist/esm/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.d.ts +6 -0
- package/dist/esm/src/components/DataGrid/DataGridBody/{DataGridRow.d.ts → DataGridRow/DataGridRow.d.ts} +8 -1
- package/dist/esm/src/components/DataGrid/DataGridFilters/DataGridFilter.d.ts +15 -0
- package/dist/esm/src/components/DataGrid/DataGridFilters/DataGridFilterPopover.d.ts +22 -0
- package/dist/esm/src/components/DataGrid/DataGridFilters/DataGridFilterService.d.ts +15 -0
- package/dist/esm/src/components/DataGrid/DataGridFilters/DataGridFilterTag.d.ts +12 -0
- package/dist/esm/src/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.d.ts +57 -0
- package/dist/esm/src/components/DataGrid/DataGridFilters/DataGridToolbar.d.ts +13 -0
- package/dist/esm/src/components/DataGrid/DataGridHeader/DataGridHeader.d.ts +1 -0
- package/dist/esm/src/components/DataGrid/testUtils.d.ts +13 -0
- package/dist/esm/src/components/Form/FileUpload/FileUpload.d.ts +2 -1
- package/dist/esm/src/components/Form/Select/MultiSelect/MultiSelect.test.d.ts +2 -3
- package/dist/esm/src/components/Form/Select/MultiSelect/useSearch.d.ts +2 -12
- package/dist/esm/src/components/Form/Select/Select.interfaces.d.ts +1 -11
- package/dist/esm/src/components/Form/Select/SingleSelect/Select.test.d.ts +2 -3
- package/dist/esm/src/components/Form/Select/SingleSelect/useSearch.d.ts +2 -12
- package/dist/esm/src/components/Form/Select/useSelectPositionList.d.ts +2 -2
- package/dist/esm/src/components/Icon/Icon.d.ts +2 -1
- package/dist/esm/src/components/_BaseStyling_/BaseStyling.d.ts +0 -26
- package/dist/esm/src/hooks/useFullHeightCollapse.d.ts +4 -0
- package/dist/esm/src/hooks/useFullHeightCollapse.esm.js +2 -0
- package/dist/esm/src/hooks/useFullHeightCollapse.esm.js.map +1 -0
- package/dist/esm/src/hooks/usePosition.esm.js +1 -1
- package/dist/esm/src/hooks/usePosition.esm.js.map +1 -1
- package/dist/esm/src/index.d.ts +10 -21
- package/dist/esm/src/index.esm.js +1 -1
- package/package.json +50 -49
- package/src/components/DataGrid/DataGrid.tsx +24 -10
- package/src/components/DataGrid/DataGridBody/DataGridBody.tsx +2 -2
- package/src/components/DataGrid/DataGridBody/{DataGridCell.module.scss → DataGridCell/DataGridCell.module.scss} +2 -2
- package/src/components/DataGrid/DataGridBody/{DataGridCell.tsx → DataGridCell/DataGridCell.tsx} +1 -1
- package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss +60 -0
- package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.tsx +39 -0
- package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss +21 -0
- package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.tsx +47 -0
- package/src/components/DataGrid/DataGridBody/{DataGridRow.module.scss → DataGridRow/DataGridRow.module.scss} +17 -1
- package/src/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.tsx +122 -0
- package/src/components/DataGrid/DataGridBody/__snapshots__/DataGridBody.test.tsx.snap +4 -4
- package/src/components/DataGrid/DataGridFilters/DataGridFilter.module.scss +105 -0
- package/src/components/DataGrid/DataGridFilters/DataGridFilter.tsx +150 -0
- package/src/components/DataGrid/DataGridFilters/DataGridFilterPopover.tsx +181 -0
- package/src/components/DataGrid/DataGridFilters/DataGridFilterService.ts +97 -0
- package/src/components/DataGrid/DataGridFilters/DataGridFilterTag.tsx +91 -0
- package/src/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.ts +84 -0
- package/src/components/{Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.scss → DataGrid/DataGridFilters/DataGridToolbar.module.scss} +27 -34
- package/src/components/DataGrid/DataGridFilters/DataGridToolbar.tsx +126 -0
- package/src/components/DataGrid/DataGridHeader/DataGridHeader.tsx +6 -1
- package/src/components/DataGrid/testUtils.ts +77 -0
- package/src/components/Form/FileUpload/FileItem/FileItem.tsx +5 -8
- package/src/components/Form/FileUpload/FileUpload.module.scss +9 -4
- package/src/components/Form/FileUpload/FileUpload.tsx +34 -15
- package/src/components/Form/Select/MultiSelect/MultiOption.tsx +4 -2
- package/src/components/Form/Select/MultiSelect/MultiSelect.tsx +1 -5
- package/src/components/Form/Select/MultiSelect/useSearch.tsx +6 -16
- package/src/components/Form/Select/Select.interfaces.ts +1 -9
- package/src/components/Form/Select/SingleSelect/Select.tsx +1 -5
- package/src/components/Form/Select/SingleSelect/useSearch.tsx +6 -18
- package/src/components/Icon/Icon.module.scss +5 -0
- package/src/components/Icon/Icon.tsx +2 -1
- package/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss +12 -15
- package/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.tsx +3 -5
- package/src/components/Notifications/NotificationProvider/NotificationContext.tsx +12 -16
- package/src/components/Pagination/Pagination.tsx +15 -6
- package/src/components/Popover/Popover.tsx +1 -1
- package/src/components/Tag/RemoveButton.module.scss +1 -0
- package/src/components/_BaseStyling_/BaseStyling.tsx +0 -36
- package/src/font/icomoon.eot +0 -0
- package/src/font/icomoon.svg +1 -0
- package/src/font/icomoon.ttf +0 -0
- package/src/font/icomoon.woff +0 -0
- package/src/font/selection.json +1 -1
- package/src/{components/Notifications/Snackbar/useSnackbar.ts → hooks/useFullHeightCollapse.ts} +12 -11
- package/src/hooks/usePosition.ts +3 -4
- package/src/index.ts +11 -25
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell.cjs.js +0 -2
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell.cjs.js.map +0 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell.module.cjs.js +0 -2
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow.cjs.js +0 -2
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow.cjs.js.map +0 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow.module.cjs.js +0 -2
- package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.cjs.js +0 -2
- package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.cjs.js.map +0 -1
- package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.cjs.js +0 -2
- package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.cjs.js.map +0 -1
- package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.cjs.js +0 -2
- package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.cjs.js.map +0 -1
- package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.cjs.js +0 -2
- package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.cjs.js.map +0 -1
- package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.cjs.js +0 -2
- package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.cjs.js.map +0 -1
- package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.cjs.js +0 -2
- package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.cjs.js.map +0 -1
- package/dist/cjs/Notifications/Snackbar/interfaces.cjs.js +0 -2
- package/dist/cjs/Notifications/Snackbar/interfaces.cjs.js.map +0 -1
- package/dist/cjs/Notifications/Snackbar/useSnackbar.cjs.js +0 -2
- package/dist/cjs/Notifications/Snackbar/useSnackbar.cjs.js.map +0 -1
- package/dist/cjs/StatusIndicator/StatusIndicator.cjs.js +0 -2
- package/dist/cjs/StatusIndicator/StatusIndicator.cjs.js.map +0 -1
- package/dist/cjs/StatusIndicator/StatusIndicator.module.cjs.js +0 -2
- package/dist/cjs/StatusIndicator/StatusIndicator.module.cjs.js.map +0 -1
- package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.cjs.js +0 -2
- package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.cjs.js.map +0 -1
- package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.module.cjs.js +0 -2
- package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.module.cjs.js.map +0 -1
- package/dist/cjs/Wizard/Wizard.cjs.js +0 -2
- package/dist/cjs/Wizard/Wizard.cjs.js.map +0 -1
- package/dist/cjs/Wizard/WizardActions/WizardActions.cjs.js +0 -2
- package/dist/cjs/Wizard/WizardActions/WizardActions.cjs.js.map +0 -1
- package/dist/cjs/Wizard/WizardStateProvider.cjs.js +0 -2
- package/dist/cjs/Wizard/WizardStateProvider.cjs.js.map +0 -1
- package/dist/cjs/Wizard/WizardSteps/WizardSteps.cjs.js +0 -2
- package/dist/cjs/Wizard/WizardSteps/WizardSteps.cjs.js.map +0 -1
- package/dist/cjs/Wizard/wizardStateReducer.cjs.js +0 -2
- package/dist/cjs/Wizard/wizardStateReducer.cjs.js.map +0 -1
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.d.ts +0 -21
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.d.ts +0 -20
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +0 -39
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.d.ts +0 -27
- package/dist/cjs/src/components/Notifications/Snackbar/interfaces.d.ts +0 -36
- package/dist/cjs/src/components/Notifications/Snackbar/useSnackbar.d.ts +0 -9
- package/dist/cjs/src/components/StatusIndicator/StatusIndicator.d.ts +0 -9
- package/dist/cjs/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.d.ts +0 -12
- package/dist/cjs/src/components/Wizard/Wizard.d.ts +0 -11
- package/dist/cjs/src/components/Wizard/WizardActions/WizardActions.d.ts +0 -25
- package/dist/cjs/src/components/Wizard/WizardStateProvider.d.ts +0 -15
- package/dist/cjs/src/components/Wizard/WizardSteps/WizardSteps.d.ts +0 -8
- package/dist/cjs/src/components/Wizard/WizardSteps/WizardSteps.test.d.ts +0 -1
- package/dist/cjs/src/components/Wizard/wizardStateReducer.d.ts +0 -24
- package/dist/esm/DataGrid/DataGridBody/DataGridCell.esm.js +0 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridCell.esm.js.map +0 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridCell.module.esm.js +0 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridRow.esm.js +0 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridRow.esm.js.map +0 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridRow.module.esm.js +0 -2
- package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.esm.js +0 -2
- package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.esm.js.map +0 -1
- package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.esm.js +0 -2
- package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.esm.js.map +0 -1
- package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.esm.js +0 -2
- package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.esm.js.map +0 -1
- package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.esm.js +0 -2
- package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.esm.js.map +0 -1
- package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.esm.js +0 -2
- package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.esm.js.map +0 -1
- package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.esm.js +0 -2
- package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.esm.js.map +0 -1
- package/dist/esm/Notifications/Snackbar/interfaces.esm.js +0 -2
- package/dist/esm/Notifications/Snackbar/interfaces.esm.js.map +0 -1
- package/dist/esm/Notifications/Snackbar/useSnackbar.esm.js +0 -2
- package/dist/esm/Notifications/Snackbar/useSnackbar.esm.js.map +0 -1
- package/dist/esm/StatusIndicator/StatusIndicator.esm.js +0 -2
- package/dist/esm/StatusIndicator/StatusIndicator.esm.js.map +0 -1
- package/dist/esm/StatusIndicator/StatusIndicator.module.esm.js +0 -2
- package/dist/esm/StatusIndicator/StatusIndicator.module.esm.js.map +0 -1
- package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.esm.js +0 -2
- package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.esm.js.map +0 -1
- package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.module.esm.js +0 -2
- package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.module.esm.js.map +0 -1
- package/dist/esm/Wizard/Wizard.esm.js +0 -2
- package/dist/esm/Wizard/Wizard.esm.js.map +0 -1
- package/dist/esm/Wizard/WizardActions/WizardActions.esm.js +0 -2
- package/dist/esm/Wizard/WizardActions/WizardActions.esm.js.map +0 -1
- package/dist/esm/Wizard/WizardStateProvider.esm.js +0 -2
- package/dist/esm/Wizard/WizardStateProvider.esm.js.map +0 -1
- package/dist/esm/Wizard/WizardSteps/WizardSteps.esm.js +0 -2
- package/dist/esm/Wizard/WizardSteps/WizardSteps.esm.js.map +0 -1
- package/dist/esm/Wizard/wizardStateReducer.esm.js +0 -2
- package/dist/esm/Wizard/wizardStateReducer.esm.js.map +0 -1
- package/dist/esm/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.d.ts +0 -21
- package/dist/esm/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.test.d.ts +0 -1
- package/dist/esm/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.d.ts +0 -20
- package/dist/esm/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.test.d.ts +0 -1
- package/dist/esm/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +0 -39
- package/dist/esm/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.test.d.ts +0 -1
- package/dist/esm/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.d.ts +0 -27
- package/dist/esm/src/components/Notifications/Snackbar/interfaces.d.ts +0 -36
- package/dist/esm/src/components/Notifications/Snackbar/useSnackbar.d.ts +0 -9
- package/dist/esm/src/components/Notifications/Snackbar/useSnackbar.test.d.ts +0 -1
- package/dist/esm/src/components/StatusIndicator/StatusIndicator.d.ts +0 -9
- package/dist/esm/src/components/StatusIndicator/StatusIndicator.test.d.ts +0 -1
- package/dist/esm/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.d.ts +0 -12
- package/dist/esm/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.test.d.ts +0 -1
- package/dist/esm/src/components/Wizard/Wizard.d.ts +0 -11
- package/dist/esm/src/components/Wizard/Wizard.test.d.ts +0 -1
- package/dist/esm/src/components/Wizard/WizardActions/WizardActions.d.ts +0 -25
- package/dist/esm/src/components/Wizard/WizardActions/WizardActions.test.d.ts +0 -1
- package/dist/esm/src/components/Wizard/WizardStateProvider.d.ts +0 -15
- package/dist/esm/src/components/Wizard/WizardSteps/WizardSteps.d.ts +0 -8
- package/dist/esm/src/components/Wizard/WizardSteps/WizardSteps.test.d.ts +0 -1
- package/dist/esm/src/components/Wizard/wizardStateReducer.d.ts +0 -24
- package/src/components/DataGrid/DataGridBody/DataGridRow.tsx +0 -58
- package/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.tsx +0 -92
- package/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.scss +0 -156
- package/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.tsx +0 -161
- package/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.tsx +0 -219
- package/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.tsx +0 -57
- package/src/components/Notifications/Snackbar/interfaces.ts +0 -62
- package/src/components/StatusIndicator/StatusIndicator.module.scss +0 -43
- package/src/components/StatusIndicator/StatusIndicator.tsx +0 -44
- package/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.module.scss +0 -214
- package/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.tsx +0 -93
- package/src/components/Wizard/Wizard.tsx +0 -67
- package/src/components/Wizard/WizardActions/WizardActions.tsx +0 -116
- package/src/components/Wizard/WizardStateProvider.tsx +0 -45
- package/src/components/Wizard/WizardSteps/WizardSteps.tsx +0 -54
- package/src/components/Wizard/wizardStateReducer.ts +0 -61
- /package/dist/cjs/DataGrid/DataGridBody/{DataGridCell.module.cjs.js.map → DataGridCell/DataGridCell.module.cjs.js.map} +0 -0
- /package/dist/cjs/DataGrid/DataGridBody/{DataGridRow.module.cjs.js.map → DataGridRow/DataGridRow.module.cjs.js.map} +0 -0
- /package/dist/cjs/src/components/DataGrid/DataGridBody/{DataGridCell.d.ts → DataGridCell/DataGridCell.d.ts} +0 -0
- /package/dist/cjs/src/components/DataGrid/DataGridBody/{DataGridCell.test.d.ts → DataGridCell/DataGridCell.test.d.ts} +0 -0
- /package/dist/cjs/src/components/DataGrid/DataGridBody/{DataGridRow.test.d.ts → DataGridDrawer/DataGridDrawerItem.test.d.ts} +0 -0
- /package/dist/{esm/src/components/DataGrid/DataGridBody → cjs/src/components/DataGrid/DataGridBody/DataGridRow}/DataGridRow.test.d.ts +0 -0
- /package/dist/cjs/src/components/{Notifications/Snackbar/SnackbarContainer/SnackbarContainer.test.d.ts → DataGrid/DataGridFilters/DataGridFilterTag.test.d.ts} +0 -0
- /package/dist/cjs/src/components/{Notifications/Snackbar/SnackbarItem/SnackbarItem.test.d.ts → DataGrid/DataGridFilters/DataGridToolbar.test.d.ts} +0 -0
- /package/dist/cjs/src/{components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.test.d.ts → hooks/useFullHeightCollapse.test.d.ts} +0 -0
- /package/dist/esm/DataGrid/DataGridBody/{DataGridCell.module.esm.js.map → DataGridCell/DataGridCell.module.esm.js.map} +0 -0
- /package/dist/esm/DataGrid/DataGridBody/{DataGridRow.module.esm.js.map → DataGridRow/DataGridRow.module.esm.js.map} +0 -0
- /package/dist/esm/src/components/DataGrid/DataGridBody/{DataGridCell.d.ts → DataGridCell/DataGridCell.d.ts} +0 -0
- /package/dist/esm/src/components/DataGrid/DataGridBody/{DataGridCell.test.d.ts → DataGridCell/DataGridCell.test.d.ts} +0 -0
- /package/dist/{cjs/src/components/Notifications/Snackbar/useSnackbar.test.d.ts → esm/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.test.d.ts} +0 -0
- /package/dist/{cjs/src/components/StatusIndicator/StatusIndicator.test.d.ts → esm/src/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.test.d.ts} +0 -0
- /package/dist/{cjs/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.test.d.ts → esm/src/components/DataGrid/DataGridFilters/DataGridFilterTag.test.d.ts} +0 -0
- /package/dist/{cjs/src/components/Wizard/Wizard.test.d.ts → esm/src/components/DataGrid/DataGridFilters/DataGridToolbar.test.d.ts} +0 -0
- /package/dist/{cjs/src/components/Wizard/WizardActions/WizardActions.test.d.ts → esm/src/hooks/useFullHeightCollapse.test.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataGridRow.cjs.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":"8NA2BA,MAAMA,EAA6E,EAC/EC,WAAUC,YAAWC,UAASC,YAAWC,UAASC,8BAA6BC,GACjFC,KAEA,MAAMC,EAAeC,EAAAA,WAAMC,SAASC,IAAIX,GAAkC,CAACY,EAAOC,KAChF,GAAID,EAAO,CACT,MAAME,EAAkBL,EAAAA,WAAMM,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,aAAQ,QAC5BrB,GAAaoB,EAAWE,KAAKtB,GAC7BE,GAAakB,EAAWE,KAAKD,EAAAA,WAAQ,YAErC,OACEb,oCAAQH,EAAMC,IAAKA,EAAKN,UAAWoB,EAAWG,KAAK,MAChDhB,EAEH,EAGS,MAAAiB,EAAchB,EAAAA,WAAMiB,WAAW3B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var i=require("../../../lib/style-inject.js");var e='/*!\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRhdGFHcmlkUm93Lm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztFQWNFLENBQ0YsK0JBRUUsc0RBQXVELENBRHZELGlCQUVGLENBQ0EsNkVBQ0UsNERBQ0YsQ0FDQSxzREFNRSxnREFBaUQsQ0FEakQsUUFBUyxDQUpULF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F0YS1ncmlkLXJvdy1iYWNrZ3JvdW5kLWNvbG9yKTtcbn1cbi5yb3c6bm90KC5sb2FkaW5nKTpob3ZlciB7XG4gIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWRhdGEtZ3JpZC1yb3ctaG92ZXItYmFja2dyb3VuZC1jb2xvcik7XG59XG4ucm93Om5vdCg6bGFzdC1jaGlsZCk6OmFmdGVyIHtcbiAgY29udGVudDogXCJcIjtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB3aWR0aDogMTAwJTtcbiAgbGVmdDogMDtcbiAgYm90dG9tOiAwO1xuICBib3JkZXItYm90dG9tOiAxcHggc29saWQgdmFyKC0tbGlnaHQtZ3JleS1ib3JkZXIpO1xufSJdfQ== */';var c={row:"DataGridRow-module_row__41IVt",loading:"DataGridRow-module_loading__RpedL"};i["default"](e);exports["default"]=c;
|
|
2
|
-
//# sourceMappingURL=DataGridRow.module.cjs.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("react");var t=require("./SnackbarContainer.module.cjs.js");var n=require("../SnackbarProvider/SnackbarStateProvider.cjs.js");function a(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var r=a(e);const s=()=>{const{snackbars:t}=e.useContext(n.SnackbarContext);const[a,r]=e.useState(0);const[s,c]=e.useState("flex-start");const o=8;const l=t.length>=3;e.useEffect((()=>{const e=t.map((e=>e.height));let n=e.reduce(((e,t)=>e+t),0);n+=(Math.min(t.length,3)-1)*o;if(l)setTimeout((()=>{c("flex-end")}),500);if(a>n&&s!=="flex-end")c("flex-end");else if(a<n&&s!=="flex-start")c("flex-start");r(n)}),[t]);return{height:a,justifyContent:s}};const c=({placement:e,children:n,zIndex:a,className:c,...o})=>{const{height:l,justifyContent:i}=s();return r["default"].createElement("div",{...o,style:{zIndex:a,height:l,justifyContent:i},className:`${t["default"]["snackbars"]} ${t["default"][e.horizontal]} ${t["default"][e.vertical]} ${c!==null&&c!==void 0?c:""}`},n)};exports.SnackbarContainer=c;
|
|
2
|
-
//# sourceMappingURL=SnackbarContainer.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SnackbarContainer.cjs.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":"sSAsCA,MAAMA,EAAsC,KAC1C,MAAMC,UAAEA,GAAcC,EAAUA,WAACC,EAAeA,iBAChD,MAAOC,EAAQC,GAAaC,EAAQA,SAAC,GACrC,MAAOC,EAAgBC,GAAqBF,EAAQA,SAA4B,cAChF,MAAMG,EAAwB,EAC9B,MAAMC,EAAiCT,EAAUU,QAAU,EAE3DC,EAAAA,WAAU,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,EAAAA,mCACMD,EACJE,MAAO,CAAEJ,SAAQtB,SAAQG,kBACzBoB,UAAW,GAAGI,EAAO,WAAC,gBAAgBA,EAAO,WAACP,EAAUQ,eACtDD,EAAO,WAACP,EAAUS,aAChBN,UAAAA,SAAS,EAATA,EAAa,MAEhBF,EAEH"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("../../../../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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNuYWNrYmFyQ29udGFpbmVyLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztFQWNFO0FBQ0Y7Ozs7Ozs7Ozs7Ozs7O0VBY0U7QUFDRjs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLHlDQU9FLGtCQUFzQixDQUN0QixRQUFTLENBTFQsVUFBVyxDQUVYLFdBQVksQ0FDWixlQUFnQixDQUZoQixTQUFVLENBSFYsaUJBQWtCLENBQ2xCLFNBT0YsQ0FFQSx3Q0FDRSxZQUNGLENBRUEsMENBQ0UsK0RBQ0YsQ0FDQSx1Q0FDRSwwQ0FDRSx1QkFDRixDQUNGLENBRUEsMkNBQ0UsZ0VBQ0YsQ0FDQSx1Q0FDRSwyQ0FDRSx1QkFDRixDQUNGLENBRUEsb0RBQ0UsR0FDRSwyQkFDRixDQUNBLEdBQ0UsdUJBQ0YsQ0FDRixDQUNBLHFEQUNFLEdBQ0UsdUJBQ0YsQ0FDQSxHQUNFLDJCQUNGLENBQ0Y7QUFDQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDJDQUlFLFlBQWEsQ0FDYixxQkFBc0IsQ0FKdEIsY0FBZSxDQU1mLHVCQUF5QixDQUR6QiwwQkFBMkIsQ0FF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7XG59XG4uc25hY2tiYXJzLmVuZCB7XG4gIHJpZ2h0OiAwO1xufVxuXG5AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtaW4td2lkdGg6IDM3LjVlbSkge1xuICAuc25hY2tiYXJzIHtcbiAgICB3aWR0aDogaW5pdGlhbDtcbiAgfVxuICAuc25hY2tiYXJzLmNlbnRlciB7XG4gICAgbGVmdDogY2FsYyg1MCUgLSAxOC43NXJlbSk7XG4gIH1cbn0iXX0= */';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["default"](n);exports["default"]=i;
|
|
2
|
-
//# sourceMappingURL=SnackbarContainer.module.cjs.js.map
|
package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SnackbarContainer.module.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("react");var t=require("../../../Button/IconButton.cjs.js");var r=require("../../../Icon/Icon.cjs.js");var a=require("./SnackbarItem.module.cjs.js");var n=require("../../../src/readyclasses.module.cjs.js");var c=require("../../../src/hooks/useAnimation.cjs.js");var o=require("../../../Typography/Typography.cjs.js");var s=require("../SnackbarProvider/SnackbarStateProvider.cjs.js");function l(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var u=l(e);const i="var(--snackbar-text-color)";const d=(t,r)=>{const a=e.useContext(s.SnackbarContext);e.useEffect((()=>{if(t.current)a.setSnackbarHeight(r,t.current.getBoundingClientRect().height)}),[t.current])};const f=({id:s,title:l,duration:f,variant:m,content:v,className:p,actions:b=[],onClose:j,closeButtonTitle:k})=>{const y=e.useRef();const E=()=>j(s);const{ref:I,animationStarted:g,startAnimation:h}=c.useAnimation(E);const C=!v&&!!l;const T=l&&!C;const N=v||C;d(I,s);e.useEffect((()=>{y.current=setTimeout((()=>h()),f);return()=>{y.current&&clearTimeout(y.current)}}),[]);const q=()=>{y.current&&clearTimeout(y.current)};const S=()=>{y.current=setTimeout((()=>h()),f)};const x=()=>{if(m==="error")return r.Icons.Error;if(m==="warning")return r.Icons.Warning;return m==="success"?r.Icons.CheckmarkCircleAlt:r.Icons.InfoCircle};const B=b.map(((e,t)=>u["default"].createElement("button",{key:t,...e,onClick:t=>{var r;j(s);(r=e.onClick)===null||r===void 0?void 0:r.call(e,t)},className:a["default"]["action-button"]},e.label)));const A=[a["default"]["snackbar"],a["default"][m],g?n["default"]["slide-out"]:n["default"]["slide-in"],p!==null&&p!==void 0?p:""].join(" ");return u["default"].createElement("div",{ref:I,"aria-live":"polite",className:A,onMouseEnter:q,onMouseLeave:S},u["default"].createElement("div",{className:a["default"]["outer-content-wrapper"]},u["default"].createElement(r.Icon,{icon:x(),className:a["default"]["icon"]}),u["default"].createElement("div",{className:a["default"]["content-wrapper"]},T&&u["default"].createElement(o.Typography,{className:a["default"]["title"],variant:"body-bold",tag:"span"},l),N&&u["default"].createElement(o.Typography,{className:a["default"]["content"],variant:"body"},C?l:v))),B.length>0&&u["default"].createElement("div",{className:a["default"]["actions"]},B),u["default"].createElement(t.IconButton,{id:a["default"]["close-btn"],onClick:()=>h(),title:k},u["default"].createElement(r.Icon,{icon:r.Icons.Times,color:i})))};exports.SnackbarItem=f;
|
|
2
|
-
//# sourceMappingURL=SnackbarItem.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SnackbarItem.cjs.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":"uiBA0BA,MAAMA,EAAY,6BAiBlB,MAAMC,EAA4B,CAChCC,EACAC,KAEA,MAAMC,EAAMC,aAAWC,EAAAA,iBAEvBC,EAAAA,WAAU,KACR,GAAIL,EAAkBM,QACpBJ,EAAIK,kBAAkBN,EAAYD,EAAkBM,QAAQE,wBAAwBC,OACrF,GACA,CAACT,EAAkBM,SAAS,EAMpB,MAAAI,EAAe,EAC1BC,KACAC,QACAC,WACAC,UACAC,UACAC,YACAC,UAAU,GACVC,UACAC,uBAEA,MAAMC,EAAeC,EAAAA,SACrB,MAAMC,EAAiB,IAAMJ,EAAQP,GACrC,MAAMY,IAAEA,EAAGC,iBAAEA,EAAgBC,eAAEA,GAAmBC,EAAAA,aAA6BJ,GAC/E,MAAMK,GAAgBZ,KAAaH,EACnC,MAAMgB,EAAchB,IAAUe,EAC9B,MAAME,EAA2Bd,GAAWY,EAE5C5B,EAA0BwB,EAAKZ,GAE/BN,EAAAA,WAAU,KACRe,EAAad,QAAUwB,YAAW,IAAML,KAAkBZ,GAC1D,MAAO,KACLO,EAAad,SAAWyB,aAAaX,EAAad,QAAQ,CAC3D,GACA,IAEH,MAAM0B,EAAe,KACnBZ,EAAad,SAAWyB,aAAaX,EAAad,QAAQ,EAG5D,MAAM2B,EAAe,KAC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S,GAAKhB,EAAAA,WAAKC,cAAA,MAAA,CAAA7B,UAAWmC,EAAO,WAAC,YAAaX,GAClEI,EAAAA,WAAAC,cAACgB,aACC,CAAAlD,GAAIwC,EAAO,WAAC,aACZJ,QAAS,IAAMtB,IACfb,MAAOO,GAEPyB,EAAAA,WAAAC,cAACW,OAAI,CAACC,KAAMtB,EAAAA,MAAM2B,MAAOC,MAAOjE,KAGpC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("../../../../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 */\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNuYWNrYmFySXRlbS5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRTtBQUNGOzs7Ozs7Ozs7Ozs7OztFQWNFO0FBQ0Y7Ozs7Ozs7Ozs7Ozs7O0VBY0UsQ0FDRixvQ0FPRSxrQkFBc0IsQ0FDdEIsUUFBUyxDQUxULFVBQVcsQ0FFWCxXQUFZLENBQ1osZUFBZ0IsQ0FGaEIsU0FBVSxDQUhWLGlCQUFrQixDQUNsQixTQU9GLENBRUEsbUNBQ0UsWUFDRixDQUVBLHFDQUNFLDBEQUNGLENBQ0EsdUNBQ0UscUNBQ0UsdUJBQ0YsQ0FDRixDQUVBLHNDQUNFLDJEQUNGLENBQ0EsdUNBQ0Usc0NBQ0UsdUJBQ0YsQ0FDRixDQUVBLCtDQUNFLEdBQ0UsMkJBQ0YsQ0FDQSxHQUNFLHVCQUNGLENBQ0YsQ0FDQSxnREFDRSxHQUNFLHVCQUNGLENBQ0EsR0FDRSwyQkFDRixDQUNGLENBQ0EscUNBS0Usa0JBQW1CLENBSG5CLDJDQUE0QyxDQUs1QyxxQkFBc0IsQ0FKdEIsWUFBYSxDQVFiLFdBQVksQ0FQWixTQUFXLENBSFgsWUFBYSxDQVFiLHVCQUF5QixDQUR6QiwwQkFBMkIsQ0FFM0Isc0NBQXVDLENBSnZDLFVBTUYsQ0FDQSx1Q0FDR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vdCg6ZGlzYWJsZWQpOmZvY3VzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tY29sb3ItYmxhY2sxMCk7XG59XG4uc25hY2tiYXIgLmFjdGlvbi1idXR0b246bm90KDpkaXNhYmxlZCk6YWN0aXZlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tY29sb3ItYmxhY2syMCk7XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1pbi13aWR0aDogMzcuNWVtKSB7XG4gIC5zbmFja2JhciB7XG4gICAgd2lkdGg6IG1pbi1jb250ZW50O1xuICAgIG1pbi13aWR0aDogMjVyZW07XG4gIH1cbn0iXX0= */';var c={"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"};e["default"](a);exports["default"]=c;
|
|
2
|
-
//# sourceMappingURL=SnackbarItem.module.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SnackbarItem.module.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("react");var t=require("react-dom");var n=require("./SnackbarStateProvider.cjs.js");var r=require("../interfaces.cjs.js");var a=require("../SnackbarContainer/SnackbarContainer.cjs.js");var c=require("../../../src/util/helper.cjs.js");var o=require("../SnackbarItem/SnackbarItem.cjs.js");var s=require("../../../src/hooks/useGetDomRoot.cjs.js");function i(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var u=i(e);const l=({closeButtonTitle:i,placement:l={vertical:"bottom",horizontal:"center"},autoHideDuration:d={long:8e3,short:4e3},stackSize:v=3,domRoot:S,children:b,className:k}={closeButtonTitle:""})=>{const[m,f]=e.useState([]);const q=e.useRef(null);const{root:j}=s.useGetDomRoot(S,q);const h=e=>{f((t=>[...t,e]))};const N=(e,t)=>{const n=m.map((n=>{if(n.id!==e)return n;return{...n,height:t}}));f(n)};const p=(e,t,n)=>{const r=e==="error";const a=n!==null&&n!==void 0?n:t;if(r||a)return d.long;return d.short};const E=(e,t,n={})=>{const a=r.isNewEnqueueSnackbarInterface(e);const o=a?e:g(e,t,n);const{variant:s="info",actions:i,duration:u=p(s,i,o.content),onClose:l}=o;const d={title:o.title,content:o.content,variant:s,className:o.className,actions:i,duration:u,height:0,id:c.generateID(15,o.title),onClose:l};h(d)};const g=(e,t,n={})=>({title:e,content:t,...n});const C=(e,t,n={})=>{const a=r.isNewEnqueueSnackbarInterface(e);const c=a?e:g(e,t,n);E({...c,variant:"success"})};const I=(e,t,n={})=>{const a=r.isNewEnqueueSnackbarInterface(e);const c=a?e:g(e,t,n);E({...c,variant:"error"})};const w=(e,t,n={})=>{const a=r.isNewEnqueueSnackbarInterface(e);const c=a?e:g(e,t,n);E({...c,variant:"warning"})};const P=e=>{f((t=>[...t].filter((t=>t.id!==e))))};const D=m.map(((e,t)=>t<v?u["default"].createElement(o.SnackbarItem,{...e,key:e.id,className:e.className,onClose:()=>{var t;P(e.id);(t=e.onClose)===null||t===void 0?void 0:t.call(e)},closeButtonTitle:i}):null));const R=t.createPortal(u["default"].createElement(a.SnackbarContainer,{placement:l,className:k},D),j);return u["default"].createElement(n.SnackbarContextProvider,{initialState:{enqueueSnackbar:E,enqueueSuccessSnackbar:C,enqueueErrorSnackbar:I,enqueueWarningSnackbar:w,setSnackbarHeight:N,snackbars:m}},b,u["default"].createElement("div",{ref:q},R))};exports.SnackbarProvider=l;
|
|
2
|
-
//# sourceMappingURL=SnackbarProvider.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SnackbarProvider.cjs.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":"sgBAoEaA,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,EAAQA,SAAS,IACnD,MAAMC,EAAiBC,SAAO,MAC9B,MAAMC,KAAEA,GAASC,EAAaA,cAACT,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,gCAA8BH,GACnD,MAAMI,EAAQF,EAAeF,EAAeK,EAAkBL,EAAcJ,EAASK,GACrF,MAAMP,QACJA,EAAU,OAAMC,QAChBA,EAAOW,SACPA,EAAWb,EAAYC,EAASC,EAASS,EAAMR,SAAQW,QACvDA,GACEH,EACJ,MAAMnB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,EAAiBC,EAAYA,aACjCP,2BAACQ,EAAiBA,kBAAA,CAAC1D,UAAWA,EAAWS,UAAWA,GACjDuC,GAEHjC,GAGF,OACEmC,aAAAC,cAACQ,EAAuBA,wBAAA,CACtBC,aAAc,CACZ5B,kBACAW,yBACAC,uBACAC,yBACAzB,oBACAV,cAGDF,EACD0C,EAAK,WAAAC,cAAA,MAAA,CAAAU,IAAKhD,GAAiB2C,GAE7B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("react");function r(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var n=r(e);const t=e.createContext({enqueueSnackbar:()=>null,enqueueSuccessSnackbar:()=>null,enqueueErrorSnackbar:()=>null,enqueueWarningSnackbar:()=>null,setSnackbarHeight:()=>null,snackbars:[]});const a=({children:e,initialState:r})=>n["default"].createElement(t.Provider,{value:r},e);exports.SnackbarContext=t;exports.SnackbarContextProvider=a;
|
|
2
|
-
//# sourceMappingURL=SnackbarStateProvider.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SnackbarStateProvider.cjs.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":"iLAmCM,MAAAA,EAAkBC,EAAAA,cAAoC,CAC1DC,gBAAiB,IAAM,KACvBC,uBAAwB,IAAM,KAC9BC,qBAAsB,IAAM,KAC5BC,uBAAwB,IAAM,KAC9BC,kBAAmB,IAAM,KACzBC,UAAW,KAWP,MAAAC,EAA0B,EAAGC,WAAUC,kBACpCC,EAAA,WAAAC,cAACZ,EAAgBa,SAAQ,CAACC,MAAOJ,GAAeD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.cjs.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":"sEA2DM,SAAUA,EAA8BC,GAC5C,OAAOA,IAAS,aAAeA,IAAS,WAAa,UAAWA,GAAQ,YAAaA,EACvF"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("react");var r=require("./SnackbarProvider/SnackbarStateProvider.cjs.js");const a=()=>{const a=e.useContext(r.SnackbarContext);return{enqueueWarningSnackbar:a.enqueueWarningSnackbar,enqueueErrorSnackbar:a.enqueueErrorSnackbar,enqueueSuccessSnackbar:a.enqueueSuccessSnackbar,enqueueSnackbar:a.enqueueSnackbar}};exports.useSnackbar=a;
|
|
2
|
-
//# sourceMappingURL=useSnackbar.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSnackbar.cjs.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":"8JAsBO,MAAMA,EAAc,KACzB,MAAMC,EAAMC,aAAWC,EAAAA,iBAEvB,MAAO,CACLC,uBAAwBH,EAAIG,uBAC5BC,qBAAsBJ,EAAII,qBAC1BC,uBAAwBL,EAAIK,uBAC5BC,gBAAiBN,EAAIM,gBACtB"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("react");var t=require("../Typography/Typography.cjs.js");var a=require("./StatusIndicator.module.cjs.js");function r(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var d=r(e);const u=({children:e,status:r,badgeProps:u,typographyProps:l,...s},o)=>{var i,n;return d["default"].createElement("div",{...s,className:a["default"]["status-indicator"],ref:o},d["default"].createElement("div",{className:`${a["default"]["status-badge"]} ${a["default"][r]} ${(i=u===null||u===void 0?void 0:u.className)!==null&&i!==void 0?i:""}`}),d["default"].createElement(t.Typography,{...l,spacing:{margin:"0"},variant:"body",tag:"div"},(n=l===null||l===void 0?void 0:l.children)!==null&&n!==void 0?n:e))};const l=d["default"].forwardRef(u);exports.StatusIndicator=l;
|
|
2
|
-
//# sourceMappingURL=StatusIndicator.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIndicator.cjs.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":"mRA2BA,MAAMA,EAA4E,EAC9EC,WAAUC,SAAQC,aAAYC,qBAAoBC,GACpDC,aAEA,OACEC,aAAAC,cAAA,MAAA,IAASH,EAAMI,UAAWC,aAAQ,oBAAqBJ,IAAKA,GAC1DC,EAAAA,WACEC,cAAA,MAAA,CAAAC,UAAW,GAAGC,EAAO,WAAC,mBAAmBA,EAAO,WAACR,OAAWS,EAAAR,IAAA,MAAAA,SAAA,OAAA,EAAAA,EAAYM,aAAS,MAAAE,SAAA,EAAAA,EAAI,OAEvFJ,EAAAA,WAAAC,cAACI,EAAAA,WAAU,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,EAAAA,WAAMY,WAAWnB"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var t=require("../../lib/style-inject.js");var e='/*!\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN0YXR1c0luZGljYXRvci5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLGdEQUVFLGtCQUFtQixDQURuQixZQUVGLENBRUEsNENBSUUsaUJBQWtCLENBRmxCLGFBQWUsQ0FDZixrQkFBb0IsQ0FGcEIsWUFJRixDQUVBLHNDQUNFLCtCQUNGLENBRUEscUNBQ0UsNkJBQ0YsQ0FFQSx1Q0FDRSxrQ0FDRixDQUVBLHVDQUNFLCtCQUNGIiwiZmlsZSI6IlN0YXR1c0luZGljYXRvci5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIVxuICogQ29weXJpZ2h0IDIwMjIgT25lV2VsY29tZSBCLlYuXG4gKlxuICogICAgTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqICAgIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqICAgIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICAgICBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiAgICBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiAgICBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiAgICBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqICAgIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqICAgIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG4uc3RhdHVzLWluZGljYXRvciB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG59XG5cbi5zdGF0dXMtYmFkZ2Uge1xuICB3aWR0aDogMC43NXJlbTtcbiAgaGVpZ2h0OiAwLjc1cmVtO1xuICBtYXJnaW4tcmlnaHQ6IDAuNXJlbTtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xufVxuXG4uYWN0aXZlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tc3VjY2Vzcyk7XG59XG5cbi5lcnJvciB7XG4gIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWVycm9yKTtcbn1cblxuLm5ldXRyYWwge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1ncmV5ZWQtb3V0KTtcbn1cblxuLndhcm5pbmcge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS13YXJuaW5nKTtcbn0iXX0= */';var i={"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["default"](e);exports["default"]=i;
|
|
2
|
-
//# sourceMappingURL=StatusIndicator.module.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIndicator.module.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("react");var t=require("./BaseWizardSteps.module.cjs.js");var a=require("../../Icon/Icon.cjs.js");function r(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var l=r(e);const n=({steps:r,currentStepNo:n,onClick:s,futureStepsClickable:u=false,...c},d)=>{const f=e=>{if(n===e)return"current";else if(e<n)return"finished";return"future"};const i=(r,n,s)=>{const u=String(n+1);if(r==="finished")return s?null:l["default"].createElement(a.Icon,{className:t["default"]["checkmark"],icon:a.Icons.Checkmark});else return l["default"].createElement(e.Fragment,null,u)};const o=r.map(((e,a)=>{const r=f(a);const n=e.disabled?t["default"]["disabled"]:"";const c=u?t["default"]["clickable"]:"";return l["default"].createElement("button",{key:e.label.toLowerCase().replace(/\s/,"-"),disabled:e.disabled||r==="future"&&!u||r==="current","aria-current":r==="current"?"step":void 0,onClick:()=>s===null||s===void 0?void 0:s(a),className:`${t["default"]["wizard-element"]} ${t["default"][r]} ${c} ${n}`},l["default"].createElement("div",{className:t["default"]["number-wrapper"]},l["default"].createElement("span",{className:t["default"]["number"]},i(r,a,e.disabled))),l["default"].createElement("div",{className:t["default"]["two-line-text-overflow"]},l["default"].createElement("span",{className:t["default"]["label"]},e.label)))}));return l["default"].createElement("div",{...c,ref:d,className:t["default"]["wizard"]},o)};const s=l["default"].forwardRef(n);exports.BaseWizardSteps=s;
|
|
2
|
-
//# sourceMappingURL=BaseWizardSteps.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseWizardSteps.cjs.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":"0QAkCA,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,EAAC,WAAAC,cAAAC,EAAIA,KAAC,CAAAC,UAAWC,EAAO,WAAC,aAAcC,KAAMC,EAAAA,MAAMC,iBAE5E,OAAOP,EAAC,WAAAC,cAAAO,EAAQA,SAAE,KAAAV,EACnB,EAGH,MAAMW,EAAiBvB,EAAMwB,KAAI,CAACC,EAAMf,KACtC,MAAMD,EAAYH,EAAaI,GAC/B,MAAMgB,EAAyBD,EAAKd,SAAWO,EAAAA,WAAQ,YAAc,GACrE,MAAMS,EAAqBxB,EAAuBe,EAAO,WAAC,aAAe,GAEzE,OACEJ,EAAAA,mCACEc,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,EAAAA,WAAQ,qBAAqBA,EAAO,WAACT,MAAckB,KAAsBD,KAEvFZ,EAAA,WAAAC,cAAA,MAAA,CAAKE,UAAWC,EAAAA,WAAQ,mBACtBJ,EAAAA,WAAAC,cAAA,OAAA,CAAME,UAAWC,EAAO,WAAC,WACtBV,EAAeC,EAAWC,EAAOe,EAAKd,YAG3CG,EAAA,WAAAC,cAAA,MAAA,CAAKE,UAAWC,EAAAA,WAAQ,2BACtBJ,EAAAA,WAAAC,cAAA,OAAA,CAAME,UAAWC,EAAAA,WAAQ,UAAWO,EAAKI,QAG7C,IAGJ,OACEf,EAAS,WAAAC,cAAA,MAAA,IAAAX,EAAMC,IAAKA,EAAKY,UAAWC,EAAO,WAAC,WACzCK,EAEH,EAGS,MAAAU,EAAkBnB,EAAAA,WAAMoB,WAAWnC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("../../../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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2VXaXphcmRTdGVwcy5tb2R1bGUuc2NzcyJdLCJuYW1lcy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XX0= */';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["default"](a);exports["default"]=l;
|
|
2
|
-
//# sourceMappingURL=BaseWizardSteps.module.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseWizardSteps.module.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("react");var t=require("./WizardStateProvider.cjs.js");var r=require("./wizardStateReducer.cjs.js");function a(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var n=a(e);const s=(a,n)=>{const{dispatch:s}=e.useContext(t.WizardStateContext);e.useEffect((()=>{s(r.setWizardState(a,n))}),[a,n])};const o=r=>{const{state:{currentStepNo:a}}=e.useContext(t.WizardStateContext);e.useEffect((()=>{r(a)}),[a])};const c=({steps:t,mode:r,onStepChange:a,children:c})=>{s(t,r);o(a);return n["default"].createElement(e.Fragment,null,c)};const i=e=>{const{steps:r,initialStepNo:a=0,mode:s}=e;return n["default"].createElement(t.WizardStateProvider,{initialState:{steps:r,currentStepNo:a,mode:s}},n["default"].createElement(c,{...e}))};exports.Wizard=i;
|
|
2
|
-
//# sourceMappingURL=Wizard.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Wizard.cjs.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":"4QA+BA,MAAMA,EAAoB,CAACC,EAAeC,KACxC,MAAMC,SAAEA,GAAaC,EAAUA,WAACC,EAAkBA,oBAElDC,EAAAA,WAAU,KACRH,EAASI,EAAcA,eAACN,EAAOC,GAAM,GACpC,CAACD,EAAOC,GAAM,EAGnB,MAAMM,EAAmBC,IACvB,MACEC,OAAOC,cAAEA,IACPP,EAAAA,WAAWC,EAAAA,oBAEfC,EAAAA,WAAU,KACRG,EAAaE,EAAc,GAC1B,CAACA,GAAe,EAMrB,MAAMC,EAAgB,EAAGX,QAAOC,OAAMO,eAAcI,eAClDb,EAAkBC,EAAOC,GACzBM,EAAgBC,GAEhB,OAAOK,EAAC,WAAAC,cAAAC,EAAQA,SAAE,KAAAH,EAAoB,EAG3B,MAAAI,EAAUC,IACrB,MAAMjB,MAAEA,EAAOkB,cAAeR,EAAgB,EAACT,KAAEA,GAASgB,EAC1D,OACEJ,EAAA,WAAAC,cAACK,sBAAmB,CAACC,aAAc,CAAEpB,QAAOU,gBAAeT,SACzDY,EAAA,WAAAC,cAACH,EAAkB,IAAAM,IAErB"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("react");var t=require("../../Button/Button.cjs.js");var n=require("../WizardStateProvider.cjs.js");var r=require("../wizardStateReducer.cjs.js");function o(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var a=o(e);const s=(e,t)=>()=>e.findIndex(((e,n)=>n>t&&!e.disabled));const c=(e,t)=>()=>{const n=e.length-1-t;const r=[...e].reverse().findIndex(((e,t)=>t>n&&!e.disabled));if(r>0)return e.length-1-r;return-1};const l=(t,n,r)=>e.useMemo(s(r,n),[t,n,r]);const i=(t,n,r)=>e.useMemo(c(r,n),[t,n,r]);const u=({actions:o})=>{const{state:{mode:s,steps:c,currentStepNo:u},dispatch:d}=e.useContext(n.WizardStateContext);const v=l(s,u,c);const f=v!==-1;const C=i(s,u,c);const p=C!==-1;const b=!f||s==="edit";const j=e=>{if(e==="forward")f&&d(r.changeCurrentStepNo(v));else p&&d(r.changeCurrentStepNo(C))};const m=()=>{o.next.onClick(u)&&j("forward")};const x=()=>{var e,t;(t=(e=o.previous).onClick)===null||t===void 0?void 0:t.call(e);j("backward")};const k=()=>{o.saveAndClose.onClick(u)};return a["default"].createElement(e.Fragment,null,p&&a["default"].createElement(t.Button,{variant:"outline",onClick:x},o.previous.label),f&&a["default"].createElement(t.Button,{variant:s==="edit"?"outline":"fill",onClick:m},o.next.label),b&&a["default"].createElement(t.Button,{onClick:k},o.saveAndClose.label))};exports.WizardActions=u;
|
|
2
|
-
//# sourceMappingURL=WizardActions.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WizardActions.cjs.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":"0TA2CA,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,EAAOA,QAACd,EAAoBC,EAAOC,GAAgB,CAACW,EAAMX,EAAeD,IAE3E,MAAMc,EAAoB,CAACF,EAAkBX,EAAuBD,IAClEa,EAAOA,QAACP,EAAoBN,EAAOC,GAAgB,CAACW,EAAMX,EAAeD,UAK9De,EAAgB,EAAGC,cAC9B,MACEC,OAAOL,KAAEA,EAAIZ,MAAEA,EAAKC,cAAEA,GAAeiB,SACrCA,GACEC,aAAWC,EAAAA,oBACf,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,sBAAoBP,SAE5CG,GAAmBN,EAASU,sBAAoBL,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,2BAACC,EAAAA,SAAQ,KACNd,GACCa,EAAAA,WAAAE,cAACC,EAAMA,OAAC,CAAAC,QAAQ,UAAUV,QAASC,GAChChB,EAAQkB,SAASQ,OAGrBpB,GACCe,EAAC,WAAAE,cAAAC,EAAMA,OAAC,CAAAC,QAAS7B,IAAS,OAAS,UAAY,OAAQmB,QAASF,GAC7Db,EAAQc,KAAKY,OAGjBjB,GACCY,EAAA,WAAAE,cAACC,EAAAA,OAAO,CAAAT,QAASI,GAAwBnB,EAAQoB,aAAaM,OAGlE"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("react");var t=require("./wizardStateReducer.cjs.js");function r(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var a=r(e);const u=e.createContext({state:{},dispatch:()=>null});const c=({children:r,initialState:c})=>{const[i,d]=e.useReducer(t.reducer,c);return a["default"].createElement(u.Provider,{value:{state:i,dispatch:d}},r)};exports.WizardStateContext=u;exports.WizardStateProvider=c;
|
|
2
|
-
//# sourceMappingURL=WizardStateProvider.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WizardStateProvider.cjs.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":"8NAmBM,MAAAA,EAAqBC,EAAAA,cAGxB,CACDC,MAAO,CAAqB,EAC5BC,SAAU,IAAM,OAWZ,MAAAC,EAAsB,EAAGC,WAAUC,mBACvC,MAAOJ,EAAOC,GAAYI,EAAAA,WAAWC,EAAAA,QAASF,GAC9C,OACEG,aAACC,cAAAV,EAAmBW,UAASC,MAAO,CAAEV,QAAOC,aAC1CE,EAEH"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var e=require("react");var t=require("../WizardStateProvider.cjs.js");var r=require("../BaseWizardSteps/BaseWizardSteps.cjs.js");var a=require("../wizardStateReducer.cjs.js");function s(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var u=s(e);const c=({onStepClick:s,...c},i)=>{const{state:{currentStepNo:o,mode:d,steps:n},dispatch:p}=e.useContext(t.WizardStateContext);const S=e=>{s(o,e)&&p(a.changeCurrentStepNo(e))};return u["default"].createElement(r.BaseWizardSteps,{...c,ref:i,onClick:S,steps:n,currentStepNo:o,futureStepsClickable:d==="edit"})};const i=u["default"].forwardRef(c);exports.WizardSteps=i;
|
|
2
|
-
//# sourceMappingURL=WizardSteps.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WizardSteps.cjs.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":"yUAyBA,MAAMA,EAAwE,EAC1EC,iBAAgBC,GAClBC,KAEA,MACEC,OAAOC,cAAEA,EAAaC,KAAEA,EAAIC,MAAEA,GAAOC,SACrCA,GACEC,aAAWC,EAAAA,oBAEf,MAAMC,EAAWC,IACfX,EAAYI,EAAeO,IAAmBJ,EAASK,EAAmBA,oBAACD,GAAgB,EAG7F,OACEE,EAAAA,WAAAC,cAACC,EAAeA,gBAAA,IACVd,EACJC,IAAKA,EACLQ,QAASA,EACTJ,MAAOA,EACPF,cAAeA,EACfY,qBAAsBX,IAAS,QAEjC,EAMS,MAAAY,EAAcJ,EAAAA,WAAMK,WAAWnB"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});const e=(e,t)=>({type:"SET_STATE",payload:{steps:e,mode:t}});const t=e=>({type:"CHANGE_CURRENT_STEP_NO",payload:e});const r=(e,t)=>{switch(t.type){case"SET_STATE":return{...e,...t.payload};case"CHANGE_CURRENT_STEP_NO":return{...e,currentStepNo:t.payload};default:return e}};exports.changeCurrentStepNo=t;exports.reducer=r;exports.setWizardState=e;
|
|
2
|
-
//# sourceMappingURL=wizardStateReducer.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wizardStateReducer.cjs.js","sources":["../../../../../src/components/Wizard/wizardStateReducer.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Reducer } from \"react\";\nimport { Step } from \"./BaseWizardSteps/BaseWizardSteps\";\nimport { WizardMode } from \"./Wizard\";\n\ntype WizardStateType = {\n steps: Step[];\n currentStepNo: number;\n mode: WizardMode;\n};\n\ninterface SetWizardStateAction {\n type: \"SET_STATE\";\n payload: {\n steps: Step[];\n mode: WizardMode;\n };\n}\n\ninterface ChangeCurrentStepNoAction {\n type: \"CHANGE_CURRENT_STEP_NO\";\n payload: number;\n}\n\nconst setWizardState = (steps: Step[], mode: WizardMode): SetWizardStateAction => {\n return { type: \"SET_STATE\", payload: { steps, mode } };\n};\n\nconst changeCurrentStepNo = (currentStepNo: number): ChangeCurrentStepNoAction => {\n return { type: \"CHANGE_CURRENT_STEP_NO\", payload: currentStepNo };\n};\n\ntype WizardActions = SetWizardStateAction | ChangeCurrentStepNoAction;\n\nconst reducer: Reducer<WizardStateType, WizardActions> = (state, action) => {\n switch (action.type) {\n case \"SET_STATE\":\n return { ...state, ...action.payload };\n case \"CHANGE_CURRENT_STEP_NO\":\n return { ...state, currentStepNo: action.payload };\n default:\n return state;\n }\n};\n\nexport { setWizardState, changeCurrentStepNo, reducer, WizardActions, WizardStateType };\n"],"names":["setWizardState","steps","mode","type","payload","changeCurrentStepNo","currentStepNo","reducer","state","action"],"mappings":"sEAuCA,MAAMA,EAAiB,CAACC,EAAeC,KAC9B,CAAEC,KAAM,YAAaC,QAAS,CAAEH,QAAOC,UAGhD,MAAMG,EAAuBC,IACpB,CAAEH,KAAM,yBAA0BC,QAASE,IAKpD,MAAMC,EAAmD,CAACC,EAAOC,KAC/D,OAAQA,EAAON,MACb,IAAK,YACH,MAAO,IAAKK,KAAUC,EAAOL,SAC/B,IAAK,yBACH,MAAO,IAAKI,EAAOF,cAAeG,EAAOL,SAC3C,QACE,OAAOI,EACV"}
|
package/dist/cjs/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated
|
|
4
|
-
*/
|
|
5
|
-
export interface Placement {
|
|
6
|
-
vertical: "top" | "bottom";
|
|
7
|
-
horizontal: "start" | "center" | "end";
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated
|
|
11
|
-
*/
|
|
12
|
-
export interface Props {
|
|
13
|
-
placement: Placement;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
zIndex?: number;
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated
|
|
20
|
-
*/
|
|
21
|
-
export declare const SnackbarContainer: ({ placement, children, zIndex, className, ...rest }: Props) => React.JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Variant, Actions } from "../interfaces";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated
|
|
5
|
-
*/
|
|
6
|
-
export interface Props {
|
|
7
|
-
id: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
duration: number;
|
|
10
|
-
variant: Variant;
|
|
11
|
-
className?: string;
|
|
12
|
-
onClose: (key: string) => void;
|
|
13
|
-
closeButtonTitle: string;
|
|
14
|
-
content?: string;
|
|
15
|
-
actions?: Actions;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated
|
|
19
|
-
*/
|
|
20
|
-
export declare const SnackbarItem: ({ id, title, duration, variant, content, className, actions, onClose, closeButtonTitle }: Props) => React.JSX.Element;
|
package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { Actions, Variant } from "../interfaces";
|
|
3
|
-
import { Placement } from "../SnackbarContainer/SnackbarContainer";
|
|
4
|
-
/** Short msg is when only title is provided. Long one when content or/and actions are provided (or type is error). */
|
|
5
|
-
interface Duration {
|
|
6
|
-
long: number;
|
|
7
|
-
short: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated
|
|
11
|
-
*/
|
|
12
|
-
export interface Props {
|
|
13
|
-
closeButtonTitle: string;
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
placement?: Placement;
|
|
16
|
-
stackSize?: number;
|
|
17
|
-
domRoot?: HTMLElement;
|
|
18
|
-
autoHideDuration?: Duration;
|
|
19
|
-
className?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated
|
|
23
|
-
*/
|
|
24
|
-
export interface Item {
|
|
25
|
-
id: string;
|
|
26
|
-
title?: string;
|
|
27
|
-
duration: number;
|
|
28
|
-
className?: string;
|
|
29
|
-
height: number;
|
|
30
|
-
variant: Variant;
|
|
31
|
-
content?: string;
|
|
32
|
-
actions?: Actions;
|
|
33
|
-
onClose?: () => void;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* @deprecated
|
|
37
|
-
*/
|
|
38
|
-
export declare const SnackbarProvider: ({ closeButtonTitle, placement, autoHideDuration, stackSize, domRoot, children, className }?: Props) => React.JSX.Element;
|
|
39
|
-
export {};
|
package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DeprecatedEnqueueSnackbarType } from "../interfaces";
|
|
3
|
-
import { Item } from "./SnackbarProvider";
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated
|
|
6
|
-
*/
|
|
7
|
-
interface SnackbarContextProps {
|
|
8
|
-
enqueueSnackbar: DeprecatedEnqueueSnackbarType;
|
|
9
|
-
enqueueSuccessSnackbar: DeprecatedEnqueueSnackbarType;
|
|
10
|
-
enqueueWarningSnackbar: DeprecatedEnqueueSnackbarType;
|
|
11
|
-
enqueueErrorSnackbar: DeprecatedEnqueueSnackbarType;
|
|
12
|
-
setSnackbarHeight: (id: string, height: number) => void;
|
|
13
|
-
snackbars: Item[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
declare const SnackbarContext: React.Context<SnackbarContextProps>;
|
|
19
|
-
interface Props {
|
|
20
|
-
initialState: SnackbarContextProps;
|
|
21
|
-
children?: React.ReactNode;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated
|
|
25
|
-
*/
|
|
26
|
-
declare const SnackbarContextProvider: ({ children, initialState }: Props) => React.JSX.Element;
|
|
27
|
-
export { SnackbarContextProvider, SnackbarContext, SnackbarContextProps };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated
|
|
4
|
-
*/
|
|
5
|
-
export type Variant = "info" | "success" | "error" | "warning";
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated
|
|
8
|
-
*/
|
|
9
|
-
export type Actions = (ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
10
|
-
label: string;
|
|
11
|
-
})[];
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated
|
|
14
|
-
*/
|
|
15
|
-
export interface SnackbarOptionsProps {
|
|
16
|
-
actions?: Actions;
|
|
17
|
-
className?: string;
|
|
18
|
-
variant?: Variant;
|
|
19
|
-
duration?: number;
|
|
20
|
-
onClose?: () => void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated
|
|
24
|
-
*/
|
|
25
|
-
export interface EnqueueSnackbarProps extends SnackbarOptionsProps {
|
|
26
|
-
title?: string;
|
|
27
|
-
content?: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated
|
|
31
|
-
*/
|
|
32
|
-
export type DeprecatedEnqueueSnackbarType = (propsOrTitle: EnqueueSnackbarProps | string | undefined, content?: string, options?: SnackbarOptionsProps) => void;
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated
|
|
35
|
-
*/
|
|
36
|
-
export declare function isNewEnqueueSnackbarInterface(args: unknown): args is EnqueueSnackbarProps;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated
|
|
3
|
-
*/
|
|
4
|
-
export declare const useSnackbar: () => {
|
|
5
|
-
enqueueWarningSnackbar: import("./interfaces").DeprecatedEnqueueSnackbarType;
|
|
6
|
-
enqueueErrorSnackbar: import("./interfaces").DeprecatedEnqueueSnackbarType;
|
|
7
|
-
enqueueSuccessSnackbar: import("./interfaces").DeprecatedEnqueueSnackbarType;
|
|
8
|
-
enqueueSnackbar: import("./interfaces").DeprecatedEnqueueSnackbarType;
|
|
9
|
-
};
|