@mw-kit/mw-ui 1.7.92 → 1.7.93

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