@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,73 +0,0 @@
|
|
|
1
|
-
import{css as e}from"@emotion/react";import{rem as i}from"../../theme/utils.js";import{BASE_SHADE as t}from"../../theme/palette.js";const o=({isDisabled:i})=>()=>e`
|
|
2
|
-
opacity: ${i?.3:1};
|
|
3
|
-
justify-content: center;
|
|
4
|
-
align-items: center;
|
|
5
|
-
display: flex;
|
|
6
|
-
`,l=({isDisabled:t})=>()=>{const o=!t&&"&:hover {\n &:before {\n display: block;\n background: rgba(0, 0, 0, 0.05);\n }\n }";return e`
|
|
7
|
-
border-radius: 100%;
|
|
8
|
-
display: flex;
|
|
9
|
-
width: ${i(48)};
|
|
10
|
-
height: ${i(48)};
|
|
11
|
-
justify-content: center;
|
|
12
|
-
align-items: center;
|
|
13
|
-
position: relative;
|
|
14
|
-
|
|
15
|
-
&:before {
|
|
16
|
-
display: none;
|
|
17
|
-
border-radius: 100%;
|
|
18
|
-
transition: all 0.2s;
|
|
19
|
-
content: ' ';
|
|
20
|
-
width: ${i(48)};
|
|
21
|
-
height: ${i(48)};
|
|
22
|
-
position: absolute;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
${o}
|
|
26
|
-
`},r=({isChecked:o,isFilled:l})=>r=>e`
|
|
27
|
-
border: 0;
|
|
28
|
-
border-radius: ${i(2)};
|
|
29
|
-
width: ${i(24)};
|
|
30
|
-
height: ${i(24)};
|
|
31
|
-
|
|
32
|
-
position: absolute;
|
|
33
|
-
opacity: 0; // hide it
|
|
34
|
-
|
|
35
|
-
& + label {
|
|
36
|
-
position: relative;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
padding: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Box.
|
|
42
|
-
& + label:before {
|
|
43
|
-
content: '';
|
|
44
|
-
transition: all 0.2s;
|
|
45
|
-
display: inline-block;
|
|
46
|
-
vertical-align: text-top;
|
|
47
|
-
width: ${i(24)};
|
|
48
|
-
height: ${i(24)};
|
|
49
|
-
${(({isChecked:e,isFilled:o,theme:l})=>e?`background: ${l.utils.getColor("primary",t,"normal")}`:o?`background: ${l.utils.getColor("lightGrey",300)}`:`background: inherit; box-shadow: inset 0px 0px 0px ${i("2px")} ${l.utils.getColor("lightGrey",300)};`)({isChecked:o,isFilled:l,theme:r})};
|
|
50
|
-
border-radius: ${i(4)};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// Disabled state label.
|
|
54
|
-
&:disabled + label {
|
|
55
|
-
cursor: not-allowed;
|
|
56
|
-
}
|
|
57
|
-
`,s=({isChecked:i})=>e`
|
|
58
|
-
span {
|
|
59
|
-
padding: 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
svg {
|
|
63
|
-
position: absolute;
|
|
64
|
-
top: 0;
|
|
65
|
-
display: ${i?"block":"none"};
|
|
66
|
-
}
|
|
67
|
-
`,a=()=>t=>e`
|
|
68
|
-
padding-left: ${i(4)};
|
|
69
|
-
font-size: ${t.globals.typography.fontSizes[15]};
|
|
70
|
-
font-weight: ${t.globals.typography.weights.get("regular")};
|
|
71
|
-
color: ${t.utils.getColor("darkGrey",750)};
|
|
72
|
-
white-space: nowrap;
|
|
73
|
-
`;export{r as checkboxStyle,l as checkboxWrapperStyle,a as labelStyle,s as markerStyle,o as wrapperStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as i,jsx as s}from"@emotion/react/jsx-runtime";import t,{Fragment as r}from"react";import{errorHandler as d,generateTestDataId as a}from"../../utils/helpers.js";import{avatarStyle as o,closeIconWrapperStyle as l,chipStyle as c}from"./Chip.style.js";import n from"./components/Badge/Badge.js";import{defaultProps as m,errors as p}from"./utils.js";import b from"../Avatar/Avatar.js";import f from"../Icon/Icon.js";const v=t.forwardRef(((t,v)=>{var{styleType:h=m.styleType,isDisabled:y=m.isDisabled,dataTestId:u=m.dataTestId}=t,j=e(t,["styleType","isDisabled","dataTestId"]);const{onClick:g,isChecked:T,thumbnail:k,fill:C,isSelected:I,onClear:O,children:S,badgeNumber:D}=j;d(p,{styleType:h,isSelected:I,isChecked:T,badgeNumber:D,isDisabled:y});const N=i(r,{children:[T&&s(f,{size:14,name:"checkmark",color:"darkGrey",variant:850},void 0),k&&s("div",Object.assign({css:o()},{children:s(b,Object.assign({color:"blue",src:k.src,dataTestPrefixId:"chip"},{children:k.name}),void 0)}),void 0),s("div",{children:S},void 0),D&&s(n,{fill:C,badgeNumber:D,isSelected:I,dataTestId:u},void 0),O&&s("div",Object.assign({css:l(y)},{children:s(f,{size:14,name:"close",color:"darkGrey",variant:850,onClick:e=>{e.stopPropagation(),y||O()}},void 0)}),void 0)]},void 0);return"read-only"===h?s("div",Object.assign({ref:v,"data-testid":a("chip",u),css:c({styleType:h,fill:C,isSelected:I}),"aria-readonly":"true"},{children:N}),void 0):s("button",Object.assign({role:"button",ref:v,"data-testid":a("chip",u),css:c({styleType:h,fill:C,isSelected:I,onClear:O,onClick:g}),onClick:g,disabled:y},{children:N}),void 0)}));v.displayName="Chip";export{v as default};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{flexCenterVertical as t}from"../../theme/functions.js";import{rem as e}from"../../theme/utils.js";import{getDisabled as r}from"../../theme/states/disabled.js";import{getFocus as s}from"../../theme/states/focus.js";import{getHover as i}from"../../theme/states/hover.js";import{getPressed as l}from"../../theme/states/pressed.js";const n=({styleType:n,fill:a="greyScale",isSelected:g,onClear:c,onClick:d})=>h=>{const m="interactive"===n,b="read-only"===n||c||g;return o`
|
|
2
|
-
${t};
|
|
3
|
-
height: ${h.globals.spacing.get("8")};
|
|
4
|
-
border-radius: ${h.globals.spacing.get("8")};
|
|
5
|
-
font-size: ${h.globals.typography.fontSizes.get("2")};
|
|
6
|
-
font-weight: ${h.globals.typography.weights.get("medium")};
|
|
7
|
-
line-height: normal;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
padding: ${h.globals.spacing.get("3")} ${h.globals.spacing.get("4")};
|
|
10
|
-
background-color: ${b?h.utils.getColor(a,50):h.globals.colors.white};
|
|
11
|
-
color: ${h.utils.getAAColorFromSwatches(a,50)};
|
|
12
|
-
border: ${e(1)} solid
|
|
13
|
-
${b?h.utils.getColor(a,550):h.utils.getColor("lightGrey",200)};
|
|
14
|
-
cursor: ${d?"pointer":"auto"};
|
|
15
|
-
width: fit-content;
|
|
16
|
-
transition: background-color 150ms linear;
|
|
17
|
-
|
|
18
|
-
&:hover:not(:disabled) {
|
|
19
|
-
background: ${b?i({theme:h,color:a,shade:50}).backgroundColor:i({theme:h}).backgroundColor};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&:focus-visible:not(:disabled) {
|
|
23
|
-
outline: ${m?s({theme:h,borderWidth:1}).styleOutline:"none"};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
${m&&`\n &:active:not(:disabled) {\n background: ${l({theme:h,color:a,shade:50}).backgroundColor};\n }\n\n\n :disabled {\n opacity: ${r().opacity};\n cursor: ${r().cursor};\n }\n `}
|
|
27
|
-
|
|
28
|
-
> :not(:last-child) {
|
|
29
|
-
margin-right: ${h.globals.spacing.get("3")};
|
|
30
|
-
}
|
|
31
|
-
`},a=t=>()=>o`
|
|
32
|
-
cursor: ${t?r().cursor:"pointer"};
|
|
33
|
-
`,g=()=>o`
|
|
34
|
-
& > div {
|
|
35
|
-
width: ${e(16)};
|
|
36
|
-
height: ${e(16)};
|
|
37
|
-
}
|
|
38
|
-
`;export{g as avatarStyle,n as chipStyle,a as closeIconWrapperStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e="read-only",t="interactive",n=[e,t];export{t as INTERACTIVE,e as READ_ONLY,n as styleType};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{generateTestDataId as t}from"../../../../utils/helpers.js";import{badgeStyle as s}from"./Badge.style.js";const i=({fill:i,isSelected:d,badgeNumber:r,dataTestId:a})=>e("div",Object.assign({"data-testid":t("badge",a),css:s({fill:i,isSelected:d})},{children:r}),void 0);export{i as default};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{css as t}from"@emotion/react";import{flex as e}from"../../../../theme/functions.js";const o=({fill:o="greyScale",isSelected:i})=>l=>t`
|
|
2
|
-
${e};
|
|
3
|
-
width: ${l.globals.spacing.get("6")};
|
|
4
|
-
height: ${l.globals.spacing.get("6")};
|
|
5
|
-
border-radius: 100%;
|
|
6
|
-
background: ${i?l.utils.getColor(o,550):l.utils.getColor("lightGrey",200)};
|
|
7
|
-
font-size: ${l.globals.typography.fontSizes.get("1")};
|
|
8
|
-
font-weight: ${l.globals.typography.weights.get("medium")};
|
|
9
|
-
align-items: center;
|
|
10
|
-
flex-shrink: 0;
|
|
11
|
-
line-height: normal;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
color: ${i?l.utils.getAAColorFromSwatches(o,550):l.utils.getAAColorFromSwatches("lightGrey",200)};
|
|
14
|
-
`;export{o as badgeStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{PropsValidationError as e}from"../../utils/errors.js";import{READ_ONLY as s,INTERACTIVE as t}from"./Chip.types.js";const i={isDisabled:!1,styleType:s,dataTestId:""},r=[{condition:({styleType:e,isSelected:t,isChecked:i,badgeNumber:r,isDisabled:o})=>Boolean(e===s&&(t||i||r||o)),error:new e("The properties isSelected, isChecked, badgeNumber and disabled are only for Interactive style type Chips.")},{condition:({styleType:e,thumbnail:s})=>Boolean(e===t&&s),error:new e("The property thumbnail is only for Read-Only style type Chips.")}];export{i as defaultProps,r as errors};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import t from"react";import o from"../../../utils/date.js";import{getLocaleFormat as a,generateTestDataId as r}from"../../../utils/helpers.js";import{FilterBase as l}from"../../Filter/components/FilterBase/FilterBase.js";import i from"../../Icon/Icon.js";import s from"../../TextField/TextField.js";import{rangeInputsWrapper as n}from"./DatePickInput.style.js";const d=()=>{},c=t.forwardRef((({handleFocus:c,filterConfig:m={},handleClear:p,dataTestId:f,isRangePicker:u,inputProps:y,selectedDay:D,dateFormatOverride:h="MM/DD/YYYY",isOpen:T},I)=>{const j=t.useCallback((e=>t=>t?o(t).format(a(e)):"")(h),[h]),F=j(D.from),b=j(D.to),g=((e,t)=>({selectDate:"Select Date"+(e?"s":""),to:e?`- ${t}`:""}))(u,b),{buttonType:v="primary",styleType:$="filled",filterType:O}=m;return e("div",Object.assign({css:n()},{children:O?e(l,{isDatePicker:!0,dataTestId:r("filter",f),isDisabled:!1,buttonType:v,styleType:$,handleOpen:c,filterType:O,onClear:p,selectedItemLabel:D.from&&`${g.selectDate} : ${F} ${g.to}`,isOpen:T,hasSelectedValue:Boolean(D.from&&`${F} - ${b}`),label:D.from?"":g.selectDate,iconName:D.from?"calendarFilled":"calendarEmpty"},void 0):e(s,u?Object.assign({ref:I},y,{onFocus:c,onKeyDown:p,dataTestId:f,onChange:d,placeholder:"Date (start) - Date (end)",value:D.from&&`${F} - ${b}`,rightIcon:e(i,{name:"calendarEmpty",color:"#676767"},void 0)}):Object.assign({ref:I},y,{onFocus:c,onKeyDown:p,dataTestId:f,onChange:d,placeholder:"Select date",value:D.to&&F,rightIcon:e(i,{name:"calendarEmpty",color:"#676767"},void 0)}),void 0)}),void 0)}));c.displayName="DatePickInput";export{c as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"@emotion/react/jsx-runtime";import{useState as e,useCallback as o,useEffect as i}from"react";import s from"../utils/ClickAwayListener/ClickAwayListener.js";import a from"../utils/PositionInScreen/PositionInScreen.js";import{datePickerStyles as r}from"./DatePicker.style.js";import d from"./DatePickInput/DatePickInput.js";import n from"./OverlayComponent/OverlayComponent.js";import{currentDay as l,initDates as m,datepickerPropValue as c}from"./utils.js";const f=[{value:"last-7-days",label:"Last 7 days",dates:[l.subtract(7,"day"),l]},{value:"last-30-days",label:"Last 30 days",dates:[l.subtract(30,"day"),l]},{value:"custom",label:"Custom",dates:[l]}],v=({isRangePicker:l=!1,onChange:v,disableDates:u,value:p={from:null==c?void 0:c.toDate(),to:null==c?void 0:c.toDate()},inputProps:y,dateFormatOverride:O,isClearable:b=!1,filterConfig:j,isDefaultNow:g=!0,dataTestId:C})=>{const[k,D]=e(!1),[P,A]=e(""),[h,I]=e(m(p,g)),[T,w]=e(m(p,g)),L=o((t=>{const e=f.find((e=>e.value===t));e&&I(Array.isArray(e.dates)?{from:e.dates[0],to:e.dates[1]}:{from:e.dates,to:e.dates}),A(t)}),[]),S=o((t=>{var e,o;const i={from:t.to&&(null===(e=t.from)||void 0===e?void 0:e.isAfter(t.to))?t.to:t.from,to:t.to&&(null===(o=t.from)||void 0===o?void 0:o.isAfter(t.to))?t.from:t.to};i.to&&D(!1),w(i),v&&v(i)}),[v]);i((()=>{l&&S(h)}),[S,l,h]);const x=o((t=>{const e=t.startOf("day"),o=t.endOf("day");return I(l?t=>t.from&&t.to?{from:e,to:void 0}:t.from?Object.assign(Object.assign({},t),{to:o}):Object.assign(Object.assign({},t),{from:e}):i=>i.from&&i.to&&t.isBetween(i.from,i.to)?{from:void 0,to:void 0}:{from:e,to:o})}),[l]),F=o((()=>{D(!1)}),[]),R=o((()=>{D(!0)}),[]),B=o((t=>!(!b&&"added"!==(null==j?void 0:j.filterType))&&((null==j?void 0:j.filterType)?(D(!1),w({to:void 0,from:void 0})):27===t.keyCode?D(!1):8===t.keyCode?w((t=>t.from&&t.to?Object.assign(Object.assign({},t),{to:void 0}):{to:void 0,from:void 0})):void 0)),[b,null==j?void 0:j.filterType]),N=o((()=>{S(h)}),[S,h]);return t(s,Object.assign({onClick:F},{children:t(a,Object.assign({isVisible:k,parent:()=>t(d,{filterConfig:j,isRangePicker:l,selectedDay:T,inputProps:y,dateFormatOverride:O,handleFocus:R,handleClear:B,isOpen:k,dataTestId:C},void 0)},{children:t("div",Object.assign({css:r()},{children:t(n,{selectedOption:P,setSelectedOption:L,extraOptions:f,isRangePicker:l,onDaySelect:x,selectedDays:h,disabledDates:u,onCancel:F,onApply:N},void 0)}),void 0)}),void 0)}),void 0)};export{v as default,f as extraOptions};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import{useTypeColorToColorMatch as s}from"../../../hooks/useTypeColorToColorMatch.js";import i from"react";import{currentDay as t}from"../utils.js";import{emptyDayStyle as o,dayWrapperStyle as a,dayStyle as r}from"./Day.style.js";var l=i.memo((({day:l,month:d,year:c,onSelect:n,isSelected:m=!1,isBetween:u=!1,isLast:y=!1,isFirst:p=!1,isDisabled:h=!1})=>{const{calculateColorBetweenColorAndType:v}=s(),C=v("","primary"),b=i.useMemo((()=>l&&t.month(d).date(l).year(c)),[c,l,d]),f=i.useMemo((()=>t.month()===d&&t.year()===c&&t.date()===l),[c,d,l]),j=i.useCallback((e=>{e.preventDefault(),n&&b&&n(b)}),[n,b]);return e("td",l?Object.assign({style:{padding:0},onClick:h?void 0:j},{children:e("div",Object.assign({css:a({isSelected:m,isBetween:u,calculatedColor:C,isLast:y,isFirst:p,isToday:f,isDisabled:h})},{children:e("div",Object.assign({css:r({isSelected:m,isBetween:u,calculatedColor:C,isLast:y,isFirst:p,isToday:f,isDisabled:h})},{children:l}),void 0)}),void 0)}):{css:o({isBetween:u})},void 0)}));export{l as default};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import{css as t}from"@emotion/react";import{rem as e}from"../../../theme/utils.js";import{getHover as r}from"../../../theme/states/hover.js";import"../../../theme/palette.js";const o=({isSelected:r,isBetween:o,calculatedColor:i,isLast:n,isFirst:a,isToday:l,isDisabled:s})=>d=>t`
|
|
2
|
-
vertical-align: middle;
|
|
3
|
-
text-align: center;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
position: relative;
|
|
6
|
-
color: ${r?d.utils.getAAColorFromSwatches(i.color,i.shade):d.utils.getColor("darkGrey",850)};
|
|
7
|
-
width: ${e(40)};
|
|
8
|
-
padding: 0 ${e(4)};
|
|
9
|
-
font-weight: ${l&&"bold"};
|
|
10
|
-
opacity: ${s?.5:1};
|
|
11
|
-
background: ${n||a?"transparent":(r||o)&&void 0!==o&&d.utils.getColor("blue",50)};
|
|
12
|
-
border-bottom-right-radius: ${n&&r&&"100%"};
|
|
13
|
-
border-top-right-radius: ${n&&r&&"100%"};
|
|
14
|
-
border-bottom-left-radius: ${a&&r&&"100%"};
|
|
15
|
-
border-top-left-radius: ${a&&r&&"100%"};
|
|
16
|
-
|
|
17
|
-
${(r||n||a)&&`&:after {\n z-index: -1;\n content: ' ';\n height: 100%;\n width: 50%;\n position: absolute;\n top: 0;\n background: ${n&&a?"transparent":(r||o)&&void 0!==o&&d.utils.getColor("blue",50)};\n left: ${n?"0":"initial"};\n right: ${a?"0":"initial"};\n border-bottom-right-radius: ${n&&r&&"100%"};\n border-top-right-radius: ${n&&r&&"100%"};\n border-bottom-left-radius: ${a&&r&&"100%"};\n border-top-left-radius: ${a&&r&&"100%"};\n }`}
|
|
18
|
-
`,i=({isBetween:e})=>r=>t`
|
|
19
|
-
vertical-align: middle;
|
|
20
|
-
text-align: center;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
position: relative;
|
|
23
|
-
background: ${e?r.utils.getColor("blue",50):"transparent"};
|
|
24
|
-
`,n=({isSelected:o,calculatedColor:i,isToday:n,isDisabled:a,isBetween:l})=>s=>t`
|
|
25
|
-
border: ${e(1)} solid ${n?s.utils.getColor("lightGrey",450):"transparent"};
|
|
26
|
-
border-radius: ${(n||o)&&"100%"};
|
|
27
|
-
width: ${e(39)};
|
|
28
|
-
height: ${e(39)};
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
background: ${o?s.utils.getColor(i.color,i.shade):"transparent"};
|
|
33
|
-
|
|
34
|
-
${!a&&`&:hover {\n border-radius: 100%;\n background: ${!o&&(l?r({theme:s,color:"blue",shade:50}).backgroundColor:r({theme:s}).backgroundColor)};\n }`}
|
|
35
|
-
`;export{n as dayStyle,o as dayWrapperStyle,i as emptyDayStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"@emotion/react/jsx-runtime";import o from"dayjs/plugin/isBetween";import r from"lodash/chunk.js";import a from"lodash/inRange.js";import*as s from"react";import{useCallback as n}from"react";import i from"../../../utils/date.js";import d from"../Day/Day.js";import{currentDay as m}from"../utils.js";import{weekDaysWrapperStyle as l,weekDayStyle as c,datesWrapperStyle as y}from"./Month.style.js";import{calculateSelectedDay as u,calculateDisabledDays as f,calculatedDayIsBetween as h,calculateSelectedDayPosition as p}from"./Month.utils.js";i.extend(o);const j=["Monday","Tuesday","Wednesday","Thurdsday","Friday","Saturday","Sunday"];var D=s.memo((({year:o,month:i,onDaySelect:D,selectedDays:b,disabledDates:g})=>{const v=s.useMemo((()=>{const e=m.month(i).year(o).date(1),t=e.daysInMonth(),s=e.day(),n=function(e,t){const o=new Date(e,t-1,1).getDay(),r=new Date(e,t,0).getDate();return Math.ceil((r+o)/7)}(o,i),d=Array(7*n).fill(null).reduce(((e,o,r)=>{const n=r+1;return[...e,a(n,s,t+s)?n-s+1:void 0]}),[]);return r(d,7)}),[o,i]),B=n(u,[]),$=n(f,[]),M=n(h,[]),w=n(p,[]);return e(s.Fragment,{children:[t("div",Object.assign({css:l()},{children:j.map((e=>t("div",Object.assign({css:c()},{children:e.substr(0,2)}),e)))}),void 0),t("table",Object.assign({css:y()},{children:t("tbody",{children:v.map(((e,r)=>t("tr",{children:e.map(((e,a)=>t(d,{year:o,month:i,day:e,onSelect:D,isDisabled:Boolean($(e,i,o,g)),isSelected:Boolean(B(e,i,o,b.from,b.to)),isBetween:Boolean(M(e,i,o,b.from,b.to)),isLast:Boolean(w(e,"last",i,o,b.from,b.to)),isFirst:Boolean(w(e,"first",i,o,b.from,b.to))},`${o}-${i}-${r}-${a}-day`)))},`${o}-${i}-${r}-week`)))},void 0)}),void 0)]},void 0)}));export{D as default};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{rem as t}from"../../../theme/utils.js";const e=()=>e=>o`
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: space-around;
|
|
4
|
-
border-top: ${t(1)} solid;
|
|
5
|
-
border-bottom: ${t(1)} solid;
|
|
6
|
-
border-color: ${e.utils.getColor("lightGrey",100)};
|
|
7
|
-
`,r=()=>e=>o`
|
|
8
|
-
color: ${e.utils.getColor("lightGrey",650)};
|
|
9
|
-
padding: ${e.globals.spacing.get("6")} 0;
|
|
10
|
-
width: ${t(39)};
|
|
11
|
-
font-size: ${e.globals.typography.fontSizes.get("3")};
|
|
12
|
-
text-align: center;
|
|
13
|
-
font-weight: ${e.globals.typography.weights.get("medium")};
|
|
14
|
-
`,l=()=>t=>o`
|
|
15
|
-
border-collapse: separate;
|
|
16
|
-
border-spacing: 0 ${t.globals.spacing.get("4")};
|
|
17
|
-
`;export{l as datesWrapperStyle,r as weekDayStyle,e as weekDaysWrapperStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"../../../utils/date.js";import{currentDay as t}from"../utils.js";const r=(r,o,n,i)=>{if(!r)return!1;const l=t.month(o).year(n).date(r);return(null==i?void 0:i.after)&&(null==i?void 0:i.before)?!l.isBetween(e(null==i?void 0:i.after),e(null==i?void 0:i.before)):(null==i?void 0:i.after)?l.isAfter(e(null==i?void 0:i.after)):(null==i?void 0:i.before)?l.isBefore(e(null==i?void 0:i.before)):(null==i?void 0:i.daysOfWeek)?null==i?void 0:i.daysOfWeek.includes(l.day()):!!(null==i?void 0:i.days)&&Boolean(null==i?void 0:i.days.find((t=>e(t).isSame(e(l),"day"))))},o=(r,o,n,i,l)=>{if(!r)return!1;const d=t.month(o).year(n).date(r);return i&&l&&e(d).isBetween(i,l)},n=(e,r="first",o,n,i,l)=>{if(e&&i&&l){const d=i.isAfter(l)?l:i,a=i.isAfter(l)?i:l,u="last"===r?a:d;return u&&u.isSame(t.month(o).year(n).date(e),"day")}return e&&(null==i?void 0:i.isSame(t.month(o).year(n).date(e),"day"))},i=(e,r,o,n,i)=>{if(!e)return!1;const l=t.month(r).year(o).date(e);return[null==n?void 0:n.format("D,M,YYYY"),null==i?void 0:i.format("D,M,YYYY")].includes(l.format("D,M,YYYY"))};export{r as calculateDisabledDays,i as calculateSelectedDay,n as calculateSelectedDayPosition,o as calculatedDayIsBetween};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as s}from"@emotion/react/jsx-runtime";import*as t from"react";import{useState as i,useCallback as o}from"react";import r from"../../Button/Button.js";import{currentDay as a}from"../utils.js";import n from"./components/MonthWrapper/MonthWrapper.js";import{overlayWrapperStyle as c,optionsWrapperStyle as d,optionStyle as l,buttonsMonthsWrapperStyle as m,monthsWrapperStyle as p,buttonsWrapperStyle as h}from"./OverlayComponent.style.js";var v=t.memo((({selectedOption:t,setSelectedOption:v=(()=>{}),isRangePicker:b=!1,extraOptions:g=[],onDaySelect:y,selectedDays:j,disabledDates:f,onCancel:D=(()=>{}),onApply:O=(()=>{})})=>{const[k,u]=i(a),[w,A]=i(a),C=o(((e="back")=>{u((s=>s.month(s.month()+("forward"===e?1:-1)))),A((s=>s.month(s.month()+("forward"===e?1:-1))))}),[k,w]);return e("div",Object.assign({css:c()},{children:[g.length>0&&b&&s("div",Object.assign({css:d()},{children:g.map((e=>s("div",Object.assign({css:l({isSelected:t===e.value}),onClick:()=>v(e.value)},{children:e.label}),e.value)))}),void 0),e("div",Object.assign({css:m({isRangePicker:b})},{children:[e("div",Object.assign({css:p({isRangePicker:b})},{children:[s(n,{date:k,onDaySelect:y,selectedDays:j,setDate:u,handleArrow:C,showedArrows:b?"left":"both",disabledDates:f,isRangePicker:b},void 0),b&&s(n,{date:w.month(w.month()+1),onDaySelect:y,selectedDays:j,setDate:A,handleArrow:C,showedArrows:b?"right":"both",disabledDates:f,isRangePicker:b},void 0)]}),void 0),!b&&e("div",Object.assign({css:h()},{children:[s(r,Object.assign({isFilled:!1,size:"sm",onClick:D,type:"primary"},{children:"Cancel"}),void 0),s(r,Object.assign({size:"sm",onClick:O,type:"primary",isDisabled:Boolean(!j.from||!j.to)},{children:"Apply"}),void 0)]}),void 0)]}),void 0)]}),void 0)}));export{v as default};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import{css as t}from"@emotion/react";import{flex as o}from"../../../theme/functions.js";const e=()=>e=>t`
|
|
2
|
-
${o};
|
|
3
|
-
border: 1px solid ${e.utils.getColor("lightGrey",100)};
|
|
4
|
-
border-radius: ${e.globals.spacing.get("3")};
|
|
5
|
-
width: fit-content;
|
|
6
|
-
`,i=()=>o=>t`
|
|
7
|
-
background-color: ${o.utils.getColor("lightGrey",null,"pale")};
|
|
8
|
-
`,n=({isSelected:o})=>e=>t`
|
|
9
|
-
white-space: nowrap;
|
|
10
|
-
padding: ${e.globals.spacing.get("6")};
|
|
11
|
-
font-weight: ${o?e.globals.typography.weights.get("medium"):e.globals.typography.weights.get("regular")};
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
background-color: ${o?e.utils.getColor("blue",50):"transparent"};
|
|
14
|
-
position: relative;
|
|
15
|
-
font-size: ${e.globals.typography.fontSizes[13]};
|
|
16
|
-
|
|
17
|
-
&:hover {
|
|
18
|
-
background-color: ${e.utils.getColor("lightGrey",50)};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
${o&&"&:after {\n content: '';\n position: absolute;\n right: -10px;\n top: 0;\n bottom: 0;\n margin: auto;\n width: 0;\n height: 0;\n border-left: 15px solid transparent;\n border-right: 15px solid transparent;\n border-top: 15px solid #fff;\n clear: both;\n transform: rotate(90deg);\n }"}
|
|
22
|
-
`,r=({isRangePicker:o})=>e=>t`
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
position: relative;
|
|
26
|
-
margin-bottom: ${o&&e.globals.spacing.get("6")};
|
|
27
|
-
`,g=({isRangePicker:o})=>e=>t`
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: row;
|
|
30
|
-
position: relative;
|
|
31
|
-
padding: 0 ${e.globals.spacing.get("8")};
|
|
32
|
-
z-index: 10;
|
|
33
|
-
|
|
34
|
-
> div:first-of-type {
|
|
35
|
-
margin-right: ${o?e.globals.spacing.get("8"):0};
|
|
36
|
-
}
|
|
37
|
-
`,l=()=>o=>t`
|
|
38
|
-
display: flex;
|
|
39
|
-
justify-content: flex-end;
|
|
40
|
-
margin-bottom: ${o.globals.spacing.get("6")};
|
|
41
|
-
margin-right: ${o.globals.spacing.get("8")};
|
|
42
|
-
|
|
43
|
-
> button {
|
|
44
|
-
margin: ${o.globals.spacing.get("4")} 0 ${o.globals.spacing.get("4")}
|
|
45
|
-
${o.globals.spacing.get("4")};
|
|
46
|
-
}
|
|
47
|
-
`;export{r as buttonsMonthsWrapperStyle,l as buttonsWrapperStyle,g as monthsWrapperStyle,n as optionStyle,i as optionsWrapperStyle,e as overlayWrapperStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"@emotion/react/jsx-runtime";import t from"../../../../../hooks/useTheme.js";import i from"lodash/range.js";import r,{useState as n,useMemo as s}from"react";import a from"../../../Month/Month.js";import{monthWrapperStyle as l,monthHeaderWrapperStyle as c,monthHeaderNavigationIconWrapperStyle as d,monthHeaderTitleWrapperStyle as m,monthHeaderTitleStyle as h}from"./MonthWrapper.style.js";import v from"../../../../Button/Button.js";import g from"../../../../Icon/Icon.js";import f from"../../../../Select/components/SelectMenu/SelectMenu.js";import p from"../../../../utils/ClickAwayListener/ClickAwayListener.js";var u=r.memo((({setDate:u,onDaySelect:j=(()=>{}),selectedDays:M,date:b,handleArrow:k=(()=>{}),showedArrows:Y="both",disabledDates:y,isRangePicker:O=!1})=>{const[C,D]=n(!1),w=t(),S=s((()=>function(e){const o=(new Date).getFullYear()+10,t=(new Date).getFullYear()-10;return i(t,o).map((o=>({value:o.toString(),label:`${e.format("MMMM")} ${o.toString()}`})))}(b)),[b]);return e(r.Fragment,{children:o("div",Object.assign({css:l()},{children:[o("div",Object.assign({css:c()},{children:[("left"===Y||"both"===Y)&&e("div",Object.assign({onClick:()=>k("back"),css:d({position:"left"})},{children:e(g,{name:"chevronSmallLeft",color:w.utils.getColor("darkGrey",850),size:25},void 0)}),void 0),o(p,Object.assign({onClick:()=>{D(!1)}},{children:[o("div",Object.assign({css:m({isRangePicker:O})},{children:[e("div",Object.assign({css:h({isRangePicker:O})},{children:O?o("div",{children:[b.format("MMMM")," ",b.format("YYYY")]},void 0):o(v,Object.assign({onClick:()=>D(!C),color:"neutralWhite-100",iconRight:e(g,{name:"triangleDown",size:10,color:w.utils.getColor("darkGrey",850)},void 0)},{children:[b.format("MMMM")," ",b.format("YYYY")]}),void 0)}),void 0),C&&e(f,{filteredOptions:S,handleOptionClick:e=>{u(b.year(Number(e.value))),D(!1)},selectedOption:b.format("YYYY")},void 0)]}),void 0),("right"===Y||"both"===Y)&&e("div",Object.assign({onClick:()=>k("forward"),css:d({position:"right"})},{children:e(g,{name:"chevronSmallRight",color:w.utils.getColor("darkGrey",850),size:25},void 0)}),void 0)]}),void 0)]}),void 0),e(a,{year:b.year(),month:b.month(),onDaySelect:j,selectedDays:M,disabledDates:y},void 0)]}),void 0)},void 0)}));export{u as default};
|
package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import{css as t}from"@emotion/react";import{rem as e}from"../../../../../theme/utils.js";const i=()=>()=>t`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
`,n=()=>()=>t`
|
|
5
|
-
display: flex;
|
|
6
|
-
align-content: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
position: relative;
|
|
9
|
-
`,o=({position:i="left"})=>()=>t`
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
margin: auto ${e(5)};
|
|
12
|
-
position: absolute;
|
|
13
|
-
${"left"===i?"left: 0":"right: 0"};
|
|
14
|
-
top: 0;
|
|
15
|
-
bottom: 0;
|
|
16
|
-
height: fit-content;
|
|
17
|
-
z-index: 10;
|
|
18
|
-
`,l=({isRangePicker:e})=>i=>t`
|
|
19
|
-
margin: ${e&&`${i.globals.spacing.get("6")} 0`};
|
|
20
|
-
padding: 0;
|
|
21
|
-
align-content: center;
|
|
22
|
-
text-align: center;
|
|
23
|
-
flex: 1;
|
|
24
|
-
display: flex;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
align-items: center;
|
|
27
|
-
position: relative;
|
|
28
|
-
`,r=({isRangePicker:e})=>i=>t`
|
|
29
|
-
margin: 0 ${i.globals.spacing.get("4")};
|
|
30
|
-
padding: ${i.globals.spacing.get("4")};
|
|
31
|
-
display: flex;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
cursor: ${!e&&"pointer"};
|
|
34
|
-
font-weight: ${i.globals.typography.weights.get("medium")};
|
|
35
|
-
color: ${i.utils.getColor("darkGrey",850)};
|
|
36
|
-
`;export{o as monthHeaderNavigationIconWrapperStyle,r as monthHeaderTitleStyle,l as monthHeaderTitleWrapperStyle,n as monthHeaderWrapperStyle,i as monthWrapperStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import o from"../../utils/date.js";const t=o("11-03-2020 12:00:00"),e="test"!==process.env.NODE_ENV?void 0:o("11-03-2020 12:00:00"),s=(t,e)=>{const s=e||Object.values(t).some((o=>o));return{from:s?o(t.from):void 0,to:s?o(t.to):void 0}};export{t as currentDay,e as datepickerPropValue,s as initDates};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as o}from"@emotion/react/jsx-runtime";import s from"../../hooks/useBreakpoints.js";import r from"lodash/omit.js";import{drawerContainerStyle as t}from"./Drawer.style.js";import d from"./Navigation/Navigation.js";const i=i=>{var a;const n=s(),m=n.des1200&&!n.des1440;return e("div",Object.assign({css:t(i.isExpanded,n.des1200,!n.des1440),onMouseEnter:()=>m&&i.setExpanded(!0),onMouseLeave:()=>m&&i.setExpanded(!1),"data-testid":"sidebar"},{children:[null===(a=i.renderHeader)||void 0===a?void 0:a.call(i),o(d,Object.assign({},r(i,"renderHeader")),void 0)]}),void 0)};export{i as default};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{transition as t}from"../../theme/functions.js";import{rem as e}from"../../theme/utils.js";const i=(i,r,h)=>l=>o`
|
|
2
|
-
${t(.2)};
|
|
3
|
-
width: ${e(i?"308px":r?"112px":"0px")};
|
|
4
|
-
background-color: white;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
flex-grow: 0;
|
|
7
|
-
flex-shrink: 0;
|
|
8
|
-
height: 100%;
|
|
9
|
-
min-height: 100%;
|
|
10
|
-
z-index: 100;
|
|
11
|
-
position: ${h?"absolute":"relative"};
|
|
12
|
-
border-right: ${e(1)} solid ${l.utils.getColor("lightGrey",200)};
|
|
13
|
-
`;export{i as drawerContainerStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"@emotion/react/jsx-runtime";import{useTypeColorToColorMatch as i}from"../../../../hooks/useTypeColorToColorMatch.js";import o,{memo as s,useMemo as a}from"react";import{NavLink as n}from"react-router-dom";import{BASE_SHADE as r}from"../../../../theme/palette.js";import l from"../../../../hooks/useTheme.js";import{arrowContainerStyle as c,menuIconStyle as m,menuItemTextStyle as d,menuItemStyle as h,subMenuLinkStyle as p,subMenuIconStyle as g,menuLinkStyle as u}from"../Navigation.style.js";import v from"../../../ExpandCollapse/ExpandCollapse.js";import j from"../../../Icon/Icon.js";const C=s((({isCurrent:s,isExpanded:C,name:b,url:x,iconName:f,options:y,toggleMenuItem:O,state:N})=>{const A=l(),{calculateColorBetweenColorAndType:k}=i(),{color:E,shade:F}=k("","primary"),I=a((()=>y.length>0),[y.length]),T=e(o.Fragment,{children:[t("div",Object.assign({css:c(C,I)},{children:t(j,{name:"triangleRight",color:A.utils.getColor("lightGrey",650),size:10},void 0)}),void 0),t("div",Object.assign({css:m(s)},{children:t(j,{name:f,color:s?A.utils.getAAColorFromSwatches(E,F):A.utils.getColor("lightGrey",850),size:20,variant:s?F:r},void 0)}),void 0),t("span",Object.assign({className:"menu-item-text",css:d(s)},{children:b}),void 0)]},void 0);return t(o.Fragment,{children:I?t(v,Object.assign({isExpanded:C,onChange:()=>O(x),textAndControl:e=>t("button",Object.assign({type:"button",css:h(),"data-testid":x,onClick:e},{children:T}),void 0)},{children:()=>t(o.Fragment,{children:y.map((i=>i.isVisible&&e(n,Object.assign({exact:!0,to:{pathname:i.url,state:i.state},"data-testid":i.url,activeClassName:"active",isActive:null==i?void 0:i.isActive,css:p(),id:"submenu-item-link"},{children:[t("div",Object.assign({css:g()},{children:t(j,{name:i.iconName,color:A.utils.getColor("lightGrey",650),size:20},void 0)}),void 0),t("span",Object.assign({className:"submenu-item-text"},{children:i.name}),void 0)]}),i.url)))},void 0)}),void 0):t(n,Object.assign({exact:!0,to:{pathname:x,state:N},"data-testid":x,activeClassName:"active",css:u()},{children:T}),x)},void 0)}));C.displayName="MenuItem";export{C as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import t from"../../../hooks/useLocationToGetCurrentMenuItem.js";import{useState as r,useCallback as i}from"react";import o from"./MenuItem/MenuItem.js";import{navigationContainerStyle as s}from"./Navigation.style.js";const n=({menuItems:n,isExpanded:m})=>{const[u,a]=r([]),[c]=t(n,a),d=i((e=>{a((t=>-1!==t.indexOf(e)?[]:[e]))}),[]);return e("div",Object.assign({css:s(m)},{children:n.map((t=>t.isVisible&&e(o,Object.assign({isCurrent:c===t.url,isExpanded:u.includes(t.url),toggleMenuItem:d},t),t.url)))}),void 0)};export{n as default};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{transition as t,flexCenter as e,flexCenterVertical as r}from"../../../theme/functions.js";import{BASE_SHADE as i}from"../../../theme/palette.js";import{rem as l}from"../../../theme/utils.js";import{fillPickerBasedOnType as a}from"../../../utils/themeFunctions.js";import{getFocus as g}from"../../../theme/states/focus.js";import{getHover as n}from"../../../theme/states/hover.js";import{getPressed as s}from"../../../theme/states/pressed.js";const h=e=>()=>o`
|
|
2
|
-
${t(10.2)};
|
|
3
|
-
width: 100%;
|
|
4
|
-
background-color: white;
|
|
5
|
-
height: 100%;
|
|
6
|
-
padding: ${l(24)} 0;
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
|
|
9
|
-
.menu-item-text,
|
|
10
|
-
.submenu-item-text {
|
|
11
|
-
opacity: ${e?1:0};
|
|
12
|
-
width: ${l(e?204:16)};
|
|
13
|
-
white-space: nowrap;
|
|
14
|
-
}
|
|
15
|
-
`,$=t=>o`
|
|
16
|
-
${r};
|
|
17
|
-
height: ${l(44)};
|
|
18
|
-
color: ${t.utils.getColor("darkGrey",850)};
|
|
19
|
-
cursor: default;
|
|
20
|
-
`,c=()=>t=>o`
|
|
21
|
-
${$(t)};
|
|
22
|
-
width: 100%;
|
|
23
|
-
font-size: ${l(16)};
|
|
24
|
-
font-weight: ${t.globals.typography.weights.get("regular")};
|
|
25
|
-
padding: 0 ${t.globals.spacing.get("6")};
|
|
26
|
-
background: transparent;
|
|
27
|
-
border: 0 solid transparent;
|
|
28
|
-
display: flex;
|
|
29
|
-
text-align: left;
|
|
30
|
-
text-decoration: none;
|
|
31
|
-
|
|
32
|
-
&:hover {
|
|
33
|
-
background-color: ${n({theme:t}).backgroundColor};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:focus-visible {
|
|
37
|
-
outline: ${g({theme:t}).styleOutline};
|
|
38
|
-
}
|
|
39
|
-
`,m=()=>t=>o`
|
|
40
|
-
${c()(t)};
|
|
41
|
-
text-decoration: none;
|
|
42
|
-
`,d=e=>r=>o`
|
|
43
|
-
${t(.2)};
|
|
44
|
-
font-weight: ${e?r.globals.typography.weights.get("bold"):"initial"};
|
|
45
|
-
`,p=()=>e=>o`
|
|
46
|
-
${$(e)};
|
|
47
|
-
${t(.2)};
|
|
48
|
-
box-sizing: border-box;
|
|
49
|
-
font-size: ${e.globals.typography.fontSizes.get("3")};
|
|
50
|
-
color: ${e.utils.getColor("darkGrey",850)};
|
|
51
|
-
margin: ${e.globals.spacing.get("3")} 0 ${e.globals.spacing.get("3")} 0;
|
|
52
|
-
padding-left: ${l(39)};
|
|
53
|
-
|
|
54
|
-
&:hover {
|
|
55
|
-
background-color: ${n({theme:e}).backgroundColor}; !important;
|
|
56
|
-
}
|
|
57
|
-
&.active:hover {
|
|
58
|
-
background-color: ${s({theme:e,color:"blue",shade:50}).backgroundColor} !important;
|
|
59
|
-
}
|
|
60
|
-
&.active {
|
|
61
|
-
font-weight: ${e.globals.typography.weights.get("bold")};
|
|
62
|
-
background-color: ${s({theme:e,color:"blue"}).backgroundColor} !important;
|
|
63
|
-
color: ${e.utils.getAAColor(s({theme:e,color:"blue"}).backgroundColor)};
|
|
64
|
-
|
|
65
|
-
path {
|
|
66
|
-
fill: ${e.utils.getColor("primary",i,"normal")} !important;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&:focus-visible {
|
|
71
|
-
outline: ${g({theme:e}).styleOutline};
|
|
72
|
-
}
|
|
73
|
-
text-decoration: none;
|
|
74
|
-
`,u=(r,i)=>a=>o`
|
|
75
|
-
${t(.2)};
|
|
76
|
-
${e};
|
|
77
|
-
width: ${l(24)};
|
|
78
|
-
height: ${l(24)};
|
|
79
|
-
opacity: ${i?"1":"0"};
|
|
80
|
-
transform: ${r?"rotate(90deg)":"rotate(0deg);"};
|
|
81
|
-
path {
|
|
82
|
-
background-color: ${a.utils.getColor("lightGrey",750)};
|
|
83
|
-
}
|
|
84
|
-
`,b=r=>g=>o`
|
|
85
|
-
${t(.2)};
|
|
86
|
-
${e};
|
|
87
|
-
margin-right: ${g.globals.spacing.get("4")};
|
|
88
|
-
width: ${l(32)};
|
|
89
|
-
height: ${l(32)};
|
|
90
|
-
border-radius: 50%;
|
|
91
|
-
flex-shrink: 0;
|
|
92
|
-
${r?`background-color: ${a("primary",i)(g)}; `:""}
|
|
93
|
-
`,f=()=>t=>o`
|
|
94
|
-
${e};
|
|
95
|
-
width: ${l(32)};
|
|
96
|
-
height: ${l(32)};
|
|
97
|
-
margin-right: ${t.globals.spacing.get("4")};
|
|
98
|
-
flex-shrink: 0;
|
|
99
|
-
`;export{u as arrowContainerStyle,b as menuIconStyle,c as menuItemStyle,d as menuItemTextStyle,m as menuLinkStyle,h as navigationContainerStyle,f as subMenuIconStyle,p as subMenuLinkStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e}from"@emotion/react/jsx-runtime";import*as o from"react";import{errorHandler as n,generateTestDataId as s}from"../../utils/helpers.js";import{contentStyles as i}from"./ExpandCollapse.style.js";import{useManageContentRef as r}from"./useManageContentRef.js";import{errors as a}from"./utils.js";const l=l=>{const{textAndControl:d,component:p="div",transitionDuration:m=200,content:c,children:f,isInitiallyExpanded:u=!1,isExpanded:j,onChange:x,dataTestId:h}=l;n(a,l);const[g,v]=o.useState(u),C=p,b=null!=c?c:f,y=null!=j?j:g,E=r(y,m);return t(C,Object.assign({"data-testid":s("expand-collapse",h)},{children:[d((t=>{"boolean"!=typeof j?v((t=>!t)):x&&x(t)}),y),e("div",Object.assign({css:i(y,m),ref:E},{children:b(y)}),void 0)]}),void 0)};export{l as default};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{css as t}from"@emotion/react";import{rem as o}from"../../theme/utils.js";const r=(r,e)=>t`
|
|
2
|
-
transition: opacity ${r?e+100:0}ms ease,
|
|
3
|
-
transform ${r?e+100:0}ms ease;
|
|
4
|
-
opacity: ${Number(r)};
|
|
5
|
-
transform: translateY(${r?0:o("-10px")});
|
|
6
|
-
`;export{r as contentStyles};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";const t=(t,r)=>{const i=e.useRef(null);return e.useLayoutEffect((()=>{if(null===i.current)throw new Error("Uninitialised element ref");i.current.style.height=t?"":"0"}),[t]),e.useLayoutEffect((()=>{if(null===i.current)throw new Error("Uninitialised element ref");let e;return t?i.current.style.visibility="":e=window.setTimeout((()=>{if(null===i.current)throw new Error("Uninitialised element ref");i.current.style.visibility="hidden"}),r),function(){clearTimeout(e)}}),[t,r]),i};export{t as useManageContentRef};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{PropsValidationError as e}from"../../utils/errors.js";const o=[{condition:({isExpanded:e,onChange:o})=>Boolean(void 0===e&&o||void 0===o&&"boolean"==typeof e),error:new e("If expanded is defined onChange must be defined too and vice versa")},{condition:({content:e,children:o})=>Boolean(void 0===e&&void 0===o),error:new e("Either content or children must be defined")}];export{o as errors};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import a from"lodash/debounce.js";import i,{useMemo as l}from"react";import{errorHandler as s,generateTestDataId as o}from"../../utils/helpers.js";import r from"../utils/ClickAwayListener/ClickAwayListener.js";import{FilterBase as n}from"./components/FilterBase/FilterBase.js";import c from"./components/Options/Options.js";import d from"./components/SearchInput/SearchInput.js";import{menuStyle as m}from"./Filter.style.js";import{errors as u}from"./utils.js";import{handleSearch as p}from"../utils/handleSearch.js";const f=i.forwardRef(((f,h)=>{var b;const{items:v,onSelect:y,selectedItem:S,defaultValue:j,styleType:C,label:T="",buttonType:g="primary",filterType:I="preset",isDisabled:O=!1,dataTestId:L,isSearchable:V=!1,minCharactersToSearch:w=0,onAsyncSearch:k,isLoading:A=!1,isVirtualized:D=!1,onClear:F=(()=>{})}=f;s(u,f);const[B,x]=i.useState(!1),[z,N]=i.useState(""),R=Boolean(null==S?void 0:S.value)&&(null==S?void 0:S.value)!==j.value,U=B?"triangleUp":"triangleDown",q=l((()=>k?v:v.filter((e=>!z||e.label.toLowerCase().includes(z.toLowerCase())))),[z,v,k]),E=""===z&&!!v.length,G=i.useCallback(a((e=>{null==k||k(e)}),400),[]);return e(r,Object.assign({onClick:()=>x(!1)},{children:e(n,Object.assign({ref:h,dataTestId:L,handleOpen:()=>{N(""),x(!B)},isDisabled:O,onClear:F,selectedItemLabel:null!==(b=null==S?void 0:S.label)&&void 0!==b?b:j.label,isOpen:B,hasSelectedValue:R,label:T,iconName:U,filterType:I,buttonType:g,styleType:C},{children:B&&t("div",Object.assign({css:m(),"data-testid":o("filter-menu",L)},{children:[V&&e(d,{value:z,onChange:e=>{p({event:e,isSearchable:V,isAsync:"function"==typeof k,setSearchValue:N,onChange:G,minCharactersToSearch:w})},dataTestId:L,isLoading:A},void 0),e(c,{dataTestId:L,items:q,isVirtualized:D,defaultValue:j,isSearchable:V,selectedItem:S,onSelect:e=>{x(!1),y(e)},isDefaultOptionVisible:E},void 0)]}),void 0)}),void 0)}),void 0)}));f.displayName="Filter";export{f as default};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{css as e}from"@emotion/react";import{rem as t}from"../../theme/utils.js";import{getFocus as o}from"../../theme/states/focus.js";import{getHover as l}from"../../theme/states/hover.js";import{getPressed as i}from"../../theme/states/pressed.js";import{HAS_SELECTED_VALUE_COLOR_SHADE as r,getBorder as a,borderStyleParams as s,getTextColor as d,getBackgroundColor as n,focusBorderWidth as p,transparentFocusBorderWidth as c}from"./utils.js";const h=()=>()=>({position:"relative",display:"inline-block",height:t(36)}),g=()=>()=>({display:"flex",alignItems:"center",gap:t(4),height:"100%"}),b=({isDisabled:e,isOpen:a,hasSelectedValue:s,calculatedColor:d,styleType:n})=>h=>{const g=!e&&!a,b="filled"===n?p:c;return{background:"none",border:"none",display:"flex",padding:"0",alignItems:"center",height:"100%",minWidth:t(110),":hover > div":{backgroundColor:g?s?l({theme:h,color:d.color,shade:r}).backgroundColor:l({theme:h}).backgroundColor:void 0},":active > div":{backgroundColor:g?s?i({theme:h,color:d.color,shade:r}).backgroundColor:i({theme:h}).backgroundColor:void 0},":focus-visible > div":{border:o({theme:h,borderWidth:b}).styleBorder},":focus-visible > span":{borderTop:o({theme:h,borderWidth:b}).styleBorder,borderBottom:o({theme:h,borderWidth:b}).styleBorder}}},u=({calculatedColor:e,isDisabled:t,isOpen:o,styleType:l,hasSelectedValue:i,filterType:r})=>p=>({fontSize:p.globals.typography.fontSizes[13],cursor:t?"not-allowed":"pointer",height:"100%",opacity:t?.5:1,transition:"all 150ms linear",color:d({theme:p,isOpen:o,calculatedColor:e,hasSelectedValue:i}),backgroundColor:n({theme:p,isOpen:o,styleType:l,hasSelectedValue:i,calculatedColor:e}),border:`${s} ${a({styleType:l,theme:p,hasSelectedValue:i,filterType:r,calculatedColor:e,isOpen:o})}`,display:"flex",justifyContent:"center",width:"100%","&:hover":{border:`${s} ${a({styleType:l,theme:p,hasSelectedValue:i,filterType:r,calculatedColor:e,isOpen:o,state:"hover"})}`}}),m=e=>o=>{const{isOpen:l,calculatedColor:i,styleType:r,hasSelectedValue:d,filterType:n}=e;return{height:"100%",width:t(1),position:"relative",minWidth:t(1),transition:"all 150ms linear",backgroundColor:a({styleType:r,theme:o,hasSelectedValue:d,filterType:n,calculatedColor:i,isOpen:l,isDivider:!0}),borderTop:`${s} ${a({styleType:r,theme:o,hasSelectedValue:d,filterType:n,calculatedColor:i,isOpen:l})}`,borderBottom:`${s} ${a({styleType:r,theme:o,hasSelectedValue:d,filterType:n,calculatedColor:i,isOpen:l})}`}},y=e=>o=>Object.assign(Object.assign({},u(e)(o)),{borderLeft:"0 !important",paddingLeft:t(4),paddingRight:t(4),display:"flex",alignItems:"center",justifyContent:"center",width:t(34),borderTopRightRadius:o.globals.spacing.get("8"),borderBottomRightRadius:o.globals.spacing.get("8")}),f=e=>t=>{const{filterType:o}=e,l="preset"===o;return Object.assign(Object.assign({},u(e)(t)),{padding:`0 ${l?t.globals.spacing.get("6"):t.globals.spacing.get("3")} 0 ${t.globals.spacing.get("6")}`,borderRadius:t.globals.spacing.get("8"),borderRight:l?void 0:"0 !important",borderTopRightRadius:l?void 0:0,borderBottomRightRadius:l?void 0:0})},v=()=>()=>({lineHeight:t(15),marginLeft:0}),T=(e,t)=>o=>({fontWeight:e||t?o.globals.typography.weights.get("bold"):o.globals.typography.weights.get("regular"),display:"flex",alignItems:"center",div:{flex:"none"},span:{fontWeight:o.globals.typography.weights.get("bold")}}),C=()=>e`
|
|
2
|
-
text-overflow: ellipsis;
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
white-space: nowrap;
|
|
5
|
-
display: inline-block;
|
|
6
|
-
`,w=()=>o=>e`
|
|
7
|
-
position: absolute;
|
|
8
|
-
top: ${t(48)};
|
|
9
|
-
min-width: ${t(280)};
|
|
10
|
-
left: 0;
|
|
11
|
-
height: auto;
|
|
12
|
-
border-radius: ${o.globals.spacing.get("3")};
|
|
13
|
-
background-color: ${o.globals.colors.white};
|
|
14
|
-
box-shadow: ${o.globals.elevation["02"]};
|
|
15
|
-
z-index: 500;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
min-width: 100%;
|
|
18
|
-
max-width: ${t(620)};
|
|
19
|
-
`;export{u as buttonBaseStyle,g as buttonSpanStyle,f as buttonStyle,b as buttonWrapperStyle,v as childrenWrapperStyle,y as dividedButtonStyle,m as divider,T as labelSpanStyle,w as menuStyle,C as valueSpanStyle,h as wrapperStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as s,Fragment as i}from"@emotion/react/jsx-runtime";import o,{useCallback as t}from"react";import r from"../../../../hooks/useTheme.js";import{useTypeColorToColorMatch as l}from"../../../../hooks/useTypeColorToColorMatch.js";import{generateTestDataId as d}from"../../../../utils/helpers.js";import a from"../../../Icon/Icon.js";import{wrapperStyle as c,buttonWrapperStyle as n,buttonStyle as p,buttonSpanStyle as m,childrenWrapperStyle as h,labelSpanStyle as v,valueSpanStyle as u,divider as b,dividedButtonStyle as f}from"../../Filter.style.js";import{getTextColor as j}from"../../utils.js";const y=o.forwardRef(((o,y)=>{const{dataTestId:g,isDatePicker:C=!1,handleOpen:O,isDisabled:T,onClear:k,selectedItemLabel:I,isOpen:D,hasSelectedValue:S,label:V,iconName:w,buttonType:x="primary",filterType:z="preset",styleType:B,children:F}=o,{calculateColorBetweenColorAndType:G}=l(),N=G("",x),P=r(),A=t(((e=!1)=>D?j({theme:P,isOpen:D,calculatedColor:N,hasSelectedValue:S}):e?S?P.utils.getColor(N.color,550):P.utils.getColor("darkGrey",400):P.utils.getColor("darkGrey",850)),[N,S,D,P]),L={calculatedColor:N,buttonType:x,isDisabled:T,isOpen:D,styleType:B,hasSelectedValue:S,filterType:z};return e("div",Object.assign({css:c(),"data-testid":g},{children:[e("button",Object.assign({ref:y,"data-testid":d("filter",g),onClick:O,disabled:T,css:n(L)},{children:[s("div",Object.assign({css:p(L)},{children:e("div",Object.assign({css:m()},{children:[s("div",Object.assign({css:h()},{children:e("span",Object.assign({css:v(D,S)},{children:[V&&e("div",{children:[V," ",C?"":s(i,{children:": "},void 0)]},void 0),I&&s("span",Object.assign({css:u()},{children:I}),void 0)]}),void 0)}),void 0),s(a,{name:w,size:C?14:7,color:A()},void 0)]}),void 0)}),void 0),"added"===z&&e(i,{children:[s("span",{css:b(L)},void 0),s("div",Object.assign({css:f(L)},{children:s(a,{size:19,name:"closeTag",color:A(!0),onClick:e=>{e.stopPropagation(),k()}},void 0)}),void 0)]},void 0)]}),void 0),F]}),void 0)}));y.displayName="FilterBase";export{y as FilterBase,y as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"@emotion/react/jsx-runtime";import{emptyStyle as e}from"./Options.style.js";import{FILTER_OPTIONS_MAX_HEIGHT as i}from"../../utils.js";import s from"../../../List/List.js";import{MAX_NON_VIRTUALIZED_ITEMS_FILTER as o}from"../../../List/utils.js";const l=({items:l,onSelect:a,defaultValue:r,selectedItem:d,isDefaultOptionVisible:m,isVirtualized:n,isSearchable:u,dataTestId:c})=>{const p=l.length>o,f=p?i:void 0,h=m?r:void 0;return l.length?t(s,{data:l.filter((t=>t.value!==r.value)),rowSize:"small",defaultOption:h,selectedItem:d,isSearchable:u,handleOptionClick:t=>a(t),isVirtualized:n&&p,height:f,dataTestId:c},void 0):t("div",Object.assign({css:e()},{children:"No options"}),void 0)};export{l as default};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{flexCenter as t}from"../../../../theme/functions.js";import{rem as e}from"../../../../theme/utils.js";const i=()=>i=>o`
|
|
2
|
-
color: ${i.utils.getColor("lightGrey",750)};
|
|
3
|
-
height: ${e(48)};
|
|
4
|
-
padding: 0 ${e(16)};
|
|
5
|
-
font-size: ${i.globals.typography.fontSizes.get("3")};
|
|
6
|
-
${t};
|
|
7
|
-
`;export{i as emptyStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as o,jsx as e}from"@emotion/react/jsx-runtime";import t from"../../../../hooks/useTheme.js";import{useMemo as r}from"react";import{generateTestDataId as i}from"../../../../utils/helpers.js";import s from"../../../Icon/Icon.js";import a from"../../../Loader/Loader.js";import l from"../../../TextField/TextField.js";import{iconWrapper as d,textFieldWrapper as m}from"./SearchInput.style.js";const n=({onChange:n,value:c,dataTestId:p,isLoading:u})=>{const h=t(),f=r((()=>o("div",Object.assign({css:d()},{children:[u&&e(a,{},void 0),e(s,{size:20,name:"search",color:h.utils.getColor("lightGrey",650)},void 0)]}),void 0)),[h.utils,u]);return e("div",Object.assign({css:m()(h)},{children:e(l,{autoFocus:!0,styleType:"filled",onChange:n,"data-testid":i("filter-input",p),status:"normal",placeholder:"Search",value:c,rightIcon:f},void 0)}),void 0)};export{n as default};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{rem as e}from"../../../../theme/utils.js";const n=()=>e=>o`
|
|
2
|
-
border-bottom: 1px solid ${e.utils.getColor("lightGrey",250)};
|
|
3
|
-
|
|
4
|
-
div:first-of-type {
|
|
5
|
-
outline: none;
|
|
6
|
-
border: none;
|
|
7
|
-
box-shadow: none;
|
|
8
|
-
background-color: white;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
input {
|
|
12
|
-
border: none;
|
|
13
|
-
|
|
14
|
-
&:focus {
|
|
15
|
-
outline: none;
|
|
16
|
-
border: none;
|
|
17
|
-
box-shadow: none;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
`,r=()=>()=>o`
|
|
21
|
-
display: flex;
|
|
22
|
-
gap: ${e(25)};
|
|
23
|
-
`;export{r as iconWrapper,n as textFieldWrapper};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{rem as e}from"../../theme/utils.js";import{MAX_SHADE as t}from"../../theme/palette.js";import{PropsValidationError as r}from"../../utils/errors.js";import{defineBackgroundColor as o}from"../Button/utils.js";const l=253,s=50,a=`solid ${e(1)}`,i=2,n=0,p=({isOpen:e,theme:t,hasSelectedValue:r,calculatedColor:l,styleType:s})=>e?t.utils.getColor(l.color,500):r?t.utils.getColor(l.color,50):"filled"===s?t.utils.getColor("neutralWhite",100):"transparent"===s?"transparent":o(t,l),u=({isOpen:e,theme:t,hasSelectedValue:r,calculatedColor:o})=>r&&!e?t.utils.getAAColorFromSwatches(o.color,50):e?t.utils.getAAColorFromSwatches(o.color,o.shade):t.utils.getColor("darkGrey",850),c=({styleType:e,theme:r,hasSelectedValue:o,calculatedColor:l,isOpen:s,isDivider:a,state:i="normal"})=>{if("normal"===i&&"transparent"===e&&!s&&!o)return"transparent";if(a&&s)return"transparent";if(o&&s)return"transparent";if(o){const e=(n=l.shade)+(n<t?50:-50);return`${r.utils.getColor(l.color,e)}`}var n;return"filled"!==e||s||o?"transparent":`${r.utils.getColor("lightGrey",200)}`},d=[{condition:({filterType:e,styleType:t})=>Boolean("added"===e&&"transparent"===t),error:new r("This filterType and styleType is not supported")}];export{l as FILTER_OPTIONS_MAX_HEIGHT,s as HAS_SELECTED_VALUE_COLOR_SHADE,a as borderStyleParams,d as errors,i as focusBorderWidth,p as getBackgroundColor,c as getBorder,u as getTextColor,n as transparentFocusBorderWidth};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as o}from"@emotion/react/jsx-runtime";import*as r from"react";import t from"./assets/iconSelector.js";import{iconContainerStyle as s,iconStyle as a}from"./Icon.style.js";const e=r.forwardRef((({variant:r,name:e,color:i="primary",size:c=16,dataTestId:n,onClick:m=(()=>{})},d)=>{const l=t[e];return o("span",Object.assign({ref:d,css:s(),onClick:m,"data-testid":n},{children:o(l,{css:a({color:i,size:c,variant:r})},void 0)}),void 0)}));e.displayName="Icon";export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{rem as t}from"../../theme/utils.js";import{fillPickerBasedOnType as i}from"../../utils/themeFunctions.js";const e=({color:e,size:l,variant:n})=>o=>({fill:i(e,n)(o),width:t(l),height:t(l),path:{fill:i(e,n)(o)}}),l=()=>({padding:t(2),display:"flex",alignItems:"center",justifyContent:"center"});export{l as iconContainerStyle,e as iconStyle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";var t,r;function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},l.apply(this,arguments)}var n=function(n){return e.createElement("svg",l({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t||(t=e.createElement("circle",{opacity:.01,cx:16,cy:16,r:16,fill:"#000"})),r||(r=e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.578 9h6.839l-.897 2.405H8v-.826C8 9.707 8.707 9 9.578 9Zm6.35 6.65a.553.553 0 0 0-.857.469v3.447c0 .428.49.713.857.469l2.713-1.714a.572.572 0 0 0 0-.959l-2.713-1.713Zm-6.35 7.543A1.578 1.578 0 0 1 8 21.616v-9.127h16.67v9.127c0 .872-.706 1.579-1.579 1.579H9.58ZM20.194 9h-1.801l-.897 2.405h1.801L20.193 9Zm1.975 0h.924c.871 0 1.578.707 1.578 1.579v.826h-3.4L22.169 9Z",fill:"#000"})))};export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";var t,r;function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},a.apply(this,arguments)}var l=function(l){return e.createElement("svg",a({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),t||(t=e.createElement("circle",{opacity:.01,cx:16,cy:16,r:16,fill:"#000"})),r||(r=e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.954 13.722 10.815 8l-.36.711 9.125 4.967H8.918a.919.919 0 0 0-.918.919v9.153c0 .509.411.92.918.92h13.753a.919.919 0 0 0 .919-.92v-9.153a.92.92 0 0 0-.636-.875Zm-11.834 3.63 2.256 1.425a.476.476 0 0 1 0 .797l-2.256 1.424c-.305.204-.712-.034-.712-.39v-2.866a.46.46 0 0 1 .712-.39Zm10.738 1.822a3.464 3.464 0 1 1-6.93 0 3.464 3.464 0 0 1 6.93 0Z",fill:"#000"})))};export{l as default};
|