survey-react 1.9.127 → 1.9.129

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/modern.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.127
2
+ * surveyjs - Survey JavaScript library v1.9.129
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -79,6 +79,10 @@
79
79
  transform: translate(0, 0);
80
80
  }
81
81
  }
82
+ :root {
83
+ --sjs-transition-duration: 150ms;
84
+ }
85
+
82
86
  sv-popup {
83
87
  display: block;
84
88
  position: absolute;
@@ -515,6 +519,10 @@ sv-popup {
515
519
  flex-grow: 1;
516
520
  }
517
521
 
522
+ :root {
523
+ --sjs-transition-duration: 150ms;
524
+ }
525
+
518
526
  .sv_progress-buttons__container-center {
519
527
  text-align: center;
520
528
  }
@@ -624,6 +632,10 @@ sv-popup {
624
632
  cursor: not-allowed;
625
633
  }
626
634
 
635
+ :root {
636
+ --sjs-transition-duration: 150ms;
637
+ }
638
+
627
639
  .sv_progress-toc {
628
640
  padding: var(--sjs-base-unit, var(--base-unit, 8px));
629
641
  max-width: 336px;
@@ -2553,6 +2565,10 @@ select.sv-dropdown {
2553
2565
  color: var(--foreground-light, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)));
2554
2566
  }
2555
2567
 
2568
+ :root {
2569
+ --sjs-transition-duration: 150ms;
2570
+ }
2571
+
2556
2572
  .sv-action-bar {
2557
2573
  display: flex;
2558
2574
  box-sizing: content-box;
@@ -2742,6 +2758,10 @@ button.sv-action-bar-item {
2742
2758
  opacity: 50%;
2743
2759
  }
2744
2760
 
2761
+ :root {
2762
+ --sjs-transition-duration: 150ms;
2763
+ }
2764
+
2745
2765
  .sv-dragged-element-shortcut {
2746
2766
  height: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
2747
2767
  min-width: calc(12.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
@@ -2782,6 +2802,10 @@ button.sv-action-bar-item {
2782
2802
  visibility: hidden;
2783
2803
  }
2784
2804
 
2805
+ :root {
2806
+ --sjs-transition-duration: 150ms;
2807
+ }
2808
+
2785
2809
  sv-popup {
2786
2810
  display: block;
2787
2811
  position: absolute;
@@ -3218,6 +3242,10 @@ sv-popup {
3218
3242
  flex-grow: 1;
3219
3243
  }
3220
3244
 
3245
+ :root {
3246
+ --sjs-transition-duration: 150ms;
3247
+ }
3248
+
3221
3249
  .sv-button-group {
3222
3250
  display: flex;
3223
3251
  align-items: center;
@@ -3356,6 +3384,14 @@ sv-popup {
3356
3384
  min-width: unset;
3357
3385
  }
3358
3386
 
3387
+ :root {
3388
+ --sjs-transition-duration: 150ms;
3389
+ }
3390
+
3391
+ :root {
3392
+ --sjs-transition-duration: 150ms;
3393
+ }
3394
+
3359
3395
  .sv_window {
3360
3396
  position: fixed;
3361
3397
  bottom: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
@@ -3365,16 +3401,67 @@ sv-popup {
3365
3401
  box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));
3366
3402
  background-clip: padding-box;
3367
3403
  z-index: 100;
3368
- max-height: 90vh;
3404
+ max-height: 50vh;
3369
3405
  overflow: auto;
3370
3406
  box-sizing: border-box;
3407
+ background: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
3408
+ }
3409
+ @-moz-document url-prefix() {
3410
+ .sv_window,
3411
+ .sv_window * {
3412
+ scrollbar-width: thin;
3413
+ scrollbar-color: var(--sjs-border-default, var(--border, #d6d6d6)) transparent;
3414
+ }
3415
+ }
3416
+ .sv_window::-webkit-scrollbar,
3417
+ .sv_window *::-webkit-scrollbar {
3418
+ width: 12px;
3419
+ height: 12px;
3420
+ background-color: transparent;
3421
+ }
3422
+ .sv_window::-webkit-scrollbar-thumb,
3423
+ .sv_window *::-webkit-scrollbar-thumb {
3424
+ border: 4px solid rgba(0, 0, 0, 0);
3425
+ background-clip: padding-box;
3426
+ border-radius: 32px;
3427
+ background-color: var(--sjs-border-default, var(--border, #d6d6d6));
3428
+ }
3429
+ .sv_window::-webkit-scrollbar-track,
3430
+ .sv_window *::-webkit-scrollbar-track {
3431
+ background: transparent;
3432
+ }
3433
+ .sv_window::-webkit-scrollbar-thumb:hover,
3434
+ .sv_window *::-webkit-scrollbar-thumb:hover {
3435
+ border: 2px solid rgba(0, 0, 0, 0);
3436
+ background-color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
3437
+ }
3438
+
3439
+ .sv_window_root-content {
3440
+ height: 100%;
3441
+ }
3442
+
3443
+ .sv_window--full-screen {
3444
+ top: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3445
+ left: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3446
+ right: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3447
+ bottom: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3448
+ max-height: 100%;
3449
+ width: initial !important;
3450
+ max-width: initial !important;
3451
+ }
3452
+
3453
+ .sv_window_header {
3454
+ display: flex;
3455
+ justify-content: flex-end;
3371
3456
  }
3372
3457
 
3373
3458
  .sv_window_content {
3374
- border-radius: var(--sjs-base-unit, var(--base-unit, 8px));
3375
3459
  overflow: hidden;
3376
3460
  }
3377
3461
 
3462
+ .sv_window--collapsed {
3463
+ height: initial;
3464
+ }
3378
3465
  .sv_window--collapsed .sv_window_header {
3379
3466
  height: calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3380
3467
  padding: var(--sjs-base-unit, var(--base-unit, 8px)) var(--sjs-base-unit, var(--base-unit, 8px)) var(--sjs-base-unit, var(--base-unit, 8px)) calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
@@ -3385,6 +3472,10 @@ sv-popup {
3385
3472
  .sv_window--collapsed .sv_window_content {
3386
3473
  display: none;
3387
3474
  }
3475
+ .sv_window--collapsed .sv_window_buttons_container {
3476
+ margin-top: 0;
3477
+ margin-right: 0;
3478
+ }
3388
3479
 
3389
3480
  .sv_window_header_title_collapsed {
3390
3481
  color: var(--sjs-general-dim-forecolor, rgba(0, 0, 0, 0.91));
@@ -3395,7 +3486,7 @@ sv-popup {
3395
3486
  line-height: calc(1.5 * (var(--sjs-font-size, 16px)));
3396
3487
  flex: 1;
3397
3488
  display: flex;
3398
- justify-content: start;
3489
+ justify-content: flex-start;
3399
3490
  align-items: center;
3400
3491
  }
3401
3492
 
@@ -3412,9 +3503,9 @@ sv-popup {
3412
3503
  }
3413
3504
 
3414
3505
  .sv_window_buttons_container {
3415
- position: absolute;
3416
- top: var(--sjs-base-unit, var(--base-unit, 8px));
3417
- right: var(--sjs-base-unit, var(--base-unit, 8px));
3506
+ position: fixed;
3507
+ margin-top: var(--sjs-base-unit, var(--base-unit, 8px));
3508
+ margin-right: var(--sjs-base-unit, var(--base-unit, 8px));
3418
3509
  display: flex;
3419
3510
  gap: var(--sjs-base-unit, var(--base-unit, 8px));
3420
3511
  z-index: 1;
@@ -3431,13 +3522,16 @@ sv-popup {
3431
3522
  .sv_window_button:hover, .sv_window_button:active {
3432
3523
  background-color: var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));
3433
3524
  }
3434
- .sv_window_button:hover svg use, .sv_window_button:hover svg path, .sv_window_button:active svg use, .sv_window_button:active svg path {
3525
+ .sv_window_button:hover svg use,
3526
+ .sv_window_button:hover svg path, .sv_window_button:active svg use,
3527
+ .sv_window_button:active svg path {
3435
3528
  fill: var(--sjs-primary-backcolor, var(--primary, #19b394));
3436
3529
  }
3437
3530
  .sv_window_button:active {
3438
3531
  opacity: 0.5;
3439
3532
  }
3440
- .sv_window_button svg use, .sv_window_button svg path {
3533
+ .sv_window_button svg use,
3534
+ .sv_window_button svg path {
3441
3535
  fill: var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, 0.45));
3442
3536
  }
3443
3537
 
@@ -3484,6 +3578,14 @@ sv-brand-info, .sv-brand-info {
3484
3578
  color: #909090;
3485
3579
  }
3486
3580
 
3581
+ :root {
3582
+ --sjs-transition-duration: 150ms;
3583
+ }
3584
+
3585
+ :root {
3586
+ --sjs-transition-duration: 150ms;
3587
+ }
3588
+
3487
3589
  .sv-ranking {
3488
3590
  outline: none;
3489
3591
  user-select: none;
@@ -3573,6 +3675,8 @@ sv-brand-info, .sv-brand-info {
3573
3675
  box-sizing: border-box;
3574
3676
  font-weight: 600;
3575
3677
  margin-left: calc(0 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3678
+ transition: outline var(--sjs-transition-duration, 150ms), background var(--sjs-transition-duration, 150ms);
3679
+ outline: calc(0.25 * (var(--sjs-base-unit, var(--base-unit, 8px)))) solid transparent;
3576
3680
  }
3577
3681
  .sv-ranking-item__index.sv-ranking-item__index svg {
3578
3682
  fill: var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));
@@ -3767,6 +3871,10 @@ sv-brand-info, .sv-brand-info {
3767
3871
  display: none;
3768
3872
  }
3769
3873
 
3874
+ :root {
3875
+ --sjs-transition-duration: 150ms;
3876
+ }
3877
+
3770
3878
  .sv-list {
3771
3879
  padding: 0;
3772
3880
  margin: 0;
@@ -3821,6 +3929,7 @@ sv-brand-info, .sv-brand-info {
3821
3929
  text-align: left;
3822
3930
  text-overflow: ellipsis;
3823
3931
  white-space: nowrap;
3932
+ transition: background-color var(--sjs-transition-duration, 150ms), color var(--sjs-transition-duration, 150ms);
3824
3933
  }
3825
3934
 
3826
3935
  .sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) {
@@ -3981,6 +4090,10 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
3981
4090
  background-color: transparent;
3982
4091
  }
3983
4092
 
4093
+ :root {
4094
+ --sjs-transition-duration: 150ms;
4095
+ }
4096
+
3984
4097
  .sv-save-data_root {
3985
4098
  position: fixed;
3986
4099
  left: 50%;
@@ -4259,10 +4372,6 @@ sv-components-container,
4259
4372
  .sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label {
4260
4373
  display: inline;
4261
4374
  }
4262
- .sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td:after,
4263
- .sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td:after {
4264
- content: attr(data-responsive-title);
4265
- }
4266
4375
  .sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,
4267
4376
  .sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell {
4268
4377
  text-align: initial;
@@ -4314,10 +4423,6 @@ sv-components-container,
4314
4423
  .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label {
4315
4424
  display: inline;
4316
4425
  }
4317
- .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td:after,
4318
- .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td:after {
4319
- content: attr(data-responsive-title);
4320
- }
4321
4426
  .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,
4322
4427
  .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell {
4323
4428
  text-align: initial;