@mw-kit/mw-ui 1.7.79 → 1.7.81

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.
@@ -19095,7 +19095,7 @@ var ProgressBar = function ProgressBar(props) {
19095
19095
  return React__default.createElement(Container$m, null, React__default.createElement(Progress, Object.assign({}, props), React__default.createElement("div", null)), React__default.createElement("span", null, " ", props.value || '0', "%"));
19096
19096
  };
19097
19097
 
19098
- var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$w, _templateObject5$t, _templateObject6$q, _templateObject7$q, _templateObject8$n;
19098
+ var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$w, _templateObject5$t, _templateObject6$q, _templateObject7$q, _templateObject8$n, _templateObject9$k;
19099
19099
  var Container$n = styled.div(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
19100
19100
  var delimiters = {
19101
19101
  blue: ['blue'],
@@ -19135,15 +19135,18 @@ var Tabs = styled.ul(_templateObject2$Q || (_templateObject2$Q = _taggedTemplate
19135
19135
  internal = _ref3.$internal;
19136
19136
  return internal ? theme.spacings.s6 : 0;
19137
19137
  });
19138
- var Tab = styled.div(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n ", "\n\n transition-property: padding-right, background-color, color;\n transition-duration: 0.25s;\n transition-timing-function: ease-in-out;\n"])), function (_ref4) {
19139
- var theme = _ref4.theme,
19140
- active = _ref4.$active,
19141
- internal = _ref4.$internal;
19142
- return css(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: ", ";\n gap: ", ";\n\n ", "\n\n color: ", ";\n "])), theme.colors[active ? 'blue' : 'white'], theme.spacings.s3, theme.spacings.s3, internal ? css(_templateObject7$q || (_templateObject7$q = _taggedTemplateLiteralLoose(["\n border-radius: 4px 4px 0 0;\n\n ", "\n line-height: 17px;\n "])), function (_ref5) {
19143
- var theme = _ref5.theme;
19144
- return theme.useTypography('h4');
19145
- }) : css(_templateObject8$n || (_templateObject8$n = _taggedTemplateLiteralLoose(["\n box-shadow: 0px 3px 6px ", ";\n\n ", "\n line-height: 19px;\n "])), theme.getColor('black', 15), function (_ref6) {
19138
+ var Tab = styled.div(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n ", "\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n ", "\n\n transition-property: padding-right, background-color, color;\n transition-duration: 0.25s;\n transition-timing-function: ease-in-out;\n"])), function (_ref4) {
19139
+ var onClick = _ref4.onClick;
19140
+ return onClick && css(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
19141
+ }, function (_ref5) {
19142
+ var theme = _ref5.theme,
19143
+ active = _ref5.$active,
19144
+ internal = _ref5.$internal;
19145
+ return css(_templateObject7$q || (_templateObject7$q = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: ", ";\n gap: ", ";\n\n ", "\n\n color: ", ";\n "])), theme.colors[active ? 'blue' : 'white'], theme.spacings.s3, theme.spacings.s3, internal ? css(_templateObject8$n || (_templateObject8$n = _taggedTemplateLiteralLoose(["\n border-radius: 4px 4px 0 0;\n\n ", "\n line-height: 17px;\n "])), function (_ref6) {
19146
19146
  var theme = _ref6.theme;
19147
+ return theme.useTypography('h4');
19148
+ }) : css(_templateObject9$k || (_templateObject9$k = _taggedTemplateLiteralLoose(["\n box-shadow: 0px 3px 6px ", ";\n\n ", "\n line-height: 19px;\n "])), theme.getColor('black', 15), function (_ref7) {
19149
+ var theme = _ref7.theme;
19147
19150
  return theme.useTypography('h2');
19148
19151
  }), theme.colors[active ? 'white' : 'darkBlue']);
19149
19152
  });
@@ -19226,14 +19229,16 @@ var Tabs$1 = function Tabs$1(props) {
19226
19229
  index: index,
19227
19230
  active: [active, setActive],
19228
19231
  options: [options, setOptions]
19229
- }), React__default.createElement(Tab, {
19230
- "$active": index === active,
19231
- "$internal": props.internal,
19232
+ }), React__default.createElement(Tab, Object.assign({}, index === active ? {
19233
+ $active: true
19234
+ } : {
19232
19235
  onClick: function onClick() {
19233
19236
  return setActive(index);
19234
- },
19237
+ }
19238
+ }, {
19239
+ "$internal": props.internal,
19235
19240
  children: tab.label
19236
- }));
19241
+ })));
19237
19242
  })), options.map(function (tab, index) {
19238
19243
  if (!('component' in tab)) return React__default.createElement(React__default.Fragment, {
19239
19244
  key: index
@@ -19242,10 +19247,13 @@ var Tabs$1 = function Tabs$1(props) {
19242
19247
  Provider = _tab$provider === void 0 ? VoidProvider : _tab$provider,
19243
19248
  Component = tab.component;
19244
19249
  return React__default.createElement(Provider, Object.assign({
19245
- key: index
19250
+ key: index,
19251
+ data: tab.data
19246
19252
  }, index === active ? {
19247
19253
  active: true,
19248
- children: React__default.createElement("div", null, React__default.createElement(Component, null))
19254
+ children: React__default.createElement("div", null, React__default.createElement(Component, {
19255
+ data: tab.data
19256
+ }))
19249
19257
  } : {
19250
19258
  active: false
19251
19259
  }));