sag_components 1.0.606 → 1.0.607
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.
|
@@ -20,6 +20,7 @@ const SagIconButton = props => {
|
|
|
20
20
|
const {
|
|
21
21
|
iconName,
|
|
22
22
|
color,
|
|
23
|
+
backgroundColor,
|
|
23
24
|
activeColor,
|
|
24
25
|
height,
|
|
25
26
|
buttonText,
|
|
@@ -101,6 +102,7 @@ const SagIconButton = props => {
|
|
|
101
102
|
return /*#__PURE__*/_react.default.createElement(_SagIconButton.SagIconButtonWrapper, {
|
|
102
103
|
height: height,
|
|
103
104
|
color: activeState ? activeColor : color,
|
|
105
|
+
backgroundColor: backgroundColor,
|
|
104
106
|
disabled: disabled,
|
|
105
107
|
onClick: event => {
|
|
106
108
|
onClickHandler(event);
|
|
@@ -115,6 +117,8 @@ SagIconButton.defaultProps = {
|
|
|
115
117
|
height: '40px',
|
|
116
118
|
color: '#212121',
|
|
117
119
|
activeColor: '#229E38',
|
|
120
|
+
backgroundColor: 'transparent',
|
|
121
|
+
// '#E8F5EB',
|
|
118
122
|
iconHeight: 12,
|
|
119
123
|
iconWidth: 12,
|
|
120
124
|
openState: false,
|
|
@@ -8,5 +8,5 @@ exports.SpanText = exports.SagIconButtonWrapper = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _templateObject, _templateObject2;
|
|
11
|
-
const SagIconButtonWrapper = exports.SagIconButtonWrapper = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: ", ";\n font-size: 14px;\n font-weight: 400;\n display: flex;\n gap: 8px;\n align-items: center;\n justify-content: center;\n padding: 8px 18px;\n white-space: nowrap;\n color: ", ";\n border-radius: 8px;\n border: 1px solid ", ";\n background:
|
|
11
|
+
const SagIconButtonWrapper = exports.SagIconButtonWrapper = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: ", ";\n font-size: 14px;\n font-weight: 400;\n display: flex;\n gap: 8px;\n align-items: center;\n justify-content: center;\n padding: 8px 18px;\n white-space: nowrap;\n color: ", ";\n border-radius: 8px;\n border: 1px solid ", ";\n background: ", "; \n transition: box-shadow 0.3s ease;\n &:hover, &:focus {\n cursor: pointer;\n box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.1);\n }\n"])), props => props.height, props => props.color, props => props.color, props => props.backgroundColor ? "var(--Primary-1, ".concat(props.backgroundColor, ")") : '#transparent');
|
|
12
12
|
const SpanText = exports.SpanText = _styledComponents.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n"])));
|
|
@@ -31,7 +31,13 @@ const TabMenu = props => {
|
|
|
31
31
|
onTabChange(index);
|
|
32
32
|
setActiveTab(index);
|
|
33
33
|
};
|
|
34
|
-
return /*#__PURE__*/_react.default.createElement(_TabMenu.TabMenuContainer,
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_TabMenu.TabMenuContainer, {
|
|
35
|
+
className: "TabMenuContainer"
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_TabMenu.Nav, {
|
|
37
|
+
className: "Nav"
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement(_TabMenu.Tabs, {
|
|
39
|
+
className: "Tabs"
|
|
40
|
+
}, tabs.length > 1 ? tabs.map((tab, index) => /*#__PURE__*/_react.default.createElement(_TabMenu.Tab
|
|
35
41
|
// eslint-disable-next-line react/no-array-index-key
|
|
36
42
|
, {
|
|
37
43
|
key: index,
|
|
@@ -45,13 +51,18 @@ const TabMenu = props => {
|
|
|
45
51
|
color: color,
|
|
46
52
|
onClick: () => handleTabChange(0)
|
|
47
53
|
}, tabs[0].title), /*#__PURE__*/_react.default.createElement(_TabMenu.PresentationSlider, {
|
|
54
|
+
className: "PresentationSlider",
|
|
48
55
|
activeTab: activeTab,
|
|
49
56
|
color: color,
|
|
50
57
|
width: "".concat(100 / tabs.length, "%"),
|
|
51
58
|
role: "presentation"
|
|
52
|
-
}))), showLabel && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_TabMenu.Label,
|
|
59
|
+
}))), showLabel && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_TabMenu.Label, {
|
|
60
|
+
className: "Label"
|
|
61
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, "Platform: "), "Total"), /*#__PURE__*/_react.default.createElement("span", {
|
|
53
62
|
className: "separator"
|
|
54
|
-
}, "|")), showActions && /*#__PURE__*/_react.default.createElement(_TabMenu.ActionsWrapper,
|
|
63
|
+
}, "|")), showActions && /*#__PURE__*/_react.default.createElement(_TabMenu.ActionsWrapper, {
|
|
64
|
+
className: "ActionsWrapper"
|
|
65
|
+
}, showFilterButton && /*#__PURE__*/_react.default.createElement(_SagIconButton.default, {
|
|
55
66
|
id: "filterButton",
|
|
56
67
|
iconName: "Filter",
|
|
57
68
|
buttonText: "Filter",
|