@digigov/react-core 2.0.0-b3ec0588 → 2.0.0-cbc56209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/index.d.ts +1 -1
- package/AccordionControls/index.d.ts +1 -1
- package/AccordionSection/index.d.ts +1 -1
- package/AccordionSectionContent/index.d.ts +1 -1
- package/AccordionSectionSummary/index.d.ts +1 -1
- package/AccordionSectionSummaryHeading/index.d.ts +1 -1
- package/AdminAside/index.d.ts +1 -1
- package/AdminContainer/index.d.ts +1 -1
- package/AdminHeader/index.d.ts +1 -1
- package/AdminHeaderContent/index.d.ts +1 -1
- package/AdminLayout/index.d.ts +1 -1
- package/AdminMain/index.d.ts +1 -1
- package/AdminTopSection/index.d.ts +1 -1
- package/Aside/index.d.ts +1 -1
- package/AutoCompleteAssistiveHint/index.d.ts +1 -1
- package/AutoCompleteInput/index.d.ts +1 -1
- package/AutoCompleteInputTypeahead/index.d.ts +1 -1
- package/AutoCompleteResultList/index.d.ts +1 -1
- package/AutoCompleteResultListItem/index.d.ts +1 -1
- package/AutoCompleteStatus/index.d.ts +1 -1
- package/AutoCompleteStatusWrapper/index.d.ts +1 -1
- package/AutoCompleteWrapper/index.d.ts +1 -1
- package/BackLink/index.d.ts +1 -1
- package/BackToTopContainer/index.d.ts +1 -1
- package/BackToTopLimit/index.d.ts +1 -1
- package/BackToTopLink/index.d.ts +1 -1
- package/BannerContainer/index.d.ts +1 -1
- package/Base/index.d.ts +39 -10
- package/Base/index.js +16 -2
- package/Blockquote/index.d.ts +1 -1
- package/Bottom/index.d.ts +1 -1
- package/BottomInfo/index.d.ts +1 -1
- package/BottomInfoContainer/index.d.ts +1 -1
- package/BottomInfoContent/index.d.ts +1 -1
- package/Breadcrumbs/index.d.ts +1 -1
- package/BreadcrumbsList/index.d.ts +1 -1
- package/BreadcrumbsListItem/index.d.ts +1 -1
- package/Button/index.d.ts +1 -1
- package/ButtonGroup/index.d.ts +1 -1
- package/ButtonLink/index.d.ts +1 -1
- package/CallToAction/index.d.ts +1 -1
- package/Card/__snapshots__/index.test.tsx.snap +42 -0
- package/Card/index.d.ts +8 -1
- package/Card/index.js +3 -2
- package/Card/index.test/index.js +21 -9
- package/CardAction/index.d.ts +1 -1
- package/CardContent/index.d.ts +1 -1
- package/CardHeading/index.d.ts +1 -1
- package/Checkbox/index.d.ts +1 -1
- package/CheckboxConditional/index.d.ts +1 -1
- package/CheckboxItem/index.d.ts +1 -1
- package/Chip/index.d.ts +1 -1
- package/ChipContainer/index.d.ts +1 -1
- package/ChipHeading/index.d.ts +1 -1
- package/ChipKeyValue/index.d.ts +1 -1
- package/ChoiceDividerText/index.d.ts +1 -1
- package/CircularProgress/index.d.ts +1 -1
- package/CloseButton/index.d.ts +1 -1
- package/Code/index.d.ts +1 -1
- package/CodeBlock/index.d.ts +1 -1
- package/Container/index.d.ts +1 -1
- package/CopyToClipboardContainer/index.d.ts +1 -1
- package/CopyToClipboardMessage/index.d.ts +1 -1
- package/CopyrightContainer/index.d.ts +1 -1
- package/DateInputContainer/index.d.ts +1 -1
- package/DateInputItem/index.d.ts +1 -1
- package/Details/index.d.ts +1 -1
- package/DetailsContent/index.d.ts +1 -1
- package/DetailsSummary/index.d.ts +1 -1
- package/Drawer/index.d.ts +1 -1
- package/DrawerHeading/index.d.ts +1 -1
- package/DropdownBase/index.d.ts +1 -1
- package/DropdownButton/index.d.ts +1 -1
- package/DropdownContent/index.d.ts +1 -1
- package/ErrorMessage/index.d.ts +1 -1
- package/ErrorSummary/index.d.ts +1 -1
- package/FieldContainer/index.d.ts +1 -1
- package/Fieldset/index.d.ts +1 -1
- package/FieldsetLegend/index.d.ts +1 -1
- package/FileUpload/index.d.ts +1 -1
- package/FileUploadContainer/index.d.ts +1 -1
- package/FillableText/index.d.ts +1 -1
- package/FilterContainer/index.d.ts +1 -1
- package/FilterContent/index.d.ts +1 -1
- package/FilterHeadingContainer/index.d.ts +1 -1
- package/FilterOptionsSection/index.d.ts +1 -1
- package/FilterSelectedHeading/index.d.ts +1 -1
- package/FilterSelectedSection/index.d.ts +1 -1
- package/Footer/index.d.ts +1 -1
- package/FooterContainer/index.d.ts +1 -1
- package/FooterContent/index.d.ts +1 -1
- package/FooterContentLogos/__snapshots__/index.test.tsx.snap +2 -2
- package/FooterContentLogos/index.d.ts +1 -1
- package/FooterContentLogos/index.js +1 -1
- package/FooterHeading/index.d.ts +1 -1
- package/FooterImage/index.d.ts +1 -1
- package/FooterInfo/index.d.ts +1 -1
- package/FooterInfoSection/index.d.ts +1 -1
- package/FooterLink/index.d.ts +1 -1
- package/FooterList/index.d.ts +1 -1
- package/FooterListItem/index.d.ts +1 -1
- package/FooterNavigation/index.d.ts +1 -1
- package/FooterNavigationSection/index.d.ts +1 -1
- package/Form/index.d.ts +1 -1
- package/FullPageBackground/index.d.ts +1 -1
- package/GovGRLogo/index.d.ts +1 -1
- package/Grid/index.d.ts +1 -1
- package/Header/index.d.ts +1 -1
- package/HeaderContent/index.d.ts +1 -1
- package/HeaderLogo/index.d.ts +1 -1
- package/HeaderNavMenuContent/index.d.ts +1 -1
- package/HeaderSecondaryLogo/index.d.ts +1 -1
- package/HeaderSection/index.d.ts +1 -1
- package/HeaderTitle/index.d.ts +1 -1
- package/Heading/index.d.ts +1 -1
- package/HeadingCaption/index.d.ts +1 -1
- package/HellenicRepublicLogo/index.d.ts +1 -1
- package/Hidden/__snapshots__/index.test.tsx.snap +5 -5
- package/Hidden/index.d.ts +1 -1
- package/Hint/index.d.ts +1 -1
- package/Hint/index.js +1 -1
- package/ImageLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/ImageLogo/index.d.ts +1 -1
- package/ImageLogo/index.js +1 -1
- package/ImageLogoSet/__snapshots__/index.test.tsx.snap +10 -10
- package/ImageLogoSet/index.d.ts +1 -1
- package/KitchenSinkAllComponents/index.d.ts +1 -1
- package/KitchenSinkCard/index.d.ts +1 -1
- package/KitchenSinkCategory/index.d.ts +1 -1
- package/KitchenSinkContent/index.d.ts +1 -1
- package/KitchenSinkContentInfo/index.d.ts +1 -1
- package/KitchenSinkContentTags/index.d.ts +1 -1
- package/KitchenSinkHeading/index.d.ts +1 -1
- package/KitchenSinkLetterContent/index.d.ts +1 -1
- package/LabelContainer/index.d.ts +1 -1
- package/LabelTitle/index.d.ts +1 -1
- package/LabeledText/index.d.ts +1 -1
- package/Layout/index.d.ts +1 -1
- package/LinkBase/index.d.ts +1 -1
- package/List/index.d.ts +1 -1
- package/ListItem/index.d.ts +1 -1
- package/LoaderContainer/index.d.ts +1 -1
- package/Main/index.d.ts +1 -1
- package/Masthead/index.d.ts +1 -1
- package/MastheadBody/index.d.ts +1 -1
- package/MastheadLogo/index.d.ts +1 -1
- package/ModalAction/index.d.ts +1 -1
- package/ModalContainer/index.d.ts +1 -1
- package/ModalContent/index.d.ts +1 -1
- package/ModalHeading/index.d.ts +1 -1
- package/Nav/index.d.ts +1 -1
- package/NavList/index.d.ts +1 -1
- package/NavListItemAction/index.d.ts +1 -1
- package/NavListItemActionContainer/index.d.ts +1 -1
- package/NavListItemButton/index.d.ts +1 -1
- package/NavListItemLink/index.d.ts +1 -1
- package/NavMenuContainer/index.d.ts +1 -1
- package/NavMenuContent/index.d.ts +1 -1
- package/NavMenuContentListBase/index.d.ts +1 -1
- package/NavMenuContentListItem/index.d.ts +1 -1
- package/NavMenuTitle/index.d.ts +1 -1
- package/NormalText/__snapshots__/index.test.tsx.snap +60 -60
- package/NormalText/index.d.ts +1 -1
- package/NormalText/index.js +1 -1
- package/NotificationBannerContainer/index.d.ts +1 -1
- package/NotificationBannerContent/index.d.ts +1 -1
- package/NotificationBannerHeader/index.d.ts +1 -1
- package/NotificationBannerHeading/index.d.ts +1 -1
- package/NotificationBannerLink/index.d.ts +1 -1
- package/PageTitleCaption/index.d.ts +1 -1
- package/PageTitleContainer/index.d.ts +1 -1
- package/PageTitleHeading/index.d.ts +1 -1
- package/Pagination/index.d.ts +1 -1
- package/PaginationLabelContainer/index.d.ts +1 -1
- package/PaginationList/index.d.ts +1 -1
- package/PaginationListItem/index.d.ts +1 -1
- package/Panel/index.d.ts +1 -1
- package/PanelBody/index.d.ts +1 -1
- package/PanelTitle/index.d.ts +1 -1
- package/Paragraph/__snapshots__/index.test.tsx.snap +54 -54
- package/Paragraph/index.d.ts +1 -1
- package/PhaseBanner/index.d.ts +1 -1
- package/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +2 -2
- package/PhaseBannerHeaderContainer/index.d.ts +1 -1
- package/PhaseBannerHeaderContainer/index.js +1 -1
- package/PhaseBannerTag/index.d.ts +1 -1
- package/PhaseBannerText/index.d.ts +1 -1
- package/RadioConditional/index.d.ts +1 -1
- package/RadioContainer/index.d.ts +1 -1
- package/RadioItem/index.d.ts +1 -1
- package/ResultsActionBar/index.d.ts +1 -1
- package/ResultsHeading/index.d.ts +1 -1
- package/ResultsHeadingActions/index.d.ts +1 -1
- package/SearchButton/index.d.ts +1 -1
- package/SearchContainer/index.d.ts +1 -1
- package/Section/index.d.ts +1 -1
- package/SectionBreak/index.d.ts +1 -1
- package/SelectContainer/index.d.ts +1 -1
- package/SelectOption/index.d.ts +1 -1
- package/SingleCharacterInput/index.d.ts +1 -1
- package/SingleCharacterInputs/index.d.ts +1 -1
- package/SkipLink/index.d.ts +1 -1
- package/Stack/index.d.ts +1 -1
- package/StepNav/index.d.ts +1 -1
- package/StepNavAccordion/index.d.ts +1 -1
- package/StepNavAccordionContent/index.d.ts +1 -1
- package/StepNavAccordionHeadingText/index.d.ts +1 -1
- package/StepNavAccordionHeadingTitle/index.d.ts +1 -1
- package/StepNavAccordionSummary/index.d.ts +1 -1
- package/StepNavAccordionSummaryHeading/index.d.ts +1 -1
- package/StepNavCircleNumber/index.d.ts +1 -1
- package/StepNavControls/index.d.ts +1 -1
- package/StepNavList/index.d.ts +1 -1
- package/StepNavListItem/index.d.ts +1 -1
- package/SummaryList/index.d.ts +1 -1
- package/SummaryListItem/index.d.ts +1 -1
- package/SummaryListItemAction/index.d.ts +1 -1
- package/SummaryListItemKey/index.d.ts +1 -1
- package/SummaryListItemValue/index.d.ts +1 -1
- package/SvgIcon/__snapshots__/index.test.tsx.snap +43 -20
- package/SvgIcon/index.d.ts +6 -5
- package/SvgIcon/index.test/index.js +25 -19
- package/Table/index.d.ts +1 -1
- package/TableBody/index.d.ts +1 -1
- package/TableCaption/index.d.ts +1 -1
- package/TableContainer/index.d.ts +1 -1
- package/TableDataCell/index.d.ts +1 -1
- package/TableHead/index.d.ts +1 -1
- package/TableHeadCell/index.d.ts +1 -1
- package/TableLoaderBackground/index.d.ts +1 -1
- package/TableNoDataRow/index.d.ts +1 -1
- package/TableRow/index.d.ts +1 -1
- package/TableSortIconContainer/index.d.ts +1 -1
- package/Tabs/index.d.ts +1 -1
- package/TabsHeading/__snapshots__/index.test.tsx.snap +3 -3
- package/TabsHeading/index.d.ts +1 -1
- package/TabsList/index.d.ts +1 -1
- package/TabsListItemBase/index.d.ts +1 -1
- package/TabsPanelBase/index.d.ts +1 -1
- package/TaskList/index.d.ts +1 -1
- package/TaskListItem/index.d.ts +1 -1
- package/TaskListItemContent/index.d.ts +1 -1
- package/TaskListItemHeading/index.d.ts +1 -1
- package/TaskListItemTag/index.d.ts +1 -1
- package/TextArea/index.d.ts +1 -1
- package/TextInput/index.d.ts +1 -1
- package/Timeline/index.d.ts +1 -1
- package/TimelineActions/index.d.ts +1 -1
- package/TimelineContent/index.d.ts +1 -1
- package/TimelineHeading/index.d.ts +1 -1
- package/TimelineItem/index.d.ts +1 -1
- package/Top/index.d.ts +1 -1
- package/Typography/index.d.ts +1 -1
- package/Unpurge/index.js +1 -1
- package/VisuallyHidden/index.d.ts +1 -1
- package/WarningText/index.d.ts +1 -1
- package/cjs/Base/index.js +16 -2
- package/cjs/Card/__snapshots__/index.test.tsx.snap +42 -0
- package/cjs/Card/index.js +3 -2
- package/cjs/Card/index.test/index.js +21 -9
- package/cjs/FooterContentLogos/__snapshots__/index.test.tsx.snap +2 -2
- package/cjs/FooterContentLogos/index.js +1 -1
- package/cjs/Hidden/__snapshots__/index.test.tsx.snap +5 -5
- package/cjs/Hint/index.js +1 -1
- package/cjs/ImageLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/cjs/ImageLogo/index.js +1 -1
- package/cjs/ImageLogoSet/__snapshots__/index.test.tsx.snap +10 -10
- package/cjs/NormalText/__snapshots__/index.test.tsx.snap +60 -60
- package/cjs/NormalText/index.js +1 -1
- package/cjs/Paragraph/__snapshots__/index.test.tsx.snap +54 -54
- package/cjs/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +2 -2
- package/cjs/PhaseBannerHeaderContainer/index.js +1 -1
- package/cjs/SvgIcon/__snapshots__/index.test.tsx.snap +43 -20
- package/cjs/SvgIcon/index.test/index.js +25 -19
- package/cjs/TabsHeading/__snapshots__/index.test.tsx.snap +3 -3
- package/cjs/Unpurge/index.js +1 -1
- package/cjs/lazy/index.js +2137 -0
- package/index.js +1 -1
- package/lazy/index.js +1655 -0
- package/lazy/package.json +6 -0
- package/lazy.d.ts +239 -0
- package/package.json +3 -3
- package/src/Base/index.tsx +154 -64
- package/src/Card/__snapshots__/index.test.tsx.snap +42 -0
- package/src/Card/index.test.tsx +6 -0
- package/src/Card/index.tsx +9 -1
- package/src/FooterContentLogos/__snapshots__/index.test.tsx.snap +2 -2
- package/src/FooterContentLogos/index.tsx +1 -1
- package/src/Hidden/__snapshots__/index.test.tsx.snap +5 -5
- package/src/Hint/index.tsx +2 -2
- package/src/ImageLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/src/ImageLogo/index.tsx +1 -1
- package/src/ImageLogoSet/__snapshots__/index.test.tsx.snap +10 -10
- package/src/NormalText/__snapshots__/index.test.tsx.snap +60 -60
- package/src/NormalText/index.tsx +2 -2
- package/src/Paragraph/__snapshots__/index.test.tsx.snap +54 -54
- package/src/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +2 -2
- package/src/PhaseBannerHeaderContainer/index.tsx +1 -1
- package/src/SvgIcon/__snapshots__/index.test.tsx.snap +43 -20
- package/src/SvgIcon/index.test.tsx +5 -2
- package/src/SvgIcon/index.tsx +6 -4
- package/src/TabsHeading/__snapshots__/index.test.tsx.snap +3 -3
- package/src/Unpurge/index.tsx +138 -2
- package/src/lazy.js +240 -0
|
@@ -342,14 +342,14 @@ exports[`renders the Paragraph with size=lead 1`] = `
|
|
|
342
342
|
>
|
|
343
343
|
<ForwardRef(Typography)
|
|
344
344
|
as="p"
|
|
345
|
-
className="ds-body
|
|
345
|
+
className="ds-body--lg ds-body"
|
|
346
346
|
>
|
|
347
347
|
<ForwardRef(Base)
|
|
348
348
|
as="p"
|
|
349
|
-
className="ds-body
|
|
349
|
+
className="ds-body--lg ds-body"
|
|
350
350
|
>
|
|
351
351
|
<p
|
|
352
|
-
className="ds-body
|
|
352
|
+
className="ds-body--lg ds-body"
|
|
353
353
|
>
|
|
354
354
|
hello
|
|
355
355
|
</p>
|
|
@@ -371,15 +371,15 @@ exports[`renders the Paragraph with size=lead and fontSize=14 1`] = `
|
|
|
371
371
|
>
|
|
372
372
|
<ForwardRef(Typography)
|
|
373
373
|
as="p"
|
|
374
|
-
className="ds-body
|
|
374
|
+
className="ds-body--lg ds-body"
|
|
375
375
|
fontSize={14}
|
|
376
376
|
>
|
|
377
377
|
<ForwardRef(Base)
|
|
378
378
|
as="p"
|
|
379
|
-
className="ds-body
|
|
379
|
+
className="ds-body--lg ds-body ds-!-font-size-14"
|
|
380
380
|
>
|
|
381
381
|
<p
|
|
382
|
-
className="ds-body
|
|
382
|
+
className="ds-body--lg ds-body ds-!-font-size-14"
|
|
383
383
|
>
|
|
384
384
|
hello
|
|
385
385
|
</p>
|
|
@@ -401,15 +401,15 @@ exports[`renders the Paragraph with size=lead and fontSize=16 1`] = `
|
|
|
401
401
|
>
|
|
402
402
|
<ForwardRef(Typography)
|
|
403
403
|
as="p"
|
|
404
|
-
className="ds-body
|
|
404
|
+
className="ds-body--lg ds-body"
|
|
405
405
|
fontSize={16}
|
|
406
406
|
>
|
|
407
407
|
<ForwardRef(Base)
|
|
408
408
|
as="p"
|
|
409
|
-
className="ds-body
|
|
409
|
+
className="ds-body--lg ds-body ds-!-font-size-16"
|
|
410
410
|
>
|
|
411
411
|
<p
|
|
412
|
-
className="ds-body
|
|
412
|
+
className="ds-body--lg ds-body ds-!-font-size-16"
|
|
413
413
|
>
|
|
414
414
|
hello
|
|
415
415
|
</p>
|
|
@@ -431,15 +431,15 @@ exports[`renders the Paragraph with size=lead and fontSize=19 1`] = `
|
|
|
431
431
|
>
|
|
432
432
|
<ForwardRef(Typography)
|
|
433
433
|
as="p"
|
|
434
|
-
className="ds-body
|
|
434
|
+
className="ds-body--lg ds-body"
|
|
435
435
|
fontSize={19}
|
|
436
436
|
>
|
|
437
437
|
<ForwardRef(Base)
|
|
438
438
|
as="p"
|
|
439
|
-
className="ds-body
|
|
439
|
+
className="ds-body--lg ds-body ds-!-font-size-19"
|
|
440
440
|
>
|
|
441
441
|
<p
|
|
442
|
-
className="ds-body
|
|
442
|
+
className="ds-body--lg ds-body ds-!-font-size-19"
|
|
443
443
|
>
|
|
444
444
|
hello
|
|
445
445
|
</p>
|
|
@@ -461,15 +461,15 @@ exports[`renders the Paragraph with size=lead and fontSize=24 1`] = `
|
|
|
461
461
|
>
|
|
462
462
|
<ForwardRef(Typography)
|
|
463
463
|
as="p"
|
|
464
|
-
className="ds-body
|
|
464
|
+
className="ds-body--lg ds-body"
|
|
465
465
|
fontSize={14}
|
|
466
466
|
>
|
|
467
467
|
<ForwardRef(Base)
|
|
468
468
|
as="p"
|
|
469
|
-
className="ds-body
|
|
469
|
+
className="ds-body--lg ds-body ds-!-font-size-14"
|
|
470
470
|
>
|
|
471
471
|
<p
|
|
472
|
-
className="ds-body
|
|
472
|
+
className="ds-body--lg ds-body ds-!-font-size-14"
|
|
473
473
|
>
|
|
474
474
|
hello
|
|
475
475
|
</p>
|
|
@@ -491,15 +491,15 @@ exports[`renders the Paragraph with size=lead and fontSize=30 1`] = `
|
|
|
491
491
|
>
|
|
492
492
|
<ForwardRef(Typography)
|
|
493
493
|
as="p"
|
|
494
|
-
className="ds-body
|
|
494
|
+
className="ds-body--lg ds-body"
|
|
495
495
|
fontSize={30}
|
|
496
496
|
>
|
|
497
497
|
<ForwardRef(Base)
|
|
498
498
|
as="p"
|
|
499
|
-
className="ds-body
|
|
499
|
+
className="ds-body--lg ds-body ds-!-font-size-30"
|
|
500
500
|
>
|
|
501
501
|
<p
|
|
502
|
-
className="ds-body
|
|
502
|
+
className="ds-body--lg ds-body ds-!-font-size-30"
|
|
503
503
|
>
|
|
504
504
|
hello
|
|
505
505
|
</p>
|
|
@@ -521,15 +521,15 @@ exports[`renders the Paragraph with size=lead and fontSize=36 1`] = `
|
|
|
521
521
|
>
|
|
522
522
|
<ForwardRef(Typography)
|
|
523
523
|
as="p"
|
|
524
|
-
className="ds-body
|
|
524
|
+
className="ds-body--lg ds-body"
|
|
525
525
|
fontSize={36}
|
|
526
526
|
>
|
|
527
527
|
<ForwardRef(Base)
|
|
528
528
|
as="p"
|
|
529
|
-
className="ds-body
|
|
529
|
+
className="ds-body--lg ds-body ds-!-font-size-36"
|
|
530
530
|
>
|
|
531
531
|
<p
|
|
532
|
-
className="ds-body
|
|
532
|
+
className="ds-body--lg ds-body ds-!-font-size-36"
|
|
533
533
|
>
|
|
534
534
|
hello
|
|
535
535
|
</p>
|
|
@@ -551,15 +551,15 @@ exports[`renders the Paragraph with size=lead and fontSize=48 1`] = `
|
|
|
551
551
|
>
|
|
552
552
|
<ForwardRef(Typography)
|
|
553
553
|
as="p"
|
|
554
|
-
className="ds-body
|
|
554
|
+
className="ds-body--lg ds-body"
|
|
555
555
|
fontSize={48}
|
|
556
556
|
>
|
|
557
557
|
<ForwardRef(Base)
|
|
558
558
|
as="p"
|
|
559
|
-
className="ds-body
|
|
559
|
+
className="ds-body--lg ds-body ds-!-font-size-48"
|
|
560
560
|
>
|
|
561
561
|
<p
|
|
562
|
-
className="ds-body
|
|
562
|
+
className="ds-body--lg ds-body ds-!-font-size-48"
|
|
563
563
|
>
|
|
564
564
|
hello
|
|
565
565
|
</p>
|
|
@@ -581,15 +581,15 @@ exports[`renders the Paragraph with size=lead and fontSize=72 1`] = `
|
|
|
581
581
|
>
|
|
582
582
|
<ForwardRef(Typography)
|
|
583
583
|
as="p"
|
|
584
|
-
className="ds-body
|
|
584
|
+
className="ds-body--lg ds-body"
|
|
585
585
|
fontSize={72}
|
|
586
586
|
>
|
|
587
587
|
<ForwardRef(Base)
|
|
588
588
|
as="p"
|
|
589
|
-
className="ds-body
|
|
589
|
+
className="ds-body--lg ds-body ds-!-font-size-72"
|
|
590
590
|
>
|
|
591
591
|
<p
|
|
592
|
-
className="ds-body
|
|
592
|
+
className="ds-body--lg ds-body ds-!-font-size-72"
|
|
593
593
|
>
|
|
594
594
|
hello
|
|
595
595
|
</p>
|
|
@@ -942,14 +942,14 @@ exports[`renders the Paragraph with size=small 1`] = `
|
|
|
942
942
|
>
|
|
943
943
|
<ForwardRef(Typography)
|
|
944
944
|
as="p"
|
|
945
|
-
className="ds-body
|
|
945
|
+
className="ds-body--sm ds-body"
|
|
946
946
|
>
|
|
947
947
|
<ForwardRef(Base)
|
|
948
948
|
as="p"
|
|
949
|
-
className="ds-body
|
|
949
|
+
className="ds-body--sm ds-body"
|
|
950
950
|
>
|
|
951
951
|
<p
|
|
952
|
-
className="ds-body
|
|
952
|
+
className="ds-body--sm ds-body"
|
|
953
953
|
>
|
|
954
954
|
hello
|
|
955
955
|
</p>
|
|
@@ -971,15 +971,15 @@ exports[`renders the Paragraph with size=small and fontSize=14 1`] = `
|
|
|
971
971
|
>
|
|
972
972
|
<ForwardRef(Typography)
|
|
973
973
|
as="p"
|
|
974
|
-
className="ds-body
|
|
974
|
+
className="ds-body--sm ds-body"
|
|
975
975
|
fontSize={14}
|
|
976
976
|
>
|
|
977
977
|
<ForwardRef(Base)
|
|
978
978
|
as="p"
|
|
979
|
-
className="ds-body
|
|
979
|
+
className="ds-body--sm ds-body ds-!-font-size-14"
|
|
980
980
|
>
|
|
981
981
|
<p
|
|
982
|
-
className="ds-body
|
|
982
|
+
className="ds-body--sm ds-body ds-!-font-size-14"
|
|
983
983
|
>
|
|
984
984
|
hello
|
|
985
985
|
</p>
|
|
@@ -1001,15 +1001,15 @@ exports[`renders the Paragraph with size=small and fontSize=16 1`] = `
|
|
|
1001
1001
|
>
|
|
1002
1002
|
<ForwardRef(Typography)
|
|
1003
1003
|
as="p"
|
|
1004
|
-
className="ds-body
|
|
1004
|
+
className="ds-body--sm ds-body"
|
|
1005
1005
|
fontSize={16}
|
|
1006
1006
|
>
|
|
1007
1007
|
<ForwardRef(Base)
|
|
1008
1008
|
as="p"
|
|
1009
|
-
className="ds-body
|
|
1009
|
+
className="ds-body--sm ds-body ds-!-font-size-16"
|
|
1010
1010
|
>
|
|
1011
1011
|
<p
|
|
1012
|
-
className="ds-body
|
|
1012
|
+
className="ds-body--sm ds-body ds-!-font-size-16"
|
|
1013
1013
|
>
|
|
1014
1014
|
hello
|
|
1015
1015
|
</p>
|
|
@@ -1031,15 +1031,15 @@ exports[`renders the Paragraph with size=small and fontSize=19 1`] = `
|
|
|
1031
1031
|
>
|
|
1032
1032
|
<ForwardRef(Typography)
|
|
1033
1033
|
as="p"
|
|
1034
|
-
className="ds-body
|
|
1034
|
+
className="ds-body--sm ds-body"
|
|
1035
1035
|
fontSize={19}
|
|
1036
1036
|
>
|
|
1037
1037
|
<ForwardRef(Base)
|
|
1038
1038
|
as="p"
|
|
1039
|
-
className="ds-body
|
|
1039
|
+
className="ds-body--sm ds-body ds-!-font-size-19"
|
|
1040
1040
|
>
|
|
1041
1041
|
<p
|
|
1042
|
-
className="ds-body
|
|
1042
|
+
className="ds-body--sm ds-body ds-!-font-size-19"
|
|
1043
1043
|
>
|
|
1044
1044
|
hello
|
|
1045
1045
|
</p>
|
|
@@ -1061,15 +1061,15 @@ exports[`renders the Paragraph with size=small and fontSize=24 1`] = `
|
|
|
1061
1061
|
>
|
|
1062
1062
|
<ForwardRef(Typography)
|
|
1063
1063
|
as="p"
|
|
1064
|
-
className="ds-body
|
|
1064
|
+
className="ds-body--sm ds-body"
|
|
1065
1065
|
fontSize={14}
|
|
1066
1066
|
>
|
|
1067
1067
|
<ForwardRef(Base)
|
|
1068
1068
|
as="p"
|
|
1069
|
-
className="ds-body
|
|
1069
|
+
className="ds-body--sm ds-body ds-!-font-size-14"
|
|
1070
1070
|
>
|
|
1071
1071
|
<p
|
|
1072
|
-
className="ds-body
|
|
1072
|
+
className="ds-body--sm ds-body ds-!-font-size-14"
|
|
1073
1073
|
>
|
|
1074
1074
|
hello
|
|
1075
1075
|
</p>
|
|
@@ -1091,15 +1091,15 @@ exports[`renders the Paragraph with size=small and fontSize=30 1`] = `
|
|
|
1091
1091
|
>
|
|
1092
1092
|
<ForwardRef(Typography)
|
|
1093
1093
|
as="p"
|
|
1094
|
-
className="ds-body
|
|
1094
|
+
className="ds-body--sm ds-body"
|
|
1095
1095
|
fontSize={30}
|
|
1096
1096
|
>
|
|
1097
1097
|
<ForwardRef(Base)
|
|
1098
1098
|
as="p"
|
|
1099
|
-
className="ds-body
|
|
1099
|
+
className="ds-body--sm ds-body ds-!-font-size-30"
|
|
1100
1100
|
>
|
|
1101
1101
|
<p
|
|
1102
|
-
className="ds-body
|
|
1102
|
+
className="ds-body--sm ds-body ds-!-font-size-30"
|
|
1103
1103
|
>
|
|
1104
1104
|
hello
|
|
1105
1105
|
</p>
|
|
@@ -1121,15 +1121,15 @@ exports[`renders the Paragraph with size=small and fontSize=36 1`] = `
|
|
|
1121
1121
|
>
|
|
1122
1122
|
<ForwardRef(Typography)
|
|
1123
1123
|
as="p"
|
|
1124
|
-
className="ds-body
|
|
1124
|
+
className="ds-body--sm ds-body"
|
|
1125
1125
|
fontSize={36}
|
|
1126
1126
|
>
|
|
1127
1127
|
<ForwardRef(Base)
|
|
1128
1128
|
as="p"
|
|
1129
|
-
className="ds-body
|
|
1129
|
+
className="ds-body--sm ds-body ds-!-font-size-36"
|
|
1130
1130
|
>
|
|
1131
1131
|
<p
|
|
1132
|
-
className="ds-body
|
|
1132
|
+
className="ds-body--sm ds-body ds-!-font-size-36"
|
|
1133
1133
|
>
|
|
1134
1134
|
hello
|
|
1135
1135
|
</p>
|
|
@@ -1151,15 +1151,15 @@ exports[`renders the Paragraph with size=small and fontSize=48 1`] = `
|
|
|
1151
1151
|
>
|
|
1152
1152
|
<ForwardRef(Typography)
|
|
1153
1153
|
as="p"
|
|
1154
|
-
className="ds-body
|
|
1154
|
+
className="ds-body--sm ds-body"
|
|
1155
1155
|
fontSize={48}
|
|
1156
1156
|
>
|
|
1157
1157
|
<ForwardRef(Base)
|
|
1158
1158
|
as="p"
|
|
1159
|
-
className="ds-body
|
|
1159
|
+
className="ds-body--sm ds-body ds-!-font-size-48"
|
|
1160
1160
|
>
|
|
1161
1161
|
<p
|
|
1162
|
-
className="ds-body
|
|
1162
|
+
className="ds-body--sm ds-body ds-!-font-size-48"
|
|
1163
1163
|
>
|
|
1164
1164
|
hello
|
|
1165
1165
|
</p>
|
|
@@ -1181,15 +1181,15 @@ exports[`renders the Paragraph with size=small and fontSize=72 1`] = `
|
|
|
1181
1181
|
>
|
|
1182
1182
|
<ForwardRef(Typography)
|
|
1183
1183
|
as="p"
|
|
1184
|
-
className="ds-body
|
|
1184
|
+
className="ds-body--sm ds-body"
|
|
1185
1185
|
fontSize={72}
|
|
1186
1186
|
>
|
|
1187
1187
|
<ForwardRef(Base)
|
|
1188
1188
|
as="p"
|
|
1189
|
-
className="ds-body
|
|
1189
|
+
className="ds-body--sm ds-body ds-!-font-size-72"
|
|
1190
1190
|
>
|
|
1191
1191
|
<p
|
|
1192
|
-
className="ds-body
|
|
1192
|
+
className="ds-body--sm ds-body ds-!-font-size-72"
|
|
1193
1193
|
>
|
|
1194
1194
|
hello
|
|
1195
1195
|
</p>
|
|
@@ -4,10 +4,10 @@ exports[`renders the PhaseBannerHeaderContainer with no props 1`] = `
|
|
|
4
4
|
<ForwardRef(PhaseBannerHeaderContainer)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="div"
|
|
7
|
-
className="ds-phase-
|
|
7
|
+
className="ds-phase-banner-header"
|
|
8
8
|
>
|
|
9
9
|
<div
|
|
10
|
-
className="ds-phase-
|
|
10
|
+
className="ds-phase-banner-header"
|
|
11
11
|
>
|
|
12
12
|
hello
|
|
13
13
|
</div>
|
|
@@ -19,6 +19,29 @@ exports[`renders the SvgIcon with no props 1`] = `
|
|
|
19
19
|
</ForwardRef(SvgIcon)>
|
|
20
20
|
`;
|
|
21
21
|
|
|
22
|
+
exports[`renders the SvgIcon with prop color=base-content 1`] = `
|
|
23
|
+
<ForwardRef(SvgIcon)
|
|
24
|
+
color="base-content"
|
|
25
|
+
>
|
|
26
|
+
<ForwardRef(Base)
|
|
27
|
+
aria-hidden="true"
|
|
28
|
+
as="svg"
|
|
29
|
+
className="ds-svg-icon--base-content ds-svg-icon"
|
|
30
|
+
focusable="false"
|
|
31
|
+
viewBox="0 0 24 24"
|
|
32
|
+
>
|
|
33
|
+
<svg
|
|
34
|
+
aria-hidden="true"
|
|
35
|
+
className="ds-svg-icon--base-content ds-svg-icon"
|
|
36
|
+
focusable="false"
|
|
37
|
+
viewBox="0 0 24 24"
|
|
38
|
+
>
|
|
39
|
+
hello
|
|
40
|
+
</svg>
|
|
41
|
+
</ForwardRef(Base)>
|
|
42
|
+
</ForwardRef(SvgIcon)>
|
|
43
|
+
`;
|
|
44
|
+
|
|
22
45
|
exports[`renders the SvgIcon with prop color=dark 1`] = `
|
|
23
46
|
<ForwardRef(SvgIcon)
|
|
24
47
|
color="dark"
|
|
@@ -135,20 +158,20 @@ exports[`renders the SvgIcon with prop color=gray 1`] = `
|
|
|
135
158
|
</ForwardRef(SvgIcon)>
|
|
136
159
|
`;
|
|
137
160
|
|
|
138
|
-
exports[`renders the SvgIcon with prop color=
|
|
161
|
+
exports[`renders the SvgIcon with prop color=primary 1`] = `
|
|
139
162
|
<ForwardRef(SvgIcon)
|
|
140
|
-
color="
|
|
163
|
+
color="primary"
|
|
141
164
|
>
|
|
142
165
|
<ForwardRef(Base)
|
|
143
166
|
aria-hidden="true"
|
|
144
167
|
as="svg"
|
|
145
|
-
className="ds-svg-icon--
|
|
168
|
+
className="ds-svg-icon--primary ds-svg-icon"
|
|
146
169
|
focusable="false"
|
|
147
170
|
viewBox="0 0 24 24"
|
|
148
171
|
>
|
|
149
172
|
<svg
|
|
150
173
|
aria-hidden="true"
|
|
151
|
-
className="ds-svg-icon--
|
|
174
|
+
className="ds-svg-icon--primary ds-svg-icon"
|
|
152
175
|
focusable="false"
|
|
153
176
|
viewBox="0 0 24 24"
|
|
154
177
|
>
|
|
@@ -158,20 +181,20 @@ exports[`renders the SvgIcon with prop color=light 1`] = `
|
|
|
158
181
|
</ForwardRef(SvgIcon)>
|
|
159
182
|
`;
|
|
160
183
|
|
|
161
|
-
exports[`renders the SvgIcon with prop color=
|
|
184
|
+
exports[`renders the SvgIcon with prop color=success 1`] = `
|
|
162
185
|
<ForwardRef(SvgIcon)
|
|
163
|
-
color="
|
|
186
|
+
color="success"
|
|
164
187
|
>
|
|
165
188
|
<ForwardRef(Base)
|
|
166
189
|
aria-hidden="true"
|
|
167
190
|
as="svg"
|
|
168
|
-
className="ds-svg-icon--
|
|
191
|
+
className="ds-svg-icon--success ds-svg-icon"
|
|
169
192
|
focusable="false"
|
|
170
193
|
viewBox="0 0 24 24"
|
|
171
194
|
>
|
|
172
195
|
<svg
|
|
173
196
|
aria-hidden="true"
|
|
174
|
-
className="ds-svg-icon--
|
|
197
|
+
className="ds-svg-icon--success ds-svg-icon"
|
|
175
198
|
focusable="false"
|
|
176
199
|
viewBox="0 0 24 24"
|
|
177
200
|
>
|
|
@@ -181,20 +204,20 @@ exports[`renders the SvgIcon with prop color=primary 1`] = `
|
|
|
181
204
|
</ForwardRef(SvgIcon)>
|
|
182
205
|
`;
|
|
183
206
|
|
|
184
|
-
exports[`renders the SvgIcon with prop color=
|
|
207
|
+
exports[`renders the SvgIcon with prop color=warning 1`] = `
|
|
185
208
|
<ForwardRef(SvgIcon)
|
|
186
|
-
color="
|
|
209
|
+
color="warning"
|
|
187
210
|
>
|
|
188
211
|
<ForwardRef(Base)
|
|
189
212
|
aria-hidden="true"
|
|
190
213
|
as="svg"
|
|
191
|
-
className="ds-svg-icon--
|
|
214
|
+
className="ds-svg-icon--warning ds-svg-icon"
|
|
192
215
|
focusable="false"
|
|
193
216
|
viewBox="0 0 24 24"
|
|
194
217
|
>
|
|
195
218
|
<svg
|
|
196
219
|
aria-hidden="true"
|
|
197
|
-
className="ds-svg-icon--
|
|
220
|
+
className="ds-svg-icon--warning ds-svg-icon"
|
|
198
221
|
focusable="false"
|
|
199
222
|
viewBox="0 0 24 24"
|
|
200
223
|
>
|
|
@@ -204,20 +227,21 @@ exports[`renders the SvgIcon with prop color=success 1`] = `
|
|
|
204
227
|
</ForwardRef(SvgIcon)>
|
|
205
228
|
`;
|
|
206
229
|
|
|
207
|
-
exports[`renders the SvgIcon with prop color=warning 1`] = `
|
|
230
|
+
exports[`renders the SvgIcon with prop color=warning and size=sm 1`] = `
|
|
208
231
|
<ForwardRef(SvgIcon)
|
|
209
232
|
color="warning"
|
|
233
|
+
size="sm"
|
|
210
234
|
>
|
|
211
235
|
<ForwardRef(Base)
|
|
212
236
|
aria-hidden="true"
|
|
213
237
|
as="svg"
|
|
214
|
-
className="ds-svg-icon--warning ds-svg-icon"
|
|
238
|
+
className="ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
215
239
|
focusable="false"
|
|
216
240
|
viewBox="0 0 24 24"
|
|
217
241
|
>
|
|
218
242
|
<svg
|
|
219
243
|
aria-hidden="true"
|
|
220
|
-
className="ds-svg-icon--warning ds-svg-icon"
|
|
244
|
+
className="ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
221
245
|
focusable="false"
|
|
222
246
|
viewBox="0 0 24 24"
|
|
223
247
|
>
|
|
@@ -227,21 +251,20 @@ exports[`renders the SvgIcon with prop color=warning 1`] = `
|
|
|
227
251
|
</ForwardRef(SvgIcon)>
|
|
228
252
|
`;
|
|
229
253
|
|
|
230
|
-
exports[`renders the SvgIcon with prop color=
|
|
254
|
+
exports[`renders the SvgIcon with prop color=white 1`] = `
|
|
231
255
|
<ForwardRef(SvgIcon)
|
|
232
|
-
color="
|
|
233
|
-
size="sm"
|
|
256
|
+
color="white"
|
|
234
257
|
>
|
|
235
258
|
<ForwardRef(Base)
|
|
236
259
|
aria-hidden="true"
|
|
237
260
|
as="svg"
|
|
238
|
-
className="ds-svg-icon--
|
|
261
|
+
className="ds-svg-icon--white ds-svg-icon"
|
|
239
262
|
focusable="false"
|
|
240
263
|
viewBox="0 0 24 24"
|
|
241
264
|
>
|
|
242
265
|
<svg
|
|
243
266
|
aria-hidden="true"
|
|
244
|
-
className="ds-svg-icon--
|
|
267
|
+
className="ds-svg-icon--white ds-svg-icon"
|
|
245
268
|
focusable="false"
|
|
246
269
|
viewBox="0 0 24 24"
|
|
247
270
|
>
|
|
@@ -21,11 +21,14 @@ it('renders the SvgIcon with prop size=lg', () => {
|
|
|
21
21
|
it('renders the SvgIcon with prop size=xl', () => {
|
|
22
22
|
expect(mount(<SvgIcon size="xl">hello</SvgIcon>)).toMatchSnapshot();
|
|
23
23
|
});
|
|
24
|
+
it('renders the SvgIcon with prop color=base-content', () => {
|
|
25
|
+
expect(mount(<SvgIcon color="base-content">hello</SvgIcon>)).toMatchSnapshot();
|
|
26
|
+
});
|
|
24
27
|
it('renders the SvgIcon with prop color=dark', () => {
|
|
25
28
|
expect(mount(<SvgIcon color="dark">hello</SvgIcon>)).toMatchSnapshot();
|
|
26
29
|
});
|
|
27
|
-
it('renders the SvgIcon with prop color=
|
|
28
|
-
expect(mount(<SvgIcon color="
|
|
30
|
+
it('renders the SvgIcon with prop color=white', () => {
|
|
31
|
+
expect(mount(<SvgIcon color="white">hello</SvgIcon>)).toMatchSnapshot();
|
|
29
32
|
});
|
|
30
33
|
it('renders the SvgIcon with prop color=gray', () => {
|
|
31
34
|
expect(mount(<SvgIcon color="gray">hello</SvgIcon>)).toMatchSnapshot();
|
package/src/SvgIcon/index.tsx
CHANGED
|
@@ -18,20 +18,22 @@ export interface SvgIconProps extends BaseProps<'svg'> {
|
|
|
18
18
|
/**
|
|
19
19
|
* color property styles svg icon with Gov.gr palette's basic colors.
|
|
20
20
|
* color property is optional.
|
|
21
|
-
* @value '
|
|
22
|
-
* @value '
|
|
21
|
+
* @value 'base-content'
|
|
22
|
+
* @value 'dark', always dark, among all themes
|
|
23
|
+
* @value 'white', always white, among all themes
|
|
23
24
|
* @value 'gray'
|
|
24
25
|
* @value 'primary'
|
|
25
26
|
* @value 'success'
|
|
26
27
|
* @value 'warning'
|
|
27
28
|
* @value 'error'
|
|
28
|
-
* @value 'focus'
|
|
29
|
+
* @value 'focus', use only in focus state, in dark background
|
|
29
30
|
* @value 'info'
|
|
30
31
|
* @value 'link'
|
|
31
32
|
*/
|
|
32
33
|
color?:
|
|
34
|
+
| 'base-content'
|
|
33
35
|
| 'dark'
|
|
34
|
-
| '
|
|
36
|
+
| 'white'
|
|
35
37
|
| 'gray'
|
|
36
38
|
| 'primary'
|
|
37
39
|
| 'success'
|
|
@@ -11,7 +11,7 @@ exports[`renders the TabsHeading with no props 1`] = `
|
|
|
11
11
|
xsUpHidden={false}
|
|
12
12
|
>
|
|
13
13
|
<div
|
|
14
|
-
className="ds-hidden-md
|
|
14
|
+
className="ds-hidden-md-up"
|
|
15
15
|
>
|
|
16
16
|
<ForwardRef(Heading)
|
|
17
17
|
size="sm"
|
|
@@ -51,7 +51,7 @@ exports[`renders the TabsHeading with size=m 1`] = `
|
|
|
51
51
|
xsUpHidden={false}
|
|
52
52
|
>
|
|
53
53
|
<div
|
|
54
|
-
className="ds-hidden-md
|
|
54
|
+
className="ds-hidden-md-up"
|
|
55
55
|
>
|
|
56
56
|
<ForwardRef(Heading)
|
|
57
57
|
size="md"
|
|
@@ -91,7 +91,7 @@ exports[`renders the TabsHeading with size=s 1`] = `
|
|
|
91
91
|
xsUpHidden={false}
|
|
92
92
|
>
|
|
93
93
|
<div
|
|
94
|
-
className="ds-hidden-md
|
|
94
|
+
className="ds-hidden-md-up"
|
|
95
95
|
>
|
|
96
96
|
<ForwardRef(Heading)
|
|
97
97
|
size="sm"
|