@hh.ru/magritte-ui-chat-marker 1.0.5 → 1.0.7
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/ChatMarker.d.ts +1 -1
- package/ChatMarker.js +43 -14
- package/ChatMarker.js.map +1 -1
- package/index.css +20 -20
- package/index.d.ts +2 -2
- package/index.mock.d.ts +1 -1
- package/index.mock.js +1 -1
- package/index.mock.js.map +1 -1
- package/package.json +7 -7
package/ChatMarker.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ChatMarkerProps } from '
|
|
1
|
+
import { ChatMarkerProps } from './types';
|
|
2
2
|
export declare const ChatMarker: import("react").ForwardRefExoticComponent<ChatMarkerProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/ChatMarker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
import {
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, useRef, useState } from 'react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { useResizeObserver } from '@hh.ru/magritte-common-resize';
|
|
@@ -8,27 +8,56 @@ import { IconDefaultPropsContext } from '@hh.ru/magritte-ui-icon';
|
|
|
8
8
|
import { LoaderDefaultPropsContext } from '@hh.ru/magritte-ui-loader';
|
|
9
9
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
10
10
|
|
|
11
|
-
var styles = {"chat-marker":"magritte-chat-marker___ya9dO_1-0-
|
|
11
|
+
var styles = {"chat-marker":"magritte-chat-marker___ya9dO_1-0-7","chatMarker":"magritte-chat-marker___ya9dO_1-0-7","line":"magritte-line___0zxh4_1-0-7","icon":"magritte-icon___RUogw_1-0-7","label":"magritte-label___RKh8J_1-0-7","label-outgoing":"magritte-label-outgoing___gqTn0_1-0-7","labelOutgoing":"magritte-label-outgoing___gqTn0_1-0-7","fade-out":"magritte-fade-out___Mog0k_1-0-7","fadeOut":"magritte-fade-out___Mog0k_1-0-7","label-outgoing-centered":"magritte-label-outgoing-centered___GikqE_1-0-7","labelOutgoingCentered":"magritte-label-outgoing-centered___GikqE_1-0-7","label-incoming":"magritte-label-incoming___cq-7a_1-0-7","labelIncoming":"magritte-label-incoming___cq-7a_1-0-7","fade-in":"magritte-fade-in___gDnCc_1-0-7","fadeIn":"magritte-fade-in___gDnCc_1-0-7"};
|
|
12
12
|
|
|
13
|
-
const LABEL_ID =
|
|
14
|
-
const ChatMarker = forwardRef(
|
|
13
|
+
const LABEL_ID = "label";
|
|
14
|
+
const ChatMarker = forwardRef(
|
|
15
|
+
({ className, "data-qa": dataQa = "chat-marker", divider = false, icon, label, mode = "secondary", ...props }, ref) => {
|
|
15
16
|
const labelWidth = useRef(0);
|
|
16
17
|
const [transition, setTransition] = useState({ label, outgoing: null });
|
|
17
18
|
const observeLabel = useResizeObserver((elements) => {
|
|
18
|
-
|
|
19
|
+
labelWidth.current = elements.get(LABEL_ID)?.getBoundingClientRect().width ?? 0;
|
|
19
20
|
});
|
|
20
21
|
if (transition.label !== label) {
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
const width = Math.ceil(labelWidth.current);
|
|
23
|
+
setTransition({ label, outgoing: width > 0 ? { text: transition.label, width } : null });
|
|
23
24
|
}
|
|
24
25
|
const { outgoing } = transition;
|
|
25
|
-
const renderText = (value) =>
|
|
26
|
-
const line = divider &&
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
const renderText = (value) => /* @__PURE__ */ jsx(Text, { typography: "label-3-regular", style: mode, children: value });
|
|
27
|
+
const line = divider && /* @__PURE__ */ jsx("div", { className: styles.line, "data-qa": "chat-marker-divider", "aria-hidden": true, children: /* @__PURE__ */ jsx(Divider, {}) });
|
|
28
|
+
return /* @__PURE__ */ jsxs("div", { ...props, className: classnames(className, styles.chatMarker), "data-qa": dataQa, ref, children: [
|
|
29
|
+
line,
|
|
30
|
+
icon && /* @__PURE__ */ jsx(IconDefaultPropsContext, { props: { initialColor: mode }, children: /* @__PURE__ */ jsx(LoaderDefaultPropsContext, { props: { size: 16, color: mode }, children: /* @__PURE__ */ jsx("span", { className: styles.icon, "data-qa": "chat-marker-icon", "aria-hidden": true, children: icon }) }) }),
|
|
31
|
+
/* @__PURE__ */ jsxs("div", { ref: observeLabel(LABEL_ID), className: styles.label, "data-qa": "chat-marker-label", children: [
|
|
32
|
+
/* @__PURE__ */ jsx(
|
|
33
|
+
"span",
|
|
34
|
+
{
|
|
35
|
+
className: classnames({ [styles.labelIncoming]: outgoing !== null }),
|
|
36
|
+
"data-qa": "chat-marker-label-text",
|
|
37
|
+
children: renderText(label)
|
|
38
|
+
},
|
|
39
|
+
label
|
|
40
|
+
),
|
|
41
|
+
outgoing !== null && /* @__PURE__ */ jsx(
|
|
42
|
+
"span",
|
|
43
|
+
{
|
|
44
|
+
className: classnames(styles.labelOutgoing, {
|
|
45
|
+
[styles.labelOutgoingCentered]: divider
|
|
46
|
+
}),
|
|
47
|
+
style: { width: outgoing.width },
|
|
48
|
+
"data-qa": "chat-marker-label-outgoing",
|
|
49
|
+
onAnimationEnd: () => setTransition({ label, outgoing: null }),
|
|
50
|
+
"aria-hidden": true,
|
|
51
|
+
children: renderText(outgoing.text)
|
|
52
|
+
},
|
|
53
|
+
outgoing.text
|
|
54
|
+
)
|
|
55
|
+
] }),
|
|
56
|
+
line
|
|
57
|
+
] });
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
ChatMarker.displayName = "ChatMarker";
|
|
32
61
|
|
|
33
62
|
export { ChatMarker };
|
|
34
63
|
//# sourceMappingURL=ChatMarker.js.map
|
package/ChatMarker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMarker.js","sources":["src/ChatMarker.tsx"],"sourcesContent":["import { forwardRef, useRef, useState } from 'react';\nimport classnames from 'classnames';\n\nimport { useResizeObserver } from '@hh.ru/magritte-common-resize';\nimport { ChatMarkerProps } from '@hh.ru/magritte-ui-chat-marker/types';\nimport { Divider } from '@hh.ru/magritte-ui-divider';\nimport { IconDefaultPropsContext } from '@hh.ru/magritte-ui-icon';\nimport { LoaderDefaultPropsContext } from '@hh.ru/magritte-ui-loader';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './chat-marker.less';\n\nconst LABEL_ID = 'label';\n\nexport const ChatMarker = forwardRef<HTMLDivElement, ChatMarkerProps>(\n (\n { className, 'data-qa': dataQa = 'chat-marker', divider = false, icon, label, mode = 'secondary', ...props },\n ref\n ) => {\n const labelWidth = useRef(0);\n const [transition, setTransition] = useState<{\n label: string;\n outgoing: { text: string; width: number } | null;\n }>({ label, outgoing: null });\n\n const observeLabel = useResizeObserver((elements) => {\n labelWidth.current = elements.get(LABEL_ID)?.getBoundingClientRect().width ?? 0;\n });\n\n if (transition.label !== label) {\n const width = Math.ceil(labelWidth.current);\n setTransition({ label, outgoing: width > 0 ? { text: transition.label, width } : null });\n }\n\n const { outgoing } = transition;\n\n const renderText = (value: string) => (\n <Text typography=\"label-3-regular\" style={mode}>\n {value}\n </Text>\n );\n\n const line = divider && (\n <div className={styles.line} data-qa=\"chat-marker-divider\" aria-hidden>\n <Divider />\n </div>\n );\n\n return (\n <div {...props} className={classnames(className, styles.chatMarker)} data-qa={dataQa} ref={ref}>\n {line}\n {icon && (\n <IconDefaultPropsContext props={{ initialColor: mode }}>\n <LoaderDefaultPropsContext props={{ size: 16, color: mode }}>\n <span className={styles.icon} data-qa=\"chat-marker-icon\" aria-hidden>\n {icon}\n </span>\n </LoaderDefaultPropsContext>\n </IconDefaultPropsContext>\n )}\n <div ref={observeLabel(LABEL_ID)} className={styles.label} data-qa=\"chat-marker-label\">\n <span\n key={label}\n className={classnames({ [styles.labelIncoming]: outgoing !== null })}\n data-qa=\"chat-marker-label-text\"\n >\n {renderText(label)}\n </span>\n {outgoing !== null && (\n <span\n key={outgoing.text}\n className={classnames(styles.labelOutgoing, {\n [styles.labelOutgoingCentered]: divider,\n })}\n style={{ width: outgoing.width }}\n data-qa=\"chat-marker-label-outgoing\"\n onAnimationEnd={() => setTransition({ label, outgoing: null })}\n aria-hidden\n >\n {renderText(outgoing.text)}\n </span>\n )}\n </div>\n {line}\n </div>\n );\n }\n);\n\nChatMarker.displayName = 'ChatMarker';\n"],"names":[
|
|
1
|
+
{"version":3,"file":"ChatMarker.js","sources":["src/ChatMarker.tsx"],"sourcesContent":["import { forwardRef, useRef, useState } from 'react';\nimport classnames from 'classnames';\n\nimport { useResizeObserver } from '@hh.ru/magritte-common-resize';\nimport { ChatMarkerProps } from '@hh.ru/magritte-ui-chat-marker/types';\nimport { Divider } from '@hh.ru/magritte-ui-divider';\nimport { IconDefaultPropsContext } from '@hh.ru/magritte-ui-icon';\nimport { LoaderDefaultPropsContext } from '@hh.ru/magritte-ui-loader';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './chat-marker.less';\n\nconst LABEL_ID = 'label';\n\nexport const ChatMarker = forwardRef<HTMLDivElement, ChatMarkerProps>(\n (\n { className, 'data-qa': dataQa = 'chat-marker', divider = false, icon, label, mode = 'secondary', ...props },\n ref\n ) => {\n const labelWidth = useRef(0);\n const [transition, setTransition] = useState<{\n label: string;\n outgoing: { text: string; width: number } | null;\n }>({ label, outgoing: null });\n\n const observeLabel = useResizeObserver((elements) => {\n labelWidth.current = elements.get(LABEL_ID)?.getBoundingClientRect().width ?? 0;\n });\n\n if (transition.label !== label) {\n const width = Math.ceil(labelWidth.current);\n setTransition({ label, outgoing: width > 0 ? { text: transition.label, width } : null });\n }\n\n const { outgoing } = transition;\n\n const renderText = (value: string) => (\n <Text typography=\"label-3-regular\" style={mode}>\n {value}\n </Text>\n );\n\n const line = divider && (\n <div className={styles.line} data-qa=\"chat-marker-divider\" aria-hidden>\n <Divider />\n </div>\n );\n\n return (\n <div {...props} className={classnames(className, styles.chatMarker)} data-qa={dataQa} ref={ref}>\n {line}\n {icon && (\n <IconDefaultPropsContext props={{ initialColor: mode }}>\n <LoaderDefaultPropsContext props={{ size: 16, color: mode }}>\n <span className={styles.icon} data-qa=\"chat-marker-icon\" aria-hidden>\n {icon}\n </span>\n </LoaderDefaultPropsContext>\n </IconDefaultPropsContext>\n )}\n <div ref={observeLabel(LABEL_ID)} className={styles.label} data-qa=\"chat-marker-label\">\n <span\n key={label}\n className={classnames({ [styles.labelIncoming]: outgoing !== null })}\n data-qa=\"chat-marker-label-text\"\n >\n {renderText(label)}\n </span>\n {outgoing !== null && (\n <span\n key={outgoing.text}\n className={classnames(styles.labelOutgoing, {\n [styles.labelOutgoingCentered]: divider,\n })}\n style={{ width: outgoing.width }}\n data-qa=\"chat-marker-label-outgoing\"\n onAnimationEnd={() => setTransition({ label, outgoing: null })}\n aria-hidden\n >\n {renderText(outgoing.text)}\n </span>\n )}\n </div>\n {line}\n </div>\n );\n }\n);\n\nChatMarker.displayName = 'ChatMarker';\n"],"names":[],"mappings":";;;;;;;;;;;AAYA,MAAM,QAAW,GAAA,OAAA,CAAA;AAEV,MAAM,UAAa,GAAA,UAAA;AAAA,EACtB,CACI,EAAE,SAAW,EAAA,SAAA,EAAW,SAAS,aAAe,EAAA,OAAA,GAAU,KAAO,EAAA,IAAA,EAAM,OAAO,IAAO,GAAA,WAAA,EAAa,GAAG,KAAA,IACrG,GACC,KAAA;AACD,IAAM,MAAA,UAAA,GAAa,OAAO,CAAC,CAAA,CAAA;AAC3B,IAAM,MAAA,CAAC,YAAY,aAAa,CAAA,GAAI,SAGjC,EAAE,KAAA,EAAO,QAAU,EAAA,IAAA,EAAM,CAAA,CAAA;AAE5B,IAAM,MAAA,YAAA,GAAe,iBAAkB,CAAA,CAAC,QAAa,KAAA;AACjD,MAAA,UAAA,CAAW,UAAU,QAAS,CAAA,GAAA,CAAI,QAAQ,CAAG,EAAA,qBAAA,GAAwB,KAAS,IAAA,CAAA,CAAA;AAAA,KACjF,CAAA,CAAA;AAED,IAAI,IAAA,UAAA,CAAW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-
--magritte-semantic-animation-ease-base-timing-function-
|
|
2
|
+
--magritte-semantic-animation-time-s-duration-v26-0-1:200ms;
|
|
3
|
+
--magritte-semantic-animation-ease-base-timing-function-v26-0-1:cubic-bezier(0.4, 0.24, 0, 1);
|
|
4
4
|
}
|
|
5
|
-
.magritte-chat-marker___ya9dO_1-0-
|
|
5
|
+
.magritte-chat-marker___ya9dO_1-0-7{
|
|
6
6
|
--label-animation-duration:0ms;
|
|
7
7
|
display:flex;
|
|
8
8
|
align-items:flex-start;
|
|
9
9
|
gap:12px;
|
|
10
10
|
}
|
|
11
11
|
@media (prefers-reduced-motion: no-preference){
|
|
12
|
-
.magritte-chat-marker___ya9dO_1-0-
|
|
13
|
-
--label-animation-duration:var(--magritte-semantic-animation-time-s-duration-
|
|
12
|
+
.magritte-chat-marker___ya9dO_1-0-7{
|
|
13
|
+
--label-animation-duration:var(--magritte-semantic-animation-time-s-duration-v26-0-1);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
.magritte-line___0zxh4_1-0-
|
|
17
|
-
.magritte-icon___RUogw_1-0-
|
|
16
|
+
.magritte-line___0zxh4_1-0-7,
|
|
17
|
+
.magritte-icon___RUogw_1-0-7{
|
|
18
18
|
display:flex;
|
|
19
19
|
align-items:center;
|
|
20
20
|
height:20px;
|
|
21
21
|
}
|
|
22
|
-
.magritte-line___0zxh4_1-0-
|
|
22
|
+
.magritte-line___0zxh4_1-0-7{
|
|
23
23
|
flex:1 1 0;
|
|
24
24
|
}
|
|
25
|
-
.magritte-icon___RUogw_1-0-
|
|
25
|
+
.magritte-icon___RUogw_1-0-7{
|
|
26
26
|
flex-shrink:0;
|
|
27
27
|
}
|
|
28
|
-
.magritte-label___RKh8J_1-0-
|
|
28
|
+
.magritte-label___RKh8J_1-0-7{
|
|
29
29
|
position:relative;
|
|
30
30
|
flex:0 1 auto;
|
|
31
31
|
min-width:0;
|
|
32
32
|
}
|
|
33
|
-
.magritte-label-outgoing___gqTn0_1-0-
|
|
33
|
+
.magritte-label-outgoing___gqTn0_1-0-7{
|
|
34
34
|
position:absolute;
|
|
35
35
|
top:0;
|
|
36
36
|
left:0;
|
|
37
|
-
animation-name:magritte-fade-out___Mog0k_1-0-
|
|
37
|
+
animation-name:magritte-fade-out___Mog0k_1-0-7;
|
|
38
38
|
}
|
|
39
|
-
.magritte-label-outgoing-centered___GikqE_1-0-
|
|
39
|
+
.magritte-label-outgoing-centered___GikqE_1-0-7{
|
|
40
40
|
left:50%;
|
|
41
41
|
transform:translateX(-50%);
|
|
42
42
|
}
|
|
43
|
-
.magritte-label-incoming___cq-7a_1-0-
|
|
44
|
-
.magritte-label-outgoing___gqTn0_1-0-
|
|
43
|
+
.magritte-label-incoming___cq-7a_1-0-7,
|
|
44
|
+
.magritte-label-outgoing___gqTn0_1-0-7{
|
|
45
45
|
animation-duration:var(--label-animation-duration);
|
|
46
|
-
animation-timing-function:var(--magritte-semantic-animation-ease-base-timing-function-
|
|
46
|
+
animation-timing-function:var(--magritte-semantic-animation-ease-base-timing-function-v26-0-1);
|
|
47
47
|
animation-fill-mode:forwards;
|
|
48
48
|
}
|
|
49
|
-
.magritte-label-incoming___cq-7a_1-0-
|
|
50
|
-
animation-name:magritte-fade-in___gDnCc_1-0-
|
|
49
|
+
.magritte-label-incoming___cq-7a_1-0-7{
|
|
50
|
+
animation-name:magritte-fade-in___gDnCc_1-0-7;
|
|
51
51
|
}
|
|
52
|
-
@keyframes magritte-fade-in___gDnCc_1-0-
|
|
52
|
+
@keyframes magritte-fade-in___gDnCc_1-0-7{
|
|
53
53
|
from{
|
|
54
54
|
opacity:0;
|
|
55
55
|
}
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
opacity:1;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
@keyframes magritte-fade-out___Mog0k_1-0-
|
|
60
|
+
@keyframes magritte-fade-out___Mog0k_1-0-7{
|
|
61
61
|
from{
|
|
62
62
|
opacity:1;
|
|
63
63
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export { type ChatMarkerMode, type ChatMarkerProps } from '
|
|
1
|
+
export * from './ChatMarker';
|
|
2
|
+
export { type ChatMarkerMode, type ChatMarkerProps } from './types';
|
package/index.mock.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
-
export { type ChatMarkerMode, type ChatMarkerProps } from '
|
|
2
|
+
export { type ChatMarkerMode, type ChatMarkerProps } from './types';
|
|
3
3
|
export declare const ChatMarker: ForwardRefExoticComponent<Record<string, unknown>>;
|
package/index.mock.js
CHANGED
package/index.mock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { ForwardRefExoticComponent } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport { type ChatMarkerMode, type ChatMarkerProps } from '@hh.ru/magritte-ui-chat-marker/types';\n\nexport const ChatMarker: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent('ChatMarker');\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { ForwardRefExoticComponent } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport { type ChatMarkerMode, type ChatMarkerProps } from '@hh.ru/magritte-ui-chat-marker/types';\n\nexport const ChatMarker: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent('ChatMarker');\n"],"names":[],"mappings":";;AAMa,MAAA,UAAA,GAAiE,cAAc,YAAY;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-chat-marker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@hh.ru/magritte-common-resize": "0.2.3",
|
|
26
|
-
"@hh.ru/magritte-design-tokens": "
|
|
27
|
-
"@hh.ru/magritte-ui-divider": "3.2.
|
|
28
|
-
"@hh.ru/magritte-ui-icon": "15.1.
|
|
29
|
-
"@hh.ru/magritte-ui-loader": "4.1.
|
|
26
|
+
"@hh.ru/magritte-design-tokens": "26.0.1",
|
|
27
|
+
"@hh.ru/magritte-ui-divider": "3.2.12",
|
|
28
|
+
"@hh.ru/magritte-ui-icon": "15.1.5",
|
|
29
|
+
"@hh.ru/magritte-ui-loader": "4.1.6",
|
|
30
30
|
"@hh.ru/magritte-ui-mock-component": "1.1.8",
|
|
31
|
-
"@hh.ru/magritte-ui-typography": "5.3.
|
|
31
|
+
"@hh.ru/magritte-ui-typography": "5.3.16"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"classnames": ">=2.3.2",
|
|
35
35
|
"react": ">=18.2.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "f6539d7a0e7cd42dd851458db1de04a748bbee03"
|
|
38
38
|
}
|