@mw-kit/mw-ui 1.6.15 → 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 +821 -192
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.modern.js +821 -192
  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
 
@@ -15091,6 +15094,7 @@ var CalendarInterval = function CalendarInterval(props) {
15091
15094
  var validate = function validate(_ref, min, max) {
15092
15095
  var start = _ref[0],
15093
15096
  end = _ref[1];
15097
+ if (start === null || end === null) return true;
15094
15098
  if (min && start < min) return false;
15095
15099
  if (max && end > max) return false;
15096
15100
  return true;
@@ -15208,9 +15212,18 @@ var intervalTypes = {
15208
15212
  },
15209
15213
  custom: {
15210
15214
  label: function label(prev) {
15211
- var start = dateToIsoString(prev[0], false, false);
15212
- var end = dateToIsoString(prev[1], false, false);
15213
- 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(' ');
15214
15227
  },
15215
15228
  initial: function initial(base) {
15216
15229
  if (!base) base = new Date();
@@ -15221,6 +15234,7 @@ var intervalTypes = {
15221
15234
  var identify = function identify(value) {
15222
15235
  var start = value[0],
15223
15236
  end = value[1];
15237
+ if (start === null || end === null) return 'custom';
15224
15238
  var isoStart = dateToIsoString(start);
15225
15239
  var isoEnd = dateToIsoString(end);
15226
15240
 
@@ -15258,52 +15272,56 @@ var identify = function identify(value) {
15258
15272
  };
15259
15273
  var parse = function parse(value) {
15260
15274
  return value.map(function (v) {
15261
- return new Date(v);
15275
+ return v ? new Date(v) : null;
15262
15276
  });
15263
15277
  };
15264
15278
 
15265
- var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5;
15266
- 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) {
15267
- var theme = _ref.theme,
15268
- invalid = _ref.invalid;
15269
- return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
15270
- });
15271
- var LabelContainer$3 = styled__default.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: ", ";\n"])), function (_ref2) {
15272
- 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;
15273
15283
  return theme.useTypography('p');
15274
- }, function (_ref3) {
15275
- var theme = _ref3.theme;
15276
- 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 "])));
15277
15288
  });
15278
- 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) {
15279
15293
  var theme = _ref4.theme,
15280
- iconWidth = _ref4.iconWidth,
15281
- 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;
15282
15300
 
15283
15301
  if (paddingless) {
15284
- 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);
15285
15303
  }
15286
15304
 
15287
- 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);
15288
- }, function (_ref5) {
15289
- var invalid = _ref5.invalid,
15290
- theme = _ref5.theme;
15291
- if (!invalid) return;
15292
- 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);
15293
15306
  }, function (_ref6) {
15294
15307
  var invalid = _ref6.invalid,
15295
15308
  theme = _ref6.theme;
15296
15309
  if (!invalid) return;
15297
15310
  return styled.css(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
15298
15311
  }, function (_ref7) {
15299
- 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;
15300
15318
  if (!disabled) return;
15301
- 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 "])));
15302
15320
  });
15303
- 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) {
15304
- 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;
15305
15323
  if (!onClick) return;
15306
- 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 "])));
15307
15325
  });
15308
15326
 
15309
15327
  var Component$1 = React__default.forwardRef(function (props, ref) {
@@ -15314,7 +15332,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15314
15332
  open = _useState[0],
15315
15333
  setOpen = _useState[1];
15316
15334
 
15317
- var _useState2 = React.useState('day'),
15335
+ var _useState2 = React.useState(props.only || 'day'),
15318
15336
  intervalType = _useState2[0],
15319
15337
  setIntervalType = _useState2[1];
15320
15338
 
@@ -15336,10 +15354,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15336
15354
  throw Error('Min prop must be less than Max');
15337
15355
  }
15338
15356
 
15339
- if (props.value.some(function (v) {
15340
- return v === '';
15341
- })) {
15342
- setValue(intervalTypes.day.initial(props.min));
15357
+ if (props.only) {
15343
15358
  return;
15344
15359
  }
15345
15360
 
@@ -15348,7 +15363,6 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15348
15363
  if (value.some(function (v) {
15349
15364
  return !isDateInstance(v);
15350
15365
  }) || !validate(value, props.min, props.max)) {
15351
- setValue(intervalTypes.day.initial(props.min));
15352
15366
  return;
15353
15367
  }
15354
15368
 
@@ -15358,6 +15372,14 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15358
15372
  var inputProps = filterObject(props, ['min', 'max']);
15359
15373
 
15360
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
+
15361
15383
  var func = config[key];
15362
15384
 
15363
15385
  if (func === undefined) {
@@ -15381,9 +15403,21 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15381
15403
  };
15382
15404
  };
15383
15405
 
15384
- var incrementProps = getArrowProps('increment');
15385
- var decrementProps = getArrowProps('decrement');
15386
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
+
15387
15421
  return React__default.createElement(RelativeContainer$5, {
15388
15422
  ref: useOnClickOut(function () {
15389
15423
  return setOpen(null);
@@ -15402,11 +15436,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15402
15436
  width: '24px'
15403
15437
  },
15404
15438
  position: 'right',
15405
- onClick: function onClick() {
15406
- return setOpen(function (prev) {
15407
- return prev === null ? 'menu' : null;
15408
- });
15409
- }
15439
+ onClick: onClick
15410
15440
  },
15411
15441
  borderless: true,
15412
15442
  htmlDisabled: true
@@ -15415,27 +15445,35 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
15415
15445
  invalid: props.invalid ? 1 : 0,
15416
15446
  disabled: props.disabled ? 1 : 0,
15417
15447
  paddingless: props.paddingless ? 1 : 0
15418
- }, React__default.createElement(Button$4, Object.assign({
15419
- type: 'button'
15420
- }, decrementProps, {
15421
- disabled: disabled || decrementProps.disabled
15422
- }), React__default.createElement(Icon, {
15423
- type: 'feather',
15424
- icon: 'chevron_left',
15425
- color: props.invalid ? 'warningRed' : 'grey',
15426
- strokeWidth: '3px'
15427
- })), React__default.createElement("div", null, value.some(function (v) {
15428
- return !isDateInstance(v);
15429
- }) ? '' : config.label(value)), React__default.createElement(Button$4, Object.assign({
15430
- type: 'button'
15431
- }, incrementProps, {
15432
- disabled: disabled || incrementProps.disabled
15433
- }), React__default.createElement(Icon, {
15434
- type: 'feather',
15435
- icon: 'chevron_right',
15436
- color: props.invalid ? 'warningRed' : 'grey',
15437
- strokeWidth: '3px'
15438
- }))), 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, {
15439
15477
  open: open === 'menu',
15440
15478
  close: function close() {
15441
15479
  return setOpen(null);
@@ -15501,6 +15539,502 @@ var DatePicker$1 = Object.assign(Component$1, {
15501
15539
  useDefaultDateIntervalState: useDefaultDateIntervalState
15502
15540
  });
15503
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
+
15504
16038
  var Component$2 = React__default.forwardRef(function (props, ref) {
15505
16039
  switch (props.type) {
15506
16040
  case 'date':
@@ -15583,6 +16117,20 @@ var Component$2 = React__default.forwardRef(function (props, ref) {
15583
16117
  }));
15584
16118
  }
15585
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
+
15586
16134
  default:
15587
16135
  {
15588
16136
  return React__default.createElement(Input$1, Object.assign({}, props, {
@@ -15592,7 +16140,7 @@ var Component$2 = React__default.forwardRef(function (props, ref) {
15592
16140
  }
15593
16141
  });
15594
16142
  Component$2.displayName = 'Input';
15595
- var Input$3 = Object.assign(Component$2, {
16143
+ var Input$5 = Object.assign(Component$2, {
15596
16144
  useDefaultDateIntervalState: DatePicker$1.useDefaultDateIntervalState,
15597
16145
  getPhoneDetails: Phone.getPhoneDetails
15598
16146
  });
@@ -15629,13 +16177,13 @@ var widths = {
15629
16177
  default: '642.5px'
15630
16178
  };
15631
16179
 
15632
- var _templateObject$r, _templateObject2$m, _templateObject3$k, _templateObject4$h, _templateObject5$g, _templateObject6$e, _templateObject7$c, _templateObject8$8, _templateObject9$8, _templateObject10$6;
15633
- 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) {
15634
16182
  var theme = _ref.theme;
15635
16183
  return theme.getColor('black', 25);
15636
16184
  });
15637
- var Content = styled__default.div(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"])));
15638
- 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) {
15639
16187
  var _ref2$theme = _ref2.theme,
15640
16188
  colors = _ref2$theme.colors,
15641
16189
  spacings = _ref2$theme.spacings,
@@ -15738,8 +16286,8 @@ var Modal = function Modal(props) {
15738
16286
  }))))));
15739
16287
  };
15740
16288
 
15741
- var _templateObject$s;
15742
- 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) {
15743
16291
  var theme = _ref.theme;
15744
16292
  return theme.spacings.s5 + " " + theme.spacings.s4;
15745
16293
  });
@@ -15776,8 +16324,8 @@ var ConfirmDelete = function ConfirmDelete(props) {
15776
16324
  }, React__default.createElement(Content$1, null, children || content));
15777
16325
  };
15778
16326
 
15779
- var _templateObject$t;
15780
- 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) {
15781
16329
  var theme = _ref.theme;
15782
16330
  return theme.spacings.s5 + " " + theme.spacings.s4;
15783
16331
  });
@@ -15817,8 +16365,8 @@ var ConfirmSuccess = function ConfirmSuccess(props) {
15817
16365
  }, React__default.createElement(Content$2, null, children || content));
15818
16366
  };
15819
16367
 
15820
- var _templateObject$u;
15821
- 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) {
15822
16370
  var theme = _ref.theme;
15823
16371
  return theme.spacings.s5 + " " + theme.spacings.s4;
15824
16372
  });
@@ -15859,11 +16407,11 @@ var Modal$1 = Object.assign(Modal, {
15859
16407
  Audit: Audit
15860
16408
  });
15861
16409
 
15862
- var _templateObject$v, _templateObject2$n, _templateObject3$l, _templateObject4$i, _templateObject5$h, _templateObject6$f, _templateObject7$d, _templateObject8$9, _templateObject9$9, _templateObject10$7;
15863
- 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) {
15864
- 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 "])));
15865
16413
  }, function (props) {
15866
- 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 "])));
15867
16415
  }, function (props) {
15868
16416
  return props.size === 'medium' && styled.css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
15869
16417
  }, function (props) {
@@ -15889,13 +16437,13 @@ var Card = function Card(_ref) {
15889
16437
  return React__default.createElement(Container$c, Object.assign({}, rest), children);
15890
16438
  };
15891
16439
 
15892
- var _templateObject$w, _templateObject2$o, _templateObject3$m, _templateObject4$j, _templateObject5$i, _templateObject6$g;
15893
- 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) {
15894
16442
  return props.size === 'large' ? '837px' : '460px';
15895
16443
  }, function (props) {
15896
- 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 "])));
15897
16445
  }, function (props) {
15898
- 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 "])));
15899
16447
  }, function (props) {
15900
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 "])));
15901
16449
  });
@@ -15912,10 +16460,10 @@ var Toast = function Toast(props) {
15912
16460
  })), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
15913
16461
  };
15914
16462
 
15915
- var _templateObject$x, _templateObject2$p, _templateObject3$n, _templateObject4$k, _templateObject5$j, _templateObject6$h, _templateObject7$e, _templateObject8$a, _templateObject9$a, _templateObject10$8, _templateObject11$4;
15916
- var Container$e = styled__default.div(_templateObject$x || (_templateObject$x = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
15917
- var Header$4 = styled__default.div(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
15918
- 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"])));
15919
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"])));
15920
16468
  var MainContent = styled__default.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
15921
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) {
@@ -15929,7 +16477,7 @@ var HeaderLine = styled__default.div(_templateObject6$h || (_templateObject6$h =
15929
16477
  }, function (props) {
15930
16478
  return props.size === 'large' && styled.css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
15931
16479
  });
15932
- 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"])));
15933
16481
 
15934
16482
  var Template1 = function Template1(props) {
15935
16483
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -15964,23 +16512,23 @@ var Template1 = function Template1(props) {
15964
16512
  })));
15965
16513
  };
15966
16514
 
15967
- var _templateObject$y, _templateObject2$q, _templateObject3$o, _templateObject4$l, _templateObject5$k;
15968
- 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) {
15969
16517
  return props.height;
15970
16518
  }, function (props) {
15971
- 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 "])));
15972
16520
  }, function (props) {
15973
- 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 "])));
15974
16522
  }, function (props) {
15975
16523
  return props.size === 'medium' && styled.css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
15976
16524
  }, function (props) {
15977
16525
  return props.size === 'large' && styled.css(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
15978
16526
  });
15979
16527
 
15980
- var _templateObject$z, _templateObject2$r, _templateObject3$p, _templateObject4$m, _templateObject5$l, _templateObject6$i, _templateObject7$f, _templateObject8$b;
15981
- 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"])));
15982
- var Template2Container = styled__default(Container$f)(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
15983
- 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"])));
15984
16532
  var HeaderImage$1 = styled__default.div(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
15985
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"])));
15986
16534
  var MainContent$1 = styled__default.div(_templateObject6$i || (_templateObject6$i = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
@@ -16008,10 +16556,10 @@ var Template2 = function Template2(props) {
16008
16556
  })));
16009
16557
  };
16010
16558
 
16011
- var _templateObject$A, _templateObject2$s, _templateObject3$q;
16012
- 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"])));
16013
- var Template3Container = styled__default(Container$g)(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose([""])));
16014
- 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) {
16015
16563
  return props.height;
16016
16564
  });
16017
16565
 
@@ -16040,12 +16588,12 @@ var Template3 = function Template3(props) {
16040
16588
  }));
16041
16589
  };
16042
16590
 
16043
- var _templateObject$B, _templateObject2$t, _templateObject3$r, _templateObject4$n, _templateObject5$m, _templateObject6$j, _templateObject7$g, _templateObject8$c;
16044
- 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"])));
16045
- 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) {
16046
16594
  return props.height;
16047
16595
  }, function (props) {
16048
- 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 "])));
16049
16597
  }, function (props) {
16050
16598
  return props.size === 'small' && styled.css(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
16051
16599
  }, function (props) {
@@ -16107,10 +16655,10 @@ var Template4 = function Template4(props) {
16107
16655
  }));
16108
16656
  };
16109
16657
 
16110
- var _templateObject$C, _templateObject2$u, _templateObject3$s, _templateObject4$o, _templateObject5$n, _templateObject6$k, _templateObject7$h, _templateObject8$d, _templateObject9$b;
16111
- 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"])));
16112
- 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"])));
16113
- 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) {
16114
16662
  return props.height;
16115
16663
  }, function (props) {
16116
16664
  return props.size === 'mini' && styled.css(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -16155,10 +16703,10 @@ var Template5 = function Template5(props) {
16155
16703
  })));
16156
16704
  };
16157
16705
 
16158
- var _templateObject$D, _templateObject2$v, _templateObject3$t, _templateObject4$p, _templateObject5$o, _templateObject6$l, _templateObject7$i, _templateObject8$e, _templateObject9$c;
16159
- 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"])));
16160
- 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"])));
16161
- 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"])));
16162
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) {
16163
16711
  return props.height;
16164
16712
  }, function (props) {
@@ -16198,10 +16746,10 @@ var Template6 = function Template6(props) {
16198
16746
  })));
16199
16747
  };
16200
16748
 
16201
- var _templateObject$E, _templateObject2$w, _templateObject3$u, _templateObject4$q, _templateObject5$p, _templateObject6$m, _templateObject7$j, _templateObject8$f, _templateObject9$d, _templateObject10$9;
16202
- 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"])));
16203
- 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"])));
16204
- 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) {
16205
16753
  return props.height;
16206
16754
  }, function (props) {
16207
16755
  return props.size === 'mini' && styled.css(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -16232,10 +16780,10 @@ var Template7 = function Template7(props) {
16232
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)));
16233
16781
  };
16234
16782
 
16235
- var _templateObject$F, _templateObject2$x, _templateObject3$v, _templateObject4$r, _templateObject5$q, _templateObject6$n, _templateObject7$k, _templateObject8$g, _templateObject9$e;
16236
- 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"])));
16237
- 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"])));
16238
- 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) {
16239
16787
  return props.height;
16240
16788
  }, function (props) {
16241
16789
  return props.size === 'mini' && styled.css(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -16275,10 +16823,10 @@ var Template8 = function Template8(props) {
16275
16823
  })));
16276
16824
  };
16277
16825
 
16278
- var _templateObject$G, _templateObject2$y, _templateObject3$w, _templateObject4$s, _templateObject5$r, _templateObject6$o, _templateObject7$l, _templateObject8$h, _templateObject9$f, _templateObject10$a;
16279
- 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"])));
16280
- 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"])));
16281
- 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) {
16282
16830
  return props.height;
16283
16831
  }, function (props) {
16284
16832
  return props.size === 'mini' && styled.css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -16314,10 +16862,10 @@ var Template8$1 = function Template8(props) {
16314
16862
  })), React__default.createElement(Main$2, null, React__default.createElement(Circle$2, null)));
16315
16863
  };
16316
16864
 
16317
- var _templateObject$H, _templateObject2$z, _templateObject3$x, _templateObject4$t, _templateObject5$s, _templateObject6$p, _templateObject7$m, _templateObject8$i, _templateObject9$g, _templateObject10$b, _templateObject11$5;
16318
- 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"])));
16319
- 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"])));
16320
- 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) {
16321
16869
  return props.height;
16322
16870
  }, function (props) {
16323
16871
  return props.size === 'mini' && styled.css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -16337,7 +16885,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$i || (_templat
16337
16885
  });
16338
16886
  var GraphLine = styled__default(CustomLine$6)(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
16339
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"])));
16340
- 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"])));
16341
16889
 
16342
16890
  var Template10 = function Template10(props) {
16343
16891
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -16458,9 +17006,9 @@ var Placeholder = function Placeholder(props) {
16458
17006
  }
16459
17007
  };
16460
17008
 
16461
- var _templateObject$I, _templateObject2$A, _templateObject3$y, _templateObject4$u, _templateObject5$t;
16462
- var Image = styled__default.img(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
16463
- 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) {
16464
17012
  var width = _ref.width;
16465
17013
 
16466
17014
  switch (typeof width) {
@@ -16487,7 +17035,7 @@ var Container$o = styled__default.div(_templateObject2$A || (_templateObject2$A
16487
17035
  return 'auto';
16488
17036
  }
16489
17037
  });
16490
- 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) {
16491
17039
  var theme = _ref3.theme;
16492
17040
  return theme.getColor('greyishBlue', 50);
16493
17041
  });
@@ -16531,8 +17079,52 @@ var Zoom = function Zoom(props) {
16531
17079
  }))));
16532
17080
  };
16533
17081
 
16534
- var _templateObject$J;
16535
- 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) {
16536
17128
  var _ref$theme$spacings = _ref.theme.spacings,
16537
17129
  s1 = _ref$theme$spacings.s1,
16538
17130
  s3 = _ref$theme$spacings.s3;
@@ -16578,7 +17170,7 @@ var Header$b = function Header(props) {
16578
17170
  setSearched('');
16579
17171
  };
16580
17172
 
16581
- 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, {
16582
17174
  type: 'search',
16583
17175
  placeholder: 'Pesquisa',
16584
17176
  setValue: setSearch,
@@ -16595,8 +17187,8 @@ var Header$b = function Header(props) {
16595
17187
  }));
16596
17188
  };
16597
17189
 
16598
- var _templateObject$K;
16599
- 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) {
16600
17192
  var lightGrey = _ref.theme.colors.lightGrey;
16601
17193
  return lightGrey;
16602
17194
  });
@@ -16852,7 +17444,7 @@ var Submenu = function Submenu(props) {
16852
17444
  });
16853
17445
  };
16854
17446
 
16855
- var Filters = function Filters(props) {
17447
+ var FiltersMenu = function FiltersMenu(props) {
16856
17448
  var open = props.open,
16857
17449
  close = props.close;
16858
17450
 
@@ -16908,45 +17500,66 @@ var Filters = function Filters(props) {
16908
17500
  }));
16909
17501
  };
16910
17502
 
16911
- var _templateObject$L, _templateObject2$B, _templateObject3$z, _templateObject4$v;
16912
- 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) {
16913
- var s3 = _ref.theme.spacings.s3;
16914
- 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
16915
17519
  });
16916
- 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) {
16917
17526
  var s3 = _ref2.theme.spacings.s3;
16918
- return s3;
16919
- }, 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) {
16920
17530
  var s3 = _ref3.theme.spacings.s3;
17531
+ return s3;
17532
+ }, function (_ref4) {
17533
+ var s3 = _ref4.theme.spacings.s3;
16921
17534
  return "0 " + s3 + " " + s3 + " 0";
16922
17535
  });
16923
- var Title = styled__default.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n ", "\n color: ", ";\n"])), function (_ref4) {
16924
- 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;
16925
17538
  return useTypography('p', {
16926
17539
  fontWeight: 'bold'
16927
17540
  });
16928
- }, function (_ref5) {
16929
- var getColor = _ref5.theme.getColor;
17541
+ }, function (_ref6) {
17542
+ var getColor = _ref6.theme.getColor;
16930
17543
  return getColor('greyishBlue', 50);
16931
17544
  });
16932
- 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) {
16933
- 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;
16934
17547
  return s1 + " " + s1 + " " + s1 + " 0";
16935
- }, function (_ref7) {
16936
- var getColor = _ref7.theme.getColor;
16937
- return getColor('greyishBlue', 25);
16938
17548
  }, function (_ref8) {
16939
- var useTypography = _ref8.theme.useTypography;
16940
- return useTypography('p');
17549
+ var getColor = _ref8.theme.getColor;
17550
+ return getColor('greyishBlue', 25);
16941
17551
  }, function (_ref9) {
16942
- var getColor = _ref9.theme.getColor;
16943
- return getColor('greyishBlue', 50);
17552
+ var useTypography = _ref9.theme.useTypography;
17553
+ return useTypography('p');
16944
17554
  }, function (_ref10) {
16945
- 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;
16946
17559
  return useTypography('p');
16947
17560
  });
16948
17561
 
16949
- var AppliedFilters = function AppliedFilters(props) {
17562
+ var AppliedFiltersMenu = function AppliedFiltersMenu(props) {
16950
17563
  var open = props.open,
16951
17564
  close = props.close,
16952
17565
  _props$appliedFilters = props.appliedFilters,
@@ -16988,7 +17601,7 @@ var AppliedFilters = function AppliedFilters(props) {
16988
17601
  });
16989
17602
  };
16990
17603
 
16991
- return React__default.createElement(Container$q, {
17604
+ return React__default.createElement(Container$r, {
16992
17605
  open: open,
16993
17606
  width: '275px',
16994
17607
  height: '261px',
@@ -17001,7 +17614,7 @@ var AppliedFilters = function AppliedFilters(props) {
17001
17614
  type: 'button',
17002
17615
  onClick: onClear,
17003
17616
  appearance: 'link'
17004
- }, "Limpar Todos")), React__default.createElement(Input$3, {
17617
+ }, "Limpar Todos")), React__default.createElement(Input$5, {
17005
17618
  type: 'search',
17006
17619
  placeholder: 'Pesquisar',
17007
17620
  setValue: setSearch,
@@ -17044,6 +17657,22 @@ var AppliedFilters = function AppliedFilters(props) {
17044
17657
  }))));
17045
17658
  };
17046
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
+
17047
17676
  var Provider$2 = React__default.createContext({
17048
17677
  cols: {}
17049
17678
  });
@@ -17051,7 +17680,7 @@ var useContext$2 = function useContext() {
17051
17680
  return React__default.useContext(Provider$2);
17052
17681
  };
17053
17682
 
17054
- 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;
17055
17684
  var aligns = {
17056
17685
  self: {
17057
17686
  horizontal: {
@@ -17080,13 +17709,13 @@ var aligns = {
17080
17709
  }
17081
17710
  }
17082
17711
  };
17083
- 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) {
17084
17713
  var width = _ref.width;
17085
17714
 
17086
17715
  if (width === undefined) {
17087
- 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 "])));
17088
17717
  } else if (width === 'auto') {
17089
- 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 "])));
17090
17719
  }
17091
17720
 
17092
17721
  var w = parseFloat(width) * 100 / 12;
@@ -17142,7 +17771,7 @@ var Col = styled__default.div(_templateObject$M || (_templateObject$M = _taggedT
17142
17771
  var bordered = _ref5.bordered,
17143
17772
  lightestGrey = _ref5.theme.colors.lightestGrey;
17144
17773
  if (!bordered) return;
17145
- 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);
17146
17775
  }, function (_ref6) {
17147
17776
  var fontColor = _ref6.fontColor,
17148
17777
  theme = _ref6.theme;
@@ -17185,17 +17814,17 @@ var useContext$3 = function useContext() {
17185
17814
  return React__default.useContext(Provider$3);
17186
17815
  };
17187
17816
 
17188
- var _templateObject$N, _templateObject2$D, _templateObject3$B;
17189
- 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) {
17190
17819
  var spacing = _ref.spacing;
17191
17820
  if (spacing === undefined) return;
17192
17821
  var padding = getSpacings(spacing);
17193
- 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);
17194
17823
  }, function (_ref2) {
17195
17824
  var borderless = _ref2.borderless,
17196
17825
  lightestGrey = _ref2.theme.colors.lightestGrey;
17197
17826
  if (borderless) return;
17198
- 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);
17199
17828
  });
17200
17829
 
17201
17830
  var Grid$1 = function Grid$1(props) {
@@ -17210,7 +17839,7 @@ var Grid$1 = function Grid$1(props) {
17210
17839
  }, React__default.createElement(Grid, Object.assign({}, gridProps)));
17211
17840
  };
17212
17841
 
17213
- 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;
17214
17843
  var horizontalAligns = {
17215
17844
  around: 'space-around',
17216
17845
  between: 'space-between',
@@ -17223,15 +17852,15 @@ var verticalAligns = {
17223
17852
  top: 'start',
17224
17853
  bottom: 'end'
17225
17854
  };
17226
- 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) {
17227
17856
  var spacing = _ref.spacing;
17228
17857
  if (spacing === undefined) return;
17229
17858
  var padding = getSpacings(spacing);
17230
- 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);
17231
17860
  }, function (_ref2) {
17232
17861
  var spacingAround = _ref2.spacingAround;
17233
17862
  if (spacingAround) return;
17234
- 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 "])));
17235
17864
  }, function (_ref3) {
17236
17865
  var horizontalAlign = _ref3.horizontalAlign;
17237
17866
  if (horizontalAlign === undefined) return;
@@ -17315,14 +17944,14 @@ var theme$1 = {
17315
17944
  button: theme
17316
17945
  };
17317
17946
 
17318
- var _templateObject$P;
17319
- 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"])));
17320
17949
 
17321
17950
  var Globals = function Globals() {
17322
17951
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(FontStyles, null));
17323
17952
  };
17324
17953
 
17325
- var _templateObject$Q;
17954
+ var _templateObject$W;
17326
17955
 
17327
17956
  var getColor$1 = function getColor(color, opacity) {
17328
17957
  if (opacity === void 0) {
@@ -17341,7 +17970,7 @@ var useTypography = function useTypography(typography, options) {
17341
17970
  fontFamily = _typographies$typogra.fontFamily,
17342
17971
  fontWeight = _typographies$typogra.fontWeight,
17343
17972
  fontSize = _typographies$typogra.fontSize;
17344
- 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);
17345
17974
  };
17346
17975
 
17347
17976
  var isDarkColor = function isDarkColor(color, ifDark, ifLight) {
@@ -17406,7 +18035,7 @@ exports.MwFilters = Filters;
17406
18035
  exports.MwGrid = Grid$2;
17407
18036
  exports.MwIcon = Icon;
17408
18037
  exports.MwIndicator = Indicator;
17409
- exports.MwInput = Input$3;
18038
+ exports.MwInput = Input$5;
17410
18039
  exports.MwLoader = Loader;
17411
18040
  exports.MwMenu = Menu;
17412
18041
  exports.MwModal = Modal$1;