survey-react 1.9.118 → 1.9.119

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.9.118
2
+ * surveyjs - Survey JavaScript library v1.9.119
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
  */
@@ -1855,26 +1855,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1855
1855
  position: relative;
1856
1856
  }
1857
1857
 
1858
- .sd-question__erbox {
1859
- display: block;
1860
- padding: var(--sjs-base-unit, var(--base-unit, 8px)) calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1861
- border-radius: var(--sjs-corner-radius, 4px);
1862
- line-height: var(--sjs-font-size, 16px);
1863
- font-size: calc(0.75 * (var(--sjs-font-size, 16px)));
1864
- text-align: left;
1865
- color: var(--sjs-special-red, var(--red, #e60a3e));
1866
- font-weight: 600;
1867
- white-space: normal;
1868
- }
1869
-
1870
- .sd-question__erbox--outside-question {
1871
- width: 100%;
1872
- color: var(--sjs-special-red, var(--red, #e60a3e));
1873
- background-color: var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)));
1874
- box-sizing: border-box;
1875
- }
1876
-
1877
- .sd-question__erbox--above-question {
1858
+ .sd-element__erbox--above-element {
1878
1859
  margin-bottom: var(--sjs-base-unit, var(--base-unit, 8px));
1879
1860
  }
1880
1861
 
@@ -1891,7 +1872,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1891
1872
  margin-top: calc(0.25 * var(--sd-base-vertical-padding) + 0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
1892
1873
  }
1893
1874
 
1894
- .sd-element--with-frame > .sd-question__erbox--above-question {
1875
+ .sd-element--with-frame > .sd-element__erbox--above-element {
1895
1876
  margin-bottom: var(--sd-base-padding);
1896
1877
  border-radius: var(--sjs-corner-radius, 4px) var(--sjs-corner-radius, 4px) 0 0;
1897
1878
  }
@@ -1934,7 +1915,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1934
1915
  .sd-element--with-frame.sd-question--error-bottom > .sd-question__content {
1935
1916
  margin-bottom: var(--sd-base-padding);
1936
1917
  }
1937
- .sd-element--with-frame > .sd-question__erbox--outside-question {
1918
+ .sd-element--with-frame > .sd-element__erbox {
1938
1919
  margin-left: calc(-1 * var(--sd-base-padding));
1939
1920
  margin-right: calc(-1 * var(--sd-base-padding));
1940
1921
  width: calc(100% + 2 * var(--sd-base-padding));
@@ -2007,6 +1988,21 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2007
1988
  height: calc(1.5 * (var(--sjs-font-questiontitle-size, var(--sjs-font-size, 16px))));
2008
1989
  }
2009
1990
 
1991
+ .sd-error {
1992
+ display: block;
1993
+ padding: var(--sjs-base-unit, var(--base-unit, 8px)) calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1994
+ border-radius: var(--sjs-corner-radius, 4px);
1995
+ line-height: var(--sjs-font-size, 16px);
1996
+ font-size: calc(0.75 * (var(--sjs-font-size, 16px)));
1997
+ font-weight: 600;
1998
+ text-align: left;
1999
+ color: var(--sjs-special-red, var(--red, #e60a3e));
2000
+ white-space: normal;
2001
+ width: 100%;
2002
+ background-color: var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)));
2003
+ box-sizing: border-box;
2004
+ }
2005
+
2010
2006
  .sd-element--expanded > .sd-element__header,
2011
2007
  .sd-element--collapsed > .sd-element__header {
2012
2008
  cursor: pointer;
@@ -2039,8 +2035,8 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2039
2035
  padding-top: 0;
2040
2036
  }
2041
2037
 
2042
- .sd-element--complex.sd-element--nested-with-borders > .sd-question__erbox--outside-question,
2043
- .sd-element--complex.sd-element--with-frame > .sd-question__erbox--outside-question {
2038
+ .sd-element--complex.sd-element--nested-with-borders > .sd-element__erbox,
2039
+ .sd-element--complex.sd-element--with-frame > .sd-element__erbox {
2044
2040
  margin-top: 0;
2045
2041
  margin-bottom: 0;
2046
2042
  }
@@ -2079,7 +2075,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2079
2075
  padding-top: calc(0.5 * var(--sd-base-vertical-padding));
2080
2076
  padding-bottom: calc(0.5 * var(--sd-base-vertical-padding));
2081
2077
  }
2082
- .sd-element--nested-with-borders > .sd-question__erbox--outside-question {
2078
+ .sd-element--nested-with-borders > .sd-element__erbox {
2083
2079
  margin-left: calc(-1 * var(--sd-base-padding));
2084
2080
  margin-right: calc(-1 * var(--sd-base-padding));
2085
2081
  width: calc(100% + 2 * var(--sd-base-padding));
@@ -2284,7 +2280,7 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
2284
2280
 
2285
2281
  .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header {
2286
2282
  padding-top: 0;
2287
- padding-bottom: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
2283
+ padding-bottom: calc(0.5 * var(--sd-base-vertical-padding) + var(--sjs-base-unit, var(--base-unit, 8px)));
2288
2284
  }
2289
2285
  .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header:after {
2290
2286
  content: none;
@@ -2315,10 +2311,21 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
2315
2311
  line-height: calc(1.5 * (var(--sjs-font-pagedescription-size, var(--sjs-font-size, 16px))));
2316
2312
  margin: 0 0 calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) 0;
2317
2313
  }
2314
+ .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header .sd-panel__required-text {
2315
+ display: none;
2316
+ }
2317
+ .sd-panel.sd-panel--as-page > .sd-panel__errbox {
2318
+ margin: 0 0 calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) 0;
2319
+ padding: calc(0.5 * var(--sd-base-vertical-padding) + var(--sjs-base-unit, var(--base-unit, 8px))) var(--sd-base-padding);
2320
+ }
2318
2321
  .sd-panel.sd-panel--as-page > .sd-panel__content {
2319
2322
  padding-top: 0;
2320
2323
  }
2321
2324
 
2325
+ .sd-root--compact .sd-panel--as-page > .sd-panel__errbox {
2326
+ margin: 0 0 var(--sd-base-vertical-padding) 0;
2327
+ }
2328
+
2322
2329
  .sd-row ~ .sd-row .sd-panel--as-page {
2323
2330
  padding-top: calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
2324
2331
  }
@@ -2591,7 +2598,7 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
2591
2598
  border: none;
2592
2599
  padding: 0 var(--sjs-base-unit, var(--base-unit, 8px));
2593
2600
  }
2594
- .sd-table__cell--error .sd-question__erbox--outside-question {
2601
+ .sd-table__cell--error .sd-question__erbox {
2595
2602
  margin: 0;
2596
2603
  }
2597
2604
 
@@ -2661,6 +2668,15 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
2661
2668
  min-width: calc(18 * (var(--sjs-base-unit, var(--base-unit, 8px))));
2662
2669
  }
2663
2670
 
2671
+ .sd-table__cell--footer {
2672
+ text-align: right;
2673
+ }
2674
+
2675
+ .sd-table__cell--footer-total {
2676
+ font-weight: 600;
2677
+ text-align: left;
2678
+ }
2679
+
2664
2680
  .sd-table__cell--detail-panel {
2665
2681
  border-top: var(--sjs-base-unit, var(--base-unit, 8px)) solid transparent;
2666
2682
  padding: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
@@ -2864,6 +2880,21 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
2864
2880
  margin: 0 0 calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) 0;
2865
2881
  }
2866
2882
 
2883
+ .sd-page__errbox {
2884
+ padding: calc(0.5 * var(--sd-base-vertical-padding) + var(--sjs-base-unit, var(--base-unit, 8px))) var(--sd-base-padding);
2885
+ }
2886
+
2887
+ .sd-page__title ~ .sd-page__errbox,
2888
+ .sd-page__description ~ .sd-page__errbox {
2889
+ margin-top: calc(0.5 * var(--sd-base-vertical-padding) + var(--sjs-base-unit, var(--base-unit, 8px)));
2890
+ margin-bottom: calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))));
2891
+ }
2892
+
2893
+ .sd-root--compact .sd-page__title ~ .sd-page__errbox,
2894
+ .sd-root--compact .sd-page__description ~ .sd-page__errbox {
2895
+ margin-bottom: 0;
2896
+ }
2897
+
2867
2898
  .sd-row {
2868
2899
  display: flex;
2869
2900
  flex-direction: row;
@@ -3279,6 +3310,7 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3279
3310
  }
3280
3311
  .sd-rating.sd-rating--wrappable fieldset {
3281
3312
  flex-wrap: wrap;
3313
+ min-width: 0;
3282
3314
  }
3283
3315
 
3284
3316
  .sd-rating--small {
@@ -3304,7 +3336,7 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3304
3336
  box-sizing: border-box;
3305
3337
  min-width: calc(6 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3306
3338
  text-align: center;
3307
- border: 2px solid transparent;
3339
+ border: none;
3308
3340
  color: var(--sjs-general-forecolor, var(--foreground, #161616));
3309
3341
  fill: var(--sjs-general-forecolor, var(--foreground, #161616));
3310
3342
  font-size: var(--sjs-font-size, 16px);
@@ -3324,7 +3356,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
3324
3356
  .sd-rating__item--error {
3325
3357
  background-color: var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)));
3326
3358
  box-shadow: 0px 1px 2px transparent;
3327
- border-color: transparent;
3359
+ border: none;
3328
3360
  }
3329
3361
 
3330
3362
  .sd-rating__item.sd-rating__item--disabled {
@@ -3336,7 +3368,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
3336
3368
  color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
3337
3369
  fill: var(--sjs-general-forecolor, var(--foreground, #161616));
3338
3370
  background-color: var(--background-semitransparent, rgba(144, 144, 144, 0.5));
3339
- border-color: transparent;
3371
+ border: none;
3340
3372
  }
3341
3373
 
3342
3374
  .sd-question--disabled .sd-rating__item-text {
@@ -3345,16 +3377,15 @@ legend + sv-ng-rating-item + .sd-rating__item {
3345
3377
 
3346
3378
  .sd-rating__item--allowhover:hover {
3347
3379
  background-color: var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)));
3348
- border-color: var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)));
3349
3380
  }
3350
3381
 
3351
3382
  .sd-rating__item:focus-within {
3352
- border-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
3383
+ border: 2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));
3353
3384
  }
3354
3385
 
3355
3386
  .sd-rating__item--selected {
3356
3387
  background-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
3357
- border-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
3388
+ border: 2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));
3358
3389
  color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
3359
3390
  font-weight: 600;
3360
3391
  box-shadow: 0px 1px 2px transparent;
@@ -3548,11 +3579,12 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
3548
3579
  font-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));
3549
3580
  line-height: calc(1.5 * (var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)))));
3550
3581
  display: inline-block;
3582
+ border: 2px solid transparent;
3583
+ box-sizing: border-box;
3551
3584
  }
3552
3585
  .sd-rating__item-text.sd-rating__item-text.sd-rating__min-text, .sd-rating__item-text.sd-rating__item-text.sd-rating__max-text {
3553
3586
  margin-top: calc(1.25 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3554
3587
  margin-bottom: calc(1.25 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3555
- border: 2px solid transparent;
3556
3588
  color: var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, 0.45)));
3557
3589
  }
3558
3590
  .sd-rating__item-text.sd-rating__item-text.sd-rating__min-text {
@@ -3570,9 +3602,45 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
3570
3602
  min-width: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3571
3603
  }
3572
3604
 
3605
+ .sd-rating--wrappable .sd-rating__item-text {
3606
+ max-width: 100%;
3607
+ }
3608
+ .sd-rating--wrappable .sd-rating__item-text .sv-string-viewer {
3609
+ max-width: 100%;
3610
+ text-overflow: ellipsis;
3611
+ overflow: hidden;
3612
+ display: block;
3613
+ }
3614
+
3615
+ .sd-rating__item:focus-within .sd-rating__item-text.sd-rating__item-text {
3616
+ border: none;
3617
+ }
3618
+
3573
3619
  .sd-rating__item--selected .sd-rating__item-text.sd-rating__item-text {
3574
3620
  color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
3575
3621
  font-weight: inherit;
3622
+ border: none;
3623
+ }
3624
+
3625
+ .sd-rating-dropdown-item {
3626
+ display: flex;
3627
+ width: 100%;
3628
+ justify-content: space-between;
3629
+ align-items: center;
3630
+ gap: calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3631
+ }
3632
+
3633
+ .sd-rating-dropdown-item_description {
3634
+ color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
3635
+ font-family: var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));
3636
+ font-style: normal;
3637
+ font-weight: normal;
3638
+ font-size: calc(0.75 * (var(--sjs-font-size, 16px)));
3639
+ line-height: var(--sjs-font-size, 16px);
3640
+ }
3641
+
3642
+ .sv-list__item.sv-list__item--selected .sd-rating-dropdown-item_description {
3643
+ color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
3576
3644
  }
3577
3645
 
3578
3646
  .sv-ranking-item--error .sv-ranking-item__index {
@@ -5340,7 +5408,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
5340
5408
  padding-bottom: 0;
5341
5409
  }
5342
5410
 
5343
- .sd-multipletext__cell--error .sd-question__erbox--outside-question {
5411
+ .sd-multipletext__cell--error .sd-question__erbox {
5344
5412
  margin: 0;
5345
5413
  }
5346
5414
 
@@ -5863,6 +5931,11 @@ svg.sd-action--icon {
5863
5931
  padding-bottom: 0;
5864
5932
  }
5865
5933
 
5934
+ .sd-root-modern--mobile .sv-header__overlap {
5935
+ margin-bottom: calc(-5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5936
+ padding-bottom: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5937
+ }
5938
+
5866
5939
  .sv-header__content {
5867
5940
  padding: calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5868
5941
  box-sizing: border-box;
@@ -5937,7 +6010,7 @@ svg.sd-action--icon {
5937
6010
  --header-title-font-size: var(--sjs-font-headertitle-size, calc(2 * (var(--sjs-font-size, 16px))));
5938
6011
  font-size: var(--header-title-font-size);
5939
6012
  line-height: calc(1.25 * (var(--header-title-font-size)));
5940
- color: var(--sjs-font-headertitle-color, var(--sjs-general-dim-forecolor, rgba(0, 0, 0, 0.91)));
6013
+ color: var(--sjs-font-headertitle-color, var(--sjs-primary-forecolor, var(--primary-foreground, #fff)));
5941
6014
  font-family: var(--sjs-font-headertitle-family, var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family))));
5942
6015
  font-weight: var(--sjs-font-headertitle-weight, 700);
5943
6016
  margin: 0;
@@ -5963,9 +6036,9 @@ svg.sd-action--icon {
5963
6036
  --header-description-font-size: var(--sjs-font-headerdescription-size, var(--sjs-font-size, 16px));
5964
6037
  font-size: var(--header-description-font-size);
5965
6038
  line-height: calc(1.5 * (var(--header-description-font-size)));
5966
- color: var(--sjs-font-headerdescription-color, var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, 0.45)));
6039
+ color: var(--sjs-font-headerdescription-color, var(--sjs-primary-forecolor, var(--primary-foreground, #fff)));
5967
6040
  font-family: var(--sjs-font-headerdescription-family, var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family))));
5968
- font-weight: var(--sjs-font-headerdescription-weight, 400);
6041
+ font-weight: var(--sjs-font-headerdescription-weight, 600);
5969
6042
  margin: 0;
5970
6043
  }
5971
6044