pds-dev-kit-web 2.2.77 → 2.2.78
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.
|
@@ -52,7 +52,12 @@ function UserDesktopTabBar(_a) {
|
|
|
52
52
|
item.onClick(e);
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
return ((0, jsx_runtime_1.jsx)(S_TabBar, __assign({ "x-pds-name": "UserDesktopTabBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: itemArray.map(function (item, index) {
|
|
55
|
+
return ((0, jsx_runtime_1.jsx)(S_TabBar, __assign({ "x-pds-name": "UserDesktopTabBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop" }, { children: itemArray.map(function (item, index) {
|
|
56
|
+
if (styleTheme === 'content') {
|
|
57
|
+
return ((0, jsx_runtime_1.jsx)(S_TabWrapper, __assign({ isActive: item.isActive, styleTheme: "content", text: item.title, onClick: function (e) { return handleClickTabItem_1(item, e); } }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: "headingBold", colorTheme: item.isActive ? 'sysTextPrimary' : 'sysTextSecondary', singleLineMode: "use" }) }), index));
|
|
58
|
+
}
|
|
59
|
+
return ((0, jsx_runtime_1.jsx)(S_TabWrapper, __assign({ isActive: item.isActive, styleTheme: styleTheme, text: item.title, onClick: function (e) { return handleClickTabItem_1(item, e); } }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: item.isActive ? 'body2Bold' : 'body2Regular', colorTheme: item.isActive ? 'usrTextBrandPrimary' : 'sysTextSecondary', singleLineMode: "use" }) }), index));
|
|
60
|
+
}) })));
|
|
56
61
|
}
|
|
57
62
|
if (textArray) {
|
|
58
63
|
var handleClick_1 = function (value) {
|
|
@@ -75,7 +80,9 @@ var S_TabWrapper = styled_components_1.default.div(templateObject_2 || (template
|
|
|
75
80
|
var styleTheme = _a.styleTheme;
|
|
76
81
|
switch (styleTheme) {
|
|
77
82
|
case 'main':
|
|
78
|
-
return mainStyle;
|
|
83
|
+
return mainStyle;
|
|
84
|
+
case 'content':
|
|
85
|
+
return contentStyle;
|
|
79
86
|
default:
|
|
80
87
|
return mainStyle;
|
|
81
88
|
}
|
|
@@ -99,7 +106,20 @@ var mainStyle = (0, styled_components_1.css)(templateObject_3 || (templateObject
|
|
|
99
106
|
var isActive = _a.isActive;
|
|
100
107
|
return !isActive && "display: none;";
|
|
101
108
|
});
|
|
102
|
-
var
|
|
109
|
+
var contentStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"], ["\n align-items: center;\n background-color: ", ";\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"])), function (_a) {
|
|
110
|
+
var isActive = _a.isActive, theme = _a.theme;
|
|
111
|
+
return isActive && theme.ui_cpnt_tabbar_base_area;
|
|
112
|
+
}, function (_a) {
|
|
113
|
+
var theme = _a.theme;
|
|
114
|
+
return theme.spacing.spacingF;
|
|
115
|
+
}, function (_a) {
|
|
116
|
+
var theme = _a.theme;
|
|
117
|
+
return theme.ui_19;
|
|
118
|
+
}, function (_a) {
|
|
119
|
+
var isActive = _a.isActive;
|
|
120
|
+
return !isActive && "display: none;";
|
|
121
|
+
});
|
|
122
|
+
var S_TabBar = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n height: 48px;\n justify-content: center;\n"], ["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n height: 48px;\n justify-content: center;\n"])), function (_a) {
|
|
103
123
|
var theme = _a.theme;
|
|
104
124
|
return theme.ui_cpnt_tabbar_base_area;
|
|
105
125
|
}, function (_a) {
|
|
@@ -107,4 +127,4 @@ var S_TabBar = styled_components_1.default.div(templateObject_4 || (templateObje
|
|
|
107
127
|
return theme.ui_cpnt_divider;
|
|
108
128
|
});
|
|
109
129
|
exports.default = UserDesktopTabBar;
|
|
110
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
130
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
package/package.json
CHANGED
package/release-note.md
CHANGED