@onewelcome/react-lib-components 6.5.0 → 6.7.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/dist/cjs/DataGrid/DataGrid.module.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell.cjs.js.map +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell.module.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow.module.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.cjs.js.map +1 -1
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.module.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.module.cjs.js +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/FileItem/FileItem.module.cjs.js +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/MultiSelect.module.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/SelectButton.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/SelectButton.cjs.js.map +1 -1
- package/dist/cjs/Form/Select/MultiSelect/SelectButton.module.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/SelectedOptions.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/SelectedOptions.cjs.js.map +1 -1
- package/dist/cjs/Form/Select/MultiSelect/useArrowNavigation.cjs.js +2 -0
- package/dist/cjs/Form/Select/MultiSelect/useArrowNavigation.cjs.js.map +1 -0
- package/dist/cjs/Form/Select/MultiSelect/useSearch.cjs.js +2 -0
- package/dist/cjs/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -0
- package/dist/cjs/Form/Select/SingleSelect/Option.cjs.js +1 -1
- package/dist/cjs/Form/Select/SingleSelect/Option.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/Select.module.cjs.js +1 -1
- package/dist/cjs/Form/Select/SingleSelect/useArrowNavigation.cjs.js +2 -0
- package/dist/cjs/Form/Select/SingleSelect/useArrowNavigation.cjs.js.map +1 -0
- package/dist/cjs/Form/Select/SingleSelect/useSearch.cjs.js +2 -0
- package/dist/cjs/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -0
- package/dist/cjs/Form/Select/useAddNewBtn.cjs.js +1 -1
- package/dist/cjs/Form/Select/useAddNewBtn.cjs.js.map +1 -1
- package/dist/cjs/Form/Select/useAddNewBtn.module.cjs.js +1 -1
- package/dist/cjs/Form/Select/useSelectPositionList.cjs.js +2 -0
- package/dist/cjs/Form/Select/useSelectPositionList.cjs.js.map +1 -0
- 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/ContentHeader/ContentHeader.cjs.js +2 -0
- package/dist/cjs/Layout/ContentHeader/ContentHeader.cjs.js.map +1 -0
- package/dist/cjs/Layout/ContentHeader/ContentHeader.module.cjs.js +2 -0
- package/dist/cjs/Layout/ContentHeader/ContentHeader.module.cjs.js.map +1 -0
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormSection/FormSection.cjs.js +2 -0
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormSection/FormSection.cjs.js.map +1 -0
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.cjs.js +2 -0
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.cjs.js.map +1 -0
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js +2 -0
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.cjs.js.map +1 -0
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.cjs.js +2 -0
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.cjs.js.map +1 -0
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.cjs.js +2 -0
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.cjs.js.map +1 -0
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.module.cjs.js +2 -0
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Alert/AlertContainer/AlertContainer.cjs.js +2 -0
- package/dist/cjs/Notifications/Alert/AlertContainer/AlertContainer.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Alert/AlertContainer/AlertContainer.module.cjs.js +2 -0
- package/dist/cjs/Notifications/Alert/AlertContainer/AlertContainer.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js +2 -0
- package/dist/cjs/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Alert/AlertItem/AlertItem.cjs.js +2 -0
- package/dist/cjs/Notifications/Alert/AlertItem/AlertItem.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Alert/AlertItem/AlertItem.module.cjs.js +2 -0
- package/dist/cjs/Notifications/Alert/AlertItem/AlertItem.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Alert/AlertProvider/AlertContext.cjs.js +2 -0
- package/dist/cjs/Notifications/Alert/AlertProvider/AlertContext.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Alert/AlertProvider/AlertProvider.cjs.js +2 -0
- package/dist/cjs/Notifications/Alert/AlertProvider/AlertProvider.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Alert/useAlert.cjs.js +2 -0
- package/dist/cjs/Notifications/Alert/useAlert.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.cjs.js.map +1 -1
- package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.cjs.js.map +1 -1
- package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.cjs.js.map +1 -1
- package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.cjs.js.map +1 -1
- package/dist/cjs/Notifications/Snackbar/interfaces.cjs.js.map +1 -1
- package/dist/cjs/Notifications/Snackbar/useSnackbar.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/Pagination/Pagination.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/src/components/Form/FileUpload/FileItem/FileItem.d.ts +10 -0
- package/dist/cjs/src/components/Form/FileUpload/FileUpload.d.ts +3 -0
- package/dist/cjs/src/components/Form/Select/MultiSelect/MultiSelect.test.d.ts +63 -1
- package/dist/cjs/src/components/Form/Select/MultiSelect/MultiSelectKeyboardNavigation.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Select/MultiSelect/SelectedOptions.d.ts +2 -1
- package/dist/cjs/src/components/Form/Select/MultiSelect/useArrowNavigation.d.ts +16 -0
- package/dist/cjs/src/components/Form/Select/MultiSelect/useSearch.d.ts +34 -0
- package/dist/cjs/src/components/Form/Select/Select.interfaces.d.ts +1 -0
- package/dist/cjs/src/components/Form/Select/SingleSelect/Option.d.ts +1 -0
- package/dist/cjs/src/components/Form/Select/SingleSelect/useArrowNavigation.d.ts +5 -0
- package/dist/cjs/src/components/Form/Select/{useSearch.d.ts → SingleSelect/useSearch.d.ts} +2 -1
- package/dist/cjs/src/components/Form/Select/useAddNewBtn.d.ts +10 -3
- package/dist/cjs/src/components/Form/Select/useSelectPositionList.d.ts +12 -0
- package/dist/cjs/src/components/Icon/Icon.d.ts +5 -1
- package/dist/cjs/src/components/Layout/ContentHeader/ContentHeader.d.ts +10 -0
- package/dist/cjs/src/components/Layout/ContentHeader/ContentHeader.test.d.ts +1 -0
- package/dist/cjs/src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.d.ts +7 -0
- package/dist/cjs/src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.test.d.ts +1 -0
- package/dist/cjs/src/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.d.ts +10 -0
- package/dist/cjs/src/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.test.d.ts +1 -0
- package/dist/cjs/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.d.ts +6 -0
- package/dist/cjs/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Alert/AlertContainer/AlertContainer.d.ts +12 -0
- package/dist/cjs/src/components/Notifications/Alert/AlertContainer/AlertContainer.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.d.ts +4 -0
- package/dist/cjs/src/components/Notifications/Alert/AlertItem/AlertItem.d.ts +22 -0
- package/dist/cjs/src/components/Notifications/Alert/AlertItem/AlertItem.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Alert/AlertProvider/AlertContext.d.ts +13 -0
- package/dist/cjs/src/components/Notifications/Alert/AlertProvider/AlertProvider.d.ts +22 -0
- package/dist/cjs/src/components/Notifications/Alert/AlertProvider/AlertProvider.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Alert/useAlert.d.ts +7 -0
- package/dist/cjs/src/components/Notifications/Alert/useAlert.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.d.ts +9 -0
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.d.ts +6 -0
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +9 -0
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.d.ts +9 -0
- package/dist/cjs/src/components/Notifications/Snackbar/interfaces.d.ts +18 -0
- package/dist/cjs/src/components/Notifications/Snackbar/useSnackbar.d.ts +3 -0
- package/dist/cjs/src/components/_BaseStyling_/BaseStyling.d.ts +40 -0
- package/dist/cjs/src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.d.ts +8 -0
- package/dist/cjs/src/index.cjs.js +1 -1
- package/dist/cjs/src/index.d.ts +15 -0
- package/dist/cjs/src/util/helper.cjs.js +1 -1
- package/dist/cjs/src/util/helper.cjs.js.map +1 -1
- package/dist/cjs/src/util/helper.d.ts +1 -0
- package/dist/esm/DataGrid/DataGrid.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridCell.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridCell.esm.js.map +1 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridCell.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridRow.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.esm.js.map +1 -1
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.module.esm.js +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/FileItem/FileItem.module.esm.js +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/MultiSelect.module.esm.js +1 -1
- package/dist/esm/Form/Select/MultiSelect/SelectButton.esm.js +1 -1
- package/dist/esm/Form/Select/MultiSelect/SelectButton.esm.js.map +1 -1
- package/dist/esm/Form/Select/MultiSelect/SelectButton.module.esm.js +1 -1
- package/dist/esm/Form/Select/MultiSelect/SelectedOptions.esm.js +1 -1
- package/dist/esm/Form/Select/MultiSelect/SelectedOptions.esm.js.map +1 -1
- package/dist/esm/Form/Select/MultiSelect/useArrowNavigation.esm.js +2 -0
- package/dist/esm/Form/Select/MultiSelect/useArrowNavigation.esm.js.map +1 -0
- package/dist/esm/Form/Select/MultiSelect/useSearch.esm.js +2 -0
- package/dist/esm/Form/Select/MultiSelect/useSearch.esm.js.map +1 -0
- package/dist/esm/Form/Select/SingleSelect/Option.esm.js +1 -1
- package/dist/esm/Form/Select/SingleSelect/Option.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/Select.module.esm.js +1 -1
- package/dist/esm/Form/Select/SingleSelect/useArrowNavigation.esm.js +2 -0
- package/dist/esm/Form/Select/SingleSelect/useArrowNavigation.esm.js.map +1 -0
- package/dist/esm/Form/Select/SingleSelect/useSearch.esm.js +2 -0
- package/dist/esm/Form/Select/SingleSelect/useSearch.esm.js.map +1 -0
- package/dist/esm/Form/Select/useAddNewBtn.esm.js +1 -1
- package/dist/esm/Form/Select/useAddNewBtn.esm.js.map +1 -1
- package/dist/esm/Form/Select/useAddNewBtn.module.esm.js +1 -1
- package/dist/esm/Form/Select/useSelectPositionList.esm.js +2 -0
- package/dist/esm/Form/Select/useSelectPositionList.esm.js.map +1 -0
- 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/ContentHeader/ContentHeader.esm.js +2 -0
- package/dist/esm/Layout/ContentHeader/ContentHeader.esm.js.map +1 -0
- package/dist/esm/Layout/ContentHeader/ContentHeader.module.esm.js +2 -0
- package/dist/esm/Layout/ContentHeader/ContentHeader.module.esm.js.map +1 -0
- package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.esm.js +2 -0
- package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.esm.js.map +1 -0
- package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.esm.js +2 -0
- package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.esm.js.map +1 -0
- package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.esm.js +2 -0
- package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.esm.js.map +1 -0
- package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.esm.js +2 -0
- package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.esm.js.map +1 -0
- package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.esm.js +2 -0
- package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.esm.js.map +1 -0
- package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.module.esm.js +2 -0
- package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.module.esm.js.map +1 -0
- package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.esm.js +2 -0
- package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.esm.js.map +1 -0
- package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.module.esm.js +2 -0
- package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.module.esm.js.map +1 -0
- package/dist/esm/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.esm.js +2 -0
- package/dist/esm/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.esm.js.map +1 -0
- package/dist/esm/Notifications/Alert/AlertItem/AlertItem.esm.js +2 -0
- package/dist/esm/Notifications/Alert/AlertItem/AlertItem.esm.js.map +1 -0
- package/dist/esm/Notifications/Alert/AlertItem/AlertItem.module.esm.js +2 -0
- package/dist/esm/Notifications/Alert/AlertItem/AlertItem.module.esm.js.map +1 -0
- package/dist/esm/Notifications/Alert/AlertProvider/AlertContext.esm.js +2 -0
- package/dist/esm/Notifications/Alert/AlertProvider/AlertContext.esm.js.map +1 -0
- package/dist/esm/Notifications/Alert/AlertProvider/AlertProvider.esm.js +2 -0
- package/dist/esm/Notifications/Alert/AlertProvider/AlertProvider.esm.js.map +1 -0
- package/dist/esm/Notifications/Alert/useAlert.esm.js +2 -0
- package/dist/esm/Notifications/Alert/useAlert.esm.js.map +1 -0
- package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.esm.js.map +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.esm.js.map +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.esm.js.map +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.esm.js.map +1 -1
- package/dist/esm/Notifications/Snackbar/interfaces.esm.js.map +1 -1
- package/dist/esm/Notifications/Snackbar/useSnackbar.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/Pagination/Pagination.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/src/components/Form/FileUpload/FileItem/FileItem.d.ts +10 -0
- package/dist/esm/src/components/Form/FileUpload/FileUpload.d.ts +3 -0
- package/dist/esm/src/components/Form/Select/MultiSelect/MultiSelect.test.d.ts +63 -1
- package/dist/esm/src/components/Form/Select/MultiSelect/MultiSelectKeyboardNavigation.test.d.ts +1 -0
- package/dist/esm/src/components/Form/Select/MultiSelect/SelectedOptions.d.ts +2 -1
- package/dist/esm/src/components/Form/Select/MultiSelect/useArrowNavigation.d.ts +16 -0
- package/dist/esm/src/components/Form/Select/MultiSelect/useSearch.d.ts +34 -0
- package/dist/esm/src/components/Form/Select/Select.interfaces.d.ts +1 -0
- package/dist/esm/src/components/Form/Select/SingleSelect/Option.d.ts +1 -0
- package/dist/esm/src/components/Form/Select/SingleSelect/useArrowNavigation.d.ts +5 -0
- package/dist/esm/src/components/Form/Select/{useSearch.d.ts → SingleSelect/useSearch.d.ts} +2 -1
- package/dist/esm/src/components/Form/Select/useAddNewBtn.d.ts +10 -3
- package/dist/esm/src/components/Form/Select/useSelectPositionList.d.ts +12 -0
- package/dist/esm/src/components/Icon/Icon.d.ts +5 -1
- package/dist/esm/src/components/Layout/ContentHeader/ContentHeader.d.ts +10 -0
- package/dist/esm/src/components/Layout/ContentHeader/ContentHeader.test.d.ts +1 -0
- package/dist/esm/src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.d.ts +7 -0
- package/dist/esm/src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.test.d.ts +1 -0
- package/dist/esm/src/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.d.ts +10 -0
- package/dist/esm/src/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.test.d.ts +1 -0
- package/dist/esm/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.d.ts +6 -0
- package/dist/esm/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.test.d.ts +1 -0
- package/dist/esm/src/components/Notifications/Alert/AlertContainer/AlertContainer.d.ts +12 -0
- package/dist/esm/src/components/Notifications/Alert/AlertContainer/AlertContainer.test.d.ts +1 -0
- package/dist/esm/src/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.d.ts +4 -0
- package/dist/esm/src/components/Notifications/Alert/AlertItem/AlertItem.d.ts +22 -0
- package/dist/esm/src/components/Notifications/Alert/AlertItem/AlertItem.test.d.ts +1 -0
- package/dist/esm/src/components/Notifications/Alert/AlertProvider/AlertContext.d.ts +13 -0
- package/dist/esm/src/components/Notifications/Alert/AlertProvider/AlertProvider.d.ts +22 -0
- package/dist/esm/src/components/Notifications/Alert/AlertProvider/AlertProvider.test.d.ts +1 -0
- package/dist/esm/src/components/Notifications/Alert/useAlert.d.ts +7 -0
- package/dist/esm/src/components/Notifications/Alert/useAlert.test.d.ts +1 -0
- package/dist/esm/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.d.ts +9 -0
- package/dist/esm/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.d.ts +6 -0
- package/dist/esm/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +9 -0
- package/dist/esm/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.d.ts +9 -0
- package/dist/esm/src/components/Notifications/Snackbar/interfaces.d.ts +18 -0
- package/dist/esm/src/components/Notifications/Snackbar/useSnackbar.d.ts +3 -0
- package/dist/esm/src/components/_BaseStyling_/BaseStyling.d.ts +40 -0
- package/dist/esm/src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.d.ts +8 -0
- package/dist/esm/src/index.d.ts +15 -0
- package/dist/esm/src/index.esm.js +1 -1
- package/dist/esm/src/util/helper.d.ts +1 -0
- package/dist/esm/src/util/helper.esm.js +1 -1
- package/dist/esm/src/util/helper.esm.js.map +1 -1
- package/package.json +6 -6
- package/src/components/DataGrid/DataGrid.module.scss +2 -2
- package/src/components/DataGrid/DataGridBody/DataGridCell.module.scss +7 -2
- package/src/components/DataGrid/DataGridBody/DataGridCell.tsx +1 -1
- package/src/components/DataGrid/DataGridBody/DataGridRow.module.scss +10 -0
- package/src/components/DataGrid/DataGridBody/__snapshots__/DataGridBody.test.tsx.snap +16 -16
- package/src/components/DataGrid/DataGridHeader/DataGridHeader.module.scss +0 -10
- package/src/components/DataGrid/DataGridHeader/DataGridHeader.tsx +1 -1
- package/src/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss +3 -3
- package/src/components/Form/FileUpload/FileItem/FileItem.module.scss +114 -3
- package/src/components/Form/FileUpload/FileItem/FileItem.tsx +154 -47
- package/src/components/Form/FileUpload/FileUpload.module.scss +73 -16
- package/src/components/Form/FileUpload/FileUpload.tsx +82 -53
- package/src/components/Form/FormSection/FormSection.module.scss +12 -0
- package/src/components/Form/Select/MultiSelect/MultiOption.tsx +36 -3
- package/src/components/Form/Select/MultiSelect/MultiSelect.module.scss +29 -19
- package/src/components/Form/Select/MultiSelect/MultiSelect.tsx +85 -62
- package/src/components/Form/Select/MultiSelect/SelectButton.module.scss +1 -1
- package/src/components/Form/Select/MultiSelect/SelectButton.tsx +1 -1
- package/src/components/Form/Select/MultiSelect/SelectedOptions.tsx +5 -4
- package/src/components/Form/Select/MultiSelect/useArrowNavigation.ts +128 -0
- package/src/components/Form/Select/MultiSelect/useSearch.tsx +126 -0
- package/src/components/Form/Select/Select.interfaces.ts +1 -0
- package/src/components/Form/Select/SingleSelect/Option.tsx +15 -4
- package/src/components/Form/Select/SingleSelect/Select.module.scss +13 -2
- package/src/components/Form/Select/SingleSelect/Select.tsx +7 -3
- package/src/components/Form/Select/{SelectService.ts → SingleSelect/useArrowNavigation.ts} +1 -101
- package/src/components/Form/Select/{useSearch.tsx → SingleSelect/useSearch.tsx} +3 -2
- package/src/components/Form/Select/useAddNewBtn.module.scss +18 -4
- package/src/components/Form/Select/useAddNewBtn.tsx +42 -8
- package/src/components/Form/Select/useSelectPositionList.ts +113 -0
- package/src/components/Icon/Icon.module.scss +16 -1
- package/src/components/Icon/Icon.tsx +5 -1
- package/src/components/Layout/ContentHeader/ContentHeader.module.scss +44 -0
- package/src/components/Layout/ContentHeader/ContentHeader.tsx +70 -0
- package/src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss +12 -0
- package/src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.tsx +53 -0
- package/src/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss +25 -0
- package/src/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.tsx +54 -0
- package/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss +39 -0
- package/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.tsx +34 -0
- package/src/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss +56 -0
- package/src/components/Notifications/Alert/AlertContainer/AlertContainer.tsx +52 -0
- package/src/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.ts +47 -0
- package/src/components/Notifications/Alert/AlertItem/AlertItem.module.scss +277 -0
- package/src/components/Notifications/Alert/AlertItem/AlertItem.tsx +214 -0
- package/src/components/Notifications/Alert/AlertProvider/AlertContext.ts +42 -0
- package/src/components/Notifications/Alert/AlertProvider/AlertProvider.tsx +173 -0
- package/src/components/Notifications/Alert/useAlert.ts +30 -0
- package/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.tsx +9 -0
- package/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.tsx +6 -0
- package/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.tsx +9 -0
- package/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.tsx +9 -0
- package/src/components/Notifications/Snackbar/interfaces.ts +18 -0
- package/src/components/Notifications/Snackbar/useSnackbar.ts +3 -0
- package/src/components/Pagination/Pagination.module.scss +4 -6
- package/src/components/Pagination/Pagination.tsx +3 -1
- package/src/components/_BaseStyling_/BaseStyling.tsx +78 -1
- package/src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss +25 -0
- package/src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.tsx +47 -0
- package/src/font/icomoon.eot +0 -0
- package/src/font/icomoon.svg +3 -0
- package/src/font/icomoon.ttf +0 -0
- package/src/font/icomoon.woff +0 -0
- package/src/font/selection.json +1 -1
- package/src/index.ts +21 -0
- package/src/mixins.module.scss +7 -0
- package/src/util/helper.tsx +2 -0
- package/src/variables.scss +1 -0
- package/dist/cjs/Form/Select/SelectService.cjs.js +0 -2
- package/dist/cjs/Form/Select/SelectService.cjs.js.map +0 -1
- package/dist/cjs/Form/Select/useSearch.cjs.js +0 -2
- package/dist/cjs/Form/Select/useSearch.cjs.js.map +0 -1
- package/dist/cjs/src/components/Form/Select/SelectService.d.ts +0 -17
- package/dist/esm/Form/Select/SelectService.esm.js +0 -2
- package/dist/esm/Form/Select/SelectService.esm.js.map +0 -1
- package/dist/esm/Form/Select/useSearch.esm.js +0 -2
- package/dist/esm/Form/Select/useSearch.esm.js.map +0 -1
- package/dist/esm/src/components/Form/Select/SelectService.d.ts +0 -17
|
@@ -0,0 +1,54 @@
|
|
|
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 from "react";
|
|
18
|
+
import classes from "./FormStepper.module.scss";
|
|
19
|
+
import { Stepper, Props as StepperProps } from "../../../../Stepper/Stepper";
|
|
20
|
+
import { Props as StepProps } from "../../../../Stepper/Step";
|
|
21
|
+
|
|
22
|
+
export interface FormStepProps extends StepProps {
|
|
23
|
+
targetScrollViewId?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface Props extends StepperProps {
|
|
27
|
+
steps: FormStepProps[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const FormStepper = ({ steps, direction, textPosition, ...rest }: Props) => {
|
|
31
|
+
const stepper = steps.map(step => {
|
|
32
|
+
const { targetScrollViewId, ...stepRest } = step;
|
|
33
|
+
|
|
34
|
+
if (targetScrollViewId && !step.onClick) {
|
|
35
|
+
return {
|
|
36
|
+
...stepRest,
|
|
37
|
+
onClick: () => {
|
|
38
|
+
try {
|
|
39
|
+
document.getElementById(targetScrollViewId)?.scrollIntoView();
|
|
40
|
+
} catch (e) {
|
|
41
|
+
throw new Error("Target element not found in the DOM.");
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return step;
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<div className={classes["stepper"]}>
|
|
51
|
+
<Stepper {...rest} steps={stepper} direction={direction} textPosition={textPosition} />
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
};
|
|
@@ -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
|
+
$header-height: 13.25rem;
|
|
18
|
+
|
|
19
|
+
.wrapper {
|
|
20
|
+
position: relative;
|
|
21
|
+
margin: 0 auto;
|
|
22
|
+
font-family: var(--font-family);
|
|
23
|
+
.content {
|
|
24
|
+
position: relative;
|
|
25
|
+
display: flex;
|
|
26
|
+
gap: 3.5rem;
|
|
27
|
+
|
|
28
|
+
background-color: var(--color-white);
|
|
29
|
+
height: calc(100vh - $header-height);
|
|
30
|
+
overflow: auto;
|
|
31
|
+
scroll-behavior: smooth;
|
|
32
|
+
|
|
33
|
+
.form-section {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
flex: 0 0 72%;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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, { HTMLAttributes, ReactElement } from "react";
|
|
18
|
+
import { Props as FormStepperProps, FormStepper } from "./FormStepper/FormStepper";
|
|
19
|
+
import classes from "./FormWithStepper.module.scss";
|
|
20
|
+
|
|
21
|
+
export interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
stepper?: ReactElement<FormStepperProps, typeof FormStepper>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const FormWithStepper = ({ children, stepper, ...rest }: Props) => {
|
|
26
|
+
return (
|
|
27
|
+
<div className={`${classes["wrapper"]} ${rest.className}`} {...rest}>
|
|
28
|
+
<div className={classes["content"]}>
|
|
29
|
+
{stepper}
|
|
30
|
+
<div className={classes["form-section"]}>{children}</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
@use "../../../../mixins.module.scss";
|
|
17
|
+
@use "../../../../variables.scss";
|
|
18
|
+
|
|
19
|
+
.alerts {
|
|
20
|
+
position: fixed;
|
|
21
|
+
z-index: variables.$alert-z-index;
|
|
22
|
+
width: 100%;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
@include mixins.transition(height, 0.2s, ease-in-out);
|
|
26
|
+
|
|
27
|
+
&.bottom {
|
|
28
|
+
bottom: 3.5rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.top {
|
|
32
|
+
top: 3.5rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.start {
|
|
36
|
+
left: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.center {
|
|
40
|
+
left: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.end {
|
|
44
|
+
right: 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media only screen and (min-width: 37.5em) {
|
|
49
|
+
.alerts {
|
|
50
|
+
width: initial;
|
|
51
|
+
|
|
52
|
+
&.center {
|
|
53
|
+
left: calc(50% - 18.75rem);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 from "react";
|
|
18
|
+
import classes from "./AlertContainer.module.scss";
|
|
19
|
+
import { useAlertContainerHeightAnimation } from "./useAlertContainerHeightAnimation";
|
|
20
|
+
|
|
21
|
+
export interface Placement {
|
|
22
|
+
vertical: "top" | "bottom";
|
|
23
|
+
horizontal: "start" | "center" | "end";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface Props {
|
|
27
|
+
placement: Placement;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
zIndex?: number;
|
|
30
|
+
className?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const AlertContainer = ({ placement, children, zIndex, className, ...rest }: Props) => {
|
|
34
|
+
const { height, justifyContent } = useAlertContainerHeightAnimation();
|
|
35
|
+
|
|
36
|
+
const containerClasses = [
|
|
37
|
+
classes["alerts"],
|
|
38
|
+
classes[placement.horizontal],
|
|
39
|
+
classes[placement.vertical],
|
|
40
|
+
className ?? ""
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<div
|
|
45
|
+
{...rest}
|
|
46
|
+
style={{ zIndex, height, justifyContent }}
|
|
47
|
+
className={containerClasses.join(" ")}
|
|
48
|
+
>
|
|
49
|
+
{children}
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
};
|
|
@@ -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 { useContext, useEffect, useState } from "react";
|
|
18
|
+
import AlertContext from "../AlertProvider/AlertContext";
|
|
19
|
+
|
|
20
|
+
export function useAlertContainerHeightAnimation() {
|
|
21
|
+
const { alerts } = useContext(AlertContext);
|
|
22
|
+
const [height, setHeight] = useState(0);
|
|
23
|
+
const [justifyContent, setJustifyContent] = useState<"flex-start" | "flex-end">("flex-start");
|
|
24
|
+
const spaceBetweenAlerts = 8;
|
|
25
|
+
const exceedsMaximumVisibleAlerts = alerts.length >= 3;
|
|
26
|
+
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
const allHeights = alerts.map(alert => alert.height ?? 0);
|
|
29
|
+
let totalHeight = allHeights.reduce((prev, curr) => prev + curr, 0);
|
|
30
|
+
totalHeight += (Math.min(alerts.length, 3) - 1) * spaceBetweenAlerts;
|
|
31
|
+
|
|
32
|
+
if (exceedsMaximumVisibleAlerts) {
|
|
33
|
+
setTimeout(() => {
|
|
34
|
+
setJustifyContent("flex-end");
|
|
35
|
+
}, 500);
|
|
36
|
+
}
|
|
37
|
+
if (height > totalHeight && justifyContent !== "flex-end") {
|
|
38
|
+
setJustifyContent("flex-end");
|
|
39
|
+
} else if (height < totalHeight && justifyContent !== "flex-start") {
|
|
40
|
+
setJustifyContent("flex-start");
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
setHeight(totalHeight);
|
|
44
|
+
}, [alerts]);
|
|
45
|
+
|
|
46
|
+
return { height, justifyContent };
|
|
47
|
+
}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 OneWelcome B.V.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
@use "../../../../mixins.module.scss";
|
|
18
|
+
|
|
19
|
+
.alert {
|
|
20
|
+
padding: 1rem 0.875rem;
|
|
21
|
+
border-radius: var(--alert-border-radius);
|
|
22
|
+
display: flex;
|
|
23
|
+
gap: 0.5rem;
|
|
24
|
+
align-items: center;
|
|
25
|
+
width: 100%;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
flex-grow: 0;
|
|
28
|
+
|
|
29
|
+
&.neutral {
|
|
30
|
+
background-color: var(--alert-neutral-background-color);
|
|
31
|
+
border-radius: var(--alert-border-radius);
|
|
32
|
+
|
|
33
|
+
&.emph-low {
|
|
34
|
+
color: unset;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.emph-medium {
|
|
38
|
+
@include mixins.alertBorder(var(--alert-neutral-inverted-color));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.emph-high {
|
|
42
|
+
background-color: var(--alert-neutral-inverted-color);
|
|
43
|
+
|
|
44
|
+
.content,
|
|
45
|
+
.title,
|
|
46
|
+
.close-btn,
|
|
47
|
+
.icon,
|
|
48
|
+
.action-button {
|
|
49
|
+
color: var(--alert-text-inverted-color);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.informative {
|
|
55
|
+
background-color: var(--alert-info-background-color);
|
|
56
|
+
border-radius: var(--alert-border-radius);
|
|
57
|
+
|
|
58
|
+
&.emph-low {
|
|
59
|
+
color: unset;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.emph-medium {
|
|
63
|
+
@include mixins.alertBorder(var(--alert-info-inverted-color));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.emph-high {
|
|
67
|
+
background-color: var(--alert-info-inverted-color);
|
|
68
|
+
|
|
69
|
+
.content,
|
|
70
|
+
.title,
|
|
71
|
+
.close-btn,
|
|
72
|
+
.icon,
|
|
73
|
+
.action-button {
|
|
74
|
+
color: var(--alert-text-inverted-color);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.success {
|
|
80
|
+
background-color: var(--alert-success-background-color);
|
|
81
|
+
border-radius: var(--alert-border-radius);
|
|
82
|
+
|
|
83
|
+
&.emph-low .icon {
|
|
84
|
+
color: var(--alert-success-inverted-color);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.emph-medium {
|
|
88
|
+
@include mixins.alertBorder(var(--alert-success-inverted-color));
|
|
89
|
+
|
|
90
|
+
.icon {
|
|
91
|
+
color: var(--alert-success-inverted-color);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.emph-high {
|
|
96
|
+
background-color: var(--alert-success-inverted-color);
|
|
97
|
+
|
|
98
|
+
.content,
|
|
99
|
+
.title,
|
|
100
|
+
.close-btn,
|
|
101
|
+
.icon,
|
|
102
|
+
.action-button {
|
|
103
|
+
color: var(--alert-text-inverted-color);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.warning {
|
|
109
|
+
background-color: var(--alert-warning-background-color);
|
|
110
|
+
border-radius: var(--alert-border-radius);
|
|
111
|
+
|
|
112
|
+
&.emph-low .icon {
|
|
113
|
+
color: var(--alert-warning-inverted-color);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.emph-medium {
|
|
117
|
+
@include mixins.alertBorder(var(--alert-warning-inverted-color));
|
|
118
|
+
|
|
119
|
+
.icon {
|
|
120
|
+
color: var(--alert-warning-inverted-color);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.emph-high {
|
|
125
|
+
background-color: var(--alert-warning-inverted-color);
|
|
126
|
+
|
|
127
|
+
.content,
|
|
128
|
+
.title,
|
|
129
|
+
.close-btn,
|
|
130
|
+
.icon,
|
|
131
|
+
.action-button {
|
|
132
|
+
color: var(--alert-text-inverted-color);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&.error {
|
|
138
|
+
background-color: var(--alert-error-background-color);
|
|
139
|
+
border-radius: var(--alert-border-radius);
|
|
140
|
+
|
|
141
|
+
&.emph-low .icon {
|
|
142
|
+
color: var(--alert-error-inverted-color);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.emph-medium {
|
|
146
|
+
@include mixins.alertBorder(var(--alert-error-inverted-color));
|
|
147
|
+
|
|
148
|
+
.icon {
|
|
149
|
+
color: var(--alert-error-inverted-color);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.emph-high {
|
|
154
|
+
background-color: var(--alert-error-inverted-color);
|
|
155
|
+
|
|
156
|
+
.content,
|
|
157
|
+
.title,
|
|
158
|
+
.close-btn,
|
|
159
|
+
.icon,
|
|
160
|
+
.action-button {
|
|
161
|
+
color: var(--alert-text-inverted-color);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
& + & {
|
|
167
|
+
margin-top: 0.5rem;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.close-btn {
|
|
171
|
+
color: var(--alert-text-color);
|
|
172
|
+
align-self: center;
|
|
173
|
+
width: 2.5rem;
|
|
174
|
+
height: 2.5rem;
|
|
175
|
+
margin: -0.5rem 0;
|
|
176
|
+
flex-shrink: 0;
|
|
177
|
+
border: 0;
|
|
178
|
+
|
|
179
|
+
span {
|
|
180
|
+
font-size: 0.875rem;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&:not(:disabled):hover,
|
|
184
|
+
&:not(:disabled):focus {
|
|
185
|
+
background-color: var(--color-black10);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&:not(:disabled):active {
|
|
189
|
+
background-color: var(--color-black20);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.icon {
|
|
194
|
+
color: var(--alert-text-color);
|
|
195
|
+
font-size: 1rem;
|
|
196
|
+
height: 1.25rem;
|
|
197
|
+
display: inline-flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
align-self: flex-start;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.title {
|
|
203
|
+
color: var(--alert-text-color);
|
|
204
|
+
flex: 1;
|
|
205
|
+
font-size: 0.875rem;
|
|
206
|
+
line-height: 1.25rem;
|
|
207
|
+
margin-bottom: 0.25rem;
|
|
208
|
+
display: block;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.outer-content-wrapper {
|
|
212
|
+
display: flex;
|
|
213
|
+
gap: 0.5rem;
|
|
214
|
+
flex-grow: 1;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.content-wrapper {
|
|
218
|
+
flex-grow: 1;
|
|
219
|
+
padding-left: 0.125rem;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.content {
|
|
223
|
+
color: var(--alert-text-color);
|
|
224
|
+
font-size: 0.875rem;
|
|
225
|
+
line-height: 1.25rem;
|
|
226
|
+
margin-bottom: 0;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.actions {
|
|
230
|
+
text-align: right;
|
|
231
|
+
align-self: center;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.action-button {
|
|
235
|
+
border-width: var(--button-border-width);
|
|
236
|
+
border-style: var(--button-border-style);
|
|
237
|
+
border-radius: var(--button-border-radius);
|
|
238
|
+
white-space: nowrap;
|
|
239
|
+
font-size: 0.875rem;
|
|
240
|
+
line-height: var(--button-font-size);
|
|
241
|
+
font-weight: 400;
|
|
242
|
+
margin: -0.5rem 0;
|
|
243
|
+
padding: 0.625rem 1.25rem;
|
|
244
|
+
cursor: pointer;
|
|
245
|
+
transition:
|
|
246
|
+
color,
|
|
247
|
+
background-color,
|
|
248
|
+
border-color 0.2s ease-in-out;
|
|
249
|
+
font-family: var(--font-family);
|
|
250
|
+
color: var(--alert-text-color);
|
|
251
|
+
background-color: transparent;
|
|
252
|
+
border-color: transparent;
|
|
253
|
+
|
|
254
|
+
&:disabled {
|
|
255
|
+
color: var(--greyed-out);
|
|
256
|
+
cursor: not-allowed;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@include mixins.focusVisibleOutline();
|
|
260
|
+
|
|
261
|
+
&:not(:disabled):hover,
|
|
262
|
+
&:not(:disabled):focus {
|
|
263
|
+
background-color: var(--color-black10);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
&:not(:disabled):active {
|
|
267
|
+
background-color: var(--color-black20);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
@media only screen and (min-width: 37.5em) {
|
|
273
|
+
.alert {
|
|
274
|
+
width: min-content;
|
|
275
|
+
min-width: 25rem;
|
|
276
|
+
}
|
|
277
|
+
}
|