@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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactFCC } from 'utils/types';
|
|
2
2
|
import { mainTypes } from '../theme/palette';
|
|
3
3
|
import { ColorShapeFromComponent } from '../utils/themeFunctions';
|
|
4
4
|
declare type ContextProps = {
|
|
5
5
|
typesShadesColor: TypesShadeAndColors;
|
|
6
|
-
calculateColorBetweenColorAndType: (color: string, type: typeof mainTypes[number]) => ColorShapeFromComponent;
|
|
6
|
+
calculateColorBetweenColorAndType: (color: string, type: (typeof mainTypes)[number]) => ColorShapeFromComponent;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* A hook that on provides two methods `typesShadesColor` and `calculateColorBetweenColorAndType`
|
|
@@ -11,6 +11,6 @@ declare type ContextProps = {
|
|
|
11
11
|
* calculateColorBetweenColorAndType: get color and type. If color exists gets it from `calculateActualColorFromComponentProp` if not and only type then it fetches it from the `typesShadesColor`
|
|
12
12
|
*/
|
|
13
13
|
declare const useTypeColorToColorMatch: () => ContextProps;
|
|
14
|
-
export declare type TypesShadeAndColors = Record<typeof mainTypes[number], ColorShapeFromComponent>;
|
|
15
|
-
declare const TypeColorToColorMatchProvider:
|
|
14
|
+
export declare type TypesShadeAndColors = Record<(typeof mainTypes)[number], ColorShapeFromComponent>;
|
|
15
|
+
declare const TypeColorToColorMatchProvider: ReactFCC;
|
|
16
16
|
export { TypeColorToColorMatchProvider, useTypeColorToColorMatch };
|
|
@@ -2,45 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.useTypeColorToColorMatch = exports.TypeColorToColorMatchProvider = void 0;
|
|
5
|
-
|
|
6
5
|
var _useTheme = _interopRequireDefault(require("./useTheme"));
|
|
7
|
-
|
|
8
6
|
var _keys = _interopRequireDefault(require("lodash/keys"));
|
|
9
|
-
|
|
10
7
|
var _pick = _interopRequireDefault(require("lodash/pick"));
|
|
11
|
-
|
|
12
8
|
var React = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
9
|
var _palette = require("../theme/palette");
|
|
15
|
-
|
|
16
10
|
var _themeFunctions = require("../utils/themeFunctions");
|
|
17
|
-
|
|
18
11
|
var _react2 = require("@emotion/react");
|
|
19
|
-
|
|
20
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
24
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
-
|
|
26
15
|
var defaultContextData = {
|
|
27
16
|
typesShadesColor: {},
|
|
28
17
|
calculateColorBetweenColorAndType: function calculateColorBetweenColorAndType(color, type) {}
|
|
29
18
|
};
|
|
30
|
-
var TypeColorToColorMatchContext = /*#__PURE__*/React.createContext(
|
|
19
|
+
var TypeColorToColorMatchContext = /*#__PURE__*/React.createContext(
|
|
20
|
+
// @ts-ignore
|
|
31
21
|
defaultContextData);
|
|
22
|
+
|
|
32
23
|
/**
|
|
33
24
|
* A hook that on provides two methods `typesShadesColor` and `calculateColorBetweenColorAndType`
|
|
34
25
|
* typesShadesColor: calculates on init and returns all types like `primary` in shade and color objects
|
|
35
26
|
* calculateColorBetweenColorAndType: get color and type. If color exists gets it from `calculateActualColorFromComponentProp` if not and only type then it fetches it from the `typesShadesColor`
|
|
36
27
|
*/
|
|
37
|
-
|
|
38
28
|
var useTypeColorToColorMatch = function useTypeColorToColorMatch() {
|
|
39
29
|
return React.useContext(TypeColorToColorMatchContext);
|
|
40
30
|
};
|
|
41
|
-
|
|
42
31
|
exports.useTypeColorToColorMatch = useTypeColorToColorMatch;
|
|
43
|
-
|
|
44
32
|
/**
|
|
45
33
|
* Apply for each type passed what color it is and shade (shade now is auto applied at 500)
|
|
46
34
|
* as this is heavy this runs only once at the initialization of the app under the theme provider
|
|
@@ -51,19 +39,18 @@ var calculateTypesShadeAndColors = function calculateTypesShadeAndColors(types,
|
|
|
51
39
|
return _palette.mainTypes.reduce(function (mainTypeAcc, mainType) {
|
|
52
40
|
// save the base color of the the type
|
|
53
41
|
var typeColor = types[mainType][_palette.BASE_SHADE]; // base color of the type
|
|
54
|
-
|
|
55
42
|
var flatPaletteKeys = (0, _keys["default"])(palette); // the keys of the flat palette so we can iterate
|
|
43
|
+
|
|
56
44
|
// construct a new key in the main object with name from the main type currently in iteration
|
|
57
45
|
// and return the color found in the flat colors e.g { shade: 500, color: 'orange'}
|
|
58
46
|
// if nothing found then it will return empty object {}
|
|
59
|
-
|
|
60
47
|
mainTypeAcc[mainType] = flatPaletteKeys.reduce(function (acc, paletteColor) {
|
|
61
48
|
var colorShadesKeys = (0, _keys["default"])(palette[paletteColor]); // the shades of the palette color currently in the iteration
|
|
62
|
-
|
|
63
49
|
var foundShadeWithThatColor = colorShadesKeys.find(function (shade) {
|
|
64
50
|
return palette[paletteColor][shade].toLowerCase() === typeColor.toLowerCase();
|
|
65
|
-
});
|
|
51
|
+
});
|
|
66
52
|
|
|
53
|
+
// return either the found color as e.g { shade: 500, color: 'orange'} or the object as it was
|
|
67
54
|
return foundShadeWithThatColor ? {
|
|
68
55
|
shade: Number(foundShadeWithThatColor),
|
|
69
56
|
color: paletteColor
|
|
@@ -72,7 +59,6 @@ var calculateTypesShadeAndColors = function calculateTypesShadeAndColors(types,
|
|
|
72
59
|
return mainTypeAcc;
|
|
73
60
|
}, {});
|
|
74
61
|
};
|
|
75
|
-
|
|
76
62
|
var TypeColorToColorMatchProvider = function TypeColorToColorMatchProvider(_ref) {
|
|
77
63
|
var children = _ref.children;
|
|
78
64
|
var theme = (0, _useTheme["default"])();
|
|
@@ -91,5 +77,4 @@ var TypeColorToColorMatchProvider = function TypeColorToColorMatchProvider(_ref)
|
|
|
91
77
|
}
|
|
92
78
|
}, children);
|
|
93
79
|
};
|
|
94
|
-
|
|
95
80
|
exports.TypeColorToColorMatchProvider = TypeColorToColorMatchProvider;
|
package/dist/index.js
CHANGED
|
@@ -1,219 +1,112 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
5
|
-
|
|
4
|
+
exports.useTheme = exports.useEscape = exports.useBreakpoints = exports.typography = exports.themeFunctions = exports.themeConfig = exports.spacing = exports.palette = exports.overrides = exports.elevation = exports.TruncatedContent = exports.TopNavBar = exports.Tooltip = exports.Toast = exports.ThemeProvider = exports.TextField = exports.TextArea = exports.Table = exports.Switch = exports.Snackbar = exports.Slider = exports.Select = exports.SearchField = exports.RadioGroup = exports.Radio = exports.Pagination = exports.Overlay = exports.NotificationsContainer = exports.NotificationVisual = exports.Modal = exports.Menu = exports.Loader = exports.List = exports.LineChart = exports.Label = exports.InlineNotification = exports.IconButton = exports.Icon = exports.Filter = exports.ExpandCollapse = exports.Drawer = exports.DonutChart = exports.DatePicker = exports.Chip = exports.CheckBox = exports.Card = exports.Button = exports.Breadcrumb = exports.BarChart = exports.Banner = exports.AvatarStack = exports.Avatar = void 0;
|
|
6
5
|
var _useBreakpoints = _interopRequireWildcard(require("./hooks/useBreakpoints"));
|
|
7
|
-
|
|
8
6
|
exports.queriesSizes = _useBreakpoints.queriesSizes;
|
|
9
7
|
exports.useBreakpoints = _useBreakpoints["default"];
|
|
10
|
-
|
|
11
8
|
var elevation = _interopRequireWildcard(require("./theme/elevation"));
|
|
12
|
-
|
|
13
9
|
exports.elevation = elevation;
|
|
14
|
-
|
|
15
10
|
var themeFunctions = _interopRequireWildcard(require("./theme/functions"));
|
|
16
|
-
|
|
17
11
|
exports.themeFunctions = themeFunctions;
|
|
18
|
-
|
|
19
12
|
var overrides = _interopRequireWildcard(require("./theme/overrides"));
|
|
20
|
-
|
|
21
13
|
exports.overrides = overrides;
|
|
22
|
-
|
|
23
14
|
var palette = _interopRequireWildcard(require("./theme/palette"));
|
|
24
|
-
|
|
25
15
|
exports.palette = palette;
|
|
26
|
-
|
|
27
16
|
var spacing = _interopRequireWildcard(require("./theme/spacing"));
|
|
28
|
-
|
|
29
17
|
exports.spacing = spacing;
|
|
30
|
-
|
|
31
18
|
var typography = _interopRequireWildcard(require("./theme/typography"));
|
|
32
|
-
|
|
33
19
|
exports.typography = typography;
|
|
34
|
-
|
|
35
20
|
var _Avatar = _interopRequireDefault(require("./components/Avatar"));
|
|
36
|
-
|
|
37
21
|
exports.Avatar = _Avatar["default"];
|
|
38
|
-
|
|
39
22
|
var _AvatarStack = _interopRequireDefault(require("./components/Avatar/AvatarStack"));
|
|
40
|
-
|
|
41
23
|
exports.AvatarStack = _AvatarStack["default"];
|
|
42
|
-
|
|
43
24
|
var _Breadcrumb = _interopRequireDefault(require("./components/Breadcrumb"));
|
|
44
|
-
|
|
45
25
|
exports.Breadcrumb = _Breadcrumb["default"];
|
|
46
|
-
|
|
47
26
|
var _Button = _interopRequireDefault(require("./components/Button"));
|
|
48
|
-
|
|
49
27
|
exports.Button = _Button["default"];
|
|
50
|
-
|
|
51
28
|
var _Card = _interopRequireDefault(require("./components/Card"));
|
|
52
|
-
|
|
53
29
|
exports.Card = _Card["default"];
|
|
54
|
-
|
|
55
30
|
var _LineChart = _interopRequireDefault(require("./components/Chart/LineChart"));
|
|
56
|
-
|
|
57
31
|
exports.LineChart = _LineChart["default"];
|
|
58
|
-
|
|
59
32
|
var _BarChart = _interopRequireDefault(require("./components/Chart/BarChart"));
|
|
60
|
-
|
|
61
33
|
exports.BarChart = _BarChart["default"];
|
|
62
|
-
|
|
63
34
|
var _DonutChart = _interopRequireDefault(require("./components/Chart/DonutChart"));
|
|
64
|
-
|
|
65
35
|
exports.DonutChart = _DonutChart["default"];
|
|
66
|
-
|
|
67
36
|
var _CheckBox = _interopRequireDefault(require("./components/CheckBox"));
|
|
68
|
-
|
|
69
37
|
exports.CheckBox = _CheckBox["default"];
|
|
70
|
-
|
|
71
38
|
var _Chip = _interopRequireDefault(require("./components/Chip"));
|
|
72
|
-
|
|
73
39
|
exports.Chip = _Chip["default"];
|
|
74
|
-
|
|
75
40
|
var _DatePicker = _interopRequireDefault(require("./components/DatePicker"));
|
|
76
|
-
|
|
77
41
|
exports.DatePicker = _DatePicker["default"];
|
|
78
|
-
|
|
79
42
|
var _Drawer = _interopRequireDefault(require("./components/Drawer"));
|
|
80
|
-
|
|
81
43
|
exports.Drawer = _Drawer["default"];
|
|
82
|
-
|
|
83
44
|
var _ExpandCollapse = _interopRequireDefault(require("./components/ExpandCollapse"));
|
|
84
|
-
|
|
85
45
|
exports.ExpandCollapse = _ExpandCollapse["default"];
|
|
86
|
-
|
|
87
46
|
var _Icon = _interopRequireDefault(require("./components/Icon"));
|
|
88
|
-
|
|
89
47
|
exports.Icon = _Icon["default"];
|
|
90
|
-
|
|
91
48
|
var _IconButton = _interopRequireDefault(require("./components/IconButton"));
|
|
92
|
-
|
|
93
49
|
exports.IconButton = _IconButton["default"];
|
|
94
|
-
|
|
95
50
|
var _Label = _interopRequireDefault(require("./components/Label"));
|
|
96
|
-
|
|
97
51
|
exports.Label = _Label["default"];
|
|
98
|
-
|
|
99
52
|
var _List = _interopRequireDefault(require("./components/List"));
|
|
100
|
-
|
|
101
53
|
exports.List = _List["default"];
|
|
102
|
-
|
|
103
54
|
var _Loader = _interopRequireDefault(require("./components/Loader"));
|
|
104
|
-
|
|
105
55
|
exports.Loader = _Loader["default"];
|
|
106
|
-
|
|
107
56
|
var _Menu = _interopRequireDefault(require("./components/Menu"));
|
|
108
|
-
|
|
109
57
|
exports.Menu = _Menu["default"];
|
|
110
|
-
|
|
111
58
|
var _Modal = _interopRequireDefault(require("./components/Modal"));
|
|
112
|
-
|
|
113
59
|
exports.Modal = _Modal["default"];
|
|
114
|
-
|
|
115
60
|
var _InlineNotification = _interopRequireDefault(require("./components/Notification/InlineNotification"));
|
|
116
|
-
|
|
117
61
|
exports.InlineNotification = _InlineNotification["default"];
|
|
118
|
-
|
|
119
62
|
var _NotificationsContainer = _interopRequireDefault(require("./components/Notification/NotificationsContainer"));
|
|
120
|
-
|
|
121
63
|
exports.NotificationsContainer = _NotificationsContainer["default"];
|
|
122
|
-
|
|
123
64
|
var _NotificationVisual = _interopRequireDefault(require("./components/Notification/NotificationVisual"));
|
|
124
|
-
|
|
125
65
|
exports.NotificationVisual = _NotificationVisual["default"];
|
|
126
|
-
|
|
127
66
|
var _Banner = _interopRequireDefault(require("./components/Notification/Banner"));
|
|
128
|
-
|
|
129
67
|
exports.Banner = _Banner["default"];
|
|
130
|
-
|
|
131
68
|
var _Snackbar = _interopRequireDefault(require("./components/Notification/Snackbar"));
|
|
132
|
-
|
|
133
69
|
exports.Snackbar = _Snackbar["default"];
|
|
134
|
-
|
|
135
70
|
var _Overlay = _interopRequireDefault(require("./components/Overlay"));
|
|
136
|
-
|
|
137
71
|
exports.Overlay = _Overlay["default"];
|
|
138
|
-
|
|
139
72
|
var _Pagination = _interopRequireDefault(require("./components/Pagination"));
|
|
140
|
-
|
|
141
73
|
exports.Pagination = _Pagination["default"];
|
|
142
|
-
|
|
143
74
|
var _Radio = _interopRequireDefault(require("./components/Radio"));
|
|
144
|
-
|
|
145
75
|
exports.Radio = _Radio["default"];
|
|
146
|
-
|
|
147
76
|
var _RadioGroup = _interopRequireDefault(require("./components/RadioGroup"));
|
|
148
|
-
|
|
149
77
|
exports.RadioGroup = _RadioGroup["default"];
|
|
150
|
-
|
|
151
78
|
var _Select = _interopRequireDefault(require("./components/Select"));
|
|
152
|
-
|
|
153
79
|
exports.Select = _Select["default"];
|
|
154
|
-
|
|
155
80
|
var _Slider = _interopRequireDefault(require("./components/Slider"));
|
|
156
|
-
|
|
157
81
|
exports.Slider = _Slider["default"];
|
|
158
|
-
|
|
159
82
|
var _Switch = _interopRequireDefault(require("./components/Switch"));
|
|
160
|
-
|
|
161
83
|
exports.Switch = _Switch["default"];
|
|
162
|
-
|
|
163
84
|
var _Table = _interopRequireDefault(require("./components/Table"));
|
|
164
|
-
|
|
165
85
|
exports.Table = _Table["default"];
|
|
166
|
-
|
|
167
86
|
var _TextField = _interopRequireDefault(require("./components/TextField"));
|
|
168
|
-
|
|
169
87
|
exports.TextField = _TextField["default"];
|
|
170
|
-
|
|
171
88
|
var _SearchField = _interopRequireDefault(require("./components/SearchField"));
|
|
172
|
-
|
|
173
89
|
exports.SearchField = _SearchField["default"];
|
|
174
|
-
|
|
175
90
|
var _TextArea = _interopRequireDefault(require("./components/TextArea"));
|
|
176
|
-
|
|
177
91
|
exports.TextArea = _TextArea["default"];
|
|
178
|
-
|
|
179
92
|
var _ThemeProvider = _interopRequireDefault(require("./components/ThemeProvider"));
|
|
180
|
-
|
|
181
93
|
exports.ThemeProvider = _ThemeProvider["default"];
|
|
182
|
-
|
|
183
94
|
var _Toast = _interopRequireDefault(require("./components/Toast"));
|
|
184
|
-
|
|
185
95
|
exports.Toast = _Toast["default"];
|
|
186
|
-
|
|
187
96
|
var _Tooltip = _interopRequireDefault(require("./components/Tooltip"));
|
|
188
|
-
|
|
189
97
|
exports.Tooltip = _Tooltip["default"];
|
|
190
|
-
|
|
191
98
|
var _TopAppBar = _interopRequireDefault(require("./components/TopAppBar"));
|
|
192
|
-
|
|
193
99
|
exports.TopNavBar = _TopAppBar["default"];
|
|
194
|
-
|
|
195
100
|
var _useTheme = _interopRequireDefault(require("./hooks/useTheme"));
|
|
196
|
-
|
|
197
101
|
exports.useTheme = _useTheme["default"];
|
|
198
|
-
|
|
199
102
|
var _useEscape = _interopRequireDefault(require("./hooks/useEscape"));
|
|
200
|
-
|
|
201
103
|
exports.useEscape = _useEscape["default"];
|
|
202
|
-
|
|
203
104
|
var _Filter = _interopRequireDefault(require("./components/Filter"));
|
|
204
|
-
|
|
205
105
|
exports.Filter = _Filter["default"];
|
|
206
|
-
|
|
207
106
|
var _TruncatedContent = _interopRequireDefault(require("./components/TruncatedContent"));
|
|
208
|
-
|
|
209
107
|
exports.TruncatedContent = _TruncatedContent["default"];
|
|
210
|
-
|
|
211
108
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
212
|
-
|
|
213
109
|
exports.themeConfig = _theme["default"];
|
|
214
|
-
|
|
215
110
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
216
|
-
|
|
217
111
|
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); }
|
|
218
|
-
|
|
219
112
|
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; }
|
package/dist/test/index.js
CHANGED
package/dist/test/setup.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("@testing-library/jest-dom");
|
|
4
|
-
|
|
5
4
|
var _jest = require("@emotion/jest");
|
|
6
|
-
|
|
7
5
|
expect.addSnapshotSerializer((0, _jest.createSerializer)());
|
|
8
6
|
jest.mock(function () {
|
|
9
7
|
// This will mock the version of uuid belonging to react-tooltip
|
|
@@ -11,7 +9,6 @@ jest.mock(function () {
|
|
|
11
9
|
// see the issue here https://github.com/wwayne/react-tooltip/issues/595
|
|
12
10
|
try {
|
|
13
11
|
require('react-tooltip/node_modules/uuid');
|
|
14
|
-
|
|
15
12
|
return 'react-tooltip/node_modules/uuid';
|
|
16
13
|
} catch (error) {
|
|
17
14
|
return 'uuid';
|
|
@@ -22,10 +19,10 @@ jest.mock(function () {
|
|
|
22
19
|
return '00000000-0000-0000-0000-000000000000';
|
|
23
20
|
}
|
|
24
21
|
};
|
|
25
|
-
});
|
|
22
|
+
});
|
|
26
23
|
|
|
24
|
+
// because scrollIntoView doesn't exist in jest
|
|
27
25
|
window.HTMLElement.prototype.scrollIntoView = function () {};
|
|
28
|
-
|
|
29
26
|
Object.defineProperty(window, 'matchMedia', {
|
|
30
27
|
writable: true,
|
|
31
28
|
value: jest.fn().mockImplementation(function (query) {
|
package/dist/test/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { renderHook } from '@testing-library/react-hooks';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export declare const selectDropdownOption: (dropdownInput: HTMLInputElement, option: string) => Promise<void>;
|
|
4
|
-
declare const renderWithThemeProvider: (children:
|
|
4
|
+
declare const renderWithThemeProvider: (children: React.ReactElement) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement>;
|
|
5
5
|
export * from '@testing-library/react';
|
|
6
6
|
export { renderHook, renderWithThemeProvider as render };
|
package/dist/test/utils.js
CHANGED
|
@@ -6,64 +6,41 @@ var _exportNames = {
|
|
|
6
6
|
render: true,
|
|
7
7
|
renderHook: true
|
|
8
8
|
};
|
|
9
|
-
exports.
|
|
10
|
-
|
|
9
|
+
exports.selectDropdownOption = exports.render = void 0;
|
|
11
10
|
var _react = require("@testing-library/react");
|
|
12
|
-
|
|
13
11
|
Object.keys(_react).forEach(function (key) {
|
|
14
12
|
if (key === "default" || key === "__esModule") return;
|
|
15
13
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
16
14
|
if (key in exports && exports[key] === _react[key]) return;
|
|
17
15
|
exports[key] = _react[key];
|
|
18
16
|
});
|
|
19
|
-
|
|
20
17
|
var _reactHooks = require("@testing-library/react-hooks");
|
|
21
|
-
|
|
22
18
|
exports.renderHook = _reactHooks.renderHook;
|
|
23
|
-
|
|
24
19
|
var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
|
|
25
|
-
|
|
26
20
|
var _react2 = _interopRequireDefault(require("react"));
|
|
27
|
-
|
|
28
21
|
var _ThemeProvider = _interopRequireDefault(require("../components/ThemeProvider"));
|
|
29
|
-
|
|
30
22
|
var _palette = require("../theme/palette.config");
|
|
31
|
-
|
|
32
23
|
var _react3 = require("@emotion/react");
|
|
33
|
-
|
|
24
|
+
var _ref;
|
|
34
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
-
|
|
26
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
36
27
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
37
|
-
|
|
38
28
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
_userEvent["default"].click(_react.screen.getByText(option)); // select the option from displayed options
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
case 2:
|
|
53
|
-
case "end":
|
|
54
|
-
return _context.stop();
|
|
55
|
-
}
|
|
29
|
+
var selectDropdownOption = function selectDropdownOption(_x, _x2) {
|
|
30
|
+
return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dropdownInput, option) {
|
|
31
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33
|
+
case 0:
|
|
34
|
+
_userEvent["default"].type(dropdownInput, option); // type option on the dropdown input
|
|
35
|
+
_userEvent["default"].click(_react.screen.getByText(option)); // select the option from displayed options
|
|
36
|
+
case 2:
|
|
37
|
+
case "end":
|
|
38
|
+
return _context.stop();
|
|
56
39
|
}
|
|
57
40
|
}, _callee);
|
|
58
|
-
}));
|
|
59
|
-
|
|
60
|
-
return function selectDropdownOption(_x, _x2) {
|
|
61
|
-
return _ref.apply(this, arguments);
|
|
62
|
-
};
|
|
63
|
-
}();
|
|
64
|
-
|
|
41
|
+
}))).apply(this, arguments);
|
|
42
|
+
};
|
|
65
43
|
exports.selectDropdownOption = selectDropdownOption;
|
|
66
|
-
|
|
67
44
|
var renderWithThemeProvider = function renderWithThemeProvider(children) {
|
|
68
45
|
return (0, _react.render)((0, _react3.jsx)(_ThemeProvider["default"], {
|
|
69
46
|
theme: {
|
|
@@ -74,5 +51,4 @@ var renderWithThemeProvider = function renderWithThemeProvider(children) {
|
|
|
74
51
|
}
|
|
75
52
|
}, children));
|
|
76
53
|
};
|
|
77
|
-
|
|
78
54
|
exports.render = renderWithThemeProvider;
|
package/dist/theme/functions.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
5
|
-
|
|
4
|
+
exports.well = exports.transition = exports.plainTextButton = exports.lineEllipsis = exports.grid = exports.flexCenterVertical = exports.flexCenter = exports.flex = exports.centerAbsoluteVertical = void 0;
|
|
6
5
|
var _react = require("@emotion/react");
|
|
7
|
-
|
|
8
6
|
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)."; }
|
|
9
|
-
|
|
10
7
|
/* Declare mixins in order to further DRY our code. Any reusable and indepedent = css code bundle
|
|
11
8
|
should become a mixin. Include them using the "@include" command inside a = css selector
|
|
12
9
|
*/
|
|
13
|
-
|
|
14
10
|
/* centers a block element */
|
|
11
|
+
|
|
15
12
|
var grid = process.env.NODE_ENV === "production" ? {
|
|
16
13
|
name: "4etu7j",
|
|
17
14
|
styles: "display:grid;grid-auto-columns:1fr"
|
|
@@ -41,25 +38,21 @@ var centerAbsoluteVertical = process.env.NODE_ENV === "production" ? {
|
|
|
41
38
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90aGVtZS9mdW5jdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0J5QyIsImZpbGUiOiIuLi8uLi9zcmMvdGhlbWUvZnVuY3Rpb25zLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuLyogRGVjbGFyZSBtaXhpbnMgaW4gb3JkZXIgdG8gZnVydGhlciBEUlkgb3VyIGNvZGUuIEFueSByZXVzYWJsZSBhbmQgaW5kZXBlZGVudCA9ICBjc3MgY29kZSBidW5kbGVcbiAgc2hvdWxkIGJlY29tZSBhIG1peGluLiBJbmNsdWRlIHRoZW0gdXNpbmcgdGhlIFwiQGluY2x1ZGVcIiBjb21tYW5kIGluc2lkZSBhID0gIGNzcyBzZWxlY3RvclxuICovXG4vKiBjZW50ZXJzIGEgYmxvY2sgZWxlbWVudCAqL1xuXG5leHBvcnQgY29uc3QgZ3JpZCA9IGNzc2BcbiAgZGlzcGxheTogZ3JpZDtcblxuICBncmlkLWF1dG8tY29sdW1uczogMWZyO1xuYDtcblxuZXhwb3J0IGNvbnN0IHdlbGwgPSBjc3NgXG4gIGJvcmRlci1yYWRpdXM6IDZweDtcbiAgYm94LXNoYWRvdzogMCAwIDEycHggMCByZ2JhKDAsIDAsIDAsIDAuMDgpO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbmA7XG5cbmV4cG9ydCBjb25zdCBjZW50ZXJBYnNvbHV0ZVZlcnRpY2F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ZWJraXQtYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgLW1vei1ib3gtYWxpZ246IGNlbnRlcjtcbiAgLW1zLWZsZXgtYWxpZ246IGNlbnRlcjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgZmxleENlbnRlclZlcnRpY2FsID0gY3NzYFxuICAke2ZsZXh9O1xuICAtd2Via2l0LWFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIC1tb3otYm94LWFsaWduOiBjZW50ZXI7XG4gIC1tcy1mbGV4LWFsaWduOiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgcGxhaW5UZXh0QnV0dG9uID0gY3NzYFxuICAke3RyYW5zaXRpb24oMC4xLCAnY29sb3InKX1cbiAgYm9yZGVyOiBub25lO1xuICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcbiAgYm94LXNoYWRvdzogbm9uZTtcbiAgdGV4dC1zaGFkb3c6IG5vbmU7XG4gIHBhZGRpbmc6IDA7XG4gIG1hcmdpbjogMDtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuYDtcbiJdfQ== */",
|
|
42
39
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
43
40
|
};
|
|
44
|
-
/* quick transition declaration */
|
|
45
41
|
|
|
42
|
+
/* quick transition declaration */
|
|
46
43
|
exports.centerAbsoluteVertical = centerAbsoluteVertical;
|
|
47
|
-
|
|
48
44
|
var transition = function transition(s, type) {
|
|
49
45
|
if (type === void 0) {
|
|
50
46
|
type = 'all';
|
|
51
47
|
}
|
|
52
|
-
|
|
53
48
|
return (
|
|
54
49
|
/*#__PURE__*/
|
|
55
|
-
|
|
56
50
|
/*#__PURE__*/
|
|
57
51
|
(0, _react.css)("-webkit-transition:", type, " ", s, "s ease-in-out;-moz-transition:", type, " ", s, "s ease-in-out;-ms-transition:", type, " ", s, "s ease-in-out;-o-transition:", type, " ", s, "s ease-in-out;transition:", type, " ", s, "s ease-in-out;" + (process.env.NODE_ENV === "production" ? "" : ";label:transition;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90aGVtZS9mdW5jdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMEIwRCIsImZpbGUiOiIuLi8uLi9zcmMvdGhlbWUvZnVuY3Rpb25zLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuLyogRGVjbGFyZSBtaXhpbnMgaW4gb3JkZXIgdG8gZnVydGhlciBEUlkgb3VyIGNvZGUuIEFueSByZXVzYWJsZSBhbmQgaW5kZXBlZGVudCA9ICBjc3MgY29kZSBidW5kbGVcbiAgc2hvdWxkIGJlY29tZSBhIG1peGluLiBJbmNsdWRlIHRoZW0gdXNpbmcgdGhlIFwiQGluY2x1ZGVcIiBjb21tYW5kIGluc2lkZSBhID0gIGNzcyBzZWxlY3RvclxuICovXG4vKiBjZW50ZXJzIGEgYmxvY2sgZWxlbWVudCAqL1xuXG5leHBvcnQgY29uc3QgZ3JpZCA9IGNzc2BcbiAgZGlzcGxheTogZ3JpZDtcblxuICBncmlkLWF1dG8tY29sdW1uczogMWZyO1xuYDtcblxuZXhwb3J0IGNvbnN0IHdlbGwgPSBjc3NgXG4gIGJvcmRlci1yYWRpdXM6IDZweDtcbiAgYm94LXNoYWRvdzogMCAwIDEycHggMCByZ2JhKDAsIDAsIDAsIDAuMDgpO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbmA7XG5cbmV4cG9ydCBjb25zdCBjZW50ZXJBYnNvbHV0ZVZlcnRpY2F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ZWJraXQtYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgLW1vei1ib3gtYWxpZ246IGNlbnRlcjtcbiAgLW1zLWZsZXgtYWxpZ246IGNlbnRlcjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgZmxleENlbnRlclZlcnRpY2FsID0gY3NzYFxuICAke2ZsZXh9O1xuICAtd2Via2l0LWFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIC1tb3otYm94LWFsaWduOiBjZW50ZXI7XG4gIC1tcy1mbGV4LWFsaWduOiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgcGxhaW5UZXh0QnV0dG9uID0gY3NzYFxuICAke3RyYW5zaXRpb24oMC4xLCAnY29sb3InKX1cbiAgYm9yZGVyOiBub25lO1xuICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcbiAgYm94LXNoYWRvdzogbm9uZTtcbiAgdGV4dC1zaGFkb3c6IG5vbmU7XG4gIHBhZGRpbmc6IDA7XG4gIG1hcmdpbjogMDtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuYDtcbiJdfQ== */", process.env.NODE_ENV === "production" ? "" : ";label:transition;")
|
|
58
52
|
);
|
|
59
53
|
};
|
|
60
|
-
/* adds a "..." after the line of the text exceeds the width of the component*/
|
|
61
|
-
|
|
62
54
|
|
|
55
|
+
/* adds a "..." after the line of the text exceeds the width of the component*/
|
|
63
56
|
exports.transition = transition;
|
|
64
57
|
var lineEllipsis = process.env.NODE_ENV === "production" ? {
|
|
65
58
|
name: "l8l8b8",
|
|
@@ -80,24 +73,21 @@ var flex = process.env.NODE_ENV === "production" ? {
|
|
|
80
73
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb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nRpY2FsID0gY3NzYFxuICAke2ZsZXh9O1xuICAtd2Via2l0LWFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIC1tb3otYm94LWFsaWduOiBjZW50ZXI7XG4gIC1tcy1mbGV4LWFsaWduOiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgcGxhaW5UZXh0QnV0dG9uID0gY3NzYFxuICAke3RyYW5zaXRpb24oMC4xLCAnY29sb3InKX1cbiAgYm9yZGVyOiBub25lO1xuICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcbiAgYm94LXNoYWRvdzogbm9uZTtcbiAgdGV4dC1zaGFkb3c6IG5vbmU7XG4gIHBhZGRpbmc6IDA7XG4gIG1hcmdpbjogMDtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuYDtcbiJdfQ== */",
|
|
81
74
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
82
75
|
};
|
|
83
|
-
/* centers flex content */
|
|
84
76
|
|
|
77
|
+
/* centers flex content */
|
|
85
78
|
exports.flex = flex;
|
|
86
79
|
var flexCenter =
|
|
87
80
|
/*#__PURE__*/
|
|
88
|
-
|
|
89
81
|
/*#__PURE__*/
|
|
90
82
|
(0, _react.css)(flex, ";-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;justify-content:center;" + (process.env.NODE_ENV === "production" ? "" : ";label:flexCenter;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90aGVtZS9mdW5jdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUQ2QiIsImZpbGUiOiIuLi8uLi9zcmMvdGhlbWUvZnVuY3Rpb25zLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0I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G5gO1xuXG5leHBvcnQgY29uc3QgcGxhaW5UZXh0QnV0dG9uID0gY3NzYFxuICAke3RyYW5zaXRpb24oMC4xLCAnY29sb3InKX1cbiAgYm9yZGVyOiBub25lO1xuICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcbiAgYm94LXNoYWRvdzogbm9uZTtcbiAgdGV4dC1zaGFkb3c6IG5vbmU7XG4gIHBhZGRpbmc6IDA7XG4gIG1hcmdpbjogMDtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuYDtcbiJdfQ== */", process.env.NODE_ENV === "production" ? "" : ";label:flexCenter;");
|
|
91
83
|
exports.flexCenter = flexCenter;
|
|
92
84
|
var flexCenterVertical =
|
|
93
85
|
/*#__PURE__*/
|
|
94
|
-
|
|
95
86
|
/*#__PURE__*/
|
|
96
87
|
(0, _react.css)(flex, ";-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;" + (process.env.NODE_ENV === "production" ? "" : ";label:flexCenterVertical;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90aGVtZS9mdW5jdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMERxQyIsImZpbGUiOiIuLi8uLi9zcmMvdGhlbWUvZnVuY3Rpb25zLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuLyogRGVjbGFyZSBtaXhpbnMgaW4gb3JkZXIgdG8gZnVydGhlciBEUlkgb3VyIGNvZGUuIEFueSByZXVzYWJsZSBhbmQgaW5kZXBlZGVudCA9ICBjc3MgY29kZSBidW5kbGVcbiAgc2hvdWxkIGJlY29tZSBhIG1peGluLiBJbmNsdWRlIHRoZW0gdXNpbmcgdGhlIFwiQGluY2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MDtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuYDtcbiJdfQ== */", process.env.NODE_ENV === "production" ? "" : ";label:flexCenterVertical;");
|
|
97
88
|
exports.flexCenterVertical = flexCenterVertical;
|
|
98
89
|
var plainTextButton =
|
|
99
90
|
/*#__PURE__*/
|
|
100
|
-
|
|
101
91
|
/*#__PURE__*/
|
|
102
92
|
(0, _react.css)(transition(0.1, 'color'), " border:none;background:transparent;box-shadow:none;text-shadow:none;padding:0;margin:0;box-sizing:border-box;cursor:pointer;" + (process.env.NODE_ENV === "production" ? "" : ";label:plainTextButton;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90aGVtZS9mdW5jdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0VrQyIsImZpbGUiOiIuLi8uLi9zcmMvdGhlbWUvZnVuY3Rpb25zLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuLyogRGVjbGFyZSBtaXhpbnMgaW4gb3JkZXIgdG8gZnVydGhlciBEUlkgb3VyIGNvZGUuIEFueSByZXVzYWJsZSBhbmQgaW5kZXBlZGVudCA9ICBjc3MgY29kZSBidW5kbGVcbiAgc2hvdWxkIGJlY29tZSBhIG1peGluLiBJbmNsdWRlIHRoZW0gdXNpbmcgdGhlIFwiQGluY2x1ZGVcIiBjb21tYW5kIGluc2lkZSBhID0gIGNzcyBzZWxlY3RvclxuICovXG4vKiBjZW50ZXJzIGEgYmxvY2sgZWxlbWVudCAqL1xuXG5leHBvcnQgY29uc3QgZ3JpZCA9IGNzc2BcbiAgZGlzcGxheTogZ3JpZDtcblxuICBncmlkLWF1dG8tY29sdW1uczogMWZyO1xuYDtcblxuZXhwb3J0IGNv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IC13ZWJraXQtYm94O1xuICBkaXNwbGF5OiAtbW96LWJveDtcbiAgZGlzcGxheTogLW1zLWZsZXhib3g7XG4gIGRpc3BsYXk6IGZsZXg7XG5gO1xuXG4vKiBjZW50ZXJzIGZsZXggY29udGVudCAqL1xuZXhwb3J0IGNvbnN0IGZsZXhDZW50ZXIgPSBjc3NgXG4gICR7ZmxleH07XG4gIC13ZWJraXQtYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgLW1vei1ib3gtYWxpZ246IGNlbnRlcjtcbiAgLW1zLWZsZXgtYWxpZ246IGNlbnRlcjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgZmxleENlbnRlclZlcnRpY2FsID0gY3NzYFxuICAke2ZsZXh9O1xuICAtd2Via2l0LWFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIC1tb3otYm94LWFsaWduOiBjZW50ZXI7XG4gIC1tcy1mbGV4LWFsaWduOiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgcGxhaW5UZXh0QnV0dG9uID0gY3NzYFxuICAke3RyYW5zaXRpb24oMC4xLCAnY29sb3InKX1cbiAgYm9yZGVyOiBub25lO1xuICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcbiAgYm94LXNoYWRvdzogbm9uZTtcbiAgdGV4dC1zaGFkb3c6IG5vbmU7XG4gIHBhZGRpbmc6IDA7XG4gIG1hcmdpbjogMDtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuYDtcbiJdfQ== */", process.env.NODE_ENV === "production" ? "" : ";label:plainTextButton;");
|
|
103
93
|
exports.plainTextButton = plainTextButton;
|
package/dist/theme/index.js
CHANGED
|
@@ -2,29 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
|
|
6
5
|
var _elevation = _interopRequireDefault(require("./elevation"));
|
|
7
|
-
|
|
8
6
|
var _overrides = _interopRequireDefault(require("./overrides"));
|
|
9
|
-
|
|
10
7
|
var _palette = require("./palette");
|
|
11
|
-
|
|
12
8
|
var _palette2 = require("./palette.config");
|
|
13
|
-
|
|
14
9
|
var _spacing = _interopRequireDefault(require("./spacing"));
|
|
15
|
-
|
|
16
10
|
var _types = require("./types");
|
|
17
|
-
|
|
18
11
|
exports.TextColorTypes = _types.TextColorTypes;
|
|
19
12
|
exports.Theme = _types.Theme;
|
|
20
13
|
exports.ThemeConfig = _types.ThemeConfig;
|
|
21
|
-
|
|
22
14
|
var _typography = _interopRequireDefault(require("./typography"));
|
|
23
|
-
|
|
24
15
|
var _utils = require("./utils");
|
|
25
|
-
|
|
26
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
-
|
|
28
17
|
var defaultTheme = function defaultTheme(theming) {
|
|
29
18
|
var palette = theming === 'light' ? (0, _utils.enhancePaletteWithShades)(_palette2.lightPaletteConfig) : (0, _utils.enhancePaletteWithShades)(_palette2.darkPaletteConfig);
|
|
30
19
|
return {
|
|
@@ -41,6 +30,5 @@ var defaultTheme = function defaultTheme(theming) {
|
|
|
41
30
|
}
|
|
42
31
|
};
|
|
43
32
|
};
|
|
44
|
-
|
|
45
33
|
var _default = defaultTheme;
|
|
46
34
|
exports["default"] = _default;
|