@7shifts/sous-chef 3.43.1-beta.0 → 3.43.1-beta.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/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7839,8 +7839,7 @@ var ModalFooter = function ModalFooter(_ref) {
|
|
|
7839
7839
|
size: BUTTON_SIZES.MIN_WIDTH_100
|
|
7840
7840
|
});
|
|
7841
7841
|
return React__default.createElement(FooterContainer, {
|
|
7842
|
-
testId: testId
|
|
7843
|
-
isUsingActions: true
|
|
7842
|
+
testId: testId
|
|
7844
7843
|
}, React__default.createElement(Inline, {
|
|
7845
7844
|
justifyContent: "space-between"
|
|
7846
7845
|
}, React__default.createElement("div", {
|
|
@@ -7853,15 +7852,24 @@ var ModalFooter = function ModalFooter(_ref) {
|
|
|
7853
7852
|
};
|
|
7854
7853
|
var FooterContainer = function FooterContainer(_ref2) {
|
|
7855
7854
|
var children = _ref2.children,
|
|
7856
|
-
testId = _ref2.testId
|
|
7857
|
-
|
|
7855
|
+
testId = _ref2.testId;
|
|
7856
|
+
var childrenItens = React__default.Children.toArray(children);
|
|
7857
|
+
var hasCustomAlignment = childrenItens.length === 1 && checkIsComponent(childrenItens[0], {
|
|
7858
|
+
component: Inline,
|
|
7859
|
+
displayName: 'Inline'
|
|
7860
|
+
});
|
|
7861
|
+
console.log({
|
|
7862
|
+
hasCustomAlignment: hasCustomAlignment,
|
|
7863
|
+
items: childrenItens.length,
|
|
7864
|
+
type: childrenItens[0].type
|
|
7865
|
+
});
|
|
7858
7866
|
return React__default.createElement("div", {
|
|
7859
7867
|
className: styles$F['modal-footer'],
|
|
7860
7868
|
"data-testid": testId
|
|
7861
7869
|
}, React__default.createElement(Inline, {
|
|
7862
7870
|
justifyContent: "end",
|
|
7863
7871
|
space: 12,
|
|
7864
|
-
flex:
|
|
7872
|
+
flex: hasCustomAlignment ? [1] : undefined
|
|
7865
7873
|
}, children));
|
|
7866
7874
|
};
|
|
7867
7875
|
|