@orfium/ictinus 4.55.0-next.3 → 4.55.0-next.30
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/index.d.ts +2040 -751
- package/dist/index.js +26614 -1
- package/dist/index.umd.cjs +150 -0
- package/dist/{bundle.css → style.css} +1 -1
- package/package.json +104 -101
- package/dist/components/Avatar/Avatar.js +0 -1
- package/dist/components/Avatar/Avatar.style.js +0 -25
- package/dist/components/Avatar/Avatar.tokens.js +0 -1
- package/dist/components/Avatar/AvatarStack/AvatarStack.js +0 -1
- package/dist/components/Avatar/AvatarStack/AvatarStack.style.js +0 -10
- package/dist/components/Avatar/AvatarStack/utils.js +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.style.js +0 -13
- package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.js +0 -1
- package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.style.js +0 -7
- package/dist/components/Breadcrumb/Separator/Separator.js +0 -1
- package/dist/components/Breadcrumb/Separator/Separator.style.js +0 -4
- package/dist/components/Button/Button.js +0 -1
- package/dist/components/Button/Button.style.js +0 -1
- package/dist/components/Button/ButtonLoader/ButtonLoader.js +0 -1
- package/dist/components/Button/ButtonLoader/ButtonLoader.style.js +0 -5
- package/dist/components/Button/utils.js +0 -1
- package/dist/components/ButtonBase/ButtonBase.js +0 -1
- package/dist/components/ButtonBase/ButtonBase.style.js +0 -1
- package/dist/components/ButtonBase/config.js +0 -1
- package/dist/components/ButtonBase/utils.js +0 -1
- package/dist/components/Card/Card.js +0 -1
- package/dist/components/Card/Card.style.js +0 -7
- package/dist/components/Chart/BarChart/BarChart.js +0 -1
- package/dist/components/Chart/BarChart/components/CustomLabel/CustomLabel.js +0 -1
- package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.js +0 -1
- package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.style.js +0 -28
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.js +0 -1
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.style.js +0 -1
- package/dist/components/Chart/BarChart/utils.js +0 -1
- package/dist/components/Chart/DonutChart/DonutChart.js +0 -1
- package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.js +0 -1
- package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.style.js +0 -10
- package/dist/components/Chart/LineChart/LineChart.js +0 -1
- package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.js +0 -1
- package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.style.js +0 -1
- package/dist/components/Chart/LineChart/components/GradientLine/GradientLine.js +0 -1
- package/dist/components/Chart/LineChart/utils.js +0 -1
- package/dist/components/Chart/Wrapper.js +0 -1
- package/dist/components/CheckBox/CheckBox.js +0 -1
- package/dist/components/CheckBox/CheckBox.style.js +0 -73
- package/dist/components/Chip/Chip.js +0 -1
- package/dist/components/Chip/Chip.style.js +0 -38
- package/dist/components/Chip/Chip.types.js +0 -1
- package/dist/components/Chip/components/Badge/Badge.js +0 -1
- package/dist/components/Chip/components/Badge/Badge.style.js +0 -14
- package/dist/components/Chip/utils.js +0 -1
- package/dist/components/DatePicker/DatePickInput/DatePickInput.js +0 -1
- package/dist/components/DatePicker/DatePickInput/DatePickInput.style.js +0 -3
- package/dist/components/DatePicker/DatePicker.js +0 -1
- package/dist/components/DatePicker/DatePicker.style.js +0 -7
- package/dist/components/DatePicker/Day/Day.js +0 -1
- package/dist/components/DatePicker/Day/Day.style.js +0 -35
- package/dist/components/DatePicker/Month/Month.js +0 -1
- package/dist/components/DatePicker/Month/Month.style.js +0 -17
- package/dist/components/DatePicker/Month/Month.utils.js +0 -1
- package/dist/components/DatePicker/OverlayComponent/OverlayComponent.js +0 -1
- package/dist/components/DatePicker/OverlayComponent/OverlayComponent.style.js +0 -47
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.js +0 -1
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.js +0 -36
- package/dist/components/DatePicker/utils.js +0 -1
- package/dist/components/Drawer/Drawer.js +0 -1
- package/dist/components/Drawer/Drawer.style.js +0 -13
- package/dist/components/Drawer/Navigation/MenuItem/MenuItem.js +0 -1
- package/dist/components/Drawer/Navigation/Navigation.js +0 -1
- package/dist/components/Drawer/Navigation/Navigation.style.js +0 -99
- package/dist/components/ExpandCollapse/ExpandCollapse.js +0 -1
- package/dist/components/ExpandCollapse/ExpandCollapse.style.js +0 -6
- package/dist/components/ExpandCollapse/useManageContentRef.js +0 -1
- package/dist/components/ExpandCollapse/utils.js +0 -1
- package/dist/components/Filter/Filter.js +0 -1
- package/dist/components/Filter/Filter.style.js +0 -19
- package/dist/components/Filter/components/FilterBase/FilterBase.js +0 -1
- package/dist/components/Filter/components/Options/Options.js +0 -1
- package/dist/components/Filter/components/Options/Options.style.js +0 -7
- package/dist/components/Filter/components/SearchInput/SearchInput.js +0 -1
- package/dist/components/Filter/components/SearchInput/SearchInput.style.js +0 -23
- package/dist/components/Filter/utils.js +0 -1
- package/dist/components/Icon/Icon.js +0 -1
- package/dist/components/Icon/Icon.style.js +0 -1
- package/dist/components/Icon/assets/TVCinema.svg.js +0 -1
- package/dist/components/Icon/assets/TVRadio.svg.js +0 -1
- package/dist/components/Icon/assets/account.svg.js +0 -1
- package/dist/components/Icon/assets/actions.svg.js +0 -1
- package/dist/components/Icon/assets/add.svg.js +0 -1
- package/dist/components/Icon/assets/alert.svg.js +0 -1
- package/dist/components/Icon/assets/analytics.svg.js +0 -1
- package/dist/components/Icon/assets/analyticsVideos.svg.js +0 -1
- package/dist/components/Icon/assets/ancient-building.svg.js +0 -1
- package/dist/components/Icon/assets/arrow-left.svg.js +0 -1
- package/dist/components/Icon/assets/arrow-right.svg.js +0 -1
- package/dist/components/Icon/assets/artist.svg.js +0 -1
- package/dist/components/Icon/assets/asset-matching.svg.js +0 -1
- package/dist/components/Icon/assets/asset.svg.js +0 -1
- package/dist/components/Icon/assets/auto.svg.js +0 -1
- package/dist/components/Icon/assets/broadcast.svg.js +0 -1
- package/dist/components/Icon/assets/calendar-empty.svg.js +0 -1
- package/dist/components/Icon/assets/calendar-filled.svg.js +0 -1
- package/dist/components/Icon/assets/catalog-files.svg.js +0 -1
- package/dist/components/Icon/assets/catalog-overview.svg.js +0 -1
- package/dist/components/Icon/assets/catalog.svg.js +0 -1
- package/dist/components/Icon/assets/chat-bubble.svg.js +0 -1
- package/dist/components/Icon/assets/check.svg.js +0 -1
- package/dist/components/Icon/assets/checked-list.svg.js +0 -1
- package/dist/components/Icon/assets/checkmark.svg.js +0 -1
- package/dist/components/Icon/assets/chevron-extra-small-down.svg.js +0 -1
- package/dist/components/Icon/assets/chevron-extra-small-left.svg.js +0 -1
- package/dist/components/Icon/assets/chevron-extra-small-right.svg.js +0 -1
- package/dist/components/Icon/assets/chevron-extra-small-up.svg.js +0 -1
- package/dist/components/Icon/assets/chevron-large-down.svg.js +0 -1
- package/dist/components/Icon/assets/chevron-large-left.svg.js +0 -1
- package/dist/components/Icon/assets/chevron-large-right.svg.js +0 -1
- package/dist/components/Icon/assets/chevron-large-up.svg.js +0 -1
- package/dist/components/Icon/assets/chevron-small-down.svg.js +0 -1
- package/dist/components/Icon/assets/chevron-small-left.svg.js +0 -1
- package/dist/components/Icon/assets/chevron-small-right.svg.js +0 -1
- package/dist/components/Icon/assets/chevron-small-up.svg.js +0 -1
- package/dist/components/Icon/assets/claimList.svg.js +0 -1
- package/dist/components/Icon/assets/clock-outlined.svg.js +0 -1
- package/dist/components/Icon/assets/clock.svg.js +0 -1
- package/dist/components/Icon/assets/close-tag.svg.js +0 -1
- package/dist/components/Icon/assets/close.svg.js +0 -1
- package/dist/components/Icon/assets/cms-process.svg.js +0 -1
- package/dist/components/Icon/assets/composition-v2.svg.js +0 -1
- package/dist/components/Icon/assets/composition.svg.js +0 -1
- package/dist/components/Icon/assets/concert.svg.js +0 -1
- package/dist/components/Icon/assets/confirmed-matches.svg.js +0 -1
- package/dist/components/Icon/assets/conflicts.svg.js +0 -1
- package/dist/components/Icon/assets/dashboard.svg.js +0 -1
- package/dist/components/Icon/assets/dataset.svg.js +0 -1
- package/dist/components/Icon/assets/dd-arrow.svg.js +0 -1
- package/dist/components/Icon/assets/delete.svg.js +0 -1
- package/dist/components/Icon/assets/delivery.svg.js +0 -1
- package/dist/components/Icon/assets/details.svg.js +0 -1
- package/dist/components/Icon/assets/digitalUse.svg.js +0 -1
- package/dist/components/Icon/assets/distribution.svg.js +0 -1
- package/dist/components/Icon/assets/dots-vertical.svg.js +0 -1
- package/dist/components/Icon/assets/download.svg.js +0 -1
- package/dist/components/Icon/assets/duplicate.svg.js +0 -1
- package/dist/components/Icon/assets/duplicate2.svg.js +0 -1
- package/dist/components/Icon/assets/earnings.svg.js +0 -1
- package/dist/components/Icon/assets/earnings2.svg.js +0 -1
- package/dist/components/Icon/assets/edit.svg.js +0 -1
- package/dist/components/Icon/assets/entities.svg.js +0 -1
- package/dist/components/Icon/assets/entity.svg.js +0 -1
- package/dist/components/Icon/assets/error.svg.js +0 -1
- package/dist/components/Icon/assets/expenses.svg.js +0 -1
- package/dist/components/Icon/assets/external-link-v2.svg.js +0 -1
- package/dist/components/Icon/assets/external-link.svg.js +0 -1
- package/dist/components/Icon/assets/fat-arrow-down.svg.js +0 -1
- package/dist/components/Icon/assets/fat-arrow-left.svg.js +0 -1
- package/dist/components/Icon/assets/fat-arrow-right.svg.js +0 -1
- package/dist/components/Icon/assets/fat-arrow-up.svg.js +0 -1
- package/dist/components/Icon/assets/file.svg.js +0 -1
- package/dist/components/Icon/assets/financial-chart.svg.js +0 -1
- package/dist/components/Icon/assets/generatedReports.svg.js +0 -1
- package/dist/components/Icon/assets/generic-file.svg.js +0 -1
- package/dist/components/Icon/assets/generic-ordering.svg.js +0 -1
- package/dist/components/Icon/assets/global-item.svg.js +0 -1
- package/dist/components/Icon/assets/heart-fill.svg.js +0 -1
- package/dist/components/Icon/assets/heart-stroke.svg.js +0 -1
- package/dist/components/Icon/assets/help.svg.js +0 -1
- package/dist/components/Icon/assets/hourglass.svg.js +0 -1
- package/dist/components/Icon/assets/iconSelector.js +0 -1
- package/dist/components/Icon/assets/income.svg.js +0 -1
- package/dist/components/Icon/assets/info-filled.svg.js +0 -1
- package/dist/components/Icon/assets/info.svg.js +0 -1
- package/dist/components/Icon/assets/issues.svg.js +0 -1
- package/dist/components/Icon/assets/keyword.svg.js +0 -1
- package/dist/components/Icon/assets/legal-files.svg.js +0 -1
- package/dist/components/Icon/assets/linked.svg.js +0 -1
- package/dist/components/Icon/assets/lock.svg.js +0 -1
- package/dist/components/Icon/assets/mail.svg.js +0 -1
- package/dist/components/Icon/assets/manual.svg.js +0 -1
- package/dist/components/Icon/assets/menu.svg.js +0 -1
- package/dist/components/Icon/assets/microphone.svg.js +0 -1
- package/dist/components/Icon/assets/minus.svg.js +0 -1
- package/dist/components/Icon/assets/more-options-horizontal.svg.js +0 -1
- package/dist/components/Icon/assets/more-options-vertical.svg.js +0 -1
- package/dist/components/Icon/assets/music-note.svg.js +0 -1
- package/dist/components/Icon/assets/myEarnings.svg.js +0 -1
- package/dist/components/Icon/assets/notifications.svg.js +0 -1
- package/dist/components/Icon/assets/notifications2.svg.js +0 -1
- package/dist/components/Icon/assets/one-way.svg.js +0 -1
- package/dist/components/Icon/assets/others.svg.js +0 -1
- package/dist/components/Icon/assets/ownership-validation.svg.js +0 -1
- package/dist/components/Icon/assets/page-first.svg.js +0 -1
- package/dist/components/Icon/assets/page-last.svg.js +0 -1
- package/dist/components/Icon/assets/pagination-end.svg.js +0 -1
- package/dist/components/Icon/assets/pagination-start.svg.js +0 -1
- package/dist/components/Icon/assets/pause.svg.js +0 -1
- package/dist/components/Icon/assets/percentage.svg.js +0 -1
- package/dist/components/Icon/assets/play-count.svg.js +0 -1
- package/dist/components/Icon/assets/plus.svg.js +0 -1
- package/dist/components/Icon/assets/policies.svg.js +0 -1
- package/dist/components/Icon/assets/process-management.svg.js +0 -1
- package/dist/components/Icon/assets/process.svg.js +0 -1
- package/dist/components/Icon/assets/processed-logs.svg.js +0 -1
- package/dist/components/Icon/assets/proposed.svg.js +0 -1
- package/dist/components/Icon/assets/publicPerformance.svg.js +0 -1
- package/dist/components/Icon/assets/publisher.svg.js +0 -1
- package/dist/components/Icon/assets/record-label-v2.svg.js +0 -1
- package/dist/components/Icon/assets/record-label.svg.js +0 -1
- package/dist/components/Icon/assets/recording.svg.js +0 -1
- package/dist/components/Icon/assets/reference-file.svg.js +0 -1
- package/dist/components/Icon/assets/refresh.svg.js +0 -1
- package/dist/components/Icon/assets/relations.svg.js +0 -1
- package/dist/components/Icon/assets/restart.svg.js +0 -1
- package/dist/components/Icon/assets/restore.svg.js +0 -1
- package/dist/components/Icon/assets/result.svg.js +0 -1
- package/dist/components/Icon/assets/resume.svg.js +0 -1
- package/dist/components/Icon/assets/royaltyShares.svg.js +0 -1
- package/dist/components/Icon/assets/search-music.svg.js +0 -1
- package/dist/components/Icon/assets/search-thunder.svg.js +0 -1
- package/dist/components/Icon/assets/search.svg.js +0 -1
- package/dist/components/Icon/assets/settings.svg.js +0 -1
- package/dist/components/Icon/assets/sight.svg.js +0 -1
- package/dist/components/Icon/assets/sort-ascending.svg.js +0 -1
- package/dist/components/Icon/assets/sort-descending.svg.js +0 -1
- package/dist/components/Icon/assets/stamp.svg.js +0 -1
- package/dist/components/Icon/assets/star.svg.js +0 -1
- package/dist/components/Icon/assets/statements.svg.js +0 -1
- package/dist/components/Icon/assets/success.svg.js +0 -1
- package/dist/components/Icon/assets/television.svg.js +0 -1
- package/dist/components/Icon/assets/thunder.svg.js +0 -1
- package/dist/components/Icon/assets/tic-tac-toe-arrow.svg.js +0 -1
- package/dist/components/Icon/assets/time-out.svg.js +0 -1
- package/dist/components/Icon/assets/training.svg.js +0 -1
- package/dist/components/Icon/assets/triangle-down.svg.js +0 -1
- package/dist/components/Icon/assets/triangle-left.svg.js +0 -1
- package/dist/components/Icon/assets/triangle-right.svg.js +0 -1
- package/dist/components/Icon/assets/triangle-up.svg.js +0 -1
- package/dist/components/Icon/assets/trophy.svg.js +0 -1
- package/dist/components/Icon/assets/unpaired-v2.svg.js +0 -1
- package/dist/components/Icon/assets/unpaired.svg.js +0 -1
- package/dist/components/Icon/assets/update.svg.js +0 -1
- package/dist/components/Icon/assets/upload.svg.js +0 -1
- package/dist/components/Icon/assets/user-avatar.svg.js +0 -1
- package/dist/components/Icon/assets/user.svg.js +0 -1
- package/dist/components/Icon/assets/userCheck.svg.js +0 -1
- package/dist/components/Icon/assets/users.svg.js +0 -1
- package/dist/components/Icon/assets/users2.svg.js +0 -1
- package/dist/components/Icon/assets/videoConfirmation.svg.js +0 -1
- package/dist/components/Icon/assets/view.svg.js +0 -1
- package/dist/components/Icon/assets/warning.svg.js +0 -1
- package/dist/components/Icon/assets/works.svg.js +0 -1
- package/dist/components/Icon/assets/writer.svg.js +0 -1
- package/dist/components/Icon/assets/youtube.svg.js +0 -1
- package/dist/components/IconButton/IconButton.js +0 -1
- package/dist/components/IconButton/IconButton.style.js +0 -1
- package/dist/components/Label/Label.js +0 -1
- package/dist/components/Label/Label.style.js +0 -17
- package/dist/components/List/List.js +0 -1
- package/dist/components/List/List.style.js +0 -14
- package/dist/components/List/ListItem/ListItem.js +0 -1
- package/dist/components/List/ListItem/ListItem.style.js +0 -30
- package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.js +0 -1
- package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.style.js +0 -16
- package/dist/components/List/ListItemGroup/ListItemGroup.js +0 -1
- package/dist/components/List/NormalList/NormalList.js +0 -1
- package/dist/components/List/VirtualizedList/VirtualizedList.js +0 -1
- package/dist/components/List/utils.js +0 -1
- package/dist/components/Loader/Loader.js +0 -1
- package/dist/components/Loader/Loader.style.js +0 -3
- package/dist/components/Loader/Loader.utils.js +0 -1
- package/dist/components/Loader/components/DotsLoader/DotsLoader.js +0 -1
- package/dist/components/Loader/components/DotsLoader/DotsLoader.style.js +0 -46
- package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.js +0 -1
- package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.style.js +0 -45
- package/dist/components/Loader/components/Spinner/Spinner.js +0 -1
- package/dist/components/Loader/components/Spinner/Spinner.style.js +0 -23
- package/dist/components/Menu/Menu.js +0 -1
- package/dist/components/Menu/Menu.style.js +0 -4
- package/dist/components/Modal/Modal.js +0 -1
- package/dist/components/Modal/Modal.style.js +0 -32
- package/dist/components/Modal/ModalContent/ModalContent.js +0 -1
- package/dist/components/Modal/ModalContent/ModalContent.style.js +0 -35
- package/dist/components/Notification/Banner/Banner.js +0 -1
- package/dist/components/Notification/InlineNotification/InlineNotification.js +0 -1
- package/dist/components/Notification/Notification.style.js +0 -24
- package/dist/components/Notification/NotificationVisual/NotificationVisual.js +0 -1
- package/dist/components/Notification/NotificationVisual/NotificationVisual.style.js +0 -8
- package/dist/components/Notification/NotificationsContainer/NotificationsContainer.js +0 -1
- package/dist/components/Notification/NotificationsContainer/NotificationsContainer.style.js +0 -36
- package/dist/components/Notification/Snackbar/Snackbar.js +0 -1
- package/dist/components/Notification/Snackbar/Snackbar.style.js +0 -26
- package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.js +0 -1
- package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.style.js +0 -28
- package/dist/components/Overlay/Overlay.js +0 -1
- package/dist/components/Overlay/Overlay.style.js +0 -37
- package/dist/components/Pagination/Pagination.js +0 -1
- package/dist/components/Radio/Radio.js +0 -1
- package/dist/components/Radio/Radio.style.js +0 -88
- package/dist/components/RadioGroup/RadioGroup.js +0 -1
- package/dist/components/RadioGroup/RadioGroupContext.js +0 -1
- package/dist/components/RadioGroup/useRadioGroup.js +0 -1
- package/dist/components/SearchField/SearchField.js +0 -1
- package/dist/components/Select/Select.js +0 -1
- package/dist/components/Select/Select.style.js +0 -13
- package/dist/components/Select/components/SelectMenu/SelectMenu.js +0 -1
- package/dist/components/Select/components/SelectMenu/SelectMenu.style.js +0 -27
- package/dist/components/Slider/Slider.js +0 -1
- package/dist/components/Slider/Slider.style.js +0 -14
- package/dist/components/Slider/components/SliderMark/SliderMark.js +0 -1
- package/dist/components/Slider/components/SliderMark/SliderMark.style.js +0 -62
- package/dist/components/Slider/components/SliderThumb/SliderThumb.js +0 -1
- package/dist/components/Slider/components/SliderThumb/SliderThumb.style.js +0 -33
- package/dist/components/Slider/components/SliderTrack/SliderTrack.js +0 -1
- package/dist/components/Slider/components/SliderTrack/SliderTrack.style.js +0 -6
- package/dist/components/Switch/Switch.js +0 -1
- package/dist/components/Switch/Switch.style.js +0 -34
- package/dist/components/Table/Table.js +0 -1
- package/dist/components/Table/Table.style.js +0 -1
- package/dist/components/Table/TableRowContext.js +0 -1
- package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.js +0 -1
- package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.style.js +0 -8
- package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.js +0 -1
- package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.style.js +0 -1
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.js +0 -1
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.style.js +0 -1
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.js +0 -1
- package/dist/components/Table/components/TableCell/TableCell.js +0 -1
- package/dist/components/Table/components/TableCell/TableCell.style.js +0 -17
- package/dist/components/Table/components/TableCell/utils.js +0 -1
- package/dist/components/Table/components/TableRow/TableRow.js +0 -1
- package/dist/components/Table/components/TableRowWrapper/TableRowWrapper.js +0 -1
- package/dist/components/Table/utils/utils.js +0 -1
- package/dist/components/TextArea/TextArea.js +0 -1
- package/dist/components/TextArea/TextArea.style.js +0 -1
- package/dist/components/TextField/TextField.js +0 -1
- package/dist/components/TextField/TextField.style.js +0 -9
- package/dist/components/TextField/components/commons.js +0 -1
- package/dist/components/TextInputBase/TextInputBase.js +0 -1
- package/dist/components/TextInputBase/TextInputBase.style.js +0 -1
- package/dist/components/TextInputBase/config.js +0 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +0 -21
- package/dist/components/Toast/Toast.js +0 -1
- package/dist/components/Toast/Toast.style.js +0 -35
- package/dist/components/Tooltip/Tooltip.js +0 -1
- package/dist/components/Tooltip/Tooltip.style.js +0 -21
- package/dist/components/TopAppBar/TopAppBar.js +0 -1
- package/dist/components/TopAppBar/TopAppBar.style.js +0 -23
- package/dist/components/TopAppBar/components/Logo/Logo.style.js +0 -15
- package/dist/components/TopAppBar/components/Logo/Logo.wrapper.js +0 -1
- package/dist/components/TopAppBar/components/Search/Search.js +0 -1
- package/dist/components/TopAppBar/components/Search/Search.style.js +0 -26
- package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.js +0 -1
- package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.style.js +0 -4
- package/dist/components/TopAppBar/components/UserMenu/UserMenu.js +0 -1
- package/dist/components/TopAppBar/components/UserMenu/UserMenu.style.js +0 -3
- package/dist/components/TruncatedContent/TruncatedContent.js +0 -1
- package/dist/components/TruncatedContent/TruncatedContent.style.js +0 -5
- package/dist/components/utils/ClickAwayListener/ClickAwayListener.js +0 -1
- package/dist/components/utils/DropdownOptions/index.js +0 -15
- package/dist/components/utils/PositionInScreen/PositionInScreen.js +0 -1
- package/dist/components/utils/PositionInScreen/PositionInScreen.style.js +0 -18
- package/dist/components/utils/handleSearch.js +0 -1
- package/dist/hooks/useBreakpoints.js +0 -1
- package/dist/hooks/useCombinedRefs.js +0 -1
- package/dist/hooks/useEscape.js +0 -1
- package/dist/hooks/useLoading.js +0 -1
- package/dist/hooks/useLocationToGetCurrentMenuItem.js +0 -1
- package/dist/hooks/usePagination.js +0 -1
- package/dist/hooks/useTheme.js +0 -1
- package/dist/hooks/useThemeSwitch.js +0 -1
- package/dist/hooks/useToggle.js +0 -1
- package/dist/hooks/useTypeColorToColorMatch.js +0 -1
- package/dist/theme/functions.js +0 -52
- package/dist/theme/globals/borderRadius.js +0 -1
- package/dist/theme/globals/borderWidth.js +0 -1
- package/dist/theme/globals/boxShadow.js +0 -1
- package/dist/theme/globals/colors.js +0 -1
- package/dist/theme/globals/constants/borderRadius.js +0 -1
- package/dist/theme/globals/constants/borderWidth.js +0 -1
- package/dist/theme/globals/constants/boxShadow.js +0 -1
- package/dist/theme/globals/constants/fontFamily.js +0 -1
- package/dist/theme/globals/constants/fontSize.js +0 -1
- package/dist/theme/globals/constants/fontWeight.js +0 -1
- package/dist/theme/globals/constants/letterSpacing.js +0 -1
- package/dist/theme/globals/constants/lineHeight.js +0 -1
- package/dist/theme/globals/constants/opacity.js +0 -1
- package/dist/theme/globals/constants/sizing.js +0 -1
- package/dist/theme/globals/constants/spacing.js +0 -1
- package/dist/theme/globals/constants/textCase.js +0 -1
- package/dist/theme/globals/constants/textDecoration.js +0 -1
- package/dist/theme/globals/elevation.js +0 -1
- package/dist/theme/globals/index.js +0 -1
- package/dist/theme/globals/opacity.js +0 -1
- package/dist/theme/globals/sizing.js +0 -1
- package/dist/theme/globals/spacing.js +0 -1
- package/dist/theme/globals/typography.js +0 -1
- package/dist/theme/index.js +0 -1
- package/dist/theme/overrides.js +0 -1
- package/dist/theme/palette.config.js +0 -1
- package/dist/theme/palette.js +0 -1
- package/dist/theme/states/disabled.js +0 -1
- package/dist/theme/states/focus.js +0 -1
- package/dist/theme/states/hover.js +0 -1
- package/dist/theme/states/pressed.js +0 -1
- package/dist/theme/states/statesConfig.js +0 -1
- package/dist/theme/states/utils.js +0 -1
- package/dist/theme/tokens/index.js +0 -1
- package/dist/theme/tokens/semantic/backdrop.js +0 -1
- package/dist/theme/tokens/semantic/backgroundColor.js +0 -1
- package/dist/theme/tokens/semantic/borderColor.js +0 -1
- package/dist/theme/tokens/semantic/disabledState.js +0 -1
- package/dist/theme/tokens/semantic/index.js +0 -1
- package/dist/theme/tokens/semantic/palette.js +0 -1
- package/dist/theme/tokens/semantic/textColor.js +0 -1
- package/dist/theme/tokens/semantic/variables/backdrop.js +0 -1
- package/dist/theme/tokens/semantic/variables/backgroundColor.js +0 -1
- package/dist/theme/tokens/semantic/variables/borderColor.js +0 -1
- package/dist/theme/tokens/semantic/variables/disabledState.js +0 -1
- package/dist/theme/tokens/semantic/variables/palette.js +0 -1
- package/dist/theme/tokens/semantic/variables/textColor.js +0 -1
- package/dist/theme/tokens/utils.js +0 -1
- package/dist/theme/utils.js +0 -1
- package/dist/utils/date.js +0 -1
- package/dist/utils/errors.js +0 -1
- package/dist/utils/helpers.js +0 -1
- package/dist/utils/size-utils.js +0 -1
- package/dist/utils/themeFunctions.js +0 -1
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import{css as r}from"@emotion/react";import{BASE_SHADE as t}from"../../../../theme/palette.js";import{rem as o}from"../../../../theme/utils.js";const e=(r,e)=>`${o(2)} solid ${e||r.utils.getColor("primary",t,"normal")};`,i=t=>o=>r`
|
|
2
|
-
width: ${o.globals.spacing.get("8")};
|
|
3
|
-
height: ${o.globals.spacing.get("8")};
|
|
4
|
-
margin: auto;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
border-top: ${e(o,t)};
|
|
7
|
-
border-right: ${e(o,t)};
|
|
8
|
-
border-bottom: ${e(o,t)};
|
|
9
|
-
border-left: ${e(o,"transparent")};
|
|
10
|
-
border-radius: 50%;
|
|
11
|
-
animation: spin 1.1s infinite linear;
|
|
12
|
-
|
|
13
|
-
@keyframes spin {
|
|
14
|
-
0% {
|
|
15
|
-
-webkit-transform: rotate(0deg);
|
|
16
|
-
transform: rotate(0deg);
|
|
17
|
-
}
|
|
18
|
-
100% {
|
|
19
|
-
-webkit-transform: rotate(360deg);
|
|
20
|
-
transform: rotate(360deg);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
`;export{i as spinnerContainer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as o,jsxs as i}from"@emotion/react/jsx-runtime";import t from"../../hooks/useTheme.js";import{useTypeColorToColorMatch as e}from"../../hooks/useTypeColorToColorMatch.js";import s from"lodash/isEmpty.js";import*as r from"react";import l from"../Button/Button.js";import{defineBackgroundColor as n}from"../Button/utils.js";import c from"../Icon/Icon.js";import a from"../utils/ClickAwayListener/ClickAwayListener.js";import{optionsStyle as m}from"../utils/DropdownOptions/index.js";import{wrapperStyle as d}from"./Menu.style.js";import p from"../Avatar/Avatar.js";import u from"../List/List.js";const f=f=>{const{items:j,onSelect:v,color:h="",size:C="md",buttonText:b="More",menuPosition:y="left",buttonType:g="primary",rightIconName:k,isFilled:z=!0,isDisabled:A=!1,leftIconName:O,iconSize:T=16,avatar:w,dataTestId:I}=f,[L,S]=r.useState(!1),x=t(),{calculateColorBetweenColorAndType:B}=e(),D=B(h,g),F=z?x.utils.getAAColorFromSwatches(D.color,D.shade):n(x,D,g,!0,!0);return o(a,Object.assign({onClick:()=>S(!1)},{children:i("div",Object.assign({css:d(),"data-testid":I},{children:[o(l,Object.assign({size:C,onClick:()=>S(!L),type:g,color:h,isDisabled:A,isFilled:z,iconRight:k?o(c,{name:k,color:F,size:T},void 0):null,iconLeft:s(w)?O?o(c,{name:O,color:F,size:T},void 0):null:o(p,Object.assign({size:1,src:null==w?void 0:w.src,color:null==w?void 0:w.color},{children:null==w?void 0:w.letter}),void 0)},{children:o("span",{children:b},void 0)}),void 0),L&&o("div",Object.assign({css:m({menuPosition:y})(x)},{children:j&&o(u,{data:j,rowSize:"small",handleOptionClick:o=>{S(!1),v(o)}},void 0)}),void 0)]}),void 0)}),void 0)};export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as o,jsxs as e}from"@emotion/react/jsx-runtime";import{useEffect as s}from"react";import t from"../../hooks/useEscape.js";import{generateTestDataId as i}from"../../utils/helpers.js";import d from"../Card/Card.js";import n from"../IconButton/IconButton.js";import r from"../utils/ClickAwayListener/ClickAwayListener.js";import{backgroundContainer as a,cardSizing as c,closeContainer as l,modalContainer as m}from"./Modal.style.js";import j from"./ModalContent/ModalContent.js";const p=({isOpen:p=!1,onClose:v,dataTestId:f,children:u,contentProps:h,isContentPadded:C=!0})=>(t((()=>{v()})),s((()=>(p&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="unset"})),[p]),p?o("div",Object.assign({css:a,"data-testid":i("modal-container",f)},{children:o(r,Object.assign({onClick:v},{children:o("div",Object.assign({css:c},{children:e(d,Object.assign({elevated:"02",radius:"3"},{children:[o("div",Object.assign({css:l},{children:o(n,{name:"close",isFilled:!1,isTransparent:!0,color:"lightGrey-650",size:"sm",onClick:v,dataTestId:"modal-close"},void 0)}),void 0),o("div",Object.assign({css:m({isContentPadded:C})},{children:h?o(j,Object.assign({},h),void 0):u}),void 0)]}),void 0)}),void 0)}),void 0)}),void 0):null);export{p as default};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import{css as e}from"@emotion/react";import{transparentize as i}from"polished";import{rem as t}from"../../theme/utils.js";const o=t=>e`
|
|
2
|
-
position: fixed;
|
|
3
|
-
z-index: 3000; // Because TextField has a z-index of 2000 in its style.
|
|
4
|
-
width: 100vw;
|
|
5
|
-
height: 100vh;
|
|
6
|
-
top: 0;
|
|
7
|
-
left: 0;
|
|
8
|
-
background-color: ${i(.8,t.globals.colors.white)};
|
|
9
|
-
display: flex;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
align-items: center;
|
|
12
|
-
`,l=e`
|
|
13
|
-
max-width: ${t(500)};
|
|
14
|
-
max-height: ${t(684)};
|
|
15
|
-
`,s=({isContentPadded:i})=>t=>e`
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: row;
|
|
18
|
-
flex-wrap: wrap;
|
|
19
|
-
|
|
20
|
-
padding: ${i?`${t.globals.spacing.get("8")} ${t.globals.spacing.get("9")} ${t.globals.spacing.get("9")} ${t.globals.spacing.get("9")}`:void 0};
|
|
21
|
-
`,a=i=>e`
|
|
22
|
-
width: 100%;
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: flex-end;
|
|
25
|
-
padding: ${i.globals.spacing.get("4")} ${i.globals.spacing.get("4")} 0 0;
|
|
26
|
-
box-sizing: border-box;
|
|
27
|
-
|
|
28
|
-
//TODO: REMOVE THIS AFTER BUTTONS REFACTOR
|
|
29
|
-
svg {
|
|
30
|
-
color: ${i.utils.getColor("lightGrey",650)};
|
|
31
|
-
}
|
|
32
|
-
`;export{o as backgroundContainer,l as cardSizing,a as closeContainer,s as modalContainer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"@emotion/react/jsx-runtime";import{generateTestDataId as s}from"../../../utils/helpers.js";import a from"../../Button/Button.js";import{modalContentContainer as i,labelContainer as o,headingContainer as d,messageContainer as n,actionsContainer as r}from"./ModalContent.style.js";const c=({label:c,heading:l,message:m,primaryCTA:p,primaryCTALabel:g,secondaryCTA:h,secondaryCTALabel:j,dataTestId:y})=>e("div",Object.assign({role:"dialog",css:i,"data-testid":s("modal-content",y)},{children:[Boolean(c)&&t("p",Object.assign({css:o},{children:c}),void 0),t("h5",Object.assign({css:d,"data-testid":s("modal-content-header",y)},{children:l}),void 0),t("p",Object.assign({css:n,"data-testid":s("modal-content-message",y)},{children:m}),void 0),e("div",Object.assign({css:r},{children:[Boolean(h&&j)&&t(a,Object.assign({type:"primary",isFilled:!1,onClick:h,size:"md",dataTestId:"modal-content-secondaryCTA",isTransparent:!0},{children:j}),void 0),Boolean(p&&g)&&t(a,Object.assign({type:"primary",onClick:p,size:"md",dataTestId:"modal-content-primaryCTA"},{children:g}),void 0)]}),void 0)]}),void 0);export{c as default};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import{css as t}from"@emotion/react";import{rem as o}from"../../../theme/utils.js";const e=o=>t`
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
flex-wrap: wrap;
|
|
7
|
-
text-align: left;
|
|
8
|
-
color: ${o.utils.getColor("lightGrey",700,"flat")};
|
|
9
|
-
font-weight: ${o.globals.typography.weights.get("regular")};
|
|
10
|
-
`,l=o=>t`
|
|
11
|
-
font-size: ${o.globals.typography.fontSizes.get("3")};
|
|
12
|
-
margin: 0 0 ${o.globals.spacing.get("3")} 0;
|
|
13
|
-
`,g=o=>t`
|
|
14
|
-
font-size: ${o.globals.typography.fontSizes.get("9")};
|
|
15
|
-
color: ${o.utils.getColor("darkGrey",850)};
|
|
16
|
-
font-weight: ${o.globals.typography.weights.get("medium")};
|
|
17
|
-
margin: 0 0 ${o.globals.spacing.get("9")} 0;
|
|
18
|
-
`,i=e=>t`
|
|
19
|
-
font-size: ${e.globals.typography.fontSizes.get("4")};
|
|
20
|
-
color: ${e.utils.getColor("lightGrey",750)};
|
|
21
|
-
max-height: ${o(430)};
|
|
22
|
-
overflow-y: hidden;
|
|
23
|
-
margin: 0;
|
|
24
|
-
`,r=o=>t`
|
|
25
|
-
width: 100%;
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: row;
|
|
28
|
-
flex-wrap: nowrap;
|
|
29
|
-
justify-content: flex-end;
|
|
30
|
-
margin: ${o.globals.spacing.get("9")} 0 0 0;
|
|
31
|
-
|
|
32
|
-
button {
|
|
33
|
-
margin-left: ${o.globals.spacing.get("6")};
|
|
34
|
-
}
|
|
35
|
-
`;export{r as actionsContainer,g as headingContainer,l as labelContainer,i as messageContainer,e as modalContentContainer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"@emotion/react/jsx-runtime";import e from"../subcomponents/CompactNotification/CompactNotification.js";const a=({hasIcon:a=!1,title:o,message:i,type:s,styleType:r="elevated",primaryCTALabel:m,primaryCTA:p,closeCTA:n,dataTestId:c})=>t(e,{hasIcon:a,message:i,title:o,variant:"banner",type:s,styleType:r,primaryCTALabel:m,primaryCTA:p,closeCTA:n,dataTestId:c},void 0);export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import t from"../subcomponents/CompactNotification/CompactNotification.js";const a=({hasIcon:a=!1,message:o,type:i,styleType:s="elevated",primaryCTALabel:r,primaryCTA:m,closeCTA:p,dataTestId:n})=>e(t,{hasIcon:a,message:o,variant:"inline",type:i,styleType:s,primaryCTALabel:r,primaryCTA:m,closeCTA:p,dataTestId:n},void 0);export{a as default};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{tint as t}from"polished";import{rem as i}from"../../theme/utils.js";const e=(o,t)=>o.utils.getColor(t,550,"normal"),n=(n,l,r)=>o`
|
|
2
|
-
border: ${i(1)} solid ${r.utils.getColor(n,100,"normal")};
|
|
3
|
-
|
|
4
|
-
&[notification-type='banner'] {
|
|
5
|
-
box-shadow: ${r.globals.elevation["02"]};
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
${"outlined"===l?`\n border: ${i(2)} solid ${e(r,n)};\n background: white;\n `:`\n background: ${t(.95,e(r,n))};\n`}
|
|
9
|
-
`,l=()=>t=>o`
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: row;
|
|
12
|
-
justify-content: flex-end;
|
|
13
|
-
margin-top: ${t.globals.spacing.get("6")};
|
|
14
|
-
position: sticky;
|
|
15
|
-
bottom: ${t.globals.spacing.get("6")};
|
|
16
|
-
top: 100%;
|
|
17
|
-
`,r=()=>t=>o`
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
margin-left: ${t.globals.spacing.get("6")};
|
|
20
|
-
`,g=()=>t=>o`
|
|
21
|
-
padding-right: ${t.globals.spacing.get("4")};
|
|
22
|
-
`,s=()=>t=>o`
|
|
23
|
-
font-weight: ${t.globals.typography.weights.get("bold")};
|
|
24
|
-
`;export{r as actionContainer,l as actionsContainer,s as boldMessageContainer,g as iconContainer,n as notificationsContainerPerType,e as typeToThemePalette};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as i,jsx as s}from"@emotion/react/jsx-runtime";import{generateTestDataId as t}from"../../../utils/helpers.js";import e from"../../Button/Button.js";import{boldMessageContainer as n,actionsContainer as r,actionContainer as a}from"../Notification.style.js";import{visualContainer as o,descriptionContainer as c}from"./NotificationVisual.style.js";const d=({title:d,primaryCTALabel:l="OK",primaryCTA:m,secondaryCTALabel:v="Cancel",secondaryCTA:p,description:j,dataTestId:b})=>i("div",Object.assign({css:o()},{children:[s("div",Object.assign({css:n()},{children:d}),void 0),s("div",Object.assign({css:c()},{children:j}),void 0),i("div",Object.assign({css:r()},{children:[s("div",Object.assign({css:a(),"data-testid":t("visual-secondary",b)},{children:s(e,Object.assign({type:"link",isTransparent:!0,size:"sm",onClick:p},{children:v}),void 0)}),void 0),s("div",Object.assign({css:a(),"data-testid":t("visual-primary",b)},{children:s(e,Object.assign({type:"link",isTransparent:!0,size:"sm",onClick:m},{children:l}),void 0)}),void 0)]}),void 0)]}),void 0);export{d as default};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{css as t}from"@emotion/react";import{rem as o}from"../../../theme/utils.js";const i=()=>o=>t`
|
|
2
|
-
margin: ${o.globals.spacing.get("6")};
|
|
3
|
-
`,a=()=>i=>t`
|
|
4
|
-
margin-top: ${i.globals.spacing.get("4")};
|
|
5
|
-
max-height: ${o(180)};
|
|
6
|
-
overflow: auto;
|
|
7
|
-
max-width: fit-content;
|
|
8
|
-
`;export{a as descriptionContainer,i as visualContainer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"@emotion/react/jsx-runtime";import o from"react-dom";import{notificationsContainer as r}from"./NotificationsContainer.style.js";const e=e=>{const{children:i,position:n,parent:s=document.body}=e;return null===s?null:o.createPortal(t("div",Object.assign({css:r(n,s)},{children:i}),void 0),s)};export{e as default};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import{css as t}from"@emotion/react";import{rem as i}from"../../../theme/utils.js";const o={"top-right":"top:0; right: 0; align-items: flex-end;","top-left":"top:0; left: 0; align-items: flex-start;","bottom-left":"bottom:0; left: 0; align-items: flex-start;","bottom-right":"bottom:0; right: 0; align-items: flex-end;"},n=(n,e)=>a=>{return t`
|
|
2
|
-
position: ${e===document.body?"fixed":"absolute"};
|
|
3
|
-
${l=o[n],t`
|
|
4
|
-
${l}
|
|
5
|
-
`};
|
|
6
|
-
max-width: 66%;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
z-index: 2500;
|
|
10
|
-
margin: ${a.globals.spacing.get("4")} ${a.globals.spacing.get("6")} ${a.globals.spacing.get("6")};
|
|
11
|
-
> div {
|
|
12
|
-
margin: ${a.globals.spacing.get("4")} 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
div[notification-type='toast'] {
|
|
16
|
-
min-width: ${i(336)};
|
|
17
|
-
width: 100%;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
div[notification-type='snackbar'] {
|
|
21
|
-
min-width: ${i(336)};
|
|
22
|
-
width: 100%;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
div[notification-type='banner'] {
|
|
26
|
-
min-width: ${i(490)};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
div[notification-type='banner'] ~ div[notification-type='toast'] {
|
|
30
|
-
width: 100%;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
div[notification-type='banner'] ~ div[notification-type='snackbar'] {
|
|
34
|
-
width: 100%;
|
|
35
|
-
}
|
|
36
|
-
`;var l};export{n as notificationsContainer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as s,jsx as i}from"@emotion/react/jsx-runtime";import e from"../../../hooks/useTheme.js";import{generateTestDataId as o}from"../../../utils/helpers.js";import t from"../../Button/Button.js";import{iconContainer as c,boldMessageContainer as n,actionContainer as a,actionsContainer as r}from"../Notification.style.js";import{typeToIconName as d}from"../subcomponents/CompactNotification/CompactNotification.js";import{cardContainer as l,topContainer as m,infoContainer as p,descriptionContainer as v}from"./Snackbar.style.js";import b from"../../Icon/Icon.js";const j=({message:j,type:h,styleType:g="elevated",primaryCTALabel:y="OK",primaryCTA:f,secondaryCTALabel:O="Cancel",secondaryCTA:C,description:k,closeCTA:T,dataTestId:u})=>{const{utils:A}=e();return s("div",Object.assign({css:l(h,g),"notification-type":"snackbar"},{children:[s("div",Object.assign({css:m()},{children:[s("div",Object.assign({css:p()},{children:[i("div",Object.assign({css:c()},{children:i(b,{name:d(h),color:h,size:20},void 0)}),void 0),i("div",Object.assign({css:n()},{children:j}),void 0)]}),void 0),i("span",Object.assign({css:a(),onClick:T,"data-testid":o("snackbar-close",u)},{children:i(b,{name:"close",color:A.getColor("lightGrey",650),size:20},void 0)}),void 0)]}),void 0),i("div",Object.assign({css:v()},{children:k}),void 0),s("div",Object.assign({css:r()},{children:[i("div",Object.assign({css:a(),"data-testid":o("snackbar-secondary",u)},{children:i(t,Object.assign({type:"link",isTransparent:!0,size:"sm",onClick:C},{children:O}),void 0)}),void 0),i("div",Object.assign({css:a(),"data-testid":o("snackbar-primary",u)},{children:i(t,Object.assign({type:"link",isTransparent:!0,size:"sm",onClick:f},{children:y}),void 0)}),void 0)]}),void 0)]}),void 0)};export{j as default};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{rem as e}from"../../../theme/utils.js";import{typeToThemePalette as t}from"../Notification.style.js";const i=(i,n)=>l=>o`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
padding: ${l.globals.spacing.get("6")};
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
min-height: ${e(164)};
|
|
8
|
-
max-height: ${e(294)};
|
|
9
|
-
border-radius: ${e(8)};
|
|
10
|
-
background: ${l.globals.colors.white};
|
|
11
|
-
${((o,i,n)=>"outlined"===i?`\n border: ${e(2)} solid ${t(n,o)};\n `:` \n border-left: ${t(n,o)} ${e(4)} solid;\n box-shadow: ${n.globals.elevation["02"]};\n`)(i,n,l)};
|
|
12
|
-
`,n=()=>e=>o`
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
padding-bottom: ${e.globals.spacing.get("6")};
|
|
17
|
-
`,l=()=>()=>o`
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
`,a=()=>t=>o`
|
|
21
|
-
padding-bottom: ${t.globals.spacing.get("6")};
|
|
22
|
-
font-size: ${t.globals.typography.fontSizes.get("3")};
|
|
23
|
-
max-height: ${e(194)};
|
|
24
|
-
overflow: auto;
|
|
25
|
-
max-width: fit-content;
|
|
26
|
-
`;export{i as cardContainer,a as descriptionContainer,l as infoContainer,n as topContainer};
|
package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as i,jsx as t}from"@emotion/react/jsx-runtime";import s from"../../../../hooks/useTheme.js";import{generateTestDataId as e}from"../../../../utils/helpers.js";import o from"../../../Button/Button.js";import n from"../../../Icon/Icon.js";import{iconContainer as a,actionContainer as r}from"../../Notification.style.js";import{notificationsContainer as c,infoContainer as d,headContainer as l,messageContainer as m,actionsContainer as p,primaryActionContainer as v}from"./CompactNotification.style.js";const j=i=>"warning"===i?"alert":i,f=({hasIcon:f=!1,message:g,variant:h,type:b,styleType:y="elevated",primaryCTALabel:u,primaryCTA:O,closeCTA:C,title:T,dataTestId:k})=>{const{utils:I}=s();return i("div",Object.assign({css:c(b,y),"data-testid":e(h,k)},"banner"==h&&{"notification-type":"banner"},{children:[i("div",Object.assign({css:d()},{children:[f&&t("div",Object.assign({css:a()},{children:t(n,{name:j(b),color:b,size:20},void 0)}),void 0),"banner"===h&&t("div",Object.assign({css:l(),"data-testid":e(`${h}-title`,k)},{children:T}),void 0),t("div",Object.assign({css:m(),"data-testid":e(`${h}-message`,k)},{children:g}),void 0)]}),void 0),i("div",Object.assign({css:p()},{children:[O&&u&&t(o,Object.assign({css:v(),type:"link",size:"sm",onClick:O,"data-testid":e("notification-primary",k)},{children:u}),void 0),C&&t("span",Object.assign({css:r(),onClick:C,"data-testid":e("notification-close",k)},{children:t(n,{name:"close",color:I.getColor("lightGrey",650),size:20},void 0)}),void 0)]}),void 0)]}),void 0)};export{f as default,j as typeToIconName};
|
package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.style.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import{css as t}from"@emotion/react";import{rem as e}from"../../../../theme/utils.js";import{notificationsContainerPerType as i}from"../../Notification.style.js";const o=(o,g)=>s=>t`
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
display: flex;
|
|
4
|
-
justify-content: space-between;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
width: 100%;
|
|
7
|
-
min-height: ${e(46)};
|
|
8
|
-
border-radius: ${s.globals.spacing.get("3")};
|
|
9
|
-
color: ${s.utils.getColor("darkGrey",850)};
|
|
10
|
-
font-size: ${s.globals.typography.fontSizes.get("3")};
|
|
11
|
-
${i(o,g,s)};
|
|
12
|
-
`,g=()=>e=>t`
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
padding: 0 ${e.globals.spacing.get("6")};
|
|
16
|
-
`,s=()=>e=>t`
|
|
17
|
-
padding: ${e.globals.spacing.get("6")} 0;
|
|
18
|
-
`,a=()=>e=>t`
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
padding-right: ${e.globals.spacing.get("6")};
|
|
22
|
-
font-weight: ${e.globals.typography.weights.get("medium")};
|
|
23
|
-
`,l=()=>e=>t`
|
|
24
|
-
padding-right: ${e.globals.spacing.get("3")};
|
|
25
|
-
font-weight: ${e.globals.typography.weights.get("medium")};
|
|
26
|
-
`,r=()=>()=>t`
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
`;export{a as actionsContainer,l as headContainer,g as infoContainer,s as messageContainer,o as notificationsContainer,r as primaryActionContainer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as i,jsxs as s}from"@emotion/react/jsx-runtime";import e from"../../hooks/useEscape.js";import o from"react";import{generateTestDataId as t}from"../../utils/helpers.js";import{backdropStyle as r,overlayStyle as a,closeIconContainer as n,contentStyle as c}from"./Overlay.style.js";import l from"../IconButton/IconButton.js";import d from"../utils/ClickAwayListener/ClickAwayListener.js";const h=({anchor:i,size:s})=>"top"===i||"bottom"===i?{display:"flex",height:s,width:"100%"}:{display:"flex",height:"100%",width:s},m=o.forwardRef((({isOpen:o,onClose:m,anchor:p="left",size:f,dataTestId:v,children:y},j)=>(e((()=>{m()})),i("div",Object.assign({css:r({isOpen:o,anchor:p}),"data-testid":t("overlay-container",v)},{children:i(d,Object.assign({onClick:()=>m(),cssStyles:h({anchor:p,size:f})},{children:s("div",Object.assign({ref:j,css:a({isOpen:o,anchor:p})},{children:[i("div",Object.assign({css:n()},{children:i(l,{name:"close",isFilled:!1,isTransparent:!0,color:"lightGrey-650",size:"sm",onClick:m,dataTestId:"overlay-close"},void 0)}),void 0),i("div",Object.assign({css:c()},{children:y}),void 0)]}),void 0)}),void 0)}),void 0))));m.displayName="Overlay";export{m as default};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import{css as t}from"@emotion/react";import{transparentize as e}from"polished";import{flex as o,transition as r}from"../../theme/functions.js";const n=()=>t`
|
|
2
|
-
justify-content: flex-end;
|
|
3
|
-
`,a=()=>t`
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,i=({isOpen:i,anchor:s})=>l=>t`
|
|
6
|
-
${o};
|
|
7
|
-
position: fixed;
|
|
8
|
-
width: 100vw;
|
|
9
|
-
height: 100vh;
|
|
10
|
-
z-index: 2500;
|
|
11
|
-
right: 0;
|
|
12
|
-
bottom: 0;
|
|
13
|
-
top: 0;
|
|
14
|
-
left: 0;
|
|
15
|
-
background-color: ${e(.25,l.globals.colors.black)};
|
|
16
|
-
visibility: ${i?"visible":"hidden"};
|
|
17
|
-
opacity: ${i?1:0};
|
|
18
|
-
${r(.2)}
|
|
19
|
-
${(e=>{switch(e){case"top":return a();case"right":return n();case"bottom":return t`
|
|
20
|
-
${n()} ${a()}
|
|
21
|
-
`;default:return t``}})(s)}
|
|
22
|
-
`,s=({isOpen:e,anchor:n})=>a=>t`
|
|
23
|
-
${o};
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
overflow-y: auto;
|
|
26
|
-
background-color: ${a.globals.colors.white};
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: auto;
|
|
29
|
-
transform: ${((t,e)=>{switch(e){case"top":return t?"translateY(0)":"translateY(-100%)";case"right":return t?"translateX(0)":"translateX(100%)";case"bottom":return t?"translateY(0)":"translateY(100%)";default:return t?"translateX(0)":"translateX(-100%)"}})(e,n)};
|
|
30
|
-
${r(.3)}
|
|
31
|
-
`,l=()=>e=>t`
|
|
32
|
-
${o};
|
|
33
|
-
justify-content: flex-end;
|
|
34
|
-
padding: ${e.globals.spacing.get("4")} ${e.globals.spacing.get("4")} 0 0;
|
|
35
|
-
`,c=()=>e=>t`
|
|
36
|
-
padding: ${e.globals.spacing.get("9")};
|
|
37
|
-
`;export{i as backdropStyle,l as closeIconContainer,c as contentStyle,s as overlayStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as i}from"@emotion/react/jsx-runtime";import a from"../../hooks/usePagination.js";import o from"../../hooks/useTheme.js";import s from"../IconButton/IconButton.js";const n=({page:n=1,count:r,onChange:t=(()=>{}),isEnhancedPaginationVisible:l=!1,isNextPageDisabled:d,isPrevPageDisabled:c})=>{const g=o(),{currentPage:m,hasNextPage:p,hasPrevPage:v,navigateToFirstPage:P,navigateToLastPage:h,navigateToNextPage:u,navigateToPrevPage:f}=a({page:n,count:r,onChange:t});return e("div",Object.assign({css:{flex:1,display:"flex",alignItems:"center",justifyContent:"space-between",color:g.utils.getColor("darkGrey",850),"> *":{padding:g.globals.spacing.get("4")}}},{children:[l&&i(s,{color:"darkGrey-850",name:"arrowToLeft",onClick:P,iconSize:20,size:"sm",isTransparent:!0,isFilled:!1,isDisabled:c||!v},void 0),i(s,{color:"darkGrey-850",name:"arrowLeft",iconSize:20,size:"sm",isTransparent:!0,isFilled:!1,onClick:f,isDisabled:c||!v},void 0),e("div",{children:["Page ",m," of ",r]},void 0),i(s,{color:"darkGrey-850",name:"arrowRight",iconSize:20,size:"sm",isTransparent:!0,isFilled:!1,onClick:u,isDisabled:d||!p},void 0),l&&i(s,{color:"darkGrey-850",name:"arrowToRight",iconSize:20,size:"sm",isTransparent:!0,isFilled:!1,onClick:h,isDisabled:d||!p},void 0)]}),void 0)};export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as s}from"@emotion/react/jsx-runtime";import*as i from"react";import o from"../../hooks/useTheme.js";import{generateTestDataId as a}from"../../utils/helpers.js";import d from"../RadioGroup/useRadioGroup.js";import{wrapperStyles as r,inputStyles as t,customRadioWrapperStyles as n,customRadioStyles as u,customRadioInnerHover as l}from"./Radio.style.js";const c=i.forwardRef(((c,m)=>{const{isChecked:p,onChange:h,value:v="on",name:f,isDisabled:j=!1,id:g,isRequired:R=!1,isFilled:b=!0,dataTestId:k}=c,[C,y]=i.useState(!1),[F,O]=i.useState(!1),q=d(),x=o(),D=()=>{y(!0)},G=()=>{y(!1)},M=null!=p?p:q?(q&&q.value)===v:F,S=null!=f?f:q&&q.name;return e("span",Object.assign({css:r(j),"data-testid":a("radio-input",k)},{children:[s("input",{css:t,onFocus:D,onBlur:G,onMouseLeave:G,onMouseOver:D,type:"radio",onChange:e=>{j||(void 0===p&&O(e.target.checked),h&&h(e),q&&q.onChange(e))},name:S,value:v,disabled:j,id:g,required:R,checked:M,ref:m},void 0),e("span",Object.assign({css:n(C,j)(x)},{children:[s("span",{css:u({isChecked:M,isDisabled:j,isFilled:b})(x)},void 0),s("span",{css:l(C,j)(x)},void 0)]}),void 0)]}),void 0)}));c.displayName="Radio";export{c as default};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import{css as e}from"@emotion/react";import{BASE_SHADE as o}from"../../theme/palette.js";import{rem as i}from"../../theme/utils.js";const r="rgba(14, 14, 23, 0.07)",t="rgba(255, 255, 255, 0.1)",a=({colorScheme:o})=>e`
|
|
2
|
-
box-shadow: 0 0 0 ${i("6px")} ${"dark"===o?t:r},
|
|
3
|
-
inset 0 0 0 ${i("6px")} ${"dark"===o?t:r};
|
|
4
|
-
`,n=e`
|
|
5
|
-
top: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
width: 100%;
|
|
8
|
-
cursor: inherit;
|
|
9
|
-
height: 100%;
|
|
10
|
-
margin: 0;
|
|
11
|
-
padding: 0;
|
|
12
|
-
z-index: 1;
|
|
13
|
-
position: absolute;
|
|
14
|
-
opacity: 0;
|
|
15
|
-
|
|
16
|
-
&:disabled {
|
|
17
|
-
cursor: default;
|
|
18
|
-
}
|
|
19
|
-
`,s=(o,r)=>t=>e`
|
|
20
|
-
position: absolute;
|
|
21
|
-
border-radius: 50%;
|
|
22
|
-
width: ${i("24px")};
|
|
23
|
-
height: ${i("24px")};
|
|
24
|
-
transition: all 0.2s ease;
|
|
25
|
-
${o&&!r&&a({colorScheme:t.colorScheme})};
|
|
26
|
-
`,l=(o,r)=>t=>e`
|
|
27
|
-
position: relative;
|
|
28
|
-
border-radius: 50%;
|
|
29
|
-
width: ${i("24px")};
|
|
30
|
-
height: ${i("24px")};
|
|
31
|
-
transition: box-shadow 0.3s ease;
|
|
32
|
-
${o&&!r&&a({colorScheme:t.colorScheme})};
|
|
33
|
-
`,p=({isChecked:e,isDisabled:o,isFilled:i})=>i=>e?"currentColor":o?`${i.utils.getColor("lightGrey",250)}`:`${i.utils.getColor("lightGrey",300)}`,d=o=>r=>e`
|
|
34
|
-
transition: all 0.2s ease;
|
|
35
|
-
border-radius: 50%;
|
|
36
|
-
width: 100%;
|
|
37
|
-
height: 100%;
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
position: absolute;
|
|
40
|
-
&:before {
|
|
41
|
-
content: '';
|
|
42
|
-
display: inline-block;
|
|
43
|
-
box-sizing: border-box;
|
|
44
|
-
margin: ${i("2px")} ${i("12px")} ${i("2px")} ${i("2px")};
|
|
45
|
-
border: solid 2px ${p(o)(r)};
|
|
46
|
-
border-radius: 50%;
|
|
47
|
-
width: ${i("20px")};
|
|
48
|
-
height: ${i("20px")};
|
|
49
|
-
vertical-align: top;
|
|
50
|
-
transition: border-color 0.2s;
|
|
51
|
-
}
|
|
52
|
-
&:after {
|
|
53
|
-
content: '';
|
|
54
|
-
display: block;
|
|
55
|
-
position: absolute;
|
|
56
|
-
top: ${i("1px")};
|
|
57
|
-
left: ${i("1px")};
|
|
58
|
-
border-radius: 50%;
|
|
59
|
-
width: ${i("12px")};
|
|
60
|
-
height: ${i("12px")};
|
|
61
|
-
background-color: ${p(o)(r)};
|
|
62
|
-
transform: translate(5px, 5px) scale(${o.isChecked?"1":"0"});
|
|
63
|
-
transition: transform 0.2s;
|
|
64
|
-
}
|
|
65
|
-
`,c=r=>t=>e`
|
|
66
|
-
position: relative;
|
|
67
|
-
|
|
68
|
-
border-radius: 50%;
|
|
69
|
-
|
|
70
|
-
width: ${i("36px")};
|
|
71
|
-
height: ${i("36px")};
|
|
72
|
-
|
|
73
|
-
color: ${t.utils.getColor("primary",o,"normal")};
|
|
74
|
-
border: 0;
|
|
75
|
-
opacity: ${r?.5:1};
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
margin: 0;
|
|
78
|
-
display: inline-flex;
|
|
79
|
-
outline: 0;
|
|
80
|
-
align-items: center;
|
|
81
|
-
user-select: none;
|
|
82
|
-
vertical-align: middle;
|
|
83
|
-
-moz-appearance: none;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
text-decoration: none;
|
|
86
|
-
-webkit-appearance: none;
|
|
87
|
-
-webkit-tap-highlight-color: transparent;
|
|
88
|
-
`;export{s as customRadioInnerHover,d as customRadioStyles,l as customRadioWrapperStyles,n as inputStyles,c as wrapperStyles};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import*as o from"react";import t from"./RadioGroupContext.js";function a(a){const{children:r,onChange:n,value:u,defaultValue:i,name:d}=a,[l,m]=o.useState(i),{current:s}=o.useRef(null!=d?d:`radio-${Math.round(1e3*Math.random())}`),c=void 0===u?l:u;return e(t.Provider,Object.assign({value:{name:s,onChange:e=>{const o=e.target;void 0===u&&m(o.value),n&&n(e)},value:c}},{children:r}),void 0)}export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as t from"react";const e=t.createContext(void 0);export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as t from"react";import o from"./RadioGroupContext.js";function r(){return t.useContext(o)}export{r as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as i,jsxs as s}from"@emotion/react/jsx-runtime";import o from"../../hooks/useTheme.js";import t from"react";import{DEFAULT_SIZE as r}from"../../utils/size-utils.js";import{rem as a}from"../../theme/utils.js";import l from"../Icon/Icon.js";import{IconWrapper as d}from"../TextField/components/commons.js";import c from"../TextInputBase/TextInputBase.js";import{inputStyle as n}from"../TextInputBase/TextInputBase.style.js";const m=t.forwardRef(((m,p)=>{const{placeholder:h="Search",isDisabled:u,size:f=r,isDark:g=!1,onClear:j,dataTestId:v,value:I=""}=m,b=e(m,["placeholder","isDisabled","size","isDark","onClear","dataTestId","value"]),T=o(),x=I.length>0;return i(t.Fragment,{children:s(c,Object.assign({dataTestId:v,isDisabled:u,size:f,styleType:"outlined",leftIcon:"search",rightIcon:"close",sx:{wrapper:{borderRadius:a(100)}}},{children:[i(d,Object.assign({iconPosition:"left"},{children:i(l,{name:"search",size:20,color:T.utils.getColor("lightGrey",650)},void 0)}),void 0),i("div",Object.assign({css:{width:"100%"}},{children:i("input",Object.assign({css:n({size:f,isDark:g,placeholder:h}),placeholder:h,disabled:u,value:I,ref:p},b),void 0)}),void 0),x&&!u&&i(d,Object.assign({onClick:()=>{j()},iconPosition:"right"},{children:i(l,{name:"close",size:20,color:T.utils.getColor("lightGrey",650),dataTestId:"search-clear"},void 0)}),void 0)]}),void 0)},void 0)}));m.displayName="SearchField";export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as s,jsx as i}from"@emotion/react/jsx-runtime";import o from"lodash/debounce.js";import t,{useEffect as a,useMemo as l}from"react";import{generateTestDataId as r}from"../../utils/helpers.js";import n from"../../hooks/useCombinedRefs.js";import c from"../../hooks/useTheme.js";import d from"../Icon/Icon.js";import u from"../TextField/TextField.js";import m from"../utils/ClickAwayListener/ClickAwayListener.js";import{handleSearch as h}from"../utils/handleSearch.js";import p from"./components/SelectMenu/SelectMenu.js";import{rightIconContainer as f,selectWrapper as v}from"./Select.style.js";import C from"../Loader/Loader.js";const b={label:"",value:""},S=()=>{},g=t.forwardRef(((g,y)=>{const{handleSelectedOption:j=(()=>{}),defaultValue:L,selectedOption:k=b,isMulti:O=!1,options:T,isAsync:w=!1,isLoading:I=!1,asyncSearch:z=(()=>{}),status:V="normal",minCharactersToSearch:A=0,hasHighlightSearch:D=!1,isSearchable:x=!0,isVirtualized:M=!1,styleType:R,isDisabled:F,isLocked:H,dataTestId:G,onClear:K}=g,N=e(g,["handleSelectedOption","defaultValue","selectedOption","isMulti","options","isAsync","isLoading","asyncSearch","status","minCharactersToSearch","hasHighlightSearch","isSearchable","isVirtualized","styleType","isDisabled","isLocked","dataTestId","onClear"]),q=c(),[B,E]=t.useState(!1),J=t.useRef(null),P=n(J,y),[Q,U]=t.useState(L||k),[W,X]=t.useState("");a((()=>{U(L||k)}),[L,k]);const Y=t.useCallback(o((e=>{z(e)}),400),[]),Z=t.useCallback((e=>{h({event:e,isSearchable:x,isAsync:w,setSearchValue:X,onChange:Y,minCharactersToSearch:A})}),[Y,w,x,A]),$=l((()=>w?T:T.filter((e=>{var s;return!W||e.label.toLowerCase().includes(W.toLowerCase())||!!(null===(s=e.options)||void 0===s?void 0:s.find((e=>e.label.toLowerCase().includes(W.toLowerCase()))))})).map((e=>{var s;return e.label.toLowerCase().includes(W.toLowerCase())?e:Object.assign(Object.assign({},e),{options:null===(s=e.options)||void 0===s?void 0:s.filter((e=>e.label.toLowerCase().includes(W.toLowerCase())))})}))),[W,T,w]),_=l((()=>x?W||Q.value?"close":"search":"triangleDown"),[Q.value,x,W]),ee=t.useCallback((()=>{x&&B&&E(!B),x&&(W||Q.value)&&(X(""),U(b),z(""),K&&K())}),[z,Q.value,x,K,B,W]),se=l((()=>s("div",Object.assign({css:f(B,x)},{children:[I&&i(C,{},void 0),i(d,{size:x?20:12,name:_,color:q.utils.getColor("lightGrey",650),onClick:ee,dataTestId:"select-right-icon"},void 0)]}),void 0)),[B,I,x,_,q.utils,ee]);return i(m,Object.assign({onClick:()=>{E(!1),X("")}},{children:s("div",Object.assign({},!(F||H)&&{onClick:()=>{var e,s;B?x||(E(!1),null===(s=null==P?void 0:P.current)||void 0===s||s.blur()):(E(!0),null===(e=null==P?void 0:P.current)||void 0===e||e.focus())}},{css:v({isSearchable:x})},{children:[i(u,Object.assign({styleType:R,rightIcon:se,onKeyDown:e=>{8===e.keyCode&&(U(b),Y(""))},onInput:Z,onChange:S,isReadOnly:!x,isDisabled:F,isLocked:H,dataTestId:r("select-input",G)},N,{status:V,value:W||Q.label,ref:P,autoComplete:"off"}),void 0),B&&i(p,{filteredOptions:$,handleOptionClick:e=>{U(e),E(!1),x&&X(""),j(e)},selectedOption:Q.value,size:N.size,status:V,isLoading:I,isVirtualized:M,searchTerm:D?W:void 0},void 0)]}),void 0)}),void 0)}));g.displayName="Select";export{g as default};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{transition as r}from"../../theme/functions.js";import{rem as t}from"../../theme/utils.js";const e=({isSearchable:r})=>()=>o`
|
|
2
|
-
position: relative;
|
|
3
|
-
min-width: ${t(150)};
|
|
4
|
-
|
|
5
|
-
* {
|
|
6
|
-
cursor: ${!r&&"pointer"};
|
|
7
|
-
}
|
|
8
|
-
`,i=(t,e)=>()=>o`
|
|
9
|
-
display: flex;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
transform: rotate(${t&&!e?"180":"0"}deg);
|
|
12
|
-
${r(.2)}
|
|
13
|
-
`;export{i as rightIconContainer,e as selectWrapper};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{useRef as i,useEffect as s}from"react";import{menuStyle as t,optionStyle as o}from"./SelectMenu.style.js";import r from"../../../List/List.js";import{MAX_NON_VIRTUALIZED_ITEMS_SELECT as l}from"../../../List/utils.js";const n=n=>{const{size:a="sm",status:c="normal",filteredOptions:d,handleOptionClick:m,selectedOption:u,isLoading:h,isVirtualized:p,searchTerm:v}=n,f=i(null);s((()=>{var e;null===(e=f.current)||void 0===e||e.scrollIntoView({block:"nearest",inline:"start"})}),[u]);return e("div",Object.assign({css:t(n)},{children:h?e("div",Object.assign({css:o({isSelected:!1,hasNoResultsExist:!0})},{children:"Loading..."}),void 0):d.length>0?e(r,{data:d,rowSize:"small",isVirtualized:p&&d.length>l,ref:f,handleOptionClick:m,searchTerm:v,selectedItem:u},void 0):e("div",Object.assign({css:o({isSelected:!1,hasNoResultsExist:!0})},{children:"No options"}),void 0)}),void 0)};export{n as default};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{darken as e}from"polished";import{rem as i}from"../../../../theme/utils.js";const t=277,l=265,s=({isSelected:i,size:t,hasNoResultsExist:l})=>s=>o`
|
|
2
|
-
padding: ${s.globals.spacing.get("6")};
|
|
3
|
-
font-size: ${s.globals.typography.fontSizes.get("md"===t?"4":"3")};
|
|
4
|
-
background-color: ${i?e(.07,s.globals.colors.white):s.globals.colors.white};
|
|
5
|
-
cursor: default;
|
|
6
|
-
color: ${l?s.utils.getColor("lightGrey",750):"initial"};
|
|
7
|
-
text-align: ${l?"center":"initial"};
|
|
8
|
-
text-overflow: ellipsis;
|
|
9
|
-
white-space: nowrap;
|
|
10
|
-
overflow-x: hidden;
|
|
11
|
-
|
|
12
|
-
&:hover {
|
|
13
|
-
background-color: ${e(.03,s.globals.colors.white)};
|
|
14
|
-
}
|
|
15
|
-
`,r=({status:e,size:t,isVirtualized:l})=>s=>o`
|
|
16
|
-
background-color: ${s.globals.colors.white};
|
|
17
|
-
border-radius: 4px;
|
|
18
|
-
box-shadow: ${s.globals.elevation["02"]};
|
|
19
|
-
top: ${"normal"!==e?"70%":"110%"};
|
|
20
|
-
z-index: 500;
|
|
21
|
-
position: absolute;
|
|
22
|
-
max-height: ${i("md"===t?277:265)};
|
|
23
|
-
overflow-y: ${l?"hidden":"auto"};
|
|
24
|
-
// TODO we need a technique to identify menu position left or right
|
|
25
|
-
min-width: 100%;
|
|
26
|
-
max-width: ${i(620)};
|
|
27
|
-
`;export{t as MAX_LARGE_HEIGHT,l as MAX_SMALL_HEIGHT,r as menuStyle,s as optionStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r,Fragment as i}from"@emotion/react/jsx-runtime";import{useRef as t}from"react";import{Range as o}from"react-range";import n from"../../hooks/useTheme.js";import l from"../TextField/TextField.js";import a from"./components/SliderMark/SliderMark.js";import s from"./components/SliderThumb/SliderThumb.js";import d from"./components/SliderTrack/SliderTrack.js";import{Container as h,InputsContainer as c,InputContainer as u}from"./Slider.style.js";const m=20,p=0,v=100,g=({values:m,onChange:p,onBlur:g,hasIncrements:f=!1,isDisabled:T=!1,dataTestPrefixId:b})=>{const x=n(),y=t(m),S=1===y.current.length;if(S&&1!==m.length)throw new Error("The Selector type Slider can only accept one initial value in the array, since it only has one thumb. Try changing the `values` prop.");if(!S&&2!==m.length)throw new Error("The Range type Slider only accepts two initial values in the array, since it has two thumbs. Try changing the `values` prop.");const I=e=>e<0?0:e>v?100:e;return e(h,Object.assign({"data-testid":`${null!=b?b:""}slider_component`},{children:[r(o,{step:f?20:1,min:0,max:v,disabled:T,values:m,onChange:p,onFinalChange:g,renderMark:({props:e,index:i})=>f&&(S?i>0:i>0&&i<5)&&r(a,{dataTestPrefixId:b,restProps:e,values:m,index:i,isSelector:S,isDisabled:T},`mark_${i}`),renderTrack:({props:e,children:i})=>r(d,Object.assign({dataTestPrefixId:b,isSelector:S,restProps:e,values:m,isDisabled:T},{children:i}),void 0),renderThumb:({props:e,value:i,index:t})=>{var o;return r(s,{dataTestId:`${null!=b?b:""}thumb_${t}`,restProps:e,isDisabled:T,value:i,initialValue:null===(o=y.current)||void 0===o?void 0:o[t]},`thumb_${t}`)}},void 0),!S&&!f&&2===m.length&&e(c,{children:[r(u,{children:r(l,{isDisabled:T,hasMinWidthCompat:!1,size:"sm",value:m[0],onChange:e=>{const r=I(parseInt((null==e?void 0:e.target.value)||"0"));p([r,m[1]])},onBlur:e=>{if(g){const r=I(parseInt((null==e?void 0:e.target.value)||"0"));g([r,m[1]])}},rightIcon:r(i,{children:"%"},void 0),sx:{textField:{color:x.utils.getColor("lightGrey",650)}}},void 0)},void 0),r(u,{children:r(l,{isDisabled:T,hasMinWidthCompat:!1,size:"sm",value:m[1],onChange:e=>{const r=I(parseInt((null==e?void 0:e.target.value)||"100"));p([m[0],r])},onBlur:e=>{if(g){const r=I(parseInt((null==e?void 0:e.target.value)||"100"));g([m[0],r])}},rightIcon:r(i,{children:"%"},void 0),sx:{textField:{color:x.utils.getColor("lightGrey",650)}}},void 0)},void 0)]},void 0)]}),void 0)};g.displayName="Slider";export{v as MAX,p as MIN,m as STEP_WITH_INCREMENTS,g as default};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import t from"@emotion/styled";import{rem as i}from"polished";import{flex as e}from"../../theme/functions.js";const o=t.div`
|
|
2
|
-
${e};
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: ${i(22)};
|
|
5
|
-
`,n=t.div`
|
|
6
|
-
${e};
|
|
7
|
-
margin-left: ${i(-7)};
|
|
8
|
-
margin-right: ${i(-7)};
|
|
9
|
-
gap: ${i(20)};
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
`,m=t.div`
|
|
13
|
-
width: ${i(80)};
|
|
14
|
-
`;export{o as Container,m as InputContainer,n as InputsContainer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{useMemo as t}from"react";import r from"../../../../hooks/useTheme.js";import{STEP_WITH_INCREMENTS as o}from"../../Slider.js";import{Mark as s,MarkHoverCircle as i}from"./SliderMark.style.js";const l=({values:l,index:a,isDisabled:u,isSelector:d,dataTestPrefixId:m="",restProps:b})=>{const n=r(),c=t((()=>d?20*a>l[0]?n.utils.getColor("blue",u?250:150):n.utils.getColor("blue",u?250:500):20*a<l[0]||20*a>l[1]?n.utils.getColor("blue",u?250:150):n.utils.getColor("blue",u?250:500)),[u,a,d,n.utils,l]),p=t((()=>(o*a).toString()),[a]);return e(s,Object.assign({"data-testid":`${m}mark_${a}`},b,{isDisabled:u,labelValue:p?`${p}%`:" ",restStyleProps:b.style,background:c},{children:e(i,{isDisabled:u},void 0)}),void 0)};export{l as default};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import o from"@emotion/styled";import{rem as e,rgba as t}from"polished";const i=o.div`
|
|
2
|
-
height: ${e(7)};
|
|
3
|
-
width: ${e(7)};
|
|
4
|
-
border-radius: 100%;
|
|
5
|
-
background: ${({background:o})=>o};
|
|
6
|
-
position: relative;
|
|
7
|
-
cursor: ${({isDisabled:o})=>o?"not-allowed":"unset"};
|
|
8
|
-
|
|
9
|
-
:hover {
|
|
10
|
-
background: ${({theme:o,isDisabled:e})=>e?void 0:o.utils.getColor("blue",600)};
|
|
11
|
-
|
|
12
|
-
::before {
|
|
13
|
-
content: '${({labelValue:o})=>o}';
|
|
14
|
-
color: white;
|
|
15
|
-
display: ${({isDisabled:o})=>o?"none":"flex"};
|
|
16
|
-
justify-content: center;
|
|
17
|
-
font-size: ${({theme:o})=>o.globals.typography.fontSizes[11]};
|
|
18
|
-
background: black;
|
|
19
|
-
position: absolute;
|
|
20
|
-
padding: ${({theme:o})=>o.globals.spacing.get("4")};
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
top: ${e(-35)};
|
|
23
|
-
left: ${e(-14.5)};
|
|
24
|
-
width: ${e(35)};
|
|
25
|
-
height: ${e(27)};
|
|
26
|
-
border-radius: 2px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
::after {
|
|
30
|
-
content: ' ';
|
|
31
|
-
display: ${({isDisabled:o})=>o?"none":"unset"};
|
|
32
|
-
position: absolute;
|
|
33
|
-
top: ${e(-10)};
|
|
34
|
-
left: ${e(-2.5)};
|
|
35
|
-
width: 0;
|
|
36
|
-
height: 0;
|
|
37
|
-
border-left: 6px solid transparent;
|
|
38
|
-
border-right: 6px solid transparent;
|
|
39
|
-
border-top: 6px solid #000;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
`,r=o.div`
|
|
43
|
-
::after {
|
|
44
|
-
content: ' ';
|
|
45
|
-
|
|
46
|
-
height: ${e(7)};
|
|
47
|
-
width: ${e(7)};
|
|
48
|
-
|
|
49
|
-
border: 4px solid transparent;
|
|
50
|
-
border-radius: 100px;
|
|
51
|
-
|
|
52
|
-
position: absolute;
|
|
53
|
-
top: ${e(-4)};
|
|
54
|
-
left: ${e(-4)};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:hover {
|
|
58
|
-
&::after {
|
|
59
|
-
border-color: ${({isDisabled:o})=>o?void 0:t(14,14,23,.1)};
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
`;export{i as Mark,r as MarkHoverCircle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"@emotion/react/jsx-runtime";import{useMemo as e}from"react";import{Thumb as s}from"./SliderThumb.style.js";const i=({isDisabled:i,value:r,initialValue:a,dataTestId:o,restProps:d})=>{const l=e((()=>a!==r),[a,r]);return t(s,Object.assign({"data-testid":o},d,{isChanged:l,isDisabled:i,restStyleProps:d.style}),void 0)};export{i as default};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import o from"@emotion/styled";import{rem as e,rgba as r}from"polished";import{transition as t}from"../../../../theme/functions.js";const i=o.div`
|
|
2
|
-
height: ${e(16)};
|
|
3
|
-
width: ${e(16)};
|
|
4
|
-
border-radius: 100px;
|
|
5
|
-
background-color: ${({theme:o,isChanged:e})=>e?o.utils.getColor("blue",500):"#fff"};
|
|
6
|
-
border: 2px solid
|
|
7
|
-
${({theme:o,isDisabled:e})=>o.utils.getColor("blue",e?250:500)};
|
|
8
|
-
${({restStyleProps:o})=>Object.assign({},o)};
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
cursor: ${({isDisabled:o})=>o?"not-allowed":"unset"} !important;
|
|
11
|
-
|
|
12
|
-
&::after {
|
|
13
|
-
content: '';
|
|
14
|
-
|
|
15
|
-
height: ${e(16)};
|
|
16
|
-
width: ${e(16)};
|
|
17
|
-
|
|
18
|
-
border: 8px solid transparent;
|
|
19
|
-
border-radius: 100px;
|
|
20
|
-
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: ${e(-10)};
|
|
23
|
-
left: ${e(-10)};
|
|
24
|
-
|
|
25
|
-
${t(.15)};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:hover {
|
|
29
|
-
&::after {
|
|
30
|
-
border-color: ${({isDisabled:o})=>o?void 0:r(14,14,23,.1)};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
`;export{i as Thumb};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{useMemo as t}from"react";import{getTrackBackground as r}from"react-range";import o from"../../../../hooks/useTheme.js";import{MIN as s,MAX as l}from"../../Slider.js";import{Track as i}from"./SliderTrack.style.js";const a=({values:a,isDisabled:m,isSelector:u,dataTestPrefixId:c="",restProps:d,children:n})=>{const p=o(),b=t((()=>r({values:a,colors:u?[p.utils.getColor("blue",m?250:500),p.utils.getColor("blue",m?250:150)]:[p.utils.getColor("blue",m?250:150),p.utils.getColor("blue",m?250:500),p.utils.getColor("blue",m?250:150)],min:s,max:l,rtl:!1})),[m,u,p.utils,a]);return e(i,Object.assign({"data-testid":`${c}track_component`},d,{isDisabled:m,restStyleProps:d.style,background:b},{children:n}),void 0)};export{a as default};
|