sag_components 1.0.779 → 1.0.780
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.
|
@@ -39,7 +39,7 @@ const TabMenu = props => {
|
|
|
39
39
|
}, [currentTab]);
|
|
40
40
|
return /*#__PURE__*/_react.default.createElement(_TabMenu.TabMenuContainer, {
|
|
41
41
|
className: className
|
|
42
|
-
},
|
|
42
|
+
}, showFilterButton && /*#__PURE__*/_react.default.createElement(_TabMenu.SagIconButtonWrap, {
|
|
43
43
|
id: "filterButton",
|
|
44
44
|
iconName: "Filter",
|
|
45
45
|
buttonText: "",
|
|
@@ -79,7 +79,7 @@ const TabMenu = props => {
|
|
|
79
79
|
}), showSearchInput && /*#__PURE__*/_react.default.createElement(_TabMenu.SearchInputWrap, {
|
|
80
80
|
width: inputWidth,
|
|
81
81
|
onTyping: e => onSearchFieldTyping(e)
|
|
82
|
-
}))
|
|
82
|
+
})), /*#__PURE__*/_react.default.createElement(_TabMenu.Body, {
|
|
83
83
|
id: "tabsBody"
|
|
84
84
|
}, tabs[activeTab] && tabs[activeTab].content));
|
|
85
85
|
};
|
|
@@ -94,29 +94,7 @@ TabMenu.defaultProps = {
|
|
|
94
94
|
currentTab: 0,
|
|
95
95
|
tabs: [{
|
|
96
96
|
title: 'Overview',
|
|
97
|
-
content:
|
|
98
|
-
style: {
|
|
99
|
-
display: 'grid',
|
|
100
|
-
gridTemplateRows: 'repeat(2,1fr)',
|
|
101
|
-
height: '8000px'
|
|
102
|
-
}
|
|
103
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
104
|
-
style: {
|
|
105
|
-
backgroundColor: 'green'
|
|
106
|
-
}
|
|
107
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
108
|
-
style: {
|
|
109
|
-
backgroundColor: 'red'
|
|
110
|
-
}
|
|
111
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
112
|
-
style: {
|
|
113
|
-
backgroundColor: 'blue'
|
|
114
|
-
}
|
|
115
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
116
|
-
style: {
|
|
117
|
-
backgroundColor: 'gray'
|
|
118
|
-
}
|
|
119
|
-
}))
|
|
97
|
+
content: 'Content for Tab 2'
|
|
120
98
|
}, {
|
|
121
99
|
title: 'Sales',
|
|
122
100
|
content: 'Content for Tab 3'
|
|
@@ -4,20 +4,19 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Tabs = exports.TabMenuContainer = exports.Tab = exports.SearchInputWrap = exports.SagIconButtonWrap = exports.PresentationSlider = exports.Nav = exports.Label = exports.
|
|
7
|
+
exports.Tabs = exports.TabMenuContainer = exports.Tab = exports.SearchInputWrap = exports.SagIconButtonWrap = exports.PresentationSlider = exports.Nav = exports.Label = exports.Body = exports.ActionsWrapper = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _SagIconButton = _interopRequireDefault(require("./SagIconButton"));
|
|
11
11
|
var _SearchInput = _interopRequireDefault(require("./SearchInput"));
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10
|
|
12
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
13
13
|
const TabMenuContainer = exports.TabMenuContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: 'Poppins', sans-serif;\n display: flex;\n gap: 20px;\n flex-wrap: wrap;\n align-items: center;\n"])));
|
|
14
14
|
const Nav = exports.Nav = _styledComponents.default.nav(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)([" \n /* display: inline-block; */\n"])));
|
|
15
15
|
const Tabs = exports.Tabs = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n"])));
|
|
16
16
|
const Tab = exports.Tab = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (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);
|
|
17
17
|
const PresentationSlider = exports.PresentationSlider = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (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);
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const SearchInputWrap = exports.SearchInputWrap = (0, _styledComponents.default)(_SearchInput.default)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: auto;\n"])));
|
|
18
|
+
const Body = exports.Body = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n"])));
|
|
19
|
+
const Label = exports.Label = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (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"])));
|
|
20
|
+
const ActionsWrapper = exports.ActionsWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n"])));
|
|
21
|
+
const SagIconButtonWrap = exports.SagIconButtonWrap = (0, _styledComponents.default)(_SagIconButton.default)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n"])));
|
|
22
|
+
const SearchInputWrap = exports.SearchInputWrap = (0, _styledComponents.default)(_SearchInput.default)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: auto;\n"])));
|