pds-dev-kit-web 1.3.20 → 1.3.23
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 +4 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +4 -1
- package/dist/src/common/styles/colorSet/UIColor.json +5 -3
- package/dist/src/common/styles/colorSet/index.d.ts +68 -60
- package/dist/src/common/styles/colorSet/index.js +4 -4
- package/dist/src/common/styles/colorSet/ui-type.d.ts +2 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +1 -1
- package/dist/src/desktop/components/DesktopBasicModal/DesktopBasicModal.d.ts +2 -1
- package/dist/src/desktop/components/DesktopBasicModal/DesktopBasicModal.js +6 -3
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +2 -2
- package/dist/src/desktop/components/IconButton/IconButton.d.ts +4 -3
- package/dist/src/desktop/components/IconButton/IconButton.js +2 -2
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.js +2 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +1 -1
- package/dist/src/mobile/components/IconButton/IconButton.d.ts +4 -3
- package/dist/src/mobile/components/IconButton/IconButton.js +2 -2
- package/dist/src/mobile/components/MobileBasicModal/MobileBasicModal.d.ts +2 -1
- package/dist/src/mobile/components/MobileBasicModal/MobileBasicModal.js +6 -3
- package/package.json +1 -1
- package/release-note.md +5 -3
|
@@ -153,5 +153,8 @@
|
|
|
153
153
|
"usr_menu_background_gradient_opacity00": "grey950/opacity00",
|
|
154
154
|
"sys_border_line_white": "white",
|
|
155
155
|
"sys_component_base_white_opacity10": "white/opacity10",
|
|
156
|
-
"sys_cpnt_sheet_base_01": "darkgrey50"
|
|
156
|
+
"sys_cpnt_sheet_base_01": "darkgrey50",
|
|
157
|
+
"sys_component_base_white_opacity20": "white/opacity20",
|
|
158
|
+
"sys_border_line_07": "darkgrey70",
|
|
159
|
+
"sys_border_line_white_opacity50": "white/opacity50"
|
|
157
160
|
}
|
|
@@ -153,5 +153,8 @@
|
|
|
153
153
|
"usr_menu_background_gradient_opacity00": "white/opacity00",
|
|
154
154
|
"sys_border_line_white": "white",
|
|
155
155
|
"sys_component_base_white_opacity10": "white/opacity10",
|
|
156
|
-
"sys_cpnt_sheet_base_01": "grey30"
|
|
156
|
+
"sys_cpnt_sheet_base_01": "grey30",
|
|
157
|
+
"sys_component_base_white_opacity20": "white/opacity20",
|
|
158
|
+
"sys_border_line_07": "grey70",
|
|
159
|
+
"sys_border_line_white_opacity50": "white/opacity50"
|
|
157
160
|
}
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
"ui_papp_live_background": "sys_papp_live_background",
|
|
360
360
|
"ui_community_pagination_base_area": "sys_component_base_02",
|
|
361
361
|
"ui_cpnt_contextmenu_border": "sys_border_line_01",
|
|
362
|
-
"ui_profile_image_border": "
|
|
362
|
+
"ui_profile_image_border": "sys_border_line_07",
|
|
363
363
|
"ui_cpnt_alertdialog_border": "sys_border_line_01",
|
|
364
364
|
"ui_cpnt_modal_border": "sys_border_line_01",
|
|
365
365
|
"ui_cpnt_card_border": "sys_border_line_01",
|
|
@@ -486,6 +486,8 @@
|
|
|
486
486
|
"ui_cpnt_dropdown_text_white_hint": "sys_text_white",
|
|
487
487
|
"ui_cpnt_dropdown_icon_white_default": "sys_widget_white",
|
|
488
488
|
"ui_cpnt_dropdown_border_white_focus": "sys_border_line_03",
|
|
489
|
-
"ui_cpnt_dropdown_base_white_normal": "
|
|
490
|
-
"ui_profile_image_border_brandprimary": "usr_brand_primary"
|
|
489
|
+
"ui_cpnt_dropdown_base_white_normal": "sys_component_base_white_opacity00",
|
|
490
|
+
"ui_profile_image_border_brandprimary": "usr_brand_primary",
|
|
491
|
+
"ui_cpnt_dropdown_base_white_disabled": "sys_component_base_white_opacity10",
|
|
492
|
+
"ui_cpnt_dropdown_border_white_disabled": "sys_border_line_white_opacity50"
|
|
491
493
|
}
|
|
@@ -1,63 +1,5 @@
|
|
|
1
1
|
declare const colorSet: {
|
|
2
|
-
readonly
|
|
3
|
-
blue500: string;
|
|
4
|
-
blue700: string;
|
|
5
|
-
blue300: string;
|
|
6
|
-
green700: string;
|
|
7
|
-
green500: string;
|
|
8
|
-
green300: string;
|
|
9
|
-
red500: string;
|
|
10
|
-
grey900: string;
|
|
11
|
-
grey500: string;
|
|
12
|
-
grey400: string;
|
|
13
|
-
grey100: string;
|
|
14
|
-
grey50: string;
|
|
15
|
-
white: string;
|
|
16
|
-
black: string;
|
|
17
|
-
darkblue500: string;
|
|
18
|
-
grey950: string;
|
|
19
|
-
darkgrey900: string;
|
|
20
|
-
darkgrey500: string;
|
|
21
|
-
darkgrey400: string;
|
|
22
|
-
darkgrey100: string;
|
|
23
|
-
darkgrey50: string;
|
|
24
|
-
darkred500: string;
|
|
25
|
-
darkgreen700: string;
|
|
26
|
-
orange500: string;
|
|
27
|
-
darkorange500: string;
|
|
28
|
-
opacity00: string;
|
|
29
|
-
opacity20: string;
|
|
30
|
-
opacity30: string;
|
|
31
|
-
opacity65: string;
|
|
32
|
-
darkgreen500: string;
|
|
33
|
-
grey70: string;
|
|
34
|
-
navy500: string;
|
|
35
|
-
lightgreen500: string;
|
|
36
|
-
pink500: string;
|
|
37
|
-
darkgrey70: string;
|
|
38
|
-
darknavy500: string;
|
|
39
|
-
darkpink500: string;
|
|
40
|
-
darklightgreen500: string;
|
|
41
|
-
opacity10: string;
|
|
42
|
-
grey600: string;
|
|
43
|
-
darkgrey600: string;
|
|
44
|
-
skyblue500: string;
|
|
45
|
-
skyblue300: string;
|
|
46
|
-
pink300: string;
|
|
47
|
-
lightpink500: string;
|
|
48
|
-
darkblue300: string;
|
|
49
|
-
darkblue700: string;
|
|
50
|
-
darkgreen300: string;
|
|
51
|
-
darkskyblue500: string;
|
|
52
|
-
navy100: string;
|
|
53
|
-
darknavy100: string;
|
|
54
|
-
opacity80: string;
|
|
55
|
-
opacity50: string;
|
|
56
|
-
grey30: string;
|
|
57
|
-
opacity95: string;
|
|
58
|
-
darkgrey30: string;
|
|
59
|
-
};
|
|
60
|
-
readonly PaletteColor_light: {
|
|
2
|
+
readonly PaletteColor_Dark: {
|
|
61
3
|
sys_container_background_01: string;
|
|
62
4
|
sys_container_background_02: string;
|
|
63
5
|
sys_container_background_03: string;
|
|
@@ -213,8 +155,11 @@ declare const colorSet: {
|
|
|
213
155
|
sys_border_line_white: string;
|
|
214
156
|
sys_component_base_white_opacity10: string;
|
|
215
157
|
sys_cpnt_sheet_base_01: string;
|
|
158
|
+
sys_component_base_white_opacity20: string;
|
|
159
|
+
sys_border_line_07: string;
|
|
160
|
+
sys_border_line_white_opacity50: string;
|
|
216
161
|
};
|
|
217
|
-
readonly
|
|
162
|
+
readonly PaletteColor_light: {
|
|
218
163
|
sys_container_background_01: string;
|
|
219
164
|
sys_container_background_02: string;
|
|
220
165
|
sys_container_background_03: string;
|
|
@@ -370,6 +315,67 @@ declare const colorSet: {
|
|
|
370
315
|
sys_border_line_white: string;
|
|
371
316
|
sys_component_base_white_opacity10: string;
|
|
372
317
|
sys_cpnt_sheet_base_01: string;
|
|
318
|
+
sys_component_base_white_opacity20: string;
|
|
319
|
+
sys_border_line_07: string;
|
|
320
|
+
sys_border_line_white_opacity50: string;
|
|
321
|
+
};
|
|
322
|
+
readonly SemanticColor: {
|
|
323
|
+
blue500: string;
|
|
324
|
+
blue700: string;
|
|
325
|
+
blue300: string;
|
|
326
|
+
green700: string;
|
|
327
|
+
green500: string;
|
|
328
|
+
green300: string;
|
|
329
|
+
red500: string;
|
|
330
|
+
grey900: string;
|
|
331
|
+
grey500: string;
|
|
332
|
+
grey400: string;
|
|
333
|
+
grey100: string;
|
|
334
|
+
grey50: string;
|
|
335
|
+
white: string;
|
|
336
|
+
black: string;
|
|
337
|
+
darkblue500: string;
|
|
338
|
+
grey950: string;
|
|
339
|
+
darkgrey900: string;
|
|
340
|
+
darkgrey500: string;
|
|
341
|
+
darkgrey400: string;
|
|
342
|
+
darkgrey100: string;
|
|
343
|
+
darkgrey50: string;
|
|
344
|
+
darkred500: string;
|
|
345
|
+
darkgreen700: string;
|
|
346
|
+
orange500: string;
|
|
347
|
+
darkorange500: string;
|
|
348
|
+
opacity00: string;
|
|
349
|
+
opacity20: string;
|
|
350
|
+
opacity30: string;
|
|
351
|
+
opacity65: string;
|
|
352
|
+
darkgreen500: string;
|
|
353
|
+
grey70: string;
|
|
354
|
+
navy500: string;
|
|
355
|
+
lightgreen500: string;
|
|
356
|
+
pink500: string;
|
|
357
|
+
darkgrey70: string;
|
|
358
|
+
darknavy500: string;
|
|
359
|
+
darkpink500: string;
|
|
360
|
+
darklightgreen500: string;
|
|
361
|
+
opacity10: string;
|
|
362
|
+
grey600: string;
|
|
363
|
+
darkgrey600: string;
|
|
364
|
+
skyblue500: string;
|
|
365
|
+
skyblue300: string;
|
|
366
|
+
pink300: string;
|
|
367
|
+
lightpink500: string;
|
|
368
|
+
darkblue300: string;
|
|
369
|
+
darkblue700: string;
|
|
370
|
+
darkgreen300: string;
|
|
371
|
+
darkskyblue500: string;
|
|
372
|
+
navy100: string;
|
|
373
|
+
darknavy100: string;
|
|
374
|
+
opacity80: string;
|
|
375
|
+
opacity50: string;
|
|
376
|
+
grey30: string;
|
|
377
|
+
opacity95: string;
|
|
378
|
+
darkgrey30: string;
|
|
373
379
|
};
|
|
374
380
|
readonly UIColor: {
|
|
375
381
|
ui_cpnt_button_fill_base_primary: string;
|
|
@@ -861,6 +867,8 @@ declare const colorSet: {
|
|
|
861
867
|
ui_cpnt_dropdown_border_white_focus: string;
|
|
862
868
|
ui_cpnt_dropdown_base_white_normal: string;
|
|
863
869
|
ui_profile_image_border_brandprimary: string;
|
|
870
|
+
ui_cpnt_dropdown_base_white_disabled: string;
|
|
871
|
+
ui_cpnt_dropdown_border_white_disabled: string;
|
|
864
872
|
};
|
|
865
873
|
};
|
|
866
874
|
export default colorSet;
|
|
@@ -4,14 +4,14 @@ 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 SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
8
|
-
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
9
7
|
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
8
|
+
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
9
|
+
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
10
10
|
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
11
11
|
var colorSet = {
|
|
12
|
-
SemanticColor: SemanticColor_json_1.default,
|
|
13
|
-
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
14
12
|
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
13
|
+
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
14
|
+
SemanticColor: SemanticColor_json_1.default,
|
|
15
15
|
UIColor: UIColor_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -488,4 +488,6 @@ export interface UITheme {
|
|
|
488
488
|
ui_cpnt_dropdown_border_white_focus: string;
|
|
489
489
|
ui_cpnt_dropdown_base_white_normal: string;
|
|
490
490
|
ui_profile_image_border_brandprimary: string;
|
|
491
|
+
ui_cpnt_dropdown_base_white_disabled: string;
|
|
492
|
+
ui_cpnt_dropdown_border_white_disabled: string;
|
|
491
493
|
}
|
|
@@ -174,7 +174,7 @@ function TextFieldBase(_a) {
|
|
|
174
174
|
if (textLineType === 'single') {
|
|
175
175
|
return (react_1.default.createElement(S_InputWrapper, null,
|
|
176
176
|
react_1.default.createElement(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref })),
|
|
177
|
-
deleteIconMode === 'use' && isFocused && (react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', onMouseDown: deleteValue }))));
|
|
177
|
+
deleteIconMode === 'use' && isFocused && (react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: deleteValue }))));
|
|
178
178
|
}
|
|
179
179
|
if (textLineType === 'multi') {
|
|
180
180
|
return (react_1.default.createElement(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref })));
|
|
@@ -4,6 +4,7 @@ declare type DesktopBasicModalProps = {
|
|
|
4
4
|
titleText: PDSTextType;
|
|
5
5
|
contentText?: PDSTextType;
|
|
6
6
|
bodySpacingMode?: 'none' | 'use';
|
|
7
|
+
bodyOverflowType?: 'auto' | 'visible';
|
|
7
8
|
btnMode?: 'mbtn_amount1' | 'mbtn_amount2' | 'mbtn_amount3';
|
|
8
9
|
mBtn1Text: PDSTextType;
|
|
9
10
|
mBtn2Text?: PDSTextType;
|
|
@@ -20,5 +21,5 @@ declare type DesktopBasicModalProps = {
|
|
|
20
21
|
onClickMBtn3?: () => void;
|
|
21
22
|
children?: React.ReactNode;
|
|
22
23
|
};
|
|
23
|
-
declare function DesktopBasicModal({ titleText, contentText, bodySpacingMode, btnMode, mBtn1Text, mBtn2Text, mBtn3Text, mBtn1State, mBtn2State, mBtn3State, mBtn1Type, mBtn2Type, mBtn3Type, onClickMBtn1, onClickMBtn2, onClickMBtn3, size, children }: DesktopBasicModalProps): React.ReactPortal;
|
|
24
|
+
declare function DesktopBasicModal({ titleText, contentText, bodySpacingMode, bodyOverflowType, btnMode, mBtn1Text, mBtn2Text, mBtn3Text, mBtn1State, mBtn2State, mBtn3State, mBtn1Type, mBtn2Type, mBtn3Type, onClickMBtn1, onClickMBtn2, onClickMBtn3, size, children }: DesktopBasicModalProps): React.ReactPortal;
|
|
24
25
|
export default DesktopBasicModal;
|
|
@@ -33,7 +33,7 @@ var hybrid_1 = require("../../../hybrid");
|
|
|
33
33
|
var MainButton_1 = require("../MainButton");
|
|
34
34
|
var TextLabel_1 = require("../TextLabel");
|
|
35
35
|
function DesktopBasicModal(_a) {
|
|
36
|
-
var titleText = _a.titleText, contentText = _a.contentText, _b = _a.bodySpacingMode, bodySpacingMode = _b === void 0 ? 'use' : _b, _c = _a.btnMode, btnMode =
|
|
36
|
+
var titleText = _a.titleText, contentText = _a.contentText, _b = _a.bodySpacingMode, bodySpacingMode = _b === void 0 ? 'use' : _b, _c = _a.bodyOverflowType, bodyOverflowType = _c === void 0 ? 'auto' : _c, _d = _a.btnMode, btnMode = _d === void 0 ? 'mbtn_amount2' : _d, mBtn1Text = _a.mBtn1Text, mBtn2Text = _a.mBtn2Text, mBtn3Text = _a.mBtn3Text, _e = _a.mBtn1State, mBtn1State = _e === void 0 ? 'normal' : _e, _f = _a.mBtn2State, mBtn2State = _f === void 0 ? 'normal' : _f, _g = _a.mBtn3State, mBtn3State = _g === void 0 ? 'normal' : _g, _h = _a.mBtn1Type, mBtn1Type = _h === void 0 ? 'button' : _h, _j = _a.mBtn2Type, mBtn2Type = _j === void 0 ? 'button' : _j, _k = _a.mBtn3Type, mBtn3Type = _k === void 0 ? 'button' : _k, onClickMBtn1 = _a.onClickMBtn1, onClickMBtn2 = _a.onClickMBtn2, onClickMBtn3 = _a.onClickMBtn3, _l = _a.size, size = _l === void 0 ? 'large' : _l, children = _a.children;
|
|
37
37
|
var container = (0, react_1.useState)(function () {
|
|
38
38
|
var modalRoot = document.createElement('div');
|
|
39
39
|
modalRoot.setAttribute('id', 'DesktopBasicModal');
|
|
@@ -57,7 +57,7 @@ function DesktopBasicModal(_a) {
|
|
|
57
57
|
react_1.default.createElement(S_ModalWrapper, { size: size },
|
|
58
58
|
react_1.default.createElement(S_Header, null,
|
|
59
59
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, colorTheme: "sysTextPrimary", styleTheme: "headingBold" })),
|
|
60
|
-
react_1.default.createElement(S_Body, { bodySpacingMode: bodySpacingMode },
|
|
60
|
+
react_1.default.createElement(S_Body, { bodySpacingMode: bodySpacingMode, bodyOverflowType: bodyOverflowType },
|
|
61
61
|
contentText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: contentText, colorTheme: "sysTextSecondary", styleTheme: "subTitleRegular" })),
|
|
62
62
|
children && children),
|
|
63
63
|
react_1.default.createElement(hybrid_1.Divider, null),
|
|
@@ -108,7 +108,7 @@ var S_Header = styled_components_1.default.div(templateObject_6 || (templateObje
|
|
|
108
108
|
var theme = _a.theme;
|
|
109
109
|
return theme.spacing.spacingE;
|
|
110
110
|
});
|
|
111
|
-
var S_Body = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n flex: 1;\n margin-bottom: ", ";\n margin-left: ", ";\n margin-right: ", ";\n margin-top: ", ";\n overflow:
|
|
111
|
+
var S_Body = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n flex: 1;\n margin-bottom: ", ";\n margin-left: ", ";\n margin-right: ", ";\n margin-top: ", ";\n overflow: ", ";\n\n ", "\n"], ["\n flex: 1;\n margin-bottom: ", ";\n margin-left: ", ";\n margin-right: ", ";\n margin-top: ", ";\n overflow: ", ";\n\n ", "\n"])), function (_a) {
|
|
112
112
|
var theme = _a.theme;
|
|
113
113
|
return theme.spacing.spacingF;
|
|
114
114
|
}, function (_a) {
|
|
@@ -120,6 +120,9 @@ var S_Body = styled_components_1.default.div(templateObject_8 || (templateObject
|
|
|
120
120
|
}, function (_a) {
|
|
121
121
|
var theme = _a.theme;
|
|
122
122
|
return theme.spacing.spacingD;
|
|
123
|
+
}, function (_a) {
|
|
124
|
+
var bodyOverflowType = _a.bodyOverflowType;
|
|
125
|
+
return bodyOverflowType;
|
|
123
126
|
}, function (_a) {
|
|
124
127
|
var bodySpacingMode = _a.bodySpacingMode;
|
|
125
128
|
return bodySpacingMode === 'none' && (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-bottom: 0;\n margin-left: 0;\n margin-right: 0;\n "], ["\n margin-bottom: 0;\n margin-left: 0;\n margin-right: 0;\n "])));
|
|
@@ -128,8 +128,8 @@ function EditApplyTextField(_a) {
|
|
|
128
128
|
react_1.default.createElement(S_EditApplyTextField, null,
|
|
129
129
|
react_1.default.createElement(S_S_TextFieldBaseWrapper, { size: size, responsiveMode: responsiveMode, textLineType: textLineType, isFocused: isFocused, isError: isError, state: state }, S_TextFieldBase()),
|
|
130
130
|
isOpen === true && (react_1.default.createElement(S_ButtonBox, null,
|
|
131
|
-
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", 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",
|
|
131
|
+
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 })))),
|
|
133
133
|
((_b = errors[name]) === null || _b === void 0 ? void 0 : _b.message) && (react_1.default.createElement(S_Error, { isFocused: isFocused }, t(errors[name].message))))));
|
|
134
134
|
}
|
|
135
135
|
var S_EditApplyTextFieldWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
|
|
@@ -14,8 +14,9 @@ export declare type IconButtonProps = {
|
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2';
|
|
15
15
|
type?: 'submit' | 'reset' | 'button';
|
|
16
16
|
state?: 'normal' | 'disabled';
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
tabIndex?: number;
|
|
18
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
+
onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
20
|
};
|
|
20
|
-
declare function IconButton({ fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, type, state, onClick, onMouseDown }: IconButtonProps): JSX.Element;
|
|
21
|
+
declare function IconButton({ fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, type, state, tabIndex, onClick, onMouseDown }: IconButtonProps): JSX.Element;
|
|
21
22
|
export default IconButton;
|
|
@@ -31,7 +31,7 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
31
31
|
var common_1 = require("../../../common");
|
|
32
32
|
var hybrid_1 = require("../../../hybrid");
|
|
33
33
|
function IconButton(_a) {
|
|
34
|
-
var _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.shapeType, shapeType = _c === void 0 ? 'rectangle' : _c, _d = _a.baseSize, baseSize = _d === void 0 ? 'small' : _d, baseColorKey = _a.baseColorKey, borderColorKey = _a.borderColorKey, _e = _a.iconSize, iconSize = _e === void 0 ? 24 : _e, _f = _a.iconFillType, iconFillType = _f === void 0 ? 'line' : _f, iconName = _a.iconName, iconColorKey = _a.iconColorKey, _g = _a.shadow, shadow = _g === void 0 ? 'hidden' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, _j = _a.type, type = _j === void 0 ? 'button' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
34
|
+
var _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.shapeType, shapeType = _c === void 0 ? 'rectangle' : _c, _d = _a.baseSize, baseSize = _d === void 0 ? 'small' : _d, baseColorKey = _a.baseColorKey, borderColorKey = _a.borderColorKey, _e = _a.iconSize, iconSize = _e === void 0 ? 24 : _e, _f = _a.iconFillType, iconFillType = _f === void 0 ? 'line' : _f, iconName = _a.iconName, iconColorKey = _a.iconColorKey, _g = _a.shadow, shadow = _g === void 0 ? 'hidden' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, _j = _a.type, type = _j === void 0 ? 'button' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, tabIndex = _a.tabIndex, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
35
35
|
var handleClick = function (e) {
|
|
36
36
|
if (onClick) {
|
|
37
37
|
onClick(e);
|
|
@@ -62,7 +62,7 @@ function IconButton(_a) {
|
|
|
62
62
|
}
|
|
63
63
|
return iconStateColorObj[fillType];
|
|
64
64
|
};
|
|
65
|
-
return (react_1.default.createElement(S_IconButton, { fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', onClick: handleClick, onMouseDown: handleMouseDown },
|
|
65
|
+
return (react_1.default.createElement(S_IconButton, { fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', tabIndex: tabIndex, onClick: handleClick, onMouseDown: handleMouseDown },
|
|
66
66
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: iconSize, colorKey: IconColorSelect(), fillType: iconFillType })));
|
|
67
67
|
}
|
|
68
68
|
var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
@@ -34,7 +34,8 @@ var S_ContentsArea2 = styled_components_1.default.div(templateObject_3 || (templ
|
|
|
34
34
|
var areaColor = _a.areaColor;
|
|
35
35
|
return "background-color: " + areaColor;
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
// TODO: 철학에 위배되지만, 히어로 배너를 쓰지 않을 경우를 위해 임시로 제거 상태. 추후 조치 필요
|
|
38
|
+
var S_Content1 = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n /* min-height: 480px; */\n"], ["\n /* min-height: 480px; */\n"])));
|
|
38
39
|
var S_Content2 = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
39
40
|
exports.default = WTS;
|
|
40
41
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -174,7 +174,7 @@ function TextFieldBase(_a) {
|
|
|
174
174
|
if (textLineType === 'single') {
|
|
175
175
|
return (react_1.default.createElement(S_InputWrapper, null,
|
|
176
176
|
react_1.default.createElement(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref })),
|
|
177
|
-
deleteIconMode === 'use' && isFocused && (react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', onMouseDown: deleteValue }))));
|
|
177
|
+
deleteIconMode === 'use' && isFocused && (react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: deleteValue }))));
|
|
178
178
|
}
|
|
179
179
|
if (textLineType === 'multi') {
|
|
180
180
|
return (react_1.default.createElement(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref })));
|
|
@@ -14,8 +14,9 @@ export declare type IconButtonProps = {
|
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2';
|
|
15
15
|
type?: 'submit' | 'reset' | 'button';
|
|
16
16
|
state?: 'normal' | 'disabled';
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
tabIndex?: number;
|
|
18
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
+
onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
20
|
};
|
|
20
|
-
declare function IconButton({ fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, type, state, onClick, onMouseDown }: IconButtonProps): JSX.Element;
|
|
21
|
+
declare function IconButton({ fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, type, state, tabIndex, onClick, onMouseDown }: IconButtonProps): JSX.Element;
|
|
21
22
|
export default IconButton;
|
|
@@ -31,7 +31,7 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
31
31
|
var ui_colors_1 = require("../../../common/styles/ui-colors");
|
|
32
32
|
var hybrid_1 = require("../../../hybrid");
|
|
33
33
|
function IconButton(_a) {
|
|
34
|
-
var _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.shapeType, shapeType = _c === void 0 ? 'rectangle' : _c, _d = _a.baseSize, baseSize = _d === void 0 ? 'small' : _d, baseColorKey = _a.baseColorKey, borderColorKey = _a.borderColorKey, _e = _a.iconSize, iconSize = _e === void 0 ? 24 : _e, _f = _a.iconFillType, iconFillType = _f === void 0 ? 'line' : _f, iconName = _a.iconName, iconColorKey = _a.iconColorKey, _g = _a.shadow, shadow = _g === void 0 ? 'hidden' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, _j = _a.type, type = _j === void 0 ? 'button' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
34
|
+
var _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.shapeType, shapeType = _c === void 0 ? 'rectangle' : _c, _d = _a.baseSize, baseSize = _d === void 0 ? 'small' : _d, baseColorKey = _a.baseColorKey, borderColorKey = _a.borderColorKey, _e = _a.iconSize, iconSize = _e === void 0 ? 24 : _e, _f = _a.iconFillType, iconFillType = _f === void 0 ? 'line' : _f, iconName = _a.iconName, iconColorKey = _a.iconColorKey, _g = _a.shadow, shadow = _g === void 0 ? 'hidden' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, _j = _a.type, type = _j === void 0 ? 'button' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, tabIndex = _a.tabIndex, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
35
35
|
var handleClick = function (e) {
|
|
36
36
|
if (onClick) {
|
|
37
37
|
onClick(e);
|
|
@@ -62,7 +62,7 @@ function IconButton(_a) {
|
|
|
62
62
|
}
|
|
63
63
|
return iconStateColorObj[fillType];
|
|
64
64
|
};
|
|
65
|
-
return (react_1.default.createElement(S_IconButton, { fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', onClick: handleClick, onMouseDown: handleMouseDown },
|
|
65
|
+
return (react_1.default.createElement(S_IconButton, { fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', tabIndex: tabIndex, onClick: handleClick, onMouseDown: handleMouseDown },
|
|
66
66
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: iconSize, colorKey: IconColorSelect(), fillType: iconFillType })));
|
|
67
67
|
}
|
|
68
68
|
var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
@@ -3,11 +3,12 @@ import { PDSTextType } from '../../../common';
|
|
|
3
3
|
declare type MobileBasicModalProps = {
|
|
4
4
|
titleText: PDSTextType;
|
|
5
5
|
bodySpacingMode?: 'none' | 'use';
|
|
6
|
+
bodyOverflowType?: 'auto' | 'visible';
|
|
6
7
|
contentText?: PDSTextType;
|
|
7
8
|
mBtnText?: PDSTextType;
|
|
8
9
|
onClickMBtn?: () => void;
|
|
9
10
|
onClickXMarkIcon?: () => void;
|
|
10
11
|
children?: React.ReactNode;
|
|
11
12
|
};
|
|
12
|
-
declare function MobileBasicModal({ titleText, bodySpacingMode, contentText, mBtnText, onClickMBtn, onClickXMarkIcon, children }: MobileBasicModalProps): React.ReactPortal;
|
|
13
|
+
declare function MobileBasicModal({ titleText, bodySpacingMode, bodyOverflowType, contentText, mBtnText, onClickMBtn, onClickXMarkIcon, children }: MobileBasicModalProps): React.ReactPortal;
|
|
13
14
|
export default MobileBasicModal;
|
|
@@ -33,7 +33,7 @@ var IconButton_1 = require("../IconButton");
|
|
|
33
33
|
var MainButton_1 = require("../MainButton");
|
|
34
34
|
var TextLabel_1 = require("../TextLabel");
|
|
35
35
|
function MobileBasicModal(_a) {
|
|
36
|
-
var titleText = _a.titleText, _b = _a.bodySpacingMode, bodySpacingMode = _b === void 0 ? 'use' : _b, contentText = _a.contentText, mBtnText = _a.mBtnText, onClickMBtn = _a.onClickMBtn, onClickXMarkIcon = _a.onClickXMarkIcon, children = _a.children;
|
|
36
|
+
var titleText = _a.titleText, _b = _a.bodySpacingMode, bodySpacingMode = _b === void 0 ? 'use' : _b, _c = _a.bodyOverflowType, bodyOverflowType = _c === void 0 ? 'auto' : _c, contentText = _a.contentText, mBtnText = _a.mBtnText, onClickMBtn = _a.onClickMBtn, onClickXMarkIcon = _a.onClickXMarkIcon, children = _a.children;
|
|
37
37
|
var container = (0, react_1.useState)(function () {
|
|
38
38
|
var modalRoot = document.createElement('div');
|
|
39
39
|
modalRoot.setAttribute('id', 'MobileBasicModal');
|
|
@@ -56,7 +56,7 @@ function MobileBasicModal(_a) {
|
|
|
56
56
|
react_1.default.createElement(S_TitleWrapper, null,
|
|
57
57
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, colorTheme: "sysTextPrimary", styleTheme: "headingBold" })),
|
|
58
58
|
react_1.default.createElement(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: 24, shapeType: "rectangle", iconName: "ic_xmark", iconColorKey: "ui_cpnt_modal_header_icon_02", iconFillType: "line", onClick: onClickXMarkIcon })),
|
|
59
|
-
react_1.default.createElement(S_Body, { bodySpacingMode: bodySpacingMode },
|
|
59
|
+
react_1.default.createElement(S_Body, { bodySpacingMode: bodySpacingMode, bodyOverflowType: bodyOverflowType },
|
|
60
60
|
contentText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: contentText, colorTheme: "sysTextSecondary", styleTheme: "subTitleRegular" })),
|
|
61
61
|
children && children),
|
|
62
62
|
react_1.default.createElement(S_Footer, null, mBtnText && react_1.default.createElement(MainButton_1.MainButton, { text: mBtnText, size: "rlarge", onClick: onClickMBtn })))), container);
|
|
@@ -79,7 +79,7 @@ var S_Header = styled_components_1.default.div(templateObject_3 || (templateObje
|
|
|
79
79
|
var theme = _a.theme;
|
|
80
80
|
return theme.spacing.spacingC;
|
|
81
81
|
});
|
|
82
|
-
var S_Body = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-bottom: ", ";\n margin-left: ", ";\n margin-right: ", ";\n max-height: 480px;\n overflow-y:
|
|
82
|
+
var S_Body = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-bottom: ", ";\n margin-left: ", ";\n margin-right: ", ";\n max-height: 480px;\n overflow-y: ", ";\n padding-top: ", ";\n\n ", "\n"], ["\n margin-bottom: ", ";\n margin-left: ", ";\n margin-right: ", ";\n max-height: 480px;\n overflow-y: ", ";\n padding-top: ", ";\n\n ", "\n"])), function (_a) {
|
|
83
83
|
var theme = _a.theme;
|
|
84
84
|
return theme.spacing.spacingE;
|
|
85
85
|
}, function (_a) {
|
|
@@ -88,6 +88,9 @@ var S_Body = styled_components_1.default.div(templateObject_5 || (templateObject
|
|
|
88
88
|
}, function (_a) {
|
|
89
89
|
var theme = _a.theme;
|
|
90
90
|
return theme.spacing.spacingE;
|
|
91
|
+
}, function (_a) {
|
|
92
|
+
var bodyOverflowType = _a.bodyOverflowType;
|
|
93
|
+
return bodyOverflowType;
|
|
91
94
|
}, function (_a) {
|
|
92
95
|
var theme = _a.theme;
|
|
93
96
|
return theme.spacing.spacingC;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v1.3.
|
|
2
|
+
## [v1.3.23]
|
|
3
3
|
|
|
4
4
|
### Component
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* DesktopBasicModal
|
|
6
|
+
* bodyOverflowType prop 추가 (systemUI구현 전 임시조치)
|
|
7
|
+
* MobileBasicModal
|
|
8
|
+
* bodyOverflowType prop 추가 (systemUI구현 전 임시조치)
|