@cloud-ru/uikit-product-copy-line 0.7.63

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/CHANGELOG.md ADDED
@@ -0,0 +1,789 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## 0.7.63 (2025-11-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **PD-3377:** updated deps with public scopes ([5c0544a](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/5c0544acf7db65fb6fe1fbde10ac21721d9046fb))
12
+
13
+
14
+
15
+
16
+
17
+ ## 0.7.62 (2025-11-12)
18
+
19
+ ### Only dependencies have been changed
20
+ * [@cloud-ru/uikit-product-icons@15.1.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
21
+
22
+
23
+
24
+
25
+
26
+ ## 0.7.61 (2025-11-07)
27
+
28
+ ### Only dependencies have been changed
29
+ * [@cloud-ru/uikit-product-icons@15.0.5](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
30
+ * [@cloud-ru/uikit-product-utils@6.2.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
31
+
32
+
33
+
34
+
35
+
36
+ ## 0.7.60 (2025-10-06)
37
+
38
+ ### Only dependencies have been changed
39
+ * [@cloud-ru/uikit-product-icons@15.0.4](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
40
+
41
+
42
+
43
+
44
+
45
+ ## 0.7.59 (2025-10-06)
46
+
47
+ ### Only dependencies have been changed
48
+ * [@cloud-ru/uikit-product-icons@15.0.3](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
49
+
50
+
51
+
52
+
53
+
54
+ ## 0.7.58 (2025-10-03)
55
+
56
+ ### Only dependencies have been changed
57
+ * [@cloud-ru/uikit-product-icons@15.0.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
58
+
59
+
60
+
61
+
62
+
63
+ ## 0.7.57 (2025-09-30)
64
+
65
+ ### Only dependencies have been changed
66
+ * [@cloud-ru/uikit-product-icons@15.0.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
67
+ * [@cloud-ru/uikit-product-utils@6.2.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
68
+
69
+
70
+
71
+
72
+
73
+ ## 0.7.56 (2025-09-26)
74
+
75
+ ### Only dependencies have been changed
76
+ * [@cloud-ru/uikit-product-icons@15.0.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
77
+
78
+
79
+
80
+
81
+
82
+ ## 0.7.55 (2025-09-25)
83
+
84
+ ### Only dependencies have been changed
85
+ * [@cloud-ru/uikit-product-icons@14.6.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
86
+
87
+
88
+
89
+
90
+
91
+ ## 0.7.54 (2025-09-18)
92
+
93
+ ### Only dependencies have been changed
94
+ * [@cloud-ru/uikit-product-icons@14.5.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
95
+
96
+
97
+
98
+
99
+
100
+ ## 0.7.53 (2025-09-17)
101
+
102
+ ### Only dependencies have been changed
103
+ * [@cloud-ru/uikit-product-icons@14.4.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
104
+ * [@cloud-ru/uikit-product-utils@6.2.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
105
+
106
+
107
+
108
+
109
+
110
+ ## 0.7.52 (2025-09-11)
111
+
112
+ ### Only dependencies have been changed
113
+ * [@cloud-ru/uikit-product-icons@14.3.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
114
+
115
+
116
+
117
+
118
+
119
+ ## 0.7.51 (2025-09-02)
120
+
121
+ ### Only dependencies have been changed
122
+ * [@cloud-ru/uikit-product-icons@14.3.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
123
+
124
+
125
+
126
+
127
+
128
+ ## 0.7.50 (2025-09-01)
129
+
130
+ ### Only dependencies have been changed
131
+ * [@cloud-ru/uikit-product-icons@14.2.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
132
+
133
+
134
+
135
+
136
+
137
+ ## 0.7.49 (2025-08-20)
138
+
139
+ ### Only dependencies have been changed
140
+ * [@cloud-ru/uikit-product-icons@14.1.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
141
+
142
+
143
+
144
+
145
+
146
+ ## 0.7.48 (2025-08-19)
147
+
148
+ ### Only dependencies have been changed
149
+ * [@cloud-ru/uikit-product-icons@14.1.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
150
+ * [@cloud-ru/uikit-product-utils@6.1.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
151
+
152
+
153
+
154
+
155
+
156
+ ## 0.7.47 (2025-08-15)
157
+
158
+ ### Only dependencies have been changed
159
+ * [@cloud-ru/uikit-product-icons@14.1.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
160
+
161
+
162
+
163
+
164
+
165
+ ## 0.7.46 (2025-08-04)
166
+
167
+ ### Only dependencies have been changed
168
+ * [@cloud-ru/uikit-product-icons@14.0.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
169
+ * [@cloud-ru/uikit-product-utils@6.0.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
170
+
171
+
172
+
173
+
174
+
175
+ ## 0.7.45 (2025-08-04)
176
+
177
+ ### Only dependencies have been changed
178
+ * [@cloud-ru/uikit-product-icons@14.0.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
179
+ * [@cloud-ru/uikit-product-utils@6.0.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
180
+
181
+
182
+
183
+
184
+
185
+ ## 0.7.44 (2025-07-25)
186
+
187
+ ### Only dependencies have been changed
188
+ * [@cloud-ru/uikit-product-icons@14.0.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
189
+
190
+
191
+
192
+
193
+
194
+ ## 0.7.43 (2025-07-17)
195
+
196
+ ### Only dependencies have been changed
197
+ * [@cloud-ru/uikit-product-icons@13.0.6](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
198
+ * [@cloud-ru/uikit-product-utils@5.0.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
199
+
200
+
201
+
202
+
203
+
204
+ ## 0.7.42 (2025-07-16)
205
+
206
+ ### Only dependencies have been changed
207
+ * [@cloud-ru/uikit-product-icons@13.0.5](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
208
+ * [@cloud-ru/uikit-product-utils@5.0.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
209
+
210
+
211
+
212
+
213
+
214
+ ## 0.7.41 (2025-07-15)
215
+
216
+ ### Only dependencies have been changed
217
+ * [@cloud-ru/uikit-product-icons@13.0.4](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
218
+
219
+
220
+
221
+
222
+
223
+ ## 0.7.40 (2025-07-01)
224
+
225
+ ### Only dependencies have been changed
226
+ * [@cloud-ru/uikit-product-icons@13.0.3](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
227
+
228
+
229
+
230
+
231
+
232
+ ## 0.7.39 (2025-06-27)
233
+
234
+ ### Only dependencies have been changed
235
+ * [@cloud-ru/uikit-product-icons@13.0.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
236
+
237
+
238
+
239
+
240
+
241
+ ## 0.7.38 (2025-06-27)
242
+
243
+ ### Only dependencies have been changed
244
+ * [@cloud-ru/uikit-product-icons@13.0.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
245
+ * [@cloud-ru/uikit-product-utils@4.0.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
246
+
247
+
248
+
249
+
250
+
251
+ ## 0.7.37 (2025-06-24)
252
+
253
+ ### Only dependencies have been changed
254
+ * [@cloud-ru/uikit-product-icons@13.0.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
255
+
256
+
257
+
258
+
259
+
260
+ ## 0.7.36 (2025-06-20)
261
+
262
+ ### Only dependencies have been changed
263
+ * [@cloud-ru/uikit-product-icons@12.1.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
264
+
265
+
266
+
267
+
268
+
269
+ ## 0.7.35 (2025-06-20)
270
+
271
+ ### Only dependencies have been changed
272
+ * [@cloud-ru/uikit-product-icons@12.0.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
273
+
274
+
275
+
276
+
277
+
278
+ ## 0.7.34 (2025-06-06)
279
+
280
+ ### Only dependencies have been changed
281
+ * [@cloud-ru/uikit-product-icons@11.9.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
282
+
283
+
284
+
285
+
286
+
287
+ ## 0.7.33 (2025-05-28)
288
+
289
+ ### Only dependencies have been changed
290
+ * [@cloud-ru/uikit-product-icons@11.8.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
291
+
292
+
293
+
294
+
295
+
296
+ ## 0.7.32 (2025-05-16)
297
+
298
+ ### Only dependencies have been changed
299
+ * [@cloud-ru/uikit-product-icons@11.7.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
300
+
301
+
302
+
303
+
304
+
305
+ ## 0.7.31 (2025-05-14)
306
+
307
+ ### Only dependencies have been changed
308
+ * [@cloud-ru/uikit-product-icons@11.6.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
309
+
310
+
311
+
312
+
313
+
314
+ ## 0.7.30 (2025-04-30)
315
+
316
+ ### Only dependencies have been changed
317
+ * [@cloud-ru/uikit-product-icons@11.5.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
318
+
319
+
320
+
321
+
322
+
323
+ ## 0.7.29 (2025-04-15)
324
+
325
+ ### Only dependencies have been changed
326
+ * [@cloud-ru/uikit-product-icons@11.4.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
327
+
328
+
329
+
330
+
331
+
332
+ ## 0.7.28 (2025-04-09)
333
+
334
+ ### Only dependencies have been changed
335
+ * [@cloud-ru/uikit-product-icons@11.3.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
336
+
337
+
338
+
339
+
340
+
341
+ ## 0.7.27 (2025-04-01)
342
+
343
+ ### Only dependencies have been changed
344
+ * [@cloud-ru/uikit-product-icons@11.2.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
345
+
346
+
347
+
348
+
349
+
350
+ ## 0.7.26 (2025-03-27)
351
+
352
+ ### Only dependencies have been changed
353
+ * [@cloud-ru/uikit-product-icons@11.1.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
354
+
355
+
356
+
357
+
358
+
359
+ ## 0.7.25 (2025-03-21)
360
+
361
+ ### Only dependencies have been changed
362
+ * [@cloud-ru/uikit-product-icons@11.0.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
363
+
364
+
365
+
366
+
367
+
368
+ ## 0.7.24 (2025-03-20)
369
+
370
+ ### Only dependencies have been changed
371
+ * [@cloud-ru/uikit-product-icons@11.0.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
372
+
373
+
374
+
375
+
376
+
377
+ ## 0.7.23 (2025-03-18)
378
+
379
+ ### Only dependencies have been changed
380
+ * [@cloud-ru/uikit-product-icons@10.7.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
381
+
382
+
383
+
384
+
385
+
386
+ ## 0.7.22 (2025-03-14)
387
+
388
+ ### Only dependencies have been changed
389
+ * [@cloud-ru/uikit-product-icons@10.6.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
390
+
391
+
392
+
393
+
394
+
395
+ ## 0.7.21 (2025-03-13)
396
+
397
+ ### Only dependencies have been changed
398
+ * [@cloud-ru/uikit-product-icons@10.5.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
399
+
400
+
401
+
402
+
403
+
404
+ ## 0.7.20 (2025-03-05)
405
+
406
+ ### Only dependencies have been changed
407
+ * [@cloud-ru/uikit-product-icons@10.5.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
408
+
409
+
410
+
411
+
412
+
413
+ ## 0.7.19 (2025-03-04)
414
+
415
+ ### Only dependencies have been changed
416
+ * [@cloud-ru/uikit-product-icons@10.4.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
417
+
418
+
419
+
420
+
421
+
422
+ ## 0.7.18 (2025-02-28)
423
+
424
+ ### Only dependencies have been changed
425
+ * [@cloud-ru/uikit-product-icons@10.3.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
426
+
427
+
428
+
429
+
430
+
431
+ ## 0.7.17 (2025-02-10)
432
+
433
+
434
+ ### Dependencies
435
+
436
+ * **FF-4704:** up deps ([7da95ef](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/7da95ef6551ced9a63c75970f43b047cc564cedc))
437
+
438
+
439
+
440
+
441
+
442
+ ## <small>0.7.16 (2025-02-05)</small>
443
+
444
+ ### Only dependencies have been changed
445
+ * [@cloud-ru/uikit-product-icons@10.2.14](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
446
+ * [@cloud-ru/uikit-product-utils@3.8.8](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
447
+
448
+
449
+
450
+
451
+
452
+ ## <small>0.7.15 (2025-02-05)</small>
453
+
454
+ ### Only dependencies have been changed
455
+ * [@cloud-ru/uikit-product-icons@10.2.13](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
456
+
457
+
458
+
459
+
460
+
461
+ ## <small>0.7.14 (2025-01-09)</small>
462
+
463
+ ### Only dependencies have been changed
464
+ * [@cloud-ru/uikit-product-icons@10.2.12](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
465
+
466
+
467
+
468
+
469
+
470
+ ## <small>0.7.13 (2024-12-27)</small>
471
+
472
+ ### Only dependencies have been changed
473
+ * [@cloud-ru/uikit-product-icons@10.2.11](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
474
+
475
+
476
+
477
+
478
+
479
+ ## <small>0.7.12 (2024-12-26)</small>
480
+
481
+ ### Only dependencies have been changed
482
+ * [@cloud-ru/uikit-product-icons@10.2.10](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
483
+ * [@cloud-ru/uikit-product-utils@3.8.7](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
484
+
485
+
486
+
487
+
488
+
489
+ ## <small>0.7.11 (2024-12-26)</small>
490
+
491
+ ### Only dependencies have been changed
492
+ * [@cloud-ru/uikit-product-icons@10.2.9](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
493
+ * [@cloud-ru/uikit-product-utils@3.8.6](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
494
+
495
+
496
+
497
+
498
+
499
+ ## <small>0.7.10 (2024-12-17)</small>
500
+
501
+ ### Only dependencies have been changed
502
+ * [@cloud-ru/uikit-product-icons@10.2.8](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
503
+ * [@cloud-ru/uikit-product-utils@3.8.5](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
504
+
505
+
506
+
507
+
508
+
509
+ ## <small>0.7.9 (2024-12-16)</small>
510
+
511
+ ### Only dependencies have been changed
512
+ * [@cloud-ru/uikit-product-icons@10.2.7](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
513
+ * [@cloud-ru/uikit-product-utils@3.8.4](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
514
+
515
+
516
+
517
+
518
+
519
+ ## <small>0.7.8 (2024-12-11)</small>
520
+
521
+ ### Only dependencies have been changed
522
+ * [@cloud-ru/uikit-product-icons@10.2.6](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
523
+
524
+
525
+
526
+
527
+
528
+ ## <small>0.7.7 (2024-12-04)</small>
529
+
530
+ * chore(FF-5944): renamed snack uikit category to console ([411a818](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/411a818))
531
+
532
+
533
+
534
+
535
+
536
+ ## <small>0.7.6 (2024-11-25)</small>
537
+
538
+ ### Only dependencies have been changed
539
+ * [@cloud-ru/uikit-product-icons@10.2.4](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
540
+
541
+
542
+
543
+
544
+
545
+ ## <small>0.7.5 (2024-11-17)</small>
546
+
547
+ * deps(FF-00): up deps ([9e2378c](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/9e2378c))
548
+
549
+
550
+
551
+
552
+
553
+ ## <small>0.7.4 (2024-11-14)</small>
554
+
555
+ * deps(FF-5678): up deps classnames/uncontrollable ([17b3e6e](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/17b3e6e))
556
+
557
+
558
+
559
+
560
+
561
+ ## <small>0.7.3 (2024-11-07)</small>
562
+
563
+ ### Only dependencies have been changed
564
+ * [@cloud-ru/uikit-product-icons@10.2.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
565
+ * [@cloud-ru/uikit-product-utils@3.8.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
566
+
567
+
568
+
569
+
570
+
571
+ ## <small>0.7.2 (2024-11-05)</small>
572
+
573
+ * deps(FF-5830): up snack-uikit & some common deps ([03aefe0](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/03aefe0))
574
+
575
+
576
+
577
+
578
+
579
+ ## 0.7.1 (2024-11-01)
580
+
581
+ ### Only dependencies have been changed
582
+ * [@cloud-ru/uikit-product-icons@10.2.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
583
+
584
+
585
+
586
+
587
+
588
+ # 0.7.0 (2024-10-30)
589
+
590
+
591
+ ### Features
592
+
593
+ * **[FF-5836](https://jira.sbercloud.tech/browse/FF-5836):** support cjs syntax ([d44abd0](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/d44abd0ddbbea0cd2bf0e1b99442cdb83b87df48))
594
+
595
+
596
+
597
+
598
+
599
+ ## 0.6.1 (2024-10-30)
600
+
601
+ ### Only dependencies have been changed
602
+ * [@cloud-ru/uikit-product-icons@10.0.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
603
+ * [@cloud-ru/uikit-product-utils@3.7.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
604
+
605
+
606
+
607
+
608
+
609
+ # 0.6.0 (2024-10-29)
610
+
611
+
612
+ ### Features
613
+
614
+ * **[FF-5782](https://jira.sbercloud.tech/browse/FF-5782):** dart v3 use/forward approach ([eb0c4b3](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/eb0c4b30a008aa82ad7555ecc9d8420c21b1c7a4))
615
+
616
+
617
+
618
+
619
+
620
+ ## 0.5.6 (2024-10-15)
621
+
622
+ ### Only dependencies have been changed
623
+ * [@cloud-ru/uikit-product-icons@9.6.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
624
+
625
+
626
+
627
+
628
+
629
+ ## 0.5.5 (2024-10-15)
630
+
631
+ ### Only dependencies have been changed
632
+ * [@cloud-ru/uikit-product-icons@9.5.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
633
+
634
+
635
+
636
+
637
+
638
+ ## 0.5.4 (2024-10-03)
639
+
640
+ ### Only dependencies have been changed
641
+ * [@cloud-ru/uikit-product-icons@9.4.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
642
+
643
+
644
+
645
+
646
+
647
+ ## 0.5.3 (2024-09-26)
648
+
649
+ ### Only dependencies have been changed
650
+ * [@cloud-ru/uikit-product-icons@9.3.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
651
+
652
+
653
+
654
+
655
+
656
+ ## 0.5.2 (2024-09-25)
657
+
658
+ ### Only dependencies have been changed
659
+ * [@cloud-ru/uikit-product-icons@9.3.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
660
+
661
+
662
+
663
+
664
+
665
+ ## 0.5.1 (2024-09-25)
666
+
667
+
668
+ ### Dependencies
669
+
670
+ * **[PDS-611](https://jira.sbercloud.tech/browse/PDS-611):** up deps ([c30ac4c](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/c30ac4c2adb7c00e84fbe557d85314add6b6977a))
671
+
672
+
673
+
674
+
675
+
676
+ # 0.5.0 (2024-09-16)
677
+
678
+
679
+ ### BREAKING CHANGES
680
+
681
+
682
+ * **[FF-5361](https://jira.sbercloud.tech/browse/FF-5361):** remove mobile version, add copyButtonHideStrategy prop ([853e548](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/853e5489be973fc834aea8e00bc3e619be5b9059))
683
+
684
+
685
+
686
+
687
+ # 0.4.0 (2024-09-10)
688
+
689
+
690
+ ### Features
691
+
692
+ * **[LK-4553](https://jira.sbercloud.tech/browse/LK-4553):** add adaptive for CopyLine ([669e96e](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/669e96ed7d88811f60838e3f412834791110649c))
693
+
694
+
695
+
696
+
697
+
698
+ ## 0.3.4 (2024-08-23)
699
+
700
+ ### Only dependencies have been changed
701
+ * [@cloud-ru/uikit-product-utils@3.5.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
702
+
703
+
704
+
705
+
706
+
707
+ ## 0.3.3 (2024-07-31)
708
+
709
+ ### Only dependencies have been changed
710
+ * [@cloud-ru/uikit-product-utils@3.4.1](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
711
+
712
+
713
+
714
+
715
+
716
+ ## 0.3.2 (2024-07-19)
717
+
718
+ ### Only dependencies have been changed
719
+ * [@cloud-ru/uikit-product-utils@3.4.0](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
720
+
721
+
722
+
723
+
724
+
725
+ ## 0.3.1 (2024-06-12)
726
+
727
+
728
+ ### Dependencies
729
+
730
+ * **[PDS-83](https://jira.sbercloud.tech/browse/PDS-83):** update deps ([491b47d](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/491b47d42acd8cb179b0d66c616033d61fe95d7e))
731
+
732
+
733
+
734
+
735
+
736
+ # 0.3.0 (2024-06-11)
737
+
738
+
739
+ ### Features
740
+
741
+ * **PDS-0000:** change content prop to ReactNode ([b62243b](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/b62243b600d498e450dabfb76d1eeb96c4e141e4))
742
+
743
+
744
+
745
+
746
+
747
+ # 0.2.0 (2024-05-02)
748
+
749
+
750
+ ### Bug Fixes
751
+
752
+ * **[PDS-9](https://jira.sbercloud.tech/browse/PDS-9):** copy from content by default ([ba80736](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/ba80736c1ff31685384c1f7bc499308a0d840cd7))
753
+
754
+
755
+ ### Features
756
+
757
+ * **[PDS-9](https://jira.sbercloud.tech/browse/PDS-9):** add onClick property ([0016294](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/00162941a4d40aca119845bb24305cd8f1e13f8d))
758
+
759
+
760
+
761
+
762
+
763
+ ## 0.1.1 (2024-04-19)
764
+
765
+
766
+ ### Bug Fixes
767
+
768
+ * **PDS-0000:** add hover show/hide behavior for copyButton in line; add forgotten props ([ff0d97a](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/ff0d97a052ef0e53ed6fe144ab7d58a9366ae93c))
769
+
770
+
771
+
772
+
773
+
774
+ # 0.1.0 (2024-03-02)
775
+
776
+
777
+ ### Features
778
+
779
+ * **[PDS-14](https://jira.sbercloud.tech/browse/PDS-14):** add copy-line/copy-button ([0c060d0](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/0c060d0262f202f1e58ab3755686081b5b346661))
780
+
781
+
782
+
783
+
784
+
785
+ ## CHANGELOG
786
+
787
+ ### v0.0.0
788
+
789
+ - Initial version
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2023 Cloud technology Limited (Ltd.)
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,8 @@
1
+ # Copy Line
2
+
3
+ ## Installation
4
+ `npm i @cloud-ru/uikit-product-copy-line`
5
+
6
+ [Changelog](./CHANGELOG.md)
7
+
8
+
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@cloud-ru/uikit-product-copy-line",
3
+ "title": "Copy Line",
4
+ "version": "0.7.63",
5
+ "sideEffects": [
6
+ "*.css",
7
+ "*.woff",
8
+ "*.woff2"
9
+ ],
10
+ "description": "",
11
+ "types": "./dist/esm/index.d.ts",
12
+ "exports": {
13
+ "import": "./dist/esm/index.js",
14
+ "require": "./dist/cjs/index.js"
15
+ },
16
+ "files": [
17
+ "dist/esm",
18
+ "dist/cjs",
19
+ "src",
20
+ "./CHANGELOG.md",
21
+ "./LICENSE"
22
+ ],
23
+ "homepage": "https://gitverse.ru/cloud-ru-tech/uikit-product/-/tree/master/packages/copy-line",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://gitverse.ru/cloud-ru-tech/uikit-product.git",
27
+ "directory": "packages/copy-line"
28
+ },
29
+ "author": {
30
+ "name": "Akhremenko Grigorii",
31
+ "url": "https://github.com/AGrigorii"
32
+ },
33
+ "license": "Apache-2.0",
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "scripts": {},
38
+ "dependencies": {
39
+ "@cloud-ru/ft-copy-to-clipboard": "0.1.0",
40
+ "@cloud-ru/uikit-product-icons": "15.1.1",
41
+ "@cloud-ru/uikit-product-utils": "7.0.0",
42
+ "@snack-uikit/button": "0.19.7",
43
+ "@snack-uikit/truncate-string": "0.6.9",
44
+ "@snack-uikit/utils": "3.7.0",
45
+ "classnames": "2.5.1"
46
+ },
47
+ "gitHead": "e8bd79bc92b26a8f52611972eec98a867536ccd3"
48
+ }
@@ -0,0 +1,47 @@
1
+ import { copyToClipboard } from '@cloud-ru/ft-copy-to-clipboard';
2
+ import { MouseEventHandler, useEffect, useRef, useState } from 'react';
3
+
4
+ import { CheckSVG, CopySVG } from '@cloud-ru/uikit-product-icons';
5
+ import { extractSupportProps, WithSupportProps } from '@cloud-ru/uikit-product-utils';
6
+ import { ButtonFunction, ButtonFunctionProps } from '@snack-uikit/button';
7
+
8
+ export type CopyButtonProps = WithSupportProps<{
9
+ valueToCopy: string | number;
10
+ size?: ButtonFunctionProps['size'];
11
+ className?: string;
12
+ }>;
13
+
14
+ export function CopyButton({ valueToCopy, size = 'xs', className, ...rest }: CopyButtonProps) {
15
+ const [isChecked, setIsCheckedOpen] = useState(false);
16
+ const timerId = useRef<NodeJS.Timeout>();
17
+ const openChecked = () => setIsCheckedOpen(true);
18
+ const closeChecked = () => setIsCheckedOpen(false);
19
+
20
+ const handleClick: MouseEventHandler<HTMLButtonElement> = event => {
21
+ event.stopPropagation();
22
+ valueToCopy && copyToClipboard(String(valueToCopy));
23
+ openChecked();
24
+ clearTimeout(timerId.current);
25
+ timerId.current = setTimeout(closeChecked, 1000);
26
+ };
27
+
28
+ useEffect(
29
+ () => () => {
30
+ closeChecked();
31
+ clearTimeout(timerId.current);
32
+ },
33
+ [],
34
+ );
35
+
36
+ return (
37
+ <ButtonFunction
38
+ {...extractSupportProps(rest)}
39
+ onClick={handleClick}
40
+ className={className}
41
+ data-test-id='button-copy-value'
42
+ type='button'
43
+ icon={isChecked ? <CheckSVG /> : <CopySVG />}
44
+ size={size}
45
+ />
46
+ );
47
+ }
@@ -0,0 +1 @@
1
+ export * from './CopyButton';
@@ -0,0 +1,74 @@
1
+ import { copyToClipboard } from '@cloud-ru/ft-copy-to-clipboard';
2
+ import cn from 'classnames';
3
+ import { MouseEventHandler, ReactNode, useEffect, useRef, useState } from 'react';
4
+
5
+ import { CheckSVG, CopySVG } from '@cloud-ru/uikit-product-icons';
6
+ import { extractSupportProps, WithSupportProps } from '@cloud-ru/uikit-product-utils';
7
+ import { ButtonFunction } from '@snack-uikit/button';
8
+ import { TruncateString } from '@snack-uikit/truncate-string';
9
+
10
+ import { COPY_BUTTON_HIDE_STRATEGY } from './constants';
11
+ import styles from './styles.module.scss';
12
+ import { CopyButtonHideStrategy } from './types';
13
+ import { isStringOrNumber } from './utils';
14
+
15
+ export type CopyLineProps = WithSupportProps<{
16
+ content: ReactNode;
17
+ valueToCopy?: string | number;
18
+ className?: string;
19
+ onClick?: MouseEventHandler;
20
+ copyButtonHideStrategy?: CopyButtonHideStrategy;
21
+ }>;
22
+
23
+ export function CopyLine({
24
+ content,
25
+ className,
26
+ valueToCopy: valueToCopyProp,
27
+ onClick,
28
+ copyButtonHideStrategy = COPY_BUTTON_HIDE_STRATEGY.Hover,
29
+ ...rest
30
+ }: CopyLineProps) {
31
+ const valueToCopy = valueToCopyProp ?? (isStringOrNumber(content) ? String(content) : '');
32
+ const [isChecked, setIsCheckedOpen] = useState(false);
33
+ const timerId = useRef<NodeJS.Timeout>();
34
+ const openChecked = () => setIsCheckedOpen(true);
35
+ const closeChecked = () => setIsCheckedOpen(false);
36
+
37
+ const handleClick: MouseEventHandler<HTMLElement> = event => {
38
+ event.stopPropagation();
39
+ valueToCopy && copyToClipboard(String(valueToCopy));
40
+ openChecked();
41
+ clearTimeout(timerId.current);
42
+ timerId.current = setTimeout(closeChecked, 1000);
43
+
44
+ onClick?.(event);
45
+ };
46
+
47
+ useEffect(
48
+ () => () => {
49
+ closeChecked();
50
+ clearTimeout(timerId.current);
51
+ },
52
+ [],
53
+ );
54
+
55
+ return (
56
+ <div
57
+ className={cn(styles.copyLine, className)}
58
+ onClick={handleClick}
59
+ role='presentation'
60
+ data-copy-button-hide-strategy={copyButtonHideStrategy}
61
+ {...extractSupportProps(rest)}
62
+ >
63
+ {isStringOrNumber(content) ? <TruncateString text={String(content)} maxLines={1} /> : content}
64
+
65
+ <ButtonFunction
66
+ data-test-id='button-copy-value'
67
+ type='button'
68
+ icon={isChecked ? <CheckSVG /> : <CopySVG />}
69
+ size='xs'
70
+ className={cn(styles.copyButton, className)}
71
+ />
72
+ </div>
73
+ );
74
+ }
@@ -0,0 +1,4 @@
1
+ export const COPY_BUTTON_HIDE_STRATEGY = {
2
+ Never: 'never',
3
+ Hover: 'hover',
4
+ } as const;
@@ -0,0 +1 @@
1
+ export * from './CopyLine';
@@ -0,0 +1,31 @@
1
+ @use '@sbercloud/figma-tokens-cloud-platform/build/scss/styles-theme-variables';
2
+
3
+ .copyLine {
4
+ @include styles-theme-variables.composite-var(styles-theme-variables.$sans-body-m);
5
+
6
+ display: inline-flex;
7
+ flex-shrink: 0;
8
+ gap: 8px;
9
+ align-items: center;
10
+
11
+ cursor: pointer;
12
+
13
+ box-sizing: border-box;
14
+ min-width: 0;
15
+ max-width: 100%;
16
+ min-height: 32px;
17
+
18
+ color: styles-theme-variables.$sys-neutral-text-main;
19
+
20
+ &[data-copy-button-hide-strategy='hover'] {
21
+ .copyButton {
22
+ display: none;
23
+ }
24
+
25
+ &:hover {
26
+ .copyButton {
27
+ display: inline-flex;
28
+ }
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,5 @@
1
+ import { ValueOf } from '@snack-uikit/utils';
2
+
3
+ import { COPY_BUTTON_HIDE_STRATEGY } from './constants';
4
+
5
+ export type CopyButtonHideStrategy = ValueOf<typeof COPY_BUTTON_HIDE_STRATEGY>;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export function isStringOrNumber(content: ReactNode): content is string | number {
4
+ return ['string', 'number'].includes(typeof content);
5
+ }
@@ -0,0 +1,2 @@
1
+ export * from './CopyButton';
2
+ export * from './CopyLine';
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './components';