@commercetools-frontend/application-components 22.2.1 → 22.3.1

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 (44) hide show
  1. package/dist/commercetools-frontend-application-components.cjs.dev.js +168 -413
  2. package/dist/commercetools-frontend-application-components.cjs.prod.js +134 -368
  3. package/dist/commercetools-frontend-application-components.esm.js +166 -411
  4. package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +5 -5
  5. package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +2 -2
  6. package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts +2 -2
  7. package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +5 -5
  8. package/dist/declarations/src/components/dialogs/confirmation-dialog/confirmation-dialog.d.ts +2 -2
  9. package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +2 -2
  10. package/dist/declarations/src/components/dialogs/info-dialog/info-dialog.d.ts +2 -2
  11. package/dist/declarations/src/components/dialogs/internals/dialog-container.d.ts +2 -2
  12. package/dist/declarations/src/components/dialogs/internals/dialog-footer.d.ts +1 -1
  13. package/dist/declarations/src/components/dialogs/internals/dialog-header.d.ts +1 -1
  14. package/dist/declarations/src/components/dialogs/internals/dialog.styles.d.ts +4 -3
  15. package/dist/declarations/src/components/internals/default-form-buttons.d.ts +3 -3
  16. package/dist/declarations/src/components/internals/page-header-title.d.ts +1 -1
  17. package/dist/declarations/src/components/internals/page-header.d.ts +1 -1
  18. package/dist/declarations/src/components/internals/page-top-bar.d.ts +1 -1
  19. package/dist/declarations/src/components/internals/tabular-page.d.ts +2 -2
  20. package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +5 -5
  21. package/dist/declarations/src/components/main-pages/form-main-page/form-main-page.d.ts +2 -2
  22. package/dist/declarations/src/components/main-pages/info-main-page/info-main-page.d.ts +2 -2
  23. package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts +5 -5
  24. package/dist/declarations/src/components/maintenance-page-layout/maintenance-page-layout.d.ts +1 -1
  25. package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +4 -4
  26. package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +1 -1
  27. package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +1 -1
  28. package/dist/declarations/src/components/modal-pages/internals/modal-page-top-bar.d.ts +1 -1
  29. package/dist/declarations/src/components/modal-pages/internals/modal-page.d.ts +1 -1
  30. package/dist/declarations/src/components/modal-pages/internals/modal-page.styles.d.ts +7 -6
  31. package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +4 -4
  32. package/dist/declarations/src/components/page-content-containers/page-content-full/page-content-full.d.ts +1 -1
  33. package/dist/declarations/src/components/page-content-containers/page-content-narrow/page-content-narrow.d.ts +1 -1
  34. package/dist/declarations/src/components/page-content-containers/page-content-wide/page-content-wide.d.ts +1 -1
  35. package/dist/declarations/src/components/page-not-found/page-not-found.d.ts +1 -1
  36. package/dist/declarations/src/components/page-unauthorized/page-unauthorized.d.ts +1 -1
  37. package/dist/declarations/src/components/tab-header/tab-header.d.ts +1 -1
  38. package/dist/declarations/src/theming.d.ts +0 -48
  39. package/dist/public-page-layout-210b7c1d.cjs.dev.js +151 -0
  40. package/dist/public-page-layout-372792c6.esm.js +133 -0
  41. package/dist/{public-page-layout-7f46c618.cjs.prod.js → public-page-layout-6cbeff9f.cjs.prod.js} +8 -32
  42. package/package.json +26 -12
  43. package/dist/public-page-layout-83959274.cjs.dev.js +0 -175
  44. package/dist/public-page-layout-e5a9b13a.esm.js +0 -155
@@ -14,10 +14,10 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  require('prop-types');
15
15
  var reactIntl = require('react-intl');
16
16
  var reactRouterDom = require('react-router-dom');
17
- var designSystem = require('@commercetools-uikit/design-system');
18
17
  var Text = require('@commercetools-uikit/text');
19
18
  var utils = require('@commercetools-uikit/utils');
20
19
  var react = require('@emotion/react');
20
+ var designSystem = require('@commercetools-uikit/design-system');
21
21
  var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
22
22
  var jsxRuntime = require('@emotion/react/jsx-runtime');
23
23
  var react$1 = require('react');
@@ -38,8 +38,8 @@ var _setTimeout = require('@babel/runtime-corejs3/core-js-stable/set-timeout');
38
38
  var FlatButton = require('@commercetools-uikit/flat-button');
39
39
  var IconButton = require('@commercetools-uikit/icon-button');
40
40
  var Constraints = require('@commercetools-uikit/constraints');
41
- var PageNotFoundIllustration = require('@commercetools-frontend/assets/images/page-application-disabled.svg');
42
- var FailedAuthorizationIllustration = require('@commercetools-frontend/assets/images/folder-full-locked.svg');
41
+ var PageNotFoundSVG = require('@commercetools-frontend/assets/images/page-not-found.svg');
42
+ var FailedAuthorizationSVG = require('@commercetools-frontend/assets/images/doors-closed.svg');
43
43
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
44
44
  var useResizeObserver = require('@react-hook/resize-observer');
45
45
  var hooks = require('@commercetools-uikit/hooks');
@@ -69,71 +69,23 @@ var _setTimeout__default = /*#__PURE__*/_interopDefault(_setTimeout);
69
69
  var FlatButton__default = /*#__PURE__*/_interopDefault(FlatButton);
70
70
  var IconButton__default = /*#__PURE__*/_interopDefault(IconButton);
71
71
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
72
- var PageNotFoundIllustration__default = /*#__PURE__*/_interopDefault(PageNotFoundIllustration);
73
- var FailedAuthorizationIllustration__default = /*#__PURE__*/_interopDefault(FailedAuthorizationIllustration);
72
+ var PageNotFoundSVG__default = /*#__PURE__*/_interopDefault(PageNotFoundSVG);
73
+ var FailedAuthorizationSVG__default = /*#__PURE__*/_interopDefault(FailedAuthorizationSVG);
74
74
  var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
75
75
  var useResizeObserver__default = /*#__PURE__*/_interopDefault(useResizeObserver);
76
76
 
77
77
  // NOTE: This string will be replaced on build time with the package version.
78
- var version = "22.2.1";
79
-
80
- var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12;
81
- const appKitSpacing55 = '40px'; // TODO: move to uikit?
78
+ var version = "22.3.1";
82
79
 
80
+ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9;
81
+ const appKitSpacing55 = '40px';
82
+ // TODO: move to uikit?
83
83
  const colorAccent10 = 'hsl(195, 35.2941176471%, 10%)';
84
84
  const colorAccent20 = 'hsl(195, 35.2941176471%, 20%)';
85
85
  const colorAccent90 = 'hsl(195, 35.2941176471%, 90%)';
86
86
  const newShadow1 = '0px 2px 5px 0px rgba(0, 0, 0, 0.15)';
87
87
  const themesOverrides = {
88
88
  default: {
89
- colorForPageHeaderBottomBorder: designSystem.designTokens.colorNeutral,
90
- colorForNavbarIcon: designSystem.designTokens.colorSurface,
91
- colorForNavbarIconWhenActive: designSystem.designTokens.colorPrimary,
92
- colorForNavbarLink: designSystem.designTokens.colorSurface,
93
- colorForNavbarLinkWhenActive: designSystem.designTokens.colorPrimary,
94
- colorForNavbarLinkWhenHovered: designSystem.designTokens.colorPrimary,
95
- backgroundColorForMainPageDivider: designSystem.designTokens.colorNeutral60,
96
- backgroundColorForNavbar: designSystem.designTokens.colorAccent,
97
- backgroundColorForNavbarWhenActive: designSystem.designTokens.colorAccent30,
98
- backgroundColorForNavbarWhenHovered: designSystem.designTokens.colorAccent30,
99
- backgroundColorForPageHeader: designSystem.designTokens.colorNeutral95,
100
- backgroundColorForTabularMainPageContent: designSystem.designTokens.colorNeutral95,
101
- backgroundColorForUserMenuItemWhenHovered: designSystem.designTokens.colorNeutral90,
102
- borderBottomForTabularPageHeader: "1px solid ".concat(designSystem.designTokens.colorNeutral),
103
- borderColorForDialogDivider: designSystem.designTokens.colorNeutral,
104
- borderColorForModalPageHeaderDivider: designSystem.designTokens.colorNeutral60,
105
- borderColorForModalTopBarWhenSurface: designSystem.designTokens.colorNeutral,
106
- fontSizeForNavbarLink: designSystem.designTokens.fontSize40,
107
- fontWeightForNavbarLink: designSystem.designTokens.fontWeight500,
108
- fontWeightForNavbarLinkWhenActive: designSystem.designTokens.fontWeight500,
109
- fontWeightForNavbarLinkWhenHovered: designSystem.designTokens.fontWeight500,
110
- heightForTab: '4px',
111
- lineHeightForNavbarLink: designSystem.designTokens.lineHeight50,
112
- marginBottomForPageTopBar: designSystem.designTokens.spacing20,
113
- marginForDialogContainerContents: "".concat(designSystem.designTokens.spacing30, " 0"),
114
- marginForModalPageHeader: "0 ".concat(designSystem.designTokens.spacing30),
115
- marginForUserMenuItem: '0',
116
- marginLeftForModalPageHeaderControls: designSystem.designTokens.spacing30,
117
- marginRightForAppbar: designSystem.designTokens.spacing30,
118
- marginTopForDialogFooter: designSystem.designTokens.spacing30,
119
- marginTopForPageSubtitle: designSystem.designTokens.spacing30,
120
- marginTopForTabControls: designSystem.designTokens.spacing20,
121
- paddingForDetailPageHeader: designSystem.designTokens.spacing30,
122
- paddingForDialogContainer: "0",
123
- paddingForDialogContent: _concatInstanceProperty__default["default"](_context = "".concat(designSystem.designTokens.spacing30, " 0 ")).call(_context, designSystem.designTokens.spacing20),
124
- paddingForMainPageHeader: designSystem.designTokens.spacing30,
125
- paddingForModalPageHeader: "".concat(designSystem.designTokens.spacing30, " 0"),
126
- paddingForModalTopBar: _concatInstanceProperty__default["default"](_context2 = "".concat(designSystem.designTokens.spacing20, " ")).call(_context2, designSystem.designTokens.spacing30),
127
- paddingForPageContent: designSystem.designTokens.spacing30,
128
- paddingForTabularPageHeader: _concatInstanceProperty__default["default"](_context3 = "".concat(designSystem.designTokens.spacing30, " ")).call(_context3, designSystem.designTokens.spacing30, " 0"),
129
- paddingLeftForTabAsFirst: '0',
130
- shadowForAppbar: designSystem.designTokens.shadow1,
131
- shadowForNavbar: '6px 0 10px rgba(0, 0, 0, 0.16)',
132
- widthForDialogAsMedium: designSystem.designTokens.constraint7,
133
- widthForDialogAsLarge: designSystem.designTokens.constraint10,
134
- widthForPageLayoutContentColumn: "calc(".concat(designSystem.designTokens.constraint15, " / 2)")
135
- },
136
- test: {
137
89
  colorForPageHeaderBottomBorder: designSystem.designTokens.colorNeutral90,
138
90
  colorForNavbarIcon: colorAccent90,
139
91
  colorForNavbarIconWhenActive: designSystem.designTokens.colorSurface,
@@ -158,7 +110,7 @@ const themesOverrides = {
158
110
  heightForTab: '2px',
159
111
  lineHeightForNavbarLink: designSystem.designTokens.lineHeight20,
160
112
  marginBottomForPageTopBar: designSystem.designTokens.spacing40,
161
- marginForDialogContainerContents: _concatInstanceProperty__default["default"](_context4 = "".concat(designSystem.designTokens.spacing30, " 0 ")).call(_context4, designSystem.designTokens.spacing50, " 0"),
113
+ marginForDialogContainerContents: _concatInstanceProperty__default["default"](_context = "".concat(designSystem.designTokens.spacing30, " 0 ")).call(_context, designSystem.designTokens.spacing50, " 0"),
162
114
  marginForModalPageHeader: "0 ".concat(appKitSpacing55),
163
115
  marginForUserMenuItem: "".concat(designSystem.designTokens.spacing10, " 0"),
164
116
  marginLeftForModalPageHeaderControls: designSystem.designTokens.spacing50,
@@ -166,14 +118,14 @@ const themesOverrides = {
166
118
  marginTopForDialogFooter: designSystem.designTokens.spacing50,
167
119
  marginTopForPageSubtitle: designSystem.designTokens.spacing20,
168
120
  marginTopForTabControls: designSystem.designTokens.spacing40,
169
- paddingForDetailPageHeader: _concatInstanceProperty__default["default"](_context5 = _concatInstanceProperty__default["default"](_context6 = "".concat(designSystem.designTokens.spacing50, " ")).call(_context6, appKitSpacing55, " ")).call(_context5, designSystem.designTokens.spacing40),
170
- paddingForDialogContainer: _concatInstanceProperty__default["default"](_context7 = "".concat(designSystem.designTokens.spacing20, " ")).call(_context7, designSystem.designTokens.spacing30),
121
+ paddingForDetailPageHeader: _concatInstanceProperty__default["default"](_context2 = _concatInstanceProperty__default["default"](_context3 = "".concat(designSystem.designTokens.spacing50, " ")).call(_context3, appKitSpacing55, " ")).call(_context2, designSystem.designTokens.spacing40),
122
+ paddingForDialogContainer: _concatInstanceProperty__default["default"](_context4 = "".concat(designSystem.designTokens.spacing20, " ")).call(_context4, designSystem.designTokens.spacing30),
171
123
  paddingForDialogContent: "".concat(designSystem.designTokens.spacing40, " 0 0"),
172
- paddingForMainPageHeader: _concatInstanceProperty__default["default"](_context8 = "".concat(designSystem.designTokens.spacing50, " ")).call(_context8, appKitSpacing55, " 0"),
173
- paddingForModalPageHeader: _concatInstanceProperty__default["default"](_context9 = "".concat(designSystem.designTokens.spacing40, " 0 ")).call(_context9, designSystem.designTokens.spacing40),
174
- paddingForModalTopBar: _concatInstanceProperty__default["default"](_context10 = "".concat(designSystem.designTokens.spacing40, " ")).call(_context10, appKitSpacing55, " 0"),
175
- paddingForPageContent: _concatInstanceProperty__default["default"](_context11 = "".concat(designSystem.designTokens.spacing50, " ")).call(_context11, appKitSpacing55),
176
- paddingForTabularPageHeader: _concatInstanceProperty__default["default"](_context12 = "".concat(designSystem.designTokens.spacing40, " ")).call(_context12, appKitSpacing55, " 0"),
124
+ paddingForMainPageHeader: _concatInstanceProperty__default["default"](_context5 = "".concat(designSystem.designTokens.spacing50, " ")).call(_context5, appKitSpacing55, " 0"),
125
+ paddingForModalPageHeader: _concatInstanceProperty__default["default"](_context6 = "".concat(designSystem.designTokens.spacing40, " 0 ")).call(_context6, designSystem.designTokens.spacing40),
126
+ paddingForModalTopBar: _concatInstanceProperty__default["default"](_context7 = "".concat(designSystem.designTokens.spacing40, " ")).call(_context7, appKitSpacing55, " 0"),
127
+ paddingForPageContent: _concatInstanceProperty__default["default"](_context8 = "".concat(designSystem.designTokens.spacing50, " ")).call(_context8, appKitSpacing55),
128
+ paddingForTabularPageHeader: _concatInstanceProperty__default["default"](_context9 = "".concat(designSystem.designTokens.spacing40, " ")).call(_context9, appKitSpacing55, " 0"),
177
129
  paddingLeftForTabAsFirst: designSystem.designTokens.spacing30,
178
130
  shadowForAppbar: newShadow1,
179
131
  shadowForNavbar: 'none',
@@ -187,50 +139,30 @@ const designTokens = designSystem.transformTokensToCssVarsReferences(themesOverr
187
139
  });
188
140
 
189
141
  const getBottomBorderStyles = background => /*#__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, ";}" + ("" ), "" );
190
-
191
142
  var _ref$7 = {
192
143
  name: "1u0tiat",
193
144
  styles: "&[aria-disabled='true']{cursor:not-allowed;opacity:0.5;&:active{pointer-events:none;}}"
194
145
  } ;
195
-
196
146
  const getLinkStyles = (isActive, isDisabled) => [/*#__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;}}" + ("" ), "" )];
197
147
 
198
148
  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; }
199
-
200
149
  function _objectSpread$6(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$6(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$6(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
201
-
202
150
  const pathWithoutSearch = path => typeof path === 'string' ? path.split('?')[0] : path.pathname;
203
-
204
151
  const warnIfMissingContent = props => {
205
152
  Boolean(props.intlMessage) || Boolean(props.label);
206
153
  };
207
-
208
154
  const getDisabledLinkAtributes = isDisabled => isDisabled ? {
209
155
  tabIndex: -1,
210
156
  'aria-disabled': true
211
157
  } : {};
212
-
213
158
  const TabLabel = _ref => {
214
159
  let children = _ref.children;
215
-
216
- const _useTheme = designSystem.useTheme(),
217
- theme = _useTheme.theme;
218
-
219
- if (theme === 'default') {
220
- return jsxRuntime.jsx(Text__default["default"].Subheadline, {
221
- as: "h4",
222
- truncate: true,
223
- children: children
224
- });
225
- }
226
-
227
160
  return jsxRuntime.jsx(Text__default["default"].Headline, {
228
161
  as: "h3",
229
162
  truncate: true,
230
163
  children: children
231
164
  });
232
165
  };
233
-
234
166
  const TabHeader = props => {
235
167
  const intl = reactIntl.useIntl();
236
168
  const location = reactRouterDom.useLocation();
@@ -242,11 +174,9 @@ const TabHeader = props => {
242
174
  }));
243
175
  const isDisabled = props.isDisabled;
244
176
  let label = props.label;
245
-
246
177
  if (props.intlMessage) {
247
178
  label = intl.formatMessage(props.intlMessage);
248
179
  }
249
-
250
180
  warnIfMissingContent(props);
251
181
  return jsxRuntime.jsx(reactRouterDom.Link, _objectSpread$6(_objectSpread$6({
252
182
  role: "tab",
@@ -271,44 +201,36 @@ const getConstraintForGridStyle = size => {
271
201
  switch (size) {
272
202
  case 'm':
273
203
  return designTokens.widthForDialogAsMedium;
274
-
275
204
  case 7:
276
205
  return designSystem.designTokens.constraint7;
277
-
278
206
  case 8:
279
207
  return designSystem.designTokens.constraint8;
280
-
281
208
  case 9:
282
209
  return designSystem.designTokens.constraint9;
283
-
284
210
  case 10:
285
211
  return designSystem.designTokens.constraint10;
286
-
287
212
  case 11:
288
213
  return designSystem.designTokens.constraint11;
289
-
290
214
  case 12:
291
215
  return designSystem.designTokens.constraint12;
292
-
293
216
  case 13:
294
217
  return designSystem.designTokens.constraint13;
295
-
218
+ case 16:
219
+ return designSystem.designTokens.constraint16;
296
220
  case 'l':
297
221
  return designTokens.widthForDialogAsLarge;
298
-
299
222
  case 'scale':
300
223
  return designSystem.designTokens.constraintScale;
301
-
302
224
  default:
303
225
  return designSystem.designTokens.constraintScale;
304
226
  }
305
227
  };
306
-
307
228
  const getModalContentStyles = props => {
308
229
  const sizeConstraint = getConstraintForGridStyle(props.size);
309
- const gridStyle = props.size === 'scale' ? /*#__PURE__*/react.css("grid:[row1-start] 'top top top' minmax(\n ", designSystem.designTokens.spacingXl, ",\n 1fr\n ) [row1-end] [row2-start] 'left main right' minmax(0, 100%) [row2-end] [row3-start] 'bottom bottom bottom' minmax(\n ", designSystem.designTokens.spacingXl, ",\n 1fr\n ) [row3-end]/", designSystem.designTokens.spacingXl, " 1fr ", designSystem.designTokens.spacingXl, ";" + ("" ), "" ) : /*#__PURE__*/react.css("grid:[row1-start] 'top top top' minmax(\n ", designSystem.designTokens.spacingXl, ",\n 1fr\n ) [row1-end] [row2-start] 'left main right' minmax(0, 100%) [row2-end] [row3-start] 'bottom bottom bottom' minmax(\n ", designSystem.designTokens.spacingXl, ",\n 1fr\n ) [row3-end]/minmax(", designSystem.designTokens.spacingXl, ", 1fr) ", sizeConstraint, " minmax(", designSystem.designTokens.spacingXl, ", 1fr);" + ("" ), "" ); // To ensure that the mouse click on the overlay surface goes "through"
310
- // and triggers the modal to close, we need to turn off the pointer events.
230
+ const gridStyle = props.size === 'scale' ? /*#__PURE__*/react.css("grid:[row1-start] 'top top top' minmax(\n ", designSystem.designTokens.spacingXl, ",\n 1fr\n ) [row1-end] [row2-start] 'left main right' minmax(0, 100%) [row2-end] [row3-start] 'bottom bottom bottom' minmax(\n ", designSystem.designTokens.spacingXl, ",\n 1fr\n ) [row3-end]/", designSystem.designTokens.spacingXl, " 1fr ", designSystem.designTokens.spacingXl, ";" + ("" ), "" ) : /*#__PURE__*/react.css("grid:[row1-start] 'top top top' minmax(\n ", designSystem.designTokens.spacingXl, ",\n 1fr\n ) [row1-end] [row2-start] 'left main right' minmax(0, 100%) [row2-end] [row3-start] 'bottom bottom bottom' minmax(\n ", designSystem.designTokens.spacingXl, ",\n 1fr\n ) [row3-end]/minmax(", designSystem.designTokens.spacingXl, ", 1fr) ", sizeConstraint, " minmax(", designSystem.designTokens.spacingXl, ", 1fr);" + ("" ), "" );
311
231
 
232
+ // To ensure that the mouse click on the overlay surface goes "through"
233
+ // and triggers the modal to close, we need to turn off the pointer events.
312
234
  const baseStyles = /*#__PURE__*/react.css("display:grid;height:100%;width:100%;outline:none;pointer-events:none;", gridStyle, ";" + ("" ), "" );
313
235
  return baseStyles;
314
236
  };
@@ -316,18 +238,15 @@ const getOverlayStyles$1 = props => /*#__PURE__*/react.css("display:flex;positio
316
238
  "".concat(props.zIndex, " !important") : 'auto', ";top:0;width:100%;height:100%;background-color:rgba(32, 62, 72, 0.5);opacity:1;" + ("" ), "" );
317
239
 
318
240
  function ownKeys$5(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; }
319
-
320
241
  function _objectSpread$5(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$5(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$5(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
321
-
322
242
  const getDefaultParentSelector$1 = () => document.querySelector("#".concat(constants.PORTALS_CONTAINER_ID));
323
-
324
- const getOverlayElement$1 = (props, contentElement) => // Assign the `data-role` to the overlay container, which is used as
243
+ const getOverlayElement$1 = (props, contentElement) =>
244
+ // Assign the `data-role` to the overlay container, which is used as
325
245
  // the CSS selector in the `<PortalsContainer>`.
326
246
  jsxRuntime.jsx("div", _objectSpread$5(_objectSpread$5({}, props), {}, {
327
247
  "data-role": "dialog-overlay",
328
248
  children: contentElement
329
249
  }));
330
-
331
250
  const defaultProps$h = {
332
251
  // TODO: t-shirt sizes are deprecated but we need to keep using them for
333
252
  // backwards compatibility and to help with styling migration
@@ -336,31 +255,25 @@ const defaultProps$h = {
336
255
  size: 'l',
337
256
  getParentSelector: getDefaultParentSelector$1
338
257
  };
339
-
340
258
  const GridArea = /*#__PURE__*/_styled__default["default"]("div", {
341
259
  target: "elx55gk0"
342
260
  } )("grid-area:", props => props.name, ";" + ("" ));
343
-
344
261
  var _ref3$1 = {
345
262
  name: "13udsys",
346
263
  styles: "height:100%"
347
264
  } ;
348
-
349
265
  const sizeStyles = props => {
350
266
  if (props.size === 'scale') return _ref3$1;
351
267
  return /*#__PURE__*/react.css("" , "" );
352
268
  };
353
-
354
269
  var _ref$6 = {
355
270
  name: "1daj17f",
356
271
  styles: "display:flex;flex-direction:column;align-items:stretch;height:100%;min-height:0"
357
272
  } ;
358
-
359
273
  var _ref2$3 = {
360
274
  name: "1187q51",
361
275
  styles: "display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;overflow:hidden"
362
276
  } ;
363
-
364
277
  const DialogContainer = props => jsxRuntime.jsx(react.ClassNames, {
365
278
  children: _ref4 => {
366
279
  let makeClassName = _ref4.css;
@@ -386,7 +299,8 @@ const DialogContainer = props => jsxRuntime.jsx(react.ClassNames, {
386
299
  }), jsxRuntime.jsx(GridArea, {
387
300
  name: "main",
388
301
  css: _ref2$3,
389
- children: jsxRuntime.jsx(Card__default["default"] // 1. For the min-height: https://stackoverflow.com/questions/28636832/firefox-overflow-y-not-working-with-nested-flexbox/28639686#28639686
302
+ children: jsxRuntime.jsx(Card__default["default"]
303
+ // 1. For the min-height: https://stackoverflow.com/questions/28636832/firefox-overflow-y-not-working-with-nested-flexbox/28639686#28639686
390
304
  // 2. For the scale size, we want the card to stretch to 100% height
391
305
  // 3. For the actual "> div" container with the content, we need to use normal pointer events so that clicking on it does not close the dialog.
392
306
  , {
@@ -400,28 +314,16 @@ const DialogContainer = props => jsxRuntime.jsx(react.ClassNames, {
400
314
  });
401
315
  }
402
316
  });
403
-
404
317
  DialogContainer.propTypes = {};
405
318
  DialogContainer.displayName = 'DialogContainer';
406
319
  DialogContainer.defaultProps = defaultProps$h;
407
320
 
321
+ // The overflow should be "auto", to make the container scrollable
408
322
  const DialogContent = /*#__PURE__*/_styled__default["default"]("div", {
409
323
  target: "eo6zkz80"
410
324
  } )("border-top:1px solid ", designTokens.borderColorForDialogDivider, ";padding:", designTokens.paddingForDialogContent, ";flex:1;overflow:auto;" + ("" ));
411
325
 
412
326
  const Title$1 = props => {
413
- const _useTheme = designSystem.useTheme(),
414
- theme = _useTheme.theme;
415
-
416
- if (theme === 'default') {
417
- return jsxRuntime.jsx(Text__default["default"].Subheadline, {
418
- as: "h4",
419
- title: props.title,
420
- truncate: true,
421
- children: props.title
422
- });
423
- }
424
-
425
327
  return jsxRuntime.jsx(Text__default["default"].Headline, {
426
328
  as: "h3",
427
329
  title: props.title,
@@ -429,7 +331,6 @@ const Title$1 = props => {
429
331
  children: props.title
430
332
  });
431
333
  };
432
-
433
334
  const DialogHeader = props => jsxRuntime.jsx("div", {
434
335
  css: /*#__PURE__*/react.css("flex:0 1 auto;display:flex;flex-direction:column;margin-bottom:", designSystem.designTokens.spacing30, ";" + ("" ), "" ),
435
336
  children: jsxRuntime.jsxs(Spacings__default["default"].Inline, {
@@ -446,7 +347,6 @@ const DialogHeader = props => jsxRuntime.jsx("div", {
446
347
  })]
447
348
  })
448
349
  });
449
-
450
350
  DialogHeader.propTypes = {};
451
351
  DialogHeader.displayName = 'DialogHeader';
452
352
 
@@ -464,7 +364,6 @@ const InfoDialog = props => jsxRuntime.jsxs(DialogContainer, {
464
364
  children: props.children
465
365
  })]
466
366
  });
467
-
468
367
  InfoDialog.propTypes = {};
469
368
  InfoDialog.displayName = 'InfoDialog';
470
369
 
@@ -473,16 +372,13 @@ function filterDataAttributes(obj) {
473
372
  }
474
373
 
475
374
  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; }
476
-
477
375
  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; }
478
376
  const defaultProps$g = {
479
377
  isPrimaryButtonDisabled: false,
480
378
  dataAttributesPrimaryButton: {},
481
379
  dataAttributesSecondaryButton: {}
482
380
  };
483
-
484
381
  const getFormattedLabel = (label, intl) => typeof label === 'string' ? label : intl.formatMessage(label);
485
-
486
382
  const DialogFooter = props => {
487
383
  const intl = reactIntl.useIntl();
488
384
  return jsxRuntime.jsx("div", {
@@ -503,7 +399,6 @@ const DialogFooter = props => {
503
399
  })
504
400
  });
505
401
  };
506
-
507
402
  DialogFooter.propTypes = {};
508
403
  DialogFooter.displayName = 'DialogFooter';
509
404
  DialogFooter.defaultProps = defaultProps$g;
@@ -512,7 +407,6 @@ const defaultProps$f = {
512
407
  labelSecondary: i18n.sharedMessages.cancel,
513
408
  labelPrimary: i18n.sharedMessages.confirm
514
409
  };
515
-
516
410
  const ConfirmationDialog = props => jsxRuntime.jsxs(DialogContainer, {
517
411
  isOpen: props.isOpen,
518
412
  onClose: props.onClose,
@@ -535,19 +429,17 @@ const ConfirmationDialog = props => jsxRuntime.jsxs(DialogContainer, {
535
429
  dataAttributesPrimaryButton: props.dataAttributesPrimaryButton
536
430
  })]
537
431
  });
538
-
539
432
  ConfirmationDialog.propTypes = {};
540
433
  ConfirmationDialog.displayName = 'ConfirmationDialog';
541
- ConfirmationDialog.defaultProps = defaultProps$f; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
434
+ ConfirmationDialog.defaultProps = defaultProps$f;
435
+ // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
542
436
  // The Intl messages can be used for button labels.
543
-
544
437
  ConfirmationDialog.Intl = i18n.sharedMessages;
545
438
 
546
439
  const defaultProps$e = {
547
440
  labelSecondary: i18n.sharedMessages.cancel,
548
441
  labelPrimary: i18n.sharedMessages.save
549
442
  };
550
-
551
443
  const FormDialog = props => jsxRuntime.jsxs(DialogContainer, {
552
444
  isOpen: props.isOpen,
553
445
  onClose: props.onClose,
@@ -571,36 +463,29 @@ const FormDialog = props => jsxRuntime.jsxs(DialogContainer, {
571
463
  iconLeftSecondaryButton: props.iconLeftSecondaryButton
572
464
  })]
573
465
  });
574
-
575
466
  FormDialog.propTypes = {};
576
467
  FormDialog.displayName = 'FormDialog';
577
- FormDialog.defaultProps = defaultProps$e; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
468
+ FormDialog.defaultProps = defaultProps$e;
469
+ // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
578
470
  // The Intl messages can be used for button labels.
579
-
580
471
  FormDialog.Intl = i18n.sharedMessages;
581
472
 
582
473
  const defaultProps$d = {
583
474
  titleSize: 'small',
584
475
  truncate: false
585
476
  };
586
-
587
477
  const SubtitleWrapper = /*#__PURE__*/_styled__default["default"]("div", {
588
478
  target: "epaiodd0"
589
479
  } )("margin-top:", designTokens.marginTopForPageSubtitle, ";" + ("" ));
590
-
591
480
  const Title = props => {
592
- const _useTheme = designSystem.useTheme(),
593
- themedValue = _useTheme.themedValue;
594
-
595
481
  switch (props.titleSize) {
596
482
  case 'big':
597
483
  return jsxRuntime.jsx(Text__default["default"].Headline, {
598
- as: themedValue('h2', 'h1'),
484
+ as: "h1",
599
485
  title: props.title,
600
486
  truncate: props.truncate,
601
487
  children: props.title
602
488
  });
603
-
604
489
  default:
605
490
  return jsxRuntime.jsx(Text__default["default"].Subheadline, {
606
491
  as: "h4",
@@ -610,41 +495,32 @@ const Title = props => {
610
495
  });
611
496
  }
612
497
  };
613
-
614
498
  const Subtitle = props => {
615
- const _useTheme2 = designSystem.useTheme(),
616
- themedValue = _useTheme2.themedValue;
617
-
618
499
  if (!props.subtitle) {
619
500
  return null;
620
501
  }
621
-
622
502
  if ( /*#__PURE__*/react$1.isValidElement(props.subtitle)) {
623
503
  return jsxRuntime.jsx(SubtitleWrapper, {
624
504
  children: props.subtitle
625
505
  });
626
506
  }
627
-
628
507
  return jsxRuntime.jsx(SubtitleWrapper, {
629
508
  children: jsxRuntime.jsx(Text__default["default"].Body, {
630
509
  title: typeof props.subtitle === 'string' ? props.subtitle : undefined,
631
510
  truncate: props.truncate,
632
- tone: themedValue(undefined, 'secondary'),
511
+ tone: "secondary",
633
512
  children: props.subtitle
634
513
  })
635
514
  });
636
515
  };
637
-
638
516
  Subtitle.propTypes = {};
639
517
  Subtitle.defaultProps = {
640
518
  truncate: false
641
519
  };
642
-
643
520
  var _ref$5 = {
644
521
  name: "d3v9zr",
645
522
  styles: "overflow:hidden"
646
523
  } ;
647
-
648
524
  const PageHeaderTitle = props => jsxRuntime.jsxs("div", {
649
525
  css: _ref$5,
650
526
  children: [jsxRuntime.jsx(Title, {
@@ -656,26 +532,21 @@ const PageHeaderTitle = props => jsxRuntime.jsxs("div", {
656
532
  truncate: props.truncate
657
533
  })]
658
534
  });
659
-
660
535
  PageHeaderTitle.propTypes = {};
661
536
  PageHeaderTitle.displayName = 'PageHeaderTitle';
662
537
  PageHeaderTitle.defaultProps = defaultProps$d;
663
538
 
664
539
  const PageHeader = props => {
665
- const _useTheme = designSystem.useTheme(),
666
- themedValue = _useTheme.themedValue;
667
-
668
540
  return jsxRuntime.jsxs("div", {
669
541
  css: /*#__PURE__*/react.css("display:flex;align-items:flex-end;justify-content:space-between;margin:", designTokens.marginForModalPageHeader, ";padding:", designTokens.paddingForModalPageHeader, ";border-bottom:1px solid ", designTokens.borderColorForModalPageHeaderDivider, ";&>*+*{margin-left:", designTokens.marginLeftForModalPageHeaderControls, ";}" + ("" ), "" ),
670
542
  children: [jsxRuntime.jsx(PageHeaderTitle, {
671
543
  title: props.title,
672
- titleSize: themedValue('small', 'big'),
544
+ titleSize: "big",
673
545
  subtitle: props.subtitle,
674
546
  truncate: true
675
547
  }), props.children]
676
548
  });
677
549
  };
678
-
679
550
  PageHeader.propTypes = {};
680
551
  PageHeader.displayName = 'PageHeader';
681
552
 
@@ -700,39 +571,32 @@ const messages$2 = reactIntl.defineMessages({
700
571
  }
701
572
  });
702
573
 
574
+ // Component to have a larger clickable surface
703
575
  var _ref2$2 = {
704
576
  name: "1rxhroq",
705
577
  styles: "display:flex;align-items:center;justify-content:center;&::after{content:'';position:absolute;height:35px;width:48px;top:0;right:0;}"
706
578
  } ;
707
-
708
- // Component to have a larger clickable surface
709
579
  const LargeIconWrapper = props => jsxRuntime.jsx("span", {
710
580
  css: _ref2$2,
711
581
  children: /*#__PURE__*/react$1.cloneElement(props.children, {
712
582
  size: props.size
713
583
  })
714
- }); // NOTE: the `MessageDescriptor` type is exposed by `react-intl`.
584
+ });
585
+
586
+ // NOTE: the `MessageDescriptor` type is exposed by `react-intl`.
715
587
  // However, we need to explicitly define this otherwise the prop-types babel plugin
716
588
  // does not recognize the object shape.
717
-
718
-
719
589
  LargeIconWrapper.propTypes = {};
720
590
  const defaultProps$c = {
721
591
  color: 'surface',
722
592
  previousPathLabel: messages$2.back
723
593
  };
724
-
725
594
  var _ref$4 = {
726
595
  name: "uvw8rn",
727
596
  styles: "display:flex;overflow:hidden;button:first-of-type svg{height:12px!important;width:12px!important;}"
728
597
  } ;
729
-
730
598
  const ModalPageTopBar = props => {
731
599
  const intl = reactIntl.useIntl();
732
-
733
- const _useTheme = designSystem.useTheme(),
734
- themedValue = _useTheme.themedValue;
735
-
736
600
  return jsxRuntime.jsxs("div", {
737
601
  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;}" + ("" ), "" ),
738
602
  children: [jsxRuntime.jsxs("div", {
@@ -762,11 +626,10 @@ const ModalPageTopBar = props => {
762
626
  icon: jsxRuntime.jsx(LargeIconWrapper, {
763
627
  children: jsxRuntime.jsx(icons.CloseIcon, {})
764
628
  }),
765
- size: themedValue('medium', 'big')
629
+ size: "big"
766
630
  })]
767
631
  });
768
632
  };
769
-
770
633
  ModalPageTopBar.propTypes = {};
771
634
  ModalPageTopBar.displayName = 'ModalPageTopBar';
772
635
  ModalPageTopBar.defaultProps = defaultProps$c;
@@ -775,62 +638,50 @@ const TRANSITION_DURATION = 200;
775
638
  const getContainerStyles = _props => /*#__PURE__*/react.css("position:absolute;top:0;right:0;height:100%;width:100%;display:flex;flex-direction:column;background-color:", designSystem.customProperties.colorSurface, ";box-shadow:", designSystem.customProperties.shadow4, ",", designSystem.customProperties.shadow6, ";outline:0;transform:translate3d(30px, 0, 0);transition:transform ", TRANSITION_DURATION, "ms ease;" + ("" ), "" );
776
639
  const getOverlayStyles = props => /*#__PURE__*/react.css("position:absolute;z-index:", typeof props.zIndex === 'number' ? // Use `!important` to overwrite the default value assigned by the Stacking Layer System.
777
640
  "".concat(props.zIndex, " !important") : 'auto', ";top:0;left:0;width:100%;height:100%;background-color:rgba(32, 62, 72, 0.5);opacity:0;transition:opacity ", TRANSITION_DURATION, "ms ease;" + ("" ), "" );
778
-
779
641
  var _ref4 = {
780
642
  name: "1ffv7m4",
781
643
  styles: "transform:translate3d(0, 0, 0)!important"
782
644
  } ;
783
-
784
645
  const getAfterOpenContainerAnimation = () => _ref4;
785
-
786
646
  var _ref3 = {
787
647
  name: "1d9ftqx",
788
648
  styles: "opacity:1!important"
789
649
  } ;
790
-
791
650
  const getAfterOpenOverlayAnimation = () => _ref3;
792
-
793
651
  var _ref2$1 = {
794
652
  name: "110wxen",
795
653
  styles: "transform:translate3d(30px, 0, 0)!important"
796
654
  } ;
797
-
798
655
  const getBeforeCloseContainerAnimation = () => _ref2$1;
799
-
800
656
  var _ref$3 = {
801
657
  name: "728dx5",
802
658
  styles: "opacity:0!important"
803
659
  } ;
804
-
805
660
  const getBeforeCloseOverlayAnimation = () => _ref$3;
806
661
 
807
662
  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; }
808
-
809
663
  function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$3(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
810
-
811
664
  const getDefaultParentSelector = () => document.querySelector("#".concat(constants.PORTALS_CONTAINER_ID));
812
-
813
- const getOverlayElement = (props, contentElement) => // Assign the `data-role` to the overlay container, which is used as
665
+ const getOverlayElement = (props, contentElement) =>
666
+ // Assign the `data-role` to the overlay container, which is used as
814
667
  // the CSS selector in the `<PortalsContainer>`.
815
668
  jsxRuntime.jsx("div", _objectSpread$3(_objectSpread$3({}, props), {}, {
816
669
  "data-role": "modal-overlay",
817
670
  children: contentElement
818
- })); // NOTE: the `MessageDescriptor` type is exposed by `react-intl`.
671
+ }));
672
+
673
+ // NOTE: the `MessageDescriptor` type is exposed by `react-intl`.
819
674
  // However, we need to explicitly define this otherwise the prop-types babel plugin
820
675
  // does not recognize the object shape.
821
-
822
-
823
676
  const defaultProps$b = {
824
677
  getParentSelector: getDefaultParentSelector,
825
678
  shouldDelayOnClose: true
826
679
  };
827
-
828
680
  const ModalPage = props => {
829
681
  const _useState = react$1.useState(false),
830
- _useState2 = _slicedToArray(_useState, 2),
831
- forceClose = _useState2[0],
832
- setForceClose = _useState2[1];
833
-
682
+ _useState2 = _slicedToArray(_useState, 2),
683
+ forceClose = _useState2[0],
684
+ setForceClose = _useState2[1];
834
685
  const closingTimer = react$1.useRef();
835
686
  react$1.useEffect(() => {
836
687
  if (props.isOpen === true) setForceClose(false);
@@ -852,13 +703,11 @@ const ModalPage = props => {
852
703
  }, TRANSITION_DURATION);
853
704
  return;
854
705
  }
855
-
856
706
  onClose && onClose(event);
857
707
  }, [onClose, props.shouldDelayOnClose]);
858
708
  return jsxRuntime.jsx(react.ClassNames, {
859
709
  children: _ref => {
860
710
  var _props$afterOpenStyle;
861
-
862
711
  let makeClassName = _ref.css;
863
712
  return jsxRuntime.jsxs(Modal__default["default"], {
864
713
  isOpen: forceClose === true ? false : props.isOpen,
@@ -878,7 +727,8 @@ const ModalPage = props => {
878
727
  },
879
728
  contentLabel: props.title,
880
729
  parentSelector: props.getParentSelector,
881
- ariaHideApp: false // Adjust this value if the (beforeClose) animation duration is changed
730
+ ariaHideApp: false
731
+ // Adjust this value if the (beforeClose) animation duration is changed
882
732
  ,
883
733
  closeTimeoutMS: TRANSITION_DURATION,
884
734
  style: {
@@ -897,7 +747,6 @@ const ModalPage = props => {
897
747
  }
898
748
  });
899
749
  };
900
-
901
750
  ModalPage.propTypes = {};
902
751
  ModalPage.displayName = 'ModalPage';
903
752
  ModalPage.defaultProps = defaultProps$b;
@@ -919,24 +768,20 @@ const InfoModalPage = props => jsxRuntime.jsxs(ModalPage, {
919
768
  children: props.children
920
769
  })]
921
770
  });
922
-
923
771
  InfoModalPage.propTypes = {};
924
772
  InfoModalPage.displayName = 'InfoModalPage';
925
773
 
926
774
  function ownKeys$2(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; }
927
-
928
775
  function _objectSpread$2(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$2(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$2(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
929
776
  const primaryDefaultProps = {
930
777
  label: i18n.sharedMessages.confirm,
931
778
  isDisabled: false,
932
779
  dataAttributes: {}
933
780
  };
934
-
935
781
  const useFormattedLabel = label => {
936
782
  const intl = reactIntl.useIntl();
937
783
  return typeof label === 'string' ? label : intl.formatMessage(label);
938
784
  };
939
-
940
785
  const FormPrimaryButton = props => {
941
786
  const label = useFormattedLabel(props.label);
942
787
  return jsxRuntime.jsx(PrimaryButton__default["default"], _objectSpread$2({
@@ -945,7 +790,6 @@ const FormPrimaryButton = props => {
945
790
  isDisabled: props.isDisabled
946
791
  }, filterDataAttributes(props.dataAttributes)));
947
792
  };
948
-
949
793
  FormPrimaryButton.propTypes = {};
950
794
  FormPrimaryButton.displayName = 'FormPrimaryButton';
951
795
  FormPrimaryButton.defaultProps = primaryDefaultProps;
@@ -954,7 +798,6 @@ const secondaryDefaultProps = {
954
798
  isDisabled: false,
955
799
  dataAttributes: {}
956
800
  };
957
-
958
801
  const FormSecondaryButton = props => {
959
802
  const label = useFormattedLabel(props.label);
960
803
  return jsxRuntime.jsx(SecondaryButton__default["default"], _objectSpread$2({
@@ -964,7 +807,6 @@ const FormSecondaryButton = props => {
964
807
  iconLeft: props.iconLeft
965
808
  }, filterDataAttributes(props.dataAttributes)));
966
809
  };
967
-
968
810
  FormSecondaryButton.propTypes = {};
969
811
  FormSecondaryButton.displayName = 'FormSecondaryButton';
970
812
  FormSecondaryButton.defaultProps = secondaryDefaultProps;
@@ -973,7 +815,6 @@ const deleteDefaultProps = {
973
815
  isDisabled: false,
974
816
  dataAttributes: {}
975
817
  };
976
-
977
818
  const FormDeleteButton = props => {
978
819
  const label = useFormattedLabel(props.label);
979
820
  return jsxRuntime.jsx(IconButton__default["default"], _objectSpread$2({
@@ -983,7 +824,6 @@ const FormDeleteButton = props => {
983
824
  isDisabled: props.isDisabled
984
825
  }, filterDataAttributes(props.dataAttributes)));
985
826
  };
986
-
987
827
  FormDeleteButton.propTypes = {};
988
828
  FormDeleteButton.displayName = 'FormDeleteButton';
989
829
  FormDeleteButton.defaultProps = deleteDefaultProps;
@@ -1009,22 +849,20 @@ const CustomFormModalPage = props => jsxRuntime.jsxs(ModalPage, {
1009
849
  children: props.children
1010
850
  })]
1011
851
  });
1012
-
1013
852
  CustomFormModalPage.propTypes = {};
1014
- CustomFormModalPage.displayName = 'CustomFormModalPage'; // Static export of pre-configured form control buttons to easily re-use
853
+ CustomFormModalPage.displayName = 'CustomFormModalPage';
854
+ // Static export of pre-configured form control buttons to easily re-use
1015
855
  // them in the custom controls.
1016
-
1017
856
  CustomFormModalPage.FormPrimaryButton = FormPrimaryButton;
1018
857
  CustomFormModalPage.FormSecondaryButton = FormSecondaryButton;
1019
- CustomFormModalPage.FormDeleteButton = FormDeleteButton; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
858
+ CustomFormModalPage.FormDeleteButton = FormDeleteButton;
859
+ // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1020
860
  // The Intl messages can be used for button labels.
1021
-
1022
861
  CustomFormModalPage.Intl = i18n.sharedMessages;
1023
862
 
1024
863
  const defaultProps$a = {
1025
864
  hideControls: false
1026
865
  };
1027
-
1028
866
  const FormModalPage = props => jsxRuntime.jsx(CustomFormModalPage, {
1029
867
  title: props.title,
1030
868
  subtitle: props.subtitle,
@@ -1053,18 +891,16 @@ const FormModalPage = props => jsxRuntime.jsx(CustomFormModalPage, {
1053
891
  }),
1054
892
  children: props.children
1055
893
  });
1056
-
1057
894
  FormModalPage.propTypes = {};
1058
895
  FormModalPage.displayName = 'FormModalPage';
1059
- FormModalPage.defaultProps = defaultProps$a; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
896
+ FormModalPage.defaultProps = defaultProps$a;
897
+ // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1060
898
  // The Intl messages can be used for button labels.
1061
-
1062
899
  FormModalPage.Intl = i18n.sharedMessages;
1063
900
 
1064
901
  const TabControls = /*#__PURE__*/_styled__default["default"]("div", {
1065
902
  target: "elpldre1"
1066
903
  } )("margin-top:", designSystem.designTokens.spacingS, ";" + ("" ));
1067
-
1068
904
  const ControlsContainter = props => jsxRuntime.jsxs("div", {
1069
905
  css: /*#__PURE__*/react.css("display:flex;align-items:flex-end;justify-content:space-between;margin-top:", designTokens.marginTopForTabControls, ";" + ("" ), "" ),
1070
906
  children: [jsxRuntime.jsx(TabControls, {
@@ -1072,22 +908,18 @@ const ControlsContainter = props => jsxRuntime.jsxs("div", {
1072
908
  children: props.tabControls
1073
909
  }), props.formControls]
1074
910
  });
1075
-
1076
911
  ControlsContainter.propTypes = {};
1077
912
  ControlsContainter.displayName = 'ControlsContainter';
1078
-
1079
913
  const TabularPageContainer = props => jsxRuntime.jsx("div", {
1080
914
  css: /*#__PURE__*/react.css("background-color:", props.color === 'surface' ? designSystem.designTokens.colorSurface : designTokens.backgroundColorForPageHeader, ";padding:", designTokens.paddingForTabularPageHeader, ";border-bottom:", designTokens.borderBottomForTabularPageHeader, ";" + ("" ), "" ),
1081
915
  children: props.children
1082
916
  });
1083
-
1084
917
  TabularPageContainer.propTypes = {};
1085
918
  TabularPageContainer.displayName = 'TabularPageContainer';
1086
919
  const defaultProps$9 = {
1087
920
  color: 'surface'
1088
921
  };
1089
922
  TabularPageContainer.defaultProps = defaultProps$9;
1090
-
1091
923
  const FormControlsContainer = /*#__PURE__*/_styled__default["default"]("div", {
1092
924
  target: "elpldre0"
1093
925
  } )("margin-bottom:", designSystem.designTokens.spacingM, ";" + ("" ));
@@ -1095,11 +927,7 @@ const FormControlsContainer = /*#__PURE__*/_styled__default["default"]("div", {
1095
927
  const defaultProps$8 = {
1096
928
  hideControls: false
1097
929
  };
1098
-
1099
930
  const TabularModalPage = props => {
1100
- const _useTheme = designSystem.useTheme(),
1101
- themedValue = _useTheme.themedValue;
1102
-
1103
931
  return jsxRuntime.jsxs(ModalPage, {
1104
932
  title: props.title,
1105
933
  isOpen: props.isOpen,
@@ -1115,7 +943,7 @@ const TabularModalPage = props => {
1115
943
  color: "neutral",
1116
944
  children: [props.customTitleRow || jsxRuntime.jsx(PageHeaderTitle, {
1117
945
  title: props.title,
1118
- titleSize: themedValue('small', 'big'),
946
+ titleSize: "big",
1119
947
  subtitle: props.subtitle,
1120
948
  truncate: true
1121
949
  }), jsxRuntime.jsx(ControlsContainter, {
@@ -1132,24 +960,22 @@ const TabularModalPage = props => {
1132
960
  })]
1133
961
  });
1134
962
  };
1135
-
1136
963
  TabularModalPage.propTypes = {};
1137
964
  TabularModalPage.displayName = 'TabularModalPage';
1138
- TabularModalPage.defaultProps = defaultProps$8; // Static export of pre-configured form control buttons to easily re-use
965
+ TabularModalPage.defaultProps = defaultProps$8;
966
+ // Static export of pre-configured form control buttons to easily re-use
1139
967
  // them in the custom controls.
1140
-
1141
968
  TabularModalPage.FormPrimaryButton = FormPrimaryButton;
1142
969
  TabularModalPage.FormSecondaryButton = FormSecondaryButton;
1143
- TabularModalPage.FormDeleteButton = FormDeleteButton; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
970
+ TabularModalPage.FormDeleteButton = FormDeleteButton;
971
+ // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1144
972
  // The Intl messages can be used for button labels.
1145
-
1146
973
  TabularModalPage.Intl = i18n.sharedMessages;
1147
974
 
1148
975
  const defaultProps$7 = {
1149
976
  color: 'surface',
1150
977
  previousPathLabel: messages$2.back
1151
978
  };
1152
-
1153
979
  const PageTopBar = props => {
1154
980
  const intl = reactIntl.useIntl();
1155
981
  return jsxRuntime.jsx("div", {
@@ -1165,7 +991,6 @@ const PageTopBar = props => {
1165
991
  })
1166
992
  });
1167
993
  };
1168
-
1169
994
  PageTopBar.propTypes = {};
1170
995
  PageTopBar.displayName = 'PageTopBar';
1171
996
  PageTopBar.defaultProps = defaultProps$7;
@@ -1173,18 +998,16 @@ PageTopBar.defaultProps = defaultProps$7;
1173
998
  const DetailPageContainer = /*#__PURE__*/_styled__default["default"]("div", {
1174
999
  target: "etkdonc1"
1175
1000
  } )("background-color:", designTokens.backgroundColorForPageHeader, ";padding:", designTokens.paddingForDetailPageHeader, ";border-bottom:1px ", designTokens.colorForPageHeaderBottomBorder, " solid;" + ("" ));
1176
-
1177
1001
  const HeaderControlsWrapper = /*#__PURE__*/_styled__default["default"]("div", {
1178
1002
  target: "etkdonc0"
1179
- } )("margin-top:", designSystem.designTokens.spacingS, ";" + ("" )); // NOTE: the `MessageDescriptor` type is exposed by `react-intl`.
1003
+ } )("margin-top:", designSystem.designTokens.spacingS, ";" + ("" ));
1004
+
1005
+ // NOTE: the `MessageDescriptor` type is exposed by `react-intl`.
1180
1006
  // However, we need to explicitly define this otherwise the prop-types babel plugin
1181
1007
  // does not recognize the object shape.
1182
-
1183
-
1184
1008
  const defaultProps$6 = {
1185
1009
  hideControls: false
1186
1010
  };
1187
-
1188
1011
  const CustomFormDetailPage = props => {
1189
1012
  var _props$title;
1190
1013
  return jsxRuntime.jsxs(PageWrapper, {
@@ -1208,26 +1031,24 @@ const CustomFormDetailPage = props => {
1208
1031
  })]
1209
1032
  });
1210
1033
  };
1211
-
1212
1034
  CustomFormDetailPage.propTypes = {};
1213
1035
  CustomFormDetailPage.displayName = 'CustomFormDetailPage';
1214
- CustomFormDetailPage.defaultProps = defaultProps$6; // Static export of pre-configured page header title component to easily
1036
+ CustomFormDetailPage.defaultProps = defaultProps$6;
1037
+ // Static export of pre-configured page header title component to easily
1215
1038
  // use as part of a custom title row
1216
-
1217
- CustomFormDetailPage.PageHeaderTitle = PageHeaderTitle; // Static export of pre-configured form control buttons to easily re-use
1039
+ CustomFormDetailPage.PageHeaderTitle = PageHeaderTitle;
1040
+ // Static export of pre-configured form control buttons to easily re-use
1218
1041
  // them in the custom controls.
1219
-
1220
1042
  CustomFormDetailPage.FormPrimaryButton = FormPrimaryButton;
1221
1043
  CustomFormDetailPage.FormSecondaryButton = FormSecondaryButton;
1222
- CustomFormDetailPage.FormDeleteButton = FormDeleteButton; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1044
+ CustomFormDetailPage.FormDeleteButton = FormDeleteButton;
1045
+ // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1223
1046
  // The Intl messages can be used for button labels.
1224
-
1225
1047
  CustomFormDetailPage.Intl = i18n.sharedMessages;
1226
1048
 
1227
1049
  const defaultProps$5 = {
1228
1050
  hideControls: false
1229
1051
  };
1230
-
1231
1052
  const FormDetailPage = props => jsxRuntime.jsx(CustomFormDetailPage, {
1232
1053
  title: props.title,
1233
1054
  subtitle: props.subtitle,
@@ -1251,17 +1072,16 @@ const FormDetailPage = props => jsxRuntime.jsx(CustomFormDetailPage, {
1251
1072
  }),
1252
1073
  children: props.children
1253
1074
  });
1254
-
1255
1075
  FormDetailPage.propTypes = {};
1256
1076
  FormDetailPage.displayName = 'FormDetailPage';
1257
- FormDetailPage.defaultProps = defaultProps$5; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1077
+ FormDetailPage.defaultProps = defaultProps$5;
1078
+ // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1258
1079
  // The Intl messages can be used for button labels.
1259
1080
  // Static export of pre-configured page header title component to easily
1260
1081
  // use as part of a custom title row
1261
-
1262
- FormDetailPage.PageHeaderTitle = PageHeaderTitle; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1082
+ FormDetailPage.PageHeaderTitle = PageHeaderTitle;
1083
+ // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1263
1084
  // The Intl messages can be used for button labels.
1264
-
1265
1085
  FormDetailPage.Intl = i18n.sharedMessages;
1266
1086
 
1267
1087
  const InfoDetailPage = props => jsxRuntime.jsx(CustomFormDetailPage, {
@@ -1272,17 +1092,15 @@ const InfoDetailPage = props => jsxRuntime.jsx(CustomFormDetailPage, {
1272
1092
  onPreviousPathClick: props.onPreviousPathClick,
1273
1093
  children: props.children
1274
1094
  });
1275
-
1276
1095
  InfoDetailPage.propTypes = {};
1277
- InfoDetailPage.displayName = 'InfoDetailPage'; // Static export of pre-configured page header title component to easily
1096
+ InfoDetailPage.displayName = 'InfoDetailPage';
1097
+ // Static export of pre-configured page header title component to easily
1278
1098
  // use as part of a custom title row
1279
-
1280
1099
  InfoDetailPage.PageHeaderTitle = PageHeaderTitle;
1281
1100
 
1282
1101
  const defaultProps$4 = {
1283
1102
  hideControls: false
1284
1103
  };
1285
-
1286
1104
  const TabularDetailPage = props => {
1287
1105
  var _props$title;
1288
1106
  return jsxRuntime.jsxs(PageWrapper, {
@@ -1310,24 +1128,21 @@ const TabularDetailPage = props => {
1310
1128
  })]
1311
1129
  });
1312
1130
  };
1313
-
1314
1131
  TabularDetailPage.propTypes = {};
1315
1132
  TabularDetailPage.displayName = 'TabularDetailPage';
1316
- TabularDetailPage.defaultProps = defaultProps$4; // Static export of pre-configured form control buttons to easily re-use
1133
+ TabularDetailPage.defaultProps = defaultProps$4;
1134
+ // Static export of pre-configured form control buttons to easily re-use
1317
1135
  // them in the custom controls.
1318
-
1319
1136
  TabularDetailPage.FormPrimaryButton = FormPrimaryButton;
1320
1137
  TabularDetailPage.FormSecondaryButton = FormSecondaryButton;
1321
- TabularDetailPage.FormDeleteButton = FormDeleteButton; // Static export of pre-configured page header title component to easily
1138
+ TabularDetailPage.FormDeleteButton = FormDeleteButton;
1139
+ // Static export of pre-configured page header title component to easily
1322
1140
  // use as part of a custom title row
1323
-
1324
- TabularDetailPage.PageHeaderTitle = PageHeaderTitle; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1325
-
1141
+ TabularDetailPage.PageHeaderTitle = PageHeaderTitle;
1142
+ // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1326
1143
  TabularDetailPage.Intl = i18n.sharedMessages;
1327
1144
 
1328
- const PublicPageLayout = /*#__PURE__*/react$1.lazy(() => Promise.resolve().then(function () { return require('./public-page-layout-7f46c618.cjs.prod.js'
1329
- /* webpackChunkName: "public-page-layout" */
1330
- ); }));
1145
+ const PublicPageLayout = /*#__PURE__*/react$1.lazy(() => Promise.resolve().then(function () { return require('./public-page-layout-6cbeff9f.cjs.prod.js' /* webpackChunkName: "public-page-layout" */); }));
1331
1146
 
1332
1147
  const MainPageContainer = /*#__PURE__*/_styled__default["default"]("div", {
1333
1148
  target: "ev8m2jf2"
@@ -1343,7 +1158,6 @@ const defaultProps$3 = {
1343
1158
  hideControls: false,
1344
1159
  hideDivider: false
1345
1160
  };
1346
-
1347
1161
  const CustomFormMainPage = props => {
1348
1162
  var _props$title;
1349
1163
  return jsxRuntime.jsxs(PageWrapper, {
@@ -1364,26 +1178,27 @@ const CustomFormMainPage = props => {
1364
1178
  })]
1365
1179
  });
1366
1180
  };
1367
-
1368
1181
  CustomFormMainPage.propTypes = {};
1369
1182
  CustomFormMainPage.displayName = 'CustomFormMainPage';
1370
- CustomFormMainPage.defaultProps = defaultProps$3; // Static export of pre-configured page header title component to easily
1183
+ CustomFormMainPage.defaultProps = defaultProps$3;
1184
+
1185
+ // Static export of pre-configured page header title component to easily
1371
1186
  // use as part of a custom title row
1187
+ CustomFormMainPage.PageHeaderTitle = PageHeaderTitle;
1372
1188
 
1373
- CustomFormMainPage.PageHeaderTitle = PageHeaderTitle; // Static export of pre-configured form control buttons to easily re-use
1189
+ // Static export of pre-configured form control buttons to easily re-use
1374
1190
  // them in the custom controls.
1375
-
1376
1191
  CustomFormMainPage.FormPrimaryButton = FormPrimaryButton;
1377
1192
  CustomFormMainPage.FormSecondaryButton = FormSecondaryButton;
1378
- CustomFormMainPage.FormDeleteButton = FormDeleteButton; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1379
- // The Intl messages can be used for button labels.
1193
+ CustomFormMainPage.FormDeleteButton = FormDeleteButton;
1380
1194
 
1195
+ // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1196
+ // The Intl messages can be used for button labels.
1381
1197
  CustomFormMainPage.Intl = i18n.sharedMessages;
1382
1198
 
1383
1199
  const defaultProps$2 = {
1384
1200
  hideControls: false
1385
1201
  };
1386
-
1387
1202
  const FormMainPage = props => {
1388
1203
  return jsxRuntime.jsx(CustomFormMainPage, {
1389
1204
  title: props.title,
@@ -1407,40 +1222,36 @@ const FormMainPage = props => {
1407
1222
  children: props.children
1408
1223
  });
1409
1224
  };
1410
-
1411
1225
  FormMainPage.propTypes = {};
1412
1226
  FormMainPage.displayName = 'FormMainPage';
1413
- FormMainPage.defaultProps = defaultProps$2; // Static export of pre-configured page header title component to easily
1227
+ FormMainPage.defaultProps = defaultProps$2;
1228
+
1229
+ // Static export of pre-configured page header title component to easily
1414
1230
  // use as part of a custom title row
1231
+ FormMainPage.PageHeaderTitle = PageHeaderTitle;
1415
1232
 
1416
- FormMainPage.PageHeaderTitle = PageHeaderTitle; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1233
+ // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1417
1234
  // The Intl messages can be used for button labels.
1418
-
1419
1235
  FormMainPage.Intl = i18n.sharedMessages;
1420
1236
 
1421
1237
  const InfoMainPage = props => {
1422
- const _useTheme = designSystem.useTheme(),
1423
- themedValue = _useTheme.themedValue;
1424
-
1425
1238
  return jsxRuntime.jsx(CustomFormMainPage, {
1426
1239
  title: props.title,
1427
1240
  subtitle: props.subtitle,
1428
1241
  customTitleRow: props.customTitleRow,
1429
- hideDivider: themedValue(false, true),
1242
+ hideDivider: true,
1430
1243
  children: props.children
1431
1244
  });
1432
1245
  };
1433
-
1434
1246
  InfoMainPage.propTypes = {};
1435
- InfoMainPage.displayName = 'InfoMainPage'; // Static export of pre-configured page header title component to easily
1247
+ InfoMainPage.displayName = 'InfoMainPage';
1248
+ // Static export of pre-configured page header title component to easily
1436
1249
  // use as part of a custom title row
1437
-
1438
1250
  InfoMainPage.PageHeaderTitle = PageHeaderTitle;
1439
1251
 
1440
1252
  const defaultProps$1 = {
1441
1253
  hideControls: false
1442
1254
  };
1443
-
1444
1255
  const TabularMainPage = props => {
1445
1256
  var _props$title;
1446
1257
  return jsxRuntime.jsxs(PageWrapper, {
@@ -1465,31 +1276,28 @@ const TabularMainPage = props => {
1465
1276
  })]
1466
1277
  });
1467
1278
  };
1468
-
1469
1279
  TabularMainPage.propTypes = {};
1470
1280
  TabularMainPage.displayName = 'TabularMainPage';
1471
- TabularMainPage.defaultProps = defaultProps$1; // Static export of pre-configured form control buttons to easily re-use
1281
+ TabularMainPage.defaultProps = defaultProps$1;
1282
+ // Static export of pre-configured form control buttons to easily re-use
1472
1283
  // them in the custom controls.
1473
-
1474
1284
  TabularMainPage.FormPrimaryButton = FormPrimaryButton;
1475
1285
  TabularMainPage.FormSecondaryButton = FormSecondaryButton;
1476
- TabularMainPage.FormDeleteButton = FormDeleteButton; // Static export of pre-configured page header title component to easily
1286
+ TabularMainPage.FormDeleteButton = FormDeleteButton;
1287
+ // Static export of pre-configured page header title component to easily
1477
1288
  // use as part of a custom title row
1478
-
1479
- TabularMainPage.PageHeaderTitle = PageHeaderTitle; // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1480
-
1289
+ TabularMainPage.PageHeaderTitle = PageHeaderTitle;
1290
+ // This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
1481
1291
  TabularMainPage.Intl = i18n.sharedMessages;
1482
1292
 
1483
1293
  var _ref$2 = {
1484
1294
  name: "zl1inp",
1485
1295
  styles: "display:flex;justify-content:center"
1486
1296
  } ;
1487
-
1488
1297
  var _ref2 = {
1489
1298
  name: "10lgefo",
1490
1299
  styles: "display:grid;align-items:center;justify-content:center;height:100%;white-space:pre-wrap;text-align:center"
1491
1300
  } ;
1492
-
1493
1301
  const MaintenancePageLayout = props => jsxRuntime.jsx("div", {
1494
1302
  css: _ref2,
1495
1303
  children: jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
@@ -1498,6 +1306,9 @@ const MaintenancePageLayout = props => jsxRuntime.jsx("div", {
1498
1306
  scale: "m",
1499
1307
  children: [jsxRuntime.jsx("div", {
1500
1308
  children: jsxRuntime.jsx("img", {
1309
+ style: {
1310
+ height: designSystem.designTokens.constraint7
1311
+ },
1501
1312
  src: props.imageSrc,
1502
1313
  alt: props.label
1503
1314
  })
@@ -1515,7 +1326,6 @@ const MaintenancePageLayout = props => jsxRuntime.jsx("div", {
1515
1326
  })
1516
1327
  })
1517
1328
  });
1518
-
1519
1329
  MaintenancePageLayout.propTypes = {};
1520
1330
  MaintenancePageLayout.displayName = 'MaintenancePageLayout';
1521
1331
 
@@ -1531,20 +1341,17 @@ var messages$1 = reactIntl.defineMessages({
1531
1341
  });
1532
1342
 
1533
1343
  function ownKeys$1(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; }
1534
-
1535
1344
  function _objectSpread$1(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$1(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$1(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
1536
-
1537
1345
  const getLink = msg => jsxRuntime.jsx("a", {
1538
1346
  href: constants.SUPPORT_PORTAL_URL,
1539
1347
  target: "_blank",
1540
1348
  rel: "noopener noreferrer",
1541
1349
  children: msg
1542
1350
  });
1543
-
1544
1351
  const PageNotFound = () => {
1545
1352
  const intl = reactIntl.useIntl();
1546
1353
  return jsxRuntime.jsx(MaintenancePageLayout, {
1547
- imageSrc: PageNotFoundIllustration__default["default"],
1354
+ imageSrc: PageNotFoundSVG__default["default"],
1548
1355
  title: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$1({}, messages$1.title)),
1549
1356
  label: intl.formatMessage(messages$1.title),
1550
1357
  paragraph1: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$1(_objectSpread$1({}, messages$1.paragraph1), {}, {
@@ -1554,7 +1361,6 @@ const PageNotFound = () => {
1554
1361
  }))
1555
1362
  });
1556
1363
  };
1557
-
1558
1364
  PageNotFound.displayName = 'PageNotFound';
1559
1365
 
1560
1366
  var messages = reactIntl.defineMessages({
@@ -1573,20 +1379,17 @@ var messages = reactIntl.defineMessages({
1573
1379
  });
1574
1380
 
1575
1381
  function ownKeys(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; }
1576
-
1577
1382
  function _objectSpread(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(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(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
1578
-
1579
1383
  const getSupportUrlLink = msg => jsxRuntime.jsx("a", {
1580
1384
  href: constants.SUPPORT_PORTAL_URL,
1581
1385
  target: "_blank",
1582
1386
  rel: "noopener noreferrer",
1583
1387
  children: msg
1584
1388
  });
1585
-
1586
1389
  const PageUnauthorized = () => {
1587
1390
  const intl = reactIntl.useIntl();
1588
1391
  return jsxRuntime.jsx(MaintenancePageLayout, {
1589
- imageSrc: FailedAuthorizationIllustration__default["default"],
1392
+ imageSrc: FailedAuthorizationSVG__default["default"],
1590
1393
  title: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread({}, messages.title)),
1591
1394
  label: intl.formatMessage(messages.title),
1592
1395
  paragraph1: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread({}, messages.paragraph1)),
@@ -1605,28 +1408,19 @@ const Content$1 = /*#__PURE__*/_styled__default["default"]("section", {
1605
1408
  name: "1sxg93g",
1606
1409
  styles: "grid-area:content"
1607
1410
  } );
1608
-
1609
1411
  const Container$1 = /*#__PURE__*/_styled__default["default"]("div", {
1610
1412
  target: "e1jvhtw80"
1611
1413
  } )({
1612
1414
  name: "1vpm32e",
1613
1415
  styles: "display:grid;grid-template-areas:'. content .';grid-template-columns:1fr minmax(400px, 742px) 1fr;width:100%"
1614
1416
  } );
1615
-
1616
1417
  function PageContentNarrow(props) {
1617
- const _useTheme = designSystem.useTheme(),
1618
- isNewTheme = _useTheme.isNewTheme;
1619
-
1620
- if (!isNewTheme) return jsxRuntime.jsx(jsxRuntime.Fragment, {
1621
- children: props.children
1622
- });
1623
1418
  return jsxRuntime.jsx(Container$1, {
1624
1419
  children: jsxRuntime.jsx(Content$1, {
1625
1420
  children: props.children
1626
1421
  })
1627
1422
  });
1628
1423
  }
1629
-
1630
1424
  PageContentNarrow.propTypes = {};
1631
1425
 
1632
1426
  const Content = /*#__PURE__*/_styled__default["default"]("section", {
@@ -1635,53 +1429,39 @@ const Content = /*#__PURE__*/_styled__default["default"]("section", {
1635
1429
  switch (props.columns) {
1636
1430
  case '1/1':
1637
1431
  return '1fr 1fr';
1638
-
1639
1432
  case '2/1':
1640
1433
  return '2fr 1fr';
1641
-
1642
1434
  default:
1643
1435
  return '1fr';
1644
1436
  }
1645
1437
  }, ";gap:", props => props.gapSize === '10' ? designSystem.designTokens.spacing50 : designSystem.designTokens.spacing70, ";width:100%;" + ("" ));
1646
-
1647
1438
  const LeftContentColumn = /*#__PURE__*/_styled__default["default"]("div", {
1648
1439
  target: "e1dg479f3"
1649
1440
  } )({
1650
1441
  name: "1ibwnup",
1651
1442
  styles: "grid-area:left-column"
1652
1443
  } );
1653
-
1654
1444
  const RightContentColumn = /*#__PURE__*/_styled__default["default"]("div", {
1655
1445
  target: "e1dg479f2"
1656
1446
  } )({
1657
1447
  name: "hjfyry",
1658
1448
  styles: "grid-area:right-column"
1659
1449
  } );
1660
-
1661
1450
  const RightColumnContentWrapper = /*#__PURE__*/_styled__default["default"]("div", {
1662
1451
  target: "e1dg479f1"
1663
1452
  } )("top:0;position:", props => props.columns === '2/1' ? 'sticky' : 'static', ";" + ("" ));
1664
-
1665
1453
  const Container = /*#__PURE__*/_styled__default["default"]("div", {
1666
1454
  target: "e1dg479f0"
1667
1455
  } )({
1668
1456
  name: "5phl7w",
1669
1457
  styles: "display:grid;grid-template-areas:'. content .';grid-template-columns:1fr minmax(800px, 1200px) 1fr;width:100%"
1670
1458
  } );
1671
-
1672
1459
  function PageContentWide(props) {
1673
- const _useTheme = designSystem.useTheme(props.themeParentSelector),
1674
- isNewTheme = _useTheme.isNewTheme;
1675
-
1676
1460
  const _Children$toArray = react$1.Children.toArray(props.children),
1677
- _Children$toArray2 = _slicedToArray(_Children$toArray, 2),
1678
- leftChild = _Children$toArray2[0],
1679
- rightChild = _Children$toArray2[1];
1680
-
1461
+ _Children$toArray2 = _slicedToArray(_Children$toArray, 2),
1462
+ leftChild = _Children$toArray2[0],
1463
+ rightChild = _Children$toArray2[1];
1681
1464
  utils.useWarning(props.columns !== '1' || !Boolean(rightChild), 'PageContentWide: This component only renders its first children when using a single column but you provided more that one.');
1682
- if (!isNewTheme) return jsxRuntime.jsx(jsxRuntime.Fragment, {
1683
- children: props.children
1684
- });
1685
1465
  return jsxRuntime.jsx(Container, {
1686
1466
  children: jsxRuntime.jsx(Content, {
1687
1467
  columns: props.columns,
@@ -1701,7 +1481,6 @@ function PageContentWide(props) {
1701
1481
  })
1702
1482
  });
1703
1483
  }
1704
-
1705
1484
  PageContentWide.propTypes = {};
1706
1485
  const defaultProps = {
1707
1486
  columns: '1',
@@ -1713,7 +1492,6 @@ var _ref$1 = {
1713
1492
  name: "1d3w5wq",
1714
1493
  styles: "width:100%"
1715
1494
  } ;
1716
-
1717
1495
  function PageContentFull(props) {
1718
1496
  return jsxRuntime.jsx("div", {
1719
1497
  css: _ref$1,
@@ -1722,21 +1500,18 @@ function PageContentFull(props) {
1722
1500
  })
1723
1501
  });
1724
1502
  }
1725
-
1726
1503
  PageContentFull.propTypes = {};
1727
1504
 
1728
1505
  // The width of each indentation level.
1729
1506
  const indentationSize = '48px';
1730
-
1731
1507
  const useObserverElementDimensions = element => {
1732
1508
  const _useState = react$1.useState({
1733
- height: 0,
1734
- width: 0
1735
- }),
1736
- _useState2 = _slicedToArray(_useState, 2),
1737
- dimensions = _useState2[0],
1738
- setDimensions = _useState2[1];
1739
-
1509
+ height: 0,
1510
+ width: 0
1511
+ }),
1512
+ _useState2 = _slicedToArray(_useState, 2),
1513
+ dimensions = _useState2[0],
1514
+ setDimensions = _useState2[1];
1740
1515
  useResizeObserver__default["default"](element, entry => {
1741
1516
  setDimensions({
1742
1517
  height: entry.contentRect.height,
@@ -1744,17 +1519,15 @@ const useObserverElementDimensions = element => {
1744
1519
  });
1745
1520
  });
1746
1521
  return dimensions;
1747
- }; // All modal components expect to be rendered inside this container.
1748
-
1522
+ };
1749
1523
 
1524
+ // All modal components expect to be rendered inside this container.
1750
1525
  var _ref = {
1751
1526
  name: "qk9kof",
1752
1527
  styles: "display:flex;height:1px;margin-top:-1px"
1753
1528
  } ;
1754
-
1755
1529
  const PortalsContainer = /*#__PURE__*/react$1.forwardRef((props, ref) => {
1756
1530
  var _props$offsetTop, _props$offsetLeft, _props$offsetLeftOnEx, _props$containerSelec, _props$zIndex, _props$baseModalZInde, _current, _current2;
1757
-
1758
1531
  // Initialize props with default values.
1759
1532
  // NOTE: using `defaultProps` with `forwardRef` results in the type declarations
1760
1533
  // to ignore the `defaultProps`. Therefore, the default props are typed
@@ -1768,54 +1541,48 @@ const PortalsContainer = /*#__PURE__*/react$1.forwardRef((props, ref) => {
1768
1541
  const portalsContainerRef = react$1.useRef(null);
1769
1542
  const globalNotificationsElementDimensions = useObserverElementDimensions(ref === null || ref === void 0 ? void 0 : (_current = ref.current) === null || _current === void 0 ? void 0 : _current.notificationsGlobalRef);
1770
1543
  const pageNotificationsElementDimensions = useObserverElementDimensions(ref === null || ref === void 0 ? void 0 : (_current2 = ref.current) === null || _current2 === void 0 ? void 0 : _current2.notificationsPageRef);
1771
-
1772
1544
  const _useState3 = react$1.useState([]),
1773
- _useState4 = _slicedToArray(_useState3, 2),
1774
- stackingLayers = _useState4[0],
1775
- setStackingLayers = _useState4[1]; // The mutation observer gets triggered every time a child node gets added or
1545
+ _useState4 = _slicedToArray(_useState3, 2),
1546
+ stackingLayers = _useState4[0],
1547
+ setStackingLayers = _useState4[1];
1548
+ // The mutation observer gets triggered every time a child node gets added or
1776
1549
  // removed from the portals container.
1777
1550
  // The stacking layers are then re-calculated.
1778
-
1779
-
1780
1551
  hooks.useMutationObserver(portalsContainerRef, mutationList => {
1781
1552
  var _context;
1782
-
1783
1553
  // We expect only a single element in the mutation list as we configured the
1784
1554
  // observer to only listen to `childList` changes.
1785
1555
  const _mutationList = _slicedToArray(mutationList, 1),
1786
- mutationEvent = _mutationList[0];
1787
-
1556
+ mutationEvent = _mutationList[0];
1788
1557
  let indentationLevel = 0;
1789
1558
  const nextStackingLevels = [];
1790
-
1791
1559
  _forEachInstanceProperty__default["default"](_context = mutationEvent.target.childNodes).call(_context, (node, index) => {
1792
1560
  if (node instanceof HTMLElement) {
1793
1561
  const stackingLevel = index + 1;
1794
1562
  node.dataset.level = String(stackingLevel);
1795
1563
  const overlayNode = node.firstChild;
1796
-
1797
1564
  if (overlayNode instanceof HTMLElement) {
1798
1565
  if (overlayNode.dataset.role === 'modal-overlay') {
1799
1566
  indentationLevel += 1;
1800
1567
  }
1801
1568
  }
1802
-
1803
1569
  nextStackingLevels.push({
1804
1570
  stackingLevel,
1805
1571
  indentationLevel
1806
1572
  });
1807
1573
  }
1808
1574
  });
1809
-
1810
1575
  setStackingLayers(nextStackingLevels);
1811
1576
  }, {
1812
1577
  // Only subscribe to changes to the child nodes of the portals container.
1813
1578
  childList: true
1814
1579
  });
1815
1580
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
1816
- children: [jsxRuntime.jsx(react.Global // Apply some global styles, based on the `.ReactModal__Body--open` class.
1581
+ children: [jsxRuntime.jsx(react.Global
1582
+ // Apply some global styles, based on the `.ReactModal__Body--open` class.
1817
1583
  , {
1818
- styles: [/*#__PURE__*/react.css(".ReactModal__Body--open ", containerSelectorToPreventScrollingOnOpen, "{overflow:hidden;}.ReactModal__Body--open #", constants.PORTALS_CONTAINER_ID, "{position:fixed;height:calc(\n 100% - ", offsetTop, " -\n ", globalNotificationsElementDimensions.height, "px -\n ", pageNotificationsElementDimensions.height, "px\n );width:calc(100% - ", offsetLeft, ");top:calc(\n ", offsetTop, " +\n ", globalNotificationsElementDimensions.height, "px +\n ", pageNotificationsElementDimensions.height, "px\n );right:0;bottom:0;z-index:", zIndex, ";}.ReactModal__Body--open.body__menu-open #", constants.PORTALS_CONTAINER_ID, "{width:calc(100% - ", offsetLeftOnExpandedMenu, ");}" + ("" ), "" ), // Apply styles for stacking layers.
1584
+ styles: [/*#__PURE__*/react.css(".ReactModal__Body--open ", containerSelectorToPreventScrollingOnOpen, "{overflow:hidden;}.ReactModal__Body--open #", constants.PORTALS_CONTAINER_ID, "{position:fixed;height:calc(\n 100% - ", offsetTop, " -\n ", globalNotificationsElementDimensions.height, "px -\n ", pageNotificationsElementDimensions.height, "px\n );width:calc(100% - ", offsetLeft, ");top:calc(\n ", offsetTop, " +\n ", globalNotificationsElementDimensions.height, "px +\n ", pageNotificationsElementDimensions.height, "px\n );right:0;bottom:0;z-index:", zIndex, ";}.ReactModal__Body--open.body__menu-open #", constants.PORTALS_CONTAINER_ID, "{width:calc(100% - ", offsetLeftOnExpandedMenu, ");}" + ("" ), "" ),
1585
+ // Apply styles for stacking layers.
1819
1586
  ..._mapInstanceProperty__default["default"](stackingLayers).call(stackingLayers,
1820
1587
  /**
1821
1588
  * Every "overlay" container gets assigned a sequential `z-index` level.
@@ -1825,7 +1592,8 @@ const PortalsContainer = /*#__PURE__*/react$1.forwardRef((props, ref) => {
1825
1592
  stackingLayer => /*#__PURE__*/react.css("#", constants.PORTALS_CONTAINER_ID, " .ReactModalPortal[data-level='", stackingLayer.stackingLevel, "'] [data-role$='overlay']{z-index:calc(\n ", baseModalZIndex, " + ", stackingLayer.stackingLevel, "\n );}#", constants.PORTALS_CONTAINER_ID, " .ReactModalPortal[data-level='", stackingLayer.stackingLevel, "'] [data-role='modal-overlay'] [role='dialog']{width:calc(\n 100% -\n (", indentationSize, " * ", stackingLayer.indentationLevel, ")\n );}" + ("" ), "" )), "" ]
1826
1593
  }), jsxRuntime.jsx("div", {
1827
1594
  id: constants.PORTALS_CONTAINER_ID,
1828
- ref: portalsContainerRef // The container needs a height in order to be tabbable: https://reactjs/react-modal#774
1595
+ ref: portalsContainerRef
1596
+ // The container needs a height in order to be tabbable: https://reactjs/react-modal#774
1829
1597
  ,
1830
1598
  css: _ref
1831
1599
  })]
@@ -1835,12 +1603,10 @@ PortalsContainer.displayName = 'PortalsContainer';
1835
1603
 
1836
1604
  const useModalState = function () {
1837
1605
  let isInitiallyOpen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
1838
-
1839
1606
  const _useState = react$1.useState(isInitiallyOpen),
1840
- _useState2 = _slicedToArray(_useState, 2),
1841
- isModalOpen = _useState2[0],
1842
- setIsModalOpen = _useState2[1];
1843
-
1607
+ _useState2 = _slicedToArray(_useState, 2),
1608
+ isModalOpen = _useState2[0],
1609
+ setIsModalOpen = _useState2[1];
1844
1610
  const openModal = react$1.useCallback(() => setIsModalOpen(true), []);
1845
1611
  const closeModal = react$1.useCallback(() => setIsModalOpen(false), []);
1846
1612
  return {