@itcase/ui 1.1.6 → 1.1.8
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/Accordion-CqPVnTKh.js +173 -0
- package/dist/Avatar-diLCwtnd.js +49 -0
- package/dist/Breadcrumbs-B79kOtMG.js +619 -0
- package/dist/Button-B7vbiqrJ.js +100 -0
- package/dist/ContextMenuItem-BPqsjmSA.js +204 -0
- package/dist/Divider-BlBwMHgl.js +45 -0
- package/dist/Dot-C3R1y59u.js +34 -0
- package/dist/DropdownItem-Dgf0LRhx.js +644 -0
- package/dist/FlexItem-DzNgFIa0.js +118 -0
- package/dist/GridRow-Cc-rz56R.js +158 -0
- package/dist/Group-fbVPmr8W.js +111 -0
- package/dist/Icon-Dn2eEZvb.js +128 -0
- package/dist/Link-ByBzBRDH.js +132 -0
- package/dist/ListItem-Cf8r3w8t.js +479 -0
- package/dist/ModalLoader-DJVKhIZR.js +374 -0
- package/dist/NotificationList-CJyEnxWw.js +38 -0
- package/dist/SearchResult-erxB06IL.js +530 -0
- package/dist/SelectField-CpQMWXaC.js +571 -0
- package/dist/SiteMenuButton-BFmti8pF.js +181 -0
- package/dist/TabGroup-CjmtgOMw.js +1071 -0
- package/dist/Text-BcGbRc14.js +75 -0
- package/dist/cjs/Accordion-DcZ9P5kP.js +182 -0
- package/dist/cjs/Avatar-DQ5fNpnO.js +55 -0
- package/dist/cjs/Breadcrumbs-HubY1qZQ.js +629 -0
- package/dist/cjs/Button-3GkRq8Pv.js +108 -0
- package/dist/cjs/ContextMenuItem-DmbSoGn1.js +213 -0
- package/dist/cjs/Divider-CIYsHYud.js +51 -0
- package/dist/cjs/Dot-vDSigHDs.js +40 -0
- package/dist/cjs/DropdownItem-Bl-Ghc_6.js +653 -0
- package/dist/cjs/FlexItem-BnORv6q3.js +125 -0
- package/dist/cjs/GridRow-mzs0CkNG.js +166 -0
- package/dist/cjs/Group-4zWTDvKx.js +118 -0
- package/dist/cjs/Icon-UBahY607.js +137 -0
- package/dist/cjs/Link-BoShjCEw.js +142 -0
- package/dist/cjs/ListItem-MrHApmF3.js +488 -0
- package/dist/cjs/ModalLoader-4mmV5G4E.js +384 -0
- package/dist/cjs/NotificationList-DnI8DqyE.js +46 -0
- package/dist/cjs/SearchResult-bTwR5A-g.js +540 -0
- package/dist/cjs/SelectField-BJTu7BXO.js +583 -0
- package/dist/cjs/SiteMenuButton-BGi0gR1z.js +190 -0
- package/dist/cjs/TabGroup-DIWmGIp2.js +1081 -0
- package/dist/cjs/Text-D7Aq1i5R.js +82 -0
- package/dist/cjs/components/Accordion/Accordion.d.ts +8 -0
- package/dist/cjs/components/Accordion/Accordion.interface.d.ts +68 -0
- package/dist/cjs/components/Accordion/AccordionItem.d.ts +8 -0
- package/dist/cjs/components/Accordion/index.d.ts +3 -0
- package/dist/cjs/components/Accordion.js +40 -0
- package/dist/cjs/components/Avatar/Avatar.d.ts +13 -0
- package/dist/cjs/components/Avatar/Avatar.interface.d.ts +44 -0
- package/dist/cjs/components/Avatar/index.d.ts +1 -0
- package/dist/cjs/components/Avatar.js +43 -0
- package/dist/cjs/components/Badge.js +206 -0
- package/dist/cjs/components/Breadcrumbs.js +43 -0
- package/dist/cjs/components/Button/Button.d.ts +5 -0
- package/dist/cjs/components/Button/Button.interface.d.ts +78 -0
- package/dist/cjs/components/Button/index.d.ts +1 -0
- package/dist/cjs/components/Button.js +41 -0
- package/dist/cjs/components/Caption.js +197 -0
- package/dist/cjs/components/Card.js +279 -0
- package/dist/cjs/components/Cell.js +422 -0
- package/dist/cjs/components/Checkbox.js +166 -0
- package/dist/cjs/components/Chips.js +393 -0
- package/dist/cjs/components/Choice.js +346 -0
- package/dist/cjs/components/Code.js +437 -0
- package/dist/cjs/components/ContextMenu.js +41 -0
- package/dist/cjs/components/CookiesWarning.js +180 -0
- package/dist/cjs/components/DadataHintField.js +1193 -0
- package/dist/cjs/components/DatePicker.js +14097 -0
- package/dist/cjs/components/Divider/Divider.d.ts +3 -0
- package/dist/cjs/components/Divider/Divider.interface.d.ts +28 -0
- package/dist/cjs/components/Divider/index.d.ts +1 -0
- package/dist/cjs/components/Divider.js +21 -0
- package/dist/cjs/components/Dot/Dot.d.ts +6 -0
- package/dist/cjs/components/Dot/Dot.interface.d.ts +26 -0
- package/dist/cjs/components/Dot/index.d.ts +1 -0
- package/dist/cjs/components/Dot.js +21 -0
- package/dist/cjs/components/Drawer.js +284 -0
- package/dist/cjs/components/Dropdown.js +30 -0
- package/dist/cjs/components/Flex/Flex.d.ts +8 -0
- package/dist/cjs/components/Flex/Flex.interface.d.ts +118 -0
- package/dist/cjs/components/Flex/FlexItem.d.ts +8 -0
- package/dist/cjs/components/Flex/index.d.ts +3 -0
- package/dist/cjs/components/Flex.js +22 -0
- package/dist/cjs/components/FormField.js +53 -0
- package/dist/cjs/components/Grid/Grid.d.ts +8 -0
- package/dist/cjs/components/Grid/Grid.interface.d.ts +147 -0
- package/dist/cjs/components/Grid/GridItem.d.ts +3 -0
- package/dist/cjs/components/Grid/GridRow.d.ts +8 -0
- package/dist/cjs/components/Grid/index.d.ts +4 -0
- package/dist/cjs/components/Grid.js +23 -0
- package/dist/cjs/components/Group/Group.d.ts +9 -0
- package/dist/cjs/components/Group/Group.interface.d.ts +51 -0
- package/dist/cjs/components/Group/index.d.ts +1 -0
- package/dist/cjs/components/Group.js +22 -0
- package/dist/cjs/components/Icon/Icon.d.ts +5 -0
- package/dist/cjs/components/Icon/Icon.interface.d.ts +100 -0
- package/dist/cjs/components/Icon/index.d.ts +1 -0
- package/dist/cjs/components/Icon.js +39 -0
- package/dist/cjs/components/Image.js +480 -0
- package/dist/cjs/components/Input.js +233 -0
- package/dist/cjs/components/InputMask.js +233 -0
- package/dist/cjs/components/InputPassword.js +255 -0
- package/dist/cjs/components/Label.js +643 -0
- package/dist/cjs/components/LanguageSelector.js +125 -0
- package/dist/cjs/components/Link/Link.d.ts +11 -0
- package/dist/cjs/components/Link/Link.interface.d.ts +57 -0
- package/dist/cjs/components/Link/index.d.ts +1 -0
- package/dist/cjs/components/Link.js +23 -0
- package/dist/cjs/components/List.js +30 -0
- package/dist/cjs/components/Loader.js +156 -0
- package/dist/cjs/components/Logo.js +175 -0
- package/dist/cjs/components/Menu.js +196 -0
- package/dist/cjs/components/MenuItem.js +680 -0
- package/dist/cjs/components/Modal.js +28 -0
- package/dist/cjs/components/Notification/Notification.interface.d.ts +49 -0
- package/dist/cjs/components/Notification/NotificationItem.d.ts +10 -0
- package/dist/cjs/components/Notification/NotificationList.d.ts +3 -0
- package/dist/cjs/components/Notification/index.d.ts +3 -0
- package/dist/cjs/components/Notification.js +36 -0
- package/dist/cjs/components/Overlay.js +197 -0
- package/dist/cjs/components/Page.js +422 -0
- package/dist/cjs/components/Pagination.js +371 -0
- package/dist/cjs/components/Radio.js +267 -0
- package/dist/{components/Background.js → cjs/components/RangeSlider.js} +105 -74
- package/dist/cjs/components/Response.js +245 -0
- package/dist/cjs/components/ScrollOnDrag.js +214 -0
- package/dist/cjs/components/Scrollbar.js +71 -0
- package/dist/cjs/components/Search.js +43 -0
- package/dist/cjs/components/Segmented.js +235 -0
- package/dist/cjs/components/Select.js +8531 -0
- package/dist/cjs/components/SiteMenu.js +40 -0
- package/dist/cjs/components/Swiper.js +5655 -0
- package/dist/cjs/components/Switch.js +105 -0
- package/dist/cjs/components/Tab.js +42 -0
- package/dist/cjs/components/Text/Text.d.ts +9 -0
- package/dist/cjs/components/Text/Text.interface.d.ts +53 -0
- package/dist/cjs/components/Text/index.d.ts +1 -0
- package/dist/cjs/components/Text.js +22 -0
- package/dist/cjs/components/Textarea.js +212 -0
- package/dist/cjs/components/Tile.js +568 -0
- package/dist/cjs/components/Title.js +400 -0
- package/dist/cjs/components/Tooltip.js +451 -0
- package/dist/cjs/components/Video.js +175 -0
- package/dist/cjs/components/Wrapper.js +438 -0
- package/dist/cjs/components/index.d.ts +58 -0
- package/dist/cjs/components.js +234 -0
- package/dist/cjs/constants/componentProps/align.js +7 -0
- package/dist/cjs/constants/componentProps/alignDirection.js +7 -0
- package/dist/cjs/constants/componentProps/alignment.js +7 -0
- package/dist/cjs/constants/componentProps/borderColor.js +7 -0
- package/dist/cjs/constants/componentProps/borderColorHover.js +7 -0
- package/dist/cjs/constants/componentProps/borderType.js +7 -0
- package/dist/cjs/constants/componentProps/borderWidth.js +9 -0
- package/dist/cjs/constants/componentProps/captionPosition.js +7 -0
- package/dist/cjs/constants/componentProps/direction.js +7 -0
- package/dist/cjs/constants/componentProps/emojiSize.js +9 -0
- package/dist/cjs/constants/componentProps/fill.js +7 -0
- package/dist/cjs/constants/componentProps/fillGradient.js +7 -0
- package/dist/cjs/constants/componentProps/fillHover.js +7 -0
- package/dist/cjs/constants/componentProps/fillType.js +7 -0
- package/dist/cjs/constants/componentProps/flexAlign.js +7 -0
- package/dist/cjs/constants/componentProps/flexJustifyContent.js +7 -0
- package/dist/cjs/constants/componentProps/flexWrap.js +7 -0
- package/dist/cjs/constants/componentProps/gridAlign.js +7 -0
- package/dist/cjs/constants/componentProps/gridAlignSelf.js +7 -0
- package/dist/cjs/constants/componentProps/gridJustifyItems.js +7 -0
- package/dist/cjs/constants/componentProps/gridJustifySelf.js +7 -0
- package/dist/cjs/constants/componentProps/height.js +7 -0
- package/dist/cjs/constants/componentProps/horizontalContentAlign.js +7 -0
- package/dist/cjs/constants/componentProps/horizontalResizeMode.js +7 -0
- package/dist/cjs/constants/componentProps/iconFillSize.js +9 -0
- package/dist/cjs/constants/componentProps/iconSize.js +9 -0
- package/dist/cjs/constants/componentProps/itemColor.js +7 -0
- package/dist/cjs/constants/componentProps/position.js +7 -0
- package/dist/cjs/constants/componentProps/resizeMode.js +7 -0
- package/dist/cjs/constants/componentProps/shape.js +7 -0
- package/dist/cjs/constants/componentProps/size.js +7 -0
- package/dist/cjs/constants/componentProps/sizeInterface.js +7 -0
- package/dist/cjs/constants/componentProps/sizePX.js +9 -0
- package/dist/cjs/constants/componentProps/stacking.js +7 -0
- package/dist/cjs/constants/componentProps/state.js +7 -0
- package/dist/cjs/constants/componentProps/strokeColor.js +7 -0
- package/dist/cjs/constants/componentProps/textAlign.js +7 -0
- package/dist/cjs/constants/componentProps/textColor.js +7 -0
- package/dist/cjs/constants/componentProps/textColorActive.js +7 -0
- package/dist/cjs/constants/componentProps/textColorHover.js +7 -0
- package/dist/cjs/constants/componentProps/textGradient.js +7 -0
- package/dist/cjs/constants/componentProps/textSize.js +7 -0
- package/dist/cjs/constants/componentProps/textStyle.js +7 -0
- package/dist/cjs/constants/componentProps/textTag.js +7 -0
- package/dist/cjs/constants/componentProps/textWeight.js +9 -0
- package/dist/cjs/constants/componentProps/textWrap.js +7 -0
- package/dist/cjs/constants/componentProps/titleSize.js +7 -0
- package/dist/cjs/constants/componentProps/type.js +7 -0
- package/dist/cjs/constants/componentProps/underline.js +7 -0
- package/dist/cjs/constants/componentProps/verticalContentAlign.js +7 -0
- package/dist/cjs/constants/componentProps/verticalResizeMode.js +7 -0
- package/dist/cjs/constants/componentProps/width.js +7 -0
- package/dist/cjs/constants/componentProps/wrap.js +7 -0
- package/dist/cjs/constants.js +111 -0
- package/dist/cjs/context/Notifications.js +123 -0
- package/dist/cjs/context/UIContext.js +57 -0
- package/dist/cjs/context/index.d.ts +2 -0
- package/dist/cjs/hooks/index.d.ts +3 -0
- package/dist/cjs/hooks/styleAttributes.interface.d.ts +143 -0
- package/dist/cjs/hooks/styleAttributes.js +39 -0
- package/dist/cjs/hooks/useDeviceTargetClass.js +61 -0
- package/dist/cjs/hooks/useMediaQueries.js +139 -0
- package/dist/cjs/hooks/useStyles.js +135 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/jsx-runtime-BCmQOGxJ.js +1363 -0
- package/dist/cjs/types/componentProps/align.d.ts +1 -0
- package/dist/cjs/types/componentProps/alignDirection.d.ts +1 -0
- package/dist/cjs/types/componentProps/alignment.d.ts +1 -0
- package/dist/cjs/types/componentProps/appearanceKeys.d.ts +1 -0
- package/dist/cjs/types/componentProps/borderColor.d.ts +1 -0
- package/dist/cjs/types/componentProps/borderColorHover.d.ts +1 -0
- package/dist/cjs/types/componentProps/borderType.d.ts +1 -0
- package/dist/cjs/types/componentProps/borderWidth.d.ts +1 -0
- package/dist/cjs/types/componentProps/captionPosition.d.ts +1 -0
- package/dist/cjs/types/componentProps/direction.d.ts +1 -0
- package/dist/cjs/types/componentProps/elevation.d.ts +1 -0
- package/dist/cjs/types/componentProps/emojiSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/fill.d.ts +1 -0
- package/dist/cjs/types/componentProps/fillGradient.d.ts +1 -0
- package/dist/cjs/types/componentProps/fillHover.d.ts +1 -0
- package/dist/cjs/types/componentProps/fillType.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexGrow.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexJustifyContent.d.ts +1 -0
- package/dist/cjs/types/componentProps/flexWrap.d.ts +1 -0
- package/dist/cjs/types/componentProps/gridAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/gridAlignSelf.d.ts +1 -0
- package/dist/cjs/types/componentProps/gridJustifyItems.d.ts +1 -0
- package/dist/cjs/types/componentProps/gridJustifySelf.d.ts +1 -0
- package/dist/cjs/types/componentProps/height.d.ts +1 -0
- package/dist/cjs/types/componentProps/horizontalContentAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/horizontalResizeMode.d.ts +1 -0
- package/dist/cjs/types/componentProps/iconFillSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/iconSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/itemColor.d.ts +1 -0
- package/dist/cjs/types/componentProps/justifyContent.d.ts +1 -0
- package/dist/cjs/types/componentProps/position.d.ts +1 -0
- package/dist/cjs/types/componentProps/resizeMode.d.ts +1 -0
- package/dist/cjs/types/componentProps/shape.d.ts +1 -0
- package/dist/cjs/types/componentProps/size.d.ts +1 -0
- package/dist/cjs/types/componentProps/sizeInterface.d.ts +1 -0
- package/dist/cjs/types/componentProps/sizePX.d.ts +1 -0
- package/dist/cjs/types/componentProps/stacking.d.ts +1 -0
- package/dist/cjs/types/componentProps/state.d.ts +1 -0
- package/dist/cjs/types/componentProps/strokeColor.d.ts +1 -0
- package/dist/cjs/types/componentProps/textAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/textColor.d.ts +1 -0
- package/dist/cjs/types/componentProps/textColorActive.d.ts +1 -0
- package/dist/cjs/types/componentProps/textColorHover.d.ts +1 -0
- package/dist/cjs/types/componentProps/textGradient.d.ts +1 -0
- package/dist/cjs/types/componentProps/textSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/textStyle.d.ts +1 -0
- package/dist/cjs/types/componentProps/textTag.d.ts +1 -0
- package/dist/cjs/types/componentProps/textWeight.d.ts +1 -0
- package/dist/cjs/types/componentProps/textWrap.d.ts +1 -0
- package/dist/cjs/types/componentProps/titleSize.d.ts +1 -0
- package/dist/cjs/types/componentProps/type.d.ts +1 -0
- package/dist/cjs/types/componentProps/underline.d.ts +1 -0
- package/dist/cjs/types/componentProps/verticalContentAlign.d.ts +1 -0
- package/dist/cjs/types/componentProps/verticalResizeMode.d.ts +1 -0
- package/dist/cjs/types/componentProps/width.d.ts +1 -0
- package/dist/cjs/types/componentProps/wrap.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +56 -0
- package/dist/components/Accordion/Accordion.d.ts +8 -0
- package/dist/components/Accordion/Accordion.interface.d.ts +68 -0
- package/dist/components/Accordion/AccordionItem.d.ts +8 -0
- package/dist/components/Accordion/index.d.ts +3 -0
- package/dist/components/Accordion.js +33 -697
- package/dist/components/Avatar/Avatar.d.ts +13 -0
- package/dist/components/Avatar/Avatar.interface.d.ts +44 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Avatar.js +37 -257
- package/dist/components/Badge.js +41 -56
- package/dist/components/Breadcrumbs.js +36 -656
- package/dist/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/Button.interface.d.ts +78 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button.js +34 -546
- package/dist/components/Caption.js +37 -45
- package/dist/components/Card.js +47 -60
- package/dist/components/Cell.js +83 -96
- package/dist/components/Checkbox.js +41 -56
- package/dist/components/Chips.js +65 -79
- package/dist/components/Choice.js +76 -91
- package/dist/components/Code.js +40 -48
- package/dist/components/ContextMenu.js +34 -246
- package/dist/components/CookiesWarning.js +55 -73
- package/dist/components/DadataHintField.js +55 -64
- package/dist/components/DatePicker.js +296 -327
- package/dist/components/Divider/Divider.d.ts +3 -0
- package/dist/components/Divider/Divider.interface.d.ts +28 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Divider.js +15 -257
- package/dist/components/Dot/Dot.d.ts +6 -0
- package/dist/components/Dot/Dot.interface.d.ts +26 -0
- package/dist/components/Dot/index.d.ts +1 -0
- package/dist/components/Dot.js +15 -226
- package/dist/components/Drawer.js +39 -37
- package/dist/components/Dropdown.js +23 -657
- package/dist/components/Flex/Flex.d.ts +8 -0
- package/dist/components/Flex/Flex.interface.d.ts +118 -0
- package/dist/components/Flex/FlexItem.d.ts +8 -0
- package/dist/components/Flex/index.d.ts +3 -0
- package/dist/components/Flex.js +15 -1186
- package/dist/components/FormField.js +43 -617
- package/dist/components/Grid/Grid.d.ts +8 -0
- package/dist/components/Grid/Grid.interface.d.ts +147 -0
- package/dist/components/Grid/GridItem.d.ts +3 -0
- package/dist/components/Grid/GridRow.d.ts +8 -0
- package/dist/components/Grid/index.d.ts +4 -0
- package/dist/components/Grid.js +15 -1709
- package/dist/components/Group/Group.d.ts +9 -0
- package/dist/components/Group/Group.interface.d.ts +51 -0
- package/dist/components/Group/index.d.ts +1 -0
- package/dist/components/Group.js +15 -315
- package/dist/components/Icon/Icon.d.ts +5 -0
- package/dist/components/Icon/Icon.interface.d.ts +100 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon.js +32 -642
- package/dist/components/Image.js +79 -87
- package/dist/components/Input.js +40 -49
- package/dist/components/InputMask.js +39 -48
- package/dist/components/InputPassword.js +61 -76
- package/dist/components/Label.js +105 -115
- package/dist/components/LanguageSelector.js +48 -62
- package/dist/components/Link/Link.d.ts +11 -0
- package/dist/components/Link/Link.interface.d.ts +57 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Link.js +15 -505
- package/dist/components/List.js +23 -498
- package/dist/components/Loader.js +41 -56
- package/dist/components/Logo.js +40 -55
- package/dist/components/Menu.js +55 -58
- package/dist/components/MenuItem.js +102 -110
- package/dist/components/Modal.js +21 -402
- package/dist/components/Notification/Notification.interface.d.ts +49 -0
- package/dist/components/Notification/NotificationItem.d.ts +10 -0
- package/dist/components/Notification/NotificationList.d.ts +3 -0
- package/dist/components/Notification/index.d.ts +3 -0
- package/dist/components/Notification.js +28 -281
- package/dist/components/Overlay.js +37 -45
- package/dist/components/Page.js +66 -74
- package/dist/components/Pagination.js +225 -57
- package/dist/components/Radio.js +55 -70
- package/dist/components/RangeSlider.js +53 -62
- package/dist/components/Response.js +104 -120
- package/dist/components/ScrollOnDrag.js +71 -172
- package/dist/components/Scrollbar.js +15 -18
- package/dist/components/Search.js +35 -571
- package/dist/components/Segmented.js +54 -69
- package/dist/components/Select.js +274 -324
- package/dist/components/SiteMenu.js +33 -221
- package/dist/components/Swiper.js +140 -148
- package/dist/components/Switch.js +17 -25
- package/dist/components/Tab.js +34 -1089
- package/dist/components/Text/Text.d.ts +9 -0
- package/dist/components/Text/Text.interface.d.ts +53 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text.js +15 -362
- package/dist/components/Textarea.js +37 -46
- package/dist/components/Tile.js +100 -112
- package/dist/components/Title.js +66 -75
- package/dist/components/Tooltip.js +83 -93
- package/dist/components/Video.js +32 -40
- package/dist/components/Wrapper.js +67 -75
- package/dist/components/index.d.ts +58 -0
- package/dist/components.js +117 -0
- package/dist/constants/componentProps/align.js +1 -3
- package/dist/constants/componentProps/alignDirection.js +1 -3
- package/dist/constants/componentProps/alignment.js +1 -3
- package/dist/constants/componentProps/borderColor.js +1 -3
- package/dist/constants/componentProps/borderColorHover.js +1 -3
- package/dist/constants/componentProps/borderType.js +1 -3
- package/dist/constants/componentProps/borderWidth.js +1 -3
- package/dist/constants/componentProps/captionPosition.js +1 -3
- package/dist/constants/componentProps/direction.js +1 -3
- package/dist/constants/componentProps/emojiSize.js +1 -3
- package/dist/constants/componentProps/fill.js +1 -3
- package/dist/constants/componentProps/fillGradient.js +1 -3
- package/dist/constants/componentProps/fillHover.js +1 -3
- package/dist/constants/componentProps/fillType.js +1 -3
- package/dist/constants/componentProps/flexAlign.js +1 -3
- package/dist/constants/componentProps/flexJustifyContent.js +1 -3
- package/dist/constants/componentProps/flexWrap.js +1 -3
- package/dist/constants/componentProps/gridAlign.js +1 -3
- package/dist/constants/componentProps/gridAlignSelf.js +1 -3
- package/dist/constants/componentProps/gridJustifyItems.js +1 -3
- package/dist/constants/componentProps/gridJustifySelf.js +1 -3
- package/dist/constants/componentProps/height.js +1 -3
- package/dist/constants/componentProps/horizontalContentAlign.js +1 -3
- package/dist/constants/componentProps/horizontalResizeMode.js +1 -3
- package/dist/constants/componentProps/iconFillSize.js +1 -3
- package/dist/constants/componentProps/iconSize.js +1 -3
- package/dist/constants/componentProps/itemColor.js +1 -3
- package/dist/constants/componentProps/position.js +1 -3
- package/dist/constants/componentProps/resizeMode.js +1 -3
- package/dist/constants/componentProps/shape.js +1 -3
- package/dist/constants/componentProps/size.js +1 -3
- package/dist/constants/componentProps/sizeInterface.js +1 -3
- package/dist/constants/componentProps/sizePX.js +1 -3
- package/dist/constants/componentProps/stacking.js +1 -3
- package/dist/constants/componentProps/state.js +1 -3
- package/dist/constants/componentProps/strokeColor.js +1 -3
- package/dist/constants/componentProps/textAlign.js +1 -3
- package/dist/constants/componentProps/textColor.js +1 -3
- package/dist/constants/componentProps/textColorActive.js +1 -3
- package/dist/constants/componentProps/textColorHover.js +1 -3
- package/dist/constants/componentProps/textGradient.js +1 -3
- package/dist/constants/componentProps/textSize.js +1 -3
- package/dist/constants/componentProps/textStyle.js +1 -3
- package/dist/constants/componentProps/textTag.js +1 -3
- package/dist/constants/componentProps/textWeight.js +1 -3
- package/dist/constants/componentProps/textWrap.js +1 -3
- package/dist/constants/componentProps/titleSize.js +1 -3
- package/dist/constants/componentProps/type.js +1 -3
- package/dist/constants/componentProps/underline.js +1 -3
- package/dist/constants/componentProps/verticalContentAlign.js +1 -3
- package/dist/constants/componentProps/verticalResizeMode.js +1 -3
- package/dist/constants/componentProps/width.js +1 -3
- package/dist/constants/componentProps/wrap.js +1 -3
- package/dist/constants.js +53 -111
- package/dist/context/Notifications.js +17 -25
- package/dist/context/UIContext.js +21 -29
- package/dist/context/index.d.ts +2 -0
- package/dist/css/components/Avatar/Avatar.css +10 -0
- package/dist/css/components/Button/Button.css +13 -2
- package/dist/css/components/Dot/Dot.css +10 -4
- package/dist/css/components/Dropdown/Dropdown.css +41 -15
- package/dist/css/components/Pagination/Pagination.css +55 -32
- package/dist/css/components/Pagination/css/__item/pagination__item.css +27 -25
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +28 -13
- package/dist/css/components/Scrollbar/Scrollbar.css +56 -0
- package/dist/css/components/Select/Select.css +8 -0
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/styles/fill/fill_active_hover.css +6 -3
- package/dist/css/styles/text-color/text-color_active.css +4 -2
- package/dist/floating-ui.dom-BQ7wiYTi.js +1374 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/styleAttributes.interface.d.ts +143 -0
- package/dist/hooks/styleAttributes.js +2 -4
- package/dist/hooks/useDeviceTargetClass.js +13 -20
- package/dist/hooks/useMediaQueries.js +16 -10
- package/dist/hooks/useStyles.js +22 -30
- package/dist/index.d.ts +4 -0
- package/dist/jsx-runtime-ClDdVO4Q.js +1357 -0
- package/dist/types/componentProps/align.d.ts +1 -0
- package/dist/types/componentProps/alignDirection.d.ts +1 -0
- package/dist/types/componentProps/alignment.d.ts +1 -0
- package/dist/types/componentProps/appearanceKeys.d.ts +1 -0
- package/dist/types/componentProps/borderColor.d.ts +1 -0
- package/dist/types/componentProps/borderColorHover.d.ts +1 -0
- package/dist/types/componentProps/borderType.d.ts +1 -0
- package/dist/types/componentProps/borderWidth.d.ts +1 -0
- package/dist/types/componentProps/captionPosition.d.ts +1 -0
- package/dist/types/componentProps/direction.d.ts +1 -0
- package/dist/types/componentProps/elevation.d.ts +1 -0
- package/dist/types/componentProps/emojiSize.d.ts +1 -0
- package/dist/types/componentProps/fill.d.ts +1 -0
- package/dist/types/componentProps/fillGradient.d.ts +1 -0
- package/dist/types/componentProps/fillHover.d.ts +1 -0
- package/dist/types/componentProps/fillType.d.ts +1 -0
- package/dist/types/componentProps/flexAlign.d.ts +1 -0
- package/dist/types/componentProps/flexGrow.d.ts +1 -0
- package/dist/types/componentProps/flexJustifyContent.d.ts +1 -0
- package/dist/types/componentProps/flexWrap.d.ts +1 -0
- package/dist/types/componentProps/gridAlign.d.ts +1 -0
- package/dist/types/componentProps/gridAlignSelf.d.ts +1 -0
- package/dist/types/componentProps/gridJustifyItems.d.ts +1 -0
- package/dist/types/componentProps/gridJustifySelf.d.ts +1 -0
- package/dist/types/componentProps/height.d.ts +1 -0
- package/dist/types/componentProps/horizontalContentAlign.d.ts +1 -0
- package/dist/types/componentProps/horizontalResizeMode.d.ts +1 -0
- package/dist/types/componentProps/iconFillSize.d.ts +1 -0
- package/dist/types/componentProps/iconSize.d.ts +1 -0
- package/dist/types/componentProps/itemColor.d.ts +1 -0
- package/dist/types/componentProps/justifyContent.d.ts +1 -0
- package/dist/types/componentProps/position.d.ts +1 -0
- package/dist/types/componentProps/resizeMode.d.ts +1 -0
- package/dist/types/componentProps/shape.d.ts +1 -0
- package/dist/types/componentProps/size.d.ts +1 -0
- package/dist/types/componentProps/sizeInterface.d.ts +1 -0
- package/dist/types/componentProps/sizePX.d.ts +1 -0
- package/dist/types/componentProps/stacking.d.ts +1 -0
- package/dist/types/componentProps/state.d.ts +1 -0
- package/dist/types/componentProps/strokeColor.d.ts +1 -0
- package/dist/types/componentProps/textAlign.d.ts +1 -0
- package/dist/types/componentProps/textColor.d.ts +1 -0
- package/dist/types/componentProps/textColorActive.d.ts +1 -0
- package/dist/types/componentProps/textColorHover.d.ts +1 -0
- package/dist/types/componentProps/textGradient.d.ts +1 -0
- package/dist/types/componentProps/textSize.d.ts +1 -0
- package/dist/types/componentProps/textStyle.d.ts +1 -0
- package/dist/types/componentProps/textTag.d.ts +1 -0
- package/dist/types/componentProps/textWeight.d.ts +1 -0
- package/dist/types/componentProps/textWrap.d.ts +1 -0
- package/dist/types/componentProps/titleSize.d.ts +1 -0
- package/dist/types/componentProps/type.d.ts +1 -0
- package/dist/types/componentProps/underline.d.ts +1 -0
- package/dist/types/componentProps/verticalContentAlign.d.ts +1 -0
- package/dist/types/componentProps/verticalResizeMode.d.ts +1 -0
- package/dist/types/componentProps/width.d.ts +1 -0
- package/dist/types/componentProps/wrap.d.ts +1 -0
- package/dist/types/index.d.ts +56 -0
- package/package.json +86 -29
- package/dist/css/components/Background/Background.css +0 -11
- /package/dist/{floating-ui.dom-C34fOuI9.js → cjs/floating-ui.dom-C34fOuI9.js} +0 -0
|
@@ -1,77 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
require('./Title.js');
|
|
41
|
-
require('../constants/componentProps/textAlign.js');
|
|
42
|
-
require('../constants/componentProps/titleSize.js');
|
|
43
|
-
require('../constants/componentProps/wrap.js');
|
|
44
|
-
require('../constants/componentProps/textSize.js');
|
|
45
|
-
require('../constants/componentProps/textColorActive.js');
|
|
46
|
-
require('../constants/componentProps/textColorHover.js');
|
|
47
|
-
require('../constants/componentProps/direction.js');
|
|
48
|
-
require('../constants/componentProps/stacking.js');
|
|
49
|
-
require('../constants/componentProps/width.js');
|
|
50
|
-
|
|
51
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
52
|
-
|
|
53
|
-
function _interopNamespace(e) {
|
|
54
|
-
if (e && e.__esModule) return e;
|
|
55
|
-
var n = Object.create(null);
|
|
56
|
-
if (e) {
|
|
57
|
-
Object.keys(e).forEach(function (k) {
|
|
58
|
-
if (k !== 'default') {
|
|
59
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
60
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () { return e[k]; }
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
n.default = e;
|
|
68
|
-
return Object.freeze(n);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
72
|
-
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
73
|
-
var Select__default = /*#__PURE__*/_interopDefault(Select$1);
|
|
74
|
-
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { forwardRef, useContext, useLayoutEffect, useEffect, useRef, useState, createContext, useMemo, useCallback, Component, Fragment } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { I as Icon } from '../Icon-Dn2eEZvb.js';
|
|
5
|
+
import Select$1, { components as components$1 } from 'react-select';
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
import { createPortal } from 'react-dom';
|
|
8
|
+
import { a as autoUpdate } from '../floating-ui.dom-BQ7wiYTi.js';
|
|
9
|
+
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
10
|
+
import { Badge } from './Badge.js';
|
|
11
|
+
import { T as Text } from '../Text-BcGbRc14.js';
|
|
12
|
+
import { G as Group$2 } from '../Group-fbVPmr8W.js';
|
|
13
|
+
import { D as Divider } from '../Divider-BlBwMHgl.js';
|
|
14
|
+
import '../Link-ByBzBRDH.js';
|
|
15
|
+
import '../jsx-runtime-ClDdVO4Q.js';
|
|
16
|
+
import '../hooks/useStyles.js';
|
|
17
|
+
import 'lodash/camelCase';
|
|
18
|
+
import 'lodash/maxBy';
|
|
19
|
+
import 'lodash/upperFirst';
|
|
20
|
+
import '../hooks/styleAttributes.js';
|
|
21
|
+
import '../context/UIContext.js';
|
|
22
|
+
import '../hooks/useMediaQueries.js';
|
|
23
|
+
import 'react-responsive';
|
|
24
|
+
import 'react-inlinesvg';
|
|
25
|
+
import './Tooltip.js';
|
|
26
|
+
import './Title.js';
|
|
27
|
+
import '../constants/componentProps/fill.js';
|
|
28
|
+
import '../constants/componentProps/textAlign.js';
|
|
29
|
+
import '../constants/componentProps/textColor.js';
|
|
30
|
+
import '../constants/componentProps/textGradient.js';
|
|
31
|
+
import '../constants/componentProps/textStyle.js';
|
|
32
|
+
import '../constants/componentProps/textWeight.js';
|
|
33
|
+
import '../constants/componentProps/titleSize.js';
|
|
34
|
+
import '../constants/componentProps/type.js';
|
|
35
|
+
import '../constants/componentProps/wrap.js';
|
|
36
|
+
import 'lodash/castArray';
|
|
37
|
+
import '../constants/componentProps/size.js';
|
|
38
|
+
import '../constants/componentProps/textSize.js';
|
|
39
|
+
import '../constants/componentProps/shape.js';
|
|
75
40
|
|
|
76
41
|
const SelectClearIndicator = props => {
|
|
77
42
|
const {
|
|
@@ -79,17 +44,17 @@ const SelectClearIndicator = props => {
|
|
|
79
44
|
clearIconFill,
|
|
80
45
|
clearIconStroke
|
|
81
46
|
} = props.selectProps;
|
|
82
|
-
return /*#__PURE__*/
|
|
47
|
+
return /*#__PURE__*/React__default.createElement(components$1.ClearIndicator, props, clearIcon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
83
48
|
SvgImage: clearIcon,
|
|
84
49
|
iconFill: clearIconFill,
|
|
85
50
|
iconStroke: clearIconStroke
|
|
86
51
|
}) : props.children);
|
|
87
52
|
};
|
|
88
53
|
SelectClearIndicator.propTypes = {
|
|
89
|
-
selectProps:
|
|
90
|
-
clearIcon:
|
|
91
|
-
clearIconFill:
|
|
92
|
-
clearIconStroke:
|
|
54
|
+
selectProps: PropTypes.shape({
|
|
55
|
+
clearIcon: PropTypes.string,
|
|
56
|
+
clearIconFill: PropTypes.string,
|
|
57
|
+
clearIconStroke: PropTypes.string
|
|
93
58
|
})
|
|
94
59
|
};
|
|
95
60
|
SelectClearIndicator.__docgenInfo = {
|
|
@@ -159,7 +124,7 @@ function toPrimitive(t, r) {
|
|
|
159
124
|
|
|
160
125
|
function toPropertyKey(t) {
|
|
161
126
|
var i = toPrimitive(t, "string");
|
|
162
|
-
return "symbol" == _typeof(i) ? i :
|
|
127
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
163
128
|
}
|
|
164
129
|
|
|
165
130
|
function _defineProperty(obj, key, value) {
|
|
@@ -2459,14 +2424,14 @@ var syncFallback = function syncFallback(create) {
|
|
|
2459
2424
|
return create();
|
|
2460
2425
|
};
|
|
2461
2426
|
|
|
2462
|
-
var useInsertionEffect =
|
|
2427
|
+
var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
|
|
2463
2428
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : useInsertionEffect || syncFallback;
|
|
2464
|
-
var useInsertionEffectWithLayoutFallback = useInsertionEffect ||
|
|
2429
|
+
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;
|
|
2465
2430
|
|
|
2466
2431
|
var isBrowser$1 = typeof document !== 'undefined';
|
|
2467
2432
|
var hasOwn = {}.hasOwnProperty;
|
|
2468
2433
|
|
|
2469
|
-
var EmotionCacheContext = /* #__PURE__ */
|
|
2434
|
+
var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
2470
2435
|
// because this module is primarily intended for the browser and node
|
|
2471
2436
|
// but it's also required in react native and similar environments sometimes
|
|
2472
2437
|
// and we could have a special build just for that
|
|
@@ -2484,9 +2449,9 @@ EmotionCacheContext.Provider;
|
|
|
2484
2449
|
|
|
2485
2450
|
var withEmotionCache = function withEmotionCache(func) {
|
|
2486
2451
|
// $FlowFixMe
|
|
2487
|
-
return /*#__PURE__*/
|
|
2452
|
+
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
2488
2453
|
// the cache will never be null in the browser
|
|
2489
|
-
var cache =
|
|
2454
|
+
var cache = useContext(EmotionCacheContext);
|
|
2490
2455
|
return func(props, cache, ref);
|
|
2491
2456
|
});
|
|
2492
2457
|
};
|
|
@@ -2494,7 +2459,7 @@ var withEmotionCache = function withEmotionCache(func) {
|
|
|
2494
2459
|
if (!isBrowser$1) {
|
|
2495
2460
|
withEmotionCache = function withEmotionCache(func) {
|
|
2496
2461
|
return function (props) {
|
|
2497
|
-
var cache =
|
|
2462
|
+
var cache = useContext(EmotionCacheContext);
|
|
2498
2463
|
|
|
2499
2464
|
if (cache === null) {
|
|
2500
2465
|
// yes, we're potentially creating this on every render
|
|
@@ -2505,7 +2470,7 @@ if (!isBrowser$1) {
|
|
|
2505
2470
|
cache = createCache({
|
|
2506
2471
|
key: 'css'
|
|
2507
2472
|
});
|
|
2508
|
-
return /*#__PURE__*/
|
|
2473
|
+
return /*#__PURE__*/React.createElement(EmotionCacheContext.Provider, {
|
|
2509
2474
|
value: cache
|
|
2510
2475
|
}, func(props, cache));
|
|
2511
2476
|
} else {
|
|
@@ -2515,7 +2480,7 @@ if (!isBrowser$1) {
|
|
|
2515
2480
|
};
|
|
2516
2481
|
}
|
|
2517
2482
|
|
|
2518
|
-
var ThemeContext = /* #__PURE__ */
|
|
2483
|
+
var ThemeContext = /* #__PURE__ */React.createContext({});
|
|
2519
2484
|
|
|
2520
2485
|
if (process.env.NODE_ENV !== 'production') {
|
|
2521
2486
|
ThemeContext.displayName = 'EmotionThemeContext';
|
|
@@ -2611,7 +2576,7 @@ var Insertion$1 = function Insertion(_ref) {
|
|
|
2611
2576
|
next = next.next;
|
|
2612
2577
|
}
|
|
2613
2578
|
|
|
2614
|
-
return /*#__PURE__*/
|
|
2579
|
+
return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
|
|
2615
2580
|
__html: rules
|
|
2616
2581
|
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
2617
2582
|
}
|
|
@@ -2638,7 +2603,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
2638
2603
|
className = props.className + " ";
|
|
2639
2604
|
}
|
|
2640
2605
|
|
|
2641
|
-
var serialized = serializeStyles(registeredStyles, undefined,
|
|
2606
|
+
var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));
|
|
2642
2607
|
|
|
2643
2608
|
if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
|
|
2644
2609
|
var labelFromStack = props[labelPropName];
|
|
@@ -2659,11 +2624,11 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
2659
2624
|
|
|
2660
2625
|
newProps.ref = ref;
|
|
2661
2626
|
newProps.className = className;
|
|
2662
|
-
return /*#__PURE__*/
|
|
2627
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion$1, {
|
|
2663
2628
|
cache: cache,
|
|
2664
2629
|
serialized: serialized,
|
|
2665
2630
|
isStringTag: typeof WrappedComponent === 'string'
|
|
2666
|
-
}), /*#__PURE__*/
|
|
2631
|
+
}), /*#__PURE__*/React.createElement(WrappedComponent, newProps));
|
|
2667
2632
|
});
|
|
2668
2633
|
|
|
2669
2634
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2809,7 +2774,7 @@ var jsx = function jsx(type, props) {
|
|
|
2809
2774
|
|
|
2810
2775
|
if (props == null || !hasOwn.call(props, 'css')) {
|
|
2811
2776
|
// $FlowFixMe
|
|
2812
|
-
return
|
|
2777
|
+
return React.createElement.apply(undefined, args);
|
|
2813
2778
|
}
|
|
2814
2779
|
|
|
2815
2780
|
var argsLength = args.length;
|
|
@@ -2822,7 +2787,7 @@ var jsx = function jsx(type, props) {
|
|
|
2822
2787
|
} // $FlowFixMe
|
|
2823
2788
|
|
|
2824
2789
|
|
|
2825
|
-
return
|
|
2790
|
+
return React.createElement.apply(null, createElementArgArray);
|
|
2826
2791
|
};
|
|
2827
2792
|
|
|
2828
2793
|
var warnedAboutCssPropForGlobal = false; // maintain place over rerenders.
|
|
@@ -2840,7 +2805,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
2840
2805
|
}
|
|
2841
2806
|
|
|
2842
2807
|
var styles = props.styles;
|
|
2843
|
-
var serialized = serializeStyles([styles], undefined,
|
|
2808
|
+
var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));
|
|
2844
2809
|
|
|
2845
2810
|
if (!isBrowser$1) {
|
|
2846
2811
|
var _ref;
|
|
@@ -2865,7 +2830,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
2865
2830
|
return null;
|
|
2866
2831
|
}
|
|
2867
2832
|
|
|
2868
|
-
return /*#__PURE__*/
|
|
2833
|
+
return /*#__PURE__*/React.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + "-global " + serializedNames, _ref.dangerouslySetInnerHTML = {
|
|
2869
2834
|
__html: rules
|
|
2870
2835
|
}, _ref.nonce = cache.sheet.nonce, _ref));
|
|
2871
2836
|
} // yes, i know these hooks are used conditionally
|
|
@@ -2874,7 +2839,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
2874
2839
|
// so it's not actually breaking anything
|
|
2875
2840
|
|
|
2876
2841
|
|
|
2877
|
-
var sheetRef =
|
|
2842
|
+
var sheetRef = React.useRef();
|
|
2878
2843
|
useInsertionEffectWithLayoutFallback(function () {
|
|
2879
2844
|
var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
|
|
2880
2845
|
|
|
@@ -3041,7 +3006,7 @@ var Insertion = function Insertion(_ref) {
|
|
|
3041
3006
|
if (!isBrowser$1 && rules.length !== 0) {
|
|
3042
3007
|
var _ref2;
|
|
3043
3008
|
|
|
3044
|
-
return /*#__PURE__*/
|
|
3009
|
+
return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function (serialized) {
|
|
3045
3010
|
return serialized.name;
|
|
3046
3011
|
}).join(' '), _ref2.dangerouslySetInnerHTML = {
|
|
3047
3012
|
__html: rules
|
|
@@ -3086,11 +3051,11 @@ var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
3086
3051
|
var content = {
|
|
3087
3052
|
css: css,
|
|
3088
3053
|
cx: cx,
|
|
3089
|
-
theme:
|
|
3054
|
+
theme: React.useContext(ThemeContext)
|
|
3090
3055
|
};
|
|
3091
3056
|
var ele = props.children(content);
|
|
3092
3057
|
hasRendered = true;
|
|
3093
|
-
return /*#__PURE__*/
|
|
3058
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {
|
|
3094
3059
|
cache: cache,
|
|
3095
3060
|
serializedArr: serializedArr
|
|
3096
3061
|
}), ele);
|
|
@@ -3200,7 +3165,7 @@ function _taggedTemplateLiteral(strings, raw) {
|
|
|
3200
3165
|
}));
|
|
3201
3166
|
}
|
|
3202
3167
|
|
|
3203
|
-
var index = typeof document !== 'undefined' ?
|
|
3168
|
+
var index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;
|
|
3204
3169
|
|
|
3205
3170
|
var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
|
|
3206
3171
|
// ==============================
|
|
@@ -3678,7 +3643,7 @@ var menuCSS = function menuCSS(_ref2, unstyled) {
|
|
|
3678
3643
|
marginTop: spacing.menuGutter
|
|
3679
3644
|
});
|
|
3680
3645
|
};
|
|
3681
|
-
var PortalPlacementContext = /*#__PURE__*/
|
|
3646
|
+
var PortalPlacementContext = /*#__PURE__*/createContext(null);
|
|
3682
3647
|
|
|
3683
3648
|
// NOTE: internal only
|
|
3684
3649
|
var MenuPlacer = function MenuPlacer(props) {
|
|
@@ -3689,14 +3654,14 @@ var MenuPlacer = function MenuPlacer(props) {
|
|
|
3689
3654
|
menuPosition = props.menuPosition,
|
|
3690
3655
|
menuShouldScrollIntoView = props.menuShouldScrollIntoView,
|
|
3691
3656
|
theme = props.theme;
|
|
3692
|
-
var _ref3 =
|
|
3657
|
+
var _ref3 = useContext(PortalPlacementContext) || {},
|
|
3693
3658
|
setPortalPlacement = _ref3.setPortalPlacement;
|
|
3694
|
-
var ref =
|
|
3695
|
-
var _useState =
|
|
3659
|
+
var ref = useRef(null);
|
|
3660
|
+
var _useState = useState(maxMenuHeight),
|
|
3696
3661
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3697
3662
|
maxHeight = _useState2[0],
|
|
3698
3663
|
setMaxHeight = _useState2[1];
|
|
3699
|
-
var _useState3 =
|
|
3664
|
+
var _useState3 = useState(null),
|
|
3700
3665
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
3701
3666
|
placement = _useState4[0],
|
|
3702
3667
|
setPlacement = _useState4[1];
|
|
@@ -3839,22 +3804,22 @@ var MenuPortal = function MenuPortal(props) {
|
|
|
3839
3804
|
innerProps = props.innerProps,
|
|
3840
3805
|
menuPlacement = props.menuPlacement,
|
|
3841
3806
|
menuPosition = props.menuPosition;
|
|
3842
|
-
var menuPortalRef =
|
|
3843
|
-
var cleanupRef =
|
|
3844
|
-
var _useState5 =
|
|
3807
|
+
var menuPortalRef = useRef(null);
|
|
3808
|
+
var cleanupRef = useRef(null);
|
|
3809
|
+
var _useState5 = useState(coercePlacement(menuPlacement)),
|
|
3845
3810
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
3846
3811
|
placement = _useState6[0],
|
|
3847
3812
|
setPortalPlacement = _useState6[1];
|
|
3848
|
-
var portalPlacementContext =
|
|
3813
|
+
var portalPlacementContext = useMemo(function () {
|
|
3849
3814
|
return {
|
|
3850
3815
|
setPortalPlacement: setPortalPlacement
|
|
3851
3816
|
};
|
|
3852
3817
|
}, []);
|
|
3853
|
-
var _useState7 =
|
|
3818
|
+
var _useState7 = useState(null),
|
|
3854
3819
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
3855
3820
|
computedPosition = _useState8[0],
|
|
3856
3821
|
setComputedPosition = _useState8[1];
|
|
3857
|
-
var updateComputedPosition =
|
|
3822
|
+
var updateComputedPosition = useCallback(function () {
|
|
3858
3823
|
if (!controlElement) return;
|
|
3859
3824
|
var rect = getBoundingClientObj(controlElement);
|
|
3860
3825
|
var scrollDistance = menuPosition === 'fixed' ? 0 : window.pageYOffset;
|
|
@@ -3869,13 +3834,13 @@ var MenuPortal = function MenuPortal(props) {
|
|
|
3869
3834
|
index(function () {
|
|
3870
3835
|
updateComputedPosition();
|
|
3871
3836
|
}, [updateComputedPosition]);
|
|
3872
|
-
var runAutoUpdate =
|
|
3837
|
+
var runAutoUpdate = useCallback(function () {
|
|
3873
3838
|
if (typeof cleanupRef.current === 'function') {
|
|
3874
3839
|
cleanupRef.current();
|
|
3875
3840
|
cleanupRef.current = null;
|
|
3876
3841
|
}
|
|
3877
3842
|
if (controlElement && menuPortalRef.current) {
|
|
3878
|
-
cleanupRef.current =
|
|
3843
|
+
cleanupRef.current = autoUpdate(controlElement, menuPortalRef.current, updateComputedPosition, {
|
|
3879
3844
|
elementResize: 'ResizeObserver' in window
|
|
3880
3845
|
});
|
|
3881
3846
|
}
|
|
@@ -3883,7 +3848,7 @@ var MenuPortal = function MenuPortal(props) {
|
|
|
3883
3848
|
index(function () {
|
|
3884
3849
|
runAutoUpdate();
|
|
3885
3850
|
}, [runAutoUpdate]);
|
|
3886
|
-
var setMenuPortalElement =
|
|
3851
|
+
var setMenuPortalElement = useCallback(function (menuPortalElement) {
|
|
3887
3852
|
menuPortalRef.current = menuPortalElement;
|
|
3888
3853
|
runAutoUpdate();
|
|
3889
3854
|
}, [runAutoUpdate]);
|
|
@@ -3903,7 +3868,7 @@ var MenuPortal = function MenuPortal(props) {
|
|
|
3903
3868
|
}), innerProps), children);
|
|
3904
3869
|
return jsx(PortalPlacementContext.Provider, {
|
|
3905
3870
|
value: portalPlacementContext
|
|
3906
|
-
}, appendTo ? /*#__PURE__*/
|
|
3871
|
+
}, appendTo ? /*#__PURE__*/createPortal(menuWrapper, appendTo) : menuWrapper);
|
|
3907
3872
|
};
|
|
3908
3873
|
|
|
3909
3874
|
// ==============================
|
|
@@ -4734,12 +4699,12 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
4734
4699
|
var ariaLive = selectProps['aria-live'];
|
|
4735
4700
|
|
|
4736
4701
|
// Update aria live message configuration when prop changes
|
|
4737
|
-
var messages =
|
|
4702
|
+
var messages = useMemo(function () {
|
|
4738
4703
|
return _objectSpread2(_objectSpread2({}, defaultAriaLiveMessages), ariaLiveMessages || {});
|
|
4739
4704
|
}, [ariaLiveMessages]);
|
|
4740
4705
|
|
|
4741
4706
|
// Update aria live selected option when prop changes
|
|
4742
|
-
var ariaSelected =
|
|
4707
|
+
var ariaSelected = useMemo(function () {
|
|
4743
4708
|
var message = '';
|
|
4744
4709
|
if (ariaSelection && messages.onChange) {
|
|
4745
4710
|
var option = ariaSelection.option,
|
|
@@ -4770,7 +4735,7 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
4770
4735
|
}
|
|
4771
4736
|
return message;
|
|
4772
4737
|
}, [ariaSelection, messages, isOptionDisabled, selectValue, getOptionLabel]);
|
|
4773
|
-
var ariaFocused =
|
|
4738
|
+
var ariaFocused = useMemo(function () {
|
|
4774
4739
|
var focusMsg = '';
|
|
4775
4740
|
var focused = focusedOption || focusedValue;
|
|
4776
4741
|
var isSelected = !!(focusedOption && selectValue && selectValue.includes(focusedOption));
|
|
@@ -4789,7 +4754,7 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
4789
4754
|
}
|
|
4790
4755
|
return focusMsg;
|
|
4791
4756
|
}, [focusedOption, focusedValue, getOptionLabel, isOptionDisabled, messages, focusableOptions, selectValue, isAppleDevice]);
|
|
4792
|
-
var ariaResults =
|
|
4757
|
+
var ariaResults = useMemo(function () {
|
|
4793
4758
|
var resultsMsg = '';
|
|
4794
4759
|
if (menuIsOpen && options.length && !isLoading && messages.onFilter) {
|
|
4795
4760
|
var resultsMessage = screenReaderStatus({
|
|
@@ -4803,7 +4768,7 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
4803
4768
|
return resultsMsg;
|
|
4804
4769
|
}, [focusableOptions, inputValue, menuIsOpen, messages, options, screenReaderStatus, isLoading]);
|
|
4805
4770
|
var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus';
|
|
4806
|
-
var ariaGuidance =
|
|
4771
|
+
var ariaGuidance = useMemo(function () {
|
|
4807
4772
|
var guidanceMsg = '';
|
|
4808
4773
|
if (messages.guidance) {
|
|
4809
4774
|
var context = focusedValue ? 'value' : menuIsOpen ? 'menu' : 'input';
|
|
@@ -4819,7 +4784,7 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
4819
4784
|
}
|
|
4820
4785
|
return guidanceMsg;
|
|
4821
4786
|
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
4822
|
-
var ScreenReaderText = jsx(
|
|
4787
|
+
var ScreenReaderText = jsx(Fragment, null, jsx("span", {
|
|
4823
4788
|
id: "aria-selection"
|
|
4824
4789
|
}, ariaSelected), jsx("span", {
|
|
4825
4790
|
id: "aria-focused"
|
|
@@ -4828,7 +4793,7 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
4828
4793
|
}, ariaResults), jsx("span", {
|
|
4829
4794
|
id: "aria-guidance"
|
|
4830
4795
|
}, ariaGuidance));
|
|
4831
|
-
return jsx(
|
|
4796
|
+
return jsx(Fragment, null, jsx(A11yText$1, {
|
|
4832
4797
|
id: id
|
|
4833
4798
|
}, isInitialFocus && ScreenReaderText), jsx(A11yText$1, {
|
|
4834
4799
|
"aria-live": ariaLive,
|
|
@@ -5188,11 +5153,11 @@ function useScrollCapture(_ref) {
|
|
|
5188
5153
|
onBottomLeave = _ref.onBottomLeave,
|
|
5189
5154
|
onTopArrive = _ref.onTopArrive,
|
|
5190
5155
|
onTopLeave = _ref.onTopLeave;
|
|
5191
|
-
var isBottom =
|
|
5192
|
-
var isTop =
|
|
5193
|
-
var touchStart =
|
|
5194
|
-
var scrollTarget =
|
|
5195
|
-
var handleEventDelta =
|
|
5156
|
+
var isBottom = useRef(false);
|
|
5157
|
+
var isTop = useRef(false);
|
|
5158
|
+
var touchStart = useRef(0);
|
|
5159
|
+
var scrollTarget = useRef(null);
|
|
5160
|
+
var handleEventDelta = useCallback(function (event, delta) {
|
|
5196
5161
|
if (scrollTarget.current === null) return;
|
|
5197
5162
|
var _scrollTarget$current = scrollTarget.current,
|
|
5198
5163
|
scrollTop = _scrollTarget$current.scrollTop,
|
|
@@ -5237,18 +5202,18 @@ function useScrollCapture(_ref) {
|
|
|
5237
5202
|
cancelScroll(event);
|
|
5238
5203
|
}
|
|
5239
5204
|
}, [onBottomArrive, onBottomLeave, onTopArrive, onTopLeave]);
|
|
5240
|
-
var onWheel =
|
|
5205
|
+
var onWheel = useCallback(function (event) {
|
|
5241
5206
|
handleEventDelta(event, event.deltaY);
|
|
5242
5207
|
}, [handleEventDelta]);
|
|
5243
|
-
var onTouchStart =
|
|
5208
|
+
var onTouchStart = useCallback(function (event) {
|
|
5244
5209
|
// set touch start so we can calculate touchmove delta
|
|
5245
5210
|
touchStart.current = event.changedTouches[0].clientY;
|
|
5246
5211
|
}, []);
|
|
5247
|
-
var onTouchMove =
|
|
5212
|
+
var onTouchMove = useCallback(function (event) {
|
|
5248
5213
|
var deltaY = touchStart.current - event.changedTouches[0].clientY;
|
|
5249
5214
|
handleEventDelta(event, deltaY);
|
|
5250
5215
|
}, [handleEventDelta]);
|
|
5251
|
-
var startListening =
|
|
5216
|
+
var startListening = useCallback(function (el) {
|
|
5252
5217
|
// bail early if no element is available to attach to
|
|
5253
5218
|
if (!el) return;
|
|
5254
5219
|
var notPassive = supportsPassiveEvents ? {
|
|
@@ -5258,14 +5223,14 @@ function useScrollCapture(_ref) {
|
|
|
5258
5223
|
el.addEventListener('touchstart', onTouchStart, notPassive);
|
|
5259
5224
|
el.addEventListener('touchmove', onTouchMove, notPassive);
|
|
5260
5225
|
}, [onTouchMove, onTouchStart, onWheel]);
|
|
5261
|
-
var stopListening =
|
|
5226
|
+
var stopListening = useCallback(function (el) {
|
|
5262
5227
|
// bail early if no element is available to detach from
|
|
5263
5228
|
if (!el) return;
|
|
5264
5229
|
el.removeEventListener('wheel', onWheel, false);
|
|
5265
5230
|
el.removeEventListener('touchstart', onTouchStart, false);
|
|
5266
5231
|
el.removeEventListener('touchmove', onTouchMove, false);
|
|
5267
5232
|
}, [onTouchMove, onTouchStart, onWheel]);
|
|
5268
|
-
|
|
5233
|
+
useEffect(function () {
|
|
5269
5234
|
if (!isEnabled) return;
|
|
5270
5235
|
var element = scrollTarget.current;
|
|
5271
5236
|
startListening(element);
|
|
@@ -5318,9 +5283,9 @@ function useScrollLock(_ref) {
|
|
|
5318
5283
|
var isEnabled = _ref.isEnabled,
|
|
5319
5284
|
_ref$accountForScroll = _ref.accountForScrollbars,
|
|
5320
5285
|
accountForScrollbars = _ref$accountForScroll === void 0 ? true : _ref$accountForScroll;
|
|
5321
|
-
var originalStyles =
|
|
5322
|
-
var scrollTarget =
|
|
5323
|
-
var addScrollLock =
|
|
5286
|
+
var originalStyles = useRef({});
|
|
5287
|
+
var scrollTarget = useRef(null);
|
|
5288
|
+
var addScrollLock = useCallback(function (touchScrollTarget) {
|
|
5324
5289
|
if (!canUseDOM) return;
|
|
5325
5290
|
var target = document.body;
|
|
5326
5291
|
var targetStyle = target && target.style;
|
|
@@ -5363,7 +5328,7 @@ function useScrollLock(_ref) {
|
|
|
5363
5328
|
// increment active scroll locks
|
|
5364
5329
|
activeScrollLocks += 1;
|
|
5365
5330
|
}, [accountForScrollbars]);
|
|
5366
|
-
var removeScrollLock =
|
|
5331
|
+
var removeScrollLock = useCallback(function (touchScrollTarget) {
|
|
5367
5332
|
if (!canUseDOM) return;
|
|
5368
5333
|
var target = document.body;
|
|
5369
5334
|
var targetStyle = target && target.style;
|
|
@@ -5390,7 +5355,7 @@ function useScrollLock(_ref) {
|
|
|
5390
5355
|
}
|
|
5391
5356
|
}
|
|
5392
5357
|
}, [accountForScrollbars]);
|
|
5393
|
-
|
|
5358
|
+
useEffect(function () {
|
|
5394
5359
|
if (!isEnabled) return;
|
|
5395
5360
|
var element = scrollTarget.current;
|
|
5396
5361
|
addScrollLock(element);
|
|
@@ -5440,7 +5405,7 @@ function ScrollManager(_ref) {
|
|
|
5440
5405
|
setScrollCaptureTarget(element);
|
|
5441
5406
|
setScrollLockTarget(element);
|
|
5442
5407
|
};
|
|
5443
|
-
return jsx(
|
|
5408
|
+
return jsx(Fragment, null, lockEnabled && jsx("div", {
|
|
5444
5409
|
onClick: blurSelectInput,
|
|
5445
5410
|
css: _ref2$1
|
|
5446
5411
|
}), children(targetRef));
|
|
@@ -6725,7 +6690,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6725
6690
|
});
|
|
6726
6691
|
if (!isSearchable) {
|
|
6727
6692
|
// use a dummy input to maintain focus/blur functionality
|
|
6728
|
-
return /*#__PURE__*/
|
|
6693
|
+
return /*#__PURE__*/React.createElement(DummyInput, _extends({
|
|
6729
6694
|
id: id,
|
|
6730
6695
|
innerRef: this.getInputRef,
|
|
6731
6696
|
onBlur: this.onInputBlur,
|
|
@@ -6738,7 +6703,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6738
6703
|
value: ""
|
|
6739
6704
|
}, ariaAttributes));
|
|
6740
6705
|
}
|
|
6741
|
-
return /*#__PURE__*/
|
|
6706
|
+
return /*#__PURE__*/React.createElement(Input, _extends({}, commonProps, {
|
|
6742
6707
|
autoCapitalize: "none",
|
|
6743
6708
|
autoComplete: "off",
|
|
6744
6709
|
autoCorrect: "off",
|
|
@@ -6779,7 +6744,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6779
6744
|
focusedValue = _this$state5.focusedValue,
|
|
6780
6745
|
isFocused = _this$state5.isFocused;
|
|
6781
6746
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
6782
|
-
return inputValue ? null : /*#__PURE__*/
|
|
6747
|
+
return inputValue ? null : /*#__PURE__*/React.createElement(Placeholder, _extends({}, commonProps, {
|
|
6783
6748
|
key: "placeholder",
|
|
6784
6749
|
isDisabled: isDisabled,
|
|
6785
6750
|
isFocused: isFocused,
|
|
@@ -6792,7 +6757,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6792
6757
|
return selectValue.map(function (opt, index) {
|
|
6793
6758
|
var isOptionFocused = opt === focusedValue;
|
|
6794
6759
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
6795
|
-
return /*#__PURE__*/
|
|
6760
|
+
return /*#__PURE__*/React.createElement(MultiValue, _extends({}, commonProps, {
|
|
6796
6761
|
components: {
|
|
6797
6762
|
Container: MultiValueContainer,
|
|
6798
6763
|
Label: MultiValueLabel,
|
|
@@ -6821,7 +6786,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6821
6786
|
return null;
|
|
6822
6787
|
}
|
|
6823
6788
|
var singleValue = selectValue[0];
|
|
6824
|
-
return /*#__PURE__*/
|
|
6789
|
+
return /*#__PURE__*/React.createElement(SingleValue, _extends({}, commonProps, {
|
|
6825
6790
|
data: singleValue,
|
|
6826
6791
|
isDisabled: isDisabled
|
|
6827
6792
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -6844,7 +6809,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6844
6809
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
6845
6810
|
'aria-hidden': 'true'
|
|
6846
6811
|
};
|
|
6847
|
-
return /*#__PURE__*/
|
|
6812
|
+
return /*#__PURE__*/React.createElement(ClearIndicator, _extends({}, commonProps, {
|
|
6848
6813
|
innerProps: innerProps,
|
|
6849
6814
|
isFocused: isFocused
|
|
6850
6815
|
}));
|
|
@@ -6863,7 +6828,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6863
6828
|
var innerProps = {
|
|
6864
6829
|
'aria-hidden': 'true'
|
|
6865
6830
|
};
|
|
6866
|
-
return /*#__PURE__*/
|
|
6831
|
+
return /*#__PURE__*/React.createElement(LoadingIndicator, _extends({}, commonProps, {
|
|
6867
6832
|
innerProps: innerProps,
|
|
6868
6833
|
isDisabled: isDisabled,
|
|
6869
6834
|
isFocused: isFocused
|
|
@@ -6881,7 +6846,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6881
6846
|
var commonProps = this.commonProps;
|
|
6882
6847
|
var isDisabled = this.props.isDisabled;
|
|
6883
6848
|
var isFocused = this.state.isFocused;
|
|
6884
|
-
return /*#__PURE__*/
|
|
6849
|
+
return /*#__PURE__*/React.createElement(IndicatorSeparator, _extends({}, commonProps, {
|
|
6885
6850
|
isDisabled: isDisabled,
|
|
6886
6851
|
isFocused: isFocused
|
|
6887
6852
|
}));
|
|
@@ -6900,7 +6865,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6900
6865
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
6901
6866
|
'aria-hidden': 'true'
|
|
6902
6867
|
};
|
|
6903
|
-
return /*#__PURE__*/
|
|
6868
|
+
return /*#__PURE__*/React.createElement(DropdownIndicator, _extends({}, commonProps, {
|
|
6904
6869
|
innerProps: innerProps,
|
|
6905
6870
|
isDisabled: isDisabled,
|
|
6906
6871
|
isFocused: isFocused
|
|
@@ -6965,7 +6930,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6965
6930
|
'aria-selected': _this4.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
6966
6931
|
};
|
|
6967
6932
|
|
|
6968
|
-
return /*#__PURE__*/
|
|
6933
|
+
return /*#__PURE__*/React.createElement(Option, _extends({}, commonProps, {
|
|
6969
6934
|
innerProps: innerProps,
|
|
6970
6935
|
data: data,
|
|
6971
6936
|
isDisabled: isDisabled,
|
|
@@ -6987,7 +6952,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6987
6952
|
groupIndex = item.index;
|
|
6988
6953
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
6989
6954
|
var headingId = "".concat(groupId, "-heading");
|
|
6990
|
-
return /*#__PURE__*/
|
|
6955
|
+
return /*#__PURE__*/React.createElement(Group, _extends({}, commonProps, {
|
|
6991
6956
|
key: groupId,
|
|
6992
6957
|
data: _data,
|
|
6993
6958
|
options: options,
|
|
@@ -7009,13 +6974,13 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7009
6974
|
inputValue: inputValue
|
|
7010
6975
|
});
|
|
7011
6976
|
if (message === null) return null;
|
|
7012
|
-
menuUI = /*#__PURE__*/
|
|
6977
|
+
menuUI = /*#__PURE__*/React.createElement(LoadingMessage, commonProps, message);
|
|
7013
6978
|
} else {
|
|
7014
6979
|
var _message = noOptionsMessage({
|
|
7015
6980
|
inputValue: inputValue
|
|
7016
6981
|
});
|
|
7017
6982
|
if (_message === null) return null;
|
|
7018
|
-
menuUI = /*#__PURE__*/
|
|
6983
|
+
menuUI = /*#__PURE__*/React.createElement(NoOptionsMessage, commonProps, _message);
|
|
7019
6984
|
}
|
|
7020
6985
|
var menuPlacementProps = {
|
|
7021
6986
|
minMenuHeight: minMenuHeight,
|
|
@@ -7024,12 +6989,12 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7024
6989
|
menuPosition: menuPosition,
|
|
7025
6990
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
7026
6991
|
};
|
|
7027
|
-
var menuElement = /*#__PURE__*/
|
|
6992
|
+
var menuElement = /*#__PURE__*/React.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
7028
6993
|
var ref = _ref4.ref,
|
|
7029
6994
|
_ref4$placerProps = _ref4.placerProps,
|
|
7030
6995
|
placement = _ref4$placerProps.placement,
|
|
7031
6996
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
7032
|
-
return /*#__PURE__*/
|
|
6997
|
+
return /*#__PURE__*/React.createElement(Menu, _extends({}, commonProps, menuPlacementProps, {
|
|
7033
6998
|
innerRef: ref,
|
|
7034
6999
|
innerProps: {
|
|
7035
7000
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -7037,13 +7002,13 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7037
7002
|
},
|
|
7038
7003
|
isLoading: isLoading,
|
|
7039
7004
|
placement: placement
|
|
7040
|
-
}), /*#__PURE__*/
|
|
7005
|
+
}), /*#__PURE__*/React.createElement(ScrollManager, {
|
|
7041
7006
|
captureEnabled: captureMenuScroll,
|
|
7042
7007
|
onTopArrive: onMenuScrollToTop,
|
|
7043
7008
|
onBottomArrive: onMenuScrollToBottom,
|
|
7044
7009
|
lockEnabled: menuShouldBlockScroll
|
|
7045
7010
|
}, function (scrollTargetRef) {
|
|
7046
|
-
return /*#__PURE__*/
|
|
7011
|
+
return /*#__PURE__*/React.createElement(MenuList, _extends({}, commonProps, {
|
|
7047
7012
|
innerRef: function innerRef(instance) {
|
|
7048
7013
|
_this4.getMenuListRef(instance);
|
|
7049
7014
|
scrollTargetRef(instance);
|
|
@@ -7063,7 +7028,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7063
7028
|
// positioning behaviour is almost identical for portalled and fixed,
|
|
7064
7029
|
// so we use the same component. the actual portalling logic is forked
|
|
7065
7030
|
// within the component based on `menuPosition`
|
|
7066
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/
|
|
7031
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React.createElement(MenuPortal, _extends({}, commonProps, {
|
|
7067
7032
|
appendTo: menuPortalTarget,
|
|
7068
7033
|
controlElement: this.controlRef,
|
|
7069
7034
|
menuPlacement: menuPlacement,
|
|
@@ -7082,7 +7047,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7082
7047
|
required = _this$props13.required;
|
|
7083
7048
|
var selectValue = this.state.selectValue;
|
|
7084
7049
|
if (required && !this.hasValue() && !isDisabled) {
|
|
7085
|
-
return /*#__PURE__*/
|
|
7050
|
+
return /*#__PURE__*/React.createElement(RequiredInput$1, {
|
|
7086
7051
|
name: name,
|
|
7087
7052
|
onFocus: this.onValueInputFocus
|
|
7088
7053
|
});
|
|
@@ -7093,29 +7058,29 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7093
7058
|
var value = selectValue.map(function (opt) {
|
|
7094
7059
|
return _this5.getOptionValue(opt);
|
|
7095
7060
|
}).join(delimiter);
|
|
7096
|
-
return /*#__PURE__*/
|
|
7061
|
+
return /*#__PURE__*/React.createElement("input", {
|
|
7097
7062
|
name: name,
|
|
7098
7063
|
type: "hidden",
|
|
7099
7064
|
value: value
|
|
7100
7065
|
});
|
|
7101
7066
|
} else {
|
|
7102
7067
|
var input = selectValue.length > 0 ? selectValue.map(function (opt, i) {
|
|
7103
|
-
return /*#__PURE__*/
|
|
7068
|
+
return /*#__PURE__*/React.createElement("input", {
|
|
7104
7069
|
key: "i-".concat(i),
|
|
7105
7070
|
name: name,
|
|
7106
7071
|
type: "hidden",
|
|
7107
7072
|
value: _this5.getOptionValue(opt)
|
|
7108
7073
|
});
|
|
7109
|
-
}) : /*#__PURE__*/
|
|
7074
|
+
}) : /*#__PURE__*/React.createElement("input", {
|
|
7110
7075
|
name: name,
|
|
7111
7076
|
type: "hidden",
|
|
7112
7077
|
value: ""
|
|
7113
7078
|
});
|
|
7114
|
-
return /*#__PURE__*/
|
|
7079
|
+
return /*#__PURE__*/React.createElement("div", null, input);
|
|
7115
7080
|
}
|
|
7116
7081
|
} else {
|
|
7117
7082
|
var _value = selectValue[0] ? this.getOptionValue(selectValue[0]) : '';
|
|
7118
|
-
return /*#__PURE__*/
|
|
7083
|
+
return /*#__PURE__*/React.createElement("input", {
|
|
7119
7084
|
name: name,
|
|
7120
7085
|
type: "hidden",
|
|
7121
7086
|
value: _value
|
|
@@ -7133,7 +7098,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7133
7098
|
isFocused = _this$state6.isFocused,
|
|
7134
7099
|
selectValue = _this$state6.selectValue;
|
|
7135
7100
|
var focusableOptions = this.getFocusableOptions();
|
|
7136
|
-
return /*#__PURE__*/
|
|
7101
|
+
return /*#__PURE__*/React.createElement(LiveRegion$1, _extends({}, commonProps, {
|
|
7137
7102
|
id: this.getElementId('live-region'),
|
|
7138
7103
|
ariaSelection: ariaSelection,
|
|
7139
7104
|
focusedOption: focusedOption,
|
|
@@ -7159,7 +7124,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7159
7124
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
7160
7125
|
var isFocused = this.state.isFocused;
|
|
7161
7126
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
7162
|
-
return /*#__PURE__*/
|
|
7127
|
+
return /*#__PURE__*/React.createElement(SelectContainer, _extends({}, commonProps, {
|
|
7163
7128
|
className: className,
|
|
7164
7129
|
innerProps: {
|
|
7165
7130
|
id: id,
|
|
@@ -7167,7 +7132,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7167
7132
|
},
|
|
7168
7133
|
isDisabled: isDisabled,
|
|
7169
7134
|
isFocused: isFocused
|
|
7170
|
-
}), this.renderLiveRegion(), /*#__PURE__*/
|
|
7135
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React.createElement(Control, _extends({}, commonProps, {
|
|
7171
7136
|
innerRef: this.getControlRef,
|
|
7172
7137
|
innerProps: {
|
|
7173
7138
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -7176,9 +7141,9 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7176
7141
|
isDisabled: isDisabled,
|
|
7177
7142
|
isFocused: isFocused,
|
|
7178
7143
|
menuIsOpen: menuIsOpen
|
|
7179
|
-
}), /*#__PURE__*/
|
|
7144
|
+
}), /*#__PURE__*/React.createElement(ValueContainer, _extends({}, commonProps, {
|
|
7180
7145
|
isDisabled: isDisabled
|
|
7181
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/
|
|
7146
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React.createElement(IndicatorsContainer, _extends({}, commonProps, {
|
|
7182
7147
|
isDisabled: isDisabled
|
|
7183
7148
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
7184
7149
|
}
|
|
@@ -7245,7 +7210,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7245
7210
|
}
|
|
7246
7211
|
}]);
|
|
7247
7212
|
return Select;
|
|
7248
|
-
}(
|
|
7213
|
+
}(Component);
|
|
7249
7214
|
Select.defaultProps = defaultProps;
|
|
7250
7215
|
|
|
7251
7216
|
var _excluded$1 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
@@ -7264,38 +7229,38 @@ function useStateManager(_ref) {
|
|
|
7264
7229
|
propsOnMenuOpen = _ref.onMenuOpen,
|
|
7265
7230
|
propsValue = _ref.value,
|
|
7266
7231
|
restSelectProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
7267
|
-
var _useState =
|
|
7232
|
+
var _useState = useState(propsInputValue !== undefined ? propsInputValue : defaultInputValue),
|
|
7268
7233
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7269
7234
|
stateInputValue = _useState2[0],
|
|
7270
7235
|
setStateInputValue = _useState2[1];
|
|
7271
|
-
var _useState3 =
|
|
7236
|
+
var _useState3 = useState(propsMenuIsOpen !== undefined ? propsMenuIsOpen : defaultMenuIsOpen),
|
|
7272
7237
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
7273
7238
|
stateMenuIsOpen = _useState4[0],
|
|
7274
7239
|
setStateMenuIsOpen = _useState4[1];
|
|
7275
|
-
var _useState5 =
|
|
7240
|
+
var _useState5 = useState(propsValue !== undefined ? propsValue : defaultValue),
|
|
7276
7241
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
7277
7242
|
stateValue = _useState6[0],
|
|
7278
7243
|
setStateValue = _useState6[1];
|
|
7279
|
-
var onChange =
|
|
7244
|
+
var onChange = useCallback(function (value, actionMeta) {
|
|
7280
7245
|
if (typeof propsOnChange === 'function') {
|
|
7281
7246
|
propsOnChange(value, actionMeta);
|
|
7282
7247
|
}
|
|
7283
7248
|
setStateValue(value);
|
|
7284
7249
|
}, [propsOnChange]);
|
|
7285
|
-
var onInputChange =
|
|
7250
|
+
var onInputChange = useCallback(function (value, actionMeta) {
|
|
7286
7251
|
var newValue;
|
|
7287
7252
|
if (typeof propsOnInputChange === 'function') {
|
|
7288
7253
|
newValue = propsOnInputChange(value, actionMeta);
|
|
7289
7254
|
}
|
|
7290
7255
|
setStateInputValue(newValue !== undefined ? newValue : value);
|
|
7291
7256
|
}, [propsOnInputChange]);
|
|
7292
|
-
var onMenuOpen =
|
|
7257
|
+
var onMenuOpen = useCallback(function () {
|
|
7293
7258
|
if (typeof propsOnMenuOpen === 'function') {
|
|
7294
7259
|
propsOnMenuOpen();
|
|
7295
7260
|
}
|
|
7296
7261
|
setStateMenuIsOpen(true);
|
|
7297
7262
|
}, [propsOnMenuOpen]);
|
|
7298
|
-
var onMenuClose =
|
|
7263
|
+
var onMenuClose = useCallback(function () {
|
|
7299
7264
|
if (typeof propsOnMenuClose === 'function') {
|
|
7300
7265
|
propsOnMenuClose();
|
|
7301
7266
|
}
|
|
@@ -7369,16 +7334,16 @@ function useCreatable(_ref) {
|
|
|
7369
7334
|
isMulti = restSelectProps.isMulti,
|
|
7370
7335
|
value = restSelectProps.value,
|
|
7371
7336
|
name = restSelectProps.name;
|
|
7372
|
-
var newOption =
|
|
7337
|
+
var newOption = useMemo(function () {
|
|
7373
7338
|
return isValidNewOption(inputValue, cleanValue(value), propsOptions, {
|
|
7374
7339
|
getOptionValue: getOptionValue$1$1,
|
|
7375
7340
|
getOptionLabel: getOptionLabel$1$1
|
|
7376
7341
|
}) ? getNewOptionData(inputValue, formatCreateLabel(inputValue)) : undefined;
|
|
7377
7342
|
}, [formatCreateLabel, getNewOptionData, getOptionLabel$1$1, getOptionValue$1$1, inputValue, isValidNewOption, propsOptions, value]);
|
|
7378
|
-
var options =
|
|
7343
|
+
var options = useMemo(function () {
|
|
7379
7344
|
return (allowCreateWhileLoading || !isLoading) && newOption ? createOptionPosition === 'first' ? [newOption].concat(_toConsumableArray(propsOptions)) : [].concat(_toConsumableArray(propsOptions), [newOption]) : propsOptions;
|
|
7380
7345
|
}, [allowCreateWhileLoading, createOptionPosition, isLoading, newOption, propsOptions]);
|
|
7381
|
-
var onChange =
|
|
7346
|
+
var onChange = useCallback(function (newValue, actionMeta) {
|
|
7382
7347
|
if (actionMeta.action !== 'select-option') {
|
|
7383
7348
|
return propsOnChange(newValue, actionMeta);
|
|
7384
7349
|
}
|
|
@@ -7403,10 +7368,10 @@ function useCreatable(_ref) {
|
|
|
7403
7368
|
});
|
|
7404
7369
|
}
|
|
7405
7370
|
|
|
7406
|
-
var CreatableSelect = /*#__PURE__*/
|
|
7371
|
+
var CreatableSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
7407
7372
|
var creatableProps = useStateManager(props);
|
|
7408
7373
|
var selectProps = useCreatable(creatableProps);
|
|
7409
|
-
return /*#__PURE__*/
|
|
7374
|
+
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
7410
7375
|
ref: ref
|
|
7411
7376
|
}, selectProps));
|
|
7412
7377
|
});
|
|
@@ -7421,15 +7386,15 @@ const SelectControl = props => {
|
|
|
7421
7386
|
inputBorderColor,
|
|
7422
7387
|
inputBorderColorHover
|
|
7423
7388
|
} = props.selectProps;
|
|
7424
|
-
return /*#__PURE__*/
|
|
7425
|
-
className:
|
|
7389
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, before, /*#__PURE__*/React__default.createElement(components$1.Control, Object.assign({}, props, {
|
|
7390
|
+
className: clsx('select__control', inputFill, inputShape, inputBorderColor && `border-color_${inputBorderColor}`, inputBorderColorHover && `border-color_hover_${inputBorderColorHover}`)
|
|
7426
7391
|
})), after);
|
|
7427
7392
|
};
|
|
7428
7393
|
SelectControl.propTypes = {
|
|
7429
|
-
selectProps:
|
|
7430
|
-
inputFill:
|
|
7431
|
-
inputShape:
|
|
7432
|
-
set:
|
|
7394
|
+
selectProps: PropTypes.shape({
|
|
7395
|
+
inputFill: PropTypes.string,
|
|
7396
|
+
inputShape: PropTypes.string,
|
|
7397
|
+
set: PropTypes.string
|
|
7433
7398
|
})
|
|
7434
7399
|
};
|
|
7435
7400
|
SelectControl.__docgenInfo = {
|
|
@@ -7469,7 +7434,7 @@ const SelectIndicatorsContainer = props => {
|
|
|
7469
7434
|
showBadge,
|
|
7470
7435
|
value
|
|
7471
7436
|
} = props.selectProps;
|
|
7472
|
-
return /*#__PURE__*/
|
|
7437
|
+
return /*#__PURE__*/React__default.createElement(components$1.IndicatorsContainer, props, showBadge && value?.length > 0 ? /*#__PURE__*/React__default.createElement(Badge, {
|
|
7473
7438
|
appearance: badgeAppearance,
|
|
7474
7439
|
size: badgeSize,
|
|
7475
7440
|
textSize: badgeTextSize,
|
|
@@ -7489,18 +7454,18 @@ const SelectDropdownIndicator = props => {
|
|
|
7489
7454
|
dropdownIconFill,
|
|
7490
7455
|
dropdownIconStroke
|
|
7491
7456
|
} = props.selectProps;
|
|
7492
|
-
return /*#__PURE__*/
|
|
7457
|
+
return /*#__PURE__*/React__default.createElement(components$1.DropdownIndicator, props, dropdownIcon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
7493
7458
|
SvgImage: dropdownIcon,
|
|
7494
7459
|
iconFill: dropdownIconFill,
|
|
7495
7460
|
iconStroke: dropdownIconStroke
|
|
7496
7461
|
}) : props.children);
|
|
7497
7462
|
};
|
|
7498
7463
|
SelectDropdownIndicator.propTypes = {
|
|
7499
|
-
selectProps:
|
|
7464
|
+
selectProps: PropTypes.shape({
|
|
7500
7465
|
// "dropdownIcon" is SvgImage(file.svg)
|
|
7501
|
-
dropdownIcon:
|
|
7502
|
-
dropdownIconFill:
|
|
7503
|
-
dropdownIconStroke:
|
|
7466
|
+
dropdownIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
|
|
7467
|
+
dropdownIconFill: PropTypes.string,
|
|
7468
|
+
dropdownIconStroke: PropTypes.string
|
|
7504
7469
|
})
|
|
7505
7470
|
};
|
|
7506
7471
|
SelectDropdownIndicator.__docgenInfo = {
|
|
@@ -7545,16 +7510,16 @@ const SelectGroupHeading = props => {
|
|
|
7545
7510
|
headingTextSize,
|
|
7546
7511
|
headingTextColor
|
|
7547
7512
|
} = props.selectProps;
|
|
7548
|
-
return /*#__PURE__*/
|
|
7549
|
-
className:
|
|
7550
|
-
}), /*#__PURE__*/
|
|
7513
|
+
return /*#__PURE__*/React__default.createElement(components$1.GroupHeading, Object.assign({}, props, {
|
|
7514
|
+
className: clsx('select__menu-group-heading', headingFill, headingFillHover)
|
|
7515
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
7551
7516
|
size: headingTextSize,
|
|
7552
7517
|
textWeight: headingTextWeight,
|
|
7553
7518
|
textColor: headingTextColor
|
|
7554
7519
|
}, props.data.label));
|
|
7555
7520
|
};
|
|
7556
7521
|
SelectGroupHeading.propTypes = {
|
|
7557
|
-
selectProps:
|
|
7522
|
+
selectProps: PropTypes.shape({})
|
|
7558
7523
|
};
|
|
7559
7524
|
SelectGroupHeading.__docgenInfo = {
|
|
7560
7525
|
"description": "",
|
|
@@ -7578,17 +7543,17 @@ const SelectInput = props => {
|
|
|
7578
7543
|
inputTextColor,
|
|
7579
7544
|
inputCaretColor
|
|
7580
7545
|
} = props.selectProps;
|
|
7581
|
-
return /*#__PURE__*/
|
|
7582
|
-
className:
|
|
7546
|
+
return /*#__PURE__*/React__default.createElement(components$1.Input, Object.assign({}, props, {
|
|
7547
|
+
className: clsx(inputTextSize && `text_size_${inputTextSize}`, inputTextColor && `text-color_${inputTextColor}`, inputCaretColor && `caret-color_${inputCaretColor}`)
|
|
7583
7548
|
}));
|
|
7584
7549
|
};
|
|
7585
7550
|
SelectInput.propTypes = {
|
|
7586
|
-
selectProps:
|
|
7587
|
-
inputTextSize:
|
|
7588
|
-
inputTextColor:
|
|
7589
|
-
inputCaretColor:
|
|
7551
|
+
selectProps: PropTypes.shape({
|
|
7552
|
+
inputTextSize: PropTypes.string,
|
|
7553
|
+
inputTextColor: PropTypes.string,
|
|
7554
|
+
inputCaretColor: PropTypes.string
|
|
7590
7555
|
}),
|
|
7591
|
-
children:
|
|
7556
|
+
children: PropTypes.any
|
|
7592
7557
|
};
|
|
7593
7558
|
SelectInput.__docgenInfo = {
|
|
7594
7559
|
"description": "",
|
|
@@ -7632,18 +7597,18 @@ const SelectMenu = props => {
|
|
|
7632
7597
|
menuAfter,
|
|
7633
7598
|
menuBefore
|
|
7634
7599
|
} = props.selectProps;
|
|
7635
|
-
return /*#__PURE__*/
|
|
7636
|
-
className:
|
|
7637
|
-
}), menuBefore, props.selectProps.fetchingData ? /*#__PURE__*/
|
|
7600
|
+
return /*#__PURE__*/React__default.createElement(components$1.Menu, Object.assign({}, props, {
|
|
7601
|
+
className: clsx(elevation && `elevation_${elevation}`)
|
|
7602
|
+
}), menuBefore, props.selectProps.fetchingData ? /*#__PURE__*/React__default.createElement("span", {
|
|
7638
7603
|
className: "fetching"
|
|
7639
|
-
}, "Fetching data...") : /*#__PURE__*/
|
|
7604
|
+
}, "Fetching data...") : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, props.children), menuAfter);
|
|
7640
7605
|
};
|
|
7641
7606
|
SelectMenu.propTypes = {
|
|
7642
|
-
selectProps:
|
|
7643
|
-
fetchingData:
|
|
7644
|
-
set:
|
|
7607
|
+
selectProps: PropTypes.shape({
|
|
7608
|
+
fetchingData: PropTypes.any,
|
|
7609
|
+
set: PropTypes.string
|
|
7645
7610
|
}),
|
|
7646
|
-
children:
|
|
7611
|
+
children: PropTypes.any
|
|
7647
7612
|
};
|
|
7648
7613
|
SelectMenu.__docgenInfo = {
|
|
7649
7614
|
"description": "",
|
|
@@ -7682,7 +7647,7 @@ const SelectMultiValueContainer = props => {
|
|
|
7682
7647
|
multipleItemFill,
|
|
7683
7648
|
multipleItemFillHover
|
|
7684
7649
|
} = props.selectProps;
|
|
7685
|
-
return /*#__PURE__*/
|
|
7650
|
+
return /*#__PURE__*/React__default.createElement(components$1.MultiValueContainer, props, /*#__PURE__*/React__default.createElement(Group$2, {
|
|
7686
7651
|
className: "select__multi-value-wrapper",
|
|
7687
7652
|
direction: "horizontal",
|
|
7688
7653
|
alignItems: "center",
|
|
@@ -7702,7 +7667,7 @@ const SelectMultiValueLabel = props => {
|
|
|
7702
7667
|
multipleItemTextSize,
|
|
7703
7668
|
multipleItemTextColor
|
|
7704
7669
|
} = props.selectProps;
|
|
7705
|
-
return /*#__PURE__*/
|
|
7670
|
+
return /*#__PURE__*/React__default.createElement(components$1.MultiValueLabel, props, /*#__PURE__*/React__default.createElement(Text, {
|
|
7706
7671
|
size: multipleItemTextSize,
|
|
7707
7672
|
textColor: multipleItemTextColor
|
|
7708
7673
|
}, props.data.label));
|
|
@@ -7719,7 +7684,7 @@ const SelectMultiValueRemove = props => {
|
|
|
7719
7684
|
multipleItemIcon,
|
|
7720
7685
|
multipleItemIconFill
|
|
7721
7686
|
} = props.selectProps;
|
|
7722
|
-
return /*#__PURE__*/
|
|
7687
|
+
return /*#__PURE__*/React__default.createElement(components$1.MultiValueRemove, props, /*#__PURE__*/React__default.createElement(Icon, {
|
|
7723
7688
|
SvgImage: multipleItemIcon,
|
|
7724
7689
|
iconFill: multipleItemIconFill
|
|
7725
7690
|
}));
|
|
@@ -7740,20 +7705,20 @@ const SelectNoOptions = props => {
|
|
|
7740
7705
|
noOptionsTextColor,
|
|
7741
7706
|
noOptionsText
|
|
7742
7707
|
} = props.selectProps;
|
|
7743
|
-
return /*#__PURE__*/
|
|
7744
|
-
className:
|
|
7745
|
-
}), /*#__PURE__*/
|
|
7708
|
+
return /*#__PURE__*/React__default.createElement(components$1.NoOptionsMessage, Object.assign({}, props, {
|
|
7709
|
+
className: clsx(optionFill, optionBorder, optionBorderType)
|
|
7710
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
7746
7711
|
size: noOptionsTextSize,
|
|
7747
7712
|
textColor: noOptionsTextColor
|
|
7748
7713
|
}, noOptionsText));
|
|
7749
7714
|
};
|
|
7750
7715
|
SelectNoOptions.propTypes = {
|
|
7751
|
-
selectProps:
|
|
7752
|
-
noOptionsTextSize:
|
|
7753
|
-
noOptionsTextColor:
|
|
7754
|
-
noOptionsText:
|
|
7716
|
+
selectProps: PropTypes.shape({
|
|
7717
|
+
noOptionsTextSize: PropTypes.string,
|
|
7718
|
+
noOptionsTextColor: PropTypes.string,
|
|
7719
|
+
noOptionsText: PropTypes.string
|
|
7755
7720
|
}),
|
|
7756
|
-
children:
|
|
7721
|
+
children: PropTypes.any
|
|
7757
7722
|
};
|
|
7758
7723
|
SelectNoOptions.__docgenInfo = {
|
|
7759
7724
|
"description": "",
|
|
@@ -7814,15 +7779,15 @@ const SelectOption = props => {
|
|
|
7814
7779
|
optionBefore,
|
|
7815
7780
|
optionAfter
|
|
7816
7781
|
} = props.selectProps;
|
|
7817
|
-
return /*#__PURE__*/
|
|
7818
|
-
className:
|
|
7819
|
-
}), optionBefore, /*#__PURE__*/
|
|
7782
|
+
return /*#__PURE__*/React__default.createElement(components$1.Option, Object.assign({}, props, {
|
|
7783
|
+
className: clsx('select__menu-list-item', isSelected && 'select__menu-list-item_state_selected', menuItemSize && `select__menu-list-item_size_${menuItemSize}`, optionFill, optionBorder, optionBorderType, optionFillHover, optionShape)
|
|
7784
|
+
}), optionBefore, /*#__PURE__*/React__default.createElement(Text, {
|
|
7820
7785
|
className: "select__menu-list-item_option",
|
|
7821
7786
|
size: optionTextSize,
|
|
7822
7787
|
textColor: optionTextColor
|
|
7823
|
-
}, label), isSelected && /*#__PURE__*/
|
|
7788
|
+
}, label), isSelected && /*#__PURE__*/React__default.createElement("div", {
|
|
7824
7789
|
className: "select__menu-list-item_selected"
|
|
7825
|
-
}, optionSelected), optionAfter, showDivider && /*#__PURE__*/
|
|
7790
|
+
}, optionSelected), optionAfter, showDivider && /*#__PURE__*/React__default.createElement(Divider, {
|
|
7826
7791
|
direction: dividerDirection,
|
|
7827
7792
|
fill: dividerFill,
|
|
7828
7793
|
size: dividerSize,
|
|
@@ -7830,16 +7795,16 @@ const SelectOption = props => {
|
|
|
7830
7795
|
}));
|
|
7831
7796
|
};
|
|
7832
7797
|
SelectOption.propTypes = {
|
|
7833
|
-
selectProps:
|
|
7834
|
-
optionFill:
|
|
7835
|
-
optionTextSize:
|
|
7836
|
-
optionTextColor:
|
|
7837
|
-
optionShape:
|
|
7838
|
-
optionBefore:
|
|
7839
|
-
optionAfter:
|
|
7798
|
+
selectProps: PropTypes.shape({
|
|
7799
|
+
optionFill: PropTypes.string,
|
|
7800
|
+
optionTextSize: PropTypes.string,
|
|
7801
|
+
optionTextColor: PropTypes.string,
|
|
7802
|
+
optionShape: PropTypes.string,
|
|
7803
|
+
optionBefore: PropTypes.any,
|
|
7804
|
+
optionAfter: PropTypes.any
|
|
7840
7805
|
}),
|
|
7841
|
-
label:
|
|
7842
|
-
isSelected:
|
|
7806
|
+
label: PropTypes.string,
|
|
7807
|
+
isSelected: PropTypes.any
|
|
7843
7808
|
};
|
|
7844
7809
|
SelectOption.__docgenInfo = {
|
|
7845
7810
|
"description": "",
|
|
@@ -7901,17 +7866,17 @@ const SelectPlaceholder = props => {
|
|
|
7901
7866
|
placeholderTextSize,
|
|
7902
7867
|
placeholderTextColor
|
|
7903
7868
|
} = props.selectProps;
|
|
7904
|
-
return /*#__PURE__*/
|
|
7869
|
+
return /*#__PURE__*/React__default.createElement(components$1.Placeholder, props, /*#__PURE__*/React__default.createElement(Text, {
|
|
7905
7870
|
size: placeholderTextSize,
|
|
7906
7871
|
textColor: placeholderTextColor
|
|
7907
7872
|
}, props.children));
|
|
7908
7873
|
};
|
|
7909
7874
|
SelectPlaceholder.propTypes = {
|
|
7910
|
-
selectProps:
|
|
7911
|
-
placeholderTextSize:
|
|
7912
|
-
placeholderTextColor:
|
|
7875
|
+
selectProps: PropTypes.shape({
|
|
7876
|
+
placeholderTextSize: PropTypes.string,
|
|
7877
|
+
placeholderTextColor: PropTypes.string
|
|
7913
7878
|
}),
|
|
7914
|
-
children:
|
|
7879
|
+
children: PropTypes.any
|
|
7915
7880
|
};
|
|
7916
7881
|
SelectPlaceholder.__docgenInfo = {
|
|
7917
7882
|
"description": "",
|
|
@@ -7953,18 +7918,18 @@ const SelectSingleValue = props => {
|
|
|
7953
7918
|
inputTextSize,
|
|
7954
7919
|
inputTextColor
|
|
7955
7920
|
} = props.selectProps;
|
|
7956
|
-
return /*#__PURE__*/
|
|
7921
|
+
return /*#__PURE__*/React__default.createElement(components$1.SingleValue, props, data.optionBefore, /*#__PURE__*/React__default.createElement(Text, {
|
|
7957
7922
|
size: inputTextSize,
|
|
7958
7923
|
textColor: inputTextColor
|
|
7959
7924
|
}, props.children), data.optionAfter);
|
|
7960
7925
|
};
|
|
7961
7926
|
SelectSingleValue.propTypes = {
|
|
7962
|
-
selectProps:
|
|
7963
|
-
inputTextSize:
|
|
7964
|
-
inputTextColor:
|
|
7927
|
+
selectProps: PropTypes.shape({
|
|
7928
|
+
inputTextSize: PropTypes.string,
|
|
7929
|
+
inputTextColor: PropTypes.string
|
|
7965
7930
|
}),
|
|
7966
|
-
children:
|
|
7967
|
-
data:
|
|
7931
|
+
children: PropTypes.any,
|
|
7932
|
+
data: PropTypes.object
|
|
7968
7933
|
};
|
|
7969
7934
|
SelectSingleValue.__docgenInfo = {
|
|
7970
7935
|
"description": "",
|
|
@@ -8010,13 +7975,13 @@ const SelectValueContainer = props => {
|
|
|
8010
7975
|
inputBefore,
|
|
8011
7976
|
inputAfter
|
|
8012
7977
|
} = props.selectProps;
|
|
8013
|
-
return /*#__PURE__*/
|
|
7978
|
+
return /*#__PURE__*/React__default.createElement(components$1.ValueContainer, props, inputBefore, props.children, inputAfter);
|
|
8014
7979
|
};
|
|
8015
7980
|
SelectValueContainer.propTypes = {
|
|
8016
|
-
children:
|
|
8017
|
-
selectProps:
|
|
8018
|
-
inputBefore:
|
|
8019
|
-
inputAfter:
|
|
7981
|
+
children: PropTypes.any,
|
|
7982
|
+
selectProps: PropTypes.shape({
|
|
7983
|
+
inputBefore: PropTypes.any,
|
|
7984
|
+
inputAfter: PropTypes.any
|
|
8020
7985
|
})
|
|
8021
7986
|
};
|
|
8022
7987
|
SelectValueContainer.__docgenInfo = {
|
|
@@ -8051,8 +8016,8 @@ SelectValueContainer.__docgenInfo = {
|
|
|
8051
8016
|
}
|
|
8052
8017
|
};
|
|
8053
8018
|
|
|
8054
|
-
const SelectContainer = /*#__PURE__*/
|
|
8055
|
-
const clearStyle =
|
|
8019
|
+
const SelectContainer = /*#__PURE__*/React__default.forwardRef(function SelectContainer(props, ref) {
|
|
8020
|
+
const clearStyle = useMemo(() => new Proxy({}, {
|
|
8056
8021
|
get: (target, propKey) => () => {}
|
|
8057
8022
|
}), []);
|
|
8058
8023
|
const {
|
|
@@ -8106,107 +8071,107 @@ const SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(functio
|
|
|
8106
8071
|
value,
|
|
8107
8072
|
onChange
|
|
8108
8073
|
} = props;
|
|
8109
|
-
const defaultRef =
|
|
8074
|
+
const defaultRef = useRef(null);
|
|
8110
8075
|
const selectRef = ref || defaultRef;
|
|
8111
|
-
const borderColorClass = useDeviceTargetClass
|
|
8076
|
+
const borderColorClass = useDeviceTargetClass(props, {
|
|
8112
8077
|
prefix: 'border-color_',
|
|
8113
8078
|
propsKey: 'borderColor'
|
|
8114
8079
|
});
|
|
8115
|
-
const fillClass = useDeviceTargetClass
|
|
8080
|
+
const fillClass = useDeviceTargetClass(props, {
|
|
8116
8081
|
prefix: 'fill_',
|
|
8117
8082
|
propsKey: 'fill'
|
|
8118
8083
|
});
|
|
8119
|
-
const fillHoverClass = useDeviceTargetClass
|
|
8084
|
+
const fillHoverClass = useDeviceTargetClass(props, {
|
|
8120
8085
|
prefix: 'fill_hover_',
|
|
8121
8086
|
propsKey: 'fillHover'
|
|
8122
8087
|
});
|
|
8123
|
-
const shapeClass = useDeviceTargetClass
|
|
8088
|
+
const shapeClass = useDeviceTargetClass(props, {
|
|
8124
8089
|
prefix: 'select_shape_',
|
|
8125
8090
|
propsKey: 'shape'
|
|
8126
8091
|
});
|
|
8127
|
-
const sizeClass = useDeviceTargetClass
|
|
8092
|
+
const sizeClass = useDeviceTargetClass(props, {
|
|
8128
8093
|
prefix: 'select_size_',
|
|
8129
8094
|
propsKey: 'size'
|
|
8130
8095
|
});
|
|
8131
|
-
const optionFillClass = useDeviceTargetClass
|
|
8096
|
+
const optionFillClass = useDeviceTargetClass(props, {
|
|
8132
8097
|
prefix: 'fill_',
|
|
8133
8098
|
propsKey: 'optionFill'
|
|
8134
8099
|
});
|
|
8135
|
-
const optionFillHoverClass = useDeviceTargetClass
|
|
8100
|
+
const optionFillHoverClass = useDeviceTargetClass(props, {
|
|
8136
8101
|
prefix: 'fill_hover_',
|
|
8137
8102
|
propsKey: 'optionFillHover'
|
|
8138
8103
|
});
|
|
8139
|
-
const optionBorderClass = useDeviceTargetClass
|
|
8104
|
+
const optionBorderClass = useDeviceTargetClass(props, {
|
|
8140
8105
|
prefix: 'border-color_',
|
|
8141
8106
|
propsKey: 'optionBorder'
|
|
8142
8107
|
});
|
|
8143
|
-
const optionBorderTypeClass = useDeviceTargetClass
|
|
8108
|
+
const optionBorderTypeClass = useDeviceTargetClass(props, {
|
|
8144
8109
|
prefix: 'border_type_',
|
|
8145
8110
|
propsKey: 'optionBorderType'
|
|
8146
8111
|
});
|
|
8147
|
-
const optionTextSizeClass = useDeviceTargetClass
|
|
8112
|
+
const optionTextSizeClass = useDeviceTargetClass(props, {
|
|
8148
8113
|
propsKey: 'optionTextSize'
|
|
8149
8114
|
});
|
|
8150
|
-
const optionTextColorClass = useDeviceTargetClass
|
|
8115
|
+
const optionTextColorClass = useDeviceTargetClass(props, {
|
|
8151
8116
|
propsKey: 'optionTextColor'
|
|
8152
8117
|
});
|
|
8153
|
-
const optionShapeClass = useDeviceTargetClass
|
|
8118
|
+
const optionShapeClass = useDeviceTargetClass(props, {
|
|
8154
8119
|
propsKey: 'optionShape'
|
|
8155
8120
|
});
|
|
8156
|
-
const inputFillClass = useDeviceTargetClass
|
|
8121
|
+
const inputFillClass = useDeviceTargetClass(props, {
|
|
8157
8122
|
prefix: 'select__control_fill_',
|
|
8158
8123
|
propsKey: 'inputFill'
|
|
8159
8124
|
});
|
|
8160
|
-
const inputShapeClass = useDeviceTargetClass
|
|
8125
|
+
const inputShapeClass = useDeviceTargetClass(props, {
|
|
8161
8126
|
prefix: 'select__control_shape_',
|
|
8162
8127
|
propsKey: 'inputShape'
|
|
8163
8128
|
});
|
|
8164
|
-
const inputTextSizeClass = useDeviceTargetClass
|
|
8129
|
+
const inputTextSizeClass = useDeviceTargetClass(props, {
|
|
8165
8130
|
propsKey: 'inputTextSize'
|
|
8166
8131
|
});
|
|
8167
|
-
const inputTextColorClass = useDeviceTargetClass
|
|
8132
|
+
const inputTextColorClass = useDeviceTargetClass(props, {
|
|
8168
8133
|
propsKey: 'inputTextColor'
|
|
8169
8134
|
});
|
|
8170
|
-
const multipleItemTextSizeClass = useDeviceTargetClass
|
|
8135
|
+
const multipleItemTextSizeClass = useDeviceTargetClass(props, {
|
|
8171
8136
|
propsKey: 'multipleItemTextSize'
|
|
8172
8137
|
});
|
|
8173
|
-
const multipleItemTextColorClass = useDeviceTargetClass
|
|
8138
|
+
const multipleItemTextColorClass = useDeviceTargetClass(props, {
|
|
8174
8139
|
propsKey: 'multipleItemTextColor'
|
|
8175
8140
|
});
|
|
8176
|
-
const inputBorderColorClass = useDeviceTargetClass
|
|
8141
|
+
const inputBorderColorClass = useDeviceTargetClass(props, {
|
|
8177
8142
|
propsKey: 'inputBorderColor'
|
|
8178
8143
|
});
|
|
8179
|
-
const inputBorderColorHoverClass = useDeviceTargetClass
|
|
8144
|
+
const inputBorderColorHoverClass = useDeviceTargetClass(props, {
|
|
8180
8145
|
propsKey: 'inputBorderColorHover'
|
|
8181
8146
|
});
|
|
8182
|
-
const noOptionsTextSizeClass = useDeviceTargetClass
|
|
8147
|
+
const noOptionsTextSizeClass = useDeviceTargetClass(props, {
|
|
8183
8148
|
propsKey: 'noOptionsTextSize'
|
|
8184
8149
|
});
|
|
8185
|
-
const noOptionsTextColorClass = useDeviceTargetClass
|
|
8150
|
+
const noOptionsTextColorClass = useDeviceTargetClass(props, {
|
|
8186
8151
|
propsKey: 'noOptionsTextColor'
|
|
8187
8152
|
});
|
|
8188
|
-
const inputCaretColorClass = useDeviceTargetClass
|
|
8153
|
+
const inputCaretColorClass = useDeviceTargetClass(props, {
|
|
8189
8154
|
propsKey: 'inputCaretColor'
|
|
8190
8155
|
});
|
|
8191
|
-
const headingFillClass = useDeviceTargetClass
|
|
8156
|
+
const headingFillClass = useDeviceTargetClass(props, {
|
|
8192
8157
|
prefix: 'fill_',
|
|
8193
8158
|
propsKey: 'headingFill'
|
|
8194
8159
|
});
|
|
8195
|
-
const headingFillHoverClass = useDeviceTargetClass
|
|
8160
|
+
const headingFillHoverClass = useDeviceTargetClass(props, {
|
|
8196
8161
|
prefix: 'fill_hover_',
|
|
8197
8162
|
propsKey: 'headingFillHover'
|
|
8198
8163
|
});
|
|
8199
|
-
const headingTextSizeClass = useDeviceTargetClass
|
|
8164
|
+
const headingTextSizeClass = useDeviceTargetClass(props, {
|
|
8200
8165
|
propsKey: 'headingTextSize'
|
|
8201
8166
|
});
|
|
8202
|
-
const headingTextWeightClass = useDeviceTargetClass
|
|
8167
|
+
const headingTextWeightClass = useDeviceTargetClass(props, {
|
|
8203
8168
|
propsKey: 'headingTextWeight'
|
|
8204
8169
|
});
|
|
8205
|
-
const headingTextColorClass = useDeviceTargetClass
|
|
8170
|
+
const headingTextColorClass = useDeviceTargetClass(props, {
|
|
8206
8171
|
propsKey: 'headingTextColor'
|
|
8207
8172
|
});
|
|
8208
|
-
const SelectComponent =
|
|
8209
|
-
|
|
8173
|
+
const SelectComponent = useMemo(() => isCreatable ? CreatableSelect$1 : Select$1, [isCreatable]);
|
|
8174
|
+
useEffect(() => {
|
|
8210
8175
|
const onClickOutside = event => {
|
|
8211
8176
|
const isTargetSelectContainer = event.target.hasClass && event.target.hasClass('select_state_hide-value-container');
|
|
8212
8177
|
const isTargetInsideController = selectRef.current.controlRef.contains(event.target);
|
|
@@ -8224,13 +8189,13 @@ const SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(functio
|
|
|
8224
8189
|
};
|
|
8225
8190
|
}, []);
|
|
8226
8191
|
const selectAppearanceItem = selectConfig.appearance[appearance] || {};
|
|
8227
|
-
return /*#__PURE__*/
|
|
8192
|
+
return /*#__PURE__*/React__default.createElement(SelectComponent, {
|
|
8228
8193
|
after: after,
|
|
8229
8194
|
badgeAppearance: badgeAppearance,
|
|
8230
8195
|
badgeSize: badgeSize,
|
|
8231
8196
|
badgeTextSize: badgeTextSize,
|
|
8232
8197
|
before: before,
|
|
8233
|
-
className:
|
|
8198
|
+
className: clsx(className, 'select', fillClass, fillHoverClass, shapeClass, borderColorClass, sizeClass || selectAppearanceItem.size && `select_size_${selectAppearanceItem.size}`.replace(/([A-Z])/g, '-$1').toLowerCase(), hideValueContainer && 'select_state_hide-value-container', set && `select_set_${set}`),
|
|
8234
8199
|
classNamePrefix: "select",
|
|
8235
8200
|
clearIcon: clearIcon,
|
|
8236
8201
|
clearIconFill: clearIconFill,
|
|
@@ -8321,27 +8286,27 @@ const SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(functio
|
|
|
8321
8286
|
});
|
|
8322
8287
|
});
|
|
8323
8288
|
SelectContainer.propTypes = {
|
|
8324
|
-
className:
|
|
8289
|
+
className: PropTypes.string,
|
|
8325
8290
|
// "clearIcon" is SvgImage(file.svg)
|
|
8326
|
-
clearIcon:
|
|
8327
|
-
clearIconFill:
|
|
8328
|
-
clearIconStroke:
|
|
8329
|
-
closeMenuOnSelect:
|
|
8291
|
+
clearIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
|
|
8292
|
+
clearIconFill: PropTypes.string,
|
|
8293
|
+
clearIconStroke: PropTypes.string,
|
|
8294
|
+
closeMenuOnSelect: PropTypes.bool,
|
|
8330
8295
|
// "dropdownIcon" is SvgImage(file.svg)
|
|
8331
|
-
dropdownIcon:
|
|
8332
|
-
dropdownIconFill:
|
|
8333
|
-
dropdownIconStroke:
|
|
8334
|
-
filterOption:
|
|
8335
|
-
initialValue:
|
|
8336
|
-
inputAfter:
|
|
8337
|
-
inputBefore:
|
|
8338
|
-
isClearable:
|
|
8339
|
-
isSearchable:
|
|
8340
|
-
noOptionsText:
|
|
8341
|
-
openMenuOnClick:
|
|
8342
|
-
options:
|
|
8343
|
-
set:
|
|
8344
|
-
onChange:
|
|
8296
|
+
dropdownIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
|
|
8297
|
+
dropdownIconFill: PropTypes.string,
|
|
8298
|
+
dropdownIconStroke: PropTypes.string,
|
|
8299
|
+
filterOption: PropTypes.func,
|
|
8300
|
+
initialValue: PropTypes.any,
|
|
8301
|
+
inputAfter: PropTypes.any,
|
|
8302
|
+
inputBefore: PropTypes.any,
|
|
8303
|
+
isClearable: PropTypes.bool,
|
|
8304
|
+
isSearchable: PropTypes.bool,
|
|
8305
|
+
noOptionsText: PropTypes.string,
|
|
8306
|
+
openMenuOnClick: PropTypes.func,
|
|
8307
|
+
options: PropTypes.arrayOf(PropTypes.object),
|
|
8308
|
+
set: PropTypes.string,
|
|
8309
|
+
onChange: PropTypes.func
|
|
8345
8310
|
};
|
|
8346
8311
|
SelectContainer.defaultProps = {
|
|
8347
8312
|
animationOpen: 'select_animation_open',
|
|
@@ -8522,19 +8487,4 @@ const selectConfig = {
|
|
|
8522
8487
|
}
|
|
8523
8488
|
};
|
|
8524
8489
|
|
|
8525
|
-
|
|
8526
|
-
exports.SelectClearIndicator = SelectClearIndicator;
|
|
8527
|
-
exports.SelectControl = SelectControl;
|
|
8528
|
-
exports.SelectDropdownIndicator = SelectDropdownIndicator;
|
|
8529
|
-
exports.SelectGroupHeading = SelectGroupHeading;
|
|
8530
|
-
exports.SelectIndicatorsContainer = SelectIndicatorsContainer;
|
|
8531
|
-
exports.SelectInput = SelectInput;
|
|
8532
|
-
exports.SelectMenu = SelectMenu;
|
|
8533
|
-
exports.SelectMultiValueContainer = SelectMultiValueContainer;
|
|
8534
|
-
exports.SelectMultiValueLabel = SelectMultiValueLabel;
|
|
8535
|
-
exports.SelectMultiValueRemove = SelectMultiValueRemove;
|
|
8536
|
-
exports.SelectOption = SelectOption;
|
|
8537
|
-
exports.SelectPlaceholder = SelectPlaceholder;
|
|
8538
|
-
exports.SelectSingleValue = SelectSingleValue;
|
|
8539
|
-
exports.SelectValueContainer = SelectValueContainer;
|
|
8540
|
-
exports.selectConfig = selectConfig;
|
|
8490
|
+
export { SelectContainer as Select, SelectClearIndicator, SelectControl, SelectDropdownIndicator, SelectGroupHeading, SelectIndicatorsContainer, SelectInput, SelectMenu, SelectMultiValueContainer, SelectMultiValueLabel, SelectMultiValueRemove, SelectOption, SelectPlaceholder, SelectSingleValue, SelectValueContainer, selectConfig };
|