@mw-kit/mw-ui 1.7.80 → 1.7.82
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
|
@@ -16034,7 +16034,8 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
16034
16034
|
minLabel = props.minLabel,
|
|
16035
16035
|
maxLabel = props.maxLabel,
|
|
16036
16036
|
width = props.width,
|
|
16037
|
-
setValue = props.setValue
|
|
16037
|
+
setValue = props.setValue,
|
|
16038
|
+
hideNavbar = props.hideNavbar;
|
|
16038
16039
|
|
|
16039
16040
|
var _Form$useContext = Form.useContext(props.name),
|
|
16040
16041
|
isRequired = _Form$useContext.isRequired,
|
|
@@ -16128,7 +16129,7 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
16128
16129
|
decrement = _ref.decrement,
|
|
16129
16130
|
canDecrement = _ref.canDecrement;
|
|
16130
16131
|
|
|
16131
|
-
var inputProps = filterObject(props, ['label', 'minLabel', 'maxLabel', 'invalid', 'required', 'width', 'onChange', 'step', 'value'], {
|
|
16132
|
+
var inputProps = filterObject(props, ['label', 'minLabel', 'maxLabel', 'invalid', 'required', 'width', 'onChange', 'step', 'value', 'hideNavbar'], {
|
|
16132
16133
|
min: min,
|
|
16133
16134
|
max: max,
|
|
16134
16135
|
step: step,
|
|
@@ -16162,7 +16163,7 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
16162
16163
|
}, inputProps, {
|
|
16163
16164
|
"$activeBullet": (strict === true ? markers[value].value : value) !== 0,
|
|
16164
16165
|
"$bulletSize": bulletSize
|
|
16165
|
-
})), React__default.createElement(NavBar, {
|
|
16166
|
+
})), !hideNavbar && React__default.createElement(NavBar, {
|
|
16166
16167
|
"$position": position,
|
|
16167
16168
|
"$strict": strict
|
|
16168
16169
|
}, React__default.createElement("div", {
|
|
@@ -19098,7 +19099,7 @@ var ProgressBar = function ProgressBar(props) {
|
|
|
19098
19099
|
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
19100
|
};
|
|
19100
19101
|
|
|
19101
|
-
var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$w, _templateObject5$t, _templateObject6$q, _templateObject7$q, _templateObject8$n;
|
|
19102
|
+
var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$w, _templateObject5$t, _templateObject6$q, _templateObject7$q, _templateObject8$n, _templateObject9$k;
|
|
19102
19103
|
var Container$n = styled__default.div(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
19103
19104
|
var delimiters = {
|
|
19104
19105
|
blue: ['blue'],
|
|
@@ -19138,15 +19139,18 @@ var Tabs = styled__default.ul(_templateObject2$Q || (_templateObject2$Q = _tagge
|
|
|
19138
19139
|
internal = _ref3.$internal;
|
|
19139
19140
|
return internal ? theme.spacings.s6 : 0;
|
|
19140
19141
|
});
|
|
19141
|
-
var Tab = styled__default.div(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n
|
|
19142
|
-
var
|
|
19143
|
-
|
|
19144
|
-
|
|
19145
|
-
|
|
19146
|
-
|
|
19147
|
-
|
|
19148
|
-
|
|
19142
|
+
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) {
|
|
19143
|
+
var onClick = _ref4.onClick;
|
|
19144
|
+
return onClick && styled.css(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
19145
|
+
}, function (_ref5) {
|
|
19146
|
+
var theme = _ref5.theme,
|
|
19147
|
+
active = _ref5.$active,
|
|
19148
|
+
internal = _ref5.$internal;
|
|
19149
|
+
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
19150
|
var theme = _ref6.theme;
|
|
19151
|
+
return theme.useTypography('h4');
|
|
19152
|
+
}) : 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) {
|
|
19153
|
+
var theme = _ref7.theme;
|
|
19150
19154
|
return theme.useTypography('h2');
|
|
19151
19155
|
}), theme.colors[active ? 'white' : 'darkBlue']);
|
|
19152
19156
|
});
|
|
@@ -19229,14 +19233,16 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
19229
19233
|
index: index,
|
|
19230
19234
|
active: [active, setActive],
|
|
19231
19235
|
options: [options, setOptions]
|
|
19232
|
-
}), React__default.createElement(Tab, {
|
|
19233
|
-
|
|
19234
|
-
|
|
19236
|
+
}), React__default.createElement(Tab, Object.assign({}, index === active ? {
|
|
19237
|
+
$active: true
|
|
19238
|
+
} : {
|
|
19235
19239
|
onClick: function onClick() {
|
|
19236
19240
|
return setActive(index);
|
|
19237
|
-
}
|
|
19241
|
+
}
|
|
19242
|
+
}, {
|
|
19243
|
+
"$internal": props.internal,
|
|
19238
19244
|
children: tab.label
|
|
19239
|
-
}));
|
|
19245
|
+
})));
|
|
19240
19246
|
})), options.map(function (tab, index) {
|
|
19241
19247
|
if (!('component' in tab)) return React__default.createElement(React__default.Fragment, {
|
|
19242
19248
|
key: index
|