uikit-react-public 0.14.21 → 0.21.8
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/README.md +2 -2
- package/dist/components/Accordion/Accordion.Heading.d.ts +5 -4
- package/dist/components/Accordion/Accordion.Panel.d.ts +2 -2
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Accordion/Accordion.stories.d.ts +57 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/AppHeader/AppHeaderBottom.d.ts +1 -1
- package/dist/components/AppHeader/AppHeaderNav.d.ts +1 -1
- package/dist/components/AppHeader/AppHeaderTop.d.ts +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +107 -1
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts +3 -4
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +8 -3
- package/dist/components/Button/Button.stories.d.ts +17 -7
- package/dist/components/Button/style/buttonAccentStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonPrimaryDestructiveStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonPrimaryStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonPrimarySubtleStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonPrimaryWarningStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonSecondaryDestructiveStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonSecondaryStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonSecondarySubtleStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonTertiaryDestructiveStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonTertiaryNoPaddingStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonTertiaryStyle.d.ts +4 -0
- package/dist/components/Calendar/index.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/Datepicker/Datepicker.d.ts +1 -1
- package/dist/components/Datepicker/Datepicker.stories.d.ts +4 -3
- package/dist/components/Datepicker/Datepicker.types.d.ts +4 -5
- package/dist/components/Datepicker/subcomponents/CustomDatepicker.d.ts +4 -1
- package/dist/components/Datepicker/subcomponents/DatepickerInput.d.ts +15 -2
- package/dist/components/Datepicker/subcomponents/Panel.d.ts +1 -1
- package/dist/components/Datepicker/subcomponents/VisibleField.d.ts +6 -1
- package/dist/components/Datepicker/subcomponents/index.d.ts +0 -1
- package/dist/components/Datepicker/utils/index.d.ts +0 -1
- package/dist/components/Dialog/BaseDialog.d.ts +2 -1
- package/dist/components/Dialog/Dialog.d.ts +2 -0
- package/dist/components/FooterNew/BackToTop.d.ts +8 -0
- package/dist/components/FooterNew/Footer.d.ts +23 -0
- package/dist/components/FooterNew/FooterColumn.d.ts +8 -0
- package/dist/components/FooterNew/FooterLinks.d.ts +7 -0
- package/dist/components/FooterNew/FooterNavLink.d.ts +8 -0
- package/dist/components/FooterNew/LegalAndCopyright.d.ts +14 -0
- package/dist/components/FooterNew/LogoAddressAndSocial.d.ts +10 -0
- package/dist/components/FooterNew/SocialLink.d.ts +8 -0
- package/dist/components/FooterNew/index.d.ts +2 -0
- package/dist/components/Header/Header.d.ts +4 -1
- package/dist/components/Header/Header.stories.d.ts +40 -0
- package/dist/components/HeaderNew/Header.d.ts +18 -0
- package/dist/components/HeaderNew/HeaderBorder.d.ts +7 -0
- package/dist/components/HeaderNew/HeaderLogo.d.ts +9 -0
- package/dist/components/HeaderNew/HeaderMenuContainer.d.ts +7 -0
- package/dist/components/HeaderNew/HeaderTitle.d.ts +9 -0
- package/dist/components/HeaderNew/__tests__/Header.test.d.ts +1 -0
- package/dist/components/HeaderNew/constants.d.ts +3 -0
- package/dist/components/HeaderNew/index.d.ts +3 -0
- package/dist/components/HeadingNew/Heading.d.ts +13 -0
- package/dist/components/HeadingNew/index.d.ts +2 -0
- package/dist/components/Icon/svgImports.d.ts +7 -881
- package/dist/components/Link/BaseLink.d.ts +14 -5
- package/dist/components/Link/Link.d.ts +8 -3
- package/dist/components/Link/Link.stories.d.ts +3 -1
- package/dist/components/Main/Main.d.ts +21 -0
- package/dist/components/Main/Main.stories.d.ts +15 -0
- package/dist/components/Main/__tests__/Main.test.d.ts +1 -0
- package/dist/components/Main/index.d.ts +2 -0
- package/dist/components/MenuNew/Menu.context.d.ts +14 -0
- package/dist/components/MenuNew/Menu.d.ts +20 -0
- package/dist/components/MenuNew/MenuContent.d.ts +9 -0
- package/dist/components/MenuNew/MenuItem.d.ts +10 -0
- package/dist/components/MenuNew/MenuSection.d.ts +7 -0
- package/dist/components/MenuNew/index.d.ts +6 -0
- package/dist/components/MenuNew/trigger/ButtonMenuTrigger.d.ts +8 -0
- package/dist/components/MenuNew/trigger/IconMenuTrigger.d.ts +8 -0
- package/dist/components/NativeDatepicker/NativeDatepicker.d.ts +3 -0
- package/dist/components/NativeDatepicker/NativeDatepicker.stories.d.ts +36 -0
- package/dist/components/NativeDatepicker/NativeDatepicker.types.d.ts +10 -0
- package/dist/components/NativeDatepicker/index.d.ts +2 -0
- package/dist/components/{Datepicker → NativeDatepicker}/utils/dateToLocaleISOString/dateToLocaleISOString.d.ts +1 -1
- package/dist/components/NativeDatepicker/utils/dateToLocaleISOString/dateToLocaleISOString.test.d.ts +1 -0
- package/dist/components/NativeDatepicker/utils/index.d.ts +1 -0
- package/dist/components/Overlay/Overlay.stories.d.ts +12 -12
- package/dist/components/ParagraphNew/Paragraph.d.ts +13 -0
- package/dist/components/ParagraphNew/index.d.ts +4 -0
- package/dist/components/Select/Select.d.ts +2 -1
- package/dist/components/Select/Select.stories.d.ts +167 -3
- package/dist/components/Select/Select.types.d.ts +75 -19
- package/dist/components/Select/subcomponents/CustomOption.d.ts +1 -1
- package/dist/components/Select/subcomponents/CustomSelect.d.ts +3 -2
- package/dist/components/Select/subcomponents/FilterInput.d.ts +16 -0
- package/dist/components/Select/subcomponents/NativeSelect.d.ts +5 -1
- package/dist/components/Select/subcomponents/VisibleField.d.ts +6 -1
- package/dist/components/Select/subcomponents/index.d.ts +1 -0
- package/dist/components/Spinner/Spinner.d.ts +2 -0
- package/dist/components/StandaloneLink/StandaloneLink.d.ts +8 -5
- package/dist/components/StandaloneLink/StandaloneLink.stories.d.ts +3 -1
- package/dist/components/Table/Table.d.ts +3 -3
- package/dist/components/Table/Table.stories.d.ts +3 -3
- package/dist/components/Table/Table.types.d.ts +1 -0
- package/dist/components/Table/subcomponents/Cell/Cell.d.ts +5 -1
- package/dist/components/Table/subcomponents/Cell/Cell.stories.d.ts +15 -13
- package/dist/components/Table/subcomponents/Cell/CellContent.d.ts +5 -1
- package/dist/components/Table/subcomponents/HeadCell/HeadCell.d.ts +2 -1
- package/dist/components/Table/subcomponents/HeadCell/HeadCell.stories.d.ts +14 -13
- package/dist/components/Table/subcomponents/HeadCell/HeadCellContent.d.ts +2 -1
- package/dist/components/Table/subcomponents/__tests__/Row.test.d.ts +1 -0
- package/dist/components/UclLogoNew/UclLogo.d.ts +8 -0
- package/dist/components/UclLogoNew/index.d.ts +2 -0
- package/dist/components/WeekPicker/WeekPicker.d.ts +2 -2
- package/dist/components/WeekPicker/WeekPicker.stories.d.ts +41 -0
- package/dist/components/WeekPicker/WeekPicker.types.d.ts +16 -0
- package/dist/components/WeekPicker/index.d.ts +1 -0
- package/dist/components/WeekPicker/subcomponents/CustomDatepicker.d.ts +1 -1
- package/dist/components/index.d.ts +20 -0
- package/dist/hooks/useFocusTrap.d.ts +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +22204 -16719
- package/dist/theme/__tests__/fonts.test.d.ts +1 -0
- package/dist/theme/common/themeCommon.d.ts +904 -0
- package/dist/theme/fonts.d.ts +18 -0
- package/dist/theme/index.d.ts +6 -3
- package/dist/theme/light/lightColour.d.ts +126 -0
- package/dist/theme/light/lightTheme.d.ts +3 -0
- package/dist/theme/original/color.d.ts +166 -0
- package/dist/theme/original/defaultTheme.d.ts +1340 -0
- package/dist/theme/original/originalColourNewStructure.d.ts +126 -0
- package/dist/theme/useTheme.d.ts +2174 -0
- package/dist/utils/__tests__/announce.test.d.ts +1 -0
- package/dist/utils/addAlphaToHex.d.ts +5 -0
- package/dist/utils/announce.d.ts +6 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/scrollToTop.d.ts +2 -0
- package/lib/components/Accordion/Accordion.Heading.tsx +65 -34
- package/lib/components/Accordion/Accordion.Panel.tsx +11 -7
- package/lib/components/Accordion/Accordion.stories.tsx +139 -0
- package/lib/components/Accordion/Accordion.tsx +39 -31
- package/lib/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +15 -13
- package/lib/components/Accordion/index.ts +2 -0
- package/lib/components/Alert/Alert.stories.tsx +1 -1
- package/lib/components/Alert/Alert.tsx +12 -12
- package/lib/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +13 -39
- package/lib/components/AppHeader/AppHeader.tsx +6 -11
- package/lib/components/AppHeader/AppHeaderBottom.tsx +2 -3
- package/lib/components/AppHeader/AppHeaderNav.tsx +2 -3
- package/lib/components/AppHeader/AppHeaderTop.tsx +1 -1
- package/lib/components/AppHeader/__tests__/__snapshots__/AppHeader.test.tsx.snap +2 -2
- package/lib/components/AppMenu/__tests__/__snapshots__/AppMenu.test.tsx.snap +6 -19
- package/lib/components/Avatar/Avatar.mdx +117 -0
- package/lib/components/Avatar/Avatar.stories.tsx +110 -2
- package/lib/components/Badge/Badge.stories.tsx +1 -1
- package/lib/components/Blanket/Blanket.stories.tsx +1 -1
- package/lib/components/Breadcrumbs/Breadcrumb.tsx +26 -12
- package/lib/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
- package/lib/components/Breadcrumbs/__tests__/Breadcrumbs.test.tsx +9 -27
- package/lib/components/Breadcrumbs/__tests__/__snapshots__/Breadcrumbs.test.tsx.snap +24 -20
- package/lib/components/Button/Button.mdx +32 -279
- package/lib/components/Button/Button.stories.tsx +44 -51
- package/lib/components/Button/Button.tsx +166 -25
- package/lib/components/Button/__tests__/Button.test.tsx +49 -15
- package/lib/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +80 -73
- package/lib/components/Button/style/buttonAccentStyle.ts +53 -0
- package/lib/components/Button/style/buttonPrimaryDestructiveStyle.ts +55 -0
- package/lib/components/Button/style/buttonPrimaryStyle.ts +53 -0
- package/lib/components/Button/style/buttonPrimarySubtleStyle.ts +64 -0
- package/lib/components/Button/style/buttonPrimaryWarningStyle.ts +56 -0
- package/lib/components/Button/style/buttonSecondaryDestructiveStyle.ts +63 -0
- package/lib/components/Button/style/buttonSecondaryStyle.ts +62 -0
- package/lib/components/Button/style/buttonSecondarySubtleStyle.ts +72 -0
- package/lib/components/Button/style/buttonTertiaryDestructiveStyle.ts +65 -0
- package/lib/components/Button/style/buttonTertiaryNoPaddingStyle.ts +52 -0
- package/lib/components/Button/style/buttonTertiaryStyle.ts +62 -0
- package/lib/components/Calendar/Calendar.stories.tsx +1 -1
- package/lib/components/Calendar/Calendar.tsx +2 -2
- package/lib/components/Calendar/__tests__/Calendar.test.tsx +23 -15
- package/lib/components/Calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +99 -95
- package/lib/components/Calendar/index.ts +1 -5
- package/lib/components/Calendar/subcomponents/AcademicWeek.tsx +2 -1
- package/lib/components/Calendar/subcomponents/AcademicWeeks.tsx +1 -1
- package/lib/components/Calendar/subcomponents/ColumnHeading.tsx +2 -2
- package/lib/components/Calendar/subcomponents/Controls.tsx +1 -1
- package/lib/components/Calendar/subcomponents/Day.stories.tsx +1 -1
- package/lib/components/Calendar/subcomponents/Day.tsx +7 -9
- package/lib/components/Calendar/subcomponents/EventDot.tsx +3 -6
- package/lib/components/Calendar/subcomponents/index.ts +1 -1
- package/lib/components/Calendar/utils/getDatesForCalendarGrid/getDatesForCalendarGrid.ts +43 -11
- package/lib/components/Calendar/utils/normaliseMonth/normaliseMonth.test.ts +5 -5
- package/lib/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/lib/components/Checkbox/Checkbox.tsx +12 -10
- package/lib/components/Checkbox/__tests__/Checkbox.test.tsx +29 -0
- package/lib/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +4 -4
- package/lib/components/Datepicker/Datepicker.lld.md +108 -0
- package/lib/components/Datepicker/Datepicker.stories.tsx +44 -5
- package/lib/components/Datepicker/Datepicker.tsx +14 -36
- package/lib/components/Datepicker/Datepicker.types.ts +5 -14
- package/lib/components/Datepicker/__tests__/Datepicker.test.tsx +267 -8
- package/lib/components/Datepicker/__tests__/__snapshots__/Datepicker.test.tsx.snap +20 -42
- package/lib/components/Datepicker/subcomponents/CustomDatepicker.tsx +48 -5
- package/lib/components/Datepicker/subcomponents/DatepickerInput.tsx +30 -17
- package/lib/components/Datepicker/subcomponents/Panel.tsx +6 -2
- package/lib/components/Datepicker/subcomponents/VisibleField.tsx +46 -8
- package/lib/components/Datepicker/subcomponents/index.ts +0 -1
- package/lib/components/Datepicker/utils/index.ts +0 -1
- package/lib/components/Dialog/BaseDialog.tsx +13 -2
- package/lib/components/Dialog/Dialog.stories.tsx +1 -1
- package/lib/components/Dialog/Dialog.tsx +8 -1
- package/lib/components/Dialog/DialogBody.tsx +5 -1
- package/lib/components/Dialog/DialogHeader.tsx +2 -1
- package/lib/components/Divider/Divider.stories.tsx +1 -1
- package/lib/components/Divider/__tests__/__snapshots__/Breadcrumbs.test.tsx.snap +12 -12
- package/lib/components/FeedbackDialog/FeedbackDialog.stories.tsx +1 -1
- package/lib/components/FeedbackDialog/FeedbackDialog.tsx +4 -6
- package/lib/components/Field/CharacterCount.tsx +2 -2
- package/lib/components/Field/ErrorText.tsx +2 -1
- package/lib/components/Field/Field.stories.tsx +1 -1
- package/lib/components/Field/Field.tsx +1 -1
- package/lib/components/Field/HelperText.tsx +3 -1
- package/lib/components/Field/__tests__/Field.test.tsx +13 -0
- package/lib/components/FileInput/FileInput.stories.tsx +1 -1
- package/lib/components/FileInput/__tests__/__snapshots__/FileInput.test.tsx.snap +4 -20
- package/lib/components/Footer/Footer.stories.tsx +1 -1
- package/lib/components/Footer/__tests__/__snapshots__/Footer.test.tsx.snap +73 -82
- package/lib/components/FooterNew/BackToTop.tsx +83 -0
- package/lib/components/FooterNew/Footer.tsx +110 -0
- package/lib/components/FooterNew/FooterColumn.tsx +79 -0
- package/lib/components/FooterNew/FooterLinks.tsx +44 -0
- package/lib/components/FooterNew/FooterNavLink.tsx +63 -0
- package/lib/components/FooterNew/LegalAndCopyright.tsx +150 -0
- package/lib/components/FooterNew/LogoAddressAndSocial.tsx +154 -0
- package/lib/components/FooterNew/SocialLink.tsx +108 -0
- package/lib/components/FooterNew/__tests__/Footer.test.tsx +51 -0
- package/lib/components/FooterNew/__tests__/__snapshots__/Footer.test.tsx.snap +1107 -0
- package/lib/components/FooterNew/index.ts +2 -0
- package/lib/components/Header/Header.mdx +52 -0
- package/lib/components/Header/Header.stories.tsx +98 -0
- package/lib/components/Header/Header.tsx +51 -6
- package/lib/components/Header/__tests__/Header.test.tsx +17 -1
- package/lib/components/HeaderDraft/__tests__/__snapshots__/Header.test.tsx.snap +3 -2
- package/lib/components/HeaderNew/Header.tsx +93 -0
- package/lib/components/HeaderNew/HeaderBorder.tsx +55 -0
- package/lib/components/HeaderNew/HeaderLogo.tsx +70 -0
- package/lib/components/HeaderNew/HeaderMenuContainer.tsx +35 -0
- package/lib/components/HeaderNew/HeaderTitle.tsx +53 -0
- package/lib/components/HeaderNew/__tests__/Header.test.tsx +42 -0
- package/lib/components/HeaderNew/__tests__/__snapshots__/Header.test.tsx.snap +79 -0
- package/lib/components/HeaderNew/constants.ts +3 -0
- package/lib/components/HeaderNew/index.ts +7 -0
- package/lib/components/Heading/Heading.stories.tsx +1 -1
- package/lib/components/HeadingNew/Heading.tsx +208 -0
- package/lib/components/HeadingNew/index.ts +2 -0
- package/lib/components/Icon/Icon.stories.tsx +1 -1
- package/lib/components/Icon/__tests__/__snapshots__/Icon.test.tsx.snap +16 -12
- package/lib/components/Icon/svgImports.ts +318 -296
- package/lib/components/IconButton/IconButton.stories.tsx +1 -1
- package/lib/components/IconButton/IconButton.tsx +3 -4
- package/lib/components/IconButton/__tests__/__snapshots__/IconButton.test.tsx.snap +12 -9
- package/lib/components/Input/Input.stories.tsx +1 -1
- package/lib/components/Label/Label.stories.tsx +1 -1
- package/lib/components/Link/BaseLink.tsx +114 -71
- package/lib/components/Link/Link.stories.tsx +1 -1
- package/lib/components/Link/Link.tsx +120 -109
- package/lib/components/Link/__tests__/__snapshots__/link.test.tsx.snap +2 -2
- package/lib/components/Main/Main.stories.tsx +36 -0
- package/lib/components/Main/Main.tsx +46 -0
- package/lib/components/Main/__tests__/Main.test.tsx +80 -0
- package/lib/components/Main/__tests__/__snapshots__/Main.test.tsx.snap +33 -0
- package/lib/components/Main/index.ts +2 -0
- package/lib/components/MenuNew/Menu.context.tsx +149 -0
- package/lib/components/MenuNew/Menu.tsx +75 -0
- package/lib/components/MenuNew/MenuContent.tsx +140 -0
- package/lib/components/MenuNew/MenuItem.tsx +101 -0
- package/lib/components/MenuNew/MenuSection.tsx +47 -0
- package/lib/components/MenuNew/index.ts +8 -0
- package/lib/components/MenuNew/trigger/ButtonMenuTrigger.tsx +42 -0
- package/lib/components/MenuNew/trigger/IconMenuTrigger.tsx +40 -0
- package/lib/components/NativeDatepicker/NativeDatepicker.stories.tsx +100 -0
- package/lib/components/{Datepicker/subcomponents → NativeDatepicker}/NativeDatepicker.tsx +14 -15
- package/lib/components/NativeDatepicker/NativeDatepicker.types.ts +19 -0
- package/lib/components/NativeDatepicker/index.ts +2 -0
- package/lib/components/{Datepicker → NativeDatepicker}/utils/dateToLocaleISOString/dateToLocaleISOString.ts +1 -1
- package/lib/components/NativeDatepicker/utils/index.ts +1 -0
- package/lib/components/Pagination/Pagination.stories.tsx +1 -1
- package/lib/components/Pagination/PaginationControls.tsx +59 -17
- package/lib/components/Pagination/PaginationInfo.tsx +7 -4
- package/lib/components/Paragraph/Paragraph.stories.tsx +1 -1
- package/lib/components/ParagraphNew/Paragraph.tsx +200 -0
- package/lib/components/ParagraphNew/index.ts +6 -0
- package/lib/components/Radio/Radio.stories.tsx +1 -1
- package/lib/components/Radio/Radio.tsx +8 -8
- package/lib/components/Radio/__tests__/__snapshots__/Radio.test.tsx.snap +4 -4
- package/lib/components/Search/Search.stories.tsx +1 -1
- package/lib/components/Search/Search.tsx +4 -1
- package/lib/components/Search/__tests__/Search.test.tsx +19 -1
- package/lib/components/Search/__tests__/__snapshots__/Search.test.tsx.snap +12 -32
- package/lib/components/Select/Select.mdx +192 -0
- package/lib/components/Select/Select.stories.tsx +229 -48
- package/lib/components/Select/Select.tsx +50 -15
- package/lib/components/Select/Select.types.ts +99 -44
- package/lib/components/Select/__tests__/Select.test.tsx +698 -8
- package/lib/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +5 -4
- package/lib/components/Select/subcomponents/CustomOption.tsx +12 -4
- package/lib/components/Select/subcomponents/CustomSelect.tsx +411 -41
- package/lib/components/Select/subcomponents/FilterInput.tsx +90 -0
- package/lib/components/Select/subcomponents/NativeSelect.tsx +21 -17
- package/lib/components/Select/subcomponents/Panel.tsx +2 -2
- package/lib/components/Select/subcomponents/VisibleField.tsx +59 -6
- package/lib/components/Select/subcomponents/index.tsx +1 -0
- package/lib/components/Snackbar/Snackbar.stories.tsx +1 -1
- package/lib/components/Snackbar/__tests__/__snapshots__/Snackbar.test.tsx.snap +9 -15
- package/lib/components/Spinner/Spinner.stories.tsx +1 -1
- package/lib/components/Spinner/Spinner.tsx +24 -5
- package/lib/components/Spinner/__tests__/Spinner.test.tsx +35 -5
- package/lib/components/Spinner/__tests__/__snapshots__/Spinner.test.tsx.snap +40 -16
- package/lib/components/StandaloneLink/StandaloneLink.stories.tsx +1 -1
- package/lib/components/StandaloneLink/StandaloneLink.tsx +180 -163
- package/lib/components/StandaloneLink/__tests__/__snapshots__/StandaloneLink.test.tsx.snap +2 -2
- package/lib/components/Table/Table.stories.tsx +1 -1
- package/lib/components/Table/Table.tsx +2 -0
- package/lib/components/Table/Table.types.ts +1 -0
- package/lib/components/Table/__tests__/Table.test.tsx +19 -0
- package/lib/components/Table/__tests__/__snapshots__/Table.test.tsx.snap +7 -3
- package/lib/components/Table/subcomponents/Cell/Cell.stories.tsx +1 -1
- package/lib/components/Table/subcomponents/Cell/Cell.tsx +23 -2
- package/lib/components/Table/subcomponents/Cell/CellContent.tsx +12 -1
- package/lib/components/Table/subcomponents/Cell/__tests__/Cell.test.tsx +106 -0
- package/lib/components/Table/subcomponents/Cell/__tests__/__snapshots__/Cell.test.tsx.snap +4 -3
- package/lib/components/Table/subcomponents/HeadCell/HeadCell.stories.tsx +1 -1
- package/lib/components/Table/subcomponents/HeadCell/HeadCell.tsx +28 -6
- package/lib/components/Table/subcomponents/HeadCell/HeadCellContent.tsx +3 -0
- package/lib/components/Table/subcomponents/HeadCell/__tests__/HeadCell.test.tsx +221 -2
- package/lib/components/Table/subcomponents/HeadCell/__tests__/__snapshots__/HeadCell.test.tsx.snap +6 -4
- package/lib/components/Table/subcomponents/Row.tsx +2 -2
- package/lib/components/Table/subcomponents/SortIcon.tsx +1 -0
- package/lib/components/Table/subcomponents/__tests__/Row.test.tsx +59 -0
- package/lib/components/Tabs/Tab.tsx +3 -3
- package/lib/components/Tabs/Tabs.stories.tsx +1 -1
- package/lib/components/Tabs/Tabs.tsx +5 -3
- package/lib/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +4 -4
- package/lib/components/Textarea/Textarea.stories.tsx +1 -1
- package/lib/components/Timepicker/Timepicker.stories.tsx +1 -1
- package/lib/components/Timepicker/Timepicker.tsx +4 -0
- package/lib/components/Timepicker/__tests__/__snapshots__/Timepicker.test.tsx.snap +2 -2
- package/lib/components/Toggle/Toggle.stories.tsx +1 -1
- package/lib/components/Toggle/Toggle.tsx +5 -5
- package/lib/components/Toggle/ToggleHandle.tsx +2 -3
- package/lib/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/lib/components/Tooltip/Tooltip.tsx +2 -2
- package/lib/components/Tooltip/__tests__/__snapshots__/tooltip.test.tsx.snap +2 -2
- package/lib/components/UclLogoNew/UclLogo.tsx +42 -0
- package/lib/components/UclLogoNew/index.ts +2 -0
- package/lib/components/WeekPicker/WeekPicker.stories.tsx +145 -0
- package/lib/components/WeekPicker/WeekPicker.tsx +2 -2
- package/lib/components/WeekPicker/WeekPicker.types.ts +21 -0
- package/lib/components/WeekPicker/index.ts +1 -0
- package/lib/components/WeekPicker/subcomponents/CustomDatepicker.tsx +1 -1
- package/lib/components/common/Common.mdx +1 -2
- package/lib/components/index.ts +30 -3
- package/lib/hooks/useFocusTrap.ts +40 -4
- package/lib/index.ts +1 -0
- package/lib/theme/Colours.mdx +1 -1
- package/lib/theme/Theme.mdx +1 -1
- package/lib/theme/Typography.mdx +1 -1
- package/lib/theme/__tests__/fonts.test.ts +37 -0
- package/lib/theme/common/themeCommon.ts +515 -0
- package/lib/theme/fonts.ts +110 -0
- package/lib/theme/index.ts +6 -6
- package/lib/theme/light/lightColour.ts +232 -0
- package/lib/theme/light/lightTheme.ts +37 -0
- package/lib/theme/{defaultTheme.ts → original/color.ts} +17 -199
- package/lib/theme/original/defaultTheme.ts +207 -0
- package/lib/theme/original/originalColourNewStructure.ts +185 -0
- package/lib/theme/useTheme.tsx +72 -15
- package/lib/types/assets.d.ts +10 -0
- package/lib/utils/__tests__/announce.test.ts +121 -0
- package/lib/utils/addAlphaToHex.ts +29 -0
- package/lib/utils/announce.ts +134 -0
- package/lib/utils/index.ts +1 -0
- package/lib/utils/scrollToTop.ts +5 -0
- package/package.json +11 -9
- package/dist/components/Button/buttonPrimaryStyle.d.ts +0 -4
- package/dist/components/Button/buttonSecondaryStyle.d.ts +0 -4
- package/dist/components/Button/buttonTertiaryStyle.d.ts +0 -4
- package/dist/components/Datepicker/subcomponents/NativeDatepicker.d.ts +0 -6
- package/dist/theme/defaultTheme.d.ts +0 -274
- package/lib/components/Accordion/Accordion.stories.tsx.NOT_READY +0 -93
- package/lib/components/Button/buttonPrimaryStyle.ts +0 -62
- package/lib/components/Button/buttonSecondaryStyle.ts +0 -65
- package/lib/components/Button/buttonTertiaryStyle.ts +0 -54
- /package/dist/components/{Datepicker/utils/dateToLocaleISOString/dateToLocaleISOString.test.d.ts → FooterNew/__tests__/Footer.test.d.ts} +0 -0
- /package/lib/components/{Datepicker → NativeDatepicker}/utils/dateToLocaleISOString/dateToLocaleISOString.test.ts +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
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-7smbab"
|
|
6
|
+
data-testid="ucl-uikit-header"
|
|
7
|
+
>
|
|
8
|
+
<div
|
|
9
|
+
class="ucl-uikit-header__border css-miu54s"
|
|
10
|
+
data-test="ucl-uikit-header__border"
|
|
11
|
+
>
|
|
12
|
+
<div
|
|
13
|
+
class="css-1l552cj"
|
|
14
|
+
/>
|
|
15
|
+
</div>
|
|
16
|
+
<svg
|
|
17
|
+
class="ucl-uikit-header__logo css-h3fm3u"
|
|
18
|
+
data-test="ucl-uikit-header__logo"
|
|
19
|
+
fill="none"
|
|
20
|
+
focusable="false"
|
|
21
|
+
viewBox="0 0 1394 391"
|
|
22
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
23
|
+
>
|
|
24
|
+
<path
|
|
25
|
+
d="M866.86 257.16V10.54H734.29v125.09h-.03C714.7 63.47 648.56 0 553.74 0S381.7 64.9 361.67 146.92h-.03V10.54H229.91v195.87c0 19.3-2.52 31.04-12.59 41.95s-23.49 15.1-36.08 15.1-26.01-4.2-36.08-15.1c-10.07-10.91-12.59-22.65-12.59-41.95V10.54H0v196.71c0 52.86 10.91 95.65 46.15 130.89C73.84 365.83 118.31 391 178.72 391c52.86 0 99.01-18.46 132.57-54.54 28.44-30.11 43.48-67.53 48.36-100.98h.03C377.14 322.25 454.72 391 553.73 391c87.28 0 158.17-56.74 180.55-135.7v124.49h246.68V257.15H866.85zm-254.59-31.44c-8.39 22.65-31.67 37.76-58.52 37.76-37.76 0-65.66-29.37-65.66-67.96s27.9-67.96 65.66-67.96c26.85 0 50.13 15.1 58.52 37.76h122.02v60.41H612.27z"
|
|
26
|
+
fill="#361a54"
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
d="M1393.25 257.11h-42.93v122.64h42.93zm-68.7 0h-39.49v122.64h39.49zm-68.7 0h-36.06v122.64h36.06zm-68.7 0h-32.62v122.64h32.62zm-68.7 0h-29.19v122.64h29.19zm-68.69 0H1024v122.64h25.76zm145.35-179.29c-22.41 5.81-39.12 25.73-40.12 49.72h-.06v14.45h-9.92v23.27L1024 204.58V10.5h369.25v194.08l-121.01-39.32v-23.27h-9.92v-14.45h-.06c-1-23.98-17.71-43.9-40.12-49.72l-9.3-34.7h-8.45l-9.3 34.7z"
|
|
30
|
+
fill="#9a3bff"
|
|
31
|
+
/>
|
|
32
|
+
</svg>
|
|
33
|
+
<div
|
|
34
|
+
class="ucl-uikit-header__title css-118cw9t"
|
|
35
|
+
data-test="ucl-uikit-header__title"
|
|
36
|
+
>
|
|
37
|
+
LIDS
|
|
38
|
+
</div>
|
|
39
|
+
</header>
|
|
40
|
+
`;
|
|
41
|
+
|
|
42
|
+
exports[`Header > snapshot: variant=breadcrumbs 1`] = `
|
|
43
|
+
<header
|
|
44
|
+
class="ucl-uikit-header css-7smbab"
|
|
45
|
+
data-testid="ucl-uikit-header"
|
|
46
|
+
>
|
|
47
|
+
<div
|
|
48
|
+
class="ucl-uikit-header__border css-miu54s"
|
|
49
|
+
data-test="ucl-uikit-header__border"
|
|
50
|
+
>
|
|
51
|
+
<div
|
|
52
|
+
class="css-1l552cj"
|
|
53
|
+
/>
|
|
54
|
+
</div>
|
|
55
|
+
<svg
|
|
56
|
+
class="ucl-uikit-header__logo css-h3fm3u"
|
|
57
|
+
data-test="ucl-uikit-header__logo"
|
|
58
|
+
fill="none"
|
|
59
|
+
focusable="false"
|
|
60
|
+
viewBox="0 0 1394 391"
|
|
61
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
62
|
+
>
|
|
63
|
+
<path
|
|
64
|
+
d="M866.86 257.16V10.54H734.29v125.09h-.03C714.7 63.47 648.56 0 553.74 0S381.7 64.9 361.67 146.92h-.03V10.54H229.91v195.87c0 19.3-2.52 31.04-12.59 41.95s-23.49 15.1-36.08 15.1-26.01-4.2-36.08-15.1c-10.07-10.91-12.59-22.65-12.59-41.95V10.54H0v196.71c0 52.86 10.91 95.65 46.15 130.89C73.84 365.83 118.31 391 178.72 391c52.86 0 99.01-18.46 132.57-54.54 28.44-30.11 43.48-67.53 48.36-100.98h.03C377.14 322.25 454.72 391 553.73 391c87.28 0 158.17-56.74 180.55-135.7v124.49h246.68V257.15H866.85zm-254.59-31.44c-8.39 22.65-31.67 37.76-58.52 37.76-37.76 0-65.66-29.37-65.66-67.96s27.9-67.96 65.66-67.96c26.85 0 50.13 15.1 58.52 37.76h122.02v60.41H612.27z"
|
|
65
|
+
fill="#361a54"
|
|
66
|
+
/>
|
|
67
|
+
<path
|
|
68
|
+
d="M1393.25 257.11h-42.93v122.64h42.93zm-68.7 0h-39.49v122.64h39.49zm-68.7 0h-36.06v122.64h36.06zm-68.7 0h-32.62v122.64h32.62zm-68.7 0h-29.19v122.64h29.19zm-68.69 0H1024v122.64h25.76zm145.35-179.29c-22.41 5.81-39.12 25.73-40.12 49.72h-.06v14.45h-9.92v23.27L1024 204.58V10.5h369.25v194.08l-121.01-39.32v-23.27h-9.92v-14.45h-.06c-1-23.98-17.71-43.9-40.12-49.72l-9.3-34.7h-8.45l-9.3 34.7z"
|
|
69
|
+
fill="#9a3bff"
|
|
70
|
+
/>
|
|
71
|
+
</svg>
|
|
72
|
+
<div
|
|
73
|
+
class="ucl-uikit-header__title css-118cw9t"
|
|
74
|
+
data-test="ucl-uikit-header__title"
|
|
75
|
+
>
|
|
76
|
+
LIDS
|
|
77
|
+
</div>
|
|
78
|
+
</header>
|
|
79
|
+
`;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { memo, HTMLAttributes, JSX } from 'react';
|
|
2
|
+
import { css, cx } from '@emotion/css';
|
|
3
|
+
import useTheme from '../../theme/useTheme';
|
|
4
|
+
import marginsStyle, { MarginProps } from '../common/marginsStyle';
|
|
5
|
+
|
|
6
|
+
export const NAME = 'ucl-uikit-heading';
|
|
7
|
+
|
|
8
|
+
export type HeadingLevel = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
9
|
+
|
|
10
|
+
export interface HeadingBaseProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
11
|
+
level?: HeadingLevel;
|
|
12
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span';
|
|
13
|
+
testId?: string;
|
|
14
|
+
ref?: React.Ref<HTMLHeadingElement>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type HeadingProps = HeadingBaseProps & MarginProps;
|
|
18
|
+
|
|
19
|
+
const Heading = memo(
|
|
20
|
+
({
|
|
21
|
+
level = 'md',
|
|
22
|
+
as,
|
|
23
|
+
testId = NAME,
|
|
24
|
+
className,
|
|
25
|
+
ref,
|
|
26
|
+
...props
|
|
27
|
+
}: HeadingProps) => {
|
|
28
|
+
const [theme] = useTheme();
|
|
29
|
+
|
|
30
|
+
const {
|
|
31
|
+
typography: {
|
|
32
|
+
heading: { xxl, xl, lg, md, sm, xs },
|
|
33
|
+
},
|
|
34
|
+
} = theme;
|
|
35
|
+
|
|
36
|
+
const defaultHeadingTag =
|
|
37
|
+
level === 'xxl'
|
|
38
|
+
? 'h1'
|
|
39
|
+
: level === 'xl'
|
|
40
|
+
? 'h2'
|
|
41
|
+
: level === 'lg'
|
|
42
|
+
? 'h3'
|
|
43
|
+
: level === 'md'
|
|
44
|
+
? 'h4'
|
|
45
|
+
: level === 'sm'
|
|
46
|
+
? 'h5'
|
|
47
|
+
: 'h6';
|
|
48
|
+
|
|
49
|
+
const baseStyle = css`
|
|
50
|
+
font-family: ${md.md.fontFamily};
|
|
51
|
+
font-feature-settings: ${md.md.fontSettings};
|
|
52
|
+
color: ${theme.colour.text.default};
|
|
53
|
+
margin: 0;
|
|
54
|
+
`;
|
|
55
|
+
|
|
56
|
+
const levelXxlStyle = css`
|
|
57
|
+
font-size: ${xxl.sm.fontSize}px;
|
|
58
|
+
font-weight: ${xxl.sm.fontWeight};
|
|
59
|
+
line-height: ${xxl.sm.lineHeight}%;
|
|
60
|
+
@media screen and (min-width: ${theme.breakpoints.tablet}px) {
|
|
61
|
+
font-size: ${xxl.md.fontSize}px;
|
|
62
|
+
font-weight: ${xxl.md.fontWeight};
|
|
63
|
+
line-height: ${xxl.md.lineHeight}%;
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
|
|
67
|
+
const levelXlStyle = css`
|
|
68
|
+
font-size: ${xl.sm.fontSize}px;
|
|
69
|
+
font-weight: ${xl.sm.fontWeight};
|
|
70
|
+
line-height: ${xl.sm.lineHeight}%;
|
|
71
|
+
@media screen and (min-width: ${theme.breakpoints.tablet}px) {
|
|
72
|
+
font-size: ${xl.md.fontSize}px;
|
|
73
|
+
font-weight: ${xl.md.fontWeight};
|
|
74
|
+
line-height: ${xl.md.lineHeight}%;
|
|
75
|
+
}
|
|
76
|
+
`;
|
|
77
|
+
|
|
78
|
+
const levelLgStyle = css`
|
|
79
|
+
font-size: ${lg.sm.fontSize}px;
|
|
80
|
+
font-weight: ${lg.sm.fontWeight};
|
|
81
|
+
line-height: ${lg.sm.lineHeight}%;
|
|
82
|
+
@media screen and (min-width: ${theme.breakpoints.tablet}px) {
|
|
83
|
+
font-size: ${lg.md.fontSize}px;
|
|
84
|
+
font-weight: ${lg.md.fontWeight};
|
|
85
|
+
line-height: ${lg.md.lineHeight}%;
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
88
|
+
|
|
89
|
+
const levelMdStyle = css`
|
|
90
|
+
font-size: ${md.sm.fontSize}px;
|
|
91
|
+
font-weight: ${md.sm.fontWeight};
|
|
92
|
+
line-height: ${md.sm.lineHeight}%;
|
|
93
|
+
@media screen and (min-width: ${theme.breakpoints.tablet}px) {
|
|
94
|
+
font-size: ${md.md.fontSize}px;
|
|
95
|
+
font-weight: ${md.md.fontWeight};
|
|
96
|
+
line-height: ${md.md.lineHeight}%;
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
|
|
100
|
+
const levelSmStyle = css`
|
|
101
|
+
font-size: ${sm.sm.fontSize}px;
|
|
102
|
+
font-weight: ${sm.sm.fontWeight};
|
|
103
|
+
line-height: ${sm.sm.lineHeight}%;
|
|
104
|
+
@media screen and (min-width: ${theme.breakpoints.tablet}px) {
|
|
105
|
+
font-size: ${sm.md.fontSize}px;
|
|
106
|
+
font-weight: ${sm.md.fontWeight};
|
|
107
|
+
line-height: ${sm.md.lineHeight}%;
|
|
108
|
+
}
|
|
109
|
+
`;
|
|
110
|
+
|
|
111
|
+
const levelXsStyle = css`
|
|
112
|
+
font-size: ${xs.sm.fontSize}px;
|
|
113
|
+
font-weight: ${xs.sm.fontWeight};
|
|
114
|
+
line-height: ${xs.sm.lineHeight}%;
|
|
115
|
+
@media screen and (min-width: ${theme.breakpoints.tablet}px) {
|
|
116
|
+
font-size: ${xs.md.fontSize}px;
|
|
117
|
+
font-weight: ${xs.md.fontWeight};
|
|
118
|
+
line-height: ${xs.md.lineHeight}%;
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
|
|
122
|
+
const style = cx(
|
|
123
|
+
NAME,
|
|
124
|
+
baseStyle,
|
|
125
|
+
level === 'xxl' && levelXxlStyle,
|
|
126
|
+
level === 'xl' && levelXlStyle,
|
|
127
|
+
level === 'lg' && levelLgStyle,
|
|
128
|
+
level === 'md' && levelMdStyle,
|
|
129
|
+
level === 'sm' && levelSmStyle,
|
|
130
|
+
level === 'xs' && levelXsStyle,
|
|
131
|
+
marginsStyle(props, theme),
|
|
132
|
+
className
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
const headingTag = (as || defaultHeadingTag) as keyof JSX.IntrinsicElements;
|
|
136
|
+
|
|
137
|
+
return (
|
|
138
|
+
<>
|
|
139
|
+
{headingTag === 'h1' && (
|
|
140
|
+
<h1
|
|
141
|
+
ref={ref}
|
|
142
|
+
className={style}
|
|
143
|
+
data-testid={testId}
|
|
144
|
+
{...props}
|
|
145
|
+
/>
|
|
146
|
+
)}
|
|
147
|
+
{headingTag === 'h2' && (
|
|
148
|
+
<h2
|
|
149
|
+
ref={ref}
|
|
150
|
+
className={style}
|
|
151
|
+
data-testid={testId}
|
|
152
|
+
{...props}
|
|
153
|
+
/>
|
|
154
|
+
)}
|
|
155
|
+
{headingTag === 'h3' && (
|
|
156
|
+
<h3
|
|
157
|
+
ref={ref}
|
|
158
|
+
className={style}
|
|
159
|
+
data-testid={testId}
|
|
160
|
+
{...props}
|
|
161
|
+
/>
|
|
162
|
+
)}
|
|
163
|
+
{headingTag === 'h4' && (
|
|
164
|
+
<h4
|
|
165
|
+
ref={ref}
|
|
166
|
+
className={style}
|
|
167
|
+
data-testid={testId}
|
|
168
|
+
{...props}
|
|
169
|
+
/>
|
|
170
|
+
)}
|
|
171
|
+
{headingTag === 'h5' && (
|
|
172
|
+
<h5
|
|
173
|
+
ref={ref}
|
|
174
|
+
className={style}
|
|
175
|
+
data-testid={testId}
|
|
176
|
+
{...props}
|
|
177
|
+
/>
|
|
178
|
+
)}
|
|
179
|
+
{headingTag === 'h6' && (
|
|
180
|
+
<h6
|
|
181
|
+
ref={ref}
|
|
182
|
+
className={style}
|
|
183
|
+
data-testid={testId}
|
|
184
|
+
{...props}
|
|
185
|
+
/>
|
|
186
|
+
)}
|
|
187
|
+
{headingTag === 'span' && (
|
|
188
|
+
<span
|
|
189
|
+
ref={ref as React.Ref<HTMLSpanElement>}
|
|
190
|
+
className={style}
|
|
191
|
+
data-testid={testId}
|
|
192
|
+
{...props}
|
|
193
|
+
/>
|
|
194
|
+
)}
|
|
195
|
+
{headingTag === 'div' && (
|
|
196
|
+
<div
|
|
197
|
+
ref={ref as React.Ref<HTMLDivElement>}
|
|
198
|
+
className={style}
|
|
199
|
+
data-testid={testId}
|
|
200
|
+
{...props}
|
|
201
|
+
/>
|
|
202
|
+
)}
|
|
203
|
+
</>
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
|
|
208
|
+
export default Heading;
|
|
@@ -5,11 +5,12 @@ exports[`Icon > Snapshot: title prop 1`] = `
|
|
|
5
5
|
class="ucl-uikit-icon css-148hpxb"
|
|
6
6
|
data-testid="ucl-uikit-icon"
|
|
7
7
|
fill="none"
|
|
8
|
+
focusable="false"
|
|
8
9
|
height="24"
|
|
9
10
|
stroke="currentColor"
|
|
10
11
|
stroke-linecap="round"
|
|
11
12
|
stroke-linejoin="round"
|
|
12
|
-
stroke-width="
|
|
13
|
+
stroke-width="2"
|
|
13
14
|
viewBox="0 0 24 24"
|
|
14
15
|
width="24"
|
|
15
16
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -17,8 +18,8 @@ exports[`Icon > Snapshot: title prop 1`] = `
|
|
|
17
18
|
<title>
|
|
18
19
|
Custom Title
|
|
19
20
|
</title>
|
|
20
|
-
<
|
|
21
|
-
|
|
21
|
+
<path
|
|
22
|
+
d="M20 6 9 17l-5-5"
|
|
22
23
|
/>
|
|
23
24
|
</svg>
|
|
24
25
|
`;
|
|
@@ -28,17 +29,18 @@ exports[`Icon > snapshot: className prop 1`] = `
|
|
|
28
29
|
class="ucl-uikit-icon css-148hpxb a-class-name"
|
|
29
30
|
data-testid="ucl-uikit-icon"
|
|
30
31
|
fill="none"
|
|
32
|
+
focusable="false"
|
|
31
33
|
height="24"
|
|
32
34
|
stroke="currentColor"
|
|
33
35
|
stroke-linecap="round"
|
|
34
36
|
stroke-linejoin="round"
|
|
35
|
-
stroke-width="
|
|
37
|
+
stroke-width="2"
|
|
36
38
|
viewBox="0 0 24 24"
|
|
37
39
|
width="24"
|
|
38
40
|
xmlns="http://www.w3.org/2000/svg"
|
|
39
41
|
>
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
+
<path
|
|
43
|
+
d="M20 6 9 17l-5-5"
|
|
42
44
|
/>
|
|
43
45
|
</svg>
|
|
44
46
|
`;
|
|
@@ -48,17 +50,18 @@ exports[`Icon > snapshot: no props 1`] = `
|
|
|
48
50
|
class="ucl-uikit-icon css-148hpxb"
|
|
49
51
|
data-testid="ucl-uikit-icon"
|
|
50
52
|
fill="none"
|
|
53
|
+
focusable="false"
|
|
51
54
|
height="24"
|
|
52
55
|
stroke="currentColor"
|
|
53
56
|
stroke-linecap="round"
|
|
54
57
|
stroke-linejoin="round"
|
|
55
|
-
stroke-width="
|
|
58
|
+
stroke-width="2"
|
|
56
59
|
viewBox="0 0 24 24"
|
|
57
60
|
width="24"
|
|
58
61
|
xmlns="http://www.w3.org/2000/svg"
|
|
59
62
|
>
|
|
60
|
-
<
|
|
61
|
-
|
|
63
|
+
<path
|
|
64
|
+
d="M20 6 9 17l-5-5"
|
|
62
65
|
/>
|
|
63
66
|
</svg>
|
|
64
67
|
`;
|
|
@@ -68,17 +71,18 @@ exports[`Icon > snapshot: size prop 1`] = `
|
|
|
68
71
|
class="ucl-uikit-icon css-148hpxb"
|
|
69
72
|
data-testid="ucl-uikit-icon"
|
|
70
73
|
fill="none"
|
|
74
|
+
focusable="false"
|
|
71
75
|
height="32"
|
|
72
76
|
stroke="currentColor"
|
|
73
77
|
stroke-linecap="round"
|
|
74
78
|
stroke-linejoin="round"
|
|
75
|
-
stroke-width="
|
|
79
|
+
stroke-width="2"
|
|
76
80
|
viewBox="0 0 24 24"
|
|
77
81
|
width="32"
|
|
78
82
|
xmlns="http://www.w3.org/2000/svg"
|
|
79
83
|
>
|
|
80
|
-
<
|
|
81
|
-
|
|
84
|
+
<path
|
|
85
|
+
d="M20 6 9 17l-5-5"
|
|
82
86
|
/>
|
|
83
87
|
</svg>
|
|
84
88
|
`;
|