@commercetools-frontend/application-components 21.3.2 → 21.3.3
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/commercetools-frontend-application-components.cjs.dev.js +46 -35
- package/dist/commercetools-frontend-application-components.cjs.prod.js +46 -34
- package/dist/commercetools-frontend-application-components.esm.js +47 -36
- package/dist/declarations/src/components/portals-container/portals-container.d.ts +7 -1
- package/package.json +1 -1
|
@@ -73,7 +73,7 @@ var PageNotFoundSVG__default = /*#__PURE__*/_interopDefault(PageNotFoundSVG);
|
|
|
73
73
|
var FailedAuthorizationSVG__default = /*#__PURE__*/_interopDefault(FailedAuthorizationSVG);
|
|
74
74
|
|
|
75
75
|
// NOTE: This string will be replaced on build time with the package version.
|
|
76
|
-
var version = "21.3.
|
|
76
|
+
var version = "21.3.3";
|
|
77
77
|
|
|
78
78
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$a() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
79
79
|
|
|
@@ -170,14 +170,14 @@ TabHeader.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
170
170
|
exactPathMatch: _pt__default["default"].bool.isRequired
|
|
171
171
|
} : {};
|
|
172
172
|
TabHeader.displayName = 'TabHeader';
|
|
173
|
-
var defaultProps$
|
|
173
|
+
var defaultProps$e = {
|
|
174
174
|
isDisabled: false,
|
|
175
175
|
exactPathMatch: false
|
|
176
176
|
};
|
|
177
|
-
TabHeader.defaultProps = defaultProps$
|
|
177
|
+
TabHeader.defaultProps = defaultProps$e;
|
|
178
178
|
|
|
179
179
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$9() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
180
|
-
var defaultProps$
|
|
180
|
+
var defaultProps$d = {
|
|
181
181
|
titleSize: 'small',
|
|
182
182
|
truncate: false
|
|
183
183
|
};
|
|
@@ -264,7 +264,7 @@ PageHeaderTitle.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
264
264
|
subtitle: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].element])
|
|
265
265
|
} : {};
|
|
266
266
|
PageHeaderTitle.displayName = 'PageHeaderTitle';
|
|
267
|
-
PageHeaderTitle.defaultProps = defaultProps$
|
|
267
|
+
PageHeaderTitle.defaultProps = defaultProps$d;
|
|
268
268
|
|
|
269
269
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$8() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
270
270
|
|
|
@@ -313,10 +313,10 @@ TabularPageContainer.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
313
313
|
color: _pt__default["default"].oneOf(['surface', 'neutral']).isRequired
|
|
314
314
|
} : {};
|
|
315
315
|
TabularPageContainer.displayName = 'TabularPageContainer';
|
|
316
|
-
var defaultProps$
|
|
316
|
+
var defaultProps$c = {
|
|
317
317
|
color: 'surface'
|
|
318
318
|
};
|
|
319
|
-
TabularPageContainer.defaultProps = defaultProps$
|
|
319
|
+
TabularPageContainer.defaultProps = defaultProps$c;
|
|
320
320
|
|
|
321
321
|
var FormControlsContainer = _styled__default["default"]("div", process.env.NODE_ENV === "production" ? {
|
|
322
322
|
target: "elpldre0"
|
|
@@ -444,7 +444,7 @@ FormDeleteButton.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
444
444
|
FormDeleteButton.displayName = 'FormDeleteButton';
|
|
445
445
|
FormDeleteButton.defaultProps = deleteDefaultProps;
|
|
446
446
|
|
|
447
|
-
var defaultProps$
|
|
447
|
+
var defaultProps$b = {
|
|
448
448
|
hideControls: false
|
|
449
449
|
};
|
|
450
450
|
|
|
@@ -487,7 +487,7 @@ TabularMainPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
487
487
|
hideControls: _pt__default["default"].bool.isRequired
|
|
488
488
|
} : {};
|
|
489
489
|
TabularMainPage.displayName = 'TabularMainPage';
|
|
490
|
-
TabularMainPage.defaultProps = defaultProps$
|
|
490
|
+
TabularMainPage.defaultProps = defaultProps$b; // Static export of pre-configured form control buttons to easily re-use
|
|
491
491
|
// them in the custom controls.
|
|
492
492
|
|
|
493
493
|
TabularMainPage.FormPrimaryButton = FormPrimaryButton;
|
|
@@ -510,7 +510,7 @@ var messages$2 = reactIntl.defineMessages({
|
|
|
510
510
|
}
|
|
511
511
|
});
|
|
512
512
|
|
|
513
|
-
var defaultProps$
|
|
513
|
+
var defaultProps$a = {
|
|
514
514
|
color: 'surface',
|
|
515
515
|
previousPathLabel: messages$2.back
|
|
516
516
|
};
|
|
@@ -542,9 +542,9 @@ PageTopBar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
542
542
|
onClick: _pt__default["default"].func.isRequired
|
|
543
543
|
} : {};
|
|
544
544
|
PageTopBar.displayName = 'PageTopBar';
|
|
545
|
-
PageTopBar.defaultProps = defaultProps$
|
|
545
|
+
PageTopBar.defaultProps = defaultProps$a;
|
|
546
546
|
|
|
547
|
-
var defaultProps$
|
|
547
|
+
var defaultProps$9 = {
|
|
548
548
|
hideControls: false
|
|
549
549
|
};
|
|
550
550
|
|
|
@@ -597,7 +597,7 @@ TabularDetailPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
597
597
|
onPreviousPathClick: _pt__default["default"].func.isRequired
|
|
598
598
|
} : {};
|
|
599
599
|
TabularDetailPage.displayName = 'TabularDetailPage';
|
|
600
|
-
TabularDetailPage.defaultProps = defaultProps$
|
|
600
|
+
TabularDetailPage.defaultProps = defaultProps$9; // Static export of pre-configured form control buttons to easily re-use
|
|
601
601
|
// them in the custom controls.
|
|
602
602
|
|
|
603
603
|
TabularDetailPage.FormPrimaryButton = FormPrimaryButton;
|
|
@@ -664,7 +664,7 @@ var getDefaultParentSelector$1 = function getDefaultParentSelector() {
|
|
|
664
664
|
return process.env.NODE_ENV === 'test' ? document.body : document.querySelector("#".concat(constants.PORTALS_CONTAINER_ID));
|
|
665
665
|
};
|
|
666
666
|
|
|
667
|
-
var defaultProps$
|
|
667
|
+
var defaultProps$8 = {
|
|
668
668
|
size: 10,
|
|
669
669
|
zIndex: 1000,
|
|
670
670
|
getParentSelector: getDefaultParentSelector$1
|
|
@@ -761,7 +761,7 @@ DialogContainer.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
761
761
|
getParentSelector: _pt__default["default"].any.isRequired
|
|
762
762
|
} : {};
|
|
763
763
|
DialogContainer.displayName = 'DialogContainer';
|
|
764
|
-
DialogContainer.defaultProps = defaultProps$
|
|
764
|
+
DialogContainer.defaultProps = defaultProps$8;
|
|
765
765
|
|
|
766
766
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$4() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
767
767
|
|
|
@@ -842,7 +842,7 @@ InfoDialog.displayName = 'InfoDialog';
|
|
|
842
842
|
function ownKeys$3(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
843
843
|
|
|
844
844
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$3(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
845
|
-
var defaultProps$
|
|
845
|
+
var defaultProps$7 = {
|
|
846
846
|
isPrimaryButtonDisabled: false,
|
|
847
847
|
dataAttributesPrimaryButton: {},
|
|
848
848
|
dataAttributesSecondaryButton: {}
|
|
@@ -887,9 +887,9 @@ DialogFooter.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
887
887
|
dataAttributesSecondaryButton: _pt__default["default"].objectOf(_pt__default["default"].string).isRequired
|
|
888
888
|
} : {};
|
|
889
889
|
DialogFooter.displayName = 'DialogFooter';
|
|
890
|
-
DialogFooter.defaultProps = defaultProps$
|
|
890
|
+
DialogFooter.defaultProps = defaultProps$7;
|
|
891
891
|
|
|
892
|
-
var defaultProps$
|
|
892
|
+
var defaultProps$6 = {
|
|
893
893
|
labelSecondary: i18n.sharedMessages.cancel,
|
|
894
894
|
labelPrimary: i18n.sharedMessages.confirm
|
|
895
895
|
};
|
|
@@ -944,12 +944,12 @@ ConfirmationDialog.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
944
944
|
getParentSelector: _pt__default["default"].func
|
|
945
945
|
} : {};
|
|
946
946
|
ConfirmationDialog.displayName = 'ConfirmationDialog';
|
|
947
|
-
ConfirmationDialog.defaultProps = defaultProps$
|
|
947
|
+
ConfirmationDialog.defaultProps = defaultProps$6; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
948
948
|
// The Intl messages can be used for button labels.
|
|
949
949
|
|
|
950
950
|
ConfirmationDialog.Intl = i18n.sharedMessages;
|
|
951
951
|
|
|
952
|
-
var defaultProps$
|
|
952
|
+
var defaultProps$5 = {
|
|
953
953
|
labelSecondary: i18n.sharedMessages.cancel,
|
|
954
954
|
labelPrimary: i18n.sharedMessages.save
|
|
955
955
|
};
|
|
@@ -1004,7 +1004,7 @@ FormDialog.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1004
1004
|
getParentSelector: _pt__default["default"].func
|
|
1005
1005
|
} : {};
|
|
1006
1006
|
FormDialog.displayName = 'FormDialog';
|
|
1007
|
-
FormDialog.defaultProps = defaultProps$
|
|
1007
|
+
FormDialog.defaultProps = defaultProps$5; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
1008
1008
|
// The Intl messages can be used for button labels.
|
|
1009
1009
|
|
|
1010
1010
|
FormDialog.Intl = i18n.sharedMessages;
|
|
@@ -1094,7 +1094,7 @@ var LargeIconWrapper = _styled__default["default"]("span", process.env.NODE_ENV
|
|
|
1094
1094
|
// does not recognize the object shape.
|
|
1095
1095
|
|
|
1096
1096
|
|
|
1097
|
-
var defaultProps$
|
|
1097
|
+
var defaultProps$4 = {
|
|
1098
1098
|
color: 'surface',
|
|
1099
1099
|
previousPathLabel: messages$2.back
|
|
1100
1100
|
};
|
|
@@ -1157,7 +1157,7 @@ ModalPageTopBar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1157
1157
|
onClose: _pt__default["default"].func.isRequired
|
|
1158
1158
|
} : {};
|
|
1159
1159
|
ModalPageTopBar.displayName = 'ModalPageTopBar';
|
|
1160
|
-
ModalPageTopBar.defaultProps = defaultProps$
|
|
1160
|
+
ModalPageTopBar.defaultProps = defaultProps$4;
|
|
1161
1161
|
|
|
1162
1162
|
var getDefaultParentSelector = function getDefaultParentSelector() {
|
|
1163
1163
|
return process.env.NODE_ENV === 'test' ? document.body : document.querySelector("#".concat(constants.PORTALS_CONTAINER_ID));
|
|
@@ -1166,7 +1166,7 @@ var getDefaultParentSelector = function getDefaultParentSelector() {
|
|
|
1166
1166
|
// does not recognize the object shape.
|
|
1167
1167
|
|
|
1168
1168
|
|
|
1169
|
-
var defaultProps$
|
|
1169
|
+
var defaultProps$3 = {
|
|
1170
1170
|
level: 1,
|
|
1171
1171
|
baseZIndex: 1000,
|
|
1172
1172
|
getParentSelector: getDefaultParentSelector,
|
|
@@ -1265,7 +1265,7 @@ ModalPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1265
1265
|
})])
|
|
1266
1266
|
} : {};
|
|
1267
1267
|
ModalPage.displayName = 'ModalPage';
|
|
1268
|
-
ModalPage.defaultProps = defaultProps$
|
|
1268
|
+
ModalPage.defaultProps = defaultProps$3;
|
|
1269
1269
|
|
|
1270
1270
|
var PageHeader = function PageHeader(props) {
|
|
1271
1271
|
return jsxRuntime.jsxs("div", {
|
|
@@ -1385,7 +1385,7 @@ CustomFormModalPage.FormDeleteButton = FormDeleteButton; // This is a convenienc
|
|
|
1385
1385
|
|
|
1386
1386
|
CustomFormModalPage.Intl = i18n.sharedMessages;
|
|
1387
1387
|
|
|
1388
|
-
var defaultProps$
|
|
1388
|
+
var defaultProps$2 = {
|
|
1389
1389
|
hideControls: false
|
|
1390
1390
|
};
|
|
1391
1391
|
|
|
@@ -1458,12 +1458,12 @@ FormModalPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1458
1458
|
hideControls: _pt__default["default"].bool.isRequired
|
|
1459
1459
|
} : {};
|
|
1460
1460
|
FormModalPage.displayName = 'FormModalPage';
|
|
1461
|
-
FormModalPage.defaultProps = defaultProps$
|
|
1461
|
+
FormModalPage.defaultProps = defaultProps$2; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
1462
1462
|
// The Intl messages can be used for button labels.
|
|
1463
1463
|
|
|
1464
1464
|
FormModalPage.Intl = i18n.sharedMessages;
|
|
1465
1465
|
|
|
1466
|
-
var defaultProps = {
|
|
1466
|
+
var defaultProps$1 = {
|
|
1467
1467
|
hideControls: false
|
|
1468
1468
|
};
|
|
1469
1469
|
|
|
@@ -1528,7 +1528,7 @@ TabularModalPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1528
1528
|
hideControls: _pt__default["default"].bool.isRequired
|
|
1529
1529
|
} : {};
|
|
1530
1530
|
TabularModalPage.displayName = 'TabularModalPage';
|
|
1531
|
-
TabularModalPage.defaultProps = defaultProps; // Static export of pre-configured form control buttons to easily re-use
|
|
1531
|
+
TabularModalPage.defaultProps = defaultProps$1; // Static export of pre-configured form control buttons to easily re-use
|
|
1532
1532
|
// them in the custom controls.
|
|
1533
1533
|
|
|
1534
1534
|
TabularModalPage.FormPrimaryButton = FormPrimaryButton;
|
|
@@ -1778,6 +1778,11 @@ var PageUnauthorized = function PageUnauthorized() {
|
|
|
1778
1778
|
PageUnauthorized.displayName = 'PageUnauthorized';
|
|
1779
1779
|
|
|
1780
1780
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
1781
|
+
var defaultProps = {
|
|
1782
|
+
offsetTop: '0',
|
|
1783
|
+
containerSelectorToPreventScrollingOnOpen: 'main',
|
|
1784
|
+
zIndex: 10000
|
|
1785
|
+
}; // All modal components expect to be rendered inside this container.
|
|
1781
1786
|
|
|
1782
1787
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
1783
1788
|
name: "qk9kof",
|
|
@@ -1785,19 +1790,25 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
1785
1790
|
} : {
|
|
1786
1791
|
name: "14eqpg3-PortalsContainer",
|
|
1787
1792
|
styles: "display:flex;height:1px;margin-top:-1px;label:PortalsContainer;",
|
|
1788
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
1793
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBvcnRhbHMtY29udGFpbmVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFvRGMiLCJmaWxlIjoicG9ydGFscy1jb250YWluZXIudHN4Iiwic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bnRhaW5lciBuZWVkcyBhIGhlaWdodCBpbiBvcmRlciB0byBiZSB0YWJiYWJsZTogaHR0cHM6Ly9yZWFjdGpzL3JlYWN0LW1vZGFsIzc3NFxuICAgICAgY3NzPXtjc3NgXG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGhlaWdodDogMXB4O1xuICAgICAgICBtYXJnaW4tdG9wOiAtMXB4O1xuICAgICAgYH1cbiAgICAvPlxuICA8Lz5cbik7XG5Qb3J0YWxzQ29udGFpbmVyLmRpc3BsYXlOYW1lID0gJ1BvcnRhbHNDb250YWluZXInO1xuUG9ydGFsc0NvbnRhaW5lci5kZWZhdWx0UHJvcHMgPSBkZWZhdWx0UHJvcHM7XG5cbmV4cG9ydCBkZWZhdWx0IFBvcnRhbHNDb250YWluZXI7XG4iXX0= */",
|
|
1789
1794
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
1790
1795
|
};
|
|
1791
1796
|
|
|
1792
|
-
var PortalsContainer = function PortalsContainer() {
|
|
1793
|
-
return jsxRuntime.
|
|
1794
|
-
|
|
1795
|
-
,
|
|
1796
|
-
|
|
1797
|
+
var PortalsContainer = function PortalsContainer(props) {
|
|
1798
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1799
|
+
children: [jsxRuntime.jsx(react.Global // Apply some global styles, based on the `.ReactModal__Body--open` class.
|
|
1800
|
+
, {
|
|
1801
|
+
styles: /*#__PURE__*/react.css(".ReactModal__Body--open ", props.containerSelectorToPreventScrollingOnOpen, "{overflow:hidden;}.ReactModal__Body--open #", constants.PORTALS_CONTAINER_ID, "{position:fixed;height:calc(100% - ", props.offsetTop, ");width:100%;top:", props.offsetTop, ";bottom:0;z-index:", props.zIndex, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:PortalsContainer;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBvc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biAgICAvPlxuICAgIDxkaXZcbiAgICAgIGlkPXtQT1JUQUxTX0NPTlRBSU5FUl9JRH1cbiAgICAgIC8vIFRoZSBjb250YWluZXIgbmVlZHMgYSBoZWlnaHQgaW4gb3JkZXIgdG8gYmUgdGFiYmFibGU6IGh0dHBzOi8vcmVhY3Rqcy9yZWFjdC1tb2RhbCM3NzRcbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBoZWlnaHQ6IDFweDtcbiAgICAgICAgbWFyZ2luLXRvcDogLTFweDtcbiAgICAgIGB9XG4gICAgLz5cbiAgPC8+XG4pO1xuUG9ydGFsc0NvbnRhaW5lci5kaXNwbGF5TmFtZSA9ICdQb3J0YWxzQ29udGFpbmVyJztcblBvcnRhbHNDb250YWluZXIuZGVmYXVsdFByb3BzID0gZGVmYXVsdFByb3BzO1xuXG5leHBvcnQgZGVmYXVsdCBQb3J0YWxzQ29udGFpbmVyO1xuIl19 */")
|
|
1802
|
+
}), jsxRuntime.jsx("div", {
|
|
1803
|
+
id: constants.PORTALS_CONTAINER_ID // The container needs a height in order to be tabbable: https://reactjs/react-modal#774
|
|
1804
|
+
,
|
|
1805
|
+
css: _ref
|
|
1806
|
+
})]
|
|
1797
1807
|
});
|
|
1798
1808
|
};
|
|
1799
1809
|
|
|
1800
1810
|
PortalsContainer.displayName = 'PortalsContainer';
|
|
1811
|
+
PortalsContainer.defaultProps = defaultProps;
|
|
1801
1812
|
|
|
1802
1813
|
var useModalState = function useModalState() {
|
|
1803
1814
|
var isInitiallyOpen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
@@ -72,7 +72,7 @@ var PageNotFoundSVG__default = /*#__PURE__*/_interopDefault(PageNotFoundSVG);
|
|
|
72
72
|
var FailedAuthorizationSVG__default = /*#__PURE__*/_interopDefault(FailedAuthorizationSVG);
|
|
73
73
|
|
|
74
74
|
// NOTE: This string will be replaced on build time with the package version.
|
|
75
|
-
var version = "21.3.
|
|
75
|
+
var version = "21.3.3";
|
|
76
76
|
|
|
77
77
|
var getBottomBorderStyles = function getBottomBorderStyles(background) {
|
|
78
78
|
return /*#__PURE__*/react.css(":after{content:'';position:absolute;bottom:0;left:0;right:0;height:4px;border-radius:", designSystem.customProperties.borderRadius2, ";background-color:", background, ";transition:background-color ", designSystem.customProperties.transitionEaseinout150Ms, ";}" + ("" ), "" );
|
|
@@ -153,13 +153,13 @@ var TabHeader = function TabHeader(props) {
|
|
|
153
153
|
};
|
|
154
154
|
TabHeader.propTypes = {};
|
|
155
155
|
TabHeader.displayName = 'TabHeader';
|
|
156
|
-
var defaultProps$
|
|
156
|
+
var defaultProps$e = {
|
|
157
157
|
isDisabled: false,
|
|
158
158
|
exactPathMatch: false
|
|
159
159
|
};
|
|
160
|
-
TabHeader.defaultProps = defaultProps$
|
|
160
|
+
TabHeader.defaultProps = defaultProps$e;
|
|
161
161
|
|
|
162
|
-
var defaultProps$
|
|
162
|
+
var defaultProps$d = {
|
|
163
163
|
titleSize: 'small',
|
|
164
164
|
truncate: false
|
|
165
165
|
};
|
|
@@ -233,7 +233,7 @@ var PageHeaderTitle = function PageHeaderTitle(props) {
|
|
|
233
233
|
|
|
234
234
|
PageHeaderTitle.propTypes = {};
|
|
235
235
|
PageHeaderTitle.displayName = 'PageHeaderTitle';
|
|
236
|
-
PageHeaderTitle.defaultProps = defaultProps$
|
|
236
|
+
PageHeaderTitle.defaultProps = defaultProps$d;
|
|
237
237
|
|
|
238
238
|
var TabControls = _styled__default["default"]("div", {
|
|
239
239
|
target: "elpldre1"
|
|
@@ -266,10 +266,10 @@ var TabularPageContainer = function TabularPageContainer(props) {
|
|
|
266
266
|
|
|
267
267
|
TabularPageContainer.propTypes = {};
|
|
268
268
|
TabularPageContainer.displayName = 'TabularPageContainer';
|
|
269
|
-
var defaultProps$
|
|
269
|
+
var defaultProps$c = {
|
|
270
270
|
color: 'surface'
|
|
271
271
|
};
|
|
272
|
-
TabularPageContainer.defaultProps = defaultProps$
|
|
272
|
+
TabularPageContainer.defaultProps = defaultProps$c;
|
|
273
273
|
|
|
274
274
|
var FormControlsContainer = _styled__default["default"]("div", {
|
|
275
275
|
target: "elpldre0"
|
|
@@ -355,7 +355,7 @@ FormDeleteButton.propTypes = {};
|
|
|
355
355
|
FormDeleteButton.displayName = 'FormDeleteButton';
|
|
356
356
|
FormDeleteButton.defaultProps = deleteDefaultProps;
|
|
357
357
|
|
|
358
|
-
var defaultProps$
|
|
358
|
+
var defaultProps$b = {
|
|
359
359
|
hideControls: false
|
|
360
360
|
};
|
|
361
361
|
|
|
@@ -388,7 +388,7 @@ var TabularMainPage = function TabularMainPage(props) {
|
|
|
388
388
|
|
|
389
389
|
TabularMainPage.propTypes = {};
|
|
390
390
|
TabularMainPage.displayName = 'TabularMainPage';
|
|
391
|
-
TabularMainPage.defaultProps = defaultProps$
|
|
391
|
+
TabularMainPage.defaultProps = defaultProps$b; // Static export of pre-configured form control buttons to easily re-use
|
|
392
392
|
// them in the custom controls.
|
|
393
393
|
|
|
394
394
|
TabularMainPage.FormPrimaryButton = FormPrimaryButton;
|
|
@@ -411,7 +411,7 @@ var messages$2 = reactIntl.defineMessages({
|
|
|
411
411
|
}
|
|
412
412
|
});
|
|
413
413
|
|
|
414
|
-
var defaultProps$
|
|
414
|
+
var defaultProps$a = {
|
|
415
415
|
color: 'surface',
|
|
416
416
|
previousPathLabel: messages$2.back
|
|
417
417
|
};
|
|
@@ -434,9 +434,9 @@ var PageTopBar = function PageTopBar(props) {
|
|
|
434
434
|
|
|
435
435
|
PageTopBar.propTypes = {};
|
|
436
436
|
PageTopBar.displayName = 'PageTopBar';
|
|
437
|
-
PageTopBar.defaultProps = defaultProps$
|
|
437
|
+
PageTopBar.defaultProps = defaultProps$a;
|
|
438
438
|
|
|
439
|
-
var defaultProps$
|
|
439
|
+
var defaultProps$9 = {
|
|
440
440
|
hideControls: false
|
|
441
441
|
};
|
|
442
442
|
|
|
@@ -472,7 +472,7 @@ var TabularDetailPage = function TabularDetailPage(props) {
|
|
|
472
472
|
|
|
473
473
|
TabularDetailPage.propTypes = {};
|
|
474
474
|
TabularDetailPage.displayName = 'TabularDetailPage';
|
|
475
|
-
TabularDetailPage.defaultProps = defaultProps$
|
|
475
|
+
TabularDetailPage.defaultProps = defaultProps$9; // Static export of pre-configured form control buttons to easily re-use
|
|
476
476
|
// them in the custom controls.
|
|
477
477
|
|
|
478
478
|
TabularDetailPage.FormPrimaryButton = FormPrimaryButton;
|
|
@@ -530,7 +530,7 @@ var getDefaultParentSelector$1 = function getDefaultParentSelector() {
|
|
|
530
530
|
return document.querySelector("#".concat(constants.PORTALS_CONTAINER_ID));
|
|
531
531
|
};
|
|
532
532
|
|
|
533
|
-
var defaultProps$
|
|
533
|
+
var defaultProps$8 = {
|
|
534
534
|
size: 10,
|
|
535
535
|
zIndex: 1000,
|
|
536
536
|
getParentSelector: getDefaultParentSelector$1
|
|
@@ -606,7 +606,7 @@ var DialogContainer = function DialogContainer(props) {
|
|
|
606
606
|
|
|
607
607
|
DialogContainer.propTypes = {};
|
|
608
608
|
DialogContainer.displayName = 'DialogContainer';
|
|
609
|
-
DialogContainer.defaultProps = defaultProps$
|
|
609
|
+
DialogContainer.defaultProps = defaultProps$8;
|
|
610
610
|
|
|
611
611
|
var _ref$4 = {
|
|
612
612
|
name: "o5s7gs",
|
|
@@ -666,7 +666,7 @@ InfoDialog.displayName = 'InfoDialog';
|
|
|
666
666
|
function ownKeys$3(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
667
667
|
|
|
668
668
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$3(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
669
|
-
var defaultProps$
|
|
669
|
+
var defaultProps$7 = {
|
|
670
670
|
isPrimaryButtonDisabled: false,
|
|
671
671
|
dataAttributesPrimaryButton: {},
|
|
672
672
|
dataAttributesSecondaryButton: {}
|
|
@@ -695,9 +695,9 @@ var DialogFooter = function DialogFooter(props) {
|
|
|
695
695
|
|
|
696
696
|
DialogFooter.propTypes = {};
|
|
697
697
|
DialogFooter.displayName = 'DialogFooter';
|
|
698
|
-
DialogFooter.defaultProps = defaultProps$
|
|
698
|
+
DialogFooter.defaultProps = defaultProps$7;
|
|
699
699
|
|
|
700
|
-
var defaultProps$
|
|
700
|
+
var defaultProps$6 = {
|
|
701
701
|
labelSecondary: i18n.sharedMessages.cancel,
|
|
702
702
|
labelPrimary: i18n.sharedMessages.confirm
|
|
703
703
|
};
|
|
@@ -729,12 +729,12 @@ var ConfirmationDialog = function ConfirmationDialog(props) {
|
|
|
729
729
|
|
|
730
730
|
ConfirmationDialog.propTypes = {};
|
|
731
731
|
ConfirmationDialog.displayName = 'ConfirmationDialog';
|
|
732
|
-
ConfirmationDialog.defaultProps = defaultProps$
|
|
732
|
+
ConfirmationDialog.defaultProps = defaultProps$6; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
733
733
|
// The Intl messages can be used for button labels.
|
|
734
734
|
|
|
735
735
|
ConfirmationDialog.Intl = i18n.sharedMessages;
|
|
736
736
|
|
|
737
|
-
var defaultProps$
|
|
737
|
+
var defaultProps$5 = {
|
|
738
738
|
labelSecondary: i18n.sharedMessages.cancel,
|
|
739
739
|
labelPrimary: i18n.sharedMessages.save
|
|
740
740
|
};
|
|
@@ -766,7 +766,7 @@ var FormDialog = function FormDialog(props) {
|
|
|
766
766
|
|
|
767
767
|
FormDialog.propTypes = {};
|
|
768
768
|
FormDialog.displayName = 'FormDialog';
|
|
769
|
-
FormDialog.defaultProps = defaultProps$
|
|
769
|
+
FormDialog.defaultProps = defaultProps$5; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
770
770
|
// The Intl messages can be used for button labels.
|
|
771
771
|
|
|
772
772
|
FormDialog.Intl = i18n.sharedMessages;
|
|
@@ -825,7 +825,7 @@ var LargeIconWrapper = _styled__default["default"]("span", {
|
|
|
825
825
|
// does not recognize the object shape.
|
|
826
826
|
|
|
827
827
|
|
|
828
|
-
var defaultProps$
|
|
828
|
+
var defaultProps$4 = {
|
|
829
829
|
color: 'surface',
|
|
830
830
|
previousPathLabel: messages$2.back
|
|
831
831
|
};
|
|
@@ -874,7 +874,7 @@ var ModalPageTopBar = function ModalPageTopBar(props) {
|
|
|
874
874
|
|
|
875
875
|
ModalPageTopBar.propTypes = {};
|
|
876
876
|
ModalPageTopBar.displayName = 'ModalPageTopBar';
|
|
877
|
-
ModalPageTopBar.defaultProps = defaultProps$
|
|
877
|
+
ModalPageTopBar.defaultProps = defaultProps$4;
|
|
878
878
|
|
|
879
879
|
var getDefaultParentSelector = function getDefaultParentSelector() {
|
|
880
880
|
return document.querySelector("#".concat(constants.PORTALS_CONTAINER_ID));
|
|
@@ -883,7 +883,7 @@ var getDefaultParentSelector = function getDefaultParentSelector() {
|
|
|
883
883
|
// does not recognize the object shape.
|
|
884
884
|
|
|
885
885
|
|
|
886
|
-
var defaultProps$
|
|
886
|
+
var defaultProps$3 = {
|
|
887
887
|
level: 1,
|
|
888
888
|
baseZIndex: 1000,
|
|
889
889
|
getParentSelector: getDefaultParentSelector,
|
|
@@ -964,7 +964,7 @@ var ModalPage = function ModalPage(props) {
|
|
|
964
964
|
|
|
965
965
|
ModalPage.propTypes = {};
|
|
966
966
|
ModalPage.displayName = 'ModalPage';
|
|
967
|
-
ModalPage.defaultProps = defaultProps$
|
|
967
|
+
ModalPage.defaultProps = defaultProps$3;
|
|
968
968
|
|
|
969
969
|
var PageHeader = function PageHeader(props) {
|
|
970
970
|
return jsxRuntime.jsxs("div", {
|
|
@@ -1042,7 +1042,7 @@ CustomFormModalPage.FormDeleteButton = FormDeleteButton; // This is a convenienc
|
|
|
1042
1042
|
|
|
1043
1043
|
CustomFormModalPage.Intl = i18n.sharedMessages;
|
|
1044
1044
|
|
|
1045
|
-
var defaultProps$
|
|
1045
|
+
var defaultProps$2 = {
|
|
1046
1046
|
hideControls: false
|
|
1047
1047
|
};
|
|
1048
1048
|
|
|
@@ -1080,12 +1080,12 @@ var FormModalPage = function FormModalPage(props) {
|
|
|
1080
1080
|
|
|
1081
1081
|
FormModalPage.propTypes = {};
|
|
1082
1082
|
FormModalPage.displayName = 'FormModalPage';
|
|
1083
|
-
FormModalPage.defaultProps = defaultProps$
|
|
1083
|
+
FormModalPage.defaultProps = defaultProps$2; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
1084
1084
|
// The Intl messages can be used for button labels.
|
|
1085
1085
|
|
|
1086
1086
|
FormModalPage.Intl = i18n.sharedMessages;
|
|
1087
1087
|
|
|
1088
|
-
var defaultProps = {
|
|
1088
|
+
var defaultProps$1 = {
|
|
1089
1089
|
hideControls: false
|
|
1090
1090
|
};
|
|
1091
1091
|
|
|
@@ -1128,7 +1128,7 @@ var TabularModalPage = function TabularModalPage(props) {
|
|
|
1128
1128
|
|
|
1129
1129
|
TabularModalPage.propTypes = {};
|
|
1130
1130
|
TabularModalPage.displayName = 'TabularModalPage';
|
|
1131
|
-
TabularModalPage.defaultProps = defaultProps; // Static export of pre-configured form control buttons to easily re-use
|
|
1131
|
+
TabularModalPage.defaultProps = defaultProps$1; // Static export of pre-configured form control buttons to easily re-use
|
|
1132
1132
|
// them in the custom controls.
|
|
1133
1133
|
|
|
1134
1134
|
TabularModalPage.FormPrimaryButton = FormPrimaryButton;
|
|
@@ -1339,20 +1339,32 @@ var PageUnauthorized = function PageUnauthorized() {
|
|
|
1339
1339
|
};
|
|
1340
1340
|
PageUnauthorized.displayName = 'PageUnauthorized';
|
|
1341
1341
|
|
|
1342
|
+
var defaultProps = {
|
|
1343
|
+
offsetTop: '0',
|
|
1344
|
+
containerSelectorToPreventScrollingOnOpen: 'main',
|
|
1345
|
+
zIndex: 10000
|
|
1346
|
+
}; // All modal components expect to be rendered inside this container.
|
|
1347
|
+
|
|
1342
1348
|
var _ref = {
|
|
1343
1349
|
name: "qk9kof",
|
|
1344
1350
|
styles: "display:flex;height:1px;margin-top:-1px"
|
|
1345
1351
|
} ;
|
|
1346
1352
|
|
|
1347
|
-
var PortalsContainer = function PortalsContainer() {
|
|
1348
|
-
return jsxRuntime.
|
|
1349
|
-
|
|
1350
|
-
,
|
|
1351
|
-
|
|
1353
|
+
var PortalsContainer = function PortalsContainer(props) {
|
|
1354
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1355
|
+
children: [jsxRuntime.jsx(react.Global // Apply some global styles, based on the `.ReactModal__Body--open` class.
|
|
1356
|
+
, {
|
|
1357
|
+
styles: /*#__PURE__*/react.css(".ReactModal__Body--open ", props.containerSelectorToPreventScrollingOnOpen, "{overflow:hidden;}.ReactModal__Body--open #", constants.PORTALS_CONTAINER_ID, "{position:fixed;height:calc(100% - ", props.offsetTop, ");width:100%;top:", props.offsetTop, ";bottom:0;z-index:", props.zIndex, ";}" + ("" ), "" )
|
|
1358
|
+
}), jsxRuntime.jsx("div", {
|
|
1359
|
+
id: constants.PORTALS_CONTAINER_ID // The container needs a height in order to be tabbable: https://reactjs/react-modal#774
|
|
1360
|
+
,
|
|
1361
|
+
css: _ref
|
|
1362
|
+
})]
|
|
1352
1363
|
});
|
|
1353
1364
|
};
|
|
1354
1365
|
|
|
1355
1366
|
PortalsContainer.displayName = 'PortalsContainer';
|
|
1367
|
+
PortalsContainer.defaultProps = defaultProps;
|
|
1356
1368
|
|
|
1357
1369
|
var useModalState = function useModalState() {
|
|
1358
1370
|
var isInitiallyOpen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
@@ -13,7 +13,7 @@ import startCase from 'lodash/startCase';
|
|
|
13
13
|
import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
|
|
14
14
|
import { warning } from '@commercetools-uikit/utils';
|
|
15
15
|
import Text from '@commercetools-uikit/text';
|
|
16
|
-
import { css, ClassNames } from '@emotion/react';
|
|
16
|
+
import { css, ClassNames, Global } from '@emotion/react';
|
|
17
17
|
import { customProperties } from '@commercetools-uikit/design-system';
|
|
18
18
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
19
19
|
import Spacings from '@commercetools-uikit/spacings';
|
|
@@ -39,7 +39,7 @@ import PageNotFoundSVG from '@commercetools-frontend/assets/images/desert-fox.sv
|
|
|
39
39
|
import FailedAuthorizationSVG from '@commercetools-frontend/assets/images/folder-full-locked.svg';
|
|
40
40
|
|
|
41
41
|
// NOTE: This string will be replaced on build time with the package version.
|
|
42
|
-
var version = "21.3.
|
|
42
|
+
var version = "21.3.3";
|
|
43
43
|
|
|
44
44
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$a() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
45
45
|
|
|
@@ -136,14 +136,14 @@ TabHeader.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
136
136
|
exactPathMatch: _pt.bool.isRequired
|
|
137
137
|
} : {};
|
|
138
138
|
TabHeader.displayName = 'TabHeader';
|
|
139
|
-
var defaultProps$
|
|
139
|
+
var defaultProps$e = {
|
|
140
140
|
isDisabled: false,
|
|
141
141
|
exactPathMatch: false
|
|
142
142
|
};
|
|
143
|
-
TabHeader.defaultProps = defaultProps$
|
|
143
|
+
TabHeader.defaultProps = defaultProps$e;
|
|
144
144
|
|
|
145
145
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$9() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
146
|
-
var defaultProps$
|
|
146
|
+
var defaultProps$d = {
|
|
147
147
|
titleSize: 'small',
|
|
148
148
|
truncate: false
|
|
149
149
|
};
|
|
@@ -230,7 +230,7 @@ PageHeaderTitle.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
230
230
|
subtitle: _pt.oneOfType([_pt.string, _pt.element])
|
|
231
231
|
} : {};
|
|
232
232
|
PageHeaderTitle.displayName = 'PageHeaderTitle';
|
|
233
|
-
PageHeaderTitle.defaultProps = defaultProps$
|
|
233
|
+
PageHeaderTitle.defaultProps = defaultProps$d;
|
|
234
234
|
|
|
235
235
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$8() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
236
236
|
|
|
@@ -279,10 +279,10 @@ TabularPageContainer.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
279
279
|
color: _pt.oneOf(['surface', 'neutral']).isRequired
|
|
280
280
|
} : {};
|
|
281
281
|
TabularPageContainer.displayName = 'TabularPageContainer';
|
|
282
|
-
var defaultProps$
|
|
282
|
+
var defaultProps$c = {
|
|
283
283
|
color: 'surface'
|
|
284
284
|
};
|
|
285
|
-
TabularPageContainer.defaultProps = defaultProps$
|
|
285
|
+
TabularPageContainer.defaultProps = defaultProps$c;
|
|
286
286
|
|
|
287
287
|
var FormControlsContainer = _styled("div", process.env.NODE_ENV === "production" ? {
|
|
288
288
|
target: "elpldre0"
|
|
@@ -410,7 +410,7 @@ FormDeleteButton.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
410
410
|
FormDeleteButton.displayName = 'FormDeleteButton';
|
|
411
411
|
FormDeleteButton.defaultProps = deleteDefaultProps;
|
|
412
412
|
|
|
413
|
-
var defaultProps$
|
|
413
|
+
var defaultProps$b = {
|
|
414
414
|
hideControls: false
|
|
415
415
|
};
|
|
416
416
|
|
|
@@ -453,7 +453,7 @@ TabularMainPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
453
453
|
hideControls: _pt.bool.isRequired
|
|
454
454
|
} : {};
|
|
455
455
|
TabularMainPage.displayName = 'TabularMainPage';
|
|
456
|
-
TabularMainPage.defaultProps = defaultProps$
|
|
456
|
+
TabularMainPage.defaultProps = defaultProps$b; // Static export of pre-configured form control buttons to easily re-use
|
|
457
457
|
// them in the custom controls.
|
|
458
458
|
|
|
459
459
|
TabularMainPage.FormPrimaryButton = FormPrimaryButton;
|
|
@@ -476,7 +476,7 @@ var messages$2 = defineMessages({
|
|
|
476
476
|
}
|
|
477
477
|
});
|
|
478
478
|
|
|
479
|
-
var defaultProps$
|
|
479
|
+
var defaultProps$a = {
|
|
480
480
|
color: 'surface',
|
|
481
481
|
previousPathLabel: messages$2.back
|
|
482
482
|
};
|
|
@@ -508,9 +508,9 @@ PageTopBar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
508
508
|
onClick: _pt.func.isRequired
|
|
509
509
|
} : {};
|
|
510
510
|
PageTopBar.displayName = 'PageTopBar';
|
|
511
|
-
PageTopBar.defaultProps = defaultProps$
|
|
511
|
+
PageTopBar.defaultProps = defaultProps$a;
|
|
512
512
|
|
|
513
|
-
var defaultProps$
|
|
513
|
+
var defaultProps$9 = {
|
|
514
514
|
hideControls: false
|
|
515
515
|
};
|
|
516
516
|
|
|
@@ -563,7 +563,7 @@ TabularDetailPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
563
563
|
onPreviousPathClick: _pt.func.isRequired
|
|
564
564
|
} : {};
|
|
565
565
|
TabularDetailPage.displayName = 'TabularDetailPage';
|
|
566
|
-
TabularDetailPage.defaultProps = defaultProps$
|
|
566
|
+
TabularDetailPage.defaultProps = defaultProps$9; // Static export of pre-configured form control buttons to easily re-use
|
|
567
567
|
// them in the custom controls.
|
|
568
568
|
|
|
569
569
|
TabularDetailPage.FormPrimaryButton = FormPrimaryButton;
|
|
@@ -630,7 +630,7 @@ var getDefaultParentSelector$1 = function getDefaultParentSelector() {
|
|
|
630
630
|
return process.env.NODE_ENV === 'test' ? document.body : document.querySelector("#".concat(PORTALS_CONTAINER_ID));
|
|
631
631
|
};
|
|
632
632
|
|
|
633
|
-
var defaultProps$
|
|
633
|
+
var defaultProps$8 = {
|
|
634
634
|
size: 10,
|
|
635
635
|
zIndex: 1000,
|
|
636
636
|
getParentSelector: getDefaultParentSelector$1
|
|
@@ -727,7 +727,7 @@ DialogContainer.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
727
727
|
getParentSelector: _pt.any.isRequired
|
|
728
728
|
} : {};
|
|
729
729
|
DialogContainer.displayName = 'DialogContainer';
|
|
730
|
-
DialogContainer.defaultProps = defaultProps$
|
|
730
|
+
DialogContainer.defaultProps = defaultProps$8;
|
|
731
731
|
|
|
732
732
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$4() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
733
733
|
|
|
@@ -808,7 +808,7 @@ InfoDialog.displayName = 'InfoDialog';
|
|
|
808
808
|
function ownKeys$3(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
809
809
|
|
|
810
810
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$3(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
811
|
-
var defaultProps$
|
|
811
|
+
var defaultProps$7 = {
|
|
812
812
|
isPrimaryButtonDisabled: false,
|
|
813
813
|
dataAttributesPrimaryButton: {},
|
|
814
814
|
dataAttributesSecondaryButton: {}
|
|
@@ -853,9 +853,9 @@ DialogFooter.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
853
853
|
dataAttributesSecondaryButton: _pt.objectOf(_pt.string).isRequired
|
|
854
854
|
} : {};
|
|
855
855
|
DialogFooter.displayName = 'DialogFooter';
|
|
856
|
-
DialogFooter.defaultProps = defaultProps$
|
|
856
|
+
DialogFooter.defaultProps = defaultProps$7;
|
|
857
857
|
|
|
858
|
-
var defaultProps$
|
|
858
|
+
var defaultProps$6 = {
|
|
859
859
|
labelSecondary: sharedMessages.cancel,
|
|
860
860
|
labelPrimary: sharedMessages.confirm
|
|
861
861
|
};
|
|
@@ -910,12 +910,12 @@ ConfirmationDialog.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
910
910
|
getParentSelector: _pt.func
|
|
911
911
|
} : {};
|
|
912
912
|
ConfirmationDialog.displayName = 'ConfirmationDialog';
|
|
913
|
-
ConfirmationDialog.defaultProps = defaultProps$
|
|
913
|
+
ConfirmationDialog.defaultProps = defaultProps$6; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
914
914
|
// The Intl messages can be used for button labels.
|
|
915
915
|
|
|
916
916
|
ConfirmationDialog.Intl = sharedMessages;
|
|
917
917
|
|
|
918
|
-
var defaultProps$
|
|
918
|
+
var defaultProps$5 = {
|
|
919
919
|
labelSecondary: sharedMessages.cancel,
|
|
920
920
|
labelPrimary: sharedMessages.save
|
|
921
921
|
};
|
|
@@ -970,7 +970,7 @@ FormDialog.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
970
970
|
getParentSelector: _pt.func
|
|
971
971
|
} : {};
|
|
972
972
|
FormDialog.displayName = 'FormDialog';
|
|
973
|
-
FormDialog.defaultProps = defaultProps$
|
|
973
|
+
FormDialog.defaultProps = defaultProps$5; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
974
974
|
// The Intl messages can be used for button labels.
|
|
975
975
|
|
|
976
976
|
FormDialog.Intl = sharedMessages;
|
|
@@ -1060,7 +1060,7 @@ var LargeIconWrapper = _styled("span", process.env.NODE_ENV === "production" ? {
|
|
|
1060
1060
|
// does not recognize the object shape.
|
|
1061
1061
|
|
|
1062
1062
|
|
|
1063
|
-
var defaultProps$
|
|
1063
|
+
var defaultProps$4 = {
|
|
1064
1064
|
color: 'surface',
|
|
1065
1065
|
previousPathLabel: messages$2.back
|
|
1066
1066
|
};
|
|
@@ -1123,7 +1123,7 @@ ModalPageTopBar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1123
1123
|
onClose: _pt.func.isRequired
|
|
1124
1124
|
} : {};
|
|
1125
1125
|
ModalPageTopBar.displayName = 'ModalPageTopBar';
|
|
1126
|
-
ModalPageTopBar.defaultProps = defaultProps$
|
|
1126
|
+
ModalPageTopBar.defaultProps = defaultProps$4;
|
|
1127
1127
|
|
|
1128
1128
|
var getDefaultParentSelector = function getDefaultParentSelector() {
|
|
1129
1129
|
return process.env.NODE_ENV === 'test' ? document.body : document.querySelector("#".concat(PORTALS_CONTAINER_ID));
|
|
@@ -1132,7 +1132,7 @@ var getDefaultParentSelector = function getDefaultParentSelector() {
|
|
|
1132
1132
|
// does not recognize the object shape.
|
|
1133
1133
|
|
|
1134
1134
|
|
|
1135
|
-
var defaultProps$
|
|
1135
|
+
var defaultProps$3 = {
|
|
1136
1136
|
level: 1,
|
|
1137
1137
|
baseZIndex: 1000,
|
|
1138
1138
|
getParentSelector: getDefaultParentSelector,
|
|
@@ -1231,7 +1231,7 @@ ModalPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1231
1231
|
})])
|
|
1232
1232
|
} : {};
|
|
1233
1233
|
ModalPage.displayName = 'ModalPage';
|
|
1234
|
-
ModalPage.defaultProps = defaultProps$
|
|
1234
|
+
ModalPage.defaultProps = defaultProps$3;
|
|
1235
1235
|
|
|
1236
1236
|
var PageHeader = function PageHeader(props) {
|
|
1237
1237
|
return jsxs("div", {
|
|
@@ -1351,7 +1351,7 @@ CustomFormModalPage.FormDeleteButton = FormDeleteButton; // This is a convenienc
|
|
|
1351
1351
|
|
|
1352
1352
|
CustomFormModalPage.Intl = sharedMessages;
|
|
1353
1353
|
|
|
1354
|
-
var defaultProps$
|
|
1354
|
+
var defaultProps$2 = {
|
|
1355
1355
|
hideControls: false
|
|
1356
1356
|
};
|
|
1357
1357
|
|
|
@@ -1424,12 +1424,12 @@ FormModalPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1424
1424
|
hideControls: _pt.bool.isRequired
|
|
1425
1425
|
} : {};
|
|
1426
1426
|
FormModalPage.displayName = 'FormModalPage';
|
|
1427
|
-
FormModalPage.defaultProps = defaultProps$
|
|
1427
|
+
FormModalPage.defaultProps = defaultProps$2; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
1428
1428
|
// The Intl messages can be used for button labels.
|
|
1429
1429
|
|
|
1430
1430
|
FormModalPage.Intl = sharedMessages;
|
|
1431
1431
|
|
|
1432
|
-
var defaultProps = {
|
|
1432
|
+
var defaultProps$1 = {
|
|
1433
1433
|
hideControls: false
|
|
1434
1434
|
};
|
|
1435
1435
|
|
|
@@ -1494,7 +1494,7 @@ TabularModalPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1494
1494
|
hideControls: _pt.bool.isRequired
|
|
1495
1495
|
} : {};
|
|
1496
1496
|
TabularModalPage.displayName = 'TabularModalPage';
|
|
1497
|
-
TabularModalPage.defaultProps = defaultProps; // Static export of pre-configured form control buttons to easily re-use
|
|
1497
|
+
TabularModalPage.defaultProps = defaultProps$1; // Static export of pre-configured form control buttons to easily re-use
|
|
1498
1498
|
// them in the custom controls.
|
|
1499
1499
|
|
|
1500
1500
|
TabularModalPage.FormPrimaryButton = FormPrimaryButton;
|
|
@@ -1744,6 +1744,11 @@ var PageUnauthorized = function PageUnauthorized() {
|
|
|
1744
1744
|
PageUnauthorized.displayName = 'PageUnauthorized';
|
|
1745
1745
|
|
|
1746
1746
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
1747
|
+
var defaultProps = {
|
|
1748
|
+
offsetTop: '0',
|
|
1749
|
+
containerSelectorToPreventScrollingOnOpen: 'main',
|
|
1750
|
+
zIndex: 10000
|
|
1751
|
+
}; // All modal components expect to be rendered inside this container.
|
|
1747
1752
|
|
|
1748
1753
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
1749
1754
|
name: "qk9kof",
|
|
@@ -1751,19 +1756,25 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
1751
1756
|
} : {
|
|
1752
1757
|
name: "14eqpg3-PortalsContainer",
|
|
1753
1758
|
styles: "display:flex;height:1px;margin-top:-1px;label:PortalsContainer;",
|
|
1754
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
1759
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBvcnRhbHMtY29udGFpbmVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFvRGMiLCJmaWx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FJTkVSX0lEfVxuICAgICAgLy8gVGhlIGNvbnRhaW5lciBuZWVkcyBhIGhlaWdodCBpbiBvcmRlciB0byBiZSB0YWJiYWJsZTogaHR0cHM6Ly9yZWFjdGpzL3JlYWN0LW1vZGFsIzc3NFxuICAgICAgY3NzPXtjc3NgXG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGhlaWdodDogMXB4O1xuICAgICAgICBtYXJnaW4tdG9wOiAtMXB4O1xuICAgICAgYH1cbiAgICAvPlxuICA8Lz5cbik7XG5Qb3J0YWxzQ29udGFpbmVyLmRpc3BsYXlOYW1lID0gJ1BvcnRhbHNDb250YWluZXInO1xuUG9ydGFsc0NvbnRhaW5lci5kZWZhdWx0UHJvcHMgPSBkZWZhdWx0UHJvcHM7XG5cbmV4cG9ydCBkZWZhdWx0IFBvcnRhbHNDb250YWluZXI7XG4iXX0= */",
|
|
1755
1760
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
1756
1761
|
};
|
|
1757
1762
|
|
|
1758
|
-
var PortalsContainer = function PortalsContainer() {
|
|
1759
|
-
return
|
|
1760
|
-
|
|
1761
|
-
,
|
|
1762
|
-
|
|
1763
|
+
var PortalsContainer = function PortalsContainer(props) {
|
|
1764
|
+
return jsxs(Fragment, {
|
|
1765
|
+
children: [jsx(Global // Apply some global styles, based on the `.ReactModal__Body--open` class.
|
|
1766
|
+
, {
|
|
1767
|
+
styles: /*#__PURE__*/css(".ReactModal__Body--open ", props.containerSelectorToPreventScrollingOnOpen, "{overflow:hidden;}.ReactModal__Body--open #", PORTALS_CONTAINER_ID, "{position:fixed;height:calc(100% - ", props.offsetTop, ");width:100%;top:", props.offsetTop, ";bottom:0;z-index:", props.zIndex, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:PortalsContainer;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBvcnRhbHMt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PlxuICAgIDxkaXZcbiAgICAgIGlkPXtQT1JUQUxTX0NPTlRBSU5FUl9JRH1cbiAgICAgIC8vIFRoZSBjb250YWluZXIgbmVlZHMgYSBoZWlnaHQgaW4gb3JkZXIgdG8gYmUgdGFiYmFibGU6IGh0dHBzOi8vcmVhY3Rqcy9yZWFjdC1tb2RhbCM3NzRcbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBoZWlnaHQ6IDFweDtcbiAgICAgICAgbWFyZ2luLXRvcDogLTFweDtcbiAgICAgIGB9XG4gICAgLz5cbiAgPC8+XG4pO1xuUG9ydGFsc0NvbnRhaW5lci5kaXNwbGF5TmFtZSA9ICdQb3J0YWxzQ29udGFpbmVyJztcblBvcnRhbHNDb250YWluZXIuZGVmYXVsdFByb3BzID0gZGVmYXVsdFByb3BzO1xuXG5leHBvcnQgZGVmYXVsdCBQb3J0YWxzQ29udGFpbmVyO1xuIl19 */")
|
|
1768
|
+
}), jsx("div", {
|
|
1769
|
+
id: PORTALS_CONTAINER_ID // The container needs a height in order to be tabbable: https://reactjs/react-modal#774
|
|
1770
|
+
,
|
|
1771
|
+
css: _ref
|
|
1772
|
+
})]
|
|
1763
1773
|
});
|
|
1764
1774
|
};
|
|
1765
1775
|
|
|
1766
1776
|
PortalsContainer.displayName = 'PortalsContainer';
|
|
1777
|
+
PortalsContainer.defaultProps = defaultProps;
|
|
1767
1778
|
|
|
1768
1779
|
var useModalState = function useModalState() {
|
|
1769
1780
|
var isInitiallyOpen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
declare type TPortalsContainerProps = {
|
|
2
|
+
offsetTop: string;
|
|
3
|
+
containerSelectorToPreventScrollingOnOpen: string;
|
|
4
|
+
zIndex: number;
|
|
5
|
+
};
|
|
1
6
|
declare const PortalsContainer: {
|
|
2
|
-
(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
(props: TPortalsContainerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
8
|
displayName: string;
|
|
9
|
+
defaultProps: Pick<TPortalsContainerProps, "zIndex" | "offsetTop" | "containerSelectorToPreventScrollingOnOpen">;
|
|
4
10
|
};
|
|
5
11
|
export default PortalsContainer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-components",
|
|
3
|
-
"version": "21.3.
|
|
3
|
+
"version": "21.3.3",
|
|
4
4
|
"description": "Generic components for building Merchant Center applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|