@orfium/ictinus 4.55.0-next.1 → 4.55.0-next.3
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/bundle.css +1 -0
- package/dist/components/Avatar/Avatar.js +1 -63
- package/dist/components/Avatar/Avatar.style.js +25 -27
- package/dist/components/Avatar/Avatar.tokens.js +1 -68
- package/dist/components/Avatar/AvatarStack/AvatarStack.js +1 -71
- package/dist/components/Avatar/AvatarStack/AvatarStack.style.js +10 -41
- package/dist/components/Avatar/AvatarStack/utils.js +1 -16
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -65
- package/dist/components/Breadcrumb/Breadcrumb.style.js +13 -34
- package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.js +1 -30
- package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.style.js +7 -22
- package/dist/components/Breadcrumb/Separator/Separator.js +1 -35
- package/dist/components/Breadcrumb/Separator/Separator.style.js +4 -19
- package/dist/components/Button/Button.js +1 -87
- package/dist/components/Button/Button.style.js +1 -42
- package/dist/components/Button/ButtonLoader/ButtonLoader.js +1 -43
- package/dist/components/Button/ButtonLoader/ButtonLoader.style.js +5 -21
- package/dist/components/Button/utils.js +1 -58
- package/dist/components/ButtonBase/ButtonBase.js +1 -87
- package/dist/components/ButtonBase/ButtonBase.style.js +1 -121
- package/dist/components/ButtonBase/config.js +1 -38
- package/dist/components/ButtonBase/utils.js +1 -63
- package/dist/components/Card/Card.js +1 -30
- package/dist/components/Card/Card.style.js +7 -33
- package/dist/components/Chart/BarChart/BarChart.js +1 -148
- package/dist/components/Chart/BarChart/components/CustomLabel/CustomLabel.js +1 -40
- package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.js +1 -51
- package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.style.js +28 -47
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.js +1 -36
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.style.js +1 -71
- package/dist/components/Chart/BarChart/utils.js +1 -87
- package/dist/components/Chart/DonutChart/DonutChart.js +1 -57
- package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.js +1 -48
- package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.style.js +10 -39
- package/dist/components/Chart/LineChart/LineChart.js +1 -131
- package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.js +1 -40
- package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.style.js +1 -64
- package/dist/components/Chart/LineChart/components/GradientLine/GradientLine.js +1 -34
- package/dist/components/Chart/LineChart/utils.js +1 -30
- package/dist/components/Chart/Wrapper.js +1 -41
- package/dist/components/CheckBox/CheckBox.js +1 -121
- package/dist/components/CheckBox/CheckBox.style.js +73 -99
- package/dist/components/Chip/Chip.js +1 -119
- package/dist/components/Chip/Chip.style.js +38 -70
- package/dist/components/Chip/Chip.types.js +1 -10
- package/dist/components/Chip/components/Badge/Badge.js +1 -31
- package/dist/components/Chip/components/Badge/Badge.style.js +14 -24
- package/dist/components/Chip/utils.js +1 -34
- package/dist/components/DatePicker/DatePickInput/DatePickInput.js +1 -125
- package/dist/components/DatePicker/DatePickInput/DatePickInput.style.js +3 -21
- package/dist/components/DatePicker/DatePicker.js +1 -239
- package/dist/components/DatePicker/DatePicker.style.js +7 -19
- package/dist/components/DatePicker/Day/Day.js +1 -93
- package/dist/components/DatePicker/Day/Day.style.js +35 -68
- package/dist/components/DatePicker/Month/Month.js +1 -102
- package/dist/components/DatePicker/Month/Month.style.js +17 -47
- package/dist/components/DatePicker/Month/Month.utils.js +1 -79
- package/dist/components/DatePicker/OverlayComponent/OverlayComponent.js +1 -117
- package/dist/components/DatePicker/OverlayComponent/OverlayComponent.style.js +47 -89
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.js +1 -133
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.js +36 -89
- package/dist/components/DatePicker/utils.js +1 -25
- package/dist/components/Drawer/Drawer.js +1 -36
- package/dist/components/Drawer/Drawer.style.js +13 -23
- package/dist/components/Drawer/Navigation/MenuItem/MenuItem.js +1 -119
- package/dist/components/Drawer/Navigation/Navigation.js +1 -54
- package/dist/components/Drawer/Navigation/Navigation.style.js +99 -149
- package/dist/components/ExpandCollapse/ExpandCollapse.js +1 -66
- package/dist/components/ExpandCollapse/ExpandCollapse.style.js +6 -19
- package/dist/components/ExpandCollapse/useManageContentRef.js +1 -56
- package/dist/components/ExpandCollapse/utils.js +1 -23
- package/dist/components/Filter/Filter.js +1 -152
- package/dist/components/Filter/Filter.style.js +19 -295
- package/dist/components/Filter/components/FilterBase/FilterBase.js +1 -126
- package/dist/components/Filter/components/Options/Options.js +1 -52
- package/dist/components/Filter/components/Options/Options.style.js +7 -23
- package/dist/components/Filter/components/SearchInput/SearchInput.js +1 -58
- package/dist/components/Filter/components/SearchInput/SearchInput.style.js +23 -34
- package/dist/components/Filter/utils.js +1 -116
- package/dist/components/Icon/Icon.js +1 -46
- package/dist/components/Icon/Icon.style.js +1 -37
- package/dist/components/Icon/assets/TVCinema.svg.js +1 -0
- package/dist/components/Icon/assets/TVRadio.svg.js +1 -0
- package/dist/components/Icon/assets/account.svg.js +1 -0
- package/dist/components/Icon/assets/actions.svg.js +1 -0
- package/dist/components/Icon/assets/add.svg.js +1 -0
- package/dist/components/Icon/assets/alert.svg.js +1 -0
- package/dist/components/Icon/assets/analytics.svg.js +1 -0
- package/dist/components/Icon/assets/analyticsVideos.svg.js +1 -0
- package/dist/components/Icon/assets/ancient-building.svg.js +1 -0
- package/dist/components/Icon/assets/arrow-left.svg.js +1 -0
- package/dist/components/Icon/assets/arrow-right.svg.js +1 -0
- package/dist/components/Icon/assets/artist.svg.js +1 -0
- package/dist/components/Icon/assets/asset-matching.svg.js +1 -0
- package/dist/components/Icon/assets/asset.svg.js +1 -0
- package/dist/components/Icon/assets/auto.svg.js +1 -0
- package/dist/components/Icon/assets/broadcast.svg.js +1 -0
- package/dist/components/Icon/assets/calendar-empty.svg.js +1 -0
- package/dist/components/Icon/assets/calendar-filled.svg.js +1 -0
- package/dist/components/Icon/assets/catalog-files.svg.js +1 -0
- package/dist/components/Icon/assets/catalog-overview.svg.js +1 -0
- package/dist/components/Icon/assets/catalog.svg.js +1 -0
- package/dist/components/Icon/assets/chat-bubble.svg.js +1 -0
- package/dist/components/Icon/assets/check.svg.js +1 -0
- package/dist/components/Icon/assets/checked-list.svg.js +1 -0
- package/dist/components/Icon/assets/checkmark.svg.js +1 -0
- package/dist/components/Icon/assets/chevron-extra-small-down.svg.js +1 -0
- package/dist/components/Icon/assets/chevron-extra-small-left.svg.js +1 -0
- package/dist/components/Icon/assets/chevron-extra-small-right.svg.js +1 -0
- package/dist/components/Icon/assets/chevron-extra-small-up.svg.js +1 -0
- package/dist/components/Icon/assets/chevron-large-down.svg.js +1 -0
- package/dist/components/Icon/assets/chevron-large-left.svg.js +1 -0
- package/dist/components/Icon/assets/chevron-large-right.svg.js +1 -0
- package/dist/components/Icon/assets/chevron-large-up.svg.js +1 -0
- package/dist/components/Icon/assets/chevron-small-down.svg.js +1 -0
- package/dist/components/Icon/assets/chevron-small-left.svg.js +1 -0
- package/dist/components/Icon/assets/chevron-small-right.svg.js +1 -0
- package/dist/components/Icon/assets/chevron-small-up.svg.js +1 -0
- package/dist/components/Icon/assets/claimList.svg.js +1 -0
- package/dist/components/Icon/assets/clock-outlined.svg.js +1 -0
- package/dist/components/Icon/assets/clock.svg.js +1 -0
- package/dist/components/Icon/assets/close-tag.svg.js +1 -0
- package/dist/components/Icon/assets/close.svg.js +1 -0
- package/dist/components/Icon/assets/cms-process.svg.js +1 -0
- package/dist/components/Icon/assets/composition-v2.svg.js +1 -0
- package/dist/components/Icon/assets/composition.svg.js +1 -0
- package/dist/components/Icon/assets/concert.svg.js +1 -0
- package/dist/components/Icon/assets/confirmed-matches.svg.js +1 -0
- package/dist/components/Icon/assets/conflicts.svg.js +1 -0
- package/dist/components/Icon/assets/dashboard.svg.js +1 -0
- package/dist/components/Icon/assets/dataset.svg.js +1 -0
- package/dist/components/Icon/assets/dd-arrow.svg.js +1 -0
- package/dist/components/Icon/assets/delete.svg.js +1 -0
- package/dist/components/Icon/assets/delivery.svg.js +1 -0
- package/dist/components/Icon/assets/details.svg.js +1 -0
- package/dist/components/Icon/assets/digitalUse.svg.js +1 -0
- package/dist/components/Icon/assets/distribution.svg.js +1 -0
- package/dist/components/Icon/assets/dots-vertical.svg.js +1 -0
- package/dist/components/Icon/assets/download.svg.js +1 -0
- package/dist/components/Icon/assets/duplicate.svg.js +1 -0
- package/dist/components/Icon/assets/duplicate2.svg.js +1 -0
- package/dist/components/Icon/assets/earnings.svg.js +1 -0
- package/dist/components/Icon/assets/earnings2.svg.js +1 -0
- package/dist/components/Icon/assets/edit.svg.js +1 -0
- package/dist/components/Icon/assets/entities.svg.js +1 -0
- package/dist/components/Icon/assets/entity.svg.js +1 -0
- package/dist/components/Icon/assets/error.svg.js +1 -0
- package/dist/components/Icon/assets/expenses.svg.js +1 -0
- package/dist/components/Icon/assets/external-link-v2.svg.js +1 -0
- package/dist/components/Icon/assets/external-link.svg.js +1 -0
- package/dist/components/Icon/assets/fat-arrow-down.svg.js +1 -0
- package/dist/components/Icon/assets/fat-arrow-left.svg.js +1 -0
- package/dist/components/Icon/assets/fat-arrow-right.svg.js +1 -0
- package/dist/components/Icon/assets/fat-arrow-up.svg.js +1 -0
- package/dist/components/Icon/assets/file.svg.js +1 -0
- package/dist/components/Icon/assets/financial-chart.svg.js +1 -0
- package/dist/components/Icon/assets/generatedReports.svg.js +1 -0
- package/dist/components/Icon/assets/generic-file.svg.js +1 -0
- package/dist/components/Icon/assets/generic-ordering.svg.js +1 -0
- package/dist/components/Icon/assets/global-item.svg.js +1 -0
- package/dist/components/Icon/assets/heart-fill.svg.js +1 -0
- package/dist/components/Icon/assets/heart-stroke.svg.js +1 -0
- package/dist/components/Icon/assets/help.svg.js +1 -0
- package/dist/components/Icon/assets/hourglass.svg.js +1 -0
- package/dist/components/Icon/assets/iconSelector.js +1 -2479
- package/dist/components/Icon/assets/income.svg.js +1 -0
- package/dist/components/Icon/assets/info-filled.svg.js +1 -0
- package/dist/components/Icon/assets/info.svg.js +1 -0
- package/dist/components/Icon/assets/issues.svg.js +1 -0
- package/dist/components/Icon/assets/keyword.svg.js +1 -0
- package/dist/components/Icon/assets/legal-files.svg.js +1 -0
- package/dist/components/Icon/assets/linked.svg.js +1 -0
- package/dist/components/Icon/assets/lock.svg.js +1 -0
- package/dist/components/Icon/assets/mail.svg.js +1 -0
- package/dist/components/Icon/assets/manual.svg.js +1 -0
- package/dist/components/Icon/assets/menu.svg.js +1 -0
- package/dist/components/Icon/assets/microphone.svg.js +1 -0
- package/dist/components/Icon/assets/minus.svg.js +1 -0
- package/dist/components/Icon/assets/more-options-horizontal.svg.js +1 -0
- package/dist/components/Icon/assets/more-options-vertical.svg.js +1 -0
- package/dist/components/Icon/assets/music-note.svg.js +1 -0
- package/dist/components/Icon/assets/myEarnings.svg.js +1 -0
- package/dist/components/Icon/assets/notifications.svg.js +1 -0
- package/dist/components/Icon/assets/notifications2.svg.js +1 -0
- package/dist/components/Icon/assets/one-way.svg.js +1 -0
- package/dist/components/Icon/assets/others.svg.js +1 -0
- package/dist/components/Icon/assets/ownership-validation.svg.js +1 -0
- package/dist/components/Icon/assets/page-first.svg.js +1 -0
- package/dist/components/Icon/assets/page-last.svg.js +1 -0
- package/dist/components/Icon/assets/pagination-end.svg.js +1 -0
- package/dist/components/Icon/assets/pagination-start.svg.js +1 -0
- package/dist/components/Icon/assets/pause.svg.js +1 -0
- package/dist/components/Icon/assets/percentage.svg.js +1 -0
- package/dist/components/Icon/assets/play-count.svg.js +1 -0
- package/dist/components/Icon/assets/plus.svg.js +1 -0
- package/dist/components/Icon/assets/policies.svg.js +1 -0
- package/dist/components/Icon/assets/process-management.svg.js +1 -0
- package/dist/components/Icon/assets/process.svg.js +1 -0
- package/dist/components/Icon/assets/processed-logs.svg.js +1 -0
- package/dist/components/Icon/assets/proposed.svg.js +1 -0
- package/dist/components/Icon/assets/publicPerformance.svg.js +1 -0
- package/dist/components/Icon/assets/publisher.svg.js +1 -0
- package/dist/components/Icon/assets/record-label-v2.svg.js +1 -0
- package/dist/components/Icon/assets/record-label.svg.js +1 -0
- package/dist/components/Icon/assets/recording.svg.js +1 -0
- package/dist/components/Icon/assets/reference-file.svg.js +1 -0
- package/dist/components/Icon/assets/refresh.svg.js +1 -0
- package/dist/components/Icon/assets/relations.svg.js +1 -0
- package/dist/components/Icon/assets/restart.svg.js +1 -0
- package/dist/components/Icon/assets/restore.svg.js +1 -0
- package/dist/components/Icon/assets/result.svg.js +1 -0
- package/dist/components/Icon/assets/resume.svg.js +1 -0
- package/dist/components/Icon/assets/royaltyShares.svg.js +1 -0
- package/dist/components/Icon/assets/search-music.svg.js +1 -0
- package/dist/components/Icon/assets/search-thunder.svg.js +1 -0
- package/dist/components/Icon/assets/search.svg.js +1 -0
- package/dist/components/Icon/assets/settings.svg.js +1 -0
- package/dist/components/Icon/assets/sight.svg.js +1 -0
- package/dist/components/Icon/assets/sort-ascending.svg.js +1 -0
- package/dist/components/Icon/assets/sort-descending.svg.js +1 -0
- package/dist/components/Icon/assets/stamp.svg.js +1 -0
- package/dist/components/Icon/assets/star.svg.js +1 -0
- package/dist/components/Icon/assets/statements.svg.js +1 -0
- package/dist/components/Icon/assets/success.svg.js +1 -0
- package/dist/components/Icon/assets/television.svg.js +1 -0
- package/dist/components/Icon/assets/thunder.svg.js +1 -0
- package/dist/components/Icon/assets/tic-tac-toe-arrow.svg.js +1 -0
- package/dist/components/Icon/assets/time-out.svg.js +1 -0
- package/dist/components/Icon/assets/training.svg.js +1 -0
- package/dist/components/Icon/assets/triangle-down.svg.js +1 -0
- package/dist/components/Icon/assets/triangle-left.svg.js +1 -0
- package/dist/components/Icon/assets/triangle-right.svg.js +1 -0
- package/dist/components/Icon/assets/triangle-up.svg.js +1 -0
- package/dist/components/Icon/assets/trophy.svg.js +1 -0
- package/dist/components/Icon/assets/unpaired-v2.svg.js +1 -0
- package/dist/components/Icon/assets/unpaired.svg.js +1 -0
- package/dist/components/Icon/assets/update.svg.js +1 -0
- package/dist/components/Icon/assets/upload.svg.js +1 -0
- package/dist/components/Icon/assets/user-avatar.svg.js +1 -0
- package/dist/components/Icon/assets/user.svg.js +1 -0
- package/dist/components/Icon/assets/userCheck.svg.js +1 -0
- package/dist/components/Icon/assets/users.svg.js +1 -0
- package/dist/components/Icon/assets/users2.svg.js +1 -0
- package/dist/components/Icon/assets/videoConfirmation.svg.js +1 -0
- package/dist/components/Icon/assets/view.svg.js +1 -0
- package/dist/components/Icon/assets/warning.svg.js +1 -0
- package/dist/components/Icon/assets/works.svg.js +1 -0
- package/dist/components/Icon/assets/writer.svg.js +1 -0
- package/dist/components/Icon/assets/youtube.svg.js +1 -0
- package/dist/components/IconButton/IconButton.js +1 -59
- package/dist/components/IconButton/IconButton.style.js +1 -22
- package/dist/components/Label/Label.js +1 -35
- package/dist/components/Label/Label.style.js +17 -28
- package/dist/components/List/List.js +1 -72
- package/dist/components/List/List.style.js +14 -39
- package/dist/components/List/ListItem/ListItem.js +1 -60
- package/dist/components/List/ListItem/ListItem.style.js +30 -44
- package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.js +1 -35
- package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.style.js +16 -41
- package/dist/components/List/ListItemGroup/ListItemGroup.js +1 -63
- package/dist/components/List/NormalList/NormalList.js +1 -80
- package/dist/components/List/VirtualizedList/VirtualizedList.js +1 -114
- package/dist/components/List/utils.js +1 -74
- package/dist/components/Loader/Loader.js +1 -27
- package/dist/components/Loader/Loader.style.js +3 -26
- package/dist/components/Loader/Loader.utils.js +1 -46
- package/dist/components/Loader/components/DotsLoader/DotsLoader.js +1 -28
- package/dist/components/Loader/components/DotsLoader/DotsLoader.style.js +42 -46
- package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.js +1 -32
- package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.style.js +45 -73
- package/dist/components/Loader/components/Spinner/Spinner.js +1 -26
- package/dist/components/Loader/components/Spinner/Spinner.style.js +23 -27
- package/dist/components/Menu/Menu.js +1 -118
- package/dist/components/Menu/Menu.style.js +4 -67
- package/dist/components/Modal/Modal.js +1 -80
- package/dist/components/Modal/Modal.style.js +32 -52
- package/dist/components/Modal/ModalContent/ModalContent.js +1 -61
- package/dist/components/Modal/ModalContent/ModalContent.style.js +35 -63
- package/dist/components/Notification/Banner/Banner.js +1 -47
- package/dist/components/Notification/InlineNotification/InlineNotification.js +1 -45
- package/dist/components/Notification/Notification.style.js +24 -80
- package/dist/components/Notification/NotificationVisual/NotificationVisual.js +1 -62
- package/dist/components/Notification/NotificationVisual/NotificationVisual.style.js +8 -34
- package/dist/components/Notification/NotificationsContainer/NotificationsContainer.js +1 -32
- package/dist/components/Notification/NotificationsContainer/NotificationsContainer.style.js +36 -37
- package/dist/components/Notification/Snackbar/Snackbar.js +1 -95
- package/dist/components/Notification/Snackbar/Snackbar.style.js +26 -73
- package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.js +1 -92
- package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.style.js +28 -95
- package/dist/components/Overlay/Overlay.js +1 -84
- package/dist/components/Overlay/Overlay.style.js +37 -138
- package/dist/components/Pagination/Pagination.js +1 -94
- package/dist/components/Radio/Radio.js +1 -111
- package/dist/components/Radio/Radio.style.js +88 -113
- package/dist/components/RadioGroup/RadioGroup.js +1 -56
- package/dist/components/RadioGroup/RadioGroupContext.js +1 -14
- package/dist/components/RadioGroup/useRadioGroup.js +1 -18
- package/dist/components/SearchField/SearchField.js +1 -105
- package/dist/components/Select/Select.js +1 -252
- package/dist/components/Select/Select.style.js +13 -37
- package/dist/components/Select/components/SelectMenu/SelectMenu.js +1 -76
- package/dist/components/Select/components/SelectMenu/SelectMenu.style.js +27 -47
- package/dist/components/Slider/Slider.js +1 -180
- package/dist/components/Slider/Slider.style.js +14 -34
- package/dist/components/Slider/components/SliderMark/SliderMark.js +1 -56
- package/dist/components/Slider/components/SliderMark/SliderMark.style.js +57 -48
- package/dist/components/Slider/components/SliderThumb/SliderThumb.js +1 -37
- package/dist/components/Slider/components/SliderThumb/SliderThumb.style.js +27 -33
- package/dist/components/Slider/components/SliderTrack/SliderTrack.js +1 -55
- package/dist/components/Slider/components/SliderTrack/SliderTrack.style.js +6 -24
- package/dist/components/Switch/Switch.js +1 -65
- package/dist/components/Switch/Switch.style.js +30 -68
- package/dist/components/Table/Table.js +1 -274
- package/dist/components/Table/Table.style.js +1 -76
- package/dist/components/Table/TableRowContext.js +1 -28
- package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.js +1 -114
- package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.style.js +8 -36
- package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.js +1 -183
- package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.style.js +1 -57
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.js +1 -59
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.style.js +1 -24
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.js +1 -64
- package/dist/components/Table/components/TableCell/TableCell.js +1 -85
- package/dist/components/Table/components/TableCell/TableCell.style.js +17 -38
- package/dist/components/Table/components/TableCell/utils.js +1 -22
- package/dist/components/Table/components/TableRow/TableRow.js +1 -53
- package/dist/components/Table/components/TableRowWrapper/TableRowWrapper.js +1 -62
- package/dist/components/Table/utils/utils.js +1 -16
- package/dist/components/TextArea/TextArea.js +1 -77
- package/dist/components/TextArea/TextArea.style.js +1 -27
- package/dist/components/TextField/TextField.js +1 -127
- package/dist/components/TextField/TextField.style.js +9 -23
- package/dist/components/TextField/components/commons.js +1 -27
- package/dist/components/TextInputBase/TextInputBase.js +1 -77
- package/dist/components/TextInputBase/TextInputBase.style.js +1 -211
- package/dist/components/TextInputBase/config.js +1 -65
- package/dist/components/ThemeProvider/ThemeProvider.js +21 -68
- package/dist/components/Toast/Toast.js +1 -91
- package/dist/components/Toast/Toast.style.js +35 -112
- package/dist/components/Tooltip/Tooltip.js +1 -42
- package/dist/components/Tooltip/Tooltip.style.js +19 -37
- package/dist/components/TopAppBar/TopAppBar.js +1 -65
- package/dist/components/TopAppBar/TopAppBar.style.js +23 -57
- package/dist/components/TopAppBar/components/Logo/Logo.style.js +15 -37
- package/dist/components/TopAppBar/components/Logo/Logo.wrapper.js +1 -28
- package/dist/components/TopAppBar/components/Search/Search.js +1 -57
- package/dist/components/TopAppBar/components/Search/Search.style.js +26 -51
- package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.js +1 -30
- package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.style.js +4 -20
- package/dist/components/TopAppBar/components/UserMenu/UserMenu.js +1 -39
- package/dist/components/TopAppBar/components/UserMenu/UserMenu.style.js +3 -20
- package/dist/components/TruncatedContent/TruncatedContent.js +1 -69
- package/dist/components/TruncatedContent/TruncatedContent.style.js +5 -26
- package/dist/components/utils/ClickAwayListener/ClickAwayListener.js +1 -52
- package/dist/components/utils/DropdownOptions/index.js +15 -22
- package/dist/components/utils/PositionInScreen/PositionInScreen.js +1 -98
- package/dist/components/utils/PositionInScreen/PositionInScreen.style.js +18 -32
- package/dist/components/utils/handleSearch.js +1 -33
- package/dist/hooks/useBreakpoints.js +1 -38
- package/dist/hooks/useCombinedRefs.js +1 -35
- package/dist/hooks/useEscape.js +1 -24
- package/dist/hooks/useLoading.js +1 -31
- package/dist/hooks/useLocationToGetCurrentMenuItem.js +1 -36
- package/dist/hooks/usePagination.js +1 -71
- package/dist/hooks/useTheme.js +1 -13
- package/dist/hooks/useThemeSwitch.js +1 -49
- package/dist/hooks/useToggle.js +1 -30
- package/dist/hooks/useTypeColorToColorMatch.js +1 -95
- package/dist/index.d.ts +2118 -107
- package/dist/index.js +1 -553
- package/dist/theme/functions.js +52 -103
- package/dist/theme/globals/borderRadius.js +1 -16
- package/dist/theme/globals/borderWidth.js +1 -16
- package/dist/theme/globals/boxShadow.js +1 -16
- package/dist/theme/globals/colors.js +1 -12
- package/dist/theme/globals/constants/borderRadius.js +1 -48
- package/dist/theme/globals/constants/borderWidth.js +1 -17
- package/dist/theme/globals/constants/boxShadow.js +1 -63
- package/dist/theme/globals/constants/fontFamily.js +1 -12
- package/dist/theme/globals/constants/fontSize.js +1 -49
- package/dist/theme/globals/constants/fontWeight.js +1 -24
- package/dist/theme/globals/constants/letterSpacing.js +1 -24
- package/dist/theme/globals/constants/lineHeight.js +1 -54
- package/dist/theme/globals/constants/opacity.js +1 -34
- package/dist/theme/globals/constants/sizing.js +1 -88
- package/dist/theme/globals/constants/spacing.js +1 -60
- package/dist/theme/globals/constants/textCase.js +1 -16
- package/dist/theme/globals/constants/textDecoration.js +1 -17
- package/dist/theme/globals/elevation.js +1 -12
- package/dist/theme/globals/index.js +1 -38
- package/dist/theme/globals/opacity.js +1 -16
- package/dist/theme/globals/sizing.js +1 -16
- package/dist/theme/globals/spacing.js +1 -16
- package/dist/theme/globals/typography.js +1 -67
- package/dist/theme/index.js +1 -41
- package/dist/theme/overrides.js +1 -7
- package/dist/theme/palette.config.js +1 -87
- package/dist/theme/palette.js +1 -106
- package/dist/theme/states/disabled.js +1 -25
- package/dist/theme/states/focus.js +1 -31
- package/dist/theme/states/hover.js +1 -31
- package/dist/theme/states/pressed.js +1 -31
- package/dist/theme/states/statesConfig.js +1 -73
- package/dist/theme/states/utils.js +1 -26
- package/dist/theme/tokens/index.js +1 -14
- package/dist/theme/tokens/semantic/backdrop.js +1 -16
- package/dist/theme/tokens/semantic/backgroundColor.js +1 -16
- package/dist/theme/tokens/semantic/borderColor.js +1 -16
- package/dist/theme/tokens/semantic/disabledState.js +1 -16
- package/dist/theme/tokens/semantic/index.js +1 -29
- package/dist/theme/tokens/semantic/palette.js +1 -16
- package/dist/theme/tokens/semantic/textColor.js +1 -16
- package/dist/theme/tokens/semantic/variables/backdrop.js +1 -18
- package/dist/theme/tokens/semantic/variables/backgroundColor.js +1 -51
- package/dist/theme/tokens/semantic/variables/borderColor.js +1 -68
- package/dist/theme/tokens/semantic/variables/disabledState.js +1 -10
- package/dist/theme/tokens/semantic/variables/palette.js +1 -335
- package/dist/theme/tokens/semantic/variables/textColor.js +1 -77
- package/dist/theme/tokens/utils.js +1 -76
- package/dist/theme/utils.js +1 -164
- package/dist/utils/date.js +1 -0
- package/dist/utils/errors.js +1 -50
- package/dist/utils/helpers.js +1 -75
- package/dist/utils/size-utils.js +1 -62
- package/dist/utils/themeFunctions.js +1 -133
- package/package.json +31 -18
- package/dist/components/Avatar/Avatar.d.ts +0 -4
- package/dist/components/Avatar/Avatar.style.d.ts +0 -7
- package/dist/components/Avatar/Avatar.tokens.d.ts +0 -13
- package/dist/components/Avatar/Avatar.types.d.ts +0 -21
- package/dist/components/Avatar/Avatar.types.js +0 -3
- package/dist/components/Avatar/AvatarStack/AvatarStack.d.ts +0 -5
- package/dist/components/Avatar/AvatarStack/AvatarStack.style.d.ts +0 -9
- package/dist/components/Avatar/AvatarStack/AvatarStack.types.d.ts +0 -9
- package/dist/components/Avatar/AvatarStack/AvatarStack.types.js +0 -3
- package/dist/components/Avatar/AvatarStack/index.d.ts +0 -2
- package/dist/components/Avatar/AvatarStack/index.js +0 -19
- package/dist/components/Avatar/AvatarStack/utils.d.ts +0 -6
- package/dist/components/Avatar/index.d.ts +0 -3
- package/dist/components/Avatar/index.js +0 -28
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -8
- package/dist/components/Breadcrumb/Breadcrumb.style.d.ts +0 -4
- package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.d.ts +0 -9
- package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.style.d.ts +0 -8
- package/dist/components/Breadcrumb/Separator/Separator.d.ts +0 -7
- package/dist/components/Breadcrumb/Separator/Separator.style.d.ts +0 -3
- package/dist/components/Breadcrumb/index.d.ts +0 -2
- package/dist/components/Breadcrumb/index.js +0 -19
- package/dist/components/Breadcrumb/types.d.ts +0 -6
- package/dist/components/Breadcrumb/types.js +0 -3
- package/dist/components/Button/Button.d.ts +0 -11
- package/dist/components/Button/Button.style.d.ts +0 -16
- package/dist/components/Button/ButtonLoader/ButtonLoader.d.ts +0 -7
- package/dist/components/Button/ButtonLoader/ButtonLoader.style.d.ts +0 -2
- package/dist/components/Button/ButtonLoader/index.d.ts +0 -2
- package/dist/components/Button/ButtonLoader/index.js +0 -19
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Button/index.js +0 -19
- package/dist/components/Button/utils.d.ts +0 -15
- package/dist/components/ButtonBase/ButtonBase.d.ts +0 -72
- package/dist/components/ButtonBase/ButtonBase.style.d.ts +0 -18
- package/dist/components/ButtonBase/config.d.ts +0 -28
- package/dist/components/ButtonBase/index.d.ts +0 -2
- package/dist/components/ButtonBase/index.js +0 -19
- package/dist/components/ButtonBase/utils.d.ts +0 -21
- package/dist/components/Card/Card.d.ts +0 -13
- package/dist/components/Card/Card.style.d.ts +0 -7
- package/dist/components/Card/index.d.ts +0 -2
- package/dist/components/Card/index.js +0 -19
- package/dist/components/Chart/BarChart/BarChart.d.ts +0 -25
- package/dist/components/Chart/BarChart/components/CustomLabel/CustomLabel.d.ts +0 -8
- package/dist/components/Chart/BarChart/components/CustomLabel/index.d.ts +0 -1
- package/dist/components/Chart/BarChart/components/CustomLabel/index.js +0 -10
- package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.d.ts +0 -7
- package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.style.d.ts +0 -5
- package/dist/components/Chart/BarChart/components/CustomTooltip/index.d.ts +0 -1
- package/dist/components/Chart/BarChart/components/CustomTooltip/index.js +0 -10
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.d.ts +0 -4
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.style.d.ts +0 -38
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/index.d.ts +0 -1
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/index.js +0 -10
- package/dist/components/Chart/BarChart/index.d.ts +0 -1
- package/dist/components/Chart/BarChart/index.js +0 -10
- package/dist/components/Chart/BarChart/utils.d.ts +0 -10
- package/dist/components/Chart/DonutChart/DonutChart.d.ts +0 -16
- package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.d.ts +0 -8
- package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.style.d.ts +0 -4
- package/dist/components/Chart/DonutChart/components/CustomLabel/index.d.ts +0 -1
- package/dist/components/Chart/DonutChart/components/CustomLabel/index.js +0 -10
- package/dist/components/Chart/DonutChart/index.d.ts +0 -1
- package/dist/components/Chart/DonutChart/index.js +0 -10
- package/dist/components/Chart/LineChart/LineChart.d.ts +0 -16
- package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.d.ts +0 -4
- package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.style.d.ts +0 -31
- package/dist/components/Chart/LineChart/components/CustomTooltip/index.d.ts +0 -1
- package/dist/components/Chart/LineChart/components/CustomTooltip/index.js +0 -10
- package/dist/components/Chart/LineChart/components/GradientLine/GradientLine.d.ts +0 -7
- package/dist/components/Chart/LineChart/components/GradientLine/index.d.ts +0 -1
- package/dist/components/Chart/LineChart/components/GradientLine/index.js +0 -10
- package/dist/components/Chart/LineChart/index.d.ts +0 -1
- package/dist/components/Chart/LineChart/index.js +0 -10
- package/dist/components/Chart/LineChart/mockedData.d.ts +0 -11
- package/dist/components/Chart/LineChart/mockedData.js +0 -40
- package/dist/components/Chart/LineChart/story.utils.d.ts +0 -1
- package/dist/components/Chart/LineChart/story.utils.js +0 -22
- package/dist/components/Chart/LineChart/utils.d.ts +0 -13
- package/dist/components/Chart/Wrapper.d.ts +0 -7
- package/dist/components/CheckBox/CheckBox.d.ts +0 -26
- package/dist/components/CheckBox/CheckBox.style.d.ts +0 -8
- package/dist/components/CheckBox/index.d.ts +0 -2
- package/dist/components/CheckBox/index.js +0 -19
- package/dist/components/Chip/Chip.d.ts +0 -3
- package/dist/components/Chip/Chip.style.d.ts +0 -6
- package/dist/components/Chip/Chip.types.d.ts +0 -34
- package/dist/components/Chip/components/Badge/Badge.d.ts +0 -9
- package/dist/components/Chip/components/Badge/Badge.style.d.ts +0 -4
- package/dist/components/Chip/components/Badge/index.d.ts +0 -2
- package/dist/components/Chip/components/Badge/index.js +0 -19
- package/dist/components/Chip/index.d.ts +0 -3
- package/dist/components/Chip/index.js +0 -28
- package/dist/components/Chip/utils.d.ts +0 -9
- package/dist/components/DatePicker/DatePickInput/DatePickInput.d.ts +0 -52
- package/dist/components/DatePicker/DatePickInput/DatePickInput.style.d.ts +0 -3
- package/dist/components/DatePicker/DatePickInput/index.d.ts +0 -2
- package/dist/components/DatePicker/DatePickInput/index.js +0 -19
- package/dist/components/DatePicker/DatePicker.d.ts +0 -51
- package/dist/components/DatePicker/DatePicker.style.d.ts +0 -3
- package/dist/components/DatePicker/Day/Day.d.ts +0 -15
- package/dist/components/DatePicker/Day/Day.style.d.ts +0 -22
- package/dist/components/DatePicker/Day/index.d.ts +0 -2
- package/dist/components/DatePicker/Day/index.js +0 -19
- package/dist/components/DatePicker/Month/Month.d.ts +0 -14
- package/dist/components/DatePicker/Month/Month.style.d.ts +0 -5
- package/dist/components/DatePicker/Month/Month.utils.d.ts +0 -6
- package/dist/components/DatePicker/Month/index.d.ts +0 -2
- package/dist/components/DatePicker/Month/index.js +0 -19
- package/dist/components/DatePicker/OverlayComponent/OverlayComponent.d.ts +0 -20
- package/dist/components/DatePicker/OverlayComponent/OverlayComponent.style.d.ts +0 -14
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.d.ts +0 -16
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.d.ts +0 -13
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/index.d.ts +0 -0
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/index.js +0 -1
- package/dist/components/DatePicker/OverlayComponent/index.d.ts +0 -2
- package/dist/components/DatePicker/OverlayComponent/index.js +0 -19
- package/dist/components/DatePicker/index.d.ts +0 -2
- package/dist/components/DatePicker/index.js +0 -19
- package/dist/components/DatePicker/utils.d.ts +0 -8
- package/dist/components/Drawer/Drawer.d.ts +0 -14
- package/dist/components/Drawer/Drawer.style.d.ts +0 -3
- package/dist/components/Drawer/Navigation/MenuItem/MenuItem.d.ts +0 -11
- package/dist/components/Drawer/Navigation/Navigation.d.ts +0 -5
- package/dist/components/Drawer/Navigation/Navigation.style.d.ts +0 -10
- package/dist/components/Drawer/index.d.ts +0 -3
- package/dist/components/Drawer/index.js +0 -28
- package/dist/components/Drawer/types.d.ts +0 -14
- package/dist/components/Drawer/types.js +0 -3
- package/dist/components/ExpandCollapse/ExpandCollapse.d.ts +0 -3
- package/dist/components/ExpandCollapse/ExpandCollapse.style.d.ts +0 -1
- package/dist/components/ExpandCollapse/ExpandCollapse.types.d.ts +0 -64
- package/dist/components/ExpandCollapse/ExpandCollapse.types.js +0 -3
- package/dist/components/ExpandCollapse/index.d.ts +0 -3
- package/dist/components/ExpandCollapse/index.js +0 -28
- package/dist/components/ExpandCollapse/useManageContentRef.d.ts +0 -2
- package/dist/components/ExpandCollapse/utils.d.ts +0 -6
- package/dist/components/Filter/Filter.d.ts +0 -4
- package/dist/components/Filter/Filter.style.d.ts +0 -121
- package/dist/components/Filter/components/FilterBase/FilterBase.d.ts +0 -24
- package/dist/components/Filter/components/FilterBase/index.d.ts +0 -2
- package/dist/components/Filter/components/FilterBase/index.js +0 -19
- package/dist/components/Filter/components/Options/Options.d.ts +0 -14
- package/dist/components/Filter/components/Options/Options.style.d.ts +0 -2
- package/dist/components/Filter/components/SearchInput/SearchInput.d.ts +0 -9
- package/dist/components/Filter/components/SearchInput/SearchInput.style.d.ts +0 -3
- package/dist/components/Filter/index.d.ts +0 -3
- package/dist/components/Filter/index.js +0 -28
- package/dist/components/Filter/types.d.ts +0 -66
- package/dist/components/Filter/types.js +0 -3
- package/dist/components/Filter/utils.d.ts +0 -18
- package/dist/components/Icon/Icon.d.ts +0 -20
- package/dist/components/Icon/Icon.style.d.ts +0 -26
- package/dist/components/Icon/assets/iconSelector.d.ts +0 -5
- package/dist/components/Icon/index.d.ts +0 -3
- package/dist/components/Icon/index.js +0 -28
- package/dist/components/Icon/types.d.ts +0 -1
- package/dist/components/Icon/types.js +0 -3
- package/dist/components/IconButton/IconButton.d.ts +0 -18
- package/dist/components/IconButton/IconButton.style.d.ts +0 -11
- package/dist/components/IconButton/index.d.ts +0 -2
- package/dist/components/IconButton/index.js +0 -19
- package/dist/components/Label/Label.d.ts +0 -15
- package/dist/components/Label/Label.style.d.ts +0 -5
- package/dist/components/Label/index.d.ts +0 -2
- package/dist/components/Label/index.js +0 -19
- package/dist/components/List/List.d.ts +0 -48
- package/dist/components/List/List.style.d.ts +0 -11
- package/dist/components/List/ListItem/ListItem.d.ts +0 -44
- package/dist/components/List/ListItem/ListItem.style.d.ts +0 -11
- package/dist/components/List/ListItem/index.d.ts +0 -2
- package/dist/components/List/ListItem/index.js +0 -19
- package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.d.ts +0 -15
- package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.style.d.ts +0 -8
- package/dist/components/List/ListItemGroup/ListGroupTitle/index.d.ts +0 -2
- package/dist/components/List/ListItemGroup/ListGroupTitle/index.js +0 -19
- package/dist/components/List/ListItemGroup/ListItemGroup.d.ts +0 -32
- package/dist/components/List/ListItemGroup/index.d.ts +0 -2
- package/dist/components/List/ListItemGroup/index.js +0 -19
- package/dist/components/List/NormalList/NormalList.d.ts +0 -23
- package/dist/components/List/NormalList/NormalList.style.d.ts +0 -0
- package/dist/components/List/NormalList/NormalList.style.js +0 -1
- package/dist/components/List/NormalList/index.d.ts +0 -2
- package/dist/components/List/NormalList/index.js +0 -19
- package/dist/components/List/VirtualizedList/VirtualizedList.d.ts +0 -21
- package/dist/components/List/VirtualizedList/VirtualizedList.style.d.ts +0 -0
- package/dist/components/List/VirtualizedList/VirtualizedList.style.js +0 -1
- package/dist/components/List/VirtualizedList/index.d.ts +0 -2
- package/dist/components/List/VirtualizedList/index.js +0 -19
- package/dist/components/List/index.d.ts +0 -3
- package/dist/components/List/index.js +0 -28
- package/dist/components/List/types.d.ts +0 -6
- package/dist/components/List/types.js +0 -3
- package/dist/components/List/utils.d.ts +0 -12
- package/dist/components/Loader/Loader.d.ts +0 -13
- package/dist/components/Loader/Loader.style.d.ts +0 -2
- package/dist/components/Loader/Loader.utils.d.ts +0 -3
- package/dist/components/Loader/components/DotsLoader/DotsLoader.d.ts +0 -7
- package/dist/components/Loader/components/DotsLoader/DotsLoader.style.d.ts +0 -6
- package/dist/components/Loader/components/DotsLoader/index.d.ts +0 -2
- package/dist/components/Loader/components/DotsLoader/index.js +0 -19
- package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.d.ts +0 -7
- package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.style.d.ts +0 -7
- package/dist/components/Loader/components/IndeterminateLoader/index.d.ts +0 -2
- package/dist/components/Loader/components/IndeterminateLoader/index.js +0 -19
- package/dist/components/Loader/components/Spinner/Spinner.d.ts +0 -8
- package/dist/components/Loader/components/Spinner/Spinner.style.d.ts +0 -3
- package/dist/components/Loader/components/Spinner/index.d.ts +0 -2
- package/dist/components/Loader/components/Spinner/index.js +0 -19
- package/dist/components/Loader/index.d.ts +0 -2
- package/dist/components/Loader/index.js +0 -19
- package/dist/components/Menu/Menu.d.ts +0 -43
- package/dist/components/Menu/Menu.style.d.ts +0 -16
- package/dist/components/Menu/index.d.ts +0 -2
- package/dist/components/Menu/index.js +0 -19
- package/dist/components/Modal/Modal.d.ts +0 -17
- package/dist/components/Modal/Modal.style.d.ts +0 -7
- package/dist/components/Modal/ModalContent/ModalContent.d.ts +0 -22
- package/dist/components/Modal/ModalContent/ModalContent.style.d.ts +0 -7
- package/dist/components/Modal/ModalContent/index.d.ts +0 -1
- package/dist/components/Modal/ModalContent/index.js +0 -10
- package/dist/components/Modal/index.d.ts +0 -1
- package/dist/components/Modal/index.js +0 -10
- package/dist/components/Notification/Banner/Banner.d.ts +0 -25
- package/dist/components/Notification/Banner/index.d.ts +0 -2
- package/dist/components/Notification/Banner/index.js +0 -19
- package/dist/components/Notification/InlineNotification/InlineNotification.d.ts +0 -23
- package/dist/components/Notification/InlineNotification/index.d.ts +0 -2
- package/dist/components/Notification/InlineNotification/index.js +0 -19
- package/dist/components/Notification/Notification.d.ts +0 -3
- package/dist/components/Notification/Notification.js +0 -3
- package/dist/components/Notification/Notification.style.d.ts +0 -9
- package/dist/components/Notification/NotificationVisual/NotificationVisual.d.ts +0 -20
- package/dist/components/Notification/NotificationVisual/NotificationVisual.style.d.ts +0 -4
- package/dist/components/Notification/NotificationVisual/index.d.ts +0 -2
- package/dist/components/Notification/NotificationVisual/index.js +0 -19
- package/dist/components/Notification/NotificationsContainer/NotificationsContainer.d.ts +0 -11
- package/dist/components/Notification/NotificationsContainer/NotificationsContainer.style.d.ts +0 -3
- package/dist/components/Notification/NotificationsContainer/index.d.ts +0 -2
- package/dist/components/Notification/NotificationsContainer/index.js +0 -19
- package/dist/components/Notification/Snackbar/Snackbar.d.ts +0 -27
- package/dist/components/Notification/Snackbar/Snackbar.style.d.ts +0 -7
- package/dist/components/Notification/Snackbar/index.d.ts +0 -2
- package/dist/components/Notification/Snackbar/index.js +0 -19
- package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.d.ts +0 -36
- package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.style.d.ts +0 -9
- package/dist/components/Notification/subcomponents/CompactNotification/index.d.ts +0 -2
- package/dist/components/Notification/subcomponents/CompactNotification/index.js +0 -19
- package/dist/components/Overlay/Overlay.d.ts +0 -17
- package/dist/components/Overlay/Overlay.style.d.ts +0 -13
- package/dist/components/Overlay/index.d.ts +0 -2
- package/dist/components/Overlay/index.js +0 -19
- package/dist/components/Pagination/Pagination.d.ts +0 -16
- package/dist/components/Pagination/index.d.ts +0 -2
- package/dist/components/Pagination/index.js +0 -19
- package/dist/components/Radio/Radio.d.ts +0 -36
- package/dist/components/Radio/Radio.style.d.ts +0 -8
- package/dist/components/Radio/index.d.ts +0 -2
- package/dist/components/Radio/index.js +0 -19
- package/dist/components/RadioGroup/RadioGroup.d.ts +0 -15
- package/dist/components/RadioGroup/RadioGroupContext.d.ts +0 -8
- package/dist/components/RadioGroup/index.d.ts +0 -2
- package/dist/components/RadioGroup/index.js +0 -19
- package/dist/components/RadioGroup/useRadioGroup.d.ts +0 -6
- package/dist/components/SearchField/SearchField.d.ts +0 -42
- package/dist/components/SearchField/SearchField.style.d.ts +0 -0
- package/dist/components/SearchField/SearchField.style.js +0 -1
- package/dist/components/SearchField/SearchFieldShowcase.d.ts +0 -39
- package/dist/components/SearchField/SearchFieldShowcase.js +0 -55
- package/dist/components/SearchField/index.d.ts +0 -2
- package/dist/components/SearchField/index.js +0 -19
- package/dist/components/Select/Select.d.ts +0 -108
- package/dist/components/Select/Select.style.d.ts +0 -5
- package/dist/components/Select/components/SelectMenu/SelectMenu.d.ts +0 -16
- package/dist/components/Select/components/SelectMenu/SelectMenu.style.d.ts +0 -11
- package/dist/components/Select/components/SelectMenu/index.d.ts +0 -2
- package/dist/components/Select/components/SelectMenu/index.js +0 -19
- package/dist/components/Select/index.d.ts +0 -2
- package/dist/components/Select/index.js +0 -19
- package/dist/components/Slider/Slider.d.ts +0 -21
- package/dist/components/Slider/Slider.style.d.ts +0 -13
- package/dist/components/Slider/components/SliderMark/SliderMark.d.ts +0 -12
- package/dist/components/Slider/components/SliderMark/SliderMark.style.d.ts +0 -16
- package/dist/components/Slider/components/SliderMark/index.d.ts +0 -2
- package/dist/components/Slider/components/SliderMark/index.js +0 -19
- package/dist/components/Slider/components/SliderThumb/SliderThumb.d.ts +0 -11
- package/dist/components/Slider/components/SliderThumb/SliderThumb.style.d.ts +0 -9
- package/dist/components/Slider/components/SliderThumb/index.d.ts +0 -2
- package/dist/components/Slider/components/SliderThumb/index.js +0 -19
- package/dist/components/Slider/components/SliderTrack/SliderTrack.d.ts +0 -11
- package/dist/components/Slider/components/SliderTrack/SliderTrack.style.d.ts +0 -9
- package/dist/components/Slider/components/SliderTrack/index.d.ts +0 -2
- package/dist/components/Slider/components/SliderTrack/index.js +0 -19
- package/dist/components/Slider/index.d.ts +0 -2
- package/dist/components/Slider/index.js +0 -19
- package/dist/components/Switch/Switch.d.ts +0 -11
- package/dist/components/Switch/Switch.style.d.ts +0 -16
- package/dist/components/Switch/index.d.ts +0 -2
- package/dist/components/Switch/index.js +0 -19
- package/dist/components/Table/Table.d.ts +0 -59
- package/dist/components/Table/Table.style.d.ts +0 -5
- package/dist/components/Table/TableRowContext.d.ts +0 -21
- package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.d.ts +0 -9
- package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.style.d.ts +0 -4
- package/dist/components/Table/components/ExtendedColumnItem/index.d.ts +0 -2
- package/dist/components/Table/components/ExtendedColumnItem/index.js +0 -19
- package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.d.ts +0 -13
- package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.style.d.ts +0 -10
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.d.ts +0 -19
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.style.d.ts +0 -3
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/index.d.ts +0 -1
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/index.js +0 -10
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.d.ts +0 -12
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/index.d.ts +0 -1
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/index.js +0 -10
- package/dist/components/Table/components/RenderRowOrNestedRow/index.d.ts +0 -1
- package/dist/components/Table/components/RenderRowOrNestedRow/index.js +0 -10
- package/dist/components/Table/components/TableCell/TableCell.d.ts +0 -19
- package/dist/components/Table/components/TableCell/TableCell.style.d.ts +0 -5
- package/dist/components/Table/components/TableCell/index.d.ts +0 -2
- package/dist/components/Table/components/TableCell/index.js +0 -19
- package/dist/components/Table/components/TableCell/utils.d.ts +0 -2
- package/dist/components/Table/components/TableRow/TableRow.d.ts +0 -8
- package/dist/components/Table/components/TableRow/index.d.ts +0 -2
- package/dist/components/Table/components/TableRow/index.js +0 -19
- package/dist/components/Table/components/TableRowWrapper/TableRowWrapper.d.ts +0 -20
- package/dist/components/Table/components/TableRowWrapper/index.d.ts +0 -2
- package/dist/components/Table/components/TableRowWrapper/index.js +0 -19
- package/dist/components/Table/index.d.ts +0 -3
- package/dist/components/Table/index.js +0 -28
- package/dist/components/Table/types.d.ts +0 -17
- package/dist/components/Table/types.js +0 -3
- package/dist/components/Table/utils/index.d.ts +0 -1
- package/dist/components/Table/utils/index.js +0 -11
- package/dist/components/Table/utils/utils.d.ts +0 -4
- package/dist/components/TextArea/TextArea.d.ts +0 -60
- package/dist/components/TextArea/TextArea.style.d.ts +0 -7
- package/dist/components/TextArea/index.d.ts +0 -2
- package/dist/components/TextArea/index.js +0 -19
- package/dist/components/TextField/TextField.d.ts +0 -65
- package/dist/components/TextField/TextField.style.d.ts +0 -6
- package/dist/components/TextField/components/commons.d.ts +0 -5
- package/dist/components/TextField/index.d.ts +0 -2
- package/dist/components/TextField/index.js +0 -19
- package/dist/components/TextInputBase/TextInputBase.d.ts +0 -51
- package/dist/components/TextInputBase/TextInputBase.style.d.ts +0 -11
- package/dist/components/TextInputBase/config.d.ts +0 -29
- package/dist/components/TextInputBase/index.d.ts +0 -2
- package/dist/components/TextInputBase/index.js +0 -19
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -11
- package/dist/components/ThemeProvider/index.d.ts +0 -2
- package/dist/components/ThemeProvider/index.js +0 -19
- package/dist/components/Toast/Toast.d.ts +0 -21
- package/dist/components/Toast/Toast.style.d.ts +0 -11
- package/dist/components/Toast/index.d.ts +0 -2
- package/dist/components/Toast/index.js +0 -19
- package/dist/components/Tooltip/Tooltip.d.ts +0 -32
- package/dist/components/Tooltip/Tooltip.style.d.ts +0 -8
- package/dist/components/Tooltip/index.d.ts +0 -2
- package/dist/components/Tooltip/index.js +0 -19
- package/dist/components/TopAppBar/TopAppBar.d.ts +0 -4
- package/dist/components/TopAppBar/TopAppBar.style.d.ts +0 -9
- package/dist/components/TopAppBar/TopAppBar.types.d.ts +0 -24
- package/dist/components/TopAppBar/TopAppBar.types.js +0 -3
- package/dist/components/TopAppBar/components/Logo/Logo.style.d.ts +0 -8
- package/dist/components/TopAppBar/components/Logo/Logo.wrapper.d.ts +0 -6
- package/dist/components/TopAppBar/components/Logo/index.d.ts +0 -2
- package/dist/components/TopAppBar/components/Logo/index.js +0 -19
- package/dist/components/TopAppBar/components/Search/Search.d.ts +0 -12
- package/dist/components/TopAppBar/components/Search/Search.style.d.ts +0 -4
- package/dist/components/TopAppBar/components/Search/index.d.ts +0 -2
- package/dist/components/TopAppBar/components/Search/index.js +0 -19
- package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.d.ts +0 -5
- package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.style.d.ts +0 -6
- package/dist/components/TopAppBar/components/SidebarMenuIcon/index.d.ts +0 -2
- package/dist/components/TopAppBar/components/SidebarMenuIcon/index.js +0 -19
- package/dist/components/TopAppBar/components/UserMenu/UserMenu.d.ts +0 -16
- package/dist/components/TopAppBar/components/UserMenu/UserMenu.style.d.ts +0 -6
- package/dist/components/TopAppBar/components/UserMenu/index.d.ts +0 -2
- package/dist/components/TopAppBar/components/UserMenu/index.js +0 -19
- package/dist/components/TopAppBar/components/index.d.ts +0 -6
- package/dist/components/TopAppBar/components/index.js +0 -43
- package/dist/components/TopAppBar/index.d.ts +0 -3
- package/dist/components/TopAppBar/index.js +0 -28
- package/dist/components/TruncatedContent/TruncatedContent.d.ts +0 -11
- package/dist/components/TruncatedContent/TruncatedContent.style.d.ts +0 -5
- package/dist/components/TruncatedContent/index.d.ts +0 -2
- package/dist/components/TruncatedContent/index.js +0 -19
- package/dist/components/Typography/Typography.d.ts +0 -10
- package/dist/components/Typography/Typography.js +0 -42
- package/dist/components/Typography/Typography.style.d.ts +0 -6
- package/dist/components/Typography/Typography.style.js +0 -105
- package/dist/components/Typography/index.d.ts +0 -2
- package/dist/components/Typography/index.js +0 -19
- package/dist/components/storyUtils/Stack/Stack.d.ts +0 -6
- package/dist/components/storyUtils/Stack/index.d.ts +0 -1
- package/dist/components/utils/ClickAwayListener/ClickAwayListener.d.ts +0 -12
- package/dist/components/utils/ClickAwayListener/index.d.ts +0 -1
- package/dist/components/utils/ClickAwayListener/index.js +0 -10
- package/dist/components/utils/DropdownOptions/index.d.ts +0 -6
- package/dist/components/utils/PositionInScreen/PositionInScreen.d.ts +0 -10
- package/dist/components/utils/PositionInScreen/PositionInScreen.style.d.ts +0 -4
- package/dist/components/utils/PositionInScreen/index.d.ts +0 -1
- package/dist/components/utils/PositionInScreen/index.js +0 -10
- package/dist/components/utils/handleSearch.d.ts +0 -11
- package/dist/hooks/useBreakpoints.d.ts +0 -4
- package/dist/hooks/useCheck.d.ts +0 -6
- package/dist/hooks/useCheck.js +0 -31
- package/dist/hooks/useCombinedRefs.d.ts +0 -3
- package/dist/hooks/useEscape.d.ts +0 -2
- package/dist/hooks/useLoading.d.ts +0 -7
- package/dist/hooks/useLocationToGetCurrentMenuItem.d.ts +0 -3
- package/dist/hooks/usePagination.d.ts +0 -15
- package/dist/hooks/useTheme.d.ts +0 -2
- package/dist/hooks/useThemeSwitch.d.ts +0 -9
- package/dist/hooks/useToggle.d.ts +0 -2
- package/dist/hooks/useTypeColorToColorMatch.d.ts +0 -16
- package/dist/test/index.d.ts +0 -1
- package/dist/test/index.js +0 -11
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.js +0 -47
- package/dist/test/utils.d.ts +0 -6
- package/dist/test/utils.js +0 -69
- package/dist/theme/emotion.d.js +0 -3
- package/dist/theme/functions.d.ts +0 -9
- package/dist/theme/globals/borderRadius.d.ts +0 -7
- package/dist/theme/globals/borderWidth.d.ts +0 -7
- package/dist/theme/globals/boxShadow.d.ts +0 -7
- package/dist/theme/globals/colors.d.ts +0 -2
- package/dist/theme/globals/constants/borderRadius.d.ts +0 -43
- package/dist/theme/globals/constants/borderWidth.d.ts +0 -12
- package/dist/theme/globals/constants/boxShadow.d.ts +0 -58
- package/dist/theme/globals/constants/fontFamily.d.ts +0 -7
- package/dist/theme/globals/constants/fontSize.d.ts +0 -44
- package/dist/theme/globals/constants/fontWeight.d.ts +0 -19
- package/dist/theme/globals/constants/letterSpacing.d.ts +0 -19
- package/dist/theme/globals/constants/lineHeight.d.ts +0 -49
- package/dist/theme/globals/constants/opacity.d.ts +0 -29
- package/dist/theme/globals/constants/sizing.d.ts +0 -83
- package/dist/theme/globals/constants/spacing.d.ts +0 -55
- package/dist/theme/globals/constants/textCase.d.ts +0 -11
- package/dist/theme/globals/constants/textDecoration.d.ts +0 -12
- package/dist/theme/globals/elevation.d.ts +0 -8
- package/dist/theme/globals/index.d.ts +0 -12
- package/dist/theme/globals/opacity.d.ts +0 -7
- package/dist/theme/globals/sizing.d.ts +0 -7
- package/dist/theme/globals/spacing.d.ts +0 -7
- package/dist/theme/globals/typography.d.ts +0 -53
- package/dist/theme/index.d.ts +0 -4
- package/dist/theme/overrides.d.ts +0 -3
- package/dist/theme/palette.config.d.ts +0 -45
- package/dist/theme/palette.d.ts +0 -73
- package/dist/theme/states/disabled.d.ts +0 -12
- package/dist/theme/states/focus.d.ts +0 -16
- package/dist/theme/states/hover.d.ts +0 -15
- package/dist/theme/states/index.d.ts +0 -5
- package/dist/theme/states/index.js +0 -19
- package/dist/theme/states/pressed.d.ts +0 -15
- package/dist/theme/states/statesConfig.d.ts +0 -36
- package/dist/theme/states/utils.d.ts +0 -9
- package/dist/theme/tests/const.d.ts +0 -21
- package/dist/theme/tokens/index.d.ts +0 -11
- package/dist/theme/tokens/semantic/backdrop.d.ts +0 -5
- package/dist/theme/tokens/semantic/backgroundColor.d.ts +0 -5
- package/dist/theme/tokens/semantic/borderColor.d.ts +0 -5
- package/dist/theme/tokens/semantic/disabledState.d.ts +0 -5
- package/dist/theme/tokens/semantic/index.d.ts +0 -9
- package/dist/theme/tokens/semantic/palette.d.ts +0 -5
- package/dist/theme/tokens/semantic/tests/constants.d.ts +0 -22
- package/dist/theme/tokens/semantic/tests/constants.js +0 -28
- package/dist/theme/tokens/semantic/textColor.d.ts +0 -5
- package/dist/theme/tokens/semantic/variables/backdrop.d.ts +0 -13
- package/dist/theme/tokens/semantic/variables/backgroundColor.d.ts +0 -46
- package/dist/theme/tokens/semantic/variables/borderColor.d.ts +0 -63
- package/dist/theme/tokens/semantic/variables/disabledState.d.ts +0 -5
- package/dist/theme/tokens/semantic/variables/palette.d.ts +0 -330
- package/dist/theme/tokens/semantic/variables/textColor.d.ts +0 -72
- package/dist/theme/tokens/utils.d.ts +0 -15
- package/dist/theme/types.d.ts +0 -57
- package/dist/theme/types.js +0 -3
- package/dist/theme/utils.d.ts +0 -49
- package/dist/utils/common.d.ts +0 -17
- package/dist/utils/common.js +0 -14
- package/dist/utils/errors.d.ts +0 -6
- package/dist/utils/helpers.d.ts +0 -18
- package/dist/utils/initLocaleFormat.d.ts +0 -2
- package/dist/utils/initLocaleFormat.js +0 -22
- package/dist/utils/size-utils.d.ts +0 -10
- package/dist/utils/storyshots.d.ts +0 -5
- package/dist/utils/storyshots.js +0 -60
- package/dist/utils/themeFunctions.d.ts +0 -34
- package/dist/utils/types.d.ts +0 -10
- package/dist/utils/types.js +0 -3
|
@@ -1,33 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var cardStyle = function cardStyle(_ref) {
|
|
9
|
-
var elevated = _ref.elevated,
|
|
10
|
-
isTransparent = _ref.isTransparent,
|
|
11
|
-
radius = _ref.radius;
|
|
12
|
-
return function (theme) {
|
|
13
|
-
return (
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
/*#__PURE__*/
|
|
17
|
-
(0, _react.css)(elevated && cardElevation(theme, elevated, isTransparent, radius), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:cardStyle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0NhcmQvQ2FyZC5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFVTyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9DYXJkL0NhcmQuc3R5bGUudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MsIFNlcmlhbGl6ZWRTdHlsZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBFbGV2YXRpb24gfSBmcm9tICdpbmRleCc7XG5pbXBvcnQgeyBTcGFjaW5nS2V5IH0gZnJvbSAndGhlbWUvZ2xvYmFscy9zcGFjaW5nJztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi90aGVtZSc7XG5pbXBvcnQgeyBDYXJkUHJvcHMgfSBmcm9tICcuL0NhcmQnO1xuXG5leHBvcnQgY29uc3QgY2FyZFN0eWxlID1cbiAgKHsgZWxldmF0ZWQsIGlzVHJhbnNwYXJlbnQsIHJhZGl1cyB9OiBDYXJkUHJvcHMpID0+XG4gICh0aGVtZTogVGhlbWUpOiBTZXJpYWxpemVkU3R5bGVzID0+XG4gICAgY3NzYFxuICAgICAgJHtlbGV2YXRlZCAmJiBjYXJkRWxldmF0aW9uKHRoZW1lLCBlbGV2YXRlZCwgaXNUcmFuc3BhcmVudCwgcmFkaXVzKX07XG4gICAgYDtcblxuZXhwb3J0IGNvbnN0IGNhcmRFbGV2YXRpb24gPSAoXG4gIHRoZW1lOiBUaGVtZSxcbiAgZWxldmF0ZWQ6IGtleW9mIEVsZXZhdGlvbixcbiAgaXNUcmFuc3BhcmVudD86IGJvb2xlYW4gfCB1bmRlZmluZWQsXG4gIHJhZGl1cz86IFNwYWNpbmdLZXkgfCB1bmRlZmluZWRcbik6IFNlcmlhbGl6ZWRTdHlsZXMgPT4gY3NzYFxuICBib3gtc2hhZG93OiAke3RoZW1lLmdsb2JhbHMuZWxldmF0aW9uW2VsZXZhdGVkXX07XG4gIGJhY2tncm91bmQ6ICR7aXNUcmFuc3BhcmVudCA/ICd0cmFuc3BhcmVudCcgOiB0aGVtZS5nbG9iYWxzLmNvbG9ycy53aGl0ZX07XG4gIGJvcmRlci1yYWRpdXM6ICR7cmFkaXVzID8gdGhlbWUuZ2xvYmFscy5zcGFjaW5nLmdldChyYWRpdXMpIDogMH07XG5gO1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:cardStyle;")
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
exports.cardStyle = cardStyle;
|
|
23
|
-
|
|
24
|
-
var cardElevation = function cardElevation(theme, elevated, isTransparent, radius) {
|
|
25
|
-
return (
|
|
26
|
-
/*#__PURE__*/
|
|
27
|
-
|
|
28
|
-
/*#__PURE__*/
|
|
29
|
-
(0, _react.css)("box-shadow:", theme.globals.elevation[elevated], ";background:", isTransparent ? 'transparent' : theme.globals.colors.white, ";border-radius:", radius ? theme.globals.spacing.get(radius) : 0, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:cardElevation;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0NhcmQvQ2FyZC5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtQjBCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0NhcmQvQ2FyZC5zdHlsZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IEVsZXZhdGlvbiB9IGZyb20gJ2luZGV4JztcbmltcG9ydCB7IFNwYWNpbmdLZXkgfSBmcm9tICd0aGVtZS9nbG9iYWxzL3NwYWNpbmcnO1xuXG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJy4uLy4uL3RoZW1lJztcbmltcG9ydCB7IENhcmRQcm9wcyB9IGZyb20gJy4vQ2FyZCc7XG5cbmV4cG9ydCBjb25zdCBjYXJkU3R5bGUgPVxuICAoeyBlbGV2YXRlZCwgaXNUcmFuc3BhcmVudCwgcmFkaXVzIH06IENhcmRQcm9wcykgPT5cbiAgKHRoZW1lOiBUaGVtZSk6IFNlcmlhbGl6ZWRTdHlsZXMgPT5cbiAgICBjc3NgXG4gICAgICAke2VsZXZhdGVkICYmIGNhcmRFbGV2YXRpb24odGhlbWUsIGVsZXZhdGVkLCBpc1RyYW5zcGFyZW50LCByYWRpdXMpfTtcbiAgICBgO1xuXG5leHBvcnQgY29uc3QgY2FyZEVsZXZhdGlvbiA9IChcbiAgdGhlbWU6IFRoZW1lLFxuICBlbGV2YXRlZDoga2V5b2YgRWxldmF0aW9uLFxuICBpc1RyYW5zcGFyZW50PzogYm9vbGVhbiB8IHVuZGVmaW5lZCxcbiAgcmFkaXVzPzogU3BhY2luZ0tleSB8IHVuZGVmaW5lZFxuKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gIGJveC1zaGFkb3c6ICR7dGhlbWUuZ2xvYmFscy5lbGV2YXRpb25bZWxldmF0ZWRdfTtcbiAgYmFja2dyb3VuZDogJHtpc1RyYW5zcGFyZW50ID8gJ3RyYW5zcGFyZW50JyA6IHRoZW1lLmdsb2JhbHMuY29sb3JzLndoaXRlfTtcbiAgYm9yZGVyLXJhZGl1czogJHtyYWRpdXMgPyB0aGVtZS5nbG9iYWxzLnNwYWNpbmcuZ2V0KHJhZGl1cykgOiAwfTtcbmA7XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:cardElevation;")
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
exports.cardElevation = cardElevation;
|
|
1
|
+
import{css as o}from"@emotion/react";const a=({elevated:a,isTransparent:e,radius:s})=>t=>o`
|
|
2
|
+
${a&&r(t,a,e,s)};
|
|
3
|
+
`,r=(a,r,e,s)=>o`
|
|
4
|
+
box-shadow: ${a.globals.elevation[r]};
|
|
5
|
+
background: ${e?"transparent":a.globals.colors.white};
|
|
6
|
+
border-radius: ${s?a.globals.spacing.get(s):0};
|
|
7
|
+
`;export{r as cardElevation,a as cardStyle};
|
|
@@ -1,148 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports["default"] = void 0;
|
|
5
|
-
|
|
6
|
-
var _useTheme = _interopRequireDefault(require("../../../hooks/useTheme"));
|
|
7
|
-
|
|
8
|
-
var _max = _interopRequireDefault(require("lodash/max"));
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _recharts = require("recharts");
|
|
13
|
-
|
|
14
|
-
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
15
|
-
|
|
16
|
-
var _CustomLabel = _interopRequireDefault(require("./components/CustomLabel"));
|
|
17
|
-
|
|
18
|
-
var _CustomTooltip = _interopRequireDefault(require("./components/CustomTooltip"));
|
|
19
|
-
|
|
20
|
-
var _CustomTooltipContent = _interopRequireDefault(require("./components/CustomTooltipContent"));
|
|
21
|
-
|
|
22
|
-
var _utils = require("./utils");
|
|
23
|
-
|
|
24
|
-
var _react2 = require("@emotion/react");
|
|
25
|
-
|
|
26
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
-
|
|
28
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
|
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
-
|
|
32
|
-
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); }
|
|
33
|
-
|
|
34
|
-
var multiplyFactor = 9.5;
|
|
35
|
-
var yAxisWidthDefault = 160;
|
|
36
|
-
|
|
37
|
-
var CustomYAxisTick = function CustomYAxisTick(_ref) {
|
|
38
|
-
var colors = _ref.colors,
|
|
39
|
-
y = _ref.y,
|
|
40
|
-
width = _ref.width,
|
|
41
|
-
payload = _ref.payload;
|
|
42
|
-
var theme = (0, _useTheme["default"])();
|
|
43
|
-
var fill = typeof payload.value === 'string' && colors[payload.value] ? colors[payload.value] : theme.globals.colors.black;
|
|
44
|
-
return (0, _react2.jsx)("g", null, (0, _react2.jsx)("foreignObject", {
|
|
45
|
-
y: y - 10,
|
|
46
|
-
width: width,
|
|
47
|
-
height: "20",
|
|
48
|
-
style: {
|
|
49
|
-
overflow: 'visible'
|
|
50
|
-
}
|
|
51
|
-
}, (0, _react2.jsx)(_CustomTooltip["default"], {
|
|
52
|
-
content: payload.value,
|
|
53
|
-
fill: fill
|
|
54
|
-
})));
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
var WrappedChart = (0, _Wrapper["default"])(_recharts.BarChart);
|
|
58
|
-
|
|
59
|
-
var BarChart = function BarChart(_ref2) {
|
|
60
|
-
var data = _ref2.data;
|
|
61
|
-
var theme = (0, _useTheme["default"])();
|
|
62
|
-
var barColors = (0, _react.useMemo)(function () {
|
|
63
|
-
return (0, _utils.getBarColors)(data, theme.globals.colors.flat.darkBlue[100]);
|
|
64
|
-
}, [data, theme.globals.colors.flat.darkBlue]);
|
|
65
|
-
var findMaxInData = (0, _react.useCallback)(function (operator) {
|
|
66
|
-
return (0, _max["default"])(data.map(operator));
|
|
67
|
-
}, [data]);
|
|
68
|
-
var setColoringOptions = (0, _react.useCallback)(function (op) {
|
|
69
|
-
return (0, _utils.getColoringOptions)(data, op);
|
|
70
|
-
}, [data]);
|
|
71
|
-
var maxLabelLength = findMaxInData(function (obj) {
|
|
72
|
-
return obj.name.length;
|
|
73
|
-
});
|
|
74
|
-
var maxValue = findMaxInData(function (obj) {
|
|
75
|
-
return obj.value;
|
|
76
|
-
});
|
|
77
|
-
var yAxisWidth = maxLabelLength && maxLabelLength * multiplyFactor < yAxisWidthDefault ? maxLabelLength * multiplyFactor : yAxisWidthDefault;
|
|
78
|
-
|
|
79
|
-
var _getValues = (0, _utils.getValues)(maxValue),
|
|
80
|
-
maxDomainValue = _getValues.maxDomainValue,
|
|
81
|
-
tickCount = _getValues.tickCount;
|
|
82
|
-
|
|
83
|
-
var labelColoringOptions = setColoringOptions(function () {
|
|
84
|
-
return false;
|
|
85
|
-
});
|
|
86
|
-
var tickColoringOptions = setColoringOptions(function (obj) {
|
|
87
|
-
return obj.name;
|
|
88
|
-
});
|
|
89
|
-
return (0, _react2.jsx)(WrappedChart, {
|
|
90
|
-
data: data,
|
|
91
|
-
margin: {
|
|
92
|
-
top: 5,
|
|
93
|
-
right: 60,
|
|
94
|
-
left: 20,
|
|
95
|
-
bottom: 15
|
|
96
|
-
},
|
|
97
|
-
layout: "vertical",
|
|
98
|
-
barCategoryGap: "20%",
|
|
99
|
-
maxBarSize: 32
|
|
100
|
-
}, (0, _react2.jsx)(_recharts.CartesianGrid, {
|
|
101
|
-
offset: {
|
|
102
|
-
left: 0
|
|
103
|
-
},
|
|
104
|
-
horizontal: false
|
|
105
|
-
}), (0, _react2.jsx)(_recharts.XAxis, {
|
|
106
|
-
type: "number",
|
|
107
|
-
axisLine: false,
|
|
108
|
-
tickLine: false,
|
|
109
|
-
tickMargin: 24,
|
|
110
|
-
tickCount: tickCount,
|
|
111
|
-
domain: [0, maxDomainValue],
|
|
112
|
-
tickFormatter: function tickFormatter(tick) {
|
|
113
|
-
return (0, _utils.customTickFormatter)(tick, maxDomainValue);
|
|
114
|
-
}
|
|
115
|
-
}), (0, _react2.jsx)(_recharts.Tooltip, {
|
|
116
|
-
cursor: {
|
|
117
|
-
fill: theme.utils.getColor('lightGrey', 50)
|
|
118
|
-
},
|
|
119
|
-
content: (0, _react2.jsx)(_CustomTooltipContent["default"], null)
|
|
120
|
-
}), (0, _react2.jsx)(_recharts.Bar, {
|
|
121
|
-
dataKey: "value"
|
|
122
|
-
}, (0, _react2.jsx)(_recharts.LabelList, {
|
|
123
|
-
dataKey: "barLabel",
|
|
124
|
-
position: "right",
|
|
125
|
-
content: (0, _react2.jsx)(_CustomLabel["default"], {
|
|
126
|
-
colors: labelColoringOptions
|
|
127
|
-
})
|
|
128
|
-
}), data.map(function (entry, index) {
|
|
129
|
-
return (0, _react2.jsx)(_recharts.Cell, {
|
|
130
|
-
key: "cell-" + entry.name + "-" + entry.value,
|
|
131
|
-
fill: barColors[index]
|
|
132
|
-
});
|
|
133
|
-
}), ' '), (0, _react2.jsx)(_recharts.YAxis, {
|
|
134
|
-
type: "category",
|
|
135
|
-
dataKey: "name",
|
|
136
|
-
tick: function tick(props) {
|
|
137
|
-
return (0, _react2.jsx)(CustomYAxisTick, _extends({}, props, {
|
|
138
|
-
colors: tickColoringOptions
|
|
139
|
-
}));
|
|
140
|
-
},
|
|
141
|
-
width: yAxisWidth,
|
|
142
|
-
axisLine: false,
|
|
143
|
-
tickLine: false
|
|
144
|
-
}));
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
var _default = BarChart;
|
|
148
|
-
exports["default"] = _default;
|
|
1
|
+
import{jsxs as o,jsx as t}from"@emotion/react/jsx-runtime";import e from"../../../hooks/useTheme.js";import i from"lodash/max.js";import{useMemo as a,useCallback as r}from"react";import{CartesianGrid as l,XAxis as s,Tooltip as n,Bar as m,LabelList as c,Cell as d,YAxis as p,BarChart as u}from"recharts";import f from"../Wrapper.js";import v from"./components/CustomLabel/CustomLabel.js";import g from"./components/CustomTooltip/CustomTooltip.js";import h from"./components/CustomTooltipContent/CustomTooltipContent.js";import{getBarColors as b,getColoringOptions as y,getValues as j,customTickFormatter as C}from"./utils.js";const k=({colors:o,y:i,width:a,payload:r})=>{const l=e(),s="string"==typeof r.value&&o[r.value]?o[r.value]:l.globals.colors.black;return t("g",{children:t("foreignObject",Object.assign({y:i-10,width:a,height:"20",style:{overflow:"visible"}},{children:t(g,{content:r.value,fill:s},void 0)}),void 0)},void 0)},x=f(u),L=({data:u})=>{const f=e(),g=a((()=>b(u,f.globals.colors.flat.darkBlue[100])),[u,f.globals.colors.flat.darkBlue]),L=r((o=>i(u.map(o))),[u]),O=r((o=>y(u,o)),[u]),T=L((o=>o.name.length)),w=L((o=>o.value)),B=T&&9.5*T<160?9.5*T:160,{maxDomainValue:K,tickCount:z}=j(w),G=O((()=>!1)),$=O((o=>o.name));return o(x,Object.assign({data:u,margin:{top:5,right:60,left:20,bottom:15},layout:"vertical",barCategoryGap:"20%",maxBarSize:32},{children:[t(l,{offset:{left:0},horizontal:!1},void 0),t(s,{type:"number",axisLine:!1,tickLine:!1,tickMargin:24,tickCount:z,domain:[0,K],tickFormatter:o=>C(o,K)},void 0),t(n,{cursor:{fill:f.utils.getColor("lightGrey",50)},content:t(h,{},void 0)},void 0),o(m,Object.assign({dataKey:"value"},{children:[t(c,{dataKey:"barLabel",position:"right",content:t(v,{colors:G},void 0)},void 0),u.map(((o,e)=>t(d,{fill:g[e]},`cell-${o.name}-${o.value}`)))," "]}),void 0),t(p,{type:"category",dataKey:"name",tick:o=>t(k,Object.assign({},o,{colors:$}),void 0),width:B,axisLine:!1,tickLine:!1},void 0)]}),void 0)};export{L as default};
|
|
@@ -1,40 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports["default"] = void 0;
|
|
5
|
-
|
|
6
|
-
var _useTheme = _interopRequireDefault(require("../../../../../hooks/useTheme"));
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _react2 = require("@emotion/react");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
var xValueBase = 16;
|
|
15
|
-
var divisor = 2;
|
|
16
|
-
|
|
17
|
-
var CustomLabel = function CustomLabel(_ref) {
|
|
18
|
-
var colors = _ref.colors,
|
|
19
|
-
value = _ref.value,
|
|
20
|
-
x = _ref.x,
|
|
21
|
-
y = _ref.y,
|
|
22
|
-
width = _ref.width,
|
|
23
|
-
height = _ref.height,
|
|
24
|
-
index = _ref.index;
|
|
25
|
-
var theme = (0, _useTheme["default"])();
|
|
26
|
-
var xValue = x && width ? x + width + xValueBase : xValueBase;
|
|
27
|
-
var yValue = y && height ? y + height / divisor : 0;
|
|
28
|
-
var fill = index && colors[index] ? colors[index] : theme.globals.colors.black;
|
|
29
|
-
return (0, _react2.jsx)("text", {
|
|
30
|
-
x: xValue,
|
|
31
|
-
y: yValue
|
|
32
|
-
}, (0, _react2.jsx)("tspan", {
|
|
33
|
-
dy: "0.335em",
|
|
34
|
-
fontWeight: "bold",
|
|
35
|
-
fill: fill
|
|
36
|
-
}, value));
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
var _default = CustomLabel;
|
|
40
|
-
exports["default"] = _default;
|
|
1
|
+
import{jsx as o}from"@emotion/react/jsx-runtime";import e from"../../../../../hooks/useTheme.js";const t=({colors:t,value:i,x:s,y:r,width:l,height:n,index:c})=>{const a=e(),d=s&&l?s+l+16:16,h=r&&n?r+n/2:0,m=c&&t[c]?t[c]:a.globals.colors.black;return o("text",Object.assign({x:d,y:h},{children:o("tspan",Object.assign({dy:"0.335em",fontWeight:"bold",fill:m},{children:i}),void 0)}),void 0)};export{t as default};
|
|
@@ -1,51 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports["default"] = void 0;
|
|
5
|
-
|
|
6
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
|
-
var _CustomTooltip = require("./CustomTooltip.style");
|
|
9
|
-
|
|
10
|
-
var _react2 = require("@emotion/react");
|
|
11
|
-
|
|
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); }
|
|
13
|
-
|
|
14
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
|
|
16
|
-
var CustomTooltip = function CustomTooltip(_ref) {
|
|
17
|
-
var content = _ref.content,
|
|
18
|
-
fill = _ref.fill;
|
|
19
|
-
var wrapperRef = (0, _react.useRef)(null);
|
|
20
|
-
|
|
21
|
-
var _useState = (0, _react.useState)(false),
|
|
22
|
-
isActive = _useState[0],
|
|
23
|
-
setIsActive = _useState[1];
|
|
24
|
-
|
|
25
|
-
var _useState2 = (0, _react.useState)(false),
|
|
26
|
-
isTruncated = _useState2[0],
|
|
27
|
-
setIsTrancated = _useState2[1];
|
|
28
|
-
|
|
29
|
-
(0, _react.useEffect)(function () {
|
|
30
|
-
setIsTrancated(wrapperRef.current ? wrapperRef.current.scrollWidth > wrapperRef.current.clientWidth : false);
|
|
31
|
-
}, [setIsTrancated]);
|
|
32
|
-
var setActiveOnCallback = (0, _react.useCallback)(function () {
|
|
33
|
-
setIsActive(true);
|
|
34
|
-
}, [setIsActive]);
|
|
35
|
-
var setActiveOffCallback = (0, _react.useCallback)(function () {
|
|
36
|
-
setIsActive(false);
|
|
37
|
-
}, [setIsActive]);
|
|
38
|
-
return (0, _react2.jsx)("div", {
|
|
39
|
-
ref: wrapperRef,
|
|
40
|
-
onMouseEnter: setActiveOnCallback,
|
|
41
|
-
onMouseLeave: setActiveOffCallback,
|
|
42
|
-
css: (0, _CustomTooltip.tickStyle)(fill)
|
|
43
|
-
}, content, isActive && isTruncated && (0, _react2.jsx)("div", null, (0, _react2.jsx)("div", {
|
|
44
|
-
css: (0, _CustomTooltip.tooltipStyle)()
|
|
45
|
-
}, content), (0, _react2.jsx)("div", {
|
|
46
|
-
css: (0, _CustomTooltip.tooltipArrowStyle)()
|
|
47
|
-
})));
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
var _default = CustomTooltip;
|
|
51
|
-
exports["default"] = _default;
|
|
1
|
+
import{jsxs as t,jsx as o}from"@emotion/react/jsx-runtime";import{useRef as e,useState as r,useEffect as i,useCallback as n}from"react";import{tickStyle as s,tooltipStyle as c,tooltipArrowStyle as d}from"./CustomTooltip.style.js";const l=({content:l,fill:u})=>{const m=e(null),[v,a]=r(!1),[f,h]=r(!1);i((()=>{h(!!m.current&&m.current.scrollWidth>m.current.clientWidth)}),[h]);const p=n((()=>{a(!0)}),[a]),j=n((()=>{a(!1)}),[a]);return t("div",Object.assign({ref:m,onMouseEnter:p,onMouseLeave:j,css:s(u)},{children:[l,v&&f&&t("div",{children:[o("div",Object.assign({css:c()},{children:l}),void 0),o("div",{css:d()},void 0)]},void 0)]}),void 0)};export{l as default};
|
|
@@ -1,47 +1,28 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
(0, _react.css)("display:block;position:fixed;top:-33%;left:106%;color:", theme.globals.colors.white, ";background-color:", theme.utils.getColor('darkGrey', 750), ";opacity:90%;border-radius:", theme.globals.spacing.get('3'), ";padding:", theme.globals.spacing.get('4'), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:tooltipStyle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0NoYXJ0L0JhckNoYXJ0L2NvbXBvbmVudHMvQ3VzdG9tVG9vbHRpcC9DdXN0b21Ub29sdGlwLnN0eWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1CTyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9DaGFydC9CYXJDaGFydC9jb21wb25lbnRzL0N1c3RvbVRvb2x0aXAvQ3VzdG9tVG9vbHRpcC5zdHlsZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAndGhlbWUnO1xuaW1wb3J0IHsgcmVtIH0gZnJvbSAndGhlbWUvdXRpbHMnO1xuXG5leHBvcnQgY29uc3QgdGlja1N0eWxlID1cbiAgKGZpbGw6IHN0cmluZykgPT5cbiAgKCk6IFNlcmlhbGl6ZWRTdHlsZXMgPT5cbiAgICBjc3NgXG4gICAgICB3aWR0aDogaW5oZXJpdDtcbiAgICAgIGhlaWdodDogaW5oZXJpdDtcbiAgICAgIGNvbG9yOiAke2ZpbGx9O1xuICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgICAgIG92ZXJmbG93OiBoaWRkZW47XG4gICAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbiAgICBgO1xuXG5leHBvcnQgY29uc3QgdG9vbHRpcFN0eWxlID1cbiAgKCkgPT5cbiAgKHRoZW1lOiBUaGVtZSk6IFNlcmlhbGl6ZWRTdHlsZXMgPT5cbiAgICBjc3NgXG4gICAgICBkaXNwbGF5OiBibG9jaztcbiAgICAgIHBvc2l0aW9uOiBmaXhlZDtcbiAgICAgIHRvcDogLTMzJTtcbiAgICAgIGxlZnQ6IDEwNiU7XG4gICAgICBjb2xvcjogJHt0aGVtZS5nbG9iYWxzLmNvbG9ycy53aGl0ZX07XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLnV0aWxzLmdldENvbG9yKCdkYXJrR3JleScsIDc1MCl9O1xuICAgICAgb3BhY2l0eTogOTAlO1xuICAgICAgYm9yZGVyLXJhZGl1czogJHt0aGVtZS5nbG9iYWxzLnNwYWNpbmcuZ2V0KCczJyl9O1xuICAgICAgcGFkZGluZzogJHt0aGVtZS5nbG9iYWxzLnNwYWNpbmcuZ2V0KCc0Jyl9O1xuICAgIGA7XG5cbmV4cG9ydCBjb25zdCB0b29sdGlwQXJyb3dTdHlsZSA9XG4gICgpID0+XG4gICh0aGVtZTogVGhlbWUpOiBTZXJpYWxpemVkU3R5bGVzID0+XG4gICAgY3NzYFxuICAgICAgY29udGVudDogJyc7XG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICBib3JkZXItc3R5bGU6IHNvbGlkO1xuICAgICAgbWFyZ2luLXRvcDogJHtyZW0oLTUpfTtcbiAgICAgIGJvcmRlci13aWR0aDogJHtyZW0oNSl9O1xuICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCAke3RoZW1lLnV0aWxzLmdldENvbG9yKCdkYXJrR3JleScsIDc1MCl9IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50O1xuICAgICAgdG9wOiA1MCU7XG4gICAgICBsZWZ0OiAxMDAlO1xuICAgICAgb3BhY2l0eTogOTAlO1xuICAgIGA7XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:tooltipStyle;")
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
exports.tooltipStyle = tooltipStyle;
|
|
35
|
-
|
|
36
|
-
var tooltipArrowStyle = function tooltipArrowStyle() {
|
|
37
|
-
return function (theme) {
|
|
38
|
-
return (
|
|
39
|
-
/*#__PURE__*/
|
|
40
|
-
|
|
41
|
-
/*#__PURE__*/
|
|
42
|
-
(0, _react.css)("content:'';position:absolute;border-style:solid;margin-top:", (0, _utils.rem)(-5), ";border-width:", (0, _utils.rem)(5), ";border-color:transparent ", theme.utils.getColor('darkGrey', 750), " transparent transparent;top:50%;left:100%;opacity:90%;" + (process.env.NODE_ENV === "production" ? "" : ";label:tooltipArrowStyle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0NoYXJ0L0JhckNoYXJ0L2NvbXBvbmVudHMvQ3VzdG9tVG9vbHRpcC9DdXN0b21Ub29sdGlwLnN0eWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtDTyIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9DaGFydC9CYXJDaGFydC9jb21wb25lbnRzL0N1c3RvbVRvb2x0aXAvQ3VzdG9tVG9vbHRpcC5zdHlsZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAndGhlbWUnO1xuaW1wb3J0IHsgcmVtIH0gZnJvbSAndGhlbWUvdXRpbHMnO1xuXG5leHBvcnQgY29uc3QgdGlja1N0eWxlID1cbiAgKGZpbGw6IHN0cmluZykgPT5cbiAgKCk6IFNlcmlhbGl6ZWRTdHlsZXMgPT5cbiAgICBjc3NgXG4gICAgICB3aWR0aDogaW5oZXJpdDtcbiAgICAgIGhlaWdodDogaW5oZXJpdDtcbiAgICAgIGNvbG9yOiAke2ZpbGx9O1xuICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgICAgIG92ZXJmbG93OiBoaWRkZW47XG4gICAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbiAgICBgO1xuXG5leHBvcnQgY29uc3QgdG9vbHRpcFN0eWxlID1cbiAgKCkgPT5cbiAgKHRoZW1lOiBUaGVtZSk6IFNlcmlhbGl6ZWRTdHlsZXMgPT5cbiAgICBjc3NgXG4gICAgICBkaXNwbGF5OiBibG9jaztcbiAgICAgIHBvc2l0aW9uOiBmaXhlZDtcbiAgICAgIHRvcDogLTMzJTtcbiAgICAgIGxlZnQ6IDEwNiU7XG4gICAgICBjb2xvcjogJHt0aGVtZS5nbG9iYWxzLmNvbG9ycy53aGl0ZX07XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLnV0aWxzLmdldENvbG9yKCdkYXJrR3JleScsIDc1MCl9O1xuICAgICAgb3BhY2l0eTogOTAlO1xuICAgICAgYm9yZGVyLXJhZGl1czogJHt0aGVtZS5nbG9iYWxzLnNwYWNpbmcuZ2V0KCczJyl9O1xuICAgICAgcGFkZGluZzogJHt0aGVtZS5nbG9iYWxzLnNwYWNpbmcuZ2V0KCc0Jyl9O1xuICAgIGA7XG5cbmV4cG9ydCBjb25zdCB0b29sdGlwQXJyb3dTdHlsZSA9XG4gICgpID0+XG4gICh0aGVtZTogVGhlbWUpOiBTZXJpYWxpemVkU3R5bGVzID0+XG4gICAgY3NzYFxuICAgICAgY29udGVudDogJyc7XG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICBib3JkZXItc3R5bGU6IHNvbGlkO1xuICAgICAgbWFyZ2luLXRvcDogJHtyZW0oLTUpfTtcbiAgICAgIGJvcmRlci13aWR0aDogJHtyZW0oNSl9O1xuICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCAke3RoZW1lLnV0aWxzLmdldENvbG9yKCdkYXJrR3JleScsIDc1MCl9IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50O1xuICAgICAgdG9wOiA1MCU7XG4gICAgICBsZWZ0OiAxMDAlO1xuICAgICAgb3BhY2l0eTogOTAlO1xuICAgIGA7XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:tooltipArrowStyle;")
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
exports.tooltipArrowStyle = tooltipArrowStyle;
|
|
1
|
+
import{css as o}from"@emotion/react";import{rem as t}from"../../../../../theme/utils.js";const r=t=>()=>o`
|
|
2
|
+
width: inherit;
|
|
3
|
+
height: inherit;
|
|
4
|
+
color: ${t};
|
|
5
|
+
white-space: nowrap;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
text-overflow: ellipsis;
|
|
8
|
+
`,e=()=>t=>o`
|
|
9
|
+
display: block;
|
|
10
|
+
position: fixed;
|
|
11
|
+
top: -33%;
|
|
12
|
+
left: 106%;
|
|
13
|
+
color: ${t.globals.colors.white};
|
|
14
|
+
background-color: ${t.utils.getColor("darkGrey",750)};
|
|
15
|
+
opacity: 90%;
|
|
16
|
+
border-radius: ${t.globals.spacing.get("3")};
|
|
17
|
+
padding: ${t.globals.spacing.get("4")};
|
|
18
|
+
`,i=()=>r=>o`
|
|
19
|
+
content: '';
|
|
20
|
+
position: absolute;
|
|
21
|
+
border-style: solid;
|
|
22
|
+
margin-top: ${t(-5)};
|
|
23
|
+
border-width: ${t(5)};
|
|
24
|
+
border-color: transparent ${r.utils.getColor("darkGrey",750)} transparent transparent;
|
|
25
|
+
top: 50%;
|
|
26
|
+
left: 100%;
|
|
27
|
+
opacity: 90%;
|
|
28
|
+
`;export{r as tickStyle,i as tooltipArrowStyle,e as tooltipStyle};
|
package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.js
CHANGED
|
@@ -1,36 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports["default"] = void 0;
|
|
5
|
-
|
|
6
|
-
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
|
-
var _CustomTooltipContent = require("./CustomTooltipContent.style");
|
|
9
|
-
|
|
10
|
-
var _react2 = require("@emotion/react");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
var CustomTooltip = function CustomTooltip(_ref) {
|
|
15
|
-
var _payload$, _payload$$payload, _payload$$payload$opt;
|
|
16
|
-
|
|
17
|
-
var payload = _ref.payload;
|
|
18
|
-
var options = payload && ((_payload$ = payload[0]) == null ? void 0 : (_payload$$payload = _payload$.payload) == null ? void 0 : (_payload$$payload$opt = _payload$$payload.options) == null ? void 0 : _payload$$payload$opt.hoverInfo);
|
|
19
|
-
return options ? (0, _react2.jsx)("div", {
|
|
20
|
-
className: "custom-tooltip",
|
|
21
|
-
css: (0, _CustomTooltipContent.tooltipStyle)()
|
|
22
|
-
}, (0, _react2.jsx)("ul", {
|
|
23
|
-
css: (0, _CustomTooltipContent.tooltipUlStyle)()
|
|
24
|
-
}, options.map(function (_ref2) {
|
|
25
|
-
var name = _ref2.name,
|
|
26
|
-
value = _ref2.value,
|
|
27
|
-
percentage = _ref2.percentage;
|
|
28
|
-
return (0, _react2.jsx)("li", {
|
|
29
|
-
key: "" + name + value,
|
|
30
|
-
css: (0, _CustomTooltipContent.tooltipLiStyle)()
|
|
31
|
-
}, (0, _react2.jsx)("div", null, name), (0, _react2.jsx)("div", null, (0, _react2.jsx)("span", null, (0, _react2.jsx)("b", null, value)), percentage && (0, _react2.jsx)("span", null, "(", percentage, ")")));
|
|
32
|
-
}))) : null;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
var _default = CustomTooltip;
|
|
36
|
-
exports["default"] = _default;
|
|
1
|
+
import{jsx as i,jsxs as o}from"@emotion/react/jsx-runtime";import{tooltipStyle as n,tooltipUlStyle as d,tooltipLiStyle as e}from"./CustomTooltipContent.style.js";const l=({payload:l})=>{var s,t,c;const r=l&&(null===(c=null===(t=null===(s=l[0])||void 0===s?void 0:s.payload)||void 0===t?void 0:t.options)||void 0===c?void 0:c.hoverInfo);return r?i("div",Object.assign({className:"custom-tooltip",css:n()},{children:i("ul",Object.assign({css:d()},{children:r.map((({name:n,value:d,percentage:l})=>o("li",Object.assign({css:e()},{children:[i("div",{children:n},void 0),o("div",{children:[i("span",{children:i("b",{children:d},void 0)},void 0),l&&o("span",{children:["(",l,")"]},void 0)]},void 0)]}),`${n}${d}`)))}),void 0)}),void 0):null};export{l as default};
|
package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.style.js
CHANGED
|
@@ -1,71 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.tooltipLiStyle = exports.tooltipUlStyle = exports.tooltipHrStyle = exports.tooltipStyle = void 0;
|
|
5
|
-
|
|
6
|
-
var _utils = require("../../../../../theme/utils");
|
|
7
|
-
|
|
8
|
-
var tooltipStyle = function tooltipStyle() {
|
|
9
|
-
return function (theme) {
|
|
10
|
-
return {
|
|
11
|
-
fontSize: theme.globals.typography.fontSizes.get('3'),
|
|
12
|
-
padding: theme.globals.spacing.get('4') + " " + theme.globals.spacing.get('6'),
|
|
13
|
-
margin: theme.globals.spacing.get('4'),
|
|
14
|
-
color: theme.globals.colors.white,
|
|
15
|
-
background: theme.utils.getColor('darkGrey', 750),
|
|
16
|
-
opacity: '90%',
|
|
17
|
-
borderRadius: theme.globals.spacing.get('3'),
|
|
18
|
-
minWidth: (0, _utils.rem)(200),
|
|
19
|
-
whiteSpace: 'nowrap'
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
exports.tooltipStyle = tooltipStyle;
|
|
25
|
-
|
|
26
|
-
var tooltipHrStyle = function tooltipHrStyle() {
|
|
27
|
-
return function (theme) {
|
|
28
|
-
return {
|
|
29
|
-
margin: theme.globals.spacing.get('6') + " 0px",
|
|
30
|
-
height: '1px',
|
|
31
|
-
borderWidth: 0,
|
|
32
|
-
backgroundColor: theme.globals.colors.white,
|
|
33
|
-
opacity: '10%'
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
exports.tooltipHrStyle = tooltipHrStyle;
|
|
39
|
-
|
|
40
|
-
var tooltipUlStyle = function tooltipUlStyle() {
|
|
41
|
-
return function () {
|
|
42
|
-
return {
|
|
43
|
-
padding: '0px',
|
|
44
|
-
margin: '0px'
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
exports.tooltipUlStyle = tooltipUlStyle;
|
|
50
|
-
|
|
51
|
-
var tooltipLiStyle = function tooltipLiStyle() {
|
|
52
|
-
return function (theme) {
|
|
53
|
-
return {
|
|
54
|
-
listStyleType: 'none',
|
|
55
|
-
color: theme.globals.colors.white,
|
|
56
|
-
width: '100%',
|
|
57
|
-
display: 'flex',
|
|
58
|
-
justifyContent: 'space-between',
|
|
59
|
-
height: theme.globals.spacing.get('6'),
|
|
60
|
-
padding: theme.globals.spacing.get('4') + " 0px",
|
|
61
|
-
'div:last-child': {
|
|
62
|
-
marginLeft: theme.globals.spacing.get('6'),
|
|
63
|
-
span: {
|
|
64
|
-
marginLeft: theme.globals.spacing.get('3')
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
exports.tooltipLiStyle = tooltipLiStyle;
|
|
1
|
+
import{rem as g}from"../../../../../theme/utils.js";const a=()=>a=>({fontSize:a.globals.typography.fontSizes.get("3"),padding:`${a.globals.spacing.get("4")} ${a.globals.spacing.get("6")}`,margin:a.globals.spacing.get("4"),color:a.globals.colors.white,background:a.utils.getColor("darkGrey",750),opacity:"90%",borderRadius:a.globals.spacing.get("3"),minWidth:g(200),whiteSpace:"nowrap"}),l=()=>()=>({padding:"0px",margin:"0px"}),t=()=>g=>({listStyleType:"none",color:g.globals.colors.white,width:"100%",display:"flex",justifyContent:"space-between",height:g.globals.spacing.get("6"),padding:`${g.globals.spacing.get("4")} 0px`,"div:last-child":{marginLeft:g.globals.spacing.get("6"),span:{marginLeft:g.globals.spacing.get("3")}}});export{t as tooltipLiStyle,a as tooltipStyle,l as tooltipUlStyle};
|
|
@@ -1,87 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.getColoringOptions = exports.getBarColors = exports.customTickFormatter = exports.getValues = void 0;
|
|
5
|
-
|
|
6
|
-
var _polished = require("polished");
|
|
7
|
-
|
|
8
|
-
var incrementFactor = 0.05;
|
|
9
|
-
var lightenFactor = 0.2;
|
|
10
|
-
|
|
11
|
-
var getValues = function getValues(max) {
|
|
12
|
-
var maxValue = max ? max : 0;
|
|
13
|
-
var base = maxValue ? Math.pow(10, maxValue == null ? void 0 : maxValue.toString().length) : 0;
|
|
14
|
-
var incrementNumber = incrementFactor * base;
|
|
15
|
-
var maxDomainValue = incrementNumber * (Math.floor(maxValue / incrementNumber) + 1);
|
|
16
|
-
var quot = maxDomainValue / incrementNumber;
|
|
17
|
-
var tickCount = quot % 2 ? maxDomainValue / incrementNumber + 1 : quot / 2 + 1;
|
|
18
|
-
return {
|
|
19
|
-
maxDomainValue: maxDomainValue,
|
|
20
|
-
tickCount: tickCount
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
exports.getValues = getValues;
|
|
25
|
-
|
|
26
|
-
var customTickFormatter = function customTickFormatter(tickValue, maxDomainValue) {
|
|
27
|
-
if (tickValue === 0) {
|
|
28
|
-
return "" + tickValue;
|
|
29
|
-
} else if (maxDomainValue > 1000000000 || tickValue === 1000000000) {
|
|
30
|
-
/* when tickValue === maxDomainValue === 1000000000 return 1B instead of 10000M*/
|
|
31
|
-
return tickValue / 1000000000 + "B";
|
|
32
|
-
} else if (maxDomainValue > 1000000 || tickValue === 1000000) {
|
|
33
|
-
/* when tickValue === maxDomainValue === 1000000 return 1M instead of 10000K*/
|
|
34
|
-
return tickValue / 1000000 + "M";
|
|
35
|
-
} else if (maxDomainValue >= 1000 || tickValue === 1000) {
|
|
36
|
-
/* when tickValue === maxDomainValue === 1000 return 1K instead of 10000*/
|
|
37
|
-
return tickValue / 1000 + "K";
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return "" + tickValue;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
exports.customTickFormatter = customTickFormatter;
|
|
44
|
-
|
|
45
|
-
var getBarColors = function getBarColors(data, defaultColor) {
|
|
46
|
-
return data.map(function (obj) {
|
|
47
|
-
var _obj$options;
|
|
48
|
-
|
|
49
|
-
if (obj != null && (_obj$options = obj.options) != null && _obj$options.color) {
|
|
50
|
-
var _obj$options2, _obj$options4;
|
|
51
|
-
|
|
52
|
-
if ((obj == null ? void 0 : (_obj$options2 = obj.options) == null ? void 0 : _obj$options2.coloringOption) === 'all') {
|
|
53
|
-
var _obj$options3;
|
|
54
|
-
|
|
55
|
-
return (0, _polished.lighten)(lightenFactor, obj == null ? void 0 : (_obj$options3 = obj.options) == null ? void 0 : _obj$options3.color);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return obj == null ? void 0 : (_obj$options4 = obj.options) == null ? void 0 : _obj$options4.color;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return defaultColor;
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
exports.getBarColors = getBarColors;
|
|
66
|
-
|
|
67
|
-
var getColoringOptions = function getColoringOptions(data, operator) {
|
|
68
|
-
return data.reduce(function (acc, cur, index) {
|
|
69
|
-
var _cur$options;
|
|
70
|
-
|
|
71
|
-
if (((_cur$options = cur.options) == null ? void 0 : _cur$options.coloringOption) !== 'all') {
|
|
72
|
-
return acc;
|
|
73
|
-
} else if (operator && operator(cur)) {
|
|
74
|
-
var _cur$options2;
|
|
75
|
-
|
|
76
|
-
acc[operator(cur)] = (_cur$options2 = cur.options) == null ? void 0 : _cur$options2.color;
|
|
77
|
-
} else {
|
|
78
|
-
var _cur$options3;
|
|
79
|
-
|
|
80
|
-
acc[index] = (_cur$options3 = cur.options) == null ? void 0 : _cur$options3.color;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return acc;
|
|
84
|
-
}, {});
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
exports.getColoringOptions = getColoringOptions;
|
|
1
|
+
import{lighten as o}from"polished";const l=o=>{const l=o||0,i=.05*(l?Math.pow(10,null==l?void 0:l.toString().length):0),n=i*(Math.floor(l/i)+1),t=n/i;return{maxDomainValue:n,tickCount:t%2?n/i+1:t/2+1}},i=(o,l)=>0===o?`${o}`:l>1e9||1e9===o?o/1e9+"B":l>1e6||1e6===o?o/1e6+"M":l>=1e3||1e3===o?o/1e3+"K":`${o}`,n=(l,i)=>l.map((l=>{var n,t,d,r;return(null===(n=null==l?void 0:l.options)||void 0===n?void 0:n.color)?"all"===(null===(t=null==l?void 0:l.options)||void 0===t?void 0:t.coloringOption)?o(.2,null===(d=null==l?void 0:l.options)||void 0===d?void 0:d.color):null===(r=null==l?void 0:l.options)||void 0===r?void 0:r.color:i})),t=(o,l)=>o.reduce(((o,i,n)=>{var t,d,r;return"all"!==(null===(t=i.options)||void 0===t?void 0:t.coloringOption)||(l&&l(i)?o[l(i)]=null===(d=i.options)||void 0===d?void 0:d.color:o[n]=null===(r=i.options)||void 0===r?void 0:r.color),o}),{});export{i as customTickFormatter,n as getBarColors,t as getColoringOptions,l as getValues};
|
|
@@ -1,57 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports["default"] = void 0;
|
|
5
|
-
|
|
6
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
|
-
var _recharts = require("recharts");
|
|
9
|
-
|
|
10
|
-
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
11
|
-
|
|
12
|
-
var _CustomLabel = _interopRequireDefault(require("./components/CustomLabel"));
|
|
13
|
-
|
|
14
|
-
var _react2 = require("@emotion/react");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
-
|
|
20
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
|
|
22
|
-
var WrappedChart = (0, _Wrapper["default"])(_recharts.PieChart);
|
|
23
|
-
|
|
24
|
-
var DonutChart = function DonutChart(_ref) {
|
|
25
|
-
var data = _ref.data,
|
|
26
|
-
value = _ref.value,
|
|
27
|
-
units = _ref.units;
|
|
28
|
-
var Colors = (0, _react.useMemo)(function () {
|
|
29
|
-
return data.map(function (obj) {
|
|
30
|
-
return (obj == null ? void 0 : obj.color) || '';
|
|
31
|
-
});
|
|
32
|
-
}, [data]);
|
|
33
|
-
return (0, _react2.jsx)(WrappedChart, null, (0, _react2.jsx)(_recharts.Pie, {
|
|
34
|
-
data: data,
|
|
35
|
-
innerRadius: "85%",
|
|
36
|
-
outerRadius: "100%",
|
|
37
|
-
paddingAngle: 0,
|
|
38
|
-
startAngle: 90,
|
|
39
|
-
endAngle: -270,
|
|
40
|
-
dataKey: "value",
|
|
41
|
-
blendStroke: true
|
|
42
|
-
}, data.map(function (entry, index) {
|
|
43
|
-
return (0, _react2.jsx)(_recharts.Cell, {
|
|
44
|
-
key: "cell--" + entry.name + "-" + entry.value,
|
|
45
|
-
fill: Colors[index]
|
|
46
|
-
});
|
|
47
|
-
}), (0, _react2.jsx)(_recharts.Label, {
|
|
48
|
-
position: "center",
|
|
49
|
-
content: (0, _react2.jsx)(_CustomLabel["default"], {
|
|
50
|
-
value: value,
|
|
51
|
-
units: units
|
|
52
|
-
})
|
|
53
|
-
})));
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
var _default = DonutChart;
|
|
57
|
-
exports["default"] = _default;
|
|
1
|
+
import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import{useMemo as o}from"react";import{Pie as r,Cell as a,Label as n,PieChart as i}from"recharts";import l from"../Wrapper.js";import m from"./components/CustomLabel/CustomLabel.js";const s=l(i),d=({data:i,value:l,units:d})=>{const u=o((()=>i.map((e=>(null==e?void 0:e.color)||""))),[i]);return e(s,{children:t(r,Object.assign({data:i,innerRadius:"85%",outerRadius:"100%",paddingAngle:0,startAngle:90,endAngle:-270,dataKey:"value",blendStroke:!0},{children:[i.map(((t,o)=>e(a,{fill:u[o]},`cell--${t.name}-${t.value}`))),e(n,{position:"center",content:e(m,{value:l,units:d},void 0)},void 0)]}),void 0)},void 0)};export{d as default};
|