pds-dev-kit-web 1.4.18 → 1.4.21
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/assets/icons/line/Ghost.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Ghost.js +36 -0
- package/dist/src/common/assets/icons/line/PaymentFreeTrial.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PaymentFreeTrial.js +34 -0
- package/dist/src/common/assets/icons/line/PaymentOnetime.js +1 -1
- package/dist/src/common/assets/icons/line/PaymentRegularly.js +2 -1
- package/dist/src/common/assets/icons/line/index.d.ts +2 -0
- package/dist/src/common/assets/icons/line/index.js +4 -0
- package/dist/src/common/components/Navigations/NavLink.js +3 -1
- package/dist/src/common/components/Navigations/TextLabelNav.d.ts +2 -1
- package/dist/src/common/components/Navigations/TextLabelNav.js +3 -3
- package/dist/src/common/hooks/index.d.ts +1 -0
- package/dist/src/common/hooks/index.js +3 -1
- package/dist/src/common/hooks/useDetectOverflow.js +1 -1
- package/dist/src/common/hooks/usePrevious.d.ts +2 -0
- package/dist/src/common/hooks/usePrevious.js +11 -0
- package/dist/src/desktop/components/BasicList/BasicList.d.ts +3 -3
- package/dist/src/desktop/components/DesktopAlertDialog/DesktopAlertDialog.d.ts +1 -1
- package/dist/src/desktop/components/Dropdown/Dropdown.d.ts +3 -2
- package/dist/src/desktop/components/Dropdown/Dropdown.js +14 -6
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.d.ts +6 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.js +25 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/InternalLinkMenuItemNav.js +17 -9
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.js +5 -3
- package/dist/src/desktop/components/DynamicDesktopNavBar/reducer.d.ts +16 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/reducer.js +23 -0
- package/dist/src/desktop/components/FilterBar/FilterBar.d.ts +1 -1
- package/dist/src/desktop/components/MainButton/MainButton.js +16 -4
- package/dist/src/desktop/components/Select/Select.d.ts +7 -6
- package/dist/src/desktop/components/Select/Select.js +2 -2
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +3 -3
- package/dist/src/desktop/components/UserDesktopNavBar/UserDesktopNavBar.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +2 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTO.d.ts +3 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTO.js +8 -10
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTP.d.ts +3 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTP.js +8 -10
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTQ.js +5 -5
- package/dist/src/desktop/layout/LayoutWT/Containers/SubMenuContainer/variation/LeftSubMenu.js +1 -1
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +4 -7
- package/dist/src/hybrid/components/Divider/Divider.js +4 -1
- package/dist/src/mobile/components/BasicList/BasicList.d.ts +3 -3
- package/dist/src/mobile/components/Dropdown/Dropdown.d.ts +2 -1
- package/dist/src/mobile/components/Dropdown/Dropdown.js +15 -7
- package/dist/src/mobile/components/MainButton/MainButton.js +16 -4
- package/dist/src/mobile/components/MobileAlertDialog/MobileAlertDialog.d.ts +1 -1
- package/dist/src/mobile/components/Select/Select.d.ts +7 -6
- package/dist/src/mobile/components/Select/Select.js +2 -2
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +3 -3
- package/package.json +1 -1
- package/release-note.md +10 -4
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { SelectHTMLAttributes } from 'react';
|
|
2
2
|
import { PDSTextType } from '../../../common';
|
|
3
|
-
declare type
|
|
3
|
+
declare type SelectOption = {
|
|
4
4
|
text: string;
|
|
5
|
-
value:
|
|
5
|
+
value: SelectHTMLAttributes<HTMLSelectElement>['value'];
|
|
6
6
|
};
|
|
7
7
|
declare type SelectProps = {
|
|
8
8
|
hintText?: PDSTextType;
|
|
9
|
-
defaultValue?:
|
|
10
|
-
|
|
9
|
+
defaultValue?: SelectOption;
|
|
10
|
+
value?: SelectOption['value'];
|
|
11
|
+
valueArray: SelectOption[];
|
|
11
12
|
size?: 'large' | 'medium' | 'small' | 'rlarge';
|
|
12
13
|
responsiveMode?: 'none' | 'use';
|
|
13
14
|
state?: 'normal' | 'read_only' | 'disabled';
|
|
14
15
|
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
15
16
|
colorTheme?: 'none' | 'dark';
|
|
16
17
|
};
|
|
17
|
-
declare function Select({ hintText, defaultValue, valueArray, size, responsiveMode, state, onChange, colorTheme }: SelectProps): JSX.Element;
|
|
18
|
+
declare function Select({ hintText, defaultValue, value, valueArray, size, responsiveMode, state, onChange, colorTheme }: SelectProps): JSX.Element;
|
|
18
19
|
export default Select;
|
|
@@ -32,7 +32,7 @@ var hybrid_1 = require("../../../hybrid");
|
|
|
32
32
|
var HINT = 'HINT_VALUE';
|
|
33
33
|
function Select(_a) {
|
|
34
34
|
var _b;
|
|
35
|
-
var hintText = _a.hintText, defaultValue = _a.defaultValue, valueArray = _a.valueArray, _c = _a.size, size = _c === void 0 ? 'large' : _c, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, onChange = _a.onChange, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f;
|
|
35
|
+
var hintText = _a.hintText, defaultValue = _a.defaultValue, value = _a.value, valueArray = _a.valueArray, _c = _a.size, size = _c === void 0 ? 'large' : _c, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, onChange = _a.onChange, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f;
|
|
36
36
|
var handleChange = function (e) {
|
|
37
37
|
if (onChange) {
|
|
38
38
|
onChange(e);
|
|
@@ -57,7 +57,7 @@ function Select(_a) {
|
|
|
57
57
|
return (react_1.default.createElement(S_Box, { size: size, responsiveMode: responsiveMode, tabIndex: 0 },
|
|
58
58
|
react_1.default.createElement(S_Icon_Wrapper, { state: state },
|
|
59
59
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: "ic_arrow_down", colorKey: getIconColorKey() })),
|
|
60
|
-
react_1.default.createElement(S_Select, { disabled: state === 'disabled' || state === 'read_only', state: state, colorTheme: colorTheme, onChange: handleChange, defaultValue: (_b = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _b !== void 0 ? _b : HINT },
|
|
60
|
+
react_1.default.createElement(S_Select, { disabled: state === 'disabled' || state === 'read_only', state: state, colorTheme: colorTheme, onChange: handleChange, defaultValue: (_b = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _b !== void 0 ? _b : HINT, value: value || undefined },
|
|
61
61
|
hintText && (react_1.default.createElement("option", { disabled: true, value: HINT }, hintText)),
|
|
62
62
|
valueArray.map(function (el) { return (react_1.default.createElement("option", { key: el.value, value: el.value }, el.text)); }))));
|
|
63
63
|
}
|
|
@@ -99,21 +99,21 @@ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 =
|
|
|
99
99
|
var size = _a.size;
|
|
100
100
|
return size === 'rlarge' && 'width: 100%';
|
|
101
101
|
});
|
|
102
|
-
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 40px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
102
|
+
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n min-width: 64px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 40px;\n min-width: 64px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
103
103
|
var theme = _a.theme;
|
|
104
104
|
return theme.spacing.spacingE;
|
|
105
105
|
}, function (_a) {
|
|
106
106
|
var shapeType = _a.shapeType;
|
|
107
107
|
return shapeType === 'round' && 'border-radius: 14px;';
|
|
108
108
|
});
|
|
109
|
-
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 32px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
109
|
+
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 32px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
110
110
|
var theme = _a.theme;
|
|
111
111
|
return theme.spacing.spacingD;
|
|
112
112
|
}, function (_a) {
|
|
113
113
|
var shapeType = _a.shapeType;
|
|
114
114
|
return shapeType === 'round' && 'border-radius: 10px;';
|
|
115
115
|
});
|
|
116
|
-
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 24px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
116
|
+
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 24px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
117
117
|
var theme = _a.theme;
|
|
118
118
|
return theme.spacing.spacingD;
|
|
119
119
|
}, function (_a) {
|
|
@@ -3,7 +3,7 @@ import { PDSTextType, PDSValueOption } from '../../../common';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
logoImageSrc?: string;
|
|
5
5
|
titleText?: PDSTextType;
|
|
6
|
-
menuMode
|
|
6
|
+
menuMode?: 'center_text' | 'none';
|
|
7
7
|
textArray?: PDSValueOption[];
|
|
8
8
|
userImageSrc?: string;
|
|
9
9
|
loginInfoMode?: 'none' | 'profile' | 'button';
|
|
@@ -42,8 +42,8 @@ var ContentsContainer = function (_a) {
|
|
|
42
42
|
WTN_1: (react_1.default.createElement(variation_1.WTN, { layoutType: "WTN_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
43
43
|
WTN_2: (react_1.default.createElement(variation_1.WTN, { layoutType: "WTN_2", content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
44
44
|
WTN_3: (react_1.default.createElement(variation_1.WTN, { layoutType: "WTN_3", content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
45
|
-
WTO_1: (react_1.default.createElement(variation_1.WTO, { layoutType: "WTO_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
46
|
-
WTP_1: (react_1.default.createElement(variation_1.WTP, { layoutType: "WTP_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
45
|
+
WTO_1: (react_1.default.createElement(variation_1.WTO, { layoutType: "WTO_1", content1: content1, containerColor: containerColor, areaColor: areaColor, container1Ref: container1Ref })),
|
|
46
|
+
WTP_1: (react_1.default.createElement(variation_1.WTP, { layoutType: "WTP_1", content1: content1, containerColor: containerColor, areaColor: areaColor, container1Ref: container1Ref })),
|
|
47
47
|
WTQ_1: (react_1.default.createElement(variation_1.WTQ, { layoutType: "WTQ_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor })),
|
|
48
48
|
WTS_1: (react_1.default.createElement(variation_1.WTS, { layoutType: "WTS_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, container1Ref: container1Ref })),
|
|
49
49
|
WTS_2: (react_1.default.createElement(variation_1.WTS, { layoutType: "WTS_2", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, container1Ref: container1Ref }))
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
2
|
export declare type WTOProps = {
|
|
3
3
|
content1?: JSX.Element;
|
|
4
4
|
layoutType: 'WTO_1';
|
|
5
5
|
containerColor?: string;
|
|
6
6
|
areaColor?: string;
|
|
7
|
+
container1Ref?: MutableRefObject<HTMLDivElement | null>;
|
|
7
8
|
};
|
|
8
|
-
declare const WTO: ({ content1, layoutType, containerColor, areaColor }: WTOProps) => JSX.Element;
|
|
9
|
+
declare const WTO: ({ content1, layoutType, containerColor, areaColor, container1Ref }: WTOProps) => JSX.Element;
|
|
9
10
|
export default WTO;
|
|
@@ -10,29 +10,27 @@ 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 WTO = function (_a) {
|
|
13
|
-
var content1 = _a.content1, layoutType = _a.layoutType, containerColor = _a.containerColor, areaColor = _a.areaColor;
|
|
14
|
-
return (react_1.default.createElement(S_ContentsContainer, { layoutType: layoutType, containerColor: containerColor },
|
|
13
|
+
var content1 = _a.content1, layoutType = _a.layoutType, containerColor = _a.containerColor, areaColor = _a.areaColor, container1Ref = _a.container1Ref;
|
|
14
|
+
return (react_1.default.createElement(S_ContentsContainer, { layoutType: layoutType, containerColor: containerColor, ref: container1Ref },
|
|
15
15
|
react_1.default.createElement(S_ContentsArea, { layoutType: layoutType, areaColor: areaColor },
|
|
16
16
|
react_1.default.createElement(S_Content1, { layoutType: layoutType }, content1))));
|
|
17
17
|
};
|
|
18
|
-
var S_ContentsContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
18
|
+
var S_ContentsContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n min-width: 664px;\n width: calc(50% + 184px);\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n"], ["\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n min-width: 664px;\n width: calc(50% + 184px);\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n"])), function (_a) {
|
|
19
19
|
var theme = _a.theme;
|
|
20
20
|
return theme.ui_contentscontainer01_background;
|
|
21
21
|
}, function (_a) {
|
|
22
22
|
var containerColor = _a.containerColor;
|
|
23
23
|
return "background-color: " + containerColor;
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n overflow: auto;\n ", ";\n"], ["\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n overflow: auto;\n ", ";\n"])), function (_a) {
|
|
27
|
-
var areaColor = _a.areaColor;
|
|
28
|
-
return "background-color: " + areaColor;
|
|
29
|
-
});
|
|
30
|
-
// TODO: Content단에 height: 100%; 추가는 무한 스크롤 대응위한 임시 방편입니다.
|
|
31
|
-
var S_Content1 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n height: 100%;\n"], ["\n ", ";\n height: 100%;\n"])), function (_a) {
|
|
25
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-bottom: 88px;\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n padding-bottom: 88px;\n ", ";\n ", ";\n"])), function (_a) {
|
|
32
26
|
var layoutType = _a.layoutType;
|
|
33
27
|
return ({
|
|
34
28
|
WTO_1: 'width: 664px;'
|
|
35
29
|
}[layoutType]);
|
|
30
|
+
}, function (_a) {
|
|
31
|
+
var areaColor = _a.areaColor;
|
|
32
|
+
return "background-color: " + areaColor;
|
|
36
33
|
});
|
|
34
|
+
var S_Content1 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
37
35
|
exports.default = WTO;
|
|
38
36
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
2
|
export declare type WTPProps = {
|
|
3
3
|
content1?: JSX.Element;
|
|
4
4
|
layoutType: 'WTP_1';
|
|
5
5
|
containerColor?: string;
|
|
6
6
|
areaColor?: string;
|
|
7
|
+
container1Ref?: MutableRefObject<HTMLDivElement | null>;
|
|
7
8
|
};
|
|
8
|
-
declare const WTP: ({ content1, layoutType, containerColor, areaColor }: WTPProps) => JSX.Element;
|
|
9
|
+
declare const WTP: ({ content1, layoutType, containerColor, areaColor, container1Ref }: WTPProps) => JSX.Element;
|
|
9
10
|
export default WTP;
|
|
@@ -10,29 +10,27 @@ 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 WTP = function (_a) {
|
|
13
|
-
var content1 = _a.content1, layoutType = _a.layoutType, containerColor = _a.containerColor, areaColor = _a.areaColor;
|
|
14
|
-
return (react_1.default.createElement(S_ContentsContainer, { layoutType: layoutType, containerColor: containerColor },
|
|
13
|
+
var content1 = _a.content1, layoutType = _a.layoutType, containerColor = _a.containerColor, areaColor = _a.areaColor, container1Ref = _a.container1Ref;
|
|
14
|
+
return (react_1.default.createElement(S_ContentsContainer, { layoutType: layoutType, containerColor: containerColor, ref: container1Ref },
|
|
15
15
|
react_1.default.createElement(S_ContentsArea, { layoutType: layoutType, areaColor: areaColor },
|
|
16
16
|
react_1.default.createElement(S_Content1, { layoutType: layoutType }, content1))));
|
|
17
17
|
};
|
|
18
|
-
var S_ContentsContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
18
|
+
var S_ContentsContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n min-width: 664px;\n width: calc(50% + 184px);\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n"], ["\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n min-width: 664px;\n width: calc(50% + 184px);\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n"])), function (_a) {
|
|
19
19
|
var theme = _a.theme;
|
|
20
20
|
return theme.ui_contentscontainer01_background;
|
|
21
21
|
}, function (_a) {
|
|
22
22
|
var containerColor = _a.containerColor;
|
|
23
23
|
return "background-color: " + containerColor;
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n overflow: auto;\n ", ";\n"], ["\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n overflow: auto;\n ", ";\n"])), function (_a) {
|
|
27
|
-
var areaColor = _a.areaColor;
|
|
28
|
-
return "background-color: " + areaColor;
|
|
29
|
-
});
|
|
30
|
-
// TODO: Content단에 height: 100%; 추가는 무한 스크롤 대응위한 임시 방편입니다.
|
|
31
|
-
var S_Content1 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n height: 100%;\n"], ["\n ", ";\n height: 100%;\n"])), function (_a) {
|
|
25
|
+
var S_ContentsArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-bottom: 88px;\n\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n padding-bottom: 88px;\n\n ", ";\n ", ";\n"])), function (_a) {
|
|
32
26
|
var layoutType = _a.layoutType;
|
|
33
27
|
return ({
|
|
34
28
|
WTP_1: 'width: 664px;'
|
|
35
29
|
}[layoutType]);
|
|
30
|
+
}, function (_a) {
|
|
31
|
+
var areaColor = _a.areaColor;
|
|
32
|
+
return "background-color: " + areaColor;
|
|
36
33
|
});
|
|
34
|
+
var S_Content1 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
37
35
|
exports.default = WTP;
|
|
38
36
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -19,26 +19,26 @@ var WTQ = function (_a) {
|
|
|
19
19
|
react_1.default.createElement(S_ContentsArea2, { layoutType: layoutType, areaColor: areaColor },
|
|
20
20
|
react_1.default.createElement(S_Content2, { layoutType: layoutType }, content2)))));
|
|
21
21
|
};
|
|
22
|
-
var S_Box = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n height: 100%;\n
|
|
23
|
-
var S_ContentsContainer1 = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n
|
|
22
|
+
var S_Box = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n height: 100%;\n"], ["\n display: flex;\n height: 100%;\n"])));
|
|
23
|
+
var S_ContentsContainer1 = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: flex-start;\n background-color: ", ";\n display: flex;\n justify-content: end;\n overflow-x: hidden;\n overflow-y: auto;\n width: calc(50% + 220px);\n ", ";\n"], ["\n align-items: flex-start;\n background-color: ", ";\n display: flex;\n justify-content: end;\n overflow-x: hidden;\n overflow-y: auto;\n width: calc(50% + 220px);\n ", ";\n"])), function (_a) {
|
|
24
24
|
var theme = _a.theme;
|
|
25
25
|
return theme.ui_contentscontainer01_background;
|
|
26
26
|
}, function (_a) {
|
|
27
27
|
var containerColor = _a.containerColor;
|
|
28
28
|
return "background-color: " + containerColor;
|
|
29
29
|
});
|
|
30
|
-
var S_ContentsContainer2 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n
|
|
30
|
+
var S_ContentsContainer2 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n overflow-x: hidden;\n overflow-y: auto;\n width: calc(50% - 220px);\n ", ";\n"], ["\n background-color: ", ";\n overflow-x: hidden;\n overflow-y: auto;\n width: calc(50% - 220px);\n ", ";\n"])), function (_a) {
|
|
31
31
|
var theme = _a.theme;
|
|
32
32
|
return theme.ui_contentscontainer02_background;
|
|
33
33
|
}, function (_a) {
|
|
34
34
|
var containerColor = _a.containerColor;
|
|
35
35
|
return "background-color: " + containerColor;
|
|
36
36
|
});
|
|
37
|
-
var S_ContentsArea1 = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding-bottom: 88px;\n ", ";\n"], ["\n padding-bottom: 88px;\n ", ";\n"])), function (_a) {
|
|
37
|
+
var S_ContentsArea1 = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding-bottom: 88px;\n max-width: 760px;\n width: 760px;\n ", ";\n"], ["\n padding-bottom: 88px;\n max-width: 760px;\n width: 760px;\n ", ";\n"])), function (_a) {
|
|
38
38
|
var areaColor = _a.areaColor;
|
|
39
39
|
return "background-color: " + areaColor;
|
|
40
40
|
});
|
|
41
|
-
var S_ContentsArea2 = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding-bottom: 88px;\n ", ";\n"], ["\n padding-bottom: 88px;\n ", ";\n"])), function (_a) {
|
|
41
|
+
var S_ContentsArea2 = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding-bottom: 88px;\n min-width: 320px;\n width: 320px;\n ", ";\n"], ["\n padding-bottom: 88px;\n min-width: 320px;\n width: 320px;\n ", ";\n"])), function (_a) {
|
|
42
42
|
var areaColor = _a.areaColor;
|
|
43
43
|
return "background-color: " + areaColor;
|
|
44
44
|
});
|
package/dist/src/desktop/layout/LayoutWT/Containers/SubMenuContainer/variation/LeftSubMenu.js
CHANGED
|
@@ -15,7 +15,7 @@ var LeftSubMenu = function (_a) {
|
|
|
15
15
|
react_1.default.createElement(S_LeftSubMenuArea, { areaColor: areaColor },
|
|
16
16
|
react_1.default.createElement(S_LeftSubMenuContent, null, children))));
|
|
17
17
|
};
|
|
18
|
-
var S_LeftSubMenuContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: 100%;\n min-width: 296px;\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n"], ["\n background-color: ", ";\n height: 100%;\n min-width: 296px;\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n"])), function (_a) {
|
|
18
|
+
var S_LeftSubMenuContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n background-color: ", ";\n display: flex;\n justify-content: flex-end;\n height: 100%;\n min-width: 296px;\n width: calc(50% - 184px);\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n"], ["\n align-items: flex-start;\n background-color: ", ";\n display: flex;\n justify-content: flex-end;\n height: 100%;\n min-width: 296px;\n width: calc(50% - 184px);\n overflow-x: hidden;\n overflow-y: auto;\n ", ";\n"])), function (_a) {
|
|
19
19
|
var theme = _a.theme;
|
|
20
20
|
return theme.ui_pagemenucontainer_background;
|
|
21
21
|
}, function (_a) {
|
|
@@ -192,8 +192,8 @@ var ContainersBox = function (_a) {
|
|
|
192
192
|
WTN_1: '',
|
|
193
193
|
WTN_2: '',
|
|
194
194
|
WTN_3: '',
|
|
195
|
-
WTO_1: (react_1.default.createElement(Containers_1.SubMenuContainer, { subMenuType: "left_sub_menu", subMenuContent: subMenuContent })),
|
|
196
|
-
WTP_1: (react_1.default.createElement(Containers_1.SubMenuContainer, { subMenuType: "left_sub_menu", subMenuContent: subMenuContent })),
|
|
195
|
+
WTO_1: (react_1.default.createElement(Containers_1.SubMenuContainer, { subMenuType: "left_sub_menu", subMenuContent: subMenuContent, containerColor: containerColor, areaColor: areaColor })),
|
|
196
|
+
WTP_1: (react_1.default.createElement(Containers_1.SubMenuContainer, { subMenuType: "left_sub_menu", subMenuContent: subMenuContent, containerColor: containerColor, areaColor: areaColor })),
|
|
197
197
|
WTQ_1: '',
|
|
198
198
|
WTS_1: '',
|
|
199
199
|
WTS_2: ''
|
|
@@ -202,13 +202,10 @@ var ContainersBox = function (_a) {
|
|
|
202
202
|
};
|
|
203
203
|
var S_ContainersBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n height: 100%;\n"], ["\n align-items: flex-start;\n display: flex;\n height: 100%;\n"])));
|
|
204
204
|
var S_RightBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n"], ["\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n"])));
|
|
205
|
-
var
|
|
206
|
-
var theme = _a.theme;
|
|
207
|
-
return theme.ui_contentscontainer01_background;
|
|
208
|
-
});
|
|
205
|
+
var flexStyle = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
209
206
|
var S_BottomWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex: 1;\n height: 100%;\n overflow: hidden;\n ", ";\n"], ["\n flex: 1;\n height: 100%;\n overflow: hidden;\n ", ";\n"])), function (_a) {
|
|
210
207
|
var layoutType = _a.layoutType;
|
|
211
|
-
return layoutType === 'WTO_1' || layoutType === 'WTP_1'
|
|
208
|
+
return (layoutType === 'WTO_1' || layoutType === 'WTP_1') && flexStyle;
|
|
212
209
|
});
|
|
213
210
|
exports.default = ContainersBox;
|
|
214
211
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -47,7 +47,10 @@ var horizontal = (0, styled_components_1.css)(templateObject_1 || (templateObjec
|
|
|
47
47
|
area: theme.ui_cpnt_divider_area
|
|
48
48
|
}[displayType];
|
|
49
49
|
});
|
|
50
|
-
var vertical = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: inline-block;\n height: ", ";\n width: 1px;\n"], ["\n display: inline-block;\n height: ", ";\n width: 1px;\n"])), function (_a) {
|
|
50
|
+
var vertical = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n display: inline-block;\n height: ", ";\n width: 1px;\n"], ["\n background-color: ", ";\n display: inline-block;\n height: ", ";\n width: 1px;\n"])), function (_a) {
|
|
51
|
+
var theme = _a.theme;
|
|
52
|
+
return theme.ui_cpnt_divider;
|
|
53
|
+
}, function (_a) {
|
|
51
54
|
var $height = _a.$height;
|
|
52
55
|
return ($height ? $height + "px" : '100%');
|
|
53
56
|
});
|
|
@@ -5,9 +5,9 @@ declare type BasicListProps = {
|
|
|
5
5
|
titleStyleTheme?: 'headingBold' | 'leadParaBold' | 'subTitleBold';
|
|
6
6
|
titleText?: PDSTextType;
|
|
7
7
|
captionText?: PDSTextType;
|
|
8
|
-
columns
|
|
9
|
-
columnSpacing
|
|
10
|
-
rowSpacing
|
|
8
|
+
columns?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
9
|
+
columnSpacing?: 0 | 16 | 24;
|
|
10
|
+
rowSpacing?: 0 | 24 | 32 | 48 | 64;
|
|
11
11
|
};
|
|
12
12
|
declare function BasicList({ children, titleStyleTheme, titleText, captionText, columns, columnSpacing, rowSpacing }: BasicListProps): JSX.Element;
|
|
13
13
|
export default BasicList;
|
|
@@ -7,6 +7,7 @@ declare type DropDownValues = PDSValueOption & {
|
|
|
7
7
|
declare type Props = {
|
|
8
8
|
colorTheme?: 'none' | 'dark' | 'white';
|
|
9
9
|
defaultValue?: PDSValueOption;
|
|
10
|
+
value?: PDSValueOption;
|
|
10
11
|
hintText?: TFunctionResult;
|
|
11
12
|
maxHeightItemNumber?: number;
|
|
12
13
|
responsiveMode?: 'none' | 'use';
|
|
@@ -16,5 +17,5 @@ declare type Props = {
|
|
|
16
17
|
valueArray: DropDownValues[];
|
|
17
18
|
onChange?: (option: PDSValueOption) => void;
|
|
18
19
|
};
|
|
19
|
-
declare function Dropdown({ colorTheme, defaultValue, hintText, maxHeightItemNumber, responsiveMode, selectionMode, size, state, valueArray, onChange }: Props): JSX.Element;
|
|
20
|
+
declare function Dropdown({ colorTheme, value, defaultValue, hintText, maxHeightItemNumber, responsiveMode, selectionMode, size, state, valueArray, onChange }: Props): JSX.Element;
|
|
20
21
|
export default Dropdown;
|
|
@@ -31,14 +31,19 @@ var ContextMenuItem_1 = require("../ContextMenuItem");
|
|
|
31
31
|
var TextLabel_1 = require("../TextLabel");
|
|
32
32
|
// TODO: selectionMode의 multi 기능 구현 추가 필요
|
|
33
33
|
function Dropdown(_a) {
|
|
34
|
-
var _b = _a.colorTheme, colorTheme = _b === void 0 ? 'none' : _b, defaultValue = _a.defaultValue, hintText = _a.hintText, _c = _a.maxHeightItemNumber, maxHeightItemNumber = _c === void 0 ? 5 : _c, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d, _e = _a.selectionMode, selectionMode = _e === void 0 ? 'single' : _e, _f = _a.size, size = _f === void 0 ? 'large' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, valueArray = _a.valueArray, onChange = _a.onChange;
|
|
35
|
-
var _h = (0, react_1.useState)(
|
|
36
|
-
var _j = (0, react_1.useState)(defaultValue),
|
|
34
|
+
var _b = _a.colorTheme, colorTheme = _b === void 0 ? 'none' : _b, value = _a.value, defaultValue = _a.defaultValue, hintText = _a.hintText, _c = _a.maxHeightItemNumber, maxHeightItemNumber = _c === void 0 ? 5 : _c, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d, _e = _a.selectionMode, selectionMode = _e === void 0 ? 'single' : _e, _f = _a.size, size = _f === void 0 ? 'large' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, valueArray = _a.valueArray, onChange = _a.onChange;
|
|
35
|
+
var _h = (0, react_1.useState)(false), isFocused = _h[0], setIsFocused = _h[1];
|
|
36
|
+
var _j = (0, react_1.useState)(defaultValue), selectedValue = _j[0], setSelectedValue = _j[1];
|
|
37
37
|
(0, react_1.useEffect)(function () {
|
|
38
38
|
if (defaultValue) {
|
|
39
|
-
|
|
39
|
+
setSelectedValue(defaultValue);
|
|
40
40
|
}
|
|
41
41
|
}, [defaultValue]);
|
|
42
|
+
(0, react_1.useEffect)(function () {
|
|
43
|
+
if (value) {
|
|
44
|
+
setSelectedValue(value);
|
|
45
|
+
}
|
|
46
|
+
}, [value]);
|
|
42
47
|
var handleClick = function () {
|
|
43
48
|
if (state === 'disabled' || state === 'read_only') {
|
|
44
49
|
return;
|
|
@@ -51,8 +56,10 @@ function Dropdown(_a) {
|
|
|
51
56
|
}
|
|
52
57
|
};
|
|
53
58
|
var handleClickOption = function (option) {
|
|
54
|
-
setSelectedOption(option);
|
|
55
59
|
setIsFocused(false);
|
|
60
|
+
if (!value) {
|
|
61
|
+
setSelectedValue(option);
|
|
62
|
+
}
|
|
56
63
|
if (onChange) {
|
|
57
64
|
onChange(option);
|
|
58
65
|
}
|
|
@@ -140,11 +147,12 @@ function Dropdown(_a) {
|
|
|
140
147
|
return (react_1.default.createElement(S_Dropdown, { className: "container", size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode },
|
|
141
148
|
react_1.default.createElement(S_Select, { size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode },
|
|
142
149
|
react_1.default.createElement(S_TextLabel, null,
|
|
143
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: (
|
|
150
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.text) || hintText, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getTextColorOverride() })),
|
|
144
151
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getIconColorKey() }),
|
|
145
152
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" })),
|
|
146
153
|
isFocused && (react_1.default.createElement(S_ContextMenuWrapper, null,
|
|
147
|
-
react_1.default.createElement(ContextMenu_1.ContextMenu, { autoWidthMode: "use", maxHeight: maxHeight }, valueArray.map(function (el) { return (react_1.default.createElement(
|
|
154
|
+
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 },
|
|
155
|
+
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 }))); }))))));
|
|
148
156
|
}
|
|
149
157
|
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) {
|
|
150
158
|
var theme = _a.theme;
|
|
@@ -122,22 +122,34 @@ function MainButton(_a) {
|
|
|
122
122
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }),
|
|
123
123
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType })))));
|
|
124
124
|
}
|
|
125
|
-
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n min-width: 96px;\n padding: 0
|
|
125
|
+
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n ", "\n ", ";\n"], ["\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n ", "\n ", ";\n"])), function (_a) {
|
|
126
|
+
var theme = _a.theme;
|
|
127
|
+
return theme.spacing.spacingE;
|
|
128
|
+
}, function (_a) {
|
|
126
129
|
var shapeType = _a.shapeType;
|
|
127
130
|
return shapeType === 'round' && 'border-radius: 14px;';
|
|
128
131
|
}, function (_a) {
|
|
129
132
|
var size = _a.size;
|
|
130
133
|
return size === 'rlarge' && 'width: 100%';
|
|
131
134
|
});
|
|
132
|
-
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n padding: 0
|
|
135
|
+
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n min-width: 64px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 40px;\n min-width: 64px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
136
|
+
var theme = _a.theme;
|
|
137
|
+
return theme.spacing.spacingE;
|
|
138
|
+
}, function (_a) {
|
|
133
139
|
var shapeType = _a.shapeType;
|
|
134
140
|
return shapeType === 'round' && 'border-radius: 14px;';
|
|
135
141
|
});
|
|
136
|
-
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n padding: 0
|
|
142
|
+
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 32px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
143
|
+
var theme = _a.theme;
|
|
144
|
+
return theme.spacing.spacingD;
|
|
145
|
+
}, function (_a) {
|
|
137
146
|
var shapeType = _a.shapeType;
|
|
138
147
|
return shapeType === 'round' && 'border-radius: 10px;';
|
|
139
148
|
});
|
|
140
|
-
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n padding: 0
|
|
149
|
+
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 24px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
150
|
+
var theme = _a.theme;
|
|
151
|
+
return theme.spacing.spacingD;
|
|
152
|
+
}, function (_a) {
|
|
141
153
|
var shapeType = _a.shapeType;
|
|
142
154
|
return shapeType === 'round' && 'border-radius: 8px;';
|
|
143
155
|
});
|
|
@@ -4,7 +4,7 @@ declare type MobileAlertDialogProps = {
|
|
|
4
4
|
iconMode?: 'none' | 'success' | 'error' | 'warning' | 'information';
|
|
5
5
|
titleText?: PDSTextType;
|
|
6
6
|
contentText: PDSTextType;
|
|
7
|
-
btnMode
|
|
7
|
+
btnMode?: 'tbtn_amount1' | 'tbtn_amount2' | 'tbtn_amount3';
|
|
8
8
|
btnStack?: 'side' | 'stack';
|
|
9
9
|
tBtn1Text?: PDSTextType;
|
|
10
10
|
tBtn2Text?: PDSTextType;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { SelectHTMLAttributes } from 'react';
|
|
2
2
|
import { PDSTextType } from '../../../common';
|
|
3
|
-
declare type
|
|
3
|
+
declare type SelectOption = {
|
|
4
4
|
text: string;
|
|
5
|
-
value:
|
|
5
|
+
value: SelectHTMLAttributes<HTMLSelectElement>['value'];
|
|
6
6
|
};
|
|
7
7
|
declare type SelectProps = {
|
|
8
8
|
hintText?: PDSTextType;
|
|
9
|
-
defaultValue?:
|
|
10
|
-
|
|
9
|
+
defaultValue?: SelectOption;
|
|
10
|
+
value?: SelectOption['value'];
|
|
11
|
+
valueArray: SelectOption[];
|
|
11
12
|
size?: 'large' | 'medium' | 'small' | 'rlarge';
|
|
12
13
|
responsiveMode?: 'none' | 'use';
|
|
13
14
|
state?: 'normal' | 'read_only' | 'disabled';
|
|
14
15
|
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
15
16
|
colorTheme?: 'none' | 'dark';
|
|
16
17
|
};
|
|
17
|
-
declare function Select({ hintText, defaultValue, valueArray, size, responsiveMode, state, onChange, colorTheme }: SelectProps): JSX.Element;
|
|
18
|
+
declare function Select({ hintText, defaultValue, value, valueArray, size, responsiveMode, state, onChange, colorTheme }: SelectProps): JSX.Element;
|
|
18
19
|
export default Select;
|
|
@@ -32,7 +32,7 @@ var hybrid_1 = require("../../../hybrid");
|
|
|
32
32
|
var HINT = 'HINT_VALUE';
|
|
33
33
|
function Select(_a) {
|
|
34
34
|
var _b;
|
|
35
|
-
var hintText = _a.hintText, defaultValue = _a.defaultValue, valueArray = _a.valueArray, _c = _a.size, size = _c === void 0 ? 'large' : _c, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, onChange = _a.onChange, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f;
|
|
35
|
+
var hintText = _a.hintText, defaultValue = _a.defaultValue, value = _a.value, valueArray = _a.valueArray, _c = _a.size, size = _c === void 0 ? 'large' : _c, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, onChange = _a.onChange, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f;
|
|
36
36
|
var handleChange = function (e) {
|
|
37
37
|
if (onChange) {
|
|
38
38
|
onChange(e);
|
|
@@ -53,7 +53,7 @@ function Select(_a) {
|
|
|
53
53
|
return (react_1.default.createElement(S_Box, { size: size, responsiveMode: responsiveMode, tabIndex: 0 },
|
|
54
54
|
react_1.default.createElement(S_Icon_Wrapper, { state: state },
|
|
55
55
|
react_1.default.createElement(hybrid_1.Icon, { size: 16, fillType: "line", iconName: "ic_arrow_down", colorKey: getIconColorKey() })),
|
|
56
|
-
react_1.default.createElement(S_Select, { disabled: state === 'disabled' || state === 'read_only', state: state, colorTheme: colorTheme, onChange: handleChange, defaultValue: (_b = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _b !== void 0 ? _b : HINT },
|
|
56
|
+
react_1.default.createElement(S_Select, { disabled: state === 'disabled' || state === 'read_only', state: state, colorTheme: colorTheme, onChange: handleChange, defaultValue: (_b = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _b !== void 0 ? _b : HINT, value: value || undefined },
|
|
57
57
|
hintText && (react_1.default.createElement("option", { disabled: true, value: HINT }, hintText)),
|
|
58
58
|
valueArray.map(function (el) { return (react_1.default.createElement("option", { key: el.value, value: el.value }, el.text)); }))));
|
|
59
59
|
}
|
|
@@ -99,21 +99,21 @@ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 =
|
|
|
99
99
|
var size = _a.size;
|
|
100
100
|
return size === 'rlarge' && 'width: 100%';
|
|
101
101
|
});
|
|
102
|
-
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 40px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
102
|
+
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n min-width: 64px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 40px;\n min-width: 64px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
103
103
|
var theme = _a.theme;
|
|
104
104
|
return theme.spacing.spacingE;
|
|
105
105
|
}, function (_a) {
|
|
106
106
|
var shapeType = _a.shapeType;
|
|
107
107
|
return shapeType === 'round' && 'border-radius: 14px;';
|
|
108
108
|
});
|
|
109
|
-
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 32px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
109
|
+
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 32px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
110
110
|
var theme = _a.theme;
|
|
111
111
|
return theme.spacing.spacingD;
|
|
112
112
|
}, function (_a) {
|
|
113
113
|
var shapeType = _a.shapeType;
|
|
114
114
|
return shapeType === 'round' && 'border-radius: 10px;';
|
|
115
115
|
});
|
|
116
|
-
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 24px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
116
|
+
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"], ["\n height: 24px;\n min-width: 48px;\n padding: 0 ", ";\n ", "\n"])), function (_a) {
|
|
117
117
|
var theme = _a.theme;
|
|
118
118
|
return theme.spacing.spacingD;
|
|
119
119
|
}, function (_a) {
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v1.4.
|
|
2
|
+
## [v1.4.21]
|
|
3
3
|
|
|
4
|
-
###
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
### Layout
|
|
5
|
+
* WTO_1
|
|
6
|
+
* container영역 수정
|
|
7
|
+
* 무한 스크롤 대응위한 임시 방편 제거, container1Ref prop 추가
|
|
8
|
+
* WTP_1
|
|
9
|
+
* container영역 수정
|
|
10
|
+
* 무한 스크롤 대응위한 임시 방편 제거, container1Ref prop 추가
|
|
11
|
+
* WTQ_1
|
|
12
|
+
* container영역 수정
|