@orfium/ictinus 4.75.0 → 4.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +9 -22
- package/dist/components/Avatar/Avatar.style.js +3 -18
- package/dist/components/Avatar/AvatarStack/AvatarStack.d.ts +1 -1
- package/dist/components/Avatar/AvatarStack/AvatarStack.js +8 -24
- package/dist/components/Avatar/AvatarStack/AvatarStack.style.js +1 -12
- package/dist/components/Avatar/AvatarStack/index.js +0 -3
- package/dist/components/Avatar/AvatarStack/utils.js +1 -3
- package/dist/components/Avatar/index.js +0 -3
- package/dist/components/Avatar/utils.js +0 -5
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +5 -17
- package/dist/components/Breadcrumb/Breadcrumb.style.js +1 -9
- package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.js +2 -9
- package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.style.js +0 -5
- package/dist/components/Breadcrumb/Separator/Separator.js +1 -10
- package/dist/components/Breadcrumb/Separator/Separator.style.js +0 -4
- package/dist/components/Breadcrumb/index.js +0 -3
- package/dist/components/Button/Button.js +22 -37
- package/dist/components/Button/Button.style.js +3 -9
- package/dist/components/Button/ButtonLoader/ButtonLoader.js +5 -16
- package/dist/components/Button/ButtonLoader/ButtonLoader.style.js +0 -6
- package/dist/components/Button/ButtonLoader/index.js +0 -3
- package/dist/components/Button/index.js +0 -3
- package/dist/components/Button/utils.js +1 -15
- package/dist/components/ButtonBase/ButtonBase.d.ts +4 -4
- package/dist/components/ButtonBase/ButtonBase.js +31 -41
- package/dist/components/ButtonBase/ButtonBase.style.js +10 -28
- package/dist/components/ButtonBase/config.js +1 -1
- package/dist/components/ButtonBase/index.js +0 -3
- package/dist/components/ButtonBase/utils.js +6 -20
- package/dist/components/Card/Card.d.ts +2 -2
- package/dist/components/Card/Card.js +4 -10
- package/dist/components/Card/Card.style.js +3 -10
- package/dist/components/Card/index.js +0 -3
- package/dist/components/Chart/BarChart/BarChart.js +10 -29
- package/dist/components/Chart/BarChart/components/CustomLabel/CustomLabel.js +6 -13
- package/dist/components/Chart/BarChart/components/CustomLabel/index.js +0 -3
- package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.js +5 -15
- package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.style.js +1 -12
- package/dist/components/Chart/BarChart/components/CustomTooltip/index.js +0 -3
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.js +4 -11
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.style.js +1 -10
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/index.js +0 -3
- package/dist/components/Chart/BarChart/index.js +0 -3
- package/dist/components/Chart/BarChart/utils.js +4 -24
- package/dist/components/Chart/DonutChart/DonutChart.js +2 -13
- package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.js +4 -11
- package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.style.js +0 -8
- package/dist/components/Chart/DonutChart/components/CustomLabel/index.js +0 -3
- package/dist/components/Chart/DonutChart/index.js +0 -3
- package/dist/components/Chart/LineChart/LineChart.js +7 -22
- package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.js +2 -8
- package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.style.js +1 -10
- package/dist/components/Chart/LineChart/components/CustomTooltip/index.js +0 -3
- package/dist/components/Chart/LineChart/components/GradientLine/GradientLine.js +1 -7
- package/dist/components/Chart/LineChart/components/GradientLine/index.js +0 -3
- package/dist/components/Chart/LineChart/index.js +0 -3
- package/dist/components/Chart/LineChart/story.utils.js +0 -5
- package/dist/components/Chart/LineChart/utils.js +3 -9
- package/dist/components/Chart/Wrapper.js +2 -14
- package/dist/components/CheckBox/CheckBox.js +17 -39
- package/dist/components/CheckBox/CheckBox.style.js +4 -26
- package/dist/components/CheckBox/index.js +0 -3
- package/dist/components/Chip/Chip.js +13 -33
- package/dist/components/Chip/Chip.style.js +5 -15
- package/dist/components/Chip/Chip.types.js +1 -1
- package/dist/components/Chip/components/Badge/Badge.js +3 -10
- package/dist/components/Chip/components/Badge/Badge.style.js +2 -7
- package/dist/components/Chip/components/Badge/index.js +0 -3
- package/dist/components/Chip/index.js +0 -3
- package/dist/components/Chip/utils.js +5 -8
- package/dist/components/DatePicker/DatePickInput/DatePickInput.js +16 -37
- package/dist/components/DatePicker/DatePickInput/DatePickInput.style.js +0 -5
- package/dist/components/DatePicker/DatePickInput/index.js +0 -3
- package/dist/components/DatePicker/DatePicker.js +31 -63
- package/dist/components/DatePicker/DatePicker.style.js +0 -4
- package/dist/components/DatePicker/Day/Day.js +15 -32
- package/dist/components/DatePicker/Day/Day.style.js +11 -23
- package/dist/components/DatePicker/Day/index.js +0 -3
- package/dist/components/DatePicker/Month/Month.js +6 -26
- package/dist/components/DatePicker/Month/Month.style.js +1 -12
- package/dist/components/DatePicker/Month/Month.utils.js +1 -25
- package/dist/components/DatePicker/Month/index.js +0 -3
- package/dist/components/DatePicker/OverlayComponent/OverlayComponent.js +17 -33
- package/dist/components/DatePicker/OverlayComponent/OverlayComponent.style.js +1 -21
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.js +13 -32
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.js +2 -20
- package/dist/components/DatePicker/OverlayComponent/index.js +0 -3
- package/dist/components/DatePicker/index.js +0 -4
- package/dist/components/DatePicker/utils.js +0 -7
- package/dist/components/Drawer/Drawer.js +0 -9
- package/dist/components/Drawer/Drawer.style.js +0 -6
- package/dist/components/Drawer/Navigation/MenuItem/MenuItem.js +10 -26
- package/dist/components/Drawer/Navigation/Navigation.js +5 -20
- package/dist/components/Drawer/Navigation/Navigation.style.js +1 -34
- package/dist/components/Drawer/index.js +0 -3
- package/dist/components/ExpandCollapse/ExpandCollapse.js +15 -31
- package/dist/components/ExpandCollapse/ExpandCollapse.style.js +0 -5
- package/dist/components/ExpandCollapse/index.js +0 -3
- package/dist/components/ExpandCollapse/useManageContentRef.js +0 -13
- package/dist/components/ExpandCollapse/utils.js +2 -4
- package/dist/components/Filter/Filter.js +54 -90
- package/dist/components/Filter/Filter.style.js +15 -46
- package/dist/components/Filter/components/FilterBase/FilterBase.js +18 -36
- package/dist/components/Filter/components/FilterBase/index.js +0 -3
- package/dist/components/Filter/components/MultiFilter/MultiFilter.js +9 -23
- package/dist/components/Filter/components/MultiFilter/MultiFilter.style.js +1 -11
- package/dist/components/Filter/components/MultiFilter/index.js +0 -3
- package/dist/components/Filter/components/Options/Options.js +7 -16
- package/dist/components/Filter/components/Options/Options.style.js +0 -6
- package/dist/components/Filter/components/SingleFilter/SingleFilter.js +10 -19
- package/dist/components/Filter/components/SingleFilter/components/SearchInput/SearchInput.js +3 -16
- package/dist/components/Filter/components/SingleFilter/components/SearchInput/SearchInput.style.js +1 -9
- package/dist/components/Filter/components/SingleFilter/components/SearchInput/index.js +0 -3
- package/dist/components/Filter/components/SingleFilter/index.js +0 -3
- package/dist/components/Filter/hooks/useMultiFilterUtils.js +14 -32
- package/dist/components/Filter/index.js +0 -3
- package/dist/components/Filter/utils.d.ts +1 -1
- package/dist/components/Filter/utils.js +17 -39
- package/dist/components/Icon/Icon.js +8 -16
- package/dist/components/Icon/Icon.style.js +3 -9
- package/dist/components/Icon/assets/iconSelector.js +0 -347
- package/dist/components/Icon/index.js +0 -4
- package/dist/components/IconButton/IconButton.js +10 -24
- package/dist/components/IconButton/IconButton.style.js +0 -3
- package/dist/components/IconButton/index.js +0 -3
- package/dist/components/Label/Label.js +9 -17
- package/dist/components/Label/Label.style.js +1 -8
- package/dist/components/Label/index.js +0 -3
- package/dist/components/List/List.js +11 -24
- package/dist/components/List/List.style.js +4 -16
- package/dist/components/List/ListItem/ListItem.js +14 -23
- package/dist/components/List/ListItem/ListItem.style.js +5 -14
- package/dist/components/List/ListItem/index.js +0 -3
- package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.js +4 -11
- package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.style.js +2 -11
- package/dist/components/List/ListItemGroup/ListGroupTitle/index.js +0 -3
- package/dist/components/List/ListItemGroup/ListItemGroup.js +6 -17
- package/dist/components/List/ListItemGroup/index.js +0 -3
- package/dist/components/List/NormalList/NormalList.js +9 -20
- package/dist/components/List/NormalList/index.js +0 -3
- package/dist/components/List/VirtualizedList/VirtualizedList.js +12 -34
- package/dist/components/List/VirtualizedList/index.js +0 -3
- package/dist/components/List/index.js +0 -3
- package/dist/components/List/utils.d.ts +1 -1
- package/dist/components/List/utils.js +5 -24
- package/dist/components/Loader/Loader.js +3 -10
- package/dist/components/Loader/Loader.style.js +0 -5
- package/dist/components/Loader/Loader.utils.d.ts +2 -2
- package/dist/components/Loader/Loader.utils.js +1 -12
- package/dist/components/Loader/components/DotsLoader/DotsLoader.js +1 -8
- package/dist/components/Loader/components/DotsLoader/DotsLoader.style.js +1 -14
- package/dist/components/Loader/components/DotsLoader/index.js +0 -3
- package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.js +1 -8
- package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.style.js +1 -19
- package/dist/components/Loader/components/IndeterminateLoader/index.js +0 -3
- package/dist/components/Loader/components/Spinner/Spinner.js +1 -8
- package/dist/components/Loader/components/Spinner/Spinner.style.js +0 -7
- package/dist/components/Loader/components/Spinner/index.js +0 -3
- package/dist/components/Loader/index.js +0 -3
- package/dist/components/Menu/Menu.js +24 -46
- package/dist/components/Menu/Menu.style.js +4 -11
- package/dist/components/Menu/index.js +0 -3
- package/dist/components/Modal/Modal.d.ts +2 -3
- package/dist/components/Modal/Modal.js +11 -26
- package/dist/components/Modal/Modal.style.js +1 -14
- package/dist/components/Modal/ModalContent/ModalContent.js +7 -17
- package/dist/components/Modal/ModalContent/ModalContent.style.js +1 -18
- package/dist/components/Modal/ModalContent/index.js +0 -3
- package/dist/components/Modal/index.js +0 -3
- package/dist/components/MultiTextFieldBase/MultiTextFieldBase.js +42 -67
- package/dist/components/MultiTextFieldBase/MultiTextFieldBase.style.js +7 -34
- package/dist/components/MultiTextFieldBase/hooks.js +9 -30
- package/dist/components/MultiTextFieldBase/index.js +0 -3
- package/dist/components/Notification/Banner/Banner.js +12 -20
- package/dist/components/Notification/Banner/index.js +0 -3
- package/dist/components/Notification/InlineNotification/InlineNotification.js +11 -19
- package/dist/components/Notification/InlineNotification/index.js +0 -3
- package/dist/components/Notification/Notification.style.js +3 -22
- package/dist/components/Notification/NotificationVisual/NotificationVisual.js +8 -19
- package/dist/components/Notification/NotificationVisual/NotificationVisual.style.js +1 -9
- package/dist/components/Notification/NotificationVisual/index.js +0 -3
- package/dist/components/Notification/NotificationsContainer/NotificationsContainer.js +3 -12
- package/dist/components/Notification/NotificationsContainer/NotificationsContainer.style.js +0 -8
- package/dist/components/Notification/NotificationsContainer/index.js +0 -3
- package/dist/components/Notification/Snackbar/Snackbar.js +13 -29
- package/dist/components/Notification/Snackbar/Snackbar.style.js +1 -18
- package/dist/components/Notification/Snackbar/index.js +0 -3
- package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.js +14 -32
- package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.style.js +1 -23
- package/dist/components/Notification/subcomponents/CompactNotification/index.js +0 -3
- package/dist/components/Notification/subcomponents/NotificationActionsArea/NotificationActionsArea.js +5 -13
- package/dist/components/Notification/subcomponents/NotificationActionsArea/index.js +0 -3
- package/dist/components/Overlay/Overlay.d.ts +1 -1
- package/dist/components/Overlay/Overlay.js +7 -18
- package/dist/components/Overlay/Overlay.style.js +3 -33
- package/dist/components/Overlay/index.js +0 -3
- package/dist/components/Pagination/Pagination.js +19 -29
- package/dist/components/Pagination/index.js +0 -3
- package/dist/components/Radio/Radio.js +19 -38
- package/dist/components/Radio/Radio.style.js +3 -27
- package/dist/components/Radio/index.js +0 -3
- package/dist/components/RadioGroup/RadioGroup.js +7 -22
- package/dist/components/RadioGroup/RadioGroupContext.js +0 -4
- package/dist/components/RadioGroup/index.js +0 -3
- package/dist/components/RadioGroup/useRadioGroup.js +0 -6
- package/dist/components/SearchField/SearchField.js +12 -31
- package/dist/components/SearchField/SearchFieldShowcase.js +4 -15
- package/dist/components/SearchField/index.js +0 -3
- package/dist/components/Select/Select.js +63 -124
- package/dist/components/Select/Select.style.js +1 -10
- package/dist/components/Select/components/SelectMenu/SelectMenu.js +7 -23
- package/dist/components/Select/components/SelectMenu/SelectMenu.style.js +5 -15
- package/dist/components/Select/components/SelectMenu/index.js +0 -3
- package/dist/components/Select/hooks/useMultiselectUtils.js +18 -39
- package/dist/components/Select/index.js +0 -3
- package/dist/components/Slider/Slider.js +12 -42
- package/dist/components/Slider/Slider.style.js +4 -9
- package/dist/components/Slider/components/SliderMark/SliderMark.js +7 -19
- package/dist/components/Slider/components/SliderMark/SliderMark.style.js +3 -7
- package/dist/components/Slider/components/SliderMark/index.js +0 -3
- package/dist/components/Slider/components/SliderThumb/SliderThumb.js +5 -13
- package/dist/components/Slider/components/SliderThumb/SliderThumb.style.js +4 -10
- package/dist/components/Slider/components/SliderThumb/index.js +0 -3
- package/dist/components/Slider/components/SliderTrack/SliderTrack.d.ts +2 -3
- package/dist/components/Slider/components/SliderTrack/SliderTrack.js +8 -20
- package/dist/components/Slider/components/SliderTrack/SliderTrack.style.js +1 -5
- package/dist/components/Slider/components/SliderTrack/index.js +0 -3
- package/dist/components/Slider/index.js +0 -3
- package/dist/components/Switch/Switch.js +8 -20
- package/dist/components/Switch/Switch.style.js +9 -14
- package/dist/components/Switch/index.js +0 -3
- package/dist/components/Table/Table.d.ts +4 -4
- package/dist/components/Table/Table.js +40 -76
- package/dist/components/Table/Table.style.js +1 -14
- package/dist/components/Table/TableRowContext.js +0 -4
- package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.js +10 -27
- package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.style.js +0 -9
- package/dist/components/Table/components/ExtendedColumnItem/index.js +0 -3
- package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.js +30 -59
- package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.style.js +4 -13
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.js +12 -22
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.style.js +0 -4
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/index.js +0 -3
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.js +6 -16
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/index.js +0 -3
- package/dist/components/Table/components/RenderRowOrNestedRow/index.js +0 -3
- package/dist/components/Table/components/TableCell/TableCell.d.ts +2 -2
- package/dist/components/Table/components/TableCell/TableCell.js +24 -36
- package/dist/components/Table/components/TableCell/TableCell.style.js +0 -8
- package/dist/components/Table/components/TableCell/index.js +0 -3
- package/dist/components/Table/components/TableCell/utils.js +0 -3
- package/dist/components/Table/components/TableRow/TableRow.d.ts +2 -2
- package/dist/components/Table/components/TableRow/TableRow.js +6 -18
- package/dist/components/Table/components/TableRow/index.js +0 -3
- package/dist/components/Table/components/TableRowWrapper/TableRowWrapper.js +14 -24
- package/dist/components/Table/components/TableRowWrapper/index.js +0 -3
- package/dist/components/Table/index.js +0 -3
- package/dist/components/Table/utils/index.js +0 -2
- package/dist/components/Table/utils/utils.js +1 -7
- package/dist/components/TextArea/TextArea.js +10 -27
- package/dist/components/TextArea/TextArea.style.js +0 -4
- package/dist/components/TextArea/index.js +0 -3
- package/dist/components/TextField/TextField.js +55 -85
- package/dist/components/TextField/TextField.style.js +1 -6
- package/dist/components/TextField/components/commons.d.ts +3 -2
- package/dist/components/TextField/components/commons.js +2 -8
- package/dist/components/TextField/hooks/useMultiTextFieldUtils.js +14 -31
- package/dist/components/TextField/index.js +0 -3
- package/dist/components/TextInputBase/TextInputBase.d.ts +6 -6
- package/dist/components/TextInputBase/TextInputBase.js +21 -31
- package/dist/components/TextInputBase/TextInputBase.style.js +21 -43
- package/dist/components/TextInputBase/config.js +1 -1
- package/dist/components/TextInputBase/index.js +0 -4
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +2 -3
- package/dist/components/ThemeProvider/ThemeProvider.js +6 -24
- package/dist/components/ThemeProvider/ThemeProvider.style.js +1 -9
- package/dist/components/ThemeProvider/index.js +0 -3
- package/dist/components/Toast/Toast.d.ts +2 -3
- package/dist/components/Toast/Toast.js +16 -33
- package/dist/components/Toast/Toast.style.js +1 -28
- package/dist/components/Toast/index.js +0 -3
- package/dist/components/Tooltip/Tooltip.js +11 -18
- package/dist/components/Tooltip/Tooltip.style.js +1 -10
- package/dist/components/Tooltip/index.js +0 -3
- package/dist/components/TopAppBar/TopAppBar.js +14 -24
- package/dist/components/TopAppBar/TopAppBar.style.js +0 -13
- package/dist/components/TopAppBar/TopAppBar.types.d.ts +2 -2
- package/dist/components/TopAppBar/components/Logo/Logo.style.js +1 -8
- package/dist/components/TopAppBar/components/Logo/Logo.wrapper.d.ts +2 -2
- package/dist/components/TopAppBar/components/Logo/Logo.wrapper.js +0 -7
- package/dist/components/TopAppBar/components/Logo/index.js +0 -3
- package/dist/components/TopAppBar/components/Search/Search.js +9 -18
- package/dist/components/TopAppBar/components/Search/Search.style.js +1 -13
- package/dist/components/TopAppBar/components/Search/index.js +0 -3
- package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.js +0 -7
- package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.style.js +0 -4
- package/dist/components/TopAppBar/components/SidebarMenuIcon/index.js +0 -3
- package/dist/components/TopAppBar/components/UserMenu/UserMenu.js +5 -12
- package/dist/components/TopAppBar/components/UserMenu/UserMenu.style.js +0 -4
- package/dist/components/TopAppBar/components/UserMenu/index.js +0 -3
- package/dist/components/TopAppBar/components/index.js +0 -7
- package/dist/components/TopAppBar/index.js +0 -3
- package/dist/components/TruncatedContent/TruncatedContent.d.ts +2 -2
- package/dist/components/TruncatedContent/TruncatedContent.js +7 -20
- package/dist/components/TruncatedContent/TruncatedContent.style.js +1 -5
- package/dist/components/TruncatedContent/index.js +0 -3
- package/dist/components/storyUtils/Stack/Stack.d.ts +2 -2
- package/dist/components/utils/ClickAwayListener/ClickAwayListener.d.ts +2 -2
- package/dist/components/utils/ClickAwayListener/ClickAwayListener.js +6 -17
- package/dist/components/utils/ClickAwayListener/index.js +0 -3
- package/dist/components/utils/DropdownOptions/index.js +0 -5
- package/dist/components/utils/PositionInScreen/PositionInScreen.d.ts +3 -2
- package/dist/components/utils/PositionInScreen/PositionInScreen.js +13 -24
- package/dist/components/utils/PositionInScreen/PositionInScreen.style.js +1 -10
- package/dist/components/utils/PositionInScreen/hooks.js +39 -60
- package/dist/components/utils/PositionInScreen/index.js +0 -3
- package/dist/components/utils/PositionInScreen/utils.js +1 -6
- package/dist/components/utils/handleSearch.js +7 -13
- package/dist/hooks/index.js +0 -3
- package/dist/hooks/useBreakpoints.js +1 -7
- package/dist/hooks/useCheck.d.ts +1 -1
- package/dist/hooks/useCheck.js +4 -9
- package/dist/hooks/useCombinedRefs.js +0 -7
- package/dist/hooks/useEscape.js +0 -4
- package/dist/hooks/useLoading.js +2 -7
- package/dist/hooks/useLocationToGetCurrentMenuItem.js +4 -10
- package/dist/hooks/usePagination.js +6 -17
- package/dist/hooks/useSearchQueryParams.js +1 -6
- package/dist/hooks/useTheme.js +0 -3
- package/dist/hooks/useThemeSwitch.d.ts +2 -2
- package/dist/hooks/useThemeSwitch.js +4 -15
- package/dist/hooks/useToggle.js +2 -9
- package/dist/hooks/useTypeColorToColorMatch.d.ts +4 -4
- package/dist/hooks/useTypeColorToColorMatch.js +6 -21
- package/dist/index.js +1 -108
- package/dist/test/index.js +0 -2
- package/dist/test/setup.js +2 -5
- package/dist/test/utils.d.ts +2 -2
- package/dist/test/utils.js +15 -39
- package/dist/theme/functions.js +5 -15
- package/dist/theme/index.js +0 -12
- package/dist/theme/palette.config.js +2 -4
- package/dist/theme/palette.js +12 -24
- package/dist/theme/spacing.js +1 -3
- package/dist/theme/states/disabled.js +1 -4
- package/dist/theme/states/focus.js +3 -7
- package/dist/theme/states/hover.js +2 -10
- package/dist/theme/states/index.js +0 -8
- package/dist/theme/states/pressed.js +2 -10
- package/dist/theme/states/statesConfig.js +1 -1
- package/dist/theme/states/utils.js +4 -9
- package/dist/theme/typography.js +0 -2
- package/dist/theme/utils.js +2 -23
- package/dist/utils/common.js +6 -3
- package/dist/utils/errors.js +4 -21
- package/dist/utils/helpers.d.ts +2 -2
- package/dist/utils/helpers.js +10 -26
- package/dist/utils/initLocaleFormat.js +1 -10
- package/dist/utils/size-utils.js +2 -20
- package/dist/utils/storyshots.js +4 -8
- package/dist/utils/themeFunctions.js +3 -25
- package/dist/utils/types.d.ts +2 -0
- package/package.json +16 -15
|
@@ -2,139 +2,106 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
7
|
-
|
|
8
6
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
7
|
var _helpers = require("../../utils/helpers");
|
|
11
|
-
|
|
12
8
|
var _useCombinedRefs = _interopRequireDefault(require("../../hooks/useCombinedRefs"));
|
|
13
|
-
|
|
14
9
|
var _useTheme = _interopRequireDefault(require("../../hooks/useTheme"));
|
|
15
|
-
|
|
16
10
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
17
|
-
|
|
18
11
|
var _TextField = _interopRequireDefault(require("../TextField"));
|
|
19
|
-
|
|
20
12
|
var _ClickAwayListener = _interopRequireDefault(require("../utils/ClickAwayListener"));
|
|
21
|
-
|
|
22
13
|
var _handleSearch = _interopRequireDefault(require("../utils/handleSearch"));
|
|
23
|
-
|
|
24
14
|
var _SelectMenu = _interopRequireDefault(require("./components/SelectMenu/SelectMenu"));
|
|
25
|
-
|
|
26
15
|
var _useMultiselectUtils2 = _interopRequireDefault(require("./hooks/useMultiselectUtils"));
|
|
27
|
-
|
|
28
16
|
var _Select = require("./Select.style");
|
|
29
|
-
|
|
30
17
|
var _Loader = _interopRequireDefault(require("../Loader"));
|
|
31
|
-
|
|
32
18
|
var _MultiTextFieldBase = _interopRequireDefault(require("../MultiTextFieldBase/MultiTextFieldBase"));
|
|
33
|
-
|
|
34
19
|
var _PositionInScreen = _interopRequireDefault(require("../utils/PositionInScreen"));
|
|
35
|
-
|
|
36
20
|
var _react2 = require("@emotion/react");
|
|
37
|
-
|
|
38
21
|
var _excluded = ["handleSelectedOption", "defaultValue", "selectedOption", "multi", "options", "isAsync", "isLoading", "asyncSearch", "status", "minCharactersToSearch", "highlightSearch", "isSearchable", "isVirtualized", "styleType", "disabled", "locked", "dataTestId", "onClear", "onOptionDelete", "selectedOptions", "creatable", "hasSelectAllOption"];
|
|
39
|
-
|
|
40
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
|
-
|
|
42
23
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
43
|
-
|
|
44
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
45
|
-
|
|
46
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
47
|
-
|
|
25
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
48
26
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
49
|
-
|
|
50
27
|
var emptyValue = {
|
|
51
28
|
label: '',
|
|
52
29
|
value: ''
|
|
53
|
-
};
|
|
30
|
+
};
|
|
54
31
|
|
|
32
|
+
// Mocks onChange to avoid readonly warning for TextField Component
|
|
55
33
|
var ON_CHANGE_MOCK = function ON_CHANGE_MOCK() {};
|
|
56
|
-
|
|
57
34
|
var Select = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
58
35
|
var _ref$handleSelectedOp = _ref.handleSelectedOption,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
36
|
+
handleSelectedOption = _ref$handleSelectedOp === void 0 ? function () {} : _ref$handleSelectedOp,
|
|
37
|
+
_ref$defaultValue = _ref.defaultValue,
|
|
38
|
+
defaultValue = _ref$defaultValue === void 0 ? undefined : _ref$defaultValue,
|
|
39
|
+
_ref$selectedOption = _ref.selectedOption,
|
|
40
|
+
selectedOption = _ref$selectedOption === void 0 ? emptyValue : _ref$selectedOption,
|
|
41
|
+
_ref$multi = _ref.multi,
|
|
42
|
+
multi = _ref$multi === void 0 ? false : _ref$multi,
|
|
43
|
+
options = _ref.options,
|
|
44
|
+
_ref$isAsync = _ref.isAsync,
|
|
45
|
+
isAsync = _ref$isAsync === void 0 ? false : _ref$isAsync,
|
|
46
|
+
_ref$isLoading = _ref.isLoading,
|
|
47
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
48
|
+
_ref$asyncSearch = _ref.asyncSearch,
|
|
49
|
+
asyncSearch = _ref$asyncSearch === void 0 ? function () {} : _ref$asyncSearch,
|
|
50
|
+
_ref$status = _ref.status,
|
|
51
|
+
status = _ref$status === void 0 ? 'normal' : _ref$status,
|
|
52
|
+
_ref$minCharactersToS = _ref.minCharactersToSearch,
|
|
53
|
+
minCharactersToSearch = _ref$minCharactersToS === void 0 ? 0 : _ref$minCharactersToS,
|
|
54
|
+
_ref$highlightSearch = _ref.highlightSearch,
|
|
55
|
+
highlightSearch = _ref$highlightSearch === void 0 ? false : _ref$highlightSearch,
|
|
56
|
+
_ref$isSearchable = _ref.isSearchable,
|
|
57
|
+
isSearchable = _ref$isSearchable === void 0 ? true : _ref$isSearchable,
|
|
58
|
+
_ref$isVirtualized = _ref.isVirtualized,
|
|
59
|
+
isVirtualized = _ref$isVirtualized === void 0 ? false : _ref$isVirtualized,
|
|
60
|
+
styleType = _ref.styleType,
|
|
61
|
+
disabled = _ref.disabled,
|
|
62
|
+
locked = _ref.locked,
|
|
63
|
+
dataTestId = _ref.dataTestId,
|
|
64
|
+
onClear = _ref.onClear,
|
|
65
|
+
onOptionDelete = _ref.onOptionDelete,
|
|
66
|
+
_ref$selectedOptions = _ref.selectedOptions,
|
|
67
|
+
selectedOptions = _ref$selectedOptions === void 0 ? [] : _ref$selectedOptions,
|
|
68
|
+
_ref$creatable = _ref.creatable,
|
|
69
|
+
creatable = _ref$creatable === void 0 ? false : _ref$creatable,
|
|
70
|
+
_ref$hasSelectAllOpti = _ref.hasSelectAllOption,
|
|
71
|
+
hasSelectAllOption = _ref$hasSelectAllOpti === void 0 ? false : _ref$hasSelectAllOpti,
|
|
72
|
+
restInputProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
97
73
|
var theme = (0, _useTheme["default"])();
|
|
98
|
-
|
|
99
74
|
var _React$useState = _react["default"].useState(false),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
75
|
+
open = _React$useState[0],
|
|
76
|
+
setOpen = _React$useState[1];
|
|
103
77
|
var inputRef = _react["default"].useRef(null);
|
|
104
|
-
|
|
105
78
|
var combinedRefs = (0, _useCombinedRefs["default"])(inputRef, ref);
|
|
106
79
|
var initialValue = defaultValue != null ? defaultValue : selectedOption;
|
|
107
|
-
|
|
108
80
|
var _React$useState2 = _react["default"].useState(initialValue),
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
81
|
+
inputValue = _React$useState2[0],
|
|
82
|
+
setInputValue = _React$useState2[1];
|
|
112
83
|
var _React$useState3 = _react["default"].useState(''),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
84
|
+
searchValue = _React$useState3[0],
|
|
85
|
+
setSearchValue = _React$useState3[1];
|
|
116
86
|
var textFieldValue = searchValue || inputValue.label;
|
|
117
|
-
|
|
118
87
|
var _useMultiselectUtils = (0, _useMultiselectUtils2["default"])({
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
88
|
+
selectedOptions: selectedOptions,
|
|
89
|
+
options: options,
|
|
90
|
+
setOpen: setOpen,
|
|
91
|
+
setSearchValue: setSearchValue,
|
|
92
|
+
isSearchable: isSearchable,
|
|
93
|
+
onClear: onClear,
|
|
94
|
+
onOptionDelete: onOptionDelete,
|
|
95
|
+
multi: multi
|
|
96
|
+
}),
|
|
97
|
+
multiSelectedOptions = _useMultiselectUtils.multiSelectedOptions,
|
|
98
|
+
availableMultiSelectOptions = _useMultiselectUtils.availableMultiSelectOptions,
|
|
99
|
+
handleOptionDelete = _useMultiselectUtils.handleOptionDelete,
|
|
100
|
+
handleClearAllOptions = _useMultiselectUtils.handleClearAllOptions,
|
|
101
|
+
handleMultiSelectOptionClick = _useMultiselectUtils.handleMultiSelectOptionClick;
|
|
134
102
|
(0, _react.useEffect)(function () {
|
|
135
103
|
setInputValue(initialValue);
|
|
136
104
|
}, [initialValue]);
|
|
137
|
-
|
|
138
105
|
var handleOptionClick = function handleOptionClick(option) {
|
|
139
106
|
if (multi) {
|
|
140
107
|
handleMultiSelectOptionClick(option);
|
|
@@ -146,21 +113,16 @@ var Select = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
|
146
113
|
} else {
|
|
147
114
|
setInputValue(option);
|
|
148
115
|
}
|
|
149
|
-
|
|
150
116
|
setOpen(false);
|
|
151
117
|
}
|
|
152
|
-
|
|
153
118
|
if (isSearchable) {
|
|
154
119
|
setSearchValue('');
|
|
155
120
|
}
|
|
156
|
-
|
|
157
121
|
handleSelectedOption(option);
|
|
158
122
|
};
|
|
159
|
-
|
|
160
123
|
var debouncedOnChange = _react["default"].useCallback((0, _debounce["default"])(function (term) {
|
|
161
124
|
asyncSearch(term);
|
|
162
125
|
}, 400), []);
|
|
163
|
-
|
|
164
126
|
var handleOnInput = _react["default"].useCallback(function (event) {
|
|
165
127
|
/**
|
|
166
128
|
* For Multiselect: [for now] when we select an option the SelectMenu closes but the user
|
|
@@ -169,7 +131,6 @@ var Select = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
|
169
131
|
if (!open) {
|
|
170
132
|
setOpen(true);
|
|
171
133
|
}
|
|
172
|
-
|
|
173
134
|
(0, _handleSearch["default"])({
|
|
174
135
|
event: event,
|
|
175
136
|
isSearchable: isSearchable,
|
|
@@ -179,23 +140,19 @@ var Select = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
|
179
140
|
minCharactersToSearch: minCharactersToSearch
|
|
180
141
|
});
|
|
181
142
|
}, [debouncedOnChange, isAsync, isSearchable, minCharactersToSearch, open]);
|
|
182
|
-
|
|
183
143
|
var filteredOptions = (0, _react.useMemo)(function () {
|
|
184
144
|
var optionsToBeFiltered = multi ? availableMultiSelectOptions : options;
|
|
185
145
|
var finalOptions = [];
|
|
186
|
-
|
|
187
146
|
if (isAsync) {
|
|
188
147
|
finalOptions.push.apply(finalOptions, optionsToBeFiltered);
|
|
189
148
|
} else {
|
|
190
149
|
finalOptions.push.apply(finalOptions, optionsToBeFiltered.filter(function (option) {
|
|
191
150
|
var _option$options;
|
|
192
|
-
|
|
193
151
|
return !searchValue || option.label.toLowerCase().includes(searchValue.toLowerCase()) || !!((_option$options = option.options) != null && _option$options.find(function (option) {
|
|
194
152
|
return option.label.toLowerCase().includes(searchValue.toLowerCase());
|
|
195
153
|
}));
|
|
196
154
|
}).map(function (option) {
|
|
197
155
|
var _option$options2;
|
|
198
|
-
|
|
199
156
|
return option.label.toLowerCase().includes(searchValue.toLowerCase()) ? option : _extends({}, option, {
|
|
200
157
|
options: (_option$options2 = option.options) == null ? void 0 : _option$options2.filter(function (option) {
|
|
201
158
|
return option.label.toLowerCase().includes(searchValue.toLowerCase());
|
|
@@ -203,13 +160,11 @@ var Select = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
|
203
160
|
});
|
|
204
161
|
}));
|
|
205
162
|
}
|
|
206
|
-
|
|
207
163
|
if (creatable) {
|
|
208
164
|
/** Check if the searchValue has an exact result (so no need for "Create..." option) */
|
|
209
165
|
var hasDistinctResult = finalOptions.map(function (item) {
|
|
210
166
|
return item.label.toLowerCase();
|
|
211
167
|
}).includes(searchValue.toLowerCase());
|
|
212
|
-
|
|
213
168
|
if (!hasDistinctResult && searchValue.length > 0) {
|
|
214
169
|
finalOptions.push({
|
|
215
170
|
value: searchValue,
|
|
@@ -218,33 +173,27 @@ var Select = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
|
218
173
|
});
|
|
219
174
|
}
|
|
220
175
|
}
|
|
221
|
-
|
|
222
176
|
return finalOptions;
|
|
223
177
|
}, [multi, availableMultiSelectOptions, options, isAsync, creatable, searchValue]);
|
|
224
178
|
var rightIconNameSelector = (0, _react.useMemo)(function () {
|
|
225
179
|
if (isSearchable) {
|
|
226
180
|
return searchValue || inputValue.value ? 'close' : 'search';
|
|
227
181
|
}
|
|
228
|
-
|
|
229
182
|
return 'triangleDown';
|
|
230
183
|
}, [inputValue.value, isSearchable, searchValue]);
|
|
231
|
-
|
|
232
184
|
var handleIconClick = _react["default"].useCallback(function () {
|
|
233
185
|
if (isSearchable && open) {
|
|
234
186
|
setOpen(!open);
|
|
235
187
|
}
|
|
236
|
-
|
|
237
188
|
if (isSearchable && (searchValue || inputValue.value)) {
|
|
238
189
|
setSearchValue('');
|
|
239
190
|
setInputValue(emptyValue);
|
|
240
191
|
asyncSearch('');
|
|
241
|
-
|
|
242
192
|
if (onClear) {
|
|
243
193
|
onClear();
|
|
244
194
|
}
|
|
245
195
|
}
|
|
246
196
|
}, [asyncSearch, inputValue.value, isSearchable, onClear, open, searchValue]);
|
|
247
|
-
|
|
248
197
|
var rightIconRender = (0, _react.useMemo)(function () {
|
|
249
198
|
return (0, _react2.jsx)("div", {
|
|
250
199
|
css: (0, _Select.rightIconContainer)(open, isSearchable)
|
|
@@ -256,40 +205,32 @@ var Select = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
|
256
205
|
dataTestId: "select-right-icon"
|
|
257
206
|
}));
|
|
258
207
|
}, [open, isLoading, isSearchable, rightIconNameSelector, theme.utils, handleIconClick]);
|
|
259
|
-
|
|
260
208
|
var handleClick = function handleClick() {
|
|
261
209
|
if (!open) {
|
|
262
210
|
var _combinedRefs$current;
|
|
263
|
-
|
|
264
211
|
setOpen(true);
|
|
265
|
-
combinedRefs == null
|
|
212
|
+
combinedRefs == null || (_combinedRefs$current = combinedRefs.current) == null || _combinedRefs$current.focus();
|
|
266
213
|
} else if (!isSearchable) {
|
|
267
214
|
var _combinedRefs$current2;
|
|
268
|
-
|
|
269
215
|
setOpen(false);
|
|
270
|
-
combinedRefs == null
|
|
216
|
+
combinedRefs == null || (_combinedRefs$current2 = combinedRefs.current) == null || _combinedRefs$current2.blur();
|
|
271
217
|
}
|
|
272
218
|
};
|
|
219
|
+
|
|
273
220
|
/**
|
|
274
221
|
* Boolean flag for the case where we have no options but create functionality - so
|
|
275
222
|
* we can hide the Select All option in that case
|
|
276
223
|
*/
|
|
277
|
-
|
|
278
|
-
|
|
279
224
|
var hasNoOptionsAndIsCreatable = creatable && filteredOptions.length === 1 && filteredOptions[0].isCreated;
|
|
280
|
-
|
|
281
225
|
var handleSingleKeyDown = function handleSingleKeyDown(event) {
|
|
282
226
|
var isBackspace = event.key === 'Backspace';
|
|
283
|
-
|
|
284
227
|
if (isBackspace) {
|
|
285
228
|
setInputValue(emptyValue);
|
|
286
229
|
debouncedOnChange('');
|
|
287
230
|
}
|
|
288
231
|
};
|
|
289
|
-
|
|
290
232
|
var handleMultiKeyDown = function handleMultiKeyDown(event) {
|
|
291
233
|
var isEnter = event.key === 'Enter';
|
|
292
|
-
|
|
293
234
|
if (hasNoOptionsAndIsCreatable && isEnter) {
|
|
294
235
|
var _selectedOption = filteredOptions[0];
|
|
295
236
|
handleMultiSelectOptionClick(_selectedOption);
|
|
@@ -297,7 +238,6 @@ var Select = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
|
297
238
|
handleSelectedOption(_selectedOption);
|
|
298
239
|
}
|
|
299
240
|
};
|
|
300
|
-
|
|
301
241
|
return (0, _react2.jsx)(_ClickAwayListener["default"], {
|
|
302
242
|
onClick: function onClick() {
|
|
303
243
|
setOpen(false);
|
|
@@ -357,7 +297,6 @@ var Select = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
|
357
297
|
hasSelectAllOption: multi && hasSelectAllOption && !hasNoOptionsAndIsCreatable
|
|
358
298
|
}))));
|
|
359
299
|
});
|
|
360
|
-
|
|
361
300
|
Select.displayName = 'Select';
|
|
362
301
|
var _default = Select;
|
|
363
302
|
exports["default"] = _default;
|
|
@@ -1,37 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
5
|
-
|
|
4
|
+
exports.selectWrapper = exports.rightIconContainer = void 0;
|
|
6
5
|
var _react = require("@emotion/react");
|
|
7
|
-
|
|
8
6
|
var _functions = require("../../theme/functions");
|
|
9
|
-
|
|
10
7
|
var _utils = require("../../theme/utils");
|
|
11
|
-
|
|
12
8
|
var selectWrapper = function selectWrapper(_ref) {
|
|
13
9
|
var isSearchable = _ref.isSearchable;
|
|
14
10
|
return function () {
|
|
15
11
|
return (
|
|
16
12
|
/*#__PURE__*/
|
|
17
|
-
|
|
18
13
|
/*#__PURE__*/
|
|
19
14
|
(0, _react.css)("position:relative;min-width:", (0, _utils.rem)(150), ";*{cursor:", !isSearchable && 'pointer', ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:selectWrapper;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlbGVjdC9TZWxlY3Quc3R5bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUWlDIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlbGVjdC9TZWxlY3Quc3R5bGUudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MsIFNlcmlhbGl6ZWRTdHlsZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyB0cmFuc2l0aW9uIH0gZnJvbSAndGhlbWUvZnVuY3Rpb25zJztcbmltcG9ydCB7IHJlbSB9IGZyb20gJ3RoZW1lL3V0aWxzJztcblxuZXhwb3J0IGNvbnN0IHNlbGVjdFdyYXBwZXIgPSAoe1xuICBpc1NlYXJjaGFibGUsXG59OiB7XG4gIGlzU2VhcmNoYWJsZTogYm9vbGVhbjtcbn0pID0+ICgpOiBTZXJpYWxpemVkU3R5bGVzID0+IGNzc2BcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBtaW4td2lkdGg6ICR7cmVtKDE1MCl9O1xuXG4gICoge1xuICAgIGN1cnNvcjogJHshaXNTZWFyY2hhYmxlICYmICdwb2ludGVyJ307XG4gIH1cbmA7XG5cbmV4cG9ydCBjb25zdCByaWdodEljb25Db250YWluZXIgPSAoXG4gIG9wZW46IGJvb2xlYW4sXG4gIGlzU2VhcmNoYWJsZTogYm9vbGVhblxuKSA9PiAoKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gIGRpc3BsYXk6IGZsZXg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgdHJhbnNmb3JtOiByb3RhdGUoJHtvcGVuICYmICFpc1NlYXJjaGFibGUgPyAnMTgwJyA6ICcwJ31kZWcpO1xuICAke3RyYW5zaXRpb24oMC4yKX1cbmA7XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:selectWrapper;")
|
|
20
15
|
);
|
|
21
16
|
};
|
|
22
17
|
};
|
|
23
|
-
|
|
24
18
|
exports.selectWrapper = selectWrapper;
|
|
25
|
-
|
|
26
19
|
var rightIconContainer = function rightIconContainer(open, isSearchable) {
|
|
27
20
|
return function () {
|
|
28
21
|
return (
|
|
29
22
|
/*#__PURE__*/
|
|
30
|
-
|
|
31
23
|
/*#__PURE__*/
|
|
32
24
|
(0, _react.css)("display:flex;cursor:pointer;transform:rotate(", open && !isSearchable ? '180' : '0', "deg);", (0, _functions.transition)(0.2), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:rightIconContainer;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlbGVjdC9TZWxlY3Quc3R5bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0JnQyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9TZWxlY3QvU2VsZWN0LnN0eWxlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBTZXJpYWxpemVkU3R5bGVzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgdHJhbnNpdGlvbiB9IGZyb20gJ3RoZW1lL2Z1bmN0aW9ucyc7XG5pbXBvcnQgeyByZW0gfSBmcm9tICd0aGVtZS91dGlscyc7XG5cbmV4cG9ydCBjb25zdCBzZWxlY3RXcmFwcGVyID0gKHtcbiAgaXNTZWFyY2hhYmxlLFxufToge1xuICBpc1NlYXJjaGFibGU6IGJvb2xlYW47XG59KSA9PiAoKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgbWluLXdpZHRoOiAke3JlbSgxNTApfTtcblxuICAqIHtcbiAgICBjdXJzb3I6ICR7IWlzU2VhcmNoYWJsZSAmJiAncG9pbnRlcid9O1xuICB9XG5gO1xuXG5leHBvcnQgY29uc3QgcmlnaHRJY29uQ29udGFpbmVyID0gKFxuICBvcGVuOiBib29sZWFuLFxuICBpc1NlYXJjaGFibGU6IGJvb2xlYW5cbikgPT4gKCk6IFNlcmlhbGl6ZWRTdHlsZXMgPT4gY3NzYFxuICBkaXNwbGF5OiBmbGV4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIHRyYW5zZm9ybTogcm90YXRlKCR7b3BlbiAmJiAhaXNTZWFyY2hhYmxlID8gJzE4MCcgOiAnMCd9ZGVnKTtcbiAgJHt0cmFuc2l0aW9uKDAuMil9XG5gO1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:rightIconContainer;")
|
|
33
25
|
);
|
|
34
26
|
};
|
|
35
27
|
};
|
|
36
|
-
|
|
37
28
|
exports.rightIconContainer = rightIconContainer;
|
|
@@ -2,49 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _SelectMenu = require("./SelectMenu.style");
|
|
9
|
-
|
|
10
7
|
var _List = _interopRequireDefault(require("../../../List"));
|
|
11
|
-
|
|
12
8
|
var _utils = require("../../../List/utils");
|
|
13
|
-
|
|
14
9
|
var _constants = require("../../constants");
|
|
15
|
-
|
|
16
10
|
var _react2 = require("@emotion/react");
|
|
17
|
-
|
|
18
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
24
14
|
var SelectMenu = function SelectMenu(props) {
|
|
25
15
|
var filteredOptions = props.filteredOptions,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
16
|
+
handleOptionClick = props.handleOptionClick,
|
|
17
|
+
selectedOption = props.selectedOption,
|
|
18
|
+
isLoading = props.isLoading,
|
|
19
|
+
isVirtualized = props.isVirtualized,
|
|
20
|
+
searchTerm = props.searchTerm,
|
|
21
|
+
_props$hasSelectAllOp = props.hasSelectAllOption,
|
|
22
|
+
hasSelectAllOption = _props$hasSelectAllOp === void 0 ? false : _props$hasSelectAllOp;
|
|
33
23
|
var myRef = (0, _react.useRef)(null);
|
|
34
|
-
|
|
35
24
|
var executeScroll = function executeScroll() {
|
|
36
25
|
var _myRef$current;
|
|
37
|
-
|
|
38
26
|
return (_myRef$current = myRef.current) == null ? void 0 : _myRef$current.scrollIntoView({
|
|
39
27
|
block: 'nearest',
|
|
40
28
|
inline: 'start'
|
|
41
29
|
});
|
|
42
30
|
};
|
|
43
|
-
|
|
44
31
|
(0, _react.useEffect)(function () {
|
|
45
32
|
executeScroll();
|
|
46
33
|
}, [selectedOption]);
|
|
47
|
-
|
|
48
34
|
var renderOptions = function renderOptions() {
|
|
49
35
|
return filteredOptions.length > 0 ? (0, _react2.jsx)(_List["default"], {
|
|
50
36
|
data: filteredOptions,
|
|
@@ -62,7 +48,6 @@ var SelectMenu = function SelectMenu(props) {
|
|
|
62
48
|
})
|
|
63
49
|
}, "No options");
|
|
64
50
|
};
|
|
65
|
-
|
|
66
51
|
return (0, _react2.jsx)("div", {
|
|
67
52
|
css: (0, _SelectMenu.menuStyle)(props)
|
|
68
53
|
}, isLoading ? (0, _react2.jsx)("div", {
|
|
@@ -72,6 +57,5 @@ var SelectMenu = function SelectMenu(props) {
|
|
|
72
57
|
})
|
|
73
58
|
}, "Loading...") : renderOptions());
|
|
74
59
|
};
|
|
75
|
-
|
|
76
60
|
var _default = SelectMenu;
|
|
77
61
|
exports["default"] = _default;
|
|
@@ -1,47 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
5
|
-
|
|
4
|
+
exports.optionStyle = exports.menuStyle = exports.MAX_SMALL_HEIGHT = exports.MAX_LARGE_HEIGHT = void 0;
|
|
6
5
|
var _react = require("@emotion/react");
|
|
7
|
-
|
|
8
6
|
var _polished = require("polished");
|
|
9
|
-
|
|
10
7
|
var _utils = require("../../../../theme/utils");
|
|
11
|
-
|
|
12
8
|
var MAX_LARGE_HEIGHT = 277;
|
|
13
9
|
exports.MAX_LARGE_HEIGHT = MAX_LARGE_HEIGHT;
|
|
14
10
|
var MAX_SMALL_HEIGHT = 265;
|
|
15
11
|
exports.MAX_SMALL_HEIGHT = MAX_SMALL_HEIGHT;
|
|
16
|
-
|
|
17
12
|
var optionStyle = function optionStyle(_ref) {
|
|
18
13
|
var selected = _ref.selected,
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
size = _ref.size,
|
|
15
|
+
noResultsExist = _ref.noResultsExist;
|
|
21
16
|
return function (theme) {
|
|
22
17
|
return (
|
|
23
18
|
/*#__PURE__*/
|
|
24
|
-
|
|
25
19
|
/*#__PURE__*/
|
|
26
20
|
(0, _react.css)("padding:", theme.spacing.md, ";font-size:", theme.typography.fontSizes[size === 'md' ? '16' : '14'], ";background-color:", selected ? (0, _polished.darken)(0.07, theme.palette.white) : theme.palette.white, ";cursor:default;color:", noResultsExist ? theme.utils.getColor('lightGrey', 750) : 'initial', ";text-align:", noResultsExist ? 'center' : 'initial', ";text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;&:hover{background-color:", (0, _polished.darken)(0.03, theme.palette.white), ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:optionStyle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlbGVjdC9jb21wb25lbnRzL1NlbGVjdE1lbnUvU2VsZWN0TWVudS5zdHlsZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JZIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlbGVjdC9jb21wb25lbnRzL1NlbGVjdE1lbnUvU2VsZWN0TWVudS5zdHlsZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MsIFNlcmlhbGl6ZWRTdHlsZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBkYXJrZW4gfSBmcm9tICdwb2xpc2hlZCc7XG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJ3RoZW1lJztcbmltcG9ydCB7IHJlbSB9IGZyb20gJ3RoZW1lL3V0aWxzJztcblxuaW1wb3J0IHsgUHJvcHMgfSBmcm9tICcuL1NlbGVjdE1lbnUnO1xuaW1wb3J0IHsgUHJvcHMgYXMgVGV4dEZpZWxkUHJvcHMgfSBmcm9tICdjb21wb25lbnRzL1RleHRGaWVsZC9UZXh0RmllbGQnO1xuXG5leHBvcnQgY29uc3QgTUFYX0xBUkdFX0hFSUdIVCA9IDI3NztcbmV4cG9ydCBjb25zdCBNQVhfU01BTExfSEVJR0hUID0gMjY1O1xuXG5leHBvcnQgY29uc3Qgb3B0aW9uU3R5bGUgPSAoe1xuICBzZWxlY3RlZCxcbiAgc2l6ZSxcbiAgbm9SZXN1bHRzRXhpc3QsXG59OiB7IHNlbGVjdGVkOiBib29sZWFuOyBub1Jlc3VsdHNFeGlzdD86IGJvb2xlYW4gfSAmIFRleHRGaWVsZFByb3BzKSA9PiAoXG4gIHRoZW1lOiBUaGVtZVxuKTogU2VyaWFsaXplZFN0eWxlcyA9PiB7XG4gIHJldHVybiBjc3NgXG4gICAgcGFkZGluZzogJHt0aGVtZS5zcGFjaW5nLm1kfTtcbiAgICBmb250LXNpemU6ICR7dGhlbWUudHlwb2dyYXBoeS5mb250U2l6ZXNbc2l6ZSA9PT0gJ21kJyA/ICcxNicgOiAnMTQnXX07XG4gICAgYmFja2dyb3VuZC1jb2xvcjogJHtzZWxlY3RlZCA/IGRhcmtlbigwLjA3LCB0aGVtZS5wYWxldHRlLndoaXRlKSA6IHRoZW1lLnBhbGV0dGUud2hpdGV9O1xuICAgIGN1cnNvcjogZGVmYXVsdDtcbiAgICBjb2xvcjogJHtub1Jlc3VsdHNFeGlzdCA/IHRoZW1lLnV0aWxzLmdldENvbG9yKCdsaWdodEdyZXknLCA3NTApIDogJ2luaXRpYWwnfTtcbiAgICB0ZXh0LWFsaWduOiAke25vUmVzdWx0c0V4aXN0ID8gJ2NlbnRlcicgOiAnaW5pdGlhbCd9O1xuICAgIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzO1xuICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7XG4gICAgb3ZlcmZsb3cteDogaGlkZGVuO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke2RhcmtlbigwLjAzLCB0aGVtZS5wYWxldHRlLndoaXRlKX07XG4gICAgfVxuICBgO1xufTtcblxuZXhwb3J0IGNvbnN0IG1lbnVTdHlsZSA9ICh7IHN0YXR1cywgc2l6ZSwgaXNWaXJ0dWFsaXplZCB9OiBQcm9wcyAmIFRleHRGaWVsZFByb3BzKSA9PiAoXG4gIHRoZW1lOiBUaGVtZVxuKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUucGFsZXR0ZS53aGl0ZX07XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgYm94LXNoYWRvdzogJHt0aGVtZS5lbGV2YXRpb25bJzAyJ119O1xuICB0b3A6ICR7c3RhdHVzICE9PSAnbm9ybWFsJyA/ICc3MCUnIDogJzExMCUnfTtcbiAgei1pbmRleDogNTAwO1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIG1heC1oZWlnaHQ6ICR7cmVtKHNpemUgPT09ICdtZCcgPyBNQVhfTEFSR0VfSEVJR0hUIDogTUFYX1NNQUxMX0hFSUdIVCl9O1xuICBvdmVyZmxvdy15OiAke2lzVmlydHVhbGl6ZWQgPyAnaGlkZGVuJyA6ICdhdXRvJ307XG4gIC8vIFRPRE8gd2UgbmVlZCBhIHRlY2huaXF1ZSB0byBpZGVudGlmeSBtZW51IHBvc2l0aW9uIGxlZnQgb3IgcmlnaHRcbiAgbWluLXdpZHRoOiAxMDAlO1xuICBtYXgtd2lkdGg6ICR7cmVtKDYyMCl9O1xuYDtcbiJdfQ== */", process.env.NODE_ENV === "production" ? "" : ";label:optionStyle;")
|
|
27
21
|
);
|
|
28
22
|
};
|
|
29
23
|
};
|
|
30
|
-
|
|
31
24
|
exports.optionStyle = optionStyle;
|
|
32
|
-
|
|
33
25
|
var menuStyle = function menuStyle(_ref2) {
|
|
34
26
|
var status = _ref2.status,
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
size = _ref2.size,
|
|
28
|
+
isVirtualized = _ref2.isVirtualized;
|
|
37
29
|
return function (theme) {
|
|
38
30
|
return (
|
|
39
31
|
/*#__PURE__*/
|
|
40
|
-
|
|
41
32
|
/*#__PURE__*/
|
|
42
33
|
(0, _react.css)("background-color:", theme.palette.white, ";border-radius:4px;box-shadow:", theme.elevation['02'], ";top:", status !== 'normal' ? '70%' : '110%', ";z-index:500;position:absolute;max-height:", (0, _utils.rem)(size === 'md' ? MAX_LARGE_HEIGHT : MAX_SMALL_HEIGHT), ";overflow-y:", isVirtualized ? 'hidden' : 'auto', ";min-width:100%;max-width:", (0, _utils.rem)(620), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:menuStyle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlbGVjdC9jb21wb25lbnRzL1NlbGVjdE1lbnUvU2VsZWN0TWVudS5zdHlsZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUMwQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9TZWxlY3QvY29tcG9uZW50cy9TZWxlY3RNZW51L1NlbGVjdE1lbnUuc3R5bGUudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBTZXJpYWxpemVkU3R5bGVzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgZGFya2VuIH0gZnJvbSAncG9saXNoZWQnO1xuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICd0aGVtZSc7XG5pbXBvcnQgeyByZW0gfSBmcm9tICd0aGVtZS91dGlscyc7XG5cbmltcG9ydCB7IFByb3BzIH0gZnJvbSAnLi9TZWxlY3RNZW51JztcbmltcG9ydCB7IFByb3BzIGFzIFRleHRGaWVsZFByb3BzIH0gZnJvbSAnY29tcG9uZW50cy9UZXh0RmllbGQvVGV4dEZpZWxkJztcblxuZXhwb3J0IGNvbnN0IE1BWF9MQVJHRV9IRUlHSFQgPSAyNzc7XG5leHBvcnQgY29uc3QgTUFYX1NNQUxMX0hFSUdIVCA9IDI2NTtcblxuZXhwb3J0IGNvbnN0IG9wdGlvblN0eWxlID0gKHtcbiAgc2VsZWN0ZWQsXG4gIHNpemUsXG4gIG5vUmVzdWx0c0V4aXN0LFxufTogeyBzZWxlY3RlZDogYm9vbGVhbjsgbm9SZXN1bHRzRXhpc3Q/OiBib29sZWFuIH0gJiBUZXh0RmllbGRQcm9wcykgPT4gKFxuICB0aGVtZTogVGhlbWVcbik6IFNlcmlhbGl6ZWRTdHlsZXMgPT4ge1xuICByZXR1cm4gY3NzYFxuICAgIHBhZGRpbmc6ICR7dGhlbWUuc3BhY2luZy5tZH07XG4gICAgZm9udC1zaXplOiAke3RoZW1lLnR5cG9ncmFwaHkuZm9udFNpemVzW3NpemUgPT09ICdtZCcgPyAnMTYnIDogJzE0J119O1xuICAgIGJhY2tncm91bmQtY29sb3I6ICR7c2VsZWN0ZWQgPyBkYXJrZW4oMC4wNywgdGhlbWUucGFsZXR0ZS53aGl0ZSkgOiB0aGVtZS5wYWxldHRlLndoaXRlfTtcbiAgICBjdXJzb3I6IGRlZmF1bHQ7XG4gICAgY29sb3I6ICR7bm9SZXN1bHRzRXhpc3QgPyB0aGVtZS51dGlscy5nZXRDb2xvcignbGlnaHRHcmV5JywgNzUwKSA6ICdpbml0aWFsJ307XG4gICAgdGV4dC1hbGlnbjogJHtub1Jlc3VsdHNFeGlzdCA/ICdjZW50ZXInIDogJ2luaXRpYWwnfTtcbiAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbiAgICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICAgIG92ZXJmbG93LXg6IGhpZGRlbjtcblxuICAgICY6aG92ZXIge1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHtkYXJrZW4oMC4wMywgdGhlbWUucGFsZXR0ZS53aGl0ZSl9O1xuICAgIH1cbiAgYDtcbn07XG5cbmV4cG9ydCBjb25zdCBtZW51U3R5bGUgPSAoeyBzdGF0dXMsIHNpemUsIGlzVmlydHVhbGl6ZWQgfTogUHJvcHMgJiBUZXh0RmllbGRQcm9wcykgPT4gKFxuICB0aGVtZTogVGhlbWVcbik6IFNlcmlhbGl6ZWRTdHlsZXMgPT4gY3NzYFxuICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLnBhbGV0dGUud2hpdGV9O1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGJveC1zaGFkb3c6ICR7dGhlbWUuZWxldmF0aW9uWycwMiddfTtcbiAgdG9wOiAke3N0YXR1cyAhPT0gJ25vcm1hbCcgPyAnNzAlJyA6ICcxMTAlJ307XG4gIHotaW5kZXg6IDUwMDtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBtYXgtaGVpZ2h0OiAke3JlbShzaXplID09PSAnbWQnID8gTUFYX0xBUkdFX0hFSUdIVCA6IE1BWF9TTUFMTF9IRUlHSFQpfTtcbiAgb3ZlcmZsb3cteTogJHtpc1ZpcnR1YWxpemVkID8gJ2hpZGRlbicgOiAnYXV0byd9O1xuICAvLyBUT0RPIHdlIG5lZWQgYSB0ZWNobmlxdWUgdG8gaWRlbnRpZnkgbWVudSBwb3NpdGlvbiBsZWZ0IG9yIHJpZ2h0XG4gIG1pbi13aWR0aDogMTAwJTtcbiAgbWF4LXdpZHRoOiAke3JlbSg2MjApfTtcbmA7XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:menuStyle;")
|
|
43
34
|
);
|
|
44
35
|
};
|
|
45
36
|
};
|
|
46
|
-
|
|
47
37
|
exports.menuStyle = menuStyle;
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _SelectMenu = _interopRequireDefault(require("./SelectMenu"));
|
|
7
|
-
|
|
8
6
|
exports["default"] = _SelectMenu["default"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|