@mw-kit/mw-ui 1.7.108 → 1.7.109
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/components/Tabs/styled.d.ts +1 -0
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -9
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -19655,12 +19655,13 @@ var TabItem = function TabItem(props) {
|
|
|
19655
19655
|
}));
|
|
19656
19656
|
};
|
|
19657
19657
|
|
|
19658
|
-
var _templateObject$1c, _templateObject2$S, _templateObject3$J;
|
|
19658
|
+
var _templateObject$1c, _templateObject2$S, _templateObject3$J, _templateObject4$x;
|
|
19659
19659
|
var delimiters = {
|
|
19660
19660
|
blue: ['blue'],
|
|
19661
19661
|
grey: ['warningGray']
|
|
19662
19662
|
};
|
|
19663
|
-
var
|
|
19663
|
+
var ComponentContainer = styled.div(_templateObject$1c || (_templateObject$1c = _taggedTemplateLiteralLoose([""])));
|
|
19664
|
+
var Tabs = styled.div(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteralLoose(["\n position: relative;\n overflow: hidden;\n\n display: flex;\n width: 100%;\n white-space: nowrap;\n\n ", "\n\n ", "\n\n\n /* exibe as setas de navega\xE7\xE3o vis\xEDveis ao passar o mouse sobre o container */\n &:hover .scroll-arrow.visible:nth-child(1) {\n left: 0;\n }\n & .scroll-arrow:nth-child(1) {\n left: -16px;\n }\n\n &:hover .scroll-arrow.visible:nth-last-child(1) {\n right: 0;\n }\n & .scroll-arrow:nth-last-child(1) {\n right: -16px;\n }\n"])), function (_ref) {
|
|
19664
19665
|
var spacing = _ref.$spacing;
|
|
19665
19666
|
|
|
19666
19667
|
var _getSpacings$split = getSpacings(spacing || {}, {
|
|
@@ -19674,13 +19675,13 @@ var Tabs = styled.div(_templateObject$1c || (_templateObject$1c = _taggedTemplat
|
|
|
19674
19675
|
bottom = _getSpacings$split[2],
|
|
19675
19676
|
left = _getSpacings$split[3];
|
|
19676
19677
|
|
|
19677
|
-
return css(
|
|
19678
|
+
return css(_templateObject3$J || (_templateObject3$J = _taggedTemplateLiteralLoose(["\n margin: ", " 0 ", " 0;\n padding: 0 ", " 0 ", ";\n "])), top, bottom, right, left);
|
|
19678
19679
|
}, function (_ref2) {
|
|
19679
19680
|
var theme = _ref2.theme,
|
|
19680
19681
|
internal = _ref2.$internal,
|
|
19681
19682
|
delimiter = _ref2.$delimiter;
|
|
19682
19683
|
var border = delimiter === 'none' ? 'none' : internal ? "1px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'grey']) : "2px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'blue']);
|
|
19683
|
-
return css(
|
|
19684
|
+
return css(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n border-bottom: ", ";\n + ", " {\n border: 1px solid ", ";\n border-top-width: 0px;\n border-radius: 0px 0px 2px 2px;\n padding: ", ";\n }\n "])), border, ComponentContainer, theme.getColor.apply(theme, delimiters.grey), theme.spacings.s3);
|
|
19684
19685
|
});
|
|
19685
19686
|
|
|
19686
19687
|
var VoidProvider = function VoidProvider(props) {
|
|
@@ -19762,7 +19763,7 @@ var Component$3 = function Component(props) {
|
|
|
19762
19763
|
setLabel: setLabel
|
|
19763
19764
|
}, index === active ? {
|
|
19764
19765
|
active: true,
|
|
19765
|
-
children: React__default.createElement(
|
|
19766
|
+
children: React__default.createElement(ComponentContainer, null, React__default.createElement(Component, {
|
|
19766
19767
|
data: tab.data,
|
|
19767
19768
|
label: tab.label,
|
|
19768
19769
|
setLabel: setLabel
|
|
@@ -19789,7 +19790,7 @@ var TextArea = function TextArea(props) {
|
|
|
19789
19790
|
return React__default.createElement(Container$q, Object.assign({}, props));
|
|
19790
19791
|
};
|
|
19791
19792
|
|
|
19792
|
-
var _templateObject$1e, _templateObject2$T, _templateObject3$K, _templateObject4$
|
|
19793
|
+
var _templateObject$1e, _templateObject2$T, _templateObject3$K, _templateObject4$y, _templateObject5$t, _templateObject6$q;
|
|
19793
19794
|
var Container$r = styled.div(_templateObject$1e || (_templateObject$1e = _taggedTemplateLiteralLoose(["\n border-radius: 4px;\n width: ", ";\n height: 88px;\n border: 1px solid transparent;\n position: relative;\n\n ", "\n\n ", "\n\n ", "\n\n svg {\n cursor: pointer;\n position: absolute;\n top: 14px;\n right: 14px;\n width: 13px;\n height: 13px;\n }\n"])), function (props) {
|
|
19794
19795
|
return props.size === 'large' ? '837px' : '460px';
|
|
19795
19796
|
}, function (props) {
|
|
@@ -19797,7 +19798,7 @@ var Container$r = styled.div(_templateObject$1e || (_templateObject$1e = _tagged
|
|
|
19797
19798
|
}, function (props) {
|
|
19798
19799
|
return props.color === 'error' && css(_templateObject3$K || (_templateObject3$K = _taggedTemplateLiteralLoose(["\n background-color: #fff6f6;\n opacity: 1;\n border-color: #973937;\n h4 {\n color: #973937;\n }\n p {\n color: #973937;\n }\n "])));
|
|
19799
19800
|
}, function (props) {
|
|
19800
|
-
return props.color === 'warning' && css(_templateObject4$
|
|
19801
|
+
return props.color === 'warning' && css(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n background-color: #fffaf3;\n opacity: 1;\n border-color: #ccbea0;\n h4 {\n color: #7a4d05;\n }\n p {\n color: #7a4d05cc;\n }\n "])));
|
|
19801
19802
|
});
|
|
19802
19803
|
var IconContainer$2 = styled.div(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 14px 14px 0 0;\n margin: 0;\n"])));
|
|
19803
19804
|
var IconContent = styled.div(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 13px 0 21px 28px;\n display: flex;\n flex: 1;\n flex-direction: column;\n\n h4 {\n margin-bottom: 7px;\n font-size: 18p;\n }\n p {\n margin: 0;\n font-size: 14px;\n max-width: 380px;\n }\n"])));
|
|
@@ -19812,7 +19813,7 @@ var Toast = function Toast(props) {
|
|
|
19812
19813
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
19813
19814
|
};
|
|
19814
19815
|
|
|
19815
|
-
var _templateObject$1f, _templateObject2$U, _templateObject3$L, _templateObject4$
|
|
19816
|
+
var _templateObject$1f, _templateObject2$U, _templateObject3$L, _templateObject4$z, _templateObject5$u;
|
|
19816
19817
|
var Image = styled.img(_templateObject$1f || (_templateObject$1f = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
|
|
19817
19818
|
var Container$s = styled.div(_templateObject2$U || (_templateObject2$U = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n\n &,\n ", " {\n width: ", ";\n\n height: ", ";\n }\n"])), Image, function (_ref) {
|
|
19818
19819
|
var width = _ref.width;
|
|
@@ -19845,7 +19846,7 @@ var Dimmer = styled.div(_templateObject3$L || (_templateObject3$L = _taggedTempl
|
|
|
19845
19846
|
var theme = _ref3.theme;
|
|
19846
19847
|
return theme.getColor('greyishBlue', 50);
|
|
19847
19848
|
});
|
|
19848
|
-
var Button$6 = styled(Button$1)(_templateObject4$
|
|
19849
|
+
var Button$6 = styled(Button$1)(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
|
|
19849
19850
|
var theme = _ref4.theme;
|
|
19850
19851
|
return theme.getColor('white', 50);
|
|
19851
19852
|
});
|