@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 CHANGED
@@ -12228,7 +12228,7 @@ var EllipsisContainer$1 = function EllipsisContainer$1(props) {
12228
12228
  }));
12229
12229
  };
12230
12230
 
12231
- 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;
12231
+ 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;
12232
12232
  var IconContainer = styled__default.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"])));
12233
12233
  var ChildrenContainer = styled__default(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) {
12234
12234
  var theme = _ref.theme;
@@ -12291,7 +12291,7 @@ var InputContainer = styled__default.div(_templateObject11$1 || (_templateObject
12291
12291
  var width = _ref12.width;
12292
12292
  return width || '100%';
12293
12293
  });
12294
- var Label = styled__default.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) {
12294
+ var Label = styled__default.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) {
12295
12295
  var theme = _ref13.theme;
12296
12296
  return theme.useTypography('p');
12297
12297
  }, function (_ref14) {
@@ -12310,44 +12310,48 @@ var Label = styled__default.label(_templateObject12$1 || (_templateObject12$1 =
12310
12310
  paddingless = _ref17.$paddingless;
12311
12311
  return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
12312
12312
  }, function (_ref18) {
12313
- var readOnly = _ref18.$readOnly,
12314
- disabled = _ref18.$disabled,
12315
- loading = _ref18.$loading;
12316
- if (loading || readOnly || disabled) return;
12317
- return styled.css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12313
+ var disabled = _ref18.$disabled;
12314
+ if (!disabled) return;
12315
+ return styled.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);
12318
12316
  }, function (_ref19) {
12319
- var theme = _ref19.theme,
12320
- iconWidths = _ref19.$iconWidths,
12321
- position = _ref19.$iconPosition,
12322
- paddingless = _ref19.$paddingless;
12317
+ var readOnly = _ref19.$readOnly,
12318
+ disabled = _ref19.$disabled,
12319
+ loading = _ref19.$loading;
12320
+ if (loading || readOnly || disabled) return;
12321
+ return styled.css(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12322
+ }, function (_ref20) {
12323
+ var theme = _ref20.theme,
12324
+ iconWidths = _ref20.$iconWidths,
12325
+ position = _ref20.$iconPosition,
12326
+ paddingless = _ref20.$paddingless;
12323
12327
  if (iconWidths.length < 1) return;
12324
12328
  var width = "calc(" + iconWidths.join(' + ') + " + " + theme.spacings.s1 + " / 2 * " + (iconWidths.length - 1) + ")";
12325
12329
  var padding = paddingless ? '0px' : theme.spacings.s3;
12326
12330
 
12327
12331
  if (position === 'right') {
12328
- return styled.css(_templateObject15$1 || (_templateObject15$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);
12332
+ return styled.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);
12329
12333
  }
12330
12334
 
12331
- return styled.css(_templateObject16$1 || (_templateObject16$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);
12335
+ return styled.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);
12332
12336
  });
12333
- var LabelText = styled__default.div(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n\n ", "\n\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref20) {
12334
- var viewMode = _ref20.$viewMode;
12337
+ var LabelText = styled__default.div(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n\n ", "\n\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref21) {
12338
+ var viewMode = _ref21.$viewMode;
12335
12339
  if (!viewMode) return;
12336
- return styled.css(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n "])));
12337
- }, function (_ref21) {
12338
- var theme = _ref21.theme,
12339
- viewMode = _ref21.$viewMode;
12340
- return theme.spacings[viewMode ? 's3' : 's1'];
12340
+ return styled.css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n "])));
12341
12341
  }, function (_ref22) {
12342
- var required = _ref22.$required,
12342
+ var theme = _ref22.theme,
12343
12343
  viewMode = _ref22.$viewMode;
12344
+ return theme.spacings[viewMode ? 's3' : 's1'];
12345
+ }, function (_ref23) {
12346
+ var required = _ref23.$required,
12347
+ viewMode = _ref23.$viewMode;
12344
12348
  if (!required || viewMode) return;
12345
- return styled.css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12349
+ return styled.css(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12346
12350
  });
12347
- var ViewModeContainer = styled__default.div(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref23) {
12348
- var children = _ref23.children;
12351
+ var ViewModeContainer = styled__default.div(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref24) {
12352
+ var children = _ref24.children;
12349
12353
  if (children) return;
12350
- return styled.css(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n :before {\n content: ' ';\n white-space: pre;\n }\n "])));
12354
+ return styled.css(_templateObject22$1 || (_templateObject22$1 = _taggedTemplateLiteralLoose(["\n :before {\n content: ' ';\n white-space: pre;\n }\n "])));
12351
12355
  });
12352
12356
 
12353
12357
  var defaultValue = {