@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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"homepage": "http://onewelcome.github.io/react-lib-components",
|
|
3
3
|
"name": "@onewelcome/react-lib-components",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "7.0.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "OneWelcome B.V.",
|
|
7
7
|
"main": "dist/cjs/src/index.cjs.js",
|
|
@@ -52,54 +52,54 @@
|
|
|
52
52
|
"node": ">=16"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@babel/core": "^7.24.
|
|
56
|
-
"@babel/preset-env": "^7.24.
|
|
57
|
-
"@babel/preset-react": "^7.24.
|
|
58
|
-
"@babel/preset-typescript": "^7.24.
|
|
55
|
+
"@babel/core": "^7.24.7",
|
|
56
|
+
"@babel/preset-env": "^7.24.7",
|
|
57
|
+
"@babel/preset-react": "^7.24.7",
|
|
58
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
59
|
+
"@chromatic-com/storybook": "^1.6.0",
|
|
59
60
|
"@mdx-js/react": "^3.0.1",
|
|
60
|
-
"@onewelcome/eslint-config-shared-codestyle": "^9.
|
|
61
|
-
"@onewelcome/storybook-addon-basestyling": "^
|
|
61
|
+
"@onewelcome/eslint-config-shared-codestyle": "^9.2.3",
|
|
62
|
+
"@onewelcome/storybook-addon-basestyling": "^2.0.0",
|
|
62
63
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
63
64
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
64
65
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
65
|
-
"@storybook/addon-a11y": "^
|
|
66
|
-
"@storybook/addon-actions": "^
|
|
67
|
-
"@storybook/addon-docs": "^
|
|
68
|
-
"@storybook/addon-essentials": "^
|
|
69
|
-
"@storybook/addon-interactions": "^
|
|
70
|
-
"@storybook/addon-links": "^
|
|
71
|
-
"@storybook/
|
|
72
|
-
"@storybook/
|
|
73
|
-
"@storybook/
|
|
74
|
-
"@storybook/manager-api": "^
|
|
75
|
-
"@storybook/react": "^
|
|
76
|
-
"@storybook/react-webpack5": "^
|
|
77
|
-
"@storybook/
|
|
78
|
-
"@
|
|
79
|
-
"@testing-library/dom": "^
|
|
80
|
-
"@testing-library/
|
|
81
|
-
"@testing-library/react": "^14.2.2",
|
|
66
|
+
"@storybook/addon-a11y": "^8.1.11",
|
|
67
|
+
"@storybook/addon-actions": "^8.1.11",
|
|
68
|
+
"@storybook/addon-docs": "^8.1.11",
|
|
69
|
+
"@storybook/addon-essentials": "^8.1.11",
|
|
70
|
+
"@storybook/addon-interactions": "^8.1.11",
|
|
71
|
+
"@storybook/addon-links": "^8.1.11",
|
|
72
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
73
|
+
"@storybook/blocks": "^8.1.11",
|
|
74
|
+
"@storybook/components": "^8.1.11",
|
|
75
|
+
"@storybook/manager-api": "^8.1.11",
|
|
76
|
+
"@storybook/react": "^8.1.11",
|
|
77
|
+
"@storybook/react-webpack5": "^8.1.11",
|
|
78
|
+
"@storybook/theming": "^8.1.11",
|
|
79
|
+
"@testing-library/dom": "^10.2.0",
|
|
80
|
+
"@testing-library/jest-dom": "^6.4.6",
|
|
81
|
+
"@testing-library/react": "^15.0.7",
|
|
82
82
|
"@testing-library/user-event": "^14.5.2",
|
|
83
83
|
"@types/jest": "^29.5.12",
|
|
84
|
-
"@types/mdx": "^2.0.
|
|
85
|
-
"@types/react": "^18.
|
|
86
|
-
"@types/react-dom": "^18.
|
|
84
|
+
"@types/mdx": "^2.0.13",
|
|
85
|
+
"@types/react": "^18.3.3",
|
|
86
|
+
"@types/react-dom": "^18.3.0",
|
|
87
87
|
"@types/react-router": "^5.1.20",
|
|
88
88
|
"@types/react-router-dom": "^5.3.3",
|
|
89
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
90
|
-
"@typescript-eslint/parser": "^7.
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
90
|
+
"@typescript-eslint/parser": "^7.14.1",
|
|
91
91
|
"babel-loader": "^9.1.3",
|
|
92
|
-
"chromatic": "^11.
|
|
92
|
+
"chromatic": "^11.5.4",
|
|
93
93
|
"css-loader": "^6.10.0",
|
|
94
94
|
"eslint": "^8.57.0",
|
|
95
95
|
"eslint-config-prettier": "^9.1.0",
|
|
96
96
|
"eslint-plugin-cypress": "^2.15.1",
|
|
97
|
-
"eslint-plugin-export-scope": "^2.
|
|
97
|
+
"eslint-plugin-export-scope": "^2.4.0",
|
|
98
98
|
"eslint-plugin-jest": "^27.9.0",
|
|
99
99
|
"eslint-plugin-license-header": "^0.6.1",
|
|
100
100
|
"eslint-plugin-prettier": "^5.1.3",
|
|
101
|
-
"eslint-plugin-react": "^7.34.
|
|
102
|
-
"eslint-plugin-react-hooks": "^4.6.
|
|
101
|
+
"eslint-plugin-react": "^7.34.3",
|
|
102
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
103
103
|
"eslint-plugin-storybook": "^0.8.0",
|
|
104
104
|
"husky": "^9.0.11",
|
|
105
105
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -107,29 +107,30 @@
|
|
|
107
107
|
"jest-environment-jsdom": "^29.7.0",
|
|
108
108
|
"jest-junit": "^16.0.0",
|
|
109
109
|
"jest-sonar-reporter": "^2.0.0",
|
|
110
|
-
"lint-staged": "^15.2.
|
|
111
|
-
"mini-css-extract-plugin": "^2.
|
|
110
|
+
"lint-staged": "^15.2.7",
|
|
111
|
+
"mini-css-extract-plugin": "^2.9.0",
|
|
112
112
|
"npm-run-all": "^4.1.5",
|
|
113
113
|
"postcss": "^8.4.38",
|
|
114
114
|
"postcss-modules": "^6.0.0",
|
|
115
115
|
"postcss-url": "^10.1.3",
|
|
116
|
-
"prettier": "^3.2
|
|
117
|
-
"react": "^18.
|
|
118
|
-
"react-dom": "^18.
|
|
119
|
-
"react-is": "^18.
|
|
120
|
-
"react-router-dom": "^6.
|
|
116
|
+
"prettier": "^3.3.2",
|
|
117
|
+
"react": "^18.3.1",
|
|
118
|
+
"react-dom": "^18.3.1",
|
|
119
|
+
"react-is": "^18.3.1",
|
|
120
|
+
"react-router-dom": "^6.24.0",
|
|
121
121
|
"remark-gfm": "^4.0.0",
|
|
122
122
|
"rollup": "^2.79.1",
|
|
123
123
|
"rollup-plugin-postcss": "^4.0.2",
|
|
124
124
|
"rollup-plugin-terser": "^7.0.2",
|
|
125
|
-
"sass": "^1.
|
|
126
|
-
"sass-loader": "^14.
|
|
127
|
-
"size-limit": "^11.1.
|
|
128
|
-
"storybook": "^
|
|
129
|
-
"storybook-addon-
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
125
|
+
"sass": "^1.77.6",
|
|
126
|
+
"sass-loader": "^14.2.1",
|
|
127
|
+
"size-limit": "^11.1.4",
|
|
128
|
+
"storybook": "^8.1.11",
|
|
129
|
+
"storybook-addon-mock": "^5.0.0",
|
|
130
|
+
"storybook-addon-pseudo-states": "^3.1.1",
|
|
131
|
+
"style-loader": "^4.0.0",
|
|
132
|
+
"ts-jest": "^29.1.5",
|
|
133
|
+
"tslib": "^2.6.3",
|
|
134
|
+
"typescript": "^5.5.2"
|
|
134
135
|
}
|
|
135
136
|
}
|
|
@@ -23,6 +23,7 @@ import { DataGridBody } from "./DataGridBody/DataGridBody";
|
|
|
23
23
|
import { HeaderCell, OnSortFunction, Sort } from "./datagrid.interfaces";
|
|
24
24
|
import { Pagination, Props as PaginationProps } from "../Pagination/Pagination";
|
|
25
25
|
import { Spacing, useSpacing } from "../../hooks/useSpacing";
|
|
26
|
+
import { DataGridToolbar, DataGridToolbarProps } from "./DataGridFilters/DataGridToolbar";
|
|
26
27
|
|
|
27
28
|
export interface Props<T> extends Omit<ComponentPropsWithRef<"div">, "children"> {
|
|
28
29
|
children: ({ item, index }: { item: T; index: number }) => ReactElement;
|
|
@@ -42,6 +43,11 @@ export interface Props<T> extends Omit<ComponentPropsWithRef<"div">, "children">
|
|
|
42
43
|
emptyLabel?: string;
|
|
43
44
|
paginationProps?: PaginationProps;
|
|
44
45
|
disableContextMenuColumn?: boolean;
|
|
46
|
+
enableExpandableRow?: boolean;
|
|
47
|
+
filters?: {
|
|
48
|
+
enable: boolean;
|
|
49
|
+
filtersProps: DataGridToolbarProps;
|
|
50
|
+
};
|
|
45
51
|
isLoading?: boolean;
|
|
46
52
|
enableMultiSorting?: boolean;
|
|
47
53
|
spacing?: Spacing;
|
|
@@ -57,6 +63,8 @@ const DataGridInner = <T extends {}>(
|
|
|
57
63
|
actions = {},
|
|
58
64
|
paginationProps,
|
|
59
65
|
disableContextMenuColumn,
|
|
66
|
+
enableExpandableRow,
|
|
67
|
+
filters,
|
|
60
68
|
isLoading,
|
|
61
69
|
enableMultiSorting,
|
|
62
70
|
emptyLabel,
|
|
@@ -70,7 +78,7 @@ const DataGridInner = <T extends {}>(
|
|
|
70
78
|
throw new Error("Headers definition has to be provided");
|
|
71
79
|
}
|
|
72
80
|
if (!children) {
|
|
73
|
-
throw new Error("DataGridBody should be
|
|
81
|
+
throw new Error("DataGridBody should be provided with a template how to render rows");
|
|
74
82
|
}
|
|
75
83
|
|
|
76
84
|
const [internalHeaders, setInternalHeaders] = useState(headers);
|
|
@@ -124,15 +132,20 @@ const DataGridInner = <T extends {}>(
|
|
|
124
132
|
paddingBottom: styleWithSpacing?.paddingBottom
|
|
125
133
|
}}
|
|
126
134
|
>
|
|
127
|
-
|
|
128
|
-
{...
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
{filters?.enable ? (
|
|
136
|
+
<DataGridToolbar {...filters.filtersProps} />
|
|
137
|
+
) : (
|
|
138
|
+
<DataGridActions
|
|
139
|
+
{...actions}
|
|
140
|
+
style={{
|
|
141
|
+
paddingLeft: styleWithSpacing?.paddingLeft,
|
|
142
|
+
paddingRight: styleWithSpacing?.paddingRight
|
|
143
|
+
}}
|
|
144
|
+
headers={internalHeaders}
|
|
145
|
+
onColumnToggled={onColumnToggled}
|
|
146
|
+
/>
|
|
147
|
+
)}
|
|
148
|
+
|
|
136
149
|
<div className={classes["table-wrapper"]}>
|
|
137
150
|
<table className={classes["table"]}>
|
|
138
151
|
<DataGridHeader
|
|
@@ -140,6 +153,7 @@ const DataGridInner = <T extends {}>(
|
|
|
140
153
|
initialSort={initialSort}
|
|
141
154
|
onSort={onSort}
|
|
142
155
|
disableContextMenuColumn={disableContextMenuColumn}
|
|
156
|
+
enableExpandableRow={enableExpandableRow}
|
|
143
157
|
enableMultiSorting={enableMultiSorting}
|
|
144
158
|
spacing={styleWithSpacing}
|
|
145
159
|
/>
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import React, { ComponentPropsWithRef, ReactElement, Ref } from "react";
|
|
18
18
|
import { HeaderCell } from "../datagrid.interfaces";
|
|
19
|
-
import { DataGridCell } from "./DataGridCell";
|
|
20
|
-
import { DataGridRow } from "./DataGridRow";
|
|
19
|
+
import { DataGridCell } from "./DataGridCell/DataGridCell";
|
|
20
|
+
import { DataGridRow } from "./DataGridRow/DataGridRow";
|
|
21
21
|
import classes from "./DataGridBody.module.scss";
|
|
22
22
|
import { Typography } from "../../Typography/Typography";
|
|
23
23
|
|
package/src/components/DataGrid/DataGridBody/{DataGridCell.tsx → DataGridCell/DataGridCell.tsx}
RENAMED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import React, { ForwardRefRenderFunction, ComponentPropsWithRef, ReactElement } from "react";
|
|
18
|
-
import { Typography } from "
|
|
18
|
+
import { Typography } from "../../../Typography/Typography";
|
|
19
19
|
import classes from "./DataGridCell.module.scss";
|
|
20
20
|
|
|
21
21
|
export interface Props extends ComponentPropsWithRef<"td"> {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.drawer {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-rows: 0fr;
|
|
4
|
+
gap: 0.5rem;
|
|
5
|
+
transition: grid-template-rows 200ms;
|
|
6
|
+
|
|
7
|
+
& > div > * {
|
|
8
|
+
padding-left: 4.75rem;
|
|
9
|
+
padding-right: 1.5rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
& > div > *:first-child {
|
|
13
|
+
padding-top: 1rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
& > div > *:last-child {
|
|
17
|
+
padding-bottom: 1.5rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.wrapper {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: 0.5rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.expanded {
|
|
27
|
+
grid-template-rows: 1fr;
|
|
28
|
+
$maxElements: 100;
|
|
29
|
+
|
|
30
|
+
@for $i from 1 to $maxElements {
|
|
31
|
+
& > div > :nth-child(#{$i}) {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
animation-name: item-fade-in;
|
|
34
|
+
animation-duration: 250ms;
|
|
35
|
+
animation-fill-mode: forwards;
|
|
36
|
+
animation-delay: (100ms * ($i - 1));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@keyframes item-fade-in {
|
|
42
|
+
0% {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
transform: translateY(-60px);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
80% {
|
|
48
|
+
opacity: 0.6;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
100% {
|
|
52
|
+
opacity: 1;
|
|
53
|
+
transform: translateY(0px);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
& > * {
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 OneWelcome B.V.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import React, { ComponentPropsWithRef, ForwardRefRenderFunction } from "react";
|
|
18
|
+
import classes from "./DataGridDrawer.module.scss";
|
|
19
|
+
|
|
20
|
+
export interface Props extends ComponentPropsWithRef<"div"> {
|
|
21
|
+
isExpanded: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const DataGridDrawerComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
|
|
25
|
+
{ children, isExpanded, ...rest }: Props,
|
|
26
|
+
ref
|
|
27
|
+
) => {
|
|
28
|
+
return (
|
|
29
|
+
<div
|
|
30
|
+
{...rest}
|
|
31
|
+
ref={ref}
|
|
32
|
+
className={`${classes["drawer"]} ${isExpanded ? classes["expanded"] : ""}`}
|
|
33
|
+
>
|
|
34
|
+
<div className={classes["wrapper"]}>{children}</div>
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const DataGridDrawer = React.forwardRef(DataGridDrawerComponent);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.item-wrapper {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.item-title {
|
|
7
|
+
font-size: var(--font-size-data-grid);
|
|
8
|
+
line-height: var(--data-grid-line-height);
|
|
9
|
+
font-weight: 700;
|
|
10
|
+
margin: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.item-description {
|
|
14
|
+
font-size: var(--font-size-data-grid);
|
|
15
|
+
line-height: var(--data-grid-line-height);
|
|
16
|
+
margin: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.children-wrapper {
|
|
20
|
+
margin-top: 0.5rem;
|
|
21
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 OneWelcome B.V.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import React, { ComponentPropsWithRef, ForwardRefRenderFunction } from "react";
|
|
18
|
+
import classes from "./DataGridDrawerItem.module.scss";
|
|
19
|
+
import { Typography } from "../../../Typography/Typography";
|
|
20
|
+
|
|
21
|
+
export interface Props extends ComponentPropsWithRef<"div"> {
|
|
22
|
+
title?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const DataGridDrawerItemComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
|
|
27
|
+
{ children, title, description, ...rest }: Props,
|
|
28
|
+
ref
|
|
29
|
+
) => {
|
|
30
|
+
return (
|
|
31
|
+
<div {...rest} ref={ref} className={classes["item-wrapper"]}>
|
|
32
|
+
{title && (
|
|
33
|
+
<Typography className={classes["item-title"]} variant="body" tag="span">
|
|
34
|
+
{title}
|
|
35
|
+
</Typography>
|
|
36
|
+
)}
|
|
37
|
+
{description && (
|
|
38
|
+
<Typography className={classes["item-description"]} variant="body" tag="span">
|
|
39
|
+
{description}
|
|
40
|
+
</Typography>
|
|
41
|
+
)}
|
|
42
|
+
{children && <div className={classes["children-wrapper"]}> {children}</div>}
|
|
43
|
+
</div>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const DataGridDrawerItem = React.forwardRef(DataGridDrawerItemComponent);
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
background-color: var(--data-grid-row-hover-background-color);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
@mixin borderAfter {
|
|
26
26
|
content: "";
|
|
27
27
|
position: absolute;
|
|
28
28
|
width: 100%;
|
|
@@ -30,4 +30,20 @@
|
|
|
30
30
|
bottom: 0;
|
|
31
31
|
border-bottom: 1px solid var(--light-grey-border);
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
&.border {
|
|
35
|
+
&:not(:last-child)::after {
|
|
36
|
+
@include borderAfter();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.border-drawer {
|
|
41
|
+
&:not(:last-child):not(:nth-last-child(2))::after {
|
|
42
|
+
@include borderAfter();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.expand-button-cell {
|
|
48
|
+
padding: 0;
|
|
33
49
|
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 OneWelcome B.V.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import React, { ComponentPropsWithRef, useState, Fragment, ForwardRefRenderFunction } from "react";
|
|
18
|
+
import { HeaderCell } from "../../datagrid.interfaces";
|
|
19
|
+
import classes from "./DataGridRow.module.scss";
|
|
20
|
+
import { IconButton } from "../../../Button/IconButton";
|
|
21
|
+
import { Icon, Icons } from "../../../Icon/Icon";
|
|
22
|
+
import { DataGridCell } from "../DataGridCell/DataGridCell";
|
|
23
|
+
import { DataGridDrawer } from "../DataGridDrawer/DataGridDrawer";
|
|
24
|
+
import { generateID } from "../../../../util/helper";
|
|
25
|
+
|
|
26
|
+
export interface Props extends ComponentPropsWithRef<"tr"> {
|
|
27
|
+
headers?: HeaderCell[];
|
|
28
|
+
isLoading?: boolean;
|
|
29
|
+
spacing?: React.CSSProperties;
|
|
30
|
+
disableContextMenuColumn?: boolean;
|
|
31
|
+
expandableRowProps?: {
|
|
32
|
+
enableExpandableRow: boolean;
|
|
33
|
+
expandableRowContent: React.ReactNode;
|
|
34
|
+
expandButtonTitle?: string;
|
|
35
|
+
expandButtonId?: string;
|
|
36
|
+
drawerId?: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const DataGridRowComponent: ForwardRefRenderFunction<HTMLTableRowElement, Props> = (
|
|
41
|
+
{
|
|
42
|
+
children,
|
|
43
|
+
className,
|
|
44
|
+
headers,
|
|
45
|
+
isLoading,
|
|
46
|
+
spacing,
|
|
47
|
+
expandableRowProps,
|
|
48
|
+
disableContextMenuColumn,
|
|
49
|
+
...rest
|
|
50
|
+
},
|
|
51
|
+
ref
|
|
52
|
+
) => {
|
|
53
|
+
const {
|
|
54
|
+
enableExpandableRow = false,
|
|
55
|
+
expandButtonId = `ID-${generateID()}`,
|
|
56
|
+
expandButtonTitle = "Expand row",
|
|
57
|
+
drawerId = `ID-${generateID()}`,
|
|
58
|
+
expandableRowContent
|
|
59
|
+
} = expandableRowProps || {};
|
|
60
|
+
const [isRowExpanded, setIsRowExpanded] = useState(false);
|
|
61
|
+
const visibleCells = React.Children.map(children as React.ReactElement[], (child, index) => {
|
|
62
|
+
if (child) {
|
|
63
|
+
const cellWithSpacing = React.cloneElement(child, {
|
|
64
|
+
spacing: spacing,
|
|
65
|
+
cellIndex: index,
|
|
66
|
+
columnLength: headers?.length,
|
|
67
|
+
disableContextMenuColumn
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const visible = headers && headers.length > index ? !headers[index].hidden : true;
|
|
71
|
+
return visible && cellWithSpacing;
|
|
72
|
+
}
|
|
73
|
+
return null;
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const classNames = [classes["row"]];
|
|
77
|
+
className && classNames.push(className);
|
|
78
|
+
enableExpandableRow
|
|
79
|
+
? !isRowExpanded && classNames.push(classes["border-drawer"])
|
|
80
|
+
: classNames.push(classes["border"]);
|
|
81
|
+
isLoading && classNames.push(classes["loading"]);
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<Fragment>
|
|
85
|
+
<tr {...rest} ref={ref} className={classNames.join(" ")}>
|
|
86
|
+
{enableExpandableRow && (
|
|
87
|
+
<DataGridCell
|
|
88
|
+
className={classes["expand-button-cell"]}
|
|
89
|
+
onClick={() => setIsRowExpanded(!isRowExpanded)}
|
|
90
|
+
style={{ width: "1px" }}
|
|
91
|
+
>
|
|
92
|
+
<IconButton
|
|
93
|
+
id={expandButtonId}
|
|
94
|
+
title={expandButtonTitle}
|
|
95
|
+
aria-expanded={isRowExpanded}
|
|
96
|
+
aria-controls={drawerId}
|
|
97
|
+
>
|
|
98
|
+
<Icon size="0.75rem" icon={isRowExpanded ? Icons.ChevronUp : Icons.ChevronDown} />
|
|
99
|
+
</IconButton>
|
|
100
|
+
</DataGridCell>
|
|
101
|
+
)}
|
|
102
|
+
{visibleCells}
|
|
103
|
+
</tr>
|
|
104
|
+
{enableExpandableRow && (
|
|
105
|
+
<tr className={`${classes["row"]} ${isRowExpanded ? classes["border-drawer"] : ""}`}>
|
|
106
|
+
<td colSpan={visibleCells.length + 1}>
|
|
107
|
+
<DataGridDrawer
|
|
108
|
+
id={drawerId}
|
|
109
|
+
role="region"
|
|
110
|
+
aria-labelledby={expandButtonId}
|
|
111
|
+
isExpanded={isRowExpanded}
|
|
112
|
+
>
|
|
113
|
+
{expandableRowContent}
|
|
114
|
+
</DataGridDrawer>
|
|
115
|
+
</td>
|
|
116
|
+
</tr>
|
|
117
|
+
)}
|
|
118
|
+
</Fragment>
|
|
119
|
+
);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export const DataGridRow = React.forwardRef(DataGridRowComponent);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`DataGridBody should render renders without crashing 1`] = `
|
|
4
4
|
[
|
|
5
5
|
<tr
|
|
6
|
-
class="row"
|
|
6
|
+
class="row border"
|
|
7
7
|
>
|
|
8
8
|
<td
|
|
9
9
|
class="cell "
|
|
@@ -67,7 +67,7 @@ exports[`DataGridBody should render renders without crashing 1`] = `
|
|
|
67
67
|
</td>
|
|
68
68
|
</tr>,
|
|
69
69
|
<tr
|
|
70
|
-
class="row"
|
|
70
|
+
class="row border"
|
|
71
71
|
>
|
|
72
72
|
<td
|
|
73
73
|
class="cell "
|
|
@@ -131,7 +131,7 @@ exports[`DataGridBody should render renders without crashing 1`] = `
|
|
|
131
131
|
</td>
|
|
132
132
|
</tr>,
|
|
133
133
|
<tr
|
|
134
|
-
class="row"
|
|
134
|
+
class="row border"
|
|
135
135
|
>
|
|
136
136
|
<td
|
|
137
137
|
class="cell "
|
|
@@ -195,7 +195,7 @@ exports[`DataGridBody should render renders without crashing 1`] = `
|
|
|
195
195
|
</td>
|
|
196
196
|
</tr>,
|
|
197
197
|
<tr
|
|
198
|
-
class="row"
|
|
198
|
+
class="row border"
|
|
199
199
|
>
|
|
200
200
|
<td
|
|
201
201
|
class="cell "
|