@commercetools-frontend/application-components 22.37.0 → 22.38.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.
Files changed (30) hide show
  1. package/dist/commercetools-frontend-application-components.cjs.dev.js +429 -389
  2. package/dist/commercetools-frontend-application-components.cjs.prod.js +367 -327
  3. package/dist/commercetools-frontend-application-components.esm.js +429 -389
  4. package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +22 -73
  5. package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +5 -13
  6. package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts +3 -10
  7. package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +23 -72
  8. package/dist/declarations/src/components/dialogs/confirmation-dialog/confirmation-dialog.d.ts +3 -4
  9. package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +3 -4
  10. package/dist/declarations/src/components/dialogs/internals/dialog-container.d.ts +3 -4
  11. package/dist/declarations/src/components/dialogs/internals/dialog-footer.d.ts +4 -5
  12. package/dist/declarations/src/components/drawer/drawer.d.ts +16 -45
  13. package/dist/declarations/src/components/internals/default-form-buttons.d.ts +6 -9
  14. package/dist/declarations/src/components/internals/page-header-title.d.ts +3 -4
  15. package/dist/declarations/src/components/internals/page-top-bar.d.ts +3 -4
  16. package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +22 -71
  17. package/dist/declarations/src/components/main-pages/form-main-page/form-main-page.d.ts +4 -12
  18. package/dist/declarations/src/components/main-pages/info-main-page/info-main-page.d.ts +3 -10
  19. package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts +26 -72
  20. package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +18 -59
  21. package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +2 -3
  22. package/dist/declarations/src/components/modal-pages/internals/modal-page.d.ts +4 -5
  23. package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +20 -62
  24. package/dist/declarations/src/components/modal-pages/utils/modal-page-top-bar.d.ts +3 -4
  25. package/dist/declarations/src/components/page-content-containers/page-content-wide/page-content-wide.d.ts +3 -6
  26. package/dist/declarations/src/components/tab-header/tab-header.d.ts +3 -4
  27. package/dist/{public-page-layout-d365f38f.cjs.prod.js → public-page-layout-2326dd98.cjs.prod.js} +14 -8
  28. package/dist/{public-page-layout-81be35b4.cjs.dev.js → public-page-layout-c5145325.cjs.dev.js} +15 -9
  29. package/dist/{public-page-layout-3fba954d.esm.js → public-page-layout-df1c566c.esm.js} +15 -9
  30. package/package.json +10 -10
@@ -11,6 +11,7 @@ var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-
11
11
  var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
12
12
  var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
13
13
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
+ var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
14
15
  require('prop-types');
15
16
  var reactIntl = require('react-intl');
16
17
  var reactRouterDom = require('react-router-dom');
@@ -47,7 +48,6 @@ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
47
48
  var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entries');
48
49
  var PageNotFoundSVG = require('@commercetools-frontend/assets/images/page-not-found.svg');
49
50
  var FailedAuthorizationSVG = require('@commercetools-frontend/assets/images/doors-closed.svg');
50
- var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
51
51
  var _valuesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/values');
52
52
  var Stamp = require('@commercetools-uikit/stamp');
53
53
  var useResizeObserver = require('@react-hook/resize-observer');
@@ -88,7 +88,7 @@ var Stamp__default = /*#__PURE__*/_interopDefault(Stamp);
88
88
  var useResizeObserver__default = /*#__PURE__*/_interopDefault(useResizeObserver);
89
89
 
90
90
  // NOTE: This string will be replaced on build time with the package version.
91
- var version = "22.37.0";
91
+ var version = "22.38.0";
92
92
 
93
93
  // We keep these tokens as they are related to page layout components which should have
94
94
  // a slightly different layout (margins/paddings) when used within a Custom View panel.
@@ -116,6 +116,7 @@ var _ref$8 = {
116
116
  } ;
117
117
  const getLinkStyles = (isActive, isDisabled) => [/*#__PURE__*/react.css("font-size:", designSystem.designTokens.fontSize30, ";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:", designSystem.designTokens.spacing30, ";}", getBottomBorderStyles('transparent'), ";" + ("" ), "" ), isActive && /*#__PURE__*/react.css(getBottomBorderStyles(designSystem.designTokens.colorPrimary), " & h3{color:", designTokens.fontColorForTabLabelWhenActive, "!important;}" + ("" ), "" ), isDisabled && _ref$8, !isActive && !isDisabled && /*#__PURE__*/react.css(":hover,:focus,:active{& h3{color:", designTokens.fontColorForTabLabelWhenActive, "!important;}}" + ("" ), "" )];
118
118
 
119
+ const _excluded$k = ["isDisabled", "exactPathMatch"];
119
120
  function ownKeys$8(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
120
121
  function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$8(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$8(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
121
122
  const pathWithoutSearch$1 = path => typeof path === 'string' ? path.split('?')[0] : path.pathname;
@@ -134,21 +135,28 @@ const TabLabel = _ref => {
134
135
  children: children
135
136
  });
136
137
  };
137
- const TabHeader = props => {
138
+ const TabHeader = _ref2 => {
139
+ let _ref2$isDisabled = _ref2.isDisabled,
140
+ isDisabled = _ref2$isDisabled === void 0 ? false : _ref2$isDisabled,
141
+ _ref2$exactPathMatch = _ref2.exactPathMatch,
142
+ exactPathMatch = _ref2$exactPathMatch === void 0 ? false : _ref2$exactPathMatch,
143
+ props = _objectWithoutProperties(_ref2, _excluded$k);
138
144
  const intl = reactIntl.useIntl();
139
145
  const location = reactRouterDom.useLocation();
140
146
  const isActive = Boolean(reactRouterDom.matchPath(location.pathname, {
141
147
  // strip the search, otherwise the path won't match
142
148
  path: pathWithoutSearch$1(props.to),
143
- exact: props.exactPathMatch,
149
+ exact: exactPathMatch,
144
150
  strict: false
145
151
  }));
146
- const isDisabled = props.isDisabled;
147
152
  let label = props.label;
148
153
  if (props.intlMessage) {
149
154
  label = intl.formatMessage(props.intlMessage);
150
155
  }
151
- warnIfMissingContent(props);
156
+ warnIfMissingContent(_objectSpread$8({
157
+ exactPathMatch,
158
+ isDisabled
159
+ }, props));
152
160
  return jsxRuntime.jsx(reactRouterDom.Link, _objectSpread$8(_objectSpread$8({
153
161
  role: "tab",
154
162
  "aria-selected": isActive,
@@ -162,11 +170,6 @@ const TabHeader = props => {
162
170
  };
163
171
  TabHeader.propTypes = {};
164
172
  TabHeader.displayName = 'TabHeader';
165
- const defaultProps$i = {
166
- isDisabled: false,
167
- exactPathMatch: false
168
- };
169
- TabHeader.defaultProps = defaultProps$i;
170
173
 
171
174
  const getConstraintForGridStyle = size => {
172
175
  switch (size) {
@@ -207,6 +210,7 @@ const getOverlayStyles$1 = props => /*#__PURE__*/react.css("display:flex;positio
207
210
  // Use `!important` to overwrite the default value assigned by the Stacking Layer System.
208
211
  `${props.zIndex} !important` : 'auto', ";top:0;width:100%;height:100%;background-color:rgba(32, 62, 72, 0.5);opacity:1;" + ("" ), "" );
209
212
 
213
+ const _excluded$j = ["size", "getParentSelector"];
210
214
  function ownKeys$7(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
211
215
  function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$7(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$7(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
212
216
  const getDefaultParentSelector$1 = () => document.querySelector(`#${constants.PORTALS_CONTAINER_ID}`);
@@ -217,14 +221,6 @@ jsxRuntime.jsx("div", _objectSpread$7(_objectSpread$7({}, props), {}, {
217
221
  "data-role": "dialog-overlay",
218
222
  children: contentElement
219
223
  }));
220
- const defaultProps$h = {
221
- // TODO: t-shirt sizes are deprecated but we need to keep using them for
222
- // backwards compatibility and to help with styling migration
223
- // After the migration is done, we should change this default value to 13.
224
- // t-shirt sizes then can be removed in a next breaking change release
225
- size: 'l',
226
- getParentSelector: getDefaultParentSelector$1
227
- };
228
224
  const GridArea = /*#__PURE__*/_styled__default["default"]("div", {
229
225
  target: "elx55gk0"
230
226
  } )("grid-area:", props => props.name, ";" + ("" ));
@@ -236,21 +232,30 @@ var _ref2$3 = {
236
232
  name: "1187q51",
237
233
  styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;overflow:hidden"
238
234
  } ;
239
- const DialogContainer = props => {
235
+ const DialogContainer = _ref3 => {
236
+ let _ref3$size = _ref3.size,
237
+ size = _ref3$size === void 0 ? 13 : _ref3$size,
238
+ _ref3$getParentSelect = _ref3.getParentSelector,
239
+ getParentSelector = _ref3$getParentSelect === void 0 ? getDefaultParentSelector$1 : _ref3$getParentSelect,
240
+ props = _objectWithoutProperties(_ref3, _excluded$j);
240
241
  utils.useWarning(typeof props.title === 'string' || typeof props.title !== 'string' && Boolean(props['aria-label']), 'app-kit/DialogHeader: "aria-label" prop is required when the "title" prop is not a string.');
241
242
  return jsxRuntime.jsx(react.ClassNames, {
242
- children: _ref3 => {
243
- let makeClassName = _ref3.css;
243
+ children: _ref4 => {
244
+ let makeClassName = _ref4.css;
244
245
  return jsxRuntime.jsxs(Modal__default["default"], {
245
246
  isOpen: props.isOpen,
246
247
  onRequestClose: props.onClose,
247
248
  shouldCloseOnOverlayClick: Boolean(props.onClose),
248
249
  shouldCloseOnEsc: Boolean(props.onClose),
249
250
  overlayElement: getOverlayElement$1,
250
- overlayClassName: makeClassName(getOverlayStyles$1(props)),
251
- className: makeClassName(getModalContentStyles(props)),
251
+ overlayClassName: makeClassName(getOverlayStyles$1(_objectSpread$7({
252
+ size
253
+ }, props))),
254
+ className: makeClassName(getModalContentStyles(_objectSpread$7({
255
+ size
256
+ }, props))),
252
257
  contentLabel: typeof props.title === 'string' ? props.title : props['aria-label'],
253
- parentSelector: props.getParentSelector,
258
+ parentSelector: getParentSelector,
254
259
  ariaHideApp: false,
255
260
  children: [jsxRuntime.jsx(GridArea, {
256
261
  name: "top"
@@ -280,7 +285,6 @@ const DialogContainer = props => {
280
285
  };
281
286
  DialogContainer.propTypes = {};
282
287
  DialogContainer.displayName = 'DialogContainer';
283
- DialogContainer.defaultProps = defaultProps$h;
284
288
 
285
289
  // The overflow should be "auto", to make the container scrollable
286
290
  const DialogContent = /*#__PURE__*/_styled__default["default"]("div", {
@@ -350,15 +354,18 @@ function filterDataAttributes(obj) {
350
354
  return omitBy__default["default"](obj, (_value, key) => !_startsWithInstanceProperty__default["default"](key).call(key, 'data-'));
351
355
  }
352
356
 
357
+ const _excluded$i = ["isPrimaryButtonDisabled", "dataAttributesPrimaryButton", "dataAttributesSecondaryButton"];
353
358
  function ownKeys$6(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
354
359
  function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$6(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$6(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
355
- const defaultProps$g = {
356
- isPrimaryButtonDisabled: false,
357
- dataAttributesPrimaryButton: {},
358
- dataAttributesSecondaryButton: {}
359
- };
360
360
  const getFormattedLabel = (label, intl) => typeof label === 'string' ? label : intl.formatMessage(label);
361
- const DialogFooter = props => {
361
+ const DialogFooter = _ref => {
362
+ let _ref$isPrimaryButtonD = _ref.isPrimaryButtonDisabled,
363
+ isPrimaryButtonDisabled = _ref$isPrimaryButtonD === void 0 ? false : _ref$isPrimaryButtonD,
364
+ _ref$dataAttributesPr = _ref.dataAttributesPrimaryButton,
365
+ dataAttributesPrimaryButton = _ref$dataAttributesPr === void 0 ? {} : _ref$dataAttributesPr,
366
+ _ref$dataAttributesSe = _ref.dataAttributesSecondaryButton,
367
+ dataAttributesSecondaryButton = _ref$dataAttributesSe === void 0 ? {} : _ref$dataAttributesSe,
368
+ props = _objectWithoutProperties(_ref, _excluded$i);
362
369
  const intl = reactIntl.useIntl();
363
370
  return jsxRuntime.jsx("div", {
364
371
  css: /*#__PURE__*/react.css("margin-top:", designSystem.designTokens.spacing50, ";" + ("" ), "" ),
@@ -375,49 +382,51 @@ const DialogFooter = props => {
375
382
  label: getFormattedLabel(props.labelSecondary, intl),
376
383
  onClick: props.onCancel,
377
384
  iconLeft: props.iconLeftSecondaryButton
378
- }, filterDataAttributes(props.dataAttributesSecondaryButton))), jsxRuntime.jsx(PrimaryButton__default["default"], _objectSpread$6({
385
+ }, filterDataAttributes(dataAttributesSecondaryButton))), jsxRuntime.jsx(PrimaryButton__default["default"], _objectSpread$6({
379
386
  label: getFormattedLabel(props.labelPrimary, intl),
380
387
  onClick: props.onConfirm,
381
- isDisabled: props.isPrimaryButtonDisabled
382
- }, filterDataAttributes(props.dataAttributesPrimaryButton)))]
388
+ isDisabled: isPrimaryButtonDisabled
389
+ }, filterDataAttributes(dataAttributesPrimaryButton)))]
383
390
  })]
384
391
  })
385
392
  });
386
393
  };
387
394
  DialogFooter.propTypes = {};
388
395
  DialogFooter.displayName = 'DialogFooter';
389
- DialogFooter.defaultProps = defaultProps$g;
390
396
 
391
- const defaultProps$f = {
392
- labelSecondary: i18n.sharedMessages.cancel,
393
- labelPrimary: i18n.sharedMessages.confirm
394
- };
395
- const ConfirmationDialog = props => jsxRuntime.jsxs(DialogContainer, {
396
- isOpen: props.isOpen,
397
- onClose: props.onClose,
398
- size: props.size,
399
- zIndex: props.zIndex,
400
- title: props.title,
401
- "aria-label": props['aria-label'],
402
- getParentSelector: props.getParentSelector,
403
- children: [jsxRuntime.jsx(DialogHeader, {
397
+ const _excluded$h = ["labelSecondary", "labelPrimary"];
398
+ const ConfirmationDialog = _ref => {
399
+ let _ref$labelSecondary = _ref.labelSecondary,
400
+ labelSecondary = _ref$labelSecondary === void 0 ? i18n.sharedMessages.cancel : _ref$labelSecondary,
401
+ _ref$labelPrimary = _ref.labelPrimary,
402
+ labelPrimary = _ref$labelPrimary === void 0 ? i18n.sharedMessages.confirm : _ref$labelPrimary,
403
+ props = _objectWithoutProperties(_ref, _excluded$h);
404
+ return jsxRuntime.jsxs(DialogContainer, {
405
+ isOpen: props.isOpen,
406
+ onClose: props.onClose,
407
+ size: props.size,
408
+ zIndex: props.zIndex,
404
409
  title: props.title,
405
- onClose: props.onClose
406
- }), jsxRuntime.jsx(DialogContent, {
407
- children: props.children
408
- }), jsxRuntime.jsx(DialogFooter, {
409
- labelSecondary: props.labelSecondary,
410
- labelPrimary: props.labelPrimary,
411
- isPrimaryButtonDisabled: props.isPrimaryButtonDisabled,
412
- onCancel: props.onCancel,
413
- onConfirm: props.onConfirm,
414
- dataAttributesSecondaryButton: props.dataAttributesSecondaryButton,
415
- dataAttributesPrimaryButton: props.dataAttributesPrimaryButton
416
- })]
417
- });
410
+ "aria-label": props['aria-label'],
411
+ getParentSelector: props.getParentSelector,
412
+ children: [jsxRuntime.jsx(DialogHeader, {
413
+ title: props.title,
414
+ onClose: props.onClose
415
+ }), jsxRuntime.jsx(DialogContent, {
416
+ children: props.children
417
+ }), jsxRuntime.jsx(DialogFooter, {
418
+ labelSecondary: labelSecondary,
419
+ labelPrimary: labelPrimary,
420
+ isPrimaryButtonDisabled: props.isPrimaryButtonDisabled,
421
+ onCancel: props.onCancel,
422
+ onConfirm: props.onConfirm,
423
+ dataAttributesSecondaryButton: props.dataAttributesSecondaryButton,
424
+ dataAttributesPrimaryButton: props.dataAttributesPrimaryButton
425
+ })]
426
+ });
427
+ };
418
428
  ConfirmationDialog.propTypes = {};
419
429
  ConfirmationDialog.displayName = 'ConfirmationDialog';
420
- ConfirmationDialog.defaultProps = defaultProps$f;
421
430
  // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
422
431
  // The Intl messages can be used for button labels.
423
432
  ConfirmationDialog.Intl = i18n.sharedMessages;
@@ -425,38 +434,41 @@ ConfirmationDialog.Intl = i18n.sharedMessages;
425
434
  // as the default dialog title.
426
435
  ConfirmationDialog.TextTitle = TextTitle;
427
436
 
428
- const defaultProps$e = {
429
- labelSecondary: i18n.sharedMessages.cancel,
430
- labelPrimary: i18n.sharedMessages.save
431
- };
432
- const FormDialog = props => jsxRuntime.jsxs(DialogContainer, {
433
- isOpen: props.isOpen,
434
- onClose: props.onClose,
435
- size: props.size,
436
- zIndex: props.zIndex,
437
- title: props.title,
438
- "aria-label": props['aria-label'],
439
- getParentSelector: props.getParentSelector,
440
- children: [jsxRuntime.jsx(DialogHeader, {
437
+ const _excluded$g = ["labelSecondary", "labelPrimary"];
438
+ const FormDialog = _ref => {
439
+ let _ref$labelSecondary = _ref.labelSecondary,
440
+ labelSecondary = _ref$labelSecondary === void 0 ? i18n.sharedMessages.cancel : _ref$labelSecondary,
441
+ _ref$labelPrimary = _ref.labelPrimary,
442
+ labelPrimary = _ref$labelPrimary === void 0 ? i18n.sharedMessages.save : _ref$labelPrimary,
443
+ props = _objectWithoutProperties(_ref, _excluded$g);
444
+ return jsxRuntime.jsxs(DialogContainer, {
445
+ isOpen: props.isOpen,
446
+ onClose: props.onClose,
447
+ size: props.size,
448
+ zIndex: props.zIndex,
441
449
  title: props.title,
442
- onClose: props.onClose
443
- }), jsxRuntime.jsx(DialogContent, {
444
- children: props.children
445
- }), jsxRuntime.jsx(DialogFooter, {
446
- labelSecondary: props.labelSecondary,
447
- labelPrimary: props.labelPrimary,
448
- isPrimaryButtonDisabled: props.isPrimaryButtonDisabled,
449
- onCancel: props.onSecondaryButtonClick,
450
- onConfirm: props.onPrimaryButtonClick,
451
- dataAttributesSecondaryButton: props.dataAttributesSecondaryButton,
452
- dataAttributesPrimaryButton: props.dataAttributesPrimaryButton,
453
- iconLeftSecondaryButton: props.iconLeftSecondaryButton,
454
- footerContent: props.footerContent
455
- })]
456
- });
450
+ "aria-label": props['aria-label'],
451
+ getParentSelector: props.getParentSelector,
452
+ children: [jsxRuntime.jsx(DialogHeader, {
453
+ title: props.title,
454
+ onClose: props.onClose
455
+ }), jsxRuntime.jsx(DialogContent, {
456
+ children: props.children
457
+ }), jsxRuntime.jsx(DialogFooter, {
458
+ labelSecondary: labelSecondary,
459
+ labelPrimary: labelPrimary,
460
+ isPrimaryButtonDisabled: props.isPrimaryButtonDisabled,
461
+ onCancel: props.onSecondaryButtonClick,
462
+ onConfirm: props.onPrimaryButtonClick,
463
+ dataAttributesSecondaryButton: props.dataAttributesSecondaryButton,
464
+ dataAttributesPrimaryButton: props.dataAttributesPrimaryButton,
465
+ iconLeftSecondaryButton: props.iconLeftSecondaryButton,
466
+ footerContent: props.footerContent
467
+ })]
468
+ });
469
+ };
457
470
  FormDialog.propTypes = {};
458
471
  FormDialog.displayName = 'FormDialog';
459
- FormDialog.defaultProps = defaultProps$e;
460
472
  // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
461
473
  // The Intl messages can be used for button labels.
462
474
  FormDialog.Intl = i18n.sharedMessages;
@@ -466,15 +478,16 @@ FormDialog.TextTitle = TextTitle;
466
478
 
467
479
  const messages$5 = reactIntl.defineMessages({
468
480
  back: {
469
- id: 'Components.ModalPage.TopBar.Back',
470
- defaultMessage: 'Go Back'
481
+ id: "Components.ModalPage.TopBar.Back",
482
+ defaultMessage: "Go Back"
471
483
  },
472
484
  close: {
473
- id: 'Components.ModalPage.TopBar.Close',
474
- defaultMessage: 'Close Modal Page'
485
+ id: "Components.ModalPage.TopBar.Close",
486
+ defaultMessage: "Close Modal Page"
475
487
  }
476
488
  });
477
489
 
490
+ const _excluded$f = ["color", "previousPathLabel", "hidePathLabel"];
478
491
  // Component to have a larger clickable surface
479
492
  var _ref2$2 = {
480
493
  name: "1rxhroq",
@@ -491,24 +504,25 @@ const LargeIconWrapper = props => jsxRuntime.jsx("span", {
491
504
  // However, we need to explicitly define this otherwise the prop-types babel plugin
492
505
  // does not recognize the object shape.
493
506
  LargeIconWrapper.propTypes = {};
494
- const defaultProps$d = {
495
- color: 'surface',
496
- previousPathLabel: messages$5.back,
497
- hidePathLabel: false
498
- };
499
507
  var _ref$6 = {
500
508
  name: "uvw8rn",
501
509
  styles: "display:flex;overflow:hidden;button:first-of-type svg{height:12px!important;width:12px!important;}"
502
510
  } ;
503
- const ModalPageTopBar = props => {
511
+ const ModalPageTopBar = _ref3 => {
512
+ _ref3.color;
513
+ let _ref3$previousPathLab = _ref3.previousPathLabel,
514
+ previousPathLabel = _ref3$previousPathLab === void 0 ? messages$5.back : _ref3$previousPathLab,
515
+ _ref3$hidePathLabel = _ref3.hidePathLabel,
516
+ hidePathLabel = _ref3$hidePathLabel === void 0 ? false : _ref3$hidePathLabel,
517
+ props = _objectWithoutProperties(_ref3, _excluded$f);
504
518
  const intl = reactIntl.useIntl();
505
519
  return jsxRuntime.jsxs("div", {
506
520
  css: /*#__PURE__*/react.css("position:relative;display:flex;align-items:center;justify-content:space-between;padding:", designSystem.designTokens.spacing40, " ", designSystem.designTokens.spacing55, " 0;background-color:", designSystem.designTokens.colorSurface, ";border-bottom:1px solid ", designSystem.designTokens.colorSurface, ";& *+*{margin-left:", designSystem.designTokens.spacingS, ";}p{font-size:12px!important;}" + ("" ), "" ),
507
521
  children: [jsxRuntime.jsxs("div", {
508
522
  css: _ref$6,
509
- children: [!props.hidePathLabel && jsxRuntime.jsx(FlatButton__default["default"], {
523
+ children: [!hidePathLabel && jsxRuntime.jsx(FlatButton__default["default"], {
510
524
  tone: "primary",
511
- label: typeof props.previousPathLabel === 'string' ? props.previousPathLabel : intl.formatMessage(props.previousPathLabel),
525
+ label: typeof previousPathLabel === 'string' ? previousPathLabel : intl.formatMessage(previousPathLabel),
512
526
  icon: jsxRuntime.jsx(icons.AngleLeftIcon, {
513
527
  size: "medium",
514
528
  color: "primary"
@@ -537,7 +551,6 @@ const ModalPageTopBar = props => {
537
551
  };
538
552
  ModalPageTopBar.propTypes = {};
539
553
  ModalPageTopBar.displayName = 'ModalPageTopBar';
540
- ModalPageTopBar.defaultProps = defaultProps$d;
541
554
 
542
555
  const stylesBySize = {
543
556
  '10': {
@@ -581,6 +594,7 @@ var _ref$5 = {
581
594
  } ;
582
595
  const getBeforeCloseOverlayAnimation = () => _ref$5;
583
596
 
597
+ const _excluded$e = ["size", "getParentSelector", "shouldDelayOnClose"];
584
598
  function ownKeys$5(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
585
599
  function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$5(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$5(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
586
600
  const getDefaultParentSelector = () => document.querySelector(`#${constants.PORTALS_CONTAINER_ID}`);
@@ -596,12 +610,14 @@ jsxRuntime.jsx("div", _objectSpread$5(_objectSpread$5({}, props), {}, {
596
610
  // However, we need to explicitly define this otherwise the prop-types babel plugin
597
611
  // does not recognize the object shape.
598
612
 
599
- const defaultProps$c = {
600
- size: 'scale',
601
- getParentSelector: getDefaultParentSelector,
602
- shouldDelayOnClose: true
603
- };
604
- const ModalPage = props => {
613
+ const ModalPage = _ref => {
614
+ let _ref$size = _ref.size,
615
+ size = _ref$size === void 0 ? 'scale' : _ref$size,
616
+ _ref$getParentSelecto = _ref.getParentSelector,
617
+ getParentSelector = _ref$getParentSelecto === void 0 ? getDefaultParentSelector : _ref$getParentSelecto,
618
+ _ref$shouldDelayOnClo = _ref.shouldDelayOnClose,
619
+ shouldDelayOnClose = _ref$shouldDelayOnClo === void 0 ? true : _ref$shouldDelayOnClo,
620
+ props = _objectWithoutProperties(_ref, _excluded$e);
605
621
  const _useState = react$1.useState(false),
606
622
  _useState2 = _slicedToArray(_useState, 2),
607
623
  forceClose = _useState2[0],
@@ -616,9 +632,9 @@ const ModalPage = props => {
616
632
  };
617
633
  }, [props.isOpen]);
618
634
  const onClose = props.onClose;
619
- const TRANSITION_DURATION = stylesBySize[props.size].transitionTime;
635
+ const TRANSITION_DURATION = stylesBySize[size].transitionTime;
620
636
  const handleClose = react$1.useCallback(event => {
621
- if (props.shouldDelayOnClose) {
637
+ if (shouldDelayOnClose) {
622
638
  // In this case we want the closing animation to be shown
623
639
  // and therefore we need wait for it to be completed
624
640
  // before calling `onClose`.
@@ -629,10 +645,10 @@ const ModalPage = props => {
629
645
  return;
630
646
  }
631
647
  onClose && onClose(event);
632
- }, [onClose, props.shouldDelayOnClose, TRANSITION_DURATION]);
648
+ }, [onClose, shouldDelayOnClose, TRANSITION_DURATION]);
633
649
  return jsxRuntime.jsx(react.ClassNames, {
634
- children: _ref => {
635
- let makeClassName = _ref.css;
650
+ children: _ref2 => {
651
+ let makeClassName = _ref2.css;
636
652
  return jsxRuntime.jsxs(Modal__default["default"], {
637
653
  isOpen: forceClose === true ? false : props.isOpen,
638
654
  onRequestClose: handleClose,
@@ -640,17 +656,23 @@ const ModalPage = props => {
640
656
  shouldCloseOnEsc: Boolean(props.onClose),
641
657
  overlayElement: getOverlayElement,
642
658
  overlayClassName: {
643
- base: makeClassName(getOverlayStyles(props)),
659
+ base: makeClassName(getOverlayStyles(_objectSpread$5({
660
+ size
661
+ }, props))),
644
662
  afterOpen: makeClassName(getAfterOpenOverlayAnimation()),
645
663
  beforeClose: makeClassName(getBeforeCloseOverlayAnimation())
646
664
  },
647
665
  className: {
648
- base: makeClassName(getContainerStyles(props)),
666
+ base: makeClassName(getContainerStyles(_objectSpread$5({
667
+ size
668
+ }, props))),
649
669
  afterOpen: typeof props.afterOpenStyles === 'string' ? props.afterOpenStyles : makeClassName(props.afterOpenStyles ?? getAfterOpenContainerAnimation()),
650
- beforeClose: makeClassName(getBeforeCloseContainerAnimation(props))
670
+ beforeClose: makeClassName(getBeforeCloseContainerAnimation(_objectSpread$5({
671
+ size
672
+ }, props)))
651
673
  },
652
674
  contentLabel: props.title,
653
- parentSelector: props.getParentSelector,
675
+ parentSelector: getParentSelector,
654
676
  ariaHideApp: false
655
677
  // Adjust this value if the (beforeClose) animation duration is changed
656
678
  ,
@@ -674,12 +696,11 @@ const ModalPage = props => {
674
696
  };
675
697
  ModalPage.propTypes = {};
676
698
  ModalPage.displayName = 'ModalPage';
677
- ModalPage.defaultProps = defaultProps$c;
678
699
 
679
700
  const messages$4 = reactIntl.defineMessages({
680
701
  loadError: {
681
- id: 'CustomViewLoader.error.load',
682
- defaultMessage: 'We could not load the Custom View. Please contact your administrator to check its configuration.'
702
+ id: "CustomViewLoader.error.load",
703
+ defaultMessage: "We could not load the Custom View. Please contact your administrator to check its configuration."
683
704
  }
684
705
  });
685
706
 
@@ -798,8 +819,8 @@ CustomViewLoader.propTypes = {};
798
819
 
799
820
  var messages$3 = reactIntl.defineMessages({
800
821
  title: {
801
- id: 'CustomViewsSelector.title',
802
- defaultMessage: 'Custom Views:'
822
+ id: "CustomViewsSelector.title",
823
+ defaultMessage: "Custom Views:"
803
824
  }
804
825
  });
805
826
 
@@ -941,10 +962,8 @@ const CustomViewSelectorOrNothing = props => {
941
962
  };
942
963
  CustomViewSelectorOrNothing.propTypes = {};
943
964
 
944
- const defaultProps$b = {
945
- titleSize: 'small',
946
- truncate: false
947
- };
965
+ const _excluded$d = ["truncate"],
966
+ _excluded2$1 = ["titleSize", "truncate"];
948
967
  const SubtitleWrapper = /*#__PURE__*/_styled__default["default"]("div", {
949
968
  target: "epaiodd0"
950
969
  } )("margin-top:", designSystem.designTokens.spacing20, ";" + ("" ));
@@ -973,7 +992,10 @@ const Title = props => {
973
992
  });
974
993
  }
975
994
  };
976
- const Subtitle = props => {
995
+ const Subtitle = _ref2 => {
996
+ let _ref2$truncate = _ref2.truncate,
997
+ truncate = _ref2$truncate === void 0 ? false : _ref2$truncate,
998
+ props = _objectWithoutProperties(_ref2, _excluded$d);
977
999
  if (!props.subtitle) {
978
1000
  return null;
979
1001
  }
@@ -985,34 +1007,37 @@ const Subtitle = props => {
985
1007
  return jsxRuntime.jsx(SubtitleWrapper, {
986
1008
  children: jsxRuntime.jsx(Text__default["default"].Body, {
987
1009
  title: typeof props.subtitle === 'string' ? props.subtitle : undefined,
988
- truncate: props.truncate,
1010
+ truncate: truncate,
989
1011
  tone: "secondary",
990
1012
  children: props.subtitle
991
1013
  })
992
1014
  });
993
1015
  };
994
1016
  Subtitle.propTypes = {};
995
- Subtitle.defaultProps = {
996
- truncate: false
997
- };
998
1017
  var _ref$4 = {
999
1018
  name: "d3v9zr",
1000
1019
  styles: "overflow:hidden"
1001
1020
  } ;
1002
- const PageHeaderTitle = props => jsxRuntime.jsxs("div", {
1003
- css: _ref$4,
1004
- children: [jsxRuntime.jsx(Title, {
1005
- title: props.title,
1006
- titleSize: props.titleSize,
1007
- truncate: props.truncate
1008
- }), jsxRuntime.jsx(Subtitle, {
1009
- subtitle: props.subtitle,
1010
- truncate: props.truncate
1011
- })]
1012
- });
1021
+ const PageHeaderTitle = _ref3 => {
1022
+ let _ref3$titleSize = _ref3.titleSize,
1023
+ titleSize = _ref3$titleSize === void 0 ? 'small' : _ref3$titleSize,
1024
+ _ref3$truncate = _ref3.truncate,
1025
+ truncate = _ref3$truncate === void 0 ? false : _ref3$truncate,
1026
+ props = _objectWithoutProperties(_ref3, _excluded2$1);
1027
+ return jsxRuntime.jsxs("div", {
1028
+ css: _ref$4,
1029
+ children: [jsxRuntime.jsx(Title, {
1030
+ title: props.title,
1031
+ titleSize: titleSize,
1032
+ truncate: truncate
1033
+ }), jsxRuntime.jsx(Subtitle, {
1034
+ subtitle: props.subtitle,
1035
+ truncate: truncate
1036
+ })]
1037
+ });
1038
+ };
1013
1039
  PageHeaderTitle.propTypes = {};
1014
1040
  PageHeaderTitle.displayName = 'PageHeaderTitle';
1015
- PageHeaderTitle.defaultProps = defaultProps$b;
1016
1041
 
1017
1042
  const PageHeader = props => {
1018
1043
  return jsxRuntime.jsxs("div", {
@@ -1068,63 +1093,69 @@ const InfoModalPage = props => jsxRuntime.jsxs(ModalPage, {
1068
1093
  InfoModalPage.propTypes = {};
1069
1094
  InfoModalPage.displayName = 'InfoModalPage';
1070
1095
 
1096
+ const _excluded$c = ["label", "isDisabled", "dataAttributes"],
1097
+ _excluded2 = ["label", "isDisabled", "dataAttributes"],
1098
+ _excluded3 = ["label", "isDisabled", "dataAttributes"];
1071
1099
  function ownKeys$3(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1072
1100
  function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1073
- const primaryDefaultProps = {
1074
- label: i18n.sharedMessages.confirm,
1075
- isDisabled: false,
1076
- dataAttributes: {}
1077
- };
1078
1101
  const useFormattedLabel = label => {
1079
1102
  const intl = reactIntl.useIntl();
1080
1103
  return typeof label === 'string' ? label : intl.formatMessage(label);
1081
1104
  };
1082
- const FormPrimaryButton = props => {
1083
- const label = useFormattedLabel(props.label);
1105
+ const FormPrimaryButton = _ref => {
1106
+ let _ref$label = _ref.label,
1107
+ label = _ref$label === void 0 ? i18n.sharedMessages.confirm : _ref$label,
1108
+ _ref$isDisabled = _ref.isDisabled,
1109
+ isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
1110
+ _ref$dataAttributes = _ref.dataAttributes,
1111
+ dataAttributes = _ref$dataAttributes === void 0 ? {} : _ref$dataAttributes,
1112
+ props = _objectWithoutProperties(_ref, _excluded$c);
1113
+ const _label = useFormattedLabel(label);
1084
1114
  return jsxRuntime.jsx(PrimaryButton__default["default"], _objectSpread$3({
1085
- label: label,
1115
+ label: _label,
1086
1116
  onClick: props.onClick,
1087
- isDisabled: props.isDisabled,
1117
+ isDisabled: isDisabled,
1088
1118
  iconLeft: props.iconLeft
1089
- }, filterDataAttributes(props.dataAttributes)));
1119
+ }, filterDataAttributes(dataAttributes)));
1090
1120
  };
1091
1121
  FormPrimaryButton.propTypes = {};
1092
1122
  FormPrimaryButton.displayName = 'FormPrimaryButton';
1093
- FormPrimaryButton.defaultProps = primaryDefaultProps;
1094
- const secondaryDefaultProps = {
1095
- label: i18n.sharedMessages.cancel,
1096
- isDisabled: false,
1097
- dataAttributes: {}
1098
- };
1099
- const FormSecondaryButton = props => {
1100
- const label = useFormattedLabel(props.label);
1123
+ const FormSecondaryButton = _ref2 => {
1124
+ let _ref2$label = _ref2.label,
1125
+ label = _ref2$label === void 0 ? i18n.sharedMessages.cancel : _ref2$label,
1126
+ _ref2$isDisabled = _ref2.isDisabled,
1127
+ isDisabled = _ref2$isDisabled === void 0 ? false : _ref2$isDisabled,
1128
+ _ref2$dataAttributes = _ref2.dataAttributes,
1129
+ dataAttributes = _ref2$dataAttributes === void 0 ? {} : _ref2$dataAttributes,
1130
+ props = _objectWithoutProperties(_ref2, _excluded2);
1131
+ const _label = useFormattedLabel(label);
1101
1132
  return jsxRuntime.jsx(SecondaryButton__default["default"], _objectSpread$3({
1102
- label: label,
1133
+ label: _label,
1103
1134
  onClick: props.onClick,
1104
- isDisabled: props.isDisabled,
1135
+ isDisabled: isDisabled,
1105
1136
  iconLeft: props.iconLeft
1106
- }, filterDataAttributes(props.dataAttributes)));
1137
+ }, filterDataAttributes(dataAttributes)));
1107
1138
  };
1108
1139
  FormSecondaryButton.propTypes = {};
1109
1140
  FormSecondaryButton.displayName = 'FormSecondaryButton';
1110
- FormSecondaryButton.defaultProps = secondaryDefaultProps;
1111
- const deleteDefaultProps = {
1112
- label: i18n.sharedMessages.delete,
1113
- isDisabled: false,
1114
- dataAttributes: {}
1115
- };
1116
- const FormDeleteButton = props => {
1117
- const label = useFormattedLabel(props.label);
1141
+ const FormDeleteButton = _ref3 => {
1142
+ let _ref3$label = _ref3.label,
1143
+ label = _ref3$label === void 0 ? i18n.sharedMessages.delete : _ref3$label,
1144
+ _ref3$isDisabled = _ref3.isDisabled,
1145
+ isDisabled = _ref3$isDisabled === void 0 ? false : _ref3$isDisabled,
1146
+ _ref3$dataAttributes = _ref3.dataAttributes,
1147
+ dataAttributes = _ref3$dataAttributes === void 0 ? {} : _ref3$dataAttributes,
1148
+ props = _objectWithoutProperties(_ref3, _excluded3);
1149
+ const _label = useFormattedLabel(label);
1118
1150
  return jsxRuntime.jsx(IconButton__default["default"], _objectSpread$3({
1119
1151
  icon: jsxRuntime.jsx(icons.BinLinearIcon, {}),
1120
- label: label,
1152
+ label: _label,
1121
1153
  onClick: props.onClick,
1122
- isDisabled: props.isDisabled
1123
- }, filterDataAttributes(props.dataAttributes)));
1154
+ isDisabled: isDisabled
1155
+ }, filterDataAttributes(dataAttributes)));
1124
1156
  };
1125
1157
  FormDeleteButton.propTypes = {};
1126
1158
  FormDeleteButton.displayName = 'FormDeleteButton';
1127
- FormDeleteButton.defaultProps = deleteDefaultProps;
1128
1159
 
1129
1160
  const CustomFormModalPage = props => jsxRuntime.jsxs(ModalPage, {
1130
1161
  title: props.title,
@@ -1159,41 +1190,43 @@ CustomFormModalPage.FormDeleteButton = FormDeleteButton;
1159
1190
  // The Intl messages can be used for button labels.
1160
1191
  CustomFormModalPage.Intl = i18n.sharedMessages;
1161
1192
 
1162
- const defaultProps$a = {
1163
- hideControls: false
1193
+ const _excluded$b = ["hideControls"];
1194
+ const FormModalPage = _ref => {
1195
+ let _ref$hideControls = _ref.hideControls,
1196
+ hideControls = _ref$hideControls === void 0 ? false : _ref$hideControls,
1197
+ props = _objectWithoutProperties(_ref, _excluded$b);
1198
+ return jsxRuntime.jsx(CustomFormModalPage, {
1199
+ title: props.title,
1200
+ subtitle: props.subtitle,
1201
+ isOpen: props.isOpen,
1202
+ zIndex: props.zIndex,
1203
+ onClose: props.onClose,
1204
+ topBarCurrentPathLabel: props.topBarCurrentPathLabel,
1205
+ topBarPreviousPathLabel: props.topBarPreviousPathLabel,
1206
+ getParentSelector: props.getParentSelector,
1207
+ shouldDelayOnClose: props.shouldDelayOnClose,
1208
+ hideControls: hideControls,
1209
+ afterOpenStyles: props.afterOpenStyles,
1210
+ formControls: jsxRuntime.jsxs(jsxRuntime.Fragment, {
1211
+ children: [jsxRuntime.jsx(CustomFormModalPage.FormSecondaryButton, {
1212
+ label: props.labelSecondaryButton,
1213
+ onClick: props.onSecondaryButtonClick,
1214
+ isDisabled: props.isSecondaryButtonDisabled,
1215
+ dataAttributes: props.dataAttributesSecondaryButton,
1216
+ iconLeft: props.iconLeftSecondaryButton
1217
+ }), jsxRuntime.jsx(CustomFormModalPage.FormPrimaryButton, {
1218
+ label: props.labelPrimaryButton,
1219
+ onClick: props.onPrimaryButtonClick,
1220
+ isDisabled: props.isPrimaryButtonDisabled,
1221
+ dataAttributes: props.dataAttributesPrimaryButton
1222
+ })]
1223
+ }),
1224
+ customViewLocatorCode: props.customViewLocatorCode,
1225
+ children: props.children
1226
+ });
1164
1227
  };
1165
- const FormModalPage = props => jsxRuntime.jsx(CustomFormModalPage, {
1166
- title: props.title,
1167
- subtitle: props.subtitle,
1168
- isOpen: props.isOpen,
1169
- zIndex: props.zIndex,
1170
- onClose: props.onClose,
1171
- topBarCurrentPathLabel: props.topBarCurrentPathLabel,
1172
- topBarPreviousPathLabel: props.topBarPreviousPathLabel,
1173
- getParentSelector: props.getParentSelector,
1174
- shouldDelayOnClose: props.shouldDelayOnClose,
1175
- hideControls: props.hideControls,
1176
- afterOpenStyles: props.afterOpenStyles,
1177
- formControls: jsxRuntime.jsxs(jsxRuntime.Fragment, {
1178
- children: [jsxRuntime.jsx(CustomFormModalPage.FormSecondaryButton, {
1179
- label: props.labelSecondaryButton,
1180
- onClick: props.onSecondaryButtonClick,
1181
- isDisabled: props.isSecondaryButtonDisabled,
1182
- dataAttributes: props.dataAttributesSecondaryButton,
1183
- iconLeft: props.iconLeftSecondaryButton
1184
- }), jsxRuntime.jsx(CustomFormModalPage.FormPrimaryButton, {
1185
- label: props.labelPrimaryButton,
1186
- onClick: props.onPrimaryButtonClick,
1187
- isDisabled: props.isPrimaryButtonDisabled,
1188
- dataAttributes: props.dataAttributesPrimaryButton
1189
- })]
1190
- }),
1191
- customViewLocatorCode: props.customViewLocatorCode,
1192
- children: props.children
1193
- });
1194
1228
  FormModalPage.propTypes = {};
1195
1229
  FormModalPage.displayName = 'FormModalPage';
1196
- FormModalPage.defaultProps = defaultProps$a;
1197
1230
  // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1198
1231
  // The Intl messages can be used for button labels.
1199
1232
  FormModalPage.Intl = i18n.sharedMessages;
@@ -1243,10 +1276,11 @@ const TabularModalPageContainer = /*#__PURE__*/_styled__default["default"]("div"
1243
1276
  target: "elpldre0"
1244
1277
  } )(TabularPageContainer, "{padding:", designSystem.designTokens.spacing40, " ", designSystem.designTokens.spacing55, " 0;}" + ("" ));
1245
1278
 
1246
- const defaultProps$9 = {
1247
- hideControls: false
1248
- };
1249
- const TabularModalPage = props => {
1279
+ const _excluded$a = ["hideControls"];
1280
+ const TabularModalPage = _ref => {
1281
+ let _ref$hideControls = _ref.hideControls,
1282
+ hideControls = _ref$hideControls === void 0 ? false : _ref$hideControls,
1283
+ props = _objectWithoutProperties(_ref, _excluded$a);
1250
1284
  const _useCustomViewLocator = useCustomViewLocatorSelector(props.customViewLocatorCodes),
1251
1285
  currentCustomViewLocatorCode = _useCustomViewLocator.currentCustomViewLocatorCode;
1252
1286
  return jsxRuntime.jsxs(ModalPage, {
@@ -1270,7 +1304,7 @@ const TabularModalPage = props => {
1270
1304
  }), jsxRuntime.jsx(ControlsContainter, {
1271
1305
  tabControls: props.tabControls,
1272
1306
  formControls: jsxRuntime.jsx(FormControlsContainer, {
1273
- children: !props.hideControls && props.formControls && jsxRuntime.jsx(Spacings__default["default"].Inline, {
1307
+ children: !hideControls && props.formControls && jsxRuntime.jsx(Spacings__default["default"].Inline, {
1274
1308
  alignItems: "flex-end",
1275
1309
  children: props.formControls
1276
1310
  })
@@ -1289,7 +1323,6 @@ const TabularModalPage = props => {
1289
1323
  };
1290
1324
  TabularModalPage.propTypes = {};
1291
1325
  TabularModalPage.displayName = 'TabularModalPage';
1292
- TabularModalPage.defaultProps = defaultProps$9;
1293
1326
  // Static export of pre-configured form control buttons to easily re-use
1294
1327
  // them in the custom controls.
1295
1328
  TabularModalPage.FormPrimaryButton = FormPrimaryButton;
@@ -1299,17 +1332,18 @@ TabularModalPage.FormDeleteButton = FormDeleteButton;
1299
1332
  // The Intl messages can be used for button labels.
1300
1333
  TabularModalPage.Intl = i18n.sharedMessages;
1301
1334
 
1302
- const defaultProps$8 = {
1303
- color: 'surface',
1304
- previousPathLabel: messages$5.back
1305
- };
1306
- const PageTopBar = props => {
1335
+ const _excluded$9 = ["color", "previousPathLabel"];
1336
+ const PageTopBar = _ref => {
1337
+ _ref.color;
1338
+ let _ref$previousPathLabe = _ref.previousPathLabel,
1339
+ previousPathLabel = _ref$previousPathLabe === void 0 ? messages$5.back : _ref$previousPathLabe,
1340
+ props = _objectWithoutProperties(_ref, _excluded$9);
1307
1341
  const intl = reactIntl.useIntl();
1308
1342
  return jsxRuntime.jsx("div", {
1309
1343
  css: /*#__PURE__*/react.css("position:relative;display:flex;align-items:center;justify-content:space-between;margin-bottom:", designSystem.designTokens.spacing40, ";background-color:", designSystem.designTokens.colorSurface, ";" + ("" ), "" ),
1310
1344
  children: jsxRuntime.jsx(FlatButton__default["default"], {
1311
1345
  tone: "primary",
1312
- label: typeof props.previousPathLabel === 'string' ? props.previousPathLabel : intl.formatMessage(props.previousPathLabel),
1346
+ label: typeof previousPathLabel === 'string' ? previousPathLabel : intl.formatMessage(previousPathLabel),
1313
1347
  icon: jsxRuntime.jsx(icons.ListIcon, {
1314
1348
  size: "medium",
1315
1349
  color: "primary"
@@ -1320,8 +1354,8 @@ const PageTopBar = props => {
1320
1354
  };
1321
1355
  PageTopBar.propTypes = {};
1322
1356
  PageTopBar.displayName = 'PageTopBar';
1323
- PageTopBar.defaultProps = defaultProps$8;
1324
1357
 
1358
+ const _excluded$8 = ["hideControls"];
1325
1359
  const DetailPageContainer = /*#__PURE__*/_styled__default["default"]("div", {
1326
1360
  target: "etkdonc1"
1327
1361
  } )("background-color:", designSystem.designTokens.colorSurface, ";padding:", designTokens.paddingForDetailPageHeader, ";border-bottom:1px ", designSystem.designTokens.colorNeutral90, " solid;" + ("" ));
@@ -1334,10 +1368,10 @@ const getCustomViewsSelectorMargin = hasContentBelow => `${designSystem.designTo
1334
1368
  // However, we need to explicitly define this otherwise the prop-types babel plugin
1335
1369
  // does not recognize the object shape.
1336
1370
 
1337
- const defaultProps$7 = {
1338
- hideControls: false
1339
- };
1340
- const CustomFormDetailPage = props => {
1371
+ const CustomFormDetailPage = _ref => {
1372
+ let _ref$hideControls = _ref.hideControls,
1373
+ hideControls = _ref$hideControls === void 0 ? false : _ref$hideControls,
1374
+ props = _objectWithoutProperties(_ref, _excluded$8);
1341
1375
  return jsxRuntime.jsxs(PageWrapper, {
1342
1376
  children: [jsxRuntime.jsxs(DetailPageContainer, {
1343
1377
  children: [jsxRuntime.jsx(PageTopBar, {
@@ -1349,9 +1383,9 @@ const CustomFormDetailPage = props => {
1349
1383
  subtitle: props.subtitle,
1350
1384
  titleSize: "big"
1351
1385
  }), jsxRuntime.jsx(CustomViewSelectorOrNothing, {
1352
- margin: getCustomViewsSelectorMargin(!props.hideControls && !!props.formControls),
1386
+ margin: getCustomViewsSelectorMargin(!hideControls && !!props.formControls),
1353
1387
  customViewLocatorCode: props.customViewLocatorCode
1354
- }), !props.hideControls && props.formControls && jsxRuntime.jsx(HeaderControlsWrapper, {
1388
+ }), !hideControls && props.formControls && jsxRuntime.jsx(HeaderControlsWrapper, {
1355
1389
  children: jsxRuntime.jsx(Spacings__default["default"].Inline, {
1356
1390
  justifyContent: "flex-end",
1357
1391
  children: props.formControls
@@ -1364,7 +1398,6 @@ const CustomFormDetailPage = props => {
1364
1398
  };
1365
1399
  CustomFormDetailPage.propTypes = {};
1366
1400
  CustomFormDetailPage.displayName = 'CustomFormDetailPage';
1367
- CustomFormDetailPage.defaultProps = defaultProps$7;
1368
1401
  // Static export of pre-configured page header title component to easily
1369
1402
  // use as part of a custom title row
1370
1403
  CustomFormDetailPage.PageHeaderTitle = PageHeaderTitle;
@@ -1377,36 +1410,38 @@ CustomFormDetailPage.FormDeleteButton = FormDeleteButton;
1377
1410
  // The Intl messages can be used for button labels.
1378
1411
  CustomFormDetailPage.Intl = i18n.sharedMessages;
1379
1412
 
1380
- const defaultProps$6 = {
1381
- hideControls: false
1413
+ const _excluded$7 = ["hideControls"];
1414
+ const FormDetailPage = _ref => {
1415
+ let _ref$hideControls = _ref.hideControls,
1416
+ hideControls = _ref$hideControls === void 0 ? false : _ref$hideControls,
1417
+ props = _objectWithoutProperties(_ref, _excluded$7);
1418
+ return jsxRuntime.jsx(CustomFormDetailPage, {
1419
+ title: props.title,
1420
+ subtitle: props.subtitle,
1421
+ customTitleRow: props.customTitleRow,
1422
+ customViewLocatorCode: props.customViewLocatorCode,
1423
+ previousPathLabel: props.previousPathLabel,
1424
+ onPreviousPathClick: props.onPreviousPathClick,
1425
+ hideControls: hideControls,
1426
+ formControls: jsxRuntime.jsxs(jsxRuntime.Fragment, {
1427
+ children: [jsxRuntime.jsx(CustomFormDetailPage.FormSecondaryButton, {
1428
+ label: props.labelSecondaryButton,
1429
+ onClick: props.onSecondaryButtonClick,
1430
+ isDisabled: props.isSecondaryButtonDisabled,
1431
+ dataAttributes: props.dataAttributesSecondaryButton,
1432
+ iconLeft: props.iconLeftSecondaryButton
1433
+ }), jsxRuntime.jsx(CustomFormDetailPage.FormPrimaryButton, {
1434
+ label: props.labelPrimaryButton,
1435
+ onClick: props.onPrimaryButtonClick,
1436
+ isDisabled: props.isPrimaryButtonDisabled,
1437
+ dataAttributes: props.dataAttributesPrimaryButton
1438
+ })]
1439
+ }),
1440
+ children: props.children
1441
+ });
1382
1442
  };
1383
- const FormDetailPage = props => jsxRuntime.jsx(CustomFormDetailPage, {
1384
- title: props.title,
1385
- subtitle: props.subtitle,
1386
- customTitleRow: props.customTitleRow,
1387
- customViewLocatorCode: props.customViewLocatorCode,
1388
- previousPathLabel: props.previousPathLabel,
1389
- onPreviousPathClick: props.onPreviousPathClick,
1390
- hideControls: props.hideControls,
1391
- formControls: jsxRuntime.jsxs(jsxRuntime.Fragment, {
1392
- children: [jsxRuntime.jsx(CustomFormDetailPage.FormSecondaryButton, {
1393
- label: props.labelSecondaryButton,
1394
- onClick: props.onSecondaryButtonClick,
1395
- isDisabled: props.isSecondaryButtonDisabled,
1396
- dataAttributes: props.dataAttributesSecondaryButton,
1397
- iconLeft: props.iconLeftSecondaryButton
1398
- }), jsxRuntime.jsx(CustomFormDetailPage.FormPrimaryButton, {
1399
- label: props.labelPrimaryButton,
1400
- onClick: props.onPrimaryButtonClick,
1401
- isDisabled: props.isPrimaryButtonDisabled,
1402
- dataAttributes: props.dataAttributesPrimaryButton
1403
- })]
1404
- }),
1405
- children: props.children
1406
- });
1407
1443
  FormDetailPage.propTypes = {};
1408
1444
  FormDetailPage.displayName = 'FormDetailPage';
1409
- FormDetailPage.defaultProps = defaultProps$6;
1410
1445
  // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1411
1446
  // The Intl messages can be used for button labels.
1412
1447
  // Static export of pre-configured page header title component to easily
@@ -1431,10 +1466,11 @@ InfoDetailPage.displayName = 'InfoDetailPage';
1431
1466
  // use as part of a custom title row
1432
1467
  InfoDetailPage.PageHeaderTitle = PageHeaderTitle;
1433
1468
 
1434
- const defaultProps$5 = {
1435
- hideControls: false
1436
- };
1437
- const TabularDetailPage = props => {
1469
+ const _excluded$6 = ["hideControls"];
1470
+ const TabularDetailPage = _ref => {
1471
+ let _ref$hideControls = _ref.hideControls,
1472
+ hideControls = _ref$hideControls === void 0 ? false : _ref$hideControls,
1473
+ props = _objectWithoutProperties(_ref, _excluded$6);
1438
1474
  const _useCustomViewLocator = useCustomViewLocatorSelector(props.customViewLocatorCodes),
1439
1475
  currentCustomViewLocatorCode = _useCustomViewLocator.currentCustomViewLocatorCode;
1440
1476
  return jsxRuntime.jsxs(PageWrapper, {
@@ -1450,7 +1486,7 @@ const TabularDetailPage = props => {
1450
1486
  }), jsxRuntime.jsx(ControlsContainter, {
1451
1487
  tabControls: props.tabControls,
1452
1488
  formControls: jsxRuntime.jsx(FormControlsContainer, {
1453
- children: !props.hideControls && props.formControls && jsxRuntime.jsx(Spacings__default["default"].Inline, {
1489
+ children: !hideControls && props.formControls && jsxRuntime.jsx(Spacings__default["default"].Inline, {
1454
1490
  alignItems: "flex-end",
1455
1491
  children: props.formControls
1456
1492
  })
@@ -1468,7 +1504,6 @@ const TabularDetailPage = props => {
1468
1504
  };
1469
1505
  TabularDetailPage.propTypes = {};
1470
1506
  TabularDetailPage.displayName = 'TabularDetailPage';
1471
- TabularDetailPage.defaultProps = defaultProps$5;
1472
1507
  // Static export of pre-configured form control buttons to easily re-use
1473
1508
  // them in the custom controls.
1474
1509
  TabularDetailPage.FormPrimaryButton = FormPrimaryButton;
@@ -1480,7 +1515,7 @@ TabularDetailPage.PageHeaderTitle = PageHeaderTitle;
1480
1515
  // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1481
1516
  TabularDetailPage.Intl = i18n.sharedMessages;
1482
1517
 
1483
- const PublicPageLayout = /*#__PURE__*/react$1.lazy(() => Promise.resolve().then(function () { return require('./public-page-layout-d365f38f.cjs.prod.js' /* webpackChunkName: "public-page-layout" */); }));
1518
+ const PublicPageLayout = /*#__PURE__*/react$1.lazy(() => Promise.resolve().then(function () { return require('./public-page-layout-2326dd98.cjs.prod.js' /* webpackChunkName: "public-page-layout" */); }));
1484
1519
 
1485
1520
  const MainPageContainer = /*#__PURE__*/_styled__default["default"]("div", {
1486
1521
  target: "ev8m2jf2"
@@ -1494,8 +1529,14 @@ const MainPageContent = /*#__PURE__*/_styled__default["default"]("div", {
1494
1529
  target: "ev8m2jf0"
1495
1530
  } )("flex:1;flex-basis:0;overflow:auto;margin:", designTokens.marginForPageContent, ";" + ("" ));
1496
1531
 
1532
+ const _excluded$5 = ["hideControls", "hideDivider"];
1497
1533
  const headerRowMargin = `${designSystem.designTokens.spacing40} 0 0 0`;
1498
- const CustomFormMainPage = props => {
1534
+ const CustomFormMainPage = _ref => {
1535
+ let _ref$hideControls = _ref.hideControls,
1536
+ hideControls = _ref$hideControls === void 0 ? false : _ref$hideControls,
1537
+ _ref$hideDivider = _ref.hideDivider,
1538
+ hideDivider = _ref$hideDivider === void 0 ? false : _ref$hideDivider,
1539
+ props = _objectWithoutProperties(_ref, _excluded$5);
1499
1540
  return jsxRuntime.jsxs(PageWrapper, {
1500
1541
  children: [jsxRuntime.jsxs(MainPageContainer, {
1501
1542
  children: [props.customTitleRow || jsxRuntime.jsx(PageHeaderTitle, {
@@ -1505,13 +1546,13 @@ const CustomFormMainPage = props => {
1505
1546
  }), jsxRuntime.jsx(CustomViewSelectorOrNothing, {
1506
1547
  margin: headerRowMargin,
1507
1548
  customViewLocatorCode: props.customViewLocatorCode
1508
- }), !props.hideControls && props.formControls && jsxRuntime.jsx("div", {
1549
+ }), !hideControls && props.formControls && jsxRuntime.jsx("div", {
1509
1550
  css: /*#__PURE__*/react.css("margin:", headerRowMargin, ";" + ("" ), "" ),
1510
1551
  children: jsxRuntime.jsx(Spacings__default["default"].Inline, {
1511
1552
  justifyContent: "flex-end",
1512
1553
  children: props.formControls
1513
1554
  })
1514
- }), !props.hideDivider && jsxRuntime.jsx("div", {
1555
+ }), !hideDivider && jsxRuntime.jsx("div", {
1515
1556
  css: /*#__PURE__*/react.css("&>", Divider, "{margin:", headerRowMargin, ";}" + ("" ), "" ),
1516
1557
  children: jsxRuntime.jsx(Divider, {})
1517
1558
  })]
@@ -1521,12 +1562,7 @@ const CustomFormMainPage = props => {
1521
1562
  });
1522
1563
  };
1523
1564
  CustomFormMainPage.propTypes = {};
1524
- const defaultProps$4 = {
1525
- hideControls: false,
1526
- hideDivider: false
1527
- };
1528
1565
  CustomFormMainPage.displayName = 'CustomFormMainPage';
1529
- CustomFormMainPage.defaultProps = defaultProps$4;
1530
1566
 
1531
1567
  // Static export of pre-configured page header title component to easily
1532
1568
  // use as part of a custom title row
@@ -1542,16 +1578,17 @@ CustomFormMainPage.FormDeleteButton = FormDeleteButton;
1542
1578
  // The Intl messages can be used for button labels.
1543
1579
  CustomFormMainPage.Intl = i18n.sharedMessages;
1544
1580
 
1545
- const defaultProps$3 = {
1546
- hideControls: false
1547
- };
1548
- const FormMainPage = props => {
1581
+ const _excluded$4 = ["hideControls"];
1582
+ const FormMainPage = _ref => {
1583
+ let _ref$hideControls = _ref.hideControls,
1584
+ hideControls = _ref$hideControls === void 0 ? false : _ref$hideControls,
1585
+ props = _objectWithoutProperties(_ref, _excluded$4);
1549
1586
  return jsxRuntime.jsx(CustomFormMainPage, {
1550
1587
  title: props.title,
1551
1588
  subtitle: props.subtitle,
1552
1589
  customTitleRow: props.customTitleRow,
1553
1590
  customViewLocatorCode: props.customViewLocatorCode,
1554
- hideControls: props.hideControls,
1591
+ hideControls: hideControls,
1555
1592
  formControls: jsxRuntime.jsxs(jsxRuntime.Fragment, {
1556
1593
  children: [jsxRuntime.jsx(CustomFormMainPage.FormSecondaryButton, {
1557
1594
  label: props.labelSecondaryButton,
@@ -1571,7 +1608,6 @@ const FormMainPage = props => {
1571
1608
  };
1572
1609
  FormMainPage.propTypes = {};
1573
1610
  FormMainPage.displayName = 'FormMainPage';
1574
- FormMainPage.defaultProps = defaultProps$3;
1575
1611
 
1576
1612
  // Static export of pre-configured page header title component to easily
1577
1613
  // use as part of a custom title row
@@ -1597,10 +1633,11 @@ InfoMainPage.displayName = 'InfoMainPage';
1597
1633
  // use as part of a custom title row
1598
1634
  InfoMainPage.PageHeaderTitle = PageHeaderTitle;
1599
1635
 
1600
- const defaultProps$2 = {
1601
- hideControls: false
1602
- };
1603
- const TabularMainPage = props => {
1636
+ const _excluded$3 = ["hideControls"];
1637
+ const TabularMainPage = _ref => {
1638
+ let _ref$hideControls = _ref.hideControls,
1639
+ hideControls = _ref$hideControls === void 0 ? false : _ref$hideControls,
1640
+ props = _objectWithoutProperties(_ref, _excluded$3);
1604
1641
  const _useCustomViewLocator = useCustomViewLocatorSelector(props.customViewLocatorCodes),
1605
1642
  currentCustomViewLocatorCode = _useCustomViewLocator.currentCustomViewLocatorCode;
1606
1643
  return jsxRuntime.jsxs(PageWrapper, {
@@ -1612,7 +1649,7 @@ const TabularMainPage = props => {
1612
1649
  }), jsxRuntime.jsx(ControlsContainter, {
1613
1650
  tabControls: props.tabControls,
1614
1651
  formControls: jsxRuntime.jsx(FormControlsContainer, {
1615
- children: !props.hideControls && props.formControls && jsxRuntime.jsx(Spacings__default["default"].Inline, {
1652
+ children: !hideControls && props.formControls && jsxRuntime.jsx(Spacings__default["default"].Inline, {
1616
1653
  alignItems: "flex-end",
1617
1654
  children: props.formControls
1618
1655
  })
@@ -1631,7 +1668,6 @@ const TabularMainPage = props => {
1631
1668
  };
1632
1669
  TabularMainPage.propTypes = {};
1633
1670
  TabularMainPage.displayName = 'TabularMainPage';
1634
- TabularMainPage.defaultProps = defaultProps$2;
1635
1671
  // Static export of pre-configured form control buttons to easily re-use
1636
1672
  // them in the custom controls.
1637
1673
  TabularMainPage.FormPrimaryButton = FormPrimaryButton;
@@ -1684,12 +1720,12 @@ MaintenancePageLayout.displayName = 'MaintenancePageLayout';
1684
1720
 
1685
1721
  var messages$2 = reactIntl.defineMessages({
1686
1722
  title: {
1687
- id: 'PageNotFound.title',
1688
- defaultMessage: 'We could not find what you are looking for'
1723
+ id: "PageNotFound.title",
1724
+ defaultMessage: "We could not find what you are looking for"
1689
1725
  },
1690
1726
  paragraph1: {
1691
- id: 'PageNotFound.paragraph1',
1692
- defaultMessage: 'The item you are looking for may have been deleted, does not exist, or the URL was entered incorrectly. Check the URL and try again.\n\nPlease contact your system administrator or the commercetools <a>Help Desk</a> if you have any further questions.'
1727
+ id: "PageNotFound.paragraph1",
1728
+ defaultMessage: "The item you are looking for may have been deleted, does not exist, or the URL was entered incorrectly. Check the URL and try again. Please contact your system administrator or the commercetools <a>Help Desk</a> if you have any further questions."
1693
1729
  }
1694
1730
  });
1695
1731
 
@@ -1718,16 +1754,16 @@ PageNotFound.displayName = 'PageNotFound';
1718
1754
 
1719
1755
  var messages$1 = reactIntl.defineMessages({
1720
1756
  title: {
1721
- id: 'PageUnauthorized.title',
1722
- defaultMessage: 'We could not find what you are looking for'
1757
+ id: "PageUnauthorized.title",
1758
+ defaultMessage: "We could not find what you are looking for"
1723
1759
  },
1724
1760
  paragraph1: {
1725
- id: 'PageUnauthorized.paragraph1',
1726
- defaultMessage: 'The Module you are looking for either does not exist for this Project or you are not authorized to view it.'
1761
+ id: "PageUnauthorized.paragraph1",
1762
+ defaultMessage: "The Module you are looking for either does not exist for this Project or you are not authorized to view it."
1727
1763
  },
1728
1764
  paragraph2: {
1729
- id: 'PageUnauthorized.paragraph2',
1730
- defaultMessage: 'Please contact your system administrator or the commercetools <a>Help Desk</a> if you have any further questions.'
1765
+ id: "PageUnauthorized.paragraph2",
1766
+ defaultMessage: "Please contact your system administrator or the commercetools <a>Help Desk</a> if you have any further questions."
1731
1767
  }
1732
1768
  });
1733
1769
 
@@ -1776,6 +1812,7 @@ function PageContentNarrow(props) {
1776
1812
  }
1777
1813
  PageContentNarrow.propTypes = {};
1778
1814
 
1815
+ const _excluded$2 = ["columns", "gapSize"];
1779
1816
  const Content = /*#__PURE__*/_styled__default["default"]("section", {
1780
1817
  target: "e1dg479f4"
1781
1818
  } )("grid-area:content;display:grid;grid-template-areas:", props => props.columns === '1' ? 'none' : '"left-column right-column"', ";grid-template-columns:", props => {
@@ -1819,28 +1856,33 @@ const Container = /*#__PURE__*/_styled__default["default"]("div", {
1819
1856
  name: "5phl7w",
1820
1857
  styles: "display:grid;grid-template-areas:'. content .';grid-template-columns:1fr minmax(800px, 1200px) 1fr;width:100%"
1821
1858
  } );
1822
- function PageContentWide(props) {
1859
+ function PageContentWide(_ref) {
1860
+ let _ref$columns = _ref.columns,
1861
+ columns = _ref$columns === void 0 ? '1' : _ref$columns,
1862
+ _ref$gapSize = _ref.gapSize,
1863
+ gapSize = _ref$gapSize === void 0 ? '20' : _ref$gapSize,
1864
+ props = _objectWithoutProperties(_ref, _excluded$2);
1823
1865
  const _Children$toArray = react$1.Children.toArray(props.children),
1824
1866
  _Children$toArray2 = _slicedToArray(_Children$toArray, 2),
1825
1867
  leftChild = _Children$toArray2[0],
1826
1868
  rightChild = _Children$toArray2[1];
1827
1869
  const childrenCount = react$1.Children.count(props.children);
1828
- const isOneColumnAndMoreThanOneChild = props.columns === '1' && childrenCount > 1;
1829
- const isTwoColumnsAndMoreThanTwoChildren = props.columns !== '1' && childrenCount > 2;
1870
+ const isOneColumnAndMoreThanOneChild = columns === '1' && childrenCount > 1;
1871
+ const isTwoColumnsAndMoreThanTwoChildren = columns !== '1' && childrenCount > 2;
1830
1872
  utils.useWarning(!isOneColumnAndMoreThanOneChild, 'PageContentWide: This component only renders its first children when using a single column but you provided more than one.');
1831
1873
  utils.useWarning(!isTwoColumnsAndMoreThanTwoChildren, 'PageContentWide: This component only renders its first two children when using a two columns layout but you provided more than two.');
1832
1874
  return jsxRuntime.jsx(Container, {
1833
1875
  children: jsxRuntime.jsx(Content, {
1834
- columns: props.columns,
1835
- gapSize: props.gapSize,
1836
- children: props.columns === '1' ? jsxRuntime.jsx(jsxRuntime.Fragment, {
1876
+ columns: columns,
1877
+ gapSize: gapSize,
1878
+ children: columns === '1' ? jsxRuntime.jsx(jsxRuntime.Fragment, {
1837
1879
  children: leftChild
1838
1880
  }) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
1839
1881
  children: [jsxRuntime.jsx(LeftContentColumn, {
1840
1882
  children: leftChild
1841
1883
  }), jsxRuntime.jsx(RightContentColumn, {
1842
1884
  children: jsxRuntime.jsx(RightColumnContentWrapper, {
1843
- columns: props.columns,
1885
+ columns: columns,
1844
1886
  children: rightChild
1845
1887
  })
1846
1888
  })]
@@ -1849,11 +1891,6 @@ function PageContentWide(props) {
1849
1891
  });
1850
1892
  }
1851
1893
  PageContentWide.propTypes = {};
1852
- const defaultProps$1 = {
1853
- columns: '1',
1854
- gapSize: '20'
1855
- };
1856
- PageContentWide.defaultProps = defaultProps$1;
1857
1894
 
1858
1895
  var _ref$2 = {
1859
1896
  name: "1d3w5wq",
@@ -1869,26 +1906,30 @@ function PageContentFull(props) {
1869
1906
  }
1870
1907
  PageContentFull.propTypes = {};
1871
1908
 
1872
- const defaultProps = {
1873
- size: 10,
1874
- hideControls: false,
1875
- onPrimaryButtonClick: () => {},
1876
- onSecondaryButtonClick: () => {}
1877
- };
1909
+ const _excluded$1 = ["size", "hideControls", "onPrimaryButtonClick", "onSecondaryButtonClick"];
1878
1910
  const ContentWrapper = /*#__PURE__*/_styled__default["default"]("div", {
1879
1911
  target: "e18jo6y41"
1880
1912
  } )("flex:1;flex-basis:0;margin:", designTokens.marginForPageContent, ";overflow:auto;" + ("" ));
1881
1913
  const HeaderWrapper = /*#__PURE__*/_styled__default["default"]("div", {
1882
1914
  target: "e18jo6y40"
1883
1915
  } )("padding:", designSystem.designTokens.spacing40, " 40px;border-bottom:1px solid ", designSystem.designTokens.colorNeutral90, ";" + ("" ));
1884
- function Drawer(props) {
1916
+ function Drawer(_ref) {
1917
+ let _ref$size = _ref.size,
1918
+ size = _ref$size === void 0 ? 10 : _ref$size,
1919
+ _ref$hideControls = _ref.hideControls,
1920
+ hideControls = _ref$hideControls === void 0 ? false : _ref$hideControls,
1921
+ _ref$onPrimaryButtonC = _ref.onPrimaryButtonClick,
1922
+ onPrimaryButtonClick = _ref$onPrimaryButtonC === void 0 ? () => {} : _ref$onPrimaryButtonC,
1923
+ _ref$onSecondaryButto = _ref.onSecondaryButtonClick,
1924
+ onSecondaryButtonClick = _ref$onSecondaryButto === void 0 ? () => {} : _ref$onSecondaryButto,
1925
+ props = _objectWithoutProperties(_ref, _excluded$1);
1885
1926
  const intl = reactIntl.useIntl();
1886
1927
  return jsxRuntime.jsxs(ModalPage, {
1887
1928
  isOpen: props.isOpen,
1888
1929
  hidePathLabel: true,
1889
1930
  hideTopBar: true,
1890
1931
  onClose: props.onClose,
1891
- size: props.size,
1932
+ size: size,
1892
1933
  title: props.title,
1893
1934
  afterOpenStyles: props.afterOpenStyles,
1894
1935
  getParentSelector: props.getParentSelector,
@@ -1915,16 +1956,16 @@ function Drawer(props) {
1915
1956
  })]
1916
1957
  }), jsxRuntime.jsxs(Spacings__default["default"].Inline, {
1917
1958
  justifyContent: "flex-end",
1918
- children: [!props.hideControls && props.formControls && props.formControls, !props.hideControls && !props.formControls && jsxRuntime.jsxs(jsxRuntime.Fragment, {
1959
+ children: [!hideControls && props.formControls && props.formControls, !hideControls && !props.formControls && jsxRuntime.jsxs(jsxRuntime.Fragment, {
1919
1960
  children: [jsxRuntime.jsx(FormSecondaryButton, {
1920
1961
  label: props.labelSecondaryButton,
1921
- onClick: props.onSecondaryButtonClick,
1962
+ onClick: onSecondaryButtonClick,
1922
1963
  isDisabled: props.isSecondaryButtonDisabled,
1923
1964
  dataAttributes: props.dataAttributesSecondaryButton,
1924
1965
  iconLeft: props.iconLeftSecondaryButton
1925
1966
  }), jsxRuntime.jsx(FormPrimaryButton, {
1926
1967
  label: props.labelPrimaryButton,
1927
- onClick: props.onPrimaryButtonClick,
1968
+ onClick: onPrimaryButtonClick,
1928
1969
  isDisabled: props.isPrimaryButtonDisabled,
1929
1970
  dataAttributes: props.dataAttributesPrimaryButton
1930
1971
  })]
@@ -1938,7 +1979,6 @@ function Drawer(props) {
1938
1979
  }
1939
1980
  Drawer.propTypes = {};
1940
1981
  Drawer.displayName = 'Drawer';
1941
- Drawer.defaultProps = defaultProps;
1942
1982
  // Static export of pre-configured form control buttons to easily re-use
1943
1983
  // them in the custom controls.
1944
1984
  Drawer.FormPrimaryButton = FormPrimaryButton;
@@ -1949,20 +1989,20 @@ Drawer.Intl = i18n.sharedMessages;
1949
1989
 
1950
1990
  var messages = reactIntl.defineMessages({
1951
1991
  ProjectProduction: {
1952
- id: 'ProjectStamp.production',
1953
- defaultMessage: 'Production'
1992
+ id: "ProjectStamp.production",
1993
+ defaultMessage: "Production"
1954
1994
  },
1955
1995
  ProjectSuspended: {
1956
- id: 'ProjectStamp.suspended',
1957
- defaultMessage: 'Suspended'
1996
+ id: "ProjectStamp.suspended",
1997
+ defaultMessage: "Suspended"
1958
1998
  },
1959
1999
  ProjectExpired: {
1960
- id: 'ProjectStamp.expired',
1961
- defaultMessage: 'Trial expired'
2000
+ id: "ProjectStamp.expired",
2001
+ defaultMessage: "Trial expired"
1962
2002
  },
1963
2003
  ProjectWillExpire: {
1964
- id: 'ProjectStamp.willExpire',
1965
- defaultMessage: '{daysLeft, select, 0 {Trial ends today} 1 {Trial ends in 1 day} other {Trial ends in {daysLeft} days}}'
2004
+ id: "ProjectStamp.willExpire",
2005
+ defaultMessage: "{daysLeft, select, 0 {Trial ends today} 1 {Trial ends in 1 day} other {Trial ends in {daysLeft} days}}"
1966
2006
  }
1967
2007
  });
1968
2008