pds-dev-kit-web 1.4.33 → 1.4.36
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/index.d.ts +4 -4
- package/dist/index.js +5 -3
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +2 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
- package/dist/src/common/styles/colorSet/UIColor.json +14 -1
- package/dist/src/common/styles/colorSet/index.d.ts +77 -62
- package/dist/src/common/styles/colorSet/index.js +4 -4
- package/dist/src/common/styles/colorSet/ui-type.d.ts +13 -0
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubble.d.ts +8 -0
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubble.js +76 -0
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +17 -0
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +160 -0
- package/dist/src/desktop/components/ChatBubbleListItem/Popup.d.ts +19 -0
- package/dist/src/desktop/components/ChatBubbleListItem/Popup.js +238 -0
- package/dist/src/desktop/components/ChatBubbleListItem/index.d.ts +1 -0
- package/dist/src/desktop/components/ChatBubbleListItem/index.js +8 -0
- package/dist/src/desktop/components/ChatList/Body.d.ts +2 -2
- package/dist/src/desktop/components/ChatList/Body.js +18 -8
- package/dist/src/desktop/components/ChatList/ChatList.d.ts +22 -1
- package/dist/src/desktop/components/ChatList/ChatList.js +5 -5
- package/dist/src/desktop/components/ChatList/ChatTextField.d.ts +22 -4
- package/dist/src/desktop/components/ChatList/ChatTextField.js +18 -2
- package/dist/src/desktop/components/ChatList/Footer.d.ts +21 -3
- 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 +6 -3
- package/dist/src/desktop/components/Dropdown/Dropdown.js +1 -1
- package/dist/src/desktop/components/index.d.ts +2 -1
- package/dist/src/desktop/components/index.js +3 -1
- package/dist/src/desktop/index.d.ts +2 -2
- package/dist/src/desktop/index.js +3 -2
- package/dist/src/desktop/panels/DesktopBasicModal/DesktopBasicModal.js +7 -4
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubble.d.ts +8 -0
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubble.js +76 -0
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +17 -0
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +160 -0
- package/dist/src/mobile/components/ChatBubbleListItem/Popup.d.ts +19 -0
- package/dist/src/mobile/components/ChatBubbleListItem/Popup.js +238 -0
- package/dist/src/mobile/components/ChatBubbleListItem/index.d.ts +1 -0
- package/dist/src/mobile/components/ChatBubbleListItem/index.js +8 -0
- package/dist/src/mobile/components/ChatList/Body.d.ts +2 -2
- package/dist/src/mobile/components/ChatList/Body.js +18 -8
- package/dist/src/mobile/components/ChatList/ChatList.d.ts +22 -1
- package/dist/src/mobile/components/ChatList/ChatList.js +5 -5
- package/dist/src/mobile/components/ChatList/ChatTextField.d.ts +22 -4
- package/dist/src/mobile/components/ChatList/ChatTextField.js +18 -2
- package/dist/src/mobile/components/ChatList/Footer.d.ts +21 -3
- 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 +6 -3
- package/dist/src/mobile/components/Dropdown/Dropdown.js +1 -1
- package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.d.ts +2 -1
- package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.js +22 -12
- package/dist/src/mobile/components/index.d.ts +2 -1
- package/dist/src/mobile/components/index.js +3 -1
- package/dist/src/mobile/index.d.ts +2 -2
- package/dist/src/mobile/index.js +2 -1
- package/package.json +1 -1
- package/release-note.md +14 -3
package/dist/index.d.ts
CHANGED
|
@@ -5,14 +5,14 @@ export { theme };
|
|
|
5
5
|
export { Form };
|
|
6
6
|
import { Divider, Icon, ImageView, Spacing, Switch } from './src/hybrid';
|
|
7
7
|
export { Divider, Icon, ImageView, Spacing, Switch };
|
|
8
|
-
import { LayoutWF, WFContainersBox, LayoutWS, WSGlobalMenuContainer, WSContainersBox, LayoutWT, WTGlobalMenuContainer, WTContainersBox, D_AdminList, D_AdminListHeader, D_AdminListItem, D_BasicChatListItem, D_BasicFormGroup, D_BasicList, D_BasicListItem, D_BlogTextField, D_BodyTextGroup, D_Card, D_CardList, D_ChatList, D_Checkbox, D_Chip, D_ContextMenu, D_ContextMenuItem, D_DesktopAlertDialog, D_DesktopBasicModal, D_DesktopHeaderBar, D_DesktopHeadlessModal, D_DesktopTabBar, D_Dropdown, D_DynamicDesktopNavBar, D_DynamicDesktopNavBarTemplates, D_EditApplyTextField, D_FilterBar, D_FloatingActionButton, D_Hero, D_HorizontalFormGroup, D_IconButton, D_ImageSlide, D_MainButton, D_PageTitleTextGroup, D_Radio, D_ReactionButton, D_Select, D_StatusBlock, D_TextButton, D_TextField, D_TextLabel, D_UploadIconButton, D_UploadMainButton, D_UploadTextButton, D_UserDesktopNavBar, D_UserDesktopTabBar, D_UserDesktopSideTab } from './src/desktop';
|
|
8
|
+
import { LayoutWF, WFContainersBox, LayoutWS, WSGlobalMenuContainer, WSContainersBox, LayoutWT, WTGlobalMenuContainer, WTContainersBox, D_AdminList, D_AdminListHeader, D_AdminListItem, D_BasicChatListItem, D_BasicFormGroup, D_BasicList, D_BasicListItem, D_BlogTextField, D_BodyTextGroup, D_Card, D_CardList, D_ChatBubbleListItem, D_ChatList, D_Checkbox, D_Chip, D_ContextMenu, D_ContextMenuItem, D_DesktopAlertDialog, D_DesktopBasicModal, D_DesktopHeaderBar, D_DesktopHeadlessModal, D_DesktopTabBar, D_Dropdown, D_DynamicDesktopNavBar, D_DynamicDesktopNavBarTemplates, D_EditApplyTextField, D_FilterBar, D_FloatingActionButton, D_Hero, D_HorizontalFormGroup, D_IconButton, D_ImageSlide, D_MainButton, D_PageTitleTextGroup, D_Radio, D_ReactionButton, D_Select, D_StatusBlock, D_TextButton, D_TextField, D_TextLabel, D_UploadIconButton, D_UploadMainButton, D_UploadTextButton, D_UserDesktopNavBar, D_UserDesktopTabBar, D_UserDesktopSideTab } from './src/desktop';
|
|
9
9
|
export { LayoutWF, WFContainersBox };
|
|
10
10
|
export { LayoutWS, WSGlobalMenuContainer, WSContainersBox };
|
|
11
11
|
export { LayoutWT, WTGlobalMenuContainer, WTContainersBox };
|
|
12
|
-
export { D_AdminList, D_AdminListHeader, D_AdminListItem, D_BasicChatListItem, D_BasicFormGroup, D_BasicList, D_BasicListItem, D_BlogTextField, D_BodyTextGroup, D_Card, D_CardList, D_ChatList, D_Checkbox, D_Chip, D_ContextMenu, D_ContextMenuItem, D_DesktopAlertDialog, D_DesktopBasicModal, D_DesktopHeaderBar, D_DesktopHeadlessModal, D_DesktopTabBar, D_Dropdown, D_EditApplyTextField, D_FilterBar, D_FloatingActionButton, D_Hero, D_HorizontalFormGroup, D_IconButton, D_ImageSlide, D_MainButton, D_PageTitleTextGroup, D_Radio, D_ReactionButton, D_Select, D_StatusBlock, D_TextButton, D_TextField, D_TextLabel, D_UploadIconButton, D_UploadMainButton, D_UploadTextButton, D_UserDesktopNavBar, D_UserDesktopTabBar, D_DynamicDesktopNavBar, D_UserDesktopSideTab, D_DynamicDesktopNavBarTemplates };
|
|
13
|
-
import { LayoutMF, MFContainersBox, LayoutMM, MMNavigationContainer, MMContainersBox, LayoutMP, MPNavigationContainer, MPTabContainer, MPContainersBox, LayoutMS, MSNavigationContainer, MSContainersBox, M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_Card, M_CardList, M_ChatList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_Dropdown, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_MainButton, M_MobileAlertDialog, M_MobileBasicModal, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_Select, M_StatusBlock, M_TextButton, M_TextField, M_TextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton } from './src/mobile';
|
|
12
|
+
export { D_AdminList, D_AdminListHeader, D_AdminListItem, D_BasicChatListItem, D_BasicFormGroup, D_BasicList, D_BasicListItem, D_BlogTextField, D_BodyTextGroup, D_Card, D_CardList, D_ChatBubbleListItem, D_ChatList, D_Checkbox, D_Chip, D_ContextMenu, D_ContextMenuItem, D_DesktopAlertDialog, D_DesktopBasicModal, D_DesktopHeaderBar, D_DesktopHeadlessModal, D_DesktopTabBar, D_Dropdown, D_EditApplyTextField, D_FilterBar, D_FloatingActionButton, D_Hero, D_HorizontalFormGroup, D_IconButton, D_ImageSlide, D_MainButton, D_PageTitleTextGroup, D_Radio, D_ReactionButton, D_Select, D_StatusBlock, D_TextButton, D_TextField, D_TextLabel, D_UploadIconButton, D_UploadMainButton, D_UploadTextButton, D_UserDesktopNavBar, D_UserDesktopTabBar, D_DynamicDesktopNavBar, D_UserDesktopSideTab, D_DynamicDesktopNavBarTemplates };
|
|
13
|
+
import { LayoutMF, MFContainersBox, LayoutMM, MMNavigationContainer, MMContainersBox, LayoutMP, MPNavigationContainer, MPTabContainer, MPContainersBox, LayoutMS, MSNavigationContainer, MSContainersBox, M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_Card, M_CardList, M_ChatBubbleListItem, M_ChatList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_Dropdown, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_MainButton, M_MobileAlertDialog, M_MobileBasicModal, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_Select, M_StatusBlock, M_TextButton, M_TextField, M_TextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton } from './src/mobile';
|
|
14
14
|
export { LayoutMF, MFContainersBox };
|
|
15
15
|
export { LayoutMM, MMNavigationContainer, MMContainersBox };
|
|
16
16
|
export { LayoutMP, MPNavigationContainer, MPTabContainer, MPContainersBox };
|
|
17
17
|
export { LayoutMS, MSNavigationContainer, MSContainersBox };
|
|
18
|
-
export { M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_Card, M_CardList, M_ChatList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_Dropdown, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_MainButton, M_MobileAlertDialog, M_MobileBasicModal, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_Select, M_StatusBlock, M_TextButton, M_TextField, M_TextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton };
|
|
18
|
+
export { M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_Card, M_CardList, M_ChatBubbleListItem, M_ChatList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_Dropdown, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_MainButton, M_MobileAlertDialog, M_MobileBasicModal, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_Select, M_StatusBlock, M_TextButton, M_TextField, M_TextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.M_UploadTextButton = exports.M_UploadMainButton = exports.M_UploadIconButton = exports.M_TextLabel = exports.M_TextField = exports.M_TextButton = exports.M_StatusBlock = exports.M_Select = exports.M_ReactionButton = exports.M_Radio = exports.M_MobileTabBar = exports.M_MobileHeaderBar = exports.M_MobileBasicModal = exports.M_MobileAlertDialog = void 0;
|
|
3
|
+
exports.D_FloatingActionButton = exports.D_FilterBar = exports.D_EditApplyTextField = exports.D_Dropdown = exports.D_DesktopTabBar = exports.D_DesktopHeadlessModal = exports.D_DesktopHeaderBar = exports.D_DesktopBasicModal = exports.D_DesktopAlertDialog = exports.D_ContextMenuItem = exports.D_ContextMenu = exports.D_Chip = exports.D_Checkbox = exports.D_ChatList = exports.D_ChatBubbleListItem = exports.D_CardList = exports.D_Card = exports.D_BodyTextGroup = exports.D_BlogTextField = exports.D_BasicListItem = exports.D_BasicList = exports.D_BasicFormGroup = exports.D_BasicChatListItem = exports.D_AdminListItem = exports.D_AdminListHeader = exports.D_AdminList = exports.WTContainersBox = exports.WTGlobalMenuContainer = exports.LayoutWT = exports.WSContainersBox = exports.WSGlobalMenuContainer = exports.LayoutWS = exports.WFContainersBox = exports.LayoutWF = exports.Switch = exports.Spacing = exports.ImageView = exports.Icon = exports.Divider = exports.Form = exports.theme = exports.customTheme = exports.uiColors = exports.spacing = exports.boxShadow = exports.mobileLineHeight = exports.mobileFontSize = exports.desktopLineHeight = exports.desktopFontSize = exports.fontWeight = void 0;
|
|
4
|
+
exports.M_IconButton = exports.M_HorizontalFormGroup = exports.M_Dropdown = exports.M_ContextMenuItem = exports.M_ContextMenu = exports.M_Chip = exports.M_Checkbox = exports.M_ChatList = exports.M_ChatBubbleListItem = exports.M_CardList = exports.M_Card = exports.M_BodyTextGroup = exports.M_BlogTextField = exports.M_BasicListItem = exports.M_BasicList = exports.M_BasicFormGroup = exports.M_BasicChatListItem = exports.MSContainersBox = exports.MSNavigationContainer = exports.LayoutMS = exports.MPContainersBox = exports.MPTabContainer = exports.MPNavigationContainer = exports.LayoutMP = exports.MMContainersBox = exports.MMNavigationContainer = exports.LayoutMM = exports.MFContainersBox = exports.LayoutMF = exports.D_DynamicDesktopNavBarTemplates = exports.D_UserDesktopSideTab = exports.D_DynamicDesktopNavBar = exports.D_UserDesktopTabBar = exports.D_UserDesktopNavBar = exports.D_UploadTextButton = exports.D_UploadMainButton = exports.D_UploadIconButton = exports.D_TextLabel = exports.D_TextField = exports.D_TextButton = exports.D_StatusBlock = exports.D_Select = exports.D_ReactionButton = exports.D_Radio = exports.D_PageTitleTextGroup = exports.D_MainButton = exports.D_ImageSlide = exports.D_IconButton = exports.D_HorizontalFormGroup = exports.D_Hero = void 0;
|
|
5
|
+
exports.M_UploadTextButton = exports.M_UploadMainButton = exports.M_UploadIconButton = exports.M_TextLabel = exports.M_TextField = exports.M_TextButton = exports.M_StatusBlock = exports.M_Select = exports.M_ReactionButton = exports.M_Radio = exports.M_MobileTabBar = exports.M_MobileHeaderBar = exports.M_MobileBasicModal = exports.M_MobileAlertDialog = exports.M_MainButton = exports.M_ImageSlide = void 0;
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
7
|
/* eslint-disable import/first */
|
|
8
8
|
// common
|
|
@@ -46,6 +46,7 @@ Object.defineProperty(exports, "D_BlogTextField", { enumerable: true, get: funct
|
|
|
46
46
|
Object.defineProperty(exports, "D_BodyTextGroup", { enumerable: true, get: function () { return desktop_1.D_BodyTextGroup; } });
|
|
47
47
|
Object.defineProperty(exports, "D_Card", { enumerable: true, get: function () { return desktop_1.D_Card; } });
|
|
48
48
|
Object.defineProperty(exports, "D_CardList", { enumerable: true, get: function () { return desktop_1.D_CardList; } });
|
|
49
|
+
Object.defineProperty(exports, "D_ChatBubbleListItem", { enumerable: true, get: function () { return desktop_1.D_ChatBubbleListItem; } });
|
|
49
50
|
Object.defineProperty(exports, "D_ChatList", { enumerable: true, get: function () { return desktop_1.D_ChatList; } });
|
|
50
51
|
Object.defineProperty(exports, "D_Checkbox", { enumerable: true, get: function () { return desktop_1.D_Checkbox; } });
|
|
51
52
|
Object.defineProperty(exports, "D_Chip", { enumerable: true, get: function () { return desktop_1.D_Chip; } });
|
|
@@ -103,6 +104,7 @@ Object.defineProperty(exports, "M_BlogTextField", { enumerable: true, get: funct
|
|
|
103
104
|
Object.defineProperty(exports, "M_BodyTextGroup", { enumerable: true, get: function () { return mobile_1.M_BodyTextGroup; } });
|
|
104
105
|
Object.defineProperty(exports, "M_Card", { enumerable: true, get: function () { return mobile_1.M_Card; } });
|
|
105
106
|
Object.defineProperty(exports, "M_CardList", { enumerable: true, get: function () { return mobile_1.M_CardList; } });
|
|
107
|
+
Object.defineProperty(exports, "M_ChatBubbleListItem", { enumerable: true, get: function () { return mobile_1.M_ChatBubbleListItem; } });
|
|
106
108
|
Object.defineProperty(exports, "M_ChatList", { enumerable: true, get: function () { return mobile_1.M_ChatList; } });
|
|
107
109
|
Object.defineProperty(exports, "M_Checkbox", { enumerable: true, get: function () { return mobile_1.M_Checkbox; } });
|
|
108
110
|
Object.defineProperty(exports, "M_Chip", { enumerable: true, get: function () { return mobile_1.M_Chip; } });
|
|
@@ -527,5 +527,18 @@
|
|
|
527
527
|
"ui_48": "sys_text_social_login_01",
|
|
528
528
|
"ui_49": "sys_text_social_login_02",
|
|
529
529
|
"ui_50": "sys_text_white",
|
|
530
|
-
"ui_51": "sys_background_dimmed_65"
|
|
530
|
+
"ui_51": "sys_background_dimmed_65",
|
|
531
|
+
"ui_cpnt_list_text_caption_03": "sys_text_grey_darktheme_03",
|
|
532
|
+
"ui_cpnt_list_chatbubble_base_area": "sys_component_base_01",
|
|
533
|
+
"ui_cpnt_list_chatbubble_base_area_my": "sys_component_base_01",
|
|
534
|
+
"ui_cpnt_list_chatbubble_text_my": "sys_text_grey_01",
|
|
535
|
+
"ui_papp_livechat_link": "sys_papp_livechat_link",
|
|
536
|
+
"ui_cpnt_list_chatbubble_base_area_seller_color": "usr_brand_primary",
|
|
537
|
+
"ui_cpnt_list_chatbubble_text_seller_color": "usr_on_brand_primary",
|
|
538
|
+
"ui_cpnt_list_chatbubble_base_area_subscriber": "sys_component_base_01",
|
|
539
|
+
"ui_cpnt_list_chatbubble_text_subscriber": "sys_text_grey_01",
|
|
540
|
+
"ui_cpnt_list_chatbubble_base_area_my_color": "usr_brand_primary",
|
|
541
|
+
"ui_cpnt_list_chatbubble_text_my_color": "usr_on_brand_primary",
|
|
542
|
+
"ui_cpnt_list_chatbubble_base_area_seller": "usr_brand_primary",
|
|
543
|
+
"ui_cpnt_list_chatbubble_text_seller": "usr_on_brand_primary"
|
|
531
544
|
}
|
|
@@ -1,65 +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
|
-
opacity40: string;
|
|
60
|
-
kakaoyellow: string;
|
|
61
|
-
};
|
|
62
|
-
readonly PaletteColor_light: {
|
|
2
|
+
readonly PaletteColor_Dark: {
|
|
63
3
|
sys_container_background_01: string;
|
|
64
4
|
sys_container_background_02: string;
|
|
65
5
|
sys_container_background_03: string;
|
|
@@ -237,8 +177,9 @@ declare const colorSet: {
|
|
|
237
177
|
sys_component_base_08: string;
|
|
238
178
|
sys_text_social_login_01: string;
|
|
239
179
|
sys_text_social_login_02: string;
|
|
180
|
+
sys_papp_livechat_link: string;
|
|
240
181
|
};
|
|
241
|
-
readonly
|
|
182
|
+
readonly PaletteColor_light: {
|
|
242
183
|
sys_container_background_01: string;
|
|
243
184
|
sys_container_background_02: string;
|
|
244
185
|
sys_container_background_03: string;
|
|
@@ -416,6 +357,67 @@ declare const colorSet: {
|
|
|
416
357
|
sys_component_base_08: string;
|
|
417
358
|
sys_text_social_login_01: string;
|
|
418
359
|
sys_text_social_login_02: string;
|
|
360
|
+
sys_papp_livechat_link: string;
|
|
361
|
+
};
|
|
362
|
+
readonly SemanticColor: {
|
|
363
|
+
blue500: string;
|
|
364
|
+
blue700: string;
|
|
365
|
+
blue300: string;
|
|
366
|
+
green700: string;
|
|
367
|
+
green500: string;
|
|
368
|
+
green300: string;
|
|
369
|
+
red500: string;
|
|
370
|
+
grey900: string;
|
|
371
|
+
grey500: string;
|
|
372
|
+
grey400: string;
|
|
373
|
+
grey100: string;
|
|
374
|
+
grey50: string;
|
|
375
|
+
white: string;
|
|
376
|
+
black: string;
|
|
377
|
+
darkblue500: string;
|
|
378
|
+
grey950: string;
|
|
379
|
+
darkgrey900: string;
|
|
380
|
+
darkgrey500: string;
|
|
381
|
+
darkgrey400: string;
|
|
382
|
+
darkgrey100: string;
|
|
383
|
+
darkgrey50: string;
|
|
384
|
+
darkred500: string;
|
|
385
|
+
darkgreen700: string;
|
|
386
|
+
orange500: string;
|
|
387
|
+
darkorange500: string;
|
|
388
|
+
opacity00: string;
|
|
389
|
+
opacity20: string;
|
|
390
|
+
opacity30: string;
|
|
391
|
+
opacity65: string;
|
|
392
|
+
darkgreen500: string;
|
|
393
|
+
grey70: string;
|
|
394
|
+
navy500: string;
|
|
395
|
+
lightgreen500: string;
|
|
396
|
+
pink500: string;
|
|
397
|
+
darkgrey70: string;
|
|
398
|
+
darknavy500: string;
|
|
399
|
+
darkpink500: string;
|
|
400
|
+
darklightgreen500: string;
|
|
401
|
+
opacity10: string;
|
|
402
|
+
grey600: string;
|
|
403
|
+
darkgrey600: string;
|
|
404
|
+
skyblue500: string;
|
|
405
|
+
skyblue300: string;
|
|
406
|
+
pink300: string;
|
|
407
|
+
lightpink500: string;
|
|
408
|
+
darkblue300: string;
|
|
409
|
+
darkblue700: string;
|
|
410
|
+
darkgreen300: string;
|
|
411
|
+
darkskyblue500: string;
|
|
412
|
+
navy100: string;
|
|
413
|
+
darknavy100: string;
|
|
414
|
+
opacity80: string;
|
|
415
|
+
opacity50: string;
|
|
416
|
+
grey30: string;
|
|
417
|
+
opacity95: string;
|
|
418
|
+
darkgrey30: string;
|
|
419
|
+
opacity40: string;
|
|
420
|
+
kakaoyellow: string;
|
|
419
421
|
};
|
|
420
422
|
readonly UIColor: {
|
|
421
423
|
ui_cpnt_button_fill_base_primary: string;
|
|
@@ -947,6 +949,19 @@ declare const colorSet: {
|
|
|
947
949
|
ui_49: string;
|
|
948
950
|
ui_50: string;
|
|
949
951
|
ui_51: string;
|
|
952
|
+
ui_cpnt_list_text_caption_03: string;
|
|
953
|
+
ui_cpnt_list_chatbubble_base_area: string;
|
|
954
|
+
ui_cpnt_list_chatbubble_base_area_my: string;
|
|
955
|
+
ui_cpnt_list_chatbubble_text_my: string;
|
|
956
|
+
ui_papp_livechat_link: string;
|
|
957
|
+
ui_cpnt_list_chatbubble_base_area_seller_color: string;
|
|
958
|
+
ui_cpnt_list_chatbubble_text_seller_color: string;
|
|
959
|
+
ui_cpnt_list_chatbubble_base_area_subscriber: string;
|
|
960
|
+
ui_cpnt_list_chatbubble_text_subscriber: string;
|
|
961
|
+
ui_cpnt_list_chatbubble_base_area_my_color: string;
|
|
962
|
+
ui_cpnt_list_chatbubble_text_my_color: string;
|
|
963
|
+
ui_cpnt_list_chatbubble_base_area_seller: string;
|
|
964
|
+
ui_cpnt_list_chatbubble_text_seller: string;
|
|
950
965
|
};
|
|
951
966
|
};
|
|
952
967
|
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;
|
|
@@ -528,4 +528,17 @@ export interface UITheme {
|
|
|
528
528
|
ui_49: string;
|
|
529
529
|
ui_50: string;
|
|
530
530
|
ui_51: string;
|
|
531
|
+
ui_cpnt_list_text_caption_03: string;
|
|
532
|
+
ui_cpnt_list_chatbubble_base_area: string;
|
|
533
|
+
ui_cpnt_list_chatbubble_base_area_my: string;
|
|
534
|
+
ui_cpnt_list_chatbubble_text_my: string;
|
|
535
|
+
ui_papp_livechat_link: string;
|
|
536
|
+
ui_cpnt_list_chatbubble_base_area_seller_color: string;
|
|
537
|
+
ui_cpnt_list_chatbubble_text_seller_color: string;
|
|
538
|
+
ui_cpnt_list_chatbubble_base_area_subscriber: string;
|
|
539
|
+
ui_cpnt_list_chatbubble_text_subscriber: string;
|
|
540
|
+
ui_cpnt_list_chatbubble_base_area_my_color: string;
|
|
541
|
+
ui_cpnt_list_chatbubble_text_my_color: string;
|
|
542
|
+
ui_cpnt_list_chatbubble_base_area_seller: string;
|
|
543
|
+
ui_cpnt_list_chatbubble_text_seller: string;
|
|
531
544
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type ChatBubbleProps = {
|
|
3
|
+
colorTheme?: 'my' | 'seller' | 'subscriber';
|
|
4
|
+
tailType?: 'none' | 'left_top' | 'right_top';
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
declare function ChatBubble({ colorTheme, tailType, children }: ChatBubbleProps): JSX.Element;
|
|
8
|
+
export default ChatBubble;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var backgroundColorTheme = {
|
|
32
|
+
my: 'ui_cpnt_list_chatbubble_base_area_my',
|
|
33
|
+
seller: 'ui_cpnt_list_chatbubble_base_area_seller',
|
|
34
|
+
subscriber: 'ui_cpnt_list_chatbubble_base_area_subscriber'
|
|
35
|
+
};
|
|
36
|
+
function ChatBubble(_a) {
|
|
37
|
+
var _b = _a.colorTheme, colorTheme = _b === void 0 ? 'seller' : _b, _c = _a.tailType, tailType = _c === void 0 ? 'left_top' : _c, children = _a.children;
|
|
38
|
+
return (react_1.default.createElement(S_ChatBubbleWrapper, null,
|
|
39
|
+
react_1.default.createElement(S_Tail, { width: "8", height: "11", viewBox: "0 0 8 11", tailType: tailType, colorTheme: colorTheme },
|
|
40
|
+
react_1.default.createElement("path", { d: "M1107,336.800385 C1107,341.257979 1107.46413,342.87441 1108.33566,344.50404 C1108.99708,345.740772 1109.89313,346.775532 1110.99903,347.583527 L1111,347.618755 L1110.99894,347.618755 C1108.35845,347.618755 1105.83748,347.107028 1103.52979,346.177337 C1104.54074,345.507794 1105.3496,344.61519 1105.93147,343.527194 C1106.6287,342.22349 1107,340.8866 1107,337.582996 L1107,337.582996 Z", transform: "rotate(180 555.765 173.81)" })),
|
|
41
|
+
react_1.default.createElement(S_ChatBubble, { colorTheme: colorTheme }, children)));
|
|
42
|
+
}
|
|
43
|
+
var none = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: none;\n"], ["\n display: none;\n"])));
|
|
44
|
+
var left_top = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n left: -4px;\n top: 0;\n"], ["\n left: -4px;\n top: 0;\n"])));
|
|
45
|
+
var right_top = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n transform: scaleX(-1);\n right: -4px;\n top: 0;\n"], ["\n transform: scaleX(-1);\n right: -4px;\n top: 0;\n"])));
|
|
46
|
+
var S_ChatBubbleWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-block;\n position: relative;\n"], ["\n display: inline-block;\n position: relative;\n"])));
|
|
47
|
+
var S_ChatBubble = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n box-sizing: border-box;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n\n background-color: ", ";\n border-radius: 8px;\n position: relative;\n max-width: 960px;\n min-width: 32px;\n"], ["\n box-sizing: border-box;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n\n background-color: ", ";\n border-radius: 8px;\n position: relative;\n max-width: 960px;\n min-width: 32px;\n"])), function (_a) {
|
|
48
|
+
var theme = _a.theme;
|
|
49
|
+
return theme.spacing.spacingB;
|
|
50
|
+
}, function (_a) {
|
|
51
|
+
var theme = _a.theme;
|
|
52
|
+
return theme.spacing.spacingC;
|
|
53
|
+
}, function (_a) {
|
|
54
|
+
var theme = _a.theme;
|
|
55
|
+
return theme.spacing.spacingB;
|
|
56
|
+
}, function (_a) {
|
|
57
|
+
var theme = _a.theme;
|
|
58
|
+
return theme.spacing.spacingC;
|
|
59
|
+
}, function (_a) {
|
|
60
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
61
|
+
return colorTheme && theme[backgroundColorTheme[colorTheme]];
|
|
62
|
+
});
|
|
63
|
+
var S_Tail = styled_components_1.default.svg(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: absolute;\n fill: ", ";\n\n ", ";\n"], ["\n position: absolute;\n fill: ", ";\n\n ", ";\n"])), function (_a) {
|
|
64
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
65
|
+
return colorTheme && theme[backgroundColorTheme[colorTheme]];
|
|
66
|
+
}, function (_a) {
|
|
67
|
+
var tailType = _a.tailType;
|
|
68
|
+
return tailType &&
|
|
69
|
+
{
|
|
70
|
+
none: none,
|
|
71
|
+
left_top: left_top,
|
|
72
|
+
right_top: right_top
|
|
73
|
+
}[tailType];
|
|
74
|
+
});
|
|
75
|
+
exports.default = ChatBubble;
|
|
76
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PDSTextType, PDSValueOption } from '../../../common';
|
|
3
|
+
export declare type ChatBubbleListItemProps = {
|
|
4
|
+
titleText?: PDSTextType;
|
|
5
|
+
imageMode?: 'none' | 'use';
|
|
6
|
+
imageSrc?: string;
|
|
7
|
+
hoverMode?: 'none' | 'use';
|
|
8
|
+
styleTheme?: 'seller_tail' | 'seller' | 'subscriber_tail' | 'subscriber' | 'my_tail' | 'my';
|
|
9
|
+
timeMode?: 'none' | 'use';
|
|
10
|
+
timeText?: PDSTextType;
|
|
11
|
+
contextMenuOptionArray?: PDSValueOption[];
|
|
12
|
+
contextMenuState?: 'normal' | 'disabled';
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
onClickContextMenuItem?: (option: PDSValueOption) => void;
|
|
15
|
+
};
|
|
16
|
+
declare function ChatBubbleListItem({ titleText, imageMode, imageSrc, hoverMode, styleTheme, timeMode, timeText, contextMenuOptionArray, contextMenuState, children, onClickContextMenuItem }: ChatBubbleListItemProps): JSX.Element;
|
|
17
|
+
export default ChatBubbleListItem;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
var react_1 = __importStar(require("react"));
|
|
30
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var hybrid_1 = require("../../../hybrid");
|
|
32
|
+
var ContextMenu_1 = require("../ContextMenu");
|
|
33
|
+
var ContextMenuItem_1 = require("../ContextMenuItem");
|
|
34
|
+
var IconButton_1 = require("../IconButton");
|
|
35
|
+
var TextLabel_1 = require("../TextLabel");
|
|
36
|
+
var ChatBubble_1 = __importDefault(require("./ChatBubble"));
|
|
37
|
+
var Popup_1 = require("./Popup");
|
|
38
|
+
var ChatBubbleColorTheme = {
|
|
39
|
+
seller_tail: 'seller',
|
|
40
|
+
seller: 'seller',
|
|
41
|
+
subscriber_tail: 'subscriber',
|
|
42
|
+
subscriber: 'subscriber',
|
|
43
|
+
my_tail: 'my',
|
|
44
|
+
my: 'my'
|
|
45
|
+
};
|
|
46
|
+
var ChatBubbleTailType = {
|
|
47
|
+
seller_tail: 'left_top',
|
|
48
|
+
seller: 'none',
|
|
49
|
+
subscriber_tail: 'left_top',
|
|
50
|
+
subscriber: 'none',
|
|
51
|
+
my_tail: 'right_top',
|
|
52
|
+
my: 'none'
|
|
53
|
+
};
|
|
54
|
+
function ChatBubbleListItem(_a) {
|
|
55
|
+
var titleText = _a.titleText, _b = _a.imageMode, imageMode = _b === void 0 ? 'use' : _b, imageSrc = _a.imageSrc, _c = _a.hoverMode, hoverMode = _c === void 0 ? 'use' : _c, _d = _a.styleTheme, styleTheme = _d === void 0 ? 'seller_tail' : _d, _e = _a.timeMode, timeMode = _e === void 0 ? 'use' : _e, timeText = _a.timeText, contextMenuOptionArray = _a.contextMenuOptionArray, _f = _a.contextMenuState, contextMenuState = _f === void 0 ? 'normal' : _f, children = _a.children, onClickContextMenuItem = _a.onClickContextMenuItem;
|
|
56
|
+
var isMy = styleTheme.includes('my');
|
|
57
|
+
var isSeller = styleTheme.includes('seller');
|
|
58
|
+
var isTail = styleTheme.includes('tail');
|
|
59
|
+
var _g = (0, react_1.useState)(false), isContextMenuOpen = _g[0], setIsContextMenuOpen = _g[1];
|
|
60
|
+
var contextMenuRef = (0, react_1.useRef)(null);
|
|
61
|
+
var chatBody = document.querySelector('#chatMessageBox');
|
|
62
|
+
var rect = chatBody === null || chatBody === void 0 ? void 0 : chatBody.getBoundingClientRect();
|
|
63
|
+
/**
|
|
64
|
+
* @when contextMenu가 열려 있을 때
|
|
65
|
+
* @expected ChatList body의 스크롤을 숨기고, contextMenu의 외부를 클릭하면 contextMenu가 닫히도록 합니다.
|
|
66
|
+
* @clear document의 클릭 이벤트를 제거합니다.
|
|
67
|
+
*/
|
|
68
|
+
(0, react_1.useEffect)(function () {
|
|
69
|
+
// NOTE pop up 개념이 생기기 전까지의 임시 조치 방법입니다.
|
|
70
|
+
if (!chatBody) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
chatBody.style.overflowY = isContextMenuOpen ? 'hidden' : 'auto';
|
|
74
|
+
}, [isContextMenuOpen, chatBody]);
|
|
75
|
+
var handleMoreButtonClick = function (e) {
|
|
76
|
+
e.stopPropagation();
|
|
77
|
+
setIsContextMenuOpen(function (prev) { return !prev; });
|
|
78
|
+
};
|
|
79
|
+
var handleContextMenuItemClick = function (option) {
|
|
80
|
+
if (onClickContextMenuItem) {
|
|
81
|
+
onClickContextMenuItem(option);
|
|
82
|
+
}
|
|
83
|
+
setIsContextMenuOpen(false);
|
|
84
|
+
};
|
|
85
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
86
|
+
react_1.default.createElement(S_ChatBubbleListItem, { hoverMode: hoverMode, isMy: isMy, imageMode: imageMode },
|
|
87
|
+
imageMode === 'use' && (react_1.default.createElement(react_1.default.Fragment, null, isTail && !isMy ? (react_1.default.createElement(S_ImageViewWrapper, { isSeller: isSeller },
|
|
88
|
+
react_1.default.createElement(hybrid_1.ImageView, { shapeType: "circular", ratio: "1_1", scaleType: "cover", src: imageSrc, width: 40 }))) : (react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_g", spacingType: "width" })))),
|
|
89
|
+
react_1.default.createElement(S_RightBox, null,
|
|
90
|
+
isTail && !isMy && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
91
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: "caption1Bold", colorTheme: isSeller ? 'usrTextBrandPrimary' : 'sysTextPrimary' }),
|
|
92
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b" }))),
|
|
93
|
+
react_1.default.createElement(S_ChatBubbleBox, null,
|
|
94
|
+
react_1.default.createElement(S_ChatBubbleWrapper, { isMy: isMy },
|
|
95
|
+
timeMode === 'use' && timeText && isMy && (react_1.default.createElement(S_TimeWrapper, null,
|
|
96
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: timeText, styleTheme: "caption2Regular", colorTheme: "sysTextTertiary", singleLineMode: "use" }),
|
|
97
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }))),
|
|
98
|
+
react_1.default.createElement(ChatBubble_1.default, { colorTheme: ChatBubbleColorTheme[styleTheme], tailType: ChatBubbleTailType[styleTheme] }, children),
|
|
99
|
+
timeMode === 'use' && timeText && !isMy && (react_1.default.createElement(S_TimeWrapper, null,
|
|
100
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }),
|
|
101
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: timeText, styleTheme: "caption2Regular", colorTheme: "sysTextTertiary", singleLineMode: "use" })))),
|
|
102
|
+
hoverMode === 'use' && !isMy && (react_1.default.createElement(S_SeeMoreButton, { isContextMenuOpen: isContextMenuOpen, ref: contextMenuRef },
|
|
103
|
+
react_1.default.createElement(IconButton_1.IconButton, { fillType: "fill", baseSize: "xsmall", iconFillType: "fill", iconSize: 20, iconName: "ic_more", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: "ui_cpnt_button_icon_enabled", onClick: handleMoreButtonClick }))))),
|
|
104
|
+
react_1.default.createElement(Popup_1.PopupProvider, null,
|
|
105
|
+
react_1.default.createElement(Popup_1.Popup, { targetRef: contextMenuRef, isOpen: isContextMenuOpen, placement: "v-auto", wrapperHeight: rect === null || rect === void 0 ? void 0 : rect.height, onClickOutside: function () { return setIsContextMenuOpen(false); } },
|
|
106
|
+
react_1.default.createElement(ContextMenu_1.ContextMenu, null, contextMenuOptionArray === null || contextMenuOptionArray === void 0 ? void 0 : contextMenuOptionArray.map(function (el) { return (react_1.default.createElement(ContextMenuItem_1.ContextMenuItem, { key: el.value, option: el, onClick: handleContextMenuItemClick, state: contextMenuState })); })))))));
|
|
107
|
+
}
|
|
108
|
+
var S_SeeMoreButton = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n width: 48px;\n height: 24px;\n min-width: 48px;\n padding-right: ", ";\n margin-top: ", ";\n position: relative;\n visibility: ", ";\n display: flex;\n justify-content: right;\n"], ["\n box-sizing: border-box;\n width: 48px;\n height: 24px;\n min-width: 48px;\n padding-right: ", ";\n margin-top: ", ";\n position: relative;\n visibility: ", ";\n display: flex;\n justify-content: right;\n"])), function (_a) {
|
|
109
|
+
var theme = _a.theme;
|
|
110
|
+
return theme.spacing.spacingB;
|
|
111
|
+
}, function (_a) {
|
|
112
|
+
var theme = _a.theme;
|
|
113
|
+
return theme.spacing.spacingB;
|
|
114
|
+
}, function (_a) {
|
|
115
|
+
var isContextMenuOpen = _a.isContextMenuOpen;
|
|
116
|
+
return (isContextMenuOpen ? 'visible' : 'hidden');
|
|
117
|
+
});
|
|
118
|
+
var MyChatBubbleListItem = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), function (_a) {
|
|
119
|
+
var theme = _a.theme;
|
|
120
|
+
return theme.spacing.spacingA;
|
|
121
|
+
});
|
|
122
|
+
var NoImageChatBubbleListItem = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin-left: ", ";\n"], ["\n margin-left: ", ";\n"])), function (_a) {
|
|
123
|
+
var theme = _a.theme;
|
|
124
|
+
return theme.spacing.spacingA;
|
|
125
|
+
});
|
|
126
|
+
var S_ChatBubbleListItem = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n height: fit-content;\n max-width: 100%;\n\n :hover {\n ", " {\n visibility: ", ";\n }\n }\n\n ", ";\n ", ";\n"], ["\n display: flex;\n height: fit-content;\n max-width: 100%;\n\n :hover {\n ", " {\n visibility: ", ";\n }\n }\n\n ", ";\n ", ";\n"])), S_SeeMoreButton, function (_a) {
|
|
127
|
+
var hoverMode = _a.hoverMode;
|
|
128
|
+
return hoverMode === 'use' && 'visible';
|
|
129
|
+
}, function (_a) {
|
|
130
|
+
var isMy = _a.isMy;
|
|
131
|
+
return isMy && MyChatBubbleListItem;
|
|
132
|
+
}, function (_a) {
|
|
133
|
+
var imageMode = _a.imageMode;
|
|
134
|
+
return imageMode === 'none' && NoImageChatBubbleListItem;
|
|
135
|
+
});
|
|
136
|
+
var ImageViewSeller = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n box-shadow: 0 0 0 2px ", " inset;\n"], ["\n box-shadow: 0 0 0 2px ", " inset;\n"])), function (_a) {
|
|
137
|
+
var theme = _a.theme;
|
|
138
|
+
return theme.ui_profile_image_border_brandprimary;
|
|
139
|
+
});
|
|
140
|
+
var ImageViewDefault = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n box-shadow: 0 0 0 1px ", " inset;\n"], ["\n box-shadow: 0 0 0 1px ", " inset;\n"])), function (_a) {
|
|
141
|
+
var theme = _a.theme;
|
|
142
|
+
return theme.ui_profile_image_border;
|
|
143
|
+
});
|
|
144
|
+
var S_ImageViewWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border-radius: 50%;\n height: fit-content;\n min-width: fit-content;\n width: fit-content;\n margin-right: ", ";\n position: relative;\n\n &::after {\n content: '';\n box-sizing: border-box;\n border-radius: 50%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n ", ";\n }\n"], ["\n border-radius: 50%;\n height: fit-content;\n min-width: fit-content;\n width: fit-content;\n margin-right: ", ";\n position: relative;\n\n &::after {\n content: '';\n box-sizing: border-box;\n border-radius: 50%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n ", ";\n }\n"])), function (_a) {
|
|
145
|
+
var theme = _a.theme;
|
|
146
|
+
return theme.spacing.spacingB;
|
|
147
|
+
}, function (_a) {
|
|
148
|
+
var isSeller = _a.isSeller;
|
|
149
|
+
return (isSeller ? ImageViewSeller : ImageViewDefault);
|
|
150
|
+
});
|
|
151
|
+
var S_RightBox = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
152
|
+
var S_ChatBubbleBox = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n"], ["\n display: flex;\n justify-content: space-between;\n"])));
|
|
153
|
+
var MyChatBubble = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n justify-content: end;\n"], ["\n justify-content: end;\n"])));
|
|
154
|
+
var S_ChatBubbleWrapper = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n flex: 1;\n display: flex;\n\n ", ";\n"], ["\n flex: 1;\n display: flex;\n\n ", ";\n"])), function (_a) {
|
|
155
|
+
var isMy = _a.isMy;
|
|
156
|
+
return isMy && MyChatBubble;
|
|
157
|
+
});
|
|
158
|
+
var S_TimeWrapper = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n align-self: end;\n display: flex;\n"], ["\n align-self: end;\n display: flex;\n"])));
|
|
159
|
+
exports.default = ChatBubbleListItem;
|
|
160
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { MutableRefObject } from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
targetRef: MutableRefObject<HTMLElement | null>;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClickOutside?: () => void;
|
|
6
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
7
|
+
placement: string;
|
|
8
|
+
wrapperHeight?: number;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
declare function Popup({ targetRef, isOpen, onClickOutside, onClick, placement, wrapperHeight, children }: Props): JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* 팝업 루트 프로바이더
|
|
14
|
+
* 팝업을 사용하기 위해서는 팝업 프로바이더가 상위 컴포넌트로 있어야 합니다.
|
|
15
|
+
*/
|
|
16
|
+
declare function PopupProvider({ children }: {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}): JSX.Element;
|
|
19
|
+
export { PopupProvider, Popup };
|