@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
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { InputProps } from '../Input/interfaces';
|
|
2
3
|
export declare type IntervalType = 'day' | 'week' | 'month' | 'custom';
|
|
3
|
-
export interface DateIntervalPickerProps extends
|
|
4
|
+
export interface DateIntervalPickerProps extends React.HTMLAttributes<HTMLInputElement>, Pick<InputProps, 'label' | 'invalid' | 'required' | 'disabled' | 'width' | 'borderless' | 'paddingless'> {
|
|
4
5
|
type: 'date-interval-picker';
|
|
5
6
|
value: [string, string];
|
|
6
7
|
setValue: (value: [string, string]) => void;
|
|
@@ -8,7 +8,12 @@ interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
invalid: 1 | 0;
|
|
9
9
|
disabled: 1 | 0;
|
|
10
10
|
paddingless: 1 | 0;
|
|
11
|
+
borderless: 1 | 0;
|
|
11
12
|
}
|
|
12
13
|
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ContainerProps, never>;
|
|
13
14
|
export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
15
|
+
interface StyledLabelTextProps {
|
|
16
|
+
required: 1 | 0;
|
|
17
|
+
}
|
|
18
|
+
export declare const LabelText: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, StyledLabelTextProps, never>;
|
|
14
19
|
export {};
|
|
@@ -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
|
+
};
|
|
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
|
+
};
|
|
13849
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,8 +15322,8 @@ 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;
|
|
15280
|
-
var RelativeContainer$5 = styled__default.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n >
|
|
15325
|
+
var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5, _templateObject11$4;
|
|
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 > 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"])));
|
|
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;
|
|
15283
15329
|
return theme.useTypography('p');
|
|
@@ -15286,42 +15332,50 @@ 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
|
|
15335
|
+
var Container$a = styled__default.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) {
|
|
15290
15336
|
var theme = _ref3.theme;
|
|
15291
15337
|
return theme.spacings.s1;
|
|
15292
15338
|
}, function (_ref4) {
|
|
15293
15339
|
var theme = _ref4.theme,
|
|
15294
|
-
invalid = _ref4.invalid
|
|
15340
|
+
invalid = _ref4.invalid,
|
|
15341
|
+
borderless = _ref4.borderless;
|
|
15342
|
+
if (borderless) return 'transparent';
|
|
15295
15343
|
return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
|
|
15296
15344
|
}, function (_ref5) {
|
|
15297
15345
|
var theme = _ref5.theme,
|
|
15298
|
-
|
|
15299
|
-
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
|
|
15303
|
-
|
|
15304
|
-
|
|
15305
|
-
return styled.css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
|
|
15346
|
+
invalid = _ref5.invalid;
|
|
15347
|
+
|
|
15348
|
+
var _ref6 = invalid ? [theme.getColor('warningRed', 5), theme.colors.warningRed] : [theme.colors.white, theme.colors.darkBlue],
|
|
15349
|
+
bgColor = _ref6[0],
|
|
15350
|
+
color = _ref6[1];
|
|
15351
|
+
|
|
15352
|
+
return styled.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);
|
|
15306
15353
|
}, function (_ref7) {
|
|
15307
|
-
var
|
|
15308
|
-
|
|
15309
|
-
if (
|
|
15310
|
-
return styled.css(
|
|
15354
|
+
var theme = _ref7.theme,
|
|
15355
|
+
paddingless = _ref7.paddingless;
|
|
15356
|
+
if (paddingless) return;
|
|
15357
|
+
return styled.css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n padding: ", " ", " ", "\n ", ";\n "])), theme.spacings.s2, theme.spacings.s1, theme.spacings.s2, theme.spacings.s3);
|
|
15311
15358
|
}, function (_ref8) {
|
|
15312
15359
|
var disabled = _ref8.disabled;
|
|
15313
15360
|
if (!disabled) return;
|
|
15314
|
-
return styled.css(
|
|
15361
|
+
return styled.css(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15315
15362
|
});
|
|
15316
|
-
var Button$4 = styled__default.button(
|
|
15363
|
+
var Button$4 = styled__default.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) {
|
|
15317
15364
|
var onClick = _ref9.onClick;
|
|
15318
15365
|
if (!onClick) return;
|
|
15319
|
-
return styled.css(
|
|
15366
|
+
return styled.css(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15367
|
+
});
|
|
15368
|
+
var LabelText$1 = styled__default.label(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref10) {
|
|
15369
|
+
var theme = _ref10.theme;
|
|
15370
|
+
return theme.spacings.s1;
|
|
15371
|
+
}, function (_ref11) {
|
|
15372
|
+
var required = _ref11.required;
|
|
15373
|
+
if (!required) return;
|
|
15374
|
+
return styled.css(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
15320
15375
|
});
|
|
15321
15376
|
|
|
15322
15377
|
var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
15323
15378
|
var value = parse(props.value);
|
|
15324
|
-
var disabled = props.disabled || props.loading;
|
|
15325
15379
|
|
|
15326
15380
|
var _useState = React.useState(null),
|
|
15327
15381
|
open = _useState[0],
|
|
@@ -15364,7 +15418,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15364
15418
|
var newIntervalType = identify(value);
|
|
15365
15419
|
setIntervalType(newIntervalType);
|
|
15366
15420
|
}, [props.value, props.min, props.max]);
|
|
15367
|
-
var inputProps = filterObject(props, ['
|
|
15421
|
+
var inputProps = filterObject(props, ['label', 'invalid', 'required', 'disabled', 'width', 'borderless', 'paddingless', 'type', 'value', 'setValue', 'getLabel', 'max', 'min', 'only']);
|
|
15368
15422
|
|
|
15369
15423
|
var getArrowProps = function getArrowProps(key) {
|
|
15370
15424
|
if (value.some(function (v) {
|
|
@@ -15401,7 +15455,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15401
15455
|
var invalid = props.invalid || !validate(value, min, max);
|
|
15402
15456
|
|
|
15403
15457
|
var onClick = function () {
|
|
15404
|
-
if (
|
|
15458
|
+
if (props.disabled || !['custom', undefined].includes(props.only)) {
|
|
15405
15459
|
return undefined;
|
|
15406
15460
|
}
|
|
15407
15461
|
|
|
@@ -15413,23 +15467,23 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15413
15467
|
};
|
|
15414
15468
|
}();
|
|
15415
15469
|
|
|
15470
|
+
var input = React__default.createElement("input", Object.assign({}, inputProps, {
|
|
15471
|
+
type: 'text',
|
|
15472
|
+
ref: ref,
|
|
15473
|
+
readOnly: true
|
|
15474
|
+
}));
|
|
15416
15475
|
return React__default.createElement(RelativeContainer$5, {
|
|
15417
15476
|
ref: useOnClickOut(function () {
|
|
15418
15477
|
return setOpen(null);
|
|
15419
15478
|
}),
|
|
15420
15479
|
invalid: invalid
|
|
15421
|
-
}, React__default.createElement(
|
|
15422
|
-
|
|
15423
|
-
|
|
15424
|
-
},
|
|
15425
|
-
type: 'text',
|
|
15426
|
-
ref: ref,
|
|
15427
|
-
borderless: true,
|
|
15428
|
-
htmlDisabled: true
|
|
15429
|
-
})), React__default.createElement(Container$a, {
|
|
15480
|
+
}, props.label ? React__default.createElement(LabelText$1, {
|
|
15481
|
+
required: props.required ? 1 : 0
|
|
15482
|
+
}, props.label, input) : input, React__default.createElement(Container$a, {
|
|
15430
15483
|
invalid: props.invalid ? 1 : 0,
|
|
15431
15484
|
disabled: props.disabled ? 1 : 0,
|
|
15432
|
-
paddingless: props.paddingless ? 1 : 0
|
|
15485
|
+
paddingless: props.paddingless ? 1 : 0,
|
|
15486
|
+
borderless: props.borderless ? 1 : 0
|
|
15433
15487
|
}, function () {
|
|
15434
15488
|
var label = React__default.createElement(LabelContainer$3, {
|
|
15435
15489
|
onClick: onClick
|
|
@@ -15442,7 +15496,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15442
15496
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Button$4, Object.assign({
|
|
15443
15497
|
type: 'button'
|
|
15444
15498
|
}, decrementProps, {
|
|
15445
|
-
disabled: disabled || decrementProps.disabled
|
|
15499
|
+
disabled: props.disabled || decrementProps.disabled
|
|
15446
15500
|
}), React__default.createElement(Icon, {
|
|
15447
15501
|
type: 'feather',
|
|
15448
15502
|
icon: 'chevron_left',
|
|
@@ -15451,7 +15505,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15451
15505
|
})), label, React__default.createElement(Button$4, Object.assign({
|
|
15452
15506
|
type: 'button'
|
|
15453
15507
|
}, incrementProps, {
|
|
15454
|
-
disabled: disabled || incrementProps.disabled
|
|
15508
|
+
disabled: props.disabled || incrementProps.disabled
|
|
15455
15509
|
}), React__default.createElement(Icon, {
|
|
15456
15510
|
type: 'feather',
|
|
15457
15511
|
icon: 'chevron_right',
|
|
@@ -16452,7 +16506,7 @@ var Toast = function Toast(props) {
|
|
|
16452
16506
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
16453
16507
|
};
|
|
16454
16508
|
|
|
16455
|
-
var _templateObject$C, _templateObject2$r, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$
|
|
16509
|
+
var _templateObject$C, _templateObject2$r, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$5;
|
|
16456
16510
|
var Container$e = styled__default.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
16457
16511
|
var Header$4 = styled__default.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
16458
16512
|
var HeaderImage = styled__default.div(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -16469,7 +16523,7 @@ var HeaderLine = styled__default.div(_templateObject6$h || (_templateObject6$h =
|
|
|
16469
16523
|
}, function (props) {
|
|
16470
16524
|
return props.size === 'large' && styled.css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
16471
16525
|
});
|
|
16472
|
-
var MainLine = styled__default(HeaderLine)(_templateObject11$
|
|
16526
|
+
var MainLine = styled__default(HeaderLine)(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
16473
16527
|
|
|
16474
16528
|
var Template1 = function Template1(props) {
|
|
16475
16529
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -16854,7 +16908,7 @@ var Template8$1 = function Template8(props) {
|
|
|
16854
16908
|
})), React__default.createElement(Main$2, null, React__default.createElement(Circle$2, null)));
|
|
16855
16909
|
};
|
|
16856
16910
|
|
|
16857
|
-
var _templateObject$M, _templateObject2$B, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$
|
|
16911
|
+
var _templateObject$M, _templateObject2$B, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$6;
|
|
16858
16912
|
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"])));
|
|
16859
16913
|
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"])));
|
|
16860
16914
|
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) {
|
|
@@ -16877,7 +16931,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$i || (_templat
|
|
|
16877
16931
|
});
|
|
16878
16932
|
var GraphLine = styled__default(CustomLine$6)(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
16879
16933
|
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"])));
|
|
16880
|
-
var Circle$3 = styled__default.div(_templateObject11$
|
|
16934
|
+
var Circle$3 = styled__default.div(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
16881
16935
|
|
|
16882
16936
|
var Template10 = function Template10(props) {
|
|
16883
16937
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -17672,7 +17726,7 @@ var useContext$2 = function useContext() {
|
|
|
17672
17726
|
return React__default.useContext(Provider$2);
|
|
17673
17727
|
};
|
|
17674
17728
|
|
|
17675
|
-
var _templateObject$S, _templateObject2$F, _templateObject3$C, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$c, _templateObject11$
|
|
17729
|
+
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;
|
|
17676
17730
|
var aligns = {
|
|
17677
17731
|
self: {
|
|
17678
17732
|
horizontal: {
|
|
@@ -17763,7 +17817,7 @@ var Col = styled__default.div(_templateObject$S || (_templateObject$S = _taggedT
|
|
|
17763
17817
|
var bordered = _ref5.bordered,
|
|
17764
17818
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
17765
17819
|
if (!bordered) return;
|
|
17766
|
-
return styled.css(_templateObject11$
|
|
17820
|
+
return styled.css(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
17767
17821
|
}, function (_ref6) {
|
|
17768
17822
|
var fontColor = _ref6.fontColor,
|
|
17769
17823
|
theme = _ref6.theme;
|