survey-react 1.11.3 → 1.11.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/defaultV2.css +55 -15
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +22 -8
- package/survey.react.js +118 -84
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/defaultV2.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.11.
|
2
|
+
* surveyjs - Survey JavaScript library v1.11.4
|
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
|
*/
|
@@ -5612,8 +5612,9 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
5612
5612
|
.sd-progress__text {
|
5613
5613
|
position: absolute;
|
5614
5614
|
margin-top: var(--sjs-base-unit, var(--base-unit, 8px));
|
5615
|
-
|
5616
|
-
|
5615
|
+
padding: var(--sjs-base-unit, var(--base-unit, 8px)) calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
5616
|
+
right: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
5617
|
+
color: var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, 0.45));
|
5617
5618
|
font-size: calc(0.75 * (var(--sjs-font-size, 16px)));
|
5618
5619
|
line-height: var(--sjs-font-size, 16px);
|
5619
5620
|
font-weight: 600;
|
@@ -5640,6 +5641,14 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
5640
5641
|
margin-top: calc(-3.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
5641
5642
|
}
|
5642
5643
|
|
5644
|
+
.sv-root--sticky-top .sd-progress__text {
|
5645
|
+
border-radius: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
5646
|
+
color: var(--sjs-general-dim-forecolor, rgba(0, 0, 0, 0.91));
|
5647
|
+
opacity: 0.75;
|
5648
|
+
background: var(--sjs-general-backcolor, var(--background, #fff));
|
5649
|
+
box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-small, 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
|
5650
|
+
}
|
5651
|
+
|
5643
5652
|
.sd-boolean {
|
5644
5653
|
display: flex;
|
5645
5654
|
width: max-content;
|
@@ -5698,11 +5707,14 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
5698
5707
|
}
|
5699
5708
|
|
5700
5709
|
.sd-boolean__thumb {
|
5710
|
+
position: absolute;
|
5711
|
+
left: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
5712
|
+
transform: translateX(0);
|
5701
5713
|
background-color: var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));
|
5702
5714
|
box-shadow: var(--sjs-shadow-small, 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
|
5703
5715
|
border-radius: calc(12.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
5704
5716
|
transition-duration: 0.2s;
|
5705
|
-
transition-property:
|
5717
|
+
transition-property: transform, left;
|
5706
5718
|
transition-timing-function: linear;
|
5707
5719
|
color: var(--sjs-primary-backcolor, var(--primary, #19b394));
|
5708
5720
|
font-weight: 600;
|
@@ -5712,13 +5724,12 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
5712
5724
|
white-space: nowrap;
|
5713
5725
|
}
|
5714
5726
|
|
5715
|
-
.sd-boolean--checked:not(.sd-boolean--exchanged) .sd-boolean__thumb
|
5716
|
-
margin-left: 50%;
|
5717
|
-
}
|
5718
|
-
|
5727
|
+
.sd-boolean--checked:not(.sd-boolean--exchanged) .sd-boolean__thumb,
|
5719
5728
|
.sd-boolean--exchanged:not(.sd-boolean--checked) .sd-boolean__thumb {
|
5720
|
-
|
5729
|
+
left: calc(100% - 0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5730
|
+
transform: translateX(-100%);
|
5721
5731
|
}
|
5732
|
+
|
5722
5733
|
.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 {
|
5723
5734
|
color: var(--sjs-font-editorfont-placeholdercolor, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)));
|
5724
5735
|
}
|
@@ -7371,6 +7382,7 @@ svg.sd-action--icon {
|
|
7371
7382
|
padding: calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
7372
7383
|
display: flex;
|
7373
7384
|
flex-direction: column;
|
7385
|
+
transition: 0.25s padding ease-out;
|
7374
7386
|
}
|
7375
7387
|
|
7376
7388
|
.sd-progress-buttons__list-container {
|
@@ -7574,6 +7586,10 @@ svg.sd-action--icon {
|
|
7574
7586
|
padding: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
7575
7587
|
}
|
7576
7588
|
|
7589
|
+
.sv-root--sticky-top .sd-progress-buttons {
|
7590
|
+
padding: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
7591
|
+
}
|
7592
|
+
|
7577
7593
|
.sd-progress-buttons--fit-survey-width {
|
7578
7594
|
max-width: calc(90 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
7579
7595
|
box-sizing: border-box;
|
@@ -7757,25 +7773,35 @@ svg.sd-action--icon {
|
|
7757
7773
|
}
|
7758
7774
|
|
7759
7775
|
.sv-header__overlap {
|
7760
|
-
margin-bottom: calc(-14 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
7761
7776
|
padding-bottom: calc(8 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
7762
7777
|
}
|
7778
|
+
.sv-header__overlap ~ div .sd-body,
|
7779
|
+
.sv-header__overlap ~ div .sv-body {
|
7780
|
+
margin-top: calc(-14 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
7781
|
+
}
|
7782
|
+
|
7783
|
+
.sd-root-modern--mobile .sv-header__overlap {
|
7784
|
+
padding-bottom: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
7785
|
+
}
|
7786
|
+
.sd-root-modern--mobile .sv-header__overlap ~ div .sd-body,
|
7787
|
+
.sd-root-modern--mobile .sv-header__overlap ~ div .sv-body {
|
7788
|
+
margin-top: calc(-5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
7789
|
+
}
|
7763
7790
|
|
7764
7791
|
.sv-header__overlap.sv-header__without-background {
|
7765
7792
|
margin-bottom: 0;
|
7766
7793
|
padding-bottom: 0;
|
7767
7794
|
}
|
7795
|
+
.sv-header__overlap.sv-header__without-background ~ div .sd-body,
|
7796
|
+
.sv-header__overlap.sv-header__without-background ~ div .sv-body {
|
7797
|
+
margin-top: 0;
|
7798
|
+
}
|
7768
7799
|
|
7769
7800
|
.sv-header__without-background .sv-header--mobile,
|
7770
7801
|
.sv-header__without-background .sv-header__content {
|
7771
7802
|
padding-bottom: 0;
|
7772
7803
|
}
|
7773
7804
|
|
7774
|
-
.sd-root-modern--mobile .sv-header__overlap {
|
7775
|
-
margin-bottom: calc(-5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
7776
|
-
padding-bottom: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
7777
|
-
}
|
7778
|
-
|
7779
7805
|
.sv-header__content {
|
7780
7806
|
padding: calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
7781
7807
|
box-sizing: border-box;
|
@@ -8389,4 +8415,18 @@ body {
|
|
8389
8415
|
background-color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
|
8390
8416
|
}
|
8391
8417
|
|
8418
|
+
.sv-components-container-center {
|
8419
|
+
position: sticky;
|
8420
|
+
top: 0;
|
8421
|
+
}
|
8422
|
+
|
8423
|
+
.sv-root--sticky-top .sv-components-container-center {
|
8424
|
+
z-index: 15;
|
8425
|
+
}
|
8426
|
+
|
8427
|
+
.sv-root--sticky-top.sd-progress--pages .sv-components-container-center {
|
8428
|
+
background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
|
8429
|
+
box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-small, 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
|
8430
|
+
}
|
8431
|
+
|
8392
8432
|
/*# sourceMappingURL=defaultV2.css.map*/
|