@janiscommerce/ui-web 0.44.0 → 0.45.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 +11 -0
- package/dist/index.esm.js +187 -114
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +167 -93
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useState, useEffect, useRef, PureComponent, useMemo, useCallback, useLayoutEffect, createContext, forwardRef, useImperativeHandle } from 'react';
|
|
3
|
-
import styled$
|
|
3
|
+
import styled$h, { css, keyframes } from 'styled-components';
|
|
4
4
|
import * as ReactDOM from 'react-dom';
|
|
5
5
|
import ReactDOM__default from 'react-dom';
|
|
6
6
|
|
|
@@ -5246,7 +5246,7 @@ $$b({ target: 'Array', stat: true, forced: INCORRECT_ITERATION$1 }, {
|
|
|
5246
5246
|
from: from
|
|
5247
5247
|
});
|
|
5248
5248
|
|
|
5249
|
-
var SkeletonContainer = styled$
|
|
5249
|
+
var SkeletonContainer = styled$h.div.withConfig({
|
|
5250
5250
|
displayName: "styles__SkeletonContainer",
|
|
5251
5251
|
componentId: "sc-1xnupv9-0"
|
|
5252
5252
|
})(["border-radius:", ";height:", ";width:", ";background-color:", ";animation:pulse 1.5s ease-in-out infinite;@keyframes pulse{0%{opacity:0.4;}50%{opacity:0.8;}100%{opacity:0.4;}}"], function (_ref) {
|
|
@@ -5291,8 +5291,8 @@ Skeleton.defaultProps = {
|
|
|
5291
5291
|
width: '100%'
|
|
5292
5292
|
};
|
|
5293
5293
|
|
|
5294
|
-
var styled$
|
|
5295
|
-
Image: styled$
|
|
5294
|
+
var styled$g = {
|
|
5295
|
+
Image: styled$h.img.withConfig({
|
|
5296
5296
|
displayName: "styles__Image",
|
|
5297
5297
|
componentId: "sc-uljfj3-0"
|
|
5298
5298
|
})(["width:", ";height:", ";display:", ";border-radius:", ";"], function (_ref) {
|
|
@@ -5396,8 +5396,8 @@ var mixins = {
|
|
|
5396
5396
|
}
|
|
5397
5397
|
};
|
|
5398
5398
|
|
|
5399
|
-
var styled$
|
|
5400
|
-
Initials: styled$
|
|
5399
|
+
var styled$f = {
|
|
5400
|
+
Initials: styled$h.div.withConfig({
|
|
5401
5401
|
displayName: "styles__Initials",
|
|
5402
5402
|
componentId: "sc-qlu7od-0"
|
|
5403
5403
|
})(["width:", ";height:", ";border-radius:", ";font-weight:500;color:", ";background-color:", ";text-transform:uppercase;", ";"], function (_ref) {
|
|
@@ -5420,7 +5420,7 @@ var InitialsAvatar = function InitialsAvatar(_ref) {
|
|
|
5420
5420
|
mainColor = _ref.mainColor,
|
|
5421
5421
|
imageSize = _ref.imageSize,
|
|
5422
5422
|
rounded = _ref.rounded;
|
|
5423
|
-
return /*#__PURE__*/React__default.createElement(styled$
|
|
5423
|
+
return /*#__PURE__*/React__default.createElement(styled$f.Initials, {
|
|
5424
5424
|
color: mainColor,
|
|
5425
5425
|
size: imageSize,
|
|
5426
5426
|
rounded: rounded
|
|
@@ -5586,7 +5586,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
5586
5586
|
imageSize: imageSize,
|
|
5587
5587
|
rounded: rounded
|
|
5588
5588
|
});
|
|
5589
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(styled$
|
|
5589
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(styled$g.Image, {
|
|
5590
5590
|
ref: imageRef,
|
|
5591
5591
|
src: url,
|
|
5592
5592
|
alt: "".concat(firstname, " ").concat(lastname),
|
|
@@ -5630,7 +5630,7 @@ $$7({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
|
|
5630
5630
|
|
|
5631
5631
|
var _templateObject$4;
|
|
5632
5632
|
var styles$2 = {
|
|
5633
|
-
Svg: styled$
|
|
5633
|
+
Svg: styled$h.svg.withConfig({
|
|
5634
5634
|
displayName: "styles__Svg",
|
|
5635
5635
|
componentId: "sc-jf3e5i-0"
|
|
5636
5636
|
})(["fill:", ";", " ", ";", ";"], function (props) {
|
|
@@ -5638,7 +5638,7 @@ var styles$2 = {
|
|
|
5638
5638
|
}, mediaBreaks.onlyPrint(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n\t\t\tfill: ", ";\n\t\t"])), palette.darkGrey), mixins.transition('fill'), function (props) {
|
|
5639
5639
|
return props.styles;
|
|
5640
5640
|
}),
|
|
5641
|
-
Path: styled$
|
|
5641
|
+
Path: styled$h.path.withConfig({
|
|
5642
5642
|
displayName: "styles__Path",
|
|
5643
5643
|
componentId: "sc-jf3e5i-1"
|
|
5644
5644
|
})(["fill:inherit;", ";"], function (props) {
|
|
@@ -5646,15 +5646,15 @@ var styles$2 = {
|
|
|
5646
5646
|
})
|
|
5647
5647
|
};
|
|
5648
5648
|
({
|
|
5649
|
-
Grid: styled$
|
|
5649
|
+
Grid: styled$h.div.withConfig({
|
|
5650
5650
|
displayName: "styles__Grid",
|
|
5651
5651
|
componentId: "sc-jf3e5i-2"
|
|
5652
5652
|
})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-gap:15px;"]),
|
|
5653
|
-
Item: styled$
|
|
5653
|
+
Item: styled$h.div.withConfig({
|
|
5654
5654
|
displayName: "styles__Item",
|
|
5655
5655
|
componentId: "sc-jf3e5i-3"
|
|
5656
5656
|
})(["padding:5px;border:1px dashed #ccc;cursor:default;display:grid;justify-items:center;justify-content:center;grid-row-gap:5px;", ";& ", "{", ";}&:hover{color:", ";}&:hover ", "{fill:", ";}"], mixins.transition('color'), styles$2.Svg, mixins.transition('fill'), palette.blue, styles$2.Svg, palette.blue),
|
|
5657
|
-
SearchInput: styled$
|
|
5657
|
+
SearchInput: styled$h.input.withConfig({
|
|
5658
5658
|
displayName: "styles__SearchInput",
|
|
5659
5659
|
componentId: "sc-jf3e5i-4"
|
|
5660
5660
|
})(["margin-bottom:10px;padding:5px;"])
|
|
@@ -7117,11 +7117,11 @@ var getChipVariant = function getChipVariant(props) {
|
|
|
7117
7117
|
return variantStyles[variant] || '';
|
|
7118
7118
|
};
|
|
7119
7119
|
|
|
7120
|
-
var styled$
|
|
7121
|
-
Chip: styled$
|
|
7120
|
+
var styled$e = {
|
|
7121
|
+
Chip: styled$h.button.withConfig({
|
|
7122
7122
|
displayName: "styles__Chip",
|
|
7123
7123
|
componentId: "sc-1vnh4co-0"
|
|
7124
|
-
})(["padding:", ";cursor:", ";font-size:13px;color:", ";height:", ";width:", ";min-width:36px;
|
|
7124
|
+
})(["padding:", ";cursor:", ";font-size:13px;color:", ";height:", ";width:", ";min-width:36px;border-radius:", ";display:inline-flex;justify-content:center;align-items:center;pointer-events:", ";white-space:nowrap;.chip-icon{", ";}", ";", ";", " ", " ", " ", ""], function (props) {
|
|
7125
7125
|
return !props.onlyIcon ? '0 12px' : '0';
|
|
7126
7126
|
}, function (props) {
|
|
7127
7127
|
return props.clickable ? 'pointer' : 'default';
|
|
@@ -7146,11 +7146,11 @@ var styled$d = {
|
|
|
7146
7146
|
}, function (props) {
|
|
7147
7147
|
return props.textColor && "color: ".concat(getColor(props.textColor), ";");
|
|
7148
7148
|
}, mediaBreaks.onlyPrint(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n\t\t\tborder: 1px solid ", ";\n\t\t"])), palette.darkGrey)),
|
|
7149
|
-
DeleteButton: styled$
|
|
7149
|
+
DeleteButton: styled$h.button.withConfig({
|
|
7150
7150
|
displayName: "styles__DeleteButton",
|
|
7151
7151
|
componentId: "sc-1vnh4co-1"
|
|
7152
7152
|
})(["width:16px;height:16px;margin-left:12px;"]),
|
|
7153
|
-
Children: styled$
|
|
7153
|
+
Children: styled$h.div.withConfig({
|
|
7154
7154
|
displayName: "styles__Children",
|
|
7155
7155
|
componentId: "sc-1vnh4co-2"
|
|
7156
7156
|
})(["text-overflow:ellipsis;overflow:hidden;"])
|
|
@@ -7175,7 +7175,7 @@ var Chip = function Chip(_ref) {
|
|
|
7175
7175
|
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
7176
7176
|
|
|
7177
7177
|
if (!children && !icon) return null;
|
|
7178
|
-
return /*#__PURE__*/React__default.createElement(styled$
|
|
7178
|
+
return /*#__PURE__*/React__default.createElement(styled$e.Chip, _extends$1({
|
|
7179
7179
|
as: props.onClick ? 'button' : 'div',
|
|
7180
7180
|
backgroundColor: backgroundColor,
|
|
7181
7181
|
borderColor: borderColor,
|
|
@@ -7193,7 +7193,7 @@ var Chip = function Chip(_ref) {
|
|
|
7193
7193
|
name: icon,
|
|
7194
7194
|
color: iconColor,
|
|
7195
7195
|
size: iconSize
|
|
7196
|
-
}), children && /*#__PURE__*/React__default.createElement(styled$
|
|
7196
|
+
}), children && /*#__PURE__*/React__default.createElement(styled$e.Children, null, children), onDelete && /*#__PURE__*/React__default.createElement(styled$e.DeleteButton, {
|
|
7197
7197
|
type: "button",
|
|
7198
7198
|
onClick: onDelete
|
|
7199
7199
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -7215,8 +7215,8 @@ Chip.defaultProps = {
|
|
|
7215
7215
|
hasLink: false
|
|
7216
7216
|
};
|
|
7217
7217
|
|
|
7218
|
-
var styled$
|
|
7219
|
-
AvatarGroup: styled$
|
|
7218
|
+
var styled$d = {
|
|
7219
|
+
AvatarGroup: styled$h(Chip).withConfig({
|
|
7220
7220
|
displayName: "styles__AvatarGroup",
|
|
7221
7221
|
componentId: "sc-1jnt2lr-0"
|
|
7222
7222
|
})(["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) {
|
|
@@ -7351,7 +7351,7 @@ var AvatarGroup = function AvatarGroup(_ref) {
|
|
|
7351
7351
|
badgeColor = _ref.badgeColor;
|
|
7352
7352
|
var extraCount = users.length > usersToDisplay ? users.length - usersToDisplay : 0;
|
|
7353
7353
|
var hasExtraCount = extraCount > 0;
|
|
7354
|
-
return /*#__PURE__*/React__default.createElement(styled$
|
|
7354
|
+
return /*#__PURE__*/React__default.createElement(styled$d.AvatarGroup, {
|
|
7355
7355
|
disabled: true,
|
|
7356
7356
|
showFull: showFull
|
|
7357
7357
|
}, /*#__PURE__*/React__default.createElement(AvatarList, {
|
|
@@ -7442,8 +7442,8 @@ var getButtonStyles = function getButtonStyles(_ref) {
|
|
|
7442
7442
|
return variantStyles[variant] || '';
|
|
7443
7443
|
};
|
|
7444
7444
|
|
|
7445
|
-
var styled$
|
|
7446
|
-
Button: styled$
|
|
7445
|
+
var styled$c = {
|
|
7446
|
+
Button: styled$h.button.withConfig({
|
|
7447
7447
|
displayName: "styles__Button",
|
|
7448
7448
|
componentId: "sc-buf2do-0"
|
|
7449
7449
|
})(["display:flex;align-items:center;justify-content:center;height:36px;width:", ";flex-shrink:", ";border-radius:", ";padding:", ";cursor:", ";border:none;font-size:13px;font-weight:500;position:relative;", ";z-index:0;&:before{content:'';border-radius:50px;position:absolute;left:0;top:0;z-index:-1;width:100%;height:100%;}&:after{content:'';border-radius:50px;position:absolute;z-index:-1;width:100%;height:100%;transition:all 0.25s ", ";transform:scale(0,0);top:0;bottom:0;left:0;right:0;}&:focus:after,&:hover:after,&:active:after{transform:scale(1,1);}&:active{-webkit-tap-highlight-color:", ";}.button-icon{margin-right:", ";fill:", ";", ";}&:disabled{&:hover{background-color:transparent;}}", " .button-icon{fill:", ";}", ";"], function (_ref2) {
|
|
@@ -7491,7 +7491,7 @@ var Button = function Button(_ref) {
|
|
|
7491
7491
|
disabled = _ref.disabled,
|
|
7492
7492
|
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
7493
7493
|
|
|
7494
|
-
return /*#__PURE__*/React__default.createElement(styled$
|
|
7494
|
+
return /*#__PURE__*/React__default.createElement(styled$c.Button, _extends$1({
|
|
7495
7495
|
color: color,
|
|
7496
7496
|
iconColor: iconColor || fontColor,
|
|
7497
7497
|
fontColor: fontColor,
|
|
@@ -7516,8 +7516,8 @@ Button.defaultProps = {
|
|
|
7516
7516
|
disabled: false
|
|
7517
7517
|
};
|
|
7518
7518
|
|
|
7519
|
-
var styled$
|
|
7520
|
-
Container: styled$
|
|
7519
|
+
var styled$b = {
|
|
7520
|
+
Container: styled$h.label.withConfig({
|
|
7521
7521
|
displayName: "styles__Container",
|
|
7522
7522
|
componentId: "sc-18bfcwf-0"
|
|
7523
7523
|
})(["background:", ";border:1px solid ", ";border-radius:", "px;width:16px;height:16px;line-height:16px;position:relative;cursor:pointer;display:flex;transition:background ", " 0.2s;user-select:none;margin-right:12px;", ";"], function (props) {
|
|
@@ -7529,7 +7529,7 @@ var styled$a = {
|
|
|
7529
7529
|
}, timingFunctions$1.standard, function (props) {
|
|
7530
7530
|
return props.styles;
|
|
7531
7531
|
}),
|
|
7532
|
-
Input: styled$
|
|
7532
|
+
Input: styled$h.input.withConfig({
|
|
7533
7533
|
displayName: "styles__Input",
|
|
7534
7534
|
componentId: "sc-18bfcwf-1"
|
|
7535
7535
|
})(["opacity:0;position:absolute;cursor:pointer;"]),
|
|
@@ -7563,18 +7563,18 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
7563
7563
|
|
|
7564
7564
|
var _props$checked = props.checked,
|
|
7565
7565
|
conntroledChecked = _props$checked === void 0 ? checked : _props$checked;
|
|
7566
|
-
return /*#__PURE__*/React__default.createElement(styled$
|
|
7566
|
+
return /*#__PURE__*/React__default.createElement(styled$b.Container, {
|
|
7567
7567
|
checked: conntroledChecked,
|
|
7568
7568
|
rounded: rounded,
|
|
7569
7569
|
styles: styles
|
|
7570
|
-
}, /*#__PURE__*/React__default.createElement(styled$
|
|
7570
|
+
}, /*#__PURE__*/React__default.createElement(styled$b.Input, _extends$1({}, props, {
|
|
7571
7571
|
type: "checkbox",
|
|
7572
7572
|
disabled: disabled,
|
|
7573
7573
|
autoComplete: autoComplete ? 'on' : 'off',
|
|
7574
7574
|
onChange: handleChange
|
|
7575
7575
|
})), /*#__PURE__*/React__default.createElement(Icon, {
|
|
7576
7576
|
name: "check_bold",
|
|
7577
|
-
styles: styled$
|
|
7577
|
+
styles: styled$b.iconCheckStyles,
|
|
7578
7578
|
rounded: rounded
|
|
7579
7579
|
}));
|
|
7580
7580
|
};
|
|
@@ -7586,18 +7586,18 @@ Checkbox.defaultProps = {
|
|
|
7586
7586
|
}
|
|
7587
7587
|
};
|
|
7588
7588
|
|
|
7589
|
-
var styled$
|
|
7590
|
-
Wrapper: styled$
|
|
7589
|
+
var styled$a = {
|
|
7590
|
+
Wrapper: styled$h.div.withConfig({
|
|
7591
7591
|
displayName: "styles__Wrapper",
|
|
7592
7592
|
componentId: "sc-zbd85t-0"
|
|
7593
7593
|
})(["display:flex;align-items:center;"]),
|
|
7594
|
-
ColorSample: styled$
|
|
7594
|
+
ColorSample: styled$h.div.withConfig({
|
|
7595
7595
|
displayName: "styles__ColorSample",
|
|
7596
7596
|
componentId: "sc-zbd85t-1"
|
|
7597
7597
|
})(["display:block;width:16px;height:16px;background-color:", ";border:1px solid ", ";border-radius:50%;"], function (props) {
|
|
7598
7598
|
return props.color;
|
|
7599
7599
|
}, palette.grey),
|
|
7600
|
-
Label: styled$
|
|
7600
|
+
Label: styled$h.span.withConfig({
|
|
7601
7601
|
displayName: "styles__Label",
|
|
7602
7602
|
componentId: "sc-zbd85t-2"
|
|
7603
7603
|
})(["margin-left:5px;text-transform:", ";"], function (props) {
|
|
@@ -7610,9 +7610,9 @@ var Color = function Color(_ref) {
|
|
|
7610
7610
|
showLabel = _ref.showLabel;
|
|
7611
7611
|
if (!color) return null;
|
|
7612
7612
|
var colorCode = getColor(color);
|
|
7613
|
-
return /*#__PURE__*/React__default.createElement(styled$
|
|
7613
|
+
return /*#__PURE__*/React__default.createElement(styled$a.Wrapper, null, /*#__PURE__*/React__default.createElement(styled$a.ColorSample, {
|
|
7614
7614
|
color: colorCode
|
|
7615
|
-
}), showLabel && /*#__PURE__*/React__default.createElement(styled$
|
|
7615
|
+
}), showLabel && /*#__PURE__*/React__default.createElement(styled$a.Label, {
|
|
7616
7616
|
color: colorCode
|
|
7617
7617
|
}, colorCode));
|
|
7618
7618
|
};
|
|
@@ -7628,7 +7628,7 @@ var statusColor = function statusColor(props) {
|
|
|
7628
7628
|
if (checked) return palette.blue;
|
|
7629
7629
|
return palette.darkGrey;
|
|
7630
7630
|
};
|
|
7631
|
-
var Ball = styled$
|
|
7631
|
+
var Ball = styled$h.div.withConfig({
|
|
7632
7632
|
displayName: "styles__Ball",
|
|
7633
7633
|
componentId: "sc-rtzdt3-0"
|
|
7634
7634
|
})(["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) {
|
|
@@ -7639,8 +7639,8 @@ var iconCheckStyles = css(["position:absolute;fill:", ";", ""], function (props)
|
|
|
7639
7639
|
}, onlyPrint(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n\t\tfill: ", " !important;\n\t"])), function (props) {
|
|
7640
7640
|
return props.checked ? palette.black : palette.darkGrey;
|
|
7641
7641
|
}));
|
|
7642
|
-
var styled$
|
|
7643
|
-
OuterContainer: styled$
|
|
7642
|
+
var styled$9 = {
|
|
7643
|
+
OuterContainer: styled$h.div.withConfig({
|
|
7644
7644
|
displayName: "styles__OuterContainer",
|
|
7645
7645
|
componentId: "sc-rtzdt3-1"
|
|
7646
7646
|
})(["display:flex;width:44px;align-items:center;pointer-events:", ";align-self:center;position:relative;", " &:active ", "{box-shadow:0px 0px 0px 10px ", ";", " svg{fill:", ";}}"], function (props) {
|
|
@@ -7650,12 +7650,12 @@ var styled$8 = {
|
|
|
7650
7650
|
iconCheckStyles, function (props) {
|
|
7651
7651
|
return props.checked ? palette.blue : palette.darkGrey;
|
|
7652
7652
|
}),
|
|
7653
|
-
Input: styled$
|
|
7653
|
+
Input: styled$h.input.withConfig({
|
|
7654
7654
|
displayName: "styles__Input",
|
|
7655
7655
|
componentId: "sc-rtzdt3-2"
|
|
7656
7656
|
})(["position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:1;"]),
|
|
7657
7657
|
Ball: Ball,
|
|
7658
|
-
Container: styled$
|
|
7658
|
+
Container: styled$h.div.withConfig({
|
|
7659
7659
|
displayName: "styles__Container",
|
|
7660
7660
|
componentId: "sc-rtzdt3-3"
|
|
7661
7661
|
})(["width:44px;height:24px;background-color:", ";border-radius:50px;position:relative;", ""], function (props) {
|
|
@@ -7689,10 +7689,10 @@ var Switch = function Switch(_ref) {
|
|
|
7689
7689
|
|
|
7690
7690
|
var _props$checked = props.checked,
|
|
7691
7691
|
controledChecked = _props$checked === void 0 ? checked : _props$checked;
|
|
7692
|
-
return /*#__PURE__*/React__default.createElement(styled$
|
|
7692
|
+
return /*#__PURE__*/React__default.createElement(styled$9.OuterContainer, {
|
|
7693
7693
|
disabled: disabled,
|
|
7694
7694
|
checked: checked
|
|
7695
|
-
}, /*#__PURE__*/React__default.createElement(styled$
|
|
7695
|
+
}, /*#__PURE__*/React__default.createElement(styled$9.Input, {
|
|
7696
7696
|
checked: controledChecked,
|
|
7697
7697
|
id: id,
|
|
7698
7698
|
name: name,
|
|
@@ -7700,10 +7700,10 @@ var Switch = function Switch(_ref) {
|
|
|
7700
7700
|
disabled: disabled,
|
|
7701
7701
|
autoComplete: autoComplete ? 'on' : 'off',
|
|
7702
7702
|
onChange: handleChange
|
|
7703
|
-
}), /*#__PURE__*/React__default.createElement(styled$
|
|
7703
|
+
}), /*#__PURE__*/React__default.createElement(styled$9.Container, {
|
|
7704
7704
|
checked: controledChecked,
|
|
7705
7705
|
disabled: disabled
|
|
7706
|
-
}, /*#__PURE__*/React__default.createElement(styled$
|
|
7706
|
+
}, /*#__PURE__*/React__default.createElement(styled$9.Ball, {
|
|
7707
7707
|
checked: controledChecked,
|
|
7708
7708
|
disabled: disabled
|
|
7709
7709
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -7711,7 +7711,7 @@ var Switch = function Switch(_ref) {
|
|
|
7711
7711
|
disabled: disabled,
|
|
7712
7712
|
name: "check_bold",
|
|
7713
7713
|
size: 16,
|
|
7714
|
-
styles: styled$
|
|
7714
|
+
styles: styled$9.iconCheckStyles
|
|
7715
7715
|
}))));
|
|
7716
7716
|
};
|
|
7717
7717
|
|
|
@@ -7793,14 +7793,14 @@ var hoverAndFocusColor = function hoverAndFocusColor(props) {
|
|
|
7793
7793
|
return palette.black;
|
|
7794
7794
|
};
|
|
7795
7795
|
|
|
7796
|
-
var styled$
|
|
7797
|
-
Container: styled$
|
|
7796
|
+
var styled$8 = {
|
|
7797
|
+
Container: styled$h.div.withConfig({
|
|
7798
7798
|
displayName: "styles__Container",
|
|
7799
7799
|
componentId: "sc-1fhkfhs-0"
|
|
7800
7800
|
})(["position:relative;width:", ";"], function (props) {
|
|
7801
7801
|
return props.fullWidth ? '100%' : 'auto';
|
|
7802
7802
|
}),
|
|
7803
|
-
FloatingLabel: styled$
|
|
7803
|
+
FloatingLabel: styled$h.div.withConfig({
|
|
7804
7804
|
displayName: "styles__FloatingLabel",
|
|
7805
7805
|
componentId: "sc-1fhkfhs-1"
|
|
7806
7806
|
})(["position:absolute;font-size:", ";font-weight:400;color:", ";height:30px;line-height:30px;bottom:0;left:0;", " transform-origin:top left;transform:", ";transition:all 0.2s ", ";", ""], fontSize$1, function (props) {
|
|
@@ -7815,7 +7815,7 @@ var styled$7 = {
|
|
|
7815
7815
|
isFloating = _ref2.isFloating;
|
|
7816
7816
|
return hasIcon && !isFloating && "padding-left: 32px";
|
|
7817
7817
|
}),
|
|
7818
|
-
Input: styled$
|
|
7818
|
+
Input: styled$h.input.withConfig({
|
|
7819
7819
|
displayName: "styles__Input",
|
|
7820
7820
|
componentId: "sc-1fhkfhs-2"
|
|
7821
7821
|
})(["@keyframes onAutoFill{}", " height:34px;border:none;font-size:", ";font-weight:400;color:", ";transition:color 0.2s ", ";cursor:pointer;width:100%;border-bottom:1px solid ", ";border-radius:0;", " ", " ", " &:hover{border-color:", ";}&:focus{border-color:", ";caret-color:", ";outline:none;}&:disabled{background-color:", ";color:", ";border-color:", ";cursor:default;}&:-webkit-autofill{animation-name:onAutoFill;}::-webkit-inner-spin-button{appearance:none;}", ""], function (props) {
|
|
@@ -7836,11 +7836,11 @@ var styled$7 = {
|
|
|
7836
7836
|
}, function (props) {
|
|
7837
7837
|
return hoverAndFocusColor(props);
|
|
7838
7838
|
}, palette.white, palette.grey, palette.grey, mediaBreaks.onlyPrint(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n\t\t\tborder-bottom: none;\n\t\t"])))),
|
|
7839
|
-
ErrorMessage: styled$
|
|
7839
|
+
ErrorMessage: styled$h.span.withConfig({
|
|
7840
7840
|
displayName: "styles__ErrorMessage",
|
|
7841
7841
|
componentId: "sc-1fhkfhs-3"
|
|
7842
7842
|
})(["color:", ";font-size:12px;line-height:14px;transform:translateY(-6px);word-break:break-word;"], palette.statusRed),
|
|
7843
|
-
InputIcon: styled$
|
|
7843
|
+
InputIcon: styled$h(Icon).withConfig({
|
|
7844
7844
|
displayName: "styles__InputIcon",
|
|
7845
7845
|
componentId: "sc-1fhkfhs-4"
|
|
7846
7846
|
})(["position:absolute;flex-shrink:0;flex-grow:0;margin-right:8px;height:100%;"])
|
|
@@ -7946,11 +7946,11 @@ var Input = /*#__PURE__*/function (_PureComponent) {
|
|
|
7946
7946
|
|
|
7947
7947
|
var autoCompleteOff = props.type === 'password' ? 'new-password' : 'off';
|
|
7948
7948
|
var isFloating = isFocused || !!value.toString();
|
|
7949
|
-
return /*#__PURE__*/React__default.createElement(styled$
|
|
7949
|
+
return /*#__PURE__*/React__default.createElement(styled$8.Container, {
|
|
7950
7950
|
fullWidth: props.fullWidth
|
|
7951
|
-
}, /*#__PURE__*/React__default.createElement(styled$
|
|
7951
|
+
}, /*#__PURE__*/React__default.createElement(styled$8.Container, {
|
|
7952
7952
|
fullWidth: props.fullWidth
|
|
7953
|
-
}, hasFloatingLabel && /*#__PURE__*/React__default.createElement(styled$
|
|
7953
|
+
}, hasFloatingLabel && /*#__PURE__*/React__default.createElement(styled$8.FloatingLabel, {
|
|
7954
7954
|
"data-test": "floatingLabel",
|
|
7955
7955
|
error: error,
|
|
7956
7956
|
onClick: this.handleLabelClick,
|
|
@@ -7959,10 +7959,10 @@ var Input = /*#__PURE__*/function (_PureComponent) {
|
|
|
7959
7959
|
isFloating: isFloating,
|
|
7960
7960
|
hasIcon: !!icon,
|
|
7961
7961
|
isTranslateActive: isTranslateActive
|
|
7962
|
-
}, props.label), icon && /*#__PURE__*/React__default.createElement(styled$
|
|
7962
|
+
}, props.label), icon && /*#__PURE__*/React__default.createElement(styled$8.InputIcon, {
|
|
7963
7963
|
name: icon,
|
|
7964
7964
|
color: error ? 'statusRed' : 'black'
|
|
7965
|
-
}), /*#__PURE__*/React__default.createElement(styled$
|
|
7965
|
+
}), /*#__PURE__*/React__default.createElement(styled$8.Input, _extends$1({}, props, {
|
|
7966
7966
|
ref: this.input,
|
|
7967
7967
|
placeholder: hasFloatingLabel && !isFloating ? '' : placeholder,
|
|
7968
7968
|
onBlur: this.handleBlur,
|
|
@@ -7975,7 +7975,7 @@ var Input = /*#__PURE__*/function (_PureComponent) {
|
|
|
7975
7975
|
error: error,
|
|
7976
7976
|
hasIcon: !!icon,
|
|
7977
7977
|
onAnimationStart: this.handleFocus
|
|
7978
|
-
}))), error && /*#__PURE__*/React__default.createElement(styled$
|
|
7978
|
+
}))), error && /*#__PURE__*/React__default.createElement(styled$8.ErrorMessage, {
|
|
7979
7979
|
"data-test": "errorMessage"
|
|
7980
7980
|
}, errorMessage));
|
|
7981
7981
|
}
|
|
@@ -8021,14 +8021,14 @@ var placeholderColor = function placeholderColor(props) {
|
|
|
8021
8021
|
return palette.darkGreyPressed;
|
|
8022
8022
|
};
|
|
8023
8023
|
|
|
8024
|
-
var styled$
|
|
8025
|
-
Container: styled$
|
|
8024
|
+
var styled$7 = {
|
|
8025
|
+
Container: styled$h.div.withConfig({
|
|
8026
8026
|
displayName: "styles__Container",
|
|
8027
8027
|
componentId: "sc-wtau65-0"
|
|
8028
8028
|
})(["position:relative;width:", ";"], function (props) {
|
|
8029
8029
|
return props.fullWidth ? '100%' : 'auto';
|
|
8030
8030
|
}),
|
|
8031
|
-
Textarea: styled$
|
|
8031
|
+
Textarea: styled$h.textarea.withConfig({
|
|
8032
8032
|
displayName: "styles__Textarea",
|
|
8033
8033
|
componentId: "sc-wtau65-1"
|
|
8034
8034
|
})(["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) {
|
|
@@ -8038,7 +8038,7 @@ var styled$6 = {
|
|
|
8038
8038
|
})), mixins.scrollbar(palette.grey, palette.base), palette.black, palette.blue, palette.blue, palette.white, palette.grey, palette.grey, function (props) {
|
|
8039
8039
|
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");
|
|
8040
8040
|
}, mediaBreaks.onlyPrint(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\tmin-height: initial;\n\t\t\theight: auto !important;\n\t\t\tborder-bottom: none;\n\t\t"])))),
|
|
8041
|
-
FloatingLabel: styled$
|
|
8041
|
+
FloatingLabel: styled$h.div.withConfig({
|
|
8042
8042
|
displayName: "styles__FloatingLabel",
|
|
8043
8043
|
componentId: "sc-wtau65-2"
|
|
8044
8044
|
})(["position:absolute;font-size:", ";font-weight:400;color:", ";height:24px;line-height:22px;top:0;left:0;pointer-events:", ";transform-origin:top left;transform:", ";transition:all 0.2s ", ";"], fontSize, function (props) {
|
|
@@ -8049,7 +8049,7 @@ var styled$6 = {
|
|
|
8049
8049
|
}, function (props) {
|
|
8050
8050
|
return props.isFloating && 'translate(0, -18px) scale(0.75)';
|
|
8051
8051
|
}, timingFunctions.standard),
|
|
8052
|
-
ErrorMessage: styled$
|
|
8052
|
+
ErrorMessage: styled$h.span.withConfig({
|
|
8053
8053
|
displayName: "styles__ErrorMessage",
|
|
8054
8054
|
componentId: "sc-wtau65-3"
|
|
8055
8055
|
})(["color:", ";font-size:12px;line-height:14px;display:block;word-break:break-word;"], palette.statusRed)
|
|
@@ -8160,9 +8160,9 @@ var Textarea = /*#__PURE__*/function (_PureComponent) {
|
|
|
8160
8160
|
var props = _objectWithoutProperties(_this$props, _excluded$4);
|
|
8161
8161
|
|
|
8162
8162
|
var isFloating = isFocused || !!value;
|
|
8163
|
-
return /*#__PURE__*/React__default.createElement(styled$
|
|
8163
|
+
return /*#__PURE__*/React__default.createElement(styled$7.Container, {
|
|
8164
8164
|
fullWidth: props.fullWidth
|
|
8165
|
-
}, hasFloatingLabel && /*#__PURE__*/React__default.createElement(styled$
|
|
8165
|
+
}, hasFloatingLabel && /*#__PURE__*/React__default.createElement(styled$7.FloatingLabel, _extends$1({}, props, {
|
|
8166
8166
|
"data-test": "floatingLabel",
|
|
8167
8167
|
error: error,
|
|
8168
8168
|
onClick: this.handleLabelClick,
|
|
@@ -8170,7 +8170,7 @@ var Textarea = /*#__PURE__*/function (_PureComponent) {
|
|
|
8170
8170
|
isFocused: isFocused,
|
|
8171
8171
|
isFloating: isFloating,
|
|
8172
8172
|
isTranslateActive: isTranslateActive
|
|
8173
|
-
}), label), /*#__PURE__*/React__default.createElement(styled$
|
|
8173
|
+
}), label), /*#__PURE__*/React__default.createElement(styled$7.Textarea, _extends$1({}, props, {
|
|
8174
8174
|
ref: this.textarea,
|
|
8175
8175
|
placeholder: hasFloatingLabel && !isFloating ? '' : placeholder,
|
|
8176
8176
|
onBlur: this.handleBlur,
|
|
@@ -8181,7 +8181,7 @@ var Textarea = /*#__PURE__*/function (_PureComponent) {
|
|
|
8181
8181
|
value: value,
|
|
8182
8182
|
autoComplete: autoComplete ? 'on' : 'off',
|
|
8183
8183
|
disabled: disabled
|
|
8184
|
-
})), error && /*#__PURE__*/React__default.createElement(styled$
|
|
8184
|
+
})), error && /*#__PURE__*/React__default.createElement(styled$7.ErrorMessage, {
|
|
8185
8185
|
"data-test": "errorMessage"
|
|
8186
8186
|
}, errorMessage));
|
|
8187
8187
|
}
|
|
@@ -8249,8 +8249,8 @@ var getBorders = function getBorders(value) {
|
|
|
8249
8249
|
return 'initial';
|
|
8250
8250
|
};
|
|
8251
8251
|
|
|
8252
|
-
var styled$
|
|
8253
|
-
ImageWrapper: styled$
|
|
8252
|
+
var styled$6 = {
|
|
8253
|
+
ImageWrapper: styled$h.div.withConfig({
|
|
8254
8254
|
displayName: "styles__ImageWrapper",
|
|
8255
8255
|
componentId: "sc-vrvp1c-0"
|
|
8256
8256
|
})(["width:", ";height:", ";border-radius:", ";", ";overflow:hidden;display:flex;justify-content:center;align-items:center;"], function (_ref) {
|
|
@@ -8266,7 +8266,7 @@ var styled$5 = {
|
|
|
8266
8266
|
var background = _ref4.background;
|
|
8267
8267
|
return background && "background-color: ".concat(background);
|
|
8268
8268
|
}),
|
|
8269
|
-
Image: styled$
|
|
8269
|
+
Image: styled$h.img.withConfig({
|
|
8270
8270
|
displayName: "styles__Image",
|
|
8271
8271
|
componentId: "sc-vrvp1c-1"
|
|
8272
8272
|
})(["width:", ";height:", ";border-radius:", ";"], function (_ref5) {
|
|
@@ -8295,7 +8295,7 @@ var Image = function Image(_ref) {
|
|
|
8295
8295
|
errorImage = _useState2[0],
|
|
8296
8296
|
setErrorImage = _useState2[1];
|
|
8297
8297
|
|
|
8298
|
-
return errorImage ? /*#__PURE__*/React__default.createElement(styled$
|
|
8298
|
+
return errorImage ? /*#__PURE__*/React__default.createElement(styled$6.ImageWrapper, {
|
|
8299
8299
|
background: background,
|
|
8300
8300
|
width: width || height,
|
|
8301
8301
|
height: height || width
|
|
@@ -8303,7 +8303,7 @@ var Image = function Image(_ref) {
|
|
|
8303
8303
|
name: errorImage,
|
|
8304
8304
|
size: (width || height) * 0.35 || 20,
|
|
8305
8305
|
color: palette.lightGreyPressed
|
|
8306
|
-
})) : /*#__PURE__*/React__default.createElement(styled$
|
|
8306
|
+
})) : /*#__PURE__*/React__default.createElement(styled$6.Image, {
|
|
8307
8307
|
src: url,
|
|
8308
8308
|
alt: altText || url,
|
|
8309
8309
|
width: width,
|
|
@@ -9103,8 +9103,8 @@ QRCode.defaultProps = {
|
|
|
9103
9103
|
|
|
9104
9104
|
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=useRef(e),n=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.memo(function(o){var a=o.onMove,l=o.onKey,s=c(o,["onMove","onKey"]),m=useRef(null),g=i(a),p=i(l),b=useRef(null),_=useRef(!1),x=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 useEffect(function(){return H},[H]),React__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.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},React__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.memo(function(r){var t=r.hue,n=r.onChange,o=g(["react-colorful__hue",r.className]);return React__default.createElement("div",{className:o},React__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.createElement(p,{className:"react-colorful__hue-pointer",left:t/360,color:w({h:t,s:100,v:100,a:1})})))}),L=React__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.createElement("div",{className:"react-colorful__saturation",style:o},React__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.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=useState(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=useRef({color:t,hsva:s});useEffect(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r);}},[t,e]),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=useCallback(function(e){f(function(r){return Object.assign({},r,e)});},[]);return [s,d]}var P="undefined"!=typeof window?useLayoutEffect: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=useRef(null);V(f);var v=T(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return React__default.createElement("div",u({},s,{ref:f,className:m}),React__default.createElement(L,{hsva:d,onChange:h}),React__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.createElement($$4,u({},r,{colorModel:G}))};
|
|
9105
9105
|
|
|
9106
|
-
var styled$
|
|
9107
|
-
ClickableWrapper: styled$
|
|
9106
|
+
var styled$5 = {
|
|
9107
|
+
ClickableWrapper: styled$h.div.withConfig({
|
|
9108
9108
|
displayName: "styles__ClickableWrapper",
|
|
9109
9109
|
componentId: "sc-lreg3c-0"
|
|
9110
9110
|
})(["display:flex;align-items:center;border:none;cursor:pointer;&:before{content:'';z-index:1;display:inline-block;border:1px solid ", ";background-color:", ";border-radius:48%;width:14px;height:14px;margin:7px 4px;position:absolute;margin-bottom:", "px;}"], palette.grey, function (props) {
|
|
@@ -9112,19 +9112,19 @@ var styled$4 = {
|
|
|
9112
9112
|
}, function (props) {
|
|
9113
9113
|
return props.error ? '25' : '7';
|
|
9114
9114
|
}),
|
|
9115
|
-
ClosePickerWrapper: styled$
|
|
9115
|
+
ClosePickerWrapper: styled$h.div.withConfig({
|
|
9116
9116
|
displayName: "styles__ClosePickerWrapper",
|
|
9117
9117
|
componentId: "sc-lreg3c-1"
|
|
9118
9118
|
})(["position:fixed;top:0px;right:0px;bottom:0px;left:0px;"]),
|
|
9119
|
-
Input: styled$
|
|
9119
|
+
Input: styled$h(Input).withConfig({
|
|
9120
9120
|
displayName: "styles__Input",
|
|
9121
9121
|
componentId: "sc-lreg3c-2"
|
|
9122
9122
|
})(["padding-left:26px;"]),
|
|
9123
|
-
PickerWrapper: styled$
|
|
9123
|
+
PickerWrapper: styled$h.div.withConfig({
|
|
9124
9124
|
displayName: "styles__PickerWrapper",
|
|
9125
9125
|
componentId: "sc-lreg3c-3"
|
|
9126
9126
|
})(["position:absolute;top:31px;z-index:2;left:0;margin-top:15px;"]),
|
|
9127
|
-
Wrapper: styled$
|
|
9127
|
+
Wrapper: styled$h.div.withConfig({
|
|
9128
9128
|
displayName: "styles__Wrapper",
|
|
9129
9129
|
componentId: "sc-lreg3c-4"
|
|
9130
9130
|
})(["display:flex;flex-direction:column;width:100%;position:relative;"])
|
|
@@ -9168,13 +9168,13 @@ var ColorPicker = function ColorPicker(_ref) {
|
|
|
9168
9168
|
var value = colorValue || DEFAULT_COLOR;
|
|
9169
9169
|
|
|
9170
9170
|
if (isCollapsable) {
|
|
9171
|
-
return /*#__PURE__*/React__default.createElement(styled$
|
|
9171
|
+
return /*#__PURE__*/React__default.createElement(styled$5.Wrapper, null, /*#__PURE__*/React__default.createElement(styled$5.ClickableWrapper, {
|
|
9172
9172
|
"data-test": "collapsible-picker",
|
|
9173
9173
|
color: value,
|
|
9174
9174
|
role: "presentation",
|
|
9175
9175
|
onClick: toggleStateVisible,
|
|
9176
9176
|
error: error
|
|
9177
|
-
}, /*#__PURE__*/React__default.createElement(styled$
|
|
9177
|
+
}, /*#__PURE__*/React__default.createElement(styled$5.Input, {
|
|
9178
9178
|
value: colorValue,
|
|
9179
9179
|
fullWidth: true,
|
|
9180
9180
|
onChange: function onChange(_ref2) {
|
|
@@ -9183,10 +9183,10 @@ var ColorPicker = function ColorPicker(_ref) {
|
|
|
9183
9183
|
},
|
|
9184
9184
|
errorMessage: errorMessage,
|
|
9185
9185
|
error: error
|
|
9186
|
-
})), pickerVisible && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(styled$
|
|
9186
|
+
})), pickerVisible && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(styled$5.ClosePickerWrapper, {
|
|
9187
9187
|
onClick: handleClosePicker,
|
|
9188
9188
|
role: "presentation"
|
|
9189
|
-
}), /*#__PURE__*/React__default.createElement(styled$
|
|
9189
|
+
}), /*#__PURE__*/React__default.createElement(styled$5.PickerWrapper, null, /*#__PURE__*/React__default.createElement(J, {
|
|
9190
9190
|
color: value,
|
|
9191
9191
|
onChange: change
|
|
9192
9192
|
}))));
|
|
@@ -9550,12 +9550,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
9550
9550
|
|
|
9551
9551
|
var Frame = /*@__PURE__*/getDefaultExportFromCjs(lib$1);
|
|
9552
9552
|
|
|
9553
|
-
var styled$
|
|
9554
|
-
Wrapper: styled$
|
|
9553
|
+
var styled$4 = {
|
|
9554
|
+
Wrapper: styled$h.div.withConfig({
|
|
9555
9555
|
displayName: "styles__Wrapper",
|
|
9556
9556
|
componentId: "sc-3jodl7-0"
|
|
9557
9557
|
})(["display:flex;align-items:center;align-self:center;height:100%;max-height:36px;overflow:hidden;white-space:nowrap;"]),
|
|
9558
|
-
Icon: styled$
|
|
9558
|
+
Icon: styled$h(Icon).withConfig({
|
|
9559
9559
|
displayName: "styles__Icon",
|
|
9560
9560
|
componentId: "sc-3jodl7-1"
|
|
9561
9561
|
})(["margin-right:6px;flex-shrink:0;"])
|
|
@@ -9563,7 +9563,7 @@ var styled$3 = {
|
|
|
9563
9563
|
|
|
9564
9564
|
var DefaultError = function DefaultError(_ref) {
|
|
9565
9565
|
var message = _ref.message;
|
|
9566
|
-
return /*#__PURE__*/React__default.createElement(styled$
|
|
9566
|
+
return /*#__PURE__*/React__default.createElement(styled$4.Wrapper, null, /*#__PURE__*/React__default.createElement(styled$4.Icon, {
|
|
9567
9567
|
name: "exclamation_circle",
|
|
9568
9568
|
color: "statusRed"
|
|
9569
9569
|
}), /*#__PURE__*/React__default.createElement("p", {
|
|
@@ -9675,12 +9675,12 @@ HTML.defaultProps = {
|
|
|
9675
9675
|
height: 'medium'
|
|
9676
9676
|
};
|
|
9677
9677
|
|
|
9678
|
-
var styled$
|
|
9679
|
-
LinkWrapper: styled$
|
|
9678
|
+
var styled$3 = {
|
|
9679
|
+
LinkWrapper: styled$h.div.withConfig({
|
|
9680
9680
|
displayName: "styles__LinkWrapper",
|
|
9681
9681
|
componentId: "sc-fhfdft-0"
|
|
9682
9682
|
})(["display:flex;color:", ";align-items:center;font-size:13px;& a{text-decoration:none;color:inherit;}"], getColor('blue')),
|
|
9683
|
-
StyledIcon: styled$
|
|
9683
|
+
StyledIcon: styled$h(Icon).withConfig({
|
|
9684
9684
|
displayName: "styles__StyledIcon",
|
|
9685
9685
|
componentId: "sc-fhfdft-1"
|
|
9686
9686
|
})(["margin-right:8px;"])
|
|
@@ -9696,12 +9696,12 @@ var Link = function Link(_ref) {
|
|
|
9696
9696
|
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
9697
9697
|
|
|
9698
9698
|
var renderIcon = function renderIcon() {
|
|
9699
|
-
return icon ? /*#__PURE__*/React__default.createElement(styled$
|
|
9699
|
+
return icon ? /*#__PURE__*/React__default.createElement(styled$3.StyledIcon, {
|
|
9700
9700
|
name: icon
|
|
9701
9701
|
}) : null;
|
|
9702
9702
|
};
|
|
9703
9703
|
|
|
9704
|
-
return /*#__PURE__*/React__default.createElement(styled$
|
|
9704
|
+
return /*#__PURE__*/React__default.createElement(styled$3.LinkWrapper, props, renderIcon(), /*#__PURE__*/React__default.createElement("a", {
|
|
9705
9705
|
href: href,
|
|
9706
9706
|
target: target
|
|
9707
9707
|
}, children || href));
|
|
@@ -9778,7 +9778,7 @@ var setPosition = function setPosition(position, open) {
|
|
|
9778
9778
|
return positions[position];
|
|
9779
9779
|
};
|
|
9780
9780
|
|
|
9781
|
-
var Drawer$1 = styled$
|
|
9781
|
+
var Drawer$1 = styled$h.div.withConfig({
|
|
9782
9782
|
displayName: "styles__Drawer",
|
|
9783
9783
|
componentId: "sc-1tz9fgf-0"
|
|
9784
9784
|
})(["box-sizing:border-box;background-color:#ffffff;overflow:hidden;position:absolute;box-shadow:0px 2px 5px 0px #27394727;border-radius:3px;", ";z-index:999;"], function (_ref3) {
|
|
@@ -9788,27 +9788,27 @@ var Drawer$1 = styled$g.div.withConfig({
|
|
|
9788
9788
|
var transitionTime = transitionDuration / 1000;
|
|
9789
9789
|
return css(["", ";", ";"], position && setPosition(position, open), transitionDuration && "transition: ".concat(getPropertyForTransition(position), " ").concat(transitionTime, "s ease"));
|
|
9790
9790
|
});
|
|
9791
|
-
var Content = styled$
|
|
9791
|
+
var Content = styled$h.div.withConfig({
|
|
9792
9792
|
displayName: "styles__Content",
|
|
9793
9793
|
componentId: "sc-1tz9fgf-1"
|
|
9794
9794
|
})(["min-height:300px;min-width:300px;box-sizing:border-box;padding:16px 28px 32px 32px;"]);
|
|
9795
|
-
var Header = styled$
|
|
9795
|
+
var Header = styled$h.div.withConfig({
|
|
9796
9796
|
displayName: "styles__Header",
|
|
9797
9797
|
componentId: "sc-1tz9fgf-2"
|
|
9798
9798
|
})(["display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;"]);
|
|
9799
|
-
var CloseBtn = styled$
|
|
9799
|
+
var CloseBtn = styled$h(Button).withConfig({
|
|
9800
9800
|
displayName: "styles__CloseBtn",
|
|
9801
9801
|
componentId: "sc-1tz9fgf-3"
|
|
9802
9802
|
})(["padding:0;background-color:transparent;margin-left:auto;"]);
|
|
9803
|
-
var Children = styled$
|
|
9803
|
+
var Children = styled$h.div.withConfig({
|
|
9804
9804
|
displayName: "styles__Children",
|
|
9805
9805
|
componentId: "sc-1tz9fgf-4"
|
|
9806
9806
|
})(["width:inherit;"]);
|
|
9807
|
-
var Overlay = styled$
|
|
9807
|
+
var Overlay = styled$h.div.withConfig({
|
|
9808
9808
|
displayName: "styles__Overlay",
|
|
9809
9809
|
componentId: "sc-1tz9fgf-5"
|
|
9810
9810
|
})(["position:absolute;width:100%;height:100%;top:0;left:0;visibility:hidden;pointer-events:none;z-index:998;"]);
|
|
9811
|
-
var styled$
|
|
9811
|
+
var styled$2 = {
|
|
9812
9812
|
Drawer: Drawer$1,
|
|
9813
9813
|
Content: Content,
|
|
9814
9814
|
Header: Header,
|
|
@@ -9832,16 +9832,16 @@ var Drawer = function Drawer(_ref) {
|
|
|
9832
9832
|
var drawerRef = useRef(null);
|
|
9833
9833
|
return /*#__PURE__*/React__default.createElement(ClickAwayListener, {
|
|
9834
9834
|
onClickAway: closeOnClickAway && open && handleClose
|
|
9835
|
-
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(styled$
|
|
9835
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(styled$2.Drawer, _extends$1({
|
|
9836
9836
|
open: open,
|
|
9837
9837
|
position: position,
|
|
9838
9838
|
transitionDuration: transitionDuration,
|
|
9839
9839
|
fullScreen: fullScreen,
|
|
9840
9840
|
className: "drawer",
|
|
9841
9841
|
ref: drawerRef
|
|
9842
|
-
}, props), /*#__PURE__*/React__default.createElement(styled$
|
|
9842
|
+
}, props), /*#__PURE__*/React__default.createElement(styled$2.Content, {
|
|
9843
9843
|
className: "drawer__content"
|
|
9844
|
-
}, /*#__PURE__*/React__default.createElement(styled$
|
|
9844
|
+
}, /*#__PURE__*/React__default.createElement(styled$2.Header, null, handleClose && typeof handleClose === 'function' && /*#__PURE__*/React__default.createElement(styled$2.CloseBtn, {
|
|
9845
9845
|
onClick: handleClose,
|
|
9846
9846
|
type: "button",
|
|
9847
9847
|
rounded: true
|
|
@@ -9850,7 +9850,7 @@ var Drawer = function Drawer(_ref) {
|
|
|
9850
9850
|
name: "cross_light",
|
|
9851
9851
|
width: 24,
|
|
9852
9852
|
height: 24
|
|
9853
|
-
}))), /*#__PURE__*/React__default.createElement(styled$
|
|
9853
|
+
}))), /*#__PURE__*/React__default.createElement(styled$2.Children, null, children))), /*#__PURE__*/React__default.createElement(styled$2.Overlay, {
|
|
9854
9854
|
className: "drawer__overlay",
|
|
9855
9855
|
transitionDuration: transitionDuration
|
|
9856
9856
|
})));
|
|
@@ -35389,12 +35389,12 @@ var parsePlaces = (function (places, parsedData) {
|
|
|
35389
35389
|
}, _objectSpread2({}, parsedData));
|
|
35390
35390
|
});
|
|
35391
35391
|
|
|
35392
|
-
var styled = {
|
|
35393
|
-
LoadingElement: styled$
|
|
35392
|
+
var styled$1 = {
|
|
35393
|
+
LoadingElement: styled$h.div.withConfig({
|
|
35394
35394
|
displayName: "styles__LoadingElement",
|
|
35395
35395
|
componentId: "sc-z1wxm2-0"
|
|
35396
35396
|
})(["height:100%;"]),
|
|
35397
|
-
SearchBoxWrapper: styled$
|
|
35397
|
+
SearchBoxWrapper: styled$h.div.withConfig({
|
|
35398
35398
|
displayName: "styles__SearchBoxWrapper",
|
|
35399
35399
|
componentId: "sc-z1wxm2-1"
|
|
35400
35400
|
})(["z-index:0;position:relative;right:0px;top:0px;background:", ";margin:10px;padding:4px 8px 6px;border-radius:2px;width:auto;box-shadow:rgba(0,0,0,0.3) 0px 1px 4px -1px;"], palette.white)
|
|
@@ -35449,7 +35449,7 @@ var SearchBox = function SearchBox(_ref) {
|
|
|
35449
35449
|
return /*#__PURE__*/React__default.createElement(StandaloneSearchBox, {
|
|
35450
35450
|
onPlacesChanged: onPlacesChanged,
|
|
35451
35451
|
onLoad: onLoad
|
|
35452
|
-
}, /*#__PURE__*/React__default.createElement(styled.SearchBoxWrapper, null, /*#__PURE__*/React__default.createElement(Input, {
|
|
35452
|
+
}, /*#__PURE__*/React__default.createElement(styled$1.SearchBoxWrapper, null, /*#__PURE__*/React__default.createElement(Input, {
|
|
35453
35453
|
placeholder: "Search",
|
|
35454
35454
|
hasFloatingLabel: false
|
|
35455
35455
|
})));
|
|
@@ -35558,7 +35558,7 @@ var Map$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
35558
35558
|
Map$1.displayName = 'Map';
|
|
35559
35559
|
|
|
35560
35560
|
var rotate = keyframes(["to{transform:rotate(360deg);}"]);
|
|
35561
|
-
var Spinner$1 = styled$
|
|
35561
|
+
var Spinner$1 = styled$h.div.withConfig({
|
|
35562
35562
|
displayName: "styles__Spinner",
|
|
35563
35563
|
componentId: "sc-1e490ps-0"
|
|
35564
35564
|
})(["", ""], function (_ref) {
|
|
@@ -35569,7 +35569,7 @@ var Spinner$1 = styled$g.div.withConfig({
|
|
|
35569
35569
|
backSpinnerColor = _ref.backSpinnerColor;
|
|
35570
35570
|
return 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);
|
|
35571
35571
|
});
|
|
35572
|
-
var SpinnerWrapper = styled$
|
|
35572
|
+
var SpinnerWrapper = styled$h.div.withConfig({
|
|
35573
35573
|
displayName: "styles__SpinnerWrapper",
|
|
35574
35574
|
componentId: "sc-1e490ps-1"
|
|
35575
35575
|
})(["position:relative;display:flex;justify-content:center;align-items:center;width:", "px;height:", "px;"], function (_ref2) {
|
|
@@ -35579,7 +35579,7 @@ var SpinnerWrapper = styled$g.div.withConfig({
|
|
|
35579
35579
|
var size = _ref3.size;
|
|
35580
35580
|
return size;
|
|
35581
35581
|
});
|
|
35582
|
-
var CenterContent = styled$
|
|
35582
|
+
var CenterContent = styled$h.div.withConfig({
|
|
35583
35583
|
displayName: "styles__CenterContent",
|
|
35584
35584
|
componentId: "sc-1e490ps-2"
|
|
35585
35585
|
})(["position:absolute;display:flex;justify-content:center;align-items:center;"]);
|
|
@@ -35615,7 +35615,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
35615
35615
|
};
|
|
35616
35616
|
|
|
35617
35617
|
var show = keyframes(["0%{opacity:0;}to{opacity:1;}"]);
|
|
35618
|
-
var Container = styled$
|
|
35618
|
+
var Container = styled$h.section.withConfig({
|
|
35619
35619
|
displayName: "styles__Container",
|
|
35620
35620
|
componentId: "sc-19kt9g-0"
|
|
35621
35621
|
})(["display:flex;justify-content:center;align-items:center;width:100vw;height:100vh;position:fixed;top:0;left:0;background:", ";", ";z-index:100;animation:", " 0.2s ease-in;"], function (_ref) {
|
|
@@ -35625,7 +35625,7 @@ var Container = styled$g.section.withConfig({
|
|
|
35625
35625
|
var effect = _ref2.effect;
|
|
35626
35626
|
return effect && css(effect);
|
|
35627
35627
|
}, show);
|
|
35628
|
-
var LoaderContainer = styled$
|
|
35628
|
+
var LoaderContainer = styled$h.div.withConfig({
|
|
35629
35629
|
displayName: "styles__LoaderContainer",
|
|
35630
35630
|
componentId: "sc-19kt9g-1"
|
|
35631
35631
|
})(["position:relative;display:flex;justify-content:center;align-items:center;width:115px;height:115px;"]);
|
|
@@ -35656,5 +35656,78 @@ var FullLoader = function FullLoader(_ref) {
|
|
|
35656
35656
|
})));
|
|
35657
35657
|
};
|
|
35658
35658
|
|
|
35659
|
-
|
|
35659
|
+
var Bar = styled$h.div.withConfig({
|
|
35660
|
+
displayName: "styles__Bar",
|
|
35661
|
+
componentId: "sc-1baov1w-0"
|
|
35662
|
+
})(["width:100%;height:", ";background-color:", ";border-radius:10px;overflow:hidden;"], function (_ref) {
|
|
35663
|
+
var _ref$height = _ref.height,
|
|
35664
|
+
height = _ref$height === void 0 ? 16 : _ref$height;
|
|
35665
|
+
return "".concat(height, "px");
|
|
35666
|
+
}, palette.grey);
|
|
35667
|
+
|
|
35668
|
+
var progressAnimation = function progressAnimation() {
|
|
35669
|
+
var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
35670
|
+
return keyframes(["0%{transform:scaleX(0);}100%{transform:scaleX(", ");}"], scale);
|
|
35671
|
+
};
|
|
35672
|
+
|
|
35673
|
+
var ProgressFill = styled$h.div.withConfig({
|
|
35674
|
+
displayName: "styles__ProgressFill",
|
|
35675
|
+
componentId: "sc-1baov1w-1"
|
|
35676
|
+
})(["width:100%;height:100%;transform-origin:left center;background-color:", ";", ""], function (_ref2) {
|
|
35677
|
+
var _ref2$color = _ref2.color,
|
|
35678
|
+
color = _ref2$color === void 0 ? palette.blue : _ref2$color;
|
|
35679
|
+
return color;
|
|
35680
|
+
}, function (_ref3) {
|
|
35681
|
+
var _ref3$value = _ref3.value,
|
|
35682
|
+
value = _ref3$value === void 0 ? 0 : _ref3$value,
|
|
35683
|
+
_ref3$maxValue = _ref3.maxValue,
|
|
35684
|
+
maxValue = _ref3$maxValue === void 0 ? 100 : _ref3$maxValue,
|
|
35685
|
+
_ref3$animated = _ref3.animated,
|
|
35686
|
+
animated = _ref3$animated === void 0 ? false : _ref3$animated,
|
|
35687
|
+
_ref3$duration = _ref3.duration,
|
|
35688
|
+
duration = _ref3$duration === void 0 ? 1 : _ref3$duration;
|
|
35689
|
+
var scale = value / maxValue;
|
|
35690
|
+
return animated && isNumber(duration) && duration > 0 ? css(["animation:", " ", " linear forwards;"], progressAnimation(scale), "".concat(duration, "s")) : css(["transform:scaleX(", ");"], scale);
|
|
35691
|
+
});
|
|
35692
|
+
var styled = {
|
|
35693
|
+
Bar: Bar,
|
|
35694
|
+
ProgressFill: ProgressFill
|
|
35695
|
+
};
|
|
35696
|
+
|
|
35697
|
+
var isValidValue = function isValidValue(value) {
|
|
35698
|
+
return !!value && isNumber(value) && value > 0;
|
|
35699
|
+
};
|
|
35700
|
+
|
|
35701
|
+
var ProgressBar = function ProgressBar(_ref) {
|
|
35702
|
+
var value = _ref.value,
|
|
35703
|
+
_ref$maxValue = _ref.maxValue,
|
|
35704
|
+
maxValue = _ref$maxValue === void 0 ? 100 : _ref$maxValue,
|
|
35705
|
+
_ref$animated = _ref.animated,
|
|
35706
|
+
animated = _ref$animated === void 0 ? false : _ref$animated,
|
|
35707
|
+
_ref$duration = _ref.duration,
|
|
35708
|
+
duration = _ref$duration === void 0 ? 1 : _ref$duration,
|
|
35709
|
+
_ref$height = _ref.height,
|
|
35710
|
+
height = _ref$height === void 0 ? 16 : _ref$height,
|
|
35711
|
+
_ref$color = _ref.color,
|
|
35712
|
+
color = _ref$color === void 0 ? 'blue' : _ref$color;
|
|
35713
|
+
if (!isValidValue(value) || !isValidValue(maxValue) || value > maxValue) return null;
|
|
35714
|
+
var progress = Math.max(0, Math.min(maxValue, value));
|
|
35715
|
+
return /*#__PURE__*/React__default.createElement(styled.Bar, {
|
|
35716
|
+
height: height,
|
|
35717
|
+
role: "progressbar",
|
|
35718
|
+
"aria-valuemin": 0,
|
|
35719
|
+
"aria-valuemax": maxValue,
|
|
35720
|
+
"aria-valuenow": animated ? undefined : Math.round(progress),
|
|
35721
|
+
"aria-busy": animated || undefined,
|
|
35722
|
+
"aria-valuetext": animated ? undefined : "".concat(Math.round(progress / maxValue * 100), "%")
|
|
35723
|
+
}, /*#__PURE__*/React__default.createElement(styled.ProgressFill, {
|
|
35724
|
+
value: progress,
|
|
35725
|
+
maxValue: maxValue,
|
|
35726
|
+
animated: animated,
|
|
35727
|
+
duration: duration,
|
|
35728
|
+
color: getColor(color)
|
|
35729
|
+
}));
|
|
35730
|
+
};
|
|
35731
|
+
|
|
35732
|
+
export { Avatar, AvatarGroup$1 as AvatarGroup, Button, Checkbox, Chip, ClickAwayListener, Color, ColorPicker, Drawer, ErrorBoundary, FullLoader, HTML, Icon, Image, Input, Link, Map$1 as Map, ProgressBar, QRCode, Skeleton, Spinner, Switch, Textarea, icons, palette };
|
|
35660
35733
|
//# sourceMappingURL=index.esm.js.map
|