@hh.ru/magritte-ui-chat-input 1.3.9 → 1.3.11

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/index.css CHANGED
@@ -35,7 +35,7 @@
35
35
  --magritte-gradient-component-chat-input-background-fade-v26-0-3:#1b1b1b00 0%, #1b1b1b 100%;
36
36
  --magritte-shadow-level-1-color-v26-0-3:#00000029;
37
37
  }
38
- .magritte-chat-input___P69oN_1-3-9{
38
+ .magritte-chat-input___P69oN_1-3-11{
39
39
  --chat-input-stroke-color:var(--magritte-color-stroke-neutral-v26-0-3);
40
40
  --chat-input-focus-shadow:0 0 0 transparent;
41
41
  position:relative;
@@ -47,7 +47,7 @@
47
47
  background-color:var(--magritte-color-background-primary-v26-0-3);
48
48
  --magritte-ui-scrollbar-offset-right:-12px;
49
49
  }
50
- .magritte-chat-input___P69oN_1-3-9::after{
50
+ .magritte-chat-input___P69oN_1-3-11::after{
51
51
  content:'';
52
52
  position:absolute;
53
53
  z-index:1;
@@ -56,106 +56,106 @@
56
56
  box-shadow:inset 0 0 0 1px var(--chat-input-stroke-color);
57
57
  pointer-events:none;
58
58
  }
59
- .magritte-chat-input___P69oN_1-3-9.magritte-no-background___eiIY1_1-3-9{
59
+ .magritte-chat-input___P69oN_1-3-11.magritte-no-background___eiIY1_1-3-11{
60
60
  background:none;
61
61
  --chat-input-stroke-color:transparent !important;
62
62
  }
63
- .magritte-chat-input___P69oN_1-3-9:has(*:focus){
63
+ .magritte-chat-input___P69oN_1-3-11:has(*:focus){
64
64
  --chat-input-focus-shadow:var(--magritte-shadow-level-1-x-v26-0-3) var(--magritte-shadow-level-1-y-v26-0-3) var(--magritte-shadow-level-1-blur-v26-0-3) var(--magritte-shadow-level-1-spread-v26-0-3) var(--magritte-shadow-level-1-color-v26-0-3);
65
65
  }
66
- .magritte-chat-input___P69oN_1-3-9:has(.magritte-text-input-focused___TfyLu_1-3-9){
66
+ .magritte-chat-input___P69oN_1-3-11:has(.magritte-text-input-focused___TfyLu_1-3-11){
67
67
  outline:4px solid var(--magritte-color-stroke-state-focused-accessible-v26-0-3);
68
68
  }
69
69
  @media (min-width: 1020px){
70
- body.magritte-old-layout .magritte-chat-input___P69oN_1-3-9:hover{
70
+ body.magritte-old-layout .magritte-chat-input___P69oN_1-3-11:hover{
71
71
  --chat-input-stroke-color:var(--magritte-color-stroke-state-neutral-hovered-v26-0-3);
72
72
  }
73
73
  }
74
74
  @media (min-width: 1024px){
75
- body:not(.magritte-old-layout) .magritte-chat-input___P69oN_1-3-9:hover{
75
+ body:not(.magritte-old-layout) .magritte-chat-input___P69oN_1-3-11:hover{
76
76
  --chat-input-stroke-color:var(--magritte-color-stroke-state-neutral-hovered-v26-0-3);
77
77
  }
78
78
  }
79
- .magritte-content-grid___g03sT_1-3-9{
79
+ .magritte-content-grid___g03sT_1-3-11{
80
80
  display:grid;
81
81
  grid-template-columns:auto minmax(0, 1fr) auto;
82
82
  }
83
- .magritte-content-grid___g03sT_1-3-9 .magritte-preview___baXKi_1-3-9{
83
+ .magritte-content-grid___g03sT_1-3-11 .magritte-preview___baXKi_1-3-11{
84
84
  grid-area:1 / 1 / 2 / -1;
85
85
  }
86
- .magritte-content-grid___g03sT_1-3-9 .magritte-left___7JZYp_1-3-9{
86
+ .magritte-content-grid___g03sT_1-3-11 .magritte-left___7JZYp_1-3-11{
87
87
  grid-area:3 / 1;
88
88
  align-self:end;
89
89
  }
90
- .magritte-content-grid___g03sT_1-3-9 .magritte-central___zkguj_1-3-9{
90
+ .magritte-content-grid___g03sT_1-3-11 .magritte-central___zkguj_1-3-11{
91
91
  grid-area:3 / 2;
92
92
  align-self:center;
93
93
  }
94
- .magritte-content-grid___g03sT_1-3-9 .magritte-right___-tGcO_1-3-9{
94
+ .magritte-content-grid___g03sT_1-3-11 .magritte-right___-tGcO_1-3-11{
95
95
  grid-area:3 / 3;
96
96
  align-self:end;
97
97
  }
98
- .magritte-content-grid___g03sT_1-3-9 .magritte-scrollbar-cell___--M2x_1-3-9{
98
+ .magritte-content-grid___g03sT_1-3-11 .magritte-scrollbar-cell___--M2x_1-3-11{
99
99
  grid-area:2 / 1 / 3 / -1;
100
100
  position:relative;
101
101
  pointer-events:none;
102
102
  }
103
- .magritte-content-grid___g03sT_1-3-9 .magritte-scrollbar-cell___--M2x_1-3-9 > div{
103
+ .magritte-content-grid___g03sT_1-3-11 .magritte-scrollbar-cell___--M2x_1-3-11 > div{
104
104
  pointer-events:auto;
105
105
  }
106
- .magritte-content-grid___g03sT_1-3-9 .magritte-text-input___3AFO4_1-3-9{
106
+ .magritte-content-grid___g03sT_1-3-11 .magritte-text-input___3AFO4_1-3-11{
107
107
  grid-area:3 / 2;
108
108
  }
109
- .magritte-content-grid___g03sT_1-3-9 .magritte-text-input___3AFO4_1-3-9.magritte-layout-vertical___mVTr-_1-3-9,
110
- .magritte-content-grid___g03sT_1-3-9.magritte-has-central___VRZik_1-3-9 .magritte-text-input___3AFO4_1-3-9{
109
+ .magritte-content-grid___g03sT_1-3-11 .magritte-text-input___3AFO4_1-3-11.magritte-layout-vertical___mVTr-_1-3-11,
110
+ .magritte-content-grid___g03sT_1-3-11.magritte-has-central___VRZik_1-3-11 .magritte-text-input___3AFO4_1-3-11{
111
111
  grid-area:2 / 1 / 3 / -1;
112
112
  }
113
- .magritte-content-grid___g03sT_1-3-9.magritte-no-left-controls___7r6yy_1-3-9:not(.magritte-has-central___VRZik_1-3-9) .magritte-text-input___3AFO4_1-3-9{
113
+ .magritte-content-grid___g03sT_1-3-11.magritte-no-left-controls___7r6yy_1-3-11:not(.magritte-has-central___VRZik_1-3-11) .magritte-text-input___3AFO4_1-3-11{
114
114
  grid-area:2 / 1 / 4 / 3;
115
115
  }
116
- .magritte-content-grid___g03sT_1-3-9.magritte-no-right-controls___HBSag_1-3-9:not(.magritte-has-central___VRZik_1-3-9) .magritte-text-input___3AFO4_1-3-9{
116
+ .magritte-content-grid___g03sT_1-3-11.magritte-no-right-controls___HBSag_1-3-11:not(.magritte-has-central___VRZik_1-3-11) .magritte-text-input___3AFO4_1-3-11{
117
117
  grid-area:2 / 2 / 4 / -1;
118
118
  }
119
- .magritte-content-grid___g03sT_1-3-9.magritte-no-left-controls___7r6yy_1-3-9:not(.magritte-has-central___VRZik_1-3-9){
119
+ .magritte-content-grid___g03sT_1-3-11.magritte-no-left-controls___7r6yy_1-3-11:not(.magritte-has-central___VRZik_1-3-11){
120
120
  grid-template-rows:auto minmax(0, 1fr) auto;
121
121
  }
122
- .magritte-right___-tGcO_1-3-9,
123
- .magritte-left___7JZYp_1-3-9{
122
+ .magritte-right___-tGcO_1-3-11,
123
+ .magritte-left___7JZYp_1-3-11{
124
124
  display:flex;
125
125
  gap:8px;
126
126
  }
127
- .magritte-chips___gLao5_1-3-9{
127
+ .magritte-chips___gLao5_1-3-11{
128
128
  display:flex;
129
129
  flex-wrap:nowrap;
130
130
  width:max-content;
131
131
  gap:8px;
132
132
  }
133
- .magritte-chips-container___-bS5O_1-3-9{
133
+ .magritte-chips-container___-bS5O_1-3-11{
134
134
  padding:0 12px;
135
135
  }
136
- .magritte-no-left-controls___7r6yy_1-3-9 .magritte-chips-container___-bS5O_1-3-9{
136
+ .magritte-no-left-controls___7r6yy_1-3-11 .magritte-chips-container___-bS5O_1-3-11{
137
137
  padding-left:0;
138
138
  }
139
- .magritte-no-right-controls___HBSag_1-3-9 .magritte-chips-container___-bS5O_1-3-9{
139
+ .magritte-no-right-controls___HBSag_1-3-11 .magritte-chips-container___-bS5O_1-3-11{
140
140
  padding-right:0;
141
141
  }
142
- .magritte-preview-block___iiPdS_1-3-9{
142
+ .magritte-preview-block___iiPdS_1-3-11{
143
143
  display:flex;
144
144
  align-items:center;
145
145
  gap:12px;
146
146
  padding-bottom:8px;
147
147
  }
148
- .magritte-preview-side___ymR-u_1-3-9{
148
+ .magritte-preview-side___ymR-u_1-3-11{
149
149
  display:flex;
150
150
  flex-shrink:0;
151
151
  }
152
- .magritte-preview-content___ZgyBD_1-3-9{
152
+ .magritte-preview-content___ZgyBD_1-3-11{
153
153
  display:flex;
154
154
  flex:1;
155
155
  flex-direction:column;
156
156
  min-width:0;
157
157
  }
158
- .magritte-preview-title___SkFeZ_1-3-9{
158
+ .magritte-preview-title___SkFeZ_1-3-11{
159
159
  font-family:"hh sans";
160
160
  font-weight:500;
161
161
  line-height:18px;
@@ -166,7 +166,7 @@
166
166
  text-decoration:none;
167
167
  color:var(--magritte-color-text-primary-v26-0-3);
168
168
  }
169
- .magritte-preview-subtitle___58qfR_1-3-9{
169
+ .magritte-preview-subtitle___58qfR_1-3-11{
170
170
  font-family:"hh sans";
171
171
  font-weight:400;
172
172
  line-height:20px;
@@ -180,21 +180,21 @@
180
180
  white-space:nowrap;
181
181
  text-overflow:ellipsis;
182
182
  }
183
- .magritte-files-container___zOkRK_1-3-9{
183
+ .magritte-files-container___zOkRK_1-3-11{
184
184
  padding-bottom:8px;
185
185
  }
186
- .magritte-files___j2q5K_1-3-9{
186
+ .magritte-files___j2q5K_1-3-11{
187
187
  display:flex;
188
188
  flex-wrap:nowrap;
189
189
  align-items:flex-start;
190
190
  width:max-content;
191
191
  gap:8px;
192
192
  }
193
- .magritte-file___lz9Ll_1-3-9{
193
+ .magritte-file___lz9Ll_1-3-11{
194
194
  position:relative;
195
195
  }
196
- .magritte-file-card___hn5C9_1-3-9::after,
197
- .magritte-file-tile___OVlh3_1-3-9::after{
196
+ .magritte-file-card___hn5C9_1-3-11::after,
197
+ .magritte-file-tile___OVlh3_1-3-11::after{
198
198
  content:'';
199
199
  position:absolute;
200
200
  inset:0;
@@ -202,7 +202,7 @@
202
202
  border-radius:inherit;
203
203
  pointer-events:none;
204
204
  }
205
- .magritte-file-card___hn5C9_1-3-9{
205
+ .magritte-file-card___hn5C9_1-3-11{
206
206
  position:relative;
207
207
  box-sizing:border-box;
208
208
  width:280px;
@@ -210,13 +210,13 @@
210
210
  border-radius:12px;
211
211
  background-color:var(--magritte-color-background-primary-v26-0-3);
212
212
  }
213
- .magritte-file-card___hn5C9_1-3-9::after{
213
+ .magritte-file-card___hn5C9_1-3-11::after{
214
214
  border-color:var(--magritte-color-stroke-neutral-v26-0-3);
215
215
  }
216
- .magritte-file-card-removable___GkxUe_1-3-9{
216
+ .magritte-file-card-removable___GkxUe_1-3-11{
217
217
  padding-right:32px;
218
218
  }
219
- .magritte-file-tile___OVlh3_1-3-9{
219
+ .magritte-file-tile___OVlh3_1-3-11{
220
220
  position:relative;
221
221
  display:flex;
222
222
  align-items:center;
@@ -226,41 +226,41 @@
226
226
  overflow:hidden;
227
227
  border-radius:12px;
228
228
  }
229
- .magritte-file-tile___OVlh3_1-3-9::after{
229
+ .magritte-file-tile___OVlh3_1-3-11::after{
230
230
  border-color:var(--magritte-color-stroke-phantom-v26-0-3);
231
231
  }
232
- .magritte-file-tile-placeholder___yxLuR_1-3-9{
232
+ .magritte-file-tile-placeholder___yxLuR_1-3-11{
233
233
  background-color:var(--magritte-color-background-secondary-v26-0-3);
234
234
  }
235
- .magritte-file-tile-image___cZFgL_1-3-9{
235
+ .magritte-file-tile-image___cZFgL_1-3-11{
236
236
  display:block;
237
237
  width:100%;
238
238
  height:100%;
239
239
  object-fit:cover;
240
240
  }
241
- .magritte-file-remove___S0WB9_1-3-9{
241
+ .magritte-file-remove___S0WB9_1-3-11{
242
242
  position:absolute;
243
243
  top:4px;
244
244
  right:4px;
245
245
  display:flex;
246
246
  }
247
- .magritte-file-name___L03-O_1-3-9{
247
+ .magritte-file-name___L03-O_1-3-11{
248
248
  display:flex;
249
249
  min-width:0;
250
250
  }
251
- .magritte-file-name-base___ojdp6_1-3-9{
251
+ .magritte-file-name-base___ojdp6_1-3-11{
252
252
  overflow:hidden;
253
253
  white-space:nowrap;
254
254
  text-overflow:ellipsis;
255
255
  }
256
- .magritte-file-name-extension___3QZtS_1-3-9{
256
+ .magritte-file-name-extension___3QZtS_1-3-11{
257
257
  flex-shrink:0;
258
258
  white-space:nowrap;
259
259
  }
260
- .magritte-text-input-wrapper___TPbwC_1-3-9{
260
+ .magritte-text-input-wrapper___TPbwC_1-3-11{
261
261
  display:contents;
262
262
  }
263
- .magritte-text-input___3AFO4_1-3-9{
263
+ .magritte-text-input___3AFO4_1-3-11{
264
264
  box-sizing:content-box;
265
265
  padding:0 12px;
266
266
  border:none;
@@ -284,32 +284,32 @@
284
284
  text-decoration:none;
285
285
  color:var(--magritte-color-text-primary-v26-0-3);
286
286
  }
287
- .magritte-text-input___3AFO4_1-3-9::placeholder{
287
+ .magritte-text-input___3AFO4_1-3-11::placeholder{
288
288
  color:var(--magritte-color-text-tertiary-v26-0-3);
289
289
  opacity:1;
290
290
  }
291
- .magritte-text-input___3AFO4_1-3-9:focus,
292
- .magritte-text-input___3AFO4_1-3-9:focus-visible{
291
+ .magritte-text-input___3AFO4_1-3-11:focus,
292
+ .magritte-text-input___3AFO4_1-3-11:focus-visible{
293
293
  border:none;
294
294
  outline:none;
295
295
  }
296
- .magritte-text-input___3AFO4_1-3-9.magritte-with-top-fade___okgqo_1-3-9,
297
- .magritte-text-input___3AFO4_1-3-9.magritte-with-bottom-fade___82gr8_1-3-9{
296
+ .magritte-text-input___3AFO4_1-3-11.magritte-with-top-fade___okgqo_1-3-11,
297
+ .magritte-text-input___3AFO4_1-3-11.magritte-with-bottom-fade___82gr8_1-3-11{
298
298
  -webkit-mask:var(--fade-top) top / 100% 16px no-repeat, linear-gradient(#000, #000) center / 100% calc(100% - 32px) no-repeat, var(--fade-bottom) bottom / 100% 16px no-repeat;
299
299
  mask:var(--fade-top) top / 100% 16px no-repeat, linear-gradient(#000, #000) center / 100% calc(100% - 32px) no-repeat, var(--fade-bottom) bottom / 100% 16px no-repeat;
300
300
  }
301
- .magritte-text-input___3AFO4_1-3-9.magritte-with-top-fade___okgqo_1-3-9{
301
+ .magritte-text-input___3AFO4_1-3-11.magritte-with-top-fade___okgqo_1-3-11{
302
302
  --fade-top:linear-gradient(180deg, var(--magritte-gradient-component-chat-input-background-fade-v26-0-3));
303
303
  }
304
- .magritte-text-input___3AFO4_1-3-9.magritte-with-bottom-fade___82gr8_1-3-9{
304
+ .magritte-text-input___3AFO4_1-3-11.magritte-with-bottom-fade___82gr8_1-3-11{
305
305
  --fade-bottom:linear-gradient(0deg, var(--magritte-gradient-component-chat-input-background-fade-v26-0-3));
306
306
  }
307
- .magritte-text-input___3AFO4_1-3-9.magritte-measure___xNKc0_1-3-9{
307
+ .magritte-text-input___3AFO4_1-3-11.magritte-measure___xNKc0_1-3-11{
308
308
  height:20px !important;
309
309
  padding:0 !important;
310
310
  margin:0 !important;
311
311
  }
312
- .magritte-voice-record___p64PV_1-3-9{
312
+ .magritte-voice-record___p64PV_1-3-11{
313
313
  display:flex;
314
314
  align-items:center;
315
315
  justify-content:space-between;
@@ -319,45 +319,45 @@
319
319
  min-height:40px;
320
320
  gap:8px;
321
321
  }
322
- .magritte-voice-record-left___njEt-_1-3-9{
322
+ .magritte-voice-record-left___njEt-_1-3-11{
323
323
  display:flex;
324
324
  align-items:center;
325
325
  gap:8px;
326
326
  min-width:0;
327
327
  }
328
- .magritte-voice-record-right___UTv-U_1-3-9{
328
+ .magritte-voice-record-right___UTv-U_1-3-11{
329
329
  display:flex;
330
330
  align-items:center;
331
331
  gap:8px;
332
332
  }
333
- .magritte-voice-record-right___UTv-U_1-3-9.magritte-voice-processing___C0xnX_1-3-9{
333
+ .magritte-voice-record-right___UTv-U_1-3-11.magritte-voice-processing___C0xnX_1-3-11{
334
334
  padding:8px;
335
335
  }
336
- .magritte-voice-record-indicator___V8ybb_1-3-9{
336
+ .magritte-voice-record-indicator___V8ybb_1-3-11{
337
337
  display:flex;
338
338
  flex-shrink:0;
339
339
  align-items:center;
340
340
  gap:2px;
341
341
  }
342
- .magritte-voice-record-indicator-bar___jgyqz_1-3-9{
342
+ .magritte-voice-record-indicator-bar___jgyqz_1-3-11{
343
343
  width:2px;
344
344
  min-height:2px;
345
345
  max-height:2px;
346
346
  border-radius:1000px;
347
347
  background-color:var(--magritte-color-icon-tertiary-v26-0-3);
348
348
  transition:max-height var(--magritte-semantic-animation-time-s-duration-v26-0-3) var(--magritte-semantic-animation-ease-base-timing-function-v26-0-3);
349
- animation:magritte-voice-record-indicator-wave___4VsyE_1-3-9 400ms linear infinite alternate paused;
349
+ animation:magritte-voice-record-indicator-wave___4VsyE_1-3-11 400ms linear infinite alternate paused;
350
350
  }
351
- .magritte-voice-record-indicator-has-sound___67t5g_1-3-9 .magritte-voice-record-indicator-bar___jgyqz_1-3-9{
351
+ .magritte-voice-record-indicator-has-sound___67t5g_1-3-11 .magritte-voice-record-indicator-bar___jgyqz_1-3-11{
352
352
  max-height:27px;
353
353
  animation-play-state:running;
354
354
  }
355
355
  @media (prefers-reduced-motion: reduce){
356
- .magritte-voice-record-indicator-has-sound___67t5g_1-3-9 .magritte-voice-record-indicator-bar___jgyqz_1-3-9{
356
+ .magritte-voice-record-indicator-has-sound___67t5g_1-3-11 .magritte-voice-record-indicator-bar___jgyqz_1-3-11{
357
357
  animation-play-state:paused;
358
358
  }
359
359
  }
360
- @keyframes magritte-voice-record-indicator-wave___4VsyE_1-3-9{
360
+ @keyframes magritte-voice-record-indicator-wave___4VsyE_1-3-11{
361
361
  from{
362
362
  height:calc(var(--target-height) * 0.62px);
363
363
  }
@@ -365,12 +365,12 @@
365
365
  height:calc(var(--target-height) * 1.22px);
366
366
  }
367
367
  }
368
- .magritte-mode-container___nATVD_1-3-9{
368
+ .magritte-mode-container___nATVD_1-3-11{
369
369
  position:relative;
370
370
  display:grid;
371
371
  align-content:end;
372
372
  }
373
- .magritte-voice-overlay___LbxAI_1-3-9{
373
+ .magritte-voice-overlay___LbxAI_1-3-11{
374
374
  position:absolute;
375
375
  right:0;
376
376
  bottom:0;
package/index.js CHANGED
@@ -10,7 +10,7 @@ import './internal/ChatInputContext.js';
10
10
  import './internal/ModeTransition.js';
11
11
  import 'motion/react';
12
12
  import '@hh.ru/magritte-design-tokens/core-tokens';
13
- import './styles-CmyjQgad.js';
13
+ import './styles-BLVgpKqi.js';
14
14
  import './internal/TextInput.js';
15
15
  import './internal/useSendOnEnter.js';
16
16
  import '@hh.ru/magritte-common-keyboard';
@@ -2,7 +2,7 @@ import './../index.css';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useReducedMotion, motion } from 'motion/react';
4
4
  import CoreTokens from '@hh.ru/magritte-design-tokens/core-tokens';
5
- import { s as styles } from '../styles-CmyjQgad.js';
5
+ import { s as styles } from '../styles-BLVgpKqi.js';
6
6
 
7
7
  const EASE_BASE = CoreTokens["magritte-semantic-animation-ease-base"];
8
8
  const MODE_TRANSITION_DURATION_MS = CoreTokens["magritte-semantic-animation-time-s"].duration;
@@ -5,7 +5,7 @@ import classNames from 'classnames';
5
5
  import { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';
6
6
  import { useSendOnEnter } from './useSendOnEnter.js';
7
7
  import { useScrollbar, Scrollbar } from '@hh.ru/magritte-ui-scrollbar';
8
- import { s as styles } from '../styles-CmyjQgad.js';
8
+ import { s as styles } from '../styles-BLVgpKqi.js';
9
9
  import '@hh.ru/magritte-common-keyboard';
10
10
 
11
11
  const MIN_HEIGHT = 20;
@@ -10,7 +10,7 @@ import { useVoiceConfig } from './voiceSlotRegistry.js';
10
10
  import { CrossOutlinedSize24, CheckOutlinedSize24 } from '@hh.ru/magritte-ui-icon/icon';
11
11
  import { Loader } from '@hh.ru/magritte-ui-loader';
12
12
  import { Text } from '@hh.ru/magritte-ui-typography';
13
- import { s as styles } from '../styles-CmyjQgad.js';
13
+ import { s as styles } from '../styles-BLVgpKqi.js';
14
14
  import './useHasSound.js';
15
15
  import '@hh.ru/magritte-internal-slot-registry';
16
16
 
@@ -2,7 +2,7 @@ import './../index.css';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import classNames from 'classnames';
4
4
  import { useHasSound } from './useHasSound.js';
5
- import { s as styles } from '../styles-CmyjQgad.js';
5
+ import { s as styles } from '../styles-BLVgpKqi.js';
6
6
  import 'react';
7
7
 
8
8
  const TARGET_HEIGHT = [2, 11, 22, 22, 22, 11, 22, 11, 6, 2];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-chat-input",
3
- "version": "1.3.9",
3
+ "version": "1.3.11",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -35,17 +35,17 @@
35
35
  "@hh.ru/magritte-common-keyboard": "4.3.7",
36
36
  "@hh.ru/magritte-common-use-disabled": "1.0.17",
37
37
  "@hh.ru/magritte-common-use-multiple-refs": "1.1.13",
38
- "@hh.ru/magritte-common-use-translation": "3.10.0",
38
+ "@hh.ru/magritte-common-use-translation": "3.11.0",
39
39
  "@hh.ru/magritte-design-tokens": "26.0.3",
40
40
  "@hh.ru/magritte-internal-slot-registry": "1.1.2",
41
- "@hh.ru/magritte-ui-cell": "7.4.4",
42
- "@hh.ru/magritte-ui-chips": "7.1.8",
43
- "@hh.ru/magritte-ui-icon": "16.0.2",
44
- "@hh.ru/magritte-ui-link": "7.3.4",
45
- "@hh.ru/magritte-ui-loader": "4.2.4",
46
- "@hh.ru/magritte-ui-scrollable-container": "6.7.7",
41
+ "@hh.ru/magritte-ui-cell": "7.4.6",
42
+ "@hh.ru/magritte-ui-chips": "7.1.10",
43
+ "@hh.ru/magritte-ui-icon": "16.0.3",
44
+ "@hh.ru/magritte-ui-link": "7.3.5",
45
+ "@hh.ru/magritte-ui-loader": "4.2.5",
46
+ "@hh.ru/magritte-ui-scrollable-container": "6.7.9",
47
47
  "@hh.ru/magritte-ui-scrollbar": "1.1.1",
48
- "@hh.ru/magritte-ui-typography": "5.3.18"
48
+ "@hh.ru/magritte-ui-typography": "5.3.19"
49
49
  },
50
- "gitHead": "1e9e763ce8f848327190d46e9e8e65ed8f20eb86"
50
+ "gitHead": "c6df2d9c2f75667eed4efaca8cb3a79197230178"
51
51
  }
@@ -20,7 +20,7 @@ import { ChatInputSendButton } from './ChatInputSendButton.js';
20
20
  import { ChatInputVoiceButton } from './ChatInputVoiceButton.js';
21
21
  import { CHAT_INPUT_SLOT_ICON_DEFAULTS } from '../slotDefaults.js';
22
22
  import { IconDefaultPropsContext } from '@hh.ru/magritte-ui-icon';
23
- import { s as styles } from '../styles-CmyjQgad.js';
23
+ import { s as styles } from '../styles-BLVgpKqi.js';
24
24
  import 'motion/react';
25
25
  import '@hh.ru/magritte-design-tokens/core-tokens';
26
26
  import '../internal/useSendOnEnter.js';
@@ -5,7 +5,7 @@ import { flattenFragments } from '../internal/flattenFragments.js';
5
5
  import { CHAT_INPUT_CHIP_DEFAULTS } from '../slotDefaults.js';
6
6
  import { ChipDefaultPropsContext } from '@hh.ru/magritte-ui-chips';
7
7
  import { ScrollableContainer } from '@hh.ru/magritte-ui-scrollable-container';
8
- import { s as styles } from '../styles-CmyjQgad.js';
8
+ import { s as styles } from '../styles-BLVgpKqi.js';
9
9
 
10
10
  const ChatInputChips = ({ children }) => /* @__PURE__ */ jsx("div", { className: styles.chipsContainer, children: /* @__PURE__ */ jsx(ChipDefaultPropsContext, { props: CHAT_INPUT_CHIP_DEFAULTS, children: /* @__PURE__ */ jsx(ScrollableContainer, { children: /* @__PURE__ */ jsx(ScrollableContainer.DefaultLayout, { size: "small", fadeOnMobile: true, children: /* @__PURE__ */ jsx(ScrollableContainer.Gallery, { children: /* @__PURE__ */ jsx("div", { className: styles.chips, children: flattenFragments(children).map((child, index) => /* @__PURE__ */ jsx(ScrollableContainer.Item, { children: child }, isValidElement(child) && child.key || index)) }) }) }) }) }) });
11
11
  ChatInputChips.displayName = "ChatInputChips";
@@ -9,7 +9,7 @@ import { CrossOutlinedSize16, CheckCircleOutlinedSize16, ExclamationTriangleOutl
9
9
  import { LinkDefaultPropsContext } from '@hh.ru/magritte-ui-link';
10
10
  import { Loader } from '@hh.ru/magritte-ui-loader';
11
11
  import { TextDefaultPropsContext } from '@hh.ru/magritte-ui-typography';
12
- import { s as styles } from '../styles-CmyjQgad.js';
12
+ import { s as styles } from '../styles-BLVgpKqi.js';
13
13
 
14
14
  const splitFileName = (name) => {
15
15
  const dotIndex = name.lastIndexOf(".");
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { isValidElement } from 'react';
4
4
  import { flattenFragments } from '../internal/flattenFragments.js';
5
5
  import { ScrollableContainer } from '@hh.ru/magritte-ui-scrollable-container';
6
- import { s as styles } from '../styles-CmyjQgad.js';
6
+ import { s as styles } from '../styles-BLVgpKqi.js';
7
7
 
8
8
  const ChatInputFiles = ({ children }) => /* @__PURE__ */ jsx("div", { className: styles.filesContainer, "data-qa": "chat-input-files", children: /* @__PURE__ */ jsx(ScrollableContainer, { correction: 11, children: /* @__PURE__ */ jsx(ScrollableContainer.DefaultLayout, { size: "small", noFadeOnDesktop: true, buttonsOffset: 8, buttonsOnHover: true, children: /* @__PURE__ */ jsx(ScrollableContainer.Gallery, { children: /* @__PURE__ */ jsx("div", { className: styles.files, children: flattenFragments(children).map((child, index) => /* @__PURE__ */ jsx(
9
9
  ScrollableContainer.Item,
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { CHAT_INPUT_PREVIEW_ICON_DEFAULTS } from '../slotDefaults.js';
4
4
  import { IconDefaultPropsContext } from '@hh.ru/magritte-ui-icon';
5
5
  import { TextDefaultPropsContext } from '@hh.ru/magritte-ui-typography';
6
- import { s as styles } from '../styles-CmyjQgad.js';
6
+ import { s as styles } from '../styles-BLVgpKqi.js';
7
7
 
8
8
  const TITLE_TEXT_PROPS = { typography: "subtitle-3-semibold", style: "primary" };
9
9
  const SUBTITLE_TEXT_PROPS = { typography: "label-3-regular", style: "secondary", ellipsis: true };
@@ -0,0 +1,5 @@
1
+ import './index.css';
2
+ var styles = {"chat-input":"magritte-chat-input___P69oN_1-3-11","chatInput":"magritte-chat-input___P69oN_1-3-11","no-background":"magritte-no-background___eiIY1_1-3-11","noBackground":"magritte-no-background___eiIY1_1-3-11","text-input-focused":"magritte-text-input-focused___TfyLu_1-3-11","textInputFocused":"magritte-text-input-focused___TfyLu_1-3-11","content-grid":"magritte-content-grid___g03sT_1-3-11","contentGrid":"magritte-content-grid___g03sT_1-3-11","preview":"magritte-preview___baXKi_1-3-11","left":"magritte-left___7JZYp_1-3-11","central":"magritte-central___zkguj_1-3-11","right":"magritte-right___-tGcO_1-3-11","scrollbar-cell":"magritte-scrollbar-cell___--M2x_1-3-11","scrollbarCell":"magritte-scrollbar-cell___--M2x_1-3-11","text-input":"magritte-text-input___3AFO4_1-3-11","textInput":"magritte-text-input___3AFO4_1-3-11","layout-vertical":"magritte-layout-vertical___mVTr-_1-3-11","layoutVertical":"magritte-layout-vertical___mVTr-_1-3-11","has-central":"magritte-has-central___VRZik_1-3-11","hasCentral":"magritte-has-central___VRZik_1-3-11","no-left-controls":"magritte-no-left-controls___7r6yy_1-3-11","noLeftControls":"magritte-no-left-controls___7r6yy_1-3-11","no-right-controls":"magritte-no-right-controls___HBSag_1-3-11","noRightControls":"magritte-no-right-controls___HBSag_1-3-11","chips":"magritte-chips___gLao5_1-3-11","chips-container":"magritte-chips-container___-bS5O_1-3-11","chipsContainer":"magritte-chips-container___-bS5O_1-3-11","preview-block":"magritte-preview-block___iiPdS_1-3-11","previewBlock":"magritte-preview-block___iiPdS_1-3-11","preview-side":"magritte-preview-side___ymR-u_1-3-11","previewSide":"magritte-preview-side___ymR-u_1-3-11","preview-content":"magritte-preview-content___ZgyBD_1-3-11","previewContent":"magritte-preview-content___ZgyBD_1-3-11","preview-title":"magritte-preview-title___SkFeZ_1-3-11","previewTitle":"magritte-preview-title___SkFeZ_1-3-11","preview-subtitle":"magritte-preview-subtitle___58qfR_1-3-11","previewSubtitle":"magritte-preview-subtitle___58qfR_1-3-11","files-container":"magritte-files-container___zOkRK_1-3-11","filesContainer":"magritte-files-container___zOkRK_1-3-11","files":"magritte-files___j2q5K_1-3-11","file":"magritte-file___lz9Ll_1-3-11","file-card":"magritte-file-card___hn5C9_1-3-11","fileCard":"magritte-file-card___hn5C9_1-3-11","file-tile":"magritte-file-tile___OVlh3_1-3-11","fileTile":"magritte-file-tile___OVlh3_1-3-11","file-card-removable":"magritte-file-card-removable___GkxUe_1-3-11","fileCardRemovable":"magritte-file-card-removable___GkxUe_1-3-11","file-tile-placeholder":"magritte-file-tile-placeholder___yxLuR_1-3-11","fileTilePlaceholder":"magritte-file-tile-placeholder___yxLuR_1-3-11","file-tile-image":"magritte-file-tile-image___cZFgL_1-3-11","fileTileImage":"magritte-file-tile-image___cZFgL_1-3-11","file-remove":"magritte-file-remove___S0WB9_1-3-11","fileRemove":"magritte-file-remove___S0WB9_1-3-11","file-name":"magritte-file-name___L03-O_1-3-11","fileName":"magritte-file-name___L03-O_1-3-11","file-name-base":"magritte-file-name-base___ojdp6_1-3-11","fileNameBase":"magritte-file-name-base___ojdp6_1-3-11","file-name-extension":"magritte-file-name-extension___3QZtS_1-3-11","fileNameExtension":"magritte-file-name-extension___3QZtS_1-3-11","text-input-wrapper":"magritte-text-input-wrapper___TPbwC_1-3-11","textInputWrapper":"magritte-text-input-wrapper___TPbwC_1-3-11","with-top-fade":"magritte-with-top-fade___okgqo_1-3-11","withTopFade":"magritte-with-top-fade___okgqo_1-3-11","with-bottom-fade":"magritte-with-bottom-fade___82gr8_1-3-11","withBottomFade":"magritte-with-bottom-fade___82gr8_1-3-11","measure":"magritte-measure___xNKc0_1-3-11","voice-record":"magritte-voice-record___p64PV_1-3-11","voiceRecord":"magritte-voice-record___p64PV_1-3-11","voice-record-left":"magritte-voice-record-left___njEt-_1-3-11","voiceRecordLeft":"magritte-voice-record-left___njEt-_1-3-11","voice-record-right":"magritte-voice-record-right___UTv-U_1-3-11","voiceRecordRight":"magritte-voice-record-right___UTv-U_1-3-11","voice-processing":"magritte-voice-processing___C0xnX_1-3-11","voiceProcessing":"magritte-voice-processing___C0xnX_1-3-11","voice-record-indicator":"magritte-voice-record-indicator___V8ybb_1-3-11","voiceRecordIndicator":"magritte-voice-record-indicator___V8ybb_1-3-11","voice-record-indicator-bar":"magritte-voice-record-indicator-bar___jgyqz_1-3-11","voiceRecordIndicatorBar":"magritte-voice-record-indicator-bar___jgyqz_1-3-11","voice-record-indicator-wave":"magritte-voice-record-indicator-wave___4VsyE_1-3-11","voiceRecordIndicatorWave":"magritte-voice-record-indicator-wave___4VsyE_1-3-11","voice-record-indicator-has-sound":"magritte-voice-record-indicator-has-sound___67t5g_1-3-11","voiceRecordIndicatorHasSound":"magritte-voice-record-indicator-has-sound___67t5g_1-3-11","mode-container":"magritte-mode-container___nATVD_1-3-11","modeContainer":"magritte-mode-container___nATVD_1-3-11","voice-overlay":"magritte-voice-overlay___LbxAI_1-3-11","voiceOverlay":"magritte-voice-overlay___LbxAI_1-3-11"};
3
+
4
+ export { styles as s };
5
+ //# sourceMappingURL=styles-BLVgpKqi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles-BLVgpKqi.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +0,0 @@
1
- import './index.css';
2
- var styles = {"chat-input":"magritte-chat-input___P69oN_1-3-9","chatInput":"magritte-chat-input___P69oN_1-3-9","no-background":"magritte-no-background___eiIY1_1-3-9","noBackground":"magritte-no-background___eiIY1_1-3-9","text-input-focused":"magritte-text-input-focused___TfyLu_1-3-9","textInputFocused":"magritte-text-input-focused___TfyLu_1-3-9","content-grid":"magritte-content-grid___g03sT_1-3-9","contentGrid":"magritte-content-grid___g03sT_1-3-9","preview":"magritte-preview___baXKi_1-3-9","left":"magritte-left___7JZYp_1-3-9","central":"magritte-central___zkguj_1-3-9","right":"magritte-right___-tGcO_1-3-9","scrollbar-cell":"magritte-scrollbar-cell___--M2x_1-3-9","scrollbarCell":"magritte-scrollbar-cell___--M2x_1-3-9","text-input":"magritte-text-input___3AFO4_1-3-9","textInput":"magritte-text-input___3AFO4_1-3-9","layout-vertical":"magritte-layout-vertical___mVTr-_1-3-9","layoutVertical":"magritte-layout-vertical___mVTr-_1-3-9","has-central":"magritte-has-central___VRZik_1-3-9","hasCentral":"magritte-has-central___VRZik_1-3-9","no-left-controls":"magritte-no-left-controls___7r6yy_1-3-9","noLeftControls":"magritte-no-left-controls___7r6yy_1-3-9","no-right-controls":"magritte-no-right-controls___HBSag_1-3-9","noRightControls":"magritte-no-right-controls___HBSag_1-3-9","chips":"magritte-chips___gLao5_1-3-9","chips-container":"magritte-chips-container___-bS5O_1-3-9","chipsContainer":"magritte-chips-container___-bS5O_1-3-9","preview-block":"magritte-preview-block___iiPdS_1-3-9","previewBlock":"magritte-preview-block___iiPdS_1-3-9","preview-side":"magritte-preview-side___ymR-u_1-3-9","previewSide":"magritte-preview-side___ymR-u_1-3-9","preview-content":"magritte-preview-content___ZgyBD_1-3-9","previewContent":"magritte-preview-content___ZgyBD_1-3-9","preview-title":"magritte-preview-title___SkFeZ_1-3-9","previewTitle":"magritte-preview-title___SkFeZ_1-3-9","preview-subtitle":"magritte-preview-subtitle___58qfR_1-3-9","previewSubtitle":"magritte-preview-subtitle___58qfR_1-3-9","files-container":"magritte-files-container___zOkRK_1-3-9","filesContainer":"magritte-files-container___zOkRK_1-3-9","files":"magritte-files___j2q5K_1-3-9","file":"magritte-file___lz9Ll_1-3-9","file-card":"magritte-file-card___hn5C9_1-3-9","fileCard":"magritte-file-card___hn5C9_1-3-9","file-tile":"magritte-file-tile___OVlh3_1-3-9","fileTile":"magritte-file-tile___OVlh3_1-3-9","file-card-removable":"magritte-file-card-removable___GkxUe_1-3-9","fileCardRemovable":"magritte-file-card-removable___GkxUe_1-3-9","file-tile-placeholder":"magritte-file-tile-placeholder___yxLuR_1-3-9","fileTilePlaceholder":"magritte-file-tile-placeholder___yxLuR_1-3-9","file-tile-image":"magritte-file-tile-image___cZFgL_1-3-9","fileTileImage":"magritte-file-tile-image___cZFgL_1-3-9","file-remove":"magritte-file-remove___S0WB9_1-3-9","fileRemove":"magritte-file-remove___S0WB9_1-3-9","file-name":"magritte-file-name___L03-O_1-3-9","fileName":"magritte-file-name___L03-O_1-3-9","file-name-base":"magritte-file-name-base___ojdp6_1-3-9","fileNameBase":"magritte-file-name-base___ojdp6_1-3-9","file-name-extension":"magritte-file-name-extension___3QZtS_1-3-9","fileNameExtension":"magritte-file-name-extension___3QZtS_1-3-9","text-input-wrapper":"magritte-text-input-wrapper___TPbwC_1-3-9","textInputWrapper":"magritte-text-input-wrapper___TPbwC_1-3-9","with-top-fade":"magritte-with-top-fade___okgqo_1-3-9","withTopFade":"magritte-with-top-fade___okgqo_1-3-9","with-bottom-fade":"magritte-with-bottom-fade___82gr8_1-3-9","withBottomFade":"magritte-with-bottom-fade___82gr8_1-3-9","measure":"magritte-measure___xNKc0_1-3-9","voice-record":"magritte-voice-record___p64PV_1-3-9","voiceRecord":"magritte-voice-record___p64PV_1-3-9","voice-record-left":"magritte-voice-record-left___njEt-_1-3-9","voiceRecordLeft":"magritte-voice-record-left___njEt-_1-3-9","voice-record-right":"magritte-voice-record-right___UTv-U_1-3-9","voiceRecordRight":"magritte-voice-record-right___UTv-U_1-3-9","voice-processing":"magritte-voice-processing___C0xnX_1-3-9","voiceProcessing":"magritte-voice-processing___C0xnX_1-3-9","voice-record-indicator":"magritte-voice-record-indicator___V8ybb_1-3-9","voiceRecordIndicator":"magritte-voice-record-indicator___V8ybb_1-3-9","voice-record-indicator-bar":"magritte-voice-record-indicator-bar___jgyqz_1-3-9","voiceRecordIndicatorBar":"magritte-voice-record-indicator-bar___jgyqz_1-3-9","voice-record-indicator-wave":"magritte-voice-record-indicator-wave___4VsyE_1-3-9","voiceRecordIndicatorWave":"magritte-voice-record-indicator-wave___4VsyE_1-3-9","voice-record-indicator-has-sound":"magritte-voice-record-indicator-has-sound___67t5g_1-3-9","voiceRecordIndicatorHasSound":"magritte-voice-record-indicator-has-sound___67t5g_1-3-9","mode-container":"magritte-mode-container___nATVD_1-3-9","modeContainer":"magritte-mode-container___nATVD_1-3-9","voice-overlay":"magritte-voice-overlay___LbxAI_1-3-9","voiceOverlay":"magritte-voice-overlay___LbxAI_1-3-9"};
3
-
4
- export { styles as s };
5
- //# sourceMappingURL=styles-CmyjQgad.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles-CmyjQgad.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}