survey-react 1.9.78 → 1.9.79

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.79
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));
@@ -2717,18 +2751,21 @@ legend + sv-ng-rating-item + .sd-rating__item {
2717
2751
  .sd-rating__item-star svg {
2718
2752
  stroke: var(--border, #d6d6d6);
2719
2753
  fill: none;
2754
+ width: calc(6 * var(--base-unit, 8px));
2755
+ height: calc(6 * var(--base-unit, 8px));
2756
+ display: block;
2720
2757
  }
2721
2758
  .sd-rating__item-star .sv-star-2 {
2722
2759
  display: none;
2723
2760
  }
2724
2761
 
2725
2762
  .sd-rating__item-star--selected svg {
2726
- stroke: var(--primary, #19b394);
2763
+ stroke: none;
2727
2764
  fill: var(--primary, #19b394);
2728
2765
  }
2729
2766
 
2730
2767
  .sd-rating__item-star--error svg {
2731
- stroke: var(--red-light, rgba(230, 10, 62, 0.1));
2768
+ stroke: none;
2732
2769
  fill: var(--red-light, rgba(230, 10, 62, 0.1));
2733
2770
  }
2734
2771
 
@@ -2741,7 +2778,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
2741
2778
  }
2742
2779
 
2743
2780
  .sd-rating__item-star--selected.sd-rating__item-star--disabled svg {
2744
- stroke: var(--border, #d6d6d6);
2781
+ stroke: none;
2745
2782
  fill: var(--border, #d6d6d6);
2746
2783
  }
2747
2784
 
@@ -2751,7 +2788,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
2751
2788
  }
2752
2789
 
2753
2790
  .sd-rating__item-star--unhighlighted svg {
2754
- stroke: var(--border, #d6d6d6);
2791
+ stroke: none;
2755
2792
  fill: var(--border, #d6d6d6);
2756
2793
  }
2757
2794
 
@@ -2943,6 +2980,15 @@ legend + sv-ng-rating-item + .sd-rating__item {
2943
2980
  appearance: none;
2944
2981
  }
2945
2982
 
2983
+ .sd-dropdown__hint-prefix {
2984
+ color: var(--foreground-light, #909090);
2985
+ }
2986
+
2987
+ .sd-dropdown__hint-suffix {
2988
+ display: flex;
2989
+ color: var(--foreground-light, #909090);
2990
+ }
2991
+
2946
2992
  [dir=rtl] .sd-dropdown,
2947
2993
  [style*="direction:rtl"] .sd-dropdown,
2948
2994
  [style*="direction: rtl"] .sd-dropdown {
@@ -4284,8 +4330,8 @@ sv-components-container,
4284
4330
  float: none;
4285
4331
  margin-inline-start: 0;
4286
4332
  width: auto;
4287
- padding-left: 0;
4288
- padding-right: 0;
4333
+ padding-inline-start: 0;
4334
+ padding-inline-end: 0;
4289
4335
  }
4290
4336
  .sd-root-modern.sd-root-modern--mobile .sd-element__num + span {
4291
4337
  float: none;