survey-react 1.9.122 → 1.9.123
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/README.md +1 -1
- package/defaultV2.css +71 -26
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +1 -8
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.css.map +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +610 -633
- package/survey.react.js +232 -164
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# SurveyJS Form Library for React
|
2
2
|
|
3
3
|
|
4
|
-
https://github.com/surveyjs/survey-library/assets/22315929/
|
4
|
+
<video src="https://github.com/surveyjs/survey-library/assets/22315929/b24a68bf-d703-4096-835b-752f5f610aa6"></video>
|
5
5
|
|
6
6
|
|
7
7
|
SurveyJS Form Library is a free and open-source MIT-licensed JavaScript form builder library that allows you to design dynamic, data-driven, multi-language survey forms and run them in your web applications.
|
package/defaultV2.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.123
|
3
3
|
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -1880,6 +1880,14 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
1880
1880
|
border-radius: var(--sjs-corner-radius, 4px) var(--sjs-corner-radius, 4px) 0 0;
|
1881
1881
|
}
|
1882
1882
|
|
1883
|
+
.sd-question--left > .sd-element__erbox--above-element {
|
1884
|
+
margin-bottom: 0;
|
1885
|
+
}
|
1886
|
+
|
1887
|
+
.sd-element--with-frame.sd-question--left > .sd-element__erbox--above-element {
|
1888
|
+
margin-bottom: calc(1 * var(--sd-base-vertical-padding));
|
1889
|
+
}
|
1890
|
+
|
1883
1891
|
.sd-element--with-frame > .sd-question__erbox--below-question {
|
1884
1892
|
margin-top: auto;
|
1885
1893
|
border-radius: 0 0 var(--sjs-corner-radius, 4px) var(--sjs-corner-radius, 4px);
|
@@ -1932,7 +1940,6 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
1932
1940
|
.sd-question__header--location--left {
|
1933
1941
|
display: inline-block;
|
1934
1942
|
width: auto;
|
1935
|
-
max-width: 50%;
|
1936
1943
|
vertical-align: top;
|
1937
1944
|
margin-top: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1938
1945
|
}
|
@@ -1941,12 +1948,18 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
1941
1948
|
display: flex;
|
1942
1949
|
flex-wrap: wrap;
|
1943
1950
|
flex-direction: row;
|
1951
|
+
column-gap: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1952
|
+
row-gap: calc(0.25 * var(--sd-base-vertical-padding));
|
1944
1953
|
}
|
1945
1954
|
|
1946
1955
|
.sd-question__content--left {
|
1947
1956
|
display: inline-block;
|
1948
|
-
padding-left: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1949
1957
|
flex: 1;
|
1958
|
+
margin-top: calc(0.25 * var(--sd-base-vertical-padding)) 0;
|
1959
|
+
}
|
1960
|
+
|
1961
|
+
.sd-element--with-frame > .sd-question__content--left {
|
1962
|
+
margin: 0;
|
1950
1963
|
}
|
1951
1964
|
|
1952
1965
|
.sd-question__required-text {
|
@@ -2132,10 +2145,14 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
2132
2145
|
color: var(--sjs-font-editorfont-color, var(--sjs-general-forecolor, rgba(0, 0, 0, 0.91)));
|
2133
2146
|
font-size: var(--sjs-internal-font-editorfont-size);
|
2134
2147
|
background-color: var(--sjs-editorpanel-backcolor, var(--sjs-editor-background, var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9))));
|
2135
|
-
box-shadow: var(--sjs-shadow-inner, inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
|
2136
2148
|
border: none;
|
2137
2149
|
border-radius: var(--sjs-editorpanel-cornerRadius, var(--sjs-corner-radius, 4px));
|
2138
2150
|
text-align: start;
|
2151
|
+
box-shadow: var(--sjs-shadow-inner, inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15)), 0 0 0 0px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
2152
|
+
}
|
2153
|
+
|
2154
|
+
.sd-input:focus {
|
2155
|
+
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));
|
2139
2156
|
}
|
2140
2157
|
|
2141
2158
|
.sd-input.sd-input:focus {
|
@@ -2174,10 +2191,6 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
2174
2191
|
color: var(--sjs-general-forecolor, var(--foreground, #161616));
|
2175
2192
|
}
|
2176
2193
|
|
2177
|
-
.sd-input:focus {
|
2178
|
-
box-shadow: 0 0 0 2px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
2179
|
-
}
|
2180
|
-
|
2181
2194
|
.sd-input--error {
|
2182
2195
|
background-color: var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)));
|
2183
2196
|
}
|
@@ -2406,14 +2419,14 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
2406
2419
|
}
|
2407
2420
|
|
2408
2421
|
.sd-checkbox__svg {
|
2409
|
-
display:
|
2422
|
+
display: block;
|
2410
2423
|
width: calc(2.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
2411
2424
|
height: calc(2.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
2412
2425
|
}
|
2413
|
-
|
2414
|
-
|
2415
|
-
display: block;
|
2426
|
+
.sd-checkbox__svg use {
|
2427
|
+
fill: transparent;
|
2416
2428
|
}
|
2429
|
+
|
2417
2430
|
.sd-checkbox--checked .sd-checkbox__svg use {
|
2418
2431
|
fill: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
|
2419
2432
|
}
|
@@ -3000,7 +3013,6 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3000
3013
|
color: var(--sjs-general-forecolor, var(--foreground, #161616));
|
3001
3014
|
flex-direction: row;
|
3002
3015
|
white-space: normal;
|
3003
|
-
word-break: break-word;
|
3004
3016
|
}
|
3005
3017
|
|
3006
3018
|
.sd-title.sd-container-modern__title {
|
@@ -3101,7 +3113,6 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3101
3113
|
font-size: var(--sjs-font-questiondescription-size, var(--sjs-font-size, 16px));
|
3102
3114
|
line-height: calc(1.5 * (var(--sjs-font-questiondescription-size, var(--sjs-font-size, 16px))));
|
3103
3115
|
white-space: normal;
|
3104
|
-
word-break: break-word;
|
3105
3116
|
}
|
3106
3117
|
|
3107
3118
|
.sd-description.sd-question__description--under-input {
|
@@ -3126,10 +3137,10 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3126
3137
|
height: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
3127
3138
|
box-sizing: border-box;
|
3128
3139
|
background-color: var(--sjs-editorpanel-backcolor, var(--sjs-editor-background, var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9))));
|
3129
|
-
box-shadow: var(--sjs-shadow-inner, inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
|
3130
3140
|
border: none;
|
3131
3141
|
flex-shrink: 0;
|
3132
3142
|
margin-top: calc((1.5 * (var(--sjs-internal-font-editorfont-size)) - 3 * (var(--sjs-base-unit, var(--base-unit, 8px)))) / 2);
|
3143
|
+
box-shadow: var(--sjs-shadow-inner, inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15)), 0 0 0 0px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
3133
3144
|
}
|
3134
3145
|
|
3135
3146
|
.sd-item--checked .sd-item__decorator {
|
@@ -3137,9 +3148,9 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3137
3148
|
}
|
3138
3149
|
|
3139
3150
|
.sd-item__control:focus + .sd-item__decorator {
|
3140
|
-
box-shadow: 0 0 0 2px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
3141
3151
|
background: var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));
|
3142
3152
|
outline: none;
|
3153
|
+
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));
|
3143
3154
|
}
|
3144
3155
|
|
3145
3156
|
.sd-item--allowhover .sd-selectbase__label:hover .sd-item__decorator {
|
@@ -3160,7 +3171,6 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3160
3171
|
font-size: var(--sjs-internal-font-editorfont-size);
|
3161
3172
|
color: var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));
|
3162
3173
|
white-space: normal;
|
3163
|
-
word-break: break-word;
|
3164
3174
|
width: 100%;
|
3165
3175
|
text-align: left;
|
3166
3176
|
}
|
@@ -3214,7 +3224,6 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3214
3224
|
.sd-selectbase__column {
|
3215
3225
|
display: block;
|
3216
3226
|
box-sizing: border-box;
|
3217
|
-
word-break: break-word;
|
3218
3227
|
flex: 1 1 0px;
|
3219
3228
|
}
|
3220
3229
|
|
@@ -3231,14 +3240,14 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3231
3240
|
}
|
3232
3241
|
|
3233
3242
|
.sd-checkbox__svg {
|
3234
|
-
display:
|
3243
|
+
display: block;
|
3235
3244
|
width: calc(2.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
3236
3245
|
height: calc(2.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
3237
3246
|
}
|
3238
|
-
|
3239
|
-
|
3240
|
-
display: block;
|
3247
|
+
.sd-checkbox__svg use {
|
3248
|
+
fill: transparent;
|
3241
3249
|
}
|
3250
|
+
|
3242
3251
|
.sd-checkbox--checked .sd-checkbox__svg use {
|
3243
3252
|
fill: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
|
3244
3253
|
}
|
@@ -3254,6 +3263,14 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3254
3263
|
.sd-radio__decorator {
|
3255
3264
|
border-radius: 50%;
|
3256
3265
|
}
|
3266
|
+
.sd-radio__decorator:after {
|
3267
|
+
content: " ";
|
3268
|
+
display: block;
|
3269
|
+
width: var(--sjs-base-unit, var(--base-unit, 8px));
|
3270
|
+
height: var(--sjs-base-unit, var(--base-unit, 8px));
|
3271
|
+
border-radius: 50%;
|
3272
|
+
background-color: transparent;
|
3273
|
+
}
|
3257
3274
|
|
3258
3275
|
.sd-radio--checked .sd-radio__decorator:after {
|
3259
3276
|
content: " ";
|
@@ -4363,7 +4380,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4363
4380
|
|
4364
4381
|
.sd-question__content--left .sd-expression {
|
4365
4382
|
line-height: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4366
|
-
|
4383
|
+
padding: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) 0;
|
4367
4384
|
}
|
4368
4385
|
|
4369
4386
|
.sd-progress {
|
@@ -4797,8 +4814,12 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4797
4814
|
box-sizing: border-box;
|
4798
4815
|
justify-content: center;
|
4799
4816
|
align-items: center;
|
4800
|
-
padding: 0 calc(8 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4801
4817
|
border: 1px dashed var(--sjs-border-default, var(--border, #d6d6d6));
|
4818
|
+
container-type: inline-size;
|
4819
|
+
}
|
4820
|
+
|
4821
|
+
.sd-file--answered .sd-file__decorator {
|
4822
|
+
container-type: unset;
|
4802
4823
|
}
|
4803
4824
|
|
4804
4825
|
.sd-file__decorator--drag {
|
@@ -4815,13 +4836,35 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4815
4836
|
.sd-file__drag-area-placeholder {
|
4816
4837
|
--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));
|
4817
4838
|
text-align: center;
|
4818
|
-
word-break: break-word;
|
4819
4839
|
white-space: normal;
|
4820
4840
|
color: var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, 0.45)));
|
4821
4841
|
font-size: var(--sjs-internal-font-editorfont-size);
|
4822
4842
|
line-height: calc(1.5 * (var(--sjs-internal-font-editorfont-size)));
|
4843
|
+
padding: 0 calc(8 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4823
4844
|
}
|
4824
4845
|
|
4846
|
+
@container (max-width: 496px) {
|
4847
|
+
.sd-file__drag-area-placeholder {
|
4848
|
+
padding: 0 var(--sjs-base-unit, var(--base-unit, 8px));
|
4849
|
+
}
|
4850
|
+
}
|
4851
|
+
@container (max-width: 176px) {
|
4852
|
+
.sd-file__drag-area-placeholder {
|
4853
|
+
display: none;
|
4854
|
+
}
|
4855
|
+
.sd-file__decorator .sd-action {
|
4856
|
+
padding: var(--sjs-base-unit, var(--base-unit, 8px));
|
4857
|
+
}
|
4858
|
+
.sd-file__decorator .sd-action .sv-svg-icon {
|
4859
|
+
margin-left: 0;
|
4860
|
+
}
|
4861
|
+
.sd-file__decorator .sd-file__actions-container {
|
4862
|
+
flex-direction: column;
|
4863
|
+
}
|
4864
|
+
.sd-file__decorator .sd-file__actions-container span {
|
4865
|
+
display: none;
|
4866
|
+
}
|
4867
|
+
}
|
4825
4868
|
.sd-root-modern--mobile .sd-file__decorator {
|
4826
4869
|
padding: 0 calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4827
4870
|
}
|
@@ -4845,6 +4888,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4845
4888
|
|
4846
4889
|
.sd-file__wrapper {
|
4847
4890
|
width: max-content;
|
4891
|
+
max-width: 100%;
|
4848
4892
|
}
|
4849
4893
|
|
4850
4894
|
.sd-question--answered .sd-file__drag-area-placeholder {
|
@@ -4853,6 +4897,8 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4853
4897
|
|
4854
4898
|
.sd-file__actions-container {
|
4855
4899
|
margin-top: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4900
|
+
flex-wrap: wrap;
|
4901
|
+
justify-content: center;
|
4856
4902
|
}
|
4857
4903
|
.sd-file__actions-container .sv-action--hidden {
|
4858
4904
|
display: none;
|
@@ -5466,7 +5512,6 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
5466
5512
|
max-width: 30%;
|
5467
5513
|
padding-right: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
5468
5514
|
border-right: 1px solid var(--sjs-border-default, var(--border, #d6d6d6));
|
5469
|
-
word-break: break-word;
|
5470
5515
|
white-space: normal;
|
5471
5516
|
color: var(--sjs-font-editorfont-placeholdercolor, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)));
|
5472
5517
|
}
|