pds-dev-kit-web 1.4.24 → 1.4.25
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/README.md +2 -2
- package/dist/src/desktop/components/AdminListHeader/HeaderBar.js +1 -1
- package/dist/src/desktop/components/ContextMenu/ContextMenu.d.ts +2 -1
- package/dist/src/desktop/components/ContextMenu/ContextMenu.js +6 -3
- package/dist/src/desktop/components/Dropdown/Dropdown.js +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.js +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFE.d.ts +2 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFE.js +41 -11
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWF/ContainersBox/ContainersBox.js +2 -0
- package/dist/src/mobile/components/ContextMenu/ContextMenu.d.ts +2 -1
- package/dist/src/mobile/components/ContextMenu/ContextMenu.js +6 -3
- package/dist/src/mobile/components/Dropdown/Dropdown.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ function HeaderBar(_a) {
|
|
|
48
48
|
react_1.default.createElement(S_ListCount, null,
|
|
49
49
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: t('str_rows_per_page', '목록 개수'), styleTheme: "caption1Regular" }),
|
|
50
50
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }),
|
|
51
|
-
react_1.default.createElement(Dropdown_1.Dropdown, { size: "small", valueArray: dropdownTextArray, onChange: handleDropdown, defaultValue: dropdownDefaultValue !== null && dropdownDefaultValue !== void 0 ? dropdownDefaultValue : dropdownTextArray[0] })),
|
|
51
|
+
react_1.default.createElement(Dropdown_1.Dropdown, { customWidth: "88px", size: "small", valueArray: dropdownTextArray, onChange: handleDropdown, defaultValue: dropdownDefaultValue !== null && dropdownDefaultValue !== void 0 ? dropdownDefaultValue : dropdownTextArray[0] })),
|
|
52
52
|
react_1.default.createElement(S_Page, null,
|
|
53
53
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: currentPage, styleTheme: "caption1Regular", colorTheme: "sysTextPrimary" }),
|
|
54
54
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: " / ", styleTheme: "caption1Regular", colorTheme: "sysTextPrimary" }),
|
|
@@ -3,6 +3,7 @@ declare type ContextMenuProps = {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
autoWidthMode?: 'none' | 'use';
|
|
5
5
|
maxHeight?: number;
|
|
6
|
+
customWidth?: string;
|
|
6
7
|
};
|
|
7
|
-
declare function ContextMenu({ children, autoWidthMode, maxHeight }: ContextMenuProps): JSX.Element;
|
|
8
|
+
declare function ContextMenu({ children, autoWidthMode, maxHeight, customWidth }: ContextMenuProps): JSX.Element;
|
|
8
9
|
export default ContextMenu;
|
|
@@ -10,10 +10,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
var react_1 = __importDefault(require("react"));
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
function ContextMenu(_a) {
|
|
13
|
-
var children = _a.children, _b = _a.autoWidthMode, autoWidthMode = _b === void 0 ? 'none' : _b, maxHeight = _a.maxHeight;
|
|
14
|
-
return (react_1.default.createElement(S_ContextMenu, { autoWidth: autoWidthMode === 'use', maxHeight: maxHeight }, children));
|
|
13
|
+
var children = _a.children, _b = _a.autoWidthMode, autoWidthMode = _b === void 0 ? 'none' : _b, maxHeight = _a.maxHeight, customWidth = _a.customWidth;
|
|
14
|
+
return (react_1.default.createElement(S_ContextMenu, { autoWidth: autoWidthMode === 'use', maxHeight: maxHeight, customWidth: customWidth }, children));
|
|
15
15
|
}
|
|
16
|
-
var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n position: relative;\n vertical-align: baseline;\n width: ", ";\n z-index: 3;\n\n max-height: ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n position: relative;\n vertical-align: baseline;\n width: ", ";\n z-index: 3;\n\n max-height: ", ";\n"])), function (_a) {
|
|
16
|
+
var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n position: relative;\n vertical-align: baseline;\n width: ", ";\n z-index: 3;\n\n max-height: ", ";\n\n ", "\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n position: relative;\n vertical-align: baseline;\n width: ", ";\n z-index: 3;\n\n max-height: ", ";\n\n ", "\n"])), function (_a) {
|
|
17
17
|
var theme = _a.theme;
|
|
18
18
|
return theme.ui_cpnt_contextmenu_base;
|
|
19
19
|
}, function (_a) {
|
|
@@ -31,6 +31,9 @@ var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (template
|
|
|
31
31
|
}, function (_a) {
|
|
32
32
|
var maxHeight = _a.maxHeight;
|
|
33
33
|
return (maxHeight ? maxHeight + "px" : 'none');
|
|
34
|
+
}, function (_a) {
|
|
35
|
+
var customWidth = _a.customWidth;
|
|
36
|
+
return customWidth && "width: " + customWidth + ";min-width: " + customWidth + ";";
|
|
34
37
|
});
|
|
35
38
|
exports.default = ContextMenu;
|
|
36
39
|
var templateObject_1;
|
|
@@ -155,7 +155,7 @@ function Dropdown(_a) {
|
|
|
155
155
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getIconColorKey() }),
|
|
156
156
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" })),
|
|
157
157
|
isFocused && (react_1.default.createElement(S_ContextMenuWrapper, null,
|
|
158
|
-
react_1.default.createElement(ContextMenu_1.ContextMenu, { autoWidthMode: "use", maxHeight: maxHeight }, valueArray.map(function (el) { return (react_1.default.createElement(react_1.Fragment, { key: el.value },
|
|
158
|
+
react_1.default.createElement(ContextMenu_1.ContextMenu, { autoWidthMode: "use", maxHeight: maxHeight, customWidth: customWidth }, valueArray.map(function (el) { return (react_1.default.createElement(react_1.Fragment, { key: el.value },
|
|
159
159
|
react_1.default.createElement(ContextMenuItem_1.ContextMenuItem, { option: el, size: size, isSelected: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.value) === el.value, onClick: handleClickOption, state: el.state }))); }))))));
|
|
160
160
|
}
|
|
161
161
|
var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: 1;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n flex: 1;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/ContentsContainer.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare type ContentsContainerProps = {
|
|
|
3
3
|
stepContent?: JSX.Element;
|
|
4
4
|
content1?: JSX.Element;
|
|
5
5
|
content2?: JSX.Element;
|
|
6
|
-
layoutType: 'WFA_1' | 'WFB_1' | 'WFC_1' | 'WFD_1' | 'WFD_2' | 'WFE_1' | 'WFF_1' | 'WFG_1' | 'WFG_2' | 'WFG_3' | 'WFG_4' | 'WFG_5' | 'WFG_6' | 'WFH_1' | 'WFI_1' | 'WFI_2' | 'WFI_3' | 'WFI_4' | 'WFI_5' | 'WFI_6' | 'WFJ_1' | 'WFK_1';
|
|
6
|
+
layoutType: 'WFA_1' | 'WFB_1' | 'WFC_1' | 'WFD_1' | 'WFD_2' | 'WFE_1' | 'WFE_2' | 'WFF_1' | 'WFG_1' | 'WFG_2' | 'WFG_3' | 'WFG_4' | 'WFG_5' | 'WFG_6' | 'WFH_1' | 'WFI_1' | 'WFI_2' | 'WFI_3' | 'WFI_4' | 'WFI_5' | 'WFI_6' | 'WFJ_1' | 'WFK_1';
|
|
7
7
|
containerColor?: string;
|
|
8
8
|
areaColor?: string;
|
|
9
9
|
};
|
|
@@ -13,7 +13,8 @@ var ContentsContainer = function (_a) {
|
|
|
13
13
|
WFC_1: react_1.default.createElement(variation_1.WFC, { content1: content1, containerColor: containerColor, areaColor: areaColor }),
|
|
14
14
|
WFD_1: (react_1.default.createElement(variation_1.WFD, { layoutType: "WFD_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
15
15
|
WFD_2: (react_1.default.createElement(variation_1.WFD, { layoutType: "WFD_2", content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
16
|
-
WFE_1: (react_1.default.createElement(variation_1.WFE, { stepContent: stepContent, content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
16
|
+
WFE_1: (react_1.default.createElement(variation_1.WFE, { layoutType: "WFE_1", stepContent: stepContent, content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
17
|
+
WFE_2: (react_1.default.createElement(variation_1.WFE, { layoutType: "WFE_2", stepContent: stepContent, content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
17
18
|
WFF_1: react_1.default.createElement(variation_1.WFF, { content1: content1, containerColor: containerColor, areaColor: areaColor }),
|
|
18
19
|
WFG_1: (react_1.default.createElement(variation_1.WFG, { layoutType: "WFG_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor })),
|
|
19
20
|
WFG_2: (react_1.default.createElement(variation_1.WFG, { layoutType: "WFG_2", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor })),
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare type WFEProps = {
|
|
3
|
+
layoutType: 'WFE_1' | 'WFE_2';
|
|
3
4
|
stepContent?: JSX.Element;
|
|
4
5
|
content1?: JSX.Element;
|
|
5
6
|
containerColor?: string;
|
|
6
7
|
areaColor?: string;
|
|
7
8
|
};
|
|
8
|
-
declare const WFE: ({ stepContent, content1, containerColor, areaColor }: WFEProps) => JSX.Element;
|
|
9
|
+
declare const WFE: ({ layoutType, stepContent, content1, containerColor, areaColor }: WFEProps) => JSX.Element;
|
|
9
10
|
export default WFE;
|
|
@@ -10,29 +10,59 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
var react_1 = __importDefault(require("react"));
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var WFE = function (_a) {
|
|
13
|
-
var stepContent = _a.stepContent, content1 = _a.content1, containerColor = _a.containerColor, areaColor = _a.areaColor;
|
|
14
|
-
return (react_1.default.createElement(S_ContentsContainer, { containerColor: containerColor },
|
|
15
|
-
react_1.default.createElement(S_SideArea, { areaColor: areaColor },
|
|
16
|
-
react_1.default.createElement(S_StepContent,
|
|
17
|
-
react_1.default.createElement(S_ContentsArea, { areaColor: areaColor },
|
|
18
|
-
react_1.default.createElement(S_Content1,
|
|
13
|
+
var layoutType = _a.layoutType, stepContent = _a.stepContent, content1 = _a.content1, containerColor = _a.containerColor, areaColor = _a.areaColor;
|
|
14
|
+
return (react_1.default.createElement(S_ContentsContainer, { layoutType: layoutType, containerColor: containerColor },
|
|
15
|
+
react_1.default.createElement(S_SideArea, { layoutType: layoutType, areaColor: areaColor },
|
|
16
|
+
react_1.default.createElement(S_StepContent, { layoutType: layoutType }, stepContent)),
|
|
17
|
+
react_1.default.createElement(S_ContentsArea, { layoutType: layoutType, areaColor: areaColor },
|
|
18
|
+
react_1.default.createElement(S_Content1, { layoutType: layoutType }, content1))));
|
|
19
19
|
};
|
|
20
|
-
var S_ContentsContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n background-color: ", ";\n display: flex;\n
|
|
20
|
+
var S_ContentsContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n background-color: ", ";\n display: flex;\n justify-content: center;\n min-width: 1200px;\n ", ";\n ", ";\n"], ["\n align-items: flex-start;\n background-color: ", ";\n display: flex;\n justify-content: center;\n min-width: 1200px;\n ", ";\n ", ";\n"])), function (_a) {
|
|
21
21
|
var theme = _a.theme;
|
|
22
22
|
return theme.ui_contentscontainer01_background;
|
|
23
|
+
}, function (_a) {
|
|
24
|
+
var layoutType = _a.layoutType;
|
|
25
|
+
return ({
|
|
26
|
+
WFE_1: 'height: 100%;',
|
|
27
|
+
WFE_2: 'overflow-x: hidden;overflow-y: auto;height: 100%;'
|
|
28
|
+
}[layoutType]);
|
|
23
29
|
}, function (_a) {
|
|
24
30
|
var containerColor = _a.containerColor;
|
|
25
31
|
return "background-color: " + containerColor;
|
|
26
32
|
});
|
|
27
|
-
var S_SideArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-sizing: border-box;\n
|
|
33
|
+
var S_SideArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-sizing: border-box;\n min-width: 240px;\n padding-top: 48px;\n width: 240px;\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n min-width: 240px;\n padding-top: 48px;\n width: 240px;\n ", ";\n ", ";\n"])), function (_a) {
|
|
34
|
+
var layoutType = _a.layoutType;
|
|
35
|
+
return ({
|
|
36
|
+
WFE_1: 'height: 100%;',
|
|
37
|
+
WFE_2: ''
|
|
38
|
+
}[layoutType]);
|
|
39
|
+
}, function (_a) {
|
|
28
40
|
var areaColor = _a.areaColor;
|
|
29
41
|
return "background-color: " + areaColor;
|
|
30
42
|
});
|
|
31
|
-
var S_StepContent = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n
|
|
32
|
-
var
|
|
43
|
+
var S_StepContent = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
44
|
+
var layoutType = _a.layoutType;
|
|
45
|
+
return ({
|
|
46
|
+
WFE_1: 'height: 100%;overflow-x: hidden;overflow-y: auto;',
|
|
47
|
+
WFE_2: ''
|
|
48
|
+
}[layoutType]);
|
|
49
|
+
});
|
|
50
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n box-sizing: border-box;\n max-width: 1680px;\n min-width: 960px;\n width: 100%;\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n max-width: 1680px;\n min-width: 960px;\n width: 100%;\n ", ";\n ", ";\n"])), function (_a) {
|
|
51
|
+
var layoutType = _a.layoutType;
|
|
52
|
+
return ({
|
|
53
|
+
WFE_1: 'height: 100%;',
|
|
54
|
+
WFE_2: ''
|
|
55
|
+
}[layoutType]);
|
|
56
|
+
}, function (_a) {
|
|
33
57
|
var areaColor = _a.areaColor;
|
|
34
58
|
return "background-color: " + areaColor;
|
|
35
59
|
});
|
|
36
|
-
var S_Content1 = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n
|
|
60
|
+
var S_Content1 = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
61
|
+
var layoutType = _a.layoutType;
|
|
62
|
+
return ({
|
|
63
|
+
WFE_1: 'height: 100%;overflow-x: hidden;overflow-y: auto;',
|
|
64
|
+
WFE_2: ''
|
|
65
|
+
}[layoutType]);
|
|
66
|
+
});
|
|
37
67
|
exports.default = WFE;
|
|
38
68
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare type ContainersBoxProps = {
|
|
3
|
-
layoutType: 'WFA_1' | 'WFB_1' | 'WFC_1' | 'WFD_1' | 'WFD_2' | 'WFE_1' | 'WFF_1' | 'WFG_1' | 'WFG_2' | 'WFG_3' | 'WFG_4' | 'WFG_5' | 'WFG_6' | 'WFH_1' | 'WFI_1' | 'WFI_2' | 'WFI_3' | 'WFI_4' | 'WFI_5' | 'WFI_6' | 'WFJ_1' | 'WFK_1';
|
|
3
|
+
layoutType: 'WFA_1' | 'WFB_1' | 'WFC_1' | 'WFD_1' | 'WFD_2' | 'WFE_1' | 'WFE_2' | 'WFF_1' | 'WFG_1' | 'WFG_2' | 'WFG_3' | 'WFG_4' | 'WFG_5' | 'WFG_6' | 'WFH_1' | 'WFI_1' | 'WFI_2' | 'WFI_3' | 'WFI_4' | 'WFI_5' | 'WFI_6' | 'WFJ_1' | 'WFK_1';
|
|
4
4
|
pageMenuContent?: JSX.Element;
|
|
5
5
|
subMenuContent?: JSX.Element;
|
|
6
6
|
tabMenuContent?: JSX.Element;
|
|
@@ -23,6 +23,7 @@ var ContainersBox = function (_a) {
|
|
|
23
23
|
WFD_1: react_1.default.createElement(react_1.default.Fragment, null),
|
|
24
24
|
WFD_2: react_1.default.createElement(react_1.default.Fragment, null),
|
|
25
25
|
WFE_1: react_1.default.createElement(react_1.default.Fragment, null),
|
|
26
|
+
WFE_2: react_1.default.createElement(react_1.default.Fragment, null),
|
|
26
27
|
WFF_1: react_1.default.createElement(Containers_1.SubMenuContainer, { subMenuContent: subMenuContent }),
|
|
27
28
|
WFG_1: react_1.default.createElement(Containers_1.SubMenuContainer, { subMenuContent: subMenuContent }),
|
|
28
29
|
WFG_2: react_1.default.createElement(Containers_1.SubMenuContainer, { subMenuContent: subMenuContent }),
|
|
@@ -48,6 +49,7 @@ var ContainersBox = function (_a) {
|
|
|
48
49
|
WFD_1: react_1.default.createElement(react_1.default.Fragment, null),
|
|
49
50
|
WFD_2: react_1.default.createElement(react_1.default.Fragment, null),
|
|
50
51
|
WFE_1: react_1.default.createElement(react_1.default.Fragment, null),
|
|
52
|
+
WFE_2: react_1.default.createElement(react_1.default.Fragment, null),
|
|
51
53
|
WFF_1: react_1.default.createElement(Containers_1.TabMenuContainer, { tabMenuType: "tab_menu", tabMenuContent: tabMenuContent }),
|
|
52
54
|
WFG_1: react_1.default.createElement(Containers_1.TabMenuContainer, { tabMenuType: "tab_menu", tabMenuContent: tabMenuContent }),
|
|
53
55
|
WFG_2: react_1.default.createElement(Containers_1.TabMenuContainer, { tabMenuType: "tab_menu", tabMenuContent: tabMenuContent }),
|
|
@@ -3,6 +3,7 @@ declare type ContextMenuProps = {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
autoWidthMode?: 'none' | 'use';
|
|
5
5
|
maxHeight?: number;
|
|
6
|
+
customWidth?: string;
|
|
6
7
|
};
|
|
7
|
-
declare function ContextMenu({ children, autoWidthMode, maxHeight }: ContextMenuProps): JSX.Element;
|
|
8
|
+
declare function ContextMenu({ children, autoWidthMode, maxHeight, customWidth }: ContextMenuProps): JSX.Element;
|
|
8
9
|
export default ContextMenu;
|
|
@@ -10,10 +10,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
var react_1 = __importDefault(require("react"));
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
function ContextMenu(_a) {
|
|
13
|
-
var children = _a.children, _b = _a.autoWidthMode, autoWidthMode = _b === void 0 ? 'none' : _b, maxHeight = _a.maxHeight;
|
|
14
|
-
return (react_1.default.createElement(S_ContextMenu, { autoWidth: autoWidthMode === 'use', maxHeight: maxHeight }, children));
|
|
13
|
+
var children = _a.children, _b = _a.autoWidthMode, autoWidthMode = _b === void 0 ? 'none' : _b, maxHeight = _a.maxHeight, customWidth = _a.customWidth;
|
|
14
|
+
return (react_1.default.createElement(S_ContextMenu, { autoWidth: autoWidthMode === 'use', maxHeight: maxHeight, customWidth: customWidth }, children));
|
|
15
15
|
}
|
|
16
|
-
var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n vertical-align: baseline;\n width: ", ";\n max-height: ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n vertical-align: baseline;\n width: ", ";\n max-height: ", ";\n"])), function (_a) {
|
|
16
|
+
var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n vertical-align: baseline;\n width: ", ";\n max-height: ", ";\n\n ", "\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n vertical-align: baseline;\n width: ", ";\n max-height: ", ";\n\n ", "\n"])), function (_a) {
|
|
17
17
|
var theme = _a.theme;
|
|
18
18
|
return theme.ui_cpnt_contextmenu_base;
|
|
19
19
|
}, function (_a) {
|
|
@@ -31,6 +31,9 @@ var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (template
|
|
|
31
31
|
}, function (_a) {
|
|
32
32
|
var maxHeight = _a.maxHeight;
|
|
33
33
|
return (maxHeight ? maxHeight + "px" : 'none');
|
|
34
|
+
}, function (_a) {
|
|
35
|
+
var customWidth = _a.customWidth;
|
|
36
|
+
return customWidth && "width: " + customWidth + ";min-width: " + customWidth + ";";
|
|
34
37
|
});
|
|
35
38
|
exports.default = ContextMenu;
|
|
36
39
|
var templateObject_1;
|
|
@@ -155,7 +155,7 @@ function Dropdown(_a) {
|
|
|
155
155
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getIconColorKey() }),
|
|
156
156
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" })),
|
|
157
157
|
isFocused && (react_1.default.createElement(S_ContextMenuWrapper, null,
|
|
158
|
-
react_1.default.createElement(ContextMenu_1.ContextMenu, { autoWidthMode: "use", maxHeight: maxHeight }, valueArray.map(function (el) { return (react_1.default.createElement(react_1.Fragment, { key: el.value },
|
|
158
|
+
react_1.default.createElement(ContextMenu_1.ContextMenu, { autoWidthMode: "use", maxHeight: maxHeight, customWidth: customWidth }, valueArray.map(function (el) { return (react_1.default.createElement(react_1.Fragment, { key: el.value },
|
|
159
159
|
react_1.default.createElement(ContextMenuItem_1.ContextMenuItem, { option: el, size: size, isSelected: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.value) === el.value, onClick: handleClickOption, state: el.state }))); }))))));
|
|
160
160
|
}
|
|
161
161
|
var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: 1;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n flex: 1;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|