@digigov/react-core 1.3.0-dcbd7ded → 2.0.0-4be8f7cc
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/Accordion/index.d.ts +1 -1
- package/AccordionControls/index.d.ts +1 -1
- package/AccordionSection/index.d.ts +1 -1
- package/AccordionSectionContent/index.d.ts +1 -1
- package/AccordionSectionSummary/index.d.ts +1 -1
- package/AccordionSectionSummaryHeading/index.d.ts +1 -1
- package/AdminAside/__snapshots__/index.test.tsx.snap +7 -3
- package/AdminAside/index.d.ts +1 -1
- package/AdminAside/index.js +6 -2
- package/AdminContainer/__snapshots__/index.test.tsx.snap +35 -7
- package/AdminContainer/index.d.ts +8 -1
- package/AdminContainer/index.js +6 -7
- package/AdminContainer/index.test/index.js +6 -0
- package/AdminHeader/index.d.ts +1 -1
- package/AdminHeaderContent/index.d.ts +1 -1
- package/AdminLayout/index.d.ts +1 -1
- package/AdminMain/__snapshots__/index.test.tsx.snap +6 -3
- package/AdminMain/index.d.ts +1 -1
- package/AdminMain/index.js +7 -2
- package/AdminTopSection/index.d.ts +1 -1
- package/Aside/__snapshots__/index.test.tsx.snap +3 -3
- package/Aside/index.d.ts +1 -1
- package/AutoCompleteAssistiveHint/index.d.ts +1 -1
- package/{src/AutoCompleteWrapper → AutoCompleteContainer}/__snapshots__/index.test.tsx.snap +4 -4
- package/AutoCompleteContainer/index.d.ts +22 -0
- package/{AutoCompleteWrapper → AutoCompleteContainer}/index.js +5 -5
- package/AutoCompleteContainer/index.test/index.js +7 -0
- package/{AutoCompleteStatusWrapper → AutoCompleteContainer}/index.test/package.json +1 -1
- package/{AutoCompleteStatusWrapper → AutoCompleteContainer}/package.json +1 -1
- package/AutoCompleteInput/__snapshots__/index.test.tsx.snap +14 -50
- package/AutoCompleteInput/index.d.ts +1 -9
- package/AutoCompleteInput/index.js +2 -4
- package/AutoCompleteInput/index.test/index.js +5 -19
- package/AutoCompleteInputTypeahead/index.d.ts +1 -1
- package/AutoCompleteMultipleInput/index.d.ts +9 -0
- package/AutoCompleteMultipleInput/index.js +21 -0
- package/{AutoCompleteWrapper/index.test → AutoCompleteMultipleInput}/package.json +1 -1
- package/AutoCompleteMultipleInputContainer/index.d.ts +12 -0
- package/AutoCompleteMultipleInputContainer/index.js +24 -0
- package/AutoCompleteMultipleInputContainer/package.json +6 -0
- package/AutoCompleteResultList/__snapshots__/index.test.tsx.snap +2 -38
- package/AutoCompleteResultList/index.d.ts +1 -10
- package/AutoCompleteResultList/index.js +2 -3
- package/AutoCompleteResultList/index.test/index.js +0 -14
- package/AutoCompleteResultListItem/index.d.ts +1 -1
- package/AutoCompleteStatus/__snapshots__/index.test.tsx.snap +2 -2
- package/AutoCompleteStatus/index.d.ts +2 -2
- package/AutoCompleteStatus/index.js +2 -2
- package/{AutoCompleteStatusWrapper → AutoCompleteStatusContainer}/__snapshots__/index.test.tsx.snap +4 -4
- package/AutoCompleteStatusContainer/index.d.ts +10 -0
- package/{AutoCompleteStatusWrapper → AutoCompleteStatusContainer}/index.js +5 -5
- package/AutoCompleteStatusContainer/index.test/index.js +7 -0
- package/AutoCompleteStatusContainer/index.test/package.json +6 -0
- package/AutoCompleteStatusContainer/package.json +6 -0
- package/BackLink/index.d.ts +1 -1
- package/BackToTopContainer/index.d.ts +1 -1
- package/BackToTopLimit/index.d.ts +1 -1
- package/BackToTopLink/index.d.ts +1 -1
- package/BannerContainer/index.d.ts +1 -1
- package/Base/index.d.ts +39 -10
- package/Base/index.js +16 -2
- package/Blockquote/index.d.ts +1 -1
- package/Bottom/index.d.ts +1 -1
- package/BottomInfo/index.d.ts +1 -1
- package/BottomInfoContainer/index.d.ts +1 -1
- package/BottomInfoContent/index.d.ts +1 -1
- package/Breadcrumbs/index.d.ts +1 -1
- package/BreadcrumbsList/index.d.ts +1 -1
- package/BreadcrumbsListItem/index.d.ts +1 -1
- package/Button/index.d.ts +1 -1
- package/ButtonGroup/index.d.ts +1 -1
- package/ButtonLink/index.d.ts +1 -1
- package/CallToAction/__snapshots__/index.test.tsx.snap +6 -6
- package/CallToAction/index.d.ts +1 -1
- package/Card/__snapshots__/index.test.tsx.snap +42 -0
- package/Card/index.d.ts +8 -1
- package/Card/index.js +3 -2
- package/Card/index.test/index.js +21 -9
- package/CardAction/index.d.ts +1 -1
- package/CardContent/index.d.ts +1 -1
- package/CardHeading/index.d.ts +1 -1
- package/Checkbox/index.d.ts +1 -1
- package/CheckboxConditional/index.d.ts +1 -1
- package/CheckboxItem/index.d.ts +1 -1
- package/Chip/index.d.ts +1 -1
- package/ChipContainer/index.d.ts +1 -1
- package/ChipHeading/index.d.ts +1 -1
- package/ChipKeyValue/index.d.ts +1 -1
- package/ChoiceDividerText/index.d.ts +1 -1
- package/CircularProgress/index.d.ts +1 -1
- package/CloseButton/index.d.ts +1 -1
- package/Code/index.d.ts +1 -1
- package/CodeBlock/index.d.ts +1 -1
- package/Container/index.d.ts +1 -1
- package/CopyToClipboardContainer/index.d.ts +1 -1
- package/CopyToClipboardMessage/index.d.ts +1 -1
- package/CopyrightContainer/index.d.ts +1 -1
- package/DateInputContainer/index.d.ts +1 -1
- package/DateInputItem/index.d.ts +1 -1
- package/Details/index.d.ts +1 -1
- package/DetailsContent/index.d.ts +1 -1
- package/DetailsSummary/index.d.ts +1 -1
- package/Drawer/index.d.ts +1 -1
- package/DrawerHeading/index.d.ts +1 -1
- package/DropdownBase/index.d.ts +1 -1
- package/DropdownButton/__snapshots__/index.test.tsx.snap +36 -36
- package/DropdownButton/index.d.ts +1 -1
- package/DropdownContent/index.d.ts +9 -1
- package/DropdownContent/index.js +6 -5
- package/ErrorMessage/index.d.ts +1 -1
- package/ErrorSummary/index.d.ts +1 -1
- package/FieldContainer/index.d.ts +1 -1
- package/Fieldset/index.d.ts +1 -1
- package/FieldsetLegend/index.d.ts +1 -1
- package/FileUpload/index.d.ts +1 -1
- package/FileUploadContainer/index.d.ts +1 -1
- package/FillableText/index.d.ts +1 -1
- package/FilterContainer/index.d.ts +1 -1
- package/FilterContent/index.d.ts +1 -1
- package/FilterHeadingContainer/index.d.ts +1 -1
- package/FilterOptionsSection/index.d.ts +1 -1
- package/FilterSelectedHeading/index.d.ts +1 -1
- package/FilterSelectedSection/index.d.ts +1 -1
- package/Footer/index.d.ts +1 -1
- package/FooterContainer/index.d.ts +1 -1
- package/FooterContent/index.d.ts +1 -1
- package/FooterContentLogos/__snapshots__/index.test.tsx.snap +2 -2
- package/FooterContentLogos/index.d.ts +1 -1
- package/FooterContentLogos/index.js +1 -1
- package/FooterHeading/index.d.ts +1 -1
- package/FooterImage/index.d.ts +1 -1
- package/FooterInfo/index.d.ts +1 -1
- package/FooterInfoSection/index.d.ts +1 -1
- package/FooterLink/index.d.ts +1 -1
- package/FooterList/index.d.ts +1 -1
- package/FooterListItem/index.d.ts +1 -1
- package/FooterNavigation/index.d.ts +1 -1
- package/FooterNavigationSection/index.d.ts +1 -1
- package/Form/index.d.ts +1 -1
- package/FullPageBackground/index.d.ts +1 -1
- package/GovGRLogo/index.d.ts +1 -1
- package/Grid/index.d.ts +1 -1
- package/Header/index.d.ts +1 -1
- package/HeaderContent/index.d.ts +1 -1
- package/HeaderLogo/index.d.ts +1 -1
- package/HeaderNavMenuContent/index.d.ts +1 -1
- package/HeaderSecondaryLogo/index.d.ts +1 -1
- package/HeaderSection/index.d.ts +1 -1
- package/HeaderTitle/index.d.ts +1 -1
- package/Heading/index.d.ts +1 -1
- package/HeadingCaption/index.d.ts +1 -1
- package/HellenicRepublicLogo/index.d.ts +1 -1
- package/Hidden/__snapshots__/index.test.tsx.snap +14 -10
- package/Hidden/index.d.ts +1 -1
- package/Hint/index.d.ts +1 -1
- package/Hint/index.js +1 -1
- package/ImageLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/ImageLogo/index.d.ts +1 -1
- package/ImageLogo/index.js +1 -2
- package/ImageLogoSet/__snapshots__/index.test.tsx.snap +10 -10
- package/ImageLogoSet/index.d.ts +1 -1
- package/KitchenSinkAllComponents/index.d.ts +1 -1
- package/KitchenSinkCard/index.d.ts +1 -1
- package/KitchenSinkCategory/index.d.ts +1 -1
- package/KitchenSinkContent/index.d.ts +1 -1
- package/KitchenSinkContentInfo/index.d.ts +1 -1
- package/KitchenSinkContentTags/index.d.ts +1 -1
- package/KitchenSinkHeading/index.d.ts +1 -1
- package/KitchenSinkLetterContent/index.d.ts +1 -1
- package/LabelContainer/index.d.ts +1 -1
- package/LabelTitle/index.d.ts +1 -1
- package/LabeledText/index.d.ts +1 -1
- package/Layout/index.d.ts +1 -1
- package/LinkBase/index.d.ts +1 -1
- package/List/index.d.ts +1 -1
- package/ListItem/index.d.ts +1 -1
- package/LoaderContainer/index.d.ts +1 -1
- package/Main/index.d.ts +1 -1
- package/Masthead/index.d.ts +1 -1
- package/MastheadBody/index.d.ts +1 -1
- package/MastheadLogo/index.d.ts +1 -1
- package/ModalAction/index.d.ts +1 -1
- package/ModalContainer/index.d.ts +1 -1
- package/ModalContent/index.d.ts +1 -1
- package/ModalHeading/index.d.ts +1 -1
- package/Nav/index.d.ts +1 -1
- package/NavList/index.d.ts +1 -1
- package/NavListItemAction/index.d.ts +1 -1
- package/NavListItemActionContainer/index.d.ts +1 -1
- package/NavListItemButton/__snapshots__/index.test.tsx.snap +18 -18
- package/NavListItemButton/index.d.ts +1 -1
- package/NavListItemLink/index.d.ts +1 -1
- package/NavMenuContainer/index.d.ts +1 -1
- package/NavMenuContent/index.d.ts +1 -1
- package/NavMenuContentListBase/index.d.ts +1 -1
- package/NavMenuContentListItem/index.d.ts +1 -1
- package/NavMenuTitle/index.d.ts +1 -1
- package/NormalText/__snapshots__/index.test.tsx.snap +60 -60
- package/NormalText/index.d.ts +1 -1
- package/NormalText/index.js +1 -1
- package/NotificationBannerContainer/index.d.ts +1 -1
- package/NotificationBannerContent/index.d.ts +1 -1
- package/NotificationBannerHeader/index.d.ts +1 -1
- package/NotificationBannerHeading/index.d.ts +1 -1
- package/NotificationBannerLink/index.d.ts +1 -1
- package/PageTitleCaption/index.d.ts +1 -1
- package/PageTitleContainer/index.d.ts +1 -1
- package/PageTitleHeading/index.d.ts +1 -1
- package/Pagination/index.d.ts +1 -1
- package/PaginationLabelContainer/index.d.ts +1 -1
- package/PaginationList/index.d.ts +1 -1
- package/PaginationListItem/index.d.ts +1 -1
- package/Panel/index.d.ts +1 -1
- package/PanelBody/index.d.ts +1 -1
- package/PanelTitle/index.d.ts +1 -1
- package/Paragraph/__snapshots__/index.test.tsx.snap +54 -54
- package/Paragraph/index.d.ts +1 -1
- package/PhaseBanner/index.d.ts +1 -1
- package/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +2 -2
- package/PhaseBannerHeaderContainer/index.d.ts +1 -1
- package/PhaseBannerHeaderContainer/index.js +1 -1
- package/PhaseBannerTag/index.d.ts +1 -1
- package/PhaseBannerText/index.d.ts +1 -1
- package/RadioConditional/index.d.ts +1 -1
- package/RadioContainer/index.d.ts +1 -1
- package/RadioItem/index.d.ts +1 -1
- package/ResultsActionBar/index.d.ts +1 -1
- package/ResultsHeading/index.d.ts +1 -1
- package/ResultsHeadingActions/index.d.ts +1 -1
- package/SearchButton/index.d.ts +1 -1
- package/SearchContainer/index.d.ts +1 -1
- package/Section/index.d.ts +1 -1
- package/SectionBreak/index.d.ts +1 -1
- package/SelectContainer/index.d.ts +1 -1
- package/SelectOption/index.d.ts +1 -1
- package/SingleCharacterInput/index.d.ts +1 -1
- package/SingleCharacterInputs/index.d.ts +1 -1
- package/Skeleton/index.d.ts +35 -0
- package/Skeleton/index.js +34 -0
- package/{AutoCompleteWrapper → Skeleton}/package.json +1 -1
- package/SkipLink/index.d.ts +1 -1
- package/Stack/index.d.ts +1 -1
- package/StepNav/index.d.ts +1 -1
- package/StepNavAccordion/index.d.ts +1 -1
- package/StepNavAccordionContent/index.d.ts +1 -1
- package/StepNavAccordionHeadingText/index.d.ts +1 -1
- package/StepNavAccordionHeadingTitle/index.d.ts +1 -1
- package/StepNavAccordionSummary/index.d.ts +1 -1
- package/StepNavAccordionSummaryHeading/index.d.ts +1 -1
- package/StepNavCircleNumber/index.d.ts +1 -1
- package/StepNavControls/index.d.ts +1 -1
- package/StepNavList/index.d.ts +1 -1
- package/StepNavListItem/index.d.ts +1 -1
- package/SummaryList/index.d.ts +1 -1
- package/SummaryListItem/index.d.ts +1 -1
- package/SummaryListItemAction/index.d.ts +1 -1
- package/SummaryListItemKey/index.d.ts +1 -1
- package/SummaryListItemValue/index.d.ts +1 -1
- package/SvgIcon/__snapshots__/index.test.tsx.snap +84 -61
- package/SvgIcon/index.d.ts +10 -8
- package/SvgIcon/index.js +4 -4
- package/SvgIcon/index.test/index.js +28 -22
- package/Table/index.d.ts +1 -1
- package/TableBody/index.d.ts +1 -1
- package/TableCaption/index.d.ts +1 -1
- package/TableContainer/index.d.ts +1 -1
- package/TableDataCell/index.d.ts +1 -1
- package/TableHead/index.d.ts +1 -1
- package/TableHeadCell/index.d.ts +1 -1
- package/TableLoaderBackground/index.d.ts +1 -1
- package/TableNoDataRow/index.d.ts +1 -1
- package/TableRow/index.d.ts +1 -1
- package/TableSortIconContainer/index.d.ts +1 -1
- package/Tabs/index.d.ts +1 -1
- package/TabsHeading/__snapshots__/index.test.tsx.snap +9 -6
- package/TabsHeading/index.d.ts +1 -1
- package/TabsList/index.d.ts +1 -1
- package/TabsListItemBase/index.d.ts +1 -1
- package/TabsPanelBase/index.d.ts +1 -1
- package/TaskList/index.d.ts +1 -1
- package/TaskListItem/index.d.ts +1 -1
- package/TaskListItemContent/index.d.ts +1 -1
- package/TaskListItemHeading/index.d.ts +1 -1
- package/TaskListItemTag/index.d.ts +1 -1
- package/TextArea/index.d.ts +1 -1
- package/TextInput/index.d.ts +1 -1
- package/Timeline/index.d.ts +1 -1
- package/TimelineActions/index.d.ts +1 -1
- package/TimelineContent/index.d.ts +1 -1
- package/TimelineHeading/index.d.ts +1 -1
- package/TimelineItem/index.d.ts +1 -1
- package/Top/index.d.ts +1 -1
- package/Typography/index.d.ts +1 -1
- package/Unpurge/index.js +1 -1
- package/VisuallyHidden/index.d.ts +1 -1
- package/WarningText/index.d.ts +1 -1
- package/cjs/AdminAside/__snapshots__/index.test.tsx.snap +7 -3
- package/cjs/AdminAside/index.js +6 -2
- package/cjs/AdminContainer/__snapshots__/index.test.tsx.snap +35 -7
- package/cjs/AdminContainer/index.js +6 -7
- package/cjs/AdminContainer/index.test/index.js +6 -0
- package/cjs/AdminMain/__snapshots__/index.test.tsx.snap +6 -3
- package/cjs/AdminMain/index.js +7 -2
- package/cjs/Aside/__snapshots__/index.test.tsx.snap +3 -3
- package/{AutoCompleteWrapper → cjs/AutoCompleteContainer}/__snapshots__/index.test.tsx.snap +4 -4
- package/cjs/{AutoCompleteWrapper → AutoCompleteContainer}/index.js +6 -6
- package/cjs/{AutoCompleteWrapper → AutoCompleteContainer}/index.test/index.js +2 -2
- package/cjs/AutoCompleteInput/__snapshots__/index.test.tsx.snap +14 -50
- package/cjs/AutoCompleteInput/index.js +2 -4
- package/cjs/AutoCompleteInput/index.test/index.js +5 -19
- package/cjs/AutoCompleteMultipleInput/index.js +28 -0
- package/cjs/AutoCompleteMultipleInputContainer/index.js +31 -0
- package/cjs/AutoCompleteResultList/__snapshots__/index.test.tsx.snap +2 -38
- package/cjs/AutoCompleteResultList/index.js +2 -3
- package/cjs/AutoCompleteResultList/index.test/index.js +0 -14
- package/cjs/AutoCompleteStatus/__snapshots__/index.test.tsx.snap +2 -2
- package/cjs/AutoCompleteStatus/index.js +2 -2
- package/cjs/{AutoCompleteStatusWrapper → AutoCompleteStatusContainer}/__snapshots__/index.test.tsx.snap +4 -4
- package/cjs/{AutoCompleteStatusWrapper → AutoCompleteStatusContainer}/index.js +6 -6
- package/cjs/{AutoCompleteStatusWrapper → AutoCompleteStatusContainer}/index.test/index.js +2 -2
- package/cjs/Base/index.js +16 -2
- package/cjs/CallToAction/__snapshots__/index.test.tsx.snap +6 -6
- package/cjs/Card/__snapshots__/index.test.tsx.snap +42 -0
- package/cjs/Card/index.js +3 -2
- package/cjs/Card/index.test/index.js +21 -9
- package/cjs/DropdownButton/__snapshots__/index.test.tsx.snap +36 -36
- package/cjs/DropdownContent/index.js +6 -5
- package/cjs/FooterContentLogos/__snapshots__/index.test.tsx.snap +2 -2
- package/cjs/FooterContentLogos/index.js +1 -1
- package/cjs/Hidden/__snapshots__/index.test.tsx.snap +14 -10
- package/cjs/Hint/index.js +1 -1
- package/cjs/ImageLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/cjs/ImageLogo/index.js +1 -2
- package/cjs/ImageLogoSet/__snapshots__/index.test.tsx.snap +10 -10
- package/cjs/NavListItemButton/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/NormalText/__snapshots__/index.test.tsx.snap +60 -60
- package/cjs/NormalText/index.js +1 -1
- package/cjs/Paragraph/__snapshots__/index.test.tsx.snap +54 -54
- package/cjs/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +2 -2
- package/cjs/PhaseBannerHeaderContainer/index.js +1 -1
- package/cjs/Skeleton/index.js +41 -0
- package/cjs/SvgIcon/__snapshots__/index.test.tsx.snap +84 -61
- package/cjs/SvgIcon/index.js +4 -4
- package/cjs/SvgIcon/index.test/index.js +28 -22
- package/cjs/TabsHeading/__snapshots__/index.test.tsx.snap +9 -6
- package/cjs/Unpurge/index.js +1 -1
- package/cjs/index.js +26 -4
- package/cjs/lazy/index.js +39 -12
- package/cjs/registry/index.js +10 -4
- package/index.d.ts +3 -1
- package/index.js +4 -2
- package/lazy/index.js +31 -10
- package/lazy.d.ts +238 -235
- package/package.json +3 -3
- package/registry/index.js +10 -4
- package/registry.d.ts +5 -2
- package/src/AdminAside/__snapshots__/index.test.tsx.snap +7 -3
- package/src/AdminAside/index.tsx +6 -2
- package/src/AdminContainer/__snapshots__/index.test.tsx.snap +35 -7
- package/src/AdminContainer/index.test.tsx +3 -0
- package/src/AdminContainer/index.tsx +12 -11
- package/src/AdminMain/__snapshots__/index.test.tsx.snap +6 -3
- package/src/AdminMain/index.tsx +5 -2
- package/src/Aside/__snapshots__/index.test.tsx.snap +3 -3
- package/{cjs/AutoCompleteWrapper → src/AutoCompleteContainer}/__snapshots__/index.test.tsx.snap +4 -4
- package/src/{AutoCompleteWrapper → AutoCompleteContainer}/index.test.tsx +2 -2
- package/src/{AutoCompleteWrapper → AutoCompleteContainer}/index.tsx +8 -8
- package/src/AutoCompleteInput/__snapshots__/index.test.tsx.snap +14 -50
- package/src/AutoCompleteInput/index.test.tsx +4 -12
- package/src/AutoCompleteInput/index.tsx +2 -11
- package/src/AutoCompleteMultipleInput/index.tsx +28 -0
- package/src/AutoCompleteMultipleInputContainer/index.tsx +38 -0
- package/src/AutoCompleteResultList/__snapshots__/index.test.tsx.snap +2 -38
- package/src/AutoCompleteResultList/index.test.tsx +0 -20
- package/src/AutoCompleteResultList/index.tsx +1 -13
- package/src/AutoCompleteStatus/__snapshots__/index.test.tsx.snap +2 -2
- package/src/AutoCompleteStatus/index.tsx +2 -2
- package/src/AutoCompleteStatusContainer/__snapshots__/index.test.tsx.snap +16 -0
- package/src/AutoCompleteStatusContainer/index.test.tsx +10 -0
- package/src/AutoCompleteStatusContainer/index.tsx +28 -0
- package/src/Base/index.tsx +154 -64
- package/src/CallToAction/__snapshots__/index.test.tsx.snap +6 -6
- package/src/Card/__snapshots__/index.test.tsx.snap +42 -0
- package/src/Card/index.test.tsx +6 -0
- package/src/Card/index.tsx +9 -1
- package/src/DropdownButton/__snapshots__/index.test.tsx.snap +36 -36
- package/src/DropdownContent/index.tsx +10 -1
- package/src/FooterContentLogos/__snapshots__/index.test.tsx.snap +2 -2
- package/src/FooterContentLogos/index.tsx +1 -1
- package/src/Hidden/__snapshots__/index.test.tsx.snap +14 -10
- package/src/Hint/index.tsx +2 -2
- package/src/ImageLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/src/ImageLogo/index.tsx +1 -2
- package/src/ImageLogoSet/__snapshots__/index.test.tsx.snap +10 -10
- package/src/NavListItemButton/__snapshots__/index.test.tsx.snap +18 -18
- package/src/NormalText/__snapshots__/index.test.tsx.snap +60 -60
- package/src/NormalText/index.tsx +2 -2
- package/src/Paragraph/__snapshots__/index.test.tsx.snap +54 -54
- package/src/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +2 -2
- package/src/PhaseBannerHeaderContainer/index.tsx +1 -1
- package/src/Skeleton/index.tsx +84 -0
- package/src/SvgIcon/__snapshots__/index.test.tsx.snap +84 -61
- package/src/SvgIcon/index.test.tsx +23 -20
- package/src/SvgIcon/index.tsx +23 -28
- package/src/TabsHeading/__snapshots__/index.test.tsx.snap +9 -6
- package/src/Unpurge/index.tsx +171 -12
- package/src/index.ts +3 -1
- package/src/lazy.js +5 -2
- package/src/registry.js +10 -4
- package/AutoCompleteStatusWrapper/index.d.ts +0 -10
- package/AutoCompleteStatusWrapper/index.test/index.js +0 -7
- package/AutoCompleteWrapper/index.d.ts +0 -22
- package/AutoCompleteWrapper/index.test/index.js +0 -7
- package/src/AutoCompleteStatusWrapper/__snapshots__/index.test.tsx.snap +0 -16
- package/src/AutoCompleteStatusWrapper/index.test.tsx +0 -10
- package/src/AutoCompleteStatusWrapper/index.tsx +0 -28
- /package/{AutoCompleteStatusWrapper → AutoCompleteContainer}/index.test.d.ts +0 -0
- /package/{AutoCompleteWrapper → AutoCompleteStatusContainer}/index.test.d.ts +0 -0
|
@@ -19,20 +19,20 @@ exports[`renders the SvgIcon with no props 1`] = `
|
|
|
19
19
|
</ForwardRef(SvgIcon)>
|
|
20
20
|
`;
|
|
21
21
|
|
|
22
|
-
exports[`renders the SvgIcon with prop
|
|
22
|
+
exports[`renders the SvgIcon with prop color=base-content 1`] = `
|
|
23
23
|
<ForwardRef(SvgIcon)
|
|
24
|
-
|
|
24
|
+
color="base-content"
|
|
25
25
|
>
|
|
26
26
|
<ForwardRef(Base)
|
|
27
27
|
aria-hidden="true"
|
|
28
28
|
as="svg"
|
|
29
|
-
className="ds-svg-icon--
|
|
29
|
+
className="ds-svg-icon--base-content ds-svg-icon"
|
|
30
30
|
focusable="false"
|
|
31
31
|
viewBox="0 0 24 24"
|
|
32
32
|
>
|
|
33
33
|
<svg
|
|
34
34
|
aria-hidden="true"
|
|
35
|
-
className="ds-svg-icon--
|
|
35
|
+
className="ds-svg-icon--base-content ds-svg-icon"
|
|
36
36
|
focusable="false"
|
|
37
37
|
viewBox="0 0 24 24"
|
|
38
38
|
>
|
|
@@ -42,20 +42,20 @@ exports[`renders the SvgIcon with prop size=lg 1`] = `
|
|
|
42
42
|
</ForwardRef(SvgIcon)>
|
|
43
43
|
`;
|
|
44
44
|
|
|
45
|
-
exports[`renders the SvgIcon with prop
|
|
45
|
+
exports[`renders the SvgIcon with prop color=dark 1`] = `
|
|
46
46
|
<ForwardRef(SvgIcon)
|
|
47
|
-
|
|
47
|
+
color="dark"
|
|
48
48
|
>
|
|
49
49
|
<ForwardRef(Base)
|
|
50
50
|
aria-hidden="true"
|
|
51
51
|
as="svg"
|
|
52
|
-
className="ds-svg-icon--
|
|
52
|
+
className="ds-svg-icon--dark ds-svg-icon"
|
|
53
53
|
focusable="false"
|
|
54
54
|
viewBox="0 0 24 24"
|
|
55
55
|
>
|
|
56
56
|
<svg
|
|
57
57
|
aria-hidden="true"
|
|
58
|
-
className="ds-svg-icon--
|
|
58
|
+
className="ds-svg-icon--dark ds-svg-icon"
|
|
59
59
|
focusable="false"
|
|
60
60
|
viewBox="0 0 24 24"
|
|
61
61
|
>
|
|
@@ -65,20 +65,20 @@ exports[`renders the SvgIcon with prop size=md 1`] = `
|
|
|
65
65
|
</ForwardRef(SvgIcon)>
|
|
66
66
|
`;
|
|
67
67
|
|
|
68
|
-
exports[`renders the SvgIcon with prop
|
|
68
|
+
exports[`renders the SvgIcon with prop color=error 1`] = `
|
|
69
69
|
<ForwardRef(SvgIcon)
|
|
70
|
-
|
|
70
|
+
color="error"
|
|
71
71
|
>
|
|
72
72
|
<ForwardRef(Base)
|
|
73
73
|
aria-hidden="true"
|
|
74
74
|
as="svg"
|
|
75
|
-
className="ds-svg-icon--
|
|
75
|
+
className="ds-svg-icon--error ds-svg-icon"
|
|
76
76
|
focusable="false"
|
|
77
77
|
viewBox="0 0 24 24"
|
|
78
78
|
>
|
|
79
79
|
<svg
|
|
80
80
|
aria-hidden="true"
|
|
81
|
-
className="ds-svg-icon--
|
|
81
|
+
className="ds-svg-icon--error ds-svg-icon"
|
|
82
82
|
focusable="false"
|
|
83
83
|
viewBox="0 0 24 24"
|
|
84
84
|
>
|
|
@@ -88,20 +88,21 @@ exports[`renders the SvgIcon with prop size=sm 1`] = `
|
|
|
88
88
|
</ForwardRef(SvgIcon)>
|
|
89
89
|
`;
|
|
90
90
|
|
|
91
|
-
exports[`renders the SvgIcon with prop size=xl 1`] = `
|
|
91
|
+
exports[`renders the SvgIcon with prop color=error and size= xl 1`] = `
|
|
92
92
|
<ForwardRef(SvgIcon)
|
|
93
|
+
color="warning"
|
|
93
94
|
size="xl"
|
|
94
95
|
>
|
|
95
96
|
<ForwardRef(Base)
|
|
96
97
|
aria-hidden="true"
|
|
97
98
|
as="svg"
|
|
98
|
-
className="ds-svg-icon--xl ds-svg-icon"
|
|
99
|
+
className="ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
|
|
99
100
|
focusable="false"
|
|
100
101
|
viewBox="0 0 24 24"
|
|
101
102
|
>
|
|
102
103
|
<svg
|
|
103
104
|
aria-hidden="true"
|
|
104
|
-
className="ds-svg-icon--xl ds-svg-icon"
|
|
105
|
+
className="ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
|
|
105
106
|
focusable="false"
|
|
106
107
|
viewBox="0 0 24 24"
|
|
107
108
|
>
|
|
@@ -111,20 +112,20 @@ exports[`renders the SvgIcon with prop size=xl 1`] = `
|
|
|
111
112
|
</ForwardRef(SvgIcon)>
|
|
112
113
|
`;
|
|
113
114
|
|
|
114
|
-
exports[`renders the SvgIcon with prop
|
|
115
|
+
exports[`renders the SvgIcon with prop color=focus 1`] = `
|
|
115
116
|
<ForwardRef(SvgIcon)
|
|
116
|
-
|
|
117
|
+
color="focus"
|
|
117
118
|
>
|
|
118
119
|
<ForwardRef(Base)
|
|
119
120
|
aria-hidden="true"
|
|
120
121
|
as="svg"
|
|
121
|
-
className="ds-svg-icon--
|
|
122
|
+
className="ds-svg-icon--focus ds-svg-icon"
|
|
122
123
|
focusable="false"
|
|
123
124
|
viewBox="0 0 24 24"
|
|
124
125
|
>
|
|
125
126
|
<svg
|
|
126
127
|
aria-hidden="true"
|
|
127
|
-
className="ds-svg-icon--
|
|
128
|
+
className="ds-svg-icon--focus ds-svg-icon"
|
|
128
129
|
focusable="false"
|
|
129
130
|
viewBox="0 0 24 24"
|
|
130
131
|
>
|
|
@@ -134,20 +135,20 @@ exports[`renders the SvgIcon with prop size=xs 1`] = `
|
|
|
134
135
|
</ForwardRef(SvgIcon)>
|
|
135
136
|
`;
|
|
136
137
|
|
|
137
|
-
exports[`renders the SvgIcon with prop
|
|
138
|
+
exports[`renders the SvgIcon with prop color=gray 1`] = `
|
|
138
139
|
<ForwardRef(SvgIcon)
|
|
139
|
-
|
|
140
|
+
color="gray"
|
|
140
141
|
>
|
|
141
142
|
<ForwardRef(Base)
|
|
142
143
|
aria-hidden="true"
|
|
143
144
|
as="svg"
|
|
144
|
-
className="ds-svg-icon--
|
|
145
|
+
className="ds-svg-icon--gray ds-svg-icon"
|
|
145
146
|
focusable="false"
|
|
146
147
|
viewBox="0 0 24 24"
|
|
147
148
|
>
|
|
148
149
|
<svg
|
|
149
150
|
aria-hidden="true"
|
|
150
|
-
className="ds-svg-icon--
|
|
151
|
+
className="ds-svg-icon--gray ds-svg-icon"
|
|
151
152
|
focusable="false"
|
|
152
153
|
viewBox="0 0 24 24"
|
|
153
154
|
>
|
|
@@ -157,20 +158,20 @@ exports[`renders the SvgIcon with prop variant=dark 1`] = `
|
|
|
157
158
|
</ForwardRef(SvgIcon)>
|
|
158
159
|
`;
|
|
159
160
|
|
|
160
|
-
exports[`renders the SvgIcon with prop
|
|
161
|
+
exports[`renders the SvgIcon with prop color=primary 1`] = `
|
|
161
162
|
<ForwardRef(SvgIcon)
|
|
162
|
-
|
|
163
|
+
color="primary"
|
|
163
164
|
>
|
|
164
165
|
<ForwardRef(Base)
|
|
165
166
|
aria-hidden="true"
|
|
166
167
|
as="svg"
|
|
167
|
-
className="ds-svg-icon--
|
|
168
|
+
className="ds-svg-icon--primary ds-svg-icon"
|
|
168
169
|
focusable="false"
|
|
169
170
|
viewBox="0 0 24 24"
|
|
170
171
|
>
|
|
171
172
|
<svg
|
|
172
173
|
aria-hidden="true"
|
|
173
|
-
className="ds-svg-icon--
|
|
174
|
+
className="ds-svg-icon--primary ds-svg-icon"
|
|
174
175
|
focusable="false"
|
|
175
176
|
viewBox="0 0 24 24"
|
|
176
177
|
>
|
|
@@ -180,21 +181,20 @@ exports[`renders the SvgIcon with prop variant=error 1`] = `
|
|
|
180
181
|
</ForwardRef(SvgIcon)>
|
|
181
182
|
`;
|
|
182
183
|
|
|
183
|
-
exports[`renders the SvgIcon with prop
|
|
184
|
+
exports[`renders the SvgIcon with prop color=success 1`] = `
|
|
184
185
|
<ForwardRef(SvgIcon)
|
|
185
|
-
|
|
186
|
-
variant="warning"
|
|
186
|
+
color="success"
|
|
187
187
|
>
|
|
188
188
|
<ForwardRef(Base)
|
|
189
189
|
aria-hidden="true"
|
|
190
190
|
as="svg"
|
|
191
|
-
className="ds-svg-icon--
|
|
191
|
+
className="ds-svg-icon--success ds-svg-icon"
|
|
192
192
|
focusable="false"
|
|
193
193
|
viewBox="0 0 24 24"
|
|
194
194
|
>
|
|
195
195
|
<svg
|
|
196
196
|
aria-hidden="true"
|
|
197
|
-
className="ds-svg-icon--
|
|
197
|
+
className="ds-svg-icon--success ds-svg-icon"
|
|
198
198
|
focusable="false"
|
|
199
199
|
viewBox="0 0 24 24"
|
|
200
200
|
>
|
|
@@ -204,20 +204,20 @@ exports[`renders the SvgIcon with prop variant=error and size= xl 1`] = `
|
|
|
204
204
|
</ForwardRef(SvgIcon)>
|
|
205
205
|
`;
|
|
206
206
|
|
|
207
|
-
exports[`renders the SvgIcon with prop
|
|
207
|
+
exports[`renders the SvgIcon with prop color=warning 1`] = `
|
|
208
208
|
<ForwardRef(SvgIcon)
|
|
209
|
-
|
|
209
|
+
color="warning"
|
|
210
210
|
>
|
|
211
211
|
<ForwardRef(Base)
|
|
212
212
|
aria-hidden="true"
|
|
213
213
|
as="svg"
|
|
214
|
-
className="ds-svg-icon--
|
|
214
|
+
className="ds-svg-icon--warning ds-svg-icon"
|
|
215
215
|
focusable="false"
|
|
216
216
|
viewBox="0 0 24 24"
|
|
217
217
|
>
|
|
218
218
|
<svg
|
|
219
219
|
aria-hidden="true"
|
|
220
|
-
className="ds-svg-icon--
|
|
220
|
+
className="ds-svg-icon--warning ds-svg-icon"
|
|
221
221
|
focusable="false"
|
|
222
222
|
viewBox="0 0 24 24"
|
|
223
223
|
>
|
|
@@ -227,20 +227,21 @@ exports[`renders the SvgIcon with prop variant=focus 1`] = `
|
|
|
227
227
|
</ForwardRef(SvgIcon)>
|
|
228
228
|
`;
|
|
229
229
|
|
|
230
|
-
exports[`renders the SvgIcon with prop
|
|
230
|
+
exports[`renders the SvgIcon with prop color=warning and size=sm 1`] = `
|
|
231
231
|
<ForwardRef(SvgIcon)
|
|
232
|
-
|
|
232
|
+
color="warning"
|
|
233
|
+
size="sm"
|
|
233
234
|
>
|
|
234
235
|
<ForwardRef(Base)
|
|
235
236
|
aria-hidden="true"
|
|
236
237
|
as="svg"
|
|
237
|
-
className="ds-svg-icon--
|
|
238
|
+
className="ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
238
239
|
focusable="false"
|
|
239
240
|
viewBox="0 0 24 24"
|
|
240
241
|
>
|
|
241
242
|
<svg
|
|
242
243
|
aria-hidden="true"
|
|
243
|
-
className="ds-svg-icon--
|
|
244
|
+
className="ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
244
245
|
focusable="false"
|
|
245
246
|
viewBox="0 0 24 24"
|
|
246
247
|
>
|
|
@@ -250,20 +251,20 @@ exports[`renders the SvgIcon with prop variant=gray 1`] = `
|
|
|
250
251
|
</ForwardRef(SvgIcon)>
|
|
251
252
|
`;
|
|
252
253
|
|
|
253
|
-
exports[`renders the SvgIcon with prop
|
|
254
|
+
exports[`renders the SvgIcon with prop color=white 1`] = `
|
|
254
255
|
<ForwardRef(SvgIcon)
|
|
255
|
-
|
|
256
|
+
color="white"
|
|
256
257
|
>
|
|
257
258
|
<ForwardRef(Base)
|
|
258
259
|
aria-hidden="true"
|
|
259
260
|
as="svg"
|
|
260
|
-
className="ds-svg-icon--
|
|
261
|
+
className="ds-svg-icon--white ds-svg-icon"
|
|
261
262
|
focusable="false"
|
|
262
263
|
viewBox="0 0 24 24"
|
|
263
264
|
>
|
|
264
265
|
<svg
|
|
265
266
|
aria-hidden="true"
|
|
266
|
-
className="ds-svg-icon--
|
|
267
|
+
className="ds-svg-icon--white ds-svg-icon"
|
|
267
268
|
focusable="false"
|
|
268
269
|
viewBox="0 0 24 24"
|
|
269
270
|
>
|
|
@@ -273,20 +274,20 @@ exports[`renders the SvgIcon with prop variant=light 1`] = `
|
|
|
273
274
|
</ForwardRef(SvgIcon)>
|
|
274
275
|
`;
|
|
275
276
|
|
|
276
|
-
exports[`renders the SvgIcon with prop
|
|
277
|
+
exports[`renders the SvgIcon with prop size=lg 1`] = `
|
|
277
278
|
<ForwardRef(SvgIcon)
|
|
278
|
-
|
|
279
|
+
size="lg"
|
|
279
280
|
>
|
|
280
281
|
<ForwardRef(Base)
|
|
281
282
|
aria-hidden="true"
|
|
282
283
|
as="svg"
|
|
283
|
-
className="ds-svg-icon--
|
|
284
|
+
className="ds-svg-icon--lg ds-svg-icon"
|
|
284
285
|
focusable="false"
|
|
285
286
|
viewBox="0 0 24 24"
|
|
286
287
|
>
|
|
287
288
|
<svg
|
|
288
289
|
aria-hidden="true"
|
|
289
|
-
className="ds-svg-icon--
|
|
290
|
+
className="ds-svg-icon--lg ds-svg-icon"
|
|
290
291
|
focusable="false"
|
|
291
292
|
viewBox="0 0 24 24"
|
|
292
293
|
>
|
|
@@ -296,20 +297,20 @@ exports[`renders the SvgIcon with prop variant=primary 1`] = `
|
|
|
296
297
|
</ForwardRef(SvgIcon)>
|
|
297
298
|
`;
|
|
298
299
|
|
|
299
|
-
exports[`renders the SvgIcon with prop
|
|
300
|
+
exports[`renders the SvgIcon with prop size=md 1`] = `
|
|
300
301
|
<ForwardRef(SvgIcon)
|
|
301
|
-
|
|
302
|
+
size="md"
|
|
302
303
|
>
|
|
303
304
|
<ForwardRef(Base)
|
|
304
305
|
aria-hidden="true"
|
|
305
306
|
as="svg"
|
|
306
|
-
className="ds-svg-icon--
|
|
307
|
+
className="ds-svg-icon--md ds-svg-icon"
|
|
307
308
|
focusable="false"
|
|
308
309
|
viewBox="0 0 24 24"
|
|
309
310
|
>
|
|
310
311
|
<svg
|
|
311
312
|
aria-hidden="true"
|
|
312
|
-
className="ds-svg-icon--
|
|
313
|
+
className="ds-svg-icon--md ds-svg-icon"
|
|
313
314
|
focusable="false"
|
|
314
315
|
viewBox="0 0 24 24"
|
|
315
316
|
>
|
|
@@ -319,20 +320,20 @@ exports[`renders the SvgIcon with prop variant=success 1`] = `
|
|
|
319
320
|
</ForwardRef(SvgIcon)>
|
|
320
321
|
`;
|
|
321
322
|
|
|
322
|
-
exports[`renders the SvgIcon with prop
|
|
323
|
+
exports[`renders the SvgIcon with prop size=sm 1`] = `
|
|
323
324
|
<ForwardRef(SvgIcon)
|
|
324
|
-
|
|
325
|
+
size="sm"
|
|
325
326
|
>
|
|
326
327
|
<ForwardRef(Base)
|
|
327
328
|
aria-hidden="true"
|
|
328
329
|
as="svg"
|
|
329
|
-
className="ds-svg-icon--
|
|
330
|
+
className="ds-svg-icon--sm ds-svg-icon"
|
|
330
331
|
focusable="false"
|
|
331
332
|
viewBox="0 0 24 24"
|
|
332
333
|
>
|
|
333
334
|
<svg
|
|
334
335
|
aria-hidden="true"
|
|
335
|
-
className="ds-svg-icon--
|
|
336
|
+
className="ds-svg-icon--sm ds-svg-icon"
|
|
336
337
|
focusable="false"
|
|
337
338
|
viewBox="0 0 24 24"
|
|
338
339
|
>
|
|
@@ -342,21 +343,43 @@ exports[`renders the SvgIcon with prop variant=warning 1`] = `
|
|
|
342
343
|
</ForwardRef(SvgIcon)>
|
|
343
344
|
`;
|
|
344
345
|
|
|
345
|
-
exports[`renders the SvgIcon with prop
|
|
346
|
+
exports[`renders the SvgIcon with prop size=xl 1`] = `
|
|
346
347
|
<ForwardRef(SvgIcon)
|
|
347
|
-
size="
|
|
348
|
-
variant="warning"
|
|
348
|
+
size="xl"
|
|
349
349
|
>
|
|
350
350
|
<ForwardRef(Base)
|
|
351
351
|
aria-hidden="true"
|
|
352
352
|
as="svg"
|
|
353
|
-
className="ds-svg-icon--
|
|
353
|
+
className="ds-svg-icon--xl ds-svg-icon"
|
|
354
354
|
focusable="false"
|
|
355
355
|
viewBox="0 0 24 24"
|
|
356
356
|
>
|
|
357
357
|
<svg
|
|
358
358
|
aria-hidden="true"
|
|
359
|
-
className="ds-svg-icon--
|
|
359
|
+
className="ds-svg-icon--xl ds-svg-icon"
|
|
360
|
+
focusable="false"
|
|
361
|
+
viewBox="0 0 24 24"
|
|
362
|
+
>
|
|
363
|
+
hello
|
|
364
|
+
</svg>
|
|
365
|
+
</ForwardRef(Base)>
|
|
366
|
+
</ForwardRef(SvgIcon)>
|
|
367
|
+
`;
|
|
368
|
+
|
|
369
|
+
exports[`renders the SvgIcon with prop size=xs 1`] = `
|
|
370
|
+
<ForwardRef(SvgIcon)
|
|
371
|
+
size="xs"
|
|
372
|
+
>
|
|
373
|
+
<ForwardRef(Base)
|
|
374
|
+
aria-hidden="true"
|
|
375
|
+
as="svg"
|
|
376
|
+
className="ds-svg-icon--xs ds-svg-icon"
|
|
377
|
+
focusable="false"
|
|
378
|
+
viewBox="0 0 24 24"
|
|
379
|
+
>
|
|
380
|
+
<svg
|
|
381
|
+
aria-hidden="true"
|
|
382
|
+
className="ds-svg-icon--xs ds-svg-icon"
|
|
360
383
|
focusable="false"
|
|
361
384
|
viewBox="0 0 24 24"
|
|
362
385
|
>
|
|
@@ -21,43 +21,46 @@ it('renders the SvgIcon with prop size=lg', () => {
|
|
|
21
21
|
it('renders the SvgIcon with prop size=xl', () => {
|
|
22
22
|
expect(mount(<SvgIcon size="xl">hello</SvgIcon>)).toMatchSnapshot();
|
|
23
23
|
});
|
|
24
|
-
it('renders the SvgIcon with prop
|
|
25
|
-
expect(mount(<SvgIcon
|
|
24
|
+
it('renders the SvgIcon with prop color=base-content', () => {
|
|
25
|
+
expect(mount(<SvgIcon color="base-content">hello</SvgIcon>)).toMatchSnapshot();
|
|
26
26
|
});
|
|
27
|
-
it('renders the SvgIcon with prop
|
|
28
|
-
expect(mount(<SvgIcon
|
|
27
|
+
it('renders the SvgIcon with prop color=dark', () => {
|
|
28
|
+
expect(mount(<SvgIcon color="dark">hello</SvgIcon>)).toMatchSnapshot();
|
|
29
29
|
});
|
|
30
|
-
it('renders the SvgIcon with prop
|
|
31
|
-
expect(mount(<SvgIcon
|
|
30
|
+
it('renders the SvgIcon with prop color=white', () => {
|
|
31
|
+
expect(mount(<SvgIcon color="white">hello</SvgIcon>)).toMatchSnapshot();
|
|
32
32
|
});
|
|
33
|
-
it('renders the SvgIcon with prop
|
|
34
|
-
expect(mount(<SvgIcon
|
|
33
|
+
it('renders the SvgIcon with prop color=gray', () => {
|
|
34
|
+
expect(mount(<SvgIcon color="gray">hello</SvgIcon>)).toMatchSnapshot();
|
|
35
35
|
});
|
|
36
|
-
it('renders the SvgIcon with prop
|
|
37
|
-
expect(mount(<SvgIcon
|
|
36
|
+
it('renders the SvgIcon with prop color=primary', () => {
|
|
37
|
+
expect(mount(<SvgIcon color="primary">hello</SvgIcon>)).toMatchSnapshot();
|
|
38
38
|
});
|
|
39
|
-
it('renders the SvgIcon with prop
|
|
40
|
-
expect(mount(<SvgIcon
|
|
39
|
+
it('renders the SvgIcon with prop color=success', () => {
|
|
40
|
+
expect(mount(<SvgIcon color="success">hello</SvgIcon>)).toMatchSnapshot();
|
|
41
41
|
});
|
|
42
|
-
it('renders the SvgIcon with prop
|
|
43
|
-
expect(mount(<SvgIcon
|
|
42
|
+
it('renders the SvgIcon with prop color=warning', () => {
|
|
43
|
+
expect(mount(<SvgIcon color="warning">hello</SvgIcon>)).toMatchSnapshot();
|
|
44
44
|
});
|
|
45
|
-
it('renders the SvgIcon with prop
|
|
46
|
-
expect(mount(<SvgIcon
|
|
45
|
+
it('renders the SvgIcon with prop color=error', () => {
|
|
46
|
+
expect(mount(<SvgIcon color="error">hello</SvgIcon>)).toMatchSnapshot();
|
|
47
47
|
});
|
|
48
|
-
it('renders the SvgIcon with prop
|
|
48
|
+
it('renders the SvgIcon with prop color=focus', () => {
|
|
49
|
+
expect(mount(<SvgIcon color="focus">hello</SvgIcon>)).toMatchSnapshot();
|
|
50
|
+
});
|
|
51
|
+
it('renders the SvgIcon with prop color=warning and size=sm', () => {
|
|
49
52
|
expect(
|
|
50
53
|
mount(
|
|
51
|
-
<SvgIcon
|
|
54
|
+
<SvgIcon color="warning" size="sm">
|
|
52
55
|
hello
|
|
53
56
|
</SvgIcon>
|
|
54
57
|
)
|
|
55
58
|
).toMatchSnapshot();
|
|
56
59
|
});
|
|
57
|
-
it('renders the SvgIcon with prop
|
|
60
|
+
it('renders the SvgIcon with prop color=error and size= xl', () => {
|
|
58
61
|
expect(
|
|
59
62
|
mount(
|
|
60
|
-
<SvgIcon
|
|
63
|
+
<SvgIcon color="warning" size="xl">
|
|
61
64
|
hello
|
|
62
65
|
</SvgIcon>
|
|
63
66
|
)
|
package/src/SvgIcon/index.tsx
CHANGED
|
@@ -16,52 +16,47 @@ export interface SvgIconProps extends BaseProps<'svg'> {
|
|
|
16
16
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @value '
|
|
22
|
-
* @value '
|
|
19
|
+
* color property styles svg icon with Gov.gr palette's basic colors.
|
|
20
|
+
* color property is optional.
|
|
21
|
+
* @value 'base-content'
|
|
22
|
+
* @value 'dark', always dark, among all themes
|
|
23
|
+
* @value 'white', always white, among all themes
|
|
23
24
|
* @value 'gray'
|
|
24
25
|
* @value 'primary'
|
|
25
26
|
* @value 'success'
|
|
26
27
|
* @value 'warning'
|
|
27
28
|
* @value 'error'
|
|
28
|
-
* @value 'focus'
|
|
29
|
+
* @value 'focus', use only in focus state, in dark background
|
|
30
|
+
* @value 'info'
|
|
29
31
|
* @value 'link'
|
|
30
32
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
color?:
|
|
34
|
+
| 'base-content'
|
|
35
|
+
| 'dark'
|
|
36
|
+
| 'white'
|
|
37
|
+
| 'gray'
|
|
38
|
+
| 'primary'
|
|
39
|
+
| 'success'
|
|
40
|
+
| 'warning'
|
|
41
|
+
| 'error'
|
|
42
|
+
| 'focus'
|
|
43
|
+
| 'info'
|
|
44
|
+
| 'link';
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
47
|
* Use SvgIcon as global svg component.
|
|
44
|
-
* SvgIcon can be used inside other svg components as
|
|
48
|
+
* SvgIcon can be used inside other svg components as children such as CheckIcon, CaretIcon etc.
|
|
45
49
|
*/
|
|
46
50
|
export const SvgIcon = React.forwardRef<SVGSVGElement, SvgIconProps>(
|
|
47
|
-
function SvgIcon({ size,
|
|
51
|
+
function SvgIcon({ size, color, children, className, ...props }, ref) {
|
|
48
52
|
return (
|
|
49
53
|
<Base
|
|
50
54
|
as="svg"
|
|
51
55
|
ref={ref}
|
|
52
56
|
className={clsx(className, {
|
|
53
|
-
'ds-svg-icon--dark': variant === 'dark',
|
|
54
|
-
'ds-svg-icon--light': variant === 'light',
|
|
55
|
-
'ds-svg-icon--gray': variant === 'gray',
|
|
56
|
-
'ds-svg-icon--success': variant === 'success',
|
|
57
|
-
'ds-svg-icon--primary': variant === 'primary',
|
|
58
|
-
'ds-svg-icon--warning': variant === 'warning',
|
|
59
|
-
'ds-svg-icon--error': variant === 'error',
|
|
60
|
-
'ds-svg-icon--focus': variant === 'focus',
|
|
61
|
-
'ds-svg-icon--link': variant === 'link',
|
|
62
|
-
[`ds-svg-icon--${size}`]: size !== undefined,
|
|
63
|
-
|
|
64
57
|
'ds-svg-icon': true,
|
|
58
|
+
[`ds-svg-icon--${color}`]: color !== undefined,
|
|
59
|
+
[`ds-svg-icon--${size}`]: size !== undefined,
|
|
65
60
|
})}
|
|
66
61
|
focusable="false"
|
|
67
62
|
viewBox="0 0 24 24"
|
|
@@ -7,10 +7,11 @@ exports[`renders the TabsHeading with no props 1`] = `
|
|
|
7
7
|
>
|
|
8
8
|
<ForwardRef(Base)
|
|
9
9
|
as="div"
|
|
10
|
-
|
|
10
|
+
mdUpHidden={true}
|
|
11
|
+
xsUpHidden={false}
|
|
11
12
|
>
|
|
12
13
|
<div
|
|
13
|
-
className="ds-hidden-md
|
|
14
|
+
className="ds-hidden-md-up"
|
|
14
15
|
>
|
|
15
16
|
<ForwardRef(Heading)
|
|
16
17
|
size="sm"
|
|
@@ -46,10 +47,11 @@ exports[`renders the TabsHeading with size=m 1`] = `
|
|
|
46
47
|
>
|
|
47
48
|
<ForwardRef(Base)
|
|
48
49
|
as="div"
|
|
49
|
-
|
|
50
|
+
mdUpHidden={true}
|
|
51
|
+
xsUpHidden={false}
|
|
50
52
|
>
|
|
51
53
|
<div
|
|
52
|
-
className="ds-hidden-md
|
|
54
|
+
className="ds-hidden-md-up"
|
|
53
55
|
>
|
|
54
56
|
<ForwardRef(Heading)
|
|
55
57
|
size="md"
|
|
@@ -85,10 +87,11 @@ exports[`renders the TabsHeading with size=s 1`] = `
|
|
|
85
87
|
>
|
|
86
88
|
<ForwardRef(Base)
|
|
87
89
|
as="div"
|
|
88
|
-
|
|
90
|
+
mdUpHidden={true}
|
|
91
|
+
xsUpHidden={false}
|
|
89
92
|
>
|
|
90
93
|
<div
|
|
91
|
-
className="ds-hidden-md
|
|
94
|
+
className="ds-hidden-md-up"
|
|
92
95
|
>
|
|
93
96
|
<ForwardRef(Heading)
|
|
94
97
|
size="sm"
|