@mw-kit/mw-ui 1.6.14 → 1.7.1

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.
Files changed (42) hide show
  1. package/dist/components/Filters/AppliedFilters/components/Menu/index.d.ts +4 -0
  2. package/dist/components/Filters/AppliedFilters/components/Menu/interfaces.d.ts +5 -0
  3. package/dist/components/Filters/AppliedFilters/components/Menu/styles.d.ts +5 -0
  4. package/dist/components/Filters/AppliedFilters/index.d.ts +3 -1
  5. package/dist/components/Filters/AppliedFilters/interfaces.d.ts +3 -3
  6. package/dist/components/Filters/Button/index.d.ts +4 -0
  7. package/dist/components/Filters/Button/interfaces.d.ts +5 -0
  8. package/dist/components/Filters/Button/styles.d.ts +1 -0
  9. package/dist/components/Filters/Filters/components/Menu/index.d.ts +4 -0
  10. package/dist/components/Filters/Filters/components/Menu/interfaces.d.ts +5 -0
  11. package/dist/components/Filters/Filters/index.d.ts +3 -1
  12. package/dist/components/Filters/Filters/interfaces.d.ts +3 -3
  13. package/dist/components/Filters/styles.d.ts +1 -0
  14. package/dist/components/Input/components/DateIntervalPicker/functions.d.ts +3 -3
  15. package/dist/components/Input/components/DateIntervalPicker/interfaces.d.ts +2 -1
  16. package/dist/components/Input/components/DateTime/index.d.ts +4 -0
  17. package/dist/components/Input/components/DateTime/interfaces.d.ts +10 -0
  18. package/dist/components/Input/components/DateTime/styles.d.ts +1 -0
  19. package/dist/components/Input/components/Input/interfaces.d.ts +1 -4
  20. package/dist/components/Input/components/Tags/components/Input/index.d.ts +4 -0
  21. package/dist/components/Input/components/Tags/components/Input/interfaces.d.ts +12 -0
  22. package/dist/components/Input/components/Tags/components/Input/styles.d.ts +2 -0
  23. package/dist/components/Input/components/Tags/components/Label/index.d.ts +4 -0
  24. package/dist/components/Input/components/Tags/components/Label/interfaces.d.ts +4 -0
  25. package/dist/components/Input/components/Tags/components/Label/styles.d.ts +2 -0
  26. package/dist/components/Input/components/Tags/components/Tag/index.d.ts +4 -0
  27. package/dist/components/Input/components/Tags/components/Tag/interfaces.d.ts +5 -0
  28. package/dist/components/Input/components/Tags/components/Tag/styles.d.ts +2 -0
  29. package/dist/components/Input/components/Tags/components/index.d.ts +3 -0
  30. package/dist/components/Input/components/Tags/index.d.ts +4 -0
  31. package/dist/components/Input/components/Tags/interfaces.d.ts +25 -0
  32. package/dist/components/Input/components/Tags/styles.d.ts +3 -0
  33. package/dist/components/Input/{components/Input/functions.d.ts → functions.d.ts} +0 -0
  34. package/dist/components/Input/index.d.ts +4 -2
  35. package/dist/components/Input/interfaces.d.ts +4 -0
  36. package/dist/index.js +835 -198
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.modern.js +835 -198
  39. package/dist/index.modern.js.map +1 -1
  40. package/dist/interfaces.d.ts +1 -0
  41. package/package.json +1 -1
  42. package/dist/components/Filters/AppliedFilters/styles.d.ts +0 -5
package/dist/index.js CHANGED
@@ -12716,6 +12716,11 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12716
12716
  paddingless = _props.paddingless;
12717
12717
 
12718
12718
  var mask = getMask(props.mask);
12719
+ React.useEffect(function () {
12720
+ if (!isString(props.value)) return;
12721
+ var masked = mask(props.value);
12722
+ if (masked !== props.value) setValue(masked);
12723
+ }, [props.value]);
12719
12724
  var intInvalid = invalid ? 1 : 0;
12720
12725
  var intRequired = required ? 1 : 0;
12721
12726
  var intDisabled = disabled ? 1 : 0;
@@ -12765,10 +12770,7 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12765
12770
  } : function () {};
12766
12771
 
12767
12772
  inputProps.onKeyDown = function (event) {
12768
- var target = event.target;
12769
- var v = target.value;
12770
12773
  onKeyDown(event);
12771
- if (v !== target.value) setValue(target.value);
12772
12774
 
12773
12775
  if (event.key === 'Enter') {
12774
12776
  _onPressEnter(event);
@@ -12848,8 +12850,7 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12848
12850
  ref: ref
12849
12851
  })), icon && React__default.createElement(IconContainer, {
12850
12852
  type: iconSubmit ? 'submit' : 'button',
12851
- onClick: iconOnClick,
12852
- disabled: props.disabled
12853
+ onClick: props.disabled ? undefined : iconOnClick
12853
12854
  }, React__default.createElement(Icon, Object.assign({}, icon))));
12854
12855
  });
12855
12856
  Input$1.displayName = 'Input';
@@ -13024,6 +13025,8 @@ var Time = React__default.forwardRef(function (props, ref) {
13024
13025
 
13025
13026
  var _onKeyDown = props.onKeyDown || function () {};
13026
13027
 
13028
+ var setValue = props.setValue || function () {};
13029
+
13027
13030
  var onKeyDown = function onKeyDown(event) {
13028
13031
  var target = event.target;
13029
13032
  var todayDate = new Date();
@@ -13049,13 +13052,13 @@ var Time = React__default.forwardRef(function (props, ref) {
13049
13052
  h = date.getHours();
13050
13053
  m = date.getMinutes();
13051
13054
  s = date.getSeconds();
13052
- target.value = [h.toString().padStart(2, '0'), m.toString().padStart(2, '0'), s.toString().padStart(2, '0')].join(':');
13055
+ setValue([h.toString().padStart(2, '0'), m.toString().padStart(2, '0'), s.toString().padStart(2, '0')].join(':'));
13053
13056
  } else {
13054
13057
  date.setMinutes(m + 1);
13055
13058
  h = date.getHours();
13056
13059
  m = date.getMinutes();
13057
13060
  s = date.getSeconds();
13058
- target.value = [h.toString().padStart(2, '0'), m.toString().padStart(2, '0')].join(':');
13061
+ setValue([h.toString().padStart(2, '0'), m.toString().padStart(2, '0')].join(':'));
13059
13062
  }
13060
13063
  } else if (event.key === 'ArrowDown') {
13061
13064
  var _date = new Date();
@@ -13072,14 +13075,14 @@ var Time = React__default.forwardRef(function (props, ref) {
13072
13075
  h = _date.getHours();
13073
13076
  m = _date.getMinutes();
13074
13077
  s = _date.getSeconds();
13075
- target.value = [h.toString().padStart(2, '0'), m.toString().padStart(2, '0'), s.toString().padStart(2, '0')].join(':');
13078
+ setValue([h.toString().padStart(2, '0'), m.toString().padStart(2, '0'), s.toString().padStart(2, '0')].join(':'));
13076
13079
  } else {
13077
13080
  _date.setMinutes(m - 1);
13078
13081
 
13079
13082
  h = _date.getHours();
13080
13083
  m = _date.getMinutes();
13081
13084
  s = _date.getSeconds();
13082
- target.value = [h.toString().padStart(2, '0'), m.toString().padStart(2, '0')].join(':');
13085
+ setValue([h.toString().padStart(2, '0'), m.toString().padStart(2, '0')].join(':'));
13083
13086
  }
13084
13087
  }
13085
13088
 
@@ -13530,7 +13533,7 @@ var Date$1 = React__default.forwardRef(function (props, ref) {
13530
13533
  date.setDate(date.getDate() + 1);
13531
13534
 
13532
13535
  if (!max || date <= max) {
13533
- target.value = dateToIsoString(date);
13536
+ setValue(dateToIsoString(date));
13534
13537
  }
13535
13538
  } else if (event.key === 'ArrowDown') {
13536
13539
  var _date = new JSDate(y + "-" + m + "-" + d + " 00:00:00");
@@ -13538,7 +13541,7 @@ var Date$1 = React__default.forwardRef(function (props, ref) {
13538
13541
  _date.setDate(_date.getDate() - 1);
13539
13542
 
13540
13543
  if (!min || _date >= min) {
13541
- target.value = dateToIsoString(_date);
13544
+ setValue(dateToIsoString(_date));
13542
13545
  }
13543
13546
  }
13544
13547
 
@@ -14368,10 +14371,6 @@ var Component = React__default.forwardRef(function (props, ref) {
14368
14371
  open = _useState3[0],
14369
14372
  setOpen = _useState3[1];
14370
14373
 
14371
- React.useEffect(function () {
14372
- var details = getPhoneDetails(value || '');
14373
- setCountry(details ? details.country : countries.br);
14374
- }, [value]);
14375
14374
  var options = Object.keys(countries).map(function (iso) {
14376
14375
  return {
14377
14376
  label: {
@@ -14394,8 +14393,20 @@ var Component = React__default.forwardRef(function (props, ref) {
14394
14393
  };
14395
14394
 
14396
14395
  React.useEffect(function () {
14397
- var details = getPhoneDetails(value || '');
14398
- setCountry(details ? details.country : countries.br);
14396
+ if (!value) {
14397
+ setInputValue('');
14398
+ return;
14399
+ }
14400
+
14401
+ var details = getPhoneDetails(value);
14402
+
14403
+ if (details) {
14404
+ setCountry(details.country);
14405
+ setInputValue(details.masked);
14406
+ } else {
14407
+ setCountry(countries.br);
14408
+ setInputValue(value);
14409
+ }
14399
14410
  }, [value]);
14400
14411
  React.useEffect(function () {
14401
14412
  setInputValue(function (prev) {
@@ -15083,6 +15094,7 @@ var CalendarInterval = function CalendarInterval(props) {
15083
15094
  var validate = function validate(_ref, min, max) {
15084
15095
  var start = _ref[0],
15085
15096
  end = _ref[1];
15097
+ if (start === null || end === null) return true;
15086
15098
  if (min && start < min) return false;
15087
15099
  if (max && end > max) return false;
15088
15100
  return true;
@@ -15200,9 +15212,18 @@ var intervalTypes = {
15200
15212
  },
15201
15213
  custom: {
15202
15214
  label: function label(prev) {
15203
- var start = dateToIsoString(prev[0], false, false);
15204
- var end = dateToIsoString(prev[1], false, false);
15205
- return start + " - " + end;
15215
+ var start = dateToIsoString(prev[0], true, false).substring(0, 14).split(' ');
15216
+ var end = dateToIsoString(prev[1], true, false).substring(0, 14).split(' ');
15217
+
15218
+ if (start[1] === '00:00' && end[1] === '23:59') {
15219
+ start.pop();
15220
+ end.pop();
15221
+ } else {
15222
+ start[1] = "(" + start[1] + ")";
15223
+ end[1] = "(" + end[1] + ")";
15224
+ }
15225
+
15226
+ return start.join(' ') + " \xE0 " + end.join(' ');
15206
15227
  },
15207
15228
  initial: function initial(base) {
15208
15229
  if (!base) base = new Date();
@@ -15213,6 +15234,7 @@ var intervalTypes = {
15213
15234
  var identify = function identify(value) {
15214
15235
  var start = value[0],
15215
15236
  end = value[1];
15237
+ if (start === null || end === null) return 'custom';
15216
15238
  var isoStart = dateToIsoString(start);
15217
15239
  var isoEnd = dateToIsoString(end);
15218
15240
 
@@ -15250,52 +15272,56 @@ var identify = function identify(value) {
15250
15272
  };
15251
15273
  var parse = function parse(value) {
15252
15274
  return value.map(function (v) {
15253
- return new Date(v);
15275
+ return v ? new Date(v) : null;
15254
15276
  });
15255
15277
  };
15256
15278
 
15257
- var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5;
15258
- var RelativeContainer$5 = styled__default.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n\n > :nth-child(1) input {\n color: transparent;\n }\n"])), function (_ref) {
15259
- var theme = _ref.theme,
15260
- invalid = _ref.invalid;
15261
- return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
15262
- });
15263
- var LabelContainer$3 = styled__default.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: ", ";\n"])), function (_ref2) {
15264
- var theme = _ref2.theme;
15279
+ var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5, _templateObject11$4;
15280
+ var RelativeContainer$5 = styled__default.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > :nth-child(1) input {\n color: transparent;\n }\n"])));
15281
+ var LabelContainer$3 = styled__default.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
15282
+ var theme = _ref.theme;
15265
15283
  return theme.useTypography('p');
15266
- }, function (_ref3) {
15267
- var theme = _ref3.theme;
15268
- return theme.spacings.s3;
15284
+ }, function (_ref2) {
15285
+ var onClick = _ref2.onClick;
15286
+ if (!onClick) return;
15287
+ return styled.css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
15269
15288
  });
15270
- var Container$a = styled__default.div(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 1px;\n left: 1px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref4) {
15289
+ var Container$a = styled__default.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 1px;\n left: 1px;\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 ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref3) {
15290
+ var theme = _ref3.theme;
15291
+ return theme.spacings.s1;
15292
+ }, function (_ref4) {
15271
15293
  var theme = _ref4.theme,
15272
- iconWidth = _ref4.iconWidth,
15273
- paddingless = _ref4.paddingless;
15294
+ invalid = _ref4.invalid;
15295
+ return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
15296
+ }, function (_ref5) {
15297
+ var theme = _ref5.theme,
15298
+ iconWidth = _ref5.iconWidth,
15299
+ paddingless = _ref5.paddingless;
15274
15300
 
15275
15301
  if (paddingless) {
15276
- return styled.css(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", ");\n height: 19px;\n "])), iconWidth);
15302
+ return styled.css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", ");\n "])), iconWidth);
15277
15303
  }
15278
15304
 
15279
- return styled.css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", " - ", ");\n height: 33px;\n padding: ", " 0 ", " ", ";\n "])), iconWidth, theme.spacings.s3, theme.spacings.s2, theme.spacings.s2, theme.spacings.s3);
15280
- }, function (_ref5) {
15281
- var invalid = _ref5.invalid,
15282
- theme = _ref5.theme;
15283
- if (!invalid) return;
15284
- return styled.css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
15305
+ return styled.css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", " - ", ");\n padding: ", " 0 ", " ", ";\n "])), iconWidth, theme.spacings.s3, theme.spacings.s2, theme.spacings.s2, theme.spacings.s3);
15285
15306
  }, function (_ref6) {
15286
15307
  var invalid = _ref6.invalid,
15287
15308
  theme = _ref6.theme;
15288
15309
  if (!invalid) return;
15289
15310
  return styled.css(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
15290
15311
  }, function (_ref7) {
15291
- var disabled = _ref7.disabled;
15312
+ var invalid = _ref7.invalid,
15313
+ theme = _ref7.theme;
15314
+ if (!invalid) return;
15315
+ return styled.css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
15316
+ }, function (_ref8) {
15317
+ var disabled = _ref8.disabled;
15292
15318
  if (!disabled) return;
15293
- return styled.css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
15319
+ return styled.css(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
15294
15320
  });
15295
- var Button$4 = styled__default.button(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref8) {
15296
- var onClick = _ref8.onClick;
15321
+ var Button$4 = styled__default.button(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref9) {
15322
+ var onClick = _ref9.onClick;
15297
15323
  if (!onClick) return;
15298
- return styled.css(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
15324
+ return styled.css(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
15299
15325
  });
15300
15326
 
15301
15327
  var Component$1 = React__default.forwardRef(function (props, ref) {
@@ -15306,7 +15332,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15306
15332
  open = _useState[0],
15307
15333
  setOpen = _useState[1];
15308
15334
 
15309
- var _useState2 = React.useState('day'),
15335
+ var _useState2 = React.useState(props.only || 'day'),
15310
15336
  intervalType = _useState2[0],
15311
15337
  setIntervalType = _useState2[1];
15312
15338
 
@@ -15328,10 +15354,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15328
15354
  throw Error('Min prop must be less than Max');
15329
15355
  }
15330
15356
 
15331
- if (props.value.some(function (v) {
15332
- return v === '';
15333
- })) {
15334
- setValue(intervalTypes.day.initial(props.min));
15357
+ if (props.only) {
15335
15358
  return;
15336
15359
  }
15337
15360
 
@@ -15340,7 +15363,6 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15340
15363
  if (value.some(function (v) {
15341
15364
  return !isDateInstance(v);
15342
15365
  }) || !validate(value, props.min, props.max)) {
15343
- setValue(intervalTypes.day.initial(props.min));
15344
15366
  return;
15345
15367
  }
15346
15368
 
@@ -15350,6 +15372,14 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15350
15372
  var inputProps = filterObject(props, ['min', 'max']);
15351
15373
 
15352
15374
  var getArrowProps = function getArrowProps(key) {
15375
+ if (value.some(function (v) {
15376
+ return !isDateInstance(v);
15377
+ })) {
15378
+ return {
15379
+ disabled: true
15380
+ };
15381
+ }
15382
+
15353
15383
  var func = config[key];
15354
15384
 
15355
15385
  if (func === undefined) {
@@ -15373,9 +15403,21 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15373
15403
  };
15374
15404
  };
15375
15405
 
15376
- var incrementProps = getArrowProps('increment');
15377
- var decrementProps = getArrowProps('decrement');
15378
15406
  var invalid = props.invalid || !validate(value, min, max);
15407
+
15408
+ var onClick = function () {
15409
+ if (inputProps.disabled || !['custom', undefined].includes(props.only)) {
15410
+ return undefined;
15411
+ }
15412
+
15413
+ var toOpen = props.only === 'custom' ? 'calendar' : 'menu';
15414
+ return function () {
15415
+ return setOpen(function (prev) {
15416
+ return prev === null ? toOpen : null;
15417
+ });
15418
+ };
15419
+ }();
15420
+
15379
15421
  return React__default.createElement(RelativeContainer$5, {
15380
15422
  ref: useOnClickOut(function () {
15381
15423
  return setOpen(null);
@@ -15394,11 +15436,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15394
15436
  width: '24px'
15395
15437
  },
15396
15438
  position: 'right',
15397
- onClick: function onClick() {
15398
- return setOpen(function (prev) {
15399
- return prev === null ? 'menu' : null;
15400
- });
15401
- }
15439
+ onClick: onClick
15402
15440
  },
15403
15441
  borderless: true,
15404
15442
  htmlDisabled: true
@@ -15407,27 +15445,35 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15407
15445
  invalid: props.invalid ? 1 : 0,
15408
15446
  disabled: props.disabled ? 1 : 0,
15409
15447
  paddingless: props.paddingless ? 1 : 0
15410
- }, React__default.createElement(Button$4, Object.assign({
15411
- type: 'button'
15412
- }, decrementProps, {
15413
- disabled: disabled || decrementProps.disabled
15414
- }), React__default.createElement(Icon, {
15415
- type: 'feather',
15416
- icon: 'chevron_left',
15417
- color: props.invalid ? 'warningRed' : 'grey',
15418
- strokeWidth: '3px'
15419
- })), React__default.createElement("div", null, value.some(function (v) {
15420
- return !isDateInstance(v);
15421
- }) ? '' : config.label(value)), React__default.createElement(Button$4, Object.assign({
15422
- type: 'button'
15423
- }, incrementProps, {
15424
- disabled: disabled || incrementProps.disabled
15425
- }), React__default.createElement(Icon, {
15426
- type: 'feather',
15427
- icon: 'chevron_right',
15428
- color: props.invalid ? 'warningRed' : 'grey',
15429
- strokeWidth: '3px'
15430
- }))), React__default.createElement(Menu, {
15448
+ }, function () {
15449
+ var label = React__default.createElement(LabelContainer$3, {
15450
+ onClick: onClick
15451
+ }, value.some(function (v) {
15452
+ return !isDateInstance(v);
15453
+ }) ? '--/--/-- (--:--) à --/--/-- (--:--)' : config.label(value));
15454
+ if (intervalType === 'custom') return label;
15455
+ var incrementProps = getArrowProps('increment');
15456
+ var decrementProps = getArrowProps('decrement');
15457
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(Button$4, Object.assign({
15458
+ type: 'button'
15459
+ }, decrementProps, {
15460
+ disabled: disabled || decrementProps.disabled
15461
+ }), React__default.createElement(Icon, {
15462
+ type: 'feather',
15463
+ icon: 'chevron_left',
15464
+ color: props.invalid ? 'warningRed' : 'grey',
15465
+ strokeWidth: '3px'
15466
+ })), label, React__default.createElement(Button$4, Object.assign({
15467
+ type: 'button'
15468
+ }, incrementProps, {
15469
+ disabled: disabled || incrementProps.disabled
15470
+ }), React__default.createElement(Icon, {
15471
+ type: 'feather',
15472
+ icon: 'chevron_right',
15473
+ color: props.invalid ? 'warningRed' : 'grey',
15474
+ strokeWidth: '3px'
15475
+ })));
15476
+ }()), React__default.createElement(Menu, {
15431
15477
  open: open === 'menu',
15432
15478
  close: function close() {
15433
15479
  return setOpen(null);
@@ -15493,6 +15539,502 @@ var DatePicker$1 = Object.assign(Component$1, {
15493
15539
  useDefaultDateIntervalState: useDefaultDateIntervalState
15494
15540
  });
15495
15541
 
15542
+ var _templateObject$r;
15543
+ var Input$3 = styled__default.input(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n line-height: 17px;\n\n ::placeholder {\n color: ", ";\n\n line-height: 17px;\n ", ";\n opacity: 1;\n }\n\n display: block;\n box-sizing: border-box;\n flex: 1;\n min-width: ", ";\n\n padding: calc(", " / 2) 0;\n\n box-shadow: none;\n outline: none;\n border: 1px solid transparent;\n"])), function (_ref) {
15544
+ var theme = _ref.theme;
15545
+ return theme.useTypography('p');
15546
+ }, function (_ref2) {
15547
+ var theme = _ref2.theme,
15548
+ invalid = _ref2.invalid;
15549
+ return invalid ? theme.colors.warningRed : theme.colors.darkBlue;
15550
+ }, function (_ref3) {
15551
+ var theme = _ref3.theme,
15552
+ invalid = _ref3.invalid;
15553
+ return invalid ? theme.colors.warningRed : theme.colors.darkGrey;
15554
+ }, function (_ref4) {
15555
+ var theme = _ref4.theme;
15556
+ return theme.useTypography('p');
15557
+ }, function (_ref5) {
15558
+ var minWidth = _ref5.minWidth;
15559
+ return minWidth || '20%';
15560
+ }, function (_ref6) {
15561
+ var theme = _ref6.theme;
15562
+ return theme.spacings.s1;
15563
+ });
15564
+
15565
+ var Input$4 = React__default.forwardRef(function (props, ref) {
15566
+ var _props$value = props.value,
15567
+ value = _props$value[0],
15568
+ setValue = _props$value[1];
15569
+
15570
+ var _onKeyDown = props.onKeyDown || function () {};
15571
+
15572
+ var onPressEnter = props.onPressEnter;
15573
+
15574
+ var onKeyDown = function onKeyDown(e) {
15575
+ _onKeyDown(e);
15576
+
15577
+ if (e.key === 'Enter') {
15578
+ e.preventDefault();
15579
+ onPressEnter(e);
15580
+ }
15581
+ };
15582
+
15583
+ var mask = getMask(props.mask);
15584
+
15585
+ var _onChange = props.onChange || function () {};
15586
+
15587
+ var onChange = function onChange(e) {
15588
+ e.target.value = mask(e.target.value);
15589
+
15590
+ _onChange(e);
15591
+
15592
+ setValue(e.target.value);
15593
+ };
15594
+
15595
+ var inputProps = filterObject(props, ['value', 'onPressEnter']);
15596
+ return React__default.createElement(Input$3, Object.assign({
15597
+ ref: ref
15598
+ }, inputProps, {
15599
+ onChange: onChange,
15600
+ onKeyDown: onKeyDown,
15601
+ value: value
15602
+ }));
15603
+ });
15604
+ Input$4.displayName = 'Input';
15605
+
15606
+ var _templateObject$s, _templateObject2$m;
15607
+ var Label$6 = styled__default.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
15608
+ var theme = _ref.theme;
15609
+ return theme.spacings.s1;
15610
+ }, function (_ref2) {
15611
+ var required = _ref2.required;
15612
+ if (!required) return;
15613
+ return styled.css(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
15614
+ });
15615
+
15616
+ var Label$7 = function Label(props) {
15617
+ return props.children ? React__default.createElement(Label$6, Object.assign({}, props)) : null;
15618
+ };
15619
+
15620
+ var _templateObject$t;
15621
+ var Tag = styled__default.div(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n\n background-color: ", ";\n color: ", ";\n padding: calc(", " / 2);\n\n border-style: solid;\n border-width: 1px;\n border-color: ", ";\n display: flex;\n align-items: center;\n gap: ", ";\n\n > div:last-child {\n cursor: pointer;\n }\n"])), function (_ref) {
15622
+ var theme = _ref.theme;
15623
+ return theme.useTypography('p');
15624
+ }, function (_ref2) {
15625
+ var theme = _ref2.theme;
15626
+ return theme.colors.white;
15627
+ }, function (_ref3) {
15628
+ var theme = _ref3.theme;
15629
+ return theme.colors.darkBlue;
15630
+ }, function (_ref4) {
15631
+ var theme = _ref4.theme;
15632
+ return theme.spacings.s1;
15633
+ }, function (_ref5) {
15634
+ var theme = _ref5.theme,
15635
+ invalid = _ref5.invalid;
15636
+ return theme.colors[invalid ? 'warningRed' : 'lightGrey'];
15637
+ }, function (_ref6) {
15638
+ var theme = _ref6.theme;
15639
+ return theme.spacings.s1;
15640
+ });
15641
+
15642
+ var Tag$1 = function Tag$1(props) {
15643
+ return React__default.createElement(Tag, Object.assign({}, props), props.children, React__default.createElement("div", {
15644
+ onClick: props.onClose
15645
+ }, React__default.createElement(Icon, {
15646
+ type: 'feather',
15647
+ icon: 'x',
15648
+ width: '10px',
15649
+ color: props.invalid ? 'warningRed' : undefined,
15650
+ strokeWidth: '3px'
15651
+ })));
15652
+ };
15653
+
15654
+ var _templateObject$u, _templateObject2$n, _templateObject3$k;
15655
+ var Label$8 = styled__default.label(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n"])), function (_ref) {
15656
+ var theme = _ref.theme;
15657
+ return theme.useTypography('p');
15658
+ }, function (_ref2) {
15659
+ var theme = _ref2.theme;
15660
+ return theme.colors.greyishBlue;
15661
+ }, function (_ref3) {
15662
+ var width = _ref3.width;
15663
+ return width || '100%';
15664
+ }, function (_ref4) {
15665
+ var disabled = _ref4.disabled;
15666
+ if (!disabled) return;
15667
+ return styled.css(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
15668
+ });
15669
+ var TagContainer = styled__default.div(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n display: flex;\n flex-wrap: wrap;\n gap: calc(", " / 2);\n padding: ", ";\n"])), function (_ref5) {
15670
+ var theme = _ref5.theme,
15671
+ invalid = _ref5.invalid;
15672
+ return theme.colors[invalid ? 'warningRed' : 'lightGrey'];
15673
+ }, function (_ref6) {
15674
+ var theme = _ref6.theme;
15675
+ return theme.spacings.s1;
15676
+ }, function (_ref7) {
15677
+ var theme = _ref7.theme;
15678
+ return theme.spacings.s1;
15679
+ });
15680
+
15681
+ var Tags = React__default.forwardRef(function (props, ref) {
15682
+ var value = props.value,
15683
+ setValue = props.setValue;
15684
+
15685
+ var _ref = props.input && props.input.value ? props.input.value : React.useState(''),
15686
+ inputValue = _ref[0],
15687
+ setInputValue = _ref[1];
15688
+
15689
+ var validate = props.validate || function () {
15690
+ return true;
15691
+ };
15692
+
15693
+ var onBeforeAdd = props.onBeforeAdd || function (v) {
15694
+ return v;
15695
+ };
15696
+
15697
+ var validateUnique = props.unique ? function (v) {
15698
+ return value.some(function (e) {
15699
+ return strCmp(e, v);
15700
+ }) ? '' : v;
15701
+ } : function (v) {
15702
+ return v;
15703
+ };
15704
+
15705
+ var add = function add(v) {
15706
+ if (v === '') return;
15707
+ v = validateUnique(v);
15708
+ if (v === '') return;
15709
+ v = onBeforeAdd(v);
15710
+ if (v === '') return;
15711
+ setValue([].concat(value, [v]));
15712
+ setInputValue('');
15713
+ };
15714
+
15715
+ var remove = function remove(index) {
15716
+ var prev = [].concat(value);
15717
+ prev.splice(index, 1);
15718
+ setValue([].concat(prev));
15719
+ };
15720
+
15721
+ return React__default.createElement(Label$8, {
15722
+ disabled: props.disabled,
15723
+ width: props.width
15724
+ }, React__default.createElement(Label$7, {
15725
+ required: props.required
15726
+ }, props.label), React__default.createElement(TagContainer, {
15727
+ invalid: props.invalid
15728
+ }, value.map(function (v, index) {
15729
+ return React__default.createElement(Tag$1, {
15730
+ key: index,
15731
+ onClose: function onClose() {
15732
+ return remove(index);
15733
+ },
15734
+ invalid: !validate(v)
15735
+ }, v);
15736
+ }), React__default.createElement(Input$4, Object.assign({
15737
+ ref: ref,
15738
+ disabled: props.disabled || props.loading,
15739
+ invalid: props.invalid
15740
+ }, props.input, {
15741
+ value: [inputValue, setInputValue],
15742
+ onPressEnter: function onPressEnter(e) {
15743
+ return add(e.target.value);
15744
+ }
15745
+ }))));
15746
+ });
15747
+ Tags.displayName = 'Tags';
15748
+
15749
+ var _templateObject$v;
15750
+ var RelativeContainer$6 = styled__default.div(_templateObject$v || (_templateObject$v = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
15751
+
15752
+ var isLeapYear$1 = function isLeapYear(year) {
15753
+ if (year % 4 !== 0) return false;else if (year % 100 !== 0) return true;else if (year % 400 !== 0) return false;else return true;
15754
+ };
15755
+
15756
+ var _mask$1 = function mask(v, seconds) {
15757
+ v = v.replace(/\D+/g, '');
15758
+
15759
+ while (v.length > 0 && parseInt(v[0]) > 3) {
15760
+ v = v.substring(1);
15761
+ }
15762
+
15763
+ if (v.length > 1) {
15764
+ if (v[0] === '3') {
15765
+ while (v.length > 1 && parseInt(v[1]) > 1) {
15766
+ v = v[0] + v.substring(2);
15767
+ }
15768
+ }
15769
+ }
15770
+
15771
+ if (v.length > 2) {
15772
+ while (v.length > 2 && parseInt(v[2]) > 1) {
15773
+ v = v.substring(0, 2) + v.substring(3);
15774
+ }
15775
+ }
15776
+
15777
+ if (v.length > 3) {
15778
+ if (v[2] === '1') {
15779
+ while (v.length > 3 && parseInt(v[3]) > 2) {
15780
+ v = v.substring(0, 3) + v.substring(4);
15781
+ }
15782
+ }
15783
+ }
15784
+
15785
+ if (v.length > 8) {
15786
+ while (v.length > 8 && parseInt(v[8]) > 2) {
15787
+ v = v.substring(0, 8) + v.substring(9);
15788
+ }
15789
+ }
15790
+
15791
+ if (v.length > 9) {
15792
+ if (v[8] === '2') {
15793
+ while (v.length > 9 && parseInt(v[9]) > 3) {
15794
+ v = v.substring(0, 9) + v.substring(10);
15795
+ }
15796
+ }
15797
+ }
15798
+
15799
+ if (v.length > 10) {
15800
+ while (v.length > 10 && parseInt(v[10]) > 5) {
15801
+ v = v.substring(0, 10) + v.substring(11);
15802
+ }
15803
+ }
15804
+
15805
+ if (v.length > 12) {
15806
+ while (v.length > 12 && parseInt(v[12]) > 5) {
15807
+ v = v.substring(0, 12) + v.substring(13);
15808
+ }
15809
+ }
15810
+
15811
+ var date = [v.substring(0, 2), v.substring(2, 4), v.substring(4, 8), v.substring(8, 10), v.substring(10, 12), v.substring(12, 14)];
15812
+
15813
+ if (date[1] === '02') {
15814
+ var d = parseInt(date[0]);
15815
+
15816
+ if (date[2].length < 4 || isLeapYear$1(parseInt(date[2]))) {
15817
+ if (d > 29) {
15818
+ date[0] = '29';
15819
+ }
15820
+ } else if (d > 28) {
15821
+ date[0] = '28';
15822
+ }
15823
+ } else if (['04', '06', '09', '11'].includes(date[1]) && date[0] === '31') {
15824
+ date[0] = '30';
15825
+ }
15826
+
15827
+ v = date.join('');
15828
+ v = v.replace(/^((\d{0,2}))((\d{0,2}))((\d{0,4}))((\d{0,2}))((\d{0,2}))((\d{0,2}))$/g, '$1/$3/$5 $7:$9:$11');
15829
+
15830
+ while (v.length > 0 && !v[v.length - 1].match(/^\d$/g)) {
15831
+ v = v.substring(0, v.length - 1);
15832
+ }
15833
+
15834
+ if (!seconds) {
15835
+ v = v.substring(0, 16);
15836
+ }
15837
+
15838
+ return v;
15839
+ };
15840
+
15841
+ var getValueThroughDate = function getValueThroughDate(date, seconds) {
15842
+ var newValue = dateToIsoString(date, true);
15843
+ return !seconds ? newValue.substring(0, newValue.length - 3) : newValue;
15844
+ };
15845
+
15846
+ var steps = {
15847
+ year: {
15848
+ increment: function increment(value) {
15849
+ value.setFullYear(value.getFullYear() + 1);
15850
+ return value;
15851
+ },
15852
+ decrement: function decrement(value) {
15853
+ value.setFullYear(value.getFullYear() - 1);
15854
+ return value;
15855
+ }
15856
+ },
15857
+ month: {
15858
+ increment: function increment(value) {
15859
+ value.setMonth(value.getMonth() + 1);
15860
+ return value;
15861
+ },
15862
+ decrement: function decrement(value) {
15863
+ value.setMonth(value.getMonth() - 1);
15864
+ return value;
15865
+ }
15866
+ },
15867
+ day: {
15868
+ increment: function increment(value) {
15869
+ value.setDate(value.getDate() + 1);
15870
+ return value;
15871
+ },
15872
+ decrement: function decrement(value) {
15873
+ value.setDate(value.getDate() - 1);
15874
+ return value;
15875
+ }
15876
+ },
15877
+ hour: {
15878
+ increment: function increment(value) {
15879
+ value.setHours(value.getHours() + 1);
15880
+ return value;
15881
+ },
15882
+ decrement: function decrement(value) {
15883
+ value.setHours(value.getHours() - 1);
15884
+ return value;
15885
+ }
15886
+ },
15887
+ minute: {
15888
+ increment: function increment(value) {
15889
+ value.setMinutes(value.getMinutes() + 1);
15890
+ return value;
15891
+ },
15892
+ decrement: function decrement(value) {
15893
+ value.setMinutes(value.getMinutes() - 1);
15894
+ return value;
15895
+ }
15896
+ },
15897
+ second: {
15898
+ increment: function increment(value) {
15899
+ value.setSeconds(value.getSeconds() + 1);
15900
+ return value;
15901
+ },
15902
+ decrement: function decrement(value) {
15903
+ value.setSeconds(value.getSeconds() - 1);
15904
+ return value;
15905
+ }
15906
+ }
15907
+ };
15908
+ var DateTime = React__default.forwardRef(function (props, ref) {
15909
+ var picker = props.picker,
15910
+ value = props.value,
15911
+ min = props.min,
15912
+ max = props.max;
15913
+ var step = steps[props.step || 'day'];
15914
+
15915
+ var setValue = props.setValue || function () {};
15916
+
15917
+ var _useState = React.useState(false),
15918
+ open = _useState[0],
15919
+ setOpen = _useState[1];
15920
+
15921
+ var _onKeyDown = props.onKeyDown || function () {};
15922
+
15923
+ var onKeyDown = function onKeyDown(event) {
15924
+ var target = event.target;
15925
+ var todayDate = new Date();
15926
+ var cur = {
15927
+ day: {
15928
+ start: 0,
15929
+ end: 2,
15930
+ value: todayDate.getDate()
15931
+ },
15932
+ month: {
15933
+ start: 2,
15934
+ end: 4,
15935
+ value: todayDate.getMonth() + 1
15936
+ },
15937
+ year: {
15938
+ start: 4,
15939
+ end: 8,
15940
+ value: todayDate.getFullYear()
15941
+ },
15942
+ hours: {
15943
+ start: 8,
15944
+ end: 10,
15945
+ value: todayDate.getHours()
15946
+ },
15947
+ minutes: {
15948
+ start: 10,
15949
+ end: 12,
15950
+ value: todayDate.getMinutes()
15951
+ },
15952
+ seconds: {
15953
+ start: 12,
15954
+ end: 14,
15955
+ value: todayDate.getSeconds()
15956
+ }
15957
+ };
15958
+ var value = target.value.replace(/\D+/g, '');
15959
+ var v = keys(cur).reduce(function (prev, k) {
15960
+ var _extends2;
15961
+
15962
+ var _cur$k = cur[k],
15963
+ start = _cur$k.start,
15964
+ end = _cur$k.end,
15965
+ current = _cur$k.value;
15966
+ var len = end - start;
15967
+ var tmp = value.substring(start, end);
15968
+ return _extends({}, prev, (_extends2 = {}, _extends2[k] = tmp.length === 0 ? current : parseInt(tmp.padEnd(len, '0')), _extends2));
15969
+ }, {});
15970
+ var date = new Date(v.year + "-" + v.month + "-" + v.day + " " + v.hours + ":" + v.minutes + ":" + v.seconds);
15971
+
15972
+ if (event.key === 'ArrowUp') {
15973
+ date = step.increment(date);
15974
+
15975
+ if (!max || date <= max) {
15976
+ setValue(getValueThroughDate(date, props.seconds));
15977
+ }
15978
+ } else if (event.key === 'ArrowDown') {
15979
+ date = step.decrement(date);
15980
+
15981
+ if (!min || date >= min) {
15982
+ setValue(getValueThroughDate(date, props.seconds));
15983
+ }
15984
+ }
15985
+
15986
+ _onKeyDown(event);
15987
+ };
15988
+
15989
+ var placeholder = props.placeholder === undefined ? 'dd/mm/aaaa hh:mm:ss' : props.placeholder;
15990
+ var icon = picker ? {
15991
+ icon: {
15992
+ type: 'feather',
15993
+ icon: 'calendar'
15994
+ },
15995
+ position: 'right',
15996
+ onClick: function onClick() {
15997
+ return setOpen(function (prev) {
15998
+ return !prev;
15999
+ });
16000
+ }
16001
+ } : undefined;
16002
+ var inputProps = filterObject(props, ['picker', 'min', 'max']);
16003
+ return React__default.createElement(RelativeContainer$6, {
16004
+ ref: useOnClickOut(function () {
16005
+ return setOpen(false);
16006
+ })
16007
+ }, React__default.createElement(Input$1, Object.assign({}, inputProps, {
16008
+ type: 'text',
16009
+ placeholder: placeholder,
16010
+ mask: function mask(v) {
16011
+ return _mask$1(v, props.seconds);
16012
+ },
16013
+ onKeyDown: onKeyDown,
16014
+ icon: icon,
16015
+ ref: ref
16016
+ })), React__default.createElement(Calendar, {
16017
+ open: open,
16018
+ initalValue: value ? isoStringToDate(value) : undefined,
16019
+ onSubmit: {
16020
+ onClick: function onClick(date) {
16021
+ if (!date) return;
16022
+ setValue(getValueThroughDate(date, props.seconds));
16023
+ setOpen(false);
16024
+ }
16025
+ },
16026
+ min: min,
16027
+ max: max,
16028
+ references: {
16029
+ bottom: '35px'
16030
+ },
16031
+ time: {
16032
+ seconds: props.seconds
16033
+ }
16034
+ }));
16035
+ });
16036
+ DateTime.displayName = 'DateTime';
16037
+
15496
16038
  var Component$2 = React__default.forwardRef(function (props, ref) {
15497
16039
  switch (props.type) {
15498
16040
  case 'date':
@@ -15575,6 +16117,20 @@ var Component$2 = React__default.forwardRef(function (props, ref) {
15575
16117
  }));
15576
16118
  }
15577
16119
 
16120
+ case 'tags':
16121
+ {
16122
+ return React__default.createElement(Tags, Object.assign({}, props, {
16123
+ ref: ref
16124
+ }));
16125
+ }
16126
+
16127
+ case 'datetime':
16128
+ {
16129
+ return React__default.createElement(DateTime, Object.assign({}, props, {
16130
+ ref: ref
16131
+ }));
16132
+ }
16133
+
15578
16134
  default:
15579
16135
  {
15580
16136
  return React__default.createElement(Input$1, Object.assign({}, props, {
@@ -15584,7 +16140,7 @@ var Component$2 = React__default.forwardRef(function (props, ref) {
15584
16140
  }
15585
16141
  });
15586
16142
  Component$2.displayName = 'Input';
15587
- var Input$3 = Object.assign(Component$2, {
16143
+ var Input$5 = Object.assign(Component$2, {
15588
16144
  useDefaultDateIntervalState: DatePicker$1.useDefaultDateIntervalState,
15589
16145
  getPhoneDetails: Phone.getPhoneDetails
15590
16146
  });
@@ -15621,13 +16177,13 @@ var widths = {
15621
16177
  default: '642.5px'
15622
16178
  };
15623
16179
 
15624
- var _templateObject$r, _templateObject2$m, _templateObject3$k, _templateObject4$h, _templateObject5$g, _templateObject6$e, _templateObject7$c, _templateObject8$8, _templateObject9$8, _templateObject10$6;
15625
- var Background = styled__default.div(_templateObject$r || (_templateObject$r = _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) {
16180
+ var _templateObject$w, _templateObject2$o, _templateObject3$l, _templateObject4$h, _templateObject5$g, _templateObject6$e, _templateObject7$c, _templateObject8$8, _templateObject9$8, _templateObject10$6;
16181
+ var Background = styled__default.div(_templateObject$w || (_templateObject$w = _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) {
15626
16182
  var theme = _ref.theme;
15627
16183
  return theme.getColor('black', 25);
15628
16184
  });
15629
- var Content = styled__default.div(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"])));
15630
- var Header$3 = styled__default.div(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n ", "\n"])), function (_ref2) {
16185
+ var Content = styled__default.div(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"])));
16186
+ var Header$3 = styled__default.div(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n ", "\n"])), function (_ref2) {
15631
16187
  var _ref2$theme = _ref2.theme,
15632
16188
  colors = _ref2$theme.colors,
15633
16189
  spacings = _ref2$theme.spacings,
@@ -15730,8 +16286,8 @@ var Modal = function Modal(props) {
15730
16286
  }))))));
15731
16287
  };
15732
16288
 
15733
- var _templateObject$s;
15734
- var Content$1 = styled__default.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
16289
+ var _templateObject$x;
16290
+ var Content$1 = styled__default.div(_templateObject$x || (_templateObject$x = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
15735
16291
  var theme = _ref.theme;
15736
16292
  return theme.spacings.s5 + " " + theme.spacings.s4;
15737
16293
  });
@@ -15768,8 +16324,8 @@ var ConfirmDelete = function ConfirmDelete(props) {
15768
16324
  }, React__default.createElement(Content$1, null, children || content));
15769
16325
  };
15770
16326
 
15771
- var _templateObject$t;
15772
- var Content$2 = styled__default.div(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
16327
+ var _templateObject$y;
16328
+ var Content$2 = styled__default.div(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
15773
16329
  var theme = _ref.theme;
15774
16330
  return theme.spacings.s5 + " " + theme.spacings.s4;
15775
16331
  });
@@ -15809,8 +16365,8 @@ var ConfirmSuccess = function ConfirmSuccess(props) {
15809
16365
  }, React__default.createElement(Content$2, null, children || content));
15810
16366
  };
15811
16367
 
15812
- var _templateObject$u;
15813
- var Content$3 = styled__default.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
16368
+ var _templateObject$z;
16369
+ var Content$3 = styled__default.div(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
15814
16370
  var theme = _ref.theme;
15815
16371
  return theme.spacings.s5 + " " + theme.spacings.s4;
15816
16372
  });
@@ -15851,11 +16407,11 @@ var Modal$1 = Object.assign(Modal, {
15851
16407
  Audit: Audit
15852
16408
  });
15853
16409
 
15854
- var _templateObject$v, _templateObject2$n, _templateObject3$l, _templateObject4$i, _templateObject5$h, _templateObject6$f, _templateObject7$d, _templateObject8$9, _templateObject9$9, _templateObject10$7;
15855
- var Container$c = styled__default.div(_templateObject$v || (_templateObject$v = _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) {
15856
- return props.size === 'mini' && styled.css(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
16410
+ var _templateObject$A, _templateObject2$p, _templateObject3$m, _templateObject4$i, _templateObject5$h, _templateObject6$f, _templateObject7$d, _templateObject8$9, _templateObject9$9, _templateObject10$7;
16411
+ var Container$c = styled__default.div(_templateObject$A || (_templateObject$A = _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) {
16412
+ return props.size === 'mini' && styled.css(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
15857
16413
  }, function (props) {
15858
- return props.size === 'small' && styled.css(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 131px;\n "])));
16414
+ return props.size === 'small' && styled.css(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 131px;\n "])));
15859
16415
  }, function (props) {
15860
16416
  return props.size === 'medium' && styled.css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
15861
16417
  }, function (props) {
@@ -15881,13 +16437,13 @@ var Card = function Card(_ref) {
15881
16437
  return React__default.createElement(Container$c, Object.assign({}, rest), children);
15882
16438
  };
15883
16439
 
15884
- var _templateObject$w, _templateObject2$o, _templateObject3$m, _templateObject4$j, _templateObject5$i, _templateObject6$g;
15885
- var Container$d = styled__default.div(_templateObject$w || (_templateObject$w = _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) {
16440
+ var _templateObject$B, _templateObject2$q, _templateObject3$n, _templateObject4$j, _templateObject5$i, _templateObject6$g;
16441
+ var Container$d = styled__default.div(_templateObject$B || (_templateObject$B = _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) {
15886
16442
  return props.size === 'large' ? '837px' : '460px';
15887
16443
  }, function (props) {
15888
- return props.color === 'success' && styled.css(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n background-color: #fcfff5;\n opacity: 1;\n border-color: #a8c599;\n h4 {\n color: #1e561f;\n }\n p {\n color: #1e561fcc;\n }\n "])));
16444
+ return props.color === 'success' && styled.css(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n background-color: #fcfff5;\n opacity: 1;\n border-color: #a8c599;\n h4 {\n color: #1e561f;\n }\n p {\n color: #1e561fcc;\n }\n "])));
15889
16445
  }, function (props) {
15890
- return props.color === 'error' && styled.css(_templateObject3$m || (_templateObject3$m = _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 "])));
16446
+ return props.color === 'error' && styled.css(_templateObject3$n || (_templateObject3$n = _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 "])));
15891
16447
  }, function (props) {
15892
16448
  return props.color === 'warning' && styled.css(_templateObject4$j || (_templateObject4$j = _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 "])));
15893
16449
  });
@@ -15904,10 +16460,10 @@ var Toast = function Toast(props) {
15904
16460
  })), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
15905
16461
  };
15906
16462
 
15907
- var _templateObject$x, _templateObject2$p, _templateObject3$n, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$4;
15908
- var Container$e = styled__default.div(_templateObject$x || (_templateObject$x = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
15909
- var Header$4 = styled__default.div(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
15910
- var HeaderImage = styled__default.div(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
16463
+ var _templateObject$C, _templateObject2$r, _templateObject3$o, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$5;
16464
+ var Container$e = styled__default.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
16465
+ var Header$4 = styled__default.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
16466
+ var HeaderImage = styled__default.div(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
15911
16467
  var HeaderContent = styled__default.div(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
15912
16468
  var MainContent = styled__default.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
15913
16469
  var HeaderLine = styled__default.div(_templateObject6$h || (_templateObject6$h = _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) {
@@ -15921,7 +16477,7 @@ var HeaderLine = styled__default.div(_templateObject6$h || (_templateObject6$h =
15921
16477
  }, function (props) {
15922
16478
  return props.size === 'large' && styled.css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
15923
16479
  });
15924
- var MainLine = styled__default(HeaderLine)(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
16480
+ var MainLine = styled__default(HeaderLine)(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
15925
16481
 
15926
16482
  var Template1 = function Template1(props) {
15927
16483
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -15956,23 +16512,23 @@ var Template1 = function Template1(props) {
15956
16512
  })));
15957
16513
  };
15958
16514
 
15959
- var _templateObject$y, _templateObject2$q, _templateObject3$o, _templateObject4$l, _templateObject5$k;
15960
- 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) {
16515
+ var _templateObject$D, _templateObject2$s, _templateObject3$p, _templateObject4$l, _templateObject5$k;
16516
+ var HeaderLine$1 = styled__default.div(_templateObject$D || (_templateObject$D = _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) {
15961
16517
  return props.height;
15962
16518
  }, function (props) {
15963
- return props.size === 'mini' && styled.css(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
16519
+ return props.size === 'mini' && styled.css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
15964
16520
  }, function (props) {
15965
- return props.size === 'small' && styled.css(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
16521
+ return props.size === 'small' && styled.css(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
15966
16522
  }, function (props) {
15967
16523
  return props.size === 'medium' && styled.css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15968
16524
  }, function (props) {
15969
16525
  return props.size === 'large' && styled.css(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
15970
16526
  });
15971
16527
 
15972
- var _templateObject$z, _templateObject2$r, _templateObject3$p, _templateObject4$m, _templateObject5$l, _templateObject6$i, _templateObject7$f, _templateObject8$b;
15973
- var Container$f = styled__default.div(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
15974
- var Template2Container = styled__default(Container$f)(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
15975
- var Header$5 = styled__default.div(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
16528
+ var _templateObject$E, _templateObject2$t, _templateObject3$q, _templateObject4$m, _templateObject5$l, _templateObject6$i, _templateObject7$f, _templateObject8$b;
16529
+ var Container$f = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
16530
+ var Template2Container = styled__default(Container$f)(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
16531
+ var Header$5 = styled__default.div(_templateObject3$q || (_templateObject3$q = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
15976
16532
  var HeaderImage$1 = styled__default.div(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
15977
16533
  var HeaderContent$1 = styled__default.div(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
15978
16534
  var MainContent$1 = styled__default.div(_templateObject6$i || (_templateObject6$i = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
@@ -16000,10 +16556,10 @@ var Template2 = function Template2(props) {
16000
16556
  })));
16001
16557
  };
16002
16558
 
16003
- var _templateObject$A, _templateObject2$s, _templateObject3$q;
16004
- var Container$g = styled__default.div(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
16005
- var Template3Container = styled__default(Container$g)(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose([""])));
16006
- var Template3Line = styled__default(HeaderLine$1)(_templateObject3$q || (_templateObject3$q = _taggedTemplateLiteralLoose(["\n background-color: #dadada;\n height: ", ";\n"])), function (props) {
16559
+ var _templateObject$F, _templateObject2$u, _templateObject3$r;
16560
+ var Container$g = styled__default.div(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
16561
+ var Template3Container = styled__default(Container$g)(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose([""])));
16562
+ var Template3Line = styled__default(HeaderLine$1)(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n background-color: #dadada;\n height: ", ";\n"])), function (props) {
16007
16563
  return props.height;
16008
16564
  });
16009
16565
 
@@ -16032,12 +16588,12 @@ var Template3 = function Template3(props) {
16032
16588
  }));
16033
16589
  };
16034
16590
 
16035
- var _templateObject$B, _templateObject2$t, _templateObject3$r, _templateObject4$n, _templateObject5$m, _templateObject6$j, _templateObject7$g, _templateObject8$c;
16036
- var Container$h = styled__default.div(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
16037
- var HeaderLine$3 = styled__default.div(_templateObject2$t || (_templateObject2$t = _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) {
16591
+ var _templateObject$G, _templateObject2$v, _templateObject3$s, _templateObject4$n, _templateObject5$m, _templateObject6$j, _templateObject7$g, _templateObject8$c;
16592
+ var Container$h = styled__default.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
16593
+ var HeaderLine$3 = styled__default.div(_templateObject2$v || (_templateObject2$v = _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) {
16038
16594
  return props.height;
16039
16595
  }, function (props) {
16040
- return props.size === 'mini' && styled.css(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
16596
+ return props.size === 'mini' && styled.css(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
16041
16597
  }, function (props) {
16042
16598
  return props.size === 'small' && styled.css(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
16043
16599
  }, function (props) {
@@ -16099,10 +16655,10 @@ var Template4 = function Template4(props) {
16099
16655
  }));
16100
16656
  };
16101
16657
 
16102
- var _templateObject$C, _templateObject2$u, _templateObject3$s, _templateObject4$o, _templateObject5$n, _templateObject6$k, _templateObject7$h, _templateObject8$d, _templateObject9$b;
16103
- var Container$i = styled__default.div(_templateObject$C || (_templateObject$C = _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"])));
16104
- var Circle = styled__default.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
16105
- var HeaderLine$4 = styled__default.div(_templateObject3$s || (_templateObject3$s = _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) {
16658
+ var _templateObject$H, _templateObject2$w, _templateObject3$t, _templateObject4$o, _templateObject5$n, _templateObject6$k, _templateObject7$h, _templateObject8$d, _templateObject9$b;
16659
+ var Container$i = styled__default.div(_templateObject$H || (_templateObject$H = _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"])));
16660
+ var Circle = styled__default.div(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
16661
+ var HeaderLine$4 = styled__default.div(_templateObject3$t || (_templateObject3$t = _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) {
16106
16662
  return props.height;
16107
16663
  }, function (props) {
16108
16664
  return props.size === 'mini' && styled.css(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -16147,10 +16703,10 @@ var Template5 = function Template5(props) {
16147
16703
  })));
16148
16704
  };
16149
16705
 
16150
- var _templateObject$D, _templateObject2$v, _templateObject3$t, _templateObject4$p, _templateObject5$o, _templateObject6$l, _templateObject7$i, _templateObject8$e, _templateObject9$c;
16151
- var Container$j = styled__default.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
16152
- var Header$6 = styled__default.div(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n"])));
16153
- var Footer$3 = styled__default.div(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
16706
+ var _templateObject$I, _templateObject2$x, _templateObject3$u, _templateObject4$p, _templateObject5$o, _templateObject6$l, _templateObject7$i, _templateObject8$e, _templateObject9$c;
16707
+ var Container$j = styled__default.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
16708
+ var Header$6 = styled__default.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n"])));
16709
+ var Footer$3 = styled__default.div(_templateObject3$u || (_templateObject3$u = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
16154
16710
  var HeaderLine$5 = styled__default.div(_templateObject4$p || (_templateObject4$p = _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) {
16155
16711
  return props.height;
16156
16712
  }, function (props) {
@@ -16190,10 +16746,10 @@ var Template6 = function Template6(props) {
16190
16746
  })));
16191
16747
  };
16192
16748
 
16193
- var _templateObject$E, _templateObject2$w, _templateObject3$u, _templateObject4$q, _templateObject5$p, _templateObject6$m, _templateObject7$j, _templateObject8$f, _templateObject9$d, _templateObject10$9;
16194
- var Container$k = styled__default.div(_templateObject$E || (_templateObject$E = _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"])));
16195
- var Header$7 = styled__default.div(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
16196
- var HeaderLine$6 = styled__default.div(_templateObject3$u || (_templateObject3$u = _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) {
16749
+ var _templateObject$J, _templateObject2$y, _templateObject3$v, _templateObject4$q, _templateObject5$p, _templateObject6$m, _templateObject7$j, _templateObject8$f, _templateObject9$d, _templateObject10$9;
16750
+ var Container$k = styled__default.div(_templateObject$J || (_templateObject$J = _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"])));
16751
+ var Header$7 = styled__default.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
16752
+ var HeaderLine$6 = styled__default.div(_templateObject3$v || (_templateObject3$v = _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) {
16197
16753
  return props.height;
16198
16754
  }, function (props) {
16199
16755
  return props.size === 'mini' && styled.css(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -16224,10 +16780,10 @@ var Template7 = function Template7(props) {
16224
16780
  })), React__default.createElement(Main, 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)));
16225
16781
  };
16226
16782
 
16227
- var _templateObject$F, _templateObject2$x, _templateObject3$v, _templateObject4$r, _templateObject5$q, _templateObject6$n, _templateObject7$k, _templateObject8$g, _templateObject9$e;
16228
- var Container$l = styled__default.div(_templateObject$F || (_templateObject$F = _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"])));
16229
- var Header$8 = styled__default.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
16230
- var HeaderLine$7 = styled__default.div(_templateObject3$v || (_templateObject3$v = _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) {
16783
+ var _templateObject$K, _templateObject2$z, _templateObject3$w, _templateObject4$r, _templateObject5$q, _templateObject6$n, _templateObject7$k, _templateObject8$g, _templateObject9$e;
16784
+ var Container$l = styled__default.div(_templateObject$K || (_templateObject$K = _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"])));
16785
+ var Header$8 = styled__default.div(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
16786
+ var HeaderLine$7 = styled__default.div(_templateObject3$w || (_templateObject3$w = _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) {
16231
16787
  return props.height;
16232
16788
  }, function (props) {
16233
16789
  return props.size === 'mini' && styled.css(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -16267,10 +16823,10 @@ var Template8 = function Template8(props) {
16267
16823
  })));
16268
16824
  };
16269
16825
 
16270
- var _templateObject$G, _templateObject2$y, _templateObject3$w, _templateObject4$s, _templateObject5$r, _templateObject6$o, _templateObject7$l, _templateObject8$h, _templateObject9$f, _templateObject10$a;
16271
- var Container$m = styled__default.div(_templateObject$G || (_templateObject$G = _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"])));
16272
- var Header$9 = styled__default.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
16273
- var HeaderLine$8 = styled__default.div(_templateObject3$w || (_templateObject3$w = _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) {
16826
+ var _templateObject$L, _templateObject2$A, _templateObject3$x, _templateObject4$s, _templateObject5$r, _templateObject6$o, _templateObject7$l, _templateObject8$h, _templateObject9$f, _templateObject10$a;
16827
+ var Container$m = styled__default.div(_templateObject$L || (_templateObject$L = _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"])));
16828
+ var Header$9 = styled__default.div(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
16829
+ var HeaderLine$8 = styled__default.div(_templateObject3$x || (_templateObject3$x = _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) {
16274
16830
  return props.height;
16275
16831
  }, function (props) {
16276
16832
  return props.size === 'mini' && styled.css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -16306,10 +16862,10 @@ var Template8$1 = function Template8(props) {
16306
16862
  })), React__default.createElement(Main$2, null, React__default.createElement(Circle$2, null)));
16307
16863
  };
16308
16864
 
16309
- var _templateObject$H, _templateObject2$z, _templateObject3$x, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$5;
16310
- var Container$n = styled__default.div(_templateObject$H || (_templateObject$H = _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"])));
16311
- var Header$a = styled__default.div(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
16312
- var HeaderLine$9 = styled__default.div(_templateObject3$x || (_templateObject3$x = _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) {
16865
+ var _templateObject$M, _templateObject2$B, _templateObject3$y, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$6;
16866
+ var Container$n = styled__default.div(_templateObject$M || (_templateObject$M = _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"])));
16867
+ var Header$a = styled__default.div(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
16868
+ var HeaderLine$9 = styled__default.div(_templateObject3$y || (_templateObject3$y = _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) {
16313
16869
  return props.height;
16314
16870
  }, function (props) {
16315
16871
  return props.size === 'mini' && styled.css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -16329,7 +16885,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$i || (_templat
16329
16885
  });
16330
16886
  var GraphLine = styled__default(CustomLine$6)(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
16331
16887
  var Main$3 = styled__default.div(_templateObject10$b || (_templateObject10$b = _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"])));
16332
- var Circle$3 = styled__default.div(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
16888
+ var Circle$3 = styled__default.div(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
16333
16889
 
16334
16890
  var Template10 = function Template10(props) {
16335
16891
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -16450,9 +17006,9 @@ var Placeholder = function Placeholder(props) {
16450
17006
  }
16451
17007
  };
16452
17008
 
16453
- var _templateObject$I, _templateObject2$A, _templateObject3$y, _templateObject4$u, _templateObject5$t;
16454
- var Image = styled__default.img(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
16455
- var Container$o = styled__default.div(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n\n &,\n ", " {\n width: ", ";\n\n height: ", ";\n }\n"])), Image, function (_ref) {
17009
+ var _templateObject$N, _templateObject2$C, _templateObject3$z, _templateObject4$u, _templateObject5$t;
17010
+ var Image = styled__default.img(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
17011
+ var Container$o = styled__default.div(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n\n &,\n ", " {\n width: ", ";\n\n height: ", ";\n }\n"])), Image, function (_ref) {
16456
17012
  var width = _ref.width;
16457
17013
 
16458
17014
  switch (typeof width) {
@@ -16479,7 +17035,7 @@ var Container$o = styled__default.div(_templateObject2$A || (_templateObject2$A
16479
17035
  return 'auto';
16480
17036
  }
16481
17037
  });
16482
- var Dimmer = styled__default.div(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: ", ";\n opacity: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: opacity 0.5s;\n cursor: pointer;\n\n :hover {\n opacity: 1;\n }\n"])), function (_ref3) {
17038
+ var Dimmer = styled__default.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: ", ";\n opacity: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: opacity 0.5s;\n cursor: pointer;\n\n :hover {\n opacity: 1;\n }\n"])), function (_ref3) {
16483
17039
  var theme = _ref3.theme;
16484
17040
  return theme.getColor('greyishBlue', 50);
16485
17041
  });
@@ -16523,8 +17079,52 @@ var Zoom = function Zoom(props) {
16523
17079
  }))));
16524
17080
  };
16525
17081
 
16526
- var _templateObject$J;
16527
- var Container$p = styled__default.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n padding: ", ";\n\n display: flex;\n flex-direction: column;\n gap: ", ";\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n"])), function (_ref) {
17082
+ var _templateObject$O, _templateObject2$D, _templateObject3$A;
17083
+ var Container$p = styled__default.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n align-items: center;\n color: ", ";\n\n ", "\n"])), function (_ref) {
17084
+ var theme = _ref.theme;
17085
+ return theme.spacings.s4;
17086
+ }, function (_ref2) {
17087
+ var theme = _ref2.theme;
17088
+ return theme.colors.darkestGrey;
17089
+ }, function (_ref3) {
17090
+ var onClick = _ref3.onClick;
17091
+
17092
+ if (!onClick) {
17093
+ return styled.css(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n opacity: 0.3;\n pointer-events: none;\n "])));
17094
+ }
17095
+
17096
+ return styled.css(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
17097
+ });
17098
+
17099
+ var Button$6 = function Button(props) {
17100
+ var getContent = props.getContent;
17101
+
17102
+ var _useState = React.useState(false),
17103
+ open = _useState[0],
17104
+ setOpen = _useState[1];
17105
+
17106
+ var close = function close() {
17107
+ return setOpen(false);
17108
+ };
17109
+
17110
+ var onClick = props.disabled ? undefined : function () {
17111
+ return setOpen(function (prev) {
17112
+ return !prev;
17113
+ });
17114
+ };
17115
+ return React__default.createElement("div", {
17116
+ ref: useOnClickOut(close)
17117
+ }, React__default.createElement(Container$p, Object.assign({}, props, {
17118
+ onClick: onClick
17119
+ }), props.children, React__default.createElement(Icon, {
17120
+ type: 'semantic',
17121
+ icon: open ? 'caret up' : 'caret down',
17122
+ width: '12px'
17123
+ })), getContent(open, close));
17124
+ };
17125
+
17126
+ var _templateObject$P;
17127
+ var Container$q = styled__default.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n padding: ", ";\n\n display: flex;\n flex-direction: column;\n gap: ", ";\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n"])), function (_ref) {
16528
17128
  var _ref$theme$spacings = _ref.theme.spacings,
16529
17129
  s1 = _ref$theme$spacings.s1,
16530
17130
  s3 = _ref$theme$spacings.s3;
@@ -16570,7 +17170,7 @@ var Header$b = function Header(props) {
16570
17170
  setSearched('');
16571
17171
  };
16572
17172
 
16573
- return React__default.createElement(Container$p, null, React__default.createElement("div", null, isString(title) ? title : title.element), withSearch && React__default.createElement(Input$3, {
17173
+ return React__default.createElement(Container$q, null, React__default.createElement("div", null, isString(title) ? title : title.element), withSearch && React__default.createElement(Input$5, {
16574
17174
  type: 'search',
16575
17175
  placeholder: 'Pesquisa',
16576
17176
  setValue: setSearch,
@@ -16587,8 +17187,8 @@ var Header$b = function Header(props) {
16587
17187
  }));
16588
17188
  };
16589
17189
 
16590
- var _templateObject$K;
16591
- var EmptyMessage = styled__default.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n padding: 0 20px;\n color: ", ";\n text-align: center;\n margin: auto;\n width: 100%;\n"])), function (_ref) {
17190
+ var _templateObject$Q;
17191
+ var EmptyMessage = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n padding: 0 20px;\n color: ", ";\n text-align: center;\n margin: auto;\n width: 100%;\n"])), function (_ref) {
16592
17192
  var lightGrey = _ref.theme.colors.lightGrey;
16593
17193
  return lightGrey;
16594
17194
  });
@@ -16844,7 +17444,7 @@ var Submenu = function Submenu(props) {
16844
17444
  });
16845
17445
  };
16846
17446
 
16847
- var Filters = function Filters(props) {
17447
+ var FiltersMenu = function FiltersMenu(props) {
16848
17448
  var open = props.open,
16849
17449
  close = props.close;
16850
17450
 
@@ -16900,45 +17500,66 @@ var Filters = function Filters(props) {
16900
17500
  }));
16901
17501
  };
16902
17502
 
16903
- var _templateObject$L, _templateObject2$B, _templateObject3$z, _templateObject4$v;
16904
- var Container$q = styled__default(AbsoluteContainer)(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\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) {
16905
- var s3 = _ref.theme.spacings.s3;
16906
- return s3 + " 0 " + s3 + " " + s3;
17503
+ var Filters = Object.assign(function (props) {
17504
+ var items = props.items,
17505
+ setAppliedFilters = props.setAppliedFilters;
17506
+ var buttonProps = filterObject(props, ['items', 'setAppliedFilters']);
17507
+ return React__default.createElement(Button$6, Object.assign({}, buttonProps, {
17508
+ getContent: function getContent(open, close) {
17509
+ return React__default.createElement(FiltersMenu, Object.assign({}, {
17510
+ open: open,
17511
+ close: close,
17512
+ setAppliedFilters: setAppliedFilters,
17513
+ items: items
17514
+ }));
17515
+ }
17516
+ }), "Filtros");
17517
+ }, {
17518
+ Menu: FiltersMenu
16907
17519
  });
16908
- var Header$c = styled__default.div(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n padding: ", ";\n > div {\n display: flex;\n justify-content: space-between;\n }\n"])), function (_ref2) {
17520
+
17521
+ var _templateObject$R, _templateObject2$E, _templateObject3$B, _templateObject4$v;
17522
+ var Container$r = styled__default(AbsoluteContainer)(_templateObject$R || (_templateObject$R = _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) {
17523
+ var theme = _ref.theme;
17524
+ return theme.colors.white;
17525
+ }, function (_ref2) {
16909
17526
  var s3 = _ref2.theme.spacings.s3;
16910
- return s3;
16911
- }, function (_ref3) {
17527
+ return s3 + " 0 " + s3 + " " + s3;
17528
+ });
17529
+ var Header$c = styled__default.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n padding: ", ";\n > div {\n display: flex;\n justify-content: space-between;\n }\n"])), function (_ref3) {
16912
17530
  var s3 = _ref3.theme.spacings.s3;
17531
+ return s3;
17532
+ }, function (_ref4) {
17533
+ var s3 = _ref4.theme.spacings.s3;
16913
17534
  return "0 " + s3 + " " + s3 + " 0";
16914
17535
  });
16915
- var Title = styled__default.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n ", "\n color: ", ";\n"])), function (_ref4) {
16916
- var useTypography = _ref4.theme.useTypography;
17536
+ var Title = styled__default.div(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n ", "\n color: ", ";\n"])), function (_ref5) {
17537
+ var useTypography = _ref5.theme.useTypography;
16917
17538
  return useTypography('p', {
16918
17539
  fontWeight: 'bold'
16919
17540
  });
16920
- }, function (_ref5) {
16921
- var getColor = _ref5.theme.getColor;
17541
+ }, function (_ref6) {
17542
+ var getColor = _ref6.theme.getColor;
16922
17543
  return getColor('greyishBlue', 50);
16923
17544
  });
16924
- var Item = styled__default.div(_templateObject4$v || (_templateObject4$v = _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 (_ref6) {
16925
- var s1 = _ref6.theme.spacings.s1;
17545
+ var Item = styled__default.div(_templateObject4$v || (_templateObject4$v = _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) {
17546
+ var s1 = _ref7.theme.spacings.s1;
16926
17547
  return s1 + " " + s1 + " " + s1 + " 0";
16927
- }, function (_ref7) {
16928
- var getColor = _ref7.theme.getColor;
16929
- return getColor('greyishBlue', 25);
16930
17548
  }, function (_ref8) {
16931
- var useTypography = _ref8.theme.useTypography;
16932
- return useTypography('p');
17549
+ var getColor = _ref8.theme.getColor;
17550
+ return getColor('greyishBlue', 25);
16933
17551
  }, function (_ref9) {
16934
- var getColor = _ref9.theme.getColor;
16935
- return getColor('greyishBlue', 50);
17552
+ var useTypography = _ref9.theme.useTypography;
17553
+ return useTypography('p');
16936
17554
  }, function (_ref10) {
16937
- var useTypography = _ref10.theme.useTypography;
17555
+ var getColor = _ref10.theme.getColor;
17556
+ return getColor('greyishBlue', 50);
17557
+ }, function (_ref11) {
17558
+ var useTypography = _ref11.theme.useTypography;
16938
17559
  return useTypography('p');
16939
17560
  });
16940
17561
 
16941
- var AppliedFilters = function AppliedFilters(props) {
17562
+ var AppliedFiltersMenu = function AppliedFiltersMenu(props) {
16942
17563
  var open = props.open,
16943
17564
  close = props.close,
16944
17565
  _props$appliedFilters = props.appliedFilters,
@@ -16980,7 +17601,7 @@ var AppliedFilters = function AppliedFilters(props) {
16980
17601
  });
16981
17602
  };
16982
17603
 
16983
- return React__default.createElement(Container$q, {
17604
+ return React__default.createElement(Container$r, {
16984
17605
  open: open,
16985
17606
  width: '275px',
16986
17607
  height: '261px',
@@ -16993,7 +17614,7 @@ var AppliedFilters = function AppliedFilters(props) {
16993
17614
  type: 'button',
16994
17615
  onClick: onClear,
16995
17616
  appearance: 'link'
16996
- }, "Limpar Todos")), React__default.createElement(Input$3, {
17617
+ }, "Limpar Todos")), React__default.createElement(Input$5, {
16997
17618
  type: 'search',
16998
17619
  placeholder: 'Pesquisar',
16999
17620
  setValue: setSearch,
@@ -17036,6 +17657,22 @@ var AppliedFilters = function AppliedFilters(props) {
17036
17657
  }))));
17037
17658
  };
17038
17659
 
17660
+ var AppliedFilters = Object.assign(function (props) {
17661
+ var appliedFilters = props.appliedFilters;
17662
+ var buttonProps = filterObject(props, ['appliedFilters']);
17663
+ return React__default.createElement(Button$6, Object.assign({}, buttonProps, {
17664
+ getContent: function getContent(open, close) {
17665
+ return React__default.createElement(AppliedFiltersMenu, Object.assign({}, {
17666
+ open: open,
17667
+ close: close,
17668
+ appliedFilters: appliedFilters
17669
+ }));
17670
+ }
17671
+ }), "Filtros Aplicados (", appliedFilters[0].length, ")");
17672
+ }, {
17673
+ Menu: AppliedFiltersMenu
17674
+ });
17675
+
17039
17676
  var Provider$2 = React__default.createContext({
17040
17677
  cols: {}
17041
17678
  });
@@ -17043,7 +17680,7 @@ var useContext$2 = function useContext() {
17043
17680
  return React__default.useContext(Provider$2);
17044
17681
  };
17045
17682
 
17046
- var _templateObject$M, _templateObject2$C, _templateObject3$A, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$c, _templateObject11$6, _templateObject12$4, _templateObject13$4, _templateObject14$3, _templateObject15$2;
17683
+ var _templateObject$S, _templateObject2$F, _templateObject3$C, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$c, _templateObject11$7, _templateObject12$4, _templateObject13$4, _templateObject14$3, _templateObject15$2;
17047
17684
  var aligns = {
17048
17685
  self: {
17049
17686
  horizontal: {
@@ -17072,13 +17709,13 @@ var aligns = {
17072
17709
  }
17073
17710
  }
17074
17711
  };
17075
- var Col = styled__default.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n position: relative;\n\n ", "\n\n padding: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", ";\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref) {
17712
+ var Col = styled__default.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n position: relative;\n\n ", "\n\n padding: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", ";\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref) {
17076
17713
  var width = _ref.width;
17077
17714
 
17078
17715
  if (width === undefined) {
17079
- return styled.css(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n width: 100%;\n "])));
17716
+ return styled.css(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n flex-basis: 0;\n flex-grow: 1;\n max-width: 100%;\n width: 100%;\n "])));
17080
17717
  } else if (width === 'auto') {
17081
- return styled.css(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n "])));
17718
+ return styled.css(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n "])));
17082
17719
  }
17083
17720
 
17084
17721
  var w = parseFloat(width) * 100 / 12;
@@ -17134,7 +17771,7 @@ var Col = styled__default.div(_templateObject$M || (_templateObject$M = _taggedT
17134
17771
  var bordered = _ref5.bordered,
17135
17772
  lightestGrey = _ref5.theme.colors.lightestGrey;
17136
17773
  if (!bordered) return;
17137
- return styled.css(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
17774
+ return styled.css(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
17138
17775
  }, function (_ref6) {
17139
17776
  var fontColor = _ref6.fontColor,
17140
17777
  theme = _ref6.theme;
@@ -17177,17 +17814,17 @@ var useContext$3 = function useContext() {
17177
17814
  return React__default.useContext(Provider$3);
17178
17815
  };
17179
17816
 
17180
- var _templateObject$N, _templateObject2$D, _templateObject3$B;
17181
- var Grid = styled__default.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n"])), function (_ref) {
17817
+ var _templateObject$T, _templateObject2$G, _templateObject3$D;
17818
+ var Grid = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n"])), function (_ref) {
17182
17819
  var spacing = _ref.spacing;
17183
17820
  if (spacing === undefined) return;
17184
17821
  var padding = getSpacings(spacing);
17185
- return styled.css(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), padding);
17822
+ return styled.css(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), padding);
17186
17823
  }, function (_ref2) {
17187
17824
  var borderless = _ref2.borderless,
17188
17825
  lightestGrey = _ref2.theme.colors.lightestGrey;
17189
17826
  if (borderless) return;
17190
- return styled.css(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n border: 1px solid ", ";\n "])), lightestGrey);
17827
+ return styled.css(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n border: 1px solid ", ";\n "])), lightestGrey);
17191
17828
  });
17192
17829
 
17193
17830
  var Grid$1 = function Grid$1(props) {
@@ -17202,7 +17839,7 @@ var Grid$1 = function Grid$1(props) {
17202
17839
  }, React__default.createElement(Grid, Object.assign({}, gridProps)));
17203
17840
  };
17204
17841
 
17205
- var _templateObject$O, _templateObject2$E, _templateObject3$C, _templateObject4$x, _templateObject5$v, _templateObject6$r, _templateObject7$o, _templateObject8$k, _templateObject9$i, _templateObject10$d;
17842
+ var _templateObject$U, _templateObject2$H, _templateObject3$E, _templateObject4$x, _templateObject5$v, _templateObject6$r, _templateObject7$o, _templateObject8$k, _templateObject9$i, _templateObject10$d;
17206
17843
  var horizontalAligns = {
17207
17844
  around: 'space-around',
17208
17845
  between: 'space-between',
@@ -17215,15 +17852,15 @@ var verticalAligns = {
17215
17852
  top: 'start',
17216
17853
  bottom: 'end'
17217
17854
  };
17218
- var Row = styled__default.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n color: ", ";\n\n ", "\n\n ", "\n"])), function (_ref) {
17855
+ var Row = styled__default.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n color: ", ";\n\n ", "\n\n ", "\n"])), function (_ref) {
17219
17856
  var spacing = _ref.spacing;
17220
17857
  if (spacing === undefined) return;
17221
17858
  var padding = getSpacings(spacing);
17222
- return styled.css(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), padding);
17859
+ return styled.css(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), padding);
17223
17860
  }, function (_ref2) {
17224
17861
  var spacingAround = _ref2.spacingAround;
17225
17862
  if (spacingAround) return;
17226
- return styled.css(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n :first-child {\n padding-top: 0;\n }\n :last-child {\n padding-bottom: 0;\n }\n "])));
17863
+ return styled.css(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n :first-child {\n padding-top: 0;\n }\n :last-child {\n padding-bottom: 0;\n }\n "])));
17227
17864
  }, function (_ref3) {
17228
17865
  var horizontalAlign = _ref3.horizontalAlign;
17229
17866
  if (horizontalAlign === undefined) return;
@@ -17307,14 +17944,14 @@ var theme$1 = {
17307
17944
  button: theme
17308
17945
  };
17309
17946
 
17310
- var _templateObject$P;
17311
- var FontStyles = styled.createGlobalStyle(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n"])));
17947
+ var _templateObject$V;
17948
+ var FontStyles = styled.createGlobalStyle(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n"])));
17312
17949
 
17313
17950
  var Globals = function Globals() {
17314
17951
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(FontStyles, null));
17315
17952
  };
17316
17953
 
17317
- var _templateObject$Q;
17954
+ var _templateObject$W;
17318
17955
 
17319
17956
  var getColor$1 = function getColor(color, opacity) {
17320
17957
  if (opacity === void 0) {
@@ -17333,7 +17970,7 @@ var useTypography = function useTypography(typography, options) {
17333
17970
  fontFamily = _typographies$typogra.fontFamily,
17334
17971
  fontWeight = _typographies$typogra.fontWeight,
17335
17972
  fontSize = _typographies$typogra.fontSize;
17336
- return styled.css(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n "])), fontFamily, options.fontWeight || fontWeight, fontSize);
17973
+ return styled.css(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n "])), fontFamily, options.fontWeight || fontWeight, fontSize);
17337
17974
  };
17338
17975
 
17339
17976
  var isDarkColor = function isDarkColor(color, ifDark, ifLight) {
@@ -17398,7 +18035,7 @@ exports.MwFilters = Filters;
17398
18035
  exports.MwGrid = Grid$2;
17399
18036
  exports.MwIcon = Icon;
17400
18037
  exports.MwIndicator = Indicator;
17401
- exports.MwInput = Input$3;
18038
+ exports.MwInput = Input$5;
17402
18039
  exports.MwLoader = Loader;
17403
18040
  exports.MwMenu = Menu;
17404
18041
  exports.MwModal = Modal$1;