@janiscommerce/ui-web 0.45.0 → 1.0.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/CHANGELOG.md +13 -0
- package/dist/index.esm.js +217 -167
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +198 -148
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('styled-components'), require('react-dom')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', 'react', 'styled-components', 'react-dom'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.main = {}, global.React, global.styled$
|
|
5
|
-
})(this, (function (exports, React, styled$
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.main = {}, global.React, global.styled$i, global.ReactDOM));
|
|
5
|
+
})(this, (function (exports, React, styled$i, ReactDOM) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
28
28
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
29
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled$
|
|
29
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled$i);
|
|
30
30
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
31
31
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
32
32
|
|
|
@@ -4966,25 +4966,25 @@
|
|
|
4966
4966
|
};
|
|
4967
4967
|
var mediaBreaks = {
|
|
4968
4968
|
mobile: function mobile() {
|
|
4969
|
-
return styled$
|
|
4969
|
+
return styled$i.css(["", "{", "}"], devices.mobile, styled$i.css.apply(void 0, arguments));
|
|
4970
4970
|
},
|
|
4971
4971
|
tablet: function tablet() {
|
|
4972
|
-
return styled$
|
|
4972
|
+
return styled$i.css(["", "{", "}"], devices.tablet, styled$i.css.apply(void 0, arguments));
|
|
4973
4973
|
},
|
|
4974
4974
|
tabletLg: function tabletLg() {
|
|
4975
|
-
return styled$
|
|
4975
|
+
return styled$i.css(["", "{", "}"], devices.tabletLg, styled$i.css.apply(void 0, arguments));
|
|
4976
4976
|
},
|
|
4977
4977
|
onlyDesktop: function onlyDesktop() {
|
|
4978
|
-
return styled$
|
|
4978
|
+
return styled$i.css(["", "{", "}"], devices.onlyDesktop, styled$i.css.apply(void 0, arguments));
|
|
4979
4979
|
},
|
|
4980
4980
|
desktopSm: function desktopSm() {
|
|
4981
|
-
return styled$
|
|
4981
|
+
return styled$i.css(["", "{", "}"], devices.desktopSm, styled$i.css.apply(void 0, arguments));
|
|
4982
4982
|
},
|
|
4983
4983
|
desktopLg: function desktopLg() {
|
|
4984
|
-
return styled$
|
|
4984
|
+
return styled$i.css(["", "{", "}"], devices.desktopLg, styled$i.css.apply(void 0, arguments));
|
|
4985
4985
|
},
|
|
4986
4986
|
onlyPrint: function onlyPrint() {
|
|
4987
|
-
return styled$
|
|
4987
|
+
return styled$i.css(["@media print{", "}"], styled$i.css.apply(void 0, arguments));
|
|
4988
4988
|
}
|
|
4989
4989
|
};
|
|
4990
4990
|
|
|
@@ -5317,7 +5317,7 @@
|
|
|
5317
5317
|
width: '100%'
|
|
5318
5318
|
};
|
|
5319
5319
|
|
|
5320
|
-
var styled$
|
|
5320
|
+
var styled$h = {
|
|
5321
5321
|
Image: styled__default["default"].img.withConfig({
|
|
5322
5322
|
displayName: "styles__Image",
|
|
5323
5323
|
componentId: "sc-uljfj3-0"
|
|
@@ -5405,9 +5405,9 @@
|
|
|
5405
5405
|
accelerate: 'cubic-bezier(0.4, 0.0, 1, 1)'
|
|
5406
5406
|
};
|
|
5407
5407
|
var mixins = {
|
|
5408
|
-
flexCenter: styled$
|
|
5408
|
+
flexCenter: styled$i.css(["display:flex;align-items:center;justify-content:center;"]),
|
|
5409
5409
|
placeholder: function placeholder(styles) {
|
|
5410
|
-
return styled$
|
|
5410
|
+
return styled$i.css(["&::-moz-placeholder{", "}&::-webkit-input-placeholder{", "}&:-moz-placeholder{", "}&:-ms-input-placeholder{", "}&::placeholder{", "}"], styles, styles, styles, styles, styles);
|
|
5411
5411
|
},
|
|
5412
5412
|
transition: function transition() {
|
|
5413
5413
|
var property = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'all';
|
|
@@ -5415,14 +5415,14 @@
|
|
|
5415
5415
|
var transitionProperty;
|
|
5416
5416
|
if (property.includes(',')) transitionProperty = "transition-property: ".concat(property);
|
|
5417
5417
|
var transition = "".concat(property.split(',')[0], " ").concat(time, " ").concat(timingFunctions.standard);
|
|
5418
|
-
return styled$
|
|
5418
|
+
return styled$i.css(["transition:", ";", ";"], transition, transitionProperty);
|
|
5419
5419
|
},
|
|
5420
5420
|
scrollbar: function scrollbar(thumbColor, shadowColor) {
|
|
5421
|
-
return styled$
|
|
5421
|
+
return styled$i.css(["&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{box-shadow:inset 0 0 6px ", ";}&::-webkit-scrollbar-thumb{height:5px;width:4px;border-radius:50px;background-color:", ";}"], shadowColor || palette.white, thumbColor);
|
|
5422
5422
|
}
|
|
5423
5423
|
};
|
|
5424
5424
|
|
|
5425
|
-
var styled$
|
|
5425
|
+
var styled$g = {
|
|
5426
5426
|
Initials: styled__default["default"].div.withConfig({
|
|
5427
5427
|
displayName: "styles__Initials",
|
|
5428
5428
|
componentId: "sc-qlu7od-0"
|
|
@@ -5446,7 +5446,7 @@
|
|
|
5446
5446
|
mainColor = _ref.mainColor,
|
|
5447
5447
|
imageSize = _ref.imageSize,
|
|
5448
5448
|
rounded = _ref.rounded;
|
|
5449
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
5449
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$g.Initials, {
|
|
5450
5450
|
color: mainColor,
|
|
5451
5451
|
size: imageSize,
|
|
5452
5452
|
rounded: rounded
|
|
@@ -5612,7 +5612,7 @@
|
|
|
5612
5612
|
imageSize: imageSize,
|
|
5613
5613
|
rounded: rounded
|
|
5614
5614
|
});
|
|
5615
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
5615
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(styled$h.Image, {
|
|
5616
5616
|
ref: imageRef,
|
|
5617
5617
|
src: url,
|
|
5618
5618
|
alt: "".concat(firstname, " ").concat(lastname),
|
|
@@ -7131,19 +7131,19 @@
|
|
|
7131
7131
|
variant = props.variant;
|
|
7132
7132
|
var variantStyles = {
|
|
7133
7133
|
outlined: function outlined() {
|
|
7134
|
-
return styled$
|
|
7134
|
+
return styled$i.css(["border:1px solid ", ";color:", ";&:hover{background-color:", ";}&:hover .chip-icon,&:hover .delete-button{fill:", ";}&:active{border-color:", ";color:", ";background-color:transparent;}&:active .chip-icon,&:active .delete-button{fill:", ";}"], selected ? palette.blue : '#EAEBED', selected ? palette.blue : palette.black, palette.lightGreyHover, selected ? palette.blue : palette.black, palette.blue, palette.blue, palette.blue);
|
|
7135
7135
|
},
|
|
7136
7136
|
contained: function contained() {
|
|
7137
|
-
return styled$
|
|
7137
|
+
return styled$i.css(["background-color:", ";color:", ";.chip-icon{fill:", ";}.delete-button{fill:", ";}&:hover{background-color:", ";}&:hover .delete-button{fill:", ";}&:active{background-color:", ";color:", ";}&:active .chip-icon,&:active .delete-button{fill:", ";}&:disabled{fill:", ";color:", ";}"], selected ? palette.blue : palette.lightGreyHover, selected ? palette.white : palette.black, selected ? palette.white : palette.black, selected ? palette.white : palette.darkGrey, selected ? palette.blueHover : palette.lightGrey, selected ? palette.white : palette.black, palette.blue, palette.white, palette.white, palette.grey, palette.grey);
|
|
7138
7138
|
},
|
|
7139
7139
|
status: function status() {
|
|
7140
|
-
return styled$
|
|
7140
|
+
return styled$i.css(["background-color:", ";color:", ";font-weight:700;border:none;height:24px;padding:0 17px;line-height:28px;max-width:170px;"], getColor(color || 'grey'), getColor(sizeColor || 'white'));
|
|
7141
7141
|
}
|
|
7142
7142
|
};
|
|
7143
7143
|
return variantStyles[variant] || '';
|
|
7144
7144
|
};
|
|
7145
7145
|
|
|
7146
|
-
var styled$
|
|
7146
|
+
var styled$f = {
|
|
7147
7147
|
Chip: styled__default["default"].button.withConfig({
|
|
7148
7148
|
displayName: "styles__Chip",
|
|
7149
7149
|
componentId: "sc-1vnh4co-0"
|
|
@@ -7201,7 +7201,7 @@
|
|
|
7201
7201
|
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
7202
7202
|
|
|
7203
7203
|
if (!children && !icon) return null;
|
|
7204
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7204
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$f.Chip, _extends$1({
|
|
7205
7205
|
as: props.onClick ? 'button' : 'div',
|
|
7206
7206
|
backgroundColor: backgroundColor,
|
|
7207
7207
|
borderColor: borderColor,
|
|
@@ -7219,7 +7219,7 @@
|
|
|
7219
7219
|
name: icon,
|
|
7220
7220
|
color: iconColor,
|
|
7221
7221
|
size: iconSize
|
|
7222
|
-
}), children && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7222
|
+
}), children && /*#__PURE__*/React__default["default"].createElement(styled$f.Children, null, children), onDelete && /*#__PURE__*/React__default["default"].createElement(styled$f.DeleteButton, {
|
|
7223
7223
|
type: "button",
|
|
7224
7224
|
onClick: onDelete
|
|
7225
7225
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
@@ -7241,14 +7241,14 @@
|
|
|
7241
7241
|
hasLink: false
|
|
7242
7242
|
};
|
|
7243
7243
|
|
|
7244
|
-
var styled$
|
|
7244
|
+
var styled$e = {
|
|
7245
7245
|
AvatarGroup: styled__default["default"](Chip).withConfig({
|
|
7246
7246
|
displayName: "styles__AvatarGroup",
|
|
7247
7247
|
componentId: "sc-1jnt2lr-0"
|
|
7248
7248
|
})(["pointer-events:none;", " background:", ";", " & div{display:flex;& div,img,span{&:not(:first-child){margin-left:-4px;}}span:first-of-type{margin-left:0px;}}"], function (_ref) {
|
|
7249
7249
|
var showFull = _ref.showFull,
|
|
7250
7250
|
backgroundColor = _ref.backgroundColor;
|
|
7251
|
-
return showFull ? styled$
|
|
7251
|
+
return showFull ? styled$i.css(["height:45px;padding-left:9px;padding-right:9px;max-width:inherit;&:hover,&:active{background:", ";}"], backgroundColor || palette.white) : styled$i.css(["height:33px;padding-left:5px;padding-right:5px;cursor:pointer;"]);
|
|
7252
7252
|
}, function (_ref2) {
|
|
7253
7253
|
var backgroundColor = _ref2.backgroundColor;
|
|
7254
7254
|
return backgroundColor || palette.white;
|
|
@@ -7377,7 +7377,7 @@
|
|
|
7377
7377
|
badgeColor = _ref.badgeColor;
|
|
7378
7378
|
var extraCount = users.length > usersToDisplay ? users.length - usersToDisplay : 0;
|
|
7379
7379
|
var hasExtraCount = extraCount > 0;
|
|
7380
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7380
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$e.AvatarGroup, {
|
|
7381
7381
|
disabled: true,
|
|
7382
7382
|
showFull: showFull
|
|
7383
7383
|
}, /*#__PURE__*/React__default["default"].createElement(AvatarList, {
|
|
@@ -7446,7 +7446,7 @@
|
|
|
7446
7446
|
};
|
|
7447
7447
|
|
|
7448
7448
|
var commonStyles = function commonStyles(iconColor, fontColor, color) {
|
|
7449
|
-
return styled$
|
|
7449
|
+
return styled$i.css(["color:", ";.button-icon{fill:", ";}background:none;&:focus,&:hover{background-color:", ";}&:active{background-color:", ";}&:disabled{color:", ";.button-icon{fill:", ";}}"], getColor(fontColor || color || blue), getColor(iconColor || color || blue), lightGreyHover, lightGrey, grey, grey);
|
|
7450
7450
|
};
|
|
7451
7451
|
|
|
7452
7452
|
var getButtonStyles = function getButtonStyles(_ref) {
|
|
@@ -7456,10 +7456,10 @@
|
|
|
7456
7456
|
iconColor = _ref.iconColor;
|
|
7457
7457
|
var variantStyles = {
|
|
7458
7458
|
contained: function contained() {
|
|
7459
|
-
return styled$
|
|
7459
|
+
return styled$i.css(["color:", ";&:before{background-color:", ";}.button-icon{fill:", ";}&:focus:after,&:hover:after{background-color:", ";}&:active{background-color:", ";}&:disabled{&:before,&:after{background-color:", ";}}"], getColor(fontColor || 'white'), getColor(color), white, getHoverColor(color), getPressedColor(color), grey);
|
|
7460
7460
|
},
|
|
7461
7461
|
outlined: function outlined() {
|
|
7462
|
-
return styled$
|
|
7462
|
+
return styled$i.css(["", ";border:1px solid ", ";"], commonStyles(iconColor, fontColor, color), getColor(grey));
|
|
7463
7463
|
},
|
|
7464
7464
|
cleaned: function cleaned() {
|
|
7465
7465
|
return commonStyles(iconColor, fontColor, color);
|
|
@@ -7468,7 +7468,7 @@
|
|
|
7468
7468
|
return variantStyles[variant] || '';
|
|
7469
7469
|
};
|
|
7470
7470
|
|
|
7471
|
-
var styled$
|
|
7471
|
+
var styled$d = {
|
|
7472
7472
|
Button: styled__default["default"].button.withConfig({
|
|
7473
7473
|
displayName: "styles__Button",
|
|
7474
7474
|
componentId: "sc-buf2do-0"
|
|
@@ -7517,7 +7517,7 @@
|
|
|
7517
7517
|
disabled = _ref.disabled,
|
|
7518
7518
|
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
7519
7519
|
|
|
7520
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7520
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$d.Button, _extends$1({
|
|
7521
7521
|
color: color,
|
|
7522
7522
|
iconColor: iconColor || fontColor,
|
|
7523
7523
|
fontColor: fontColor,
|
|
@@ -7542,7 +7542,7 @@
|
|
|
7542
7542
|
disabled: false
|
|
7543
7543
|
};
|
|
7544
7544
|
|
|
7545
|
-
var styled$
|
|
7545
|
+
var styled$c = {
|
|
7546
7546
|
Container: styled__default["default"].label.withConfig({
|
|
7547
7547
|
displayName: "styles__Container",
|
|
7548
7548
|
componentId: "sc-18bfcwf-0"
|
|
@@ -7559,7 +7559,7 @@
|
|
|
7559
7559
|
displayName: "styles__Input",
|
|
7560
7560
|
componentId: "sc-18bfcwf-1"
|
|
7561
7561
|
})(["opacity:0;position:absolute;cursor:pointer;"]),
|
|
7562
|
-
iconCheckStyles: styled$
|
|
7562
|
+
iconCheckStyles: styled$i.css(["transform:translateY(-5%);fill:", ";", ""], getColor('white'), function (props) {
|
|
7563
7563
|
return !!props.rounded && "\n\t\t\tflex-shrink: 0;\n\t\t\tpadding-right: 1px;\n\t\t";
|
|
7564
7564
|
})
|
|
7565
7565
|
};
|
|
@@ -7589,18 +7589,18 @@
|
|
|
7589
7589
|
|
|
7590
7590
|
var _props$checked = props.checked,
|
|
7591
7591
|
conntroledChecked = _props$checked === void 0 ? checked : _props$checked;
|
|
7592
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7592
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$c.Container, {
|
|
7593
7593
|
checked: conntroledChecked,
|
|
7594
7594
|
rounded: rounded,
|
|
7595
7595
|
styles: styles
|
|
7596
|
-
}, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7596
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled$c.Input, _extends$1({}, props, {
|
|
7597
7597
|
type: "checkbox",
|
|
7598
7598
|
disabled: disabled,
|
|
7599
7599
|
autoComplete: autoComplete ? 'on' : 'off',
|
|
7600
7600
|
onChange: handleChange
|
|
7601
7601
|
})), /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
7602
7602
|
name: "check_bold",
|
|
7603
|
-
styles: styled$
|
|
7603
|
+
styles: styled$c.iconCheckStyles,
|
|
7604
7604
|
rounded: rounded
|
|
7605
7605
|
}));
|
|
7606
7606
|
};
|
|
@@ -7612,7 +7612,7 @@
|
|
|
7612
7612
|
}
|
|
7613
7613
|
};
|
|
7614
7614
|
|
|
7615
|
-
var styled$
|
|
7615
|
+
var styled$b = {
|
|
7616
7616
|
Wrapper: styled__default["default"].div.withConfig({
|
|
7617
7617
|
displayName: "styles__Wrapper",
|
|
7618
7618
|
componentId: "sc-zbd85t-0"
|
|
@@ -7636,9 +7636,9 @@
|
|
|
7636
7636
|
showLabel = _ref.showLabel;
|
|
7637
7637
|
if (!color) return null;
|
|
7638
7638
|
var colorCode = getColor(color);
|
|
7639
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7639
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$b.Wrapper, null, /*#__PURE__*/React__default["default"].createElement(styled$b.ColorSample, {
|
|
7640
7640
|
color: colorCode
|
|
7641
|
-
}), showLabel && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7641
|
+
}), showLabel && /*#__PURE__*/React__default["default"].createElement(styled$b.Label, {
|
|
7642
7642
|
color: colorCode
|
|
7643
7643
|
}, colorCode));
|
|
7644
7644
|
};
|
|
@@ -7660,12 +7660,12 @@
|
|
|
7660
7660
|
})(["width:16px;height:16px;border-radius:50%;position:absolute;top:4px;left:4px;background-color:", ";transition:all ", " 0.2s;", ""], palette.white, timingFunctions$1.standard, function (props) {
|
|
7661
7661
|
return props.checked && "\n\t\t\tleft: 100%;\n\t\t\tmargin-left: -20px;\n\t\t";
|
|
7662
7662
|
});
|
|
7663
|
-
var iconCheckStyles = styled$
|
|
7663
|
+
var iconCheckStyles = styled$i.css(["position:absolute;fill:", ";", ""], function (props) {
|
|
7664
7664
|
return statusColor(props);
|
|
7665
7665
|
}, onlyPrint(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n\t\tfill: ", " !important;\n\t"])), function (props) {
|
|
7666
7666
|
return props.checked ? palette.black : palette.darkGrey;
|
|
7667
7667
|
}));
|
|
7668
|
-
var styled$
|
|
7668
|
+
var styled$a = {
|
|
7669
7669
|
OuterContainer: styled__default["default"].div.withConfig({
|
|
7670
7670
|
displayName: "styles__OuterContainer",
|
|
7671
7671
|
componentId: "sc-rtzdt3-1"
|
|
@@ -7715,10 +7715,10 @@
|
|
|
7715
7715
|
|
|
7716
7716
|
var _props$checked = props.checked,
|
|
7717
7717
|
controledChecked = _props$checked === void 0 ? checked : _props$checked;
|
|
7718
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7718
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$a.OuterContainer, {
|
|
7719
7719
|
disabled: disabled,
|
|
7720
7720
|
checked: checked
|
|
7721
|
-
}, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7721
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled$a.Input, {
|
|
7722
7722
|
checked: controledChecked,
|
|
7723
7723
|
id: id,
|
|
7724
7724
|
name: name,
|
|
@@ -7726,10 +7726,10 @@
|
|
|
7726
7726
|
disabled: disabled,
|
|
7727
7727
|
autoComplete: autoComplete ? 'on' : 'off',
|
|
7728
7728
|
onChange: handleChange
|
|
7729
|
-
}), /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7729
|
+
}), /*#__PURE__*/React__default["default"].createElement(styled$a.Container, {
|
|
7730
7730
|
checked: controledChecked,
|
|
7731
7731
|
disabled: disabled
|
|
7732
|
-
}, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7732
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled$a.Ball, {
|
|
7733
7733
|
checked: controledChecked,
|
|
7734
7734
|
disabled: disabled
|
|
7735
7735
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
@@ -7737,7 +7737,7 @@
|
|
|
7737
7737
|
disabled: disabled,
|
|
7738
7738
|
name: "check_bold",
|
|
7739
7739
|
size: 16,
|
|
7740
|
-
styles: styled$
|
|
7740
|
+
styles: styled$a.iconCheckStyles
|
|
7741
7741
|
}))));
|
|
7742
7742
|
};
|
|
7743
7743
|
|
|
@@ -7819,7 +7819,7 @@
|
|
|
7819
7819
|
return palette.black;
|
|
7820
7820
|
};
|
|
7821
7821
|
|
|
7822
|
-
var styled$
|
|
7822
|
+
var styled$9 = {
|
|
7823
7823
|
Container: styled__default["default"].div.withConfig({
|
|
7824
7824
|
displayName: "styles__Container",
|
|
7825
7825
|
componentId: "sc-1fhkfhs-0"
|
|
@@ -7852,7 +7852,7 @@
|
|
|
7852
7852
|
}, function (_ref4) {
|
|
7853
7853
|
var hasIcon = _ref4.hasIcon;
|
|
7854
7854
|
return hasIcon && "padding-left: 32px;";
|
|
7855
|
-
}, mixins.placeholder(styled$
|
|
7855
|
+
}, mixins.placeholder(styled$i.css(["font-weight:400;color:", ";"], function (_ref5) {
|
|
7856
7856
|
var error = _ref5.error;
|
|
7857
7857
|
return error ? palette.statusRed : palette.darkGreyPressed;
|
|
7858
7858
|
})), function (props) {
|
|
@@ -7972,11 +7972,11 @@
|
|
|
7972
7972
|
|
|
7973
7973
|
var autoCompleteOff = props.type === 'password' ? 'new-password' : 'off';
|
|
7974
7974
|
var isFloating = isFocused || !!value.toString();
|
|
7975
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7975
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$9.Container, {
|
|
7976
7976
|
fullWidth: props.fullWidth
|
|
7977
|
-
}, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7977
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled$9.Container, {
|
|
7978
7978
|
fullWidth: props.fullWidth
|
|
7979
|
-
}, hasFloatingLabel && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7979
|
+
}, hasFloatingLabel && /*#__PURE__*/React__default["default"].createElement(styled$9.FloatingLabel, {
|
|
7980
7980
|
"data-test": "floatingLabel",
|
|
7981
7981
|
error: error,
|
|
7982
7982
|
onClick: this.handleLabelClick,
|
|
@@ -7985,10 +7985,10 @@
|
|
|
7985
7985
|
isFloating: isFloating,
|
|
7986
7986
|
hasIcon: !!icon,
|
|
7987
7987
|
isTranslateActive: isTranslateActive
|
|
7988
|
-
}, props.label), icon && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7988
|
+
}, props.label), icon && /*#__PURE__*/React__default["default"].createElement(styled$9.InputIcon, {
|
|
7989
7989
|
name: icon,
|
|
7990
7990
|
color: error ? 'statusRed' : 'black'
|
|
7991
|
-
}), /*#__PURE__*/React__default["default"].createElement(styled$
|
|
7991
|
+
}), /*#__PURE__*/React__default["default"].createElement(styled$9.Input, _extends$1({}, props, {
|
|
7992
7992
|
ref: this.input,
|
|
7993
7993
|
placeholder: hasFloatingLabel && !isFloating ? '' : placeholder,
|
|
7994
7994
|
onBlur: this.handleBlur,
|
|
@@ -8001,7 +8001,7 @@
|
|
|
8001
8001
|
error: error,
|
|
8002
8002
|
hasIcon: !!icon,
|
|
8003
8003
|
onAnimationStart: this.handleFocus
|
|
8004
|
-
}))), error && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
8004
|
+
}))), error && /*#__PURE__*/React__default["default"].createElement(styled$9.ErrorMessage, {
|
|
8005
8005
|
"data-test": "errorMessage"
|
|
8006
8006
|
}, errorMessage));
|
|
8007
8007
|
}
|
|
@@ -8047,7 +8047,7 @@
|
|
|
8047
8047
|
return palette.darkGreyPressed;
|
|
8048
8048
|
};
|
|
8049
8049
|
|
|
8050
|
-
var styled$
|
|
8050
|
+
var styled$8 = {
|
|
8051
8051
|
Container: styled__default["default"].div.withConfig({
|
|
8052
8052
|
displayName: "styles__Container",
|
|
8053
8053
|
componentId: "sc-wtau65-0"
|
|
@@ -8059,7 +8059,7 @@
|
|
|
8059
8059
|
componentId: "sc-wtau65-1"
|
|
8060
8060
|
})(["border:none;border-bottom:1px solid ", ";border-radius:0;height:23px;max-height:350px;padding:0 9px 4px 0;resize:none;font-size:", ";font-weight:400;color:", ";", ";width:", ";", " ", " &:hover{border-color:", ";}&:focus{border-color:", ";caret-color:", ";outline:none;}&:disabled{background-color:", ";color:", ";border-color:", ";cursor:default;}", " ", ""], palette.grey, fontSize, palette.black, mixins.transition('color,border-color', '0.2s'), function (props) {
|
|
8061
8061
|
return props.fullWidth ? '100%' : 'auto';
|
|
8062
|
-
}, mixins.placeholder(styled$
|
|
8062
|
+
}, mixins.placeholder(styled$i.css(["opacity:1;color:", ";"], function (props) {
|
|
8063
8063
|
return placeholderColor(props);
|
|
8064
8064
|
})), mixins.scrollbar(palette.grey, palette.base), palette.black, palette.blue, palette.blue, palette.white, palette.grey, palette.grey, function (props) {
|
|
8065
8065
|
return props.error && "\n\t\t\t&, &:hover, &:focus {\n\t\t\t\tborder-color: ".concat(palette.statusRed, "\n\t\t\t}\n\t\t");
|
|
@@ -8186,9 +8186,9 @@
|
|
|
8186
8186
|
var props = _objectWithoutProperties(_this$props, _excluded$4);
|
|
8187
8187
|
|
|
8188
8188
|
var isFloating = isFocused || !!value;
|
|
8189
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
8189
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$8.Container, {
|
|
8190
8190
|
fullWidth: props.fullWidth
|
|
8191
|
-
}, hasFloatingLabel && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
8191
|
+
}, hasFloatingLabel && /*#__PURE__*/React__default["default"].createElement(styled$8.FloatingLabel, _extends$1({}, props, {
|
|
8192
8192
|
"data-test": "floatingLabel",
|
|
8193
8193
|
error: error,
|
|
8194
8194
|
onClick: this.handleLabelClick,
|
|
@@ -8196,7 +8196,7 @@
|
|
|
8196
8196
|
isFocused: isFocused,
|
|
8197
8197
|
isFloating: isFloating,
|
|
8198
8198
|
isTranslateActive: isTranslateActive
|
|
8199
|
-
}), label), /*#__PURE__*/React__default["default"].createElement(styled$
|
|
8199
|
+
}), label), /*#__PURE__*/React__default["default"].createElement(styled$8.Textarea, _extends$1({}, props, {
|
|
8200
8200
|
ref: this.textarea,
|
|
8201
8201
|
placeholder: hasFloatingLabel && !isFloating ? '' : placeholder,
|
|
8202
8202
|
onBlur: this.handleBlur,
|
|
@@ -8207,7 +8207,7 @@
|
|
|
8207
8207
|
value: value,
|
|
8208
8208
|
autoComplete: autoComplete ? 'on' : 'off',
|
|
8209
8209
|
disabled: disabled
|
|
8210
|
-
})), error && /*#__PURE__*/React__default["default"].createElement(styled$
|
|
8210
|
+
})), error && /*#__PURE__*/React__default["default"].createElement(styled$8.ErrorMessage, {
|
|
8211
8211
|
"data-test": "errorMessage"
|
|
8212
8212
|
}, errorMessage));
|
|
8213
8213
|
}
|
|
@@ -8275,7 +8275,7 @@
|
|
|
8275
8275
|
return 'initial';
|
|
8276
8276
|
};
|
|
8277
8277
|
|
|
8278
|
-
var styled$
|
|
8278
|
+
var styled$7 = {
|
|
8279
8279
|
ImageWrapper: styled__default["default"].div.withConfig({
|
|
8280
8280
|
displayName: "styles__ImageWrapper",
|
|
8281
8281
|
componentId: "sc-vrvp1c-0"
|
|
@@ -8321,7 +8321,7 @@
|
|
|
8321
8321
|
errorImage = _useState2[0],
|
|
8322
8322
|
setErrorImage = _useState2[1];
|
|
8323
8323
|
|
|
8324
|
-
return errorImage ? /*#__PURE__*/React__default["default"].createElement(styled$
|
|
8324
|
+
return errorImage ? /*#__PURE__*/React__default["default"].createElement(styled$7.ImageWrapper, {
|
|
8325
8325
|
background: background,
|
|
8326
8326
|
width: width || height,
|
|
8327
8327
|
height: height || width
|
|
@@ -8329,7 +8329,7 @@
|
|
|
8329
8329
|
name: errorImage,
|
|
8330
8330
|
size: (width || height) * 0.35 || 20,
|
|
8331
8331
|
color: palette.lightGreyPressed
|
|
8332
|
-
})) : /*#__PURE__*/React__default["default"].createElement(styled$
|
|
8332
|
+
})) : /*#__PURE__*/React__default["default"].createElement(styled$7.Image, {
|
|
8333
8333
|
src: url,
|
|
8334
8334
|
alt: altText || url,
|
|
8335
8335
|
width: width,
|
|
@@ -9129,7 +9129,7 @@
|
|
|
9129
9129
|
|
|
9130
9130
|
function u(){return (u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e}).apply(this,arguments)}function c(e,r){if(null==e)return {};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r.indexOf(t=a[n])>=0||(o[t]=e[t]);return o}function i(e){var t=React.useRef(e),n=React.useRef(function(e){t.current&&t.current(e);});return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e<r?r:e},f=function(e){return "touches"in e},v=function(e){return e&&e.ownerDocument.defaultView||self},d=function(e,r,t){var n=e.getBoundingClientRect(),o=f(r)?function(e,r){for(var t=0;t<e.length;t++)if(e[t].identifier===r)return e[t];return e[0]}(r.touches,t):r;return {left:s((o.pageX-(n.left+v(e).pageXOffset))/n.width),top:s((o.pageY-(n.top+v(e).pageYOffset))/n.height)}},h=function(e){!f(e)&&e.preventDefault();},m=React__default["default"].memo(function(o){var a=o.onMove,l=o.onKey,s=c(o,["onMove","onKey"]),m=React.useRef(null),g=i(a),p=i(l),b=React.useRef(null),_=React.useRef(!1),x=React.useMemo(function(){var e=function(e){h(e),(f(e)?e.touches.length>0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1);},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r);}return [function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier);}n.focus(),g(d(n,r,b.current)),t(!0);}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}));},t]},[p,g]),C=x[0],E=x[1],H=x[2];return React.useEffect(function(){return H},[H]),React__default["default"].createElement("div",u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),g=function(e){return e.filter(Boolean).join(" ")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g(["react-colorful__pointer",r.className]);return React__default["default"].createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},React__default["default"].createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},x=function(e){return "#"===e[0]&&(e=e.substr(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:1}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1}},N=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return {h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},w=function(e){var r=N(e);return "hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},q=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return {r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},z=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},B=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return {h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},K=React__default["default"].memo(function(r){var t=r.hue,n=r.onChange,o=g(["react-colorful__hue",r.className]);return React__default["default"].createElement("div",{className:o},React__default["default"].createElement(m,{onMove:function(e){n({h:360*e.left});},onKey:function(e){n({h:s(t+360*e.left,0,360)});},"aria-label":"Hue","aria-valuetext":b(t)},React__default["default"].createElement(p,{className:"react-colorful__hue-pointer",left:t/360,color:w({h:t,s:100,v:100,a:1})})))}),L=React__default["default"].memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:w({h:t.h,s:100,v:100,a:1})};return React__default["default"].createElement("div",{className:"react-colorful__saturation",style:o},React__default["default"].createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top});},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)});},"aria-label":"Color","aria-valuetext":"Saturation "+b(t.s)+"%, Brightness "+b(t.v)+"%"},React__default["default"].createElement(p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:w(t)})))}),A=function(e,r){if(e===r)return !0;for(var t in e)if(e[t]!==r[t])return !1;return !0};function T(e,t,l){var u=i(l),c=React.useState(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=React.useRef({color:t,hsva:s});React.useEffect(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r);}},[t,e]),React.useEffect(function(){var r;A(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r));},[s,e,u]);var d=React.useCallback(function(e){f(function(r){return Object.assign({},r,e)});},[]);return [s,d]}var P="undefined"!=typeof window?React.useLayoutEffect:React.useEffect,X=function(){return ("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0)},R=new Map,V=function(e){P(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!R.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',R.set(r,t);var n=X();n&&t.setAttribute("nonce",n),r.head.appendChild(t);}},[]);},$$4=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=React.useRef(null);V(f);var v=T(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return React__default["default"].createElement("div",u({},s,{ref:f,className:m}),React__default["default"].createElement(L,{hsva:d,onChange:h}),React__default["default"].createElement(K,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},G={defaultColor:"000",toHsva:function(e){return B(x(e))},fromHsva:function(e){return t=(r=q(e)).g,n=r.b,"#"+z(r.r)+z(t)+z(n);var r,t,n;},equal:function(e,r){return e.toLowerCase()===r.toLowerCase()||A(x(e),x(r))}},J=function(r){return React__default["default"].createElement($$4,u({},r,{colorModel:G}))};
|
|
9131
9131
|
|
|
9132
|
-
var styled$
|
|
9132
|
+
var styled$6 = {
|
|
9133
9133
|
ClickableWrapper: styled__default["default"].div.withConfig({
|
|
9134
9134
|
displayName: "styles__ClickableWrapper",
|
|
9135
9135
|
componentId: "sc-lreg3c-0"
|
|
@@ -9194,13 +9194,13 @@
|
|
|
9194
9194
|
var value = colorValue || DEFAULT_COLOR;
|
|
9195
9195
|
|
|
9196
9196
|
if (isCollapsable) {
|
|
9197
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
9197
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$6.Wrapper, null, /*#__PURE__*/React__default["default"].createElement(styled$6.ClickableWrapper, {
|
|
9198
9198
|
"data-test": "collapsible-picker",
|
|
9199
9199
|
color: value,
|
|
9200
9200
|
role: "presentation",
|
|
9201
9201
|
onClick: toggleStateVisible,
|
|
9202
9202
|
error: error
|
|
9203
|
-
}, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
9203
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled$6.Input, {
|
|
9204
9204
|
value: colorValue,
|
|
9205
9205
|
fullWidth: true,
|
|
9206
9206
|
onChange: function onChange(_ref2) {
|
|
@@ -9209,10 +9209,10 @@
|
|
|
9209
9209
|
},
|
|
9210
9210
|
errorMessage: errorMessage,
|
|
9211
9211
|
error: error
|
|
9212
|
-
})), pickerVisible && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
9212
|
+
})), pickerVisible && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(styled$6.ClosePickerWrapper, {
|
|
9213
9213
|
onClick: handleClosePicker,
|
|
9214
9214
|
role: "presentation"
|
|
9215
|
-
}), /*#__PURE__*/React__default["default"].createElement(styled$
|
|
9215
|
+
}), /*#__PURE__*/React__default["default"].createElement(styled$6.PickerWrapper, null, /*#__PURE__*/React__default["default"].createElement(J, {
|
|
9216
9216
|
color: value,
|
|
9217
9217
|
onChange: change
|
|
9218
9218
|
}))));
|
|
@@ -9270,9 +9270,9 @@
|
|
|
9270
9270
|
Context.FrameContextProvider = FrameContextProvider;
|
|
9271
9271
|
Context.FrameContextConsumer = FrameContextConsumer;
|
|
9272
9272
|
|
|
9273
|
-
var Content$
|
|
9273
|
+
var Content$3 = {};
|
|
9274
9274
|
|
|
9275
|
-
Object.defineProperty(Content$
|
|
9275
|
+
Object.defineProperty(Content$3, "__esModule", {
|
|
9276
9276
|
value: true
|
|
9277
9277
|
});
|
|
9278
9278
|
|
|
@@ -9295,7 +9295,7 @@
|
|
|
9295
9295
|
function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // eslint-disable-line no-unused-vars
|
|
9296
9296
|
|
|
9297
9297
|
|
|
9298
|
-
var Content$
|
|
9298
|
+
var Content$2 = function (_Component) {
|
|
9299
9299
|
_inherits$1(Content, _Component);
|
|
9300
9300
|
|
|
9301
9301
|
function Content() {
|
|
@@ -9324,12 +9324,12 @@
|
|
|
9324
9324
|
return Content;
|
|
9325
9325
|
}(_react$1.Component);
|
|
9326
9326
|
|
|
9327
|
-
Content$
|
|
9327
|
+
Content$2.propTypes = {
|
|
9328
9328
|
children: _propTypes2$1.default.element.isRequired,
|
|
9329
9329
|
contentDidMount: _propTypes2$1.default.func.isRequired,
|
|
9330
9330
|
contentDidUpdate: _propTypes2$1.default.func.isRequired
|
|
9331
9331
|
};
|
|
9332
|
-
Content$
|
|
9332
|
+
Content$3.default = Content$2;
|
|
9333
9333
|
|
|
9334
9334
|
Object.defineProperty(Frame$2, "__esModule", {
|
|
9335
9335
|
value: true
|
|
@@ -9354,7 +9354,7 @@
|
|
|
9354
9354
|
|
|
9355
9355
|
var _Context = Context;
|
|
9356
9356
|
|
|
9357
|
-
var _Content = Content$
|
|
9357
|
+
var _Content = Content$3;
|
|
9358
9358
|
|
|
9359
9359
|
var _Content2 = _interopRequireDefault(_Content);
|
|
9360
9360
|
|
|
@@ -9576,7 +9576,7 @@
|
|
|
9576
9576
|
|
|
9577
9577
|
var Frame = /*@__PURE__*/getDefaultExportFromCjs(lib$1);
|
|
9578
9578
|
|
|
9579
|
-
var styled$
|
|
9579
|
+
var styled$5 = {
|
|
9580
9580
|
Wrapper: styled__default["default"].div.withConfig({
|
|
9581
9581
|
displayName: "styles__Wrapper",
|
|
9582
9582
|
componentId: "sc-3jodl7-0"
|
|
@@ -9589,7 +9589,7 @@
|
|
|
9589
9589
|
|
|
9590
9590
|
var DefaultError = function DefaultError(_ref) {
|
|
9591
9591
|
var message = _ref.message;
|
|
9592
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
9592
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$5.Wrapper, null, /*#__PURE__*/React__default["default"].createElement(styled$5.Icon, {
|
|
9593
9593
|
name: "exclamation_circle",
|
|
9594
9594
|
color: "statusRed"
|
|
9595
9595
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -9701,7 +9701,7 @@
|
|
|
9701
9701
|
height: 'medium'
|
|
9702
9702
|
};
|
|
9703
9703
|
|
|
9704
|
-
var styled$
|
|
9704
|
+
var styled$4 = {
|
|
9705
9705
|
LinkWrapper: styled__default["default"].div.withConfig({
|
|
9706
9706
|
displayName: "styles__LinkWrapper",
|
|
9707
9707
|
componentId: "sc-fhfdft-0"
|
|
@@ -9722,12 +9722,12 @@
|
|
|
9722
9722
|
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
9723
9723
|
|
|
9724
9724
|
var renderIcon = function renderIcon() {
|
|
9725
|
-
return icon ? /*#__PURE__*/React__default["default"].createElement(styled$
|
|
9725
|
+
return icon ? /*#__PURE__*/React__default["default"].createElement(styled$4.StyledIcon, {
|
|
9726
9726
|
name: icon
|
|
9727
9727
|
}) : null;
|
|
9728
9728
|
};
|
|
9729
9729
|
|
|
9730
|
-
return /*#__PURE__*/React__default["default"].createElement(styled$
|
|
9730
|
+
return /*#__PURE__*/React__default["default"].createElement(styled$4.LinkWrapper, props, renderIcon(), /*#__PURE__*/React__default["default"].createElement("a", {
|
|
9731
9731
|
href: href,
|
|
9732
9732
|
target: target
|
|
9733
9733
|
}, children || href));
|
|
@@ -9773,14 +9773,14 @@
|
|
|
9773
9773
|
};
|
|
9774
9774
|
|
|
9775
9775
|
var verticalCommonStyles = function verticalCommonStyles(open) {
|
|
9776
|
-
return styled$
|
|
9776
|
+
return styled$i.css(["width:100%;", ";max-height:", ";left:0;right:0;"], function (_ref) {
|
|
9777
9777
|
var fullScreen = _ref.fullScreen;
|
|
9778
9778
|
return fullScreen && 'height: 100%';
|
|
9779
9779
|
}, open ? '100%' : 0);
|
|
9780
9780
|
};
|
|
9781
9781
|
|
|
9782
9782
|
var horizontalCommonStyles = function horizontalCommonStyles(open) {
|
|
9783
|
-
return styled$
|
|
9783
|
+
return styled$i.css(["height:100%;", ";max-width:", ";top:0;"], function (_ref2) {
|
|
9784
9784
|
var fullScreen = _ref2.fullScreen;
|
|
9785
9785
|
return fullScreen && 'width: 100%';
|
|
9786
9786
|
}, open ? '100%' : 0);
|
|
@@ -9789,16 +9789,16 @@
|
|
|
9789
9789
|
var setPosition = function setPosition(position, open) {
|
|
9790
9790
|
var positions = {
|
|
9791
9791
|
top: function top() {
|
|
9792
|
-
return styled$
|
|
9792
|
+
return styled$i.css(["", ";top:0;"], verticalCommonStyles(open));
|
|
9793
9793
|
},
|
|
9794
9794
|
bottom: function bottom() {
|
|
9795
|
-
return styled$
|
|
9795
|
+
return styled$i.css(["", ";bottom:0;"], verticalCommonStyles(open));
|
|
9796
9796
|
},
|
|
9797
9797
|
left: function left() {
|
|
9798
|
-
return styled$
|
|
9798
|
+
return styled$i.css(["", ";left:0;"], horizontalCommonStyles(open));
|
|
9799
9799
|
},
|
|
9800
9800
|
right: function right() {
|
|
9801
|
-
return styled$
|
|
9801
|
+
return styled$i.css(["", ";right:0;"], horizontalCommonStyles(open));
|
|
9802
9802
|
}
|
|
9803
9803
|
};
|
|
9804
9804
|
return positions[position];
|
|
@@ -9812,9 +9812,9 @@
|
|
|
9812
9812
|
open = _ref3.open,
|
|
9813
9813
|
transitionDuration = _ref3.transitionDuration;
|
|
9814
9814
|
var transitionTime = transitionDuration / 1000;
|
|
9815
|
-
return styled$
|
|
9815
|
+
return styled$i.css(["", ";", ";"], position && setPosition(position, open), transitionDuration && "transition: ".concat(getPropertyForTransition(position), " ").concat(transitionTime, "s ease"));
|
|
9816
9816
|
});
|
|
9817
|
-
var Content = styled__default["default"].div.withConfig({
|
|
9817
|
+
var Content$1 = styled__default["default"].div.withConfig({
|
|
9818
9818
|
displayName: "styles__Content",
|
|
9819
9819
|
componentId: "sc-1tz9fgf-1"
|
|
9820
9820
|
})(["min-height:300px;min-width:300px;box-sizing:border-box;padding:16px 28px 32px 32px;"]);
|
|
@@ -9834,9 +9834,9 @@
|
|
|
9834
9834
|
displayName: "styles__Overlay",
|
|
9835
9835
|
componentId: "sc-1tz9fgf-5"
|
|
9836
9836
|
})(["position:absolute;width:100%;height:100%;top:0;left:0;visibility:hidden;pointer-events:none;z-index:998;"]);
|
|
9837
|
-
var styled$
|
|
9837
|
+
var styled$3 = {
|
|
9838
9838
|
Drawer: Drawer$1,
|
|
9839
|
-
Content: Content,
|
|
9839
|
+
Content: Content$1,
|
|
9840
9840
|
Header: Header,
|
|
9841
9841
|
CloseBtn: CloseBtn,
|
|
9842
9842
|
Children: Children,
|
|
@@ -9858,16 +9858,16 @@
|
|
|
9858
9858
|
var drawerRef = React.useRef(null);
|
|
9859
9859
|
return /*#__PURE__*/React__default["default"].createElement(ClickAwayListener, {
|
|
9860
9860
|
onClickAway: closeOnClickAway && open && handleClose
|
|
9861
|
-
}, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
9861
|
+
}, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(styled$3.Drawer, _extends$1({
|
|
9862
9862
|
open: open,
|
|
9863
9863
|
position: position,
|
|
9864
9864
|
transitionDuration: transitionDuration,
|
|
9865
9865
|
fullScreen: fullScreen,
|
|
9866
9866
|
className: "drawer",
|
|
9867
9867
|
ref: drawerRef
|
|
9868
|
-
}, props), /*#__PURE__*/React__default["default"].createElement(styled$
|
|
9868
|
+
}, props), /*#__PURE__*/React__default["default"].createElement(styled$3.Content, {
|
|
9869
9869
|
className: "drawer__content"
|
|
9870
|
-
}, /*#__PURE__*/React__default["default"].createElement(styled$
|
|
9870
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled$3.Header, null, handleClose && typeof handleClose === 'function' && /*#__PURE__*/React__default["default"].createElement(styled$3.CloseBtn, {
|
|
9871
9871
|
onClick: handleClose,
|
|
9872
9872
|
type: "button",
|
|
9873
9873
|
rounded: true
|
|
@@ -9876,7 +9876,7 @@
|
|
|
9876
9876
|
name: "cross_light",
|
|
9877
9877
|
width: 24,
|
|
9878
9878
|
height: 24
|
|
9879
|
-
}))), /*#__PURE__*/React__default["default"].createElement(styled$
|
|
9879
|
+
}))), /*#__PURE__*/React__default["default"].createElement(styled$3.Children, null, children))), /*#__PURE__*/React__default["default"].createElement(styled$3.Overlay, {
|
|
9880
9880
|
className: "drawer__overlay",
|
|
9881
9881
|
transitionDuration: transitionDuration
|
|
9882
9882
|
})));
|
|
@@ -15943,16 +15943,23 @@
|
|
|
15943
15943
|
}
|
|
15944
15944
|
Autocomplete.contextType = MapContext;
|
|
15945
15945
|
|
|
15946
|
+
var Content = styled__default["default"].div.withConfig({
|
|
15947
|
+
displayName: "styles__Content",
|
|
15948
|
+
componentId: "sc-1sl7owm-0"
|
|
15949
|
+
})(["padding:10px;"]);
|
|
15950
|
+
var styled$2 = {
|
|
15951
|
+
Content: Content
|
|
15952
|
+
};
|
|
15953
|
+
|
|
15946
15954
|
var InfoWindow = function InfoWindow(_ref) {
|
|
15947
15955
|
var infoWindowHandles = _ref.infoWindowHandles,
|
|
15948
15956
|
data = _ref.data,
|
|
15949
15957
|
children = _ref.children;
|
|
15950
|
-
|
|
15951
|
-
var infoWindowProps = _objectSpread2({}, infoWindowHandles);
|
|
15952
|
-
|
|
15953
|
-
return /*#__PURE__*/React__default["default"].createElement("div", infoWindowProps, /*#__PURE__*/React__default["default"].createElement(InfoWindow$1, {
|
|
15958
|
+
return /*#__PURE__*/React__default["default"].createElement(InfoWindow$1, {
|
|
15954
15959
|
position: data
|
|
15955
|
-
},
|
|
15960
|
+
}, /*#__PURE__*/React__default["default"].createElement(styled$2.Content, _extends$1({
|
|
15961
|
+
className: "google-map-component__info-window--content"
|
|
15962
|
+
}, infoWindowHandles), children));
|
|
15956
15963
|
};
|
|
15957
15964
|
|
|
15958
15965
|
var getCoordsFromEvent = function getCoordsFromEvent() {
|
|
@@ -16003,11 +16010,12 @@
|
|
|
16003
16010
|
position = _ref2.position,
|
|
16004
16011
|
animation = _ref2.animation,
|
|
16005
16012
|
overlay = _ref2.overlay,
|
|
16006
|
-
infoWindowChildren = _ref2.infoWindowChildren,
|
|
16007
16013
|
isDraggable = _ref2.isDraggable,
|
|
16008
|
-
zIndex = _ref2.zIndex
|
|
16014
|
+
zIndex = _ref2.zIndex,
|
|
16015
|
+
infoWindowOpen = _ref2.infoWindowOpen;
|
|
16009
16016
|
|
|
16010
|
-
var
|
|
16017
|
+
var infoWindowContent = markerOptions.infoWindowContent,
|
|
16018
|
+
_markerOptions$onLoad = markerOptions.onLoad,
|
|
16011
16019
|
_onLoad = _markerOptions$onLoad === void 0 ? function () {} : _markerOptions$onLoad,
|
|
16012
16020
|
_markerOptions$onClic = markerOptions.onClick,
|
|
16013
16021
|
_onClick = _markerOptions$onClic === void 0 ? function () {} : _markerOptions$onClic,
|
|
@@ -16016,32 +16024,18 @@
|
|
|
16016
16024
|
_markerOptions$onDrag2 = markerOptions.onDragStart,
|
|
16017
16025
|
_onDragStart = _markerOptions$onDrag2 === void 0 ? function () {} : _markerOptions$onDrag2,
|
|
16018
16026
|
_markerOptions$onDrag3 = markerOptions.onDragEnd,
|
|
16019
|
-
_onDragEnd = _markerOptions$onDrag3 === void 0 ? function () {} : _markerOptions$onDrag3
|
|
16027
|
+
_onDragEnd = _markerOptions$onDrag3 === void 0 ? function () {} : _markerOptions$onDrag3,
|
|
16028
|
+
_markerOptions$onMark = markerOptions.onMarkerMouseOver,
|
|
16029
|
+
onMarkerMouseOver = _markerOptions$onMark === void 0 ? function () {} : _markerOptions$onMark,
|
|
16030
|
+
_markerOptions$onMark2 = markerOptions.onMarkerMouseOut,
|
|
16031
|
+
onMarkerMouseOut = _markerOptions$onMark2 === void 0 ? function () {} : _markerOptions$onMark2,
|
|
16032
|
+
_markerOptions$onInfo = markerOptions.onInfoWindowMouseEnter,
|
|
16033
|
+
onInfoWindowMouseEnter = _markerOptions$onInfo === void 0 ? function () {} : _markerOptions$onInfo,
|
|
16034
|
+
_markerOptions$onInfo2 = markerOptions.onInfoWindowMouseLeave,
|
|
16035
|
+
onInfoWindowMouseLeave = _markerOptions$onInfo2 === void 0 ? function () {} : _markerOptions$onInfo2;
|
|
16020
16036
|
|
|
16021
16037
|
var markerRef = React.useRef(null);
|
|
16022
16038
|
var timeoutRef = React.useRef(null);
|
|
16023
|
-
|
|
16024
|
-
var _useState3 = React.useState(false),
|
|
16025
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
16026
|
-
infoWindowOpen = _useState4[0],
|
|
16027
|
-
setInfoWindowOpen = _useState4[1];
|
|
16028
|
-
|
|
16029
|
-
var _useState5 = React.useState(false),
|
|
16030
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
16031
|
-
mouseOverInfoWindow = _useState6[0],
|
|
16032
|
-
setMouseOverInfoWindow = _useState6[1];
|
|
16033
|
-
|
|
16034
|
-
var openInfoWindow = function openInfoWindow() {
|
|
16035
|
-
return setInfoWindowOpen(true);
|
|
16036
|
-
};
|
|
16037
|
-
|
|
16038
|
-
var closeInfoWindow = function closeInfoWindow() {
|
|
16039
|
-
return setInfoWindowOpen(false);
|
|
16040
|
-
};
|
|
16041
|
-
|
|
16042
|
-
var delayedInfoWindowHover = debounce(function () {
|
|
16043
|
-
if (!mouseOverInfoWindow) closeInfoWindow();
|
|
16044
|
-
}, 100);
|
|
16045
16039
|
React.useEffect(function () {
|
|
16046
16040
|
setMarker(markerData);
|
|
16047
16041
|
}, [markerData]);
|
|
@@ -16120,22 +16114,16 @@
|
|
|
16120
16114
|
},
|
|
16121
16115
|
onMouseOver: function onMouseOver() {
|
|
16122
16116
|
if (isValidAnimation(animation)) stopAnimation();
|
|
16123
|
-
|
|
16117
|
+
onMarkerMouseOver();
|
|
16124
16118
|
},
|
|
16125
16119
|
onMouseOut: function onMouseOut() {
|
|
16126
16120
|
if (isValidAnimation(animation)) startAnimation();
|
|
16127
|
-
|
|
16121
|
+
onMarkerMouseOut();
|
|
16128
16122
|
}
|
|
16129
16123
|
};
|
|
16130
16124
|
var infoWindowHandles = {
|
|
16131
|
-
onMouseEnter:
|
|
16132
|
-
|
|
16133
|
-
setMouseOverInfoWindow(true);
|
|
16134
|
-
},
|
|
16135
|
-
onMouseLeave: function onMouseLeave() {
|
|
16136
|
-
closeInfoWindow();
|
|
16137
|
-
setMouseOverInfoWindow(false);
|
|
16138
|
-
}
|
|
16125
|
+
onMouseEnter: onInfoWindowMouseEnter,
|
|
16126
|
+
onMouseLeave: onInfoWindowMouseLeave
|
|
16139
16127
|
};
|
|
16140
16128
|
|
|
16141
16129
|
var _getPixelPositionOffset = function getPixelPositionOffset(width) {
|
|
@@ -16152,11 +16140,11 @@
|
|
|
16152
16140
|
getPixelPositionOffset: function getPixelPositionOffset(width) {
|
|
16153
16141
|
return _getPixelPositionOffset(width);
|
|
16154
16142
|
}
|
|
16155
|
-
}, overlay()), infoWindowOpen &&
|
|
16143
|
+
}, overlay()), infoWindowOpen && infoWindowContent && /*#__PURE__*/React__default["default"].createElement(InfoWindow, {
|
|
16156
16144
|
className: "google-map-component__info-window",
|
|
16157
16145
|
data: position,
|
|
16158
16146
|
infoWindowHandles: infoWindowHandles
|
|
16159
|
-
},
|
|
16147
|
+
}, infoWindowContent()));
|
|
16160
16148
|
};
|
|
16161
16149
|
|
|
16162
16150
|
var Marker$1 = /*#__PURE__*/React__default["default"].memo(Marker, function (prev, next) {
|
|
@@ -16172,14 +16160,75 @@
|
|
|
16172
16160
|
markers = _ref$markers === void 0 ? [] : _ref$markers,
|
|
16173
16161
|
_ref$markerOptions = _ref.markerOptions,
|
|
16174
16162
|
markerOptions = _ref$markerOptions === void 0 ? {} : _ref$markerOptions;
|
|
16163
|
+
|
|
16164
|
+
var _useState = React.useState(null),
|
|
16165
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16166
|
+
activeMarkerId = _useState2[0],
|
|
16167
|
+
setActiveMarkerId = _useState2[1];
|
|
16168
|
+
|
|
16169
|
+
var _useState3 = React.useState(false),
|
|
16170
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
16171
|
+
mouseOverInfoWindow = _useState4[0],
|
|
16172
|
+
setMouseOverInfoWindow = _useState4[1];
|
|
16173
|
+
|
|
16174
|
+
var openInfoWindow = function openInfoWindow(markerId) {
|
|
16175
|
+
return setActiveMarkerId(markerId);
|
|
16176
|
+
};
|
|
16177
|
+
|
|
16178
|
+
var closeInfoWindow = function closeInfoWindow() {
|
|
16179
|
+
return setActiveMarkerId(null);
|
|
16180
|
+
};
|
|
16181
|
+
|
|
16182
|
+
var infoWindowContent = markerOptions.infoWindowContent,
|
|
16183
|
+
_markerOptions$onInfo = markerOptions.onInfoWindowChange,
|
|
16184
|
+
onInfoWindowChange = _markerOptions$onInfo === void 0 ? function () {} : _markerOptions$onInfo;
|
|
16185
|
+
var delayedInfoWindowHover = debounce(function () {
|
|
16186
|
+
if (!mouseOverInfoWindow) closeInfoWindow();
|
|
16187
|
+
}, 100);
|
|
16188
|
+
|
|
16189
|
+
var handleMarkerMouseOver = function handleMarkerMouseOver(markerId) {
|
|
16190
|
+
if (!infoWindowContent) return;
|
|
16191
|
+
onInfoWindowChange();
|
|
16192
|
+
openInfoWindow(markerId);
|
|
16193
|
+
};
|
|
16194
|
+
|
|
16195
|
+
var handleMarkerMouseOut = function handleMarkerMouseOut() {
|
|
16196
|
+
return delayedInfoWindowHover();
|
|
16197
|
+
};
|
|
16198
|
+
|
|
16199
|
+
var handleInfoWindowMouseEnter = function handleInfoWindowMouseEnter() {
|
|
16200
|
+
delayedInfoWindowHover.cancel();
|
|
16201
|
+
setMouseOverInfoWindow(true);
|
|
16202
|
+
};
|
|
16203
|
+
|
|
16204
|
+
var handleInfoWindowMouseLeave = function handleInfoWindowMouseLeave() {
|
|
16205
|
+
closeInfoWindow();
|
|
16206
|
+
setMouseOverInfoWindow(false);
|
|
16207
|
+
};
|
|
16208
|
+
|
|
16209
|
+
React.useEffect(function () {
|
|
16210
|
+
return function () {
|
|
16211
|
+
delayedInfoWindowHover.cancel();
|
|
16212
|
+
};
|
|
16213
|
+
}, []);
|
|
16175
16214
|
if (!markers.length) return null;
|
|
16176
16215
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, markers.map(function (marker, idx) {
|
|
16177
16216
|
var _marker$position, _marker$position2;
|
|
16178
16217
|
|
|
16218
|
+
var uniqueId = "".concat(marker === null || marker === void 0 ? void 0 : (_marker$position = marker.position) === null || _marker$position === void 0 ? void 0 : _marker$position.lat, "-").concat(marker === null || marker === void 0 ? void 0 : (_marker$position2 = marker.position) === null || _marker$position2 === void 0 ? void 0 : _marker$position2.lng, "/").concat(idx.toString());
|
|
16179
16219
|
return /*#__PURE__*/React__default["default"].createElement(Marker$1, {
|
|
16180
|
-
markerData: _objectSpread2({}, marker),
|
|
16181
|
-
|
|
16182
|
-
|
|
16220
|
+
markerData: _objectSpread2(_objectSpread2({}, marker), {}, {
|
|
16221
|
+
infoWindowOpen: (marker === null || marker === void 0 ? void 0 : marker.showInfoWindow) || activeMarkerId === uniqueId
|
|
16222
|
+
}),
|
|
16223
|
+
markerOptions: _objectSpread2(_objectSpread2({}, markerOptions), {}, {
|
|
16224
|
+
onMarkerMouseOver: function onMarkerMouseOver() {
|
|
16225
|
+
return handleMarkerMouseOver(uniqueId);
|
|
16226
|
+
},
|
|
16227
|
+
onMarkerMouseOut: handleMarkerMouseOut,
|
|
16228
|
+
onInfoWindowMouseEnter: handleInfoWindowMouseEnter,
|
|
16229
|
+
onInfoWindowMouseLeave: handleInfoWindowMouseLeave
|
|
16230
|
+
}),
|
|
16231
|
+
key: uniqueId,
|
|
16183
16232
|
readOnly: readOnly,
|
|
16184
16233
|
markerIdx: idx
|
|
16185
16234
|
});
|
|
@@ -35415,6 +35464,7 @@
|
|
|
35415
35464
|
}, _objectSpread2({}, parsedData));
|
|
35416
35465
|
});
|
|
35417
35466
|
|
|
35467
|
+
var InfoWindowStyles = styled$i.createGlobalStyle([".gm-style-iw{&.gm-style-iw-c{padding:0 !important;border-radius:0;border:none;max-height:unset !important;}&-chr{display:none;}&-tc,button.gm-ui-hover-effect{display:none !important;}&-d{overflow:unset !important;max-height:unset !important;}}"]);
|
|
35418
35468
|
var styled$1 = {
|
|
35419
35469
|
LoadingElement: styled__default["default"].div.withConfig({
|
|
35420
35470
|
displayName: "styles__LoadingElement",
|
|
@@ -35560,7 +35610,7 @@
|
|
|
35560
35610
|
}
|
|
35561
35611
|
}, [mapRef.current, markers]);
|
|
35562
35612
|
if (!isLoaded) return null;
|
|
35563
|
-
return /*#__PURE__*/React__default["default"].createElement(GoogleMap, _extends$1({
|
|
35613
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(InfoWindowStyles, null), /*#__PURE__*/React__default["default"].createElement(GoogleMap, _extends$1({
|
|
35564
35614
|
className: "google-map-component",
|
|
35565
35615
|
onLoad: onLoad,
|
|
35566
35616
|
mapContainerStyle: {
|
|
@@ -35579,11 +35629,11 @@
|
|
|
35579
35629
|
callbackOnSuccessDirections: callbackOnSuccessDirections,
|
|
35580
35630
|
callbackOnErrorDirections: callbackOnErrorDirections,
|
|
35581
35631
|
googleMapsApiKey: googleMapsApiKey
|
|
35582
|
-
}));
|
|
35632
|
+
})));
|
|
35583
35633
|
});
|
|
35584
35634
|
Map$1.displayName = 'Map';
|
|
35585
35635
|
|
|
35586
|
-
var rotate = styled$
|
|
35636
|
+
var rotate = styled$i.keyframes(["to{transform:rotate(360deg);}"]);
|
|
35587
35637
|
var Spinner$1 = styled__default["default"].div.withConfig({
|
|
35588
35638
|
displayName: "styles__Spinner",
|
|
35589
35639
|
componentId: "sc-1e490ps-0"
|
|
@@ -35593,7 +35643,7 @@
|
|
|
35593
35643
|
size = _ref.size,
|
|
35594
35644
|
thickness = _ref.thickness,
|
|
35595
35645
|
backSpinnerColor = _ref.backSpinnerColor;
|
|
35596
|
-
return styled$
|
|
35646
|
+
return styled$i.css(["width:", "px;height:", "px;border-radius:50%;background-color:transparent;border-top:", "px solid ", ";border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";animation:", " ", "s linear infinite;position:absolute;"], size, size, thickness, getColor(color), thickness, getColor(color), thickness, getColor(color), thickness, getColor(backSpinnerColor), rotate, duration);
|
|
35597
35647
|
});
|
|
35598
35648
|
var SpinnerWrapper = styled__default["default"].div.withConfig({
|
|
35599
35649
|
displayName: "styles__SpinnerWrapper",
|
|
@@ -35640,7 +35690,7 @@
|
|
|
35640
35690
|
}), children && /*#__PURE__*/React__default["default"].createElement(styles$1.CenterContent, null, children));
|
|
35641
35691
|
};
|
|
35642
35692
|
|
|
35643
|
-
var show = styled$
|
|
35693
|
+
var show = styled$i.keyframes(["0%{opacity:0;}to{opacity:1;}"]);
|
|
35644
35694
|
var Container = styled__default["default"].section.withConfig({
|
|
35645
35695
|
displayName: "styles__Container",
|
|
35646
35696
|
componentId: "sc-19kt9g-0"
|
|
@@ -35649,7 +35699,7 @@
|
|
|
35649
35699
|
return backgroundColor;
|
|
35650
35700
|
}, function (_ref2) {
|
|
35651
35701
|
var effect = _ref2.effect;
|
|
35652
|
-
return effect && styled$
|
|
35702
|
+
return effect && styled$i.css(effect);
|
|
35653
35703
|
}, show);
|
|
35654
35704
|
var LoaderContainer = styled__default["default"].div.withConfig({
|
|
35655
35705
|
displayName: "styles__LoaderContainer",
|
|
@@ -35693,7 +35743,7 @@
|
|
|
35693
35743
|
|
|
35694
35744
|
var progressAnimation = function progressAnimation() {
|
|
35695
35745
|
var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
35696
|
-
return styled$
|
|
35746
|
+
return styled$i.keyframes(["0%{transform:scaleX(0);}100%{transform:scaleX(", ");}"], scale);
|
|
35697
35747
|
};
|
|
35698
35748
|
|
|
35699
35749
|
var ProgressFill = styled__default["default"].div.withConfig({
|
|
@@ -35713,7 +35763,7 @@
|
|
|
35713
35763
|
_ref3$duration = _ref3.duration,
|
|
35714
35764
|
duration = _ref3$duration === void 0 ? 1 : _ref3$duration;
|
|
35715
35765
|
var scale = value / maxValue;
|
|
35716
|
-
return animated && isNumber(duration) && duration > 0 ? styled$
|
|
35766
|
+
return animated && isNumber(duration) && duration > 0 ? styled$i.css(["animation:", " ", " linear forwards;"], progressAnimation(scale), "".concat(duration, "s")) : styled$i.css(["transform:scaleX(", ");"], scale);
|
|
35717
35767
|
});
|
|
35718
35768
|
var styled = {
|
|
35719
35769
|
Bar: Bar,
|