@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,44 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
7
|
-
|
|
8
6
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
7
|
var _constants = require("../constants");
|
|
11
|
-
|
|
12
8
|
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); }
|
|
13
|
-
|
|
14
9
|
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; }
|
|
15
|
-
|
|
16
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
11
|
var useMultiselectUtils = function useMultiselectUtils(_ref) {
|
|
19
12
|
var selectedOptions = _ref.selectedOptions,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
options = _ref.options,
|
|
14
|
+
setOpen = _ref.setOpen,
|
|
15
|
+
setSearchValue = _ref.setSearchValue,
|
|
16
|
+
isSearchable = _ref.isSearchable,
|
|
17
|
+
onClear = _ref.onClear,
|
|
18
|
+
onOptionDelete = _ref.onOptionDelete,
|
|
19
|
+
multi = _ref.multi;
|
|
28
20
|
/** A state to store the SelectedOptions of the component */
|
|
29
21
|
var _React$useState = _react["default"].useState(selectedOptions),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/** The available options (initial options (from component props) minus the multiSelectedOptions) */
|
|
33
|
-
|
|
22
|
+
multiSelectedOptions = _React$useState[0],
|
|
23
|
+
setMultiSelectedOpts = _React$useState[1];
|
|
34
24
|
|
|
25
|
+
/** The available options (initial options (from component props) minus the multiSelectedOptions) */
|
|
35
26
|
var _React$useState2 = _react["default"].useState([]),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
availableMultiSelectOptions = _React$useState2[0],
|
|
28
|
+
setAvailableMultiSelectOptions = _React$useState2[1];
|
|
39
29
|
(0, _react.useEffect)(function () {
|
|
40
30
|
if (multi) {
|
|
41
31
|
var _multiSelectedOptions, _options$filter;
|
|
42
|
-
|
|
43
32
|
var selectedOptsValues = (_multiSelectedOptions = multiSelectedOptions == null ? void 0 : multiSelectedOptions.map(function (_ref2) {
|
|
44
33
|
var value = _ref2.value;
|
|
45
34
|
return value;
|
|
@@ -49,21 +38,19 @@ var useMultiselectUtils = function useMultiselectUtils(_ref) {
|
|
|
49
38
|
})) != null ? _options$filter : []);
|
|
50
39
|
}
|
|
51
40
|
}, [options, multiSelectedOptions, multi]);
|
|
41
|
+
|
|
52
42
|
/**
|
|
53
43
|
* If option is provided, delete the specified option
|
|
54
44
|
* Otherwise, delete the last option (for the case where the user types 'Backspace')
|
|
55
45
|
*/
|
|
56
|
-
|
|
57
46
|
var handleOptionDelete = function handleOptionDelete(option) {
|
|
58
47
|
if (option) {
|
|
59
48
|
setMultiSelectedOpts(multiSelectedOptions.filter(function (opt) {
|
|
60
49
|
return opt.value !== (option == null ? void 0 : option.value);
|
|
61
50
|
}));
|
|
62
|
-
|
|
63
51
|
if (!option.isCreated) {
|
|
64
52
|
setAvailableMultiSelectOptions([].concat(availableMultiSelectOptions, [option]));
|
|
65
53
|
}
|
|
66
|
-
|
|
67
54
|
if (onOptionDelete) {
|
|
68
55
|
onOptionDelete(option);
|
|
69
56
|
}
|
|
@@ -73,39 +60,33 @@ var useMultiselectUtils = function useMultiselectUtils(_ref) {
|
|
|
73
60
|
setMultiSelectedOpts(multiSelectedOptions.filter(function (opt) {
|
|
74
61
|
return opt.value !== lastItem.value;
|
|
75
62
|
}));
|
|
76
|
-
|
|
77
63
|
if (!lastItem.isCreated) {
|
|
78
64
|
setAvailableMultiSelectOptions([].concat(availableMultiSelectOptions, [lastItem]));
|
|
79
65
|
}
|
|
80
66
|
}
|
|
81
67
|
}
|
|
82
68
|
};
|
|
83
|
-
|
|
84
69
|
var handleClearAllOptions = function handleClearAllOptions() {
|
|
85
70
|
setAvailableMultiSelectOptions([].concat(availableMultiSelectOptions, multiSelectedOptions.filter(function (item) {
|
|
86
71
|
return !item.isCreated;
|
|
87
72
|
})));
|
|
88
73
|
setMultiSelectedOpts([]);
|
|
89
|
-
|
|
90
74
|
if (onClear) {
|
|
91
75
|
onClear();
|
|
92
76
|
}
|
|
93
|
-
|
|
94
77
|
if (isSearchable) {
|
|
95
78
|
setSearchValue('');
|
|
96
79
|
}
|
|
97
80
|
};
|
|
98
|
-
|
|
99
81
|
var handleMultiSelectOptionClick = function handleMultiSelectOptionClick(option) {
|
|
100
82
|
/** The user clicks the Select All option */
|
|
101
83
|
if ((0, _isEqual["default"])(option, _constants.SELECT_ALL_OPTION)) {
|
|
102
84
|
var _availableMultiSelect = availableMultiSelectOptions.reduce(function (result, element) {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
85
|
+
result[element.isDisabled ? 0 : 1].push(element);
|
|
86
|
+
return result;
|
|
87
|
+
}, [[], []]),
|
|
88
|
+
remaining = _availableMultiSelect[0],
|
|
89
|
+
selected = _availableMultiSelect[1];
|
|
109
90
|
setMultiSelectedOpts([].concat(multiSelectedOptions, selected));
|
|
110
91
|
setAvailableMultiSelectOptions(remaining);
|
|
111
92
|
setOpen(false);
|
|
@@ -124,7 +105,6 @@ var useMultiselectUtils = function useMultiselectUtils(_ref) {
|
|
|
124
105
|
}));
|
|
125
106
|
}
|
|
126
107
|
};
|
|
127
|
-
|
|
128
108
|
return {
|
|
129
109
|
multiSelectedOptions: multiSelectedOptions,
|
|
130
110
|
availableMultiSelectOptions: availableMultiSelectOptions,
|
|
@@ -133,6 +113,5 @@ var useMultiselectUtils = function useMultiselectUtils(_ref) {
|
|
|
133
113
|
handleMultiSelectOptionClick: handleMultiSelectOptionClick
|
|
134
114
|
};
|
|
135
115
|
};
|
|
136
|
-
|
|
137
116
|
var _default = useMultiselectUtils;
|
|
138
117
|
exports["default"] = _default;
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _Select = _interopRequireDefault(require("./Select"));
|
|
7
|
-
|
|
8
6
|
exports["default"] = _Select["default"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -1,32 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports["default"] = exports.
|
|
5
|
-
|
|
4
|
+
exports["default"] = exports.STEP_WITH_INCREMENTS = exports.MIN = exports.MAX = void 0;
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _reactRange = require("react-range");
|
|
9
|
-
|
|
10
7
|
var _useTheme = _interopRequireDefault(require("../../hooks/useTheme"));
|
|
11
|
-
|
|
12
8
|
var _TextField = _interopRequireDefault(require("../TextField"));
|
|
13
|
-
|
|
14
9
|
var _SliderMark = _interopRequireDefault(require("./components/SliderMark"));
|
|
15
|
-
|
|
16
10
|
var _SliderThumb = _interopRequireDefault(require("./components/SliderThumb"));
|
|
17
|
-
|
|
18
11
|
var _SliderTrack = _interopRequireDefault(require("./components/SliderTrack"));
|
|
19
|
-
|
|
20
12
|
var _Slider = require("./Slider.style");
|
|
21
|
-
|
|
22
13
|
var _react2 = require("@emotion/react");
|
|
23
|
-
|
|
24
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
-
|
|
26
15
|
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); }
|
|
27
|
-
|
|
28
16
|
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; }
|
|
29
|
-
|
|
30
17
|
var STEP = 1;
|
|
31
18
|
var STEP_WITH_INCREMENTS = 20;
|
|
32
19
|
exports.STEP_WITH_INCREMENTS = STEP_WITH_INCREMENTS;
|
|
@@ -34,44 +21,36 @@ var MIN = 0;
|
|
|
34
21
|
exports.MIN = MIN;
|
|
35
22
|
var MAX = 100;
|
|
36
23
|
exports.MAX = MAX;
|
|
37
|
-
|
|
38
24
|
var Slider = function Slider(_ref) {
|
|
39
25
|
var values = _ref.values,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
26
|
+
_onChange = _ref.onChange,
|
|
27
|
+
_onBlur = _ref.onBlur,
|
|
28
|
+
_ref$hasIncrements = _ref.hasIncrements,
|
|
29
|
+
hasIncrements = _ref$hasIncrements === void 0 ? false : _ref$hasIncrements,
|
|
30
|
+
_ref$disabled = _ref.disabled,
|
|
31
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
32
|
+
dataTestPrefixId = _ref.dataTestPrefixId;
|
|
47
33
|
var theme = (0, _useTheme["default"])();
|
|
48
34
|
var initialValueRef = (0, _react.useRef)(values);
|
|
49
35
|
var isSelector = initialValueRef.current.length === 1;
|
|
50
|
-
|
|
51
36
|
if (isSelector && values.length !== 1) {
|
|
52
37
|
throw new Error('The Selector type Slider can only accept one initial value in the array, since it only has one thumb. Try changing the `values` prop.');
|
|
53
38
|
}
|
|
54
|
-
|
|
55
39
|
if (!isSelector && values.length !== 2) {
|
|
56
40
|
throw new Error('The Range type Slider only accepts two initial values in the array, since it has two thumbs. Try changing the `values` prop.');
|
|
57
41
|
}
|
|
58
|
-
|
|
59
42
|
var sanitizeValues = function sanitizeValues(value) {
|
|
60
43
|
if (value < MIN) {
|
|
61
44
|
return 0;
|
|
62
45
|
}
|
|
63
|
-
|
|
64
46
|
if (value > MAX) {
|
|
65
47
|
return 100;
|
|
66
48
|
}
|
|
67
|
-
|
|
68
49
|
return value;
|
|
69
50
|
};
|
|
70
|
-
|
|
71
51
|
var handleRenderMark = function handleRenderMark(_ref2) {
|
|
72
52
|
var props = _ref2.props,
|
|
73
|
-
|
|
74
|
-
|
|
53
|
+
index = _ref2.index;
|
|
75
54
|
/** We don't show marks for the first and last increments of the Slider (0%, 100%) */
|
|
76
55
|
var isNotFirstOrLastMark = isSelector ? index > MIN : index > MIN && index < MAX / STEP_WITH_INCREMENTS;
|
|
77
56
|
return hasIncrements && isNotFirstOrLastMark && (0, _react2.jsx)(_SliderMark["default"], {
|
|
@@ -84,10 +63,9 @@ var Slider = function Slider(_ref) {
|
|
|
84
63
|
disabled: disabled
|
|
85
64
|
});
|
|
86
65
|
};
|
|
87
|
-
|
|
88
66
|
var handleRenderTrack = function handleRenderTrack(_ref3) {
|
|
89
67
|
var props = _ref3.props,
|
|
90
|
-
|
|
68
|
+
children = _ref3.children;
|
|
91
69
|
return (0, _react2.jsx)(_SliderTrack["default"], {
|
|
92
70
|
dataTestPrefixId: dataTestPrefixId,
|
|
93
71
|
isSelector: isSelector,
|
|
@@ -96,13 +74,11 @@ var Slider = function Slider(_ref) {
|
|
|
96
74
|
disabled: disabled
|
|
97
75
|
}, children);
|
|
98
76
|
};
|
|
99
|
-
|
|
100
77
|
var handleRenderThumb = function handleRenderThumb(_ref4) {
|
|
101
78
|
var _initialValueRef$curr;
|
|
102
|
-
|
|
103
79
|
var props = _ref4.props,
|
|
104
|
-
|
|
105
|
-
|
|
80
|
+
value = _ref4.value,
|
|
81
|
+
index = _ref4.index;
|
|
106
82
|
return (0, _react2.jsx)(_SliderThumb["default"], {
|
|
107
83
|
key: "thumb_" + index,
|
|
108
84
|
dataTestId: (dataTestPrefixId != null ? dataTestPrefixId : '') + "thumb_" + index,
|
|
@@ -112,7 +88,6 @@ var Slider = function Slider(_ref) {
|
|
|
112
88
|
initialValue: (_initialValueRef$curr = initialValueRef.current) == null ? void 0 : _initialValueRef$curr[index]
|
|
113
89
|
});
|
|
114
90
|
};
|
|
115
|
-
|
|
116
91
|
return (0, _react2.jsx)(_Slider.Container, {
|
|
117
92
|
"data-testid": (dataTestPrefixId != null ? dataTestPrefixId : '') + "slider_component"
|
|
118
93
|
}, (0, _react2.jsx)(_reactRange.Range, {
|
|
@@ -133,13 +108,11 @@ var Slider = function Slider(_ref) {
|
|
|
133
108
|
value: values[0],
|
|
134
109
|
onChange: function onChange(e) {
|
|
135
110
|
var sanitizedValue = sanitizeValues(parseInt((e == null ? void 0 : e.target.value) || '0'));
|
|
136
|
-
|
|
137
111
|
_onChange([sanitizedValue, values[1]]);
|
|
138
112
|
},
|
|
139
113
|
onBlur: function onBlur(e) {
|
|
140
114
|
if (_onBlur) {
|
|
141
115
|
var sanitizedValue = sanitizeValues(parseInt((e == null ? void 0 : e.target.value) || '0'));
|
|
142
|
-
|
|
143
116
|
_onBlur([sanitizedValue, values[1]]);
|
|
144
117
|
}
|
|
145
118
|
},
|
|
@@ -156,13 +129,11 @@ var Slider = function Slider(_ref) {
|
|
|
156
129
|
value: values[1],
|
|
157
130
|
onChange: function onChange(e) {
|
|
158
131
|
var sanitizedValue = sanitizeValues(parseInt((e == null ? void 0 : e.target.value) || '100'));
|
|
159
|
-
|
|
160
132
|
_onChange([values[0], sanitizedValue]);
|
|
161
133
|
},
|
|
162
134
|
onBlur: function onBlur(e) {
|
|
163
135
|
if (_onBlur) {
|
|
164
136
|
var sanitizedValue = sanitizeValues(parseInt((e == null ? void 0 : e.target.value) || '100'));
|
|
165
|
-
|
|
166
137
|
_onBlur([values[0], sanitizedValue]);
|
|
167
138
|
}
|
|
168
139
|
},
|
|
@@ -174,7 +145,6 @@ var Slider = function Slider(_ref) {
|
|
|
174
145
|
}
|
|
175
146
|
}))));
|
|
176
147
|
};
|
|
177
|
-
|
|
178
148
|
Slider.displayName = 'Slider';
|
|
179
149
|
var _default = Slider;
|
|
180
150
|
exports["default"] = _default;
|
|
@@ -1,31 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
5
|
-
|
|
4
|
+
exports.InputsContainer = exports.InputContainer = exports.Container = void 0;
|
|
6
5
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
7
|
-
|
|
8
6
|
var _polished = require("polished");
|
|
9
|
-
|
|
10
7
|
var _functions = require("../../theme/functions");
|
|
11
|
-
|
|
12
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
var Container = (0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
9
|
+
var Container = /*#__PURE__*/(0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
15
10
|
target: "ems0q502"
|
|
16
11
|
} : {
|
|
17
12
|
target: "ems0q502",
|
|
18
13
|
label: "Container"
|
|
19
14
|
})(_functions.flex, ";flex-direction:column;gap:", (0, _polished.rem)(22), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NsaWRlci9TbGlkZXIuc3R5bGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUttQyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9TbGlkZXIvU2xpZGVyLnN0eWxlLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IHJlbSB9IGZyb20gJ3BvbGlzaGVkJztcblxuaW1wb3J0IHsgZmxleCB9IGZyb20gJy4uLy4uL3RoZW1lL2Z1bmN0aW9ucyc7XG5cbmV4cG9ydCBjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YFxuICAke2ZsZXh9O1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICBnYXA6ICR7cmVtKDIyKX07XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRzQ29udGFpbmVyID0gc3R5bGVkLmRpdmBcbiAgJHtmbGV4fTtcbiAgbWFyZ2luLWxlZnQ6ICR7cmVtKC03KX07XG4gIG1hcmdpbi1yaWdodDogJHtyZW0oLTcpfTtcbiAgZ2FwOiAke3JlbSgyMCl9O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRDb250YWluZXIgPSBzdHlsZWQuZGl2YFxuICB3aWR0aDogJHtyZW0oODApfTtcbmA7XG4iXX0= */"));
|
|
20
15
|
exports.Container = Container;
|
|
21
|
-
var InputsContainer = (0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
16
|
+
var InputsContainer = /*#__PURE__*/(0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
22
17
|
target: "ems0q501"
|
|
23
18
|
} : {
|
|
24
19
|
target: "ems0q501",
|
|
25
20
|
label: "InputsContainer"
|
|
26
21
|
})(_functions.flex, ";margin-left:", (0, _polished.rem)(-7), ";margin-right:", (0, _polished.rem)(-7), ";gap:", (0, _polished.rem)(20), ";align-items:center;justify-content:space-between;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NsaWRlci9TbGlkZXIuc3R5bGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVd5QyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9TbGlkZXIvU2xpZGVyLnN0eWxlLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IHJlbSB9IGZyb20gJ3BvbGlzaGVkJztcblxuaW1wb3J0IHsgZmxleCB9IGZyb20gJy4uLy4uL3RoZW1lL2Z1bmN0aW9ucyc7XG5cbmV4cG9ydCBjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YFxuICAke2ZsZXh9O1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICBnYXA6ICR7cmVtKDIyKX07XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRzQ29udGFpbmVyID0gc3R5bGVkLmRpdmBcbiAgJHtmbGV4fTtcbiAgbWFyZ2luLWxlZnQ6ICR7cmVtKC03KX07XG4gIG1hcmdpbi1yaWdodDogJHtyZW0oLTcpfTtcbiAgZ2FwOiAke3JlbSgyMCl9O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRDb250YWluZXIgPSBzdHlsZWQuZGl2YFxuICB3aWR0aDogJHtyZW0oODApfTtcbmA7XG4iXX0= */"));
|
|
27
22
|
exports.InputsContainer = InputsContainer;
|
|
28
|
-
var InputContainer = (0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
23
|
+
var InputContainer = /*#__PURE__*/(0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
29
24
|
target: "ems0q500"
|
|
30
25
|
} : {
|
|
31
26
|
target: "ems0q500",
|
|
@@ -2,39 +2,28 @@
|
|
|
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 _useTheme = _interopRequireDefault(require("../../../../hooks/useTheme"));
|
|
9
|
-
|
|
10
7
|
var _Slider = require("../../Slider");
|
|
11
|
-
|
|
12
8
|
var _SliderMark = require("./SliderMark.style");
|
|
13
|
-
|
|
14
9
|
var _react2 = require("@emotion/react");
|
|
15
|
-
|
|
16
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
11
|
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); }
|
|
19
|
-
|
|
20
12
|
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; }
|
|
21
|
-
|
|
22
|
-
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); }
|
|
23
|
-
|
|
13
|
+
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); }
|
|
24
14
|
var SliderMark = function SliderMark(_ref) {
|
|
25
15
|
var values = _ref.values,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
index = _ref.index,
|
|
17
|
+
disabled = _ref.disabled,
|
|
18
|
+
isSelector = _ref.isSelector,
|
|
19
|
+
_ref$dataTestPrefixId = _ref.dataTestPrefixId,
|
|
20
|
+
dataTestPrefixId = _ref$dataTestPrefixId === void 0 ? '' : _ref$dataTestPrefixId,
|
|
21
|
+
restProps = _ref.restProps;
|
|
32
22
|
var theme = (0, _useTheme["default"])();
|
|
33
23
|
var backgroundStyle = (0, React.useMemo)(function () {
|
|
34
24
|
if (!isSelector) {
|
|
35
25
|
return index * 20 < values[0] || index * 20 > values[1] ? theme.utils.getColor('blue', disabled ? 250 : 150) : theme.utils.getColor('blue', disabled ? 250 : 500);
|
|
36
26
|
}
|
|
37
|
-
|
|
38
27
|
return index * 20 > values[0] ? theme.utils.getColor('blue', disabled ? 250 : 150) : theme.utils.getColor('blue', disabled ? 250 : 500);
|
|
39
28
|
}, [disabled, index, isSelector, theme.utils, values]);
|
|
40
29
|
var labelValue = (0, React.useMemo)(function () {
|
|
@@ -51,6 +40,5 @@ var SliderMark = function SliderMark(_ref) {
|
|
|
51
40
|
disabled: disabled
|
|
52
41
|
}));
|
|
53
42
|
};
|
|
54
|
-
|
|
55
43
|
var _default = SliderMark;
|
|
56
44
|
exports["default"] = _default;
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.MarkHoverCircle = exports.Mark = void 0;
|
|
5
|
-
|
|
6
5
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
7
|
-
|
|
8
6
|
var _polished = require("polished");
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
|
-
var Mark = (0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
8
|
+
var Mark = /*#__PURE__*/(0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
13
9
|
target: "ekzqro1"
|
|
14
10
|
} : {
|
|
15
11
|
target: "ekzqro1",
|
|
@@ -22,7 +18,7 @@ var Mark = (0, _base["default"])("div", process.env.NODE_ENV === "production" ?
|
|
|
22
18
|
return disabled ? 'not-allowed' : 'unset';
|
|
23
19
|
}, ";:hover{background:", function (_ref3) {
|
|
24
20
|
var theme = _ref3.theme,
|
|
25
|
-
|
|
21
|
+
disabled = _ref3.disabled;
|
|
26
22
|
return !disabled ? theme.utils.getColor('blue', 600) : undefined;
|
|
27
23
|
}, ";::before{content:'", function (_ref4) {
|
|
28
24
|
var labelValue = _ref4.labelValue;
|
|
@@ -41,7 +37,7 @@ var Mark = (0, _base["default"])("div", process.env.NODE_ENV === "production" ?
|
|
|
41
37
|
return disabled ? 'none' : 'unset';
|
|
42
38
|
}, ";position:absolute;top:", (0, _polished.rem)(-10), ";left:", (0, _polished.rem)(-2.5), ";width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #000;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NsaWRlci9jb21wb25lbnRzL1NsaWRlck1hcmsvU2xpZGVyTWFyay5zdHlsZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBU0UiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyTWFyay9TbGlkZXJNYXJrLnN0eWxlLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IHJlbSwgcmdiYSB9IGZyb20gJ3BvbGlzaGVkJztcbmltcG9ydCB7IENTU1Byb3BlcnRpZXMgfSBmcm9tICdyZWFjdCc7XG5cbmV4cG9ydCBjb25zdCBNYXJrID0gc3R5bGVkLmRpdjx7XG4gIGJhY2tncm91bmQ6IHN0cmluZztcbiAgZGlzYWJsZWQ6IGJvb2xlYW47XG4gIGxhYmVsVmFsdWU6IHN0cmluZztcbiAgcmVzdFN0eWxlUHJvcHM6IENTU1Byb3BlcnRpZXM7XG59PmBcbiAgaGVpZ2h0OiAke3JlbSg3KX07XG4gIHdpZHRoOiAke3JlbSg3KX07XG4gIGJvcmRlci1yYWRpdXM6IDEwMCU7XG4gIGJhY2tncm91bmQ6ICR7KHsgYmFja2dyb3VuZCB9KSA9PiBiYWNrZ3JvdW5kfTtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBjdXJzb3I6ICR7KHsgZGlzYWJsZWQgfSkgPT4gKGRpc2FibGVkID8gJ25vdC1hbGxvd2VkJyA6ICd1bnNldCcpfTtcblxuICA6aG92ZXIge1xuICAgIGJhY2tncm91bmQ6ICR7KHsgdGhlbWUsIGRpc2FibGVkIH0pID0+XG4gICAgICAhZGlzYWJsZWQgPyB0aGVtZS51dGlscy5nZXRDb2xvcignYmx1ZScsIDYwMCkgOiB1bmRlZmluZWR9O1xuXG4gICAgOjpiZWZvcmUge1xuICAgICAgY29udGVudDogJyR7KHsgbGFiZWxWYWx1ZSB9KSA9PiBsYWJlbFZhbHVlfSc7XG4gICAgICBjb2xvcjogd2hpdGU7XG4gICAgICBkaXNwbGF5OiAkeyh7IGRpc2FibGVkIH0pID0+IChkaXNhYmxlZCA/ICdub25lJyA6ICdmbGV4Jyl9O1xuICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICBmb250LXNpemU6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUudHlwb2dyYXBoeS5mb250U2l6ZXNbMTFdfTtcbiAgICAgIGJhY2tncm91bmQ6IGJsYWNrO1xuICAgICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgcGFkZGluZzogJHsoeyB0aGVtZSB9KSA9PiB0aGVtZS5zcGFjaW5nLnNtfTtcbiAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gICAgICB0b3A6ICR7cmVtKC0zNSl9O1xuICAgICAgbGVmdDogJHtyZW0oLTE0LjUpfTtcbiAgICAgIHdpZHRoOiAke3JlbSgzNSl9O1xuICAgICAgaGVpZ2h0OiAke3JlbSgyNyl9O1xuICAgICAgYm9yZGVyLXJhZGl1czogMnB4O1xuICAgIH1cblxuICAgIDo6YWZ0ZXIge1xuICAgICAgY29udGVudDogJyAnO1xuICAgICAgZGlzcGxheTogJHsoeyBkaXNhYmxlZCB9KSA9PiAoZGlzYWJsZWQgPyAnbm9uZScgOiAndW5zZXQnKX07XG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICB0b3A6ICR7cmVtKC0xMCl9O1xuICAgICAgbGVmdDogJHtyZW0oLTIuNSl9O1xuICAgICAgd2lkdGg6IDA7XG4gICAgICBoZWlnaHQ6IDA7XG4gICAgICBib3JkZXItbGVmdDogNnB4IHNvbGlkIHRyYW5zcGFyZW50O1xuICAgICAgYm9yZGVyLXJpZ2h0OiA2cHggc29saWQgdHJhbnNwYXJlbnQ7XG4gICAgICBib3JkZXItdG9wOiA2cHggc29saWQgIzAwMDtcbiAgICB9XG4gIH1cbmA7XG5cbmV4cG9ydCBjb25zdCBNYXJrSG92ZXJDaXJjbGUgPSBzdHlsZWQuZGl2PHsgZGlzYWJsZWQ6IGJvb2xlYW4gfT5gXG4gIDo6YWZ0ZXIge1xuICAgIGNvbnRlbnQ6ICcgJztcblxuICAgIGhlaWdodDogJHtyZW0oNyl9O1xuICAgIHdpZHRoOiAke3JlbSg3KX07XG5cbiAgICBib3JkZXI6IDRweCBzb2xpZCB0cmFuc3BhcmVudDtcbiAgICBib3JkZXItcmFkaXVzOiAxMDBweDtcblxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB0b3A6ICR7cmVtKC00KX07XG4gICAgbGVmdDogJHtyZW0oLTQpfTtcbiAgfVxuXG4gIDpob3ZlciB7XG4gICAgJjo6YWZ0ZXIge1xuICAgICAgYm9yZGVyLWNvbG9yOiAkeyh7IGRpc2FibGVkIH0pID0+ICghZGlzYWJsZWQgPyByZ2JhKDE0LCAxNCwgMjMsIDAuMSkgOiB1bmRlZmluZWQpfTtcbiAgICB9XG4gIH1cbmA7XG4iXX0= */"));
|
|
43
39
|
exports.Mark = Mark;
|
|
44
|
-
var MarkHoverCircle = (0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
40
|
+
var MarkHoverCircle = /*#__PURE__*/(0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
45
41
|
target: "ekzqro0"
|
|
46
42
|
} : {
|
|
47
43
|
target: "ekzqro0",
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _SliderMark = _interopRequireDefault(require("./SliderMark"));
|
|
7
|
-
|
|
8
6
|
exports["default"] = _SliderMark["default"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -2,25 +2,18 @@
|
|
|
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 _SliderThumb = require("./SliderThumb.style");
|
|
9
|
-
|
|
10
7
|
var _react2 = require("@emotion/react");
|
|
11
|
-
|
|
12
8
|
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); }
|
|
13
|
-
|
|
14
9
|
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; }
|
|
15
|
-
|
|
16
|
-
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); }
|
|
17
|
-
|
|
10
|
+
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); }
|
|
18
11
|
var SliderThumb = function SliderThumb(_ref) {
|
|
19
12
|
var disabled = _ref.disabled,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
value = _ref.value,
|
|
14
|
+
initialValue = _ref.initialValue,
|
|
15
|
+
dataTestId = _ref.dataTestId,
|
|
16
|
+
restProps = _ref.restProps;
|
|
24
17
|
var isChanged = (0, React.useMemo)(function () {
|
|
25
18
|
return initialValue !== value;
|
|
26
19
|
}, [initialValue, value]);
|
|
@@ -32,6 +25,5 @@ var SliderThumb = function SliderThumb(_ref) {
|
|
|
32
25
|
restStyleProps: restProps.style
|
|
33
26
|
}));
|
|
34
27
|
};
|
|
35
|
-
|
|
36
28
|
var _default = SliderThumb;
|
|
37
29
|
exports["default"] = _default;
|
|
@@ -2,29 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.Thumb = void 0;
|
|
5
|
-
|
|
6
5
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
7
|
-
|
|
8
6
|
var _polished = require("polished");
|
|
9
|
-
|
|
10
7
|
var _functions = require("../../../../theme/functions");
|
|
11
|
-
|
|
12
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var Thumb = (0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
9
|
+
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); }
|
|
10
|
+
var Thumb = /*#__PURE__*/(0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
17
11
|
target: "e76yl4h0"
|
|
18
12
|
} : {
|
|
19
13
|
target: "e76yl4h0",
|
|
20
14
|
label: "Thumb"
|
|
21
15
|
})("height:", (0, _polished.rem)(16), ";width:", (0, _polished.rem)(16), ";border-radius:100px;background-color:", function (_ref) {
|
|
22
16
|
var theme = _ref.theme,
|
|
23
|
-
|
|
17
|
+
isChanged = _ref.isChanged;
|
|
24
18
|
return isChanged ? theme.utils.getColor('blue', 500) : '#fff';
|
|
25
19
|
}, ";border:2px solid ", function (_ref2) {
|
|
26
20
|
var theme = _ref2.theme,
|
|
27
|
-
|
|
21
|
+
disabled = _ref2.disabled;
|
|
28
22
|
return theme.utils.getColor('blue', disabled ? 250 : 500);
|
|
29
23
|
}, ";", function (_ref3) {
|
|
30
24
|
var restStyleProps = _ref3.restStyleProps;
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _SliderThumb = _interopRequireDefault(require("./SliderThumb"));
|
|
7
|
-
|
|
8
6
|
exports["default"] = _SliderThumb["default"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
1
|
import { ITrackProps } from 'react-range/lib/types';
|
|
3
|
-
import { TestProps } from '
|
|
2
|
+
import { ReactFCC, TestProps } from 'utils/types';
|
|
4
3
|
declare type Props = {
|
|
5
4
|
values: number[];
|
|
6
5
|
disabled: boolean;
|
|
7
6
|
isSelector: boolean;
|
|
8
7
|
restProps: ITrackProps;
|
|
9
8
|
};
|
|
10
|
-
declare const SliderTrack:
|
|
9
|
+
declare const SliderTrack: ReactFCC<Props & TestProps>;
|
|
11
10
|
export default SliderTrack;
|
|
@@ -2,35 +2,24 @@
|
|
|
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 _reactRange = require("react-range");
|
|
9
|
-
|
|
7
|
+
var _SliderTrack = require("./SliderTrack.style");
|
|
10
8
|
var _useTheme = _interopRequireDefault(require("../../../../hooks/useTheme"));
|
|
11
|
-
|
|
12
9
|
var _Slider = require("../../Slider");
|
|
13
|
-
|
|
14
|
-
var _SliderTrack = require("./SliderTrack.style");
|
|
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
|
-
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); }
|
|
25
|
-
|
|
14
|
+
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); }
|
|
26
15
|
var SliderTrack = function SliderTrack(_ref) {
|
|
27
16
|
var values = _ref.values,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
17
|
+
disabled = _ref.disabled,
|
|
18
|
+
isSelector = _ref.isSelector,
|
|
19
|
+
_ref$dataTestPrefixId = _ref.dataTestPrefixId,
|
|
20
|
+
dataTestPrefixId = _ref$dataTestPrefixId === void 0 ? '' : _ref$dataTestPrefixId,
|
|
21
|
+
restProps = _ref.restProps,
|
|
22
|
+
children = _ref.children;
|
|
34
23
|
var theme = (0, _useTheme["default"])();
|
|
35
24
|
var backgroundStyle = (0, React.useMemo)(function () {
|
|
36
25
|
return (0, _reactRange.getTrackBackground)({
|
|
@@ -49,6 +38,5 @@ var SliderTrack = function SliderTrack(_ref) {
|
|
|
49
38
|
background: backgroundStyle
|
|
50
39
|
}), children);
|
|
51
40
|
};
|
|
52
|
-
|
|
53
41
|
var _default = SliderTrack;
|
|
54
42
|
exports["default"] = _default;
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.Track = void 0;
|
|
5
|
-
|
|
6
5
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
7
|
-
|
|
8
6
|
var _polished = require("polished");
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
|
-
var Track = (0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
8
|
+
var Track = /*#__PURE__*/(0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
13
9
|
target: "ecb6cmq0"
|
|
14
10
|
} : {
|
|
15
11
|
target: "ecb6cmq0",
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _SliderTrack = _interopRequireDefault(require("./SliderTrack"));
|
|
7
|
-
|
|
8
6
|
exports["default"] = _SliderTrack["default"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _Slider = _interopRequireDefault(require("./Slider"));
|
|
7
|
-
|
|
8
6
|
exports["default"] = _Slider["default"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|