@mw-kit/mw-ui 1.7.25 → 1.7.28

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 (24) hide show
  1. package/dist/components/Calendar/components/Basic/interfaces.d.ts +2 -2
  2. package/dist/components/Filters/Filters/components/Submenu/components/Header/interfaces.d.ts +2 -2
  3. package/dist/components/Filters/Filters/interfaces.d.ts +2 -2
  4. package/dist/components/Filters/interfaces.d.ts +3 -3
  5. package/dist/components/Input/components/Checkbox/interfaces.d.ts +4 -2
  6. package/dist/components/Input/components/DatePicker/interfaces.d.ts +1 -1
  7. package/dist/components/Input/components/Input/interfaces.d.ts +6 -2
  8. package/dist/components/Input/components/Input/styles.d.ts +5 -0
  9. package/dist/components/Input/components/RadioButton/interfaces.d.ts +2 -2
  10. package/dist/components/Input/components/Range/interfaces.d.ts +5 -5
  11. package/dist/components/Input/components/Select/hooks/Select/interfaces.d.ts +3 -2
  12. package/dist/components/Input/components/Select/hooks/SelectMultiple/components/Label/index.d.ts +7 -0
  13. package/dist/components/Input/components/Select/hooks/SelectMultiple/interfaces.d.ts +4 -4
  14. package/dist/components/Input/components/Select/hooks/interfaces.d.ts +17 -26
  15. package/dist/components/Input/components/Switch/interfaces.d.ts +5 -5
  16. package/dist/components/Input/components/Tags/interfaces.d.ts +2 -2
  17. package/dist/components/Menu/interfaces.d.ts +14 -14
  18. package/dist/components/ScrollContainer/interfaces.d.ts +4 -4
  19. package/dist/index.js +340 -316
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.modern.js +340 -316
  22. package/dist/index.modern.js.map +1 -1
  23. package/dist/interfaces.d.ts +2 -1
  24. package/package.json +1 -1
@@ -12110,43 +12110,73 @@ var getMask = function getMask(mask) {
12110
12110
  };
12111
12111
  };
12112
12112
 
12113
- var _templateObject$4, _templateObject2$4, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15;
12114
- var IconContainer = styled.button(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n\n ", "\n"])), function (_ref) {
12113
+ var _templateObject$4;
12114
+ var EllipsisContainer = styled.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
12115
+
12116
+ var EllipsisContainer$1 = function EllipsisContainer$1(props) {
12117
+ var myProps = _extends({}, props);
12118
+
12119
+ var _onMouseOver = myProps.onMouseOver || function () {};
12120
+
12121
+ myProps.onMouseOver = function (event) {
12122
+ _onMouseOver(event);
12123
+
12124
+ var target = event.target;
12125
+
12126
+ while (target && !('ellipsis' in target.dataset)) {
12127
+ target = target.parentElement;
12128
+ }
12129
+
12130
+ if (!target) return;
12131
+
12132
+ if (target.scrollWidth > target.offsetWidth) {
12133
+ target.title = target.innerText;
12134
+ } else target.removeAttribute('title');
12135
+ };
12136
+
12137
+ return React__default.createElement(EllipsisContainer, Object.assign({}, myProps, {
12138
+ "data-ellipsis": ''
12139
+ }));
12140
+ };
12141
+
12142
+ var _templateObject$5, _templateObject2$4, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15, _templateObject16, _templateObject17, _templateObject18;
12143
+ var IconContainer = styled.button(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n\n ", "\n"])), function (_ref) {
12115
12144
  var onClick = _ref.onClick,
12116
12145
  disabled = _ref.disabled;
12117
12146
  if (!onClick || disabled) return;
12118
12147
  return css(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12119
12148
  });
12120
- var Input = styled.input(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n line-height: 17px;\n\n ::placeholder {\n color: ", ";\n\n line-height: 17px;\n\n ", "\n }\n\n display: block;\n width: ", ";\n box-sizing: border-box;\n\n ", ";\n\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n\n ", ";\n\n box-shadow: none;\n outline: none;\n\n ", "\n\n ", "\n"])), function (_ref2) {
12149
+ var ChildrenContainer = styled(EllipsisContainer$1)(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n gap: ", ";\n"])), function (_ref2) {
12121
12150
  var theme = _ref2.theme;
12151
+ return theme.spacings.s1;
12152
+ });
12153
+ var Input = styled.input(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n line-height: 17px;\n\n ::placeholder {\n color: ", ";\n\n line-height: 17px;\n\n ", "\n }\n\n display: block;\n width: 100%;\n box-sizing: border-box;\n\n ", ";\n\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n\n ", ";\n\n box-shadow: none;\n outline: none;\n\n ", "\n\n ", "\n"])), function (_ref3) {
12154
+ var theme = _ref3.theme;
12122
12155
  return theme.useTypography('p');
12123
- }, function (_ref3) {
12124
- var theme = _ref3.theme,
12125
- invalid = _ref3.invalid;
12126
- return invalid ? theme.colors.warningRed : theme.colors.darkBlue;
12127
12156
  }, function (_ref4) {
12128
12157
  var theme = _ref4.theme,
12129
12158
  invalid = _ref4.invalid;
12130
- return invalid ? theme.colors.warningRed : theme.colors.darkGrey;
12159
+ return invalid ? theme.colors.warningRed : theme.colors.darkBlue;
12131
12160
  }, function (_ref5) {
12132
- var placeholder = _ref5.placeholder;
12161
+ var theme = _ref5.theme,
12162
+ invalid = _ref5.invalid;
12163
+ return invalid ? theme.colors.warningRed : theme.colors.darkGrey;
12164
+ }, function (_ref6) {
12165
+ var placeholder = _ref6.placeholder;
12133
12166
 
12134
12167
  if (placeholder !== '••••••••') {
12135
- return css(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n ", ";\n opacity: 1;\n "])), function (_ref6) {
12136
- var theme = _ref6.theme;
12168
+ return css(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteralLoose(["\n ", ";\n opacity: 1;\n "])), function (_ref7) {
12169
+ var theme = _ref7.theme;
12137
12170
  return theme.useTypography('p');
12138
12171
  });
12139
12172
  }
12140
12173
 
12141
- return css(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n font-size: 14px;\n letter-spacing: 0px;\n "])));
12142
- }, function (_ref7) {
12143
- var width = _ref7.width;
12144
- return width || '100%';
12174
+ return css(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n font-size: 14px;\n letter-spacing: 0px;\n "])));
12145
12175
  }, function (_ref8) {
12146
12176
  var theme = _ref8.theme,
12147
12177
  paddingless = _ref8.paddingless;
12148
12178
  if (paddingless) return;
12149
- return css(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteralLoose(["\n padding: ", " ", ";\n "])), theme.spacings.s2, theme.spacings.s3);
12179
+ return css(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteralLoose(["\n padding: ", " ", ";\n ~ ", " {\n padding: ", " ", ";\n }\n "])), theme.spacings.s2, theme.spacings.s3, ChildrenContainer, theme.spacings.s2, theme.spacings.s3);
12150
12180
  }, function (_ref9) {
12151
12181
  var theme = _ref9.theme,
12152
12182
  invalid = _ref9.invalid,
@@ -12157,73 +12187,76 @@ var Input = styled.input(_templateObject3$4 || (_templateObject3$4 = _taggedTemp
12157
12187
  var theme = _ref10.theme,
12158
12188
  invalid = _ref10.invalid;
12159
12189
  var color = invalid ? theme.getColor('warningRed', 5) : theme.colors.white;
12160
- return css(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n /** google chrome blue background */\n -webkit-box-shadow: 0 0 0px 1000px ", " inset !important;\n "])), color, color);
12190
+ return css(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n /** google chrome blue background */\n -webkit-box-shadow: 0 0 0px 1000px ", " inset !important;\n "])), color, color);
12161
12191
  }, function (_ref11) {
12162
12192
  var arrows = _ref11.arrows;
12163
12193
  if (arrows) return;
12164
- return css(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n /* Chrome, Safari, Edge, Opera */\n :-webkit-outer-spin-button,\n :-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n -moz-appearance: textfield;\n "])));
12194
+ return css(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n /* Chrome, Safari, Edge, Opera */\n :-webkit-outer-spin-button,\n :-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n -moz-appearance: textfield;\n "])));
12165
12195
  }, function (_ref12) {
12166
12196
  var readOnly = _ref12.readOnly,
12167
12197
  onClick = _ref12.onClick,
12168
12198
  disabled = _ref12.disabled;
12169
- if (!readOnly) return;
12170
- return css(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n cursor: ", ";\n "])), !onClick || disabled ? 'unset' : 'pointer');
12199
+ if (readOnly || !onClick || disabled) return;
12200
+ return css(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12171
12201
  });
12172
- var Label = styled.label(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n\n > ", " {\n bottom: ", ";\n }\n\n ", "\n"])), function (_ref13) {
12173
- var theme = _ref13.theme;
12174
- return theme.useTypography('p');
12175
- }, function (_ref14) {
12202
+ var InputContainer = styled.div(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: ", ";\n"])), function (_ref13) {
12203
+ var width = _ref13.width;
12204
+ return width || '100%';
12205
+ });
12206
+ var Label = styled.label(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n\n ", "\n\n > ", " > ", " {\n bottom: ", ";\n }\n\n ", "\n\n ", "\n"])), function (_ref14) {
12176
12207
  var theme = _ref14.theme;
12177
- return theme.colors.greyishBlue;
12208
+ return theme.useTypography('p');
12178
12209
  }, function (_ref15) {
12179
- var width = _ref15.width;
12180
- return width || '100%';
12210
+ var theme = _ref15.theme;
12211
+ return theme.colors.greyishBlue;
12181
12212
  }, function (_ref16) {
12182
- var disabled = _ref16.disabled;
12213
+ var width = _ref16.width;
12214
+ return width || '100%';
12215
+ }, function (_ref17) {
12216
+ var disabled = _ref17.disabled;
12183
12217
  if (!disabled) return;
12184
- return css(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12185
- }, IconContainer, function (_ref17) {
12186
- var theme = _ref17.theme,
12187
- paddingless = _ref17.paddingless;
12188
- return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
12189
- }, function (_ref18) {
12218
+ return css(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12219
+ }, InputContainer, IconContainer, function (_ref18) {
12190
12220
  var theme = _ref18.theme,
12191
- icon = _ref18.icon,
12192
12221
  paddingless = _ref18.paddingless;
12222
+ return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
12223
+ }, function (_ref19) {
12224
+ var readOnly = _ref19.readOnly,
12225
+ disabled = _ref19.disabled,
12226
+ loading = _ref19.loading;
12227
+ if (loading || readOnly || disabled) return;
12228
+ return css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12229
+ }, function (_ref20) {
12230
+ var theme = _ref20.theme,
12231
+ icon = _ref20.icon,
12232
+ paddingless = _ref20.paddingless;
12193
12233
  if (!icon) return;
12194
12234
  var width = icon.width,
12195
12235
  position = icon.position;
12196
12236
  var padding = paddingless ? '0px' : theme.spacings.s3;
12197
12237
 
12198
12238
  if (position === 'right') {
12199
- return css(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n > ", " {\n width: ", ";\n right: calc(", " / 2);\n }\n\n > ", " {\n padding-right: calc(", " + ", ");\n }\n "])), IconContainer, width, padding, Input, padding, width);
12239
+ return css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n > ", " > ", " {\n width: ", ";\n right: calc(", " / 2);\n }\n\n > ", " > ", " {\n padding-right: calc(", " + ", ");\n ~ ", " {\n padding-right: calc(", " + ", ");\n }\n }\n "])), InputContainer, IconContainer, width, padding, InputContainer, Input, padding, width, ChildrenContainer, padding, width);
12200
12240
  }
12201
12241
 
12202
- return css(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n > ", " {\n width: ", ";\n left: calc(", " / 2);\n }\n\n > ", " {\n padding-left: calc(", " + ", ");\n }\n "])), IconContainer, width, padding, Input, padding, width);
12242
+ return css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n > ", " > ", " {\n width: ", ";\n left: calc(", " / 2);\n }\n\n > ", " > ", " {\n padding-left: calc(", " + ", ");\n ~ ", " {\n padding-left: calc(", " + ", ");\n }\n }\n "])), InputContainer, IconContainer, width, padding, InputContainer, Input, padding, width, ChildrenContainer, padding, width);
12203
12243
  });
12204
- var LabelText = styled.div(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref19) {
12205
- var theme = _ref19.theme;
12244
+ var LabelText = styled.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref21) {
12245
+ var theme = _ref21.theme;
12206
12246
  return theme.spacings.s1;
12207
- }, function (_ref20) {
12208
- var required = _ref20.required;
12247
+ }, function (_ref22) {
12248
+ var required = _ref22.required;
12209
12249
  if (!required) return;
12210
- return css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12250
+ return css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12211
12251
  });
12212
12252
 
12213
12253
  var Input$1 = React__default.forwardRef(function (props, ref) {
12214
12254
  var _props = _extends({}, props),
12215
12255
  label = _props.label,
12216
- required = _props.required,
12217
- invalid = _props.invalid,
12218
- disabled = _props.disabled,
12219
12256
  loading = _props.loading,
12220
12257
  clearable = _props.clearable,
12221
12258
  onPressEnter = _props.onPressEnter,
12222
- htmlDisabled = _props.htmlDisabled,
12223
- width = _props.width,
12224
- arrows = _props.arrows,
12225
- borderless = _props.borderless,
12226
- paddingless = _props.paddingless;
12259
+ width = _props.width;
12227
12260
 
12228
12261
  var mask = getMask(props.mask);
12229
12262
  useEffect(function () {
@@ -12231,12 +12264,14 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12231
12264
  var masked = mask(props.value);
12232
12265
  if (masked !== props.value) setValue(masked);
12233
12266
  }, [props.value]);
12234
- var intInvalid = invalid ? 1 : 0;
12235
- var intRequired = required ? 1 : 0;
12236
- var intDisabled = disabled ? 1 : 0;
12237
- var intArrows = arrows ? 1 : 0;
12238
- var intBorderless = borderless ? 1 : 0;
12239
- var intPaddingless = paddingless ? 1 : 0;
12267
+ var intInvalid = props.invalid ? 1 : 0;
12268
+ var intLoading = props.loading ? 1 : 0;
12269
+ var intRequired = props.required ? 1 : 0;
12270
+ var intDisabled = props.disabled ? 1 : 0;
12271
+ var intReadOnly = props.readOnly ? 1 : 0;
12272
+ var intArrows = props.arrows ? 1 : 0;
12273
+ var intBorderless = props.borderless ? 1 : 0;
12274
+ var intPaddingless = props.paddingless ? 1 : 0;
12240
12275
  var position;
12241
12276
  var iconWidth;
12242
12277
  var iconSubmit;
@@ -12252,13 +12287,12 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12252
12287
  iconOnClick = props.icon.onClick;
12253
12288
  }
12254
12289
 
12255
- var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless'], {
12290
+ var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'htmlReadOnly', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless', 'children'], {
12256
12291
  invalid: intInvalid,
12257
12292
  type: 'text',
12258
12293
  arrows: intArrows,
12259
12294
  borderless: intBorderless,
12260
- paddingless: intPaddingless,
12261
- width: props.inputWidth
12295
+ paddingless: intPaddingless
12262
12296
  });
12263
12297
 
12264
12298
  var onChange = inputProps.onChange || function () {};
@@ -12347,27 +12381,34 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12347
12381
  position: position,
12348
12382
  width: iconWidth || '24px'
12349
12383
  } : undefined;
12350
- if (htmlDisabled) inputProps.disabled = true;
12384
+ if (props.htmlDisabled) inputProps.disabled = true;
12385
+ if (props.htmlReadOnly) inputProps.readOnly = true;
12351
12386
  return React__default.createElement(Label, {
12387
+ readOnly: intReadOnly,
12352
12388
  disabled: intDisabled,
12389
+ loading: intLoading,
12353
12390
  invalid: intInvalid,
12354
12391
  paddingless: intPaddingless,
12355
12392
  icon: iconProps,
12356
12393
  width: width
12357
12394
  }, label && React__default.createElement(LabelText, {
12358
12395
  required: intRequired
12359
- }, label), React__default.createElement(Input, Object.assign({}, inputProps, {
12396
+ }, label), React__default.createElement(InputContainer, {
12397
+ width: props.inputWidth
12398
+ }, React__default.createElement(Input, Object.assign({}, inputProps, {
12360
12399
  ref: ref
12361
- })), icon && React__default.createElement(IconContainer, {
12400
+ })), props.children && React__default.createElement(ChildrenContainer, {
12401
+ children: props.children
12402
+ }), icon && React__default.createElement(IconContainer, {
12362
12403
  type: iconSubmit ? 'submit' : 'button',
12363
12404
  onClick: props.disabled ? undefined : iconOnClick
12364
- }, React__default.createElement(Icon, Object.assign({}, icon))));
12405
+ }, React__default.createElement(Icon, Object.assign({}, icon)))));
12365
12406
  });
12366
12407
  Input$1.displayName = 'Input';
12367
12408
 
12368
- var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2;
12409
+ var _templateObject$6, _templateObject2$5, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2;
12369
12410
  var size = '17px';
12370
- var Checkmark = styled.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n position: relative;\n height: ", ";\n width: ", ";\n background-color: ", ";\n\n border-style: solid;\n border-color: ", ";\n border-width: 1px;\n border-radius: 4px;\n\n transition-property: border-color;\n transition-duration: 0.25s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n\n :after {\n content: '';\n position: absolute;\n\n left: 50%;\n top: 50%;\n height: 0;\n width: 0;\n\n border-style: solid;\n border-color: ", ";\n border-width: 0;\n transform: rotate(45deg);\n\n transition-property: width height border-width top left;\n transition-duration: 0.25s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n }\n\n /** if there is a label, it will be placed after this element */\n + * {\n flex: 1;\n }\n"])), size, size, function (_ref) {
12411
+ var Checkmark = styled.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n position: relative;\n height: ", ";\n width: ", ";\n background-color: ", ";\n\n border-style: solid;\n border-color: ", ";\n border-width: 1px;\n border-radius: 4px;\n\n transition-property: border-color;\n transition-duration: 0.25s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n\n :after {\n content: '';\n position: absolute;\n\n left: 50%;\n top: 50%;\n height: 0;\n width: 0;\n\n border-style: solid;\n border-color: ", ";\n border-width: 0;\n transform: rotate(45deg);\n\n transition-property: width height border-width top left;\n transition-duration: 0.25s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n }\n\n /** if there is a label, it will be placed after this element */\n + * {\n flex: 1;\n }\n"])), size, size, function (_ref) {
12371
12412
  var theme = _ref.theme;
12372
12413
  return theme.colors.white;
12373
12414
  }, function (_ref2) {
@@ -12377,7 +12418,7 @@ var Checkmark = styled.div(_templateObject$5 || (_templateObject$5 = _taggedTemp
12377
12418
  var theme = _ref3.theme;
12378
12419
  return theme.colors.blue;
12379
12420
  });
12380
- var Label$1 = styled.label(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n\n ", "\n\n ", "\n\n ", "\n\n display: flex;\n align-items: center;\n\n user-select: none;\n min-height: ", ";\n min-width: ", ";\n gap: ", ";\n\n > input {\n position: absolute;\n opacity: 0;\n height: 1px;\n width: 1px;\n }\n\n :hover ", " {\n background-color: ", ";\n }\n\n > input:checked ~ ", " {\n border-color: ", ";\n\n :after {\n width: 5px;\n height: 9.5px;\n border-width: 0 2px 2px 0;\n left: 5px;\n top: 1px;\n }\n }\n\n ", ";\n"])), function (_ref4) {
12421
+ var Label$1 = styled.label(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n\n ", "\n\n ", "\n\n ", "\n\n display: flex;\n align-items: center;\n\n user-select: none;\n min-height: ", ";\n min-width: ", ";\n gap: ", ";\n\n > input {\n position: absolute;\n opacity: 0;\n height: 1px;\n width: 1px;\n }\n\n :hover ", " {\n background-color: ", ";\n }\n\n > input:checked ~ ", " {\n border-color: ", ";\n\n :after {\n width: 5px;\n height: 9.5px;\n border-width: 0 2px 2px 0;\n left: 5px;\n top: 1px;\n }\n }\n\n ", ";\n\n ", "\n"])), function (_ref4) {
12381
12422
  var theme = _ref4.theme;
12382
12423
  return theme.useTypography('p');
12383
12424
  }, function (_ref5) {
@@ -12452,14 +12493,17 @@ var Label$1 = styled.label(_templateObject2$5 || (_templateObject2$5 = _taggedTe
12452
12493
  invalid = _ref11.invalid;
12453
12494
  if (!invalid) return;
12454
12495
  return css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n ", ",\n > input:checked ~ ", ", \n > input:checked ~ ", ":after {\n border-color: ", ";\n }\n "])), Checkmark, Checkmark, Checkmark, theme.colors.warningRed);
12496
+ }, function (_ref12) {
12497
+ var width = _ref12.width;
12498
+ return width && css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
12455
12499
  });
12456
- var LabelContent = styled.div(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n ", "\n line-height: 14px;\n flex: 1;\n overflow: hidden;\n\n ", "\n"])), function (_ref12) {
12457
- var theme = _ref12.theme;
12500
+ var LabelContent = styled.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n ", "\n line-height: 14px;\n flex: 1;\n overflow: hidden;\n\n ", "\n"])), function (_ref13) {
12501
+ var theme = _ref13.theme;
12458
12502
  return theme.useTypography('p');
12459
- }, function (_ref13) {
12460
- var required = _ref13.required;
12503
+ }, function (_ref14) {
12504
+ var required = _ref14.required;
12461
12505
  if (!required) return;
12462
- return css(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12506
+ return css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12463
12507
  });
12464
12508
 
12465
12509
  var Checkbox = React__default.forwardRef(function (props, ref) {
@@ -12479,7 +12523,8 @@ var Checkbox = React__default.forwardRef(function (props, ref) {
12479
12523
  required: required ? 1 : 0,
12480
12524
  invalid: invalid ? 1 : 0,
12481
12525
  bordered: bordered ? 1 : 0,
12482
- padding: padding
12526
+ padding: padding,
12527
+ width: props.width
12483
12528
  }, React__default.createElement("input", Object.assign({}, htmlProps, {
12484
12529
  type: 'checkbox',
12485
12530
  ref: ref
@@ -12525,35 +12570,6 @@ var inputTimeWidth = {
12525
12570
  withoutSeconds: '66px'
12526
12571
  };
12527
12572
 
12528
- var _templateObject$6;
12529
- var EllipsisContainer = styled.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
12530
-
12531
- var EllipsisContainer$1 = function EllipsisContainer$1(props) {
12532
- var myProps = _extends({}, props);
12533
-
12534
- var _onMouseOver = myProps.onMouseOver || function () {};
12535
-
12536
- myProps.onMouseOver = function (event) {
12537
- _onMouseOver(event);
12538
-
12539
- var target = event.target;
12540
-
12541
- while (target && !('ellipsis' in target.dataset)) {
12542
- target = target.parentElement;
12543
- }
12544
-
12545
- if (!target) return;
12546
-
12547
- if (target.scrollWidth > target.offsetWidth) {
12548
- target.title = target.innerText;
12549
- } else target.removeAttribute('title');
12550
- };
12551
-
12552
- return React__default.createElement(EllipsisContainer, Object.assign({}, myProps, {
12553
- "data-ellipsis": ''
12554
- }));
12555
- };
12556
-
12557
12573
  var _templateObject$7, _templateObject2$6, _templateObject3$6, _templateObject4$5;
12558
12574
  var Container$1 = styled.div(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n ", ";\n\n padding-right: calc(", " / 2);\n display: flex;\n width: 100%;\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: hidden;\n"])), function (_ref) {
12559
12575
  var theme = _ref.theme;
@@ -12627,8 +12643,8 @@ var ScrollContainer = function ScrollContainer(props) {
12627
12643
  })), after);
12628
12644
  };
12629
12645
 
12630
- var _templateObject$8, _templateObject2$7, _templateObject3$7, _templateObject4$6, _templateObject5$5, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject10$2;
12631
- var Option = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n\n > :nth-child(1) {\n flex: 1;\n }\n\n ", ";\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
12646
+ var _templateObject$8, _templateObject2$7, _templateObject3$7, _templateObject4$6, _templateObject5$5, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject10$3;
12647
+ var Option = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n\n > :nth-child(1) {\n display: flex;\n align-items: center;\n gap: ", ";\n flex: 1;\n }\n\n ", ";\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
12632
12648
  var theme = _ref.theme;
12633
12649
  return theme.useTypography('p');
12634
12650
  }, function (_ref2) {
@@ -12638,16 +12654,19 @@ var Option = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTemplat
12638
12654
  var theme = _ref3.theme;
12639
12655
  return theme.colors.darkBlue;
12640
12656
  }, function (_ref4) {
12641
- var disabled = _ref4.disabled;
12657
+ var theme = _ref4.theme;
12658
+ return theme.spacings.s1;
12659
+ }, function (_ref5) {
12660
+ var disabled = _ref5.disabled;
12642
12661
 
12643
12662
  if (!disabled) {
12644
12663
  return css(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12645
12664
  }
12646
12665
 
12647
12666
  return css(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n opacity: 0.3;\n "])));
12648
- }, function (_ref5) {
12649
- var border = _ref5.border,
12650
- theme = _ref5.theme;
12667
+ }, function (_ref6) {
12668
+ var border = _ref6.border,
12669
+ theme = _ref6.theme;
12651
12670
  if (!border) return;
12652
12671
  var config = getBorder(border);
12653
12672
  return keys(config).filter(function (k) {
@@ -12659,12 +12678,12 @@ var Option = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTemplat
12659
12678
  var color = isKeyOf(theme.colors, cfg.color) ? theme.colors[cfg.color] : cfg.color;
12660
12679
  return css(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n border-", "-width: ", ";\n border-", "-style: ", ";\n border-", "-color: ", ";\n "])), pos, width, pos, style, pos, color);
12661
12680
  });
12662
- }, function (_ref6) {
12663
- var theme = _ref6.theme;
12681
+ }, function (_ref7) {
12682
+ var theme = _ref7.theme;
12664
12683
  return theme.colors.iceWhite;
12665
12684
  });
12666
- var Container$2 = styled(AbsoluteContainer)(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n > div {\n display: flex;\n width: 100%;\n\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n\n ", "\n }\n\n ", "\n\n ", "\n }\n"])), function (_ref7) {
12667
- var theme = _ref7.theme;
12685
+ var Container$2 = styled(AbsoluteContainer)(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n > div {\n display: flex;\n width: 100%;\n\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n\n ", "\n }\n\n ", "\n\n ", "\n }\n"])), function (_ref8) {
12686
+ var theme = _ref8.theme;
12668
12687
  return theme.colors.white;
12669
12688
  }, function (props) {
12670
12689
  if (!props.containerSpacing) return;
@@ -12673,11 +12692,11 @@ var Container$2 = styled(AbsoluteContainer)(_templateObject5$5 || (_templateObje
12673
12692
  tmp[1] = "calc(" + props.theme.spacings.s1 + " / 2)";
12674
12693
  spacing = tmp.join(' ');
12675
12694
  return css(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), spacing);
12676
- }, function (_ref8) {
12677
- var bordered = _ref8.bordered;
12695
+ }, function (_ref9) {
12696
+ var bordered = _ref9.bordered;
12678
12697
  if (!bordered) return;
12679
- return css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref9) {
12680
- var theme = _ref9.theme;
12698
+ return css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref10) {
12699
+ var theme = _ref10.theme;
12681
12700
  return theme.getColor('greyishBlue', 10);
12682
12701
  });
12683
12702
  }, function (props) {
@@ -12692,11 +12711,11 @@ var Container$2 = styled(AbsoluteContainer)(_templateObject5$5 || (_templateObje
12692
12711
  });
12693
12712
  return css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", ";\n }\n ", " {\n margin: ", ";\n }\n "])), Option, spacing, Delimiter, spacing);
12694
12713
  });
12695
- var Delimiter = styled.div(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref10) {
12696
- var theme = _ref10.theme;
12697
- return theme.useTypography('p');
12698
- }, function (_ref11) {
12714
+ var Delimiter = styled.div(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref11) {
12699
12715
  var theme = _ref11.theme;
12716
+ return theme.useTypography('p');
12717
+ }, function (_ref12) {
12718
+ var theme = _ref12.theme;
12700
12719
  return theme.colors.greyishBlue;
12701
12720
  });
12702
12721
 
@@ -12728,12 +12747,9 @@ var MenuComponent = function MenuComponent(props, ref) {
12728
12747
  var _option = _extends({}, option),
12729
12748
  delimiter = _option.delimiter,
12730
12749
  keepOpen = _option.keepOpen,
12731
- caret = _option.caret;
12750
+ caret = _option.caret,
12751
+ data = _option.data;
12732
12752
 
12733
- var label = isString(option.label) ? {
12734
- text: option.label,
12735
- element: option.label
12736
- } : option.label;
12737
12753
  var closeMenu = keepOpen ? function () {} : close;
12738
12754
  var onClick;
12739
12755
  var disabled = option.disabled;
@@ -12744,9 +12760,8 @@ var MenuComponent = function MenuComponent(props, ref) {
12744
12760
  };
12745
12761
 
12746
12762
  if (!disabled) {
12747
- var rules = option.rules || [];
12748
- var rule = rules.map(function (rule) {
12749
- return rule(index, option.data, label);
12763
+ var rule = (option.rules || []).map(function (rule) {
12764
+ return rule(index, data);
12750
12765
  }).find(function (result) {
12751
12766
  return result !== true;
12752
12767
  });
@@ -12779,13 +12794,21 @@ var MenuComponent = function MenuComponent(props, ref) {
12779
12794
  }
12780
12795
 
12781
12796
  OptionContent.displayName = 'OptionContent';
12797
+ var label = option.label;
12798
+ var labelOptions = filterObject(option, ['onClick', 'label', 'rules']);
12799
+ labelOptions.disabled = disabled;
12800
+ var LabelComponent = typeof label === 'function' ? label : function () {
12801
+ return React__default.createElement(React__default.Fragment, {
12802
+ children: label
12803
+ });
12804
+ };
12782
12805
  return React__default.createElement(React__default.Fragment, {
12783
12806
  key: index
12784
12807
  }, React__default.createElement(OptionContent, null, React__default.createElement(Option, {
12785
12808
  onClick: onClick,
12786
12809
  disabled: disabled,
12787
12810
  border: option.border
12788
- }, isString(label.element) ? React__default.createElement(EllipsisContainer$1, null, label.element) : label.element, caret ? React__default.createElement(Icon, {
12811
+ }, React__default.createElement("div", null, React__default.createElement(LabelComponent, Object.assign({}, option))), caret ? React__default.createElement(Icon, {
12789
12812
  type: 'semantic',
12790
12813
  icon: 'caret right',
12791
12814
  width: '14px'
@@ -12905,7 +12928,8 @@ var MonthPicker = function MonthPicker(props) {
12905
12928
  rules: [function () {
12906
12929
  var disabled = min !== undefined && (min.getFullYear() > year || min.getFullYear() === year && min.getMonth() > index) || max !== undefined && (max.getFullYear() < year || max.getFullYear() === year && max.getMonth() < index);
12907
12930
  return !disabled;
12908
- }]
12931
+ }],
12932
+ data: {}
12909
12933
  };
12910
12934
  })
12911
12935
  }));
@@ -12948,7 +12972,7 @@ var Indicator = function Indicator(props) {
12948
12972
  }, props)));
12949
12973
  };
12950
12974
 
12951
- var _templateObject$b, _templateObject2$a, _templateObject3$9, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$3, _templateObject11$2;
12975
+ var _templateObject$b, _templateObject2$a, _templateObject3$9, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$4, _templateObject11$2;
12952
12976
  var Footer = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > button:last-child {\n margin-left: auto;\n }\n"])));
12953
12977
  var WeekContainer = styled.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n\n :not(:first-child) {\n border-top: 1px solid ", ";\n }\n\n > * {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n width: 32px;\n height: 32px;\n\n color: ", ";\n box-shadow: none;\n\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n\n border: 1px solid transparent;\n :not(:last-child) {\n border-right-color: ", ";\n }\n }\n"])), function (_ref) {
12954
12978
  var theme = _ref.theme;
@@ -13005,7 +13029,7 @@ var DayContainer = styled.button(_templateObject4$8 || (_templateObject4$8 = _ta
13005
13029
  return;
13006
13030
  }
13007
13031
 
13008
- return css(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n :after {\n content: '';\n position: absolute;\n top: -60%;\n right: -60%;\n width: 100%;\n height: 100%;\n background-color: ", ";\n transform: rotate(45deg);\n }\n "])), theme.colors[appearance === 'active' ? 'white' : 'blue']);
13032
+ return css(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n :after {\n content: '';\n position: absolute;\n top: -60%;\n right: -60%;\n width: 100%;\n height: 100%;\n background-color: ", ";\n transform: rotate(45deg);\n }\n "])), theme.colors[appearance === 'active' ? 'white' : 'blue']);
13009
13033
  });
13010
13034
  var DayIndicator = styled(Indicator).attrs({
13011
13035
  size: 'mini'
@@ -13580,7 +13604,7 @@ var getTimeProps = function getTimeProps(time, value) {
13580
13604
  });
13581
13605
  };
13582
13606
 
13583
- var _templateObject$e, _templateObject2$b, _templateObject3$a, _templateObject4$9, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject10$4, _templateObject11$3, _templateObject12$2;
13607
+ var _templateObject$e, _templateObject2$b, _templateObject3$a, _templateObject4$9, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject10$5, _templateObject11$3, _templateObject12$2;
13584
13608
  var Button = styled.button(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n padding: 0\n ", ";\n font-family: 'Lato', sans-serif;\n font-weight: ", ";\n border-radius: 4px;\n position: relative;\n user-select: none;\n\n ", ";\n\n ", ";\n\n color: ", ";\n\n :disabled {\n ", "\n }\n\n :hover {\n cursor: ", ";\n\n ", "\n }\n\n :active {\n ", ";\n }\n\n ", "\n"])), function (_ref) {
13585
13609
  var theme = _ref.theme,
13586
13610
  appearance = _ref.appearance;
@@ -13652,7 +13676,7 @@ var Button = styled.button(_templateObject$e || (_templateObject$e = _taggedTemp
13652
13676
  }
13653
13677
 
13654
13678
  if (['link', 'bordeless'].includes(appearance)) {
13655
- return css(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor('blue', 50));
13679
+ return css(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor('blue', 50));
13656
13680
  }
13657
13681
 
13658
13682
  return css(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor(color || 'blue'));
@@ -14297,40 +14321,59 @@ var getOptions = function getOptions(props, options) {
14297
14321
  return options.map(function (option) {
14298
14322
  var value = option.value,
14299
14323
  onClick = option.onClick,
14300
- data = option.data;
14301
- var label = isString(option.label) ? {
14302
- text: option.label,
14303
- element: option.label
14304
- } : option.label;
14305
- return {
14306
- label: label,
14307
- onClick: onClick ? function (index, _option, event) {
14308
- onClick(index, {
14309
- label: label,
14324
+ rules = option.rules,
14325
+ disabled = option.disabled;
14326
+ var selected = option.value === props.value;
14327
+
14328
+ var data = _extends({}, option.data, {
14329
+ selected: selected,
14330
+ value: value
14331
+ });
14332
+
14333
+ var LabelComponent = option.label;
14334
+ var parsed = {
14335
+ label: typeof LabelComponent !== 'function' ? LabelComponent : function (_ref) {
14336
+ var disabled = _ref.disabled;
14337
+ return React__default.createElement(LabelComponent, Object.assign({}, {
14310
14338
  value: value,
14311
- data: data
14312
- }, event);
14313
- } : function () {
14314
- props.setValue(value === props.value ? '' : value, option);
14339
+ data: data,
14340
+ disabled: disabled
14341
+ }));
14315
14342
  },
14316
- data: data,
14317
- disabled: option.disabled,
14318
- rules: option.rules,
14343
+ onClick: onClick || function () {
14344
+ props.setValue(selected ? '' : value, option.data);
14345
+ },
14346
+ disabled: disabled,
14347
+ rules: rules,
14319
14348
  border: {
14320
14349
  left: {
14321
- color: value === props.value ? 'blue' : 'transparent'
14350
+ color: selected ? 'blue' : 'transparent'
14322
14351
  }
14323
- }
14352
+ },
14353
+ data: data
14324
14354
  };
14355
+ return parsed;
14325
14356
  });
14326
14357
  };
14327
14358
 
14328
- var getInputValue = function getInputValue(value, options, parsedOptions) {
14359
+ var getSelected = function getSelected(value, options) {
14329
14360
  var selectedIndex = options.findIndex(function (option) {
14330
14361
  return option.value === value;
14331
14362
  });
14332
- var selected = parsedOptions[selectedIndex];
14333
- return selected ? selected.label.text : value;
14363
+ if (selectedIndex === -1) return null;
14364
+ var selected = options[selectedIndex];
14365
+ return selected;
14366
+ };
14367
+
14368
+ var getInputContent = function getInputContent(props, selectedOption) {
14369
+ if (typeof selectedOption.label !== 'function') return selectedOption.label;
14370
+ var LabelComponent = selectedOption.label;
14371
+ return React__default.createElement(LabelComponent, {
14372
+ data: _extends({}, selectedOption.data),
14373
+ value: selectedOption.value,
14374
+ disabled: props.disabled || props.loading,
14375
+ mode: 'placeholder'
14376
+ });
14334
14377
  };
14335
14378
 
14336
14379
  var useSelect = function useSelect(props) {
@@ -14339,16 +14382,15 @@ var useSelect = function useSelect(props) {
14339
14382
  setOptions = _useState[1];
14340
14383
 
14341
14384
  var parsedOptions = getOptions(props, options);
14342
- var inputValue = getInputValue(props.value, options, parsedOptions);
14343
14385
 
14344
14386
  var onReset = function onReset() {};
14345
14387
 
14388
+ var selectedOption = getSelected(props.value, options);
14389
+ var inputContent = selectedOption ? getInputContent(props, selectedOption) : props.value;
14346
14390
  return {
14347
14391
  parsedOptions: parsedOptions,
14348
14392
  options: [options, setOptions],
14349
- input: {
14350
- value: inputValue
14351
- },
14393
+ inputContent: inputContent,
14352
14394
  onReset: onReset,
14353
14395
  menu: {
14354
14396
  itemSpacing: 's3',
@@ -14362,6 +14404,9 @@ var useSelect = function useSelect(props) {
14362
14404
  options: options
14363
14405
  })
14364
14406
  }, children);
14407
+ },
14408
+ onClear: function onClear() {
14409
+ return props.onClear('');
14365
14410
  }
14366
14411
  };
14367
14412
  };
@@ -14379,9 +14424,7 @@ var Footer$1 = function Footer() {
14379
14424
  setOpen = context.setOpen;
14380
14425
 
14381
14426
  var onClick = function onClick() {
14382
- setValue(checked.map(function (c) {
14383
- return c.value;
14384
- }), [].concat(checked));
14427
+ setValue([].concat(checked));
14385
14428
  setOpen(false);
14386
14429
  };
14387
14430
 
@@ -14451,7 +14494,9 @@ var Header$2 = function Header() {
14451
14494
 
14452
14495
  var onClick = function onClick() {
14453
14496
  setChecked(function (prev) {
14454
- return prev.length === options.length ? [] : [].concat(options);
14497
+ return prev.length === options.length ? [] : options.map(function (o) {
14498
+ return o.value;
14499
+ });
14455
14500
  });
14456
14501
  };
14457
14502
 
@@ -14476,128 +14521,95 @@ var Header$2 = function Header() {
14476
14521
  }));
14477
14522
  };
14478
14523
 
14479
- var getOptions$1 = function getOptions(options, checked, setChecked) {
14524
+ var Label$2 = function Label(props) {
14525
+ var context = useContext$1();
14526
+ var _context$checked = context.checked,
14527
+ checked = _context$checked[0],
14528
+ setChecked = _context$checked[1];
14529
+ var _props$option$data = props.option.data,
14530
+ disabled = _props$option$data.disabled,
14531
+ value = _props$option$data.value;
14532
+ var LabelComponent = props.label;
14533
+ return React__default.createElement(Checkbox, {
14534
+ type: 'checkbox',
14535
+ checked: checked.findIndex(function (e) {
14536
+ return e === value;
14537
+ }) !== -1,
14538
+ label: typeof LabelComponent !== 'function' ? LabelComponent : React__default.createElement(LabelComponent, Object.assign({}, props.option)),
14539
+ disabled: disabled,
14540
+ onChange: function onChange(event) {
14541
+ var isChecked = event.target.checked;
14542
+ setChecked(function (prev) {
14543
+ var newState = prev.filter(function (v) {
14544
+ return v !== value;
14545
+ });
14546
+ if (isChecked) newState.push(value);
14547
+ return newState;
14548
+ });
14549
+ },
14550
+ padding: {
14551
+ top: 's3',
14552
+ left: 's3',
14553
+ right: 's3',
14554
+ bottom: 's3'
14555
+ },
14556
+ width: '100%'
14557
+ });
14558
+ };
14559
+
14560
+ var getOptions$1 = function getOptions(options) {
14480
14561
  return options.map(function (option) {
14481
- var label = isString(option.label) ? {
14482
- text: option.label,
14483
- element: option.label
14484
- } : option.label;
14485
- var value = option.value,
14486
- onClick = option.onClick,
14487
- data = option.data;
14488
- return {
14489
- label: {
14490
- text: label.text,
14491
- element: React__default.createElement(Checkbox, {
14492
- type: 'checkbox',
14493
- checked: checked.findIndex(function (e) {
14494
- return e.value === option.value;
14495
- }) !== -1,
14496
- label: label.element,
14497
- disabled: option.disabled,
14498
- onChange: function onChange(event) {
14499
- var isChecked = event.target.checked;
14500
- setChecked(function (prev) {
14501
- var newState = prev.filter(function (v) {
14502
- return v.value !== option.value;
14503
- });
14504
- if (isChecked) newState.push(_extends({}, option));
14505
- return newState;
14506
- });
14507
- },
14508
- padding: {
14509
- top: 's3',
14510
- left: 's3',
14511
- right: 's3',
14512
- bottom: 's3'
14513
- }
14514
- })
14562
+ var _label = option.label,
14563
+ value = option.value,
14564
+ onClick = option.onClick;
14565
+ var data = {
14566
+ data: option.data,
14567
+ value: value
14568
+ };
14569
+ var parsed = {
14570
+ label: function label(option) {
14571
+ return React__default.createElement(Label$2, {
14572
+ option: _extends({}, data, {
14573
+ disabled: option.disabled
14574
+ }),
14575
+ label: _label
14576
+ });
14515
14577
  },
14516
- onClick: onClick ? function (index, _option, event) {
14517
- onClick(index, {
14518
- label: label,
14519
- value: value,
14520
- data: data
14521
- }, event);
14522
- } : undefined,
14578
+ onClick: onClick,
14523
14579
  data: data,
14524
14580
  disabled: option.disabled,
14525
14581
  rules: option.rules,
14526
14582
  keepOpen: true
14527
14583
  };
14584
+ return parsed;
14528
14585
  });
14529
14586
  };
14530
14587
 
14531
- var getInputValue$1 = function getInputValue(value) {
14588
+ var getInputContent$1 = function getInputContent(value) {
14532
14589
  if (value.length < 1) return '';
14533
14590
  return value.length > 1 ? "H\xE1 " + value.length + " sele\xE7\xF5es" : "H\xE1 " + value.length + " sele\xE7\xE3o";
14534
14591
  };
14535
14592
 
14536
14593
  var useSelectMultiple = function useSelectMultiple(props) {
14537
- var init = function init() {
14538
- if (props.value.length) return [];
14539
- return typeof props.value[0] === 'string' ? [].concat(props.value).map(function (value) {
14540
- return {
14541
- value: value,
14542
- label: value
14543
- };
14544
- }) : [].concat(props.value);
14545
- };
14546
-
14547
14594
  var _useState = useState([]),
14548
14595
  options = _useState[0],
14549
14596
  setOptions = _useState[1];
14550
14597
 
14551
- var _useState2 = useState(init),
14552
- inital = _useState2[0],
14553
- setInitial = _useState2[1];
14554
-
14555
- var _useState3 = useState(init),
14556
- checked = _useState3[0],
14557
- setChecked = _useState3[1];
14558
-
14559
- useEffect(function () {
14560
- var getOption = function getOption(def, options, prev) {
14561
- var index = options.findIndex(function (o) {
14562
- return o.value === def.value;
14563
- });
14564
- if (index !== -1) return _extends({}, options[index]);else {
14565
- var _index = prev.findIndex(function (o) {
14566
- return o.value === def.value;
14567
- });
14568
-
14569
- if (_index !== -1) return _extends({}, prev[_index]);
14570
- }
14571
- return def;
14572
- };
14598
+ var _useState2 = useState([].concat(props.value)),
14599
+ checked = _useState2[0],
14600
+ setChecked = _useState2[1];
14573
14601
 
14574
- var mapper = function mapper(prev) {
14575
- return props.value.length > 0 && typeof props.value[0] === 'string' ? props.value.map(function (value) {
14576
- return getOption({
14577
- value: value,
14578
- label: value
14579
- }, options, prev);
14580
- }) : props.value.map(function (value) {
14581
- return getOption(value, options, prev);
14582
- });
14583
- };
14584
-
14585
- setInitial(mapper);
14586
- setChecked(mapper);
14587
- }, [props.value, options]);
14588
- var parsedOptions = getOptions$1(options, checked, setChecked);
14589
- var inputValue = getInputValue$1(props.value);
14602
+ var parsedOptions = getOptions$1(options);
14603
+ var inputContent = getInputContent$1(props.value);
14590
14604
 
14591
14605
  var onReset = function onReset() {
14592
- setChecked([].concat(inital));
14606
+ setChecked([].concat(props.value));
14593
14607
  };
14594
14608
 
14595
14609
  var returnData = {
14596
14610
  parsedOptions: parsedOptions,
14597
14611
  options: [options, setOptions],
14598
- input: {
14599
- value: inputValue
14600
- },
14612
+ inputContent: inputContent,
14601
14613
  onReset: onReset,
14602
14614
  menu: {
14603
14615
  itemSpacing: undefined,
@@ -14613,6 +14625,9 @@ var useSelectMultiple = function useSelectMultiple(props) {
14613
14625
  checked: [checked, setChecked]
14614
14626
  })
14615
14627
  }, children);
14628
+ },
14629
+ onClear: function onClear() {
14630
+ return props.setValue([]);
14616
14631
  }
14617
14632
  };
14618
14633
  return returnData;
@@ -14630,12 +14645,13 @@ var Select = React__default.forwardRef(function (props, ref) {
14630
14645
 
14631
14646
  var _ref = props.type === 'select-multiple' ? useSelectMultiple(props) : useSelect(props),
14632
14647
  parsedOptions = _ref.parsedOptions,
14633
- inputValue = _ref.input.value,
14648
+ inputContent = _ref.inputContent,
14634
14649
  _ref$options = _ref.options,
14635
14650
  setOptions = _ref$options[1],
14636
14651
  onReset = _ref.onReset,
14637
14652
  menuProps = _ref.menu,
14638
- getContext = _ref.getContext;
14653
+ getContext = _ref.getContext,
14654
+ onClear = _ref.onClear;
14639
14655
 
14640
14656
  var _useState = useState(false),
14641
14657
  _loading = _useState[0],
@@ -14669,9 +14685,7 @@ var Select = React__default.forwardRef(function (props, ref) {
14669
14685
  setPage(1);
14670
14686
  };
14671
14687
 
14672
- var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value'], {
14673
- value: inputValue
14674
- });
14688
+ var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value']);
14675
14689
 
14676
14690
  var _onScrollEnd = props.onScrollEnd || function () {};
14677
14691
 
@@ -14756,7 +14770,7 @@ var Select = React__default.forwardRef(function (props, ref) {
14756
14770
  width: props.width
14757
14771
  }, React__default.createElement(Input$1, Object.assign({}, inputProps, {
14758
14772
  type: 'search',
14759
- readOnly: true,
14773
+ htmlReadOnly: true,
14760
14774
  onClick: onClick,
14761
14775
  loading: loading,
14762
14776
  icon: {
@@ -14768,7 +14782,10 @@ var Select = React__default.forwardRef(function (props, ref) {
14768
14782
  },
14769
14783
  onClick: onClick
14770
14784
  },
14771
- ref: ref
14785
+ ref: ref,
14786
+ clearable: props.value.length > 0 ? onClear : undefined,
14787
+ placeholder: props.value.length === 0 ? props.placeholder : undefined,
14788
+ children: inputContent
14772
14789
  })), React__default.createElement(Menu, Object.assign({}, menuProps, {
14773
14790
  open: open,
14774
14791
  close: function close() {
@@ -14776,7 +14793,7 @@ var Select = React__default.forwardRef(function (props, ref) {
14776
14793
  },
14777
14794
  options: parsedOptions,
14778
14795
  onScrollEnd: onScrollEnd,
14779
- width: '100%',
14796
+ width: props.inputWidth || '100%',
14780
14797
  bordered: true,
14781
14798
  position: position,
14782
14799
  references: {
@@ -15039,7 +15056,7 @@ var countries = {
15039
15056
  var _templateObject$n, _templateObject2$i, _templateObject3$d;
15040
15057
  var IconContainer$1 = styled.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n > i.icon {\n margin-top: -1px;\n }\n"])));
15041
15058
  var RelativeContainer$3 = styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
15042
- var Label$2 = styled.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n ", "\n\n color: ", ";\n\n display: flex;\n gap: ", ";\n\n > span {\n color: ", ";\n }\n"])), function (_ref) {
15059
+ var Label$3 = styled.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n ", "\n\n color: ", ";\n\n display: flex;\n gap: ", ";\n\n > span {\n color: ", ";\n }\n"])), function (_ref) {
15043
15060
  var theme = _ref.theme;
15044
15061
  return theme.useTypography('p');
15045
15062
  }, function (_ref2) {
@@ -15118,15 +15135,16 @@ var Component = React__default.forwardRef(function (props, ref) {
15118
15135
 
15119
15136
  var options = Object.keys(countries).map(function (iso) {
15120
15137
  return {
15121
- label: {
15122
- text: countries[iso].name,
15123
- element: React__default.createElement(Label$2, null, React__default.createElement(Flag, {
15138
+ label: function label(option) {
15139
+ var country = option.data;
15140
+ return React__default.createElement(Label$3, null, React__default.createElement(Flag, {
15124
15141
  iso: iso
15125
- }), countries[iso].name, React__default.createElement("span", null, "+", countries[iso].ddi))
15142
+ }), country.name, React__default.createElement("span", null, "+", country.ddi));
15126
15143
  },
15127
15144
  onClick: function onClick() {
15128
15145
  setCountry(countries[iso]);
15129
- }
15146
+ },
15147
+ data: countries[iso]
15130
15148
  };
15131
15149
  });
15132
15150
 
@@ -15370,7 +15388,7 @@ var LabelContainer$3 = styled.div(_templateObject$p || (_templateObject$p = _tag
15370
15388
  if (!required) return;
15371
15389
  return css(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n :after {\n content: '*';\n }\n "])));
15372
15390
  });
15373
- var Label$3 = styled.label(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n position: relative;\n align-items: center;\n\n ", "\n\n ", "\n\n > input {\n position: absolute;\n height: 0%;\n width: 0%;\n opacity: 0;\n }\n\n > span {\n position: relative;\n width: 50px;\n height: calc(", " + 1px);\n background-color: ", ";\n border-radius: 20px;\n transition-property: background-color;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n box-sizing: content-box;\n :before {\n content: '';\n transition-property: left;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n position: absolute;\n border-width: 1px;\n border-style: solid;\n border-radius: 100%;\n left: 0;\n box-shadow: 0px 1px 3px ", ";\n width: calc(", " - 1px);\n height: calc(", " - 1px);\n background-color: ", ";\n }\n }\n\n > input:checked + span {\n :before {\n left: calc(100% - ", " - 1px);\n }\n }\n"])), function (_ref3) {
15391
+ var Label$4 = styled.label(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n position: relative;\n align-items: center;\n\n ", "\n\n ", "\n\n > input {\n position: absolute;\n height: 0%;\n width: 0%;\n opacity: 0;\n }\n\n > span {\n position: relative;\n width: 50px;\n height: calc(", " + 1px);\n background-color: ", ";\n border-radius: 20px;\n transition-property: background-color;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n box-sizing: content-box;\n :before {\n content: '';\n transition-property: left;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n position: absolute;\n border-width: 1px;\n border-style: solid;\n border-radius: 100%;\n left: 0;\n box-shadow: 0px 1px 3px ", ";\n width: calc(", " - 1px);\n height: calc(", " - 1px);\n background-color: ", ";\n }\n }\n\n > input:checked + span {\n :before {\n left: calc(100% - ", " - 1px);\n }\n }\n"])), function (_ref3) {
15374
15392
  var theme = _ref3.theme;
15375
15393
  return theme.spacings.s1;
15376
15394
  }, function (_ref4) {
@@ -15433,7 +15451,7 @@ var Switch = function Switch(props) {
15433
15451
  };
15434
15452
  var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'htmlDisabled', 'labelProps']);
15435
15453
  htmlProps.disabled = props.disabled || props.htmlDisabled;
15436
- return React__default.createElement(Label$3, Object.assign({}, props.labelProps || {}, {
15454
+ return React__default.createElement(Label$4, Object.assign({}, props.labelProps || {}, {
15437
15455
  disabled: disabled ? 1 : 0,
15438
15456
  invalid: invalid ? 1 : 0
15439
15457
  }), label.label && React__default.createElement(LabelContainer$3, {
@@ -15443,7 +15461,7 @@ var Switch = function Switch(props) {
15443
15461
  })), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
15444
15462
  };
15445
15463
 
15446
- var _templateObject$q, _templateObject2$l, _templateObject3$g, _templateObject4$d, _templateObject5$b, _templateObject6$9, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject10$5, _templateObject11$4, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$1, _templateObject16;
15464
+ var _templateObject$q, _templateObject2$l, _templateObject3$g, _templateObject4$d, _templateObject5$b, _templateObject6$9, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject10$6, _templateObject11$4, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$1, _templateObject16$1;
15447
15465
  var bullet = css(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: ", ";\n height: ", ";\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n"])), function (_ref) {
15448
15466
  var theme = _ref.theme;
15449
15467
  return theme.spacings.s4;
@@ -15458,7 +15476,7 @@ var bullet = css(_templateObject$q || (_templateObject$q = _taggedTemplateLitera
15458
15476
  return theme.getColor('black', 10);
15459
15477
  });
15460
15478
  var Input$2 = styled.input(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: 100%;\n height: 10px;\n background-color: transparent;\n outline: none;\n position: relative;\n z-index: 3;\n margin: 0;\n\n :not(:disabled) {\n cursor: pointer;\n }\n\n /** firefox */\n ::-moz-range-thumb {\n ", "\n }\n /** ie */\n ::-ms-thumb {\n ", "\n }\n /** chrome */\n ::-webkit-slider-thumb {\n ", "\n }\n"])), bullet, bullet, bullet);
15461
- var Label$4 = styled.label(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 19px;\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > div:first-child {\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n }\n"])), function (_ref5) {
15479
+ var Label$5 = styled.label(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 19px;\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > div:first-child {\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n }\n"])), function (_ref5) {
15462
15480
  var theme = _ref5.theme;
15463
15481
  return theme.useTypography('p');
15464
15482
  }, function (_ref6) {
@@ -15476,7 +15494,7 @@ var Label$4 = styled.label(_templateObject3$g || (_templateObject3$g = _taggedTe
15476
15494
  if (!required) return;
15477
15495
  return css(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
15478
15496
  });
15479
- var InputContainer = styled.div(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n gap: 6px;\n\n > div {\n position: relative;\n }\n\n ", "\n"])), function (_ref10) {
15497
+ var InputContainer$1 = styled.div(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n gap: 6px;\n\n > div {\n position: relative;\n }\n\n ", "\n"])), function (_ref10) {
15480
15498
  var theme = _ref10.theme,
15481
15499
  invalid = _ref10.invalid;
15482
15500
 
@@ -15487,14 +15505,14 @@ var InputContainer = styled.div(_templateObject6$9 || (_templateObject6$9 = _tag
15487
15505
  return css(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteralLoose(["\n ", " > span {\n background-color: ", ";\n }\n\n ", " {\n /** firefox */\n ::-moz-range-thumb {\n border-color: ", ";\n }\n /** ie */\n ::-ms-thumb {\n border-color: ", ";\n }\n /** chrome */\n ::-webkit-slider-thumb {\n border-color: ", ";\n }\n }\n "])), SelectedArea, theme.colors.warningRed, Input$2, theme.colors.warningRed, theme.colors.warningRed, theme.colors.warningRed);
15488
15506
  });
15489
15507
  var MinMaxLabelContainer = styled.div(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
15490
- var LabelsContainer = styled.div(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
15508
+ var LabelsContainer = styled.div(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
15491
15509
  var position = _ref11.position;
15492
15510
 
15493
15511
  if (position === 'bottom') {
15494
- return css(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% + 10.5px);\n }\n }\n\n ", " {\n align-items: start;\n }\n "])), InputContainer, Marker, MinMaxLabelContainer);
15512
+ return css(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% + 10.5px);\n }\n }\n\n ", " {\n align-items: start;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15495
15513
  }
15496
15514
 
15497
- return css(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% + 8px);\n }\n }\n\n ", " {\n align-items: end;\n }\n "])), InputContainer, Marker, MinMaxLabelContainer);
15515
+ return css(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% + 8px);\n }\n }\n\n ", " {\n align-items: end;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15498
15516
  });
15499
15517
  var SelectedArea = styled.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n height: 3px;\n width: 100%;\n position: absolute;\n bottom: calc(50% - 2px);\n left: 0;\n display: flex;\n z-index: 1;\n\n > span {\n width: ", "%;\n display: block;\n box-sizing: border-box;\n height: 100%;\n }\n"])), function (_ref12) {
15500
15518
  var theme = _ref12.theme;
@@ -15511,7 +15529,7 @@ var Marker = styled.div(_templateObject15$1 || (_templateObject15$1 = _taggedTem
15511
15529
  var bullet = _ref15.bullet,
15512
15530
  theme = _ref15.theme;
15513
15531
  if (!bullet) return;
15514
- return css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n :after {\n content: '';\n position: absolute;\n left: calc(50% - 5px);\n width: 10px;\n height: 10px;\n border-radius: 100%;\n border: 1px solid ", ";\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n }\n "])), theme.colors.lightestGrey, theme.colors.white, theme.getColor('black', 10));
15532
+ return css(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: '';\n position: absolute;\n left: calc(50% - 5px);\n width: 10px;\n height: 10px;\n border-radius: 100%;\n border: 1px solid ", ";\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n }\n "])), theme.colors.lightestGrey, theme.colors.white, theme.getColor('black', 10));
15515
15533
  });
15516
15534
 
15517
15535
  var getMarkers = function getMarkers(props) {
@@ -15629,13 +15647,13 @@ var Range = React__default.forwardRef(function (props, ref) {
15629
15647
  onChange: onChange,
15630
15648
  value: value
15631
15649
  });
15632
- return React__default.createElement(Label$4, {
15650
+ return React__default.createElement(Label$5, {
15633
15651
  required: required ? 1 : 0,
15634
15652
  disabled: disabled ? 1 : 0,
15635
15653
  width: width
15636
15654
  }, React__default.createElement("div", null, label), React__default.createElement(LabelsContainer, {
15637
15655
  position: position
15638
- }, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer, {
15656
+ }, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer$1, {
15639
15657
  invalid: invalid ? 1 : 0
15640
15658
  }, markers.length > 0 && React__default.createElement(MarkersContainer, null, markers.map(function (marker, index) {
15641
15659
  var z = markers.length - 2;
@@ -15667,7 +15685,7 @@ var LabelContainer$4 = styled.div(_templateObject$r || (_templateObject$r = _tag
15667
15685
  var theme = _ref.theme;
15668
15686
  return theme.useTypography('p');
15669
15687
  });
15670
- var Label$5 = styled.label(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n\n ", "\n\n ", "\n\n", "\n\n > input {\n height: 0;\n width: 0;\n /* Chrome, Safari, Edge, Opera */\n :-webkit-outer-spin-button,\n :-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n -moz-appearance: none;\n }\n\n > span {\n height: 17px;\n width: 17px;\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n position: relative;\n transition-property: border-color;\n transition-duration: 0.5s;\n transition-timing-function: ease-in-out;\n :before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n height: 0;\n width: 0;\n border-radius: 100%;\n transition-property: top, left, width, height, background-color;\n transition-duration: 0.5s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n }\n }\n > input:checked + span {\n :before {\n top: calc(50% - 4.5px);\n left: calc(50% - 4.5px);\n height: 9px;\n width: 9px;\n }\n }\n"])), function (_ref2) {
15688
+ var Label$6 = styled.label(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n\n ", "\n\n ", "\n\n", "\n\n > input {\n height: 0;\n width: 0;\n /* Chrome, Safari, Edge, Opera */\n :-webkit-outer-spin-button,\n :-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n -moz-appearance: none;\n }\n\n > span {\n height: 17px;\n width: 17px;\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n position: relative;\n transition-property: border-color;\n transition-duration: 0.5s;\n transition-timing-function: ease-in-out;\n :before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n height: 0;\n width: 0;\n border-radius: 100%;\n transition-property: top, left, width, height, background-color;\n transition-duration: 0.5s;\n transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);\n }\n }\n > input:checked + span {\n :before {\n top: calc(50% - 4.5px);\n left: calc(50% - 4.5px);\n height: 9px;\n width: 9px;\n }\n }\n"])), function (_ref2) {
15671
15689
  var theme = _ref2.theme;
15672
15690
  return theme.spacings.s1;
15673
15691
  }, function (_ref3) {
@@ -15713,7 +15731,7 @@ var RadioButton = function RadioButton(props) {
15713
15731
  required = props.required,
15714
15732
  invalid = props.invalid;
15715
15733
  var htmlProps = filterObject(props, ['label', 'invalid', 'required']);
15716
- return React__default.createElement(Label$5, {
15734
+ return React__default.createElement(Label$6, {
15717
15735
  disabled: disabled ? 1 : 0,
15718
15736
  required: required ? 1 : 0,
15719
15737
  invalid: invalid ? 1 : 0
@@ -15905,7 +15923,7 @@ var parse = function parse(value) {
15905
15923
  });
15906
15924
  };
15907
15925
 
15908
- var _templateObject$s, _templateObject2$n, _templateObject3$i, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject10$6, _templateObject11$5;
15926
+ var _templateObject$s, _templateObject2$n, _templateObject3$i, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject10$7, _templateObject11$5;
15909
15927
  var RelativeContainer$5 = styled.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > input,\n > label > input {\n color: transparent;\n background-color: transparent;\n width: 1px;\n height: 1px;\n position: absolute;\n left: 0;\n bottom: 0;\n border: 0;\n padding: 0;\n overflow: hidden;\n outline: none;\n box-shadow: none;\n }\n"])));
15910
15928
  var LabelContainer$5 = styled.div(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
15911
15929
  var theme = _ref.theme;
@@ -15948,7 +15966,7 @@ var Button$4 = styled.button(_templateObject8$9 || (_templateObject8$9 = _tagged
15948
15966
  if (!onClick) return;
15949
15967
  return css(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
15950
15968
  });
15951
- var LabelText$1 = styled.label(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref10) {
15969
+ var LabelText$1 = styled.label(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref10) {
15952
15970
  var theme = _ref10.theme;
15953
15971
  return theme.spacings.s1;
15954
15972
  }, function (_ref11) {
@@ -16111,22 +16129,26 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
16111
16129
  label: 'Hoje',
16112
16130
  onClick: function onClick() {
16113
16131
  return setValue(intervalTypes.day.initial(props.min));
16114
- }
16132
+ },
16133
+ data: {}
16115
16134
  }, {
16116
16135
  label: 'Semana',
16117
16136
  onClick: function onClick() {
16118
16137
  return setValue(intervalTypes.week.initial(props.min));
16119
- }
16138
+ },
16139
+ data: {}
16120
16140
  }, {
16121
16141
  label: 'Mês',
16122
16142
  onClick: function onClick() {
16123
16143
  return setValue(intervalTypes.month.initial(props.min));
16124
- }
16144
+ },
16145
+ data: {}
16125
16146
  }, {
16126
16147
  label: 'Personalizado',
16127
16148
  onClick: function onClick() {
16128
16149
  return setOpen('calendar');
16129
16150
  },
16151
+ data: {},
16130
16152
  keepOpen: true,
16131
16153
  caret: true
16132
16154
  }],
@@ -16234,7 +16256,7 @@ var Input$4 = React__default.forwardRef(function (props, ref) {
16234
16256
  Input$4.displayName = 'Input';
16235
16257
 
16236
16258
  var _templateObject$u, _templateObject2$o;
16237
- var Label$6 = styled.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
16259
+ var Label$7 = styled.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
16238
16260
  var theme = _ref.theme;
16239
16261
  return theme.spacings.s1;
16240
16262
  }, function (_ref2) {
@@ -16243,8 +16265,8 @@ var Label$6 = styled.div(_templateObject$u || (_templateObject$u = _taggedTempla
16243
16265
  return css(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
16244
16266
  });
16245
16267
 
16246
- var Label$7 = function Label(props) {
16247
- return props.children ? React__default.createElement(Label$6, Object.assign({}, props)) : null;
16268
+ var Label$8 = function Label(props) {
16269
+ return props.children ? React__default.createElement(Label$7, Object.assign({}, props)) : null;
16248
16270
  };
16249
16271
 
16250
16272
  var _templateObject$v;
@@ -16282,7 +16304,7 @@ var Tag$1 = function Tag$1(props) {
16282
16304
  };
16283
16305
 
16284
16306
  var _templateObject$w, _templateObject2$p, _templateObject3$j;
16285
- var Label$8 = styled.label(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n"])), function (_ref) {
16307
+ var Label$9 = styled.label(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n"])), function (_ref) {
16286
16308
  var theme = _ref.theme;
16287
16309
  return theme.useTypography('p');
16288
16310
  }, function (_ref2) {
@@ -16348,10 +16370,10 @@ var Tags = React__default.forwardRef(function (props, ref) {
16348
16370
  setValue([].concat(prev));
16349
16371
  };
16350
16372
 
16351
- return React__default.createElement(Label$8, {
16373
+ return React__default.createElement(Label$9, {
16352
16374
  disabled: props.disabled,
16353
16375
  width: props.width
16354
- }, React__default.createElement(Label$7, {
16376
+ }, React__default.createElement(Label$8, {
16355
16377
  required: props.required
16356
16378
  }, props.label), React__default.createElement(TagContainer, {
16357
16379
  invalid: props.invalid
@@ -16978,7 +17000,7 @@ var AppliedFilters = Object.assign(function (props) {
16978
17000
  Menu: AppliedFiltersMenu
16979
17001
  });
16980
17002
 
16981
- var _templateObject$A, _templateObject2$s, _templateObject3$m, _templateObject4$h, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$a, _templateObject10$7;
17003
+ var _templateObject$A, _templateObject2$s, _templateObject3$m, _templateObject4$h, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$a, _templateObject10$8;
16982
17004
  var Container$9 = styled.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) {
16983
17005
  return props.size === 'mini' && css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
16984
17006
  }, function (props) {
@@ -16996,7 +17018,7 @@ var Container$9 = styled.div(_templateObject$A || (_templateObject$A = _taggedTe
16996
17018
  }, function (props) {
16997
17019
  return props.borderType === 'danger' && css(_templateObject9$a || (_templateObject9$a = _taggedTemplateLiteralLoose(["\n border-left-color: #e23851;\n "])));
16998
17020
  }, function (props) {
16999
- return props.borderType === 'none' && css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n border: 1px solid #d4d4d5;\n "])));
17021
+ return props.borderType === 'none' && css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n border: 1px solid #d4d4d5;\n "])));
17000
17022
  });
17001
17023
 
17002
17024
  var _excluded$1 = ["children"];
@@ -17276,8 +17298,9 @@ var Submenu = function Submenu(props) {
17276
17298
 
17277
17299
  var optionsParser = function optionsParser(option) {
17278
17300
  return {
17279
- label: option.label,
17280
- onClick: onClickOption
17301
+ label: typeof option.label === 'string' ? option.label : option.label.element,
17302
+ onClick: onClickOption,
17303
+ data: {}
17281
17304
  };
17282
17305
  };
17283
17306
 
@@ -17339,7 +17362,7 @@ var FiltersMenu = function FiltersMenu(props) {
17339
17362
 
17340
17363
  var items = props.items.map(function (item) {
17341
17364
  return {
17342
- label: item.label,
17365
+ label: typeof item.label === 'string' ? item.label : item.label.element,
17343
17366
  delimiter: item.delimiter,
17344
17367
  keepOpen: true,
17345
17368
  caret: true,
@@ -17347,7 +17370,8 @@ var FiltersMenu = function FiltersMenu(props) {
17347
17370
  setActive(function (prev) {
17348
17371
  return prev === index ? -1 : index;
17349
17372
  });
17350
- }
17373
+ },
17374
+ data: {}
17351
17375
  };
17352
17376
  });
17353
17377
  var selected = active >= 0 && active < props.items.length ? props.items[active] : undefined;
@@ -17412,7 +17436,7 @@ var useContext$2 = function useContext() {
17412
17436
  return React__default.useContext(Provider$2);
17413
17437
  };
17414
17438
 
17415
- var _templateObject$D, _templateObject2$t, _templateObject3$n, _templateObject4$i, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$b, _templateObject10$8, _templateObject11$6, _templateObject12$4, _templateObject13$3, _templateObject14$3, _templateObject15$2;
17439
+ var _templateObject$D, _templateObject2$t, _templateObject3$n, _templateObject4$i, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$b, _templateObject10$9, _templateObject11$6, _templateObject12$4, _templateObject13$3, _templateObject14$3, _templateObject15$2;
17416
17440
  var aligns = {
17417
17441
  self: {
17418
17442
  horizontal: {
@@ -17495,7 +17519,7 @@ var Col = styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLi
17495
17519
 
17496
17520
  if (align.text !== undefined) {
17497
17521
  var _v4 = align.text;
17498
- styles.push(css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n text-align: ", ";\n "])), _v4));
17522
+ styles.push(css(_templateObject10$9 || (_templateObject10$9 = _taggedTemplateLiteralLoose(["\n text-align: ", ";\n "])), _v4));
17499
17523
  }
17500
17524
 
17501
17525
  return styles;
@@ -17571,7 +17595,7 @@ var Grid$1 = function Grid$1(props) {
17571
17595
  }, React__default.createElement(Grid, Object.assign({}, gridProps)));
17572
17596
  };
17573
17597
 
17574
- var _templateObject$F, _templateObject2$v, _templateObject3$p, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$c, _templateObject10$9;
17598
+ var _templateObject$F, _templateObject2$v, _templateObject3$p, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$c, _templateObject10$a;
17575
17599
  var horizontalAligns = {
17576
17600
  around: 'space-around',
17577
17601
  between: 'space-between',
@@ -17646,7 +17670,7 @@ var Row = styled.div(_templateObject$F || (_templateObject$F = _taggedTemplateLi
17646
17670
  if (!hover) return;
17647
17671
  var h = hover === true ? ['lightGrey', 50] : hover;
17648
17672
  var c = Array.isArray(h) ? theme.getColor.apply(theme, h) : theme.colors[h];
17649
- return css(_templateObject10$9 || (_templateObject10$9 = _taggedTemplateLiteralLoose(["\n :hover {\n background-color: ", ";\n }\n "])), c);
17673
+ return css(_templateObject10$a || (_templateObject10$a = _taggedTemplateLiteralLoose(["\n :hover {\n background-color: ", ";\n }\n "])), c);
17650
17674
  });
17651
17675
 
17652
17676
  var Row$1 = function Row$1(props) {
@@ -17699,7 +17723,7 @@ var widths = {
17699
17723
  default: '642.5px'
17700
17724
  };
17701
17725
 
17702
- var _templateObject$G, _templateObject2$w, _templateObject3$q, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$d, _templateObject10$a;
17726
+ var _templateObject$G, _templateObject2$w, _templateObject3$q, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$d, _templateObject10$b;
17703
17727
  var Background = styled.div(_templateObject$G || (_templateObject$G = _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) {
17704
17728
  var theme = _ref.theme;
17705
17729
  return theme.getColor('black', 25);
@@ -17732,7 +17756,7 @@ var Container$b = styled.div(_templateObject9$d || (_templateObject9$d = _tagged
17732
17756
  customSize = _ref6.customSize,
17733
17757
  color = _ref6.color,
17734
17758
  inverted = _ref6.inverted;
17735
- return css(_templateObject10$a || (_templateObject10$a = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n box-shadow: 0 0 21px 7px ", ";\n\n width: ", ";\n\n height: ", ";\n\n ", " {\n background-color: ", ";\n color: ", ";\n }\n "])), theme.colors.white, theme.getColor('black', 15), size === 'custom' && customSize ? customSize.width || 'auto' : widths[size], size === 'custom' && customSize ? customSize.height || 'auto' : heights[size], Header$5, inverted ? theme.isDarkColor(color) : theme.colors[color], inverted ? theme.colors[color] : theme.isDarkColor(color));
17759
+ return css(_templateObject10$b || (_templateObject10$b = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n box-shadow: 0 0 21px 7px ", ";\n\n width: ", ";\n\n height: ", ";\n\n ", " {\n background-color: ", ";\n color: ", ";\n }\n "])), theme.colors.white, theme.getColor('black', 15), size === 'custom' && customSize ? customSize.width || 'auto' : widths[size], size === 'custom' && customSize ? customSize.height || 'auto' : heights[size], Header$5, inverted ? theme.isDarkColor(color) : theme.colors[color], inverted ? theme.colors[color] : theme.isDarkColor(color));
17736
17760
  });
17737
17761
 
17738
17762
  var _excluded$2 = ["children"];
@@ -17929,7 +17953,7 @@ var Modal$1 = Object.assign(Modal, {
17929
17953
  Audit: Audit
17930
17954
  });
17931
17955
 
17932
- var _templateObject$K, _templateObject2$x, _templateObject3$r, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$e, _templateObject10$b, _templateObject11$7;
17956
+ var _templateObject$K, _templateObject2$x, _templateObject3$r, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$e, _templateObject10$c, _templateObject11$7;
17933
17957
  var Container$c = styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
17934
17958
  var Header$6 = styled.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
17935
17959
  var HeaderImage = styled.div(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
@@ -17944,7 +17968,7 @@ var HeaderLine = styled.div(_templateObject6$g || (_templateObject6$g = _taggedT
17944
17968
  }, function (props) {
17945
17969
  return props.size === 'medium' && css(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
17946
17970
  }, function (props) {
17947
- return props.size === 'large' && css(_templateObject10$b || (_templateObject10$b = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
17971
+ return props.size === 'large' && css(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
17948
17972
  });
17949
17973
  var MainLine = styled(HeaderLine)(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
17950
17974
 
@@ -18215,7 +18239,7 @@ var Template6 = function Template6(props) {
18215
18239
  })));
18216
18240
  };
18217
18241
 
18218
- var _templateObject$R, _templateObject2$E, _templateObject3$y, _templateObject4$r, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$h, _templateObject10$c;
18242
+ var _templateObject$R, _templateObject2$E, _templateObject3$y, _templateObject4$r, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$h, _templateObject10$d;
18219
18243
  var Container$i = styled.div(_templateObject$R || (_templateObject$R = _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"])));
18220
18244
  var Header$9 = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18221
18245
  var HeaderLine$6 = styled.div(_templateObject3$y || (_templateObject3$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) {
@@ -18237,7 +18261,7 @@ var CustomLine$3 = styled(HeaderLine$6)(_templateObject8$j || (_templateObject8$
18237
18261
  return props.color;
18238
18262
  });
18239
18263
  var Main$2 = styled.div(_templateObject9$h || (_templateObject9$h = _taggedTemplateLiteralLoose(["\n margin: 10px 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-evenly;\n"])));
18240
- var Circle$1 = styled.div(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 30px;\n height: 30px;\n background-color: #ebebeb;\n border-radius: 50%;\n margin: 0 16px;\n"])));
18264
+ var Circle$1 = styled.div(_templateObject10$d || (_templateObject10$d = _taggedTemplateLiteralLoose(["\n width: 30px;\n height: 30px;\n background-color: #ebebeb;\n border-radius: 50%;\n margin: 0 16px;\n"])));
18241
18265
 
18242
18266
  var Template7 = function Template7(props) {
18243
18267
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -18292,7 +18316,7 @@ var Template8 = function Template8(props) {
18292
18316
  })));
18293
18317
  };
18294
18318
 
18295
- var _templateObject$T, _templateObject2$G, _templateObject3$A, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$j, _templateObject10$d;
18319
+ var _templateObject$T, _templateObject2$G, _templateObject3$A, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$j, _templateObject10$e;
18296
18320
  var Container$k = styled.div(_templateObject$T || (_templateObject$T = _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"])));
18297
18321
  var Header$b = styled.div(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18298
18322
  var HeaderLine$8 = styled.div(_templateObject3$A || (_templateObject3$A = _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) {
@@ -18314,7 +18338,7 @@ var CustomLine$5 = styled(HeaderLine$8)(_templateObject8$l || (_templateObject8$
18314
18338
  return props.color;
18315
18339
  });
18316
18340
  var Main$4 = styled.div(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n padding: 14px;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
18317
- var Circle$2 = styled.div(_templateObject10$d || (_templateObject10$d = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
18341
+ var Circle$2 = styled.div(_templateObject10$e || (_templateObject10$e = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
18318
18342
 
18319
18343
  var Template8$1 = function Template8(props) {
18320
18344
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -18331,7 +18355,7 @@ var Template8$1 = function Template8(props) {
18331
18355
  })), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
18332
18356
  };
18333
18357
 
18334
- var _templateObject$U, _templateObject2$H, _templateObject3$B, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$k, _templateObject10$e, _templateObject11$8;
18358
+ var _templateObject$U, _templateObject2$H, _templateObject3$B, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$k, _templateObject10$f, _templateObject11$8;
18335
18359
  var Container$l = styled.div(_templateObject$U || (_templateObject$U = _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"])));
18336
18360
  var Header$c = styled.div(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18337
18361
  var HeaderLine$9 = styled.div(_templateObject3$B || (_templateObject3$B = _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) {
@@ -18353,7 +18377,7 @@ var CustomLine$6 = styled(HeaderLine$9)(_templateObject8$m || (_templateObject8$
18353
18377
  return props.color;
18354
18378
  });
18355
18379
  var GraphLine = styled(CustomLine$6)(_templateObject9$k || (_templateObject9$k = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
18356
- var Main$5 = styled.div(_templateObject10$e || (_templateObject10$e = _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"])));
18380
+ var Main$5 = styled.div(_templateObject10$f || (_templateObject10$f = _taggedTemplateLiteralLoose(["\n flex: 1;\n padding: 0 7px 72px 7px;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: center;\n"])));
18357
18381
  var Circle$3 = styled.div(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
18358
18382
 
18359
18383
  var Template10 = function Template10(props) {