@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.js
CHANGED
|
@@ -12113,43 +12113,73 @@ var getMask = function getMask(mask) {
|
|
|
12113
12113
|
};
|
|
12114
12114
|
};
|
|
12115
12115
|
|
|
12116
|
-
var _templateObject$4
|
|
12117
|
-
var
|
|
12116
|
+
var _templateObject$4;
|
|
12117
|
+
var EllipsisContainer = styled__default.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
12118
|
+
|
|
12119
|
+
var EllipsisContainer$1 = function EllipsisContainer$1(props) {
|
|
12120
|
+
var myProps = _extends({}, props);
|
|
12121
|
+
|
|
12122
|
+
var _onMouseOver = myProps.onMouseOver || function () {};
|
|
12123
|
+
|
|
12124
|
+
myProps.onMouseOver = function (event) {
|
|
12125
|
+
_onMouseOver(event);
|
|
12126
|
+
|
|
12127
|
+
var target = event.target;
|
|
12128
|
+
|
|
12129
|
+
while (target && !('ellipsis' in target.dataset)) {
|
|
12130
|
+
target = target.parentElement;
|
|
12131
|
+
}
|
|
12132
|
+
|
|
12133
|
+
if (!target) return;
|
|
12134
|
+
|
|
12135
|
+
if (target.scrollWidth > target.offsetWidth) {
|
|
12136
|
+
target.title = target.innerText;
|
|
12137
|
+
} else target.removeAttribute('title');
|
|
12138
|
+
};
|
|
12139
|
+
|
|
12140
|
+
return React__default.createElement(EllipsisContainer, Object.assign({}, myProps, {
|
|
12141
|
+
"data-ellipsis": ''
|
|
12142
|
+
}));
|
|
12143
|
+
};
|
|
12144
|
+
|
|
12145
|
+
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;
|
|
12146
|
+
var IconContainer = styled__default.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) {
|
|
12118
12147
|
var onClick = _ref.onClick,
|
|
12119
12148
|
disabled = _ref.disabled;
|
|
12120
12149
|
if (!onClick || disabled) return;
|
|
12121
12150
|
return styled.css(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12122
12151
|
});
|
|
12123
|
-
var
|
|
12152
|
+
var ChildrenContainer = styled__default(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) {
|
|
12124
12153
|
var theme = _ref2.theme;
|
|
12154
|
+
return theme.spacings.s1;
|
|
12155
|
+
});
|
|
12156
|
+
var Input = styled__default.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) {
|
|
12157
|
+
var theme = _ref3.theme;
|
|
12125
12158
|
return theme.useTypography('p');
|
|
12126
|
-
}, function (_ref3) {
|
|
12127
|
-
var theme = _ref3.theme,
|
|
12128
|
-
invalid = _ref3.invalid;
|
|
12129
|
-
return invalid ? theme.colors.warningRed : theme.colors.darkBlue;
|
|
12130
12159
|
}, function (_ref4) {
|
|
12131
12160
|
var theme = _ref4.theme,
|
|
12132
12161
|
invalid = _ref4.invalid;
|
|
12133
|
-
return invalid ? theme.colors.warningRed : theme.colors.
|
|
12162
|
+
return invalid ? theme.colors.warningRed : theme.colors.darkBlue;
|
|
12134
12163
|
}, function (_ref5) {
|
|
12135
|
-
var
|
|
12164
|
+
var theme = _ref5.theme,
|
|
12165
|
+
invalid = _ref5.invalid;
|
|
12166
|
+
return invalid ? theme.colors.warningRed : theme.colors.darkGrey;
|
|
12167
|
+
}, function (_ref6) {
|
|
12168
|
+
var placeholder = _ref6.placeholder;
|
|
12136
12169
|
|
|
12137
12170
|
if (placeholder !== '••••••••') {
|
|
12138
|
-
return styled.css(
|
|
12139
|
-
var theme =
|
|
12171
|
+
return styled.css(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteralLoose(["\n ", ";\n opacity: 1;\n "])), function (_ref7) {
|
|
12172
|
+
var theme = _ref7.theme;
|
|
12140
12173
|
return theme.useTypography('p');
|
|
12141
12174
|
});
|
|
12142
12175
|
}
|
|
12143
12176
|
|
|
12144
|
-
return styled.css(
|
|
12145
|
-
}, function (_ref7) {
|
|
12146
|
-
var width = _ref7.width;
|
|
12147
|
-
return width || '100%';
|
|
12177
|
+
return styled.css(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n font-size: 14px;\n letter-spacing: 0px;\n "])));
|
|
12148
12178
|
}, function (_ref8) {
|
|
12149
12179
|
var theme = _ref8.theme,
|
|
12150
12180
|
paddingless = _ref8.paddingless;
|
|
12151
12181
|
if (paddingless) return;
|
|
12152
|
-
return styled.css(
|
|
12182
|
+
return styled.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);
|
|
12153
12183
|
}, function (_ref9) {
|
|
12154
12184
|
var theme = _ref9.theme,
|
|
12155
12185
|
invalid = _ref9.invalid,
|
|
@@ -12160,73 +12190,76 @@ var Input = styled__default.input(_templateObject3$4 || (_templateObject3$4 = _t
|
|
|
12160
12190
|
var theme = _ref10.theme,
|
|
12161
12191
|
invalid = _ref10.invalid;
|
|
12162
12192
|
var color = invalid ? theme.getColor('warningRed', 5) : theme.colors.white;
|
|
12163
|
-
return styled.css(
|
|
12193
|
+
return styled.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);
|
|
12164
12194
|
}, function (_ref11) {
|
|
12165
12195
|
var arrows = _ref11.arrows;
|
|
12166
12196
|
if (arrows) return;
|
|
12167
|
-
return styled.css(
|
|
12197
|
+
return styled.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 "])));
|
|
12168
12198
|
}, function (_ref12) {
|
|
12169
12199
|
var readOnly = _ref12.readOnly,
|
|
12170
12200
|
onClick = _ref12.onClick,
|
|
12171
12201
|
disabled = _ref12.disabled;
|
|
12172
|
-
if (!
|
|
12173
|
-
return styled.css(
|
|
12202
|
+
if (readOnly || !onClick || disabled) return;
|
|
12203
|
+
return styled.css(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12174
12204
|
});
|
|
12175
|
-
var
|
|
12176
|
-
var
|
|
12177
|
-
return
|
|
12178
|
-
}
|
|
12205
|
+
var InputContainer = styled__default.div(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: ", ";\n"])), function (_ref13) {
|
|
12206
|
+
var width = _ref13.width;
|
|
12207
|
+
return width || '100%';
|
|
12208
|
+
});
|
|
12209
|
+
var Label = styled__default.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) {
|
|
12179
12210
|
var theme = _ref14.theme;
|
|
12180
|
-
return theme.
|
|
12211
|
+
return theme.useTypography('p');
|
|
12181
12212
|
}, function (_ref15) {
|
|
12182
|
-
var
|
|
12183
|
-
return
|
|
12213
|
+
var theme = _ref15.theme;
|
|
12214
|
+
return theme.colors.greyishBlue;
|
|
12184
12215
|
}, function (_ref16) {
|
|
12185
|
-
var
|
|
12216
|
+
var width = _ref16.width;
|
|
12217
|
+
return width || '100%';
|
|
12218
|
+
}, function (_ref17) {
|
|
12219
|
+
var disabled = _ref17.disabled;
|
|
12186
12220
|
if (!disabled) return;
|
|
12187
|
-
return styled.css(
|
|
12188
|
-
}, IconContainer, function (
|
|
12189
|
-
var theme = _ref17.theme,
|
|
12190
|
-
paddingless = _ref17.paddingless;
|
|
12191
|
-
return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
|
|
12192
|
-
}, function (_ref18) {
|
|
12221
|
+
return styled.css(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
12222
|
+
}, InputContainer, IconContainer, function (_ref18) {
|
|
12193
12223
|
var theme = _ref18.theme,
|
|
12194
|
-
icon = _ref18.icon,
|
|
12195
12224
|
paddingless = _ref18.paddingless;
|
|
12225
|
+
return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
|
|
12226
|
+
}, function (_ref19) {
|
|
12227
|
+
var readOnly = _ref19.readOnly,
|
|
12228
|
+
disabled = _ref19.disabled,
|
|
12229
|
+
loading = _ref19.loading;
|
|
12230
|
+
if (loading || readOnly || disabled) return;
|
|
12231
|
+
return styled.css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12232
|
+
}, function (_ref20) {
|
|
12233
|
+
var theme = _ref20.theme,
|
|
12234
|
+
icon = _ref20.icon,
|
|
12235
|
+
paddingless = _ref20.paddingless;
|
|
12196
12236
|
if (!icon) return;
|
|
12197
12237
|
var width = icon.width,
|
|
12198
12238
|
position = icon.position;
|
|
12199
12239
|
var padding = paddingless ? '0px' : theme.spacings.s3;
|
|
12200
12240
|
|
|
12201
12241
|
if (position === 'right') {
|
|
12202
|
-
return styled.css(
|
|
12242
|
+
return styled.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);
|
|
12203
12243
|
}
|
|
12204
12244
|
|
|
12205
|
-
return styled.css(
|
|
12245
|
+
return styled.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);
|
|
12206
12246
|
});
|
|
12207
|
-
var LabelText = styled__default.div(
|
|
12208
|
-
var theme =
|
|
12247
|
+
var LabelText = styled__default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref21) {
|
|
12248
|
+
var theme = _ref21.theme;
|
|
12209
12249
|
return theme.spacings.s1;
|
|
12210
|
-
}, function (
|
|
12211
|
-
var required =
|
|
12250
|
+
}, function (_ref22) {
|
|
12251
|
+
var required = _ref22.required;
|
|
12212
12252
|
if (!required) return;
|
|
12213
|
-
return styled.css(
|
|
12253
|
+
return styled.css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12214
12254
|
});
|
|
12215
12255
|
|
|
12216
12256
|
var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
12217
12257
|
var _props = _extends({}, props),
|
|
12218
12258
|
label = _props.label,
|
|
12219
|
-
required = _props.required,
|
|
12220
|
-
invalid = _props.invalid,
|
|
12221
|
-
disabled = _props.disabled,
|
|
12222
12259
|
loading = _props.loading,
|
|
12223
12260
|
clearable = _props.clearable,
|
|
12224
12261
|
onPressEnter = _props.onPressEnter,
|
|
12225
|
-
|
|
12226
|
-
width = _props.width,
|
|
12227
|
-
arrows = _props.arrows,
|
|
12228
|
-
borderless = _props.borderless,
|
|
12229
|
-
paddingless = _props.paddingless;
|
|
12262
|
+
width = _props.width;
|
|
12230
12263
|
|
|
12231
12264
|
var mask = getMask(props.mask);
|
|
12232
12265
|
React.useEffect(function () {
|
|
@@ -12234,12 +12267,14 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12234
12267
|
var masked = mask(props.value);
|
|
12235
12268
|
if (masked !== props.value) setValue(masked);
|
|
12236
12269
|
}, [props.value]);
|
|
12237
|
-
var intInvalid = invalid ? 1 : 0;
|
|
12238
|
-
var
|
|
12239
|
-
var
|
|
12240
|
-
var
|
|
12241
|
-
var
|
|
12242
|
-
var
|
|
12270
|
+
var intInvalid = props.invalid ? 1 : 0;
|
|
12271
|
+
var intLoading = props.loading ? 1 : 0;
|
|
12272
|
+
var intRequired = props.required ? 1 : 0;
|
|
12273
|
+
var intDisabled = props.disabled ? 1 : 0;
|
|
12274
|
+
var intReadOnly = props.readOnly ? 1 : 0;
|
|
12275
|
+
var intArrows = props.arrows ? 1 : 0;
|
|
12276
|
+
var intBorderless = props.borderless ? 1 : 0;
|
|
12277
|
+
var intPaddingless = props.paddingless ? 1 : 0;
|
|
12243
12278
|
var position;
|
|
12244
12279
|
var iconWidth;
|
|
12245
12280
|
var iconSubmit;
|
|
@@ -12255,13 +12290,12 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12255
12290
|
iconOnClick = props.icon.onClick;
|
|
12256
12291
|
}
|
|
12257
12292
|
|
|
12258
|
-
var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless'], {
|
|
12293
|
+
var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'htmlReadOnly', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless', 'children'], {
|
|
12259
12294
|
invalid: intInvalid,
|
|
12260
12295
|
type: 'text',
|
|
12261
12296
|
arrows: intArrows,
|
|
12262
12297
|
borderless: intBorderless,
|
|
12263
|
-
paddingless: intPaddingless
|
|
12264
|
-
width: props.inputWidth
|
|
12298
|
+
paddingless: intPaddingless
|
|
12265
12299
|
});
|
|
12266
12300
|
|
|
12267
12301
|
var onChange = inputProps.onChange || function () {};
|
|
@@ -12350,27 +12384,34 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12350
12384
|
position: position,
|
|
12351
12385
|
width: iconWidth || '24px'
|
|
12352
12386
|
} : undefined;
|
|
12353
|
-
if (htmlDisabled) inputProps.disabled = true;
|
|
12387
|
+
if (props.htmlDisabled) inputProps.disabled = true;
|
|
12388
|
+
if (props.htmlReadOnly) inputProps.readOnly = true;
|
|
12354
12389
|
return React__default.createElement(Label, {
|
|
12390
|
+
readOnly: intReadOnly,
|
|
12355
12391
|
disabled: intDisabled,
|
|
12392
|
+
loading: intLoading,
|
|
12356
12393
|
invalid: intInvalid,
|
|
12357
12394
|
paddingless: intPaddingless,
|
|
12358
12395
|
icon: iconProps,
|
|
12359
12396
|
width: width
|
|
12360
12397
|
}, label && React__default.createElement(LabelText, {
|
|
12361
12398
|
required: intRequired
|
|
12362
|
-
}, label), React__default.createElement(
|
|
12399
|
+
}, label), React__default.createElement(InputContainer, {
|
|
12400
|
+
width: props.inputWidth
|
|
12401
|
+
}, React__default.createElement(Input, Object.assign({}, inputProps, {
|
|
12363
12402
|
ref: ref
|
|
12364
|
-
})),
|
|
12403
|
+
})), props.children && React__default.createElement(ChildrenContainer, {
|
|
12404
|
+
children: props.children
|
|
12405
|
+
}), icon && React__default.createElement(IconContainer, {
|
|
12365
12406
|
type: iconSubmit ? 'submit' : 'button',
|
|
12366
12407
|
onClick: props.disabled ? undefined : iconOnClick
|
|
12367
|
-
}, React__default.createElement(Icon, Object.assign({}, icon))));
|
|
12408
|
+
}, React__default.createElement(Icon, Object.assign({}, icon)))));
|
|
12368
12409
|
});
|
|
12369
12410
|
Input$1.displayName = 'Input';
|
|
12370
12411
|
|
|
12371
|
-
var _templateObject$
|
|
12412
|
+
var _templateObject$6, _templateObject2$5, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2;
|
|
12372
12413
|
var size = '17px';
|
|
12373
|
-
var Checkmark = styled__default.div(_templateObject$
|
|
12414
|
+
var Checkmark = styled__default.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) {
|
|
12374
12415
|
var theme = _ref.theme;
|
|
12375
12416
|
return theme.colors.white;
|
|
12376
12417
|
}, function (_ref2) {
|
|
@@ -12380,7 +12421,7 @@ var Checkmark = styled__default.div(_templateObject$5 || (_templateObject$5 = _t
|
|
|
12380
12421
|
var theme = _ref3.theme;
|
|
12381
12422
|
return theme.colors.blue;
|
|
12382
12423
|
});
|
|
12383
|
-
var Label$1 = styled__default.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) {
|
|
12424
|
+
var Label$1 = styled__default.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) {
|
|
12384
12425
|
var theme = _ref4.theme;
|
|
12385
12426
|
return theme.useTypography('p');
|
|
12386
12427
|
}, function (_ref5) {
|
|
@@ -12455,14 +12496,17 @@ var Label$1 = styled__default.label(_templateObject2$5 || (_templateObject2$5 =
|
|
|
12455
12496
|
invalid = _ref11.invalid;
|
|
12456
12497
|
if (!invalid) return;
|
|
12457
12498
|
return styled.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);
|
|
12499
|
+
}, function (_ref12) {
|
|
12500
|
+
var width = _ref12.width;
|
|
12501
|
+
return width && styled.css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
|
|
12458
12502
|
});
|
|
12459
|
-
var LabelContent = styled__default.div(
|
|
12460
|
-
var theme =
|
|
12503
|
+
var LabelContent = styled__default.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) {
|
|
12504
|
+
var theme = _ref13.theme;
|
|
12461
12505
|
return theme.useTypography('p');
|
|
12462
|
-
}, function (
|
|
12463
|
-
var required =
|
|
12506
|
+
}, function (_ref14) {
|
|
12507
|
+
var required = _ref14.required;
|
|
12464
12508
|
if (!required) return;
|
|
12465
|
-
return styled.css(
|
|
12509
|
+
return styled.css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12466
12510
|
});
|
|
12467
12511
|
|
|
12468
12512
|
var Checkbox = React__default.forwardRef(function (props, ref) {
|
|
@@ -12482,7 +12526,8 @@ var Checkbox = React__default.forwardRef(function (props, ref) {
|
|
|
12482
12526
|
required: required ? 1 : 0,
|
|
12483
12527
|
invalid: invalid ? 1 : 0,
|
|
12484
12528
|
bordered: bordered ? 1 : 0,
|
|
12485
|
-
padding: padding
|
|
12529
|
+
padding: padding,
|
|
12530
|
+
width: props.width
|
|
12486
12531
|
}, React__default.createElement("input", Object.assign({}, htmlProps, {
|
|
12487
12532
|
type: 'checkbox',
|
|
12488
12533
|
ref: ref
|
|
@@ -12528,35 +12573,6 @@ var inputTimeWidth = {
|
|
|
12528
12573
|
withoutSeconds: '66px'
|
|
12529
12574
|
};
|
|
12530
12575
|
|
|
12531
|
-
var _templateObject$6;
|
|
12532
|
-
var EllipsisContainer = styled__default.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
12533
|
-
|
|
12534
|
-
var EllipsisContainer$1 = function EllipsisContainer$1(props) {
|
|
12535
|
-
var myProps = _extends({}, props);
|
|
12536
|
-
|
|
12537
|
-
var _onMouseOver = myProps.onMouseOver || function () {};
|
|
12538
|
-
|
|
12539
|
-
myProps.onMouseOver = function (event) {
|
|
12540
|
-
_onMouseOver(event);
|
|
12541
|
-
|
|
12542
|
-
var target = event.target;
|
|
12543
|
-
|
|
12544
|
-
while (target && !('ellipsis' in target.dataset)) {
|
|
12545
|
-
target = target.parentElement;
|
|
12546
|
-
}
|
|
12547
|
-
|
|
12548
|
-
if (!target) return;
|
|
12549
|
-
|
|
12550
|
-
if (target.scrollWidth > target.offsetWidth) {
|
|
12551
|
-
target.title = target.innerText;
|
|
12552
|
-
} else target.removeAttribute('title');
|
|
12553
|
-
};
|
|
12554
|
-
|
|
12555
|
-
return React__default.createElement(EllipsisContainer, Object.assign({}, myProps, {
|
|
12556
|
-
"data-ellipsis": ''
|
|
12557
|
-
}));
|
|
12558
|
-
};
|
|
12559
|
-
|
|
12560
12576
|
var _templateObject$7, _templateObject2$6, _templateObject3$6, _templateObject4$5;
|
|
12561
12577
|
var Container$1 = styled__default.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) {
|
|
12562
12578
|
var theme = _ref.theme;
|
|
@@ -12630,8 +12646,8 @@ var ScrollContainer = function ScrollContainer(props) {
|
|
|
12630
12646
|
})), after);
|
|
12631
12647
|
};
|
|
12632
12648
|
|
|
12633
|
-
var _templateObject$8, _templateObject2$7, _templateObject3$7, _templateObject4$6, _templateObject5$5, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject10$
|
|
12634
|
-
var Option = styled__default.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) {
|
|
12649
|
+
var _templateObject$8, _templateObject2$7, _templateObject3$7, _templateObject4$6, _templateObject5$5, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject10$3;
|
|
12650
|
+
var Option = styled__default.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) {
|
|
12635
12651
|
var theme = _ref.theme;
|
|
12636
12652
|
return theme.useTypography('p');
|
|
12637
12653
|
}, function (_ref2) {
|
|
@@ -12641,16 +12657,19 @@ var Option = styled__default.div(_templateObject$8 || (_templateObject$8 = _tagg
|
|
|
12641
12657
|
var theme = _ref3.theme;
|
|
12642
12658
|
return theme.colors.darkBlue;
|
|
12643
12659
|
}, function (_ref4) {
|
|
12644
|
-
var
|
|
12660
|
+
var theme = _ref4.theme;
|
|
12661
|
+
return theme.spacings.s1;
|
|
12662
|
+
}, function (_ref5) {
|
|
12663
|
+
var disabled = _ref5.disabled;
|
|
12645
12664
|
|
|
12646
12665
|
if (!disabled) {
|
|
12647
12666
|
return styled.css(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12648
12667
|
}
|
|
12649
12668
|
|
|
12650
12669
|
return styled.css(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n opacity: 0.3;\n "])));
|
|
12651
|
-
}, function (
|
|
12652
|
-
var border =
|
|
12653
|
-
theme =
|
|
12670
|
+
}, function (_ref6) {
|
|
12671
|
+
var border = _ref6.border,
|
|
12672
|
+
theme = _ref6.theme;
|
|
12654
12673
|
if (!border) return;
|
|
12655
12674
|
var config = getBorder(border);
|
|
12656
12675
|
return keys(config).filter(function (k) {
|
|
@@ -12662,12 +12681,12 @@ var Option = styled__default.div(_templateObject$8 || (_templateObject$8 = _tagg
|
|
|
12662
12681
|
var color = isKeyOf(theme.colors, cfg.color) ? theme.colors[cfg.color] : cfg.color;
|
|
12663
12682
|
return styled.css(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n border-", "-width: ", ";\n border-", "-style: ", ";\n border-", "-color: ", ";\n "])), pos, width, pos, style, pos, color);
|
|
12664
12683
|
});
|
|
12665
|
-
}, function (
|
|
12666
|
-
var theme =
|
|
12684
|
+
}, function (_ref7) {
|
|
12685
|
+
var theme = _ref7.theme;
|
|
12667
12686
|
return theme.colors.iceWhite;
|
|
12668
12687
|
});
|
|
12669
|
-
var Container$2 = styled__default(AbsoluteContainer)(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n > div {\n display: flex;\n width: 100%;\n\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n\n ", "\n }\n\n ", "\n\n ", "\n }\n"])), function (
|
|
12670
|
-
var theme =
|
|
12688
|
+
var Container$2 = styled__default(AbsoluteContainer)(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n > div {\n display: flex;\n width: 100%;\n\n > div:nth-child(1) {\n background-color: ", ";\n border-radius: 4px;\n\n ", "\n }\n\n ", "\n\n ", "\n }\n"])), function (_ref8) {
|
|
12689
|
+
var theme = _ref8.theme;
|
|
12671
12690
|
return theme.colors.white;
|
|
12672
12691
|
}, function (props) {
|
|
12673
12692
|
if (!props.containerSpacing) return;
|
|
@@ -12676,11 +12695,11 @@ var Container$2 = styled__default(AbsoluteContainer)(_templateObject5$5 || (_tem
|
|
|
12676
12695
|
tmp[1] = "calc(" + props.theme.spacings.s1 + " / 2)";
|
|
12677
12696
|
spacing = tmp.join(' ');
|
|
12678
12697
|
return styled.css(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n "])), spacing);
|
|
12679
|
-
}, function (
|
|
12680
|
-
var bordered =
|
|
12698
|
+
}, function (_ref9) {
|
|
12699
|
+
var bordered = _ref9.bordered;
|
|
12681
12700
|
if (!bordered) return;
|
|
12682
|
-
return styled.css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (
|
|
12683
|
-
var theme =
|
|
12701
|
+
return styled.css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n ", " {\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n }\n "])), Option, function (_ref10) {
|
|
12702
|
+
var theme = _ref10.theme;
|
|
12684
12703
|
return theme.getColor('greyishBlue', 10);
|
|
12685
12704
|
});
|
|
12686
12705
|
}, function (props) {
|
|
@@ -12695,11 +12714,11 @@ var Container$2 = styled__default(AbsoluteContainer)(_templateObject5$5 || (_tem
|
|
|
12695
12714
|
});
|
|
12696
12715
|
return styled.css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n ", " {\n padding: ", ";\n }\n ", " {\n margin: ", ";\n }\n "])), Option, spacing, Delimiter, spacing);
|
|
12697
12716
|
});
|
|
12698
|
-
var Delimiter = styled__default.div(_templateObject10$
|
|
12699
|
-
var theme = _ref10.theme;
|
|
12700
|
-
return theme.useTypography('p');
|
|
12701
|
-
}, function (_ref11) {
|
|
12717
|
+
var Delimiter = styled__default.div(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n ", ";\n\n border-bottom: 1px solid ", ";\n margin: 14px;\n width: calc(100% - 28px);\n"])), function (_ref11) {
|
|
12702
12718
|
var theme = _ref11.theme;
|
|
12719
|
+
return theme.useTypography('p');
|
|
12720
|
+
}, function (_ref12) {
|
|
12721
|
+
var theme = _ref12.theme;
|
|
12703
12722
|
return theme.colors.greyishBlue;
|
|
12704
12723
|
});
|
|
12705
12724
|
|
|
@@ -12731,12 +12750,9 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
12731
12750
|
var _option = _extends({}, option),
|
|
12732
12751
|
delimiter = _option.delimiter,
|
|
12733
12752
|
keepOpen = _option.keepOpen,
|
|
12734
|
-
caret = _option.caret
|
|
12753
|
+
caret = _option.caret,
|
|
12754
|
+
data = _option.data;
|
|
12735
12755
|
|
|
12736
|
-
var label = isString(option.label) ? {
|
|
12737
|
-
text: option.label,
|
|
12738
|
-
element: option.label
|
|
12739
|
-
} : option.label;
|
|
12740
12756
|
var closeMenu = keepOpen ? function () {} : close;
|
|
12741
12757
|
var onClick;
|
|
12742
12758
|
var disabled = option.disabled;
|
|
@@ -12747,9 +12763,8 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
12747
12763
|
};
|
|
12748
12764
|
|
|
12749
12765
|
if (!disabled) {
|
|
12750
|
-
var
|
|
12751
|
-
|
|
12752
|
-
return rule(index, option.data, label);
|
|
12766
|
+
var rule = (option.rules || []).map(function (rule) {
|
|
12767
|
+
return rule(index, data);
|
|
12753
12768
|
}).find(function (result) {
|
|
12754
12769
|
return result !== true;
|
|
12755
12770
|
});
|
|
@@ -12782,13 +12797,21 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
12782
12797
|
}
|
|
12783
12798
|
|
|
12784
12799
|
OptionContent.displayName = 'OptionContent';
|
|
12800
|
+
var label = option.label;
|
|
12801
|
+
var labelOptions = filterObject(option, ['onClick', 'label', 'rules']);
|
|
12802
|
+
labelOptions.disabled = disabled;
|
|
12803
|
+
var LabelComponent = typeof label === 'function' ? label : function () {
|
|
12804
|
+
return React__default.createElement(React__default.Fragment, {
|
|
12805
|
+
children: label
|
|
12806
|
+
});
|
|
12807
|
+
};
|
|
12785
12808
|
return React__default.createElement(React__default.Fragment, {
|
|
12786
12809
|
key: index
|
|
12787
12810
|
}, React__default.createElement(OptionContent, null, React__default.createElement(Option, {
|
|
12788
12811
|
onClick: onClick,
|
|
12789
12812
|
disabled: disabled,
|
|
12790
12813
|
border: option.border
|
|
12791
|
-
},
|
|
12814
|
+
}, React__default.createElement("div", null, React__default.createElement(LabelComponent, Object.assign({}, option))), caret ? React__default.createElement(Icon, {
|
|
12792
12815
|
type: 'semantic',
|
|
12793
12816
|
icon: 'caret right',
|
|
12794
12817
|
width: '14px'
|
|
@@ -12908,7 +12931,8 @@ var MonthPicker = function MonthPicker(props) {
|
|
|
12908
12931
|
rules: [function () {
|
|
12909
12932
|
var disabled = min !== undefined && (min.getFullYear() > year || min.getFullYear() === year && min.getMonth() > index) || max !== undefined && (max.getFullYear() < year || max.getFullYear() === year && max.getMonth() < index);
|
|
12910
12933
|
return !disabled;
|
|
12911
|
-
}]
|
|
12934
|
+
}],
|
|
12935
|
+
data: {}
|
|
12912
12936
|
};
|
|
12913
12937
|
})
|
|
12914
12938
|
}));
|
|
@@ -12951,7 +12975,7 @@ var Indicator = function Indicator(props) {
|
|
|
12951
12975
|
}, props)));
|
|
12952
12976
|
};
|
|
12953
12977
|
|
|
12954
|
-
var _templateObject$b, _templateObject2$a, _templateObject3$9, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$
|
|
12978
|
+
var _templateObject$b, _templateObject2$a, _templateObject3$9, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$4, _templateObject11$2;
|
|
12955
12979
|
var Footer = styled__default.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"])));
|
|
12956
12980
|
var WeekContainer = styled__default.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) {
|
|
12957
12981
|
var theme = _ref.theme;
|
|
@@ -13008,7 +13032,7 @@ var DayContainer = styled__default.button(_templateObject4$8 || (_templateObject
|
|
|
13008
13032
|
return;
|
|
13009
13033
|
}
|
|
13010
13034
|
|
|
13011
|
-
return styled.css(_templateObject10$
|
|
13035
|
+
return styled.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']);
|
|
13012
13036
|
});
|
|
13013
13037
|
var DayIndicator = styled__default(Indicator).attrs({
|
|
13014
13038
|
size: 'mini'
|
|
@@ -13583,7 +13607,7 @@ var getTimeProps = function getTimeProps(time, value) {
|
|
|
13583
13607
|
});
|
|
13584
13608
|
};
|
|
13585
13609
|
|
|
13586
|
-
var _templateObject$e, _templateObject2$b, _templateObject3$a, _templateObject4$9, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject10$
|
|
13610
|
+
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;
|
|
13587
13611
|
var Button = styled__default.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) {
|
|
13588
13612
|
var theme = _ref.theme,
|
|
13589
13613
|
appearance = _ref.appearance;
|
|
@@ -13655,7 +13679,7 @@ var Button = styled__default.button(_templateObject$e || (_templateObject$e = _t
|
|
|
13655
13679
|
}
|
|
13656
13680
|
|
|
13657
13681
|
if (['link', 'bordeless'].includes(appearance)) {
|
|
13658
|
-
return styled.css(_templateObject10$
|
|
13682
|
+
return styled.css(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor('blue', 50));
|
|
13659
13683
|
}
|
|
13660
13684
|
|
|
13661
13685
|
return styled.css(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor(color || 'blue'));
|
|
@@ -14300,40 +14324,59 @@ var getOptions = function getOptions(props, options) {
|
|
|
14300
14324
|
return options.map(function (option) {
|
|
14301
14325
|
var value = option.value,
|
|
14302
14326
|
onClick = option.onClick,
|
|
14303
|
-
|
|
14304
|
-
|
|
14305
|
-
|
|
14306
|
-
|
|
14307
|
-
}
|
|
14308
|
-
|
|
14309
|
-
|
|
14310
|
-
|
|
14311
|
-
|
|
14312
|
-
|
|
14327
|
+
rules = option.rules,
|
|
14328
|
+
disabled = option.disabled;
|
|
14329
|
+
var selected = option.value === props.value;
|
|
14330
|
+
|
|
14331
|
+
var data = _extends({}, option.data, {
|
|
14332
|
+
selected: selected,
|
|
14333
|
+
value: value
|
|
14334
|
+
});
|
|
14335
|
+
|
|
14336
|
+
var LabelComponent = option.label;
|
|
14337
|
+
var parsed = {
|
|
14338
|
+
label: typeof LabelComponent !== 'function' ? LabelComponent : function (_ref) {
|
|
14339
|
+
var disabled = _ref.disabled;
|
|
14340
|
+
return React__default.createElement(LabelComponent, Object.assign({}, {
|
|
14313
14341
|
value: value,
|
|
14314
|
-
data: data
|
|
14315
|
-
|
|
14316
|
-
|
|
14317
|
-
props.setValue(value === props.value ? '' : value, option);
|
|
14342
|
+
data: data,
|
|
14343
|
+
disabled: disabled
|
|
14344
|
+
}));
|
|
14318
14345
|
},
|
|
14319
|
-
|
|
14320
|
-
|
|
14321
|
-
|
|
14346
|
+
onClick: onClick || function () {
|
|
14347
|
+
props.setValue(selected ? '' : value, option.data);
|
|
14348
|
+
},
|
|
14349
|
+
disabled: disabled,
|
|
14350
|
+
rules: rules,
|
|
14322
14351
|
border: {
|
|
14323
14352
|
left: {
|
|
14324
|
-
color:
|
|
14353
|
+
color: selected ? 'blue' : 'transparent'
|
|
14325
14354
|
}
|
|
14326
|
-
}
|
|
14355
|
+
},
|
|
14356
|
+
data: data
|
|
14327
14357
|
};
|
|
14358
|
+
return parsed;
|
|
14328
14359
|
});
|
|
14329
14360
|
};
|
|
14330
14361
|
|
|
14331
|
-
var
|
|
14362
|
+
var getSelected = function getSelected(value, options) {
|
|
14332
14363
|
var selectedIndex = options.findIndex(function (option) {
|
|
14333
14364
|
return option.value === value;
|
|
14334
14365
|
});
|
|
14335
|
-
|
|
14336
|
-
|
|
14366
|
+
if (selectedIndex === -1) return null;
|
|
14367
|
+
var selected = options[selectedIndex];
|
|
14368
|
+
return selected;
|
|
14369
|
+
};
|
|
14370
|
+
|
|
14371
|
+
var getInputContent = function getInputContent(props, selectedOption) {
|
|
14372
|
+
if (typeof selectedOption.label !== 'function') return selectedOption.label;
|
|
14373
|
+
var LabelComponent = selectedOption.label;
|
|
14374
|
+
return React__default.createElement(LabelComponent, {
|
|
14375
|
+
data: _extends({}, selectedOption.data),
|
|
14376
|
+
value: selectedOption.value,
|
|
14377
|
+
disabled: props.disabled || props.loading,
|
|
14378
|
+
mode: 'placeholder'
|
|
14379
|
+
});
|
|
14337
14380
|
};
|
|
14338
14381
|
|
|
14339
14382
|
var useSelect = function useSelect(props) {
|
|
@@ -14342,16 +14385,15 @@ var useSelect = function useSelect(props) {
|
|
|
14342
14385
|
setOptions = _useState[1];
|
|
14343
14386
|
|
|
14344
14387
|
var parsedOptions = getOptions(props, options);
|
|
14345
|
-
var inputValue = getInputValue(props.value, options, parsedOptions);
|
|
14346
14388
|
|
|
14347
14389
|
var onReset = function onReset() {};
|
|
14348
14390
|
|
|
14349
|
-
|
|
14391
|
+
var selectedOption = getSelected(props.value, options);
|
|
14392
|
+
var inputContent = selectedOption ? getInputContent(props, selectedOption) : props.value;
|
|
14393
|
+
var parsed = {
|
|
14350
14394
|
parsedOptions: parsedOptions,
|
|
14351
14395
|
options: [options, setOptions],
|
|
14352
|
-
|
|
14353
|
-
value: inputValue
|
|
14354
|
-
},
|
|
14396
|
+
inputContent: inputContent,
|
|
14355
14397
|
onReset: onReset,
|
|
14356
14398
|
menu: {
|
|
14357
14399
|
itemSpacing: 's3',
|
|
@@ -14367,6 +14409,11 @@ var useSelect = function useSelect(props) {
|
|
|
14367
14409
|
}, children);
|
|
14368
14410
|
}
|
|
14369
14411
|
};
|
|
14412
|
+
var onClear = props.onClear;
|
|
14413
|
+
if (onClear) parsed.onClear = function () {
|
|
14414
|
+
return onClear('');
|
|
14415
|
+
};
|
|
14416
|
+
return parsed;
|
|
14370
14417
|
};
|
|
14371
14418
|
|
|
14372
14419
|
var Provider$1 = React__default.createContext({});
|
|
@@ -14382,9 +14429,7 @@ var Footer$1 = function Footer() {
|
|
|
14382
14429
|
setOpen = context.setOpen;
|
|
14383
14430
|
|
|
14384
14431
|
var onClick = function onClick() {
|
|
14385
|
-
setValue(
|
|
14386
|
-
return c.value;
|
|
14387
|
-
}), [].concat(checked));
|
|
14432
|
+
setValue([].concat(checked));
|
|
14388
14433
|
setOpen(false);
|
|
14389
14434
|
};
|
|
14390
14435
|
|
|
@@ -14454,7 +14499,9 @@ var Header$2 = function Header() {
|
|
|
14454
14499
|
|
|
14455
14500
|
var onClick = function onClick() {
|
|
14456
14501
|
setChecked(function (prev) {
|
|
14457
|
-
return prev.length === options.length ? [] :
|
|
14502
|
+
return prev.length === options.length ? [] : options.map(function (o) {
|
|
14503
|
+
return o.value;
|
|
14504
|
+
});
|
|
14458
14505
|
});
|
|
14459
14506
|
};
|
|
14460
14507
|
|
|
@@ -14479,128 +14526,95 @@ var Header$2 = function Header() {
|
|
|
14479
14526
|
}));
|
|
14480
14527
|
};
|
|
14481
14528
|
|
|
14482
|
-
var
|
|
14529
|
+
var Label$2 = function Label(props) {
|
|
14530
|
+
var context = useContext$1();
|
|
14531
|
+
var _context$checked = context.checked,
|
|
14532
|
+
checked = _context$checked[0],
|
|
14533
|
+
setChecked = _context$checked[1];
|
|
14534
|
+
var _props$option$data = props.option.data,
|
|
14535
|
+
disabled = _props$option$data.disabled,
|
|
14536
|
+
value = _props$option$data.value;
|
|
14537
|
+
var LabelComponent = props.label;
|
|
14538
|
+
return React__default.createElement(Checkbox, {
|
|
14539
|
+
type: 'checkbox',
|
|
14540
|
+
checked: checked.findIndex(function (e) {
|
|
14541
|
+
return e === value;
|
|
14542
|
+
}) !== -1,
|
|
14543
|
+
label: typeof LabelComponent !== 'function' ? LabelComponent : React__default.createElement(LabelComponent, Object.assign({}, props.option)),
|
|
14544
|
+
disabled: disabled,
|
|
14545
|
+
onChange: function onChange(event) {
|
|
14546
|
+
var isChecked = event.target.checked;
|
|
14547
|
+
setChecked(function (prev) {
|
|
14548
|
+
var newState = prev.filter(function (v) {
|
|
14549
|
+
return v !== value;
|
|
14550
|
+
});
|
|
14551
|
+
if (isChecked) newState.push(value);
|
|
14552
|
+
return newState;
|
|
14553
|
+
});
|
|
14554
|
+
},
|
|
14555
|
+
padding: {
|
|
14556
|
+
top: 's3',
|
|
14557
|
+
left: 's3',
|
|
14558
|
+
right: 's3',
|
|
14559
|
+
bottom: 's3'
|
|
14560
|
+
},
|
|
14561
|
+
width: '100%'
|
|
14562
|
+
});
|
|
14563
|
+
};
|
|
14564
|
+
|
|
14565
|
+
var getOptions$1 = function getOptions(options) {
|
|
14483
14566
|
return options.map(function (option) {
|
|
14484
|
-
var
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
label: {
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
label: label.element,
|
|
14500
|
-
disabled: option.disabled,
|
|
14501
|
-
onChange: function onChange(event) {
|
|
14502
|
-
var isChecked = event.target.checked;
|
|
14503
|
-
setChecked(function (prev) {
|
|
14504
|
-
var newState = prev.filter(function (v) {
|
|
14505
|
-
return v.value !== option.value;
|
|
14506
|
-
});
|
|
14507
|
-
if (isChecked) newState.push(_extends({}, option));
|
|
14508
|
-
return newState;
|
|
14509
|
-
});
|
|
14510
|
-
},
|
|
14511
|
-
padding: {
|
|
14512
|
-
top: 's3',
|
|
14513
|
-
left: 's3',
|
|
14514
|
-
right: 's3',
|
|
14515
|
-
bottom: 's3'
|
|
14516
|
-
}
|
|
14517
|
-
})
|
|
14567
|
+
var _label = option.label,
|
|
14568
|
+
value = option.value,
|
|
14569
|
+
onClick = option.onClick;
|
|
14570
|
+
var data = {
|
|
14571
|
+
data: option.data,
|
|
14572
|
+
value: value
|
|
14573
|
+
};
|
|
14574
|
+
var parsed = {
|
|
14575
|
+
label: function label(option) {
|
|
14576
|
+
return React__default.createElement(Label$2, {
|
|
14577
|
+
option: _extends({}, data, {
|
|
14578
|
+
disabled: option.disabled
|
|
14579
|
+
}),
|
|
14580
|
+
label: _label
|
|
14581
|
+
});
|
|
14518
14582
|
},
|
|
14519
|
-
onClick: onClick
|
|
14520
|
-
onClick(index, {
|
|
14521
|
-
label: label,
|
|
14522
|
-
value: value,
|
|
14523
|
-
data: data
|
|
14524
|
-
}, event);
|
|
14525
|
-
} : undefined,
|
|
14583
|
+
onClick: onClick,
|
|
14526
14584
|
data: data,
|
|
14527
14585
|
disabled: option.disabled,
|
|
14528
14586
|
rules: option.rules,
|
|
14529
14587
|
keepOpen: true
|
|
14530
14588
|
};
|
|
14589
|
+
return parsed;
|
|
14531
14590
|
});
|
|
14532
14591
|
};
|
|
14533
14592
|
|
|
14534
|
-
var
|
|
14593
|
+
var getInputContent$1 = function getInputContent(value) {
|
|
14535
14594
|
if (value.length < 1) return '';
|
|
14536
14595
|
return value.length > 1 ? "H\xE1 " + value.length + " sele\xE7\xF5es" : "H\xE1 " + value.length + " sele\xE7\xE3o";
|
|
14537
14596
|
};
|
|
14538
14597
|
|
|
14539
14598
|
var useSelectMultiple = function useSelectMultiple(props) {
|
|
14540
|
-
var init = function init() {
|
|
14541
|
-
if (props.value.length) return [];
|
|
14542
|
-
return typeof props.value[0] === 'string' ? [].concat(props.value).map(function (value) {
|
|
14543
|
-
return {
|
|
14544
|
-
value: value,
|
|
14545
|
-
label: value
|
|
14546
|
-
};
|
|
14547
|
-
}) : [].concat(props.value);
|
|
14548
|
-
};
|
|
14549
|
-
|
|
14550
14599
|
var _useState = React.useState([]),
|
|
14551
14600
|
options = _useState[0],
|
|
14552
14601
|
setOptions = _useState[1];
|
|
14553
14602
|
|
|
14554
|
-
var _useState2 = React.useState(
|
|
14555
|
-
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
var _useState3 = React.useState(init),
|
|
14559
|
-
checked = _useState3[0],
|
|
14560
|
-
setChecked = _useState3[1];
|
|
14561
|
-
|
|
14562
|
-
React.useEffect(function () {
|
|
14563
|
-
var getOption = function getOption(def, options, prev) {
|
|
14564
|
-
var index = options.findIndex(function (o) {
|
|
14565
|
-
return o.value === def.value;
|
|
14566
|
-
});
|
|
14567
|
-
if (index !== -1) return _extends({}, options[index]);else {
|
|
14568
|
-
var _index = prev.findIndex(function (o) {
|
|
14569
|
-
return o.value === def.value;
|
|
14570
|
-
});
|
|
14571
|
-
|
|
14572
|
-
if (_index !== -1) return _extends({}, prev[_index]);
|
|
14573
|
-
}
|
|
14574
|
-
return def;
|
|
14575
|
-
};
|
|
14603
|
+
var _useState2 = React.useState([].concat(props.value)),
|
|
14604
|
+
checked = _useState2[0],
|
|
14605
|
+
setChecked = _useState2[1];
|
|
14576
14606
|
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
return getOption({
|
|
14580
|
-
value: value,
|
|
14581
|
-
label: value
|
|
14582
|
-
}, options, prev);
|
|
14583
|
-
}) : props.value.map(function (value) {
|
|
14584
|
-
return getOption(value, options, prev);
|
|
14585
|
-
});
|
|
14586
|
-
};
|
|
14587
|
-
|
|
14588
|
-
setInitial(mapper);
|
|
14589
|
-
setChecked(mapper);
|
|
14590
|
-
}, [props.value, options]);
|
|
14591
|
-
var parsedOptions = getOptions$1(options, checked, setChecked);
|
|
14592
|
-
var inputValue = getInputValue$1(props.value);
|
|
14607
|
+
var parsedOptions = getOptions$1(options);
|
|
14608
|
+
var inputContent = getInputContent$1(props.value);
|
|
14593
14609
|
|
|
14594
14610
|
var onReset = function onReset() {
|
|
14595
|
-
setChecked([].concat(
|
|
14611
|
+
setChecked([].concat(props.value));
|
|
14596
14612
|
};
|
|
14597
14613
|
|
|
14598
14614
|
var returnData = {
|
|
14599
14615
|
parsedOptions: parsedOptions,
|
|
14600
14616
|
options: [options, setOptions],
|
|
14601
|
-
|
|
14602
|
-
value: inputValue
|
|
14603
|
-
},
|
|
14617
|
+
inputContent: inputContent,
|
|
14604
14618
|
onReset: onReset,
|
|
14605
14619
|
menu: {
|
|
14606
14620
|
itemSpacing: undefined,
|
|
@@ -14616,6 +14630,9 @@ var useSelectMultiple = function useSelectMultiple(props) {
|
|
|
14616
14630
|
checked: [checked, setChecked]
|
|
14617
14631
|
})
|
|
14618
14632
|
}, children);
|
|
14633
|
+
},
|
|
14634
|
+
onClear: function onClear() {
|
|
14635
|
+
return props.setValue([]);
|
|
14619
14636
|
}
|
|
14620
14637
|
};
|
|
14621
14638
|
return returnData;
|
|
@@ -14633,12 +14650,13 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14633
14650
|
|
|
14634
14651
|
var _ref = props.type === 'select-multiple' ? useSelectMultiple(props) : useSelect(props),
|
|
14635
14652
|
parsedOptions = _ref.parsedOptions,
|
|
14636
|
-
|
|
14653
|
+
inputContent = _ref.inputContent,
|
|
14637
14654
|
_ref$options = _ref.options,
|
|
14638
14655
|
setOptions = _ref$options[1],
|
|
14639
14656
|
onReset = _ref.onReset,
|
|
14640
14657
|
menuProps = _ref.menu,
|
|
14641
|
-
getContext = _ref.getContext
|
|
14658
|
+
getContext = _ref.getContext,
|
|
14659
|
+
onClear = _ref.onClear;
|
|
14642
14660
|
|
|
14643
14661
|
var _useState = React.useState(false),
|
|
14644
14662
|
_loading = _useState[0],
|
|
@@ -14672,9 +14690,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14672
14690
|
setPage(1);
|
|
14673
14691
|
};
|
|
14674
14692
|
|
|
14675
|
-
var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value']
|
|
14676
|
-
value: inputValue
|
|
14677
|
-
});
|
|
14693
|
+
var inputProps = filterObject(props, ['type', 'onScrollEnd', 'position', 'value']);
|
|
14678
14694
|
|
|
14679
14695
|
var _onScrollEnd = props.onScrollEnd || function () {};
|
|
14680
14696
|
|
|
@@ -14759,7 +14775,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14759
14775
|
width: props.width
|
|
14760
14776
|
}, React__default.createElement(Input$1, Object.assign({}, inputProps, {
|
|
14761
14777
|
type: 'search',
|
|
14762
|
-
|
|
14778
|
+
htmlReadOnly: true,
|
|
14763
14779
|
onClick: onClick,
|
|
14764
14780
|
loading: loading,
|
|
14765
14781
|
icon: {
|
|
@@ -14771,7 +14787,10 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14771
14787
|
},
|
|
14772
14788
|
onClick: onClick
|
|
14773
14789
|
},
|
|
14774
|
-
ref: ref
|
|
14790
|
+
ref: ref,
|
|
14791
|
+
clearable: props.value.length > 0 ? onClear : undefined,
|
|
14792
|
+
placeholder: props.value.length === 0 ? props.placeholder : undefined,
|
|
14793
|
+
children: inputContent
|
|
14775
14794
|
})), React__default.createElement(Menu, Object.assign({}, menuProps, {
|
|
14776
14795
|
open: open,
|
|
14777
14796
|
close: function close() {
|
|
@@ -14779,7 +14798,7 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
14779
14798
|
},
|
|
14780
14799
|
options: parsedOptions,
|
|
14781
14800
|
onScrollEnd: onScrollEnd,
|
|
14782
|
-
width: '100%',
|
|
14801
|
+
width: props.inputWidth || '100%',
|
|
14783
14802
|
bordered: true,
|
|
14784
14803
|
position: position,
|
|
14785
14804
|
references: {
|
|
@@ -15042,7 +15061,7 @@ var countries = {
|
|
|
15042
15061
|
var _templateObject$n, _templateObject2$i, _templateObject3$d;
|
|
15043
15062
|
var IconContainer$1 = styled__default.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n > i.icon {\n margin-top: -1px;\n }\n"])));
|
|
15044
15063
|
var RelativeContainer$3 = styled__default.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
|
|
15045
|
-
var Label$
|
|
15064
|
+
var Label$3 = styled__default.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) {
|
|
15046
15065
|
var theme = _ref.theme;
|
|
15047
15066
|
return theme.useTypography('p');
|
|
15048
15067
|
}, function (_ref2) {
|
|
@@ -15121,15 +15140,16 @@ var Component = React__default.forwardRef(function (props, ref) {
|
|
|
15121
15140
|
|
|
15122
15141
|
var options = Object.keys(countries).map(function (iso) {
|
|
15123
15142
|
return {
|
|
15124
|
-
label: {
|
|
15125
|
-
|
|
15126
|
-
|
|
15143
|
+
label: function label(option) {
|
|
15144
|
+
var country = option.data;
|
|
15145
|
+
return React__default.createElement(Label$3, null, React__default.createElement(Flag, {
|
|
15127
15146
|
iso: iso
|
|
15128
|
-
}),
|
|
15147
|
+
}), country.name, React__default.createElement("span", null, "+", country.ddi));
|
|
15129
15148
|
},
|
|
15130
15149
|
onClick: function onClick() {
|
|
15131
15150
|
setCountry(countries[iso]);
|
|
15132
|
-
}
|
|
15151
|
+
},
|
|
15152
|
+
data: countries[iso]
|
|
15133
15153
|
};
|
|
15134
15154
|
});
|
|
15135
15155
|
|
|
@@ -15373,7 +15393,7 @@ var LabelContainer$3 = styled__default.div(_templateObject$p || (_templateObject
|
|
|
15373
15393
|
if (!required) return;
|
|
15374
15394
|
return styled.css(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n :after {\n content: '*';\n }\n "])));
|
|
15375
15395
|
});
|
|
15376
|
-
var Label$
|
|
15396
|
+
var Label$4 = styled__default.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) {
|
|
15377
15397
|
var theme = _ref3.theme;
|
|
15378
15398
|
return theme.spacings.s1;
|
|
15379
15399
|
}, function (_ref4) {
|
|
@@ -15436,7 +15456,7 @@ var Switch = function Switch(props) {
|
|
|
15436
15456
|
};
|
|
15437
15457
|
var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'htmlDisabled', 'labelProps']);
|
|
15438
15458
|
htmlProps.disabled = props.disabled || props.htmlDisabled;
|
|
15439
|
-
return React__default.createElement(Label$
|
|
15459
|
+
return React__default.createElement(Label$4, Object.assign({}, props.labelProps || {}, {
|
|
15440
15460
|
disabled: disabled ? 1 : 0,
|
|
15441
15461
|
invalid: invalid ? 1 : 0
|
|
15442
15462
|
}), label.label && React__default.createElement(LabelContainer$3, {
|
|
@@ -15446,7 +15466,7 @@ var Switch = function Switch(props) {
|
|
|
15446
15466
|
})), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
|
|
15447
15467
|
};
|
|
15448
15468
|
|
|
15449
|
-
var _templateObject$q, _templateObject2$l, _templateObject3$g, _templateObject4$d, _templateObject5$b, _templateObject6$9, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject10$
|
|
15469
|
+
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;
|
|
15450
15470
|
var bullet = styled.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) {
|
|
15451
15471
|
var theme = _ref.theme;
|
|
15452
15472
|
return theme.spacings.s4;
|
|
@@ -15461,7 +15481,7 @@ var bullet = styled.css(_templateObject$q || (_templateObject$q = _taggedTemplat
|
|
|
15461
15481
|
return theme.getColor('black', 10);
|
|
15462
15482
|
});
|
|
15463
15483
|
var Input$2 = styled__default.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);
|
|
15464
|
-
var Label$
|
|
15484
|
+
var Label$5 = styled__default.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) {
|
|
15465
15485
|
var theme = _ref5.theme;
|
|
15466
15486
|
return theme.useTypography('p');
|
|
15467
15487
|
}, function (_ref6) {
|
|
@@ -15479,7 +15499,7 @@ var Label$4 = styled__default.label(_templateObject3$g || (_templateObject3$g =
|
|
|
15479
15499
|
if (!required) return;
|
|
15480
15500
|
return styled.css(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
15481
15501
|
});
|
|
15482
|
-
var InputContainer = styled__default.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) {
|
|
15502
|
+
var InputContainer$1 = styled__default.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) {
|
|
15483
15503
|
var theme = _ref10.theme,
|
|
15484
15504
|
invalid = _ref10.invalid;
|
|
15485
15505
|
|
|
@@ -15490,14 +15510,14 @@ var InputContainer = styled__default.div(_templateObject6$9 || (_templateObject6
|
|
|
15490
15510
|
return styled.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);
|
|
15491
15511
|
});
|
|
15492
15512
|
var MinMaxLabelContainer = styled__default.div(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
|
|
15493
|
-
var LabelsContainer = styled__default.div(_templateObject10$
|
|
15513
|
+
var LabelsContainer = styled__default.div(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
|
|
15494
15514
|
var position = _ref11.position;
|
|
15495
15515
|
|
|
15496
15516
|
if (position === 'bottom') {
|
|
15497
|
-
return styled.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);
|
|
15517
|
+
return styled.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);
|
|
15498
15518
|
}
|
|
15499
15519
|
|
|
15500
|
-
return styled.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);
|
|
15520
|
+
return styled.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);
|
|
15501
15521
|
});
|
|
15502
15522
|
var SelectedArea = styled__default.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) {
|
|
15503
15523
|
var theme = _ref12.theme;
|
|
@@ -15514,7 +15534,7 @@ var Marker = styled__default.div(_templateObject15$1 || (_templateObject15$1 = _
|
|
|
15514
15534
|
var bullet = _ref15.bullet,
|
|
15515
15535
|
theme = _ref15.theme;
|
|
15516
15536
|
if (!bullet) return;
|
|
15517
|
-
return styled.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));
|
|
15537
|
+
return styled.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));
|
|
15518
15538
|
});
|
|
15519
15539
|
|
|
15520
15540
|
var getMarkers = function getMarkers(props) {
|
|
@@ -15632,13 +15652,13 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15632
15652
|
onChange: onChange,
|
|
15633
15653
|
value: value
|
|
15634
15654
|
});
|
|
15635
|
-
return React__default.createElement(Label$
|
|
15655
|
+
return React__default.createElement(Label$5, {
|
|
15636
15656
|
required: required ? 1 : 0,
|
|
15637
15657
|
disabled: disabled ? 1 : 0,
|
|
15638
15658
|
width: width
|
|
15639
15659
|
}, React__default.createElement("div", null, label), React__default.createElement(LabelsContainer, {
|
|
15640
15660
|
position: position
|
|
15641
|
-
}, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer, {
|
|
15661
|
+
}, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer$1, {
|
|
15642
15662
|
invalid: invalid ? 1 : 0
|
|
15643
15663
|
}, markers.length > 0 && React__default.createElement(MarkersContainer, null, markers.map(function (marker, index) {
|
|
15644
15664
|
var z = markers.length - 2;
|
|
@@ -15670,7 +15690,7 @@ var LabelContainer$4 = styled__default.div(_templateObject$r || (_templateObject
|
|
|
15670
15690
|
var theme = _ref.theme;
|
|
15671
15691
|
return theme.useTypography('p');
|
|
15672
15692
|
});
|
|
15673
|
-
var Label$
|
|
15693
|
+
var Label$6 = styled__default.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) {
|
|
15674
15694
|
var theme = _ref2.theme;
|
|
15675
15695
|
return theme.spacings.s1;
|
|
15676
15696
|
}, function (_ref3) {
|
|
@@ -15716,7 +15736,7 @@ var RadioButton = function RadioButton(props) {
|
|
|
15716
15736
|
required = props.required,
|
|
15717
15737
|
invalid = props.invalid;
|
|
15718
15738
|
var htmlProps = filterObject(props, ['label', 'invalid', 'required']);
|
|
15719
|
-
return React__default.createElement(Label$
|
|
15739
|
+
return React__default.createElement(Label$6, {
|
|
15720
15740
|
disabled: disabled ? 1 : 0,
|
|
15721
15741
|
required: required ? 1 : 0,
|
|
15722
15742
|
invalid: invalid ? 1 : 0
|
|
@@ -15908,7 +15928,7 @@ var parse = function parse(value) {
|
|
|
15908
15928
|
});
|
|
15909
15929
|
};
|
|
15910
15930
|
|
|
15911
|
-
var _templateObject$s, _templateObject2$n, _templateObject3$i, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject10$
|
|
15931
|
+
var _templateObject$s, _templateObject2$n, _templateObject3$i, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject10$7, _templateObject11$5;
|
|
15912
15932
|
var RelativeContainer$5 = styled__default.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"])));
|
|
15913
15933
|
var LabelContainer$5 = styled__default.div(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
|
|
15914
15934
|
var theme = _ref.theme;
|
|
@@ -15951,7 +15971,7 @@ var Button$4 = styled__default.button(_templateObject8$9 || (_templateObject8$9
|
|
|
15951
15971
|
if (!onClick) return;
|
|
15952
15972
|
return styled.css(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15953
15973
|
});
|
|
15954
|
-
var LabelText$1 = styled__default.label(_templateObject10$
|
|
15974
|
+
var LabelText$1 = styled__default.label(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref10) {
|
|
15955
15975
|
var theme = _ref10.theme;
|
|
15956
15976
|
return theme.spacings.s1;
|
|
15957
15977
|
}, function (_ref11) {
|
|
@@ -16114,22 +16134,26 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16114
16134
|
label: 'Hoje',
|
|
16115
16135
|
onClick: function onClick() {
|
|
16116
16136
|
return setValue(intervalTypes.day.initial(props.min));
|
|
16117
|
-
}
|
|
16137
|
+
},
|
|
16138
|
+
data: {}
|
|
16118
16139
|
}, {
|
|
16119
16140
|
label: 'Semana',
|
|
16120
16141
|
onClick: function onClick() {
|
|
16121
16142
|
return setValue(intervalTypes.week.initial(props.min));
|
|
16122
|
-
}
|
|
16143
|
+
},
|
|
16144
|
+
data: {}
|
|
16123
16145
|
}, {
|
|
16124
16146
|
label: 'Mês',
|
|
16125
16147
|
onClick: function onClick() {
|
|
16126
16148
|
return setValue(intervalTypes.month.initial(props.min));
|
|
16127
|
-
}
|
|
16149
|
+
},
|
|
16150
|
+
data: {}
|
|
16128
16151
|
}, {
|
|
16129
16152
|
label: 'Personalizado',
|
|
16130
16153
|
onClick: function onClick() {
|
|
16131
16154
|
return setOpen('calendar');
|
|
16132
16155
|
},
|
|
16156
|
+
data: {},
|
|
16133
16157
|
keepOpen: true,
|
|
16134
16158
|
caret: true
|
|
16135
16159
|
}],
|
|
@@ -16237,7 +16261,7 @@ var Input$4 = React__default.forwardRef(function (props, ref) {
|
|
|
16237
16261
|
Input$4.displayName = 'Input';
|
|
16238
16262
|
|
|
16239
16263
|
var _templateObject$u, _templateObject2$o;
|
|
16240
|
-
var Label$
|
|
16264
|
+
var Label$7 = styled__default.div(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
|
|
16241
16265
|
var theme = _ref.theme;
|
|
16242
16266
|
return theme.spacings.s1;
|
|
16243
16267
|
}, function (_ref2) {
|
|
@@ -16246,8 +16270,8 @@ var Label$6 = styled__default.div(_templateObject$u || (_templateObject$u = _tag
|
|
|
16246
16270
|
return styled.css(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
16247
16271
|
});
|
|
16248
16272
|
|
|
16249
|
-
var Label$
|
|
16250
|
-
return props.children ? React__default.createElement(Label$
|
|
16273
|
+
var Label$8 = function Label(props) {
|
|
16274
|
+
return props.children ? React__default.createElement(Label$7, Object.assign({}, props)) : null;
|
|
16251
16275
|
};
|
|
16252
16276
|
|
|
16253
16277
|
var _templateObject$v;
|
|
@@ -16285,7 +16309,7 @@ var Tag$1 = function Tag$1(props) {
|
|
|
16285
16309
|
};
|
|
16286
16310
|
|
|
16287
16311
|
var _templateObject$w, _templateObject2$p, _templateObject3$j;
|
|
16288
|
-
var Label$
|
|
16312
|
+
var Label$9 = styled__default.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) {
|
|
16289
16313
|
var theme = _ref.theme;
|
|
16290
16314
|
return theme.useTypography('p');
|
|
16291
16315
|
}, function (_ref2) {
|
|
@@ -16351,10 +16375,10 @@ var Tags = React__default.forwardRef(function (props, ref) {
|
|
|
16351
16375
|
setValue([].concat(prev));
|
|
16352
16376
|
};
|
|
16353
16377
|
|
|
16354
|
-
return React__default.createElement(Label$
|
|
16378
|
+
return React__default.createElement(Label$9, {
|
|
16355
16379
|
disabled: props.disabled,
|
|
16356
16380
|
width: props.width
|
|
16357
|
-
}, React__default.createElement(Label$
|
|
16381
|
+
}, React__default.createElement(Label$8, {
|
|
16358
16382
|
required: props.required
|
|
16359
16383
|
}, props.label), React__default.createElement(TagContainer, {
|
|
16360
16384
|
invalid: props.invalid
|
|
@@ -16981,7 +17005,7 @@ var AppliedFilters = Object.assign(function (props) {
|
|
|
16981
17005
|
Menu: AppliedFiltersMenu
|
|
16982
17006
|
});
|
|
16983
17007
|
|
|
16984
|
-
var _templateObject$A, _templateObject2$s, _templateObject3$m, _templateObject4$h, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$a, _templateObject10$
|
|
17008
|
+
var _templateObject$A, _templateObject2$s, _templateObject3$m, _templateObject4$h, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$a, _templateObject10$8;
|
|
16985
17009
|
var Container$9 = styled__default.div(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: #fff;\n border: 1px solid #d4d4d5;\n border-radius: 4px;\n border-left-width: 5px;\n padding: 14px;\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n"])), function (props) {
|
|
16986
17010
|
return props.size === 'mini' && styled.css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
|
|
16987
17011
|
}, function (props) {
|
|
@@ -16999,7 +17023,7 @@ var Container$9 = styled__default.div(_templateObject$A || (_templateObject$A =
|
|
|
16999
17023
|
}, function (props) {
|
|
17000
17024
|
return props.borderType === 'danger' && styled.css(_templateObject9$a || (_templateObject9$a = _taggedTemplateLiteralLoose(["\n border-left-color: #e23851;\n "])));
|
|
17001
17025
|
}, function (props) {
|
|
17002
|
-
return props.borderType === 'none' && styled.css(_templateObject10$
|
|
17026
|
+
return props.borderType === 'none' && styled.css(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n border: 1px solid #d4d4d5;\n "])));
|
|
17003
17027
|
});
|
|
17004
17028
|
|
|
17005
17029
|
var _excluded$1 = ["children"];
|
|
@@ -17279,8 +17303,9 @@ var Submenu = function Submenu(props) {
|
|
|
17279
17303
|
|
|
17280
17304
|
var optionsParser = function optionsParser(option) {
|
|
17281
17305
|
return {
|
|
17282
|
-
label: option.label,
|
|
17283
|
-
onClick: onClickOption
|
|
17306
|
+
label: typeof option.label === 'string' ? option.label : option.label.element,
|
|
17307
|
+
onClick: onClickOption,
|
|
17308
|
+
data: {}
|
|
17284
17309
|
};
|
|
17285
17310
|
};
|
|
17286
17311
|
|
|
@@ -17342,7 +17367,7 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
17342
17367
|
|
|
17343
17368
|
var items = props.items.map(function (item) {
|
|
17344
17369
|
return {
|
|
17345
|
-
label: item.label,
|
|
17370
|
+
label: typeof item.label === 'string' ? item.label : item.label.element,
|
|
17346
17371
|
delimiter: item.delimiter,
|
|
17347
17372
|
keepOpen: true,
|
|
17348
17373
|
caret: true,
|
|
@@ -17350,7 +17375,8 @@ var FiltersMenu = function FiltersMenu(props) {
|
|
|
17350
17375
|
setActive(function (prev) {
|
|
17351
17376
|
return prev === index ? -1 : index;
|
|
17352
17377
|
});
|
|
17353
|
-
}
|
|
17378
|
+
},
|
|
17379
|
+
data: {}
|
|
17354
17380
|
};
|
|
17355
17381
|
});
|
|
17356
17382
|
var selected = active >= 0 && active < props.items.length ? props.items[active] : undefined;
|
|
@@ -17415,7 +17441,7 @@ var useContext$2 = function useContext() {
|
|
|
17415
17441
|
return React__default.useContext(Provider$2);
|
|
17416
17442
|
};
|
|
17417
17443
|
|
|
17418
|
-
var _templateObject$D, _templateObject2$t, _templateObject3$n, _templateObject4$i, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$b, _templateObject10$
|
|
17444
|
+
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;
|
|
17419
17445
|
var aligns = {
|
|
17420
17446
|
self: {
|
|
17421
17447
|
horizontal: {
|
|
@@ -17498,7 +17524,7 @@ var Col = styled__default.div(_templateObject$D || (_templateObject$D = _taggedT
|
|
|
17498
17524
|
|
|
17499
17525
|
if (align.text !== undefined) {
|
|
17500
17526
|
var _v4 = align.text;
|
|
17501
|
-
styles.push(styled.css(_templateObject10$
|
|
17527
|
+
styles.push(styled.css(_templateObject10$9 || (_templateObject10$9 = _taggedTemplateLiteralLoose(["\n text-align: ", ";\n "])), _v4));
|
|
17502
17528
|
}
|
|
17503
17529
|
|
|
17504
17530
|
return styles;
|
|
@@ -17574,7 +17600,7 @@ var Grid$1 = function Grid$1(props) {
|
|
|
17574
17600
|
}, React__default.createElement(Grid, Object.assign({}, gridProps)));
|
|
17575
17601
|
};
|
|
17576
17602
|
|
|
17577
|
-
var _templateObject$F, _templateObject2$v, _templateObject3$p, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$c, _templateObject10$
|
|
17603
|
+
var _templateObject$F, _templateObject2$v, _templateObject3$p, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$c, _templateObject10$a;
|
|
17578
17604
|
var horizontalAligns = {
|
|
17579
17605
|
around: 'space-around',
|
|
17580
17606
|
between: 'space-between',
|
|
@@ -17649,7 +17675,7 @@ var Row = styled__default.div(_templateObject$F || (_templateObject$F = _taggedT
|
|
|
17649
17675
|
if (!hover) return;
|
|
17650
17676
|
var h = hover === true ? ['lightGrey', 50] : hover;
|
|
17651
17677
|
var c = Array.isArray(h) ? theme.getColor.apply(theme, h) : theme.colors[h];
|
|
17652
|
-
return styled.css(_templateObject10$
|
|
17678
|
+
return styled.css(_templateObject10$a || (_templateObject10$a = _taggedTemplateLiteralLoose(["\n :hover {\n background-color: ", ";\n }\n "])), c);
|
|
17653
17679
|
});
|
|
17654
17680
|
|
|
17655
17681
|
var Row$1 = function Row$1(props) {
|
|
@@ -17702,7 +17728,7 @@ var widths = {
|
|
|
17702
17728
|
default: '642.5px'
|
|
17703
17729
|
};
|
|
17704
17730
|
|
|
17705
|
-
var _templateObject$G, _templateObject2$w, _templateObject3$q, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$d, _templateObject10$
|
|
17731
|
+
var _templateObject$G, _templateObject2$w, _templateObject3$q, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$d, _templateObject10$b;
|
|
17706
17732
|
var Background = styled__default.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) {
|
|
17707
17733
|
var theme = _ref.theme;
|
|
17708
17734
|
return theme.getColor('black', 25);
|
|
@@ -17735,7 +17761,7 @@ var Container$b = styled__default.div(_templateObject9$d || (_templateObject9$d
|
|
|
17735
17761
|
customSize = _ref6.customSize,
|
|
17736
17762
|
color = _ref6.color,
|
|
17737
17763
|
inverted = _ref6.inverted;
|
|
17738
|
-
return styled.css(_templateObject10$
|
|
17764
|
+
return styled.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));
|
|
17739
17765
|
});
|
|
17740
17766
|
|
|
17741
17767
|
var _excluded$2 = ["children"];
|
|
@@ -17932,7 +17958,7 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
17932
17958
|
Audit: Audit
|
|
17933
17959
|
});
|
|
17934
17960
|
|
|
17935
|
-
var _templateObject$K, _templateObject2$x, _templateObject3$r, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$e, _templateObject10$
|
|
17961
|
+
var _templateObject$K, _templateObject2$x, _templateObject3$r, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$e, _templateObject10$c, _templateObject11$7;
|
|
17936
17962
|
var Container$c = styled__default.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
17937
17963
|
var Header$6 = styled__default.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
17938
17964
|
var HeaderImage = styled__default.div(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -17947,7 +17973,7 @@ var HeaderLine = styled__default.div(_templateObject6$g || (_templateObject6$g =
|
|
|
17947
17973
|
}, function (props) {
|
|
17948
17974
|
return props.size === 'medium' && styled.css(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
17949
17975
|
}, function (props) {
|
|
17950
|
-
return props.size === 'large' && styled.css(_templateObject10$
|
|
17976
|
+
return props.size === 'large' && styled.css(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
17951
17977
|
});
|
|
17952
17978
|
var MainLine = styled__default(HeaderLine)(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
17953
17979
|
|
|
@@ -18218,7 +18244,7 @@ var Template6 = function Template6(props) {
|
|
|
18218
18244
|
})));
|
|
18219
18245
|
};
|
|
18220
18246
|
|
|
18221
|
-
var _templateObject$R, _templateObject2$E, _templateObject3$y, _templateObject4$r, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$h, _templateObject10$
|
|
18247
|
+
var _templateObject$R, _templateObject2$E, _templateObject3$y, _templateObject4$r, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$h, _templateObject10$d;
|
|
18222
18248
|
var Container$i = styled__default.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"])));
|
|
18223
18249
|
var Header$9 = styled__default.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"])));
|
|
18224
18250
|
var HeaderLine$6 = styled__default.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) {
|
|
@@ -18240,7 +18266,7 @@ var CustomLine$3 = styled__default(HeaderLine$6)(_templateObject8$j || (_templat
|
|
|
18240
18266
|
return props.color;
|
|
18241
18267
|
});
|
|
18242
18268
|
var Main$2 = styled__default.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"])));
|
|
18243
|
-
var Circle$1 = styled__default.div(_templateObject10$
|
|
18269
|
+
var Circle$1 = styled__default.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"])));
|
|
18244
18270
|
|
|
18245
18271
|
var Template7 = function Template7(props) {
|
|
18246
18272
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18295,7 +18321,7 @@ var Template8 = function Template8(props) {
|
|
|
18295
18321
|
})));
|
|
18296
18322
|
};
|
|
18297
18323
|
|
|
18298
|
-
var _templateObject$T, _templateObject2$G, _templateObject3$A, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$j, _templateObject10$
|
|
18324
|
+
var _templateObject$T, _templateObject2$G, _templateObject3$A, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$j, _templateObject10$e;
|
|
18299
18325
|
var Container$k = styled__default.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"])));
|
|
18300
18326
|
var Header$b = styled__default.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"])));
|
|
18301
18327
|
var HeaderLine$8 = styled__default.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) {
|
|
@@ -18317,7 +18343,7 @@ var CustomLine$5 = styled__default(HeaderLine$8)(_templateObject8$l || (_templat
|
|
|
18317
18343
|
return props.color;
|
|
18318
18344
|
});
|
|
18319
18345
|
var Main$4 = styled__default.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"])));
|
|
18320
|
-
var Circle$2 = styled__default.div(_templateObject10$
|
|
18346
|
+
var Circle$2 = styled__default.div(_templateObject10$e || (_templateObject10$e = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
18321
18347
|
|
|
18322
18348
|
var Template8$1 = function Template8(props) {
|
|
18323
18349
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18334,7 +18360,7 @@ var Template8$1 = function Template8(props) {
|
|
|
18334
18360
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
18335
18361
|
};
|
|
18336
18362
|
|
|
18337
|
-
var _templateObject$U, _templateObject2$H, _templateObject3$B, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$k, _templateObject10$
|
|
18363
|
+
var _templateObject$U, _templateObject2$H, _templateObject3$B, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$k, _templateObject10$f, _templateObject11$8;
|
|
18338
18364
|
var Container$l = styled__default.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"])));
|
|
18339
18365
|
var Header$c = styled__default.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"])));
|
|
18340
18366
|
var HeaderLine$9 = styled__default.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) {
|
|
@@ -18356,7 +18382,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$m || (_templat
|
|
|
18356
18382
|
return props.color;
|
|
18357
18383
|
});
|
|
18358
18384
|
var GraphLine = styled__default(CustomLine$6)(_templateObject9$k || (_templateObject9$k = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
18359
|
-
var Main$5 = styled__default.div(_templateObject10$
|
|
18385
|
+
var Main$5 = styled__default.div(_templateObject10$f || (_templateObject10$f = _taggedTemplateLiteralLoose(["\n flex: 1;\n padding: 0 7px 72px 7px;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: center;\n"])));
|
|
18360
18386
|
var Circle$3 = styled__default.div(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
18361
18387
|
|
|
18362
18388
|
var Template10 = function Template10(props) {
|