pds-dev-kit-web 1.8.7 → 1.8.9
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/assets/icons/fill/ArrowDown.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ArrowDown.js +34 -0
- package/dist/src/common/assets/icons/fill/ArrowUp.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ArrowUp.js +34 -0
- package/dist/src/common/assets/icons/fill/ToggleDown.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ToggleDown.js +36 -0
- package/dist/src/common/assets/icons/fill/ToggleUp.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/ToggleUp.js +36 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/index.js +8 -0
- package/dist/src/common/assets/icons/line/Confetti.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Confetti.js +36 -0
- package/dist/src/common/assets/icons/line/DeviceApp.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DeviceApp.js +36 -0
- package/dist/src/common/assets/icons/line/DeviceDesktop.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DeviceDesktop.js +36 -0
- package/dist/src/common/assets/icons/line/DeviceMobile.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DeviceMobile.js +34 -0
- package/dist/src/common/assets/icons/line/EditorLeftSide.d.ts +4 -0
- package/dist/src/common/assets/icons/line/EditorLeftSide.js +34 -0
- package/dist/src/common/assets/icons/line/EditorRightSide.d.ts +4 -0
- package/dist/src/common/assets/icons/line/EditorRightSide.js +34 -0
- package/dist/src/common/assets/icons/line/Mail.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Mail.js +36 -0
- package/dist/src/common/assets/icons/line/News.d.ts +4 -0
- package/dist/src/common/assets/icons/line/News.js +36 -0
- package/dist/src/common/assets/icons/line/Rocket.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Rocket.js +36 -0
- package/dist/src/common/assets/icons/line/VideoGuide.d.ts +4 -0
- package/dist/src/common/assets/icons/line/VideoGuide.js +36 -0
- package/dist/src/common/assets/icons/line/index.d.ts +10 -0
- package/dist/src/common/assets/icons/line/index.js +20 -0
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +10 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +10 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +7 -1
- package/dist/src/common/styles/colorSet/UIColor.json +25 -1
- package/dist/src/common/styles/colorSet/index.d.ts +297 -249
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +24 -0
- package/dist/src/common/styles/index.d.ts +4 -0
- package/dist/src/common/styles/theme.d.ts +4 -0
- package/dist/src/common/styles/theme.js +4 -0
- package/dist/src/common/types/styled-components.d.ts +4 -0
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubble.d.ts +1 -1
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubble.js +5 -4
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +4 -3
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +88 -57
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +4 -4
- package/dist/src/desktop/components/TextLabel/TextLabel.js +56 -40
- package/dist/src/hybrid/components/Icon/Icon.d.ts +1 -1
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubble.d.ts +1 -1
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubble.js +5 -4
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +4 -3
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +88 -57
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +4 -4
- package/dist/src/mobile/components/TextLabel/TextLabel.js +52 -36
- package/dist/storybook-static/{0.1e64cc00.iframe.bundle.d.ts → 0.73af3e66.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{0.1e64cc00.iframe.bundle.js → 0.73af3e66.iframe.bundle.js} +8 -8
- package/dist/storybook-static/{4.08a6743e.iframe.bundle.d.ts → 4.d7ecdbf4.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{4.08a6743e.iframe.bundle.js → 4.d7ecdbf4.iframe.bundle.js} +71 -71
- package/dist/storybook-static/{5.fd119510.iframe.bundle.d.ts → 5.dc1e4c72.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{5.fd119510.iframe.bundle.js → 5.dc1e4c72.iframe.bundle.js} +12 -12
- package/dist/storybook-static/{6.ed855029.iframe.bundle.d.ts → 6.e668ed7b.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{6.ed855029.iframe.bundle.js → 6.e668ed7b.iframe.bundle.js} +6 -6
- package/dist/storybook-static/{7.acdfc1e4.iframe.bundle.d.ts → 7.9af8f518.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{7.acdfc1e4.iframe.bundle.js → 7.9af8f518.iframe.bundle.js} +3 -3
- package/dist/storybook-static/main.747cc139.iframe.bundle.d.ts +3141 -0
- package/dist/storybook-static/{main.3a848f92.iframe.bundle.js → main.747cc139.iframe.bundle.js} +2153 -1790
- package/dist/storybook-static/{runtime~main.c94cafde.iframe.bundle.d.ts → runtime~main.1b62987c.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{runtime~main.c94cafde.iframe.bundle.js → runtime~main.1b62987c.iframe.bundle.js} +1 -1
- package/dist/storybook-static/{vendors~main.6ff7334c.iframe.bundle.d.ts → vendors~main.4e754259.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{vendors~main.6ff7334c.iframe.bundle.js → vendors~main.4e754259.iframe.bundle.js} +590 -590
- package/package.json +1 -1
- package/release-note.md +26 -9
- package/dist/storybook-static/main.3a848f92.iframe.bundle.d.ts +0 -1124
|
@@ -19,6 +19,7 @@ exports.fontWeight = {
|
|
|
19
19
|
};
|
|
20
20
|
exports.desktopFontSize = {
|
|
21
21
|
displayHeading: '40px',
|
|
22
|
+
wizardPageTitle: '40px',
|
|
22
23
|
heading: '24px',
|
|
23
24
|
leadParagraph: '20px',
|
|
24
25
|
subtitle: '18px',
|
|
@@ -32,6 +33,7 @@ exports.desktopFontSize = {
|
|
|
32
33
|
};
|
|
33
34
|
exports.desktopLineHeight = {
|
|
34
35
|
displayHeading: '1.5',
|
|
36
|
+
wizardPageTitle: '1.2',
|
|
35
37
|
heading: '1.5',
|
|
36
38
|
leadParagraph: '1.5',
|
|
37
39
|
subtitle: '1.5',
|
|
@@ -58,6 +60,7 @@ exports.desktopEditorLineHeight = {
|
|
|
58
60
|
};
|
|
59
61
|
exports.mobileFontSize = {
|
|
60
62
|
displayHeading: '32px',
|
|
63
|
+
wizardPageTitle: '40px',
|
|
61
64
|
heading: '24px',
|
|
62
65
|
leadParagraph: '20px',
|
|
63
66
|
subtitle: '18px',
|
|
@@ -71,6 +74,7 @@ exports.mobileFontSize = {
|
|
|
71
74
|
};
|
|
72
75
|
exports.mobileLineHeight = {
|
|
73
76
|
displayHeading: '1.5',
|
|
77
|
+
wizardPageTitle: '1.2',
|
|
74
78
|
heading: '1.5',
|
|
75
79
|
leadParagraph: '1.5',
|
|
76
80
|
subtitle: '1.5',
|
|
@@ -6,6 +6,7 @@ export interface PdsDevKitTheme {
|
|
|
6
6
|
};
|
|
7
7
|
desktopFontSize: {
|
|
8
8
|
displayHeading: '40px';
|
|
9
|
+
wizardPageTitle: '40px';
|
|
9
10
|
heading: '24px';
|
|
10
11
|
leadParagraph: '20px';
|
|
11
12
|
subtitle: '18px';
|
|
@@ -19,6 +20,7 @@ export interface PdsDevKitTheme {
|
|
|
19
20
|
};
|
|
20
21
|
desktopLineHeight: {
|
|
21
22
|
displayHeading: '1.5';
|
|
23
|
+
wizardPageTitle: '1.2';
|
|
22
24
|
heading: '1.5';
|
|
23
25
|
leadParagraph: '1.5';
|
|
24
26
|
subtitle: '1.5';
|
|
@@ -45,6 +47,7 @@ export interface PdsDevKitTheme {
|
|
|
45
47
|
};
|
|
46
48
|
mobileFontSize: {
|
|
47
49
|
displayHeading: '32px';
|
|
50
|
+
wizardPageTitle: '40px';
|
|
48
51
|
heading: '24px';
|
|
49
52
|
leadParagraph: '20px';
|
|
50
53
|
subtitle: '18px';
|
|
@@ -58,6 +61,7 @@ export interface PdsDevKitTheme {
|
|
|
58
61
|
};
|
|
59
62
|
mobileLineHeight: {
|
|
60
63
|
displayHeading: '1.5';
|
|
64
|
+
wizardPageTitle: '1.2';
|
|
61
65
|
heading: '1.5';
|
|
62
66
|
leadParagraph: '1.5';
|
|
63
67
|
subtitle: '1.5';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare type ChatBubbleProps = {
|
|
3
|
-
colorTheme?: '
|
|
3
|
+
colorTheme?: 'grey' | 'brand_primary' | 'translucent_white' | 'translucent_black';
|
|
4
4
|
tailType?: 'none' | 'left_top' | 'right_top';
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
};
|
|
@@ -29,12 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
31
|
var backgroundColorTheme = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
grey: 'ui_cpnt_list_chatbubble_base_grey',
|
|
33
|
+
brand_primary: 'ui_cpnt_list_chatbubble_base_brand_primary',
|
|
34
|
+
translucent_white: 'ui_cpnt_list_chatbubble_base_translucent_white',
|
|
35
|
+
translucent_black: 'ui_cpnt_list_chatbubble_base_translucent_black'
|
|
35
36
|
};
|
|
36
37
|
function ChatBubble(_a) {
|
|
37
|
-
var _b = _a.colorTheme, colorTheme = _b === void 0 ? '
|
|
38
|
+
var _b = _a.colorTheme, colorTheme = _b === void 0 ? 'grey' : _b, _c = _a.tailType, tailType = _c === void 0 ? 'left_top' : _c, children = _a.children;
|
|
38
39
|
return (react_1.default.createElement(S_ChatBubbleWrapper, null,
|
|
39
40
|
react_1.default.createElement(S_Tail, { width: "8", height: "11", viewBox: "0 0 8 11", tailType: tailType, colorTheme: colorTheme },
|
|
40
41
|
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)" })),
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PDSTextType, PDSValueOption } from '../../../common';
|
|
3
|
+
declare type ColorThemeType = 'grey' | 'brand_primary' | 'translucent_white' | 'translucent_black';
|
|
3
4
|
export declare type ChatBubbleListItemProps = {
|
|
4
5
|
titleText?: PDSTextType;
|
|
5
|
-
imageMode?: 'none' | 'use';
|
|
6
6
|
imageSrc?: string;
|
|
7
7
|
hoverMode?: 'none' | 'use';
|
|
8
|
-
styleTheme
|
|
8
|
+
styleTheme: 'other_avatar_impact' | 'other_avatar' | 'other_avatar_sub' | 'other' | 'other_sub' | 'me' | 'me_sub';
|
|
9
|
+
colorTheme?: ColorThemeType;
|
|
9
10
|
timeMode?: 'none' | 'use';
|
|
10
11
|
timeText?: PDSTextType;
|
|
11
12
|
contextMenuOptionArray?: PDSValueOption[];
|
|
@@ -13,5 +14,5 @@ export declare type ChatBubbleListItemProps = {
|
|
|
13
14
|
children?: React.ReactNode;
|
|
14
15
|
onClickContextMenuItem?: (option: PDSValueOption) => void;
|
|
15
16
|
};
|
|
16
|
-
declare function ChatBubbleListItem({ titleText,
|
|
17
|
+
declare function ChatBubbleListItem({ titleText, imageSrc, hoverMode, styleTheme, colorTheme, timeMode, timeText, contextMenuOptionArray, contextMenuState, children, onClickContextMenuItem }: ChatBubbleListItemProps): JSX.Element;
|
|
17
18
|
export default ChatBubbleListItem;
|
|
@@ -35,28 +35,25 @@ var IconButton_1 = require("../IconButton");
|
|
|
35
35
|
var TextLabel_1 = require("../TextLabel");
|
|
36
36
|
var ChatBubble_1 = __importDefault(require("./ChatBubble"));
|
|
37
37
|
var Popup_1 = require("./Popup");
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
var chatBubbleTailType = {
|
|
39
|
+
other_avatar_impact: 'left_top',
|
|
40
|
+
other_avatar: 'left_top',
|
|
41
|
+
other_avatar_sub: 'none',
|
|
42
|
+
other: 'left_top',
|
|
43
|
+
other_sub: 'none',
|
|
44
|
+
me: 'right_top',
|
|
45
|
+
me_sub: 'none'
|
|
45
46
|
};
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
my_tail: 'right_top',
|
|
52
|
-
my: 'none'
|
|
47
|
+
var profileImageBorderColorTheme = {
|
|
48
|
+
grey: 'ui_avatar_border',
|
|
49
|
+
brand_primary: 'ui_avatar_border_brandprimary',
|
|
50
|
+
translucent_white: 'ui_avatar_border_translucent_white',
|
|
51
|
+
translucent_black: 'ui_avatar_border_translucent_black'
|
|
53
52
|
};
|
|
54
53
|
function ChatBubbleListItem(_a) {
|
|
55
|
-
var titleText = _a.titleText, _b = _a.
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var isTail = styleTheme.includes('tail');
|
|
59
|
-
var _g = (0, react_1.useState)(false), isContextMenuOpen = _g[0], setIsContextMenuOpen = _g[1];
|
|
54
|
+
var titleText = _a.titleText, imageSrc = _a.imageSrc, _b = _a.hoverMode, hoverMode = _b === void 0 ? 'use' : _b, styleTheme = _a.styleTheme, _c = _a.colorTheme, colorTheme = _c === void 0 ? 'grey' : _c, _d = _a.timeMode, timeMode = _d === void 0 ? 'use' : _d, timeText = _a.timeText, contextMenuOptionArray = _a.contextMenuOptionArray, _e = _a.contextMenuState, contextMenuState = _e === void 0 ? 'normal' : _e, children = _a.children, onClickContextMenuItem = _a.onClickContextMenuItem;
|
|
55
|
+
var isMe = styleTheme.includes('me');
|
|
56
|
+
var _f = (0, react_1.useState)(false), isContextMenuOpen = _f[0], setIsContextMenuOpen = _f[1];
|
|
60
57
|
var contextMenuRef = (0, react_1.useRef)(null);
|
|
61
58
|
var chatBody = document.querySelector('#chatMessageBox');
|
|
62
59
|
var rect = chatBody === null || chatBody === void 0 ? void 0 : chatBody.getBoundingClientRect();
|
|
@@ -82,24 +79,65 @@ function ChatBubbleListItem(_a) {
|
|
|
82
79
|
}
|
|
83
80
|
setIsContextMenuOpen(false);
|
|
84
81
|
};
|
|
82
|
+
var isShowProfileImage = function () {
|
|
83
|
+
if (styleTheme === 'other_avatar_impact' || styleTheme === 'other_avatar') {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
return false;
|
|
87
|
+
};
|
|
88
|
+
var isShowTitleText = function () {
|
|
89
|
+
if (styleTheme === 'other_avatar_impact' ||
|
|
90
|
+
styleTheme === 'other_avatar' ||
|
|
91
|
+
styleTheme === 'other') {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
return false;
|
|
95
|
+
};
|
|
96
|
+
var checkTextColorTheme = function () {
|
|
97
|
+
switch (colorTheme) {
|
|
98
|
+
case 'grey': {
|
|
99
|
+
return 'sysTextPrimary';
|
|
100
|
+
}
|
|
101
|
+
case 'brand_primary': {
|
|
102
|
+
return 'usrTextBrandPrimary';
|
|
103
|
+
}
|
|
104
|
+
case 'translucent_white': {
|
|
105
|
+
return 'sysTextBlack';
|
|
106
|
+
}
|
|
107
|
+
case 'translucent_black': {
|
|
108
|
+
return 'sysTextWhite';
|
|
109
|
+
}
|
|
110
|
+
default: {
|
|
111
|
+
return 'sysTextPrimary';
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
var isLeftSpacingChecker = function () {
|
|
116
|
+
if (styleTheme === 'other_avatar_impact' ||
|
|
117
|
+
styleTheme === 'other_avatar' ||
|
|
118
|
+
styleTheme === 'other_avatar_sub') {
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
return false;
|
|
122
|
+
};
|
|
85
123
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
86
|
-
react_1.default.createElement(S_ChatBubbleListItem, { "x-pds-name": "ChatBubbleListItem", "x-pds-element-type": "component", "x-pds-device-type": "desktop",
|
|
87
|
-
|
|
88
|
-
react_1.default.createElement(hybrid_1.ImageView, { shapeType: "circular", ratio: "1_1", scaleType: "cover", src: imageSrc, width:
|
|
124
|
+
react_1.default.createElement(S_ChatBubbleListItem, { "x-pds-name": "ChatBubbleListItem", "x-pds-element-type": "component", "x-pds-device-type": "desktop", isMe: isMe },
|
|
125
|
+
isLeftSpacingChecker() ? (react_1.default.createElement(react_1.default.Fragment, null, isShowProfileImage() ? (react_1.default.createElement(S_ImageViewWrapper, { isOtherAvatarImpact: styleTheme === 'other_avatar_impact', colorTheme: colorTheme },
|
|
126
|
+
react_1.default.createElement(hybrid_1.ImageView, { shapeType: "circular", ratio: "1_1", scaleType: "cover", src: imageSrc, width: styleTheme === 'other_avatar_impact' ? 36 : 38 }))) : (react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_g", spacingType: "width" })))) : (react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })),
|
|
89
127
|
react_1.default.createElement(S_RightBox, null,
|
|
90
|
-
|
|
91
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: "caption1Bold", colorTheme:
|
|
128
|
+
isShowTitleText() && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
129
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: titleText, styleTheme: "caption1Bold", colorTheme: colorTheme && checkTextColorTheme() }),
|
|
92
130
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b" }))),
|
|
93
131
|
react_1.default.createElement(S_ChatBubbleBox, null,
|
|
94
|
-
react_1.default.createElement(S_ChatBubbleWrapper, {
|
|
95
|
-
timeMode === 'use' && timeText &&
|
|
132
|
+
react_1.default.createElement(S_ChatBubbleWrapper, { isMe: isMe },
|
|
133
|
+
timeMode === 'use' && timeText && isMe && (react_1.default.createElement(S_TimeWrapper, null,
|
|
96
134
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: timeText, styleTheme: "caption2Regular", colorTheme: "sysTextTertiary", singleLineMode: "use" }),
|
|
97
135
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }))),
|
|
98
|
-
react_1.default.createElement(ChatBubble_1.default, { colorTheme:
|
|
99
|
-
timeMode === 'use' && timeText && !
|
|
136
|
+
react_1.default.createElement(ChatBubble_1.default, { colorTheme: colorTheme, tailType: chatBubbleTailType[styleTheme] }, children),
|
|
137
|
+
timeMode === 'use' && timeText && !isMe && (react_1.default.createElement(S_TimeWrapper, null,
|
|
100
138
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }),
|
|
101
139
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: timeText, styleTheme: "caption2Regular", colorTheme: "sysTextTertiary", singleLineMode: "use" })))),
|
|
102
|
-
hoverMode === 'use' && !
|
|
140
|
+
hoverMode === 'use' && !isMe && (react_1.default.createElement(S_SeeMoreButton, { isContextMenuOpen: isContextMenuOpen, hoverMode: hoverMode, ref: contextMenuRef },
|
|
103
141
|
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
142
|
react_1.default.createElement(Popup_1.PopupProvider, null,
|
|
105
143
|
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); } },
|
|
@@ -109,41 +147,34 @@ var MyChatBubbleListItem = (0, styled_components_1.css)(templateObject_1 || (tem
|
|
|
109
147
|
var theme = _a.theme;
|
|
110
148
|
return theme.spacing.spacingA;
|
|
111
149
|
});
|
|
112
|
-
var
|
|
113
|
-
var
|
|
114
|
-
return
|
|
150
|
+
var S_ChatBubbleListItem = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n height: fit-content;\n max-width: 100%;\n\n ", ";\n"], ["\n display: flex;\n height: fit-content;\n max-width: 100%;\n\n ", ";\n"])), function (_a) {
|
|
151
|
+
var isMe = _a.isMe;
|
|
152
|
+
return isMe && MyChatBubbleListItem;
|
|
115
153
|
});
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
return
|
|
119
|
-
}, function (_a) {
|
|
120
|
-
var imageMode = _a.imageMode;
|
|
121
|
-
return imageMode === 'none' && NoImageChatBubbleListItem;
|
|
154
|
+
var ImageViewBrandPrimary = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border: 2px solid\n ", ";\n"], ["\n border: 2px solid\n ", ";\n"])), function (_a) {
|
|
155
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
156
|
+
return colorTheme && theme[profileImageBorderColorTheme[colorTheme]];
|
|
122
157
|
});
|
|
123
|
-
var
|
|
124
|
-
var theme = _a.theme;
|
|
125
|
-
return theme
|
|
126
|
-
});
|
|
127
|
-
var ImageViewDefault = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border: 1px solid ", ";\n"], ["\n border: 1px solid ", ";\n"])), function (_a) {
|
|
128
|
-
var theme = _a.theme;
|
|
129
|
-
return theme.ui_profile_image_border;
|
|
158
|
+
var ImageViewDefault = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border: 1px solid\n ", ";\n"], ["\n border: 1px solid\n ", ";\n"])), function (_a) {
|
|
159
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
160
|
+
return colorTheme && theme[profileImageBorderColorTheme[colorTheme]];
|
|
130
161
|
});
|
|
131
|
-
var S_ImageViewWrapper = styled_components_1.default.div(
|
|
162
|
+
var S_ImageViewWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n box-sizing: border-box;\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 ", ";\n"], ["\n box-sizing: border-box;\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 ", ";\n"])), function (_a) {
|
|
132
163
|
var theme = _a.theme;
|
|
133
164
|
return theme.spacing.spacingB;
|
|
134
165
|
}, function (_a) {
|
|
135
|
-
var
|
|
136
|
-
return (
|
|
166
|
+
var isOtherAvatarImpact = _a.isOtherAvatarImpact;
|
|
167
|
+
return (isOtherAvatarImpact ? ImageViewBrandPrimary : ImageViewDefault);
|
|
137
168
|
});
|
|
138
|
-
var S_RightBox = styled_components_1.default.div(
|
|
139
|
-
var S_ChatBubbleBox = styled_components_1.default.div(
|
|
140
|
-
var MyChatBubble = (0, styled_components_1.css)(
|
|
141
|
-
var S_ChatBubbleWrapper = styled_components_1.default.div(
|
|
142
|
-
var
|
|
143
|
-
return
|
|
169
|
+
var S_RightBox = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
170
|
+
var S_ChatBubbleBox = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n"], ["\n display: flex;\n justify-content: space-between;\n"])));
|
|
171
|
+
var MyChatBubble = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n justify-content: flex-end;\n"], ["\n justify-content: flex-end;\n"])));
|
|
172
|
+
var S_ChatBubbleWrapper = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n flex: 1;\n display: flex;\n\n ", ";\n"], ["\n flex: 1;\n display: flex;\n\n ", ";\n"])), function (_a) {
|
|
173
|
+
var isMe = _a.isMe;
|
|
174
|
+
return isMe && MyChatBubble;
|
|
144
175
|
});
|
|
145
|
-
var S_TimeWrapper = styled_components_1.default.div(
|
|
146
|
-
var S_SeeMoreButton = styled_components_1.default.div(
|
|
176
|
+
var S_TimeWrapper = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n align-self: flex-end;\n display: flex;\n"], ["\n align-self: flex-end;\n display: flex;\n"])));
|
|
177
|
+
var S_SeeMoreButton = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n width: 48px;\n height: 24px;\n min-width: 48px;\n padding-right: ", ";\n margin-top: ", ";\n position: relative;\n opacity: ", ";\n justify-content: right;\n\n ", ":hover & {\n opacity: ", ";\n }\n"], ["\n box-sizing: border-box;\n display: flex;\n width: 48px;\n height: 24px;\n min-width: 48px;\n padding-right: ", ";\n margin-top: ", ";\n position: relative;\n opacity: ", ";\n justify-content: right;\n\n ", ":hover & {\n opacity: ", ";\n }\n"])), function (_a) {
|
|
147
178
|
var theme = _a.theme;
|
|
148
179
|
return theme.spacing.spacingB;
|
|
149
180
|
}, function (_a) {
|
|
@@ -157,4 +188,4 @@ var S_SeeMoreButton = styled_components_1.default.div(templateObject_12 || (temp
|
|
|
157
188
|
return hoverMode === 'use' && '1';
|
|
158
189
|
});
|
|
159
190
|
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
|
|
191
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
@@ -5,9 +5,9 @@ export declare type TextLabelProps = {
|
|
|
5
5
|
tooltipText?: PDSTextType;
|
|
6
6
|
tooltipPosition?: 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
|
|
7
7
|
textAlign?: 'left' | 'center' | 'right';
|
|
8
|
-
styleTheme?: 'displayBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
|
|
8
|
+
styleTheme?: 'displayBold' | 'wizardPageTitleBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
|
|
9
9
|
colorOverride?: UiColors;
|
|
10
|
-
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
10
|
+
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextBlack' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
11
11
|
singleLineMode?: 'none' | 'use';
|
|
12
12
|
ellipsisMode?: 'none' | 'use';
|
|
13
13
|
lineLimit?: number;
|
|
@@ -22,9 +22,9 @@ export declare type TextLabelProps = {
|
|
|
22
22
|
export declare type TextStyleProps = {
|
|
23
23
|
textAlign?: 'left' | 'center' | 'right';
|
|
24
24
|
tooltipPosition?: 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
|
|
25
|
-
styleTheme?: 'displayBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
|
|
25
|
+
styleTheme?: 'displayBold' | 'wizardPageTitleBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
|
|
26
26
|
colorOverride?: UiColors;
|
|
27
|
-
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
27
|
+
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextBlack' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
28
28
|
singleLineMode?: 'none' | 'use';
|
|
29
29
|
ellipsisMode?: 'none' | 'use';
|
|
30
30
|
lineLimit?: number;
|