pds-dev-kit-web 1.4.5 → 1.4.8
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/index.d.ts +2 -2
- package/dist/index.js +4 -2
- package/dist/src/common/components/Navigations/ContextTextLabelNav.js +2 -2
- package/dist/src/common/components/Navigations/index.d.ts +2 -0
- package/dist/src/common/components/Navigations/index.js +5 -1
- package/dist/src/common/styles/colorSet/UIColor.json +3 -1
- package/dist/src/common/styles/colorSet/index.d.ts +233 -231
- package/dist/src/common/styles/colorSet/index.js +5 -5
- package/dist/src/common/styles/colorSet/ui-type.d.ts +2 -0
- package/dist/src/common/types/components.d.ts +1 -1
- package/dist/src/desktop/components/Chip/Chip.js +15 -16
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +4 -4
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.d.ts +2 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.js +2 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/ContextMenuItemNav.js +2 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/ContextMenuNavs.js +19 -5
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/LogoNav.js +1 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/MenuItemNav.js +6 -5
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.d.ts +2 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.js +3 -3
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/WebMenuItemNav.d.ts +2 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/WebMenuItemNav.js +3 -3
- package/dist/src/desktop/components/DynamicDesktopNavBar/index.d.ts +1 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/index.js +3 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/{MenuDesignTemplates.d.ts → DynamicDesktopNavBarTemplates.d.ts} +17 -6
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/{MenuDesignTemplates.js → DynamicDesktopNavBarTemplates.js} +10 -10
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.d.ts +15 -4
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.js +22 -11
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/index.d.ts +1 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/index.js +3 -3
- package/dist/src/desktop/components/TextButton/TextButton.js +9 -5
- package/dist/src/desktop/components/UserDesktopSideTab/UserDesktopSideTab.d.ts +8 -0
- package/dist/src/desktop/components/UserDesktopSideTab/UserDesktopSideTab.js +36 -0
- package/dist/src/desktop/components/UserDesktopSideTab/index.d.ts +1 -0
- package/dist/src/desktop/components/UserDesktopSideTab/index.js +8 -0
- package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.js +3 -3
- package/dist/src/desktop/components/index.d.ts +3 -2
- package/dist/src/desktop/components/index.js +4 -1
- package/dist/src/desktop/index.d.ts +2 -2
- package/dist/src/desktop/index.js +4 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.js +29 -5
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +8 -4
- package/dist/src/mobile/components/Chip/Chip.js +15 -16
- package/dist/src/mobile/components/MobileTabBar/MobileTabBar.js +3 -3
- package/dist/src/mobile/components/TextButton/TextButton.js +6 -4
- package/package.json +1 -1
- package/release-note.md +3 -24
|
@@ -28,6 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importStar(require("react"));
|
|
30
30
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
31
|
+
var hybrid_1 = require("../../../hybrid");
|
|
31
32
|
var Icon_1 = require("../../../hybrid/components/Icon");
|
|
32
33
|
var TextLabel_1 = require("../TextLabel");
|
|
33
34
|
function Chip(_a) {
|
|
@@ -56,10 +57,12 @@ function Chip(_a) {
|
|
|
56
57
|
switch (displayType) {
|
|
57
58
|
case 'category_choice':
|
|
58
59
|
return (react_1.default.createElement(S_CategoryChoiceChip, { isActive: isActive, onClick: handleClickChip },
|
|
59
|
-
!isActive && (react_1.default.createElement(
|
|
60
|
-
react_1.default.createElement(Icon_1.Icon, { size: 16, fillType: "line", iconName: "ic_filter", colorKey: "ui_cpnt_chip_line_icon_01" })
|
|
60
|
+
!isActive && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
61
|
+
react_1.default.createElement(Icon_1.Icon, { size: 16, fillType: "line", iconName: "ic_filter", colorKey: "ui_cpnt_chip_line_icon_01" }),
|
|
62
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }))),
|
|
61
63
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: isActive ? 'usrTextBrandOnPrimary' : 'sysTextPrimary' }),
|
|
62
|
-
isActive && (react_1.default.createElement(
|
|
64
|
+
isActive && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
65
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }),
|
|
63
66
|
react_1.default.createElement(Icon_1.Icon, { size: 12, fillType: "line", iconName: "ic_xmark", colorKey: "ui_cpnt_chip_fill_icon_active_01" })))));
|
|
64
67
|
case 'information':
|
|
65
68
|
return (react_1.default.createElement(S_InfoChip, { onClick: handleClickChip },
|
|
@@ -101,11 +104,7 @@ var S_CategoryChoiceChip = styled_components_1.default.div(templateObject_1 || (
|
|
|
101
104
|
var theme = _a.theme, isActive = _a.isActive;
|
|
102
105
|
return isActive ? '' : "border: 1px solid " + theme.ui_cpnt_chip_line_border_01;
|
|
103
106
|
});
|
|
104
|
-
var
|
|
105
|
-
var theme = _a.theme, isActive = _a.isActive;
|
|
106
|
-
return isActive ? "margin-left: " + theme.spacing.spacingA : "margin-right: " + theme.spacing.spacingA;
|
|
107
|
-
});
|
|
108
|
-
var S_InfoChip = styled_components_1.default.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
107
|
+
var S_InfoChip = styled_components_1.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
109
108
|
var theme = _a.theme;
|
|
110
109
|
return theme.ui_cpnt_chip_fill_base_inactive;
|
|
111
110
|
}, function (_a) {
|
|
@@ -115,7 +114,7 @@ var S_InfoChip = styled_components_1.default.span(templateObject_3 || (templateO
|
|
|
115
114
|
var theme = _a.theme;
|
|
116
115
|
return theme.spacing.spacingC;
|
|
117
116
|
});
|
|
118
|
-
var S_RemovableChip = styled_components_1.default.div(
|
|
117
|
+
var S_RemovableChip = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n cursor: pointer;\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n cursor: pointer;\n"])), function (_a) {
|
|
119
118
|
var theme = _a.theme;
|
|
120
119
|
return theme.ui_cpnt_chip_fill_base_inactive;
|
|
121
120
|
}, function (_a) {
|
|
@@ -125,11 +124,11 @@ var S_RemovableChip = styled_components_1.default.div(templateObject_4 || (templ
|
|
|
125
124
|
var theme = _a.theme;
|
|
126
125
|
return theme.spacing.spacingC;
|
|
127
126
|
});
|
|
128
|
-
var S_XIconWrapper = styled_components_1.default.div(
|
|
127
|
+
var S_XIconWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n cursor: pointer;\n margin-left: ", ";\n"], ["\n cursor: pointer;\n margin-left: ", ";\n"])), function (_a) {
|
|
129
128
|
var theme = _a.theme;
|
|
130
129
|
return theme.spacing.spacingB;
|
|
131
130
|
});
|
|
132
|
-
var S_FilterSingleChip = styled_components_1.default.div(
|
|
131
|
+
var S_FilterSingleChip = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n cursor: pointer;\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n cursor: pointer;\n"])), function (_a) {
|
|
133
132
|
var theme = _a.theme, isActive = _a.isActive;
|
|
134
133
|
return isActive ? theme.ui_cpnt_chip_fill_base_active_01 : theme.ui_cpnt_chip_fill_base_inactive;
|
|
135
134
|
}, function (_a) {
|
|
@@ -139,23 +138,23 @@ var S_FilterSingleChip = styled_components_1.default.div(templateObject_6 || (te
|
|
|
139
138
|
var theme = _a.theme;
|
|
140
139
|
return theme.spacing.spacingC;
|
|
141
140
|
});
|
|
142
|
-
var S_FilterIconWrapper = styled_components_1.default.div(
|
|
141
|
+
var S_FilterIconWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), function (_a) {
|
|
143
142
|
var theme = _a.theme;
|
|
144
143
|
return theme.spacing.spacingA;
|
|
145
144
|
});
|
|
146
|
-
var S_LabelChip = styled_components_1.default.div(
|
|
145
|
+
var S_LabelChip = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border: 1px solid ", ";\n border-radius: 10px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20px;\n padding: 0 ", ";\n"], ["\n border: 1px solid ", ";\n border-radius: 10px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20px;\n padding: 0 ", ";\n"])), function (_a) {
|
|
147
146
|
var theme = _a.theme;
|
|
148
147
|
return theme.ui_cpnt_chip_line_border_01;
|
|
149
148
|
}, function (_a) {
|
|
150
149
|
var theme = _a.theme;
|
|
151
150
|
return theme.spacing.spacingB;
|
|
152
151
|
});
|
|
153
|
-
var S_TimeChip = styled_components_1.default.div(
|
|
152
|
+
var S_TimeChip = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n height: 20px;\n padding: 0 ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n background-color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n height: 20px;\n padding: 0 ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (_a) {
|
|
154
153
|
var theme = _a.theme;
|
|
155
154
|
return theme.ui_cpnt_chip_base_playtime;
|
|
156
155
|
}, function (_a) {
|
|
157
156
|
var theme = _a.theme;
|
|
158
157
|
return theme.spacing.spacingB;
|
|
159
158
|
});
|
|
160
|
-
var S_ChipWrapper = styled_components_1.default.div(
|
|
161
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9
|
|
159
|
+
var S_ChipWrapper = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: inline-block;\n vertical-align: bottom;\n"], ["\n display: inline-block;\n vertical-align: bottom;\n"])));
|
|
160
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
@@ -35,9 +35,9 @@ function DesktopTabBar(_a) {
|
|
|
35
35
|
var history = (0, react_router_dom_1.useHistory)();
|
|
36
36
|
var pathname = (0, react_router_dom_1.useLocation)().pathname;
|
|
37
37
|
if (itemArray) {
|
|
38
|
-
var handelClickTabItem_1 = function (item) {
|
|
38
|
+
var handelClickTabItem_1 = function (item, e) {
|
|
39
39
|
if (item.onClick) {
|
|
40
|
-
item.onClick();
|
|
40
|
+
item.onClick(e);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
var textLabel_1 = function (item, isSubText) {
|
|
@@ -53,8 +53,8 @@ function DesktopTabBar(_a) {
|
|
|
53
53
|
};
|
|
54
54
|
return (react_1.default.createElement(S_TabBox, null,
|
|
55
55
|
itemArray.map(function (item, index) { return (react_1.default.createElement(S_TabWrapper, { key: index, isActive: item.isActive, styleTheme: styleTheme },
|
|
56
|
-
react_1.default.createElement(S_TitleWrapper, { text: item.title, onClick: function () { return handelClickTabItem_1(item); } }, textLabel_1(item, false)),
|
|
57
|
-
item.isActive && item.subArray && (react_1.default.createElement(S_SubTabBox, null, item.subArray.map(function (subItem) { return (react_1.default.createElement(S_SubWrapper, { key: subItem.title, text: subItem.title, onClick: function () { return handelClickTabItem_1(subItem); } }, textLabel_1(subItem, true))); }))))); }),
|
|
56
|
+
react_1.default.createElement(S_TitleWrapper, { text: item.title, onClick: function (e) { return handelClickTabItem_1(item, e); } }, textLabel_1(item, false)),
|
|
57
|
+
item.isActive && item.subArray && (react_1.default.createElement(S_SubTabBox, null, item.subArray.map(function (subItem) { return (react_1.default.createElement(S_SubWrapper, { key: subItem.title, text: subItem.title, onClick: function (e) { return handelClickTabItem_1(subItem, e); } }, textLabel_1(subItem, true))); }))))); }),
|
|
58
58
|
itemArray.map(function (item) { return item.isActive && item.subArray && react_1.default.createElement(S_SubBackground, { key: item.title }); })));
|
|
59
59
|
}
|
|
60
60
|
if (textArray) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BrandLogo, UserProfile } from './blocks';
|
|
3
|
-
import {
|
|
3
|
+
import { TemplateNamesType } from './templates';
|
|
4
4
|
import { ParsedNode } from './types';
|
|
5
5
|
declare type BrandLogo = {
|
|
6
6
|
src: string;
|
|
@@ -17,7 +17,7 @@ export declare type Props = {
|
|
|
17
17
|
userProfile: UserProfile;
|
|
18
18
|
primaryMenus: ParsedNode[];
|
|
19
19
|
secondaryMenus: ParsedNode[] | null;
|
|
20
|
-
template:
|
|
20
|
+
template: TemplateNamesType;
|
|
21
21
|
basePath: string;
|
|
22
22
|
};
|
|
23
23
|
export declare const BasePathContext: React.Context<{
|
|
@@ -32,12 +32,13 @@ var react_router_dom_1 = require("react-router-dom");
|
|
|
32
32
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
33
33
|
var BoxLayout_1 = require("../../../common/components/BoxLayout");
|
|
34
34
|
var blocks_1 = require("./blocks");
|
|
35
|
+
var templates_1 = require("./templates");
|
|
35
36
|
exports.BasePathContext = (0, react_1.createContext)({
|
|
36
37
|
basePath: ''
|
|
37
38
|
});
|
|
38
39
|
function DynamicDesktopNavBar(_a) {
|
|
39
40
|
var _b = _a.isPreview, isPreview = _b === void 0 ? false : _b, template = _a.template, brandLogo = _a.brandLogo, primaryMenus = _a.primaryMenus, secondaryMenus = _a.secondaryMenus, userProfile = _a.userProfile, basePath = _a.basePath;
|
|
40
|
-
var gridStyle =
|
|
41
|
+
var _c = templates_1.DynamicDesktopNavBarTemplates.getTemplate(template), gridStyle = _c.gridStyle, gridTemplate = _c.gridTemplate, showSecondaryMenu = _c.showSecondaryMenu, primaryMenuOptions = _c.primaryMenuOptions, secondaryMenuOptions = _c.secondaryMenuOptions, userProfileOptions = _c.userProfileOptions;
|
|
41
42
|
var slicedPrimaryMenus = (0, react_1.useMemo)(function () { return primaryMenus === null || primaryMenus === void 0 ? void 0 : primaryMenus.slice(0, primaryMenuOptions.maxLength); }, [primaryMenus, primaryMenuOptions]);
|
|
42
43
|
var slicedSecondaryMenus = (0, react_1.useMemo)(function () { var _a; return (_a = secondaryMenus === null || secondaryMenus === void 0 ? void 0 : secondaryMenus.slice(0, secondaryMenuOptions.maxLength)) !== null && _a !== void 0 ? _a : []; }, [secondaryMenus, secondaryMenuOptions]);
|
|
43
44
|
return (react_1.default.createElement(exports.BasePathContext.Provider, { value: { basePath: basePath } },
|
|
@@ -44,8 +44,8 @@ var WebMenuItemNav_1 = __importDefault(require("../MenuItemNav/components/WebMen
|
|
|
44
44
|
function ContextMenuItemNavBox(_a) {
|
|
45
45
|
var menu = _a.menu;
|
|
46
46
|
return (react_1.default.createElement(S_ContextMenuItem, { size: "small" },
|
|
47
|
-
menu.menuItemType === 'NAV_P_APP' && menu.pAppCode && (react_1.default.createElement(PAppMenuItemNav_1.default, { menu: __assign(__assign({}, menu), { pAppCode: menu.pAppCode }) })),
|
|
48
|
-
menu.menuItemType === 'WEB_LINK' && menu.conversionLinkSrc && (react_1.default.createElement(WebMenuItemNav_1.default, { menu: __assign(__assign({}, menu), { conversionLinkSrc: menu.conversionLinkSrc }) }))));
|
|
47
|
+
menu.menuItemType === 'NAV_P_APP' && menu.pAppCode && (react_1.default.createElement(PAppMenuItemNav_1.default, { menu: __assign(__assign({}, menu), { pAppCode: menu.pAppCode }), isContextMenu: true })),
|
|
48
|
+
menu.menuItemType === 'WEB_LINK' && menu.conversionLinkSrc && (react_1.default.createElement(WebMenuItemNav_1.default, { isContextMenu: true, menu: __assign(__assign({}, menu), { conversionLinkSrc: menu.conversionLinkSrc }) }))));
|
|
49
49
|
}
|
|
50
50
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n padding: 0 ", ";\n"], ["\n height: 48px;\n padding: 0 ", ";\n"])), function (_a) {
|
|
51
51
|
var theme = _a.theme;
|
|
@@ -31,17 +31,31 @@ var styled_components_1 = __importDefault(require("styled-components"));
|
|
|
31
31
|
var ContextMenu_1 = require("../../../ContextMenu");
|
|
32
32
|
function ContextMenuNavs(_a) {
|
|
33
33
|
var parentRef = _a.parentRef, children = _a.children;
|
|
34
|
-
var
|
|
35
|
-
var
|
|
34
|
+
var _b = (0, react_1.useState)(null), contextRef = _b[0], setContextRef = _b[1];
|
|
35
|
+
var contextCallbackRef = (0, react_1.useCallback)(function (node) {
|
|
36
|
+
if (!node) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
setContextRef(node);
|
|
40
|
+
}, []);
|
|
41
|
+
var _c = (0, react_1.useState)({ top: 0, left: 0 }), position = _c[0], setPosition = _c[1];
|
|
36
42
|
(0, react_1.useLayoutEffect)(function () {
|
|
37
43
|
if (!parentRef.current) {
|
|
38
44
|
return;
|
|
39
45
|
}
|
|
40
46
|
var PARENT_HEIGHT = 48;
|
|
41
47
|
var _a = parentRef.current.getBoundingClientRect(), top = _a.top, left = _a.left;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
if (!contextRef) {
|
|
49
|
+
setPosition({ top: top + PARENT_HEIGHT, left: left });
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
var contextBound = contextRef.getBoundingClientRect();
|
|
53
|
+
if (contextRef.getBoundingClientRect().right > window.innerWidth) {
|
|
54
|
+
setPosition({ top: top + PARENT_HEIGHT, left: window.innerWidth - contextBound.width });
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
}, [parentRef, contextRef]);
|
|
58
|
+
return (react_1.default.createElement(S_AbsoluteWrapper, { ref: contextCallbackRef, style: { top: position.top, left: position.left } },
|
|
45
59
|
react_1.default.createElement(ContextMenu_1.ContextMenu, null, children)));
|
|
46
60
|
}
|
|
47
61
|
var S_AbsoluteWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: fixed;\n\n /* NOTE: contents layer */\n z-index: 90;\n"], ["\n position: fixed;\n\n /* NOTE: contents layer */\n z-index: 90;\n"])));
|
|
@@ -17,6 +17,6 @@ function LogoNav(_a) {
|
|
|
17
17
|
react_1.default.createElement(S_Box, null, logoSrc ? (react_1.default.createElement(S_Logo, { src: logoSrc })) : (react_1.default.createElement(__1.D_TextLabel, { text: fallbackText, styleTheme: "headingBold", ellipsisMode: "use", lineLimit: 1 })))));
|
|
18
18
|
}
|
|
19
19
|
var S_Box = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n width: 180px;\n display: flex;\n align-items: center;\n"], ["\n height: 48px;\n width: 180px;\n display: flex;\n align-items: center;\n"])));
|
|
20
|
-
var S_Logo = styled_components_1.default.img(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n max-height: 100%;\n object-fit: contain;\n object-position: left;\n"], ["\n max-height: 100%;\n object-fit: contain;\n object-position: left;\n"])));
|
|
20
|
+
var S_Logo = styled_components_1.default.img(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n max-height: 100%;\n max-width: 100%;\n object-fit: contain;\n object-position: left;\n"], ["\n max-height: 100%;\n max-width: 100%;\n object-fit: contain;\n object-position: left;\n"])));
|
|
21
21
|
exports.default = LogoNav;
|
|
22
22
|
var templateObject_1, templateObject_2;
|
package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/MenuItemNav.js
CHANGED
|
@@ -54,11 +54,12 @@ function MenuItemNav(_a) {
|
|
|
54
54
|
var handleMouseOut = (0, react_1.useCallback)(function () {
|
|
55
55
|
setIsContextOpen(false);
|
|
56
56
|
}, []);
|
|
57
|
-
return (react_1.default.createElement(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
58
|
+
react_1.default.createElement(S_Box, { ref: ref, onMouseOver: handleMouseOver, onMouseLeave: handleMouseOut, onWheel: handleMouseOut, showMenuAsIcon: showMenuAsIcon },
|
|
59
|
+
menu.menuItemType === 'NAV_P_APP' && menu.pAppCode && (react_1.default.createElement(PAppMenuItemNav_1.default, { menu: __assign(__assign({}, menu), { pAppCode: menu.pAppCode }), showMenuAsIcon: showMenuAsIcon })),
|
|
60
|
+
menu.menuItemType === 'WEB_LINK' && menu.conversionLinkSrc && (react_1.default.createElement(WebMenuItemNav_1.default, { menu: __assign(__assign({}, menu), { conversionLinkSrc: menu.conversionLinkSrc }), showMenuAsIcon: showMenuAsIcon })),
|
|
61
|
+
isContextOpen && menu.parsedNodes.length > 0 && (react_1.default.createElement(ContextMenuNavs_1.ContextMenuNavs, { parentRef: ref }, menu.parsedNodes.map(function (nav, index) { return (react_1.default.createElement(ContextMenuNavs_1.ContextMenuItemNav, { key: index, menu: nav })); })))),
|
|
62
|
+
showMenuAsIcon ? (react_1.default.createElement(hybrid_1.Spacing, { spacingType: "width", size: "spacing_b" })) : (react_1.default.createElement(hybrid_1.Spacing, { spacingType: "width", size: "spacing_f" }))));
|
|
62
63
|
}
|
|
63
64
|
var S_Box = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n cursor: pointer;\n display: flex;\n"], ["\n align-items: center;\n cursor: pointer;\n display: flex;\n"])));
|
|
64
65
|
exports.default = MenuItemNav;
|
|
@@ -6,6 +6,7 @@ declare type WithRequired<T, K extends keyof T> = T & {
|
|
|
6
6
|
declare type Props = {
|
|
7
7
|
menu: WithRequired<ParsedNode, 'pAppCode'>;
|
|
8
8
|
showMenuAsIcon?: boolean;
|
|
9
|
+
isContextMenu?: boolean;
|
|
9
10
|
};
|
|
10
|
-
declare function PAppMenuItemNav({ menu, showMenuAsIcon }: Props): JSX.Element;
|
|
11
|
+
declare function PAppMenuItemNav({ menu, showMenuAsIcon, isContextMenu }: Props): JSX.Element;
|
|
11
12
|
export default PAppMenuItemNav;
|
|
@@ -24,12 +24,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
var react_1 = __importStar(require("react"));
|
|
26
26
|
var react_router_dom_1 = require("react-router-dom");
|
|
27
|
-
var
|
|
27
|
+
var Navigations_1 = require("../../../../../../common/components/Navigations");
|
|
28
28
|
var DynamicDesktopNavBar_1 = require("../../../DynamicDesktopNavBar");
|
|
29
29
|
var IconNav_1 = __importDefault(require("../../IconNav"));
|
|
30
30
|
var ImageIconNav_1 = __importDefault(require("../../ImageIconNav"));
|
|
31
31
|
function PAppMenuItemNav(_a) {
|
|
32
|
-
var menu = _a.menu, showMenuAsIcon = _a.showMenuAsIcon;
|
|
32
|
+
var menu = _a.menu, showMenuAsIcon = _a.showMenuAsIcon, _b = _a.isContextMenu, isContextMenu = _b === void 0 ? false : _b;
|
|
33
33
|
var basePath = (0, react_1.useContext)(DynamicDesktopNavBar_1.BasePathContext).basePath;
|
|
34
34
|
var match = (0, react_router_dom_1.useRouteMatch)("" + basePath);
|
|
35
35
|
var activeMatch = (0, react_router_dom_1.useRouteMatch)(basePath + "/:activeKey");
|
|
@@ -44,6 +44,6 @@ function PAppMenuItemNav(_a) {
|
|
|
44
44
|
return react_1.default.createElement(IconNav_1.default, { to: "/" + menu.pAppCode, iconName: menu.iconName });
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
return (react_1.default.createElement(
|
|
47
|
+
return isContextMenu ? (react_1.default.createElement(Navigations_1.ContextTextLabelNav, { isActive: isActive, preventLineChange: true, openNewTab: false, to: "/" + menu.pAppCode, text: menu.name })) : (react_1.default.createElement(Navigations_1.TextLabelNav, { isActive: isActive, preventLineChange: true, openNewTab: false, to: "/" + menu.pAppCode, text: menu.name }));
|
|
48
48
|
}
|
|
49
49
|
exports.default = PAppMenuItemNav;
|
|
@@ -6,6 +6,7 @@ declare type WithRequired<T, K extends keyof T> = T & {
|
|
|
6
6
|
declare type Props = {
|
|
7
7
|
menu: WithRequired<ParsedNode, 'conversionLinkSrc'>;
|
|
8
8
|
showMenuAsIcon?: boolean;
|
|
9
|
+
isContextMenu?: boolean;
|
|
9
10
|
};
|
|
10
|
-
declare function WebMenuItemNav({ menu, showMenuAsIcon }: Props): JSX.Element;
|
|
11
|
+
declare function WebMenuItemNav({ menu, showMenuAsIcon, isContextMenu }: Props): JSX.Element;
|
|
11
12
|
export default WebMenuItemNav;
|
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var
|
|
7
|
+
var Navigations_1 = require("../../../../../../common/components/Navigations");
|
|
8
8
|
var IconNav_1 = __importDefault(require("../../IconNav"));
|
|
9
9
|
var ImageIconNav_1 = __importDefault(require("../../ImageIconNav"));
|
|
10
10
|
function WebMenuItemNav(_a) {
|
|
11
|
-
var menu = _a.menu, showMenuAsIcon = _a.showMenuAsIcon;
|
|
11
|
+
var menu = _a.menu, showMenuAsIcon = _a.showMenuAsIcon, isContextMenu = _a.isContextMenu;
|
|
12
12
|
if (showMenuAsIcon) {
|
|
13
13
|
if (menu.iconSrc) {
|
|
14
14
|
return react_1.default.createElement(ImageIconNav_1.default, { to: menu.conversionLinkSrc, iconSrc: menu.iconSrc, openNewTab: true });
|
|
@@ -17,6 +17,6 @@ function WebMenuItemNav(_a) {
|
|
|
17
17
|
return react_1.default.createElement(IconNav_1.default, { to: "/" + menu.pAppCode, iconName: menu.iconName });
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
return react_1.default.createElement(
|
|
20
|
+
return isContextMenu ? (react_1.default.createElement(Navigations_1.ContextTextLabelNav, { preventLineChange: true, openNewTab: true, to: menu.conversionLinkSrc, text: menu.name })) : (react_1.default.createElement(Navigations_1.TextLabelNav, { preventLineChange: true, openNewTab: true, to: menu.conversionLinkSrc, text: menu.name }));
|
|
21
21
|
}
|
|
22
22
|
exports.default = WebMenuItemNav;
|
|
@@ -3,6 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DynamicDesktopNavBar = void 0;
|
|
6
|
+
exports.DynamicDesktopNavBarTemplates = exports.DynamicDesktopNavBar = void 0;
|
|
7
7
|
var DynamicDesktopNavBar_1 = require("./DynamicDesktopNavBar");
|
|
8
8
|
Object.defineProperty(exports, "DynamicDesktopNavBar", { enumerable: true, get: function () { return __importDefault(DynamicDesktopNavBar_1).default; } });
|
|
9
|
+
var templates_1 = require("./templates");
|
|
10
|
+
Object.defineProperty(exports, "DynamicDesktopNavBarTemplates", { enumerable: true, get: function () { return templates_1.DynamicDesktopNavBarTemplates; } });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplateNamesType } from './types';
|
|
2
|
-
declare class
|
|
2
|
+
declare class DynamicDesktopNavBarTemplates {
|
|
3
3
|
private static data;
|
|
4
4
|
private static names;
|
|
5
5
|
static getNames(): Record<"W1_0001" | "W1_0002" | "W1_0003" | "W1_0004" | "W1_0005", "W1_0001" | "W1_0002" | "W1_0003" | "W1_0004" | "W1_0005">;
|
|
@@ -24,6 +24,7 @@ declare class MenuDesignTemplates {
|
|
|
24
24
|
secondaryMenuOptions: {
|
|
25
25
|
showMenuAsIcon: boolean;
|
|
26
26
|
maxLength: number;
|
|
27
|
+
style: {};
|
|
27
28
|
};
|
|
28
29
|
} | {
|
|
29
30
|
gridTemplate: string;
|
|
@@ -39,8 +40,11 @@ declare class MenuDesignTemplates {
|
|
|
39
40
|
secondaryMenuOptions: {
|
|
40
41
|
showMenuAsIcon: boolean;
|
|
41
42
|
maxLength: number;
|
|
43
|
+
style: {};
|
|
44
|
+
};
|
|
45
|
+
userProfileOptions: {
|
|
46
|
+
style: {};
|
|
42
47
|
};
|
|
43
|
-
userProfileOptions: {};
|
|
44
48
|
} | {
|
|
45
49
|
gridTemplate: string;
|
|
46
50
|
gridStyle: {
|
|
@@ -57,7 +61,9 @@ declare class MenuDesignTemplates {
|
|
|
57
61
|
maxLength: number;
|
|
58
62
|
style: {};
|
|
59
63
|
};
|
|
60
|
-
userProfileOptions: {
|
|
64
|
+
userProfileOptions: {
|
|
65
|
+
style: {};
|
|
66
|
+
};
|
|
61
67
|
} | {
|
|
62
68
|
gridTemplate: string;
|
|
63
69
|
gridStyle: {
|
|
@@ -74,8 +80,11 @@ declare class MenuDesignTemplates {
|
|
|
74
80
|
secondaryMenuOptions: {
|
|
75
81
|
showMenuAsIcon: boolean;
|
|
76
82
|
maxLength: number;
|
|
83
|
+
style: {};
|
|
84
|
+
};
|
|
85
|
+
userProfileOptions: {
|
|
86
|
+
style: {};
|
|
77
87
|
};
|
|
78
|
-
userProfileOptions: {};
|
|
79
88
|
} | {
|
|
80
89
|
gridTemplate: string;
|
|
81
90
|
gridStyle: {
|
|
@@ -96,7 +105,9 @@ declare class MenuDesignTemplates {
|
|
|
96
105
|
justifyContent: string;
|
|
97
106
|
};
|
|
98
107
|
};
|
|
99
|
-
userProfileOptions: {
|
|
108
|
+
userProfileOptions: {
|
|
109
|
+
style: {};
|
|
110
|
+
};
|
|
100
111
|
};
|
|
101
112
|
}
|
|
102
|
-
export default
|
|
113
|
+
export default DynamicDesktopNavBarTemplates;
|
|
@@ -12,20 +12,20 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
var constants_1 = require("./constants");
|
|
15
|
-
var
|
|
16
|
-
function
|
|
15
|
+
var DynamicDesktopNavBarTemplates = /** @class */ (function () {
|
|
16
|
+
function DynamicDesktopNavBarTemplates() {
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
return
|
|
18
|
+
DynamicDesktopNavBarTemplates.getNames = function () {
|
|
19
|
+
return DynamicDesktopNavBarTemplates.names;
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
return
|
|
21
|
+
DynamicDesktopNavBarTemplates.getTemplate = function (name) {
|
|
22
|
+
return DynamicDesktopNavBarTemplates.data[name];
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
DynamicDesktopNavBarTemplates.data = constants_1.TEMPLATES_DATA;
|
|
25
|
+
DynamicDesktopNavBarTemplates.names = (Object.keys(constants_1.TEMPLATES_DATA).reduce(function (acc, cur) {
|
|
26
26
|
var _a;
|
|
27
27
|
return (__assign(__assign({}, acc), (_a = {}, _a[cur] = cur, _a)));
|
|
28
28
|
}, {}));
|
|
29
|
-
return
|
|
29
|
+
return DynamicDesktopNavBarTemplates;
|
|
30
30
|
}());
|
|
31
|
-
exports.default =
|
|
31
|
+
exports.default = DynamicDesktopNavBarTemplates;
|
|
@@ -20,6 +20,7 @@ export declare const TEMPLATES_DATA: {
|
|
|
20
20
|
secondaryMenuOptions: {
|
|
21
21
|
showMenuAsIcon: boolean;
|
|
22
22
|
maxLength: number;
|
|
23
|
+
style: {};
|
|
23
24
|
};
|
|
24
25
|
};
|
|
25
26
|
W1_0002: {
|
|
@@ -36,8 +37,11 @@ export declare const TEMPLATES_DATA: {
|
|
|
36
37
|
secondaryMenuOptions: {
|
|
37
38
|
showMenuAsIcon: boolean;
|
|
38
39
|
maxLength: number;
|
|
40
|
+
style: {};
|
|
41
|
+
};
|
|
42
|
+
userProfileOptions: {
|
|
43
|
+
style: {};
|
|
39
44
|
};
|
|
40
|
-
userProfileOptions: {};
|
|
41
45
|
};
|
|
42
46
|
W1_0003: {
|
|
43
47
|
gridTemplate: string;
|
|
@@ -55,7 +59,9 @@ export declare const TEMPLATES_DATA: {
|
|
|
55
59
|
maxLength: number;
|
|
56
60
|
style: {};
|
|
57
61
|
};
|
|
58
|
-
userProfileOptions: {
|
|
62
|
+
userProfileOptions: {
|
|
63
|
+
style: {};
|
|
64
|
+
};
|
|
59
65
|
};
|
|
60
66
|
W1_0004: {
|
|
61
67
|
gridTemplate: string;
|
|
@@ -73,8 +79,11 @@ export declare const TEMPLATES_DATA: {
|
|
|
73
79
|
secondaryMenuOptions: {
|
|
74
80
|
showMenuAsIcon: boolean;
|
|
75
81
|
maxLength: number;
|
|
82
|
+
style: {};
|
|
83
|
+
};
|
|
84
|
+
userProfileOptions: {
|
|
85
|
+
style: {};
|
|
76
86
|
};
|
|
77
|
-
userProfileOptions: {};
|
|
78
87
|
};
|
|
79
88
|
W1_0005: {
|
|
80
89
|
gridTemplate: string;
|
|
@@ -96,6 +105,8 @@ export declare const TEMPLATES_DATA: {
|
|
|
96
105
|
justifyContent: string;
|
|
97
106
|
};
|
|
98
107
|
};
|
|
99
|
-
userProfileOptions: {
|
|
108
|
+
userProfileOptions: {
|
|
109
|
+
style: {};
|
|
110
|
+
};
|
|
100
111
|
};
|
|
101
112
|
};
|
|
@@ -22,7 +22,8 @@ exports.TEMPLATES_DATA = {
|
|
|
22
22
|
},
|
|
23
23
|
secondaryMenuOptions: {
|
|
24
24
|
showMenuAsIcon: false,
|
|
25
|
-
maxLength: 0
|
|
25
|
+
maxLength: 0,
|
|
26
|
+
style: {}
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
29
|
W1_0002: {
|
|
@@ -38,9 +39,12 @@ exports.TEMPLATES_DATA = {
|
|
|
38
39
|
},
|
|
39
40
|
secondaryMenuOptions: {
|
|
40
41
|
showMenuAsIcon: false,
|
|
41
|
-
maxLength: 0
|
|
42
|
+
maxLength: 0,
|
|
43
|
+
style: {}
|
|
42
44
|
},
|
|
43
|
-
userProfileOptions: {
|
|
45
|
+
userProfileOptions: {
|
|
46
|
+
style: {}
|
|
47
|
+
}
|
|
44
48
|
},
|
|
45
49
|
W1_0003: {
|
|
46
50
|
gridTemplate: 'BRAND_LOGO PRIMARY_MENU SECONDARY_MENU USER_PROFILE',
|
|
@@ -58,7 +62,9 @@ exports.TEMPLATES_DATA = {
|
|
|
58
62
|
maxLength: 3,
|
|
59
63
|
style: {}
|
|
60
64
|
},
|
|
61
|
-
userProfileOptions: {
|
|
65
|
+
userProfileOptions: {
|
|
66
|
+
style: {}
|
|
67
|
+
}
|
|
62
68
|
},
|
|
63
69
|
W1_0004: {
|
|
64
70
|
gridTemplate: 'BRAND_LOGO PRIMARY_MENU USER_PROFILE',
|
|
@@ -75,19 +81,22 @@ exports.TEMPLATES_DATA = {
|
|
|
75
81
|
},
|
|
76
82
|
secondaryMenuOptions: {
|
|
77
83
|
showMenuAsIcon: false,
|
|
78
|
-
maxLength: 0
|
|
84
|
+
maxLength: 0,
|
|
85
|
+
style: {}
|
|
79
86
|
},
|
|
80
|
-
userProfileOptions: {
|
|
87
|
+
userProfileOptions: {
|
|
88
|
+
style: {}
|
|
89
|
+
}
|
|
81
90
|
},
|
|
82
91
|
W1_0005: {
|
|
83
|
-
gridTemplate: 'BRAND_LOGO SECONDARY_MENU
|
|
92
|
+
gridTemplate: 'BRAND_LOGO PRIMARY_MENU SECONDARY_MENU USER_PROFILE',
|
|
84
93
|
gridStyle: {
|
|
85
|
-
gridTemplateColumns: 'max-content max-content
|
|
94
|
+
gridTemplateColumns: 'max-content auto max-content max-content'
|
|
86
95
|
},
|
|
87
96
|
showSecondaryMenu: true,
|
|
88
97
|
primaryMenuOptions: {
|
|
89
98
|
showMenuAsIcon: false,
|
|
90
|
-
maxLength:
|
|
99
|
+
maxLength: 99,
|
|
91
100
|
style: {
|
|
92
101
|
justifyContent: 'flex-end'
|
|
93
102
|
}
|
|
@@ -96,9 +105,11 @@ exports.TEMPLATES_DATA = {
|
|
|
96
105
|
showMenuAsIcon: true,
|
|
97
106
|
maxLength: 3,
|
|
98
107
|
style: {
|
|
99
|
-
justifyContent: 'flex-
|
|
108
|
+
justifyContent: 'flex-end'
|
|
100
109
|
}
|
|
101
110
|
},
|
|
102
|
-
userProfileOptions: {
|
|
111
|
+
userProfileOptions: {
|
|
112
|
+
style: {}
|
|
113
|
+
}
|
|
103
114
|
}
|
|
104
115
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as DynamicDesktopNavBarTemplates } from './DynamicDesktopNavBarTemplates';
|
|
2
2
|
export * from './types';
|
|
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
14
|
};
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
var
|
|
18
|
-
Object.defineProperty(exports, "
|
|
16
|
+
exports.DynamicDesktopNavBarTemplates = void 0;
|
|
17
|
+
var DynamicDesktopNavBarTemplates_1 = require("./DynamicDesktopNavBarTemplates");
|
|
18
|
+
Object.defineProperty(exports, "DynamicDesktopNavBarTemplates", { enumerable: true, get: function () { return __importDefault(DynamicDesktopNavBarTemplates_1).default; } });
|
|
19
19
|
__exportStar(require("./types"), exports);
|
|
@@ -71,7 +71,7 @@ function TextButton(_a) {
|
|
|
71
71
|
onClick();
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
return (react_1.default.createElement(S_Button, __assign({}, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled', state: state }),
|
|
74
|
+
return (react_1.default.createElement(S_Button, __assign({}, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled', state: state, colorTheme: colorTheme }),
|
|
75
75
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor[colorTheme], singleLineMode: "use" })));
|
|
76
76
|
}
|
|
77
77
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n ", ";\n"], ["\n border-radius: 14px;\n height: 48px;\n ", ";\n"])), function (_a) {
|
|
@@ -85,11 +85,15 @@ var S_Button = styled_components_1.default.button(templateObject_5 || (templateO
|
|
|
85
85
|
var state = _a.state;
|
|
86
86
|
return (state === 'normal' ? 'pointer' : 'default');
|
|
87
87
|
}, function (_a) {
|
|
88
|
-
var theme = _a.theme;
|
|
89
|
-
return
|
|
88
|
+
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
89
|
+
return colorTheme === 'white'
|
|
90
|
+
? theme.ui_cpnt_button_white_base_hover
|
|
91
|
+
: theme.ui_cpnt_button_line_base_hover;
|
|
90
92
|
}, function (_a) {
|
|
91
|
-
var theme = _a.theme;
|
|
92
|
-
return
|
|
93
|
+
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
94
|
+
return colorTheme === 'white'
|
|
95
|
+
? theme.ui_cpnt_button_white_base_pressed
|
|
96
|
+
: theme.ui_cpnt_button_line_base_pressed;
|
|
93
97
|
}, function (_a) {
|
|
94
98
|
var size = _a.size;
|
|
95
99
|
return size &&
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PDSTabItemOption } from '../../../common/types';
|
|
3
|
+
export declare type ItemType = PDSTabItemOption;
|
|
4
|
+
declare type UserDesktopSideTabProps = {
|
|
5
|
+
itemArray: ItemType[];
|
|
6
|
+
};
|
|
7
|
+
declare function UserDesktopSideTab({ itemArray }: UserDesktopSideTabProps): JSX.Element;
|
|
8
|
+
export default UserDesktopSideTab;
|