yt-chat-components 0.1.0 → 0.2.0

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.
@@ -344,13 +344,23 @@ video {
344
344
  }
345
345
 
346
346
  .cl-window {
347
+ border-radius: 1rem;
348
+ padding-top: 2.3rem;
349
+ padding-bottom: 1.2rem;
350
+ }
351
+
352
+ .cl-middle-container{
353
+ height:100%;
347
354
  display: flex;
348
355
  flex-direction: column;
349
356
  overflow: hidden;
350
- border-radius: 1rem;
351
-
357
+ border-left:0.5px solid #3850FF2E;
358
+ border-right:0.5px solid #3850FF2E;
359
+ padding-left:1.6rem;
360
+ padding-right:1.6rem;
352
361
  }
353
362
 
363
+
354
364
  .cl-scale-100 {
355
365
  --tw-scale-x: 1;
356
366
  --tw-scale-y: 1;
@@ -425,17 +435,37 @@ video {
425
435
  display: flex;
426
436
  flex-direction: column;
427
437
  --tw-bg-opacity: 1;
428
- background-color: rgb(255 255 255 / var(--tw-bg-opacity));
429
- padding-top: 1rem;
430
- padding-left: 1.5rem;
431
- padding-right: 1.5rem;
432
438
  font-size: 1.125rem;
433
439
  line-height: 1.75rem;
434
440
  font-weight: 400;
435
441
  color: rgb(17 24 39);
436
- --tw-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
437
- --tw-shadow-colored: 0 0 10px var(--tw-shadow-color);
438
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
442
+ }
443
+
444
+ .cl-header .header-title{
445
+ display: flex;
446
+ align-items: center;
447
+ margin-bottom: 16px;
448
+ font-size: 22px;
449
+ font-weight: 600;
450
+ }
451
+
452
+ .cl-header .diamond {
453
+ position: relative;
454
+ display: inline-block;
455
+ width: 20px;
456
+ height: 20px;
457
+ }
458
+
459
+ .cl-header .diamond::before {
460
+ content: '';
461
+ position: absolute;
462
+ top: 5px;
463
+ left: 0;
464
+ width: 10px;
465
+ height: 10px;
466
+ background-color: blue;
467
+ transform: rotate(45deg);
468
+ border-radius: 3px;
439
469
  }
440
470
 
441
471
  .cl-drop-down {
@@ -444,9 +474,9 @@ video {
444
474
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
445
475
  z-index: 1;
446
476
  position: absolute;
447
- width: calc(100% - 50px);
477
+ width: 100%;
448
478
  min-height: 50px;
449
- bottom: -14.5rem;
479
+ bottom: -13.3rem;
450
480
  padding:1.3rem;
451
481
  }
452
482
 
@@ -466,7 +496,7 @@ video {
466
496
  .drop-down-item-card {
467
497
  width: 32%;
468
498
  padding: 1.5rem 1.2rem 0.3rem;
469
- height:8rem;
499
+ height:7rem;
470
500
  font-weight: 400;
471
501
  font-size: 14px;
472
502
  color: #FFFFFF;
@@ -483,10 +513,10 @@ video {
483
513
  flex-direction: column;
484
514
  }
485
515
  .drop-down-item-title {
486
- font-weight: 500;
487
- font-size: 14px;
516
+ font-weight: 400;
517
+ font-size: 16px;
488
518
  color: #000000;
489
- line-height: 16px;
519
+ line-height: 18px;
490
520
  text-align: left;
491
521
  width: 100%;
492
522
  }
@@ -495,16 +525,15 @@ video {
495
525
  align-items: center;
496
526
  justify-content: space-between;
497
527
  flex-direction: row;
498
- margin-top:1rem;
528
+ // margin-top:1rem;
499
529
  align-items: center;
500
530
  }
501
531
 
502
532
  .drop-down-item-bottom-button{
503
- background: #6E79FF;
504
533
  border-radius: 16px;
505
534
  line-height: 20px;
506
535
  text-align: left;
507
- width: 5rem;
536
+ width: 2rem;
508
537
  padding: 0.2rem 0.4rem 0.2rem 0.2rem;
509
538
  cursor: pointer;
510
539
  display: flex;
@@ -535,7 +564,6 @@ margin-bottom:1rem;
535
564
  overflow: scroll;
536
565
  overflow-x: clip;
537
566
  --tw-bg-opacity: 1;
538
- background-color: rgb(249 250 251 / var(--tw-bg-opacity));
539
567
  padding-left: 1rem;
540
568
  padding-right: 1rem;
541
569
  padding-top: 0.5rem;
@@ -554,11 +582,10 @@ margin-bottom:1rem;
554
582
  flex-direction: column;
555
583
  width: 100%;
556
584
  align-items: center;
557
- border-top-width: 1px;
558
585
  --tw-border-opacity: 1;
559
- border-color: rgb(229 231 235 / var(--tw-border-opacity));
560
586
  --tw-bg-opacity: 1;
561
- background-color: rgb(255 255 255 / var(--tw-bg-opacity));
587
+ border-top-right-radius: 50px;
588
+ border-bottom-right-radius: 50px;
562
589
  }
563
590
 
564
591
  .cl-chat-message {
@@ -600,16 +627,27 @@ margin-bottom:1rem;
600
627
  width: 100%;
601
628
  padding-left: 1.25rem;
602
629
  padding-right: 1.25rem;
603
- padding-top: 1.25rem;
604
- padding-bottom: 1.25rem;
630
+ padding-top: 0.25rem;
631
+ padding-bottom: 0.25rem;
605
632
  font-weight: 300;
606
- background-color: rgb(255 255 255);
633
+ background-color: #00000000;
607
634
  color: rgb(17 24 39);
635
+ border-top-left-radius: 50px;
636
+ border-bottom-left-radius: 50px;
637
+ transition: height 0.2s ease;
638
+ }
639
+ .cl-input-element::placeholder {
640
+ line-height:45px;
608
641
  }
609
642
 
610
643
  .cl-input-element:focus {
611
644
  outline: 2px solid transparent;
612
645
  outline-offset: 2px;
646
+ height:120px;
647
+ }
648
+
649
+ .cl-input-element:focus::placeholder {
650
+ line-height:unset;
613
651
  }
614
652
 
615
653
  .cl-user_message {
@@ -617,7 +655,7 @@ margin-bottom:1rem;
617
655
  width: -moz-fit-content;
618
656
  width: fit-content;
619
657
  -webkit-column-break-before: all;
620
- break-before: all;
658
+ break-before: all;
621
659
  border-radius: 0.75rem;
622
660
  border-top-right-radius: 0.125rem;
623
661
  --tw-bg-opacity: 1;
@@ -638,7 +676,7 @@ margin-bottom:1rem;
638
676
  width: fit-content;
639
677
  max-width: 90%;
640
678
  -webkit-column-break-before: all;
641
- break-before: all;
679
+ break-before: all;
642
680
  border-radius: 0.75rem;
643
681
  border-top-left-radius: 0.125rem;
644
682
  --tw-bg-opacity: 1;
@@ -658,7 +696,7 @@ margin-bottom:1rem;
658
696
  width: fit-content;
659
697
  max-width: 90%;
660
698
  -webkit-column-break-before: all;
661
- break-before: all;
699
+ break-before: all;
662
700
  border-radius: 0.75rem;
663
701
  border-top-left-radius: 0.125rem;
664
702
  --tw-bg-opacity: 1;
@@ -2193,10 +2231,68 @@ input::-ms-input-placeholder { /* Microsoft Edge */
2193
2231
  z-index: 510;
2194
2232
  }
2195
2233
 
2196
- .w_inputBox {
2234
+ .w_tagListClass {
2235
+ position: absolute;
2197
2236
  width: 100%;
2237
+ height: fit-content;
2238
+ // background: #F9FAFB;
2239
+ display: flex;
2240
+ align-items: center;
2241
+ padding: 8px 0 8px 10px;
2242
+ flex-wrap: wrap;
2243
+ gap: 8px;
2244
+
2245
+ .w_tagItemBox {
2246
+ padding: 8px 12px;
2247
+ display: flex;
2248
+ align-items: center;
2249
+ justify-content: center;
2250
+ width: fit-content;
2251
+ height: 30px;
2252
+ background: #F9FAFB;
2253
+ border-radius: 15px;
2254
+ border: 1px solid #4B4FFF;
2255
+ cursor: pointer;
2256
+
2257
+ &:hover {
2258
+ background: linear-gradient( 270deg, #828EFE 0%, #4B4FFF 100%);
2259
+ .tagImgh {
2260
+ filter: brightness(100);
2261
+ }
2262
+ .tagItemText {
2263
+ color: #fff;
2264
+ }
2265
+ }
2266
+ .w_tagImgh{
2267
+ width: 16px;
2268
+ height: 16px;
2269
+ }
2270
+
2271
+ .w_tagItemText {
2272
+ width: fit-content;
2273
+ padding-top: 2px;
2274
+ padding-left: 8px;
2275
+ color: #1552FF;
2276
+ font-size: 14px;
2277
+ }
2278
+
2279
+ .w_tagImg {
2280
+ margin-left: 6px;
2281
+ width: 12px;
2282
+ height: 12px;
2283
+ background-repeat: no-repeat;
2284
+ background-size: cover;
2285
+ }
2286
+ }
2287
+ }
2288
+
2289
+ .w_inputBox {
2290
+ width: calc(100% - 16px);
2291
+ margin: 0 auto 8px;
2198
2292
  display: flex;
2199
2293
  align-items: center;
2294
+ box-shadow: 0px 2px 15px 0px rgba(0,48,187,0.1);
2295
+ border-radius: 30px;
2200
2296
  textarea {
2201
2297
  resize: none;
2202
2298
  min-height: 48px;
@@ -2212,6 +2308,8 @@ input::-ms-input-placeholder { /* Microsoft Edge */
2212
2308
  overflow-y: auto; /* 允许垂直滚动 */
2213
2309
  scrollbar-width: none; /* Firefox */
2214
2310
  -ms-overflow-style: none; /* IE and Edge */
2311
+ border-top-left-radius: 50px;
2312
+ border-bottom-left-radius: 50px;
2215
2313
  }
2216
2314
  textarea::-webkit-scrollbar {
2217
2315
  display: none; /* Chrome, Safari, and Opera */
@@ -3,7 +3,7 @@ import ToolDialog from "../previewDialog";
3
3
  import { Modal } from 'antd';
4
4
  import './index.css'
5
5
 
6
- class LogoBtn extends React.Component {
6
+ export class LogoBtn extends React.Component {
7
7
  state={
8
8
  isShow:false
9
9
  }
@@ -32,9 +32,8 @@ class LogoBtn extends React.Component {
32
32
  }
33
33
 
34
34
  return (
35
- // <div style={{ position: "relative", width: "100vw", height: "100vh", background:'transparent' }}>
36
35
  <div style={{ position: "absolute", ...iconConfig }}>
37
- <img src={iconUrl} style={{ width: "100%", height: "100%" }} onClick={(event) => this.setState({ isShow: true })}/>
36
+ {iconUrl && <img src={iconUrl} style={{ width: "100%", height: "100%" }} onClick={(event) => this.setState({ isShow: true })}/>}
38
37
  <Modal
39
38
  wrapClassName={'yt-chat-modal'}
40
39
  open={this.state.isShow}
@@ -3,13 +3,13 @@ import ToolDialog from "../previewDialog";
3
3
  import { Modal } from 'antd';
4
4
  import './index.css'
5
5
 
6
- class LogoSplitBtn extends React.Component {
6
+ export class LogoSplitBtn extends React.Component {
7
7
  state={
8
8
  isShow:false
9
9
  }
10
10
 
11
11
  render() {
12
- const { left, right, top, bottom, width, height, iconUrl, title, flowId, hostUrl, userInfo, tags,boxStyle, sceneId} = this.props;
12
+ const { left, right, top, bottom, width, height, iconUrl, title, flowId, hostUrl, userInfo, tags,boxStyle='{"position":"relative","height":"700px"}', sceneId} = this.props;
13
13
  const iconConfig = {
14
14
  width: `${width || 100}px`,
15
15
  height: `${height || 100}px`,
@@ -53,7 +53,7 @@ class LogoSplitBtn extends React.Component {
53
53
  }}
54
54
  userInfo={userInfo || {}}
55
55
  tags={tags || []}
56
- boxStyle={boxStyle || { position: 'relative', height: '700px' }}
56
+ boxStyle={JSON.parse(boxStyle)}
57
57
  isShowSideRight={true}
58
58
  sceneId={sceneId}
59
59
  />