@hyphen/hyphen-components 4.4.2 → 4.6.0
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/dist/components/Card/components/CardHeader/CardHeader.d.ts +2 -10
- package/dist/hyphen-components.cjs.development.js +21 -24
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +1 -1
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +21 -24
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Card/Card.stories.tsx +4 -2
- package/src/components/Card/components/CardHeader/CardHeader.tsx +34 -30
|
@@ -847,33 +847,30 @@ var Heading = function Heading(_ref) {
|
|
|
847
847
|
}, restProps), children);
|
|
848
848
|
};
|
|
849
849
|
|
|
850
|
-
var _excluded$F = ["
|
|
850
|
+
var _excluded$F = ["children", "title", "description"];
|
|
851
851
|
var CardHeader = function CardHeader(_ref) {
|
|
852
|
-
var
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
children = _ref$children === void 0 ? null : _ref$children,
|
|
856
|
-
_ref$className = _ref.className,
|
|
857
|
-
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
858
|
-
_ref$display = _ref.display,
|
|
859
|
-
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
860
|
-
_ref$padding = _ref.padding,
|
|
861
|
-
padding = _ref$padding === void 0 ? '2xl' : _ref$padding,
|
|
862
|
-
_ref$title = _ref.title,
|
|
863
|
-
title = _ref$title === void 0 ? null : _ref$title,
|
|
852
|
+
var children = _ref.children,
|
|
853
|
+
title = _ref.title,
|
|
854
|
+
description = _ref.description,
|
|
864
855
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
865
|
-
var renderTitle = function renderTitle() {
|
|
866
|
-
return typeof title === 'string' ? React__default.createElement(Heading, {
|
|
867
|
-
size: "sm",
|
|
868
|
-
as: "h4"
|
|
869
|
-
}, title) : title;
|
|
870
|
-
};
|
|
871
856
|
return React__default.createElement(Box, _extends({
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
857
|
+
padding: "2xl",
|
|
858
|
+
direction: "row",
|
|
859
|
+
gap: "2xl",
|
|
860
|
+
width: "100",
|
|
861
|
+
justifyContent: "space-between"
|
|
862
|
+
}, restProps), React__default.createElement(Box, {
|
|
863
|
+
gap: "2xs"
|
|
864
|
+
}, title && React__default.createElement(React__default.Fragment, null, typeof title === 'string' ? React__default.createElement(Heading, {
|
|
865
|
+
size: "sm",
|
|
866
|
+
as: "h4"
|
|
867
|
+
}, title) : title), description && React__default.createElement(React__default.Fragment, null, typeof description === 'string' ? React__default.createElement(Box, {
|
|
868
|
+
fontSize: {
|
|
869
|
+
base: 'xs',
|
|
870
|
+
tablet: 'sm'
|
|
871
|
+
},
|
|
872
|
+
color: "secondary"
|
|
873
|
+
}, description) : description)), children);
|
|
877
874
|
};
|
|
878
875
|
|
|
879
876
|
var styles$r = {"card-section-border":"Card-module_card-section-border__OefDX"};
|