@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.mjs
CHANGED
|
@@ -4635,6 +4635,7 @@ const fractionWidth = (percent) => ({
|
|
|
4635
4635
|
const buildItemContainerStyle = (index2, count, props, horizontal = false, scale = 1) => {
|
|
4636
4636
|
const style2 = __spreadValues$q({
|
|
4637
4637
|
width: (props == null ? void 0 : props.flexDirection) === "row" ? "auto" : "100%",
|
|
4638
|
+
flexDirection: props.direction || "column",
|
|
4638
4639
|
height: "auto",
|
|
4639
4640
|
boxSizing: "border-box",
|
|
4640
4641
|
display: "flex",
|
|
@@ -4869,16 +4870,14 @@ const MultipleColumnLayout = ({
|
|
|
4869
4870
|
});
|
|
4870
4871
|
const itemContainerStyle = (child, idx) => {
|
|
4871
4872
|
return __spreadProps$m(__spreadValues$o({}, buildItemContainerStyle(idx, count, props, true, scale)), {
|
|
4872
|
-
flexShrink: itemFlexShrink(
|
|
4873
|
+
flexShrink: itemFlexShrink(),
|
|
4873
4874
|
width: void 0
|
|
4874
4875
|
});
|
|
4875
4876
|
};
|
|
4876
4877
|
const items = React__default.Children.toArray(children);
|
|
4877
4878
|
const count = items.length;
|
|
4878
4879
|
const itemFlexShrink = (child) => {
|
|
4879
|
-
|
|
4880
|
-
if (((_b = (_a = child == null ? void 0 : child.props) == null ? void 0 : _a.node) == null ? void 0 : _b.props.flexShrink) == 0) return 0;
|
|
4881
|
-
return 1;
|
|
4880
|
+
return 0;
|
|
4882
4881
|
};
|
|
4883
4882
|
const handleClick = (e) => {
|
|
4884
4883
|
if (props.actions) {
|