@digigov/react-core 2.0.0-298cfc51 → 2.0.0-2a26e869
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/AccordionControls/index.js.map +1 -1
- package/AccordionSection/index.js.map +1 -1
- package/AccordionSectionContent/index.js.map +1 -1
- package/AccordionSectionSummary/index.js.map +1 -1
- package/AccordionSectionSummaryHeading/index.js.map +1 -1
- package/AdminAside/index.js.map +1 -1
- package/AdminContainer/index.js +1 -1
- package/AdminContainer/index.js.map +2 -2
- package/AdminHeader/index.js.map +1 -1
- package/AdminHeaderContent/index.js.map +2 -2
- package/AdminLayout/index.js.map +2 -2
- package/AdminMain/index.js.map +1 -1
- package/AutoCompleteAssistiveHint/index.js.map +1 -1
- package/AutoCompleteContainer/index.js.map +2 -2
- package/AutoCompleteInputBase/index.js.map +2 -2
- package/AutoCompleteInputTypeahead/index.js.map +1 -1
- package/AutoCompleteMultipleInputContainer/index.js +1 -1
- package/AutoCompleteMultipleInputContainer/index.js.map +2 -2
- package/AutoCompleteResultList/index.js.map +2 -2
- package/AutoCompleteStatus/index.js.map +1 -1
- package/BackLink/index.js +1 -3
- package/BackLink/index.js.map +2 -2
- package/BackToTopLink/index.js.map +1 -1
- package/BannerContainer/index.js.map +1 -1
- package/Base/compat/button.native/index.js +1 -1
- package/Base/compat/button.native.js.map +2 -2
- package/Base/compat/li.native.d.ts +1 -3
- package/Base/compat/li.native.js.map +2 -2
- package/Base/index.native.js.map +2 -2
- package/Base/index.web.d.ts +4 -4
- package/Base/index.web.js.map +1 -1
- package/Base/mapping.native/index.js +1 -1
- package/Base/mapping.native.js.map +2 -2
- package/Base/wrap.native/index.js +3 -2
- package/Base/wrap.native.js.map +2 -2
- package/Bottom/index.js.map +1 -1
- package/BottomInfo/index.js.map +1 -1
- package/BottomInfoContainer/index.js.map +1 -1
- package/BottomInfoContent/index.js.map +1 -1
- package/Breadcrumbs/index.js.map +1 -1
- package/BreadcrumbsList/index.js.map +1 -1
- package/BreadcrumbsListItemLink/index.js.map +1 -1
- package/ButtonGroup/index.js.map +1 -1
- package/ButtonLink/index.d.ts +5 -5
- package/ButtonLink/index.js.map +1 -1
- package/Card/index.js +10 -1
- package/Card/index.js.map +2 -2
- package/CardAction/index.js.map +1 -1
- package/CardContent/index.js.map +1 -1
- package/CardHeading/index.js.map +1 -1
- package/CheckboxConditional/index.js.map +1 -1
- package/CheckboxItem/index.js +11 -2
- package/CheckboxItem/index.js.map +2 -2
- package/CheckboxItemInput/index.js.map +1 -1
- package/CheckboxItemInput/index.native/index.js +2 -2
- package/CheckboxItemInput/index.native.js.map +2 -2
- package/CheckboxItemInput/index.web/index.js +2 -2
- package/CheckboxItemInput/index.web.js.map +2 -2
- package/ChipKeyValue/index.js.map +1 -1
- package/ChoiceDividerText/index.js.map +1 -1
- package/CodeBlockContainer/index.js.map +1 -1
- package/CodeBlockContent/index.js.map +1 -1
- package/CopyToClipboardContainer/index.js.map +1 -1
- package/CopyToClipboardMessage/index.js.map +1 -1
- package/CopyToClipboardMessage/index.native/index.js +1 -1
- package/CopyToClipboardMessage/index.native.d.ts +1 -1
- package/CopyToClipboardMessage/index.native.js.map +2 -2
- package/CopyrightContainer/index.js.map +1 -1
- package/DateInputItem/index.js.map +1 -1
- package/DateInputItem/index.native/index.js +7 -10
- package/DateInputItem/index.native.js.map +2 -2
- package/DateInputItem/index.web/index.js +11 -1
- package/DateInputItem/index.web.js.map +2 -2
- package/Details/index.d.ts +2 -2
- package/Details/index.js.map +2 -2
- package/Details/index.web.js.map +1 -1
- package/DetailsContent/index.js.map +1 -1
- package/DrawerHeading/index.js +1 -9
- package/DrawerHeading/index.js.map +2 -2
- package/DropdownContent/index.js.map +2 -2
- package/ErrorMessage/index.js.map +1 -1
- package/ErrorSummary/index.d.ts +9 -0
- package/ErrorSummary/index.js +3 -3
- package/ErrorSummary/index.js.map +2 -2
- package/Fieldset/index.js.map +1 -1
- package/FillableText/index.js.map +1 -1
- package/FilterContainer/index.js.map +2 -2
- package/FilterContent/index.js.map +1 -1
- package/FilterSelectedHeading/index.js.map +1 -1
- package/FilterSelectedSection/index.js.map +1 -1
- package/Footer/index.js.map +1 -1
- package/FooterContent/index.js.map +1 -1
- package/FooterContentLogos/index.js.map +1 -1
- package/FooterImage/index.js.map +1 -1
- package/FooterInfo/index.js.map +1 -1
- package/FooterLink/index.js.map +1 -1
- package/FooterListItem/index.js.map +1 -1
- package/FooterNavigation/index.js.map +1 -1
- package/FooterNavigationSection/index.js.map +1 -1
- package/FullPageBackground/index.js.map +1 -1
- package/GovGRLogo/index.js.map +1 -1
- package/Grid/index.d.ts +2 -2
- package/Grid/index.js.map +1 -1
- package/HeaderContent/index.js.map +1 -1
- package/HeaderNavMenuContent/index.js.map +1 -1
- package/HeaderSection/index.js.map +1 -1
- package/HeaderTitle/index.js.map +1 -1
- package/Hidden/index.js +14 -1
- package/Hidden/index.js.map +2 -2
- package/Hint/index.d.ts +6 -6
- package/Hint/index.js.map +1 -1
- package/ImageLogo/index.js +1 -1
- package/ImageLogo/index.js.map +2 -2
- package/ImageLogoSet/index.d.ts +1 -1
- package/ImageLogoSet/index.js +2 -2
- package/ImageLogoSet/index.js.map +2 -2
- package/KitchenSinkAllComponents/index.js.map +1 -1
- package/KitchenSinkCard/index.js.map +1 -1
- package/KitchenSinkCategory/index.js.map +1 -1
- package/KitchenSinkContentInfo/index.js.map +1 -1
- package/KitchenSinkContentTags/index.js.map +1 -1
- package/KitchenSinkHeading/index.js.map +1 -1
- package/KitchenSinkLetterContent/index.js.map +1 -1
- package/LabelContainer/index.js.map +1 -1
- package/LinkBase/index.js.map +2 -2
- package/ListItem/index.js.map +1 -1
- package/LoaderContainer/index.js.map +1 -1
- package/Main/index.js.map +1 -1
- package/MastheadBody/index.js.map +1 -1
- package/MastheadLogo/index.js.map +1 -1
- package/ModalAction/index.js.map +1 -1
- package/ModalContent/index.js.map +1 -1
- package/ModalHeading/index.js.map +1 -1
- package/NavListItemAction/index.js +1 -1
- package/NavListItemAction/index.js.map +2 -2
- package/NavListItemActionContainer/index.web.js.map +1 -1
- package/NavListItemBadge/index.js +1 -1
- package/NavListItemBadge/index.js.map +2 -2
- package/NavMenuContent/index.js.map +2 -2
- package/NavMenuContentListBase/index.js.map +1 -1
- package/NavMenuContentListItem/index.js.map +1 -1
- package/NavMenuTitle/index.js.map +1 -1
- package/NotificationBannerContainer/index.d.ts +2 -1
- package/NotificationBannerContainer/index.js.map +2 -2
- package/NotificationBannerContent/index.d.ts +22 -0
- package/NotificationBannerContent/index.js +14 -3
- package/NotificationBannerContent/index.js.map +2 -2
- package/NotificationBannerHeader/index.js.map +1 -1
- package/NotificationBannerHeading/index.js.map +1 -1
- package/NotificationBannerLink/index.js.map +2 -2
- package/NotificationBannerLink/index.native/index.js +1 -1
- package/NotificationBannerLink/index.native.js.map +2 -2
- package/NotificationBannerLink/index.web.js.map +1 -1
- package/PageTitleContainer/index.js.map +1 -1
- package/PaginationLabelContainer/index.js.map +1 -1
- package/PaginationList/index.js.map +1 -1
- package/PanelBody/index.js.map +1 -1
- package/PanelTitle/index.js.map +1 -1
- package/PhaseBanner/index.js.map +2 -2
- package/PhaseBannerHeaderContainer/index.js.map +1 -1
- package/PhaseBannerTag/index.js.map +1 -1
- package/PhaseBannerText/index.js.map +1 -1
- package/RadioConditional/index.js.map +1 -1
- package/RadioItem/index.js.map +2 -2
- package/ResultsActionBar/index.js.map +1 -1
- package/ResultsHeading/index.js.map +1 -1
- package/SearchButton/index.js.map +1 -1
- package/SearchContainer/index.js.map +1 -1
- package/SelectOption/index.js.map +1 -1
- package/SingleCharacterInputs/index.js.map +1 -1
- package/Skeleton/index.js +3 -2
- package/Skeleton/index.js.map +2 -2
- package/SkipLink/index.js.map +1 -1
- package/Stack/index.d.ts +2 -2
- package/Stack/index.js.map +1 -1
- package/StepNavAccordion/index.js.map +1 -1
- package/StepNavAccordionContent/index.js.map +1 -1
- package/StepNavAccordionHeadingTitle/index.js.map +1 -1
- package/StepNavAccordionSummary/index.js.map +1 -1
- package/StepNavControls/index.js.map +1 -1
- package/StepNavList/index.js.map +1 -1
- package/StepNavListItem/index.js.map +1 -1
- package/SummaryListItemAction/index.js.map +1 -1
- package/SummaryListItemValue/index.js.map +1 -1
- package/TableHead/index.js.map +1 -1
- package/TableLoaderBackground/index.js.map +1 -1
- package/TableNoDataRow/index.js.map +1 -1
- package/TableSortIconContainer/index.js.map +1 -1
- package/TabsHeading/index.js +1 -1
- package/TabsHeading/index.js.map +2 -2
- package/TabsList/index.js.map +1 -1
- package/TaskListItem/index.js.map +1 -1
- package/TaskListItemContent/index.js.map +1 -1
- package/TextArea/index.js.map +2 -2
- package/TextArea/index.web.js.map +2 -2
- package/TextInput/index.js.map +1 -1
- package/TimelineActions/index.js.map +1 -1
- package/TimelineContent/index.js.map +1 -1
- package/TimelineItem/index.js.map +1 -1
- package/Top/index.js.map +1 -1
- package/Unpurge/index.js.map +2 -2
- package/VisuallyHidden/index.js.map +1 -1
- package/WarningText/index.js.map +1 -1
- package/WarningTextAssistive/index.d.ts +3 -3
- package/WarningTextAssistive/index.js.map +2 -2
- package/cjs/AccordionControls/index.js.map +1 -1
- package/cjs/AccordionSection/index.js.map +1 -1
- package/cjs/AccordionSectionContent/index.js.map +1 -1
- package/cjs/AccordionSectionSummary/index.js.map +1 -1
- package/cjs/AccordionSectionSummaryHeading/index.js.map +1 -1
- package/cjs/AdminAside/index.js.map +1 -1
- package/cjs/AdminContainer/index.js +1 -1
- package/cjs/AdminContainer/index.js.map +2 -2
- package/cjs/AdminHeader/index.js.map +1 -1
- package/cjs/AdminHeaderContent/index.js.map +2 -2
- package/cjs/AdminLayout/index.js.map +2 -2
- package/cjs/AdminMain/index.js.map +1 -1
- package/cjs/AutoCompleteAssistiveHint/index.js.map +1 -1
- package/cjs/AutoCompleteContainer/index.js.map +2 -2
- package/cjs/AutoCompleteInputBase/index.js.map +2 -2
- package/cjs/AutoCompleteInputTypeahead/index.js.map +1 -1
- package/cjs/AutoCompleteMultipleInputContainer/index.js +1 -1
- package/cjs/AutoCompleteMultipleInputContainer/index.js.map +2 -2
- package/cjs/AutoCompleteResultList/index.js.map +2 -2
- package/cjs/AutoCompleteStatus/index.js.map +1 -1
- package/cjs/BackLink/index.js +1 -3
- package/cjs/BackLink/index.js.map +2 -2
- package/cjs/BackToTopLink/index.js.map +1 -1
- package/cjs/BannerContainer/index.js.map +1 -1
- package/cjs/Base/compat/button.native/index.js +1 -1
- package/cjs/Base/compat/button.native.js.map +2 -2
- package/cjs/Base/compat/li.native.js.map +2 -2
- package/cjs/Base/index.native.js.map +2 -2
- package/cjs/Base/index.web.js.map +1 -1
- package/cjs/Base/mapping.native/index.js +1 -1
- package/cjs/Base/mapping.native.js.map +2 -2
- package/cjs/Base/wrap.native/index.js +3 -2
- package/cjs/Base/wrap.native.js.map +2 -2
- package/cjs/Bottom/index.js.map +1 -1
- package/cjs/BottomInfo/index.js.map +1 -1
- package/cjs/BottomInfoContainer/index.js.map +1 -1
- package/cjs/BottomInfoContent/index.js.map +1 -1
- package/cjs/Breadcrumbs/index.js.map +1 -1
- package/cjs/BreadcrumbsList/index.js.map +1 -1
- package/cjs/BreadcrumbsListItemLink/index.js.map +1 -1
- package/cjs/ButtonGroup/index.js.map +1 -1
- package/cjs/ButtonLink/index.js.map +1 -1
- package/cjs/Card/index.js +10 -1
- package/cjs/Card/index.js.map +2 -2
- package/cjs/CardAction/index.js.map +1 -1
- package/cjs/CardContent/index.js.map +1 -1
- package/cjs/CardHeading/index.js.map +1 -1
- package/cjs/CheckboxConditional/index.js.map +1 -1
- package/cjs/CheckboxItem/index.js +11 -2
- package/cjs/CheckboxItem/index.js.map +2 -2
- package/cjs/CheckboxItemInput/index.js.map +1 -1
- package/cjs/CheckboxItemInput/index.native/index.js +2 -2
- package/cjs/CheckboxItemInput/index.native.js.map +2 -2
- package/cjs/CheckboxItemInput/index.web/index.js +2 -2
- package/cjs/CheckboxItemInput/index.web.js.map +2 -2
- package/cjs/ChipKeyValue/index.js.map +1 -1
- package/cjs/ChoiceDividerText/index.js.map +1 -1
- package/cjs/CodeBlockContainer/index.js.map +1 -1
- package/cjs/CodeBlockContent/index.js.map +1 -1
- package/cjs/CopyToClipboardContainer/index.js.map +1 -1
- package/cjs/CopyToClipboardMessage/index.js.map +1 -1
- package/cjs/CopyToClipboardMessage/index.native/index.js +1 -1
- package/cjs/CopyToClipboardMessage/index.native.js.map +2 -2
- package/cjs/CopyrightContainer/index.js.map +1 -1
- package/cjs/DateInputItem/index.js.map +1 -1
- package/cjs/DateInputItem/index.native/index.js +7 -10
- package/cjs/DateInputItem/index.native.js.map +2 -2
- package/cjs/DateInputItem/index.web/index.js +11 -1
- package/cjs/DateInputItem/index.web.js.map +2 -2
- package/cjs/Details/index.js.map +2 -2
- package/cjs/Details/index.web.js.map +1 -1
- package/cjs/DetailsContent/index.js.map +1 -1
- package/cjs/DrawerHeading/index.js +1 -9
- package/cjs/DrawerHeading/index.js.map +2 -2
- package/cjs/DropdownContent/index.js.map +2 -2
- package/cjs/ErrorMessage/index.js.map +1 -1
- package/cjs/ErrorSummary/index.js +3 -3
- package/cjs/ErrorSummary/index.js.map +2 -2
- package/cjs/Fieldset/index.js.map +1 -1
- package/cjs/FillableText/index.js.map +1 -1
- package/cjs/FilterContainer/index.js.map +2 -2
- package/cjs/FilterContent/index.js.map +1 -1
- package/cjs/FilterSelectedHeading/index.js.map +1 -1
- package/cjs/FilterSelectedSection/index.js.map +1 -1
- package/cjs/Footer/index.js.map +1 -1
- package/cjs/FooterContent/index.js.map +1 -1
- package/cjs/FooterContentLogos/index.js.map +1 -1
- package/cjs/FooterImage/index.js.map +1 -1
- package/cjs/FooterInfo/index.js.map +1 -1
- package/cjs/FooterLink/index.js.map +1 -1
- package/cjs/FooterListItem/index.js.map +1 -1
- package/cjs/FooterNavigation/index.js.map +1 -1
- package/cjs/FooterNavigationSection/index.js.map +1 -1
- package/cjs/FullPageBackground/index.js.map +1 -1
- package/cjs/GovGRLogo/index.js.map +1 -1
- package/cjs/Grid/index.js.map +1 -1
- package/cjs/HeaderContent/index.js.map +1 -1
- package/cjs/HeaderNavMenuContent/index.js.map +1 -1
- package/cjs/HeaderSection/index.js.map +1 -1
- package/cjs/HeaderTitle/index.js.map +1 -1
- package/cjs/Hidden/index.js +14 -1
- package/cjs/Hidden/index.js.map +2 -2
- package/cjs/Hint/index.js.map +1 -1
- package/cjs/ImageLogo/index.js +1 -1
- package/cjs/ImageLogo/index.js.map +2 -2
- package/cjs/ImageLogoSet/index.js +2 -2
- package/cjs/ImageLogoSet/index.js.map +2 -2
- package/cjs/KitchenSinkAllComponents/index.js.map +1 -1
- package/cjs/KitchenSinkCard/index.js.map +1 -1
- package/cjs/KitchenSinkCategory/index.js.map +1 -1
- package/cjs/KitchenSinkContentInfo/index.js.map +1 -1
- package/cjs/KitchenSinkContentTags/index.js.map +1 -1
- package/cjs/KitchenSinkHeading/index.js.map +1 -1
- package/cjs/KitchenSinkLetterContent/index.js.map +1 -1
- package/cjs/LabelContainer/index.js.map +1 -1
- package/cjs/LinkBase/index.js.map +2 -2
- package/cjs/ListItem/index.js.map +1 -1
- package/cjs/LoaderContainer/index.js.map +1 -1
- package/cjs/Main/index.js.map +1 -1
- package/cjs/MastheadBody/index.js.map +1 -1
- package/cjs/MastheadLogo/index.js.map +1 -1
- package/cjs/ModalAction/index.js.map +1 -1
- package/cjs/ModalContent/index.js.map +1 -1
- package/cjs/ModalHeading/index.js.map +1 -1
- package/cjs/NavListItemAction/index.js +1 -1
- package/cjs/NavListItemAction/index.js.map +2 -2
- package/cjs/NavListItemActionContainer/index.web.js.map +1 -1
- package/cjs/NavListItemBadge/index.js +1 -1
- package/cjs/NavListItemBadge/index.js.map +2 -2
- package/cjs/NavMenuContent/index.js +2 -2
- package/cjs/NavMenuContent/index.js.map +3 -3
- package/cjs/NavMenuContentListBase/index.js.map +1 -1
- package/cjs/NavMenuContentListItem/index.js.map +1 -1
- package/cjs/NavMenuTitle/index.js.map +1 -1
- package/cjs/NotificationBannerContainer/index.js.map +2 -2
- package/cjs/NotificationBannerContent/index.js +14 -3
- package/cjs/NotificationBannerContent/index.js.map +2 -2
- package/cjs/NotificationBannerHeader/index.js.map +1 -1
- package/cjs/NotificationBannerHeading/index.js.map +1 -1
- package/cjs/NotificationBannerLink/index.js.map +2 -2
- package/cjs/NotificationBannerLink/index.native/index.js +1 -1
- package/cjs/NotificationBannerLink/index.native.js.map +2 -2
- package/cjs/NotificationBannerLink/index.web.js.map +1 -1
- package/cjs/PageTitleContainer/index.js.map +1 -1
- package/cjs/PaginationLabelContainer/index.js.map +1 -1
- package/cjs/PaginationList/index.js.map +1 -1
- package/cjs/PanelBody/index.js.map +1 -1
- package/cjs/PanelTitle/index.js.map +1 -1
- package/cjs/PhaseBanner/index.js.map +2 -2
- package/cjs/PhaseBannerHeaderContainer/index.js.map +1 -1
- package/cjs/PhaseBannerTag/index.js.map +1 -1
- package/cjs/PhaseBannerText/index.js.map +1 -1
- package/cjs/RadioConditional/index.js.map +1 -1
- package/cjs/RadioItem/index.js.map +2 -2
- package/cjs/ResultsActionBar/index.js.map +1 -1
- package/cjs/ResultsHeading/index.js.map +1 -1
- package/cjs/SearchButton/index.js.map +1 -1
- package/cjs/SearchContainer/index.js.map +1 -1
- package/cjs/SelectOption/index.js.map +1 -1
- package/cjs/SingleCharacterInputs/index.js.map +1 -1
- package/cjs/Skeleton/index.js +3 -2
- package/cjs/Skeleton/index.js.map +2 -2
- package/cjs/SkipLink/index.js.map +1 -1
- package/cjs/Stack/index.js.map +1 -1
- package/cjs/StepNavAccordion/index.js.map +1 -1
- package/cjs/StepNavAccordionContent/index.js.map +1 -1
- package/cjs/StepNavAccordionHeadingTitle/index.js.map +1 -1
- package/cjs/StepNavAccordionSummary/index.js.map +1 -1
- package/cjs/StepNavControls/index.js.map +1 -1
- package/cjs/StepNavList/index.js.map +1 -1
- package/cjs/StepNavListItem/index.js.map +1 -1
- package/cjs/SummaryListItemAction/index.js.map +1 -1
- package/cjs/SummaryListItemValue/index.js.map +1 -1
- package/cjs/TableHead/index.js.map +1 -1
- package/cjs/TableLoaderBackground/index.js.map +1 -1
- package/cjs/TableNoDataRow/index.js.map +1 -1
- package/cjs/TableSortIconContainer/index.js.map +1 -1
- package/cjs/TabsHeading/index.js +1 -1
- package/cjs/TabsHeading/index.js.map +2 -2
- package/cjs/TabsList/index.js.map +1 -1
- package/cjs/TaskListItem/index.js.map +1 -1
- package/cjs/TaskListItemContent/index.js.map +1 -1
- package/cjs/TextArea/index.js.map +2 -2
- package/cjs/TextArea/index.web.js.map +2 -2
- package/cjs/TextInput/index.js.map +1 -1
- package/cjs/TimelineActions/index.js.map +1 -1
- package/cjs/TimelineContent/index.js.map +1 -1
- package/cjs/TimelineItem/index.js.map +1 -1
- package/cjs/Top/index.js.map +1 -1
- package/cjs/Unpurge/index.js.map +2 -2
- package/cjs/VisuallyHidden/index.js.map +1 -1
- package/cjs/WarningText/index.js.map +1 -1
- package/cjs/WarningTextAssistive/index.js.map +2 -2
- package/cjs/lazy/index.js +59 -59
- package/cjs/lazy.js.map +3 -3
- package/cjs/registry/index.js +12 -10
- package/cjs/registry.js.map +3 -3
- package/index.js +1 -1
- package/lazy/index.js +246 -250
- package/package.json +3 -3
- package/registry/index.js +277 -276
- package/src/AccordionControls/index.tsx +1 -1
- package/src/AccordionSection/index.test.tsx +3 -1
- package/src/AccordionSection/index.tsx +1 -1
- package/src/AccordionSectionContent/index.tsx +1 -1
- package/src/AccordionSectionSummary/index.tsx +1 -1
- package/src/AccordionSectionSummaryHeading/index.tsx +1 -1
- package/src/AdminAside/index.tsx +1 -1
- package/src/AdminContainer/index.test.tsx +6 -2
- package/src/AdminContainer/index.tsx +1 -1
- package/src/AdminHeader/index.test.tsx +3 -1
- package/src/AdminHeader/index.tsx +1 -1
- package/src/AdminHeaderContent/index.tsx +4 -2
- package/src/AdminLayout/index.test.tsx +3 -1
- package/src/AdminLayout/index.tsx +1 -2
- package/src/AdminMain/index.tsx +1 -1
- package/src/AdminTopSection/index.test.tsx +3 -1
- package/src/AutoCompleteAssistiveHint/index.test.tsx +2 -1
- package/src/AutoCompleteAssistiveHint/index.tsx +1 -1
- package/src/AutoCompleteContainer/index.tsx +4 -1
- package/src/AutoCompleteInputBase/index.tsx +0 -1
- package/src/AutoCompleteInputTypeahead/index.tsx +1 -1
- package/src/AutoCompleteMultipleInputContainer/index.tsx +4 -4
- package/src/AutoCompleteResultList/index.test.tsx +2 -1
- package/src/AutoCompleteResultList/index.tsx +1 -4
- package/src/AutoCompleteResultListItem/index.test.tsx +2 -1
- package/src/AutoCompleteStatus/index.tsx +1 -1
- package/src/AutoCompleteStatusContainer/index.test.tsx +2 -1
- package/src/BackLink/index.test.tsx +3 -1
- package/src/BackLink/index.tsx +2 -4
- package/src/BackToTopLink/index.tsx +1 -1
- package/src/BannerContainer/index.test.tsx +3 -1
- package/src/BannerContainer/index.tsx +1 -1
- package/src/Base/compat/button.native.tsx +1 -1
- package/src/Base/compat/li.native.tsx +1 -3
- package/src/Base/index.native.tsx +1 -1
- package/src/Base/index.web.tsx +4 -4
- package/src/Base/mapping.native.tsx +8 -4
- package/src/Base/wrap.native.tsx +4 -5
- package/src/Blockquote/index.test.tsx +3 -1
- package/src/Bottom/index.tsx +1 -1
- package/src/BottomInfo/index.tsx +1 -1
- package/src/BottomInfoContainer/index.tsx +1 -1
- package/src/BottomInfoContent/index.test.tsx +3 -1
- package/src/BottomInfoContent/index.tsx +1 -1
- package/src/Breadcrumbs/index.test.tsx +3 -1
- package/src/Breadcrumbs/index.tsx +1 -1
- package/src/BreadcrumbsList/index.test.tsx +3 -1
- package/src/BreadcrumbsList/index.tsx +1 -1
- package/src/BreadcrumbsListItemLink/index.test.tsx +2 -1
- package/src/BreadcrumbsListItemLink/index.tsx +1 -1
- package/src/Button/index.test.tsx +23 -8
- package/src/ButtonGroup/index.test.tsx +3 -1
- package/src/ButtonGroup/index.tsx +1 -1
- package/src/ButtonLink/index.test.tsx +8 -3
- package/src/ButtonLink/index.tsx +5 -5
- package/src/CallToAction/index.test.tsx +3 -1
- package/src/Card/index.test.tsx +9 -3
- package/src/Card/index.tsx +10 -1
- package/src/CardAction/index.tsx +1 -1
- package/src/CardContent/index.test.tsx +3 -1
- package/src/CardContent/index.tsx +1 -1
- package/src/CardHeading/index.test.tsx +3 -1
- package/src/CardHeading/index.tsx +1 -1
- package/src/CheckboxConditional/index.tsx +1 -1
- package/src/CheckboxItem/index.test.tsx +6 -2
- package/src/CheckboxItem/index.tsx +10 -3
- package/src/CheckboxItemInput/index.native.tsx +2 -2
- package/src/CheckboxItemInput/index.tsx +1 -1
- package/src/CheckboxItemInput/index.web.tsx +3 -4
- package/src/ChipContainer/index.spec.tsx +3 -1
- package/src/ChipHeading/index.test.tsx +3 -1
- package/src/ChipKeyValue/index.test.tsx +3 -1
- package/src/ChipKeyValue/index.tsx +1 -1
- package/src/ChoiceDividerText/index.test.tsx +3 -1
- package/src/ChoiceDividerText/index.tsx +1 -1
- package/src/CircularProgress/index.test.tsx +3 -1
- package/src/CloseButton/index.test.tsx +3 -1
- package/src/Code/index.test.tsx +7 -3
- package/src/CodeBlockContainer/index.tsx +1 -1
- package/src/CodeBlockContent/index.tsx +1 -1
- package/src/Container/index.test.tsx +3 -1
- package/src/CopyToClipboardContainer/index.spec.tsx +2 -1
- package/src/CopyToClipboardContainer/index.tsx +1 -1
- package/src/CopyToClipboardMessage/index.native.tsx +2 -2
- package/src/CopyToClipboardMessage/index.test.tsx +6 -3
- package/src/CopyToClipboardMessage/index.tsx +1 -1
- package/src/CopyrightContainer/index.tsx +1 -1
- package/src/DateInputItem/index.native.tsx +7 -10
- package/src/DateInputItem/index.test.tsx +3 -1
- package/src/DateInputItem/index.tsx +1 -1
- package/src/DateInputItem/index.web.tsx +12 -3
- package/src/Details/index.tsx +2 -2
- package/src/Details/index.web.tsx +1 -1
- package/src/DetailsContent/index.test.tsx +3 -1
- package/src/DetailsContent/index.tsx +1 -1
- package/src/DetailsSummary/index.test.tsx +3 -1
- package/src/DrawerHeading/index.tsx +1 -5
- package/src/DropdownBase/index.test.tsx +6 -2
- package/src/DropdownButton/__snapshots__/index.test.tsx.snap +13 -13
- package/src/DropdownButton/index.test.tsx +8 -4
- package/src/DropdownContent/index.test.tsx +3 -1
- package/src/DropdownContent/index.tsx +1 -1
- package/src/ErrorMessage/index.test.tsx +3 -1
- package/src/ErrorMessage/index.tsx +1 -1
- package/src/ErrorSummary/index.test.tsx +6 -2
- package/src/ErrorSummary/index.tsx +17 -4
- package/src/FieldContainer/index.test.tsx +3 -1
- package/src/Fieldset/index.tsx +1 -1
- package/src/FieldsetLegend/index.test.tsx +3 -1
- package/src/FileUpload/index.test.tsx +3 -1
- package/src/FileUploadContainer/index.test.tsx +3 -1
- package/src/FillableText/index.test.tsx +3 -1
- package/src/FillableText/index.tsx +1 -1
- package/src/FilterContainer/index.test.tsx +10 -4
- package/src/FilterContainer/index.tsx +2 -1
- package/src/FilterContent/index.test.tsx +3 -1
- package/src/FilterContent/index.tsx +1 -1
- package/src/FilterSelectedHeading/index.tsx +1 -1
- package/src/FilterSelectedSection/index.tsx +1 -1
- package/src/Footer/index.tsx +1 -1
- package/src/FooterContainer/index.test.tsx +3 -1
- package/src/FooterContent/index.test.tsx +3 -1
- package/src/FooterContent/index.tsx +1 -1
- package/src/FooterContentLogos/index.tsx +1 -1
- package/src/FooterHeading/index.test.tsx +3 -1
- package/src/FooterImage/index.tsx +1 -1
- package/src/FooterInfo/index.tsx +1 -1
- package/src/FooterInfoSection/index.test.tsx +5 -2
- package/src/FooterLink/index.test.tsx +3 -1
- package/src/FooterLink/index.tsx +1 -1
- package/src/FooterList/index.test.tsx +3 -1
- package/src/FooterListItem/index.test.tsx +3 -1
- package/src/FooterListItem/index.tsx +1 -1
- package/src/FooterNavigation/index.test.tsx +3 -1
- package/src/FooterNavigation/index.tsx +1 -1
- package/src/FooterNavigationSection/index.tsx +1 -1
- package/src/FullPageBackground/index.tsx +1 -1
- package/src/GovGRLogo/index.tsx +1 -1
- package/src/Grid/index.tsx +2 -2
- package/src/HeaderContent/index.test.tsx +3 -1
- package/src/HeaderContent/index.tsx +1 -1
- package/src/HeaderNavMenuContent/index.tsx +1 -1
- package/src/HeaderSection/index.test.tsx +3 -1
- package/src/HeaderSection/index.tsx +1 -1
- package/src/HeaderTitle/index.test.tsx +5 -2
- package/src/HeaderTitle/index.tsx +1 -1
- package/src/Heading/index.test.tsx +15 -5
- package/src/HeadingCaption/index.test.tsx +3 -1
- package/src/Hidden/index.tsx +14 -1
- package/src/Hint/index.test.tsx +9 -3
- package/src/Hint/index.tsx +6 -6
- package/src/ImageLogo/index.test.tsx +3 -1
- package/src/ImageLogo/index.tsx +1 -4
- package/src/ImageLogoSet/index.test.tsx +2 -1
- package/src/ImageLogoSet/index.tsx +3 -6
- package/src/KitchenSinkAllComponents/index.tsx +1 -1
- package/src/KitchenSinkCard/index.tsx +1 -1
- package/src/KitchenSinkCategory/index.tsx +1 -1
- package/src/KitchenSinkContentInfo/index.tsx +1 -1
- package/src/KitchenSinkContentTags/index.tsx +1 -1
- package/src/KitchenSinkHeading/index.tsx +1 -1
- package/src/KitchenSinkLetterContent/index.tsx +1 -1
- package/src/LabelContainer/index.test.tsx +3 -1
- package/src/LabelContainer/index.tsx +1 -1
- package/src/LabelTitle/index.test.tsx +15 -5
- package/src/LabeledText/index.test.tsx +3 -1
- package/src/LinkBase/index.test.tsx +6 -2
- package/src/LinkBase/index.tsx +4 -1
- package/src/List/__snapshots__/index.test.tsx.snap +19 -19
- package/src/List/index.test.tsx +8 -4
- package/src/ListItem/index.tsx +1 -1
- package/src/LoaderContainer/index.tsx +1 -1
- package/src/Main/index.tsx +1 -1
- package/src/MastheadBody/index.test.tsx +3 -1
- package/src/MastheadBody/index.tsx +1 -1
- package/src/MastheadLogo/index.tsx +1 -1
- package/src/ModalAction/index.test.tsx +3 -1
- package/src/ModalAction/index.tsx +1 -1
- package/src/ModalContainer/index.test.tsx +3 -1
- package/src/ModalContent/index.test.tsx +3 -1
- package/src/ModalContent/index.tsx +1 -1
- package/src/ModalHeading/index.test.tsx +3 -1
- package/src/ModalHeading/index.tsx +1 -1
- package/src/Nav/index.test.tsx +6 -2
- package/src/NavListItemAction/index.test.tsx +2 -1
- package/src/NavListItemAction/index.tsx +2 -4
- package/src/NavListItemActionContainer/index.test.tsx +2 -1
- package/src/NavListItemActionContainer/index.web.tsx +1 -1
- package/src/NavListItemBadge/index.tsx +1 -1
- package/src/NavListItemButton/index.test.tsx +7 -3
- package/src/NavListItemLink/index.test.tsx +3 -1
- package/src/NavMenuContainer/index.test.tsx +7 -3
- package/src/NavMenuContent/index.tsx +2 -3
- package/src/NavMenuContentListBase/index.tsx +1 -1
- package/src/NavMenuContentListItem/index.tsx +1 -1
- package/src/NavMenuTitle/index.test.tsx +3 -1
- package/src/NavMenuTitle/index.tsx +1 -1
- package/src/NormalText/__snapshots__/index.test.tsx.snap +0 -12
- package/src/NormalText/index.test.tsx +33 -21
- package/src/NotificationBannerContainer/index.test.tsx +2 -1
- package/src/NotificationBannerContainer/index.tsx +2 -1
- package/src/NotificationBannerContent/index.test.tsx +2 -1
- package/src/NotificationBannerContent/index.tsx +50 -4
- package/src/NotificationBannerHeader/index.test.tsx +2 -1
- package/src/NotificationBannerHeader/index.tsx +1 -1
- package/src/NotificationBannerHeading/index.test.tsx +2 -1
- package/src/NotificationBannerHeading/index.tsx +1 -1
- package/src/NotificationBannerLink/index.native.tsx +1 -1
- package/src/NotificationBannerLink/index.tsx +1 -1
- package/src/NotificationBannerLink/index.web.tsx +1 -1
- package/src/PageTitleCaption/index.test.tsx +3 -1
- package/src/PageTitleContainer/index.tsx +1 -1
- package/src/PageTitleHeading/index.test.tsx +3 -1
- package/src/Pagination/index.spec.tsx +3 -1
- package/src/PaginationLabelContainer/index.spec.tsx +2 -1
- package/src/PaginationLabelContainer/index.tsx +1 -1
- package/src/PaginationList/index.spec.tsx +3 -1
- package/src/PaginationList/index.tsx +1 -1
- package/src/PaginationListItem/index.spec.tsx +4 -2
- package/src/PanelBody/index.tsx +1 -1
- package/src/PanelTitle/index.tsx +1 -1
- package/src/Paragraph/__snapshots__/index.test.tsx.snap +0 -12
- package/src/Paragraph/index.test.tsx +33 -17
- package/src/PhaseBanner/index.test.tsx +6 -2
- package/src/PhaseBanner/index.tsx +2 -1
- package/src/PhaseBannerHeaderContainer/inde.test.tsx +2 -1
- package/src/PhaseBannerHeaderContainer/index.tsx +1 -1
- package/src/PhaseBannerTag/index.test.tsx +3 -1
- package/src/PhaseBannerTag/index.tsx +1 -1
- package/src/PhaseBannerText/index.test.tsx +3 -1
- package/src/PhaseBannerText/index.tsx +1 -1
- package/src/RadioConditional/index.test.tsx +3 -1
- package/src/RadioConditional/index.tsx +1 -1
- package/src/RadioContainer/index.test.tsx +8 -3
- package/src/RadioItem/index.test.tsx +6 -2
- package/src/RadioItem/index.tsx +2 -1
- package/src/ResultsActionBar/index.tsx +1 -1
- package/src/ResultsActionBar/indext.test.tsx +3 -1
- package/src/ResultsHeading/index.test.tsx +3 -1
- package/src/ResultsHeading/index.tsx +1 -1
- package/src/SearchButton/index.tsx +1 -1
- package/src/SearchContainer/index.test.tsx +3 -1
- package/src/SearchContainer/index.tsx +1 -1
- package/src/SectionBreak/index.test.tsx +3 -1
- package/src/SelectContainer/index.test.tsx +5 -2
- package/src/SelectOption/index.test.tsx +3 -1
- package/src/SelectOption/index.tsx +1 -1
- package/src/SingleCharacterInput/__snapshots__/index.test.tsx.snap +0 -15
- package/src/SingleCharacterInput/index.test.tsx +3 -7
- package/src/SingleCharacterInputs/index.tsx +1 -1
- package/src/Skeleton/index.test.tsx +36 -9
- package/src/Skeleton/index.tsx +4 -3
- package/src/SkipLink/index.tsx +1 -1
- package/src/Stack/index.test.tsx +54 -18
- package/src/Stack/index.tsx +2 -2
- package/src/StepNavAccordion/index.test.tsx +3 -1
- package/src/StepNavAccordion/index.tsx +2 -2
- package/src/StepNavAccordionContent/index.tsx +1 -1
- package/src/StepNavAccordionHeadingText/index.test.tsx +2 -1
- package/src/StepNavAccordionHeadingTitle/index.test.tsx +2 -1
- package/src/StepNavAccordionHeadingTitle/index.tsx +1 -1
- package/src/StepNavAccordionSummary/index.tsx +1 -1
- package/src/StepNavCircleNumber/index.test.tsx +2 -1
- package/src/StepNavControls/index.test.tsx +3 -1
- package/src/StepNavControls/index.tsx +1 -1
- package/src/StepNavList/index.test.tsx +3 -1
- package/src/StepNavList/index.tsx +1 -1
- package/src/StepNavListItem/index.test.tsx +3 -1
- package/src/StepNavListItem/index.tsx +1 -1
- package/src/SummaryList/index.test.tsx +3 -1
- package/src/SummaryListItem/index.test.tsx +3 -1
- package/src/SummaryListItemAction/index.tsx +1 -1
- package/src/SummaryListItemValue/index.tsx +1 -1
- package/src/Table/__snapshots__/index.test.tsx.snap +4 -4
- package/src/Table/index.test.tsx +36 -6
- package/src/TableBody/index.test.tsx +7 -1
- package/src/TableCaption/index.test.tsx +27 -5
- package/src/TableContainer/index.test.tsx +3 -1
- package/src/TableDataCell/index.test.tsx +21 -3
- package/src/TableHead/index.test.tsx +12 -2
- package/src/TableHead/index.tsx +1 -1
- package/src/TableHeadCell/index.test.tsx +129 -15
- package/src/TableLoaderBackground/index.tsx +1 -1
- package/src/TableNoDataRow/index.test.tsx +9 -1
- package/src/TableNoDataRow/index.tsx +1 -1
- package/src/TableRow/index.test.tsx +27 -3
- package/src/TableSortIconContainer/index.tsx +1 -1
- package/src/TabsHeading/index.test.tsx +9 -3
- package/src/TabsHeading/index.tsx +1 -1
- package/src/TabsList/index.tsx +1 -1
- package/src/TabsListItemBase/__snapshots__/index.test.tsx.snap +9 -9
- package/src/TabsListItemBase/index.test.tsx +4 -2
- package/src/TabsPanelBase/index.test.tsx +6 -2
- package/src/TaskList/index.test.tsx +3 -1
- package/src/TaskListItem/index.test.tsx +3 -1
- package/src/TaskListItem/index.tsx +1 -1
- package/src/TaskListItemContent/index.tsx +1 -1
- package/src/TaskListItemHeading/index.test.tsx +4 -2
- package/src/TaskListItemTag/index.test.tsx +5 -2
- package/src/TextArea/index.test.tsx +24 -8
- package/src/TextArea/index.tsx +1 -1
- package/src/TextArea/index.web.tsx +1 -4
- package/src/TextInput/index.test.tsx +58 -23
- package/src/TextInput/index.tsx +1 -1
- package/src/Timeline/index.test.tsx +3 -1
- package/src/TimelineActions/index.test.tsx +3 -1
- package/src/TimelineActions/index.tsx +1 -1
- package/src/TimelineContent/index.test.tsx +3 -1
- package/src/TimelineContent/index.tsx +1 -1
- package/src/TimelineHeading/__snapshots__/index.test.tsx.snap +2 -2
- package/src/TimelineHeading/index.test.tsx +3 -1
- package/src/TimelineItem/index.test.tsx +3 -1
- package/src/TimelineItem/index.tsx +1 -1
- package/src/Top/index.tsx +1 -1
- package/src/Unpurge/index.tsx +1 -2
- package/src/VisuallyHidden/index.test.tsx +3 -1
- package/src/VisuallyHidden/index.tsx +1 -1
- package/src/WarningText/index.test.tsx +6 -2
- package/src/WarningText/index.tsx +4 -4
- package/src/WarningTextAssistive/index.tsx +6 -6
- package/src/lazy.js +246 -247
- package/src/registry.js +269 -269
- package/lazy.d.ts +0 -247
- package/lazy.js.map +0 -7
- package/registry.d.ts +0 -265
- package/registry.js.map +0 -7
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface AccordionControlsProps extends BaseProps<'div'> {
|
|
5
|
+
export interface AccordionControlsProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* AccordionControls is a component that provides controls for an accordion.
|
|
8
8
|
*/
|
|
@@ -4,7 +4,9 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import AccordionSection from '@digigov/react-core/AccordionSection';
|
|
5
5
|
|
|
6
6
|
it('renders the AccordionSection with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<AccordionSection>hello</AccordionSection>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
9
11
|
|
|
10
12
|
it('renders the AccordionSection with open=true', () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
|
-
export interface AccordionSectionProps extends BaseProps<'details'> {
|
|
4
|
+
export interface AccordionSectionProps extends BaseProps<'details'> {}
|
|
5
5
|
/**
|
|
6
6
|
* AccordionSection should be inside the Accordion component.
|
|
7
7
|
*
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface AccordionSectionContentProps extends BaseProps<'div'> {
|
|
5
|
+
export interface AccordionSectionContentProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* AccordionSectionContent should be inside the AccordionSection and it is the content of the section.
|
|
8
8
|
* The content is only visible when the AccordionSection is 'open'.
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface AccordionSectionSummaryProps extends BaseProps<'summary'> {
|
|
5
|
+
export interface AccordionSectionSummaryProps extends BaseProps<'summary'> {}
|
|
6
6
|
/**
|
|
7
7
|
* AccordionSectionSummary is used as a wrapper component for AccordionSectionSummaryHeading.
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface AccordionSectionSummaryHeadingProps extends BaseProps<'h2'> {
|
|
5
|
+
export interface AccordionSectionSummaryHeadingProps extends BaseProps<'h2'> {}
|
|
6
6
|
/**
|
|
7
7
|
* AccordionSectionSummaryHeading should be placed inside AccordionSectionSummary.
|
|
8
8
|
*/
|
package/src/AdminAside/index.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Aside, { AsideProps } from '@digigov/react-core/Aside';
|
|
4
4
|
|
|
5
|
-
export interface AdminAsideProps extends AsideProps {
|
|
5
|
+
export interface AdminAsideProps extends AsideProps {}
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Use this inside AdminContainer component for placing the aside content of the page
|
|
@@ -4,8 +4,12 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import AdminContainer from '@digigov/react-core/AdminContainer';
|
|
5
5
|
|
|
6
6
|
it('renders the AdminContainer with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<AdminContainer>hello</AdminContainer>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
9
11
|
it('renders the AdminContainer with no grid', () => {
|
|
10
|
-
expect(
|
|
12
|
+
expect(
|
|
13
|
+
render(<AdminContainer grid={false}>hello</AdminContainer>).baseElement
|
|
14
|
+
).toMatchSnapshot();
|
|
11
15
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Container, { ContainerProps } from '@digigov/react-core/Container';
|
|
3
2
|
import clsx from 'clsx';
|
|
3
|
+
import Container, { ContainerProps } from '@digigov/react-core/Container';
|
|
4
4
|
|
|
5
5
|
export interface AdminContainerProps extends Omit<ContainerProps, 'grid'> {
|
|
6
6
|
/**
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import AdminHeader from '@digigov/react-core/AdminHeader';
|
|
5
5
|
|
|
6
6
|
it('renders the AdminHeader with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<AdminHeader>hello</AdminHeader>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Header, { HeaderProps } from '@digigov/react-core/Header';
|
|
4
4
|
|
|
5
|
-
export interface AdminHeaderProps extends HeaderProps {
|
|
5
|
+
export interface AdminHeaderProps extends HeaderProps {}
|
|
6
6
|
/**
|
|
7
7
|
* AdminHeader represents a container for govgr header information.
|
|
8
8
|
* This elements is placed at the top of the page.
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import HeaderContent, {
|
|
3
|
+
import HeaderContent, {
|
|
4
|
+
HeaderContentProps,
|
|
5
|
+
} from '@digigov/react-core/HeaderContent';
|
|
4
6
|
|
|
5
|
-
export interface AdminHeaderContentProps extends HeaderContentProps {
|
|
7
|
+
export interface AdminHeaderContentProps extends HeaderContentProps {}
|
|
6
8
|
/**
|
|
7
9
|
* AdminAdminHeaderContent is used inside AdminHeader as a container for its items.
|
|
8
10
|
*/
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import AdminLayout from '@digigov/react-core/AdminLayout';
|
|
5
5
|
|
|
6
6
|
it('renders the AdminLayout with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<AdminLayout>hello</AdminLayout>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -2,8 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Layout, { LayoutProps } from '@digigov/react-core/Layout';
|
|
4
4
|
|
|
5
|
-
export interface AdminLayoutProps extends LayoutProps {
|
|
6
|
-
}
|
|
5
|
+
export interface AdminLayoutProps extends LayoutProps {}
|
|
7
6
|
/**
|
|
8
7
|
* AdminLayout is the wrapper component for the entire page except for the header and the footer.
|
|
9
8
|
*/
|
package/src/AdminMain/index.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Main, { MainProps } from '@digigov/react-core/Main';
|
|
4
4
|
|
|
5
|
-
export interface AdminMainProps extends MainProps {
|
|
5
|
+
export interface AdminMainProps extends MainProps {}
|
|
6
6
|
/**
|
|
7
7
|
* Use this inside AdminContainer component for placing the main content of the page
|
|
8
8
|
*/
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import AdminTopSection from '@digigov/react-core/AdminTopSection';
|
|
5
5
|
|
|
6
6
|
it('renders the AdminTopSection no prop', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<AdminTopSection>hello</AdminTopSection>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -5,6 +5,7 @@ import AutoCompleteAssistiveHint from '@digigov/react-core/AutoCompleteAssistive
|
|
|
5
5
|
|
|
6
6
|
it('renders the AdminContainer with no props', () => {
|
|
7
7
|
expect(
|
|
8
|
-
render(<AutoCompleteAssistiveHint>hello</AutoCompleteAssistiveHint>)
|
|
8
|
+
render(<AutoCompleteAssistiveHint>hello</AutoCompleteAssistiveHint>)
|
|
9
|
+
.baseElement
|
|
9
10
|
).toMatchSnapshot();
|
|
10
11
|
});
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface AutoCompleteAssistiveHintProps extends BaseProps<'span'> {
|
|
5
|
+
export interface AutoCompleteAssistiveHintProps extends BaseProps<'span'> {}
|
|
6
6
|
/**
|
|
7
7
|
* AutoCompleteAssistiveHint is a span element for displaying the autocomplete
|
|
8
8
|
* assistive hint text.
|
|
@@ -23,7 +23,10 @@ export interface AutoCompleteContainerProps extends BaseProps<'div'> {
|
|
|
23
23
|
export const AutoCompleteContainer = React.forwardRef<
|
|
24
24
|
HTMLDivElement,
|
|
25
25
|
AutoCompleteContainerProps
|
|
26
|
-
>(function AutoCompleteContainer(
|
|
26
|
+
>(function AutoCompleteContainer(
|
|
27
|
+
{ className, width, children, ...props },
|
|
28
|
+
ref
|
|
29
|
+
) {
|
|
27
30
|
return (
|
|
28
31
|
<Base
|
|
29
32
|
as="div"
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface AutoCompleteInputTypeaheadProps extends BaseProps<'input'> {
|
|
5
|
+
export interface AutoCompleteInputTypeaheadProps extends BaseProps<'input'> {}
|
|
6
6
|
/**
|
|
7
7
|
* AutoCompleteInputTypeahead component is used to display the hole search value
|
|
8
8
|
* in the background.
|
|
@@ -6,7 +6,7 @@ export interface AutoCompleteMultipleInputContainerProps
|
|
|
6
6
|
extends BaseProps<'div'> {
|
|
7
7
|
open?: boolean;
|
|
8
8
|
isFocused?: boolean;
|
|
9
|
-
numberOfSelected?: 1 | 2 | 3 | 'all';
|
|
9
|
+
numberOfSelected?: 1 | 2 | 3 | 'all';
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Use AutoCompleteMultipleInputContainer to accept multiple values input.
|
|
@@ -15,7 +15,7 @@ export const AutoCompleteMultipleInputContainer = React.forwardRef<
|
|
|
15
15
|
HTMLDivElement,
|
|
16
16
|
AutoCompleteMultipleInputContainerProps
|
|
17
17
|
>(function AutoCompleteMultipleInputContainer(
|
|
18
|
-
{ numberOfSelected = 'all',
|
|
18
|
+
{ numberOfSelected = 'all', children, isFocused, className, ...props },
|
|
19
19
|
ref
|
|
20
20
|
) {
|
|
21
21
|
return (
|
|
@@ -25,8 +25,8 @@ export const AutoCompleteMultipleInputContainer = React.forwardRef<
|
|
|
25
25
|
className={clsx(className, {
|
|
26
26
|
'ds-autocomplete__multi-input-container': true,
|
|
27
27
|
'ds-autocomplete__multi-input-container--focused': isFocused,
|
|
28
|
-
[`ds-autocomplete__multi-input-container--${numberOfSelected}`]:
|
|
29
|
-
|
|
28
|
+
[`ds-autocomplete__multi-input-container--${numberOfSelected}`]:
|
|
29
|
+
typeof numberOfSelected === 'number',
|
|
30
30
|
})}
|
|
31
31
|
{...props}
|
|
32
32
|
>
|
|
@@ -11,6 +11,7 @@ it('renders the AutoCompleteResultList with no props', () => {
|
|
|
11
11
|
|
|
12
12
|
it('renders the AutoCompleteResultList with isVisible props', () => {
|
|
13
13
|
expect(
|
|
14
|
-
render(<AutoCompleteResultList isVisible>Hello</AutoCompleteResultList>)
|
|
14
|
+
render(<AutoCompleteResultList isVisible>Hello</AutoCompleteResultList>)
|
|
15
|
+
.baseElement
|
|
15
16
|
).toMatchSnapshot();
|
|
16
17
|
});
|
|
@@ -21,10 +21,7 @@ export interface AutoCompleteResultListProps extends BaseProps<'ul'> {
|
|
|
21
21
|
export const AutoCompleteResultList = React.forwardRef<
|
|
22
22
|
HTMLUListElement,
|
|
23
23
|
AutoCompleteResultListProps
|
|
24
|
-
>(function List(
|
|
25
|
-
{ isVisible = false, className, children, ...props },
|
|
26
|
-
ref
|
|
27
|
-
) {
|
|
24
|
+
>(function List({ isVisible = false, className, children, ...props }, ref) {
|
|
28
25
|
return (
|
|
29
26
|
<Base
|
|
30
27
|
as="ul"
|
|
@@ -5,7 +5,8 @@ import AutoCompleteResultListItem from '@digigov/react-core/AutoCompleteResultLi
|
|
|
5
5
|
|
|
6
6
|
it('renders the AutoCompleteResultList with no props', () => {
|
|
7
7
|
expect(
|
|
8
|
-
render(<AutoCompleteResultListItem>Hello</AutoCompleteResultListItem>)
|
|
8
|
+
render(<AutoCompleteResultListItem>Hello</AutoCompleteResultListItem>)
|
|
9
|
+
.baseElement
|
|
9
10
|
).toMatchSnapshot();
|
|
10
11
|
});
|
|
11
12
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface AutoCompleteStatusProps extends BaseProps<'div'> {
|
|
5
|
+
export interface AutoCompleteStatusProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* AutoCompleteStatus is a div element for displaying the autocomplete status.
|
|
8
8
|
* Use AutoCompleteStatus inside AutoCompleteStatusContainer wrapper.
|
|
@@ -5,6 +5,7 @@ import AutoCompleteStatusContainer from '@digigov/react-core/AutoCompleteStatusC
|
|
|
5
5
|
|
|
6
6
|
it('renders the AdminContainer with no props', () => {
|
|
7
7
|
expect(
|
|
8
|
-
render(<AutoCompleteStatusContainer>hello</AutoCompleteStatusContainer>)
|
|
8
|
+
render(<AutoCompleteStatusContainer>hello</AutoCompleteStatusContainer>)
|
|
9
|
+
.baseElement
|
|
9
10
|
).toMatchSnapshot();
|
|
10
11
|
});
|
|
@@ -7,5 +7,7 @@ it('renders the BackLink with no props', () => {
|
|
|
7
7
|
expect(render(<BackLink>hello</BackLink>).baseElement).toMatchSnapshot();
|
|
8
8
|
});
|
|
9
9
|
it('renders the BackLink with href="#"', () => {
|
|
10
|
-
expect(
|
|
10
|
+
expect(
|
|
11
|
+
render(<BackLink href="#">hello</BackLink>).baseElement
|
|
12
|
+
).toMatchSnapshot();
|
|
11
13
|
});
|
package/src/BackLink/index.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
import { CaretIcon } from '@digigov/react-icons';
|
|
5
5
|
|
|
6
|
-
export interface BackLinkProps extends BaseProps<'a'> {
|
|
6
|
+
export interface BackLinkProps extends BaseProps<'a'> {}
|
|
7
7
|
/**
|
|
8
8
|
* Use BackLink component to help users go back to the previous page in a multi-page transaction.
|
|
9
9
|
*/
|
|
@@ -17,9 +17,7 @@ export const BackLink = React.forwardRef<HTMLAnchorElement, BackLinkProps>(
|
|
|
17
17
|
as="a"
|
|
18
18
|
printHidden={printHidden}
|
|
19
19
|
href={href}
|
|
20
|
-
onClick={() =>
|
|
21
|
-
!href && window.history.back();
|
|
22
|
-
}}
|
|
20
|
+
onClick={() => !href && window.history.back()}
|
|
23
21
|
ref={ref}
|
|
24
22
|
className={clsx(className, {
|
|
25
23
|
'ds-back-link': true,
|
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
import { ArrowIcon } from '@digigov/react-icons';
|
|
5
5
|
|
|
6
|
-
export interface BackToTopLinkProps extends BaseProps<'a'> {
|
|
6
|
+
export interface BackToTopLinkProps extends BaseProps<'a'> {}
|
|
7
7
|
/**
|
|
8
8
|
* Use BackToTopLink component to help users go to the top of the page.
|
|
9
9
|
*/
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import BannerContainer from '@digigov/react-core/BannerContainer';
|
|
5
5
|
|
|
6
6
|
it('renders the BannerContainer with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<BannerContainer>hello</BannerContainer>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { Base, BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface BannerContainerProps extends BaseProps<'div'> {
|
|
5
|
+
export interface BannerContainerProps extends BaseProps<'div'> {}
|
|
6
6
|
|
|
7
7
|
export const BannerContainer = React.forwardRef<
|
|
8
8
|
HTMLDivElement,
|
|
@@ -21,7 +21,7 @@ export const FormButton = React.forwardRef<unknown, ButtonProps>(
|
|
|
21
21
|
ref={ref}
|
|
22
22
|
{...props}
|
|
23
23
|
onClick={() => {
|
|
24
|
-
onClick
|
|
24
|
+
if (onClick) onClick({} as React.MouseEvent<HTMLButtonElement>);
|
|
25
25
|
if (props.type) formContext?.[props.type]();
|
|
26
26
|
}}
|
|
27
27
|
/>
|
|
@@ -72,7 +72,7 @@ export const Base: BaseComponent = React.forwardRef(function Base<
|
|
|
72
72
|
ref: React.ComponentPropsWithRef<C>['ref']
|
|
73
73
|
) {
|
|
74
74
|
const classNames = className?.split(' ') || [];
|
|
75
|
-
let applyBasePropsToWrapper
|
|
75
|
+
let applyBasePropsToWrapper = true;
|
|
76
76
|
|
|
77
77
|
const basePropToClassName = basePropGenerator({
|
|
78
78
|
display,
|
package/src/Base/index.web.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { basePropGenerator } from '@digigov/react-core/Base/utils';
|
|
4
|
-
|
|
4
|
+
interface AsProp<C extends React.ElementType> {
|
|
5
5
|
as?: C;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
|
|
8
8
|
type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
|
|
9
9
|
|
|
@@ -146,13 +146,13 @@ export type SpacingValues =
|
|
|
146
146
|
| 80
|
|
147
147
|
| 96;
|
|
148
148
|
|
|
149
|
-
export
|
|
149
|
+
export interface SpacingMediaValues {
|
|
150
150
|
xs?: SpacingValues;
|
|
151
151
|
sm?: SpacingValues;
|
|
152
152
|
md?: SpacingValues;
|
|
153
153
|
lg?: SpacingValues;
|
|
154
154
|
xl?: SpacingValues;
|
|
155
|
-
}
|
|
155
|
+
}
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* This is the type used in the type annotation for the component
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Link } from 'expo-router';
|
|
3
|
+
import { cssInterop } from 'nativewind';
|
|
3
4
|
import { Image, View } from 'react-native';
|
|
4
5
|
import Svg, { Path, Circle, Rect, G, Polygon } from 'react-native-svg';
|
|
5
6
|
import { Button } from '@digigov/react-core/Base/compat/button.native';
|
|
6
7
|
import CompatDetails from '@digigov/react-core/Base/compat/details.native';
|
|
7
8
|
import BaseInput from '@digigov/react-core/Base/compat/Input/index.native';
|
|
8
9
|
import { Ol } from '@digigov/react-core/Base/compat/ol.native';
|
|
9
|
-
import { cssInterop } from 'nativewind'
|
|
10
10
|
export type MapProps<T extends keyof JSX.IntrinsicElements> =
|
|
11
11
|
React.ComponentPropsWithoutRef<T>;
|
|
12
12
|
|
|
@@ -19,7 +19,11 @@ export type MappingType = {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export const mapping: MappingType = {
|
|
22
|
-
a: ({ children, ...props }) =>
|
|
22
|
+
a: ({ children, ...props }) => (
|
|
23
|
+
<Link {...props} asChild>
|
|
24
|
+
<View>{children}</View>
|
|
25
|
+
</Link>
|
|
26
|
+
),
|
|
23
27
|
img: (props) => <Image {...props} />,
|
|
24
28
|
button: Button,
|
|
25
29
|
input: BaseInput,
|
|
@@ -30,8 +34,8 @@ export const mapping: MappingType = {
|
|
|
30
34
|
// @ts-ignore
|
|
31
35
|
svg: cssInterop(Svg, {
|
|
32
36
|
className: {
|
|
33
|
-
target:
|
|
34
|
-
nativeStyleToProp: { width: true, height: true }
|
|
37
|
+
target: 'style',
|
|
38
|
+
nativeStyleToProp: { width: true, height: true },
|
|
35
39
|
},
|
|
36
40
|
}),
|
|
37
41
|
rect: (props) => <Rect {...props} />,
|
package/src/Base/wrap.native.tsx
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React, { useContext, useMemo, useState } from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
(cls: string): void;
|
|
6
|
-
}
|
|
4
|
+
type WrapperContextType = (cls: string) => void;
|
|
7
5
|
|
|
8
6
|
const WrapperContext = React.createContext<WrapperContextType>(
|
|
9
7
|
(cls: string) => {
|
|
@@ -25,6 +23,7 @@ const Wrapper = React.memo(function Wrapper({
|
|
|
25
23
|
</WrapperContext.Provider>
|
|
26
24
|
);
|
|
27
25
|
});
|
|
26
|
+
Wrapper.displayName = 'Wrapper';
|
|
28
27
|
|
|
29
28
|
interface WrappedComponentProps {
|
|
30
29
|
className?: string;
|
|
@@ -71,11 +70,11 @@ export const wrap = (Component: React.ElementType) => {
|
|
|
71
70
|
ref={ref}
|
|
72
71
|
onFocus={(e: unknown) => {
|
|
73
72
|
setClassName(focusedWrapperClassNames.join(' '));
|
|
74
|
-
onFocus
|
|
73
|
+
if (onFocus) onFocus(e);
|
|
75
74
|
}}
|
|
76
75
|
onBlur={(e: unknown) => {
|
|
77
76
|
setClassName(wrapperClassNames.join(' '));
|
|
78
|
-
onBlur
|
|
77
|
+
if (onBlur) onBlur(e);
|
|
79
78
|
}}
|
|
80
79
|
className={classNames.join(' ')}
|
|
81
80
|
{...props}
|
|
@@ -8,5 +8,7 @@ it('renders the Blockquote with no props', () => {
|
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
it('renders the Blockquote with dense props', () => {
|
|
11
|
-
expect(
|
|
11
|
+
expect(
|
|
12
|
+
render(<Blockquote dense>hello</Blockquote>).baseElement
|
|
13
|
+
).toMatchSnapshot();
|
|
12
14
|
});
|
package/src/Bottom/index.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface BottomProps extends BaseProps<'div'> {
|
|
5
|
+
export interface BottomProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* Bottom is used inside the Layout component and it must be the last component in order.
|
|
8
8
|
*/
|
package/src/BottomInfo/index.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Container, { ContainerProps } from '@digigov/react-core/Container';
|
|
4
4
|
|
|
5
|
-
export interface BottomInfoProps extends ContainerProps {
|
|
5
|
+
export interface BottomInfoProps extends ContainerProps {}
|
|
6
6
|
/**
|
|
7
7
|
* Bottom BottomInfo is used inside the Bottom component and it must be the first component in order.
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Container, { ContainerProps } from '@digigov/react-core/Container';
|
|
4
4
|
|
|
5
|
-
export interface BottomInfoContainerProps extends ContainerProps {
|
|
5
|
+
export interface BottomInfoContainerProps extends ContainerProps {}
|
|
6
6
|
/**
|
|
7
7
|
* Bottom BottomInfoContainer is used inside the Bottom component and it must be the first component in order.
|
|
8
8
|
*/
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import BottomInfoContent from '@digigov/react-core/BottomInfoContent';
|
|
5
5
|
|
|
6
6
|
it('renders the BottomInfoContent with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<BottomInfoContent>hello</BottomInfoContent>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Grid, { GridProps } from '@digigov/react-core/Grid';
|
|
4
4
|
|
|
5
|
-
export interface BottomInfoContentProps extends GridProps {
|
|
5
|
+
export interface BottomInfoContentProps extends GridProps {}
|
|
6
6
|
/**
|
|
7
7
|
* BottomInfoContent is used inside the BottomInfoContainer component.
|
|
8
8
|
*/
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import Breadcrumbs from '@digigov/react-core/Breadcrumbs';
|
|
5
5
|
|
|
6
6
|
it('renders the Breadcrumbs with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<Breadcrumbs>hello</Breadcrumbs>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface BreadcrumbsProps extends BaseProps<'div'> {
|
|
5
|
+
export interface BreadcrumbsProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* Use Breadcrumbs component when you need to help users understand and move between the multiple levels of a website.
|
|
8
8
|
* The breadcrumb should start with your ‘home’ page and end with the parent section of the current page.
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import BreadcrumbsList from '@digigov/react-core/BreadcrumbsList';
|
|
5
5
|
|
|
6
6
|
it('renders the BreadcrumbsList with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<BreadcrumbsList>hello</BreadcrumbsList>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
|
-
export interface BreadcrumbsListProps extends BaseProps<'ol'> {
|
|
5
|
+
export interface BreadcrumbsListProps extends BaseProps<'ol'> {}
|
|
6
6
|
/**
|
|
7
7
|
* BreadcrumbsList is used for providing the items inside Breadcrumbs.
|
|
8
8
|
*/
|
|
@@ -10,6 +10,7 @@ it('renders the BreadcrumbsListItemLink with no props', () => {
|
|
|
10
10
|
});
|
|
11
11
|
it('renders the BreadcrumbsListItemLink with href', () => {
|
|
12
12
|
expect(
|
|
13
|
-
render(<BreadcrumbsListItemLink href="#">hello</BreadcrumbsListItemLink>)
|
|
13
|
+
render(<BreadcrumbsListItemLink href="#">hello</BreadcrumbsListItemLink>)
|
|
14
|
+
.baseElement
|
|
14
15
|
).toMatchSnapshot();
|
|
15
16
|
});
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Link, { LinkBaseProps } from '@digigov/react-core/LinkBase';
|
|
4
4
|
|
|
5
|
-
export interface BreadcrumbsListItemLinkProps extends LinkBaseProps {
|
|
5
|
+
export interface BreadcrumbsListItemLinkProps extends LinkBaseProps {}
|
|
6
6
|
/**
|
|
7
7
|
* BreadcrumbsListItemLink creates an anchor link to navigate in different
|
|
8
8
|
* parts of the breadcrumbs.
|