@onewelcome/react-lib-components 4.2.0 → 5.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/dist/cjs/Breadcrumbs/Breadcrumbs.cjs.js +2 -0
- package/dist/cjs/Breadcrumbs/Breadcrumbs.cjs.js.map +1 -0
- package/dist/cjs/Breadcrumbs/Breadcrumbs.module.cjs.js +2 -0
- package/dist/cjs/Breadcrumbs/Breadcrumbs.module.cjs.js.map +1 -0
- package/dist/cjs/Button/BaseButton.cjs.js +2 -0
- package/dist/cjs/Button/BaseButton.cjs.js.map +1 -0
- package/dist/cjs/Button/BaseButton.module.cjs.js +2 -0
- package/dist/cjs/Button/BaseButton.module.cjs.js.map +1 -0
- package/dist/cjs/Button/Button.cjs.js +2 -0
- package/dist/cjs/Button/Button.cjs.js.map +1 -0
- package/dist/cjs/Button/Button.module.cjs.js +2 -0
- package/dist/cjs/Button/Button.module.cjs.js.map +1 -0
- package/dist/cjs/Button/IconButton.cjs.js +2 -0
- package/dist/cjs/Button/IconButton.cjs.js.map +1 -0
- package/dist/cjs/Button/IconButton.module.cjs.js +2 -0
- package/dist/cjs/Button/IconButton.module.cjs.js.map +1 -0
- package/dist/cjs/Button/Spinner.cjs.js +2 -0
- package/dist/cjs/Button/Spinner.cjs.js.map +1 -0
- package/dist/cjs/ContextMenu/ContextMenu.cjs.js +2 -0
- package/dist/cjs/ContextMenu/ContextMenu.cjs.js.map +1 -0
- package/dist/cjs/ContextMenu/ContextMenu.module.cjs.js +2 -0
- package/dist/cjs/ContextMenu/ContextMenu.module.cjs.js.map +1 -0
- package/dist/cjs/ContextMenu/ContextMenuItem.cjs.js +2 -0
- package/dist/cjs/ContextMenu/ContextMenuItem.cjs.js.map +1 -0
- package/dist/cjs/ContextMenu/ContextMenuItem.module.cjs.js +2 -0
- package/dist/cjs/ContextMenu/ContextMenuItem.module.cjs.js.map +1 -0
- package/dist/cjs/ContextMenu/ContextMenuService.cjs.js +2 -0
- package/dist/cjs/ContextMenu/ContextMenuService.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGrid.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGrid.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGrid.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGrid.module.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridActions/DataGridActions.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridActions/DataGridActions.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridActions/DataGridActions.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridActions/DataGridActions.module.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.module.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridBody.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridBody.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridBody.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridBody.module.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell.module.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow.module.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.module.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.cjs.js.map +1 -0
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.module.cjs.js +2 -0
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Checkbox/Checkbox.cjs.js +2 -0
- package/dist/cjs/Form/Checkbox/Checkbox.cjs.js.map +1 -0
- package/dist/cjs/Form/Checkbox/Checkbox.module.cjs.js +2 -0
- package/dist/cjs/Form/Checkbox/Checkbox.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Fieldset/Fieldset.cjs.js +2 -0
- package/dist/cjs/Form/Fieldset/Fieldset.cjs.js.map +1 -0
- package/dist/cjs/Form/Fieldset/Fieldset.module.cjs.js +2 -0
- package/dist/cjs/Form/Fieldset/Fieldset.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Form.cjs.js +2 -0
- package/dist/cjs/Form/Form.cjs.js.map +1 -0
- package/dist/cjs/Form/Form.module.cjs.js +2 -0
- package/dist/cjs/Form/Form.module.cjs.js.map +1 -0
- package/dist/cjs/Form/FormControl/FormControl.cjs.js +2 -0
- package/dist/cjs/Form/FormControl/FormControl.cjs.js.map +1 -0
- package/dist/cjs/Form/FormControl/FormControl.module.cjs.js +2 -0
- package/dist/cjs/Form/FormControl/FormControl.module.cjs.js.map +1 -0
- package/dist/cjs/Form/FormGroup/FormGroup.cjs.js +2 -0
- package/dist/cjs/Form/FormGroup/FormGroup.cjs.js.map +1 -0
- package/dist/cjs/Form/FormGroup/FormGroup.module.cjs.js +2 -0
- package/dist/cjs/Form/FormGroup/FormGroup.module.cjs.js.map +1 -0
- package/dist/cjs/Form/FormHelperText/FormHelperText.cjs.js +2 -0
- package/dist/cjs/Form/FormHelperText/FormHelperText.cjs.js.map +1 -0
- package/dist/cjs/Form/FormHelperText/FormHelperText.module.cjs.js +2 -0
- package/dist/cjs/Form/FormHelperText/FormHelperText.module.cjs.js.map +1 -0
- package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js +2 -0
- package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.cjs.js.map +1 -0
- package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.module.cjs.js +2 -0
- package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Input/Input.cjs.js +2 -0
- package/dist/cjs/Form/Input/Input.cjs.js.map +1 -0
- package/dist/cjs/Form/Input/Input.module.cjs.js +2 -0
- package/dist/cjs/Form/Input/Input.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Label/Label.cjs.js +2 -0
- package/dist/cjs/Form/Label/Label.cjs.js.map +1 -0
- package/dist/cjs/Form/Label/Label.module.cjs.js +2 -0
- package/dist/cjs/Form/Label/Label.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Radio/Radio.cjs.js +2 -0
- package/dist/cjs/Form/Radio/Radio.cjs.js.map +1 -0
- package/dist/cjs/Form/Radio/Radio.module.cjs.js +2 -0
- package/dist/cjs/Form/Radio/Radio.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Select/Option.cjs.js +2 -0
- package/dist/cjs/Form/Select/Option.cjs.js.map +1 -0
- package/dist/cjs/Form/Select/Select.cjs.js +2 -0
- package/dist/cjs/Form/Select/Select.cjs.js.map +1 -0
- package/dist/cjs/Form/Select/Select.module.cjs.js +2 -0
- package/dist/cjs/Form/Select/Select.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Select/SelectService.cjs.js +2 -0
- package/dist/cjs/Form/Select/SelectService.cjs.js.map +1 -0
- package/dist/cjs/Form/Textarea/Textarea.cjs.js +2 -0
- package/dist/cjs/Form/Textarea/Textarea.cjs.js.map +1 -0
- package/dist/cjs/Form/Textarea/Textarea.module.cjs.js +2 -0
- package/dist/cjs/Form/Textarea/Textarea.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Toggle/Toggle.cjs.js +2 -0
- package/dist/cjs/Form/Toggle/Toggle.cjs.js.map +1 -0
- package/dist/cjs/Form/Toggle/Toggle.module.cjs.js +2 -0
- package/dist/cjs/Form/Toggle/Toggle.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js +2 -0
- package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js.map +1 -0
- package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.cjs.js +2 -0
- package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.cjs.js +2 -0
- package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.cjs.js.map +1 -0
- package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.module.cjs.js +2 -0
- package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +2 -0
- package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -0
- package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.module.cjs.js +2 -0
- package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js +2 -0
- package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js.map +1 -0
- package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.module.cjs.js +2 -0
- package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js +2 -0
- package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js.map +1 -0
- package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.cjs.js +2 -0
- package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.cjs.js.map +1 -0
- package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.cjs.js +2 -0
- package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.cjs.js.map +1 -0
- package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.module.cjs.js +2 -0
- package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.module.cjs.js.map +1 -0
- package/dist/cjs/Icon/Icon.cjs.js +2 -0
- package/dist/cjs/Icon/Icon.cjs.js.map +1 -0
- package/dist/cjs/Icon/Icon.module.cjs.js +2 -0
- package/dist/cjs/Icon/Icon.module.cjs.js.map +1 -0
- package/dist/cjs/Link/Link.cjs.js +2 -0
- package/dist/cjs/Link/Link.cjs.js.map +1 -0
- package/dist/cjs/Link/Link.module.cjs.js +2 -0
- package/dist/cjs/Link/Link.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Banner/Banner.cjs.js +2 -0
- package/dist/cjs/Notifications/Banner/Banner.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Banner/Banner.module.cjs.js +2 -0
- package/dist/cjs/Notifications/Banner/Banner.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/BaseModal/BaseModal.cjs.js +2 -0
- package/dist/cjs/Notifications/BaseModal/BaseModal.cjs.js.map +1 -0
- package/dist/cjs/Notifications/BaseModal/BaseModal.module.cjs.js +2 -0
- package/dist/cjs/Notifications/BaseModal/BaseModal.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js +2 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.cjs.js.map +1 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.cjs.js +2 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js +2 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.cjs.js.map +1 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.cjs.js +2 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalContext.cjs.js +2 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalContext.cjs.js.map +1 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js +2 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.cjs.js.map +1 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.cjs.js +2 -0
- package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Dialog/Dialog.cjs.js +2 -0
- package/dist/cjs/Notifications/Dialog/Dialog.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Dialog/Dialog.module.cjs.js +2 -0
- package/dist/cjs/Notifications/Dialog/Dialog.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.cjs.js +2 -0
- package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.module.cjs.js +2 -0
- package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js +2 -0
- package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.module.cjs.js +2 -0
- package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js +2 -0
- package/dist/cjs/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.cjs.js.map +1 -0
- package/dist/cjs/Notifications/DiscardChangesModal/DiscardChangesModal.cjs.js +2 -0
- package/dist/cjs/Notifications/DiscardChangesModal/DiscardChangesModal.cjs.js.map +1 -0
- package/dist/cjs/Notifications/NotificationProvider/NotificationContext.cjs.js +2 -0
- package/dist/cjs/Notifications/NotificationProvider/NotificationContext.cjs.js.map +1 -0
- package/dist/cjs/Notifications/NotificationProvider/NotificationService.cjs.js +2 -0
- package/dist/cjs/Notifications/NotificationProvider/NotificationService.cjs.js.map +1 -0
- package/dist/cjs/Notifications/SlideInModal/SlideInModal.cjs.js +2 -0
- package/dist/cjs/Notifications/SlideInModal/SlideInModal.cjs.js.map +1 -0
- package/dist/cjs/Notifications/SlideInModal/SlideInModal.module.cjs.js +2 -0
- package/dist/cjs/Notifications/SlideInModal/SlideInModal.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.cjs.js +2 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.cjs.js +2 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.cjs.js +2 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.cjs.js +2 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.cjs.js +2 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.cjs.js +2 -0
- package/dist/cjs/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.cjs.js.map +1 -0
- package/dist/cjs/Notifications/Snackbar/useSnackbar.cjs.js +2 -0
- package/dist/cjs/Notifications/Snackbar/useSnackbar.cjs.js.map +1 -0
- package/dist/cjs/Pagination/Pagination.cjs.js +2 -0
- package/dist/cjs/Pagination/Pagination.cjs.js.map +1 -0
- package/dist/cjs/Pagination/Pagination.module.cjs.js +2 -0
- package/dist/cjs/Pagination/Pagination.module.cjs.js.map +1 -0
- package/dist/cjs/Popover/Popover.cjs.js +2 -0
- package/dist/cjs/Popover/Popover.cjs.js.map +1 -0
- package/dist/cjs/Popover/Popover.module.cjs.js +2 -0
- package/dist/cjs/Popover/Popover.module.cjs.js.map +1 -0
- package/dist/cjs/ProgressBar/ProgressBar.cjs.js +2 -0
- package/dist/cjs/ProgressBar/ProgressBar.cjs.js.map +1 -0
- package/dist/cjs/ProgressBar/ProgressBar.module.cjs.js +2 -0
- package/dist/cjs/ProgressBar/ProgressBar.module.cjs.js.map +1 -0
- package/dist/cjs/Skeleton/Skeleton.cjs.js +2 -0
- package/dist/cjs/Skeleton/Skeleton.cjs.js.map +1 -0
- package/dist/cjs/Skeleton/Skeleton.module.cjs.js +2 -0
- package/dist/cjs/Skeleton/Skeleton.module.cjs.js.map +1 -0
- package/dist/cjs/StatusIndicator/StatusIndicator.cjs.js +2 -0
- package/dist/cjs/StatusIndicator/StatusIndicator.cjs.js.map +1 -0
- package/dist/cjs/StatusIndicator/StatusIndicator.module.cjs.js +2 -0
- package/dist/cjs/StatusIndicator/StatusIndicator.module.cjs.js.map +1 -0
- package/dist/cjs/Stepper/Step.cjs.js +2 -0
- package/dist/cjs/Stepper/Step.cjs.js.map +1 -0
- package/dist/cjs/Stepper/Step.module.cjs.js +2 -0
- package/dist/cjs/Stepper/Step.module.cjs.js.map +1 -0
- package/dist/cjs/Stepper/Stepper.cjs.js +2 -0
- package/dist/cjs/Stepper/Stepper.cjs.js.map +1 -0
- package/dist/cjs/Stepper/Stepper.module.cjs.js +2 -0
- package/dist/cjs/Stepper/Stepper.module.cjs.js.map +1 -0
- package/dist/cjs/Tabs/Tab.cjs.js +2 -0
- package/dist/cjs/Tabs/Tab.cjs.js.map +1 -0
- package/dist/cjs/Tabs/Tab.module.cjs.js +2 -0
- package/dist/cjs/Tabs/Tab.module.cjs.js.map +1 -0
- package/dist/cjs/Tabs/TabButton.cjs.js +2 -0
- package/dist/cjs/Tabs/TabButton.cjs.js.map +1 -0
- package/dist/cjs/Tabs/TabButton.module.cjs.js +2 -0
- package/dist/cjs/Tabs/TabButton.module.cjs.js.map +1 -0
- package/dist/cjs/Tabs/Tabs.cjs.js +2 -0
- package/dist/cjs/Tabs/Tabs.cjs.js.map +1 -0
- package/dist/cjs/Tabs/Tabs.module.cjs.js +2 -0
- package/dist/cjs/Tabs/Tabs.module.cjs.js.map +1 -0
- package/dist/cjs/Tag/Tag.cjs.js +2 -0
- package/dist/cjs/Tag/Tag.cjs.js.map +1 -0
- package/dist/cjs/Tag/Tag.module.cjs.js +2 -0
- package/dist/cjs/Tag/Tag.module.cjs.js.map +1 -0
- package/dist/cjs/TextEllipsis/TextEllipsis.cjs.js +2 -0
- package/dist/cjs/TextEllipsis/TextEllipsis.cjs.js.map +1 -0
- package/dist/cjs/TextEllipsis/TextEllipsis.module.cjs.js +2 -0
- package/dist/cjs/TextEllipsis/TextEllipsis.module.cjs.js.map +1 -0
- package/dist/cjs/Tiles/Tile.cjs.js +2 -0
- package/dist/cjs/Tiles/Tile.cjs.js.map +1 -0
- package/dist/cjs/Tiles/Tile.module.cjs.js +2 -0
- package/dist/cjs/Tiles/Tile.module.cjs.js.map +1 -0
- package/dist/cjs/Tiles/Tiles.cjs.js +2 -0
- package/dist/cjs/Tiles/Tiles.cjs.js.map +1 -0
- package/dist/cjs/Tiles/Tiles.module.cjs.js +2 -0
- package/dist/cjs/Tiles/Tiles.module.cjs.js.map +1 -0
- package/dist/cjs/Tooltip/Tooltip.cjs.js +2 -0
- package/dist/cjs/Tooltip/Tooltip.cjs.js.map +1 -0
- package/dist/cjs/Tooltip/Tooltip.module.cjs.js +2 -0
- package/dist/cjs/Tooltip/Tooltip.module.cjs.js.map +1 -0
- package/dist/cjs/Typography/Typography.cjs.js +2 -0
- package/dist/cjs/Typography/Typography.cjs.js.map +1 -0
- package/dist/cjs/Typography/Typography.module.cjs.js +2 -0
- package/dist/cjs/Typography/Typography.module.cjs.js.map +1 -0
- package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.cjs.js +2 -0
- package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.cjs.js.map +1 -0
- package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.module.cjs.js +2 -0
- package/dist/cjs/Wizard/BaseWizardSteps/BaseWizardSteps.module.cjs.js.map +1 -0
- package/dist/cjs/Wizard/Wizard.cjs.js +2 -0
- package/dist/cjs/Wizard/Wizard.cjs.js.map +1 -0
- package/dist/cjs/Wizard/WizardActions/WizardActions.cjs.js +2 -0
- package/dist/cjs/Wizard/WizardActions/WizardActions.cjs.js.map +1 -0
- package/dist/cjs/Wizard/WizardStateProvider.cjs.js +2 -0
- package/dist/cjs/Wizard/WizardStateProvider.cjs.js.map +1 -0
- package/dist/cjs/Wizard/WizardSteps/WizardSteps.cjs.js +2 -0
- package/dist/cjs/Wizard/WizardSteps/WizardSteps.cjs.js.map +1 -0
- package/dist/cjs/Wizard/wizardStateReducer.cjs.js +2 -0
- package/dist/cjs/Wizard/wizardStateReducer.cjs.js.map +1 -0
- package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js +2 -0
- package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js.map +1 -0
- package/dist/cjs/node_modules/style-inject/dist/style-inject.es.cjs.js +2 -0
- package/dist/cjs/node_modules/style-inject/dist/style-inject.es.cjs.js.map +1 -0
- package/dist/cjs/src/components/Breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/dist/cjs/src/components/Breadcrumbs/Breadcrumbs.test.d.ts +1 -0
- package/dist/cjs/src/components/Button/BaseButton.d.ts +8 -0
- package/dist/cjs/src/components/Button/BaseButton.test.d.ts +1 -0
- package/dist/cjs/src/components/Button/Button.d.ts +8 -0
- package/dist/cjs/src/components/Button/Button.test.d.ts +1 -0
- package/dist/cjs/src/components/Button/IconButton.d.ts +11 -0
- package/dist/cjs/src/components/Button/IconButton.test.d.ts +1 -0
- package/dist/cjs/src/components/Button/Spinner.d.ts +2 -0
- package/dist/cjs/src/components/ContextMenu/ContextMenu.d.ts +24 -0
- package/dist/cjs/src/components/ContextMenu/ContextMenu.test.d.ts +1 -0
- package/dist/cjs/src/components/ContextMenu/ContextMenuItem.d.ts +14 -0
- package/dist/cjs/src/components/ContextMenu/ContextMenuService.d.ts +18 -0
- package/dist/cjs/src/components/DataGrid/DataGrid.d.ts +33 -0
- package/dist/cjs/src/components/DataGrid/DataGrid.test.d.ts +1 -0
- package/dist/cjs/src/components/DataGrid/DataGridActions/DataGridActions.d.ts +15 -0
- package/dist/cjs/src/components/DataGrid/DataGridActions/DataGridActions.test.d.ts +1 -0
- package/dist/cjs/src/components/DataGrid/DataGridActions/DataGridColumnsToggle.d.ts +13 -0
- package/dist/cjs/src/components/DataGrid/DataGridActions/DataGridColumnsToggle.test.d.ts +1 -0
- package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridBody.d.ts +17 -0
- package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridBody.test.d.ts +1 -0
- package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridCell.d.ts +10 -0
- package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridCell.test.d.ts +1 -0
- package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridRow.d.ts +9 -0
- package/dist/cjs/src/components/DataGrid/DataGridBody/DataGridRow.test.d.ts +1 -0
- package/dist/cjs/src/components/DataGrid/DataGridHeader/DataGridHeader.d.ts +11 -0
- package/dist/cjs/src/components/DataGrid/DataGridHeader/DataGridHeader.test.d.ts +1 -0
- package/dist/cjs/src/components/DataGrid/DataGridHeader/DataGridHeaderCell.d.ts +10 -0
- package/dist/cjs/src/components/DataGrid/DataGridHeader/DataGridHeaderCell.test.d.ts +1 -0
- package/dist/cjs/src/components/DataGrid/datagrid.interfaces.d.ts +13 -0
- package/dist/cjs/src/components/Form/Checkbox/Checkbox.d.ts +12 -0
- package/dist/cjs/src/components/Form/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Fieldset/Fieldset.d.ts +14 -0
- package/dist/cjs/src/components/Form/Fieldset/Fieldset.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/FileUpload/FileItem/FileItem.d.ts +17 -0
- package/dist/cjs/src/components/Form/FileUpload/FileItem/FileItem.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/FileUpload/FileUpload.d.ts +26 -0
- package/dist/cjs/src/components/Form/FileUpload/FileUpload.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Form.d.ts +5 -0
- package/dist/cjs/src/components/Form/Form.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/FormControl/FormControl.d.ts +8 -0
- package/dist/cjs/src/components/Form/FormControl/FormControl.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/FormGroup/FormGroup.d.ts +17 -0
- package/dist/cjs/src/components/Form/FormGroup/FormGroup.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/FormHelperText/FormHelperText.d.ts +7 -0
- package/dist/cjs/src/components/Form/FormHelperText/FormHelperText.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/FormSelectorWrapper/FormSelectorWrapper.d.ts +14 -0
- package/dist/cjs/src/components/Form/FormSelectorWrapper/FormSelectorWrapper.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Input/Input.d.ts +13 -0
- package/dist/cjs/src/components/Form/Input/Input.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Label/Label.d.ts +5 -0
- package/dist/cjs/src/components/Form/Label/Label.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Radio/Radio.d.ts +11 -0
- package/dist/cjs/src/components/Form/Radio/Radio.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Select/Option.d.ts +16 -0
- package/dist/cjs/src/components/Form/Select/Option.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Select/Select.d.ts +23 -0
- package/dist/cjs/src/components/Form/Select/Select.interfaces.d.ts +21 -0
- package/dist/cjs/src/components/Form/Select/Select.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Select/SelectService.d.ts +12 -0
- package/dist/cjs/src/components/Form/Textarea/Textarea.d.ts +6 -0
- package/dist/cjs/src/components/Form/Textarea/Textarea.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Toggle/Toggle.d.ts +11 -0
- package/dist/cjs/src/components/Form/Toggle/Toggle.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.d.ts +12 -0
- package/dist/cjs/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Wrapper/InputWrapper/InputWrapper.d.ts +18 -0
- package/dist/cjs/src/components/Form/Wrapper/InputWrapper/InputWrapper.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.d.ts +10 -0
- package/dist/cjs/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Wrapper/SelectWrapper/SelectWrapper.d.ts +16 -0
- package/dist/cjs/src/components/Form/Wrapper/SelectWrapper/SelectWrapper.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.d.ts +15 -0
- package/dist/cjs/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/Wrapper/Wrapper/Wrapper.d.ts +26 -0
- package/dist/cjs/src/components/Form/Wrapper/Wrapper/Wrapper.test.d.ts +1 -0
- package/dist/cjs/src/components/Form/form.interfaces.d.ts +14 -0
- package/dist/cjs/src/components/Icon/Icon.d.ts +82 -0
- package/dist/cjs/src/components/Icon/Icon.test.d.ts +1 -0
- package/dist/cjs/src/components/Link/Link.d.ts +14 -0
- package/dist/cjs/src/components/Link/Link.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Banner/Banner.d.ts +11 -0
- package/dist/cjs/src/components/Notifications/Banner/Banner.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/BaseModal/BaseModal.d.ts +19 -0
- package/dist/cjs/src/components/Notifications/BaseModal/BaseModal.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.d.ts +13 -0
- package/dist/cjs/src/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.d.ts +8 -0
- package/dist/cjs/src/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/BaseModal/BaseModalContext.d.ts +2 -0
- package/dist/cjs/src/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.d.ts +8 -0
- package/dist/cjs/src/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Dialog/Dialog.d.ts +22 -0
- package/dist/cjs/src/components/Notifications/Dialog/Dialog.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Dialog/DialogActions/DialogActions.d.ts +6 -0
- package/dist/cjs/src/components/Notifications/Dialog/DialogActions/DialogActions.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Dialog/DialogTitle/DialogTitle.d.ts +8 -0
- package/dist/cjs/src/components/Notifications/Dialog/DialogTitle/DialogTitle.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.d.ts +15 -0
- package/dist/cjs/src/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/DiscardChangesModal/DiscardChangesModal.d.ts +13 -0
- package/dist/cjs/src/components/Notifications/DiscardChangesModal/DiscardChangesModal.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Modal/Modal.d.ts +2 -0
- package/dist/cjs/src/components/Notifications/Modal/Modal.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Modal/ModalActions/ModalActions.d.ts +2 -0
- package/dist/cjs/src/components/Notifications/Modal/ModalContent/ModalContent.d.ts +2 -0
- package/dist/cjs/src/components/Notifications/Modal/ModalHeader/ModalHeader.d.ts +2 -0
- package/dist/cjs/src/components/Notifications/NotificationProvider/NotificationContext.d.ts +35 -0
- package/dist/cjs/src/components/Notifications/NotificationProvider/NotificationContext.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/NotificationProvider/NotificationService.d.ts +2 -0
- package/dist/cjs/src/components/Notifications/NotificationProvider/notification.interfaces.d.ts +46 -0
- package/dist/cjs/src/components/Notifications/SlideInModal/SlideInModal.d.ts +4 -0
- package/dist/cjs/src/components/Notifications/SlideInModal/SlideInModal.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.d.ts +12 -0
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.d.ts +14 -0
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarItem/SnackbarItem.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +30 -0
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.test.d.ts +1 -0
- package/dist/cjs/src/components/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.d.ts +18 -0
- package/dist/cjs/src/components/Notifications/Snackbar/interfaces.d.ts +12 -0
- package/dist/cjs/src/components/Notifications/Snackbar/useSnackbar.d.ts +6 -0
- package/dist/cjs/src/components/Pagination/Pagination.d.ts +19 -0
- package/dist/cjs/src/components/Pagination/Pagination.test.d.ts +1 -0
- package/dist/cjs/src/components/Popover/Popover.d.ts +13 -0
- package/dist/cjs/src/components/Popover/Popover.test.d.ts +1 -0
- package/dist/cjs/src/components/ProgressBar/ProgressBar.d.ts +9 -0
- package/dist/cjs/src/components/ProgressBar/ProgressBar.test.d.ts +1 -0
- package/dist/cjs/src/components/Skeleton/Skeleton.d.ts +7 -0
- package/dist/cjs/src/components/Skeleton/Skeleton.test.d.ts +1 -0
- package/dist/cjs/src/components/StatusIndicator/StatusIndicator.d.ts +9 -0
- package/dist/cjs/src/components/StatusIndicator/StatusIndicator.test.d.ts +1 -0
- package/dist/cjs/src/components/Stepper/Step.d.ts +13 -0
- package/dist/cjs/src/components/Stepper/Stepper.d.ts +7 -0
- package/dist/cjs/src/components/Stepper/Stepper.test.d.ts +1 -0
- package/dist/cjs/src/components/Tabs/Tab.d.ts +8 -0
- package/dist/cjs/src/components/Tabs/Tab.test.d.ts +1 -0
- package/dist/cjs/src/components/Tabs/TabButton.d.ts +9 -0
- package/dist/cjs/src/components/Tabs/TabButton.test.d.ts +1 -0
- package/dist/cjs/src/components/Tabs/Tabs.d.ts +12 -0
- package/dist/cjs/src/components/Tabs/Tabs.test.d.ts +1 -0
- package/dist/cjs/src/components/Tag/Tag.d.ts +10 -0
- package/dist/cjs/src/components/Tag/Tag.test.d.ts +1 -0
- package/dist/cjs/src/components/TextEllipsis/TextEllipsis.d.ts +6 -0
- package/dist/cjs/src/components/TextEllipsis/TextEllipsis.test.d.ts +1 -0
- package/dist/cjs/src/components/Tiles/Tile.d.ts +15 -0
- package/dist/cjs/src/components/Tiles/Tile.test.d.ts +1 -0
- package/dist/cjs/src/components/Tiles/Tiles.d.ts +6 -0
- package/dist/cjs/src/components/Tiles/Tiles.test.d.ts +1 -0
- package/dist/cjs/src/components/Tooltip/Tooltip.d.ts +11 -0
- package/dist/cjs/src/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/cjs/src/components/Typography/Typography.d.ts +14 -0
- package/dist/cjs/src/components/Typography/Typography.test.d.ts +1 -0
- package/dist/cjs/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.d.ts +12 -0
- package/dist/cjs/src/components/Wizard/BaseWizardSteps/BaseWizardSteps.test.d.ts +1 -0
- package/dist/cjs/src/components/Wizard/Wizard.d.ts +11 -0
- package/dist/cjs/src/components/Wizard/Wizard.test.d.ts +1 -0
- package/dist/cjs/src/components/Wizard/WizardActions/WizardActions.d.ts +22 -0
- package/dist/cjs/src/components/Wizard/WizardActions/WizardActions.test.d.ts +1 -0
- package/dist/cjs/src/components/Wizard/WizardStateProvider.d.ts +12 -0
- package/dist/cjs/src/components/Wizard/WizardSteps/WizardSteps.d.ts +5 -0
- package/dist/cjs/src/components/Wizard/WizardSteps/WizardSteps.test.d.ts +1 -0
- package/dist/cjs/src/components/Wizard/wizardStateReducer.d.ts +24 -0
- package/dist/cjs/src/components/_BaseStyling_/BaseStyling.d.ts +182 -0
- package/dist/cjs/src/components/_BaseStyling_/BaseStyling.test.d.ts +1 -0
- package/dist/cjs/src/hooks/useAnimation.cjs.js +2 -0
- package/dist/cjs/src/hooks/useAnimation.cjs.js.map +1 -0
- package/dist/cjs/src/hooks/useAnimation.d.ts +5 -0
- package/dist/cjs/src/hooks/useAnimation.test.d.ts +1 -0
- package/dist/cjs/src/hooks/useBodyClick.cjs.js +2 -0
- package/dist/cjs/src/hooks/useBodyClick.cjs.js.map +1 -0
- package/dist/cjs/src/hooks/useBodyClick.d.ts +1 -0
- package/dist/cjs/src/hooks/useBodyClick.test.d.ts +1 -0
- package/dist/cjs/src/hooks/useDebouncedCallback.cjs.js +2 -0
- package/dist/cjs/src/hooks/useDebouncedCallback.cjs.js.map +1 -0
- package/dist/cjs/src/hooks/useDebouncedCallback.d.ts +1 -0
- package/dist/cjs/src/hooks/useDebouncedCallback.test.d.ts +1 -0
- package/dist/cjs/src/hooks/useDetermineStatusIcon.cjs.js +2 -0
- package/dist/cjs/src/hooks/useDetermineStatusIcon.cjs.js.map +1 -0
- package/dist/cjs/src/hooks/useDetermineStatusIcon.d.ts +3 -0
- package/dist/cjs/src/hooks/useDetermineStatusIcon.test.d.ts +1 -0
- package/dist/cjs/src/hooks/useFormSelector.cjs.js +2 -0
- package/dist/cjs/src/hooks/useFormSelector.cjs.js.map +1 -0
- package/dist/cjs/src/hooks/useFormSelector.d.ts +13 -0
- package/dist/cjs/src/hooks/useFormSelector.test.d.ts +1 -0
- package/dist/cjs/src/hooks/useGetDomRoot.cjs.js +2 -0
- package/dist/cjs/src/hooks/useGetDomRoot.cjs.js.map +1 -0
- package/dist/cjs/src/hooks/useGetDomRoot.d.ts +3 -0
- package/dist/cjs/src/hooks/usePosition.cjs.js +2 -0
- package/dist/cjs/src/hooks/usePosition.cjs.js.map +1 -0
- package/dist/cjs/src/hooks/usePosition.d.ts +50 -0
- package/dist/cjs/src/hooks/usePosition.test.d.ts +1 -0
- package/dist/cjs/src/hooks/useRepeater.cjs.js +2 -0
- package/dist/cjs/src/hooks/useRepeater.cjs.js.map +1 -0
- package/dist/cjs/src/hooks/useRepeater.d.ts +10 -0
- package/dist/cjs/src/hooks/useRepeater.test.d.ts +6 -0
- package/dist/cjs/src/hooks/useScroll.d.ts +2 -0
- package/dist/cjs/src/hooks/useScroll.test.d.ts +1 -0
- package/dist/cjs/src/hooks/useSpacing.cjs.js +2 -0
- package/dist/cjs/src/hooks/useSpacing.cjs.js.map +1 -0
- package/dist/cjs/src/hooks/useSpacing.d.ts +18 -0
- package/dist/cjs/src/hooks/useSpacing.test.d.ts +1 -0
- package/dist/cjs/src/hooks/useUploadFile.d.ts +21 -0
- package/dist/cjs/src/hooks/useUploadFile.test.d.ts +1 -0
- package/dist/cjs/src/hooks/useWrapper.cjs.js +2 -0
- package/dist/cjs/src/hooks/useWrapper.cjs.js.map +1 -0
- package/dist/cjs/src/hooks/useWrapper.d.ts +7 -0
- package/dist/cjs/src/hooks/useWrapper.test.d.ts +1 -0
- package/dist/cjs/src/index.cjs.js +2 -0
- package/dist/cjs/src/index.cjs.js.map +1 -0
- package/dist/cjs/src/index.d.ts +121 -0
- package/dist/cjs/src/interfaces.d.ts +9 -0
- package/dist/cjs/src/readyclasses.module.cjs.js +2 -0
- package/dist/cjs/src/readyclasses.module.cjs.js.map +1 -0
- package/dist/cjs/src/util/helper.cjs.js +2 -0
- package/dist/cjs/src/util/helper.cjs.js.map +1 -0
- package/dist/cjs/src/util/helper.d.ts +17 -0
- package/dist/cjs/src/util/helper.test.d.ts +1 -0
- package/dist/cjs/stories/utils/useStoryCentring.d.ts +1 -0
- package/dist/esm/Breadcrumbs/Breadcrumbs.esm.js +1 -1
- package/dist/esm/Breadcrumbs/Breadcrumbs.esm.js.map +1 -1
- package/dist/esm/Breadcrumbs/Breadcrumbs.module.esm.js +1 -1
- package/dist/esm/Button/BaseButton.esm.js +1 -1
- package/dist/esm/Button/BaseButton.esm.js.map +1 -1
- package/dist/esm/Button/BaseButton.module.esm.js +1 -1
- package/dist/esm/Button/Button.esm.js +1 -1
- package/dist/esm/Button/Button.esm.js.map +1 -1
- package/dist/esm/Button/Button.module.esm.js +1 -1
- package/dist/esm/Button/IconButton.esm.js +1 -1
- package/dist/esm/Button/IconButton.esm.js.map +1 -1
- package/dist/esm/Button/IconButton.module.esm.js +1 -1
- package/dist/esm/Button/Spinner.esm.js.map +1 -1
- package/dist/esm/ContextMenu/ContextMenu.esm.js +1 -1
- package/dist/esm/ContextMenu/ContextMenu.esm.js.map +1 -1
- package/dist/esm/ContextMenu/ContextMenu.module.esm.js +1 -1
- package/dist/esm/ContextMenu/ContextMenuItem.esm.js +1 -1
- package/dist/esm/ContextMenu/ContextMenuItem.esm.js.map +1 -1
- package/dist/esm/ContextMenu/ContextMenuItem.module.esm.js +1 -1
- package/dist/esm/ContextMenu/ContextMenuService.esm.js +1 -1
- package/dist/esm/ContextMenu/ContextMenuService.esm.js.map +1 -1
- package/dist/esm/DataGrid/DataGrid.esm.js +1 -1
- package/dist/esm/DataGrid/DataGrid.esm.js.map +1 -1
- package/dist/esm/DataGrid/DataGrid.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridActions/DataGridActions.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridActions/DataGridActions.esm.js.map +1 -1
- package/dist/esm/DataGrid/DataGridActions/DataGridActions.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.esm.js.map +1 -1
- package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.module.esm.js +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/DataGridBody.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.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridRow.esm.js.map +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.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.esm.js.map +1 -1
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.module.esm.js +1 -1
- package/dist/esm/Form/Checkbox/Checkbox.esm.js +1 -1
- package/dist/esm/Form/Checkbox/Checkbox.esm.js.map +1 -1
- package/dist/esm/Form/Checkbox/Checkbox.module.esm.js +1 -1
- package/dist/esm/Form/Fieldset/Fieldset.esm.js +1 -1
- package/dist/esm/Form/Fieldset/Fieldset.esm.js.map +1 -1
- package/dist/esm/Form/Fieldset/Fieldset.module.esm.js +1 -1
- package/dist/esm/Form/Form.esm.js +1 -1
- package/dist/esm/Form/Form.esm.js.map +1 -1
- package/dist/esm/Form/Form.module.esm.js +1 -1
- package/dist/esm/Form/FormControl/FormControl.esm.js +1 -1
- package/dist/esm/Form/FormControl/FormControl.esm.js.map +1 -1
- package/dist/esm/Form/FormControl/FormControl.module.esm.js +1 -1
- package/dist/esm/Form/FormGroup/FormGroup.esm.js +1 -1
- package/dist/esm/Form/FormGroup/FormGroup.esm.js.map +1 -1
- package/dist/esm/Form/FormGroup/FormGroup.module.esm.js +1 -1
- package/dist/esm/Form/FormHelperText/FormHelperText.esm.js +1 -1
- package/dist/esm/Form/FormHelperText/FormHelperText.esm.js.map +1 -1
- package/dist/esm/Form/FormHelperText/FormHelperText.module.esm.js +1 -1
- package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.esm.js +1 -1
- package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.esm.js.map +1 -1
- package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.module.esm.js +1 -1
- package/dist/esm/Form/Input/Input.esm.js +1 -1
- package/dist/esm/Form/Input/Input.esm.js.map +1 -1
- package/dist/esm/Form/Input/Input.module.esm.js +1 -1
- package/dist/esm/Form/Label/Label.esm.js +1 -1
- package/dist/esm/Form/Label/Label.esm.js.map +1 -1
- package/dist/esm/Form/Label/Label.module.esm.js +1 -1
- package/dist/esm/Form/Radio/Radio.esm.js +1 -1
- package/dist/esm/Form/Radio/Radio.esm.js.map +1 -1
- package/dist/esm/Form/Radio/Radio.module.esm.js +1 -1
- package/dist/esm/Form/Select/Option.esm.js +1 -1
- package/dist/esm/Form/Select/Option.esm.js.map +1 -1
- package/dist/esm/Form/Select/Select.esm.js +1 -1
- package/dist/esm/Form/Select/Select.esm.js.map +1 -1
- package/dist/esm/Form/Select/Select.module.esm.js +1 -1
- package/dist/esm/Form/Select/SelectService.esm.js +1 -1
- package/dist/esm/Form/Select/SelectService.esm.js.map +1 -1
- package/dist/esm/Form/Textarea/Textarea.esm.js +1 -1
- package/dist/esm/Form/Textarea/Textarea.esm.js.map +1 -1
- package/dist/esm/Form/Textarea/Textarea.module.esm.js +1 -1
- package/dist/esm/Form/Toggle/Toggle.esm.js +1 -1
- package/dist/esm/Form/Toggle/Toggle.esm.js.map +1 -1
- package/dist/esm/Form/Toggle/Toggle.module.esm.js +1 -1
- package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js +1 -1
- package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.esm.js +1 -1
- package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.esm.js +1 -1
- package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.module.esm.js +1 -1
- package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js +1 -1
- package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.module.esm.js +1 -1
- package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.esm.js +1 -1
- package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.module.esm.js +1 -1
- package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.esm.js +1 -1
- package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.esm.js +1 -1
- package/dist/esm/Form/Wrapper/Wrapper/Wrapper.esm.js +1 -1
- package/dist/esm/Form/Wrapper/Wrapper/Wrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/Wrapper/Wrapper.module.esm.js +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/Link/Link.esm.js +1 -1
- package/dist/esm/Link/Link.esm.js.map +1 -1
- package/dist/esm/Link/Link.module.esm.js +1 -1
- package/dist/esm/Notifications/Banner/Banner.esm.js +1 -1
- package/dist/esm/Notifications/Banner/Banner.esm.js.map +1 -1
- package/dist/esm/Notifications/Banner/Banner.module.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModal.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModal.esm.js.map +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModal.module.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.esm.js.map +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.esm.js.map +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalContext.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalContext.esm.js.map +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.esm.js.map +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.esm.js +1 -1
- package/dist/esm/Notifications/Dialog/Dialog.esm.js +1 -1
- package/dist/esm/Notifications/Dialog/Dialog.esm.js.map +1 -1
- package/dist/esm/Notifications/Dialog/Dialog.module.esm.js +1 -1
- package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.esm.js +1 -1
- package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.esm.js.map +1 -1
- package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.module.esm.js +1 -1
- package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.esm.js +1 -1
- package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.esm.js.map +1 -1
- package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.module.esm.js +1 -1
- package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.esm.js +1 -1
- package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.esm.js.map +1 -1
- package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesModal.esm.js +1 -1
- package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesModal.esm.js.map +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/Notifications/NotificationProvider/NotificationService.esm.js.map +1 -1
- package/dist/esm/Notifications/SlideInModal/SlideInModal.esm.js +1 -1
- package/dist/esm/Notifications/SlideInModal/SlideInModal.esm.js.map +1 -1
- package/dist/esm/Notifications/SlideInModal/SlideInModal.module.esm.js +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.esm.js +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.esm.js.map +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.esm.js +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.esm.js +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.esm.js.map +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.esm.js +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.esm.js +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.esm.js.map +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.esm.js +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.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/Popover/Popover.esm.js +1 -1
- package/dist/esm/Popover/Popover.esm.js.map +1 -1
- package/dist/esm/Popover/Popover.module.esm.js +1 -1
- package/dist/esm/ProgressBar/ProgressBar.esm.js +1 -1
- package/dist/esm/ProgressBar/ProgressBar.esm.js.map +1 -1
- package/dist/esm/ProgressBar/ProgressBar.module.esm.js +1 -1
- package/dist/esm/Skeleton/Skeleton.esm.js +1 -1
- package/dist/esm/Skeleton/Skeleton.esm.js.map +1 -1
- package/dist/esm/Skeleton/Skeleton.module.esm.js +1 -1
- package/dist/esm/StatusIndicator/StatusIndicator.esm.js +1 -1
- package/dist/esm/StatusIndicator/StatusIndicator.esm.js.map +1 -1
- package/dist/esm/StatusIndicator/StatusIndicator.module.esm.js +1 -1
- package/dist/esm/Stepper/Step.esm.js +2 -0
- package/dist/esm/Stepper/Step.esm.js.map +1 -0
- package/dist/esm/Stepper/Step.module.esm.js +2 -0
- package/dist/esm/Stepper/Step.module.esm.js.map +1 -0
- package/dist/esm/Stepper/Stepper.esm.js +2 -0
- package/dist/esm/Stepper/Stepper.esm.js.map +1 -0
- package/dist/esm/Stepper/Stepper.module.esm.js +2 -0
- package/dist/esm/Stepper/Stepper.module.esm.js.map +1 -0
- package/dist/esm/Tabs/Tab.esm.js +1 -1
- package/dist/esm/Tabs/Tab.esm.js.map +1 -1
- package/dist/esm/Tabs/Tab.module.esm.js +1 -1
- package/dist/esm/Tabs/TabButton.esm.js +1 -1
- package/dist/esm/Tabs/TabButton.esm.js.map +1 -1
- package/dist/esm/Tabs/TabButton.module.esm.js +1 -1
- package/dist/esm/Tabs/Tabs.esm.js +1 -1
- package/dist/esm/Tabs/Tabs.esm.js.map +1 -1
- package/dist/esm/Tabs/Tabs.module.esm.js +1 -1
- package/dist/esm/Tag/Tag.esm.js +1 -1
- package/dist/esm/Tag/Tag.esm.js.map +1 -1
- package/dist/esm/Tag/Tag.module.esm.js +1 -1
- package/dist/esm/TextEllipsis/TextEllipsis.esm.js +1 -1
- package/dist/esm/TextEllipsis/TextEllipsis.esm.js.map +1 -1
- package/dist/esm/TextEllipsis/TextEllipsis.module.esm.js +1 -1
- package/dist/esm/Tiles/Tile.esm.js +1 -1
- package/dist/esm/Tiles/Tile.esm.js.map +1 -1
- package/dist/esm/Tiles/Tile.module.esm.js +1 -1
- package/dist/esm/Tiles/Tiles.esm.js +1 -1
- package/dist/esm/Tiles/Tiles.esm.js.map +1 -1
- package/dist/esm/Tiles/Tiles.module.esm.js +1 -1
- package/dist/esm/Tooltip/Tooltip.esm.js +1 -1
- package/dist/esm/Tooltip/Tooltip.esm.js.map +1 -1
- package/dist/esm/Tooltip/Tooltip.module.esm.js +1 -1
- package/dist/esm/Typography/Typography.esm.js +1 -1
- package/dist/esm/Typography/Typography.esm.js.map +1 -1
- package/dist/esm/Typography/Typography.module.esm.js +1 -1
- package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.esm.js +1 -1
- package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.esm.js.map +1 -1
- package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.module.esm.js +1 -1
- package/dist/esm/Wizard/Wizard.esm.js +1 -1
- package/dist/esm/Wizard/Wizard.esm.js.map +1 -1
- package/dist/esm/Wizard/WizardActions/WizardActions.esm.js +1 -1
- package/dist/esm/Wizard/WizardActions/WizardActions.esm.js.map +1 -1
- package/dist/esm/Wizard/WizardStateProvider.esm.js +1 -1
- package/dist/esm/Wizard/WizardStateProvider.esm.js.map +1 -1
- package/dist/esm/Wizard/WizardSteps/WizardSteps.esm.js +1 -1
- package/dist/esm/Wizard/WizardSteps/WizardSteps.esm.js.map +1 -1
- package/dist/esm/Wizard/wizardStateReducer.esm.js +1 -1
- package/dist/esm/Wizard/wizardStateReducer.esm.js.map +1 -1
- package/dist/esm/_BaseStyling_/BaseStyling.esm.js +1 -1
- package/dist/esm/_BaseStyling_/BaseStyling.esm.js.map +1 -1
- package/dist/esm/node_modules/style-inject/dist/style-inject.es.esm.js +2 -0
- package/dist/esm/node_modules/style-inject/dist/style-inject.es.esm.js.map +1 -0
- package/dist/esm/src/components/Form/Fieldset/Fieldset.d.ts +0 -1
- package/dist/esm/src/components/Form/FormControl/FormControl.d.ts +0 -1
- package/dist/esm/src/components/Stepper/Step.d.ts +13 -0
- package/dist/esm/src/components/Stepper/Stepper.d.ts +7 -0
- package/dist/esm/src/components/Stepper/Stepper.test.d.ts +1 -0
- package/dist/esm/src/components/_BaseStyling_/BaseStyling.d.ts +32 -1
- package/dist/esm/src/hooks/useAnimation.esm.js +1 -1
- package/dist/esm/src/hooks/useAnimation.esm.js.map +1 -1
- package/dist/esm/src/hooks/useBodyClick.esm.js +1 -1
- package/dist/esm/src/hooks/useBodyClick.esm.js.map +1 -1
- package/dist/esm/src/hooks/useDebouncedCallback.esm.js +1 -1
- package/dist/esm/src/hooks/useDebouncedCallback.esm.js.map +1 -1
- package/dist/esm/src/hooks/useDetermineStatusIcon.esm.js +1 -1
- package/dist/esm/src/hooks/useDetermineStatusIcon.esm.js.map +1 -1
- package/dist/esm/src/hooks/useFormSelector.esm.js +1 -1
- package/dist/esm/src/hooks/useFormSelector.esm.js.map +1 -1
- package/dist/esm/src/hooks/useGetDomRoot.esm.js +1 -1
- package/dist/esm/src/hooks/useGetDomRoot.esm.js.map +1 -1
- 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/hooks/useRepeater.esm.js +1 -1
- package/dist/esm/src/hooks/useRepeater.esm.js.map +1 -1
- package/dist/esm/src/hooks/useSpacing.esm.js +1 -1
- package/dist/esm/src/hooks/useSpacing.esm.js.map +1 -1
- package/dist/esm/src/hooks/useWrapper.esm.js +1 -1
- package/dist/esm/src/hooks/useWrapper.esm.js.map +1 -1
- package/dist/esm/src/index.d.ts +3 -0
- package/dist/esm/src/index.esm.js +1 -1
- package/dist/esm/src/readyclasses.module.esm.js +1 -1
- package/dist/esm/src/util/helper.esm.js +1 -1
- package/dist/esm/src/util/helper.esm.js.map +1 -1
- package/dist/lib/style-inject.js +55 -0
- package/dist/lib/style-inject.js.map +1 -0
- package/package.json +35 -35
- package/src/components/Form/Fieldset/Fieldset.tsx +6 -11
- package/src/components/Form/FormControl/FormControl.tsx +2 -4
- package/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.tsx +1 -1
- package/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.tsx +1 -1
- package/src/components/Stepper/Step.module.scss +231 -0
- package/src/components/Stepper/Step.tsx +112 -0
- package/src/components/Stepper/Stepper.module.scss +13 -0
- package/src/components/Stepper/Stepper.test.tsx +83 -0
- package/src/components/Stepper/Stepper.tsx +45 -0
- package/src/components/_BaseStyling_/BaseStyling.tsx +63 -1
- package/src/index.ts +3 -0
- package/src/mixins.module.scss +1 -1
- package/dist/esm/node_modules/rollup-plugin-styles/dist/runtime/inject-css.esm.js +0 -2
- package/dist/esm/node_modules/rollup-plugin-styles/dist/runtime/inject-css.esm.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
import n from "../../../lib/style-inject.js";var e='/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Banner-module_banner__YfpRS{background-color:var(--light);border-radius:var(--banner-border-radius);border-style:solid;border-width:0 0 0 var(--banner-border-width);display:flex;flex-grow:0;padding:1rem 1.25rem}.Banner-module_banner__YfpRS .Banner-module_container__IwBEp{color:var(--default);display:block;flex:1;margin-left:1rem}.Banner-module_banner__YfpRS .Banner-module_headline__J6Wud{margin-bottom:.25rem}.Banner-module_banner__YfpRS .Banner-module_content__OKABk{margin-bottom:0}.Banner-module_banner__YfpRS .Banner-module_icon__Nlh-W{font-size:1.25rem;line-height:var(--default-line-height);margin-top:.1rem}.Banner-module_banner__YfpRS.Banner-module_info__uEjbr{border-color:var(--info)}.Banner-module_banner__YfpRS.Banner-module_info__uEjbr .Banner-module_headline__J6Wud,.Banner-module_banner__YfpRS.Banner-module_info__uEjbr .Banner-module_icon__Nlh-W{color:var(--info)}.Banner-module_banner__YfpRS.Banner-module_warning__gBzK0{border-color:var(--warning)}.Banner-module_banner__YfpRS.Banner-module_warning__gBzK0 .Banner-module_headline__J6Wud,.Banner-module_banner__YfpRS.Banner-module_warning__gBzK0 .Banner-module_icon__Nlh-W{color:var(--warning)}.Banner-module_banner__YfpRS.Banner-module_error__1Tb4E{border-color:var(--error)}.Banner-module_banner__YfpRS.Banner-module_error__1Tb4E .Banner-module_headline__J6Wud,.Banner-module_banner__YfpRS.Banner-module_error__1Tb4E .Banner-module_icon__Nlh-W{color:var(--error)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhbm5lci5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDZCQUVFLDZCQUE4QixDQUs5Qix5Q0FBMEMsQ0FGMUMsa0JBQW1CLENBRG5CLDZDQUE4QyxDQUQ5QyxZQUFhLENBR2IsV0FBWSxDQUxaLG9CQU9GLENBQ0EsNkRBSUUsb0JBQXFCLENBSHJCLGFBQWMsQ0FFZCxNQUFPLENBRFAsZ0JBR0YsQ0FDQSw0REFDRSxvQkFDRixDQUNBLDJEQUNFLGVBQ0YsQ0FDQSx3REFFRSxpQkFBa0IsQ0FDbEIsc0NBQXVDLENBRnZDLGdCQUdGLENBQ0EsdURBQ0Usd0JBQ0YsQ0FJQSx3S0FDRSxpQkFDRixDQUNBLDBEQUNFLDJCQUNGLENBSUEsOEtBQ0Usb0JBQ0YsQ0FDQSx3REFDRSx5QkFDRixDQUlBLDBLQUNFLGtCQUNGIiwiZmlsZSI6IkJhbm5lci5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIVxuICogQ29weXJpZ2h0IDIwMjIgT25lV2VsY29tZSBCLlYuXG4gKlxuICogICAgTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZ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mdpbi1sZWZ0OiAxcmVtO1xuICBmbGV4OiAxO1xuICBjb2xvcjogdmFyKC0tZGVmYXVsdCk7XG59XG4uYmFubmVyIC5oZWFkbGluZSB7XG4gIG1hcmdpbi1ib3R0b206IDAuMjVyZW07XG59XG4uYmFubmVyIC5jb250ZW50IHtcbiAgbWFyZ2luLWJvdHRvbTogMDtcbn1cbi5iYW5uZXIgLmljb24ge1xuICBtYXJnaW4tdG9wOiAwLjFyZW07XG4gIGZvbnQtc2l6ZTogMS4yNXJlbTtcbiAgbGluZS1oZWlnaHQ6IHZhcigtLWRlZmF1bHQtbGluZS1oZWlnaHQpO1xufVxuLmJhbm5lci5pbmZvIHtcbiAgYm9yZGVyLWNvbG9yOiB2YXIoLS1pbmZvKTtcbn1cbi5iYW5uZXIuaW5mbyAuaWNvbiB7XG4gIGNvbG9yOiB2YXIoLS1pbmZvKTtcbn1cbi5iYW5uZXIuaW5mbyAuaGVhZGxpbmUge1xuICBjb2xvcjogdmFyKC0taW5mbyk7XG59XG4uYmFubmVyLndhcm5pbmcge1xuICBib3JkZXItY29sb3I6IHZhcigtLXdhcm5pbmcpO1xufVxuLmJhbm5lci53YXJuaW5nIC5pY29uIHtcbiAgY29sb3I6IHZhcigtLXdhcm5pbmcpO1xufVxuLmJhbm5lci53YXJuaW5nIC5oZWFkbGluZSB7XG4gIGNvbG9yOiB2YXIoLS13YXJuaW5nKTtcbn1cbi5iYW5uZXIuZXJyb3Ige1xuICBib3JkZXItY29sb3I6IHZhcigtLWVycm9yKTtcbn1cbi5iYW5uZXIuZXJyb3IgLmljb24ge1xuICBjb2xvcjogdmFyKC0tZXJyb3IpO1xufVxuLmJhbm5lci5lcnJvciAuaGVhZGxpbmUge1xuICBjb2xvcjogdmFyKC0tZXJyb3IpO1xufSJdfQ== */';var l={banner:"Banner-module_banner__YfpRS",container:"Banner-module_container__IwBEp",headline:"Banner-module_headline__J6Wud",content:"Banner-module_content__OKABk",icon:"Banner-module_icon__Nlh-W",info:"Banner-module_info__uEjbr",warning:"Banner-module_warning__gBzK0",error:"Banner-module_error__1Tb4E"};n(e);export{l as default};
|
|
2
2
|
//# sourceMappingURL=Banner.module.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useRef as o,useEffect as l}from"react";import{createPortal as a}from"react-dom";import{useGetDomRoot as d}from"../../src/hooks/useGetDomRoot.esm.js";import n from"./BaseModal.module.esm.js";import{labelId as
|
|
1
|
+
import e,{useRef as o,useEffect as l}from"react";import{createPortal as a}from"react-dom";import{useGetDomRoot as d}from"../../src/hooks/useGetDomRoot.esm.js";import n from"./BaseModal.module.esm.js";import{labelId as t,descriptionId as s}from"./BaseModalContext.esm.js";const r="overflow";const i="hidden";const c=e=>{const o=()=>{document.body.style[r]=i};const a=()=>{const e=document.querySelectorAll("[role=dialog][data-hidden=false]").length===0;if(e)document.body.style.removeProperty(r)};l((()=>{if(e)o();else a()}),[e])};const m=({id:r,children:i,open:m,onClose:v,className:u="",containerProps:f,backdropProps:p,labelledby:b,describedby:y,disableEscapeKeyDown:h=false,disableBackdrop:E=false,forceContainerOpen:$=false,zIndex:N,domRoot:x,...C},g)=>{var k,I,w;c(m);const z=o(null);const{root:P}=d(x,z);const j=e=>{if(!h&&e.key==="Escape"){e.stopPropagation();v===null||v===void 0?void 0:v()}};l((()=>{var e;if(m)(e=z.current)===null||e===void 0?void 0:e.focus()}),[m]);const B=()=>!E&&v&&v();const D=()=>e.Children.map(i,(o=>{var l;if(e.isValidElement(o))return e.cloneElement(o,{onClose:(l=o.props.onClose)!==null&&l!==void 0?l:v});return o}));return e.createElement("div",{ref:z},a(e.createElement("div",{...C,ref:g,id:r,className:`${n["modal"]} ${m?n["visible"]:""} ${u}`,role:"dialog","aria-modal":"true","aria-labelledby":b!==null&&b!==void 0?b:t(r),"aria-describedby":y!==null&&y!==void 0?y:s(r),"aria-hidden":!m,tabIndex:-1,"data-hidden":!m,onKeyDown:j,style:{zIndex:N}},e.createElement("div",{...p,className:`${n["backdrop"]} ${(k=p===null||p===void 0?void 0:p.className)!==null&&k!==void 0?k:""}`,onClick:B}),$?e.createElement("div",{...f,"aria-hidden":!m,"data-element":"dialog",hidden:!m,style:{zIndex:N&&N+1},className:`${n["container"]} ${(I=f===null||f===void 0?void 0:f.className)!==null&&I!==void 0?I:""}`},D()):m&&e.createElement("div",{...f,"data-element":"dialog",style:{zIndex:N&&N+1},className:`${n["container"]} ${(w=f===null||f===void 0?void 0:f.className)!==null&&w!==void 0?w:""}`},D())),P))};const v=e.forwardRef(m);export{v as BaseModal,c as useSetBodyScroll};
|
|
2
2
|
//# sourceMappingURL=BaseModal.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseModal.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"BaseModal.esm.js","sources":["../../../../../../src/components/Notifications/BaseModal/BaseModal.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, {\n ForwardRefRenderFunction,\n ComponentPropsWithRef,\n useEffect,\n useRef,\n ReactElement\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { useGetDomRoot } from \"../../../hooks/useGetDomRoot\";\nimport classes from \"./BaseModal.module.scss\";\nimport { labelId, descriptionId } from \"./BaseModalContext\";\n\nconst SCROLL_PROPERTY_NAME = \"overflow\";\nconst SCROLL_PROPERTY_VALUE = \"hidden\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id: string;\n children: React.ReactNode;\n open: boolean;\n onClose?: (event?: React.MouseEvent<HTMLElement>) => unknown;\n className?: string;\n containerProps?: ComponentPropsWithRef<\"div\">;\n backdropProps?: ComponentPropsWithRef<\"div\">;\n labelledby?: string;\n describedby?: string;\n disableEscapeKeyDown?: boolean;\n disableBackdrop?: boolean;\n forceContainerOpen?: boolean;\n zIndex?: number;\n domRoot?: HTMLElement;\n}\n\nexport const useSetBodyScroll = (open: boolean) => {\n const hideBodyScroll = () => {\n document.body.style[SCROLL_PROPERTY_NAME] = SCROLL_PROPERTY_VALUE;\n };\n\n const showBodyScroll = () => {\n const allModalsClosed =\n document.querySelectorAll(\"[role=dialog][data-hidden=false]\").length === 0;\n if (allModalsClosed) {\n document.body.style.removeProperty(SCROLL_PROPERTY_NAME);\n }\n };\n\n useEffect(() => {\n if (open) {\n hideBodyScroll();\n } else {\n showBodyScroll();\n }\n }, [open]);\n};\n\nconst BaseModalComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n {\n id,\n children,\n open,\n onClose,\n className = \"\",\n containerProps,\n backdropProps,\n labelledby,\n describedby,\n disableEscapeKeyDown = false,\n disableBackdrop = false,\n forceContainerOpen = false,\n zIndex,\n domRoot,\n ...rest\n }: Props,\n ref\n) => {\n useSetBodyScroll(open);\n const wrappingDivRef = useRef<HTMLDivElement>(null);\n const { root } = useGetDomRoot(domRoot, wrappingDivRef);\n\n const handleEscKeyPress = (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (!disableEscapeKeyDown && event.key === \"Escape\") {\n event.stopPropagation();\n onClose?.();\n }\n };\n\n useEffect(() => {\n if (open) {\n wrappingDivRef.current?.focus();\n }\n }, [open]);\n\n const handleBackdropClick = () => !disableBackdrop && onClose && onClose();\n\n const renderChildren = () =>\n React.Children.map(children, child => {\n if (React.isValidElement(child)) {\n return React.cloneElement(child as ReactElement, {\n onClose: child.props.onClose ?? onClose\n });\n }\n return child;\n });\n\n return (\n <div ref={wrappingDivRef}>\n {createPortal(\n <div\n {...rest}\n ref={ref}\n id={id}\n className={`${classes[\"modal\"]} ${open ? classes[\"visible\"] : \"\"} ${className}`}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={labelledby ?? labelId(id)}\n aria-describedby={describedby ?? descriptionId(id)}\n aria-hidden={!open}\n tabIndex={-1}\n data-hidden={!open}\n onKeyDown={handleEscKeyPress}\n style={{ zIndex }}\n >\n <div\n {...backdropProps}\n className={`${classes[\"backdrop\"]} ${backdropProps?.className ?? \"\"}`}\n onClick={handleBackdropClick}\n ></div>\n {forceContainerOpen ? (\n <div\n {...containerProps}\n aria-hidden={!open}\n data-element=\"dialog\"\n hidden={!open}\n style={{ zIndex: zIndex && zIndex + 1 }}\n className={`${classes[\"container\"]} ${containerProps?.className ?? \"\"}`}\n >\n {renderChildren()}\n </div>\n ) : (\n open && (\n <div\n {...containerProps}\n data-element=\"dialog\"\n style={{ zIndex: zIndex && zIndex + 1 }}\n className={`${classes[\"container\"]} ${containerProps?.className ?? \"\"}`}\n >\n {renderChildren()}\n </div>\n )\n )}\n </div>,\n root\n )}\n </div>\n );\n};\n\nexport const BaseModal = React.forwardRef(BaseModalComponent);\n"],"names":["SCROLL_PROPERTY_NAME","SCROLL_PROPERTY_VALUE","useSetBodyScroll","open","hideBodyScroll","document","body","style","showBodyScroll","allModalsClosed","querySelectorAll","length","removeProperty","useEffect","BaseModalComponent","id","children","onClose","className","containerProps","backdropProps","labelledby","describedby","disableEscapeKeyDown","disableBackdrop","forceContainerOpen","zIndex","domRoot","rest","ref","wrappingDivRef","useRef","root","useGetDomRoot","handleEscKeyPress","event","key","stopPropagation","_a","current","focus","handleBackdropClick","renderChildren","React","Children","map","child","isValidElement","cloneElement","props","createElement","createPortal","classes","role","labelId","descriptionId","tabIndex","onKeyDown","onClick","hidden","_b","_c","BaseModal","forwardRef"],"mappings":"+QA4BA,MAAMA,EAAuB,WAC7B,MAAMC,EAAwB,SAmBjB,MAAAC,EAAoBC,IAC/B,MAAMC,EAAiB,KACrBC,SAASC,KAAKC,MAAMP,GAAwBC,CAAqB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W,EACE,eAACrD,EACdsD,UAAWvB,EACX3B,MAAO,CAAEmB,WAETiB,EACMO,cAAA,MAAA,IAAA9B,EACJF,UAAW,GAAGkC,EAAQ,gBAAed,EAAAlB,UAAAA,SAAa,OAAA,EAAbA,EAAeF,aAAS,MAAAoB,SAAA,EAAAA,EAAI,KACjEoB,QAASjB,IAEVhB,EACCkB,EAAAO,cAAA,MAAA,IACM/B,EACS,eAAChB,EAAI,eACL,SACbwD,QAASxD,EACTI,MAAO,CAAEmB,OAAQA,GAAUA,EAAS,GACpCR,UAAW,GAAGkC,EAAQ,iBAAgBQ,EAAAzC,IAAc,MAAdA,SAAA,OAAA,EAAAA,EAAgBD,aAAa,MAAA0C,SAAA,EAAAA,EAAA,MAElElB,KAGHvC,GACEwC,EAAAO,cAAA,MAAA,IACM/B,EACS,eAAA,SACbZ,MAAO,CAAEmB,OAAQA,GAAUA,EAAS,GACpCR,UAAW,GAAGkC,EAAQ,iBAAgBS,EAAA1C,IAAA,MAAAA,kBAAAA,EAAgBD,aAAS,MAAA2C,SAAA,EAAAA,EAAI,MAElEnB,MAKTV,GAGJ,EAGS,MAAA8B,EAAYnB,EAAMoB,WAAWjD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var containers=[],styleTags=[];const e = function(e,t){if(e&&"undefined"!=typeof document){var n,s=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,a="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var i=containers.indexOf(a);-1===i&&(i=containers.push(a)-1,styleTags[i]={}),n=styleTags[i]&&styleTags[i][s]?styleTags[i][s]:styleTags[i][s]=c()}else n=c();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var i="prepend"===s?"afterbegin":"beforeend";return a.insertAdjacentElement(i,e),e}};var d='.BaseModal_module_srOnly__f0ede9cc{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.BaseModal_module_hidden__f0ede9cc{display:none}.BaseModal_module_slideIn__f0ede9cc{animation:BaseModal_module_slideIn__f0ede9cc .5s forwards}@media (prefers-reduced-motion:reduce){.BaseModal_module_slideIn__f0ede9cc{animation-duration:.1ms}}.BaseModal_module_slideOut__f0ede9cc{animation:BaseModal_module_slideOut__f0ede9cc .5s forwards}@media (prefers-reduced-motion:reduce){.BaseModal_module_slideOut__f0ede9cc{animation-duration:.1ms}}@keyframes BaseModal_module_slideIn__f0ede9cc{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes BaseModal_module_slideOut__f0ede9cc{0%{transform:translateY(0)}to{transform:translateY(100vh)}}.BaseModal_module_modal__f0ede9cc{align-items:flex-start;display:flex;height:100vh;justify-content:center;left:0;position:fixed;top:0;visibility:hidden;width:100vw;z-index:10}.BaseModal_module_modal__f0ede9cc .BaseModal_module_backdrop__f0ede9cc{background-color:transparent;content:"";height:100%;left:0;position:absolute;top:0;transition-duration:.5s;transition-property:background-color;transition-timing-function:ease;width:100%}@media (prefers-reduced-motion:reduce){.BaseModal_module_modal__f0ede9cc .BaseModal_module_backdrop__f0ede9cc{transition-duration:.1ms}}.BaseModal_module_modal__f0ede9cc.BaseModal_module_visible__f0ede9cc{visibility:visible}.BaseModal_module_modal__f0ede9cc.BaseModal_module_visible__f0ede9cc .BaseModal_module_backdrop__f0ede9cc{background-color:var(--modal-backdrop-color);opacity:.75}.BaseModal_module_container__f0ede9cc{background-color:var(--modal-background-color);display:flex;flex-direction:column;height:auto;margin-top:3.125rem;max-height:calc(90% - 3.125rem);width:calc(100% - 2rem);z-index:11}@media only screen and (min-width:50em){.BaseModal_module_container__f0ede9cc{border-radius:2px;box-shadow:0 30px 50px var(--modal-shadow-color);width:50rem}}',o={"sr-only":"BaseModal_module_srOnly__f0ede9cc",hidden:"BaseModal_module_hidden__f0ede9cc","slide-in":"BaseModal_module_slideIn__f0ede9cc","slide-out":"BaseModal_module_slideOut__f0ede9cc",modal:"BaseModal_module_modal__f0ede9cc",backdrop:"BaseModal_module_backdrop__f0ede9cc",visible:"BaseModal_module_visible__f0ede9cc",container:"BaseModal_module_container__f0ede9cc"};e(d,{});export{d as css,o as default};
|
|
1
|
+
import i from "../../../lib/style-inject.js";var e='/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.BaseModal-module_sr-only__zUl6G{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.BaseModal-module_hidden__Tky0a{display:none}.BaseModal-module_slide-in__3bHb-{animation:BaseModal-module_slide-in__3bHb- .5s forwards}@media (prefers-reduced-motion:reduce){.BaseModal-module_slide-in__3bHb-{animation-duration:.1ms}}.BaseModal-module_slide-out__uPXZJ{animation:BaseModal-module_slide-out__uPXZJ .5s forwards}@media (prefers-reduced-motion:reduce){.BaseModal-module_slide-out__uPXZJ{animation-duration:.1ms}}@keyframes BaseModal-module_slide-in__3bHb-{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes BaseModal-module_slide-out__uPXZJ{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.BaseModal-module_modal__IoSIp{align-items:flex-start;display:flex;height:100vh;justify-content:center;left:0;position:fixed;top:0;visibility:hidden;width:100vw;z-index:10}.BaseModal-module_modal__IoSIp .BaseModal-module_backdrop__c4BrM{background-color:transparent;content:"";height:100%;left:0;position:absolute;top:0;transition-duration:.5s;transition-property:background-color;transition-timing-function:ease;width:100%}@media (prefers-reduced-motion:reduce){.BaseModal-module_modal__IoSIp .BaseModal-module_backdrop__c4BrM{transition-duration:.1ms}}.BaseModal-module_modal__IoSIp.BaseModal-module_visible__r7HeM{visibility:visible}.BaseModal-module_modal__IoSIp.BaseModal-module_visible__r7HeM .BaseModal-module_backdrop__c4BrM{background-color:var(--modal-backdrop-color);opacity:.75}.BaseModal-module_container__vHjfd{background-color:var(--modal-background-color);display:flex;flex-direction:column;height:auto;margin-top:3.125rem;max-height:calc(90% - 3.125rem);width:calc(100% - 2rem);z-index:11}@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uZC1jb2xvcjtcbiAgdHJhbnNpdGlvbi1kdXJhdGlvbjogMC41cztcbiAgdHJhbnNpdGlvbi10aW1pbmctZnVuY3Rpb246IGVhc2U7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAubW9kYWwgLmJhY2tkcm9wIHtcbiAgICB0cmFuc2l0aW9uLWR1cmF0aW9uOiAwLjFtcztcbiAgfVxufVxuLm1vZGFsLnZpc2libGUge1xuICB2aXNpYmlsaXR5OiB2aXNpYmxlO1xufVxuLm1vZGFsLnZpc2libGUgLmJhY2tkcm9wIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbW9kYWwtYmFja2Ryb3AtY29sb3IpO1xuICBvcGFjaXR5OiAwLjc1O1xufVxuXG4uY29udGFpbmVyIHtcbiAgbWFyZ2luLXRvcDogMy4xMjVyZW07XG4gIGJhY2tncm91bmQtY29sb3I6IHZhcigtLW1vZGFsLWJhY2tncm91bmQtY29sb3IpO1xuICB6LWluZGV4OiAxMTtcbiAgd2lkdGg6IGNhbGMoMTAwJSAtIDJyZW0pO1xuICBoZWlnaHQ6IGF1dG87XG4gIG1heC1oZWlnaHQ6IGNhbGMoOTAlIC0gMy4xMjVyZW0pO1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xufVxuXG5AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtaW4td2lkdGg6IDUwZW0pIHtcbiAgLmNvbnRhaW5lciB7XG4gICAgd2lkdGg6IDUwcmVtO1xuICAgIGJvcmRlci1yYWRpdXM6IDJweDtcbiAgICBib3gtc2hhZG93OiAwIDMwcHggNTBweCB2YXIoLS1tb2RhbC1zaGFkb3ctY29sb3IpO1xuICB9XG59Il19 */';var l={"sr-only":"BaseModal-module_sr-only__zUl6G",hidden:"BaseModal-module_hidden__Tky0a","slide-in":"BaseModal-module_slide-in__3bHb-","slide-out":"BaseModal-module_slide-out__uPXZJ",modal:"BaseModal-module_modal__IoSIp",backdrop:"BaseModal-module_backdrop__c4BrM",visible:"BaseModal-module_visible__r7HeM",container:"BaseModal-module_container__vHjfd"};i(e);export{l as default};
|
|
2
2
|
//# sourceMappingURL=BaseModal.module.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useRef as t}from"react";import
|
|
1
|
+
import e,{useRef as t}from"react";import o from"./BaseModalActions.module.esm.js";import{Button as c}from"../../../Button/Button.esm.js";const n=({children:n,cancelAction:a,cancelActionsClassName:l="",onClose:s,className:r="",...i},m)=>{const d=e.createRef()||m;const f=t(null);const u=t(null);const v=e.createElement(c,{variant:"text",color:"default",...a===null||a===void 0?void 0:a.cancelButtonProps,onClick:s},a===null||a===void 0?void 0:a.label);return e.createElement("div",{...i,ref:d,className:`${o["actions"]} ${r}`},a&&e.createElement("div",{className:`${o["cancel-action"]} ${l}`,ref:f},v),n&&e.createElement("div",{ref:u,className:o["primary-actions"]},n))};const a=e.forwardRef(n);export{a as BaseModalActions};
|
|
2
2
|
//# sourceMappingURL=BaseModalActions.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseModalActions.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"BaseModalActions.esm.js","sources":["../../../../../../../src/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ForwardRefRenderFunction, ComponentPropsWithRef, useRef } from \"react\";\nimport classes from \"./BaseModalActions.module.scss\";\nimport { Button, Props as ButtonProps } from \"../../../Button/Button\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n children?: React.ReactNode;\n onClose?: () => void;\n cancelAction?: CancelAction;\n cancelActionsClassName?: string;\n}\n\nexport interface CancelAction {\n label: string;\n cancelButtonProps?: ButtonProps;\n}\n\nconst BaseModalActionsComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, cancelAction, cancelActionsClassName = \"\", onClose, className = \"\", ...rest }: Props,\n ref\n) => {\n const innerRef = (React.createRef() as React.RefObject<HTMLDivElement>) || ref;\n const cancelButtonRef = useRef<HTMLDivElement>(null);\n const primaryActionsRef = useRef<HTMLDivElement>(null);\n\n const cancelButton = (\n <Button variant=\"text\" color=\"default\" {...cancelAction?.cancelButtonProps} onClick={onClose}>\n {cancelAction?.label}\n </Button>\n );\n\n return (\n <div {...rest} ref={innerRef} className={`${classes[\"actions\"]} ${className}`}>\n {cancelAction && (\n <div\n className={`${classes[\"cancel-action\"]} ${cancelActionsClassName}`}\n ref={cancelButtonRef}\n >\n {cancelButton}\n </div>\n )}\n {children && (\n <div ref={primaryActionsRef} className={classes[\"primary-actions\"]}>\n {children}\n </div>\n )}\n </div>\n );\n};\n\nexport const BaseModalActions = React.forwardRef(BaseModalActionsComponent);\n"],"names":["BaseModalActionsComponent","children","cancelAction","cancelActionsClassName","onClose","className","rest","ref","innerRef","React","createRef","cancelButtonRef","useRef","primaryActionsRef","cancelButton","createElement","Button","variant","color","cancelButtonProps","onClick","label","classes","BaseModalActions","forwardRef"],"mappings":"yIAgCA,MAAMA,EAA6E,EAC/EC,WAAUC,eAAcC,yBAAyB,GAAIC,UAASC,YAAY,MAAOC,GACnFC,KAEA,MAAMC,EAAYC,EAAMC,aAAmDH,EAC3E,MAAMI,EAAkBC,EAAuB,MAC/C,MAAMC,EAAoBD,EAAuB,MAEjD,MAAME,EACJL,EAAAM,cAACC,EAAO,CAAAC,QAAQ,OAAOC,MAAM,aAAchB,IAAA,MAAAA,SAAA,OAAA,EAAAA,EAAciB,kBAAmBC,QAAShB,GAClFF,IAAA,MAAAA,kBAAAA,EAAcmB,OAInB,OACEZ,EAASM,cAAA,MAAA,IAAAT,EAAMC,IAAKC,EAAUH,UAAW,GAAGiB,EAAQ,cAAcjB,KAC/DH,GACCO,EACEM,cAAA,MAAA,CAAAV,UAAW,GAAGiB,EAAQ,oBAAoBnB,IAC1CI,IAAKI,GAEJG,GAGJb,GACCQ,EAAAM,cAAA,MAAA,CAAKR,IAAKM,EAAmBR,UAAWiB,EAAQ,oBAC7CrB,GAIP,EAGS,MAAAsB,EAAmBd,EAAMe,WAAWxB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import i from "../../../../lib/style-inject.js";var e='/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.BaseModalActions-module_actions__U83Sp{border-top:1px solid var(--color-blue-grey100);display:flex;justify-content:space-between;margin:1.5rem 0 1rem;padding:1rem 1.5rem 0}.BaseModalActions-module_actions__U83Sp>*+*{margin-left:2rem}@media screen and (max-width:640px){.BaseModalActions-module_actions__U83Sp{display:block}.BaseModalActions-module_actions__U83Sp .BaseModalActions-module_cancel-action__MFK8v{display:none}.BaseModalActions-module_actions__U83Sp .BaseModalActions-module_primary-actions__KFtY1{align-items:flex-end;flex-direction:column;margin-left:0}.BaseModalActions-module_actions__U83Sp .BaseModalActions-module_primary-actions__KFtY1>*{width:100%}.BaseModalActions-module_actions__U83Sp .BaseModalActions-module_primary-actions__KFtY1>*+*{margin-top:.5rem}}.BaseModalActions-module_primary-actions__KFtY1{display:flex;flex-grow:1;justify-content:flex-end}.BaseModalActions-module_primary-actions__KFtY1 button{white-space:nowrap}@media screen and (min-width:640px){.BaseModalActions-module_primary-actions__KFtY1 button+button{margin-left:.5rem}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2VNb2RhbEFjdGlvbnMubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0UsQ0FDRix3Q0FLRSw4Q0FBK0MsQ0FGL0MsWUFBYSxDQUNiLDZCQUE4QixDQUg5QixvQkFBcUIsQ0FDckIscUJBSUYsQ0FDQSw0Q0FDRSxnQkFDRixDQUNBLG9DQUNFLHdDQUNFLGFBQ0YsQ0FDQSxzRkFDRSxZQUNGLENBQ0Esd0ZBRUUsb0JBQXFCLENBRHJCLHFCQUFzQixDQUV0QixhQUNGLENBQ0EsMEZBQ0UsVUFDRixDQUNBLDRGQUNFLGdCQUNGLENBQ0YsQ0FFQSxnREFDRSxZQUFhLENBQ2IsV0FBWSxDQUNaLHdCQUNGLENBQ0EsdURBQ0Usa0JBQ0YsQ0FDQSxvQ0FDRSw4REFDRSxpQkFDRixDQUNGIiwiZmlsZSI6IkJhc2VNb2RhbEFjdGlvbnMubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIvKiFcbiAqIENvcHlyaWdodCAyMDIyIE9uZVdlbGNvbWUgQi5WLlxuICpcbiAqICAgIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiAgICB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiAgICBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2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W9ucyB7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICBhbGlnbi1pdGVtczogZmxleC1lbmQ7XG4gICAgbWFyZ2luLWxlZnQ6IDA7XG4gIH1cbiAgLmFjdGlvbnMgLnByaW1hcnktYWN0aW9ucyA+ICoge1xuICAgIHdpZHRoOiAxMDAlO1xuICB9XG4gIC5hY3Rpb25zIC5wcmltYXJ5LWFjdGlvbnMgPiAqICsgKiB7XG4gICAgbWFyZ2luLXRvcDogMC41cmVtO1xuICB9XG59XG5cbi5wcmltYXJ5LWFjdGlvbnMge1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWdyb3c6IDE7XG4gIGp1c3RpZnktY29udGVudDogZmxleC1lbmQ7XG59XG4ucHJpbWFyeS1hY3Rpb25zIGJ1dHRvbiB7XG4gIHdoaXRlLXNwYWNlOiBub3dyYXA7XG59XG5AbWVkaWEgc2NyZWVuIGFuZCAobWluLXdpZHRoOiA2NDBweCkge1xuICAucHJpbWFyeS1hY3Rpb25zIGJ1dHRvbiArIGJ1dHRvbiB7XG4gICAgbWFyZ2luLWxlZnQ6IDAuNXJlbTtcbiAgfVxufSJdfQ== */';var c={actions:"BaseModalActions-module_actions__U83Sp","cancel-action":"BaseModalActions-module_cancel-action__MFK8v","primary-actions":"BaseModalActions-module_primary-actions__KFtY1"};i(e);export{c as default};
|
|
2
2
|
//# sourceMappingURL=BaseModalActions.module.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{createRef as o,useEffect as r}from"react";import t from"./BaseModalContent.module.esm.js";const n=
|
|
1
|
+
import e,{createRef as o,useEffect as r}from"react";import t from"./BaseModalContent.module.esm.js";const n=({id:n,children:s,className:l="",disableAutoFocus:c=false,...d},i)=>{const a=o();r((()=>{var e,o;if(!c&&i)(e=i.current)===null||e===void 0?void 0:e.focus();else if(!c)(o=a.current)===null||o===void 0?void 0:o.focus()}),[]);return e.createElement("div",{...d,ref:i!==null&&i!==void 0?i:a,id:n,className:`${t["content"]} ${l}`,tabIndex:-1},s)};const s=e.forwardRef(n);export{s as BaseModalContent};
|
|
2
2
|
//# sourceMappingURL=BaseModalContent.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseModalContent.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"BaseModalContent.esm.js","sources":["../../../../../../../src/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, {\n ForwardRefRenderFunction,\n ComponentPropsWithRef,\n createRef,\n useEffect\n} from \"react\";\nimport classes from \"./BaseModalContent.module.scss\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id?: string;\n children: React.ReactNode;\n className?: string;\n disableAutoFocus?: boolean;\n}\n\nconst BaseModalContentComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { id, children, className = \"\", disableAutoFocus = false, ...rest }: Props,\n ref\n) => {\n const contentRef = createRef<HTMLDivElement>();\n\n useEffect(() => {\n if (!disableAutoFocus && ref) {\n (ref as React.RefObject<HTMLDivElement>).current?.focus();\n } else if (!disableAutoFocus) {\n contentRef.current?.focus();\n }\n }, []);\n\n /**tabIndex is set to be able to do focus on that element which we need for catching keyDown events */\n return (\n <div\n {...rest}\n ref={ref ?? contentRef}\n id={id}\n className={`${classes[\"content\"]} ${className}`}\n tabIndex={-1}\n >\n {children}\n </div>\n );\n};\n\nexport const BaseModalContent = React.forwardRef(BaseModalContentComponent);\n"],"names":["BaseModalContentComponent","id","children","className","disableAutoFocus","rest","ref","contentRef","createRef","useEffect","_a","current","focus","_b","React","createElement","classes","tabIndex","BaseModalContent","forwardRef"],"mappings":"oGA+BA,MAAMA,EAA6E,EAC/EC,KAAIC,WAAUC,YAAY,GAAIC,mBAAmB,SAAUC,GAC7DC,KAEA,MAAMC,EAAaC,IAEnBC,GAAU,aACR,IAAKL,GAAoBE,GACvBI,EAACJ,EAAwCK,WAAS,MAAAD,SAAA,OAAA,EAAAA,EAAAE,aAC7C,IAAKR,GACVS,EAAAN,EAAWI,WAAS,MAAAE,SAAA,OAAA,EAAAA,EAAAD,OACrB,GACA,IAGH,OACEE,EACMC,cAAA,MAAA,IAAAV,EACJC,IAAKA,IAAG,MAAHA,SAAG,EAAHA,EAAOC,EACZN,GAAIA,EACJE,UAAW,GAAGa,EAAQ,cAAcb,IACpCc,UAAW,GAEVf,EAEH,EAGS,MAAAgB,EAAmBJ,EAAMK,WAAWnB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import e from "../../../../lib/style-inject.js";var i='/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.BaseModalContent-module_content__EBc1p{color:var(--color-blue-grey500);flex:1;font-size:.875rem;line-height:1.25rem;outline:none;overflow-y:auto;padding:1.25rem 1.5rem 0}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2VNb2RhbENvbnRlbnQubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7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B0aGUgTGljZW5zZS5cbiAqL1xuLmNvbnRlbnQge1xuICBwYWRkaW5nOiAxLjI1cmVtIDEuNXJlbSAwO1xuICBvdmVyZmxvdy15OiBhdXRvO1xuICBmbGV4OiAxO1xuICBvdXRsaW5lOiBub25lO1xuICBjb2xvcjogdmFyKC0tY29sb3ItYmx1ZS1ncmV5NTAwKTtcbiAgZm9udC1zaXplOiAwLjg3NXJlbTtcbiAgbGluZS1oZWlnaHQ6IDEuMjVyZW07XG59Il19 */';var n={content:"BaseModalContent-module_content__EBc1p"};e(i);export{n as default};
|
|
2
2
|
//# sourceMappingURL=BaseModalContent.module.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o=o=>`${o}-label`;const t=o=>`${o}-description`;export{t as descriptionId,o as labelId};
|
|
2
2
|
//# sourceMappingURL=BaseModalContext.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseModalContext.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"BaseModalContext.esm.js","sources":["../../../../../../src/components/Notifications/BaseModal/BaseModalContext.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const labelId = (id: string) => `${id}-label`;\nexport const descriptionId = (id: string) => `${id}-description`;\n"],"names":["labelId","id","descriptionId"],"mappings":"AAgBO,MAAMA,EAAWC,GAAe,GAAGA,UACnC,MAAMC,EAAiBD,GAAe,GAAGA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import t from"./BaseModalHeader.module.esm.js";import{IconButton as a}from"../../../Button/IconButton.esm.js";import{Icon as o,Icons as m}from"../../../Icon/Icon.esm.js";import{Typography as r}from"../../../Typography/Typography.esm.js";const s=
|
|
1
|
+
import e from"react";import t from"./BaseModalHeader.module.esm.js";import{IconButton as a}from"../../../Button/IconButton.esm.js";import{Icon as o,Icons as m}from"../../../Icon/Icon.esm.js";import{Typography as r}from"../../../Typography/Typography.esm.js";const s=({id:s,title:l,children:c,onClose:i,...n},d)=>e.createElement("div",{...n,ref:d,className:t["header"]},e.createElement("div",{className:t["headline"]},e.createElement("div",{className:t["title-wrapper"]},e.createElement(r,{id:s,className:t["title"],tag:"h1",spacing:{marginBottom:0},variant:"h4"},l)),e.createElement(a,{onClick:i,className:t["closeBtn"],title:"close modal"},e.createElement(o,{icon:m.Times}))),c);const l=e.forwardRef(s);export{l as BaseModalHeader};
|
|
2
2
|
//# sourceMappingURL=BaseModalHeader.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseModalHeader.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"BaseModalHeader.esm.js","sources":["../../../../../../../src/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ForwardRefRenderFunction, ComponentPropsWithRef } from \"react\";\nimport classes from \"./BaseModalHeader.module.scss\";\nimport { IconButton } from \"../../../Button/IconButton\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\nimport { Typography } from \"../../../Typography/Typography\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id: string;\n title: string;\n children?: React.ReactNode;\n onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n}\n\nconst BaseModalHeaderComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { id, title, children, onClose, ...rest }: Props,\n ref\n) => {\n return (\n <div {...rest} ref={ref} className={classes[\"header\"]}>\n <div className={classes[\"headline\"]}>\n <div className={classes[\"title-wrapper\"]}>\n <Typography\n id={id}\n className={classes[\"title\"]}\n tag=\"h1\"\n spacing={{ marginBottom: 0 }}\n variant=\"h4\"\n >\n {title}\n </Typography>\n </div>\n <IconButton onClick={onClose} className={classes[\"closeBtn\"]} title=\"close modal\">\n <Icon icon={Icons.Times} />\n </IconButton>\n </div>\n {children}\n </div>\n );\n};\n\nexport const BaseModalHeader = React.forwardRef(BaseModalHeaderComponent);\n"],"names":["BaseModalHeaderComponent","id","title","children","onClose","rest","ref","React","createElement","className","classes","Typography","tag","spacing","marginBottom","variant","IconButton","onClick","Icon","icon","Icons","Times","BaseModalHeader","forwardRef"],"mappings":"kQA6BA,MAAMA,EAA4E,EAC9EC,KAAIC,QAAOC,WAAUC,aAAYC,GACnCC,IAGEC,EAAAC,cAAA,MAAA,IAASH,EAAMC,IAAKA,EAAKG,UAAWC,EAAQ,WAC1CH,EAAAC,cAAA,MAAA,CAAKC,UAAWC,EAAQ,aACtBH,EAAAC,cAAA,MAAA,CAAKC,UAAWC,EAAQ,kBACtBH,EAAAC,cAACG,EAAU,CACTV,GAAIA,EACJQ,UAAWC,EAAQ,SACnBE,IAAI,KACJC,QAAS,CAAEC,aAAc,GACzBC,QAAQ,MAEPb,IAGLK,EAAAC,cAACQ,EAAU,CAACC,QAASb,EAASK,UAAWC,EAAQ,YAAaR,MAAM,eAClEK,EAACC,cAAAU,GAAKC,KAAMC,EAAMC,UAGrBlB,GAKM,MAAAmB,EAAkBf,EAAMgB,WAAWvB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import e from "../../../../lib/style-inject.js";var l='/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.BaseModalHeader-module_header__TYT6j{border-top-left-radius:8px;border-top-right-radius:8px;min-width:80px;padding:1.25rem 1.5rem 0}.BaseModalHeader-module_headline__07ZhA{align-items:center;display:flex;justify-content:space-between}.BaseModalHeader-module_title__8sCRn{flex:1;margin:0}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2VNb2RhbEhlYWRlci5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLHNDQUdFLDBCQUEyQixDQUMzQiwyQkFBNEIsQ0FINUIsY0FBZSxDQUNmLHdCQUdGLENBRUEsd0NBRUUsa0JBQW1CLENBRG5CLFlBQWEsQ0FFYiw2QkFDRixDQUVBLHFDQUNFLE1BQU8sQ0FDUCxRQUNGIiwiZmlsZSI6IkJhc2VNb2RhbEhlYWRlci5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIVxuICogQ29weXJpZ2h0IDIwMjIgT25lV2VsY29tZSBCLlYuXG4gKlxuICogICAgTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqICAgIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqICAgIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICAgICBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiAgICBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiAgICBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiAgICBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqICAgIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqICAgIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG4uaGVhZGVyIHtcbiAgbWluLXdpZHRoOiA4MHB4O1xuICBwYWRkaW5nOiAxLjI1cmVtIDEuNXJlbSAwO1xuICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiA4cHg7XG4gIGJvcmRlci10b3AtcmlnaHQtcmFkaXVzOiA4cHg7XG59XG5cbi5oZWFkbGluZSB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2Vlbjtcbn1cblxuLnRpdGxlIHtcbiAgZmxleDogMTtcbiAgbWFyZ2luOiAwO1xufSJdfQ== */';var i={header:"BaseModalHeader-module_header__TYT6j",headline:"BaseModalHeader-module_headline__07ZhA",title:"BaseModalHeader-module_title__8sCRn"};e(l);export{i as default};
|
|
2
2
|
//# sourceMappingURL=BaseModalHeader.module.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useState as
|
|
1
|
+
import e,{useState as t}from"react";import{BaseModal as o}from"../BaseModal/BaseModal.esm.js";import{BaseModalContent as n}from"../BaseModal/BaseModalContent/BaseModalContent.esm.js";import{DialogActions as a}from"./DialogActions/DialogActions.esm.js";import i from"./Dialog.module.esm.js";import{DialogTitle as r}from"./DialogTitle/DialogTitle.esm.js";import{Button as s}from"../../Button/Button.esm.js";import{labelId as l,descriptionId as c}from"../BaseModal/BaseModalContext.esm.js";import{generateID as m}from"../../src/util/helper.esm.js";const d=({id:d,open:p,children:u,onClose:f,title:y,primaryAction:B,secondaryAction:E,cancelAction:b,zIndex:g,disableEscapeKeyDown:j=true,titleIcon:D,caption:h,...A},C)=>{const[M]=t(d!==null&&d!==void 0?d:m(20));const{label:x,...k}=B;const w=e.createElement(s,{key:"primary",...k},x);const I=E&&function(){const{label:t,...o}=E;return e.createElement(s,{key:"tertiary",variant:"outline",...o},t)}();const K=e=>{if(e.key==="Enter")B.onClick()};return e.createElement(o,{...A,ref:C,id:M,className:i["dialog"],containerProps:{className:i["container"]},open:p,disableBackdrop:true,onClose:f,zIndex:g,disableEscapeKeyDown:j},e.createElement(r,{titleIcon:D,caption:h,id:l(M),title:y}),e.createElement(n,{id:c(M),className:i["content"],disableAutoFocus:true},u),e.createElement(a,{onClose:f,cancelAction:b},[I,w]),e.createElement("input",{autoFocus:true,"aria-hidden":true,style:{position:"absolute",width:0,height:0,opacity:0},maxLength:0,tabIndex:-1,onKeyDown:K}))};const p=e.forwardRef(d);export{p as Dialog};
|
|
2
2
|
//# sourceMappingURL=Dialog.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Dialog.esm.js","sources":["../../../../../../src/components/Notifications/Dialog/Dialog.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ForwardRefRenderFunction, ComponentPropsWithRef, useState } from \"react\";\nimport { BaseModal } from \"../BaseModal/BaseModal\";\nimport { BaseModalContent } from \"../BaseModal/BaseModalContent/BaseModalContent\";\nimport { DialogActions } from \"./DialogActions/DialogActions\";\nimport classes from \"./Dialog.module.scss\";\nimport { DialogTitle } from \"./DialogTitle/DialogTitle\";\nimport { Button, Props as ButtonProps } from \"../../Button/Button\";\nimport { labelId, descriptionId } from \"../BaseModal/BaseModalContext\";\nimport { generateID } from \"../../../util/helper\";\nimport { CancelAction } from \"../BaseModal/BaseModalActions/BaseModalActions\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id?: string;\n open: boolean;\n children: React.ReactNode;\n onClose: () => void;\n title: string;\n primaryAction: Action;\n secondaryAction?: Action;\n cancelAction?: CancelAction;\n zIndex?: number;\n disableEscapeKeyDown?: boolean;\n titleIcon?: React.ReactNode;\n caption?: string;\n}\n\nexport interface Action extends Omit<ButtonProps, \"variant\" | \"ref\"> {\n label: string;\n onClick: (event?: React.MouseEvent<HTMLButtonElement>) => unknown;\n}\n\nconst DialogComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n {\n id,\n open,\n children,\n onClose,\n title,\n primaryAction,\n secondaryAction,\n cancelAction,\n zIndex,\n disableEscapeKeyDown = true,\n titleIcon,\n caption,\n ...rest\n }: Props,\n ref\n) => {\n const [dialogId] = useState(id ?? generateID(20));\n const { label: primaryLabel, ...restOfPrimaryAction } = primaryAction;\n const PrimaryButton = (\n <Button key=\"primary\" {...restOfPrimaryAction}>\n {primaryLabel}\n </Button>\n );\n\n const SecondaryButton =\n secondaryAction &&\n (function () {\n const { label: secondaryLabel, ...restOfSecondaryAction } = secondaryAction;\n return (\n <Button key=\"tertiary\" variant=\"outline\" {...restOfSecondaryAction}>\n {secondaryLabel}\n </Button>\n );\n })();\n\n const onHiddenInputKeyPress = (event: React.KeyboardEvent<HTMLInputElement>) => {\n /** It has to be here because then we will need to check if user doesn't click tab to select action button and want to do another action then primary one? */\n if (event.key === \"Enter\") {\n primaryAction.onClick();\n }\n };\n\n return (\n <BaseModal\n {...rest}\n ref={ref}\n id={dialogId}\n className={classes[\"dialog\"]}\n containerProps={{ className: classes[\"container\"] }}\n open={open}\n disableBackdrop\n onClose={onClose}\n zIndex={zIndex}\n disableEscapeKeyDown={disableEscapeKeyDown}\n >\n <DialogTitle titleIcon={titleIcon} caption={caption} id={labelId(dialogId)} title={title} />\n <BaseModalContent\n id={descriptionId(dialogId)}\n className={classes[\"content\"]}\n disableAutoFocus\n >\n {children}\n </BaseModalContent>\n <DialogActions onClose={onClose} cancelAction={cancelAction}>\n {[SecondaryButton, PrimaryButton]}\n </DialogActions>\n <input\n autoFocus\n aria-hidden={true}\n style={{\n position: \"absolute\",\n width: 0,\n height: 0,\n opacity: 0\n }}\n maxLength={0}\n tabIndex={-1}\n onKeyDown={onHiddenInputKeyPress}\n />\n </BaseModal>\n );\n};\n\nexport const Dialog = React.forwardRef(DialogComponent);\n"],"names":["DialogComponent","id","open","children","onClose","title","primaryAction","secondaryAction","cancelAction","zIndex","disableEscapeKeyDown","titleIcon","caption","rest","ref","dialogId","useState","generateID","label","primaryLabel","restOfPrimaryAction","PrimaryButton","React","createElement","Button","key","SecondaryButton","secondaryLabel","restOfSecondaryAction","variant","onHiddenInputKeyPress","event","onClick","BaseModal","className","classes","containerProps","disableBackdrop","DialogTitle","labelId","BaseModalContent","descriptionId","disableAutoFocus","DialogActions","autoFocus","style","position","width","height","opacity","maxLength","tabIndex","onKeyDown","Dialog","forwardRef"],"mappings":"iiBA+CA,MAAMA,EAAmE,EAErEC,KACAC,OACAC,WACAC,UACAC,QACAC,gBACAC,kBACAC,eACAC,SACAC,uBAAuB,KACvBC,YACAC,aACGC,GAELC,KAEA,MAAOC,GAAYC,EAASf,IAAE,MAAFA,SAAE,EAAFA,EAAMgB,EAAW,KAC7C,MAAQC,MAAOC,KAAiBC,GAAwBd,EACxD,MAAMe,EACJC,EAAAC,cAACC,EAAO,CAAAC,IAAI,aAAcL,GACvBD,GAIL,MAAMO,EACJnB,GACA,WACE,MAAQW,MAAOS,KAAmBC,GAA0BrB,EAC5D,OACEe,EAACC,cAAAC,EAAO,CAAAC,IAAI,WAAWI,QAAQ,aAAcD,GAC1CD,EAGN,CAPD,GASF,MAAMG,EAAyBC,IAE7B,GAAIA,EAAMN,MAAQ,QAChBnB,EAAc0B,SACf,EAGH,OACEV,gBAACW,EAAS,IACJpB,EACJC,IAAKA,EACLb,GAAIc,EACJmB,UAAWC,EAAQ,UACnBC,eAAgB,CAAEF,UAAWC,EAAQ,cACrCjC,KAAMA,EACNmC,qBACAjC,QAASA,EACTK,OAAQA,EACRC,qBAAsBA,GAEtBY,EAACC,cAAAe,GAAY3B,UAAWA,EAAWC,QAASA,EAASX,GAAIsC,EAAQxB,GAAWV,MAAOA,IACnFiB,EAAAC,cAACiB,EACC,CAAAvC,GAAIwC,EAAc1B,GAClBmB,UAAWC,EAAQ,WACnBO,iBAAgB,MAEfvC,GAEHmB,EAAAC,cAACoB,EAAa,CAACvC,QAASA,EAASI,aAAcA,GAC5C,CAACkB,EAAiBL,IAErBC,EAAAC,cAAA,QAAA,CACEqB,UAAS,KAAA,cACI,KACbC,MAAO,CACLC,SAAU,WACVC,MAAO,EACPC,OAAQ,EACRC,QAAS,GAEXC,UAAW,EACXC,UAAW,EACXC,UAAWtB,IAGf,EAGS,MAAAuB,EAAS/B,EAAMgC,WAAWtD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
import i from "../../../lib/style-inject.js";var e='/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.Dialog-module_dialog__91qHi{align-items:center}@media only screen and (min-width:50em){.Dialog-module_container__SXyt2{margin-top:0;max-height:90%;width:30rem}}.Dialog-module_content__RTnpE{padding-top:0}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpYWxvZy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDZCQUNFLGtCQUNGLENBRUEsd0NBQ0UsZ0NBRUUsWUFBYSxDQUNiLGNBQWUsQ0FGZixXQUdGLENBQ0YsQ0FDQSw4QkFDRSxhQUNGIiwiZmlsZSI6IkRpYWxvZy5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIVxuICogQ29weXJpZ2h0IDIwMjIgT25lV2VsY29tZSBCLlYuXG4gKlxuICogICAgTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqICAgIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqICAgIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICAgICBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjBcbiAqXG4gKiAgICBVbmxlc3MgcmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3YXJlXG4gKiAgICBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBcIkFTIElTXCIgQkFTSVMsXG4gKiAgICBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkgS0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC5cbiAqICAgIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqICAgIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG4uZGlhbG9nIHtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbn1cblxuQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWluLXdpZHRoOiA1MGVtKSB7XG4gIC5jb250YWluZXIge1xuICAgIHdpZHRoOiAzMHJlbTtcbiAgICBtYXJnaW4tdG9wOiAwO1xuICAgIG1heC1oZWlnaHQ6IDkwJTtcbiAgfVxufVxuLmNvbnRlbnQge1xuICBwYWRkaW5nLXRvcDogMDtcbn0iXX0= */';var l={dialog:"Dialog-module_dialog__91qHi",container:"Dialog-module_container__SXyt2",content:"Dialog-module_content__RTnpE"};i(e);export{l as default};
|
|
2
2
|
//# sourceMappingURL=Dialog.module.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{BaseModalActions as e}from"../../BaseModal/BaseModalActions/BaseModalActions.esm.js";import c from"./DialogActions.module.esm.js";const a=
|
|
1
|
+
import o from"react";import{BaseModalActions as e}from"../../BaseModal/BaseModalActions/BaseModalActions.esm.js";import c from"./DialogActions.module.esm.js";const a=({children:a,cancelAction:s,onClose:n,...t},l)=>o.createElement(e,{...t,cancelAction:s,cancelActionsClassName:c["cancel-action"],onClose:n,ref:l,className:c["actions"]},a);const s=o.forwardRef(a);export{s as DialogActions};
|
|
2
2
|
//# sourceMappingURL=DialogActions.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogActions.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"DialogActions.esm.js","sources":["../../../../../../../src/components/Notifications/Dialog/DialogActions/DialogActions.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ForwardRefRenderFunction, ComponentPropsWithRef } from \"react\";\nimport {\n BaseModalActions,\n Props as BaseModalActionsProps,\n CancelAction\n} from \"../../BaseModal/BaseModalActions/BaseModalActions\";\nimport classes from \"./DialogActions.module.scss\";\n\nexport interface Props extends ComponentPropsWithRef<any>, BaseModalActionsProps {\n cancelAction?: CancelAction;\n}\n\nconst DialogActionsComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { children, cancelAction, onClose, ...rest }: Props,\n ref\n) => {\n return (\n <BaseModalActions\n {...rest}\n cancelAction={cancelAction}\n cancelActionsClassName={classes[\"cancel-action\"]}\n onClose={onClose}\n ref={ref}\n className={classes[\"actions\"]}\n >\n {children}\n </BaseModalActions>\n );\n};\n\nexport const DialogActions = React.forwardRef(DialogActionsComponent);\n"],"names":["DialogActionsComponent","children","cancelAction","onClose","rest","ref","React","createElement","BaseModalActions","cancelActionsClassName","classes","className","DialogActions","forwardRef"],"mappings":"8JA4BA,MAAMA,EAA0E,EAC5EC,WAAUC,eAAcC,aAAYC,GACtCC,IAGEC,EAAAC,cAACC,EAAgB,IACXJ,EACJF,aAAcA,EACdO,uBAAwBC,EAAQ,iBAChCP,QAASA,EACTE,IAAKA,EACLM,UAAWD,EAAQ,YAElBT,GAKM,MAAAW,EAAgBN,EAAMO,WAAWb"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
import i from "../../../../lib/style-inject.js";var e='/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DialogActions-module_actions__K5DW4 *+*{margin-left:.5rem}@media screen and (max-width:640px){.DialogActions-module_actions__K5DW4 .DialogActions-module_cancel-action__0GxwH{align-items:flex-end;display:block;flex-direction:column;margin-bottom:.5rem;margin-left:0}.DialogActions-module_actions__K5DW4 .DialogActions-module_cancel-action__0GxwH>*{width:100%}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpYWxvZ0FjdGlvbnMubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0UsQ0FDRix5Q0FDRSxpQkFDRixDQUNBLG9DQUNFLGdGQUdFLG9CQUFxQixDQUZyQixhQUFjLENBQ2QscUJBQXNCLENBR3RCLG1CQUFxQixDQURyQixhQUVGLENBQ0Esa0ZBQ0UsVUFDRixDQUNGIiwiZmlsZSI6IkRp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ge1xuICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgYWxpZ24taXRlbXM6IGZsZXgtZW5kO1xuICAgIG1hcmdpbi1sZWZ0OiAwO1xuICAgIG1hcmdpbi1ib3R0b206IDAuNXJlbTtcbiAgfVxuICAuYWN0aW9ucyAuY2FuY2VsLWFjdGlvbiA+ICoge1xuICAgIHdpZHRoOiAxMDAlO1xuICB9XG59Il19 */';var c={actions:"DialogActions-module_actions__K5DW4","cancel-action":"DialogActions-module_cancel-action__0GxwH"};i(e);export{c as default};
|
|
2
2
|
//# sourceMappingURL=DialogActions.module.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{Typography as t}from"../../../Typography/Typography.esm.js";import a from"./DialogTitle.module.esm.js";import{Icon as r,Icons as i}from"../../../Icon/Icon.esm.js";const o=
|
|
1
|
+
import e from"react";import{Typography as t}from"../../../Typography/Typography.esm.js";import a from"./DialogTitle.module.esm.js";import{Icon as r,Icons as i}from"../../../Icon/Icon.esm.js";const o=({id:o,title:m,titleIcon:c,caption:n,...l},s)=>e.createElement("div",{...l,ref:s,className:a["header"]},c&&e.createElement("div",{className:a["title-icon"]},typeof c==="boolean"?e.createElement(r,{icon:i.InfoCircle}):c),e.createElement("div",{className:a["title-wrapper"]},e.createElement(t,{id:o,className:a["title"],spacing:c&&{marginLeft:2},tag:"h1",variant:"h4"},m),n&&e.createElement(t,{className:a["caption"],spacing:{marginLeft:2},variant:"sub-text"},n)));const m=e.forwardRef(o);export{m as DialogTitle};
|
|
2
2
|
//# sourceMappingURL=DialogTitle.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogTitle.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"DialogTitle.esm.js","sources":["../../../../../../../src/components/Notifications/Dialog/DialogTitle/DialogTitle.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ForwardRefRenderFunction, ComponentPropsWithRef } from \"react\";\nimport { Typography } from \"../../../Typography/Typography\";\nimport classes from \"./DialogTitle.module.scss\";\nimport { Icon, Icons } from \"../../../Icon/Icon\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n id: string;\n title: string;\n titleIcon?: React.ReactNode;\n caption?: string;\n}\n\nconst DialogTitleComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n { id, title, titleIcon, caption, ...rest }: Props,\n ref\n) => {\n return (\n <div {...rest} ref={ref} className={classes[\"header\"]}>\n {titleIcon && (\n <div className={classes[\"title-icon\"]}>\n {typeof titleIcon === \"boolean\" ? <Icon icon={Icons.InfoCircle} /> : titleIcon}\n </div>\n )}\n <div className={classes[\"title-wrapper\"]}>\n <Typography\n id={id}\n className={classes[\"title\"]}\n spacing={titleIcon && { marginLeft: 2 }}\n tag=\"h1\"\n variant=\"h4\"\n >\n {title}\n </Typography>\n {caption && (\n <Typography className={classes[\"caption\"]} spacing={{ marginLeft: 2 }} variant=\"sub-text\">\n {caption}\n </Typography>\n )}\n </div>\n </div>\n );\n};\n\nexport const DialogTitle = React.forwardRef(DialogTitleComponent);\n"],"names":["DialogTitleComponent","id","title","titleIcon","caption","rest","ref","React","createElement","className","classes","Icon","icon","Icons","InfoCircle","Typography","spacing","marginLeft","tag","variant","DialogTitle","forwardRef"],"mappings":"+LA4BA,MAAMA,EAAwE,EAC1EC,KAAIC,QAAOC,YAAWC,aAAYC,GACpCC,IAGEC,EAAAC,cAAA,MAAA,IAASH,EAAMC,IAAKA,EAAKG,UAAWC,EAAQ,WACzCP,GACCI,EAAKC,cAAA,MAAA,CAAAC,UAAWC,EAAQ,sBACdP,IAAc,UAAYI,EAACC,cAAAG,EAAK,CAAAC,KAAMC,EAAMC,aAAiBX,GAGzEI,EAAAC,cAAA,MAAA,CAAKC,UAAWC,EAAQ,kBACtBH,EAAAC,cAACO,EAAU,CACTd,GAAIA,EACJQ,UAAWC,EAAQ,SACnBM,QAASb,GAAa,CAAEc,WAAY,GACpCC,IAAI,KACJC,QAAQ,MAEPjB,GAEFE,GACCG,EAACC,cAAAO,EAAW,CAAAN,UAAWC,EAAQ,WAAYM,QAAS,CAAEC,WAAY,GAAKE,QAAQ,YAC5Ef,KAQA,MAAAgB,EAAcb,EAAMc,WAAWrB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
import i from "../../../../lib/style-inject.js";var l='/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.DialogTitle-module_header__maiky{align-items:flex-start;display:flex;margin:1rem 1.5rem}.DialogTitle-module_title__2Date{line-height:1;margin:0}.DialogTitle-module_title-icon__RFCV->[data-icon]{font-size:1.25rem}.DialogTitle-module_caption__08LUu{color:var(--color-blue-grey500)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpYWxvZ1RpdGxlLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztFQWNFLENBQ0Ysa0NBR0Usc0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2luOiAxcmVtIDEuNXJlbTtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGZsZXgtc3RhcnQ7XG59XG5cbi50aXRsZSB7XG4gIG1hcmdpbjogMDtcbiAgbGluZS1oZWlnaHQ6IDE7XG59XG4udGl0bGUtaWNvbiA+IFtkYXRhLWljb25dIHtcbiAgZm9udC1zaXplOiAxLjI1cmVtO1xufVxuXG4uY2FwdGlvbiB7XG4gIGNvbG9yOiB2YXIoLS1jb2xvci1ibHVlLWdyZXk1MDApO1xufSJdfQ== */';var e={header:"DialogTitle-module_header__maiky",title:"DialogTitle-module_title__2Date","title-icon":"DialogTitle-module_title-icon__RFCV-",caption:"DialogTitle-module_caption__08LUu"};i(l);export{e as default};
|
|
2
2
|
//# sourceMappingURL=DialogTitle.module.esm.js.map
|
package/dist/esm/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{Dialog as o}from"../../Dialog/Dialog.esm.js";import{Typography as n}from"../../../Typography/Typography.esm.js";const a=
|
|
1
|
+
import e from"react";import{Dialog as o}from"../../Dialog/Dialog.esm.js";import{Typography as n}from"../../../Typography/Typography.esm.js";const a=({open:a,onKeepEditing:t,onDiscardChanges:i,discardChangesButtonLabel:r,keepEditingButtonLabel:c,contentLabel:l,titleLabel:s,cancelAction:p,...m},g)=>e.createElement(o,{...m,ref:g,open:a,title:s,onClose:t,cancelAction:p,primaryAction:{label:r,onClick:i},secondaryAction:{label:c,onClick:t},disableEscapeKeyDown:false},e.createElement(n,{variant:"body",spacing:{margin:0}},l));const t=e.forwardRef(a);export{t as DiscardChangesDialog};
|
|
2
2
|
//# sourceMappingURL=DiscardChangesDialog.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiscardChangesDialog.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"DiscardChangesDialog.esm.js","sources":["../../../../../../../src/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ForwardRefRenderFunction, ComponentPropsWithRef } from \"react\";\nimport { Dialog } from \"../../Dialog/Dialog\";\nimport { Typography } from \"../../../Typography/Typography\";\nimport { DataAttributeKey } from \"../../../../interfaces\";\nimport { CancelAction } from \"../../BaseModal/BaseModalActions/BaseModalActions\";\n\nexport interface Props extends ComponentPropsWithRef<\"div\"> {\n open: boolean;\n discardChangesButtonLabel: string;\n keepEditingButtonLabel: string;\n cancelAction?: CancelAction;\n contentLabel: string;\n titleLabel: string;\n [dataAttribute: DataAttributeKey]: any;\n onKeepEditing: () => void;\n onDiscardChanges: () => void;\n}\n\nconst DiscardChangesDialogComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (\n {\n open,\n onKeepEditing,\n onDiscardChanges,\n discardChangesButtonLabel,\n keepEditingButtonLabel,\n contentLabel,\n titleLabel,\n cancelAction,\n ...rest\n }: Props,\n ref\n) => {\n return (\n <Dialog\n {...rest}\n ref={ref}\n open={open}\n title={titleLabel}\n onClose={onKeepEditing}\n cancelAction={cancelAction}\n primaryAction={{\n label: discardChangesButtonLabel,\n onClick: onDiscardChanges\n }}\n secondaryAction={{\n label: keepEditingButtonLabel,\n onClick: onKeepEditing\n }}\n disableEscapeKeyDown={false}\n >\n <Typography variant=\"body\" spacing={{ margin: 0 }}>\n {contentLabel}\n </Typography>\n </Dialog>\n );\n};\n\nexport const DiscardChangesDialog = React.forwardRef(DiscardChangesDialogComponent);\n"],"names":["DiscardChangesDialogComponent","open","onKeepEditing","onDiscardChanges","discardChangesButtonLabel","keepEditingButtonLabel","contentLabel","titleLabel","cancelAction","rest","ref","React","createElement","Dialog","title","onClose","primaryAction","label","onClick","secondaryAction","disableEscapeKeyDown","Typography","variant","spacing","margin","DiscardChangesDialog","forwardRef"],"mappings":"4IAkCA,MAAMA,EAAiF,EAEnFC,OACAC,gBACAC,mBACAC,4BACAC,yBACAC,eACAC,aACAC,kBACGC,GAELC,IAGEC,EAACC,cAAAC,EACK,IAAAJ,EACJC,IAAKA,EACLT,KAAMA,EACNa,MAAOP,EACPQ,QAASb,EACTM,aAAcA,EACdQ,cAAe,CACbC,MAAOb,EACPc,QAASf,GAEXgB,gBAAiB,CACfF,MAAOZ,EACPa,QAAShB,GAEXkB,qBAAsB,OAEtBT,EAAAC,cAACS,EAAW,CAAAC,QAAQ,OAAOC,QAAS,CAAEC,OAAQ,IAC3ClB,IAMI,MAAAmB,EAAuBd,EAAMe,WAAW1B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useState as a,Fragment as o}from"react";import{BaseModal as
|
|
1
|
+
import e,{useState as a,Fragment as o}from"react";import{BaseModal as s}from"../BaseModal/BaseModal.esm.js";import{BaseModalHeader as r}from"../BaseModal/BaseModalHeader/BaseModalHeader.esm.js";import{DiscardChangesDialog as l}from"./DiscardChangesDialog/DiscardChangesDialog.esm.js";const n=({id:n,children:d,headerProps:t,discardChangedDialogProps:i,modalRef:m,dialogRef:c,onClose:f,hasUnsavedChanges:g,...p})=>{const[h,C]=a(false);const D=()=>g()?C(true):f();const B=()=>{C(false)};const E=()=>{C(false);f()};return e.createElement(o,null,e.createElement(s,{id:n,ref:m,onClose:D,...p},e.createElement(r,{...t,id:`${n}-label`,onClose:D}),d),e.createElement(l,{...i,ref:c,open:h,onKeepEditing:B,onDiscardChanges:E}))};export{n as DiscardChangesModal};
|
|
2
2
|
//# sourceMappingURL=DiscardChangesModal.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiscardChangesModal.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"DiscardChangesModal.esm.js","sources":["../../../../../../src/components/Notifications/DiscardChangesModal/DiscardChangesModal.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { Fragment, useState } from \"react\";\nimport { Modal, Props as ModalProps } from \"../Modal/Modal\";\nimport { ModalHeader, Props as ModalHeaderProps } from \"../Modal/ModalHeader/ModalHeader\";\nimport {\n DiscardChangesDialog,\n Props as DiscardChangesDialogProps\n} from \"./DiscardChangesDialog/DiscardChangesDialog\";\n\nexport interface Props extends Omit<ModalProps, \"onClose\"> {\n hasUnsavedChanges: () => boolean;\n onClose: (event?: React.MouseEvent<HTMLElement>) => unknown;\n headerProps: Omit<ModalHeaderProps, \"onClose\" | \"id\">;\n discardChangedDialogProps: Omit<\n DiscardChangesDialogProps,\n \"open\" | \"onKeepEditing\" | \"onDiscardChanges\"\n >;\n modalRef?: React.RefObject<HTMLDivElement>;\n dialogRef?: React.RefObject<HTMLDivElement>;\n}\n\nexport const DiscardChangesModal = ({\n id,\n children,\n headerProps,\n discardChangedDialogProps,\n modalRef,\n dialogRef,\n onClose,\n hasUnsavedChanges,\n ...rest\n}: Props) => {\n const [openDiscardChangesDialog, setOpenDiscardChangesDialog] = useState(false);\n\n const onCloseWrapper = () =>\n hasUnsavedChanges() ? setOpenDiscardChangesDialog(true) : onClose();\n\n const onDialogKeepEditing = () => {\n setOpenDiscardChangesDialog(false);\n };\n\n const onDialogDiscardChanges = () => {\n setOpenDiscardChangesDialog(false);\n onClose();\n };\n\n return (\n <Fragment>\n <Modal id={id} ref={modalRef} onClose={onCloseWrapper} {...rest}>\n <ModalHeader {...headerProps} id={`${id}-label`} onClose={onCloseWrapper} />\n {children}\n </Modal>\n <DiscardChangesDialog\n {...discardChangedDialogProps}\n ref={dialogRef}\n open={openDiscardChangesDialog}\n onKeepEditing={onDialogKeepEditing}\n onDiscardChanges={onDialogDiscardChanges}\n />\n </Fragment>\n );\n};\n"],"names":["DiscardChangesModal","id","children","headerProps","discardChangedDialogProps","modalRef","dialogRef","onClose","hasUnsavedChanges","rest","openDiscardChangesDialog","setOpenDiscardChangesDialog","useState","onCloseWrapper","onDialogKeepEditing","onDialogDiscardChanges","React","Fragment","createElement","Modal","ref","ModalHeader","DiscardChangesDialog","open","onKeepEditing","onDiscardChanges"],"mappings":"4RAoCa,MAAAA,EAAsB,EACjCC,KACAC,WACAC,cACAC,4BACAC,WACAC,YACAC,UACAC,uBACGC,MAEH,MAAOC,EAA0BC,GAA+BC,EAAS,OAEzE,MAAMC,EAAiB,IACrBL,IAAsBG,EAA4B,MAAQJ,IAE5D,MAAMO,EAAsB,KAC1BH,EAA4B,MAAM,EAGpC,MAAMI,EAAyB,KAC7BJ,EAA4B,OAC5BJ,GAAS,EAGX,OACES,gBAACC,EAAQ,KACPD,EAAAE,cAACC,EAAK,CAAClB,GAAIA,EAAImB,IAAKf,EAAUE,QAASM,KAAoBJ,GACzDO,EAAAE,cAACG,EAAW,IAAKlB,EAAaF,GAAI,GAAGA,UAAYM,QAASM,IACzDX,GAEHc,EAACE,cAAAI,MACKlB,EACJgB,IAAKd,EACLiB,KAAMb,EACNc,cAAeV,EACfW,iBAAkBV,IAGtB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{createContext as t,useReducer as
|
|
1
|
+
import e,{createContext as t,useReducer as s,useContext as a,useCallback as n,useEffect as r}from"react";import{defaultTranslations as i}from"./NotificationService.esm.js";import{useSnackbar as o}from"../Snackbar/useSnackbar.esm.js";import{generateID as d,deepMerge as c}from"../../src/util/helper.esm.js";const l={notifications:[]};const u=({translations:e={},dispatchFn:t})=>{const{enqueueErrorSnackbar:s,enqueueSuccessSnackbar:a}=o();const{state:{notifications:n}}=f();const d=c(i,e);const l=e=>{if(e.message)return e.message;switch(e.status){case 500:return d.messages.general;case 400:return d.messages.badRequest;case 401:return d.messages.unauthorized;case 403:return d.messages.forbidden;case 404:return d.messages.notFound;case 502:case 503:return d.messages.unavailable;case 504:return d.messages.timeout;default:return d.messages.general}};r((()=>{n.forEach((e=>{var n,r;if(e.status&&e.handled&&(e.status===401||e.status===403))t({type:"remove",payload:{id:e.id}});else if(e.status&&!e.handled&&e.type==="error"){s((n=e.title)!==null&&n!==void 0?n:d.general.error,l(e),{onClose:()=>t({type:"remove",payload:{id:e.id}})});t({type:"handled",payload:{id:e.id,handled:true}})}else if(e.title&&!e.handled&&e.type==="success"){a((r=e.title)!==null&&r!==void 0?r:d.general.success,e.message,{onClose:()=>t({type:"remove",payload:{id:e.id}})});t({type:"handled",payload:{id:e.id,handled:true}})}}))}),[n.length]);return null};const p=t({state:l,dispatch:()=>{}});const m=({children:t,translations:a})=>{const[n,r]=s(h,l);return e.createElement(p.Provider,{value:{state:n,dispatch:r}},t,e.createElement(u,{translations:a,dispatchFn:r}))};const f=()=>{const e=a(p);const t=n((t=>{e.dispatch({type:"add",payload:t})}),[e]);const s=n((t=>{e.dispatch({type:"remove",payload:{id:t}})}),[e]);const r=n((()=>{e.dispatch({type:"reset"})}),[e]);return{state:e.state,addNotification:t,removeNotification:s,resetNotifications:r}};const h=(e,t)=>{switch(t.type){case"add":return{...e,notifications:[...e.notifications,{...t.payload,id:d(),handled:false}]};case"remove":return{...e,notifications:e.notifications.filter((e=>{var s;return e.id!==((s=t.payload)===null||s===void 0?void 0:s.id)}))};case"handled":return{...e,notifications:e.notifications.map((e=>{var s;return e.id===((s=t.payload)===null||s===void 0?void 0:s.id)?{...e,handled:true}:e}))};case"reset":return{...e,notifications:[]};default:return e}};export{p as NotificationContext,u as NotificationHandler,m as NotificationProvider,h as notificationReducer,f as useNotificationContext};
|
|
2
2
|
//# sourceMappingURL=NotificationContext.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationContext.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"NotificationContext.esm.js","sources":["../../../../../../src/components/Notifications/NotificationProvider/NotificationContext.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, {\n ReactNode,\n createContext,\n useCallback,\n useContext,\n useEffect,\n useReducer\n} from \"react\";\nimport {\n Notification,\n ErrorNotification,\n SuccessNotification,\n Translations,\n AddNotification\n} from \"./notification.interfaces\";\nimport { defaultTranslations } from \"./NotificationService\";\nimport { useSnackbar } from \"../Snackbar/useSnackbar\";\nimport { deepMerge, generateID } from \"../../../util/helper\";\nimport { DeepPartial } from \"../../../interfaces\";\n\ninterface NotificationState {\n notifications: Notification<ErrorNotification | SuccessNotification>[];\n}\n\nexport interface NotificationAction {\n type: \"add\" | \"remove\" | \"handled\" | \"reset\";\n payload?: Notification<ErrorNotification | SuccessNotification> & {\n id?: string;\n handled?: boolean;\n };\n}\n\nconst initialState: NotificationState = {\n notifications: []\n};\n\nexport interface NotificationHandlerProps {\n translations?: DeepPartial<Translations>;\n dispatchFn: React.Dispatch<NotificationAction>;\n}\n\nexport const NotificationHandler = ({\n translations = {},\n dispatchFn\n}: NotificationHandlerProps) => {\n const { enqueueErrorSnackbar, enqueueSuccessSnackbar } = useSnackbar();\n const {\n state: { notifications }\n } = useNotificationContext();\n\n const mergedTranslations = deepMerge<Translations>(defaultTranslations, translations);\n\n const determineNotificationMessage = (notification: Notification<ErrorNotification>) => {\n if (notification.message) {\n return notification.message;\n }\n\n switch (notification.status) {\n case 500:\n return mergedTranslations.messages.general;\n case 400:\n return mergedTranslations.messages.badRequest;\n case 401:\n return mergedTranslations.messages.unauthorized;\n case 403:\n return mergedTranslations.messages.forbidden;\n case 404:\n return mergedTranslations.messages.notFound;\n case 502:\n case 503:\n return mergedTranslations.messages.unavailable;\n case 504:\n return mergedTranslations.messages.timeout;\n default:\n return mergedTranslations.messages.general;\n }\n };\n\n useEffect(() => {\n notifications.forEach(notification => {\n if (\n notification.status &&\n notification.handled &&\n (notification.status === 401 || notification.status === 403)\n ) {\n dispatchFn({ type: \"remove\", payload: { id: notification.id } });\n } else if (notification.status && !notification.handled && notification.type === \"error\") {\n enqueueErrorSnackbar(\n notification.title ?? mergedTranslations.general.error,\n determineNotificationMessage(notification as Notification<ErrorNotification>),\n {\n onClose: () => dispatchFn({ type: \"remove\", payload: { id: notification.id } })\n }\n );\n dispatchFn({ type: \"handled\", payload: { id: notification.id, handled: true } });\n } else if (notification.title && !notification.handled && notification.type === \"success\") {\n enqueueSuccessSnackbar(\n notification.title ?? mergedTranslations.general.success,\n notification.message,\n {\n onClose: () => dispatchFn({ type: \"remove\", payload: { id: notification.id } })\n }\n );\n\n dispatchFn({ type: \"handled\", payload: { id: notification.id, handled: true } });\n }\n });\n }, [notifications.length]);\n\n return null;\n};\n\nexport const NotificationContext = createContext<{\n state: NotificationState;\n dispatch: React.Dispatch<NotificationAction>;\n}>({\n state: initialState,\n dispatch: () => undefined\n});\n\nexport interface Props {\n children?: ReactNode;\n translations?: DeepPartial<Translations>;\n}\n\nexport const NotificationProvider = ({ children, translations }: Props) => {\n const [state, dispatch] = useReducer(notificationReducer, initialState);\n\n return (\n <NotificationContext.Provider value={{ state, dispatch }}>\n {children}\n <NotificationHandler translations={translations} dispatchFn={dispatch} />\n </NotificationContext.Provider>\n );\n};\n\nexport const useNotificationContext = () => {\n const ctx = useContext(NotificationContext);\n\n const addNotification = useCallback(\n (notification: AddNotification) => {\n ctx.dispatch({ type: \"add\", payload: notification });\n },\n [ctx]\n );\n\n const removeNotification = useCallback(\n (id: string) => {\n ctx.dispatch({ type: \"remove\", payload: { id } });\n },\n [ctx]\n );\n\n const resetNotifications = useCallback(() => {\n ctx.dispatch({ type: \"reset\" });\n }, [ctx]);\n\n return {\n state: ctx.state,\n addNotification,\n removeNotification,\n resetNotifications\n };\n};\n\nexport const notificationReducer = (\n state: NotificationState,\n action: NotificationAction\n): NotificationState => {\n switch (action.type) {\n case \"add\":\n return {\n ...state,\n notifications: [\n ...state.notifications,\n {\n ...action.payload,\n id: generateID(),\n handled: false\n }\n ]\n };\n case \"remove\":\n return {\n ...state,\n notifications: state.notifications.filter(\n notification => notification.id !== action.payload?.id\n )\n };\n case \"handled\":\n return {\n ...state,\n notifications: state.notifications.map(notification =>\n notification.id === action.payload?.id ? { ...notification, handled: true } : notification\n )\n };\n case \"reset\":\n return {\n ...state,\n notifications: []\n };\n default:\n return state;\n }\n};\n"],"names":["initialState","notifications","NotificationHandler","translations","dispatchFn","enqueueErrorSnackbar","enqueueSuccessSnackbar","useSnackbar","state","useNotificationContext","mergedTranslations","deepMerge","defaultTranslations","determineNotificationMessage","notification","message","status","messages","general","badRequest","unauthorized","forbidden","notFound","unavailable","timeout","useEffect","forEach","handled","type","payload","id","_a","title","error","onClose","_b","success","length","NotificationContext","createContext","dispatch","NotificationProvider","children","useReducer","notificationReducer","React","createElement","Provider","value","ctx","useContext","addNotification","useCallback","removeNotification","resetNotifications","action","generateID","filter","map"],"mappings":"kTAgDA,MAAMA,EAAkC,CACtCC,cAAe,IAQV,MAAMC,EAAsB,EACjCC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AMP,cAAcyD,KAAI5C,IAAe,IAAAiB,EACpD,OAAAjB,EAAagB,OAAOC,EAAAwB,EAAO1B,WAAS,MAAAE,SAAA,OAAA,EAAAA,EAAAD,IAAK,IAAKhB,EAAca,QAAS,MAASb,CAAY,KAGhG,IAAK,QACH,MAAO,IACFN,EACHP,cAAe,IAEnB,QACE,OAAOO,EACV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationService.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"NotificationService.esm.js","sources":["../../../../../../src/components/Notifications/NotificationProvider/NotificationService.ts"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Translations } from \"./notification.interfaces\";\n\nexport const defaultTranslations: Translations = {\n general: {\n error: \"Error\",\n success: \"Success\"\n },\n messages: {\n general: \"Something went wrong. Please try again later.\",\n badRequest: \"Bad request\",\n unauthorized: \"You are not authorized to perform this action.\",\n forbidden: \"You are not allowed to perform this action.\",\n notFound: \"The requested resource could not be found.\",\n timeout: \"The request timed out.\",\n unavailable: \"The server is currently unavailable. Please try again later.\"\n }\n};\n"],"names":["defaultTranslations","general","error","success","messages","badRequest","unauthorized","forbidden","notFound","timeout","unavailable"],"mappings":"AAkBa,MAAAA,EAAoC,CAC/CC,QAAS,CACPC,MAAO,QACPC,QAAS,WAEXC,SAAU,CACRH,QAAS,gDACTI,WAAY,cACZC,aAAc,iDACdC,UAAW,8CACXC,SAAU,6CACVC,QAAS,yBACTC,YAAa"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useState as o,useRef as r,useCallback as n,useEffect as
|
|
1
|
+
import e,{useState as o,useRef as r,useCallback as n,useEffect as s}from"react";import{BaseModal as i}from"../BaseModal/BaseModal.esm.js";import a from"./SlideInModal.module.esm.js";const t=({children:t,id:d,open:l,...c},m)=>{const[f,p]=o("hide");const[u,b]=o(false);const h=r(null);const M=n((e=>{if(e.target===h.current){p((e=>e?"":"hide"));if(!l&&u)b(false)}}),[l]);s((()=>{l&&b(l)}),[l]);return e.createElement(i,{...c,id:d,open:u,className:`${a["slide-in-modal"]} ${l?a["visible"]:""} ${!l?a[f]:""}`,containerProps:{className:a["container"]},backdropProps:{id:a["backdrop-slide"]},onTransitionEnd:M,ref:m!==null&&m!==void 0?m:h},t)};const d=e.forwardRef(t);export{d as SlideInModal};
|
|
2
2
|
//# sourceMappingURL=SlideInModal.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlideInModal.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"SlideInModal.esm.js","sources":["../../../../../../src/components/Notifications/SlideInModal/SlideInModal.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, {\n ForwardRefRenderFunction,\n TransitionEventHandler,\n useState,\n useRef,\n useCallback,\n useEffect\n} from \"react\";\nimport { Props as ModalProps, Modal } from \"../Modal/Modal\";\nimport classes from \"./SlideInModal.module.scss\";\n\nconst SlideInModalComponent: ForwardRefRenderFunction<HTMLDivElement, ModalProps> = (\n { children, id, open, ...rest }: ModalProps,\n ref\n) => {\n const [classHideOnTransition, setClassHideOnTransition] = useState<string>(\"hide\");\n const [controlledOpen, setControlledOpen] = useState(false);\n const containerRef = useRef(null);\n\n const onTransitionEnd: TransitionEventHandler<HTMLDivElement> = useCallback(\n e => {\n if (e.target === containerRef.current) {\n setClassHideOnTransition(prev => (prev ? \"\" : \"hide\"));\n if (!open && controlledOpen) {\n setControlledOpen(false);\n }\n }\n },\n [open]\n );\n\n useEffect(() => {\n open && setControlledOpen(open);\n }, [open]);\n\n return (\n <Modal\n {...rest}\n id={id}\n open={controlledOpen}\n className={`${classes[\"slide-in-modal\"]} ${open ? classes[\"visible\"] : \"\"} ${\n !open ? classes[classHideOnTransition] : \"\"\n }`}\n containerProps={{ className: classes[\"container\"] }}\n backdropProps={{ id: classes[\"backdrop-slide\"] }}\n onTransitionEnd={onTransitionEnd}\n ref={ref ?? containerRef}\n >\n {children}\n </Modal>\n );\n};\n\nexport type { Props } from \"../Modal/Modal\";\n\nexport const SlideInModal = React.forwardRef(SlideInModalComponent);\n"],"names":["SlideInModalComponent","children","id","open","rest","ref","classHideOnTransition","setClassHideOnTransition","useState","controlledOpen","setControlledOpen","containerRef","useRef","onTransitionEnd","useCallback","e","target","current","prev","useEffect","React","createElement","Modal","className","classes","containerProps","backdropProps","SlideInModal","forwardRef"],"mappings":"sLA2BA,MAAMA,EAA8E,EAChFC,WAAUC,KAAIC,UAASC,GACzBC,KAEA,MAAOC,EAAuBC,GAA4BC,EAAiB,QAC3E,MAAOC,EAAgBC,GAAqBF,EAAS,OACrD,MAAMG,EAAeC,EAAO,MAE5B,MAAMC,EAA0DC,GAC9DC,IACE,GAAIA,EAAEC,SAAWL,EAAaM,QAAS,CACrCV,GAAyBW,GAASA,EAAO,GAAK,SAC9C,IAAKf,GAAQM,EACXC,EAAkB,MAErB,IAEH,CAACP,IAGHgB,GAAU,KACRhB,GAAQO,EAAkBP,EAAK,GAC9B,CAACA,IAEJ,OACEiB,EAACC,cAAAC,MACKlB,EACJF,GAAIA,EACJC,KAAMM,EACNc,UAAW,GAAGC,EAAQ,qBAAqBrB,EAAOqB,EAAQ,WAAa,OACpErB,EAAOqB,EAAQlB,GAAyB,KAE3CmB,eAAgB,CAAEF,UAAWC,EAAQ,cACrCE,cAAe,CAAExB,GAAIsB,EAAQ,mBAC7BX,gBAAiBA,EACjBR,IAAKA,UAAAA,SAAG,EAAHA,EAAOM,GAEXV,EAEH,EAKS,MAAA0B,EAAeP,EAAMQ,WAAW5B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
import i from "../../../lib/style-inject.js";var l='/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.SlideInModal-module_sr-only__VfRzI{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.SlideInModal-module_hidden__fanzF{display:none}.SlideInModal-module_slide-in__8nxNQ{animation:SlideInModal-module_slide-in__8nxNQ .5s forwards}@media (prefers-reduced-motion:reduce){.SlideInModal-module_slide-in__8nxNQ{animation-duration:.1ms}}.SlideInModal-module_slide-out__L5Lz9{animation:SlideInModal-module_slide-out__L5Lz9 .5s forwards}@media (prefers-reduced-motion:reduce){.SlideInModal-module_slide-out__L5Lz9{animation-duration:.1ms}}@keyframes SlideInModal-module_slide-in__8nxNQ{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes SlideInModal-module_slide-out__L5Lz9{0%{transform:translateY(0)}to{transform:translateY(100vh)}}.SlideInModal-module_slide-in-modal__DO9Dr{justify-content:flex-end;transform:translate(120%);transition-duration:.5s;transition-property:transform;transition-timing-function:ease-in-out;visibility:visible}@media (prefers-reduced-motion:reduce){.SlideInModal-module_slide-in-modal__DO9Dr{transition-duration:.1ms}}.SlideInModal-module_slide-in-modal__DO9Dr.SlideInModal-module_hide__VBlq8{visibility:hidden}.SlideInModal-module_slide-in-modal__DO9Dr.SlideInModal-module_visible__BE0yF{transform:translate(0);visibility:visible}#SlideInModal-module_backdrop-slide__bTmK6,.SlideInModal-module_slide-in-modal__DO9Dr.SlideInModal-module_visible__BE0yF #SlideInModal-module_backdrop-slide__bTmK6{background-color:transparent}@media only screen and (min-width:50rem){.SlideInModal-module_container__-x8ci{border-radius:0;box-shadow:0 1.875rem 3.125rem var(--modal-shadow-color);height:100%;margin-top:0;max-height:unset;width:50rem}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNsaWRlSW5Nb2RhbC5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Oz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uICAgIG1hcmdpbi10b3A6IDA7XG4gICAgd2lkdGg6IDUwcmVtO1xuICAgIGhlaWdodDogMTAwJTtcbiAgICBtYXgtaGVpZ2h0OiB1bnNldDtcbiAgICBib3JkZXItcmFkaXVzOiAwO1xuICAgIGJveC1zaGFkb3c6IDAgMS44NzVyZW0gMy4xMjVyZW0gdmFyKC0tbW9kYWwtc2hhZG93LWNvbG9yKTtcbiAgfVxufSJdfQ== */';var e={"sr-only":"SlideInModal-module_sr-only__VfRzI",hidden:"SlideInModal-module_hidden__fanzF","slide-in":"SlideInModal-module_slide-in__8nxNQ","slide-out":"SlideInModal-module_slide-out__L5Lz9","slide-in-modal":"SlideInModal-module_slide-in-modal__DO9Dr",hide:"SlideInModal-module_hide__VBlq8",visible:"SlideInModal-module_visible__BE0yF","backdrop-slide":"SlideInModal-module_backdrop-slide__bTmK6",container:"SlideInModal-module_container__-x8ci"};i(l);export{e as default};
|
|
2
2
|
//# sourceMappingURL=SlideInModal.module.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t,{useContext as e,useState as n,useEffect as r}from"react";import s from"./SnackbarContainer.module.esm.js";import{SnackbarContext as o}from"../SnackbarProvider/SnackbarStateProvider.esm.js";const a=()=>{const{snackbars:t}=e(o);const[s,a]=n(0);const[i,c]=n("flex-start");const l=8;const m=t.length>=3;r((()=>{const e=t.map((t=>t.height));let n=e.reduce(((t,e)=>t+e),0);n+=(Math.min(t.length,3)-1)*l;if(m)setTimeout((()=>{c("flex-end")}),500);if(s>n&&i!=="flex-end")c("flex-end");else if(s<n&&i!=="flex-start")c("flex-start");a(n)}),[t]);return{height:s,justifyContent:i}};const i=({placement:e,children:n,zIndex:r,className:o,...i})=>{const{height:c,justifyContent:l}=a();return t.createElement("div",{...i,style:{zIndex:r,height:c,justifyContent:l},className:`${s["snackbars"]} ${s[e.horizontal]} ${s[e.vertical]} ${o!==null&&o!==void 0?o:""}`},n)};export{i as SnackbarContainer};
|
|
2
2
|
//# sourceMappingURL=SnackbarContainer.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnackbarContainer.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"SnackbarContainer.esm.js","sources":["../../../../../../../src/components/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useContext, useEffect, useState } from \"react\";\nimport classes from \"./SnackbarContainer.module.scss\";\nimport { SnackbarContext } from \"../SnackbarProvider/SnackbarStateProvider\";\n\nexport interface Placement {\n vertical: \"top\" | \"bottom\";\n horizontal: \"start\" | \"center\" | \"end\";\n}\n\nexport interface Props {\n placement: Placement;\n children?: React.ReactNode;\n zIndex?: number;\n className?: string;\n}\n\nconst useSnackbarContainerHeightAnimation = () => {\n const { snackbars } = useContext(SnackbarContext);\n const [height, setHeight] = useState(0);\n const [justifyContent, setJustifyContent] = useState<\"flex-start\" | \"flex-end\">(\"flex-start\");\n const spaceBetweenSnackbars = 8;\n const exceedsMaximumVisibleSnackbars = snackbars.length >= 3;\n\n useEffect(() => {\n const allHeights = snackbars.map(snackbar => snackbar.height);\n\n let totalHeight = allHeights.reduce((prev, curr) => prev + curr, 0);\n\n totalHeight += (Math.min(snackbars.length, 3) - 1) * spaceBetweenSnackbars;\n\n /**\n * Once we reach the maximum amount of snackbars, they will start to disappear. We have to wait with reversing the justify-content until the last snackbar\n * has completed their animationIn. This is around 500ms. Then we want to reverse it, because otherwise whenever a snackbar disappears they shift up\n * and then down again, which looks really bad.\n * */\n if (exceedsMaximumVisibleSnackbars)\n setTimeout(() => {\n setJustifyContent(\"flex-end\");\n }, 500);\n\n if (height > totalHeight && justifyContent !== \"flex-end\") {\n setJustifyContent(\"flex-end\");\n } else if (height < totalHeight && justifyContent !== \"flex-start\") {\n setJustifyContent(\"flex-start\");\n }\n\n setHeight(totalHeight);\n }, [snackbars]);\n\n return { height, justifyContent };\n};\n\nexport const SnackbarContainer = ({ placement, children, zIndex, className, ...rest }: Props) => {\n const { height, justifyContent } = useSnackbarContainerHeightAnimation();\n\n return (\n <div\n {...rest}\n style={{ zIndex, height, justifyContent }}\n className={`${classes[\"snackbars\"]} ${classes[placement.horizontal]} ${\n classes[placement.vertical]\n } ${className ?? \"\"}`}\n >\n {children}\n </div>\n );\n};\n"],"names":["useSnackbarContainerHeightAnimation","snackbars","useContext","SnackbarContext","height","setHeight","useState","justifyContent","setJustifyContent","spaceBetweenSnackbars","exceedsMaximumVisibleSnackbars","length","useEffect","allHeights","map","snackbar","totalHeight","reduce","prev","curr","Math","min","setTimeout","SnackbarContainer","placement","children","zIndex","className","rest","React","style","classes","horizontal","vertical"],"mappings":"uMAgCA,MAAMA,EAAsC,KAC1C,MAAMC,UAAEA,GAAcC,EAAWC,GACjC,MAAOC,EAAQC,GAAaC,EAAS,GACrC,MAAOC,EAAgBC,GAAqBF,EAAoC,cAChF,MAAMG,EAAwB,EAC9B,MAAMC,EAAiCT,EAAUU,QAAU,EAE3DC,GAAU,KACR,MAAMC,EAAaZ,EAAUa,KAAIC,GAAYA,EAASX,SAEtD,IAAIY,EAAcH,EAAWI,QAAO,CAACC,EAAMC,IAASD,EAAOC,GAAM,GAEjEH,IAAgBI,KAAKC,IAAIpB,EAAUU,OAAQ,GAAK,GAAKF,EAOrD,GAAIC,EACFY,YAAW,KACTd,EAAkB,WAAW,GAC5B,KAEL,GAAIJ,EAASY,GAAeT,IAAmB,WAC7CC,EAAkB,iBACb,GAAIJ,EAASY,GAAeT,IAAmB,aACpDC,EAAkB,cAGpBH,EAAUW,EAAY,GACrB,CAACf,IAEJ,MAAO,CAAEG,SAAQG,iBAAgB,EAGtB,MAAAgB,EAAoB,EAAGC,YAAWC,WAAUC,SAAQC,eAAcC,MAC7E,MAAMxB,OAAEA,EAAMG,eAAEA,GAAmBP,IAEnC,OACE6B,0BACMD,EACJE,MAAO,CAAEJ,SAAQtB,SAAQG,kBACzBoB,UAAW,GAAGI,EAAQ,gBAAgBA,EAAQP,EAAUQ,eACtDD,EAAQP,EAAUS,aAChBN,UAAAA,SAAS,EAATA,EAAa,MAEhBF,EAEH"}
|