@digigov/react-core 2.0.0-rc.23 → 2.0.0-rc.25
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.d.ts +17 -0
- package/{AutoCompleteInput → AutoCompleteInputBase}/index.js +4 -4
- package/AutoCompleteInputBase/index.js.map +7 -0
- package/{AutoCompleteInput → AutoCompleteInputBase}/package.json +1 -1
- 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 +6 -3
- package/Base/wrap.native.js.map +3 -3
- 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/BreadcrumbsListItem/index.d.ts +3 -8
- package/BreadcrumbsListItem/index.js +4 -16
- package/BreadcrumbsListItem/index.js.map +3 -3
- package/BreadcrumbsListItemLink/index.d.ts +14 -0
- package/BreadcrumbsListItemLink/index.js +24 -0
- package/BreadcrumbsListItemLink/index.js.map +7 -0
- package/{SvgIcon → BreadcrumbsListItemLink}/package.json +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/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/NotificationBannerContent/index.js.map +1 -1
- 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 +1 -1
- 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/TextInput/index.native/index.js +3 -3
- package/TextInput/index.native.js.map +2 -2
- 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/{AutoCompleteInput → AutoCompleteInputBase}/index.js +8 -8
- package/cjs/AutoCompleteInputBase/index.js.map +7 -0
- 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 +6 -3
- package/cjs/Base/wrap.native.js.map +3 -3
- 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/BreadcrumbsListItem/index.js +5 -17
- package/cjs/BreadcrumbsListItem/index.js.map +3 -3
- package/cjs/{SvgIcon → BreadcrumbsListItemLink}/index.js +23 -29
- package/cjs/BreadcrumbsListItemLink/index.js.map +7 -0
- 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/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/NotificationBannerContent/index.js.map +1 -1
- 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 +1 -1
- 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/TextInput/index.native/index.js +3 -3
- package/cjs/TextInput/index.native.js.map +2 -2
- 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/index.js +2 -4
- package/cjs/index.js.map +2 -2
- package/cjs/lazy/index.js +1220 -244
- package/cjs/lazy.js.map +2 -2
- package/cjs/registry/index.js +578 -194
- package/cjs/registry.js.map +2 -2
- package/index.d.ts +1 -2
- package/index.js +2 -3
- package/index.js.map +2 -2
- package/lazy/index.js +1220 -244
- package/lazy.d.ts +3 -3
- package/lazy.js.map +2 -2
- package/package.json +3 -3
- package/registry/index.js +578 -194
- package/registry.d.ts +2 -2
- package/registry.js.map +2 -2
- 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/{AutoCompleteInput → AutoCompleteInputBase}/index.test.tsx +4 -4
- package/src/{AutoCompleteInput → AutoCompleteInputBase}/index.tsx +6 -7
- 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 +9 -6
- 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/BreadcrumbsListItem/__snapshots__/index.test.tsx.snap +1 -22
- package/src/BreadcrumbsListItem/index.test.tsx +0 -5
- package/src/BreadcrumbsListItem/index.tsx +6 -22
- package/src/BreadcrumbsListItemLink/__snapshots__/index.test.tsx.snap +26 -0
- package/src/BreadcrumbsListItemLink/index.test.tsx +16 -0
- package/src/BreadcrumbsListItemLink/index.tsx +33 -0
- 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/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/NotificationBannerContent/index.test.tsx +2 -1
- package/src/NotificationBannerContent/index.tsx +1 -1
- 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 +1 -1
- 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.native.tsx +3 -3
- 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/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/index.ts +1 -2
- package/src/lazy.js +1222 -247
- package/src/registry.js +581 -201
- package/AutoCompleteInput/index.d.ts +0 -17
- package/AutoCompleteInput/index.js.map +0 -7
- package/SvgIcon/index.d.ts +0 -37
- package/SvgIcon/index.js +0 -30
- package/SvgIcon/index.js.map +0 -7
- package/cjs/AutoCompleteInput/index.js.map +0 -7
- package/cjs/SvgIcon/index.js.map +0 -7
- package/src/SvgIcon/__snapshots__/index.test.tsx.snap +0 -254
- package/src/SvgIcon/index.test.tsx +0 -68
- package/src/SvgIcon/index.tsx +0 -72
- /package/{AutoCompleteInput → AutoCompleteInputBase}/index.test.d.ts +0 -0
- /package/{SvgIcon → BreadcrumbsListItemLink}/index.test.d.ts +0 -0
- /package/src/{AutoCompleteInput → AutoCompleteInputBase}/__snapshots__/index.test.tsx.snap +0 -0
|
@@ -7,22 +7,34 @@ it('renders the Button with no props', () => {
|
|
|
7
7
|
expect(render(<Button>hello</Button>).baseElement).toMatchSnapshot();
|
|
8
8
|
});
|
|
9
9
|
it('renders the Button with color=primary', () => {
|
|
10
|
-
expect(
|
|
10
|
+
expect(
|
|
11
|
+
render(<Button color={'primary'}>hello</Button>).baseElement
|
|
12
|
+
).toMatchSnapshot();
|
|
11
13
|
});
|
|
12
14
|
it('renders the Button with color=secondary', () => {
|
|
13
|
-
expect(
|
|
15
|
+
expect(
|
|
16
|
+
render(<Button color={'secondary'}>hello</Button>).baseElement
|
|
17
|
+
).toMatchSnapshot();
|
|
14
18
|
});
|
|
15
19
|
it('renders the Button with color=warning', () => {
|
|
16
|
-
expect(
|
|
20
|
+
expect(
|
|
21
|
+
render(<Button color={'warning'}>hello</Button>).baseElement
|
|
22
|
+
).toMatchSnapshot();
|
|
17
23
|
});
|
|
18
24
|
it('renders the Button with disabled=true', () => {
|
|
19
|
-
expect(
|
|
25
|
+
expect(
|
|
26
|
+
render(<Button disabled={true}>hello</Button>).baseElement
|
|
27
|
+
).toMatchSnapshot();
|
|
20
28
|
});
|
|
21
29
|
it('renders the Button with disabled=false', () => {
|
|
22
|
-
expect(
|
|
30
|
+
expect(
|
|
31
|
+
render(<Button disabled={false}>hello</Button>).baseElement
|
|
32
|
+
).toMatchSnapshot();
|
|
23
33
|
});
|
|
24
34
|
it('renders the Button with dense=true', () => {
|
|
25
|
-
expect(
|
|
35
|
+
expect(
|
|
36
|
+
render(<Button dense={true}>hello</Button>).baseElement
|
|
37
|
+
).toMatchSnapshot();
|
|
26
38
|
});
|
|
27
39
|
it('renders the Button with color=primary with disabled=true', () => {
|
|
28
40
|
expect(
|
|
@@ -53,9 +65,12 @@ it('renders the Button with color=warning with disabled=true', () => {
|
|
|
53
65
|
});
|
|
54
66
|
it('renders the Button with ariaLabel prop', () => {
|
|
55
67
|
expect(
|
|
56
|
-
render(<Button aria-label="button for opening menu">Menu</Button>)
|
|
68
|
+
render(<Button aria-label="button for opening menu">Menu</Button>)
|
|
69
|
+
.baseElement
|
|
57
70
|
).toMatchSnapshot();
|
|
58
71
|
});
|
|
59
72
|
it('renders the Button with tabIndex prop', () => {
|
|
60
|
-
expect(
|
|
73
|
+
expect(
|
|
74
|
+
render(<Button tabIndex={0}>Menu</Button>).baseElement
|
|
75
|
+
).toMatchSnapshot();
|
|
61
76
|
});
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import ButtonGroup from '@digigov/react-core/ButtonGroup';
|
|
5
5
|
|
|
6
6
|
it('renders the ButtonGroup with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<ButtonGroup>hello</ButtonGroup>).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 ButtonGroupProps extends BaseProps<'div'> {
|
|
5
|
+
export interface ButtonGroupProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* Use a button group when two or more buttons are placed together.
|
|
8
8
|
*/
|
|
@@ -22,7 +22,9 @@ it('renders the ButtonLink with color=warning', () => {
|
|
|
22
22
|
).toMatchSnapshot();
|
|
23
23
|
});
|
|
24
24
|
it('renders the ButtonLink with href=#', () => {
|
|
25
|
-
expect(
|
|
25
|
+
expect(
|
|
26
|
+
render(<ButtonLink href={'#'}>hello</ButtonLink>).baseElement
|
|
27
|
+
).toMatchSnapshot();
|
|
26
28
|
});
|
|
27
29
|
it('renders the ButtonLink with disabled=false', () => {
|
|
28
30
|
expect(render(<ButtonLink>hello</ButtonLink>).baseElement).toMatchSnapshot();
|
|
@@ -56,9 +58,12 @@ it('renders the ButtonLink with color=warning with href=#', () => {
|
|
|
56
58
|
});
|
|
57
59
|
it('renders the ButtonLink with ariaLabel prop', () => {
|
|
58
60
|
expect(
|
|
59
|
-
render(<ButtonLink aria-label="button for opening menu">Menu</ButtonLink>)
|
|
61
|
+
render(<ButtonLink aria-label="button for opening menu">Menu</ButtonLink>)
|
|
62
|
+
.baseElement
|
|
60
63
|
).toMatchSnapshot();
|
|
61
64
|
});
|
|
62
65
|
it('renders the Button with tabIndex prop', () => {
|
|
63
|
-
expect(
|
|
66
|
+
expect(
|
|
67
|
+
render(<ButtonLink tabIndex={0}>Menu</ButtonLink>).baseElement
|
|
68
|
+
).toMatchSnapshot();
|
|
64
69
|
});
|
package/src/ButtonLink/index.tsx
CHANGED
|
@@ -17,11 +17,11 @@ export interface ButtonLinkProps extends BaseProps<'a'> {
|
|
|
17
17
|
color?: 'primary' | 'secondary' | 'warning';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
* dense is optional.
|
|
21
|
+
* @value true Button will be dense.
|
|
22
|
+
* @value false
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
25
|
dense?: boolean;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import CallToAction from '@digigov/react-core/CallToAction';
|
|
5
5
|
|
|
6
6
|
it('renders the CallToAction with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<CallToAction>hello</CallToAction>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
package/src/Card/index.test.tsx
CHANGED
|
@@ -14,13 +14,19 @@ it('renders the Card with dense props', () => {
|
|
|
14
14
|
expect(render(<Card dense>hello</Card>).baseElement).toMatchSnapshot();
|
|
15
15
|
});
|
|
16
16
|
it('renders the Card with variant="border" props', () => {
|
|
17
|
-
expect(
|
|
17
|
+
expect(
|
|
18
|
+
render(<Card variant="border">hello</Card>).baseElement
|
|
19
|
+
).toMatchSnapshot();
|
|
18
20
|
});
|
|
19
21
|
it('renders the Card with variant="divider" props', () => {
|
|
20
|
-
expect(
|
|
22
|
+
expect(
|
|
23
|
+
render(<Card variant="divider">hello</Card>).baseElement
|
|
24
|
+
).toMatchSnapshot();
|
|
21
25
|
});
|
|
22
26
|
it('renders the Card with variant="border-top" props', () => {
|
|
23
|
-
expect(
|
|
27
|
+
expect(
|
|
28
|
+
render(<Card variant="border-top">hello</Card>).baseElement
|
|
29
|
+
).toMatchSnapshot();
|
|
24
30
|
});
|
|
25
31
|
it('renders the Card with dense" prop', () => {
|
|
26
32
|
expect(render(<Card dense>hello</Card>).baseElement).toMatchSnapshot();
|
package/src/Card/index.tsx
CHANGED
|
@@ -51,7 +51,16 @@ export interface CardProps extends BaseProps<'div'> {
|
|
|
51
51
|
* Use Card as parent component to wrap CardHeading, CardContent and CartAction components
|
|
52
52
|
*/
|
|
53
53
|
export const Card = React.forwardRef<HTMLDivElement, CardProps>(function Card(
|
|
54
|
-
{
|
|
54
|
+
{
|
|
55
|
+
variant,
|
|
56
|
+
borderColor,
|
|
57
|
+
callToAction,
|
|
58
|
+
dense,
|
|
59
|
+
fullHeight,
|
|
60
|
+
className,
|
|
61
|
+
children,
|
|
62
|
+
...props
|
|
63
|
+
},
|
|
55
64
|
ref
|
|
56
65
|
) {
|
|
57
66
|
return (
|
package/src/CardAction/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 CardActionProps extends BaseProps<'div'> {
|
|
5
|
+
export interface CardActionProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* CardAction contains the action behavior for Card Component.
|
|
8
8
|
* We can use links, Buttons or ButtonGroup with max of two buttons
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import CardContent from '@digigov/react-core/CardContent';
|
|
5
5
|
|
|
6
6
|
it('renders the CardAction with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<CardContent>hello</CardContent>).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 CardContentProps extends BaseProps<'div'> {
|
|
5
|
+
export interface CardContentProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* CardContent contains the text for Card Component
|
|
8
8
|
* Use CardContent inside Card component as children
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import CardHeading from '@digigov/react-core/CardHeading';
|
|
5
5
|
|
|
6
6
|
it('renders the CardAction with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<CardHeading>hello</CardHeading>).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 CardHeadingProps extends BaseProps<'div'> {
|
|
5
|
+
export interface CardHeadingProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* CardHeading gives header title to Card Component
|
|
8
8
|
* Use CardHeading inside Card component as children
|
|
@@ -4,7 +4,7 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
|
4
4
|
import FieldContainer from '@digigov/react-core/FieldContainer';
|
|
5
5
|
import LabelContainer from '@digigov/react-core/LabelContainer';
|
|
6
6
|
|
|
7
|
-
export interface CheckboxConditionalProps extends BaseProps<'div'> {
|
|
7
|
+
export interface CheckboxConditionalProps extends BaseProps<'div'> {}
|
|
8
8
|
/**
|
|
9
9
|
* CheckboxConditional asks the user a related question when they select a particular checkbox,
|
|
10
10
|
* so they only see the question when it’s relevant to them.
|
|
@@ -4,7 +4,9 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import CheckboxItem from '@digigov/react-core/CheckboxItem';
|
|
5
5
|
|
|
6
6
|
it('renders the CheckboxItem with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<CheckboxItem>hello</CheckboxItem>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
9
11
|
|
|
10
12
|
it('renders the CheckboxItem with `name` prop', () => {
|
|
@@ -19,7 +21,9 @@ it('renders the CheckboxItem with `value` prop', () => {
|
|
|
19
21
|
});
|
|
20
22
|
|
|
21
23
|
it('renders the CheckboxItem with `disabled` prop', () => {
|
|
22
|
-
expect(
|
|
24
|
+
expect(
|
|
25
|
+
render(<CheckboxItem disabled>hello</CheckboxItem>).baseElement
|
|
26
|
+
).toMatchSnapshot();
|
|
23
27
|
});
|
|
24
28
|
it('renders the CheckboxItem with `divider` prop', () => {
|
|
25
29
|
expect(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
|
-
import ChoiceDividerText from '@digigov/react-core/ChoiceDividerText';
|
|
5
4
|
import CheckboxItemInput from '@digigov/react-core/CheckboxItemInput';
|
|
5
|
+
import ChoiceDividerText from '@digigov/react-core/ChoiceDividerText';
|
|
6
6
|
import LabelContainer from '@digigov/react-core/LabelContainer';
|
|
7
7
|
|
|
8
8
|
export interface CheckboxItemProps extends BaseProps<'input'> {
|
|
@@ -28,7 +28,8 @@ export const CheckboxItem = React.forwardRef<
|
|
|
28
28
|
return (
|
|
29
29
|
<>
|
|
30
30
|
{dividerText && <ChoiceDividerText>{dividerText}</ChoiceDividerText>}
|
|
31
|
-
<Base
|
|
31
|
+
<Base
|
|
32
|
+
as="div"
|
|
32
33
|
className={clsx(className, {
|
|
33
34
|
'ds-checkboxes__item': true,
|
|
34
35
|
})}
|
|
@@ -40,7 +41,13 @@ export const CheckboxItem = React.forwardRef<
|
|
|
40
41
|
})}
|
|
41
42
|
>
|
|
42
43
|
{children}
|
|
43
|
-
<CheckboxItemInput
|
|
44
|
+
<CheckboxItemInput
|
|
45
|
+
ref={ref}
|
|
46
|
+
name={name}
|
|
47
|
+
value={value}
|
|
48
|
+
disabled={disabled}
|
|
49
|
+
{...props}
|
|
50
|
+
/>
|
|
44
51
|
</LabelContainer>
|
|
45
52
|
</Base>
|
|
46
53
|
</>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import extend from '@digigov/react-core/utils/extend.native';
|
|
2
|
-
import CoreCheckboxItemInput from '@digigov/react-core/CheckboxItemInput/index.web';
|
|
3
1
|
import clsx from 'clsx';
|
|
2
|
+
import CoreCheckboxItemInput from '@digigov/react-core/CheckboxItemInput/index.web';
|
|
3
|
+
import extend from '@digigov/react-core/utils/extend.native';
|
|
4
4
|
|
|
5
5
|
export const CheckboxItemInput = extend(
|
|
6
6
|
CoreCheckboxItemInput,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from '@digigov/react-core/CheckboxItemInput/index.web';
|
|
2
|
-
export { default as default } from '@digigov/react-core/CheckboxItemInput/index.web';
|
|
2
|
+
export { default as default } from '@digigov/react-core/CheckboxItemInput/index.web';
|
|
@@ -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 CheckboxItemInputProps extends BaseProps<'input'> {
|
|
5
|
+
export interface CheckboxItemInputProps extends BaseProps<'input'> {}
|
|
6
6
|
/**
|
|
7
7
|
* Details for the CheckboxItem.
|
|
8
8
|
* CheckboxItemInput component is the input component for CheckboxItem.
|
|
@@ -11,7 +11,7 @@ export const CheckboxItemInput = React.forwardRef<
|
|
|
11
11
|
HTMLInputElement,
|
|
12
12
|
CheckboxItemInputProps
|
|
13
13
|
>(function CheckboxItemInput(
|
|
14
|
-
{ name, value, className, disabled,
|
|
14
|
+
{ name, value, className, disabled, ...props },
|
|
15
15
|
ref
|
|
16
16
|
) {
|
|
17
17
|
return (
|
|
@@ -21,13 +21,12 @@ export const CheckboxItemInput = React.forwardRef<
|
|
|
21
21
|
type="checkbox"
|
|
22
22
|
name={name}
|
|
23
23
|
value={value}
|
|
24
|
-
className={clsx({
|
|
24
|
+
className={clsx(className, {
|
|
25
25
|
'ds-checkboxes__input': true,
|
|
26
26
|
})}
|
|
27
27
|
disabled={disabled}
|
|
28
28
|
{...props}
|
|
29
29
|
/>
|
|
30
|
-
|
|
31
30
|
);
|
|
32
31
|
});
|
|
33
32
|
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import ChipContainer from '@digigov/react-core/ChipContainer';
|
|
5
5
|
|
|
6
6
|
it('renders the ChipContainer with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<ChipContainer>hello!</ChipContainer>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import ChipHeading from '@digigov/react-core/ChipHeading';
|
|
5
5
|
|
|
6
6
|
it('renders the ChipHeading with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<ChipHeading>hello</ChipHeading>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import ChipKeyValue from '@digigov/react-core/ChipKeyValue';
|
|
5
5
|
|
|
6
6
|
it('renders the ChipKeyValue with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<ChipKeyValue>hello</ChipKeyValue>).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 ChipKeyValueProps extends BaseProps<'span'> {
|
|
5
|
+
export interface ChipKeyValueProps extends BaseProps<'span'> {}
|
|
6
6
|
/**
|
|
7
7
|
* ChipKeyValue is used to provide key value inside chips.
|
|
8
8
|
* ChipKeyValue component must be wrapped inside Chip component.
|
|
@@ -4,5 +4,7 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import ChoiceDividerText from '@digigov/react-core/ChoiceDividerText';
|
|
5
5
|
|
|
6
6
|
it('renders the ChoiceDivider with text prop', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<ChoiceDividerText>ή</ChoiceDividerText>).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 ChoiceDividerTextProps extends BaseProps<'div'> {
|
|
5
|
+
export interface ChoiceDividerTextProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* ChoiceDivider component adds a text divider on top of a Radio or Checkbox item.
|
|
8
8
|
* It's been used as a prop ("divider") inside RadioItem and CheckboxItem.
|
|
@@ -16,7 +16,9 @@ it('renders the CircularProgress with size lg', () => {
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
it('renders the CircularProgress with color=secondary prop', () => {
|
|
19
|
-
expect(
|
|
19
|
+
expect(
|
|
20
|
+
render(<CircularProgress color={'secondary'} />).baseElement
|
|
21
|
+
).toMatchSnapshot();
|
|
20
22
|
});
|
|
21
23
|
|
|
22
24
|
it('renders the CircularProgress with color=secondary and size sm props', () => {
|
|
@@ -7,5 +7,7 @@ it('renders the CloseButton', () => {
|
|
|
7
7
|
expect(render(<CloseButton />).baseElement).toMatchSnapshot();
|
|
8
8
|
});
|
|
9
9
|
it('renders the CloseButton with label prop', () => {
|
|
10
|
-
expect(
|
|
10
|
+
expect(
|
|
11
|
+
render(<CloseButton label="Κλείσιμο" />).baseElement
|
|
12
|
+
).toMatchSnapshot();
|
|
11
13
|
});
|
package/src/Code/index.test.tsx
CHANGED
|
@@ -12,7 +12,9 @@ it('renders the Code with color="info" prop', () => {
|
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
it('renders the Code with color="attribute" prop', () => {
|
|
15
|
-
expect(
|
|
15
|
+
expect(
|
|
16
|
+
render(<Code color="attribute">hello</Code>).baseElement
|
|
17
|
+
).toMatchSnapshot();
|
|
16
18
|
});
|
|
17
19
|
|
|
18
20
|
it('renders the Code with color="name" prop', () => {
|
|
@@ -20,5 +22,7 @@ it('renders the Code with color="name" prop', () => {
|
|
|
20
22
|
});
|
|
21
23
|
|
|
22
24
|
it('renders the Code with color="keyword" prop', () => {
|
|
23
|
-
expect(
|
|
24
|
-
|
|
25
|
+
expect(
|
|
26
|
+
render(<Code color="keyword">hello</Code>).baseElement
|
|
27
|
+
).toMatchSnapshot();
|
|
28
|
+
});
|
|
@@ -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 CodeBlockContainerProps extends BaseProps<'div'> {
|
|
5
|
+
export interface CodeBlockContainerProps extends BaseProps<'div'> {}
|
|
6
6
|
/**
|
|
7
7
|
* CodeBlockContainer is a component for displaying code.
|
|
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 CodeBlockContentProps extends BaseProps<'pre'> {
|
|
5
|
+
export interface CodeBlockContentProps extends BaseProps<'pre'> {}
|
|
6
6
|
/**
|
|
7
7
|
* CodeBlockContent can be used as content inside the CodeBlockContainer.
|
|
8
8
|
*
|
|
@@ -7,7 +7,9 @@ it('renders the Container with no props', () => {
|
|
|
7
7
|
expect(render(<Container>hello</Container>).baseElement).toMatchSnapshot();
|
|
8
8
|
});
|
|
9
9
|
it('renders the Container with fullWidth prop', () => {
|
|
10
|
-
expect(
|
|
10
|
+
expect(
|
|
11
|
+
render(<Container fullWidth>hello</Container>).baseElement
|
|
12
|
+
).toMatchSnapshot();
|
|
11
13
|
});
|
|
12
14
|
it('renders the Container with cols={false} prop', () => {
|
|
13
15
|
expect(
|
|
@@ -5,7 +5,8 @@ import CopyToClipboardContainer from '@digigov/react-core/CopyToClipboardContain
|
|
|
5
5
|
|
|
6
6
|
it('renders the CopyToClipboardContainer with no props', () => {
|
|
7
7
|
expect(
|
|
8
|
-
render(<CopyToClipboardContainer>Text copied!</CopyToClipboardContainer>)
|
|
8
|
+
render(<CopyToClipboardContainer>Text copied!</CopyToClipboardContainer>)
|
|
9
|
+
.baseElement
|
|
9
10
|
).toMatchSnapshot();
|
|
10
11
|
});
|
|
11
12
|
it('renders the CopyToClipboardContainer with variant=tooltip', () => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from '@digigov/react-core/CopyToClipboardContainer/index.web';
|
|
2
|
-
export { default as default } from '@digigov/react-core/CopyToClipboardContainer/index.web';
|
|
2
|
+
export { default as default } from '@digigov/react-core/CopyToClipboardContainer/index.web';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
import { CopyToClipboardContainerProps } from '@digigov/react-core/CopyToClipboardContainer';
|
|
1
3
|
import CoreCopyToClipboardMessage, {
|
|
2
4
|
CopyToClipboardMessageProps,
|
|
3
5
|
} from '@digigov/react-core/CopyToClipboardMessage/index.web';
|
|
4
|
-
import { CopyToClipboardContainerProps } from '@digigov/react-core/CopyToClipboardContainer';
|
|
5
6
|
import { extend } from '@digigov/react-core/utils/extend.native';
|
|
6
|
-
import clsx from 'clsx';
|
|
7
7
|
|
|
8
8
|
export const CopyToClipboardMessage = extend<
|
|
9
9
|
CopyToClipboardMessageProps,
|
|
@@ -5,19 +5,22 @@ import CopyToClipboardMessage from '@digigov/react-core/CopyToClipboardMessage';
|
|
|
5
5
|
|
|
6
6
|
it('renders the CopyToClipboardMessage with no props', () => {
|
|
7
7
|
expect(
|
|
8
|
-
render(<CopyToClipboardMessage>Text copied!</CopyToClipboardMessage>)
|
|
8
|
+
render(<CopyToClipboardMessage>Text copied!</CopyToClipboardMessage>)
|
|
9
|
+
.baseElement
|
|
9
10
|
).toMatchSnapshot();
|
|
10
11
|
});
|
|
11
12
|
|
|
12
13
|
it('renders the CopyToClipboardMessage with banner prop', () => {
|
|
13
14
|
expect(
|
|
14
|
-
render(<CopyToClipboardMessage>Text copied!</CopyToClipboardMessage>)
|
|
15
|
+
render(<CopyToClipboardMessage>Text copied!</CopyToClipboardMessage>)
|
|
16
|
+
.baseElement
|
|
15
17
|
).toMatchSnapshot();
|
|
16
18
|
});
|
|
17
19
|
|
|
18
20
|
it('renders the CopyToClipboardMessage with tooltip prop', () => {
|
|
19
21
|
expect(
|
|
20
|
-
render(<CopyToClipboardMessage>Text copied!</CopyToClipboardMessage>)
|
|
22
|
+
render(<CopyToClipboardMessage>Text copied!</CopyToClipboardMessage>)
|
|
23
|
+
.baseElement
|
|
21
24
|
).toMatchSnapshot();
|
|
22
25
|
});
|
|
23
26
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from '@digigov/react-core/CopyToClipboardMessage/index.web';
|
|
2
|
-
export { default as default } from '@digigov/react-core/CopyToClipboardMessage/index.web';
|
|
2
|
+
export { default as default } from '@digigov/react-core/CopyToClipboardMessage/index.web';
|
|
@@ -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 CopyrightContainerProps extends BaseProps<'p'> {
|
|
5
|
+
export interface CopyrightContainerProps extends BaseProps<'p'> {}
|
|
6
6
|
/**
|
|
7
7
|
* CopyrightContainer is used inside the Footer component.
|
|
8
8
|
* CopyrightContainer has no props.
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import extend from '@digigov/react-core/utils/extend.native';
|
|
2
1
|
import CoreDateInputItem from '@digigov/react-core/DateInputItem/index.web';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
);
|
|
2
|
+
import extend from '@digigov/react-core/utils/extend.native';
|
|
3
|
+
export const DateInputItem = extend(CoreDateInputItem, (props) => {
|
|
4
|
+
return {
|
|
5
|
+
...props,
|
|
6
|
+
onChange: undefined,
|
|
7
|
+
};
|
|
8
|
+
});
|
|
12
9
|
export default DateInputItem;
|
|
@@ -4,7 +4,9 @@ import { render } from '@testing-library/react';
|
|
|
4
4
|
import DateInputItem from '@digigov/react-core/DateInputItem';
|
|
5
5
|
|
|
6
6
|
it('renders the DateInputItem with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(
|
|
8
|
+
render(<DateInputItem>hello</DateInputItem>).baseElement
|
|
9
|
+
).toMatchSnapshot();
|
|
8
10
|
});
|
|
9
11
|
|
|
10
12
|
it('renders the DateInputItem with name prop', () => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from '@digigov/react-core/DateInputItem/index.web';
|
|
2
|
-
export { default as default } from '@digigov/react-core/DateInputItem/index.web';
|
|
2
|
+
export { default as default } from '@digigov/react-core/DateInputItem/index.web';
|
|
@@ -33,18 +33,27 @@ export const DateInputItem = React.forwardRef<
|
|
|
33
33
|
ref
|
|
34
34
|
) {
|
|
35
35
|
return (
|
|
36
|
-
<Base
|
|
36
|
+
<Base
|
|
37
|
+
as="div"
|
|
37
38
|
className={clsx(className, {
|
|
38
39
|
'ds-date-input__item': true,
|
|
39
40
|
})}
|
|
40
41
|
>
|
|
41
|
-
<Base
|
|
42
|
+
<Base
|
|
43
|
+
as="label"
|
|
42
44
|
className={clsx({
|
|
43
45
|
'ds-label': true,
|
|
44
46
|
})}
|
|
45
47
|
>
|
|
46
48
|
{children}
|
|
47
|
-
<TextInput
|
|
49
|
+
<TextInput
|
|
50
|
+
ref={ref}
|
|
51
|
+
type="text"
|
|
52
|
+
name={name}
|
|
53
|
+
maxWidth={`${width}-char`}
|
|
54
|
+
error={error}
|
|
55
|
+
{...props}
|
|
56
|
+
/>
|
|
48
57
|
</Base>
|
|
49
58
|
</Base>
|
|
50
59
|
);
|
package/src/Details/index.tsx
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export {default as default} from
|
|
1
|
+
export * from '@digigov/react-core/Details/index.web';
|
|
2
|
+
export { default as default } from '@digigov/react-core/Details/index.web';
|
|
@@ -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 DetailsProps extends BaseProps<'details'> {
|
|
5
|
+
export interface DetailsProps extends BaseProps<'details'> {}
|
|
6
6
|
/**
|
|
7
7
|
* Details is used to make a page easier to scan when it contains information that only some users will need.
|
|
8
8
|
* Details component wraps DetailsSummary and DetailsContent as children components
|