survey-react 1.9.79 → 1.9.81

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.79
2
+ * surveyjs - Survey JavaScript library v1.9.81
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
  */
@@ -932,11 +932,13 @@ sv-popup {
932
932
 
933
933
  .sv-ranking-item:focus .sv-ranking-item__icon--focus {
934
934
  visibility: visible;
935
+ top: calc(0.6 * var(--base-unit, 8px));
936
+ height: calc(3 * var(--base-unit, 8px));
935
937
  }
936
938
 
937
939
  .sv-ranking-item:focus .sv-ranking-item__index {
938
940
  background: var(--background, #fff);
939
- border: calc(0.25 * var(--base-unit, 8px)) solid var(--primary, #19b394);
941
+ outline: calc(0.25 * var(--base-unit, 8px)) solid var(--primary, #19b394);
940
942
  }
941
943
 
942
944
  .sv-ranking-item__content.sv-ranking-item__content {
@@ -955,8 +957,6 @@ sv-popup {
955
957
  flex-shrink: 0;
956
958
  width: calc(3 * var(--base-unit, 8px));
957
959
  height: calc(4 * var(--base-unit, 8px));
958
- margin-right: calc(1 * var(--base-unit, 8px));
959
- margin-left: calc(1 * var(--base-unit, 8px));
960
960
  }
961
961
 
962
962
  .sv-ranking-item__icon.sv-ranking-item__icon {
@@ -964,7 +964,6 @@ sv-popup {
964
964
  fill: var(--primary, #19b394);
965
965
  position: absolute;
966
966
  top: calc(1 * var(--base-unit, 8px));
967
- margin-right: calc(1 * var(--base-unit, 8px));
968
967
  width: calc(1.75 * var(--base-unit, 8px));
969
968
  height: calc(2 * var(--base-unit, 8px));
970
969
  }
@@ -984,7 +983,7 @@ sv-popup {
984
983
  line-height: calc(3 * var(--base-unit, 8px));
985
984
  box-sizing: border-box;
986
985
  font-weight: 600;
987
- margin-left: calc(1 * var(--base-unit, 8px));
986
+ margin-left: calc(0 * var(--base-unit, 8px));
988
987
  }
989
988
  .sv-ranking-item__index.sv-ranking-item__index.sv-ranking-item__index--empty:empty {
990
989
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAArSURBVHgB7cuhEQAwDMNAtUN4//m8RMtygcE5PxMQxAKnh6Q3mWzXd4mAD4cJBAQCqfbUAAAAAElFTkSuQmCC");
@@ -1090,12 +1089,15 @@ sv-popup {
1090
1089
  }
1091
1090
 
1092
1091
  .sv-ranking-shortcut .sv-ranking-item__icon {
1093
- margin-left: calc(1 * var(--base-unit, 8px));
1094
1092
  width: calc(1.75 * var(--base-unit, 8px));
1095
1093
  height: calc(2 * var(--base-unit, 8px));
1096
1094
  top: calc(1 * var(--base-unit, 8px));
1097
1095
  }
1098
1096
 
1097
+ .sv-ranking-shortcut .sv-ranking-item__icon-container {
1098
+ margin-left: calc(1 * var(--base-unit, 8px));
1099
+ }
1100
+
1099
1101
  .sv-list {
1100
1102
  padding: 0;
1101
1103
  margin: 0;
@@ -1387,7 +1389,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1387
1389
  padding-left: calc(var(--sd-base-padding) + var(--sv-element-add-padding-left, 0px));
1388
1390
  padding-right: calc(var(--sd-base-padding) + var(--sv-element-add-padding-right, 0px));
1389
1391
  padding-bottom: var(--sd-base-padding);
1390
- background: var(--background, #fff);
1392
+ background: var(--sjs-question-background, #fff);
1391
1393
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15);
1392
1394
  }
1393
1395
  .svc-logic-question-value > .sd-question__erbox--outside-question,
@@ -1801,7 +1803,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1801
1803
  font-family: var(--font-family, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);
1802
1804
  font-size: calc(2 * var(--base-unit, 8px));
1803
1805
  color: var(--foreground, #161616);
1804
- background-color: var(--background-dim-light, #f9f9f9);
1806
+ background-color: var(--sjs-editor-background, #f9f9f9);
1805
1807
  box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.15);
1806
1808
  border: none;
1807
1809
  border-radius: 3px;
@@ -1813,7 +1815,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1813
1815
  }
1814
1816
 
1815
1817
  .sd-input--disabled {
1816
- background-color: var(--background-dim-light, #f9f9f9);
1818
+ background-color: var(--sjs-editor-background, #f9f9f9);
1817
1819
  -webkit-user-select: none;
1818
1820
  -moz-user-select: none;
1819
1821
  -ms-user-select: none;
@@ -1927,6 +1929,32 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1927
1929
  row-gap: 0;
1928
1930
  }
1929
1931
 
1932
+ .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header {
1933
+ padding-top: 0;
1934
+ padding-bottom: 0;
1935
+ }
1936
+ .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header:after {
1937
+ content: none;
1938
+ }
1939
+ .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header .sd-panel__title {
1940
+ position: static;
1941
+ font-size: calc(3 * var(--base-unit, 8px));
1942
+ line-height: calc(4 * var(--base-unit, 8px));
1943
+ margin: calc(0.5 * var(--base-unit, 8px)) 0px;
1944
+ font-weight: 700;
1945
+ }
1946
+ .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header .sd-panel__title span {
1947
+ font-size: inherit;
1948
+ line-height: inherit;
1949
+ }
1950
+ .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header .sd-panel__description {
1951
+ position: static;
1952
+ font-size: calc(2 * var(--base-unit, 8px));
1953
+ line-height: calc(3 * var(--base-unit, 8px));
1954
+ margin: calc(0.5 * var(--base-unit, 8px)) 0px;
1955
+ font-weight: 400;
1956
+ }
1957
+
1930
1958
  .sd-panel__required-text {
1931
1959
  color: var(--red, #e60a3e);
1932
1960
  }
@@ -2051,7 +2079,6 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2051
2079
 
2052
2080
  .sd-table {
2053
2081
  width: 100%;
2054
- background-color: var(--background, #fff);
2055
2082
  border-collapse: collapse;
2056
2083
  white-space: normal;
2057
2084
  }
@@ -2193,6 +2220,10 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2193
2220
  padding: calc(2.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px));
2194
2221
  }
2195
2222
 
2223
+ .sd-matrixdynamic__content .sd-table__question-wrapper {
2224
+ position: relative;
2225
+ }
2226
+
2196
2227
  .sd-table__question-wrapper:not(:focus-within):hover {
2197
2228
  position: relative;
2198
2229
  }
@@ -2206,7 +2237,6 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2206
2237
  .sd-matrix__cell:first-of-type,
2207
2238
  .sd-matrix tr > td:first-of-type {
2208
2239
  position: sticky;
2209
- background: var(--background, #fff);
2210
2240
  z-index: 12;
2211
2241
  }
2212
2242
  .sd-table__cell--actions:not(.sd-table__cell--vertical):first-of-type,
@@ -2227,7 +2257,6 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2227
2257
  .sd-table__cell--actions:not(.sd-table__cell--vertical):last-child .sd-action-bar {
2228
2258
  margin-right: calc(-3 * var(--base-unit, 8px));
2229
2259
  justify-content: flex-end;
2230
- background: var(--background, #fff);
2231
2260
  }
2232
2261
 
2233
2262
  .sd-question.sd-question--table {
@@ -2248,7 +2277,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2248
2277
  min-height: 100%;
2249
2278
  width: calc(var(--sd-base-padding) - var(--base-unit, 8px));
2250
2279
  flex-shrink: 0;
2251
- background: var(--background, #fff);
2280
+ background: var(--sjs-question-background, #fff);
2252
2281
  z-index: 11;
2253
2282
  }
2254
2283
  .sd-table-wrapper::before {
@@ -2312,6 +2341,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2312
2341
  font-size: calc(3 * var(--base-unit, 8px));
2313
2342
  line-height: calc(4 * var(--base-unit, 8px));
2314
2343
  margin: calc(0.5 * var(--base-unit, 8px)) 0px;
2344
+ font-weight: 700;
2315
2345
  }
2316
2346
 
2317
2347
  .sd-page__description {
@@ -2319,6 +2349,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2319
2349
  font-size: calc(2 * var(--base-unit, 8px));
2320
2350
  line-height: calc(3 * var(--base-unit, 8px));
2321
2351
  margin: calc(0.5 * var(--base-unit, 8px)) 0px;
2352
+ font-weight: 400;
2322
2353
  }
2323
2354
 
2324
2355
  .sd-row {
@@ -2329,9 +2360,13 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2329
2360
  margin-top: calc(2 * var(--base-unit, 8px));
2330
2361
  }
2331
2362
 
2363
+ .sd-page__row.sd-row {
2364
+ margin-top: calc(2 * var(--base-unit, 8px));
2365
+ }
2366
+
2332
2367
  .sd-page__row.sd-row--multiple,
2333
2368
  .svc-row > .sd-row--multiple {
2334
- background: var(--background, #fff);
2369
+ background: var(--sjs-question-background, #fff);
2335
2370
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15);
2336
2371
  border-radius: calc(0.5 * var(--base-unit, 8px));
2337
2372
  }
@@ -2399,6 +2434,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2399
2434
  font-family: var(--font-family, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);
2400
2435
  gap: calc(4 * var(--base-unit, 8px));
2401
2436
  box-shadow: 0px 2px 0px var(--primary, #19b394);
2437
+ margin-bottom: 2px;
2402
2438
  }
2403
2439
  .sd-title.sd-container-modern__title .sd-logo__image {
2404
2440
  margin-top: calc(1 * var(--base-unit, 8px));
@@ -2485,7 +2521,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2485
2521
  width: calc(3 * var(--base-unit, 8px));
2486
2522
  height: calc(3 * var(--base-unit, 8px));
2487
2523
  box-sizing: border-box;
2488
- background: var(--sd-item-default-background, var(--background-dim-light, #f9f9f9));
2524
+ background: var(--sd-item-default-background, var(--sjs-editor-background, #f9f9f9));
2489
2525
  box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.15);
2490
2526
  border: none;
2491
2527
  flex-shrink: 0;
@@ -2696,6 +2732,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2696
2732
  text-align: center;
2697
2733
  border: 2px solid var(--background, #fff);
2698
2734
  color: var(--foreground, #161616);
2735
+ fill: var(--foreground, #161616);
2699
2736
  font-size: calc(2 * var(--base-unit, 8px));
2700
2737
  }
2701
2738
 
@@ -2712,10 +2749,12 @@ legend + sv-ng-rating-item + .sd-rating__item {
2712
2749
 
2713
2750
  .sd-rating__item.sd-rating__item--disabled {
2714
2751
  color: var(--foreground-disabled, rgba(22, 22, 22, 0.25));
2752
+ fill: var(--foreground-disabled, rgba(22, 22, 22, 0.25));
2715
2753
  }
2716
2754
 
2717
2755
  .sd-rating__item.sd-rating__item--selected.sd-rating__item--disabled {
2718
2756
  color: var(--primary-foreground-disabled, rgba(255, 255, 255, 0.25));
2757
+ fill: var(--foreground-disabled, rgba(22, 22, 22, 0.25));
2719
2758
  }
2720
2759
 
2721
2760
  .sd-rating__item--allowhover:hover,
@@ -2728,12 +2767,67 @@ legend + sv-ng-rating-item + .sd-rating__item {
2728
2767
  border-color: var(--primary, #19b394);
2729
2768
  color: var(--primary-foreground, #fff);
2730
2769
  font-weight: 600;
2770
+ box-shadow: 0px 1px 2px transparent;
2731
2771
  }
2732
2772
 
2733
2773
  .sd-rating__item--selected:focus-within {
2734
2774
  box-shadow: inset 0 0 0 2px var(--background, #fff);
2735
2775
  }
2736
2776
 
2777
+ .sd-rating__item-smiley {
2778
+ position: relative;
2779
+ background: var(--background, #fff);
2780
+ border-radius: calc(12.5 * var(--base-unit, 8px));
2781
+ white-space: nowrap;
2782
+ padding: calc(1.25 * var(--base-unit, 8px));
2783
+ box-sizing: border-box;
2784
+ min-width: calc(6 * var(--base-unit, 8px));
2785
+ text-align: center;
2786
+ border: 2px solid var(--border, #d6d6d6);
2787
+ color: var(--foreground, #161616);
2788
+ fill: var(--border, #d6d6d6);
2789
+ }
2790
+ .sd-rating__item-smiley svg {
2791
+ display: block;
2792
+ width: calc(3 * var(--base-unit, 8px));
2793
+ height: calc(3 * var(--base-unit, 8px));
2794
+ }
2795
+
2796
+ legend + .sd-rating__item-smiley,
2797
+ legend + sv-ng-rating-item + .sd-rating__item-smiley {
2798
+ margin-inline-start: 2px;
2799
+ }
2800
+
2801
+ .sd-rating__item-smiley--error {
2802
+ background-color: var(--red-light, rgba(230, 10, 62, 0.1));
2803
+ border-color: transparent;
2804
+ }
2805
+
2806
+ .sd-rating__item-smiley.sd-rating__item-smiley--disabled {
2807
+ opacity: 0.5;
2808
+ }
2809
+
2810
+ .sd-rating__item-smiley.sd-rating__item-smiley--selected.sd-rating__item-smiley--disabled {
2811
+ opacity: initial;
2812
+ fill: var(--primary-foreground, #fff);
2813
+ }
2814
+
2815
+ .sd-rating__item-smiley--allowhover:hover,
2816
+ .sd-rating__item-smiley:focus-within {
2817
+ border-color: var(--primary, #19b394);
2818
+ }
2819
+
2820
+ .sd-rating__item-smiley--selected {
2821
+ background-color: var(--primary, #19b394);
2822
+ border-color: var(--primary, #19b394);
2823
+ fill: var(--primary-foreground, #fff);
2824
+ font-weight: 600;
2825
+ }
2826
+
2827
+ .sd-rating__item-smiley--selected:focus-within {
2828
+ box-shadow: inset 0 0 0 2px var(--background, #fff);
2829
+ }
2830
+
2737
2831
  .sd-rating__item-star {
2738
2832
  position: relative;
2739
2833
  background: var(--background, #fff);
@@ -2847,21 +2941,6 @@ legend + sv-ng-rating-item + .sd-rating__item {
2847
2941
  left: calc(-3 * var(--base-unit, 8px));
2848
2942
  }
2849
2943
 
2850
- .sd-element--with-frame .sv-ranking-item__icon {
2851
- margin-left: calc(1 * var(--base-unit, 8px));
2852
- width: calc(1.75 * var(--base-unit, 8px));
2853
- height: calc(2 * var(--base-unit, 8px));
2854
- top: calc(1 * var(--base-unit, 8px));
2855
- }
2856
-
2857
- .sd-element--with-frame .sv-ranking-item__icon-container {
2858
- position: relative;
2859
- width: calc(3 * var(--base-unit, 8px));
2860
- height: calc(4 * var(--base-unit, 8px));
2861
- margin-right: calc(1 * var(--base-unit, 8px));
2862
- margin-left: calc(1 * var(--base-unit, 8px));
2863
- }
2864
-
2865
2944
  .sd-element--with-frame .sv-ranking--mobile .sv-ranking-item__icon-container {
2866
2945
  margin-left: 0;
2867
2946
  margin-right: calc(1 * var(--base-unit, 8px));
@@ -2983,11 +3062,17 @@ legend + sv-ng-rating-item + .sd-rating__item {
2983
3062
  .sd-dropdown__hint-prefix {
2984
3063
  color: var(--foreground-light, #909090);
2985
3064
  }
3065
+ .sd-dropdown__hint-prefix span {
3066
+ white-space: pre;
3067
+ }
2986
3068
 
2987
3069
  .sd-dropdown__hint-suffix {
2988
3070
  display: flex;
2989
3071
  color: var(--foreground-light, #909090);
2990
3072
  }
3073
+ .sd-dropdown__hint-suffix span {
3074
+ white-space: pre;
3075
+ }
2991
3076
 
2992
3077
  [dir=rtl] .sd-dropdown,
2993
3078
  [style*="direction:rtl"] .sd-dropdown,
@@ -3298,7 +3383,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
3298
3383
  width: max-content;
3299
3384
  position: relative;
3300
3385
  padding: calc(0.5 * var(--base-unit, 8px));
3301
- background: var(--background-dim-light, #f9f9f9);
3386
+ background: var(--sjs-editor-background, #f9f9f9);
3302
3387
  box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.15);
3303
3388
  border-radius: calc(12.5 * var(--base-unit, 8px));
3304
3389
  }
@@ -3517,6 +3602,65 @@ legend + sv-ng-rating-item + .sd-rating__item {
3517
3602
  margin-bottom: calc(-1 * var(--base-unit, 8px));
3518
3603
  }
3519
3604
 
3605
+ .sv-tabs-toolbar.sv-action-bar {
3606
+ gap: calc(4 * var(--base-unit, 8px));
3607
+ }
3608
+
3609
+ .sv-tabs-toolbar.sv-tabs-toolbar--left {
3610
+ justify-content: flex-start;
3611
+ }
3612
+
3613
+ .sv-tabs-toolbar.sv-tabs-toolbar--right {
3614
+ justify-content: flex-end;
3615
+ }
3616
+
3617
+ .sv-tabs-toolbar.sv-tabs-toolbar--center {
3618
+ justify-content: center;
3619
+ }
3620
+
3621
+ .sv-tab-item__root {
3622
+ display: flex;
3623
+ }
3624
+
3625
+ .sv-tab-item {
3626
+ padding: calc(1 * var(--base-unit, 8px)) 0 calc(2 * var(--base-unit, 8px)) 0;
3627
+ display: flex;
3628
+ -webkit-appearance: none;
3629
+ -moz-appearance: none;
3630
+ appearance: none;
3631
+ display: flex;
3632
+ padding: calc(1 * var(--base-unit, 8px));
3633
+ box-sizing: border-box;
3634
+ border: none;
3635
+ background-color: transparent;
3636
+ cursor: pointer;
3637
+ font-family: var(--font-family, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);
3638
+ font-size: calc(2 * var(--base-unit, 8px));
3639
+ color: var(--foreground-light, #909090);
3640
+ overflow-x: hidden;
3641
+ white-space: nowrap;
3642
+ }
3643
+
3644
+ .sv-tab-item.sv-tab-item--pressed {
3645
+ color: var(--foreground, #161616);
3646
+ box-shadow: inset 0px -2px 0px var(--primary, #19b394);
3647
+ }
3648
+
3649
+ .sv-tab-item__title {
3650
+ line-height: calc(3 * var(--base-unit, 8px));
3651
+ height: calc(3 * var(--base-unit, 8px));
3652
+ display: flex;
3653
+ align-items: center;
3654
+ }
3655
+
3656
+ .sd-paneldynamic__header.sd-element__header.sd-paneldynamic__header-tab {
3657
+ padding-bottom: 0;
3658
+ }
3659
+
3660
+ .sd-paneldynamic__header.sd-element__header.sd-paneldynamic__header-tab::after {
3661
+ bottom: 0;
3662
+ }
3663
+
3520
3664
  .sd-file {
3521
3665
  min-height: calc(36 * var(--base-unit, 8px));
3522
3666
  position: relative;
@@ -3935,6 +4079,10 @@ legend + sv-ng-rating-item + .sd-rating__item {
3935
4079
  flex-grow: 1;
3936
4080
  }
3937
4081
 
4082
+ .sd-multipletext__content .sd-multipletext__item-container {
4083
+ position: relative;
4084
+ }
4085
+
3938
4086
  .sd-multipletext__item-container--error {
3939
4087
  background-color: var(--red-light, rgba(230, 10, 62, 0.1));
3940
4088
  }
@@ -4155,13 +4303,11 @@ svg.sd-action--icon {
4155
4303
  max-width: calc(42 * var(--base-unit, 8px));
4156
4304
  height: 100%;
4157
4305
  background: var(--background, #fff);
4158
- border-right: 1px solid var(--border, #d6d6d6);
4159
- margin-top: 2px;
4160
4306
  box-sizing: border-box;
4307
+ min-width: calc(32 * var(--base-unit, 8px));
4161
4308
  }
4162
4309
  .sv_progress-toc .sv-list__item.sv-list__item--selected .sv-list__item-body {
4163
4310
  background: var(--primary-light, rgba(25, 179, 148, 0.1));
4164
- border-radius: 3px;
4165
4311
  color: var(--foreground, #161616);
4166
4312
  font-weight: 400;
4167
4313
  }
@@ -4171,6 +4317,17 @@ svg.sd-action--icon {
4171
4317
  .sv_progress-toc .sv-list__item-body {
4172
4318
  padding-inline-start: calc(2 * var(--base-unit, 8px));
4173
4319
  padding-inline-end: calc(2 * var(--base-unit, 8px));
4320
+ border-radius: 3px;
4321
+ padding-top: calc(1.5 * var(--base-unit, 8px));
4322
+ padding-bottom: calc(1.5 * var(--base-unit, 8px));
4323
+ }
4324
+
4325
+ .sv_progress-toc--left {
4326
+ border-right: 1px solid var(--border, #d6d6d6);
4327
+ }
4328
+
4329
+ .sv_progress-toc--right {
4330
+ border-left: 1px solid var(--border, #d6d6d6);
4174
4331
  }
4175
4332
 
4176
4333
  .sd-list {