@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
|
@@ -4,5 +4,6 @@ declare type TabsContainerProps = {
|
|
|
4
4
|
$delimiter?: TabsProps['delimiter'];
|
|
5
5
|
$spacing?: TabsProps['spacing'];
|
|
6
6
|
};
|
|
7
|
+
export declare const ComponentContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
8
|
export declare const Tabs: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabsContainerProps, never>;
|
|
8
9
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -19658,12 +19658,13 @@ var TabItem = function TabItem(props) {
|
|
|
19658
19658
|
}));
|
|
19659
19659
|
};
|
|
19660
19660
|
|
|
19661
|
-
var _templateObject$1c, _templateObject2$S, _templateObject3$J;
|
|
19661
|
+
var _templateObject$1c, _templateObject2$S, _templateObject3$J, _templateObject4$x;
|
|
19662
19662
|
var delimiters = {
|
|
19663
19663
|
blue: ['blue'],
|
|
19664
19664
|
grey: ['warningGray']
|
|
19665
19665
|
};
|
|
19666
|
-
var
|
|
19666
|
+
var ComponentContainer = styled__default.div(_templateObject$1c || (_templateObject$1c = _taggedTemplateLiteralLoose([""])));
|
|
19667
|
+
var Tabs = styled__default.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) {
|
|
19667
19668
|
var spacing = _ref.$spacing;
|
|
19668
19669
|
|
|
19669
19670
|
var _getSpacings$split = getSpacings(spacing || {}, {
|
|
@@ -19677,13 +19678,13 @@ var Tabs = styled__default.div(_templateObject$1c || (_templateObject$1c = _tagg
|
|
|
19677
19678
|
bottom = _getSpacings$split[2],
|
|
19678
19679
|
left = _getSpacings$split[3];
|
|
19679
19680
|
|
|
19680
|
-
return styled.css(
|
|
19681
|
+
return styled.css(_templateObject3$J || (_templateObject3$J = _taggedTemplateLiteralLoose(["\n margin: ", " 0 ", " 0;\n padding: 0 ", " 0 ", ";\n "])), top, bottom, right, left);
|
|
19681
19682
|
}, function (_ref2) {
|
|
19682
19683
|
var theme = _ref2.theme,
|
|
19683
19684
|
internal = _ref2.$internal,
|
|
19684
19685
|
delimiter = _ref2.$delimiter;
|
|
19685
19686
|
var border = delimiter === 'none' ? 'none' : internal ? "1px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'grey']) : "2px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'blue']);
|
|
19686
|
-
return styled.css(
|
|
19687
|
+
return styled.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);
|
|
19687
19688
|
});
|
|
19688
19689
|
|
|
19689
19690
|
var VoidProvider = function VoidProvider(props) {
|
|
@@ -19765,7 +19766,7 @@ var Component$3 = function Component(props) {
|
|
|
19765
19766
|
setLabel: setLabel
|
|
19766
19767
|
}, index === active ? {
|
|
19767
19768
|
active: true,
|
|
19768
|
-
children: React__default.createElement(
|
|
19769
|
+
children: React__default.createElement(ComponentContainer, null, React__default.createElement(Component, {
|
|
19769
19770
|
data: tab.data,
|
|
19770
19771
|
label: tab.label,
|
|
19771
19772
|
setLabel: setLabel
|
|
@@ -19792,7 +19793,7 @@ var TextArea = function TextArea(props) {
|
|
|
19792
19793
|
return React__default.createElement(Container$q, Object.assign({}, props));
|
|
19793
19794
|
};
|
|
19794
19795
|
|
|
19795
|
-
var _templateObject$1e, _templateObject2$T, _templateObject3$K, _templateObject4$
|
|
19796
|
+
var _templateObject$1e, _templateObject2$T, _templateObject3$K, _templateObject4$y, _templateObject5$t, _templateObject6$q;
|
|
19796
19797
|
var Container$r = styled__default.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) {
|
|
19797
19798
|
return props.size === 'large' ? '837px' : '460px';
|
|
19798
19799
|
}, function (props) {
|
|
@@ -19800,7 +19801,7 @@ var Container$r = styled__default.div(_templateObject$1e || (_templateObject$1e
|
|
|
19800
19801
|
}, function (props) {
|
|
19801
19802
|
return props.color === 'error' && styled.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 "])));
|
|
19802
19803
|
}, function (props) {
|
|
19803
|
-
return props.color === 'warning' && styled.css(_templateObject4$
|
|
19804
|
+
return props.color === 'warning' && styled.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 "])));
|
|
19804
19805
|
});
|
|
19805
19806
|
var IconContainer$2 = styled__default.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"])));
|
|
19806
19807
|
var IconContent = styled__default.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"])));
|
|
@@ -19815,7 +19816,7 @@ var Toast = function Toast(props) {
|
|
|
19815
19816
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
19816
19817
|
};
|
|
19817
19818
|
|
|
19818
|
-
var _templateObject$1f, _templateObject2$U, _templateObject3$L, _templateObject4$
|
|
19819
|
+
var _templateObject$1f, _templateObject2$U, _templateObject3$L, _templateObject4$z, _templateObject5$u;
|
|
19819
19820
|
var Image = styled__default.img(_templateObject$1f || (_templateObject$1f = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
|
|
19820
19821
|
var Container$s = styled__default.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) {
|
|
19821
19822
|
var width = _ref.width;
|
|
@@ -19848,7 +19849,7 @@ var Dimmer = styled__default.div(_templateObject3$L || (_templateObject3$L = _ta
|
|
|
19848
19849
|
var theme = _ref3.theme;
|
|
19849
19850
|
return theme.getColor('greyishBlue', 50);
|
|
19850
19851
|
});
|
|
19851
|
-
var Button$6 = styled__default(Button$1)(_templateObject4$
|
|
19852
|
+
var Button$6 = styled__default(Button$1)(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
|
|
19852
19853
|
var theme = _ref4.theme;
|
|
19853
19854
|
return theme.getColor('white', 50);
|
|
19854
19855
|
});
|