@orfium/ictinus 5.45.2 → 5.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Box/Box.utilities.js +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +4 -8
- package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.js +2 -2
- package/dist/components/Button/Button.js +0 -1
- package/dist/components/Button/ButtonLoader/ButtonLoader.js +2 -2
- package/dist/components/Button/ButtonLoader/ButtonLoader.style.js +1 -1
- package/dist/components/ButtonBase/ButtonBase.js +14 -27
- package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.js +4 -4
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.js +3 -3
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.style.js +1 -1
- package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.js +2 -2
- package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.js +4 -4
- package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.style.js +1 -1
- package/dist/components/Controls/CheckBox/CheckBox.js +3 -3
- package/dist/components/Controls/Switch/Switch.js +22 -25
- package/dist/components/DatePicker/DatePickInput/DatePickInput.js +31 -31
- package/dist/components/DatePicker/DatePicker.js +18 -18
- package/dist/components/DatePicker/Day/Day.js +3 -3
- package/dist/components/DatePicker/Month/Month.js +11 -32
- package/dist/components/DatePicker/OverlayComponent/OverlayComponent.js +21 -21
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.js +5 -5
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.js +1 -1
- package/dist/components/Drawer/Drawer.js +3 -3
- package/dist/components/Drawer/components/DrawerHeader/DrawerHeader.js +3 -3
- package/dist/components/DropdownButton/DropdownButton.js +5 -5
- package/dist/components/Filter/StatefulFilter.js +7 -7
- package/dist/components/Filter/components/FilterButton/FilterButton.js +3 -3
- package/dist/components/Filter/hooks/useFilterWithSelectionUtils.js +26 -26
- package/dist/components/Icon/Icon.js +3 -3
- package/dist/components/Label/Label.style.js +1 -1
- package/dist/components/List/List.js +3 -3
- package/dist/components/List/Window.js +13 -18
- package/dist/components/List/components/ListItemText/ListItemText.js +3 -3
- package/dist/components/List/components/ListItemWrapper/ListItemWrapper.js +7 -10
- package/dist/components/Modal/Modal.js +4 -4
- package/dist/components/MultiTextFieldBase/MultiTextFieldBase.js +39 -41
- package/dist/components/Notification/NotificationVisual/NotificationVisual.js +3 -3
- package/dist/components/Notification/Snackbar/Snackbar.js +6 -7
- package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.js +8 -8
- package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.style.js +1 -1
- package/dist/components/Notification/subcomponents/NotificationActionsArea/NotificationActionsArea.js +1 -1
- package/dist/components/NumberField/components/Stepper/Stepper.js +1 -1
- package/dist/components/ProgressIndicator/components/ProgressBar/ProgressBar.js +7 -9
- package/dist/components/ProgressIndicator/components/ProgressBar/ProgressBar.style.js +1 -1
- package/dist/components/Search/Search.js +4 -4
- package/dist/components/Search/StatefulSearch.js +3 -3
- package/dist/components/Select/Select.js +41 -42
- package/dist/components/Select/StatefulSelect.js +10 -10
- package/dist/components/Select/components/SelectMenu/SelectMenu.js +3 -3
- package/dist/components/Select/components/SelectMenu/SelectMenu.style.js +1 -1
- package/dist/components/TabStepper/components/TabStep/TabStep.js +4 -4
- package/dist/components/TabStepper/components/TabStep/TabStep.style.js +2 -2
- package/dist/components/Table/Table.js +23 -23
- package/dist/components/Table/components/TD/TD.js +3 -3
- package/dist/components/Table/components/TH/TH.js +3 -3
- package/dist/components/Table/components/TH/TH.style.js +4 -4
- package/dist/components/Table/components/TPagination/TPagination.js +6 -6
- package/dist/components/Table/components/TTitle/TTitle.js +4 -4
- package/dist/components/Table/hooks/useTable.js +70 -71
- package/dist/components/TableV4/TableV4.js +27 -27
- package/dist/components/TableV4/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.js +1 -1
- package/dist/components/TextArea/TextArea.js +8 -8
- package/dist/components/TextInputBase/TextInputBase.js +3 -3
- package/dist/components/Toast/Toast.js +3 -3
- package/dist/components/ToastV4/ToastV4.js +8 -8
- package/dist/components/ToastV4/ToastV4.style.js +1 -1
- package/dist/components/TopAppBar/TopAppBar.js +1 -1
- package/dist/components/TopAppBar/components/Search/Search.js +3 -3
- package/dist/components/TopAppBar/components/Search/Search.style.js +1 -1
- package/dist/components/utils/Overlay/Overlay.js +0 -2
- package/dist/components/utils/Slots.js +3 -3
- package/dist/hooks/useBreakpoints.js +0 -1
- package/dist/hooks/useKeyboardEvents.js +2 -2
- package/dist/hooks/useTypeColorToColorMatch.js +11 -11
- package/dist/index.js +189 -189
- package/dist/package.json.d.ts +12 -39
- package/dist/package.json.js +1 -1
- package/dist/src/badge/Badge.css.d.ts +34 -0
- package/dist/src/badge/Badge.d.ts +425 -0
- package/dist/src/badge/Badge.test.d.ts +1 -0
- package/dist/src/badge/index.d.ts +1 -0
- package/dist/src/icons/{Icon.d.ts → IconPrimitive.d.ts} +2 -2
- package/dist/src/icons/index.d.ts +1 -0
- package/dist/src/tag-group/TagGroup.css.d.ts +33 -0
- package/dist/src/tag-group/TagGroup.d.ts +850 -0
- package/dist/src/tag-group/TagGroup.test.d.ts +1 -0
- package/dist/src/tag-group/index.d.ts +1 -0
- package/dist/src/vanilla/index.d.ts +2 -0
- package/dist/theme/index.js +6 -6
- package/dist/vanilla/Dropdown/Dropdown-css.js +3 -3
- package/dist/vanilla/Menu/Menu-css.js +5 -5
- package/dist/vanilla/Popover/Popover-css.js +5 -5
- package/dist/vanilla/Table/Table-css.js +5 -5
- package/dist/vanilla/Table/TableBody-css.js +3 -3
- package/dist/vanilla/Table/TableCell-css.js +5 -5
- package/dist/vanilla/Table/TableFooter-css.js +3 -3
- package/dist/vanilla/Table/TableHeader-css.js +3 -3
- package/dist/vanilla/Table/TableHeaderCell-css.js +7 -7
- package/dist/vanilla/Table/TableRow-css.js +4 -4
- package/dist/vanilla/Text/Text-css.js +3 -3
- package/dist/vanilla/Tooltip/Tooltip-css.js +7 -7
- package/dist/vanilla/Tooltip/Tooltip.js +1 -1
- package/dist/vanilla/assets/src/actions/ActionsContent.css.ts.vanilla-Blx4pWwn.css +22 -0
- package/dist/vanilla/assets/src/avatar/{Avatar.css.ts.vanilla-BRhHBoq9.css → Avatar.css.ts.vanilla-CU7FGH6V.css} +20 -20
- package/dist/vanilla/assets/src/avatar/AvatarGroup.css.ts.vanilla-D6kTnJJc.css +4 -0
- package/dist/vanilla/assets/src/button/{Button.css.ts.vanilla-DueIYPl1.css → Button.css.ts.vanilla-oeHduGpK.css} +5 -5
- package/dist/vanilla/assets/src/cover/Cover.css.ts.vanilla-C7DEoyT4.css +35 -0
- package/dist/vanilla/assets/src/data-table/DataTableBody.css.ts.vanilla-CV2meKzA.css +73 -0
- package/dist/vanilla/assets/src/data-table/{DataTableHeaderCell.css.ts.vanilla-qWsAYNJP.css → DataTableHeaderCell.css.ts.vanilla-B6ro3v2t.css} +9 -9
- package/dist/vanilla/assets/src/layers/layers.css.ts.vanilla-IMjbF_n6.css +1 -0
- package/dist/vanilla/assets/src/nav/{Nav.css.ts.vanilla-DhJra5VE.css → Nav.css.ts.vanilla-z6mYlE6m.css} +12 -12
- package/dist/vanilla/assets/src/skeleton/Skeleton.css.ts.vanilla-DjAtJh-R.css +6 -0
- package/dist/vanilla/assets/src/sprinkles/{properties.css.ts.vanilla-BcRKAQD_.css → properties.css.ts.vanilla-CgAnwoJl.css} +3361 -3361
- package/dist/vanilla/assets/src/tag-group/TagGroup.css.ts.vanilla-CRfENPd1.css +40 -0
- package/dist/vanilla/assets/src/vanilla/Menu/{Menu.css.ts.vanilla-DArDfJ85.css → Menu.css.ts.vanilla-_CX_KJYW.css} +5 -5
- package/dist/vanilla/assets/src/vanilla/Popover/{Popover.css.ts.vanilla-CiACUbBM.css → Popover.css.ts.vanilla-ChNqyd-w.css} +7 -7
- package/dist/vanilla/assets/src/vanilla/Table/{Table.css.ts.vanilla-DarQMr6Y.css → Table.css.ts.vanilla-Cx9oEFSr.css} +7 -7
- package/dist/vanilla/assets/src/vanilla/Table/TableBody.css.ts.vanilla-D6wJiebX.css +6 -0
- package/dist/vanilla/assets/src/vanilla/Table/{TableCell.css.ts.vanilla-Csp77ipL.css → TableCell.css.ts.vanilla-yoCXB3yl.css} +10 -10
- package/dist/vanilla/assets/src/vanilla/Table/{TableFooter.css.ts.vanilla-DucTzTTQ.css → TableFooter.css.ts.vanilla-6lhlGhY6.css} +4 -4
- package/dist/vanilla/assets/src/vanilla/Table/TableHeader.css.ts.vanilla-BFUvzHUo.css +8 -0
- package/dist/vanilla/assets/src/vanilla/Table/{TableHeaderCell.css.ts.vanilla-Du_-Wub7.css → TableHeaderCell.css.ts.vanilla-BEjMlivm.css} +9 -9
- package/dist/vanilla/assets/src/vanilla/Table/{TableRow.css.ts.vanilla-C0OfPLuX.css → TableRow.css.ts.vanilla-Ce2GojWZ.css} +5 -5
- package/dist/vanilla/assets/src/vanilla/Text/{Text.css.ts.vanilla-CR7LEA7K.css → Text.css.ts.vanilla-Dc-awaCi.css} +13 -13
- package/dist/vanilla/assets/src/vanilla/Tooltip/{Tooltip.css.ts.vanilla-DfwLEQ86.css → Tooltip.css.ts.vanilla-C_aGKL12.css} +13 -13
- package/dist/vanilla/index.d.ts +931 -38
- package/dist/vanilla/index.js +3 -0
- package/dist/vanilla/package.json.js +1 -1
- package/dist/vanilla/src/actions/ActionsContent-css.js +5 -5
- package/dist/vanilla/src/actions/ActionsRoot-css.js +3 -3
- package/dist/vanilla/src/avatar/Avatar-css.js +7 -7
- package/dist/vanilla/src/avatar/AvatarGroup-css.js +5 -5
- package/dist/vanilla/src/badge/Badge-css.js +12 -0
- package/dist/vanilla/src/badge/Badge.js +48 -0
- package/dist/vanilla/src/button/Button-css.js +6 -6
- package/dist/vanilla/src/button/Button.js +1 -1
- package/dist/vanilla/src/components/Controls/CheckBox/CheckBox.js +1 -1
- package/dist/vanilla/src/components/Controls/Radio/Radio.js +0 -2
- package/dist/vanilla/src/components/Controls/Radio/components/RadioGroup/RadioGroup.js +0 -2
- package/dist/vanilla/src/components/Controls/Switch/Switch.js +2 -2
- package/dist/vanilla/src/components/Icon/Icon.js +1 -1
- package/dist/vanilla/src/cover/Cover-css.js +3 -3
- package/dist/vanilla/src/data-table/DataTableBody-css.js +11 -11
- package/dist/vanilla/src/data-table/DataTableEditColumns.js +1 -0
- package/dist/vanilla/src/data-table/DataTableHeaderCell-css.js +9 -9
- package/dist/vanilla/src/data-table/DataTableHeaderCell.js +1 -0
- package/dist/vanilla/src/icon/Icon.js +1 -0
- package/dist/vanilla/src/icons/AccountIcon.js +2 -2
- package/dist/vanilla/src/icons/AlbumIcon.js +2 -2
- package/dist/vanilla/src/icons/AnalyticsIcon.js +2 -2
- package/dist/vanilla/src/icons/AppsIcon.js +2 -2
- package/dist/vanilla/src/icons/ArrowDownIcon.js +2 -2
- package/dist/vanilla/src/icons/ArrowLeftIcon.js +2 -2
- package/dist/vanilla/src/icons/ArrowRightIcon.js +2 -2
- package/dist/vanilla/src/icons/ArrowUpIcon.js +2 -2
- package/dist/vanilla/src/icons/ArtistIcon.js +2 -2
- package/dist/vanilla/src/icons/AssetIcon.js +2 -2
- package/dist/vanilla/src/icons/AudioIcon.js +2 -2
- package/dist/vanilla/src/icons/AudioOffIcon.js +2 -2
- package/dist/vanilla/src/icons/BookmarkIcon.js +2 -2
- package/dist/vanilla/src/icons/BookmarkOffIcon.js +2 -2
- package/dist/vanilla/src/icons/BroadcastIcon.js +2 -2
- package/dist/vanilla/src/icons/CalendarIcon.js +2 -2
- package/dist/vanilla/src/icons/CatalogIcon.js +2 -2
- package/dist/vanilla/src/icons/ChannelIcon.js +2 -2
- package/dist/vanilla/src/icons/ChatIcon.js +2 -2
- package/dist/vanilla/src/icons/CheckIcon.js +2 -2
- package/dist/vanilla/src/icons/ChevronDownIcon.js +2 -2
- package/dist/vanilla/src/icons/ChevronLeftIcon.js +2 -2
- package/dist/vanilla/src/icons/ChevronRightIcon.js +2 -2
- package/dist/vanilla/src/icons/ChevronUpIcon.js +2 -2
- package/dist/vanilla/src/icons/CinemaIcon.js +2 -2
- package/dist/vanilla/src/icons/ClaimIcon.js +2 -2
- package/dist/vanilla/src/icons/CloseIcon.js +2 -2
- package/dist/vanilla/src/icons/ColumnChooserIcon.js +2 -2
- package/dist/vanilla/src/icons/CompositionIcon.js +2 -2
- package/dist/vanilla/src/icons/ConcertIcon.js +2 -2
- package/dist/vanilla/src/icons/ConflictIcon.js +2 -2
- package/dist/vanilla/src/icons/ConvertIcon.js +2 -2
- package/dist/vanilla/src/icons/CopyIcon.js +2 -2
- package/dist/vanilla/src/icons/CueSheetIcon.js +2 -2
- package/dist/vanilla/src/icons/DashboardIcon.js +2 -2
- package/dist/vanilla/src/icons/DatasetIcon.js +2 -2
- package/dist/vanilla/src/icons/DeleteIcon.js +2 -2
- package/dist/vanilla/src/icons/DeliveryIcon.js +2 -2
- package/dist/vanilla/src/icons/DetailsIcon.js +2 -2
- package/dist/vanilla/src/icons/DigitalIcon.js +2 -2
- package/dist/vanilla/src/icons/DistributionIcon.js +2 -2
- package/dist/vanilla/src/icons/DownloadIcon.js +2 -2
- package/dist/vanilla/src/icons/EarningsIcon.js +2 -2
- package/dist/vanilla/src/icons/EditIcon.js +2 -2
- package/dist/vanilla/src/icons/EntitiesIcon.js +2 -2
- package/dist/vanilla/src/icons/ErrorIcon.js +2 -2
- package/dist/vanilla/src/icons/ExternalLinkIcon.js +2 -2
- package/dist/vanilla/src/icons/EyeIcon.js +2 -2
- package/dist/vanilla/src/icons/EyeOffIcon.js +2 -2
- package/dist/vanilla/src/icons/FavoriteIcon.js +2 -2
- package/dist/vanilla/src/icons/FavoriteOffIcon.js +2 -2
- package/dist/vanilla/src/icons/FileIcon.js +2 -2
- package/dist/vanilla/src/icons/FilterIcon.js +2 -2
- package/dist/vanilla/src/icons/FlagIcon.js +2 -2
- package/dist/vanilla/src/icons/FlagOffIcon.js +2 -2
- package/dist/vanilla/src/icons/ForwardIcon.js +2 -2
- package/dist/vanilla/src/icons/FreezeIcon.js +2 -2
- package/dist/vanilla/src/icons/HelpIcon.js +2 -2
- package/dist/vanilla/src/icons/{Icon.js → IconPrimitive.js} +3 -3
- package/dist/vanilla/src/icons/ImageIcon.js +2 -2
- package/dist/vanilla/src/icons/ImageOffIcon.js +2 -2
- package/dist/vanilla/src/icons/IncomeIcon.js +2 -2
- package/dist/vanilla/src/icons/InformationalIcon.js +2 -2
- package/dist/vanilla/src/icons/InsightIcon.js +2 -2
- package/dist/vanilla/src/icons/InvoiceIcon.js +2 -2
- package/dist/vanilla/src/icons/IssueIcon.js +2 -2
- package/dist/vanilla/src/icons/KeywordIcon.js +2 -2
- package/dist/vanilla/src/icons/LanguageIcon.js +2 -2
- package/dist/vanilla/src/icons/LegalIcon.js +2 -2
- package/dist/vanilla/src/icons/LicenseIcon.js +2 -2
- package/dist/vanilla/src/icons/LinkIcon.js +2 -2
- package/dist/vanilla/src/icons/LocationIcon.js +2 -2
- package/dist/vanilla/src/icons/LockIcon.js +2 -2
- package/dist/vanilla/src/icons/LoginIcon.js +2 -2
- package/dist/vanilla/src/icons/LogoutIcon.js +2 -2
- package/dist/vanilla/src/icons/MailIcon.js +2 -2
- package/dist/vanilla/src/icons/ManualIcon.js +2 -2
- package/dist/vanilla/src/icons/MediaFileIcon.js +2 -2
- package/dist/vanilla/src/icons/MenuIcon.js +2 -2
- package/dist/vanilla/src/icons/MinusIcon.js +2 -2
- package/dist/vanilla/src/icons/MoreOptionsIcon.js +2 -2
- package/dist/vanilla/src/icons/NextIcon.js +2 -2
- package/dist/vanilla/src/icons/NotificationIcon.js +2 -2
- package/dist/vanilla/src/icons/OrganizationIcon.js +2 -2
- package/dist/vanilla/src/icons/PageFirstIcon.js +2 -2
- package/dist/vanilla/src/icons/PageLastIcon.js +2 -2
- package/dist/vanilla/src/icons/PairIcon.js +2 -2
- package/dist/vanilla/src/icons/PauseIcon.js +2 -2
- package/dist/vanilla/src/icons/PendingIcon.js +2 -2
- package/dist/vanilla/src/icons/PlayIcon.js +2 -2
- package/dist/vanilla/src/icons/PlaycountIcon.js +2 -2
- package/dist/vanilla/src/icons/PlusIcon.js +2 -2
- package/dist/vanilla/src/icons/PolicyIcon.js +2 -2
- package/dist/vanilla/src/icons/PreviousIcon.js +2 -2
- package/dist/vanilla/src/icons/PublicPerformanceIcon.js +2 -2
- package/dist/vanilla/src/icons/PublisherIcon.js +2 -2
- package/dist/vanilla/src/icons/RadioIcon.js +2 -2
- package/dist/vanilla/src/icons/RecordLabelIcon.js +2 -2
- package/dist/vanilla/src/icons/RecordingIcon.js +2 -2
- package/dist/vanilla/src/icons/RedoIcon.js +2 -2
- package/dist/vanilla/src/icons/RefreshIcon.js +2 -2
- package/dist/vanilla/src/icons/ReportIcon.js +2 -2
- package/dist/vanilla/src/icons/RestoreIcon.js +2 -2
- package/dist/vanilla/src/icons/ResumeIcon.js +2 -2
- package/dist/vanilla/src/icons/ReviewIcon.js +2 -2
- package/dist/vanilla/src/icons/RewindIcon.js +2 -2
- package/dist/vanilla/src/icons/RoleIcon.js +2 -2
- package/dist/vanilla/src/icons/SearchFilledIcon.js +2 -2
- package/dist/vanilla/src/icons/SearchIcon.js +2 -2
- package/dist/vanilla/src/icons/SettingsIcon.js +2 -2
- package/dist/vanilla/src/icons/ShareIcon.js +2 -2
- package/dist/vanilla/src/icons/SortAscendingIcon.js +2 -2
- package/dist/vanilla/src/icons/SortDescendingIcon.js +2 -2
- package/dist/vanilla/src/icons/SortIcon.js +2 -2
- package/dist/vanilla/src/icons/StatusIndicatorIcon.js +2 -2
- package/dist/vanilla/src/icons/StopIcon.js +2 -2
- package/dist/vanilla/src/icons/SuccessIcon.js +2 -2
- package/dist/vanilla/src/icons/TagIcon.js +2 -2
- package/dist/vanilla/src/icons/TelevisionIcon.js +2 -2
- package/dist/vanilla/src/icons/ThumbsDownIcon.js +2 -2
- package/dist/vanilla/src/icons/ThumbsUpIcon.js +2 -2
- package/dist/vanilla/src/icons/TrendingDownIcon.js +2 -2
- package/dist/vanilla/src/icons/TrendingUpIcon.js +2 -2
- package/dist/vanilla/src/icons/TriangleDownIcon.js +2 -2
- package/dist/vanilla/src/icons/TriangleLeftIcon.js +2 -2
- package/dist/vanilla/src/icons/TriangleRightIcon.js +2 -2
- package/dist/vanilla/src/icons/TriangleUpIcon.js +2 -2
- package/dist/vanilla/src/icons/UndoIcon.js +2 -2
- package/dist/vanilla/src/icons/UnfreezeIcon.js +2 -2
- package/dist/vanilla/src/icons/UnlinkIcon.js +2 -2
- package/dist/vanilla/src/icons/UnlockIcon.js +2 -2
- package/dist/vanilla/src/icons/UnpairIcon.js +2 -2
- package/dist/vanilla/src/icons/UnverifiedIcon.js +2 -2
- package/dist/vanilla/src/icons/UpdateIcon.js +2 -2
- package/dist/vanilla/src/icons/UploadIcon.js +2 -2
- package/dist/vanilla/src/icons/UsageIcon.js +2 -2
- package/dist/vanilla/src/icons/UserIcon.js +2 -2
- package/dist/vanilla/src/icons/UsersIcon.js +2 -2
- package/dist/vanilla/src/icons/VerifiedIcon.js +2 -2
- package/dist/vanilla/src/icons/VideoIcon.js +2 -2
- package/dist/vanilla/src/icons/VideoOffIcon.js +2 -2
- package/dist/vanilla/src/icons/WarningIcon.js +2 -2
- package/dist/vanilla/src/icons/WorkIcon.js +2 -2
- package/dist/vanilla/src/icons/WriterIcon.js +2 -2
- package/dist/vanilla/src/icons/YouTubeIcon.js +2 -2
- package/dist/vanilla/src/layers/layers-css.js +2 -2
- package/dist/vanilla/src/nav/Nav-css.js +12 -12
- package/dist/vanilla/src/nav/Nav.js +2 -1
- package/dist/vanilla/src/skeleton/Skeleton-css.js +4 -4
- package/dist/vanilla/src/sprinkles/properties-css.js +5 -5
- package/dist/vanilla/src/tag-group/TagGroup-css.js +13 -0
- package/dist/vanilla/src/tag-group/TagGroup.js +211 -0
- package/package.json +12 -39
- package/dist/src/components/DatePicker/OverlayComponent/components/MonthWrapper/index.d.ts +0 -0
- package/dist/src/components/ThemeProvider/Test.d.ts +0 -3
- package/dist/src/utils/storyshots.d.ts +0 -18
- package/dist/vanilla/assets/src/actions/ActionsContent.css.ts.vanilla-BZf5EbPi.css +0 -22
- package/dist/vanilla/assets/src/avatar/AvatarGroup.css.ts.vanilla-z3uMcKT_.css +0 -4
- package/dist/vanilla/assets/src/cover/Cover.css.ts.vanilla-D3GnlIpg.css +0 -35
- package/dist/vanilla/assets/src/data-table/DataTableBody.css.ts.vanilla-BowUQZcc.css +0 -70
- package/dist/vanilla/assets/src/layers/layers.css.ts.vanilla-DFmEGtie.css +0 -1
- package/dist/vanilla/assets/src/skeleton/Skeleton.css.ts.vanilla-D4xf3GmW.css +0 -6
- package/dist/vanilla/assets/src/vanilla/Table/TableBody.css.ts.vanilla-Btjzd27g.css +0 -6
- package/dist/vanilla/assets/src/vanilla/Table/TableHeader.css.ts.vanilla-BY1AQFKf.css +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { vars as g } from "@orfium/tokens";
|
|
2
|
-
import {
|
|
3
|
-
const f = ["p", "pt", "pr", "pb", "pl", "px", "py", "m", "mt", "mr", "mb", "ml", "mx", "my"], p = ["color", "backgroundAttachment", "backgroundClip", "backgroundColor", "backgroundImage", "backgroundOrigin", "backgroundPosition", "backgroundRepeat", "backgroundSize", "alignContent", "alignItems", "alignSelf", "flexDirection", "display", "flex", "grid", "gap", "gridArea", "gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridColumn", "gridColumnEnd", "gridColumnGap", "gridColumnStart", "gridGap", "gridRow", "gridRowEnd", "gridRowGap", "gridRowStart", "gridTemplate", "gridTemplateAreas", "gridTemplateColumns", "gridTemplateRows", "justifyContent", "justifyItems", "justifySelf", "position", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "overflow", "m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "placeContent", "placeItems", "placeSelf", "flexWrap", "left", "top", "right", "bottom", "textOverflow", "whiteSpace"], x = (t) =>
|
|
2
|
+
import { pick as m, omit as d, curry as u, get as e } from "lodash-es";
|
|
3
|
+
const f = ["p", "pt", "pr", "pb", "pl", "px", "py", "m", "mt", "mr", "mb", "ml", "mx", "my"], p = ["color", "backgroundAttachment", "backgroundClip", "backgroundColor", "backgroundImage", "backgroundOrigin", "backgroundPosition", "backgroundRepeat", "backgroundSize", "alignContent", "alignItems", "alignSelf", "flexDirection", "display", "flex", "grid", "gap", "gridArea", "gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridColumn", "gridColumnEnd", "gridColumnGap", "gridColumnStart", "gridGap", "gridRow", "gridRowEnd", "gridRowGap", "gridRowStart", "gridTemplate", "gridTemplateAreas", "gridTemplateColumns", "gridTemplateRows", "justifyContent", "justifyItems", "justifySelf", "position", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "overflow", "m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "placeContent", "placeItems", "placeSelf", "flexWrap", "left", "top", "right", "bottom", "textOverflow", "whiteSpace"], x = (t) => m(t, p), C = (t) => d(t, p), S = u((t, r, l, o, i) => {
|
|
4
4
|
if (r[o]) {
|
|
5
5
|
if (i === "spacing") {
|
|
6
6
|
if (o === "px" || o === "py") {
|
|
@@ -17,14 +17,10 @@ const u = (r, e) => e === r.length - 1, $ = n.forwardRef(({
|
|
|
17
17
|
href: c
|
|
18
18
|
} = a;
|
|
19
19
|
return u(r, s) ? /* @__PURE__ */ m("span", { "data-testid": `${t}_breadcrumb_${o}`, children: o }) : /* @__PURE__ */ m(L, { size: 2, dataTestPrefixId: `${t}_breadcrumb_link_${o}`, ...d(a, "label"), children: o }, c);
|
|
20
|
-
}, [t, r]), l = n.useMemo(
|
|
21
|
-
|
|
22
|
-
(
|
|
23
|
-
|
|
24
|
-
return /* @__PURE__ */ m(B, { childComponent: a, isLastItem: c }, o);
|
|
25
|
-
},
|
|
26
|
-
[r]
|
|
27
|
-
), p = n.useMemo(() => {
|
|
20
|
+
}, [t, r]), l = n.useMemo(() => (a, s) => {
|
|
21
|
+
const o = h("data_item_"), c = u(r, s);
|
|
22
|
+
return /* @__PURE__ */ m(B, { childComponent: a, isLastItem: c }, o);
|
|
23
|
+
}, [r]), p = n.useMemo(() => {
|
|
28
24
|
if (!f(r))
|
|
29
25
|
return r.map(i).map(l);
|
|
30
26
|
if (e)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { vars as e } from "@orfium/tokens";
|
|
3
|
-
import {
|
|
3
|
+
import { breadcrumbItemStyles as c, breadcrumbListStyles as i } from "./BreadcrumbItem.style.js";
|
|
4
4
|
import m from "../../Icon/Icon.js";
|
|
5
5
|
const f = ({
|
|
6
6
|
childComponent: t,
|
|
7
7
|
isLastItem: r = !1
|
|
8
|
-
}) => /* @__PURE__ */ o("li", { css:
|
|
8
|
+
}) => /* @__PURE__ */ o("li", { css: i(), children: /* @__PURE__ */ s("div", { css: c({
|
|
9
9
|
isLastItem: r
|
|
10
10
|
}), ...r ? {
|
|
11
11
|
typography: "body02"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { barStyle as e, barWrapperStyle as a, loaderWrapperStyle as d } from "./ButtonLoader.style.js";
|
|
3
3
|
const o = ({
|
|
4
4
|
dataTestId: t
|
|
5
|
-
}) => /* @__PURE__ */ r("div", { css:
|
|
5
|
+
}) => /* @__PURE__ */ r("div", { css: d(), "data-testid": t, children: /* @__PURE__ */ r("div", { css: a(), children: /* @__PURE__ */ r("div", { css: e() }) }) });
|
|
6
6
|
o.displayName = "ButtonLoader";
|
|
7
7
|
export {
|
|
8
8
|
o as default
|
|
@@ -4,7 +4,7 @@ import T from "react";
|
|
|
4
4
|
import { generateTestDataId as g } from "../../utils/helpers.js";
|
|
5
5
|
import k from "../Button/ButtonLoader/ButtonLoader.js";
|
|
6
6
|
import { useSlotProps as L } from "../utils/Slots.js";
|
|
7
|
-
import {
|
|
7
|
+
import { buttonBaseStyle as R, buttonWrapperStyle as S } from "./ButtonBase.style.js";
|
|
8
8
|
const j = T.forwardRef((t, n) => {
|
|
9
9
|
t = L(t, "button");
|
|
10
10
|
const {
|
|
@@ -24,35 +24,22 @@ const j = T.forwardRef((t, n) => {
|
|
|
24
24
|
sx: y,
|
|
25
25
|
...I
|
|
26
26
|
} = t, r = `${p}button`;
|
|
27
|
-
return /* @__PURE__ */ x("div", { css:
|
|
27
|
+
return /* @__PURE__ */ x("div", { css: S({
|
|
28
28
|
isBlock: o
|
|
29
29
|
}), children: [
|
|
30
30
|
a && !e && /* @__PURE__ */ i(k, { dataTestId: r }),
|
|
31
|
-
/* @__PURE__ */ i(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
isDisabled: e,
|
|
44
|
-
isIconButton: l,
|
|
45
|
-
shape: f,
|
|
46
|
-
sx: y
|
|
47
|
-
}),
|
|
48
|
-
onClick: (h) => {
|
|
49
|
-
s && s(h);
|
|
50
|
-
},
|
|
51
|
-
onBlur: b,
|
|
52
|
-
disabled: e,
|
|
53
|
-
children: c
|
|
54
|
-
}
|
|
55
|
-
)
|
|
31
|
+
/* @__PURE__ */ i("button", { ...N(I, ["avatar", "iconRightName", "iconLeftName", "iconName"]), ref: n, type: B, "data-testid": g(r, u), css: R({
|
|
32
|
+
type: m,
|
|
33
|
+
size: d,
|
|
34
|
+
isLoading: a,
|
|
35
|
+
isBlock: o,
|
|
36
|
+
isDisabled: e,
|
|
37
|
+
isIconButton: l,
|
|
38
|
+
shape: f,
|
|
39
|
+
sx: y
|
|
40
|
+
}), onClick: (h) => {
|
|
41
|
+
s && s(h);
|
|
42
|
+
}, onBlur: b, disabled: e, children: c })
|
|
56
43
|
] });
|
|
57
44
|
});
|
|
58
45
|
j.displayName = "ButtonBase";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as c, jsx as l } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useRef as p, useState as o, useEffect as v, useCallback as i } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { tooltipStyle as m, tooltipArrowStyle as h, tickStyle as A } from "./CustomTooltip.style.js";
|
|
4
4
|
const b = ({
|
|
5
5
|
content: s,
|
|
6
6
|
fill: n
|
|
@@ -14,11 +14,11 @@ const b = ({
|
|
|
14
14
|
}, [t]), d = i(() => {
|
|
15
15
|
t(!1);
|
|
16
16
|
}, [t]);
|
|
17
|
-
return /* @__PURE__ */ c("div", { ref: e, onMouseEnter: u, onMouseLeave: d, css:
|
|
17
|
+
return /* @__PURE__ */ c("div", { ref: e, onMouseEnter: u, onMouseLeave: d, css: A(n), children: [
|
|
18
18
|
s,
|
|
19
19
|
a && f && /* @__PURE__ */ c("div", { children: [
|
|
20
|
-
/* @__PURE__ */ l("div", { css:
|
|
21
|
-
/* @__PURE__ */ l("div", { css:
|
|
20
|
+
/* @__PURE__ */ l("div", { css: m(), children: s }),
|
|
21
|
+
/* @__PURE__ */ l("div", { css: h() })
|
|
22
22
|
] })
|
|
23
23
|
] });
|
|
24
24
|
};
|
package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as o, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { tooltipLiStyle as c, tooltipUlStyle as d, tooltipStyle as e } from "./CustomTooltipContent.style.js";
|
|
3
3
|
const m = ({
|
|
4
4
|
payload: i
|
|
5
5
|
}) => {
|
|
6
6
|
const l = i && i[0]?.payload?.options?.hoverInfo;
|
|
7
|
-
return l ? /* @__PURE__ */ o("div", { className: "custom-tooltip", css:
|
|
7
|
+
return l ? /* @__PURE__ */ o("div", { className: "custom-tooltip", css: e(), children: /* @__PURE__ */ o("ul", { css: d(), children: l.map(({
|
|
8
8
|
name: s,
|
|
9
9
|
value: n,
|
|
10
10
|
percentage: r
|
|
11
|
-
}) => /* @__PURE__ */ t("li", { css:
|
|
11
|
+
}) => /* @__PURE__ */ t("li", { css: c(), children: [
|
|
12
12
|
/* @__PURE__ */ o("div", { children: s }),
|
|
13
13
|
/* @__PURE__ */ t("div", { children: [
|
|
14
14
|
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o("b", { children: n }) }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import c from "../../../../../hooks/useTheme.js";
|
|
3
3
|
import { vars as a } from "@orfium/tokens";
|
|
4
|
-
import {
|
|
4
|
+
import { labelUnitStyle as d, flexContainer as m } from "./CustomLabel.style.js";
|
|
5
5
|
const p = ({
|
|
6
6
|
viewBox: l,
|
|
7
7
|
value: r,
|
|
@@ -13,7 +13,7 @@ const p = ({
|
|
|
13
13
|
} = l, s = c();
|
|
14
14
|
return /* @__PURE__ */ o("g", { children: [
|
|
15
15
|
/* @__PURE__ */ e("text", { x: n, y: t, className: "recharts-text recharts-label", textAnchor: "middle", dominantBaseline: "central", children: /* @__PURE__ */ e("tspan", { x: "50%", dy: "-7", alignmentBaseline: "middle", fontSize: a["font-size"][4], fill: s.globals.oldColors.black, children: r }) }),
|
|
16
|
-
/* @__PURE__ */ e("foreignObject", { y: "52%", width: "100%", height: t && t / 2.5, children: /* @__PURE__ */ e("div", { css:
|
|
16
|
+
/* @__PURE__ */ e("foreignObject", { y: "52%", width: "100%", height: t && t / 2.5, children: /* @__PURE__ */ e("div", { css: m(), children: /* @__PURE__ */ e("div", { css: d(), children: i }) }) })
|
|
17
17
|
] });
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as i, jsx as l } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { tooltipHrStyle as r, tooltipLiStyle as c, tooltipUlStyle as m, tooltipStyle as n } from "./CustomTooltip.style.js";
|
|
3
3
|
const d = ({
|
|
4
4
|
label: e,
|
|
5
5
|
payload: t
|
|
6
|
-
}) => /* @__PURE__ */ i("div", { className: "custom-tooltip", css:
|
|
6
|
+
}) => /* @__PURE__ */ i("div", { className: "custom-tooltip", css: n(), children: [
|
|
7
7
|
/* @__PURE__ */ i("p", { className: "label", style: {
|
|
8
8
|
margin: "0px"
|
|
9
9
|
}, children: [
|
|
10
10
|
`${e}`,
|
|
11
11
|
" "
|
|
12
12
|
] }),
|
|
13
|
-
t && t.length > 1 && /* @__PURE__ */ l("hr", { css:
|
|
13
|
+
t && t.length > 1 && /* @__PURE__ */ l("hr", { css: r() }),
|
|
14
14
|
t && /* @__PURE__ */ l("ul", { css: m(), children: t.map(({
|
|
15
15
|
name: s,
|
|
16
16
|
value: o
|
|
17
|
-
}) => /* @__PURE__ */ i("li", { css:
|
|
17
|
+
}) => /* @__PURE__ */ i("li", { css: c(), children: [
|
|
18
18
|
/* @__PURE__ */ l("div", { children: s }),
|
|
19
19
|
" ",
|
|
20
20
|
/* @__PURE__ */ l("div", { children: o })
|
|
@@ -2,7 +2,7 @@ import { jsxs as d, jsx as t } from "@emotion/react/jsx-runtime";
|
|
|
2
2
|
import $ from "react";
|
|
3
3
|
import { Checkbox as u } from "react-aria-components";
|
|
4
4
|
import { vars as m } from "@orfium/tokens";
|
|
5
|
-
import {
|
|
5
|
+
import { checkboxStyles as C, checkboxWrapperStyles as I } from "./CheckBox.style.js";
|
|
6
6
|
import s from "../../Box/Box.js";
|
|
7
7
|
import T from "../../Icon/Icon.js";
|
|
8
8
|
import g from "../ControlLabel/ControlLabelText.js";
|
|
@@ -24,10 +24,10 @@ const j = $.forwardRef((p, f) => {
|
|
|
24
24
|
helpText: c,
|
|
25
25
|
sx: _
|
|
26
26
|
} = b;
|
|
27
|
-
return /* @__PURE__ */ d("div", { css:
|
|
27
|
+
return /* @__PURE__ */ d("div", { css: I({
|
|
28
28
|
sx: _
|
|
29
29
|
}), children: [
|
|
30
|
-
/* @__PURE__ */ t(u, { id: x, css:
|
|
30
|
+
/* @__PURE__ */ t(u, { id: x, css: C(), isSelected: a, onChange: h, isIndeterminate: o, isDisabled: l, value: e, ref: f, "data-testid": `${r}${e ? `_${e}` : ""}_checkbox`, children: /* @__PURE__ */ d(s, { display: "flex", alignItems: "center", gap: "5", flexDirection: i === "left" ? "row-reverse" : "row", justifyContent: i === "left" ? "space-between" : "unset", children: [
|
|
31
31
|
/* @__PURE__ */ t(s, { "data-role": "checkbox-icon", children: /* @__PURE__ */ t(T, { name: o ? "minus" : "check", size: m.sizing[5], color: m.color.text.inverted.primary, dataTestId: `${r}${e ? `_${e}` : ""}_${o ? "minus" : a ? "checkmark" : "unselected"}` }) }),
|
|
32
32
|
n && /* @__PURE__ */ t(g, { size: k, dataTestPrefixId: `${r}_checkbox_${e?.split(" ").join("_")}`, children: n })
|
|
33
33
|
] }) }),
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Switch as y } from "react-aria-components";
|
|
1
|
+
import { jsxs as a, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
import { Switch as g } from "react-aria-components";
|
|
5
4
|
import { rem as c } from "polished";
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
5
|
+
import { switchStyles as y, switchWrapperStyles as S } from "./Switch.style.js";
|
|
6
|
+
import o from "../../Box/Box.js";
|
|
7
|
+
import T from "../ControlLabel/ControlLabelText.js";
|
|
8
|
+
import $ from "../ControlLabel/ControlHelpText.js";
|
|
9
|
+
const C = b.forwardRef((m, p) => {
|
|
11
10
|
const {
|
|
12
11
|
id: f,
|
|
13
12
|
value: i,
|
|
@@ -24,37 +23,35 @@ const _ = g.forwardRef((m, p) => {
|
|
|
24
23
|
helpText: s,
|
|
25
24
|
sx: v
|
|
26
25
|
} = w;
|
|
27
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ a("div", { css: S({
|
|
28
27
|
sx: v
|
|
29
28
|
}), children: [
|
|
30
|
-
/* @__PURE__ */ e(
|
|
29
|
+
/* @__PURE__ */ e(g, { id: f, value: i, isSelected: h, isDisabled: d, onChange: x, css: y({
|
|
31
30
|
placement: t
|
|
32
31
|
}), "data-testid": `${l}${i ? `_${i}` : ""}_switch`, ref: p, excludeFromTabOrder: r, "aria-hidden": r || void 0, style: r ? {
|
|
33
32
|
pointerEvents: "none"
|
|
34
|
-
} : void 0, children: /* @__PURE__ */ o
|
|
35
|
-
/* @__PURE__ */ o
|
|
33
|
+
} : void 0, children: /* @__PURE__ */ a(o, { display: "flex", gap: "5", flexDirection: t === "left" ? "row-reverse" : "row", justifyContent: t === "left" ? "space-between" : "unset", children: [
|
|
34
|
+
/* @__PURE__ */ a(o, { children: [
|
|
36
35
|
/* @__PURE__ */ e("div", { className: "bar" }),
|
|
37
36
|
/* @__PURE__ */ e("div", { className: "indicator" })
|
|
38
37
|
] }),
|
|
39
|
-
n && /* @__PURE__ */ e(
|
|
38
|
+
n && /* @__PURE__ */ e(T, { size: u, dataTestPrefixId: `${l}_switch_${i?.split(" ").join("_")}`, children: n })
|
|
40
39
|
] }) }),
|
|
41
40
|
s && /* @__PURE__ */ e(
|
|
42
|
-
|
|
41
|
+
o,
|
|
43
42
|
{
|
|
44
|
-
css:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
}, "", ""),
|
|
43
|
+
css: t === "left" ? {
|
|
44
|
+
paddingRight: c(48)
|
|
45
|
+
} : {
|
|
46
|
+
paddingLeft: c(48)
|
|
47
|
+
},
|
|
51
48
|
"data-disabled": d,
|
|
52
|
-
children: /* @__PURE__ */ e(
|
|
49
|
+
children: /* @__PURE__ */ e($, { helpText: s, children: s })
|
|
53
50
|
}
|
|
54
51
|
)
|
|
55
52
|
] });
|
|
56
53
|
});
|
|
57
|
-
|
|
54
|
+
C.displayName = "Switch";
|
|
58
55
|
export {
|
|
59
|
-
|
|
56
|
+
C as default
|
|
60
57
|
};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { vars as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { vars as _ } from "@orfium/tokens";
|
|
3
|
+
import w, { useMemo as p } from "react";
|
|
4
|
+
import B from "../../../utils/date.js";
|
|
5
5
|
import { getLocaleFormat as I } from "../../../utils/helpers.js";
|
|
6
|
-
import
|
|
6
|
+
import L from "../../TextField/TextField.js";
|
|
7
7
|
import { DATE_RANGE_PICKER_LABEL as N, DATE_PICKER_LABEL as h } from "../constants.js";
|
|
8
|
-
import { FIELD_TOKENS as
|
|
9
|
-
import
|
|
10
|
-
import { FilterButton as
|
|
11
|
-
const
|
|
12
|
-
},
|
|
13
|
-
selectDate: `Select Date${
|
|
14
|
-
to:
|
|
15
|
-
}),
|
|
16
|
-
handleIconClick:
|
|
8
|
+
import { FIELD_TOKENS as x } from "./DatePickInput.style.js";
|
|
9
|
+
import C from "../../Icon/Icon.js";
|
|
10
|
+
import { FilterButton as M } from "../../Filter/components/FilterButton/FilterButton.js";
|
|
11
|
+
const D = () => {
|
|
12
|
+
}, Y = (t) => (r) => r ? B(r).format(I(t)) : "", g = (t, r) => ({
|
|
13
|
+
selectDate: `Select Date${t ? "s" : ""}`,
|
|
14
|
+
to: t ? `- ${r}` : ""
|
|
15
|
+
}), O = w.forwardRef(({
|
|
16
|
+
handleIconClick: t,
|
|
17
17
|
filterConfig: r = {},
|
|
18
|
-
handleClear:
|
|
18
|
+
handleClear: l,
|
|
19
19
|
dataTestId: u,
|
|
20
20
|
isRangePicker: e,
|
|
21
21
|
inputProps: n,
|
|
22
|
-
selectedDay:
|
|
23
|
-
dateFormatOverride:
|
|
22
|
+
selectedDay: o,
|
|
23
|
+
dateFormatOverride: A = "MM/DD/YYYY",
|
|
24
24
|
isOpen: K
|
|
25
|
-
},
|
|
26
|
-
const
|
|
27
|
-
filterType:
|
|
28
|
-
label:
|
|
29
|
-
} = r,
|
|
25
|
+
}, c) => {
|
|
26
|
+
const s = Y(A), a = s(o.from), f = s(o.to), v = g(e, f), {
|
|
27
|
+
filterType: d,
|
|
28
|
+
label: F
|
|
29
|
+
} = r, $ = {
|
|
30
30
|
wrapper: {
|
|
31
|
-
minWidth: e ?
|
|
31
|
+
minWidth: e ? x.minWidth.extraLarge.normal : x.minWidth.medium.normal
|
|
32
32
|
}
|
|
33
|
-
},
|
|
34
|
-
i.code === "Enter" &&
|
|
35
|
-
} }), [
|
|
36
|
-
if (
|
|
37
|
-
const i = `${
|
|
38
|
-
return /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(
|
|
33
|
+
}, b = p(() => /* @__PURE__ */ m(C, { tabIndex: 0, name: "calendar", size: _.sizing[5], color: _.color.text.default.secondary, onClick: t, dataTestId: "calendar_button", onKeyDown: (i) => {
|
|
34
|
+
i.code === "Enter" && t();
|
|
35
|
+
} }), [t]), E = p(() => n?.label?.length ? n.label : e ? N : h, [n?.label, e]);
|
|
36
|
+
if (d) {
|
|
37
|
+
const i = `${F ?? v.selectDate}`, T = `${o.from ? `: ${a}` : ""} ${e && o.to ? `- ${f}` : ""}`;
|
|
38
|
+
return /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(M, { isPopulated: !!(o.from && `${a} - ${f}`), isActive: K, onClear: l, filterType: d, onClick: t, children: `${i}${T}` }) });
|
|
39
39
|
}
|
|
40
|
-
return e ? /* @__PURE__ */ m(
|
|
40
|
+
return e ? /* @__PURE__ */ m(L, { ref: c, ...n, label: E, onKeyDown: l, dataTestId: u, onChange: D, value: o.from ? `${a} - ${f}` : "", suffix: b, sx: $ }) : /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(L, { ref: c, ...n, label: E, onKeyDown: l, dataTestId: u, onChange: D, value: o.to ? a : "", suffix: b, sx: $ }) });
|
|
41
41
|
});
|
|
42
|
-
|
|
42
|
+
O.displayName = "DatePickInput";
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
O as default
|
|
45
45
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as u } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { PositionInScreen as
|
|
3
|
-
import
|
|
4
|
-
import { memo as
|
|
5
|
-
import
|
|
2
|
+
import { PositionInScreen as V } from "../utils/PositionInScreen/PositionInScreen.js";
|
|
3
|
+
import z from "../../hooks/useKeyboardEvents.js";
|
|
4
|
+
import { memo as F, useMemo as G, useState as v, useCallback as f } from "react";
|
|
5
|
+
import H from "react-fast-compare";
|
|
6
6
|
import { EMPTY_STATE as i } from "./constants.js";
|
|
7
|
-
import { datePickerStyles as
|
|
8
|
-
import
|
|
9
|
-
import { initDates as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
7
|
+
import { datePickerStyles as J } from "./DatePicker.style.js";
|
|
8
|
+
import L from "./OverlayComponent/OverlayComponent.js";
|
|
9
|
+
import { initDates as N } from "./utils.js";
|
|
10
|
+
import Q from "./DatePickInput/DatePickInput.js";
|
|
11
|
+
const U = ({
|
|
12
12
|
isRangePicker: c = !1,
|
|
13
13
|
onChange: o = () => {
|
|
14
14
|
},
|
|
@@ -24,9 +24,9 @@ const Q = ({
|
|
|
24
24
|
dataTestId: x,
|
|
25
25
|
placement: B
|
|
26
26
|
}) => {
|
|
27
|
-
const s =
|
|
27
|
+
const s = G(() => N(T || {}), [T]), [l, n] = v(!1), [D, b] = v(""), [O, m] = v(s), {
|
|
28
28
|
keyboardProps: M
|
|
29
|
-
} =
|
|
29
|
+
} = z({
|
|
30
30
|
events: {
|
|
31
31
|
keydown: {
|
|
32
32
|
onEscape: () => {
|
|
@@ -55,7 +55,7 @@ const Q = ({
|
|
|
55
55
|
});
|
|
56
56
|
}, [o]), d = f(() => {
|
|
57
57
|
D.length && b("");
|
|
58
|
-
}, [D]),
|
|
58
|
+
}, [D]), _ = f((e) => {
|
|
59
59
|
const t = e.startOf("day"), a = e.endOf("day");
|
|
60
60
|
return m(c ? (r) => r.from && r.to ? {
|
|
61
61
|
from: t,
|
|
@@ -73,11 +73,11 @@ const Q = ({
|
|
|
73
73
|
from: t,
|
|
74
74
|
to: a
|
|
75
75
|
});
|
|
76
|
-
}, [c]),
|
|
76
|
+
}, [c]), h = f(() => {
|
|
77
77
|
m(i), o(i), d(), n(!1);
|
|
78
|
-
}, [o, d]),
|
|
78
|
+
}, [o, d]), j = f(() => {
|
|
79
79
|
n(!l);
|
|
80
|
-
}, [l]),
|
|
80
|
+
}, [l]), q = f((e) => {
|
|
81
81
|
if (!k && !p.filterType)
|
|
82
82
|
return !1;
|
|
83
83
|
if (p?.filterType)
|
|
@@ -95,11 +95,11 @@ const Q = ({
|
|
|
95
95
|
});
|
|
96
96
|
m(i), o(i);
|
|
97
97
|
}
|
|
98
|
-
}, [k, p?.filterType, d, o, A, c, s.from, s.to]),
|
|
98
|
+
}, [k, p?.filterType, d, o, A, c, s.from, s.to]), K = f(() => {
|
|
99
99
|
E(O);
|
|
100
100
|
}, [E, O]);
|
|
101
|
-
return /* @__PURE__ */ u("div", { ...M, children: /* @__PURE__ */ u(
|
|
102
|
-
}, te =
|
|
101
|
+
return /* @__PURE__ */ u("div", { ...M, children: /* @__PURE__ */ u(V, { isVisible: l, setIsVisible: n, placement: B, offsetY: 8, parent: /* @__PURE__ */ u(Q, { filterConfig: p, isRangePicker: c, selectedDay: s, inputProps: P, dateFormatOverride: w, handleIconClick: j, handleClear: q, isOpen: l, dataTestId: x }), children: /* @__PURE__ */ u("div", { css: J(), children: /* @__PURE__ */ u(L, { selectedOption: D, setSelectedOption: Y, extraOptions: y, isRangePicker: c, onDaySelect: _, selectedDays: O, disabledDates: I, onClearAll: h, onApply: K }) }) }) });
|
|
102
|
+
}, te = F(U, H);
|
|
103
103
|
export {
|
|
104
104
|
te as default
|
|
105
105
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import _ from "../../../hooks/useKeyboardEvents.js";
|
|
3
3
|
import n from "react";
|
|
4
|
-
import { emptyDayStyle as $,
|
|
4
|
+
import { emptyDayStyle as $, dayStyle as C, dayWrapperStyle as D } from "./Day.style.js";
|
|
5
5
|
import { currentDay as a } from "../utils.js";
|
|
6
6
|
const g = ({
|
|
7
7
|
day: t,
|
|
@@ -31,14 +31,14 @@ const g = ({
|
|
|
31
31
|
});
|
|
32
32
|
return t ? /* @__PURE__ */ s("td", { style: {
|
|
33
33
|
padding: 0
|
|
34
|
-
}, onClick: e ? void 0 : u, children: /* @__PURE__ */ s("div", { css:
|
|
34
|
+
}, onClick: e ? void 0 : u, children: /* @__PURE__ */ s("div", { css: D({
|
|
35
35
|
isSelected: c,
|
|
36
36
|
isBetween: l,
|
|
37
37
|
isLast: i,
|
|
38
38
|
isFirst: y,
|
|
39
39
|
isToday: d,
|
|
40
40
|
isDisabled: e
|
|
41
|
-
}), tabIndex: v, "data-testid": `${t}_${r + 1}_${o}${c ? "_selected" : ""}`, ...k, children: /* @__PURE__ */ s("div", { css:
|
|
41
|
+
}), tabIndex: v, "data-testid": `${t}_${r + 1}_${o}${c ? "_selected" : ""}`, ...k, children: /* @__PURE__ */ s("div", { css: C({
|
|
42
42
|
isSelected: c,
|
|
43
43
|
isBetween: l,
|
|
44
44
|
isToday: d,
|
|
@@ -4,11 +4,11 @@ import { inRange as v, chunk as C } from "lodash-es";
|
|
|
4
4
|
import * as l from "react";
|
|
5
5
|
import { useCallback as i } from "react";
|
|
6
6
|
import T from "../../../utils/date.js";
|
|
7
|
-
import j from "
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
7
|
+
import j from "../Day/Day.js";
|
|
8
|
+
import { currentDay as P } from "../utils.js";
|
|
9
|
+
import R from "./hooks/useMonthKeyboardNavigation.js";
|
|
10
|
+
import { weekDayStyle as _, weekDaysWrapperStyle as A, datesWrapperStyle as L } from "./Month.style.js";
|
|
11
|
+
import { getNumWeeksForMonth as N, calculateSelectedDay as O, calculateDisabledDays as K, calculatedDayIsBetween as Y, calculateSelectedDayPosition as q } from "./Month.utils.js";
|
|
12
12
|
T.extend(g);
|
|
13
13
|
const z = ["Monday", "Tuesday", "Wednesday", "Thurdsday", "Friday", "Saturday", "Sunday"], E = ({
|
|
14
14
|
year: t,
|
|
@@ -19,48 +19,27 @@ const z = ["Monday", "Tuesday", "Wednesday", "Thurdsday", "Friday", "Saturday",
|
|
|
19
19
|
isFirstCalendar: y
|
|
20
20
|
}) => {
|
|
21
21
|
const b = l.useMemo(() => {
|
|
22
|
-
const s =
|
|
22
|
+
const s = P.month(e).year(t).date(1), n = s.daysInMonth(), o = s.day() || 7, c = 7, F = N(t, e), w = Array(F * c).fill(null).reduce((W, H, $) => {
|
|
23
23
|
const m = $ + 1, x = v(m, o, n + o) ? m - o + 1 : void 0;
|
|
24
24
|
return [...W, x];
|
|
25
25
|
}, []);
|
|
26
26
|
return C(w, c);
|
|
27
|
-
}, [t, e]), S = i(
|
|
27
|
+
}, [t, e]), S = i(O, []), k = i(K, []), D = i(Y, []), d = i(q, []), {
|
|
28
28
|
focusedDay: u,
|
|
29
29
|
setFocusedDay: h,
|
|
30
30
|
calendarRef: M,
|
|
31
31
|
keyboardProps: B
|
|
32
|
-
} =
|
|
32
|
+
} = R({
|
|
33
33
|
selectedDays: a,
|
|
34
34
|
isFirstCalendar: y,
|
|
35
35
|
month: e,
|
|
36
36
|
year: t
|
|
37
37
|
});
|
|
38
38
|
return /* @__PURE__ */ I(l.Fragment, { children: [
|
|
39
|
-
/* @__PURE__ */ r("div", { css:
|
|
40
|
-
/* @__PURE__ */ r("table", { css:
|
|
39
|
+
/* @__PURE__ */ r("div", { css: A(), children: z.map((s) => /* @__PURE__ */ r("div", { css: _(), children: s.substr(0, 2) }, s)) }),
|
|
40
|
+
/* @__PURE__ */ r("table", { css: L(), ref: M, tabIndex: 0, "data-testid": "calendar_table", ...B, onFocus: () => {
|
|
41
41
|
u === 0 && h(1);
|
|
42
|
-
}, children: /* @__PURE__ */ r("tbody", { children: b.map((s, n) => /* @__PURE__ */ r(
|
|
43
|
-
"tr",
|
|
44
|
-
{
|
|
45
|
-
children: s.map((o, c) => /* @__PURE__ */ r(
|
|
46
|
-
Y,
|
|
47
|
-
{
|
|
48
|
-
tabIndex: u === o ? 0 : -1,
|
|
49
|
-
year: t,
|
|
50
|
-
month: e,
|
|
51
|
-
day: o,
|
|
52
|
-
onSelect: f,
|
|
53
|
-
isDisabled: !!k(o, e, t, p),
|
|
54
|
-
isSelected: !!S(o, e, t, a.from, a.to),
|
|
55
|
-
isBetween: !!D(o, e, t, a.from, a.to),
|
|
56
|
-
isLast: !!d(o, "last", e, t, a.from, a.to),
|
|
57
|
-
isFirst: !!d(o, "first", e, t, a.from, a.to)
|
|
58
|
-
},
|
|
59
|
-
`${t}-${e}-${n}-${c}-day`
|
|
60
|
-
))
|
|
61
|
-
},
|
|
62
|
-
`${t}-${e}-${n}-week`
|
|
63
|
-
)) }) })
|
|
42
|
+
}, children: /* @__PURE__ */ r("tbody", { children: b.map((s, n) => /* @__PURE__ */ r("tr", { children: s.map((o, c) => /* @__PURE__ */ r(j, { tabIndex: u === o ? 0 : -1, year: t, month: e, day: o, onSelect: f, isDisabled: !!k(o, e, t, p), isSelected: !!S(o, e, t, a.from, a.to), isBetween: !!D(o, e, t, a.from, a.to), isLast: !!d(o, "last", e, t, a.from, a.to), isFirst: !!d(o, "first", e, t, a.from, a.to) }, `${t}-${e}-${n}-${c}-day`)) }, `${t}-${e}-${n}-week`)) }) })
|
|
64
43
|
] });
|
|
65
44
|
}, st = l.memo(E);
|
|
66
45
|
export {
|