pds-dev-kit-web 1.5.8 → 1.5.10
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 +6 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +6 -1
- package/dist/src/common/styles/colorSet/UIColor.json +6 -1
- package/dist/src/common/styles/colorSet/index.d.ts +89 -74
- package/dist/src/common/styles/colorSet/index.js +5 -5
- package/dist/src/common/styles/colorSet/ui-type.d.ts +5 -0
- package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +1 -1
- package/dist/src/desktop/components/AdminListItem/AdminListItem.js +2 -0
- package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +1 -0
- package/dist/src/desktop/components/BasicListItem/BasicListItem.js +8 -4
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +1 -0
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +1 -0
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +1 -0
- package/dist/src/hybrid/components/Icon/Icon.js +2 -1
- package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +1 -0
- package/dist/src/mobile/components/BasicListItem/BasicListItem.js +8 -4
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +1 -0
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +1 -0
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +1 -0
- package/package.json +1 -1
- package/release-note.md +5 -6
|
@@ -195,5 +195,10 @@
|
|
|
195
195
|
"sys_component_pastel_base_03": "darkpastelorange500",
|
|
196
196
|
"sys_component_pastel_base_04": "darkpastelgreen500",
|
|
197
197
|
"sys_component_pastel_base_05": "darkpastelpurple500",
|
|
198
|
-
"sys_component_base_11": "darkgreen30"
|
|
198
|
+
"sys_component_base_11": "darkgreen30",
|
|
199
|
+
"sys_loading_skeleton_01": "darkgrey400",
|
|
200
|
+
"sys_loading_skeleton_02": "darkgrey400/opacity30",
|
|
201
|
+
"sys_loading_linear_bar": "darkgrey400/opacity50",
|
|
202
|
+
"sys_loading_linear_base": "darkgrey30",
|
|
203
|
+
"sys_loading_three_bar": "darkgrey400"
|
|
199
204
|
}
|
|
@@ -195,5 +195,10 @@
|
|
|
195
195
|
"sys_component_pastel_base_03": "pastelorange500",
|
|
196
196
|
"sys_component_pastel_base_04": "pastelgreen500",
|
|
197
197
|
"sys_component_pastel_base_05": "pastelpurple500",
|
|
198
|
-
"sys_component_base_11": "green30"
|
|
198
|
+
"sys_component_base_11": "green30",
|
|
199
|
+
"sys_loading_skeleton_01": "grey400",
|
|
200
|
+
"sys_loading_skeleton_02": "grey400/opacity30",
|
|
201
|
+
"sys_loading_linear_bar": "grey400/opacity50",
|
|
202
|
+
"sys_loading_linear_base": "grey30",
|
|
203
|
+
"sys_loading_three_bar": "grey400"
|
|
199
204
|
}
|
|
@@ -576,5 +576,10 @@
|
|
|
576
576
|
"ui_cpnt_lottiereactionbutton_base_04": "sys_component_pastel_base_04",
|
|
577
577
|
"ui_cpnt_lottiereactionbutton_base_05": "sys_component_pastel_base_05",
|
|
578
578
|
"ui_60": "sys_component_base_11",
|
|
579
|
-
"ui_61": "sys_background_dimmed_02"
|
|
579
|
+
"ui_61": "sys_background_dimmed_02",
|
|
580
|
+
"ui_loading_skeleton_01": "sys_loading_skeleton_01",
|
|
581
|
+
"ui_loading_skeleton_02": "sys_loading_skeleton_02",
|
|
582
|
+
"ui_loading_linear_bar": "sys_loading_linear_bar",
|
|
583
|
+
"ui_loading_linear_base": "sys_loading_linear_base",
|
|
584
|
+
"ui_loading_three_bar": "sys_loading_three_bar"
|
|
580
585
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const colorSet: {
|
|
2
|
-
readonly
|
|
2
|
+
readonly PaletteColor_Dark: {
|
|
3
3
|
sys_container_background_01: string;
|
|
4
4
|
sys_container_background_02: string;
|
|
5
5
|
sys_container_background_03: string;
|
|
@@ -197,8 +197,85 @@ declare const colorSet: {
|
|
|
197
197
|
sys_component_pastel_base_04: string;
|
|
198
198
|
sys_component_pastel_base_05: string;
|
|
199
199
|
sys_component_base_11: string;
|
|
200
|
+
sys_loading_skeleton_01: string;
|
|
201
|
+
sys_loading_skeleton_02: string;
|
|
202
|
+
sys_loading_linear_bar: string;
|
|
203
|
+
sys_loading_linear_base: string;
|
|
204
|
+
sys_loading_three_bar: string;
|
|
200
205
|
};
|
|
201
|
-
readonly
|
|
206
|
+
readonly SemanticColor: {
|
|
207
|
+
blue500: string;
|
|
208
|
+
blue700: string;
|
|
209
|
+
blue300: string;
|
|
210
|
+
green700: string;
|
|
211
|
+
green500: string;
|
|
212
|
+
green300: string;
|
|
213
|
+
red500: string;
|
|
214
|
+
grey900: string;
|
|
215
|
+
grey500: string;
|
|
216
|
+
grey400: string;
|
|
217
|
+
grey100: string;
|
|
218
|
+
grey50: string;
|
|
219
|
+
white: string;
|
|
220
|
+
black: string;
|
|
221
|
+
darkblue500: string;
|
|
222
|
+
grey950: string;
|
|
223
|
+
darkgrey900: string;
|
|
224
|
+
darkgrey500: string;
|
|
225
|
+
darkgrey400: string;
|
|
226
|
+
darkgrey100: string;
|
|
227
|
+
darkgrey50: string;
|
|
228
|
+
darkred500: string;
|
|
229
|
+
darkgreen700: string;
|
|
230
|
+
orange500: string;
|
|
231
|
+
darkorange500: string;
|
|
232
|
+
opacity00: string;
|
|
233
|
+
opacity20: string;
|
|
234
|
+
opacity30: string;
|
|
235
|
+
opacity65: string;
|
|
236
|
+
darkgreen500: string;
|
|
237
|
+
grey70: string;
|
|
238
|
+
navy500: string;
|
|
239
|
+
lightgreen500: string;
|
|
240
|
+
pink500: string;
|
|
241
|
+
darkgrey70: string;
|
|
242
|
+
darknavy500: string;
|
|
243
|
+
darkpink500: string;
|
|
244
|
+
darklightgreen500: string;
|
|
245
|
+
opacity10: string;
|
|
246
|
+
grey600: string;
|
|
247
|
+
darkgrey600: string;
|
|
248
|
+
skyblue500: string;
|
|
249
|
+
skyblue300: string;
|
|
250
|
+
pink300: string;
|
|
251
|
+
lightpink500: string;
|
|
252
|
+
darkblue300: string;
|
|
253
|
+
darkblue700: string;
|
|
254
|
+
darkgreen300: string;
|
|
255
|
+
darkskyblue500: string;
|
|
256
|
+
navy100: string;
|
|
257
|
+
darknavy100: string;
|
|
258
|
+
opacity80: string;
|
|
259
|
+
opacity50: string;
|
|
260
|
+
grey30: string;
|
|
261
|
+
opacity95: string;
|
|
262
|
+
darkgrey30: string;
|
|
263
|
+
opacity40: string;
|
|
264
|
+
kakaoyellow: string;
|
|
265
|
+
pastelblue500: string;
|
|
266
|
+
pastelpink500: string;
|
|
267
|
+
pastelorange500: string;
|
|
268
|
+
pastelgreen500: string;
|
|
269
|
+
pastelpurple500: string;
|
|
270
|
+
darkpastelblue500: string;
|
|
271
|
+
darkpastelpink500: string;
|
|
272
|
+
darkpastelorange500: string;
|
|
273
|
+
darkpastelgreen500: string;
|
|
274
|
+
darkpastelpurple500: string;
|
|
275
|
+
green30: string;
|
|
276
|
+
darkgreen30: string;
|
|
277
|
+
};
|
|
278
|
+
readonly PaletteColor_light: {
|
|
202
279
|
sys_container_background_01: string;
|
|
203
280
|
sys_container_background_02: string;
|
|
204
281
|
sys_container_background_03: string;
|
|
@@ -396,6 +473,11 @@ declare const colorSet: {
|
|
|
396
473
|
sys_component_pastel_base_04: string;
|
|
397
474
|
sys_component_pastel_base_05: string;
|
|
398
475
|
sys_component_base_11: string;
|
|
476
|
+
sys_loading_skeleton_01: string;
|
|
477
|
+
sys_loading_skeleton_02: string;
|
|
478
|
+
sys_loading_linear_bar: string;
|
|
479
|
+
sys_loading_linear_base: string;
|
|
480
|
+
sys_loading_three_bar: string;
|
|
399
481
|
};
|
|
400
482
|
readonly UIColor: {
|
|
401
483
|
ui_cpnt_button_fill_base_primary: string;
|
|
@@ -976,78 +1058,11 @@ declare const colorSet: {
|
|
|
976
1058
|
ui_cpnt_lottiereactionbutton_base_05: string;
|
|
977
1059
|
ui_60: string;
|
|
978
1060
|
ui_61: string;
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
green700: string;
|
|
985
|
-
green500: string;
|
|
986
|
-
green300: string;
|
|
987
|
-
red500: string;
|
|
988
|
-
grey900: string;
|
|
989
|
-
grey500: string;
|
|
990
|
-
grey400: string;
|
|
991
|
-
grey100: string;
|
|
992
|
-
grey50: string;
|
|
993
|
-
white: string;
|
|
994
|
-
black: string;
|
|
995
|
-
darkblue500: string;
|
|
996
|
-
grey950: string;
|
|
997
|
-
darkgrey900: string;
|
|
998
|
-
darkgrey500: string;
|
|
999
|
-
darkgrey400: string;
|
|
1000
|
-
darkgrey100: string;
|
|
1001
|
-
darkgrey50: string;
|
|
1002
|
-
darkred500: string;
|
|
1003
|
-
darkgreen700: string;
|
|
1004
|
-
orange500: string;
|
|
1005
|
-
darkorange500: string;
|
|
1006
|
-
opacity00: string;
|
|
1007
|
-
opacity20: string;
|
|
1008
|
-
opacity30: string;
|
|
1009
|
-
opacity65: string;
|
|
1010
|
-
darkgreen500: string;
|
|
1011
|
-
grey70: string;
|
|
1012
|
-
navy500: string;
|
|
1013
|
-
lightgreen500: string;
|
|
1014
|
-
pink500: string;
|
|
1015
|
-
darkgrey70: string;
|
|
1016
|
-
darknavy500: string;
|
|
1017
|
-
darkpink500: string;
|
|
1018
|
-
darklightgreen500: string;
|
|
1019
|
-
opacity10: string;
|
|
1020
|
-
grey600: string;
|
|
1021
|
-
darkgrey600: string;
|
|
1022
|
-
skyblue500: string;
|
|
1023
|
-
skyblue300: string;
|
|
1024
|
-
pink300: string;
|
|
1025
|
-
lightpink500: string;
|
|
1026
|
-
darkblue300: string;
|
|
1027
|
-
darkblue700: string;
|
|
1028
|
-
darkgreen300: string;
|
|
1029
|
-
darkskyblue500: string;
|
|
1030
|
-
navy100: string;
|
|
1031
|
-
darknavy100: string;
|
|
1032
|
-
opacity80: string;
|
|
1033
|
-
opacity50: string;
|
|
1034
|
-
grey30: string;
|
|
1035
|
-
opacity95: string;
|
|
1036
|
-
darkgrey30: string;
|
|
1037
|
-
opacity40: string;
|
|
1038
|
-
kakaoyellow: string;
|
|
1039
|
-
pastelblue500: string;
|
|
1040
|
-
pastelpink500: string;
|
|
1041
|
-
pastelorange500: string;
|
|
1042
|
-
pastelgreen500: string;
|
|
1043
|
-
pastelpurple500: string;
|
|
1044
|
-
darkpastelblue500: string;
|
|
1045
|
-
darkpastelpink500: string;
|
|
1046
|
-
darkpastelorange500: string;
|
|
1047
|
-
darkpastelgreen500: string;
|
|
1048
|
-
darkpastelpurple500: string;
|
|
1049
|
-
green30: string;
|
|
1050
|
-
darkgreen30: string;
|
|
1061
|
+
ui_loading_skeleton_01: string;
|
|
1062
|
+
ui_loading_skeleton_02: string;
|
|
1063
|
+
ui_loading_linear_bar: string;
|
|
1064
|
+
ui_loading_linear_base: string;
|
|
1065
|
+
ui_loading_three_bar: string;
|
|
1051
1066
|
};
|
|
1052
1067
|
};
|
|
1053
1068
|
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 PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
8
7
|
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
9
|
-
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
10
8
|
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
9
|
+
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
10
|
+
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
11
11
|
var colorSet = {
|
|
12
|
-
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
13
12
|
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
SemanticColor: SemanticColor_json_1.default,
|
|
14
|
+
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
15
|
+
UIColor: UIColor_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -577,4 +577,9 @@ export interface UITheme {
|
|
|
577
577
|
ui_cpnt_lottiereactionbutton_base_05: string;
|
|
578
578
|
ui_60: string;
|
|
579
579
|
ui_61: string;
|
|
580
|
+
ui_loading_skeleton_01: string;
|
|
581
|
+
ui_loading_skeleton_02: string;
|
|
582
|
+
ui_loading_linear_bar: string;
|
|
583
|
+
ui_loading_linear_base: string;
|
|
584
|
+
ui_loading_three_bar: string;
|
|
580
585
|
}
|
|
@@ -2,7 +2,7 @@ import { TFunctionResult } from 'i18next';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PDSTextType } from '../../../common';
|
|
4
4
|
declare type ColumnWidthType = 'small' | 'medium' | 'large';
|
|
5
|
-
declare type ColumnTextType = 'normal' | 'active' | 'inactive' | 'report';
|
|
5
|
+
declare type ColumnTextType = 'normal' | 'active' | 'active2' | 'inactive' | 'report';
|
|
6
6
|
export declare type AdminListItemProps = {
|
|
7
7
|
rowSize?: 'high' | 'medium' | 'low';
|
|
8
8
|
selectionMode?: 'none' | 'single' | 'multi';
|
|
@@ -112,6 +112,8 @@ var AdminListItem = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
112
112
|
switch (style) {
|
|
113
113
|
case 'active':
|
|
114
114
|
return 'sysTextBrandSeconVariant';
|
|
115
|
+
case 'active2':
|
|
116
|
+
return 'sysTextBrandPrimary';
|
|
115
117
|
case 'inactive':
|
|
116
118
|
return 'sysTextTertiary';
|
|
117
119
|
case 'report':
|
|
@@ -45,6 +45,7 @@ export declare type StyleProps = {
|
|
|
45
45
|
displayType?: 'none' | 'text' | 'ibtn_text' | 'ibtn_amount1' | 'ibtn_amount2' | 'mbtn' | 'switch';
|
|
46
46
|
hasOnClick?: boolean;
|
|
47
47
|
spacingMode?: 'none' | 'use';
|
|
48
|
+
onlyLeftArea?: boolean;
|
|
48
49
|
};
|
|
49
50
|
declare function BasicListItem({ selectionMode, titleText, titleTextColorTheme, descText, badgeMode, badgeStatus, imageIconMode, imageShapeType, imageSrc, iconName, iconFillType, displayType, captionText, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, mBtnFillType, mBtnText, dividerType, titleFontWeight, checkboxId, radioId, radioValue, switchName, switchState, switchStatus, spacingMode, onClick, onClickIBtn1, onClickIBtn2, onClickMBtn, onClickRadio, onClickSwitch }: BasicListItemProps): JSX.Element;
|
|
50
51
|
export default BasicListItem;
|
|
@@ -20,6 +20,7 @@ function BasicListItem(_a) {
|
|
|
20
20
|
var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, titleText = _a.titleText, _c = _a.titleTextColorTheme, titleTextColorTheme = _c === void 0 ? 'none' : _c, descText = _a.descText, _d = _a.badgeMode, badgeMode = _d === void 0 ? 'none' : _d, _e = _a.badgeStatus, badgeStatus = _e === void 0 ? 'inactive' : _e, _f = _a.imageIconMode, imageIconMode = _f === void 0 ? 'none' : _f, _g = _a.imageShapeType, imageShapeType = _g === void 0 ? 'round' : _g, imageSrc = _a.imageSrc, iconName = _a.iconName, _h = _a.iconFillType, iconFillType = _h === void 0 ? 'line' : _h, _j = _a.displayType, displayType = _j === void 0 ? 'none' : _j, captionText = _a.captionText, iBtn1IconName = _a.iBtn1IconName, _k = _a.iBtn1IconFillType, iBtn1IconFillType = _k === void 0 ? 'line' : _k, iBtn2IconName = _a.iBtn2IconName, _l = _a.iBtn2IconFillType, iBtn2IconFillType = _l === void 0 ? 'line' : _l, _m = _a.mBtnFillType, mBtnFillType = _m === void 0 ? 'fill' : _m, mBtnText = _a.mBtnText, _o = _a.dividerType, dividerType = _o === void 0 ? 'none' : _o, _p = _a.titleFontWeight, titleFontWeight = _p === void 0 ? 'regular' : _p, checkboxId = _a.checkboxId, radioId = _a.radioId, radioValue = _a.radioValue, switchName = _a.switchName, _q = _a.switchState, switchState = _q === void 0 ? 'normal' : _q, _r = _a.switchStatus, switchStatus = _r === void 0 ? 'off' : _r, _s = _a.spacingMode, spacingMode = _s === void 0 ? 'use' : _s, onClick = _a.onClick, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch;
|
|
21
21
|
var methods = (0, react_hook_form_1.useFormContext)();
|
|
22
22
|
var isSelected = methods === null || methods === void 0 ? void 0 : methods.watch((checkboxId === null || checkboxId === void 0 ? void 0 : checkboxId.toString()) || '');
|
|
23
|
+
var onlyLeftArea = displayType === 'none';
|
|
23
24
|
var handleCheckBoxClick = function (e) {
|
|
24
25
|
e.preventDefault();
|
|
25
26
|
if (!checkboxId) {
|
|
@@ -115,7 +116,7 @@ function BasicListItem(_a) {
|
|
|
115
116
|
};
|
|
116
117
|
return (react_1.default.createElement(S_BasicListItem, { displayType: displayType, selectionMode: selectionMode, isSelected: isSelected, onClick: handleClick, hasOnClick: !!onClick, spacingMode: spacingMode },
|
|
117
118
|
react_1.default.createElement(S_BasicListItemBox, { imageIconMode: imageIconMode, captionText: captionText, spacingMode: spacingMode },
|
|
118
|
-
react_1.default.createElement(S_LeftBox,
|
|
119
|
+
react_1.default.createElement(S_LeftBox, { onlyLeftArea: onlyLeftArea },
|
|
119
120
|
selectionMode !== 'none' && (react_1.default.createElement(S_SelectionBoxWrapper, { selectionMode: selectionMode },
|
|
120
121
|
selectionMode === 'check' && checkboxId && (react_1.default.createElement(Checkbox_1.Checkbox, { name: checkboxId.toString(), state: "normal", onChange: handleCheckBoxClick })),
|
|
121
122
|
selectionMode === 'radio' && radioValue && radioId && (react_1.default.createElement(Radio_1.Radio, { name: radioId, value: radioValue, onChange: handleRadioClick, checked: radioId === radioValue })))),
|
|
@@ -136,10 +137,10 @@ function BasicListItem(_a) {
|
|
|
136
137
|
captionText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
137
138
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
138
139
|
react_1.default.createElement(S_TextWrapper, null,
|
|
139
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, colorTheme: "sysTextTertiary", styleTheme: "caption1Regular", textAlign: "
|
|
140
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, colorTheme: "sysTextTertiary", styleTheme: "caption1Regular", textAlign: "left", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 })))))),
|
|
140
141
|
react_1.default.createElement(S_RightBox, { displayType: displayType },
|
|
141
142
|
(displayType === 'text' || displayType === 'ibtn_text') && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
142
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, colorTheme: "sysTextSecondary", styleTheme: "caption1Regular", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }),
|
|
143
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, colorTheme: "sysTextSecondary", styleTheme: "caption1Regular", textAlign: "right", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }),
|
|
143
144
|
isRightSpacingChecker('none') && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }))),
|
|
144
145
|
(displayType === 'ibtn_amount1' ||
|
|
145
146
|
displayType === 'ibtn_amount2' ||
|
|
@@ -179,7 +180,10 @@ var S_BasicListItemBox = styled_components_1.default.div(templateObject_2 || (te
|
|
|
179
180
|
var spacingMode = _a.spacingMode, theme = _a.theme;
|
|
180
181
|
return spacingMode === 'use' && "0 " + theme.spacing.spacingC;
|
|
181
182
|
});
|
|
182
|
-
var S_LeftBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex:
|
|
183
|
+
var S_LeftBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex: ", ";\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n flex: ", ";\n width: 100%;\n"])), function (_a) {
|
|
184
|
+
var onlyLeftArea = _a.onlyLeftArea;
|
|
185
|
+
return (onlyLeftArea ? 'auto' : 7);
|
|
186
|
+
});
|
|
183
187
|
var S_SelectionBoxWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 40px;\n justify-content: center;\n width: 40px;\n"], ["\n align-items: center;\n display: flex;\n height: 40px;\n justify-content: center;\n width: 40px;\n"])));
|
|
184
188
|
var S_IconWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n"])));
|
|
185
189
|
var S_TextBox = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"], ["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"])));
|
|
@@ -48,6 +48,7 @@ function UploadTextButton(_a) {
|
|
|
48
48
|
if (onClick) {
|
|
49
49
|
onClick(e);
|
|
50
50
|
}
|
|
51
|
+
e.target.value = '';
|
|
51
52
|
};
|
|
52
53
|
return (react_1.default.createElement(S_UploadTextButton, { size: size, responsiveMode: responsiveMode, fontWeight: fontWeight, disabled: state === 'disabled' },
|
|
53
54
|
react_1.default.createElement("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: handleClick }),
|
|
@@ -10,9 +10,10 @@ var line_1 = __importDefault(require("../../../common/assets/icons/line"));
|
|
|
10
10
|
var Icon = function (_a) {
|
|
11
11
|
var _b = _a.iconName, iconName = _b === void 0 ? 'ic_unavailable' : _b, _c = _a.size, size = _c === void 0 ? 24 : _c, _d = _a.colorKey, colorKey = _d === void 0 ? 'ui_cpnt_icon_sys_grey_01' : _d, _e = _a.fillType, fillType = _e === void 0 ? 'line' : _e;
|
|
12
12
|
var theme = (0, styled_components_1.useTheme)();
|
|
13
|
+
var DefaultIcon = line_1.default.ic_unavailable;
|
|
13
14
|
var SelectedIcon = fillType === 'line'
|
|
14
15
|
? line_1.default[iconName] || fill_1.default[iconName]
|
|
15
16
|
: fill_1.default[iconName] || line_1.default[iconName];
|
|
16
|
-
return (react_1.default.createElement(SelectedIcon, { color: theme[colorKey], size: size, style: { minWidth: size, minHeight: size } }));
|
|
17
|
+
return SelectedIcon ? (react_1.default.createElement(SelectedIcon, { color: theme[colorKey], size: size, style: { minWidth: size, minHeight: size } })) : (react_1.default.createElement(DefaultIcon, { color: theme[colorKey], size: size, style: { minWidth: size, minHeight: size } }));
|
|
17
18
|
};
|
|
18
19
|
exports.default = Icon;
|
|
@@ -44,6 +44,7 @@ export declare type StyleProps = {
|
|
|
44
44
|
imageIconMode?: 'none' | 'image' | 'icon';
|
|
45
45
|
displayType?: 'none' | 'text' | 'ibtn_text' | 'ibtn_amount1' | 'ibtn_amount2' | 'mbtn' | 'switch';
|
|
46
46
|
spacingMode?: 'none' | 'use';
|
|
47
|
+
onlyLeftArea?: boolean;
|
|
47
48
|
};
|
|
48
49
|
declare function BasicListItem({ selectionMode, titleText, titleTextColorTheme, descText, badgeMode, badgeStatus, imageIconMode, imageShapeType, imageSrc, iconName, iconFillType, displayType, captionText, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, mBtnFillType, mBtnText, dividerType, titleFontWeight, checkboxId, radioId, radioValue, switchName, switchState, switchStatus, spacingMode, onClick, onClickRadio, onClickSwitch, onClickIBtn1, onClickIBtn2, onClickMBtn }: BasicListItemProps): JSX.Element;
|
|
49
50
|
export default BasicListItem;
|
|
@@ -20,6 +20,7 @@ function BasicListItem(_a) {
|
|
|
20
20
|
var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, titleText = _a.titleText, _c = _a.titleTextColorTheme, titleTextColorTheme = _c === void 0 ? 'none' : _c, descText = _a.descText, _d = _a.badgeMode, badgeMode = _d === void 0 ? 'none' : _d, _e = _a.badgeStatus, badgeStatus = _e === void 0 ? 'inactive' : _e, _f = _a.imageIconMode, imageIconMode = _f === void 0 ? 'none' : _f, _g = _a.imageShapeType, imageShapeType = _g === void 0 ? 'round' : _g, imageSrc = _a.imageSrc, iconName = _a.iconName, _h = _a.iconFillType, iconFillType = _h === void 0 ? 'line' : _h, _j = _a.displayType, displayType = _j === void 0 ? 'none' : _j, captionText = _a.captionText, iBtn1IconName = _a.iBtn1IconName, _k = _a.iBtn1IconFillType, iBtn1IconFillType = _k === void 0 ? 'line' : _k, iBtn2IconName = _a.iBtn2IconName, _l = _a.iBtn2IconFillType, iBtn2IconFillType = _l === void 0 ? 'line' : _l, _m = _a.mBtnFillType, mBtnFillType = _m === void 0 ? 'fill' : _m, mBtnText = _a.mBtnText, _o = _a.dividerType, dividerType = _o === void 0 ? 'none' : _o, _p = _a.titleFontWeight, titleFontWeight = _p === void 0 ? 'regular' : _p, checkboxId = _a.checkboxId, radioId = _a.radioId, radioValue = _a.radioValue, switchName = _a.switchName, _q = _a.switchState, switchState = _q === void 0 ? 'normal' : _q, _r = _a.switchStatus, switchStatus = _r === void 0 ? 'off' : _r, _s = _a.spacingMode, spacingMode = _s === void 0 ? 'use' : _s, onClick = _a.onClick, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn;
|
|
21
21
|
var methods = (0, react_hook_form_1.useFormContext)();
|
|
22
22
|
var isSelected = methods === null || methods === void 0 ? void 0 : methods.watch((checkboxId === null || checkboxId === void 0 ? void 0 : checkboxId.toString()) || '');
|
|
23
|
+
var onlyLeftArea = displayType === 'none';
|
|
23
24
|
var handleCheckBoxClick = function (e) {
|
|
24
25
|
e.preventDefault();
|
|
25
26
|
if (!checkboxId) {
|
|
@@ -115,7 +116,7 @@ function BasicListItem(_a) {
|
|
|
115
116
|
};
|
|
116
117
|
return (react_1.default.createElement(S_BasicListItem, { isSelected: isSelected, onClick: handleClick, spacingMode: spacingMode },
|
|
117
118
|
react_1.default.createElement(S_BasicListItemBox, { imageIconMode: imageIconMode, captionText: captionText, spacingMode: spacingMode },
|
|
118
|
-
react_1.default.createElement(S_LeftBox,
|
|
119
|
+
react_1.default.createElement(S_LeftBox, { onlyLeftArea: onlyLeftArea },
|
|
119
120
|
selectionMode !== 'none' && (react_1.default.createElement(S_SelectionBoxWrapper, { selectionMode: selectionMode },
|
|
120
121
|
selectionMode === 'check' && checkboxId && (react_1.default.createElement(Checkbox_1.Checkbox, { name: checkboxId.toString(), state: "normal", onChange: handleCheckBoxClick })),
|
|
121
122
|
selectionMode === 'radio' && radioValue && radioId && (react_1.default.createElement(Radio_1.Radio, { name: radioId, value: radioValue, onChange: handleRadioClick, checked: radioId === radioValue })))),
|
|
@@ -136,10 +137,10 @@ function BasicListItem(_a) {
|
|
|
136
137
|
captionText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
137
138
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
138
139
|
react_1.default.createElement(S_TextWrapper, null,
|
|
139
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, colorTheme: "sysTextTertiary", styleTheme: "caption1Regular", textAlign: "
|
|
140
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, colorTheme: "sysTextTertiary", styleTheme: "caption1Regular", textAlign: "left", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 })))))),
|
|
140
141
|
react_1.default.createElement(S_RightBox, { displayType: displayType },
|
|
141
142
|
(displayType === 'text' || displayType === 'ibtn_text') && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
142
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, colorTheme: "sysTextSecondary", styleTheme: "caption1Regular", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }),
|
|
143
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, colorTheme: "sysTextSecondary", styleTheme: "caption1Regular", textAlign: "right", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }),
|
|
143
144
|
isRightSpacingChecker('none') && react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }))),
|
|
144
145
|
(displayType === 'ibtn_amount1' ||
|
|
145
146
|
displayType === 'ibtn_amount2' ||
|
|
@@ -168,7 +169,10 @@ var S_BasicListItemBox = styled_components_1.default.div(templateObject_2 || (te
|
|
|
168
169
|
var spacingMode = _a.spacingMode, theme = _a.theme;
|
|
169
170
|
return spacingMode === 'use' && "0 " + theme.spacing.spacingC;
|
|
170
171
|
});
|
|
171
|
-
var S_LeftBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex:
|
|
172
|
+
var S_LeftBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex: ", ";\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n flex: ", ";\n width: 100%;\n"])), function (_a) {
|
|
173
|
+
var onlyLeftArea = _a.onlyLeftArea;
|
|
174
|
+
return (onlyLeftArea ? 'auto' : 7);
|
|
175
|
+
});
|
|
172
176
|
var S_SelectionBoxWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 40px;\n justify-content: center;\n width: 40px;\n"], ["\n align-items: center;\n display: flex;\n height: 40px;\n justify-content: center;\n width: 40px;\n"])));
|
|
173
177
|
var S_IconWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n"])));
|
|
174
178
|
var S_TextBox = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"], ["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"])));
|
|
@@ -48,6 +48,7 @@ function UploadTextButton(_a) {
|
|
|
48
48
|
if (onClick) {
|
|
49
49
|
onClick(e);
|
|
50
50
|
}
|
|
51
|
+
e.target.value = '';
|
|
51
52
|
};
|
|
52
53
|
return (react_1.default.createElement(S_UploadTextButton, { size: size, responsiveMode: responsiveMode, fontWeight: fontWeight, disabled: state === 'disabled' },
|
|
53
54
|
react_1.default.createElement("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: handleClick }),
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v1.5.
|
|
2
|
+
## [v1.5.10]
|
|
3
3
|
|
|
4
4
|
### Component
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* 컬러 키 값 22.11.04 12시 15분 기준 싱크
|
|
5
|
+
* BasicListItem
|
|
6
|
+
* captionText의 textAlign을 right에서 left로 변경
|
|
7
|
+
* descText의 textAlign을 left에서 right로 변경
|
|
8
|
+
* displayType가 'none'일 때는 text 들이 전체를 차지할 수 있도록 수정
|