@mw-kit/mw-ui 1.7.92 → 1.7.94
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/Calendar/components/Basic/components/MonthPicker/index.d.ts +1 -1
- package/dist/components/Filters/Filters/components/Submenu/interfaces.d.ts +3 -1
- package/dist/components/Filters/Filters/interfaces.d.ts +7 -4
- package/dist/components/Input/components/Select/hooks/Navigation/index.d.ts +15 -0
- package/dist/components/Input/components/Select/hooks/Select/index.d.ts +3 -4
- package/dist/components/Input/components/Select/hooks/Select/interfaces.d.ts +5 -4
- package/dist/components/Input/components/Select/hooks/SelectMultiple/components/Label/index.d.ts +4 -4
- package/dist/components/Input/components/Select/hooks/SelectMultiple/index.d.ts +3 -4
- package/dist/components/Input/components/Select/hooks/SelectMultiple/interfaces.d.ts +5 -4
- package/dist/components/Input/components/Select/hooks/interfaces.d.ts +11 -23
- package/dist/components/Input/components/Select/index.d.ts +3 -2
- package/dist/components/Input/components/Select/styles.d.ts +2 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Menu/interfaces.d.ts +21 -13
- package/dist/components/Menu/styles.d.ts +2 -2
- package/dist/index.js +451 -298
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +451 -298
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12229,7 +12229,7 @@ var EllipsisContainer$1 = function EllipsisContainer$1(props) {
|
|
|
12229
12229
|
};
|
|
12230
12230
|
|
|
12231
12231
|
var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1;
|
|
12232
|
-
var IconContainer = styled__default.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n"])));
|
|
12232
|
+
var IconContainer = styled__default.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n\n cursor: auto;\n"])));
|
|
12233
12233
|
var ChildrenContainer = styled__default(EllipsisContainer$1)(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n bottom: 0;\n left: 0;\n line-height: 19px;\n display: flex;\n gap: calc(", " / 2);\n"])), function (_ref) {
|
|
12234
12234
|
var theme = _ref.theme;
|
|
12235
12235
|
return theme.spacings.s1;
|
|
@@ -12922,8 +12922,8 @@ var ScrollContainer = React__default.forwardRef(function (props, ref) {
|
|
|
12922
12922
|
});
|
|
12923
12923
|
ScrollContainer.displayName = 'ScrollContainer';
|
|
12924
12924
|
|
|
12925
|
-
var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$3;
|
|
12926
|
-
var Option = styled__default.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n gap: ", ";\n\n > :nth-child(1) {\n display: flex;\n align-items: center;\n flex: 1;\n max-width: 100%;\n }\n\n ", ";\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
|
|
12925
|
+
var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$3, _templateObject11$3;
|
|
12926
|
+
var Option = styled__default.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n gap: ", ";\n\n > :nth-child(1) {\n display: flex;\n align-items: center;\n flex: 1;\n max-width: 100%;\n }\n\n ", ";\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n\n ", "\n"])), function (_ref) {
|
|
12927
12927
|
var theme = _ref.theme;
|
|
12928
12928
|
return theme.useTypography('p');
|
|
12929
12929
|
}, function (_ref2) {
|
|
@@ -12936,7 +12936,7 @@ var Option = styled__default.div(_templateObject$b || (_templateObject$b = _tagg
|
|
|
12936
12936
|
var theme = _ref4.theme;
|
|
12937
12937
|
return theme.spacings.s1;
|
|
12938
12938
|
}, function (_ref5) {
|
|
12939
|
-
var disabled = _ref5
|
|
12939
|
+
var disabled = _ref5.$disabled;
|
|
12940
12940
|
|
|
12941
12941
|
if (!disabled) {
|
|
12942
12942
|
return styled.css(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
@@ -12944,7 +12944,7 @@ var Option = styled__default.div(_templateObject$b || (_templateObject$b = _tagg
|
|
|
12944
12944
|
|
|
12945
12945
|
return styled.css(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n opacity: 0.3;\n "])));
|
|
12946
12946
|
}, function (_ref6) {
|
|
12947
|
-
var border = _ref6
|
|
12947
|
+
var border = _ref6.$border,
|
|
12948
12948
|
theme = _ref6.theme;
|
|
12949
12949
|
if (!border) return;
|
|
12950
12950
|
var config = getBorder(border);
|
|
@@ -12959,10 +12959,17 @@ var Option = styled__default.div(_templateObject$b || (_templateObject$b = _tagg
|
|
|
12959
12959
|
});
|
|
12960
12960
|
}, function (_ref7) {
|
|
12961
12961
|
var theme = _ref7.theme;
|
|
12962
|
-
return theme.
|
|
12962
|
+
return theme.getColor('blue', 15);
|
|
12963
|
+
}, function (_ref8) {
|
|
12964
|
+
var highlighted = _ref8.$highlighted;
|
|
12965
|
+
if (!highlighted) return;
|
|
12966
|
+
return styled.css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref9) {
|
|
12967
|
+
var theme = _ref9.theme;
|
|
12968
|
+
return theme.getColor('blue', 15);
|
|
12969
|
+
});
|
|
12963
12970
|
});
|
|
12964
|
-
var Container$2 = styled__default(AbsoluteContainer)(
|
|
12965
|
-
var theme =
|
|
12971
|
+
var Container$2 = styled__default(AbsoluteContainer)(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n > div {\n display: flex;\n width: 100%;\n\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n\n ", "\n }\n\n ", "\n\n ", "\n }\n"])), function (_ref10) {
|
|
12972
|
+
var theme = _ref10.theme;
|
|
12966
12973
|
return theme.colors.white;
|
|
12967
12974
|
}, function (props) {
|
|
12968
12975
|
if (!props.containerSpacing) return;
|
|
@@ -12970,46 +12977,74 @@ var Container$2 = styled__default(AbsoluteContainer)(_templateObject5$5 || (_tem
|
|
|
12970
12977
|
var tmp = spacing.split(' ');
|
|
12971
12978
|
tmp[1] = "calc(" + props.theme.spacings.s1 + " / 2)";
|
|
12972
12979
|
spacing = tmp.join(' ');
|
|
12973
|
-
return styled.css(
|
|
12974
|
-
}, function (
|
|
12975
|
-
var bordered =
|
|
12980
|
+
return styled.css(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), spacing);
|
|
12981
|
+
}, function (_ref11) {
|
|
12982
|
+
var bordered = _ref11.bordered;
|
|
12976
12983
|
if (!bordered) return;
|
|
12977
|
-
return styled.css(
|
|
12978
|
-
var theme =
|
|
12984
|
+
return styled.css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref12) {
|
|
12985
|
+
var theme = _ref12.theme;
|
|
12979
12986
|
return theme.getColor('greyishBlue', 10);
|
|
12980
12987
|
});
|
|
12981
12988
|
}, function (props) {
|
|
12982
12989
|
var theme = props.theme;
|
|
12983
12990
|
|
|
12984
12991
|
if (!props.itemSpacing) {
|
|
12985
|
-
return styled.css(
|
|
12992
|
+
return styled.css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n ", " {\n margin: ", " 0px ", "\n ", ";\n }\n "])), Delimiter, theme.spacings.s1, theme.spacings.s1, theme.spacings.s1);
|
|
12986
12993
|
}
|
|
12987
12994
|
|
|
12988
12995
|
var spacing = getSpacings(props.itemSpacing, {
|
|
12989
12996
|
right: '0'
|
|
12990
12997
|
});
|
|
12991
|
-
return styled.css(
|
|
12998
|
+
return styled.css(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", ";\n }\n ", " {\n margin: ", ";\n }\n "])), Option, spacing, Delimiter, spacing);
|
|
12992
12999
|
});
|
|
12993
|
-
var Delimiter = styled__default.div(
|
|
12994
|
-
var theme =
|
|
13000
|
+
var Delimiter = styled__default.div(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref13) {
|
|
13001
|
+
var theme = _ref13.theme;
|
|
12995
13002
|
return theme.useTypography('p');
|
|
12996
|
-
}, function (
|
|
12997
|
-
var theme =
|
|
13003
|
+
}, function (_ref14) {
|
|
13004
|
+
var theme = _ref14.theme;
|
|
12998
13005
|
return theme.colors.greyishBlue;
|
|
12999
13006
|
});
|
|
13000
13007
|
|
|
13008
|
+
var EmptyLabel = function EmptyLabel(_ref) {
|
|
13009
|
+
var label = _ref.label;
|
|
13010
|
+
return React__default.createElement(React__default.Fragment, {
|
|
13011
|
+
children: label
|
|
13012
|
+
});
|
|
13013
|
+
};
|
|
13014
|
+
|
|
13015
|
+
var isVisible = function isVisible(elem, bound) {
|
|
13016
|
+
var docViewTop = bound.scrollTop;
|
|
13017
|
+
var docViewBottom = docViewTop + bound.offsetHeight;
|
|
13018
|
+
var elemTop = elem.offsetTop;
|
|
13019
|
+
var elemBottom = elemTop + elem.offsetHeight;
|
|
13020
|
+
return elemBottom <= docViewBottom && elemTop >= docViewTop;
|
|
13021
|
+
};
|
|
13022
|
+
|
|
13001
13023
|
var MenuComponent = function MenuComponent(props, ref) {
|
|
13002
13024
|
var _props = _extends({}, props),
|
|
13003
13025
|
close = _props.close,
|
|
13004
13026
|
options = _props.options,
|
|
13005
|
-
children = _props.children
|
|
13027
|
+
children = _props.children,
|
|
13028
|
+
highlight = _props.highlight;
|
|
13006
13029
|
|
|
13007
|
-
var
|
|
13030
|
+
var _useState = React.useState(null),
|
|
13031
|
+
scrollRef = _useState[0],
|
|
13032
|
+
setScrollRef = _useState[1];
|
|
13033
|
+
|
|
13034
|
+
React.useEffect(function () {
|
|
13035
|
+
if (!scrollRef || highlight === undefined) return;
|
|
13036
|
+
var element = scrollRef.children[highlight];
|
|
13037
|
+
if (!element) return;
|
|
13038
|
+
if (isVisible(element, scrollRef)) return;
|
|
13039
|
+
scrollRef.scrollTo(0, element.offsetTop);
|
|
13040
|
+
}, [highlight, scrollRef]);
|
|
13041
|
+
var absoluteContainerProps = filterObject(props, ['scrollSpacing', 'scrollTabIndex', 'label', 'rules', 'onClickOption', 'onScrollEnd', 'before', 'after', 'close', 'options', 'loading', 'children', 'emptyContent', 'highlight'], {
|
|
13008
13042
|
itemSpacing: 's1'
|
|
13009
13043
|
});
|
|
13010
13044
|
return React__default.createElement(Container$2, Object.assign({}, absoluteContainerProps, {
|
|
13011
13045
|
ref: ref
|
|
13012
13046
|
}), React__default.createElement(React__default.Fragment, null, React__default.createElement(ScrollContainer, {
|
|
13047
|
+
ref: setScrollRef,
|
|
13013
13048
|
onScrollEnd: props.onScrollEnd,
|
|
13014
13049
|
before: props.before,
|
|
13015
13050
|
after: props.after,
|
|
@@ -13018,7 +13053,8 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
13018
13053
|
content: props.emptyContent
|
|
13019
13054
|
} : undefined,
|
|
13020
13055
|
spacing: props.scrollSpacing,
|
|
13021
|
-
loading: props.loading
|
|
13056
|
+
loading: props.loading,
|
|
13057
|
+
tabIndex: props.scrollTabIndex
|
|
13022
13058
|
}, options.map(function (option, index) {
|
|
13023
13059
|
var _option = _extends({}, option),
|
|
13024
13060
|
delimiter = _option.delimiter,
|
|
@@ -13030,23 +13066,23 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
13030
13066
|
var onClick;
|
|
13031
13067
|
var disabled = option.disabled;
|
|
13032
13068
|
|
|
13033
|
-
var OptionContent = function OptionContent(
|
|
13034
|
-
var children =
|
|
13069
|
+
var OptionContent = function OptionContent(_ref2) {
|
|
13070
|
+
var children = _ref2.children;
|
|
13035
13071
|
return children;
|
|
13036
13072
|
};
|
|
13037
13073
|
|
|
13038
13074
|
if (!disabled) {
|
|
13039
|
-
var rule = (option.rules || []).map(function (rule) {
|
|
13075
|
+
var rule = (option.rules || props.rules || []).map(function (rule) {
|
|
13040
13076
|
return rule(index, data);
|
|
13041
13077
|
}).find(function (result) {
|
|
13042
13078
|
return result !== true;
|
|
13043
13079
|
});
|
|
13044
13080
|
|
|
13045
13081
|
if (rule === true || rule === undefined) {
|
|
13046
|
-
var _onClick = option.onClick || function () {};
|
|
13082
|
+
var _onClick = option.onClick || props.onClickOption || function () {};
|
|
13047
13083
|
|
|
13048
13084
|
onClick = function onClick(e) {
|
|
13049
|
-
_onClick(index, option, e);
|
|
13085
|
+
_onClick(index, option.data, e);
|
|
13050
13086
|
|
|
13051
13087
|
closeMenu();
|
|
13052
13088
|
};
|
|
@@ -13054,8 +13090,8 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
13054
13090
|
disabled = true;
|
|
13055
13091
|
|
|
13056
13092
|
if (rule !== false) {
|
|
13057
|
-
OptionContent = function OptionContent(
|
|
13058
|
-
var children =
|
|
13093
|
+
OptionContent = function OptionContent(_ref3) {
|
|
13094
|
+
var children = _ref3.children;
|
|
13059
13095
|
return React__default.createElement(semanticUiReact.Popup, Object.assign({
|
|
13060
13096
|
on: 'click',
|
|
13061
13097
|
position: 'left center',
|
|
@@ -13076,21 +13112,17 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
13076
13112
|
}
|
|
13077
13113
|
|
|
13078
13114
|
OptionContent.displayName = 'OptionContent';
|
|
13079
|
-
var
|
|
13080
|
-
var labelOptions = filterObject(option, ['onClick', 'label', 'rules']);
|
|
13081
|
-
labelOptions.disabled = disabled;
|
|
13082
|
-
var LabelComponent = typeof label === 'function' ? label : function () {
|
|
13083
|
-
return React__default.createElement(React__default.Fragment, {
|
|
13084
|
-
children: label
|
|
13085
|
-
});
|
|
13086
|
-
};
|
|
13115
|
+
var LabelComponent = option.labelComponent || props.label || EmptyLabel;
|
|
13087
13116
|
return React__default.createElement(React__default.Fragment, {
|
|
13088
13117
|
key: index
|
|
13089
13118
|
}, React__default.createElement(OptionContent, null, React__default.createElement(Option, {
|
|
13090
13119
|
onClick: onClick,
|
|
13091
|
-
disabled: disabled,
|
|
13092
|
-
border: option.border
|
|
13093
|
-
|
|
13120
|
+
"$disabled": disabled,
|
|
13121
|
+
"$border": option.border,
|
|
13122
|
+
"$highlighted": index === highlight
|
|
13123
|
+
}, React__default.createElement("div", null, React__default.createElement(LabelComponent, Object.assign({}, option, {
|
|
13124
|
+
disabled: disabled
|
|
13125
|
+
}))), caret ? React__default.createElement(Icon, {
|
|
13094
13126
|
type: 'semantic',
|
|
13095
13127
|
icon: 'caret right',
|
|
13096
13128
|
width: '14px'
|
|
@@ -13261,7 +13293,7 @@ var Indicator = function Indicator(props) {
|
|
|
13261
13293
|
}, props)));
|
|
13262
13294
|
};
|
|
13263
13295
|
|
|
13264
|
-
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$
|
|
13296
|
+
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$4;
|
|
13265
13297
|
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"])));
|
|
13266
13298
|
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) {
|
|
13267
13299
|
var theme = _ref.theme;
|
|
@@ -13325,7 +13357,7 @@ var DayContainer = styled__default.button(_templateObject4$8 || (_templateObject
|
|
|
13325
13357
|
});
|
|
13326
13358
|
var DayIndicator = styled__default(Indicator).attrs({
|
|
13327
13359
|
size: 'mini'
|
|
13328
|
-
})(_templateObject11$
|
|
13360
|
+
})(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: calc(", " - 1px);\n left: calc(50% - (", " / 2) + 1px);\n"])), sizes.mini, sizes.mini);
|
|
13329
13361
|
|
|
13330
13362
|
var getCalendar = function getCalendar(d) {
|
|
13331
13363
|
var date = new Date(d.getTime());
|
|
@@ -14603,15 +14635,99 @@ var Date$1 = React__default.forwardRef(function (props, ref) {
|
|
|
14603
14635
|
});
|
|
14604
14636
|
Date$1.displayName = 'Date';
|
|
14605
14637
|
|
|
14638
|
+
var _templateObject$l, _templateObject2$f, _templateObject3$d, _templateObject4$a;
|
|
14639
|
+
var RelativeContainer$2 = styled__default.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n position: relative;\n ", ";\n"])), function (_ref) {
|
|
14640
|
+
var width = _ref.width;
|
|
14641
|
+
return !width ? null : styled.css(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
|
|
14642
|
+
});
|
|
14643
|
+
var EmptyContentContainer = styled__default.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n"])), function (_ref2) {
|
|
14644
|
+
var theme = _ref2.theme;
|
|
14645
|
+
return theme.spacings.s3;
|
|
14646
|
+
});
|
|
14647
|
+
var HiddenInput = styled__default.input(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n width: 0;\n height: 0;\n border-width: 0;\n padding: 0;\n position: absolute;\n outline: none;\n"])));
|
|
14648
|
+
|
|
14649
|
+
var isAvailable = function isAvailable(index, option, rules) {
|
|
14650
|
+
return !option.disabled && !(rules || []).some(function (rule) {
|
|
14651
|
+
return rule(index, option) !== true;
|
|
14652
|
+
});
|
|
14653
|
+
};
|
|
14654
|
+
|
|
14655
|
+
var useNavigation = function useNavigation(props) {
|
|
14656
|
+
var _props$highlight = props.highlight,
|
|
14657
|
+
highlight = _props$highlight[0],
|
|
14658
|
+
setHighlight = _props$highlight[1],
|
|
14659
|
+
options = props.options,
|
|
14660
|
+
onSelectHighlight = props.onSelectHighlight,
|
|
14661
|
+
rules = props.rules;
|
|
14662
|
+
var onKeyDown = React.useCallback(function (e) {
|
|
14663
|
+
if (e.key === 'ArrowDown') {
|
|
14664
|
+
e.preventDefault();
|
|
14665
|
+
|
|
14666
|
+
var getNext = function getNext(index, current) {
|
|
14667
|
+
var option = options[index];
|
|
14668
|
+
if (!option) return current;
|
|
14669
|
+
|
|
14670
|
+
if (isAvailable(index, option, rules)) {
|
|
14671
|
+
return index;
|
|
14672
|
+
}
|
|
14673
|
+
|
|
14674
|
+
return getNext(index + 1, current);
|
|
14675
|
+
};
|
|
14676
|
+
|
|
14677
|
+
setHighlight(function (prev) {
|
|
14678
|
+
return getNext(prev + 1, prev);
|
|
14679
|
+
});
|
|
14680
|
+
} else if (e.key === 'ArrowUp') {
|
|
14681
|
+
e.preventDefault();
|
|
14682
|
+
|
|
14683
|
+
var getPrev = function getPrev(index, current) {
|
|
14684
|
+
var option = options[index];
|
|
14685
|
+
if (!option) return current;
|
|
14686
|
+
|
|
14687
|
+
if (isAvailable(index, option, rules)) {
|
|
14688
|
+
return index;
|
|
14689
|
+
}
|
|
14690
|
+
|
|
14691
|
+
return getPrev(index - 1, current);
|
|
14692
|
+
};
|
|
14693
|
+
|
|
14694
|
+
setHighlight(function (prev) {
|
|
14695
|
+
return getPrev(prev - 1, prev);
|
|
14696
|
+
});
|
|
14697
|
+
} else if (e.key === 'Enter') {
|
|
14698
|
+
e.preventDefault();
|
|
14699
|
+
var option = options[highlight];
|
|
14700
|
+
|
|
14701
|
+
if (option) {
|
|
14702
|
+
onSelectHighlight(highlight, option);
|
|
14703
|
+
}
|
|
14704
|
+
}
|
|
14705
|
+
}, [highlight, options, rules]);
|
|
14706
|
+
|
|
14707
|
+
var onFocus = function onFocus() {
|
|
14708
|
+
setHighlight(0);
|
|
14709
|
+
};
|
|
14710
|
+
|
|
14711
|
+
var onBlur = function onBlur() {
|
|
14712
|
+
setHighlight(-1);
|
|
14713
|
+
};
|
|
14714
|
+
|
|
14715
|
+
return {
|
|
14716
|
+
onKeyDown: onKeyDown,
|
|
14717
|
+
onFocus: onFocus,
|
|
14718
|
+
onBlur: onBlur
|
|
14719
|
+
};
|
|
14720
|
+
};
|
|
14721
|
+
|
|
14606
14722
|
var Provider$1 = React__default.createContext({});
|
|
14607
14723
|
var useContext$1 = function useContext() {
|
|
14608
14724
|
return React__default.useContext(Provider$1);
|
|
14609
14725
|
};
|
|
14610
14726
|
|
|
14611
|
-
var _templateObject$
|
|
14612
|
-
var HeaderContainer = styled__default.div(_templateObject$
|
|
14727
|
+
var _templateObject$m, _templateObject2$g;
|
|
14728
|
+
var HeaderContainer = styled__default.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
|
|
14613
14729
|
var theme = _ref.theme;
|
|
14614
|
-
return styled.css(_templateObject2$
|
|
14730
|
+
return styled.css(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n padding: ", " 0 ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
|
|
14615
14731
|
});
|
|
14616
14732
|
|
|
14617
14733
|
var Header$1 = function Header() {
|
|
@@ -14621,66 +14737,40 @@ var Header$1 = function Header() {
|
|
|
14621
14737
|
return React__default.createElement(React__default.Fragment, null);
|
|
14622
14738
|
}
|
|
14623
14739
|
|
|
14624
|
-
var _context$
|
|
14625
|
-
search = _context$search[0],
|
|
14626
|
-
_context$searchInput = context.searchInput,
|
|
14740
|
+
var _context$searchInput = context.searchInput,
|
|
14627
14741
|
searchInput = _context$searchInput[0],
|
|
14628
|
-
setSearchInput = _context$searchInput[1]
|
|
14629
|
-
onClearSearch = context.onClearSearch,
|
|
14630
|
-
onSearch = context.onSearch,
|
|
14631
|
-
loading = context.loading;
|
|
14742
|
+
setSearchInput = _context$searchInput[1];
|
|
14632
14743
|
return React__default.createElement(HeaderContainer, null, React__default.createElement(Input$1, {
|
|
14633
14744
|
type: 'search',
|
|
14634
14745
|
placeholder: 'Pesquisa',
|
|
14635
14746
|
setValue: setSearchInput,
|
|
14636
14747
|
value: searchInput,
|
|
14637
|
-
onPressEnter: onSearch,
|
|
14638
|
-
clearable: searchInput !== '' && searchInput === search ? onClearSearch : undefined,
|
|
14639
14748
|
icon: {
|
|
14640
14749
|
icon: {
|
|
14641
14750
|
type: 'feather',
|
|
14642
|
-
icon: 'search'
|
|
14643
|
-
onClick: onSearch
|
|
14751
|
+
icon: 'search'
|
|
14644
14752
|
}
|
|
14645
|
-
}
|
|
14646
|
-
loading: loading
|
|
14753
|
+
}
|
|
14647
14754
|
}));
|
|
14648
14755
|
};
|
|
14649
14756
|
|
|
14650
|
-
var getOptions = function getOptions(
|
|
14757
|
+
var getOptions = function getOptions(options, selected) {
|
|
14651
14758
|
return options.map(function (option) {
|
|
14652
|
-
var value = option.value,
|
|
14653
|
-
onClick = option.onClick,
|
|
14654
|
-
rules = option.rules,
|
|
14655
|
-
disabled = option.disabled;
|
|
14656
14759
|
var isSelected = option.value === (selected === null || selected === void 0 ? void 0 : selected.value);
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
-
|
|
14660
|
-
|
|
14661
|
-
});
|
|
14662
|
-
|
|
14663
|
-
var LabelComponent = option.label;
|
|
14760
|
+
var data = {
|
|
14761
|
+
data: option.data,
|
|
14762
|
+
value: option.value
|
|
14763
|
+
};
|
|
14664
14764
|
var parsed = {
|
|
14665
|
-
label: typeof LabelComponent !== 'function' ? LabelComponent : function (_ref) {
|
|
14666
|
-
var disabled = _ref.disabled;
|
|
14667
|
-
return React__default.createElement(LabelComponent, Object.assign({}, {
|
|
14668
|
-
value: value,
|
|
14669
|
-
data: data,
|
|
14670
|
-
disabled: disabled
|
|
14671
|
-
}));
|
|
14672
|
-
},
|
|
14673
|
-
onClick: onClick || function () {
|
|
14674
|
-
setValue(isSelected ? '' : value, option.data);
|
|
14675
|
-
},
|
|
14676
|
-
disabled: disabled,
|
|
14677
|
-
rules: rules,
|
|
14678
14765
|
border: {
|
|
14679
14766
|
left: {
|
|
14680
14767
|
color: isSelected ? 'blue' : 'transparent'
|
|
14681
14768
|
}
|
|
14682
14769
|
},
|
|
14683
|
-
data: data
|
|
14770
|
+
data: data,
|
|
14771
|
+
label: option.label,
|
|
14772
|
+
disabled: option.disabled,
|
|
14773
|
+
keepOpen: true
|
|
14684
14774
|
};
|
|
14685
14775
|
return parsed;
|
|
14686
14776
|
});
|
|
@@ -14696,17 +14786,17 @@ var getSelected = function getSelected(value, options) {
|
|
|
14696
14786
|
};
|
|
14697
14787
|
|
|
14698
14788
|
var getInputContent = function getInputContent(props, selectedOption) {
|
|
14699
|
-
if (
|
|
14700
|
-
var LabelComponent =
|
|
14701
|
-
return React__default.createElement(LabelComponent, {
|
|
14702
|
-
data: _extends({}, selectedOption.data),
|
|
14703
|
-
value: selectedOption.value,
|
|
14789
|
+
if (!props.optionLabel) return selectedOption.label;
|
|
14790
|
+
var LabelComponent = props.optionLabel;
|
|
14791
|
+
return React__default.createElement(LabelComponent, Object.assign({}, selectedOption, {
|
|
14704
14792
|
disabled: props.disabled || props.loading,
|
|
14705
14793
|
mode: 'placeholder'
|
|
14706
|
-
});
|
|
14794
|
+
}));
|
|
14707
14795
|
};
|
|
14708
14796
|
|
|
14709
|
-
var useSelect = function useSelect(props, _ref2) {
|
|
14797
|
+
var useSelect = function useSelect(props, _ref, _ref2, setOpen) {
|
|
14798
|
+
var highlight = _ref[0],
|
|
14799
|
+
setHighlight = _ref[1];
|
|
14710
14800
|
var options = _ref2[0],
|
|
14711
14801
|
setOptions = _ref2[1];
|
|
14712
14802
|
|
|
@@ -14714,11 +14804,22 @@ var useSelect = function useSelect(props, _ref2) {
|
|
|
14714
14804
|
selectedOption = _ref3[0],
|
|
14715
14805
|
value = _ref3[1];
|
|
14716
14806
|
|
|
14717
|
-
var parsedOptions = getOptions(
|
|
14807
|
+
var parsedOptions = getOptions(options, selectedOption);
|
|
14718
14808
|
|
|
14719
14809
|
var onReset = function onReset() {};
|
|
14720
14810
|
|
|
14721
14811
|
var inputContent = selectedOption ? getInputContent(props, selectedOption) : props.value;
|
|
14812
|
+
|
|
14813
|
+
var onSelect = function onSelect(index, option) {
|
|
14814
|
+
if (!isAvailable(index, option, props.rules)) {
|
|
14815
|
+
return;
|
|
14816
|
+
}
|
|
14817
|
+
|
|
14818
|
+
var isSelected = option.value === (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value);
|
|
14819
|
+
props.setValue(isSelected ? '' : option.value, option.data);
|
|
14820
|
+
setOpen(false);
|
|
14821
|
+
};
|
|
14822
|
+
|
|
14722
14823
|
var parsed = {
|
|
14723
14824
|
parsedOptions: parsedOptions,
|
|
14724
14825
|
options: [options, setOptions],
|
|
@@ -14726,8 +14827,16 @@ var useSelect = function useSelect(props, _ref2) {
|
|
|
14726
14827
|
onReset: onReset,
|
|
14727
14828
|
menu: {
|
|
14728
14829
|
itemSpacing: 's3',
|
|
14729
|
-
before: React__default.createElement(Header$1, null),
|
|
14730
|
-
|
|
14830
|
+
before: React__default.createElement(React__default.Fragment, null, React__default.createElement(Header$1, null), React__default.createElement(HiddenInput, Object.assign({}, useNavigation({
|
|
14831
|
+
highlight: [highlight, setHighlight],
|
|
14832
|
+
options: options,
|
|
14833
|
+
onSelectHighlight: onSelect,
|
|
14834
|
+
rules: props.rules
|
|
14835
|
+
})))),
|
|
14836
|
+
maxHeight: props.maxHeight || props.search ? '238px' : '180px',
|
|
14837
|
+
onClickOption: function onClickOption(index, option) {
|
|
14838
|
+
onSelect(index, option);
|
|
14839
|
+
}
|
|
14731
14840
|
},
|
|
14732
14841
|
getContext: function getContext(base, children) {
|
|
14733
14842
|
return React__default.createElement(Provider$1.Provider, {
|
|
@@ -14794,13 +14903,13 @@ var Footer$1 = function Footer() {
|
|
|
14794
14903
|
});
|
|
14795
14904
|
};
|
|
14796
14905
|
|
|
14797
|
-
var _templateObject$
|
|
14798
|
-
var Link = styled__default.div(_templateObject$
|
|
14906
|
+
var _templateObject$n, _templateObject2$h, _templateObject3$e, _templateObject4$b;
|
|
14907
|
+
var Link = styled__default.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n ", "\n\n color: ", ";\n\n ", "\n"])), function (_ref) {
|
|
14799
14908
|
var size = _ref.size;
|
|
14800
14909
|
var _sizes = sizes$1[size || 'small'],
|
|
14801
14910
|
fontSize = _sizes.fontSize,
|
|
14802
14911
|
lineHeight = _sizes.lineHeight;
|
|
14803
|
-
return styled.css(_templateObject2$
|
|
14912
|
+
return styled.css(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n "])), fontSize, lineHeight);
|
|
14804
14913
|
}, function (_ref2) {
|
|
14805
14914
|
var colorSetting = _ref2.colorSetting,
|
|
14806
14915
|
theme = _ref2.theme;
|
|
@@ -14813,17 +14922,17 @@ var Link = styled__default.div(_templateObject$m || (_templateObject$m = _tagged
|
|
|
14813
14922
|
disabled = _ref3.disabled,
|
|
14814
14923
|
theme = _ref3.theme,
|
|
14815
14924
|
colorSetting = _ref3.colorSetting;
|
|
14816
|
-
return disabled ? styled.css(_templateObject3$
|
|
14925
|
+
return disabled ? styled.css(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "]))) : onClick ? styled.css(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n :hover {\n color: ", ";\n }\n "])), theme.colors[_extends({
|
|
14817
14926
|
hover: 'blue'
|
|
14818
14927
|
}, colorSetting && typeof colorSetting !== 'string' ? colorSetting : {}).hover]) : null;
|
|
14819
14928
|
});
|
|
14820
14929
|
|
|
14821
|
-
var _templateObject$
|
|
14822
|
-
var HeaderContainer$1 = styled__default.div(_templateObject$
|
|
14930
|
+
var _templateObject$o, _templateObject2$i, _templateObject3$f;
|
|
14931
|
+
var HeaderContainer$1 = styled__default.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
|
|
14823
14932
|
var theme = _ref.theme;
|
|
14824
|
-
return styled.css(_templateObject2$
|
|
14933
|
+
return styled.css(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n padding: ", " 0 ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
|
|
14825
14934
|
});
|
|
14826
|
-
var SelectAllContainer = styled__default.div(_templateObject3$
|
|
14935
|
+
var SelectAllContainer = styled__default.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n display: flex;\n justify-content: space-between;\n"])), function (_ref2) {
|
|
14827
14936
|
var theme = _ref2.theme;
|
|
14828
14937
|
return theme.spacings.s1;
|
|
14829
14938
|
});
|
|
@@ -14838,14 +14947,9 @@ var Header$2 = function Header() {
|
|
|
14838
14947
|
var _context$checked = context.checked,
|
|
14839
14948
|
checked = _context$checked[0],
|
|
14840
14949
|
setChecked = _context$checked[1],
|
|
14841
|
-
_context$search = context.search,
|
|
14842
|
-
search = _context$search[0],
|
|
14843
14950
|
_context$searchInput = context.searchInput,
|
|
14844
14951
|
searchInput = _context$searchInput[0],
|
|
14845
14952
|
setSearchInput = _context$searchInput[1],
|
|
14846
|
-
onSearch = context.onSearch,
|
|
14847
|
-
onClearSearch = context.onClearSearch,
|
|
14848
|
-
loading = context.loading,
|
|
14849
14953
|
options = context.options;
|
|
14850
14954
|
|
|
14851
14955
|
var onClick = function onClick() {
|
|
@@ -14867,16 +14971,12 @@ var Header$2 = function Header() {
|
|
|
14867
14971
|
placeholder: 'Pesquisa',
|
|
14868
14972
|
setValue: setSearchInput,
|
|
14869
14973
|
value: searchInput,
|
|
14870
|
-
onPressEnter: onSearch,
|
|
14871
|
-
clearable: searchInput !== '' && searchInput === search ? onClearSearch : undefined,
|
|
14872
14974
|
icon: {
|
|
14873
14975
|
icon: {
|
|
14874
14976
|
type: 'feather',
|
|
14875
|
-
icon: 'search'
|
|
14876
|
-
onClick: onSearch
|
|
14977
|
+
icon: 'search'
|
|
14877
14978
|
}
|
|
14878
|
-
}
|
|
14879
|
-
loading: loading
|
|
14979
|
+
}
|
|
14880
14980
|
}));
|
|
14881
14981
|
};
|
|
14882
14982
|
|
|
@@ -14894,7 +14994,7 @@ var Label$2 = function Label(props) {
|
|
|
14894
14994
|
checked: checked.findIndex(function (e) {
|
|
14895
14995
|
return e.value === value;
|
|
14896
14996
|
}) !== -1,
|
|
14897
|
-
label:
|
|
14997
|
+
label: LabelComponent ? React__default.createElement(LabelComponent, Object.assign({}, props.option)) : props.option.label,
|
|
14898
14998
|
disabled: disabled,
|
|
14899
14999
|
onChange: function onChange(event) {
|
|
14900
15000
|
var isChecked = event.target.checked;
|
|
@@ -14922,32 +15022,21 @@ var Label$2 = function Label(props) {
|
|
|
14922
15022
|
right: 's3',
|
|
14923
15023
|
bottom: 's3'
|
|
14924
15024
|
},
|
|
14925
|
-
width: '100%'
|
|
15025
|
+
width: '100%',
|
|
15026
|
+
tabIndex: -1
|
|
14926
15027
|
});
|
|
14927
15028
|
};
|
|
14928
15029
|
|
|
14929
|
-
var getOptions$1 = function getOptions(options
|
|
15030
|
+
var getOptions$1 = function getOptions(options) {
|
|
14930
15031
|
return options.map(function (option) {
|
|
14931
|
-
var _label = option.label,
|
|
14932
|
-
onClick = option.onClick;
|
|
14933
15032
|
var data = {
|
|
14934
15033
|
data: option.data,
|
|
14935
15034
|
value: option.value
|
|
14936
15035
|
};
|
|
14937
15036
|
var parsed = {
|
|
14938
|
-
label: function label(option) {
|
|
14939
|
-
return React__default.createElement(Label$2, {
|
|
14940
|
-
option: _extends({}, data, {
|
|
14941
|
-
disabled: option.disabled
|
|
14942
|
-
}),
|
|
14943
|
-
label: _label,
|
|
14944
|
-
value: value
|
|
14945
|
-
});
|
|
14946
|
-
},
|
|
14947
|
-
onClick: onClick,
|
|
14948
15037
|
data: data,
|
|
15038
|
+
label: option.label,
|
|
14949
15039
|
disabled: option.disabled,
|
|
14950
|
-
rules: option.rules,
|
|
14951
15040
|
keepOpen: true
|
|
14952
15041
|
};
|
|
14953
15042
|
return parsed;
|
|
@@ -14969,22 +15058,47 @@ var parseValue = function parseValue(value) {
|
|
|
14969
15058
|
return parsed;
|
|
14970
15059
|
};
|
|
14971
15060
|
|
|
14972
|
-
var useSelectMultiple = function useSelectMultiple(props, _ref) {
|
|
14973
|
-
var
|
|
14974
|
-
|
|
15061
|
+
var useSelectMultiple = function useSelectMultiple(props, _ref, _ref2) {
|
|
15062
|
+
var highlight = _ref[0],
|
|
15063
|
+
setHighlight = _ref[1];
|
|
15064
|
+
var options = _ref2[0],
|
|
15065
|
+
setOptions = _ref2[1];
|
|
14975
15066
|
var initial = parseValue(props.value);
|
|
14976
15067
|
|
|
14977
15068
|
var _useState = React.useState([].concat(initial)),
|
|
14978
15069
|
checked = _useState[0],
|
|
14979
15070
|
setChecked = _useState[1];
|
|
14980
15071
|
|
|
14981
|
-
var parsedOptions = getOptions$1(options
|
|
15072
|
+
var parsedOptions = getOptions$1(options);
|
|
14982
15073
|
var inputContent = getInputContent$1(props.value);
|
|
14983
15074
|
|
|
14984
15075
|
var onReset = function onReset() {
|
|
14985
15076
|
setChecked([].concat(initial));
|
|
14986
15077
|
};
|
|
14987
15078
|
|
|
15079
|
+
var onSelectHighlight = function onSelectHighlight(index, option) {
|
|
15080
|
+
if (!isAvailable(index, option, props.rules)) {
|
|
15081
|
+
return;
|
|
15082
|
+
}
|
|
15083
|
+
|
|
15084
|
+
setChecked(function (prev) {
|
|
15085
|
+
var index = prev.findIndex(function (e) {
|
|
15086
|
+
return e.value === option.value;
|
|
15087
|
+
});
|
|
15088
|
+
|
|
15089
|
+
if (index < 0) {
|
|
15090
|
+
return [].concat(prev, [{
|
|
15091
|
+
data: option.data,
|
|
15092
|
+
value: option.value
|
|
15093
|
+
}]);
|
|
15094
|
+
}
|
|
15095
|
+
|
|
15096
|
+
var news = [].concat(prev);
|
|
15097
|
+
news.splice(index, 1);
|
|
15098
|
+
return news;
|
|
15099
|
+
});
|
|
15100
|
+
};
|
|
15101
|
+
|
|
14988
15102
|
var returnData = {
|
|
14989
15103
|
parsedOptions: parsedOptions,
|
|
14990
15104
|
options: [options, setOptions],
|
|
@@ -14992,12 +15106,27 @@ var useSelectMultiple = function useSelectMultiple(props, _ref) {
|
|
|
14992
15106
|
onReset: onReset,
|
|
14993
15107
|
menu: {
|
|
14994
15108
|
itemSpacing: undefined,
|
|
14995
|
-
before: React__default.createElement(Header$2, null),
|
|
15109
|
+
before: React__default.createElement(React__default.Fragment, null, React__default.createElement(Header$2, null), React__default.createElement(HiddenInput, Object.assign({}, useNavigation({
|
|
15110
|
+
highlight: [highlight, setHighlight],
|
|
15111
|
+
options: options,
|
|
15112
|
+
onSelectHighlight: onSelectHighlight,
|
|
15113
|
+
rules: props.rules
|
|
15114
|
+
})))),
|
|
14996
15115
|
after: {
|
|
14997
15116
|
fluid: true,
|
|
14998
15117
|
children: React__default.createElement(Footer$1, null)
|
|
14999
15118
|
},
|
|
15000
|
-
maxHeight: props.maxHeight || (props.selectAll ? '269px' : '224px')
|
|
15119
|
+
maxHeight: props.maxHeight || (props.selectAll ? '269px' : '224px'),
|
|
15120
|
+
label: function label(option) {
|
|
15121
|
+
return React__default.createElement(Label$2, {
|
|
15122
|
+
option: _extends({}, option, {
|
|
15123
|
+
value: option.data.value,
|
|
15124
|
+
data: option.data.data
|
|
15125
|
+
}),
|
|
15126
|
+
label: props.optionLabel,
|
|
15127
|
+
value: initial
|
|
15128
|
+
});
|
|
15129
|
+
}
|
|
15001
15130
|
},
|
|
15002
15131
|
getContext: function getContext(base, children) {
|
|
15003
15132
|
return React__default.createElement(Provider$2.Provider, {
|
|
@@ -15040,16 +15169,6 @@ var useSelectMultiple = function useSelectMultiple(props, _ref) {
|
|
|
15040
15169
|
return returnData;
|
|
15041
15170
|
};
|
|
15042
15171
|
|
|
15043
|
-
var _templateObject$o, _templateObject2$i, _templateObject3$f;
|
|
15044
|
-
var RelativeContainer$2 = styled__default.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n position: relative;\n ", ";\n"])), function (_ref) {
|
|
15045
|
-
var width = _ref.width;
|
|
15046
|
-
return !width ? null : styled.css(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
|
|
15047
|
-
});
|
|
15048
|
-
var EmptyContentContainer = styled__default.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n"])), function (_ref2) {
|
|
15049
|
-
var theme = _ref2.theme;
|
|
15050
|
-
return theme.spacings.s3;
|
|
15051
|
-
});
|
|
15052
|
-
|
|
15053
15172
|
var Select = React__default.forwardRef(function (props, ref) {
|
|
15054
15173
|
var position = props.position,
|
|
15055
15174
|
loader = props.loader,
|
|
@@ -15059,38 +15178,44 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15059
15178
|
options = _useState[0],
|
|
15060
15179
|
setOptions = _useState[1];
|
|
15061
15180
|
|
|
15062
|
-
var
|
|
15063
|
-
|
|
15064
|
-
|
|
15065
|
-
onReset = _ref.onReset,
|
|
15066
|
-
menuProps = _ref.menu,
|
|
15067
|
-
getContext = _ref.getContext,
|
|
15068
|
-
onClear = _ref.onClear,
|
|
15069
|
-
dirty = _ref.dirty;
|
|
15070
|
-
|
|
15071
|
-
var _useState2 = React.useState(true),
|
|
15072
|
-
_loading = _useState2[0],
|
|
15073
|
-
setLoading = _useState2[1];
|
|
15181
|
+
var _useState2 = React.useState(-1),
|
|
15182
|
+
highlight = _useState2[0],
|
|
15183
|
+
setHighlight = _useState2[1];
|
|
15074
15184
|
|
|
15075
|
-
var _useState3 = React.useState(
|
|
15076
|
-
|
|
15077
|
-
|
|
15185
|
+
var _useState3 = React.useState(false),
|
|
15186
|
+
open = _useState3[0],
|
|
15187
|
+
setOpen = _useState3[1];
|
|
15188
|
+
|
|
15189
|
+
var hook = props.type === 'select-multiple' ? useSelectMultiple : useSelect;
|
|
15190
|
+
|
|
15191
|
+
var _hook = hook(props, [highlight, setHighlight], [options, setOptions], setOpen),
|
|
15192
|
+
parsedOptions = _hook.parsedOptions,
|
|
15193
|
+
inputContent = _hook.inputContent,
|
|
15194
|
+
onReset = _hook.onReset,
|
|
15195
|
+
menuProps = _hook.menu,
|
|
15196
|
+
getContext = _hook.getContext,
|
|
15197
|
+
onClear = _hook.onClear,
|
|
15198
|
+
dirty = _hook.dirty;
|
|
15078
15199
|
|
|
15079
|
-
var _useState4 = React.useState(
|
|
15080
|
-
|
|
15081
|
-
|
|
15200
|
+
var _useState4 = React.useState(true),
|
|
15201
|
+
_loading = _useState4[0],
|
|
15202
|
+
setLoading = _useState4[1];
|
|
15082
15203
|
|
|
15083
|
-
var _useState5 = React.useState(
|
|
15084
|
-
|
|
15085
|
-
|
|
15204
|
+
var _useState5 = React.useState(''),
|
|
15205
|
+
search = _useState5[0],
|
|
15206
|
+
_setSearch = _useState5[1];
|
|
15086
15207
|
|
|
15087
|
-
var _useState6 = React.useState(
|
|
15088
|
-
|
|
15089
|
-
|
|
15208
|
+
var _useState6 = React.useState(''),
|
|
15209
|
+
searchInput = _useState6[0],
|
|
15210
|
+
setSearchInput = _useState6[1];
|
|
15090
15211
|
|
|
15091
|
-
var _useState7 = React.useState(
|
|
15092
|
-
|
|
15093
|
-
|
|
15212
|
+
var _useState7 = React.useState(1),
|
|
15213
|
+
page = _useState7[0],
|
|
15214
|
+
setPage = _useState7[1];
|
|
15215
|
+
|
|
15216
|
+
var _useState8 = React.useState(false),
|
|
15217
|
+
lastPage = _useState8[0],
|
|
15218
|
+
setLastPage = _useState8[1];
|
|
15094
15219
|
|
|
15095
15220
|
var loading = props.loading || _loading;
|
|
15096
15221
|
|
|
@@ -15100,18 +15225,18 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15100
15225
|
setPage(1);
|
|
15101
15226
|
};
|
|
15102
15227
|
|
|
15103
|
-
var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value', 'onClear', 'placeholder', 'initialLoader']);
|
|
15228
|
+
var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value', 'onClear', 'placeholder', 'initialLoader', 'onClickOption', 'rules', 'onScrollEnd', 'position', 'center', 'maxHeight', 'emptyContent', 'optionLabel']);
|
|
15104
15229
|
|
|
15105
15230
|
var _onScrollEnd = props.onScrollEnd || function () {};
|
|
15106
15231
|
|
|
15107
|
-
var onScrollEnd = function onScrollEnd() {
|
|
15232
|
+
var onScrollEnd = function onScrollEnd(e) {
|
|
15108
15233
|
if (!lastPage && !loading) {
|
|
15109
15234
|
setPage(function (prev) {
|
|
15110
15235
|
return prev + 1;
|
|
15111
15236
|
});
|
|
15112
15237
|
}
|
|
15113
15238
|
|
|
15114
|
-
_onScrollEnd();
|
|
15239
|
+
_onScrollEnd(e);
|
|
15115
15240
|
};
|
|
15116
15241
|
|
|
15117
15242
|
var onSubmit = React.useCallback(function () {
|
|
@@ -15120,9 +15245,9 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15120
15245
|
return Promise.resolve(loader(search, page)).then(function (optionsResult) {
|
|
15121
15246
|
if (optionsResult === null) return;
|
|
15122
15247
|
|
|
15123
|
-
var
|
|
15124
|
-
options =
|
|
15125
|
-
lastPage =
|
|
15248
|
+
var _ref = Array.isArray(optionsResult) ? [optionsResult, true] : [optionsResult.options, optionsResult.lastPage],
|
|
15249
|
+
options = _ref[0],
|
|
15250
|
+
lastPage = _ref[1];
|
|
15126
15251
|
|
|
15127
15252
|
var initial = initialLoader ? initialLoader() : [];
|
|
15128
15253
|
var filtered = initialLoader ? options.filter(function (x) {
|
|
@@ -15161,15 +15286,17 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15161
15286
|
React.useEffect(function () {
|
|
15162
15287
|
setSearchInput(search);
|
|
15163
15288
|
}, [search]);
|
|
15164
|
-
|
|
15165
|
-
|
|
15166
|
-
|
|
15167
|
-
|
|
15168
|
-
|
|
15169
|
-
|
|
15170
|
-
|
|
15171
|
-
|
|
15172
|
-
|
|
15289
|
+
React.useEffect(function () {
|
|
15290
|
+
if (page === 1) setHighlight(-1);
|
|
15291
|
+
}, [page]);
|
|
15292
|
+
React.useEffect(function () {
|
|
15293
|
+
var timeoutId = setTimeout(function () {
|
|
15294
|
+
return setSearch(searchInput);
|
|
15295
|
+
}, 1000);
|
|
15296
|
+
return function () {
|
|
15297
|
+
return clearTimeout(timeoutId);
|
|
15298
|
+
};
|
|
15299
|
+
}, [searchInput]);
|
|
15173
15300
|
|
|
15174
15301
|
var onClick = function onClick() {
|
|
15175
15302
|
setOpen(function (prev) {
|
|
@@ -15180,11 +15307,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15180
15307
|
var isEmpty = (typeof props.value === 'string' || Array.isArray(props.value)) && props.value.length === 0;
|
|
15181
15308
|
return getContext({
|
|
15182
15309
|
setOpen: setOpen,
|
|
15183
|
-
|
|
15184
|
-
searchInput: [searchInput, setSearchInput],
|
|
15185
|
-
onSearch: onSearch,
|
|
15186
|
-
onClearSearch: onClearSearch,
|
|
15187
|
-
loading: loading
|
|
15310
|
+
searchInput: [searchInput, setSearchInput]
|
|
15188
15311
|
}, React__default.createElement(RelativeContainer$2, {
|
|
15189
15312
|
ref: useOnClickOut(function () {
|
|
15190
15313
|
return setOpen(false);
|
|
@@ -15195,6 +15318,17 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15195
15318
|
htmlReadOnly: true,
|
|
15196
15319
|
onClick: onClick,
|
|
15197
15320
|
loading: loading,
|
|
15321
|
+
onKeyDown: function onKeyDown(e) {
|
|
15322
|
+
if (e.key === ' ') {
|
|
15323
|
+
setOpen(function (prev) {
|
|
15324
|
+
return !prev;
|
|
15325
|
+
});
|
|
15326
|
+
} else if (['ArrowDown', 'ArrowUp'].includes(e.key)) {
|
|
15327
|
+
setOpen(true);
|
|
15328
|
+
}
|
|
15329
|
+
|
|
15330
|
+
if (props.onKeyDown) props.onKeyDown(e);
|
|
15331
|
+
},
|
|
15198
15332
|
dirty: dirty,
|
|
15199
15333
|
icon: {
|
|
15200
15334
|
icon: {
|
|
@@ -15211,14 +15345,21 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15211
15345
|
} : {
|
|
15212
15346
|
clearable: onClear
|
|
15213
15347
|
}, {
|
|
15214
|
-
children:
|
|
15348
|
+
children: inputContent
|
|
15215
15349
|
})), React__default.createElement(Menu, Object.assign({}, menuProps, {
|
|
15350
|
+
rules: (props.rules || []).map(function (rule) {
|
|
15351
|
+
return function (index, data) {
|
|
15352
|
+
return rule(index, data.data);
|
|
15353
|
+
};
|
|
15354
|
+
}),
|
|
15355
|
+
highlight: highlight,
|
|
15216
15356
|
open: open,
|
|
15217
15357
|
close: function close() {
|
|
15218
15358
|
return setOpen(false);
|
|
15219
15359
|
},
|
|
15220
15360
|
options: parsedOptions,
|
|
15221
15361
|
onScrollEnd: onScrollEnd,
|
|
15362
|
+
scrollTabIndex: -1,
|
|
15222
15363
|
width: props.inputWidth || '100%',
|
|
15223
15364
|
bordered: true,
|
|
15224
15365
|
position: position,
|
|
@@ -15558,15 +15699,7 @@ var Component = React__default.forwardRef(function (props, ref) {
|
|
|
15558
15699
|
|
|
15559
15700
|
var options = Object.keys(countries).map(function (iso) {
|
|
15560
15701
|
return {
|
|
15561
|
-
label:
|
|
15562
|
-
var country = option.data;
|
|
15563
|
-
return React__default.createElement(Label$3, null, React__default.createElement(Flag, {
|
|
15564
|
-
iso: iso
|
|
15565
|
-
}), country.name, React__default.createElement("span", null, "+", country.ddi));
|
|
15566
|
-
},
|
|
15567
|
-
onClick: function onClick() {
|
|
15568
|
-
setCountry(countries[iso]);
|
|
15569
|
-
},
|
|
15702
|
+
label: country.name,
|
|
15570
15703
|
data: countries[iso]
|
|
15571
15704
|
};
|
|
15572
15705
|
});
|
|
@@ -15632,6 +15765,16 @@ var Component = React__default.forwardRef(function (props, ref) {
|
|
|
15632
15765
|
return setOpen(false);
|
|
15633
15766
|
},
|
|
15634
15767
|
options: options,
|
|
15768
|
+
onClickOption: function onClickOption(_index, _ref) {
|
|
15769
|
+
var iso = _ref.iso;
|
|
15770
|
+
return setCountry(countries[iso]);
|
|
15771
|
+
},
|
|
15772
|
+
label: function label(option) {
|
|
15773
|
+
var country = option.data;
|
|
15774
|
+
return React__default.createElement(Label$3, null, React__default.createElement(Flag, {
|
|
15775
|
+
iso: country.iso
|
|
15776
|
+
}), country.name, React__default.createElement("span", null, "+", country.ddi));
|
|
15777
|
+
},
|
|
15635
15778
|
width: '100%',
|
|
15636
15779
|
maxHeight: '165px',
|
|
15637
15780
|
bordered: true,
|
|
@@ -15651,7 +15794,7 @@ var Phone = Object.assign(Component, {
|
|
|
15651
15794
|
getPhoneDetails: getPhoneDetails
|
|
15652
15795
|
});
|
|
15653
15796
|
|
|
15654
|
-
var _templateObject$r, _templateObject2$l, _templateObject3$h, _templateObject4$
|
|
15797
|
+
var _templateObject$r, _templateObject2$l, _templateObject3$h, _templateObject4$c, _templateObject5$9, _templateObject6$8, _templateObject7$8, _templateObject8$7, _templateObject9$7;
|
|
15655
15798
|
var RelativeContainer$4 = styled__default.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n position: relative;\n\n input {\n color: transparent;\n }\n"])));
|
|
15656
15799
|
var LabelContainer$2 = styled__default.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: ", ";\n"])), function (_ref) {
|
|
15657
15800
|
var theme = _ref.theme;
|
|
@@ -15667,7 +15810,7 @@ var Container$5 = styled__default.div(_templateObject3$h || (_templateObject3$h
|
|
|
15667
15810
|
var borderwidth = 1;
|
|
15668
15811
|
|
|
15669
15812
|
if (paddingless) {
|
|
15670
|
-
return styled.css(_templateObject4$
|
|
15813
|
+
return styled.css(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n bottom: ", "px;\n left: ", "px;\n width: calc(100% - ", "px - ", ");\n height: calc(17px + ", "px);\n "])), borderwidth, borderwidth, borderwidth * 2, iconWidth, borderwidth * 2);
|
|
15671
15814
|
}
|
|
15672
15815
|
|
|
15673
15816
|
return styled.css(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n bottom: ", "px;\n left: ", "px;\n width: calc(\n 100% - ", "px - ", " - ", "\n );\n height: calc(31px + ", "px);\n padding: ", " 0 ", " ", ";\n "])), borderwidth, borderwidth, borderwidth * 2, iconWidth, theme.spacings.s3, borderwidth * 2, theme.spacings.s2, theme.spacings.s2, theme.spacings.s3);
|
|
@@ -15801,7 +15944,7 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
|
|
|
15801
15944
|
});
|
|
15802
15945
|
DatePicker.displayName = 'DatePicker';
|
|
15803
15946
|
|
|
15804
|
-
var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$
|
|
15947
|
+
var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$d, _templateObject5$a, _templateObject6$9, _templateObject7$9, _templateObject8$8;
|
|
15805
15948
|
var LabelContainer$3 = styled__default.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n display: flex;\n align-items: center;\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
15806
15949
|
var theme = _ref.theme;
|
|
15807
15950
|
return theme.useTypography('p');
|
|
@@ -15816,7 +15959,7 @@ var LabelContainer$3 = styled__default.div(_templateObject$s || (_templateObject
|
|
|
15816
15959
|
if (!keepSpace || children) return;
|
|
15817
15960
|
return styled.css(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n :before {\n content: '';\n white-space: pre;\n }\n "])));
|
|
15818
15961
|
});
|
|
15819
|
-
var Label$4 = styled__default.label(_templateObject4$
|
|
15962
|
+
var Label$4 = styled__default.label(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n position: relative;\n align-items: center;\n\n ", "\n\n ", "\n\n > input {\n position: absolute;\n height: 0%;\n width: 0%;\n opacity: 0;\n }\n\n > span {\n position: relative;\n width: 50px;\n height: calc(", " + 1px);\n background-color: ", ";\n border-radius: 20px;\n transition-property: background-color;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n box-sizing: content-box;\n :before {\n content: '';\n transition-property: left;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n position: absolute;\n border-width: 1px;\n border-style: solid;\n border-radius: 100%;\n left: 0;\n box-shadow: 0px 1px 3px ", ";\n width: calc(", " - 1px);\n height: calc(", " - 1px);\n background-color: ", ";\n }\n }\n\n > input:checked + span {\n :before {\n left: calc(100% - ", " - 1px);\n }\n }\n"])), function (_ref4) {
|
|
15820
15963
|
var theme = _ref4.theme;
|
|
15821
15964
|
return theme.spacings.s1;
|
|
15822
15965
|
}, function (_ref5) {
|
|
@@ -15975,7 +16118,7 @@ var NavBar = styled__default.div(_templateObject$x || (_templateObject$x = _tagg
|
|
|
15975
16118
|
return theme.colors.blue;
|
|
15976
16119
|
});
|
|
15977
16120
|
|
|
15978
|
-
var _templateObject$y, _templateObject2$q, _templateObject3$l, _templateObject4$
|
|
16121
|
+
var _templateObject$y, _templateObject2$q, _templateObject3$l, _templateObject4$e, _templateObject5$b;
|
|
15979
16122
|
var Label$5 = styled__default.label(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 17px;\n\n ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > ", " {\n ", "\n }\n\n :not(:hover) ", " {\n height: 0;\n }\n"])), function (_ref) {
|
|
15980
16123
|
var theme = _ref.theme;
|
|
15981
16124
|
return theme.useTypography('p');
|
|
@@ -15991,7 +16134,7 @@ var Label$5 = styled__default.label(_templateObject$y || (_templateObject$y = _t
|
|
|
15991
16134
|
}, function (_ref3) {
|
|
15992
16135
|
var disabled = _ref3.$disabled;
|
|
15993
16136
|
if (!disabled) return;
|
|
15994
|
-
return styled.css(_templateObject4$
|
|
16137
|
+
return styled.css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15995
16138
|
}, LabelContainer$4, function (_ref4) {
|
|
15996
16139
|
var required = _ref4.$required,
|
|
15997
16140
|
viewMode = _ref4.$viewMode;
|
|
@@ -16294,7 +16437,7 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
16294
16437
|
});
|
|
16295
16438
|
Range.displayName = 'input';
|
|
16296
16439
|
|
|
16297
|
-
var _templateObject$E, _templateObject2$t, _templateObject3$n, _templateObject4$
|
|
16440
|
+
var _templateObject$E, _templateObject2$t, _templateObject3$n, _templateObject4$f, _templateObject5$c, _templateObject6$a, _templateObject7$a;
|
|
16298
16441
|
var LabelContainer$5 = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
|
|
16299
16442
|
var theme = _ref.theme;
|
|
16300
16443
|
return theme.useTypography('p');
|
|
@@ -16309,7 +16452,7 @@ var Label$6 = styled__default.label(_templateObject2$t || (_templateObject2$t =
|
|
|
16309
16452
|
return styled.css(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
|
|
16310
16453
|
}
|
|
16311
16454
|
|
|
16312
|
-
return styled.css(_templateObject4$
|
|
16455
|
+
return styled.css(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
16313
16456
|
}, function (_ref4) {
|
|
16314
16457
|
var required = _ref4.required;
|
|
16315
16458
|
if (!required) return;
|
|
@@ -16543,7 +16686,7 @@ var parse = function parse(value) {
|
|
|
16543
16686
|
});
|
|
16544
16687
|
};
|
|
16545
16688
|
|
|
16546
|
-
var _templateObject$F, _templateObject2$u, _templateObject3$o, _templateObject4$
|
|
16689
|
+
var _templateObject$F, _templateObject2$u, _templateObject3$o, _templateObject4$g, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$8, _templateObject10$7, _templateObject11$5, _templateObject12$3;
|
|
16547
16690
|
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"])));
|
|
16548
16691
|
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) {
|
|
16549
16692
|
var theme = _ref.theme;
|
|
@@ -16558,7 +16701,7 @@ var LabelContainer$6 = styled__default.div(_templateObject2$u || (_templateObjec
|
|
|
16558
16701
|
}, function (_ref4) {
|
|
16559
16702
|
var onClick = _ref4.onClick;
|
|
16560
16703
|
if (!onClick) return;
|
|
16561
|
-
return styled.css(_templateObject4$
|
|
16704
|
+
return styled.css(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
16562
16705
|
});
|
|
16563
16706
|
var Container$6 = styled__default.div(_templateObject5$d || (_templateObject5$d = _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 (_ref5) {
|
|
16564
16707
|
var theme = _ref5.theme;
|
|
@@ -16593,7 +16736,7 @@ var Button$4 = styled__default.button(_templateObject9$8 || (_templateObject9$8
|
|
|
16593
16736
|
if (!onClick) return;
|
|
16594
16737
|
return styled.css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
16595
16738
|
});
|
|
16596
|
-
var LabelText$1 = styled__default.label(_templateObject11$
|
|
16739
|
+
var LabelText$1 = styled__default.label(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref12) {
|
|
16597
16740
|
var theme = _ref12.theme;
|
|
16598
16741
|
return theme.spacings.s1;
|
|
16599
16742
|
}, function (_ref13) {
|
|
@@ -16704,6 +16847,29 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16704
16847
|
ref: ref,
|
|
16705
16848
|
readOnly: true
|
|
16706
16849
|
}));
|
|
16850
|
+
var options = [{
|
|
16851
|
+
label: 'Hoje',
|
|
16852
|
+
data: {
|
|
16853
|
+
intervalType: 'day'
|
|
16854
|
+
}
|
|
16855
|
+
}, {
|
|
16856
|
+
label: 'Semana',
|
|
16857
|
+
data: {
|
|
16858
|
+
intervalType: 'week'
|
|
16859
|
+
}
|
|
16860
|
+
}, {
|
|
16861
|
+
label: 'Mês',
|
|
16862
|
+
data: {
|
|
16863
|
+
intervalType: 'month'
|
|
16864
|
+
}
|
|
16865
|
+
}, {
|
|
16866
|
+
label: 'Personalizado',
|
|
16867
|
+
data: {
|
|
16868
|
+
intervalType: 'custom'
|
|
16869
|
+
},
|
|
16870
|
+
keepOpen: true,
|
|
16871
|
+
caret: true
|
|
16872
|
+
}];
|
|
16707
16873
|
return React__default.createElement(RelativeContainer$5, {
|
|
16708
16874
|
ref: useOnClickOut(function () {
|
|
16709
16875
|
return setOpen(null);
|
|
@@ -16764,33 +16930,16 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16764
16930
|
references: {
|
|
16765
16931
|
bottom: '35px'
|
|
16766
16932
|
},
|
|
16767
|
-
options:
|
|
16768
|
-
|
|
16769
|
-
|
|
16770
|
-
|
|
16771
|
-
|
|
16772
|
-
|
|
16773
|
-
|
|
16774
|
-
|
|
16775
|
-
|
|
16776
|
-
|
|
16777
|
-
},
|
|
16778
|
-
data: {}
|
|
16779
|
-
}, {
|
|
16780
|
-
label: 'Mês',
|
|
16781
|
-
onClick: function onClick() {
|
|
16782
|
-
return setValue(intervalTypes.month.initial(props.min));
|
|
16783
|
-
},
|
|
16784
|
-
data: {}
|
|
16785
|
-
}, {
|
|
16786
|
-
label: 'Personalizado',
|
|
16787
|
-
onClick: function onClick() {
|
|
16788
|
-
return setOpen('calendar');
|
|
16789
|
-
},
|
|
16790
|
-
data: {},
|
|
16791
|
-
keepOpen: true,
|
|
16792
|
-
caret: true
|
|
16793
|
-
}],
|
|
16933
|
+
options: options,
|
|
16934
|
+
onClickOption: function onClickOption(_index, _ref2) {
|
|
16935
|
+
var intervalType = _ref2.intervalType;
|
|
16936
|
+
|
|
16937
|
+
if (intervalType === 'custom') {
|
|
16938
|
+
setOpen('calendar');
|
|
16939
|
+
} else {
|
|
16940
|
+
setValue(intervalTypes[intervalType].initial(props.min));
|
|
16941
|
+
}
|
|
16942
|
+
},
|
|
16794
16943
|
width: '165px',
|
|
16795
16944
|
itemSpacing: 's3',
|
|
16796
16945
|
bordered: true
|
|
@@ -16801,9 +16950,9 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16801
16950
|
open: open === 'calendar',
|
|
16802
16951
|
initialValue: value,
|
|
16803
16952
|
onSubmit: {
|
|
16804
|
-
onClick: function onClick(
|
|
16805
|
-
var start =
|
|
16806
|
-
end =
|
|
16953
|
+
onClick: function onClick(_ref3) {
|
|
16954
|
+
var start = _ref3[0],
|
|
16955
|
+
end = _ref3[1];
|
|
16807
16956
|
if (start === null || end === null) return;
|
|
16808
16957
|
setValue([start, end]);
|
|
16809
16958
|
setOpen(null);
|
|
@@ -17440,7 +17589,7 @@ var Input$5 = Object.assign(Component$2, {
|
|
|
17440
17589
|
getPhoneDetails: Phone.getPhoneDetails
|
|
17441
17590
|
});
|
|
17442
17591
|
|
|
17443
|
-
var _templateObject$L, _templateObject2$x, _templateObject3$q, _templateObject4$
|
|
17592
|
+
var _templateObject$L, _templateObject2$x, _templateObject3$q, _templateObject4$h;
|
|
17444
17593
|
var Container$7 = styled__default(AbsoluteContainer)(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n > div {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n\n > div {\n padding: ", ";\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n }\n"])), function (_ref) {
|
|
17445
17594
|
var theme = _ref.theme;
|
|
17446
17595
|
return theme.colors.white;
|
|
@@ -17464,7 +17613,7 @@ var Title = styled__default.div(_templateObject3$q || (_templateObject3$q = _tag
|
|
|
17464
17613
|
var getColor = _ref6.theme.getColor;
|
|
17465
17614
|
return getColor('greyishBlue', 50);
|
|
17466
17615
|
});
|
|
17467
|
-
var Item = styled__default.div(_templateObject4$
|
|
17616
|
+
var Item = styled__default.div(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n padding: ", ";\n display: flex;\n align-items: center;\n\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n\n > div:nth-child(1) {\n flex: 1;\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n > div:nth-child(2) {\n ", "\n }\n }\n > div:nth-child(2) {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n"])), function (_ref7) {
|
|
17468
17617
|
var s1 = _ref7.theme.spacings.s1;
|
|
17469
17618
|
return s1 + " " + s1 + " " + s1 + " 0";
|
|
17470
17619
|
}, function (_ref8) {
|
|
@@ -17645,13 +17794,13 @@ var AppliedFilters = Object.assign(function (props) {
|
|
|
17645
17794
|
Menu: AppliedFiltersMenu
|
|
17646
17795
|
});
|
|
17647
17796
|
|
|
17648
|
-
var _templateObject$N, _templateObject2$z, _templateObject3$s, _templateObject4$
|
|
17797
|
+
var _templateObject$N, _templateObject2$z, _templateObject3$s, _templateObject4$i, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$9, _templateObject10$8;
|
|
17649
17798
|
var Container$9 = styled__default.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: #fff;\n border: 1px solid #d4d4d5;\n border-radius: 4px;\n border-left-width: 5px;\n padding: 14px;\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n"])), function (props) {
|
|
17650
17799
|
return props.size === 'mini' && styled.css(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
|
|
17651
17800
|
}, function (props) {
|
|
17652
17801
|
return props.size === 'small' && styled.css(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 131px;\n "])));
|
|
17653
17802
|
}, function (props) {
|
|
17654
|
-
return props.size === 'medium' && styled.css(_templateObject4$
|
|
17803
|
+
return props.size === 'medium' && styled.css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
|
|
17655
17804
|
}, function (props) {
|
|
17656
17805
|
return props.size === 'big' && styled.css(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n width: 414px;\n height: 324px;\n "])));
|
|
17657
17806
|
}, function (props) {
|
|
@@ -17781,8 +17930,7 @@ var getInstance = function getInstance(props) {
|
|
|
17781
17930
|
var _getOptions = function _getOptions(value) {
|
|
17782
17931
|
try {
|
|
17783
17932
|
var options = intialOptions.filter(function (option) {
|
|
17784
|
-
|
|
17785
|
-
return strCmp(label, value, {
|
|
17933
|
+
return strCmp(option.label, value, {
|
|
17786
17934
|
contain: true
|
|
17787
17935
|
});
|
|
17788
17936
|
});
|
|
@@ -17947,9 +18095,8 @@ var Submenu = function Submenu(props) {
|
|
|
17947
18095
|
|
|
17948
18096
|
var optionsParser = function optionsParser(option) {
|
|
17949
18097
|
return {
|
|
17950
|
-
label:
|
|
17951
|
-
|
|
17952
|
-
data: {}
|
|
18098
|
+
label: option.label,
|
|
18099
|
+
data: option
|
|
17953
18100
|
};
|
|
17954
18101
|
};
|
|
17955
18102
|
|
|
@@ -17967,6 +18114,8 @@ var Submenu = function Submenu(props) {
|
|
|
17967
18114
|
close: close,
|
|
17968
18115
|
width: isDynamic ? '275px' : '160px',
|
|
17969
18116
|
height: '261px',
|
|
18117
|
+
onClickOption: onClickOption,
|
|
18118
|
+
label: props.optionLabel,
|
|
17970
18119
|
containerSpacing: {
|
|
17971
18120
|
top: 's3',
|
|
17972
18121
|
left: 's1',
|
|
@@ -18011,16 +18160,11 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
18011
18160
|
|
|
18012
18161
|
var items = props.items.map(function (item) {
|
|
18013
18162
|
return {
|
|
18014
|
-
label:
|
|
18163
|
+
label: item.label,
|
|
18015
18164
|
delimiter: item.delimiter,
|
|
18016
18165
|
keepOpen: true,
|
|
18017
18166
|
caret: true,
|
|
18018
|
-
|
|
18019
|
-
setActive(function (prev) {
|
|
18020
|
-
return prev === index ? -1 : index;
|
|
18021
|
-
});
|
|
18022
|
-
},
|
|
18023
|
-
data: {}
|
|
18167
|
+
data: item
|
|
18024
18168
|
};
|
|
18025
18169
|
});
|
|
18026
18170
|
var selected = active >= 0 && active < props.items.length ? props.items[active] : undefined;
|
|
@@ -18034,6 +18178,12 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
18034
18178
|
close: close,
|
|
18035
18179
|
width: '160px',
|
|
18036
18180
|
maxHeight: '261px',
|
|
18181
|
+
onClickOption: function onClickOption(index) {
|
|
18182
|
+
setActive(function (prev) {
|
|
18183
|
+
return prev === index ? -1 : index;
|
|
18184
|
+
});
|
|
18185
|
+
},
|
|
18186
|
+
label: props.filterLabel,
|
|
18037
18187
|
containerSpacing: {
|
|
18038
18188
|
top: 's1',
|
|
18039
18189
|
left: 's1',
|
|
@@ -18051,6 +18201,7 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
18051
18201
|
}
|
|
18052
18202
|
}, props.containerProps || {}), React__default.createElement(Submenu, {
|
|
18053
18203
|
item: selected,
|
|
18204
|
+
optionLabel: props.optionLabel && selected ? props.optionLabel[selected.name] : undefined,
|
|
18054
18205
|
close: function close() {
|
|
18055
18206
|
return setActive(-1);
|
|
18056
18207
|
},
|
|
@@ -18065,7 +18216,7 @@ var Filters = Object.assign(function (props) {
|
|
|
18065
18216
|
setAppliedFilters = props.setAppliedFilters,
|
|
18066
18217
|
containerProps = props.containerProps,
|
|
18067
18218
|
subContainerProps = props.subContainerProps;
|
|
18068
|
-
var buttonProps = filterObject(props, ['items', 'setAppliedFilters']);
|
|
18219
|
+
var buttonProps = filterObject(props, ['items', 'setAppliedFilters', 'filterLabel', 'optionLabel']);
|
|
18069
18220
|
return React__default.createElement(Button$5, Object.assign({}, buttonProps, {
|
|
18070
18221
|
gap: 's4',
|
|
18071
18222
|
getContent: function getContent(open, close) {
|
|
@@ -18075,7 +18226,9 @@ var Filters = Object.assign(function (props) {
|
|
|
18075
18226
|
setAppliedFilters: setAppliedFilters,
|
|
18076
18227
|
items: items,
|
|
18077
18228
|
containerProps: containerProps,
|
|
18078
|
-
subContainerProps: subContainerProps
|
|
18229
|
+
subContainerProps: subContainerProps,
|
|
18230
|
+
filterLabel: props.filterLabel,
|
|
18231
|
+
optionLabel: props.optionLabel
|
|
18079
18232
|
}));
|
|
18080
18233
|
}
|
|
18081
18234
|
}), "Filtros");
|
|
@@ -18090,7 +18243,7 @@ var useContext$3 = function useContext() {
|
|
|
18090
18243
|
return React__default.useContext(Provider$3);
|
|
18091
18244
|
};
|
|
18092
18245
|
|
|
18093
|
-
var _templateObject$Q, _templateObject2$A, _templateObject3$t, _templateObject4$
|
|
18246
|
+
var _templateObject$Q, _templateObject2$A, _templateObject3$t, _templateObject4$j, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$a, _templateObject10$9, _templateObject11$6, _templateObject12$4, _templateObject13$2, _templateObject14$2, _templateObject15$2;
|
|
18094
18247
|
var aligns = {
|
|
18095
18248
|
self: {
|
|
18096
18249
|
horizontal: {
|
|
@@ -18129,7 +18282,7 @@ var Col = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedT
|
|
|
18129
18282
|
}
|
|
18130
18283
|
|
|
18131
18284
|
var w = parseFloat(width) * 100 / 12;
|
|
18132
|
-
return styled.css(_templateObject4$
|
|
18285
|
+
return styled.css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n flex: 0 0 ", "%;\n max-width: ", "%;\n width: 100%;\n "])), w, w);
|
|
18133
18286
|
}, function (_ref2) {
|
|
18134
18287
|
var spacing = _ref2.spacing;
|
|
18135
18288
|
var padding = getSpacings(spacing === undefined ? 's1' : spacing);
|
|
@@ -18181,7 +18334,7 @@ var Col = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedT
|
|
|
18181
18334
|
var bordered = _ref5.bordered,
|
|
18182
18335
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
18183
18336
|
if (!bordered) return;
|
|
18184
|
-
return styled.css(_templateObject11$
|
|
18337
|
+
return styled.css(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
18185
18338
|
}, function (_ref6) {
|
|
18186
18339
|
var fontColor = _ref6.fontColor,
|
|
18187
18340
|
theme = _ref6.theme;
|
|
@@ -18255,7 +18408,7 @@ var Grid$1 = React__default.forwardRef(function (props, ref) {
|
|
|
18255
18408
|
});
|
|
18256
18409
|
Grid$1.displayName = 'Grid';
|
|
18257
18410
|
|
|
18258
|
-
var _templateObject$S, _templateObject2$C, _templateObject3$v, _templateObject4$
|
|
18411
|
+
var _templateObject$S, _templateObject2$C, _templateObject3$v, _templateObject4$k, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$b, _templateObject10$a;
|
|
18259
18412
|
var horizontalAligns = {
|
|
18260
18413
|
around: 'space-around',
|
|
18261
18414
|
between: 'space-between',
|
|
@@ -18280,7 +18433,7 @@ var Row = styled__default.div(_templateObject$S || (_templateObject$S = _taggedT
|
|
|
18280
18433
|
}, function (_ref3) {
|
|
18281
18434
|
var horizontalAlign = _ref3.horizontalAlign;
|
|
18282
18435
|
if (horizontalAlign === undefined) return;
|
|
18283
|
-
return styled.css(_templateObject4$
|
|
18436
|
+
return styled.css(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n justify-content: ", ";\n "])), horizontalAligns[horizontalAlign]);
|
|
18284
18437
|
}, function (_ref4) {
|
|
18285
18438
|
var verticalAlign = _ref4.verticalAlign;
|
|
18286
18439
|
if (verticalAlign === undefined) return;
|
|
@@ -18386,7 +18539,7 @@ var widths = {
|
|
|
18386
18539
|
default: '642.5px'
|
|
18387
18540
|
};
|
|
18388
18541
|
|
|
18389
|
-
var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$
|
|
18542
|
+
var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$l, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$c, _templateObject10$b;
|
|
18390
18543
|
var Background = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n backdrop-filter: blur(3px);\n background-color: ", ";\n"])), function (_ref) {
|
|
18391
18544
|
var theme = _ref.theme;
|
|
18392
18545
|
return theme.getColor('black', 25);
|
|
@@ -18397,7 +18550,7 @@ var Header$5 = styled__default.div(_templateObject3$w || (_templateObject3$w = _
|
|
|
18397
18550
|
colors = _ref2$theme.colors,
|
|
18398
18551
|
spacings = _ref2$theme.spacings,
|
|
18399
18552
|
useTypography = _ref2$theme.useTypography;
|
|
18400
|
-
return styled.css(_templateObject4$
|
|
18553
|
+
return styled.css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
|
|
18401
18554
|
});
|
|
18402
18555
|
var Footer$2 = styled__default.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n"])), function (_ref3) {
|
|
18403
18556
|
var _ref3$theme = _ref3.theme,
|
|
@@ -18616,11 +18769,11 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
18616
18769
|
Audit: Audit
|
|
18617
18770
|
});
|
|
18618
18771
|
|
|
18619
|
-
var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$
|
|
18772
|
+
var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$m, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$d, _templateObject10$c, _templateObject11$7;
|
|
18620
18773
|
var Container$c = styled__default.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
18621
18774
|
var Header$6 = styled__default.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18622
18775
|
var HeaderImage = styled__default.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
18623
|
-
var HeaderContent = styled__default.div(_templateObject4$
|
|
18776
|
+
var HeaderContent = styled__default.div(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
|
|
18624
18777
|
var MainContent = styled__default.div(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
|
|
18625
18778
|
var HeaderLine = styled__default.div(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18626
18779
|
return props.height;
|
|
@@ -18633,7 +18786,7 @@ var HeaderLine = styled__default.div(_templateObject6$g || (_templateObject6$g =
|
|
|
18633
18786
|
}, function (props) {
|
|
18634
18787
|
return props.size === 'large' && styled.css(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18635
18788
|
});
|
|
18636
|
-
var MainLine = styled__default(HeaderLine)(_templateObject11$
|
|
18789
|
+
var MainLine = styled__default(HeaderLine)(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
18637
18790
|
|
|
18638
18791
|
var Template1 = function Template1(props) {
|
|
18639
18792
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18668,7 +18821,7 @@ var Template1 = function Template1(props) {
|
|
|
18668
18821
|
})));
|
|
18669
18822
|
};
|
|
18670
18823
|
|
|
18671
|
-
var _templateObject$Y, _templateObject2$F, _templateObject3$y, _templateObject4$
|
|
18824
|
+
var _templateObject$Y, _templateObject2$F, _templateObject3$y, _templateObject4$n, _templateObject5$j;
|
|
18672
18825
|
var HeaderLine$1 = styled__default.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18673
18826
|
return props.height;
|
|
18674
18827
|
}, function (props) {
|
|
@@ -18676,16 +18829,16 @@ var HeaderLine$1 = styled__default.div(_templateObject$Y || (_templateObject$Y =
|
|
|
18676
18829
|
}, function (props) {
|
|
18677
18830
|
return props.size === 'small' && styled.css(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18678
18831
|
}, function (props) {
|
|
18679
|
-
return props.size === 'medium' && styled.css(_templateObject4$
|
|
18832
|
+
return props.size === 'medium' && styled.css(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18680
18833
|
}, function (props) {
|
|
18681
18834
|
return props.size === 'large' && styled.css(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18682
18835
|
});
|
|
18683
18836
|
|
|
18684
|
-
var _templateObject$Z, _templateObject2$G, _templateObject3$z, _templateObject4$
|
|
18837
|
+
var _templateObject$Z, _templateObject2$G, _templateObject3$z, _templateObject4$o, _templateObject5$k, _templateObject6$h, _templateObject7$h, _templateObject8$f;
|
|
18685
18838
|
var Container$d = styled__default.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
18686
18839
|
var Template2Container = styled__default(Container$d)(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
|
|
18687
18840
|
var Header$7 = styled__default.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18688
|
-
var HeaderImage$1 = styled__default.div(_templateObject4$
|
|
18841
|
+
var HeaderImage$1 = styled__default.div(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
18689
18842
|
var HeaderContent$1 = styled__default.div(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
|
|
18690
18843
|
var MainContent$1 = styled__default.div(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
|
|
18691
18844
|
var MainLine$1 = styled__default(HeaderLine$1)(_templateObject7$h || (_templateObject7$h = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
@@ -18744,14 +18897,14 @@ var Template3 = function Template3(props) {
|
|
|
18744
18897
|
}));
|
|
18745
18898
|
};
|
|
18746
18899
|
|
|
18747
|
-
var _templateObject$$, _templateObject2$I, _templateObject3$B, _templateObject4$
|
|
18900
|
+
var _templateObject$$, _templateObject2$I, _templateObject3$B, _templateObject4$p, _templateObject5$l, _templateObject6$i, _templateObject7$i, _templateObject8$g;
|
|
18748
18901
|
var Container$f = styled__default.div(_templateObject$$ || (_templateObject$$ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
18749
18902
|
var HeaderLine$3 = styled__default.div(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18750
18903
|
return props.height;
|
|
18751
18904
|
}, function (props) {
|
|
18752
18905
|
return props.size === 'mini' && styled.css(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18753
18906
|
}, function (props) {
|
|
18754
|
-
return props.size === 'small' && styled.css(_templateObject4$
|
|
18907
|
+
return props.size === 'small' && styled.css(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18755
18908
|
}, function (props) {
|
|
18756
18909
|
return props.size === 'medium' && styled.css(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18757
18910
|
}, function (props) {
|
|
@@ -18811,13 +18964,13 @@ var Template4 = function Template4(props) {
|
|
|
18811
18964
|
}));
|
|
18812
18965
|
};
|
|
18813
18966
|
|
|
18814
|
-
var _templateObject$10, _templateObject2$J, _templateObject3$C, _templateObject4$
|
|
18967
|
+
var _templateObject$10, _templateObject2$J, _templateObject3$C, _templateObject4$q, _templateObject5$m, _templateObject6$j, _templateObject7$j, _templateObject8$h, _templateObject9$e;
|
|
18815
18968
|
var Container$g = styled__default.div(_templateObject$10 || (_templateObject$10 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 746px;\n height: 169px;\n border: 1px solid #e6e6e7;\n border-radius: 4px;\n padding: 14px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
|
|
18816
18969
|
var Circle = styled__default.div(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
|
|
18817
18970
|
var HeaderLine$4 = styled__default.div(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18818
18971
|
return props.height;
|
|
18819
18972
|
}, function (props) {
|
|
18820
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
18973
|
+
return props.size === 'mini' && styled.css(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18821
18974
|
}, function (props) {
|
|
18822
18975
|
return props.size === 'small' && styled.css(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18823
18976
|
}, function (props) {
|
|
@@ -18859,11 +19012,11 @@ var Template5 = function Template5(props) {
|
|
|
18859
19012
|
})));
|
|
18860
19013
|
};
|
|
18861
19014
|
|
|
18862
|
-
var _templateObject$11, _templateObject2$K, _templateObject3$D, _templateObject4$
|
|
19015
|
+
var _templateObject$11, _templateObject2$K, _templateObject3$D, _templateObject4$r, _templateObject5$n, _templateObject6$k, _templateObject7$k, _templateObject8$i, _templateObject9$f;
|
|
18863
19016
|
var Container$h = styled__default.div(_templateObject$11 || (_templateObject$11 = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
|
|
18864
19017
|
var Header$8 = styled__default.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n"])));
|
|
18865
19018
|
var Footer$3 = styled__default.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
|
|
18866
|
-
var HeaderLine$5 = styled__default.div(_templateObject4$
|
|
19019
|
+
var HeaderLine$5 = styled__default.div(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18867
19020
|
return props.height;
|
|
18868
19021
|
}, function (props) {
|
|
18869
19022
|
return props.size === 'mini' && styled.css(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
@@ -18902,13 +19055,13 @@ var Template6 = function Template6(props) {
|
|
|
18902
19055
|
})));
|
|
18903
19056
|
};
|
|
18904
19057
|
|
|
18905
|
-
var _templateObject$12, _templateObject2$L, _templateObject3$E, _templateObject4$
|
|
19058
|
+
var _templateObject$12, _templateObject2$L, _templateObject3$E, _templateObject4$s, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$g, _templateObject10$d;
|
|
18906
19059
|
var Container$i = styled__default.div(_templateObject$12 || (_templateObject$12 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18907
19060
|
var Header$9 = styled__default.div(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18908
19061
|
var HeaderLine$6 = styled__default.div(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18909
19062
|
return props.height;
|
|
18910
19063
|
}, function (props) {
|
|
18911
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
19064
|
+
return props.size === 'mini' && styled.css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18912
19065
|
}, function (props) {
|
|
18913
19066
|
return props.size === 'small' && styled.css(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18914
19067
|
}, function (props) {
|
|
@@ -18936,13 +19089,13 @@ var Template7 = function Template7(props) {
|
|
|
18936
19089
|
})), React__default.createElement(Main$2, null, React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null)));
|
|
18937
19090
|
};
|
|
18938
19091
|
|
|
18939
|
-
var _templateObject$13, _templateObject2$M, _templateObject3$F, _templateObject4$
|
|
19092
|
+
var _templateObject$13, _templateObject2$M, _templateObject3$F, _templateObject4$t, _templateObject5$p, _templateObject6$m, _templateObject7$m, _templateObject8$k, _templateObject9$h;
|
|
18940
19093
|
var Container$j = styled__default.div(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18941
19094
|
var Header$a = styled__default.div(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18942
19095
|
var HeaderLine$7 = styled__default.div(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18943
19096
|
return props.height;
|
|
18944
19097
|
}, function (props) {
|
|
18945
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
19098
|
+
return props.size === 'mini' && styled.css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18946
19099
|
}, function (props) {
|
|
18947
19100
|
return props.size === 'small' && styled.css(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18948
19101
|
}, function (props) {
|
|
@@ -18979,13 +19132,13 @@ var Template8 = function Template8(props) {
|
|
|
18979
19132
|
})));
|
|
18980
19133
|
};
|
|
18981
19134
|
|
|
18982
|
-
var _templateObject$14, _templateObject2$N, _templateObject3$G, _templateObject4$
|
|
19135
|
+
var _templateObject$14, _templateObject2$N, _templateObject3$G, _templateObject4$u, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$i, _templateObject10$e;
|
|
18983
19136
|
var Container$k = styled__default.div(_templateObject$14 || (_templateObject$14 = _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"])));
|
|
18984
19137
|
var Header$b = styled__default.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18985
19138
|
var HeaderLine$8 = styled__default.div(_templateObject3$G || (_templateObject3$G = _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) {
|
|
18986
19139
|
return props.height;
|
|
18987
19140
|
}, function (props) {
|
|
18988
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
19141
|
+
return props.size === 'mini' && styled.css(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18989
19142
|
}, function (props) {
|
|
18990
19143
|
return props.size === 'small' && styled.css(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18991
19144
|
}, function (props) {
|
|
@@ -19018,13 +19171,13 @@ var Template8$1 = function Template8(props) {
|
|
|
19018
19171
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
19019
19172
|
};
|
|
19020
19173
|
|
|
19021
|
-
var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$
|
|
19174
|
+
var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$v, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$j, _templateObject10$f, _templateObject11$8;
|
|
19022
19175
|
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"])));
|
|
19023
19176
|
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"])));
|
|
19024
19177
|
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) {
|
|
19025
19178
|
return props.height;
|
|
19026
19179
|
}, function (props) {
|
|
19027
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
19180
|
+
return props.size === 'mini' && styled.css(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
19028
19181
|
}, function (props) {
|
|
19029
19182
|
return props.size === 'small' && styled.css(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
19030
19183
|
}, function (props) {
|
|
@@ -19041,7 +19194,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$m || (_templat
|
|
|
19041
19194
|
});
|
|
19042
19195
|
var GraphLine = styled__default(CustomLine$6)(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
19043
19196
|
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"])));
|
|
19044
|
-
var Circle$3 = styled__default.div(_templateObject11$
|
|
19197
|
+
var Circle$3 = styled__default.div(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
19045
19198
|
|
|
19046
19199
|
var Template10 = function Template10(props) {
|
|
19047
19200
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -19162,7 +19315,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
19162
19315
|
}
|
|
19163
19316
|
};
|
|
19164
19317
|
|
|
19165
|
-
var _templateObject$16, _templateObject2$P, _templateObject3$I, _templateObject4$
|
|
19318
|
+
var _templateObject$16, _templateObject2$P, _templateObject3$I, _templateObject4$w, _templateObject5$s, _templateObject6$p, _templateObject7$p;
|
|
19166
19319
|
var Container$m = styled__default.div(_templateObject$16 || (_templateObject$16 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n span {\n display: inline-block;\n margin-left: 7px;\n color: #000000cc;\n }\n"])));
|
|
19167
19320
|
var Progress = styled__default.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n width: 64px;\n height: 12px;\n border: 1px solid #e4e4e4;\n div {\n width: ", ";\n max-width: 64px;\n height: 100%;\n ", "\n\n ", "\n ", "\n ", "\n ", "\n }\n"])), function (props) {
|
|
19168
19321
|
return props.value + "%";
|
|
@@ -19172,7 +19325,7 @@ var Progress = styled__default.div(_templateObject2$P || (_templateObject2$P = _
|
|
|
19172
19325
|
return theme.colors.warningGray;
|
|
19173
19326
|
});
|
|
19174
19327
|
}, function (props) {
|
|
19175
|
-
return props.type === 'info' && styled.css(_templateObject4$
|
|
19328
|
+
return props.type === 'info' && styled.css(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref2) {
|
|
19176
19329
|
var theme = _ref2.theme;
|
|
19177
19330
|
return theme.colors.blue;
|
|
19178
19331
|
});
|
|
@@ -19197,7 +19350,7 @@ var ProgressBar = function ProgressBar(props) {
|
|
|
19197
19350
|
return React__default.createElement(Container$m, null, React__default.createElement(Progress, Object.assign({}, props), React__default.createElement("div", null)), React__default.createElement("span", null, " ", props.value || '0', "%"));
|
|
19198
19351
|
};
|
|
19199
19352
|
|
|
19200
|
-
var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$
|
|
19353
|
+
var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$x, _templateObject5$t, _templateObject6$q, _templateObject7$q, _templateObject8$n, _templateObject9$k;
|
|
19201
19354
|
var Container$n = styled__default.div(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
19202
19355
|
var delimiters = {
|
|
19203
19356
|
blue: ['blue'],
|
|
@@ -19231,7 +19384,7 @@ var Tabs = styled__default.ul(_templateObject2$Q || (_templateObject2$Q = _tagge
|
|
|
19231
19384
|
return internal ? "1px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'grey']) : "2px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'blue']);
|
|
19232
19385
|
}();
|
|
19233
19386
|
|
|
19234
|
-
return styled.css(_templateObject4$
|
|
19387
|
+
return styled.css(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n border-bottom: ", ";\n\n + div {\n border: 1px solid ", ";\n border-top-width: 0px;\n border-radius: 0px 0px 2px 2px;\n padding: ", ";\n }\n "])), border, theme.getColor.apply(theme, delimiters.grey), theme.spacings.s3);
|
|
19235
19388
|
}, function (_ref3) {
|
|
19236
19389
|
var theme = _ref3.theme,
|
|
19237
19390
|
internal = _ref3.$internal;
|
|
@@ -19387,7 +19540,7 @@ var TextArea = function TextArea(props) {
|
|
|
19387
19540
|
return React__default.createElement(Container$o, Object.assign({}, props));
|
|
19388
19541
|
};
|
|
19389
19542
|
|
|
19390
|
-
var _templateObject$1a, _templateObject2$R, _templateObject3$K, _templateObject4$
|
|
19543
|
+
var _templateObject$1a, _templateObject2$R, _templateObject3$K, _templateObject4$y, _templateObject5$u, _templateObject6$r;
|
|
19391
19544
|
var Container$p = styled__default.div(_templateObject$1a || (_templateObject$1a = _taggedTemplateLiteralLoose(["\n border-radius: 4px;\n width: ", ";\n height: 88px;\n border: 1px solid transparent;\n position: relative;\n\n ", "\n\n ", "\n\n ", "\n\n svg {\n cursor: pointer;\n position: absolute;\n top: 14px;\n right: 14px;\n width: 13px;\n height: 13px;\n }\n"])), function (props) {
|
|
19392
19545
|
return props.size === 'large' ? '837px' : '460px';
|
|
19393
19546
|
}, function (props) {
|
|
@@ -19395,7 +19548,7 @@ var Container$p = styled__default.div(_templateObject$1a || (_templateObject$1a
|
|
|
19395
19548
|
}, function (props) {
|
|
19396
19549
|
return props.color === 'error' && styled.css(_templateObject3$K || (_templateObject3$K = _taggedTemplateLiteralLoose(["\n background-color: #fff6f6;\n opacity: 1;\n border-color: #973937;\n h4 {\n color: #973937;\n }\n p {\n color: #973937;\n }\n "])));
|
|
19397
19550
|
}, function (props) {
|
|
19398
|
-
return props.color === 'warning' && styled.css(_templateObject4$
|
|
19551
|
+
return props.color === 'warning' && styled.css(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n background-color: #fffaf3;\n opacity: 1;\n border-color: #ccbea0;\n h4 {\n color: #7a4d05;\n }\n p {\n color: #7a4d05cc;\n }\n "])));
|
|
19399
19552
|
});
|
|
19400
19553
|
var IconContainer$2 = styled__default.div(_templateObject5$u || (_templateObject5$u = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 14px 14px 0 0;\n margin: 0;\n"])));
|
|
19401
19554
|
var IconContent = styled__default.div(_templateObject6$r || (_templateObject6$r = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 13px 0 21px 28px;\n display: flex;\n flex: 1;\n flex-direction: column;\n\n h4 {\n margin-bottom: 7px;\n font-size: 18p;\n }\n p {\n margin: 0;\n font-size: 14px;\n max-width: 380px;\n }\n"])));
|
|
@@ -19410,7 +19563,7 @@ var Toast = function Toast(props) {
|
|
|
19410
19563
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
19411
19564
|
};
|
|
19412
19565
|
|
|
19413
|
-
var _templateObject$1b, _templateObject2$S, _templateObject3$L, _templateObject4$
|
|
19566
|
+
var _templateObject$1b, _templateObject2$S, _templateObject3$L, _templateObject4$z, _templateObject5$v;
|
|
19414
19567
|
var Image = styled__default.img(_templateObject$1b || (_templateObject$1b = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
|
|
19415
19568
|
var Container$q = styled__default.div(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n\n &,\n ", " {\n width: ", ";\n\n height: ", ";\n }\n"])), Image, function (_ref) {
|
|
19416
19569
|
var width = _ref.width;
|
|
@@ -19443,7 +19596,7 @@ var Dimmer = styled__default.div(_templateObject3$L || (_templateObject3$L = _ta
|
|
|
19443
19596
|
var theme = _ref3.theme;
|
|
19444
19597
|
return theme.getColor('greyishBlue', 50);
|
|
19445
19598
|
});
|
|
19446
|
-
var Button$6 = styled__default(Button$1)(_templateObject4$
|
|
19599
|
+
var Button$6 = styled__default(Button$1)(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
|
|
19447
19600
|
var theme = _ref4.theme;
|
|
19448
19601
|
return theme.getColor('white', 50);
|
|
19449
19602
|
});
|