uikit-react-public 0.11.13
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/LICENSE +9 -0
- package/README.md +3 -0
- package/dist/components/Accordion/Accordion.Heading.d.ts +8 -0
- package/dist/components/Accordion/Accordion.Panel.d.ts +7 -0
- package/dist/components/Accordion/Accordion.d.ts +22 -0
- package/dist/components/Accordion/__tests__/Accordion.test.d.ts +1 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Alert/Alert.d.ts +27 -0
- package/dist/components/Alert/Alert.stories.d.ts +146 -0
- package/dist/components/Alert/AlertMessage.d.ts +7 -0
- package/dist/components/Alert/AlertTitle.d.ts +7 -0
- package/dist/components/Alert/__tests__/Alert.test.d.ts +1 -0
- package/dist/components/Alert/index.d.ts +6 -0
- package/dist/components/AppHeader/AppHeader.d.ts +20 -0
- package/dist/components/AppHeader/AppHeader.stories.d.ts +16 -0
- package/dist/components/AppHeader/AppHeaderBottom.d.ts +8 -0
- package/dist/components/AppHeader/AppHeaderNav.d.ts +7 -0
- package/dist/components/AppHeader/AppHeaderTop.d.ts +10 -0
- package/dist/components/AppHeader/__tests__/AppHeader.test.d.ts +1 -0
- package/dist/components/AppHeader/index.d.ts +3 -0
- package/dist/components/AppMenu/AppMenu.context.d.ts +14 -0
- package/dist/components/AppMenu/AppMenu.d.ts +19 -0
- package/dist/components/AppMenu/AppMenu.stories.d.ts +13 -0
- package/dist/components/AppMenu/AppMenuContent.d.ts +7 -0
- package/dist/components/AppMenu/AppMenuDivider.d.ts +7 -0
- package/dist/components/AppMenu/AppMenuItem.d.ts +12 -0
- package/dist/components/AppMenu/AppMenuTrigger.d.ts +7 -0
- package/dist/components/AppMenu/__tests__/AppMenu.test.d.ts +0 -0
- package/dist/components/AppMenu/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.d.ts +13 -0
- package/dist/components/Avatar/Avatar.stories.d.ts +11 -0
- package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/utils/extractInitials.d.ts +2 -0
- package/dist/components/Avatar/utils/extractInitials.test.d.ts +1 -0
- package/dist/components/Blanket/Blanket.d.ts +8 -0
- package/dist/components/Blanket/Blanket.stories.d.ts +14 -0
- package/dist/components/Blanket/__tests__/Blanket.test.d.ts +0 -0
- package/dist/components/Blanket/index.d.ts +2 -0
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts +8 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +15 -0
- package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.d.ts +1 -0
- package/dist/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/Button.stories.d.ts +257 -0
- package/dist/components/Button/Button.types.d.ts +26 -0
- package/dist/components/Button/__tests__/Button.test.d.ts +1 -0
- package/dist/components/Button/buttonPrimaryStyle.d.ts +4 -0
- package/dist/components/Button/buttonSecondaryStyle.d.ts +4 -0
- package/dist/components/Button/buttonTertiaryStyle.d.ts +4 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +11 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +25 -0
- package/dist/components/Checkbox/LabelledCheckbox.d.ts +14 -0
- package/dist/components/Checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/dist/components/Checkbox/index.d.ts +4 -0
- package/dist/components/Datepicker/Datepicker.d.ts +12 -0
- package/dist/components/Datepicker/Datepicker.stories.d.ts +35 -0
- package/dist/components/Datepicker/__tests__/Datepicker.test.d.ts +1 -0
- package/dist/components/Datepicker/index.d.ts +2 -0
- package/dist/components/Datepicker/subcomponents/CalendarGrid/CalendarGrid.d.ts +6 -0
- package/dist/components/Datepicker/subcomponents/CalendarGrid/index.d.ts +1 -0
- package/dist/components/Datepicker/subcomponents/CalendarMenu/CalendarMenu.d.ts +8 -0
- package/dist/components/Datepicker/subcomponents/CalendarMenu/index.d.ts +1 -0
- package/dist/components/Datepicker/subcomponents/ColumnHeadings/ColumnHeadings.d.ts +2 -0
- package/dist/components/Datepicker/subcomponents/ColumnHeadings/index.d.ts +1 -0
- package/dist/components/Datepicker/subcomponents/DateField/DateField.d.ts +7 -0
- package/dist/components/Datepicker/subcomponents/DateField/__tests__/DateField.test.d.ts +1 -0
- package/dist/components/Datepicker/subcomponents/DateField/index.d.ts +1 -0
- package/dist/components/Datepicker/subcomponents/Day/Day.d.ts +10 -0
- package/dist/components/Datepicker/subcomponents/Day/Day.stories.d.ts +13 -0
- package/dist/components/Datepicker/subcomponents/Day/index.d.ts +1 -0
- package/dist/components/Datepicker/subcomponents/MonthSelector/MonthSelector.d.ts +6 -0
- package/dist/components/Datepicker/subcomponents/MonthSelector/index.d.ts +1 -0
- package/dist/components/Datepicker/subcomponents/Native/Native.d.ts +9 -0
- package/dist/components/Datepicker/subcomponents/Native/index.d.ts +1 -0
- package/dist/components/Datepicker/subcomponents/index.d.ts +7 -0
- package/dist/components/Datepicker/utils/getDatesForCalendarGrid/getDatesForCalendarGrid.d.ts +20 -0
- package/dist/components/Datepicker/utils/getDatesForCalendarGrid/getDatesForCalendarGrid.test.d.ts +1 -0
- package/dist/components/Datepicker/utils/index.d.ts +2 -0
- package/dist/components/Datepicker/utils/parseDateForDateField/parseDateForDateField.d.ts +20 -0
- package/dist/components/Datepicker/utils/parseDateForDateField/parseDateForDateField.test.d.ts +1 -0
- package/dist/components/Dialog/BaseDialog.d.ts +16 -0
- package/dist/components/Dialog/Dialog.d.ts +23 -0
- package/dist/components/Dialog/Dialog.stories.d.ts +16 -0
- package/dist/components/Dialog/DialogBody.d.ts +7 -0
- package/dist/components/Dialog/DialogFooter.d.ts +12 -0
- package/dist/components/Dialog/DialogHeader.d.ts +11 -0
- package/dist/components/Dialog/index.d.ts +10 -0
- package/dist/components/Divider/Divider.d.ts +9 -0
- package/dist/components/Divider/Divider.stories.d.ts +11 -0
- package/dist/components/Divider/__tests__/Divider.test.d.ts +1 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/FeedbackDialog/FeedbackDialog.d.ts +15 -0
- package/dist/components/FeedbackDialog/FeedbackDialog.stories.d.ts +15 -0
- package/dist/components/FeedbackDialog/index.d.ts +2 -0
- package/dist/components/Field/CharacterCount.d.ts +7 -0
- package/dist/components/Field/ErrorText.d.ts +6 -0
- package/dist/components/Field/Field.d.ts +30 -0
- package/dist/components/Field/Field.stories.d.ts +84 -0
- package/dist/components/Field/HelperText.d.ts +6 -0
- package/dist/components/Field/__tests__/Field.test.d.ts +1 -0
- package/dist/components/Field/index.d.ts +6 -0
- package/dist/components/Footer/Footer.d.ts +20 -0
- package/dist/components/Footer/Footer.stories.d.ts +14 -0
- package/dist/components/Footer/FooterColumn.d.ts +8 -0
- package/dist/components/Footer/FooterNavLink.d.ts +8 -0
- package/dist/components/Footer/SocialLink.d.ts +8 -0
- package/dist/components/Footer/__tests__/Footer.test.d.ts +1 -0
- package/dist/components/Footer/index.d.ts +2 -0
- package/dist/components/Header/Header.d.ts +16 -0
- package/dist/components/Header/HeaderMenu.d.ts +7 -0
- package/dist/components/Header/__tests__/Header.test.d.ts +1 -0
- package/dist/components/Header/index.d.ts +3 -0
- package/dist/components/HeaderDraft/HeaderBottomBreadcrumbs.d.ts +7 -0
- package/dist/components/HeaderDraft/HeaderBottomHeadingAndAvatar.d.ts +16 -0
- package/dist/components/HeaderDraft/HeaderBreadcrumb.d.ts +8 -0
- package/dist/components/HeaderDraft/HeaderDraft.d.ts +26 -0
- package/dist/components/HeaderDraft/HeaderMenu.d.ts +7 -0
- package/dist/components/HeaderDraft/__tests__/Header.test.d.ts +1 -0
- package/dist/components/HeaderDraft/index.d.ts +4 -0
- package/dist/components/Heading/Heading.d.ts +12 -0
- package/dist/components/Heading/Heading.stories.d.ts +18 -0
- package/dist/components/Heading/__tests__/Heading.test.d.ts +1 -0
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Icon/BaseIcon.d.ts +13 -0
- package/dist/components/Icon/Icon.d.ts +16 -0
- package/dist/components/Icon/Icon.stories.d.ts +5 -0
- package/dist/components/Icon/__tests__/Icon.test.d.ts +1 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/svgImports.d.ts +882 -0
- package/dist/components/Icon/svgs/ActivitySvg.d.ts +4 -0
- package/dist/components/Icon/svgs/AirplaySvg.d.ts +4 -0
- package/dist/components/Icon/svgs/AlertCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/AlertOctagonSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/AlertTriangleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/AlignCenterSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/AlignJustifySvg.d.ts +4 -0
- package/dist/components/Icon/svgs/AlignLeftSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/AlignRightSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/AnchorSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ApertureSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArchiveSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArrowDownCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArrowDownLeftSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArrowDownRightSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArrowDownSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArrowLeftCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArrowLeftSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArrowRightCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArrowRightSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArrowUpCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArrowUpLeftSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArrowUpRightSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ArrowUpSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/AtSignSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/AvatarSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/AwardSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/BarChart2Svg.d.ts +4 -0
- package/dist/components/Icon/svgs/BarChartSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/BatteryChargingSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/BatterySvg.d.ts +4 -0
- package/dist/components/Icon/svgs/BellOffSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/BellSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/BluetoothSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/BoldSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/BookOpenSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/BookSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/BookmarkSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/BoxSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/BriefcaseSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CalendarSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CameraOffSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CameraSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CastSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CheckCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CheckSquareSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CheckSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ChevronDownSvg.d.ts +5 -0
- package/dist/components/Icon/svgs/ChevronLeftSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ChevronRightSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ChevronUpSvg.d.ts +5 -0
- package/dist/components/Icon/svgs/ChevronsDownSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ChevronsLeftSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ChevronsRightSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ChevronsUpSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ChromeSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ClipboardSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ClockSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CloudDrizzleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CloudLightningSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CloudOffSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CloudRainSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CloudSnowSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CloudSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CodeSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CodepenSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CodesandboxSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CoffeeSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ColumnsSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CommandSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CompassSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CopySvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CornerDownLeftSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CornerDownRightSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CornerLeftDownSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CornerLeftUpSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CornerRightDownSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CornerRightUpSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CornerUpLeftSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CornerUpRightSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CpuSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CreditCardSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CropSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/CrosshairSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/DatabaseSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/DeleteSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/DiscSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/DivideCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/DivideSquareSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/DivideSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/DollarSignSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/DownloadCloudSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/DownloadSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/DribbbleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/DropletSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/Edit2Svg.d.ts +4 -0
- package/dist/components/Icon/svgs/Edit3Svg.d.ts +4 -0
- package/dist/components/Icon/svgs/EditSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ExternalLinkSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/EyeOffSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/EyeSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FastForwardSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FeatherSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FigmaSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FileMinusSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FilePlusSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FileSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FileTextSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FilmSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FilterSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FlagSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FolderMinusSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FolderPlusSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FolderSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FramerSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/FrownSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/GiftSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/GitBranchSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/GitCommitSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/GitMergeSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/GitPullRequestSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/GithubSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/GitlabSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/GlobeSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/GridSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/HardDriveSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/HashSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/HeadphonesSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/HeartSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/HelpCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/HexagonSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/HomeSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ImageSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/InboxSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/InfoSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ItalicSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/KeySvg.d.ts +4 -0
- package/dist/components/Icon/svgs/LayersSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/LayoutSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/LifeBuoySvg.d.ts +4 -0
- package/dist/components/Icon/svgs/Link2Svg.d.ts +4 -0
- package/dist/components/Icon/svgs/LinkSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/LinkedinSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ListSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/LoaderSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/LockSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/LogInSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/LogOutSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MailSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MapPinSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MapSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/Maximize2Svg.d.ts +4 -0
- package/dist/components/Icon/svgs/MaximizeSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MehSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MenuSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MessageCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MessageSquareSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MicOffSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MicSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/Minimize2Svg.d.ts +4 -0
- package/dist/components/Icon/svgs/MinimizeSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MinusCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MinusSquareSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MinusSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MonitorSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MoonSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MoreHorizontalSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MoreVerticalSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MousePointerSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MoveSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/MusicSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/Navigation2Svg.d.ts +4 -0
- package/dist/components/Icon/svgs/NavigationSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/OctagonSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PackageSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PaperclipSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PauseCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PauseSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PenToolSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PercentSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PhoneCallSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PhoneForwardedSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PhoneIncomingSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PhoneMissedSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PhoneOffSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PhoneOutgoingSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PhoneSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PieChartSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PlayCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PlaySvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PlusCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PlusSquareSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PlusSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PocketSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PowerSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/PrinterSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/RadioSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/RefreshCcwSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/RefreshCwSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/RepeatSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/RewindSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/RotateCcwSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/RotateCwSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/RssSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SaveSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ScissorsSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SearchSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SendSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ServerSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SettingsSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/Share2Svg.d.ts +4 -0
- package/dist/components/Icon/svgs/ShareSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ShieldOffSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ShieldSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ShoppingBagSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ShoppingCartSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ShuffleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SidebarSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SkipBackSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SkipForwardSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SlackSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SlashSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SlidersSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SmartphoneSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SmileSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SpeakerSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SquareSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/StarSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/StopCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SunSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SunriseSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/SunsetSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TableSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TabletSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TagSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TargetSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TerminalSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ThermometerSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ThumbsDownSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ThumbsUpSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ToggleLeftSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ToggleRightSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ToolSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/Trash2Svg.d.ts +4 -0
- package/dist/components/Icon/svgs/TrashSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TrelloSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TrendingDownSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TrendingUpSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TriangleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TruckSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TvSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TwitchSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TwitterSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/TypeSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/UmbrellaSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/UnderlineSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/UnlockSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/UploadCloudSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/UploadSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/UserCheckSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/UserMinusSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/UserPlusSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/UserSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/UserXSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/UsersSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/VideoOffSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/VideoSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/VoicemailSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/Volume1Svg.d.ts +4 -0
- package/dist/components/Icon/svgs/Volume2Svg.d.ts +4 -0
- package/dist/components/Icon/svgs/VolumeSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/VolumeXSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/WatchSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/WifiOffSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/WifiSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/WindSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/XCircleSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/XOctagonSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/XSquareSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/XSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ZapOffSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ZapSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ZoomInSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/ZoomOutSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/internal/EmptySvg.d.ts +4 -0
- package/dist/components/Icon/svgs/social/FacebookSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/social/FlickrSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/social/InstagramSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/social/SoundcloudSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/social/TiktokSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/social/XSvg.d.ts +4 -0
- package/dist/components/Icon/svgs/social/YoutubeSvg.d.ts +4 -0
- package/dist/components/IconButton/IconButton.d.ts +10 -0
- package/dist/components/IconButton/IconButton.stories.d.ts +6 -0
- package/dist/components/IconButton/__tests__/IconButton.test.d.ts +1 -0
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +17 -0
- package/dist/components/Input/Input.stories.d.ts +12 -0
- package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Label/Label.d.ts +13 -0
- package/dist/components/Label/Label.stories.d.ts +12 -0
- package/dist/components/Label/__tests__/Label.test.d.ts +1 -0
- package/dist/components/Label/index.d.ts +2 -0
- package/dist/components/Layout/Layout.d.ts +7 -0
- package/dist/components/Layout/Layout.stories.d.ts +15 -0
- package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/components/Link/Link.d.ts +11 -0
- package/dist/components/Link/Link.stories.d.ts +13 -0
- package/dist/components/Link/__tests__/link.test.d.ts +1 -0
- package/dist/components/Link/index.d.ts +2 -0
- package/dist/components/Menu/Menu.context.d.ts +14 -0
- package/dist/components/Menu/Menu.d.ts +17 -0
- package/dist/components/Menu/MenuContent.d.ts +8 -0
- package/dist/components/Menu/MenuItem.d.ts +8 -0
- package/dist/components/Menu/MenuSection.d.ts +7 -0
- package/dist/components/Menu/MenuTrigger.d.ts +7 -0
- package/dist/components/Menu/index.d.ts +6 -0
- package/dist/components/Modal/Modal.d.ts +11 -0
- package/dist/components/Modal/Modal.stories.d.ts +16 -0
- package/dist/components/Modal/__tests__/Modal.test.d.ts +1 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Overlay/Overlay.d.ts +17 -0
- package/dist/components/Overlay/Overlay.stories.d.ts +341 -0
- package/dist/components/Overlay/index.d.ts +2 -0
- package/dist/components/Pagination/Pagination.d.ts +27 -0
- package/dist/components/Pagination/Pagination.stories.d.ts +15 -0
- package/dist/components/Pagination/PaginationControls.d.ts +9 -0
- package/dist/components/Pagination/PaginationInfo.d.ts +8 -0
- package/dist/components/Pagination/__tests__/getPaginationButtons.test.d.ts +1 -0
- package/dist/components/Pagination/getPaginationButtons.d.ts +3 -0
- package/dist/components/Pagination/index.d.ts +6 -0
- package/dist/components/Paragraph/Paragraph.d.ts +13 -0
- package/dist/components/Paragraph/Paragraph.stories.d.ts +19 -0
- package/dist/components/Paragraph/__tests__/Paragraph.test.d.ts +1 -0
- package/dist/components/Paragraph/index.d.ts +4 -0
- package/dist/components/Radio/LabelledRadio.d.ts +14 -0
- package/dist/components/Radio/Radio.d.ts +10 -0
- package/dist/components/Radio/Radio.stories.d.ts +20 -0
- package/dist/components/Radio/__tests__/Radio.test.d.ts +1 -0
- package/dist/components/Radio/index.d.ts +4 -0
- package/dist/components/Select/Select.d.ts +8 -0
- package/dist/components/Select/Select.stories.d.ts +9 -0
- package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Snackbar/Snackbar.d.ts +13 -0
- package/dist/components/Snackbar/Snackbar.stories.d.ts +29 -0
- package/dist/components/Snackbar/__tests__/Snackbar.test.d.ts +1 -0
- package/dist/components/Snackbar/index.d.ts +2 -0
- package/dist/components/Spinner/Spinner.d.ts +8 -0
- package/dist/components/Spinner/Spinner.stories.d.ts +15 -0
- package/dist/components/Spinner/__tests__/Spinner.test.d.ts +1 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Table/Table.d.ts +8 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Tabs/Tab.d.ts +11 -0
- package/dist/components/Tabs/TabContext.d.ts +9 -0
- package/dist/components/Tabs/Tabs.d.ts +16 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +15 -0
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Textarea/Textarea.d.ts +11 -0
- package/dist/components/Textarea/Textarea.stories.d.ts +16 -0
- package/dist/components/Textarea/__tests__/Textarea.test.d.ts +1 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Toggle/Toggle.d.ts +8 -0
- package/dist/components/Toggle/Toggle.stories.d.ts +16 -0
- package/dist/components/Toggle/ToggleHandle.d.ts +8 -0
- package/dist/components/Toggle/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +11 -0
- package/dist/components/Tooltip/__tests__/tooltip.test.d.ts +1 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/UclLogo/UclLogo.d.ts +7 -0
- package/dist/components/UclLogo/UclLogo.stories.d.ts +10 -0
- package/dist/components/UclLogo/UclLogoNegativeSpace.d.ts +8 -0
- package/dist/components/UclLogo/__tests__/UclLogo.test.d.ts +1 -0
- package/dist/components/UclLogo/index.d.ts +4 -0
- package/dist/components/common/marginsStyle.d.ts +48 -0
- package/dist/components/index.d.ts +79 -0
- package/dist/hooks/useMediaQuery.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +17289 -0
- package/dist/theme/defaultTheme.d.ts +267 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/useTheme.d.ts +488 -0
- package/lib/Welcome.mdx +31 -0
- package/lib/components/Accordion/Accordion.Heading.tsx +75 -0
- package/lib/components/Accordion/Accordion.Panel.tsx +47 -0
- package/lib/components/Accordion/Accordion.stories.tsx.NOT_READY +93 -0
- package/lib/components/Accordion/Accordion.tsx +114 -0
- package/lib/components/Accordion/__tests__/Accordion.test.tsx +64 -0
- package/lib/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +71 -0
- package/lib/components/Accordion/__tests__/__snapshots__/IconButton.test.tsx.snap +74 -0
- package/lib/components/Accordion/index.ts +2 -0
- package/lib/components/Alert/Alert.mdx +43 -0
- package/lib/components/Alert/Alert.stories.tsx +111 -0
- package/lib/components/Alert/Alert.tsx +137 -0
- package/lib/components/Alert/AlertMessage.tsx +35 -0
- package/lib/components/Alert/AlertTitle.tsx +34 -0
- package/lib/components/Alert/__tests__/Alert.test.tsx +71 -0
- package/lib/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +198 -0
- package/lib/components/Alert/index.ts +6 -0
- package/lib/components/AppHeader/AppHeader.stories.tsx +135 -0
- package/lib/components/AppHeader/AppHeader.tsx +90 -0
- package/lib/components/AppHeader/AppHeaderBottom.tsx +46 -0
- package/lib/components/AppHeader/AppHeaderNav.tsx +39 -0
- package/lib/components/AppHeader/AppHeaderTop.tsx +56 -0
- package/lib/components/AppHeader/__tests__/AppHeader.test.tsx +19 -0
- package/lib/components/AppHeader/__tests__/__snapshots__/AppHeader.test.tsx.snap +8 -0
- package/lib/components/AppHeader/index.ts +3 -0
- package/lib/components/AppMenu/AppMenu.context.tsx +162 -0
- package/lib/components/AppMenu/AppMenu.stories.tsx +177 -0
- package/lib/components/AppMenu/AppMenu.tsx +62 -0
- package/lib/components/AppMenu/AppMenuContent.tsx +121 -0
- package/lib/components/AppMenu/AppMenuDivider.tsx +40 -0
- package/lib/components/AppMenu/AppMenuItem.tsx +173 -0
- package/lib/components/AppMenu/AppMenuTrigger.tsx +50 -0
- package/lib/components/AppMenu/__tests__/AppMenu.test.tsx +100 -0
- package/lib/components/AppMenu/__tests__/__snapshots__/AppMenu.test.tsx.snap +128 -0
- package/lib/components/AppMenu/index.ts +2 -0
- package/lib/components/Avatar/Avatar.stories.tsx +33 -0
- package/lib/components/Avatar/Avatar.tsx +152 -0
- package/lib/components/Avatar/__tests__/Avatar.test.tsx +264 -0
- package/lib/components/Avatar/__tests__/__snapshots__/Avatar.test.tsx.snap +260 -0
- package/lib/components/Avatar/index.ts +2 -0
- package/lib/components/Avatar/utils/extractInitials.test.ts +65 -0
- package/lib/components/Avatar/utils/extractInitials.ts +24 -0
- package/lib/components/Blanket/Blanket.stories.tsx +67 -0
- package/lib/components/Blanket/Blanket.tsx +66 -0
- package/lib/components/Blanket/__tests__/Blanket.test.tsx +54 -0
- package/lib/components/Blanket/__tests__/__snapshots__/Blanket.test.tsx.snap +10 -0
- package/lib/components/Blanket/index.ts +2 -0
- package/lib/components/Breadcrumbs/Breadcrumb.tsx +78 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.tsx +35 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.tsx +64 -0
- package/lib/components/Breadcrumbs/__tests__/Breadcrumbs.test.tsx +128 -0
- package/lib/components/Breadcrumbs/__tests__/__snapshots__/Breadcrumbs.test.tsx.snap +149 -0
- package/lib/components/Breadcrumbs/index.ts +2 -0
- package/lib/components/Button/Button.mdx +325 -0
- package/lib/components/Button/Button.stories.tsx +420 -0
- package/lib/components/Button/Button.tsx +146 -0
- package/lib/components/Button/Button.types.ts +46 -0
- package/lib/components/Button/__tests__/Button.test.tsx +244 -0
- package/lib/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +139 -0
- package/lib/components/Button/buttonPrimaryStyle.ts +62 -0
- package/lib/components/Button/buttonSecondaryStyle.ts +65 -0
- package/lib/components/Button/buttonTertiaryStyle.ts +54 -0
- package/lib/components/Button/index.ts +2 -0
- package/lib/components/Checkbox/Checkbox.stories.tsx +31 -0
- package/lib/components/Checkbox/Checkbox.tsx +177 -0
- package/lib/components/Checkbox/LabelledCheckbox.tsx +111 -0
- package/lib/components/Checkbox/__tests__/Checkbox.test.tsx +99 -0
- package/lib/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +87 -0
- package/lib/components/Checkbox/index.ts +4 -0
- package/lib/components/Datepicker/Datepicker.stories.tsx +70 -0
- package/lib/components/Datepicker/Datepicker.tsx +153 -0
- package/lib/components/Datepicker/__tests__/Datepicker.test.tsx +147 -0
- package/lib/components/Datepicker/__tests__/__snapshots__/Datepicker.test.tsx.snap +679 -0
- package/lib/components/Datepicker/index.ts +2 -0
- package/lib/components/Datepicker/subcomponents/CalendarGrid/CalendarGrid.tsx +59 -0
- package/lib/components/Datepicker/subcomponents/CalendarGrid/index.ts +1 -0
- package/lib/components/Datepicker/subcomponents/CalendarMenu/CalendarMenu.tsx +64 -0
- package/lib/components/Datepicker/subcomponents/CalendarMenu/index.ts +1 -0
- package/lib/components/Datepicker/subcomponents/ColumnHeadings/ColumnHeadings.tsx +35 -0
- package/lib/components/Datepicker/subcomponents/ColumnHeadings/index.ts +1 -0
- package/lib/components/Datepicker/subcomponents/DateField/DateField.tsx +155 -0
- package/lib/components/Datepicker/subcomponents/DateField/__tests__/DateField.test.tsx +191 -0
- package/lib/components/Datepicker/subcomponents/DateField/index.ts +1 -0
- package/lib/components/Datepicker/subcomponents/Day/Day.stories.tsx +81 -0
- package/lib/components/Datepicker/subcomponents/Day/Day.tsx +94 -0
- package/lib/components/Datepicker/subcomponents/Day/index.ts +1 -0
- package/lib/components/Datepicker/subcomponents/MonthSelector/MonthSelector.tsx +70 -0
- package/lib/components/Datepicker/subcomponents/MonthSelector/index.ts +1 -0
- package/lib/components/Datepicker/subcomponents/Native/Native.tsx +59 -0
- package/lib/components/Datepicker/subcomponents/Native/index.ts +1 -0
- package/lib/components/Datepicker/subcomponents/index.ts +7 -0
- package/lib/components/Datepicker/utils/getDatesForCalendarGrid/getDatesForCalendarGrid.test.ts +166 -0
- package/lib/components/Datepicker/utils/getDatesForCalendarGrid/getDatesForCalendarGrid.ts +109 -0
- package/lib/components/Datepicker/utils/index.ts +2 -0
- package/lib/components/Datepicker/utils/parseDateForDateField/parseDateForDateField.test.ts +41 -0
- package/lib/components/Datepicker/utils/parseDateForDateField/parseDateForDateField.ts +48 -0
- package/lib/components/Dialog/BaseDialog.tsx +163 -0
- package/lib/components/Dialog/Dialog.stories.tsx +107 -0
- package/lib/components/Dialog/Dialog.tsx +73 -0
- package/lib/components/Dialog/DialogBody.tsx +35 -0
- package/lib/components/Dialog/DialogFooter.tsx +90 -0
- package/lib/components/Dialog/DialogHeader.tsx +83 -0
- package/lib/components/Dialog/index.tsx +10 -0
- package/lib/components/Divider/Divider.stories.tsx +29 -0
- package/lib/components/Divider/Divider.tsx +37 -0
- package/lib/components/Divider/__tests__/Divider.test.tsx +33 -0
- package/lib/components/Divider/__tests__/__snapshots__/Breadcrumbs.test.tsx.snap +145 -0
- package/lib/components/Divider/index.ts +2 -0
- package/lib/components/FeedbackDialog/FeedbackDialog.stories.tsx +67 -0
- package/lib/components/FeedbackDialog/FeedbackDialog.tsx +131 -0
- package/lib/components/FeedbackDialog/index.tsx +2 -0
- package/lib/components/Field/CharacterCount.tsx +48 -0
- package/lib/components/Field/ErrorText.tsx +55 -0
- package/lib/components/Field/Field.stories.tsx +426 -0
- package/lib/components/Field/Field.tsx +108 -0
- package/lib/components/Field/HelperText.tsx +42 -0
- package/lib/components/Field/__tests__/Field.test.tsx +510 -0
- package/lib/components/Field/__tests__/__snapshots__/Field.test.tsx.snap +300 -0
- package/lib/components/Field/index.ts +6 -0
- package/lib/components/Footer/Footer.stories.tsx +50 -0
- package/lib/components/Footer/Footer.tsx +261 -0
- package/lib/components/Footer/FooterColumn.tsx +54 -0
- package/lib/components/Footer/FooterNavLink.tsx +56 -0
- package/lib/components/Footer/SocialLink.tsx +104 -0
- package/lib/components/Footer/__tests__/Footer.test.tsx +57 -0
- package/lib/components/Footer/__tests__/__snapshots__/Footer.test.tsx.snap +935 -0
- package/lib/components/Footer/index.ts +2 -0
- package/lib/components/Header/Header.tsx +109 -0
- package/lib/components/Header/HeaderMenu.tsx +34 -0
- package/lib/components/Header/__tests__/Header.test.tsx +26 -0
- package/lib/components/Header/__tests__/__snapshots__/Header.test.tsx.snap +65 -0
- package/lib/components/Header/index.ts +3 -0
- package/lib/components/HeaderDraft/HeaderBottomBreadcrumbs.tsx +50 -0
- package/lib/components/HeaderDraft/HeaderBottomHeadingAndAvatar.tsx +141 -0
- package/lib/components/HeaderDraft/HeaderBreadcrumb.tsx +74 -0
- package/lib/components/HeaderDraft/HeaderDraft.tsx +178 -0
- package/lib/components/HeaderDraft/HeaderMenu.tsx +24 -0
- package/lib/components/HeaderDraft/__tests__/Header.test.tsx +40 -0
- package/lib/components/HeaderDraft/__tests__/__snapshots__/Header.test.tsx.snap +126 -0
- package/lib/components/HeaderDraft/index.ts +4 -0
- package/lib/components/Heading/Documentation.mdx +118 -0
- package/lib/components/Heading/Heading.stories.tsx +107 -0
- package/lib/components/Heading/Heading.tsx +94 -0
- package/lib/components/Heading/__tests__/Heading.test.tsx +79 -0
- package/lib/components/Heading/__tests__/__snapshots__/Heading.test.tsx.snap +37 -0
- package/lib/components/Heading/index.ts +2 -0
- package/lib/components/Icon/BaseIcon.tsx +47 -0
- package/lib/components/Icon/Icon.stories.tsx +44 -0
- package/lib/components/Icon/Icon.tsx +52 -0
- package/lib/components/Icon/__tests__/Icon.test.tsx +94 -0
- package/lib/components/Icon/__tests__/__snapshots__/Icon.test.tsx.snap +84 -0
- package/lib/components/Icon/index.ts +2 -0
- package/lib/components/Icon/svgImports.ts +599 -0
- package/lib/components/Icon/svgs/ActivitySvg.tsx +23 -0
- package/lib/components/Icon/svgs/AirplaySvg.tsx +24 -0
- package/lib/components/Icon/svgs/AlertCircleSvg.tsx +39 -0
- package/lib/components/Icon/svgs/AlertOctagonSvg.tsx +35 -0
- package/lib/components/Icon/svgs/AlertTriangleSvg.tsx +35 -0
- package/lib/components/Icon/svgs/AlignCenterSvg.tsx +46 -0
- package/lib/components/Icon/svgs/AlignJustifySvg.tsx +46 -0
- package/lib/components/Icon/svgs/AlignLeftSvg.tsx +46 -0
- package/lib/components/Icon/svgs/AlignRightSvg.tsx +46 -0
- package/lib/components/Icon/svgs/AnchorSvg.tsx +34 -0
- package/lib/components/Icon/svgs/ApertureSvg.tsx +63 -0
- package/lib/components/Icon/svgs/ArchiveSvg.tsx +35 -0
- package/lib/components/Icon/svgs/ArrowDownCircleSvg.tsx +34 -0
- package/lib/components/Icon/svgs/ArrowDownLeftSvg.tsx +29 -0
- package/lib/components/Icon/svgs/ArrowDownRightSvg.tsx +29 -0
- package/lib/components/Icon/svgs/ArrowDownSvg.tsx +29 -0
- package/lib/components/Icon/svgs/ArrowLeftCircleSvg.tsx +34 -0
- package/lib/components/Icon/svgs/ArrowLeftSvg.tsx +29 -0
- package/lib/components/Icon/svgs/ArrowRightCircleSvg.tsx +34 -0
- package/lib/components/Icon/svgs/ArrowRightSvg.tsx +29 -0
- package/lib/components/Icon/svgs/ArrowUpCircleSvg.tsx +34 -0
- package/lib/components/Icon/svgs/ArrowUpLeftSvg.tsx +29 -0
- package/lib/components/Icon/svgs/ArrowUpRightSvg.tsx +29 -0
- package/lib/components/Icon/svgs/ArrowUpSvg.tsx +29 -0
- package/lib/components/Icon/svgs/AtSignSvg.tsx +28 -0
- package/lib/components/Icon/svgs/AvatarSvg.tsx +29 -0
- package/lib/components/Icon/svgs/AwardSvg.tsx +28 -0
- package/lib/components/Icon/svgs/BarChart2Svg.tsx +40 -0
- package/lib/components/Icon/svgs/BarChartSvg.tsx +40 -0
- package/lib/components/Icon/svgs/BatteryChargingSvg.tsx +30 -0
- package/lib/components/Icon/svgs/BatterySvg.tsx +36 -0
- package/lib/components/Icon/svgs/BellOffSvg.tsx +32 -0
- package/lib/components/Icon/svgs/BellSvg.tsx +24 -0
- package/lib/components/Icon/svgs/BluetoothSvg.tsx +23 -0
- package/lib/components/Icon/svgs/BoldSvg.tsx +24 -0
- package/lib/components/Icon/svgs/BookOpenSvg.tsx +24 -0
- package/lib/components/Icon/svgs/BookSvg.tsx +24 -0
- package/lib/components/Icon/svgs/BookmarkSvg.tsx +23 -0
- package/lib/components/Icon/svgs/BoxSvg.tsx +30 -0
- package/lib/components/Icon/svgs/BriefcaseSvg.tsx +31 -0
- package/lib/components/Icon/svgs/CalendarSvg.tsx +48 -0
- package/lib/components/Icon/svgs/CameraOffSvg.tsx +29 -0
- package/lib/components/Icon/svgs/CameraSvg.tsx +28 -0
- package/lib/components/Icon/svgs/CastSvg.tsx +29 -0
- package/lib/components/Icon/svgs/CheckCircleSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CheckSquareSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CheckSvg.tsx +23 -0
- package/lib/components/Icon/svgs/ChevronDownSvg.tsx +32 -0
- package/lib/components/Icon/svgs/ChevronLeftSvg.tsx +23 -0
- package/lib/components/Icon/svgs/ChevronRightSvg.tsx +23 -0
- package/lib/components/Icon/svgs/ChevronUpSvg.tsx +25 -0
- package/lib/components/Icon/svgs/ChevronsDownSvg.tsx +24 -0
- package/lib/components/Icon/svgs/ChevronsLeftSvg.tsx +24 -0
- package/lib/components/Icon/svgs/ChevronsRightSvg.tsx +24 -0
- package/lib/components/Icon/svgs/ChevronsUpSvg.tsx +24 -0
- package/lib/components/Icon/svgs/ChromeSvg.tsx +50 -0
- package/lib/components/Icon/svgs/CircleSvg.tsx +27 -0
- package/lib/components/Icon/svgs/ClipboardSvg.tsx +31 -0
- package/lib/components/Icon/svgs/ClockSvg.tsx +28 -0
- package/lib/components/Icon/svgs/CloudDrizzleSvg.tsx +59 -0
- package/lib/components/Icon/svgs/CloudLightningSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CloudOffSvg.tsx +29 -0
- package/lib/components/Icon/svgs/CloudRainSvg.tsx +41 -0
- package/lib/components/Icon/svgs/CloudSnowSvg.tsx +59 -0
- package/lib/components/Icon/svgs/CloudSvg.tsx +23 -0
- package/lib/components/Icon/svgs/CodeSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CodepenSvg.tsx +37 -0
- package/lib/components/Icon/svgs/CodesandboxSvg.tsx +33 -0
- package/lib/components/Icon/svgs/CoffeeSvg.tsx +42 -0
- package/lib/components/Icon/svgs/ColumnsSvg.tsx +23 -0
- package/lib/components/Icon/svgs/CommandSvg.tsx +23 -0
- package/lib/components/Icon/svgs/CompassSvg.tsx +28 -0
- package/lib/components/Icon/svgs/CopySvg.tsx +31 -0
- package/lib/components/Icon/svgs/CornerDownLeftSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CornerDownRightSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CornerLeftDownSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CornerLeftUpSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CornerRightDownSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CornerRightUpSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CornerUpLeftSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CornerUpRightSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CpuSvg.tsx +84 -0
- package/lib/components/Icon/svgs/CreditCardSvg.tsx +36 -0
- package/lib/components/Icon/svgs/CropSvg.tsx +24 -0
- package/lib/components/Icon/svgs/CrosshairSvg.tsx +51 -0
- package/lib/components/Icon/svgs/DatabaseSvg.tsx +30 -0
- package/lib/components/Icon/svgs/DeleteSvg.tsx +35 -0
- package/lib/components/Icon/svgs/DiscSvg.tsx +32 -0
- package/lib/components/Icon/svgs/DivideCircleSvg.tsx +45 -0
- package/lib/components/Icon/svgs/DivideSquareSvg.tsx +48 -0
- package/lib/components/Icon/svgs/DivideSvg.tsx +38 -0
- package/lib/components/Icon/svgs/DollarSignSvg.tsx +29 -0
- package/lib/components/Icon/svgs/DownloadCloudSvg.tsx +30 -0
- package/lib/components/Icon/svgs/DownloadSvg.tsx +30 -0
- package/lib/components/Icon/svgs/DribbbleSvg.tsx +28 -0
- package/lib/components/Icon/svgs/DropletSvg.tsx +23 -0
- package/lib/components/Icon/svgs/Edit2Svg.tsx +23 -0
- package/lib/components/Icon/svgs/Edit3Svg.tsx +24 -0
- package/lib/components/Icon/svgs/EditSvg.tsx +24 -0
- package/lib/components/Icon/svgs/ExternalLinkSvg.tsx +30 -0
- package/lib/components/Icon/svgs/EyeOffSvg.tsx +29 -0
- package/lib/components/Icon/svgs/EyeSvg.tsx +28 -0
- package/lib/components/Icon/svgs/FastForwardSvg.tsx +24 -0
- package/lib/components/Icon/svgs/FeatherSvg.tsx +35 -0
- package/lib/components/Icon/svgs/FigmaSvg.tsx +27 -0
- package/lib/components/Icon/svgs/FileMinusSvg.tsx +30 -0
- package/lib/components/Icon/svgs/FilePlusSvg.tsx +36 -0
- package/lib/components/Icon/svgs/FileSvg.tsx +24 -0
- package/lib/components/Icon/svgs/FileTextSvg.tsx +37 -0
- package/lib/components/Icon/svgs/FilmSvg.tsx +72 -0
- package/lib/components/Icon/svgs/FilterSvg.tsx +23 -0
- package/lib/components/Icon/svgs/FlagSvg.tsx +29 -0
- package/lib/components/Icon/svgs/FolderMinusSvg.tsx +29 -0
- package/lib/components/Icon/svgs/FolderPlusSvg.tsx +35 -0
- package/lib/components/Icon/svgs/FolderSvg.tsx +23 -0
- package/lib/components/Icon/svgs/FramerSvg.tsx +23 -0
- package/lib/components/Icon/svgs/FrownSvg.tsx +40 -0
- package/lib/components/Icon/svgs/GiftSvg.tsx +37 -0
- package/lib/components/Icon/svgs/GitBranchSvg.tsx +39 -0
- package/lib/components/Icon/svgs/GitCommitSvg.tsx +39 -0
- package/lib/components/Icon/svgs/GitMergeSvg.tsx +33 -0
- package/lib/components/Icon/svgs/GitPullRequestSvg.tsx +39 -0
- package/lib/components/Icon/svgs/GithubSvg.tsx +23 -0
- package/lib/components/Icon/svgs/GitlabSvg.tsx +23 -0
- package/lib/components/Icon/svgs/GlobeSvg.tsx +34 -0
- package/lib/components/Icon/svgs/GridSvg.tsx +46 -0
- package/lib/components/Icon/svgs/HardDriveSvg.tsx +41 -0
- package/lib/components/Icon/svgs/HashSvg.tsx +46 -0
- package/lib/components/Icon/svgs/HeadphonesSvg.tsx +24 -0
- package/lib/components/Icon/svgs/HeartSvg.tsx +23 -0
- package/lib/components/Icon/svgs/HelpCircleSvg.tsx +34 -0
- package/lib/components/Icon/svgs/HexagonSvg.tsx +23 -0
- package/lib/components/Icon/svgs/HomeSvg.tsx +24 -0
- package/lib/components/Icon/svgs/ImageSvg.tsx +36 -0
- package/lib/components/Icon/svgs/InboxSvg.tsx +24 -0
- package/lib/components/Icon/svgs/InfoSvg.tsx +39 -0
- package/lib/components/Icon/svgs/ItalicSvg.tsx +40 -0
- package/lib/components/Icon/svgs/KeySvg.tsx +23 -0
- package/lib/components/Icon/svgs/LayersSvg.tsx +25 -0
- package/lib/components/Icon/svgs/LayoutSvg.tsx +42 -0
- package/lib/components/Icon/svgs/LifeBuoySvg.tsx +62 -0
- package/lib/components/Icon/svgs/Link2Svg.tsx +29 -0
- package/lib/components/Icon/svgs/LinkSvg.tsx +24 -0
- package/lib/components/Icon/svgs/LinkedinSvg.tsx +34 -0
- package/lib/components/Icon/svgs/ListSvg.tsx +58 -0
- package/lib/components/Icon/svgs/LoaderSvg.tsx +70 -0
- package/lib/components/Icon/svgs/LockSvg.tsx +31 -0
- package/lib/components/Icon/svgs/LogInSvg.tsx +30 -0
- package/lib/components/Icon/svgs/LogOutSvg.tsx +30 -0
- package/lib/components/Icon/svgs/MailSvg.tsx +24 -0
- package/lib/components/Icon/svgs/MapPinSvg.tsx +28 -0
- package/lib/components/Icon/svgs/MapSvg.tsx +35 -0
- package/lib/components/Icon/svgs/Maximize2Svg.tsx +36 -0
- package/lib/components/Icon/svgs/MaximizeSvg.tsx +23 -0
- package/lib/components/Icon/svgs/MehSvg.tsx +45 -0
- package/lib/components/Icon/svgs/MenuSvg.tsx +40 -0
- package/lib/components/Icon/svgs/MessageCircleSvg.tsx +23 -0
- package/lib/components/Icon/svgs/MessageSquareSvg.tsx +23 -0
- package/lib/components/Icon/svgs/MicOffSvg.tsx +42 -0
- package/lib/components/Icon/svgs/MicSvg.tsx +36 -0
- package/lib/components/Icon/svgs/Minimize2Svg.tsx +36 -0
- package/lib/components/Icon/svgs/MinimizeSvg.tsx +23 -0
- package/lib/components/Icon/svgs/MinusCircleSvg.tsx +33 -0
- package/lib/components/Icon/svgs/MinusSquareSvg.tsx +36 -0
- package/lib/components/Icon/svgs/MinusSvg.tsx +29 -0
- package/lib/components/Icon/svgs/MonitorSvg.tsx +42 -0
- package/lib/components/Icon/svgs/MoonSvg.tsx +23 -0
- package/lib/components/Icon/svgs/MoreHorizontalSvg.tsx +37 -0
- package/lib/components/Icon/svgs/MoreVerticalSvg.tsx +37 -0
- package/lib/components/Icon/svgs/MousePointerSvg.tsx +24 -0
- package/lib/components/Icon/svgs/MoveSvg.tsx +38 -0
- package/lib/components/Icon/svgs/MusicSvg.tsx +33 -0
- package/lib/components/Icon/svgs/Navigation2Svg.tsx +23 -0
- package/lib/components/Icon/svgs/NavigationSvg.tsx +23 -0
- package/lib/components/Icon/svgs/OctagonSvg.tsx +23 -0
- package/lib/components/Icon/svgs/PackageSvg.tsx +36 -0
- package/lib/components/Icon/svgs/PaperclipSvg.tsx +23 -0
- package/lib/components/Icon/svgs/PauseCircleSvg.tsx +39 -0
- package/lib/components/Icon/svgs/PauseSvg.tsx +34 -0
- package/lib/components/Icon/svgs/PenToolSvg.tsx +30 -0
- package/lib/components/Icon/svgs/PercentSvg.tsx +38 -0
- package/lib/components/Icon/svgs/PhoneCallSvg.tsx +23 -0
- package/lib/components/Icon/svgs/PhoneForwardedSvg.tsx +30 -0
- package/lib/components/Icon/svgs/PhoneIncomingSvg.tsx +30 -0
- package/lib/components/Icon/svgs/PhoneMissedSvg.tsx +35 -0
- package/lib/components/Icon/svgs/PhoneOffSvg.tsx +29 -0
- package/lib/components/Icon/svgs/PhoneOutgoingSvg.tsx +30 -0
- package/lib/components/Icon/svgs/PhoneSvg.tsx +23 -0
- package/lib/components/Icon/svgs/PieChartSvg.tsx +24 -0
- package/lib/components/Icon/svgs/PlayCircleSvg.tsx +28 -0
- package/lib/components/Icon/svgs/PlaySvg.tsx +23 -0
- package/lib/components/Icon/svgs/PlusCircleSvg.tsx +39 -0
- package/lib/components/Icon/svgs/PlusSquareSvg.tsx +42 -0
- package/lib/components/Icon/svgs/PlusSvg.tsx +34 -0
- package/lib/components/Icon/svgs/PocketSvg.tsx +24 -0
- package/lib/components/Icon/svgs/PowerSvg.tsx +29 -0
- package/lib/components/Icon/svgs/PrinterSvg.tsx +30 -0
- package/lib/components/Icon/svgs/RadioSvg.tsx +28 -0
- package/lib/components/Icon/svgs/RefreshCcwSvg.tsx +25 -0
- package/lib/components/Icon/svgs/RefreshCwSvg.tsx +25 -0
- package/lib/components/Icon/svgs/RepeatSvg.tsx +26 -0
- package/lib/components/Icon/svgs/RewindSvg.tsx +24 -0
- package/lib/components/Icon/svgs/RotateCcwSvg.tsx +24 -0
- package/lib/components/Icon/svgs/RotateCwSvg.tsx +24 -0
- package/lib/components/Icon/svgs/RssSvg.tsx +29 -0
- package/lib/components/Icon/svgs/SaveSvg.tsx +25 -0
- package/lib/components/Icon/svgs/ScissorsSvg.tsx +50 -0
- package/lib/components/Icon/svgs/SearchSvg.tsx +33 -0
- package/lib/components/Icon/svgs/SendSvg.tsx +29 -0
- package/lib/components/Icon/svgs/ServerSvg.tsx +50 -0
- package/lib/components/Icon/svgs/SettingsSvg.tsx +28 -0
- package/lib/components/Icon/svgs/Share2Svg.tsx +49 -0
- package/lib/components/Icon/svgs/ShareSvg.tsx +30 -0
- package/lib/components/Icon/svgs/ShieldOffSvg.tsx +30 -0
- package/lib/components/Icon/svgs/ShieldSvg.tsx +23 -0
- package/lib/components/Icon/svgs/ShoppingBagSvg.tsx +30 -0
- package/lib/components/Icon/svgs/ShoppingCartSvg.tsx +33 -0
- package/lib/components/Icon/svgs/ShuffleSvg.tsx +42 -0
- package/lib/components/Icon/svgs/SidebarSvg.tsx +36 -0
- package/lib/components/Icon/svgs/SkipBackSvg.tsx +29 -0
- package/lib/components/Icon/svgs/SkipForwardSvg.tsx +29 -0
- package/lib/components/Icon/svgs/SlackSvg.tsx +30 -0
- package/lib/components/Icon/svgs/SlashSvg.tsx +33 -0
- package/lib/components/Icon/svgs/SlidersSvg.tsx +76 -0
- package/lib/components/Icon/svgs/SmartphoneSvg.tsx +36 -0
- package/lib/components/Icon/svgs/SmileSvg.tsx +40 -0
- package/lib/components/Icon/svgs/SpeakerSvg.tsx +41 -0
- package/lib/components/Icon/svgs/SquareSvg.tsx +30 -0
- package/lib/components/Icon/svgs/StarSvg.tsx +23 -0
- package/lib/components/Icon/svgs/StopCircleSvg.tsx +33 -0
- package/lib/components/Icon/svgs/SunSvg.tsx +75 -0
- package/lib/components/Icon/svgs/SunriseSvg.tsx +60 -0
- package/lib/components/Icon/svgs/SunsetSvg.tsx +60 -0
- package/lib/components/Icon/svgs/TableSvg.tsx +23 -0
- package/lib/components/Icon/svgs/TabletSvg.tsx +36 -0
- package/lib/components/Icon/svgs/TagSvg.tsx +29 -0
- package/lib/components/Icon/svgs/TargetSvg.tsx +37 -0
- package/lib/components/Icon/svgs/TerminalSvg.tsx +29 -0
- package/lib/components/Icon/svgs/ThermometerSvg.tsx +23 -0
- package/lib/components/Icon/svgs/ThumbsDownSvg.tsx +23 -0
- package/lib/components/Icon/svgs/ThumbsUpSvg.tsx +23 -0
- package/lib/components/Icon/svgs/ToggleLeftSvg.tsx +35 -0
- package/lib/components/Icon/svgs/ToggleRightSvg.tsx +35 -0
- package/lib/components/Icon/svgs/ToolSvg.tsx +23 -0
- package/lib/components/Icon/svgs/Trash2Svg.tsx +36 -0
- package/lib/components/Icon/svgs/TrashSvg.tsx +24 -0
- package/lib/components/Icon/svgs/TrelloSvg.tsx +42 -0
- package/lib/components/Icon/svgs/TrendingDownSvg.tsx +24 -0
- package/lib/components/Icon/svgs/TrendingUpSvg.tsx +24 -0
- package/lib/components/Icon/svgs/TriangleSvg.tsx +23 -0
- package/lib/components/Icon/svgs/TruckSvg.tsx +39 -0
- package/lib/components/Icon/svgs/TvSvg.tsx +31 -0
- package/lib/components/Icon/svgs/TwitchSvg.tsx +23 -0
- package/lib/components/Icon/svgs/TwitterSvg.tsx +23 -0
- package/lib/components/Icon/svgs/TypeSvg.tsx +35 -0
- package/lib/components/Icon/svgs/UmbrellaSvg.tsx +23 -0
- package/lib/components/Icon/svgs/UnderlineSvg.tsx +29 -0
- package/lib/components/Icon/svgs/UnlockSvg.tsx +31 -0
- package/lib/components/Icon/svgs/UploadCloudSvg.tsx +31 -0
- package/lib/components/Icon/svgs/UploadSvg.tsx +30 -0
- package/lib/components/Icon/svgs/UserCheckSvg.tsx +29 -0
- package/lib/components/Icon/svgs/UserMinusSvg.tsx +34 -0
- package/lib/components/Icon/svgs/UserPlusSvg.tsx +40 -0
- package/lib/components/Icon/svgs/UserSvg.tsx +30 -0
- package/lib/components/Icon/svgs/UserXSvg.tsx +40 -0
- package/lib/components/Icon/svgs/UsersSvg.tsx +30 -0
- package/lib/components/Icon/svgs/VideoOffSvg.tsx +29 -0
- package/lib/components/Icon/svgs/VideoSvg.tsx +31 -0
- package/lib/components/Icon/svgs/VoicemailSvg.tsx +38 -0
- package/lib/components/Icon/svgs/Volume1Svg.tsx +24 -0
- package/lib/components/Icon/svgs/Volume2Svg.tsx +24 -0
- package/lib/components/Icon/svgs/VolumeSvg.tsx +23 -0
- package/lib/components/Icon/svgs/VolumeXSvg.tsx +35 -0
- package/lib/components/Icon/svgs/WatchSvg.tsx +29 -0
- package/lib/components/Icon/svgs/WifiOffSvg.tsx +39 -0
- package/lib/components/Icon/svgs/WifiSvg.tsx +31 -0
- package/lib/components/Icon/svgs/WindSvg.tsx +23 -0
- package/lib/components/Icon/svgs/XCircleSvg.tsx +39 -0
- package/lib/components/Icon/svgs/XOctagonSvg.tsx +35 -0
- package/lib/components/Icon/svgs/XSquareSvg.tsx +42 -0
- package/lib/components/Icon/svgs/XSvg.tsx +34 -0
- package/lib/components/Icon/svgs/ZapOffSvg.tsx +31 -0
- package/lib/components/Icon/svgs/ZapSvg.tsx +23 -0
- package/lib/components/Icon/svgs/ZoomInSvg.tsx +45 -0
- package/lib/components/Icon/svgs/ZoomOutSvg.tsx +39 -0
- package/lib/components/Icon/svgs/internal/EmptySvg.tsx +23 -0
- package/lib/components/Icon/svgs/social/FacebookSvg.tsx +18 -0
- package/lib/components/Icon/svgs/social/FlickrSvg.tsx +19 -0
- package/lib/components/Icon/svgs/social/InstagramSvg.tsx +19 -0
- package/lib/components/Icon/svgs/social/SoundcloudSvg.tsx +22 -0
- package/lib/components/Icon/svgs/social/TiktokSvg.tsx +18 -0
- package/lib/components/Icon/svgs/social/XSvg.tsx +18 -0
- package/lib/components/Icon/svgs/social/YoutubeSvg.tsx +18 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/Facebook-full.svg +10 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/Facebook-line.svg +3 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/Flickr.svg +4 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/Git-line.svg +10 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/Instagram-full.svg +4 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/Instagram-line.svg +11 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/Linkedin-full.svg +3 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/Linkeding-line.svg +5 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/Slack-line.svg +10 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/Soundcloud.svg +3 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/X.svg +3 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/tok-tok.svg +3 -0
- package/lib/components/Icon/svgs/social/reference-from-figma/you-tube.svg +3 -0
- package/lib/components/IconButton/IconButton.stories.tsx +59 -0
- package/lib/components/IconButton/IconButton.tsx +71 -0
- package/lib/components/IconButton/__tests__/IconButton.test.tsx +110 -0
- package/lib/components/IconButton/__tests__/__snapshots__/IconButton.test.tsx.snap +77 -0
- package/lib/components/IconButton/index.ts +2 -0
- package/lib/components/Input/Documentation.mdx +94 -0
- package/lib/components/Input/Input.stories.tsx +60 -0
- package/lib/components/Input/Input.tsx +150 -0
- package/lib/components/Input/__tests__/Input.test.tsx +108 -0
- package/lib/components/Input/__tests__/__snapshots__/Input.test.tsx.snap +51 -0
- package/lib/components/Input/index.ts +2 -0
- package/lib/components/Label/Label.stories.tsx +47 -0
- package/lib/components/Label/Label.tsx +99 -0
- package/lib/components/Label/__tests__/Label.test.tsx +121 -0
- package/lib/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +76 -0
- package/lib/components/Label/index.ts +2 -0
- package/lib/components/Layout/Layout.stories.tsx +461 -0
- package/lib/components/Layout/Layout.tsx +78 -0
- package/lib/components/Layout/__tests__/Layout.test.tsx +51 -0
- package/lib/components/Layout/__tests__/__snapshots__/Layout.test.tsx.snap +25 -0
- package/lib/components/Layout/index.ts +2 -0
- package/lib/components/Link/Link.stories.tsx +32 -0
- package/lib/components/Link/Link.tsx +86 -0
- package/lib/components/Link/__tests__/__snapshots__/link.test.tsx.snap +19 -0
- package/lib/components/Link/__tests__/link.test.tsx +67 -0
- package/lib/components/Link/index.ts +2 -0
- package/lib/components/Menu/Menu.context.tsx +147 -0
- package/lib/components/Menu/Menu.tsx +68 -0
- package/lib/components/Menu/MenuContent.tsx +137 -0
- package/lib/components/Menu/MenuItem.tsx +84 -0
- package/lib/components/Menu/MenuSection.tsx +46 -0
- package/lib/components/Menu/MenuTrigger.tsx +32 -0
- package/lib/components/Menu/index.ts +8 -0
- package/lib/components/Modal/Modal.stories.tsx +48 -0
- package/lib/components/Modal/Modal.tsx +107 -0
- package/lib/components/Modal/__tests__/Modal.test.tsx +17 -0
- package/lib/components/Modal/__tests__/__snapshots__/Modal.test.tsx.snap +21 -0
- package/lib/components/Modal/index.ts +2 -0
- package/lib/components/Overlay/Overlay.stories.tsx +218 -0
- package/lib/components/Overlay/Overlay.tsx +197 -0
- package/lib/components/Overlay/index.ts +2 -0
- package/lib/components/Pagination/Pagination.stories.tsx +62 -0
- package/lib/components/Pagination/Pagination.tsx +81 -0
- package/lib/components/Pagination/PaginationControls.tsx +172 -0
- package/lib/components/Pagination/PaginationInfo.tsx +65 -0
- package/lib/components/Pagination/__tests__/getPaginationButtons.test.ts +96 -0
- package/lib/components/Pagination/getPaginationButtons.ts +51 -0
- package/lib/components/Pagination/index.tsx +6 -0
- package/lib/components/Paragraph/Paragraph.stories.tsx +134 -0
- package/lib/components/Paragraph/Paragraph.tsx +95 -0
- package/lib/components/Paragraph/__tests__/Paragraph.test.tsx +76 -0
- package/lib/components/Paragraph/__tests__/__snapshots__/Paragraph.test.tsx.snap +46 -0
- package/lib/components/Paragraph/index.ts +6 -0
- package/lib/components/Radio/LabelledRadio.tsx +111 -0
- package/lib/components/Radio/Radio.stories.tsx +30 -0
- package/lib/components/Radio/Radio.tsx +138 -0
- package/lib/components/Radio/__tests__/Radio.test.tsx +87 -0
- package/lib/components/Radio/__tests__/__snapshots__/Radio.test.tsx.snap +41 -0
- package/lib/components/Radio/index.ts +4 -0
- package/lib/components/Select/Select.stories.tsx +27 -0
- package/lib/components/Select/Select.tsx +82 -0
- package/lib/components/Select/__tests__/Select.test.tsx +40 -0
- package/lib/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +42 -0
- package/lib/components/Select/index.ts +2 -0
- package/lib/components/Snackbar/Snackbar.stories.tsx +93 -0
- package/lib/components/Snackbar/Snackbar.tsx +136 -0
- package/lib/components/Snackbar/__tests__/Snackbar.test.tsx +134 -0
- package/lib/components/Snackbar/__tests__/__snapshots__/Snackbar.test.tsx.snap +108 -0
- package/lib/components/Snackbar/index.ts +2 -0
- package/lib/components/Spinner/Spinner.stories.tsx +53 -0
- package/lib/components/Spinner/Spinner.tsx +75 -0
- package/lib/components/Spinner/__tests__/Spinner.test.tsx +41 -0
- package/lib/components/Spinner/__tests__/__snapshots__/Spinner.test.tsx.snap +73 -0
- package/lib/components/Spinner/index.tsx +2 -0
- package/lib/components/Table/Table.tsx +68 -0
- package/lib/components/Table/index.ts +2 -0
- package/lib/components/Tabs/Tab.tsx +83 -0
- package/lib/components/Tabs/TabContext.tsx +20 -0
- package/lib/components/Tabs/Tabs.stories.tsx +89 -0
- package/lib/components/Tabs/Tabs.tsx +98 -0
- package/lib/components/Tabs/__tests__/Tabs.test.tsx +116 -0
- package/lib/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +185 -0
- package/lib/components/Tabs/index.ts +2 -0
- package/lib/components/Textarea/Textarea.stories.tsx +55 -0
- package/lib/components/Textarea/Textarea.tsx +107 -0
- package/lib/components/Textarea/__tests__/Textarea.test.tsx +125 -0
- package/lib/components/Textarea/__tests__/__snapshots__/Textarea.test.tsx.snap +35 -0
- package/lib/components/Textarea/index.ts +2 -0
- package/lib/components/Toggle/Documentation.mdx +114 -0
- package/lib/components/Toggle/Toggle.stories.tsx +56 -0
- package/lib/components/Toggle/Toggle.tsx +93 -0
- package/lib/components/Toggle/ToggleHandle.tsx +46 -0
- package/lib/components/Toggle/index.ts +2 -0
- package/lib/components/Tooltip/Tooltip.stories.tsx +17 -0
- package/lib/components/Tooltip/Tooltip.tsx +44 -0
- package/lib/components/Tooltip/__tests__/__snapshots__/tooltip.test.tsx.snap +19 -0
- package/lib/components/Tooltip/__tests__/tooltip.test.tsx +48 -0
- package/lib/components/Tooltip/index.ts +2 -0
- package/lib/components/UclLogo/UclLogo.stories.tsx +44 -0
- package/lib/components/UclLogo/UclLogo.tsx +26 -0
- package/lib/components/UclLogo/UclLogoNegativeSpace.tsx +39 -0
- package/lib/components/UclLogo/__tests__/UclLogo.test.tsx +26 -0
- package/lib/components/UclLogo/__tests__/__snapshots__/UclLogo.test.tsx.snap +36 -0
- package/lib/components/UclLogo/index.ts +5 -0
- package/lib/components/UclLogo/ucl-logo.svg +47 -0
- package/lib/components/common/Common.mdx +82 -0
- package/lib/components/common/marginsStyle.ts +103 -0
- package/lib/components/index.ts +132 -0
- package/lib/hooks/useMediaQuery.ts +25 -0
- package/lib/index.ts +3 -0
- package/lib/theme/Colours.mdx +44 -0
- package/lib/theme/Icons.mdx +30 -0
- package/lib/theme/Theme.mdx +25 -0
- package/lib/theme/Typography.mdx +79 -0
- package/lib/theme/defaultTheme.ts +423 -0
- package/lib/theme/index.ts +10 -0
- package/lib/theme/useTheme.tsx +34 -0
- package/lib/types/image.d.ts +19 -0
- package/package.json +100 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { memo, HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { css, cx } from '@emotion/css';
|
|
4
|
+
import { useTheme } from '../..';
|
|
5
|
+
import UclLogo from '../UclLogo/UclLogo';
|
|
6
|
+
import HeaderBottomBreadcrumbs from './HeaderBottomBreadcrumbs';
|
|
7
|
+
import HeaderBottomHeadingAndAvatar from './HeaderBottomHeadingAndAvatar';
|
|
8
|
+
import HeaderBreadcrumb from './HeaderBreadcrumb';
|
|
9
|
+
import HeaderMenu from './HeaderMenu';
|
|
10
|
+
|
|
11
|
+
export const NAME = 'ucl-uikit-header';
|
|
12
|
+
export const HEADER_TOP_HEIGHT = 72;
|
|
13
|
+
export const Z_INDEX = 3;
|
|
14
|
+
|
|
15
|
+
export interface HeaderDraftProps extends HTMLAttributes<HTMLElement> {
|
|
16
|
+
variant?: 'breadcrumbs' | 'avatar';
|
|
17
|
+
title?: string;
|
|
18
|
+
heading?: string;
|
|
19
|
+
subheading?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
role?: string;
|
|
22
|
+
profileImageSrc?: string;
|
|
23
|
+
menu?: boolean;
|
|
24
|
+
fixed?: boolean;
|
|
25
|
+
sticky?: boolean;
|
|
26
|
+
testId?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const HeaderDraft = ({
|
|
30
|
+
variant,
|
|
31
|
+
title,
|
|
32
|
+
heading,
|
|
33
|
+
subheading,
|
|
34
|
+
name,
|
|
35
|
+
role,
|
|
36
|
+
profileImageSrc,
|
|
37
|
+
menu = false,
|
|
38
|
+
fixed = false,
|
|
39
|
+
sticky = false,
|
|
40
|
+
testId = NAME,
|
|
41
|
+
className,
|
|
42
|
+
children,
|
|
43
|
+
...props
|
|
44
|
+
}: HeaderDraftProps) => {
|
|
45
|
+
const [theme] = useTheme();
|
|
46
|
+
|
|
47
|
+
const menuChildren: React.ReactNode[] = [];
|
|
48
|
+
const nonMenuChildren: React.ReactNode[] = [];
|
|
49
|
+
|
|
50
|
+
React.Children.forEach(children, (child) => {
|
|
51
|
+
if (React.isValidElement(child) && child.type === HeaderMenu) {
|
|
52
|
+
menuChildren.push(child);
|
|
53
|
+
} else {
|
|
54
|
+
nonMenuChildren.push(child);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const baseStyle = css`
|
|
59
|
+
background-color: ${theme.color.neutral.white};
|
|
60
|
+
font-family: ${theme.font.family.primary};
|
|
61
|
+
font-synthesis: none;
|
|
62
|
+
text-rendering: optimizeLegibility;
|
|
63
|
+
-webkit-font-smoothing: antialiased;
|
|
64
|
+
-moz-osx-font-smoothing: grayscale;
|
|
65
|
+
`;
|
|
66
|
+
|
|
67
|
+
const fixedStyle = css`
|
|
68
|
+
position: fixed;
|
|
69
|
+
left: 0;
|
|
70
|
+
top: 0;
|
|
71
|
+
width: 100%;
|
|
72
|
+
z-index: ${Z_INDEX};
|
|
73
|
+
`;
|
|
74
|
+
|
|
75
|
+
const stickyStyle = css`
|
|
76
|
+
position: sticky;
|
|
77
|
+
top: -${HEADER_TOP_HEIGHT}px;
|
|
78
|
+
`;
|
|
79
|
+
|
|
80
|
+
const style = cx(
|
|
81
|
+
NAME,
|
|
82
|
+
baseStyle,
|
|
83
|
+
fixed && fixedStyle,
|
|
84
|
+
sticky && stickyStyle,
|
|
85
|
+
className
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
const topStyle = css`
|
|
89
|
+
position: relative;
|
|
90
|
+
height: ${HEADER_TOP_HEIGHT}px;
|
|
91
|
+
background-color: ${theme.color.neutral.grey90};
|
|
92
|
+
color: ${theme.color.text.inverted};
|
|
93
|
+
display: flex;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
align-items: center;
|
|
96
|
+
`;
|
|
97
|
+
|
|
98
|
+
const uclLogoStyle = css`
|
|
99
|
+
position: absolute;
|
|
100
|
+
left: 56px;
|
|
101
|
+
bottom: -0.5px;
|
|
102
|
+
height: 40px;
|
|
103
|
+
`;
|
|
104
|
+
|
|
105
|
+
const titleStyle = css`
|
|
106
|
+
display: block;
|
|
107
|
+
margin: 0;
|
|
108
|
+
font-size: ${theme.font.size.f18};
|
|
109
|
+
font-weight: 700;
|
|
110
|
+
text-align: center;
|
|
111
|
+
`;
|
|
112
|
+
|
|
113
|
+
const menuButtonStyle = css`
|
|
114
|
+
position: absolute;
|
|
115
|
+
right: 60px;
|
|
116
|
+
height: 40px;
|
|
117
|
+
padding: 0 ${theme.padding.p16};
|
|
118
|
+
background-color: ${theme.color.neutral.white};
|
|
119
|
+
color: ${theme.color.text.primary};
|
|
120
|
+
font-size: ${theme.font.size.f16};
|
|
121
|
+
font-weight: 700;
|
|
122
|
+
border: none;
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
transition:
|
|
127
|
+
background-color 0.15s ease-out,
|
|
128
|
+
color 0.15s ease-out;
|
|
129
|
+
|
|
130
|
+
&:hover {
|
|
131
|
+
color: ${theme.color.text.primary};
|
|
132
|
+
background-color: ${theme.color.neutral.grey5};
|
|
133
|
+
}
|
|
134
|
+
`;
|
|
135
|
+
|
|
136
|
+
return (
|
|
137
|
+
<header
|
|
138
|
+
className={style}
|
|
139
|
+
data-testid={testId}
|
|
140
|
+
{...props}
|
|
141
|
+
>
|
|
142
|
+
<div className={topStyle}>
|
|
143
|
+
<UclLogo className={uclLogoStyle} />
|
|
144
|
+
{title && <h1 className={titleStyle}>{title}</h1>}
|
|
145
|
+
|
|
146
|
+
{menu && <div className={menuButtonStyle}>{menuChildren}</div>}
|
|
147
|
+
</div>
|
|
148
|
+
|
|
149
|
+
{variant === 'breadcrumbs' && (
|
|
150
|
+
<HeaderBottomBreadcrumbs>{nonMenuChildren}</HeaderBottomBreadcrumbs>
|
|
151
|
+
)}
|
|
152
|
+
{variant === 'avatar' && (
|
|
153
|
+
<HeaderBottomHeadingAndAvatar
|
|
154
|
+
heading={heading!}
|
|
155
|
+
subheading={subheading!}
|
|
156
|
+
name={name!}
|
|
157
|
+
role={role!}
|
|
158
|
+
profileImageSrc={profileImageSrc}
|
|
159
|
+
/>
|
|
160
|
+
)}
|
|
161
|
+
</header>
|
|
162
|
+
);
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
const MemoAppHeader = memo(HeaderDraft);
|
|
166
|
+
|
|
167
|
+
export interface IHeaderSubComponents {
|
|
168
|
+
Breadcrumb: typeof HeaderBreadcrumb;
|
|
169
|
+
Menu: typeof HeaderMenu;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
const HeaderWithSubComponents = MemoAppHeader as typeof MemoAppHeader &
|
|
173
|
+
IHeaderSubComponents;
|
|
174
|
+
|
|
175
|
+
HeaderWithSubComponents.Breadcrumb = HeaderBreadcrumb;
|
|
176
|
+
HeaderWithSubComponents.Menu = HeaderMenu;
|
|
177
|
+
|
|
178
|
+
export default HeaderWithSubComponents;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export const NAME = 'ucl-uikit-header__menu';
|
|
4
|
+
|
|
5
|
+
export interface HeaderMenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
testId?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const HeaderMenu: React.FC<HeaderMenuProps> = ({
|
|
10
|
+
testId = NAME,
|
|
11
|
+
children,
|
|
12
|
+
...props
|
|
13
|
+
}) => {
|
|
14
|
+
return (
|
|
15
|
+
<div
|
|
16
|
+
data-testid={testId}
|
|
17
|
+
{...props}
|
|
18
|
+
>
|
|
19
|
+
{children}
|
|
20
|
+
</div>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default HeaderMenu;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import Header from '../HeaderDraft';
|
|
4
|
+
import { ThemeContextProvider } from '../../../theme/useTheme';
|
|
5
|
+
|
|
6
|
+
describe('Header', () => {
|
|
7
|
+
// Snapshot tests
|
|
8
|
+
|
|
9
|
+
test('snapshot: variant=breadcrumbs', () => {
|
|
10
|
+
const renderResult = render(
|
|
11
|
+
<ThemeContextProvider>
|
|
12
|
+
<Header
|
|
13
|
+
variant='breadcrumbs'
|
|
14
|
+
heading='LIDS'
|
|
15
|
+
subheading='Lorem Ipsum Dolor Simet'
|
|
16
|
+
name='Haley Holland'
|
|
17
|
+
role='Super User'
|
|
18
|
+
profileImageSrc='/img.jpg'
|
|
19
|
+
/>
|
|
20
|
+
</ThemeContextProvider>
|
|
21
|
+
);
|
|
22
|
+
expect(renderResult.container.firstChild).toMatchSnapshot();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
test('snapshot: variant=avatar', () => {
|
|
26
|
+
const renderResult = render(
|
|
27
|
+
<ThemeContextProvider>
|
|
28
|
+
<Header
|
|
29
|
+
variant='avatar'
|
|
30
|
+
heading='LIDS'
|
|
31
|
+
subheading='Lorem Ipsum Dolor Simet'
|
|
32
|
+
name='Haley Holland'
|
|
33
|
+
role='Super User'
|
|
34
|
+
profileImageSrc='/img.jpg'
|
|
35
|
+
/>
|
|
36
|
+
</ThemeContextProvider>
|
|
37
|
+
);
|
|
38
|
+
expect(renderResult.container.firstChild).toMatchSnapshot();
|
|
39
|
+
});
|
|
40
|
+
});
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`Header > snapshot: variant=avatar 1`] = `
|
|
4
|
+
<header
|
|
5
|
+
class="ucl-uikit-header css-1crtzt6"
|
|
6
|
+
data-testid="ucl-uikit-header"
|
|
7
|
+
>
|
|
8
|
+
<div
|
|
9
|
+
class="css-1gacr1v"
|
|
10
|
+
>
|
|
11
|
+
<svg
|
|
12
|
+
class="css-y3m4z0"
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
height="40"
|
|
15
|
+
viewBox="0 0 157 40"
|
|
16
|
+
width="157"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
>
|
|
19
|
+
<desc>
|
|
20
|
+
Logo of University College London
|
|
21
|
+
</desc>
|
|
22
|
+
<path
|
|
23
|
+
d="m 60.405678,1.52 v 25.62 c 0,1.74 -0.06,3.55 -1.6,5 -0.76,0.69 -2.12,1.45 -4.19,1.45 -1.53,0 -3.12,-0.4 -4.18,-1.51 -1.48,-1.39 -1.548529,-3.190021 -1.54,-4.94 V 1.52 h -13.22 v 24.63 c 0.13,4.22 0.25,8.72 4.31,12.6 0.47,0.45 0.841814,1.24 1.53,1.24 v 0 h 25.72 v 0 c 0,0 1.07,-0.8 1.54,-1.24 4.91,-4.59 4.88306,-10.690077 4.91,-15.4 V 1.52 Z m 48.710002,25.09 c -0.47,1.39 -2.3,6.73 -8.44,6.73 -6.500002,0 -8.800002,-5.75 -8.800002,-11.85 0,-1.64 0,-6.29 3.13,-9.24 0.88,-0.87 2.71,-2.21 5.610002,-2.21 5.54,0 7.54,4.36 8.61,6.8 l 11.03,-5.4 c -0.89,-1.62 -1.71,-3.01 -3.48,-4.82 -4.37,-4.41 -10.39,-6.62 -16.7,-6.62 -14.120002,0 -21.610002,11.21 -21.610002,22.25 0,6.71 2.74,13.61 8.56,17.74 h 26.450002 c 0.98,-0.65 1.92,-1.4 2.79,-2.23 1.99,-1.97 3,-3.83 4.06,-5.81 z M 11.167848,7.86 h -0.11 l -0.03,-0.03 V 7.71 l -0.03,-0.03 h -0.11 l -0.03,-0.03 V 7.54 c 0,0 0,-0.02 -0.03,-0.02 h -0.07 c 0,0 -0.04,-0.02 -0.05,-0.05 V 7.39 c 0,-0.29 0,-1.21 -0.52,-1.89 -0.44,-0.65 -1.05,-0.99 -1.39,-1.15 0,-0.12 -0.16,-0.17 -0.26,-0.21 -0.02,0 -0.03,0 -0.04,-0.02 -0.05,0 -0.09,-0.04 -0.09,-0.07 V 3.99 c 0,0 0.03,-0.06 0.1,-0.06 0.02,0 0.03,0 0.03,-0.03 V 3.78 c 0,0 0,-0.04 -0.04,-0.04 h -0.12 c 0,0 -0.05,-0.02 -0.05,-0.05 V 3.63 c 0,0 -0.03,-0.06 -0.05,-0.07 V 2.77 l 0.03,-0.02 v 0 c 0,0 0.02,0 0.02,-0.02 V 2.65 c 0,0 0,-0.02 -0.02,-0.02 h -0.04 c 0,0 -0.02,-0.02 -0.02,-0.06 0,-0.04 0,-0.05 0.02,-0.06 h 0.03 0.03 V 2.43 h -0.03 -0.03 c 0,0 -0.03,0 -0.06,-0.03 -0.13,-0.1 -0.27,-0.26 -0.27,-0.28 V 2.09 c 0,0 0,-0.05 -0.05,-0.05 -0.05,0 -0.03,-0.03 0,-0.03 V 1.98 1.93 l -0.06,-0.12 v 0 c 0,0 -0.07,0.1 -0.07,0.12 v 0.05 c 0,0 0,0.03 0.02,0.03 0.02,0 0.02,0.03 0,0.03 -0.04,0 -0.05,0.03 -0.05,0.05 v 0.03 c 0,0 -0.14,0.18 -0.28,0.28 0,0.02 -0.05,0.03 -0.04,0.03 h -0.04 -0.02 v 0.08 h 0.02 0.03 c 0,0 0.02,0.02 0.02,0.06 0,0.04 0,0.05 -0.02,0.06 h -0.04 c 0,0 -0.02,0 -0.02,0.02 v 0.08 c 0,0 0,0.02 0.02,0.02 h 0.02 c 0,0 0.026878,2.452e-4 0.03,0.02 v 0.79 0 c 0,0 -0.05,0.03 -0.05,0.07 v 0.06 c 0,0 0,0.05 -0.04,0.05 h -0.12 c 0,0 -0.05,0.02 -0.05,0.04 V 3.9 c 0,0 0.02,0.03 0.03,0.03 0.06,0 0.11,0.02 0.11,0.06 v 0.06 c 0,0 -0.05,0.06 -0.09,0.07 h -0.03 c -0.1,0.04 -0.27,0.1 -0.28,0.23 -0.34,0.16 -0.95,0.5 -1.39,1.15 -0.51,0.69 -0.52,1.62 -0.52,1.9 v 0.07 c 0,0 -0.09,0.05 -0.06,0.05 h -0.07 l -0.03,0.02 v 0.11 c 0,0 0,0.03 -0.03,0.03 h -0.11 c 0,0 -0.03,0 -0.03,0.03 v 0.12 c 0,0 0,0.03 -0.03,0.03 h -0.11 c 0,0 -0.03,0 -0.03,0.03 v 0.12 c 0,0 0,0.02 0.02,0.02 0.06,0 0.13,0.03 0.13,0.1 0,0.12 0.07,0.13 0.1,0.13 v 0.47 c 0,0.1 -0.08,0.15 -0.13,0.16 l -0.02,0.02 v 0.48 l 3.26,-0.71 v 0 l 3.26,0.71 V 8.91 c 0,0 0,-0.02 -0.02,-0.02 -0.05,0 -0.13,-0.05 -0.13,-0.16 V 8.27 c 0,0 0.1,-0.02 0.1,-0.14 0,-0.07 0.07,-0.1 0.1,-0.1 0.02,0 0.02,-1.35e-5 0.02,-0.02 V 7.89 l -0.03,-0.03 z m 3.62,10.3 v -0.94 h -0.56 v -0.52 0 h -0.07 v -0.03 -0.06 -0.02 l -0.06,-0.06 v -3.95 -0.02 0 c 0,0 0.0026,-0.01024 0.02,-0.02 v -0.07 -0.09 c 0,-0.02 0,-0.03 -0.02,-0.03 h -0.03 c 0,0 -0.04,-0.04 -0.02,-0.05 0.1,-0.08 0.11,-0.22 0.11,-0.25 0,-0.02 0,-0.04 0.02,-0.04 h 0.05 c 0,0 0.0082,-0.0039 0.02,-0.02 v -0.17 h 0.31 l 0.03,-0.03 0.11,-0.57 c 0.06,-0.12 0.18,-0.1 0.18,-0.1 h 0.02 l 0.11,-0.37 c 0,0 0.02,-0.03 -0.02,-0.04 -0.02,0 -7.13,-1.51 -7.13,-1.51 0,0 -7.10999996,1.51 -7.11999996,1.51 -0.04,0 -0.03,0.04 -0.03,0.04 l 0.1,0.36 v 0 c 0,0 0.12,0 0.18,0.09 l 0.1,0.58 c 0,0 0,0.03 0.05,0.03 h 0.31 v 0.18 h 0.02 0.04 c 0,0 0.02,0.02 0.02,0.05 0,0.03 0.02,0.16 0.12,0.25 0,0.02 0,0.05 -0.03,0.05 h -0.03 c 0,0 -0.03,0 -0.02,0.03 v 0.09 0.07 0.02 h 0.02 v 0.02 3.95 l -0.06,0.06 v 0.1 h -0.02 -0.05 -0.02 V 17.2 H 0.87784804 v 0.94 h -0.55 v 0.95 H 15.297848 v -0.95 h -0.56 z m -10.86,-5.69 v 0.08 l 0.02,0.02 v 0 c 0,0 0.019368,10e-6 0.02,0.02 v 3.95 l -0.06,0.06 v 0 0.07 0.02 h -0.06 c 0,0 -0.035609,0.0075 -0.02,0.02 v 0.1 h -1.28 v -0.11 0 h -0.06 v 0 -0.02 -0.06 -0.02 0 c 0,0 -0.04,-0.04 -0.05,-0.06 v -3.95 -0.02 0 c 0,0 0.00259,-0.01024 0.02,-0.02 v -0.07 -0.09 c 0,-0.02 0,-0.03 -0.02,-0.03 h -0.03 c 0,0 -0.04,-0.04 -0.02,-0.05 0.1,-0.08 0.1,-0.22 0.1,-0.25 0,-0.02 0,-0.04 0.03,-0.04 h 0.04 c 0,0 0.00816,-0.0039 0.02,-0.02 v -0.17 h 1.25 V 12 12.02 h 0.05 c 0,0 0.02,0.02 0.02,0.04 0,0.03 0.02,0.17 0.11,0.26 0.02,0 0,0.04 -0.02,0.04 h -0.03 c 0,0 -0.03,0.02 -0.02,0.03 v 0.09 z m 2.34,0 v 0.08 0.02 h 0.02 v 0.02 3.95 l -0.07,0.07 v 0.09 h -0.07 c 0,0 -0.035609,0.0075 -0.02,0.02 v 0.1 h -1.28 v -0.11 0 h -0.05 v 0 0 -0.08 0 l -0.07,-0.08 V 12.6 12.58 h 0.02 v -0.02 -0.07 c 0,0 0,-0.07 0.02,-0.09 0,-0.02 0,-0.03 -0.02,-0.03 h -0.03 c 0,0 -0.03,-0.04 -0.03,-0.05 0.1,-0.08 0.12,-0.22 0.12,-0.25 0,-0.02 0,-0.04 0.02,-0.04 h 0.04 c 0,0 0.00818,-0.0039 0.02,-0.02 v -0.17 h 1.22 v 0.17 0.02 h 0.05 c 0,0 0.02,0.02 0.02,0.04 0,0.03 0.02,0.17 0.12,0.26 0,0 0,0.04 -0.03,0.04 h -0.03 c 0,0 -0.03,0.02 -0.02,0.03 0,0.02 0.02,0.07 0.02,0.09 z m 2.34,0 v 0.08 0.02 h 0.02 v 0.02 3.95 l -0.06,0.06 v 0 0.09 h -0.07 c 0,0 -0.035609,0.0075 -0.02,0.02 v 0.1 h -1.28 v -0.11 0 h -0.06 v 0 -0.02 -0.06 -0.02 l -0.06,-0.06 v -3.95 -0.02 h 0.02 v -0.02 -0.07 c 0,0 0,-0.07 0.02,-0.09 0,-0.02 0,-0.03 -0.03,-0.03 h -0.03 c 0,0 -0.04,-0.04 -0.02,-0.05 0.1,-0.08 0.11,-0.22 0.11,-0.25 0,-0.02 0,-0.04 0.03,-0.04 h 0.04 c 0,0 0.00818,-0.0039 0.02,-0.02 v -0.17 h 1.24 V 12 12.02 h 0.05 c 0,0 0.02,0.02 0.02,0.04 0,0.03 0.02,0.17 0.12,0.26 0,0 0,0.04 -0.03,0.04 h -0.03 c 0,0 -0.03,0.02 -0.02,0.03 0,0.02 0.02,0.07 0.02,0.09 z m 2.32,0 v 0.08 0.02 h 0.02 c 0,0 0.01937,10e-6 0.02,0.02 v 3.95 l -0.07,0.06 v 0.08 0.02 h -0.07 v 0.02 0.1 h -1.28 V 16.7 h -0.06 v 0 -0.02 -0.06 -0.02 l -0.06,-0.06 v -3.95 l 0.02,-0.02 v 0 c 0,0 0.02,-4e-5 0.02,-0.02 v -0.07 -0.09 -0.03 h -0.04 c 0,0 -0.03,-0.04 -0.02,-0.05 0.1,-0.08 0.11,-0.22 0.11,-0.25 0,-0.02 0,-0.04 0.02,-0.04 h 0.05 V 12 11.83 h 1.22 V 12 c 0,0 0,0.02 0.02,0.02 h 0.04 c 0,0 0.03,0.02 0.03,0.04 0,0.03 0,0.17 0.11,0.26 0.02,0 0,0.04 -0.02,0.04 h -0.03 c 0,0 -0.03,0.02 -0.03,0.03 0,0.02 0.02,0.07 0.02,0.09 z m 2.35,0 v 0.08 c 0,0 0,0.02 0.02,0.02 v 0 0.02 3.95 l -0.07,0.07 v 0.09 h -0.07 c 0,0 -0.03561,0.0075 -0.02,0.02 v 0.1 h -1.27 v -0.11 0 h -0.06 v 0 -0.02 -0.06 -0.02 l -0.06,-0.06 V 12.6 l 0.02,-0.02 v 0 c 0,0 0.0026,-0.01022 0.02,-0.02 V 12.49 12.4 c 0,-0.02 0,-0.03 -0.02,-0.03 h -0.03 c 0,0 -0.04,-0.04 -0.02,-0.05 0.1,-0.08 0.11,-0.22 0.11,-0.25 0,-0.02 0,-0.04 0.02,-0.04 h 0.05 v -0.02 -0.17 h 1.22 v 0.17 c 0,0 0.02,0.02 0.03,0.02 h 0.04 c 0,0 0.02,0.02 0.02,0.04 0,0.03 0.02,0.17 0.12,0.26 0,0 0,0.04 -0.03,0.04 h -0.03 c 0,0 -0.02,0.02 0,0.03 v 0.09 z M 67.235678,40 h -25.72 M 125.60568,39.99 V 1.46 h 13.16 v 30.29 h 17.08 v 8.24 h -30.25 z M 87.045678,40 v 0"
|
|
24
|
+
/>
|
|
25
|
+
</svg>
|
|
26
|
+
</div>
|
|
27
|
+
<div
|
|
28
|
+
class="ucl-uikit-header__avatar css-9tbmx2"
|
|
29
|
+
data-testid="ucl-uikit-header__avatar"
|
|
30
|
+
>
|
|
31
|
+
<div
|
|
32
|
+
class="css-x5lawr"
|
|
33
|
+
>
|
|
34
|
+
<h1
|
|
35
|
+
class="css-1683c8i"
|
|
36
|
+
>
|
|
37
|
+
LIDS
|
|
38
|
+
</h1>
|
|
39
|
+
<h2
|
|
40
|
+
class="css-1ui7iu9"
|
|
41
|
+
>
|
|
42
|
+
Lorem Ipsum Dolor Simet
|
|
43
|
+
</h2>
|
|
44
|
+
</div>
|
|
45
|
+
<div
|
|
46
|
+
class="css-cgj2nd"
|
|
47
|
+
>
|
|
48
|
+
<div
|
|
49
|
+
class="css-se18zh"
|
|
50
|
+
>
|
|
51
|
+
<img
|
|
52
|
+
alt="Profile photo"
|
|
53
|
+
class="css-ybrhvy"
|
|
54
|
+
src="/img.jpg"
|
|
55
|
+
/>
|
|
56
|
+
</div>
|
|
57
|
+
<div
|
|
58
|
+
class="css-dz7zbn"
|
|
59
|
+
>
|
|
60
|
+
<div
|
|
61
|
+
class="css-xahd9c"
|
|
62
|
+
>
|
|
63
|
+
Haley Holland
|
|
64
|
+
</div>
|
|
65
|
+
<div
|
|
66
|
+
class="css-76625g"
|
|
67
|
+
>
|
|
68
|
+
Super User
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
<svg
|
|
72
|
+
class="ucl-uikit-icon css-10o3g4f"
|
|
73
|
+
data-testid="ucl-uikit-icon"
|
|
74
|
+
fill="none"
|
|
75
|
+
height="24"
|
|
76
|
+
stroke="currentColor"
|
|
77
|
+
stroke-linecap="round"
|
|
78
|
+
stroke-linejoin="round"
|
|
79
|
+
stroke-width="2"
|
|
80
|
+
viewBox="0 0 24 24"
|
|
81
|
+
width="24"
|
|
82
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
83
|
+
>
|
|
84
|
+
<polyline
|
|
85
|
+
points="6 9 12 15 18 9"
|
|
86
|
+
/>
|
|
87
|
+
</svg>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</header>
|
|
91
|
+
`;
|
|
92
|
+
|
|
93
|
+
exports[`Header > snapshot: variant=breadcrumbs 1`] = `
|
|
94
|
+
<header
|
|
95
|
+
class="ucl-uikit-header css-1crtzt6"
|
|
96
|
+
data-testid="ucl-uikit-header"
|
|
97
|
+
>
|
|
98
|
+
<div
|
|
99
|
+
class="css-1gacr1v"
|
|
100
|
+
>
|
|
101
|
+
<svg
|
|
102
|
+
class="css-y3m4z0"
|
|
103
|
+
fill="currentColor"
|
|
104
|
+
height="40"
|
|
105
|
+
viewBox="0 0 157 40"
|
|
106
|
+
width="157"
|
|
107
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
108
|
+
>
|
|
109
|
+
<desc>
|
|
110
|
+
Logo of University College London
|
|
111
|
+
</desc>
|
|
112
|
+
<path
|
|
113
|
+
d="m 60.405678,1.52 v 25.62 c 0,1.74 -0.06,3.55 -1.6,5 -0.76,0.69 -2.12,1.45 -4.19,1.45 -1.53,0 -3.12,-0.4 -4.18,-1.51 -1.48,-1.39 -1.548529,-3.190021 -1.54,-4.94 V 1.52 h -13.22 v 24.63 c 0.13,4.22 0.25,8.72 4.31,12.6 0.47,0.45 0.841814,1.24 1.53,1.24 v 0 h 25.72 v 0 c 0,0 1.07,-0.8 1.54,-1.24 4.91,-4.59 4.88306,-10.690077 4.91,-15.4 V 1.52 Z m 48.710002,25.09 c -0.47,1.39 -2.3,6.73 -8.44,6.73 -6.500002,0 -8.800002,-5.75 -8.800002,-11.85 0,-1.64 0,-6.29 3.13,-9.24 0.88,-0.87 2.71,-2.21 5.610002,-2.21 5.54,0 7.54,4.36 8.61,6.8 l 11.03,-5.4 c -0.89,-1.62 -1.71,-3.01 -3.48,-4.82 -4.37,-4.41 -10.39,-6.62 -16.7,-6.62 -14.120002,0 -21.610002,11.21 -21.610002,22.25 0,6.71 2.74,13.61 8.56,17.74 h 26.450002 c 0.98,-0.65 1.92,-1.4 2.79,-2.23 1.99,-1.97 3,-3.83 4.06,-5.81 z M 11.167848,7.86 h -0.11 l -0.03,-0.03 V 7.71 l -0.03,-0.03 h -0.11 l -0.03,-0.03 V 7.54 c 0,0 0,-0.02 -0.03,-0.02 h -0.07 c 0,0 -0.04,-0.02 -0.05,-0.05 V 7.39 c 0,-0.29 0,-1.21 -0.52,-1.89 -0.44,-0.65 -1.05,-0.99 -1.39,-1.15 0,-0.12 -0.16,-0.17 -0.26,-0.21 -0.02,0 -0.03,0 -0.04,-0.02 -0.05,0 -0.09,-0.04 -0.09,-0.07 V 3.99 c 0,0 0.03,-0.06 0.1,-0.06 0.02,0 0.03,0 0.03,-0.03 V 3.78 c 0,0 0,-0.04 -0.04,-0.04 h -0.12 c 0,0 -0.05,-0.02 -0.05,-0.05 V 3.63 c 0,0 -0.03,-0.06 -0.05,-0.07 V 2.77 l 0.03,-0.02 v 0 c 0,0 0.02,0 0.02,-0.02 V 2.65 c 0,0 0,-0.02 -0.02,-0.02 h -0.04 c 0,0 -0.02,-0.02 -0.02,-0.06 0,-0.04 0,-0.05 0.02,-0.06 h 0.03 0.03 V 2.43 h -0.03 -0.03 c 0,0 -0.03,0 -0.06,-0.03 -0.13,-0.1 -0.27,-0.26 -0.27,-0.28 V 2.09 c 0,0 0,-0.05 -0.05,-0.05 -0.05,0 -0.03,-0.03 0,-0.03 V 1.98 1.93 l -0.06,-0.12 v 0 c 0,0 -0.07,0.1 -0.07,0.12 v 0.05 c 0,0 0,0.03 0.02,0.03 0.02,0 0.02,0.03 0,0.03 -0.04,0 -0.05,0.03 -0.05,0.05 v 0.03 c 0,0 -0.14,0.18 -0.28,0.28 0,0.02 -0.05,0.03 -0.04,0.03 h -0.04 -0.02 v 0.08 h 0.02 0.03 c 0,0 0.02,0.02 0.02,0.06 0,0.04 0,0.05 -0.02,0.06 h -0.04 c 0,0 -0.02,0 -0.02,0.02 v 0.08 c 0,0 0,0.02 0.02,0.02 h 0.02 c 0,0 0.026878,2.452e-4 0.03,0.02 v 0.79 0 c 0,0 -0.05,0.03 -0.05,0.07 v 0.06 c 0,0 0,0.05 -0.04,0.05 h -0.12 c 0,0 -0.05,0.02 -0.05,0.04 V 3.9 c 0,0 0.02,0.03 0.03,0.03 0.06,0 0.11,0.02 0.11,0.06 v 0.06 c 0,0 -0.05,0.06 -0.09,0.07 h -0.03 c -0.1,0.04 -0.27,0.1 -0.28,0.23 -0.34,0.16 -0.95,0.5 -1.39,1.15 -0.51,0.69 -0.52,1.62 -0.52,1.9 v 0.07 c 0,0 -0.09,0.05 -0.06,0.05 h -0.07 l -0.03,0.02 v 0.11 c 0,0 0,0.03 -0.03,0.03 h -0.11 c 0,0 -0.03,0 -0.03,0.03 v 0.12 c 0,0 0,0.03 -0.03,0.03 h -0.11 c 0,0 -0.03,0 -0.03,0.03 v 0.12 c 0,0 0,0.02 0.02,0.02 0.06,0 0.13,0.03 0.13,0.1 0,0.12 0.07,0.13 0.1,0.13 v 0.47 c 0,0.1 -0.08,0.15 -0.13,0.16 l -0.02,0.02 v 0.48 l 3.26,-0.71 v 0 l 3.26,0.71 V 8.91 c 0,0 0,-0.02 -0.02,-0.02 -0.05,0 -0.13,-0.05 -0.13,-0.16 V 8.27 c 0,0 0.1,-0.02 0.1,-0.14 0,-0.07 0.07,-0.1 0.1,-0.1 0.02,0 0.02,-1.35e-5 0.02,-0.02 V 7.89 l -0.03,-0.03 z m 3.62,10.3 v -0.94 h -0.56 v -0.52 0 h -0.07 v -0.03 -0.06 -0.02 l -0.06,-0.06 v -3.95 -0.02 0 c 0,0 0.0026,-0.01024 0.02,-0.02 v -0.07 -0.09 c 0,-0.02 0,-0.03 -0.02,-0.03 h -0.03 c 0,0 -0.04,-0.04 -0.02,-0.05 0.1,-0.08 0.11,-0.22 0.11,-0.25 0,-0.02 0,-0.04 0.02,-0.04 h 0.05 c 0,0 0.0082,-0.0039 0.02,-0.02 v -0.17 h 0.31 l 0.03,-0.03 0.11,-0.57 c 0.06,-0.12 0.18,-0.1 0.18,-0.1 h 0.02 l 0.11,-0.37 c 0,0 0.02,-0.03 -0.02,-0.04 -0.02,0 -7.13,-1.51 -7.13,-1.51 0,0 -7.10999996,1.51 -7.11999996,1.51 -0.04,0 -0.03,0.04 -0.03,0.04 l 0.1,0.36 v 0 c 0,0 0.12,0 0.18,0.09 l 0.1,0.58 c 0,0 0,0.03 0.05,0.03 h 0.31 v 0.18 h 0.02 0.04 c 0,0 0.02,0.02 0.02,0.05 0,0.03 0.02,0.16 0.12,0.25 0,0.02 0,0.05 -0.03,0.05 h -0.03 c 0,0 -0.03,0 -0.02,0.03 v 0.09 0.07 0.02 h 0.02 v 0.02 3.95 l -0.06,0.06 v 0.1 h -0.02 -0.05 -0.02 V 17.2 H 0.87784804 v 0.94 h -0.55 v 0.95 H 15.297848 v -0.95 h -0.56 z m -10.86,-5.69 v 0.08 l 0.02,0.02 v 0 c 0,0 0.019368,10e-6 0.02,0.02 v 3.95 l -0.06,0.06 v 0 0.07 0.02 h -0.06 c 0,0 -0.035609,0.0075 -0.02,0.02 v 0.1 h -1.28 v -0.11 0 h -0.06 v 0 -0.02 -0.06 -0.02 0 c 0,0 -0.04,-0.04 -0.05,-0.06 v -3.95 -0.02 0 c 0,0 0.00259,-0.01024 0.02,-0.02 v -0.07 -0.09 c 0,-0.02 0,-0.03 -0.02,-0.03 h -0.03 c 0,0 -0.04,-0.04 -0.02,-0.05 0.1,-0.08 0.1,-0.22 0.1,-0.25 0,-0.02 0,-0.04 0.03,-0.04 h 0.04 c 0,0 0.00816,-0.0039 0.02,-0.02 v -0.17 h 1.25 V 12 12.02 h 0.05 c 0,0 0.02,0.02 0.02,0.04 0,0.03 0.02,0.17 0.11,0.26 0.02,0 0,0.04 -0.02,0.04 h -0.03 c 0,0 -0.03,0.02 -0.02,0.03 v 0.09 z m 2.34,0 v 0.08 0.02 h 0.02 v 0.02 3.95 l -0.07,0.07 v 0.09 h -0.07 c 0,0 -0.035609,0.0075 -0.02,0.02 v 0.1 h -1.28 v -0.11 0 h -0.05 v 0 0 -0.08 0 l -0.07,-0.08 V 12.6 12.58 h 0.02 v -0.02 -0.07 c 0,0 0,-0.07 0.02,-0.09 0,-0.02 0,-0.03 -0.02,-0.03 h -0.03 c 0,0 -0.03,-0.04 -0.03,-0.05 0.1,-0.08 0.12,-0.22 0.12,-0.25 0,-0.02 0,-0.04 0.02,-0.04 h 0.04 c 0,0 0.00818,-0.0039 0.02,-0.02 v -0.17 h 1.22 v 0.17 0.02 h 0.05 c 0,0 0.02,0.02 0.02,0.04 0,0.03 0.02,0.17 0.12,0.26 0,0 0,0.04 -0.03,0.04 h -0.03 c 0,0 -0.03,0.02 -0.02,0.03 0,0.02 0.02,0.07 0.02,0.09 z m 2.34,0 v 0.08 0.02 h 0.02 v 0.02 3.95 l -0.06,0.06 v 0 0.09 h -0.07 c 0,0 -0.035609,0.0075 -0.02,0.02 v 0.1 h -1.28 v -0.11 0 h -0.06 v 0 -0.02 -0.06 -0.02 l -0.06,-0.06 v -3.95 -0.02 h 0.02 v -0.02 -0.07 c 0,0 0,-0.07 0.02,-0.09 0,-0.02 0,-0.03 -0.03,-0.03 h -0.03 c 0,0 -0.04,-0.04 -0.02,-0.05 0.1,-0.08 0.11,-0.22 0.11,-0.25 0,-0.02 0,-0.04 0.03,-0.04 h 0.04 c 0,0 0.00818,-0.0039 0.02,-0.02 v -0.17 h 1.24 V 12 12.02 h 0.05 c 0,0 0.02,0.02 0.02,0.04 0,0.03 0.02,0.17 0.12,0.26 0,0 0,0.04 -0.03,0.04 h -0.03 c 0,0 -0.03,0.02 -0.02,0.03 0,0.02 0.02,0.07 0.02,0.09 z m 2.32,0 v 0.08 0.02 h 0.02 c 0,0 0.01937,10e-6 0.02,0.02 v 3.95 l -0.07,0.06 v 0.08 0.02 h -0.07 v 0.02 0.1 h -1.28 V 16.7 h -0.06 v 0 -0.02 -0.06 -0.02 l -0.06,-0.06 v -3.95 l 0.02,-0.02 v 0 c 0,0 0.02,-4e-5 0.02,-0.02 v -0.07 -0.09 -0.03 h -0.04 c 0,0 -0.03,-0.04 -0.02,-0.05 0.1,-0.08 0.11,-0.22 0.11,-0.25 0,-0.02 0,-0.04 0.02,-0.04 h 0.05 V 12 11.83 h 1.22 V 12 c 0,0 0,0.02 0.02,0.02 h 0.04 c 0,0 0.03,0.02 0.03,0.04 0,0.03 0,0.17 0.11,0.26 0.02,0 0,0.04 -0.02,0.04 h -0.03 c 0,0 -0.03,0.02 -0.03,0.03 0,0.02 0.02,0.07 0.02,0.09 z m 2.35,0 v 0.08 c 0,0 0,0.02 0.02,0.02 v 0 0.02 3.95 l -0.07,0.07 v 0.09 h -0.07 c 0,0 -0.03561,0.0075 -0.02,0.02 v 0.1 h -1.27 v -0.11 0 h -0.06 v 0 -0.02 -0.06 -0.02 l -0.06,-0.06 V 12.6 l 0.02,-0.02 v 0 c 0,0 0.0026,-0.01022 0.02,-0.02 V 12.49 12.4 c 0,-0.02 0,-0.03 -0.02,-0.03 h -0.03 c 0,0 -0.04,-0.04 -0.02,-0.05 0.1,-0.08 0.11,-0.22 0.11,-0.25 0,-0.02 0,-0.04 0.02,-0.04 h 0.05 v -0.02 -0.17 h 1.22 v 0.17 c 0,0 0.02,0.02 0.03,0.02 h 0.04 c 0,0 0.02,0.02 0.02,0.04 0,0.03 0.02,0.17 0.12,0.26 0,0 0,0.04 -0.03,0.04 h -0.03 c 0,0 -0.02,0.02 0,0.03 v 0.09 z M 67.235678,40 h -25.72 M 125.60568,39.99 V 1.46 h 13.16 v 30.29 h 17.08 v 8.24 h -30.25 z M 87.045678,40 v 0"
|
|
114
|
+
/>
|
|
115
|
+
</svg>
|
|
116
|
+
</div>
|
|
117
|
+
<nav
|
|
118
|
+
class="ucl-uikit-header__bottom--breadcrumbs css-ff2u5r"
|
|
119
|
+
data-testid="ucl-uikit-header__bottom--breadcrumbs"
|
|
120
|
+
>
|
|
121
|
+
<ul
|
|
122
|
+
class="css-1bozzd9"
|
|
123
|
+
/>
|
|
124
|
+
</nav>
|
|
125
|
+
</header>
|
|
126
|
+
`;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as HeadingStories from './Heading.stories';
|
|
2
|
+
import {
|
|
3
|
+
Meta,
|
|
4
|
+
Title,
|
|
5
|
+
Subtitle,
|
|
6
|
+
Canvas,
|
|
7
|
+
Controls,
|
|
8
|
+
Source,
|
|
9
|
+
ArgTypes,
|
|
10
|
+
} from '@storybook/blocks';
|
|
11
|
+
|
|
12
|
+
export const usage = {
|
|
13
|
+
default: `<Heading>Default Heading</Heading>`,
|
|
14
|
+
level1: `<Heading level={1}>Level 1 Heading</Heading>`,
|
|
15
|
+
level2: `<Heading level={2}>Level 2 Heading</Heading>`,
|
|
16
|
+
level3: `<Heading level={3}>Level 3 Heading</Heading>`,
|
|
17
|
+
level4: `<Heading level={4}>Level 4 Heading</Heading>`,
|
|
18
|
+
withMargins: `<Heading margins={true} >Heading with margins</Heading>`,
|
|
19
|
+
noMargins: `<Heading margins={false} >Heading with no margins</Heading>`,
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
<Meta of={HeadingStories} />
|
|
23
|
+
<Title />
|
|
24
|
+
<Subtitle>A semantic heading element with UCL branded styling</Subtitle>
|
|
25
|
+
|
|
26
|
+
The `<Heading>` component wraps <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements" target="_blank">native heading HTML elements</a>: `<h1>`, `<h2>`, `<h3>`, `<h4>`.
|
|
27
|
+
|
|
28
|
+
Headings add semantic structure to a web page, supporting machine comprehension and accessibility. They also provide visual hierarchy, helping users to understand the relative importance of different sections of content. The styling for the `<Heading>` component is based on the UCL Design System typographic guidelines.
|
|
29
|
+
|
|
30
|
+
Design specification available in Figma: <a href="https://www.figma.com/design/8Sm5PxWOWJYpYXAzhRzUzt/UCL-Design-System-UI-Kit?node-id=5862-4293&t=m0ZdPzYILv5R4XBj-4" target="_blank">UCL Design System UI Kit | Typography (Headings)</a>
|
|
31
|
+
|
|
32
|
+
Styling for this element includes responsive font sizing. See the Design specification (above) for more details.
|
|
33
|
+
|
|
34
|
+
(`<h5>` and `<h6>` are not supported, but you shouldn't need a hierarchy this deep in practice.)
|
|
35
|
+
|
|
36
|
+
**_Note:_** Developers should use `<Heading>` instead of `<h1>`, `<h2>`, etc, to ensure consistent styling and accessibility.
|
|
37
|
+
|
|
38
|
+
<Canvas
|
|
39
|
+
source={{
|
|
40
|
+
code: usage.default,
|
|
41
|
+
}}
|
|
42
|
+
/>
|
|
43
|
+
|
|
44
|
+
<Controls />
|
|
45
|
+
|
|
46
|
+
## Usage
|
|
47
|
+
|
|
48
|
+
All screens in UCL Experience apps should have a sensible semantic hierarchy. This includes ensuring there is only one level 1 `<Heading>` (equivalent to `<h1>`) per screen. Do not simply use the heading level that looks best or has the font size you want. Do not 'miss out' levels in the hierarchy: for example, an `<h2>` ought not to be followed by an `<h4>`.
|
|
49
|
+
|
|
50
|
+
<Source code={usage.default} />
|
|
51
|
+
|
|
52
|
+
### Props
|
|
53
|
+
|
|
54
|
+
- `level`: A **number** from 1 to 4, corresponding to the level of the HTML heading element to be rendered. Default is 1, if otherwise unspecified.
|
|
55
|
+
- `margins`: A **boolean** value. If `false`, the heading will have no margins. Default is `true`.
|
|
56
|
+
- `testid`: A **string** value. If provided, the heading element will have a `data-testid` attribute with this value. The <a href="https://www.educative.io/answers/what-is-the-data-testid-attribute-in-testing" target="_blank">`data-testid` attribute</a> is used for identifying this element for testing. If unspecified, `ucl-heading` is used.
|
|
57
|
+
|
|
58
|
+
Pass the text you want in the heading as children: `<Heading>My heading text</Heading>`.
|
|
59
|
+
|
|
60
|
+
Multiple HTML elements as well as plain text is supported -- for example, `<em>Italic text</em>`
|
|
61
|
+
|
|
62
|
+
Custom CSS styling can be added as with all UIKit-React components by passing an optional `className` prop to the component.
|
|
63
|
+
|
|
64
|
+
<ArgTypes />
|
|
65
|
+
|
|
66
|
+
# Variants
|
|
67
|
+
|
|
68
|
+
<Canvas
|
|
69
|
+
of={HeadingStories.Level1}
|
|
70
|
+
sourceState='shown'
|
|
71
|
+
source={{
|
|
72
|
+
code: usage.level1,
|
|
73
|
+
}}
|
|
74
|
+
/>
|
|
75
|
+
|
|
76
|
+
<Canvas
|
|
77
|
+
of={HeadingStories.Level2}
|
|
78
|
+
sourceState='shown'
|
|
79
|
+
source={{
|
|
80
|
+
code: usage.level2,
|
|
81
|
+
}}
|
|
82
|
+
/>
|
|
83
|
+
|
|
84
|
+
<Canvas
|
|
85
|
+
of={HeadingStories.Level3}
|
|
86
|
+
sourceState='shown'
|
|
87
|
+
source={{
|
|
88
|
+
code: usage.level3,
|
|
89
|
+
}}
|
|
90
|
+
/>
|
|
91
|
+
|
|
92
|
+
<Canvas
|
|
93
|
+
of={HeadingStories.Level4}
|
|
94
|
+
sourceState='shown'
|
|
95
|
+
source={{
|
|
96
|
+
code: usage.level4,
|
|
97
|
+
}}
|
|
98
|
+
/>
|
|
99
|
+
|
|
100
|
+
Red lines are added to the examples below to show the margins of the heading element.
|
|
101
|
+
|
|
102
|
+
Note that `margins={true}` in the below example merely specifies explicitly the default behaviour.
|
|
103
|
+
|
|
104
|
+
<Canvas
|
|
105
|
+
of={HeadingStories.Margins}
|
|
106
|
+
sourceState='shown'
|
|
107
|
+
source={{
|
|
108
|
+
code: usage.withMargins,
|
|
109
|
+
}}
|
|
110
|
+
/>
|
|
111
|
+
|
|
112
|
+
<Canvas
|
|
113
|
+
of={HeadingStories.NoMargins}
|
|
114
|
+
sourceState='shown'
|
|
115
|
+
source={{
|
|
116
|
+
code: usage.noMargins,
|
|
117
|
+
}}
|
|
118
|
+
/>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import Heading from './Heading';
|
|
4
|
+
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Components/Ready to use/Heading',
|
|
7
|
+
component: Heading,
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: 'centered',
|
|
10
|
+
},
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
} satisfies Meta<typeof Heading>;
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
|
|
17
|
+
export const Default: Story = {
|
|
18
|
+
args: {
|
|
19
|
+
children: 'Default Heading',
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const Level1: Story = {
|
|
24
|
+
args: {
|
|
25
|
+
level: 1,
|
|
26
|
+
children: 'Heading level 1',
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const Level2: Story = {
|
|
31
|
+
args: {
|
|
32
|
+
level: 2,
|
|
33
|
+
children: 'Heading level 2',
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const Level3: Story = {
|
|
38
|
+
args: {
|
|
39
|
+
title: 'Heading Level 3',
|
|
40
|
+
level: 3,
|
|
41
|
+
children: 'Heading level 3',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const Level4: Story = {
|
|
46
|
+
args: {
|
|
47
|
+
title: 'Heading Level 4',
|
|
48
|
+
level: 4,
|
|
49
|
+
children: 'Heading level 4',
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const Margins: Story = {
|
|
54
|
+
name: 'Heading with margins',
|
|
55
|
+
args: {
|
|
56
|
+
title: 'Heading with margins',
|
|
57
|
+
margins: true,
|
|
58
|
+
children: 'Heading with margins',
|
|
59
|
+
},
|
|
60
|
+
decorators: [
|
|
61
|
+
(Story) => (
|
|
62
|
+
<div>
|
|
63
|
+
<div
|
|
64
|
+
style={{
|
|
65
|
+
height: '16px',
|
|
66
|
+
backgroundColor: '#CA0007',
|
|
67
|
+
}}
|
|
68
|
+
/>
|
|
69
|
+
<Story />
|
|
70
|
+
<div
|
|
71
|
+
style={{
|
|
72
|
+
height: '16px',
|
|
73
|
+
backgroundColor: '#CA0007',
|
|
74
|
+
}}
|
|
75
|
+
/>
|
|
76
|
+
</div>
|
|
77
|
+
),
|
|
78
|
+
],
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export const NoMargins: Story = {
|
|
82
|
+
name: 'Heading without margins',
|
|
83
|
+
args: {
|
|
84
|
+
title: 'Heading without margins',
|
|
85
|
+
margins: false,
|
|
86
|
+
children: 'Heading without margins',
|
|
87
|
+
},
|
|
88
|
+
decorators: [
|
|
89
|
+
(Story) => (
|
|
90
|
+
<div>
|
|
91
|
+
<div
|
|
92
|
+
style={{
|
|
93
|
+
height: '16px',
|
|
94
|
+
backgroundColor: '#CA0007',
|
|
95
|
+
}}
|
|
96
|
+
/>
|
|
97
|
+
<Story />
|
|
98
|
+
<div
|
|
99
|
+
style={{
|
|
100
|
+
height: '16px',
|
|
101
|
+
backgroundColor: '#CA0007',
|
|
102
|
+
}}
|
|
103
|
+
/>
|
|
104
|
+
</div>
|
|
105
|
+
),
|
|
106
|
+
],
|
|
107
|
+
};
|