pds-dev-kit-web 1.9.0-beta.6 → 1.9.0-beta.8
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 +1 -0
- package/dist/index.js +2 -0
- package/dist/src/common/styles/movement/keyframes.d.ts +2 -0
- package/dist/src/common/styles/movement/keyframes.js +9 -7
- 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 +2 -2
- package/dist/src/desktop/components/TextLabel/TextLabel.js +26 -21
- 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 +2 -2
- package/dist/src/mobile/components/TextLabel/TextLabel.js +21 -16
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -2
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +2 -2
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/OverlayBorders.js +8 -8
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +44 -17
- package/dist/src/sub/DynamicLayout/hooks/index.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/hooks/index.js +5 -1
- package/dist/src/sub/DynamicLayout/hooks/useUnmountStyle/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/hooks/useUnmountStyle/index.js +8 -0
- package/dist/src/sub/DynamicLayout/hooks/useUnmountStyle/useUmountStyle.d.ts +10 -0
- package/dist/src/sub/DynamicLayout/hooks/useUnmountStyle/useUmountStyle.js +65 -0
- package/dist/src/sub/DynamicLayout/types.d.ts +1 -0
- package/dist/storybook-static/{0.2023c95c.iframe.bundle.d.ts → 0.f85c225d.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{0.2023c95c.iframe.bundle.js → 0.f85c225d.iframe.bundle.js} +7 -7
- package/dist/storybook-static/{4.d1de0501.iframe.bundle.d.ts → 4.32dc09b1.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{4.d1de0501.iframe.bundle.js → 4.32dc09b1.iframe.bundle.js} +70 -70
- package/dist/storybook-static/{5.2f192ddf.iframe.bundle.d.ts → 5.f8adf19a.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{5.2f192ddf.iframe.bundle.js → 5.f8adf19a.iframe.bundle.js} +13 -13
- package/dist/storybook-static/{6.62fc7663.iframe.bundle.d.ts → 6.bbd5c6b7.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{6.62fc7663.iframe.bundle.js → 6.bbd5c6b7.iframe.bundle.js} +6 -6
- package/dist/storybook-static/{7.3518bf24.iframe.bundle.d.ts → 7.b309bb58.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{7.3518bf24.iframe.bundle.js → 7.b309bb58.iframe.bundle.js} +1 -1
- package/dist/storybook-static/{main.c8ffb728.iframe.bundle.d.ts → main.b3a48c0a.iframe.bundle.d.ts} +7 -2
- package/dist/storybook-static/{main.c8ffb728.iframe.bundle.js → main.b3a48c0a.iframe.bundle.js} +1155 -1043
- package/dist/storybook-static/{runtime~main.54fba058.iframe.bundle.d.ts → runtime~main.fb11004c.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{runtime~main.54fba058.iframe.bundle.js → runtime~main.fb11004c.iframe.bundle.js} +1 -1
- package/dist/storybook-static/{vendors~main.dd7c8d3f.iframe.bundle.d.ts → vendors~main.bf41a3c3.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{vendors~main.dd7c8d3f.iframe.bundle.js → vendors~main.bf41a3c3.iframe.bundle.js} +559 -559
- package/package.json +1 -1
- package/release-note.md +5 -18
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { UITheme, IFormValues, FillIconNameKeys, LineIconNameKeys, DesktopFontSi
|
|
|
2
2
|
export { UITheme, IFormValues, FillIconNameKeys, LineIconNameKeys, PdsDevKitTheme, DesktopFontSize, FontWeight, PDSTextType, PDSValueOption, UiColors, PDSIconType, ForwardedRefType };
|
|
3
3
|
export { fontWeight, desktopFontSize, desktopLineHeight, desktopEditorFontSize, desktopEditorLineHeight, mobileFontSize, mobileLineHeight, mobileEditorFontSize, mobileEditorLineHeight, boxShadow, spacing, uiColors, customTheme };
|
|
4
4
|
export { theme };
|
|
5
|
+
export * from './src/common/styles/movement/keyframes';
|
|
5
6
|
export * from './src/common/styles/movement/animationStyle';
|
|
6
7
|
export * from './src/common/styles/movement/transitionStyle';
|
|
7
8
|
export { Form };
|
package/dist/index.js
CHANGED
|
@@ -32,6 +32,8 @@ Object.defineProperty(exports, "uiColors", { enumerable: true, get: function ()
|
|
|
32
32
|
Object.defineProperty(exports, "customTheme", { enumerable: true, get: function () { return common_1.customTheme; } });
|
|
33
33
|
Object.defineProperty(exports, "theme", { enumerable: true, get: function () { return common_1.theme; } });
|
|
34
34
|
Object.defineProperty(exports, "Form", { enumerable: true, get: function () { return common_1.Form; } });
|
|
35
|
+
// keyframes
|
|
36
|
+
__exportStar(require("./src/common/styles/movement/keyframes"), exports);
|
|
35
37
|
// animation style
|
|
36
38
|
__exportStar(require("./src/common/styles/movement/animationStyle"), exports);
|
|
37
39
|
// transition style
|
|
@@ -8,6 +8,8 @@ export declare const scaleDownIncludeTranslate: import("styled-components").Keyf
|
|
|
8
8
|
export declare const gelatine: import("styled-components").Keyframes;
|
|
9
9
|
export declare const scaleBounceIn: import("styled-components").Keyframes;
|
|
10
10
|
export declare const scaleBounceIn02: import("styled-components").Keyframes;
|
|
11
|
+
export declare const scaleBounceOut: import("styled-components").Keyframes;
|
|
12
|
+
export declare const scaleBounceOut02: import("styled-components").Keyframes;
|
|
11
13
|
export declare const scaleBounceInIncludeTranslate: import("styled-components").Keyframes;
|
|
12
14
|
export declare const scaleBounceOutIncludeTranslate: import("styled-components").Keyframes;
|
|
13
15
|
export declare const scaleBounceInIncludeTranslate02: import("styled-components").Keyframes;
|
|
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.scaleBounceOutIncludeTranslate02 = exports.scaleBounceInIncludeTranslate02 = exports.scaleBounceOutIncludeTranslate = exports.scaleBounceInIncludeTranslate = exports.scaleBounceIn02 = exports.scaleBounceIn = exports.gelatine = exports.scaleDownIncludeTranslate = exports.scaleUpIncludeTranslate = exports.scaleDown = exports.scaleUp = exports.glow = exports.fadeOut = exports.fadeIn = void 0;
|
|
7
|
+
exports.scaleBounceOutIncludeTranslate02 = exports.scaleBounceInIncludeTranslate02 = exports.scaleBounceOutIncludeTranslate = exports.scaleBounceInIncludeTranslate = exports.scaleBounceOut02 = exports.scaleBounceOut = exports.scaleBounceIn02 = exports.scaleBounceIn = exports.gelatine = exports.scaleDownIncludeTranslate = exports.scaleUpIncludeTranslate = exports.scaleDown = exports.scaleUp = exports.glow = exports.fadeOut = exports.fadeIn = void 0;
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
9
|
exports.fadeIn = (0, styled_components_1.keyframes)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n from { opacity: 0.7; }\n to { opacity: 1; }\n"], ["\n from { opacity: 0.7; }\n to { opacity: 1; }\n"])));
|
|
10
10
|
exports.fadeOut = (0, styled_components_1.keyframes)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n from { opacity: 1; }\n to { opacity: 0.7; }\n"], ["\n from { opacity: 1; }\n to { opacity: 0.7; }\n"])));
|
|
@@ -14,10 +14,12 @@ exports.scaleDown = (0, styled_components_1.keyframes)(templateObject_5 || (temp
|
|
|
14
14
|
exports.scaleUpIncludeTranslate = (0, styled_components_1.keyframes)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n from { transform: scale(0.97) translate(-50%, -50%); }\n to { transform: scale(1) translate(-50%, -50%); }\n"], ["\n from { transform: scale(0.97) translate(-50%, -50%); }\n to { transform: scale(1) translate(-50%, -50%); }\n"])));
|
|
15
15
|
exports.scaleDownIncludeTranslate = (0, styled_components_1.keyframes)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n from { transform: scale(1) translate(-50%, -50%); }\n to { transform: scale(0.97) translate(-50%, -50%); }\n"], ["\n from { transform: scale(1) translate(-50%, -50%); }\n to { transform: scale(0.97) translate(-50%, -50%); }\n"])));
|
|
16
16
|
exports.gelatine = (0, styled_components_1.keyframes)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n from, to {\n transform: scale(1, 1);\n }\n 25% {\n transform: scale(0.95, 1.1);\n }\n 50% {\n transform: scale(1.05, 0.9);\n }\n 75% {\n transform: scale(0.97, 1.05);\n }\n"], ["\n from, to {\n transform: scale(1, 1);\n }\n 25% {\n transform: scale(0.95, 1.1);\n }\n 50% {\n transform: scale(1.05, 0.9);\n }\n 75% {\n transform: scale(0.97, 1.05);\n }\n"])));
|
|
17
|
-
exports.scaleBounceIn = (0, styled_components_1.keyframes)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n from, to {\n transform: scale(1);\n }\n
|
|
17
|
+
exports.scaleBounceIn = (0, styled_components_1.keyframes)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n from, to {\n transform: scale(1);\n }\n 33% {\n transform: scale(1.03);\n }\n 66% {\n transform: scale(0.99);\n }\n"], ["\n from, to {\n transform: scale(1);\n }\n 33% {\n transform: scale(1.03);\n }\n 66% {\n transform: scale(0.99);\n }\n"])));
|
|
18
18
|
exports.scaleBounceIn02 = (0, styled_components_1.keyframes)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n from {\n transform: scale(0.9);\n }\n 50% {\n transform: scale(1.01);\n }\n to {\n transform: scale(1);\n }\n"], ["\n from {\n transform: scale(0.9);\n }\n 50% {\n transform: scale(1.01);\n }\n to {\n transform: scale(1);\n }\n"])));
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
|
|
19
|
+
exports.scaleBounceOut = (0, styled_components_1.keyframes)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n from, to {\n transform: scale(1);\n }\n 33% {\n transform: scale(0.99);\n }\n 66% {\n transform: scale(1.03);\n }\n"], ["\n from, to {\n transform: scale(1);\n }\n 33% {\n transform: scale(0.99);\n }\n 66% {\n transform: scale(1.03);\n }\n"])));
|
|
20
|
+
exports.scaleBounceOut02 = (0, styled_components_1.keyframes)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n from {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.01);\n }\n to {\n transform: scale(0.9);\n }\n"], ["\n from {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.01);\n }\n to {\n transform: scale(0.9);\n }\n"])));
|
|
21
|
+
exports.scaleBounceInIncludeTranslate = (0, styled_components_1.keyframes)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n from, to {\n transform: scale(1) translate(-50%, -50%);\n }\n 33% {\n transform: scale(1.03) translate(-50%, -50%);\n }\n 66% {\n transform: scale(0.99) translate(-50%, -50%);\n }\n"], ["\n from, to {\n transform: scale(1) translate(-50%, -50%);\n }\n 33% {\n transform: scale(1.03) translate(-50%, -50%);\n }\n 66% {\n transform: scale(0.99) translate(-50%, -50%);\n }\n"])));
|
|
22
|
+
exports.scaleBounceOutIncludeTranslate = (0, styled_components_1.keyframes)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n from, to {\n transform: scale(1) translate(-50%, -50%);\n }\n 33% {\n transform: scale(0.99) translate(-50%, -50%);\n }\n 66% {\n transform: scale(1.03) translate(-50%, -50%);\n }\n"], ["\n from, to {\n transform: scale(1) translate(-50%, -50%);\n }\n 33% {\n transform: scale(0.99) translate(-50%, -50%);\n }\n 66% {\n transform: scale(1.03) translate(-50%, -50%);\n }\n"])));
|
|
23
|
+
exports.scaleBounceInIncludeTranslate02 = (0, styled_components_1.keyframes)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n from {\n transform: scale(0.9) translate(-50%, -50%);\n }\n 50% {\n transform: scale(1.01) translate(-50%, -50%);\n }\n to {\n transform: scale(1) translate(-50%, -50%);\n }\n"], ["\n from {\n transform: scale(0.9) translate(-50%, -50%);\n }\n 50% {\n transform: scale(1.01) translate(-50%, -50%);\n }\n to {\n transform: scale(1) translate(-50%, -50%);\n }\n"])));
|
|
24
|
+
exports.scaleBounceOutIncludeTranslate02 = (0, styled_components_1.keyframes)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n from {\n transform: scale(1) translate(-50%, -50%);\n }\n 50% {\n transform: scale(1.01) translate(-50%, -50%);\n }\n to {\n transform: scale(0.9) translate(-50%, -50%);\n }\n"], ["\n from {\n transform: scale(1) translate(-50%, -50%);\n }\n 50% {\n transform: scale(1.01) translate(-50%, -50%);\n }\n to {\n transform: scale(0.9) translate(-50%, -50%);\n }\n"])));
|
|
25
|
+
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, templateObject_13, templateObject_14, templateObject_15, templateObject_16;
|
|
@@ -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;
|
|
@@ -7,7 +7,7 @@ export declare type TextLabelProps = {
|
|
|
7
7
|
textAlign?: 'left' | 'center' | 'right';
|
|
8
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;
|
|
@@ -25,7 +25,7 @@ export declare type TextStyleProps = {
|
|
|
25
25
|
tooltipPosition?: 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
|
|
26
26
|
styleTheme?: 'displayBold' | 'wizardPageTitleBold' | 'headingBold' | 'leadParaBold' | 'leadParaRegular' | 'subTitleBold' | 'subTitleRegular' | 'body1Bold' | 'body1Regular' | 'body2Bold' | 'body2Regular' | 'caption1Bold' | 'caption1Regular' | 'caption2Bold' | 'caption2Regular' | 'form1Regular' | 'form2Regular' | 'blog1Regular';
|
|
27
27
|
colorOverride?: UiColors;
|
|
28
|
-
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
28
|
+
colorTheme?: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextBlack' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
29
29
|
singleLineMode?: 'none' | 'use';
|
|
30
30
|
ellipsisMode?: 'none' | 'use';
|
|
31
31
|
lineLimit?: number;
|
|
@@ -238,56 +238,60 @@ var sysTextWhite = (0, styled_components_1.css)(templateObject_22 || (templateOb
|
|
|
238
238
|
var theme = _a.theme;
|
|
239
239
|
return theme.ui_cpnt_textlabel_sys_white;
|
|
240
240
|
});
|
|
241
|
-
var
|
|
241
|
+
var sysTextBlack = (0, styled_components_1.css)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
242
|
+
var theme = _a.theme;
|
|
243
|
+
return theme.ui_cpnt_textlabel_sys_black;
|
|
244
|
+
});
|
|
245
|
+
var sysTextError = (0, styled_components_1.css)(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
242
246
|
var theme = _a.theme;
|
|
243
247
|
return theme.ui_cpnt_textlabel_sys_error;
|
|
244
248
|
});
|
|
245
|
-
var sysTextWarning = (0, styled_components_1.css)(
|
|
249
|
+
var sysTextWarning = (0, styled_components_1.css)(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
246
250
|
var theme = _a.theme;
|
|
247
251
|
return theme.ui_cpnt_textlabel_sys_warning;
|
|
248
252
|
});
|
|
249
|
-
var sysTextBrandPrimary = (0, styled_components_1.css)(
|
|
253
|
+
var sysTextBrandPrimary = (0, styled_components_1.css)(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
250
254
|
var theme = _a.theme;
|
|
251
255
|
return theme.ui_cpnt_textlabel_sys_brandprimary;
|
|
252
256
|
});
|
|
253
|
-
var sysTextBrandSeconVariant = (0, styled_components_1.css)(
|
|
257
|
+
var sysTextBrandSeconVariant = (0, styled_components_1.css)(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
254
258
|
var theme = _a.theme;
|
|
255
259
|
return theme.ui_cpnt_textlabel_sys_brandseconvariant;
|
|
256
260
|
});
|
|
257
|
-
var usrTextBrandPrimary = (0, styled_components_1.css)(
|
|
261
|
+
var usrTextBrandPrimary = (0, styled_components_1.css)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
258
262
|
var theme = _a.theme;
|
|
259
263
|
return theme.ui_cpnt_textlabel_usr_brandprimary;
|
|
260
264
|
});
|
|
261
|
-
var usrTextBrandSeconVariant = (0, styled_components_1.css)(
|
|
265
|
+
var usrTextBrandSeconVariant = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
262
266
|
var theme = _a.theme;
|
|
263
267
|
return theme.ui_cpnt_textlabel_usr_brandseconvariant;
|
|
264
268
|
});
|
|
265
|
-
var usrTextBrandOnPrimary = (0, styled_components_1.css)(
|
|
269
|
+
var usrTextBrandOnPrimary = (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
266
270
|
var theme = _a.theme;
|
|
267
271
|
return theme.ui_cpnt_textlabel_usr_brandonprimary;
|
|
268
272
|
});
|
|
269
|
-
var customFontStyle = (0, styled_components_1.css)(
|
|
273
|
+
var customFontStyle = (0, styled_components_1.css)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n font-size: ", ";\n line-height: 1.5;\n font-weight: ", ";\n"], ["\n font-size: ", ";\n line-height: 1.5;\n font-weight: ", ";\n"])), function (_a) {
|
|
270
274
|
var customFontSize = _a.customFontSize;
|
|
271
275
|
return customFontSize;
|
|
272
276
|
}, function (_a) {
|
|
273
277
|
var theme = _a.theme, customFontWeight = _a.customFontWeight;
|
|
274
278
|
return customFontWeight === 'bold' ? theme.fontWeight.bold : theme.fontWeight.normal;
|
|
275
279
|
});
|
|
276
|
-
var colorOverrideStyle = (0, styled_components_1.css)(
|
|
280
|
+
var colorOverrideStyle = (0, styled_components_1.css)(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
277
281
|
var colorOverride = _a.colorOverride, theme = _a.theme;
|
|
278
282
|
return colorOverride && theme[colorOverride];
|
|
279
283
|
});
|
|
280
|
-
var ellipsisStyle = (0, styled_components_1.css)(
|
|
284
|
+
var ellipsisStyle = (0, styled_components_1.css)(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
|
|
281
285
|
var lineLimit = _a.lineLimit;
|
|
282
286
|
return lineLimit;
|
|
283
287
|
});
|
|
284
|
-
var userSelectModeStyle = (0, styled_components_1.css)(
|
|
285
|
-
var bulletPointModeStyle = (0, styled_components_1.css)(
|
|
286
|
-
var tooltipLeftTop = (0, styled_components_1.css)(
|
|
287
|
-
var tooltipLeftBottom = (0, styled_components_1.css)(
|
|
288
|
-
var tooltipRightTop = (0, styled_components_1.css)(
|
|
289
|
-
var tooltipRightBottom = (0, styled_components_1.css)(
|
|
290
|
-
var S_TextLabel = styled_components_1.default.div(
|
|
288
|
+
var userSelectModeStyle = (0, styled_components_1.css)(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"], ["\n -ms-user-select: none;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n"])));
|
|
289
|
+
var bulletPointModeStyle = (0, styled_components_1.css)(templateObject_35 || (templateObject_35 = __makeTemplateObject(["\n padding-left: 16px;\n ::before {\n content: '\u2022';\n position: absolute;\n left: 0;\n width: 16px;\n }\n"], ["\n padding-left: 16px;\n ::before {\n content: '\u2022';\n position: absolute;\n left: 0;\n width: 16px;\n }\n"])));
|
|
290
|
+
var tooltipLeftTop = (0, styled_components_1.css)(templateObject_36 || (templateObject_36 = __makeTemplateObject(["\n right: 0;\n bottom: 20px;\n"], ["\n right: 0;\n bottom: 20px;\n"])));
|
|
291
|
+
var tooltipLeftBottom = (0, styled_components_1.css)(templateObject_37 || (templateObject_37 = __makeTemplateObject(["\n right: 0;\n top: 20px;\n"], ["\n right: 0;\n top: 20px;\n"])));
|
|
292
|
+
var tooltipRightTop = (0, styled_components_1.css)(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n left: 0;\n bottom: 20px;\n"], ["\n left: 0;\n bottom: 20px;\n"])));
|
|
293
|
+
var tooltipRightBottom = (0, styled_components_1.css)(templateObject_39 || (templateObject_39 = __makeTemplateObject(["\n left: 0;\n top: 20px;\n"], ["\n left: 0;\n top: 20px;\n"])));
|
|
294
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_40 || (templateObject_40 = __makeTemplateObject(["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: ", ";\n overflow-wrap: break-word;\n\n ", ";\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n box-sizing: border-box;\n text-align: ", ";\n white-space: pre-wrap;\n word-break: ", ";\n overflow-wrap: break-word;\n\n ", ";\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
291
295
|
var textAlign = _a.textAlign;
|
|
292
296
|
return textAlign;
|
|
293
297
|
}, function (_a) {
|
|
@@ -333,6 +337,7 @@ var S_TextLabel = styled_components_1.default.div(templateObject_39 || (template
|
|
|
333
337
|
sysTextSecondary: sysTextSecondary,
|
|
334
338
|
sysTextTertiary: sysTextTertiary,
|
|
335
339
|
sysTextWhite: sysTextWhite,
|
|
340
|
+
sysTextBlack: sysTextBlack,
|
|
336
341
|
sysTextError: sysTextError,
|
|
337
342
|
sysTextWarning: sysTextWarning,
|
|
338
343
|
sysTextBrandPrimary: sysTextBrandPrimary,
|
|
@@ -369,7 +374,7 @@ var S_TextLabel = styled_components_1.default.div(templateObject_39 || (template
|
|
|
369
374
|
var bulletPointMode = _a.bulletPointMode;
|
|
370
375
|
return bulletPointMode === 'use' && bulletPointModeStyle;
|
|
371
376
|
});
|
|
372
|
-
var S_AfterTextBox = styled_components_1.default.div(
|
|
377
|
+
var S_AfterTextBox = styled_components_1.default.div(templateObject_41 || (templateObject_41 = __makeTemplateObject(["\n display: inline-block;\n margin-left: ", ";\n position: relative;\n\n ", ";\n"], ["\n display: inline-block;\n margin-left: ", ";\n position: relative;\n\n ", ";\n"])), function (_a) {
|
|
373
378
|
var theme = _a.theme;
|
|
374
379
|
return theme.spacing.spacingA;
|
|
375
380
|
}, function (_a) {
|
|
@@ -385,8 +390,8 @@ var S_AfterTextBox = styled_components_1.default.div(templateObject_40 || (templ
|
|
|
385
390
|
return 'vertical-align: middle';
|
|
386
391
|
}
|
|
387
392
|
});
|
|
388
|
-
var S_IconWrapper = styled_components_1.default.div(
|
|
389
|
-
var S_TooltipWrapper = styled_components_1.default.div(
|
|
393
|
+
var S_IconWrapper = styled_components_1.default.div(templateObject_42 || (templateObject_42 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n width: 16px;\n height: 16px;\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n width: 16px;\n height: 16px;\n"])));
|
|
394
|
+
var S_TooltipWrapper = styled_components_1.default.div(templateObject_43 || (templateObject_43 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n max-width: 320px;\n overflow-wrap: break-word;\n padding: ", ";\n position: absolute;\n text-align: left;\n white-space: pre-wrap;\n width: max-content;\n word-break: keep-all;\n\n ", ";\n\n ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n max-width: 320px;\n overflow-wrap: break-word;\n padding: ", ";\n position: absolute;\n text-align: left;\n white-space: pre-wrap;\n width: max-content;\n word-break: keep-all;\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
390
395
|
var theme = _a.theme;
|
|
391
396
|
return theme.ui_cpnt_contextmenu_base;
|
|
392
397
|
}, function (_a) {
|
|
@@ -424,4 +429,4 @@ var S_TooltipWrapper = styled_components_1.default.div(templateObject_42 || (tem
|
|
|
424
429
|
}[tooltipPosition];
|
|
425
430
|
});
|
|
426
431
|
exports.default = TextLabel;
|
|
427
|
-
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, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42;
|
|
432
|
+
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, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43;
|
|
@@ -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;
|