@mw-kit/mw-ui 1.7.15 → 1.7.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/constants.d.ts +7 -8
- package/dist/components/Button/interfaces.d.ts +1 -1
- package/dist/components/Button/theme.d.ts +30 -15
- package/dist/components/theme.d.ts +30 -15
- package/dist/index.js +92 -99
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +92 -99
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -445,24 +445,40 @@ var Loader = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateL
|
|
|
445
445
|
});
|
|
446
446
|
|
|
447
447
|
var sizes = {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
448
|
+
mini: {
|
|
449
|
+
fontSize: '11px',
|
|
450
|
+
lineHeight: '13px',
|
|
451
|
+
minWidth: '51px',
|
|
452
|
+
minHeight: '28px'
|
|
453
|
+
},
|
|
454
|
+
tiny: {
|
|
455
|
+
fontSize: '13px',
|
|
456
|
+
lineHeight: '16px',
|
|
457
|
+
minWidth: '62px',
|
|
458
|
+
minHeight: '34px'
|
|
459
|
+
},
|
|
460
|
+
small: {
|
|
461
|
+
fontSize: '14px',
|
|
462
|
+
lineHeight: '17px',
|
|
463
|
+
minWidth: '74px',
|
|
464
|
+
minHeight: '35px'
|
|
465
|
+
},
|
|
466
|
+
large: {
|
|
467
|
+
fontSize: '16px',
|
|
468
|
+
lineHeight: '19px',
|
|
469
|
+
minWidth: '89px',
|
|
470
|
+
minHeight: '43px'
|
|
471
|
+
},
|
|
472
|
+
big: {
|
|
473
|
+
fontSize: '18px',
|
|
474
|
+
lineHeight: '22px',
|
|
475
|
+
minWidth: '79px',
|
|
476
|
+
minHeight: '52px'
|
|
477
|
+
}
|
|
462
478
|
};
|
|
463
479
|
|
|
464
|
-
var _templateObject$1, _templateObject2$1, _templateObject3$1, _templateObject4$1, _templateObject5$1, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
465
|
-
var Button = styled.button(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n padding: 0\n ", ";\n font-family: 'Lato', sans-serif;\n font-weight: ", ";\n border-radius: 4px;\n position: relative;\n user-select: none;\n\n
|
|
480
|
+
var _templateObject$1, _templateObject2$1, _templateObject3$1, _templateObject4$1, _templateObject5$1, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
481
|
+
var Button = styled.button(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n padding: 0\n ", ";\n font-family: 'Lato', sans-serif;\n font-weight: ", ";\n border-radius: 4px;\n position: relative;\n user-select: none;\n\n ", ";\n\n ", ";\n\n color: ", ";\n\n :disabled {\n ", "\n }\n\n :hover {\n cursor: ", ";\n\n ", "\n }\n\n :active {\n ", ";\n }\n\n ", "\n"])), function (_ref) {
|
|
466
482
|
var theme = _ref.theme,
|
|
467
483
|
appearance = _ref.appearance;
|
|
468
484
|
return appearance === 'link' ? 0 : theme.spacings.s3;
|
|
@@ -472,40 +488,20 @@ var Button = styled.button(_templateObject$1 || (_templateObject$1 = _taggedTemp
|
|
|
472
488
|
}, function (_ref3) {
|
|
473
489
|
var size = _ref3.size,
|
|
474
490
|
theme = _ref3.theme;
|
|
475
|
-
var fontSizes = theme.components.button.fontSizes;
|
|
476
|
-
return size ? fontSizes[size] : fontSizes.default;
|
|
477
|
-
}, function (_ref4) {
|
|
478
|
-
var size = _ref4.size,
|
|
479
|
-
theme = _ref4.theme,
|
|
480
|
-
appearance = _ref4.appearance;
|
|
481
|
-
if (appearance === 'link') return 'auto';
|
|
482
491
|
var sizes = theme.components.button.sizes;
|
|
483
|
-
return size
|
|
492
|
+
return css(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n min-width: ", ";\n min-height: ", ";\n "])), sizes[size].fontSize, sizes[size].lineHeight, sizes[size].minWidth, sizes[size].minHeight);
|
|
493
|
+
}, function (_ref4) {
|
|
494
|
+
var appearance = _ref4.appearance,
|
|
495
|
+
color = _ref4.color,
|
|
496
|
+
theme = _ref4.theme;
|
|
497
|
+
var bgColor = ['bordered', 'link', 'bordeless'].includes(appearance) ? 'transparent' : theme.getColor(color || 'blue');
|
|
498
|
+
var borderColor = appearance !== 'bordered' ? bgColor : theme.getColor(color || 'blue');
|
|
499
|
+
return css(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n border: 1px solid ", ";\n "])), bgColor, borderColor);
|
|
484
500
|
}, function (_ref5) {
|
|
485
501
|
var appearance = _ref5.appearance,
|
|
486
502
|
color = _ref5.color,
|
|
503
|
+
loading = _ref5.loading,
|
|
487
504
|
theme = _ref5.theme;
|
|
488
|
-
|
|
489
|
-
if (['bordered', 'link', 'bordeless'].includes(appearance)) {
|
|
490
|
-
return 'transparent';
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
return theme.getColor(color || 'blue');
|
|
494
|
-
}, function (_ref6) {
|
|
495
|
-
var appearance = _ref6.appearance,
|
|
496
|
-
color = _ref6.color,
|
|
497
|
-
theme = _ref6.theme;
|
|
498
|
-
|
|
499
|
-
if (appearance !== 'bordered') {
|
|
500
|
-
return 'none';
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
return "1px solid " + theme.getColor(color || 'blue');
|
|
504
|
-
}, function (_ref7) {
|
|
505
|
-
var appearance = _ref7.appearance,
|
|
506
|
-
color = _ref7.color,
|
|
507
|
-
loading = _ref7.loading,
|
|
508
|
-
theme = _ref7.theme;
|
|
509
505
|
if (loading) return 'transparent';
|
|
510
506
|
|
|
511
507
|
if (['link', 'bordeless'].includes(appearance)) {
|
|
@@ -517,50 +513,50 @@ var Button = styled.button(_templateObject$1 || (_templateObject$1 = _taggedTemp
|
|
|
517
513
|
}
|
|
518
514
|
|
|
519
515
|
return theme.getColor('white');
|
|
520
|
-
}, function (
|
|
521
|
-
var appearance =
|
|
522
|
-
loading =
|
|
523
|
-
theme =
|
|
516
|
+
}, function (_ref6) {
|
|
517
|
+
var appearance = _ref6.appearance,
|
|
518
|
+
loading = _ref6.loading,
|
|
519
|
+
theme = _ref6.theme;
|
|
524
520
|
|
|
525
521
|
if (['bordered', 'link', 'bordeless'].includes(appearance)) {
|
|
526
|
-
return css(
|
|
522
|
+
return css(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.3;\n pointer-events: none;\n "])));
|
|
527
523
|
}
|
|
528
524
|
|
|
529
|
-
return css(
|
|
530
|
-
}, function (
|
|
531
|
-
var loading =
|
|
532
|
-
disabled =
|
|
525
|
+
return css(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n pointer-events: none;\n "])), theme.getColor('greyishBlue', 10), theme.getColor('greyishBlue', 10), loading ? 'transparent' : theme.getColor('greyishBlue', 30));
|
|
526
|
+
}, function (_ref7) {
|
|
527
|
+
var loading = _ref7.loading,
|
|
528
|
+
disabled = _ref7.disabled;
|
|
533
529
|
return loading || disabled ? 'default' : 'pointer';
|
|
534
|
-
}, function (
|
|
535
|
-
var appearance =
|
|
536
|
-
color =
|
|
537
|
-
theme =
|
|
530
|
+
}, function (_ref8) {
|
|
531
|
+
var appearance = _ref8.appearance,
|
|
532
|
+
color = _ref8.color,
|
|
533
|
+
theme = _ref8.theme;
|
|
538
534
|
|
|
539
535
|
if (appearance === 'bordered') {
|
|
540
|
-
return css(
|
|
536
|
+
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n color: ", ";\n border: 1px solid ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
|
|
541
537
|
} else if (['link', 'bordeless'].includes(appearance)) {
|
|
542
|
-
return css(
|
|
538
|
+
return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.blue);
|
|
543
539
|
}
|
|
544
540
|
|
|
545
|
-
return css(
|
|
546
|
-
}, function (
|
|
547
|
-
var appearance =
|
|
548
|
-
color =
|
|
549
|
-
theme =
|
|
541
|
+
return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n border-color: ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
|
|
542
|
+
}, function (_ref9) {
|
|
543
|
+
var appearance = _ref9.appearance,
|
|
544
|
+
color = _ref9.color,
|
|
545
|
+
theme = _ref9.theme;
|
|
550
546
|
|
|
551
547
|
if (appearance === 'bordered') {
|
|
552
|
-
return css(
|
|
548
|
+
return css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.getColor('iceWhite'));
|
|
553
549
|
}
|
|
554
550
|
|
|
555
551
|
if (['link', 'bordeless'].includes(appearance)) {
|
|
556
|
-
return css(
|
|
552
|
+
return css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor('blue', 50));
|
|
557
553
|
}
|
|
558
554
|
|
|
559
|
-
return css(
|
|
560
|
-
}, function (
|
|
561
|
-
var loading =
|
|
555
|
+
return css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor(color || 'blue'));
|
|
556
|
+
}, function (_ref10) {
|
|
557
|
+
var loading = _ref10.loading;
|
|
562
558
|
if (!loading) return;
|
|
563
|
-
return css(
|
|
559
|
+
return css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n "])));
|
|
564
560
|
});
|
|
565
561
|
|
|
566
562
|
var _excluded = ["children", "content"];
|
|
@@ -578,13 +574,11 @@ var Button$1 = function Button$1(props) {
|
|
|
578
574
|
type: styled.type || 'button'
|
|
579
575
|
};
|
|
580
576
|
var htmlProps = filterObject(props, ['size', 'appearance', 'color', 'loading', 'content']);
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
return React__default.createElement(Button, Object.assign({}, defaultValues, htmlProps), React__default.createElement("span", null, children || content), props.loading && React__default.createElement(Loader, {
|
|
577
|
+
var loaderSize = sizes[defaultValues.size].lineHeight;
|
|
578
|
+
return React__default.createElement(Button, Object.assign({}, defaultValues, htmlProps), children || content, props.loading && React__default.createElement(Loader, {
|
|
585
579
|
color: defaultValues.appearance !== 'bordered' && defaultValues.appearance !== 'link' ? 'white' : 'blue',
|
|
586
|
-
size:
|
|
587
|
-
borderSize: "calc(" +
|
|
580
|
+
size: loaderSize,
|
|
581
|
+
borderSize: "calc(" + loaderSize + " * 0.0757)"
|
|
588
582
|
}));
|
|
589
583
|
};
|
|
590
584
|
|
|
@@ -12141,7 +12135,7 @@ var useTransition = function useTransition(props, values) {
|
|
|
12141
12135
|
}).join(', '), functions.join(', '), animation[active ? 'enabled' : 'disabled']);
|
|
12142
12136
|
};
|
|
12143
12137
|
|
|
12144
|
-
var _templateObject$7, _templateObject2$5, _templateObject3$5, _templateObject4$4, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
|
|
12138
|
+
var _templateObject$7, _templateObject2$5, _templateObject3$5, _templateObject4$4, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13, _templateObject14;
|
|
12145
12139
|
var positions = {
|
|
12146
12140
|
'top right': function topRight(_ref) {
|
|
12147
12141
|
var bottom = _ref.bottom,
|
|
@@ -12199,11 +12193,11 @@ var Container$2 = styled.div(_templateObject9$1 || (_templateObject9$1 = _tagged
|
|
|
12199
12193
|
}, function (_ref14) {
|
|
12200
12194
|
var height = _ref14.height;
|
|
12201
12195
|
if (!height) return;
|
|
12202
|
-
return css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n height: ", ";\n "])), height);
|
|
12196
|
+
return css(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n height: ", ";\n "])), height);
|
|
12203
12197
|
}, function (_ref15) {
|
|
12204
12198
|
var maxWidth = _ref15.maxWidth;
|
|
12205
12199
|
if (!maxWidth) return;
|
|
12206
|
-
return css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n max-width: ", ";\n "])), maxWidth);
|
|
12200
|
+
return css(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n max-width: ", ";\n "])), maxWidth);
|
|
12207
12201
|
}, function (_ref16) {
|
|
12208
12202
|
var maxHeight = _ref16.maxHeight;
|
|
12209
12203
|
if (!maxHeight) return;
|
|
@@ -12664,7 +12658,7 @@ var getMask = function getMask(mask) {
|
|
|
12664
12658
|
};
|
|
12665
12659
|
};
|
|
12666
12660
|
|
|
12667
|
-
var _templateObject$c, _templateObject2$a, _templateObject3$9, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$2, _templateObject11$
|
|
12661
|
+
var _templateObject$c, _templateObject2$a, _templateObject3$9, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$2, _templateObject11$2, _templateObject12$2, _templateObject13$1, _templateObject14$1, _templateObject15;
|
|
12668
12662
|
var IconContainer = styled.button(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n\n ", "\n"])), function (_ref) {
|
|
12669
12663
|
var onClick = _ref.onClick,
|
|
12670
12664
|
disabled = _ref.disabled;
|
|
@@ -12735,7 +12729,7 @@ var Label = styled.label(_templateObject10$2 || (_templateObject10$2 = _taggedTe
|
|
|
12735
12729
|
}, function (_ref16) {
|
|
12736
12730
|
var disabled = _ref16.disabled;
|
|
12737
12731
|
if (!disabled) return;
|
|
12738
|
-
return css(_templateObject11$
|
|
12732
|
+
return css(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
12739
12733
|
}, IconContainer, function (_ref17) {
|
|
12740
12734
|
var theme = _ref17.theme,
|
|
12741
12735
|
paddingless = _ref17.paddingless;
|
|
@@ -12750,7 +12744,7 @@ var Label = styled.label(_templateObject10$2 || (_templateObject10$2 = _taggedTe
|
|
|
12750
12744
|
var padding = paddingless ? '0px' : theme.spacings.s3;
|
|
12751
12745
|
|
|
12752
12746
|
if (position === 'right') {
|
|
12753
|
-
return css(_templateObject12$
|
|
12747
|
+
return css(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n > ", " {\n width: ", ";\n right: calc(", " / 2);\n }\n\n > ", " {\n padding-right: calc(", " + ", ");\n }\n "])), IconContainer, width, padding, Input, padding, width);
|
|
12754
12748
|
}
|
|
12755
12749
|
|
|
12756
12750
|
return css(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n > ", " {\n width: ", ";\n left: calc(", " / 2);\n }\n\n > ", " {\n padding-left: calc(", " + ", ");\n }\n "])), IconContainer, width, padding, Input, padding, width);
|
|
@@ -13177,7 +13171,7 @@ var MonthPicker = function MonthPicker(props) {
|
|
|
13177
13171
|
}));
|
|
13178
13172
|
};
|
|
13179
13173
|
|
|
13180
|
-
var _templateObject$f, _templateObject2$d, _templateObject3$c, _templateObject4$b, _templateObject5$a, _templateObject6$8, _templateObject7$7, _templateObject8$5, _templateObject9$5, _templateObject10$3, _templateObject11$
|
|
13174
|
+
var _templateObject$f, _templateObject2$d, _templateObject3$c, _templateObject4$b, _templateObject5$a, _templateObject6$8, _templateObject7$7, _templateObject8$5, _templateObject9$5, _templateObject10$3, _templateObject11$3;
|
|
13181
13175
|
var Footer = styled.div(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > button:last-child {\n margin-left: auto;\n }\n"])));
|
|
13182
13176
|
var WeekContainer = styled.div(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n\n :not(:first-child) {\n border-top: 1px solid ", ";\n }\n\n > * {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n width: 32px;\n height: 32px;\n\n color: ", ";\n box-shadow: none;\n\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n\n border: 1px solid transparent;\n :not(:last-child) {\n border-right-color: ", ";\n }\n }\n"])), function (_ref) {
|
|
13183
13177
|
var theme = _ref.theme;
|
|
@@ -13238,7 +13232,7 @@ var DayContainer = styled.button(_templateObject4$b || (_templateObject4$b = _ta
|
|
|
13238
13232
|
});
|
|
13239
13233
|
var DayIndicator = styled(Indicator).attrs({
|
|
13240
13234
|
size: 'mini'
|
|
13241
|
-
})(_templateObject11$
|
|
13235
|
+
})(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: calc(", " - 1px);\n left: calc(50% - (", " / 2) + 1px);\n"])), sizes$1.mini, sizes$1.mini);
|
|
13242
13236
|
|
|
13243
13237
|
var getCalendar = function getCalendar(d) {
|
|
13244
13238
|
var date = new Date(d.getTime());
|
|
@@ -13372,8 +13366,7 @@ var getInitialCalendar = function getInitialCalendar(date, min, max) {
|
|
|
13372
13366
|
};
|
|
13373
13367
|
|
|
13374
13368
|
var theme = {
|
|
13375
|
-
sizes: sizes
|
|
13376
|
-
fontSizes: fontSizes
|
|
13369
|
+
sizes: sizes
|
|
13377
13370
|
};
|
|
13378
13371
|
|
|
13379
13372
|
var theme$1 = {
|
|
@@ -15496,7 +15489,7 @@ var Switch = function Switch(props) {
|
|
|
15496
15489
|
})), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
|
|
15497
15490
|
};
|
|
15498
15491
|
|
|
15499
|
-
var _templateObject$s, _templateObject2$m, _templateObject3$h, _templateObject4$e, _templateObject5$d, _templateObject6$b, _templateObject7$a, _templateObject8$7, _templateObject9$7, _templateObject10$4, _templateObject11$
|
|
15492
|
+
var _templateObject$s, _templateObject2$m, _templateObject3$h, _templateObject4$e, _templateObject5$d, _templateObject6$b, _templateObject7$a, _templateObject8$7, _templateObject9$7, _templateObject10$4, _templateObject11$4, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$1, _templateObject16;
|
|
15500
15493
|
var bullet = css(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: ", ";\n height: ", ";\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n"])), function (_ref) {
|
|
15501
15494
|
var theme = _ref.theme;
|
|
15502
15495
|
return theme.spacings.s4;
|
|
@@ -15544,10 +15537,10 @@ var LabelsContainer = styled.div(_templateObject10$4 || (_templateObject10$4 = _
|
|
|
15544
15537
|
var position = _ref11.position;
|
|
15545
15538
|
|
|
15546
15539
|
if (position === 'bottom') {
|
|
15547
|
-
return css(_templateObject11$
|
|
15540
|
+
return css(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% + 10.5px);\n }\n }\n\n ", " {\n align-items: start;\n }\n "])), InputContainer, Marker, MinMaxLabelContainer);
|
|
15548
15541
|
}
|
|
15549
15542
|
|
|
15550
|
-
return css(_templateObject12$
|
|
15543
|
+
return css(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% + 8px);\n }\n }\n\n ", " {\n align-items: end;\n }\n "])), InputContainer, Marker, MinMaxLabelContainer);
|
|
15551
15544
|
});
|
|
15552
15545
|
var SelectedArea = styled.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n height: 3px;\n width: 100%;\n position: absolute;\n bottom: calc(50% - 2px);\n left: 0;\n display: flex;\n z-index: 1;\n\n > span {\n width: ", "%;\n display: block;\n box-sizing: border-box;\n height: 100%;\n }\n"])), function (_ref12) {
|
|
15553
15546
|
var theme = _ref12.theme;
|
|
@@ -15958,7 +15951,7 @@ var parse = function parse(value) {
|
|
|
15958
15951
|
});
|
|
15959
15952
|
};
|
|
15960
15953
|
|
|
15961
|
-
var _templateObject$u, _templateObject2$o, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$c, _templateObject8$8, _templateObject9$8, _templateObject10$5, _templateObject11$
|
|
15954
|
+
var _templateObject$u, _templateObject2$o, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$c, _templateObject8$8, _templateObject9$8, _templateObject10$5, _templateObject11$5;
|
|
15962
15955
|
var RelativeContainer$5 = styled.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > input,\n > label > input {\n color: transparent;\n background-color: transparent;\n width: 1px;\n height: 1px;\n position: absolute;\n left: 0;\n bottom: 0;\n border: 0;\n padding: 0;\n overflow: hidden;\n outline: none;\n box-shadow: none;\n }\n"])));
|
|
15963
15956
|
var LabelContainer$5 = styled.div(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
|
|
15964
15957
|
var theme = _ref.theme;
|
|
@@ -16007,7 +16000,7 @@ var LabelText$1 = styled.label(_templateObject10$5 || (_templateObject10$5 = _ta
|
|
|
16007
16000
|
}, function (_ref11) {
|
|
16008
16001
|
var required = _ref11.required;
|
|
16009
16002
|
if (!required) return;
|
|
16010
|
-
return css(_templateObject11$
|
|
16003
|
+
return css(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
16011
16004
|
});
|
|
16012
16005
|
|
|
16013
16006
|
var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
@@ -17146,7 +17139,7 @@ var Toast = function Toast(props) {
|
|
|
17146
17139
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
17147
17140
|
};
|
|
17148
17141
|
|
|
17149
|
-
var _templateObject$G, _templateObject2$u, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$f, _templateObject8$b, _templateObject9$b, _templateObject10$8, _templateObject11$
|
|
17142
|
+
var _templateObject$G, _templateObject2$u, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$f, _templateObject8$b, _templateObject9$b, _templateObject10$8, _templateObject11$6;
|
|
17150
17143
|
var Container$d = styled.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
17151
17144
|
var Header$4 = styled.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
17152
17145
|
var HeaderImage = styled.div(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -17163,7 +17156,7 @@ var HeaderLine = styled.div(_templateObject6$h || (_templateObject6$h = _taggedT
|
|
|
17163
17156
|
}, function (props) {
|
|
17164
17157
|
return props.size === 'large' && css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
17165
17158
|
});
|
|
17166
|
-
var MainLine = styled(HeaderLine)(_templateObject11$
|
|
17159
|
+
var MainLine = styled(HeaderLine)(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
17167
17160
|
|
|
17168
17161
|
var Template1 = function Template1(props) {
|
|
17169
17162
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -17548,7 +17541,7 @@ var Template8$1 = function Template8(props) {
|
|
|
17548
17541
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
17549
17542
|
};
|
|
17550
17543
|
|
|
17551
|
-
var _templateObject$Q, _templateObject2$E, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$b, _templateObject11$
|
|
17544
|
+
var _templateObject$Q, _templateObject2$E, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$b, _templateObject11$7;
|
|
17552
17545
|
var Container$m = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
17553
17546
|
var Header$a = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
17554
17547
|
var HeaderLine$9 = styled.div(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
@@ -17571,7 +17564,7 @@ var CustomLine$6 = styled(HeaderLine$9)(_templateObject8$j || (_templateObject8$
|
|
|
17571
17564
|
});
|
|
17572
17565
|
var GraphLine = styled(CustomLine$6)(_templateObject9$h || (_templateObject9$h = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
17573
17566
|
var Main$5 = styled.div(_templateObject10$b || (_templateObject10$b = _taggedTemplateLiteralLoose(["\n flex: 1;\n padding: 0 7px 72px 7px;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: center;\n"])));
|
|
17574
|
-
var Circle$3 = styled.div(_templateObject11$
|
|
17567
|
+
var Circle$3 = styled.div(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
17575
17568
|
|
|
17576
17569
|
var Template10 = function Template10(props) {
|
|
17577
17570
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18366,7 +18359,7 @@ var useContext$2 = function useContext() {
|
|
|
18366
18359
|
return React__default.useContext(Provider$2);
|
|
18367
18360
|
};
|
|
18368
18361
|
|
|
18369
|
-
var _templateObject$W, _templateObject2$I, _templateObject3$C, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$o, _templateObject8$k, _templateObject9$i, _templateObject10$c, _templateObject11$
|
|
18362
|
+
var _templateObject$W, _templateObject2$I, _templateObject3$C, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$o, _templateObject8$k, _templateObject9$i, _templateObject10$c, _templateObject11$8, _templateObject12$4, _templateObject13$3, _templateObject14$3, _templateObject15$2;
|
|
18370
18363
|
var aligns = {
|
|
18371
18364
|
self: {
|
|
18372
18365
|
horizontal: {
|
|
@@ -18457,13 +18450,13 @@ var Col = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLi
|
|
|
18457
18450
|
var bordered = _ref5.bordered,
|
|
18458
18451
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
18459
18452
|
if (!bordered) return;
|
|
18460
|
-
return css(_templateObject11$
|
|
18453
|
+
return css(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
18461
18454
|
}, function (_ref6) {
|
|
18462
18455
|
var fontColor = _ref6.fontColor,
|
|
18463
18456
|
theme = _ref6.theme;
|
|
18464
18457
|
if (fontColor === undefined) return;
|
|
18465
18458
|
var c = Array.isArray(fontColor) ? theme.getColor.apply(theme, fontColor) : theme.colors[fontColor];
|
|
18466
|
-
return css(_templateObject12$
|
|
18459
|
+
return css(_templateObject12$4 || (_templateObject12$4 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), c);
|
|
18467
18460
|
}, function (_ref7) {
|
|
18468
18461
|
var backgroundColor = _ref7.backgroundColor,
|
|
18469
18462
|
theme = _ref7.theme;
|