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
|
@@ -1,298 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import AlertCircle from './svgs/AlertCircleSvg';
|
|
4
|
-
import AlertOctagon from './svgs/AlertOctagonSvg';
|
|
5
|
-
import AlertTriangle from './svgs/AlertTriangleSvg';
|
|
6
|
-
import AlignCenter from './svgs/AlignCenterSvg';
|
|
7
|
-
import AlignJustify from './svgs/AlignJustifySvg';
|
|
8
|
-
import AlignLeft from './svgs/AlignLeftSvg';
|
|
9
|
-
import AlignRight from './svgs/AlignRightSvg';
|
|
10
|
-
import Anchor from './svgs/AnchorSvg';
|
|
11
|
-
import Aperture from './svgs/ApertureSvg';
|
|
12
|
-
import Archive from './svgs/ArchiveSvg';
|
|
13
|
-
import ArrowDownCircle from './svgs/ArrowDownCircleSvg';
|
|
14
|
-
import ArrowDownLeft from './svgs/ArrowDownLeftSvg';
|
|
15
|
-
import ArrowDownRight from './svgs/ArrowDownRightSvg';
|
|
16
|
-
import ArrowDown from './svgs/ArrowDownSvg';
|
|
17
|
-
import ArrowLeftCircle from './svgs/ArrowLeftCircleSvg';
|
|
18
|
-
import ArrowLeft from './svgs/ArrowLeftSvg';
|
|
19
|
-
import ArrowRightCircle from './svgs/ArrowRightCircleSvg';
|
|
20
|
-
import ArrowRight from './svgs/ArrowRightSvg';
|
|
21
|
-
import ArrowUpCircle from './svgs/ArrowUpCircleSvg';
|
|
22
|
-
import ArrowUpLeft from './svgs/ArrowUpLeftSvg';
|
|
23
|
-
import ArrowUpRight from './svgs/ArrowUpRightSvg';
|
|
24
|
-
import ArrowUp from './svgs/ArrowUpSvg';
|
|
25
|
-
import AtSign from './svgs/AtSignSvg';
|
|
26
|
-
import Award from './svgs/AwardSvg';
|
|
27
|
-
import BarChart2 from './svgs/BarChart2Svg';
|
|
28
|
-
import BarChart from './svgs/BarChartSvg';
|
|
29
|
-
import BatteryCharging from './svgs/BatteryChargingSvg';
|
|
30
|
-
import Battery from './svgs/BatterySvg';
|
|
31
|
-
import BellOff from './svgs/BellOffSvg';
|
|
32
|
-
import Bell from './svgs/BellSvg';
|
|
33
|
-
import Bluetooth from './svgs/BluetoothSvg';
|
|
34
|
-
import Bold from './svgs/BoldSvg';
|
|
35
|
-
import BookOpen from './svgs/BookOpenSvg';
|
|
36
|
-
import Book from './svgs/BookSvg';
|
|
37
|
-
import Bookmark from './svgs/BookmarkSvg';
|
|
38
|
-
import Box from './svgs/BoxSvg';
|
|
39
|
-
import Briefcase from './svgs/BriefcaseSvg';
|
|
40
|
-
import Calendar from './svgs/CalendarSvg';
|
|
41
|
-
import CameraOff from './svgs/CameraOffSvg';
|
|
42
|
-
import Camera from './svgs/CameraSvg';
|
|
43
|
-
import Cast from './svgs/CastSvg';
|
|
44
|
-
import CheckCircle from './svgs/CheckCircleSvg';
|
|
45
|
-
import CheckSquare from './svgs/CheckSquareSvg';
|
|
46
|
-
import Check from './svgs/CheckSvg';
|
|
47
|
-
import ChevronDown from './svgs/ChevronDownSvg';
|
|
48
|
-
import ChevronLeft from './svgs/ChevronLeftSvg';
|
|
49
|
-
import ChevronRight from './svgs/ChevronRightSvg';
|
|
50
|
-
import ChevronUp from './svgs/ChevronUpSvg';
|
|
51
|
-
import ChevronsDown from './svgs/ChevronsDownSvg';
|
|
52
|
-
import ChevronsLeft from './svgs/ChevronsLeftSvg';
|
|
53
|
-
import ChevronsRight from './svgs/ChevronsRightSvg';
|
|
54
|
-
import ChevronsUp from './svgs/ChevronsUpSvg';
|
|
55
|
-
import Chrome from './svgs/ChromeSvg';
|
|
56
|
-
import Circle from './svgs/CircleSvg';
|
|
57
|
-
import Clipboard from './svgs/ClipboardSvg';
|
|
58
|
-
import Clock from './svgs/ClockSvg';
|
|
59
|
-
import CloudDrizzle from './svgs/CloudDrizzleSvg';
|
|
60
|
-
import CloudLightning from './svgs/CloudLightningSvg';
|
|
61
|
-
import CloudOff from './svgs/CloudOffSvg';
|
|
62
|
-
import CloudRain from './svgs/CloudRainSvg';
|
|
63
|
-
import CloudSnow from './svgs/CloudSnowSvg';
|
|
64
|
-
import Cloud from './svgs/CloudSvg';
|
|
65
|
-
import Code from './svgs/CodeSvg';
|
|
66
|
-
import Codepen from './svgs/CodepenSvg';
|
|
67
|
-
import Codesandbox from './svgs/CodesandboxSvg';
|
|
68
|
-
import Coffee from './svgs/CoffeeSvg';
|
|
69
|
-
import Columns from './svgs/ColumnsSvg';
|
|
70
|
-
import Command from './svgs/CommandSvg';
|
|
71
|
-
import Compass from './svgs/CompassSvg';
|
|
72
|
-
import Copy from './svgs/CopySvg';
|
|
73
|
-
import CornerDownLeft from './svgs/CornerDownLeftSvg';
|
|
74
|
-
import CornerDownRight from './svgs/CornerDownRightSvg';
|
|
75
|
-
import CornerLeftDown from './svgs/CornerLeftDownSvg';
|
|
76
|
-
import CornerLeftUp from './svgs/CornerLeftUpSvg';
|
|
77
|
-
import CornerRightDown from './svgs/CornerRightDownSvg';
|
|
78
|
-
import CornerRightUp from './svgs/CornerRightUpSvg';
|
|
79
|
-
import CornerUpLeft from './svgs/CornerUpLeftSvg';
|
|
80
|
-
import CornerUpRight from './svgs/CornerUpRightSvg';
|
|
81
|
-
import Cpu from './svgs/CpuSvg';
|
|
82
|
-
import CreditCard from './svgs/CreditCardSvg';
|
|
83
|
-
import Crop from './svgs/CropSvg';
|
|
84
|
-
import Crosshair from './svgs/CrosshairSvg';
|
|
85
|
-
import Database from './svgs/DatabaseSvg';
|
|
86
|
-
import Delete from './svgs/DeleteSvg';
|
|
87
|
-
import Disc from './svgs/DiscSvg';
|
|
88
|
-
import DivideCircle from './svgs/DivideCircleSvg';
|
|
89
|
-
import DivideSquare from './svgs/DivideSquareSvg';
|
|
90
|
-
import Divide from './svgs/DivideSvg';
|
|
91
|
-
import DollarSign from './svgs/DollarSignSvg';
|
|
92
|
-
import DownloadCloud from './svgs/DownloadCloudSvg';
|
|
93
|
-
import Download from './svgs/DownloadSvg';
|
|
94
|
-
import Dribbble from './svgs/DribbbleSvg';
|
|
95
|
-
import Droplet from './svgs/DropletSvg';
|
|
96
|
-
import Edit2 from './svgs/Edit2Svg';
|
|
97
|
-
import Edit3 from './svgs/Edit3Svg';
|
|
98
|
-
import Edit from './svgs/EditSvg';
|
|
99
|
-
import ExternalLink from './svgs/ExternalLinkSvg';
|
|
100
|
-
import EyeOff from './svgs/EyeOffSvg';
|
|
101
|
-
import Eye from './svgs/EyeSvg';
|
|
102
|
-
|
|
103
|
-
import FastForward from './svgs/FastForwardSvg';
|
|
104
|
-
import Feather from './svgs/FeatherSvg';
|
|
105
|
-
import Figma from './svgs/FigmaSvg';
|
|
106
|
-
import FileMinus from './svgs/FileMinusSvg';
|
|
107
|
-
import FilePlus from './svgs/FilePlusSvg';
|
|
108
|
-
import FileText from './svgs/FileTextSvg';
|
|
109
|
-
import File from './svgs/FileSvg';
|
|
110
|
-
import Film from './svgs/FilmSvg';
|
|
111
|
-
import Filter from './svgs/FilterSvg';
|
|
112
|
-
import Flag from './svgs/FlagSvg';
|
|
113
|
-
import FolderMinus from './svgs/FolderMinusSvg';
|
|
114
|
-
import FolderPlus from './svgs/FolderPlusSvg';
|
|
115
|
-
import Folder from './svgs/FolderSvg';
|
|
116
|
-
import Framer from './svgs/FramerSvg';
|
|
117
|
-
import Frown from './svgs/FrownSvg';
|
|
118
|
-
import Gift from './svgs/GiftSvg';
|
|
119
|
-
import GitBranch from './svgs/GitBranchSvg';
|
|
120
|
-
import GitCommit from './svgs/GitCommitSvg';
|
|
121
|
-
import GitMerge from './svgs/GitMergeSvg';
|
|
122
|
-
import GitPullRequest from './svgs/GitPullRequestSvg';
|
|
123
|
-
import Github from './svgs/GithubSvg';
|
|
124
|
-
import Gitlab from './svgs/GitlabSvg';
|
|
125
|
-
import Globe from './svgs/GlobeSvg';
|
|
126
|
-
import Grid from './svgs/GridSvg';
|
|
127
|
-
import HardDrive from './svgs/HardDriveSvg';
|
|
128
|
-
import Hash from './svgs/HashSvg';
|
|
129
|
-
import Headphones from './svgs/HeadphonesSvg';
|
|
130
|
-
import Heart from './svgs/HeartSvg';
|
|
131
|
-
import HelpCircle from './svgs/HelpCircleSvg';
|
|
132
|
-
import Hexagon from './svgs/HexagonSvg';
|
|
133
|
-
import Home from './svgs/HomeSvg';
|
|
134
|
-
import Image from './svgs/ImageSvg';
|
|
135
|
-
import Inbox from './svgs/InboxSvg';
|
|
136
|
-
import Info from './svgs/InfoSvg';
|
|
137
|
-
|
|
138
|
-
import Italic from './svgs/ItalicSvg';
|
|
139
|
-
import Key from './svgs/KeySvg';
|
|
140
|
-
import Layers from './svgs/LayersSvg';
|
|
141
|
-
import Layout from './svgs/LayoutSvg';
|
|
142
|
-
import LifeBuoy from './svgs/LifeBuoySvg';
|
|
143
|
-
import Link2 from './svgs/Link2Svg';
|
|
144
|
-
import Link from './svgs/LinkSvg';
|
|
145
|
-
import Linkedin from './svgs/LinkedinSvg';
|
|
146
|
-
import List from './svgs/ListSvg';
|
|
147
|
-
import Loader from './svgs/LoaderSvg';
|
|
148
|
-
import Lock from './svgs/LockSvg';
|
|
149
|
-
import LogIn from './svgs/LogInSvg';
|
|
150
|
-
import LogOut from './svgs/LogOutSvg';
|
|
151
|
-
import Mail from './svgs/MailSvg';
|
|
152
|
-
import MapPin from './svgs/MapPinSvg';
|
|
153
|
-
import Map from './svgs/MapSvg';
|
|
154
|
-
import Maximize2 from './svgs/Maximize2Svg';
|
|
155
|
-
import Maximize from './svgs/MaximizeSvg';
|
|
156
|
-
import Meh from './svgs/MehSvg';
|
|
157
|
-
import Menu from './svgs/MenuSvg';
|
|
158
|
-
import MessageCircle from './svgs/MessageCircleSvg';
|
|
159
|
-
import MessageSquare from './svgs/MessageSquareSvg';
|
|
160
|
-
import MicOff from './svgs/MicOffSvg';
|
|
161
|
-
import Mic from './svgs/MicSvg';
|
|
162
|
-
import Minimize2 from './svgs/Minimize2Svg';
|
|
163
|
-
import Minimize from './svgs/MinimizeSvg';
|
|
164
|
-
import MinusCircle from './svgs/MinusCircleSvg';
|
|
165
|
-
import MinusSquare from './svgs/MinusSquareSvg';
|
|
166
|
-
import Minus from './svgs/MinusSvg';
|
|
167
|
-
import Monitor from './svgs/MonitorSvg';
|
|
168
|
-
import Moon from './svgs/MoonSvg';
|
|
169
|
-
import MoreHorizontal from './svgs/MoreHorizontalSvg';
|
|
170
|
-
import MoreVertical from './svgs/MoreVerticalSvg';
|
|
171
|
-
import MousePointer from './svgs/MousePointerSvg';
|
|
172
|
-
import Move from './svgs/MoveSvg';
|
|
173
|
-
import Music from './svgs/MusicSvg';
|
|
174
|
-
import Navigation2 from './svgs/Navigation2Svg';
|
|
175
|
-
import Navigation from './svgs/NavigationSvg';
|
|
176
|
-
import Octagon from './svgs/OctagonSvg';
|
|
177
|
-
import Package from './svgs/PackageSvg';
|
|
178
|
-
import Paperclip from './svgs/PaperclipSvg';
|
|
179
|
-
import PauseCircle from './svgs/PauseCircleSvg';
|
|
180
|
-
import Pause from './svgs/PauseSvg';
|
|
181
|
-
import PenTool from './svgs/PenToolSvg';
|
|
182
|
-
import Percent from './svgs/PercentSvg';
|
|
183
|
-
import PhoneCall from './svgs/PhoneCallSvg';
|
|
184
|
-
import PhoneForwarded from './svgs/PhoneForwardedSvg';
|
|
185
|
-
import PhoneIncoming from './svgs/PhoneIncomingSvg';
|
|
186
|
-
import PhoneMissed from './svgs/PhoneMissedSvg';
|
|
187
|
-
import PhoneOff from './svgs/PhoneOffSvg';
|
|
188
|
-
import PhoneOutgoing from './svgs/PhoneOutgoingSvg';
|
|
189
|
-
import Phone from './svgs/PhoneSvg';
|
|
190
|
-
import PieChart from './svgs/PieChartSvg';
|
|
191
|
-
import PlayCircle from './svgs/PlayCircleSvg';
|
|
192
|
-
import Play from './svgs/PlaySvg';
|
|
193
|
-
import PlusCircle from './svgs/PlusCircleSvg';
|
|
194
|
-
import PlusSquare from './svgs/PlusSquareSvg';
|
|
195
|
-
import Plus from './svgs/PlusSvg';
|
|
196
|
-
import Pocket from './svgs/PocketSvg';
|
|
197
|
-
import Power from './svgs/PowerSvg';
|
|
198
|
-
import Printer from './svgs/PrinterSvg';
|
|
199
|
-
import Radio from './svgs/RadioSvg';
|
|
200
|
-
import RefreshCcw from './svgs/RefreshCcwSvg';
|
|
201
|
-
import RefreshCw from './svgs/RefreshCwSvg';
|
|
202
|
-
import Repeat from './svgs/RepeatSvg';
|
|
203
|
-
import Rewind from './svgs/RewindSvg';
|
|
204
|
-
import RotateCcw from './svgs/RotateCcwSvg';
|
|
205
|
-
import RotateCw from './svgs/RotateCwSvg';
|
|
206
|
-
import Rss from './svgs/RssSvg';
|
|
207
|
-
import Save from './svgs/SaveSvg';
|
|
208
|
-
import Scissors from './svgs/ScissorsSvg';
|
|
209
|
-
import Search from './svgs/SearchSvg';
|
|
210
|
-
import Send from './svgs/SendSvg';
|
|
211
|
-
import Server from './svgs/ServerSvg';
|
|
212
|
-
import Settings from './svgs/SettingsSvg';
|
|
213
|
-
import Share2 from './svgs/Share2Svg';
|
|
214
|
-
import Share from './svgs/ShareSvg';
|
|
215
|
-
import ShieldOff from './svgs/ShieldOffSvg';
|
|
216
|
-
import Shield from './svgs/ShieldSvg';
|
|
217
|
-
import ShoppingBag from './svgs/ShoppingBagSvg';
|
|
218
|
-
import ShoppingCart from './svgs/ShoppingCartSvg';
|
|
219
|
-
import Shuffle from './svgs/ShuffleSvg';
|
|
220
|
-
import Sidebar from './svgs/SidebarSvg';
|
|
221
|
-
import SkipBack from './svgs/SkipBackSvg';
|
|
222
|
-
import SkipForward from './svgs/SkipForwardSvg';
|
|
223
|
-
import Slack from './svgs/SlackSvg';
|
|
224
|
-
import Slash from './svgs/SlashSvg';
|
|
225
|
-
import Sliders from './svgs/SlidersSvg';
|
|
226
|
-
import Smartphone from './svgs/SmartphoneSvg';
|
|
227
|
-
import Smile from './svgs/SmileSvg';
|
|
228
|
-
import Speaker from './svgs/SpeakerSvg';
|
|
229
|
-
import Square from './svgs/SquareSvg';
|
|
230
|
-
import Star from './svgs/StarSvg';
|
|
231
|
-
import StopCircle from './svgs/StopCircleSvg';
|
|
232
|
-
import Sun from './svgs/SunSvg';
|
|
233
|
-
import Sunrise from './svgs/SunriseSvg';
|
|
234
|
-
import Sunset from './svgs/SunsetSvg';
|
|
235
|
-
import Table from './svgs/TableSvg';
|
|
236
|
-
import Tablet from './svgs/TabletSvg';
|
|
237
|
-
import Tag from './svgs/TagSvg';
|
|
238
|
-
import Target from './svgs/TargetSvg';
|
|
239
|
-
import Terminal from './svgs/TerminalSvg';
|
|
240
|
-
import Thermometer from './svgs/ThermometerSvg';
|
|
241
|
-
import ThumbsDown from './svgs/ThumbsDownSvg';
|
|
242
|
-
import ThumbsUp from './svgs/ThumbsUpSvg';
|
|
243
|
-
import ToggleLeft from './svgs/ToggleLeftSvg';
|
|
244
|
-
import ToggleRight from './svgs/ToggleRightSvg';
|
|
245
|
-
import Tool from './svgs/ToolSvg';
|
|
246
|
-
import Trash2 from './svgs/Trash2Svg';
|
|
247
|
-
import Trash from './svgs/TrashSvg';
|
|
248
|
-
import Trello from './svgs/TrelloSvg';
|
|
249
|
-
import TrendingDown from './svgs/TrendingDownSvg';
|
|
250
|
-
import TrendingUp from './svgs/TrendingUpSvg';
|
|
251
|
-
import Triangle from './svgs/TriangleSvg';
|
|
252
|
-
import Truck from './svgs/TruckSvg';
|
|
253
|
-
import Tv from './svgs/TvSvg';
|
|
254
|
-
import Twitch from './svgs/TwitchSvg';
|
|
255
|
-
import Twitter from './svgs/TwitterSvg';
|
|
256
|
-
import Type from './svgs/TypeSvg';
|
|
257
|
-
import Umbrella from './svgs/UmbrellaSvg';
|
|
258
|
-
import Underline from './svgs/UnderlineSvg';
|
|
259
|
-
import Unlock from './svgs/UnlockSvg';
|
|
260
|
-
import UploadCloud from './svgs/UploadCloudSvg';
|
|
261
|
-
import Upload from './svgs/UploadSvg';
|
|
262
|
-
import UserCheck from './svgs/UserCheckSvg';
|
|
263
|
-
import UserMinus from './svgs/UserMinusSvg';
|
|
264
|
-
import UserPlus from './svgs/UserPlusSvg';
|
|
265
|
-
import UserX from './svgs/UserXSvg';
|
|
266
|
-
import User from './svgs/UserSvg';
|
|
267
|
-
import Users from './svgs/UsersSvg';
|
|
268
|
-
import VideoOff from './svgs/VideoOffSvg';
|
|
269
|
-
import Video from './svgs/VideoSvg';
|
|
270
|
-
import Voicemail from './svgs/VoicemailSvg';
|
|
271
|
-
import Volume1 from './svgs/Volume1Svg';
|
|
272
|
-
import Volume2 from './svgs/Volume2Svg';
|
|
273
|
-
import VolumeX from './svgs/VolumeXSvg';
|
|
274
|
-
import Volume from './svgs/VolumeSvg';
|
|
275
|
-
import Watch from './svgs/WatchSvg';
|
|
276
|
-
import WifiOff from './svgs/WifiOffSvg';
|
|
277
|
-
import Wifi from './svgs/WifiSvg';
|
|
278
|
-
import Wind from './svgs/WindSvg';
|
|
279
|
-
import XCircle from './svgs/XCircleSvg';
|
|
280
|
-
import XOctagon from './svgs/XOctagonSvg';
|
|
281
|
-
import XSquare from './svgs/XSquareSvg';
|
|
282
|
-
import X from './svgs/XSvg';
|
|
283
|
-
import ZapOff from './svgs/ZapOffSvg';
|
|
284
|
-
import Zap from './svgs/ZapSvg';
|
|
285
|
-
import ZoomIn from './svgs/ZoomInSvg';
|
|
286
|
-
import ZoomOut from './svgs/ZoomOutSvg';
|
|
287
|
-
|
|
288
|
-
// Additional social media icons not from Feather Icons
|
|
289
|
-
import Facebook from './svgs/social/FacebookSvg';
|
|
290
|
-
import Flickr from './svgs/social/FlickrSvg';
|
|
291
|
-
import Instagram from './svgs/social/InstagramSvg';
|
|
292
|
-
import Soundcloud from './svgs/social/SoundcloudSvg';
|
|
293
|
-
import Tiktok from './svgs/social/TiktokSvg';
|
|
294
|
-
import Youtube from './svgs/social/YoutubeSvg';
|
|
295
|
-
import XSocial from './svgs/social/XSvg';
|
|
1
|
+
import type { ReactNode, SVGProps } from 'react';
|
|
2
|
+
import { ts } from 'design-system-foundations-public';
|
|
296
3
|
|
|
297
4
|
// Custom icons -- not from Feather Icons
|
|
298
5
|
import Avatar from './svgs/AvatarSvg';
|
|
@@ -300,7 +7,320 @@ import Avatar from './svgs/AvatarSvg';
|
|
|
300
7
|
// Internal utility -- used by <Checkbox />
|
|
301
8
|
import Empty from './svgs/internal/EmptySvg';
|
|
302
9
|
|
|
303
|
-
|
|
10
|
+
// icon components come from upstream library
|
|
11
|
+
const {
|
|
12
|
+
icons: {
|
|
13
|
+
system: {
|
|
14
|
+
Activity,
|
|
15
|
+
Airplay,
|
|
16
|
+
AlertCircle,
|
|
17
|
+
AlertOctagon,
|
|
18
|
+
AlertTriangle,
|
|
19
|
+
AlignCenter,
|
|
20
|
+
AlignJustify,
|
|
21
|
+
AlignLeft,
|
|
22
|
+
AlignRight,
|
|
23
|
+
Anchor,
|
|
24
|
+
Aperture,
|
|
25
|
+
Archive,
|
|
26
|
+
ArrowDownCircle,
|
|
27
|
+
ArrowDownLeft,
|
|
28
|
+
ArrowDownRight,
|
|
29
|
+
ArrowDown,
|
|
30
|
+
ArrowLeftCircle,
|
|
31
|
+
ArrowLeft,
|
|
32
|
+
ArrowRightCircle,
|
|
33
|
+
ArrowRight,
|
|
34
|
+
ArrowUpCircle,
|
|
35
|
+
ArrowUpLeft,
|
|
36
|
+
ArrowUpRight,
|
|
37
|
+
ArrowUp,
|
|
38
|
+
AtSign,
|
|
39
|
+
Award,
|
|
40
|
+
BarChart2,
|
|
41
|
+
BarChart,
|
|
42
|
+
BatteryCharging,
|
|
43
|
+
Battery,
|
|
44
|
+
BellOff,
|
|
45
|
+
Bell,
|
|
46
|
+
Bluetooth,
|
|
47
|
+
Bold,
|
|
48
|
+
BookOpen,
|
|
49
|
+
Book,
|
|
50
|
+
Bookmark,
|
|
51
|
+
Box,
|
|
52
|
+
Briefcase,
|
|
53
|
+
Calendar,
|
|
54
|
+
CameraOff,
|
|
55
|
+
Camera,
|
|
56
|
+
Cast,
|
|
57
|
+
CheckCircle,
|
|
58
|
+
CheckSquare,
|
|
59
|
+
Check,
|
|
60
|
+
ChevronDown,
|
|
61
|
+
ChevronLeft,
|
|
62
|
+
ChevronRight,
|
|
63
|
+
ChevronUp,
|
|
64
|
+
ChevronsDown,
|
|
65
|
+
ChevronsLeft,
|
|
66
|
+
ChevronsRight,
|
|
67
|
+
ChevronsUp,
|
|
68
|
+
Chrome,
|
|
69
|
+
Circle,
|
|
70
|
+
Clipboard,
|
|
71
|
+
Clock,
|
|
72
|
+
CloudDrizzle,
|
|
73
|
+
CloudLightning,
|
|
74
|
+
CloudOff,
|
|
75
|
+
CloudRain,
|
|
76
|
+
CloudSnow,
|
|
77
|
+
Cloud,
|
|
78
|
+
Code,
|
|
79
|
+
Codepen,
|
|
80
|
+
Codesandbox,
|
|
81
|
+
Coffee,
|
|
82
|
+
Columns,
|
|
83
|
+
Command,
|
|
84
|
+
Compass,
|
|
85
|
+
Copy,
|
|
86
|
+
CornerDownLeft,
|
|
87
|
+
CornerDownRight,
|
|
88
|
+
CornerLeftDown,
|
|
89
|
+
CornerLeftUp,
|
|
90
|
+
CornerRightDown,
|
|
91
|
+
CornerRightUp,
|
|
92
|
+
CornerUpLeft,
|
|
93
|
+
CornerUpRight,
|
|
94
|
+
Cpu,
|
|
95
|
+
CreditCard,
|
|
96
|
+
Crop,
|
|
97
|
+
Crosshair,
|
|
98
|
+
Database,
|
|
99
|
+
Delete,
|
|
100
|
+
Disc,
|
|
101
|
+
DivideCircle,
|
|
102
|
+
DivideSquare,
|
|
103
|
+
Divide,
|
|
104
|
+
DollarSign,
|
|
105
|
+
DownloadCloud,
|
|
106
|
+
Download,
|
|
107
|
+
Dribbble,
|
|
108
|
+
Droplet,
|
|
109
|
+
Edit2,
|
|
110
|
+
Edit3,
|
|
111
|
+
Edit,
|
|
112
|
+
ExternalLink,
|
|
113
|
+
EyeOff,
|
|
114
|
+
Eye,
|
|
115
|
+
FastForward,
|
|
116
|
+
Feather,
|
|
117
|
+
Figma,
|
|
118
|
+
FileMinus,
|
|
119
|
+
FilePlus,
|
|
120
|
+
FileText,
|
|
121
|
+
File,
|
|
122
|
+
Film,
|
|
123
|
+
Filter,
|
|
124
|
+
Flag,
|
|
125
|
+
FolderMinus,
|
|
126
|
+
FolderPlus,
|
|
127
|
+
Folder,
|
|
128
|
+
Framer,
|
|
129
|
+
Frown,
|
|
130
|
+
Gift,
|
|
131
|
+
GitBranch,
|
|
132
|
+
GitCommit,
|
|
133
|
+
GitMerge,
|
|
134
|
+
GitPullRequest,
|
|
135
|
+
Github,
|
|
136
|
+
Gitlab,
|
|
137
|
+
Globe,
|
|
138
|
+
Grid,
|
|
139
|
+
HardDrive,
|
|
140
|
+
Hash,
|
|
141
|
+
Headphones,
|
|
142
|
+
Heart,
|
|
143
|
+
HelpCircle,
|
|
144
|
+
Hexagon,
|
|
145
|
+
Home,
|
|
146
|
+
Image,
|
|
147
|
+
Inbox,
|
|
148
|
+
Info,
|
|
149
|
+
Italic,
|
|
150
|
+
Key,
|
|
151
|
+
Layers,
|
|
152
|
+
Layout,
|
|
153
|
+
LifeBuoy,
|
|
154
|
+
Link2,
|
|
155
|
+
Link,
|
|
156
|
+
List,
|
|
157
|
+
Loader,
|
|
158
|
+
Lock,
|
|
159
|
+
LogIn,
|
|
160
|
+
LogOut,
|
|
161
|
+
Mail,
|
|
162
|
+
MapPin,
|
|
163
|
+
Map,
|
|
164
|
+
Maximize2,
|
|
165
|
+
Maximize,
|
|
166
|
+
Meh,
|
|
167
|
+
Menu,
|
|
168
|
+
MessageCircle,
|
|
169
|
+
MessageSquare,
|
|
170
|
+
MicOff,
|
|
171
|
+
Mic,
|
|
172
|
+
Minimize2,
|
|
173
|
+
Minimize,
|
|
174
|
+
MinusCircle,
|
|
175
|
+
MinusSquare,
|
|
176
|
+
Minus,
|
|
177
|
+
Monitor,
|
|
178
|
+
Moon,
|
|
179
|
+
MoreHorizontal,
|
|
180
|
+
MoreVertical,
|
|
181
|
+
MousePointer,
|
|
182
|
+
Move,
|
|
183
|
+
Music,
|
|
184
|
+
Navigation2,
|
|
185
|
+
Navigation,
|
|
186
|
+
Octagon,
|
|
187
|
+
Package,
|
|
188
|
+
Paperclip,
|
|
189
|
+
PauseCircle,
|
|
190
|
+
Pause,
|
|
191
|
+
PenTool,
|
|
192
|
+
Percent,
|
|
193
|
+
PhoneCall,
|
|
194
|
+
PhoneForwarded,
|
|
195
|
+
PhoneIncoming,
|
|
196
|
+
PhoneMissed,
|
|
197
|
+
PhoneOff,
|
|
198
|
+
PhoneOutgoing,
|
|
199
|
+
Phone,
|
|
200
|
+
PieChart,
|
|
201
|
+
PlayCircle,
|
|
202
|
+
Play,
|
|
203
|
+
PlusCircle,
|
|
204
|
+
PlusSquare,
|
|
205
|
+
Plus,
|
|
206
|
+
Pocket,
|
|
207
|
+
Power,
|
|
208
|
+
Printer,
|
|
209
|
+
Radio,
|
|
210
|
+
RefreshCcw,
|
|
211
|
+
RefreshCw,
|
|
212
|
+
Repeat,
|
|
213
|
+
Rewind,
|
|
214
|
+
RotateCcw,
|
|
215
|
+
RotateCw,
|
|
216
|
+
Rss,
|
|
217
|
+
Save,
|
|
218
|
+
Scissors,
|
|
219
|
+
Search,
|
|
220
|
+
Send,
|
|
221
|
+
Server,
|
|
222
|
+
Settings,
|
|
223
|
+
Share2,
|
|
224
|
+
Share,
|
|
225
|
+
ShieldOff,
|
|
226
|
+
Shield,
|
|
227
|
+
ShoppingBag,
|
|
228
|
+
ShoppingCart,
|
|
229
|
+
Shuffle,
|
|
230
|
+
Sidebar,
|
|
231
|
+
SkipBack,
|
|
232
|
+
SkipForward,
|
|
233
|
+
Slack,
|
|
234
|
+
Slash,
|
|
235
|
+
Sliders,
|
|
236
|
+
Smartphone,
|
|
237
|
+
Smile,
|
|
238
|
+
Speaker,
|
|
239
|
+
Square,
|
|
240
|
+
Star,
|
|
241
|
+
StopCircle,
|
|
242
|
+
Sun,
|
|
243
|
+
Sunrise,
|
|
244
|
+
Sunset,
|
|
245
|
+
Table,
|
|
246
|
+
Tablet,
|
|
247
|
+
Tag,
|
|
248
|
+
Target,
|
|
249
|
+
Terminal,
|
|
250
|
+
Thermometer,
|
|
251
|
+
ThumbsDown,
|
|
252
|
+
ThumbsUp,
|
|
253
|
+
ToggleLeft,
|
|
254
|
+
ToggleRight,
|
|
255
|
+
Tool,
|
|
256
|
+
Trash2,
|
|
257
|
+
Trash,
|
|
258
|
+
Trello,
|
|
259
|
+
TrendingDown,
|
|
260
|
+
TrendingUp,
|
|
261
|
+
Triangle,
|
|
262
|
+
Truck,
|
|
263
|
+
Tv,
|
|
264
|
+
Twitch,
|
|
265
|
+
Twitter,
|
|
266
|
+
Type,
|
|
267
|
+
Umbrella,
|
|
268
|
+
Underline,
|
|
269
|
+
Unlock,
|
|
270
|
+
UploadCloud,
|
|
271
|
+
Upload,
|
|
272
|
+
UserCheck,
|
|
273
|
+
UserMinus,
|
|
274
|
+
UserPlus,
|
|
275
|
+
UserX,
|
|
276
|
+
User,
|
|
277
|
+
Users,
|
|
278
|
+
VideoOff,
|
|
279
|
+
Video,
|
|
280
|
+
Voicemail,
|
|
281
|
+
Volume1,
|
|
282
|
+
Volume2,
|
|
283
|
+
VolumeX,
|
|
284
|
+
Volume,
|
|
285
|
+
Watch,
|
|
286
|
+
WifiOff,
|
|
287
|
+
Wifi,
|
|
288
|
+
Wind,
|
|
289
|
+
XCircle,
|
|
290
|
+
XOctagon,
|
|
291
|
+
XSquare,
|
|
292
|
+
X,
|
|
293
|
+
ZapOff,
|
|
294
|
+
Zap,
|
|
295
|
+
ZoomIn,
|
|
296
|
+
ZoomOut,
|
|
297
|
+
},
|
|
298
|
+
social: {
|
|
299
|
+
Bluesky,
|
|
300
|
+
Facebook,
|
|
301
|
+
Flickr,
|
|
302
|
+
Instagram,
|
|
303
|
+
Linkedin,
|
|
304
|
+
Soundcloud,
|
|
305
|
+
Tiktok,
|
|
306
|
+
Threads,
|
|
307
|
+
X: XSocial,
|
|
308
|
+
Youtube,
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
} = ts;
|
|
312
|
+
|
|
313
|
+
// Explicit type avoids TS4023: upstream SVGRProps is not exported, so TypeScript
|
|
314
|
+
// cannot name it in generated .d.ts files. Declaring it locally keeps the public
|
|
315
|
+
// API fully expressible without depending on upstream internals.
|
|
316
|
+
interface SVGRProps {
|
|
317
|
+
title?: string;
|
|
318
|
+
titleId?: string;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
type IconComponent = (props: SVGProps<SVGSVGElement> & SVGRProps) => ReactNode;
|
|
322
|
+
|
|
323
|
+
const iconSvgs: Record<string, IconComponent> = {
|
|
304
324
|
Activity,
|
|
305
325
|
Airplay,
|
|
306
326
|
AlertCircle,
|
|
@@ -335,6 +355,7 @@ const iconSvgs = {
|
|
|
335
355
|
BellOff,
|
|
336
356
|
Bell,
|
|
337
357
|
Bluetooth,
|
|
358
|
+
Bluesky,
|
|
338
359
|
Bold,
|
|
339
360
|
BookOpen,
|
|
340
361
|
Book,
|
|
@@ -545,6 +566,7 @@ const iconSvgs = {
|
|
|
545
566
|
Target,
|
|
546
567
|
Terminal,
|
|
547
568
|
Thermometer,
|
|
569
|
+
Threads,
|
|
548
570
|
ThumbsDown,
|
|
549
571
|
ThumbsUp,
|
|
550
572
|
Tiktok,
|
|
@@ -5,8 +5,7 @@ import marginsStyle, { MarginProps } from '../common/marginsStyle';
|
|
|
5
5
|
|
|
6
6
|
export const NAME = 'ucl-uikit-icon-button';
|
|
7
7
|
|
|
8
|
-
export interface IconButtonBaseProps
|
|
9
|
-
extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
8
|
+
export interface IconButtonBaseProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
10
9
|
testId?: string;
|
|
11
10
|
}
|
|
12
11
|
|
|
@@ -30,7 +29,7 @@ const IconButton = forwardRef<Ref, IconButtonProps>(
|
|
|
30
29
|
|
|
31
30
|
const hoverStyle = css`
|
|
32
31
|
&:hover {
|
|
33
|
-
color: ${theme.
|
|
32
|
+
color: ${theme.colour.icon.brandHover};
|
|
34
33
|
}
|
|
35
34
|
`;
|
|
36
35
|
|
|
@@ -41,7 +40,7 @@ const IconButton = forwardRef<Ref, IconButtonProps>(
|
|
|
41
40
|
`;
|
|
42
41
|
|
|
43
42
|
const disabledStyle = css`
|
|
44
|
-
color: ${theme.
|
|
43
|
+
color: ${theme.colour.icon.disabled};
|
|
45
44
|
cursor: not-allowed;
|
|
46
45
|
`;
|
|
47
46
|
|