uikit-react-public 0.50.6 → 0.50.12
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/Alert/Alert.d.ts +3 -3
- package/dist/components/Alert/Alert.stories.d.ts +3 -3
- package/dist/components/Alert/AlertMessage.d.ts +1 -1
- package/dist/components/Alert/AlertTitle.d.ts +1 -1
- package/dist/components/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/AppHeader/AppHeader.stories.d.ts +1 -1
- package/dist/components/AppHeader/AppHeaderBottom.d.ts +1 -1
- package/dist/components/AppHeader/AppHeaderNav.d.ts +1 -1
- package/dist/components/AppHeader/AppHeaderTop.d.ts +1 -1
- package/dist/components/AppMenu/AppMenu.d.ts +1 -1
- package/dist/components/AppMenu/AppMenu.stories.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/Badge.stories.d.ts +1 -1
- package/dist/components/BaseCheckbox/BaseCheckbox.d.ts +1 -1
- package/dist/components/BaseCheckbox/BaseCheckbox.stories.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts +1 -1
- package/dist/components/BreadcrumbsNew/BaseBreadcrumbsItem.d.ts +1 -1
- package/dist/components/BreadcrumbsNew/BreadcrumbsCurrent.d.ts +1 -1
- package/dist/components/BreadcrumbsNew/BreadcrumbsLink.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.stories.d.ts +1 -1
- package/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Calendar/Calendar.stories.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/AcademicWeek.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/AcademicWeeks.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/ColumnHeading.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/Controls.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/ControlsSelect.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/Day.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/Day.stories.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/EventDot.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/Grid.d.ts +1 -1
- package/dist/components/Callout/Callout.d.ts +1 -1
- package/dist/components/Callout/Callout.stories.d.ts +1 -1
- package/dist/components/CookieNotice/CookieNotice.d.ts +1 -1
- package/dist/components/CookiesNotice/CookieSettings.d.ts +1 -1
- package/dist/components/CookiesNotice/CookiesNotice.d.ts +1 -1
- package/dist/components/CookiesNotice/CookiesNotice.stories.d.ts +1 -1
- package/dist/components/Datepicker/Datepicker.d.ts +1 -1
- package/dist/components/Datepicker/Datepicker.stories.d.ts +1 -1
- package/dist/components/Datepicker/subcomponents/CustomDatepicker.d.ts +1 -1
- package/dist/components/Datepicker/subcomponents/DatepickerInput.d.ts +1 -1
- package/dist/components/Datepicker/subcomponents/Panel.d.ts +1 -1
- package/dist/components/Dialog/DialogBody.d.ts +1 -1
- package/dist/components/Dialog/DialogFooter.d.ts +1 -1
- package/dist/components/Dialog/DialogHeader.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Divider/Divider.stories.d.ts +1 -1
- package/dist/components/DrawerMenu/DrawerMenu.d.ts +1 -1
- package/dist/components/DrawerMenu/DrawerMenuTrigger.d.ts +1 -1
- package/dist/components/DropZone/DropZone.d.ts +1 -1
- package/dist/components/DropZone/DropZone.stories.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.stories.d.ts +1 -1
- package/dist/components/Dropdown/DropdownContent.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
- package/dist/components/DropdownUserMenu/DropdownUserMenu.d.ts +1 -1
- package/dist/components/ErrorDialog/ErrorDialog.d.ts +1 -1
- package/dist/components/ErrorDialog/ErrorDialog.stories.d.ts +1 -1
- package/dist/components/FeedbackDialog/FeedbackDialog.d.ts +1 -1
- package/dist/components/FeedbackDialog/FeedbackDialog.stories.d.ts +1 -1
- package/dist/components/Field/CharacterCount.d.ts +1 -1
- package/dist/components/Field/ErrorText.d.ts +1 -1
- package/dist/components/Field/Field.d.ts +1 -1
- package/dist/components/Field/Field.stories.d.ts +1 -1
- package/dist/components/Field/HelperText.d.ts +1 -1
- package/dist/components/FileInput/FileInput.d.ts +1 -1
- package/dist/components/FileInput/FileInput.stories.d.ts +1 -1
- package/dist/components/Filters/Filter.d.ts +1 -1
- package/dist/components/Filters/FilterPanel.d.ts +1 -1
- package/dist/components/Filters/Filters.d.ts +3 -3
- package/dist/components/Filters/Filters.stories.d.ts +3 -3
- package/dist/components/Filters/QuickFilter.d.ts +1 -1
- package/dist/components/Footer/Footer.d.ts +3 -3
- package/dist/components/Footer/Footer.stories.d.ts +1 -1
- package/dist/components/Footer/FooterColumn.d.ts +1 -1
- package/dist/components/Footer/FooterNavLink.d.ts +1 -1
- package/dist/components/Footer/SocialLink.d.ts +1 -1
- package/dist/components/FooterNew/BackToTop.d.ts +1 -1
- package/dist/components/FooterNew/Footer.d.ts +1 -1
- package/dist/components/FooterNew/FooterColumn.d.ts +1 -1
- package/dist/components/FooterNew/FooterLinks.d.ts +1 -1
- package/dist/components/FooterNew/FooterNavLink.d.ts +1 -1
- package/dist/components/FooterNew/LegalAndCopyright.d.ts +1 -1
- package/dist/components/FooterNew/LogoAddressAndSocial.d.ts +1 -1
- package/dist/components/FooterNew/SocialLink.d.ts +1 -1
- package/dist/components/Header/Header.d.ts +1 -1
- package/dist/components/Header/Header.stories.d.ts +1 -1
- package/dist/components/HeaderDraft/HeaderBottomBreadcrumbs.d.ts +1 -1
- package/dist/components/HeaderDraft/HeaderBottomHeadingAndAvatar.d.ts +1 -1
- package/dist/components/HeaderDraft/HeaderBreadcrumb.d.ts +1 -1
- package/dist/components/HeaderNew/Header.d.ts +1 -1
- package/dist/components/HeaderNew/HeaderBorder.d.ts +3 -1
- package/dist/components/HeaderNew/HeaderItem.d.ts +1 -1
- package/dist/components/HeaderNew/HeaderLogo.d.ts +1 -1
- package/dist/components/HeaderNew/HeaderTitle.d.ts +3 -1
- package/dist/components/Heading/Heading.stories.d.ts +1 -1
- package/dist/components/Icon/BaseIcon.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/svgImports.d.ts +8 -0
- package/dist/components/Icon/svgs/ActivitySvg.d.ts +1 -1
- package/dist/components/Icon/svgs/AirplaySvg.d.ts +1 -1
- package/dist/components/Icon/svgs/AlertCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/AlertOctagonSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/AlertTriangleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/AlignCenterSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/AlignJustifySvg.d.ts +1 -1
- package/dist/components/Icon/svgs/AlignLeftSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/AlignRightSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/AnchorSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ApertureSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArchiveSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArrowDownCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArrowDownLeftSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArrowDownRightSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArrowDownSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArrowLeftCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArrowLeftSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArrowRightCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArrowRightSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArrowUpCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArrowUpLeftSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArrowUpRightSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ArrowUpSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/AtSignSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/AvatarSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/AwardSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/BarChart2Svg.d.ts +1 -1
- package/dist/components/Icon/svgs/BarChartSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/BatteryChargingSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/BatterySvg.d.ts +1 -1
- package/dist/components/Icon/svgs/BellOffSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/BellSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/BluetoothSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/BoldSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/BookOpenSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/BookSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/BookmarkSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/BoxSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/BriefcaseSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CalendarSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CameraOffSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CameraSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CastSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CheckCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CheckSquareSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CheckSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ChevronDownSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ChevronLeftSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ChevronRightSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ChevronUpSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ChevronsDownSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ChevronsLeftSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ChevronsRightSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ChevronsUpSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ChromeSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ClipboardSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ClockSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CloudDrizzleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CloudLightningSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CloudOffSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CloudRainSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CloudSnowSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CloudSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CodeSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CodepenSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CodesandboxSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CoffeeSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ColumnsSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CommandSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CompassSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CopySvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CornerDownLeftSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CornerDownRightSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CornerLeftDownSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CornerLeftUpSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CornerRightDownSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CornerRightUpSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CornerUpLeftSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CornerUpRightSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CpuSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CreditCardSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CropSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/CrosshairSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/DatabaseSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/DeleteSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/DiscSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/DivideCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/DivideSquareSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/DivideSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/DollarSignSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/DownloadCloudSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/DownloadSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/DribbbleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/DropletSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/Edit2Svg.d.ts +1 -1
- package/dist/components/Icon/svgs/Edit3Svg.d.ts +1 -1
- package/dist/components/Icon/svgs/EditSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ExternalLinkSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/EyeOffSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/EyeSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FastForwardSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FeatherSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FigmaSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FileMinusSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FilePlusSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FileSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FileTextSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FilmSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FilterSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FlagSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FolderMinusSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FolderPlusSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FolderSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FramerSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/FrownSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/GiftSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/GitBranchSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/GitCommitSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/GitMergeSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/GitPullRequestSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/GithubSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/GitlabSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/GlobeSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/GridSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/HardDriveSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/HashSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/HeadphonesSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/HeartSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/HelpCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/HexagonSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/HomeSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ImageSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/InboxSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/InfoSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ItalicSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/KeySvg.d.ts +1 -1
- package/dist/components/Icon/svgs/LayersSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/LayoutSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/LifeBuoySvg.d.ts +1 -1
- package/dist/components/Icon/svgs/Link2Svg.d.ts +1 -1
- package/dist/components/Icon/svgs/LinkSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/LinkedinSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ListSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/LoaderSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/LockSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/LogInSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/LogOutSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MailSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MapPinSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MapSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/Maximize2Svg.d.ts +1 -1
- package/dist/components/Icon/svgs/MaximizeSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MehSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MenuSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MessageCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MessageSquareSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MicOffSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MicSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/Minimize2Svg.d.ts +1 -1
- package/dist/components/Icon/svgs/MinimizeSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MinusCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MinusSquareSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MinusSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MonitorSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MoonSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MoreHorizontalSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MoreVerticalSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MousePointerSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MoveSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/MusicSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/Navigation2Svg.d.ts +1 -1
- package/dist/components/Icon/svgs/NavigationSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/OctagonSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PackageSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PaperclipSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PauseCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PauseSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PenToolSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PercentSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PhoneCallSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PhoneForwardedSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PhoneIncomingSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PhoneMissedSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PhoneOffSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PhoneOutgoingSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PhoneSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PieChartSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PlayCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PlaySvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PlusCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PlusSquareSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PlusSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PocketSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PowerSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/PrinterSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/RadioSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/RefreshCcwSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/RefreshCwSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/RepeatSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/RewindSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/RotateCcwSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/RotateCwSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/RssSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SaveSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ScissorsSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SearchSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SendSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ServerSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SettingsSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/Share2Svg.d.ts +1 -1
- package/dist/components/Icon/svgs/ShareSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ShieldOffSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ShieldSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ShoppingBagSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ShoppingCartSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ShuffleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SidebarSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SkipBackSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SkipForwardSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SlackSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SlashSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SlidersSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SmartphoneSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SmileSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SpeakerSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SquareSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/StarSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/StopCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SunSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SunriseSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/SunsetSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TableSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TabletSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TagSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TargetSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TerminalSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ThermometerSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ThumbsDownSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ThumbsUpSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ToggleLeftSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ToggleRightSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ToolSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/Trash2Svg.d.ts +1 -1
- package/dist/components/Icon/svgs/TrashSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TrelloSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TrendingDownSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TrendingUpSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TriangleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TruckSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TvSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TwitchSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TwitterSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/TypeSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/UmbrellaSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/UnderlineSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/UnlockSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/UploadCloudSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/UploadSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/UserCheckSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/UserMinusSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/UserPlusSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/UserSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/UserXSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/UsersSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/VideoOffSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/VideoSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/VoicemailSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/Volume1Svg.d.ts +1 -1
- package/dist/components/Icon/svgs/Volume2Svg.d.ts +1 -1
- package/dist/components/Icon/svgs/VolumeSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/VolumeXSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/WatchSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/WifiOffSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/WifiSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/WindSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/XCircleSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/XOctagonSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/XSquareSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/XSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ZapOffSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ZapSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ZoomInSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/ZoomOutSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/internal/EmptySvg.d.ts +1 -1
- package/dist/components/Icon/svgs/social/FacebookSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/social/FlickrSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/social/InstagramSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/social/SoundcloudSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/social/TiktokSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/social/XSvg.d.ts +1 -1
- package/dist/components/Icon/svgs/social/YoutubeSvg.d.ts +1 -1
- package/dist/components/Layout/Layout.d.ts +1 -1
- package/dist/components/Layout/Layout.stories.d.ts +1 -1
- package/dist/components/Main/Main.d.ts +1 -1
- package/dist/components/Main/Main.stories.d.ts +1 -1
- package/dist/components/Menu/Menu.d.ts +2 -2
- package/dist/components/Menu/MenuTrigger.d.ts +1 -1
- package/dist/components/MenuNew/ActionMenuButton.d.ts +1 -1
- package/dist/components/MenuNew/Menu.context.d.ts +1 -1
- package/dist/components/MenuNew/MenuAccordion/MenuAccordionChevron.d.ts +1 -1
- package/dist/components/MenuNew/MenuAccordion/MenuAccordionItem.d.ts +1 -1
- package/dist/components/MenuNew/MenuBaseItem.d.ts +1 -1
- package/dist/components/MenuNew/MenuDivider.d.ts +1 -1
- package/dist/components/MenuNew/MenuHead.d.ts +1 -1
- package/dist/components/MenuNew/MenuHeading.d.ts +1 -1
- package/dist/components/MenuNew/MenuItemText.d.ts +1 -1
- package/dist/components/MenuNew/MenuSection.d.ts +1 -1
- package/dist/components/MenuNew/PrimaryMenuItem.d.ts +1 -1
- package/dist/components/MenuNew/SecondaryMenuItem.d.ts +1 -1
- package/dist/components/NativeDatepicker/NativeDatepicker.d.ts +1 -1
- package/dist/components/NativeDatepicker/NativeDatepicker.stories.d.ts +1 -1
- package/dist/components/Overlay/Overlay.stories.d.ts +16 -16
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/components/Pagination/PaginationControls.d.ts +1 -1
- package/dist/components/Pagination/PaginationInfo.d.ts +1 -1
- package/dist/components/Pagination/subcomponents/PaginationCompactControls.d.ts +1 -1
- package/dist/components/Pagination/subcomponents/PaginationStandardControls.d.ts +1 -1
- package/dist/components/Paragraph/Paragraph.stories.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +1 -1
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.stories.d.ts +1 -1
- package/dist/components/Select/subcomponents/CustomOption.d.ts +1 -1
- package/dist/components/Select/subcomponents/CustomSelect.d.ts +1 -1
- package/dist/components/Select/subcomponents/FilterInput.d.ts +1 -1
- package/dist/components/Select/subcomponents/NativeSelect.d.ts +1 -1
- package/dist/components/Select/subcomponents/Panel.d.ts +1 -1
- package/dist/components/Select/subcomponents/VisibleField.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.stories.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.stories.d.ts +1 -1
- package/dist/components/Skeleton/SkeletonAvatar.d.ts +1 -1
- package/dist/components/Skeleton/SkeletonInput.d.ts +1 -1
- package/dist/components/Skeleton/SkeletonTableRow.d.ts +1 -1
- package/dist/components/Skeleton/SkeletonText.d.ts +1 -1
- package/dist/components/SkipToContent/SkipToContent.d.ts +1 -1
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.stories.d.ts +1 -1
- package/dist/components/Snackbar/Snackbars.d.ts +1 -1
- package/dist/components/Snackbar/Snackbars.stories.d.ts +1 -1
- package/dist/components/Spinner/Spinner.d.ts +1 -1
- package/dist/components/Spinner/Spinner.stories.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +6 -6
- package/dist/components/Table/Table.stories.d.ts +6 -6
- package/dist/components/Table/subcomponents/Body.d.ts +1 -1
- package/dist/components/Table/subcomponents/Cell/Cell.d.ts +1 -1
- package/dist/components/Table/subcomponents/Cell/Cell.stories.d.ts +2 -2
- package/dist/components/Table/subcomponents/Cell/CellContent.d.ts +1 -1
- package/dist/components/Table/subcomponents/Head.d.ts +1 -1
- package/dist/components/Table/subcomponents/HeadCell/HeadCell.d.ts +1 -1
- package/dist/components/Table/subcomponents/HeadCell/HeadCell.stories.d.ts +2 -2
- package/dist/components/Table/subcomponents/HeadCell/HeadCellContent.d.ts +1 -1
- package/dist/components/Table/subcomponents/Row.d.ts +1 -1
- package/dist/components/Table/subcomponents/SortIcon.d.ts +1 -1
- package/dist/components/Tabs/Tab.d.ts +1 -1
- package/dist/components/Tabs/TabsList.d.ts +1 -1
- package/dist/components/Tabs/TabsPanel.d.ts +1 -1
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/Timepicker/Timepicker.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +7 -2
- package/dist/components/ToggleGroup/subcomponents/ToggleGroupItem.stories.d.ts +2 -2
- package/dist/components/UclLogo/UclLogo.d.ts +1 -1
- package/dist/components/UclLogo/UclLogoNegativeSpace.d.ts +1 -1
- package/dist/components/UclLogoNew/UclLogo.d.ts +1 -1
- package/dist/components/WeekPicker/WeekPicker.d.ts +1 -1
- package/dist/components/WeekPicker/WeekPicker.stories.d.ts +1 -1
- package/dist/components/WeekPicker/subcomponents/CustomDatepicker.d.ts +1 -1
- package/dist/components/WeekPicker/subcomponents/DatepickerInput.d.ts +1 -1
- package/dist/index.js +7570 -7525
- package/lib/components/Accordion/Accordion.Heading.tsx +1 -1
- package/lib/components/Accordion/Accordion.Panel.tsx +1 -1
- package/lib/components/Accordion/__tests__/Accordion.test.tsx +21 -0
- package/lib/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +2 -2
- package/lib/components/Badge/Badge.tsx +3 -1
- package/lib/components/Badge/__tests__/Badge.test.tsx +10 -2
- package/lib/components/Badge/__tests__/__snapshots__/Badge.test.tsx.snap +9 -9
- package/lib/components/Calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +4 -4
- package/lib/components/Callout/Callout.tsx +1 -1
- package/lib/components/Datepicker/__tests__/Datepicker.test.tsx +49 -0
- package/lib/components/Datepicker/__tests__/__snapshots__/Datepicker.test.tsx.snap +6 -6
- package/lib/components/Datepicker/subcomponents/CustomDatepicker.tsx +2 -1
- package/lib/components/Datepicker/subcomponents/DatepickerInput.tsx +1 -0
- package/lib/components/Datepicker/subcomponents/VisibleField.tsx +2 -1
- package/lib/components/Datepicker/utils/parseInputValue/parseInputValue.test.ts +33 -0
- package/lib/components/Datepicker/utils/parseInputValue/parseInputValue.ts +13 -10
- package/lib/components/Header/Header.mdx +14 -1
- package/lib/components/Header/__tests__/Header.test.tsx +5 -3
- package/lib/components/HeaderNew/Header.tsx +6 -1
- package/lib/components/HeaderNew/HeaderBorder.tsx +27 -1
- package/lib/components/HeaderNew/HeaderTitle.tsx +33 -1
- package/lib/components/HeaderNew/__tests__/Header.test.tsx +206 -8
- package/lib/components/Icon/__tests__/Icon.test.tsx +24 -1
- package/lib/components/Icon/svgImports.ts +7 -7
- package/lib/components/NativeDatepicker/NativeDatepicker.tsx +1 -0
- package/lib/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +1 -1
- package/lib/components/Select/subcomponents/CustomSelect.tsx +1 -0
- package/lib/components/Select/subcomponents/NativeSelect.tsx +1 -0
- package/lib/components/ToggleGroup/ToggleGroup.stories.tsx +3 -0
- package/lib/components/ToggleGroup/subcomponents/ToggleGroupItem.stories.tsx +4 -1
- package/package.json +4 -4
|
@@ -38,7 +38,7 @@ const AccordionHeading: React.FC<AccordionHeadingProps> = ({
|
|
|
38
38
|
position: relative;
|
|
39
39
|
justify-content: space-between;
|
|
40
40
|
align-items: center;
|
|
41
|
-
padding: ${theme.padding.p16};
|
|
41
|
+
padding: ${theme.padding.p16} ${theme.padding.p8};
|
|
42
42
|
background-color: ${theme.colour.fill.inverse};
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
transition: background-color 0.15s ease;
|
|
@@ -29,7 +29,7 @@ const AccordionPanel: React.FC<AccordionPanelProps> = ({
|
|
|
29
29
|
max-width: 100%;
|
|
30
30
|
min-width: 0;
|
|
31
31
|
flex-shrink: 1;
|
|
32
|
-
padding: ${theme.padding.
|
|
32
|
+
padding: ${theme.padding.p8} ${theme.padding.p8} ${theme.padding.p24};
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
overflow: hidden;
|
|
35
35
|
overflow-wrap: break-word;
|
|
@@ -40,6 +40,27 @@ describe('Accordion', () => {
|
|
|
40
40
|
|
|
41
41
|
// Interaction tests
|
|
42
42
|
|
|
43
|
+
test('uses the expected heading and panel padding', () => {
|
|
44
|
+
render(
|
|
45
|
+
<ThemeContextProvider>
|
|
46
|
+
<Accordion>
|
|
47
|
+
<Accordion.Heading>Heading</Accordion.Heading>
|
|
48
|
+
<Accordion.Panel>Panel Content</Accordion.Panel>
|
|
49
|
+
</Accordion>
|
|
50
|
+
</ThemeContextProvider>
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const heading = screen.getByTestId('ucl-uikit-accordion__heading');
|
|
54
|
+
expect(getComputedStyle(heading).padding).toBe('16px 8px');
|
|
55
|
+
|
|
56
|
+
fireEvent.click(heading);
|
|
57
|
+
const panel = screen.getByTestId('ucl-uikit-accordion__panel');
|
|
58
|
+
expect(getComputedStyle(panel).paddingTop).toBe('8px');
|
|
59
|
+
expect(getComputedStyle(panel).paddingRight).toBe('8px');
|
|
60
|
+
expect(getComputedStyle(panel).paddingBottom).toBe('24px');
|
|
61
|
+
expect(getComputedStyle(panel).paddingLeft).toBe('8px');
|
|
62
|
+
});
|
|
63
|
+
|
|
43
64
|
test('should open and close the accordion', () => {
|
|
44
65
|
render(
|
|
45
66
|
<ThemeContextProvider>
|
|
@@ -8,7 +8,7 @@ exports[`Accordion > snapshot: no props 1`] = `
|
|
|
8
8
|
>
|
|
9
9
|
<h6
|
|
10
10
|
aria-expanded="false"
|
|
11
|
-
class="ucl-uikit-heading ucl-uikit-accordion__heading css-
|
|
11
|
+
class="ucl-uikit-heading ucl-uikit-accordion__heading css-3x70cw"
|
|
12
12
|
data-testid="ucl-uikit-accordion__heading"
|
|
13
13
|
role="button"
|
|
14
14
|
tabindex="0"
|
|
@@ -44,7 +44,7 @@ exports[`Accordion > snapshot: testId prop 1`] = `
|
|
|
44
44
|
>
|
|
45
45
|
<h6
|
|
46
46
|
aria-expanded="false"
|
|
47
|
-
class="ucl-uikit-heading ucl-uikit-accordion__heading css-
|
|
47
|
+
class="ucl-uikit-heading ucl-uikit-accordion__heading css-3x70cw"
|
|
48
48
|
data-testid="ucl-uikit-accordion__heading"
|
|
49
49
|
role="button"
|
|
50
50
|
tabindex="0"
|
|
@@ -91,8 +91,9 @@ export const getBadgeVariantColours = (
|
|
|
91
91
|
color: theme.colour.text.inverse,
|
|
92
92
|
backgroundColor: theme.colour.fill.warning,
|
|
93
93
|
},
|
|
94
|
+
// TODO: replace primitiveColour use here with colour.text.warningOnBgFill when token is updated to matching hex
|
|
94
95
|
'warning-subtle': {
|
|
95
|
-
color: theme.
|
|
96
|
+
color: theme.primitiveColour.orange['13'].$value.hex,
|
|
96
97
|
backgroundColor: theme.colour.fill.warningSubtle,
|
|
97
98
|
},
|
|
98
99
|
disabled: {
|
|
@@ -145,6 +146,7 @@ const Badge = ({
|
|
|
145
146
|
padding: 0 ${theme.padding.p8};
|
|
146
147
|
|
|
147
148
|
color: ${color};
|
|
149
|
+
font-weight: ${theme.typography.body.smSemibold.fontWeight};
|
|
148
150
|
background-color: ${backgroundColor};
|
|
149
151
|
border: ${border ?? 'none'};
|
|
150
152
|
|
|
@@ -91,6 +91,14 @@ describe('Badge', () => {
|
|
|
91
91
|
expect(getByText('Hello')).toBeTruthy();
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
+
test('uses semibold text', () => {
|
|
95
|
+
const { getByTestId } = wrap(<Badge>Text</Badge>);
|
|
96
|
+
|
|
97
|
+
expect(getComputedStyle(getByTestId('ucl-uikit-badge')).fontWeight).toBe(
|
|
98
|
+
String(lightTheme.typography.body.smSemibold.fontWeight)
|
|
99
|
+
);
|
|
100
|
+
});
|
|
101
|
+
|
|
94
102
|
test('applies custom testId', () => {
|
|
95
103
|
const { getByTestId } = wrap(<Badge testId='my-badge'>Text</Badge>);
|
|
96
104
|
expect(getByTestId('my-badge')).toBeTruthy();
|
|
@@ -175,7 +183,7 @@ describe('Badge', () => {
|
|
|
175
183
|
backgroundColor: darkTheme.colour.fill.warning,
|
|
176
184
|
});
|
|
177
185
|
expect(colours['warning-subtle']).toMatchObject({
|
|
178
|
-
color: darkTheme.
|
|
186
|
+
color: darkTheme.primitiveColour.orange['13'].$value.hex,
|
|
179
187
|
backgroundColor: darkTheme.colour.fill.warningSubtle,
|
|
180
188
|
});
|
|
181
189
|
});
|
|
@@ -217,7 +225,7 @@ describe('Badge', () => {
|
|
|
217
225
|
backgroundColor: lightTheme.colour.fill.warning,
|
|
218
226
|
});
|
|
219
227
|
expect(colours['warning-subtle']).toMatchObject({
|
|
220
|
-
color:
|
|
228
|
+
color: '#994D29',
|
|
221
229
|
backgroundColor: lightTheme.colour.fill.warningSubtle,
|
|
222
230
|
});
|
|
223
231
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Badge > snapshot: default 1`] = `
|
|
4
4
|
<span
|
|
5
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
5
|
+
class="ucl-uikit-text ucl-uikit-badge css-193xmhy"
|
|
6
6
|
data-testid="ucl-uikit-badge"
|
|
7
7
|
>
|
|
8
8
|
Default
|
|
@@ -11,7 +11,7 @@ exports[`Badge > snapshot: default 1`] = `
|
|
|
11
11
|
|
|
12
12
|
exports[`Badge > snapshot: size=large 1`] = `
|
|
13
13
|
<span
|
|
14
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
14
|
+
class="ucl-uikit-text ucl-uikit-badge css-xkp5fs"
|
|
15
15
|
data-testid="ucl-uikit-badge"
|
|
16
16
|
>
|
|
17
17
|
Large
|
|
@@ -20,7 +20,7 @@ exports[`Badge > snapshot: size=large 1`] = `
|
|
|
20
20
|
|
|
21
21
|
exports[`Badge > snapshot: statusIndicator 1`] = `
|
|
22
22
|
<span
|
|
23
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
23
|
+
class="ucl-uikit-text ucl-uikit-badge css-193xmhy"
|
|
24
24
|
data-testid="ucl-uikit-badge"
|
|
25
25
|
>
|
|
26
26
|
<span
|
|
@@ -33,7 +33,7 @@ exports[`Badge > snapshot: statusIndicator 1`] = `
|
|
|
33
33
|
|
|
34
34
|
exports[`Badge > snapshot: variant=critical with icon 1`] = `
|
|
35
35
|
<span
|
|
36
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
36
|
+
class="ucl-uikit-text ucl-uikit-badge css-1ussa90"
|
|
37
37
|
data-testid="ucl-uikit-badge"
|
|
38
38
|
>
|
|
39
39
|
<svg
|
|
@@ -66,7 +66,7 @@ exports[`Badge > snapshot: variant=critical with icon 1`] = `
|
|
|
66
66
|
|
|
67
67
|
exports[`Badge > snapshot: variant=disabled 1`] = `
|
|
68
68
|
<span
|
|
69
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
69
|
+
class="ucl-uikit-text ucl-uikit-badge css-1lag7jx"
|
|
70
70
|
data-testid="ucl-uikit-badge"
|
|
71
71
|
>
|
|
72
72
|
Disabled
|
|
@@ -75,7 +75,7 @@ exports[`Badge > snapshot: variant=disabled 1`] = `
|
|
|
75
75
|
|
|
76
76
|
exports[`Badge > snapshot: variant=info with icon 1`] = `
|
|
77
77
|
<span
|
|
78
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
78
|
+
class="ucl-uikit-text ucl-uikit-badge css-pmqt4o"
|
|
79
79
|
data-testid="ucl-uikit-badge"
|
|
80
80
|
>
|
|
81
81
|
<svg
|
|
@@ -108,7 +108,7 @@ exports[`Badge > snapshot: variant=info with icon 1`] = `
|
|
|
108
108
|
|
|
109
109
|
exports[`Badge > snapshot: variant=info-subtle 1`] = `
|
|
110
110
|
<span
|
|
111
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
111
|
+
class="ucl-uikit-text ucl-uikit-badge css-1ikogho"
|
|
112
112
|
data-testid="ucl-uikit-badge"
|
|
113
113
|
>
|
|
114
114
|
Info subtle
|
|
@@ -117,7 +117,7 @@ exports[`Badge > snapshot: variant=info-subtle 1`] = `
|
|
|
117
117
|
|
|
118
118
|
exports[`Badge > snapshot: variant=success with icon 1`] = `
|
|
119
119
|
<span
|
|
120
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
120
|
+
class="ucl-uikit-text ucl-uikit-badge css-plwfy3"
|
|
121
121
|
data-testid="ucl-uikit-badge"
|
|
122
122
|
>
|
|
123
123
|
<svg
|
|
@@ -148,7 +148,7 @@ exports[`Badge > snapshot: variant=success with icon 1`] = `
|
|
|
148
148
|
|
|
149
149
|
exports[`Badge > snapshot: variant=warning with icon 1`] = `
|
|
150
150
|
<span
|
|
151
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
151
|
+
class="ucl-uikit-text ucl-uikit-badge css-159h60j"
|
|
152
152
|
data-testid="ucl-uikit-badge"
|
|
153
153
|
>
|
|
154
154
|
<svg
|
|
@@ -41,7 +41,7 @@ exports[`Calendar > Snapshot: no date provided 1`] = `
|
|
|
41
41
|
aria-expanded="false"
|
|
42
42
|
aria-haspopup="listbox"
|
|
43
43
|
aria-label="Month"
|
|
44
|
-
class="ucl-uikit-select css-
|
|
44
|
+
class="ucl-uikit-select css-1mgirop"
|
|
45
45
|
data-testid="ucl-uikit-select"
|
|
46
46
|
role="combobox"
|
|
47
47
|
tabindex="0"
|
|
@@ -88,7 +88,7 @@ exports[`Calendar > Snapshot: no date provided 1`] = `
|
|
|
88
88
|
aria-expanded="false"
|
|
89
89
|
aria-haspopup="listbox"
|
|
90
90
|
aria-label="Year"
|
|
91
|
-
class="ucl-uikit-select css-
|
|
91
|
+
class="ucl-uikit-select css-1mgirop"
|
|
92
92
|
data-testid="ucl-uikit-select"
|
|
93
93
|
role="combobox"
|
|
94
94
|
tabindex="0"
|
|
@@ -921,7 +921,7 @@ exports[`Calendar > Snapshot: with date provided 1`] = `
|
|
|
921
921
|
aria-expanded="false"
|
|
922
922
|
aria-haspopup="listbox"
|
|
923
923
|
aria-label="Month"
|
|
924
|
-
class="ucl-uikit-select css-
|
|
924
|
+
class="ucl-uikit-select css-1mgirop"
|
|
925
925
|
data-testid="ucl-uikit-select"
|
|
926
926
|
role="combobox"
|
|
927
927
|
tabindex="0"
|
|
@@ -968,7 +968,7 @@ exports[`Calendar > Snapshot: with date provided 1`] = `
|
|
|
968
968
|
aria-expanded="false"
|
|
969
969
|
aria-haspopup="listbox"
|
|
970
970
|
aria-label="Year"
|
|
971
|
-
class="ucl-uikit-select css-
|
|
971
|
+
class="ucl-uikit-select css-1mgirop"
|
|
972
972
|
data-testid="ucl-uikit-select"
|
|
973
973
|
role="combobox"
|
|
974
974
|
tabindex="0"
|
|
@@ -107,6 +107,55 @@ describe('Datepicker', () => {
|
|
|
107
107
|
);
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
+
test.each([
|
|
111
|
+
{ key: 'Enter', initialValue: null, selection: 'no existing selection' },
|
|
112
|
+
{ key: 'Tab', initialValue: null, selection: 'no existing selection' },
|
|
113
|
+
{
|
|
114
|
+
key: 'Enter',
|
|
115
|
+
initialValue: new Date(2027, 0, 10),
|
|
116
|
+
selection: 'an existing selection',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
key: 'Tab',
|
|
120
|
+
initialValue: new Date(2027, 0, 10),
|
|
121
|
+
selection: 'an existing selection',
|
|
122
|
+
},
|
|
123
|
+
])(
|
|
124
|
+
'Clears an overflowing date on $key with $selection',
|
|
125
|
+
async ({ key, initialValue }) => {
|
|
126
|
+
const onValueChange = vi.fn();
|
|
127
|
+
const user = userEvent.setup();
|
|
128
|
+
const ControlledDatepicker = () => {
|
|
129
|
+
const [value, setValue] = useState<Date | null>(initialValue);
|
|
130
|
+
return (
|
|
131
|
+
<Datepicker
|
|
132
|
+
value={value}
|
|
133
|
+
onValueChange={(nextValue, event) => {
|
|
134
|
+
setValue(nextValue);
|
|
135
|
+
onValueChange(nextValue, event);
|
|
136
|
+
}}
|
|
137
|
+
/>
|
|
138
|
+
);
|
|
139
|
+
};
|
|
140
|
+
customRender(<ControlledDatepicker />);
|
|
141
|
+
|
|
142
|
+
const datepickerInput = screen.getByRole('textbox');
|
|
143
|
+
await user.clear(datepickerInput);
|
|
144
|
+
await user.type(datepickerInput, '101/01/2027');
|
|
145
|
+
expect(datepickerInput).toHaveValue('101/01/2027');
|
|
146
|
+
expect(onValueChange).not.toHaveBeenCalled();
|
|
147
|
+
|
|
148
|
+
await user.keyboard(`{${key}}`);
|
|
149
|
+
|
|
150
|
+
expect(datepickerInput).toHaveValue('');
|
|
151
|
+
expect(onValueChange).toHaveBeenCalledExactlyOnceWith(
|
|
152
|
+
null,
|
|
153
|
+
expect.anything()
|
|
154
|
+
);
|
|
155
|
+
expect(announce).not.toHaveBeenCalled();
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
|
|
110
159
|
test('Does not submit an enclosing form on ENTER key press', async () => {
|
|
111
160
|
const onValueChange = vi.fn();
|
|
112
161
|
const onSubmit = vi.fn((event: React.FormEvent) => event.preventDefault());
|
|
@@ -6,11 +6,11 @@ exports[`Datepicker > Snapshot: no date provided 1`] = `
|
|
|
6
6
|
data-testid="ucl-uikit-datepicker"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="ucl-uikit-datepicker__visible-field css-
|
|
9
|
+
class="ucl-uikit-datepicker__visible-field css-51hkje"
|
|
10
10
|
data-testid="ucl-uikit-datepicker__visible-field"
|
|
11
11
|
>
|
|
12
12
|
<input
|
|
13
|
-
class="ucl-uikit-datepicker__input css-
|
|
13
|
+
class="ucl-uikit-datepicker__input css-gjp4ve"
|
|
14
14
|
data-testid="ucl-uikit-datepicker__input"
|
|
15
15
|
inputmode="numeric"
|
|
16
16
|
placeholder="DD/MM/YYYY"
|
|
@@ -25,7 +25,7 @@ exports[`Datepicker > Snapshot: no date provided 1`] = `
|
|
|
25
25
|
type="button"
|
|
26
26
|
>
|
|
27
27
|
<svg
|
|
28
|
-
class="ucl-uikit-icon css-
|
|
28
|
+
class="ucl-uikit-icon css-7p0vcp"
|
|
29
29
|
data-testid="ucl-uikit-icon"
|
|
30
30
|
fill="none"
|
|
31
31
|
focusable="false"
|
|
@@ -61,11 +61,11 @@ exports[`Datepicker > Snapshot: with date provided 1`] = `
|
|
|
61
61
|
data-testid="ucl-uikit-datepicker"
|
|
62
62
|
>
|
|
63
63
|
<div
|
|
64
|
-
class="ucl-uikit-datepicker__visible-field css-
|
|
64
|
+
class="ucl-uikit-datepicker__visible-field css-51hkje"
|
|
65
65
|
data-testid="ucl-uikit-datepicker__visible-field"
|
|
66
66
|
>
|
|
67
67
|
<input
|
|
68
|
-
class="ucl-uikit-datepicker__input css-
|
|
68
|
+
class="ucl-uikit-datepicker__input css-gjp4ve"
|
|
69
69
|
data-testid="ucl-uikit-datepicker__input"
|
|
70
70
|
inputmode="numeric"
|
|
71
71
|
placeholder="DD/MM/YYYY"
|
|
@@ -80,7 +80,7 @@ exports[`Datepicker > Snapshot: with date provided 1`] = `
|
|
|
80
80
|
type="button"
|
|
81
81
|
>
|
|
82
82
|
<svg
|
|
83
|
-
class="ucl-uikit-icon css-
|
|
83
|
+
class="ucl-uikit-icon css-7p0vcp"
|
|
84
84
|
data-testid="ucl-uikit-icon"
|
|
85
85
|
fill="none"
|
|
86
86
|
focusable="false"
|
|
@@ -45,6 +45,7 @@ const DatepickerInput = ({
|
|
|
45
45
|
height: 100%;
|
|
46
46
|
padding: 0 0 0 16px;
|
|
47
47
|
border: none;
|
|
48
|
+
border-radius: ${theme.radius.r4} 0 0 ${theme.radius.r4};
|
|
48
49
|
color: ${theme.colour.text.default};
|
|
49
50
|
background-color: ${theme.colour.fill.inverse};
|
|
50
51
|
font-family: ${md.fontFamily};
|
|
@@ -44,6 +44,7 @@ const VisibleField = ({
|
|
|
44
44
|
height: 100%;
|
|
45
45
|
box-sizing: border-box;
|
|
46
46
|
border: 1px solid ${theme.colour.speciality.inputDefault};
|
|
47
|
+
border-radius: ${theme.radius.r4};
|
|
47
48
|
background-color: ${theme.colour.fill.inverse};
|
|
48
49
|
|
|
49
50
|
&:focus-within {
|
|
@@ -88,7 +89,7 @@ const VisibleField = ({
|
|
|
88
89
|
// TODO: This ought to be fixed in the <Icon> component itself.
|
|
89
90
|
const iconStyle = css`
|
|
90
91
|
min-width: 24px;
|
|
91
|
-
color: ${disabled ? theme.colour.icon.disabled : theme.colour.icon.
|
|
92
|
+
color: ${disabled ? theme.colour.icon.disabled : theme.colour.icon.secondary};
|
|
92
93
|
`;
|
|
93
94
|
|
|
94
95
|
// Determine which icon to show
|
|
@@ -28,6 +28,39 @@ describe('parseInputValue', () => {
|
|
|
28
28
|
expect(parseInputValue(' ')).toBeNull(); // Just white space
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
+
test.each([
|
|
32
|
+
'01x/01/2027',
|
|
33
|
+
'01/01/2027junk',
|
|
34
|
+
'01/01/2027/extra',
|
|
35
|
+
'01/01/2027/',
|
|
36
|
+
'01/01/27',
|
|
37
|
+
])('Rejects malformed date %s', (input) => {
|
|
38
|
+
expect(parseInputValue(input)).toBeNull();
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
test('Accepts surrounding whitespace', () => {
|
|
42
|
+
expect(parseInputValue(' 01/01/2027 ')).toEqual(new Date(2027, 0, 1));
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
test.each([
|
|
46
|
+
'101/01/2027',
|
|
47
|
+
'32/01/2027',
|
|
48
|
+
'00/01/2027',
|
|
49
|
+
'31/04/2027',
|
|
50
|
+
'29/02/2027',
|
|
51
|
+
'01/00/2027',
|
|
52
|
+
'01/13/2027',
|
|
53
|
+
])(
|
|
54
|
+
'Rejects impossible calendar date %s instead of rolling it over',
|
|
55
|
+
(input) => {
|
|
56
|
+
expect(parseInputValue(input)).toBeNull();
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
test('Accepts February 29 in a leap year', () => {
|
|
61
|
+
expect(parseInputValue('29/02/2028')).toEqual(new Date(2028, 1, 29));
|
|
62
|
+
});
|
|
63
|
+
|
|
31
64
|
test('Handles single-digit days and months correctly', () => {
|
|
32
65
|
const dateWithSingleDigit = parseInputValue('1/2/2023') as Date;
|
|
33
66
|
expect(dateWithSingleDigit).toBeInstanceOf(Date);
|
|
@@ -17,21 +17,24 @@ const parseInputValue = (
|
|
|
17
17
|
return date;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const
|
|
20
|
+
const dateMatch = /^(\d{1,2})[-/ ](\d{1,2})[-/ ](\d{4})$/.exec(value.trim());
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
const parsedDay = parseInt(dateParts[0], 10); // (Second argument is just for base 10 -- decimal)
|
|
24
|
-
const parsedMonth = parseInt(dateParts[1], 10);
|
|
25
|
-
const parsedYear = parseInt(dateParts[2], 10);
|
|
26
|
-
|
|
27
|
-
if (isNaN(parsedDay) || isNaN(parsedMonth) || isNaN(parsedYear)) {
|
|
22
|
+
if (!dateMatch) {
|
|
28
23
|
return null;
|
|
29
24
|
}
|
|
30
25
|
|
|
31
|
-
const
|
|
26
|
+
const parsedDay = Number(dateMatch[1]);
|
|
27
|
+
const parsedMonth = Number(dateMatch[2]);
|
|
28
|
+
const parsedYear = Number(dateMatch[3]);
|
|
29
|
+
|
|
30
|
+
const parsedDate = new Date(parsedYear, parsedMonth - 1, parsedDay);
|
|
32
31
|
|
|
33
|
-
if (
|
|
34
|
-
|
|
32
|
+
if (
|
|
33
|
+
Number.isNaN(parsedDate.getTime()) ||
|
|
34
|
+
parsedDate.getDate() !== parsedDay ||
|
|
35
|
+
parsedDate.getMonth() !== parsedMonth - 1 ||
|
|
36
|
+
parsedDate.getFullYear() !== parsedYear
|
|
37
|
+
) {
|
|
35
38
|
return null;
|
|
36
39
|
}
|
|
37
40
|
|
|
@@ -22,7 +22,7 @@ export const usage = {
|
|
|
22
22
|
<Subtitle>A simple header with optional menu and home link support.</Subtitle>
|
|
23
23
|
|
|
24
24
|
Use `<Header>` to display the UCL logo and app title at the top of a page. Pass
|
|
25
|
-
`homeLinkHref` to
|
|
25
|
+
`homeLinkHref` to enable home navigation from the branding (logo, title and mobile/tablet pillars in Light and Dark themes), and wrap a menu in `<Header.Menu>`
|
|
26
26
|
to add a menu button on the right.
|
|
27
27
|
|
|
28
28
|
<Canvas source={{ code: usage.default }} />
|
|
@@ -36,6 +36,19 @@ Set `showBorder={false}` when another component, such as `NavigationBar`, sits d
|
|
|
36
36
|
## Home link
|
|
37
37
|
|
|
38
38
|
Add `homeLinkHref` (and optionally `homeLinkAriaLabel`) to make the logo/title act as a home link.
|
|
39
|
+
In Light and Dark themes, the title is linked at every viewport size, the UCL logo
|
|
40
|
+
provides a desktop home link, and the pillars provide a separate mobile/tablet
|
|
41
|
+
home link. The pillar link is hidden on desktop; the border remains decorative.
|
|
42
|
+
The title remains clickable but is excluded from the tab order to avoid a
|
|
43
|
+
duplicate home-navigation stop. Keyboard users can use the pillars on
|
|
44
|
+
mobile/tablet or the UCL logo on desktop.
|
|
45
|
+
|
|
46
|
+
The pillar link defaults to the accessible label **“Go to homepage”**. Override it
|
|
47
|
+
with `homeLinkProps={{ 'aria-label': 'App Name home' }}`; this label is passed to
|
|
48
|
+
all branding links. `homeLinkAriaLabel` also supplies a label when no explicit
|
|
49
|
+
`homeLinkProps['aria-label']` is provided. Without `homeLinkHref`, the branding
|
|
50
|
+
remains non-interactive.
|
|
51
|
+
|
|
39
52
|
For client routing, pass your router link through `homeLinkProps` (e.g. `homeLinkProps={{ component: RouterLink }}`, with `import { Link as RouterLink } from 'react-router-dom'` or `'wouter'`).
|
|
40
53
|
|
|
41
54
|
<Canvas of={HeaderStories.WithHomeLink} source={{ code: usage.homeLink }} />
|
|
@@ -85,9 +85,11 @@ describe('Header', () => {
|
|
|
85
85
|
</ThemeContextProvider>
|
|
86
86
|
);
|
|
87
87
|
|
|
88
|
-
const
|
|
89
|
-
expect(
|
|
90
|
-
|
|
88
|
+
const links = screen.getAllByLabelText('Go home');
|
|
89
|
+
expect(links).toHaveLength(3);
|
|
90
|
+
links.forEach((link) => {
|
|
91
|
+
expect(link).toHaveAttribute('href', '/');
|
|
92
|
+
});
|
|
91
93
|
});
|
|
92
94
|
|
|
93
95
|
test('passes showBorder to the new header implementation', () => {
|
|
@@ -69,7 +69,10 @@ const Header = ({
|
|
|
69
69
|
data-testid={testId}
|
|
70
70
|
{...props}
|
|
71
71
|
>
|
|
72
|
-
<HeaderBorder
|
|
72
|
+
<HeaderBorder
|
|
73
|
+
linkHref={homeLinkHref}
|
|
74
|
+
linkProps={homeLinkProps}
|
|
75
|
+
/>
|
|
73
76
|
<HeaderLogo
|
|
74
77
|
linkHref={homeLinkHref}
|
|
75
78
|
linkProps={homeLinkProps}
|
|
@@ -79,6 +82,8 @@ const Header = ({
|
|
|
79
82
|
title={title}
|
|
80
83
|
as={titleAs}
|
|
81
84
|
{...titleProps}
|
|
85
|
+
linkHref={homeLinkHref}
|
|
86
|
+
linkProps={homeLinkProps}
|
|
82
87
|
/>
|
|
83
88
|
{children}
|
|
84
89
|
</header>
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { css, cx } from '@emotion/css';
|
|
2
2
|
import { useTheme } from '../../theme';
|
|
3
3
|
import { HTMLAttributes } from 'react';
|
|
4
|
+
import Link from '../Link';
|
|
4
5
|
|
|
5
6
|
export const NAME = 'ucl-uikit-header__border';
|
|
6
7
|
|
|
7
8
|
export interface HeaderBorderProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
linkHref?: string;
|
|
10
|
+
linkProps?: Record<string, unknown>;
|
|
8
11
|
testId?: string;
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
const HeaderBorder = ({
|
|
15
|
+
linkHref,
|
|
16
|
+
linkProps,
|
|
12
17
|
testId = NAME,
|
|
13
18
|
className,
|
|
14
19
|
...props
|
|
@@ -42,13 +47,34 @@ const HeaderBorder = ({
|
|
|
42
47
|
}
|
|
43
48
|
`;
|
|
44
49
|
|
|
50
|
+
const linkStyle = css`
|
|
51
|
+
position: absolute;
|
|
52
|
+
inset: 0;
|
|
53
|
+
display: block;
|
|
54
|
+
|
|
55
|
+
@media (min-width: ${theme.breakpoints.desktop}px) {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
|
|
45
60
|
return (
|
|
46
61
|
<div
|
|
47
62
|
className={style}
|
|
48
63
|
data-test={testId}
|
|
49
64
|
{...props}
|
|
50
65
|
>
|
|
51
|
-
|
|
66
|
+
{linkHref ? (
|
|
67
|
+
<Link
|
|
68
|
+
href={linkHref}
|
|
69
|
+
aria-label='Go to homepage'
|
|
70
|
+
{...linkProps}
|
|
71
|
+
className={cx(linkStyle, linkProps?.className as string | undefined)}
|
|
72
|
+
>
|
|
73
|
+
<div className={stripeStyle} />
|
|
74
|
+
</Link>
|
|
75
|
+
) : (
|
|
76
|
+
<div className={stripeStyle} />
|
|
77
|
+
)}
|
|
52
78
|
</div>
|
|
53
79
|
);
|
|
54
80
|
};
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { css, cx } from '@emotion/css';
|
|
2
2
|
import { useTheme } from '../../theme';
|
|
3
3
|
import { HTMLAttributes } from 'react';
|
|
4
|
+
import Link from '../Link';
|
|
4
5
|
|
|
5
6
|
export const NAME = 'ucl-uikit-header__title';
|
|
6
7
|
|
|
7
8
|
export interface HeaderTitleProps extends HTMLAttributes<HTMLElement> {
|
|
8
9
|
title: string;
|
|
9
10
|
as?: React.ElementType<React.HTMLAttributes<HTMLElement>>;
|
|
11
|
+
linkHref?: string;
|
|
12
|
+
linkProps?: Record<string, unknown>;
|
|
10
13
|
testId?: string;
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
const HeaderTitle = ({
|
|
14
17
|
title,
|
|
15
18
|
as = 'span',
|
|
19
|
+
linkHref,
|
|
20
|
+
linkProps,
|
|
16
21
|
testId = NAME,
|
|
17
22
|
className,
|
|
18
23
|
...props
|
|
@@ -44,6 +49,22 @@ const HeaderTitle = ({
|
|
|
44
49
|
|
|
45
50
|
const style = cx(NAME, baseStyle, className);
|
|
46
51
|
|
|
52
|
+
const linkStyle = css`
|
|
53
|
+
&& {
|
|
54
|
+
font: inherit;
|
|
55
|
+
font-feature-settings: inherit;
|
|
56
|
+
color: inherit;
|
|
57
|
+
text-decoration: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&&:visited,
|
|
61
|
+
&&:active,
|
|
62
|
+
&&:hover {
|
|
63
|
+
color: inherit;
|
|
64
|
+
text-decoration: none;
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
|
|
47
68
|
const Comp = as;
|
|
48
69
|
|
|
49
70
|
return (
|
|
@@ -52,7 +73,18 @@ const HeaderTitle = ({
|
|
|
52
73
|
data-test={testId}
|
|
53
74
|
{...props}
|
|
54
75
|
>
|
|
55
|
-
{
|
|
76
|
+
{linkHref ? (
|
|
77
|
+
<Link
|
|
78
|
+
href={linkHref}
|
|
79
|
+
{...linkProps}
|
|
80
|
+
tabIndex={-1}
|
|
81
|
+
className={cx(linkStyle, linkProps?.className as string | undefined)}
|
|
82
|
+
>
|
|
83
|
+
{title}
|
|
84
|
+
</Link>
|
|
85
|
+
) : (
|
|
86
|
+
title
|
|
87
|
+
)}
|
|
56
88
|
</Comp>
|
|
57
89
|
);
|
|
58
90
|
};
|