@yklyklpackages/message-card 0.6.0 → 0.6.2
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/MessageCard.d.ts +1 -0
- package/dist/components/MessageCard.d.ts.map +1 -1
- package/dist/components/layout/MultipleColumnLayout.d.ts.map +1 -1
- package/dist/components/utils/styleHelpers.d.ts.map +1 -1
- package/dist/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +3 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -4652,6 +4652,7 @@
|
|
|
4652
4652
|
const buildItemContainerStyle = (index2, count, props, horizontal = false, scale = 1) => {
|
|
4653
4653
|
const style2 = __spreadValues$q({
|
|
4654
4654
|
width: (props == null ? void 0 : props.flexDirection) === "row" ? "auto" : "100%",
|
|
4655
|
+
flexDirection: props.direction || "column",
|
|
4655
4656
|
height: "auto",
|
|
4656
4657
|
boxSizing: "border-box",
|
|
4657
4658
|
display: "flex",
|
|
@@ -4886,16 +4887,14 @@
|
|
|
4886
4887
|
});
|
|
4887
4888
|
const itemContainerStyle = (child, idx) => {
|
|
4888
4889
|
return __spreadProps$m(__spreadValues$o({}, buildItemContainerStyle(idx, count, props, true, scale)), {
|
|
4889
|
-
flexShrink: itemFlexShrink(
|
|
4890
|
+
flexShrink: itemFlexShrink(),
|
|
4890
4891
|
width: void 0
|
|
4891
4892
|
});
|
|
4892
4893
|
};
|
|
4893
4894
|
const items = React.Children.toArray(children);
|
|
4894
4895
|
const count = items.length;
|
|
4895
4896
|
const itemFlexShrink = (child) => {
|
|
4896
|
-
|
|
4897
|
-
if (((_b = (_a = child == null ? void 0 : child.props) == null ? void 0 : _a.node) == null ? void 0 : _b.props.flexShrink) == 0) return 0;
|
|
4898
|
-
return 1;
|
|
4897
|
+
return 0;
|
|
4899
4898
|
};
|
|
4900
4899
|
const handleClick = (e) => {
|
|
4901
4900
|
if (props.actions) {
|