@mw-kit/mw-ui 1.7.91 → 1.7.92
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.js +29 -25
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +29 -25
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -12225,7 +12225,7 @@ var EllipsisContainer$1 = function EllipsisContainer$1(props) {
|
|
|
12225
12225
|
}));
|
|
12226
12226
|
};
|
|
12227
12227
|
|
|
12228
|
-
var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1;
|
|
12228
|
+
var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1;
|
|
12229
12229
|
var IconContainer = styled.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n"])));
|
|
12230
12230
|
var ChildrenContainer = styled(EllipsisContainer$1)(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n bottom: 0;\n left: 0;\n line-height: 19px;\n display: flex;\n gap: calc(", " / 2);\n"])), function (_ref) {
|
|
12231
12231
|
var theme = _ref.theme;
|
|
@@ -12288,7 +12288,7 @@ var InputContainer = styled.div(_templateObject11$1 || (_templateObject11$1 = _t
|
|
|
12288
12288
|
var width = _ref12.width;
|
|
12289
12289
|
return width || '100%';
|
|
12290
12290
|
});
|
|
12291
|
-
var Label = styled.label(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 17px;\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 (_ref13) {
|
|
12291
|
+
var Label = styled.label(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 17px;\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\n ", "\n"])), function (_ref13) {
|
|
12292
12292
|
var theme = _ref13.theme;
|
|
12293
12293
|
return theme.useTypography('p');
|
|
12294
12294
|
}, function (_ref14) {
|
|
@@ -12307,44 +12307,48 @@ var Label = styled.label(_templateObject12$1 || (_templateObject12$1 = _taggedTe
|
|
|
12307
12307
|
paddingless = _ref17.$paddingless;
|
|
12308
12308
|
return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
|
|
12309
12309
|
}, function (_ref18) {
|
|
12310
|
-
var
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
if (loading || readOnly || disabled) return;
|
|
12314
|
-
return css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12310
|
+
var disabled = _ref18.$disabled;
|
|
12311
|
+
if (!disabled) return;
|
|
12312
|
+
return css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n > ", ":after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n "])), InputContainer);
|
|
12315
12313
|
}, function (_ref19) {
|
|
12316
|
-
var
|
|
12317
|
-
|
|
12318
|
-
|
|
12319
|
-
|
|
12314
|
+
var readOnly = _ref19.$readOnly,
|
|
12315
|
+
disabled = _ref19.$disabled,
|
|
12316
|
+
loading = _ref19.$loading;
|
|
12317
|
+
if (loading || readOnly || disabled) return;
|
|
12318
|
+
return css(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12319
|
+
}, function (_ref20) {
|
|
12320
|
+
var theme = _ref20.theme,
|
|
12321
|
+
iconWidths = _ref20.$iconWidths,
|
|
12322
|
+
position = _ref20.$iconPosition,
|
|
12323
|
+
paddingless = _ref20.$paddingless;
|
|
12320
12324
|
if (iconWidths.length < 1) return;
|
|
12321
12325
|
var width = "calc(" + iconWidths.join(' + ') + " + " + theme.spacings.s1 + " / 2 * " + (iconWidths.length - 1) + ")";
|
|
12322
12326
|
var padding = paddingless ? '0px' : theme.spacings.s3;
|
|
12323
12327
|
|
|
12324
12328
|
if (position === 'right') {
|
|
12325
|
-
return css(
|
|
12329
|
+
return css(_templateObject16$1 || (_templateObject16$1 = _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);
|
|
12326
12330
|
}
|
|
12327
12331
|
|
|
12328
|
-
return css(
|
|
12332
|
+
return css(_templateObject17$1 || (_templateObject17$1 = _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);
|
|
12329
12333
|
});
|
|
12330
|
-
var LabelText = styled.div(
|
|
12331
|
-
var viewMode =
|
|
12334
|
+
var LabelText = styled.div(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n\n ", "\n\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref21) {
|
|
12335
|
+
var viewMode = _ref21.$viewMode;
|
|
12332
12336
|
if (!viewMode) return;
|
|
12333
|
-
return css(
|
|
12334
|
-
}, function (_ref21) {
|
|
12335
|
-
var theme = _ref21.theme,
|
|
12336
|
-
viewMode = _ref21.$viewMode;
|
|
12337
|
-
return theme.spacings[viewMode ? 's3' : 's1'];
|
|
12337
|
+
return css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n "])));
|
|
12338
12338
|
}, function (_ref22) {
|
|
12339
|
-
var
|
|
12339
|
+
var theme = _ref22.theme,
|
|
12340
12340
|
viewMode = _ref22.$viewMode;
|
|
12341
|
+
return theme.spacings[viewMode ? 's3' : 's1'];
|
|
12342
|
+
}, function (_ref23) {
|
|
12343
|
+
var required = _ref23.$required,
|
|
12344
|
+
viewMode = _ref23.$viewMode;
|
|
12341
12345
|
if (!required || viewMode) return;
|
|
12342
|
-
return css(
|
|
12346
|
+
return css(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12343
12347
|
});
|
|
12344
|
-
var ViewModeContainer = styled.div(
|
|
12345
|
-
var children =
|
|
12348
|
+
var ViewModeContainer = styled.div(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref24) {
|
|
12349
|
+
var children = _ref24.children;
|
|
12346
12350
|
if (children) return;
|
|
12347
|
-
return css(
|
|
12351
|
+
return css(_templateObject22$1 || (_templateObject22$1 = _taggedTemplateLiteralLoose(["\n :before {\n content: ' ';\n white-space: pre;\n }\n "])));
|
|
12348
12352
|
});
|
|
12349
12353
|
|
|
12350
12354
|
var defaultValue = {
|