@telefonica/mistica 12.1.0 → 12.2.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/README.md +2 -2
- package/dist/button-group.d.ts +2 -1
- package/dist/button-group.js +35 -4
- package/dist/button-group.js.flow +2 -1
- package/dist/button-layout.d.ts +2 -1
- package/dist/button-layout.js +22 -4
- package/dist/button-layout.js.flow +2 -1
- package/dist/button.js +110 -32
- package/dist/dialog.d.ts +21 -4
- package/dist/dialog.js +51 -26
- package/dist/dialog.js.flow +17 -4
- package/dist/generated/mistica-icons/icon-gift-light.js +1 -1
- package/dist/generated/mistica-icons/icon-hand-snap-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-intranet-light.js +1 -1
- package/dist/generated/mistica-icons/icon-support-agent-premium-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-support-agent-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-tag-discount-euro-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-tips-and-tricks-regular.js +2 -2
- package/dist/generated/mistica-icons/icon-world-device-filled.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-world-device-filled.js +109 -0
- package/dist/generated/mistica-icons/icon-world-device-filled.js.flow +6 -0
- package/dist/generated/mistica-icons/icon-world-device-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-world-device-light.js +115 -0
- package/dist/generated/mistica-icons/icon-world-device-light.js.flow +6 -0
- package/dist/generated/mistica-icons/icon-world-device-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-world-device-regular.js +109 -0
- package/dist/generated/mistica-icons/icon-world-device-regular.js.flow +6 -0
- package/dist/grid-layout.d.ts +16 -0
- package/dist/grid-layout.js +96 -35
- package/dist/grid-layout.js.flow +33 -1
- package/dist/header.d.ts +3 -1
- package/dist/header.js +4 -2
- package/dist/header.js.flow +7 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +58 -0
- package/dist/index.js.flow +11 -1
- package/dist/navigation-bar.js +121 -96
- package/dist/overscroll-color-context.d.ts +1 -1
- package/dist/overscroll-color-context.js +12 -14
- package/dist/overscroll-color-context.js.flow +1 -1
- package/dist/package-version.js +1 -1
- package/dist/skeleton-base.d.ts +9 -0
- package/dist/skeleton-base.js +75 -0
- package/dist/skeleton-base.js.flow +11 -0
- package/dist/skeletons.d.ts +21 -0
- package/dist/skeletons.js +232 -0
- package/dist/skeletons.js.flow +29 -0
- package/dist/skins/blau.js +1 -1
- package/dist/skins/movistar.js +1 -1
- package/dist/skins/o2-classic.js +1 -1
- package/dist/skins/o2.js +1 -1
- package/dist/skins/telefonica.js +2 -2
- package/dist/skins/utils.d.ts +2 -0
- package/dist/skins/utils.js +34 -1
- package/dist/skins/utils.js.flow +2 -0
- package/dist/skins/vivo.js +1 -1
- package/dist/tabs.d.ts +2 -1
- package/dist/tabs.js +22 -4
- package/dist/tabs.js.flow +2 -1
- package/dist-es/button-group.js +34 -4
- package/dist-es/button-layout.js +21 -4
- package/dist-es/button.js +110 -32
- package/dist-es/dialog.js +51 -25
- package/dist-es/generated/mistica-icons/icon-gift-light.js +1 -1
- package/dist-es/generated/mistica-icons/icon-hand-snap-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-intranet-light.js +1 -1
- package/dist-es/generated/mistica-icons/icon-support-agent-premium-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-support-agent-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-tag-discount-euro-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-tips-and-tricks-regular.js +2 -2
- package/dist-es/generated/mistica-icons/icon-world-device-filled.js +85 -0
- package/dist-es/generated/mistica-icons/icon-world-device-light.js +91 -0
- package/dist-es/generated/mistica-icons/icon-world-device-regular.js +85 -0
- package/dist-es/grid-layout.js +95 -35
- package/dist-es/header.js +4 -2
- package/dist-es/index.js +5 -1
- package/dist-es/navigation-bar.js +121 -96
- package/dist-es/overscroll-color-context.js +12 -14
- package/dist-es/package-version.js +1 -1
- package/dist-es/skeleton-base.js +43 -0
- package/dist-es/skeletons.js +196 -0
- package/dist-es/skins/blau.js +1 -1
- package/dist-es/skins/movistar.js +1 -1
- package/dist-es/skins/o2-classic.js +1 -1
- package/dist-es/skins/o2.js +1 -1
- package/dist-es/skins/telefonica.js +2 -2
- package/dist-es/skins/utils.js +12 -0
- package/dist-es/skins/vivo.js +1 -1
- package/dist-es/tabs.js +21 -4
- package/package.json +2 -2
package/dist-es/button.js
CHANGED
|
@@ -86,14 +86,19 @@ import Box from "./box";
|
|
|
86
86
|
import { getTextFromChildren } from "./utils/common";
|
|
87
87
|
import { eventActions, eventCategories, eventNames, useTrackingConfig } from "./utils/analytics";
|
|
88
88
|
import { useTheme } from "./hooks";
|
|
89
|
+
import { flattenChildren } from "./skins/utils";
|
|
89
90
|
export var BUTTON_MIN_WIDTH = 136;
|
|
90
91
|
var transitionTiming = "0.3s cubic-bezier(0.77, 0, 0.175, 1)";
|
|
91
92
|
var BORDER_PX = 1.5;
|
|
92
|
-
var
|
|
93
|
+
var ICON_MARGIN_PX = 8;
|
|
93
94
|
var X_PADDING_PX = 16 - BORDER_PX;
|
|
94
95
|
var Y_PADDING_PX = 12 - BORDER_PX;
|
|
95
96
|
var X_SMALL_PADDING_PX = 12 - BORDER_PX;
|
|
96
97
|
var Y_SMALL_PADDING_PX = 6 - BORDER_PX;
|
|
98
|
+
var ICON_SIZE = 24;
|
|
99
|
+
var SMALL_ICON_SIZE = 20;
|
|
100
|
+
var SPINNER_SIZE = 20;
|
|
101
|
+
var SMALL_SPINNER_SIZE = 16;
|
|
97
102
|
var commonClasses = function() {
|
|
98
103
|
return {
|
|
99
104
|
button: {
|
|
@@ -101,7 +106,6 @@ var commonClasses = function() {
|
|
|
101
106
|
position: "relative",
|
|
102
107
|
width: "auto",
|
|
103
108
|
minWidth: BUTTON_MIN_WIDTH,
|
|
104
|
-
textAlign: "center",
|
|
105
109
|
border: "".concat(BORDER_PX, "px solid transparent"),
|
|
106
110
|
borderRadius: 4,
|
|
107
111
|
overflow: "hidden",
|
|
@@ -136,6 +140,9 @@ var commonClasses = function() {
|
|
|
136
140
|
}
|
|
137
141
|
},
|
|
138
142
|
textContent: {
|
|
143
|
+
display: "flex",
|
|
144
|
+
alignItems: "center",
|
|
145
|
+
justifyContent: "center",
|
|
139
146
|
padding: "".concat(Y_PADDING_PX, "px ").concat(X_PADDING_PX, "px"),
|
|
140
147
|
opacity: 1,
|
|
141
148
|
transition: "opacity ".concat(transitionTiming, ", transform ").concat(transitionTiming),
|
|
@@ -143,9 +150,7 @@ var commonClasses = function() {
|
|
|
143
150
|
padding: "".concat(Y_SMALL_PADDING_PX, "px ").concat(X_SMALL_PADDING_PX, "px")
|
|
144
151
|
},
|
|
145
152
|
"& svg": {
|
|
146
|
-
|
|
147
|
-
verticalAlign: "bottom",
|
|
148
|
-
height: "100%"
|
|
153
|
+
display: "block"
|
|
149
154
|
}
|
|
150
155
|
},
|
|
151
156
|
isLoading: {
|
|
@@ -266,6 +271,48 @@ var useDangerButtonStyles = createUseStyles(function(theme) {
|
|
|
266
271
|
inverse: dangerButtonStyles(theme)
|
|
267
272
|
});
|
|
268
273
|
});
|
|
274
|
+
var renderButtonContent = function(param) {
|
|
275
|
+
var content = param.content, defaultIconSize = param.defaultIconSize, renderText = param.renderText;
|
|
276
|
+
var childrenArr = flattenChildren(content);
|
|
277
|
+
var length = childrenArr.length;
|
|
278
|
+
var resultChildrenArr = [];
|
|
279
|
+
var accText = [];
|
|
280
|
+
var flushAccText = function() {
|
|
281
|
+
resultChildrenArr.push(/*#__PURE__*/ _jsx(React.Fragment, {
|
|
282
|
+
children: renderText(accText)
|
|
283
|
+
}, resultChildrenArr.length));
|
|
284
|
+
accText = [];
|
|
285
|
+
};
|
|
286
|
+
childrenArr.forEach(function(element, idx) {
|
|
287
|
+
var isFirstChild = idx === 0;
|
|
288
|
+
var isLastChild = idx === length - 1;
|
|
289
|
+
var isIconElement = /*#__PURE__*/ React.isValidElement(element);
|
|
290
|
+
if (isIconElement) {
|
|
291
|
+
if (accText.length) {
|
|
292
|
+
flushAccText();
|
|
293
|
+
}
|
|
294
|
+
var _size;
|
|
295
|
+
var sizeInPx = (_size = element.props.size) !== null && _size !== void 0 ? _size : defaultIconSize;
|
|
296
|
+
resultChildrenArr.push(/*#__PURE__*/ _jsx("div", {
|
|
297
|
+
style: {
|
|
298
|
+
display: "flex",
|
|
299
|
+
alignItems: "center",
|
|
300
|
+
marginLeft: isFirstChild ? 0 : ICON_MARGIN_PX,
|
|
301
|
+
marginRight: isLastChild ? 0 : ICON_MARGIN_PX
|
|
302
|
+
},
|
|
303
|
+
children: /*#__PURE__*/ React.cloneElement(element, {
|
|
304
|
+
size: pxToRem(sizeInPx)
|
|
305
|
+
})
|
|
306
|
+
}, resultChildrenArr.length));
|
|
307
|
+
} else {
|
|
308
|
+
accText.push(element);
|
|
309
|
+
if (isLastChild) {
|
|
310
|
+
flushAccText();
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
return resultChildrenArr;
|
|
315
|
+
};
|
|
269
316
|
var Button = function(props) {
|
|
270
317
|
var eventFormat = useTrackingConfig().eventFormat;
|
|
271
318
|
var ref = useForm(), formStatus = ref.formStatus, formId = ref.formId;
|
|
@@ -288,24 +335,6 @@ var Button = function(props) {
|
|
|
288
335
|
shouldRenderSpinner,
|
|
289
336
|
formStatus
|
|
290
337
|
]);
|
|
291
|
-
var spinnerSizeRem = pxToRem(props.small ? 16 : 24);
|
|
292
|
-
var renderText = function(text) {
|
|
293
|
-
return props.small ? /*#__PURE__*/ _jsx(Text, {
|
|
294
|
-
size: 14,
|
|
295
|
-
lineHeight: 20,
|
|
296
|
-
weight: "medium",
|
|
297
|
-
truncate: 1,
|
|
298
|
-
color: "inherit",
|
|
299
|
-
as: "div",
|
|
300
|
-
children: text
|
|
301
|
-
}) : /*#__PURE__*/ _jsx(Text3, {
|
|
302
|
-
medium: true,
|
|
303
|
-
truncate: 1,
|
|
304
|
-
color: "inherit",
|
|
305
|
-
as: "div",
|
|
306
|
-
children: text
|
|
307
|
-
});
|
|
308
|
-
};
|
|
309
338
|
var createDefaultTrackingEvent = function() {
|
|
310
339
|
if (eventFormat === "google-analytics-4") {
|
|
311
340
|
return {
|
|
@@ -321,6 +350,25 @@ var Button = function(props) {
|
|
|
321
350
|
};
|
|
322
351
|
}
|
|
323
352
|
};
|
|
353
|
+
var defaultIconSize = props.small ? SMALL_ICON_SIZE : ICON_SIZE;
|
|
354
|
+
var spinnerSizeRem = pxToRem(props.small ? SMALL_SPINNER_SIZE : SPINNER_SIZE);
|
|
355
|
+
var renderText = function(element) {
|
|
356
|
+
return props.small ? /*#__PURE__*/ _jsx(Text, {
|
|
357
|
+
size: 14,
|
|
358
|
+
lineHeight: 20,
|
|
359
|
+
weight: "medium",
|
|
360
|
+
truncate: 1,
|
|
361
|
+
color: "inherit",
|
|
362
|
+
as: "div",
|
|
363
|
+
children: element
|
|
364
|
+
}) : /*#__PURE__*/ _jsx(Text3, {
|
|
365
|
+
medium: true,
|
|
366
|
+
truncate: 1,
|
|
367
|
+
color: "inherit",
|
|
368
|
+
as: "div",
|
|
369
|
+
children: element
|
|
370
|
+
});
|
|
371
|
+
};
|
|
324
372
|
var _trackingEvent;
|
|
325
373
|
var _obj;
|
|
326
374
|
var commonProps = {
|
|
@@ -338,16 +386,24 @@ var Button = function(props) {
|
|
|
338
386
|
/*#__PURE__*/ _jsx("div", {
|
|
339
387
|
"aria-hidden": showSpinner ? true : undefined,
|
|
340
388
|
className: classes.textContent,
|
|
341
|
-
children:
|
|
389
|
+
children: renderButtonContent({
|
|
390
|
+
content: props.children,
|
|
391
|
+
defaultIconSize: defaultIconSize,
|
|
392
|
+
renderText: renderText
|
|
393
|
+
})
|
|
342
394
|
}),
|
|
343
395
|
/*#__PURE__*/ _jsx("div", {
|
|
344
396
|
className: classes.loadingFiller,
|
|
345
397
|
"aria-hidden": true,
|
|
346
398
|
style: {
|
|
347
399
|
paddingLeft: spinnerSizeRem,
|
|
348
|
-
paddingRight:
|
|
400
|
+
paddingRight: ICON_MARGIN_PX + 2 * (props.small ? X_SMALL_PADDING_PX : X_PADDING_PX)
|
|
349
401
|
},
|
|
350
|
-
children:
|
|
402
|
+
children: renderButtonContent({
|
|
403
|
+
content: loadingText,
|
|
404
|
+
defaultIconSize: defaultIconSize,
|
|
405
|
+
renderText: renderText
|
|
406
|
+
})
|
|
351
407
|
}),
|
|
352
408
|
/*#__PURE__*/ _jsxs("div", {
|
|
353
409
|
"aria-hidden": showSpinner ? undefined : true,
|
|
@@ -372,7 +428,11 @@ var Button = function(props) {
|
|
|
372
428
|
}),
|
|
373
429
|
loadingText ? /*#__PURE__*/ _jsx(Box, {
|
|
374
430
|
paddingLeft: 8,
|
|
375
|
-
children:
|
|
431
|
+
children: renderButtonContent({
|
|
432
|
+
content: loadingText,
|
|
433
|
+
defaultIconSize: defaultIconSize,
|
|
434
|
+
renderText: renderText
|
|
435
|
+
})
|
|
376
436
|
}) : null
|
|
377
437
|
]
|
|
378
438
|
})
|
|
@@ -449,6 +509,14 @@ var useButtonLinkStyles = createUseStyles(function(theme) {
|
|
|
449
509
|
}),
|
|
450
510
|
"&[disabled]": disabledStyle
|
|
451
511
|
},
|
|
512
|
+
textContent: {
|
|
513
|
+
display: "flex",
|
|
514
|
+
alignItems: "center",
|
|
515
|
+
justifyContent: "center",
|
|
516
|
+
"& svg": {
|
|
517
|
+
display: "block"
|
|
518
|
+
}
|
|
519
|
+
},
|
|
452
520
|
inverse: {
|
|
453
521
|
color: theme.colors.textLinkInverse,
|
|
454
522
|
"&:enabled:active": {
|
|
@@ -485,17 +553,27 @@ export var ButtonLink = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
485
553
|
};
|
|
486
554
|
}
|
|
487
555
|
};
|
|
556
|
+
var renderText = function(element) {
|
|
557
|
+
return /*#__PURE__*/ _jsx(Text2, {
|
|
558
|
+
medium: true,
|
|
559
|
+
truncate: 1,
|
|
560
|
+
color: "inherit",
|
|
561
|
+
children: element
|
|
562
|
+
});
|
|
563
|
+
};
|
|
488
564
|
var _trackingEvent;
|
|
489
565
|
var _obj;
|
|
490
566
|
var commonProps = {
|
|
491
567
|
className: classnames(classes.link, (_obj = {}, _defineProperty(_obj, classes.inverse, isInverse), _defineProperty(_obj, classes.aligned, props.aligned), _obj)),
|
|
492
568
|
trackingEvent: (_trackingEvent = props.trackingEvent) !== null && _trackingEvent !== void 0 ? _trackingEvent : props.trackEvent ? createDefaultTrackingEvent() : undefined,
|
|
493
569
|
dataAttributes: props.dataAttributes,
|
|
494
|
-
children: /*#__PURE__*/ _jsx(
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
570
|
+
children: /*#__PURE__*/ _jsx("div", {
|
|
571
|
+
className: classes.textContent,
|
|
572
|
+
children: renderButtonContent({
|
|
573
|
+
content: props.children,
|
|
574
|
+
defaultIconSize: SMALL_ICON_SIZE,
|
|
575
|
+
renderText: renderText
|
|
576
|
+
})
|
|
499
577
|
}),
|
|
500
578
|
disabled: props.disabled || formStatus === "sending"
|
|
501
579
|
};
|
package/dist-es/dialog.js
CHANGED
|
@@ -142,6 +142,7 @@ import { ESC } from "./utils/key-codes";
|
|
|
142
142
|
import Box from "./box";
|
|
143
143
|
import { isOldChrome, isRunningAcceptanceTest } from "./utils/platform";
|
|
144
144
|
import { useSetModalState } from "./modal-context-provider";
|
|
145
|
+
import Stack from "./stack";
|
|
145
146
|
var animationsSupported = function(platformOverrides) {
|
|
146
147
|
return !isOldChrome(platformOverrides) && process.env.NODE_ENV !== "test" && !isRunningAcceptanceTest(platformOverrides);
|
|
147
148
|
};
|
|
@@ -238,7 +239,7 @@ var useDialogStyles = createUseStyles(function(theme) {
|
|
|
238
239
|
});
|
|
239
240
|
var Dialog = function(props) {
|
|
240
241
|
var ref = useTheme(), texts = ref.texts, colors = ref.colors;
|
|
241
|
-
var className = props.className, title = props.title, message = props.message, icon = props.icon, _cancelText = props.cancelText, cancelText = _cancelText === void 0 ? texts.dialogCancelButton : _cancelText, _acceptText = props.acceptText, acceptText = _acceptText === void 0 ? texts.dialogAcceptButton : _acceptText, handleCancel = props.onCancel, handleAccept = props.onAccept, _showCancel = props.showCancel, showCancel = _showCancel === void 0 ? false : _showCancel, _destructive = props.destructive, destructive = _destructive === void 0 ? false : _destructive;
|
|
242
|
+
var className = props.className, title = props.title, message = props.message, icon = props.icon, extra = props.extra, _cancelText = props.cancelText, cancelText = _cancelText === void 0 ? texts.dialogCancelButton : _cancelText, _acceptText = props.acceptText, acceptText = _acceptText === void 0 ? texts.dialogAcceptButton : _acceptText, handleCancel = props.onCancel, handleAccept = props.onAccept, _showCancel = props.showCancel, showCancel = _showCancel === void 0 ? false : _showCancel, _destructive = props.destructive, destructive = _destructive === void 0 ? false : _destructive;
|
|
242
243
|
var isTabletOrSmaller = useScreenSize().isTabletOrSmaller;
|
|
243
244
|
var withSecondaryButton = showCancel && !!handleCancel;
|
|
244
245
|
var classes = useDialogStyles({
|
|
@@ -267,10 +268,16 @@ var Dialog = function(props) {
|
|
|
267
268
|
}),
|
|
268
269
|
/*#__PURE__*/ _jsx("div", {
|
|
269
270
|
className: classes.dialogContent,
|
|
270
|
-
children: /*#__PURE__*/
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
272
|
+
space: 16,
|
|
273
|
+
children: [
|
|
274
|
+
/*#__PURE__*/ _jsx(Text3, {
|
|
275
|
+
color: colors.textSecondary,
|
|
276
|
+
light: true,
|
|
277
|
+
children: message
|
|
278
|
+
}),
|
|
279
|
+
extra
|
|
280
|
+
]
|
|
274
281
|
})
|
|
275
282
|
}),
|
|
276
283
|
/*#__PURE__*/ _jsx(Box, {
|
|
@@ -340,6 +347,19 @@ var useNativeDialog = function(param) {
|
|
|
340
347
|
renderNative
|
|
341
348
|
]);
|
|
342
349
|
};
|
|
350
|
+
var NativeModalDialog = function(props) {
|
|
351
|
+
useNativeDialog({
|
|
352
|
+
renderNative: true,
|
|
353
|
+
acceptText: props.acceptText || props.dialogAcceptButton,
|
|
354
|
+
cancelText: props.cancelText || props.dialogCancelButton,
|
|
355
|
+
showCancel: props.showCancel,
|
|
356
|
+
message: props.message,
|
|
357
|
+
title: props.title,
|
|
358
|
+
onAccept: props.onAccept,
|
|
359
|
+
onCancel: props.onCancel
|
|
360
|
+
});
|
|
361
|
+
return null;
|
|
362
|
+
};
|
|
343
363
|
var ModalDialog = function(props) {
|
|
344
364
|
var platformOverrides = useTheme().platformOverrides;
|
|
345
365
|
var context = React.useContext(ThemeContext);
|
|
@@ -351,7 +371,7 @@ var ModalDialog = function(props) {
|
|
|
351
371
|
if (!context) {
|
|
352
372
|
throw Error("To use @telefonica/mistica components you must instantiate <ThemeContextProvider> as their parent.");
|
|
353
373
|
}
|
|
354
|
-
var renderNative = isWebViewBridgeAvailable();
|
|
374
|
+
var renderNative = !props.forceWeb && isWebViewBridgeAvailable();
|
|
355
375
|
var onAccept = props.onAccept, isClosing = props.isClosing, onCancel = props.onCancel, onCloseTransitionEnd = props.onCloseTransitionEnd, dialogProps = _objectWithoutProperties(props, [
|
|
356
376
|
"onAccept",
|
|
357
377
|
"isClosing",
|
|
@@ -395,16 +415,6 @@ var ModalDialog = function(props) {
|
|
|
395
415
|
}, [
|
|
396
416
|
handleKeyDown
|
|
397
417
|
]);
|
|
398
|
-
useNativeDialog({
|
|
399
|
-
renderNative: renderNative,
|
|
400
|
-
acceptText: props.acceptText || context.texts.dialogAcceptButton,
|
|
401
|
-
cancelText: props.cancelText || context.texts.dialogCancelButton,
|
|
402
|
-
showCancel: props.showCancel,
|
|
403
|
-
message: props.message,
|
|
404
|
-
title: props.title,
|
|
405
|
-
onAccept: props.onAccept,
|
|
406
|
-
onCancel: props.onCancel
|
|
407
|
-
});
|
|
408
418
|
React.useEffect(function() {
|
|
409
419
|
if (!animationsSupported(platformOverrides)) {
|
|
410
420
|
addKeyDownListener();
|
|
@@ -436,7 +446,10 @@ var ModalDialog = function(props) {
|
|
|
436
446
|
setModalState
|
|
437
447
|
]);
|
|
438
448
|
var _modalClose;
|
|
439
|
-
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/no-static-element-interactions */ return renderNative ?
|
|
449
|
+
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/no-static-element-interactions */ return renderNative ? /*#__PURE__*/ _jsx(NativeModalDialog, _objectSpread({}, props, {
|
|
450
|
+
dialogAcceptButton: context.texts.dialogAcceptButton,
|
|
451
|
+
dialogCancelButton: context.texts.dialogCancelButton
|
|
452
|
+
})) : /*#__PURE__*/ _jsx(Portal, {
|
|
440
453
|
children: /*#__PURE__*/ _jsx("div", {
|
|
441
454
|
className: classes.wrapper,
|
|
442
455
|
children: /*#__PURE__*/ _jsx(FocusTrap, {
|
|
@@ -574,13 +587,13 @@ var DialogRoot = /*#__PURE__*/ function(_Component) {
|
|
|
574
587
|
};
|
|
575
588
|
_proto.render = function render() {
|
|
576
589
|
var _state = this.state, isClosing = _state.isClosing, dialogProps = _state.dialogProps;
|
|
577
|
-
var
|
|
590
|
+
var dialog1 = null;
|
|
578
591
|
if (dialogProps && this.state.instanceNumber === 1) {
|
|
579
592
|
var onCancel = dialogProps.onCancel, onAccept = dialogProps.onAccept, rest = _objectWithoutProperties(dialogProps, [
|
|
580
593
|
"onCancel",
|
|
581
594
|
"onAccept"
|
|
582
595
|
]);
|
|
583
|
-
|
|
596
|
+
dialog1 = /*#__PURE__*/ _jsx(ModalDialog, _objectSpread({
|
|
584
597
|
onCancel: this.createCancelHandler(onCancel),
|
|
585
598
|
onAccept: this.createAcceptHandler(onAccept),
|
|
586
599
|
isClosing: isClosing,
|
|
@@ -590,27 +603,40 @@ var DialogRoot = /*#__PURE__*/ function(_Component) {
|
|
|
590
603
|
return /*#__PURE__*/ _jsxs(_Fragment, {
|
|
591
604
|
children: [
|
|
592
605
|
this.props.children,
|
|
593
|
-
|
|
606
|
+
dialog1
|
|
594
607
|
]
|
|
595
608
|
});
|
|
596
609
|
};
|
|
597
610
|
return DialogRoot;
|
|
598
611
|
}(React.Component);
|
|
599
612
|
export { DialogRoot as default };
|
|
600
|
-
var showDialog = function() {
|
|
601
|
-
var showCancel =
|
|
613
|
+
var showDialog = function(param) {
|
|
614
|
+
var showCancel = param.showCancel, forceWeb = param.forceWeb;
|
|
602
615
|
return function(props) {
|
|
603
616
|
if (!dialogInstance) {
|
|
604
617
|
throw Error("Tried to show a dialog but the DialogRoot component was not mounted (mount <ThemeContextProvider>)");
|
|
605
618
|
}
|
|
606
619
|
dialogInstance.show(_objectSpread({
|
|
607
|
-
showCancel: showCancel
|
|
620
|
+
showCancel: showCancel,
|
|
621
|
+
forceWeb: forceWeb
|
|
608
622
|
}, props));
|
|
609
623
|
};
|
|
610
624
|
};
|
|
611
625
|
/**
|
|
612
626
|
* Shows alert dialog with supplied props
|
|
613
|
-
*/ export var alert = showDialog(
|
|
627
|
+
*/ export var alert = showDialog({
|
|
628
|
+
showCancel: false,
|
|
629
|
+
forceWeb: false
|
|
630
|
+
});
|
|
614
631
|
/**
|
|
615
632
|
* Shows confirm dialog with supplied props
|
|
616
|
-
*/ export var confirm = showDialog(
|
|
633
|
+
*/ export var confirm = showDialog({
|
|
634
|
+
showCancel: true,
|
|
635
|
+
forceWeb: false
|
|
636
|
+
});
|
|
637
|
+
/**
|
|
638
|
+
* Shows dialog with supplied props
|
|
639
|
+
*/ export var dialog = showDialog({
|
|
640
|
+
showCancel: false,
|
|
641
|
+
forceWeb: true
|
|
642
|
+
});
|
|
@@ -78,7 +78,7 @@ var IconGiftLight = function(_param) {
|
|
|
78
78
|
role: "presentation"
|
|
79
79
|
}, rest, {
|
|
80
80
|
children: /*#__PURE__*/ _jsx("path", {
|
|
81
|
-
d: "M19.675 21.242H12.19v-8.677h7.107v4.53c0 .207.167.376.373.376a.376.376 0 00.374-.377V10.3a1.883 1.883 0 00-1.
|
|
81
|
+
d: "M19.675 21.242H12.19v-8.677h7.107v4.53c0 .207.167.376.373.376a.376.376 0 00.374-.377V10.3a1.883 1.883 0 00-1.873-1.888h-1.005a3.589 3.589 0 001.379-2.83C18.545 3.609 16.95 2 14.992 2c-1.686 0-3.099 1.193-3.463 2.786a2.599 2.599 0 00-1.963-.898 2.632 2.632 0 00-2.62 2.641c0 .739.302 1.405.79 1.888H5.453c-1.03 0-1.872.845-1.872 1.888v11.318c0 .208.168.377.374.377h15.712a.376.376 0 00.373-.377.372.372 0 00-.364-.381zM12.19 5.588c0-1.56 1.26-2.83 2.806-2.83 1.547 0 2.807 1.27 2.807 2.83s-1.26 2.83-2.807 2.83H12.19v-2.83zm5.986 3.582c.618 0 1.12.507 1.12 1.13v1.507H12.19V9.17h5.986zm-6.733 12.072H4.337v-8.677h7.106v8.677zm-7.106-9.43v-1.507c0-.623.502-1.13 1.12-1.13h5.986v2.637H4.337zm7.106-3.395H9.571A1.883 1.883 0 017.698 6.53a1.88 1.88 0 011.873-1.888 1.88 1.88 0 011.872 1.888v1.888zm8.232 11.69a.751.751 0 00.747-.753.751.751 0 00-.747-.753.751.751 0 00-.747.753.75.75 0 00.747.753z",
|
|
82
82
|
fill: fillColor
|
|
83
83
|
})
|
|
84
84
|
}));
|
|
@@ -77,7 +77,7 @@ var IconHandSnapFilled = function(_param) {
|
|
|
77
77
|
role: "presentation"
|
|
78
78
|
}, rest, {
|
|
79
79
|
children: /*#__PURE__*/ _jsx("path", {
|
|
80
|
-
d: "M9.222 2.716v3.587a.707.707 0 01-.695.717.707.707 0 01-.694-.717V2.716c0-.395.
|
|
80
|
+
d: "M9.222 2.716v3.587a.707.707 0 01-.695.717.707.707 0 01-.694-.717V2.716c0-.395.311-.716.694-.716.383 0 .695.321.695.716zm10.972 14.751c.325-.34.507-.79.507-1.267 0-.482-.182-.933-.516-1.277a1.69 1.69 0 00-1.029-.505 1.834 1.834 0 00-.2-2.283 1.7 1.7 0 00-1.029-.505 1.834 1.834 0 00-.2-2.282 1.703 1.703 0 00-.989-.5l2.467-2.545a1.836 1.836 0 000-2.535 1.704 1.704 0 00-2.458 0L9.128 11.63 6.403 8.82a1.672 1.672 0 00-2.422 0 1.77 1.77 0 00-.503 1.249c0 .473.178.914.503 1.249l1.79 1.846a5.5 5.5 0 011.434 2.723l.254 1.236a6.21 6.21 0 001.62 3.081 5.882 5.882 0 003.901 1.791h.008l.02.001c.038.001.111.004.213.004.69 0 2.693-.12 3.922-1.428a8.106 8.106 0 01.235-.216c.055-.05.11-.1.162-.152l2.654-2.737zM6.928 6.157a.734.734 0 010 1.014.685.685 0 01-.49.211.667.667 0 01-.49-.21L3.514 4.658a.734.734 0 010-1.015.681.681 0 01.984 0l2.43 2.512zm4.176 1.014l2.436-2.512a.734.734 0 000-1.015.681.681 0 00-.984 0L10.12 6.156a.734.734 0 000 1.015.667.667 0 00.49.211.703.703 0 00.494-.21z",
|
|
81
81
|
fill: fillColor
|
|
82
82
|
})
|
|
83
83
|
}));
|
|
@@ -79,7 +79,7 @@ var IconIntranetLight = function(_param) {
|
|
|
79
79
|
}, rest, {
|
|
80
80
|
children: [
|
|
81
81
|
/*#__PURE__*/ _jsx("path", {
|
|
82
|
-
d: "M2 12C2 6.5 6.5 2 12 2s10 4.5 10 10a9.871 9.871 0 01-1.572 5.356c-.104.18-.32.216-.5.108-.18-.104-.216-.32-.108-.5a9.588 9.588 0 001.428-4.608H17.32c-.036 3.824-1.216 7.036-2.928 8.608.892-.252 1.752-.608 2.536-1.108.176-.108.392-.072.5.108.108.176.072.392-.108.5A9.925 9.925 0 0112 22C6.5 22 2 17.5 2 12zm5.464-5.356c.5-1.536 1.248-2.784 2.144-3.608C5.752 4.072 2.856 7.5 2.716 11.644h3.928c0-.536.036-1.036.108-1.536a1.823 1.823 0 01-1.18-1.68c0-1 .784-1.784 1.784-1.784h.108zm.964 1.784c0
|
|
82
|
+
d: "M2 12C2 6.5 6.5 2 12 2s10 4.5 10 10a9.871 9.871 0 01-1.572 5.356c-.104.18-.32.216-.5.108-.18-.104-.216-.32-.108-.5a9.588 9.588 0 001.428-4.608H17.32c-.036 3.824-1.216 7.036-2.928 8.608.892-.252 1.752-.608 2.536-1.108.176-.108.392-.072.5.108.108.176.072.392-.108.5A9.925 9.925 0 0112 22C6.5 22 2 17.5 2 12zm5.464-5.356c.5-1.536 1.248-2.784 2.144-3.608C5.752 4.072 2.856 7.5 2.716 11.644h3.928c0-.536.036-1.036.108-1.536a1.823 1.823 0 01-1.18-1.68c0-1 .784-1.784 1.784-1.784h.108zm.964 1.784c0-.608-.468-1.068-1.072-1.072-.608 0-1.072.464-1.072 1.072 0 .608.468 1.072 1.072 1.072.608 0 1.072-.464 1.072-1.072zM6.64 12.356H2.716c.14 4.144 3.036 7.572 6.888 8.608-1.712-1.572-2.892-4.788-2.964-8.608zm5.004 8.928v-8.928H7.36c.104 4.716 1.96 8.572 4.284 8.928zm-4.284-9.64h4.284l.004-8.924c-1.428.212-2.712 1.856-3.464 4.14.568.288.964.892.964 1.572 0 .96-.752 1.748-1.68 1.784a9.186 9.186 0 00-.108 1.428zm4.996 9.64c2.32-.356 4.18-4.216 4.284-8.928h-4.284v8.928zm0-18.568v8.928h4.284c-.104-4.716-1.96-8.572-4.284-8.928zm5 8.928h3.928c-.144-4.144-3.036-7.572-6.892-8.608 1.712 1.572 2.892 4.788 2.964 8.608z",
|
|
83
83
|
fill: fillColor
|
|
84
84
|
}),
|
|
85
85
|
/*#__PURE__*/ _jsx("path", {
|
|
@@ -78,7 +78,7 @@ var IconSupportAgentPremiumRegular = function(_param) {
|
|
|
78
78
|
}, rest, {
|
|
79
79
|
children: [
|
|
80
80
|
/*#__PURE__*/ _jsx("path", {
|
|
81
|
-
d: "M19.481 11.645h-1.
|
|
81
|
+
d: "M19.481 11.645h-1.056c-.236.427-.58.823-.945 1.14 2.447.787 4.048 2.642 4.048 4.96v3.535c0 .396-.31.716-.683.716-.377 0-.682-.324-.682-.716v-3.498c0-2.283-2.279-3.962-5.442-3.962-.919 0-1.773.144-2.52.391-.339.108-.747-.107-.85-.463-.102-.356.103-.784.443-.892.019-.02.049-.029.084-.04a.464.464 0 00.087-.032A4.763 4.763 0 0110.3 9.142c0-2.567 1.974-4.638 4.42-4.638 2.447 0 4.422 2.067 4.422 4.638 0 .356-.069.715-.137 1.071h.476c.377 0 .682-.324.682-.715v-.216c0-3.107-2.348-5.746-5.24-5.854-1.494-.036-2.893.536-3.98 1.608C9.859 6.107 9.279 7.57 9.279 9.142c0 .396-.308.715-.682.715-.377 0-.682-.323-.682-.715 0-1.963.75-3.783 2.077-5.138 1.326-1.355 3.095-2.071 4.966-1.999 3.64.144 6.567 3.39 6.567 7.28v.217c0 1.18-.919 2.143-2.043 2.143zm-4.764-5.71c-1.7 0-3.06 1.427-3.06 3.21 0 1.788 1.36 3.215 3.056 3.22.717 0 1.395-.289 1.906-.716h-1.224c-.377 0-.682-.32-.682-.716 0-.396.309-.716.682-.716h2.21a3.51 3.51 0 00.172-1.071c0-1.784-1.36-3.21-3.06-3.21z",
|
|
82
82
|
fill: fillColor
|
|
83
83
|
}),
|
|
84
84
|
/*#__PURE__*/ _jsx("path", {
|
|
@@ -90,7 +90,7 @@ var IconSupportAgentRegular = function(_param) {
|
|
|
90
90
|
role: "presentation"
|
|
91
91
|
}, rest, {
|
|
92
92
|
children: /*#__PURE__*/ _jsx("path", {
|
|
93
|
-
d: "M17.153 11.642H16.
|
|
93
|
+
d: "M17.153 11.642H16.03a4.82 4.82 0 01-1.043 1.124c2.651.788 4.379 2.64 4.379 4.967v3.547c0 .396-.33.716-.738.716a.726.726 0 01-.738-.716v-3.547c0-2.288-2.478-3.951-5.893-3.951-1.719 0-3.257.424-4.337 1.188-1.019.72-1.555 1.68-1.555 2.767v3.547c0 .396-.33.716-.738.716a.726.726 0 01-.738-.716v-3.547c0-1.54.767-2.931 2.157-3.92.635-.447 1.39-.799 2.222-1.047-1.097-.852-1.802-2.163-1.802-3.627 0-2.56 2.148-4.643 4.787-4.643 2.64 0 4.788 2.083 4.788 4.643 0 .368-.046.728-.128 1.072h.499a.73.73 0 00.738-.716v-.204c0-3.123-2.544-5.755-5.674-5.863a5.955 5.955 0 00-4.309 1.6C6.75 6.12 6.11 7.579 6.11 9.142c0 .397-.33.717-.738.717a.726.726 0 01-.738-.716c0-1.956.8-3.78 2.251-5.139 1.448-1.36 3.361-2.068 5.381-2a7.32 7.32 0 015.051 2.256 7.236 7.236 0 012.046 5.035v.204c0 1.183-.994 2.143-2.21 2.143zm-5.155-5.714c-1.83 0-3.315 1.443-3.315 3.215 0 1.771 1.489 3.211 3.32 3.22.787 0 1.509-.269 2.078-.717h-1.345a.726.726 0 01-.738-.716c0-.395.33-.715.739-.715h2.387a3.09 3.09 0 00.19-1.072c0-1.776-1.485-3.215-3.316-3.215z",
|
|
94
94
|
fill: fillColor
|
|
95
95
|
})
|
|
96
96
|
}));
|
|
@@ -78,7 +78,7 @@ var IconTagDiscountEuroRegular = function(_param) {
|
|
|
78
78
|
}, rest, {
|
|
79
79
|
children: [
|
|
80
80
|
/*#__PURE__*/ _jsx("path", {
|
|
81
|
-
d: "M20.34 2.213a.674.674 0 01.984 0 .751.751 0 010 1.028l-1.188 1.243v8.423a.746.746 0 01-.21.521l-7.743 7.94a2.019 2.019 0 01-2.946-.01L3.09 14.93a2.254 2.254 0 010-3.085l7.503-8.167a.68.68 0 01.503-.224h8.055l1.188-1.242zm-9.136 18.116l7.539-7.725h-.005V5.94l-.899.94a.67.67 0 01-.
|
|
81
|
+
d: "M20.34 2.213a.674.674 0 01.984 0 .751.751 0 010 1.028l-1.188 1.243v8.423a.746.746 0 01-.21.521l-7.743 7.94a2.019 2.019 0 01-2.946-.01L3.09 14.93a2.254 2.254 0 010-3.085l7.503-8.167a.68.68 0 01.503-.224h8.055l1.188-1.242zm-9.136 18.116l7.539-7.725h-.005V5.94l-.899.94a.67.67 0 01-.979 0 .751.751 0 010-1.028l.9-.945h-6.37l-7.307 7.958a.754.754 0 00-.009 1.038l6.146 6.426a.674.674 0 00.984 0z",
|
|
82
82
|
fill: fillColor
|
|
83
83
|
}),
|
|
84
84
|
/*#__PURE__*/ _jsx("path", {
|
|
@@ -78,11 +78,11 @@ var IconTipsAndTricksRegular = function(_param) {
|
|
|
78
78
|
}, rest, {
|
|
79
79
|
children: [
|
|
80
80
|
/*#__PURE__*/ _jsx("path", {
|
|
81
|
-
d: "M3.163 11.635C3.163 6.327 7.29 2 12.345 2c5.063 0 9.183 4.327 9.183 9.635 0 5.309-4.124 9.64-9.183 9.604a8.754 8.754 0 01-3.707-.802l-5.303 1.527c-.03.036-.103.036-.172.036a.662.662 0 01-.485-.216.725.725 0 01-.172-.694l1.42-5.564a10.563 10.563 0 01-.763-3.89zM9.02 19.02a7.
|
|
81
|
+
d: "M3.163 11.635C3.163 6.327 7.29 2 12.345 2c5.063 0 9.183 4.327 9.183 9.635 0 5.309-4.124 9.64-9.183 9.604a8.754 8.754 0 01-3.707-.802l-5.303 1.527c-.03.036-.103.036-.172.036a.662.662 0 01-.485-.216.725.725 0 01-.172-.694l1.42-5.564a10.563 10.563 0 01-.763-3.89zM9.02 19.02a7.035 7.035 0 003.325.802c4.3 0 7.8-3.678 7.8-8.186 0-4.507-3.5-8.18-7.796-8.18-4.295 0-7.8 3.67-7.834 8.22 0 1.198.278 2.4.763 3.49.069.144.069.329.035.509l-1.18 4.583 4.402-1.274c.172-.036.344-.036.485.036z",
|
|
82
82
|
fill: fillColor
|
|
83
83
|
}),
|
|
84
84
|
/*#__PURE__*/ _jsx("path", {
|
|
85
|
-
d: "M7.84 9.64c0-2.512 1.94-4.547 4.334-4.547 2.393 0 4.333 2.031 4.
|
|
85
|
+
d: "M7.84 9.64c0-2.512 1.94-4.547 4.334-4.547 2.393 0 4.333 2.031 4.29 4.583 0 1.342-.549 2.616-1.557 3.49-.45.4-.695.801-.763 1.238.278.18.45.508.45.873 0 .293-.103.549-.275.73.172.184.275.44.275.728 0 .617-.447 1.09-1.038 1.09h-2.772c-.588 0-1.039-.469-1.039-1.09 0-.292.103-.548.275-.729a1.06 1.06 0 01-.275-.729c0-.4.176-.73.45-.91-.037-.436-.312-.837-.763-1.237-1-.838-1.592-2.144-1.592-3.49zm6.067 5.633c0-.216-.141-.365-.348-.365h-2.771c-.207 0-.348.149-.348.365s.141.365.348.365h2.771c.207 0 .348-.149.348-.365zm-.348 1.819c.21 0 .348-.148.348-.365 0-.216-.141-.364-.348-.364h-2.771c-.207 0-.348.148-.348.364 0 .217.141.365.348.365h2.771zm-.446-2.913c.103-.693.48-1.31 1.141-1.89.764-.654 1.21-1.635 1.146-2.653 0-1.89-1.49-3.453-3.291-3.453-1.803 0-3.291 1.562-3.291 3.453 0 1.018.45 2 1.214 2.652.656.581 1.038 1.198 1.141 1.891h1.94z",
|
|
86
86
|
fill: fillColor
|
|
87
87
|
})
|
|
88
88
|
]
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _objectSpread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_defineProperty(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _objectWithoutProperties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
32
|
+
var key, i;
|
|
33
|
+
if (Object.getOwnPropertySymbols) {
|
|
34
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
35
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
36
|
+
key = sourceSymbolKeys[i];
|
|
37
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
38
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
|
+
target[key] = source[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
}
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
45
|
+
if (source == null) return {};
|
|
46
|
+
var target = {};
|
|
47
|
+
var sourceKeys = Object.keys(source);
|
|
48
|
+
var key, i;
|
|
49
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
50
|
+
key = sourceKeys[i];
|
|
51
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
52
|
+
target[key] = source[key];
|
|
53
|
+
}
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
57
|
+
/*
|
|
58
|
+
* This file was autogenerated. Don't edit this file!
|
|
59
|
+
*
|
|
60
|
+
* To update, execute "yarn start" inside "import-mistica-icons"
|
|
61
|
+
*/ import * as React from "react";
|
|
62
|
+
import { useTheme } from "../../hooks";
|
|
63
|
+
import { useIsInverseVariant } from "../../theme-variant-context";
|
|
64
|
+
var IconWorldDeviceFilled = function(_param) {
|
|
65
|
+
var color = _param.color, _size = _param.size, size = _size === void 0 ? 24 : _size, children = _param.children, rest = _objectWithoutProperties(_param, [
|
|
66
|
+
"color",
|
|
67
|
+
"size",
|
|
68
|
+
"children"
|
|
69
|
+
]);
|
|
70
|
+
var colors = useTheme().colors;
|
|
71
|
+
var isInverse = useIsInverseVariant();
|
|
72
|
+
var fillColor = color !== null && color !== void 0 ? color : isInverse ? colors.inverse : colors.neutralHigh;
|
|
73
|
+
return /*#__PURE__*/ _jsx("svg", _objectSpread({
|
|
74
|
+
width: size,
|
|
75
|
+
height: size,
|
|
76
|
+
viewBox: "0 0 24 24",
|
|
77
|
+
role: "presentation"
|
|
78
|
+
}, rest, {
|
|
79
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
80
|
+
d: "M20.176 12.321c.036.25.036.5.036.75 0 4.929-4 8.929-8.928 8.929-4.929 0-8.929-4-8.929-8.929 0-4.928 4-8.928 8.929-8.928 1.285 0 2.464.286 3.571.75v1.571c-1.071-.571-2.286-.928-3.571-.928a7.08 7.08 0 00-1.25.107c.357.857.678 1.857.428 2.607-.25.714-1.107 2-2.821 2.107.143.036.285.107.428.143a3.064 3.064 0 011.715 1.429c.285.5.892.678 1.392.464a1.326 1.326 0 011.215.036 1.3 1.3 0 01.678 1c.107.892-.107 2.571-1.643 3.285-.535.25-.607.5-.714.965-.107.392-.25.857-.714 1.285-.25.25-.607.357-.964.357-.215 0-.429-.035-.679-.107-1.036-.321-2.357-1.5-2.75-3.285-.107-.429-.143-.858-.143-1.358 0-.321-.321-1.75-.821-2.142-.107-.072-.179-.072-.286-.036-.107.036-.143.071-.179.071a.517.517 0 01-.392.036v.571a7.5 7.5 0 007.5 7.5 7.348 7.348 0 004.892-1.857c-.5-.821-.464-1.535-.428-2.143.036-.785.107-1.392-1.107-2.178-.857-.572-1.322-1.464-1.286-2.464.071-1 .607-1.893 1.393-2.286.036 0 .036 0 .071-.036v.25c0 1.393 1.107 2.5 2.5 2.5h2.5c.143 0 .25 0 .357-.036zM15.57 8.607h6.072V5.036H15.57v3.571zM20.212 2h-3.214c-.786 0-1.429.643-1.429 1.429v.535h6.072V3.43c0-.786-.643-1.429-1.429-1.429zM15.57 9.679v.178c0 1 .786 1.786 1.786 1.786h2.857c.786 0 1.429-.643 1.429-1.429V9.68H15.57z",
|
|
81
|
+
fill: fillColor
|
|
82
|
+
})
|
|
83
|
+
}));
|
|
84
|
+
};
|
|
85
|
+
export default IconWorldDeviceFilled;
|