@mw-kit/mw-ui 1.7.2 → 1.7.4
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/styles.d.ts +0 -1
- 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 +95 -57
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +95 -57
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,6 @@ interface RelativeContainerProps {
|
|
|
5
5
|
export declare const RelativeContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, RelativeContainerProps, never>;
|
|
6
6
|
export declare const LabelContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
7
|
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
iconWidth: string;
|
|
9
8
|
invalid: 1 | 0;
|
|
10
9
|
disabled: 1 | 0;
|
|
11
10
|
paddingless: 1 | 0;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { CommonContext, CommonOption, CommonProps } from '../interfaces';
|
|
3
3
|
export interface Option extends CommonOption {
|
|
4
|
-
onClick?: (index: number, data:
|
|
5
|
-
label: {
|
|
6
|
-
text: string;
|
|
7
|
-
element: ElementOrString;
|
|
8
|
-
};
|
|
9
|
-
value: string;
|
|
10
|
-
}) => void;
|
|
4
|
+
onClick?: (index: number, data: Option, event: React.MouseEvent) => void;
|
|
11
5
|
}
|
|
12
6
|
interface LoaderReturn {
|
|
13
7
|
options: Option[];
|
|
@@ -17,7 +11,7 @@ export declare type Loader = (search: string, page: number) => Promise<LoaderRet
|
|
|
17
11
|
export interface SelectProps extends CommonProps {
|
|
18
12
|
type: 'select';
|
|
19
13
|
name?: string;
|
|
20
|
-
setValue: (value: string) => void;
|
|
14
|
+
setValue: (value: string, option: CommonOption) => void;
|
|
21
15
|
value: string;
|
|
22
16
|
loader: Loader;
|
|
23
17
|
}
|
|
@@ -8,12 +8,12 @@ interface LoaderReturn {
|
|
|
8
8
|
export declare type Loader = (search: string, page: number) => Promise<LoaderReturn | Option[]>;
|
|
9
9
|
export interface SelectProps extends CommonProps {
|
|
10
10
|
type: 'select-multiple';
|
|
11
|
-
setValue: (value: string[]) => void;
|
|
12
|
-
value: string[];
|
|
11
|
+
setValue: (value: string[], options: Option[]) => void;
|
|
12
|
+
value: string[] | Option[];
|
|
13
13
|
selectAll?: boolean;
|
|
14
14
|
loader: Loader;
|
|
15
15
|
}
|
|
16
16
|
export interface ContextInterface extends CommonContext<SelectProps, Option> {
|
|
17
|
-
checked: [
|
|
17
|
+
checked: [Option[], React.Dispatch<React.SetStateAction<Option[]>>];
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -15,8 +15,9 @@ export interface Option {
|
|
|
15
15
|
delimiter?: boolean;
|
|
16
16
|
keepOpen?: boolean;
|
|
17
17
|
caret?: boolean;
|
|
18
|
-
onClick?: (index: number) => void;
|
|
18
|
+
onClick?: (index: number, option: Option, event: React.MouseEvent) => void;
|
|
19
19
|
rules?: Rule[];
|
|
20
|
+
data?: any;
|
|
20
21
|
}
|
|
21
22
|
export interface CommonProps extends Omit<AbsoluteContainerProps, 'children'> {
|
|
22
23
|
bordered?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -12356,8 +12356,8 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
12356
12356
|
if (rule === undefined) {
|
|
12357
12357
|
var _onClick = option.onClick || function () {};
|
|
12358
12358
|
|
|
12359
|
-
onClick = function onClick() {
|
|
12360
|
-
_onClick(index);
|
|
12359
|
+
onClick = function onClick(e) {
|
|
12360
|
+
_onClick(index, option, e);
|
|
12361
12361
|
|
|
12362
12362
|
closeMenu();
|
|
12363
12363
|
};
|
|
@@ -13638,22 +13638,21 @@ var Header$1 = function Header() {
|
|
|
13638
13638
|
};
|
|
13639
13639
|
|
|
13640
13640
|
var getOptions = function getOptions(props, options) {
|
|
13641
|
-
return options.map(function (option
|
|
13641
|
+
return options.map(function (option) {
|
|
13642
13642
|
var label = isString(option.label) ? {
|
|
13643
13643
|
text: option.label,
|
|
13644
13644
|
element: option.label
|
|
13645
13645
|
} : option.label;
|
|
13646
13646
|
var value = option.value,
|
|
13647
|
-
onClick = option.onClick
|
|
13647
|
+
onClick = option.onClick,
|
|
13648
|
+
data = option.data;
|
|
13648
13649
|
return {
|
|
13649
13650
|
label: label,
|
|
13650
|
-
|
|
13651
|
-
|
|
13652
|
-
|
|
13653
|
-
value: value
|
|
13654
|
-
});
|
|
13651
|
+
data: data,
|
|
13652
|
+
onClick: onClick ? function (index, _option, event) {
|
|
13653
|
+
onClick(index, option, event);
|
|
13655
13654
|
} : function () {
|
|
13656
|
-
props.setValue(value);
|
|
13655
|
+
props.setValue(value, option);
|
|
13657
13656
|
}
|
|
13658
13657
|
};
|
|
13659
13658
|
});
|
|
@@ -13713,7 +13712,9 @@ var Footer$1 = function Footer() {
|
|
|
13713
13712
|
setOpen = context.setOpen;
|
|
13714
13713
|
|
|
13715
13714
|
var onClick = function onClick() {
|
|
13716
|
-
setValue(
|
|
13715
|
+
setValue(checked.map(function (c) {
|
|
13716
|
+
return c.value;
|
|
13717
|
+
}), [].concat(checked));
|
|
13717
13718
|
setOpen(false);
|
|
13718
13719
|
};
|
|
13719
13720
|
|
|
@@ -13759,9 +13760,7 @@ var Header$2 = function Header() {
|
|
|
13759
13760
|
|
|
13760
13761
|
var onClick = function onClick() {
|
|
13761
13762
|
setChecked(function (prev) {
|
|
13762
|
-
return prev.length === options.length ? [] :
|
|
13763
|
-
return option.value;
|
|
13764
|
-
});
|
|
13763
|
+
return prev.length === options.length ? [] : [].concat(options);
|
|
13765
13764
|
});
|
|
13766
13765
|
};
|
|
13767
13766
|
|
|
@@ -13800,7 +13799,9 @@ var getOptions$1 = function getOptions(options, checked, setChecked) {
|
|
|
13800
13799
|
text: label.text,
|
|
13801
13800
|
element: React__default.createElement(Checkbox, {
|
|
13802
13801
|
type: 'checkbox',
|
|
13803
|
-
checked: checked.
|
|
13802
|
+
checked: checked.findIndex(function (e) {
|
|
13803
|
+
return e.value === option.value;
|
|
13804
|
+
}) !== -1,
|
|
13804
13805
|
label: option.disabled && option.disabledText ? React__default.createElement(semanticUiReact.Popup, {
|
|
13805
13806
|
on: 'click',
|
|
13806
13807
|
trigger: React__default.createElement("div", null, label.element),
|
|
@@ -13814,9 +13815,9 @@ var getOptions$1 = function getOptions(options, checked, setChecked) {
|
|
|
13814
13815
|
var isChecked = event.target.checked;
|
|
13815
13816
|
setChecked(function (prev) {
|
|
13816
13817
|
var newState = prev.filter(function (v) {
|
|
13817
|
-
return v !== option.value;
|
|
13818
|
+
return v.value !== option.value;
|
|
13818
13819
|
});
|
|
13819
|
-
if (isChecked) newState.push(option
|
|
13820
|
+
if (isChecked) newState.push(_extends({}, option));
|
|
13820
13821
|
return newState;
|
|
13821
13822
|
});
|
|
13822
13823
|
},
|
|
@@ -13839,19 +13840,61 @@ var getInputValue$1 = function getInputValue(value) {
|
|
|
13839
13840
|
};
|
|
13840
13841
|
|
|
13841
13842
|
var useSelectMultiple = function useSelectMultiple(props) {
|
|
13843
|
+
var init = function init() {
|
|
13844
|
+
return props.value.length === 0 ? [] : typeof props.value[0] === 'string' ? [].concat(props.value).map(function (value) {
|
|
13845
|
+
return {
|
|
13846
|
+
value: value,
|
|
13847
|
+
label: value
|
|
13848
|
+
};
|
|
13849
|
+
}) : [].concat(props.value);
|
|
13850
|
+
};
|
|
13851
|
+
|
|
13842
13852
|
var _useState = React.useState([]),
|
|
13843
13853
|
options = _useState[0],
|
|
13844
13854
|
setOptions = _useState[1];
|
|
13845
13855
|
|
|
13846
|
-
var _useState2 = React.useState(
|
|
13847
|
-
|
|
13848
|
-
|
|
13856
|
+
var _useState2 = React.useState(init),
|
|
13857
|
+
inital = _useState2[0],
|
|
13858
|
+
setInitial = _useState2[1];
|
|
13859
|
+
|
|
13860
|
+
var _useState3 = React.useState(init),
|
|
13861
|
+
checked = _useState3[0],
|
|
13862
|
+
setChecked = _useState3[1];
|
|
13863
|
+
|
|
13864
|
+
React.useEffect(function () {
|
|
13865
|
+
var getOption = function getOption(def, options, prev) {
|
|
13866
|
+
var index = options.findIndex(function (o) {
|
|
13867
|
+
return o.value === def.value;
|
|
13868
|
+
});
|
|
13869
|
+
if (index !== -1) return _extends({}, options[index]);else {
|
|
13870
|
+
var _index = prev.findIndex(function (o) {
|
|
13871
|
+
return o.value === def.value;
|
|
13872
|
+
});
|
|
13873
|
+
|
|
13874
|
+
if (_index !== -1) return _extends({}, prev[_index]);
|
|
13875
|
+
}
|
|
13876
|
+
return def;
|
|
13877
|
+
};
|
|
13849
13878
|
|
|
13879
|
+
var mapper = function mapper(prev) {
|
|
13880
|
+
return props.value.length > 0 && typeof props.value[0] === 'string' ? props.value.map(function (value) {
|
|
13881
|
+
return getOption({
|
|
13882
|
+
value: value,
|
|
13883
|
+
label: value
|
|
13884
|
+
}, options, prev);
|
|
13885
|
+
}) : props.value.map(function (value) {
|
|
13886
|
+
return getOption(value, options, prev);
|
|
13887
|
+
});
|
|
13888
|
+
};
|
|
13889
|
+
|
|
13890
|
+
setInitial(mapper);
|
|
13891
|
+
setChecked(mapper);
|
|
13892
|
+
}, [props.value, options]);
|
|
13850
13893
|
var parsedOptions = getOptions$1(options, checked, setChecked);
|
|
13851
13894
|
var inputValue = getInputValue$1(props.value);
|
|
13852
13895
|
|
|
13853
13896
|
var onReset = function onReset() {
|
|
13854
|
-
setChecked([].concat(
|
|
13897
|
+
setChecked([].concat(inital));
|
|
13855
13898
|
};
|
|
13856
13899
|
|
|
13857
13900
|
var returnData = {
|
|
@@ -13995,6 +14038,12 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
13995
14038
|
setSearch('');
|
|
13996
14039
|
};
|
|
13997
14040
|
|
|
14041
|
+
var onClick = function onClick() {
|
|
14042
|
+
setOpen(function (prev) {
|
|
14043
|
+
return !prev;
|
|
14044
|
+
});
|
|
14045
|
+
};
|
|
14046
|
+
|
|
13998
14047
|
return getContext({
|
|
13999
14048
|
setOpen: setOpen,
|
|
14000
14049
|
search: [search, setSearch],
|
|
@@ -14009,11 +14058,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14009
14058
|
}, React__default.createElement(Input$1, Object.assign({}, inputProps, {
|
|
14010
14059
|
type: 'search',
|
|
14011
14060
|
readOnly: true,
|
|
14012
|
-
onClick:
|
|
14013
|
-
setOpen(function (prev) {
|
|
14014
|
-
return !prev;
|
|
14015
|
-
});
|
|
14016
|
-
},
|
|
14061
|
+
onClick: onClick,
|
|
14017
14062
|
loading: loading,
|
|
14018
14063
|
icon: {
|
|
14019
14064
|
position: 'right',
|
|
@@ -14021,7 +14066,8 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14021
14066
|
type: 'semantic',
|
|
14022
14067
|
icon: open ? 'caret up' : 'caret down',
|
|
14023
14068
|
width: '14px'
|
|
14024
|
-
}
|
|
14069
|
+
},
|
|
14070
|
+
onClick: onClick
|
|
14025
14071
|
},
|
|
14026
14072
|
ref: ref
|
|
14027
14073
|
})), React__default.createElement(Menu, Object.assign({}, menuProps, {
|
|
@@ -15276,7 +15322,7 @@ var parse = function parse(value) {
|
|
|
15276
15322
|
});
|
|
15277
15323
|
};
|
|
15278
15324
|
|
|
15279
|
-
var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5
|
|
15325
|
+
var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5;
|
|
15280
15326
|
var RelativeContainer$5 = styled__default.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > :nth-child(1) input {\n color: transparent;\n }\n"])));
|
|
15281
15327
|
var LabelContainer$3 = styled__default.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
|
|
15282
15328
|
var theme = _ref.theme;
|
|
@@ -15286,7 +15332,7 @@ var LabelContainer$3 = styled__default.div(_templateObject2$l || (_templateObjec
|
|
|
15286
15332
|
if (!onClick) return;
|
|
15287
15333
|
return styled.css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15288
15334
|
});
|
|
15289
|
-
var Container$a = styled__default.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 1px;\n left: 1px;\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 ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref3) {
|
|
15335
|
+
var Container$a = styled__default.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 1px;\n left: 1px;\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\n ", "\n"])), function (_ref3) {
|
|
15290
15336
|
var theme = _ref3.theme;
|
|
15291
15337
|
return theme.spacings.s1;
|
|
15292
15338
|
}, function (_ref4) {
|
|
@@ -15295,33 +15341,28 @@ var Container$a = styled__default.div(_templateObject4$g || (_templateObject4$g
|
|
|
15295
15341
|
return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
|
|
15296
15342
|
}, function (_ref5) {
|
|
15297
15343
|
var theme = _ref5.theme,
|
|
15298
|
-
iconWidth = _ref5.iconWidth,
|
|
15299
15344
|
paddingless = _ref5.paddingless;
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
return styled.css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", ");\n "])), iconWidth);
|
|
15303
|
-
}
|
|
15304
|
-
|
|
15305
|
-
return styled.css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", " - ", ");\n padding: ", " 0 ", " ", ";\n "])), iconWidth, theme.spacings.s3, theme.spacings.s2, theme.spacings.s2, theme.spacings.s3);
|
|
15345
|
+
if (paddingless) return;
|
|
15346
|
+
return styled.css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n padding: ", " ", " ", "\n ", ";\n "])), theme.spacings.s2, theme.spacings.s1, theme.spacings.s2, theme.spacings.s3);
|
|
15306
15347
|
}, function (_ref6) {
|
|
15307
15348
|
var invalid = _ref6.invalid,
|
|
15308
15349
|
theme = _ref6.theme;
|
|
15309
15350
|
if (!invalid) return;
|
|
15310
|
-
return styled.css(
|
|
15351
|
+
return styled.css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
|
|
15311
15352
|
}, function (_ref7) {
|
|
15312
15353
|
var invalid = _ref7.invalid,
|
|
15313
15354
|
theme = _ref7.theme;
|
|
15314
15355
|
if (!invalid) return;
|
|
15315
|
-
return styled.css(
|
|
15356
|
+
return styled.css(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
|
|
15316
15357
|
}, function (_ref8) {
|
|
15317
15358
|
var disabled = _ref8.disabled;
|
|
15318
15359
|
if (!disabled) return;
|
|
15319
|
-
return styled.css(
|
|
15360
|
+
return styled.css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15320
15361
|
});
|
|
15321
|
-
var Button$4 = styled__default.button(
|
|
15362
|
+
var Button$4 = styled__default.button(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref9) {
|
|
15322
15363
|
var onClick = _ref9.onClick;
|
|
15323
15364
|
if (!onClick) return;
|
|
15324
|
-
return styled.css(
|
|
15365
|
+
return styled.css(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15325
15366
|
});
|
|
15326
15367
|
|
|
15327
15368
|
var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
@@ -15429,19 +15470,9 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15429
15470
|
},
|
|
15430
15471
|
type: 'text',
|
|
15431
15472
|
ref: ref,
|
|
15432
|
-
icon: {
|
|
15433
|
-
icon: {
|
|
15434
|
-
type: 'feather',
|
|
15435
|
-
icon: 'calendar',
|
|
15436
|
-
width: '24px'
|
|
15437
|
-
},
|
|
15438
|
-
position: 'right',
|
|
15439
|
-
onClick: onClick
|
|
15440
|
-
},
|
|
15441
15473
|
borderless: true,
|
|
15442
15474
|
htmlDisabled: true
|
|
15443
15475
|
})), React__default.createElement(Container$a, {
|
|
15444
|
-
iconWidth: '24px',
|
|
15445
15476
|
invalid: props.invalid ? 1 : 0,
|
|
15446
15477
|
disabled: props.disabled ? 1 : 0,
|
|
15447
15478
|
paddingless: props.paddingless ? 1 : 0
|
|
@@ -15472,6 +15503,13 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15472
15503
|
icon: 'chevron_right',
|
|
15473
15504
|
color: props.invalid ? 'warningRed' : 'grey',
|
|
15474
15505
|
strokeWidth: '3px'
|
|
15506
|
+
})), React__default.createElement(Button$4, {
|
|
15507
|
+
onClick: onClick
|
|
15508
|
+
}, React__default.createElement(Icon, {
|
|
15509
|
+
type: 'feather',
|
|
15510
|
+
icon: 'calendar',
|
|
15511
|
+
color: props.invalid ? 'warningRed' : 'grey',
|
|
15512
|
+
width: '24px'
|
|
15475
15513
|
})));
|
|
15476
15514
|
}()), React__default.createElement(Menu, {
|
|
15477
15515
|
open: open === 'menu',
|
|
@@ -16460,7 +16498,7 @@ var Toast = function Toast(props) {
|
|
|
16460
16498
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
16461
16499
|
};
|
|
16462
16500
|
|
|
16463
|
-
var _templateObject$C, _templateObject2$r, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$
|
|
16501
|
+
var _templateObject$C, _templateObject2$r, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$4;
|
|
16464
16502
|
var Container$e = styled__default.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
16465
16503
|
var Header$4 = styled__default.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
16466
16504
|
var HeaderImage = styled__default.div(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -16477,7 +16515,7 @@ var HeaderLine = styled__default.div(_templateObject6$h || (_templateObject6$h =
|
|
|
16477
16515
|
}, function (props) {
|
|
16478
16516
|
return props.size === 'large' && styled.css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16479
16517
|
});
|
|
16480
|
-
var MainLine = styled__default(HeaderLine)(_templateObject11$
|
|
16518
|
+
var MainLine = styled__default(HeaderLine)(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
16481
16519
|
|
|
16482
16520
|
var Template1 = function Template1(props) {
|
|
16483
16521
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -16862,7 +16900,7 @@ var Template8$1 = function Template8(props) {
|
|
|
16862
16900
|
})), React__default.createElement(Main$2, null, React__default.createElement(Circle$2, null)));
|
|
16863
16901
|
};
|
|
16864
16902
|
|
|
16865
|
-
var _templateObject$M, _templateObject2$B, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$
|
|
16903
|
+
var _templateObject$M, _templateObject2$B, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$5;
|
|
16866
16904
|
var Container$n = styled__default.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"])));
|
|
16867
16905
|
var Header$a = styled__default.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"])));
|
|
16868
16906
|
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) {
|
|
@@ -16885,7 +16923,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$i || (_templat
|
|
|
16885
16923
|
});
|
|
16886
16924
|
var GraphLine = styled__default(CustomLine$6)(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
16887
16925
|
var Main$3 = 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"])));
|
|
16888
|
-
var Circle$3 = styled__default.div(_templateObject11$
|
|
16926
|
+
var Circle$3 = styled__default.div(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
16889
16927
|
|
|
16890
16928
|
var Template10 = function Template10(props) {
|
|
16891
16929
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -17680,7 +17718,7 @@ var useContext$2 = function useContext() {
|
|
|
17680
17718
|
return React__default.useContext(Provider$2);
|
|
17681
17719
|
};
|
|
17682
17720
|
|
|
17683
|
-
var _templateObject$S, _templateObject2$F, _templateObject3$C, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$c, _templateObject11$
|
|
17721
|
+
var _templateObject$S, _templateObject2$F, _templateObject3$C, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$c, _templateObject11$6, _templateObject12$4, _templateObject13$4, _templateObject14$3, _templateObject15$2;
|
|
17684
17722
|
var aligns = {
|
|
17685
17723
|
self: {
|
|
17686
17724
|
horizontal: {
|
|
@@ -17771,7 +17809,7 @@ var Col = styled__default.div(_templateObject$S || (_templateObject$S = _taggedT
|
|
|
17771
17809
|
var bordered = _ref5.bordered,
|
|
17772
17810
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
17773
17811
|
if (!bordered) return;
|
|
17774
|
-
return styled.css(_templateObject11$
|
|
17812
|
+
return styled.css(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
17775
17813
|
}, function (_ref6) {
|
|
17776
17814
|
var fontColor = _ref6.fontColor,
|
|
17777
17815
|
theme = _ref6.theme;
|