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