pds-dev-kit-web 1.4.61 → 1.4.63
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 +8 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +8 -1
- package/dist/src/common/styles/colorSet/UIColor.json +24 -2
- package/dist/src/common/styles/colorSet/index.d.ts +96 -60
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +22 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +1 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +8 -4
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.d.ts +1 -1
- package/dist/src/desktop/components/BasicChatListItem/BasicChatListItem.js +6 -2
- package/dist/src/desktop/components/ChatList/Body.d.ts +1 -1
- package/dist/src/desktop/components/ChatList/Body.js +2 -1
- package/dist/src/desktop/components/ChatList/ChatList.d.ts +2 -1
- package/dist/src/desktop/components/ChatList/ChatList.js +8 -8
- package/dist/src/desktop/components/ChatList/ChatTextField.d.ts +2 -2
- package/dist/src/desktop/components/ChatList/ChatTextField.js +2 -2
- package/dist/src/desktop/components/ChatList/Footer.d.ts +2 -2
- package/dist/src/desktop/components/ChatList/Footer.js +2 -2
- package/dist/src/desktop/components/ChatList/Header.d.ts +2 -2
- package/dist/src/desktop/components/ChatList/Header.js +5 -5
- package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.d.ts +3 -3
- package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.js +4 -4
- package/dist/src/desktop/components/TextButton/TextButton.d.ts +2 -2
- package/dist/src/desktop/components/TextButton/TextButton.js +2 -2
- package/dist/src/desktop/components/TextField/TextField.d.ts +1 -1
- package/dist/src/desktop/components/TextField/TextField.js +80 -30
- package/dist/src/hybrid/components/ImageView/ImageView.d.ts +1 -1
- package/dist/src/hybrid/components/ImageView/ImageView.js +2 -0
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +1 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +8 -4
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.d.ts +1 -1
- package/dist/src/mobile/components/BasicChatListItem/BasicChatListItem.js +6 -2
- package/dist/src/mobile/components/ChatList/Body.d.ts +1 -1
- package/dist/src/mobile/components/ChatList/Body.js +2 -1
- package/dist/src/mobile/components/ChatList/ChatList.d.ts +2 -1
- package/dist/src/mobile/components/ChatList/ChatList.js +8 -8
- package/dist/src/mobile/components/ChatList/ChatTextField.d.ts +2 -2
- package/dist/src/mobile/components/ChatList/ChatTextField.js +2 -2
- package/dist/src/mobile/components/ChatList/Footer.d.ts +2 -2
- package/dist/src/mobile/components/ChatList/Footer.js +2 -2
- package/dist/src/mobile/components/ChatList/Header.d.ts +2 -2
- package/dist/src/mobile/components/ChatList/Header.js +5 -5
- package/dist/src/mobile/components/TextButton/TextButton.d.ts +2 -2
- package/dist/src/mobile/components/TextButton/TextButton.js +2 -2
- package/dist/src/mobile/components/TextField/TextField.d.ts +1 -1
- package/dist/src/mobile/components/TextField/TextField.js +80 -30
- package/package.json +1 -1
- package/release-note.md +11 -5
|
@@ -180,5 +180,12 @@
|
|
|
180
180
|
"sys_text_lighttone_grey_01": "grey900",
|
|
181
181
|
"sys_widget_lighttone_primary_01": "blue500",
|
|
182
182
|
"sys_text_lighttone_grey_02": "grey500",
|
|
183
|
-
"sys_component_base_09": "darkgrey70"
|
|
183
|
+
"sys_component_base_09": "darkgrey70",
|
|
184
|
+
"sys_component_base_darktheme_opacity20": "darkgrey900/opacity20",
|
|
185
|
+
"sys_component_base_darktheme_disabled_opacity20": "darkgrey70/opacity20",
|
|
186
|
+
"sys_border_white_opacity00": "white/opacity00",
|
|
187
|
+
"sys_border_line_darktheme_07_opacity00": "darkgrey50/opacity00",
|
|
188
|
+
"sys_border_line_darktheme_02_opacity20": "darkgrey400/opacity20",
|
|
189
|
+
"sys_border_line_darktheme_03_opacity20": "darkred500/opacity20",
|
|
190
|
+
"sys_border_line_darktheme_07_opacity20": "darkgrey50/opacity20"
|
|
184
191
|
}
|
|
@@ -180,5 +180,12 @@
|
|
|
180
180
|
"sys_text_lighttone_grey_01": "grey900",
|
|
181
181
|
"sys_widget_lighttone_primary_01": "blue500",
|
|
182
182
|
"sys_text_lighttone_grey_02": "grey500",
|
|
183
|
-
"sys_component_base_09": "white"
|
|
183
|
+
"sys_component_base_09": "white",
|
|
184
|
+
"sys_component_base_darktheme_opacity20": "darkgrey900/opacity20",
|
|
185
|
+
"sys_component_base_darktheme_disabled_opacity20": "darkgrey70/opacity20",
|
|
186
|
+
"sys_border_white_opacity00": "white/opacity00",
|
|
187
|
+
"sys_border_line_darktheme_07_opacity00": "darkgrey50/opacity00",
|
|
188
|
+
"sys_border_line_darktheme_02_opacity20": "darkgrey400/opacity20",
|
|
189
|
+
"sys_border_line_darktheme_03_opacity20": "darkred500/opacity20",
|
|
190
|
+
"sys_border_line_darktheme_07_opacity20": "darkgrey50/opacity20"
|
|
184
191
|
}
|
|
@@ -514,7 +514,7 @@
|
|
|
514
514
|
"ui_cpnt_divider_area": "sys_border_area_01",
|
|
515
515
|
"ui_cpnt_button_white_base_hover": "sys_component_base_darktheme_01",
|
|
516
516
|
"ui_cpnt_button_white_base_pressed": "sys_component_base_darktheme_03",
|
|
517
|
-
"ui_cpnt_list_base_area_hover": "
|
|
517
|
+
"ui_cpnt_list_base_area_hover": "sys_component_base_02",
|
|
518
518
|
"ui_cpnt_sheet_border_01": "sys_border_line_01",
|
|
519
519
|
"ui_cpnt_sheet_border_02": "sys_border_line_03",
|
|
520
520
|
"ui_cpnt_sheet_border_03": "sys_border_line_11",
|
|
@@ -547,5 +547,27 @@
|
|
|
547
547
|
"ui_54": "sys_text_lighttone_grey_01",
|
|
548
548
|
"ui_55": "sys_widget_lighttone_primary_01",
|
|
549
549
|
"ui_56": "sys_text_lighttone_grey_02",
|
|
550
|
-
"ui_cpnt_sheet_base_04": "sys_component_base_09"
|
|
550
|
+
"ui_cpnt_sheet_base_04": "sys_component_base_09",
|
|
551
|
+
"ui_cpnt_masking_base_01": "sys_component_base_03",
|
|
552
|
+
"ui_cpnt_masking_icon_01": "sys_widget_grey_03",
|
|
553
|
+
"ui_cpnt_list_base_area_transparent_seller": "sys_cpnt_base_white_opacity50",
|
|
554
|
+
"ui_57": "sys_component_base_darktheme_opacity20",
|
|
555
|
+
"ui_58": "sys_component_base_darktheme_disabled_opacity20",
|
|
556
|
+
"ui_cpnt_divider_white_opacity00": "sys_border_white_opacity00",
|
|
557
|
+
"ui_cpnt_textfield_text_colortheme_transparent_enabled": "sys_text_grey_darktheme_01",
|
|
558
|
+
"ui_cpnt_textfield_text_colortheme_transparent_hint": "sys_text_grey_darktheme_02",
|
|
559
|
+
"ui_cpnt_textfield_text_colortheme_transparent_disabled": "sys_text_grey_darktheme_03",
|
|
560
|
+
"ui_cpnt_textfield_icon_colortheme_transparent_default": "sys_widget_grey_darktheme_02",
|
|
561
|
+
"ui_cpnt_textfield_icon_colortheme_transparent_disabled": "sys_widget_grey_darktheme_03",
|
|
562
|
+
"ui_cpnt_textfield_border_colortheme_transparent_normal": "sys_border_line_darktheme_07_opacity00",
|
|
563
|
+
"ui_cpnt_textfield_border_colortheme_transparent_focus": "sys_border_line_darktheme_07_opacity20",
|
|
564
|
+
"ui_cpnt_textfield_border_colortheme_transparent_error": "sys_border_line_darktheme_02_opacity20",
|
|
565
|
+
"ui_cpnt_textfield_text_colortheme_transparent_error": "sys_border_line_darktheme_03_opacity20",
|
|
566
|
+
"ui_cpnt_textfield_base_colortheme_transparent_disabled": "sys_component_base_darktheme_disabled_opacity20",
|
|
567
|
+
"ui_cpnt_textfield_base_colortheme_transparent_normal": "sys_component_base_darktheme_opacity20",
|
|
568
|
+
"ui_cpnt_textfield_text_colortheme_transparent_readonly": "sys_text_grey_darktheme_03",
|
|
569
|
+
"ui_cpnt_textfield_icon_colortheme_transparent_readonly": "sys_widget_grey_darktheme_03",
|
|
570
|
+
"ui_cpnt_textfield_base_colortheme_transparent_readonly": "sys_component_base_darktheme_disabled_opacity20",
|
|
571
|
+
"ui_cpnt_textfield_border_colortheme_transparent_disabled": "sys_border_line_darktheme_07_opacity00",
|
|
572
|
+
"ui_cpnt_textfield_border_colortheme_transparent_readonly": "sys_border_line_darktheme_07_opacity00"
|
|
551
573
|
}
|
|
@@ -1,64 +1,4 @@
|
|
|
1
1
|
declare const colorSet: {
|
|
2
|
-
readonly SemanticColor: {
|
|
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
|
-
opacity40: string;
|
|
60
|
-
kakaoyellow: string;
|
|
61
|
-
};
|
|
62
2
|
readonly PaletteColor_Dark: {
|
|
63
3
|
sys_container_background_01: string;
|
|
64
4
|
sys_container_background_02: string;
|
|
@@ -242,6 +182,13 @@ declare const colorSet: {
|
|
|
242
182
|
sys_widget_lighttone_primary_01: string;
|
|
243
183
|
sys_text_lighttone_grey_02: string;
|
|
244
184
|
sys_component_base_09: string;
|
|
185
|
+
sys_component_base_darktheme_opacity20: string;
|
|
186
|
+
sys_component_base_darktheme_disabled_opacity20: string;
|
|
187
|
+
sys_border_white_opacity00: string;
|
|
188
|
+
sys_border_line_darktheme_07_opacity00: string;
|
|
189
|
+
sys_border_line_darktheme_02_opacity20: string;
|
|
190
|
+
sys_border_line_darktheme_03_opacity20: string;
|
|
191
|
+
sys_border_line_darktheme_07_opacity20: string;
|
|
245
192
|
};
|
|
246
193
|
readonly PaletteColor_light: {
|
|
247
194
|
sys_container_background_01: string;
|
|
@@ -426,6 +373,73 @@ declare const colorSet: {
|
|
|
426
373
|
sys_widget_lighttone_primary_01: string;
|
|
427
374
|
sys_text_lighttone_grey_02: string;
|
|
428
375
|
sys_component_base_09: string;
|
|
376
|
+
sys_component_base_darktheme_opacity20: string;
|
|
377
|
+
sys_component_base_darktheme_disabled_opacity20: string;
|
|
378
|
+
sys_border_white_opacity00: string;
|
|
379
|
+
sys_border_line_darktheme_07_opacity00: string;
|
|
380
|
+
sys_border_line_darktheme_02_opacity20: string;
|
|
381
|
+
sys_border_line_darktheme_03_opacity20: string;
|
|
382
|
+
sys_border_line_darktheme_07_opacity20: string;
|
|
383
|
+
};
|
|
384
|
+
readonly SemanticColor: {
|
|
385
|
+
blue500: string;
|
|
386
|
+
blue700: string;
|
|
387
|
+
blue300: string;
|
|
388
|
+
green700: string;
|
|
389
|
+
green500: string;
|
|
390
|
+
green300: string;
|
|
391
|
+
red500: string;
|
|
392
|
+
grey900: string;
|
|
393
|
+
grey500: string;
|
|
394
|
+
grey400: string;
|
|
395
|
+
grey100: string;
|
|
396
|
+
grey50: string;
|
|
397
|
+
white: string;
|
|
398
|
+
black: string;
|
|
399
|
+
darkblue500: string;
|
|
400
|
+
grey950: string;
|
|
401
|
+
darkgrey900: string;
|
|
402
|
+
darkgrey500: string;
|
|
403
|
+
darkgrey400: string;
|
|
404
|
+
darkgrey100: string;
|
|
405
|
+
darkgrey50: string;
|
|
406
|
+
darkred500: string;
|
|
407
|
+
darkgreen700: string;
|
|
408
|
+
orange500: string;
|
|
409
|
+
darkorange500: string;
|
|
410
|
+
opacity00: string;
|
|
411
|
+
opacity20: string;
|
|
412
|
+
opacity30: string;
|
|
413
|
+
opacity65: string;
|
|
414
|
+
darkgreen500: string;
|
|
415
|
+
grey70: string;
|
|
416
|
+
navy500: string;
|
|
417
|
+
lightgreen500: string;
|
|
418
|
+
pink500: string;
|
|
419
|
+
darkgrey70: string;
|
|
420
|
+
darknavy500: string;
|
|
421
|
+
darkpink500: string;
|
|
422
|
+
darklightgreen500: string;
|
|
423
|
+
opacity10: string;
|
|
424
|
+
grey600: string;
|
|
425
|
+
darkgrey600: string;
|
|
426
|
+
skyblue500: string;
|
|
427
|
+
skyblue300: string;
|
|
428
|
+
pink300: string;
|
|
429
|
+
lightpink500: string;
|
|
430
|
+
darkblue300: string;
|
|
431
|
+
darkblue700: string;
|
|
432
|
+
darkgreen300: string;
|
|
433
|
+
darkskyblue500: string;
|
|
434
|
+
navy100: string;
|
|
435
|
+
darknavy100: string;
|
|
436
|
+
opacity80: string;
|
|
437
|
+
opacity50: string;
|
|
438
|
+
grey30: string;
|
|
439
|
+
opacity95: string;
|
|
440
|
+
darkgrey30: string;
|
|
441
|
+
opacity40: string;
|
|
442
|
+
kakaoyellow: string;
|
|
429
443
|
};
|
|
430
444
|
readonly UIColor: {
|
|
431
445
|
ui_cpnt_button_fill_base_primary: string;
|
|
@@ -977,6 +991,28 @@ declare const colorSet: {
|
|
|
977
991
|
ui_55: string;
|
|
978
992
|
ui_56: string;
|
|
979
993
|
ui_cpnt_sheet_base_04: string;
|
|
994
|
+
ui_cpnt_masking_base_01: string;
|
|
995
|
+
ui_cpnt_masking_icon_01: string;
|
|
996
|
+
ui_cpnt_list_base_area_transparent_seller: string;
|
|
997
|
+
ui_57: string;
|
|
998
|
+
ui_58: string;
|
|
999
|
+
ui_cpnt_divider_white_opacity00: string;
|
|
1000
|
+
ui_cpnt_textfield_text_colortheme_transparent_enabled: string;
|
|
1001
|
+
ui_cpnt_textfield_text_colortheme_transparent_hint: string;
|
|
1002
|
+
ui_cpnt_textfield_text_colortheme_transparent_disabled: string;
|
|
1003
|
+
ui_cpnt_textfield_icon_colortheme_transparent_default: string;
|
|
1004
|
+
ui_cpnt_textfield_icon_colortheme_transparent_disabled: string;
|
|
1005
|
+
ui_cpnt_textfield_border_colortheme_transparent_normal: string;
|
|
1006
|
+
ui_cpnt_textfield_border_colortheme_transparent_focus: string;
|
|
1007
|
+
ui_cpnt_textfield_border_colortheme_transparent_error: string;
|
|
1008
|
+
ui_cpnt_textfield_text_colortheme_transparent_error: string;
|
|
1009
|
+
ui_cpnt_textfield_base_colortheme_transparent_disabled: string;
|
|
1010
|
+
ui_cpnt_textfield_base_colortheme_transparent_normal: string;
|
|
1011
|
+
ui_cpnt_textfield_text_colortheme_transparent_readonly: string;
|
|
1012
|
+
ui_cpnt_textfield_icon_colortheme_transparent_readonly: string;
|
|
1013
|
+
ui_cpnt_textfield_base_colortheme_transparent_readonly: string;
|
|
1014
|
+
ui_cpnt_textfield_border_colortheme_transparent_disabled: string;
|
|
1015
|
+
ui_cpnt_textfield_border_colortheme_transparent_readonly: string;
|
|
980
1016
|
};
|
|
981
1017
|
};
|
|
982
1018
|
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
7
|
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
9
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
12
|
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
14
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;
|
|
@@ -548,4 +548,26 @@ export interface UITheme {
|
|
|
548
548
|
ui_55: string;
|
|
549
549
|
ui_56: string;
|
|
550
550
|
ui_cpnt_sheet_base_04: string;
|
|
551
|
+
ui_cpnt_masking_base_01: string;
|
|
552
|
+
ui_cpnt_masking_icon_01: string;
|
|
553
|
+
ui_cpnt_list_base_area_transparent_seller: string;
|
|
554
|
+
ui_57: string;
|
|
555
|
+
ui_58: string;
|
|
556
|
+
ui_cpnt_divider_white_opacity00: string;
|
|
557
|
+
ui_cpnt_textfield_text_colortheme_transparent_enabled: string;
|
|
558
|
+
ui_cpnt_textfield_text_colortheme_transparent_hint: string;
|
|
559
|
+
ui_cpnt_textfield_text_colortheme_transparent_disabled: string;
|
|
560
|
+
ui_cpnt_textfield_icon_colortheme_transparent_default: string;
|
|
561
|
+
ui_cpnt_textfield_icon_colortheme_transparent_disabled: string;
|
|
562
|
+
ui_cpnt_textfield_border_colortheme_transparent_normal: string;
|
|
563
|
+
ui_cpnt_textfield_border_colortheme_transparent_focus: string;
|
|
564
|
+
ui_cpnt_textfield_border_colortheme_transparent_error: string;
|
|
565
|
+
ui_cpnt_textfield_text_colortheme_transparent_error: string;
|
|
566
|
+
ui_cpnt_textfield_base_colortheme_transparent_disabled: string;
|
|
567
|
+
ui_cpnt_textfield_base_colortheme_transparent_normal: string;
|
|
568
|
+
ui_cpnt_textfield_text_colortheme_transparent_readonly: string;
|
|
569
|
+
ui_cpnt_textfield_icon_colortheme_transparent_readonly: string;
|
|
570
|
+
ui_cpnt_textfield_base_colortheme_transparent_readonly: string;
|
|
571
|
+
ui_cpnt_textfield_border_colortheme_transparent_disabled: string;
|
|
572
|
+
ui_cpnt_textfield_border_colortheme_transparent_readonly: string;
|
|
551
573
|
}
|
|
@@ -16,7 +16,7 @@ export declare type TextFieldBaseProps = {
|
|
|
16
16
|
autoMaxRows?: number;
|
|
17
17
|
inputType?: string;
|
|
18
18
|
state?: 'normal' | 'read_only' | 'disabled';
|
|
19
|
-
colorTheme?: 'none' | 'dark';
|
|
19
|
+
colorTheme?: 'none' | 'dark' | 'transparent';
|
|
20
20
|
min?: number;
|
|
21
21
|
max?: number;
|
|
22
22
|
maxLength?: number;
|
|
@@ -209,7 +209,8 @@ var read_only = (0, styled_components_1.css)(templateObject_2 || (templateObject
|
|
|
209
209
|
return colorTheme &&
|
|
210
210
|
{
|
|
211
211
|
none: theme.ui_cpnt_textfield_text_disabled,
|
|
212
|
-
dark: theme.ui_cpnt_textfield_text_darktheme_disabled
|
|
212
|
+
dark: theme.ui_cpnt_textfield_text_darktheme_disabled,
|
|
213
|
+
transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_readonly
|
|
213
214
|
}[colorTheme];
|
|
214
215
|
});
|
|
215
216
|
var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n pointer-events: none;\n"], ["\n color: ", ";\n pointer-events: none;\n"])), function (_a) {
|
|
@@ -217,7 +218,8 @@ var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_
|
|
|
217
218
|
return colorTheme &&
|
|
218
219
|
{
|
|
219
220
|
none: theme.ui_cpnt_textfield_text_disabled,
|
|
220
|
-
dark: theme.ui_cpnt_textfield_text_darktheme_disabled
|
|
221
|
+
dark: theme.ui_cpnt_textfield_text_darktheme_disabled,
|
|
222
|
+
transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_disabled
|
|
221
223
|
}[colorTheme];
|
|
222
224
|
});
|
|
223
225
|
var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n cursor: ", ";\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"], ["\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n color: ", ";\n cursor: ", ";\n font-size: ", ";\n font-weight: ", ";\n height: 100%;\n line-height: ", ";\n outline: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n &::placeholder {\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
|
|
@@ -225,7 +227,8 @@ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObjec
|
|
|
225
227
|
return colorTheme &&
|
|
226
228
|
{
|
|
227
229
|
none: theme.ui_cpnt_textfield_text_typed,
|
|
228
|
-
dark: theme.ui_cpnt_textfield_text_darktheme_enabled
|
|
230
|
+
dark: theme.ui_cpnt_textfield_text_darktheme_enabled,
|
|
231
|
+
transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_enabled
|
|
229
232
|
}[colorTheme];
|
|
230
233
|
}, function (_a) {
|
|
231
234
|
var state = _a.state;
|
|
@@ -244,7 +247,8 @@ var basicStyle = (0, styled_components_1.css)(templateObject_4 || (templateObjec
|
|
|
244
247
|
return colorTheme &&
|
|
245
248
|
{
|
|
246
249
|
none: theme.ui_cpnt_textfield_text_hint,
|
|
247
|
-
dark: theme.ui_cpnt_textfield_text_darktheme_hint
|
|
250
|
+
dark: theme.ui_cpnt_textfield_text_darktheme_hint,
|
|
251
|
+
transparent: theme.ui_cpnt_textfield_text_colortheme_transparent_hint
|
|
248
252
|
}[colorTheme];
|
|
249
253
|
}, function (_a) {
|
|
250
254
|
var textSize = _a.textSize;
|
|
@@ -8,7 +8,7 @@ declare type Props = {
|
|
|
8
8
|
hoverMode?: 'none' | 'use';
|
|
9
9
|
contextMenuOptionArray?: PDSValueOption[];
|
|
10
10
|
contextMenuState?: 'normal' | 'disabled';
|
|
11
|
-
colorTheme?: 'seller' | 'subscriber';
|
|
11
|
+
colorTheme?: 'seller' | 'subscriber' | 'seller_transparent' | 'subscriber_transparent';
|
|
12
12
|
onClickContextMenuItem?: (option: PDSValueOption) => void;
|
|
13
13
|
};
|
|
14
14
|
declare function BasicChatListItem({ titleText, contentText, leftImageMode, imageSrc, hoverMode, contextMenuOptionArray, onClickContextMenuItem, contextMenuState, colorTheme }: Props): JSX.Element;
|
|
@@ -36,11 +36,15 @@ var TextLabel_1 = require("../TextLabel");
|
|
|
36
36
|
var Popup_1 = require("./Popup");
|
|
37
37
|
var titleTextColors = {
|
|
38
38
|
seller: 'usrTextBrandPrimary',
|
|
39
|
-
subscriber: 'sysTextSecondary'
|
|
39
|
+
subscriber: 'sysTextSecondary',
|
|
40
|
+
seller_transparent: 'usrTextBrandPrimary',
|
|
41
|
+
subscriber_transparent: 'sysTextWhite'
|
|
40
42
|
};
|
|
41
43
|
var backgroundColorTheme = {
|
|
42
44
|
seller: 'ui_cpnt_list_base_area_seller',
|
|
43
|
-
subscriber: 'ui_cpnt_list_base_area'
|
|
45
|
+
subscriber: 'ui_cpnt_list_base_area',
|
|
46
|
+
seller_transparent: 'ui_cpnt_list_base_area_transparent_seller',
|
|
47
|
+
subscriber_transparent: 'ui_cpnt_list_base_area_transparent'
|
|
44
48
|
};
|
|
45
49
|
function BasicChatListItem(_a) {
|
|
46
50
|
var titleText = _a.titleText, contentText = _a.contentText, _b = _a.leftImageMode, leftImageMode = _b === void 0 ? 'none' : _b, imageSrc = _a.imageSrc, _c = _a.hoverMode, hoverMode = _c === void 0 ? 'use' : _c, contextMenuOptionArray = _a.contextMenuOptionArray, onClickContextMenuItem = _a.onClickContextMenuItem, _d = _a.contextMenuState, contextMenuState = _d === void 0 ? 'normal' : _d, _e = _a.colorTheme, colorTheme = _e === void 0 ? 'subscriber' : _e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Props as ChatListProps } from './ChatList';
|
|
3
|
-
declare const Body: React.ForwardRefExoticComponent<Pick<ChatListProps, "children" | "scrollVisibleType" | "bodyMBtnText" | "bodySpacingMode"> & {
|
|
3
|
+
declare const Body: React.ForwardRefExoticComponent<Pick<ChatListProps, "children" | "scrollVisibleType" | "bodyMBtnText" | "bodySpacingMode" | "bodyChildren"> & {
|
|
4
4
|
isSubmitted: boolean;
|
|
5
5
|
callBackAfterScrollToBottom: () => void;
|
|
6
6
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -31,7 +31,7 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
31
31
|
var MainButton_1 = require("../MainButton");
|
|
32
32
|
var useAutoScrollToBottom_1 = __importDefault(require("./useAutoScrollToBottom"));
|
|
33
33
|
var Body = react_1.default.forwardRef(function (_a, ref) {
|
|
34
|
-
var scrollVisibleType = _a.scrollVisibleType, children = _a.children, isSubmitted = _a.isSubmitted, bodyMBtnText = _a.bodyMBtnText, bodySpacingMode = _a.bodySpacingMode, callBackAfterScrollToBottom = _a.callBackAfterScrollToBottom;
|
|
34
|
+
var bodyChildren = _a.bodyChildren, scrollVisibleType = _a.scrollVisibleType, children = _a.children, isSubmitted = _a.isSubmitted, bodyMBtnText = _a.bodyMBtnText, bodySpacingMode = _a.bodySpacingMode, callBackAfterScrollToBottom = _a.callBackAfterScrollToBottom;
|
|
35
35
|
var _b = (0, react_1.useState)(false), isButtonShow = _b[0], setIsButtonShow = _b[1];
|
|
36
36
|
var _c = (0, useAutoScrollToBottom_1.default)(), triggerScrollToBottom = _c.triggerScrollToBottom, EndOfList = _c.EndOfList;
|
|
37
37
|
/**
|
|
@@ -73,6 +73,7 @@ var Body = react_1.default.forwardRef(function (_a, ref) {
|
|
|
73
73
|
react_1.default.createElement(S_ChatMessageBox, { id: "chatMessageBox", onScroll: handleScroll, scrollVisibleType: scrollVisibleType, ref: ref },
|
|
74
74
|
children,
|
|
75
75
|
react_1.default.createElement(EndOfList, null)),
|
|
76
|
+
bodyChildren,
|
|
76
77
|
isButtonShow && (react_1.default.createElement(S_BottomButtonWrapper, null,
|
|
77
78
|
react_1.default.createElement(MainButton_1.MainButton, { text: bodyMBtnText, size: "small", onClick: handleClickMBtn })))));
|
|
78
79
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
|
|
3
3
|
export declare type Props = {
|
|
4
|
-
|
|
4
|
+
colorTheme?: 'solid' | 'translucent' | 'transparent';
|
|
5
5
|
headerMode?: 'none' | 'use';
|
|
6
6
|
titleText?: PDSTextType;
|
|
7
7
|
descText?: PDSTextType;
|
|
@@ -11,6 +11,7 @@ export declare type Props = {
|
|
|
11
11
|
headerIBtn1IconName?: FillIconNameKeys | LineIconNameKeys;
|
|
12
12
|
headerIBtn1IconFillType?: 'line' | 'fill';
|
|
13
13
|
children?: React.ReactNode;
|
|
14
|
+
bodyChildren?: React.ReactNode;
|
|
14
15
|
textFieldState?: 'normal' | 'read_only' | 'disabled';
|
|
15
16
|
textFieldHintText?: PDSTextType;
|
|
16
17
|
textFieldDefaultText?: PDSTextType;
|
|
@@ -47,10 +47,10 @@ var Header_1 = __importDefault(require("./Header"));
|
|
|
47
47
|
var baseBackgroundColors = {
|
|
48
48
|
solid: 'ui_cpnt_list_base_area_solid',
|
|
49
49
|
translucent: 'ui_cpnt_list_base_area_translucent',
|
|
50
|
-
transparent: '
|
|
50
|
+
transparent: 'ui_cpnt_list_base_area_transparent'
|
|
51
51
|
};
|
|
52
52
|
var ChatList = react_1.default.forwardRef(function (_a, ref) {
|
|
53
|
-
var _b = _a.
|
|
53
|
+
var _b = _a.colorTheme, colorTheme = _b === void 0 ? 'solid' : _b, _c = _a.headerMode, headerMode = _c === void 0 ? 'use' : _c, titleText = _a.titleText, descText = _a.descText, captionText = _a.captionText, _d = _a.titleStyleTheme, titleStyleTheme = _d === void 0 ? 'subTitleBold' : _d, _e = _a.headerDisplayType, headerDisplayType = _e === void 0 ? 'none' : _e, _f = _a.headerIBtn1IconName, headerIBtn1IconName = _f === void 0 ? 'ic_xmark' : _f, _g = _a.headerIBtn1IconFillType, headerIBtn1IconFillType = _g === void 0 ? 'line' : _g, children = _a.children, bodyChildren = _a.bodyChildren, _h = _a.textFieldState, textFieldState = _h === void 0 ? 'normal' : _h, textFieldHintText = _a.textFieldHintText, textFieldDefaultText = _a.textFieldDefaultText, textFieldMaxLength = _a.textFieldMaxLength, _j = _a.scrollVisibleType, scrollVisibleType = _j === void 0 ? 'moving' : _j, footerChildren = _a.footerChildren, _k = _a.submitIBtnState, submitIBtnState = _k === void 0 ? 'normal' : _k, bodyMBtnText = _a.bodyMBtnText, _l = _a.bodySpacingMode, bodySpacingMode = _l === void 0 ? 'none' : _l, onSubmit = _a.onSubmit, onClickHeaderIBtn1 = _a.onClickHeaderIBtn1, submitIBtnIconName = _a.submitIBtnIconName, submitIBtnIconFillType = _a.submitIBtnIconFillType, _m = _a.footerIBtn1State, footerIBtn1State = _m === void 0 ? 'normal' : _m, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, _o = _a.footerIBtn1Type, footerIBtn1Type = _o === void 0 ? 'button' : _o, onClickFooterIBtn1 = _a.onClickFooterIBtn1, _p = _a.footerIBtn2State, footerIBtn2State = _p === void 0 ? 'normal' : _p, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, _q = _a.footerIBtn2Type, footerIBtn2Type = _q === void 0 ? 'button' : _q, onClickFooterIBtn2 = _a.onClickFooterIBtn2, _r = _a.footerIBtn3State, footerIBtn3State = _r === void 0 ? 'normal' : _r, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, _s = _a.footerIBtn3Type, footerIBtn3Type = _s === void 0 ? 'button' : _s, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
54
54
|
var methods = (0, react_hook_form_1.useForm)({
|
|
55
55
|
mode: 'onChange',
|
|
56
56
|
defaultValues: {
|
|
@@ -85,16 +85,16 @@ var ChatList = react_1.default.forwardRef(function (_a, ref) {
|
|
|
85
85
|
var callBackAfterScrollToBottom = function () {
|
|
86
86
|
reset();
|
|
87
87
|
};
|
|
88
|
-
return (react_1.default.createElement(S_ChatList, { backgroundColor: baseBackgroundColors[
|
|
88
|
+
return (react_1.default.createElement(S_ChatList, { backgroundColor: baseBackgroundColors[colorTheme], id: "chatList" },
|
|
89
89
|
headerMode === 'use' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
90
|
-
react_1.default.createElement(Header_1.default, {
|
|
91
|
-
react_1.default.createElement(hybrid_1.Divider,
|
|
92
|
-
react_1.default.createElement(Body_1.default, { scrollVisibleType: scrollVisibleType, isSubmitted: isSubmitSuccessful, bodyMBtnText: bodyMBtnText, bodySpacingMode: bodySpacingMode, callBackAfterScrollToBottom: callBackAfterScrollToBottom, ref: ref }, children),
|
|
93
|
-
react_1.default.createElement(hybrid_1.Divider,
|
|
90
|
+
react_1.default.createElement(Header_1.default, { colorTheme: colorTheme, titleText: titleText, descText: descText, captionText: captionText, titleStyleTheme: titleStyleTheme, headerDisplayType: headerDisplayType, headerIBtn1IconName: headerIBtn1IconName, headerIBtn1IconFillType: headerIBtn1IconFillType, onClickHeaderIBtn1: onClickHeaderIBtn1 }),
|
|
91
|
+
react_1.default.createElement(hybrid_1.Divider, { colorTheme: colorTheme === 'transparent' ? 'divider1' : 'none' }))),
|
|
92
|
+
react_1.default.createElement(Body_1.default, { scrollVisibleType: scrollVisibleType, isSubmitted: isSubmitSuccessful, bodyMBtnText: bodyMBtnText, bodySpacingMode: bodySpacingMode, callBackAfterScrollToBottom: callBackAfterScrollToBottom, bodyChildren: bodyChildren, ref: ref }, children),
|
|
93
|
+
react_1.default.createElement(hybrid_1.Divider, { colorTheme: colorTheme === 'transparent' ? 'divider1' : 'none' }),
|
|
94
94
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" }),
|
|
95
95
|
react_1.default.createElement(react_hook_form_1.FormProvider, __assign({}, methods),
|
|
96
96
|
react_1.default.createElement("form", { onSubmit: handleSubmit(handleSubmitChat) },
|
|
97
|
-
react_1.default.createElement(Footer_1.default, { textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, footerChildren: footerChildren, isSubmitBtnActive: isSubmitButtonActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }))),
|
|
97
|
+
react_1.default.createElement(Footer_1.default, { colorTheme: colorTheme, textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, footerChildren: footerChildren, isSubmitBtnActive: isSubmitButtonActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }))),
|
|
98
98
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_d" })));
|
|
99
99
|
});
|
|
100
100
|
var S_ChatList = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n"], ["\n background-color: ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n"])), function (_a) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys } from '../../../common';
|
|
3
3
|
import type { Props as ChatListProps } from './ChatList';
|
|
4
|
-
declare type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept'> & {
|
|
4
|
+
declare type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept' | 'colorTheme'> & {
|
|
5
5
|
isSubmitBtnActive?: boolean;
|
|
6
6
|
submitIBtnIconName?: FillIconNameKeys | LineIconNameKeys;
|
|
7
7
|
submitIBtnIconFillType?: 'fill' | 'line';
|
|
@@ -21,5 +21,5 @@ declare type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHint
|
|
|
21
21
|
footerIBtn3Type?: 'button' | 'upload';
|
|
22
22
|
onClickFooterIBtn3?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
23
23
|
};
|
|
24
|
-
declare function ChatTextField({ textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, isSubmitBtnActive, submitIBtnIconName, submitIBtnIconFillType, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
24
|
+
declare function ChatTextField({ colorTheme, textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, isSubmitBtnActive, submitIBtnIconName, submitIBtnIconFillType, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
25
25
|
export default ChatTextField;
|
|
@@ -13,7 +13,7 @@ var IconButton_1 = require("../IconButton");
|
|
|
13
13
|
var TextField_1 = require("../TextField");
|
|
14
14
|
var UploadIconButton_1 = require("../UploadIconButton");
|
|
15
15
|
function ChatTextField(_a) {
|
|
16
|
-
var textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, isSubmitBtnActive = _a.isSubmitBtnActive, _b = _a.submitIBtnIconName, submitIBtnIconName = _b === void 0 ? 'ic_paper_plane' : _b, _c = _a.submitIBtnIconFillType, submitIBtnIconFillType = _c === void 0 ? 'fill' : _c, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
16
|
+
var colorTheme = _a.colorTheme, textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, isSubmitBtnActive = _a.isSubmitBtnActive, _b = _a.submitIBtnIconName, submitIBtnIconName = _b === void 0 ? 'ic_paper_plane' : _b, _c = _a.submitIBtnIconFillType, submitIBtnIconFillType = _c === void 0 ? 'fill' : _c, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
17
17
|
var chatValidation = {
|
|
18
18
|
validate: function (value) {
|
|
19
19
|
if (!value)
|
|
@@ -34,7 +34,7 @@ function ChatTextField(_a) {
|
|
|
34
34
|
? 'ui_cpnt_button_icon_primary'
|
|
35
35
|
: 'ui_cpnt_button_icon_disabled', iconFillType: footerIBtn2IconFillType, iconSize: 24, state: footerIBtn2State, onClick: onClickFooterIBtn2 })))),
|
|
36
36
|
react_1.default.createElement(S_TextFieldWrapper, null,
|
|
37
|
-
react_1.default.createElement(TextField_1.TextField, { name: "chat", responsiveMode: "use", textLineType: "single", inputType: "text", hintText: textFieldHintText, defaultText: textFieldDefaultText, validation: chatValidation, maxLength: textFieldMaxLength, enterSubmitMode: "use", validationPoint: "onChange", state: textFieldState, autoComplete: "off" })),
|
|
37
|
+
react_1.default.createElement(TextField_1.TextField, { name: "chat", responsiveMode: "use", textLineType: "single", inputType: "text", hintText: textFieldHintText, defaultText: textFieldDefaultText, validation: chatValidation, maxLength: textFieldMaxLength, colorTheme: colorTheme === 'transparent' ? 'transparent' : 'none', enterSubmitMode: "use", validationPoint: "onChange", state: textFieldState, autoComplete: "off" })),
|
|
38
38
|
footerIBtn1IconName && (react_1.default.createElement(react_1.default.Fragment, null, footerIBtn1Type === 'button' ? (react_1.default.createElement(IconButton_1.IconButton, { iconName: footerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: footerIBtn1State === 'normal'
|
|
39
39
|
? 'ui_cpnt_button_icon_primary'
|
|
40
40
|
: 'ui_cpnt_button_icon_disabled', iconFillType: footerIBtn1IconFillType, iconSize: 24, state: footerIBtn1State, onClick: onClickFooterIBtn1 })) : (react_1.default.createElement(UploadIconButton_1.UploadIconButton, { iconName: footerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: footerIBtn1State === 'normal'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys } from '../../../common';
|
|
3
3
|
import type { Props as ChatListProps } from './ChatList';
|
|
4
|
-
declare type Props = Pick<ChatListProps, 'footerChildren' | 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept'> & {
|
|
4
|
+
declare type Props = Pick<ChatListProps, 'footerChildren' | 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept' | 'colorTheme'> & {
|
|
5
5
|
isSubmitBtnActive: boolean;
|
|
6
6
|
submitIBtnIconName?: FillIconNameKeys | LineIconNameKeys;
|
|
7
7
|
submitIBtnIconFillType?: 'fill' | 'line';
|
|
@@ -21,5 +21,5 @@ declare type Props = Pick<ChatListProps, 'footerChildren' | 'textFieldDefaultTex
|
|
|
21
21
|
footerIBtn3Type?: 'button' | 'upload';
|
|
22
22
|
onClickFooterIBtn3?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
23
23
|
};
|
|
24
|
-
declare function Footer({ footerChildren, textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, submitIBtnIconName, submitIBtnIconFillType, isSubmitBtnActive, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
24
|
+
declare function Footer({ colorTheme, footerChildren, textFieldDefaultText, textFieldHintText, textFieldState, textFieldMaxLength, submitIBtnIconName, submitIBtnIconFillType, isSubmitBtnActive, footerIBtn1State, footerIBtn1IconName, footerIBtn1IconFillType, footerIBtn1Type, onClickFooterIBtn1, footerIBtn2State, footerIBtn2IconName, footerIBtn2IconFillType, footerIBtn2Type, onClickFooterIBtn2, footerIBtn3State, footerIBtn3IconName, footerIBtn3IconFillType, footerIBtn3Type, footerIBtn3Accept, onClickFooterIBtn3 }: Props): JSX.Element;
|
|
25
25
|
export default Footer;
|
|
@@ -11,9 +11,9 @@ var react_1 = __importDefault(require("react"));
|
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var ChatTextField_1 = __importDefault(require("./ChatTextField"));
|
|
13
13
|
function Footer(_a) {
|
|
14
|
-
var footerChildren = _a.footerChildren, textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, submitIBtnIconName = _a.submitIBtnIconName, submitIBtnIconFillType = _a.submitIBtnIconFillType, isSubmitBtnActive = _a.isSubmitBtnActive, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
14
|
+
var colorTheme = _a.colorTheme, footerChildren = _a.footerChildren, textFieldDefaultText = _a.textFieldDefaultText, textFieldHintText = _a.textFieldHintText, textFieldState = _a.textFieldState, textFieldMaxLength = _a.textFieldMaxLength, submitIBtnIconName = _a.submitIBtnIconName, submitIBtnIconFillType = _a.submitIBtnIconFillType, isSubmitBtnActive = _a.isSubmitBtnActive, footerIBtn1State = _a.footerIBtn1State, footerIBtn1IconName = _a.footerIBtn1IconName, footerIBtn1IconFillType = _a.footerIBtn1IconFillType, footerIBtn1Type = _a.footerIBtn1Type, onClickFooterIBtn1 = _a.onClickFooterIBtn1, footerIBtn2State = _a.footerIBtn2State, footerIBtn2IconName = _a.footerIBtn2IconName, footerIBtn2IconFillType = _a.footerIBtn2IconFillType, footerIBtn2Type = _a.footerIBtn2Type, onClickFooterIBtn2 = _a.onClickFooterIBtn2, footerIBtn3State = _a.footerIBtn3State, footerIBtn3IconName = _a.footerIBtn3IconName, footerIBtn3IconFillType = _a.footerIBtn3IconFillType, footerIBtn3Type = _a.footerIBtn3Type, footerIBtn3Accept = _a.footerIBtn3Accept, onClickFooterIBtn3 = _a.onClickFooterIBtn3;
|
|
15
15
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
16
|
-
react_1.default.createElement(ChatTextField_1.default, { textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, isSubmitBtnActive: isSubmitBtnActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }),
|
|
16
|
+
react_1.default.createElement(ChatTextField_1.default, { colorTheme: colorTheme, textFieldDefaultText: textFieldDefaultText, textFieldHintText: textFieldHintText, textFieldState: textFieldState, textFieldMaxLength: textFieldMaxLength, isSubmitBtnActive: isSubmitBtnActive, submitIBtnIconName: submitIBtnIconName, submitIBtnIconFillType: submitIBtnIconFillType, footerIBtn1State: footerIBtn1State, footerIBtn1IconName: footerIBtn1IconName, footerIBtn1IconFillType: footerIBtn1IconFillType, footerIBtn1Type: footerIBtn1Type, onClickFooterIBtn1: onClickFooterIBtn1, footerIBtn2State: footerIBtn2State, footerIBtn2IconName: footerIBtn2IconName, footerIBtn2IconFillType: footerIBtn2IconFillType, footerIBtn2Type: footerIBtn2Type, onClickFooterIBtn2: onClickFooterIBtn2, footerIBtn3State: footerIBtn3State, footerIBtn3IconName: footerIBtn3IconName, footerIBtn3IconFillType: footerIBtn3IconFillType, footerIBtn3Type: footerIBtn3Type, footerIBtn3Accept: footerIBtn3Accept, onClickFooterIBtn3: onClickFooterIBtn3 }),
|
|
17
17
|
react_1.default.createElement(S_FooterChildrenWrapper, null, footerChildren)));
|
|
18
18
|
}
|
|
19
19
|
var S_FooterChildrenWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Props as ChatListProps } from './ChatList';
|
|
3
|
-
declare type Props = Required<Pick<ChatListProps, '
|
|
4
|
-
declare function Header({
|
|
3
|
+
declare type Props = Required<Pick<ChatListProps, 'colorTheme'>> & Pick<ChatListProps, 'titleText' | 'descText' | 'captionText' | 'titleStyleTheme' | 'headerDisplayType' | 'headerIBtn1IconName' | 'headerIBtn1IconFillType' | 'onClickHeaderIBtn1'>;
|
|
4
|
+
declare function Header({ colorTheme, titleText, descText, captionText, titleStyleTheme, headerDisplayType, headerIBtn1IconName, headerIBtn1IconFillType, onClickHeaderIBtn1 }: Props): JSX.Element;
|
|
5
5
|
export default Header;
|
|
@@ -23,17 +23,17 @@ var iconColors = {
|
|
|
23
23
|
transparent: 'ui_cpnt_button_icon_white'
|
|
24
24
|
};
|
|
25
25
|
function Header(_a) {
|
|
26
|
-
var
|
|
26
|
+
var colorTheme = _a.colorTheme, titleText = _a.titleText, descText = _a.descText, captionText = _a.captionText, titleStyleTheme = _a.titleStyleTheme, headerDisplayType = _a.headerDisplayType, headerIBtn1IconName = _a.headerIBtn1IconName, headerIBtn1IconFillType = _a.headerIBtn1IconFillType, onClickHeaderIBtn1 = _a.onClickHeaderIBtn1;
|
|
27
27
|
return (react_1.default.createElement(S_HeaderContentWrapper, null,
|
|
28
28
|
react_1.default.createElement(S_HeaderLeftBox, null,
|
|
29
|
-
titleText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: titleStyleTheme, colorTheme: titleTextColors[
|
|
29
|
+
titleText && (react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: titleStyleTheme, colorTheme: titleTextColors[colorTheme], wordBreak: "break_all" })),
|
|
30
30
|
descText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
31
31
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_c" }),
|
|
32
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, styleTheme: "body2Regular", colorTheme:
|
|
32
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: descText, styleTheme: "body2Regular", colorTheme: colorTheme === 'solid' ? 'sysTextSecondary' : 'sysTextWhite', colorOverride: colorTheme === 'translucent' ? 'ui_cpnt_list_text_caption_02' : undefined, wordBreak: "break_all" }))),
|
|
33
33
|
captionText && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
34
34
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a" }),
|
|
35
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, styleTheme: "caption1Regular", colorTheme:
|
|
36
|
-
headerDisplayType === 'ibtn1' && headerIBtn1IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconName: headerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: iconColors[
|
|
35
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, styleTheme: "caption1Regular", colorTheme: colorTheme === 'solid' ? 'sysTextTertiary' : 'sysTextWhite', colorOverride: colorTheme === 'translucent' ? 'ui_cpnt_list_text_caption_03' : undefined, wordBreak: "break_all" })))),
|
|
36
|
+
headerDisplayType === 'ibtn1' && headerIBtn1IconName && (react_1.default.createElement(IconButton_1.IconButton, { iconName: headerIBtn1IconName, baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: iconColors[colorTheme], iconSize: 24, iconFillType: headerIBtn1IconFillType, onClick: onClickHeaderIBtn1 }))));
|
|
37
37
|
}
|
|
38
38
|
var S_HeaderContentWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"], ["\n align-items: center;\n display: flex;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"])), function (_a) {
|
|
39
39
|
var theme = _a.theme;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
|
|
3
3
|
export declare type FloatingActionButtonProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
@@ -9,8 +9,8 @@ export declare type FloatingActionButtonProps = {
|
|
|
9
9
|
iconName?: FillIconNameKeys | LineIconNameKeys;
|
|
10
10
|
colorTheme?: 'none' | 'theme1' | 'theme2' | 'theme3';
|
|
11
11
|
state?: 'normal' | 'disabled';
|
|
12
|
-
onClick?: (
|
|
13
|
-
onMouseDown?: (
|
|
12
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => any;
|
|
13
|
+
onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => any;
|
|
14
14
|
};
|
|
15
15
|
declare function FloatingActionButton({ text, displayType, size, fontWeight, iconFillType, iconName, colorTheme, state, onClick, onMouseDown }: FloatingActionButtonProps): JSX.Element;
|
|
16
16
|
export default FloatingActionButton;
|