@mw-kit/mw-ui 1.7.71 → 1.7.73
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/Input/components/Checkbox/interfaces.d.ts +1 -0
- package/dist/components/Input/components/Checkbox/styles.d.ts +1 -3
- package/dist/index.js +72 -65
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +72 -65
- package/dist/index.modern.js.map +1 -1
- package/dist/theme/constants.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { LabelContentProps, LabelProps } from './interfaces';
|
|
2
|
-
export declare const Checkmark: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
-
$viewMode?: boolean | undefined;
|
|
4
|
-
}, never>;
|
|
2
|
+
export declare const Checkmark: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
3
|
export declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, LabelProps, never>;
|
|
6
4
|
export declare const LabelContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, LabelContentProps, never>;
|
package/dist/index.js
CHANGED
|
@@ -74,7 +74,6 @@ var colors = {
|
|
|
74
74
|
milkWhite: '#FCFFF5',
|
|
75
75
|
orange: '#FB8702',
|
|
76
76
|
pink: '#E23851',
|
|
77
|
-
platinum: '#E2E2E3',
|
|
78
77
|
purple: '#8E66BB',
|
|
79
78
|
red: '#C31717',
|
|
80
79
|
silver: '#B2B2B2',
|
|
@@ -12571,25 +12570,21 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12571
12570
|
});
|
|
12572
12571
|
Input$1.displayName = 'Input';
|
|
12573
12572
|
|
|
12574
|
-
var _templateObject$6, _templateObject2$6, _templateObject3$6, _templateObject4$4, _templateObject5$4, _templateObject6$3, _templateObject7$3, _templateObject8$2, _templateObject9$2, _templateObject10$2;
|
|
12573
|
+
var _templateObject$6, _templateObject2$6, _templateObject3$6, _templateObject4$4, _templateObject5$4, _templateObject6$3, _templateObject7$3, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2, _templateObject12$2;
|
|
12575
12574
|
var size = '17px';
|
|
12576
|
-
var Checkmark = styled__default.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n position: relative;\n height: ", ";\n width: ", ";\n background-color: ", ";\n\n border-style: solid;\n border-color:
|
|
12575
|
+
var Checkmark = styled__default.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n position: relative;\n height: ", ";\n width: ", ";\n background-color: ", ";\n\n border-style: solid;\n border-color: transparent;\n border-width: 1px;\n border-radius: 4px;\n\n transition-property: border-color;\n transition-duration: 0.25s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n\n :after {\n content: '';\n position: absolute;\n\n left: 50%;\n top: 50%;\n height: 0;\n width: 0;\n\n border-style: solid;\n border-color: ", ";\n border-width: 0;\n transform: rotate(45deg);\n\n transition-property: width height border-width top left;\n transition-duration: 0.25s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n }\n\n /** if there is a label, it will be placed after this element */\n + * {\n flex: 1;\n }\n"])), size, size, function (_ref) {
|
|
12577
12576
|
var theme = _ref.theme;
|
|
12578
12577
|
return theme.colors.white;
|
|
12579
12578
|
}, function (_ref2) {
|
|
12580
|
-
var theme = _ref2.theme
|
|
12581
|
-
viewMode = _ref2.$viewMode;
|
|
12582
|
-
return viewMode ? 'transparent' : theme.colors.blue;
|
|
12583
|
-
}, function (_ref3) {
|
|
12584
|
-
var theme = _ref3.theme;
|
|
12579
|
+
var theme = _ref2.theme;
|
|
12585
12580
|
return theme.colors.blue;
|
|
12586
12581
|
});
|
|
12587
|
-
var Label$1 = styled__default.label(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n\n ", "\n\n ", "\n\n ", "\n\n display: flex;\n align-items: center;\n\n user-select: none;\n min-height: ", ";\n min-width: ", ";\n gap: ", ";\n\n > input {\n position: absolute;\n opacity: 0;\n height: 1px;\n width: 1px;\n }\n\n :hover ", " {\n background-color: ", ";\n }\n\n > input:checked ~ ", " {\n :after {\n width: 5px;\n height: 9.5px;\n border-width: 0 2px 2px 0;\n left: 5px;\n top: 1px;\n }\n }\n\n ", ";\n\n ", "\n"])), function (
|
|
12588
|
-
var theme =
|
|
12582
|
+
var Label$1 = styled__default.label(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n\n ", "\n\n ", "\n\n ", "\n\n display: flex;\n align-items: center;\n\n user-select: none;\n min-height: ", ";\n min-width: ", ";\n gap: ", ";\n\n > input {\n position: absolute;\n opacity: 0;\n height: 1px;\n width: 1px;\n }\n\n :hover ", " {\n background-color: ", ";\n }\n ", "\n\n > input:checked ~ ", " {\n :after {\n width: 5px;\n height: 9.5px;\n border-width: 0 2px 2px 0;\n left: 5px;\n top: 1px;\n }\n }\n\n ", ";\n\n ", "\n"])), function (_ref3) {
|
|
12583
|
+
var theme = _ref3.theme;
|
|
12589
12584
|
return theme.useTypography('p');
|
|
12590
|
-
}, function (
|
|
12591
|
-
var padding =
|
|
12592
|
-
theme =
|
|
12585
|
+
}, function (_ref4) {
|
|
12586
|
+
var padding = _ref4.$padding,
|
|
12587
|
+
theme = _ref4.theme;
|
|
12593
12588
|
if (!padding) return;
|
|
12594
12589
|
var _padding = {
|
|
12595
12590
|
top: '0',
|
|
@@ -12631,9 +12626,9 @@ var Label$1 = styled__default.label(_templateObject2$6 || (_templateObject2$6 =
|
|
|
12631
12626
|
}
|
|
12632
12627
|
|
|
12633
12628
|
return styled.css(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n padding-top: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n "])), _padding.top, _padding.left, _padding.right, _padding.bottom);
|
|
12634
|
-
}, function (
|
|
12635
|
-
var disabled =
|
|
12636
|
-
readOnly =
|
|
12629
|
+
}, function (_ref5) {
|
|
12630
|
+
var disabled = _ref5.$disabled,
|
|
12631
|
+
readOnly = _ref5.$readOnly;
|
|
12637
12632
|
|
|
12638
12633
|
if (disabled) {
|
|
12639
12634
|
return styled.css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
@@ -12641,35 +12636,42 @@ var Label$1 = styled__default.label(_templateObject2$6 || (_templateObject2$6 =
|
|
|
12641
12636
|
|
|
12642
12637
|
if (readOnly) return;
|
|
12643
12638
|
return styled.css(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12644
|
-
}, function (
|
|
12645
|
-
var theme =
|
|
12646
|
-
bordered =
|
|
12647
|
-
invalid =
|
|
12639
|
+
}, function (_ref6) {
|
|
12640
|
+
var theme = _ref6.theme,
|
|
12641
|
+
bordered = _ref6.$bordered,
|
|
12642
|
+
invalid = _ref6.$invalid;
|
|
12648
12643
|
if (!bordered) return;
|
|
12649
12644
|
return styled.css(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteralLoose(["\n padding: ", " ", ";\n\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n "])), theme.spacings.s2, theme.spacings.s3, theme.colors[invalid ? 'warningRed' : 'lightGrey']);
|
|
12650
|
-
}, size, size, function (
|
|
12651
|
-
var theme =
|
|
12645
|
+
}, size, size, function (_ref7) {
|
|
12646
|
+
var theme = _ref7.theme;
|
|
12652
12647
|
return theme.spacings.s1;
|
|
12653
|
-
}, Checkmark, function (
|
|
12654
|
-
var theme =
|
|
12648
|
+
}, Checkmark, function (_ref8) {
|
|
12649
|
+
var theme = _ref8.theme;
|
|
12655
12650
|
return theme.colors.iceWhite;
|
|
12656
|
-
},
|
|
12657
|
-
var theme =
|
|
12658
|
-
|
|
12651
|
+
}, function (_ref9) {
|
|
12652
|
+
var theme = _ref9.theme,
|
|
12653
|
+
viewMode = _ref9.$viewMode;
|
|
12654
|
+
return viewMode ? styled.css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n > input ~ ", " {\n border-color: transparent;\n }\n "])), Checkmark) : styled.css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n > input ~ ", " {\n border-color: ", ";\n }\n > input:checked ~ ", " {\n border-color: ", ";\n }\n "])), Checkmark, theme.colors.lightestGrey, Checkmark, function (_ref10) {
|
|
12655
|
+
var theme = _ref10.theme;
|
|
12656
|
+
return theme.colors.blue;
|
|
12657
|
+
});
|
|
12658
|
+
}, Checkmark, function (_ref11) {
|
|
12659
|
+
var theme = _ref11.theme,
|
|
12660
|
+
invalid = _ref11.$invalid;
|
|
12659
12661
|
if (!invalid) return;
|
|
12660
|
-
return styled.css(
|
|
12661
|
-
}, function (
|
|
12662
|
-
var width =
|
|
12663
|
-
return width && styled.css(
|
|
12662
|
+
return styled.css(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n ", ",\n > input:checked ~ ", ", \n > input:checked ~ ", ":after {\n border-color: ", ";\n }\n "])), Checkmark, Checkmark, Checkmark, theme.colors.warningRed);
|
|
12663
|
+
}, function (_ref12) {
|
|
12664
|
+
var width = _ref12.$width;
|
|
12665
|
+
return width && styled.css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
|
|
12664
12666
|
});
|
|
12665
|
-
var LabelContent = styled__default.div(
|
|
12666
|
-
var theme =
|
|
12667
|
+
var LabelContent = styled__default.div(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n ", "\n line-height: 14px;\n flex: 1;\n overflow: hidden;\n\n ", "\n"])), function (_ref13) {
|
|
12668
|
+
var theme = _ref13.theme;
|
|
12667
12669
|
return theme.useTypography('p');
|
|
12668
|
-
}, function (
|
|
12669
|
-
var required =
|
|
12670
|
-
viewMode =
|
|
12670
|
+
}, function (_ref14) {
|
|
12671
|
+
var required = _ref14.required,
|
|
12672
|
+
viewMode = _ref14.viewMode;
|
|
12671
12673
|
if (!required || viewMode) return;
|
|
12672
|
-
return styled.css(
|
|
12674
|
+
return styled.css(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12673
12675
|
});
|
|
12674
12676
|
|
|
12675
12677
|
var Checkbox = React__default.forwardRef(function (props, ref) {
|
|
@@ -12707,14 +12709,13 @@ var Checkbox = React__default.forwardRef(function (props, ref) {
|
|
|
12707
12709
|
"$bordered": !viewMode && bordered,
|
|
12708
12710
|
"$padding": padding,
|
|
12709
12711
|
"$readOnly": props.readOnly || viewMode,
|
|
12710
|
-
"$width": props.width
|
|
12712
|
+
"$width": props.width,
|
|
12713
|
+
"$viewMode": viewMode
|
|
12711
12714
|
}, React__default.createElement("input", Object.assign({}, htmlProps, {
|
|
12712
12715
|
type: 'checkbox',
|
|
12713
12716
|
ref: ref,
|
|
12714
12717
|
disabled: htmlProps.disabled || viewMode
|
|
12715
|
-
})), React__default.createElement(Checkmark, {
|
|
12716
|
-
"$viewMode": viewMode
|
|
12717
|
-
}), React__default.createElement(LabelComponent, Object.assign({}, {
|
|
12718
|
+
})), React__default.createElement(Checkmark, null), React__default.createElement(LabelComponent, Object.assign({}, {
|
|
12718
12719
|
disabled: disabled,
|
|
12719
12720
|
required: required,
|
|
12720
12721
|
viewMode: viewMode,
|
|
@@ -13225,7 +13226,7 @@ var Indicator = function Indicator(props) {
|
|
|
13225
13226
|
}, props)));
|
|
13226
13227
|
};
|
|
13227
13228
|
|
|
13228
|
-
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$
|
|
13229
|
+
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$3;
|
|
13229
13230
|
var Footer = styled__default.div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > button:last-child {\n margin-left: auto;\n }\n"])));
|
|
13230
13231
|
var WeekContainer = styled__default.div(_templateObject2$c || (_templateObject2$c = _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) {
|
|
13231
13232
|
var theme = _ref.theme;
|
|
@@ -13289,7 +13290,7 @@ var DayContainer = styled__default.button(_templateObject4$8 || (_templateObject
|
|
|
13289
13290
|
});
|
|
13290
13291
|
var DayIndicator = styled__default(Indicator).attrs({
|
|
13291
13292
|
size: 'mini'
|
|
13292
|
-
})(_templateObject11$
|
|
13293
|
+
})(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: calc(", " - 1px);\n left: calc(50% - (", " / 2) + 1px);\n"])), sizes.mini, sizes.mini);
|
|
13293
13294
|
|
|
13294
13295
|
var getCalendar = function getCalendar(d) {
|
|
13295
13296
|
var date = new Date(d.getTime());
|
|
@@ -15793,7 +15794,7 @@ var bullet = styled.css(_templateObject$t || (_templateObject$t = _taggedTemplat
|
|
|
15793
15794
|
return bulletSize;
|
|
15794
15795
|
}, function (_ref3) {
|
|
15795
15796
|
var theme = _ref3.theme;
|
|
15796
|
-
return theme.colors.
|
|
15797
|
+
return theme.colors.lightestGrey;
|
|
15797
15798
|
}, function (_ref4) {
|
|
15798
15799
|
var theme = _ref4.theme;
|
|
15799
15800
|
return theme.getColor('black', 10);
|
|
@@ -16178,7 +16179,7 @@ var LabelContainer$5 = styled__default.div(_templateObject$E || (_templateObject
|
|
|
16178
16179
|
var theme = _ref.theme;
|
|
16179
16180
|
return theme.useTypography('p');
|
|
16180
16181
|
});
|
|
16181
|
-
var Label$6 = styled__default.label(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n\n ", "\n\n ", "\n\n", "\n\n > input {\n position: absolute;\n top: 0;\n left: 0;\n height: 0;\n width: 0;\n /* Chrome, Safari, Edge, Opera */\n :-webkit-outer-spin-button,\n :-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n -moz-appearance: none;\n }\n\n > span {\n height: 17px;\n width: 17px;\n min-height: 17px;\n min-width: 17px;\n max-height: 17px;\n max-width: 17px;\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n position: relative;\n transition-property: border-color;\n transition-duration: 0.5s;\n transition-timing-function: ease-in-out;\n :before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n height: 0;\n width: 0;\n border-radius: 100%;\n transition-property: top, left, width, height, background-color;\n transition-duration: 0.5s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n }\n }\n > input:checked + span {\n :before {\n top: calc(50% - 4.5px);\n left: calc(50% - 4.5px);\n height: 9px;\n width: 9px;\n }\n }\n"])), function (_ref2) {
|
|
16182
|
+
var Label$6 = styled__default.label(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n\n ", "\n\n ", "\n\n", "\n\n > input {\n position: absolute;\n top: 0;\n left: 0;\n height: 0;\n width: 0;\n /* Chrome, Safari, Edge, Opera */\n :-webkit-outer-spin-button,\n :-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n -moz-appearance: none;\n }\n\n > span {\n align-self: center;\n height: 17px;\n width: 17px;\n min-height: 17px;\n min-width: 17px;\n max-height: 17px;\n max-width: 17px;\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n position: relative;\n transition-property: border-color;\n transition-duration: 0.5s;\n transition-timing-function: ease-in-out;\n :before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n height: 0;\n width: 0;\n border-radius: 100%;\n transition-property: top, left, width, height, background-color;\n transition-duration: 0.5s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n }\n }\n > input:checked + span {\n :before {\n top: calc(50% - 4.5px);\n left: calc(50% - 4.5px);\n height: 9px;\n width: 9px;\n }\n }\n"])), function (_ref2) {
|
|
16182
16183
|
var theme = _ref2.theme;
|
|
16183
16184
|
return theme.spacings.s1;
|
|
16184
16185
|
}, function (_ref3) {
|
|
@@ -16197,24 +16198,30 @@ var Label$6 = styled__default.label(_templateObject2$t || (_templateObject2$t =
|
|
|
16197
16198
|
var invalid = _ref5.invalid;
|
|
16198
16199
|
|
|
16199
16200
|
if (!invalid) {
|
|
16200
|
-
return styled.css(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteralLoose(["\n > span {\n border-color: ", ";\n :before {\n background-color: ", ";\n }\n }\n "])), function (_ref6) {
|
|
16201
|
+
return styled.css(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteralLoose(["\n > span {\n border-color: ", ";\n :before {\n background-color: ", ";\n }\n }\n > input:checked + span {\n border-color: ", ";\n :before {\n background-color: ", ";\n }\n }\n "])), function (_ref6) {
|
|
16201
16202
|
var theme = _ref6.theme;
|
|
16202
|
-
return theme.colors.
|
|
16203
|
+
return theme.colors.lightestGrey;
|
|
16203
16204
|
}, function (_ref7) {
|
|
16204
16205
|
var theme = _ref7.theme;
|
|
16206
|
+
return theme.colors.lightestGrey;
|
|
16207
|
+
}, function (_ref8) {
|
|
16208
|
+
var theme = _ref8.theme;
|
|
16209
|
+
return theme.colors.blue;
|
|
16210
|
+
}, function (_ref9) {
|
|
16211
|
+
var theme = _ref9.theme;
|
|
16205
16212
|
return theme.colors.blue;
|
|
16206
16213
|
});
|
|
16207
16214
|
}
|
|
16208
16215
|
|
|
16209
|
-
return styled.css(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n > span {\n border-color: ", ";\n :before {\n background-color: ", ";\n }\n }\n "])), function (
|
|
16210
|
-
var theme =
|
|
16216
|
+
return styled.css(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n > span {\n border-color: ", ";\n :before {\n background-color: ", ";\n }\n }\n "])), function (_ref10) {
|
|
16217
|
+
var theme = _ref10.theme;
|
|
16211
16218
|
return theme.colors.warningRed;
|
|
16212
|
-
}, function (
|
|
16213
|
-
var theme =
|
|
16219
|
+
}, function (_ref11) {
|
|
16220
|
+
var theme = _ref11.theme;
|
|
16214
16221
|
return theme.colors.warningRed;
|
|
16215
16222
|
});
|
|
16216
|
-
}, function (
|
|
16217
|
-
var theme =
|
|
16223
|
+
}, function (_ref12) {
|
|
16224
|
+
var theme = _ref12.theme;
|
|
16218
16225
|
return theme.colors.white;
|
|
16219
16226
|
});
|
|
16220
16227
|
|
|
@@ -16416,7 +16423,7 @@ var parse = function parse(value) {
|
|
|
16416
16423
|
});
|
|
16417
16424
|
};
|
|
16418
16425
|
|
|
16419
|
-
var _templateObject$F, _templateObject2$u, _templateObject3$o, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$8, _templateObject10$7, _templateObject11$
|
|
16426
|
+
var _templateObject$F, _templateObject2$u, _templateObject3$o, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$8, _templateObject10$7, _templateObject11$4, _templateObject12$3;
|
|
16420
16427
|
var RelativeContainer$5 = styled__default.div(_templateObject$F || (_templateObject$F = _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"])));
|
|
16421
16428
|
var LabelContainer$6 = styled__default.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n\n :first-child {\n text-align: left;\n }\n :not(:first-child) {\n text-align: center;\n }\n\n ", "\n\n ", ";\n"])), function (_ref) {
|
|
16422
16429
|
var theme = _ref.theme;
|
|
@@ -16466,13 +16473,13 @@ var Button$4 = styled__default.button(_templateObject9$8 || (_templateObject9$8
|
|
|
16466
16473
|
if (!onClick) return;
|
|
16467
16474
|
return styled.css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
16468
16475
|
});
|
|
16469
|
-
var LabelText$1 = styled__default.label(_templateObject11$
|
|
16476
|
+
var LabelText$1 = styled__default.label(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref12) {
|
|
16470
16477
|
var theme = _ref12.theme;
|
|
16471
16478
|
return theme.spacings.s1;
|
|
16472
16479
|
}, function (_ref13) {
|
|
16473
16480
|
var required = _ref13.required;
|
|
16474
16481
|
if (!required) return;
|
|
16475
|
-
return styled.css(_templateObject12$
|
|
16482
|
+
return styled.css(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
16476
16483
|
});
|
|
16477
16484
|
|
|
16478
16485
|
var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
@@ -17959,7 +17966,7 @@ var useContext$3 = function useContext() {
|
|
|
17959
17966
|
return React__default.useContext(Provider$3);
|
|
17960
17967
|
};
|
|
17961
17968
|
|
|
17962
|
-
var _templateObject$Q, _templateObject2$A, _templateObject3$t, _templateObject4$i, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$a, _templateObject10$9, _templateObject11$
|
|
17969
|
+
var _templateObject$Q, _templateObject2$A, _templateObject3$t, _templateObject4$i, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$a, _templateObject10$9, _templateObject11$5, _templateObject12$4, _templateObject13$2, _templateObject14$2, _templateObject15$2;
|
|
17963
17970
|
var aligns = {
|
|
17964
17971
|
self: {
|
|
17965
17972
|
horizontal: {
|
|
@@ -18050,13 +18057,13 @@ var Col = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedT
|
|
|
18050
18057
|
var bordered = _ref5.bordered,
|
|
18051
18058
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
18052
18059
|
if (!bordered) return;
|
|
18053
|
-
return styled.css(_templateObject11$
|
|
18060
|
+
return styled.css(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
18054
18061
|
}, function (_ref6) {
|
|
18055
18062
|
var fontColor = _ref6.fontColor,
|
|
18056
18063
|
theme = _ref6.theme;
|
|
18057
18064
|
if (fontColor === undefined) return;
|
|
18058
18065
|
var c = Array.isArray(fontColor) ? theme.getColor.apply(theme, fontColor) : theme.colors[fontColor];
|
|
18059
|
-
return styled.css(_templateObject12$
|
|
18066
|
+
return styled.css(_templateObject12$4 || (_templateObject12$4 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), c);
|
|
18060
18067
|
}, function (_ref7) {
|
|
18061
18068
|
var backgroundColor = _ref7.backgroundColor,
|
|
18062
18069
|
theme = _ref7.theme;
|
|
@@ -18190,9 +18197,9 @@ var Row = styled__default.div(_templateObject$S || (_templateObject$S = _taggedT
|
|
|
18190
18197
|
return c;
|
|
18191
18198
|
}, function (_ref7) {
|
|
18192
18199
|
var borderless = _ref7.borderless,
|
|
18193
|
-
|
|
18200
|
+
lightestGrey = _ref7.theme.colors.lightestGrey;
|
|
18194
18201
|
if (borderless) return;
|
|
18195
|
-
return styled.css(_templateObject9$b || (_templateObject9$b = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n :last-child {\n border-bottom: 1px solid transparent;\n }\n "])),
|
|
18202
|
+
return styled.css(_templateObject9$b || (_templateObject9$b = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n :last-child {\n border-bottom: 1px solid transparent;\n }\n "])), lightestGrey);
|
|
18196
18203
|
}, function (_ref8) {
|
|
18197
18204
|
var hover = _ref8.hover,
|
|
18198
18205
|
theme = _ref8.theme;
|
|
@@ -18485,7 +18492,7 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
18485
18492
|
Audit: Audit
|
|
18486
18493
|
});
|
|
18487
18494
|
|
|
18488
|
-
var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$d, _templateObject10$c, _templateObject11$
|
|
18495
|
+
var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$d, _templateObject10$c, _templateObject11$6;
|
|
18489
18496
|
var Container$c = styled__default.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
18490
18497
|
var Header$6 = styled__default.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18491
18498
|
var HeaderImage = styled__default.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -18502,7 +18509,7 @@ var HeaderLine = styled__default.div(_templateObject6$g || (_templateObject6$g =
|
|
|
18502
18509
|
}, function (props) {
|
|
18503
18510
|
return props.size === 'large' && styled.css(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18504
18511
|
});
|
|
18505
|
-
var MainLine = styled__default(HeaderLine)(_templateObject11$
|
|
18512
|
+
var MainLine = styled__default(HeaderLine)(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
18506
18513
|
|
|
18507
18514
|
var Template1 = function Template1(props) {
|
|
18508
18515
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18887,7 +18894,7 @@ var Template8$1 = function Template8(props) {
|
|
|
18887
18894
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
18888
18895
|
};
|
|
18889
18896
|
|
|
18890
|
-
var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$j, _templateObject10$f, _templateObject11$
|
|
18897
|
+
var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$j, _templateObject10$f, _templateObject11$7;
|
|
18891
18898
|
var Container$l = styled__default.div(_templateObject$15 || (_templateObject$15 = _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"])));
|
|
18892
18899
|
var Header$c = styled__default.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18893
18900
|
var HeaderLine$9 = styled__default.div(_templateObject3$H || (_templateObject3$H = _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) {
|
|
@@ -18910,7 +18917,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$m || (_templat
|
|
|
18910
18917
|
});
|
|
18911
18918
|
var GraphLine = styled__default(CustomLine$6)(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
18912
18919
|
var Main$5 = styled__default.div(_templateObject10$f || (_templateObject10$f = _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"])));
|
|
18913
|
-
var Circle$3 = styled__default.div(_templateObject11$
|
|
18920
|
+
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"])));
|
|
18914
18921
|
|
|
18915
18922
|
var Template10 = function Template10(props) {
|
|
18916
18923
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|