@commercetools-frontend/application-components 21.21.2 → 21.22.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/commercetools-frontend-application-components.cjs.dev.js +273 -73
- package/dist/commercetools-frontend-application-components.cjs.prod.js +187 -52
- package/dist/commercetools-frontend-application-components.esm.js +272 -75
- package/dist/declarations/src/components/page-content-containers/page-content-full/index.d.ts +2 -0
- package/dist/declarations/src/components/page-content-containers/page-content-full/page-content-full.d.ts +6 -0
- package/dist/declarations/src/components/page-content-containers/page-content-narrow/index.d.ts +2 -0
- package/dist/declarations/src/components/page-content-containers/page-content-narrow/page-content-narrow.d.ts +6 -0
- package/dist/declarations/src/components/page-content-containers/page-content-wide/index.d.ts +2 -0
- package/dist/declarations/src/components/page-content-containers/page-content-wide/page-content-wide.d.ts +11 -0
- package/dist/declarations/src/index.d.ts +6 -0
- package/dist/declarations/src/theming.d.ts +3 -3
- package/dist/{public-page-layout-ef17c422.cjs.dev.js → public-page-layout-81ec8bbd.cjs.dev.js} +0 -0
- package/dist/{public-page-layout-b59d3d28.esm.js → public-page-layout-cdfe65c9.esm.js} +0 -0
- package/dist/{public-page-layout-8489cd86.cjs.prod.js → public-page-layout-d4fefecc.cjs.prod.js} +0 -0
- package/package.json +19 -19
|
@@ -87,7 +87,7 @@ var useLatest__default = /*#__PURE__*/_interopDefault(useLatest);
|
|
|
87
87
|
var rafSchd__default = /*#__PURE__*/_interopDefault(rafSchd);
|
|
88
88
|
|
|
89
89
|
// NOTE: This string will be replaced on build time with the package version.
|
|
90
|
-
var version = "21.
|
|
90
|
+
var version = "21.22.0";
|
|
91
91
|
|
|
92
92
|
var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12;
|
|
93
93
|
var appKitSpacing55 = '40px'; // TODO: move to uikit?
|
|
@@ -120,7 +120,7 @@ var themesOverrides = {
|
|
|
120
120
|
fontWeightForNavbarLinkWhenActive: designSystem.designTokens.fontWeight500,
|
|
121
121
|
fontWeightForNavbarLinkWhenHovered: designSystem.designTokens.fontWeight500,
|
|
122
122
|
heightForTab: '4px',
|
|
123
|
-
|
|
123
|
+
lineHeightForNavbarLink: designSystem.designTokens.lineHeight50,
|
|
124
124
|
marginBottomForPageTopBar: designSystem.designTokens.spacing20,
|
|
125
125
|
marginForDialogContainerContents: "".concat(designSystem.designTokens.spacing30, " 0"),
|
|
126
126
|
marginForModalPageHeader: "0 ".concat(designSystem.designTokens.spacing30),
|
|
@@ -168,7 +168,7 @@ var themesOverrides = {
|
|
|
168
168
|
fontWeightForNavbarLinkWhenActive: designSystem.designTokens.fontWeight600,
|
|
169
169
|
fontWeightForNavbarLinkWhenHovered: designSystem.designTokens.fontWeight600,
|
|
170
170
|
heightForTab: '2px',
|
|
171
|
-
|
|
171
|
+
lineHeightForNavbarLink: designSystem.designTokens.lineHeight20,
|
|
172
172
|
marginBottomForPageTopBar: designSystem.designTokens.spacing40,
|
|
173
173
|
marginForDialogContainerContents: _concatInstanceProperty__default["default"](_context4 = "".concat(designSystem.designTokens.spacing30, " 0 ")).call(_context4, designSystem.designTokens.spacing50, " 0"),
|
|
174
174
|
marginForModalPageHeader: "0 ".concat(appKitSpacing55),
|
|
@@ -202,13 +202,13 @@ var getBottomBorderStyles = function getBottomBorderStyles(background) {
|
|
|
202
202
|
return /*#__PURE__*/react.css(":after{content:'';position:absolute;bottom:0;left:0;right:0;height:", designTokens.heightForTab, ";border-radius:", designSystem.designTokens.borderRadius2, ";background-color:", background, ";transition:background-color ", designSystem.designTokens.transitionEaseinout150Ms, ";}" + ("" ), "" );
|
|
203
203
|
};
|
|
204
204
|
|
|
205
|
-
var _ref$
|
|
205
|
+
var _ref$7 = {
|
|
206
206
|
name: "1u0tiat",
|
|
207
207
|
styles: "&[aria-disabled='true']{cursor:not-allowed;opacity:0.5;&:active{pointer-events:none;}}"
|
|
208
208
|
} ;
|
|
209
209
|
|
|
210
210
|
var getLinkStyles = function getLinkStyles(isActive, isDisabled) {
|
|
211
|
-
return [/*#__PURE__*/react.css("font-size:", designSystem.designTokens.fontSizeDefault, ";padding:", designSystem.designTokens.spacingS, " ", designSystem.designTokens.spacingM, ";position:relative;text-align:center;display:inline-block;color:inherit;text-decoration:inherit;&:first-of-type{padding-left:", designTokens.paddingLeftForTabAsFirst, ";}", getBottomBorderStyles('transparent'), ";" + ("" ), "" ), isActive && /*#__PURE__*/react.css(getBottomBorderStyles(designSystem.designTokens.colorPrimary), " & h4{color:", designSystem.designTokens.colorPrimary, "!important;}" + ("" ), "" ), isDisabled && _ref$
|
|
211
|
+
return [/*#__PURE__*/react.css("font-size:", designSystem.designTokens.fontSizeDefault, ";padding:", designSystem.designTokens.spacingS, " ", designSystem.designTokens.spacingM, ";position:relative;text-align:center;display:inline-block;color:inherit;text-decoration:inherit;&:first-of-type{padding-left:", designTokens.paddingLeftForTabAsFirst, ";}", getBottomBorderStyles('transparent'), ";" + ("" ), "" ), isActive && /*#__PURE__*/react.css(getBottomBorderStyles(designSystem.designTokens.colorPrimary), " & h4{color:", designSystem.designTokens.colorPrimary, "!important;}" + ("" ), "" ), isDisabled && _ref$7, !isActive && !isDisabled && /*#__PURE__*/react.css(":hover,:focus,:active{& h4{color:", designSystem.designTokens.colorPrimary, "!important;}}" + ("" ), "" )];
|
|
212
212
|
};
|
|
213
213
|
|
|
214
214
|
function ownKeys$6(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; }
|
|
@@ -287,11 +287,11 @@ var TabHeader = function TabHeader(props) {
|
|
|
287
287
|
};
|
|
288
288
|
TabHeader.propTypes = {};
|
|
289
289
|
TabHeader.displayName = 'TabHeader';
|
|
290
|
-
var defaultProps$
|
|
290
|
+
var defaultProps$i = {
|
|
291
291
|
isDisabled: false,
|
|
292
292
|
exactPathMatch: false
|
|
293
293
|
};
|
|
294
|
-
TabHeader.defaultProps = defaultProps$
|
|
294
|
+
TabHeader.defaultProps = defaultProps$i;
|
|
295
295
|
|
|
296
296
|
var getConstraintForGridStyle = function getConstraintForGridStyle(size) {
|
|
297
297
|
switch (size) {
|
|
@@ -361,7 +361,7 @@ var getOverlayElement$1 = function getOverlayElement(props, contentElement) {
|
|
|
361
361
|
);
|
|
362
362
|
};
|
|
363
363
|
|
|
364
|
-
var defaultProps$
|
|
364
|
+
var defaultProps$h = {
|
|
365
365
|
// TODO: t-shirt sizes are deprecated but we need to keep using them for
|
|
366
366
|
// backwards compatibility and to help with styling migration
|
|
367
367
|
// After the migration is done, we should change this default value to 13.
|
|
@@ -386,7 +386,7 @@ var sizeStyles = function sizeStyles(props) {
|
|
|
386
386
|
return /*#__PURE__*/react.css("" , "" );
|
|
387
387
|
};
|
|
388
388
|
|
|
389
|
-
var _ref$
|
|
389
|
+
var _ref$6 = {
|
|
390
390
|
name: "1daj17f",
|
|
391
391
|
styles: "display:flex;flex-direction:column;align-items:stretch;height:100%;min-height:0"
|
|
392
392
|
} ;
|
|
@@ -428,7 +428,7 @@ var DialogContainer = function DialogContainer(props) {
|
|
|
428
428
|
, {
|
|
429
429
|
css: /*#__PURE__*/react.css("min-height:0;", sizeStyles(props), " padding:", designTokens.paddingForDialogContainer, ";>div{display:flex;flex-direction:column;height:100%;pointer-events:auto;min-height:0;}" + ("" ), "" ),
|
|
430
430
|
children: jsxRuntime.jsx("div", {
|
|
431
|
-
css: _ref$
|
|
431
|
+
css: _ref$6,
|
|
432
432
|
children: props.children
|
|
433
433
|
})
|
|
434
434
|
})
|
|
@@ -440,7 +440,7 @@ var DialogContainer = function DialogContainer(props) {
|
|
|
440
440
|
|
|
441
441
|
DialogContainer.propTypes = {};
|
|
442
442
|
DialogContainer.displayName = 'DialogContainer';
|
|
443
|
-
DialogContainer.defaultProps = defaultProps$
|
|
443
|
+
DialogContainer.defaultProps = defaultProps$h;
|
|
444
444
|
|
|
445
445
|
var Title$1 = function Title(props) {
|
|
446
446
|
var _useTheme = designSystem.useTheme(),
|
|
@@ -519,7 +519,7 @@ function filterDataAttributes(obj) {
|
|
|
519
519
|
function ownKeys$4(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; }
|
|
520
520
|
|
|
521
521
|
function _objectSpread$4(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$4(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$4(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
522
|
-
var defaultProps$
|
|
522
|
+
var defaultProps$g = {
|
|
523
523
|
isPrimaryButtonDisabled: false,
|
|
524
524
|
dataAttributesPrimaryButton: {},
|
|
525
525
|
dataAttributesSecondaryButton: {}
|
|
@@ -552,9 +552,9 @@ var DialogFooter = function DialogFooter(props) {
|
|
|
552
552
|
|
|
553
553
|
DialogFooter.propTypes = {};
|
|
554
554
|
DialogFooter.displayName = 'DialogFooter';
|
|
555
|
-
DialogFooter.defaultProps = defaultProps$
|
|
555
|
+
DialogFooter.defaultProps = defaultProps$g;
|
|
556
556
|
|
|
557
|
-
var defaultProps$
|
|
557
|
+
var defaultProps$f = {
|
|
558
558
|
labelSecondary: i18n.sharedMessages.cancel,
|
|
559
559
|
labelPrimary: i18n.sharedMessages.confirm
|
|
560
560
|
};
|
|
@@ -586,12 +586,12 @@ var ConfirmationDialog = function ConfirmationDialog(props) {
|
|
|
586
586
|
|
|
587
587
|
ConfirmationDialog.propTypes = {};
|
|
588
588
|
ConfirmationDialog.displayName = 'ConfirmationDialog';
|
|
589
|
-
ConfirmationDialog.defaultProps = defaultProps$
|
|
589
|
+
ConfirmationDialog.defaultProps = defaultProps$f; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
590
590
|
// The Intl messages can be used for button labels.
|
|
591
591
|
|
|
592
592
|
ConfirmationDialog.Intl = i18n.sharedMessages;
|
|
593
593
|
|
|
594
|
-
var defaultProps$
|
|
594
|
+
var defaultProps$e = {
|
|
595
595
|
labelSecondary: i18n.sharedMessages.cancel,
|
|
596
596
|
labelPrimary: i18n.sharedMessages.save
|
|
597
597
|
};
|
|
@@ -624,7 +624,7 @@ var FormDialog = function FormDialog(props) {
|
|
|
624
624
|
|
|
625
625
|
FormDialog.propTypes = {};
|
|
626
626
|
FormDialog.displayName = 'FormDialog';
|
|
627
|
-
FormDialog.defaultProps = defaultProps$
|
|
627
|
+
FormDialog.defaultProps = defaultProps$e; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
628
628
|
// The Intl messages can be used for button labels.
|
|
629
629
|
|
|
630
630
|
FormDialog.Intl = i18n.sharedMessages;
|
|
@@ -665,13 +665,13 @@ var getBeforeCloseContainerAnimation = function getBeforeCloseContainerAnimation
|
|
|
665
665
|
return _ref2$1;
|
|
666
666
|
};
|
|
667
667
|
|
|
668
|
-
var _ref$
|
|
668
|
+
var _ref$5 = {
|
|
669
669
|
name: "728dx5",
|
|
670
670
|
styles: "opacity:0!important"
|
|
671
671
|
} ;
|
|
672
672
|
|
|
673
673
|
var getBeforeCloseOverlayAnimation = function getBeforeCloseOverlayAnimation() {
|
|
674
|
-
return _ref$
|
|
674
|
+
return _ref$5;
|
|
675
675
|
};
|
|
676
676
|
|
|
677
677
|
var messages$2 = reactIntl.defineMessages({
|
|
@@ -695,12 +695,12 @@ var LargeIconWrapper = /*#__PURE__*/_styled__default["default"]("span", {
|
|
|
695
695
|
// does not recognize the object shape.
|
|
696
696
|
|
|
697
697
|
|
|
698
|
-
var defaultProps$
|
|
698
|
+
var defaultProps$d = {
|
|
699
699
|
color: 'surface',
|
|
700
700
|
previousPathLabel: messages$2.back
|
|
701
701
|
};
|
|
702
702
|
|
|
703
|
-
var _ref$
|
|
703
|
+
var _ref$4 = {
|
|
704
704
|
name: "uvw8rn",
|
|
705
705
|
styles: "display:flex;overflow:hidden;button:first-of-type svg{height:12px!important;width:12px!important;}"
|
|
706
706
|
} ;
|
|
@@ -714,7 +714,7 @@ var ModalPageTopBar = function ModalPageTopBar(props) {
|
|
|
714
714
|
return jsxRuntime.jsxs("div", {
|
|
715
715
|
css: /*#__PURE__*/react.css("position:relative;display:flex;align-items:center;justify-content:space-between;padding:", designTokens.paddingForModalTopBar, ";background-color:", props.color === 'neutral' ? designTokens.backgroundColorForPageHeader : designSystem.designTokens.colorSurface, ";border-bottom:1px solid ", props.color === 'neutral' ? designSystem.designTokens.colorSurface : designTokens.borderColorForModalTopBarWhenSurface, ";& *+*{margin-left:", designSystem.designTokens.spacingS, ";}p{font-size:12px!important;}" + ("" ), "" ),
|
|
716
716
|
children: [jsxRuntime.jsxs("div", {
|
|
717
|
-
css: _ref$
|
|
717
|
+
css: _ref$4,
|
|
718
718
|
children: [jsxRuntime.jsx(FlatButton__default["default"], {
|
|
719
719
|
tone: "primary",
|
|
720
720
|
label: typeof props.previousPathLabel === 'string' ? props.previousPathLabel : intl.formatMessage(props.previousPathLabel),
|
|
@@ -748,7 +748,7 @@ var ModalPageTopBar = function ModalPageTopBar(props) {
|
|
|
748
748
|
|
|
749
749
|
ModalPageTopBar.propTypes = {};
|
|
750
750
|
ModalPageTopBar.displayName = 'ModalPageTopBar';
|
|
751
|
-
ModalPageTopBar.defaultProps = defaultProps$
|
|
751
|
+
ModalPageTopBar.defaultProps = defaultProps$d;
|
|
752
752
|
|
|
753
753
|
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; }
|
|
754
754
|
|
|
@@ -771,7 +771,7 @@ var getOverlayElement = function getOverlayElement(props, contentElement) {
|
|
|
771
771
|
// does not recognize the object shape.
|
|
772
772
|
|
|
773
773
|
|
|
774
|
-
var defaultProps$
|
|
774
|
+
var defaultProps$c = {
|
|
775
775
|
getParentSelector: getDefaultParentSelector,
|
|
776
776
|
shouldDelayOnClose: true
|
|
777
777
|
};
|
|
@@ -851,9 +851,9 @@ var ModalPage = function ModalPage(props) {
|
|
|
851
851
|
|
|
852
852
|
ModalPage.propTypes = {};
|
|
853
853
|
ModalPage.displayName = 'ModalPage';
|
|
854
|
-
ModalPage.defaultProps = defaultProps$
|
|
854
|
+
ModalPage.defaultProps = defaultProps$c;
|
|
855
855
|
|
|
856
|
-
var defaultProps$
|
|
856
|
+
var defaultProps$b = {
|
|
857
857
|
titleSize: 'small',
|
|
858
858
|
truncate: false
|
|
859
859
|
};
|
|
@@ -914,14 +914,14 @@ Subtitle.defaultProps = {
|
|
|
914
914
|
truncate: false
|
|
915
915
|
};
|
|
916
916
|
|
|
917
|
-
var _ref$
|
|
917
|
+
var _ref$3 = {
|
|
918
918
|
name: "d3v9zr",
|
|
919
919
|
styles: "overflow:hidden"
|
|
920
920
|
} ;
|
|
921
921
|
|
|
922
922
|
var PageHeaderTitle = function PageHeaderTitle(props) {
|
|
923
923
|
return jsxRuntime.jsxs("div", {
|
|
924
|
-
css: _ref$
|
|
924
|
+
css: _ref$3,
|
|
925
925
|
children: [jsxRuntime.jsx(Title, {
|
|
926
926
|
title: props.title,
|
|
927
927
|
titleSize: props.titleSize,
|
|
@@ -935,7 +935,7 @@ var PageHeaderTitle = function PageHeaderTitle(props) {
|
|
|
935
935
|
|
|
936
936
|
PageHeaderTitle.propTypes = {};
|
|
937
937
|
PageHeaderTitle.displayName = 'PageHeaderTitle';
|
|
938
|
-
PageHeaderTitle.defaultProps = defaultProps$
|
|
938
|
+
PageHeaderTitle.defaultProps = defaultProps$b;
|
|
939
939
|
|
|
940
940
|
var PageHeader = function PageHeader(props) {
|
|
941
941
|
var _useTheme = designSystem.useTheme(),
|
|
@@ -1088,7 +1088,7 @@ CustomFormModalPage.FormDeleteButton = FormDeleteButton; // This is a convenienc
|
|
|
1088
1088
|
|
|
1089
1089
|
CustomFormModalPage.Intl = i18n.sharedMessages;
|
|
1090
1090
|
|
|
1091
|
-
var defaultProps$
|
|
1091
|
+
var defaultProps$a = {
|
|
1092
1092
|
hideControls: false
|
|
1093
1093
|
};
|
|
1094
1094
|
|
|
@@ -1125,7 +1125,7 @@ var FormModalPage = function FormModalPage(props) {
|
|
|
1125
1125
|
|
|
1126
1126
|
FormModalPage.propTypes = {};
|
|
1127
1127
|
FormModalPage.displayName = 'FormModalPage';
|
|
1128
|
-
FormModalPage.defaultProps = defaultProps$
|
|
1128
|
+
FormModalPage.defaultProps = defaultProps$a; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
1129
1129
|
// The Intl messages can be used for button labels.
|
|
1130
1130
|
|
|
1131
1131
|
FormModalPage.Intl = i18n.sharedMessages;
|
|
@@ -1156,16 +1156,16 @@ var TabularPageContainer = function TabularPageContainer(props) {
|
|
|
1156
1156
|
|
|
1157
1157
|
TabularPageContainer.propTypes = {};
|
|
1158
1158
|
TabularPageContainer.displayName = 'TabularPageContainer';
|
|
1159
|
-
var defaultProps$
|
|
1159
|
+
var defaultProps$9 = {
|
|
1160
1160
|
color: 'surface'
|
|
1161
1161
|
};
|
|
1162
|
-
TabularPageContainer.defaultProps = defaultProps$
|
|
1162
|
+
TabularPageContainer.defaultProps = defaultProps$9;
|
|
1163
1163
|
|
|
1164
1164
|
var FormControlsContainer = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1165
1165
|
target: "elpldre0"
|
|
1166
1166
|
} )("margin-bottom:", designSystem.designTokens.spacingM, ";" + ("" ));
|
|
1167
1167
|
|
|
1168
|
-
var defaultProps$
|
|
1168
|
+
var defaultProps$8 = {
|
|
1169
1169
|
hideControls: false
|
|
1170
1170
|
};
|
|
1171
1171
|
|
|
@@ -1208,7 +1208,7 @@ var TabularModalPage = function TabularModalPage(props) {
|
|
|
1208
1208
|
|
|
1209
1209
|
TabularModalPage.propTypes = {};
|
|
1210
1210
|
TabularModalPage.displayName = 'TabularModalPage';
|
|
1211
|
-
TabularModalPage.defaultProps = defaultProps$
|
|
1211
|
+
TabularModalPage.defaultProps = defaultProps$8; // Static export of pre-configured form control buttons to easily re-use
|
|
1212
1212
|
// them in the custom controls.
|
|
1213
1213
|
|
|
1214
1214
|
TabularModalPage.FormPrimaryButton = FormPrimaryButton;
|
|
@@ -1218,7 +1218,7 @@ TabularModalPage.FormDeleteButton = FormDeleteButton; // This is a convenience p
|
|
|
1218
1218
|
|
|
1219
1219
|
TabularModalPage.Intl = i18n.sharedMessages;
|
|
1220
1220
|
|
|
1221
|
-
var defaultProps$
|
|
1221
|
+
var defaultProps$7 = {
|
|
1222
1222
|
color: 'surface',
|
|
1223
1223
|
previousPathLabel: messages$2.back
|
|
1224
1224
|
};
|
|
@@ -1241,7 +1241,7 @@ var PageTopBar = function PageTopBar(props) {
|
|
|
1241
1241
|
|
|
1242
1242
|
PageTopBar.propTypes = {};
|
|
1243
1243
|
PageTopBar.displayName = 'PageTopBar';
|
|
1244
|
-
PageTopBar.defaultProps = defaultProps$
|
|
1244
|
+
PageTopBar.defaultProps = defaultProps$7;
|
|
1245
1245
|
|
|
1246
1246
|
var DetailPageContainer = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1247
1247
|
target: "etkdonc1"
|
|
@@ -1254,7 +1254,7 @@ var HeaderControlsWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
|
1254
1254
|
// does not recognize the object shape.
|
|
1255
1255
|
|
|
1256
1256
|
|
|
1257
|
-
var defaultProps$
|
|
1257
|
+
var defaultProps$6 = {
|
|
1258
1258
|
hideControls: false
|
|
1259
1259
|
};
|
|
1260
1260
|
|
|
@@ -1284,7 +1284,7 @@ var CustomFormDetailPage = function CustomFormDetailPage(props) {
|
|
|
1284
1284
|
|
|
1285
1285
|
CustomFormDetailPage.propTypes = {};
|
|
1286
1286
|
CustomFormDetailPage.displayName = 'CustomFormDetailPage';
|
|
1287
|
-
CustomFormDetailPage.defaultProps = defaultProps$
|
|
1287
|
+
CustomFormDetailPage.defaultProps = defaultProps$6; // Static export of pre-configured page header title component to easily
|
|
1288
1288
|
// use as part of a custom title row
|
|
1289
1289
|
|
|
1290
1290
|
CustomFormDetailPage.PageHeaderTitle = PageHeaderTitle; // Static export of pre-configured form control buttons to easily re-use
|
|
@@ -1297,7 +1297,7 @@ CustomFormDetailPage.FormDeleteButton = FormDeleteButton; // This is a convenien
|
|
|
1297
1297
|
|
|
1298
1298
|
CustomFormDetailPage.Intl = i18n.sharedMessages;
|
|
1299
1299
|
|
|
1300
|
-
var defaultProps$
|
|
1300
|
+
var defaultProps$5 = {
|
|
1301
1301
|
hideControls: false
|
|
1302
1302
|
};
|
|
1303
1303
|
|
|
@@ -1329,7 +1329,7 @@ var FormDetailPage = function FormDetailPage(props) {
|
|
|
1329
1329
|
|
|
1330
1330
|
FormDetailPage.propTypes = {};
|
|
1331
1331
|
FormDetailPage.displayName = 'FormDetailPage';
|
|
1332
|
-
FormDetailPage.defaultProps = defaultProps$
|
|
1332
|
+
FormDetailPage.defaultProps = defaultProps$5; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
1333
1333
|
// The Intl messages can be used for button labels.
|
|
1334
1334
|
// Static export of pre-configured page header title component to easily
|
|
1335
1335
|
// use as part of a custom title row
|
|
@@ -1356,7 +1356,7 @@ InfoDetailPage.displayName = 'InfoDetailPage'; // Static export of pre-configure
|
|
|
1356
1356
|
|
|
1357
1357
|
InfoDetailPage.PageHeaderTitle = PageHeaderTitle;
|
|
1358
1358
|
|
|
1359
|
-
var defaultProps$
|
|
1359
|
+
var defaultProps$4 = {
|
|
1360
1360
|
hideControls: false
|
|
1361
1361
|
};
|
|
1362
1362
|
|
|
@@ -1390,7 +1390,7 @@ var TabularDetailPage = function TabularDetailPage(props) {
|
|
|
1390
1390
|
|
|
1391
1391
|
TabularDetailPage.propTypes = {};
|
|
1392
1392
|
TabularDetailPage.displayName = 'TabularDetailPage';
|
|
1393
|
-
TabularDetailPage.defaultProps = defaultProps$
|
|
1393
|
+
TabularDetailPage.defaultProps = defaultProps$4; // Static export of pre-configured form control buttons to easily re-use
|
|
1394
1394
|
// them in the custom controls.
|
|
1395
1395
|
|
|
1396
1396
|
TabularDetailPage.FormPrimaryButton = FormPrimaryButton;
|
|
@@ -1403,7 +1403,7 @@ TabularDetailPage.PageHeaderTitle = PageHeaderTitle; // This is a convenience pr
|
|
|
1403
1403
|
TabularDetailPage.Intl = i18n.sharedMessages;
|
|
1404
1404
|
|
|
1405
1405
|
var PublicPageLayout = /*#__PURE__*/react$1.lazy(function () {
|
|
1406
|
-
return Promise.resolve().then(function () { return require('./public-page-layout-
|
|
1406
|
+
return Promise.resolve().then(function () { return require('./public-page-layout-d4fefecc.cjs.prod.js'
|
|
1407
1407
|
/* webpackChunkName: "public-page-layout" */
|
|
1408
1408
|
); });
|
|
1409
1409
|
});
|
|
@@ -1418,7 +1418,7 @@ var MainPageContent = /*#__PURE__*/_styled__default["default"]("div", {
|
|
|
1418
1418
|
target: "ev8m2jf0"
|
|
1419
1419
|
} )("flex:1;flex-basis:0;overflow:auto;padding:", designTokens.paddingForPageContent, ";" + ("" ));
|
|
1420
1420
|
|
|
1421
|
-
var defaultProps$
|
|
1421
|
+
var defaultProps$3 = {
|
|
1422
1422
|
hideControls: false,
|
|
1423
1423
|
hideDivider: false
|
|
1424
1424
|
};
|
|
@@ -1446,7 +1446,7 @@ var CustomFormMainPage = function CustomFormMainPage(props) {
|
|
|
1446
1446
|
|
|
1447
1447
|
CustomFormMainPage.propTypes = {};
|
|
1448
1448
|
CustomFormMainPage.displayName = 'CustomFormMainPage';
|
|
1449
|
-
CustomFormMainPage.defaultProps = defaultProps$
|
|
1449
|
+
CustomFormMainPage.defaultProps = defaultProps$3; // Static export of pre-configured page header title component to easily
|
|
1450
1450
|
// use as part of a custom title row
|
|
1451
1451
|
|
|
1452
1452
|
CustomFormMainPage.PageHeaderTitle = PageHeaderTitle; // Static export of pre-configured form control buttons to easily re-use
|
|
@@ -1459,7 +1459,7 @@ CustomFormMainPage.FormDeleteButton = FormDeleteButton; // This is a convenience
|
|
|
1459
1459
|
|
|
1460
1460
|
CustomFormMainPage.Intl = i18n.sharedMessages;
|
|
1461
1461
|
|
|
1462
|
-
var defaultProps$
|
|
1462
|
+
var defaultProps$2 = {
|
|
1463
1463
|
hideControls: false
|
|
1464
1464
|
};
|
|
1465
1465
|
|
|
@@ -1489,7 +1489,7 @@ var FormMainPage = function FormMainPage(props) {
|
|
|
1489
1489
|
|
|
1490
1490
|
FormMainPage.propTypes = {};
|
|
1491
1491
|
FormMainPage.displayName = 'FormMainPage';
|
|
1492
|
-
FormMainPage.defaultProps = defaultProps$
|
|
1492
|
+
FormMainPage.defaultProps = defaultProps$2; // Static export of pre-configured page header title component to easily
|
|
1493
1493
|
// use as part of a custom title row
|
|
1494
1494
|
|
|
1495
1495
|
FormMainPage.PageHeaderTitle = PageHeaderTitle; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
@@ -1516,7 +1516,7 @@ InfoMainPage.displayName = 'InfoMainPage'; // Static export of pre-configured pa
|
|
|
1516
1516
|
|
|
1517
1517
|
InfoMainPage.PageHeaderTitle = PageHeaderTitle;
|
|
1518
1518
|
|
|
1519
|
-
var defaultProps = {
|
|
1519
|
+
var defaultProps$1 = {
|
|
1520
1520
|
hideControls: false
|
|
1521
1521
|
};
|
|
1522
1522
|
|
|
@@ -1547,7 +1547,7 @@ var TabularMainPage = function TabularMainPage(props) {
|
|
|
1547
1547
|
|
|
1548
1548
|
TabularMainPage.propTypes = {};
|
|
1549
1549
|
TabularMainPage.displayName = 'TabularMainPage';
|
|
1550
|
-
TabularMainPage.defaultProps = defaultProps; // Static export of pre-configured form control buttons to easily re-use
|
|
1550
|
+
TabularMainPage.defaultProps = defaultProps$1; // Static export of pre-configured form control buttons to easily re-use
|
|
1551
1551
|
// them in the custom controls.
|
|
1552
1552
|
|
|
1553
1553
|
TabularMainPage.FormPrimaryButton = FormPrimaryButton;
|
|
@@ -1559,7 +1559,7 @@ TabularMainPage.PageHeaderTitle = PageHeaderTitle; // This is a convenience prox
|
|
|
1559
1559
|
|
|
1560
1560
|
TabularMainPage.Intl = i18n.sharedMessages;
|
|
1561
1561
|
|
|
1562
|
-
var _ref$
|
|
1562
|
+
var _ref$2 = {
|
|
1563
1563
|
name: "zl1inp",
|
|
1564
1564
|
styles: "display:flex;justify-content:center"
|
|
1565
1565
|
} ;
|
|
@@ -1587,7 +1587,7 @@ var MaintenancePageLayout = function MaintenancePageLayout(props) {
|
|
|
1587
1587
|
}), jsxRuntime.jsx(Text__default["default"].Body, {
|
|
1588
1588
|
children: props.paragraph1
|
|
1589
1589
|
}), props.bodyContent && jsxRuntime.jsx("div", {
|
|
1590
|
-
css: _ref$
|
|
1590
|
+
css: _ref$2,
|
|
1591
1591
|
children: props.bodyContent
|
|
1592
1592
|
}), props.paragraph2 && jsxRuntime.jsx(Text__default["default"].Body, {
|
|
1593
1593
|
children: props.paragraph2
|
|
@@ -1683,6 +1683,138 @@ var PageUnauthorized = function PageUnauthorized() {
|
|
|
1683
1683
|
};
|
|
1684
1684
|
PageUnauthorized.displayName = 'PageUnauthorized';
|
|
1685
1685
|
|
|
1686
|
+
var Content$1 = /*#__PURE__*/_styled__default["default"]("section", {
|
|
1687
|
+
target: "e1jvhtw81"
|
|
1688
|
+
} )({
|
|
1689
|
+
name: "1sxg93g",
|
|
1690
|
+
styles: "grid-area:content"
|
|
1691
|
+
} );
|
|
1692
|
+
|
|
1693
|
+
var Container$1 = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1694
|
+
target: "e1jvhtw80"
|
|
1695
|
+
} )({
|
|
1696
|
+
name: "jri2nt",
|
|
1697
|
+
styles: "display:grid;grid-template-areas:'. content .';grid-template-columns:1fr minmax(400px, 600px) 1fr;width:100%"
|
|
1698
|
+
} );
|
|
1699
|
+
|
|
1700
|
+
function PageContentNarrow(props) {
|
|
1701
|
+
var _useTheme = designSystem.useTheme(),
|
|
1702
|
+
isNewTheme = _useTheme.isNewTheme;
|
|
1703
|
+
|
|
1704
|
+
if (!isNewTheme) return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
1705
|
+
children: props.children
|
|
1706
|
+
});
|
|
1707
|
+
return jsxRuntime.jsx(Container$1, {
|
|
1708
|
+
children: jsxRuntime.jsx(Content$1, {
|
|
1709
|
+
children: props.children
|
|
1710
|
+
})
|
|
1711
|
+
});
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
PageContentNarrow.propTypes = {};
|
|
1715
|
+
|
|
1716
|
+
var Content = /*#__PURE__*/_styled__default["default"]("section", {
|
|
1717
|
+
target: "e1dg479f4"
|
|
1718
|
+
} )("grid-area:content;display:grid;grid-template-areas:", function (props) {
|
|
1719
|
+
return props.columns === '1' ? 'none' : '"left-column right-column"';
|
|
1720
|
+
}, ";grid-template-columns:", function (props) {
|
|
1721
|
+
switch (props.columns) {
|
|
1722
|
+
case '1/1':
|
|
1723
|
+
return '1fr 1fr';
|
|
1724
|
+
|
|
1725
|
+
case '2/1':
|
|
1726
|
+
return '2fr 1fr';
|
|
1727
|
+
|
|
1728
|
+
default:
|
|
1729
|
+
return '1fr';
|
|
1730
|
+
}
|
|
1731
|
+
}, ";gap:", function (props) {
|
|
1732
|
+
return props.gapSize === '10' ? designSystem.designTokens.spacing50 : designSystem.designTokens.spacing70;
|
|
1733
|
+
}, ";width:100%;" + ("" ));
|
|
1734
|
+
|
|
1735
|
+
var LeftContentColumn = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1736
|
+
target: "e1dg479f3"
|
|
1737
|
+
} )({
|
|
1738
|
+
name: "1ibwnup",
|
|
1739
|
+
styles: "grid-area:left-column"
|
|
1740
|
+
} );
|
|
1741
|
+
|
|
1742
|
+
var RightContentColumn = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1743
|
+
target: "e1dg479f2"
|
|
1744
|
+
} )({
|
|
1745
|
+
name: "hjfyry",
|
|
1746
|
+
styles: "grid-area:right-column"
|
|
1747
|
+
} );
|
|
1748
|
+
|
|
1749
|
+
var RightColumnContentWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1750
|
+
target: "e1dg479f1"
|
|
1751
|
+
} )("top:0;position:", function (props) {
|
|
1752
|
+
return props.columns === '2/1' ? 'sticky' : 'static';
|
|
1753
|
+
}, ";" + ("" ));
|
|
1754
|
+
|
|
1755
|
+
var Container = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1756
|
+
target: "e1dg479f0"
|
|
1757
|
+
} )({
|
|
1758
|
+
name: "5phl7w",
|
|
1759
|
+
styles: "display:grid;grid-template-areas:'. content .';grid-template-columns:1fr minmax(800px, 1200px) 1fr;width:100%"
|
|
1760
|
+
} );
|
|
1761
|
+
|
|
1762
|
+
function PageContentWide(props) {
|
|
1763
|
+
var _useTheme = designSystem.useTheme(),
|
|
1764
|
+
isNewTheme = _useTheme.isNewTheme;
|
|
1765
|
+
|
|
1766
|
+
if (!isNewTheme) return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
1767
|
+
children: props.children
|
|
1768
|
+
});
|
|
1769
|
+
|
|
1770
|
+
var _Children$toArray = react$1.Children.toArray(props.children),
|
|
1771
|
+
_Children$toArray2 = _slicedToArray(_Children$toArray, 2),
|
|
1772
|
+
leftChild = _Children$toArray2[0],
|
|
1773
|
+
rightChild = _Children$toArray2[1];
|
|
1774
|
+
|
|
1775
|
+
return jsxRuntime.jsx(Container, {
|
|
1776
|
+
children: jsxRuntime.jsx(Content, {
|
|
1777
|
+
columns: props.columns,
|
|
1778
|
+
gapSize: props.gapSize,
|
|
1779
|
+
children: props.columns === '1' ? jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
1780
|
+
children: leftChild
|
|
1781
|
+
}) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1782
|
+
children: [jsxRuntime.jsx(LeftContentColumn, {
|
|
1783
|
+
children: leftChild
|
|
1784
|
+
}), jsxRuntime.jsx(RightContentColumn, {
|
|
1785
|
+
children: jsxRuntime.jsx(RightColumnContentWrapper, {
|
|
1786
|
+
columns: props.columns,
|
|
1787
|
+
children: rightChild
|
|
1788
|
+
})
|
|
1789
|
+
})]
|
|
1790
|
+
})
|
|
1791
|
+
})
|
|
1792
|
+
});
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
PageContentWide.propTypes = {};
|
|
1796
|
+
var defaultProps = {
|
|
1797
|
+
columns: '1',
|
|
1798
|
+
gapSize: '10'
|
|
1799
|
+
};
|
|
1800
|
+
PageContentWide.defaultProps = defaultProps;
|
|
1801
|
+
|
|
1802
|
+
var _ref$1 = {
|
|
1803
|
+
name: "1d3w5wq",
|
|
1804
|
+
styles: "width:100%"
|
|
1805
|
+
} ;
|
|
1806
|
+
|
|
1807
|
+
function PageContentFull(props) {
|
|
1808
|
+
return jsxRuntime.jsx("div", {
|
|
1809
|
+
css: _ref$1,
|
|
1810
|
+
children: jsxRuntime.jsx("section", {
|
|
1811
|
+
children: props.children
|
|
1812
|
+
})
|
|
1813
|
+
});
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
PageContentFull.propTypes = {};
|
|
1817
|
+
|
|
1686
1818
|
var _mutationObserver;
|
|
1687
1819
|
|
|
1688
1820
|
var getMutationObserver = function getMutationObserver(options) {
|
|
@@ -1892,6 +2024,9 @@ exports.InfoDialog = InfoDialog;
|
|
|
1892
2024
|
exports.InfoMainPage = InfoMainPage;
|
|
1893
2025
|
exports.InfoModalPage = InfoModalPage;
|
|
1894
2026
|
exports.MaintenancePageLayout = MaintenancePageLayout;
|
|
2027
|
+
exports.PageContentFull = PageContentFull;
|
|
2028
|
+
exports.PageContentNarrow = PageContentNarrow;
|
|
2029
|
+
exports.PageContentWide = PageContentWide;
|
|
1895
2030
|
exports.PageNotFound = PageNotFound;
|
|
1896
2031
|
exports.PageUnauthorized = PageUnauthorized;
|
|
1897
2032
|
exports.PortalsContainer = PortalsContainer;
|