pds-dev-kit-web 1.3.23 → 1.3.26
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 +3 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +3 -1
- package/dist/src/common/styles/colorSet/UIColor.json +9 -7
- package/dist/src/common/styles/colorSet/index.d.ts +8 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +2 -0
- package/dist/src/desktop/components/Card/Card.js +5 -6
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.d.ts +4 -2
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +7 -8
- package/dist/src/desktop/components/IconButton/IconButton.js +2 -2
- package/dist/src/desktop/components/ReactionButton/ReactionButton.js +1 -1
- package/dist/src/desktop/components/TextLabel/TextLabel.js +2 -1
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +2 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts +3 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +2 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.d.ts +3 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.js +3 -3
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.d.ts +3 -2
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +2 -2
- package/dist/src/hybrid/components/Icon/Icon.js +1 -1
- package/dist/src/mobile/components/Card/Card.js +5 -6
- package/dist/src/mobile/components/IconButton/IconButton.js +2 -2
- package/dist/src/mobile/components/TextLabel/TextLabel.js +2 -1
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +2 -2
- package/package.json +1 -1
- package/release-note.md +11 -5
|
@@ -156,5 +156,7 @@
|
|
|
156
156
|
"sys_cpnt_sheet_base_01": "darkgrey50",
|
|
157
157
|
"sys_component_base_white_opacity20": "white/opacity20",
|
|
158
158
|
"sys_border_line_07": "darkgrey70",
|
|
159
|
-
"sys_border_line_white_opacity50": "white/opacity50"
|
|
159
|
+
"sys_border_line_white_opacity50": "white/opacity50",
|
|
160
|
+
"sys_background_dimmed_02": "black/opacity65",
|
|
161
|
+
"sys_border_line_08": "darkgrey500"
|
|
160
162
|
}
|
|
@@ -156,5 +156,7 @@
|
|
|
156
156
|
"sys_cpnt_sheet_base_01": "grey30",
|
|
157
157
|
"sys_component_base_white_opacity20": "white/opacity20",
|
|
158
158
|
"sys_border_line_07": "grey70",
|
|
159
|
-
"sys_border_line_white_opacity50": "white/opacity50"
|
|
159
|
+
"sys_border_line_white_opacity50": "white/opacity50",
|
|
160
|
+
"sys_background_dimmed_02": "black/opacity30",
|
|
161
|
+
"sys_border_line_08": "grey500"
|
|
160
162
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"ui_cpnt_button_icon_disabled": "sys_widget_grey_03",
|
|
23
23
|
"ui_cpnt_button_icon_default": "sys_widget_grey_02",
|
|
24
24
|
"ui_cpnt_textfield_border_normal": "sys_border_line_01",
|
|
25
|
-
"ui_cpnt_textfield_border_focus": "
|
|
25
|
+
"ui_cpnt_textfield_border_focus": "sys_border_line_08",
|
|
26
26
|
"ui_cpnt_textfield_border_error": "sys_border_line_04",
|
|
27
27
|
"ui_cpnt_textfield_base_normal": "sys_component_base_white_opacity00",
|
|
28
28
|
"ui_cpnt_textfield_base_disabled": "sys_component_base_01",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"ui_27": "sys_widget_white",
|
|
129
129
|
"ui_cpnt_divider": "sys_border_line_01",
|
|
130
130
|
"ui_cpnt_select_border_normal": "sys_border_line_01",
|
|
131
|
-
"ui_cpnt_select_border_focus": "
|
|
131
|
+
"ui_cpnt_select_border_focus": "sys_border_line_08",
|
|
132
132
|
"ui_cpnt_select_base_normal": "sys_component_base_white_opacity00",
|
|
133
133
|
"ui_cpnt_select_base_disabled": "sys_component_base_01",
|
|
134
134
|
"ui_cpnt_select_text_hint": "sys_text_grey_02",
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"ui_cpnt_chip_fill_text_active_02": "sys_text_grey_01",
|
|
202
202
|
"ui_cpnt_chip_fill_icon_active_02": "sys_widget_grey_01",
|
|
203
203
|
"ui_cpnt_dropdown_border_normal": "sys_border_line_01",
|
|
204
|
-
"ui_cpnt_dropdown_border_focus": "
|
|
204
|
+
"ui_cpnt_dropdown_border_focus": "sys_border_line_08",
|
|
205
205
|
"ui_cpnt_dropdown_base_normal": "sys_component_base_white_opacity00",
|
|
206
206
|
"ui_cpnt_dropdown_base_disabled": "sys_component_base_01",
|
|
207
207
|
"ui_cpnt_dropdown_text_hint": "sys_text_grey_03",
|
|
@@ -280,8 +280,8 @@
|
|
|
280
280
|
"ui_cpnt_card_icon_basic": "sys_widget_primary_01",
|
|
281
281
|
"ui_cpnt_card_icon_custom": "sys_widget_grey_01",
|
|
282
282
|
"ui_cpnt_card_icon_create": "sys_widget_grey_01",
|
|
283
|
-
"ui_cpnt_modal_dimmed": "
|
|
284
|
-
"ui_cpnt_alertdialog_dimmed": "
|
|
283
|
+
"ui_cpnt_modal_dimmed": "sys_background_dimmed_02",
|
|
284
|
+
"ui_cpnt_alertdialog_dimmed": "sys_background_dimmed_02",
|
|
285
285
|
"ui_cpnt_bottomsheet_base": "sys_component_base_02",
|
|
286
286
|
"ui_cpnt_bottomsheet_icon_03": "sys_widget_grey_03",
|
|
287
287
|
"ui_cpnt_button_icon_white": "sys_widget_white",
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
"ui_cpnt_icon_usr_brandprimary": "usr_brand_primary",
|
|
333
333
|
"ui_container_divider": "sys_border_line_01",
|
|
334
334
|
"ui_area_divider": "sys_border_line_01",
|
|
335
|
-
"ui_cpnt_list_base_area_seller": "
|
|
335
|
+
"ui_cpnt_list_base_area_seller": "sys_component_base_01",
|
|
336
336
|
"ui_temp_grey_01": "sys_temp_grey_01",
|
|
337
337
|
"ui_temp_grey_02": "sys_temp_grey_02",
|
|
338
338
|
"ui_temp_grey_03": "sys_temp_grey_03",
|
|
@@ -489,5 +489,7 @@
|
|
|
489
489
|
"ui_cpnt_dropdown_base_white_normal": "sys_component_base_white_opacity00",
|
|
490
490
|
"ui_profile_image_border_brandprimary": "usr_brand_primary",
|
|
491
491
|
"ui_cpnt_dropdown_base_white_disabled": "sys_component_base_white_opacity10",
|
|
492
|
-
"ui_cpnt_dropdown_border_white_disabled": "sys_border_line_white_opacity50"
|
|
492
|
+
"ui_cpnt_dropdown_border_white_disabled": "sys_border_line_white_opacity50",
|
|
493
|
+
"ui_cpnt_sheet_base_white_opacity00": "sys_component_base_white_opacity00",
|
|
494
|
+
"ui_dimmed_01": "sys_background_dimmed_20"
|
|
493
495
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const colorSet: {
|
|
2
|
-
readonly
|
|
2
|
+
readonly PaletteColor_light: {
|
|
3
3
|
sys_container_background_01: string;
|
|
4
4
|
sys_container_background_02: string;
|
|
5
5
|
sys_container_background_03: string;
|
|
@@ -158,8 +158,10 @@ declare const colorSet: {
|
|
|
158
158
|
sys_component_base_white_opacity20: string;
|
|
159
159
|
sys_border_line_07: string;
|
|
160
160
|
sys_border_line_white_opacity50: string;
|
|
161
|
+
sys_background_dimmed_02: string;
|
|
162
|
+
sys_border_line_08: string;
|
|
161
163
|
};
|
|
162
|
-
readonly
|
|
164
|
+
readonly PaletteColor_Dark: {
|
|
163
165
|
sys_container_background_01: string;
|
|
164
166
|
sys_container_background_02: string;
|
|
165
167
|
sys_container_background_03: string;
|
|
@@ -318,6 +320,8 @@ declare const colorSet: {
|
|
|
318
320
|
sys_component_base_white_opacity20: string;
|
|
319
321
|
sys_border_line_07: string;
|
|
320
322
|
sys_border_line_white_opacity50: string;
|
|
323
|
+
sys_background_dimmed_02: string;
|
|
324
|
+
sys_border_line_08: string;
|
|
321
325
|
};
|
|
322
326
|
readonly SemanticColor: {
|
|
323
327
|
blue500: string;
|
|
@@ -869,6 +873,8 @@ declare const colorSet: {
|
|
|
869
873
|
ui_profile_image_border_brandprimary: string;
|
|
870
874
|
ui_cpnt_dropdown_base_white_disabled: string;
|
|
871
875
|
ui_cpnt_dropdown_border_white_disabled: string;
|
|
876
|
+
ui_cpnt_sheet_base_white_opacity00: string;
|
|
877
|
+
ui_dimmed_01: string;
|
|
872
878
|
};
|
|
873
879
|
};
|
|
874
880
|
export default colorSet;
|
|
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
|
-
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
8
7
|
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
8
|
+
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
9
9
|
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
10
10
|
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
11
11
|
var colorSet = {
|
|
12
|
-
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
13
12
|
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
13
|
+
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
14
14
|
SemanticColor: SemanticColor_json_1.default,
|
|
15
15
|
UIColor: UIColor_json_1.default
|
|
16
16
|
};
|
|
@@ -25,15 +25,14 @@ function Card(_a) {
|
|
|
25
25
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c" }),
|
|
26
26
|
descText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, styleTheme: "caption1Regular", colorTheme: "sysTextSecondary" })))));
|
|
27
27
|
}
|
|
28
|
-
var S_CardGroups = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-
|
|
28
|
+
var S_CardGroups = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n cursor: pointer;\n min-width: 144px;\n position: relative;\n\n &::after {\n box-sizing: border-box;\n border-radius: 16px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n position: absolute;\n top: 0;\n width: 100%;\n }\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n cursor: pointer;\n min-width: 144px;\n position: relative;\n\n &::after {\n box-sizing: border-box;\n border-radius: 16px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n position: absolute;\n top: 0;\n width: 100%;\n }\n"])), function (_a) {
|
|
29
29
|
var theme = _a.theme;
|
|
30
30
|
return theme.ui_cpnt_card_base;
|
|
31
31
|
}, function (_a) {
|
|
32
|
-
var theme = _a.theme;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return selectState === 'selected' ? "border: 2px solid " + theme.ui_cpnt_card_selected_border : '';
|
|
32
|
+
var theme = _a.theme, selectState = _a.selectState;
|
|
33
|
+
if (selectState === 'unselected')
|
|
34
|
+
return theme.boxShadow.elevation2;
|
|
35
|
+
return theme.boxShadow.elevation2 + ", 0 0 0 2px " + theme.ui_cpnt_card_selected_border + " inset";
|
|
37
36
|
});
|
|
38
37
|
var S_ImageIconModeBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n div {\n border-radius: 16px 16px 0 0;\n }\n"], ["\n div {\n border-radius: 16px 16px 0 0;\n }\n"])));
|
|
39
38
|
var S_Content = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: ", "; ;\n"], ["\n display: flex;\n flex-direction: column;\n padding: ", "; ;\n"])), function (_a) {
|
|
@@ -20,12 +20,14 @@ export declare type EditApplyTextFieldProps = {
|
|
|
20
20
|
max?: number;
|
|
21
21
|
maxLength?: number;
|
|
22
22
|
min?: number;
|
|
23
|
-
getInputValue?: (data: string[]) => void;
|
|
24
23
|
onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
25
24
|
onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
26
|
-
onClickSubmitBtn?: (...args: any) => any;
|
|
27
25
|
onFocus?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
28
26
|
onTarget?: () => void;
|
|
27
|
+
/** @deprecated v1.5 해당 prop 대신 Form의 onSubmit을 사용하세요. */
|
|
28
|
+
getInputValue?: (data: string[]) => void;
|
|
29
|
+
/** @deprecated v1.5 해당 prop 대신 Form의 onSubmit을 사용하세요. */
|
|
30
|
+
onClickSubmitBtn?: (...args: any) => any;
|
|
29
31
|
};
|
|
30
32
|
declare function EditApplyTextField({ name, hintText, defaultText, validation, preventBlankMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, max, maxLength, min, getInputValue, onBlur, onChange, onClickSubmitBtn, onFocus, onTarget }: EditApplyTextFieldProps): JSX.Element;
|
|
31
33
|
export default EditApplyTextField;
|
|
@@ -83,20 +83,19 @@ function EditApplyTextField(_a) {
|
|
|
83
83
|
setValue(name, prevValue);
|
|
84
84
|
}
|
|
85
85
|
function handleSubmit() {
|
|
86
|
-
if (!currentValue) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
86
|
// NOTE: preventBlankMode는 input에만 적용 가능
|
|
90
87
|
// NOTE: 다른 TextField의 경우 'preventBlankMode === 'trim'일 경우에는 무조건 onBlur 시점에 적용'된다고 정의해두었지만, EditApplyTextField는 onBlur 시점에 모든 값이 초기값으로 돌리는 기획이 있기때문에 EditApplyTextField에서는 submit 버튼을 눌렀을 경우에 시행
|
|
91
|
-
if (textLineType === 'single' && preventBlankMode === 'trim'
|
|
88
|
+
if (textLineType === 'single' && preventBlankMode === 'trim') {
|
|
92
89
|
setValue(name, currentValue.replace(/^\s+|\s+$/gm, ''));
|
|
93
90
|
setPrevValue(currentValue.replace(/^\s+|\s+$/gm, ''));
|
|
94
|
-
|
|
91
|
+
if (getInputValue)
|
|
92
|
+
getInputValue([name, currentValue.replace(/^\s+|\s+$/gm, '')]);
|
|
95
93
|
}
|
|
96
|
-
if (preventBlankMode !== 'trim'
|
|
94
|
+
if (preventBlankMode !== 'trim') {
|
|
97
95
|
setValue(name, currentValue);
|
|
98
96
|
setPrevValue(currentValue);
|
|
99
|
-
getInputValue
|
|
97
|
+
if (getInputValue)
|
|
98
|
+
getInputValue([name, currentValue]);
|
|
100
99
|
}
|
|
101
100
|
if (onClickSubmitBtn) {
|
|
102
101
|
onClickSubmitBtn();
|
|
@@ -129,7 +128,7 @@ function EditApplyTextField(_a) {
|
|
|
129
128
|
react_1.default.createElement(S_S_TextFieldBaseWrapper, { size: size, responsiveMode: responsiveMode, textLineType: textLineType, isFocused: isFocused, isError: isError, state: state }, S_TextFieldBase()),
|
|
130
129
|
isOpen === true && (react_1.default.createElement(S_ButtonBox, null,
|
|
131
130
|
react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_xmark", fillType: "fill", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_white", tabIndex: -1, onMouseDown: handleCancel }),
|
|
132
|
-
react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_check", fillType: "fill", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_on_primary", baseColorKey: "ui_cpnt_button_fill_base_primary", state: isError === true ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: handleSubmit })))),
|
|
131
|
+
react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_check", fillType: "fill", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_on_primary", baseColorKey: "ui_cpnt_button_fill_base_primary", state: isError === true ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: handleSubmit, type: "submit" })))),
|
|
133
132
|
((_b = errors[name]) === null || _b === void 0 ? void 0 : _b.message) && (react_1.default.createElement(S_Error, { isFocused: isFocused }, t(errors[name].message))))));
|
|
134
133
|
}
|
|
135
134
|
var S_EditApplyTextFieldWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
|
|
@@ -74,7 +74,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
74
74
|
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"])), function (_a) {
|
|
75
75
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
76
76
|
return baseColorKey
|
|
77
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
|
|
77
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
|
|
78
78
|
: theme.ui_cpnt_button_fill_base_primary;
|
|
79
79
|
}, function (_a) {
|
|
80
80
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
@@ -103,7 +103,7 @@ var line = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
|
|
|
103
103
|
}, function (_a) {
|
|
104
104
|
var theme = _a.theme, borderColorKey = _a.borderColorKey;
|
|
105
105
|
return borderColorKey
|
|
106
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
|
|
106
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
|
|
107
107
|
: theme.ui_cpnt_button_line_border_enabled;
|
|
108
108
|
}, function (_a) {
|
|
109
109
|
var colorTheme = _a.colorTheme;
|
|
@@ -65,7 +65,7 @@ function ReactionButton(_a) {
|
|
|
65
65
|
case status === 'default' && colorTheme === 'none':
|
|
66
66
|
return 'sysTextSecondary';
|
|
67
67
|
case status === 'select' && colorTheme === 'none':
|
|
68
|
-
return '
|
|
68
|
+
return 'usrTextBrandPrimary';
|
|
69
69
|
default:
|
|
70
70
|
return 'sysTextSecondary';
|
|
71
71
|
}
|
|
@@ -259,7 +259,8 @@ var customFontStyle = (0, styled_components_1.css)(templateObject_28 || (templat
|
|
|
259
259
|
});
|
|
260
260
|
var colorOverrideStyle = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
261
261
|
var colorOverride = _a.colorOverride;
|
|
262
|
-
return colorOverride &&
|
|
262
|
+
return colorOverride &&
|
|
263
|
+
(0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[colorOverride];
|
|
263
264
|
});
|
|
264
265
|
var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
|
|
265
266
|
var lineLimit = _a.lineLimit;
|
|
@@ -63,7 +63,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
63
63
|
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:hover:not([disabled]) {\n ", "\n }\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:hover:not([disabled]) {\n ", "\n }\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
64
64
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
65
65
|
return baseColorKey
|
|
66
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
|
|
66
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
|
|
67
67
|
: theme.ui_cpnt_button_fill_base_primary;
|
|
68
68
|
}, function (_a) {
|
|
69
69
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
@@ -100,7 +100,7 @@ var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
|
|
|
100
100
|
}, function (_a) {
|
|
101
101
|
var theme = _a.theme, borderColorKey = _a.borderColorKey;
|
|
102
102
|
return borderColorKey
|
|
103
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
|
|
103
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
|
|
104
104
|
: theme.ui_cpnt_button_line_border_enabled;
|
|
105
105
|
}, function (_a) {
|
|
106
106
|
var colorTheme = _a.colorTheme;
|
package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
2
|
export declare type ContentsContainerProps = {
|
|
3
3
|
content1?: JSX.Element;
|
|
4
4
|
content2?: JSX.Element;
|
|
5
5
|
layoutType: 'WTA_1' | 'WTA_2' | 'WTA_3' | 'WTB_1' | 'WTC_1' | 'WTD_1' | 'WTD_2' | 'WTD_3' | 'WTD_4' | 'WTD_5' | 'WTD_6' | 'WTE_1' | 'WTF_1' | 'WTF_2' | 'WTF_3' | 'WTF_4' | 'WTF_5' | 'WTF_6' | 'WTG_1' | 'WTH_1' | 'WTH_2' | 'WTH_3' | 'WTI_1' | 'WTI_2' | 'WTJ_1' | 'WTK_1' | 'WTK_2' | 'WTK_3' | 'WTL_1' | 'WTM_1' | 'WTM_2' | 'WTN_1' | 'WTN_2' | 'WTN_3' | 'WTO_1' | 'WTP_1' | 'WTQ_1' | 'WTS_1';
|
|
6
6
|
containerColor?: string;
|
|
7
7
|
areaColor?: string;
|
|
8
|
+
container1Ref?: MutableRefObject<HTMLDivElement | null>;
|
|
8
9
|
};
|
|
9
|
-
declare const ContentsContainer: ({ content1, content2, layoutType, containerColor, areaColor }: ContentsContainerProps) => JSX.Element;
|
|
10
|
+
declare const ContentsContainer: ({ content1, content2, layoutType, containerColor, areaColor, container1Ref }: ContentsContainerProps) => JSX.Element;
|
|
10
11
|
export default ContentsContainer;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
7
|
var variation_1 = require("./variation");
|
|
8
8
|
var ContentsContainer = function (_a) {
|
|
9
|
-
var content1 = _a.content1, content2 = _a.content2, layoutType = _a.layoutType, containerColor = _a.containerColor, areaColor = _a.areaColor;
|
|
9
|
+
var content1 = _a.content1, content2 = _a.content2, layoutType = _a.layoutType, containerColor = _a.containerColor, areaColor = _a.areaColor, container1Ref = _a.container1Ref;
|
|
10
10
|
return (react_1.default.createElement(react_1.default.Fragment, null, {
|
|
11
11
|
WTA_1: (react_1.default.createElement(variation_1.WTA, { layoutType: "WTA_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
12
12
|
WTA_2: (react_1.default.createElement(variation_1.WTA, { layoutType: "WTA_2", content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
@@ -45,7 +45,7 @@ var ContentsContainer = function (_a) {
|
|
|
45
45
|
WTO_1: (react_1.default.createElement(variation_1.WTO, { layoutType: "WTO_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
46
46
|
WTP_1: (react_1.default.createElement(variation_1.WTP, { layoutType: "WTP_1", content1: content1, containerColor: containerColor, areaColor: areaColor })),
|
|
47
47
|
WTQ_1: (react_1.default.createElement(variation_1.WTQ, { layoutType: "WTQ_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor })),
|
|
48
|
-
WTS_1: (react_1.default.createElement(variation_1.WTS, { layoutType: "WTS_1", content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor }))
|
|
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
|
}[layoutType]));
|
|
50
50
|
};
|
|
51
51
|
exports.default = ContentsContainer;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
2
|
export declare type WTSProps = {
|
|
3
3
|
content1?: JSX.Element;
|
|
4
4
|
content2?: JSX.Element;
|
|
5
5
|
layoutType: 'WTS_1';
|
|
6
6
|
containerColor?: string;
|
|
7
7
|
areaColor?: string;
|
|
8
|
+
container1Ref?: MutableRefObject<HTMLDivElement | null>;
|
|
8
9
|
};
|
|
9
|
-
declare const WTS: ({ content1, content2, containerColor, areaColor, layoutType }: WTSProps) => JSX.Element;
|
|
10
|
+
declare const WTS: ({ content1, content2, containerColor, areaColor, layoutType, container1Ref }: WTSProps) => JSX.Element;
|
|
10
11
|
export default WTS;
|
|
@@ -11,8 +11,8 @@ var react_1 = __importDefault(require("react"));
|
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var hybrid_1 = require("../../../../../../hybrid");
|
|
13
13
|
var WTS = function (_a) {
|
|
14
|
-
var content1 = _a.content1, content2 = _a.content2, containerColor = _a.containerColor, areaColor = _a.areaColor, layoutType = _a.layoutType;
|
|
15
|
-
return (react_1.default.createElement(S_ContentsContainer, { layoutType: layoutType, containerColor: containerColor },
|
|
14
|
+
var content1 = _a.content1, content2 = _a.content2, containerColor = _a.containerColor, areaColor = _a.areaColor, layoutType = _a.layoutType, container1Ref = _a.container1Ref;
|
|
15
|
+
return (react_1.default.createElement(S_ContentsContainer, { layoutType: layoutType, containerColor: containerColor, ref: container1Ref },
|
|
16
16
|
react_1.default.createElement(S_ContentsArea1, { layoutType: layoutType, areaColor: areaColor },
|
|
17
17
|
react_1.default.createElement(S_Content1, null, content1)),
|
|
18
18
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_e" }),
|
|
@@ -30,7 +30,7 @@ var S_ContentsArea1 = styled_components_1.default.div(templateObject_2 || (templ
|
|
|
30
30
|
var areaColor = _a.areaColor;
|
|
31
31
|
return "background-color: " + areaColor;
|
|
32
32
|
});
|
|
33
|
-
var S_ContentsArea2 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-
|
|
33
|
+
var S_ContentsArea2 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-left: 24px;\n padding-right: 24px;\n padding-top: 24px;\n max-width: 1400px;\n min-width: 1200px;\n width: 100%;\n ", ";\n"], ["\n box-sizing: border-box;\n padding-left: 24px;\n padding-right: 24px;\n padding-top: 24px;\n max-width: 1400px;\n min-width: 1200px;\n width: 100%;\n ", ";\n"])), function (_a) {
|
|
34
34
|
var areaColor = _a.areaColor;
|
|
35
35
|
return "background-color: " + areaColor;
|
|
36
36
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { MutableRefObject } from 'react';
|
|
2
2
|
export declare type ContainersBoxProps = {
|
|
3
3
|
layoutType: 'WTA_1' | 'WTA_2' | 'WTA_3' | 'WTB_1' | 'WTC_1' | 'WTD_1' | 'WTD_2' | 'WTD_3' | 'WTD_4' | 'WTD_5' | 'WTD_6' | 'WTE_1' | 'WTF_1' | 'WTF_2' | 'WTF_3' | 'WTF_4' | 'WTF_5' | 'WTF_6' | 'WTG_1' | 'WTH_1' | 'WTH_2' | 'WTH_3' | 'WTI_1' | 'WTI_2' | 'WTJ_1' | 'WTK_1' | 'WTK_2' | 'WTK_3' | 'WTL_1' | 'WTM_1' | 'WTM_2' | 'WTN_1' | 'WTN_2' | 'WTN_3' | 'WTO_1' | 'WTP_1' | 'WTQ_1' | 'WTS_1';
|
|
4
4
|
pageMenuContent?: JSX.Element;
|
|
@@ -9,6 +9,7 @@ export declare type ContainersBoxProps = {
|
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
containerColor?: string;
|
|
11
11
|
areaColor?: string;
|
|
12
|
+
container1Ref?: MutableRefObject<HTMLDivElement | null>;
|
|
12
13
|
};
|
|
13
|
-
declare const ContainersBox: ({ layoutType, pageMenuContent, tabMenuContent, subMenuContent, content1, content2, containerColor, areaColor }: ContainersBoxProps) => JSX.Element;
|
|
14
|
+
declare const ContainersBox: ({ layoutType, pageMenuContent, tabMenuContent, subMenuContent, content1, content2, containerColor, areaColor, container1Ref }: ContainersBoxProps) => JSX.Element;
|
|
14
15
|
export default ContainersBox;
|
|
@@ -30,7 +30,7 @@ var react_1 = __importDefault(require("react"));
|
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
31
|
var Containers_1 = require("../Containers");
|
|
32
32
|
var ContainersBox = function (_a) {
|
|
33
|
-
var layoutType = _a.layoutType, pageMenuContent = _a.pageMenuContent, tabMenuContent = _a.tabMenuContent, subMenuContent = _a.subMenuContent, content1 = _a.content1, content2 = _a.content2, containerColor = _a.containerColor, areaColor = _a.areaColor;
|
|
33
|
+
var layoutType = _a.layoutType, pageMenuContent = _a.pageMenuContent, tabMenuContent = _a.tabMenuContent, subMenuContent = _a.subMenuContent, content1 = _a.content1, content2 = _a.content2, containerColor = _a.containerColor, areaColor = _a.areaColor, container1Ref = _a.container1Ref;
|
|
34
34
|
return (react_1.default.createElement(S_ContainersBox, null,
|
|
35
35
|
{
|
|
36
36
|
WTA_1: react_1.default.createElement(react_1.default.Fragment, null),
|
|
@@ -194,7 +194,7 @@ var ContainersBox = function (_a) {
|
|
|
194
194
|
WTQ_1: '',
|
|
195
195
|
WTS_1: ''
|
|
196
196
|
}[layoutType],
|
|
197
|
-
react_1.default.createElement(Containers_1.ContentsContainer, { layoutType: layoutType, content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor })))));
|
|
197
|
+
react_1.default.createElement(Containers_1.ContentsContainer, { layoutType: layoutType, content1: content1, content2: content2, containerColor: containerColor, areaColor: areaColor, container1Ref: container1Ref })))));
|
|
198
198
|
};
|
|
199
199
|
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"])));
|
|
200
200
|
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"])));
|
|
@@ -12,6 +12,6 @@ var Icon = function (_a) {
|
|
|
12
12
|
var SelectedIcon = fillType === 'line'
|
|
13
13
|
? line_1.default[iconName] || fill_1.default[iconName]
|
|
14
14
|
: fill_1.default[iconName] || line_1.default[iconName];
|
|
15
|
-
return (react_1.default.createElement(SelectedIcon, { color: (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[colorKey], size: size, style: { minWidth: size, minHeight: size } }));
|
|
15
|
+
return (react_1.default.createElement(SelectedIcon, { color: (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[colorKey], size: size, style: { minWidth: size, minHeight: size } }));
|
|
16
16
|
};
|
|
17
17
|
exports.default = Icon;
|
|
@@ -25,15 +25,14 @@ function Card(_a) {
|
|
|
25
25
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c" }),
|
|
26
26
|
descText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, styleTheme: "caption1Regular", colorTheme: "sysTextSecondary" })))));
|
|
27
27
|
}
|
|
28
|
-
var S_CardGroups = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-
|
|
28
|
+
var S_CardGroups = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n min-width: 144px;\n position: relative;\n\n &::after {\n border-radius: 16px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n position: absolute;\n top: 0;\n width: 100%;\n }\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n min-width: 144px;\n position: relative;\n\n &::after {\n border-radius: 16px;\n box-shadow: ", ";\n content: '';\n height: 100%;\n position: absolute;\n top: 0;\n width: 100%;\n }\n"])), function (_a) {
|
|
29
29
|
var theme = _a.theme;
|
|
30
30
|
return theme.ui_cpnt_card_base;
|
|
31
31
|
}, function (_a) {
|
|
32
|
-
var theme = _a.theme;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return selectState === 'selected' ? "border: 2px solid " + theme.ui_cpnt_card_selected_border : '';
|
|
32
|
+
var theme = _a.theme, selectState = _a.selectState;
|
|
33
|
+
if (selectState === 'unselected')
|
|
34
|
+
return theme.boxShadow.elevation2;
|
|
35
|
+
return theme.boxShadow.elevation2 + ", 0 0 0 2px " + theme.ui_cpnt_card_selected_border + " inset";
|
|
37
36
|
});
|
|
38
37
|
var S_ImageIconModeBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n div {\n border-radius: 16px 16px 0 0;\n }\n"], ["\n div {\n border-radius: 16px 16px 0 0;\n }\n"])));
|
|
39
38
|
var S_Content = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: ", "; ;\n"], ["\n display: flex;\n flex-direction: column;\n padding: ", "; ;\n"])), function (_a) {
|
|
@@ -74,7 +74,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
74
74
|
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"])), function (_a) {
|
|
75
75
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
76
76
|
return baseColorKey
|
|
77
|
-
? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
|
|
77
|
+
? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
|
|
78
78
|
: theme.ui_cpnt_button_fill_base_primary;
|
|
79
79
|
}, function (_a) {
|
|
80
80
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
@@ -98,7 +98,7 @@ var line = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
|
|
|
98
98
|
}, function (_a) {
|
|
99
99
|
var theme = _a.theme, borderColorKey = _a.borderColorKey;
|
|
100
100
|
return borderColorKey
|
|
101
|
-
? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
|
|
101
|
+
? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
|
|
102
102
|
: theme.ui_cpnt_button_line_border_enabled;
|
|
103
103
|
}, function (_a) {
|
|
104
104
|
var colorTheme = _a.colorTheme;
|
|
@@ -252,7 +252,8 @@ var customFontStyle = (0, styled_components_1.css)(templateObject_28 || (templat
|
|
|
252
252
|
});
|
|
253
253
|
var colorOverrideStyle = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
254
254
|
var colorOverride = _a.colorOverride;
|
|
255
|
-
return colorOverride &&
|
|
255
|
+
return colorOverride &&
|
|
256
|
+
(0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[colorOverride];
|
|
256
257
|
});
|
|
257
258
|
var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
|
|
258
259
|
var lineLimit = _a.lineLimit;
|
|
@@ -63,7 +63,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
63
63
|
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
64
64
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
65
65
|
return baseColorKey
|
|
66
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
|
|
66
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
|
|
67
67
|
: theme.ui_cpnt_button_fill_base_primary;
|
|
68
68
|
}, function (_a) {
|
|
69
69
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
@@ -95,7 +95,7 @@ var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
|
|
|
95
95
|
}, function (_a) {
|
|
96
96
|
var theme = _a.theme, borderColorKey = _a.borderColorKey;
|
|
97
97
|
return borderColorKey
|
|
98
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
|
|
98
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
|
|
99
99
|
: theme.ui_cpnt_button_line_border_enabled;
|
|
100
100
|
}, function (_a) {
|
|
101
101
|
var colorTheme = _a.colorTheme;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v1.3.
|
|
2
|
+
## [v1.3.26]
|
|
3
|
+
|
|
4
|
+
### Package
|
|
5
|
+
* 컴포넌트들이 커스텀 컬러를 받을 수 있도록 수정
|
|
3
6
|
|
|
4
7
|
### Component
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
8
|
+
* EditApplyTextField
|
|
9
|
+
* iconButton의 type을 submit으로 변경
|
|
10
|
+
* getInputValue와 onClickSubmitBtnprop에 deprecated 예고 추가
|
|
11
|
+
* 빈값이 들어있을때도 제출이 가능하도록 변경
|
|
12
|
+
|
|
13
|
+
### Color
|
|
14
|
+
* 컬러 키 값 22.05.31 20시 45분 기준 싱크
|