pds-dev-kit-web 2.2.45 → 2.2.47
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/src/common/styles/colorSet/PaletteColor_Dark.json +2 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
- package/dist/src/common/styles/colorSet/UIColor.json +2 -1
- package/dist/src/common/styles/colorSet/index.d.ts +5 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/InternalLinkMenuItemNav.js +9 -18
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.js +2 -10
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PageMenuItemNav.js +2 -10
- package/package.json +1 -1
- package/release-note.md +3 -9
- package/webhook/node_modules/esrecurse/.babelrc +0 -3
|
@@ -346,5 +346,6 @@
|
|
|
346
346
|
"sys_component_base_45": "darkgreen300",
|
|
347
347
|
"sys_component_base_46": "black/opacity90",
|
|
348
348
|
"sys_cpnt_list_chatbubble_download_button_base": "white/opacity20",
|
|
349
|
-
"sys_cpnt_sheet_base_11": "darkgrey10"
|
|
349
|
+
"sys_cpnt_sheet_base_11": "darkgrey10",
|
|
350
|
+
"sys_cpnt_sheet_base_12": "white/opacity20"
|
|
350
351
|
}
|
|
@@ -346,5 +346,6 @@
|
|
|
346
346
|
"sys_component_base_45": "green300",
|
|
347
347
|
"sys_component_base_46": "black/opacity90",
|
|
348
348
|
"sys_cpnt_list_chatbubble_download_button_base": "black/opacity40",
|
|
349
|
-
"sys_cpnt_sheet_base_11": "grey10"
|
|
349
|
+
"sys_cpnt_sheet_base_11": "grey10",
|
|
350
|
+
"sys_cpnt_sheet_base_12": "white/opacity20"
|
|
350
351
|
}
|
|
@@ -843,5 +843,6 @@
|
|
|
843
843
|
"ui_contents_dimmed": "sys_component_base_46",
|
|
844
844
|
"ui_cpnt_list_chatbubble_base_transparent": "sys_component_base_white_opacity00",
|
|
845
845
|
"ui_cpnt_list_chatbubble_download_button_base": "sys_cpnt_list_chatbubble_download_button_base",
|
|
846
|
-
"ui_111": "sys_cpnt_sheet_base_11"
|
|
846
|
+
"ui_111": "sys_cpnt_sheet_base_11",
|
|
847
|
+
"ui_112": "sys_cpnt_sheet_base_12"
|
|
847
848
|
}
|
|
@@ -119,7 +119,7 @@ declare const colorSet: {
|
|
|
119
119
|
grey300: string;
|
|
120
120
|
darkgrey300: string;
|
|
121
121
|
};
|
|
122
|
-
readonly
|
|
122
|
+
readonly PaletteColor_light: {
|
|
123
123
|
sys_container_background_01: string;
|
|
124
124
|
sys_container_background_02: string;
|
|
125
125
|
sys_container_background_03: string;
|
|
@@ -468,8 +468,9 @@ declare const colorSet: {
|
|
|
468
468
|
sys_component_base_46: string;
|
|
469
469
|
sys_cpnt_list_chatbubble_download_button_base: string;
|
|
470
470
|
sys_cpnt_sheet_base_11: string;
|
|
471
|
+
sys_cpnt_sheet_base_12: string;
|
|
471
472
|
};
|
|
472
|
-
readonly
|
|
473
|
+
readonly PaletteColor_Dark: {
|
|
473
474
|
sys_container_background_01: string;
|
|
474
475
|
sys_container_background_02: string;
|
|
475
476
|
sys_container_background_03: string;
|
|
@@ -818,6 +819,7 @@ declare const colorSet: {
|
|
|
818
819
|
sys_component_base_46: string;
|
|
819
820
|
sys_cpnt_list_chatbubble_download_button_base: string;
|
|
820
821
|
sys_cpnt_sheet_base_11: string;
|
|
822
|
+
sys_cpnt_sheet_base_12: string;
|
|
821
823
|
};
|
|
822
824
|
readonly UIColor: {
|
|
823
825
|
ui_cpnt_button_fill_base_primary: string;
|
|
@@ -1665,6 +1667,7 @@ declare const colorSet: {
|
|
|
1665
1667
|
ui_cpnt_list_chatbubble_base_transparent: string;
|
|
1666
1668
|
ui_cpnt_list_chatbubble_download_button_base: string;
|
|
1667
1669
|
ui_111: string;
|
|
1670
|
+
ui_112: string;
|
|
1668
1671
|
};
|
|
1669
1672
|
};
|
|
1670
1673
|
export default colorSet;
|
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
7
|
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
8
|
-
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
9
8
|
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
9
|
+
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
10
10
|
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
11
11
|
var colorSet = {
|
|
12
12
|
SemanticColor: SemanticColor_json_1.default,
|
|
13
|
-
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
14
13
|
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
14
|
+
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
15
15
|
UIColor: UIColor_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -5,28 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
var react_1 = require("react");
|
|
8
|
-
var react_router_dom_1 = require("react-router-dom");
|
|
9
8
|
var Navigations_1 = require("../../../../../../common/components/Navigations");
|
|
10
9
|
var DynamicDesktopNavBar_1 = require("../../../DynamicDesktopNavBar");
|
|
11
|
-
var utils_1 = require("../../../utils");
|
|
12
10
|
var IconNav_1 = __importDefault(require("../../IconNav"));
|
|
13
11
|
var ImageIconNav_1 = __importDefault(require("../../ImageIconNav"));
|
|
14
12
|
function InternalLinkMenuItemNav(_a) {
|
|
15
13
|
var menu = _a.menu, showMenuAsIcon = _a.showMenuAsIcon, isContextMenu = _a.isContextMenu;
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var _c = getInternalLink(basePath, menu.conversionLinkSrc), internalPath = _c.internalPath, pathname = _c.pathname, search = _c.search;
|
|
19
|
-
var isActive = (0, react_1.useMemo)(function () {
|
|
20
|
-
if (activeMode === 'BY_URL') {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
// NOTE: 'from' keyword를 예외로 삭제하고 비교합니다.
|
|
24
|
-
var locationSearch = (0, utils_1.getSearchExceptGivenName)(location.search, 'from');
|
|
25
|
-
if (pathname + search === location.pathname + locationSearch) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
return false;
|
|
29
|
-
}, [activeMode, location]);
|
|
14
|
+
var _b = (0, react_1.useContext)(DynamicDesktopNavBar_1.BasePathContext), basePath = _b.basePath, handleClickInternalMenuItemNav = _b.handleClickInternalMenuItemNav;
|
|
15
|
+
var internalPath = getInternalLink(basePath, menu.conversionLinkSrc).internalPath;
|
|
30
16
|
var onClickNav = function () {
|
|
31
17
|
handleClickInternalMenuItemNav(internalPath);
|
|
32
18
|
};
|
|
@@ -38,13 +24,18 @@ function InternalLinkMenuItemNav(_a) {
|
|
|
38
24
|
return ((0, jsx_runtime_1.jsx)(IconNav_1.default, { onClick: onClickNav, to: internalPath, iconName: menu.iconName, openNewTab: false }));
|
|
39
25
|
}
|
|
40
26
|
}
|
|
41
|
-
return isContextMenu ? ((0, jsx_runtime_1.jsx)(Navigations_1.ContextTextLabelNav, { onClick: onClickNav, preventLineChange: true, openNewTab: false, to: internalPath, text: menu.name })) : ((0, jsx_runtime_1.jsx)(Navigations_1.TextLabelNav, { onClick: onClickNav,
|
|
27
|
+
return isContextMenu ? ((0, jsx_runtime_1.jsx)(Navigations_1.ContextTextLabelNav, { onClick: onClickNav, preventLineChange: true, openNewTab: false, to: internalPath, text: menu.name })) : ((0, jsx_runtime_1.jsx)(Navigations_1.TextLabelNav, { onClick: onClickNav, preventLineChange: true, openNewTab: false, to: internalPath, text: menu.name }));
|
|
42
28
|
}
|
|
43
29
|
function getInternalLink(basePath, url) {
|
|
44
30
|
var _a = new URL(url), pathname = _a.pathname, search = _a.search;
|
|
45
31
|
var splitPath = pathname.split(basePath).pop();
|
|
46
32
|
var PAPP_CODE_INDEX = 1;
|
|
47
33
|
var pAppCode = splitPath === null || splitPath === void 0 ? void 0 : splitPath.split('/')[PAPP_CODE_INDEX];
|
|
48
|
-
return {
|
|
34
|
+
return {
|
|
35
|
+
internalPath: basePath + splitPath + search,
|
|
36
|
+
pAppCode: pAppCode,
|
|
37
|
+
pathname: pathname,
|
|
38
|
+
search: search
|
|
39
|
+
};
|
|
49
40
|
}
|
|
50
41
|
exports.default = InternalLinkMenuItemNav;
|
|
@@ -5,21 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
var react_1 = require("react");
|
|
8
|
-
var react_router_dom_1 = require("react-router-dom");
|
|
9
8
|
var Navigations_1 = require("../../../../../../common/components/Navigations");
|
|
10
9
|
var DynamicDesktopNavBar_1 = require("../../../DynamicDesktopNavBar");
|
|
11
10
|
var IconNav_1 = __importDefault(require("../../IconNav"));
|
|
12
11
|
var ImageIconNav_1 = __importDefault(require("../../ImageIconNav"));
|
|
13
12
|
function PAppMenuItemNav(_a) {
|
|
14
13
|
var menu = _a.menu, showMenuAsIcon = _a.showMenuAsIcon, _b = _a.isContextMenu, isContextMenu = _b === void 0 ? false : _b;
|
|
15
|
-
var
|
|
16
|
-
var activeMatch = (0, react_router_dom_1.useRouteMatch)("".concat(basePath, "/:activeKey"));
|
|
17
|
-
var isActive = (0, react_1.useMemo)(function () {
|
|
18
|
-
if (activeMode === 'BY_CLICK') {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
return (activeMatch === null || activeMatch === void 0 ? void 0 : activeMatch.params.activeKey) === menu.pAppCode;
|
|
22
|
-
}, [activeMode, menu, activeMatch]);
|
|
14
|
+
var basePath = (0, react_1.useContext)(DynamicDesktopNavBar_1.BasePathContext).basePath;
|
|
23
15
|
if (showMenuAsIcon) {
|
|
24
16
|
if (menu.iconSrc) {
|
|
25
17
|
return ((0, jsx_runtime_1.jsx)(ImageIconNav_1.default, { to: "".concat(basePath, "/").concat(menu.pAppCode), iconSrc: menu.iconSrc, openNewTab: false }));
|
|
@@ -28,6 +20,6 @@ function PAppMenuItemNav(_a) {
|
|
|
28
20
|
return ((0, jsx_runtime_1.jsx)(IconNav_1.default, { to: "".concat(basePath, "/").concat(menu.pAppCode), iconName: menu.iconName, openNewTab: false }));
|
|
29
21
|
}
|
|
30
22
|
}
|
|
31
|
-
return isContextMenu ? ((0, jsx_runtime_1.jsx)(Navigations_1.ContextTextLabelNav, { preventLineChange: true, openNewTab: false, to: "".concat(basePath, "/").concat(menu.pAppCode), text: menu.name })) : ((0, jsx_runtime_1.jsx)(Navigations_1.TextLabelNav, {
|
|
23
|
+
return isContextMenu ? ((0, jsx_runtime_1.jsx)(Navigations_1.ContextTextLabelNav, { preventLineChange: true, openNewTab: false, to: "".concat(basePath, "/").concat(menu.pAppCode), text: menu.name })) : ((0, jsx_runtime_1.jsx)(Navigations_1.TextLabelNav, { preventLineChange: true, openNewTab: false, to: "".concat(basePath, "/").concat(menu.pAppCode), text: menu.name }));
|
|
32
24
|
}
|
|
33
25
|
exports.default = PAppMenuItemNav;
|
|
@@ -5,21 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
var react_1 = require("react");
|
|
8
|
-
var react_router_dom_1 = require("react-router-dom");
|
|
9
8
|
var Navigations_1 = require("../../../../../../common/components/Navigations");
|
|
10
9
|
var DynamicDesktopNavBar_1 = require("../../../DynamicDesktopNavBar");
|
|
11
10
|
var IconNav_1 = __importDefault(require("../../IconNav"));
|
|
12
11
|
var ImageIconNav_1 = __importDefault(require("../../ImageIconNav"));
|
|
13
12
|
function PageMenuItemNav(_a) {
|
|
14
13
|
var menu = _a.menu, showMenuAsIcon = _a.showMenuAsIcon, _b = _a.isContextMenu, isContextMenu = _b === void 0 ? false : _b;
|
|
15
|
-
var
|
|
16
|
-
var activeMatch = (0, react_router_dom_1.useRouteMatch)("".concat(basePath, "/pages/:activeKey"));
|
|
17
|
-
var isActive = (0, react_1.useMemo)(function () {
|
|
18
|
-
if (activeMode === 'BY_CLICK') {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
return (activeMatch === null || activeMatch === void 0 ? void 0 : activeMatch.params.activeKey) === menu.slug;
|
|
22
|
-
}, [activeMode, menu, activeMatch]);
|
|
14
|
+
var basePath = (0, react_1.useContext)(DynamicDesktopNavBar_1.BasePathContext).basePath;
|
|
23
15
|
if (showMenuAsIcon) {
|
|
24
16
|
if (menu.iconSrc) {
|
|
25
17
|
return ((0, jsx_runtime_1.jsx)(ImageIconNav_1.default, { to: "".concat(basePath, "/pages/").concat(menu.slug), iconSrc: menu.iconSrc, openNewTab: false }));
|
|
@@ -28,6 +20,6 @@ function PageMenuItemNav(_a) {
|
|
|
28
20
|
return ((0, jsx_runtime_1.jsx)(IconNav_1.default, { to: "".concat(basePath, "/pages/").concat(menu.slug), iconName: menu.iconName, openNewTab: false }));
|
|
29
21
|
}
|
|
30
22
|
}
|
|
31
|
-
return isContextMenu ? ((0, jsx_runtime_1.jsx)(Navigations_1.ContextTextLabelNav, { preventLineChange: true, openNewTab: false, to: "".concat(basePath, "/pages/").concat(menu.slug), text: menu.name })) : ((0, jsx_runtime_1.jsx)(Navigations_1.TextLabelNav, {
|
|
23
|
+
return isContextMenu ? ((0, jsx_runtime_1.jsx)(Navigations_1.ContextTextLabelNav, { preventLineChange: true, openNewTab: false, to: "".concat(basePath, "/pages/").concat(menu.slug), text: menu.name })) : ((0, jsx_runtime_1.jsx)(Navigations_1.TextLabelNav, { preventLineChange: true, openNewTab: false, to: "".concat(basePath, "/pages/").concat(menu.slug), text: menu.name }));
|
|
32
24
|
}
|
|
33
25
|
exports.default = PageMenuItemNav;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v2.2.
|
|
2
|
+
## [v2.2.47]
|
|
3
3
|
## daily|https://design.storybook.publ.biz/
|
|
4
4
|
|
|
5
|
-
###
|
|
6
|
-
*
|
|
7
|
-
* headerIBtn2IconName prop 추가
|
|
8
|
-
* headerIBtn3IconName prop 추가
|
|
9
|
-
* headerIBtn2IconFillType prop 추가
|
|
10
|
-
* headerIBtn3IconFillType prop 추가
|
|
11
|
-
* onClickHeaderIBtn2 prop 추가
|
|
12
|
-
* onClickHeaderIBtn3 prop 추가
|
|
5
|
+
### Component
|
|
6
|
+
* [PUB-9039] 모든 메뉴에서 하이라이팅(굵게) 표시되지 않게 처리
|