@commercetools-frontend/application-components 27.5.3 → 27.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commercetools-frontend-application-components.cjs.dev.js +98 -96
- package/dist/commercetools-frontend-application-components.cjs.prod.js +98 -96
- package/dist/commercetools-frontend-application-components.esm.js +10 -10
- package/dist/{custom-views-selector-BFbhQZAC.esm.js → custom-views-selector-52cf34d9.esm.js} +1 -1
- package/dist/{custom-views-selector-IhV67to_.cjs.dev.js → custom-views-selector-669191da.cjs.dev.js} +23 -23
- package/dist/{custom-views-selector-B8wefFAj.cjs.prod.js → custom-views-selector-ddbc094d.cjs.prod.js} +23 -23
- package/dist/{public-page-layout-D9RORc9N.cjs.prod.js → public-page-layout-b182d2dd.cjs.prod.js} +13 -13
- package/dist/{public-page-layout-_DPNwPKP.cjs.dev.js → public-page-layout-b92fb7e4.cjs.dev.js} +13 -13
- package/package.json +9 -9
- /package/dist/{public-page-layout-DG0IoSP5.esm.js → public-page-layout-7d1cb99f.esm.js} +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
4
6
|
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
5
7
|
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -48,7 +50,7 @@ var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instan
|
|
|
48
50
|
var useResizeObserver = require('@react-hook/resize-observer');
|
|
49
51
|
var hooks = require('@commercetools-uikit/hooks');
|
|
50
52
|
|
|
51
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
53
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
52
54
|
|
|
53
55
|
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
54
56
|
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
|
|
@@ -80,7 +82,7 @@ var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstancePro
|
|
|
80
82
|
var useResizeObserver__default = /*#__PURE__*/_interopDefault(useResizeObserver);
|
|
81
83
|
|
|
82
84
|
// NOTE: This string will be replaced on build time with the package version.
|
|
83
|
-
var version = "27.
|
|
85
|
+
var version = "27.6.0";
|
|
84
86
|
|
|
85
87
|
// We keep these tokens as they are related to page layout components which should have
|
|
86
88
|
// a slightly different layout (margins/paddings) when used within a Custom View panel.
|
|
@@ -109,8 +111,8 @@ var _ref$7 = {
|
|
|
109
111
|
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$7, !isActive && !isDisabled && /*#__PURE__*/react.css(":hover,:focus,:active{& h3{color:", designTokens.fontColorForTabLabelWhenActive, "!important;}}" + ("" ), "" )];
|
|
110
112
|
|
|
111
113
|
const _excluded$k = ["isDisabled", "exactPathMatch"];
|
|
112
|
-
function ownKeys$5(e, r) { var t = _Object$keys__default
|
|
113
|
-
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
|
|
114
|
+
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; }
|
|
115
|
+
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; }
|
|
114
116
|
const pathWithoutSearch = path => typeof path === 'string' ? path.split('?')[0] : path.pathname;
|
|
115
117
|
const warnIfMissingContent = props => {
|
|
116
118
|
Boolean(props.intlMessage) || Boolean(props.label);
|
|
@@ -121,7 +123,7 @@ const getDisabledLinkAtributes = isDisabled => isDisabled ? {
|
|
|
121
123
|
} : {};
|
|
122
124
|
const TabLabel = _ref => {
|
|
123
125
|
let children = _ref.children;
|
|
124
|
-
return jsxRuntime.jsx(Text__default
|
|
126
|
+
return jsxRuntime.jsx(Text__default["default"].Headline, {
|
|
125
127
|
as: "h3",
|
|
126
128
|
truncate: true,
|
|
127
129
|
children: children
|
|
@@ -201,10 +203,10 @@ const getModalContentStyles = props => {
|
|
|
201
203
|
`${props.zIndex + 1} !important` : 'auto', ";", gridStyle, ";" + ("" ), "" );
|
|
202
204
|
return baseStyles;
|
|
203
205
|
};
|
|
204
|
-
const ClickableDialogContent = /*#__PURE__*/_styled__default
|
|
206
|
+
const ClickableDialogContent = /*#__PURE__*/_styled__default["default"](reactDialog.Content, {
|
|
205
207
|
target: "e1nocpaa2"
|
|
206
208
|
} )(props => getModalContentStyles(props), ";" + ("" ));
|
|
207
|
-
const DialogOverlay = /*#__PURE__*/_styled__default
|
|
209
|
+
const DialogOverlay = /*#__PURE__*/_styled__default["default"]("div", {
|
|
208
210
|
target: "e1nocpaa1"
|
|
209
211
|
} )("display:flex;position:absolute;z-index:", _ref => {
|
|
210
212
|
let zIndex = _ref.zIndex;
|
|
@@ -213,7 +215,7 @@ const DialogOverlay = /*#__PURE__*/_styled__default.default("div", {
|
|
|
213
215
|
typeof zIndex === 'number' ? `${zIndex} !important` : 'auto'
|
|
214
216
|
);
|
|
215
217
|
}, ";top:0;width:100%;height:100%;background-color:rgba(32, 62, 72, 0.5);opacity:1;" + ("" ));
|
|
216
|
-
const DialogContent$1 = /*#__PURE__*/_styled__default
|
|
218
|
+
const DialogContent$1 = /*#__PURE__*/_styled__default["default"]("div", {
|
|
217
219
|
target: "e1nocpaa0"
|
|
218
220
|
} )({
|
|
219
221
|
name: "vyh6ik",
|
|
@@ -222,7 +224,7 @@ const DialogContent$1 = /*#__PURE__*/_styled__default.default("div", {
|
|
|
222
224
|
|
|
223
225
|
const _excluded$j = ["size", "getParentSelector"];
|
|
224
226
|
const getDefaultParentSelector$1 = () => document.querySelector(`#${constants.PORTALS_CONTAINER_ID}`);
|
|
225
|
-
const GridArea = /*#__PURE__*/_styled__default
|
|
227
|
+
const GridArea = /*#__PURE__*/_styled__default["default"]("div", {
|
|
226
228
|
target: "elx55gk0"
|
|
227
229
|
} )("grid-area:", props => props.name, ";" + ("" ));
|
|
228
230
|
var _ref$6 = {
|
|
@@ -279,7 +281,7 @@ const DialogContainer = _ref3 => {
|
|
|
279
281
|
}), jsxRuntime.jsx(GridArea, {
|
|
280
282
|
name: "main",
|
|
281
283
|
css: _ref2$2,
|
|
282
|
-
children: jsxRuntime.jsx(Card__default
|
|
284
|
+
children: jsxRuntime.jsx(Card__default["default"]
|
|
283
285
|
// 1. For the min-height: https://stackoverflow.com/questions/28636832/firefox-overflow-y-not-working-with-nested-flexbox/28639686#28639686
|
|
284
286
|
// 2. 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.
|
|
285
287
|
, {
|
|
@@ -299,11 +301,11 @@ const DialogContainer = _ref3 => {
|
|
|
299
301
|
DialogContainer.displayName = 'DialogContainer';
|
|
300
302
|
|
|
301
303
|
// The overflow should be "auto", to make the container scrollable
|
|
302
|
-
const DialogContent = /*#__PURE__*/_styled__default
|
|
304
|
+
const DialogContent = /*#__PURE__*/_styled__default["default"]("div", {
|
|
303
305
|
target: "eo6zkz80"
|
|
304
306
|
} )("border-top:1px solid ", designSystem.designTokens.colorNeutral90, ";padding:", designSystem.designTokens.spacing40, " 0 0;flex:1;overflow:auto;" + ("" ));
|
|
305
307
|
|
|
306
|
-
const TextTitle = props => jsxRuntime.jsx(Text__default
|
|
308
|
+
const TextTitle = props => jsxRuntime.jsx(Text__default["default"].Headline, {
|
|
307
309
|
as: "h3",
|
|
308
310
|
title: props.title,
|
|
309
311
|
truncate: true,
|
|
@@ -325,13 +327,13 @@ const Title$1 = props => {
|
|
|
325
327
|
};
|
|
326
328
|
const DialogHeader = props => jsxRuntime.jsx("div", {
|
|
327
329
|
css: /*#__PURE__*/react.css("flex:0 1 auto;display:flex;flex-direction:column;margin-bottom:", designSystem.designTokens.spacing30, ";" + ("" ), "" ),
|
|
328
|
-
children: jsxRuntime.jsxs(Spacings__default
|
|
330
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Inline, {
|
|
329
331
|
scale: "m",
|
|
330
332
|
alignItems: "center",
|
|
331
333
|
justifyContent: "space-between",
|
|
332
334
|
children: [jsxRuntime.jsx(Title$1, {
|
|
333
335
|
title: props.title
|
|
334
|
-
}), props.onClose && jsxRuntime.jsx(SecondaryIconButton__default
|
|
336
|
+
}), props.onClose && jsxRuntime.jsx(SecondaryIconButton__default["default"], {
|
|
335
337
|
label: "Close dialog",
|
|
336
338
|
onClick: props.onClose,
|
|
337
339
|
icon: jsxRuntime.jsx(icons.CloseIcon, {}),
|
|
@@ -363,12 +365,12 @@ InfoDialog.displayName = 'InfoDialog';
|
|
|
363
365
|
InfoDialog.TextTitle = TextTitle;
|
|
364
366
|
|
|
365
367
|
function filterDataAttributes(obj) {
|
|
366
|
-
return omitBy__default
|
|
368
|
+
return omitBy__default["default"](obj, (_value, key) => !_startsWithInstanceProperty__default["default"](key).call(key, 'data-'));
|
|
367
369
|
}
|
|
368
370
|
|
|
369
371
|
const _excluded$i = ["isPrimaryButtonDisabled", "dataAttributesPrimaryButton", "dataAttributesSecondaryButton"];
|
|
370
|
-
function ownKeys$4(e, r) { var t = _Object$keys__default
|
|
371
|
-
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default
|
|
372
|
+
function ownKeys$4(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; }
|
|
373
|
+
function _objectSpread$4(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$4(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$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
372
374
|
const getFormattedLabel = (label, intl) => typeof label === 'string' ? label : intl.formatMessage(label);
|
|
373
375
|
const DialogFooter = _ref => {
|
|
374
376
|
let _ref$isPrimaryButtonD = _ref.isPrimaryButtonDisabled,
|
|
@@ -381,20 +383,20 @@ const DialogFooter = _ref => {
|
|
|
381
383
|
const intl = reactIntl.useIntl();
|
|
382
384
|
return jsxRuntime.jsx("div", {
|
|
383
385
|
css: /*#__PURE__*/react.css("margin-top:", designSystem.designTokens.spacing50, ";" + ("" ), "" ),
|
|
384
|
-
children: jsxRuntime.jsxs(Spacings__default
|
|
386
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Inline, {
|
|
385
387
|
alignItems: "center",
|
|
386
388
|
justifyContent: "space-between",
|
|
387
389
|
children: [jsxRuntime.jsx("div", {
|
|
388
390
|
children: props.footerContent
|
|
389
|
-
}), jsxRuntime.jsxs(Spacings__default
|
|
391
|
+
}), jsxRuntime.jsxs(Spacings__default["default"].Inline, {
|
|
390
392
|
scale: "m",
|
|
391
393
|
alignItems: "center",
|
|
392
394
|
justifyContent: "flex-end",
|
|
393
|
-
children: [jsxRuntime.jsx(SecondaryButton__default
|
|
395
|
+
children: [jsxRuntime.jsx(SecondaryButton__default["default"], _objectSpread$4({
|
|
394
396
|
label: getFormattedLabel(props.labelSecondary, intl),
|
|
395
397
|
onClick: props.onCancel,
|
|
396
398
|
iconLeft: props.iconLeftSecondaryButton
|
|
397
|
-
}, filterDataAttributes(dataAttributesSecondaryButton))), jsxRuntime.jsx(PrimaryButton__default
|
|
399
|
+
}, filterDataAttributes(dataAttributesSecondaryButton))), jsxRuntime.jsx(PrimaryButton__default["default"], _objectSpread$4({
|
|
398
400
|
label: getFormattedLabel(props.labelPrimary, intl),
|
|
399
401
|
iconLeft: props.iconLeftPrimaryButton,
|
|
400
402
|
onClick: props.onConfirm,
|
|
@@ -489,36 +491,36 @@ FormDialog.TextTitle = TextTitle;
|
|
|
489
491
|
|
|
490
492
|
const CustomViewSelector = /*#__PURE__*/react$1.lazy(() => {
|
|
491
493
|
if (typeof window !== 'undefined' && typeof window.app !== 'undefined') {
|
|
492
|
-
return Promise.resolve().then(function () { return require('./custom-views-selector-
|
|
494
|
+
return Promise.resolve().then(function () { return require('./custom-views-selector-ddbc094d.cjs.prod.js' /* webpackChunkName: "custom-views-selector" */); });
|
|
493
495
|
}
|
|
494
|
-
return _Promise__default
|
|
496
|
+
return _Promise__default["default"].resolve({
|
|
495
497
|
default: () => null
|
|
496
498
|
});
|
|
497
499
|
});
|
|
498
500
|
|
|
499
501
|
const _excluded$f = ["truncate"],
|
|
500
502
|
_excluded2$1 = ["titleSize", "truncate"];
|
|
501
|
-
const SubtitleWrapper = /*#__PURE__*/_styled__default
|
|
503
|
+
const SubtitleWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
502
504
|
target: "epaiodd0"
|
|
503
505
|
} )("margin-top:", designSystem.designTokens.spacing20, ";" + ("" ));
|
|
504
506
|
const Title = props => {
|
|
505
507
|
switch (props.titleSize) {
|
|
506
508
|
case 'big':
|
|
507
|
-
return jsxRuntime.jsx(Text__default
|
|
509
|
+
return jsxRuntime.jsx(Text__default["default"].Headline, {
|
|
508
510
|
as: "h1",
|
|
509
511
|
title: props.title,
|
|
510
512
|
truncate: props.truncate,
|
|
511
513
|
children: props.title
|
|
512
514
|
});
|
|
513
515
|
case 'medium':
|
|
514
|
-
return jsxRuntime.jsx(Text__default
|
|
516
|
+
return jsxRuntime.jsx(Text__default["default"].Headline, {
|
|
515
517
|
as: "h2",
|
|
516
518
|
title: props.title,
|
|
517
519
|
truncate: props.truncate,
|
|
518
520
|
children: props.title
|
|
519
521
|
});
|
|
520
522
|
default:
|
|
521
|
-
return jsxRuntime.jsx(Text__default
|
|
523
|
+
return jsxRuntime.jsx(Text__default["default"].Subheadline, {
|
|
522
524
|
as: "h4",
|
|
523
525
|
title: props.title,
|
|
524
526
|
truncate: props.truncate,
|
|
@@ -539,7 +541,7 @@ const Subtitle = _ref2 => {
|
|
|
539
541
|
});
|
|
540
542
|
}
|
|
541
543
|
return jsxRuntime.jsx(SubtitleWrapper, {
|
|
542
|
-
children: jsxRuntime.jsx(Text__default
|
|
544
|
+
children: jsxRuntime.jsx(Text__default["default"].Body, {
|
|
543
545
|
title: typeof props.subtitle === 'string' ? props.subtitle : undefined,
|
|
544
546
|
truncate: truncate,
|
|
545
547
|
tone: "secondary",
|
|
@@ -590,13 +592,13 @@ const PageHeader = props => {
|
|
|
590
592
|
};
|
|
591
593
|
PageHeader.displayName = 'PageHeader';
|
|
592
594
|
|
|
593
|
-
const ContentWrapper$2 = /*#__PURE__*/_styled__default
|
|
595
|
+
const ContentWrapper$2 = /*#__PURE__*/_styled__default["default"]("div", {
|
|
594
596
|
target: "e1b7jwn02"
|
|
595
597
|
} )("flex:1;flex-basis:0;overflow:auto;margin:", designTokens.marginForPageContent, ";" + ("" ));
|
|
596
|
-
const ModalContentWrapper = /*#__PURE__*/_styled__default
|
|
598
|
+
const ModalContentWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
597
599
|
target: "e1b7jwn01"
|
|
598
600
|
} )("flex:1;flex-basis:0;overflow:auto;margin:", designSystem.designTokens.spacing50, " ", designSystem.designTokens.spacing55, ";" + ("" ));
|
|
599
|
-
const PageWrapper = /*#__PURE__*/_styled__default
|
|
601
|
+
const PageWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
600
602
|
target: "e1b7jwn00"
|
|
601
603
|
} )({
|
|
602
604
|
name: "kdbhus",
|
|
@@ -646,7 +648,7 @@ const ModalPageTopBar = _ref3 => {
|
|
|
646
648
|
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;}" + ("" ), "" ),
|
|
647
649
|
children: [jsxRuntime.jsxs("div", {
|
|
648
650
|
css: _ref$4,
|
|
649
|
-
children: [!hidePathLabel && jsxRuntime.jsx(FlatButton__default
|
|
651
|
+
children: [!hidePathLabel && jsxRuntime.jsx(FlatButton__default["default"], {
|
|
650
652
|
tone: "primary",
|
|
651
653
|
label: typeof previousPathLabel === 'string' ? previousPathLabel : intl.formatMessage(previousPathLabel),
|
|
652
654
|
icon: jsxRuntime.jsx(icons.AngleLeftIcon, {
|
|
@@ -655,17 +657,17 @@ const ModalPageTopBar = _ref3 => {
|
|
|
655
657
|
}),
|
|
656
658
|
onClick: props.onClose
|
|
657
659
|
}), props.currentPathLabel && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
658
|
-
children: [jsxRuntime.jsx(Text__default
|
|
660
|
+
children: [jsxRuntime.jsx(Text__default["default"].Detail, {
|
|
659
661
|
as: "span",
|
|
660
662
|
children: "/"
|
|
661
|
-
}), jsxRuntime.jsx(Text__default
|
|
663
|
+
}), jsxRuntime.jsx(Text__default["default"].Detail, {
|
|
662
664
|
as: "span",
|
|
663
665
|
title: props.currentPathLabel,
|
|
664
666
|
truncate: true,
|
|
665
667
|
children: props.currentPathLabel
|
|
666
668
|
})]
|
|
667
669
|
})]
|
|
668
|
-
}), props.onClose && jsxRuntime.jsx(SecondaryIconButton__default
|
|
670
|
+
}), props.onClose && jsxRuntime.jsx(SecondaryIconButton__default["default"], {
|
|
669
671
|
label: intl.formatMessage(messages$4.close),
|
|
670
672
|
onClick: props.onClose,
|
|
671
673
|
icon: jsxRuntime.jsx(LargeIconWrapper, {
|
|
@@ -705,7 +707,7 @@ const overlayShow = react.keyframes`
|
|
|
705
707
|
`;
|
|
706
708
|
|
|
707
709
|
// we can't use Overlay from Radix-ui because it doesn't appear in DOM when Dialog.Root is rendered with `modal={false}`
|
|
708
|
-
const ModalOverlay = /*#__PURE__*/_styled__default
|
|
710
|
+
const ModalOverlay = /*#__PURE__*/_styled__default["default"]("div", {
|
|
709
711
|
target: "e1jbmsa1"
|
|
710
712
|
} )("position:absolute;top:0;left:0;width:100%;height:100%;background-color:hsla(195, 35%, 20%, 0.05);z-index:", _ref => {
|
|
711
713
|
let zIndex = _ref.zIndex;
|
|
@@ -738,7 +740,7 @@ const getContentHideAnimation = size => react.keyframes({
|
|
|
738
740
|
transform: `translate3d(${size !== 'scale' ? stylesBySize[size].width : '30px'}, 0, 0)`
|
|
739
741
|
}
|
|
740
742
|
});
|
|
741
|
-
const ModalContent = /*#__PURE__*/_styled__default
|
|
743
|
+
const ModalContent = /*#__PURE__*/_styled__default["default"](reactDialog.Content, {
|
|
742
744
|
shouldForwardProp: prop => prop !== 'size',
|
|
743
745
|
target: "e1jbmsa0"
|
|
744
746
|
} )("position:absolute;top:0;right:0;height:100%;width:", _ref3 => {
|
|
@@ -812,7 +814,7 @@ const ModalPage = _ref => {
|
|
|
812
814
|
// and therefore we need wait for it to be completed
|
|
813
815
|
// before calling `onClose`.
|
|
814
816
|
setForceClose(true);
|
|
815
|
-
closingTimer.current = _setTimeout__default
|
|
817
|
+
closingTimer.current = _setTimeout__default["default"](() => {
|
|
816
818
|
onClose && onClose(event);
|
|
817
819
|
}, TRANSITION_DURATION);
|
|
818
820
|
return;
|
|
@@ -895,8 +897,8 @@ InfoModalPage.displayName = 'InfoModalPage';
|
|
|
895
897
|
const _excluded$c = ["label", "isDisabled", "dataAttributes"],
|
|
896
898
|
_excluded2 = ["label", "isDisabled", "dataAttributes"],
|
|
897
899
|
_excluded3 = ["label", "isDisabled", "dataAttributes"];
|
|
898
|
-
function ownKeys$3(e, r) { var t = _Object$keys__default
|
|
899
|
-
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
|
|
900
|
+
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; }
|
|
901
|
+
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; }
|
|
900
902
|
const useFormattedLabel = label => {
|
|
901
903
|
const intl = reactIntl.useIntl();
|
|
902
904
|
return typeof label === 'string' ? label : intl.formatMessage(label);
|
|
@@ -910,7 +912,7 @@ const FormPrimaryButton = _ref => {
|
|
|
910
912
|
dataAttributes = _ref$dataAttributes === void 0 ? {} : _ref$dataAttributes,
|
|
911
913
|
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
912
914
|
const _label = useFormattedLabel(label);
|
|
913
|
-
return jsxRuntime.jsx(PrimaryButton__default
|
|
915
|
+
return jsxRuntime.jsx(PrimaryButton__default["default"], _objectSpread$3({
|
|
914
916
|
label: _label,
|
|
915
917
|
onClick: props.onClick,
|
|
916
918
|
isDisabled: isDisabled,
|
|
@@ -927,7 +929,7 @@ const FormSecondaryButton = _ref2 => {
|
|
|
927
929
|
dataAttributes = _ref2$dataAttributes === void 0 ? {} : _ref2$dataAttributes,
|
|
928
930
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
929
931
|
const _label = useFormattedLabel(label);
|
|
930
|
-
return jsxRuntime.jsx(SecondaryButton__default
|
|
932
|
+
return jsxRuntime.jsx(SecondaryButton__default["default"], _objectSpread$3({
|
|
931
933
|
label: _label,
|
|
932
934
|
onClick: props.onClick,
|
|
933
935
|
isDisabled: isDisabled,
|
|
@@ -944,7 +946,7 @@ const FormDeleteButton = _ref3 => {
|
|
|
944
946
|
dataAttributes = _ref3$dataAttributes === void 0 ? {} : _ref3$dataAttributes,
|
|
945
947
|
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
946
948
|
const _label = useFormattedLabel(label);
|
|
947
|
-
return jsxRuntime.jsx(IconButton__default
|
|
949
|
+
return jsxRuntime.jsx(IconButton__default["default"], _objectSpread$3({
|
|
948
950
|
icon: jsxRuntime.jsx(icons.BinLinearIcon, {}),
|
|
949
951
|
label: _label,
|
|
950
952
|
onClick: props.onClick,
|
|
@@ -967,7 +969,7 @@ const CustomFormModalPage = props => jsxRuntime.jsxs(ModalPage, {
|
|
|
967
969
|
title: props.title,
|
|
968
970
|
subtitle: props.subtitle,
|
|
969
971
|
customViewLocatorCode: props.customViewLocatorCode,
|
|
970
|
-
children: !props.hideControls && props.formControls && jsxRuntime.jsx(Spacings__default
|
|
972
|
+
children: !props.hideControls && props.formControls && jsxRuntime.jsx(Spacings__default["default"].Inline, {
|
|
971
973
|
alignItems: "flex-end",
|
|
972
974
|
children: props.formControls
|
|
973
975
|
})
|
|
@@ -1025,7 +1027,7 @@ FormModalPage.displayName = 'FormModalPage';
|
|
|
1025
1027
|
// The Intl messages can be used for button labels.
|
|
1026
1028
|
FormModalPage.Intl = i18n.sharedMessages;
|
|
1027
1029
|
|
|
1028
|
-
const TabControls = /*#__PURE__*/_styled__default
|
|
1030
|
+
const TabControls = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1029
1031
|
target: "elpldre4"
|
|
1030
1032
|
} )("margin-top:", designSystem.designTokens.spacingS, ";" + ("" ));
|
|
1031
1033
|
const ControlsContainter = props => jsxRuntime.jsxs("div", {
|
|
@@ -1036,16 +1038,16 @@ const ControlsContainter = props => jsxRuntime.jsxs("div", {
|
|
|
1036
1038
|
}), props.formControls]
|
|
1037
1039
|
});
|
|
1038
1040
|
ControlsContainter.displayName = 'ControlsContainter';
|
|
1039
|
-
const TabularPageContainer = /*#__PURE__*/_styled__default
|
|
1041
|
+
const TabularPageContainer = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1040
1042
|
target: "elpldre3"
|
|
1041
1043
|
} )("background-color:", designSystem.designTokens.colorSurface, ";padding:", designTokens.paddingForTabularPageHeader, ";border-bottom:1px solid ", designSystem.designTokens.colorNeutral90, ";" + ("" ));
|
|
1042
|
-
const FormControlsContainer = /*#__PURE__*/_styled__default
|
|
1044
|
+
const FormControlsContainer = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1043
1045
|
target: "elpldre2"
|
|
1044
1046
|
} )("margin-bottom:", designSystem.designTokens.spacingM, ";" + ("" ));
|
|
1045
|
-
const CustomViewsSelectorWrapper = /*#__PURE__*/_styled__default
|
|
1047
|
+
const CustomViewsSelectorWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1046
1048
|
target: "elpldre1"
|
|
1047
1049
|
} )("margin:", designTokens.marginForCustomViewsSelectorAsTabular, ";" + ("" ));
|
|
1048
|
-
const TabularModalPageContainer = /*#__PURE__*/_styled__default
|
|
1050
|
+
const TabularModalPageContainer = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1049
1051
|
target: "elpldre0"
|
|
1050
1052
|
} )(TabularPageContainer, "{padding:", designSystem.designTokens.spacing40, " ", designSystem.designTokens.spacing55, " 0;}" + ("" ));
|
|
1051
1053
|
|
|
@@ -1075,7 +1077,7 @@ const TabularModalPage = _ref => {
|
|
|
1075
1077
|
}), jsxRuntime.jsx(ControlsContainter, {
|
|
1076
1078
|
tabControls: props.tabControls,
|
|
1077
1079
|
formControls: jsxRuntime.jsx(FormControlsContainer, {
|
|
1078
|
-
children: !hideControls && props.formControls && jsxRuntime.jsx(Spacings__default
|
|
1080
|
+
children: !hideControls && props.formControls && jsxRuntime.jsx(Spacings__default["default"].Inline, {
|
|
1079
1081
|
alignItems: "flex-end",
|
|
1080
1082
|
children: props.formControls
|
|
1081
1083
|
})
|
|
@@ -1111,7 +1113,7 @@ const PageTopBar = _ref => {
|
|
|
1111
1113
|
const intl = reactIntl.useIntl();
|
|
1112
1114
|
return jsxRuntime.jsx("div", {
|
|
1113
1115
|
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, ";" + ("" ), "" ),
|
|
1114
|
-
children: jsxRuntime.jsx(FlatButton__default
|
|
1116
|
+
children: jsxRuntime.jsx(FlatButton__default["default"], {
|
|
1115
1117
|
tone: "primary",
|
|
1116
1118
|
label: typeof previousPathLabel === 'string' ? previousPathLabel : intl.formatMessage(previousPathLabel),
|
|
1117
1119
|
icon: jsxRuntime.jsx(icons.ListIcon, {
|
|
@@ -1125,10 +1127,10 @@ const PageTopBar = _ref => {
|
|
|
1125
1127
|
PageTopBar.displayName = 'PageTopBar';
|
|
1126
1128
|
|
|
1127
1129
|
const _excluded$8 = ["hideControls"];
|
|
1128
|
-
const DetailPageContainer = /*#__PURE__*/_styled__default
|
|
1130
|
+
const DetailPageContainer = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1129
1131
|
target: "etkdonc1"
|
|
1130
1132
|
} )("background-color:", designSystem.designTokens.colorSurface, ";padding:", designTokens.paddingForDetailPageHeader, ";border-bottom:1px ", designSystem.designTokens.colorNeutral90, " solid;" + ("" ));
|
|
1131
|
-
const HeaderControlsWrapper = /*#__PURE__*/_styled__default
|
|
1133
|
+
const HeaderControlsWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1132
1134
|
target: "etkdonc0"
|
|
1133
1135
|
} )("margin-top:", designSystem.designTokens.spacingS, ";" + ("" ));
|
|
1134
1136
|
const getCustomViewsSelectorMargin = hasContentBelow => `${designSystem.designTokens.spacing40} 0 ${hasContentBelow ? designSystem.designTokens.spacing40 : '0'} 0`;
|
|
@@ -1155,7 +1157,7 @@ const CustomFormDetailPage = _ref => {
|
|
|
1155
1157
|
margin: getCustomViewsSelectorMargin(!hideControls && !!props.formControls),
|
|
1156
1158
|
customViewLocatorCode: props.customViewLocatorCode
|
|
1157
1159
|
}), !hideControls && props.formControls && jsxRuntime.jsx(HeaderControlsWrapper, {
|
|
1158
|
-
children: jsxRuntime.jsx(Spacings__default
|
|
1160
|
+
children: jsxRuntime.jsx(Spacings__default["default"].Inline, {
|
|
1159
1161
|
justifyContent: "flex-end",
|
|
1160
1162
|
children: props.formControls
|
|
1161
1163
|
})
|
|
@@ -1250,7 +1252,7 @@ const TabularDetailPage = _ref => {
|
|
|
1250
1252
|
}), jsxRuntime.jsx(ControlsContainter, {
|
|
1251
1253
|
tabControls: props.tabControls,
|
|
1252
1254
|
formControls: jsxRuntime.jsx(FormControlsContainer, {
|
|
1253
|
-
children: !hideControls && props.formControls && jsxRuntime.jsx(Spacings__default
|
|
1255
|
+
children: !hideControls && props.formControls && jsxRuntime.jsx(Spacings__default["default"].Inline, {
|
|
1254
1256
|
alignItems: "flex-end",
|
|
1255
1257
|
children: props.formControls
|
|
1256
1258
|
})
|
|
@@ -1278,17 +1280,17 @@ TabularDetailPage.PageHeaderTitle = PageHeaderTitle;
|
|
|
1278
1280
|
// This is a convenience proxy export to expose pre-defined Intl messages defined in the `@commercetools-frontend/i18n` package.
|
|
1279
1281
|
TabularDetailPage.Intl = i18n.sharedMessages;
|
|
1280
1282
|
|
|
1281
|
-
const PublicPageLayout = /*#__PURE__*/react$1.lazy(() => Promise.resolve().then(function () { return require('./public-page-layout-
|
|
1283
|
+
const PublicPageLayout = /*#__PURE__*/react$1.lazy(() => Promise.resolve().then(function () { return require('./public-page-layout-b182d2dd.cjs.prod.js' /* webpackChunkName: "public-page-layout" */); }));
|
|
1282
1284
|
|
|
1283
|
-
const MainPageContainer = /*#__PURE__*/_styled__default
|
|
1285
|
+
const MainPageContainer = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1284
1286
|
target: "ev8m2jf2"
|
|
1285
1287
|
} )("padding:", designTokens.paddingForMainPageHeader, ";" + ("" ));
|
|
1286
|
-
const Divider = /*#__PURE__*/_styled__default
|
|
1288
|
+
const Divider = /*#__PURE__*/_styled__default["default"]("hr", {
|
|
1287
1289
|
target: "ev8m2jf1"
|
|
1288
1290
|
} )("background-color:", designSystem.designTokens.colorNeutral90, ";height:1px;border:0;" + ("" ));
|
|
1289
1291
|
|
|
1290
1292
|
// NOTE: do not change "margin" to "padding" as this breaks sticky DataTable styles
|
|
1291
|
-
const MainPageContent = /*#__PURE__*/_styled__default
|
|
1293
|
+
const MainPageContent = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1292
1294
|
target: "ev8m2jf0"
|
|
1293
1295
|
} )("flex:1;flex-basis:0;overflow:auto;margin:", designTokens.marginForPageContent, ";" + ("" ));
|
|
1294
1296
|
|
|
@@ -1311,7 +1313,7 @@ const CustomFormMainPage = _ref => {
|
|
|
1311
1313
|
customViewLocatorCode: props.customViewLocatorCode
|
|
1312
1314
|
}), !hideControls && props.formControls && jsxRuntime.jsx("div", {
|
|
1313
1315
|
css: /*#__PURE__*/react.css("margin:", headerRowMargin, ";" + ("" ), "" ),
|
|
1314
|
-
children: jsxRuntime.jsx(Spacings__default
|
|
1316
|
+
children: jsxRuntime.jsx(Spacings__default["default"].Inline, {
|
|
1315
1317
|
justifyContent: "flex-end",
|
|
1316
1318
|
children: props.formControls
|
|
1317
1319
|
})
|
|
@@ -1407,7 +1409,7 @@ const TabularMainPage = _ref => {
|
|
|
1407
1409
|
}), jsxRuntime.jsx(ControlsContainter, {
|
|
1408
1410
|
tabControls: props.tabControls,
|
|
1409
1411
|
formControls: jsxRuntime.jsx(FormControlsContainer, {
|
|
1410
|
-
children: !hideControls && props.formControls && jsxRuntime.jsx(Spacings__default
|
|
1412
|
+
children: !hideControls && props.formControls && jsxRuntime.jsx(Spacings__default["default"].Inline, {
|
|
1411
1413
|
alignItems: "flex-end",
|
|
1412
1414
|
children: props.formControls
|
|
1413
1415
|
})
|
|
@@ -1446,9 +1448,9 @@ var _ref2 = {
|
|
|
1446
1448
|
} ;
|
|
1447
1449
|
const MaintenancePageLayout = props => jsxRuntime.jsx("div", {
|
|
1448
1450
|
css: _ref2,
|
|
1449
|
-
children: jsxRuntime.jsx(Constraints__default
|
|
1451
|
+
children: jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
|
|
1450
1452
|
max: 10,
|
|
1451
|
-
children: jsxRuntime.jsxs(Spacings__default
|
|
1453
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
1452
1454
|
scale: "m",
|
|
1453
1455
|
children: [jsxRuntime.jsx("div", {
|
|
1454
1456
|
children: jsxRuntime.jsx("img", {
|
|
@@ -1458,15 +1460,15 @@ const MaintenancePageLayout = props => jsxRuntime.jsx("div", {
|
|
|
1458
1460
|
src: props.imageSrc,
|
|
1459
1461
|
alt: props.label
|
|
1460
1462
|
})
|
|
1461
|
-
}), jsxRuntime.jsx(Text__default
|
|
1463
|
+
}), jsxRuntime.jsx(Text__default["default"].Headline, {
|
|
1462
1464
|
as: "h2",
|
|
1463
1465
|
children: props.title
|
|
1464
|
-
}), jsxRuntime.jsx(Text__default
|
|
1466
|
+
}), jsxRuntime.jsx(Text__default["default"].Body, {
|
|
1465
1467
|
children: props.paragraph1
|
|
1466
1468
|
}), props.bodyContent && jsxRuntime.jsx("div", {
|
|
1467
1469
|
css: _ref$3,
|
|
1468
1470
|
children: props.bodyContent
|
|
1469
|
-
}), props.paragraph2 && jsxRuntime.jsx(Text__default
|
|
1471
|
+
}), props.paragraph2 && jsxRuntime.jsx(Text__default["default"].Body, {
|
|
1470
1472
|
children: props.paragraph2
|
|
1471
1473
|
})]
|
|
1472
1474
|
})
|
|
@@ -1485,8 +1487,8 @@ var messages$3 = reactIntl.defineMessages({
|
|
|
1485
1487
|
}
|
|
1486
1488
|
});
|
|
1487
1489
|
|
|
1488
|
-
function ownKeys$2(e, r) { var t = _Object$keys__default
|
|
1489
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default
|
|
1490
|
+
function ownKeys$2(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; }
|
|
1491
|
+
function _objectSpread$2(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$2(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$2(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1490
1492
|
const getLink = msg => jsxRuntime.jsx("a", {
|
|
1491
1493
|
href: constants.SUPPORT_PORTAL_URL,
|
|
1492
1494
|
target: "_blank",
|
|
@@ -1496,7 +1498,7 @@ const getLink = msg => jsxRuntime.jsx("a", {
|
|
|
1496
1498
|
const PageNotFound = () => {
|
|
1497
1499
|
const intl = reactIntl.useIntl();
|
|
1498
1500
|
return jsxRuntime.jsx(MaintenancePageLayout, {
|
|
1499
|
-
imageSrc: PageNotFoundSVG__default
|
|
1501
|
+
imageSrc: PageNotFoundSVG__default["default"],
|
|
1500
1502
|
title: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$2({}, messages$3.title)),
|
|
1501
1503
|
label: intl.formatMessage(messages$3.title),
|
|
1502
1504
|
paragraph1: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$2(_objectSpread$2({}, messages$3.paragraph1), {}, {
|
|
@@ -1523,8 +1525,8 @@ var messages$2 = reactIntl.defineMessages({
|
|
|
1523
1525
|
}
|
|
1524
1526
|
});
|
|
1525
1527
|
|
|
1526
|
-
function ownKeys$1(e, r) { var t = _Object$keys__default
|
|
1527
|
-
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default
|
|
1528
|
+
function ownKeys$1(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; }
|
|
1529
|
+
function _objectSpread$1(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$1(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$1(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1528
1530
|
const getSupportUrlLink = msg => jsxRuntime.jsx("a", {
|
|
1529
1531
|
href: constants.SUPPORT_PORTAL_URL,
|
|
1530
1532
|
target: "_blank",
|
|
@@ -1534,7 +1536,7 @@ const getSupportUrlLink = msg => jsxRuntime.jsx("a", {
|
|
|
1534
1536
|
const PageUnauthorized = () => {
|
|
1535
1537
|
const intl = reactIntl.useIntl();
|
|
1536
1538
|
return jsxRuntime.jsx(MaintenancePageLayout, {
|
|
1537
|
-
imageSrc: FailedAuthorizationSVG__default
|
|
1539
|
+
imageSrc: FailedAuthorizationSVG__default["default"],
|
|
1538
1540
|
title: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$1({}, messages$2.title)),
|
|
1539
1541
|
label: intl.formatMessage(messages$2.title),
|
|
1540
1542
|
paragraph1: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$1({}, messages$2.paragraph1)),
|
|
@@ -1547,13 +1549,13 @@ const PageUnauthorized = () => {
|
|
|
1547
1549
|
};
|
|
1548
1550
|
PageUnauthorized.displayName = 'PageUnauthorized';
|
|
1549
1551
|
|
|
1550
|
-
const Content$1 = /*#__PURE__*/_styled__default
|
|
1552
|
+
const Content$1 = /*#__PURE__*/_styled__default["default"]("section", {
|
|
1551
1553
|
target: "e1jvhtw81"
|
|
1552
1554
|
} )({
|
|
1553
1555
|
name: "1sxg93g",
|
|
1554
1556
|
styles: "grid-area:content"
|
|
1555
1557
|
} );
|
|
1556
|
-
const Container$1 = /*#__PURE__*/_styled__default
|
|
1558
|
+
const Container$1 = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1557
1559
|
target: "e1jvhtw80"
|
|
1558
1560
|
} )({
|
|
1559
1561
|
name: "1vpm32e",
|
|
@@ -1568,7 +1570,7 @@ function PageContentNarrow(props) {
|
|
|
1568
1570
|
}
|
|
1569
1571
|
|
|
1570
1572
|
const _excluded$2 = ["columns", "gapSize"];
|
|
1571
|
-
const Content = /*#__PURE__*/_styled__default
|
|
1573
|
+
const Content = /*#__PURE__*/_styled__default["default"]("section", {
|
|
1572
1574
|
target: "e1dg479f4"
|
|
1573
1575
|
} )("grid-area:content;display:grid;grid-template-areas:", props => props.columns === '1' ? 'none' : '"left-column right-column"', ";grid-template-columns:", props => {
|
|
1574
1576
|
// NOTE: using only `?fr` can cause the layout the "break" as `fr`
|
|
@@ -1590,22 +1592,22 @@ const Content = /*#__PURE__*/_styled__default.default("section", {
|
|
|
1590
1592
|
return 'minmax(0, 1fr)';
|
|
1591
1593
|
}
|
|
1592
1594
|
}, ";gap:", props => props.gapSize === '10' ? designSystem.designTokens.spacing50 : designSystem.designTokens.spacing70, ";width:100%;" + ("" ));
|
|
1593
|
-
const LeftContentColumn = /*#__PURE__*/_styled__default
|
|
1595
|
+
const LeftContentColumn = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1594
1596
|
target: "e1dg479f3"
|
|
1595
1597
|
} )({
|
|
1596
1598
|
name: "1ibwnup",
|
|
1597
1599
|
styles: "grid-area:left-column"
|
|
1598
1600
|
} );
|
|
1599
|
-
const RightContentColumn = /*#__PURE__*/_styled__default
|
|
1601
|
+
const RightContentColumn = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1600
1602
|
target: "e1dg479f2"
|
|
1601
1603
|
} )({
|
|
1602
1604
|
name: "hjfyry",
|
|
1603
1605
|
styles: "grid-area:right-column"
|
|
1604
1606
|
} );
|
|
1605
|
-
const RightColumnContentWrapper = /*#__PURE__*/_styled__default
|
|
1607
|
+
const RightColumnContentWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1606
1608
|
target: "e1dg479f1"
|
|
1607
1609
|
} )("top:0;position:", props => props.columns === '2/1' ? 'sticky' : 'static', ";" + ("" ));
|
|
1608
|
-
const Container = /*#__PURE__*/_styled__default
|
|
1610
|
+
const Container = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1609
1611
|
target: "e1dg479f0"
|
|
1610
1612
|
} )({
|
|
1611
1613
|
name: "5phl7w",
|
|
@@ -1660,10 +1662,10 @@ function PageContentFull(props) {
|
|
|
1660
1662
|
}
|
|
1661
1663
|
|
|
1662
1664
|
const _excluded$1 = ["size", "hideControls", "onPrimaryButtonClick", "onSecondaryButtonClick"];
|
|
1663
|
-
const ContentWrapper$1 = /*#__PURE__*/_styled__default
|
|
1665
|
+
const ContentWrapper$1 = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1664
1666
|
target: "e18jo6y41"
|
|
1665
1667
|
} )("flex:1;flex-basis:0;margin:", designTokens.marginForPageContent, ";overflow:auto;" + ("" ));
|
|
1666
|
-
const HeaderWrapper = /*#__PURE__*/_styled__default
|
|
1668
|
+
const HeaderWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1667
1669
|
target: "e18jo6y40"
|
|
1668
1670
|
} )("padding:", designSystem.designTokens.spacing40, " 40px;border-bottom:1px solid ", designSystem.designTokens.colorNeutral90, ";" + ("" ));
|
|
1669
1671
|
function Drawer(_ref) {
|
|
@@ -1690,16 +1692,16 @@ function Drawer(_ref) {
|
|
|
1690
1692
|
topBarColor: props.topBarColor,
|
|
1691
1693
|
zIndex: props.zIndex,
|
|
1692
1694
|
children: [jsxRuntime.jsx(HeaderWrapper, {
|
|
1693
|
-
children: jsxRuntime.jsxs(Spacings__default
|
|
1694
|
-
children: [jsxRuntime.jsxs(Spacings__default
|
|
1695
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
1696
|
+
children: [jsxRuntime.jsxs(Spacings__default["default"].Inline, {
|
|
1695
1697
|
justifyContent: "space-between",
|
|
1696
1698
|
children: [jsxRuntime.jsx(PageHeaderTitle, {
|
|
1697
1699
|
title: props.title,
|
|
1698
1700
|
titleSize: "medium",
|
|
1699
|
-
subtitle: props.subtitle && jsxRuntime.jsx(Text__default
|
|
1701
|
+
subtitle: props.subtitle && jsxRuntime.jsx(Text__default["default"].Detail, {
|
|
1700
1702
|
children: props.subtitle
|
|
1701
1703
|
})
|
|
1702
|
-
}), props.onClose && jsxRuntime.jsx(SecondaryIconButton__default
|
|
1704
|
+
}), props.onClose && jsxRuntime.jsx(SecondaryIconButton__default["default"], {
|
|
1703
1705
|
label: intl.formatMessage(messages$4.close),
|
|
1704
1706
|
onClick: props.onClose,
|
|
1705
1707
|
icon: jsxRuntime.jsx(LargeIconWrapper, {
|
|
@@ -1707,7 +1709,7 @@ function Drawer(_ref) {
|
|
|
1707
1709
|
}),
|
|
1708
1710
|
size: "40"
|
|
1709
1711
|
})]
|
|
1710
|
-
}), jsxRuntime.jsxs(Spacings__default
|
|
1712
|
+
}), jsxRuntime.jsxs(Spacings__default["default"].Inline, {
|
|
1711
1713
|
justifyContent: "flex-end",
|
|
1712
1714
|
children: [!hideControls && props.formControls && props.formControls, !hideControls && !props.formControls && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1713
1715
|
children: [jsxRuntime.jsx(FormSecondaryButton, {
|
|
@@ -1756,13 +1758,13 @@ const isIframeReady = iFrameElementRef => {
|
|
|
1756
1758
|
return false;
|
|
1757
1759
|
}
|
|
1758
1760
|
};
|
|
1759
|
-
const ContentWrapper = /*#__PURE__*/_styled__default
|
|
1761
|
+
const ContentWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
1760
1762
|
target: "ewwxuwo1"
|
|
1761
1763
|
} )({
|
|
1762
1764
|
name: "13udsys",
|
|
1763
1765
|
styles: "height:100%"
|
|
1764
1766
|
} );
|
|
1765
|
-
const CustomPanelIframe = /*#__PURE__*/_styled__default
|
|
1767
|
+
const CustomPanelIframe = /*#__PURE__*/_styled__default["default"]("iframe", {
|
|
1766
1768
|
target: "ewwxuwo0"
|
|
1767
1769
|
} )({
|
|
1768
1770
|
name: "174lt7a",
|
|
@@ -1845,7 +1847,7 @@ function CustomViewLoader(props) {
|
|
|
1845
1847
|
|
|
1846
1848
|
// This is for backwards compatibility with custom view shell older than v24.0.0
|
|
1847
1849
|
// where the custom-view-shell does not send the CUSTOM_VIEW_READY message yet.
|
|
1848
|
-
_setTimeout__default
|
|
1850
|
+
_setTimeout__default["default"](() => {
|
|
1849
1851
|
sendInitializationMessages();
|
|
1850
1852
|
}, 500);
|
|
1851
1853
|
|
|
@@ -1910,14 +1912,14 @@ var messages = reactIntl.defineMessages({
|
|
|
1910
1912
|
});
|
|
1911
1913
|
|
|
1912
1914
|
const _excluded = ["values"];
|
|
1913
|
-
function ownKeys(e, r) { var t = _Object$keys__default
|
|
1914
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default
|
|
1915
|
+
function ownKeys(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; }
|
|
1916
|
+
function _objectSpread(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(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(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1915
1917
|
function CustomStamp(props) {
|
|
1916
1918
|
const intl = reactIntl.useIntl();
|
|
1917
1919
|
const _props$label = props.label,
|
|
1918
|
-
values = _valuesInstanceProperty__default
|
|
1920
|
+
values = _valuesInstanceProperty__default["default"](_props$label),
|
|
1919
1921
|
message = _objectWithoutProperties(_props$label, _excluded);
|
|
1920
|
-
return jsxRuntime.jsx(Stamp__default
|
|
1922
|
+
return jsxRuntime.jsx(Stamp__default["default"], {
|
|
1921
1923
|
tone: props.tone,
|
|
1922
1924
|
isCondensed: true,
|
|
1923
1925
|
label: intl.formatMessage(message, values || {}),
|
|
@@ -1971,7 +1973,7 @@ const useObserverElementDimensions = element => {
|
|
|
1971
1973
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1972
1974
|
dimensions = _useState2[0],
|
|
1973
1975
|
setDimensions = _useState2[1];
|
|
1974
|
-
useResizeObserver__default
|
|
1976
|
+
useResizeObserver__default["default"](element, entry => {
|
|
1975
1977
|
setDimensions({
|
|
1976
1978
|
height: entry.contentRect.height,
|
|
1977
1979
|
width: entry.contentRect.width
|
|
@@ -2015,7 +2017,7 @@ const PortalsContainer = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
|
2015
2017
|
mutationEvent = _mutationList[0];
|
|
2016
2018
|
let indentationLevel = 0;
|
|
2017
2019
|
const nextStackingLevels = [];
|
|
2018
|
-
_forEachInstanceProperty__default
|
|
2020
|
+
_forEachInstanceProperty__default["default"](_context = mutationEvent.target.childNodes).call(_context, (node, index) => {
|
|
2019
2021
|
if (node instanceof HTMLElement) {
|
|
2020
2022
|
const stackingLevel = index + 1;
|
|
2021
2023
|
node.dataset.level = String(stackingLevel);
|
|
@@ -2038,7 +2040,7 @@ const PortalsContainer = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
|
2038
2040
|
children: [jsxRuntime.jsx(react.Global, {
|
|
2039
2041
|
styles: [isModalOpen && /*#__PURE__*/react.css(containerSelectorToPreventScrollingOnOpen, "{overflow:hidden!important;}#", 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, ";transition:", modalWidthTransition, ";}.body__menu-open #", constants.PORTALS_CONTAINER_ID, "{width:calc(100% - ", offsetLeftOnExpandedMenu, ");transition:", modalWidthTransition, ";}" + ("" ), "" ),
|
|
2040
2042
|
// Apply styles for stacking layers.
|
|
2041
|
-
..._mapInstanceProperty__default
|
|
2043
|
+
..._mapInstanceProperty__default["default"](stackingLayers).call(stackingLayers,
|
|
2042
2044
|
/**
|
|
2043
2045
|
* Every "overlay" container gets assigned a sequential `z-index` level.
|
|
2044
2046
|
* Furthermore, the "modal overlay" containers (not "dialog") get assigned
|