@digigov/react-core 2.0.0-af1b5f33 → 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/__snapshots__/index.test.tsx.snap +3 -3
- 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/__snapshots__/index.test.tsx.snap +6 -6
- package/CallToAction/index.d.ts +1 -1
- package/Card/__snapshots__/index.test.tsx.snap +42 -0
- package/Card/index.d.ts +8 -1
- package/Card/index.js +3 -2
- package/Card/index.test/index.js +21 -9
- package/CardAction/index.d.ts +1 -1
- package/CardContent/index.d.ts +1 -1
- package/CardHeading/index.d.ts +1 -1
- package/Checkbox/index.d.ts +1 -1
- package/CheckboxConditional/index.d.ts +1 -1
- package/CheckboxItem/index.d.ts +1 -1
- package/Chip/index.d.ts +1 -1
- package/ChipContainer/index.d.ts +1 -1
- package/ChipHeading/index.d.ts +1 -1
- package/ChipKeyValue/index.d.ts +1 -1
- package/ChoiceDividerText/index.d.ts +1 -1
- package/CircularProgress/index.d.ts +1 -1
- package/CloseButton/index.d.ts +1 -1
- package/Code/index.d.ts +1 -1
- package/CodeBlock/index.d.ts +1 -1
- package/Container/index.d.ts +1 -1
- package/CopyToClipboardContainer/index.d.ts +1 -1
- package/CopyToClipboardMessage/index.d.ts +1 -1
- package/CopyrightContainer/index.d.ts +1 -1
- package/DateInputContainer/index.d.ts +1 -1
- package/DateInputItem/index.d.ts +1 -1
- package/Details/index.d.ts +1 -1
- package/DetailsContent/index.d.ts +1 -1
- package/DetailsSummary/index.d.ts +1 -1
- package/Drawer/index.d.ts +1 -1
- package/DrawerHeading/index.d.ts +1 -1
- package/DropdownBase/index.d.ts +1 -1
- package/DropdownButton/__snapshots__/index.test.tsx.snap +36 -36
- package/DropdownButton/index.d.ts +1 -1
- package/DropdownContent/index.d.ts +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 +14 -10
- package/Hidden/index.d.ts +1 -1
- package/Hint/index.d.ts +1 -1
- package/Hint/index.js +1 -1
- package/ImageLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/ImageLogo/index.d.ts +1 -1
- package/ImageLogo/index.js +1 -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/__snapshots__/index.test.tsx.snap +18 -18
- package/NavListItemButton/index.d.ts +1 -1
- package/NavListItemLink/index.d.ts +1 -1
- package/NavMenuContainer/index.d.ts +1 -1
- package/NavMenuContent/index.d.ts +1 -1
- package/NavMenuContentListBase/index.d.ts +1 -1
- package/NavMenuContentListItem/index.d.ts +1 -1
- package/NavMenuTitle/index.d.ts +1 -1
- package/NormalText/__snapshots__/index.test.tsx.snap +60 -60
- package/NormalText/index.d.ts +1 -1
- package/NormalText/index.js +1 -1
- package/NotificationBannerContainer/index.d.ts +1 -1
- package/NotificationBannerContent/index.d.ts +1 -1
- package/NotificationBannerHeader/index.d.ts +1 -1
- package/NotificationBannerHeading/index.d.ts +1 -1
- package/NotificationBannerLink/index.d.ts +1 -1
- package/PageTitleCaption/index.d.ts +1 -1
- package/PageTitleContainer/index.d.ts +1 -1
- package/PageTitleHeading/index.d.ts +1 -1
- package/Pagination/index.d.ts +1 -1
- package/PaginationLabelContainer/index.d.ts +1 -1
- package/PaginationList/index.d.ts +1 -1
- package/PaginationListItem/index.d.ts +1 -1
- package/Panel/index.d.ts +1 -1
- package/PanelBody/index.d.ts +1 -1
- package/PanelTitle/index.d.ts +1 -1
- package/Paragraph/__snapshots__/index.test.tsx.snap +54 -54
- package/Paragraph/index.d.ts +1 -1
- package/PhaseBanner/index.d.ts +1 -1
- package/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +2 -2
- package/PhaseBannerHeaderContainer/index.d.ts +1 -1
- package/PhaseBannerHeaderContainer/index.js +1 -1
- package/PhaseBannerTag/index.d.ts +1 -1
- package/PhaseBannerText/index.d.ts +1 -1
- package/RadioConditional/index.d.ts +1 -1
- package/RadioContainer/index.d.ts +1 -1
- package/RadioItem/index.d.ts +1 -1
- package/ResultsActionBar/index.d.ts +1 -1
- package/ResultsHeading/index.d.ts +1 -1
- package/ResultsHeadingActions/index.d.ts +1 -1
- package/SearchButton/index.d.ts +1 -1
- package/SearchContainer/index.d.ts +1 -1
- package/Section/index.d.ts +1 -1
- package/SectionBreak/index.d.ts +1 -1
- package/SelectContainer/index.d.ts +1 -1
- package/SelectOption/index.d.ts +1 -1
- package/SingleCharacterInput/index.d.ts +1 -1
- package/SingleCharacterInputs/index.d.ts +1 -1
- package/SkipLink/index.d.ts +1 -1
- package/Stack/index.d.ts +1 -1
- package/StepNav/index.d.ts +1 -1
- package/StepNavAccordion/index.d.ts +1 -1
- package/StepNavAccordionContent/index.d.ts +1 -1
- package/StepNavAccordionHeadingText/index.d.ts +1 -1
- package/StepNavAccordionHeadingTitle/index.d.ts +1 -1
- package/StepNavAccordionSummary/index.d.ts +1 -1
- package/StepNavAccordionSummaryHeading/index.d.ts +1 -1
- package/StepNavCircleNumber/index.d.ts +1 -1
- package/StepNavControls/index.d.ts +1 -1
- package/StepNavList/index.d.ts +1 -1
- package/StepNavListItem/index.d.ts +1 -1
- package/SummaryList/index.d.ts +1 -1
- package/SummaryListItem/index.d.ts +1 -1
- package/SummaryListItemAction/index.d.ts +1 -1
- package/SummaryListItemKey/index.d.ts +1 -1
- package/SummaryListItemValue/index.d.ts +1 -1
- package/SvgIcon/__snapshots__/index.test.tsx.snap +84 -61
- package/SvgIcon/index.d.ts +9 -7
- package/SvgIcon/index.js +3 -3
- package/SvgIcon/index.test/index.js +28 -22
- package/Table/index.d.ts +1 -1
- package/TableBody/index.d.ts +1 -1
- package/TableCaption/index.d.ts +1 -1
- package/TableContainer/index.d.ts +1 -1
- package/TableDataCell/index.d.ts +1 -1
- package/TableHead/index.d.ts +1 -1
- package/TableHeadCell/index.d.ts +1 -1
- package/TableLoaderBackground/index.d.ts +1 -1
- package/TableNoDataRow/index.d.ts +1 -1
- package/TableRow/index.d.ts +1 -1
- package/TableSortIconContainer/index.d.ts +1 -1
- package/Tabs/index.d.ts +1 -1
- package/TabsHeading/__snapshots__/index.test.tsx.snap +9 -6
- package/TabsHeading/index.d.ts +1 -1
- package/TabsList/index.d.ts +1 -1
- package/TabsListItemBase/index.d.ts +1 -1
- package/TabsPanelBase/index.d.ts +1 -1
- package/TaskList/index.d.ts +1 -1
- package/TaskListItem/index.d.ts +1 -1
- package/TaskListItemContent/index.d.ts +1 -1
- package/TaskListItemHeading/index.d.ts +1 -1
- package/TaskListItemTag/index.d.ts +1 -1
- package/TextArea/index.d.ts +1 -1
- package/TextInput/index.d.ts +1 -1
- package/Timeline/index.d.ts +1 -1
- package/TimelineActions/index.d.ts +1 -1
- package/TimelineContent/index.d.ts +1 -1
- package/TimelineHeading/index.d.ts +1 -1
- package/TimelineItem/index.d.ts +1 -1
- package/Top/index.d.ts +1 -1
- package/Typography/index.d.ts +1 -1
- package/Unpurge/index.js +1 -1
- package/VisuallyHidden/index.d.ts +1 -1
- package/WarningText/index.d.ts +1 -1
- package/cjs/Aside/__snapshots__/index.test.tsx.snap +3 -3
- package/cjs/Base/index.js +16 -2
- package/cjs/CallToAction/__snapshots__/index.test.tsx.snap +6 -6
- package/cjs/Card/__snapshots__/index.test.tsx.snap +42 -0
- package/cjs/Card/index.js +3 -2
- package/cjs/Card/index.test/index.js +21 -9
- package/cjs/DropdownButton/__snapshots__/index.test.tsx.snap +36 -36
- package/cjs/FooterContentLogos/__snapshots__/index.test.tsx.snap +2 -2
- package/cjs/FooterContentLogos/index.js +1 -1
- package/cjs/Hidden/__snapshots__/index.test.tsx.snap +14 -10
- package/cjs/Hint/index.js +1 -1
- package/cjs/ImageLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/cjs/ImageLogo/index.js +1 -1
- package/cjs/ImageLogoSet/__snapshots__/index.test.tsx.snap +10 -10
- package/cjs/NavListItemButton/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/NormalText/__snapshots__/index.test.tsx.snap +60 -60
- package/cjs/NormalText/index.js +1 -1
- package/cjs/Paragraph/__snapshots__/index.test.tsx.snap +54 -54
- package/cjs/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +2 -2
- package/cjs/PhaseBannerHeaderContainer/index.js +1 -1
- package/cjs/SvgIcon/__snapshots__/index.test.tsx.snap +84 -61
- package/cjs/SvgIcon/index.js +3 -3
- package/cjs/SvgIcon/index.test/index.js +28 -22
- package/cjs/TabsHeading/__snapshots__/index.test.tsx.snap +9 -6
- package/cjs/Unpurge/index.js +1 -1
- package/cjs/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/Aside/__snapshots__/index.test.tsx.snap +3 -3
- package/src/Base/index.tsx +154 -64
- package/src/CallToAction/__snapshots__/index.test.tsx.snap +6 -6
- package/src/Card/__snapshots__/index.test.tsx.snap +42 -0
- package/src/Card/index.test.tsx +6 -0
- package/src/Card/index.tsx +9 -1
- package/src/DropdownButton/__snapshots__/index.test.tsx.snap +36 -36
- package/src/FooterContentLogos/__snapshots__/index.test.tsx.snap +2 -2
- package/src/FooterContentLogos/index.tsx +1 -1
- package/src/Hidden/__snapshots__/index.test.tsx.snap +14 -10
- package/src/Hint/index.tsx +2 -2
- package/src/ImageLogo/__snapshots__/index.test.tsx.snap +2 -2
- package/src/ImageLogo/index.tsx +1 -1
- package/src/ImageLogoSet/__snapshots__/index.test.tsx.snap +10 -10
- package/src/NavListItemButton/__snapshots__/index.test.tsx.snap +18 -18
- package/src/NormalText/__snapshots__/index.test.tsx.snap +60 -60
- package/src/NormalText/index.tsx +2 -2
- package/src/Paragraph/__snapshots__/index.test.tsx.snap +54 -54
- package/src/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +2 -2
- package/src/PhaseBannerHeaderContainer/index.tsx +1 -1
- package/src/SvgIcon/__snapshots__/index.test.tsx.snap +84 -61
- package/src/SvgIcon/index.test.tsx +23 -20
- package/src/SvgIcon/index.tsx +12 -9
- package/src/TabsHeading/__snapshots__/index.test.tsx.snap +9 -6
- package/src/Unpurge/index.tsx +138 -2
- package/src/lazy.js +240 -0
|
@@ -4,7 +4,7 @@ exports[`renders the Aside with no props 1`] = `
|
|
|
4
4
|
<ForwardRef(Aside)>
|
|
5
5
|
<ForwardRef(Grid)
|
|
6
6
|
as="aside"
|
|
7
|
-
className="ds-aside"
|
|
7
|
+
className="ds-aside--sticky ds-aside"
|
|
8
8
|
item={true}
|
|
9
9
|
md={4}
|
|
10
10
|
spacing={4}
|
|
@@ -12,10 +12,10 @@ exports[`renders the Aside with no props 1`] = `
|
|
|
12
12
|
>
|
|
13
13
|
<ForwardRef(Base)
|
|
14
14
|
as="aside"
|
|
15
|
-
className="ds-aside xs:ds-grid__col-span-12 md:ds-grid__col-span-4"
|
|
15
|
+
className="ds-aside--sticky ds-aside xs:ds-grid__col-span-12 md:ds-grid__col-span-4"
|
|
16
16
|
>
|
|
17
17
|
<aside
|
|
18
|
-
className="ds-aside xs:ds-grid__col-span-12 md:ds-grid__col-span-4"
|
|
18
|
+
className="ds-aside--sticky ds-aside xs:ds-grid__col-span-12 md:ds-grid__col-span-4"
|
|
19
19
|
>
|
|
20
20
|
hello
|
|
21
21
|
</aside>
|
package/cjs/Base/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
|
-
var _excluded = ["as", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "printHidden", "printVisible", "hidden", "xsUpHidden", "smUpHidden", "mdUpHidden", "lgUpHidden", "xlUpHidden", "xsHidden", "smHidden", "mdHidden", "lgHidden", "xlHidden", "children", "className"];
|
|
12
|
+
var _excluded = ["as", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "m", "mt", "mb", "ml", "mr", "mx", "my", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "p", "pt", "pb", "pr", "pl", "px", "py", "printHidden", "printVisible", "hidden", "xsUpHidden", "smUpHidden", "mdUpHidden", "lgUpHidden", "xlUpHidden", "xsHidden", "smHidden", "mdHidden", "lgHidden", "xlHidden", "children", "className"];
|
|
13
13
|
// This is the first reusable type utility we built
|
|
14
14
|
|
|
15
15
|
// This is a new type utitlity with ref!
|
|
@@ -31,11 +31,25 @@ var Base = exports.Base = /*#__PURE__*/_react["default"].forwardRef(function Bas
|
|
|
31
31
|
marginBottom = _ref.marginBottom,
|
|
32
32
|
marginLeft = _ref.marginLeft,
|
|
33
33
|
marginRight = _ref.marginRight,
|
|
34
|
+
m = _ref.m,
|
|
35
|
+
mt = _ref.mt,
|
|
36
|
+
mb = _ref.mb,
|
|
37
|
+
ml = _ref.ml,
|
|
38
|
+
mr = _ref.mr,
|
|
39
|
+
mx = _ref.mx,
|
|
40
|
+
my = _ref.my,
|
|
34
41
|
padding = _ref.padding,
|
|
35
42
|
paddingTop = _ref.paddingTop,
|
|
36
43
|
paddingBottom = _ref.paddingBottom,
|
|
37
44
|
paddingLeft = _ref.paddingLeft,
|
|
38
45
|
paddingRight = _ref.paddingRight,
|
|
46
|
+
p = _ref.p,
|
|
47
|
+
pt = _ref.pt,
|
|
48
|
+
pb = _ref.pb,
|
|
49
|
+
pr = _ref.pr,
|
|
50
|
+
pl = _ref.pl,
|
|
51
|
+
px = _ref.px,
|
|
52
|
+
py = _ref.py,
|
|
39
53
|
printHidden = _ref.printHidden,
|
|
40
54
|
printVisible = _ref.printVisible,
|
|
41
55
|
hidden = _ref.hidden,
|
|
@@ -54,7 +68,7 @@ var Base = exports.Base = /*#__PURE__*/_react["default"].forwardRef(function Bas
|
|
|
54
68
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
55
69
|
var Component = as || 'span';
|
|
56
70
|
return /*#__PURE__*/_react["default"].createElement(Component, (0, _extends2["default"])({
|
|
57
|
-
className: (0, _clsx["default"])(className, (paddingBottom !== undefined ? true : undefined) && "ds-pb-".concat(paddingBottom), (marginBottom !== undefined ? true : undefined) && "ds-mb-".concat(marginBottom), (paddingRight !== undefined ? true : undefined) && "ds-pr-".concat(paddingRight), (marginRight !== undefined ? true : undefined) && "ds-mr-".concat(marginRight), (paddingLeft !== undefined ? true : undefined) && "ds-pl-".concat(paddingLeft), (marginLeft !== undefined ? true : undefined) && "ds-ml-".concat(marginLeft), (paddingTop !== undefined ? true : undefined) && "ds-pt-".concat(paddingTop), (marginTop !== undefined ? true : undefined) && "ds-mt-".concat(marginTop), (padding !== undefined ? true : undefined) && "ds-p-".concat(padding), (margin !== undefined ? true : undefined) && "ds-m-".concat(margin), printVisible === 'inline' && 'ds-print-visible-inline', printVisible === 'block' && 'ds-print-visible-block', !!printHidden && 'ds-print-hidden', !!xsUpHidden && 'ds-hidden-xs
|
|
71
|
+
className: (0, _clsx["default"])(className, (paddingBottom !== undefined ? true : undefined) && "ds-pb-".concat(paddingBottom), (marginBottom !== undefined ? true : undefined) && "ds-mb-".concat(marginBottom), (paddingRight !== undefined ? true : undefined) && "ds-pr-".concat(paddingRight), (marginRight !== undefined ? true : undefined) && "ds-mr-".concat(marginRight), (paddingLeft !== undefined ? true : undefined) && "ds-pl-".concat(paddingLeft), (marginLeft !== undefined ? true : undefined) && "ds-ml-".concat(marginLeft), (paddingTop !== undefined ? true : undefined) && "ds-pt-".concat(paddingTop), (marginTop !== undefined ? true : undefined) && "ds-mt-".concat(marginTop), (padding !== undefined ? true : undefined) && "ds-p-".concat(padding), (margin !== undefined ? true : undefined) && "ds-m-".concat(margin), (mt !== undefined ? true : undefined) && "ds-mt-".concat(mt), (mb !== undefined ? true : undefined) && "ds-mb-".concat(mb), (mr !== undefined ? true : undefined) && "ds-mr-".concat(mr), (ml !== undefined ? true : undefined) && "ds-ml-".concat(ml), (mx !== undefined ? true : undefined) && "ds-mx-".concat(mx), (my !== undefined ? true : undefined) && "ds-my-".concat(my), (pt !== undefined ? true : undefined) && "ds-pt-".concat(pt), (pb !== undefined ? true : undefined) && "ds-pb-".concat(pb), (pr !== undefined ? true : undefined) && "ds-pr-".concat(pr), (pl !== undefined ? true : undefined) && "ds-pl-".concat(pl), (px !== undefined ? true : undefined) && "ds-px-".concat(px), (py !== undefined ? true : undefined) && "ds-py-".concat(py), (m !== undefined ? true : undefined) && "ds-m-".concat(m), (p !== undefined ? true : undefined) && "ds-p-".concat(p), printVisible === 'inline' && 'ds-print-visible-inline', printVisible === 'block' && 'ds-print-visible-block', !!printHidden && 'ds-print-hidden', !!xsUpHidden && 'ds-hidden-xs-up', !!smUpHidden && 'ds-hidden-sm-up', !!mdUpHidden && 'ds-hidden-md-up', !!lgUpHidden && 'ds-hidden-lg-up', !!xlUpHidden && 'ds-hidden-xl-up', !!xsHidden && 'ds-hidden-xs', !!smHidden && 'ds-hidden-sm', !!mdHidden && 'ds-hidden-md', !!lgHidden && 'ds-hidden-lg', !!xlHidden && 'ds-hidden-xl', !!hidden && 'ds-hidden'),
|
|
58
72
|
ref: ref
|
|
59
73
|
}, props), children);
|
|
60
74
|
});
|
|
@@ -17,29 +17,29 @@ exports[`renders the CallToAction with no props 1`] = `
|
|
|
17
17
|
hello
|
|
18
18
|
<ChevronIcon>
|
|
19
19
|
<ForwardRef(Icon)
|
|
20
|
-
icon="
|
|
20
|
+
icon="chevron"
|
|
21
21
|
>
|
|
22
22
|
<ForwardRef(SvgIcon)
|
|
23
|
-
className="ds-svg-icon--
|
|
23
|
+
className="ds-svg-icon--chevron"
|
|
24
24
|
>
|
|
25
25
|
<ForwardRef(Base)
|
|
26
26
|
aria-hidden="true"
|
|
27
27
|
as="svg"
|
|
28
|
-
className="ds-svg-icon--
|
|
28
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
29
29
|
focusable="false"
|
|
30
30
|
viewBox="0 0 24 24"
|
|
31
31
|
>
|
|
32
32
|
<svg
|
|
33
33
|
aria-hidden="true"
|
|
34
|
-
className="ds-svg-icon--
|
|
34
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
35
35
|
focusable="false"
|
|
36
36
|
viewBox="0 0 24 24"
|
|
37
37
|
>
|
|
38
|
-
<
|
|
38
|
+
<chevron>
|
|
39
39
|
<path
|
|
40
40
|
d="M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z"
|
|
41
41
|
/>
|
|
42
|
-
</
|
|
42
|
+
</chevron>
|
|
43
43
|
</svg>
|
|
44
44
|
</ForwardRef(Base)>
|
|
45
45
|
</ForwardRef(SvgIcon)>
|
|
@@ -42,6 +42,48 @@ exports[`renders the Card with dense props 1`] = `
|
|
|
42
42
|
</ForwardRef(Card)>
|
|
43
43
|
`;
|
|
44
44
|
|
|
45
|
+
exports[`renders the Card with dense" prop 1`] = `
|
|
46
|
+
<ForwardRef(Card)
|
|
47
|
+
dense={true}
|
|
48
|
+
>
|
|
49
|
+
<ForwardRef(Base)
|
|
50
|
+
as="div"
|
|
51
|
+
className="ds-card--dense ds-card"
|
|
52
|
+
>
|
|
53
|
+
<div
|
|
54
|
+
className="ds-card--dense ds-card"
|
|
55
|
+
>
|
|
56
|
+
<div
|
|
57
|
+
className="ds-card__body"
|
|
58
|
+
>
|
|
59
|
+
hello
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</ForwardRef(Base)>
|
|
63
|
+
</ForwardRef(Card)>
|
|
64
|
+
`;
|
|
65
|
+
|
|
66
|
+
exports[`renders the Card with fullHeight" prop 1`] = `
|
|
67
|
+
<ForwardRef(Card)
|
|
68
|
+
fullHeight={true}
|
|
69
|
+
>
|
|
70
|
+
<ForwardRef(Base)
|
|
71
|
+
as="div"
|
|
72
|
+
className="ds-card--full-height ds-card"
|
|
73
|
+
>
|
|
74
|
+
<div
|
|
75
|
+
className="ds-card--full-height ds-card"
|
|
76
|
+
>
|
|
77
|
+
<div
|
|
78
|
+
className="ds-card__body"
|
|
79
|
+
>
|
|
80
|
+
hello
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</ForwardRef(Base)>
|
|
84
|
+
</ForwardRef(Card)>
|
|
85
|
+
`;
|
|
86
|
+
|
|
45
87
|
exports[`renders the Card with no props 1`] = `
|
|
46
88
|
<ForwardRef(Card)>
|
|
47
89
|
<ForwardRef(Base)
|
package/cjs/Card/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
12
|
var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
|
|
13
|
-
var _excluded = ["variant", "borderColor", "callToAction", "dense", "className", "children"];
|
|
13
|
+
var _excluded = ["variant", "borderColor", "callToAction", "dense", "fullHeight", "className", "children"];
|
|
14
14
|
/**
|
|
15
15
|
* Cards can be used to divide and organise interface content for better understandability and readability.
|
|
16
16
|
* Cards can help your users to scan through vast amounts of information quicker.
|
|
@@ -21,13 +21,14 @@ var Card = exports.Card = /*#__PURE__*/_react["default"].forwardRef(function Car
|
|
|
21
21
|
borderColor = _ref.borderColor,
|
|
22
22
|
callToAction = _ref.callToAction,
|
|
23
23
|
dense = _ref.dense,
|
|
24
|
+
fullHeight = _ref.fullHeight,
|
|
24
25
|
className = _ref.className,
|
|
25
26
|
children = _ref.children,
|
|
26
27
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
27
28
|
return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
|
|
28
29
|
as: "div",
|
|
29
30
|
ref: ref,
|
|
30
|
-
className: (0, _clsx["default"])(className, variant === 'border-top' && 'ds-card--border-top', borderColor === 'light' && 'ds-card--border-light', borderColor === 'dark' && 'ds-card--border-dark', variant === 'divider' && 'ds-card--divider', variant === 'border' && 'ds-card--border', callToAction && 'ds-card--cta', dense && 'ds-card--dense', true && 'ds-card')
|
|
31
|
+
className: (0, _clsx["default"])(className, variant === 'border-top' && 'ds-card--border-top', borderColor === 'light' && 'ds-card--border-light', borderColor === 'dark' && 'ds-card--border-dark', variant === 'divider' && 'ds-card--divider', variant === 'border' && 'ds-card--border', callToAction && 'ds-card--cta', fullHeight && 'ds-card--full-height', dense && 'ds-card--dense', true && 'ds-card')
|
|
31
32
|
}, props), /*#__PURE__*/_react["default"].createElement("div", {
|
|
32
33
|
className: (0, _clsx["default"])(true && 'ds-card__body')
|
|
33
34
|
}, children));
|
|
@@ -39,38 +39,50 @@ it('renders the Card with variant="border-top" props', function () {
|
|
|
39
39
|
expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
|
|
40
40
|
});
|
|
41
41
|
var _ref7 = /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
42
|
+
dense: true
|
|
43
|
+
}, "hello");
|
|
44
|
+
it('renders the Card with dense" prop', function () {
|
|
45
|
+
expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
|
|
46
|
+
});
|
|
47
|
+
var _ref8 = /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
48
|
+
fullHeight: true
|
|
49
|
+
}, "hello");
|
|
50
|
+
it('renders the Card with fullHeight" prop', function () {
|
|
51
|
+
expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
|
|
52
|
+
});
|
|
53
|
+
var _ref9 = /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
42
54
|
variant: "border",
|
|
43
55
|
borderColor: "dark"
|
|
44
56
|
}, "hello");
|
|
45
57
|
it('renders the Card with variant="border" and borderColor="dark" props', function () {
|
|
46
|
-
expect((0, _enzyme.mount)(
|
|
58
|
+
expect((0, _enzyme.mount)(_ref9)).toMatchSnapshot();
|
|
47
59
|
});
|
|
48
|
-
var
|
|
60
|
+
var _ref10 = /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
49
61
|
variant: "border",
|
|
50
62
|
borderColor: "light"
|
|
51
63
|
}, "hello");
|
|
52
64
|
it('renders the Card with variant="border" and borderColor="light" props', function () {
|
|
53
|
-
expect((0, _enzyme.mount)(
|
|
65
|
+
expect((0, _enzyme.mount)(_ref10)).toMatchSnapshot();
|
|
54
66
|
});
|
|
55
|
-
var
|
|
67
|
+
var _ref11 = /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
56
68
|
variant: "border-top",
|
|
57
69
|
borderColor: "dark"
|
|
58
70
|
}, "hello");
|
|
59
71
|
it('renders the Card with variant="border-top" and borderColor="dark" props', function () {
|
|
60
|
-
expect((0, _enzyme.mount)(
|
|
72
|
+
expect((0, _enzyme.mount)(_ref11)).toMatchSnapshot();
|
|
61
73
|
});
|
|
62
|
-
var
|
|
74
|
+
var _ref12 = /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
63
75
|
variant: "border-top",
|
|
64
76
|
borderColor: "light"
|
|
65
77
|
}, "hello");
|
|
66
78
|
it('renders the Card with variant="border-top" and borderColor="light" props', function () {
|
|
67
|
-
expect((0, _enzyme.mount)(
|
|
79
|
+
expect((0, _enzyme.mount)(_ref12)).toMatchSnapshot();
|
|
68
80
|
});
|
|
69
|
-
var
|
|
81
|
+
var _ref13 = /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
70
82
|
variant: "border-top",
|
|
71
83
|
borderColor: "dark",
|
|
72
84
|
callToAction: true
|
|
73
85
|
}, "hello");
|
|
74
86
|
it('renders the Card with variant="border-top" and borderColor="dark" callToAction props', function () {
|
|
75
|
-
expect((0, _enzyme.mount)(
|
|
87
|
+
expect((0, _enzyme.mount)(_ref13)).toMatchSnapshot();
|
|
76
88
|
});
|
|
@@ -57,31 +57,31 @@ exports[`renders the DropdownButton with arrow=true 1`] = `
|
|
|
57
57
|
>
|
|
58
58
|
<ForwardRef(Icon)
|
|
59
59
|
direction="down"
|
|
60
|
-
icon="
|
|
60
|
+
icon="chevron"
|
|
61
61
|
>
|
|
62
62
|
<ForwardRef(SvgIcon)
|
|
63
|
-
className="ds-svg-icon--
|
|
63
|
+
className="ds-svg-icon--chevron"
|
|
64
64
|
>
|
|
65
65
|
<ForwardRef(Base)
|
|
66
66
|
aria-hidden="true"
|
|
67
67
|
as="svg"
|
|
68
|
-
className="ds-svg-icon--
|
|
68
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
69
69
|
focusable="false"
|
|
70
70
|
viewBox="0 0 24 24"
|
|
71
71
|
>
|
|
72
72
|
<svg
|
|
73
73
|
aria-hidden="true"
|
|
74
|
-
className="ds-svg-icon--
|
|
74
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
75
75
|
focusable="false"
|
|
76
76
|
viewBox="0 0 24 24"
|
|
77
77
|
>
|
|
78
|
-
<
|
|
78
|
+
<chevron
|
|
79
79
|
direction="down"
|
|
80
80
|
>
|
|
81
81
|
<path
|
|
82
82
|
d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
83
83
|
/>
|
|
84
|
-
</
|
|
84
|
+
</chevron>
|
|
85
85
|
</svg>
|
|
86
86
|
</ForwardRef(Base)>
|
|
87
87
|
</ForwardRef(SvgIcon)>
|
|
@@ -150,31 +150,31 @@ exports[`renders the DropdownButton with color=primary and arrow={true} 1`] = `
|
|
|
150
150
|
>
|
|
151
151
|
<ForwardRef(Icon)
|
|
152
152
|
direction="down"
|
|
153
|
-
icon="
|
|
153
|
+
icon="chevron"
|
|
154
154
|
>
|
|
155
155
|
<ForwardRef(SvgIcon)
|
|
156
|
-
className="ds-svg-icon--
|
|
156
|
+
className="ds-svg-icon--chevron"
|
|
157
157
|
>
|
|
158
158
|
<ForwardRef(Base)
|
|
159
159
|
aria-hidden="true"
|
|
160
160
|
as="svg"
|
|
161
|
-
className="ds-svg-icon--
|
|
161
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
162
162
|
focusable="false"
|
|
163
163
|
viewBox="0 0 24 24"
|
|
164
164
|
>
|
|
165
165
|
<svg
|
|
166
166
|
aria-hidden="true"
|
|
167
|
-
className="ds-svg-icon--
|
|
167
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
168
168
|
focusable="false"
|
|
169
169
|
viewBox="0 0 24 24"
|
|
170
170
|
>
|
|
171
|
-
<
|
|
171
|
+
<chevron
|
|
172
172
|
direction="down"
|
|
173
173
|
>
|
|
174
174
|
<path
|
|
175
175
|
d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
176
176
|
/>
|
|
177
|
-
</
|
|
177
|
+
</chevron>
|
|
178
178
|
</svg>
|
|
179
179
|
</ForwardRef(Base)>
|
|
180
180
|
</ForwardRef(SvgIcon)>
|
|
@@ -286,31 +286,31 @@ exports[`renders the DropdownButton with color=primary variant="button" arrow={t
|
|
|
286
286
|
>
|
|
287
287
|
<ForwardRef(Icon)
|
|
288
288
|
direction="down"
|
|
289
|
-
icon="
|
|
289
|
+
icon="chevron"
|
|
290
290
|
>
|
|
291
291
|
<ForwardRef(SvgIcon)
|
|
292
|
-
className="ds-svg-icon--
|
|
292
|
+
className="ds-svg-icon--chevron"
|
|
293
293
|
>
|
|
294
294
|
<ForwardRef(Base)
|
|
295
295
|
aria-hidden="true"
|
|
296
296
|
as="svg"
|
|
297
|
-
className="ds-svg-icon--
|
|
297
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
298
298
|
focusable="false"
|
|
299
299
|
viewBox="0 0 24 24"
|
|
300
300
|
>
|
|
301
301
|
<svg
|
|
302
302
|
aria-hidden="true"
|
|
303
|
-
className="ds-svg-icon--
|
|
303
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
304
304
|
focusable="false"
|
|
305
305
|
viewBox="0 0 24 24"
|
|
306
306
|
>
|
|
307
|
-
<
|
|
307
|
+
<chevron
|
|
308
308
|
direction="down"
|
|
309
309
|
>
|
|
310
310
|
<path
|
|
311
311
|
d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
312
312
|
/>
|
|
313
|
-
</
|
|
313
|
+
</chevron>
|
|
314
314
|
</svg>
|
|
315
315
|
</ForwardRef(Base)>
|
|
316
316
|
</ForwardRef(SvgIcon)>
|
|
@@ -362,31 +362,31 @@ exports[`renders the DropdownButton with color=primary variant="link" arrow={tru
|
|
|
362
362
|
>
|
|
363
363
|
<ForwardRef(Icon)
|
|
364
364
|
direction="down"
|
|
365
|
-
icon="
|
|
365
|
+
icon="chevron"
|
|
366
366
|
>
|
|
367
367
|
<ForwardRef(SvgIcon)
|
|
368
|
-
className="ds-svg-icon--
|
|
368
|
+
className="ds-svg-icon--chevron"
|
|
369
369
|
>
|
|
370
370
|
<ForwardRef(Base)
|
|
371
371
|
aria-hidden="true"
|
|
372
372
|
as="svg"
|
|
373
|
-
className="ds-svg-icon--
|
|
373
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
374
374
|
focusable="false"
|
|
375
375
|
viewBox="0 0 24 24"
|
|
376
376
|
>
|
|
377
377
|
<svg
|
|
378
378
|
aria-hidden="true"
|
|
379
|
-
className="ds-svg-icon--
|
|
379
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
380
380
|
focusable="false"
|
|
381
381
|
viewBox="0 0 24 24"
|
|
382
382
|
>
|
|
383
|
-
<
|
|
383
|
+
<chevron
|
|
384
384
|
direction="down"
|
|
385
385
|
>
|
|
386
386
|
<path
|
|
387
387
|
d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
388
388
|
/>
|
|
389
|
-
</
|
|
389
|
+
</chevron>
|
|
390
390
|
</svg>
|
|
391
391
|
</ForwardRef(Base)>
|
|
392
392
|
</ForwardRef(SvgIcon)>
|
|
@@ -455,31 +455,31 @@ exports[`renders the DropdownButton with color=secondary and arrow={true} 1`] =
|
|
|
455
455
|
>
|
|
456
456
|
<ForwardRef(Icon)
|
|
457
457
|
direction="down"
|
|
458
|
-
icon="
|
|
458
|
+
icon="chevron"
|
|
459
459
|
>
|
|
460
460
|
<ForwardRef(SvgIcon)
|
|
461
|
-
className="ds-svg-icon--
|
|
461
|
+
className="ds-svg-icon--chevron"
|
|
462
462
|
>
|
|
463
463
|
<ForwardRef(Base)
|
|
464
464
|
aria-hidden="true"
|
|
465
465
|
as="svg"
|
|
466
|
-
className="ds-svg-icon--
|
|
466
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
467
467
|
focusable="false"
|
|
468
468
|
viewBox="0 0 24 24"
|
|
469
469
|
>
|
|
470
470
|
<svg
|
|
471
471
|
aria-hidden="true"
|
|
472
|
-
className="ds-svg-icon--
|
|
472
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
473
473
|
focusable="false"
|
|
474
474
|
viewBox="0 0 24 24"
|
|
475
475
|
>
|
|
476
|
-
<
|
|
476
|
+
<chevron
|
|
477
477
|
direction="down"
|
|
478
478
|
>
|
|
479
479
|
<path
|
|
480
480
|
d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
481
481
|
/>
|
|
482
|
-
</
|
|
482
|
+
</chevron>
|
|
483
483
|
</svg>
|
|
484
484
|
</ForwardRef(Base)>
|
|
485
485
|
</ForwardRef(SvgIcon)>
|
|
@@ -552,31 +552,31 @@ exports[`renders the DropdownButton with color=warning variant="button" arrow={t
|
|
|
552
552
|
>
|
|
553
553
|
<ForwardRef(Icon)
|
|
554
554
|
direction="down"
|
|
555
|
-
icon="
|
|
555
|
+
icon="chevron"
|
|
556
556
|
>
|
|
557
557
|
<ForwardRef(SvgIcon)
|
|
558
|
-
className="ds-svg-icon--
|
|
558
|
+
className="ds-svg-icon--chevron"
|
|
559
559
|
>
|
|
560
560
|
<ForwardRef(Base)
|
|
561
561
|
aria-hidden="true"
|
|
562
562
|
as="svg"
|
|
563
|
-
className="ds-svg-icon--
|
|
563
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
564
564
|
focusable="false"
|
|
565
565
|
viewBox="0 0 24 24"
|
|
566
566
|
>
|
|
567
567
|
<svg
|
|
568
568
|
aria-hidden="true"
|
|
569
|
-
className="ds-svg-icon--
|
|
569
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
570
570
|
focusable="false"
|
|
571
571
|
viewBox="0 0 24 24"
|
|
572
572
|
>
|
|
573
|
-
<
|
|
573
|
+
<chevron
|
|
574
574
|
direction="down"
|
|
575
575
|
>
|
|
576
576
|
<path
|
|
577
577
|
d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
578
578
|
/>
|
|
579
|
-
</
|
|
579
|
+
</chevron>
|
|
580
580
|
</svg>
|
|
581
581
|
</ForwardRef(Base)>
|
|
582
582
|
</ForwardRef(SvgIcon)>
|
|
@@ -4,10 +4,10 @@ exports[`renders the FooterContentLogos with no props 1`] = `
|
|
|
4
4
|
<ForwardRef(FooterContentLogos)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="div"
|
|
7
|
-
className="ds-
|
|
7
|
+
className="ds-footer__content__logos"
|
|
8
8
|
>
|
|
9
9
|
<div
|
|
10
|
-
className="ds-
|
|
10
|
+
className="ds-footer__content__logos"
|
|
11
11
|
>
|
|
12
12
|
hello
|
|
13
13
|
</div>
|
|
@@ -23,7 +23,7 @@ var FooterContentLogos = exports.FooterContentLogos = /*#__PURE__*/_react["defau
|
|
|
23
23
|
return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
|
|
24
24
|
as: "div",
|
|
25
25
|
ref: ref,
|
|
26
|
-
className: (0, _clsx["default"])(className, true && 'ds-
|
|
26
|
+
className: (0, _clsx["default"])(className, true && 'ds-footer__content__logos')
|
|
27
27
|
}, props), children);
|
|
28
28
|
});
|
|
29
29
|
var _default = exports["default"] = FooterContentLogos;
|
|
@@ -6,10 +6,11 @@ exports[`renders the Hidden with \`lgUp\` props 1`] = `
|
|
|
6
6
|
>
|
|
7
7
|
<ForwardRef(Base)
|
|
8
8
|
as="div"
|
|
9
|
-
|
|
9
|
+
lgUpHidden={true}
|
|
10
|
+
xsUpHidden={false}
|
|
10
11
|
>
|
|
11
12
|
<div
|
|
12
|
-
className="ds-hidden-lg
|
|
13
|
+
className="ds-hidden-lg-up"
|
|
13
14
|
>
|
|
14
15
|
<div>
|
|
15
16
|
hello
|
|
@@ -25,10 +26,11 @@ exports[`renders the Hidden with \`mdUp\` props 1`] = `
|
|
|
25
26
|
>
|
|
26
27
|
<ForwardRef(Base)
|
|
27
28
|
as="div"
|
|
28
|
-
|
|
29
|
+
mdUpHidden={true}
|
|
30
|
+
xsUpHidden={false}
|
|
29
31
|
>
|
|
30
32
|
<div
|
|
31
|
-
className="ds-hidden-md
|
|
33
|
+
className="ds-hidden-md-up"
|
|
32
34
|
>
|
|
33
35
|
<div>
|
|
34
36
|
hello
|
|
@@ -44,10 +46,11 @@ exports[`renders the Hidden with \`smUp\` props 1`] = `
|
|
|
44
46
|
>
|
|
45
47
|
<ForwardRef(Base)
|
|
46
48
|
as="div"
|
|
47
|
-
|
|
49
|
+
smUpHidden={true}
|
|
50
|
+
xsUpHidden={false}
|
|
48
51
|
>
|
|
49
52
|
<div
|
|
50
|
-
className="ds-hidden-sm
|
|
53
|
+
className="ds-hidden-sm-up"
|
|
51
54
|
>
|
|
52
55
|
<div>
|
|
53
56
|
hello
|
|
@@ -63,10 +66,11 @@ exports[`renders the Hidden with \`xlUp\` props 1`] = `
|
|
|
63
66
|
>
|
|
64
67
|
<ForwardRef(Base)
|
|
65
68
|
as="div"
|
|
66
|
-
|
|
69
|
+
xlUpHidden={true}
|
|
70
|
+
xsUpHidden={false}
|
|
67
71
|
>
|
|
68
72
|
<div
|
|
69
|
-
className="ds-hidden-xl
|
|
73
|
+
className="ds-hidden-xl-up"
|
|
70
74
|
>
|
|
71
75
|
<div>
|
|
72
76
|
hello
|
|
@@ -82,10 +86,10 @@ exports[`renders the Hidden with \`xsUp\` props 1`] = `
|
|
|
82
86
|
>
|
|
83
87
|
<ForwardRef(Base)
|
|
84
88
|
as="div"
|
|
85
|
-
|
|
89
|
+
xsUpHidden={true}
|
|
86
90
|
>
|
|
87
91
|
<div
|
|
88
|
-
className="ds-hidden-xs
|
|
92
|
+
className="ds-hidden-xs-up"
|
|
89
93
|
>
|
|
90
94
|
<div>
|
|
91
95
|
hello
|
package/cjs/Hint/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var Hint = exports.Hint = /*#__PURE__*/_react["default"].forwardRef(function Hin
|
|
|
23
23
|
return /*#__PURE__*/_react["default"].createElement(_Typography["default"], (0, _extends2["default"])({
|
|
24
24
|
as: "p",
|
|
25
25
|
ref: ref,
|
|
26
|
-
className: (0, _clsx["default"])(className, size === 'lg' && 'ds-hint
|
|
26
|
+
className: (0, _clsx["default"])(className, size === 'lg' && 'ds-hint--lg', size === 'sm' && 'ds-hint--sm', breakWords && 'ds-hint--break-words', true && 'ds-hint')
|
|
27
27
|
}, props), children);
|
|
28
28
|
});
|
|
29
29
|
var _default = exports["default"] = Hint;
|
|
@@ -7,12 +7,12 @@ exports[`renders the Hint with variant and src props 1`] = `
|
|
|
7
7
|
>
|
|
8
8
|
<ForwardRef(Base)
|
|
9
9
|
as="img"
|
|
10
|
-
className="ds-image-logo
|
|
10
|
+
className="ds-image-logo-dark"
|
|
11
11
|
printHidden={true}
|
|
12
12
|
src="logo.png"
|
|
13
13
|
>
|
|
14
14
|
<img
|
|
15
|
-
className="ds-image-logo
|
|
15
|
+
className="ds-image-logo-dark ds-print-hidden"
|
|
16
16
|
src="logo.png"
|
|
17
17
|
/>
|
|
18
18
|
</ForwardRef(Base)>
|
package/cjs/ImageLogo/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var ImageLogo = exports.ImageLogo = /*#__PURE__*/_react["default"].forwardRef(fu
|
|
|
28
28
|
src: src,
|
|
29
29
|
ref: ref,
|
|
30
30
|
printHidden: true,
|
|
31
|
-
className: (0, _clsx["default"])(className, variant === undefined && 'ds-image-logo', variant !== undefined && "ds-image-logo
|
|
31
|
+
className: (0, _clsx["default"])(className, variant === undefined && 'ds-image-logo', variant !== undefined && "ds-image-logo-".concat(variant))
|
|
32
32
|
}, props)));
|
|
33
33
|
});
|
|
34
34
|
var _default = exports["default"] = ImageLogo;
|