survey-react 1.9.78 → 1.9.80

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.78
2
+ * surveyjs - Survey JavaScript library v1.9.80
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
  */
@@ -652,6 +652,7 @@ sv-popup {
652
652
 
653
653
  .sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__body-content {
654
654
  --sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--base-unit, 8px) * 8);
655
+ --sv-popup-overlay-max-width: calc(100% - var(--base-unit, 8px) * 8);
655
656
  position: absolute;
656
657
  transform: translate(-50%, -50%);
657
658
  left: 50%;
@@ -659,7 +660,9 @@ sv-popup {
659
660
  max-height: var(--sv-popup-overlay-max-height);
660
661
  min-height: min(var(--sv-popup-overlay-max-height), 31 * var(--base-unit, 8px));
661
662
  height: auto;
662
- max-width: calc(40 * var(--base-unit, 8px));
663
+ width: auto;
664
+ min-width: min(40 * var(--base-unit, 8px), var(--sv-popup-overlay-max-width));
665
+ max-width: var(--sv-popup-overlay-max-width);
663
666
  border-radius: calc(0.5 * var(--base-unit, 8px));
664
667
  overflow: hidden;
665
668
  margin: 0;
@@ -1292,9 +1295,8 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1292
1295
  position: absolute;
1293
1296
  left: 50%;
1294
1297
  bottom: calc(3 * var(--base-unit, 8px));
1295
- transform: translate(-50%, 0);
1296
1298
  background: var(--background, #fff);
1297
- opacity: 0.75;
1299
+ opacity: 0;
1298
1300
  padding: calc(3 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px));
1299
1301
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
1300
1302
  border-radius: calc(1 * var(--base-unit, 8px));
@@ -1305,17 +1307,43 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1305
1307
  font-family: var(--font-family, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);
1306
1308
  font-size: calc(2 * var(--base-unit, 8px));
1307
1309
  line-height: calc(3 * var(--base-unit, 8px));
1308
- white-space: nowrap;
1309
1310
  display: flex;
1310
1311
  flex-direction: row;
1311
1312
  justify-content: center;
1312
1313
  align-items: center;
1314
+ transform: translateX(-50%) translateY(calc(3 * var(--base-unit, 8px)));
1315
+ transition-timing-function: ease-in;
1316
+ transition-property: transform, opacity;
1317
+ transition-delay: 0.25s;
1318
+ transition: 0.5s;
1319
+ }
1320
+
1321
+ .sv-save-data_root.sv-save-data_root--shown {
1322
+ transition-timing-function: ease-out;
1323
+ transition-property: transform, opacity;
1324
+ transform: translateX(-50%) translateY(0);
1325
+ transition-delay: 0.25s;
1326
+ opacity: 0.75;
1327
+ }
1328
+
1329
+ .sv-save-data_root span {
1330
+ display: flex;
1331
+ flex-grow: 1;
1332
+ }
1333
+ .sv-save-data_root .sv-action-bar {
1334
+ display: flex;
1335
+ flex-grow: 0;
1336
+ flex-shrink: 0;
1337
+ }
1338
+
1339
+ .sv-save-data_root--shown.sv-save-data_success,
1340
+ .sv-save-data_root--shown.sv-save-data_error {
1341
+ opacity: 1;
1313
1342
  }
1314
1343
 
1315
1344
  .sv-save-data_root.sv-save-data_error {
1316
1345
  background-color: var(--red, #e60a3e);
1317
1346
  color: var(--background, #fff);
1318
- opacity: 1;
1319
1347
  font-weight: 600;
1320
1348
  padding: calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px));
1321
1349
  gap: calc(6 * var(--base-unit, 8px));
@@ -1344,7 +1372,6 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1344
1372
  .sv-save-data_root.sv-save-data_success {
1345
1373
  background-color: var(--primary, #19b394);
1346
1374
  color: #ffffff;
1347
- opacity: 1;
1348
1375
  font-weight: 600;
1349
1376
  }
1350
1377
 
@@ -1540,13 +1567,16 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1540
1567
 
1541
1568
  .sd-element__num {
1542
1569
  float: left;
1543
- padding: calc(0.625 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px)) calc(0.375 * var(--base-unit, 8px));
1544
- width: calc(4 * var(--base-unit, 8px));
1570
+ padding-top: calc(0.625 * var(--base-unit, 8px));
1571
+ padding-bottom: calc(0.375 * var(--base-unit, 8px));
1572
+ padding-inline-start: 0;
1573
+ padding-inline-end: calc(1 * var(--base-unit, 8px));
1574
+ width: calc(5 * var(--base-unit, 8px));
1545
1575
  font-size: calc(1.5 * var(--base-unit, 8px));
1546
1576
  line-height: calc(2 * var(--base-unit, 8px));
1547
1577
  color: var(--foreground-light, #909090);
1548
- margin-inline-start: calc(-4 * var(--base-unit, 8px));
1549
- text-align: right;
1578
+ margin-inline-start: calc(-5 * var(--base-unit, 8px));
1579
+ text-align: end;
1550
1580
  box-sizing: border-box;
1551
1581
  white-space: nowrap;
1552
1582
  flex-shrink: 0;
@@ -1562,14 +1592,14 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1562
1592
  float: right;
1563
1593
  }
1564
1594
 
1565
- .sd-element__title--expandable .sd-element__num {
1595
+ .sd-element__title--num-inline .sd-element__num {
1566
1596
  float: none;
1567
1597
  margin-inline-start: 0;
1568
1598
  width: auto;
1569
- padding-left: 0;
1570
- padding-right: 0;
1599
+ padding-inline-start: 0;
1600
+ padding-inline-end: 0;
1571
1601
  }
1572
- .sd-element__title--expandable .sd-element__num + span {
1602
+ .sd-element__title--num-inline .sd-element__num + span {
1573
1603
  float: none;
1574
1604
  width: auto;
1575
1605
  }
@@ -1600,6 +1630,10 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1600
1630
  position: relative;
1601
1631
  }
1602
1632
 
1633
+ .sd-question__description {
1634
+ font-size: calc(2 * var(--base-unit, 8px));
1635
+ }
1636
+
1603
1637
  .sd-question__erbox {
1604
1638
  padding: calc(1 * var(--base-unit, 8px)) calc(1.5 * var(--base-unit, 8px));
1605
1639
  border-radius: calc(0.5 * var(--base-unit, 8px));
@@ -1893,6 +1927,32 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1893
1927
  row-gap: 0;
1894
1928
  }
1895
1929
 
1930
+ .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header {
1931
+ padding-top: 0;
1932
+ padding-bottom: 0;
1933
+ }
1934
+ .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header:after {
1935
+ content: none;
1936
+ }
1937
+ .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header .sd-panel__title {
1938
+ position: static;
1939
+ font-size: calc(3 * var(--base-unit, 8px));
1940
+ line-height: calc(4 * var(--base-unit, 8px));
1941
+ margin: calc(0.5 * var(--base-unit, 8px)) 0px;
1942
+ font-weight: 700;
1943
+ }
1944
+ .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header .sd-panel__title span {
1945
+ font-size: inherit;
1946
+ line-height: inherit;
1947
+ }
1948
+ .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header .sd-panel__description {
1949
+ position: static;
1950
+ font-size: calc(2 * var(--base-unit, 8px));
1951
+ line-height: calc(3 * var(--base-unit, 8px));
1952
+ margin: calc(0.5 * var(--base-unit, 8px)) 0px;
1953
+ font-weight: 400;
1954
+ }
1955
+
1896
1956
  .sd-panel__required-text {
1897
1957
  color: var(--red, #e60a3e);
1898
1958
  }
@@ -2159,6 +2219,10 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2159
2219
  padding: calc(2.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px));
2160
2220
  }
2161
2221
 
2222
+ .sd-matrixdynamic__content .sd-table__question-wrapper {
2223
+ position: relative;
2224
+ }
2225
+
2162
2226
  .sd-table__question-wrapper:not(:focus-within):hover {
2163
2227
  position: relative;
2164
2228
  }
@@ -2278,6 +2342,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2278
2342
  font-size: calc(3 * var(--base-unit, 8px));
2279
2343
  line-height: calc(4 * var(--base-unit, 8px));
2280
2344
  margin: calc(0.5 * var(--base-unit, 8px)) 0px;
2345
+ font-weight: 700;
2281
2346
  }
2282
2347
 
2283
2348
  .sd-page__description {
@@ -2285,6 +2350,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2285
2350
  font-size: calc(2 * var(--base-unit, 8px));
2286
2351
  line-height: calc(3 * var(--base-unit, 8px));
2287
2352
  margin: calc(0.5 * var(--base-unit, 8px)) 0px;
2353
+ font-weight: 400;
2288
2354
  }
2289
2355
 
2290
2356
  .sd-row {
@@ -2295,6 +2361,10 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2295
2361
  margin-top: calc(2 * var(--base-unit, 8px));
2296
2362
  }
2297
2363
 
2364
+ .sd-page__row.sd-row {
2365
+ margin-top: calc(2 * var(--base-unit, 8px));
2366
+ }
2367
+
2298
2368
  .sd-page__row.sd-row--multiple,
2299
2369
  .svc-row > .sd-row--multiple {
2300
2370
  background: var(--background, #fff);
@@ -2365,6 +2435,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2365
2435
  font-family: var(--font-family, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);
2366
2436
  gap: calc(4 * var(--base-unit, 8px));
2367
2437
  box-shadow: 0px 2px 0px var(--primary, #19b394);
2438
+ margin-bottom: 2px;
2368
2439
  }
2369
2440
  .sd-title.sd-container-modern__title .sd-logo__image {
2370
2441
  margin-top: calc(1 * var(--base-unit, 8px));
@@ -2662,6 +2733,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2662
2733
  text-align: center;
2663
2734
  border: 2px solid var(--background, #fff);
2664
2735
  color: var(--foreground, #161616);
2736
+ fill: var(--foreground, #161616);
2665
2737
  font-size: calc(2 * var(--base-unit, 8px));
2666
2738
  }
2667
2739
 
@@ -2678,10 +2750,12 @@ legend + sv-ng-rating-item + .sd-rating__item {
2678
2750
 
2679
2751
  .sd-rating__item.sd-rating__item--disabled {
2680
2752
  color: var(--foreground-disabled, rgba(22, 22, 22, 0.25));
2753
+ fill: var(--foreground-disabled, rgba(22, 22, 22, 0.25));
2681
2754
  }
2682
2755
 
2683
2756
  .sd-rating__item.sd-rating__item--selected.sd-rating__item--disabled {
2684
2757
  color: var(--primary-foreground-disabled, rgba(255, 255, 255, 0.25));
2758
+ fill: var(--foreground-disabled, rgba(22, 22, 22, 0.25));
2685
2759
  }
2686
2760
 
2687
2761
  .sd-rating__item--allowhover:hover,
@@ -2694,12 +2768,67 @@ legend + sv-ng-rating-item + .sd-rating__item {
2694
2768
  border-color: var(--primary, #19b394);
2695
2769
  color: var(--primary-foreground, #fff);
2696
2770
  font-weight: 600;
2771
+ box-shadow: 0px 1px 2px transparent;
2697
2772
  }
2698
2773
 
2699
2774
  .sd-rating__item--selected:focus-within {
2700
2775
  box-shadow: inset 0 0 0 2px var(--background, #fff);
2701
2776
  }
2702
2777
 
2778
+ .sd-rating__item-smiley {
2779
+ position: relative;
2780
+ background: var(--background, #fff);
2781
+ border-radius: calc(12.5 * var(--base-unit, 8px));
2782
+ white-space: nowrap;
2783
+ padding: calc(1.25 * var(--base-unit, 8px));
2784
+ box-sizing: border-box;
2785
+ min-width: calc(6 * var(--base-unit, 8px));
2786
+ text-align: center;
2787
+ border: 2px solid var(--border, #d6d6d6);
2788
+ color: var(--foreground, #161616);
2789
+ fill: var(--border, #d6d6d6);
2790
+ }
2791
+ .sd-rating__item-smiley svg {
2792
+ display: block;
2793
+ width: calc(3 * var(--base-unit, 8px));
2794
+ height: calc(3 * var(--base-unit, 8px));
2795
+ }
2796
+
2797
+ legend + .sd-rating__item-smiley,
2798
+ legend + sv-ng-rating-item + .sd-rating__item-smiley {
2799
+ margin-inline-start: 2px;
2800
+ }
2801
+
2802
+ .sd-rating__item-smiley--error {
2803
+ background-color: var(--red-light, rgba(230, 10, 62, 0.1));
2804
+ border-color: transparent;
2805
+ }
2806
+
2807
+ .sd-rating__item-smiley.sd-rating__item-smiley--disabled {
2808
+ opacity: 0.5;
2809
+ }
2810
+
2811
+ .sd-rating__item-smiley.sd-rating__item-smiley--selected.sd-rating__item-smiley--disabled {
2812
+ opacity: initial;
2813
+ fill: var(--primary-foreground, #fff);
2814
+ }
2815
+
2816
+ .sd-rating__item-smiley--allowhover:hover,
2817
+ .sd-rating__item-smiley:focus-within {
2818
+ border-color: var(--primary, #19b394);
2819
+ }
2820
+
2821
+ .sd-rating__item-smiley--selected {
2822
+ background-color: var(--primary, #19b394);
2823
+ border-color: var(--primary, #19b394);
2824
+ fill: var(--primary-foreground, #fff);
2825
+ font-weight: 600;
2826
+ }
2827
+
2828
+ .sd-rating__item-smiley--selected:focus-within {
2829
+ box-shadow: inset 0 0 0 2px var(--background, #fff);
2830
+ }
2831
+
2703
2832
  .sd-rating__item-star {
2704
2833
  position: relative;
2705
2834
  background: var(--background, #fff);
@@ -2717,18 +2846,21 @@ legend + sv-ng-rating-item + .sd-rating__item {
2717
2846
  .sd-rating__item-star svg {
2718
2847
  stroke: var(--border, #d6d6d6);
2719
2848
  fill: none;
2849
+ width: calc(6 * var(--base-unit, 8px));
2850
+ height: calc(6 * var(--base-unit, 8px));
2851
+ display: block;
2720
2852
  }
2721
2853
  .sd-rating__item-star .sv-star-2 {
2722
2854
  display: none;
2723
2855
  }
2724
2856
 
2725
2857
  .sd-rating__item-star--selected svg {
2726
- stroke: var(--primary, #19b394);
2858
+ stroke: none;
2727
2859
  fill: var(--primary, #19b394);
2728
2860
  }
2729
2861
 
2730
2862
  .sd-rating__item-star--error svg {
2731
- stroke: var(--red-light, rgba(230, 10, 62, 0.1));
2863
+ stroke: none;
2732
2864
  fill: var(--red-light, rgba(230, 10, 62, 0.1));
2733
2865
  }
2734
2866
 
@@ -2741,7 +2873,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
2741
2873
  }
2742
2874
 
2743
2875
  .sd-rating__item-star--selected.sd-rating__item-star--disabled svg {
2744
- stroke: var(--border, #d6d6d6);
2876
+ stroke: none;
2745
2877
  fill: var(--border, #d6d6d6);
2746
2878
  }
2747
2879
 
@@ -2751,7 +2883,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
2751
2883
  }
2752
2884
 
2753
2885
  .sd-rating__item-star--unhighlighted svg {
2754
- stroke: var(--border, #d6d6d6);
2886
+ stroke: none;
2755
2887
  fill: var(--border, #d6d6d6);
2756
2888
  }
2757
2889
 
@@ -2943,6 +3075,15 @@ legend + sv-ng-rating-item + .sd-rating__item {
2943
3075
  appearance: none;
2944
3076
  }
2945
3077
 
3078
+ .sd-dropdown__hint-prefix {
3079
+ color: var(--foreground-light, #909090);
3080
+ }
3081
+
3082
+ .sd-dropdown__hint-suffix {
3083
+ display: flex;
3084
+ color: var(--foreground-light, #909090);
3085
+ }
3086
+
2946
3087
  [dir=rtl] .sd-dropdown,
2947
3088
  [style*="direction:rtl"] .sd-dropdown,
2948
3089
  [style*="direction: rtl"] .sd-dropdown {
@@ -3889,6 +4030,10 @@ legend + sv-ng-rating-item + .sd-rating__item {
3889
4030
  flex-grow: 1;
3890
4031
  }
3891
4032
 
4033
+ .sd-multipletext__content .sd-multipletext__item-container {
4034
+ position: relative;
4035
+ }
4036
+
3892
4037
  .sd-multipletext__item-container--error {
3893
4038
  background-color: var(--red-light, rgba(230, 10, 62, 0.1));
3894
4039
  }
@@ -4110,12 +4255,11 @@ svg.sd-action--icon {
4110
4255
  height: 100%;
4111
4256
  background: var(--background, #fff);
4112
4257
  border-right: 1px solid var(--border, #d6d6d6);
4113
- margin-top: 2px;
4114
4258
  box-sizing: border-box;
4259
+ min-width: calc(32 * var(--base-unit, 8px));
4115
4260
  }
4116
4261
  .sv_progress-toc .sv-list__item.sv-list__item--selected .sv-list__item-body {
4117
4262
  background: var(--primary-light, rgba(25, 179, 148, 0.1));
4118
- border-radius: 3px;
4119
4263
  color: var(--foreground, #161616);
4120
4264
  font-weight: 400;
4121
4265
  }
@@ -4125,6 +4269,9 @@ svg.sd-action--icon {
4125
4269
  .sv_progress-toc .sv-list__item-body {
4126
4270
  padding-inline-start: calc(2 * var(--base-unit, 8px));
4127
4271
  padding-inline-end: calc(2 * var(--base-unit, 8px));
4272
+ border-radius: 3px;
4273
+ padding-top: calc(1.5 * var(--base-unit, 8px));
4274
+ padding-bottom: calc(1.5 * var(--base-unit, 8px));
4128
4275
  }
4129
4276
 
4130
4277
  .sd-list {
@@ -4284,8 +4431,8 @@ sv-components-container,
4284
4431
  float: none;
4285
4432
  margin-inline-start: 0;
4286
4433
  width: auto;
4287
- padding-left: 0;
4288
- padding-right: 0;
4434
+ padding-inline-start: 0;
4435
+ padding-inline-end: 0;
4289
4436
  }
4290
4437
  .sd-root-modern.sd-root-modern--mobile .sd-element__num + span {
4291
4438
  float: none;