@mw-kit/mw-ui 1.7.3 → 1.7.5
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/DateIntervalPicker/interfaces.d.ts +2 -1
- package/dist/components/Input/components/DateIntervalPicker/styles.d.ts +5 -0
- package/dist/components/Input/components/Select/hooks/Select/interfaces.d.ts +3 -9
- package/dist/components/Input/components/Select/hooks/SelectMultiple/interfaces.d.ts +3 -3
- package/dist/components/Input/components/Select/hooks/interfaces.d.ts +1 -0
- package/dist/components/Menu/interfaces.d.ts +2 -1
- package/dist/index.js +121 -67
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +121 -67
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -12353,8 +12353,8 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
12353
12353
|
if (rule === undefined) {
|
|
12354
12354
|
var _onClick = option.onClick || function () {};
|
|
12355
12355
|
|
|
12356
|
-
onClick = function onClick() {
|
|
12357
|
-
_onClick(index);
|
|
12356
|
+
onClick = function onClick(e) {
|
|
12357
|
+
_onClick(index, option, e);
|
|
12358
12358
|
|
|
12359
12359
|
closeMenu();
|
|
12360
12360
|
};
|
|
@@ -13635,22 +13635,21 @@ var Header$1 = function Header() {
|
|
|
13635
13635
|
};
|
|
13636
13636
|
|
|
13637
13637
|
var getOptions = function getOptions(props, options) {
|
|
13638
|
-
return options.map(function (option
|
|
13638
|
+
return options.map(function (option) {
|
|
13639
13639
|
var label = isString(option.label) ? {
|
|
13640
13640
|
text: option.label,
|
|
13641
13641
|
element: option.label
|
|
13642
13642
|
} : option.label;
|
|
13643
13643
|
var value = option.value,
|
|
13644
|
-
onClick = option.onClick
|
|
13644
|
+
onClick = option.onClick,
|
|
13645
|
+
data = option.data;
|
|
13645
13646
|
return {
|
|
13646
13647
|
label: label,
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
|
|
13650
|
-
value: value
|
|
13651
|
-
});
|
|
13648
|
+
data: data,
|
|
13649
|
+
onClick: onClick ? function (index, _option, event) {
|
|
13650
|
+
onClick(index, option, event);
|
|
13652
13651
|
} : function () {
|
|
13653
|
-
props.setValue(value);
|
|
13652
|
+
props.setValue(value, option);
|
|
13654
13653
|
}
|
|
13655
13654
|
};
|
|
13656
13655
|
});
|
|
@@ -13710,7 +13709,9 @@ var Footer$1 = function Footer() {
|
|
|
13710
13709
|
setOpen = context.setOpen;
|
|
13711
13710
|
|
|
13712
13711
|
var onClick = function onClick() {
|
|
13713
|
-
setValue(
|
|
13712
|
+
setValue(checked.map(function (c) {
|
|
13713
|
+
return c.value;
|
|
13714
|
+
}), [].concat(checked));
|
|
13714
13715
|
setOpen(false);
|
|
13715
13716
|
};
|
|
13716
13717
|
|
|
@@ -13756,9 +13757,7 @@ var Header$2 = function Header() {
|
|
|
13756
13757
|
|
|
13757
13758
|
var onClick = function onClick() {
|
|
13758
13759
|
setChecked(function (prev) {
|
|
13759
|
-
return prev.length === options.length ? [] :
|
|
13760
|
-
return option.value;
|
|
13761
|
-
});
|
|
13760
|
+
return prev.length === options.length ? [] : [].concat(options);
|
|
13762
13761
|
});
|
|
13763
13762
|
};
|
|
13764
13763
|
|
|
@@ -13797,7 +13796,9 @@ var getOptions$1 = function getOptions(options, checked, setChecked) {
|
|
|
13797
13796
|
text: label.text,
|
|
13798
13797
|
element: React__default.createElement(Checkbox, {
|
|
13799
13798
|
type: 'checkbox',
|
|
13800
|
-
checked: checked.
|
|
13799
|
+
checked: checked.findIndex(function (e) {
|
|
13800
|
+
return e.value === option.value;
|
|
13801
|
+
}) !== -1,
|
|
13801
13802
|
label: option.disabled && option.disabledText ? React__default.createElement(Popup, {
|
|
13802
13803
|
on: 'click',
|
|
13803
13804
|
trigger: React__default.createElement("div", null, label.element),
|
|
@@ -13811,9 +13812,9 @@ var getOptions$1 = function getOptions(options, checked, setChecked) {
|
|
|
13811
13812
|
var isChecked = event.target.checked;
|
|
13812
13813
|
setChecked(function (prev) {
|
|
13813
13814
|
var newState = prev.filter(function (v) {
|
|
13814
|
-
return v !== option.value;
|
|
13815
|
+
return v.value !== option.value;
|
|
13815
13816
|
});
|
|
13816
|
-
if (isChecked) newState.push(option
|
|
13817
|
+
if (isChecked) newState.push(_extends({}, option));
|
|
13817
13818
|
return newState;
|
|
13818
13819
|
});
|
|
13819
13820
|
},
|
|
@@ -13836,19 +13837,61 @@ var getInputValue$1 = function getInputValue(value) {
|
|
|
13836
13837
|
};
|
|
13837
13838
|
|
|
13838
13839
|
var useSelectMultiple = function useSelectMultiple(props) {
|
|
13840
|
+
var init = function init() {
|
|
13841
|
+
return props.value.length === 0 ? [] : typeof props.value[0] === 'string' ? [].concat(props.value).map(function (value) {
|
|
13842
|
+
return {
|
|
13843
|
+
value: value,
|
|
13844
|
+
label: value
|
|
13845
|
+
};
|
|
13846
|
+
}) : [].concat(props.value);
|
|
13847
|
+
};
|
|
13848
|
+
|
|
13839
13849
|
var _useState = useState([]),
|
|
13840
13850
|
options = _useState[0],
|
|
13841
13851
|
setOptions = _useState[1];
|
|
13842
13852
|
|
|
13843
|
-
var _useState2 = useState(
|
|
13844
|
-
|
|
13845
|
-
|
|
13853
|
+
var _useState2 = useState(init),
|
|
13854
|
+
inital = _useState2[0],
|
|
13855
|
+
setInitial = _useState2[1];
|
|
13856
|
+
|
|
13857
|
+
var _useState3 = useState(init),
|
|
13858
|
+
checked = _useState3[0],
|
|
13859
|
+
setChecked = _useState3[1];
|
|
13860
|
+
|
|
13861
|
+
useEffect(function () {
|
|
13862
|
+
var getOption = function getOption(def, options, prev) {
|
|
13863
|
+
var index = options.findIndex(function (o) {
|
|
13864
|
+
return o.value === def.value;
|
|
13865
|
+
});
|
|
13866
|
+
if (index !== -1) return _extends({}, options[index]);else {
|
|
13867
|
+
var _index = prev.findIndex(function (o) {
|
|
13868
|
+
return o.value === def.value;
|
|
13869
|
+
});
|
|
13870
|
+
|
|
13871
|
+
if (_index !== -1) return _extends({}, prev[_index]);
|
|
13872
|
+
}
|
|
13873
|
+
return def;
|
|
13874
|
+
};
|
|
13875
|
+
|
|
13876
|
+
var mapper = function mapper(prev) {
|
|
13877
|
+
return props.value.length > 0 && typeof props.value[0] === 'string' ? props.value.map(function (value) {
|
|
13878
|
+
return getOption({
|
|
13879
|
+
value: value,
|
|
13880
|
+
label: value
|
|
13881
|
+
}, options, prev);
|
|
13882
|
+
}) : props.value.map(function (value) {
|
|
13883
|
+
return getOption(value, options, prev);
|
|
13884
|
+
});
|
|
13885
|
+
};
|
|
13846
13886
|
|
|
13887
|
+
setInitial(mapper);
|
|
13888
|
+
setChecked(mapper);
|
|
13889
|
+
}, [props.value, options]);
|
|
13847
13890
|
var parsedOptions = getOptions$1(options, checked, setChecked);
|
|
13848
13891
|
var inputValue = getInputValue$1(props.value);
|
|
13849
13892
|
|
|
13850
13893
|
var onReset = function onReset() {
|
|
13851
|
-
setChecked([].concat(
|
|
13894
|
+
setChecked([].concat(inital));
|
|
13852
13895
|
};
|
|
13853
13896
|
|
|
13854
13897
|
var returnData = {
|
|
@@ -13992,6 +14035,12 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
13992
14035
|
setSearch('');
|
|
13993
14036
|
};
|
|
13994
14037
|
|
|
14038
|
+
var onClick = function onClick() {
|
|
14039
|
+
setOpen(function (prev) {
|
|
14040
|
+
return !prev;
|
|
14041
|
+
});
|
|
14042
|
+
};
|
|
14043
|
+
|
|
13995
14044
|
return getContext({
|
|
13996
14045
|
setOpen: setOpen,
|
|
13997
14046
|
search: [search, setSearch],
|
|
@@ -14006,11 +14055,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14006
14055
|
}, React__default.createElement(Input$1, Object.assign({}, inputProps, {
|
|
14007
14056
|
type: 'search',
|
|
14008
14057
|
readOnly: true,
|
|
14009
|
-
onClick:
|
|
14010
|
-
setOpen(function (prev) {
|
|
14011
|
-
return !prev;
|
|
14012
|
-
});
|
|
14013
|
-
},
|
|
14058
|
+
onClick: onClick,
|
|
14014
14059
|
loading: loading,
|
|
14015
14060
|
icon: {
|
|
14016
14061
|
position: 'right',
|
|
@@ -14018,7 +14063,8 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14018
14063
|
type: 'semantic',
|
|
14019
14064
|
icon: open ? 'caret up' : 'caret down',
|
|
14020
14065
|
width: '14px'
|
|
14021
|
-
}
|
|
14066
|
+
},
|
|
14067
|
+
onClick: onClick
|
|
14022
14068
|
},
|
|
14023
14069
|
ref: ref
|
|
14024
14070
|
})), React__default.createElement(Menu, Object.assign({}, menuProps, {
|
|
@@ -15273,8 +15319,8 @@ var parse = function parse(value) {
|
|
|
15273
15319
|
});
|
|
15274
15320
|
};
|
|
15275
15321
|
|
|
15276
|
-
var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5;
|
|
15277
|
-
var RelativeContainer$5 = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n >
|
|
15322
|
+
var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5, _templateObject11$4;
|
|
15323
|
+
var RelativeContainer$5 = styled.div(_templateObject$q || (_templateObject$q = _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"])));
|
|
15278
15324
|
var LabelContainer$3 = styled.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
|
|
15279
15325
|
var theme = _ref.theme;
|
|
15280
15326
|
return theme.useTypography('p');
|
|
@@ -15283,42 +15329,50 @@ var LabelContainer$3 = styled.div(_templateObject2$l || (_templateObject2$l = _t
|
|
|
15283
15329
|
if (!onClick) return;
|
|
15284
15330
|
return css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15285
15331
|
});
|
|
15286
|
-
var Container$a = styled.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n
|
|
15332
|
+
var Container$a = styled.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n gap: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n\n width: 100%;\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref3) {
|
|
15287
15333
|
var theme = _ref3.theme;
|
|
15288
15334
|
return theme.spacings.s1;
|
|
15289
15335
|
}, function (_ref4) {
|
|
15290
15336
|
var theme = _ref4.theme,
|
|
15291
|
-
invalid = _ref4.invalid
|
|
15337
|
+
invalid = _ref4.invalid,
|
|
15338
|
+
borderless = _ref4.borderless;
|
|
15339
|
+
if (borderless) return 'transparent';
|
|
15292
15340
|
return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
|
|
15293
15341
|
}, function (_ref5) {
|
|
15294
15342
|
var theme = _ref5.theme,
|
|
15295
|
-
|
|
15296
|
-
|
|
15297
|
-
|
|
15298
|
-
|
|
15299
|
-
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
return css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
|
|
15343
|
+
invalid = _ref5.invalid;
|
|
15344
|
+
|
|
15345
|
+
var _ref6 = invalid ? [theme.getColor('warningRed', 5), theme.colors.warningRed] : [theme.colors.white, theme.colors.darkBlue],
|
|
15346
|
+
bgColor = _ref6[0],
|
|
15347
|
+
color = _ref6[1];
|
|
15348
|
+
|
|
15349
|
+
return css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n color: ", ";\n background-color: ", ";\n /** google chrome blue background */\n -webkit-box-shadow: 0 0 0px 1000px ", " inset !important;\n "])), color, bgColor, bgColor);
|
|
15303
15350
|
}, function (_ref7) {
|
|
15304
|
-
var
|
|
15305
|
-
|
|
15306
|
-
if (
|
|
15307
|
-
return css(
|
|
15351
|
+
var theme = _ref7.theme,
|
|
15352
|
+
paddingless = _ref7.paddingless;
|
|
15353
|
+
if (paddingless) return;
|
|
15354
|
+
return css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n padding: ", " ", " ", "\n ", ";\n "])), theme.spacings.s2, theme.spacings.s1, theme.spacings.s2, theme.spacings.s3);
|
|
15308
15355
|
}, function (_ref8) {
|
|
15309
15356
|
var disabled = _ref8.disabled;
|
|
15310
15357
|
if (!disabled) return;
|
|
15311
|
-
return css(
|
|
15358
|
+
return css(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15312
15359
|
});
|
|
15313
|
-
var Button$4 = styled.button(
|
|
15360
|
+
var Button$4 = styled.button(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref9) {
|
|
15314
15361
|
var onClick = _ref9.onClick;
|
|
15315
15362
|
if (!onClick) return;
|
|
15316
|
-
return css(
|
|
15363
|
+
return css(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15364
|
+
});
|
|
15365
|
+
var LabelText$1 = styled.label(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref10) {
|
|
15366
|
+
var theme = _ref10.theme;
|
|
15367
|
+
return theme.spacings.s1;
|
|
15368
|
+
}, function (_ref11) {
|
|
15369
|
+
var required = _ref11.required;
|
|
15370
|
+
if (!required) return;
|
|
15371
|
+
return css(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
15317
15372
|
});
|
|
15318
15373
|
|
|
15319
15374
|
var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
15320
15375
|
var value = parse(props.value);
|
|
15321
|
-
var disabled = props.disabled || props.loading;
|
|
15322
15376
|
|
|
15323
15377
|
var _useState = useState(null),
|
|
15324
15378
|
open = _useState[0],
|
|
@@ -15361,7 +15415,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15361
15415
|
var newIntervalType = identify(value);
|
|
15362
15416
|
setIntervalType(newIntervalType);
|
|
15363
15417
|
}, [props.value, props.min, props.max]);
|
|
15364
|
-
var inputProps = filterObject(props, ['
|
|
15418
|
+
var inputProps = filterObject(props, ['label', 'invalid', 'required', 'disabled', 'width', 'borderless', 'paddingless', 'type', 'value', 'setValue', 'getLabel', 'max', 'min', 'only']);
|
|
15365
15419
|
|
|
15366
15420
|
var getArrowProps = function getArrowProps(key) {
|
|
15367
15421
|
if (value.some(function (v) {
|
|
@@ -15398,7 +15452,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15398
15452
|
var invalid = props.invalid || !validate(value, min, max);
|
|
15399
15453
|
|
|
15400
15454
|
var onClick = function () {
|
|
15401
|
-
if (
|
|
15455
|
+
if (props.disabled || !['custom', undefined].includes(props.only)) {
|
|
15402
15456
|
return undefined;
|
|
15403
15457
|
}
|
|
15404
15458
|
|
|
@@ -15410,23 +15464,23 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15410
15464
|
};
|
|
15411
15465
|
}();
|
|
15412
15466
|
|
|
15467
|
+
var input = React__default.createElement("input", Object.assign({}, inputProps, {
|
|
15468
|
+
type: 'text',
|
|
15469
|
+
ref: ref,
|
|
15470
|
+
readOnly: true
|
|
15471
|
+
}));
|
|
15413
15472
|
return React__default.createElement(RelativeContainer$5, {
|
|
15414
15473
|
ref: useOnClickOut(function () {
|
|
15415
15474
|
return setOpen(null);
|
|
15416
15475
|
}),
|
|
15417
15476
|
invalid: invalid
|
|
15418
|
-
}, React__default.createElement(
|
|
15419
|
-
|
|
15420
|
-
|
|
15421
|
-
},
|
|
15422
|
-
type: 'text',
|
|
15423
|
-
ref: ref,
|
|
15424
|
-
borderless: true,
|
|
15425
|
-
htmlDisabled: true
|
|
15426
|
-
})), React__default.createElement(Container$a, {
|
|
15477
|
+
}, props.label ? React__default.createElement(LabelText$1, {
|
|
15478
|
+
required: props.required ? 1 : 0
|
|
15479
|
+
}, props.label, input) : input, React__default.createElement(Container$a, {
|
|
15427
15480
|
invalid: props.invalid ? 1 : 0,
|
|
15428
15481
|
disabled: props.disabled ? 1 : 0,
|
|
15429
|
-
paddingless: props.paddingless ? 1 : 0
|
|
15482
|
+
paddingless: props.paddingless ? 1 : 0,
|
|
15483
|
+
borderless: props.borderless ? 1 : 0
|
|
15430
15484
|
}, function () {
|
|
15431
15485
|
var label = React__default.createElement(LabelContainer$3, {
|
|
15432
15486
|
onClick: onClick
|
|
@@ -15439,7 +15493,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15439
15493
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Button$4, Object.assign({
|
|
15440
15494
|
type: 'button'
|
|
15441
15495
|
}, decrementProps, {
|
|
15442
|
-
disabled: disabled || decrementProps.disabled
|
|
15496
|
+
disabled: props.disabled || decrementProps.disabled
|
|
15443
15497
|
}), React__default.createElement(Icon, {
|
|
15444
15498
|
type: 'feather',
|
|
15445
15499
|
icon: 'chevron_left',
|
|
@@ -15448,7 +15502,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15448
15502
|
})), label, React__default.createElement(Button$4, Object.assign({
|
|
15449
15503
|
type: 'button'
|
|
15450
15504
|
}, incrementProps, {
|
|
15451
|
-
disabled: disabled || incrementProps.disabled
|
|
15505
|
+
disabled: props.disabled || incrementProps.disabled
|
|
15452
15506
|
}), React__default.createElement(Icon, {
|
|
15453
15507
|
type: 'feather',
|
|
15454
15508
|
icon: 'chevron_right',
|
|
@@ -16449,7 +16503,7 @@ var Toast = function Toast(props) {
|
|
|
16449
16503
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
16450
16504
|
};
|
|
16451
16505
|
|
|
16452
|
-
var _templateObject$C, _templateObject2$r, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$
|
|
16506
|
+
var _templateObject$C, _templateObject2$r, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$5;
|
|
16453
16507
|
var Container$e = styled.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
16454
16508
|
var Header$4 = styled.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
16455
16509
|
var HeaderImage = styled.div(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -16466,7 +16520,7 @@ var HeaderLine = styled.div(_templateObject6$h || (_templateObject6$h = _taggedT
|
|
|
16466
16520
|
}, function (props) {
|
|
16467
16521
|
return props.size === 'large' && css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16468
16522
|
});
|
|
16469
|
-
var MainLine = styled(HeaderLine)(_templateObject11$
|
|
16523
|
+
var MainLine = styled(HeaderLine)(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
16470
16524
|
|
|
16471
16525
|
var Template1 = function Template1(props) {
|
|
16472
16526
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -16851,7 +16905,7 @@ var Template8$1 = function Template8(props) {
|
|
|
16851
16905
|
})), React__default.createElement(Main$2, null, React__default.createElement(Circle$2, null)));
|
|
16852
16906
|
};
|
|
16853
16907
|
|
|
16854
|
-
var _templateObject$M, _templateObject2$B, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$
|
|
16908
|
+
var _templateObject$M, _templateObject2$B, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$6;
|
|
16855
16909
|
var Container$n = styled.div(_templateObject$M || (_templateObject$M = _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"])));
|
|
16856
16910
|
var Header$a = styled.div(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
16857
16911
|
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) {
|
|
@@ -16874,7 +16928,7 @@ var CustomLine$6 = styled(HeaderLine$9)(_templateObject8$i || (_templateObject8$
|
|
|
16874
16928
|
});
|
|
16875
16929
|
var GraphLine = styled(CustomLine$6)(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
16876
16930
|
var Main$3 = 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"])));
|
|
16877
|
-
var Circle$3 = styled.div(_templateObject11$
|
|
16931
|
+
var Circle$3 = styled.div(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
16878
16932
|
|
|
16879
16933
|
var Template10 = function Template10(props) {
|
|
16880
16934
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -17669,7 +17723,7 @@ var useContext$2 = function useContext() {
|
|
|
17669
17723
|
return React__default.useContext(Provider$2);
|
|
17670
17724
|
};
|
|
17671
17725
|
|
|
17672
|
-
var _templateObject$S, _templateObject2$F, _templateObject3$C, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$c, _templateObject11$
|
|
17726
|
+
var _templateObject$S, _templateObject2$F, _templateObject3$C, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$c, _templateObject11$7, _templateObject12$4, _templateObject13$4, _templateObject14$3, _templateObject15$2;
|
|
17673
17727
|
var aligns = {
|
|
17674
17728
|
self: {
|
|
17675
17729
|
horizontal: {
|
|
@@ -17760,7 +17814,7 @@ var Col = styled.div(_templateObject$S || (_templateObject$S = _taggedTemplateLi
|
|
|
17760
17814
|
var bordered = _ref5.bordered,
|
|
17761
17815
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
17762
17816
|
if (!bordered) return;
|
|
17763
|
-
return css(_templateObject11$
|
|
17817
|
+
return css(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
17764
17818
|
}, function (_ref6) {
|
|
17765
17819
|
var fontColor = _ref6.fontColor,
|
|
17766
17820
|
theme = _ref6.theme;
|