@digigov/react-core 2.0.0-113e6661 → 2.0.0-298cfc51
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/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/Base/index.native/index.js +47 -42
- package/Base/index.native.js.map +2 -2
- package/Base/index.web/index.js +42 -42
- package/Base/index.web.d.ts +32 -25
- package/Base/index.web.js.map +2 -2
- package/Base/utils/index.js +50 -43
- package/Base/utils.d.ts +1 -2
- package/Base/utils.js.map +2 -2
- package/Base/wrap.native/index.js +3 -1
- package/Base/wrap.native.js.map +3 -3
- package/BreadcrumbsListItem/index.d.ts +3 -8
- package/BreadcrumbsListItem/index.js +4 -14
- 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/Chip/index.js.map +2 -2
- package/Drawer/index.d.ts +7 -5
- package/Drawer/index.js +25 -12
- package/Drawer/index.js.map +2 -2
- package/FilterContainer/index.d.ts +8 -6
- package/FilterContainer/index.js +24 -11
- package/FilterContainer/index.js.map +2 -2
- package/FilterHeadingContainer/index.d.ts +12 -0
- package/FilterHeadingContainer/index.js +12 -2
- package/FilterHeadingContainer/index.js.map +2 -2
- package/LinkBase/index.d.ts +8 -0
- package/LinkBase/index.js +2 -2
- package/LinkBase/index.js.map +2 -2
- package/ModalContainer/index.js +4 -10
- package/ModalContainer/index.js.map +2 -2
- package/ResultsHeadingActions/index.js +2 -4
- package/ResultsHeadingActions/index.js.map +2 -2
- package/Stack/index.d.ts +9 -1
- package/Stack/index.js +6 -1
- package/Stack/index.js.map +2 -2
- package/TextArea/index.web/index.js +2 -3
- package/TextArea/index.web.js.map +2 -2
- package/TextInput/index.native/index.js +3 -3
- package/TextInput/index.native.js.map +2 -2
- package/Unpurge/index.js +2381 -2
- package/Unpurge/index.js.map +2 -2
- package/cjs/{AutoCompleteInput → AutoCompleteInputBase}/index.js +8 -8
- package/cjs/AutoCompleteInputBase/index.js.map +7 -0
- package/cjs/Base/index.native/index.js +47 -42
- package/cjs/Base/index.native.js.map +2 -2
- package/cjs/Base/index.web/index.js +42 -42
- package/cjs/Base/index.web.js.map +3 -3
- package/cjs/Base/utils/index.js +50 -43
- package/cjs/Base/utils.js.map +2 -2
- package/cjs/Base/wrap.native/index.js +3 -1
- package/cjs/Base/wrap.native.js.map +3 -3
- package/cjs/BreadcrumbsListItem/index.js +5 -15
- 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/Chip/index.js.map +2 -2
- package/cjs/Drawer/index.js +25 -12
- package/cjs/Drawer/index.js.map +2 -2
- package/cjs/FilterContainer/index.js +24 -11
- package/cjs/FilterContainer/index.js.map +2 -2
- package/cjs/FilterHeadingContainer/index.js +12 -2
- package/cjs/FilterHeadingContainer/index.js.map +3 -3
- package/cjs/LinkBase/index.js +2 -2
- package/cjs/LinkBase/index.js.map +2 -2
- package/cjs/ModalContainer/index.js +4 -10
- package/cjs/ModalContainer/index.js.map +2 -2
- package/cjs/ResultsHeadingActions/index.js +2 -4
- package/cjs/ResultsHeadingActions/index.js.map +3 -3
- package/cjs/Stack/index.js +6 -1
- package/cjs/Stack/index.js.map +2 -2
- package/cjs/TextArea/index.web/index.js +2 -3
- package/cjs/TextArea/index.web.js.map +2 -2
- package/cjs/TextInput/index.native/index.js +3 -3
- package/cjs/TextInput/index.native.js.map +2 -2
- package/cjs/Unpurge/index.js +2381 -2
- package/cjs/Unpurge/index.js.map +2 -2
- package/cjs/index.js +2 -4
- package/cjs/index.js.map +2 -2
- package/cjs/lazy/index.js +3 -3
- package/cjs/lazy.js.map +2 -2
- package/cjs/registry/index.js +4 -4
- 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 +3 -3
- package/lazy.d.ts +3 -3
- package/lazy.js.map +2 -2
- package/package.json +3 -3
- package/registry/index.js +4 -4
- package/registry.d.ts +2 -2
- package/registry.js.map +2 -2
- package/src/Accordion/__snapshots__/index.test.tsx.snap +2 -2
- package/src/AccordionControls/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AccordionSection/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AccordionSectionContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AccordionSectionSummary/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AdminAside/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AdminContainer/__snapshots__/index.test.tsx.snap +3 -3
- package/src/AdminHeader/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AdminHeaderContent/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/AdminLayout/__snapshots__/index.test.tsx.snap +2 -2
- package/src/AdminMain/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AdminTopSection/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Aside/__snapshots__/index.test.tsx.snap +2 -2
- package/src/AutoCompleteAssistiveHint/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AutoCompleteContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/{AutoCompleteInput → AutoCompleteInputBase}/__snapshots__/index.test.tsx.snap +3 -3
- package/src/{AutoCompleteInput → AutoCompleteInputBase}/index.test.tsx +4 -4
- package/src/{AutoCompleteInput → AutoCompleteInputBase}/index.tsx +6 -6
- package/src/AutoCompleteInputTypeahead/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AutoCompleteResultList/__snapshots__/index.test.tsx.snap +2 -2
- package/src/AutoCompleteResultListItem/__snapshots__/index.test.tsx.snap +3 -3
- package/src/AutoCompleteStatus/__snapshots__/index.test.tsx.snap +1 -1
- package/src/AutoCompleteStatusContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/BackLink/__snapshots__/index.test.tsx.snap +9 -3
- package/src/BannerContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Base/index.native.tsx +59 -42
- package/src/Base/index.web.tsx +77 -69
- package/src/Base/utils.ts +38 -28
- package/src/Base/wrap.native.tsx +5 -1
- package/src/Blockquote/__snapshots__/index.test.tsx.snap +2 -2
- package/src/Bottom/__snapshots__/index.test.tsx.snap +1 -1
- package/src/BottomInfo/__snapshots__/index.test.tsx.snap +2 -2
- package/src/BottomInfoContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/src/BottomInfoContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Breadcrumbs/__snapshots__/index.test.tsx.snap +1 -1
- package/src/BreadcrumbsList/__snapshots__/index.test.tsx.snap +1 -1
- package/src/BreadcrumbsListItem/__snapshots__/index.test.tsx.snap +2 -23
- package/src/BreadcrumbsListItem/index.test.tsx +0 -5
- package/src/BreadcrumbsListItem/index.tsx +6 -20
- package/src/BreadcrumbsListItemLink/__snapshots__/index.test.tsx.snap +26 -0
- package/src/BreadcrumbsListItemLink/index.test.tsx +15 -0
- package/src/BreadcrumbsListItemLink/index.tsx +33 -0
- package/src/Button/__snapshots__/index.test.tsx.snap +13 -13
- package/src/ButtonGroup/__snapshots__/index.test.tsx.snap +1 -1
- package/src/ButtonLink/__snapshots__/index.test.tsx.snap +12 -12
- package/src/CallToAction/__snapshots__/index.test.tsx.snap +6 -3
- package/src/Card/__snapshots__/index.test.tsx.snap +13 -13
- package/src/CardAction/__snapshots__/index.test.tsx.snap +1 -1
- package/src/CardContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/CardHeading/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Checkbox/__snapshots__/index.test.tsx.snap +3 -3
- package/src/CheckboxConditional/__snapshots__/index.test.tsx.snap +1 -1
- package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +4 -4
- package/src/Chip/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Chip/index.tsx +2 -1
- package/src/ChipContainer/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/ChipHeading/__snapshots__/index.test.tsx.snap +1 -1
- package/src/ChipKeyValue/__snapshots__/index.test.tsx.snap +1 -1
- package/src/ChoiceDividerText/__snapshots__/index.test.tsx.snap +1 -1
- package/src/CircularProgress/__snapshots__/index.test.tsx.snap +7 -7
- package/src/CloseButton/__snapshots__/index.test.tsx.snap +9 -3
- package/src/Code/__snapshots__/index.test.tsx.snap +4 -4
- package/src/CodeBlockContainer/__snapshots__/index.test.tsx.snap +3 -9
- package/src/CodeBlockContent/__snapshots__/index.test.tsx.snap +17 -0
- package/src/CodeBlockHeader/__snapshots__/index.test.tsx.snap +13 -0
- package/src/Container/__snapshots__/index.test.tsx.snap +4 -4
- package/src/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/CopyToClipboardMessage/__snapshots__/index.test.tsx.snap +4 -4
- package/src/CopyrightContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/DateInputContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/src/DateInputItem/__snapshots__/index.test.tsx.snap +4 -4
- package/src/Details/__snapshots__/index.test.tsx.snap +1 -1
- package/src/DetailsContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/DetailsSummary/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Drawer/__snapshots__/index.test.tsx.snap +38 -31
- package/src/Drawer/index.tsx +29 -16
- package/src/DrawerHeading/__snapshots__/index.test.tsx.snap +6 -3
- package/src/DropdownBase/__snapshots__/index.test.tsx.snap +7 -7
- package/src/DropdownButton/__snapshots__/index.test.tsx.snap +41 -23
- package/src/DropdownContent/__snapshots__/index.test.tsx.snap +2 -2
- package/src/ErrorMessage/__snapshots__/index.test.tsx.snap +1 -1
- package/src/ErrorSummary/__snapshots__/index.test.tsx.snap +3 -3
- package/src/FieldContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/src/Fieldset/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FieldsetLegend/__snapshots__/index.test.tsx.snap +11 -11
- package/src/FileUpload/__snapshots__/index.test.tsx.snap +3 -3
- package/src/FileUploadContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FillableText/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FilterContainer/__snapshots__/index.test.tsx.snap +71 -3
- package/src/FilterContainer/index.test.tsx +21 -0
- package/src/FilterContainer/index.tsx +29 -16
- package/src/FilterContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FilterHeadingContainer/__snapshots__/index.test.tsx.snap +13 -1
- package/src/FilterHeadingContainer/index.test.tsx +10 -0
- package/src/FilterHeadingContainer/index.tsx +29 -2
- package/src/FilterOptionsSection/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/FilterSelectedHeading/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/FilterSelectedSection/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Footer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FooterContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FooterContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FooterContentLogos/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FooterHeading/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FooterImage/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FooterInfo/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FooterInfoSection/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FooterLink/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FooterList/__snapshots__/index.test.tsx.snap +2 -2
- package/src/FooterListItem/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FooterNavigation/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FooterNavigationSection/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Form/__snapshots__/index.test.tsx.snap +1 -1
- package/src/FullPageBackground/__snapshots__/index.test.tsx.snap +1 -1
- package/src/GovGRLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Grid/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Header/__snapshots__/index.test.tsx.snap +1 -1
- package/src/HeaderContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/src/HeaderNavMenuContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/src/HeaderSection/__snapshots__/index.test.tsx.snap +1 -1
- package/src/HeaderTitle/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Heading/__snapshots__/index.test.tsx.snap +1 -1
- package/src/HeadingCaption/__snapshots__/index.test.tsx.snap +1 -1
- package/src/HellenicRepublicLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Hidden/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Hint/__snapshots__/index.test.tsx.snap +1 -1
- package/src/ImageLogo/__snapshots__/index.test.tsx.snap +3 -3
- package/src/ImageLogoSet/__snapshots__/index.test.tsx.snap +6 -6
- package/src/LabelContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/LabelTitle/__snapshots__/index.test.tsx.snap +11 -11
- package/src/LabeledText/__snapshots__/index.test.tsx.snap +2 -2
- package/src/Layout/__snapshots__/index.test.tsx.snap +2 -2
- package/src/LinkBase/__snapshots__/index.test.tsx.snap +2 -2
- package/src/LinkBase/index.tsx +10 -2
- package/src/List/__snapshots__/index.test.tsx.snap +7 -7
- package/src/ListItem/__snapshots__/index.test.tsx.snap +1 -1
- package/src/LoaderContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Main/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Masthead/__snapshots__/index.test.tsx.snap +2 -2
- package/src/MastheadBody/__snapshots__/index.test.tsx.snap +1 -1
- package/src/MastheadLogo/__snapshots__/index.test.tsx.snap +1 -1
- package/src/ModalAction/__snapshots__/index.test.tsx.snap +1 -1
- package/src/ModalContainer/__snapshots__/index.test.tsx.snap +4 -4
- package/src/ModalContainer/index.tsx +15 -13
- package/src/ModalContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/ModalHeading/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Nav/__snapshots__/index.test.tsx.snap +8 -8
- package/src/NavList/__snapshots__/index.test.tsx.snap +3 -3
- package/src/NavListItemAction/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NavListItemActionContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NavListItemBadge/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NavListItemButton/__snapshots__/index.test.tsx.snap +13 -4
- package/src/NavListItemLink/__snapshots__/index.test.tsx.snap +2 -2
- package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +8 -8
- package/src/NavMenuContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NavMenuContentListBase/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NavMenuContentListItem/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NavMenuTitle/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NormalText/__snapshots__/index.test.tsx.snap +21 -21
- package/src/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +4 -4
- package/src/NotificationBannerContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +2 -2
- package/src/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +1 -1
- package/src/NotificationBannerLink/__snapshots__/index.test.tsx.snap +1 -1
- package/src/PageTitleCaption/__snapshots__/index.test.tsx.snap +1 -1
- package/src/PageTitleContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/PageTitleHeading/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Pagination/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/PaginationLabelContainer/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/PaginationList/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/PaginationListItem/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/Panel/__snapshots__/index.test.tsx.snap +2 -2
- package/src/PanelBody/__snapshots__/index.test.tsx.snap +1 -1
- package/src/PanelTitle/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Paragraph/__snapshots__/index.test.tsx.snap +21 -21
- package/src/PhaseBanner/__snapshots__/index.test.tsx.snap +2 -2
- package/src/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +1 -1
- package/src/PhaseBannerTag/__snapshots__/index.test.tsx.snap +3 -3
- package/src/PhaseBannerText/__snapshots__/index.test.tsx.snap +1 -1
- package/src/RadioConditional/__snapshots__/index.test.tsx.snap +1 -1
- package/src/RadioContainer/__snapshots__/index.test.tsx.snap +3 -3
- package/src/RadioItem/__snapshots__/index.test.tsx.snap +4 -4
- package/src/ResultsActionBar/__snapshots__/indext.test.tsx.snap +1 -1
- package/src/ResultsHeading/__snapshots__/index.test.tsx.snap +1 -1
- package/src/ResultsHeadingActions/__snapshots__/index.test.tsx.snap +1 -6
- package/src/ResultsHeadingActions/index.tsx +2 -7
- package/src/SearchButton/__snapshots__/index.test.tsx.snap +5 -2
- package/src/SearchContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Section/__snapshots__/index.test.tsx.snap +1 -1
- package/src/SectionBreak/__snapshots__/index.test.tsx.snap +6 -6
- package/src/SelectContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/src/SelectOption/__snapshots__/index.test.tsx.snap +1 -1
- package/src/SingleCharacterInput/__snapshots__/index.test.tsx.snap +4 -4
- package/src/SingleCharacterInputs/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Skeleton/__snapshots__/index.test.tsx.snap +12 -12
- package/src/SkipLink/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Stack/__snapshots__/index.test.tsx.snap +31 -31
- package/src/Stack/index.tsx +32 -13
- package/src/StepNav/__snapshots__/index.test.tsx.snap +2 -2
- package/src/StepNavAccordion/__snapshots__/index.test.tsx.snap +1 -1
- package/src/StepNavAccordionContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/StepNavAccordionHeadingText/__snapshots__/index.test.tsx.snap +1 -1
- package/src/StepNavAccordionHeadingTitle/__snapshots__/index.test.tsx.snap +1 -1
- package/src/StepNavAccordionSummary/__snapshots__/index.test.tsx.snap +1 -1
- package/src/StepNavAccordionSummaryHeading/__snapshots__/index.test.tsx.snap +5 -5
- package/src/StepNavCircleNumber/__snapshots__/index.test.tsx.snap +2 -2
- package/src/StepNavControls/__snapshots__/index.test.tsx.snap +1 -1
- package/src/StepNavList/__snapshots__/index.test.tsx.snap +1 -1
- package/src/StepNavListItem/__snapshots__/index.test.tsx.snap +1 -1
- package/src/SummaryList/__snapshots__/index.test.tsx.snap +1 -1
- package/src/SummaryListItem/__snapshots__/index.test.tsx.snap +1 -1
- package/src/SummaryListItemAction/__snapshots__/index.test.tsx.snap +1 -1
- package/src/SummaryListItemKey/__snapshots__/index.test.tsx.snap +2 -2
- package/src/SummaryListItemValue/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Table/__snapshots__/index.test.tsx.snap +20 -10
- package/src/Table/index.test.tsx +6 -5
- package/src/TableBody/__snapshots__/index.test.tsx.snap +7 -5
- package/src/TableBody/index.test.tsx +2 -1
- package/src/TableCaption/__snapshots__/index.test.tsx.snap +41 -21
- package/src/TableCaption/index.test.tsx +6 -5
- package/src/TableContainer/__snapshots__/index.test.tsx.snap +2 -2
- package/src/TableDataCell/__snapshots__/index.test.tsx.snap +33 -9
- package/src/TableDataCell/index.test.tsx +5 -2
- package/src/TableHead/__snapshots__/index.test.tsx.snap +17 -5
- package/src/TableHead/index.test.tsx +4 -1
- package/src/TableHeadCell/__snapshots__/index.test.tsx.snap +213 -45
- package/src/TableHeadCell/index.test.tsx +17 -14
- package/src/TableLoaderBackground/__snapshots__/index.test.tsx.snap +1 -1
- package/src/TableNoDataRow/__snapshots__/index.test.tsx.snap +15 -9
- package/src/TableNoDataRow/index.test.tsx +3 -1
- package/src/TableRow/__snapshots__/index.test.tsx.snap +31 -13
- package/src/TableRow/index.test.tsx +5 -3
- package/src/TableSortIconContainer/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Tabs/__snapshots__/index.test.tsx.snap +2 -2
- package/src/TabsHeading/__snapshots__/index.test.tsx.snap +1 -1
- package/src/TabsList/__snapshots__/index.test.tsx.snap +1 -1
- package/src/TabsListItemBase/__snapshots__/index.test.tsx.snap +1 -1
- package/src/TabsPanelBase/__snapshots__/index.test.tsx.snap +3 -3
- package/src/TaskList/__snapshots__/index.test.tsx.snap +2 -2
- package/src/TaskListItem/__snapshots__/index.test.tsx.snap +1 -1
- package/src/TaskListItemContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/TaskListItemHeading/__snapshots__/index.test.tsx.snap +4 -4
- package/src/TaskListItemTag/__snapshots__/index.test.tsx.snap +4 -4
- package/src/TextArea/__snapshots__/index.test.tsx.snap +15 -2
- package/src/TextArea/index.test.tsx +11 -7
- package/src/TextArea/index.web.tsx +2 -4
- package/src/TextInput/__snapshots__/index.test.tsx.snap +43 -43
- package/src/TextInput/index.native.tsx +3 -3
- package/src/Timeline/__snapshots__/index.test.tsx.snap +2 -2
- package/src/TimelineActions/__snapshots__/index.test.tsx.snap +1 -1
- package/src/TimelineContent/__snapshots__/index.test.tsx.snap +1 -1
- package/src/TimelineHeading/__snapshots__/index.test.tsx.snap +3 -3
- package/src/TimelineItem/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Top/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Typography/__snapshots__/index.test.tsx.snap +1 -1
- package/src/Unpurge/index.tsx +2383 -3
- package/src/VisuallyHidden/__snapshots__/index.test.tsx.snap +1 -1
- package/src/WarningText/__snapshots__/index.test.tsx.snap +11 -11
- package/src/index.ts +1 -2
- package/src/lazy.js +3 -3
- package/src/registry.js +4 -4
- 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/Base/wrap.native.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Base/wrap.native.tsx"],
|
|
4
|
-
"sourcesContent": ["import React, { useContext, useMemo, useState } from 'react';\nimport { View } from 'react-native';\n\ninterface WrapperContextType {\n (cls: string): void;\n}\n\nconst WrapperContext = React.createContext<WrapperContextType>(\n (cls: string) => {\n return cls;\n }\n);\n\nconst Wrapper = React.memo(({
|
|
5
|
-
"mappings": "AAAA,OAAO,SAAS,YAAY,SAAS,gBAAgB;AACrD,SAAS,YAAY;AAMrB,MAAM,iBAAiB,MAAM;AAAA,EAC3B,CAAC,QAAgB;AACf,WAAO;AAAA,EACT;AACF;AAEA,MAAM,UAAU,MAAM,KAAK,
|
|
6
|
-
"names": []
|
|
4
|
+
"sourcesContent": ["import React, { useContext, useMemo, useState } from 'react';\nimport { View } from 'react-native';\n\ninterface WrapperContextType {\n (cls: string): void;\n}\n\nconst WrapperContext = React.createContext<WrapperContextType>(\n (cls: string) => {\n return cls;\n }\n);\n\nconst Wrapper = React.memo(function Wrapper({\n children,\n}: {\n children?: React.ReactNode;\n}) {\n const [className, setClassName] = useState('');\n return (\n <WrapperContext.Provider value={setClassName}>\n <View className={className} focusable={false}>\n {children}\n </View>\n </WrapperContext.Provider>\n );\n});\n\ninterface WrappedComponentProps {\n className?: string;\n onBlur?: (e: unknown) => void;\n onFocus?: (e: unknown) => void;\n}\n\nexport const wrap = (Component: React.ElementType) => {\n const WrappedComponent = React.forwardRef(function InnerComponent(\n { className, onBlur, onFocus, ...props }: WrappedComponentProps,\n ref\n ) {\n const setClassName = useContext(WrapperContext);\n const wrapperClassNames: string[] = [];\n const beforeClassNames: string[] = [];\n const afterClassNames: string[] = [];\n const focusedWrapperClassNames: string[] = [];\n const classNames = useMemo(\n () =>\n (className?.split(' ') || []).filter((cls) => {\n if (cls.endsWith('__wrapper')) {\n wrapperClassNames.push(cls);\n focusedWrapperClassNames.push(`${cls}--focus`);\n return false;\n } else if (cls.endsWith('__before')) {\n beforeClassNames.push(cls);\n return false;\n } else if (cls.endsWith('__after')) {\n afterClassNames.push(cls);\n return false;\n }\n return true;\n }),\n [className]\n );\n return (\n <>\n {beforeClassNames.length ? (\n <View focusable={false} className={beforeClassNames.join(' ')} />\n ) : (\n ''\n )}\n <Component\n ref={ref}\n onFocus={(e: unknown) => {\n setClassName(focusedWrapperClassNames.join(' '));\n onFocus && onFocus(e);\n }}\n onBlur={(e: unknown) => {\n setClassName(wrapperClassNames.join(' '));\n onBlur && onBlur(e);\n }}\n className={classNames.join(' ')}\n {...props}\n />\n {afterClassNames.length ? (\n <View focusable={false} className={afterClassNames.join(' ')} />\n ) : (\n ''\n )}\n </>\n );\n });\n return React.forwardRef(function Wrapped(props, ref) {\n const children = useMemo(\n () => <WrappedComponent {...props} ref={ref} />,\n []\n );\n return <Wrapper>{children}</Wrapper>;\n });\n};\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,SAAS,YAAY,SAAS,gBAAgB;AACrD,SAAS,YAAY;AAMrB,MAAM,iBAAiB,MAAM;AAAA,EAC3B,CAAC,QAAgB;AACf,WAAO;AAAA,EACT;AACF;AAEA,MAAM,UAAU,MAAM,KAAK,SAASA,SAAQ;AAAA,EAC1C;AACF,GAEG;AACD,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,EAAE;AAC7C,SACE,oCAAC,eAAe,UAAf,EAAwB,OAAO,gBAC9B,oCAAC,QAAK,WAAsB,WAAW,SACpC,QACH,CACF;AAEJ,CAAC;AAQM,MAAM,OAAO,CAAC,cAAiC;AACpD,QAAM,mBAAmB,MAAM,WAAW,SAAS,eACjD,EAAE,WAAW,QAAQ,SAAS,GAAG,MAAM,GACvC,KACA;AACA,UAAM,eAAe,WAAW,cAAc;AAC9C,UAAM,oBAA8B,CAAC;AACrC,UAAM,mBAA6B,CAAC;AACpC,UAAM,kBAA4B,CAAC;AACnC,UAAM,2BAAqC,CAAC;AAC5C,UAAM,aAAa;AAAA,MACjB,OACG,WAAW,MAAM,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC,QAAQ;AAC5C,YAAI,IAAI,SAAS,WAAW,GAAG;AAC7B,4BAAkB,KAAK,GAAG;AAC1B,mCAAyB,KAAK,GAAG,GAAG,SAAS;AAC7C,iBAAO;AAAA,QACT,WAAW,IAAI,SAAS,UAAU,GAAG;AACnC,2BAAiB,KAAK,GAAG;AACzB,iBAAO;AAAA,QACT,WAAW,IAAI,SAAS,SAAS,GAAG;AAClC,0BAAgB,KAAK,GAAG;AACxB,iBAAO;AAAA,QACT;AACA,eAAO;AAAA,MACT,CAAC;AAAA,MACH,CAAC,SAAS;AAAA,IACZ;AACA,WACE,0DACG,iBAAiB,SAChB,oCAAC,QAAK,WAAW,OAAO,WAAW,iBAAiB,KAAK,GAAG,GAAG,IAE/D,IAEF;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,SAAS,CAAC,MAAe;AACvB,uBAAa,yBAAyB,KAAK,GAAG,CAAC;AAC/C,qBAAW,QAAQ,CAAC;AAAA,QACtB;AAAA,QACA,QAAQ,CAAC,MAAe;AACtB,uBAAa,kBAAkB,KAAK,GAAG,CAAC;AACxC,oBAAU,OAAO,CAAC;AAAA,QACpB;AAAA,QACA,WAAW,WAAW,KAAK,GAAG;AAAA,QAC7B,GAAG;AAAA;AAAA,IACN,GACC,gBAAgB,SACf,oCAAC,QAAK,WAAW,OAAO,WAAW,gBAAgB,KAAK,GAAG,GAAG,IAE9D,EAEJ;AAAA,EAEJ,CAAC;AACD,SAAO,MAAM,WAAW,SAAS,QAAQ,OAAO,KAAK;AACnD,UAAM,WAAW;AAAA,MACf,MAAM,oCAAC,oBAAkB,GAAG,OAAO,KAAU;AAAA,MAC7C,CAAC;AAAA,IACH;AACA,WAAO,oCAAC,eAAS,QAAS;AAAA,EAC5B,CAAC;AACH;",
|
|
6
|
+
"names": ["Wrapper"]
|
|
7
7
|
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
-
export interface
|
|
4
|
-
/**
|
|
5
|
-
* href is optional and provides the text and url of the Breadcrumbs items.
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
href?: string;
|
|
3
|
+
export interface BreadcrumbsListItemBaseProps extends BaseProps<'li'> {
|
|
9
4
|
}
|
|
10
5
|
/**
|
|
11
6
|
* BreadcrumbsListItem creates a list of items with the possibility of navigation.
|
|
12
7
|
* It should be used inside BreadcrumbsList as children component
|
|
13
8
|
*/
|
|
14
|
-
export declare const
|
|
15
|
-
export default
|
|
9
|
+
export declare const BreadcrumbsListItemBase: React.ForwardRefExoticComponent<Omit<BreadcrumbsListItemBaseProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
10
|
+
export default BreadcrumbsListItemBase;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import Base from "@digigov/react-core/Base";
|
|
4
|
-
const
|
|
4
|
+
const BreadcrumbsListItemBase = React.forwardRef(function BreadcrumbsListItemBase2({ className, children, ...props }, ref) {
|
|
5
5
|
return /* @__PURE__ */ React.createElement(
|
|
6
6
|
Base,
|
|
7
7
|
{
|
|
@@ -12,22 +12,12 @@ const BreadcrumbsListItem = React.forwardRef(function BreadcrumbsListItem2({ hre
|
|
|
12
12
|
}),
|
|
13
13
|
...props
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
"a",
|
|
17
|
-
{
|
|
18
|
-
href,
|
|
19
|
-
className: clsx({
|
|
20
|
-
"ds-breadcrumbs__link": true,
|
|
21
|
-
"ds-breadcrumbs__link--inactive": href === void 0
|
|
22
|
-
})
|
|
23
|
-
},
|
|
24
|
-
children
|
|
25
|
-
)
|
|
15
|
+
children
|
|
26
16
|
);
|
|
27
17
|
});
|
|
28
|
-
var BreadcrumbsListItem_default =
|
|
18
|
+
var BreadcrumbsListItem_default = BreadcrumbsListItemBase;
|
|
29
19
|
export {
|
|
30
|
-
|
|
20
|
+
BreadcrumbsListItemBase,
|
|
31
21
|
BreadcrumbsListItem_default as default
|
|
32
22
|
};
|
|
33
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/BreadcrumbsListItem/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface BreadcrumbsListItemBaseProps extends BaseProps<'li'> {}\n/**\n * BreadcrumbsListItem creates a list of items with the possibility of navigation.\n * It should be used inside BreadcrumbsList as children component\n */\nexport const BreadcrumbsListItemBase = React.forwardRef<\n HTMLLIElement,\n BreadcrumbsListItemBaseProps\n>(function BreadcrumbsListItemBase({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"li\"\n ref={ref}\n className={clsx(className, {\n 'ds-breadcrumbs__list-item': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default BreadcrumbsListItemBase;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAOzB,MAAM,0BAA0B,MAAM,WAG3C,SAASA,yBAAwB,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AACzE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,6BAA6B;AAAA,MAC/B,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,8BAAQ;",
|
|
6
|
+
"names": ["BreadcrumbsListItemBase"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LinkBaseProps } from '@digigov/react-core/LinkBase';
|
|
3
|
+
export interface BreadcrumbsListItemLinkProps extends LinkBaseProps {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* BreadcrumbsListItemLink creates an anchor link to navigate in different
|
|
7
|
+
* parts of the breadcrumbs.
|
|
8
|
+
* It should be used inside BreadcrumbsListItem as children component. This is
|
|
9
|
+
* the default link component for the BreadcrumbsListItem and it uses the LinkBase
|
|
10
|
+
* component from `@digigov/react-core`. In case you need to use a different Link
|
|
11
|
+
* component from a framework or a custom router, use `@digigov/ui/navigation/BreadcrumbsListItemLink` instead.
|
|
12
|
+
*/
|
|
13
|
+
export declare const BreadcrumbsListItemLink: React.ForwardRefExoticComponent<Omit<BreadcrumbsListItemLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
14
|
+
export default BreadcrumbsListItemLink;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import Link from "@digigov/react-core/LinkBase";
|
|
4
|
+
const BreadcrumbsListItemLink = React.forwardRef(function BreadcrumbsListItemLink2({ href, className, children }, ref) {
|
|
5
|
+
return /* @__PURE__ */ React.createElement(
|
|
6
|
+
Link,
|
|
7
|
+
{
|
|
8
|
+
href,
|
|
9
|
+
defaultStyle: false,
|
|
10
|
+
className: clsx(className, {
|
|
11
|
+
"ds-breadcrumbs__link": true,
|
|
12
|
+
"ds-breadcrumbs__link--inactive": href === void 0
|
|
13
|
+
}),
|
|
14
|
+
ref
|
|
15
|
+
},
|
|
16
|
+
children
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
var BreadcrumbsListItemLink_default = BreadcrumbsListItemLink;
|
|
20
|
+
export {
|
|
21
|
+
BreadcrumbsListItemLink,
|
|
22
|
+
BreadcrumbsListItemLink_default as default
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/BreadcrumbsListItemLink/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Link, { LinkBaseProps } from '@digigov/react-core/LinkBase';\n\nexport interface BreadcrumbsListItemLinkProps extends LinkBaseProps { }\n/**\n * BreadcrumbsListItemLink creates an anchor link to navigate in different\n * parts of the breadcrumbs.\n * It should be used inside BreadcrumbsListItem as children component. This is\n * the default link component for the BreadcrumbsListItem and it uses the LinkBase\n * component from `@digigov/react-core`. In case you need to use a different Link\n * component from a framework or a custom router, use `@digigov/ui/navigation/BreadcrumbsListItemLink` instead.\n */\nexport const BreadcrumbsListItemLink = React.forwardRef<\n HTMLAnchorElement,\n BreadcrumbsListItemLinkProps\n>(function BreadcrumbsListItemLink({ href, className, children }, ref) {\n return (\n <Link\n href={href}\n defaultStyle={false}\n className={clsx(className, {\n 'ds-breadcrumbs__link': true,\n 'ds-breadcrumbs__link--inactive': href === undefined,\n })}\n ref={ref}\n >\n {children}\n </Link>\n );\n});\n\nexport default BreadcrumbsListItemLink;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAA6B;AAW7B,MAAM,0BAA0B,MAAM,WAG3C,SAASA,yBAAwB,EAAE,MAAM,WAAW,SAAS,GAAG,KAAK;AACrE,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,cAAc;AAAA,MACd,WAAW,KAAK,WAAW;AAAA,QACzB,wBAAwB;AAAA,QACxB,kCAAkC,SAAS;AAAA,MAC7C,CAAC;AAAA,MACD;AAAA;AAAA,IAEC;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,kCAAQ;",
|
|
6
|
+
"names": ["BreadcrumbsListItemLink"]
|
|
7
|
+
}
|
package/Chip/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Chip/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\nimport { CloseIcon } from '@digigov/react-icons';\n\nexport interface ChipProps extends BaseProps<'li'> {\n /**\n\n */\n onDelete?: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;\n}\n/**\n * Chips can be used to represent small blocks of information.\n * Chip component must be inside ChipContainer component.\n */\nexport const Chip = React.forwardRef<HTMLLIElement, ChipProps>(function Chip(\n { className, onDelete, onClick, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"li\"\n ref={ref}\n className={clsx(className, {\n 'ds-chip': true,\n 'ds-chip--deletable': !!onDelete,\n })}\n {...props}\n onClick={onClick}\n >\n <Base
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAChC,SAAS,iBAAiB;AAYnB,MAAM,OAAO,MAAM,WAAqC,SAASA,MACtE,EAAE,WAAW,UAAU,SAAS,UAAU,GAAG,MAAM,GACnD,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,WAAW;AAAA,QACX,sBAAsB,CAAC,CAAC;AAAA,MAC1B,CAAC;AAAA,MACA,GAAG;AAAA,MACJ;AAAA;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\nimport { CloseIcon } from '@digigov/react-icons';\n\nexport interface ChipProps extends BaseProps<'li'> {\n /**\n\n */\n onDelete?: (e: React.MouseEvent<SVGSVGElement, MouseEvent>) => void;\n}\n/**\n * Chips can be used to represent small blocks of information.\n * Chip component must be inside ChipContainer component.\n */\nexport const Chip = React.forwardRef<HTMLLIElement, ChipProps>(function Chip(\n { className, onDelete, onClick, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"li\"\n ref={ref}\n className={clsx(className, {\n 'ds-chip': true,\n 'ds-chip--deletable': !!onDelete,\n })}\n {...props}\n onClick={onClick}\n >\n <Base\n as=\"div\"\n role={onClick && 'button'}\n tabIndex={onClick && 0}\n className=\"ds-chip__content\"\n >\n {children}\n {onDelete && (\n <CloseIcon\n onClick={(e) => {\n e.stopPropagation();\n onDelete(e);\n }}\n />\n )}\n </Base>\n </Base>\n );\n});\n\nexport default Chip;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAChC,SAAS,iBAAiB;AAYnB,MAAM,OAAO,MAAM,WAAqC,SAASA,MACtE,EAAE,WAAW,UAAU,SAAS,UAAU,GAAG,MAAM,GACnD,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,WAAW;AAAA,QACX,sBAAsB,CAAC,CAAC;AAAA,MAC1B,CAAC;AAAA,MACA,GAAG;AAAA,MACJ;AAAA;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH,MAAM,WAAW;AAAA,QACjB,UAAU,WAAW;AAAA,QACrB,WAAU;AAAA;AAAA,MAET;AAAA,MACA,YACC;AAAA,QAAC;AAAA;AAAA,UACC,SAAS,CAAC,MAAM;AACd,cAAE,gBAAgB;AAClB,qBAAS,CAAC;AAAA,UACZ;AAAA;AAAA,MACF;AAAA,IAEJ;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,eAAQ;",
|
|
6
6
|
"names": ["Chip"]
|
|
7
7
|
}
|
package/Drawer/index.d.ts
CHANGED
|
@@ -18,12 +18,14 @@ export interface DrawerProps extends BaseProps<'div'> {
|
|
|
18
18
|
*/
|
|
19
19
|
direction?: 'right' | 'left';
|
|
20
20
|
/**
|
|
21
|
-
* upRelative is optional.
|
|
21
|
+
* upRelative is optional.
|
|
22
|
+
* This declares if the drawer is visible at what screens in a relative position.
|
|
23
|
+
* If not relative, it will be a drawer.
|
|
22
24
|
* The default value is never.
|
|
23
|
-
*
|
|
24
|
-
* @value 'md'
|
|
25
|
-
* @value 'lg'
|
|
26
|
-
* @value 'never'
|
|
25
|
+
* @value 'sm' The drawer will be visible and relative at small screens and up
|
|
26
|
+
* @value 'md' The drawer will be visible and relative at medium screens and up
|
|
27
|
+
* @value 'lg' The drawer will be visible and relative at large screens and up
|
|
28
|
+
* @value 'never' The drawer will never have relative position in the page
|
|
27
29
|
* @default 'never'
|
|
28
30
|
*/
|
|
29
31
|
upRelative?: 'sm' | 'md' | 'lg' | 'never';
|
package/Drawer/index.js
CHANGED
|
@@ -16,19 +16,32 @@ const Drawer = React.forwardRef(
|
|
|
16
16
|
{
|
|
17
17
|
as: "div",
|
|
18
18
|
ref,
|
|
19
|
-
className: clsx(
|
|
20
|
-
"ds-drawer": true,
|
|
21
|
-
"ds-drawer--relative-sm": upRelative === "sm",
|
|
22
|
-
"ds-drawer--relative-md": upRelative === "md",
|
|
23
|
-
"ds-drawer--relative-lg": upRelative === "lg",
|
|
24
|
-
"ds-drawer--closed": !open
|
|
25
|
-
|
|
26
|
-
"ds-drawer--left": direction === "left",
|
|
27
|
-
"ds-drawer--bg-secondary": bgColor === "secondary"
|
|
28
|
-
}),
|
|
29
|
-
...props
|
|
19
|
+
className: clsx({
|
|
20
|
+
"ds-drawer-container": true,
|
|
21
|
+
"ds-drawer-container--relative-sm": upRelative === "sm",
|
|
22
|
+
"ds-drawer-container--relative-md": upRelative === "md",
|
|
23
|
+
"ds-drawer-container--relative-lg": upRelative === "lg",
|
|
24
|
+
"ds-drawer-container--closed": !open
|
|
25
|
+
})
|
|
30
26
|
},
|
|
31
|
-
|
|
27
|
+
/* @__PURE__ */ React.createElement(
|
|
28
|
+
Base,
|
|
29
|
+
{
|
|
30
|
+
as: "div",
|
|
31
|
+
className: clsx(className, {
|
|
32
|
+
"ds-drawer": true,
|
|
33
|
+
"ds-drawer--relative-sm": upRelative === "sm",
|
|
34
|
+
"ds-drawer--relative-md": upRelative === "md",
|
|
35
|
+
"ds-drawer--relative-lg": upRelative === "lg",
|
|
36
|
+
"ds-drawer--closed": !open,
|
|
37
|
+
"ds-drawer--right": direction === "right",
|
|
38
|
+
"ds-drawer--left": direction === "left",
|
|
39
|
+
"ds-drawer--bg-secondary": bgColor === "secondary"
|
|
40
|
+
}),
|
|
41
|
+
...props
|
|
42
|
+
},
|
|
43
|
+
children
|
|
44
|
+
)
|
|
32
45
|
);
|
|
33
46
|
}
|
|
34
47
|
);
|
package/Drawer/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Drawer/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface DrawerProps extends BaseProps<'div'> {\n /**\n * open is optional.\n * This declares if the drawer is open at small screens.\n * @value true\n * @value false\n */\n open?: boolean;\n\n /**\n * direction is optional.\n * Add the direction of the drawer, when this is open at mobile view.\n * The default value is 'left'.\n * @value 'right'\n * @value 'left'\n * @default 'left'\n */\n direction?: 'right' | 'left';\n\n /**\n * upRelative is optional
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface DrawerProps extends BaseProps<'div'> {\n /**\n * open is optional.\n * This declares if the drawer is open at small screens.\n * @value true\n * @value false\n */\n open?: boolean;\n\n /**\n * direction is optional.\n * Add the direction of the drawer, when this is open at mobile view.\n * The default value is 'left'.\n * @value 'right'\n * @value 'left'\n * @default 'left'\n */\n direction?: 'right' | 'left';\n\n /**\n * upRelative is optional.\n * This declares if the drawer is visible at what screens in a relative position.\n * If not relative, it will be a drawer.\n * The default value is never.\n * @value 'sm' The drawer will be visible and relative at small screens and up\n * @value 'md' The drawer will be visible and relative at medium screens and up\n * @value 'lg' The drawer will be visible and relative at large screens and up\n * @value 'never' The drawer will never have relative position in the page\n * @default 'never'\n */\n upRelative?: 'sm' | 'md' | 'lg' | 'never';\n\n /**\n * bgColor is optional.\n * This defines the background color of the drawer.\n * @value 'base'\n * @value 'secondary'\n * @default 'base'\n */\n bgColor?: 'base' | 'secondary';\n}\n/**\n * Drawer can be used to provide access to destinations and app functionality.\n * It can either be permanently on-screen or controlled by a navigation menu icon.\n */\nexport const Drawer = React.forwardRef<HTMLDivElement, DrawerProps>(\n function Drawer(\n {\n open,\n direction = 'left',\n upRelative = 'never',\n bgColor,\n className,\n children,\n ...props\n },\n ref\n ) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx({\n 'ds-drawer-container': true,\n 'ds-drawer-container--relative-sm': upRelative === 'sm',\n 'ds-drawer-container--relative-md': upRelative === 'md',\n 'ds-drawer-container--relative-lg': upRelative === 'lg',\n 'ds-drawer-container--closed': !open,\n })}\n >\n <Base\n as=\"div\"\n className={clsx(className, {\n 'ds-drawer': true,\n 'ds-drawer--relative-sm': upRelative === 'sm',\n 'ds-drawer--relative-md': upRelative === 'md',\n 'ds-drawer--relative-lg': upRelative === 'lg',\n 'ds-drawer--closed': !open,\n 'ds-drawer--right': direction === 'right',\n 'ds-drawer--left': direction === 'left',\n 'ds-drawer--bg-secondary': bgColor === 'secondary',\n })}\n {...props}\n >\n {children}\n </Base>\n </Base>\n );\n }\n);\n\nexport default Drawer;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AA+CzB,MAAM,SAAS,MAAM;AAAA,EAC1B,SAASA,QACP;AAAA,IACE;AAAA,IACA,YAAY;AAAA,IACZ,aAAa;AAAA,IACb;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK;AAAA,UACd,uBAAuB;AAAA,UACvB,oCAAoC,eAAe;AAAA,UACnD,oCAAoC,eAAe;AAAA,UACnD,oCAAoC,eAAe;AAAA,UACnD,+BAA+B,CAAC;AAAA,QAClC,CAAC;AAAA;AAAA,MAED;AAAA,QAAC;AAAA;AAAA,UACC,IAAG;AAAA,UACH,WAAW,KAAK,WAAW;AAAA,YACzB,aAAa;AAAA,YACb,0BAA0B,eAAe;AAAA,YACzC,0BAA0B,eAAe;AAAA,YACzC,0BAA0B,eAAe;AAAA,YACzC,qBAAqB,CAAC;AAAA,YACtB,oBAAoB,cAAc;AAAA,YAClC,mBAAmB,cAAc;AAAA,YACjC,2BAA2B,YAAY;AAAA,UACzC,CAAC;AAAA,UACA,GAAG;AAAA;AAAA,QAEH;AAAA,MACH;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,IAAO,iBAAQ;",
|
|
6
6
|
"names": ["Drawer"]
|
|
7
7
|
}
|
|
@@ -18,13 +18,15 @@ export interface FilterContainerProps extends BaseProps<'div'> {
|
|
|
18
18
|
*/
|
|
19
19
|
border?: boolean;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* positionRelative is optional.
|
|
22
|
+
* Use positionRelative prop to make the filter section to be visible and have position relative in the page.
|
|
23
|
+
* If not relative, the filter section will be a drawer.
|
|
22
24
|
* The default value is md.
|
|
23
|
-
* @value 'always'
|
|
24
|
-
* @value 'sm'
|
|
25
|
-
* @value 'md'
|
|
26
|
-
* @value 'lg'
|
|
27
|
-
* @value 'never'
|
|
25
|
+
* @value 'always' The filter section will always visible
|
|
26
|
+
* @value 'sm' The filter section will be visible at small screens and up
|
|
27
|
+
* @value 'md' The filter section will be visible at medium screens and up
|
|
28
|
+
* @value 'lg' The filter section will be visible at large screens and up
|
|
29
|
+
* @value 'never' The filter section will never have relative position in the page
|
|
28
30
|
* @default 'md'
|
|
29
31
|
*/
|
|
30
32
|
positionRelative?: 'always' | 'sm' | 'md' | 'lg' | 'never';
|
package/FilterContainer/index.js
CHANGED
|
@@ -14,18 +14,31 @@ const FilterContainer = React.forwardRef(function FilterContainer2({
|
|
|
14
14
|
{
|
|
15
15
|
as: "div",
|
|
16
16
|
ref,
|
|
17
|
-
className: clsx(
|
|
18
|
-
"ds-filter": true,
|
|
19
|
-
"ds-filter--
|
|
20
|
-
"ds-filter--
|
|
21
|
-
"ds-filter--position-relative-
|
|
22
|
-
"ds-filter--position-relative-
|
|
23
|
-
"ds-filter--
|
|
24
|
-
|
|
25
|
-
}),
|
|
26
|
-
...props
|
|
17
|
+
className: clsx({
|
|
18
|
+
"ds-filter-container": true,
|
|
19
|
+
"ds-filter-container--position-relative-always": positionRelative === "always",
|
|
20
|
+
"ds-filter-container--position-relative-sm": positionRelative === "sm",
|
|
21
|
+
"ds-filter-container--position-relative-md": positionRelative === "md",
|
|
22
|
+
"ds-filter-container--position-relative-lg": positionRelative === "lg",
|
|
23
|
+
"ds-filter-container--closed": !open
|
|
24
|
+
})
|
|
27
25
|
},
|
|
28
|
-
|
|
26
|
+
/* @__PURE__ */ React.createElement(
|
|
27
|
+
Base,
|
|
28
|
+
{
|
|
29
|
+
as: "div",
|
|
30
|
+
className: clsx(className, {
|
|
31
|
+
"ds-filter": true,
|
|
32
|
+
"ds-filter--border ": border,
|
|
33
|
+
"ds-filter--position-relative-always": positionRelative === "always",
|
|
34
|
+
"ds-filter--position-relative-sm": positionRelative === "sm",
|
|
35
|
+
"ds-filter--position-relative-md": positionRelative === "md",
|
|
36
|
+
"ds-filter--position-relative-lg": positionRelative === "lg"
|
|
37
|
+
}),
|
|
38
|
+
...props
|
|
39
|
+
},
|
|
40
|
+
children
|
|
41
|
+
)
|
|
29
42
|
);
|
|
30
43
|
});
|
|
31
44
|
var FilterContainer_default = FilterContainer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/FilterContainer/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface FilterContainerProps extends BaseProps<'div'> {\n /**\n * Use open prop to open the filters when at mobile.\n * The default value is false.\n * @value true\n * @value false\n * @default false\n */\n open?: boolean;\n\n /**\n * Use border prop to add a gray border at the filters section.\n * The default value is true.\n * @value true\n * @value false\n * @default true\n */\n border?: boolean;\n\n /**\n * Use
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface FilterContainerProps extends BaseProps<'div'> {\n /**\n * Use open prop to open the filters when at mobile.\n * The default value is false.\n * @value true\n * @value false\n * @default false\n */\n open?: boolean;\n\n /**\n * Use border prop to add a gray border at the filters section.\n * The default value is true.\n * @value true\n * @value false\n * @default true\n */\n border?: boolean;\n\n /**\n * positionRelative is optional.\n * Use positionRelative prop to make the filter section to be visible and have position relative in the page.\n * If not relative, the filter section will be a drawer.\n * The default value is md.\n * @value 'always' The filter section will always visible\n * @value 'sm' The filter section will be visible at small screens and up\n * @value 'md' The filter section will be visible at medium screens and up\n * @value 'lg' The filter section will be visible at large screens and up\n * @value 'never' The filter section will never have relative position in the page\n * @default 'md'\n */\n positionRelative?: 'always' | 'sm' | 'md' | 'lg' | 'never';\n}\n\n/**\n * Use FilterContainer component to wrap the filter area of the page\n * When the Filters are being used inside a Drawer component, you don't have to\n * use the FilterContainer component\n */\nexport const FilterContainer = React.forwardRef<\n HTMLDivElement,\n FilterContainerProps\n>(function FilterContainer(\n {\n className,\n border = true,\n open = false,\n positionRelative = 'md',\n children,\n ...props\n },\n ref\n) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx({\n 'ds-filter-container': true,\n 'ds-filter-container--position-relative-always': positionRelative === 'always',\n 'ds-filter-container--position-relative-sm': positionRelative === 'sm',\n 'ds-filter-container--position-relative-md': positionRelative === 'md',\n 'ds-filter-container--position-relative-lg': positionRelative === 'lg',\n 'ds-filter-container--closed': !open,\n })}\n >\n <Base\n as=\"div\"\n className={clsx(className, {\n 'ds-filter': true,\n 'ds-filter--border ': border,\n 'ds-filter--position-relative-always': positionRelative === 'always',\n 'ds-filter--position-relative-sm': positionRelative === 'sm',\n 'ds-filter--position-relative-md': positionRelative === 'md',\n 'ds-filter--position-relative-lg': positionRelative === 'lg',\n })}\n {...props}\n >\n {children}\n </Base>\n </Base>\n );\n});\n\nexport default FilterContainer;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAyCzB,MAAM,kBAAkB,MAAM,WAGnC,SAASA,iBACT;AAAA,EACE;AAAA,EACA,SAAS;AAAA,EACT,OAAO;AAAA,EACP,mBAAmB;AAAA,EACnB;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK;AAAA,QACd,uBAAuB;AAAA,QACvB,iDAAiD,qBAAqB;AAAA,QACtE,6CAA6C,qBAAqB;AAAA,QAClE,6CAA6C,qBAAqB;AAAA,QAClE,6CAA6C,qBAAqB;AAAA,QAClE,+BAA+B,CAAC;AAAA,MAClC,CAAC;AAAA;AAAA,IAED;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH,WAAW,KAAK,WAAW;AAAA,UACzB,aAAa;AAAA,UACb,sBAAsB;AAAA,UACtB,uCAAuC,qBAAqB;AAAA,UAC5D,mCAAmC,qBAAqB;AAAA,UACxD,mCAAmC,qBAAqB;AAAA,UACxD,mCAAmC,qBAAqB;AAAA,QAC1D,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,0BAAQ;",
|
|
6
6
|
"names": ["FilterContainer"]
|
|
7
7
|
}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface FilterHeadingContainerProps extends BaseProps<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* closeLabel is optional.
|
|
6
|
+
* This declares the label of the close icon.
|
|
7
|
+
* @default 'Κλείσιμο'
|
|
8
|
+
*/
|
|
9
|
+
closeLabel?: string;
|
|
10
|
+
/**
|
|
11
|
+
* onClick is optional.
|
|
12
|
+
* This declares the click event of the close icon.
|
|
13
|
+
* @default undefined
|
|
14
|
+
*/
|
|
15
|
+
onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
4
16
|
}
|
|
5
17
|
/**
|
|
6
18
|
* Use FilterHeadingContainer component inside FilterContainer
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import Base from "@digigov/react-core/Base";
|
|
4
|
-
|
|
4
|
+
import CloseButton from "@digigov/react-core/CloseButton";
|
|
5
|
+
const FilterHeadingContainer = React.forwardRef(function FilterHeadingContainer2({ onClick, closeLabel = "\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF", className, children, ...props }, ref) {
|
|
5
6
|
return /* @__PURE__ */ React.createElement(
|
|
6
7
|
Base,
|
|
7
8
|
{
|
|
@@ -12,7 +13,16 @@ const FilterHeadingContainer = React.forwardRef(function FilterHeadingContainer2
|
|
|
12
13
|
}),
|
|
13
14
|
...props
|
|
14
15
|
},
|
|
15
|
-
children
|
|
16
|
+
children,
|
|
17
|
+
onClick && /* @__PURE__ */ React.createElement(
|
|
18
|
+
CloseButton,
|
|
19
|
+
{
|
|
20
|
+
onClick: (e) => {
|
|
21
|
+
onClick(e);
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
closeLabel
|
|
25
|
+
)
|
|
16
26
|
);
|
|
17
27
|
});
|
|
18
28
|
var FilterHeadingContainer_default = FilterHeadingContainer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/FilterHeadingContainer/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface FilterHeadingContainerProps extends BaseProps<'div'> { }\n/**\n * Use FilterHeadingContainer component inside FilterContainer\n * for filters heading title and close icon(for mobiles).\n * When the Filters are being used inside a Drawer component, you don't have to\n * use the FilterHeadingContainer component\n */\nexport const FilterHeadingContainer = React.forwardRef<\n HTMLDivElement,\n FilterHeadingContainerProps\n>(function FilterHeadingContainer({ className, children, ...props }
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\nimport CloseButton from '@digigov/react-core/CloseButton';\n\nexport interface FilterHeadingContainerProps extends BaseProps<'div'> {\n /**\n * closeLabel is optional.\n * This declares the label of the close icon.\n * @default '\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF'\n */\n closeLabel?: string;\n\n /**\n * onClick is optional.\n * This declares the click event of the close icon.\n * @default undefined\n */\n onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n}\n/**\n * Use FilterHeadingContainer component inside FilterContainer\n * for filters heading title and close icon(for mobiles).\n * When the Filters are being used inside a Drawer component, you don't have to\n * use the FilterHeadingContainer component\n */\nexport const FilterHeadingContainer = React.forwardRef<\n HTMLDivElement,\n FilterHeadingContainerProps\n>(function FilterHeadingContainer(\n { onClick, closeLabel = '\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF', className, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-filter__heading': true,\n })}\n {...props}\n >\n {children}\n {onClick && (\n <CloseButton\n onClick={(e) => {\n onClick(e);\n }}\n >\n {closeLabel}\n </CloseButton>\n )}\n </Base>\n );\n});\n\nexport default FilterHeadingContainer;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAChC,OAAO,iBAAiB;AAuBjB,MAAM,yBAAyB,MAAM,WAG1C,SAASA,wBACT,EAAE,SAAS,aAAa,oDAAY,WAAW,UAAU,GAAG,MAAM,GAClE,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,sBAAsB;AAAA,MACxB,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,IACA,WACC;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,CAAC,MAAM;AACd,kBAAQ,CAAC;AAAA,QACX;AAAA;AAAA,MAEC;AAAA,IACH;AAAA,EAEJ;AAEJ,CAAC;AAED,IAAO,iCAAQ;",
|
|
6
6
|
"names": ["FilterHeadingContainer"]
|
|
7
7
|
}
|
package/LinkBase/index.d.ts
CHANGED
|
@@ -8,6 +8,14 @@ export interface LinkBaseProps extends BaseProps<'a'> {
|
|
|
8
8
|
* @value false
|
|
9
9
|
*/
|
|
10
10
|
underline?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* defaultStyle is optional. The default value is 'true'.
|
|
13
|
+
* Make it 'false' only if you need to use a link with different style, and the default style clashes over with your
|
|
14
|
+
* custom styles. For example, BreadcrumbsListItem is a link but it has a different styling.
|
|
15
|
+
* @value true
|
|
16
|
+
* @value false
|
|
17
|
+
*/
|
|
18
|
+
defaultStyle?: boolean;
|
|
11
19
|
}
|
|
12
20
|
/**
|
|
13
21
|
* This component defines a hyperlink, which is used to link from one page to another.
|
package/LinkBase/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import React from "react";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import Base from "@digigov/react-core/Base";
|
|
4
4
|
const LinkBase = React.forwardRef(
|
|
5
|
-
function LinkBase2({ underline = true, className, children, ...props }, ref) {
|
|
5
|
+
function LinkBase2({ underline = true, defaultStyle = true, className, children, ...props }, ref) {
|
|
6
6
|
return /* @__PURE__ */ React.createElement(
|
|
7
7
|
Base,
|
|
8
8
|
{
|
|
9
9
|
as: "a",
|
|
10
10
|
ref,
|
|
11
11
|
className: clsx(className, {
|
|
12
|
-
"ds-link":
|
|
12
|
+
"ds-link": defaultStyle,
|
|
13
13
|
"ds-link--no-underline": !underline
|
|
14
14
|
}),
|
|
15
15
|
...props
|
package/LinkBase/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/LinkBase/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface LinkBaseProps extends BaseProps<'a'> {\n /**\n * underline is optional. The default value is 'true'.\n * Make it 'false' only if the context tells the user that the text is a link, even without the underline.\n * @value true\n * @value false\n */\n underline?: boolean;\n}\n/**\n * This component defines a hyperlink, which is used to link from one page to another.\n */\nexport const LinkBase = React.forwardRef<HTMLAnchorElement, LinkBaseProps>(\n function LinkBase({ underline = true, className, children, ...props }, ref) {\n return (\n <Base\n as=\"a\"\n ref={ref}\n className={clsx(className, {\n 'ds-link':
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface LinkBaseProps extends BaseProps<'a'> {\n /**\n * underline is optional. The default value is 'true'.\n * Make it 'false' only if the context tells the user that the text is a link, even without the underline.\n * @value true\n * @value false\n */\n underline?: boolean;\n /**\n * defaultStyle is optional. The default value is 'true'.\n * Make it 'false' only if you need to use a link with different style, and the default style clashes over with your\n * custom styles. For example, BreadcrumbsListItem is a link but it has a different styling.\n * @value true\n * @value false\n */\n defaultStyle?: boolean;\n}\n/**\n * This component defines a hyperlink, which is used to link from one page to another.\n */\nexport const LinkBase = React.forwardRef<HTMLAnchorElement, LinkBaseProps>(\n function LinkBase({ underline = true, defaultStyle = true, className, children, ...props }, ref) {\n return (\n <Base\n as=\"a\"\n ref={ref}\n className={clsx(className, {\n 'ds-link': defaultStyle,\n 'ds-link--no-underline': !underline,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default LinkBase;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAsBzB,MAAM,WAAW,MAAM;AAAA,EAC5B,SAASA,UAAS,EAAE,YAAY,MAAM,eAAe,MAAM,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AAC/F,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,WAAW;AAAA,UACX,yBAAyB,CAAC;AAAA,QAC5B,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,mBAAQ;",
|
|
6
6
|
"names": ["LinkBase"]
|
|
7
7
|
}
|
package/ModalContainer/index.js
CHANGED
|
@@ -8,19 +8,13 @@ const ModalContainer = React.forwardRef(function ModalContainer2({ className, ga
|
|
|
8
8
|
ref,
|
|
9
9
|
as: "div",
|
|
10
10
|
className: clsx(className, {
|
|
11
|
-
"ds-modal": true,
|
|
12
|
-
"ds-modal--open": open,
|
|
13
|
-
"ds-modal--dense": dense
|
|
11
|
+
"ds-modal-container": true,
|
|
12
|
+
"ds-modal-container--open": open,
|
|
13
|
+
"ds-modal-container--dense": dense
|
|
14
14
|
}),
|
|
15
15
|
...props
|
|
16
16
|
},
|
|
17
|
-
/* @__PURE__ */ React.createElement("div",
|
|
18
|
-
"div",
|
|
19
|
-
{
|
|
20
|
-
className: "ds-modal__container"
|
|
21
|
-
},
|
|
22
|
-
children
|
|
23
|
-
) : children)
|
|
17
|
+
/* @__PURE__ */ React.createElement(Base, { as: "div", className: "ds-modal" }, gaps ? /* @__PURE__ */ React.createElement(Base, { as: "div", className: "ds-modal__body" }, children) : children)
|
|
24
18
|
);
|
|
25
19
|
});
|
|
26
20
|
var ModalContainer_default = ModalContainer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ModalContainer/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface ModalContainerProps extends BaseProps<'div'> {\n /**\n * @value true\n * @value false\n */\n open?: boolean;\n /**\n * dense is optional.\n * @value true ModalContainer and its children will be dense.\n * @value false\n * @default false\n */\n dense?: boolean;\n /**\n * gaps is optional.\n * @value false there will be no extra gaps among children components.\n * @value true\n * @default true\n */\n gaps?: boolean;\n}\n/**\n * Modals can be used to open a pop-up dialog box and provide critical information\n * or ask for a decision. Modals disable all app functionality when they appear, and\n * remain on screen until confirmed, dismissed, or a required action has been taken\n * Use Modal as parent component to wrap ModalHeading, ModalText and ModalAction components\n */\nexport const ModalContainer = React.forwardRef<\n HTMLDivElement,\n ModalContainerProps\n>(function ModalContainer({ className, gaps = true, children, open, dense, ...props }
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AA6BzB,MAAM,iBAAiB,MAAM,WAGlC,SAASA,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface ModalContainerProps extends BaseProps<'div'> {\n /**\n * @value true\n * @value false\n */\n open?: boolean;\n /**\n * dense is optional.\n * @value true ModalContainer and its children will be dense.\n * @value false\n * @default false\n */\n dense?: boolean;\n /**\n * gaps is optional.\n * @value false there will be no extra gaps among children components.\n * @value true\n * @default true\n */\n gaps?: boolean;\n}\n/**\n * Modals can be used to open a pop-up dialog box and provide critical information\n * or ask for a decision. Modals disable all app functionality when they appear, and\n * remain on screen until confirmed, dismissed, or a required action has been taken\n * Use Modal as parent component to wrap ModalHeading, ModalText and ModalAction components\n */\nexport const ModalContainer = React.forwardRef<\n HTMLDivElement,\n ModalContainerProps\n>(function ModalContainer(\n { className, gaps = true, children, open, dense, ...props },\n ref\n) {\n return (\n <Base\n ref={ref}\n as=\"div\"\n className={clsx(className, {\n 'ds-modal-container': true,\n 'ds-modal-container--open': open,\n 'ds-modal-container--dense': dense,\n })}\n {...props}\n >\n <Base as=\"div\" className=\"ds-modal\">\n {gaps ? (\n <Base as=\"div\" className=\"ds-modal__body\">\n {children}\n </Base>\n ) : (\n children\n )}\n </Base>\n </Base>\n );\n});\n\nexport default ModalContainer;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AA6BzB,MAAM,iBAAiB,MAAM,WAGlC,SAASA,gBACT,EAAE,WAAW,OAAO,MAAM,UAAU,MAAM,OAAO,GAAG,MAAM,GAC1D,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,IAAG;AAAA,MACH,WAAW,KAAK,WAAW;AAAA,QACzB,sBAAsB;AAAA,QACtB,4BAA4B;AAAA,QAC5B,6BAA6B;AAAA,MAC/B,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEJ,oCAAC,QAAK,IAAG,OAAM,WAAU,cACtB,OACC,oCAAC,QAAK,IAAG,OAAM,WAAU,oBACtB,QACH,IAEA,QAEJ;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,yBAAQ;",
|
|
6
6
|
"names": ["ModalContainer"]
|
|
7
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import Base from "@digigov/react-core/Base";
|
|
4
|
-
|
|
5
|
-
const ResultsHeadingActions = React.forwardRef(function ResultsHeadingActions2({ className, onClick, children, ...props }, ref) {
|
|
4
|
+
const ResultsHeadingActions = React.forwardRef(function ResultsHeadingActions2({ className, children, ...props }, ref) {
|
|
6
5
|
return /* @__PURE__ */ React.createElement(
|
|
7
6
|
Base,
|
|
8
7
|
{
|
|
@@ -13,8 +12,7 @@ const ResultsHeadingActions = React.forwardRef(function ResultsHeadingActions2({
|
|
|
13
12
|
}),
|
|
14
13
|
...props
|
|
15
14
|
},
|
|
16
|
-
children
|
|
17
|
-
/* @__PURE__ */ React.createElement(Button, { className: "ds-link-filters" }, "\u03A6\u03AF\u03BB\u03C4\u03C1\u03B1")
|
|
15
|
+
children
|
|
18
16
|
);
|
|
19
17
|
});
|
|
20
18
|
var ResultsHeadingActions_default = ResultsHeadingActions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ResultsHeadingActions/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface ResultsHeadingActionsProps extends BaseProps<'div'> {}\n/**\n * Use ResultsHeadingActions component to wrap result actions.\n * ResultsHeadingActions component inside ResultsHeading component.\n */\nexport const ResultsHeadingActions = React.forwardRef<\n HTMLDivElement,\n ResultsHeadingActionsProps\n>(function ResultsHeadingActions({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-results__actions': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default ResultsHeadingActions;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAOzB,MAAM,wBAAwB,MAAM,WAGzC,SAASA,uBAAsB,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AACvE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,uBAAuB;AAAA,MACzB,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,gCAAQ;",
|
|
6
6
|
"names": ["ResultsHeadingActions"]
|
|
7
7
|
}
|
package/Stack/index.d.ts
CHANGED
|
@@ -20,12 +20,20 @@ export interface StackProps extends BaseProps<'div'> {
|
|
|
20
20
|
/**
|
|
21
21
|
* spacing is optional. Set to the number you want the space to be.
|
|
22
22
|
*/
|
|
23
|
-
spacing?:
|
|
23
|
+
spacing?: SpacingValues | SpacingMediaValues;
|
|
24
24
|
/**
|
|
25
25
|
* flexWrap is optional. The default value is 'wrap'.
|
|
26
26
|
*/
|
|
27
27
|
flexWrap?: 'wrap' | 'nowrap';
|
|
28
28
|
}
|
|
29
|
+
type SpacingValues = 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 11 | 12;
|
|
30
|
+
type SpacingMediaValues = {
|
|
31
|
+
xs?: SpacingValues;
|
|
32
|
+
sm?: SpacingValues;
|
|
33
|
+
md?: SpacingValues;
|
|
34
|
+
lg?: SpacingValues;
|
|
35
|
+
xl?: SpacingValues;
|
|
36
|
+
};
|
|
29
37
|
/**
|
|
30
38
|
* ...
|
|
31
39
|
*/
|
package/Stack/index.js
CHANGED
|
@@ -25,7 +25,12 @@ const Stack = React.forwardRef(
|
|
|
25
25
|
[`ds-stack--align-${alignItems}`]: alignItems,
|
|
26
26
|
[`ds-stack--content-${alignContent}`]: alignContent,
|
|
27
27
|
"ds-stack--nowrap": flexWrap === "nowrap",
|
|
28
|
-
[`ds-gap-${spacing}`]: spacing !== void 0
|
|
28
|
+
[`ds-gap-${spacing}`]: spacing !== void 0,
|
|
29
|
+
[`ds-gap-xs-${spacing?.xs}`]: spacing?.xs !== void 0,
|
|
30
|
+
[`ds-gap-sm-${spacing?.sm}`]: spacing?.sm !== void 0,
|
|
31
|
+
[`ds-gap-md-${spacing?.md}`]: spacing?.md !== void 0,
|
|
32
|
+
[`ds-gap-lg-${spacing?.lg}`]: spacing?.lg !== void 0,
|
|
33
|
+
[`ds-gap-xl-${spacing?.xl}`]: spacing?.xl !== void 0
|
|
29
34
|
}),
|
|
30
35
|
...props
|
|
31
36
|
},
|