@mw-kit/mw-ui 1.7.25 → 1.7.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Calendar/components/Basic/interfaces.d.ts +2 -2
- package/dist/components/Filters/Filters/components/Submenu/components/Header/interfaces.d.ts +2 -2
- package/dist/components/Filters/Filters/interfaces.d.ts +2 -2
- package/dist/components/Filters/interfaces.d.ts +3 -3
- package/dist/components/Input/components/Checkbox/interfaces.d.ts +4 -2
- package/dist/components/Input/components/DatePicker/interfaces.d.ts +1 -1
- package/dist/components/Input/components/Input/interfaces.d.ts +6 -2
- package/dist/components/Input/components/Input/styles.d.ts +5 -0
- package/dist/components/Input/components/RadioButton/interfaces.d.ts +2 -2
- package/dist/components/Input/components/Range/interfaces.d.ts +5 -5
- package/dist/components/Input/components/Select/hooks/Select/interfaces.d.ts +3 -2
- package/dist/components/Input/components/Select/hooks/SelectMultiple/components/Label/index.d.ts +7 -0
- package/dist/components/Input/components/Select/hooks/SelectMultiple/interfaces.d.ts +4 -4
- package/dist/components/Input/components/Select/hooks/interfaces.d.ts +17 -26
- package/dist/components/Input/components/Switch/interfaces.d.ts +5 -5
- package/dist/components/Input/components/Tags/interfaces.d.ts +2 -2
- package/dist/components/Menu/interfaces.d.ts +14 -14
- package/dist/components/ScrollContainer/interfaces.d.ts +4 -4
- package/dist/index.js +343 -317
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +343 -317
- package/dist/index.modern.js.map +1 -1
- package/dist/interfaces.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -12110,43 +12110,73 @@ var getMask = function getMask(mask) {
|
|
|
12110
12110
|
};
|
|
12111
12111
|
};
|
|
12112
12112
|
|
|
12113
|
-
var _templateObject$4
|
|
12114
|
-
var
|
|
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
|
|
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.
|
|
12159
|
+
return invalid ? theme.colors.warningRed : theme.colors.darkBlue;
|
|
12131
12160
|
}, function (_ref5) {
|
|
12132
|
-
var
|
|
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(
|
|
12136
|
-
var 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(
|
|
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(
|
|
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(
|
|
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(
|
|
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 (!
|
|
12170
|
-
return css(
|
|
12199
|
+
if (readOnly || !onClick || disabled) return;
|
|
12200
|
+
return css(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12171
12201
|
});
|
|
12172
|
-
var
|
|
12173
|
-
var
|
|
12174
|
-
return
|
|
12175
|
-
}
|
|
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.
|
|
12208
|
+
return theme.useTypography('p');
|
|
12178
12209
|
}, function (_ref15) {
|
|
12179
|
-
var
|
|
12180
|
-
return
|
|
12210
|
+
var theme = _ref15.theme;
|
|
12211
|
+
return theme.colors.greyishBlue;
|
|
12181
12212
|
}, function (_ref16) {
|
|
12182
|
-
var
|
|
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(
|
|
12185
|
-
}, IconContainer, function (
|
|
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(
|
|
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(
|
|
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(
|
|
12205
|
-
var 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 (
|
|
12208
|
-
var required =
|
|
12247
|
+
}, function (_ref22) {
|
|
12248
|
+
var required = _ref22.required;
|
|
12209
12249
|
if (!required) return;
|
|
12210
|
-
return css(
|
|
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
|
-
|
|
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
|
|
12236
|
-
var
|
|
12237
|
-
var
|
|
12238
|
-
var
|
|
12239
|
-
var
|
|
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(
|
|
12396
|
+
}, label), React__default.createElement(InputContainer, {
|
|
12397
|
+
width: props.inputWidth
|
|
12398
|
+
}, React__default.createElement(Input, Object.assign({}, inputProps, {
|
|
12360
12399
|
ref: ref
|
|
12361
|
-
})),
|
|
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$
|
|
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$
|
|
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(
|
|
12457
|
-
var 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 (
|
|
12460
|
-
var required =
|
|
12503
|
+
}, function (_ref14) {
|
|
12504
|
+
var required = _ref14.required;
|
|
12461
12505
|
if (!required) return;
|
|
12462
|
-
return css(
|
|
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$
|
|
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
|
|
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 (
|
|
12649
|
-
var border =
|
|
12650
|
-
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 (
|
|
12663
|
-
var 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 (
|
|
12667
|
-
var 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 (
|
|
12677
|
-
var 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 (
|
|
12680
|
-
var 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$
|
|
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
|
|
12748
|
-
|
|
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
|
-
},
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
-
|
|
14301
|
-
|
|
14302
|
-
|
|
14303
|
-
|
|
14304
|
-
}
|
|
14305
|
-
|
|
14306
|
-
|
|
14307
|
-
|
|
14308
|
-
|
|
14309
|
-
|
|
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
|
-
|
|
14313
|
-
|
|
14314
|
-
props.setValue(value === props.value ? '' : value, option);
|
|
14339
|
+
data: data,
|
|
14340
|
+
disabled: disabled
|
|
14341
|
+
}));
|
|
14315
14342
|
},
|
|
14316
|
-
|
|
14317
|
-
|
|
14318
|
-
|
|
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:
|
|
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
|
|
14359
|
+
var getSelected = function getSelected(value, options) {
|
|
14329
14360
|
var selectedIndex = options.findIndex(function (option) {
|
|
14330
14361
|
return option.value === value;
|
|
14331
14362
|
});
|
|
14332
|
-
|
|
14333
|
-
|
|
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
|
|
|
14346
|
-
|
|
14388
|
+
var selectedOption = getSelected(props.value, options);
|
|
14389
|
+
var inputContent = selectedOption ? getInputContent(props, selectedOption) : props.value;
|
|
14390
|
+
var parsed = {
|
|
14347
14391
|
parsedOptions: parsedOptions,
|
|
14348
14392
|
options: [options, setOptions],
|
|
14349
|
-
|
|
14350
|
-
value: inputValue
|
|
14351
|
-
},
|
|
14393
|
+
inputContent: inputContent,
|
|
14352
14394
|
onReset: onReset,
|
|
14353
14395
|
menu: {
|
|
14354
14396
|
itemSpacing: 's3',
|
|
@@ -14364,6 +14406,11 @@ var useSelect = function useSelect(props) {
|
|
|
14364
14406
|
}, children);
|
|
14365
14407
|
}
|
|
14366
14408
|
};
|
|
14409
|
+
var onClear = props.onClear;
|
|
14410
|
+
if (onClear) parsed.onClear = function () {
|
|
14411
|
+
return onClear('');
|
|
14412
|
+
};
|
|
14413
|
+
return parsed;
|
|
14367
14414
|
};
|
|
14368
14415
|
|
|
14369
14416
|
var Provider$1 = React__default.createContext({});
|
|
@@ -14379,9 +14426,7 @@ var Footer$1 = function Footer() {
|
|
|
14379
14426
|
setOpen = context.setOpen;
|
|
14380
14427
|
|
|
14381
14428
|
var onClick = function onClick() {
|
|
14382
|
-
setValue(
|
|
14383
|
-
return c.value;
|
|
14384
|
-
}), [].concat(checked));
|
|
14429
|
+
setValue([].concat(checked));
|
|
14385
14430
|
setOpen(false);
|
|
14386
14431
|
};
|
|
14387
14432
|
|
|
@@ -14451,7 +14496,9 @@ var Header$2 = function Header() {
|
|
|
14451
14496
|
|
|
14452
14497
|
var onClick = function onClick() {
|
|
14453
14498
|
setChecked(function (prev) {
|
|
14454
|
-
return prev.length === options.length ? [] :
|
|
14499
|
+
return prev.length === options.length ? [] : options.map(function (o) {
|
|
14500
|
+
return o.value;
|
|
14501
|
+
});
|
|
14455
14502
|
});
|
|
14456
14503
|
};
|
|
14457
14504
|
|
|
@@ -14476,128 +14523,95 @@ var Header$2 = function Header() {
|
|
|
14476
14523
|
}));
|
|
14477
14524
|
};
|
|
14478
14525
|
|
|
14479
|
-
var
|
|
14526
|
+
var Label$2 = function Label(props) {
|
|
14527
|
+
var context = useContext$1();
|
|
14528
|
+
var _context$checked = context.checked,
|
|
14529
|
+
checked = _context$checked[0],
|
|
14530
|
+
setChecked = _context$checked[1];
|
|
14531
|
+
var _props$option$data = props.option.data,
|
|
14532
|
+
disabled = _props$option$data.disabled,
|
|
14533
|
+
value = _props$option$data.value;
|
|
14534
|
+
var LabelComponent = props.label;
|
|
14535
|
+
return React__default.createElement(Checkbox, {
|
|
14536
|
+
type: 'checkbox',
|
|
14537
|
+
checked: checked.findIndex(function (e) {
|
|
14538
|
+
return e === value;
|
|
14539
|
+
}) !== -1,
|
|
14540
|
+
label: typeof LabelComponent !== 'function' ? LabelComponent : React__default.createElement(LabelComponent, Object.assign({}, props.option)),
|
|
14541
|
+
disabled: disabled,
|
|
14542
|
+
onChange: function onChange(event) {
|
|
14543
|
+
var isChecked = event.target.checked;
|
|
14544
|
+
setChecked(function (prev) {
|
|
14545
|
+
var newState = prev.filter(function (v) {
|
|
14546
|
+
return v !== value;
|
|
14547
|
+
});
|
|
14548
|
+
if (isChecked) newState.push(value);
|
|
14549
|
+
return newState;
|
|
14550
|
+
});
|
|
14551
|
+
},
|
|
14552
|
+
padding: {
|
|
14553
|
+
top: 's3',
|
|
14554
|
+
left: 's3',
|
|
14555
|
+
right: 's3',
|
|
14556
|
+
bottom: 's3'
|
|
14557
|
+
},
|
|
14558
|
+
width: '100%'
|
|
14559
|
+
});
|
|
14560
|
+
};
|
|
14561
|
+
|
|
14562
|
+
var getOptions$1 = function getOptions(options) {
|
|
14480
14563
|
return options.map(function (option) {
|
|
14481
|
-
var
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
label: {
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
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
|
-
})
|
|
14564
|
+
var _label = option.label,
|
|
14565
|
+
value = option.value,
|
|
14566
|
+
onClick = option.onClick;
|
|
14567
|
+
var data = {
|
|
14568
|
+
data: option.data,
|
|
14569
|
+
value: value
|
|
14570
|
+
};
|
|
14571
|
+
var parsed = {
|
|
14572
|
+
label: function label(option) {
|
|
14573
|
+
return React__default.createElement(Label$2, {
|
|
14574
|
+
option: _extends({}, data, {
|
|
14575
|
+
disabled: option.disabled
|
|
14576
|
+
}),
|
|
14577
|
+
label: _label
|
|
14578
|
+
});
|
|
14515
14579
|
},
|
|
14516
|
-
onClick: onClick
|
|
14517
|
-
onClick(index, {
|
|
14518
|
-
label: label,
|
|
14519
|
-
value: value,
|
|
14520
|
-
data: data
|
|
14521
|
-
}, event);
|
|
14522
|
-
} : undefined,
|
|
14580
|
+
onClick: onClick,
|
|
14523
14581
|
data: data,
|
|
14524
14582
|
disabled: option.disabled,
|
|
14525
14583
|
rules: option.rules,
|
|
14526
14584
|
keepOpen: true
|
|
14527
14585
|
};
|
|
14586
|
+
return parsed;
|
|
14528
14587
|
});
|
|
14529
14588
|
};
|
|
14530
14589
|
|
|
14531
|
-
var
|
|
14590
|
+
var getInputContent$1 = function getInputContent(value) {
|
|
14532
14591
|
if (value.length < 1) return '';
|
|
14533
14592
|
return value.length > 1 ? "H\xE1 " + value.length + " sele\xE7\xF5es" : "H\xE1 " + value.length + " sele\xE7\xE3o";
|
|
14534
14593
|
};
|
|
14535
14594
|
|
|
14536
14595
|
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
14596
|
var _useState = useState([]),
|
|
14548
14597
|
options = _useState[0],
|
|
14549
14598
|
setOptions = _useState[1];
|
|
14550
14599
|
|
|
14551
|
-
var _useState2 = useState(
|
|
14552
|
-
|
|
14553
|
-
|
|
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
|
-
};
|
|
14600
|
+
var _useState2 = useState([].concat(props.value)),
|
|
14601
|
+
checked = _useState2[0],
|
|
14602
|
+
setChecked = _useState2[1];
|
|
14573
14603
|
|
|
14574
|
-
|
|
14575
|
-
|
|
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);
|
|
14604
|
+
var parsedOptions = getOptions$1(options);
|
|
14605
|
+
var inputContent = getInputContent$1(props.value);
|
|
14590
14606
|
|
|
14591
14607
|
var onReset = function onReset() {
|
|
14592
|
-
setChecked([].concat(
|
|
14608
|
+
setChecked([].concat(props.value));
|
|
14593
14609
|
};
|
|
14594
14610
|
|
|
14595
14611
|
var returnData = {
|
|
14596
14612
|
parsedOptions: parsedOptions,
|
|
14597
14613
|
options: [options, setOptions],
|
|
14598
|
-
|
|
14599
|
-
value: inputValue
|
|
14600
|
-
},
|
|
14614
|
+
inputContent: inputContent,
|
|
14601
14615
|
onReset: onReset,
|
|
14602
14616
|
menu: {
|
|
14603
14617
|
itemSpacing: undefined,
|
|
@@ -14613,6 +14627,9 @@ var useSelectMultiple = function useSelectMultiple(props) {
|
|
|
14613
14627
|
checked: [checked, setChecked]
|
|
14614
14628
|
})
|
|
14615
14629
|
}, children);
|
|
14630
|
+
},
|
|
14631
|
+
onClear: function onClear() {
|
|
14632
|
+
return props.setValue([]);
|
|
14616
14633
|
}
|
|
14617
14634
|
};
|
|
14618
14635
|
return returnData;
|
|
@@ -14630,12 +14647,13 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14630
14647
|
|
|
14631
14648
|
var _ref = props.type === 'select-multiple' ? useSelectMultiple(props) : useSelect(props),
|
|
14632
14649
|
parsedOptions = _ref.parsedOptions,
|
|
14633
|
-
|
|
14650
|
+
inputContent = _ref.inputContent,
|
|
14634
14651
|
_ref$options = _ref.options,
|
|
14635
14652
|
setOptions = _ref$options[1],
|
|
14636
14653
|
onReset = _ref.onReset,
|
|
14637
14654
|
menuProps = _ref.menu,
|
|
14638
|
-
getContext = _ref.getContext
|
|
14655
|
+
getContext = _ref.getContext,
|
|
14656
|
+
onClear = _ref.onClear;
|
|
14639
14657
|
|
|
14640
14658
|
var _useState = useState(false),
|
|
14641
14659
|
_loading = _useState[0],
|
|
@@ -14669,9 +14687,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14669
14687
|
setPage(1);
|
|
14670
14688
|
};
|
|
14671
14689
|
|
|
14672
|
-
var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value']
|
|
14673
|
-
value: inputValue
|
|
14674
|
-
});
|
|
14690
|
+
var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value']);
|
|
14675
14691
|
|
|
14676
14692
|
var _onScrollEnd = props.onScrollEnd || function () {};
|
|
14677
14693
|
|
|
@@ -14756,7 +14772,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14756
14772
|
width: props.width
|
|
14757
14773
|
}, React__default.createElement(Input$1, Object.assign({}, inputProps, {
|
|
14758
14774
|
type: 'search',
|
|
14759
|
-
|
|
14775
|
+
htmlReadOnly: true,
|
|
14760
14776
|
onClick: onClick,
|
|
14761
14777
|
loading: loading,
|
|
14762
14778
|
icon: {
|
|
@@ -14768,7 +14784,10 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14768
14784
|
},
|
|
14769
14785
|
onClick: onClick
|
|
14770
14786
|
},
|
|
14771
|
-
ref: ref
|
|
14787
|
+
ref: ref,
|
|
14788
|
+
clearable: props.value.length > 0 ? onClear : undefined,
|
|
14789
|
+
placeholder: props.value.length === 0 ? props.placeholder : undefined,
|
|
14790
|
+
children: inputContent
|
|
14772
14791
|
})), React__default.createElement(Menu, Object.assign({}, menuProps, {
|
|
14773
14792
|
open: open,
|
|
14774
14793
|
close: function close() {
|
|
@@ -14776,7 +14795,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14776
14795
|
},
|
|
14777
14796
|
options: parsedOptions,
|
|
14778
14797
|
onScrollEnd: onScrollEnd,
|
|
14779
|
-
width: '100%',
|
|
14798
|
+
width: props.inputWidth || '100%',
|
|
14780
14799
|
bordered: true,
|
|
14781
14800
|
position: position,
|
|
14782
14801
|
references: {
|
|
@@ -15039,7 +15058,7 @@ var countries = {
|
|
|
15039
15058
|
var _templateObject$n, _templateObject2$i, _templateObject3$d;
|
|
15040
15059
|
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
15060
|
var RelativeContainer$3 = styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
|
|
15042
|
-
var Label$
|
|
15061
|
+
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
15062
|
var theme = _ref.theme;
|
|
15044
15063
|
return theme.useTypography('p');
|
|
15045
15064
|
}, function (_ref2) {
|
|
@@ -15118,15 +15137,16 @@ var Component = React__default.forwardRef(function (props, ref) {
|
|
|
15118
15137
|
|
|
15119
15138
|
var options = Object.keys(countries).map(function (iso) {
|
|
15120
15139
|
return {
|
|
15121
|
-
label: {
|
|
15122
|
-
|
|
15123
|
-
|
|
15140
|
+
label: function label(option) {
|
|
15141
|
+
var country = option.data;
|
|
15142
|
+
return React__default.createElement(Label$3, null, React__default.createElement(Flag, {
|
|
15124
15143
|
iso: iso
|
|
15125
|
-
}),
|
|
15144
|
+
}), country.name, React__default.createElement("span", null, "+", country.ddi));
|
|
15126
15145
|
},
|
|
15127
15146
|
onClick: function onClick() {
|
|
15128
15147
|
setCountry(countries[iso]);
|
|
15129
|
-
}
|
|
15148
|
+
},
|
|
15149
|
+
data: countries[iso]
|
|
15130
15150
|
};
|
|
15131
15151
|
});
|
|
15132
15152
|
|
|
@@ -15370,7 +15390,7 @@ var LabelContainer$3 = styled.div(_templateObject$p || (_templateObject$p = _tag
|
|
|
15370
15390
|
if (!required) return;
|
|
15371
15391
|
return css(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n :after {\n content: '*';\n }\n "])));
|
|
15372
15392
|
});
|
|
15373
|
-
var Label$
|
|
15393
|
+
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
15394
|
var theme = _ref3.theme;
|
|
15375
15395
|
return theme.spacings.s1;
|
|
15376
15396
|
}, function (_ref4) {
|
|
@@ -15433,7 +15453,7 @@ var Switch = function Switch(props) {
|
|
|
15433
15453
|
};
|
|
15434
15454
|
var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'htmlDisabled', 'labelProps']);
|
|
15435
15455
|
htmlProps.disabled = props.disabled || props.htmlDisabled;
|
|
15436
|
-
return React__default.createElement(Label$
|
|
15456
|
+
return React__default.createElement(Label$4, Object.assign({}, props.labelProps || {}, {
|
|
15437
15457
|
disabled: disabled ? 1 : 0,
|
|
15438
15458
|
invalid: invalid ? 1 : 0
|
|
15439
15459
|
}), label.label && React__default.createElement(LabelContainer$3, {
|
|
@@ -15443,7 +15463,7 @@ var Switch = function Switch(props) {
|
|
|
15443
15463
|
})), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
|
|
15444
15464
|
};
|
|
15445
15465
|
|
|
15446
|
-
var _templateObject$q, _templateObject2$l, _templateObject3$g, _templateObject4$d, _templateObject5$b, _templateObject6$9, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject10$
|
|
15466
|
+
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
15467
|
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
15468
|
var theme = _ref.theme;
|
|
15449
15469
|
return theme.spacings.s4;
|
|
@@ -15458,7 +15478,7 @@ var bullet = css(_templateObject$q || (_templateObject$q = _taggedTemplateLitera
|
|
|
15458
15478
|
return theme.getColor('black', 10);
|
|
15459
15479
|
});
|
|
15460
15480
|
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$
|
|
15481
|
+
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
15482
|
var theme = _ref5.theme;
|
|
15463
15483
|
return theme.useTypography('p');
|
|
15464
15484
|
}, function (_ref6) {
|
|
@@ -15476,7 +15496,7 @@ var Label$4 = styled.label(_templateObject3$g || (_templateObject3$g = _taggedTe
|
|
|
15476
15496
|
if (!required) return;
|
|
15477
15497
|
return css(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
15478
15498
|
});
|
|
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) {
|
|
15499
|
+
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
15500
|
var theme = _ref10.theme,
|
|
15481
15501
|
invalid = _ref10.invalid;
|
|
15482
15502
|
|
|
@@ -15487,14 +15507,14 @@ var InputContainer = styled.div(_templateObject6$9 || (_templateObject6$9 = _tag
|
|
|
15487
15507
|
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
15508
|
});
|
|
15489
15509
|
var MinMaxLabelContainer = styled.div(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
|
|
15490
|
-
var LabelsContainer = styled.div(_templateObject10$
|
|
15510
|
+
var LabelsContainer = styled.div(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
|
|
15491
15511
|
var position = _ref11.position;
|
|
15492
15512
|
|
|
15493
15513
|
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);
|
|
15514
|
+
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
15515
|
}
|
|
15496
15516
|
|
|
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);
|
|
15517
|
+
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
15518
|
});
|
|
15499
15519
|
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
15520
|
var theme = _ref12.theme;
|
|
@@ -15511,7 +15531,7 @@ var Marker = styled.div(_templateObject15$1 || (_templateObject15$1 = _taggedTem
|
|
|
15511
15531
|
var bullet = _ref15.bullet,
|
|
15512
15532
|
theme = _ref15.theme;
|
|
15513
15533
|
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));
|
|
15534
|
+
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
15535
|
});
|
|
15516
15536
|
|
|
15517
15537
|
var getMarkers = function getMarkers(props) {
|
|
@@ -15629,13 +15649,13 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15629
15649
|
onChange: onChange,
|
|
15630
15650
|
value: value
|
|
15631
15651
|
});
|
|
15632
|
-
return React__default.createElement(Label$
|
|
15652
|
+
return React__default.createElement(Label$5, {
|
|
15633
15653
|
required: required ? 1 : 0,
|
|
15634
15654
|
disabled: disabled ? 1 : 0,
|
|
15635
15655
|
width: width
|
|
15636
15656
|
}, React__default.createElement("div", null, label), React__default.createElement(LabelsContainer, {
|
|
15637
15657
|
position: position
|
|
15638
|
-
}, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer, {
|
|
15658
|
+
}, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer$1, {
|
|
15639
15659
|
invalid: invalid ? 1 : 0
|
|
15640
15660
|
}, markers.length > 0 && React__default.createElement(MarkersContainer, null, markers.map(function (marker, index) {
|
|
15641
15661
|
var z = markers.length - 2;
|
|
@@ -15667,7 +15687,7 @@ var LabelContainer$4 = styled.div(_templateObject$r || (_templateObject$r = _tag
|
|
|
15667
15687
|
var theme = _ref.theme;
|
|
15668
15688
|
return theme.useTypography('p');
|
|
15669
15689
|
});
|
|
15670
|
-
var Label$
|
|
15690
|
+
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
15691
|
var theme = _ref2.theme;
|
|
15672
15692
|
return theme.spacings.s1;
|
|
15673
15693
|
}, function (_ref3) {
|
|
@@ -15713,7 +15733,7 @@ var RadioButton = function RadioButton(props) {
|
|
|
15713
15733
|
required = props.required,
|
|
15714
15734
|
invalid = props.invalid;
|
|
15715
15735
|
var htmlProps = filterObject(props, ['label', 'invalid', 'required']);
|
|
15716
|
-
return React__default.createElement(Label$
|
|
15736
|
+
return React__default.createElement(Label$6, {
|
|
15717
15737
|
disabled: disabled ? 1 : 0,
|
|
15718
15738
|
required: required ? 1 : 0,
|
|
15719
15739
|
invalid: invalid ? 1 : 0
|
|
@@ -15905,7 +15925,7 @@ var parse = function parse(value) {
|
|
|
15905
15925
|
});
|
|
15906
15926
|
};
|
|
15907
15927
|
|
|
15908
|
-
var _templateObject$s, _templateObject2$n, _templateObject3$i, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject10$
|
|
15928
|
+
var _templateObject$s, _templateObject2$n, _templateObject3$i, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject10$7, _templateObject11$5;
|
|
15909
15929
|
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
15930
|
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
15931
|
var theme = _ref.theme;
|
|
@@ -15948,7 +15968,7 @@ var Button$4 = styled.button(_templateObject8$9 || (_templateObject8$9 = _tagged
|
|
|
15948
15968
|
if (!onClick) return;
|
|
15949
15969
|
return css(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15950
15970
|
});
|
|
15951
|
-
var LabelText$1 = styled.label(_templateObject10$
|
|
15971
|
+
var LabelText$1 = styled.label(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref10) {
|
|
15952
15972
|
var theme = _ref10.theme;
|
|
15953
15973
|
return theme.spacings.s1;
|
|
15954
15974
|
}, function (_ref11) {
|
|
@@ -16111,22 +16131,26 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16111
16131
|
label: 'Hoje',
|
|
16112
16132
|
onClick: function onClick() {
|
|
16113
16133
|
return setValue(intervalTypes.day.initial(props.min));
|
|
16114
|
-
}
|
|
16134
|
+
},
|
|
16135
|
+
data: {}
|
|
16115
16136
|
}, {
|
|
16116
16137
|
label: 'Semana',
|
|
16117
16138
|
onClick: function onClick() {
|
|
16118
16139
|
return setValue(intervalTypes.week.initial(props.min));
|
|
16119
|
-
}
|
|
16140
|
+
},
|
|
16141
|
+
data: {}
|
|
16120
16142
|
}, {
|
|
16121
16143
|
label: 'Mês',
|
|
16122
16144
|
onClick: function onClick() {
|
|
16123
16145
|
return setValue(intervalTypes.month.initial(props.min));
|
|
16124
|
-
}
|
|
16146
|
+
},
|
|
16147
|
+
data: {}
|
|
16125
16148
|
}, {
|
|
16126
16149
|
label: 'Personalizado',
|
|
16127
16150
|
onClick: function onClick() {
|
|
16128
16151
|
return setOpen('calendar');
|
|
16129
16152
|
},
|
|
16153
|
+
data: {},
|
|
16130
16154
|
keepOpen: true,
|
|
16131
16155
|
caret: true
|
|
16132
16156
|
}],
|
|
@@ -16234,7 +16258,7 @@ var Input$4 = React__default.forwardRef(function (props, ref) {
|
|
|
16234
16258
|
Input$4.displayName = 'Input';
|
|
16235
16259
|
|
|
16236
16260
|
var _templateObject$u, _templateObject2$o;
|
|
16237
|
-
var Label$
|
|
16261
|
+
var Label$7 = styled.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
|
|
16238
16262
|
var theme = _ref.theme;
|
|
16239
16263
|
return theme.spacings.s1;
|
|
16240
16264
|
}, function (_ref2) {
|
|
@@ -16243,8 +16267,8 @@ var Label$6 = styled.div(_templateObject$u || (_templateObject$u = _taggedTempla
|
|
|
16243
16267
|
return css(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
16244
16268
|
});
|
|
16245
16269
|
|
|
16246
|
-
var Label$
|
|
16247
|
-
return props.children ? React__default.createElement(Label$
|
|
16270
|
+
var Label$8 = function Label(props) {
|
|
16271
|
+
return props.children ? React__default.createElement(Label$7, Object.assign({}, props)) : null;
|
|
16248
16272
|
};
|
|
16249
16273
|
|
|
16250
16274
|
var _templateObject$v;
|
|
@@ -16282,7 +16306,7 @@ var Tag$1 = function Tag$1(props) {
|
|
|
16282
16306
|
};
|
|
16283
16307
|
|
|
16284
16308
|
var _templateObject$w, _templateObject2$p, _templateObject3$j;
|
|
16285
|
-
var Label$
|
|
16309
|
+
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
16310
|
var theme = _ref.theme;
|
|
16287
16311
|
return theme.useTypography('p');
|
|
16288
16312
|
}, function (_ref2) {
|
|
@@ -16348,10 +16372,10 @@ var Tags = React__default.forwardRef(function (props, ref) {
|
|
|
16348
16372
|
setValue([].concat(prev));
|
|
16349
16373
|
};
|
|
16350
16374
|
|
|
16351
|
-
return React__default.createElement(Label$
|
|
16375
|
+
return React__default.createElement(Label$9, {
|
|
16352
16376
|
disabled: props.disabled,
|
|
16353
16377
|
width: props.width
|
|
16354
|
-
}, React__default.createElement(Label$
|
|
16378
|
+
}, React__default.createElement(Label$8, {
|
|
16355
16379
|
required: props.required
|
|
16356
16380
|
}, props.label), React__default.createElement(TagContainer, {
|
|
16357
16381
|
invalid: props.invalid
|
|
@@ -16978,7 +17002,7 @@ var AppliedFilters = Object.assign(function (props) {
|
|
|
16978
17002
|
Menu: AppliedFiltersMenu
|
|
16979
17003
|
});
|
|
16980
17004
|
|
|
16981
|
-
var _templateObject$A, _templateObject2$s, _templateObject3$m, _templateObject4$h, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$a, _templateObject10$
|
|
17005
|
+
var _templateObject$A, _templateObject2$s, _templateObject3$m, _templateObject4$h, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$a, _templateObject10$8;
|
|
16982
17006
|
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
17007
|
return props.size === 'mini' && css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
|
|
16984
17008
|
}, function (props) {
|
|
@@ -16996,7 +17020,7 @@ var Container$9 = styled.div(_templateObject$A || (_templateObject$A = _taggedTe
|
|
|
16996
17020
|
}, function (props) {
|
|
16997
17021
|
return props.borderType === 'danger' && css(_templateObject9$a || (_templateObject9$a = _taggedTemplateLiteralLoose(["\n border-left-color: #e23851;\n "])));
|
|
16998
17022
|
}, function (props) {
|
|
16999
|
-
return props.borderType === 'none' && css(_templateObject10$
|
|
17023
|
+
return props.borderType === 'none' && css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n border: 1px solid #d4d4d5;\n "])));
|
|
17000
17024
|
});
|
|
17001
17025
|
|
|
17002
17026
|
var _excluded$1 = ["children"];
|
|
@@ -17276,8 +17300,9 @@ var Submenu = function Submenu(props) {
|
|
|
17276
17300
|
|
|
17277
17301
|
var optionsParser = function optionsParser(option) {
|
|
17278
17302
|
return {
|
|
17279
|
-
label: option.label,
|
|
17280
|
-
onClick: onClickOption
|
|
17303
|
+
label: typeof option.label === 'string' ? option.label : option.label.element,
|
|
17304
|
+
onClick: onClickOption,
|
|
17305
|
+
data: {}
|
|
17281
17306
|
};
|
|
17282
17307
|
};
|
|
17283
17308
|
|
|
@@ -17339,7 +17364,7 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
17339
17364
|
|
|
17340
17365
|
var items = props.items.map(function (item) {
|
|
17341
17366
|
return {
|
|
17342
|
-
label: item.label,
|
|
17367
|
+
label: typeof item.label === 'string' ? item.label : item.label.element,
|
|
17343
17368
|
delimiter: item.delimiter,
|
|
17344
17369
|
keepOpen: true,
|
|
17345
17370
|
caret: true,
|
|
@@ -17347,7 +17372,8 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
17347
17372
|
setActive(function (prev) {
|
|
17348
17373
|
return prev === index ? -1 : index;
|
|
17349
17374
|
});
|
|
17350
|
-
}
|
|
17375
|
+
},
|
|
17376
|
+
data: {}
|
|
17351
17377
|
};
|
|
17352
17378
|
});
|
|
17353
17379
|
var selected = active >= 0 && active < props.items.length ? props.items[active] : undefined;
|
|
@@ -17412,7 +17438,7 @@ var useContext$2 = function useContext() {
|
|
|
17412
17438
|
return React__default.useContext(Provider$2);
|
|
17413
17439
|
};
|
|
17414
17440
|
|
|
17415
|
-
var _templateObject$D, _templateObject2$t, _templateObject3$n, _templateObject4$i, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$b, _templateObject10$
|
|
17441
|
+
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
17442
|
var aligns = {
|
|
17417
17443
|
self: {
|
|
17418
17444
|
horizontal: {
|
|
@@ -17495,7 +17521,7 @@ var Col = styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLi
|
|
|
17495
17521
|
|
|
17496
17522
|
if (align.text !== undefined) {
|
|
17497
17523
|
var _v4 = align.text;
|
|
17498
|
-
styles.push(css(_templateObject10$
|
|
17524
|
+
styles.push(css(_templateObject10$9 || (_templateObject10$9 = _taggedTemplateLiteralLoose(["\n text-align: ", ";\n "])), _v4));
|
|
17499
17525
|
}
|
|
17500
17526
|
|
|
17501
17527
|
return styles;
|
|
@@ -17571,7 +17597,7 @@ var Grid$1 = function Grid$1(props) {
|
|
|
17571
17597
|
}, React__default.createElement(Grid, Object.assign({}, gridProps)));
|
|
17572
17598
|
};
|
|
17573
17599
|
|
|
17574
|
-
var _templateObject$F, _templateObject2$v, _templateObject3$p, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$c, _templateObject10$
|
|
17600
|
+
var _templateObject$F, _templateObject2$v, _templateObject3$p, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$c, _templateObject10$a;
|
|
17575
17601
|
var horizontalAligns = {
|
|
17576
17602
|
around: 'space-around',
|
|
17577
17603
|
between: 'space-between',
|
|
@@ -17646,7 +17672,7 @@ var Row = styled.div(_templateObject$F || (_templateObject$F = _taggedTemplateLi
|
|
|
17646
17672
|
if (!hover) return;
|
|
17647
17673
|
var h = hover === true ? ['lightGrey', 50] : hover;
|
|
17648
17674
|
var c = Array.isArray(h) ? theme.getColor.apply(theme, h) : theme.colors[h];
|
|
17649
|
-
return css(_templateObject10$
|
|
17675
|
+
return css(_templateObject10$a || (_templateObject10$a = _taggedTemplateLiteralLoose(["\n :hover {\n background-color: ", ";\n }\n "])), c);
|
|
17650
17676
|
});
|
|
17651
17677
|
|
|
17652
17678
|
var Row$1 = function Row$1(props) {
|
|
@@ -17699,7 +17725,7 @@ var widths = {
|
|
|
17699
17725
|
default: '642.5px'
|
|
17700
17726
|
};
|
|
17701
17727
|
|
|
17702
|
-
var _templateObject$G, _templateObject2$w, _templateObject3$q, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$d, _templateObject10$
|
|
17728
|
+
var _templateObject$G, _templateObject2$w, _templateObject3$q, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$d, _templateObject10$b;
|
|
17703
17729
|
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
17730
|
var theme = _ref.theme;
|
|
17705
17731
|
return theme.getColor('black', 25);
|
|
@@ -17732,7 +17758,7 @@ var Container$b = styled.div(_templateObject9$d || (_templateObject9$d = _tagged
|
|
|
17732
17758
|
customSize = _ref6.customSize,
|
|
17733
17759
|
color = _ref6.color,
|
|
17734
17760
|
inverted = _ref6.inverted;
|
|
17735
|
-
return css(_templateObject10$
|
|
17761
|
+
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
17762
|
});
|
|
17737
17763
|
|
|
17738
17764
|
var _excluded$2 = ["children"];
|
|
@@ -17929,7 +17955,7 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
17929
17955
|
Audit: Audit
|
|
17930
17956
|
});
|
|
17931
17957
|
|
|
17932
|
-
var _templateObject$K, _templateObject2$x, _templateObject3$r, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$e, _templateObject10$
|
|
17958
|
+
var _templateObject$K, _templateObject2$x, _templateObject3$r, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$e, _templateObject10$c, _templateObject11$7;
|
|
17933
17959
|
var Container$c = styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
17934
17960
|
var Header$6 = styled.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
17935
17961
|
var HeaderImage = styled.div(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -17944,7 +17970,7 @@ var HeaderLine = styled.div(_templateObject6$g || (_templateObject6$g = _taggedT
|
|
|
17944
17970
|
}, function (props) {
|
|
17945
17971
|
return props.size === 'medium' && css(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
17946
17972
|
}, function (props) {
|
|
17947
|
-
return props.size === 'large' && css(_templateObject10$
|
|
17973
|
+
return props.size === 'large' && css(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
17948
17974
|
});
|
|
17949
17975
|
var MainLine = styled(HeaderLine)(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
17950
17976
|
|
|
@@ -18215,7 +18241,7 @@ var Template6 = function Template6(props) {
|
|
|
18215
18241
|
})));
|
|
18216
18242
|
};
|
|
18217
18243
|
|
|
18218
|
-
var _templateObject$R, _templateObject2$E, _templateObject3$y, _templateObject4$r, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$h, _templateObject10$
|
|
18244
|
+
var _templateObject$R, _templateObject2$E, _templateObject3$y, _templateObject4$r, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$h, _templateObject10$d;
|
|
18219
18245
|
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
18246
|
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
18247
|
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 +18263,7 @@ var CustomLine$3 = styled(HeaderLine$6)(_templateObject8$j || (_templateObject8$
|
|
|
18237
18263
|
return props.color;
|
|
18238
18264
|
});
|
|
18239
18265
|
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$
|
|
18266
|
+
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
18267
|
|
|
18242
18268
|
var Template7 = function Template7(props) {
|
|
18243
18269
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18292,7 +18318,7 @@ var Template8 = function Template8(props) {
|
|
|
18292
18318
|
})));
|
|
18293
18319
|
};
|
|
18294
18320
|
|
|
18295
|
-
var _templateObject$T, _templateObject2$G, _templateObject3$A, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$j, _templateObject10$
|
|
18321
|
+
var _templateObject$T, _templateObject2$G, _templateObject3$A, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$j, _templateObject10$e;
|
|
18296
18322
|
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
18323
|
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
18324
|
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 +18340,7 @@ var CustomLine$5 = styled(HeaderLine$8)(_templateObject8$l || (_templateObject8$
|
|
|
18314
18340
|
return props.color;
|
|
18315
18341
|
});
|
|
18316
18342
|
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$
|
|
18343
|
+
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
18344
|
|
|
18319
18345
|
var Template8$1 = function Template8(props) {
|
|
18320
18346
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18331,7 +18357,7 @@ var Template8$1 = function Template8(props) {
|
|
|
18331
18357
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
18332
18358
|
};
|
|
18333
18359
|
|
|
18334
|
-
var _templateObject$U, _templateObject2$H, _templateObject3$B, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$k, _templateObject10$
|
|
18360
|
+
var _templateObject$U, _templateObject2$H, _templateObject3$B, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$k, _templateObject10$f, _templateObject11$8;
|
|
18335
18361
|
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
18362
|
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
18363
|
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 +18379,7 @@ var CustomLine$6 = styled(HeaderLine$9)(_templateObject8$m || (_templateObject8$
|
|
|
18353
18379
|
return props.color;
|
|
18354
18380
|
});
|
|
18355
18381
|
var GraphLine = styled(CustomLine$6)(_templateObject9$k || (_templateObject9$k = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
18356
|
-
var Main$5 = styled.div(_templateObject10$
|
|
18382
|
+
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
18383
|
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
18384
|
|
|
18359
18385
|
var Template10 = function Template10(props) {
|