@mw-kit/mw-ui 1.7.92 → 1.7.93
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 +1 -1
- 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 +1 -1
- package/dist/components/Input/components/Select/hooks/SelectMultiple/interfaces.d.ts +5 -4
- package/dist/components/Input/components/Select/hooks/interfaces.d.ts +10 -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 +17 -13
- package/dist/components/Menu/styles.d.ts +2 -2
- package/dist/index.js +452 -298
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +452 -298
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -12226,7 +12226,7 @@ var EllipsisContainer$1 = function EllipsisContainer$1(props) {
|
|
|
12226
12226
|
};
|
|
12227
12227
|
|
|
12228
12228
|
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;
|
|
12229
|
-
var IconContainer = styled.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"])));
|
|
12229
|
+
var IconContainer = styled.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"])));
|
|
12230
12230
|
var ChildrenContainer = styled(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) {
|
|
12231
12231
|
var theme = _ref.theme;
|
|
12232
12232
|
return theme.spacings.s1;
|
|
@@ -12919,8 +12919,8 @@ var ScrollContainer = React__default.forwardRef(function (props, ref) {
|
|
|
12919
12919
|
});
|
|
12920
12920
|
ScrollContainer.displayName = 'ScrollContainer';
|
|
12921
12921
|
|
|
12922
|
-
var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$3;
|
|
12923
|
-
var Option = styled.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) {
|
|
12922
|
+
var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$3, _templateObject11$3;
|
|
12923
|
+
var Option = styled.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) {
|
|
12924
12924
|
var theme = _ref.theme;
|
|
12925
12925
|
return theme.useTypography('p');
|
|
12926
12926
|
}, function (_ref2) {
|
|
@@ -12933,7 +12933,7 @@ var Option = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplat
|
|
|
12933
12933
|
var theme = _ref4.theme;
|
|
12934
12934
|
return theme.spacings.s1;
|
|
12935
12935
|
}, function (_ref5) {
|
|
12936
|
-
var disabled = _ref5
|
|
12936
|
+
var disabled = _ref5.$disabled;
|
|
12937
12937
|
|
|
12938
12938
|
if (!disabled) {
|
|
12939
12939
|
return css(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
@@ -12941,7 +12941,7 @@ var Option = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplat
|
|
|
12941
12941
|
|
|
12942
12942
|
return css(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n opacity: 0.3;\n "])));
|
|
12943
12943
|
}, function (_ref6) {
|
|
12944
|
-
var border = _ref6
|
|
12944
|
+
var border = _ref6.$border,
|
|
12945
12945
|
theme = _ref6.theme;
|
|
12946
12946
|
if (!border) return;
|
|
12947
12947
|
var config = getBorder(border);
|
|
@@ -12956,10 +12956,17 @@ var Option = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplat
|
|
|
12956
12956
|
});
|
|
12957
12957
|
}, function (_ref7) {
|
|
12958
12958
|
var theme = _ref7.theme;
|
|
12959
|
-
return theme.
|
|
12959
|
+
return theme.getColor('blue', 15);
|
|
12960
|
+
}, function (_ref8) {
|
|
12961
|
+
var highlighted = _ref8.$highlighted;
|
|
12962
|
+
if (!highlighted) return;
|
|
12963
|
+
return css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref9) {
|
|
12964
|
+
var theme = _ref9.theme;
|
|
12965
|
+
return theme.getColor('blue', 15);
|
|
12966
|
+
});
|
|
12960
12967
|
});
|
|
12961
|
-
var Container$2 = styled(AbsoluteContainer)(
|
|
12962
|
-
var theme =
|
|
12968
|
+
var Container$2 = styled(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) {
|
|
12969
|
+
var theme = _ref10.theme;
|
|
12963
12970
|
return theme.colors.white;
|
|
12964
12971
|
}, function (props) {
|
|
12965
12972
|
if (!props.containerSpacing) return;
|
|
@@ -12967,46 +12974,76 @@ var Container$2 = styled(AbsoluteContainer)(_templateObject5$5 || (_templateObje
|
|
|
12967
12974
|
var tmp = spacing.split(' ');
|
|
12968
12975
|
tmp[1] = "calc(" + props.theme.spacings.s1 + " / 2)";
|
|
12969
12976
|
spacing = tmp.join(' ');
|
|
12970
|
-
return css(
|
|
12971
|
-
}, function (
|
|
12972
|
-
var bordered =
|
|
12977
|
+
return css(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), spacing);
|
|
12978
|
+
}, function (_ref11) {
|
|
12979
|
+
var bordered = _ref11.bordered;
|
|
12973
12980
|
if (!bordered) return;
|
|
12974
|
-
return css(
|
|
12975
|
-
var theme =
|
|
12981
|
+
return css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref12) {
|
|
12982
|
+
var theme = _ref12.theme;
|
|
12976
12983
|
return theme.getColor('greyishBlue', 10);
|
|
12977
12984
|
});
|
|
12978
12985
|
}, function (props) {
|
|
12979
12986
|
var theme = props.theme;
|
|
12980
12987
|
|
|
12981
12988
|
if (!props.itemSpacing) {
|
|
12982
|
-
return css(
|
|
12989
|
+
return css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n ", " {\n margin: ", " 0px ", "\n ", ";\n }\n "])), Delimiter, theme.spacings.s1, theme.spacings.s1, theme.spacings.s1);
|
|
12983
12990
|
}
|
|
12984
12991
|
|
|
12985
12992
|
var spacing = getSpacings(props.itemSpacing, {
|
|
12986
12993
|
right: '0'
|
|
12987
12994
|
});
|
|
12988
|
-
return css(
|
|
12995
|
+
return css(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", ";\n }\n ", " {\n margin: ", ";\n }\n "])), Option, spacing, Delimiter, spacing);
|
|
12989
12996
|
});
|
|
12990
|
-
var Delimiter = styled.div(
|
|
12991
|
-
var theme =
|
|
12997
|
+
var Delimiter = styled.div(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref13) {
|
|
12998
|
+
var theme = _ref13.theme;
|
|
12992
12999
|
return theme.useTypography('p');
|
|
12993
|
-
}, function (
|
|
12994
|
-
var theme =
|
|
13000
|
+
}, function (_ref14) {
|
|
13001
|
+
var theme = _ref14.theme;
|
|
12995
13002
|
return theme.colors.greyishBlue;
|
|
12996
13003
|
});
|
|
12997
13004
|
|
|
13005
|
+
var EmptyLabel = function EmptyLabel(_ref) {
|
|
13006
|
+
var label = _ref.label;
|
|
13007
|
+
return React__default.createElement(React__default.Fragment, {
|
|
13008
|
+
children: label
|
|
13009
|
+
});
|
|
13010
|
+
};
|
|
13011
|
+
|
|
13012
|
+
var isVisible = function isVisible(elem, bound) {
|
|
13013
|
+
var docViewTop = bound.scrollTop;
|
|
13014
|
+
var docViewBottom = docViewTop + bound.offsetHeight;
|
|
13015
|
+
var elemTop = elem.offsetTop;
|
|
13016
|
+
var elemBottom = elemTop + elem.offsetHeight;
|
|
13017
|
+
return elemBottom <= docViewBottom && elemTop >= docViewTop;
|
|
13018
|
+
};
|
|
13019
|
+
|
|
12998
13020
|
var MenuComponent = function MenuComponent(props, ref) {
|
|
12999
13021
|
var _props = _extends({}, props),
|
|
13000
13022
|
close = _props.close,
|
|
13001
13023
|
options = _props.options,
|
|
13002
|
-
children = _props.children
|
|
13024
|
+
children = _props.children,
|
|
13025
|
+
highlight = _props.highlight;
|
|
13003
13026
|
|
|
13004
|
-
var
|
|
13027
|
+
var _useState = useState(null),
|
|
13028
|
+
scrollRef = _useState[0],
|
|
13029
|
+
setScrollRef = _useState[1];
|
|
13030
|
+
|
|
13031
|
+
useEffect(function () {
|
|
13032
|
+
if (!scrollRef || highlight === undefined) return;
|
|
13033
|
+
var element = scrollRef.children[highlight];
|
|
13034
|
+
if (!element) return;
|
|
13035
|
+
if (isVisible(element, scrollRef)) return;
|
|
13036
|
+
scrollRef.scrollTo(0, element.offsetTop);
|
|
13037
|
+
}, [highlight, scrollRef]);
|
|
13038
|
+
var absoluteContainerProps = filterObject(props, ['scrollSpacing', 'scrollTabIndex', 'label', 'rules', 'onClickOption', 'onScrollEnd', 'before', 'after', 'close', 'options', 'loading', 'children', 'emptyContent', 'highlight'], {
|
|
13005
13039
|
itemSpacing: 's1'
|
|
13006
13040
|
});
|
|
13041
|
+
var rules = props.rules || [];
|
|
13042
|
+
var LabelComponent = props.label || EmptyLabel;
|
|
13007
13043
|
return React__default.createElement(Container$2, Object.assign({}, absoluteContainerProps, {
|
|
13008
13044
|
ref: ref
|
|
13009
13045
|
}), React__default.createElement(React__default.Fragment, null, React__default.createElement(ScrollContainer, {
|
|
13046
|
+
ref: setScrollRef,
|
|
13010
13047
|
onScrollEnd: props.onScrollEnd,
|
|
13011
13048
|
before: props.before,
|
|
13012
13049
|
after: props.after,
|
|
@@ -13015,7 +13052,8 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
13015
13052
|
content: props.emptyContent
|
|
13016
13053
|
} : undefined,
|
|
13017
13054
|
spacing: props.scrollSpacing,
|
|
13018
|
-
loading: props.loading
|
|
13055
|
+
loading: props.loading,
|
|
13056
|
+
tabIndex: props.scrollTabIndex
|
|
13019
13057
|
}, options.map(function (option, index) {
|
|
13020
13058
|
var _option = _extends({}, option),
|
|
13021
13059
|
delimiter = _option.delimiter,
|
|
@@ -13027,23 +13065,23 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
13027
13065
|
var onClick;
|
|
13028
13066
|
var disabled = option.disabled;
|
|
13029
13067
|
|
|
13030
|
-
var OptionContent = function OptionContent(
|
|
13031
|
-
var children =
|
|
13068
|
+
var OptionContent = function OptionContent(_ref2) {
|
|
13069
|
+
var children = _ref2.children;
|
|
13032
13070
|
return children;
|
|
13033
13071
|
};
|
|
13034
13072
|
|
|
13035
13073
|
if (!disabled) {
|
|
13036
|
-
var rule =
|
|
13074
|
+
var rule = rules.map(function (rule) {
|
|
13037
13075
|
return rule(index, data);
|
|
13038
13076
|
}).find(function (result) {
|
|
13039
13077
|
return result !== true;
|
|
13040
13078
|
});
|
|
13041
13079
|
|
|
13042
13080
|
if (rule === true || rule === undefined) {
|
|
13043
|
-
var _onClick =
|
|
13081
|
+
var _onClick = props.onClickOption || function () {};
|
|
13044
13082
|
|
|
13045
13083
|
onClick = function onClick(e) {
|
|
13046
|
-
_onClick(index, option, e);
|
|
13084
|
+
_onClick(index, option.data, e);
|
|
13047
13085
|
|
|
13048
13086
|
closeMenu();
|
|
13049
13087
|
};
|
|
@@ -13051,8 +13089,8 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
13051
13089
|
disabled = true;
|
|
13052
13090
|
|
|
13053
13091
|
if (rule !== false) {
|
|
13054
|
-
OptionContent = function OptionContent(
|
|
13055
|
-
var children =
|
|
13092
|
+
OptionContent = function OptionContent(_ref3) {
|
|
13093
|
+
var children = _ref3.children;
|
|
13056
13094
|
return React__default.createElement(Popup, Object.assign({
|
|
13057
13095
|
on: 'click',
|
|
13058
13096
|
position: 'left center',
|
|
@@ -13073,21 +13111,16 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
13073
13111
|
}
|
|
13074
13112
|
|
|
13075
13113
|
OptionContent.displayName = 'OptionContent';
|
|
13076
|
-
var label = option.label;
|
|
13077
|
-
var labelOptions = filterObject(option, ['onClick', 'label', 'rules']);
|
|
13078
|
-
labelOptions.disabled = disabled;
|
|
13079
|
-
var LabelComponent = typeof label === 'function' ? label : function () {
|
|
13080
|
-
return React__default.createElement(React__default.Fragment, {
|
|
13081
|
-
children: label
|
|
13082
|
-
});
|
|
13083
|
-
};
|
|
13084
13114
|
return React__default.createElement(React__default.Fragment, {
|
|
13085
13115
|
key: index
|
|
13086
13116
|
}, React__default.createElement(OptionContent, null, React__default.createElement(Option, {
|
|
13087
13117
|
onClick: onClick,
|
|
13088
|
-
disabled: disabled,
|
|
13089
|
-
border: option.border
|
|
13090
|
-
|
|
13118
|
+
"$disabled": disabled,
|
|
13119
|
+
"$border": option.border,
|
|
13120
|
+
"$highlighted": index === highlight
|
|
13121
|
+
}, React__default.createElement("div", null, React__default.createElement(LabelComponent, Object.assign({}, option, {
|
|
13122
|
+
disabled: disabled
|
|
13123
|
+
}))), caret ? React__default.createElement(Icon, {
|
|
13091
13124
|
type: 'semantic',
|
|
13092
13125
|
icon: 'caret right',
|
|
13093
13126
|
width: '14px'
|
|
@@ -13258,7 +13291,7 @@ var Indicator = function Indicator(props) {
|
|
|
13258
13291
|
}, props)));
|
|
13259
13292
|
};
|
|
13260
13293
|
|
|
13261
|
-
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$
|
|
13294
|
+
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$4;
|
|
13262
13295
|
var Footer = styled.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"])));
|
|
13263
13296
|
var WeekContainer = styled.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) {
|
|
13264
13297
|
var theme = _ref.theme;
|
|
@@ -13322,7 +13355,7 @@ var DayContainer = styled.button(_templateObject4$8 || (_templateObject4$8 = _ta
|
|
|
13322
13355
|
});
|
|
13323
13356
|
var DayIndicator = styled(Indicator).attrs({
|
|
13324
13357
|
size: 'mini'
|
|
13325
|
-
})(_templateObject11$
|
|
13358
|
+
})(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: calc(", " - 1px);\n left: calc(50% - (", " / 2) + 1px);\n"])), sizes.mini, sizes.mini);
|
|
13326
13359
|
|
|
13327
13360
|
var getCalendar = function getCalendar(d) {
|
|
13328
13361
|
var date = new Date(d.getTime());
|
|
@@ -14600,15 +14633,99 @@ var Date$1 = React__default.forwardRef(function (props, ref) {
|
|
|
14600
14633
|
});
|
|
14601
14634
|
Date$1.displayName = 'Date';
|
|
14602
14635
|
|
|
14636
|
+
var _templateObject$l, _templateObject2$f, _templateObject3$d, _templateObject4$a;
|
|
14637
|
+
var RelativeContainer$2 = styled.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n position: relative;\n ", ";\n"])), function (_ref) {
|
|
14638
|
+
var width = _ref.width;
|
|
14639
|
+
return !width ? null : css(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
|
|
14640
|
+
});
|
|
14641
|
+
var EmptyContentContainer = styled.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n"])), function (_ref2) {
|
|
14642
|
+
var theme = _ref2.theme;
|
|
14643
|
+
return theme.spacings.s3;
|
|
14644
|
+
});
|
|
14645
|
+
var HiddenInput = styled.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"])));
|
|
14646
|
+
|
|
14647
|
+
var isAvailable = function isAvailable(index, option, rules) {
|
|
14648
|
+
return !option.disabled && !(rules || []).some(function (rule) {
|
|
14649
|
+
return rule(index, option) !== true;
|
|
14650
|
+
});
|
|
14651
|
+
};
|
|
14652
|
+
|
|
14653
|
+
var useNavigation = function useNavigation(props) {
|
|
14654
|
+
var _props$highlight = props.highlight,
|
|
14655
|
+
highlight = _props$highlight[0],
|
|
14656
|
+
setHighlight = _props$highlight[1],
|
|
14657
|
+
options = props.options,
|
|
14658
|
+
onSelectHighlight = props.onSelectHighlight,
|
|
14659
|
+
rules = props.rules;
|
|
14660
|
+
var onKeyDown = useCallback(function (e) {
|
|
14661
|
+
if (e.key === 'ArrowDown') {
|
|
14662
|
+
e.preventDefault();
|
|
14663
|
+
|
|
14664
|
+
var getNext = function getNext(index, current) {
|
|
14665
|
+
var option = options[index];
|
|
14666
|
+
if (!option) return current;
|
|
14667
|
+
|
|
14668
|
+
if (isAvailable(index, option, rules)) {
|
|
14669
|
+
return index;
|
|
14670
|
+
}
|
|
14671
|
+
|
|
14672
|
+
return getNext(index + 1, current);
|
|
14673
|
+
};
|
|
14674
|
+
|
|
14675
|
+
setHighlight(function (prev) {
|
|
14676
|
+
return getNext(prev + 1, prev);
|
|
14677
|
+
});
|
|
14678
|
+
} else if (e.key === 'ArrowUp') {
|
|
14679
|
+
e.preventDefault();
|
|
14680
|
+
|
|
14681
|
+
var getPrev = function getPrev(index, current) {
|
|
14682
|
+
var option = options[index];
|
|
14683
|
+
if (!option) return current;
|
|
14684
|
+
|
|
14685
|
+
if (isAvailable(index, option, rules)) {
|
|
14686
|
+
return index;
|
|
14687
|
+
}
|
|
14688
|
+
|
|
14689
|
+
return getPrev(index - 1, current);
|
|
14690
|
+
};
|
|
14691
|
+
|
|
14692
|
+
setHighlight(function (prev) {
|
|
14693
|
+
return getPrev(prev - 1, prev);
|
|
14694
|
+
});
|
|
14695
|
+
} else if (e.key === 'Enter') {
|
|
14696
|
+
e.preventDefault();
|
|
14697
|
+
var option = options[highlight];
|
|
14698
|
+
|
|
14699
|
+
if (option) {
|
|
14700
|
+
onSelectHighlight(highlight, option);
|
|
14701
|
+
}
|
|
14702
|
+
}
|
|
14703
|
+
}, [highlight, options, rules]);
|
|
14704
|
+
|
|
14705
|
+
var onFocus = function onFocus(e) {
|
|
14706
|
+
setHighlight(0);
|
|
14707
|
+
};
|
|
14708
|
+
|
|
14709
|
+
var onBlur = function onBlur(e) {
|
|
14710
|
+
setHighlight(-1);
|
|
14711
|
+
};
|
|
14712
|
+
|
|
14713
|
+
return {
|
|
14714
|
+
onKeyDown: onKeyDown,
|
|
14715
|
+
onFocus: onFocus,
|
|
14716
|
+
onBlur: onBlur
|
|
14717
|
+
};
|
|
14718
|
+
};
|
|
14719
|
+
|
|
14603
14720
|
var Provider$1 = React__default.createContext({});
|
|
14604
14721
|
var useContext$1 = function useContext() {
|
|
14605
14722
|
return React__default.useContext(Provider$1);
|
|
14606
14723
|
};
|
|
14607
14724
|
|
|
14608
|
-
var _templateObject$
|
|
14609
|
-
var HeaderContainer = styled.div(_templateObject$
|
|
14725
|
+
var _templateObject$m, _templateObject2$g;
|
|
14726
|
+
var HeaderContainer = styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
|
|
14610
14727
|
var theme = _ref.theme;
|
|
14611
|
-
return css(_templateObject2$
|
|
14728
|
+
return css(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n padding: ", " 0 ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
|
|
14612
14729
|
});
|
|
14613
14730
|
|
|
14614
14731
|
var Header$1 = function Header() {
|
|
@@ -14618,66 +14735,40 @@ var Header$1 = function Header() {
|
|
|
14618
14735
|
return React__default.createElement(React__default.Fragment, null);
|
|
14619
14736
|
}
|
|
14620
14737
|
|
|
14621
|
-
var _context$
|
|
14622
|
-
search = _context$search[0],
|
|
14623
|
-
_context$searchInput = context.searchInput,
|
|
14738
|
+
var _context$searchInput = context.searchInput,
|
|
14624
14739
|
searchInput = _context$searchInput[0],
|
|
14625
|
-
setSearchInput = _context$searchInput[1]
|
|
14626
|
-
onClearSearch = context.onClearSearch,
|
|
14627
|
-
onSearch = context.onSearch,
|
|
14628
|
-
loading = context.loading;
|
|
14740
|
+
setSearchInput = _context$searchInput[1];
|
|
14629
14741
|
return React__default.createElement(HeaderContainer, null, React__default.createElement(Input$1, {
|
|
14630
14742
|
type: 'search',
|
|
14631
14743
|
placeholder: 'Pesquisa',
|
|
14632
14744
|
setValue: setSearchInput,
|
|
14633
14745
|
value: searchInput,
|
|
14634
|
-
onPressEnter: onSearch,
|
|
14635
|
-
clearable: searchInput !== '' && searchInput === search ? onClearSearch : undefined,
|
|
14636
14746
|
icon: {
|
|
14637
14747
|
icon: {
|
|
14638
14748
|
type: 'feather',
|
|
14639
|
-
icon: 'search'
|
|
14640
|
-
onClick: onSearch
|
|
14749
|
+
icon: 'search'
|
|
14641
14750
|
}
|
|
14642
|
-
}
|
|
14643
|
-
loading: loading
|
|
14751
|
+
}
|
|
14644
14752
|
}));
|
|
14645
14753
|
};
|
|
14646
14754
|
|
|
14647
|
-
var getOptions = function getOptions(
|
|
14755
|
+
var getOptions = function getOptions(options, selected) {
|
|
14648
14756
|
return options.map(function (option) {
|
|
14649
|
-
var value = option.value,
|
|
14650
|
-
onClick = option.onClick,
|
|
14651
|
-
rules = option.rules,
|
|
14652
|
-
disabled = option.disabled;
|
|
14653
14757
|
var isSelected = option.value === (selected === null || selected === void 0 ? void 0 : selected.value);
|
|
14654
|
-
|
|
14655
|
-
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
});
|
|
14659
|
-
|
|
14660
|
-
var LabelComponent = option.label;
|
|
14758
|
+
var data = {
|
|
14759
|
+
data: option.data,
|
|
14760
|
+
value: option.value
|
|
14761
|
+
};
|
|
14661
14762
|
var parsed = {
|
|
14662
|
-
label: typeof LabelComponent !== 'function' ? LabelComponent : function (_ref) {
|
|
14663
|
-
var disabled = _ref.disabled;
|
|
14664
|
-
return React__default.createElement(LabelComponent, Object.assign({}, {
|
|
14665
|
-
value: value,
|
|
14666
|
-
data: data,
|
|
14667
|
-
disabled: disabled
|
|
14668
|
-
}));
|
|
14669
|
-
},
|
|
14670
|
-
onClick: onClick || function () {
|
|
14671
|
-
setValue(isSelected ? '' : value, option.data);
|
|
14672
|
-
},
|
|
14673
|
-
disabled: disabled,
|
|
14674
|
-
rules: rules,
|
|
14675
14763
|
border: {
|
|
14676
14764
|
left: {
|
|
14677
14765
|
color: isSelected ? 'blue' : 'transparent'
|
|
14678
14766
|
}
|
|
14679
14767
|
},
|
|
14680
|
-
data: data
|
|
14768
|
+
data: data,
|
|
14769
|
+
label: option.label,
|
|
14770
|
+
disabled: option.disabled,
|
|
14771
|
+
keepOpen: true
|
|
14681
14772
|
};
|
|
14682
14773
|
return parsed;
|
|
14683
14774
|
});
|
|
@@ -14693,17 +14784,17 @@ var getSelected = function getSelected(value, options) {
|
|
|
14693
14784
|
};
|
|
14694
14785
|
|
|
14695
14786
|
var getInputContent = function getInputContent(props, selectedOption) {
|
|
14696
|
-
if (
|
|
14697
|
-
var LabelComponent =
|
|
14698
|
-
return React__default.createElement(LabelComponent, {
|
|
14699
|
-
data: _extends({}, selectedOption.data),
|
|
14700
|
-
value: selectedOption.value,
|
|
14787
|
+
if (!props.optionLabel) return selectedOption.label;
|
|
14788
|
+
var LabelComponent = props.optionLabel;
|
|
14789
|
+
return React__default.createElement(LabelComponent, Object.assign({}, selectedOption, {
|
|
14701
14790
|
disabled: props.disabled || props.loading,
|
|
14702
14791
|
mode: 'placeholder'
|
|
14703
|
-
});
|
|
14792
|
+
}));
|
|
14704
14793
|
};
|
|
14705
14794
|
|
|
14706
|
-
var useSelect = function useSelect(props, _ref2) {
|
|
14795
|
+
var useSelect = function useSelect(props, _ref, _ref2, setOpen) {
|
|
14796
|
+
var highlight = _ref[0],
|
|
14797
|
+
setHighlight = _ref[1];
|
|
14707
14798
|
var options = _ref2[0],
|
|
14708
14799
|
setOptions = _ref2[1];
|
|
14709
14800
|
|
|
@@ -14711,11 +14802,22 @@ var useSelect = function useSelect(props, _ref2) {
|
|
|
14711
14802
|
selectedOption = _ref3[0],
|
|
14712
14803
|
value = _ref3[1];
|
|
14713
14804
|
|
|
14714
|
-
var parsedOptions = getOptions(
|
|
14805
|
+
var parsedOptions = getOptions(options, selectedOption);
|
|
14715
14806
|
|
|
14716
14807
|
var onReset = function onReset() {};
|
|
14717
14808
|
|
|
14718
14809
|
var inputContent = selectedOption ? getInputContent(props, selectedOption) : props.value;
|
|
14810
|
+
|
|
14811
|
+
var onSelect = function onSelect(index, option) {
|
|
14812
|
+
if (!isAvailable(index, option, props.rules)) {
|
|
14813
|
+
return;
|
|
14814
|
+
}
|
|
14815
|
+
|
|
14816
|
+
var isSelected = option.value === (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value);
|
|
14817
|
+
props.setValue(isSelected ? '' : option.value, option.data);
|
|
14818
|
+
setOpen(false);
|
|
14819
|
+
};
|
|
14820
|
+
|
|
14719
14821
|
var parsed = {
|
|
14720
14822
|
parsedOptions: parsedOptions,
|
|
14721
14823
|
options: [options, setOptions],
|
|
@@ -14723,8 +14825,16 @@ var useSelect = function useSelect(props, _ref2) {
|
|
|
14723
14825
|
onReset: onReset,
|
|
14724
14826
|
menu: {
|
|
14725
14827
|
itemSpacing: 's3',
|
|
14726
|
-
before: React__default.createElement(Header$1, null),
|
|
14727
|
-
|
|
14828
|
+
before: React__default.createElement(React__default.Fragment, null, React__default.createElement(Header$1, null), React__default.createElement(HiddenInput, Object.assign({}, useNavigation({
|
|
14829
|
+
highlight: [highlight, setHighlight],
|
|
14830
|
+
options: options,
|
|
14831
|
+
onSelectHighlight: onSelect,
|
|
14832
|
+
rules: props.rules
|
|
14833
|
+
})))),
|
|
14834
|
+
maxHeight: props.maxHeight || props.search ? '238px' : '180px',
|
|
14835
|
+
onClickOption: function onClickOption(index, option) {
|
|
14836
|
+
onSelect(index, option);
|
|
14837
|
+
}
|
|
14728
14838
|
},
|
|
14729
14839
|
getContext: function getContext(base, children) {
|
|
14730
14840
|
return React__default.createElement(Provider$1.Provider, {
|
|
@@ -14791,13 +14901,13 @@ var Footer$1 = function Footer() {
|
|
|
14791
14901
|
});
|
|
14792
14902
|
};
|
|
14793
14903
|
|
|
14794
|
-
var _templateObject$
|
|
14795
|
-
var Link = styled.div(_templateObject$
|
|
14904
|
+
var _templateObject$n, _templateObject2$h, _templateObject3$e, _templateObject4$b;
|
|
14905
|
+
var Link = styled.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n ", "\n\n color: ", ";\n\n ", "\n"])), function (_ref) {
|
|
14796
14906
|
var size = _ref.size;
|
|
14797
14907
|
var _sizes = sizes$1[size || 'small'],
|
|
14798
14908
|
fontSize = _sizes.fontSize,
|
|
14799
14909
|
lineHeight = _sizes.lineHeight;
|
|
14800
|
-
return css(_templateObject2$
|
|
14910
|
+
return css(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n "])), fontSize, lineHeight);
|
|
14801
14911
|
}, function (_ref2) {
|
|
14802
14912
|
var colorSetting = _ref2.colorSetting,
|
|
14803
14913
|
theme = _ref2.theme;
|
|
@@ -14810,17 +14920,17 @@ var Link = styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateL
|
|
|
14810
14920
|
disabled = _ref3.disabled,
|
|
14811
14921
|
theme = _ref3.theme,
|
|
14812
14922
|
colorSetting = _ref3.colorSetting;
|
|
14813
|
-
return disabled ? css(_templateObject3$
|
|
14923
|
+
return disabled ? css(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "]))) : onClick ? css(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n :hover {\n color: ", ";\n }\n "])), theme.colors[_extends({
|
|
14814
14924
|
hover: 'blue'
|
|
14815
14925
|
}, colorSetting && typeof colorSetting !== 'string' ? colorSetting : {}).hover]) : null;
|
|
14816
14926
|
});
|
|
14817
14927
|
|
|
14818
|
-
var _templateObject$
|
|
14819
|
-
var HeaderContainer$1 = styled.div(_templateObject$
|
|
14928
|
+
var _templateObject$o, _templateObject2$i, _templateObject3$f;
|
|
14929
|
+
var HeaderContainer$1 = styled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
|
|
14820
14930
|
var theme = _ref.theme;
|
|
14821
|
-
return css(_templateObject2$
|
|
14931
|
+
return css(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n padding: ", " 0 ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
|
|
14822
14932
|
});
|
|
14823
|
-
var SelectAllContainer = styled.div(_templateObject3$
|
|
14933
|
+
var SelectAllContainer = styled.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n display: flex;\n justify-content: space-between;\n"])), function (_ref2) {
|
|
14824
14934
|
var theme = _ref2.theme;
|
|
14825
14935
|
return theme.spacings.s1;
|
|
14826
14936
|
});
|
|
@@ -14835,14 +14945,9 @@ var Header$2 = function Header() {
|
|
|
14835
14945
|
var _context$checked = context.checked,
|
|
14836
14946
|
checked = _context$checked[0],
|
|
14837
14947
|
setChecked = _context$checked[1],
|
|
14838
|
-
_context$search = context.search,
|
|
14839
|
-
search = _context$search[0],
|
|
14840
14948
|
_context$searchInput = context.searchInput,
|
|
14841
14949
|
searchInput = _context$searchInput[0],
|
|
14842
14950
|
setSearchInput = _context$searchInput[1],
|
|
14843
|
-
onSearch = context.onSearch,
|
|
14844
|
-
onClearSearch = context.onClearSearch,
|
|
14845
|
-
loading = context.loading,
|
|
14846
14951
|
options = context.options;
|
|
14847
14952
|
|
|
14848
14953
|
var onClick = function onClick() {
|
|
@@ -14864,16 +14969,12 @@ var Header$2 = function Header() {
|
|
|
14864
14969
|
placeholder: 'Pesquisa',
|
|
14865
14970
|
setValue: setSearchInput,
|
|
14866
14971
|
value: searchInput,
|
|
14867
|
-
onPressEnter: onSearch,
|
|
14868
|
-
clearable: searchInput !== '' && searchInput === search ? onClearSearch : undefined,
|
|
14869
14972
|
icon: {
|
|
14870
14973
|
icon: {
|
|
14871
14974
|
type: 'feather',
|
|
14872
|
-
icon: 'search'
|
|
14873
|
-
onClick: onSearch
|
|
14975
|
+
icon: 'search'
|
|
14874
14976
|
}
|
|
14875
|
-
}
|
|
14876
|
-
loading: loading
|
|
14977
|
+
}
|
|
14877
14978
|
}));
|
|
14878
14979
|
};
|
|
14879
14980
|
|
|
@@ -14891,7 +14992,7 @@ var Label$2 = function Label(props) {
|
|
|
14891
14992
|
checked: checked.findIndex(function (e) {
|
|
14892
14993
|
return e.value === value;
|
|
14893
14994
|
}) !== -1,
|
|
14894
|
-
label:
|
|
14995
|
+
label: LabelComponent ? React__default.createElement(LabelComponent, Object.assign({}, props.option)) : props.option.label,
|
|
14895
14996
|
disabled: disabled,
|
|
14896
14997
|
onChange: function onChange(event) {
|
|
14897
14998
|
var isChecked = event.target.checked;
|
|
@@ -14919,32 +15020,21 @@ var Label$2 = function Label(props) {
|
|
|
14919
15020
|
right: 's3',
|
|
14920
15021
|
bottom: 's3'
|
|
14921
15022
|
},
|
|
14922
|
-
width: '100%'
|
|
15023
|
+
width: '100%',
|
|
15024
|
+
tabIndex: -1
|
|
14923
15025
|
});
|
|
14924
15026
|
};
|
|
14925
15027
|
|
|
14926
|
-
var getOptions$1 = function getOptions(options
|
|
15028
|
+
var getOptions$1 = function getOptions(options) {
|
|
14927
15029
|
return options.map(function (option) {
|
|
14928
|
-
var _label = option.label,
|
|
14929
|
-
onClick = option.onClick;
|
|
14930
15030
|
var data = {
|
|
14931
15031
|
data: option.data,
|
|
14932
15032
|
value: option.value
|
|
14933
15033
|
};
|
|
14934
15034
|
var parsed = {
|
|
14935
|
-
label: function label(option) {
|
|
14936
|
-
return React__default.createElement(Label$2, {
|
|
14937
|
-
option: _extends({}, data, {
|
|
14938
|
-
disabled: option.disabled
|
|
14939
|
-
}),
|
|
14940
|
-
label: _label,
|
|
14941
|
-
value: value
|
|
14942
|
-
});
|
|
14943
|
-
},
|
|
14944
|
-
onClick: onClick,
|
|
14945
15035
|
data: data,
|
|
15036
|
+
label: option.label,
|
|
14946
15037
|
disabled: option.disabled,
|
|
14947
|
-
rules: option.rules,
|
|
14948
15038
|
keepOpen: true
|
|
14949
15039
|
};
|
|
14950
15040
|
return parsed;
|
|
@@ -14966,22 +15056,47 @@ var parseValue = function parseValue(value) {
|
|
|
14966
15056
|
return parsed;
|
|
14967
15057
|
};
|
|
14968
15058
|
|
|
14969
|
-
var useSelectMultiple = function useSelectMultiple(props, _ref) {
|
|
14970
|
-
var
|
|
14971
|
-
|
|
15059
|
+
var useSelectMultiple = function useSelectMultiple(props, _ref, _ref2, _setOpen) {
|
|
15060
|
+
var highlight = _ref[0],
|
|
15061
|
+
setHighlight = _ref[1];
|
|
15062
|
+
var options = _ref2[0],
|
|
15063
|
+
setOptions = _ref2[1];
|
|
14972
15064
|
var initial = parseValue(props.value);
|
|
14973
15065
|
|
|
14974
15066
|
var _useState = useState([].concat(initial)),
|
|
14975
15067
|
checked = _useState[0],
|
|
14976
15068
|
setChecked = _useState[1];
|
|
14977
15069
|
|
|
14978
|
-
var parsedOptions = getOptions$1(options
|
|
15070
|
+
var parsedOptions = getOptions$1(options);
|
|
14979
15071
|
var inputContent = getInputContent$1(props.value);
|
|
14980
15072
|
|
|
14981
15073
|
var onReset = function onReset() {
|
|
14982
15074
|
setChecked([].concat(initial));
|
|
14983
15075
|
};
|
|
14984
15076
|
|
|
15077
|
+
var onSelectHighlight = function onSelectHighlight(index, option) {
|
|
15078
|
+
if (!isAvailable(index, option, props.rules)) {
|
|
15079
|
+
return;
|
|
15080
|
+
}
|
|
15081
|
+
|
|
15082
|
+
setChecked(function (prev) {
|
|
15083
|
+
var index = prev.findIndex(function (e) {
|
|
15084
|
+
return e.value === option.value;
|
|
15085
|
+
});
|
|
15086
|
+
|
|
15087
|
+
if (index < 0) {
|
|
15088
|
+
return [].concat(prev, [{
|
|
15089
|
+
data: option.data,
|
|
15090
|
+
value: option.value
|
|
15091
|
+
}]);
|
|
15092
|
+
}
|
|
15093
|
+
|
|
15094
|
+
var news = [].concat(prev);
|
|
15095
|
+
news.splice(index, 1);
|
|
15096
|
+
return news;
|
|
15097
|
+
});
|
|
15098
|
+
};
|
|
15099
|
+
|
|
14985
15100
|
var returnData = {
|
|
14986
15101
|
parsedOptions: parsedOptions,
|
|
14987
15102
|
options: [options, setOptions],
|
|
@@ -14989,12 +15104,27 @@ var useSelectMultiple = function useSelectMultiple(props, _ref) {
|
|
|
14989
15104
|
onReset: onReset,
|
|
14990
15105
|
menu: {
|
|
14991
15106
|
itemSpacing: undefined,
|
|
14992
|
-
before: React__default.createElement(Header$2, null),
|
|
15107
|
+
before: React__default.createElement(React__default.Fragment, null, React__default.createElement(Header$2, null), React__default.createElement(HiddenInput, Object.assign({}, useNavigation({
|
|
15108
|
+
highlight: [highlight, setHighlight],
|
|
15109
|
+
options: options,
|
|
15110
|
+
onSelectHighlight: onSelectHighlight,
|
|
15111
|
+
rules: props.rules
|
|
15112
|
+
})))),
|
|
14993
15113
|
after: {
|
|
14994
15114
|
fluid: true,
|
|
14995
15115
|
children: React__default.createElement(Footer$1, null)
|
|
14996
15116
|
},
|
|
14997
|
-
maxHeight: props.maxHeight || (props.selectAll ? '269px' : '224px')
|
|
15117
|
+
maxHeight: props.maxHeight || (props.selectAll ? '269px' : '224px'),
|
|
15118
|
+
label: function label(option) {
|
|
15119
|
+
return React__default.createElement(Label$2, {
|
|
15120
|
+
option: _extends({}, option, {
|
|
15121
|
+
value: option.data.value,
|
|
15122
|
+
data: option.data.data
|
|
15123
|
+
}),
|
|
15124
|
+
label: props.optionLabel,
|
|
15125
|
+
value: initial
|
|
15126
|
+
});
|
|
15127
|
+
}
|
|
14998
15128
|
},
|
|
14999
15129
|
getContext: function getContext(base, children) {
|
|
15000
15130
|
return React__default.createElement(Provider$2.Provider, {
|
|
@@ -15037,16 +15167,6 @@ var useSelectMultiple = function useSelectMultiple(props, _ref) {
|
|
|
15037
15167
|
return returnData;
|
|
15038
15168
|
};
|
|
15039
15169
|
|
|
15040
|
-
var _templateObject$o, _templateObject2$i, _templateObject3$f;
|
|
15041
|
-
var RelativeContainer$2 = styled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n position: relative;\n ", ";\n"])), function (_ref) {
|
|
15042
|
-
var width = _ref.width;
|
|
15043
|
-
return !width ? null : css(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
|
|
15044
|
-
});
|
|
15045
|
-
var EmptyContentContainer = styled.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n"])), function (_ref2) {
|
|
15046
|
-
var theme = _ref2.theme;
|
|
15047
|
-
return theme.spacings.s3;
|
|
15048
|
-
});
|
|
15049
|
-
|
|
15050
15170
|
var Select = React__default.forwardRef(function (props, ref) {
|
|
15051
15171
|
var position = props.position,
|
|
15052
15172
|
loader = props.loader,
|
|
@@ -15056,38 +15176,44 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15056
15176
|
options = _useState[0],
|
|
15057
15177
|
setOptions = _useState[1];
|
|
15058
15178
|
|
|
15059
|
-
var
|
|
15060
|
-
|
|
15061
|
-
|
|
15062
|
-
onReset = _ref.onReset,
|
|
15063
|
-
menuProps = _ref.menu,
|
|
15064
|
-
getContext = _ref.getContext,
|
|
15065
|
-
onClear = _ref.onClear,
|
|
15066
|
-
dirty = _ref.dirty;
|
|
15067
|
-
|
|
15068
|
-
var _useState2 = useState(true),
|
|
15069
|
-
_loading = _useState2[0],
|
|
15070
|
-
setLoading = _useState2[1];
|
|
15179
|
+
var _useState2 = useState(-1),
|
|
15180
|
+
highlight = _useState2[0],
|
|
15181
|
+
setHighlight = _useState2[1];
|
|
15071
15182
|
|
|
15072
|
-
var _useState3 = useState(
|
|
15073
|
-
|
|
15074
|
-
|
|
15183
|
+
var _useState3 = useState(false),
|
|
15184
|
+
open = _useState3[0],
|
|
15185
|
+
setOpen = _useState3[1];
|
|
15186
|
+
|
|
15187
|
+
var hook = props.type === 'select-multiple' ? useSelectMultiple : useSelect;
|
|
15188
|
+
|
|
15189
|
+
var _hook = hook(props, [highlight, setHighlight], [options, setOptions], setOpen),
|
|
15190
|
+
parsedOptions = _hook.parsedOptions,
|
|
15191
|
+
inputContent = _hook.inputContent,
|
|
15192
|
+
onReset = _hook.onReset,
|
|
15193
|
+
menuProps = _hook.menu,
|
|
15194
|
+
getContext = _hook.getContext,
|
|
15195
|
+
onClear = _hook.onClear,
|
|
15196
|
+
dirty = _hook.dirty;
|
|
15075
15197
|
|
|
15076
|
-
var _useState4 = useState(
|
|
15077
|
-
|
|
15078
|
-
|
|
15198
|
+
var _useState4 = useState(true),
|
|
15199
|
+
_loading = _useState4[0],
|
|
15200
|
+
setLoading = _useState4[1];
|
|
15079
15201
|
|
|
15080
|
-
var _useState5 = useState(
|
|
15081
|
-
|
|
15082
|
-
|
|
15202
|
+
var _useState5 = useState(''),
|
|
15203
|
+
search = _useState5[0],
|
|
15204
|
+
_setSearch = _useState5[1];
|
|
15083
15205
|
|
|
15084
|
-
var _useState6 = useState(
|
|
15085
|
-
|
|
15086
|
-
|
|
15206
|
+
var _useState6 = useState(''),
|
|
15207
|
+
searchInput = _useState6[0],
|
|
15208
|
+
setSearchInput = _useState6[1];
|
|
15087
15209
|
|
|
15088
|
-
var _useState7 = useState(
|
|
15089
|
-
|
|
15090
|
-
|
|
15210
|
+
var _useState7 = useState(1),
|
|
15211
|
+
page = _useState7[0],
|
|
15212
|
+
setPage = _useState7[1];
|
|
15213
|
+
|
|
15214
|
+
var _useState8 = useState(false),
|
|
15215
|
+
lastPage = _useState8[0],
|
|
15216
|
+
setLastPage = _useState8[1];
|
|
15091
15217
|
|
|
15092
15218
|
var loading = props.loading || _loading;
|
|
15093
15219
|
|
|
@@ -15097,18 +15223,18 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15097
15223
|
setPage(1);
|
|
15098
15224
|
};
|
|
15099
15225
|
|
|
15100
|
-
var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value', 'onClear', 'placeholder', 'initialLoader']);
|
|
15226
|
+
var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value', 'onClear', 'placeholder', 'initialLoader', 'onClickOption', 'rules', 'onScrollEnd', 'position', 'center', 'maxHeight', 'emptyContent', 'optionLabel']);
|
|
15101
15227
|
|
|
15102
15228
|
var _onScrollEnd = props.onScrollEnd || function () {};
|
|
15103
15229
|
|
|
15104
|
-
var onScrollEnd = function onScrollEnd() {
|
|
15230
|
+
var onScrollEnd = function onScrollEnd(e) {
|
|
15105
15231
|
if (!lastPage && !loading) {
|
|
15106
15232
|
setPage(function (prev) {
|
|
15107
15233
|
return prev + 1;
|
|
15108
15234
|
});
|
|
15109
15235
|
}
|
|
15110
15236
|
|
|
15111
|
-
_onScrollEnd();
|
|
15237
|
+
_onScrollEnd(e);
|
|
15112
15238
|
};
|
|
15113
15239
|
|
|
15114
15240
|
var onSubmit = useCallback(function () {
|
|
@@ -15117,9 +15243,9 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15117
15243
|
return Promise.resolve(loader(search, page)).then(function (optionsResult) {
|
|
15118
15244
|
if (optionsResult === null) return;
|
|
15119
15245
|
|
|
15120
|
-
var
|
|
15121
|
-
options =
|
|
15122
|
-
lastPage =
|
|
15246
|
+
var _ref = Array.isArray(optionsResult) ? [optionsResult, true] : [optionsResult.options, optionsResult.lastPage],
|
|
15247
|
+
options = _ref[0],
|
|
15248
|
+
lastPage = _ref[1];
|
|
15123
15249
|
|
|
15124
15250
|
var initial = initialLoader ? initialLoader() : [];
|
|
15125
15251
|
var filtered = initialLoader ? options.filter(function (x) {
|
|
@@ -15158,15 +15284,17 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15158
15284
|
useEffect(function () {
|
|
15159
15285
|
setSearchInput(search);
|
|
15160
15286
|
}, [search]);
|
|
15161
|
-
|
|
15162
|
-
|
|
15163
|
-
|
|
15164
|
-
|
|
15165
|
-
|
|
15166
|
-
|
|
15167
|
-
|
|
15168
|
-
|
|
15169
|
-
|
|
15287
|
+
useEffect(function () {
|
|
15288
|
+
if (page === 1) setHighlight(-1);
|
|
15289
|
+
}, [page]);
|
|
15290
|
+
useEffect(function () {
|
|
15291
|
+
var timeoutId = setTimeout(function () {
|
|
15292
|
+
return setSearch(searchInput);
|
|
15293
|
+
}, 1000);
|
|
15294
|
+
return function () {
|
|
15295
|
+
return clearTimeout(timeoutId);
|
|
15296
|
+
};
|
|
15297
|
+
}, [searchInput]);
|
|
15170
15298
|
|
|
15171
15299
|
var onClick = function onClick() {
|
|
15172
15300
|
setOpen(function (prev) {
|
|
@@ -15177,11 +15305,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15177
15305
|
var isEmpty = (typeof props.value === 'string' || Array.isArray(props.value)) && props.value.length === 0;
|
|
15178
15306
|
return getContext({
|
|
15179
15307
|
setOpen: setOpen,
|
|
15180
|
-
|
|
15181
|
-
searchInput: [searchInput, setSearchInput],
|
|
15182
|
-
onSearch: onSearch,
|
|
15183
|
-
onClearSearch: onClearSearch,
|
|
15184
|
-
loading: loading
|
|
15308
|
+
searchInput: [searchInput, setSearchInput]
|
|
15185
15309
|
}, React__default.createElement(RelativeContainer$2, {
|
|
15186
15310
|
ref: useOnClickOut(function () {
|
|
15187
15311
|
return setOpen(false);
|
|
@@ -15192,6 +15316,17 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15192
15316
|
htmlReadOnly: true,
|
|
15193
15317
|
onClick: onClick,
|
|
15194
15318
|
loading: loading,
|
|
15319
|
+
onKeyDown: function onKeyDown(e) {
|
|
15320
|
+
if (e.key === ' ') {
|
|
15321
|
+
setOpen(function (prev) {
|
|
15322
|
+
return !prev;
|
|
15323
|
+
});
|
|
15324
|
+
} else if (['ArrowDown', 'ArrowUp'].includes(e.key)) {
|
|
15325
|
+
setOpen(true);
|
|
15326
|
+
}
|
|
15327
|
+
|
|
15328
|
+
if (props.onKeyDown) props.onKeyDown(e);
|
|
15329
|
+
},
|
|
15195
15330
|
dirty: dirty,
|
|
15196
15331
|
icon: {
|
|
15197
15332
|
icon: {
|
|
@@ -15208,14 +15343,21 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15208
15343
|
} : {
|
|
15209
15344
|
clearable: onClear
|
|
15210
15345
|
}, {
|
|
15211
|
-
children:
|
|
15346
|
+
children: inputContent
|
|
15212
15347
|
})), React__default.createElement(Menu, Object.assign({}, menuProps, {
|
|
15348
|
+
rules: (props.rules || []).map(function (rule) {
|
|
15349
|
+
return function (index, data) {
|
|
15350
|
+
return rule(index, data.data);
|
|
15351
|
+
};
|
|
15352
|
+
}),
|
|
15353
|
+
highlight: highlight,
|
|
15213
15354
|
open: open,
|
|
15214
15355
|
close: function close() {
|
|
15215
15356
|
return setOpen(false);
|
|
15216
15357
|
},
|
|
15217
15358
|
options: parsedOptions,
|
|
15218
15359
|
onScrollEnd: onScrollEnd,
|
|
15360
|
+
scrollTabIndex: -1,
|
|
15219
15361
|
width: props.inputWidth || '100%',
|
|
15220
15362
|
bordered: true,
|
|
15221
15363
|
position: position,
|
|
@@ -15555,15 +15697,7 @@ var Component = React__default.forwardRef(function (props, ref) {
|
|
|
15555
15697
|
|
|
15556
15698
|
var options = Object.keys(countries).map(function (iso) {
|
|
15557
15699
|
return {
|
|
15558
|
-
label:
|
|
15559
|
-
var country = option.data;
|
|
15560
|
-
return React__default.createElement(Label$3, null, React__default.createElement(Flag, {
|
|
15561
|
-
iso: iso
|
|
15562
|
-
}), country.name, React__default.createElement("span", null, "+", country.ddi));
|
|
15563
|
-
},
|
|
15564
|
-
onClick: function onClick() {
|
|
15565
|
-
setCountry(countries[iso]);
|
|
15566
|
-
},
|
|
15700
|
+
label: country.name,
|
|
15567
15701
|
data: countries[iso]
|
|
15568
15702
|
};
|
|
15569
15703
|
});
|
|
@@ -15629,6 +15763,16 @@ var Component = React__default.forwardRef(function (props, ref) {
|
|
|
15629
15763
|
return setOpen(false);
|
|
15630
15764
|
},
|
|
15631
15765
|
options: options,
|
|
15766
|
+
onClickOption: function onClickOption(_index, _ref) {
|
|
15767
|
+
var iso = _ref.iso;
|
|
15768
|
+
return setCountry(countries[iso]);
|
|
15769
|
+
},
|
|
15770
|
+
label: function label(option) {
|
|
15771
|
+
var country = option.data;
|
|
15772
|
+
return React__default.createElement(Label$3, null, React__default.createElement(Flag, {
|
|
15773
|
+
iso: country.iso
|
|
15774
|
+
}), country.name, React__default.createElement("span", null, "+", country.ddi));
|
|
15775
|
+
},
|
|
15632
15776
|
width: '100%',
|
|
15633
15777
|
maxHeight: '165px',
|
|
15634
15778
|
bordered: true,
|
|
@@ -15648,7 +15792,7 @@ var Phone = Object.assign(Component, {
|
|
|
15648
15792
|
getPhoneDetails: getPhoneDetails
|
|
15649
15793
|
});
|
|
15650
15794
|
|
|
15651
|
-
var _templateObject$r, _templateObject2$l, _templateObject3$h, _templateObject4$
|
|
15795
|
+
var _templateObject$r, _templateObject2$l, _templateObject3$h, _templateObject4$c, _templateObject5$9, _templateObject6$8, _templateObject7$8, _templateObject8$7, _templateObject9$7;
|
|
15652
15796
|
var RelativeContainer$4 = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n position: relative;\n\n input {\n color: transparent;\n }\n"])));
|
|
15653
15797
|
var LabelContainer$2 = styled.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: ", ";\n"])), function (_ref) {
|
|
15654
15798
|
var theme = _ref.theme;
|
|
@@ -15664,7 +15808,7 @@ var Container$5 = styled.div(_templateObject3$h || (_templateObject3$h = _tagged
|
|
|
15664
15808
|
var borderwidth = 1;
|
|
15665
15809
|
|
|
15666
15810
|
if (paddingless) {
|
|
15667
|
-
return css(_templateObject4$
|
|
15811
|
+
return 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);
|
|
15668
15812
|
}
|
|
15669
15813
|
|
|
15670
15814
|
return 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);
|
|
@@ -15798,7 +15942,7 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
|
|
|
15798
15942
|
});
|
|
15799
15943
|
DatePicker.displayName = 'DatePicker';
|
|
15800
15944
|
|
|
15801
|
-
var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$
|
|
15945
|
+
var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$d, _templateObject5$a, _templateObject6$9, _templateObject7$9, _templateObject8$8;
|
|
15802
15946
|
var LabelContainer$3 = styled.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) {
|
|
15803
15947
|
var theme = _ref.theme;
|
|
15804
15948
|
return theme.useTypography('p');
|
|
@@ -15813,7 +15957,7 @@ var LabelContainer$3 = styled.div(_templateObject$s || (_templateObject$s = _tag
|
|
|
15813
15957
|
if (!keepSpace || children) return;
|
|
15814
15958
|
return css(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n :before {\n content: '';\n white-space: pre;\n }\n "])));
|
|
15815
15959
|
});
|
|
15816
|
-
var Label$4 = styled.label(_templateObject4$
|
|
15960
|
+
var Label$4 = styled.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) {
|
|
15817
15961
|
var theme = _ref4.theme;
|
|
15818
15962
|
return theme.spacings.s1;
|
|
15819
15963
|
}, function (_ref5) {
|
|
@@ -15972,7 +16116,7 @@ var NavBar = styled.div(_templateObject$x || (_templateObject$x = _taggedTemplat
|
|
|
15972
16116
|
return theme.colors.blue;
|
|
15973
16117
|
});
|
|
15974
16118
|
|
|
15975
|
-
var _templateObject$y, _templateObject2$q, _templateObject3$l, _templateObject4$
|
|
16119
|
+
var _templateObject$y, _templateObject2$q, _templateObject3$l, _templateObject4$e, _templateObject5$b;
|
|
15976
16120
|
var Label$5 = styled.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) {
|
|
15977
16121
|
var theme = _ref.theme;
|
|
15978
16122
|
return theme.useTypography('p');
|
|
@@ -15988,7 +16132,7 @@ var Label$5 = styled.label(_templateObject$y || (_templateObject$y = _taggedTemp
|
|
|
15988
16132
|
}, function (_ref3) {
|
|
15989
16133
|
var disabled = _ref3.$disabled;
|
|
15990
16134
|
if (!disabled) return;
|
|
15991
|
-
return css(_templateObject4$
|
|
16135
|
+
return css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15992
16136
|
}, LabelContainer$4, function (_ref4) {
|
|
15993
16137
|
var required = _ref4.$required,
|
|
15994
16138
|
viewMode = _ref4.$viewMode;
|
|
@@ -16291,7 +16435,7 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
16291
16435
|
});
|
|
16292
16436
|
Range.displayName = 'input';
|
|
16293
16437
|
|
|
16294
|
-
var _templateObject$E, _templateObject2$t, _templateObject3$n, _templateObject4$
|
|
16438
|
+
var _templateObject$E, _templateObject2$t, _templateObject3$n, _templateObject4$f, _templateObject5$c, _templateObject6$a, _templateObject7$a;
|
|
16295
16439
|
var LabelContainer$5 = styled.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
|
|
16296
16440
|
var theme = _ref.theme;
|
|
16297
16441
|
return theme.useTypography('p');
|
|
@@ -16306,7 +16450,7 @@ var Label$6 = styled.label(_templateObject2$t || (_templateObject2$t = _taggedTe
|
|
|
16306
16450
|
return css(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
|
|
16307
16451
|
}
|
|
16308
16452
|
|
|
16309
|
-
return css(_templateObject4$
|
|
16453
|
+
return css(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
16310
16454
|
}, function (_ref4) {
|
|
16311
16455
|
var required = _ref4.required;
|
|
16312
16456
|
if (!required) return;
|
|
@@ -16540,7 +16684,7 @@ var parse = function parse(value) {
|
|
|
16540
16684
|
});
|
|
16541
16685
|
};
|
|
16542
16686
|
|
|
16543
|
-
var _templateObject$F, _templateObject2$u, _templateObject3$o, _templateObject4$
|
|
16687
|
+
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;
|
|
16544
16688
|
var RelativeContainer$5 = styled.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"])));
|
|
16545
16689
|
var LabelContainer$6 = styled.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) {
|
|
16546
16690
|
var theme = _ref.theme;
|
|
@@ -16555,7 +16699,7 @@ var LabelContainer$6 = styled.div(_templateObject2$u || (_templateObject2$u = _t
|
|
|
16555
16699
|
}, function (_ref4) {
|
|
16556
16700
|
var onClick = _ref4.onClick;
|
|
16557
16701
|
if (!onClick) return;
|
|
16558
|
-
return css(_templateObject4$
|
|
16702
|
+
return css(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
16559
16703
|
});
|
|
16560
16704
|
var Container$6 = styled.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) {
|
|
16561
16705
|
var theme = _ref5.theme;
|
|
@@ -16590,7 +16734,7 @@ var Button$4 = styled.button(_templateObject9$8 || (_templateObject9$8 = _tagged
|
|
|
16590
16734
|
if (!onClick) return;
|
|
16591
16735
|
return css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
16592
16736
|
});
|
|
16593
|
-
var LabelText$1 = styled.label(_templateObject11$
|
|
16737
|
+
var LabelText$1 = styled.label(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref12) {
|
|
16594
16738
|
var theme = _ref12.theme;
|
|
16595
16739
|
return theme.spacings.s1;
|
|
16596
16740
|
}, function (_ref13) {
|
|
@@ -16701,6 +16845,29 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16701
16845
|
ref: ref,
|
|
16702
16846
|
readOnly: true
|
|
16703
16847
|
}));
|
|
16848
|
+
var options = [{
|
|
16849
|
+
label: 'Hoje',
|
|
16850
|
+
data: {
|
|
16851
|
+
intervalType: 'day'
|
|
16852
|
+
}
|
|
16853
|
+
}, {
|
|
16854
|
+
label: 'Semana',
|
|
16855
|
+
data: {
|
|
16856
|
+
intervalType: 'week'
|
|
16857
|
+
}
|
|
16858
|
+
}, {
|
|
16859
|
+
label: 'Mês',
|
|
16860
|
+
data: {
|
|
16861
|
+
intervalType: 'month'
|
|
16862
|
+
}
|
|
16863
|
+
}, {
|
|
16864
|
+
label: 'Personalizado',
|
|
16865
|
+
data: {
|
|
16866
|
+
intervalType: 'custom'
|
|
16867
|
+
},
|
|
16868
|
+
keepOpen: true,
|
|
16869
|
+
caret: true
|
|
16870
|
+
}];
|
|
16704
16871
|
return React__default.createElement(RelativeContainer$5, {
|
|
16705
16872
|
ref: useOnClickOut(function () {
|
|
16706
16873
|
return setOpen(null);
|
|
@@ -16761,33 +16928,16 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16761
16928
|
references: {
|
|
16762
16929
|
bottom: '35px'
|
|
16763
16930
|
},
|
|
16764
|
-
options:
|
|
16765
|
-
|
|
16766
|
-
|
|
16767
|
-
|
|
16768
|
-
|
|
16769
|
-
|
|
16770
|
-
|
|
16771
|
-
|
|
16772
|
-
|
|
16773
|
-
|
|
16774
|
-
},
|
|
16775
|
-
data: {}
|
|
16776
|
-
}, {
|
|
16777
|
-
label: 'Mês',
|
|
16778
|
-
onClick: function onClick() {
|
|
16779
|
-
return setValue(intervalTypes.month.initial(props.min));
|
|
16780
|
-
},
|
|
16781
|
-
data: {}
|
|
16782
|
-
}, {
|
|
16783
|
-
label: 'Personalizado',
|
|
16784
|
-
onClick: function onClick() {
|
|
16785
|
-
return setOpen('calendar');
|
|
16786
|
-
},
|
|
16787
|
-
data: {},
|
|
16788
|
-
keepOpen: true,
|
|
16789
|
-
caret: true
|
|
16790
|
-
}],
|
|
16931
|
+
options: options,
|
|
16932
|
+
onClickOption: function onClickOption(_index, _ref2) {
|
|
16933
|
+
var intervalType = _ref2.intervalType;
|
|
16934
|
+
|
|
16935
|
+
if (intervalType === 'custom') {
|
|
16936
|
+
setOpen('calendar');
|
|
16937
|
+
} else {
|
|
16938
|
+
setValue(intervalTypes[intervalType].initial(props.min));
|
|
16939
|
+
}
|
|
16940
|
+
},
|
|
16791
16941
|
width: '165px',
|
|
16792
16942
|
itemSpacing: 's3',
|
|
16793
16943
|
bordered: true
|
|
@@ -16798,9 +16948,9 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16798
16948
|
open: open === 'calendar',
|
|
16799
16949
|
initialValue: value,
|
|
16800
16950
|
onSubmit: {
|
|
16801
|
-
onClick: function onClick(
|
|
16802
|
-
var start =
|
|
16803
|
-
end =
|
|
16951
|
+
onClick: function onClick(_ref3) {
|
|
16952
|
+
var start = _ref3[0],
|
|
16953
|
+
end = _ref3[1];
|
|
16804
16954
|
if (start === null || end === null) return;
|
|
16805
16955
|
setValue([start, end]);
|
|
16806
16956
|
setOpen(null);
|
|
@@ -17437,7 +17587,7 @@ var Input$5 = Object.assign(Component$2, {
|
|
|
17437
17587
|
getPhoneDetails: Phone.getPhoneDetails
|
|
17438
17588
|
});
|
|
17439
17589
|
|
|
17440
|
-
var _templateObject$L, _templateObject2$x, _templateObject3$q, _templateObject4$
|
|
17590
|
+
var _templateObject$L, _templateObject2$x, _templateObject3$q, _templateObject4$h;
|
|
17441
17591
|
var Container$7 = styled(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) {
|
|
17442
17592
|
var theme = _ref.theme;
|
|
17443
17593
|
return theme.colors.white;
|
|
@@ -17461,7 +17611,7 @@ var Title = styled.div(_templateObject3$q || (_templateObject3$q = _taggedTempla
|
|
|
17461
17611
|
var getColor = _ref6.theme.getColor;
|
|
17462
17612
|
return getColor('greyishBlue', 50);
|
|
17463
17613
|
});
|
|
17464
|
-
var Item = styled.div(_templateObject4$
|
|
17614
|
+
var Item = styled.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) {
|
|
17465
17615
|
var s1 = _ref7.theme.spacings.s1;
|
|
17466
17616
|
return s1 + " " + s1 + " " + s1 + " 0";
|
|
17467
17617
|
}, function (_ref8) {
|
|
@@ -17642,13 +17792,13 @@ var AppliedFilters = Object.assign(function (props) {
|
|
|
17642
17792
|
Menu: AppliedFiltersMenu
|
|
17643
17793
|
});
|
|
17644
17794
|
|
|
17645
|
-
var _templateObject$N, _templateObject2$z, _templateObject3$s, _templateObject4$
|
|
17795
|
+
var _templateObject$N, _templateObject2$z, _templateObject3$s, _templateObject4$i, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$9, _templateObject10$8;
|
|
17646
17796
|
var Container$9 = styled.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) {
|
|
17647
17797
|
return props.size === 'mini' && css(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
|
|
17648
17798
|
}, function (props) {
|
|
17649
17799
|
return props.size === 'small' && css(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 131px;\n "])));
|
|
17650
17800
|
}, function (props) {
|
|
17651
|
-
return props.size === 'medium' && css(_templateObject4$
|
|
17801
|
+
return props.size === 'medium' && css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
|
|
17652
17802
|
}, function (props) {
|
|
17653
17803
|
return props.size === 'big' && css(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n width: 414px;\n height: 324px;\n "])));
|
|
17654
17804
|
}, function (props) {
|
|
@@ -17778,8 +17928,7 @@ var getInstance = function getInstance(props) {
|
|
|
17778
17928
|
var _getOptions = function _getOptions(value) {
|
|
17779
17929
|
try {
|
|
17780
17930
|
var options = intialOptions.filter(function (option) {
|
|
17781
|
-
|
|
17782
|
-
return strCmp(label, value, {
|
|
17931
|
+
return strCmp(option.label, value, {
|
|
17783
17932
|
contain: true
|
|
17784
17933
|
});
|
|
17785
17934
|
});
|
|
@@ -17944,9 +18093,8 @@ var Submenu = function Submenu(props) {
|
|
|
17944
18093
|
|
|
17945
18094
|
var optionsParser = function optionsParser(option) {
|
|
17946
18095
|
return {
|
|
17947
|
-
label:
|
|
17948
|
-
|
|
17949
|
-
data: {}
|
|
18096
|
+
label: option.label,
|
|
18097
|
+
data: option
|
|
17950
18098
|
};
|
|
17951
18099
|
};
|
|
17952
18100
|
|
|
@@ -17964,6 +18112,8 @@ var Submenu = function Submenu(props) {
|
|
|
17964
18112
|
close: close,
|
|
17965
18113
|
width: isDynamic ? '275px' : '160px',
|
|
17966
18114
|
height: '261px',
|
|
18115
|
+
onClickOption: onClickOption,
|
|
18116
|
+
label: props.optionLabel,
|
|
17967
18117
|
containerSpacing: {
|
|
17968
18118
|
top: 's3',
|
|
17969
18119
|
left: 's1',
|
|
@@ -18008,16 +18158,11 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
18008
18158
|
|
|
18009
18159
|
var items = props.items.map(function (item) {
|
|
18010
18160
|
return {
|
|
18011
|
-
label:
|
|
18161
|
+
label: item.label,
|
|
18012
18162
|
delimiter: item.delimiter,
|
|
18013
18163
|
keepOpen: true,
|
|
18014
18164
|
caret: true,
|
|
18015
|
-
|
|
18016
|
-
setActive(function (prev) {
|
|
18017
|
-
return prev === index ? -1 : index;
|
|
18018
|
-
});
|
|
18019
|
-
},
|
|
18020
|
-
data: {}
|
|
18165
|
+
data: item
|
|
18021
18166
|
};
|
|
18022
18167
|
});
|
|
18023
18168
|
var selected = active >= 0 && active < props.items.length ? props.items[active] : undefined;
|
|
@@ -18031,6 +18176,12 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
18031
18176
|
close: close,
|
|
18032
18177
|
width: '160px',
|
|
18033
18178
|
maxHeight: '261px',
|
|
18179
|
+
onClickOption: function onClickOption(index) {
|
|
18180
|
+
setActive(function (prev) {
|
|
18181
|
+
return prev === index ? -1 : index;
|
|
18182
|
+
});
|
|
18183
|
+
},
|
|
18184
|
+
label: props.filterLabel,
|
|
18034
18185
|
containerSpacing: {
|
|
18035
18186
|
top: 's1',
|
|
18036
18187
|
left: 's1',
|
|
@@ -18048,6 +18199,7 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
18048
18199
|
}
|
|
18049
18200
|
}, props.containerProps || {}), React__default.createElement(Submenu, {
|
|
18050
18201
|
item: selected,
|
|
18202
|
+
optionLabel: props.optionLabel && selected ? props.optionLabel[selected.name] : undefined,
|
|
18051
18203
|
close: function close() {
|
|
18052
18204
|
return setActive(-1);
|
|
18053
18205
|
},
|
|
@@ -18062,7 +18214,7 @@ var Filters = Object.assign(function (props) {
|
|
|
18062
18214
|
setAppliedFilters = props.setAppliedFilters,
|
|
18063
18215
|
containerProps = props.containerProps,
|
|
18064
18216
|
subContainerProps = props.subContainerProps;
|
|
18065
|
-
var buttonProps = filterObject(props, ['items', 'setAppliedFilters']);
|
|
18217
|
+
var buttonProps = filterObject(props, ['items', 'setAppliedFilters', 'filterLabel', 'optionLabel']);
|
|
18066
18218
|
return React__default.createElement(Button$5, Object.assign({}, buttonProps, {
|
|
18067
18219
|
gap: 's4',
|
|
18068
18220
|
getContent: function getContent(open, close) {
|
|
@@ -18072,7 +18224,9 @@ var Filters = Object.assign(function (props) {
|
|
|
18072
18224
|
setAppliedFilters: setAppliedFilters,
|
|
18073
18225
|
items: items,
|
|
18074
18226
|
containerProps: containerProps,
|
|
18075
|
-
subContainerProps: subContainerProps
|
|
18227
|
+
subContainerProps: subContainerProps,
|
|
18228
|
+
filterLabel: props.filterLabel,
|
|
18229
|
+
optionLabel: props.optionLabel
|
|
18076
18230
|
}));
|
|
18077
18231
|
}
|
|
18078
18232
|
}), "Filtros");
|
|
@@ -18087,7 +18241,7 @@ var useContext$3 = function useContext() {
|
|
|
18087
18241
|
return React__default.useContext(Provider$3);
|
|
18088
18242
|
};
|
|
18089
18243
|
|
|
18090
|
-
var _templateObject$Q, _templateObject2$A, _templateObject3$t, _templateObject4$
|
|
18244
|
+
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;
|
|
18091
18245
|
var aligns = {
|
|
18092
18246
|
self: {
|
|
18093
18247
|
horizontal: {
|
|
@@ -18126,7 +18280,7 @@ var Col = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLi
|
|
|
18126
18280
|
}
|
|
18127
18281
|
|
|
18128
18282
|
var w = parseFloat(width) * 100 / 12;
|
|
18129
|
-
return css(_templateObject4$
|
|
18283
|
+
return css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n flex: 0 0 ", "%;\n max-width: ", "%;\n width: 100%;\n "])), w, w);
|
|
18130
18284
|
}, function (_ref2) {
|
|
18131
18285
|
var spacing = _ref2.spacing;
|
|
18132
18286
|
var padding = getSpacings(spacing === undefined ? 's1' : spacing);
|
|
@@ -18178,7 +18332,7 @@ var Col = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLi
|
|
|
18178
18332
|
var bordered = _ref5.bordered,
|
|
18179
18333
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
18180
18334
|
if (!bordered) return;
|
|
18181
|
-
return css(_templateObject11$
|
|
18335
|
+
return css(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
18182
18336
|
}, function (_ref6) {
|
|
18183
18337
|
var fontColor = _ref6.fontColor,
|
|
18184
18338
|
theme = _ref6.theme;
|
|
@@ -18252,7 +18406,7 @@ var Grid$1 = React__default.forwardRef(function (props, ref) {
|
|
|
18252
18406
|
});
|
|
18253
18407
|
Grid$1.displayName = 'Grid';
|
|
18254
18408
|
|
|
18255
|
-
var _templateObject$S, _templateObject2$C, _templateObject3$v, _templateObject4$
|
|
18409
|
+
var _templateObject$S, _templateObject2$C, _templateObject3$v, _templateObject4$k, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$b, _templateObject10$a;
|
|
18256
18410
|
var horizontalAligns = {
|
|
18257
18411
|
around: 'space-around',
|
|
18258
18412
|
between: 'space-between',
|
|
@@ -18277,7 +18431,7 @@ var Row = styled.div(_templateObject$S || (_templateObject$S = _taggedTemplateLi
|
|
|
18277
18431
|
}, function (_ref3) {
|
|
18278
18432
|
var horizontalAlign = _ref3.horizontalAlign;
|
|
18279
18433
|
if (horizontalAlign === undefined) return;
|
|
18280
|
-
return css(_templateObject4$
|
|
18434
|
+
return css(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n justify-content: ", ";\n "])), horizontalAligns[horizontalAlign]);
|
|
18281
18435
|
}, function (_ref4) {
|
|
18282
18436
|
var verticalAlign = _ref4.verticalAlign;
|
|
18283
18437
|
if (verticalAlign === undefined) return;
|
|
@@ -18383,7 +18537,7 @@ var widths = {
|
|
|
18383
18537
|
default: '642.5px'
|
|
18384
18538
|
};
|
|
18385
18539
|
|
|
18386
|
-
var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$
|
|
18540
|
+
var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$l, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$c, _templateObject10$b;
|
|
18387
18541
|
var Background = styled.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) {
|
|
18388
18542
|
var theme = _ref.theme;
|
|
18389
18543
|
return theme.getColor('black', 25);
|
|
@@ -18394,7 +18548,7 @@ var Header$5 = styled.div(_templateObject3$w || (_templateObject3$w = _taggedTem
|
|
|
18394
18548
|
colors = _ref2$theme.colors,
|
|
18395
18549
|
spacings = _ref2$theme.spacings,
|
|
18396
18550
|
useTypography = _ref2$theme.useTypography;
|
|
18397
|
-
return css(_templateObject4$
|
|
18551
|
+
return css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
|
|
18398
18552
|
});
|
|
18399
18553
|
var Footer$2 = styled.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n"])), function (_ref3) {
|
|
18400
18554
|
var _ref3$theme = _ref3.theme,
|
|
@@ -18613,11 +18767,11 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
18613
18767
|
Audit: Audit
|
|
18614
18768
|
});
|
|
18615
18769
|
|
|
18616
|
-
var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$
|
|
18770
|
+
var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$m, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$d, _templateObject10$c, _templateObject11$7;
|
|
18617
18771
|
var Container$c = styled.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
18618
18772
|
var Header$6 = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18619
18773
|
var HeaderImage = styled.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
18620
|
-
var HeaderContent = styled.div(_templateObject4$
|
|
18774
|
+
var HeaderContent = styled.div(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
|
|
18621
18775
|
var MainContent = styled.div(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
|
|
18622
18776
|
var HeaderLine = styled.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) {
|
|
18623
18777
|
return props.height;
|
|
@@ -18630,7 +18784,7 @@ var HeaderLine = styled.div(_templateObject6$g || (_templateObject6$g = _taggedT
|
|
|
18630
18784
|
}, function (props) {
|
|
18631
18785
|
return props.size === 'large' && css(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18632
18786
|
});
|
|
18633
|
-
var MainLine = styled(HeaderLine)(_templateObject11$
|
|
18787
|
+
var MainLine = styled(HeaderLine)(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
18634
18788
|
|
|
18635
18789
|
var Template1 = function Template1(props) {
|
|
18636
18790
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18665,7 +18819,7 @@ var Template1 = function Template1(props) {
|
|
|
18665
18819
|
})));
|
|
18666
18820
|
};
|
|
18667
18821
|
|
|
18668
|
-
var _templateObject$Y, _templateObject2$F, _templateObject3$y, _templateObject4$
|
|
18822
|
+
var _templateObject$Y, _templateObject2$F, _templateObject3$y, _templateObject4$n, _templateObject5$j;
|
|
18669
18823
|
var HeaderLine$1 = styled.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) {
|
|
18670
18824
|
return props.height;
|
|
18671
18825
|
}, function (props) {
|
|
@@ -18673,16 +18827,16 @@ var HeaderLine$1 = styled.div(_templateObject$Y || (_templateObject$Y = _taggedT
|
|
|
18673
18827
|
}, function (props) {
|
|
18674
18828
|
return props.size === 'small' && css(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18675
18829
|
}, function (props) {
|
|
18676
|
-
return props.size === 'medium' && css(_templateObject4$
|
|
18830
|
+
return props.size === 'medium' && css(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18677
18831
|
}, function (props) {
|
|
18678
18832
|
return props.size === 'large' && css(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18679
18833
|
});
|
|
18680
18834
|
|
|
18681
|
-
var _templateObject$Z, _templateObject2$G, _templateObject3$z, _templateObject4$
|
|
18835
|
+
var _templateObject$Z, _templateObject2$G, _templateObject3$z, _templateObject4$o, _templateObject5$k, _templateObject6$h, _templateObject7$h, _templateObject8$f;
|
|
18682
18836
|
var Container$d = styled.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
18683
18837
|
var Template2Container = styled(Container$d)(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
|
|
18684
18838
|
var Header$7 = styled.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18685
|
-
var HeaderImage$1 = styled.div(_templateObject4$
|
|
18839
|
+
var HeaderImage$1 = styled.div(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
18686
18840
|
var HeaderContent$1 = styled.div(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
|
|
18687
18841
|
var MainContent$1 = styled.div(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
|
|
18688
18842
|
var MainLine$1 = styled(HeaderLine$1)(_templateObject7$h || (_templateObject7$h = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
@@ -18741,14 +18895,14 @@ var Template3 = function Template3(props) {
|
|
|
18741
18895
|
}));
|
|
18742
18896
|
};
|
|
18743
18897
|
|
|
18744
|
-
var _templateObject$$, _templateObject2$I, _templateObject3$B, _templateObject4$
|
|
18898
|
+
var _templateObject$$, _templateObject2$I, _templateObject3$B, _templateObject4$p, _templateObject5$l, _templateObject6$i, _templateObject7$i, _templateObject8$g;
|
|
18745
18899
|
var Container$f = styled.div(_templateObject$$ || (_templateObject$$ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
18746
18900
|
var HeaderLine$3 = styled.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) {
|
|
18747
18901
|
return props.height;
|
|
18748
18902
|
}, function (props) {
|
|
18749
18903
|
return props.size === 'mini' && css(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18750
18904
|
}, function (props) {
|
|
18751
|
-
return props.size === 'small' && css(_templateObject4$
|
|
18905
|
+
return props.size === 'small' && css(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18752
18906
|
}, function (props) {
|
|
18753
18907
|
return props.size === 'medium' && css(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18754
18908
|
}, function (props) {
|
|
@@ -18808,13 +18962,13 @@ var Template4 = function Template4(props) {
|
|
|
18808
18962
|
}));
|
|
18809
18963
|
};
|
|
18810
18964
|
|
|
18811
|
-
var _templateObject$10, _templateObject2$J, _templateObject3$C, _templateObject4$
|
|
18965
|
+
var _templateObject$10, _templateObject2$J, _templateObject3$C, _templateObject4$q, _templateObject5$m, _templateObject6$j, _templateObject7$j, _templateObject8$h, _templateObject9$e;
|
|
18812
18966
|
var Container$g = styled.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"])));
|
|
18813
18967
|
var Circle = styled.div(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
|
|
18814
18968
|
var HeaderLine$4 = styled.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) {
|
|
18815
18969
|
return props.height;
|
|
18816
18970
|
}, function (props) {
|
|
18817
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
18971
|
+
return props.size === 'mini' && css(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18818
18972
|
}, function (props) {
|
|
18819
18973
|
return props.size === 'small' && css(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18820
18974
|
}, function (props) {
|
|
@@ -18856,11 +19010,11 @@ var Template5 = function Template5(props) {
|
|
|
18856
19010
|
})));
|
|
18857
19011
|
};
|
|
18858
19012
|
|
|
18859
|
-
var _templateObject$11, _templateObject2$K, _templateObject3$D, _templateObject4$
|
|
19013
|
+
var _templateObject$11, _templateObject2$K, _templateObject3$D, _templateObject4$r, _templateObject5$n, _templateObject6$k, _templateObject7$k, _templateObject8$i, _templateObject9$f;
|
|
18860
19014
|
var Container$h = styled.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"])));
|
|
18861
19015
|
var Header$8 = styled.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n"])));
|
|
18862
19016
|
var Footer$3 = styled.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
|
|
18863
|
-
var HeaderLine$5 = styled.div(_templateObject4$
|
|
19017
|
+
var HeaderLine$5 = styled.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) {
|
|
18864
19018
|
return props.height;
|
|
18865
19019
|
}, function (props) {
|
|
18866
19020
|
return props.size === 'mini' && css(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
@@ -18899,13 +19053,13 @@ var Template6 = function Template6(props) {
|
|
|
18899
19053
|
})));
|
|
18900
19054
|
};
|
|
18901
19055
|
|
|
18902
|
-
var _templateObject$12, _templateObject2$L, _templateObject3$E, _templateObject4$
|
|
19056
|
+
var _templateObject$12, _templateObject2$L, _templateObject3$E, _templateObject4$s, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$g, _templateObject10$d;
|
|
18903
19057
|
var Container$i = styled.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"])));
|
|
18904
19058
|
var Header$9 = styled.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"])));
|
|
18905
19059
|
var HeaderLine$6 = styled.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) {
|
|
18906
19060
|
return props.height;
|
|
18907
19061
|
}, function (props) {
|
|
18908
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
19062
|
+
return props.size === 'mini' && css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18909
19063
|
}, function (props) {
|
|
18910
19064
|
return props.size === 'small' && css(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18911
19065
|
}, function (props) {
|
|
@@ -18933,13 +19087,13 @@ var Template7 = function Template7(props) {
|
|
|
18933
19087
|
})), 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)));
|
|
18934
19088
|
};
|
|
18935
19089
|
|
|
18936
|
-
var _templateObject$13, _templateObject2$M, _templateObject3$F, _templateObject4$
|
|
19090
|
+
var _templateObject$13, _templateObject2$M, _templateObject3$F, _templateObject4$t, _templateObject5$p, _templateObject6$m, _templateObject7$m, _templateObject8$k, _templateObject9$h;
|
|
18937
19091
|
var Container$j = styled.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"])));
|
|
18938
19092
|
var Header$a = styled.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"])));
|
|
18939
19093
|
var HeaderLine$7 = styled.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) {
|
|
18940
19094
|
return props.height;
|
|
18941
19095
|
}, function (props) {
|
|
18942
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
19096
|
+
return props.size === 'mini' && css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18943
19097
|
}, function (props) {
|
|
18944
19098
|
return props.size === 'small' && css(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18945
19099
|
}, function (props) {
|
|
@@ -18976,13 +19130,13 @@ var Template8 = function Template8(props) {
|
|
|
18976
19130
|
})));
|
|
18977
19131
|
};
|
|
18978
19132
|
|
|
18979
|
-
var _templateObject$14, _templateObject2$N, _templateObject3$G, _templateObject4$
|
|
19133
|
+
var _templateObject$14, _templateObject2$N, _templateObject3$G, _templateObject4$u, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$i, _templateObject10$e;
|
|
18980
19134
|
var Container$k = styled.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"])));
|
|
18981
19135
|
var Header$b = styled.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"])));
|
|
18982
19136
|
var HeaderLine$8 = styled.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) {
|
|
18983
19137
|
return props.height;
|
|
18984
19138
|
}, function (props) {
|
|
18985
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
19139
|
+
return props.size === 'mini' && css(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18986
19140
|
}, function (props) {
|
|
18987
19141
|
return props.size === 'small' && css(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18988
19142
|
}, function (props) {
|
|
@@ -19015,13 +19169,13 @@ var Template8$1 = function Template8(props) {
|
|
|
19015
19169
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
19016
19170
|
};
|
|
19017
19171
|
|
|
19018
|
-
var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$
|
|
19172
|
+
var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$v, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$j, _templateObject10$f, _templateObject11$8;
|
|
19019
19173
|
var Container$l = styled.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"])));
|
|
19020
19174
|
var Header$c = styled.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"])));
|
|
19021
19175
|
var HeaderLine$9 = styled.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) {
|
|
19022
19176
|
return props.height;
|
|
19023
19177
|
}, function (props) {
|
|
19024
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
19178
|
+
return props.size === 'mini' && css(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
19025
19179
|
}, function (props) {
|
|
19026
19180
|
return props.size === 'small' && css(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
19027
19181
|
}, function (props) {
|
|
@@ -19038,7 +19192,7 @@ var CustomLine$6 = styled(HeaderLine$9)(_templateObject8$m || (_templateObject8$
|
|
|
19038
19192
|
});
|
|
19039
19193
|
var GraphLine = styled(CustomLine$6)(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
19040
19194
|
var Main$5 = styled.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"])));
|
|
19041
|
-
var Circle$3 = styled.div(_templateObject11$
|
|
19195
|
+
var Circle$3 = styled.div(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
19042
19196
|
|
|
19043
19197
|
var Template10 = function Template10(props) {
|
|
19044
19198
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -19159,7 +19313,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
19159
19313
|
}
|
|
19160
19314
|
};
|
|
19161
19315
|
|
|
19162
|
-
var _templateObject$16, _templateObject2$P, _templateObject3$I, _templateObject4$
|
|
19316
|
+
var _templateObject$16, _templateObject2$P, _templateObject3$I, _templateObject4$w, _templateObject5$s, _templateObject6$p, _templateObject7$p;
|
|
19163
19317
|
var Container$m = styled.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"])));
|
|
19164
19318
|
var Progress = styled.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) {
|
|
19165
19319
|
return props.value + "%";
|
|
@@ -19169,7 +19323,7 @@ var Progress = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTem
|
|
|
19169
19323
|
return theme.colors.warningGray;
|
|
19170
19324
|
});
|
|
19171
19325
|
}, function (props) {
|
|
19172
|
-
return props.type === 'info' && css(_templateObject4$
|
|
19326
|
+
return props.type === 'info' && css(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref2) {
|
|
19173
19327
|
var theme = _ref2.theme;
|
|
19174
19328
|
return theme.colors.blue;
|
|
19175
19329
|
});
|
|
@@ -19194,7 +19348,7 @@ var ProgressBar = function ProgressBar(props) {
|
|
|
19194
19348
|
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', "%"));
|
|
19195
19349
|
};
|
|
19196
19350
|
|
|
19197
|
-
var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$
|
|
19351
|
+
var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$x, _templateObject5$t, _templateObject6$q, _templateObject7$q, _templateObject8$n, _templateObject9$k;
|
|
19198
19352
|
var Container$n = styled.div(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
19199
19353
|
var delimiters = {
|
|
19200
19354
|
blue: ['blue'],
|
|
@@ -19228,7 +19382,7 @@ var Tabs = styled.ul(_templateObject2$Q || (_templateObject2$Q = _taggedTemplate
|
|
|
19228
19382
|
return internal ? "1px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'grey']) : "2px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'blue']);
|
|
19229
19383
|
}();
|
|
19230
19384
|
|
|
19231
|
-
return css(_templateObject4$
|
|
19385
|
+
return 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);
|
|
19232
19386
|
}, function (_ref3) {
|
|
19233
19387
|
var theme = _ref3.theme,
|
|
19234
19388
|
internal = _ref3.$internal;
|
|
@@ -19384,7 +19538,7 @@ var TextArea = function TextArea(props) {
|
|
|
19384
19538
|
return React__default.createElement(Container$o, Object.assign({}, props));
|
|
19385
19539
|
};
|
|
19386
19540
|
|
|
19387
|
-
var _templateObject$1a, _templateObject2$R, _templateObject3$K, _templateObject4$
|
|
19541
|
+
var _templateObject$1a, _templateObject2$R, _templateObject3$K, _templateObject4$y, _templateObject5$u, _templateObject6$r;
|
|
19388
19542
|
var Container$p = styled.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) {
|
|
19389
19543
|
return props.size === 'large' ? '837px' : '460px';
|
|
19390
19544
|
}, function (props) {
|
|
@@ -19392,7 +19546,7 @@ var Container$p = styled.div(_templateObject$1a || (_templateObject$1a = _tagged
|
|
|
19392
19546
|
}, function (props) {
|
|
19393
19547
|
return props.color === 'error' && 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 "])));
|
|
19394
19548
|
}, function (props) {
|
|
19395
|
-
return props.color === 'warning' && css(_templateObject4$
|
|
19549
|
+
return props.color === 'warning' && 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 "])));
|
|
19396
19550
|
});
|
|
19397
19551
|
var IconContainer$2 = styled.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"])));
|
|
19398
19552
|
var IconContent = styled.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"])));
|
|
@@ -19407,7 +19561,7 @@ var Toast = function Toast(props) {
|
|
|
19407
19561
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
19408
19562
|
};
|
|
19409
19563
|
|
|
19410
|
-
var _templateObject$1b, _templateObject2$S, _templateObject3$L, _templateObject4$
|
|
19564
|
+
var _templateObject$1b, _templateObject2$S, _templateObject3$L, _templateObject4$z, _templateObject5$v;
|
|
19411
19565
|
var Image = styled.img(_templateObject$1b || (_templateObject$1b = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
|
|
19412
19566
|
var Container$q = styled.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) {
|
|
19413
19567
|
var width = _ref.width;
|
|
@@ -19440,7 +19594,7 @@ var Dimmer = styled.div(_templateObject3$L || (_templateObject3$L = _taggedTempl
|
|
|
19440
19594
|
var theme = _ref3.theme;
|
|
19441
19595
|
return theme.getColor('greyishBlue', 50);
|
|
19442
19596
|
});
|
|
19443
|
-
var Button$6 = styled(Button$1)(_templateObject4$
|
|
19597
|
+
var Button$6 = styled(Button$1)(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
|
|
19444
19598
|
var theme = _ref4.theme;
|
|
19445
19599
|
return theme.getColor('white', 50);
|
|
19446
19600
|
});
|