@onewelcome/react-lib-components 14.0.0-alpha.1 → 14.0.0-alpha.2
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/components/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.es.js +5 -5
- package/dist/components/Button/BaseButton.module.scss.cjs.js +2 -2
- package/dist/components/Button/BaseButton.module.scss.es.js +4 -4
- package/dist/components/Button/Button.module.scss.cjs.js +2 -2
- package/dist/components/Button/Button.module.scss.es.js +17 -17
- package/dist/components/Button/IconButton.module.scss.cjs.js +2 -2
- package/dist/components/Button/IconButton.module.scss.es.js +18 -18
- package/dist/components/ContextMenu/ContextMenu.module.scss.cjs.js +2 -2
- package/dist/components/ContextMenu/ContextMenu.module.scss.es.js +6 -6
- package/dist/components/ContextMenu/ContextMenuDivider.module.scss.cjs.js +2 -2
- package/dist/components/ContextMenu/ContextMenuDivider.module.scss.es.js +2 -2
- package/dist/components/ContextMenu/ContextMenuItem.module.scss.cjs.js +2 -2
- package/dist/components/ContextMenu/ContextMenuItem.module.scss.es.js +3 -3
- package/dist/components/DataGrid/DataGrid.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGrid.module.scss.es.js +8 -8
- package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridActions/DataGridActions.module.scss.es.js +6 -6
- package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.es.js +7 -7
- package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridBody.module.scss.es.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.es.js +5 -5
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.es.js +4 -4
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.es.js +5 -5
- package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.es.js +24 -24
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.module.scss.es.js +9 -9
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js +17 -21
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js +15 -4
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js +54 -6
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.cjs.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.es.js.map +1 -1
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss.es.js +10 -10
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.es.js +17 -17
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.module.scss.es.js +4 -4
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +2 -2
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.es.js +11 -11
- package/dist/components/DatePicker/DatePicker.module.scss.cjs.js +2 -2
- package/dist/components/DatePicker/DatePicker.module.scss.es.js +31 -31
- package/dist/components/Form/Checkbox/Checkbox.module.scss.cjs.js +2 -2
- package/dist/components/Form/Checkbox/Checkbox.module.scss.es.js +13 -13
- package/dist/components/Form/Fieldset/Fieldset.cjs.js +1 -1
- package/dist/components/Form/Fieldset/Fieldset.cjs.js.map +1 -1
- package/dist/components/Form/Fieldset/Fieldset.es.js +3 -4
- package/dist/components/Form/Fieldset/Fieldset.es.js.map +1 -1
- package/dist/components/Form/Fieldset/Fieldset.module.scss.cjs.js +2 -2
- package/dist/components/Form/Fieldset/Fieldset.module.scss.es.js +6 -6
- package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +2 -2
- package/dist/components/Form/FileUpload/FileItem/FileItem.module.scss.es.js +18 -18
- package/dist/components/Form/FileUpload/FileUpload.module.scss.cjs.js +2 -2
- package/dist/components/Form/FileUpload/FileUpload.module.scss.es.js +16 -16
- package/dist/components/Form/Form.module.scss.cjs.js +2 -2
- package/dist/components/Form/Form.module.scss.es.js +2 -2
- package/dist/components/Form/FormControl/FormControl.cjs.js +1 -1
- package/dist/components/Form/FormControl/FormControl.cjs.js.map +1 -1
- package/dist/components/Form/FormControl/FormControl.es.js +4 -5
- package/dist/components/Form/FormControl/FormControl.es.js.map +1 -1
- package/dist/components/Form/FormControl/FormControl.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormControl/FormControl.module.scss.es.js +13 -13
- package/dist/components/Form/FormErrorText/FormErrorText.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormErrorText/FormErrorText.module.scss.es.js +6 -6
- package/dist/components/Form/FormGroup/FormGroup.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormGroup/FormGroup.module.scss.es.js +3 -3
- package/dist/components/Form/FormHelperText/FormHelperText.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormHelperText/FormHelperText.module.scss.es.js +4 -4
- package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.es.js +6 -6
- package/dist/components/Form/Input/Input.module.scss.cjs.js +2 -2
- package/dist/components/Form/Input/Input.module.scss.es.js +8 -8
- package/dist/components/Form/Label/Label.module.scss.cjs.js +2 -2
- package/dist/components/Form/Label/Label.module.scss.es.js +2 -2
- package/dist/components/Form/Radio/Radio.module.scss.cjs.js +2 -2
- package/dist/components/Form/Radio/Radio.module.scss.es.js +11 -11
- package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiOption.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiOption.es.js +8 -6
- package/dist/components/Form/Select/MultiSelect/MultiOption.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiSelect.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js +180 -36
- package/dist/components/Form/Select/MultiSelect/MultiSelect.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js +20 -15
- package/dist/components/Form/Select/MultiSelect/MultiSelect.module.scss.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/MultiSelect/SelectButton.module.scss.es.js +2 -2
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.module.scss.es.js +4 -4
- package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/useArrowNavigation.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/useArrowNavigation.es.js +57 -3
- package/dist/components/Form/Select/MultiSelect/useArrowNavigation.es.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js +1 -1
- package/dist/components/Form/Select/MultiSelect/useSearch.cjs.js.map +1 -1
- package/dist/components/Form/Select/MultiSelect/useSearch.es.js +69 -52
- package/dist/components/Form/Select/MultiSelect/useSearch.es.js.map +1 -1
- package/dist/components/Form/Select/Select.interfaces.cjs.js.map +1 -1
- package/dist/components/Form/Select/Select.interfaces.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Option.cjs.js +1 -1
- package/dist/components/Form/Select/SingleSelect/Option.cjs.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Option.es.js +9 -8
- package/dist/components/Form/Select/SingleSelect/Option.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Select.cjs.js +1 -1
- package/dist/components/Form/Select/SingleSelect/Select.cjs.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Select.es.js +160 -33
- package/dist/components/Form/Select/SingleSelect/Select.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/Select.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js +21 -17
- package/dist/components/Form/Select/SingleSelect/Select.module.scss.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js +1 -1
- package/dist/components/Form/Select/SingleSelect/useArrowNavigation.cjs.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/useArrowNavigation.es.js +62 -3
- package/dist/components/Form/Select/SingleSelect/useArrowNavigation.es.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js +1 -1
- package/dist/components/Form/Select/SingleSelect/useSearch.cjs.js.map +1 -1
- package/dist/components/Form/Select/SingleSelect/useSearch.es.js +46 -34
- package/dist/components/Form/Select/SingleSelect/useSearch.es.js.map +1 -1
- package/dist/components/Form/Select/useAddNewBtn.cjs.js +1 -1
- package/dist/components/Form/Select/useAddNewBtn.cjs.js.map +1 -1
- package/dist/components/Form/Select/useAddNewBtn.es.js +6 -5
- package/dist/components/Form/Select/useAddNewBtn.es.js.map +1 -1
- package/dist/components/Form/Select/useAddNewBtn.module.scss.cjs.js +2 -2
- package/dist/components/Form/Select/useAddNewBtn.module.scss.es.js +4 -4
- package/dist/components/Form/Select/useBaseSearch.cjs.js +2 -0
- package/dist/components/Form/Select/useBaseSearch.cjs.js.map +1 -0
- package/dist/components/Form/Select/useBaseSearch.es.js +85 -0
- package/dist/components/Form/Select/useBaseSearch.es.js.map +1 -0
- package/dist/components/Form/Textarea/Textarea.module.scss.cjs.js +2 -2
- package/dist/components/Form/Textarea/Textarea.module.scss.es.js +6 -6
- package/dist/components/Form/Toggle/Toggle.module.scss.cjs.js +2 -2
- package/dist/components/Form/Toggle/Toggle.module.scss.es.js +18 -18
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.es.js +5 -5
- package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss.es.js +5 -5
- package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.es.js +3 -3
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +1 -1
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -1
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.es.js +7 -5
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.es.js.map +1 -1
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.es.js +5 -5
- package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.es.js +3 -3
- package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.es.js +8 -8
- package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +2 -2
- package/dist/components/Form/Wrapper/Wrapper/Wrapper.module.scss.es.js +6 -6
- package/dist/components/Icon/Icon.module.scss.cjs.js +2 -2
- package/dist/components/Icon/Icon.module.scss.es.js +108 -108
- package/dist/components/Layout/ActionBar/ActionBar.module.scss.cjs.js +2 -2
- package/dist/components/Layout/ActionBar/ActionBar.module.scss.es.js +10 -10
- package/dist/components/Layout/Card/Card.module.scss.cjs.js +2 -2
- package/dist/components/Layout/Card/Card.module.scss.es.js +12 -12
- package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +2 -2
- package/dist/components/Layout/ContentHeader/ContentHeader.module.scss.es.js +19 -19
- package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +2 -2
- package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.es.js +4 -4
- package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +2 -2
- package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.es.js +2 -2
- package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +2 -2
- package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.es.js +3 -3
- package/dist/components/Link/Link.module.scss.cjs.js +2 -2
- package/dist/components/Link/Link.module.scss.es.js +17 -17
- package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss.es.js +11 -11
- package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Alert/AlertItem/AlertItem.module.scss.es.js +22 -22
- package/dist/components/Notifications/Banner/Banner.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Banner/Banner.module.scss.es.js +9 -9
- package/dist/components/Notifications/BaseModal/BaseModal.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModal.module.scss.es.js +5 -5
- package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.es.js +4 -4
- package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.es.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.es.js +6 -6
- package/dist/components/Notifications/Dialog/Dialog.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Dialog/Dialog.module.scss.es.js +4 -4
- package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Dialog/DialogActions/DialogActions.module.scss.es.js +3 -3
- package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.es.js +10 -10
- package/dist/components/Notifications/SideSheet/SideSheet.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/SideSheet/SideSheet.module.scss.es.js +13 -13
- package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.es.js +2 -2
- package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.es.js +2 -2
- package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +2 -2
- package/dist/components/Notifications/SlideInModal/SlideInModal.module.scss.es.js +10 -10
- package/dist/components/Pagination/Pagination.module.scss.cjs.js +2 -2
- package/dist/components/Pagination/Pagination.module.scss.es.js +15 -15
- package/dist/components/Popover/Popover.module.scss.cjs.js +2 -2
- package/dist/components/Popover/Popover.module.scss.es.js +3 -3
- package/dist/components/ProgressBar/ProgressBar.module.scss.cjs.js +2 -2
- package/dist/components/ProgressBar/ProgressBar.module.scss.es.js +9 -9
- package/dist/components/Skeleton/Skeleton.module.scss.cjs.js +2 -2
- package/dist/components/Skeleton/Skeleton.module.scss.es.js +5 -5
- package/dist/components/Spinner/Spinner.module.scss.cjs.js +2 -2
- package/dist/components/Spinner/Spinner.module.scss.es.js +3 -3
- package/dist/components/Stepper/Step.module.scss.cjs.js +2 -2
- package/dist/components/Stepper/Step.module.scss.es.js +22 -22
- package/dist/components/Stepper/Stepper.module.scss.cjs.js +2 -2
- package/dist/components/Stepper/Stepper.module.scss.es.js +4 -4
- package/dist/components/Tabs/Tab.module.scss.cjs.js +2 -2
- package/dist/components/Tabs/Tab.module.scss.es.js +3 -3
- package/dist/components/Tabs/TabButton.module.scss.cjs.js +2 -2
- package/dist/components/Tabs/TabButton.module.scss.es.js +12 -12
- package/dist/components/Tabs/Tabs.module.scss.cjs.js +2 -2
- package/dist/components/Tabs/Tabs.module.scss.es.js +10 -10
- package/dist/components/Tag/RemoveButton.module.scss.cjs.js +2 -2
- package/dist/components/Tag/RemoveButton.module.scss.es.js +3 -3
- package/dist/components/Tag/Tag.cjs.js +1 -1
- package/dist/components/Tag/Tag.cjs.js.map +1 -1
- package/dist/components/Tag/Tag.es.js +7 -1
- package/dist/components/Tag/Tag.es.js.map +1 -1
- package/dist/components/Tag/Tag.module.scss.cjs.js +2 -2
- package/dist/components/Tag/Tag.module.scss.es.js +6 -6
- package/dist/components/TextEllipsis/TextEllipsis.module.scss.cjs.js +2 -2
- package/dist/components/TextEllipsis/TextEllipsis.module.scss.es.js +3 -3
- package/dist/components/Tiles/Tile.module.scss.cjs.js +2 -2
- package/dist/components/Tiles/Tile.module.scss.es.js +8 -8
- package/dist/components/Tiles/Tiles.module.scss.cjs.js +2 -2
- package/dist/components/Tiles/Tiles.module.scss.es.js +2 -2
- package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.es.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.module.scss.cjs.js +2 -2
- package/dist/components/Tooltip/Tooltip.module.scss.es.js +28 -28
- package/dist/components/Typography/Typography.module.scss.cjs.js +2 -2
- package/dist/components/Typography/Typography.module.scss.es.js +13 -13
- package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/LeftNav/LeftNav.module.scss.es.js +5 -5
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.es.js +14 -14
- package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js +3 -3
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/ProfileMenu/ProfileMenu.module.scss.es.js +7 -7
- package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.cjs.js +2 -2
- package/dist/components/admin/layout/TopNavBar/TopNavBar.module.scss.es.js +13 -13
- package/dist/components/miscellaneous/IdentityProviderButton.cjs.js.map +1 -1
- package/dist/components/miscellaneous/IdentityProviderButton.es.js.map +1 -1
- package/dist/components/miscellaneous/IdentityProviderButton.module.scss.cjs.js +2 -2
- package/dist/components/miscellaneous/IdentityProviderButton.module.scss.es.js +3 -3
- package/dist/hooks/useClickOutside.cjs.js +1 -1
- package/dist/hooks/useClickOutside.cjs.js.map +1 -1
- package/dist/hooks/useClickOutside.es.js +1 -1
- package/dist/hooks/useClickOutside.es.js.map +1 -1
- package/dist/hooks/useDebouncedCallback.cjs.js +1 -1
- package/dist/hooks/useDebouncedCallback.cjs.js.map +1 -1
- package/dist/hooks/useDebouncedCallback.es.js +8 -1
- package/dist/hooks/useDebouncedCallback.es.js.map +1 -1
- package/dist/index.d.ts +64 -9
- package/dist/readyclasses.module.scss.cjs.js +2 -2
- package/dist/readyclasses.module.scss.es.js +5 -5
- package/dist/util/helper.cjs.js +1 -1
- package/dist/util/helper.cjs.js.map +1 -1
- package/dist/util/helper.es.js +19 -0
- package/dist/util/helper.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.LeftNavItem_menu-
|
|
2
|
-
const expanded = "
|
|
3
|
-
const disabled = "
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.LeftNavItem_menu-button_lUyNk{background-color:transparent;border:0;font-family:var(--font-family)}.LeftNavItem_menu-button_lUyNk a{color:inherit;text-decoration:inherit}.LeftNavItem_menu-button_lUyNk a:hover,.LeftNavItem_menu-button_lUyNk a:active,.LeftNavItem_menu-button_lUyNk a:focus{color:inherit}.LeftNavItem_menu-link_lUyNk{text-decoration:none}.LeftNavItem_menu-button-wrapper_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk,.LeftNavItem_menu-button-wrapper_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>a{opacity:0;transform:translateY(-60px)}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk,.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li{opacity:0;animation-name:LeftNavItem_item-fade-in_lUyNk;animation-duration:.25s;animation-fill-mode:forwards}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(1),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(1){animation-delay:0ms}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(2),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(2){animation-delay:.1s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(3),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(3){animation-delay:.2s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(4),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(4){animation-delay:.3s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(5),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(5){animation-delay:.4s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(6),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(6){animation-delay:.5s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(7),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(7){animation-delay:.6s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(8),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(8){animation-delay:.7s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(9),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(9){animation-delay:.8s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(10),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(10){animation-delay:.9s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(11),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(11){animation-delay:1s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(12),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(12){animation-delay:1.1s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(13),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(13){animation-delay:1.2s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(14),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(14){animation-delay:1.3s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(15),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(15){animation-delay:1.4s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(16),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(16){animation-delay:1.5s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(17),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(17){animation-delay:1.6s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(18),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(18){animation-delay:1.7s}.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>.LeftNavItem_menu-button-wrapper_lUyNk:nth-child(19),.LeftNavItem_menu-button-wrapper_lUyNk.LeftNavItem_expanded_lUyNk>.LeftNavItem_menu-button_lUyNk+ul>li:nth-child(19){animation-delay:1.8s}.LeftNavItem_menu-button-wrapper_lUyNk .LeftNavItem_menu-button-wrapper_lUyNk .LeftNavItem_menu-link_lUyNk{padding-left:2.5rem}.LeftNavItem_menu-list_lUyNk{padding:0;margin:0;overflow:hidden;max-height:100000px;list-style:none;text-align:left;transition:max-height .15s ease-in-out}.LeftNavItem_menu-list_lUyNk .LeftNavItem_menu-item-text-wrapper_lUyNk{padding-left:2rem}.LeftNavItem_menu-list_lUyNk a:focus-visible,.LeftNavItem_menu-list_lUyNk button:focus-visible{outline-offset:-.0625rem}.LeftNavItem_menu-item_lUyNk{box-sizing:border-box;display:flex;padding:1.125rem 1rem;align-items:center;justify-content:space-between;width:100%;color:var(--color-blue-grey900);line-height:1.5rem;font-size:1rem;font-weight:400;transition:all .15s ease-in-out;cursor:pointer}.LeftNavItem_menu-item_lUyNk:focus-visible{outline-offset:-.0625rem}.LeftNavItem_menu-item_lUyNk .LeftNavItem_menu-item-text-wrapper_lUyNk{display:flex}.LeftNavItem_menu-item_lUyNk .LeftNavItem_menu-item-expand-icon_lUyNk{padding:.375rem;margin:-.375rem}.LeftNavItem_menu-item_lUyNk .LeftNavItem_menu-item-icon_lUyNk{display:flex;align-items:center;justify-content:center;width:1.5rem;margin-right:.5rem;font-size:1.125rem}.LeftNavItem_menu-item-text_lUyNk{display:flex;align-items:center}.LeftNavItem_menu-item-expand-icon_lUyNk{font-size:.75rem;color:var(--color-blue-grey900);transition:all .15s ease-in-out}.LeftNavItem_menu-item_lUyNk.LeftNavItem_expanded_lUyNk .LeftNavItem_menu-item-expand-icon_lUyNk{transform:rotate(180deg)}.LeftNavItem_menu-item_lUyNk a{color:inherit}.LeftNavItem_menu-item_lUyNk:hover{background-color:var(--color-blue-grey50)}.LeftNavItem_menu-item_lUyNk:focus,.LeftNavItem_menu-item_lUyNk:active{color:inherit;background-color:var(--color-blue-grey100)}.LeftNavItem_menu-item_lUyNk.LeftNavItem_disabled_lUyNk{color:var(--color-blue-grey400);background-color:var(--color-blue-grey25);pointer-events:none}.LeftNavItem_menu-list-item_lUyNk{position:relative}.LeftNavItem_menu-list-item_lUyNk a.LeftNavItem_menu-item_lUyNk{padding:.75rem 1rem;color:var(--color-blue-grey900)}.LeftNavItem_menu-list-item_lUyNk a.LeftNavItem_menu-item-active_lUyNk{background-color:var(--left-nav-item-active-background-color)}.LeftNavItem_menu-list-item_lUyNk a.LeftNavItem_menu-item-active_lUyNk:hover{background-color:var(--color-blue-grey50)}.LeftNavItem_menu-list-item_lUyNk a.LeftNavItem_menu-item-active_lUyNk:focus,.LeftNavItem_menu-list-item_lUyNk a.LeftNavItem_menu-item-active_lUyNk:active{background-color:var(--color-blue-grey100)}.LeftNavItem_menu-list-item_lUyNk a.LeftNavItem_menu-item-active_lUyNk:before{content:"";height:100%;position:absolute;left:0;z-index:2;border-top-right-radius:.125rem;border-bottom-right-radius:.125rem;border-left:.25rem solid var(--left-nav-item-active-ribbon-color)}.LeftNavItem_menu-list-item_lUyNk a.LeftNavItem_menu-item-active_lUyNk .LeftNavItem_menu-item-text_lUyNk,.LeftNavItem_menu-list-item_lUyNk button.LeftNavItem_menu-item-active_lUyNk .LeftNavItem_menu-item-text_lUyNk{font-weight:700}@keyframes LeftNavItem_item-fade-in_lUyNk{0%{opacity:0;transform:translateY(-60px)}80%{opacity:.6}to{opacity:1;transform:translateY(0)}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
const expanded = "LeftNavItem_expanded_lUyNk";
|
|
3
|
+
const disabled = "LeftNavItem_disabled_lUyNk";
|
|
4
4
|
const classes = {
|
|
5
|
-
"menu-button": "LeftNavItem_menu-
|
|
6
|
-
"menu-link": "LeftNavItem_menu-
|
|
7
|
-
"menu-button-wrapper": "LeftNavItem_menu-button-
|
|
5
|
+
"menu-button": "LeftNavItem_menu-button_lUyNk",
|
|
6
|
+
"menu-link": "LeftNavItem_menu-link_lUyNk",
|
|
7
|
+
"menu-button-wrapper": "LeftNavItem_menu-button-wrapper_lUyNk",
|
|
8
8
|
expanded,
|
|
9
|
-
"menu-list": "LeftNavItem_menu-
|
|
10
|
-
"menu-item-text-wrapper": "LeftNavItem_menu-item-text-
|
|
11
|
-
"menu-item": "LeftNavItem_menu-
|
|
12
|
-
"menu-item-expand-icon": "LeftNavItem_menu-item-expand-
|
|
13
|
-
"menu-item-icon": "LeftNavItem_menu-item-
|
|
14
|
-
"menu-item-text": "LeftNavItem_menu-item-
|
|
9
|
+
"menu-list": "LeftNavItem_menu-list_lUyNk",
|
|
10
|
+
"menu-item-text-wrapper": "LeftNavItem_menu-item-text-wrapper_lUyNk",
|
|
11
|
+
"menu-item": "LeftNavItem_menu-item_lUyNk",
|
|
12
|
+
"menu-item-expand-icon": "LeftNavItem_menu-item-expand-icon_lUyNk",
|
|
13
|
+
"menu-item-icon": "LeftNavItem_menu-item-icon_lUyNk",
|
|
14
|
+
"menu-item-text": "LeftNavItem_menu-item-text_lUyNk",
|
|
15
15
|
disabled,
|
|
16
|
-
"menu-list-item": "LeftNavItem_menu-list-
|
|
17
|
-
"menu-item-active": "LeftNavItem_menu-item-
|
|
16
|
+
"menu-list-item": "LeftNavItem_menu-list-item_lUyNk",
|
|
17
|
+
"menu-item-active": "LeftNavItem_menu-item-active_lUyNk"
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
20
|
classes as default,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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 */.MicrofrontendContainer_microfrontend-container-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"microfrontend-container-margin":"MicrofrontendContainer_microfrontend-container-
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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 */.MicrofrontendContainer_microfrontend-container-margin_lUyNk{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_lUyNk{max-width:105rem}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"microfrontend-container-margin":"MicrofrontendContainer_microfrontend-container-margin_lUyNk","microfrontend-container-max-width":"MicrofrontendContainer_microfrontend-container-max-width_lUyNk"};
|
|
3
3
|
//# sourceMappingURL=MicrofrontendContainer.module.scss.cjs.js.map
|
package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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 */.MicrofrontendContainer_microfrontend-container-
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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 */.MicrofrontendContainer_microfrontend-container-margin_lUyNk{padding:2rem}.MicrofrontendContainer_microfrontend-container-max-width_lUyNk{max-width:105rem}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
|
|
2
2
|
const classes = {
|
|
3
|
-
"microfrontend-container-margin": "MicrofrontendContainer_microfrontend-container-
|
|
4
|
-
"microfrontend-container-max-width": "MicrofrontendContainer_microfrontend-container-max-
|
|
3
|
+
"microfrontend-container-margin": "MicrofrontendContainer_microfrontend-container-margin_lUyNk",
|
|
4
|
+
"microfrontend-container-max-width": "MicrofrontendContainer_microfrontend-container-max-width_lUyNk"
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
7
|
classes as default
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ProfileMenu_sr-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ProfileMenu_sr-only_lUyNk{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ProfileMenu_hidden_lUyNk{display:none}.ProfileMenu_slide-in_lUyNk{animation:ProfileMenu_slide-in_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-in_lUyNk{animation-duration:.1ms}}.ProfileMenu_slide-out_lUyNk{animation:ProfileMenu_slide-out_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-out_lUyNk{animation-duration:.1ms}}@keyframes ProfileMenu_slide-in_lUyNk{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes ProfileMenu_slide-out_lUyNk{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\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 */.ProfileMenu_trigger_lUyNk{display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:0 .75rem}.ProfileMenu_trigger_lUyNk:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.ProfileMenu_circle_lUyNk{width:2.5rem;height:2.5rem;border-radius:50%;background-color:var(--color-primary);color:var(--light);display:flex;align-items:center;justify-content:center;overflow:hidden}.ProfileMenu_circle_lUyNk:hover{background-color:var(--color-primary600)}.ProfileMenu_circle_lUyNk.ProfileMenu_active_lUyNk{background-color:var(--color-primary700)}.ProfileMenu_initials_lUyNk{font-weight:700;font-size:1rem;pointer-events:none}.ProfileMenu_img_lUyNk{width:100%;height:100%;object-fit:cover;border-radius:50%}.ProfileMenu_popover_lUyNk{z-index:11;--font-size: .875rem}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="ProfileMenu_trigger_lUyNk",i="ProfileMenu_circle_lUyNk",r="ProfileMenu_active_lUyNk",o="ProfileMenu_initials_lUyNk",t="ProfileMenu_img_lUyNk",l="ProfileMenu_popover_lUyNk",s={trigger:e,circle:i,active:r,initials:o,img:t,popover:l};exports.active=r,exports.circle=i,exports.default=s,exports.img=t,exports.initials=o,exports.popover=l,exports.trigger=e;
|
|
3
3
|
//# sourceMappingURL=ProfileMenu.module.scss.cjs.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ProfileMenu_sr-
|
|
2
|
-
const trigger = "
|
|
3
|
-
const circle = "
|
|
4
|
-
const active = "
|
|
5
|
-
const initials = "
|
|
6
|
-
const img = "
|
|
7
|
-
const popover = "
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ProfileMenu_sr-only_lUyNk{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ProfileMenu_hidden_lUyNk{display:none}.ProfileMenu_slide-in_lUyNk{animation:ProfileMenu_slide-in_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-in_lUyNk{animation-duration:.1ms}}.ProfileMenu_slide-out_lUyNk{animation:ProfileMenu_slide-out_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.ProfileMenu_slide-out_lUyNk{animation-duration:.1ms}}@keyframes ProfileMenu_slide-in_lUyNk{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes ProfileMenu_slide-out_lUyNk{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\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 */.ProfileMenu_trigger_lUyNk{display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:0 .75rem}.ProfileMenu_trigger_lUyNk:focus-visible{outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.ProfileMenu_circle_lUyNk{width:2.5rem;height:2.5rem;border-radius:50%;background-color:var(--color-primary);color:var(--light);display:flex;align-items:center;justify-content:center;overflow:hidden}.ProfileMenu_circle_lUyNk:hover{background-color:var(--color-primary600)}.ProfileMenu_circle_lUyNk.ProfileMenu_active_lUyNk{background-color:var(--color-primary700)}.ProfileMenu_initials_lUyNk{font-weight:700;font-size:1rem;pointer-events:none}.ProfileMenu_img_lUyNk{width:100%;height:100%;object-fit:cover;border-radius:50%}.ProfileMenu_popover_lUyNk{z-index:11;--font-size: .875rem}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
|
|
2
|
+
const trigger = "ProfileMenu_trigger_lUyNk";
|
|
3
|
+
const circle = "ProfileMenu_circle_lUyNk";
|
|
4
|
+
const active = "ProfileMenu_active_lUyNk";
|
|
5
|
+
const initials = "ProfileMenu_initials_lUyNk";
|
|
6
|
+
const img = "ProfileMenu_img_lUyNk";
|
|
7
|
+
const popover = "ProfileMenu_popover_lUyNk";
|
|
8
8
|
const classes = {
|
|
9
9
|
trigger,
|
|
10
10
|
circle,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.TopNavBar_sr-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.TopNavBar_sr-only_lUyNk{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TopNavBar_hidden_lUyNk{display:none}.TopNavBar_slide-in_lUyNk{animation:TopNavBar_slide-in_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-in_lUyNk{animation-duration:.1ms}}.TopNavBar_slide-out_lUyNk{animation:TopNavBar_slide-out_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-out_lUyNk{animation-duration:.1ms}}@keyframes TopNavBar_slide-in_lUyNk{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TopNavBar_slide-out_lUyNk{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\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 */.TopNavBar_topnavbar_lUyNk{position:sticky;top:0;left:0;z-index:3;width:100%;display:flex;align-items:center;height:4rem;padding:0 .75rem 0 0;background-color:var(--sidenavbar-background);box-shadow:0 2px 4px #0105320a,0 4px 5px #0105320a,0 1px 10px #01053214;--font-size: .875rem;flex-wrap:nowrap}.TopNavBar_topnavbar_lUyNk .TopNavBar_left-section_lUyNk{flex-shrink:0;display:flex;align-items:center}.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-link_lUyNk{display:flex;align-items:center;text-decoration:none}.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-container_lUyNk{display:flex;align-items:center}.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-container_lUyNk .TopNavBar_logo-small_lUyNk{height:2.5rem;display:flex;align-items:center;margin:0 1rem}.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-container_lUyNk .TopNavBar_logo_lUyNk{display:none}@media screen and (min-width:30em){.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-container_lUyNk .TopNavBar_logo-small_lUyNk{display:none;height:0}.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-container_lUyNk .TopNavBar_logo_lUyNk{display:block;margin-left:1rem}}@media screen and (min-width:30em)and (min-width:50em){.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-container_lUyNk .TopNavBar_logo_lUyNk{margin-left:.75rem;margin-right:0}}.TopNavBar_topnavbar_lUyNk .TopNavBar_sr-only_lUyNk{position:absolute;margin:-1px;height:1px;width:1px;overflow:hidden}.TopNavBar_topnavbar_lUyNk .TopNavBar_separator_lUyNk{border:none;width:1px;height:2.5rem;background-color:#dedee6;flex-shrink:0;align-self:center;margin:0 3rem}.TopNavBar_topnavbar_lUyNk .TopNavBar_middle-section_lUyNk{flex:1;display:flex;align-items:center;min-width:0;margin-left:6.0625rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_lUyNk .TopNavBar_middle-section_lUyNk{margin-left:0}}.TopNavBar_topnavbar_lUyNk .TopNavBar_separator_lUyNk+.TopNavBar_middle-section_lUyNk{margin-left:0}.TopNavBar_topnavbar_lUyNk .TopNavBar_right-section_lUyNk{display:flex;align-items:center;margin-left:auto;justify-content:flex-end;gap:1rem;padding-left:1rem}.TopNavBar_topnavbar_lUyNk .TopNavBar_menu-button_lUyNk{flex-shrink:0;margin-left:.75rem;display:none;--font-size: 1rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_lUyNk .TopNavBar_menu-button_lUyNk{display:initial}}.TopNavBar_topnavbar_lUyNk .TopNavBar_menu-button_lUyNk.TopNavBar_menu--collapsed_lUyNk{display:initial}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="TopNavBar_topnavbar_lUyNk",a="TopNavBar_logo_lUyNk",l="TopNavBar_separator_lUyNk",e={"sr-only":"TopNavBar_sr-only_lUyNk",topnavbar:o,"left-section":"TopNavBar_left-section_lUyNk","logo-link":"TopNavBar_logo-link_lUyNk","logo-container":"TopNavBar_logo-container_lUyNk","logo-small":"TopNavBar_logo-small_lUyNk",logo:a,separator:l,"middle-section":"TopNavBar_middle-section_lUyNk","right-section":"TopNavBar_right-section_lUyNk","menu-button":"TopNavBar_menu-button_lUyNk","menu--collapsed":"TopNavBar_menu--collapsed_lUyNk"};exports.default=e,exports.logo=a,exports.separator=l,exports.topnavbar=o;
|
|
3
3
|
//# sourceMappingURL=TopNavBar.module.scss.cjs.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.TopNavBar_sr-
|
|
2
|
-
const topnavbar = "
|
|
3
|
-
const logo = "
|
|
4
|
-
const separator = "
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('.TopNavBar_sr-only_lUyNk{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.TopNavBar_hidden_lUyNk{display:none}.TopNavBar_slide-in_lUyNk{animation:TopNavBar_slide-in_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-in_lUyNk{animation-duration:.1ms}}.TopNavBar_slide-out_lUyNk{animation:TopNavBar_slide-out_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.TopNavBar_slide-out_lUyNk{animation-duration:.1ms}}@keyframes TopNavBar_slide-in_lUyNk{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes TopNavBar_slide-out_lUyNk{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\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 */.TopNavBar_topnavbar_lUyNk{position:sticky;top:0;left:0;z-index:3;width:100%;display:flex;align-items:center;height:4rem;padding:0 .75rem 0 0;background-color:var(--sidenavbar-background);box-shadow:0 2px 4px #0105320a,0 4px 5px #0105320a,0 1px 10px #01053214;--font-size: .875rem;flex-wrap:nowrap}.TopNavBar_topnavbar_lUyNk .TopNavBar_left-section_lUyNk{flex-shrink:0;display:flex;align-items:center}.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-link_lUyNk{display:flex;align-items:center;text-decoration:none}.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-container_lUyNk{display:flex;align-items:center}.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-container_lUyNk .TopNavBar_logo-small_lUyNk{height:2.5rem;display:flex;align-items:center;margin:0 1rem}.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-container_lUyNk .TopNavBar_logo_lUyNk{display:none}@media screen and (min-width:30em){.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-container_lUyNk .TopNavBar_logo-small_lUyNk{display:none;height:0}.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-container_lUyNk .TopNavBar_logo_lUyNk{display:block;margin-left:1rem}}@media screen and (min-width:30em)and (min-width:50em){.TopNavBar_topnavbar_lUyNk .TopNavBar_logo-container_lUyNk .TopNavBar_logo_lUyNk{margin-left:.75rem;margin-right:0}}.TopNavBar_topnavbar_lUyNk .TopNavBar_sr-only_lUyNk{position:absolute;margin:-1px;height:1px;width:1px;overflow:hidden}.TopNavBar_topnavbar_lUyNk .TopNavBar_separator_lUyNk{border:none;width:1px;height:2.5rem;background-color:#dedee6;flex-shrink:0;align-self:center;margin:0 3rem}.TopNavBar_topnavbar_lUyNk .TopNavBar_middle-section_lUyNk{flex:1;display:flex;align-items:center;min-width:0;margin-left:6.0625rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_lUyNk .TopNavBar_middle-section_lUyNk{margin-left:0}}.TopNavBar_topnavbar_lUyNk .TopNavBar_separator_lUyNk+.TopNavBar_middle-section_lUyNk{margin-left:0}.TopNavBar_topnavbar_lUyNk .TopNavBar_right-section_lUyNk{display:flex;align-items:center;margin-left:auto;justify-content:flex-end;gap:1rem;padding-left:1rem}.TopNavBar_topnavbar_lUyNk .TopNavBar_menu-button_lUyNk{flex-shrink:0;margin-left:.75rem;display:none;--font-size: 1rem}@media screen and (max-width:50em){.TopNavBar_topnavbar_lUyNk .TopNavBar_menu-button_lUyNk{display:initial}}.TopNavBar_topnavbar_lUyNk .TopNavBar_menu-button_lUyNk.TopNavBar_menu--collapsed_lUyNk{display:initial}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|
|
2
|
+
const topnavbar = "TopNavBar_topnavbar_lUyNk";
|
|
3
|
+
const logo = "TopNavBar_logo_lUyNk";
|
|
4
|
+
const separator = "TopNavBar_separator_lUyNk";
|
|
5
5
|
const classes = {
|
|
6
|
-
"sr-only": "TopNavBar_sr-
|
|
6
|
+
"sr-only": "TopNavBar_sr-only_lUyNk",
|
|
7
7
|
topnavbar,
|
|
8
|
-
"left-section": "TopNavBar_left-
|
|
9
|
-
"logo-link": "TopNavBar_logo-
|
|
10
|
-
"logo-container": "TopNavBar_logo-
|
|
11
|
-
"logo-small": "TopNavBar_logo-
|
|
8
|
+
"left-section": "TopNavBar_left-section_lUyNk",
|
|
9
|
+
"logo-link": "TopNavBar_logo-link_lUyNk",
|
|
10
|
+
"logo-container": "TopNavBar_logo-container_lUyNk",
|
|
11
|
+
"logo-small": "TopNavBar_logo-small_lUyNk",
|
|
12
12
|
logo,
|
|
13
13
|
separator,
|
|
14
|
-
"middle-section": "TopNavBar_middle-
|
|
15
|
-
"right-section": "TopNavBar_right-
|
|
16
|
-
"menu-button": "TopNavBar_menu-
|
|
17
|
-
"menu--collapsed": "TopNavBar_menu--
|
|
14
|
+
"middle-section": "TopNavBar_middle-section_lUyNk",
|
|
15
|
+
"right-section": "TopNavBar_right-section_lUyNk",
|
|
16
|
+
"menu-button": "TopNavBar_menu-button_lUyNk",
|
|
17
|
+
"menu--collapsed": "TopNavBar_menu--collapsed_lUyNk"
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
20
|
classes as default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityProviderButton.cjs.js","sources":["../../../src/components/miscellaneous/IdentityProviderButton.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, { ComponentPropsWithRef, CSSProperties, FunctionComponent } from \"react\";\nimport classes from \"./IdentityProviderButton.module.scss\";\nimport { Button } from \"../Button/Button\";\n\nexport interface SupportedCustomizationKeys {\n backgroundColor: string;\n focusBorderColor: string;\n focusBackgroundColor: string;\n hoverBackgroundColor: string;\n pressedBackgroundColor: string;\n textColor: string;\n borderColor: string;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"button\">, \"color\"> {\n iconUrl?: string;\n imgAltText?: string;\n idpType: string;\n customization?: SupportedCustomizationKeys;\n loading?: boolean;\n}\n\
|
|
1
|
+
{"version":3,"file":"IdentityProviderButton.cjs.js","sources":["../../../src/components/miscellaneous/IdentityProviderButton.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, { ComponentPropsWithRef, CSSProperties, FunctionComponent } from \"react\";\nimport classes from \"./IdentityProviderButton.module.scss\";\nimport { Button } from \"../Button/Button\";\n\nexport interface SupportedCustomizationKeys {\n backgroundColor: string;\n focusBorderColor: string;\n focusBackgroundColor: string;\n hoverBackgroundColor: string;\n pressedBackgroundColor: string;\n textColor: string;\n borderColor: string;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"button\">, \"color\"> {\n iconUrl?: string;\n imgAltText?: string;\n idpType: string;\n customization?: SupportedCustomizationKeys;\n loading?: boolean;\n}\n\nexport const IdentityProviderButton: FunctionComponent<Props> = ({\n children,\n iconUrl,\n imgAltText,\n idpType,\n customization,\n loading,\n ...rest\n}) => {\n const DEFAULT_BACKGROUND_COLOR = \"#FFFFFF\";\n const DEFAULT_BORDER_COLOR = \"#000000\";\n const DEFAULT_TEXT_COLOR = \"#000000\";\n const DEFAULT_FOCUS_OUTLINE_COLOR = \"var(--color-black50)\";\n const DEFAULT_HOVER_COLOR = \"var(--color-black10)\";\n const DEFAULT_PRESSED_COLOR = \"var(--color-black20)\";\n\n const generateCSSProperties = () => {\n return {\n \"--button-fill-primary-default-color\":\n customization?.backgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n borderColor: customization?.borderColor ?? DEFAULT_BORDER_COLOR,\n \"--button-fill-text-color\": customization?.textColor ?? DEFAULT_TEXT_COLOR,\n \"--color-focus\": customization?.focusBorderColor ?? DEFAULT_FOCUS_OUTLINE_COLOR,\n \"--button-fill-primary-focused-color\":\n customization?.focusBackgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n \"--button-fill-primary-hover-color\":\n customization?.hoverBackgroundColor ?? DEFAULT_HOVER_COLOR,\n \"--button-fill-primary-pressed-color\":\n customization?.pressedBackgroundColor ?? DEFAULT_PRESSED_COLOR\n } as CSSProperties;\n };\n\n return (\n <Button\n style={generateCSSProperties()}\n color=\"primary\"\n variant=\"fill\"\n className={classes[\"idp-button\"]}\n loading={loading}\n {...rest}\n >\n <span className={classes[\"idp-button--with-icon\"]}>\n <img\n height={24}\n width={24}\n aria-hidden={!imgAltText}\n src={iconUrl || `/ui-resources-static/common/idb/icons/${idpType}.svg`}\n alt={imgAltText || \"Identity Provider icon\"}\n />\n {children}\n </span>\n </Button>\n );\n};\n"],"names":["children","iconUrl","imgAltText","idpType","customization","loading","rest","DEFAULT_BACKGROUND_COLOR","React","createElement","Button","style","backgroundColor","borderColor","textColor","focusBorderColor","focusBackgroundColor","hoverBackgroundColor","pressedBackgroundColor","color","variant","className","classes","height","width","src","alt"],"mappings":"sOAsCgE,EAC9DA,WACAC,UACAC,aACAC,UACAC,gBACAC,aACGC,MAEH,MAAMC,EAA2B,UAuBjC,OACEC,EAAAC,cAACC,EAAAA,OAAA,CACCC,MAjBK,CACL,6CACEP,WAAeQ,kBAAmBL,EACpCM,mBAAaT,WAAeS,cAVH,UAWzB,kCAA4BT,WAAeU,YAVpB,UAWvB,uBAAiBV,WAAeW,mBAVA,uBAWhC,6CACEX,WAAeY,uBAAwBT,EACzC,2CACEH,WAAea,uBAbO,uBAcxB,6CACEb,WAAec,yBAdS,wBAqB1BC,MAAM,UACNC,QAAQ,OACRC,UAAWC,EAAAA,QAAQ,cACnBjB,aACIC,GAEJE,EAAAC,cAAC,OAAA,CAAKY,UAAWC,EAAAA,QAAQ,0BACvBd,EAAAC,cAAC,MAAA,CACCc,OAAQ,GACRC,MAAO,GACP,eAActB,EACduB,IAAKxB,GAAW,yCAAyCE,QACzDuB,IAAKxB,GAAc,2BAEpBF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityProviderButton.es.js","sources":["../../../src/components/miscellaneous/IdentityProviderButton.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, { ComponentPropsWithRef, CSSProperties, FunctionComponent } from \"react\";\nimport classes from \"./IdentityProviderButton.module.scss\";\nimport { Button } from \"../Button/Button\";\n\nexport interface SupportedCustomizationKeys {\n backgroundColor: string;\n focusBorderColor: string;\n focusBackgroundColor: string;\n hoverBackgroundColor: string;\n pressedBackgroundColor: string;\n textColor: string;\n borderColor: string;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"button\">, \"color\"> {\n iconUrl?: string;\n imgAltText?: string;\n idpType: string;\n customization?: SupportedCustomizationKeys;\n loading?: boolean;\n}\n\
|
|
1
|
+
{"version":3,"file":"IdentityProviderButton.es.js","sources":["../../../src/components/miscellaneous/IdentityProviderButton.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, { ComponentPropsWithRef, CSSProperties, FunctionComponent } from \"react\";\nimport classes from \"./IdentityProviderButton.module.scss\";\nimport { Button } from \"../Button/Button\";\n\nexport interface SupportedCustomizationKeys {\n backgroundColor: string;\n focusBorderColor: string;\n focusBackgroundColor: string;\n hoverBackgroundColor: string;\n pressedBackgroundColor: string;\n textColor: string;\n borderColor: string;\n}\n\nexport interface Props extends Omit<ComponentPropsWithRef<\"button\">, \"color\"> {\n iconUrl?: string;\n imgAltText?: string;\n idpType: string;\n customization?: SupportedCustomizationKeys;\n loading?: boolean;\n}\n\nexport const IdentityProviderButton: FunctionComponent<Props> = ({\n children,\n iconUrl,\n imgAltText,\n idpType,\n customization,\n loading,\n ...rest\n}) => {\n const DEFAULT_BACKGROUND_COLOR = \"#FFFFFF\";\n const DEFAULT_BORDER_COLOR = \"#000000\";\n const DEFAULT_TEXT_COLOR = \"#000000\";\n const DEFAULT_FOCUS_OUTLINE_COLOR = \"var(--color-black50)\";\n const DEFAULT_HOVER_COLOR = \"var(--color-black10)\";\n const DEFAULT_PRESSED_COLOR = \"var(--color-black20)\";\n\n const generateCSSProperties = () => {\n return {\n \"--button-fill-primary-default-color\":\n customization?.backgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n borderColor: customization?.borderColor ?? DEFAULT_BORDER_COLOR,\n \"--button-fill-text-color\": customization?.textColor ?? DEFAULT_TEXT_COLOR,\n \"--color-focus\": customization?.focusBorderColor ?? DEFAULT_FOCUS_OUTLINE_COLOR,\n \"--button-fill-primary-focused-color\":\n customization?.focusBackgroundColor ?? DEFAULT_BACKGROUND_COLOR,\n \"--button-fill-primary-hover-color\":\n customization?.hoverBackgroundColor ?? DEFAULT_HOVER_COLOR,\n \"--button-fill-primary-pressed-color\":\n customization?.pressedBackgroundColor ?? DEFAULT_PRESSED_COLOR\n } as CSSProperties;\n };\n\n return (\n <Button\n style={generateCSSProperties()}\n color=\"primary\"\n variant=\"fill\"\n className={classes[\"idp-button\"]}\n loading={loading}\n {...rest}\n >\n <span className={classes[\"idp-button--with-icon\"]}>\n <img\n height={24}\n width={24}\n aria-hidden={!imgAltText}\n src={iconUrl || `/ui-resources-static/common/idb/icons/${idpType}.svg`}\n alt={imgAltText || \"Identity Provider icon\"}\n />\n {children}\n </span>\n </Button>\n );\n};\n"],"names":[],"mappings":";;;AAsCO,MAAM,yBAAmD,CAAC;AAAA,EAC/D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,2BAA2B;AACjC,QAAM,uBAAuB;AAC7B,QAAM,qBAAqB;AAC3B,QAAM,8BAA8B;AACpC,QAAM,sBAAsB;AAC5B,QAAM,wBAAwB;AAE9B,QAAM,wBAAwB,MAAM;AAClC,WAAO;AAAA,MACL,wCACE,+CAAe,oBAAmB;AAAA,MACpC,cAAa,+CAAe,gBAAe;AAAA,MAC3C,6BAA4B,+CAAe,cAAa;AAAA,MACxD,kBAAiB,+CAAe,qBAAoB;AAAA,MACpD,wCACE,+CAAe,yBAAwB;AAAA,MACzC,sCACE,+CAAe,yBAAwB;AAAA,MACzC,wCACE,+CAAe,2BAA0B;AAAA,IAAA;AAAA,EAE/C;AAEA,SACE,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO,sBAAA;AAAA,MACP,OAAM;AAAA,MACN,SAAQ;AAAA,MACR,WAAW,QAAQ,YAAY;AAAA,MAC/B;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,IAEJ,sBAAA,cAAC,QAAA,EAAK,WAAW,QAAQ,uBAAuB,KAC9C,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,eAAa,CAAC;AAAA,QACd,KAAK,WAAW,yCAAyC,OAAO;AAAA,QAChE,KAAK,cAAc;AAAA,MAAA;AAAA,IAAA,GAEpB,QACH;AAAA,EAAA;AAGN;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"idp-button":"IdentityProviderButton_idp-
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-only_lUyNk{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.IdentityProviderButton_hidden_lUyNk{display:none}.IdentityProviderButton_slide-in_lUyNk{animation:IdentityProviderButton_slide-in_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-in_lUyNk{animation-duration:.1ms}}.IdentityProviderButton_slide-out_lUyNk{animation:IdentityProviderButton_slide-out_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-out_lUyNk{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_lUyNk{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_lUyNk{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\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 */.IdentityProviderButton_idp-button_lUyNk{width:100%}.IdentityProviderButton_idp-button--with-icon_lUyNk{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:-.125rem;margin-bottom:-.125rem}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"idp-button":"IdentityProviderButton_idp-button_lUyNk","idp-button--with-icon":"IdentityProviderButton_idp-button--with-icon_lUyNk"};
|
|
3
3
|
//# sourceMappingURL=IdentityProviderButton.module.scss.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.IdentityProviderButton_sr-only_lUyNk{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.IdentityProviderButton_hidden_lUyNk{display:none}.IdentityProviderButton_slide-in_lUyNk{animation:IdentityProviderButton_slide-in_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-in_lUyNk{animation-duration:.1ms}}.IdentityProviderButton_slide-out_lUyNk{animation:IdentityProviderButton_slide-out_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.IdentityProviderButton_slide-out_lUyNk{animation-duration:.1ms}}@keyframes IdentityProviderButton_slide-in_lUyNk{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes IdentityProviderButton_slide-out_lUyNk{0%{transform:translateY(0)}to{transform:translateY(100vh)}}/*!\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 */.IdentityProviderButton_idp-button_lUyNk{width:100%}.IdentityProviderButton_idp-button--with-icon_lUyNk{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:-.125rem;margin-bottom:-.125rem}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
const classes = {
|
|
3
|
-
"idp-button": "IdentityProviderButton_idp-
|
|
4
|
-
"idp-button--with-icon": "IdentityProviderButton_idp-button--with-
|
|
3
|
+
"idp-button": "IdentityProviderButton_idp-button_lUyNk",
|
|
4
|
+
"idp-button--with-icon": "IdentityProviderButton_idp-button--with-icon_lUyNk"
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
7
|
classes as default
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useClickOutside=(t,i,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useClickOutside=(t,i,o)=>{function c(e){const o=null==t?void 0:t.current;o&&(e.composedPath().includes(o)||i(e))}e.useEffect(()=>(setTimeout(()=>window.addEventListener("click",c)),()=>{setTimeout(()=>window.removeEventListener("click",c))}),o)};
|
|
2
2
|
//# sourceMappingURL=useClickOutside.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClickOutside.cjs.js","sources":["../../src/hooks/useClickOutside.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 { DependencyList, useEffect } from \"react\";\n\nexport const useClickOutside = (\n myElementRef: React.RefObject<HTMLElement | null>,\n onClickOutside: (event: MouseEvent) => void,\n dependencies?: DependencyList\n) => {\n function eventListener(event: MouseEvent) {\n const myElement = myElementRef?.current;\n if (!myElement) {\n return;\n }\n const clickedInsideMyElement =
|
|
1
|
+
{"version":3,"file":"useClickOutside.cjs.js","sources":["../../src/hooks/useClickOutside.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 { DependencyList, useEffect } from \"react\";\n\nexport const useClickOutside = (\n myElementRef: React.RefObject<HTMLElement | null>,\n onClickOutside: (event: MouseEvent) => void,\n dependencies?: DependencyList\n) => {\n function eventListener(event: MouseEvent) {\n const myElement = myElementRef?.current;\n if (!myElement) {\n return;\n }\n const clickedInsideMyElement = event.composedPath().includes(myElement);\n\n if (!clickedInsideMyElement) {\n onClickOutside(event);\n }\n }\n useEffect(() => {\n setTimeout(() => window.addEventListener(\"click\", eventListener));\n\n return () => {\n setTimeout(() => window.removeEventListener(\"click\", eventListener));\n };\n }, dependencies);\n};\n"],"names":["myElementRef","onClickOutside","dependencies","eventListener","event","myElement","current","composedPath","includes","useEffect","setTimeout","window","addEventListener","removeEventListener"],"mappings":"iIAkB+B,CAC7BA,EACAC,EACAC,KAEA,SAASC,EAAcC,GACrB,MAAMC,EAAY,MAAAL,OAAA,EAAAA,EAAcM,QAC3BD,IAG0BD,EAAMG,eAAeC,SAASH,IAG3DJ,EAAeG,GAEnB,CACAK,EAAAA,UAAU,KACRC,WAAW,IAAMC,OAAOC,iBAAiB,QAAST,IAE3C,KACLO,WAAW,IAAMC,OAAOE,oBAAoB,QAASV,MAEtDD"}
|
|
@@ -5,7 +5,7 @@ const useClickOutside = (myElementRef, onClickOutside, dependencies) => {
|
|
|
5
5
|
if (!myElement) {
|
|
6
6
|
return;
|
|
7
7
|
}
|
|
8
|
-
const clickedInsideMyElement =
|
|
8
|
+
const clickedInsideMyElement = event.composedPath().includes(myElement);
|
|
9
9
|
if (!clickedInsideMyElement) {
|
|
10
10
|
onClickOutside(event);
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClickOutside.es.js","sources":["../../src/hooks/useClickOutside.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 { DependencyList, useEffect } from \"react\";\n\nexport const useClickOutside = (\n myElementRef: React.RefObject<HTMLElement | null>,\n onClickOutside: (event: MouseEvent) => void,\n dependencies?: DependencyList\n) => {\n function eventListener(event: MouseEvent) {\n const myElement = myElementRef?.current;\n if (!myElement) {\n return;\n }\n const clickedInsideMyElement =
|
|
1
|
+
{"version":3,"file":"useClickOutside.es.js","sources":["../../src/hooks/useClickOutside.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 { DependencyList, useEffect } from \"react\";\n\nexport const useClickOutside = (\n myElementRef: React.RefObject<HTMLElement | null>,\n onClickOutside: (event: MouseEvent) => void,\n dependencies?: DependencyList\n) => {\n function eventListener(event: MouseEvent) {\n const myElement = myElementRef?.current;\n if (!myElement) {\n return;\n }\n const clickedInsideMyElement = event.composedPath().includes(myElement);\n\n if (!clickedInsideMyElement) {\n onClickOutside(event);\n }\n }\n useEffect(() => {\n setTimeout(() => window.addEventListener(\"click\", eventListener));\n\n return () => {\n setTimeout(() => window.removeEventListener(\"click\", eventListener));\n };\n }, dependencies);\n};\n"],"names":[],"mappings":";AAkBO,MAAM,kBAAkB,CAC7B,cACA,gBACA,iBACG;AACH,WAAS,cAAc,OAAmB;AACxC,UAAM,YAAY,6CAAc;AAChC,QAAI,CAAC,WAAW;AACd;AAAA,IACF;AACA,UAAM,yBAAyB,MAAM,aAAA,EAAe,SAAS,SAAS;AAEtE,QAAI,CAAC,wBAAwB;AAC3B,qBAAe,KAAK;AAAA,IACtB;AAAA,EACF;AACA,YAAU,MAAM;AACd,eAAW,MAAM,OAAO,iBAAiB,SAAS,aAAa,CAAC;AAEhE,WAAO,MAAM;AACX,iBAAW,MAAM,OAAO,oBAAoB,SAAS,aAAa,CAAC;AAAA,IACrE;AAAA,EACF,GAAG,YAAY;AACjB;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useDebouncedCallback=(r,t,u)=>{const c=e.useRef(void 0),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");exports.useDebouncedCallback=(r,t,u)=>{const c=e.useRef(void 0),l=u?[r,t,...u]:[r,t],n=e.useCallback((...e)=>{null!=c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{r(...e)},t)},l),o=e.useCallback(()=>{null!=c.current&&(clearTimeout(c.current),c.current=void 0)},[]);return Object.assign(n,{cancel:o})};
|
|
2
2
|
//# sourceMappingURL=useDebouncedCallback.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDebouncedCallback.cjs.js","sources":["../../src/hooks/useDebouncedCallback.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 from \"react\";\n\nexport const useDebouncedCallback = <T extends unknown[]>(\n callback: (...args: T) => void,\n delay: number,\n dependencies?: React.DependencyList\n) => {\n const timeout = React.useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n const comboDeps = dependencies ? [callback, delay, ...dependencies] : [callback, delay];\n\n
|
|
1
|
+
{"version":3,"file":"useDebouncedCallback.cjs.js","sources":["../../src/hooks/useDebouncedCallback.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 from \"react\";\n\nexport const useDebouncedCallback = <T extends unknown[]>(\n callback: (...args: T) => void,\n delay: number,\n dependencies?: React.DependencyList\n) => {\n const timeout = React.useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n const comboDeps = dependencies ? [callback, delay, ...dependencies] : [callback, delay];\n\n const debounced = React.useCallback((...args: T) => {\n if (timeout.current != null) {\n clearTimeout(timeout.current);\n }\n\n timeout.current = setTimeout(() => {\n callback(...args);\n }, delay);\n }, comboDeps);\n\n const cancel = React.useCallback(() => {\n if (timeout.current != null) {\n clearTimeout(timeout.current);\n timeout.current = undefined;\n }\n }, []);\n\n return Object.assign(debounced, { cancel });\n};\n"],"names":["callback","delay","dependencies","timeout","React","useRef","comboDeps","debounced","useCallback","args","current","clearTimeout","setTimeout","cancel","Object","assign"],"mappings":"sIAkBoC,CAClCA,EACAC,EACAC,KAEA,MAAMC,EAAUC,EAAMC,YAAkD,GAClEC,EAAYJ,EAAe,CAACF,EAAUC,KAAUC,GAAgB,CAACF,EAAUC,GAE3EM,EAAYH,EAAMI,YAAY,IAAIC,KACf,MAAnBN,EAAQO,SACVC,aAAaR,EAAQO,SAGvBP,EAAQO,QAAUE,WAAW,KAC3BZ,KAAYS,IACXR,IACFK,GAEGO,EAAST,EAAMI,YAAY,KACR,MAAnBL,EAAQO,UACVC,aAAaR,EAAQO,SACrBP,EAAQO,aAAU,IAEnB,IAEH,OAAOI,OAAOC,OAAOR,EAAW,CAAEM"}
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
const useDebouncedCallback = (callback, delay, dependencies) => {
|
|
3
3
|
const timeout = React.useRef(void 0);
|
|
4
4
|
const comboDeps = dependencies ? [callback, delay, ...dependencies] : [callback, delay];
|
|
5
|
-
|
|
5
|
+
const debounced = React.useCallback((...args) => {
|
|
6
6
|
if (timeout.current != null) {
|
|
7
7
|
clearTimeout(timeout.current);
|
|
8
8
|
}
|
|
@@ -10,6 +10,13 @@ const useDebouncedCallback = (callback, delay, dependencies) => {
|
|
|
10
10
|
callback(...args);
|
|
11
11
|
}, delay);
|
|
12
12
|
}, comboDeps);
|
|
13
|
+
const cancel = React.useCallback(() => {
|
|
14
|
+
if (timeout.current != null) {
|
|
15
|
+
clearTimeout(timeout.current);
|
|
16
|
+
timeout.current = void 0;
|
|
17
|
+
}
|
|
18
|
+
}, []);
|
|
19
|
+
return Object.assign(debounced, { cancel });
|
|
13
20
|
};
|
|
14
21
|
export {
|
|
15
22
|
useDebouncedCallback
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDebouncedCallback.es.js","sources":["../../src/hooks/useDebouncedCallback.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 from \"react\";\n\nexport const useDebouncedCallback = <T extends unknown[]>(\n callback: (...args: T) => void,\n delay: number,\n dependencies?: React.DependencyList\n) => {\n const timeout = React.useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n const comboDeps = dependencies ? [callback, delay, ...dependencies] : [callback, delay];\n\n
|
|
1
|
+
{"version":3,"file":"useDebouncedCallback.es.js","sources":["../../src/hooks/useDebouncedCallback.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 from \"react\";\n\nexport const useDebouncedCallback = <T extends unknown[]>(\n callback: (...args: T) => void,\n delay: number,\n dependencies?: React.DependencyList\n) => {\n const timeout = React.useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n const comboDeps = dependencies ? [callback, delay, ...dependencies] : [callback, delay];\n\n const debounced = React.useCallback((...args: T) => {\n if (timeout.current != null) {\n clearTimeout(timeout.current);\n }\n\n timeout.current = setTimeout(() => {\n callback(...args);\n }, delay);\n }, comboDeps);\n\n const cancel = React.useCallback(() => {\n if (timeout.current != null) {\n clearTimeout(timeout.current);\n timeout.current = undefined;\n }\n }, []);\n\n return Object.assign(debounced, { cancel });\n};\n"],"names":[],"mappings":";AAkBO,MAAM,uBAAuB,CAClC,UACA,OACA,iBACG;AACH,QAAM,UAAU,MAAM,OAAkD,MAAS;AACjF,QAAM,YAAY,eAAe,CAAC,UAAU,OAAO,GAAG,YAAY,IAAI,CAAC,UAAU,KAAK;AAEtF,QAAM,YAAY,MAAM,YAAY,IAAI,SAAY;AAClD,QAAI,QAAQ,WAAW,MAAM;AAC3B,mBAAa,QAAQ,OAAO;AAAA,IAC9B;AAEA,YAAQ,UAAU,WAAW,MAAM;AACjC,eAAS,GAAG,IAAI;AAAA,IAClB,GAAG,KAAK;AAAA,EACV,GAAG,SAAS;AAEZ,QAAM,SAAS,MAAM,YAAY,MAAM;AACrC,QAAI,QAAQ,WAAW,MAAM;AAC3B,mBAAa,QAAQ,OAAO;AAC5B,cAAQ,UAAU;AAAA,IACpB;AAAA,EACF,GAAG,CAAA,CAAE;AAEL,SAAO,OAAO,OAAO,WAAW,EAAE,QAAQ;AAC5C;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -96,6 +96,27 @@ declare interface Arguments {
|
|
|
96
96
|
componentToRepeat: default_2.ReactElement;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
declare interface AsyncSearchProps {
|
|
100
|
+
/** Enables backend search. When set, built-in client-side filtering is disabled. */
|
|
101
|
+
onSearch: (query: string) => void;
|
|
102
|
+
/** Debounce applied to onSearch, in ms. Default 300. */
|
|
103
|
+
debounceTime?: number;
|
|
104
|
+
/** Minimum chars before onSearch fires and options render. Default 0. */
|
|
105
|
+
minSearchLength?: number;
|
|
106
|
+
/** Consumer sets true while a request is in flight. Shows a loading row; never shows "no results" while true. */
|
|
107
|
+
loading?: boolean;
|
|
108
|
+
/** When set, shows an error row instead of results. */
|
|
109
|
+
errorLabel?: string;
|
|
110
|
+
/** Optional retry affordance rendered alongside errorLabel. */
|
|
111
|
+
onRetry?: () => void;
|
|
112
|
+
/** Shown while the query is shorter than minSearchLength. Default "Type to search". */
|
|
113
|
+
idleLabel?: string;
|
|
114
|
+
/** Called when the user scrolls near the end of the option list. */
|
|
115
|
+
onLoadMore?: () => void;
|
|
116
|
+
/** More pages available. Enables the sentinel + "loading more" row. */
|
|
117
|
+
hasMore?: boolean;
|
|
118
|
+
}
|
|
119
|
+
|
|
99
120
|
export declare const Banner: default_2.ForwardRefExoticComponent<Omit<BannerProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
|
|
100
121
|
|
|
101
122
|
export declare interface BannerProps extends ComponentPropsWithRef<"section"> {
|
|
@@ -496,6 +517,27 @@ export declare interface DataGridColumnMetadata {
|
|
|
496
517
|
disableAddNew?: boolean;
|
|
497
518
|
allowSingleFilterOnly?: boolean;
|
|
498
519
|
valueSelectType?: ValueSelectType;
|
|
520
|
+
/**
|
|
521
|
+
* Enables backend value search for this column. When provided, `defaultValues` is treated as
|
|
522
|
+
* the initial page only, and the value select fetches further pages as the user types/scrolls.
|
|
523
|
+
*/
|
|
524
|
+
onValueSearch?: (query: string) => void;
|
|
525
|
+
/** Called to fetch the next page of values once the user reaches the end of the loaded list. */
|
|
526
|
+
onValueLoadMore?: () => void;
|
|
527
|
+
/** Whether another page of values is available after the currently loaded ones. */
|
|
528
|
+
hasMoreValues?: boolean;
|
|
529
|
+
/** Whether a value search/page fetch is currently in flight. */
|
|
530
|
+
valuesLoading?: boolean;
|
|
531
|
+
/** Minimum query length required before `onValueSearch` is invoked. */
|
|
532
|
+
minValueSearchLength?: number;
|
|
533
|
+
/**
|
|
534
|
+
* Resolves display labels for saved values not present in the currently loaded page (e.g. from
|
|
535
|
+
* a previously saved filter), used in EDIT mode to show a label instead of the raw value.
|
|
536
|
+
*/
|
|
537
|
+
resolveValueLabels?: (values: string[]) => {
|
|
538
|
+
value: string;
|
|
539
|
+
label: string;
|
|
540
|
+
}[];
|
|
499
541
|
}
|
|
500
542
|
|
|
501
543
|
export declare const DataGridDrawerItem: default_2.ForwardRefExoticComponent<Omit<DataGridDrawerItemProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -1165,11 +1207,6 @@ declare type OnSortFunction = (sort: Sort) => void;
|
|
|
1165
1207
|
declare const Option_2: default_2.ForwardRefExoticComponent<Omit<OptionProps, "ref"> & default_2.RefAttributes<HTMLLIElement>>;
|
|
1166
1208
|
export { Option_2 as Option }
|
|
1167
1209
|
|
|
1168
|
-
/**
|
|
1169
|
-
* Props of the elements accepted as Select/MultiSelect children. React 19 types `ReactElement`'s
|
|
1170
|
-
* props as `unknown`, so `children` has to name this shape for `child.props` to be readable.
|
|
1171
|
-
* `fixed` comes from MultiOption, which extends Option's props.
|
|
1172
|
-
*/
|
|
1173
1210
|
export declare type OptionElementProps = OptionProps & {
|
|
1174
1211
|
fixed?: boolean;
|
|
1175
1212
|
};
|
|
@@ -1418,6 +1455,8 @@ declare interface SearchProps {
|
|
|
1418
1455
|
searchInputProps?: PartialInputProps_2 & {
|
|
1419
1456
|
reset?: boolean;
|
|
1420
1457
|
};
|
|
1458
|
+
/** Enables backend search: disables client-side filtering and emits the typed query via `onSearch`. */
|
|
1459
|
+
async?: AsyncSearchProps;
|
|
1421
1460
|
}
|
|
1422
1461
|
|
|
1423
1462
|
export declare const Select: default_2.ForwardRefExoticComponent<Omit<default_2.PropsWithChildren<Omit<SingleSelectProps, "ref"> & default_2.RefAttributes<HTMLSelectElement> & WithReadOnlyProps>, "ref"> & default_2.RefAttributes<unknown>>;
|
|
@@ -1438,6 +1477,16 @@ declare interface SelectProps_2<V extends string | readonly string[] | undefined
|
|
|
1438
1477
|
addNew?: AddNewProps;
|
|
1439
1478
|
isReadOnlyView?: boolean;
|
|
1440
1479
|
domRoot?: HTMLElement;
|
|
1480
|
+
/** Fallback display for the current value when it is absent from `children` (async mode). */
|
|
1481
|
+
selectedOption?: {
|
|
1482
|
+
value: string;
|
|
1483
|
+
label: ReactNode;
|
|
1484
|
+
};
|
|
1485
|
+
/** Fallback display for picked values absent from `children` (async multi). */
|
|
1486
|
+
selectedOptions?: {
|
|
1487
|
+
value: string;
|
|
1488
|
+
label: ReactNode;
|
|
1489
|
+
}[];
|
|
1441
1490
|
}
|
|
1442
1491
|
|
|
1443
1492
|
export declare const SelectWrapper: default_2.ForwardRefExoticComponent<Omit<default_2.PropsWithChildren<Omit<SelectWrapperProps, "ref"> & default_2.RefAttributes<HTMLDivElement> & WithReadOnlyProps>, "ref"> & default_2.RefAttributes<unknown>>;
|
|
@@ -1588,12 +1637,14 @@ export declare const Tag: default_2.ForwardRefExoticComponent<TagProps & default
|
|
|
1588
1637
|
|
|
1589
1638
|
declare type Tag_2 = "span" | "div" | "i";
|
|
1590
1639
|
|
|
1591
|
-
export declare interface TagProps extends HTMLAttributes<HTMLDivElement> {
|
|
1640
|
+
export declare interface TagProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
1592
1641
|
variant?: "enabled" | "disabled";
|
|
1593
1642
|
icon?: Icons;
|
|
1594
1643
|
backgroundColor?: string;
|
|
1595
1644
|
color?: string;
|
|
1596
|
-
|
|
1645
|
+
/** Accepts non-string content. When `removeButton.label` isn't set, RemoveButton's accessible
|
|
1646
|
+
* label falls back to `children` only if it's a plain string, otherwise just `removeLabel`. */
|
|
1647
|
+
children?: ReactNode;
|
|
1597
1648
|
shape?: "rounded" | "sharp";
|
|
1598
1649
|
removeButton?: Props_7;
|
|
1599
1650
|
}
|
|
@@ -1740,7 +1791,9 @@ export declare const useAlert: () => {
|
|
|
1740
1791
|
|
|
1741
1792
|
export declare const useClickOutside: (myElementRef: React.RefObject<HTMLElement | null>, onClickOutside: (event: MouseEvent) => void, dependencies?: DependencyList) => void;
|
|
1742
1793
|
|
|
1743
|
-
export declare const useDebouncedCallback: <T extends unknown[]>(callback: (...args: T) => void, delay: number, dependencies?: default_2.DependencyList) => (...args: T) => void
|
|
1794
|
+
export declare const useDebouncedCallback: <T extends unknown[]>(callback: (...args: T) => void, delay: number, dependencies?: default_2.DependencyList) => ((...args: T) => void) & {
|
|
1795
|
+
cancel: () => void;
|
|
1796
|
+
};
|
|
1744
1797
|
|
|
1745
1798
|
export declare const useFiltersReducer: (filterValues: Filter[] | undefined) => {
|
|
1746
1799
|
state: {
|
|
@@ -1782,7 +1835,9 @@ export declare const usePosition: (providedConfigObject?: ConfigObject) => {
|
|
|
1782
1835
|
bottom: PositionType;
|
|
1783
1836
|
left: PositionType;
|
|
1784
1837
|
right: PositionType;
|
|
1785
|
-
calculatePosition: () => void
|
|
1838
|
+
calculatePosition: (() => void) & {
|
|
1839
|
+
cancel: () => void;
|
|
1840
|
+
};
|
|
1786
1841
|
calculatePositionImmediate: () => void;
|
|
1787
1842
|
initialCalculationDone: boolean;
|
|
1788
1843
|
resetCalculationState: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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 */.readyclasses_sr-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/*!\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 */.readyclasses_sr-only_lUyNk{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.readyclasses_hidden_lUyNk{display:none}.readyclasses_slide-in_lUyNk{animation:readyclasses_slide-in_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.readyclasses_slide-in_lUyNk{animation-duration:.1ms}}.readyclasses_slide-out_lUyNk{animation:readyclasses_slide-out_lUyNk .5s forwards}@media(prefers-reduced-motion:reduce){.readyclasses_slide-out_lUyNk{animation-duration:.1ms}}@keyframes readyclasses_slide-in_lUyNk{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes readyclasses_slide-out_lUyNk{0%{transform:translateY(0)}to{transform:translateY(100vh)}}')),document.head.appendChild(e)}}catch(s){console.error("vite-plugin-css-injected-by-js",s)}}();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="readyclasses_hidden_lUyNk",s={"sr-only":"readyclasses_sr-only_lUyNk",hidden:e,"slide-in":"readyclasses_slide-in_lUyNk","slide-out":"readyclasses_slide-out_lUyNk"};exports.default=s,exports.hidden=e;
|
|
3
3
|
//# sourceMappingURL=readyclasses.module.scss.cjs.js.map
|