@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,87 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports["default"] = void 0;
|
|
5
|
-
|
|
6
|
-
var _useLoading2 = require("../../hooks/useLoading");
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
|
-
var _ButtonBase = _interopRequireDefault(require("../ButtonBase/ButtonBase"));
|
|
11
|
-
|
|
12
|
-
var _Button = require("./Button.style");
|
|
13
|
-
|
|
14
|
-
var _ButtonLoader = _interopRequireDefault(require("./ButtonLoader"));
|
|
15
|
-
|
|
16
|
-
var _react2 = require("@emotion/react");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
24
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
26
|
-
var Button = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
27
|
-
var _childrenWrapperRef$c;
|
|
28
|
-
|
|
29
|
-
var _props$size = props.size,
|
|
30
|
-
size = _props$size === void 0 ? 'md' : _props$size,
|
|
31
|
-
_props$type = props.type,
|
|
32
|
-
type = _props$type === void 0 ? 'primary' : _props$type,
|
|
33
|
-
_props$color = props.color,
|
|
34
|
-
color = _props$color === void 0 ? '' : _props$color,
|
|
35
|
-
_props$isFilled = props.isFilled,
|
|
36
|
-
isFilled = _props$isFilled === void 0 ? true : _props$isFilled,
|
|
37
|
-
_props$isTransparent = props.isTransparent,
|
|
38
|
-
isTransparent = _props$isTransparent === void 0 ? false : _props$isTransparent,
|
|
39
|
-
_props$iconLeft = props.iconLeft,
|
|
40
|
-
iconLeft = _props$iconLeft === void 0 ? null : _props$iconLeft,
|
|
41
|
-
_props$iconRight = props.iconRight,
|
|
42
|
-
iconRight = _props$iconRight === void 0 ? null : _props$iconRight,
|
|
43
|
-
_props$isDisabled = props.isDisabled,
|
|
44
|
-
isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
|
|
45
|
-
children = props.children,
|
|
46
|
-
onClick = props.onClick;
|
|
47
|
-
|
|
48
|
-
var _useLoading = (0, _useLoading2.useLoading)(onClick),
|
|
49
|
-
isLoading = _useLoading.isLoading,
|
|
50
|
-
handleAsyncOperation = _useLoading.handleAsyncOperation;
|
|
51
|
-
|
|
52
|
-
var childrenWrapperRef = (0, _react.useRef)(null);
|
|
53
|
-
var innerButtonWidth = childrenWrapperRef == null ? void 0 : (_childrenWrapperRef$c = childrenWrapperRef.current) == null ? void 0 : _childrenWrapperRef$c.clientWidth;
|
|
54
|
-
return (0, _react2.jsx)(_ButtonBase["default"], _extends({}, props, {
|
|
55
|
-
ref: ref,
|
|
56
|
-
isLoading: isLoading,
|
|
57
|
-
onClick: handleAsyncOperation
|
|
58
|
-
}), (0, _react2.jsx)("span", {
|
|
59
|
-
css: (0, _Button.buttonSpanStyle)()
|
|
60
|
-
}, iconLeft && (0, _react2.jsx)("span", {
|
|
61
|
-
css: (0, _Button.iconStyle)()
|
|
62
|
-
}, iconLeft), (0, _react2.jsx)("span", {
|
|
63
|
-
ref: childrenWrapperRef,
|
|
64
|
-
css: (0, _Button.childrenWrapperStyle)({
|
|
65
|
-
type: type,
|
|
66
|
-
isLoading: isLoading,
|
|
67
|
-
isFilled: isFilled,
|
|
68
|
-
size: size,
|
|
69
|
-
color: color,
|
|
70
|
-
isTransparent: isTransparent,
|
|
71
|
-
iconLeft: iconLeft,
|
|
72
|
-
iconRight: iconRight,
|
|
73
|
-
isDisabled: isDisabled,
|
|
74
|
-
hasChildren: Boolean(_react["default"].Children.count(children))
|
|
75
|
-
})
|
|
76
|
-
}, isLoading ? (0, _react2.jsx)(_ButtonLoader["default"], {
|
|
77
|
-
innerButtonWidth: innerButtonWidth,
|
|
78
|
-
color: color,
|
|
79
|
-
type: type
|
|
80
|
-
}) : children), iconRight && (0, _react2.jsx)("span", {
|
|
81
|
-
css: (0, _Button.iconStyle)()
|
|
82
|
-
}, iconRight)));
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
Button.displayName = 'Button';
|
|
86
|
-
var _default = Button;
|
|
87
|
-
exports["default"] = _default;
|
|
1
|
+
import{jsx as i,jsxs as o}from"@emotion/react/jsx-runtime";import{useLoading as n}from"../../hooks/useLoading.js";import s,{useRef as t}from"react";import e from"../ButtonBase/ButtonBase.js";import{buttonSpanStyle as r,iconStyle as a,childrenWrapperStyle as l}from"./Button.style.js";import d from"./ButtonLoader/ButtonLoader.js";const c=s.forwardRef(((c,p)=>{var u;const{size:m="md",type:h="primary",color:f="",isFilled:g=!0,isTransparent:j=!1,iconLeft:v=null,iconRight:B=null,isDisabled:L=!1,children:b,onClick:y}=c,{isLoading:O,handleAsyncOperation:C}=n(y),k=t(null),R=null===(u=null==k?void 0:k.current)||void 0===u?void 0:u.clientWidth;return i(e,Object.assign({},c,{ref:p,isLoading:O,onClick:C},{children:o("span",Object.assign({css:r()},{children:[v&&i("span",Object.assign({css:a()},{children:v}),void 0),i("span",Object.assign({ref:k,css:l({type:h,isLoading:O,isFilled:g,size:m,color:f,isTransparent:j,iconLeft:v,iconRight:B,isDisabled:L,hasChildren:Boolean(s.Children.count(b))})},{children:O?i(d,{innerButtonWidth:R,color:f,type:h},void 0):b}),void 0),B&&i("span",Object.assign({css:a()},{children:B}),void 0)]}),void 0)}),void 0)}));c.displayName="Button";export{c as default};
|
|
@@ -1,42 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.childrenWrapperStyle = exports.iconStyle = exports.buttonSpanStyle = void 0;
|
|
5
|
-
|
|
6
|
-
var buttonSpanStyle = function buttonSpanStyle() {
|
|
7
|
-
return function () {
|
|
8
|
-
return {
|
|
9
|
-
display: 'flex',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
justifyContent: 'center'
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
exports.buttonSpanStyle = buttonSpanStyle;
|
|
17
|
-
|
|
18
|
-
var iconStyle = function iconStyle() {
|
|
19
|
-
return function () {
|
|
20
|
-
return {
|
|
21
|
-
display: 'inline-flex'
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
exports.iconStyle = iconStyle;
|
|
27
|
-
|
|
28
|
-
var childrenWrapperStyle = function childrenWrapperStyle(_ref) {
|
|
29
|
-
var iconLeft = _ref.iconLeft,
|
|
30
|
-
iconRight = _ref.iconRight,
|
|
31
|
-
hasChildren = _ref.hasChildren;
|
|
32
|
-
return function (theme) {
|
|
33
|
-
var rightIconExists = hasChildren && iconRight;
|
|
34
|
-
var leftIconExists = hasChildren && iconLeft;
|
|
35
|
-
return {
|
|
36
|
-
marginLeft: leftIconExists ? theme.globals.spacing.get('4') : 0,
|
|
37
|
-
marginRight: rightIconExists ? theme.globals.spacing.get('4') : 0
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
exports.childrenWrapperStyle = childrenWrapperStyle;
|
|
1
|
+
const n=()=>()=>({display:"flex",alignItems:"center",justifyContent:"center"}),e=()=>()=>({display:"inline-flex"}),t=({iconLeft:n,iconRight:e,hasChildren:t})=>i=>{const g=t&&e;return{marginLeft:t&&n?i.globals.spacing.get("4"):0,marginRight:g?i.globals.spacing.get("4"):0}};export{n as buttonSpanStyle,t as childrenWrapperStyle,e as iconStyle};
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports["default"] = void 0;
|
|
5
|
-
|
|
6
|
-
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
|
-
var _useTypeColorToColorMatch = require("../../../hooks/useTypeColorToColorMatch");
|
|
9
|
-
|
|
10
|
-
var _index = require("../../../index");
|
|
11
|
-
|
|
12
|
-
var _ButtonLoader = require("./ButtonLoader.style");
|
|
13
|
-
|
|
14
|
-
var _Loader = _interopRequireDefault(require("../../Loader"));
|
|
15
|
-
|
|
16
|
-
var _react2 = require("@emotion/react");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
var ButtonLoader = function ButtonLoader(_ref) {
|
|
21
|
-
var innerButtonWidth = _ref.innerButtonWidth,
|
|
22
|
-
_ref$type = _ref.type,
|
|
23
|
-
type = _ref$type === void 0 ? 'primary' : _ref$type,
|
|
24
|
-
_ref$color = _ref.color,
|
|
25
|
-
color = _ref$color === void 0 ? '' : _ref$color;
|
|
26
|
-
var theme = (0, _index.useTheme)();
|
|
27
|
-
|
|
28
|
-
var _useTypeColorToColorM = (0, _useTypeColorToColorMatch.useTypeColorToColorMatch)(),
|
|
29
|
-
calculateColorBetweenColorAndType = _useTypeColorToColorM.calculateColorBetweenColorAndType;
|
|
30
|
-
|
|
31
|
-
var calculatedColor = calculateColorBetweenColorAndType(color, type);
|
|
32
|
-
var spinnerColor = theme.utils.getAAColorFromSwatches(calculatedColor.color, calculatedColor.shade);
|
|
33
|
-
return (0, _react2.jsx)("div", {
|
|
34
|
-
css: (0, _ButtonLoader.centralizedLoader)(innerButtonWidth)
|
|
35
|
-
}, (0, _react2.jsx)(_Loader["default"], {
|
|
36
|
-
type: 'spinner',
|
|
37
|
-
color: spinnerColor
|
|
38
|
-
}));
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
ButtonLoader.displayName = 'Button';
|
|
42
|
-
var _default = ButtonLoader;
|
|
43
|
-
exports["default"] = _default;
|
|
1
|
+
import{jsx as o}from"@emotion/react/jsx-runtime";import{useTypeColorToColorMatch as r}from"../../../hooks/useTypeColorToColorMatch.js";import{centralizedLoader as e}from"./ButtonLoader.style.js";import t from"../../Loader/Loader.js";import s from"../../../hooks/useTheme.js";const i=({innerButtonWidth:i,type:m="primary",color:n=""})=>{const a=s(),{calculateColorBetweenColorAndType:l}=r(),c=l(n,m),p=a.utils.getAAColorFromSwatches(c.color,c.shade);return o("div",Object.assign({css:e(i)},{children:o(t,{type:"spinner",color:p},void 0)}),void 0)};i.displayName="Button";export{i as default};
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _react = require("@emotion/react");
|
|
7
|
-
|
|
8
|
-
var _functions = require("../../../theme/functions");
|
|
9
|
-
|
|
10
|
-
var _utils = require("../../../theme/utils");
|
|
11
|
-
|
|
12
|
-
var centralizedLoader = function centralizedLoader(clientWidth) {
|
|
13
|
-
return (
|
|
14
|
-
/*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
/*#__PURE__*/
|
|
17
|
-
(0, _react.css)("width:", clientWidth ? (0, _utils.rem)(clientWidth) : 'auto', ";", _functions.flex, ";justify-content:center;" + (process.env.NODE_ENV === "production" ? "" : ";label:centralizedLoader;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0J1dHRvbi9CdXR0b25Mb2FkZXIvQnV0dG9uTG9hZGVyLnN0eWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUkrRiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9CdXR0b24vQnV0dG9uTG9hZGVyL0J1dHRvbkxvYWRlci5zdHlsZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IGZsZXggfSBmcm9tICd0aGVtZS9mdW5jdGlvbnMnO1xuaW1wb3J0IHsgcmVtIH0gZnJvbSAndGhlbWUvdXRpbHMnO1xuXG5leHBvcnQgY29uc3QgY2VudHJhbGl6ZWRMb2FkZXI6IChjbGllbnRXaWR0aD86IG51bWJlcikgPT4gU2VyaWFsaXplZFN0eWxlcyA9IGNsaWVudFdpZHRoID0+IGNzc2BcbiAgd2lkdGg6ICR7Y2xpZW50V2lkdGggPyByZW0oY2xpZW50V2lkdGgpIDogJ2F1dG8nfTtcbiAgJHtmbGV4fTtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5gO1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:centralizedLoader;")
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.centralizedLoader = centralizedLoader;
|
|
1
|
+
import{css as t}from"@emotion/react";import{flex as o}from"../../../theme/functions.js";import{rem as e}from"../../../theme/utils.js";const m=m=>t`
|
|
2
|
+
width: ${m?e(m):"auto"};
|
|
3
|
+
${o};
|
|
4
|
+
justify-content: center;
|
|
5
|
+
`;export{m as centralizedLoader};
|
|
@@ -1,58 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.stateBackgroundColor = exports.defineBackgroundColor = void 0;
|
|
5
|
-
|
|
6
|
-
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
7
|
-
|
|
8
|
-
var _polished = require("polished");
|
|
9
|
-
|
|
10
|
-
var _palette = require("../../theme/palette");
|
|
11
|
-
|
|
12
|
-
var _themeFunctions = require("../../utils/themeFunctions");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* This function defines what background-color to show based on type or color passed
|
|
18
|
-
* if color it retrieves the color directly from the palette
|
|
19
|
-
* if type it gets the specific type color from the palette
|
|
20
|
-
*/
|
|
21
|
-
var defineBackgroundColor = function defineBackgroundColor(theme, color, type, hasIcon, hasChildren) {
|
|
22
|
-
if (!hasChildren && hasIcon) {
|
|
23
|
-
return 'transparent';
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
if (color && !(0, _isEmpty["default"])(color)) {
|
|
27
|
-
return theme.utils.getColor(color.color, color.shade);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if (hasChildren && type) {
|
|
31
|
-
return (0, _themeFunctions.getColorFromType)(type, theme);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return 'transparent';
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* return the correct color to show based on the state that is passed
|
|
38
|
-
* The state must be 'hover' or 'active' for now
|
|
39
|
-
* It is being defined by the team that the values will always be 10% and 20%
|
|
40
|
-
* for transparentize there is a revert to these values to match 90% and 80% accordingly
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
exports.defineBackgroundColor = defineBackgroundColor;
|
|
45
|
-
|
|
46
|
-
var stateBackgroundColor = function stateBackgroundColor(theme, state, calculatedColor, isFilled) {
|
|
47
|
-
var value = state === 'hover' ? 0.1 : 0.2;
|
|
48
|
-
var color = defineBackgroundColor(theme, calculatedColor);
|
|
49
|
-
|
|
50
|
-
if (!isFilled) {
|
|
51
|
-
// value here is reverted to follow tranparentize e.g (1 - 0.1 = 0.9)
|
|
52
|
-
return (0, _polished.transparentize)(1 - value, color);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return calculatedColor.shade > _palette.BASE_SHADE ? (0, _polished.lighten)(value, color) : (0, _polished.darken)(value, color);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
exports.stateBackgroundColor = stateBackgroundColor;
|
|
1
|
+
import t from"lodash/isEmpty.js";import"polished";import"../../theme/palette.js";import{getColorFromType as o}from"../../utils/themeFunctions.js";const r=(r,s,e,p,i)=>!i&&p?"transparent":s&&!t(s)?r.utils.getColor(s.color,s.shade):i&&e?o(e,r):"transparent";export{r as defineBackgroundColor};
|
|
@@ -1,87 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports["default"] = void 0;
|
|
5
|
-
|
|
6
|
-
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
|
-
var _useTypeColorToColorMatch = require("../../hooks/useTypeColorToColorMatch");
|
|
9
|
-
|
|
10
|
-
var _helpers = require("../../utils/helpers");
|
|
11
|
-
|
|
12
|
-
var _ButtonBase = require("./ButtonBase.style");
|
|
13
|
-
|
|
14
|
-
var _react2 = require("@emotion/react");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
//@TODO fix props to not overwrite button props
|
|
19
|
-
var ButtonBase = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
20
|
-
var _props$size = props.size,
|
|
21
|
-
size = _props$size === void 0 ? 'md' : _props$size,
|
|
22
|
-
_props$type = props.type,
|
|
23
|
-
type = _props$type === void 0 ? 'primary' : _props$type,
|
|
24
|
-
_props$color = props.color,
|
|
25
|
-
color = _props$color === void 0 ? '' : _props$color,
|
|
26
|
-
_props$isBlock = props.isBlock,
|
|
27
|
-
isBlock = _props$isBlock === void 0 ? false : _props$isBlock,
|
|
28
|
-
_props$isFilled = props.isFilled,
|
|
29
|
-
isFilled = _props$isFilled === void 0 ? true : _props$isFilled,
|
|
30
|
-
_props$isTransparent = props.isTransparent,
|
|
31
|
-
isTransparent = _props$isTransparent === void 0 ? false : _props$isTransparent,
|
|
32
|
-
_props$iconLeft = props.iconLeft,
|
|
33
|
-
iconLeft = _props$iconLeft === void 0 ? null : _props$iconLeft,
|
|
34
|
-
_props$iconRight = props.iconRight,
|
|
35
|
-
iconRight = _props$iconRight === void 0 ? null : _props$iconRight,
|
|
36
|
-
_props$isDisabled = props.isDisabled,
|
|
37
|
-
isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
|
|
38
|
-
_props$isLoading = props.isLoading,
|
|
39
|
-
isLoading = _props$isLoading === void 0 ? false : _props$isLoading,
|
|
40
|
-
children = props.children,
|
|
41
|
-
_props$dataTestId = props.dataTestId,
|
|
42
|
-
dataTestId = _props$dataTestId === void 0 ? '' : _props$dataTestId,
|
|
43
|
-
_props$dataTestPrefix = props.dataTestPrefixId,
|
|
44
|
-
dataTestPrefixId = _props$dataTestPrefix === void 0 ? '' : _props$dataTestPrefix,
|
|
45
|
-
_props$buttonType = props.buttonType,
|
|
46
|
-
buttonType = _props$buttonType === void 0 ? 'button' : _props$buttonType,
|
|
47
|
-
_onClick = props.onClick,
|
|
48
|
-
onBlur = props.onBlur,
|
|
49
|
-
sx = props.sx;
|
|
50
|
-
|
|
51
|
-
var _useTypeColorToColorM = (0, _useTypeColorToColorMatch.useTypeColorToColorMatch)(),
|
|
52
|
-
calculateColorBetweenColorAndType = _useTypeColorToColorM.calculateColorBetweenColorAndType;
|
|
53
|
-
|
|
54
|
-
var calculatedColor = calculateColorBetweenColorAndType(color, type);
|
|
55
|
-
var testIdName = dataTestPrefixId + "button";
|
|
56
|
-
return (0, _react2.jsx)("button", {
|
|
57
|
-
ref: ref,
|
|
58
|
-
type: buttonType,
|
|
59
|
-
"data-testid": (0, _helpers.generateTestDataId)(testIdName, dataTestId),
|
|
60
|
-
css: (0, _ButtonBase.buttonBaseStyle)({
|
|
61
|
-
type: type,
|
|
62
|
-
isLoading: isLoading,
|
|
63
|
-
isFilled: isFilled,
|
|
64
|
-
size: size,
|
|
65
|
-
isBlock: isBlock,
|
|
66
|
-
color: color,
|
|
67
|
-
isTransparent: isTransparent,
|
|
68
|
-
calculatedColor: calculatedColor,
|
|
69
|
-
isDisabled: isDisabled,
|
|
70
|
-
iconLeft: iconLeft,
|
|
71
|
-
iconRight: iconRight,
|
|
72
|
-
sx: sx,
|
|
73
|
-
childrenCount: _react["default"].Children.count(children)
|
|
74
|
-
}),
|
|
75
|
-
onClick: function onClick(event) {
|
|
76
|
-
if (_onClick) {
|
|
77
|
-
_onClick(event);
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
onBlur: onBlur,
|
|
81
|
-
disabled: isDisabled || isLoading
|
|
82
|
-
}, children);
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
ButtonBase.displayName = 'ButtonBase';
|
|
86
|
-
var _default = ButtonBase;
|
|
87
|
-
exports["default"] = _default;
|
|
1
|
+
import{jsx as o}from"@emotion/react/jsx-runtime";import t from"react";import{useTypeColorToColorMatch as e}from"../../hooks/useTypeColorToColorMatch.js";import{generateTestDataId as i}from"../../utils/helpers.js";import{buttonBaseStyle as s}from"./ButtonBase.style.js";const r=t.forwardRef(((r,l)=>{const{size:n="md",type:a="primary",color:c="",isBlock:d=!1,isFilled:u=!0,isTransparent:p=!1,iconLeft:m=null,iconRight:f=null,isDisabled:h=!1,isLoading:y=!1,children:B,dataTestId:C="",dataTestPrefixId:b="",buttonType:T="button",onClick:g,onBlur:j,sx:k}=r,{calculateColorBetweenColorAndType:x}=e(),L=x(c,a),R=`${b}button`;return o("button",Object.assign({ref:l,type:T,"data-testid":i(R,C),css:s({type:a,isLoading:y,isFilled:u,size:n,isBlock:d,color:c,isTransparent:p,calculatedColor:L,isDisabled:h,iconLeft:m,iconRight:f,sx:k,childrenCount:t.Children.count(B)}),onClick:o=>{g&&g(o)},onBlur:j,disabled:h||y},{children:B}),void 0)}));r.displayName="ButtonBase";export{r as default};
|
|
@@ -1,121 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.iconStyle = exports.buttonSpanStyle = exports.buttonBaseStyle = exports.heightBasedOnSize = void 0;
|
|
5
|
-
|
|
6
|
-
var _react = require("@emotion/react");
|
|
7
|
-
|
|
8
|
-
var _utils = require("../../theme/utils");
|
|
9
|
-
|
|
10
|
-
var _states = require("../../theme/states");
|
|
11
|
-
|
|
12
|
-
var _config = require("./config");
|
|
13
|
-
|
|
14
|
-
var _utils2 = require("./utils");
|
|
15
|
-
|
|
16
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
-
|
|
18
|
-
/** Calculates the button specific height based on the size passed to it **/
|
|
19
|
-
var heightBasedOnSize = function heightBasedOnSize(size) {
|
|
20
|
-
var _buttonConfig$sizes$s;
|
|
21
|
-
|
|
22
|
-
return (0, _utils.rem)((_buttonConfig$sizes$s = _config.buttonConfig.sizes[size]) != null ? _buttonConfig$sizes$s : _config.buttonConfig.sizes["default"]);
|
|
23
|
-
};
|
|
24
|
-
/** Calculates the button specific font size based on the size passed to it **/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
exports.heightBasedOnSize = heightBasedOnSize;
|
|
28
|
-
|
|
29
|
-
var fontSizeBasedOnSize = function fontSizeBasedOnSize(theme, size) {
|
|
30
|
-
return (
|
|
31
|
-
/** @TODO revisit this when all custom fontSizes are gone and we can use only
|
|
32
|
-
* the fontSizes.get() function. Refactor buttonConfig logic */
|
|
33
|
-
_config.buttonConfig.fontSize[size] ? theme.globals.typography.fontSizes[_config.buttonConfig.fontSize[size]] : theme.globals.typography.fontSizes.get(_config.buttonConfig.fontSize["default"])
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
var buttonBaseStyle = function buttonBaseStyle(_ref) {
|
|
38
|
-
var type = _ref.type,
|
|
39
|
-
isFilled = _ref.isFilled,
|
|
40
|
-
calculatedColor = _ref.calculatedColor,
|
|
41
|
-
size = _ref.size,
|
|
42
|
-
isBlock = _ref.isBlock,
|
|
43
|
-
isTransparent = _ref.isTransparent,
|
|
44
|
-
childrenCount = _ref.childrenCount,
|
|
45
|
-
sx = _ref.sx;
|
|
46
|
-
return function (theme) {
|
|
47
|
-
var backGroundColor = (0, _utils2.defineBackgroundColor)(theme, calculatedColor, type, childrenCount > 0);
|
|
48
|
-
var isOutlined = !isFilled && !isTransparent;
|
|
49
|
-
var isBackgroundTransparent = isOutlined || isTransparent;
|
|
50
|
-
var borderWidth = isOutlined ? _config.buttonConfig.types.outlined.border.width : 0;
|
|
51
|
-
var baseButtonStyles = {
|
|
52
|
-
fontSize: fontSizeBasedOnSize(theme, size || 'default'),
|
|
53
|
-
fontWeight: theme.globals.typography.weights.get('medium'),
|
|
54
|
-
color: (0, _utils2.calculateButtonColor)({
|
|
55
|
-
type: type,
|
|
56
|
-
isBackgroundTransparent: Boolean(isBackgroundTransparent),
|
|
57
|
-
backGroundColor: backGroundColor,
|
|
58
|
-
calculatedColor: calculatedColor,
|
|
59
|
-
theme: theme
|
|
60
|
-
}),
|
|
61
|
-
width: isBlock ? '100%' : undefined,
|
|
62
|
-
backgroundColor: isBackgroundTransparent ? 'transparent' : backGroundColor,
|
|
63
|
-
padding: size === 'lg' ? theme.globals.spacing.get('6') : "0 " + theme.globals.spacing.get('6'),
|
|
64
|
-
height: heightBasedOnSize(size || 'default'),
|
|
65
|
-
borderRadius: theme.globals.spacing.get('3'),
|
|
66
|
-
border: isOutlined ? "solid " + (0, _utils.rem)(borderWidth) + " " + backGroundColor : 'none',
|
|
67
|
-
cursor: 'pointer',
|
|
68
|
-
transition: 'background-color,border 150ms linear',
|
|
69
|
-
':focus-visible:not(:disabled)': {
|
|
70
|
-
outline: (0, _states.getFocus)({
|
|
71
|
-
theme: theme,
|
|
72
|
-
borderWidth: borderWidth
|
|
73
|
-
}).styleOutline
|
|
74
|
-
},
|
|
75
|
-
':hover:not(:disabled)': {
|
|
76
|
-
backgroundColor: (0, _states.getHover)({
|
|
77
|
-
theme: theme,
|
|
78
|
-
color: calculatedColor.color,
|
|
79
|
-
shade: isBackgroundTransparent ? 0 : calculatedColor.shade
|
|
80
|
-
}).backgroundColor
|
|
81
|
-
},
|
|
82
|
-
':active:not(:disabled)': {
|
|
83
|
-
backgroundColor: (0, _states.getPressed)({
|
|
84
|
-
theme: theme,
|
|
85
|
-
color: calculatedColor.color,
|
|
86
|
-
shade: isBackgroundTransparent ? 0 : calculatedColor.shade
|
|
87
|
-
}).backgroundColor
|
|
88
|
-
},
|
|
89
|
-
':disabled': (0, _states.getDisabled)()
|
|
90
|
-
};
|
|
91
|
-
return (
|
|
92
|
-
/*#__PURE__*/
|
|
93
|
-
|
|
94
|
-
/*#__PURE__*/
|
|
95
|
-
(0, _react.css)(_extends({}, baseButtonStyles, sx == null ? void 0 : sx.container), process.env.NODE_ENV === "production" ? "" : ";label:buttonBaseStyle;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy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2tncm91bmRUcmFuc3BhcmVudCA/IDAgOiBjYWxjdWxhdGVkQ29sb3Iuc2hhZGUsXG4gICAgICAgIH0pLmJhY2tncm91bmRDb2xvcixcbiAgICAgIH0sXG4gICAgICAnOmFjdGl2ZTpub3QoOmRpc2FibGVkKSc6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBnZXRQcmVzc2VkKHtcbiAgICAgICAgICB0aGVtZSxcbiAgICAgICAgICBjb2xvcjogY2FsY3VsYXRlZENvbG9yLmNvbG9yLFxuICAgICAgICAgIHNoYWRlOiBpc0JhY2tncm91bmRUcmFuc3BhcmVudCA/IDAgOiBjYWxjdWxhdGVkQ29sb3Iuc2hhZGUsXG4gICAgICAgIH0pLmJhY2tncm91bmRDb2xvcixcbiAgICAgIH0sXG4gICAgICAnOmRpc2FibGVkJzogZ2V0RGlzYWJsZWQoKSxcbiAgICB9O1xuXG4gICAgcmV0dXJuIGNzcyh7IC4uLmJhc2VCdXR0b25TdHlsZXMsIC4uLnN4Py5jb250YWluZXIgfSk7XG4gIH07XG5cbmV4cG9ydCBjb25zdCBidXR0b25TcGFuU3R5bGUgPSAoKSA9PiAoKSA9PiB7XG4gIHJldHVybiB7XG4gICAgZGlzcGxheTogJ2ZsZXgnLFxuICAgIGFsaWduSXRlbXM6ICdjZW50ZXInLFxuICB9O1xufTtcblxuZXhwb3J0IGNvbnN0IGljb25TdHlsZSA9ICgpID0+ICgpID0+ICh7XG4gIGRpc3BsYXk6ICdpbmxpbmUtZmxleCcsXG59KTtcbiJdfQ== */", process.env.NODE_ENV === "production" ? "" : ";label:buttonBaseStyle;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0J1dHRvbkJhc2UvQnV0dG9uQmFzZS5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtRlci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AgIH0sXG4gICAgICAnOmFjdGl2ZTpub3QoOmRpc2FibGVkKSc6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBnZXRQcmVzc2VkKHtcbiAgICAgICAgICB0aGVtZSxcbiAgICAgICAgICBjb2xvcjogY2FsY3VsYXRlZENvbG9yLmNvbG9yLFxuICAgICAgICAgIHNoYWRlOiBpc0JhY2tncm91bmRUcmFuc3BhcmVudCA/IDAgOiBjYWxjdWxhdGVkQ29sb3Iuc2hhZGUsXG4gICAgICAgIH0pLmJhY2tncm91bmRDb2xvcixcbiAgICAgIH0sXG4gICAgICAnOmRpc2FibGVkJzogZ2V0RGlzYWJsZWQoKSxcbiAgICB9O1xuXG4gICAgcmV0dXJuIGNzcyh7IC4uLmJhc2VCdXR0b25TdHlsZXMsIC4uLnN4Py5jb250YWluZXIgfSk7XG4gIH07XG5cbmV4cG9ydCBjb25zdCBidXR0b25TcGFuU3R5bGUgPSAoKSA9PiAoKSA9PiB7XG4gIHJldHVybiB7XG4gICAgZGlzcGxheTogJ2ZsZXgnLFxuICAgIGFsaWduSXRlbXM6ICdjZW50ZXInLFxuICB9O1xufTtcblxuZXhwb3J0IGNvbnN0IGljb25TdHlsZSA9ICgpID0+ICgpID0+ICh7XG4gIGRpc3BsYXk6ICdpbmxpbmUtZmxleCcsXG59KTtcbiJdfQ== */")
|
|
96
|
-
);
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
exports.buttonBaseStyle = buttonBaseStyle;
|
|
101
|
-
|
|
102
|
-
var buttonSpanStyle = function buttonSpanStyle() {
|
|
103
|
-
return function () {
|
|
104
|
-
return {
|
|
105
|
-
display: 'flex',
|
|
106
|
-
alignItems: 'center'
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
exports.buttonSpanStyle = buttonSpanStyle;
|
|
112
|
-
|
|
113
|
-
var iconStyle = function iconStyle() {
|
|
114
|
-
return function () {
|
|
115
|
-
return {
|
|
116
|
-
display: 'inline-flex'
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
exports.iconStyle = iconStyle;
|
|
1
|
+
import{css as o}from"@emotion/react";import{rem as e}from"../../theme/utils.js";import{getDisabled as t}from"../../theme/states/disabled.js";import{getFocus as r}from"../../theme/states/focus.js";import{getHover as s}from"../../theme/states/hover.js";import{getPressed as i}from"../../theme/states/pressed.js";import{buttonConfig as a}from"./config.js";import{defineBackgroundColor as l,calculateButtonColor as n}from"./utils.js";const d=o=>{var t;return e(null!==(t=a.sizes[o])&&void 0!==t?t:a.sizes.default)},c=(o,e)=>a.fontSize[e]?o.globals.typography.fontSizes[a.fontSize[e]]:o.globals.typography.fontSizes.get(a.fontSize.default),g=({type:g,isFilled:m,calculatedColor:u,size:p,isBlock:b,isTransparent:h,childrenCount:f,sx:y})=>j=>{const k=l(j,u,g,f>0),z=!m&&!h,C=z||h,v=z?a.types.outlined.border.width:0,S={fontSize:c(j,p||"default"),fontWeight:j.globals.typography.weights.get("medium"),color:n({type:g,isBackgroundTransparent:Boolean(C),backGroundColor:k,calculatedColor:u,theme:j}),width:b?"100%":void 0,backgroundColor:C?"transparent":k,padding:"lg"===p?j.globals.spacing.get("6"):`0 ${j.globals.spacing.get("6")}`,height:d(p||"default"),borderRadius:j.globals.spacing.get("3"),border:z?`solid ${e(v)} ${k}`:"none",cursor:"pointer",transition:"background-color,border 150ms linear",":focus-visible:not(:disabled)":{outline:r({theme:j,borderWidth:v}).styleOutline},":hover:not(:disabled)":{backgroundColor:s({theme:j,color:u.color,shade:C?0:u.shade}).backgroundColor},":active:not(:disabled)":{backgroundColor:i({theme:j,color:u.color,shade:C?0:u.shade}).backgroundColor},":disabled":t()};return o(Object.assign(Object.assign({},S),null==y?void 0:y.container))};export{g as buttonBaseStyle,d as heightBasedOnSize};
|
|
@@ -1,38 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.buttonConfig = exports.buttonSizes = exports.SM = exports.MD = exports.LG = void 0;
|
|
5
|
-
var LG = 'lg';
|
|
6
|
-
exports.LG = LG;
|
|
7
|
-
var MD = 'md';
|
|
8
|
-
exports.MD = MD;
|
|
9
|
-
var SM = 'sm';
|
|
10
|
-
exports.SM = SM;
|
|
11
|
-
var buttonSizes = [LG, MD, SM];
|
|
12
|
-
exports.buttonSizes = buttonSizes;
|
|
13
|
-
var buttonConfig = {
|
|
14
|
-
sizes: {
|
|
15
|
-
lg: 56,
|
|
16
|
-
md: 46,
|
|
17
|
-
sm: 36,
|
|
18
|
-
"default": 46
|
|
19
|
-
},
|
|
20
|
-
fontSize: {
|
|
21
|
-
sm: 13,
|
|
22
|
-
"default": '4'
|
|
23
|
-
},
|
|
24
|
-
types: {
|
|
25
|
-
link: {
|
|
26
|
-
color: {
|
|
27
|
-
name: 'blue',
|
|
28
|
-
shade: 550
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
outlined: {
|
|
32
|
-
border: {
|
|
33
|
-
width: 1
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.buttonConfig = buttonConfig;
|
|
1
|
+
const e={sizes:{lg:56,md:46,sm:36,default:46},fontSize:{sm:13,default:"4"},types:{link:{color:{name:"blue",shade:550}},outlined:{border:{width:1}}}};export{e as buttonConfig};
|
|
@@ -1,63 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.calculateButtonColor = exports.defineBackgroundColor = void 0;
|
|
5
|
-
|
|
6
|
-
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
7
|
-
|
|
8
|
-
var _themeFunctions = require("../../utils/themeFunctions");
|
|
9
|
-
|
|
10
|
-
var _config = require("./config");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* This function defines what background-color to show based on type or color passed
|
|
16
|
-
* if color it retrieves the color directly from the palette
|
|
17
|
-
* if type it gets the specific type color from the palette
|
|
18
|
-
*/
|
|
19
|
-
var defineBackgroundColor = function defineBackgroundColor(theme, color, type, hasChildren) {
|
|
20
|
-
if (type === 'link') {
|
|
21
|
-
return 'transparent';
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (color && !(0, _isEmpty["default"])(color)) {
|
|
25
|
-
return theme.utils.getColor(color.color, color.shade);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
if (hasChildren && type) {
|
|
29
|
-
return (0, _themeFunctions.getColorFromType)(type, theme);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return 'transparent';
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* This function defines what color to show based on type or color passed
|
|
36
|
-
* if type is link uses the link color
|
|
37
|
-
* if it's background is transparent ( transparent or Outlined ) then it uses the background color
|
|
38
|
-
* else it uses the calculated color
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
exports.defineBackgroundColor = defineBackgroundColor;
|
|
43
|
-
|
|
44
|
-
var calculateButtonColor = function calculateButtonColor(_ref) {
|
|
45
|
-
var type = _ref.type,
|
|
46
|
-
isBackgroundTransparent = _ref.isBackgroundTransparent,
|
|
47
|
-
backGroundColor = _ref.backGroundColor,
|
|
48
|
-
calculatedColor = _ref.calculatedColor,
|
|
49
|
-
theme = _ref.theme;
|
|
50
|
-
|
|
51
|
-
if (type === 'link') {
|
|
52
|
-
var color = _config.buttonConfig.types.link.color;
|
|
53
|
-
return theme.utils.getColor(color.name, color.shade);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
if (isBackgroundTransparent) {
|
|
57
|
-
return backGroundColor;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return theme.utils.getAAColorFromSwatches(calculatedColor.color, calculatedColor.shade);
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
exports.calculateButtonColor = calculateButtonColor;
|
|
1
|
+
import o from"lodash/isEmpty.js";import{getColorFromType as r}from"../../utils/themeFunctions.js";import{buttonConfig as t}from"./config.js";const e=(t,e,s,n)=>"link"===s?"transparent":e&&!o(e)?t.utils.getColor(e.color,e.shade):n&&s?r(s,t):"transparent",s=({type:o,isBackgroundTransparent:r,backGroundColor:e,calculatedColor:s,theme:n})=>{if("link"===o){const o=t.types.link.color;return n.utils.getColor(o.name,o.shade)}return r?e:n.utils.getAAColorFromSwatches(s.color,s.shade)};export{s as calculateButtonColor,e as defineBackgroundColor};
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports["default"] = void 0;
|
|
5
|
-
|
|
6
|
-
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
|
-
var _Card = require("./Card.style");
|
|
9
|
-
|
|
10
|
-
var _react2 = require("@emotion/react");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
var Card = function Card(_ref) {
|
|
15
|
-
var elevated = _ref.elevated,
|
|
16
|
-
_ref$isTransparent = _ref.isTransparent,
|
|
17
|
-
isTransparent = _ref$isTransparent === void 0 ? false : _ref$isTransparent,
|
|
18
|
-
radius = _ref.radius,
|
|
19
|
-
children = _ref.children;
|
|
20
|
-
return (0, _react2.jsx)("div", {
|
|
21
|
-
css: (0, _Card.cardStyle)({
|
|
22
|
-
elevated: elevated,
|
|
23
|
-
isTransparent: isTransparent,
|
|
24
|
-
radius: radius
|
|
25
|
-
})
|
|
26
|
-
}, children);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
var _default = Card;
|
|
30
|
-
exports["default"] = _default;
|
|
1
|
+
import{jsx as e}from"@emotion/react/jsx-runtime";import{cardStyle as r}from"./Card.style.js";const s=({elevated:s,isTransparent:t=!1,radius:a,children:i})=>e("div",Object.assign({css:r({elevated:s,isTransparent:t,radius:a})},{children:i}),void 0);export{s as default};
|