@poolse/react-ui 3.2.0-dev.3 → 3.2.0-dev.4

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/dist/styles.css CHANGED
@@ -3033,59 +3033,89 @@
3033
3033
  Shipped here so a room is styled out of the
3034
3034
  box; previously only the showcase app carried these rules. */
3035
3035
 
3036
- /* Round call controls. Engaged controls invert to solid white so the
3037
- user can tell at a glance which ones are doing something. */
3036
+ /* Call controls: round glass buttons on the dark stage. A control you
3037
+ turned off (muted, camera off) goes red, so a glance tells you what
3038
+ the others can't hear or see; one you turned on (sharing) lights in
3039
+ the accent colour. Labels are tooltips and accessible names, not
3040
+ captions: the glyphs are the ones every call app uses. */
3038
3041
  .callbtn__slot {
3039
3042
  display: flex;
3040
3043
  flex-direction: column;
3041
3044
  align-items: center;
3042
3045
  gap: 7px;
3043
- width: 76px;
3044
3046
  }
3045
3047
 
3046
3048
  .callbtn {
3047
- width: 56px;
3048
- height: 56px;
3049
- border-radius: 50%;
3049
+ width: 48px;
3050
+ height: 48px;
3051
+ padding: 0;
3052
+ border-radius: 999px;
3050
3053
  border: none;
3051
3054
  display: grid;
3052
3055
  place-items: center;
3053
3056
  cursor: pointer;
3054
3057
  color: #fff;
3055
- background: rgba(255, 255, 255, 0.16);
3058
+ background: rgba(255, 255, 255, 0.1);
3059
+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
3056
3060
  transition:
3057
- background 120ms ease,
3058
- transform 120ms ease;
3061
+ background 140ms ease,
3062
+ color 140ms ease,
3063
+ transform 140ms ease;
3059
3064
  }
3060
3065
 
3061
3066
  .callbtn:hover {
3062
- background: rgba(255, 255, 255, 0.26);
3067
+ background: rgba(255, 255, 255, 0.18);
3063
3068
  }
3064
3069
 
3065
3070
  .callbtn:active {
3066
- transform: scale(0.94);
3071
+ transform: scale(0.93);
3072
+ }
3073
+
3074
+ .callbtn:focus-visible,
3075
+ .callbtn__caret:focus-visible {
3076
+ outline: 2px solid #fff;
3077
+ outline-offset: 2px;
3078
+ }
3079
+
3080
+ .callbtn:disabled {
3081
+ opacity: 0.4;
3082
+ cursor: default;
3067
3083
  }
3068
3084
 
3069
3085
  .callbtn--large {
3070
- width: 66px;
3071
- height: 66px;
3086
+ width: 64px;
3087
+ }
3088
+
3089
+ .callbtn--active,
3090
+ .callbtn--active:hover {
3091
+ background: #ea4335;
3092
+ color: #fff;
3093
+ box-shadow: none;
3072
3094
  }
3073
3095
 
3074
- .callbtn--active {
3075
- background: #ffffff;
3076
- color: #101012;
3096
+ .callbtn--highlight,
3097
+ .callbtn--highlight:hover {
3098
+ background: #8ab4f8;
3099
+ color: #0b1a33;
3100
+ box-shadow: none;
3077
3101
  }
3078
3102
 
3079
3103
  .callbtn--danger,
3080
3104
  .callbtn--danger:hover {
3081
- background: #ef4444;
3105
+ background: #ea4335;
3082
3106
  color: #fff;
3107
+ box-shadow: none;
3108
+ }
3109
+
3110
+ .callbtn--danger:hover {
3111
+ background: #d93025;
3083
3112
  }
3084
3113
 
3085
3114
  .callbtn--accept,
3086
3115
  .callbtn--accept:hover {
3087
3116
  background: #22c55e;
3088
3117
  color: #fff;
3118
+ box-shadow: none;
3089
3119
  }
3090
3120
 
3091
3121
  .callbtn__label {
@@ -3279,7 +3309,8 @@
3279
3309
  }
3280
3310
  }
3281
3311
 
3282
- /* A control that also opens a device menu. */
3312
+ /* A control that also opens a device menu: one pill, the menu's
3313
+ chevron on its left and the toggle on its right. */
3283
3314
  .callsheet__control {
3284
3315
  position: relative;
3285
3316
  display: inline-flex;
@@ -3288,38 +3319,62 @@
3288
3319
  .callbtn__wrap {
3289
3320
  position: relative;
3290
3321
  display: inline-flex;
3322
+ align-items: center;
3323
+ }
3324
+
3325
+ .callbtn__wrap--menu {
3326
+ border-radius: 999px;
3327
+ background: rgba(255, 255, 255, 0.1);
3328
+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
3329
+ }
3330
+
3331
+ .callbtn__wrap--menu > .callbtn {
3332
+ background: transparent;
3333
+ box-shadow: none;
3334
+ }
3335
+
3336
+ .callbtn__wrap--menu > .callbtn:hover {
3337
+ background: rgba(255, 255, 255, 0.1);
3338
+ }
3339
+
3340
+ .callbtn__wrap--active {
3341
+ background: #ea4335;
3342
+ box-shadow: none;
3291
3343
  }
3292
3344
 
3293
3345
  .callbtn__caret {
3294
- position: absolute;
3295
- right: -2px;
3296
- bottom: -2px;
3297
- width: 22px;
3298
- height: 22px;
3299
- border-radius: 50%;
3300
- border: 2px solid #101012;
3301
- background: rgba(255, 255, 255, 0.32);
3302
- color: #fff;
3346
+ order: -1;
3347
+ width: 26px;
3348
+ height: 48px;
3349
+ margin-right: -6px;
3350
+ padding: 0 0 0 4px;
3351
+ border: none;
3352
+ border-radius: 999px 0 0 999px;
3353
+ background: transparent;
3354
+ color: rgba(255, 255, 255, 0.85);
3303
3355
  display: grid;
3304
3356
  place-items: center;
3305
3357
  cursor: pointer;
3306
- padding: 0;
3307
3358
  }
3308
3359
 
3309
3360
  .callbtn__caret:hover {
3310
- background: rgba(255, 255, 255, 0.5);
3361
+ color: #fff;
3362
+ background: rgba(255, 255, 255, 0.1);
3311
3363
  }
3312
3364
 
3313
3365
  .calldevices {
3314
3366
  position: absolute;
3315
- bottom: calc(100% + 12px);
3367
+ bottom: calc(100% + 14px);
3316
3368
  left: 50%;
3317
3369
  transform: translateX(-50%);
3318
3370
  min-width: 240px;
3319
- max-width: 320px;
3320
- background: #1c1c20;
3321
- border-radius: 14px;
3322
- box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
3371
+ max-width: min(320px, calc(100vw - 24px));
3372
+ background: rgba(32, 33, 38, 0.96);
3373
+ backdrop-filter: blur(20px);
3374
+ -webkit-backdrop-filter: blur(20px);
3375
+ border: 1px solid rgba(255, 255, 255, 0.08);
3376
+ border-radius: 16px;
3377
+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
3323
3378
  padding: 8px;
3324
3379
  z-index: 5;
3325
3380
  }
@@ -3368,13 +3423,14 @@
3368
3423
  /* The room — Meet-style: a dark stage with the controls under it. Fills
3369
3424
  whatever box the host gives it. */
3370
3425
  .poolse-room {
3426
+ container: poolse-room / inline-size;
3371
3427
  display: flex;
3372
3428
  flex-direction: column;
3373
3429
  min-height: 0;
3374
3430
  height: 100%;
3375
- background: #101114;
3431
+ background: radial-gradient(120% 80% at 50% 0%, #1a1c22 0%, #0c0d10 70%);
3376
3432
  color: #fff;
3377
- border-radius: var(--poolse-radius-lg, 14px);
3433
+ border-radius: var(--poolse-radius-lg, 16px);
3378
3434
  overflow: hidden;
3379
3435
  }
3380
3436
 
@@ -3382,8 +3438,8 @@
3382
3438
  display: flex;
3383
3439
  align-items: center;
3384
3440
  justify-content: space-between;
3385
- gap: 12px;
3386
- padding: 12px 16px 6px;
3441
+ gap: 10px;
3442
+ padding: 12px 14px 4px 18px;
3387
3443
  }
3388
3444
 
3389
3445
  .poolse-room__title {
@@ -3394,11 +3450,46 @@
3394
3450
  }
3395
3451
 
3396
3452
  .poolse-room__status {
3397
- font: 500 12.5px / 1.3 var(--poolse-font-body);
3398
- color: rgba(255, 255, 255, 0.7);
3453
+ display: inline-flex;
3454
+ align-items: center;
3455
+ gap: 6px;
3456
+ margin-left: auto;
3457
+ font: 500 12.5px / 1 var(--poolse-font-body);
3458
+ color: rgba(255, 255, 255, 0.75);
3399
3459
  font-variant-numeric: tabular-nums;
3400
3460
  white-space: nowrap;
3401
- margin-left: auto;
3461
+ }
3462
+
3463
+ .poolse-room__chip {
3464
+ display: inline-flex;
3465
+ align-items: center;
3466
+ gap: 6px;
3467
+ height: 26px;
3468
+ padding: 0 10px;
3469
+ border-radius: 999px;
3470
+ background: rgba(255, 255, 255, 0.08);
3471
+ color: #fff;
3472
+ }
3473
+
3474
+ /* A live call: a red dot breathing next to the clock. */
3475
+ .poolse-room__dot {
3476
+ width: 7px;
3477
+ height: 7px;
3478
+ border-radius: 50%;
3479
+ background: #ea4335;
3480
+ animation: poolse-room-live 2s ease-in-out infinite;
3481
+ }
3482
+
3483
+ @keyframes poolse-room-live {
3484
+ 50% {
3485
+ opacity: 0.35;
3486
+ }
3487
+ }
3488
+
3489
+ @media (prefers-reduced-motion: reduce) {
3490
+ .poolse-room__dot {
3491
+ animation: none;
3492
+ }
3402
3493
  }
3403
3494
 
3404
3495
  /* Full screen: the whole room from its header, or only a shared screen
@@ -3417,15 +3508,14 @@
3417
3508
  }
3418
3509
 
3419
3510
  .poolse-room__fullscreen {
3420
- width: 30px;
3421
- height: 30px;
3422
- margin: -4px -6px -4px 0;
3423
- background: transparent;
3511
+ width: 32px;
3512
+ height: 32px;
3513
+ background: rgba(255, 255, 255, 0.08);
3424
3514
  }
3425
3515
 
3426
3516
  .poolse-room__fullscreen:hover,
3427
3517
  .poolse-room__fullscreen:focus-visible {
3428
- background: rgba(255, 255, 255, 0.12);
3518
+ background: rgba(255, 255, 255, 0.18);
3429
3519
  }
3430
3520
 
3431
3521
  .poolse-room:fullscreen {
@@ -3438,7 +3528,9 @@
3438
3528
  right: 10px;
3439
3529
  width: 38px;
3440
3530
  height: 38px;
3441
- background: rgba(0, 0, 0, 0.6);
3531
+ background: rgba(20, 21, 25, 0.6);
3532
+ backdrop-filter: blur(12px);
3533
+ -webkit-backdrop-filter: blur(12px);
3442
3534
  opacity: 0;
3443
3535
  transition: opacity 0.15s ease;
3444
3536
  }
@@ -3474,9 +3566,9 @@
3474
3566
  }
3475
3567
 
3476
3568
  .poolse-room__stage > .callstage {
3477
- border-radius: 12px;
3569
+ border-radius: 16px;
3478
3570
  overflow: hidden;
3479
- background: #1c1c20;
3571
+ background: #1b1c21;
3480
3572
  }
3481
3573
 
3482
3574
  /* In a room the grid fills the stage, Meet-style, instead of the call
@@ -3509,6 +3601,21 @@
3509
3601
  .poolse-room .callgrid__tile {
3510
3602
  aspect-ratio: auto;
3511
3603
  min-height: 0;
3604
+ border-radius: 16px;
3605
+ background: #1b1c21;
3606
+ }
3607
+
3608
+ /* The speaking ring sits inside the tile, so it never shifts the layout. */
3609
+ .poolse-room .callgrid__tile--speaking {
3610
+ border-color: transparent;
3611
+ box-shadow: inset 0 0 0 2px #8ab4f8;
3612
+ }
3613
+
3614
+ .poolse-room .callgrid__caption {
3615
+ background: rgba(20, 21, 25, 0.55);
3616
+ backdrop-filter: blur(12px);
3617
+ -webkit-backdrop-filter: blur(12px);
3618
+ font-weight: 500;
3512
3619
  }
3513
3620
 
3514
3621
  /* A shared screen fills the stage, uncropped, with everyone's faces in a
@@ -3524,7 +3631,7 @@
3524
3631
  position: relative;
3525
3632
  min-width: 0;
3526
3633
  min-height: 0;
3527
- border-radius: 12px;
3634
+ border-radius: 16px;
3528
3635
  overflow: hidden;
3529
3636
  background: #000;
3530
3637
  }
@@ -3548,11 +3655,27 @@
3548
3655
  min-height: 0;
3549
3656
  }
3550
3657
 
3658
+ .callpresent__strip .callgrid__caption {
3659
+ inset: auto auto 6px 6px;
3660
+ max-width: calc(100% - 12px);
3661
+ padding: 3px 8px;
3662
+ font-size: 11px;
3663
+ }
3664
+
3551
3665
  @media (max-width: 640px) {
3552
3666
  .callpresent {
3553
3667
  grid-template-columns: minmax(0, 1fr);
3554
3668
  grid-template-rows: minmax(0, 1fr) 96px;
3555
3669
  }
3670
+ }
3671
+
3672
+ /* The same stacking whenever the room itself is narrow (a side panel,
3673
+ a phone), whatever the window's width. */
3674
+ @container poolse-room (max-width: 640px) {
3675
+ .callpresent {
3676
+ grid-template-columns: minmax(0, 1fr);
3677
+ grid-template-rows: minmax(0, 1fr) 96px;
3678
+ }
3556
3679
 
3557
3680
  .callpresent__strip {
3558
3681
  flex-direction: row;
@@ -3566,24 +3689,38 @@
3566
3689
  }
3567
3690
  }
3568
3691
 
3692
+ @media (max-width: 640px) {
3693
+ .callpresent__strip {
3694
+ flex-direction: row;
3695
+ overflow-x: auto;
3696
+ overflow-y: hidden;
3697
+ }
3698
+
3699
+ .callpresent__strip .callgrid__tile {
3700
+ height: 100%;
3701
+ aspect-ratio: 4 / 3;
3702
+ }
3703
+ }
3704
+
3569
3705
  .poolse-room__sharing {
3570
3706
  display: flex;
3571
3707
  align-items: center;
3572
3708
  justify-content: center;
3573
3709
  gap: 10px;
3710
+ align-self: center;
3574
3711
  margin: 0 8px;
3575
- padding: 8px 12px;
3576
- border-radius: 10px;
3577
- font-size: 13.5px;
3578
- color: #fff;
3579
- background: color-mix(in srgb, var(--poolse-brand, #e25a3a) 85%, #000);
3712
+ padding: 6px 6px 6px 14px;
3713
+ border-radius: 999px;
3714
+ font-size: 13px;
3715
+ color: #0b1a33;
3716
+ background: #8ab4f8;
3580
3717
  }
3581
3718
 
3582
3719
  .poolse-room__sharing button {
3583
3720
  font: inherit;
3584
3721
  font-weight: 600;
3585
- color: inherit;
3586
- background: rgba(255, 255, 255, 0.18);
3722
+ color: #fff;
3723
+ background: #0b1a33;
3587
3724
  border: none;
3588
3725
  border-radius: 999px;
3589
3726
  padding: 4px 12px;
@@ -3631,13 +3768,64 @@
3631
3768
  text-align: center;
3632
3769
  }
3633
3770
 
3771
+ /* The controls: one floating dock under the stage. It never wraps —
3772
+ a second row is how the Leave button ended up out of sight on a
3773
+ phone — and shrinks its buttons when the room is narrow instead. */
3634
3774
  .poolse-room__bar {
3635
3775
  display: flex;
3636
3776
  justify-content: center;
3637
- align-items: flex-start;
3638
- gap: 6px;
3639
- flex-wrap: wrap;
3640
- padding: 12px 12px 16px;
3777
+ align-items: center;
3778
+ gap: 8px;
3779
+ flex-wrap: nowrap;
3780
+ align-self: center;
3781
+ max-width: calc(100% - 16px);
3782
+ margin: 6px 8px calc(12px + env(safe-area-inset-bottom, 0px));
3783
+ padding: 8px;
3784
+ border-radius: 999px;
3785
+ background: rgba(255, 255, 255, 0.05);
3786
+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
3787
+ }
3788
+
3789
+ .poolse-room__bar .callbtn__label {
3790
+ position: absolute;
3791
+ width: 1px;
3792
+ height: 1px;
3793
+ overflow: hidden;
3794
+ clip-path: inset(50%);
3795
+ white-space: nowrap;
3796
+ }
3797
+
3798
+ .poolse-room__bar .callbtn--danger {
3799
+ margin-left: 4px;
3800
+ }
3801
+
3802
+ @container poolse-room (max-width: 420px) {
3803
+ .poolse-room__head {
3804
+ padding: 10px 10px 2px 14px;
3805
+ }
3806
+
3807
+ .poolse-room__bar {
3808
+ gap: 6px;
3809
+ padding: 6px;
3810
+ }
3811
+
3812
+ .poolse-room__bar .callbtn {
3813
+ width: 44px;
3814
+ height: 44px;
3815
+ }
3816
+
3817
+ .poolse-room__bar .callbtn--large {
3818
+ width: 56px;
3819
+ }
3820
+
3821
+ .poolse-room__bar .callbtn__caret {
3822
+ width: 22px;
3823
+ height: 44px;
3824
+ }
3825
+
3826
+ .poolse-room__stage {
3827
+ padding: 6px;
3828
+ }
3641
3829
  }
3642
3830
 
3643
3831
  /* The join / start bar — on the page's own theme, above the chat. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolse/react-ui",
3
- "version": "3.2.0-dev.3",
3
+ "version": "3.2.0-dev.4",
4
4
  "description": "React chat UI components — ConversationView, PoolseInbox, MessageBubble, TypingIndicator, ReactionPicker, ThreadView. CSS-variable theming, render-prop escape hatches. MIT — alternative to Sendbird, Stream, TalkJS, CometChat.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [
@@ -58,8 +58,8 @@
58
58
  "CHANGELOG.md"
59
59
  ],
60
60
  "dependencies": {
61
- "@poolse/react": "^3.2.0-dev.3",
62
- "@poolse/sdk": "^3.2.0-dev.3",
61
+ "@poolse/react": "^3.2.0-dev.4",
62
+ "@poolse/sdk": "^3.2.0-dev.4",
63
63
  "react-markdown": "^9.0.1",
64
64
  "remark-gfm": "^4.0.0"
65
65
  },