@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,45 +1,45 @@
|
|
|
1
1
|
import { jsx as r, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import * as W from "react";
|
|
3
|
-
import { useState as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
3
|
+
import { useState as i, useCallback as w } from "react";
|
|
4
|
+
import f from "./components/MonthWrapper/MonthWrapper.js";
|
|
5
|
+
import { optionStyle as A, optionsWrapperStyle as L, monthsWrapperStyle as j, buttonsWrapperStyle as x, buttonsMonthsWrapperStyle as M, overlayWrapperStyle as B } from "./OverlayComponent.style.js";
|
|
6
6
|
import { getLeftCalendarDate as I, getRightCalendarDate as T } from "./utils.js";
|
|
7
7
|
import { CLEAR_ALL as _, APPLY as k } from "../constants.js";
|
|
8
|
-
import
|
|
8
|
+
import c from "../../Button/Button.js";
|
|
9
9
|
var z = {
|
|
10
10
|
name: "zjik7",
|
|
11
11
|
styles: "display:flex"
|
|
12
12
|
};
|
|
13
13
|
const E = ({
|
|
14
|
-
selectedOption:
|
|
15
|
-
setSelectedOption:
|
|
14
|
+
selectedOption: v,
|
|
15
|
+
setSelectedOption: y = () => {
|
|
16
16
|
},
|
|
17
17
|
isRangePicker: o = !1,
|
|
18
18
|
extraOptions: n = [],
|
|
19
19
|
onDaySelect: s,
|
|
20
20
|
selectedDays: e,
|
|
21
21
|
disabledDates: p,
|
|
22
|
-
onClearAll:
|
|
22
|
+
onClearAll: u = () => {
|
|
23
23
|
},
|
|
24
|
-
onApply:
|
|
24
|
+
onApply: C = () => {
|
|
25
25
|
}
|
|
26
26
|
}) => {
|
|
27
|
-
const [
|
|
28
|
-
|
|
29
|
-
}, [
|
|
30
|
-
return /* @__PURE__ */ r("div", { css:
|
|
27
|
+
const [S, d] = i(I(e)), [b, m] = i(T(e)), h = w((t = "back") => {
|
|
28
|
+
d((a) => a.month(a.month() + (t === "forward" ? 1 : -1))), m((a) => a.month(a.month() + (t === "forward" ? 1 : -1)));
|
|
29
|
+
}, []);
|
|
30
|
+
return /* @__PURE__ */ r("div", { css: B(), children: /* @__PURE__ */ l("div", { css: M(), "data-testid": "buttonMonthsWrapperStyle", children: [
|
|
31
31
|
/* @__PURE__ */ l("div", { css: z, children: [
|
|
32
|
-
n.length > 0 && o && /* @__PURE__ */ r("div", { css:
|
|
33
|
-
isSelected:
|
|
34
|
-
}), onClick: () =>
|
|
35
|
-
/* @__PURE__ */ l("div", { css:
|
|
36
|
-
/* @__PURE__ */ r(
|
|
37
|
-
o && /* @__PURE__ */ r(
|
|
32
|
+
n.length > 0 && o && /* @__PURE__ */ r("div", { css: L(), "data-testid": "optionsWrapperStyle", children: n.map((t) => /* @__PURE__ */ r("div", { css: A({
|
|
33
|
+
isSelected: v === t.value
|
|
34
|
+
}), onClick: () => y(t.value), children: t.label }, t.value)) }),
|
|
35
|
+
/* @__PURE__ */ l("div", { css: j(), children: [
|
|
36
|
+
/* @__PURE__ */ r(f, { date: S, onDaySelect: s, selectedDays: e, setDate: d, handleArrow: h, showedArrows: o ? "left" : "both", disabledDates: p, isRangePicker: o }),
|
|
37
|
+
o && /* @__PURE__ */ r(f, { date: b, onDaySelect: s, selectedDays: e, setDate: m, handleArrow: h, showedArrows: o ? "right" : "both", disabledDates: p, isRangePicker: o })
|
|
38
38
|
] })
|
|
39
39
|
] }),
|
|
40
|
-
/* @__PURE__ */ l("div", { css:
|
|
41
|
-
/* @__PURE__ */ r(
|
|
42
|
-
/* @__PURE__ */ r(
|
|
40
|
+
/* @__PURE__ */ l("div", { css: x(), children: [
|
|
41
|
+
/* @__PURE__ */ r(c, { onClick: u, dataTestId: "cancel", type: "tertiary", children: _ }),
|
|
42
|
+
/* @__PURE__ */ r(c, { onClick: C, dataTestId: "apply", isDisabled: !e.from || !e.to, children: k })
|
|
43
43
|
] })
|
|
44
44
|
] }) });
|
|
45
45
|
}, H = W.memo(E);
|
|
@@ -2,7 +2,7 @@ import { jsx as o, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
|
2
2
|
import b from "../../../../../hooks/useKeyboardEvents.js";
|
|
3
3
|
import { head as S, range as k } from "lodash-es";
|
|
4
4
|
import y, { useState as C, useMemo as O, useRef as T } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { monthHeaderNavigationIconWrapperStyle as d, monthHeaderTitleStyle as I, monthHeaderTitleWrapperStyle as W, monthHeaderWrapperStyle as _, monthWrapperStyle as x } from "./MonthWrapper.style.js";
|
|
6
6
|
import H from "../../../Month/Month.js";
|
|
7
7
|
import u from "../../../../IconButton/IconButton.js";
|
|
8
8
|
import F from "../../../../Select/components/SelectMenu/SelectMenu.js";
|
|
@@ -45,16 +45,16 @@ const L = ({
|
|
|
45
45
|
},
|
|
46
46
|
hasPropagation: !0
|
|
47
47
|
});
|
|
48
|
-
return /* @__PURE__ */ o(y.Fragment, { children: /* @__PURE__ */ r("div", { css:
|
|
49
|
-
/* @__PURE__ */ r("div", { css:
|
|
48
|
+
return /* @__PURE__ */ o(y.Fragment, { children: /* @__PURE__ */ r("div", { css: x(), children: [
|
|
49
|
+
/* @__PURE__ */ r("div", { css: _(), children: [
|
|
50
50
|
(e === "left" || e === "both") && /* @__PURE__ */ o("div", { css: d({
|
|
51
51
|
position: "left"
|
|
52
52
|
}), children: /* @__PURE__ */ o(u, { iconName: "triangleLeft", type: "tertiary", onClick: () => l("back"), dataTestId: "month_back" }) }),
|
|
53
53
|
/* @__PURE__ */ r(N, { onClick: () => {
|
|
54
54
|
c(!1);
|
|
55
55
|
}, children: [
|
|
56
|
-
/* @__PURE__ */ r("div", { css:
|
|
57
|
-
/* @__PURE__ */ o("div", { css:
|
|
56
|
+
/* @__PURE__ */ r("div", { css: W(), children: [
|
|
57
|
+
/* @__PURE__ */ o("div", { css: I({
|
|
58
58
|
isRangePicker: s
|
|
59
59
|
}), "data-testid": "month_header", ...s ? {} : v, children: /* @__PURE__ */ r($, { onClick: s ? void 0 : () => c(!f), type: "tertiary", dataTestId: `${e !== "both" ? e + "_" : ""}month`, children: [
|
|
60
60
|
t.format("MMMM"),
|
package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css as n } from "@emotion/react";
|
|
2
|
-
import {
|
|
2
|
+
import { rem as i, vars as e } from "@orfium/tokens";
|
|
3
3
|
const s = () => /* @__PURE__ */ n("display:flex;flex-direction:column;gap:", e.spacing[5], ";padding:", e.spacing[7], ";", "");
|
|
4
4
|
var r = {
|
|
5
5
|
name: "1wwyjck",
|
|
@@ -4,7 +4,7 @@ import v from "react-dom";
|
|
|
4
4
|
import { useDOMRef as n } from "../utils/useDOMRef.js";
|
|
5
5
|
import p from "../../hooks/useEscape.js";
|
|
6
6
|
import { useOverlayStack as D } from "../../hooks/useOverlayStack.js";
|
|
7
|
-
import {
|
|
7
|
+
import { overlayStyle as R, anchorStyle as _, backdropStyle as b } from "./Drawer.style.js";
|
|
8
8
|
import { DrawerContextProvider as S } from "./DrawerContext.js";
|
|
9
9
|
const x = u.forwardRef(({
|
|
10
10
|
isOpen: r,
|
|
@@ -31,7 +31,7 @@ const x = u.forwardRef(({
|
|
|
31
31
|
o || l();
|
|
32
32
|
}), w(() => {
|
|
33
33
|
r ? e.style.overflow = "hidden" : e.style.overflow = "";
|
|
34
|
-
}, [r, e.style]), e === null ? null : v.createPortal(/* @__PURE__ */ t(S, { hasFixedLayout: s, onClose: l, children: /* @__PURE__ */ t("div", { css:
|
|
34
|
+
}, [r, e.style]), e === null ? null : v.createPortal(/* @__PURE__ */ t(S, { hasFixedLayout: s, onClose: l, children: /* @__PURE__ */ t("div", { css: b({
|
|
35
35
|
isOpen: r,
|
|
36
36
|
anchor: f,
|
|
37
37
|
size: a,
|
|
@@ -40,7 +40,7 @@ const x = u.forwardRef(({
|
|
|
40
40
|
anchor: f,
|
|
41
41
|
size: a,
|
|
42
42
|
isBackgroundActive: o
|
|
43
|
-
}), children: /* @__PURE__ */ t("div", { ...y, ref: d, css:
|
|
43
|
+
}), children: /* @__PURE__ */ t("div", { ...y, ref: d, css: R({
|
|
44
44
|
isOpen: r,
|
|
45
45
|
anchor: f,
|
|
46
46
|
hasFixedLayout: s
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as a, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { closeIconContainer as i, headerStyle as c } from "../../Drawer.style.js";
|
|
3
3
|
import { useDrawerContext as d } from "../../DrawerContext.js";
|
|
4
4
|
import l from "../../../Icon/Icon.js";
|
|
5
5
|
const p = ({
|
|
@@ -11,12 +11,12 @@ const p = ({
|
|
|
11
11
|
onClose: t = () => null,
|
|
12
12
|
isScrollbarOnTop: n
|
|
13
13
|
}] = d();
|
|
14
|
-
return /* @__PURE__ */ a("div", { css:
|
|
14
|
+
return /* @__PURE__ */ a("div", { css: c({
|
|
15
15
|
isFixed: s,
|
|
16
16
|
hasBoxShadow: !n
|
|
17
17
|
}), children: [
|
|
18
18
|
e,
|
|
19
|
-
/* @__PURE__ */ o("div", { css:
|
|
19
|
+
/* @__PURE__ */ o("div", { css: i(), children: /* @__PURE__ */ o(l, { name: "close", onClick: t, dataTestId: `${r}_close_button` }) })
|
|
20
20
|
] });
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
@@ -6,7 +6,7 @@ import w, { useCallback as c } from "react";
|
|
|
6
6
|
import { generateTestDataId as d } from "../../utils/helpers.js";
|
|
7
7
|
import N from "../utils/ClickAwayListener/ClickAwayListener.js";
|
|
8
8
|
import { optionsStyle as j } from "../utils/DropdownOptions/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { iconButtonWrapper as z, buttonSpanStyle as _, iconButtonSpanStyle as A, wrapperStyle as F } from "./DropdownButton.style.js";
|
|
10
10
|
import y from "../IconButton/IconButton.js";
|
|
11
11
|
import R from "../Button/Button.js";
|
|
12
12
|
import q from "../List/List.js";
|
|
@@ -36,15 +36,15 @@ const H = w.forwardRef((I, B) => {
|
|
|
36
36
|
const O = String(L(Array.from(t))), u = s?.find((P) => P === O);
|
|
37
37
|
u && p(u);
|
|
38
38
|
}, [p, s]);
|
|
39
|
-
return /* @__PURE__ */ o(N, { onClick: () => i(!1), children: /* @__PURE__ */ h("div", { css:
|
|
40
|
-
v ? /* @__PURE__ */ o("div", { css:
|
|
39
|
+
return /* @__PURE__ */ o(N, { onClick: () => i(!1), children: /* @__PURE__ */ h("div", { css: F(), children: [
|
|
40
|
+
v ? /* @__PURE__ */ o("div", { css: z({
|
|
41
41
|
type: e,
|
|
42
42
|
isOpen: n
|
|
43
43
|
}), children: /* @__PURE__ */ o(y, { type: e, size: r, iconName: S, onClick: f, dataTestPrefixId: d("icon-dropdown", a) }) }) : /* @__PURE__ */ h("div", { css: G, children: [
|
|
44
|
-
/* @__PURE__ */ o("div", { css:
|
|
44
|
+
/* @__PURE__ */ o("div", { css: _({
|
|
45
45
|
type: e
|
|
46
46
|
}), children: /* @__PURE__ */ o(R, { type: e, size: r, ref: B, onClick: g, dataTestPrefixId: d("dropdown", a), children: x }) }),
|
|
47
|
-
/* @__PURE__ */ o("div", { css:
|
|
47
|
+
/* @__PURE__ */ o("div", { css: A({
|
|
48
48
|
isOpen: n,
|
|
49
49
|
type: e
|
|
50
50
|
}), children: /* @__PURE__ */ o(y, { type: e, size: r, iconName: "triangleDown", shape: "square", onClick: f, dataTestPrefixId: d("dropdown-toggle", a) }) })
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as c } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import i, { forwardRef as
|
|
2
|
+
import i, { forwardRef as d, useState as n, useCallback as p } from "react";
|
|
3
3
|
import F from "react-fast-compare";
|
|
4
4
|
import S from "./Filter.js";
|
|
5
|
-
const o =
|
|
5
|
+
const o = d(({
|
|
6
6
|
isMulti: t,
|
|
7
7
|
selectedFilter: e,
|
|
8
8
|
onChange: a = () => {
|
|
9
9
|
},
|
|
10
10
|
...f
|
|
11
|
-
},
|
|
12
|
-
const [
|
|
11
|
+
}, u) => {
|
|
12
|
+
const [m, r] = n(t ? e || [] : e || void 0), s = p((l) => {
|
|
13
13
|
r(l), a(l);
|
|
14
14
|
}, [a]);
|
|
15
15
|
return (
|
|
16
16
|
// @ts-ignore
|
|
17
|
-
/* @__PURE__ */ c(S, { ...f, selectedFilter:
|
|
17
|
+
/* @__PURE__ */ c(S, { ...f, selectedFilter: m, isMulti: t, onChange: s, onClear: () => r(t ? [] : void 0), ref: u })
|
|
18
18
|
);
|
|
19
19
|
});
|
|
20
20
|
o.displayName = "StatefulFilter";
|
|
21
|
-
const
|
|
21
|
+
const x = i.memo(o, F);
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
x as default
|
|
24
24
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { vars as t } from "@orfium/tokens";
|
|
3
3
|
import d from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { iconStyles as h, buttonStyles as w } from "./FilterButton.style.js";
|
|
5
5
|
import g from "../../../Tag/Tag.js";
|
|
6
6
|
import n from "../../../Icon/Icon.js";
|
|
7
7
|
var I = {
|
|
@@ -26,7 +26,7 @@ const T = d.forwardRef((c, f) => {
|
|
|
26
26
|
} = c, x = m === "added", b = d.useMemo(() => r ? void 0 : (y) => {
|
|
27
27
|
y.stopPropagation(), s();
|
|
28
28
|
}, [r, s]);
|
|
29
|
-
return /* @__PURE__ */ a("button", { css:
|
|
29
|
+
return /* @__PURE__ */ a("button", { css: w({
|
|
30
30
|
isActive: e,
|
|
31
31
|
isPopulated: v,
|
|
32
32
|
isDisabled: r
|
|
@@ -36,7 +36,7 @@ const T = d.forwardRef((c, f) => {
|
|
|
36
36
|
"+",
|
|
37
37
|
l
|
|
38
38
|
] }),
|
|
39
|
-
/* @__PURE__ */ i("div", { css:
|
|
39
|
+
/* @__PURE__ */ i("div", { css: h({
|
|
40
40
|
isActive: e
|
|
41
41
|
}), children: /* @__PURE__ */ i(n, { name: "triangleDown", size: t.sizing[4], color: e ? t.color.text.inverted.primary : t.color.text.default.active }) }),
|
|
42
42
|
x && /* @__PURE__ */ i(n, { role: "button", "aria-label": "Remove filter", name: "close", size: t.sizing[4], color: e ? t.color.text.inverted.primary : t.color.text.default.active, onClick: b, dataTestPrefixId: `${o}_filter_close` })
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { differenceBy as
|
|
2
|
-
import
|
|
3
|
-
import { SELECT_ALL_OPTION as
|
|
4
|
-
const
|
|
5
|
-
isMulti:
|
|
6
|
-
setIsOpen:
|
|
7
|
-
isSearchable:
|
|
8
|
-
onChange:
|
|
1
|
+
import { differenceBy as _, debounce as b, isEqual as D } from "lodash-es";
|
|
2
|
+
import m, { useState as E } from "react";
|
|
3
|
+
import { SELECT_ALL_OPTION as I } from "../../Select/constants.js";
|
|
4
|
+
const k = ({
|
|
5
|
+
isMulti: a,
|
|
6
|
+
setIsOpen: L,
|
|
7
|
+
isSearchable: n,
|
|
8
|
+
onChange: f,
|
|
9
9
|
selectedFilter: t,
|
|
10
|
-
onAsyncSearch:
|
|
10
|
+
onAsyncSearch: s,
|
|
11
11
|
isAsync: o,
|
|
12
|
-
minCharactersToSearch:
|
|
12
|
+
minCharactersToSearch: d,
|
|
13
13
|
items: l,
|
|
14
|
-
onClear:
|
|
14
|
+
onClear: p
|
|
15
15
|
}) => {
|
|
16
|
-
const [u,
|
|
16
|
+
const [u, i] = E(""), c = m.useMemo(() => {
|
|
17
17
|
if (!l) return;
|
|
18
|
-
const e =
|
|
18
|
+
const e = a && Array.isArray(t) ? _(l, t, "value") : l;
|
|
19
19
|
return o ? e : e.filter((r) => !u || r.label.toLowerCase().includes(u.toLowerCase()));
|
|
20
|
-
}, [o, l,
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
}, 400), []);
|
|
20
|
+
}, [o, l, a, t, u]), h = (e) => {
|
|
21
|
+
a || L(!1), n && i(""), a === !0 ? f && t && (D(e, I) ? f([...t, ...c.filter((r) => !r.isDisabled)]) : f([...t, e])) : f(e);
|
|
22
|
+
}, v = m.useMemo(() => b((e) => {
|
|
23
|
+
s?.(e);
|
|
24
|
+
}, 400), [s]);
|
|
25
25
|
return {
|
|
26
26
|
searchValue: u,
|
|
27
|
-
handleFilterClick:
|
|
27
|
+
handleFilterClick: h,
|
|
28
28
|
handleInput: (e) => {
|
|
29
29
|
const {
|
|
30
30
|
target: {
|
|
31
31
|
value: r
|
|
32
32
|
}
|
|
33
33
|
} = e;
|
|
34
|
-
if (
|
|
35
|
-
if (e.persist(),
|
|
34
|
+
if (n && i(r), o) {
|
|
35
|
+
if (e.persist(), d && r.length && r.length < d)
|
|
36
36
|
return;
|
|
37
|
-
|
|
37
|
+
v(r.trim());
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
filteredOptions: c,
|
|
41
41
|
handleFilterDelete: (e) => {
|
|
42
|
-
const r = Array.isArray(t) ? t.filter((
|
|
43
|
-
|
|
42
|
+
const r = Array.isArray(t) ? t.filter((O) => O.value !== e.value) : [];
|
|
43
|
+
a === !0 && f && f(r);
|
|
44
44
|
},
|
|
45
45
|
handleClear: () => {
|
|
46
|
-
|
|
46
|
+
p && p(), i("");
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
k as default
|
|
52
52
|
};
|
|
@@ -5,7 +5,7 @@ import y from "../../hooks/useCombinedRefs.js";
|
|
|
5
5
|
import * as I from "react";
|
|
6
6
|
import { useRef as R } from "react";
|
|
7
7
|
import x from "./assets/iconSelector.js";
|
|
8
|
-
import {
|
|
8
|
+
import { iconStyles as S, iconContainerStyles as b } from "./Icon.style.js";
|
|
9
9
|
const h = I.forwardRef((o, c) => {
|
|
10
10
|
o = v(o, "icon");
|
|
11
11
|
const {
|
|
@@ -17,13 +17,13 @@ const h = I.forwardRef((o, c) => {
|
|
|
17
17
|
hasHover: f,
|
|
18
18
|
...d
|
|
19
19
|
} = o, n = y(c, R(null)), t = !!e, l = x[i];
|
|
20
|
-
return /* @__PURE__ */ s("div", { onClick: e, css:
|
|
20
|
+
return /* @__PURE__ */ s("div", { onClick: e, css: b({
|
|
21
21
|
size: r,
|
|
22
22
|
hasHover: f ?? t,
|
|
23
23
|
isInteractive: t
|
|
24
24
|
}), "data-testid": m, ref: n, tabIndex: t ? 0 : void 0, onKeyDown: (u) => {
|
|
25
25
|
u.key === "Enter" && e && n.current.click();
|
|
26
|
-
}, ...d, children: /* @__PURE__ */ s(l, { css:
|
|
26
|
+
}, ...d, children: /* @__PURE__ */ s(l, { css: S({
|
|
27
27
|
color: a,
|
|
28
28
|
size: r
|
|
29
29
|
}) }) });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css as i } from "@emotion/react";
|
|
2
|
-
import {
|
|
2
|
+
import { vars as o, rem as r } from "@orfium/tokens";
|
|
3
3
|
import { generateStylesFromTokens as m } from "../Typography/utils.js";
|
|
4
4
|
const t = r(3), f = ({
|
|
5
5
|
isAnimated: e,
|
|
@@ -5,7 +5,7 @@ import { useListState as R } from "react-stately";
|
|
|
5
5
|
import v from "../../hooks/useCombinedRefs.js";
|
|
6
6
|
import x from "./components/ListItemWrapper/ListItemWrapper.js";
|
|
7
7
|
import { ListItemWrapperStyled as I } from "./components/ListItemWrapper/ListItemWrapper.style.js";
|
|
8
|
-
import {
|
|
8
|
+
import { listStyle as P, wrapperStyle as _, groupedUlStyle as k } from "./List.style.js";
|
|
9
9
|
import { LIST_ITEM_HEIGHT as F } from "./utils.js";
|
|
10
10
|
import B from "./Window.js";
|
|
11
11
|
const T = p.forwardRef((e, l) => {
|
|
@@ -22,11 +22,11 @@ const T = p.forwardRef((e, l) => {
|
|
|
22
22
|
}), c = p.useRef(null), a = v(c, l), {
|
|
23
23
|
listBoxProps: m
|
|
24
24
|
} = b(e, t, a), f = t.collection.getFirstKey(), y = f ? t.collection.getItem(f) : null;
|
|
25
|
-
return /* @__PURE__ */ i("div", { css:
|
|
25
|
+
return /* @__PURE__ */ i("div", { css: _({
|
|
26
26
|
width: d
|
|
27
27
|
}), children: /* @__PURE__ */ i("div", { "data-testid": s ? `${s}_list` : "ictinus_list", children: /* @__PURE__ */ i("div", { style: {
|
|
28
28
|
height: o && r ? r : "100%"
|
|
29
|
-
}, children: /* @__PURE__ */ i(B, { ...m, css:
|
|
29
|
+
}, children: /* @__PURE__ */ i(B, { ...m, css: P({
|
|
30
30
|
width: d,
|
|
31
31
|
height: r
|
|
32
32
|
}), id: m.id, isVirtualizationEnabled: o, rowHeight: F[y?.props.rowSize ?? "normal"], ref: a, children: Array.from(t.collection).map((n) => n.type === "section" ? /* @__PURE__ */ i(E, { section: n, state: t }, n.key) : /* @__PURE__ */ i(u, { item: n, state: t }, n.key)) }) }) }) });
|
|
@@ -6,36 +6,31 @@ import v from "../../hooks/useCombinedRefs.js";
|
|
|
6
6
|
const a = 5, I = g(({
|
|
7
7
|
rowHeight: e,
|
|
8
8
|
children: o,
|
|
9
|
-
gap:
|
|
10
|
-
isVirtualizationEnabled:
|
|
9
|
+
gap: i = 0,
|
|
10
|
+
isVirtualizationEnabled: r = !0,
|
|
11
11
|
...c
|
|
12
12
|
}, u) => {
|
|
13
13
|
const [p, {
|
|
14
|
-
height:
|
|
14
|
+
height: m
|
|
15
15
|
}] = S(), d = v(p, u), [l, h] = t.useState(0), x = t.useMemo(() => {
|
|
16
|
-
if (!
|
|
17
|
-
return o.map((s
|
|
18
|
-
const n = Math.max(Math.floor(l / e) - a, 0), y = Math.min(Math.ceil((l +
|
|
19
|
-
return o.slice(n, y + 1).map((s,
|
|
16
|
+
if (!r)
|
|
17
|
+
return o.map((s) => t.cloneElement(s, {}));
|
|
18
|
+
const n = Math.max(Math.floor(l / e) - a, 0), y = Math.min(Math.ceil((l + m) / e - 1) + a, o.length - 1);
|
|
19
|
+
return o.slice(n, y + 1).map((s, f) => t.cloneElement(s, {
|
|
20
20
|
style: {
|
|
21
21
|
position: "absolute",
|
|
22
|
-
top: (n +
|
|
22
|
+
top: (n + f) * e + f * i,
|
|
23
23
|
height: e,
|
|
24
24
|
left: 0,
|
|
25
25
|
right: 0,
|
|
26
26
|
lineHeight: `${e}px`
|
|
27
27
|
}
|
|
28
28
|
}));
|
|
29
|
-
}, [o,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
35
|
-
{
|
|
36
|
-
leading: !1
|
|
37
|
-
}
|
|
38
|
-
), []);
|
|
29
|
+
}, [o, m, e, l, i, r]), M = t.useMemo(() => b(function(n) {
|
|
30
|
+
h(n.target.scrollTop);
|
|
31
|
+
}, 50, {
|
|
32
|
+
leading: !1
|
|
33
|
+
}), []);
|
|
39
34
|
return /* @__PURE__ */ R("ul", { onScroll: M, ...c, style: {
|
|
40
35
|
overflowY: "auto",
|
|
41
36
|
position: "relative",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
const d = (e) => /* @__PURE__ */ i("div", { css:
|
|
2
|
+
import { descriptionStyles as s, listItemTextWrapperStyles as r } from "./ListItemText.style.js";
|
|
3
|
+
const d = (e) => /* @__PURE__ */ i("div", { css: r(), children: [
|
|
4
4
|
/* @__PURE__ */ t("span", { children: e.children }),
|
|
5
|
-
e.description && /* @__PURE__ */ t("p", { css:
|
|
5
|
+
e.description && /* @__PURE__ */ t("p", { css: s(), children: e.description })
|
|
6
6
|
] });
|
|
7
7
|
export {
|
|
8
8
|
d as default
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { ListItemWrapperStyled as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { ListItemWrapperStyled as s } from "./ListItemWrapper.style.js";
|
|
4
|
+
const o = p.forwardRef(({
|
|
5
5
|
children: e,
|
|
6
6
|
rowSize: a,
|
|
7
7
|
isDisabled: r = !1,
|
|
8
|
-
isHighlighted: f = !1,
|
|
9
|
-
searchTerm: l,
|
|
10
|
-
dataTestId: o,
|
|
11
8
|
...t
|
|
12
|
-
}, i) => /* @__PURE__ */ s
|
|
13
|
-
|
|
9
|
+
}, i) => /* @__PURE__ */ m(s, { "data-testid": `ictinus_list_item_${t["data-key"]?.replace(/ /g, "_")}`, ...t, rowSize: a, isDisabled: r, ref: i, children: e }));
|
|
10
|
+
o.displayName = "ListItem";
|
|
14
11
|
export {
|
|
15
|
-
|
|
12
|
+
o as default
|
|
16
13
|
};
|
|
@@ -4,7 +4,7 @@ import u from "../../hooks/useEscape.js";
|
|
|
4
4
|
import { useOverlayStack as p } from "../../hooks/useOverlayStack.js";
|
|
5
5
|
import { useRef as v, useEffect as y } from "react";
|
|
6
6
|
import { generateTestDataId as h } from "../../utils/helpers.js";
|
|
7
|
-
import { backgroundContainer as C,
|
|
7
|
+
import { backgroundContainer as C, closeContainer as b, modalContainer as g, cardSizing as k } from "./Modal.style.js";
|
|
8
8
|
import x from "./ModalContent/ModalContent.js";
|
|
9
9
|
import I from "../Card/Card.js";
|
|
10
10
|
import M from "../IconButton/IconButton.js";
|
|
@@ -30,9 +30,9 @@ const D = ({
|
|
|
30
30
|
e();
|
|
31
31
|
}), y(() => (r && (document.body.style.overflow = "hidden"), () => {
|
|
32
32
|
document.body.style.overflow = "";
|
|
33
|
-
}), [r]), r ? /* @__PURE__ */ o("div", { css: C, "data-testid": h("modal-container", d), children: /* @__PURE__ */ o("div", { ...m, ref: i, css:
|
|
34
|
-
/* @__PURE__ */ o("div", { css:
|
|
35
|
-
/* @__PURE__ */ o("div", { css:
|
|
33
|
+
}), [r]), r ? /* @__PURE__ */ o("div", { css: C, "data-testid": h("modal-container", d), children: /* @__PURE__ */ o("div", { ...m, ref: i, css: k(n, c), children: /* @__PURE__ */ f(I, { elevated: "02", radius: "3", children: [
|
|
34
|
+
/* @__PURE__ */ o("div", { css: b, children: /* @__PURE__ */ o(M, { type: "tertiary", iconName: "close", onClick: e, iconColor: "secondary", dataTestId: "modal-close" }) }),
|
|
35
|
+
/* @__PURE__ */ o("div", { css: g({
|
|
36
36
|
isContentPadded: s
|
|
37
37
|
}), children: t ? /* @__PURE__ */ o(x, { ...t }) : l })
|
|
38
38
|
] }) }) }) : null;
|
|
@@ -1,82 +1,80 @@
|
|
|
1
|
-
import { jsx as t, Fragment as L, jsxs as
|
|
1
|
+
import { jsx as t, Fragment as L, jsxs as h } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { inputStyle as P } from "../TextInputBase/TextInputBase.style.js";
|
|
3
|
-
import {
|
|
3
|
+
import { omit as S, last as U, merge as $ } from "lodash-es";
|
|
4
4
|
import j, { useRef as A, useMemo as k } from "react";
|
|
5
5
|
import { generateUniqueID as E, generateUniqueKey as N } from "../../utils/helpers.js";
|
|
6
6
|
import V from "./hooks.js";
|
|
7
|
-
import {
|
|
7
|
+
import { tagContent as z, tagStyle as G, inputContainer as H, progressIndicatorStyles as J, rightIconsContainer as Q, textInputBaseOverrides as W, inputOverrides as X } from "./MultiTextFieldBase.style.js";
|
|
8
8
|
import Y from "../Tag/Tag.js";
|
|
9
9
|
import Z from "../TextInputBase/TextInputBase.js";
|
|
10
10
|
import ee from "../Label/Label.js";
|
|
11
11
|
import te from "../ProgressIndicator/ProgressIndicator.js";
|
|
12
|
-
const
|
|
12
|
+
const se = j.forwardRef((x, I) => {
|
|
13
13
|
const {
|
|
14
14
|
selectedOptions: r,
|
|
15
15
|
value: n,
|
|
16
|
-
isDisabled:
|
|
17
|
-
status:
|
|
16
|
+
isDisabled: i,
|
|
17
|
+
status: s = {
|
|
18
18
|
type: "normal"
|
|
19
19
|
},
|
|
20
|
-
isReadOnly:
|
|
20
|
+
isReadOnly: v,
|
|
21
21
|
label: a,
|
|
22
|
-
id:
|
|
22
|
+
id: T,
|
|
23
23
|
placeholder: f,
|
|
24
24
|
isRequired: o = !1,
|
|
25
25
|
onOptionDelete: c,
|
|
26
|
-
onClearAllOptions:
|
|
27
|
-
isLoading:
|
|
26
|
+
onClearAllOptions: b,
|
|
27
|
+
isLoading: D,
|
|
28
28
|
isInteractive: m = !0,
|
|
29
29
|
isResponsive: _ = !1,
|
|
30
|
-
isTextfield:
|
|
31
|
-
onKeyDown:
|
|
32
|
-
sx:
|
|
30
|
+
isTextfield: y = !1,
|
|
31
|
+
onKeyDown: M,
|
|
32
|
+
sx: O,
|
|
33
33
|
...d
|
|
34
|
-
} =
|
|
35
|
-
inputPlaceholder:
|
|
36
|
-
handleKeyDown:
|
|
37
|
-
icon:
|
|
34
|
+
} = x, p = A(T || E("multiTextfield_")).current, u = !!(n || r?.length && r?.length > 0), l = s?.type === "read-only", g = s?.hintMessage ? s?.id ?? `${p}_hintMessage` : void 0, {
|
|
35
|
+
inputPlaceholder: R,
|
|
36
|
+
handleKeyDown: B,
|
|
37
|
+
icon: C,
|
|
38
38
|
hasLabel: F,
|
|
39
|
-
TextfieldRef:
|
|
39
|
+
TextfieldRef: q
|
|
40
40
|
} = V({
|
|
41
|
-
isTextfield:
|
|
41
|
+
isTextfield: y,
|
|
42
42
|
label: a,
|
|
43
43
|
placeholder: f,
|
|
44
44
|
isRequired: o,
|
|
45
|
-
hasValue:
|
|
45
|
+
hasValue: u,
|
|
46
46
|
isLocked: l,
|
|
47
47
|
value: n,
|
|
48
48
|
onOptionDelete: c,
|
|
49
|
-
onClearAllOptions:
|
|
50
|
-
onKeyDown:
|
|
51
|
-
}),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
...i,
|
|
56
|
-
id: h
|
|
49
|
+
onClearAllOptions: b,
|
|
50
|
+
onKeyDown: M
|
|
51
|
+
}), w = k(() => /* @__PURE__ */ t(L, { children: r?.map((e, K) => /* @__PURE__ */ t("span", { css: G(), children: /* @__PURE__ */ t(Y, { onClear: s?.type === "read-only" || i ? void 0 : () => c(e), dataTestPrefixId: `tag_${K}`, children: /* @__PURE__ */ t("div", { title: typeof e == "string" ? e : e.label, css: z({}), children: typeof e == "string" ? e : e.label }) }) }, N("tag" + (typeof e == "string" ? e : e.label)))) }), [i, c, r, s?.type]);
|
|
52
|
+
return /* @__PURE__ */ t("div", { ref: q, children: /* @__PURE__ */ h(Z, { isDisabled: m && i, status: m ? {
|
|
53
|
+
...s,
|
|
54
|
+
id: g
|
|
57
55
|
} : {
|
|
58
56
|
type: "normal"
|
|
59
|
-
}, ...d, isInteractive: m, sx:
|
|
60
|
-
hasValue:
|
|
57
|
+
}, ...d, isInteractive: m, sx: $(W({
|
|
58
|
+
hasValue: u,
|
|
61
59
|
hasLabel: F,
|
|
62
60
|
isResponsive: _,
|
|
63
|
-
isTextfield:
|
|
64
|
-
}),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
67
|
-
/* @__PURE__ */ t("input", { readOnly: l ||
|
|
61
|
+
isTextfield: y
|
|
62
|
+
}), O), children: [
|
|
63
|
+
/* @__PURE__ */ h("div", { css: H(), "data-testid": "selected-tags", children: [
|
|
64
|
+
w,
|
|
65
|
+
/* @__PURE__ */ t("input", { readOnly: l || v, onKeyDown: B(U(r)), css: P({
|
|
68
66
|
placeholder: f,
|
|
69
67
|
label: a,
|
|
70
68
|
sx: X(),
|
|
71
69
|
isLocked: l,
|
|
72
|
-
isDisabled:
|
|
73
|
-
}), placeholder:
|
|
74
|
-
a && /* @__PURE__ */ t(ee, { htmlFor:
|
|
70
|
+
isDisabled: i
|
|
71
|
+
}), placeholder: R, required: o, id: p, disabled: i || l, "data-testid": d.dataTestId ? `input_${d.dataTestId}` : "input", "aria-invalid": s?.type === "error", "aria-describedby": g, ...S(d, "dataTestId"), value: n, ref: I }),
|
|
72
|
+
a && /* @__PURE__ */ t(ee, { htmlFor: p, label: a, isRequired: o, isAnimated: u, hasError: !i && s?.type === "error" })
|
|
75
73
|
] }),
|
|
76
|
-
!
|
|
74
|
+
!i && /* @__PURE__ */ t("div", { css: Q(), children: D ? /* @__PURE__ */ t("div", { css: J(), children: /* @__PURE__ */ t(te, { type: "circular", dataTestPrefixId: "multi_textdield_base" }) }) : C })
|
|
77
75
|
] }) });
|
|
78
76
|
});
|
|
79
|
-
|
|
77
|
+
se.displayName = "MultiTextFieldBase";
|
|
80
78
|
export {
|
|
81
|
-
|
|
79
|
+
se as default
|
|
82
80
|
};
|