sag_components 1.0.789 → 1.0.791
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.
|
@@ -16,6 +16,7 @@ const TabMenu = props => {
|
|
|
16
16
|
tabs,
|
|
17
17
|
color,
|
|
18
18
|
children,
|
|
19
|
+
setBackground,
|
|
19
20
|
showActions,
|
|
20
21
|
showFilterButton,
|
|
21
22
|
showViewOptionsButton,
|
|
@@ -81,11 +82,13 @@ const TabMenu = props => {
|
|
|
81
82
|
width: inputWidth,
|
|
82
83
|
onTyping: e => onSearchFieldTyping(e)
|
|
83
84
|
})), /*#__PURE__*/_react.default.createElement(_TabMenu.Body, {
|
|
84
|
-
id: "tabsBody"
|
|
85
|
+
id: "tabsBody",
|
|
86
|
+
setBackground: setBackground
|
|
85
87
|
}, tabs[activeTab] && tabs[activeTab].content));
|
|
86
88
|
};
|
|
87
89
|
TabMenu.defaultProps = {
|
|
88
90
|
color: '#229E38',
|
|
91
|
+
setBackground: false,
|
|
89
92
|
showActions: true,
|
|
90
93
|
showLabel: true,
|
|
91
94
|
showFilterButton: true,
|
|
@@ -17,7 +17,7 @@ const Nav = exports.Nav = _styledComponents.default.nav(_templateObject3 || (_te
|
|
|
17
17
|
const Tabs = exports.Tabs = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n"])));
|
|
18
18
|
const Tab = exports.Tab = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n cursor: pointer;\n position: relative;\n text-align: center;\n padding: 8px 12px;\n font-size: 16px;\n color: #000000;\n &.active {\n font-weight: 600;\n color: ", ";\n border-bottom: 1mm solid #229E38;\n //2px solid ", ";\n }\n"])), props => props.color, props => props.color);
|
|
19
19
|
const PresentationSlider = exports.PresentationSlider = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 2px;\n background-color: #EAEAEA;\n &::before {\n content: '';\n position: absolute;\n left: 0;\n z-index: 1;\n width: ", ";\n height: 2px;\n /* background-color: ", "; */\n transform: translateX(calc(100% * ", "));\n transition: transform .35s ease;\n }\n"])), props => props.width, props => props.color, props => props.activeTab);
|
|
20
|
-
const Body = exports.Body = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n ", "\n overflow-x: hidden;\n border-
|
|
20
|
+
const Body = exports.Body = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n ", "\n overflow-x: hidden;\n box-sizing: border-box;\n padding: ", ";\n background-color: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n"])), scrollableStyles, props => props.setBackground ? '20px' : '0', props => props.setBackground ? 'white' : 'unset', props => props.setBackground ? '12px' : '0', props => props.setBackground ? '0px 0px 20px 0px rgba(0, 0, 0, 0.10)' : 'unset');
|
|
21
21
|
const Label = exports.Label = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 12px;\n font-weight: 400;\n padding: 8px;\n color: #5a5a5a;\n background-color: #E7E7E7;\n border-radius: 4px;\n > span {\n font-weight: 500;\n }\n ~ span {\n margin: 0 24px;\n font-weight: 400;\n }\n"])));
|
|
22
22
|
const ActionsWrapper = exports.ActionsWrapper = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n"])));
|
|
23
23
|
const SagIconButtonWrap = exports.SagIconButtonWrap = (0, _styledComponents.default)(_SagIconButton.default)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n"])));
|