@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
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { StyledButtonProps } from './interfaces';
|
|
2
2
|
export declare const sizes: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
[key in StyledButtonProps['size']]: {
|
|
4
|
+
fontSize: string;
|
|
5
|
+
lineHeight: string;
|
|
6
|
+
minWidth: string;
|
|
7
|
+
minHeight: string;
|
|
8
|
+
};
|
|
9
9
|
};
|
|
10
|
-
export declare const fontSizes: typeof sizes;
|
|
@@ -4,7 +4,7 @@ export interface StyledButtonProps extends React.ButtonHTMLAttributes<HTMLButton
|
|
|
4
4
|
/**
|
|
5
5
|
* Specifies the button size.
|
|
6
6
|
*/
|
|
7
|
-
size: '
|
|
7
|
+
size: 'tiny' | 'mini' | 'small' | 'large' | 'big';
|
|
8
8
|
/**
|
|
9
9
|
* Specifies if the button style is solid, bordered or text only.
|
|
10
10
|
*/
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const theme: {
|
|
3
2
|
readonly sizes: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
small: {
|
|
4
|
+
fontSize: string;
|
|
5
|
+
lineHeight: string;
|
|
6
|
+
minWidth: string;
|
|
7
|
+
minHeight: string;
|
|
8
|
+
};
|
|
9
|
+
big: {
|
|
10
|
+
fontSize: string;
|
|
11
|
+
lineHeight: string;
|
|
12
|
+
minWidth: string;
|
|
13
|
+
minHeight: string;
|
|
14
|
+
};
|
|
15
|
+
tiny: {
|
|
16
|
+
fontSize: string;
|
|
17
|
+
lineHeight: string;
|
|
18
|
+
minWidth: string;
|
|
19
|
+
minHeight: string;
|
|
20
|
+
};
|
|
21
|
+
mini: {
|
|
22
|
+
fontSize: string;
|
|
23
|
+
lineHeight: string;
|
|
24
|
+
minWidth: string;
|
|
25
|
+
minHeight: string;
|
|
26
|
+
};
|
|
27
|
+
large: {
|
|
28
|
+
fontSize: string;
|
|
29
|
+
lineHeight: string;
|
|
30
|
+
minWidth: string;
|
|
31
|
+
minHeight: string;
|
|
32
|
+
};
|
|
18
33
|
};
|
|
19
34
|
};
|
|
20
35
|
export default theme;
|
|
@@ -1,21 +1,36 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const theme: {
|
|
3
2
|
readonly button: {
|
|
4
3
|
readonly sizes: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
small: {
|
|
5
|
+
fontSize: string;
|
|
6
|
+
lineHeight: string;
|
|
7
|
+
minWidth: string;
|
|
8
|
+
minHeight: string;
|
|
9
|
+
};
|
|
10
|
+
big: {
|
|
11
|
+
fontSize: string;
|
|
12
|
+
lineHeight: string;
|
|
13
|
+
minWidth: string;
|
|
14
|
+
minHeight: string;
|
|
15
|
+
};
|
|
16
|
+
tiny: {
|
|
17
|
+
fontSize: string;
|
|
18
|
+
lineHeight: string;
|
|
19
|
+
minWidth: string;
|
|
20
|
+
minHeight: string;
|
|
21
|
+
};
|
|
22
|
+
mini: {
|
|
23
|
+
fontSize: string;
|
|
24
|
+
lineHeight: string;
|
|
25
|
+
minWidth: string;
|
|
26
|
+
minHeight: string;
|
|
27
|
+
};
|
|
28
|
+
large: {
|
|
29
|
+
fontSize: string;
|
|
30
|
+
lineHeight: string;
|
|
31
|
+
minWidth: string;
|
|
32
|
+
minHeight: string;
|
|
33
|
+
};
|
|
19
34
|
};
|
|
20
35
|
};
|
|
21
36
|
};
|
package/dist/index.js
CHANGED
|
@@ -448,24 +448,40 @@ var Loader = styled__default.div(_templateObject2 || (_templateObject2 = _tagged
|
|
|
448
448
|
});
|
|
449
449
|
|
|
450
450
|
var sizes = {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
451
|
+
mini: {
|
|
452
|
+
fontSize: '11px',
|
|
453
|
+
lineHeight: '13px',
|
|
454
|
+
minWidth: '51px',
|
|
455
|
+
minHeight: '28px'
|
|
456
|
+
},
|
|
457
|
+
tiny: {
|
|
458
|
+
fontSize: '13px',
|
|
459
|
+
lineHeight: '16px',
|
|
460
|
+
minWidth: '62px',
|
|
461
|
+
minHeight: '34px'
|
|
462
|
+
},
|
|
463
|
+
small: {
|
|
464
|
+
fontSize: '14px',
|
|
465
|
+
lineHeight: '17px',
|
|
466
|
+
minWidth: '74px',
|
|
467
|
+
minHeight: '35px'
|
|
468
|
+
},
|
|
469
|
+
large: {
|
|
470
|
+
fontSize: '16px',
|
|
471
|
+
lineHeight: '19px',
|
|
472
|
+
minWidth: '89px',
|
|
473
|
+
minHeight: '43px'
|
|
474
|
+
},
|
|
475
|
+
big: {
|
|
476
|
+
fontSize: '18px',
|
|
477
|
+
lineHeight: '22px',
|
|
478
|
+
minWidth: '79px',
|
|
479
|
+
minHeight: '52px'
|
|
480
|
+
}
|
|
465
481
|
};
|
|
466
482
|
|
|
467
|
-
var _templateObject$1, _templateObject2$1, _templateObject3$1, _templateObject4$1, _templateObject5$1, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
468
|
-
var Button = styled__default.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
|
|
483
|
+
var _templateObject$1, _templateObject2$1, _templateObject3$1, _templateObject4$1, _templateObject5$1, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
484
|
+
var Button = styled__default.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) {
|
|
469
485
|
var theme = _ref.theme,
|
|
470
486
|
appearance = _ref.appearance;
|
|
471
487
|
return appearance === 'link' ? 0 : theme.spacings.s3;
|
|
@@ -475,40 +491,20 @@ var Button = styled__default.button(_templateObject$1 || (_templateObject$1 = _t
|
|
|
475
491
|
}, function (_ref3) {
|
|
476
492
|
var size = _ref3.size,
|
|
477
493
|
theme = _ref3.theme;
|
|
478
|
-
var fontSizes = theme.components.button.fontSizes;
|
|
479
|
-
return size ? fontSizes[size] : fontSizes.default;
|
|
480
|
-
}, function (_ref4) {
|
|
481
|
-
var size = _ref4.size,
|
|
482
|
-
theme = _ref4.theme,
|
|
483
|
-
appearance = _ref4.appearance;
|
|
484
|
-
if (appearance === 'link') return 'auto';
|
|
485
494
|
var sizes = theme.components.button.sizes;
|
|
486
|
-
return size
|
|
495
|
+
return styled.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);
|
|
496
|
+
}, function (_ref4) {
|
|
497
|
+
var appearance = _ref4.appearance,
|
|
498
|
+
color = _ref4.color,
|
|
499
|
+
theme = _ref4.theme;
|
|
500
|
+
var bgColor = ['bordered', 'link', 'bordeless'].includes(appearance) ? 'transparent' : theme.getColor(color || 'blue');
|
|
501
|
+
var borderColor = appearance !== 'bordered' ? bgColor : theme.getColor(color || 'blue');
|
|
502
|
+
return styled.css(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n border: 1px solid ", ";\n "])), bgColor, borderColor);
|
|
487
503
|
}, function (_ref5) {
|
|
488
504
|
var appearance = _ref5.appearance,
|
|
489
505
|
color = _ref5.color,
|
|
506
|
+
loading = _ref5.loading,
|
|
490
507
|
theme = _ref5.theme;
|
|
491
|
-
|
|
492
|
-
if (['bordered', 'link', 'bordeless'].includes(appearance)) {
|
|
493
|
-
return 'transparent';
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
return theme.getColor(color || 'blue');
|
|
497
|
-
}, function (_ref6) {
|
|
498
|
-
var appearance = _ref6.appearance,
|
|
499
|
-
color = _ref6.color,
|
|
500
|
-
theme = _ref6.theme;
|
|
501
|
-
|
|
502
|
-
if (appearance !== 'bordered') {
|
|
503
|
-
return 'none';
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
return "1px solid " + theme.getColor(color || 'blue');
|
|
507
|
-
}, function (_ref7) {
|
|
508
|
-
var appearance = _ref7.appearance,
|
|
509
|
-
color = _ref7.color,
|
|
510
|
-
loading = _ref7.loading,
|
|
511
|
-
theme = _ref7.theme;
|
|
512
508
|
if (loading) return 'transparent';
|
|
513
509
|
|
|
514
510
|
if (['link', 'bordeless'].includes(appearance)) {
|
|
@@ -520,50 +516,50 @@ var Button = styled__default.button(_templateObject$1 || (_templateObject$1 = _t
|
|
|
520
516
|
}
|
|
521
517
|
|
|
522
518
|
return theme.getColor('white');
|
|
523
|
-
}, function (
|
|
524
|
-
var appearance =
|
|
525
|
-
loading =
|
|
526
|
-
theme =
|
|
519
|
+
}, function (_ref6) {
|
|
520
|
+
var appearance = _ref6.appearance,
|
|
521
|
+
loading = _ref6.loading,
|
|
522
|
+
theme = _ref6.theme;
|
|
527
523
|
|
|
528
524
|
if (['bordered', 'link', 'bordeless'].includes(appearance)) {
|
|
529
|
-
return styled.css(
|
|
525
|
+
return styled.css(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.3;\n pointer-events: none;\n "])));
|
|
530
526
|
}
|
|
531
527
|
|
|
532
|
-
return styled.css(
|
|
533
|
-
}, function (
|
|
534
|
-
var loading =
|
|
535
|
-
disabled =
|
|
528
|
+
return styled.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));
|
|
529
|
+
}, function (_ref7) {
|
|
530
|
+
var loading = _ref7.loading,
|
|
531
|
+
disabled = _ref7.disabled;
|
|
536
532
|
return loading || disabled ? 'default' : 'pointer';
|
|
537
|
-
}, function (
|
|
538
|
-
var appearance =
|
|
539
|
-
color =
|
|
540
|
-
theme =
|
|
533
|
+
}, function (_ref8) {
|
|
534
|
+
var appearance = _ref8.appearance,
|
|
535
|
+
color = _ref8.color,
|
|
536
|
+
theme = _ref8.theme;
|
|
541
537
|
|
|
542
538
|
if (appearance === 'bordered') {
|
|
543
|
-
return styled.css(
|
|
539
|
+
return styled.css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n color: ", ";\n border: 1px solid ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
|
|
544
540
|
} else if (['link', 'bordeless'].includes(appearance)) {
|
|
545
|
-
return styled.css(
|
|
541
|
+
return styled.css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.blue);
|
|
546
542
|
}
|
|
547
543
|
|
|
548
|
-
return styled.css(
|
|
549
|
-
}, function (
|
|
550
|
-
var appearance =
|
|
551
|
-
color =
|
|
552
|
-
theme =
|
|
544
|
+
return styled.css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n border-color: ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
|
|
545
|
+
}, function (_ref9) {
|
|
546
|
+
var appearance = _ref9.appearance,
|
|
547
|
+
color = _ref9.color,
|
|
548
|
+
theme = _ref9.theme;
|
|
553
549
|
|
|
554
550
|
if (appearance === 'bordered') {
|
|
555
|
-
return styled.css(
|
|
551
|
+
return styled.css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.getColor('iceWhite'));
|
|
556
552
|
}
|
|
557
553
|
|
|
558
554
|
if (['link', 'bordeless'].includes(appearance)) {
|
|
559
|
-
return styled.css(
|
|
555
|
+
return styled.css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor('blue', 50));
|
|
560
556
|
}
|
|
561
557
|
|
|
562
|
-
return styled.css(
|
|
563
|
-
}, function (
|
|
564
|
-
var loading =
|
|
558
|
+
return styled.css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor(color || 'blue'));
|
|
559
|
+
}, function (_ref10) {
|
|
560
|
+
var loading = _ref10.loading;
|
|
565
561
|
if (!loading) return;
|
|
566
|
-
return styled.css(
|
|
562
|
+
return styled.css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n "])));
|
|
567
563
|
});
|
|
568
564
|
|
|
569
565
|
var _excluded = ["children", "content"];
|
|
@@ -581,13 +577,11 @@ var Button$1 = function Button$1(props) {
|
|
|
581
577
|
type: styled.type || 'button'
|
|
582
578
|
};
|
|
583
579
|
var htmlProps = filterObject(props, ['size', 'appearance', 'color', 'loading', 'content']);
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
return React__default.createElement(Button, Object.assign({}, defaultValues, htmlProps), React__default.createElement("span", null, children || content), props.loading && React__default.createElement(Loader, {
|
|
580
|
+
var loaderSize = sizes[defaultValues.size].lineHeight;
|
|
581
|
+
return React__default.createElement(Button, Object.assign({}, defaultValues, htmlProps), children || content, props.loading && React__default.createElement(Loader, {
|
|
588
582
|
color: defaultValues.appearance !== 'bordered' && defaultValues.appearance !== 'link' ? 'white' : 'blue',
|
|
589
|
-
size:
|
|
590
|
-
borderSize: "calc(" +
|
|
583
|
+
size: loaderSize,
|
|
584
|
+
borderSize: "calc(" + loaderSize + " * 0.0757)"
|
|
591
585
|
}));
|
|
592
586
|
};
|
|
593
587
|
|
|
@@ -12144,7 +12138,7 @@ var useTransition = function useTransition(props, values) {
|
|
|
12144
12138
|
}).join(', '), functions.join(', '), animation[active ? 'enabled' : 'disabled']);
|
|
12145
12139
|
};
|
|
12146
12140
|
|
|
12147
|
-
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;
|
|
12141
|
+
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;
|
|
12148
12142
|
var positions = {
|
|
12149
12143
|
'top right': function topRight(_ref) {
|
|
12150
12144
|
var bottom = _ref.bottom,
|
|
@@ -12202,11 +12196,11 @@ var Container$2 = styled__default.div(_templateObject9$1 || (_templateObject9$1
|
|
|
12202
12196
|
}, function (_ref14) {
|
|
12203
12197
|
var height = _ref14.height;
|
|
12204
12198
|
if (!height) return;
|
|
12205
|
-
return styled.css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n height: ", ";\n "])), height);
|
|
12199
|
+
return styled.css(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n height: ", ";\n "])), height);
|
|
12206
12200
|
}, function (_ref15) {
|
|
12207
12201
|
var maxWidth = _ref15.maxWidth;
|
|
12208
12202
|
if (!maxWidth) return;
|
|
12209
|
-
return styled.css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n max-width: ", ";\n "])), maxWidth);
|
|
12203
|
+
return styled.css(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n max-width: ", ";\n "])), maxWidth);
|
|
12210
12204
|
}, function (_ref16) {
|
|
12211
12205
|
var maxHeight = _ref16.maxHeight;
|
|
12212
12206
|
if (!maxHeight) return;
|
|
@@ -12667,7 +12661,7 @@ var getMask = function getMask(mask) {
|
|
|
12667
12661
|
};
|
|
12668
12662
|
};
|
|
12669
12663
|
|
|
12670
|
-
var _templateObject$c, _templateObject2$a, _templateObject3$9, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$2, _templateObject11$
|
|
12664
|
+
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;
|
|
12671
12665
|
var IconContainer = styled__default.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) {
|
|
12672
12666
|
var onClick = _ref.onClick,
|
|
12673
12667
|
disabled = _ref.disabled;
|
|
@@ -12738,7 +12732,7 @@ var Label = styled__default.label(_templateObject10$2 || (_templateObject10$2 =
|
|
|
12738
12732
|
}, function (_ref16) {
|
|
12739
12733
|
var disabled = _ref16.disabled;
|
|
12740
12734
|
if (!disabled) return;
|
|
12741
|
-
return styled.css(_templateObject11$
|
|
12735
|
+
return styled.css(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
12742
12736
|
}, IconContainer, function (_ref17) {
|
|
12743
12737
|
var theme = _ref17.theme,
|
|
12744
12738
|
paddingless = _ref17.paddingless;
|
|
@@ -12753,7 +12747,7 @@ var Label = styled__default.label(_templateObject10$2 || (_templateObject10$2 =
|
|
|
12753
12747
|
var padding = paddingless ? '0px' : theme.spacings.s3;
|
|
12754
12748
|
|
|
12755
12749
|
if (position === 'right') {
|
|
12756
|
-
return styled.css(_templateObject12$
|
|
12750
|
+
return styled.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);
|
|
12757
12751
|
}
|
|
12758
12752
|
|
|
12759
12753
|
return styled.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);
|
|
@@ -13180,7 +13174,7 @@ var MonthPicker = function MonthPicker(props) {
|
|
|
13180
13174
|
}));
|
|
13181
13175
|
};
|
|
13182
13176
|
|
|
13183
|
-
var _templateObject$f, _templateObject2$d, _templateObject3$c, _templateObject4$b, _templateObject5$a, _templateObject6$8, _templateObject7$7, _templateObject8$5, _templateObject9$5, _templateObject10$3, _templateObject11$
|
|
13177
|
+
var _templateObject$f, _templateObject2$d, _templateObject3$c, _templateObject4$b, _templateObject5$a, _templateObject6$8, _templateObject7$7, _templateObject8$5, _templateObject9$5, _templateObject10$3, _templateObject11$3;
|
|
13184
13178
|
var Footer = styled__default.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"])));
|
|
13185
13179
|
var WeekContainer = styled__default.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) {
|
|
13186
13180
|
var theme = _ref.theme;
|
|
@@ -13241,7 +13235,7 @@ var DayContainer = styled__default.button(_templateObject4$b || (_templateObject
|
|
|
13241
13235
|
});
|
|
13242
13236
|
var DayIndicator = styled__default(Indicator).attrs({
|
|
13243
13237
|
size: 'mini'
|
|
13244
|
-
})(_templateObject11$
|
|
13238
|
+
})(_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);
|
|
13245
13239
|
|
|
13246
13240
|
var getCalendar = function getCalendar(d) {
|
|
13247
13241
|
var date = new Date(d.getTime());
|
|
@@ -13375,8 +13369,7 @@ var getInitialCalendar = function getInitialCalendar(date, min, max) {
|
|
|
13375
13369
|
};
|
|
13376
13370
|
|
|
13377
13371
|
var theme = {
|
|
13378
|
-
sizes: sizes
|
|
13379
|
-
fontSizes: fontSizes
|
|
13372
|
+
sizes: sizes
|
|
13380
13373
|
};
|
|
13381
13374
|
|
|
13382
13375
|
var theme$1 = {
|
|
@@ -15499,7 +15492,7 @@ var Switch = function Switch(props) {
|
|
|
15499
15492
|
})), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
|
|
15500
15493
|
};
|
|
15501
15494
|
|
|
15502
|
-
var _templateObject$s, _templateObject2$m, _templateObject3$h, _templateObject4$e, _templateObject5$d, _templateObject6$b, _templateObject7$a, _templateObject8$7, _templateObject9$7, _templateObject10$4, _templateObject11$
|
|
15495
|
+
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;
|
|
15503
15496
|
var bullet = styled.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) {
|
|
15504
15497
|
var theme = _ref.theme;
|
|
15505
15498
|
return theme.spacings.s4;
|
|
@@ -15547,10 +15540,10 @@ var LabelsContainer = styled__default.div(_templateObject10$4 || (_templateObjec
|
|
|
15547
15540
|
var position = _ref11.position;
|
|
15548
15541
|
|
|
15549
15542
|
if (position === 'bottom') {
|
|
15550
|
-
return styled.css(_templateObject11$
|
|
15543
|
+
return styled.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);
|
|
15551
15544
|
}
|
|
15552
15545
|
|
|
15553
|
-
return styled.css(_templateObject12$
|
|
15546
|
+
return styled.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);
|
|
15554
15547
|
});
|
|
15555
15548
|
var SelectedArea = styled__default.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) {
|
|
15556
15549
|
var theme = _ref12.theme;
|
|
@@ -15961,7 +15954,7 @@ var parse = function parse(value) {
|
|
|
15961
15954
|
});
|
|
15962
15955
|
};
|
|
15963
15956
|
|
|
15964
|
-
var _templateObject$u, _templateObject2$o, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$c, _templateObject8$8, _templateObject9$8, _templateObject10$5, _templateObject11$
|
|
15957
|
+
var _templateObject$u, _templateObject2$o, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$c, _templateObject8$8, _templateObject9$8, _templateObject10$5, _templateObject11$5;
|
|
15965
15958
|
var RelativeContainer$5 = styled__default.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"])));
|
|
15966
15959
|
var LabelContainer$5 = styled__default.div(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
|
|
15967
15960
|
var theme = _ref.theme;
|
|
@@ -16010,7 +16003,7 @@ var LabelText$1 = styled__default.label(_templateObject10$5 || (_templateObject1
|
|
|
16010
16003
|
}, function (_ref11) {
|
|
16011
16004
|
var required = _ref11.required;
|
|
16012
16005
|
if (!required) return;
|
|
16013
|
-
return styled.css(_templateObject11$
|
|
16006
|
+
return styled.css(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
16014
16007
|
});
|
|
16015
16008
|
|
|
16016
16009
|
var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
@@ -17149,7 +17142,7 @@ var Toast = function Toast(props) {
|
|
|
17149
17142
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
17150
17143
|
};
|
|
17151
17144
|
|
|
17152
|
-
var _templateObject$G, _templateObject2$u, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$f, _templateObject8$b, _templateObject9$b, _templateObject10$8, _templateObject11$
|
|
17145
|
+
var _templateObject$G, _templateObject2$u, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$f, _templateObject8$b, _templateObject9$b, _templateObject10$8, _templateObject11$6;
|
|
17153
17146
|
var Container$d = styled__default.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
17154
17147
|
var Header$4 = styled__default.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
17155
17148
|
var HeaderImage = styled__default.div(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -17166,7 +17159,7 @@ var HeaderLine = styled__default.div(_templateObject6$h || (_templateObject6$h =
|
|
|
17166
17159
|
}, function (props) {
|
|
17167
17160
|
return props.size === 'large' && styled.css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
17168
17161
|
});
|
|
17169
|
-
var MainLine = styled__default(HeaderLine)(_templateObject11$
|
|
17162
|
+
var MainLine = styled__default(HeaderLine)(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
17170
17163
|
|
|
17171
17164
|
var Template1 = function Template1(props) {
|
|
17172
17165
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -17551,7 +17544,7 @@ var Template8$1 = function Template8(props) {
|
|
|
17551
17544
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
17552
17545
|
};
|
|
17553
17546
|
|
|
17554
|
-
var _templateObject$Q, _templateObject2$E, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$b, _templateObject11$
|
|
17547
|
+
var _templateObject$Q, _templateObject2$E, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$b, _templateObject11$7;
|
|
17555
17548
|
var Container$m = styled__default.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"])));
|
|
17556
17549
|
var Header$a = styled__default.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"])));
|
|
17557
17550
|
var HeaderLine$9 = styled__default.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) {
|
|
@@ -17574,7 +17567,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$j || (_templat
|
|
|
17574
17567
|
});
|
|
17575
17568
|
var GraphLine = styled__default(CustomLine$6)(_templateObject9$h || (_templateObject9$h = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
17576
17569
|
var Main$5 = styled__default.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"])));
|
|
17577
|
-
var Circle$3 = styled__default.div(_templateObject11$
|
|
17570
|
+
var Circle$3 = styled__default.div(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
17578
17571
|
|
|
17579
17572
|
var Template10 = function Template10(props) {
|
|
17580
17573
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18369,7 +18362,7 @@ var useContext$2 = function useContext() {
|
|
|
18369
18362
|
return React__default.useContext(Provider$2);
|
|
18370
18363
|
};
|
|
18371
18364
|
|
|
18372
|
-
var _templateObject$W, _templateObject2$I, _templateObject3$C, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$o, _templateObject8$k, _templateObject9$i, _templateObject10$c, _templateObject11$
|
|
18365
|
+
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;
|
|
18373
18366
|
var aligns = {
|
|
18374
18367
|
self: {
|
|
18375
18368
|
horizontal: {
|
|
@@ -18460,13 +18453,13 @@ var Col = styled__default.div(_templateObject$W || (_templateObject$W = _taggedT
|
|
|
18460
18453
|
var bordered = _ref5.bordered,
|
|
18461
18454
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
18462
18455
|
if (!bordered) return;
|
|
18463
|
-
return styled.css(_templateObject11$
|
|
18456
|
+
return styled.css(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
18464
18457
|
}, function (_ref6) {
|
|
18465
18458
|
var fontColor = _ref6.fontColor,
|
|
18466
18459
|
theme = _ref6.theme;
|
|
18467
18460
|
if (fontColor === undefined) return;
|
|
18468
18461
|
var c = Array.isArray(fontColor) ? theme.getColor.apply(theme, fontColor) : theme.colors[fontColor];
|
|
18469
|
-
return styled.css(_templateObject12$
|
|
18462
|
+
return styled.css(_templateObject12$4 || (_templateObject12$4 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), c);
|
|
18470
18463
|
}, function (_ref7) {
|
|
18471
18464
|
var backgroundColor = _ref7.backgroundColor,
|
|
18472
18465
|
theme = _ref7.theme;
|