survey-react 1.10.6 → 1.11.1

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/defaultV2.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.10.6
2
+ * surveyjs - Survey JavaScript library v1.11.1
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
  */
@@ -483,6 +483,18 @@ sv-popup {
483
483
  height: 0;
484
484
  }
485
485
 
486
+ .sv-popup.sv-popup-inner {
487
+ height: 0;
488
+ }
489
+
490
+ .sv-popup-inner > .sv-popup__container {
491
+ margin-top: calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))));
492
+ }
493
+
494
+ .sv-list__item--with-icon .sv-popup-inner > .sv-popup__container {
495
+ margin-top: calc(-0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
496
+ }
497
+
486
498
  .sv-popup__container {
487
499
  background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
488
500
  box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
@@ -533,6 +545,10 @@ sv-popup {
533
545
  padding-bottom: 2px;
534
546
  }
535
547
 
548
+ .sv-popup--modal .sv-popup__body-footer .sv-footer-action-bar {
549
+ overflow: visible;
550
+ }
551
+
536
552
  .sv-popup--confirm-delete .sv-popup__shadow {
537
553
  height: initial;
538
554
  }
@@ -640,6 +656,7 @@ sv-popup {
640
656
  display: flex;
641
657
  flex-direction: column;
642
658
  min-height: 0;
659
+ position: relative;
643
660
  }
644
661
 
645
662
  .sv-popup--show-pointer.sv-popup--top .sv-popup__pointer {
@@ -1732,6 +1749,7 @@ sv-brand-info, .sv-brand-info {
1732
1749
  }
1733
1750
 
1734
1751
  .sv-list__item-body {
1752
+ position: relative;
1735
1753
  width: 100%;
1736
1754
  align-items: center;
1737
1755
  box-sizing: border-box;
@@ -1768,15 +1786,16 @@ sv-brand-info, .sv-brand-info {
1768
1786
  .sv-list__item:focus {
1769
1787
  outline: none;
1770
1788
  }
1771
- .sv-list__item:hover .sv-list__item-body,
1772
- .sv-list__item:focus .sv-list__item-body {
1789
+
1790
+ .sv-list__item:focus .sv-list__item-body,
1791
+ .sv-list__item--hovered > .sv-list__item-body {
1773
1792
  background-color: var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)));
1774
1793
  }
1775
1794
 
1776
1795
  .sv-list__item--with-icon.sv-list__item--with-icon {
1777
1796
  padding: 0;
1778
1797
  }
1779
- .sv-list__item--with-icon.sv-list__item--with-icon .sv-list__item-body {
1798
+ .sv-list__item--with-icon.sv-list__item--with-icon > .sv-list__item-body {
1780
1799
  padding-top: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1781
1800
  padding-bottom: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1782
1801
  gap: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
@@ -1796,6 +1815,19 @@ sv-brand-info, .sv-brand-info {
1796
1815
  fill: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
1797
1816
  }
1798
1817
 
1818
+ .sv-list-item__marker-icon {
1819
+ position: absolute;
1820
+ right: var(--sjs-base-unit, var(--base-unit, 8px));
1821
+ flex-shrink: 0;
1822
+ padding: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1823
+ }
1824
+ .sv-list-item__marker-icon svg {
1825
+ display: block;
1826
+ }
1827
+ .sv-list-item__marker-icon use {
1828
+ fill: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
1829
+ }
1830
+
1799
1831
  [dir=rtl] .sv-list__item-icon,
1800
1832
  [style*="direction:rtl"] .sv-list__item-icon,
1801
1833
  [style*="direction: rtl"] .sv-list__item-icon {
@@ -1812,11 +1844,11 @@ sv-brand-info, .sv-brand-info {
1812
1844
  display: none;
1813
1845
  }
1814
1846
 
1815
- .sv-list__item.sv-list__item--selected .sv-list__item-body,
1816
- .sv-list__item.sv-list__item--selected:hover .sv-list__item-body,
1817
- .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body,
1818
- .sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body,
1819
- li:focus .sv-list__item.sv-list__item--selected .sv-list__item-body {
1847
+ .sv-list__item.sv-list__item--selected > .sv-list__item-body,
1848
+ .sv-list__item.sv-list__item--selected:hover > .sv-list__item-body,
1849
+ .sv-list__item.sv-list__item--selected.sv-list__item--focused > .sv-list__item-body,
1850
+ .sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused > .sv-list__item-body,
1851
+ li:focus .sv-list__item.sv-list__item--selected > .sv-list__item-body {
1820
1852
  background-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
1821
1853
  color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
1822
1854
  font-weight: 600;
@@ -1828,6 +1860,13 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-body {
1828
1860
  li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1829
1861
  fill: var(--sjs-general-backcolor, var(--background, #fff));
1830
1862
  }
1863
+ .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use,
1864
+ .sv-list__item.sv-list__item--selected:hover .sv-list-item__marker-icon use,
1865
+ .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,
1866
+ .sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,
1867
+ li:focus .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use {
1868
+ fill: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
1869
+ }
1831
1870
 
1832
1871
  .sv-multi-select-list .sv-list__item.sv-list__item--selected .sv-list__item-body,
1833
1872
  .sv-multi-select-list .sv-list__item.sv-list__item--selected:hover .sv-list__item-body {
@@ -2330,6 +2369,11 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2330
2369
  position: relative;
2331
2370
  }
2332
2371
 
2372
+ .sd-question--no-pointer-events .sd-selectbase label,
2373
+ .sd-question--no-pointer-events .sd-rating label {
2374
+ pointer-events: none;
2375
+ }
2376
+
2333
2377
  .sd-element__erbox--above-element {
2334
2378
  margin-bottom: var(--sjs-base-unit, var(--base-unit, 8px));
2335
2379
  }
@@ -3683,11 +3727,18 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3683
3727
  margin-top: var(--sd-base-vertical-padding);
3684
3728
  --animate-margin: var(--sd-base-vertical-padding);
3685
3729
  }
3730
+ .sd-page__title ~ .sd-page__row.sd-row.sd-row--fade-in.sd-row--fade-in,
3731
+ .sd-page__description ~ .sd-page__row.sd-row.sd-row--fade-in.sd-row--fade-in {
3732
+ margin-top: 0;
3733
+ }
3686
3734
 
3687
3735
  .sd-row.sd-page__row:not(.sd-row--compact) ~ .sd-row.sd-page__row:not(.sd-row--compact) {
3688
3736
  margin-top: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3689
3737
  --animate-margin: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3690
3738
  }
3739
+ .sd-row.sd-page__row:not(.sd-row--compact) ~ .sd-page__row.sd-row.sd-row--fade-in.sd-row--fade-in {
3740
+ margin-top: 0;
3741
+ }
3691
3742
 
3692
3743
  .sd-row--multiple {
3693
3744
  row-gap: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
@@ -3751,16 +3802,25 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3751
3802
  margin-top: var(--animate-margin);
3752
3803
  }
3753
3804
  }
3805
+ .sd-row.sd-row--fade-in {
3806
+ margin-top: 0;
3807
+ }
3808
+
3754
3809
  .sd-row--fade-in {
3755
3810
  animation-fill-mode: forwards;
3756
3811
  animation-name: fadeIn, moveInWithOverflow, marginFadeIn;
3757
3812
  min-height: 0 !important;
3758
3813
  opacity: 0;
3814
+ height: 0;
3759
3815
  animation-timing-function: cubic-bezier(0, 0, 0.58, 1);
3760
3816
  animation-delay: var(--sjs-row-fade-in-delay, 150ms), 0s, 0s;
3761
3817
  animation-duration: var(--sjs-row-fade-in-duration, 500ms), var(--sjs-row-move-in-duration, 150ms), var(--sjs-row-move-in-duration, 150ms);
3762
3818
  }
3763
3819
 
3820
+ .sd-row--delayed-fade-in {
3821
+ animation-delay: calc(var(--sjs-row-fade-in-delay, 150ms) + var(--sjs-row-fade-in-animation-delay, 400ms)), var(--sjs-row-fade-in-animation-delay, 400ms), var(--sjs-row-fade-in-animation-delay, 400ms);
3822
+ }
3823
+
3764
3824
  .sd-row--fade-out {
3765
3825
  animation-name: fadeIn, moveInWithOverflow, marginFadeIn;
3766
3826
  animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
@@ -4935,6 +4995,11 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
4935
4995
  box-shadow: var(--sjs-shadow-inner-reset, inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)), 0 0 0 2px var(--sjs-primary-backcolor, var(--primary, #19b394));
4936
4996
  }
4937
4997
 
4998
+ .sd-input.sd-dropdown.sd-input--readonly {
4999
+ box-shadow: none;
5000
+ transition: none;
5001
+ }
5002
+
4938
5003
  .sd-dropdown__filter-string-input {
4939
5004
  --sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));
4940
5005
  position: absolute;
@@ -5515,6 +5580,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
5515
5580
  .sd-expression {
5516
5581
  color: var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));
5517
5582
  font-size: var(--sjs-font-size, 16px);
5583
+ white-space: break-spaces;
5518
5584
  }
5519
5585
 
5520
5586
  .sd-question__content--left .sd-expression {
@@ -5638,11 +5704,11 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
5638
5704
  white-space: nowrap;
5639
5705
  }
5640
5706
 
5641
- .sd-boolean--checked .sd-boolean__thumb {
5707
+ .sd-boolean--checked:not(.sd-boolean--exchanged) .sd-boolean__thumb {
5642
5708
  margin-left: 50%;
5643
5709
  }
5644
5710
 
5645
- .sd-boolean--exchanged .sd-boolean__thumb {
5711
+ .sd-boolean--exchanged:not(.sd-boolean--checked) .sd-boolean__thumb {
5646
5712
  margin-left: calc(50% + 0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5647
5713
  }
5648
5714
  .sd-boolean--exchanged.sd-boolean:not(.sd-boolean--checked):not(sd-boolean--indeterminate) .sd-boolean__label--false, .sd-boolean--exchanged.sd-boolean.sd-boolean--checked .sd-boolean__label--true {
@@ -6263,16 +6329,18 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
6263
6329
  min-height: 100%;
6264
6330
  width: calc(12 * (var(--sjs-base-unit, var(--base-unit, 8px))));
6265
6331
  margin: 0;
6332
+ cursor: pointer;
6266
6333
  }
6267
6334
  .sd-file__preview-item .sd-file__default-image {
6268
6335
  width: calc(7 * (var(--sjs-base-unit, var(--base-unit, 8px))));
6269
6336
  height: calc(8.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
6270
6337
  }
6271
- .sd-file__preview-item img:hover + .sd-file__remove-file-button,
6272
- .sd-file__preview-item svg:hover + .sd-file__remove-file-button,
6273
- .sd-file__preview-item .sd-file__remove-file-button:hover {
6338
+ .sd-file__preview-item:hover .sd-file__remove-file-button {
6274
6339
  opacity: 1;
6275
6340
  }
6341
+ .sd-file__preview-item:hover .sd-file__sign a {
6342
+ text-decoration: underline;
6343
+ }
6276
6344
 
6277
6345
  .sd-file__sign {
6278
6346
  margin-top: var(--sjs-base-unit, var(--base-unit, 8px));
@@ -6302,12 +6370,18 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
6302
6370
  display: block;
6303
6371
  opacity: 0;
6304
6372
  position: absolute;
6305
- left: 50%;
6306
- top: 50%;
6373
+ left: 100%;
6374
+ top: 0;
6307
6375
  transform: translate(-50%, -50%);
6308
6376
  transition: opacity var(--sjs-transition-duration, 150ms);
6309
6377
  }
6310
6378
 
6379
+ .sd-file__image-wrapper--default-image .sd-file__remove-file-button {
6380
+ left: 50%;
6381
+ top: 50%;
6382
+ transform: translate(calc(3.5 * var(--sjs-base-unit, var(--base-unit, 8px)) - 50% - 1.5px), calc(-4.25 * var(--sjs-base-unit, var(--base-unit, 8px)) - 50% + 1.5px));
6383
+ }
6384
+
6311
6385
  .sd-file__decorator--error {
6312
6386
  background-color: var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)));
6313
6387
  }
@@ -6336,7 +6410,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
6336
6410
  background: transparent;
6337
6411
  }
6338
6412
 
6339
- .sd-file--single img:hover + .sd-file__remove-file-button {
6413
+ .sd-file--single .sd-file__preview-item .sd-file__remove-file-button {
6340
6414
  display: none;
6341
6415
  }
6342
6416
 
@@ -7075,6 +7149,33 @@ svg.sd-action--icon {
7075
7149
  opacity: 0.25;
7076
7150
  }
7077
7151
 
7152
+ .sd-context-btn--small {
7153
+ padding: var(--sjs-base-unit, var(--base-unit, 8px));
7154
+ }
7155
+ .sd-context-btn--small svg {
7156
+ width: var(--sjs-internal-font-editorfont-size);
7157
+ height: var(--sjs-internal-font-editorfont-size);
7158
+ }
7159
+
7160
+ .sd-context-btn--with-border {
7161
+ border: 1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, 0.16)));
7162
+ }
7163
+
7164
+ .sd-context-btn--colorful:focus,
7165
+ .sd-context-btn--colorful:hover {
7166
+ border-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
7167
+ background: linear-gradient(var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1))), var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)))), linear-gradient(var(--sjs-general-backcolor, var(--background, #fff)), var(--sjs-general-backcolor, var(--background, #fff)));
7168
+ }
7169
+ .sd-context-btn--colorful:focus.sd-context-btn--with-border,
7170
+ .sd-context-btn--colorful:hover.sd-context-btn--with-border {
7171
+ border-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
7172
+ }
7173
+ .sd-context-btn--colorful:focus.sd-context-btn--negative,
7174
+ .sd-context-btn--colorful:hover.sd-context-btn--negative {
7175
+ border-color: var(--sjs-special-red, var(--red, #e60a3e));
7176
+ background: linear-gradient(var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1))), var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)))), linear-gradient(var(--sjs-general-backcolor, var(--background, #fff)), var(--sjs-general-backcolor, var(--background, #fff)));
7177
+ }
7178
+
7078
7179
  :root {
7079
7180
  --sjs-transition-duration: 150ms;
7080
7181
  }
@@ -7332,6 +7433,7 @@ svg.sd-action--icon {
7332
7433
  z-index: -1;
7333
7434
  border: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) solid transparent;
7334
7435
  border-radius: 50%;
7436
+ box-sizing: content-box;
7335
7437
  }
7336
7438
  .sd-progress-buttons__list li:hover .sd-progress-buttons__button {
7337
7439
  color: var(--sjs-primary-backcolor, var(--primary, #19b394));
@@ -7525,6 +7627,18 @@ svg.sd-action--icon {
7525
7627
  background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
7526
7628
  }
7527
7629
 
7630
+ .sd-title + .sv-components-row > .sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile),
7631
+ .sd-title ~ .sv-components-row > .sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile) {
7632
+ margin-top: 2px;
7633
+ }
7634
+
7635
+ .sv_progress-toc.sv_progress-toc--sticky {
7636
+ position: sticky;
7637
+ height: auto;
7638
+ overflow-y: auto;
7639
+ top: 0;
7640
+ }
7641
+
7528
7642
  .sd-list {
7529
7643
  padding-right: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7530
7644
  padding-left: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));