@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.
@@ -12225,8 +12225,8 @@ var EllipsisContainer$1 = function EllipsisContainer$1(props) {
12225
12225
  }));
12226
12226
  };
12227
12227
 
12228
- var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1;
12229
- var IconContainer = styled.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n"])));
12228
+ var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1;
12229
+ var IconContainer = styled.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n\n cursor: auto;\n"])));
12230
12230
  var ChildrenContainer = styled(EllipsisContainer$1)(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n bottom: 0;\n left: 0;\n line-height: 19px;\n display: flex;\n gap: calc(", " / 2);\n"])), function (_ref) {
12231
12231
  var theme = _ref.theme;
12232
12232
  return theme.spacings.s1;
@@ -12288,7 +12288,7 @@ var InputContainer = styled.div(_templateObject11$1 || (_templateObject11$1 = _t
12288
12288
  var width = _ref12.width;
12289
12289
  return width || '100%';
12290
12290
  });
12291
- var Label = styled.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) {
12291
+ var Label = styled.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) {
12292
12292
  var theme = _ref13.theme;
12293
12293
  return theme.useTypography('p');
12294
12294
  }, function (_ref14) {
@@ -12307,44 +12307,48 @@ var Label = styled.label(_templateObject12$1 || (_templateObject12$1 = _taggedTe
12307
12307
  paddingless = _ref17.$paddingless;
12308
12308
  return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
12309
12309
  }, function (_ref18) {
12310
- var readOnly = _ref18.$readOnly,
12311
- disabled = _ref18.$disabled,
12312
- loading = _ref18.$loading;
12313
- if (loading || readOnly || disabled) return;
12314
- return css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12310
+ var disabled = _ref18.$disabled;
12311
+ if (!disabled) return;
12312
+ return 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);
12315
12313
  }, function (_ref19) {
12316
- var theme = _ref19.theme,
12317
- iconWidths = _ref19.$iconWidths,
12318
- position = _ref19.$iconPosition,
12319
- paddingless = _ref19.$paddingless;
12314
+ var readOnly = _ref19.$readOnly,
12315
+ disabled = _ref19.$disabled,
12316
+ loading = _ref19.$loading;
12317
+ if (loading || readOnly || disabled) return;
12318
+ return css(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12319
+ }, function (_ref20) {
12320
+ var theme = _ref20.theme,
12321
+ iconWidths = _ref20.$iconWidths,
12322
+ position = _ref20.$iconPosition,
12323
+ paddingless = _ref20.$paddingless;
12320
12324
  if (iconWidths.length < 1) return;
12321
12325
  var width = "calc(" + iconWidths.join(' + ') + " + " + theme.spacings.s1 + " / 2 * " + (iconWidths.length - 1) + ")";
12322
12326
  var padding = paddingless ? '0px' : theme.spacings.s3;
12323
12327
 
12324
12328
  if (position === 'right') {
12325
- return css(_templateObject15$1 || (_templateObject15$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
+ return 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);
12326
12330
  }
12327
12331
 
12328
- return css(_templateObject16$1 || (_templateObject16$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
+ return 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);
12329
12333
  });
12330
- var LabelText = styled.div(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n\n ", "\n\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref20) {
12331
- var viewMode = _ref20.$viewMode;
12334
+ var LabelText = styled.div(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n\n ", "\n\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref21) {
12335
+ var viewMode = _ref21.$viewMode;
12332
12336
  if (!viewMode) return;
12333
- return css(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n "])));
12334
- }, function (_ref21) {
12335
- var theme = _ref21.theme,
12336
- viewMode = _ref21.$viewMode;
12337
- return theme.spacings[viewMode ? 's3' : 's1'];
12337
+ return css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n "])));
12338
12338
  }, function (_ref22) {
12339
- var required = _ref22.$required,
12339
+ var theme = _ref22.theme,
12340
12340
  viewMode = _ref22.$viewMode;
12341
+ return theme.spacings[viewMode ? 's3' : 's1'];
12342
+ }, function (_ref23) {
12343
+ var required = _ref23.$required,
12344
+ viewMode = _ref23.$viewMode;
12341
12345
  if (!required || viewMode) return;
12342
- return css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12346
+ return css(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12343
12347
  });
12344
- var ViewModeContainer = styled.div(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref23) {
12345
- var children = _ref23.children;
12348
+ var ViewModeContainer = styled.div(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref24) {
12349
+ var children = _ref24.children;
12346
12350
  if (children) return;
12347
- return css(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n :before {\n content: ' ';\n white-space: pre;\n }\n "])));
12351
+ return css(_templateObject22$1 || (_templateObject22$1 = _taggedTemplateLiteralLoose(["\n :before {\n content: ' ';\n white-space: pre;\n }\n "])));
12348
12352
  });
12349
12353
 
12350
12354
  var defaultValue = {
@@ -12915,8 +12919,8 @@ var ScrollContainer = React__default.forwardRef(function (props, ref) {
12915
12919
  });
12916
12920
  ScrollContainer.displayName = 'ScrollContainer';
12917
12921
 
12918
- var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$3;
12919
- var Option = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n gap: ", ";\n\n > :nth-child(1) {\n display: flex;\n align-items: center;\n flex: 1;\n max-width: 100%;\n }\n\n ", ";\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
12922
+ var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$3, _templateObject11$3;
12923
+ var Option = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n gap: ", ";\n\n > :nth-child(1) {\n display: flex;\n align-items: center;\n flex: 1;\n max-width: 100%;\n }\n\n ", ";\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n\n ", "\n"])), function (_ref) {
12920
12924
  var theme = _ref.theme;
12921
12925
  return theme.useTypography('p');
12922
12926
  }, function (_ref2) {
@@ -12929,7 +12933,7 @@ var Option = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplat
12929
12933
  var theme = _ref4.theme;
12930
12934
  return theme.spacings.s1;
12931
12935
  }, function (_ref5) {
12932
- var disabled = _ref5.disabled;
12936
+ var disabled = _ref5.$disabled;
12933
12937
 
12934
12938
  if (!disabled) {
12935
12939
  return css(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
@@ -12937,7 +12941,7 @@ var Option = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplat
12937
12941
 
12938
12942
  return css(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n opacity: 0.3;\n "])));
12939
12943
  }, function (_ref6) {
12940
- var border = _ref6.border,
12944
+ var border = _ref6.$border,
12941
12945
  theme = _ref6.theme;
12942
12946
  if (!border) return;
12943
12947
  var config = getBorder(border);
@@ -12952,10 +12956,17 @@ var Option = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplat
12952
12956
  });
12953
12957
  }, function (_ref7) {
12954
12958
  var theme = _ref7.theme;
12955
- return theme.colors.iceWhite;
12959
+ return theme.getColor('blue', 15);
12960
+ }, function (_ref8) {
12961
+ var highlighted = _ref8.$highlighted;
12962
+ if (!highlighted) return;
12963
+ return css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref9) {
12964
+ var theme = _ref9.theme;
12965
+ return theme.getColor('blue', 15);
12966
+ });
12956
12967
  });
12957
- var Container$2 = styled(AbsoluteContainer)(_templateObject5$5 || (_templateObject5$5 = _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 (_ref8) {
12958
- var theme = _ref8.theme;
12968
+ var Container$2 = styled(AbsoluteContainer)(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n > div {\n display: flex;\n width: 100%;\n\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n\n ", "\n }\n\n ", "\n\n ", "\n }\n"])), function (_ref10) {
12969
+ var theme = _ref10.theme;
12959
12970
  return theme.colors.white;
12960
12971
  }, function (props) {
12961
12972
  if (!props.containerSpacing) return;
@@ -12963,46 +12974,76 @@ var Container$2 = styled(AbsoluteContainer)(_templateObject5$5 || (_templateObje
12963
12974
  var tmp = spacing.split(' ');
12964
12975
  tmp[1] = "calc(" + props.theme.spacings.s1 + " / 2)";
12965
12976
  spacing = tmp.join(' ');
12966
- return css(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), spacing);
12967
- }, function (_ref9) {
12968
- var bordered = _ref9.bordered;
12977
+ return css(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), spacing);
12978
+ }, function (_ref11) {
12979
+ var bordered = _ref11.bordered;
12969
12980
  if (!bordered) return;
12970
- return css(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref10) {
12971
- var theme = _ref10.theme;
12981
+ return css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref12) {
12982
+ var theme = _ref12.theme;
12972
12983
  return theme.getColor('greyishBlue', 10);
12973
12984
  });
12974
12985
  }, function (props) {
12975
12986
  var theme = props.theme;
12976
12987
 
12977
12988
  if (!props.itemSpacing) {
12978
- return css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n ", " {\n margin: ", " 0px ", "\n ", ";\n }\n "])), Delimiter, theme.spacings.s1, theme.spacings.s1, theme.spacings.s1);
12989
+ return css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n ", " {\n margin: ", " 0px ", "\n ", ";\n }\n "])), Delimiter, theme.spacings.s1, theme.spacings.s1, theme.spacings.s1);
12979
12990
  }
12980
12991
 
12981
12992
  var spacing = getSpacings(props.itemSpacing, {
12982
12993
  right: '0'
12983
12994
  });
12984
- return css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", ";\n }\n ", " {\n margin: ", ";\n }\n "])), Option, spacing, Delimiter, spacing);
12995
+ return css(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", ";\n }\n ", " {\n margin: ", ";\n }\n "])), Option, spacing, Delimiter, spacing);
12985
12996
  });
12986
- var Delimiter = styled.div(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref11) {
12987
- var theme = _ref11.theme;
12997
+ var Delimiter = styled.div(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref13) {
12998
+ var theme = _ref13.theme;
12988
12999
  return theme.useTypography('p');
12989
- }, function (_ref12) {
12990
- var theme = _ref12.theme;
13000
+ }, function (_ref14) {
13001
+ var theme = _ref14.theme;
12991
13002
  return theme.colors.greyishBlue;
12992
13003
  });
12993
13004
 
13005
+ var EmptyLabel = function EmptyLabel(_ref) {
13006
+ var label = _ref.label;
13007
+ return React__default.createElement(React__default.Fragment, {
13008
+ children: label
13009
+ });
13010
+ };
13011
+
13012
+ var isVisible = function isVisible(elem, bound) {
13013
+ var docViewTop = bound.scrollTop;
13014
+ var docViewBottom = docViewTop + bound.offsetHeight;
13015
+ var elemTop = elem.offsetTop;
13016
+ var elemBottom = elemTop + elem.offsetHeight;
13017
+ return elemBottom <= docViewBottom && elemTop >= docViewTop;
13018
+ };
13019
+
12994
13020
  var MenuComponent = function MenuComponent(props, ref) {
12995
13021
  var _props = _extends({}, props),
12996
13022
  close = _props.close,
12997
13023
  options = _props.options,
12998
- children = _props.children;
13024
+ children = _props.children,
13025
+ highlight = _props.highlight;
13026
+
13027
+ var _useState = useState(null),
13028
+ scrollRef = _useState[0],
13029
+ setScrollRef = _useState[1];
12999
13030
 
13000
- var absoluteContainerProps = filterObject(props, ['scrollSpacing', 'onScrollEnd', 'before', 'after', 'close', 'options', 'loading', 'children', 'emptyContent'], {
13031
+ useEffect(function () {
13032
+ if (!scrollRef || highlight === undefined) return;
13033
+ var element = scrollRef.children[highlight];
13034
+ if (!element) return;
13035
+ if (isVisible(element, scrollRef)) return;
13036
+ scrollRef.scrollTo(0, element.offsetTop);
13037
+ }, [highlight, scrollRef]);
13038
+ var absoluteContainerProps = filterObject(props, ['scrollSpacing', 'scrollTabIndex', 'label', 'rules', 'onClickOption', 'onScrollEnd', 'before', 'after', 'close', 'options', 'loading', 'children', 'emptyContent', 'highlight'], {
13001
13039
  itemSpacing: 's1'
13002
13040
  });
13041
+ var rules = props.rules || [];
13042
+ var LabelComponent = props.label || EmptyLabel;
13003
13043
  return React__default.createElement(Container$2, Object.assign({}, absoluteContainerProps, {
13004
13044
  ref: ref
13005
13045
  }), React__default.createElement(React__default.Fragment, null, React__default.createElement(ScrollContainer, {
13046
+ ref: setScrollRef,
13006
13047
  onScrollEnd: props.onScrollEnd,
13007
13048
  before: props.before,
13008
13049
  after: props.after,
@@ -13011,7 +13052,8 @@ var MenuComponent = function MenuComponent(props, ref) {
13011
13052
  content: props.emptyContent
13012
13053
  } : undefined,
13013
13054
  spacing: props.scrollSpacing,
13014
- loading: props.loading
13055
+ loading: props.loading,
13056
+ tabIndex: props.scrollTabIndex
13015
13057
  }, options.map(function (option, index) {
13016
13058
  var _option = _extends({}, option),
13017
13059
  delimiter = _option.delimiter,
@@ -13023,23 +13065,23 @@ var MenuComponent = function MenuComponent(props, ref) {
13023
13065
  var onClick;
13024
13066
  var disabled = option.disabled;
13025
13067
 
13026
- var OptionContent = function OptionContent(_ref) {
13027
- var children = _ref.children;
13068
+ var OptionContent = function OptionContent(_ref2) {
13069
+ var children = _ref2.children;
13028
13070
  return children;
13029
13071
  };
13030
13072
 
13031
13073
  if (!disabled) {
13032
- var rule = (option.rules || []).map(function (rule) {
13074
+ var rule = rules.map(function (rule) {
13033
13075
  return rule(index, data);
13034
13076
  }).find(function (result) {
13035
13077
  return result !== true;
13036
13078
  });
13037
13079
 
13038
13080
  if (rule === true || rule === undefined) {
13039
- var _onClick = option.onClick || function () {};
13081
+ var _onClick = props.onClickOption || function () {};
13040
13082
 
13041
13083
  onClick = function onClick(e) {
13042
- _onClick(index, option, e);
13084
+ _onClick(index, option.data, e);
13043
13085
 
13044
13086
  closeMenu();
13045
13087
  };
@@ -13047,8 +13089,8 @@ var MenuComponent = function MenuComponent(props, ref) {
13047
13089
  disabled = true;
13048
13090
 
13049
13091
  if (rule !== false) {
13050
- OptionContent = function OptionContent(_ref2) {
13051
- var children = _ref2.children;
13092
+ OptionContent = function OptionContent(_ref3) {
13093
+ var children = _ref3.children;
13052
13094
  return React__default.createElement(Popup, Object.assign({
13053
13095
  on: 'click',
13054
13096
  position: 'left center',
@@ -13069,21 +13111,16 @@ var MenuComponent = function MenuComponent(props, ref) {
13069
13111
  }
13070
13112
 
13071
13113
  OptionContent.displayName = 'OptionContent';
13072
- var label = option.label;
13073
- var labelOptions = filterObject(option, ['onClick', 'label', 'rules']);
13074
- labelOptions.disabled = disabled;
13075
- var LabelComponent = typeof label === 'function' ? label : function () {
13076
- return React__default.createElement(React__default.Fragment, {
13077
- children: label
13078
- });
13079
- };
13080
13114
  return React__default.createElement(React__default.Fragment, {
13081
13115
  key: index
13082
13116
  }, React__default.createElement(OptionContent, null, React__default.createElement(Option, {
13083
13117
  onClick: onClick,
13084
- disabled: disabled,
13085
- border: option.border
13086
- }, React__default.createElement("div", null, React__default.createElement(LabelComponent, Object.assign({}, option))), caret ? React__default.createElement(Icon, {
13118
+ "$disabled": disabled,
13119
+ "$border": option.border,
13120
+ "$highlighted": index === highlight
13121
+ }, React__default.createElement("div", null, React__default.createElement(LabelComponent, Object.assign({}, option, {
13122
+ disabled: disabled
13123
+ }))), caret ? React__default.createElement(Icon, {
13087
13124
  type: 'semantic',
13088
13125
  icon: 'caret right',
13089
13126
  width: '14px'
@@ -13254,7 +13291,7 @@ var Indicator = function Indicator(props) {
13254
13291
  }, props)));
13255
13292
  };
13256
13293
 
13257
- var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$3;
13294
+ var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$4;
13258
13295
  var Footer = styled.div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > button:last-child {\n margin-left: auto;\n }\n"])));
13259
13296
  var WeekContainer = styled.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n\n :not(:first-child) {\n border-top: 1px solid ", ";\n }\n\n > * {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n width: 32px;\n height: 32px;\n\n color: ", ";\n box-shadow: none;\n\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n\n border: 1px solid transparent;\n :not(:last-child) {\n border-right-color: ", ";\n }\n }\n"])), function (_ref) {
13260
13297
  var theme = _ref.theme;
@@ -13318,7 +13355,7 @@ var DayContainer = styled.button(_templateObject4$8 || (_templateObject4$8 = _ta
13318
13355
  });
13319
13356
  var DayIndicator = styled(Indicator).attrs({
13320
13357
  size: 'mini'
13321
- })(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: calc(", " - 1px);\n left: calc(50% - (", " / 2) + 1px);\n"])), sizes.mini, sizes.mini);
13358
+ })(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: calc(", " - 1px);\n left: calc(50% - (", " / 2) + 1px);\n"])), sizes.mini, sizes.mini);
13322
13359
 
13323
13360
  var getCalendar = function getCalendar(d) {
13324
13361
  var date = new Date(d.getTime());
@@ -14596,15 +14633,99 @@ var Date$1 = React__default.forwardRef(function (props, ref) {
14596
14633
  });
14597
14634
  Date$1.displayName = 'Date';
14598
14635
 
14636
+ var _templateObject$l, _templateObject2$f, _templateObject3$d, _templateObject4$a;
14637
+ var RelativeContainer$2 = styled.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n position: relative;\n ", ";\n"])), function (_ref) {
14638
+ var width = _ref.width;
14639
+ return !width ? null : css(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
14640
+ });
14641
+ var EmptyContentContainer = styled.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n"])), function (_ref2) {
14642
+ var theme = _ref2.theme;
14643
+ return theme.spacings.s3;
14644
+ });
14645
+ var HiddenInput = styled.input(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n width: 0;\n height: 0;\n border-width: 0;\n padding: 0;\n position: absolute;\n outline: none;\n"])));
14646
+
14647
+ var isAvailable = function isAvailable(index, option, rules) {
14648
+ return !option.disabled && !(rules || []).some(function (rule) {
14649
+ return rule(index, option) !== true;
14650
+ });
14651
+ };
14652
+
14653
+ var useNavigation = function useNavigation(props) {
14654
+ var _props$highlight = props.highlight,
14655
+ highlight = _props$highlight[0],
14656
+ setHighlight = _props$highlight[1],
14657
+ options = props.options,
14658
+ onSelectHighlight = props.onSelectHighlight,
14659
+ rules = props.rules;
14660
+ var onKeyDown = useCallback(function (e) {
14661
+ if (e.key === 'ArrowDown') {
14662
+ e.preventDefault();
14663
+
14664
+ var getNext = function getNext(index, current) {
14665
+ var option = options[index];
14666
+ if (!option) return current;
14667
+
14668
+ if (isAvailable(index, option, rules)) {
14669
+ return index;
14670
+ }
14671
+
14672
+ return getNext(index + 1, current);
14673
+ };
14674
+
14675
+ setHighlight(function (prev) {
14676
+ return getNext(prev + 1, prev);
14677
+ });
14678
+ } else if (e.key === 'ArrowUp') {
14679
+ e.preventDefault();
14680
+
14681
+ var getPrev = function getPrev(index, current) {
14682
+ var option = options[index];
14683
+ if (!option) return current;
14684
+
14685
+ if (isAvailable(index, option, rules)) {
14686
+ return index;
14687
+ }
14688
+
14689
+ return getPrev(index - 1, current);
14690
+ };
14691
+
14692
+ setHighlight(function (prev) {
14693
+ return getPrev(prev - 1, prev);
14694
+ });
14695
+ } else if (e.key === 'Enter') {
14696
+ e.preventDefault();
14697
+ var option = options[highlight];
14698
+
14699
+ if (option) {
14700
+ onSelectHighlight(highlight, option);
14701
+ }
14702
+ }
14703
+ }, [highlight, options, rules]);
14704
+
14705
+ var onFocus = function onFocus(e) {
14706
+ setHighlight(0);
14707
+ };
14708
+
14709
+ var onBlur = function onBlur(e) {
14710
+ setHighlight(-1);
14711
+ };
14712
+
14713
+ return {
14714
+ onKeyDown: onKeyDown,
14715
+ onFocus: onFocus,
14716
+ onBlur: onBlur
14717
+ };
14718
+ };
14719
+
14599
14720
  var Provider$1 = React__default.createContext({});
14600
14721
  var useContext$1 = function useContext() {
14601
14722
  return React__default.useContext(Provider$1);
14602
14723
  };
14603
14724
 
14604
- var _templateObject$l, _templateObject2$f;
14605
- var HeaderContainer = styled.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
14725
+ var _templateObject$m, _templateObject2$g;
14726
+ var HeaderContainer = styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
14606
14727
  var theme = _ref.theme;
14607
- return css(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n padding: ", " 0 ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
14728
+ return css(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n padding: ", " 0 ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
14608
14729
  });
14609
14730
 
14610
14731
  var Header$1 = function Header() {
@@ -14614,66 +14735,40 @@ var Header$1 = function Header() {
14614
14735
  return React__default.createElement(React__default.Fragment, null);
14615
14736
  }
14616
14737
 
14617
- var _context$search = context.search,
14618
- search = _context$search[0],
14619
- _context$searchInput = context.searchInput,
14738
+ var _context$searchInput = context.searchInput,
14620
14739
  searchInput = _context$searchInput[0],
14621
- setSearchInput = _context$searchInput[1],
14622
- onClearSearch = context.onClearSearch,
14623
- onSearch = context.onSearch,
14624
- loading = context.loading;
14740
+ setSearchInput = _context$searchInput[1];
14625
14741
  return React__default.createElement(HeaderContainer, null, React__default.createElement(Input$1, {
14626
14742
  type: 'search',
14627
14743
  placeholder: 'Pesquisa',
14628
14744
  setValue: setSearchInput,
14629
14745
  value: searchInput,
14630
- onPressEnter: onSearch,
14631
- clearable: searchInput !== '' && searchInput === search ? onClearSearch : undefined,
14632
14746
  icon: {
14633
14747
  icon: {
14634
14748
  type: 'feather',
14635
- icon: 'search',
14636
- onClick: onSearch
14749
+ icon: 'search'
14637
14750
  }
14638
- },
14639
- loading: loading
14751
+ }
14640
14752
  }));
14641
14753
  };
14642
14754
 
14643
- var getOptions = function getOptions(setValue, options, selected) {
14755
+ var getOptions = function getOptions(options, selected) {
14644
14756
  return options.map(function (option) {
14645
- var value = option.value,
14646
- onClick = option.onClick,
14647
- rules = option.rules,
14648
- disabled = option.disabled;
14649
14757
  var isSelected = option.value === (selected === null || selected === void 0 ? void 0 : selected.value);
14650
-
14651
- var data = _extends({}, option.data, {
14652
- selected: isSelected,
14653
- value: value
14654
- });
14655
-
14656
- var LabelComponent = option.label;
14758
+ var data = {
14759
+ data: option.data,
14760
+ value: option.value
14761
+ };
14657
14762
  var parsed = {
14658
- label: typeof LabelComponent !== 'function' ? LabelComponent : function (_ref) {
14659
- var disabled = _ref.disabled;
14660
- return React__default.createElement(LabelComponent, Object.assign({}, {
14661
- value: value,
14662
- data: data,
14663
- disabled: disabled
14664
- }));
14665
- },
14666
- onClick: onClick || function () {
14667
- setValue(isSelected ? '' : value, option.data);
14668
- },
14669
- disabled: disabled,
14670
- rules: rules,
14671
14763
  border: {
14672
14764
  left: {
14673
14765
  color: isSelected ? 'blue' : 'transparent'
14674
14766
  }
14675
14767
  },
14676
- data: data
14768
+ data: data,
14769
+ label: option.label,
14770
+ disabled: option.disabled,
14771
+ keepOpen: true
14677
14772
  };
14678
14773
  return parsed;
14679
14774
  });
@@ -14689,17 +14784,17 @@ var getSelected = function getSelected(value, options) {
14689
14784
  };
14690
14785
 
14691
14786
  var getInputContent = function getInputContent(props, selectedOption) {
14692
- if (typeof selectedOption.label !== 'function') return selectedOption.label;
14693
- var LabelComponent = selectedOption.label;
14694
- return React__default.createElement(LabelComponent, {
14695
- data: _extends({}, selectedOption.data),
14696
- value: selectedOption.value,
14787
+ if (!props.optionLabel) return selectedOption.label;
14788
+ var LabelComponent = props.optionLabel;
14789
+ return React__default.createElement(LabelComponent, Object.assign({}, selectedOption, {
14697
14790
  disabled: props.disabled || props.loading,
14698
14791
  mode: 'placeholder'
14699
- });
14792
+ }));
14700
14793
  };
14701
14794
 
14702
- var useSelect = function useSelect(props, _ref2) {
14795
+ var useSelect = function useSelect(props, _ref, _ref2, setOpen) {
14796
+ var highlight = _ref[0],
14797
+ setHighlight = _ref[1];
14703
14798
  var options = _ref2[0],
14704
14799
  setOptions = _ref2[1];
14705
14800
 
@@ -14707,11 +14802,22 @@ var useSelect = function useSelect(props, _ref2) {
14707
14802
  selectedOption = _ref3[0],
14708
14803
  value = _ref3[1];
14709
14804
 
14710
- var parsedOptions = getOptions(props.setValue, options, selectedOption);
14805
+ var parsedOptions = getOptions(options, selectedOption);
14711
14806
 
14712
14807
  var onReset = function onReset() {};
14713
14808
 
14714
14809
  var inputContent = selectedOption ? getInputContent(props, selectedOption) : props.value;
14810
+
14811
+ var onSelect = function onSelect(index, option) {
14812
+ if (!isAvailable(index, option, props.rules)) {
14813
+ return;
14814
+ }
14815
+
14816
+ var isSelected = option.value === (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value);
14817
+ props.setValue(isSelected ? '' : option.value, option.data);
14818
+ setOpen(false);
14819
+ };
14820
+
14715
14821
  var parsed = {
14716
14822
  parsedOptions: parsedOptions,
14717
14823
  options: [options, setOptions],
@@ -14719,8 +14825,16 @@ var useSelect = function useSelect(props, _ref2) {
14719
14825
  onReset: onReset,
14720
14826
  menu: {
14721
14827
  itemSpacing: 's3',
14722
- before: React__default.createElement(Header$1, null),
14723
- maxHeight: props.maxHeight || '180px'
14828
+ before: React__default.createElement(React__default.Fragment, null, React__default.createElement(Header$1, null), React__default.createElement(HiddenInput, Object.assign({}, useNavigation({
14829
+ highlight: [highlight, setHighlight],
14830
+ options: options,
14831
+ onSelectHighlight: onSelect,
14832
+ rules: props.rules
14833
+ })))),
14834
+ maxHeight: props.maxHeight || props.search ? '238px' : '180px',
14835
+ onClickOption: function onClickOption(index, option) {
14836
+ onSelect(index, option);
14837
+ }
14724
14838
  },
14725
14839
  getContext: function getContext(base, children) {
14726
14840
  return React__default.createElement(Provider$1.Provider, {
@@ -14787,13 +14901,13 @@ var Footer$1 = function Footer() {
14787
14901
  });
14788
14902
  };
14789
14903
 
14790
- var _templateObject$m, _templateObject2$g, _templateObject3$d, _templateObject4$a;
14791
- var Link = styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n ", "\n\n color: ", ";\n\n ", "\n"])), function (_ref) {
14904
+ var _templateObject$n, _templateObject2$h, _templateObject3$e, _templateObject4$b;
14905
+ var Link = styled.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n ", "\n\n color: ", ";\n\n ", "\n"])), function (_ref) {
14792
14906
  var size = _ref.size;
14793
14907
  var _sizes = sizes$1[size || 'small'],
14794
14908
  fontSize = _sizes.fontSize,
14795
14909
  lineHeight = _sizes.lineHeight;
14796
- return css(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n "])), fontSize, lineHeight);
14910
+ return css(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n "])), fontSize, lineHeight);
14797
14911
  }, function (_ref2) {
14798
14912
  var colorSetting = _ref2.colorSetting,
14799
14913
  theme = _ref2.theme;
@@ -14806,17 +14920,17 @@ var Link = styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateL
14806
14920
  disabled = _ref3.disabled,
14807
14921
  theme = _ref3.theme,
14808
14922
  colorSetting = _ref3.colorSetting;
14809
- return disabled ? css(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "]))) : onClick ? css(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n :hover {\n color: ", ";\n }\n "])), theme.colors[_extends({
14923
+ return disabled ? css(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "]))) : onClick ? css(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n :hover {\n color: ", ";\n }\n "])), theme.colors[_extends({
14810
14924
  hover: 'blue'
14811
14925
  }, colorSetting && typeof colorSetting !== 'string' ? colorSetting : {}).hover]) : null;
14812
14926
  });
14813
14927
 
14814
- var _templateObject$n, _templateObject2$h, _templateObject3$e;
14815
- var HeaderContainer$1 = styled.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
14928
+ var _templateObject$o, _templateObject2$i, _templateObject3$f;
14929
+ var HeaderContainer$1 = styled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
14816
14930
  var theme = _ref.theme;
14817
- return css(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n padding: ", " 0 ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
14931
+ return css(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n padding: ", " 0 ", " ", ";\n "])), theme.spacings.s3, theme.spacings.s1, theme.spacings.s3);
14818
14932
  });
14819
- var SelectAllContainer = styled.div(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n display: flex;\n justify-content: space-between;\n"])), function (_ref2) {
14933
+ var SelectAllContainer = styled.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n display: flex;\n justify-content: space-between;\n"])), function (_ref2) {
14820
14934
  var theme = _ref2.theme;
14821
14935
  return theme.spacings.s1;
14822
14936
  });
@@ -14831,14 +14945,9 @@ var Header$2 = function Header() {
14831
14945
  var _context$checked = context.checked,
14832
14946
  checked = _context$checked[0],
14833
14947
  setChecked = _context$checked[1],
14834
- _context$search = context.search,
14835
- search = _context$search[0],
14836
14948
  _context$searchInput = context.searchInput,
14837
14949
  searchInput = _context$searchInput[0],
14838
14950
  setSearchInput = _context$searchInput[1],
14839
- onSearch = context.onSearch,
14840
- onClearSearch = context.onClearSearch,
14841
- loading = context.loading,
14842
14951
  options = context.options;
14843
14952
 
14844
14953
  var onClick = function onClick() {
@@ -14860,16 +14969,12 @@ var Header$2 = function Header() {
14860
14969
  placeholder: 'Pesquisa',
14861
14970
  setValue: setSearchInput,
14862
14971
  value: searchInput,
14863
- onPressEnter: onSearch,
14864
- clearable: searchInput !== '' && searchInput === search ? onClearSearch : undefined,
14865
14972
  icon: {
14866
14973
  icon: {
14867
14974
  type: 'feather',
14868
- icon: 'search',
14869
- onClick: onSearch
14975
+ icon: 'search'
14870
14976
  }
14871
- },
14872
- loading: loading
14977
+ }
14873
14978
  }));
14874
14979
  };
14875
14980
 
@@ -14887,7 +14992,7 @@ var Label$2 = function Label(props) {
14887
14992
  checked: checked.findIndex(function (e) {
14888
14993
  return e.value === value;
14889
14994
  }) !== -1,
14890
- label: typeof LabelComponent !== 'function' ? LabelComponent : React__default.createElement(LabelComponent, Object.assign({}, props.option)),
14995
+ label: LabelComponent ? React__default.createElement(LabelComponent, Object.assign({}, props.option)) : props.option.label,
14891
14996
  disabled: disabled,
14892
14997
  onChange: function onChange(event) {
14893
14998
  var isChecked = event.target.checked;
@@ -14915,32 +15020,21 @@ var Label$2 = function Label(props) {
14915
15020
  right: 's3',
14916
15021
  bottom: 's3'
14917
15022
  },
14918
- width: '100%'
15023
+ width: '100%',
15024
+ tabIndex: -1
14919
15025
  });
14920
15026
  };
14921
15027
 
14922
- var getOptions$1 = function getOptions(options, value) {
15028
+ var getOptions$1 = function getOptions(options) {
14923
15029
  return options.map(function (option) {
14924
- var _label = option.label,
14925
- onClick = option.onClick;
14926
15030
  var data = {
14927
15031
  data: option.data,
14928
15032
  value: option.value
14929
15033
  };
14930
15034
  var parsed = {
14931
- label: function label(option) {
14932
- return React__default.createElement(Label$2, {
14933
- option: _extends({}, data, {
14934
- disabled: option.disabled
14935
- }),
14936
- label: _label,
14937
- value: value
14938
- });
14939
- },
14940
- onClick: onClick,
14941
15035
  data: data,
15036
+ label: option.label,
14942
15037
  disabled: option.disabled,
14943
- rules: option.rules,
14944
15038
  keepOpen: true
14945
15039
  };
14946
15040
  return parsed;
@@ -14962,22 +15056,47 @@ var parseValue = function parseValue(value) {
14962
15056
  return parsed;
14963
15057
  };
14964
15058
 
14965
- var useSelectMultiple = function useSelectMultiple(props, _ref) {
14966
- var options = _ref[0],
14967
- setOptions = _ref[1];
15059
+ var useSelectMultiple = function useSelectMultiple(props, _ref, _ref2, _setOpen) {
15060
+ var highlight = _ref[0],
15061
+ setHighlight = _ref[1];
15062
+ var options = _ref2[0],
15063
+ setOptions = _ref2[1];
14968
15064
  var initial = parseValue(props.value);
14969
15065
 
14970
15066
  var _useState = useState([].concat(initial)),
14971
15067
  checked = _useState[0],
14972
15068
  setChecked = _useState[1];
14973
15069
 
14974
- var parsedOptions = getOptions$1(options, initial);
15070
+ var parsedOptions = getOptions$1(options);
14975
15071
  var inputContent = getInputContent$1(props.value);
14976
15072
 
14977
15073
  var onReset = function onReset() {
14978
15074
  setChecked([].concat(initial));
14979
15075
  };
14980
15076
 
15077
+ var onSelectHighlight = function onSelectHighlight(index, option) {
15078
+ if (!isAvailable(index, option, props.rules)) {
15079
+ return;
15080
+ }
15081
+
15082
+ setChecked(function (prev) {
15083
+ var index = prev.findIndex(function (e) {
15084
+ return e.value === option.value;
15085
+ });
15086
+
15087
+ if (index < 0) {
15088
+ return [].concat(prev, [{
15089
+ data: option.data,
15090
+ value: option.value
15091
+ }]);
15092
+ }
15093
+
15094
+ var news = [].concat(prev);
15095
+ news.splice(index, 1);
15096
+ return news;
15097
+ });
15098
+ };
15099
+
14981
15100
  var returnData = {
14982
15101
  parsedOptions: parsedOptions,
14983
15102
  options: [options, setOptions],
@@ -14985,12 +15104,27 @@ var useSelectMultiple = function useSelectMultiple(props, _ref) {
14985
15104
  onReset: onReset,
14986
15105
  menu: {
14987
15106
  itemSpacing: undefined,
14988
- before: React__default.createElement(Header$2, null),
15107
+ before: React__default.createElement(React__default.Fragment, null, React__default.createElement(Header$2, null), React__default.createElement(HiddenInput, Object.assign({}, useNavigation({
15108
+ highlight: [highlight, setHighlight],
15109
+ options: options,
15110
+ onSelectHighlight: onSelectHighlight,
15111
+ rules: props.rules
15112
+ })))),
14989
15113
  after: {
14990
15114
  fluid: true,
14991
15115
  children: React__default.createElement(Footer$1, null)
14992
15116
  },
14993
- maxHeight: props.maxHeight || (props.selectAll ? '269px' : '224px')
15117
+ maxHeight: props.maxHeight || (props.selectAll ? '269px' : '224px'),
15118
+ label: function label(option) {
15119
+ return React__default.createElement(Label$2, {
15120
+ option: _extends({}, option, {
15121
+ value: option.data.value,
15122
+ data: option.data.data
15123
+ }),
15124
+ label: props.optionLabel,
15125
+ value: initial
15126
+ });
15127
+ }
14994
15128
  },
14995
15129
  getContext: function getContext(base, children) {
14996
15130
  return React__default.createElement(Provider$2.Provider, {
@@ -15033,16 +15167,6 @@ var useSelectMultiple = function useSelectMultiple(props, _ref) {
15033
15167
  return returnData;
15034
15168
  };
15035
15169
 
15036
- var _templateObject$o, _templateObject2$i, _templateObject3$f;
15037
- var RelativeContainer$2 = styled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n position: relative;\n ", ";\n"])), function (_ref) {
15038
- var width = _ref.width;
15039
- return !width ? null : css(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
15040
- });
15041
- var EmptyContentContainer = styled.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n"])), function (_ref2) {
15042
- var theme = _ref2.theme;
15043
- return theme.spacings.s3;
15044
- });
15045
-
15046
15170
  var Select = React__default.forwardRef(function (props, ref) {
15047
15171
  var position = props.position,
15048
15172
  loader = props.loader,
@@ -15052,38 +15176,44 @@ var Select = React__default.forwardRef(function (props, ref) {
15052
15176
  options = _useState[0],
15053
15177
  setOptions = _useState[1];
15054
15178
 
15055
- var _ref = props.type === 'select-multiple' ? useSelectMultiple(props, [options, setOptions]) : useSelect(props, [options, setOptions]),
15056
- parsedOptions = _ref.parsedOptions,
15057
- inputContent = _ref.inputContent,
15058
- onReset = _ref.onReset,
15059
- menuProps = _ref.menu,
15060
- getContext = _ref.getContext,
15061
- onClear = _ref.onClear,
15062
- dirty = _ref.dirty;
15063
-
15064
- var _useState2 = useState(true),
15065
- _loading = _useState2[0],
15066
- setLoading = _useState2[1];
15179
+ var _useState2 = useState(-1),
15180
+ highlight = _useState2[0],
15181
+ setHighlight = _useState2[1];
15067
15182
 
15068
- var _useState3 = useState(''),
15069
- search = _useState3[0],
15070
- _setSearch = _useState3[1];
15183
+ var _useState3 = useState(false),
15184
+ open = _useState3[0],
15185
+ setOpen = _useState3[1];
15186
+
15187
+ var hook = props.type === 'select-multiple' ? useSelectMultiple : useSelect;
15188
+
15189
+ var _hook = hook(props, [highlight, setHighlight], [options, setOptions], setOpen),
15190
+ parsedOptions = _hook.parsedOptions,
15191
+ inputContent = _hook.inputContent,
15192
+ onReset = _hook.onReset,
15193
+ menuProps = _hook.menu,
15194
+ getContext = _hook.getContext,
15195
+ onClear = _hook.onClear,
15196
+ dirty = _hook.dirty;
15197
+
15198
+ var _useState4 = useState(true),
15199
+ _loading = _useState4[0],
15200
+ setLoading = _useState4[1];
15071
15201
 
15072
- var _useState4 = useState(''),
15073
- searchInput = _useState4[0],
15074
- setSearchInput = _useState4[1];
15202
+ var _useState5 = useState(''),
15203
+ search = _useState5[0],
15204
+ _setSearch = _useState5[1];
15075
15205
 
15076
- var _useState5 = useState(1),
15077
- page = _useState5[0],
15078
- setPage = _useState5[1];
15206
+ var _useState6 = useState(''),
15207
+ searchInput = _useState6[0],
15208
+ setSearchInput = _useState6[1];
15079
15209
 
15080
- var _useState6 = useState(false),
15081
- lastPage = _useState6[0],
15082
- setLastPage = _useState6[1];
15210
+ var _useState7 = useState(1),
15211
+ page = _useState7[0],
15212
+ setPage = _useState7[1];
15083
15213
 
15084
- var _useState7 = useState(false),
15085
- open = _useState7[0],
15086
- setOpen = _useState7[1];
15214
+ var _useState8 = useState(false),
15215
+ lastPage = _useState8[0],
15216
+ setLastPage = _useState8[1];
15087
15217
 
15088
15218
  var loading = props.loading || _loading;
15089
15219
 
@@ -15093,18 +15223,18 @@ var Select = React__default.forwardRef(function (props, ref) {
15093
15223
  setPage(1);
15094
15224
  };
15095
15225
 
15096
- var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value', 'onClear', 'placeholder', 'initialLoader']);
15226
+ var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value', 'onClear', 'placeholder', 'initialLoader', 'onClickOption', 'rules', 'onScrollEnd', 'position', 'center', 'maxHeight', 'emptyContent', 'optionLabel']);
15097
15227
 
15098
15228
  var _onScrollEnd = props.onScrollEnd || function () {};
15099
15229
 
15100
- var onScrollEnd = function onScrollEnd() {
15230
+ var onScrollEnd = function onScrollEnd(e) {
15101
15231
  if (!lastPage && !loading) {
15102
15232
  setPage(function (prev) {
15103
15233
  return prev + 1;
15104
15234
  });
15105
15235
  }
15106
15236
 
15107
- _onScrollEnd();
15237
+ _onScrollEnd(e);
15108
15238
  };
15109
15239
 
15110
15240
  var onSubmit = useCallback(function () {
@@ -15113,9 +15243,9 @@ var Select = React__default.forwardRef(function (props, ref) {
15113
15243
  return Promise.resolve(loader(search, page)).then(function (optionsResult) {
15114
15244
  if (optionsResult === null) return;
15115
15245
 
15116
- var _ref2 = Array.isArray(optionsResult) ? [optionsResult, true] : [optionsResult.options, optionsResult.lastPage],
15117
- options = _ref2[0],
15118
- lastPage = _ref2[1];
15246
+ var _ref = Array.isArray(optionsResult) ? [optionsResult, true] : [optionsResult.options, optionsResult.lastPage],
15247
+ options = _ref[0],
15248
+ lastPage = _ref[1];
15119
15249
 
15120
15250
  var initial = initialLoader ? initialLoader() : [];
15121
15251
  var filtered = initialLoader ? options.filter(function (x) {
@@ -15154,15 +15284,17 @@ var Select = React__default.forwardRef(function (props, ref) {
15154
15284
  useEffect(function () {
15155
15285
  setSearchInput(search);
15156
15286
  }, [search]);
15157
-
15158
- var onSearch = function onSearch() {
15159
- setSearch(searchInput);
15160
- };
15161
-
15162
- var onClearSearch = function onClearSearch() {
15163
- setSearchInput('');
15164
- setSearch('');
15165
- };
15287
+ useEffect(function () {
15288
+ if (page === 1) setHighlight(-1);
15289
+ }, [page]);
15290
+ useEffect(function () {
15291
+ var timeoutId = setTimeout(function () {
15292
+ return setSearch(searchInput);
15293
+ }, 1000);
15294
+ return function () {
15295
+ return clearTimeout(timeoutId);
15296
+ };
15297
+ }, [searchInput]);
15166
15298
 
15167
15299
  var onClick = function onClick() {
15168
15300
  setOpen(function (prev) {
@@ -15173,11 +15305,7 @@ var Select = React__default.forwardRef(function (props, ref) {
15173
15305
  var isEmpty = (typeof props.value === 'string' || Array.isArray(props.value)) && props.value.length === 0;
15174
15306
  return getContext({
15175
15307
  setOpen: setOpen,
15176
- search: [search, setSearch],
15177
- searchInput: [searchInput, setSearchInput],
15178
- onSearch: onSearch,
15179
- onClearSearch: onClearSearch,
15180
- loading: loading
15308
+ searchInput: [searchInput, setSearchInput]
15181
15309
  }, React__default.createElement(RelativeContainer$2, {
15182
15310
  ref: useOnClickOut(function () {
15183
15311
  return setOpen(false);
@@ -15188,6 +15316,17 @@ var Select = React__default.forwardRef(function (props, ref) {
15188
15316
  htmlReadOnly: true,
15189
15317
  onClick: onClick,
15190
15318
  loading: loading,
15319
+ onKeyDown: function onKeyDown(e) {
15320
+ if (e.key === ' ') {
15321
+ setOpen(function (prev) {
15322
+ return !prev;
15323
+ });
15324
+ } else if (['ArrowDown', 'ArrowUp'].includes(e.key)) {
15325
+ setOpen(true);
15326
+ }
15327
+
15328
+ if (props.onKeyDown) props.onKeyDown(e);
15329
+ },
15191
15330
  dirty: dirty,
15192
15331
  icon: {
15193
15332
  icon: {
@@ -15204,14 +15343,21 @@ var Select = React__default.forwardRef(function (props, ref) {
15204
15343
  } : {
15205
15344
  clearable: onClear
15206
15345
  }, {
15207
- children: loading ? '' : inputContent
15346
+ children: inputContent
15208
15347
  })), React__default.createElement(Menu, Object.assign({}, menuProps, {
15348
+ rules: (props.rules || []).map(function (rule) {
15349
+ return function (index, data) {
15350
+ return rule(index, data.data);
15351
+ };
15352
+ }),
15353
+ highlight: highlight,
15209
15354
  open: open,
15210
15355
  close: function close() {
15211
15356
  return setOpen(false);
15212
15357
  },
15213
15358
  options: parsedOptions,
15214
15359
  onScrollEnd: onScrollEnd,
15360
+ scrollTabIndex: -1,
15215
15361
  width: props.inputWidth || '100%',
15216
15362
  bordered: true,
15217
15363
  position: position,
@@ -15551,15 +15697,7 @@ var Component = React__default.forwardRef(function (props, ref) {
15551
15697
 
15552
15698
  var options = Object.keys(countries).map(function (iso) {
15553
15699
  return {
15554
- label: function label(option) {
15555
- var country = option.data;
15556
- return React__default.createElement(Label$3, null, React__default.createElement(Flag, {
15557
- iso: iso
15558
- }), country.name, React__default.createElement("span", null, "+", country.ddi));
15559
- },
15560
- onClick: function onClick() {
15561
- setCountry(countries[iso]);
15562
- },
15700
+ label: country.name,
15563
15701
  data: countries[iso]
15564
15702
  };
15565
15703
  });
@@ -15625,6 +15763,16 @@ var Component = React__default.forwardRef(function (props, ref) {
15625
15763
  return setOpen(false);
15626
15764
  },
15627
15765
  options: options,
15766
+ onClickOption: function onClickOption(_index, _ref) {
15767
+ var iso = _ref.iso;
15768
+ return setCountry(countries[iso]);
15769
+ },
15770
+ label: function label(option) {
15771
+ var country = option.data;
15772
+ return React__default.createElement(Label$3, null, React__default.createElement(Flag, {
15773
+ iso: country.iso
15774
+ }), country.name, React__default.createElement("span", null, "+", country.ddi));
15775
+ },
15628
15776
  width: '100%',
15629
15777
  maxHeight: '165px',
15630
15778
  bordered: true,
@@ -15644,7 +15792,7 @@ var Phone = Object.assign(Component, {
15644
15792
  getPhoneDetails: getPhoneDetails
15645
15793
  });
15646
15794
 
15647
- var _templateObject$r, _templateObject2$l, _templateObject3$h, _templateObject4$b, _templateObject5$9, _templateObject6$8, _templateObject7$8, _templateObject8$7, _templateObject9$7;
15795
+ var _templateObject$r, _templateObject2$l, _templateObject3$h, _templateObject4$c, _templateObject5$9, _templateObject6$8, _templateObject7$8, _templateObject8$7, _templateObject9$7;
15648
15796
  var RelativeContainer$4 = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n position: relative;\n\n input {\n color: transparent;\n }\n"])));
15649
15797
  var LabelContainer$2 = styled.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: ", ";\n"])), function (_ref) {
15650
15798
  var theme = _ref.theme;
@@ -15660,7 +15808,7 @@ var Container$5 = styled.div(_templateObject3$h || (_templateObject3$h = _tagged
15660
15808
  var borderwidth = 1;
15661
15809
 
15662
15810
  if (paddingless) {
15663
- return css(_templateObject4$b || (_templateObject4$b = _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);
15811
+ return css(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n bottom: ", "px;\n left: ", "px;\n width: calc(100% - ", "px - ", ");\n height: calc(17px + ", "px);\n "])), borderwidth, borderwidth, borderwidth * 2, iconWidth, borderwidth * 2);
15664
15812
  }
15665
15813
 
15666
15814
  return css(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n bottom: ", "px;\n left: ", "px;\n width: calc(\n 100% - ", "px - ", " - ", "\n );\n height: calc(31px + ", "px);\n padding: ", " 0 ", " ", ";\n "])), borderwidth, borderwidth, borderwidth * 2, iconWidth, theme.spacings.s3, borderwidth * 2, theme.spacings.s2, theme.spacings.s2, theme.spacings.s3);
@@ -15794,7 +15942,7 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
15794
15942
  });
15795
15943
  DatePicker.displayName = 'DatePicker';
15796
15944
 
15797
- var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$c, _templateObject5$a, _templateObject6$9, _templateObject7$9, _templateObject8$8;
15945
+ var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$d, _templateObject5$a, _templateObject6$9, _templateObject7$9, _templateObject8$8;
15798
15946
  var LabelContainer$3 = styled.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n display: flex;\n align-items: center;\n\n ", "\n\n ", "\n"])), function (_ref) {
15799
15947
  var theme = _ref.theme;
15800
15948
  return theme.useTypography('p');
@@ -15809,7 +15957,7 @@ var LabelContainer$3 = styled.div(_templateObject$s || (_templateObject$s = _tag
15809
15957
  if (!keepSpace || children) return;
15810
15958
  return css(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n :before {\n content: '';\n white-space: pre;\n }\n "])));
15811
15959
  });
15812
- var Label$4 = styled.label(_templateObject4$c || (_templateObject4$c = _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) {
15960
+ var Label$4 = styled.label(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n position: relative;\n align-items: center;\n\n ", "\n\n ", "\n\n > input {\n position: absolute;\n height: 0%;\n width: 0%;\n opacity: 0;\n }\n\n > span {\n position: relative;\n width: 50px;\n height: calc(", " + 1px);\n background-color: ", ";\n border-radius: 20px;\n transition-property: background-color;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n box-sizing: content-box;\n :before {\n content: '';\n transition-property: left;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n position: absolute;\n border-width: 1px;\n border-style: solid;\n border-radius: 100%;\n left: 0;\n box-shadow: 0px 1px 3px ", ";\n width: calc(", " - 1px);\n height: calc(", " - 1px);\n background-color: ", ";\n }\n }\n\n > input:checked + span {\n :before {\n left: calc(100% - ", " - 1px);\n }\n }\n"])), function (_ref4) {
15813
15961
  var theme = _ref4.theme;
15814
15962
  return theme.spacings.s1;
15815
15963
  }, function (_ref5) {
@@ -15968,7 +16116,7 @@ var NavBar = styled.div(_templateObject$x || (_templateObject$x = _taggedTemplat
15968
16116
  return theme.colors.blue;
15969
16117
  });
15970
16118
 
15971
- var _templateObject$y, _templateObject2$q, _templateObject3$l, _templateObject4$d, _templateObject5$b;
16119
+ var _templateObject$y, _templateObject2$q, _templateObject3$l, _templateObject4$e, _templateObject5$b;
15972
16120
  var Label$5 = styled.label(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 17px;\n\n ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > ", " {\n ", "\n }\n\n :not(:hover) ", " {\n height: 0;\n }\n"])), function (_ref) {
15973
16121
  var theme = _ref.theme;
15974
16122
  return theme.useTypography('p');
@@ -15984,7 +16132,7 @@ var Label$5 = styled.label(_templateObject$y || (_templateObject$y = _taggedTemp
15984
16132
  }, function (_ref3) {
15985
16133
  var disabled = _ref3.$disabled;
15986
16134
  if (!disabled) return;
15987
- return css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
16135
+ return css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
15988
16136
  }, LabelContainer$4, function (_ref4) {
15989
16137
  var required = _ref4.$required,
15990
16138
  viewMode = _ref4.$viewMode;
@@ -16287,7 +16435,7 @@ var Range = React__default.forwardRef(function (props, ref) {
16287
16435
  });
16288
16436
  Range.displayName = 'input';
16289
16437
 
16290
- var _templateObject$E, _templateObject2$t, _templateObject3$n, _templateObject4$e, _templateObject5$c, _templateObject6$a, _templateObject7$a;
16438
+ var _templateObject$E, _templateObject2$t, _templateObject3$n, _templateObject4$f, _templateObject5$c, _templateObject6$a, _templateObject7$a;
16291
16439
  var LabelContainer$5 = styled.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
16292
16440
  var theme = _ref.theme;
16293
16441
  return theme.useTypography('p');
@@ -16302,7 +16450,7 @@ var Label$6 = styled.label(_templateObject2$t || (_templateObject2$t = _taggedTe
16302
16450
  return css(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
16303
16451
  }
16304
16452
 
16305
- return css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
16453
+ return css(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
16306
16454
  }, function (_ref4) {
16307
16455
  var required = _ref4.required;
16308
16456
  if (!required) return;
@@ -16536,7 +16684,7 @@ var parse = function parse(value) {
16536
16684
  });
16537
16685
  };
16538
16686
 
16539
- var _templateObject$F, _templateObject2$u, _templateObject3$o, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$8, _templateObject10$7, _templateObject11$4, _templateObject12$3;
16687
+ var _templateObject$F, _templateObject2$u, _templateObject3$o, _templateObject4$g, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$8, _templateObject10$7, _templateObject11$5, _templateObject12$3;
16540
16688
  var RelativeContainer$5 = styled.div(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > input,\n > label > input {\n color: transparent;\n background-color: transparent;\n width: 1px;\n height: 1px;\n position: absolute;\n left: 0;\n bottom: 0;\n border: 0;\n padding: 0;\n overflow: hidden;\n outline: none;\n box-shadow: none;\n }\n"])));
16541
16689
  var LabelContainer$6 = styled.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n\n :first-child {\n text-align: left;\n }\n :not(:first-child) {\n text-align: center;\n }\n\n ", "\n\n ", ";\n"])), function (_ref) {
16542
16690
  var theme = _ref.theme;
@@ -16551,7 +16699,7 @@ var LabelContainer$6 = styled.div(_templateObject2$u || (_templateObject2$u = _t
16551
16699
  }, function (_ref4) {
16552
16700
  var onClick = _ref4.onClick;
16553
16701
  if (!onClick) return;
16554
- return css(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
16702
+ return css(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
16555
16703
  });
16556
16704
  var Container$6 = styled.div(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n gap: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n\n width: 100%;\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref5) {
16557
16705
  var theme = _ref5.theme;
@@ -16586,7 +16734,7 @@ var Button$4 = styled.button(_templateObject9$8 || (_templateObject9$8 = _tagged
16586
16734
  if (!onClick) return;
16587
16735
  return css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
16588
16736
  });
16589
- var LabelText$1 = styled.label(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref12) {
16737
+ var LabelText$1 = styled.label(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref12) {
16590
16738
  var theme = _ref12.theme;
16591
16739
  return theme.spacings.s1;
16592
16740
  }, function (_ref13) {
@@ -16697,6 +16845,29 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
16697
16845
  ref: ref,
16698
16846
  readOnly: true
16699
16847
  }));
16848
+ var options = [{
16849
+ label: 'Hoje',
16850
+ data: {
16851
+ intervalType: 'day'
16852
+ }
16853
+ }, {
16854
+ label: 'Semana',
16855
+ data: {
16856
+ intervalType: 'week'
16857
+ }
16858
+ }, {
16859
+ label: 'Mês',
16860
+ data: {
16861
+ intervalType: 'month'
16862
+ }
16863
+ }, {
16864
+ label: 'Personalizado',
16865
+ data: {
16866
+ intervalType: 'custom'
16867
+ },
16868
+ keepOpen: true,
16869
+ caret: true
16870
+ }];
16700
16871
  return React__default.createElement(RelativeContainer$5, {
16701
16872
  ref: useOnClickOut(function () {
16702
16873
  return setOpen(null);
@@ -16757,33 +16928,16 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
16757
16928
  references: {
16758
16929
  bottom: '35px'
16759
16930
  },
16760
- options: [{
16761
- label: 'Hoje',
16762
- onClick: function onClick() {
16763
- return setValue(intervalTypes.day.initial(props.min));
16764
- },
16765
- data: {}
16766
- }, {
16767
- label: 'Semana',
16768
- onClick: function onClick() {
16769
- return setValue(intervalTypes.week.initial(props.min));
16770
- },
16771
- data: {}
16772
- }, {
16773
- label: 'Mês',
16774
- onClick: function onClick() {
16775
- return setValue(intervalTypes.month.initial(props.min));
16776
- },
16777
- data: {}
16778
- }, {
16779
- label: 'Personalizado',
16780
- onClick: function onClick() {
16781
- return setOpen('calendar');
16782
- },
16783
- data: {},
16784
- keepOpen: true,
16785
- caret: true
16786
- }],
16931
+ options: options,
16932
+ onClickOption: function onClickOption(_index, _ref2) {
16933
+ var intervalType = _ref2.intervalType;
16934
+
16935
+ if (intervalType === 'custom') {
16936
+ setOpen('calendar');
16937
+ } else {
16938
+ setValue(intervalTypes[intervalType].initial(props.min));
16939
+ }
16940
+ },
16787
16941
  width: '165px',
16788
16942
  itemSpacing: 's3',
16789
16943
  bordered: true
@@ -16794,9 +16948,9 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
16794
16948
  open: open === 'calendar',
16795
16949
  initialValue: value,
16796
16950
  onSubmit: {
16797
- onClick: function onClick(_ref2) {
16798
- var start = _ref2[0],
16799
- end = _ref2[1];
16951
+ onClick: function onClick(_ref3) {
16952
+ var start = _ref3[0],
16953
+ end = _ref3[1];
16800
16954
  if (start === null || end === null) return;
16801
16955
  setValue([start, end]);
16802
16956
  setOpen(null);
@@ -17433,7 +17587,7 @@ var Input$5 = Object.assign(Component$2, {
17433
17587
  getPhoneDetails: Phone.getPhoneDetails
17434
17588
  });
17435
17589
 
17436
- var _templateObject$L, _templateObject2$x, _templateObject3$q, _templateObject4$g;
17590
+ var _templateObject$L, _templateObject2$x, _templateObject3$q, _templateObject4$h;
17437
17591
  var Container$7 = styled(AbsoluteContainer)(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n > div {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n\n > div {\n padding: ", ";\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n }\n"])), function (_ref) {
17438
17592
  var theme = _ref.theme;
17439
17593
  return theme.colors.white;
@@ -17457,7 +17611,7 @@ var Title = styled.div(_templateObject3$q || (_templateObject3$q = _taggedTempla
17457
17611
  var getColor = _ref6.theme.getColor;
17458
17612
  return getColor('greyishBlue', 50);
17459
17613
  });
17460
- var Item = styled.div(_templateObject4$g || (_templateObject4$g = _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) {
17614
+ var Item = styled.div(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n padding: ", ";\n display: flex;\n align-items: center;\n\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n\n > div:nth-child(1) {\n flex: 1;\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n > div:nth-child(2) {\n ", "\n }\n }\n > div:nth-child(2) {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n"])), function (_ref7) {
17461
17615
  var s1 = _ref7.theme.spacings.s1;
17462
17616
  return s1 + " " + s1 + " " + s1 + " 0";
17463
17617
  }, function (_ref8) {
@@ -17638,13 +17792,13 @@ var AppliedFilters = Object.assign(function (props) {
17638
17792
  Menu: AppliedFiltersMenu
17639
17793
  });
17640
17794
 
17641
- var _templateObject$N, _templateObject2$z, _templateObject3$s, _templateObject4$h, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$9, _templateObject10$8;
17795
+ var _templateObject$N, _templateObject2$z, _templateObject3$s, _templateObject4$i, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$9, _templateObject10$8;
17642
17796
  var Container$9 = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: #fff;\n border: 1px solid #d4d4d5;\n border-radius: 4px;\n border-left-width: 5px;\n padding: 14px;\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n"])), function (props) {
17643
17797
  return props.size === 'mini' && css(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
17644
17798
  }, function (props) {
17645
17799
  return props.size === 'small' && css(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 131px;\n "])));
17646
17800
  }, function (props) {
17647
- return props.size === 'medium' && css(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
17801
+ return props.size === 'medium' && css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
17648
17802
  }, function (props) {
17649
17803
  return props.size === 'big' && css(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n width: 414px;\n height: 324px;\n "])));
17650
17804
  }, function (props) {
@@ -17774,8 +17928,7 @@ var getInstance = function getInstance(props) {
17774
17928
  var _getOptions = function _getOptions(value) {
17775
17929
  try {
17776
17930
  var options = intialOptions.filter(function (option) {
17777
- var label = isString(option.label) ? option.label : option.label.text;
17778
- return strCmp(label, value, {
17931
+ return strCmp(option.label, value, {
17779
17932
  contain: true
17780
17933
  });
17781
17934
  });
@@ -17940,9 +18093,8 @@ var Submenu = function Submenu(props) {
17940
18093
 
17941
18094
  var optionsParser = function optionsParser(option) {
17942
18095
  return {
17943
- label: typeof option.label === 'string' ? option.label : option.label.element,
17944
- onClick: onClickOption,
17945
- data: {}
18096
+ label: option.label,
18097
+ data: option
17946
18098
  };
17947
18099
  };
17948
18100
 
@@ -17960,6 +18112,8 @@ var Submenu = function Submenu(props) {
17960
18112
  close: close,
17961
18113
  width: isDynamic ? '275px' : '160px',
17962
18114
  height: '261px',
18115
+ onClickOption: onClickOption,
18116
+ label: props.optionLabel,
17963
18117
  containerSpacing: {
17964
18118
  top: 's3',
17965
18119
  left: 's1',
@@ -18004,16 +18158,11 @@ var FiltersMenu = function FiltersMenu(props) {
18004
18158
 
18005
18159
  var items = props.items.map(function (item) {
18006
18160
  return {
18007
- label: typeof item.label === 'string' ? item.label : item.label.element,
18161
+ label: item.label,
18008
18162
  delimiter: item.delimiter,
18009
18163
  keepOpen: true,
18010
18164
  caret: true,
18011
- onClick: function onClick(index) {
18012
- setActive(function (prev) {
18013
- return prev === index ? -1 : index;
18014
- });
18015
- },
18016
- data: {}
18165
+ data: item
18017
18166
  };
18018
18167
  });
18019
18168
  var selected = active >= 0 && active < props.items.length ? props.items[active] : undefined;
@@ -18027,6 +18176,12 @@ var FiltersMenu = function FiltersMenu(props) {
18027
18176
  close: close,
18028
18177
  width: '160px',
18029
18178
  maxHeight: '261px',
18179
+ onClickOption: function onClickOption(index) {
18180
+ setActive(function (prev) {
18181
+ return prev === index ? -1 : index;
18182
+ });
18183
+ },
18184
+ label: props.filterLabel,
18030
18185
  containerSpacing: {
18031
18186
  top: 's1',
18032
18187
  left: 's1',
@@ -18044,6 +18199,7 @@ var FiltersMenu = function FiltersMenu(props) {
18044
18199
  }
18045
18200
  }, props.containerProps || {}), React__default.createElement(Submenu, {
18046
18201
  item: selected,
18202
+ optionLabel: props.optionLabel && selected ? props.optionLabel[selected.name] : undefined,
18047
18203
  close: function close() {
18048
18204
  return setActive(-1);
18049
18205
  },
@@ -18058,7 +18214,7 @@ var Filters = Object.assign(function (props) {
18058
18214
  setAppliedFilters = props.setAppliedFilters,
18059
18215
  containerProps = props.containerProps,
18060
18216
  subContainerProps = props.subContainerProps;
18061
- var buttonProps = filterObject(props, ['items', 'setAppliedFilters']);
18217
+ var buttonProps = filterObject(props, ['items', 'setAppliedFilters', 'filterLabel', 'optionLabel']);
18062
18218
  return React__default.createElement(Button$5, Object.assign({}, buttonProps, {
18063
18219
  gap: 's4',
18064
18220
  getContent: function getContent(open, close) {
@@ -18068,7 +18224,9 @@ var Filters = Object.assign(function (props) {
18068
18224
  setAppliedFilters: setAppliedFilters,
18069
18225
  items: items,
18070
18226
  containerProps: containerProps,
18071
- subContainerProps: subContainerProps
18227
+ subContainerProps: subContainerProps,
18228
+ filterLabel: props.filterLabel,
18229
+ optionLabel: props.optionLabel
18072
18230
  }));
18073
18231
  }
18074
18232
  }), "Filtros");
@@ -18083,7 +18241,7 @@ var useContext$3 = function useContext() {
18083
18241
  return React__default.useContext(Provider$3);
18084
18242
  };
18085
18243
 
18086
- var _templateObject$Q, _templateObject2$A, _templateObject3$t, _templateObject4$i, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$a, _templateObject10$9, _templateObject11$5, _templateObject12$4, _templateObject13$2, _templateObject14$2, _templateObject15$2;
18244
+ var _templateObject$Q, _templateObject2$A, _templateObject3$t, _templateObject4$j, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$a, _templateObject10$9, _templateObject11$6, _templateObject12$4, _templateObject13$2, _templateObject14$2, _templateObject15$2;
18087
18245
  var aligns = {
18088
18246
  self: {
18089
18247
  horizontal: {
@@ -18122,7 +18280,7 @@ var Col = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLi
18122
18280
  }
18123
18281
 
18124
18282
  var w = parseFloat(width) * 100 / 12;
18125
- return css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n flex: 0 0 ", "%;\n max-width: ", "%;\n width: 100%;\n "])), w, w);
18283
+ return css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n flex: 0 0 ", "%;\n max-width: ", "%;\n width: 100%;\n "])), w, w);
18126
18284
  }, function (_ref2) {
18127
18285
  var spacing = _ref2.spacing;
18128
18286
  var padding = getSpacings(spacing === undefined ? 's1' : spacing);
@@ -18174,7 +18332,7 @@ var Col = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLi
18174
18332
  var bordered = _ref5.bordered,
18175
18333
  lightestGrey = _ref5.theme.colors.lightestGrey;
18176
18334
  if (!bordered) return;
18177
- return css(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
18335
+ return css(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
18178
18336
  }, function (_ref6) {
18179
18337
  var fontColor = _ref6.fontColor,
18180
18338
  theme = _ref6.theme;
@@ -18248,7 +18406,7 @@ var Grid$1 = React__default.forwardRef(function (props, ref) {
18248
18406
  });
18249
18407
  Grid$1.displayName = 'Grid';
18250
18408
 
18251
- var _templateObject$S, _templateObject2$C, _templateObject3$v, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$b, _templateObject10$a;
18409
+ var _templateObject$S, _templateObject2$C, _templateObject3$v, _templateObject4$k, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$b, _templateObject10$a;
18252
18410
  var horizontalAligns = {
18253
18411
  around: 'space-around',
18254
18412
  between: 'space-between',
@@ -18273,7 +18431,7 @@ var Row = styled.div(_templateObject$S || (_templateObject$S = _taggedTemplateLi
18273
18431
  }, function (_ref3) {
18274
18432
  var horizontalAlign = _ref3.horizontalAlign;
18275
18433
  if (horizontalAlign === undefined) return;
18276
- return css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n justify-content: ", ";\n "])), horizontalAligns[horizontalAlign]);
18434
+ return css(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n justify-content: ", ";\n "])), horizontalAligns[horizontalAlign]);
18277
18435
  }, function (_ref4) {
18278
18436
  var verticalAlign = _ref4.verticalAlign;
18279
18437
  if (verticalAlign === undefined) return;
@@ -18379,7 +18537,7 @@ var widths = {
18379
18537
  default: '642.5px'
18380
18538
  };
18381
18539
 
18382
- var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$c, _templateObject10$b;
18540
+ var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$l, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$c, _templateObject10$b;
18383
18541
  var Background = styled.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n backdrop-filter: blur(3px);\n background-color: ", ";\n"])), function (_ref) {
18384
18542
  var theme = _ref.theme;
18385
18543
  return theme.getColor('black', 25);
@@ -18390,7 +18548,7 @@ var Header$5 = styled.div(_templateObject3$w || (_templateObject3$w = _taggedTem
18390
18548
  colors = _ref2$theme.colors,
18391
18549
  spacings = _ref2$theme.spacings,
18392
18550
  useTypography = _ref2$theme.useTypography;
18393
- return css(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
18551
+ return css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
18394
18552
  });
18395
18553
  var Footer$2 = styled.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n"])), function (_ref3) {
18396
18554
  var _ref3$theme = _ref3.theme,
@@ -18609,11 +18767,11 @@ var Modal$1 = Object.assign(Modal, {
18609
18767
  Audit: Audit
18610
18768
  });
18611
18769
 
18612
- var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$d, _templateObject10$c, _templateObject11$6;
18770
+ var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$m, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$d, _templateObject10$c, _templateObject11$7;
18613
18771
  var Container$c = styled.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
18614
18772
  var Header$6 = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
18615
18773
  var HeaderImage = styled.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
18616
- var HeaderContent = styled.div(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
18774
+ var HeaderContent = styled.div(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
18617
18775
  var MainContent = styled.div(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
18618
18776
  var HeaderLine = styled.div(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18619
18777
  return props.height;
@@ -18626,7 +18784,7 @@ var HeaderLine = styled.div(_templateObject6$g || (_templateObject6$g = _taggedT
18626
18784
  }, function (props) {
18627
18785
  return props.size === 'large' && css(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
18628
18786
  });
18629
- var MainLine = styled(HeaderLine)(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
18787
+ var MainLine = styled(HeaderLine)(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
18630
18788
 
18631
18789
  var Template1 = function Template1(props) {
18632
18790
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -18661,7 +18819,7 @@ var Template1 = function Template1(props) {
18661
18819
  })));
18662
18820
  };
18663
18821
 
18664
- var _templateObject$Y, _templateObject2$F, _templateObject3$y, _templateObject4$m, _templateObject5$j;
18822
+ var _templateObject$Y, _templateObject2$F, _templateObject3$y, _templateObject4$n, _templateObject5$j;
18665
18823
  var HeaderLine$1 = styled.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18666
18824
  return props.height;
18667
18825
  }, function (props) {
@@ -18669,16 +18827,16 @@ var HeaderLine$1 = styled.div(_templateObject$Y || (_templateObject$Y = _taggedT
18669
18827
  }, function (props) {
18670
18828
  return props.size === 'small' && css(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18671
18829
  }, function (props) {
18672
- return props.size === 'medium' && css(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
18830
+ return props.size === 'medium' && css(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
18673
18831
  }, function (props) {
18674
18832
  return props.size === 'large' && css(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
18675
18833
  });
18676
18834
 
18677
- var _templateObject$Z, _templateObject2$G, _templateObject3$z, _templateObject4$n, _templateObject5$k, _templateObject6$h, _templateObject7$h, _templateObject8$f;
18835
+ var _templateObject$Z, _templateObject2$G, _templateObject3$z, _templateObject4$o, _templateObject5$k, _templateObject6$h, _templateObject7$h, _templateObject8$f;
18678
18836
  var Container$d = styled.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18679
18837
  var Template2Container = styled(Container$d)(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
18680
18838
  var Header$7 = styled.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
18681
- var HeaderImage$1 = styled.div(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
18839
+ var HeaderImage$1 = styled.div(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
18682
18840
  var HeaderContent$1 = styled.div(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
18683
18841
  var MainContent$1 = styled.div(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
18684
18842
  var MainLine$1 = styled(HeaderLine$1)(_templateObject7$h || (_templateObject7$h = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
@@ -18737,14 +18895,14 @@ var Template3 = function Template3(props) {
18737
18895
  }));
18738
18896
  };
18739
18897
 
18740
- var _templateObject$$, _templateObject2$I, _templateObject3$B, _templateObject4$o, _templateObject5$l, _templateObject6$i, _templateObject7$i, _templateObject8$g;
18898
+ var _templateObject$$, _templateObject2$I, _templateObject3$B, _templateObject4$p, _templateObject5$l, _templateObject6$i, _templateObject7$i, _templateObject8$g;
18741
18899
  var Container$f = styled.div(_templateObject$$ || (_templateObject$$ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18742
18900
  var HeaderLine$3 = styled.div(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18743
18901
  return props.height;
18744
18902
  }, function (props) {
18745
18903
  return props.size === 'mini' && css(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18746
18904
  }, function (props) {
18747
- return props.size === 'small' && css(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18905
+ return props.size === 'small' && css(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18748
18906
  }, function (props) {
18749
18907
  return props.size === 'medium' && css(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
18750
18908
  }, function (props) {
@@ -18804,13 +18962,13 @@ var Template4 = function Template4(props) {
18804
18962
  }));
18805
18963
  };
18806
18964
 
18807
- var _templateObject$10, _templateObject2$J, _templateObject3$C, _templateObject4$p, _templateObject5$m, _templateObject6$j, _templateObject7$j, _templateObject8$h, _templateObject9$e;
18965
+ var _templateObject$10, _templateObject2$J, _templateObject3$C, _templateObject4$q, _templateObject5$m, _templateObject6$j, _templateObject7$j, _templateObject8$h, _templateObject9$e;
18808
18966
  var Container$g = styled.div(_templateObject$10 || (_templateObject$10 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 746px;\n height: 169px;\n border: 1px solid #e6e6e7;\n border-radius: 4px;\n padding: 14px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
18809
18967
  var Circle = styled.div(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
18810
18968
  var HeaderLine$4 = styled.div(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18811
18969
  return props.height;
18812
18970
  }, function (props) {
18813
- return props.size === 'mini' && css(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18971
+ return props.size === 'mini' && css(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18814
18972
  }, function (props) {
18815
18973
  return props.size === 'small' && css(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18816
18974
  }, function (props) {
@@ -18852,11 +19010,11 @@ var Template5 = function Template5(props) {
18852
19010
  })));
18853
19011
  };
18854
19012
 
18855
- var _templateObject$11, _templateObject2$K, _templateObject3$D, _templateObject4$q, _templateObject5$n, _templateObject6$k, _templateObject7$k, _templateObject8$i, _templateObject9$f;
19013
+ var _templateObject$11, _templateObject2$K, _templateObject3$D, _templateObject4$r, _templateObject5$n, _templateObject6$k, _templateObject7$k, _templateObject8$i, _templateObject9$f;
18856
19014
  var Container$h = styled.div(_templateObject$11 || (_templateObject$11 = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
18857
19015
  var Header$8 = styled.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n"])));
18858
19016
  var Footer$3 = styled.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
18859
- var HeaderLine$5 = styled.div(_templateObject4$q || (_templateObject4$q = _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) {
19017
+ var HeaderLine$5 = styled.div(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18860
19018
  return props.height;
18861
19019
  }, function (props) {
18862
19020
  return props.size === 'mini' && css(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -18895,13 +19053,13 @@ var Template6 = function Template6(props) {
18895
19053
  })));
18896
19054
  };
18897
19055
 
18898
- var _templateObject$12, _templateObject2$L, _templateObject3$E, _templateObject4$r, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$g, _templateObject10$d;
19056
+ var _templateObject$12, _templateObject2$L, _templateObject3$E, _templateObject4$s, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$g, _templateObject10$d;
18899
19057
  var Container$i = styled.div(_templateObject$12 || (_templateObject$12 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18900
19058
  var Header$9 = styled.div(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18901
19059
  var HeaderLine$6 = styled.div(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18902
19060
  return props.height;
18903
19061
  }, function (props) {
18904
- return props.size === 'mini' && css(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
19062
+ return props.size === 'mini' && css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18905
19063
  }, function (props) {
18906
19064
  return props.size === 'small' && css(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18907
19065
  }, function (props) {
@@ -18929,13 +19087,13 @@ var Template7 = function Template7(props) {
18929
19087
  })), React__default.createElement(Main$2, null, React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null)));
18930
19088
  };
18931
19089
 
18932
- var _templateObject$13, _templateObject2$M, _templateObject3$F, _templateObject4$s, _templateObject5$p, _templateObject6$m, _templateObject7$m, _templateObject8$k, _templateObject9$h;
19090
+ var _templateObject$13, _templateObject2$M, _templateObject3$F, _templateObject4$t, _templateObject5$p, _templateObject6$m, _templateObject7$m, _templateObject8$k, _templateObject9$h;
18933
19091
  var Container$j = styled.div(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18934
19092
  var Header$a = styled.div(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18935
19093
  var HeaderLine$7 = styled.div(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18936
19094
  return props.height;
18937
19095
  }, function (props) {
18938
- return props.size === 'mini' && css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
19096
+ return props.size === 'mini' && css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18939
19097
  }, function (props) {
18940
19098
  return props.size === 'small' && css(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18941
19099
  }, function (props) {
@@ -18972,13 +19130,13 @@ var Template8 = function Template8(props) {
18972
19130
  })));
18973
19131
  };
18974
19132
 
18975
- var _templateObject$14, _templateObject2$N, _templateObject3$G, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$i, _templateObject10$e;
19133
+ var _templateObject$14, _templateObject2$N, _templateObject3$G, _templateObject4$u, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$i, _templateObject10$e;
18976
19134
  var Container$k = styled.div(_templateObject$14 || (_templateObject$14 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18977
19135
  var Header$b = styled.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18978
19136
  var HeaderLine$8 = styled.div(_templateObject3$G || (_templateObject3$G = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18979
19137
  return props.height;
18980
19138
  }, function (props) {
18981
- return props.size === 'mini' && css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
19139
+ return props.size === 'mini' && css(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18982
19140
  }, function (props) {
18983
19141
  return props.size === 'small' && css(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18984
19142
  }, function (props) {
@@ -19011,13 +19169,13 @@ var Template8$1 = function Template8(props) {
19011
19169
  })), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
19012
19170
  };
19013
19171
 
19014
- var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$j, _templateObject10$f, _templateObject11$7;
19172
+ var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$v, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$j, _templateObject10$f, _templateObject11$8;
19015
19173
  var Container$l = styled.div(_templateObject$15 || (_templateObject$15 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
19016
19174
  var Header$c = styled.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
19017
19175
  var HeaderLine$9 = styled.div(_templateObject3$H || (_templateObject3$H = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
19018
19176
  return props.height;
19019
19177
  }, function (props) {
19020
- return props.size === 'mini' && css(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
19178
+ return props.size === 'mini' && css(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
19021
19179
  }, function (props) {
19022
19180
  return props.size === 'small' && css(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
19023
19181
  }, function (props) {
@@ -19034,7 +19192,7 @@ var CustomLine$6 = styled(HeaderLine$9)(_templateObject8$m || (_templateObject8$
19034
19192
  });
19035
19193
  var GraphLine = styled(CustomLine$6)(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
19036
19194
  var Main$5 = styled.div(_templateObject10$f || (_templateObject10$f = _taggedTemplateLiteralLoose(["\n flex: 1;\n padding: 0 7px 72px 7px;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: center;\n"])));
19037
- var Circle$3 = styled.div(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
19195
+ var Circle$3 = styled.div(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
19038
19196
 
19039
19197
  var Template10 = function Template10(props) {
19040
19198
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -19155,7 +19313,7 @@ var Placeholder = function Placeholder(props) {
19155
19313
  }
19156
19314
  };
19157
19315
 
19158
- var _templateObject$16, _templateObject2$P, _templateObject3$I, _templateObject4$v, _templateObject5$s, _templateObject6$p, _templateObject7$p;
19316
+ var _templateObject$16, _templateObject2$P, _templateObject3$I, _templateObject4$w, _templateObject5$s, _templateObject6$p, _templateObject7$p;
19159
19317
  var Container$m = styled.div(_templateObject$16 || (_templateObject$16 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n span {\n display: inline-block;\n margin-left: 7px;\n color: #000000cc;\n }\n"])));
19160
19318
  var Progress = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n width: 64px;\n height: 12px;\n border: 1px solid #e4e4e4;\n div {\n width: ", ";\n max-width: 64px;\n height: 100%;\n ", "\n\n ", "\n ", "\n ", "\n ", "\n }\n"])), function (props) {
19161
19319
  return props.value + "%";
@@ -19165,7 +19323,7 @@ var Progress = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTem
19165
19323
  return theme.colors.warningGray;
19166
19324
  });
19167
19325
  }, function (props) {
19168
- return props.type === 'info' && css(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref2) {
19326
+ return props.type === 'info' && css(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref2) {
19169
19327
  var theme = _ref2.theme;
19170
19328
  return theme.colors.blue;
19171
19329
  });
@@ -19190,7 +19348,7 @@ var ProgressBar = function ProgressBar(props) {
19190
19348
  return React__default.createElement(Container$m, null, React__default.createElement(Progress, Object.assign({}, props), React__default.createElement("div", null)), React__default.createElement("span", null, " ", props.value || '0', "%"));
19191
19349
  };
19192
19350
 
19193
- var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$w, _templateObject5$t, _templateObject6$q, _templateObject7$q, _templateObject8$n, _templateObject9$k;
19351
+ var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$x, _templateObject5$t, _templateObject6$q, _templateObject7$q, _templateObject8$n, _templateObject9$k;
19194
19352
  var Container$n = styled.div(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
19195
19353
  var delimiters = {
19196
19354
  blue: ['blue'],
@@ -19224,7 +19382,7 @@ var Tabs = styled.ul(_templateObject2$Q || (_templateObject2$Q = _taggedTemplate
19224
19382
  return internal ? "1px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'grey']) : "2px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'blue']);
19225
19383
  }();
19226
19384
 
19227
- return css(_templateObject4$w || (_templateObject4$w = _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);
19385
+ return css(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n border-bottom: ", ";\n\n + div {\n border: 1px solid ", ";\n border-top-width: 0px;\n border-radius: 0px 0px 2px 2px;\n padding: ", ";\n }\n "])), border, theme.getColor.apply(theme, delimiters.grey), theme.spacings.s3);
19228
19386
  }, function (_ref3) {
19229
19387
  var theme = _ref3.theme,
19230
19388
  internal = _ref3.$internal;
@@ -19380,7 +19538,7 @@ var TextArea = function TextArea(props) {
19380
19538
  return React__default.createElement(Container$o, Object.assign({}, props));
19381
19539
  };
19382
19540
 
19383
- var _templateObject$1a, _templateObject2$R, _templateObject3$K, _templateObject4$x, _templateObject5$u, _templateObject6$r;
19541
+ var _templateObject$1a, _templateObject2$R, _templateObject3$K, _templateObject4$y, _templateObject5$u, _templateObject6$r;
19384
19542
  var Container$p = styled.div(_templateObject$1a || (_templateObject$1a = _taggedTemplateLiteralLoose(["\n border-radius: 4px;\n width: ", ";\n height: 88px;\n border: 1px solid transparent;\n position: relative;\n\n ", "\n\n ", "\n\n ", "\n\n svg {\n cursor: pointer;\n position: absolute;\n top: 14px;\n right: 14px;\n width: 13px;\n height: 13px;\n }\n"])), function (props) {
19385
19543
  return props.size === 'large' ? '837px' : '460px';
19386
19544
  }, function (props) {
@@ -19388,7 +19546,7 @@ var Container$p = styled.div(_templateObject$1a || (_templateObject$1a = _tagged
19388
19546
  }, function (props) {
19389
19547
  return props.color === 'error' && css(_templateObject3$K || (_templateObject3$K = _taggedTemplateLiteralLoose(["\n background-color: #fff6f6;\n opacity: 1;\n border-color: #973937;\n h4 {\n color: #973937;\n }\n p {\n color: #973937;\n }\n "])));
19390
19548
  }, function (props) {
19391
- return props.color === 'warning' && css(_templateObject4$x || (_templateObject4$x = _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 "])));
19549
+ return props.color === 'warning' && css(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n background-color: #fffaf3;\n opacity: 1;\n border-color: #ccbea0;\n h4 {\n color: #7a4d05;\n }\n p {\n color: #7a4d05cc;\n }\n "])));
19392
19550
  });
19393
19551
  var IconContainer$2 = styled.div(_templateObject5$u || (_templateObject5$u = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 14px 14px 0 0;\n margin: 0;\n"])));
19394
19552
  var IconContent = styled.div(_templateObject6$r || (_templateObject6$r = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 13px 0 21px 28px;\n display: flex;\n flex: 1;\n flex-direction: column;\n\n h4 {\n margin-bottom: 7px;\n font-size: 18p;\n }\n p {\n margin: 0;\n font-size: 14px;\n max-width: 380px;\n }\n"])));
@@ -19403,7 +19561,7 @@ var Toast = function Toast(props) {
19403
19561
  })), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
19404
19562
  };
19405
19563
 
19406
- var _templateObject$1b, _templateObject2$S, _templateObject3$L, _templateObject4$y, _templateObject5$v;
19564
+ var _templateObject$1b, _templateObject2$S, _templateObject3$L, _templateObject4$z, _templateObject5$v;
19407
19565
  var Image = styled.img(_templateObject$1b || (_templateObject$1b = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
19408
19566
  var Container$q = styled.div(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n\n &,\n ", " {\n width: ", ";\n\n height: ", ";\n }\n"])), Image, function (_ref) {
19409
19567
  var width = _ref.width;
@@ -19436,7 +19594,7 @@ var Dimmer = styled.div(_templateObject3$L || (_templateObject3$L = _taggedTempl
19436
19594
  var theme = _ref3.theme;
19437
19595
  return theme.getColor('greyishBlue', 50);
19438
19596
  });
19439
- var Button$6 = styled(Button$1)(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
19597
+ var Button$6 = styled(Button$1)(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
19440
19598
  var theme = _ref4.theme;
19441
19599
  return theme.getColor('white', 50);
19442
19600
  });