@mw-kit/mw-ui 1.7.80 → 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.
- package/dist/index.js +19 -14
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -14
- package/dist/index.modern.js.map +1 -1
- package/dist/interfaces.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19098,7 +19098,7 @@ var ProgressBar = function ProgressBar(props) {
|
|
|
19098
19098
|
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', "%"));
|
|
19099
19099
|
};
|
|
19100
19100
|
|
|
19101
|
-
var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$w, _templateObject5$t, _templateObject6$q, _templateObject7$q, _templateObject8$n;
|
|
19101
|
+
var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$w, _templateObject5$t, _templateObject6$q, _templateObject7$q, _templateObject8$n, _templateObject9$k;
|
|
19102
19102
|
var Container$n = styled__default.div(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
19103
19103
|
var delimiters = {
|
|
19104
19104
|
blue: ['blue'],
|
|
@@ -19138,15 +19138,18 @@ var Tabs = styled__default.ul(_templateObject2$Q || (_templateObject2$Q = _tagge
|
|
|
19138
19138
|
internal = _ref3.$internal;
|
|
19139
19139
|
return internal ? theme.spacings.s6 : 0;
|
|
19140
19140
|
});
|
|
19141
|
-
var Tab = styled__default.div(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n
|
|
19142
|
-
var
|
|
19143
|
-
|
|
19144
|
-
|
|
19145
|
-
|
|
19146
|
-
|
|
19147
|
-
|
|
19148
|
-
|
|
19141
|
+
var Tab = styled__default.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) {
|
|
19142
|
+
var onClick = _ref4.onClick;
|
|
19143
|
+
return onClick && styled.css(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
19144
|
+
}, function (_ref5) {
|
|
19145
|
+
var theme = _ref5.theme,
|
|
19146
|
+
active = _ref5.$active,
|
|
19147
|
+
internal = _ref5.$internal;
|
|
19148
|
+
return styled.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 ? styled.css(_templateObject8$n || (_templateObject8$n = _taggedTemplateLiteralLoose(["\n border-radius: 4px 4px 0 0;\n\n ", "\n line-height: 17px;\n "])), function (_ref6) {
|
|
19149
19149
|
var theme = _ref6.theme;
|
|
19150
|
+
return theme.useTypography('h4');
|
|
19151
|
+
}) : styled.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) {
|
|
19152
|
+
var theme = _ref7.theme;
|
|
19150
19153
|
return theme.useTypography('h2');
|
|
19151
19154
|
}), theme.colors[active ? 'white' : 'darkBlue']);
|
|
19152
19155
|
});
|
|
@@ -19229,14 +19232,16 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
19229
19232
|
index: index,
|
|
19230
19233
|
active: [active, setActive],
|
|
19231
19234
|
options: [options, setOptions]
|
|
19232
|
-
}), React__default.createElement(Tab, {
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
+
}), React__default.createElement(Tab, Object.assign({}, index === active ? {
|
|
19236
|
+
$active: true
|
|
19237
|
+
} : {
|
|
19235
19238
|
onClick: function onClick() {
|
|
19236
19239
|
return setActive(index);
|
|
19237
|
-
}
|
|
19240
|
+
}
|
|
19241
|
+
}, {
|
|
19242
|
+
"$internal": props.internal,
|
|
19238
19243
|
children: tab.label
|
|
19239
|
-
}));
|
|
19244
|
+
})));
|
|
19240
19245
|
})), options.map(function (tab, index) {
|
|
19241
19246
|
if (!('component' in tab)) return React__default.createElement(React__default.Fragment, {
|
|
19242
19247
|
key: index
|