@onewelcome/react-lib-components 13.3.0 → 13.4.0-experminent.1
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.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.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 -32
- 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 +154 -30
- 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.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.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.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 -4
- 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,15 +1,15 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.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 */.FormControl_form-
|
|
2
|
-
const grid = "
|
|
3
|
-
const center = "
|
|
4
|
-
const middle = "
|
|
5
|
-
const start = "
|
|
6
|
-
const top = "
|
|
7
|
-
const end = "
|
|
8
|
-
const bottom = "
|
|
9
|
-
const stretch = "
|
|
10
|
-
const column = "
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.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 */.FormControl_form-control_MD9ir{font-size:var(--form-control-font-size)}.FormControl_form-control_MD9ir+.FormControl_form-control_MD9ir{margin-top:1rem}.FormControl_form-control_MD9ir.FormControl_grid_MD9ir{display:flex;flex-wrap:wrap;gap:1rem}.FormControl_form-control_MD9ir.FormControl_grid_MD9ir.FormControl_center_MD9ir,.FormControl_form-control_MD9ir.FormControl_grid_MD9ir.FormControl_middle_MD9ir{align-items:center}.FormControl_form-control_MD9ir.FormControl_grid_MD9ir.FormControl_start_MD9ir,.FormControl_form-control_MD9ir.FormControl_grid_MD9ir.FormControl_top_MD9ir{align-items:flex-start}.FormControl_form-control_MD9ir.FormControl_grid_MD9ir.FormControl_end_MD9ir,.FormControl_form-control_MD9ir.FormControl_grid_MD9ir.FormControl_bottom_MD9ir{align-items:flex-end}.FormControl_form-control_MD9ir.FormControl_grid_MD9ir.FormControl_stretch_MD9ir{align-items:stretch}.FormControl_form-control_MD9ir.FormControl_grid_MD9ir.FormControl_stretch_MD9ir>*>*{box-sizing:border-box;height:100%}.FormControl_column_MD9ir{flex-grow:1;flex-shrink:0}.FormControl_col-2_MD9ir{flex-basis:calc((100% - 1rem)/2)}.FormControl_col-3_MD9ir{flex-basis:calc((100% - 2rem) / 3)}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
|
|
2
|
+
const grid = "FormControl_grid_MD9ir";
|
|
3
|
+
const center = "FormControl_center_MD9ir";
|
|
4
|
+
const middle = "FormControl_middle_MD9ir";
|
|
5
|
+
const start = "FormControl_start_MD9ir";
|
|
6
|
+
const top = "FormControl_top_MD9ir";
|
|
7
|
+
const end = "FormControl_end_MD9ir";
|
|
8
|
+
const bottom = "FormControl_bottom_MD9ir";
|
|
9
|
+
const stretch = "FormControl_stretch_MD9ir";
|
|
10
|
+
const column = "FormControl_column_MD9ir";
|
|
11
11
|
const classes = {
|
|
12
|
-
"form-control": "FormControl_form-
|
|
12
|
+
"form-control": "FormControl_form-control_MD9ir",
|
|
13
13
|
grid,
|
|
14
14
|
center,
|
|
15
15
|
middle,
|
|
@@ -19,8 +19,8 @@ const classes = {
|
|
|
19
19
|
bottom,
|
|
20
20
|
stretch,
|
|
21
21
|
column,
|
|
22
|
-
"col-2": "FormControl_col-
|
|
23
|
-
"col-3": "FormControl_col-
|
|
22
|
+
"col-2": "FormControl_col-2_MD9ir",
|
|
23
|
+
"col-3": "FormControl_col-3_MD9ir"
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
26
26
|
bottom,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var r=document.createElement("style");r.appendChild(document.createTextNode(".FormErrorText_error-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r="
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var r=document.createElement("style");r.appendChild(document.createTextNode(".FormErrorText_error-message_MD9ir{color:var(--error);display:block;line-height:1rem}.FormErrorText_message_MD9ir{display:flex;align-items:flex-end}.FormErrorText_error-icon_MD9ir{flex-shrink:0;margin-right:.5rem;font-size:var(--font-size-big)}.FormErrorText_error-icon-before_MD9ir{margin-right:.5rem}.FormErrorText_error-icon-after_MD9ir{margin-left:.5rem}")),document.head.appendChild(r)}}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 r="FormErrorText_message_MD9ir",e={"error-message":"FormErrorText_error-message_MD9ir",message:r,"error-icon":"FormErrorText_error-icon_MD9ir","error-icon-before":"FormErrorText_error-icon-before_MD9ir","error-icon-after":"FormErrorText_error-icon-after_MD9ir"};exports.default=e,exports.message=r;
|
|
3
3
|
//# sourceMappingURL=FormErrorText.module.scss.cjs.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var r=document.createElement("style");r.appendChild(document.createTextNode(".FormErrorText_error-
|
|
2
|
-
const message = "
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var r=document.createElement("style");r.appendChild(document.createTextNode(".FormErrorText_error-message_MD9ir{color:var(--error);display:block;line-height:1rem}.FormErrorText_message_MD9ir{display:flex;align-items:flex-end}.FormErrorText_error-icon_MD9ir{flex-shrink:0;margin-right:.5rem;font-size:var(--font-size-big)}.FormErrorText_error-icon-before_MD9ir{margin-right:.5rem}.FormErrorText_error-icon-after_MD9ir{margin-left:.5rem}")),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|
|
2
|
+
const message = "FormErrorText_message_MD9ir";
|
|
3
3
|
const classes = {
|
|
4
|
-
"error-message": "FormErrorText_error-
|
|
4
|
+
"error-message": "FormErrorText_error-message_MD9ir",
|
|
5
5
|
message,
|
|
6
|
-
"error-icon": "FormErrorText_error-
|
|
7
|
-
"error-icon-before": "FormErrorText_error-icon-
|
|
8
|
-
"error-icon-after": "FormErrorText_error-icon-
|
|
6
|
+
"error-icon": "FormErrorText_error-icon_MD9ir",
|
|
7
|
+
"error-icon-before": "FormErrorText_error-icon-before_MD9ir",
|
|
8
|
+
"error-icon-after": "FormErrorText_error-icon-after_MD9ir"
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
11
|
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 */.FormGroup_form-
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),exports.default={"form-group":"FormGroup_form-
|
|
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 */.FormGroup_form-group_MD9ir{position:relative}.FormGroup_default-helper_MD9ir{font-size:var(--font-size-sub);line-height:1.33333333}')),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={"form-group":"FormGroup_form-group_MD9ir","default-helper":"FormGroup_default-helper_MD9ir"};
|
|
3
3
|
//# sourceMappingURL=FormGroup.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('/*!\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 */.FormGroup_form-
|
|
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 */.FormGroup_form-group_MD9ir{position:relative}.FormGroup_default-helper_MD9ir{font-size:var(--font-size-sub);line-height:1.33333333}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
|
|
2
2
|
const classes = {
|
|
3
|
-
"form-group": "FormGroup_form-
|
|
4
|
-
"default-helper": "FormGroup_default-
|
|
3
|
+
"form-group": "FormGroup_form-group_MD9ir",
|
|
4
|
+
"default-helper": "FormGroup_default-helper_MD9ir"
|
|
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('/*!\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 */div.FormHelperText_form-helper-
|
|
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 */div.FormHelperText_form-helper-text_MD9ir{color:var(--input-helper-text-color);margin-bottom:0}div.FormHelperText_disabled_MD9ir{color:var(--greyed-out)}div.FormHelperText_error_MD9ir{color:var(--error)}[data-readonlyview=true] div.FormHelperText_form-helper-text_MD9ir{display:none}')),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"}});const e="FormHelperText_disabled_MD9ir",r="FormHelperText_error_MD9ir",t={"form-helper-text":"FormHelperText_form-helper-text_MD9ir",disabled:e,error:r};exports.default=t,exports.disabled=e,exports.error=r;
|
|
3
3
|
//# sourceMappingURL=FormHelperText.module.scss.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
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 */div.FormHelperText_form-helper-
|
|
2
|
-
const disabled = "
|
|
3
|
-
const error = "
|
|
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 */div.FormHelperText_form-helper-text_MD9ir{color:var(--input-helper-text-color);margin-bottom:0}div.FormHelperText_disabled_MD9ir{color:var(--greyed-out)}div.FormHelperText_error_MD9ir{color:var(--error)}[data-readonlyview=true] div.FormHelperText_form-helper-text_MD9ir{display:none}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
|
|
2
|
+
const disabled = "FormHelperText_disabled_MD9ir";
|
|
3
|
+
const error = "FormHelperText_error_MD9ir";
|
|
4
4
|
const classes = {
|
|
5
|
-
"form-helper-text": "FormHelperText_form-helper-
|
|
5
|
+
"form-helper-text": "FormHelperText_form-helper-text_MD9ir",
|
|
6
6
|
disabled,
|
|
7
7
|
error
|
|
8
8
|
};
|
|
@@ -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 */.
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
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 */.FormSelectorWrapper_error_MD9ir input+span{outline:var(--error) solid 1px;outline-offset:-1px;border-radius:2px;overflow:hidden}.FormSelectorWrapper_helper-text_MD9ir{margin-top:.25rem;margin-left:calc(1.75 * var(--font-size))}.FormSelectorWrapper_children-container_MD9ir>span:nth-of-type(2){margin-right:.5rem}.FormSelectorWrapper_children-container_MD9ir [data-icon-status=success]{color:var(--success);font-size:var(--font-size-big)}.FormSelectorWrapper_children-container_MD9ir [data-icon-status=error]{color:var(--error);font-size:var(--font-size-big)}.FormSelectorWrapper_children-container_MD9ir [data-icon-status=info]{color:var(--default);font-size:var(--font-size-big)}.FormSelectorWrapper_disabled_MD9ir input{color:var(--disabled)}.FormSelectorWrapper_disabled_MD9ir input:disabled{cursor:not-allowed}.FormSelectorWrapper_disabled_MD9ir label{cursor:not-allowed}.FormSelectorWrapper_required_MD9ir{color:var(--error)}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r="FormSelectorWrapper_error_MD9ir",e="FormSelectorWrapper_disabled_MD9ir",o="FormSelectorWrapper_required_MD9ir",t={error:r,"helper-text":"FormSelectorWrapper_helper-text_MD9ir","children-container":"FormSelectorWrapper_children-container_MD9ir",disabled:e,required:o};exports.default=t,exports.disabled=e,exports.error=r,exports.required=o;
|
|
3
3
|
//# sourceMappingURL=FormSelectorWrapper.module.scss.cjs.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
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 */.
|
|
2
|
-
const error = "
|
|
3
|
-
const disabled = "
|
|
4
|
-
const required = "
|
|
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 */.FormSelectorWrapper_error_MD9ir input+span{outline:var(--error) solid 1px;outline-offset:-1px;border-radius:2px;overflow:hidden}.FormSelectorWrapper_helper-text_MD9ir{margin-top:.25rem;margin-left:calc(1.75 * var(--font-size))}.FormSelectorWrapper_children-container_MD9ir>span:nth-of-type(2){margin-right:.5rem}.FormSelectorWrapper_children-container_MD9ir [data-icon-status=success]{color:var(--success);font-size:var(--font-size-big)}.FormSelectorWrapper_children-container_MD9ir [data-icon-status=error]{color:var(--error);font-size:var(--font-size-big)}.FormSelectorWrapper_children-container_MD9ir [data-icon-status=info]{color:var(--default);font-size:var(--font-size-big)}.FormSelectorWrapper_disabled_MD9ir input{color:var(--disabled)}.FormSelectorWrapper_disabled_MD9ir input:disabled{cursor:not-allowed}.FormSelectorWrapper_disabled_MD9ir label{cursor:not-allowed}.FormSelectorWrapper_required_MD9ir{color:var(--error)}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
|
|
2
|
+
const error = "FormSelectorWrapper_error_MD9ir";
|
|
3
|
+
const disabled = "FormSelectorWrapper_disabled_MD9ir";
|
|
4
|
+
const required = "FormSelectorWrapper_required_MD9ir";
|
|
5
5
|
const classes = {
|
|
6
6
|
error,
|
|
7
|
-
"helper-text": "FormSelectorWrapper_helper-
|
|
8
|
-
"children-container": "FormSelectorWrapper_children-
|
|
7
|
+
"helper-text": "FormSelectorWrapper_helper-text_MD9ir",
|
|
8
|
+
"children-container": "FormSelectorWrapper_children-container_MD9ir",
|
|
9
9
|
disabled,
|
|
10
10
|
required
|
|
11
11
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var
|
|
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 r=document.createElement("style");r.appendChild(document.createTextNode('.Input_sr-only_MD9ir{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Input_hidden_MD9ir{display:none}.Input_slide-in_MD9ir{animation:Input_slide-in_MD9ir .5s forwards}@media(prefers-reduced-motion:reduce){.Input_slide-in_MD9ir{animation-duration:.1ms}}.Input_slide-out_MD9ir{animation:Input_slide-out_MD9ir .5s forwards}@media(prefers-reduced-motion:reduce){.Input_slide-out_MD9ir{animation-duration:.1ms}}@keyframes Input_slide-in_MD9ir{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Input_slide-out_MD9ir{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 */.Input_input-wrapper_MD9ir{position:relative;display:flex;align-items:center;border:0;border-radius:var(--input-border-radius);background-color:var(--input-background-color);padding:0 calc(.5 * var(--font-size));transition-property:background-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Input_input-wrapper_MD9ir{transition-duration:.1ms}}.Input_input-wrapper_MD9ir input:-webkit-autofill,.Input_input-wrapper_MD9ir input:-webkit-autofill:hover,.Input_input-wrapper_MD9ir input:-webkit-autofill:focus,.Input_input-wrapper_MD9ir input:-webkit-autofill:active{-webkit-transition:background-color 5000s ease-in-out 0s!important;transition:background-color 5000s ease-in-out 0s!important}.Input_input-wrapper_MD9ir input:-webkit-autofill~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:hover~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:focus~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:active~.Input_outline_MD9ir:after{content:"";position:absolute;display:block;width:100%;height:100%;border-radius:var(--input-border-radius)}@media all and (-webkit-min-device-pixel-ratio:0)and (-webkit-min-device-pixel-ratio:0),all and (-webkit-min-device-pixel-ratio:0)and (min-resolution:.001dpcm){.Input_input-wrapper_MD9ir input:-webkit-autofill~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:hover~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:focus~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:active~.Input_outline_MD9ir:after{background-color:#e8f0fe}}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:.001dpcm){.Input_input-wrapper_MD9ir input:-webkit-autofill~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:hover~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:focus~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:active~.Input_outline_MD9ir:after{background-color:#faffbd}}.Input_input-wrapper_MD9ir:hover .Input_outline_MD9ir{border-color:var(--input-border-color);background-color:var(--input-hover-background-color)}.Input_input-wrapper_MD9ir .Input_outline_MD9ir.Input_disabled_MD9ir{border-color:var(--disabled);background-color:var(--input-disabled-background-color)}.Input_input-wrapper_MD9ir .Input_outline_MD9ir.Input_error_MD9ir{border-color:var(--error)}.Input_input-wrapper_MD9ir [data-icon-status=success],.Input_input-wrapper_MD9ir [data-icon-status=error]{height:100%;width:calc(1.25 * var(--font-size));box-sizing:border-box;font-size:var(--icon-font-big);display:flex;align-items:center;justify-content:center;z-index:2}.Input_input-wrapper_MD9ir [data-icon-status=success]:before,.Input_input-wrapper_MD9ir [data-icon-status=error]:before{font-size:var(--icon-font-big);height:calc(1.25 * var(--font-size));width:calc(1.25 * var(--font-size));display:flex;align-items:center;justify-content:center}.Input_input-wrapper_MD9ir [data-icon-status=success]{color:var(--success)}.Input_input-wrapper_MD9ir [data-icon-status=error]{color:var(--error)}.Input_input-wrapper_MD9ir [data-date-icon]{height:100%;width:calc(1.25 * var(--font-size));box-sizing:border-box;font-size:var(--icon-font-big);display:flex;align-items:center;justify-content:center;z-index:1;color:var(--color-blue-grey900);cursor:pointer}.Input_input-wrapper_MD9ir [data-date-icon]:before{font-size:var(--icon-font-big);height:calc(1.25 * var(--font-size));width:calc(1.25 * var(--font-size));display:flex;align-items:center;justify-content:center}.Input_input-wrapper_MD9ir.Input_error_MD9ir [data-date-icon]{color:var(--error)}.Input_input-wrapper_MD9ir.Input_success_MD9ir [data-date-icon]{color:var(--success)}.Input_input-wrapper_MD9ir.Input_disabled_MD9ir [data-date-icon]{color:var(--greyed-out);cursor:not-allowed;pointer-events:none}.Input_input-wrapper_MD9ir[data-readonlyview=true] [data-date-icon]{pointer-events:none}.Input_input-wrapper_MD9ir[data-readonlyview=true]{color:var(--read-only-text-color)}.Input_input-wrapper_MD9ir[data-readonlyview=true] .Input_Input-module_MD9ir{border-color:var(--read-only-border-color)}.Input_input-wrapper_MD9ir[data-readonlyview=true] span.Input_outline_MD9ir{color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}.Input_input-wrapper_MD9ir[data-readonlyview=true]:hover .Input_outline_MD9ir{color:var(--read-only-text-color);background-color:var(--color-white);border-color:var(--read-only-border-color)}.Input_input-wrapper_MD9ir [data-prefix],.Input_input-wrapper_MD9ir [data-suffix]{display:block;z-index:1;transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Input_input-wrapper_MD9ir [data-prefix],.Input_input-wrapper_MD9ir [data-suffix]{transition-duration:.1ms}}.Input_input-wrapper_MD9ir.Input_focus_MD9ir:not(.Input_disabled_MD9ir):not([data-readonlyview=true]),.Input_input-wrapper_MD9ir[data-readonlyview=true]:focus:not(.Input_disabled_MD9ir),.Input_input-wrapper_MD9ir[data-readonlyview=true]:focus-visible:not(.Input_disabled_MD9ir){position:relative;z-index:2;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.Input_input_MD9ir{padding:0;height:calc(2.75 * var(--font-size));color:var(--color-blue-grey900);font-size:var(--input-font-size);font-family:var(--font-family);box-sizing:border-box;border:0;border-radius:var(--input-border-radius);background-color:transparent;z-index:1;transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Input_input_MD9ir{transition-duration:.1ms}}.Input_input_MD9ir:focus:not(:disabled){outline:none}.Input_input_MD9ir:not(.Input_shrink-width-for-date-icon_MD9ir){width:100%}.Input_input_MD9ir:disabled{cursor:not-allowed;color:var(--greyed-out)}.Input_input_MD9ir.Input_shrink-width-for-date-icon_MD9ir{width:auto}.Input_input_MD9ir[type=date]::-webkit-calendar-picker-indicator,.Input_input_MD9ir[type=time]::-webkit-calendar-picker-indicator,.Input_input_MD9ir[type=datetime-local]::-webkit-calendar-picker-indicator{opacity:0;position:absolute;right:0;width:calc(1.25 * var(--font-size));height:100%;pointer-events:none}.Input_input_MD9ir[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:none}[data-readonlyview=true] .Input_outline_MD9ir{border-color:var(--read-only-border-color)}.Input_outline_MD9ir{pointer-events:none;position:absolute;margin:0;padding:0;top:0;right:0;bottom:0;left:0;border-color:var(--input-border-color);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Input_outline_MD9ir{transition-duration:.1ms}}.Input_error_MD9ir input{padding-right:calc(1.25 * var(--font-size))}.Input_error_MD9ir input.Input_remove-extra-indent_MD9ir{padding-right:0}.Input_success_MD9ir input{padding-right:calc(1.25 * var(--font-size))}@media only screen and (min-width:30em){.Input_input-wrapper_MD9ir{padding:0 calc(.5 * var(--font-size))}}')),document.head.appendChild(r)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Input_outline_MD9ir",r="Input_disabled_MD9ir",t="Input_error_MD9ir",s="Input_success_MD9ir",u="Input_focus_MD9ir",p="Input_input_MD9ir",o={"input-wrapper":"Input_input-wrapper_MD9ir",outline:e,disabled:r,error:t,success:s,focus:u,input:p};exports.default=o,exports.disabled=r,exports.error=t,exports.focus=u,exports.input=p,exports.outline=e,exports.success=s;
|
|
3
3
|
//# sourceMappingURL=Input.module.scss.cjs.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var
|
|
2
|
-
const outline = "
|
|
3
|
-
const disabled = "
|
|
4
|
-
const error = "
|
|
5
|
-
const success = "
|
|
6
|
-
const focus = "
|
|
7
|
-
const input = "
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var r=document.createElement("style");r.appendChild(document.createTextNode('.Input_sr-only_MD9ir{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.Input_hidden_MD9ir{display:none}.Input_slide-in_MD9ir{animation:Input_slide-in_MD9ir .5s forwards}@media(prefers-reduced-motion:reduce){.Input_slide-in_MD9ir{animation-duration:.1ms}}.Input_slide-out_MD9ir{animation:Input_slide-out_MD9ir .5s forwards}@media(prefers-reduced-motion:reduce){.Input_slide-out_MD9ir{animation-duration:.1ms}}@keyframes Input_slide-in_MD9ir{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes Input_slide-out_MD9ir{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 */.Input_input-wrapper_MD9ir{position:relative;display:flex;align-items:center;border:0;border-radius:var(--input-border-radius);background-color:var(--input-background-color);padding:0 calc(.5 * var(--font-size));transition-property:background-color;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Input_input-wrapper_MD9ir{transition-duration:.1ms}}.Input_input-wrapper_MD9ir input:-webkit-autofill,.Input_input-wrapper_MD9ir input:-webkit-autofill:hover,.Input_input-wrapper_MD9ir input:-webkit-autofill:focus,.Input_input-wrapper_MD9ir input:-webkit-autofill:active{-webkit-transition:background-color 5000s ease-in-out 0s!important;transition:background-color 5000s ease-in-out 0s!important}.Input_input-wrapper_MD9ir input:-webkit-autofill~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:hover~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:focus~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:active~.Input_outline_MD9ir:after{content:"";position:absolute;display:block;width:100%;height:100%;border-radius:var(--input-border-radius)}@media all and (-webkit-min-device-pixel-ratio:0)and (-webkit-min-device-pixel-ratio:0),all and (-webkit-min-device-pixel-ratio:0)and (min-resolution:.001dpcm){.Input_input-wrapper_MD9ir input:-webkit-autofill~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:hover~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:focus~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:active~.Input_outline_MD9ir:after{background-color:#e8f0fe}}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:.001dpcm){.Input_input-wrapper_MD9ir input:-webkit-autofill~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:hover~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:focus~.Input_outline_MD9ir:after,.Input_input-wrapper_MD9ir input:-webkit-autofill:active~.Input_outline_MD9ir:after{background-color:#faffbd}}.Input_input-wrapper_MD9ir:hover .Input_outline_MD9ir{border-color:var(--input-border-color);background-color:var(--input-hover-background-color)}.Input_input-wrapper_MD9ir .Input_outline_MD9ir.Input_disabled_MD9ir{border-color:var(--disabled);background-color:var(--input-disabled-background-color)}.Input_input-wrapper_MD9ir .Input_outline_MD9ir.Input_error_MD9ir{border-color:var(--error)}.Input_input-wrapper_MD9ir [data-icon-status=success],.Input_input-wrapper_MD9ir [data-icon-status=error]{height:100%;width:calc(1.25 * var(--font-size));box-sizing:border-box;font-size:var(--icon-font-big);display:flex;align-items:center;justify-content:center;z-index:2}.Input_input-wrapper_MD9ir [data-icon-status=success]:before,.Input_input-wrapper_MD9ir [data-icon-status=error]:before{font-size:var(--icon-font-big);height:calc(1.25 * var(--font-size));width:calc(1.25 * var(--font-size));display:flex;align-items:center;justify-content:center}.Input_input-wrapper_MD9ir [data-icon-status=success]{color:var(--success)}.Input_input-wrapper_MD9ir [data-icon-status=error]{color:var(--error)}.Input_input-wrapper_MD9ir [data-date-icon]{height:100%;width:calc(1.25 * var(--font-size));box-sizing:border-box;font-size:var(--icon-font-big);display:flex;align-items:center;justify-content:center;z-index:1;color:var(--color-blue-grey900);cursor:pointer}.Input_input-wrapper_MD9ir [data-date-icon]:before{font-size:var(--icon-font-big);height:calc(1.25 * var(--font-size));width:calc(1.25 * var(--font-size));display:flex;align-items:center;justify-content:center}.Input_input-wrapper_MD9ir.Input_error_MD9ir [data-date-icon]{color:var(--error)}.Input_input-wrapper_MD9ir.Input_success_MD9ir [data-date-icon]{color:var(--success)}.Input_input-wrapper_MD9ir.Input_disabled_MD9ir [data-date-icon]{color:var(--greyed-out);cursor:not-allowed;pointer-events:none}.Input_input-wrapper_MD9ir[data-readonlyview=true] [data-date-icon]{pointer-events:none}.Input_input-wrapper_MD9ir[data-readonlyview=true]{color:var(--read-only-text-color)}.Input_input-wrapper_MD9ir[data-readonlyview=true] .Input_Input-module_MD9ir{border-color:var(--read-only-border-color)}.Input_input-wrapper_MD9ir[data-readonlyview=true] span.Input_outline_MD9ir{color:var(--read-only-text-color);border-color:var(--read-only-border-color);background-color:var(--color-white)}.Input_input-wrapper_MD9ir[data-readonlyview=true]:hover .Input_outline_MD9ir{color:var(--read-only-text-color);background-color:var(--color-white);border-color:var(--read-only-border-color)}.Input_input-wrapper_MD9ir [data-prefix],.Input_input-wrapper_MD9ir [data-suffix]{display:block;z-index:1;transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Input_input-wrapper_MD9ir [data-prefix],.Input_input-wrapper_MD9ir [data-suffix]{transition-duration:.1ms}}.Input_input-wrapper_MD9ir.Input_focus_MD9ir:not(.Input_disabled_MD9ir):not([data-readonlyview=true]),.Input_input-wrapper_MD9ir[data-readonlyview=true]:focus:not(.Input_disabled_MD9ir),.Input_input-wrapper_MD9ir[data-readonlyview=true]:focus-visible:not(.Input_disabled_MD9ir){position:relative;z-index:2;outline:calc(.125 * var(--font-size)) solid var(--color-focus);outline-offset:calc(.125 * var(--font-size));border-radius:var(--focus-border-radius)}.Input_input_MD9ir{padding:0;height:calc(2.75 * var(--font-size));color:var(--color-blue-grey900);font-size:var(--input-font-size);font-family:var(--font-family);box-sizing:border-box;border:0;border-radius:var(--input-border-radius);background-color:transparent;z-index:1;transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Input_input_MD9ir{transition-duration:.1ms}}.Input_input_MD9ir:focus:not(:disabled){outline:none}.Input_input_MD9ir:not(.Input_shrink-width-for-date-icon_MD9ir){width:100%}.Input_input_MD9ir:disabled{cursor:not-allowed;color:var(--greyed-out)}.Input_input_MD9ir.Input_shrink-width-for-date-icon_MD9ir{width:auto}.Input_input_MD9ir[type=date]::-webkit-calendar-picker-indicator,.Input_input_MD9ir[type=time]::-webkit-calendar-picker-indicator,.Input_input_MD9ir[type=datetime-local]::-webkit-calendar-picker-indicator{opacity:0;position:absolute;right:0;width:calc(1.25 * var(--font-size));height:100%;pointer-events:none}.Input_input_MD9ir[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:none}[data-readonlyview=true] .Input_outline_MD9ir{border-color:var(--read-only-border-color)}.Input_outline_MD9ir{pointer-events:none;position:absolute;margin:0;padding:0;top:0;right:0;bottom:0;left:0;border-color:var(--input-border-color);border-style:var(--input-border-style);border-width:var(--input-border-width);border-radius:var(--input-border-radius);transition-property:all;transition-duration:.2s;transition-timing-function:ease-in-out}@media(prefers-reduced-motion:reduce){.Input_outline_MD9ir{transition-duration:.1ms}}.Input_error_MD9ir input{padding-right:calc(1.25 * var(--font-size))}.Input_error_MD9ir input.Input_remove-extra-indent_MD9ir{padding-right:0}.Input_success_MD9ir input{padding-right:calc(1.25 * var(--font-size))}@media only screen and (min-width:30em){.Input_input-wrapper_MD9ir{padding:0 calc(.5 * var(--font-size))}}')),document.head.appendChild(r)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
+
const outline = "Input_outline_MD9ir";
|
|
3
|
+
const disabled = "Input_disabled_MD9ir";
|
|
4
|
+
const error = "Input_error_MD9ir";
|
|
5
|
+
const success = "Input_success_MD9ir";
|
|
6
|
+
const focus = "Input_focus_MD9ir";
|
|
7
|
+
const input = "Input_input_MD9ir";
|
|
8
8
|
const classes = {
|
|
9
|
-
"input-wrapper": "Input_input-
|
|
9
|
+
"input-wrapper": "Input_input-wrapper_MD9ir",
|
|
10
10
|
outline,
|
|
11
11
|
disabled,
|
|
12
12
|
error,
|
|
@@ -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 */.
|
|
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 */.Label_label_MD9ir{cursor:text;color:var(--greyed-out);font-size:var(--font-size)}')),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"}});const e="Label_label_MD9ir",l={label:e};exports.default=l,exports.label=e;
|
|
3
3
|
//# sourceMappingURL=Label.module.scss.cjs.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
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 */.
|
|
2
|
-
const label = "
|
|
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 */.Label_label_MD9ir{cursor:text;color:var(--greyed-out);font-size:var(--font-size)}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}}();
|
|
2
|
+
const label = "Label_label_MD9ir";
|
|
3
3
|
const classes = {
|
|
4
4
|
label
|
|
5
5
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r="
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var i=document.createElement("style");i.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 */.Radio_radio-wrapper_MD9ir{position:relative}.Radio_radio-wrapper_MD9ir+.Radio_radio-wrapper_MD9ir{margin-top:.75rem}.Radio_error_MD9ir{color:var(--error)}.Radio_error-message_MD9ir{margin-top:.25rem;margin-left:calc(1.75 * var(--font-size));font-size:var(--font-size-sub)}.Radio_error-message_MD9ir [data-icon]{font-size:1rem}.Radio_helper-text_MD9ir{margin-top:.25rem;margin-left:1.75rem}.Radio_error-icon_MD9ir{margin-right:.5rem;font-size:var(--font-size-big)}.Radio_radio-container_MD9ir{display:flex}.Radio_radio-container_MD9ir label{display:inline-block;margin-left:calc(.5 * var(--font-size));font-size:var(--font-size-form-label);font-family:var(--font-family);margin-top:.15rem}.Radio_radio-container_MD9ir label.Radio_no-margin-top_MD9ir{margin-top:0}.Radio_disabled_MD9ir .Radio_radio-container_MD9ir label{cursor:not-allowed}.Radio_native-input_MD9ir{position:absolute;top:0;left:0;opacity:0;margin:0;width:var(--font-size-big);height:var(--font-size-big);z-index:2}.Radio_native-input_MD9ir+span[data-icon=true]:before{display:block;width:var(--font-size-big);height:var(--font-size-big)}.Radio_native-input_MD9ir:checked+*{color:var(--radio-checked-color)}.Radio_native-input_MD9ir:checked+*.Radio_disabled_MD9ir{color:var(--disabled);cursor:not-allowed;pointer-events:none}.Radio_native-input_MD9ir:focus-visible+*{border-radius:100%;outline:2px solid var(--color-focus);outline-offset:2px}.Radio_native-input_MD9ir.Radio_error_MD9ir+*{border-radius:100%}.Radio_native-input_MD9ir.Radio_error_MD9ir:hover+.Radio_radio_MD9ir:before{outline-color:var(--radio-hover-background-color)}.Radio_native-input_MD9ir.Radio_error_MD9ir:active+.Radio_radio_MD9ir:before{outline-color:var(--radio-pressed-background-color)}.Radio_native-input_MD9ir:hover+.Radio_input_MD9ir.Radio_circle_MD9ir:not(.Radio_disabled_MD9ir){background-color:var(--radio-hover-background-color)}.Radio_native-input_MD9ir:active+.Radio_input_MD9ir.Radio_circle_MD9ir:not(.Radio_disabled_MD9ir){background-color:var(--radio-pressed-background-color)}.Radio_native-input_MD9ir:hover+.Radio_input_MD9ir.Radio_radio_MD9ir:not(.Radio_disabled_MD9ir){background-color:var(--radio-hover-background-color);color:var(--radio-hover-color)}.Radio_native-input_MD9ir:active+.Radio_input_MD9ir.Radio_radio_MD9ir:not(.Radio_disabled_MD9ir){color:var(--radio-pressed-color);background-color:var(--radio-pressed-background-color)}.Radio_input_MD9ir{font-size:var(--font-size-big);width:var(--font-size-big);height:var(--font-size-big);z-index:1;border-radius:100%;color:var(--color-blue-grey500)}.Radio_input_MD9ir:active{border-radius:100%}.Radio_disabled_MD9ir .Radio_input_MD9ir{color:var(--disabled)}.Radio_disabled_MD9ir{color:var(--disabled);pointer-events:none}[data-readonlyview=true] .Radio_radio-wrapper_MD9ir{color:var(--read-only-text-color)}[data-readonlyview=true] .Radio_radio-wrapper_MD9ir span.Radio_input_MD9ir{color:var(--read-only-text-color);cursor:not-allowed}[data-readonlyview=true] .Radio_radio-wrapper_MD9ir span.Radio_input_MD9ir:before{outline:1px solid var(--read-only-border-color);outline-offset:-1px;border-radius:50%}[data-readonlyview=true] .Radio_radio-wrapper_MD9ir label{-webkit-user-select:text;user-select:text}.Radio_radio-container_MD9ir input[type=radio][data-readonlyview=true]~span.Radio_input_MD9ir{color:var(--read-only-text-color);cursor:not-allowed}.Radio_radio-container_MD9ir input[type=radio][data-readonlyview=true]~span.Radio_input_MD9ir:before{outline:1px solid var(--read-only-border-color);outline-offset:-1px;border-radius:50%}.Radio_radio-container_MD9ir input[type=radio][data-readonlyview=true]~label{-webkit-user-select:text;user-select:text;pointer-events:none}.Radio_radio-container_MD9ir input[type=radio][data-readonlyview=true] :focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}')),document.head.appendChild(i)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r="Radio_error_MD9ir",i="Radio_disabled_MD9ir",o="Radio_radio_MD9ir",e="Radio_input_MD9ir",a="Radio_circle_MD9ir",d={"radio-wrapper":"Radio_radio-wrapper_MD9ir",error:r,"error-message":"Radio_error-message_MD9ir","radio-container":"Radio_radio-container_MD9ir","no-margin-top":"Radio_no-margin-top_MD9ir",disabled:i,"native-input":"Radio_native-input_MD9ir",radio:o,input:e,circle:a};exports.circle=a,exports.default=d,exports.disabled=i,exports.error=r,exports.input=e,exports.radio=o;
|
|
3
3
|
//# sourceMappingURL=Radio.module.scss.cjs.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var
|
|
2
|
-
const error = "
|
|
3
|
-
const disabled = "
|
|
4
|
-
const radio = "
|
|
5
|
-
const input = "
|
|
6
|
-
const circle = "
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var i=document.createElement("style");i.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 */.Radio_radio-wrapper_MD9ir{position:relative}.Radio_radio-wrapper_MD9ir+.Radio_radio-wrapper_MD9ir{margin-top:.75rem}.Radio_error_MD9ir{color:var(--error)}.Radio_error-message_MD9ir{margin-top:.25rem;margin-left:calc(1.75 * var(--font-size));font-size:var(--font-size-sub)}.Radio_error-message_MD9ir [data-icon]{font-size:1rem}.Radio_helper-text_MD9ir{margin-top:.25rem;margin-left:1.75rem}.Radio_error-icon_MD9ir{margin-right:.5rem;font-size:var(--font-size-big)}.Radio_radio-container_MD9ir{display:flex}.Radio_radio-container_MD9ir label{display:inline-block;margin-left:calc(.5 * var(--font-size));font-size:var(--font-size-form-label);font-family:var(--font-family);margin-top:.15rem}.Radio_radio-container_MD9ir label.Radio_no-margin-top_MD9ir{margin-top:0}.Radio_disabled_MD9ir .Radio_radio-container_MD9ir label{cursor:not-allowed}.Radio_native-input_MD9ir{position:absolute;top:0;left:0;opacity:0;margin:0;width:var(--font-size-big);height:var(--font-size-big);z-index:2}.Radio_native-input_MD9ir+span[data-icon=true]:before{display:block;width:var(--font-size-big);height:var(--font-size-big)}.Radio_native-input_MD9ir:checked+*{color:var(--radio-checked-color)}.Radio_native-input_MD9ir:checked+*.Radio_disabled_MD9ir{color:var(--disabled);cursor:not-allowed;pointer-events:none}.Radio_native-input_MD9ir:focus-visible+*{border-radius:100%;outline:2px solid var(--color-focus);outline-offset:2px}.Radio_native-input_MD9ir.Radio_error_MD9ir+*{border-radius:100%}.Radio_native-input_MD9ir.Radio_error_MD9ir:hover+.Radio_radio_MD9ir:before{outline-color:var(--radio-hover-background-color)}.Radio_native-input_MD9ir.Radio_error_MD9ir:active+.Radio_radio_MD9ir:before{outline-color:var(--radio-pressed-background-color)}.Radio_native-input_MD9ir:hover+.Radio_input_MD9ir.Radio_circle_MD9ir:not(.Radio_disabled_MD9ir){background-color:var(--radio-hover-background-color)}.Radio_native-input_MD9ir:active+.Radio_input_MD9ir.Radio_circle_MD9ir:not(.Radio_disabled_MD9ir){background-color:var(--radio-pressed-background-color)}.Radio_native-input_MD9ir:hover+.Radio_input_MD9ir.Radio_radio_MD9ir:not(.Radio_disabled_MD9ir){background-color:var(--radio-hover-background-color);color:var(--radio-hover-color)}.Radio_native-input_MD9ir:active+.Radio_input_MD9ir.Radio_radio_MD9ir:not(.Radio_disabled_MD9ir){color:var(--radio-pressed-color);background-color:var(--radio-pressed-background-color)}.Radio_input_MD9ir{font-size:var(--font-size-big);width:var(--font-size-big);height:var(--font-size-big);z-index:1;border-radius:100%;color:var(--color-blue-grey500)}.Radio_input_MD9ir:active{border-radius:100%}.Radio_disabled_MD9ir .Radio_input_MD9ir{color:var(--disabled)}.Radio_disabled_MD9ir{color:var(--disabled);pointer-events:none}[data-readonlyview=true] .Radio_radio-wrapper_MD9ir{color:var(--read-only-text-color)}[data-readonlyview=true] .Radio_radio-wrapper_MD9ir span.Radio_input_MD9ir{color:var(--read-only-text-color);cursor:not-allowed}[data-readonlyview=true] .Radio_radio-wrapper_MD9ir span.Radio_input_MD9ir:before{outline:1px solid var(--read-only-border-color);outline-offset:-1px;border-radius:50%}[data-readonlyview=true] .Radio_radio-wrapper_MD9ir label{-webkit-user-select:text;user-select:text}.Radio_radio-container_MD9ir input[type=radio][data-readonlyview=true]~span.Radio_input_MD9ir{color:var(--read-only-text-color);cursor:not-allowed}.Radio_radio-container_MD9ir input[type=radio][data-readonlyview=true]~span.Radio_input_MD9ir:before{outline:1px solid var(--read-only-border-color);outline-offset:-1px;border-radius:50%}.Radio_radio-container_MD9ir input[type=radio][data-readonlyview=true]~label{-webkit-user-select:text;user-select:text;pointer-events:none}.Radio_radio-container_MD9ir input[type=radio][data-readonlyview=true] :focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}')),document.head.appendChild(i)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}}();
|
|
2
|
+
const error = "Radio_error_MD9ir";
|
|
3
|
+
const disabled = "Radio_disabled_MD9ir";
|
|
4
|
+
const radio = "Radio_radio_MD9ir";
|
|
5
|
+
const input = "Radio_input_MD9ir";
|
|
6
|
+
const circle = "Radio_circle_MD9ir";
|
|
7
7
|
const classes = {
|
|
8
|
-
"radio-wrapper": "Radio_radio-
|
|
8
|
+
"radio-wrapper": "Radio_radio-wrapper_MD9ir",
|
|
9
9
|
error,
|
|
10
|
-
"error-message": "Radio_error-
|
|
11
|
-
"radio-container": "Radio_radio-
|
|
12
|
-
"no-margin-top": "Radio_no-margin-
|
|
10
|
+
"error-message": "Radio_error-message_MD9ir",
|
|
11
|
+
"radio-container": "Radio_radio-container_MD9ir",
|
|
12
|
+
"no-margin-top": "Radio_no-margin-top_MD9ir",
|
|
13
13
|
disabled,
|
|
14
|
-
"native-input": "Radio_native-
|
|
14
|
+
"native-input": "Radio_native-input_MD9ir",
|
|
15
15
|
radio,
|
|
16
16
|
input,
|
|
17
17
|
circle
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),l=require("../SingleSelect/Option.cjs.js"),t=require("./MultiSelect.module.scss.cjs.js"),o=e.forwardRef(({fixed:o,hasFocus:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),l=require("../SingleSelect/Option.cjs.js"),t=require("./MultiSelect.module.scss.cjs.js"),s=require("../../../../util/helper.cjs.js"),o=e.forwardRef(({fixed:o,hasFocus:r,className:u,...n},c)=>{const i=e.useRef(null),a=c||i,f=s.classNames(u,{[t.default.focus]:r});return e.useEffect(()=>{a.current&&r&&(e=>{var l,t,s;const o=e.parentElement,r=null==(l=e.parentElement)?void 0:l.parentElement;!!(null==r?void 0:r.style.maxHeight)&&(null==(t=null==r?void 0:r.scrollTo)||t.call(r,0,e.offsetTop-((null==r?void 0:r.offsetHeight)??1)/2)),null==(s=null==o?void 0:o.scrollTo)||s.call(o,0,e.offsetTop-((null==o?void 0:o.offsetHeight)??1)/2)})(a.current)},[r,a]),e.createElement(l.Option,{ref:a,isSelected:r,disableDefaultSelectedStyle:!0,className:f,...n})});exports.MultiOption=o;
|
|
2
2
|
//# sourceMappingURL=MultiOption.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOption.cjs.js","sources":["../../../../../src/components/Form/Select/MultiSelect/MultiOption.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ForwardRefRenderFunction, RefObject,
|
|
1
|
+
{"version":3,"file":"MultiOption.cjs.js","sources":["../../../../../src/components/Form/Select/MultiSelect/MultiOption.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ForwardRefRenderFunction, RefObject, useEffect, useRef } from \"react\";\nimport { Props as SelectOptionProps, Option as SelectOption } from \"../SingleSelect/Option\";\n\nimport classes from \"./MultiSelect.module.scss\";\nimport { classNames } from \"../../../../util/helper\";\n\nexport interface Props extends SelectOptionProps {\n fixed?: boolean;\n}\n\nconst MultiOptionComponent: ForwardRefRenderFunction<HTMLLIElement, Props> = (\n { fixed: _fixed, hasFocus, className, ...rest }: Props,\n ref\n) => {\n /** Must be `useRef`, not `createRef` — a fresh ref every render made the scroll-into-view\n * effect below re-fire on unrelated re-renders, resetting scroll even when focus hadn't changed. */\n const fallbackRef = useRef<HTMLLIElement>(null);\n const innerOptionRef = (ref as RefObject<HTMLLIElement>) || fallbackRef;\n\n const additionalClasses = classNames(className, {\n [classes[\"focus\"]]: hasFocus\n });\n\n const scrollToSelectedElement = (element: HTMLLIElement) => {\n const listbox = element.parentElement;\n const listboxWrapper = element.parentElement?.parentElement;\n const isListboxWrapperScrollable = !!listboxWrapper?.style.maxHeight;\n\n if (isListboxWrapperScrollable) {\n listboxWrapper?.scrollTo?.(0, element.offsetTop - (listboxWrapper?.offsetHeight ?? 1) / 2);\n }\n listbox?.scrollTo?.(0, element.offsetTop - (listbox?.offsetHeight ?? 1) / 2);\n };\n\n useEffect(() => {\n if (innerOptionRef.current && hasFocus) {\n scrollToSelectedElement(innerOptionRef.current);\n }\n }, [hasFocus, innerOptionRef]);\n\n return (\n <SelectOption\n ref={innerOptionRef}\n isSelected={hasFocus}\n disableDefaultSelectedStyle\n className={additionalClasses}\n {...rest}\n />\n );\n};\n\nexport const MultiOption = React.forwardRef(MultiOptionComponent);\n"],"names":["MultiOption","React","forwardRef","fixed","_fixed","hasFocus","className","rest","ref","fallbackRef","useRef","innerOptionRef","additionalClasses","classNames","classes","useEffect","current","element","listbox","parentElement","listboxWrapper","_a","style","maxHeight","_b","scrollTo","call","offsetTop","offsetHeight","_c","scrollToSelectedElement","createElement","SelectOption","isSelected","disableDefaultSelectedStyle"],"mappings":"8OAmEaA,EAAcC,EAAMC,WAzC4C,EACzEC,MAAOC,EAAQC,WAAUC,eAAcC,GACzCC,KAIA,MAAMC,EAAcC,EAAAA,OAAsB,MACpCC,EAAkBH,GAAoCC,EAEtDG,EAAoBC,EAAAA,WAAWP,EAAW,CAC9C,CAACQ,EAAAA,QAAe,OAAIT,IAoBtB,OANAU,EAAAA,UAAU,KACJJ,EAAeK,SAAWX,GAZA,CAACY,cAC/B,MAAMC,EAAUD,EAAQE,cAClBC,EAAiB,OAAAC,EAAAJ,EAAQE,oBAAR,EAAAE,EAAuBF,iBACT,MAAAC,OAAA,EAAAA,EAAgBE,MAAMC,aAGzD,OAAAC,EAAA,MAAAJ,OAAA,EAAAA,EAAgBK,WAAhBD,EAAAE,KAAAN,EAA2B,EAAGH,EAAQU,YAAa,MAAAP,OAAA,EAAAA,EAAgBQ,eAAgB,GAAK,IAE1F,OAAAC,EAAA,MAAAX,OAAA,EAAAA,EAASO,WAATI,EAAAH,KAAAR,EAAoB,EAAGD,EAAQU,YAAa,MAAAT,OAAA,EAAAA,EAASU,eAAgB,GAAK,IAKxEE,CAAwBnB,EAAeK,UAExC,CAACX,EAAUM,IAGZV,EAAA8B,cAACC,EAAAA,OAAA,CACCxB,IAAKG,EACLsB,WAAY5B,EACZ6B,6BAA2B,EAC3B5B,UAAWM,KACPL"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useRef, useEffect } from "react";
|
|
2
2
|
import { Option } from "../SingleSelect/Option.es.js";
|
|
3
3
|
import classes from "./MultiSelect.module.scss.es.js";
|
|
4
|
+
import { classNames } from "../../../../util/helper.es.js";
|
|
4
5
|
const MultiOptionComponent = ({ fixed: _fixed, hasFocus, className, ...rest }, ref) => {
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const fallbackRef = useRef(null);
|
|
7
|
+
const innerOptionRef = ref || fallbackRef;
|
|
8
|
+
const additionalClasses = classNames(className, {
|
|
9
|
+
[classes["focus"]]: hasFocus
|
|
10
|
+
});
|
|
9
11
|
const scrollToSelectedElement = (element) => {
|
|
10
12
|
var _a, _b, _c;
|
|
11
13
|
const listbox = element.parentElement;
|
|
@@ -27,7 +29,7 @@ const MultiOptionComponent = ({ fixed: _fixed, hasFocus, className, ...rest }, r
|
|
|
27
29
|
ref: innerOptionRef,
|
|
28
30
|
isSelected: hasFocus,
|
|
29
31
|
disableDefaultSelectedStyle: true,
|
|
30
|
-
className: additionalClasses
|
|
32
|
+
className: additionalClasses,
|
|
31
33
|
...rest
|
|
32
34
|
}
|
|
33
35
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOption.es.js","sources":["../../../../../src/components/Form/Select/MultiSelect/MultiOption.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ForwardRefRenderFunction, RefObject,
|
|
1
|
+
{"version":3,"file":"MultiOption.es.js","sources":["../../../../../src/components/Form/Select/MultiSelect/MultiOption.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ForwardRefRenderFunction, RefObject, useEffect, useRef } from \"react\";\nimport { Props as SelectOptionProps, Option as SelectOption } from \"../SingleSelect/Option\";\n\nimport classes from \"./MultiSelect.module.scss\";\nimport { classNames } from \"../../../../util/helper\";\n\nexport interface Props extends SelectOptionProps {\n fixed?: boolean;\n}\n\nconst MultiOptionComponent: ForwardRefRenderFunction<HTMLLIElement, Props> = (\n { fixed: _fixed, hasFocus, className, ...rest }: Props,\n ref\n) => {\n /** Must be `useRef`, not `createRef` — a fresh ref every render made the scroll-into-view\n * effect below re-fire on unrelated re-renders, resetting scroll even when focus hadn't changed. */\n const fallbackRef = useRef<HTMLLIElement>(null);\n const innerOptionRef = (ref as RefObject<HTMLLIElement>) || fallbackRef;\n\n const additionalClasses = classNames(className, {\n [classes[\"focus\"]]: hasFocus\n });\n\n const scrollToSelectedElement = (element: HTMLLIElement) => {\n const listbox = element.parentElement;\n const listboxWrapper = element.parentElement?.parentElement;\n const isListboxWrapperScrollable = !!listboxWrapper?.style.maxHeight;\n\n if (isListboxWrapperScrollable) {\n listboxWrapper?.scrollTo?.(0, element.offsetTop - (listboxWrapper?.offsetHeight ?? 1) / 2);\n }\n listbox?.scrollTo?.(0, element.offsetTop - (listbox?.offsetHeight ?? 1) / 2);\n };\n\n useEffect(() => {\n if (innerOptionRef.current && hasFocus) {\n scrollToSelectedElement(innerOptionRef.current);\n }\n }, [hasFocus, innerOptionRef]);\n\n return (\n <SelectOption\n ref={innerOptionRef}\n isSelected={hasFocus}\n disableDefaultSelectedStyle\n className={additionalClasses}\n {...rest}\n />\n );\n};\n\nexport const MultiOption = React.forwardRef(MultiOptionComponent);\n"],"names":["SelectOption"],"mappings":";;;;AA0BA,MAAM,uBAAuE,CAC3E,EAAE,OAAO,QAAQ,UAAU,WAAW,GAAG,KAAA,GACzC,QACG;AAGH,QAAM,cAAc,OAAsB,IAAI;AAC9C,QAAM,iBAAkB,OAAoC;AAE5D,QAAM,oBAAoB,WAAW,WAAW;AAAA,IAC9C,CAAC,QAAQ,OAAO,CAAC,GAAG;AAAA,EAAA,CACrB;AAED,QAAM,0BAA0B,CAAC,YAA2B;;AAC1D,UAAM,UAAU,QAAQ;AACxB,UAAM,kBAAiB,aAAQ,kBAAR,mBAAuB;AAC9C,UAAM,6BAA6B,CAAC,EAAC,iDAAgB,MAAM;AAE3D,QAAI,4BAA4B;AAC9B,6DAAgB,aAAhB,wCAA2B,GAAG,QAAQ,cAAa,iDAAgB,iBAAgB,KAAK;AAAA,IAC1F;AACA,6CAAS,aAAT,iCAAoB,GAAG,QAAQ,cAAa,mCAAS,iBAAgB,KAAK;AAAA,EAC5E;AAEA,YAAU,MAAM;AACd,QAAI,eAAe,WAAW,UAAU;AACtC,8BAAwB,eAAe,OAAO;AAAA,IAChD;AAAA,EACF,GAAG,CAAC,UAAU,cAAc,CAAC;AAE7B,SACE,sBAAA;AAAA,IAACA;AAAAA,IAAA;AAAA,MACC,KAAK;AAAA,MACL,YAAY;AAAA,MACZ,6BAA2B;AAAA,MAC3B,WAAW;AAAA,MACV,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEO,MAAM,cAAc,MAAM,WAAW,oBAAoB;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MultiSelect.module.scss.cjs.js"),t=require("react"),s=require("react-dom"),r=require("../../../../hooks/useClickOutside.cjs.js"),n=require("../../../../hooks/useDetermineStatusIcon.cjs.js"),l=require("../../../../hooks/useGetDomRoot.cjs.js"),a=require("../../../../readyclasses.module.scss.cjs.js"),o=require("../../../../util/helper.cjs.js"),c=require("../../../Icon/Icon.cjs.js"),i=require("../Select.interfaces.cjs.js"),u=require("../useAddNewBtn.cjs.js"),d=require("../useSelectPositionList.cjs.js"),p=require("./SelectButton.cjs.js"),m=require("./SelectedOptions.cjs.js"),f=require("./useArrowNavigation.cjs.js"),h=require("./useSearch.cjs.js"),v=require("../../../withReadOnly.cjs.js"),b=(e,t)=>`${e}_option${t}`,w=e=>`${e}_listbox`,y=e=>t.Children.toArray(e).reduce((e,s)=>"string"==typeof s||"number"==typeof s?e+s:t.isValidElement(s)&&s.props.children?e+y(s.props.children):e,""),S=(e,t)=>e.filter(e=>"object"==typeof e&&"props"in e&&!t.some(t=>t.value===e.props.value)),C=(e,s)=>t.Children.map(e,(e,r)=>t.cloneElement(e,{onFocusChange:s.onFocusChange,onOptionSelect:s.onOptionSelect,isSearching:!1,selectOpened:s.selectOpened,childIndex:r,hasFocus:s.focusedSelectItem===r,shouldClick:s.shouldClick,id:b(s.multiSelectId,r)})),E=v.withReadOnly(t.forwardRef(({id:v,children:E,name:j,disabled:g=!1,labeledBy:x,placeholder:I,describedBy:R,selectButtonProps:N={},className:O,error:q=!1,success:B=!1,value:k,clearLabel:L="Clear selection",noResultsLabel:P="No results found",onChange:$,addNew:A,search:F={enabled:!0,renderThreshold:0,searchPlaceholder:"Search item"},isReadOnlyView:D,domRoot:z,...M},T)=>{const V=t.useRef(v??o.generateID(20)),[H,G]=t.useState(!1),[_,K]=t.useState([]),U=t.useRef(null),J=t.useRef(null),Q=t.useRef(null),W=t.useRef(null),{root:X}=l.useGetDomRoot(z,U),[Y,Z]=t.useState(0),[ee,te]=t.useState(!1),[se,re]=t.useState(!1),[ne,le]=t.useState(t.Children.count(E)-_.length),{filter:ae,renderSearch:oe,searchInputRef:ce,resetSearchState:ie,searchVisible:ue}=h.useSearch({selectId:V.current,expanded:H,search:F,searchInputClassName:e.default["select-search"],optionsCount:ne,focusedSelectItem:Y,setFocusedSelectItem:Z,describedBy:R,error:q,getOptionId:b,getListboxId:w}),{addBtnRef:de,addNewBtnOptionsContainerClassName:pe,renderAddNew:me}=u.useAddNewBtn({id:b(V.current,ne),addNew:A,filter:ae,focusedSelectItem:Y,optionsCount:ne,searchInputRef:ce,shouldClick:ee,onClickCallback:()=>{te(!1),ie()}}),fe=T||t.createRef(),he=e=>{Z(e)},ve=e=>{(e=>{if("true"!==(null==e?void 0:e.getAttribute("aria-disabled"))){if(fe.current&&e){const t=e.dataset.value,s=[...fe.current.options],r=s.filter(e=>e.selected).map(e=>e.value);s.forEach(e=>{(e.value===t||r.includes(e.value))&&(e.selected=!0)}),fe.current.dispatchEvent(new Event("change",{bubbles:!0}))}G(!1),ie()}})(e.current),G(!1),te(!1)},be=t.useRef(null),we=!!M["data-readonlyview"]||D,{onArrowNavigation:ye}=f.useArrowNavigation({expanded:H,setExpanded:G,setFocusedSelectItem:Z,childrenCount:ne,setShouldClick:te,addBtnRef:de,searchInputRef:ce,customSelectButtonRef:be,focusedOptionId:b(V.current,Y),onClose:ie,isReadOnlyView:we}),{listPosition:Se,opacity:Ce,optionsListMaxHeight:Ee,setListPosition:je,setOpacity:ge}=d.useSelectPositionList({expanded:H,optionListReference:Q,containerReference:J,addBtnRef:de}),xe=n.useDetermineStatusIcon({success:B,error:q});t.useEffect(()=>{H&&ce.current&&(re(!0),ce.current.focus()),!H&&be.current&&se&&(re(!1),be.current.focus())},[H,be.current,se,ce.current]),t.useEffect(()=>{var e;(e=>{const s=t.Children.map(E,e=>e),r=e.map(e=>{const t=s.find(t=>t.props.value===e);return{value:e,label:null==t?void 0:t.props.children,fixed:null==t?void 0:t.props.fixed}});K(r)})(k),e=k,fe.current&&[...fe.current.options].forEach(t=>{e.includes(t.value)?t.selected=!0:t.selected=!1})},[k]),r.useClickOutside(U,e=>{var t;H&&((null==(t=W.current)?void 0:t.contains(e.target))||(G(!1),je(i.Position.Below),ge(0)))},[H]);const Ie=[];H&&Ie.push(e.default.expanded),q&&Ie.push(e.default.error),g&&Ie.push(e.default.disabled),O&&Ie.push(O),B&&Ie.push(e.default.success);const Re=()=>{M["data-readonlyview"]||D||(G(e=>!e),te(!1))};t.useEffect(()=>{if(!H)return;const e=J.current,t=W.current;if(!e||!t)return;let s=null;const r=()=>{if(!e||!t)return;const s=e.getBoundingClientRect(),r=s.left,n=Se===i.Position.Below?s.bottom:s.top;t.style.position="fixed",t.style.zIndex="1000",t.style.left="0",t.style.top="0",t.style.width=`${s.width}px`,t.style.transform=`translate3d(${r}px, ${n}px, 0)`},n=()=>{null==s&&(s=globalThis.requestAnimationFrame(()=>{s=null,r()}))};r();const l=()=>n(),a=()=>n();window.addEventListener("scroll",l,{passive:!0,capture:!0}),window.addEventListener("resize",a);const o=new ResizeObserver(()=>{n()});return o.observe(e),()=>{window.removeEventListener("scroll",l,!0),window.removeEventListener("resize",a),o.disconnect(),null!=s&&globalThis.cancelAnimationFrame(s)}},[H,Se]);const Ne=t.createElement("div",{className:`list-wrapper-container ${e.default["list-wrapper-container"]}`},t.createElement("div",{ref:Q,className:`list-wrapper ${e.default["list-wrapper"]}`,style:{display:H?"block":"none",opacity:Ce,maxHeight:Ee.wrapper,pointerEvents:H?"auto":"none",top:Se===i.Position.Below?"4px":void 0,bottom:Se===i.Position.Above?"4px":void 0}},t.createElement("ul",{id:w(V.current),className:pe,role:"listbox","aria-multiselectable":"true",style:{maxHeight:Ee.list}},(()=>{const s={onFocusChange:he,onOptionSelect:ve,selectOpened:H,focusedSelectItem:Y,shouldClick:ee,multiSelectId:V.current};let r;if(""!==ae){const e=t.Children.toArray(E).filter(e=>y(e.props.children).toLowerCase().includes(ae.toLowerCase()));r=C(S(e,_),s)}else r=C(S(t.Children.toArray(E),_),s);return ne!==r.length&&le(r.length),0===r.length?t.createElement("li",{className:e.default["no-results"]},P):r})()),me()));return t.createElement(t.Fragment,null,t.createElement("div",{ref:U},t.createElement("select",{...o.omitProps(M,/^data-/),tabIndex:-1,multiple:!0,"aria-hidden":"true",ref:fe,name:j,onChange:e=>{null==$||$(e)},className:a.default["sr-only"]},t.createElement("option",{value:""}),t.Children.map(E,e=>t.createElement("option",{value:e.props.value}))),t.createElement("div",{...o.pickProps(M,/^data-/),id:V.current,ref:J,onKeyDown:ye,className:`custom-select ${e.default.select} ${Ie.join(" ")}`},t.createElement("div",{className:`${e.default["custom-select"]} ${Ie.join(" ")} `,style:{display:"flex"}},t.createElement("div",{className:e.default["display-container"],"data-display":!0},t.createElement(p.SelectButton,{...N,onClick:Re,name:j,ref:be,disabled:g,"aria-disabled":g,role:"combobox","aria-invalid":q,"aria-expanded":H,"aria-controls":w(V.current),"aria-haspopup":"listbox","aria-labelledby":x,"aria-describedby":R}),0===(null==k?void 0:k.length)&&I&&t.createElement("span",{className:e.default.placeholder},I),(null==k?void 0:k.length)>0&&t.createElement(m.SelectedOptions,{disabled:g,display:_,onClick:Re,onRemove:e=>{fe.current&&([...fe.current.options].find(t=>t.value===e).selected=!1,fe.current.dispatchEvent(new Event("change",{bubbles:!0})))}}),ue&&oe()),t.createElement("div",{className:e.default.status},xe||(H?t.createElement(c.Icon,{className:e.default["chevron-icon"],icon:c.Icons.ChevronUp}):t.createElement(c.Icon,{className:e.default["chevron-icon"],icon:c.Icons.ChevronDown})))))),s.createPortal(t.createElement("div",{ref:W,className:`${e.default.select} ${Ie.join(" ")}`},Ne),X))}));exports.MultiSelect=E;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MultiSelect.module.scss.cjs.js"),t=require("react"),r=require("react-dom"),n=require("../../../../hooks/useClickOutside.cjs.js"),l=require("../../../../hooks/useDetermineStatusIcon.cjs.js"),s=require("../../../../hooks/useGetDomRoot.cjs.js"),a=require("../../../../readyclasses.module.scss.cjs.js"),o=require("../../../../util/helper.cjs.js"),c=require("../../../Icon/Icon.cjs.js"),i=require("../../../Spinner/Spinner.cjs.js"),u=require("../Select.interfaces.cjs.js"),d=require("../useAddNewBtn.cjs.js"),p=require("../useSelectPositionList.cjs.js"),m=require("./SelectButton.cjs.js"),f=require("./SelectedOptions.cjs.js"),h=require("./useArrowNavigation.cjs.js"),v=require("./useSearch.cjs.js"),y=require("../../../withReadOnly.cjs.js"),b=(e,t)=>`${e}_option${t}`,E=e=>`${e}_listbox`,g=e=>t.Children.toArray(e).reduce((e,r)=>"string"==typeof r||"number"==typeof r?e+r:t.isValidElement(r)&&r.props.children?e+g(r.props.children):e,""),S=(e,t)=>e.filter(e=>"object"==typeof e&&"props"in e&&!t.some(t=>t.value===e.props.value)),w=(e,r)=>t.Children.map(e,(e,n)=>t.cloneElement(e,{onFocusChange:r.onFocusChange,onOptionSelect:r.onOptionSelect,isSearching:!1,selectOpened:r.selectOpened,childIndex:n,hasFocus:r.focusedSelectItem===n,shouldClick:r.shouldClick,id:b(r.multiSelectId,n)})),C=y.withReadOnly(t.forwardRef(({id:y,children:C,name:R,disabled:N=!1,labeledBy:j,placeholder:I,describedBy:x,selectButtonProps:L={},className:O,error:k=!1,success:q=!1,value:A,clearLabel:B="Clear selection",noResultsLabel:P="No results found",onChange:$,addNew:F,search:D={enabled:!0,renderThreshold:0},isReadOnlyView:M,domRoot:z,selectedOptions:T,..._},V)=>{var H,G,K,U;const J=t.useRef(y??o.generateID(20)),[Q,W]=t.useState(!1),[X,Y]=t.useState([]),Z=t.useRef(null),ee=t.useRef(null),te=t.useRef(null),re=t.useRef(null),ne=t.useRef(null),le=t.useRef(null),se=t.useRef(!1),ae=t.useRef(!1),{root:oe}=s.useGetDomRoot(z,Z),[ce,ie]=t.useState(0),[ue,de]=t.useState(!1),[pe,me]=t.useState(!1),[fe,he]=t.useState(t.Children.count(C)-X.length),{filter:ve,renderSearch:ye,searchInputRef:be,resetSearchState:Ee,searchVisible:ge,isAsync:Se,isAsyncPending:we,asyncMinSearchLength:Ce}=v.useSearch({selectId:J.current,expanded:Q,search:D,searchInputClassName:e.default["select-search"],optionsCount:fe,focusedSelectItem:ce,setFocusedSelectItem:ie,describedBy:x,error:k,getOptionId:b,getListboxId:E,placeholder:I}),{addBtnRef:Re,addNewBtnOptionsContainerClassName:Ne,renderAddNew:je}=d.useAddNewBtn({id:b(J.current,fe),addNew:F,filter:ve,focusedSelectItem:ce,optionsCount:fe,searchInputRef:be,shouldClick:ue,onClickCallback:()=>{de(!1),Ee()}}),Ie=V||t.createRef(),xe=e=>{ie(e)},Le=e=>{(e=>{var t;if("true"!==(null==e?void 0:e.getAttribute("aria-disabled"))){if(Ie.current&&e){const t=e.dataset.value,r=[...Ie.current.options],n=r.filter(e=>e.selected).map(e=>e.value);r.forEach(e=>{(e.value===t||n.includes(e.value))&&(e.selected=!0)}),Ie.current.dispatchEvent(new Event("change",{bubbles:!0}))}if(Se)return Ee(),void(null==(t=be.current)||t.focus());W(!1),Ee()}})(e.current),de(!1),Se||W(!1)},Oe=t.useRef(null),ke=!!_["data-readonlyview"]||M,{onArrowNavigation:qe}=h.useArrowNavigation({expanded:Q,setExpanded:W,setFocusedSelectItem:ie,childrenCount:fe,setShouldClick:de,addBtnRef:Re,searchInputRef:be,customSelectButtonRef:Oe,focusedOptionId:b(J.current,ce),onClose:Ee,isReadOnlyView:ke,listRef:ne,isAsync:Se}),{listPosition:Ae,opacity:Be,optionsListMaxHeight:Pe,setListPosition:$e,setOpacity:Fe}=p.useSelectPositionList({expanded:Q,optionListReference:te,containerReference:ee,addBtnRef:Re}),De=!!(null==(H=null==D?void 0:D.async)?void 0:H.loading)||we;ae.current=De;const Me=null==(G=null==D?void 0:D.async)?void 0:G.onLoadMore,ze=Se&&!!Me,Te=Se&&Ce>0&&0===ve.length,_e=S(t.Children.toArray(C),X).length,Ve=ze&&!!(null==(K=null==D?void 0:D.async)?void 0:K.hasMore)&&!(null==(U=null==D?void 0:D.async)?void 0:U.errorLabel)&&ve.length>=Ce&&_e>0,He=e=>{fe!==e&&he(e)},Ge=l.useDetermineStatusIcon({success:q,error:k});t.useEffect(()=>{Q&&be.current&&(me(!0),be.current.focus()),!Q&&Oe.current&&pe&&(me(!1),Oe.current.focus())},[Q,Oe.current,pe,be.current]),t.useEffect(()=>{(e=>{const r=t.Children.map(C,e=>e),n=e.map(e=>{const t=r.find(t=>t.props.value===e);if(t)return{value:e,label:t.props.children,fixed:t.props.fixed};const n=null==T?void 0:T.find(t=>t.value===e);return{value:e,label:(null==n?void 0:n.label)??"",fixed:void 0}});Y(n)})(A)},[A,C,T]),t.useEffect(()=>{var e;e=A,Ie.current&&[...Ie.current.options].forEach(t=>{e.includes(t.value)?t.selected=!0:t.selected=!1})},[A,C]),t.useEffect(()=>{if(!Ve||!Q)return void(se.current=!1);const e=le.current;if(!e||"undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver(([e])=>{e.isIntersecting?se.current||ae.current||(se.current=!0,null==Me||Me()):se.current=!1},{root:ne.current,threshold:0});return t.observe(e),()=>t.disconnect()},[Ve,Q,Me]),n.useClickOutside(Z,e=>{Q&&(re.current&&e.composedPath().includes(re.current)||(W(!1),$e(u.Position.Below),Fe(0)))},[Q]);const Ke=o.classNames(O,{[e.default.expanded]:Q,[e.default.error]:k,[e.default.disabled]:N,[e.default.success]:q}),Ue=()=>{_["data-readonlyview"]||M||(W(e=>!e),de(!1))};t.useEffect(()=>{if(!Q)return;const e=ee.current,t=re.current;if(!e||!t)return;let r=null;const n=()=>{if(!e||!t)return;const r=e.getBoundingClientRect(),n=r.left,l=Ae===u.Position.Below?r.bottom:r.top;t.style.position="fixed",t.style.zIndex="1000",t.style.left="0",t.style.top="0",t.style.width=`${r.width}px`,t.style.transform=`translate3d(${n}px, ${l}px, 0)`},l=()=>{null==r&&(r=globalThis.requestAnimationFrame(()=>{r=null,n()}))};n();const s=()=>l(),a=()=>l();window.addEventListener("scroll",s,{passive:!0,capture:!0}),window.addEventListener("resize",a);const o=new ResizeObserver(()=>{l()});return o.observe(e),()=>{window.removeEventListener("scroll",s,!0),window.removeEventListener("resize",a),o.disconnect(),null!=r&&globalThis.cancelAnimationFrame(r)}},[Q,Ae]);const Je=t.createElement("div",{className:`list-wrapper-container ${e.default["list-wrapper-container"]}`},t.createElement("div",{ref:te,className:`list-wrapper ${e.default["list-wrapper"]}`,style:{display:Q&&!Te?"block":"none",opacity:Be,maxHeight:Pe.wrapper,pointerEvents:Q?"auto":"none",top:Ae===u.Position.Below?"4px":void 0,bottom:Ae===u.Position.Above?"4px":void 0}},t.createElement("ul",{ref:ne,id:E(J.current),className:Ne,role:"listbox","aria-multiselectable":"true",style:{maxHeight:Pe.list},"aria-busy":Se?De:void 0},(()=>{const r={onFocusChange:xe,onOptionSelect:Le,selectOpened:Q,focusedSelectItem:ce,shouldClick:ue,multiSelectId:J.current};return Se?(r=>{const n=null==D?void 0:D.async;if(ve.length<Ce)return He(0),t.createElement("li",{className:e.default["async-status"]},(null==n?void 0:n.idleLabel)??"Type to search");if(null==n?void 0:n.errorLabel)return He(0),t.createElement("li",{className:e.default["async-status"]},n.errorLabel,n.onRetry&&t.createElement("button",{type:"button",className:e.default["retry-button"],onClick:n.onRetry},"Retry"));const l=S(t.Children.toArray(C),X);return De?ze&&l.length>0?(He(l.length),[...w(l,r),t.createElement("li",{key:"__multiselect-load-more-status__","data-testid":"multiselect-load-more-status",className:e.default["async-status"]},t.createElement(i.Spinner,{size:16}))]):(He(0),t.createElement("li",{className:e.default["async-status"]},t.createElement(i.Spinner,{size:20}))):(He(l.length),0===l.length?t.createElement("li",{className:e.default["no-results"]},P):w(l,r))})(r):(r=>{let n;if(""!==ve){const e=t.Children.toArray(C).filter(e=>g(e.props.children).toLowerCase().includes(ve.toLowerCase()));n=w(S(e,X),r)}else n=w(S(t.Children.toArray(C),X),r);return He(n.length),0===n.length?t.createElement("li",{className:e.default["no-results"]},P):n})(r)})(),Ve&&t.createElement("li",{ref:le,"aria-hidden":"true","data-testid":"multiselect-load-more-sentinel",className:e.default["load-more-sentinel"]})),Se&&t.createElement("output",{"aria-live":"polite",className:a.default["sr-only"]},(()=>{const e=null==D?void 0:D.async;return e?ve.length<Ce?e.idleLabel??"Type to search":e.errorLabel?e.errorLabel:De?"Loading":0===_e?P:`${_e} results`:""})()),je()));return t.createElement(t.Fragment,null,t.createElement("div",{ref:Z},t.createElement("select",{...o.omitProps(_,/^data-/),tabIndex:-1,multiple:!0,"aria-hidden":"true",ref:Ie,name:R,onChange:e=>{null==$||$(e)},className:a.default["sr-only"]},t.createElement("option",{value:""}),null==A?void 0:A.filter(e=>!t.Children.toArray(C).some(t=>t.props.value===e)).map(e=>t.createElement("option",{key:e,value:e})),t.Children.map(C,e=>t.createElement("option",{value:e.props.value}))),t.createElement("div",{...o.pickProps(_,/^data-/),id:J.current,ref:ee,onKeyDown:qe,className:`custom-select ${e.default.select} ${Ke}`},t.createElement("div",{className:`${e.default["custom-select"]} ${Ke} `,style:{display:"flex"}},t.createElement("div",{className:e.default["display-container"],"data-display":!0},t.createElement(m.SelectButton,{...L,onClick:Ue,name:R,ref:Oe,disabled:N,"aria-disabled":N,role:"combobox","aria-invalid":k,"aria-expanded":Q,"aria-controls":E(J.current),"aria-haspopup":"listbox","aria-labelledby":j,"aria-describedby":x}),0===(null==A?void 0:A.length)&&I&&t.createElement("span",{className:e.default.placeholder},I),(null==A?void 0:A.length)>0&&t.createElement(f.SelectedOptions,{disabled:N,display:X,onClick:Ue,onRemove:e=>{Ie.current&&([...Ie.current.options].find(t=>t.value===e).selected=!1,Ie.current.dispatchEvent(new Event("change",{bubbles:!0})))}}),ge&&ye()),t.createElement("div",{className:e.default.status},Ge||(Q?t.createElement(c.Icon,{className:e.default["chevron-icon"],icon:c.Icons.ChevronUp}):t.createElement(c.Icon,{className:e.default["chevron-icon"],icon:c.Icons.ChevronDown})))))),r.createPortal(t.createElement("div",{ref:re,className:`${e.default.select} ${Ke}`},Je),oe))}));exports.MultiSelect=C;
|
|
2
2
|
//# sourceMappingURL=MultiSelect.cjs.js.map
|