@mw-kit/mw-ui 1.6.10 → 1.6.11
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/index.modern.js
CHANGED
|
@@ -15251,41 +15251,45 @@ var parse = function parse(value) {
|
|
|
15251
15251
|
};
|
|
15252
15252
|
|
|
15253
15253
|
var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5;
|
|
15254
|
-
var RelativeContainer$5 = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > :nth-child(1) input {\n color: transparent;\n }\n"])))
|
|
15255
|
-
var
|
|
15256
|
-
|
|
15257
|
-
return theme.
|
|
15258
|
-
}
|
|
15254
|
+
var RelativeContainer$5 = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n\n > :nth-child(1) input {\n color: transparent;\n }\n"])), function (_ref) {
|
|
15255
|
+
var theme = _ref.theme,
|
|
15256
|
+
invalid = _ref.invalid;
|
|
15257
|
+
return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
|
|
15258
|
+
});
|
|
15259
|
+
var LabelContainer$3 = styled.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: ", ";\n"])), function (_ref2) {
|
|
15259
15260
|
var theme = _ref2.theme;
|
|
15261
|
+
return theme.useTypography('p');
|
|
15262
|
+
}, function (_ref3) {
|
|
15263
|
+
var theme = _ref3.theme;
|
|
15260
15264
|
return theme.spacings.s3;
|
|
15261
15265
|
});
|
|
15262
|
-
var Container$a = styled.div(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 1px;\n left: 1px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (
|
|
15263
|
-
var theme =
|
|
15264
|
-
iconWidth =
|
|
15265
|
-
paddingless =
|
|
15266
|
+
var Container$a = styled.div(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 1px;\n left: 1px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref4) {
|
|
15267
|
+
var theme = _ref4.theme,
|
|
15268
|
+
iconWidth = _ref4.iconWidth,
|
|
15269
|
+
paddingless = _ref4.paddingless;
|
|
15266
15270
|
|
|
15267
15271
|
if (paddingless) {
|
|
15268
15272
|
return css(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", ");\n height: 19px;\n "])), iconWidth);
|
|
15269
15273
|
}
|
|
15270
15274
|
|
|
15271
15275
|
return css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n width: calc(100% - 2px - ", " - ", ");\n height: 33px;\n padding: ", " 0 ", " ", ";\n "])), iconWidth, theme.spacings.s3, theme.spacings.s2, theme.spacings.s2, theme.spacings.s3);
|
|
15272
|
-
}, function (_ref4) {
|
|
15273
|
-
var invalid = _ref4.invalid,
|
|
15274
|
-
theme = _ref4.theme;
|
|
15275
|
-
if (!invalid) return;
|
|
15276
|
-
return css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
|
|
15277
15276
|
}, function (_ref5) {
|
|
15278
15277
|
var invalid = _ref5.invalid,
|
|
15279
15278
|
theme = _ref5.theme;
|
|
15280
15279
|
if (!invalid) return;
|
|
15281
|
-
return css(
|
|
15280
|
+
return css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
|
|
15282
15281
|
}, function (_ref6) {
|
|
15283
|
-
var
|
|
15282
|
+
var invalid = _ref6.invalid,
|
|
15283
|
+
theme = _ref6.theme;
|
|
15284
|
+
if (!invalid) return;
|
|
15285
|
+
return css(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.warningRed);
|
|
15286
|
+
}, function (_ref7) {
|
|
15287
|
+
var disabled = _ref7.disabled;
|
|
15284
15288
|
if (!disabled) return;
|
|
15285
15289
|
return css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15286
15290
|
});
|
|
15287
|
-
var Button$4 = styled.button(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (
|
|
15288
|
-
var onClick =
|
|
15291
|
+
var Button$4 = styled.button(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref8) {
|
|
15292
|
+
var onClick = _ref8.onClick;
|
|
15289
15293
|
if (!onClick) return;
|
|
15290
15294
|
return css(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
15291
15295
|
});
|
|
@@ -15371,8 +15375,12 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15371
15375
|
return React__default.createElement(RelativeContainer$5, {
|
|
15372
15376
|
ref: useOnClickOut(function () {
|
|
15373
15377
|
return setOpen(null);
|
|
15374
|
-
})
|
|
15378
|
+
}),
|
|
15379
|
+
invalid: invalid
|
|
15375
15380
|
}, React__default.createElement(Input$1, Object.assign({}, inputProps, {
|
|
15381
|
+
style: {
|
|
15382
|
+
width: 0
|
|
15383
|
+
},
|
|
15376
15384
|
type: 'text',
|
|
15377
15385
|
ref: ref,
|
|
15378
15386
|
icon: {
|
|
@@ -15388,7 +15396,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
15388
15396
|
});
|
|
15389
15397
|
}
|
|
15390
15398
|
},
|
|
15391
|
-
|
|
15399
|
+
borderless: true,
|
|
15392
15400
|
htmlDisabled: true
|
|
15393
15401
|
})), React__default.createElement(Container$a, {
|
|
15394
15402
|
iconWidth: '24px',
|