@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,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _Search = _interopRequireDefault(require("./Search"));
|
|
7
|
-
|
|
8
6
|
exports["default"] = _Search["default"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -2,17 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _Icon = _interopRequireDefault(require("../../../Icon"));
|
|
9
|
-
|
|
10
7
|
var _SidebarMenuIcon = _interopRequireDefault(require("./SidebarMenuIcon.style"));
|
|
11
|
-
|
|
12
8
|
var _react2 = require("@emotion/react");
|
|
13
|
-
|
|
14
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
10
|
var SidebarMenuIcon = function SidebarMenuIcon(_ref) {
|
|
17
11
|
var onMenuIconClick = _ref.onMenuIconClick;
|
|
18
12
|
return (0, _react2.jsx)("div", {
|
|
@@ -25,6 +19,5 @@ var SidebarMenuIcon = function SidebarMenuIcon(_ref) {
|
|
|
25
19
|
size: 24
|
|
26
20
|
}));
|
|
27
21
|
};
|
|
28
|
-
|
|
29
22
|
var _default = SidebarMenuIcon;
|
|
30
23
|
exports["default"] = _default;
|
|
@@ -2,18 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = require("@emotion/react");
|
|
7
|
-
|
|
8
6
|
var iconWrapper = function iconWrapper(theme) {
|
|
9
7
|
return (
|
|
10
8
|
/*#__PURE__*/
|
|
11
|
-
|
|
12
9
|
/*#__PURE__*/
|
|
13
10
|
(0, _react.css)("cursor:pointer;margin:", theme.spacing.lg, " 0px ", theme.spacing.lg, " ", theme.spacing.xsm, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:iconWrapper;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1RvcEFwcEJhci9jb21wb25lbnRzL1NpZGViYXJNZW51SWNvbi9TaWRlYmFyTWVudUljb24uc3R5bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSTJEIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1RvcEFwcEJhci9jb21wb25lbnRzL1NpZGViYXJNZW51SWNvbi9TaWRlYmFyTWVudUljb24uc3R5bGUudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MsIFNlcmlhbGl6ZWRTdHlsZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vLi4vLi4vdGhlbWUnO1xuXG5jb25zdCBpY29uV3JhcHBlciA9ICh0aGVtZTogVGhlbWUpOiBTZXJpYWxpemVkU3R5bGVzID0+IGNzc2BcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBtYXJnaW46ICR7dGhlbWUuc3BhY2luZy5sZ30gMHB4ICR7dGhlbWUuc3BhY2luZy5sZ30gJHt0aGVtZS5zcGFjaW5nLnhzbX07XG5gO1xuXG5leHBvcnQgZGVmYXVsdCB7XG4gIGljb25XcmFwcGVyLFxufTtcbiJdfQ== */", process.env.NODE_ENV === "production" ? "" : ";label:iconWrapper;")
|
|
14
11
|
);
|
|
15
12
|
};
|
|
16
|
-
|
|
17
13
|
var _default = {
|
|
18
14
|
iconWrapper: iconWrapper
|
|
19
15
|
};
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _SidebarMenuIcon = _interopRequireDefault(require("./SidebarMenuIcon"));
|
|
7
|
-
|
|
8
6
|
exports["default"] = _SidebarMenuIcon["default"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -2,24 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _Menu = _interopRequireDefault(require("../../../Menu"));
|
|
9
|
-
|
|
10
7
|
var _UserMenu = _interopRequireDefault(require("./UserMenu.style"));
|
|
11
|
-
|
|
12
8
|
var _react2 = require("@emotion/react");
|
|
13
|
-
|
|
14
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
10
|
var UserMenu = function UserMenu(_ref) {
|
|
17
11
|
var items = _ref.items,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
userAvatar = _ref.userAvatar,
|
|
13
|
+
userName = _ref.userName,
|
|
14
|
+
onSelect = _ref.onSelect,
|
|
15
|
+
_ref$dark = _ref.dark,
|
|
16
|
+
dark = _ref$dark === void 0 ? false : _ref$dark;
|
|
23
17
|
return (0, _react2.jsx)(_Menu["default"], {
|
|
24
18
|
items: items,
|
|
25
19
|
size: 'sm',
|
|
@@ -34,6 +28,5 @@ var UserMenu = function UserMenu(_ref) {
|
|
|
34
28
|
dataTestId: 'userMenu'
|
|
35
29
|
});
|
|
36
30
|
};
|
|
37
|
-
|
|
38
31
|
var _default = UserMenu;
|
|
39
32
|
exports["default"] = _default;
|
|
@@ -2,18 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = require("@emotion/react");
|
|
7
|
-
|
|
8
6
|
var buttonTextStyle = function buttonTextStyle(theme) {
|
|
9
7
|
return (
|
|
10
8
|
/*#__PURE__*/
|
|
11
|
-
|
|
12
9
|
/*#__PURE__*/
|
|
13
10
|
(0, _react.css)("font-weight:", theme.typography.weights.medium, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:buttonTextStyle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1RvcEFwcEJhci9jb21wb25lbnRzL1VzZXJNZW51L1VzZXJNZW51LnN0eWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUkrRCIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9Ub3BBcHBCYXIvY29tcG9uZW50cy9Vc2VyTWVudS9Vc2VyTWVudS5zdHlsZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi8uLi8uLi90aGVtZSc7XG5cbmNvbnN0IGJ1dHRvblRleHRTdHlsZSA9ICh0aGVtZTogVGhlbWUpOiBTZXJpYWxpemVkU3R5bGVzID0+IGNzc2BcbiAgZm9udC13ZWlnaHQ6ICR7dGhlbWUudHlwb2dyYXBoeS53ZWlnaHRzLm1lZGl1bX07XG5gO1xuXG5leHBvcnQgZGVmYXVsdCB7XG4gIGJ1dHRvblRleHRTdHlsZSxcbn07XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:buttonTextStyle;")
|
|
14
11
|
);
|
|
15
12
|
};
|
|
16
|
-
|
|
17
13
|
var _default = {
|
|
18
14
|
buttonTextStyle: buttonTextStyle
|
|
19
15
|
};
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _UserMenu = _interopRequireDefault(require("./UserMenu"));
|
|
7
|
-
|
|
8
6
|
exports["default"] = _UserMenu["default"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -2,17 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.UserMenu = exports.SidebarMenuIcon = exports.LogoPlaceholder = void 0;
|
|
5
|
-
|
|
6
5
|
var _Logo = _interopRequireDefault(require("./Logo"));
|
|
7
|
-
|
|
8
6
|
exports.LogoPlaceholder = _Logo["default"];
|
|
9
|
-
|
|
10
7
|
var _SidebarMenuIcon = _interopRequireDefault(require("./SidebarMenuIcon"));
|
|
11
|
-
|
|
12
8
|
exports.SidebarMenuIcon = _SidebarMenuIcon["default"];
|
|
13
|
-
|
|
14
9
|
var _UserMenu = _interopRequireDefault(require("./UserMenu"));
|
|
15
|
-
|
|
16
10
|
exports.UserMenu = _UserMenu["default"];
|
|
17
|
-
|
|
18
11
|
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 _TopAppBar = _interopRequireDefault(require("./TopAppBar"));
|
|
7
|
-
|
|
8
6
|
exports["default"] = _TopAppBar["default"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactFCC } from 'utils/types';
|
|
2
2
|
declare type Props = {
|
|
3
3
|
/** The content of the tooltip */
|
|
4
4
|
tooltipContent: string | undefined;
|
|
@@ -7,5 +7,5 @@ declare type Props = {
|
|
|
7
7
|
/** The placement of the tooltip */
|
|
8
8
|
placement?: 'top' | 'bottom' | 'right' | 'left';
|
|
9
9
|
};
|
|
10
|
-
declare const TruncatedContent:
|
|
10
|
+
declare const TruncatedContent: ReactFCC<Props>;
|
|
11
11
|
export default TruncatedContent;
|
|
@@ -2,33 +2,23 @@
|
|
|
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 _TruncatedContent = require("./TruncatedContent.style");
|
|
9
|
-
|
|
10
7
|
var _Tooltip = _interopRequireDefault(require("../Tooltip"));
|
|
11
|
-
|
|
12
8
|
var _react2 = require("@emotion/react");
|
|
13
|
-
|
|
14
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
10
|
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); }
|
|
17
|
-
|
|
18
11
|
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; }
|
|
19
|
-
|
|
20
12
|
var TruncatedContent = function TruncatedContent(_ref) {
|
|
21
13
|
var children = _ref.children,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
_ref$shouldAlwaysShow = _ref.shouldAlwaysShow,
|
|
15
|
+
shouldAlwaysShow = _ref$shouldAlwaysShow === void 0 ? false : _ref$shouldAlwaysShow,
|
|
16
|
+
tooltipContent = _ref.tooltipContent,
|
|
17
|
+
_ref$placement = _ref.placement,
|
|
18
|
+
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement;
|
|
28
19
|
var _useState = (0, _react.useState)(false),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
isHovered = _useState[0],
|
|
21
|
+
setIsHovered = _useState[1];
|
|
32
22
|
var targetRef = (0, _react.useRef)(null);
|
|
33
23
|
var target = targetRef.current;
|
|
34
24
|
var handleMouseEnter = (0, _react.useCallback)(function () {
|
|
@@ -44,11 +34,9 @@ var TruncatedContent = function TruncatedContent(_ref) {
|
|
|
44
34
|
if (tooltipContent === undefined) {
|
|
45
35
|
return false;
|
|
46
36
|
}
|
|
47
|
-
|
|
48
37
|
if (shouldAlwaysShow) {
|
|
49
38
|
return true;
|
|
50
39
|
}
|
|
51
|
-
|
|
52
40
|
return isHovered && isTruncated;
|
|
53
41
|
}, []);
|
|
54
42
|
return showTooltip(tooltipContent, isHovered, isTruncated, shouldAlwaysShow) ? (0, _react2.jsx)(_Tooltip["default"], {
|
|
@@ -64,6 +52,5 @@ var TruncatedContent = function TruncatedContent(_ref) {
|
|
|
64
52
|
onMouseLeave: handleMouseLeave
|
|
65
53
|
}, children);
|
|
66
54
|
};
|
|
67
|
-
|
|
68
55
|
var _default = TruncatedContent;
|
|
69
56
|
exports["default"] = _default;
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.TruncationDiv = void 0;
|
|
5
|
-
|
|
6
5
|
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
7
|
-
|
|
8
6
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
-
|
|
10
7
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
11
|
-
|
|
12
|
-
var TruncationDiv = (0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
8
|
+
var TruncationDiv = /*#__PURE__*/(0, _base["default"])("div", process.env.NODE_ENV === "production" ? {
|
|
13
9
|
target: "ep8j7z50"
|
|
14
10
|
} : {
|
|
15
11
|
target: "ep8j7z50",
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _TruncatedContent = _interopRequireDefault(require("./TruncatedContent"));
|
|
7
|
-
|
|
8
6
|
exports["default"] = _TruncatedContent["default"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactFCC } from 'utils/types';
|
|
2
2
|
export declare type HTMLTagsAllowed = 'div' | 'li' | 'span';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
onClick: () => void;
|
|
@@ -8,5 +8,5 @@ declare type Props = {
|
|
|
8
8
|
[key: string]: unknown;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
declare const ClickAwayListener:
|
|
11
|
+
declare const ClickAwayListener: ReactFCC<Props>;
|
|
12
12
|
export default ClickAwayListener;
|
|
@@ -2,26 +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 _react2 = require("@emotion/react");
|
|
9
|
-
|
|
10
7
|
var _excluded = ["onClick", "CustomHtmlTag", "ariaRole", "cssStyles"];
|
|
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 _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; }
|
|
17
|
-
|
|
18
11
|
var useClickAwayListener = function useClickAwayListener(ref, onClick) {
|
|
19
12
|
var handleClickOutside = function handleClickOutside(event) {
|
|
20
13
|
if (ref.current && !ref.current.contains(event.target)) {
|
|
21
14
|
onClick();
|
|
22
15
|
}
|
|
23
16
|
};
|
|
24
|
-
|
|
25
17
|
React.useEffect(function () {
|
|
26
18
|
document.addEventListener('mousedown', handleClickOutside);
|
|
27
19
|
return function () {
|
|
@@ -29,16 +21,14 @@ var useClickAwayListener = function useClickAwayListener(ref, onClick) {
|
|
|
29
21
|
};
|
|
30
22
|
});
|
|
31
23
|
};
|
|
32
|
-
|
|
33
24
|
var ClickAwayListener = function ClickAwayListener(_ref) {
|
|
34
25
|
var onClick = _ref.onClick,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
26
|
+
_ref$CustomHtmlTag = _ref.CustomHtmlTag,
|
|
27
|
+
CustomHtmlTag = _ref$CustomHtmlTag === void 0 ? 'div' : _ref$CustomHtmlTag,
|
|
28
|
+
_ref$ariaRole = _ref.ariaRole,
|
|
29
|
+
ariaRole = _ref$ariaRole === void 0 ? 'button' : _ref$ariaRole,
|
|
30
|
+
cssStyles = _ref.cssStyles,
|
|
31
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
42
32
|
var wrapperRef = React.useRef(null);
|
|
43
33
|
useClickAwayListener(wrapperRef, onClick);
|
|
44
34
|
return (0, _react2.jsx)(CustomHtmlTag, {
|
|
@@ -47,6 +37,5 @@ var ClickAwayListener = function ClickAwayListener(_ref) {
|
|
|
47
37
|
style: cssStyles
|
|
48
38
|
}, props.children);
|
|
49
39
|
};
|
|
50
|
-
|
|
51
40
|
var _default = ClickAwayListener;
|
|
52
41
|
exports["default"] = _default;
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _ClickAwayListener = _interopRequireDefault(require("./ClickAwayListener"));
|
|
7
|
-
|
|
8
6
|
exports["default"] = _ClickAwayListener["default"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -2,21 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.optionsStyle = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = require("@emotion/react");
|
|
7
|
-
|
|
8
6
|
var _utils = require("../../../theme/utils");
|
|
9
|
-
|
|
10
7
|
var optionsStyle = function optionsStyle(_ref) {
|
|
11
8
|
var menuPosition = _ref.menuPosition;
|
|
12
9
|
return function (theme) {
|
|
13
10
|
return (
|
|
14
11
|
/*#__PURE__*/
|
|
15
|
-
|
|
16
12
|
/*#__PURE__*/
|
|
17
13
|
(0, _react.css)("max-height:", (0, _utils.rem)(253), ";overflow-y:auto;position:absolute;top:", (0, _utils.rem)(48), ";left:", menuPosition === 'left' ? 0 : 'initial', ";right:0;min-width:", (0, _utils.rem)(150), ";width:100%;height:auto;background-color:", theme.palette.white, ";box-shadow:", theme.elevation['02'], ";border-radius:", (0, _utils.rem)(4), ";z-index:1;" + (process.env.NODE_ENV === "production" ? "" : ";label:optionsStyle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL3V0aWxzL0Ryb3Bkb3duT3B0aW9ucy9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV29GIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL3V0aWxzL0Ryb3Bkb3duT3B0aW9ucy9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW0gfSBmcm9tICd0aGVtZS91dGlscyc7XG5cbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAnLi4vLi4vLi4vdGhlbWUnO1xuXG5leHBvcnQgdHlwZSBNZW51UG9zaXRpb25BbGxvd2VkID0gJ2xlZnQnIHwgJ3JpZ2h0JztcblxuZXhwb3J0IHR5cGUgTWVudU9wdGlvbnMgPSB7XG4gIG1lbnVQb3NpdGlvbj86IE1lbnVQb3NpdGlvbkFsbG93ZWQ7XG59O1xuXG5leHBvcnQgY29uc3Qgb3B0aW9uc1N0eWxlID0gKHsgbWVudVBvc2l0aW9uIH06IE1lbnVPcHRpb25zKSA9PiAodGhlbWU6IFRoZW1lKSA9PiBjc3NgXG4gIG1heC1oZWlnaHQ6ICR7cmVtKDI1Myl9O1xuICBvdmVyZmxvdy15OiBhdXRvO1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogJHtyZW0oNDgpfTtcbiAgbGVmdDogJHttZW51UG9zaXRpb24gPT09ICdsZWZ0JyA/IDAgOiAnaW5pdGlhbCd9O1xuICByaWdodDogMDtcbiAgbWluLXdpZHRoOiAke3JlbSgxNTApfTtcbiAgd2lkdGg6IDEwMCU7XG4gIGhlaWdodDogYXV0bztcbiAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5wYWxldHRlLndoaXRlfTtcbiAgYm94LXNoYWRvdzogJHt0aGVtZS5lbGV2YXRpb25bJzAyJ119O1xuICBib3JkZXItcmFkaXVzOiAke3JlbSg0KX07XG4gIHotaW5kZXg6IDE7XG5gO1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:optionsStyle;")
|
|
18
14
|
);
|
|
19
15
|
};
|
|
20
16
|
};
|
|
21
|
-
|
|
22
17
|
exports.optionsStyle = optionsStyle;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@emotion/serialize';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { ReactFCC } from 'utils/types';
|
|
3
4
|
declare type Props = {
|
|
4
5
|
/** Whether the item to be positioned is visible */
|
|
5
6
|
visible: boolean;
|
|
@@ -12,12 +13,12 @@ declare type Props = {
|
|
|
12
13
|
/** Additional offset-y */
|
|
13
14
|
offsetY?: number;
|
|
14
15
|
/** The parent element */
|
|
15
|
-
parent:
|
|
16
|
+
parent: React.ReactElement;
|
|
16
17
|
/** Sx prop to override specific properties */
|
|
17
18
|
sx?: {
|
|
18
19
|
container?: CSSObject;
|
|
19
20
|
itemContainer?: CSSObject;
|
|
20
21
|
};
|
|
21
22
|
};
|
|
22
|
-
declare const PositionInScreen:
|
|
23
|
+
declare const PositionInScreen: ReactFCC<Props>;
|
|
23
24
|
export default PositionInScreen;
|
|
@@ -2,41 +2,31 @@
|
|
|
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 _hooks = require("./hooks");
|
|
9
|
-
|
|
10
7
|
var _PositionInScreen = require("./PositionInScreen.style");
|
|
11
|
-
|
|
12
8
|
var _react2 = require("@emotion/react");
|
|
13
|
-
|
|
14
9
|
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); }
|
|
15
|
-
|
|
16
10
|
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; }
|
|
17
|
-
|
|
18
11
|
var PositionInScreen = function PositionInScreen(_ref) {
|
|
19
12
|
var visible = _ref.visible,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
parent = _ref.parent,
|
|
14
|
+
withOverflow = _ref.withOverflow,
|
|
15
|
+
_ref$hasWrapperWidth = _ref.hasWrapperWidth,
|
|
16
|
+
hasWrapperWidth = _ref$hasWrapperWidth === void 0 ? false : _ref$hasWrapperWidth,
|
|
17
|
+
_ref$offsetX = _ref.offsetX,
|
|
18
|
+
offsetX = _ref$offsetX === void 0 ? 0 : _ref$offsetX,
|
|
19
|
+
_ref$offsetY = _ref.offsetY,
|
|
20
|
+
offsetY = _ref$offsetY === void 0 ? 0 : _ref$offsetY,
|
|
21
|
+
sx = _ref.sx,
|
|
22
|
+
children = _ref.children;
|
|
30
23
|
var wrapperRef = (0, _react.useRef)(null);
|
|
31
24
|
var itemRef = (0, _react.useRef)(null);
|
|
32
|
-
|
|
33
25
|
var _useWrapperWidth = (0, _hooks.useWrapperWidth)(hasWrapperWidth, wrapperRef),
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
wrapperWidth = _useWrapperWidth[0];
|
|
36
27
|
var _usePositionInScreen = (0, _hooks.usePositionInScreen)(wrapperRef, itemRef, offsetX, offsetY, visible),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
x = _usePositionInScreen.x,
|
|
29
|
+
y = _usePositionInScreen.y;
|
|
40
30
|
var showTooltip = visible && x !== -1 && y !== -1;
|
|
41
31
|
return (0, _react2.jsx)("div", {
|
|
42
32
|
css: (0, _PositionInScreen.container)(withOverflow, showTooltip, sx),
|
|
@@ -47,6 +37,5 @@ var PositionInScreen = function PositionInScreen(_ref) {
|
|
|
47
37
|
ref: itemRef
|
|
48
38
|
}, children));
|
|
49
39
|
};
|
|
50
|
-
|
|
51
40
|
var _default = PositionInScreen;
|
|
52
41
|
exports["default"] = _default;
|
|
@@ -2,18 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.itemContainer = exports.container = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = require("@emotion/react");
|
|
7
|
-
|
|
8
6
|
var _polished = require("polished");
|
|
9
|
-
|
|
10
|
-
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); }
|
|
11
|
-
|
|
7
|
+
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); }
|
|
12
8
|
var container = function container(withOverflow, visible, sx) {
|
|
13
9
|
return function () {
|
|
14
10
|
return (
|
|
15
11
|
/*#__PURE__*/
|
|
16
|
-
|
|
17
12
|
/*#__PURE__*/
|
|
18
13
|
(0, _react.css)(_extends({
|
|
19
14
|
overflow: withOverflow ? 'hidden' : 'inherit',
|
|
@@ -28,14 +23,11 @@ var container = function container(withOverflow, visible, sx) {
|
|
|
28
23
|
);
|
|
29
24
|
};
|
|
30
25
|
};
|
|
31
|
-
|
|
32
26
|
exports.container = container;
|
|
33
|
-
|
|
34
27
|
var itemContainer = function itemContainer(clientX, clientY, width, sx) {
|
|
35
28
|
return function () {
|
|
36
29
|
return (
|
|
37
30
|
/*#__PURE__*/
|
|
38
|
-
|
|
39
31
|
/*#__PURE__*/
|
|
40
32
|
(0, _react.css)(_extends({
|
|
41
33
|
position: 'absolute',
|
|
@@ -49,5 +41,4 @@ var itemContainer = function itemContainer(clientX, clientY, width, sx) {
|
|
|
49
41
|
);
|
|
50
42
|
};
|
|
51
43
|
};
|
|
52
|
-
|
|
53
44
|
exports.itemContainer = itemContainer;
|