@mw-kit/mw-ui 1.7.91 → 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 +481 -323
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +481 -323
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12228,8 +12228,8 @@ var EllipsisContainer$1 = function EllipsisContainer$1(props) {
|
|
|
12228
12228
|
}));
|
|
12229
12229
|
};
|
|
12230
12230
|
|
|
12231
|
-
var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1;
|
|
12232
|
-
var IconContainer = styled__default.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n"])));
|
|
12231
|
+
var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1;
|
|
12232
|
+
var IconContainer = styled__default.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n\n cursor: auto;\n"])));
|
|
12233
12233
|
var ChildrenContainer = styled__default(EllipsisContainer$1)(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n bottom: 0;\n left: 0;\n line-height: 19px;\n display: flex;\n gap: calc(", " / 2);\n"])), function (_ref) {
|
|
12234
12234
|
var theme = _ref.theme;
|
|
12235
12235
|
return theme.spacings.s1;
|
|
@@ -12291,7 +12291,7 @@ var InputContainer = styled__default.div(_templateObject11$1 || (_templateObject
|
|
|
12291
12291
|
var width = _ref12.width;
|
|
12292
12292
|
return width || '100%';
|
|
12293
12293
|
});
|
|
12294
|
-
var Label = styled__default.label(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 17px;\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n\n ", "\n\n > ", " > ", " {\n bottom: ", ";\n }\n\n ", "\n\n ", "\n"])), function (_ref13) {
|
|
12294
|
+
var Label = styled__default.label(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 17px;\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n\n ", "\n\n > ", " > ", " {\n bottom: ", ";\n }\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref13) {
|
|
12295
12295
|
var theme = _ref13.theme;
|
|
12296
12296
|
return theme.useTypography('p');
|
|
12297
12297
|
}, function (_ref14) {
|
|
@@ -12310,44 +12310,48 @@ var Label = styled__default.label(_templateObject12$1 || (_templateObject12$1 =
|
|
|
12310
12310
|
paddingless = _ref17.$paddingless;
|
|
12311
12311
|
return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
|
|
12312
12312
|
}, function (_ref18) {
|
|
12313
|
-
var
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
if (loading || readOnly || disabled) return;
|
|
12317
|
-
return styled.css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12313
|
+
var disabled = _ref18.$disabled;
|
|
12314
|
+
if (!disabled) return;
|
|
12315
|
+
return styled.css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n > ", ":after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n "])), InputContainer);
|
|
12318
12316
|
}, function (_ref19) {
|
|
12319
|
-
var
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
|
|
12317
|
+
var readOnly = _ref19.$readOnly,
|
|
12318
|
+
disabled = _ref19.$disabled,
|
|
12319
|
+
loading = _ref19.$loading;
|
|
12320
|
+
if (loading || readOnly || disabled) return;
|
|
12321
|
+
return styled.css(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12322
|
+
}, function (_ref20) {
|
|
12323
|
+
var theme = _ref20.theme,
|
|
12324
|
+
iconWidths = _ref20.$iconWidths,
|
|
12325
|
+
position = _ref20.$iconPosition,
|
|
12326
|
+
paddingless = _ref20.$paddingless;
|
|
12323
12327
|
if (iconWidths.length < 1) return;
|
|
12324
12328
|
var width = "calc(" + iconWidths.join(' + ') + " + " + theme.spacings.s1 + " / 2 * " + (iconWidths.length - 1) + ")";
|
|
12325
12329
|
var padding = paddingless ? '0px' : theme.spacings.s3;
|
|
12326
12330
|
|
|
12327
12331
|
if (position === 'right') {
|
|
12328
|
-
return styled.css(
|
|
12332
|
+
return styled.css(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteralLoose(["\n > ", " > ", " {\n width: ", ";\n right: calc(", " / 2);\n }\n\n > ", " > ", " {\n padding-right: calc(", " + ", ");\n ~ ", " {\n padding-right: calc(", " + ", ");\n }\n }\n "])), InputContainer, IconContainer, width, padding, InputContainer, Input, padding, width, ChildrenContainer, padding, width);
|
|
12329
12333
|
}
|
|
12330
12334
|
|
|
12331
|
-
return styled.css(
|
|
12335
|
+
return styled.css(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n > ", " > ", " {\n width: ", ";\n left: calc(", " / 2);\n }\n\n > ", " > ", " {\n padding-left: calc(", " + ", ");\n ~ ", " {\n padding-left: calc(", " + ", ");\n }\n }\n "])), InputContainer, IconContainer, width, padding, InputContainer, Input, padding, width, ChildrenContainer, padding, width);
|
|
12332
12336
|
});
|
|
12333
|
-
var LabelText = styled__default.div(
|
|
12334
|
-
var viewMode =
|
|
12337
|
+
var LabelText = styled__default.div(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n\n ", "\n\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref21) {
|
|
12338
|
+
var viewMode = _ref21.$viewMode;
|
|
12335
12339
|
if (!viewMode) return;
|
|
12336
|
-
return styled.css(
|
|
12337
|
-
}, function (_ref21) {
|
|
12338
|
-
var theme = _ref21.theme,
|
|
12339
|
-
viewMode = _ref21.$viewMode;
|
|
12340
|
-
return theme.spacings[viewMode ? 's3' : 's1'];
|
|
12340
|
+
return styled.css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n "])));
|
|
12341
12341
|
}, function (_ref22) {
|
|
12342
|
-
var
|
|
12342
|
+
var theme = _ref22.theme,
|
|
12343
12343
|
viewMode = _ref22.$viewMode;
|
|
12344
|
+
return theme.spacings[viewMode ? 's3' : 's1'];
|
|
12345
|
+
}, function (_ref23) {
|
|
12346
|
+
var required = _ref23.$required,
|
|
12347
|
+
viewMode = _ref23.$viewMode;
|
|
12344
12348
|
if (!required || viewMode) return;
|
|
12345
|
-
return styled.css(
|
|
12349
|
+
return styled.css(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12346
12350
|
});
|
|
12347
|
-
var ViewModeContainer = styled__default.div(
|
|
12348
|
-
var children =
|
|
12351
|
+
var ViewModeContainer = styled__default.div(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref24) {
|
|
12352
|
+
var children = _ref24.children;
|
|
12349
12353
|
if (children) return;
|
|
12350
|
-
return styled.css(
|
|
12354
|
+
return styled.css(_templateObject22$1 || (_templateObject22$1 = _taggedTemplateLiteralLoose(["\n :before {\n content: ' ';\n white-space: pre;\n }\n "])));
|
|
12351
12355
|
});
|
|
12352
12356
|
|
|
12353
12357
|
var defaultValue = {
|
|
@@ -12918,8 +12922,8 @@ var ScrollContainer = React__default.forwardRef(function (props, ref) {
|
|
|
12918
12922
|
});
|
|
12919
12923
|
ScrollContainer.displayName = 'ScrollContainer';
|
|
12920
12924
|
|
|
12921
|
-
var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$3;
|
|
12922
|
-
var Option = styled__default.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n gap: ", ";\n\n > :nth-child(1) {\n display: flex;\n align-items: center;\n flex: 1;\n max-width: 100%;\n }\n\n ", ";\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
|
|
12925
|
+
var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$3, _templateObject11$3;
|
|
12926
|
+
var Option = styled__default.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n gap: ", ";\n\n > :nth-child(1) {\n display: flex;\n align-items: center;\n flex: 1;\n max-width: 100%;\n }\n\n ", ";\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n\n ", "\n"])), function (_ref) {
|
|
12923
12927
|
var theme = _ref.theme;
|
|
12924
12928
|
return theme.useTypography('p');
|
|
12925
12929
|
}, function (_ref2) {
|
|
@@ -12932,7 +12936,7 @@ var Option = styled__default.div(_templateObject$b || (_templateObject$b = _tagg
|
|
|
12932
12936
|
var theme = _ref4.theme;
|
|
12933
12937
|
return theme.spacings.s1;
|
|
12934
12938
|
}, function (_ref5) {
|
|
12935
|
-
var disabled = _ref5
|
|
12939
|
+
var disabled = _ref5.$disabled;
|
|
12936
12940
|
|
|
12937
12941
|
if (!disabled) {
|
|
12938
12942
|
return styled.css(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
@@ -12940,7 +12944,7 @@ var Option = styled__default.div(_templateObject$b || (_templateObject$b = _tagg
|
|
|
12940
12944
|
|
|
12941
12945
|
return styled.css(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n opacity: 0.3;\n "])));
|
|
12942
12946
|
}, function (_ref6) {
|
|
12943
|
-
var border = _ref6
|
|
12947
|
+
var border = _ref6.$border,
|
|
12944
12948
|
theme = _ref6.theme;
|
|
12945
12949
|
if (!border) return;
|
|
12946
12950
|
var config = getBorder(border);
|
|
@@ -12955,10 +12959,17 @@ var Option = styled__default.div(_templateObject$b || (_templateObject$b = _tagg
|
|
|
12955
12959
|
});
|
|
12956
12960
|
}, function (_ref7) {
|
|
12957
12961
|
var theme = _ref7.theme;
|
|
12958
|
-
return theme.
|
|
12962
|
+
return theme.getColor('blue', 15);
|
|
12963
|
+
}, function (_ref8) {
|
|
12964
|
+
var highlighted = _ref8.$highlighted;
|
|
12965
|
+
if (!highlighted) return;
|
|
12966
|
+
return styled.css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref9) {
|
|
12967
|
+
var theme = _ref9.theme;
|
|
12968
|
+
return theme.getColor('blue', 15);
|
|
12969
|
+
});
|
|
12959
12970
|
});
|
|
12960
|
-
var Container$2 = styled__default(AbsoluteContainer)(
|
|
12961
|
-
var theme =
|
|
12971
|
+
var Container$2 = styled__default(AbsoluteContainer)(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n > div {\n display: flex;\n width: 100%;\n\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n\n ", "\n }\n\n ", "\n\n ", "\n }\n"])), function (_ref10) {
|
|
12972
|
+
var theme = _ref10.theme;
|
|
12962
12973
|
return theme.colors.white;
|
|
12963
12974
|
}, function (props) {
|
|
12964
12975
|
if (!props.containerSpacing) return;
|
|
@@ -12966,46 +12977,76 @@ var Container$2 = styled__default(AbsoluteContainer)(_templateObject5$5 || (_tem
|
|
|
12966
12977
|
var tmp = spacing.split(' ');
|
|
12967
12978
|
tmp[1] = "calc(" + props.theme.spacings.s1 + " / 2)";
|
|
12968
12979
|
spacing = tmp.join(' ');
|
|
12969
|
-
return styled.css(
|
|
12970
|
-
}, function (
|
|
12971
|
-
var bordered =
|
|
12980
|
+
return styled.css(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), spacing);
|
|
12981
|
+
}, function (_ref11) {
|
|
12982
|
+
var bordered = _ref11.bordered;
|
|
12972
12983
|
if (!bordered) return;
|
|
12973
|
-
return styled.css(
|
|
12974
|
-
var theme =
|
|
12984
|
+
return styled.css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref12) {
|
|
12985
|
+
var theme = _ref12.theme;
|
|
12975
12986
|
return theme.getColor('greyishBlue', 10);
|
|
12976
12987
|
});
|
|
12977
12988
|
}, function (props) {
|
|
12978
12989
|
var theme = props.theme;
|
|
12979
12990
|
|
|
12980
12991
|
if (!props.itemSpacing) {
|
|
12981
|
-
return styled.css(
|
|
12992
|
+
return styled.css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n ", " {\n margin: ", " 0px ", "\n ", ";\n }\n "])), Delimiter, theme.spacings.s1, theme.spacings.s1, theme.spacings.s1);
|
|
12982
12993
|
}
|
|
12983
12994
|
|
|
12984
12995
|
var spacing = getSpacings(props.itemSpacing, {
|
|
12985
12996
|
right: '0'
|
|
12986
12997
|
});
|
|
12987
|
-
return styled.css(
|
|
12998
|
+
return styled.css(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", ";\n }\n ", " {\n margin: ", ";\n }\n "])), Option, spacing, Delimiter, spacing);
|
|
12988
12999
|
});
|
|
12989
|
-
var Delimiter = styled__default.div(
|
|
12990
|
-
var theme =
|
|
13000
|
+
var Delimiter = styled__default.div(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref13) {
|
|
13001
|
+
var theme = _ref13.theme;
|
|
12991
13002
|
return theme.useTypography('p');
|
|
12992
|
-
}, function (
|
|
12993
|
-
var theme =
|
|
13003
|
+
}, function (_ref14) {
|
|
13004
|
+
var theme = _ref14.theme;
|
|
12994
13005
|
return theme.colors.greyishBlue;
|
|
12995
13006
|
});
|
|
12996
13007
|
|
|
13008
|
+
var EmptyLabel = function EmptyLabel(_ref) {
|
|
13009
|
+
var label = _ref.label;
|
|
13010
|
+
return React__default.createElement(React__default.Fragment, {
|
|
13011
|
+
children: label
|
|
13012
|
+
});
|
|
13013
|
+
};
|
|
13014
|
+
|
|
13015
|
+
var isVisible = function isVisible(elem, bound) {
|
|
13016
|
+
var docViewTop = bound.scrollTop;
|
|
13017
|
+
var docViewBottom = docViewTop + bound.offsetHeight;
|
|
13018
|
+
var elemTop = elem.offsetTop;
|
|
13019
|
+
var elemBottom = elemTop + elem.offsetHeight;
|
|
13020
|
+
return elemBottom <= docViewBottom && elemTop >= docViewTop;
|
|
13021
|
+
};
|
|
13022
|
+
|
|
12997
13023
|
var MenuComponent = function MenuComponent(props, ref) {
|
|
12998
13024
|
var _props = _extends({}, props),
|
|
12999
13025
|
close = _props.close,
|
|
13000
13026
|
options = _props.options,
|
|
13001
|
-
children = _props.children
|
|
13027
|
+
children = _props.children,
|
|
13028
|
+
highlight = _props.highlight;
|
|
13029
|
+
|
|
13030
|
+
var _useState = React.useState(null),
|
|
13031
|
+
scrollRef = _useState[0],
|
|
13032
|
+
setScrollRef = _useState[1];
|
|
13002
13033
|
|
|
13003
|
-
|
|
13034
|
+
React.useEffect(function () {
|
|
13035
|
+
if (!scrollRef || highlight === undefined) return;
|
|
13036
|
+
var element = scrollRef.children[highlight];
|
|
13037
|
+
if (!element) return;
|
|
13038
|
+
if (isVisible(element, scrollRef)) return;
|
|
13039
|
+
scrollRef.scrollTo(0, element.offsetTop);
|
|
13040
|
+
}, [highlight, scrollRef]);
|
|
13041
|
+
var absoluteContainerProps = filterObject(props, ['scrollSpacing', 'scrollTabIndex', 'label', 'rules', 'onClickOption', 'onScrollEnd', 'before', 'after', 'close', 'options', 'loading', 'children', 'emptyContent', 'highlight'], {
|
|
13004
13042
|
itemSpacing: 's1'
|
|
13005
13043
|
});
|
|
13044
|
+
var rules = props.rules || [];
|
|
13045
|
+
var LabelComponent = props.label || EmptyLabel;
|
|
13006
13046
|
return React__default.createElement(Container$2, Object.assign({}, absoluteContainerProps, {
|
|
13007
13047
|
ref: ref
|
|
13008
13048
|
}), React__default.createElement(React__default.Fragment, null, React__default.createElement(ScrollContainer, {
|
|
13049
|
+
ref: setScrollRef,
|
|
13009
13050
|
onScrollEnd: props.onScrollEnd,
|
|
13010
13051
|
before: props.before,
|
|
13011
13052
|
after: props.after,
|
|
@@ -13014,7 +13055,8 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
13014
13055
|
content: props.emptyContent
|
|
13015
13056
|
} : undefined,
|
|
13016
13057
|
spacing: props.scrollSpacing,
|
|
13017
|
-
loading: props.loading
|
|
13058
|
+
loading: props.loading,
|
|
13059
|
+
tabIndex: props.scrollTabIndex
|
|
13018
13060
|
}, options.map(function (option, index) {
|
|
13019
13061
|
var _option = _extends({}, option),
|
|
13020
13062
|
delimiter = _option.delimiter,
|
|
@@ -13026,23 +13068,23 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
13026
13068
|
var onClick;
|
|
13027
13069
|
var disabled = option.disabled;
|
|
13028
13070
|
|
|
13029
|
-
var OptionContent = function OptionContent(
|
|
13030
|
-
var children =
|
|
13071
|
+
var OptionContent = function OptionContent(_ref2) {
|
|
13072
|
+
var children = _ref2.children;
|
|
13031
13073
|
return children;
|
|
13032
13074
|
};
|
|
13033
13075
|
|
|
13034
13076
|
if (!disabled) {
|
|
13035
|
-
var rule =
|
|
13077
|
+
var rule = rules.map(function (rule) {
|
|
13036
13078
|
return rule(index, data);
|
|
13037
13079
|
}).find(function (result) {
|
|
13038
13080
|
return result !== true;
|
|
13039
13081
|
});
|
|
13040
13082
|
|
|
13041
13083
|
if (rule === true || rule === undefined) {
|
|
13042
|
-
var _onClick =
|
|
13084
|
+
var _onClick = props.onClickOption || function () {};
|
|
13043
13085
|
|
|
13044
13086
|
onClick = function onClick(e) {
|
|
13045
|
-
_onClick(index, option, e);
|
|
13087
|
+
_onClick(index, option.data, e);
|
|
13046
13088
|
|
|
13047
13089
|
closeMenu();
|
|
13048
13090
|
};
|
|
@@ -13050,8 +13092,8 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
13050
13092
|
disabled = true;
|
|
13051
13093
|
|
|
13052
13094
|
if (rule !== false) {
|
|
13053
|
-
OptionContent = function OptionContent(
|
|
13054
|
-
var children =
|
|
13095
|
+
OptionContent = function OptionContent(_ref3) {
|
|
13096
|
+
var children = _ref3.children;
|
|
13055
13097
|
return React__default.createElement(semanticUiReact.Popup, Object.assign({
|
|
13056
13098
|
on: 'click',
|
|
13057
13099
|
position: 'left center',
|
|
@@ -13072,21 +13114,16 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
13072
13114
|
}
|
|
13073
13115
|
|
|
13074
13116
|
OptionContent.displayName = 'OptionContent';
|
|
13075
|
-
var label = option.label;
|
|
13076
|
-
var labelOptions = filterObject(option, ['onClick', 'label', 'rules']);
|
|
13077
|
-
labelOptions.disabled = disabled;
|
|
13078
|
-
var LabelComponent = typeof label === 'function' ? label : function () {
|
|
13079
|
-
return React__default.createElement(React__default.Fragment, {
|
|
13080
|
-
children: label
|
|
13081
|
-
});
|
|
13082
|
-
};
|
|
13083
13117
|
return React__default.createElement(React__default.Fragment, {
|
|
13084
13118
|
key: index
|
|
13085
13119
|
}, React__default.createElement(OptionContent, null, React__default.createElement(Option, {
|
|
13086
13120
|
onClick: onClick,
|
|
13087
|
-
disabled: disabled,
|
|
13088
|
-
border: option.border
|
|
13089
|
-
|
|
13121
|
+
"$disabled": disabled,
|
|
13122
|
+
"$border": option.border,
|
|
13123
|
+
"$highlighted": index === highlight
|
|
13124
|
+
}, React__default.createElement("div", null, React__default.createElement(LabelComponent, Object.assign({}, option, {
|
|
13125
|
+
disabled: disabled
|
|
13126
|
+
}))), caret ? React__default.createElement(Icon, {
|
|
13090
13127
|
type: 'semantic',
|
|
13091
13128
|
icon: 'caret right',
|
|
13092
13129
|
width: '14px'
|
|
@@ -13257,7 +13294,7 @@ var Indicator = function Indicator(props) {
|
|
|
13257
13294
|
}, props)));
|
|
13258
13295
|
};
|
|
13259
13296
|
|
|
13260
|
-
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$
|
|
13297
|
+
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$4;
|
|
13261
13298
|
var Footer = styled__default.div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > button:last-child {\n margin-left: auto;\n }\n"])));
|
|
13262
13299
|
var WeekContainer = styled__default.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n\n :not(:first-child) {\n border-top: 1px solid ", ";\n }\n\n > * {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n width: 32px;\n height: 32px;\n\n color: ", ";\n box-shadow: none;\n\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n\n border: 1px solid transparent;\n :not(:last-child) {\n border-right-color: ", ";\n }\n }\n"])), function (_ref) {
|
|
13263
13300
|
var theme = _ref.theme;
|
|
@@ -13321,7 +13358,7 @@ var DayContainer = styled__default.button(_templateObject4$8 || (_templateObject
|
|
|
13321
13358
|
});
|
|
13322
13359
|
var DayIndicator = styled__default(Indicator).attrs({
|
|
13323
13360
|
size: 'mini'
|
|
13324
|
-
})(_templateObject11$
|
|
13361
|
+
})(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: calc(", " - 1px);\n left: calc(50% - (", " / 2) + 1px);\n"])), sizes.mini, sizes.mini);
|
|
13325
13362
|
|
|
13326
13363
|
var getCalendar = function getCalendar(d) {
|
|
13327
13364
|
var date = new Date(d.getTime());
|
|
@@ -14599,15 +14636,99 @@ var Date$1 = React__default.forwardRef(function (props, ref) {
|
|
|
14599
14636
|
});
|
|
14600
14637
|
Date$1.displayName = 'Date';
|
|
14601
14638
|
|
|
14639
|
+
var _templateObject$l, _templateObject2$f, _templateObject3$d, _templateObject4$a;
|
|
14640
|
+
var RelativeContainer$2 = styled__default.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n position: relative;\n ", ";\n"])), function (_ref) {
|
|
14641
|
+
var width = _ref.width;
|
|
14642
|
+
return !width ? null : styled.css(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
|
|
14643
|
+
});
|
|
14644
|
+
var EmptyContentContainer = styled__default.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n"])), function (_ref2) {
|
|
14645
|
+
var theme = _ref2.theme;
|
|
14646
|
+
return theme.spacings.s3;
|
|
14647
|
+
});
|
|
14648
|
+
var HiddenInput = styled__default.input(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n width: 0;\n height: 0;\n border-width: 0;\n padding: 0;\n position: absolute;\n outline: none;\n"])));
|
|
14649
|
+
|
|
14650
|
+
var isAvailable = function isAvailable(index, option, rules) {
|
|
14651
|
+
return !option.disabled && !(rules || []).some(function (rule) {
|
|
14652
|
+
return rule(index, option) !== true;
|
|
14653
|
+
});
|
|
14654
|
+
};
|
|
14655
|
+
|
|
14656
|
+
var useNavigation = function useNavigation(props) {
|
|
14657
|
+
var _props$highlight = props.highlight,
|
|
14658
|
+
highlight = _props$highlight[0],
|
|
14659
|
+
setHighlight = _props$highlight[1],
|
|
14660
|
+
options = props.options,
|
|
14661
|
+
onSelectHighlight = props.onSelectHighlight,
|
|
14662
|
+
rules = props.rules;
|
|
14663
|
+
var onKeyDown = React.useCallback(function (e) {
|
|
14664
|
+
if (e.key === 'ArrowDown') {
|
|
14665
|
+
e.preventDefault();
|
|
14666
|
+
|
|
14667
|
+
var getNext = function getNext(index, current) {
|
|
14668
|
+
var option = options[index];
|
|
14669
|
+
if (!option) return current;
|
|
14670
|
+
|
|
14671
|
+
if (isAvailable(index, option, rules)) {
|
|
14672
|
+
return index;
|
|
14673
|
+
}
|
|
14674
|
+
|
|
14675
|
+
return getNext(index + 1, current);
|
|
14676
|
+
};
|
|
14677
|
+
|
|
14678
|
+
setHighlight(function (prev) {
|
|
14679
|
+
return getNext(prev + 1, prev);
|
|
14680
|
+
});
|
|
14681
|
+
} else if (e.key === 'ArrowUp') {
|
|
14682
|
+
e.preventDefault();
|
|
14683
|
+
|
|
14684
|
+
var getPrev = function getPrev(index, current) {
|
|
14685
|
+
var option = options[index];
|
|
14686
|
+
if (!option) return current;
|
|
14687
|
+
|
|
14688
|
+
if (isAvailable(index, option, rules)) {
|
|
14689
|
+
return index;
|
|
14690
|
+
}
|
|
14691
|
+
|
|
14692
|
+
return getPrev(index - 1, current);
|
|
14693
|
+
};
|
|
14694
|
+
|
|
14695
|
+
setHighlight(function (prev) {
|
|
14696
|
+
return getPrev(prev - 1, prev);
|
|
14697
|
+
});
|
|
14698
|
+
} else if (e.key === 'Enter') {
|
|
14699
|
+
e.preventDefault();
|
|
14700
|
+
var option = options[highlight];
|
|
14701
|
+
|
|
14702
|
+
if (option) {
|
|
14703
|
+
onSelectHighlight(highlight, option);
|
|
14704
|
+
}
|
|
14705
|
+
}
|
|
14706
|
+
}, [highlight, options, rules]);
|
|
14707
|
+
|
|
14708
|
+
var onFocus = function onFocus(e) {
|
|
14709
|
+
setHighlight(0);
|
|
14710
|
+
};
|
|
14711
|
+
|
|
14712
|
+
var onBlur = function onBlur(e) {
|
|
14713
|
+
setHighlight(-1);
|
|
14714
|
+
};
|
|
14715
|
+
|
|
14716
|
+
return {
|
|
14717
|
+
onKeyDown: onKeyDown,
|
|
14718
|
+
onFocus: onFocus,
|
|
14719
|
+
onBlur: onBlur
|
|
14720
|
+
};
|
|
14721
|
+
};
|
|
14722
|
+
|
|
14602
14723
|
var Provider$1 = React__default.createContext({});
|
|
14603
14724
|
var useContext$1 = function useContext() {
|
|
14604
14725
|
return React__default.useContext(Provider$1);
|
|
14605
14726
|
};
|
|
14606
14727
|
|
|
14607
|
-
var _templateObject$
|
|
14608
|
-
var HeaderContainer = styled__default.div(_templateObject$
|
|
14728
|
+
var _templateObject$m, _templateObject2$g;
|
|
14729
|
+
var HeaderContainer = styled__default.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
|
|
14609
14730
|
var theme = _ref.theme;
|
|
14610
|
-
return styled.css(_templateObject2$
|
|
14731
|
+
return styled.css(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n padding: ", " 0 ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
|
|
14611
14732
|
});
|
|
14612
14733
|
|
|
14613
14734
|
var Header$1 = function Header() {
|
|
@@ -14617,66 +14738,40 @@ var Header$1 = function Header() {
|
|
|
14617
14738
|
return React__default.createElement(React__default.Fragment, null);
|
|
14618
14739
|
}
|
|
14619
14740
|
|
|
14620
|
-
var _context$
|
|
14621
|
-
search = _context$search[0],
|
|
14622
|
-
_context$searchInput = context.searchInput,
|
|
14741
|
+
var _context$searchInput = context.searchInput,
|
|
14623
14742
|
searchInput = _context$searchInput[0],
|
|
14624
|
-
setSearchInput = _context$searchInput[1]
|
|
14625
|
-
onClearSearch = context.onClearSearch,
|
|
14626
|
-
onSearch = context.onSearch,
|
|
14627
|
-
loading = context.loading;
|
|
14743
|
+
setSearchInput = _context$searchInput[1];
|
|
14628
14744
|
return React__default.createElement(HeaderContainer, null, React__default.createElement(Input$1, {
|
|
14629
14745
|
type: 'search',
|
|
14630
14746
|
placeholder: 'Pesquisa',
|
|
14631
14747
|
setValue: setSearchInput,
|
|
14632
14748
|
value: searchInput,
|
|
14633
|
-
onPressEnter: onSearch,
|
|
14634
|
-
clearable: searchInput !== '' && searchInput === search ? onClearSearch : undefined,
|
|
14635
14749
|
icon: {
|
|
14636
14750
|
icon: {
|
|
14637
14751
|
type: 'feather',
|
|
14638
|
-
icon: 'search'
|
|
14639
|
-
onClick: onSearch
|
|
14752
|
+
icon: 'search'
|
|
14640
14753
|
}
|
|
14641
|
-
}
|
|
14642
|
-
loading: loading
|
|
14754
|
+
}
|
|
14643
14755
|
}));
|
|
14644
14756
|
};
|
|
14645
14757
|
|
|
14646
|
-
var getOptions = function getOptions(
|
|
14758
|
+
var getOptions = function getOptions(options, selected) {
|
|
14647
14759
|
return options.map(function (option) {
|
|
14648
|
-
var value = option.value,
|
|
14649
|
-
onClick = option.onClick,
|
|
14650
|
-
rules = option.rules,
|
|
14651
|
-
disabled = option.disabled;
|
|
14652
14760
|
var isSelected = option.value === (selected === null || selected === void 0 ? void 0 : selected.value);
|
|
14653
|
-
|
|
14654
|
-
|
|
14655
|
-
|
|
14656
|
-
|
|
14657
|
-
});
|
|
14658
|
-
|
|
14659
|
-
var LabelComponent = option.label;
|
|
14761
|
+
var data = {
|
|
14762
|
+
data: option.data,
|
|
14763
|
+
value: option.value
|
|
14764
|
+
};
|
|
14660
14765
|
var parsed = {
|
|
14661
|
-
label: typeof LabelComponent !== 'function' ? LabelComponent : function (_ref) {
|
|
14662
|
-
var disabled = _ref.disabled;
|
|
14663
|
-
return React__default.createElement(LabelComponent, Object.assign({}, {
|
|
14664
|
-
value: value,
|
|
14665
|
-
data: data,
|
|
14666
|
-
disabled: disabled
|
|
14667
|
-
}));
|
|
14668
|
-
},
|
|
14669
|
-
onClick: onClick || function () {
|
|
14670
|
-
setValue(isSelected ? '' : value, option.data);
|
|
14671
|
-
},
|
|
14672
|
-
disabled: disabled,
|
|
14673
|
-
rules: rules,
|
|
14674
14766
|
border: {
|
|
14675
14767
|
left: {
|
|
14676
14768
|
color: isSelected ? 'blue' : 'transparent'
|
|
14677
14769
|
}
|
|
14678
14770
|
},
|
|
14679
|
-
data: data
|
|
14771
|
+
data: data,
|
|
14772
|
+
label: option.label,
|
|
14773
|
+
disabled: option.disabled,
|
|
14774
|
+
keepOpen: true
|
|
14680
14775
|
};
|
|
14681
14776
|
return parsed;
|
|
14682
14777
|
});
|
|
@@ -14692,17 +14787,17 @@ var getSelected = function getSelected(value, options) {
|
|
|
14692
14787
|
};
|
|
14693
14788
|
|
|
14694
14789
|
var getInputContent = function getInputContent(props, selectedOption) {
|
|
14695
|
-
if (
|
|
14696
|
-
var LabelComponent =
|
|
14697
|
-
return React__default.createElement(LabelComponent, {
|
|
14698
|
-
data: _extends({}, selectedOption.data),
|
|
14699
|
-
value: selectedOption.value,
|
|
14790
|
+
if (!props.optionLabel) return selectedOption.label;
|
|
14791
|
+
var LabelComponent = props.optionLabel;
|
|
14792
|
+
return React__default.createElement(LabelComponent, Object.assign({}, selectedOption, {
|
|
14700
14793
|
disabled: props.disabled || props.loading,
|
|
14701
14794
|
mode: 'placeholder'
|
|
14702
|
-
});
|
|
14795
|
+
}));
|
|
14703
14796
|
};
|
|
14704
14797
|
|
|
14705
|
-
var useSelect = function useSelect(props, _ref2) {
|
|
14798
|
+
var useSelect = function useSelect(props, _ref, _ref2, setOpen) {
|
|
14799
|
+
var highlight = _ref[0],
|
|
14800
|
+
setHighlight = _ref[1];
|
|
14706
14801
|
var options = _ref2[0],
|
|
14707
14802
|
setOptions = _ref2[1];
|
|
14708
14803
|
|
|
@@ -14710,11 +14805,22 @@ var useSelect = function useSelect(props, _ref2) {
|
|
|
14710
14805
|
selectedOption = _ref3[0],
|
|
14711
14806
|
value = _ref3[1];
|
|
14712
14807
|
|
|
14713
|
-
var parsedOptions = getOptions(
|
|
14808
|
+
var parsedOptions = getOptions(options, selectedOption);
|
|
14714
14809
|
|
|
14715
14810
|
var onReset = function onReset() {};
|
|
14716
14811
|
|
|
14717
14812
|
var inputContent = selectedOption ? getInputContent(props, selectedOption) : props.value;
|
|
14813
|
+
|
|
14814
|
+
var onSelect = function onSelect(index, option) {
|
|
14815
|
+
if (!isAvailable(index, option, props.rules)) {
|
|
14816
|
+
return;
|
|
14817
|
+
}
|
|
14818
|
+
|
|
14819
|
+
var isSelected = option.value === (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value);
|
|
14820
|
+
props.setValue(isSelected ? '' : option.value, option.data);
|
|
14821
|
+
setOpen(false);
|
|
14822
|
+
};
|
|
14823
|
+
|
|
14718
14824
|
var parsed = {
|
|
14719
14825
|
parsedOptions: parsedOptions,
|
|
14720
14826
|
options: [options, setOptions],
|
|
@@ -14722,8 +14828,16 @@ var useSelect = function useSelect(props, _ref2) {
|
|
|
14722
14828
|
onReset: onReset,
|
|
14723
14829
|
menu: {
|
|
14724
14830
|
itemSpacing: 's3',
|
|
14725
|
-
before: React__default.createElement(Header$1, null),
|
|
14726
|
-
|
|
14831
|
+
before: React__default.createElement(React__default.Fragment, null, React__default.createElement(Header$1, null), React__default.createElement(HiddenInput, Object.assign({}, useNavigation({
|
|
14832
|
+
highlight: [highlight, setHighlight],
|
|
14833
|
+
options: options,
|
|
14834
|
+
onSelectHighlight: onSelect,
|
|
14835
|
+
rules: props.rules
|
|
14836
|
+
})))),
|
|
14837
|
+
maxHeight: props.maxHeight || props.search ? '238px' : '180px',
|
|
14838
|
+
onClickOption: function onClickOption(index, option) {
|
|
14839
|
+
onSelect(index, option);
|
|
14840
|
+
}
|
|
14727
14841
|
},
|
|
14728
14842
|
getContext: function getContext(base, children) {
|
|
14729
14843
|
return React__default.createElement(Provider$1.Provider, {
|
|
@@ -14790,13 +14904,13 @@ var Footer$1 = function Footer() {
|
|
|
14790
14904
|
});
|
|
14791
14905
|
};
|
|
14792
14906
|
|
|
14793
|
-
var _templateObject$
|
|
14794
|
-
var Link = styled__default.div(_templateObject$
|
|
14907
|
+
var _templateObject$n, _templateObject2$h, _templateObject3$e, _templateObject4$b;
|
|
14908
|
+
var Link = styled__default.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n ", "\n\n color: ", ";\n\n ", "\n"])), function (_ref) {
|
|
14795
14909
|
var size = _ref.size;
|
|
14796
14910
|
var _sizes = sizes$1[size || 'small'],
|
|
14797
14911
|
fontSize = _sizes.fontSize,
|
|
14798
14912
|
lineHeight = _sizes.lineHeight;
|
|
14799
|
-
return styled.css(_templateObject2$
|
|
14913
|
+
return styled.css(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n "])), fontSize, lineHeight);
|
|
14800
14914
|
}, function (_ref2) {
|
|
14801
14915
|
var colorSetting = _ref2.colorSetting,
|
|
14802
14916
|
theme = _ref2.theme;
|
|
@@ -14809,17 +14923,17 @@ var Link = styled__default.div(_templateObject$m || (_templateObject$m = _tagged
|
|
|
14809
14923
|
disabled = _ref3.disabled,
|
|
14810
14924
|
theme = _ref3.theme,
|
|
14811
14925
|
colorSetting = _ref3.colorSetting;
|
|
14812
|
-
return disabled ? styled.css(_templateObject3$
|
|
14926
|
+
return disabled ? styled.css(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "]))) : onClick ? styled.css(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n :hover {\n color: ", ";\n }\n "])), theme.colors[_extends({
|
|
14813
14927
|
hover: 'blue'
|
|
14814
14928
|
}, colorSetting && typeof colorSetting !== 'string' ? colorSetting : {}).hover]) : null;
|
|
14815
14929
|
});
|
|
14816
14930
|
|
|
14817
|
-
var _templateObject$
|
|
14818
|
-
var HeaderContainer$1 = styled__default.div(_templateObject$
|
|
14931
|
+
var _templateObject$o, _templateObject2$i, _templateObject3$f;
|
|
14932
|
+
var HeaderContainer$1 = styled__default.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
|
|
14819
14933
|
var theme = _ref.theme;
|
|
14820
|
-
return styled.css(_templateObject2$
|
|
14934
|
+
return styled.css(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n padding: ", " 0 ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
|
|
14821
14935
|
});
|
|
14822
|
-
var SelectAllContainer = styled__default.div(_templateObject3$
|
|
14936
|
+
var SelectAllContainer = styled__default.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n display: flex;\n justify-content: space-between;\n"])), function (_ref2) {
|
|
14823
14937
|
var theme = _ref2.theme;
|
|
14824
14938
|
return theme.spacings.s1;
|
|
14825
14939
|
});
|
|
@@ -14834,14 +14948,9 @@ var Header$2 = function Header() {
|
|
|
14834
14948
|
var _context$checked = context.checked,
|
|
14835
14949
|
checked = _context$checked[0],
|
|
14836
14950
|
setChecked = _context$checked[1],
|
|
14837
|
-
_context$search = context.search,
|
|
14838
|
-
search = _context$search[0],
|
|
14839
14951
|
_context$searchInput = context.searchInput,
|
|
14840
14952
|
searchInput = _context$searchInput[0],
|
|
14841
14953
|
setSearchInput = _context$searchInput[1],
|
|
14842
|
-
onSearch = context.onSearch,
|
|
14843
|
-
onClearSearch = context.onClearSearch,
|
|
14844
|
-
loading = context.loading,
|
|
14845
14954
|
options = context.options;
|
|
14846
14955
|
|
|
14847
14956
|
var onClick = function onClick() {
|
|
@@ -14863,16 +14972,12 @@ var Header$2 = function Header() {
|
|
|
14863
14972
|
placeholder: 'Pesquisa',
|
|
14864
14973
|
setValue: setSearchInput,
|
|
14865
14974
|
value: searchInput,
|
|
14866
|
-
onPressEnter: onSearch,
|
|
14867
|
-
clearable: searchInput !== '' && searchInput === search ? onClearSearch : undefined,
|
|
14868
14975
|
icon: {
|
|
14869
14976
|
icon: {
|
|
14870
14977
|
type: 'feather',
|
|
14871
|
-
icon: 'search'
|
|
14872
|
-
onClick: onSearch
|
|
14978
|
+
icon: 'search'
|
|
14873
14979
|
}
|
|
14874
|
-
}
|
|
14875
|
-
loading: loading
|
|
14980
|
+
}
|
|
14876
14981
|
}));
|
|
14877
14982
|
};
|
|
14878
14983
|
|
|
@@ -14890,7 +14995,7 @@ var Label$2 = function Label(props) {
|
|
|
14890
14995
|
checked: checked.findIndex(function (e) {
|
|
14891
14996
|
return e.value === value;
|
|
14892
14997
|
}) !== -1,
|
|
14893
|
-
label:
|
|
14998
|
+
label: LabelComponent ? React__default.createElement(LabelComponent, Object.assign({}, props.option)) : props.option.label,
|
|
14894
14999
|
disabled: disabled,
|
|
14895
15000
|
onChange: function onChange(event) {
|
|
14896
15001
|
var isChecked = event.target.checked;
|
|
@@ -14918,32 +15023,21 @@ var Label$2 = function Label(props) {
|
|
|
14918
15023
|
right: 's3',
|
|
14919
15024
|
bottom: 's3'
|
|
14920
15025
|
},
|
|
14921
|
-
width: '100%'
|
|
15026
|
+
width: '100%',
|
|
15027
|
+
tabIndex: -1
|
|
14922
15028
|
});
|
|
14923
15029
|
};
|
|
14924
15030
|
|
|
14925
|
-
var getOptions$1 = function getOptions(options
|
|
15031
|
+
var getOptions$1 = function getOptions(options) {
|
|
14926
15032
|
return options.map(function (option) {
|
|
14927
|
-
var _label = option.label,
|
|
14928
|
-
onClick = option.onClick;
|
|
14929
15033
|
var data = {
|
|
14930
15034
|
data: option.data,
|
|
14931
15035
|
value: option.value
|
|
14932
15036
|
};
|
|
14933
15037
|
var parsed = {
|
|
14934
|
-
label: function label(option) {
|
|
14935
|
-
return React__default.createElement(Label$2, {
|
|
14936
|
-
option: _extends({}, data, {
|
|
14937
|
-
disabled: option.disabled
|
|
14938
|
-
}),
|
|
14939
|
-
label: _label,
|
|
14940
|
-
value: value
|
|
14941
|
-
});
|
|
14942
|
-
},
|
|
14943
|
-
onClick: onClick,
|
|
14944
15038
|
data: data,
|
|
15039
|
+
label: option.label,
|
|
14945
15040
|
disabled: option.disabled,
|
|
14946
|
-
rules: option.rules,
|
|
14947
15041
|
keepOpen: true
|
|
14948
15042
|
};
|
|
14949
15043
|
return parsed;
|
|
@@ -14965,22 +15059,47 @@ var parseValue = function parseValue(value) {
|
|
|
14965
15059
|
return parsed;
|
|
14966
15060
|
};
|
|
14967
15061
|
|
|
14968
|
-
var useSelectMultiple = function useSelectMultiple(props, _ref) {
|
|
14969
|
-
var
|
|
14970
|
-
|
|
15062
|
+
var useSelectMultiple = function useSelectMultiple(props, _ref, _ref2, _setOpen) {
|
|
15063
|
+
var highlight = _ref[0],
|
|
15064
|
+
setHighlight = _ref[1];
|
|
15065
|
+
var options = _ref2[0],
|
|
15066
|
+
setOptions = _ref2[1];
|
|
14971
15067
|
var initial = parseValue(props.value);
|
|
14972
15068
|
|
|
14973
15069
|
var _useState = React.useState([].concat(initial)),
|
|
14974
15070
|
checked = _useState[0],
|
|
14975
15071
|
setChecked = _useState[1];
|
|
14976
15072
|
|
|
14977
|
-
var parsedOptions = getOptions$1(options
|
|
15073
|
+
var parsedOptions = getOptions$1(options);
|
|
14978
15074
|
var inputContent = getInputContent$1(props.value);
|
|
14979
15075
|
|
|
14980
15076
|
var onReset = function onReset() {
|
|
14981
15077
|
setChecked([].concat(initial));
|
|
14982
15078
|
};
|
|
14983
15079
|
|
|
15080
|
+
var onSelectHighlight = function onSelectHighlight(index, option) {
|
|
15081
|
+
if (!isAvailable(index, option, props.rules)) {
|
|
15082
|
+
return;
|
|
15083
|
+
}
|
|
15084
|
+
|
|
15085
|
+
setChecked(function (prev) {
|
|
15086
|
+
var index = prev.findIndex(function (e) {
|
|
15087
|
+
return e.value === option.value;
|
|
15088
|
+
});
|
|
15089
|
+
|
|
15090
|
+
if (index < 0) {
|
|
15091
|
+
return [].concat(prev, [{
|
|
15092
|
+
data: option.data,
|
|
15093
|
+
value: option.value
|
|
15094
|
+
}]);
|
|
15095
|
+
}
|
|
15096
|
+
|
|
15097
|
+
var news = [].concat(prev);
|
|
15098
|
+
news.splice(index, 1);
|
|
15099
|
+
return news;
|
|
15100
|
+
});
|
|
15101
|
+
};
|
|
15102
|
+
|
|
14984
15103
|
var returnData = {
|
|
14985
15104
|
parsedOptions: parsedOptions,
|
|
14986
15105
|
options: [options, setOptions],
|
|
@@ -14988,12 +15107,27 @@ var useSelectMultiple = function useSelectMultiple(props, _ref) {
|
|
|
14988
15107
|
onReset: onReset,
|
|
14989
15108
|
menu: {
|
|
14990
15109
|
itemSpacing: undefined,
|
|
14991
|
-
before: React__default.createElement(Header$2, null),
|
|
15110
|
+
before: React__default.createElement(React__default.Fragment, null, React__default.createElement(Header$2, null), React__default.createElement(HiddenInput, Object.assign({}, useNavigation({
|
|
15111
|
+
highlight: [highlight, setHighlight],
|
|
15112
|
+
options: options,
|
|
15113
|
+
onSelectHighlight: onSelectHighlight,
|
|
15114
|
+
rules: props.rules
|
|
15115
|
+
})))),
|
|
14992
15116
|
after: {
|
|
14993
15117
|
fluid: true,
|
|
14994
15118
|
children: React__default.createElement(Footer$1, null)
|
|
14995
15119
|
},
|
|
14996
|
-
maxHeight: props.maxHeight || (props.selectAll ? '269px' : '224px')
|
|
15120
|
+
maxHeight: props.maxHeight || (props.selectAll ? '269px' : '224px'),
|
|
15121
|
+
label: function label(option) {
|
|
15122
|
+
return React__default.createElement(Label$2, {
|
|
15123
|
+
option: _extends({}, option, {
|
|
15124
|
+
value: option.data.value,
|
|
15125
|
+
data: option.data.data
|
|
15126
|
+
}),
|
|
15127
|
+
label: props.optionLabel,
|
|
15128
|
+
value: initial
|
|
15129
|
+
});
|
|
15130
|
+
}
|
|
14997
15131
|
},
|
|
14998
15132
|
getContext: function getContext(base, children) {
|
|
14999
15133
|
return React__default.createElement(Provider$2.Provider, {
|
|
@@ -15036,16 +15170,6 @@ var useSelectMultiple = function useSelectMultiple(props, _ref) {
|
|
|
15036
15170
|
return returnData;
|
|
15037
15171
|
};
|
|
15038
15172
|
|
|
15039
|
-
var _templateObject$o, _templateObject2$i, _templateObject3$f;
|
|
15040
|
-
var RelativeContainer$2 = styled__default.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n position: relative;\n ", ";\n"])), function (_ref) {
|
|
15041
|
-
var width = _ref.width;
|
|
15042
|
-
return !width ? null : styled.css(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
|
|
15043
|
-
});
|
|
15044
|
-
var EmptyContentContainer = styled__default.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n"])), function (_ref2) {
|
|
15045
|
-
var theme = _ref2.theme;
|
|
15046
|
-
return theme.spacings.s3;
|
|
15047
|
-
});
|
|
15048
|
-
|
|
15049
15173
|
var Select = React__default.forwardRef(function (props, ref) {
|
|
15050
15174
|
var position = props.position,
|
|
15051
15175
|
loader = props.loader,
|
|
@@ -15055,38 +15179,44 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15055
15179
|
options = _useState[0],
|
|
15056
15180
|
setOptions = _useState[1];
|
|
15057
15181
|
|
|
15058
|
-
var
|
|
15059
|
-
|
|
15060
|
-
|
|
15061
|
-
onReset = _ref.onReset,
|
|
15062
|
-
menuProps = _ref.menu,
|
|
15063
|
-
getContext = _ref.getContext,
|
|
15064
|
-
onClear = _ref.onClear,
|
|
15065
|
-
dirty = _ref.dirty;
|
|
15066
|
-
|
|
15067
|
-
var _useState2 = React.useState(true),
|
|
15068
|
-
_loading = _useState2[0],
|
|
15069
|
-
setLoading = _useState2[1];
|
|
15182
|
+
var _useState2 = React.useState(-1),
|
|
15183
|
+
highlight = _useState2[0],
|
|
15184
|
+
setHighlight = _useState2[1];
|
|
15070
15185
|
|
|
15071
|
-
var _useState3 = React.useState(
|
|
15072
|
-
|
|
15073
|
-
|
|
15186
|
+
var _useState3 = React.useState(false),
|
|
15187
|
+
open = _useState3[0],
|
|
15188
|
+
setOpen = _useState3[1];
|
|
15189
|
+
|
|
15190
|
+
var hook = props.type === 'select-multiple' ? useSelectMultiple : useSelect;
|
|
15191
|
+
|
|
15192
|
+
var _hook = hook(props, [highlight, setHighlight], [options, setOptions], setOpen),
|
|
15193
|
+
parsedOptions = _hook.parsedOptions,
|
|
15194
|
+
inputContent = _hook.inputContent,
|
|
15195
|
+
onReset = _hook.onReset,
|
|
15196
|
+
menuProps = _hook.menu,
|
|
15197
|
+
getContext = _hook.getContext,
|
|
15198
|
+
onClear = _hook.onClear,
|
|
15199
|
+
dirty = _hook.dirty;
|
|
15200
|
+
|
|
15201
|
+
var _useState4 = React.useState(true),
|
|
15202
|
+
_loading = _useState4[0],
|
|
15203
|
+
setLoading = _useState4[1];
|
|
15074
15204
|
|
|
15075
|
-
var
|
|
15076
|
-
|
|
15077
|
-
|
|
15205
|
+
var _useState5 = React.useState(''),
|
|
15206
|
+
search = _useState5[0],
|
|
15207
|
+
_setSearch = _useState5[1];
|
|
15078
15208
|
|
|
15079
|
-
var
|
|
15080
|
-
|
|
15081
|
-
|
|
15209
|
+
var _useState6 = React.useState(''),
|
|
15210
|
+
searchInput = _useState6[0],
|
|
15211
|
+
setSearchInput = _useState6[1];
|
|
15082
15212
|
|
|
15083
|
-
var
|
|
15084
|
-
|
|
15085
|
-
|
|
15213
|
+
var _useState7 = React.useState(1),
|
|
15214
|
+
page = _useState7[0],
|
|
15215
|
+
setPage = _useState7[1];
|
|
15086
15216
|
|
|
15087
|
-
var
|
|
15088
|
-
|
|
15089
|
-
|
|
15217
|
+
var _useState8 = React.useState(false),
|
|
15218
|
+
lastPage = _useState8[0],
|
|
15219
|
+
setLastPage = _useState8[1];
|
|
15090
15220
|
|
|
15091
15221
|
var loading = props.loading || _loading;
|
|
15092
15222
|
|
|
@@ -15096,18 +15226,18 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15096
15226
|
setPage(1);
|
|
15097
15227
|
};
|
|
15098
15228
|
|
|
15099
|
-
var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value', 'onClear', 'placeholder', 'initialLoader']);
|
|
15229
|
+
var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value', 'onClear', 'placeholder', 'initialLoader', 'onClickOption', 'rules', 'onScrollEnd', 'position', 'center', 'maxHeight', 'emptyContent', 'optionLabel']);
|
|
15100
15230
|
|
|
15101
15231
|
var _onScrollEnd = props.onScrollEnd || function () {};
|
|
15102
15232
|
|
|
15103
|
-
var onScrollEnd = function onScrollEnd() {
|
|
15233
|
+
var onScrollEnd = function onScrollEnd(e) {
|
|
15104
15234
|
if (!lastPage && !loading) {
|
|
15105
15235
|
setPage(function (prev) {
|
|
15106
15236
|
return prev + 1;
|
|
15107
15237
|
});
|
|
15108
15238
|
}
|
|
15109
15239
|
|
|
15110
|
-
_onScrollEnd();
|
|
15240
|
+
_onScrollEnd(e);
|
|
15111
15241
|
};
|
|
15112
15242
|
|
|
15113
15243
|
var onSubmit = React.useCallback(function () {
|
|
@@ -15116,9 +15246,9 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15116
15246
|
return Promise.resolve(loader(search, page)).then(function (optionsResult) {
|
|
15117
15247
|
if (optionsResult === null) return;
|
|
15118
15248
|
|
|
15119
|
-
var
|
|
15120
|
-
options =
|
|
15121
|
-
lastPage =
|
|
15249
|
+
var _ref = Array.isArray(optionsResult) ? [optionsResult, true] : [optionsResult.options, optionsResult.lastPage],
|
|
15250
|
+
options = _ref[0],
|
|
15251
|
+
lastPage = _ref[1];
|
|
15122
15252
|
|
|
15123
15253
|
var initial = initialLoader ? initialLoader() : [];
|
|
15124
15254
|
var filtered = initialLoader ? options.filter(function (x) {
|
|
@@ -15157,15 +15287,17 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15157
15287
|
React.useEffect(function () {
|
|
15158
15288
|
setSearchInput(search);
|
|
15159
15289
|
}, [search]);
|
|
15160
|
-
|
|
15161
|
-
|
|
15162
|
-
|
|
15163
|
-
|
|
15164
|
-
|
|
15165
|
-
|
|
15166
|
-
|
|
15167
|
-
|
|
15168
|
-
|
|
15290
|
+
React.useEffect(function () {
|
|
15291
|
+
if (page === 1) setHighlight(-1);
|
|
15292
|
+
}, [page]);
|
|
15293
|
+
React.useEffect(function () {
|
|
15294
|
+
var timeoutId = setTimeout(function () {
|
|
15295
|
+
return setSearch(searchInput);
|
|
15296
|
+
}, 1000);
|
|
15297
|
+
return function () {
|
|
15298
|
+
return clearTimeout(timeoutId);
|
|
15299
|
+
};
|
|
15300
|
+
}, [searchInput]);
|
|
15169
15301
|
|
|
15170
15302
|
var onClick = function onClick() {
|
|
15171
15303
|
setOpen(function (prev) {
|
|
@@ -15176,11 +15308,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15176
15308
|
var isEmpty = (typeof props.value === 'string' || Array.isArray(props.value)) && props.value.length === 0;
|
|
15177
15309
|
return getContext({
|
|
15178
15310
|
setOpen: setOpen,
|
|
15179
|
-
|
|
15180
|
-
searchInput: [searchInput, setSearchInput],
|
|
15181
|
-
onSearch: onSearch,
|
|
15182
|
-
onClearSearch: onClearSearch,
|
|
15183
|
-
loading: loading
|
|
15311
|
+
searchInput: [searchInput, setSearchInput]
|
|
15184
15312
|
}, React__default.createElement(RelativeContainer$2, {
|
|
15185
15313
|
ref: useOnClickOut(function () {
|
|
15186
15314
|
return setOpen(false);
|
|
@@ -15191,6 +15319,17 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15191
15319
|
htmlReadOnly: true,
|
|
15192
15320
|
onClick: onClick,
|
|
15193
15321
|
loading: loading,
|
|
15322
|
+
onKeyDown: function onKeyDown(e) {
|
|
15323
|
+
if (e.key === ' ') {
|
|
15324
|
+
setOpen(function (prev) {
|
|
15325
|
+
return !prev;
|
|
15326
|
+
});
|
|
15327
|
+
} else if (['ArrowDown', 'ArrowUp'].includes(e.key)) {
|
|
15328
|
+
setOpen(true);
|
|
15329
|
+
}
|
|
15330
|
+
|
|
15331
|
+
if (props.onKeyDown) props.onKeyDown(e);
|
|
15332
|
+
},
|
|
15194
15333
|
dirty: dirty,
|
|
15195
15334
|
icon: {
|
|
15196
15335
|
icon: {
|
|
@@ -15207,14 +15346,21 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
15207
15346
|
} : {
|
|
15208
15347
|
clearable: onClear
|
|
15209
15348
|
}, {
|
|
15210
|
-
children:
|
|
15349
|
+
children: inputContent
|
|
15211
15350
|
})), React__default.createElement(Menu, Object.assign({}, menuProps, {
|
|
15351
|
+
rules: (props.rules || []).map(function (rule) {
|
|
15352
|
+
return function (index, data) {
|
|
15353
|
+
return rule(index, data.data);
|
|
15354
|
+
};
|
|
15355
|
+
}),
|
|
15356
|
+
highlight: highlight,
|
|
15212
15357
|
open: open,
|
|
15213
15358
|
close: function close() {
|
|
15214
15359
|
return setOpen(false);
|
|
15215
15360
|
},
|
|
15216
15361
|
options: parsedOptions,
|
|
15217
15362
|
onScrollEnd: onScrollEnd,
|
|
15363
|
+
scrollTabIndex: -1,
|
|
15218
15364
|
width: props.inputWidth || '100%',
|
|
15219
15365
|
bordered: true,
|
|
15220
15366
|
position: position,
|
|
@@ -15554,15 +15700,7 @@ var Component = React__default.forwardRef(function (props, ref) {
|
|
|
15554
15700
|
|
|
15555
15701
|
var options = Object.keys(countries).map(function (iso) {
|
|
15556
15702
|
return {
|
|
15557
|
-
label:
|
|
15558
|
-
var country = option.data;
|
|
15559
|
-
return React__default.createElement(Label$3, null, React__default.createElement(Flag, {
|
|
15560
|
-
iso: iso
|
|
15561
|
-
}), country.name, React__default.createElement("span", null, "+", country.ddi));
|
|
15562
|
-
},
|
|
15563
|
-
onClick: function onClick() {
|
|
15564
|
-
setCountry(countries[iso]);
|
|
15565
|
-
},
|
|
15703
|
+
label: country.name,
|
|
15566
15704
|
data: countries[iso]
|
|
15567
15705
|
};
|
|
15568
15706
|
});
|
|
@@ -15628,6 +15766,16 @@ var Component = React__default.forwardRef(function (props, ref) {
|
|
|
15628
15766
|
return setOpen(false);
|
|
15629
15767
|
},
|
|
15630
15768
|
options: options,
|
|
15769
|
+
onClickOption: function onClickOption(_index, _ref) {
|
|
15770
|
+
var iso = _ref.iso;
|
|
15771
|
+
return setCountry(countries[iso]);
|
|
15772
|
+
},
|
|
15773
|
+
label: function label(option) {
|
|
15774
|
+
var country = option.data;
|
|
15775
|
+
return React__default.createElement(Label$3, null, React__default.createElement(Flag, {
|
|
15776
|
+
iso: country.iso
|
|
15777
|
+
}), country.name, React__default.createElement("span", null, "+", country.ddi));
|
|
15778
|
+
},
|
|
15631
15779
|
width: '100%',
|
|
15632
15780
|
maxHeight: '165px',
|
|
15633
15781
|
bordered: true,
|
|
@@ -15647,7 +15795,7 @@ var Phone = Object.assign(Component, {
|
|
|
15647
15795
|
getPhoneDetails: getPhoneDetails
|
|
15648
15796
|
});
|
|
15649
15797
|
|
|
15650
|
-
var _templateObject$r, _templateObject2$l, _templateObject3$h, _templateObject4$
|
|
15798
|
+
var _templateObject$r, _templateObject2$l, _templateObject3$h, _templateObject4$c, _templateObject5$9, _templateObject6$8, _templateObject7$8, _templateObject8$7, _templateObject9$7;
|
|
15651
15799
|
var RelativeContainer$4 = styled__default.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n position: relative;\n\n input {\n color: transparent;\n }\n"])));
|
|
15652
15800
|
var LabelContainer$2 = styled__default.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: ", ";\n"])), function (_ref) {
|
|
15653
15801
|
var theme = _ref.theme;
|
|
@@ -15663,7 +15811,7 @@ var Container$5 = styled__default.div(_templateObject3$h || (_templateObject3$h
|
|
|
15663
15811
|
var borderwidth = 1;
|
|
15664
15812
|
|
|
15665
15813
|
if (paddingless) {
|
|
15666
|
-
return styled.css(_templateObject4$
|
|
15814
|
+
return styled.css(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n bottom: ", "px;\n left: ", "px;\n width: calc(100% - ", "px - ", ");\n height: calc(17px + ", "px);\n "])), borderwidth, borderwidth, borderwidth * 2, iconWidth, borderwidth * 2);
|
|
15667
15815
|
}
|
|
15668
15816
|
|
|
15669
15817
|
return styled.css(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n bottom: ", "px;\n left: ", "px;\n width: calc(\n 100% - ", "px - ", " - ", "\n );\n height: calc(31px + ", "px);\n padding: ", " 0 ", " ", ";\n "])), borderwidth, borderwidth, borderwidth * 2, iconWidth, theme.spacings.s3, borderwidth * 2, theme.spacings.s2, theme.spacings.s2, theme.spacings.s3);
|
|
@@ -15797,7 +15945,7 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
|
|
|
15797
15945
|
});
|
|
15798
15946
|
DatePicker.displayName = 'DatePicker';
|
|
15799
15947
|
|
|
15800
|
-
var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$
|
|
15948
|
+
var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$d, _templateObject5$a, _templateObject6$9, _templateObject7$9, _templateObject8$8;
|
|
15801
15949
|
var LabelContainer$3 = styled__default.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n display: flex;\n align-items: center;\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
15802
15950
|
var theme = _ref.theme;
|
|
15803
15951
|
return theme.useTypography('p');
|
|
@@ -15812,7 +15960,7 @@ var LabelContainer$3 = styled__default.div(_templateObject$s || (_templateObject
|
|
|
15812
15960
|
if (!keepSpace || children) return;
|
|
15813
15961
|
return styled.css(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n :before {\n content: '';\n white-space: pre;\n }\n "])));
|
|
15814
15962
|
});
|
|
15815
|
-
var Label$4 = styled__default.label(_templateObject4$
|
|
15963
|
+
var Label$4 = styled__default.label(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n position: relative;\n align-items: center;\n\n ", "\n\n ", "\n\n > input {\n position: absolute;\n height: 0%;\n width: 0%;\n opacity: 0;\n }\n\n > span {\n position: relative;\n width: 50px;\n height: calc(", " + 1px);\n background-color: ", ";\n border-radius: 20px;\n transition-property: background-color;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n box-sizing: content-box;\n :before {\n content: '';\n transition-property: left;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n position: absolute;\n border-width: 1px;\n border-style: solid;\n border-radius: 100%;\n left: 0;\n box-shadow: 0px 1px 3px ", ";\n width: calc(", " - 1px);\n height: calc(", " - 1px);\n background-color: ", ";\n }\n }\n\n > input:checked + span {\n :before {\n left: calc(100% - ", " - 1px);\n }\n }\n"])), function (_ref4) {
|
|
15816
15964
|
var theme = _ref4.theme;
|
|
15817
15965
|
return theme.spacings.s1;
|
|
15818
15966
|
}, function (_ref5) {
|
|
@@ -15971,7 +16119,7 @@ var NavBar = styled__default.div(_templateObject$x || (_templateObject$x = _tagg
|
|
|
15971
16119
|
return theme.colors.blue;
|
|
15972
16120
|
});
|
|
15973
16121
|
|
|
15974
|
-
var _templateObject$y, _templateObject2$q, _templateObject3$l, _templateObject4$
|
|
16122
|
+
var _templateObject$y, _templateObject2$q, _templateObject3$l, _templateObject4$e, _templateObject5$b;
|
|
15975
16123
|
var Label$5 = styled__default.label(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 17px;\n\n ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > ", " {\n ", "\n }\n\n :not(:hover) ", " {\n height: 0;\n }\n"])), function (_ref) {
|
|
15976
16124
|
var theme = _ref.theme;
|
|
15977
16125
|
return theme.useTypography('p');
|
|
@@ -15987,7 +16135,7 @@ var Label$5 = styled__default.label(_templateObject$y || (_templateObject$y = _t
|
|
|
15987
16135
|
}, function (_ref3) {
|
|
15988
16136
|
var disabled = _ref3.$disabled;
|
|
15989
16137
|
if (!disabled) return;
|
|
15990
|
-
return styled.css(_templateObject4$
|
|
16138
|
+
return styled.css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15991
16139
|
}, LabelContainer$4, function (_ref4) {
|
|
15992
16140
|
var required = _ref4.$required,
|
|
15993
16141
|
viewMode = _ref4.$viewMode;
|
|
@@ -16290,7 +16438,7 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
16290
16438
|
});
|
|
16291
16439
|
Range.displayName = 'input';
|
|
16292
16440
|
|
|
16293
|
-
var _templateObject$E, _templateObject2$t, _templateObject3$n, _templateObject4$
|
|
16441
|
+
var _templateObject$E, _templateObject2$t, _templateObject3$n, _templateObject4$f, _templateObject5$c, _templateObject6$a, _templateObject7$a;
|
|
16294
16442
|
var LabelContainer$5 = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
|
|
16295
16443
|
var theme = _ref.theme;
|
|
16296
16444
|
return theme.useTypography('p');
|
|
@@ -16305,7 +16453,7 @@ var Label$6 = styled__default.label(_templateObject2$t || (_templateObject2$t =
|
|
|
16305
16453
|
return styled.css(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
|
|
16306
16454
|
}
|
|
16307
16455
|
|
|
16308
|
-
return styled.css(_templateObject4$
|
|
16456
|
+
return styled.css(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
16309
16457
|
}, function (_ref4) {
|
|
16310
16458
|
var required = _ref4.required;
|
|
16311
16459
|
if (!required) return;
|
|
@@ -16539,7 +16687,7 @@ var parse = function parse(value) {
|
|
|
16539
16687
|
});
|
|
16540
16688
|
};
|
|
16541
16689
|
|
|
16542
|
-
var _templateObject$F, _templateObject2$u, _templateObject3$o, _templateObject4$
|
|
16690
|
+
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;
|
|
16543
16691
|
var RelativeContainer$5 = styled__default.div(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > input,\n > label > input {\n color: transparent;\n background-color: transparent;\n width: 1px;\n height: 1px;\n position: absolute;\n left: 0;\n bottom: 0;\n border: 0;\n padding: 0;\n overflow: hidden;\n outline: none;\n box-shadow: none;\n }\n"])));
|
|
16544
16692
|
var LabelContainer$6 = styled__default.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n\n :first-child {\n text-align: left;\n }\n :not(:first-child) {\n text-align: center;\n }\n\n ", "\n\n ", ";\n"])), function (_ref) {
|
|
16545
16693
|
var theme = _ref.theme;
|
|
@@ -16554,7 +16702,7 @@ var LabelContainer$6 = styled__default.div(_templateObject2$u || (_templateObjec
|
|
|
16554
16702
|
}, function (_ref4) {
|
|
16555
16703
|
var onClick = _ref4.onClick;
|
|
16556
16704
|
if (!onClick) return;
|
|
16557
|
-
return styled.css(_templateObject4$
|
|
16705
|
+
return styled.css(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
16558
16706
|
});
|
|
16559
16707
|
var Container$6 = styled__default.div(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n gap: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n\n width: 100%;\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref5) {
|
|
16560
16708
|
var theme = _ref5.theme;
|
|
@@ -16589,7 +16737,7 @@ var Button$4 = styled__default.button(_templateObject9$8 || (_templateObject9$8
|
|
|
16589
16737
|
if (!onClick) return;
|
|
16590
16738
|
return styled.css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
16591
16739
|
});
|
|
16592
|
-
var LabelText$1 = styled__default.label(_templateObject11$
|
|
16740
|
+
var LabelText$1 = styled__default.label(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref12) {
|
|
16593
16741
|
var theme = _ref12.theme;
|
|
16594
16742
|
return theme.spacings.s1;
|
|
16595
16743
|
}, function (_ref13) {
|
|
@@ -16700,6 +16848,29 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16700
16848
|
ref: ref,
|
|
16701
16849
|
readOnly: true
|
|
16702
16850
|
}));
|
|
16851
|
+
var options = [{
|
|
16852
|
+
label: 'Hoje',
|
|
16853
|
+
data: {
|
|
16854
|
+
intervalType: 'day'
|
|
16855
|
+
}
|
|
16856
|
+
}, {
|
|
16857
|
+
label: 'Semana',
|
|
16858
|
+
data: {
|
|
16859
|
+
intervalType: 'week'
|
|
16860
|
+
}
|
|
16861
|
+
}, {
|
|
16862
|
+
label: 'Mês',
|
|
16863
|
+
data: {
|
|
16864
|
+
intervalType: 'month'
|
|
16865
|
+
}
|
|
16866
|
+
}, {
|
|
16867
|
+
label: 'Personalizado',
|
|
16868
|
+
data: {
|
|
16869
|
+
intervalType: 'custom'
|
|
16870
|
+
},
|
|
16871
|
+
keepOpen: true,
|
|
16872
|
+
caret: true
|
|
16873
|
+
}];
|
|
16703
16874
|
return React__default.createElement(RelativeContainer$5, {
|
|
16704
16875
|
ref: useOnClickOut(function () {
|
|
16705
16876
|
return setOpen(null);
|
|
@@ -16760,33 +16931,16 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16760
16931
|
references: {
|
|
16761
16932
|
bottom: '35px'
|
|
16762
16933
|
},
|
|
16763
|
-
options:
|
|
16764
|
-
|
|
16765
|
-
|
|
16766
|
-
|
|
16767
|
-
|
|
16768
|
-
|
|
16769
|
-
|
|
16770
|
-
|
|
16771
|
-
|
|
16772
|
-
|
|
16773
|
-
},
|
|
16774
|
-
data: {}
|
|
16775
|
-
}, {
|
|
16776
|
-
label: 'Mês',
|
|
16777
|
-
onClick: function onClick() {
|
|
16778
|
-
return setValue(intervalTypes.month.initial(props.min));
|
|
16779
|
-
},
|
|
16780
|
-
data: {}
|
|
16781
|
-
}, {
|
|
16782
|
-
label: 'Personalizado',
|
|
16783
|
-
onClick: function onClick() {
|
|
16784
|
-
return setOpen('calendar');
|
|
16785
|
-
},
|
|
16786
|
-
data: {},
|
|
16787
|
-
keepOpen: true,
|
|
16788
|
-
caret: true
|
|
16789
|
-
}],
|
|
16934
|
+
options: options,
|
|
16935
|
+
onClickOption: function onClickOption(_index, _ref2) {
|
|
16936
|
+
var intervalType = _ref2.intervalType;
|
|
16937
|
+
|
|
16938
|
+
if (intervalType === 'custom') {
|
|
16939
|
+
setOpen('calendar');
|
|
16940
|
+
} else {
|
|
16941
|
+
setValue(intervalTypes[intervalType].initial(props.min));
|
|
16942
|
+
}
|
|
16943
|
+
},
|
|
16790
16944
|
width: '165px',
|
|
16791
16945
|
itemSpacing: 's3',
|
|
16792
16946
|
bordered: true
|
|
@@ -16797,9 +16951,9 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16797
16951
|
open: open === 'calendar',
|
|
16798
16952
|
initialValue: value,
|
|
16799
16953
|
onSubmit: {
|
|
16800
|
-
onClick: function onClick(
|
|
16801
|
-
var start =
|
|
16802
|
-
end =
|
|
16954
|
+
onClick: function onClick(_ref3) {
|
|
16955
|
+
var start = _ref3[0],
|
|
16956
|
+
end = _ref3[1];
|
|
16803
16957
|
if (start === null || end === null) return;
|
|
16804
16958
|
setValue([start, end]);
|
|
16805
16959
|
setOpen(null);
|
|
@@ -17436,7 +17590,7 @@ var Input$5 = Object.assign(Component$2, {
|
|
|
17436
17590
|
getPhoneDetails: Phone.getPhoneDetails
|
|
17437
17591
|
});
|
|
17438
17592
|
|
|
17439
|
-
var _templateObject$L, _templateObject2$x, _templateObject3$q, _templateObject4$
|
|
17593
|
+
var _templateObject$L, _templateObject2$x, _templateObject3$q, _templateObject4$h;
|
|
17440
17594
|
var Container$7 = styled__default(AbsoluteContainer)(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n > div {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n\n > div {\n padding: ", ";\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n }\n"])), function (_ref) {
|
|
17441
17595
|
var theme = _ref.theme;
|
|
17442
17596
|
return theme.colors.white;
|
|
@@ -17460,7 +17614,7 @@ var Title = styled__default.div(_templateObject3$q || (_templateObject3$q = _tag
|
|
|
17460
17614
|
var getColor = _ref6.theme.getColor;
|
|
17461
17615
|
return getColor('greyishBlue', 50);
|
|
17462
17616
|
});
|
|
17463
|
-
var Item = styled__default.div(_templateObject4$
|
|
17617
|
+
var Item = styled__default.div(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n padding: ", ";\n display: flex;\n align-items: center;\n\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n\n > div:nth-child(1) {\n flex: 1;\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n > div:nth-child(2) {\n ", "\n }\n }\n > div:nth-child(2) {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n"])), function (_ref7) {
|
|
17464
17618
|
var s1 = _ref7.theme.spacings.s1;
|
|
17465
17619
|
return s1 + " " + s1 + " " + s1 + " 0";
|
|
17466
17620
|
}, function (_ref8) {
|
|
@@ -17641,13 +17795,13 @@ var AppliedFilters = Object.assign(function (props) {
|
|
|
17641
17795
|
Menu: AppliedFiltersMenu
|
|
17642
17796
|
});
|
|
17643
17797
|
|
|
17644
|
-
var _templateObject$N, _templateObject2$z, _templateObject3$s, _templateObject4$
|
|
17798
|
+
var _templateObject$N, _templateObject2$z, _templateObject3$s, _templateObject4$i, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$9, _templateObject10$8;
|
|
17645
17799
|
var Container$9 = styled__default.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: #fff;\n border: 1px solid #d4d4d5;\n border-radius: 4px;\n border-left-width: 5px;\n padding: 14px;\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n"])), function (props) {
|
|
17646
17800
|
return props.size === 'mini' && styled.css(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
|
|
17647
17801
|
}, function (props) {
|
|
17648
17802
|
return props.size === 'small' && styled.css(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 131px;\n "])));
|
|
17649
17803
|
}, function (props) {
|
|
17650
|
-
return props.size === 'medium' && styled.css(_templateObject4$
|
|
17804
|
+
return props.size === 'medium' && styled.css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
|
|
17651
17805
|
}, function (props) {
|
|
17652
17806
|
return props.size === 'big' && styled.css(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n width: 414px;\n height: 324px;\n "])));
|
|
17653
17807
|
}, function (props) {
|
|
@@ -17777,8 +17931,7 @@ var getInstance = function getInstance(props) {
|
|
|
17777
17931
|
var _getOptions = function _getOptions(value) {
|
|
17778
17932
|
try {
|
|
17779
17933
|
var options = intialOptions.filter(function (option) {
|
|
17780
|
-
|
|
17781
|
-
return strCmp(label, value, {
|
|
17934
|
+
return strCmp(option.label, value, {
|
|
17782
17935
|
contain: true
|
|
17783
17936
|
});
|
|
17784
17937
|
});
|
|
@@ -17943,9 +18096,8 @@ var Submenu = function Submenu(props) {
|
|
|
17943
18096
|
|
|
17944
18097
|
var optionsParser = function optionsParser(option) {
|
|
17945
18098
|
return {
|
|
17946
|
-
label:
|
|
17947
|
-
|
|
17948
|
-
data: {}
|
|
18099
|
+
label: option.label,
|
|
18100
|
+
data: option
|
|
17949
18101
|
};
|
|
17950
18102
|
};
|
|
17951
18103
|
|
|
@@ -17963,6 +18115,8 @@ var Submenu = function Submenu(props) {
|
|
|
17963
18115
|
close: close,
|
|
17964
18116
|
width: isDynamic ? '275px' : '160px',
|
|
17965
18117
|
height: '261px',
|
|
18118
|
+
onClickOption: onClickOption,
|
|
18119
|
+
label: props.optionLabel,
|
|
17966
18120
|
containerSpacing: {
|
|
17967
18121
|
top: 's3',
|
|
17968
18122
|
left: 's1',
|
|
@@ -18007,16 +18161,11 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
18007
18161
|
|
|
18008
18162
|
var items = props.items.map(function (item) {
|
|
18009
18163
|
return {
|
|
18010
|
-
label:
|
|
18164
|
+
label: item.label,
|
|
18011
18165
|
delimiter: item.delimiter,
|
|
18012
18166
|
keepOpen: true,
|
|
18013
18167
|
caret: true,
|
|
18014
|
-
|
|
18015
|
-
setActive(function (prev) {
|
|
18016
|
-
return prev === index ? -1 : index;
|
|
18017
|
-
});
|
|
18018
|
-
},
|
|
18019
|
-
data: {}
|
|
18168
|
+
data: item
|
|
18020
18169
|
};
|
|
18021
18170
|
});
|
|
18022
18171
|
var selected = active >= 0 && active < props.items.length ? props.items[active] : undefined;
|
|
@@ -18030,6 +18179,12 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
18030
18179
|
close: close,
|
|
18031
18180
|
width: '160px',
|
|
18032
18181
|
maxHeight: '261px',
|
|
18182
|
+
onClickOption: function onClickOption(index) {
|
|
18183
|
+
setActive(function (prev) {
|
|
18184
|
+
return prev === index ? -1 : index;
|
|
18185
|
+
});
|
|
18186
|
+
},
|
|
18187
|
+
label: props.filterLabel,
|
|
18033
18188
|
containerSpacing: {
|
|
18034
18189
|
top: 's1',
|
|
18035
18190
|
left: 's1',
|
|
@@ -18047,6 +18202,7 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
18047
18202
|
}
|
|
18048
18203
|
}, props.containerProps || {}), React__default.createElement(Submenu, {
|
|
18049
18204
|
item: selected,
|
|
18205
|
+
optionLabel: props.optionLabel && selected ? props.optionLabel[selected.name] : undefined,
|
|
18050
18206
|
close: function close() {
|
|
18051
18207
|
return setActive(-1);
|
|
18052
18208
|
},
|
|
@@ -18061,7 +18217,7 @@ var Filters = Object.assign(function (props) {
|
|
|
18061
18217
|
setAppliedFilters = props.setAppliedFilters,
|
|
18062
18218
|
containerProps = props.containerProps,
|
|
18063
18219
|
subContainerProps = props.subContainerProps;
|
|
18064
|
-
var buttonProps = filterObject(props, ['items', 'setAppliedFilters']);
|
|
18220
|
+
var buttonProps = filterObject(props, ['items', 'setAppliedFilters', 'filterLabel', 'optionLabel']);
|
|
18065
18221
|
return React__default.createElement(Button$5, Object.assign({}, buttonProps, {
|
|
18066
18222
|
gap: 's4',
|
|
18067
18223
|
getContent: function getContent(open, close) {
|
|
@@ -18071,7 +18227,9 @@ var Filters = Object.assign(function (props) {
|
|
|
18071
18227
|
setAppliedFilters: setAppliedFilters,
|
|
18072
18228
|
items: items,
|
|
18073
18229
|
containerProps: containerProps,
|
|
18074
|
-
subContainerProps: subContainerProps
|
|
18230
|
+
subContainerProps: subContainerProps,
|
|
18231
|
+
filterLabel: props.filterLabel,
|
|
18232
|
+
optionLabel: props.optionLabel
|
|
18075
18233
|
}));
|
|
18076
18234
|
}
|
|
18077
18235
|
}), "Filtros");
|
|
@@ -18086,7 +18244,7 @@ var useContext$3 = function useContext() {
|
|
|
18086
18244
|
return React__default.useContext(Provider$3);
|
|
18087
18245
|
};
|
|
18088
18246
|
|
|
18089
|
-
var _templateObject$Q, _templateObject2$A, _templateObject3$t, _templateObject4$
|
|
18247
|
+
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;
|
|
18090
18248
|
var aligns = {
|
|
18091
18249
|
self: {
|
|
18092
18250
|
horizontal: {
|
|
@@ -18125,7 +18283,7 @@ var Col = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedT
|
|
|
18125
18283
|
}
|
|
18126
18284
|
|
|
18127
18285
|
var w = parseFloat(width) * 100 / 12;
|
|
18128
|
-
return styled.css(_templateObject4$
|
|
18286
|
+
return styled.css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n flex: 0 0 ", "%;\n max-width: ", "%;\n width: 100%;\n "])), w, w);
|
|
18129
18287
|
}, function (_ref2) {
|
|
18130
18288
|
var spacing = _ref2.spacing;
|
|
18131
18289
|
var padding = getSpacings(spacing === undefined ? 's1' : spacing);
|
|
@@ -18177,7 +18335,7 @@ var Col = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedT
|
|
|
18177
18335
|
var bordered = _ref5.bordered,
|
|
18178
18336
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
18179
18337
|
if (!bordered) return;
|
|
18180
|
-
return styled.css(_templateObject11$
|
|
18338
|
+
return styled.css(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
18181
18339
|
}, function (_ref6) {
|
|
18182
18340
|
var fontColor = _ref6.fontColor,
|
|
18183
18341
|
theme = _ref6.theme;
|
|
@@ -18251,7 +18409,7 @@ var Grid$1 = React__default.forwardRef(function (props, ref) {
|
|
|
18251
18409
|
});
|
|
18252
18410
|
Grid$1.displayName = 'Grid';
|
|
18253
18411
|
|
|
18254
|
-
var _templateObject$S, _templateObject2$C, _templateObject3$v, _templateObject4$
|
|
18412
|
+
var _templateObject$S, _templateObject2$C, _templateObject3$v, _templateObject4$k, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$b, _templateObject10$a;
|
|
18255
18413
|
var horizontalAligns = {
|
|
18256
18414
|
around: 'space-around',
|
|
18257
18415
|
between: 'space-between',
|
|
@@ -18276,7 +18434,7 @@ var Row = styled__default.div(_templateObject$S || (_templateObject$S = _taggedT
|
|
|
18276
18434
|
}, function (_ref3) {
|
|
18277
18435
|
var horizontalAlign = _ref3.horizontalAlign;
|
|
18278
18436
|
if (horizontalAlign === undefined) return;
|
|
18279
|
-
return styled.css(_templateObject4$
|
|
18437
|
+
return styled.css(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n justify-content: ", ";\n "])), horizontalAligns[horizontalAlign]);
|
|
18280
18438
|
}, function (_ref4) {
|
|
18281
18439
|
var verticalAlign = _ref4.verticalAlign;
|
|
18282
18440
|
if (verticalAlign === undefined) return;
|
|
@@ -18382,7 +18540,7 @@ var widths = {
|
|
|
18382
18540
|
default: '642.5px'
|
|
18383
18541
|
};
|
|
18384
18542
|
|
|
18385
|
-
var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$
|
|
18543
|
+
var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$l, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$c, _templateObject10$b;
|
|
18386
18544
|
var Background = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n backdrop-filter: blur(3px);\n background-color: ", ";\n"])), function (_ref) {
|
|
18387
18545
|
var theme = _ref.theme;
|
|
18388
18546
|
return theme.getColor('black', 25);
|
|
@@ -18393,7 +18551,7 @@ var Header$5 = styled__default.div(_templateObject3$w || (_templateObject3$w = _
|
|
|
18393
18551
|
colors = _ref2$theme.colors,
|
|
18394
18552
|
spacings = _ref2$theme.spacings,
|
|
18395
18553
|
useTypography = _ref2$theme.useTypography;
|
|
18396
|
-
return styled.css(_templateObject4$
|
|
18554
|
+
return styled.css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
|
|
18397
18555
|
});
|
|
18398
18556
|
var Footer$2 = styled__default.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n"])), function (_ref3) {
|
|
18399
18557
|
var _ref3$theme = _ref3.theme,
|
|
@@ -18612,11 +18770,11 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
18612
18770
|
Audit: Audit
|
|
18613
18771
|
});
|
|
18614
18772
|
|
|
18615
|
-
var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$
|
|
18773
|
+
var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$m, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$d, _templateObject10$c, _templateObject11$7;
|
|
18616
18774
|
var Container$c = styled__default.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
18617
18775
|
var Header$6 = styled__default.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18618
18776
|
var HeaderImage = styled__default.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
18619
|
-
var HeaderContent = styled__default.div(_templateObject4$
|
|
18777
|
+
var HeaderContent = styled__default.div(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
|
|
18620
18778
|
var MainContent = styled__default.div(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
|
|
18621
18779
|
var HeaderLine = styled__default.div(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18622
18780
|
return props.height;
|
|
@@ -18629,7 +18787,7 @@ var HeaderLine = styled__default.div(_templateObject6$g || (_templateObject6$g =
|
|
|
18629
18787
|
}, function (props) {
|
|
18630
18788
|
return props.size === 'large' && styled.css(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18631
18789
|
});
|
|
18632
|
-
var MainLine = styled__default(HeaderLine)(_templateObject11$
|
|
18790
|
+
var MainLine = styled__default(HeaderLine)(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
18633
18791
|
|
|
18634
18792
|
var Template1 = function Template1(props) {
|
|
18635
18793
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18664,7 +18822,7 @@ var Template1 = function Template1(props) {
|
|
|
18664
18822
|
})));
|
|
18665
18823
|
};
|
|
18666
18824
|
|
|
18667
|
-
var _templateObject$Y, _templateObject2$F, _templateObject3$y, _templateObject4$
|
|
18825
|
+
var _templateObject$Y, _templateObject2$F, _templateObject3$y, _templateObject4$n, _templateObject5$j;
|
|
18668
18826
|
var HeaderLine$1 = styled__default.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18669
18827
|
return props.height;
|
|
18670
18828
|
}, function (props) {
|
|
@@ -18672,16 +18830,16 @@ var HeaderLine$1 = styled__default.div(_templateObject$Y || (_templateObject$Y =
|
|
|
18672
18830
|
}, function (props) {
|
|
18673
18831
|
return props.size === 'small' && styled.css(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18674
18832
|
}, function (props) {
|
|
18675
|
-
return props.size === 'medium' && styled.css(_templateObject4$
|
|
18833
|
+
return props.size === 'medium' && styled.css(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18676
18834
|
}, function (props) {
|
|
18677
18835
|
return props.size === 'large' && styled.css(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18678
18836
|
});
|
|
18679
18837
|
|
|
18680
|
-
var _templateObject$Z, _templateObject2$G, _templateObject3$z, _templateObject4$
|
|
18838
|
+
var _templateObject$Z, _templateObject2$G, _templateObject3$z, _templateObject4$o, _templateObject5$k, _templateObject6$h, _templateObject7$h, _templateObject8$f;
|
|
18681
18839
|
var Container$d = styled__default.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
18682
18840
|
var Template2Container = styled__default(Container$d)(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
|
|
18683
18841
|
var Header$7 = styled__default.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18684
|
-
var HeaderImage$1 = styled__default.div(_templateObject4$
|
|
18842
|
+
var HeaderImage$1 = styled__default.div(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
18685
18843
|
var HeaderContent$1 = styled__default.div(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
|
|
18686
18844
|
var MainContent$1 = styled__default.div(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
|
|
18687
18845
|
var MainLine$1 = styled__default(HeaderLine$1)(_templateObject7$h || (_templateObject7$h = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
@@ -18740,14 +18898,14 @@ var Template3 = function Template3(props) {
|
|
|
18740
18898
|
}));
|
|
18741
18899
|
};
|
|
18742
18900
|
|
|
18743
|
-
var _templateObject$$, _templateObject2$I, _templateObject3$B, _templateObject4$
|
|
18901
|
+
var _templateObject$$, _templateObject2$I, _templateObject3$B, _templateObject4$p, _templateObject5$l, _templateObject6$i, _templateObject7$i, _templateObject8$g;
|
|
18744
18902
|
var Container$f = styled__default.div(_templateObject$$ || (_templateObject$$ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
18745
18903
|
var HeaderLine$3 = styled__default.div(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18746
18904
|
return props.height;
|
|
18747
18905
|
}, function (props) {
|
|
18748
18906
|
return props.size === 'mini' && styled.css(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18749
18907
|
}, function (props) {
|
|
18750
|
-
return props.size === 'small' && styled.css(_templateObject4$
|
|
18908
|
+
return props.size === 'small' && styled.css(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18751
18909
|
}, function (props) {
|
|
18752
18910
|
return props.size === 'medium' && styled.css(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18753
18911
|
}, function (props) {
|
|
@@ -18807,13 +18965,13 @@ var Template4 = function Template4(props) {
|
|
|
18807
18965
|
}));
|
|
18808
18966
|
};
|
|
18809
18967
|
|
|
18810
|
-
var _templateObject$10, _templateObject2$J, _templateObject3$C, _templateObject4$
|
|
18968
|
+
var _templateObject$10, _templateObject2$J, _templateObject3$C, _templateObject4$q, _templateObject5$m, _templateObject6$j, _templateObject7$j, _templateObject8$h, _templateObject9$e;
|
|
18811
18969
|
var Container$g = styled__default.div(_templateObject$10 || (_templateObject$10 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 746px;\n height: 169px;\n border: 1px solid #e6e6e7;\n border-radius: 4px;\n padding: 14px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
|
|
18812
18970
|
var Circle = styled__default.div(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
|
|
18813
18971
|
var HeaderLine$4 = styled__default.div(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18814
18972
|
return props.height;
|
|
18815
18973
|
}, function (props) {
|
|
18816
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
18974
|
+
return props.size === 'mini' && styled.css(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18817
18975
|
}, function (props) {
|
|
18818
18976
|
return props.size === 'small' && styled.css(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18819
18977
|
}, function (props) {
|
|
@@ -18855,11 +19013,11 @@ var Template5 = function Template5(props) {
|
|
|
18855
19013
|
})));
|
|
18856
19014
|
};
|
|
18857
19015
|
|
|
18858
|
-
var _templateObject$11, _templateObject2$K, _templateObject3$D, _templateObject4$
|
|
19016
|
+
var _templateObject$11, _templateObject2$K, _templateObject3$D, _templateObject4$r, _templateObject5$n, _templateObject6$k, _templateObject7$k, _templateObject8$i, _templateObject9$f;
|
|
18859
19017
|
var Container$h = styled__default.div(_templateObject$11 || (_templateObject$11 = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
|
|
18860
19018
|
var Header$8 = styled__default.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n"])));
|
|
18861
19019
|
var Footer$3 = styled__default.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
|
|
18862
|
-
var HeaderLine$5 = styled__default.div(_templateObject4$
|
|
19020
|
+
var HeaderLine$5 = styled__default.div(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18863
19021
|
return props.height;
|
|
18864
19022
|
}, function (props) {
|
|
18865
19023
|
return props.size === 'mini' && styled.css(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
@@ -18898,13 +19056,13 @@ var Template6 = function Template6(props) {
|
|
|
18898
19056
|
})));
|
|
18899
19057
|
};
|
|
18900
19058
|
|
|
18901
|
-
var _templateObject$12, _templateObject2$L, _templateObject3$E, _templateObject4$
|
|
19059
|
+
var _templateObject$12, _templateObject2$L, _templateObject3$E, _templateObject4$s, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$g, _templateObject10$d;
|
|
18902
19060
|
var Container$i = styled__default.div(_templateObject$12 || (_templateObject$12 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18903
19061
|
var Header$9 = styled__default.div(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18904
19062
|
var HeaderLine$6 = styled__default.div(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18905
19063
|
return props.height;
|
|
18906
19064
|
}, function (props) {
|
|
18907
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
19065
|
+
return props.size === 'mini' && styled.css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18908
19066
|
}, function (props) {
|
|
18909
19067
|
return props.size === 'small' && styled.css(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18910
19068
|
}, function (props) {
|
|
@@ -18932,13 +19090,13 @@ var Template7 = function Template7(props) {
|
|
|
18932
19090
|
})), 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)));
|
|
18933
19091
|
};
|
|
18934
19092
|
|
|
18935
|
-
var _templateObject$13, _templateObject2$M, _templateObject3$F, _templateObject4$
|
|
19093
|
+
var _templateObject$13, _templateObject2$M, _templateObject3$F, _templateObject4$t, _templateObject5$p, _templateObject6$m, _templateObject7$m, _templateObject8$k, _templateObject9$h;
|
|
18936
19094
|
var Container$j = styled__default.div(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18937
19095
|
var Header$a = styled__default.div(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18938
19096
|
var HeaderLine$7 = styled__default.div(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18939
19097
|
return props.height;
|
|
18940
19098
|
}, function (props) {
|
|
18941
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
19099
|
+
return props.size === 'mini' && styled.css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18942
19100
|
}, function (props) {
|
|
18943
19101
|
return props.size === 'small' && styled.css(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18944
19102
|
}, function (props) {
|
|
@@ -18975,13 +19133,13 @@ var Template8 = function Template8(props) {
|
|
|
18975
19133
|
})));
|
|
18976
19134
|
};
|
|
18977
19135
|
|
|
18978
|
-
var _templateObject$14, _templateObject2$N, _templateObject3$G, _templateObject4$
|
|
19136
|
+
var _templateObject$14, _templateObject2$N, _templateObject3$G, _templateObject4$u, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$i, _templateObject10$e;
|
|
18979
19137
|
var Container$k = styled__default.div(_templateObject$14 || (_templateObject$14 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18980
19138
|
var Header$b = styled__default.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18981
19139
|
var HeaderLine$8 = styled__default.div(_templateObject3$G || (_templateObject3$G = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18982
19140
|
return props.height;
|
|
18983
19141
|
}, function (props) {
|
|
18984
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
19142
|
+
return props.size === 'mini' && styled.css(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18985
19143
|
}, function (props) {
|
|
18986
19144
|
return props.size === 'small' && styled.css(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18987
19145
|
}, function (props) {
|
|
@@ -19014,13 +19172,13 @@ var Template8$1 = function Template8(props) {
|
|
|
19014
19172
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
19015
19173
|
};
|
|
19016
19174
|
|
|
19017
|
-
var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$
|
|
19175
|
+
var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$v, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$j, _templateObject10$f, _templateObject11$8;
|
|
19018
19176
|
var Container$l = styled__default.div(_templateObject$15 || (_templateObject$15 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
19019
19177
|
var Header$c = styled__default.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
19020
19178
|
var HeaderLine$9 = styled__default.div(_templateObject3$H || (_templateObject3$H = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
19021
19179
|
return props.height;
|
|
19022
19180
|
}, function (props) {
|
|
19023
|
-
return props.size === 'mini' && styled.css(_templateObject4$
|
|
19181
|
+
return props.size === 'mini' && styled.css(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
19024
19182
|
}, function (props) {
|
|
19025
19183
|
return props.size === 'small' && styled.css(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
19026
19184
|
}, function (props) {
|
|
@@ -19037,7 +19195,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$m || (_templat
|
|
|
19037
19195
|
});
|
|
19038
19196
|
var GraphLine = styled__default(CustomLine$6)(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
19039
19197
|
var Main$5 = styled__default.div(_templateObject10$f || (_templateObject10$f = _taggedTemplateLiteralLoose(["\n flex: 1;\n padding: 0 7px 72px 7px;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: center;\n"])));
|
|
19040
|
-
var Circle$3 = styled__default.div(_templateObject11$
|
|
19198
|
+
var Circle$3 = styled__default.div(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
19041
19199
|
|
|
19042
19200
|
var Template10 = function Template10(props) {
|
|
19043
19201
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -19158,7 +19316,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
19158
19316
|
}
|
|
19159
19317
|
};
|
|
19160
19318
|
|
|
19161
|
-
var _templateObject$16, _templateObject2$P, _templateObject3$I, _templateObject4$
|
|
19319
|
+
var _templateObject$16, _templateObject2$P, _templateObject3$I, _templateObject4$w, _templateObject5$s, _templateObject6$p, _templateObject7$p;
|
|
19162
19320
|
var Container$m = styled__default.div(_templateObject$16 || (_templateObject$16 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n span {\n display: inline-block;\n margin-left: 7px;\n color: #000000cc;\n }\n"])));
|
|
19163
19321
|
var Progress = styled__default.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n width: 64px;\n height: 12px;\n border: 1px solid #e4e4e4;\n div {\n width: ", ";\n max-width: 64px;\n height: 100%;\n ", "\n\n ", "\n ", "\n ", "\n ", "\n }\n"])), function (props) {
|
|
19164
19322
|
return props.value + "%";
|
|
@@ -19168,7 +19326,7 @@ var Progress = styled__default.div(_templateObject2$P || (_templateObject2$P = _
|
|
|
19168
19326
|
return theme.colors.warningGray;
|
|
19169
19327
|
});
|
|
19170
19328
|
}, function (props) {
|
|
19171
|
-
return props.type === 'info' && styled.css(_templateObject4$
|
|
19329
|
+
return props.type === 'info' && styled.css(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref2) {
|
|
19172
19330
|
var theme = _ref2.theme;
|
|
19173
19331
|
return theme.colors.blue;
|
|
19174
19332
|
});
|
|
@@ -19193,7 +19351,7 @@ var ProgressBar = function ProgressBar(props) {
|
|
|
19193
19351
|
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', "%"));
|
|
19194
19352
|
};
|
|
19195
19353
|
|
|
19196
|
-
var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$
|
|
19354
|
+
var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$x, _templateObject5$t, _templateObject6$q, _templateObject7$q, _templateObject8$n, _templateObject9$k;
|
|
19197
19355
|
var Container$n = styled__default.div(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
19198
19356
|
var delimiters = {
|
|
19199
19357
|
blue: ['blue'],
|
|
@@ -19227,7 +19385,7 @@ var Tabs = styled__default.ul(_templateObject2$Q || (_templateObject2$Q = _tagge
|
|
|
19227
19385
|
return internal ? "1px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'grey']) : "2px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'blue']);
|
|
19228
19386
|
}();
|
|
19229
19387
|
|
|
19230
|
-
return styled.css(_templateObject4$
|
|
19388
|
+
return styled.css(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n border-bottom: ", ";\n\n + div {\n border: 1px solid ", ";\n border-top-width: 0px;\n border-radius: 0px 0px 2px 2px;\n padding: ", ";\n }\n "])), border, theme.getColor.apply(theme, delimiters.grey), theme.spacings.s3);
|
|
19231
19389
|
}, function (_ref3) {
|
|
19232
19390
|
var theme = _ref3.theme,
|
|
19233
19391
|
internal = _ref3.$internal;
|
|
@@ -19383,7 +19541,7 @@ var TextArea = function TextArea(props) {
|
|
|
19383
19541
|
return React__default.createElement(Container$o, Object.assign({}, props));
|
|
19384
19542
|
};
|
|
19385
19543
|
|
|
19386
|
-
var _templateObject$1a, _templateObject2$R, _templateObject3$K, _templateObject4$
|
|
19544
|
+
var _templateObject$1a, _templateObject2$R, _templateObject3$K, _templateObject4$y, _templateObject5$u, _templateObject6$r;
|
|
19387
19545
|
var Container$p = styled__default.div(_templateObject$1a || (_templateObject$1a = _taggedTemplateLiteralLoose(["\n border-radius: 4px;\n width: ", ";\n height: 88px;\n border: 1px solid transparent;\n position: relative;\n\n ", "\n\n ", "\n\n ", "\n\n svg {\n cursor: pointer;\n position: absolute;\n top: 14px;\n right: 14px;\n width: 13px;\n height: 13px;\n }\n"])), function (props) {
|
|
19388
19546
|
return props.size === 'large' ? '837px' : '460px';
|
|
19389
19547
|
}, function (props) {
|
|
@@ -19391,7 +19549,7 @@ var Container$p = styled__default.div(_templateObject$1a || (_templateObject$1a
|
|
|
19391
19549
|
}, function (props) {
|
|
19392
19550
|
return props.color === 'error' && styled.css(_templateObject3$K || (_templateObject3$K = _taggedTemplateLiteralLoose(["\n background-color: #fff6f6;\n opacity: 1;\n border-color: #973937;\n h4 {\n color: #973937;\n }\n p {\n color: #973937;\n }\n "])));
|
|
19393
19551
|
}, function (props) {
|
|
19394
|
-
return props.color === 'warning' && styled.css(_templateObject4$
|
|
19552
|
+
return props.color === 'warning' && styled.css(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n background-color: #fffaf3;\n opacity: 1;\n border-color: #ccbea0;\n h4 {\n color: #7a4d05;\n }\n p {\n color: #7a4d05cc;\n }\n "])));
|
|
19395
19553
|
});
|
|
19396
19554
|
var IconContainer$2 = styled__default.div(_templateObject5$u || (_templateObject5$u = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 14px 14px 0 0;\n margin: 0;\n"])));
|
|
19397
19555
|
var IconContent = styled__default.div(_templateObject6$r || (_templateObject6$r = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 13px 0 21px 28px;\n display: flex;\n flex: 1;\n flex-direction: column;\n\n h4 {\n margin-bottom: 7px;\n font-size: 18p;\n }\n p {\n margin: 0;\n font-size: 14px;\n max-width: 380px;\n }\n"])));
|
|
@@ -19406,7 +19564,7 @@ var Toast = function Toast(props) {
|
|
|
19406
19564
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
19407
19565
|
};
|
|
19408
19566
|
|
|
19409
|
-
var _templateObject$1b, _templateObject2$S, _templateObject3$L, _templateObject4$
|
|
19567
|
+
var _templateObject$1b, _templateObject2$S, _templateObject3$L, _templateObject4$z, _templateObject5$v;
|
|
19410
19568
|
var Image = styled__default.img(_templateObject$1b || (_templateObject$1b = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
|
|
19411
19569
|
var Container$q = styled__default.div(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n\n &,\n ", " {\n width: ", ";\n\n height: ", ";\n }\n"])), Image, function (_ref) {
|
|
19412
19570
|
var width = _ref.width;
|
|
@@ -19439,7 +19597,7 @@ var Dimmer = styled__default.div(_templateObject3$L || (_templateObject3$L = _ta
|
|
|
19439
19597
|
var theme = _ref3.theme;
|
|
19440
19598
|
return theme.getColor('greyishBlue', 50);
|
|
19441
19599
|
});
|
|
19442
|
-
var Button$6 = styled__default(Button$1)(_templateObject4$
|
|
19600
|
+
var Button$6 = styled__default(Button$1)(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
|
|
19443
19601
|
var theme = _ref4.theme;
|
|
19444
19602
|
return theme.getColor('white', 50);
|
|
19445
19603
|
});
|