@hh.ru/magritte-ui-chat-bubble 3.5.1 → 3.5.2
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/Button.js +1 -1
- package/Call.js +1 -1
- package/ChatBubble.js +1 -1
- package/File.js +1 -1
- package/Footer.js +1 -1
- package/Label.js +1 -1
- package/Media.js +1 -1
- package/Message.js +1 -1
- package/Meta.js +1 -1
- package/Reaction.js +1 -1
- package/Reply.js +1 -1
- package/Snippet.js +1 -1
- package/Status.js +1 -1
- package/Tail.js +1 -1
- package/chat-bubble-DRre2QCX.js +5 -0
- package/chat-bubble-DRre2QCX.js.map +1 -0
- package/index.css +74 -74
- package/index.js +1 -1
- package/package.json +3 -3
- package/chat-bubble-1h_XVTX0.js +0 -5
- package/chat-bubble-1h_XVTX0.js.map +0 -1
package/Button.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { Button } from '@hh.ru/magritte-ui-button';
|
|
6
|
-
import { s as styles } from './chat-bubble-
|
|
6
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
7
7
|
|
|
8
8
|
const ChatBubbleButtonRenderFunc = ({ wide = false, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: classnames({ [styles.buttonWide]: wide }), children: /* @__PURE__ */ jsx(Button, { ...props, ref }) });
|
|
9
9
|
const ChatBubbleButton = forwardRef(ChatBubbleButtonRenderFunc);
|
package/Call.js
CHANGED
|
@@ -6,7 +6,7 @@ import { useChatBubbleColors } from './internal/colors.js';
|
|
|
6
6
|
import { useChatBubbleMode } from './internal/mode.js';
|
|
7
7
|
import { markMetaHost } from './internal/utils.js';
|
|
8
8
|
import { PhoneCrossFilledSize24, PhoneArrowOutFilledSize24, PhoneArrowInFilledSize24 } from '@hh.ru/magritte-ui-icon/icon';
|
|
9
|
-
import { s as styles } from './chat-bubble-
|
|
9
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
10
10
|
|
|
11
11
|
const ChatBubbleCallComponent = forwardRef(
|
|
12
12
|
({ "data-qa": dataQa = "chat-bubble-call", title, description, meta, state = "connected", ...props }, ref) => {
|
package/ChatBubble.js
CHANGED
|
@@ -26,7 +26,7 @@ import { flattenFragments, isMetaHost } from './internal/utils.js';
|
|
|
26
26
|
import { ExclamationCircleFilledSize24, BotFilledSize24 } from '@hh.ru/magritte-ui-icon/icon';
|
|
27
27
|
import { Menu } from '@hh.ru/magritte-ui-menu';
|
|
28
28
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
29
|
-
import { s as styles } from './chat-bubble-
|
|
29
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
30
30
|
import '@hh.ru/magritte-ui-cell';
|
|
31
31
|
import './internal/colors.js';
|
|
32
32
|
import '@hh.ru/magritte-ui-link';
|
package/File.js
CHANGED
|
@@ -7,7 +7,7 @@ import { markMetaHost } from './internal/utils.js';
|
|
|
7
7
|
import { ArrowDownLineOutlinedSize24, DocumentOutlinedSize24, ExclamationTriangleOutlinedSize16 } from '@hh.ru/magritte-ui-icon/icon';
|
|
8
8
|
import { LinkDefaultPropsContext } from '@hh.ru/magritte-ui-link';
|
|
9
9
|
import { Loader } from '@hh.ru/magritte-ui-loader';
|
|
10
|
-
import { s as styles } from './chat-bubble-
|
|
10
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
11
11
|
import './internal/mode.js';
|
|
12
12
|
|
|
13
13
|
const ChatBubbleFileComponent = forwardRef(
|
package/Footer.js
CHANGED
|
@@ -2,7 +2,7 @@ import './index.css';
|
|
|
2
2
|
import { jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { markMetaHost } from './internal/utils.js';
|
|
5
|
-
import { s as styles } from './chat-bubble-
|
|
5
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
6
6
|
|
|
7
7
|
const ChatBubbleFooterComponent = forwardRef(
|
|
8
8
|
({ children, "data-qa": dataQa = "chat-bubble-footer", meta, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ...props, className: styles.footer, "data-qa": dataQa, ref, children: [
|
package/Label.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { useChatBubbleColors } from './internal/colors.js';
|
|
5
5
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
6
|
-
import { s as styles } from './chat-bubble-
|
|
6
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
7
7
|
import './internal/mode.js';
|
|
8
8
|
|
|
9
9
|
const ChatBubbleLabel = forwardRef(({ children, ...props }, ref) => {
|
package/Media.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { markMetaHost } from './internal/utils.js';
|
|
5
5
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
6
|
-
import { s as styles } from './chat-bubble-
|
|
6
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
7
7
|
|
|
8
8
|
const ChatBubbleMediaComponent = forwardRef(
|
|
9
9
|
({ alt, children, "data-qa": dataQa = "chat-bubble-media", meta, src, format, width, height, ...props }, ref) => {
|
package/Message.js
CHANGED
|
@@ -4,7 +4,7 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import { useChatBubbleColors } from './internal/colors.js';
|
|
5
5
|
import { markMetaHost } from './internal/utils.js';
|
|
6
6
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
7
|
-
import { s as styles } from './chat-bubble-
|
|
7
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
8
8
|
import './internal/mode.js';
|
|
9
9
|
|
|
10
10
|
const ChatBubbleMessageComponent = forwardRef(
|
package/Meta.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useTranslation } from '@hh.ru/magritte-common-use-translation';
|
|
4
4
|
import { getColors } from './internal/colors.js';
|
|
5
5
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
6
|
-
import { s as styles } from './chat-bubble-
|
|
6
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
7
7
|
import './internal/mode.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
|
package/Reaction.js
CHANGED
|
@@ -4,7 +4,7 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { useChatBubbleColors } from './internal/colors.js';
|
|
6
6
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
7
|
-
import { s as styles } from './chat-bubble-
|
|
7
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
8
8
|
import './internal/mode.js';
|
|
9
9
|
|
|
10
10
|
const MAX_COUNT = 99;
|
package/Reply.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { useChatBubbleColors } from './internal/colors.js';
|
|
5
5
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
6
|
-
import { s as styles } from './chat-bubble-
|
|
6
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
7
7
|
import './internal/mode.js';
|
|
8
8
|
|
|
9
9
|
const ChatBubbleReply = forwardRef(
|
package/Snippet.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { useChatBubbleColors } from './internal/colors.js';
|
|
5
5
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
6
|
-
import { s as styles } from './chat-bubble-
|
|
6
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
7
7
|
import './internal/mode.js';
|
|
8
8
|
|
|
9
9
|
const ChatBubbleSnippetComponent = forwardRef(
|
package/Status.js
CHANGED
|
@@ -7,7 +7,7 @@ import { getColors } from './internal/colors.js';
|
|
|
7
7
|
import { useChatBubbleMode } from './internal/mode.js';
|
|
8
8
|
import { EyeOutlinedSize16, ClockOutlinedSize16, CheckOutlinedSize16, CheckDoubleOutlinedSize16, TrashOutlinedSize16 } from '@hh.ru/magritte-ui-icon/icon';
|
|
9
9
|
import { TooltipHover } from '@hh.ru/magritte-ui-tooltip';
|
|
10
|
-
import { s as styles } from './chat-bubble-
|
|
10
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
11
11
|
|
|
12
12
|
const ICON = {
|
|
13
13
|
sending: ClockOutlinedSize16,
|
package/Tail.js
CHANGED
|
@@ -2,7 +2,7 @@ import './index.css';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { useChatBubbleMode } from './internal/mode.js';
|
|
5
|
-
import { s as styles } from './chat-bubble-
|
|
5
|
+
import { s as styles } from './chat-bubble-DRre2QCX.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
|
|
8
8
|
const OUTLINE = "M6.5 0C6.5 7.5 5.2 11.8 1.6 13.4C0.9 13.9 0.6 14.5 1.1 14.5H7";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
var styles = {"chat-bubble":"magritte-chat-bubble___ds9CP_3-5-2","chatBubble":"magritte-chat-bubble___ds9CP_3-5-2","outgoing":"magritte-outgoing___3n00o_3-5-2","bot":"magritte-bot___Z6vZA_3-5-2","row":"magritte-row___mQNnt_3-5-2","with-buttons":"magritte-with-buttons___L-ZmQ_3-5-2","withButtons":"magritte-with-buttons___L-ZmQ_3-5-2","bubble":"magritte-bubble___NVuDI_3-5-2","with-tail":"magritte-with-tail___IdixJ_3-5-2","withTail":"magritte-with-tail___IdixJ_3-5-2","tail":"magritte-tail___E2hdk_3-5-2","tail-outgoing":"magritte-tail-outgoing___Pn3MI_3-5-2","tailOutgoing":"magritte-tail-outgoing___Pn3MI_3-5-2","with-avatar":"magritte-with-avatar___8kYWY_3-5-2","withAvatar":"magritte-with-avatar___8kYWY_3-5-2","avatar":"magritte-avatar___khWFX_3-5-2","buttons":"magritte-buttons___yQqBi_3-5-2","button-wide":"magritte-button-wide___QBqmM_3-5-2","buttonWide":"magritte-button-wide___QBqmM_3-5-2","aside":"magritte-aside___bTex-_3-5-2","aside-revealed":"magritte-aside-revealed___CRBl7_3-5-2","asideRevealed":"magritte-aside-revealed___CRBl7_3-5-2","error-text":"magritte-error-text___1ZxWY_3-5-2","errorText":"magritte-error-text___1ZxWY_3-5-2","file":"magritte-file___k2IKy_3-5-2","file-preview":"magritte-file-preview___eJKu8_3-5-2","filePreview":"magritte-file-preview___eJKu8_3-5-2","media":"magritte-media___9jH2k_3-5-2","media-blur":"magritte-media-blur___TbiMa_3-5-2","mediaBlur":"magritte-media-blur___TbiMa_3-5-2","media-image":"magritte-media-image___G-FkF_3-5-2","mediaImage":"magritte-media-image___G-FkF_3-5-2","media-content":"magritte-media-content___n3XbD_3-5-2","mediaContent":"magritte-media-content___n3XbD_3-5-2","media-format":"magritte-media-format___AdfCK_3-5-2","mediaFormat":"magritte-media-format___AdfCK_3-5-2","media-meta":"magritte-media-meta___oSxxr_3-5-2","mediaMeta":"magritte-media-meta___oSxxr_3-5-2","reply":"magritte-reply___-QCK7_3-5-2","reply-preview":"magritte-reply-preview___qvlNT_3-5-2","replyPreview":"magritte-reply-preview___qvlNT_3-5-2","reply-body":"magritte-reply-body___f2xx7_3-5-2","replyBody":"magritte-reply-body___f2xx7_3-5-2","snippet":"magritte-snippet___8k9xb_3-5-2","meta":"magritte-meta___1qhjm_3-5-2","footer":"magritte-footer___LvGQP_3-5-2","reaction":"magritte-reaction___7AabI_3-5-2","reaction-active":"magritte-reaction-active___pWjzJ_3-5-2","reactionActive":"magritte-reaction-active___pWjzJ_3-5-2","edited":"magritte-edited___m-zmB_3-5-2","status":"magritte-status___dHzCt_3-5-2","message-title":"magritte-message-title___dgBFk_3-5-2","messageTitle":"magritte-message-title___dgBFk_3-5-2","label":"magritte-label___i0Wyt_3-5-2","message":"magritte-message___7TEpw_3-5-2"};
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
5
|
+
//# sourceMappingURL=chat-bubble-DRre2QCX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-bubble-DRre2QCX.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/index.css
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
--magritte-color-component-chat-bubble-snippet-background-outgoing-v26-0-3:#90ACC1;
|
|
49
49
|
--magritte-color-component-chat-bubble-snippet-line-incoming-v26-0-3:#557B96;
|
|
50
50
|
}
|
|
51
|
-
.magritte-chat-bubble___ds9CP_3-5-
|
|
51
|
+
.magritte-chat-bubble___ds9CP_3-5-2{
|
|
52
52
|
--magritte-chat-bubble-background:var(--magritte-color-component-chat-bubble-background-incoming-v26-0-3);
|
|
53
53
|
--magritte-chat-bubble-border:var(--magritte-color-component-chat-bubble-border-incoming-v26-0-3);
|
|
54
54
|
--magritte-chat-bubble-snippet-background:var(--magritte-color-component-chat-bubble-snippet-background-incoming-v26-0-3);
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
align-items:flex-start;
|
|
61
61
|
max-width:min(460px, calc(100% - 40px));
|
|
62
62
|
}
|
|
63
|
-
.magritte-outgoing___3n00o_3-5-
|
|
63
|
+
.magritte-outgoing___3n00o_3-5-2{
|
|
64
64
|
--magritte-chat-bubble-background:var(--magritte-color-component-chat-bubble-background-outgoing-v26-0-3);
|
|
65
65
|
--magritte-chat-bubble-border:var(--magritte-color-component-chat-bubble-border-outgoing-v26-0-3);
|
|
66
66
|
--magritte-chat-bubble-snippet-background:var(--magritte-color-component-chat-bubble-snippet-background-outgoing-v26-0-3);
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
align-items:flex-end;
|
|
71
71
|
margin-left:auto;
|
|
72
72
|
}
|
|
73
|
-
.magritte-bot___Z6vZA_3-5-
|
|
73
|
+
.magritte-bot___Z6vZA_3-5-2{
|
|
74
74
|
--magritte-chat-bubble-background:var(--magritte-color-component-chat-bubble-background-bot-v26-0-3);
|
|
75
75
|
--magritte-chat-bubble-border:var(--magritte-color-component-chat-bubble-border-bot-v26-0-3);
|
|
76
76
|
--magritte-chat-bubble-snippet-background:var(--magritte-color-component-chat-bubble-snippet-background-bot-v26-0-3);
|
|
@@ -78,20 +78,20 @@
|
|
|
78
78
|
--magritte-chat-bubble-reaction-background:var(--magritte-color-component-chat-bubble-reactions-background-bot-v26-0-3);
|
|
79
79
|
--magritte-chat-bubble-reaction-background-active:var(--magritte-color-component-chat-bubble-reactions-background-state-bot-active-v26-0-3);
|
|
80
80
|
}
|
|
81
|
-
.magritte-row___mQNnt_3-5-
|
|
81
|
+
.magritte-row___mQNnt_3-5-2{
|
|
82
82
|
display:flex;
|
|
83
83
|
position:relative;
|
|
84
84
|
align-items:flex-end;
|
|
85
85
|
gap:8px;
|
|
86
86
|
max-width:100%;
|
|
87
87
|
}
|
|
88
|
-
.magritte-with-buttons___L-ZmQ_3-5-
|
|
88
|
+
.magritte-with-buttons___L-ZmQ_3-5-2 .magritte-row___mQNnt_3-5-2{
|
|
89
89
|
align-self:stretch;
|
|
90
90
|
}
|
|
91
|
-
.magritte-with-buttons___L-ZmQ_3-5-
|
|
91
|
+
.magritte-with-buttons___L-ZmQ_3-5-2 .magritte-bubble___NVuDI_3-5-2{
|
|
92
92
|
flex-grow:1;
|
|
93
93
|
}
|
|
94
|
-
.magritte-bubble___NVuDI_3-5-
|
|
94
|
+
.magritte-bubble___NVuDI_3-5-2{
|
|
95
95
|
position:relative;
|
|
96
96
|
box-sizing:border-box;
|
|
97
97
|
min-width:0;
|
|
@@ -102,52 +102,52 @@
|
|
|
102
102
|
border-radius:20px;
|
|
103
103
|
overflow-wrap:break-word;
|
|
104
104
|
}
|
|
105
|
-
.magritte-with-tail___IdixJ_3-5-
|
|
105
|
+
.magritte-with-tail___IdixJ_3-5-2 .magritte-bubble___NVuDI_3-5-2{
|
|
106
106
|
border-bottom-left-radius:0;
|
|
107
107
|
}
|
|
108
|
-
.magritte-with-tail___IdixJ_3-5-
|
|
108
|
+
.magritte-with-tail___IdixJ_3-5-2.magritte-outgoing___3n00o_3-5-2 .magritte-bubble___NVuDI_3-5-2{
|
|
109
109
|
border-bottom-left-radius:20px;
|
|
110
110
|
border-bottom-right-radius:0;
|
|
111
111
|
}
|
|
112
|
-
.magritte-tail___E2hdk_3-5-
|
|
112
|
+
.magritte-tail___E2hdk_3-5-2{
|
|
113
113
|
position:absolute;
|
|
114
114
|
bottom:-1px;
|
|
115
115
|
left:-7px;
|
|
116
116
|
}
|
|
117
|
-
.magritte-tail-outgoing___Pn3MI_3-5-
|
|
117
|
+
.magritte-tail-outgoing___Pn3MI_3-5-2{
|
|
118
118
|
left:auto;
|
|
119
119
|
right:-7px;
|
|
120
120
|
transform:scaleX(-1);
|
|
121
121
|
}
|
|
122
|
-
.magritte-with-avatar___8kYWY_3-5-
|
|
122
|
+
.magritte-with-avatar___8kYWY_3-5-2{
|
|
123
123
|
display:grid;
|
|
124
124
|
grid-template-columns:auto minmax(0, 1fr);
|
|
125
125
|
align-items:end;
|
|
126
126
|
justify-items:start;
|
|
127
127
|
}
|
|
128
|
-
.magritte-with-avatar___8kYWY_3-5-
|
|
128
|
+
.magritte-with-avatar___8kYWY_3-5-2 > :not(.magritte-avatar___khWFX_3-5-2){
|
|
129
129
|
grid-column:2;
|
|
130
130
|
}
|
|
131
|
-
.magritte-with-avatar___8kYWY_3-5-
|
|
131
|
+
.magritte-with-avatar___8kYWY_3-5-2.magritte-with-buttons___L-ZmQ_3-5-2 .magritte-row___mQNnt_3-5-2{
|
|
132
132
|
justify-self:stretch;
|
|
133
133
|
}
|
|
134
|
-
.magritte-avatar___khWFX_3-5-
|
|
134
|
+
.magritte-avatar___khWFX_3-5-2{
|
|
135
135
|
display:flex;
|
|
136
136
|
grid-row:1;
|
|
137
137
|
grid-column:1;
|
|
138
138
|
margin-right:6px;
|
|
139
139
|
}
|
|
140
|
-
.magritte-buttons___yQqBi_3-5-
|
|
140
|
+
.magritte-buttons___yQqBi_3-5-2{
|
|
141
141
|
display:grid;
|
|
142
142
|
grid-template-columns:repeat(2, minmax(0, 1fr));
|
|
143
143
|
gap:8px;
|
|
144
144
|
width:100%;
|
|
145
145
|
margin-top:4px;
|
|
146
146
|
}
|
|
147
|
-
.magritte-button-wide___QBqmM_3-5-
|
|
147
|
+
.magritte-button-wide___QBqmM_3-5-2{
|
|
148
148
|
grid-column:span 2;
|
|
149
149
|
}
|
|
150
|
-
.magritte-aside___bTex-_3-5-
|
|
150
|
+
.magritte-aside___bTex-_3-5-2{
|
|
151
151
|
display:flex;
|
|
152
152
|
position:absolute;
|
|
153
153
|
top:0;
|
|
@@ -158,30 +158,30 @@
|
|
|
158
158
|
opacity:0;
|
|
159
159
|
transition:opacity var(--magritte-semantic-animation-time-s-duration-v26-0-3) ease-in-out;
|
|
160
160
|
}
|
|
161
|
-
.magritte-aside-revealed___CRBl7_3-5-
|
|
161
|
+
.magritte-aside-revealed___CRBl7_3-5-2{
|
|
162
162
|
opacity:1;
|
|
163
163
|
}
|
|
164
|
-
.magritte-outgoing___3n00o_3-5-
|
|
164
|
+
.magritte-outgoing___3n00o_3-5-2 .magritte-aside___bTex-_3-5-2{
|
|
165
165
|
left:auto;
|
|
166
166
|
right:100%;
|
|
167
167
|
padding-right:8px;
|
|
168
168
|
padding-left:0;
|
|
169
169
|
}
|
|
170
|
-
.magritte-error-text___1ZxWY_3-5-
|
|
170
|
+
.magritte-error-text___1ZxWY_3-5-2{
|
|
171
171
|
margin-top:2px;
|
|
172
172
|
}
|
|
173
|
-
.magritte-file___k2IKy_3-5-
|
|
173
|
+
.magritte-file___k2IKy_3-5-2{
|
|
174
174
|
display:flex;
|
|
175
175
|
align-items:flex-end;
|
|
176
176
|
}
|
|
177
|
-
.magritte-file-preview___eJKu8_3-5-
|
|
177
|
+
.magritte-file-preview___eJKu8_3-5-2{
|
|
178
178
|
display:block;
|
|
179
179
|
width:48px;
|
|
180
180
|
height:48px;
|
|
181
181
|
border-radius:8px;
|
|
182
182
|
object-fit:cover;
|
|
183
183
|
}
|
|
184
|
-
.magritte-media___9jH2k_3-5-
|
|
184
|
+
.magritte-media___9jH2k_3-5-2{
|
|
185
185
|
display:flex;
|
|
186
186
|
position:relative;
|
|
187
187
|
box-sizing:border-box;
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
overflow:hidden;
|
|
194
194
|
box-shadow:inset 0 0 0 1px var(--magritte-color-component-chat-bubble-border-image-v26-0-3);
|
|
195
195
|
}
|
|
196
|
-
.magritte-media-blur___TbiMa_3-5-
|
|
196
|
+
.magritte-media-blur___TbiMa_3-5-2{
|
|
197
197
|
position:absolute;
|
|
198
198
|
top:-96px;
|
|
199
199
|
left:-96px;
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
filter:blur(48px);
|
|
204
204
|
object-fit:cover;
|
|
205
205
|
}
|
|
206
|
-
.magritte-media-image___G-FkF_3-5-
|
|
206
|
+
.magritte-media-image___G-FkF_3-5-2{
|
|
207
207
|
display:block;
|
|
208
208
|
position:relative;
|
|
209
209
|
height:auto;
|
|
@@ -213,23 +213,23 @@
|
|
|
213
213
|
object-fit:contain;
|
|
214
214
|
}
|
|
215
215
|
@media (min-width: 1020px){
|
|
216
|
-
body.magritte-old-layout .magritte-media-image___G-FkF_3-5-
|
|
216
|
+
body.magritte-old-layout .magritte-media-image___G-FkF_3-5-2{
|
|
217
217
|
max-height:452px;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
@media (min-width: 1024px){
|
|
221
|
-
body:not(.magritte-old-layout) .magritte-media-image___G-FkF_3-5-
|
|
221
|
+
body:not(.magritte-old-layout) .magritte-media-image___G-FkF_3-5-2{
|
|
222
222
|
max-height:452px;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
.magritte-media-content___n3XbD_3-5-
|
|
225
|
+
.magritte-media-content___n3XbD_3-5-2{
|
|
226
226
|
display:flex;
|
|
227
227
|
position:absolute;
|
|
228
228
|
inset:0;
|
|
229
229
|
align-items:center;
|
|
230
230
|
justify-content:center;
|
|
231
231
|
}
|
|
232
|
-
.magritte-media-format___AdfCK_3-5-
|
|
232
|
+
.magritte-media-format___AdfCK_3-5-2{
|
|
233
233
|
display:flex;
|
|
234
234
|
position:absolute;
|
|
235
235
|
padding:2px 8px;
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
top:4px;
|
|
240
240
|
left:4px;
|
|
241
241
|
}
|
|
242
|
-
.magritte-media-meta___oSxxr_3-5-
|
|
242
|
+
.magritte-media-meta___oSxxr_3-5-2{
|
|
243
243
|
--magritte-ui-text-color-override:var(--magritte-color-text-constant-v26-0-3);
|
|
244
244
|
display:flex;
|
|
245
245
|
position:absolute;
|
|
@@ -251,14 +251,14 @@
|
|
|
251
251
|
bottom:4px;
|
|
252
252
|
align-items:center;
|
|
253
253
|
}
|
|
254
|
-
.magritte-media-meta___oSxxr_3-5-
|
|
255
|
-
.magritte-media-meta___oSxxr_3-5-
|
|
254
|
+
.magritte-media-meta___oSxxr_3-5-2:empty,
|
|
255
|
+
.magritte-media-meta___oSxxr_3-5-2:has(> :empty){
|
|
256
256
|
display:none;
|
|
257
257
|
}
|
|
258
|
-
.magritte-media-meta___oSxxr_3-5-
|
|
258
|
+
.magritte-media-meta___oSxxr_3-5-2 > span{
|
|
259
259
|
margin-left:0;
|
|
260
260
|
}
|
|
261
|
-
.magritte-reply___-QCK7_3-5-
|
|
261
|
+
.magritte-reply___-QCK7_3-5-2{
|
|
262
262
|
display:flex;
|
|
263
263
|
position:relative;
|
|
264
264
|
padding:8px;
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
align-items:center;
|
|
270
270
|
gap:8px;
|
|
271
271
|
}
|
|
272
|
-
.magritte-reply___-QCK7_3-5-
|
|
272
|
+
.magritte-reply___-QCK7_3-5-2::before{
|
|
273
273
|
content:'';
|
|
274
274
|
position:absolute;
|
|
275
275
|
top:0;
|
|
@@ -278,7 +278,7 @@
|
|
|
278
278
|
width:4px;
|
|
279
279
|
background-color:var(--magritte-chat-bubble-snippet-line);
|
|
280
280
|
}
|
|
281
|
-
.magritte-reply-preview___qvlNT_3-5-
|
|
281
|
+
.magritte-reply-preview___qvlNT_3-5-2{
|
|
282
282
|
display:block;
|
|
283
283
|
flex-shrink:0;
|
|
284
284
|
width:40px;
|
|
@@ -288,12 +288,12 @@
|
|
|
288
288
|
outline-offset:-1px;
|
|
289
289
|
object-fit:cover;
|
|
290
290
|
}
|
|
291
|
-
.magritte-reply-body___f2xx7_3-5-
|
|
291
|
+
.magritte-reply-body___f2xx7_3-5-2{
|
|
292
292
|
display:flex;
|
|
293
293
|
flex-direction:column;
|
|
294
294
|
min-width:0;
|
|
295
295
|
}
|
|
296
|
-
.magritte-snippet___8k9xb_3-5-
|
|
296
|
+
.magritte-snippet___8k9xb_3-5-2{
|
|
297
297
|
display:flex;
|
|
298
298
|
position:relative;
|
|
299
299
|
padding:8px;
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
flex-direction:column;
|
|
305
305
|
gap:2px;
|
|
306
306
|
}
|
|
307
|
-
.magritte-snippet___8k9xb_3-5-
|
|
307
|
+
.magritte-snippet___8k9xb_3-5-2::before{
|
|
308
308
|
content:'';
|
|
309
309
|
position:absolute;
|
|
310
310
|
top:0;
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
width:4px;
|
|
314
314
|
background-color:var(--magritte-chat-bubble-snippet-line);
|
|
315
315
|
}
|
|
316
|
-
.magritte-snippet___8k9xb_3-5-
|
|
316
|
+
.magritte-snippet___8k9xb_3-5-2 img{
|
|
317
317
|
display:block;
|
|
318
318
|
max-width:100%;
|
|
319
319
|
border-radius:4px;
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
outline-offset:-1px;
|
|
322
322
|
margin-top:6px;
|
|
323
323
|
}
|
|
324
|
-
.magritte-meta___1qhjm_3-5-
|
|
324
|
+
.magritte-meta___1qhjm_3-5-2{
|
|
325
325
|
float:right;
|
|
326
326
|
margin-left:12px;
|
|
327
327
|
white-space:nowrap;
|
|
@@ -334,17 +334,17 @@
|
|
|
334
334
|
text-transform:none;
|
|
335
335
|
text-decoration:none;
|
|
336
336
|
}
|
|
337
|
-
.magritte-footer___LvGQP_3-5-
|
|
337
|
+
.magritte-footer___LvGQP_3-5-2{
|
|
338
338
|
display:flex;
|
|
339
339
|
flex-wrap:wrap;
|
|
340
340
|
align-items:flex-end;
|
|
341
341
|
gap:4px;
|
|
342
342
|
}
|
|
343
|
-
.magritte-footer___LvGQP_3-5-
|
|
343
|
+
.magritte-footer___LvGQP_3-5-2 > .magritte-meta___1qhjm_3-5-2{
|
|
344
344
|
margin-left:auto;
|
|
345
345
|
padding-left:8px;
|
|
346
346
|
}
|
|
347
|
-
.magritte-reaction___7AabI_3-5-
|
|
347
|
+
.magritte-reaction___7AabI_3-5-2{
|
|
348
348
|
display:inline-flex;
|
|
349
349
|
align-items:center;
|
|
350
350
|
gap:4px;
|
|
@@ -354,65 +354,65 @@
|
|
|
354
354
|
border-radius:16px;
|
|
355
355
|
background-color:var(--magritte-chat-bubble-reaction-background);
|
|
356
356
|
}
|
|
357
|
-
.magritte-reaction___7AabI_3-5-
|
|
357
|
+
.magritte-reaction___7AabI_3-5-2:disabled{
|
|
358
358
|
cursor:default;
|
|
359
359
|
}
|
|
360
|
-
.magritte-reaction___7AabI_3-5-
|
|
360
|
+
.magritte-reaction___7AabI_3-5-2.focus-visible{
|
|
361
361
|
outline:var(--magritte-color-stroke-state-focused-accessible-v26-0-3) solid 4px;
|
|
362
362
|
}
|
|
363
|
-
.magritte-reaction-active___pWjzJ_3-5-
|
|
363
|
+
.magritte-reaction-active___pWjzJ_3-5-2{
|
|
364
364
|
background-color:var(--magritte-chat-bubble-reaction-background-active);
|
|
365
365
|
}
|
|
366
|
-
.magritte-edited___m-zmB_3-5-
|
|
366
|
+
.magritte-edited___m-zmB_3-5-2{
|
|
367
367
|
margin-right:4px;
|
|
368
368
|
}
|
|
369
|
-
.magritte-status___dHzCt_3-5-
|
|
369
|
+
.magritte-status___dHzCt_3-5-2{
|
|
370
370
|
display:inline-flex;
|
|
371
371
|
vertical-align:middle;
|
|
372
372
|
}
|
|
373
|
-
.magritte-status___dHzCt_3-5-
|
|
373
|
+
.magritte-status___dHzCt_3-5-2:not(:first-child){
|
|
374
374
|
margin-left:4px;
|
|
375
375
|
}
|
|
376
|
-
.magritte-message-title___dgBFk_3-5-
|
|
376
|
+
.magritte-message-title___dgBFk_3-5-2{
|
|
377
377
|
margin-bottom:4px;
|
|
378
378
|
}
|
|
379
|
-
.magritte-label___i0Wyt_3-5-
|
|
380
|
-
.magritte-label___i0Wyt_3-5-
|
|
381
|
-
.magritte-label___i0Wyt_3-5-
|
|
382
|
-
.magritte-message___7TEpw_3-5-
|
|
383
|
-
.magritte-bubble___NVuDI_3-5-
|
|
379
|
+
.magritte-label___i0Wyt_3-5-2 + .magritte-media___9jH2k_3-5-2,
|
|
380
|
+
.magritte-label___i0Wyt_3-5-2 + .magritte-message___7TEpw_3-5-2,
|
|
381
|
+
.magritte-label___i0Wyt_3-5-2 + .magritte-snippet___8k9xb_3-5-2,
|
|
382
|
+
.magritte-message___7TEpw_3-5-2 + .magritte-message___7TEpw_3-5-2,
|
|
383
|
+
.magritte-bubble___NVuDI_3-5-2 > .magritte-meta___1qhjm_3-5-2{
|
|
384
384
|
margin-top:4px;
|
|
385
385
|
}
|
|
386
|
-
.magritte-label___i0Wyt_3-5-
|
|
387
|
-
.magritte-reply___-QCK7_3-5-
|
|
388
|
-
.magritte-reply___-QCK7_3-5-
|
|
389
|
-
.magritte-reply___-QCK7_3-5-
|
|
390
|
-
.magritte-media___9jH2k_3-5-
|
|
386
|
+
.magritte-label___i0Wyt_3-5-2 + .magritte-reply___-QCK7_3-5-2,
|
|
387
|
+
.magritte-reply___-QCK7_3-5-2 + .magritte-media___9jH2k_3-5-2,
|
|
388
|
+
.magritte-reply___-QCK7_3-5-2 + .magritte-message___7TEpw_3-5-2,
|
|
389
|
+
.magritte-reply___-QCK7_3-5-2 + .magritte-snippet___8k9xb_3-5-2,
|
|
390
|
+
.magritte-media___9jH2k_3-5-2 + .magritte-snippet___8k9xb_3-5-2{
|
|
391
391
|
margin-top:8px;
|
|
392
392
|
}
|
|
393
|
-
.magritte-label___i0Wyt_3-5-
|
|
394
|
-
.magritte-reply___-QCK7_3-5-
|
|
395
|
-
.magritte-media___9jH2k_3-5-
|
|
396
|
-
.magritte-media___9jH2k_3-5-
|
|
397
|
-
.magritte-file___k2IKy_3-5-
|
|
398
|
-
.magritte-file___k2IKy_3-5-
|
|
393
|
+
.magritte-label___i0Wyt_3-5-2 + .magritte-file___k2IKy_3-5-2,
|
|
394
|
+
.magritte-reply___-QCK7_3-5-2 + .magritte-file___k2IKy_3-5-2,
|
|
395
|
+
.magritte-media___9jH2k_3-5-2 + .magritte-file___k2IKy_3-5-2,
|
|
396
|
+
.magritte-media___9jH2k_3-5-2 + .magritte-message___7TEpw_3-5-2,
|
|
397
|
+
.magritte-file___k2IKy_3-5-2 + .magritte-message___7TEpw_3-5-2,
|
|
398
|
+
.magritte-file___k2IKy_3-5-2 + .magritte-snippet___8k9xb_3-5-2{
|
|
399
399
|
margin-top:12px;
|
|
400
400
|
}
|
|
401
|
-
.magritte-message___7TEpw_3-5-
|
|
401
|
+
.magritte-message___7TEpw_3-5-2 + .magritte-snippet___8k9xb_3-5-2{
|
|
402
402
|
margin-top:16px;
|
|
403
403
|
}
|
|
404
|
-
.magritte-bubble___NVuDI_3-5-
|
|
404
|
+
.magritte-bubble___NVuDI_3-5-2 > .magritte-footer___LvGQP_3-5-2{
|
|
405
405
|
margin-top:16px;
|
|
406
406
|
}
|
|
407
|
-
.magritte-file___k2IKy_3-5-
|
|
407
|
+
.magritte-file___k2IKy_3-5-2 + .magritte-file___k2IKy_3-5-2{
|
|
408
408
|
margin-top:24px;
|
|
409
409
|
}
|
|
410
|
-
.magritte-label___i0Wyt_3-5-
|
|
410
|
+
.magritte-label___i0Wyt_3-5-2{
|
|
411
411
|
margin-top:-4px;
|
|
412
412
|
}
|
|
413
|
-
.magritte-bubble___NVuDI_3-5-
|
|
413
|
+
.magritte-bubble___NVuDI_3-5-2 > .magritte-media___9jH2k_3-5-2:first-child{
|
|
414
414
|
margin-top:-8px;
|
|
415
415
|
}
|
|
416
|
-
.magritte-bubble___NVuDI_3-5-
|
|
416
|
+
.magritte-bubble___NVuDI_3-5-2 > .magritte-media___9jH2k_3-5-2:not(:has( ~ :not(.magritte-tail___E2hdk_3-5-2))){
|
|
417
417
|
margin-bottom:-8px;
|
|
418
418
|
}
|
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import '@hh.ru/magritte-common-mouse';
|
|
|
7
7
|
import '@hh.ru/magritte-ui-avatar';
|
|
8
8
|
import '@hh.ru/magritte-ui-button';
|
|
9
9
|
import './Button.js';
|
|
10
|
-
import './chat-bubble-
|
|
10
|
+
import './chat-bubble-DRre2QCX.js';
|
|
11
11
|
import './Call.js';
|
|
12
12
|
import '@hh.ru/magritte-ui-cell';
|
|
13
13
|
import './internal/colors.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-chat-bubble",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@hh.ru/magritte-ui-icon": "16.0.0",
|
|
36
36
|
"@hh.ru/magritte-ui-link": "7.3.2",
|
|
37
37
|
"@hh.ru/magritte-ui-loader": "4.2.2",
|
|
38
|
-
"@hh.ru/magritte-ui-menu": "1.1.
|
|
38
|
+
"@hh.ru/magritte-ui-menu": "1.1.9",
|
|
39
39
|
"@hh.ru/magritte-ui-mock-component": "1.1.9",
|
|
40
40
|
"@hh.ru/magritte-ui-tooltip": "11.1.2",
|
|
41
41
|
"@hh.ru/magritte-ui-typography": "5.3.18"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "65935950106d9a4084807711f544bd6ecedb382f"
|
|
51
51
|
}
|
package/chat-bubble-1h_XVTX0.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"chat-bubble":"magritte-chat-bubble___ds9CP_3-5-1","chatBubble":"magritte-chat-bubble___ds9CP_3-5-1","outgoing":"magritte-outgoing___3n00o_3-5-1","bot":"magritte-bot___Z6vZA_3-5-1","row":"magritte-row___mQNnt_3-5-1","with-buttons":"magritte-with-buttons___L-ZmQ_3-5-1","withButtons":"magritte-with-buttons___L-ZmQ_3-5-1","bubble":"magritte-bubble___NVuDI_3-5-1","with-tail":"magritte-with-tail___IdixJ_3-5-1","withTail":"magritte-with-tail___IdixJ_3-5-1","tail":"magritte-tail___E2hdk_3-5-1","tail-outgoing":"magritte-tail-outgoing___Pn3MI_3-5-1","tailOutgoing":"magritte-tail-outgoing___Pn3MI_3-5-1","with-avatar":"magritte-with-avatar___8kYWY_3-5-1","withAvatar":"magritte-with-avatar___8kYWY_3-5-1","avatar":"magritte-avatar___khWFX_3-5-1","buttons":"magritte-buttons___yQqBi_3-5-1","button-wide":"magritte-button-wide___QBqmM_3-5-1","buttonWide":"magritte-button-wide___QBqmM_3-5-1","aside":"magritte-aside___bTex-_3-5-1","aside-revealed":"magritte-aside-revealed___CRBl7_3-5-1","asideRevealed":"magritte-aside-revealed___CRBl7_3-5-1","error-text":"magritte-error-text___1ZxWY_3-5-1","errorText":"magritte-error-text___1ZxWY_3-5-1","file":"magritte-file___k2IKy_3-5-1","file-preview":"magritte-file-preview___eJKu8_3-5-1","filePreview":"magritte-file-preview___eJKu8_3-5-1","media":"magritte-media___9jH2k_3-5-1","media-blur":"magritte-media-blur___TbiMa_3-5-1","mediaBlur":"magritte-media-blur___TbiMa_3-5-1","media-image":"magritte-media-image___G-FkF_3-5-1","mediaImage":"magritte-media-image___G-FkF_3-5-1","media-content":"magritte-media-content___n3XbD_3-5-1","mediaContent":"magritte-media-content___n3XbD_3-5-1","media-format":"magritte-media-format___AdfCK_3-5-1","mediaFormat":"magritte-media-format___AdfCK_3-5-1","media-meta":"magritte-media-meta___oSxxr_3-5-1","mediaMeta":"magritte-media-meta___oSxxr_3-5-1","reply":"magritte-reply___-QCK7_3-5-1","reply-preview":"magritte-reply-preview___qvlNT_3-5-1","replyPreview":"magritte-reply-preview___qvlNT_3-5-1","reply-body":"magritte-reply-body___f2xx7_3-5-1","replyBody":"magritte-reply-body___f2xx7_3-5-1","snippet":"magritte-snippet___8k9xb_3-5-1","meta":"magritte-meta___1qhjm_3-5-1","footer":"magritte-footer___LvGQP_3-5-1","reaction":"magritte-reaction___7AabI_3-5-1","reaction-active":"magritte-reaction-active___pWjzJ_3-5-1","reactionActive":"magritte-reaction-active___pWjzJ_3-5-1","edited":"magritte-edited___m-zmB_3-5-1","status":"magritte-status___dHzCt_3-5-1","message-title":"magritte-message-title___dgBFk_3-5-1","messageTitle":"magritte-message-title___dgBFk_3-5-1","label":"magritte-label___i0Wyt_3-5-1","message":"magritte-message___7TEpw_3-5-1"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=chat-bubble-1h_XVTX0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat-bubble-1h_XVTX0.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|