@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
package/dist/utils/size-utils.js
CHANGED
|
@@ -1,60 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
5
|
-
|
|
4
|
+
exports.getTextFieldSize = exports.getTextFieldHeight = exports.getSpacingBySize = exports.DEFAULT_SIZE = void 0;
|
|
6
5
|
var _polished = require("polished");
|
|
7
|
-
|
|
8
6
|
var _config = require("../components/TextInputBase/config");
|
|
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 DEFAULT_SIZE = 'md';
|
|
13
9
|
exports.DEFAULT_SIZE = DEFAULT_SIZE;
|
|
14
|
-
|
|
15
10
|
var getTextFieldHeight = function getTextFieldHeight(size) {
|
|
16
11
|
switch (size) {
|
|
17
12
|
case 'md':
|
|
18
13
|
return (0, _polished.rem)(_config.MD_HEIGHT);
|
|
19
|
-
|
|
20
14
|
case 'sm':
|
|
21
15
|
return (0, _polished.rem)(_config.SM_HEIGHT);
|
|
22
|
-
|
|
23
16
|
default:
|
|
24
17
|
return 'auto';
|
|
25
18
|
}
|
|
26
19
|
};
|
|
27
|
-
|
|
28
20
|
exports.getTextFieldHeight = getTextFieldHeight;
|
|
29
|
-
|
|
30
21
|
var getTextFieldWidth = function getTextFieldWidth(size) {
|
|
31
22
|
switch (size) {
|
|
32
23
|
case 'md':
|
|
33
24
|
return (0, _polished.rem)(_config.MIN_WIDTH);
|
|
34
|
-
|
|
35
25
|
case 'sm':
|
|
36
26
|
return (0, _polished.rem)(_config.MIN_WIDTH);
|
|
37
|
-
|
|
38
27
|
default:
|
|
39
28
|
return 'auto';
|
|
40
29
|
}
|
|
41
30
|
};
|
|
42
|
-
|
|
43
31
|
var getTextFieldSize = function getTextFieldSize(hasMinWidthCompat, size, multi) {
|
|
44
32
|
if (hasMinWidthCompat === void 0) {
|
|
45
33
|
hasMinWidthCompat = true;
|
|
46
34
|
}
|
|
47
|
-
|
|
48
35
|
if (multi === void 0) {
|
|
49
36
|
multi = false;
|
|
50
37
|
}
|
|
51
|
-
|
|
52
38
|
if (!hasMinWidthCompat) {
|
|
53
39
|
return {
|
|
54
40
|
height: getTextFieldHeight(size)
|
|
55
41
|
};
|
|
56
42
|
}
|
|
57
|
-
|
|
58
43
|
return _extends({
|
|
59
44
|
minWidth: getTextFieldWidth(size),
|
|
60
45
|
height: getTextFieldHeight(size)
|
|
@@ -62,11 +47,8 @@ var getTextFieldSize = function getTextFieldSize(hasMinWidthCompat, size, multi)
|
|
|
62
47
|
width: (0, _polished.rem)(_config.MULTI_WIDTH)
|
|
63
48
|
} : {});
|
|
64
49
|
};
|
|
65
|
-
|
|
66
50
|
exports.getTextFieldSize = getTextFieldSize;
|
|
67
|
-
|
|
68
51
|
var getSpacingBySize = function getSpacingBySize(size, theme) {
|
|
69
52
|
return theme.spacing[size];
|
|
70
53
|
};
|
|
71
|
-
|
|
72
54
|
exports.getSpacingBySize = getSpacingBySize;
|
package/dist/utils/storyshots.js
CHANGED
|
@@ -9,45 +9,41 @@ var DYNAMIC_ATTRIBUTES_LIST = [{
|
|
|
9
9
|
elementType: 'label',
|
|
10
10
|
attributeName: 'htmlFor'
|
|
11
11
|
}];
|
|
12
|
+
|
|
12
13
|
/**
|
|
13
14
|
* Changes the dynamic value of the attribute to static
|
|
14
15
|
* @param prop
|
|
15
16
|
* @param attributeConfig
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
18
|
function changeAttributeValueToStatic(prop, attributeConfig) {
|
|
19
19
|
var elementType = attributeConfig.elementType,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
attributeName = attributeConfig.attributeName;
|
|
22
21
|
if ((prop == null ? void 0 : prop.type) === elementType) {
|
|
23
22
|
var dynamicAttributeValue = prop == null ? void 0 : prop.props[attributeName];
|
|
24
23
|
var newStaticAttributeValue = dynamicAttributeValue && dynamicAttributeValue.split('_')[0];
|
|
25
24
|
prop.props[attributeName] = newStaticAttributeValue;
|
|
26
25
|
}
|
|
27
26
|
}
|
|
27
|
+
|
|
28
28
|
/**
|
|
29
29
|
* This is a recursive function that crawls all the nested props of the tree and spots the elements' attributes
|
|
30
30
|
* @param child
|
|
31
31
|
*/
|
|
32
|
-
|
|
33
|
-
|
|
34
32
|
var storyTreeCrawler = function storyTreeCrawler(child) {
|
|
35
33
|
child.children.forEach(function (prop) {
|
|
36
34
|
DYNAMIC_ATTRIBUTES_LIST.forEach(function (attr) {
|
|
37
35
|
changeAttributeValueToStatic(prop, attr);
|
|
38
36
|
});
|
|
39
|
-
|
|
40
37
|
if (prop.children) {
|
|
41
38
|
storyTreeCrawler(prop);
|
|
42
39
|
}
|
|
43
40
|
});
|
|
44
41
|
};
|
|
42
|
+
|
|
45
43
|
/**
|
|
46
44
|
* Initializes the crawling process of the tree object.
|
|
47
45
|
* @param tree
|
|
48
46
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
47
|
function crawlTreeChildrenProps(tree) {
|
|
52
48
|
if (tree) {
|
|
53
49
|
if ('children' in tree) {
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
5
|
-
|
|
4
|
+
exports.getColorFromType = exports.fillPickerBasedOnType = exports.errors = exports.colorPickerBasedOnType = exports.calculateActualColorFromComponentProp = exports.backgroundPickerBasedOnType = void 0;
|
|
6
5
|
var _palette = require("../theme/palette");
|
|
7
|
-
|
|
8
6
|
var _errors = require("./errors");
|
|
9
|
-
|
|
10
7
|
var _helpers = require("./helpers");
|
|
11
|
-
|
|
12
8
|
/**
|
|
13
9
|
** This util provide an easy way to return the hex color from a type based on our main types 'primary', 'light', 'secondary' etc
|
|
14
10
|
*/
|
|
@@ -16,69 +12,53 @@ var getColorFromType = function getColorFromType(type, theme, variant) {
|
|
|
16
12
|
if (variant === void 0) {
|
|
17
13
|
variant = 50;
|
|
18
14
|
}
|
|
19
|
-
|
|
20
15
|
var secondaryVariant = variant && variant !== 50 ? variant : _palette.BASE_SHADE;
|
|
21
|
-
|
|
22
16
|
if (Object.values(_palette.mainTypes).includes(type)) {
|
|
23
17
|
var colorTypeValue = type;
|
|
24
|
-
|
|
25
18
|
if (colorTypeValue === 'primary') {
|
|
26
19
|
return theme.utils.getColor(colorTypeValue, variant, 'normal');
|
|
27
20
|
}
|
|
28
|
-
|
|
29
21
|
return theme.utils.getColor(colorTypeValue, secondaryVariant, 'normal');
|
|
30
22
|
}
|
|
31
|
-
|
|
32
23
|
if (Object.values(_palette.flatColors).includes(type)) {
|
|
33
24
|
var colorValue = type;
|
|
34
25
|
return theme.utils.getColor(colorValue, secondaryVariant);
|
|
35
26
|
}
|
|
36
|
-
|
|
37
27
|
return type;
|
|
38
28
|
};
|
|
39
|
-
|
|
40
29
|
exports.getColorFromType = getColorFromType;
|
|
41
|
-
|
|
42
30
|
var backgroundPickerBasedOnType = function backgroundPickerBasedOnType(type) {
|
|
43
31
|
return function (theme) {
|
|
44
32
|
return getColorFromType(type, theme);
|
|
45
33
|
};
|
|
46
34
|
};
|
|
47
|
-
|
|
48
35
|
exports.backgroundPickerBasedOnType = backgroundPickerBasedOnType;
|
|
49
|
-
|
|
50
36
|
var colorPickerBasedOnType = function colorPickerBasedOnType(type) {
|
|
51
37
|
return function (theme) {
|
|
52
38
|
switch (type) {
|
|
53
39
|
case 'primary':
|
|
54
40
|
return theme.utils.getColor('primary', _palette.BASE_SHADE, 'text');
|
|
55
|
-
|
|
56
41
|
case 'secondary':
|
|
57
42
|
return theme.utils.getColor('secondary', 50, 'text');
|
|
58
|
-
|
|
59
43
|
default:
|
|
60
44
|
return theme.utils.getColor('light', 50, 'text');
|
|
61
45
|
}
|
|
62
46
|
};
|
|
63
47
|
};
|
|
64
|
-
|
|
65
48
|
exports.colorPickerBasedOnType = colorPickerBasedOnType;
|
|
66
|
-
|
|
67
49
|
var fillPickerBasedOnType = function fillPickerBasedOnType(type, variant) {
|
|
68
50
|
if (variant === void 0) {
|
|
69
51
|
variant = 50;
|
|
70
52
|
}
|
|
71
|
-
|
|
72
53
|
return function (theme) {
|
|
73
54
|
return getColorFromType(type, theme, variant);
|
|
74
55
|
};
|
|
75
56
|
};
|
|
57
|
+
|
|
76
58
|
/**
|
|
77
59
|
* The type of the calculateActualColorFromComponentProp that will be used for the components
|
|
78
60
|
* translation from string
|
|
79
61
|
* */
|
|
80
|
-
|
|
81
|
-
|
|
82
62
|
exports.fillPickerBasedOnType = fillPickerBasedOnType;
|
|
83
63
|
var errors = [{
|
|
84
64
|
condition: function condition(_ref) {
|
|
@@ -108,14 +88,13 @@ var errors = [{
|
|
|
108
88
|
return new _errors.PropsValidationError("You passed a wrong shade for the second argument: " + color + " - try something like red-500");
|
|
109
89
|
}
|
|
110
90
|
}];
|
|
91
|
+
|
|
111
92
|
/**
|
|
112
93
|
* A utility to translate a color like red-500 to an object. This calculates on the color passed picked by our palette.
|
|
113
94
|
* So in case you run a red color for example `#d40000` this will return
|
|
114
95
|
* returns an object or undefined
|
|
115
96
|
* */
|
|
116
|
-
|
|
117
97
|
exports.errors = errors;
|
|
118
|
-
|
|
119
98
|
var calculateActualColorFromComponentProp = function calculateActualColorFromComponentProp(color) {
|
|
120
99
|
var colorAfterSplit = color.split('-');
|
|
121
100
|
(0, _helpers.errorHandler)(errors, {
|
|
@@ -129,5 +108,4 @@ var calculateActualColorFromComponentProp = function calculateActualColorFromCom
|
|
|
129
108
|
shade: calculatedShade
|
|
130
109
|
};
|
|
131
110
|
};
|
|
132
|
-
|
|
133
111
|
exports.calculateActualColorFromComponentProp = calculateActualColorFromComponentProp;
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
1
2
|
export declare type DeepPartial<T> = T extends {
|
|
2
3
|
[key: string]: unknown;
|
|
3
4
|
} ? {
|
|
@@ -8,3 +9,4 @@ export declare type TestProps = {
|
|
|
8
9
|
dataTestId?: TestId;
|
|
9
10
|
dataTestPrefixId?: string;
|
|
10
11
|
};
|
|
12
|
+
export declare type ReactFCC<T = unknown> = FC<PropsWithChildren<T>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orfium/ictinus",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.76.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,14 +8,15 @@
|
|
|
8
8
|
"@amanda-mitchell/semantic-release-npm-multiple": "^2.8.0",
|
|
9
9
|
"@babel/cli": "^7.13.16",
|
|
10
10
|
"@babel/core": "^7.14.0",
|
|
11
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
11
12
|
"@babel/polyfill": "^7.12.1",
|
|
12
13
|
"@babel/preset-env": "^7.14.1",
|
|
13
14
|
"@babel/preset-react": "^7.13.13",
|
|
14
15
|
"@babel/preset-typescript": "^7.13.0",
|
|
15
16
|
"@commitlint/cli": "^11.0.0",
|
|
16
17
|
"@commitlint/config-conventional": "^11.0.0",
|
|
17
|
-
"@emotion/react": "^11.
|
|
18
|
-
"@emotion/styled": "^11.
|
|
18
|
+
"@emotion/react": "^11.8.1",
|
|
19
|
+
"@emotion/styled": "^11.8.1",
|
|
19
20
|
"@mdx-js/react": "^1.6.22",
|
|
20
21
|
"@semantic-release/changelog": "^5.0.1",
|
|
21
22
|
"@semantic-release/git": "^9.0.0",
|
|
@@ -41,11 +42,11 @@
|
|
|
41
42
|
"@types/jest": "^26.0.23",
|
|
42
43
|
"@types/lodash": "^4.14.149",
|
|
43
44
|
"@types/pluralize": "^0.0.29",
|
|
44
|
-
"@types/react": "^
|
|
45
|
-
"@types/react-dom": "^
|
|
45
|
+
"@types/react": "^18.2.21",
|
|
46
|
+
"@types/react-dom": "^18.2.7",
|
|
46
47
|
"@types/react-highlight-words": "^0.16.1",
|
|
47
|
-
"@types/react-router-dom": "^5.
|
|
48
|
-
"@types/react-test-renderer": "^
|
|
48
|
+
"@types/react-router-dom": "^5.3.3",
|
|
49
|
+
"@types/react-test-renderer": "^18.0.1",
|
|
49
50
|
"@types/recharts": "^1.8.16",
|
|
50
51
|
"@types/styled-components": "^5.1.7",
|
|
51
52
|
"@types/uuid": "^8.3.0",
|
|
@@ -75,11 +76,11 @@
|
|
|
75
76
|
"jest-webpack-resolver": "^0.3.0",
|
|
76
77
|
"lint-staged": "^11.0.0",
|
|
77
78
|
"prettier": "^2.6.2",
|
|
78
|
-
"react": "^
|
|
79
|
-
"react-dom": "^
|
|
80
|
-
"react-router": "^5.
|
|
81
|
-
"react-router-dom": "^5.
|
|
82
|
-
"react-test-renderer": "^
|
|
79
|
+
"react": "^18.2.0",
|
|
80
|
+
"react-dom": "^18.2.0",
|
|
81
|
+
"react-router": "^5.3.4",
|
|
82
|
+
"react-router-dom": "^5.3.4",
|
|
83
|
+
"react-test-renderer": "^18.2.0",
|
|
83
84
|
"rimraf": "^3.0.2",
|
|
84
85
|
"storybook-addon-designs": "^6.2.1",
|
|
85
86
|
"storybook-addon-pseudo-states": "^1.14.0",
|
|
@@ -105,7 +106,7 @@
|
|
|
105
106
|
"pluralize": "^8.0.0",
|
|
106
107
|
"polished": "^3.4.4",
|
|
107
108
|
"react-fast-compare": "^3.2.0",
|
|
108
|
-
"react-highlight-words": "^0.
|
|
109
|
+
"react-highlight-words": "^0.20.0",
|
|
109
110
|
"react-media": "^2.0.0-rc.1",
|
|
110
111
|
"react-range": "^1.8.12",
|
|
111
112
|
"react-switch": "^6.0.0",
|
|
@@ -117,8 +118,8 @@
|
|
|
117
118
|
"@emotion/react": "^11.4.0",
|
|
118
119
|
"@emotion/styled": "^11.3.0",
|
|
119
120
|
"prop-types": "^15.7.2",
|
|
120
|
-
"react": "^
|
|
121
|
-
"react-dom": "^
|
|
121
|
+
"react": "^17.0.0",
|
|
122
|
+
"react-dom": "^17.0.0",
|
|
122
123
|
"react-router": "^5.2.0",
|
|
123
124
|
"react-router-dom": "^5.2.0"
|
|
124
125
|
},
|