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/modern.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
  */
@@ -424,6 +424,7 @@ sv-popup {
424
424
 
425
425
  .sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__body-content {
426
426
  --sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--base-unit, 8px) * 8);
427
+ --sv-popup-overlay-max-width: calc(100% - var(--base-unit, 8px) * 8);
427
428
  position: absolute;
428
429
  transform: translate(-50%, -50%);
429
430
  left: 50%;
@@ -431,7 +432,9 @@ sv-popup {
431
432
  max-height: var(--sv-popup-overlay-max-height);
432
433
  min-height: min(var(--sv-popup-overlay-max-height), 31 * var(--base-unit, 8px));
433
434
  height: auto;
434
- max-width: calc(40 * var(--base-unit, 8px));
435
+ width: auto;
436
+ min-width: min(40 * var(--base-unit, 8px), var(--sv-popup-overlay-max-width));
437
+ max-width: var(--sv-popup-overlay-max-width);
435
438
  border-radius: calc(0.5 * var(--base-unit, 8px));
436
439
  overflow: hidden;
437
440
  margin: 0;
@@ -558,12 +561,11 @@ sv-popup {
558
561
  height: 100%;
559
562
  background: #FFFFFF;
560
563
  border-right: 1px solid #D6D6D6;
561
- margin-top: 2px;
562
564
  box-sizing: border-box;
565
+ min-width: 256px;
563
566
  }
564
567
  .sv_progress-toc .sv-list__item.sv-list__item--selected .sv-list__item-body {
565
568
  background: rgba(25, 179, 148, 0.1);
566
- border-radius: 3px;
567
569
  color: #161616;
568
570
  font-weight: 400;
569
571
  }
@@ -573,6 +575,9 @@ sv-popup {
573
575
  .sv_progress-toc .sv-list__item-body {
574
576
  padding-inline-start: 16px;
575
577
  padding-inline-end: 16px;
578
+ border-radius: 3px;
579
+ padding-top: 12px;
580
+ padding-bottom: 12px;
576
581
  }
577
582
 
578
583
  .sv-container-modern {
@@ -1874,11 +1879,31 @@ sv-popup {
1874
1879
  color: var(--text-color, #404040);
1875
1880
  position: relative;
1876
1881
  }
1882
+ .sv-dropdown__value .sv-string-viewer {
1883
+ line-height: 28px;
1884
+ }
1877
1885
 
1878
1886
  .sv_dropdown_control__input-field-component {
1879
1887
  height: auto;
1880
1888
  }
1881
1889
 
1890
+ .sv-dropdown__hint-prefix {
1891
+ opacity: 0.5;
1892
+ }
1893
+ .sv-dropdown__hint-prefix span {
1894
+ word-break: unset;
1895
+ line-height: 28px;
1896
+ }
1897
+
1898
+ .sv-dropdown__hint-suffix {
1899
+ display: flex;
1900
+ opacity: 0.5;
1901
+ }
1902
+ .sv-dropdown__hint-suffix span {
1903
+ word-break: unset;
1904
+ line-height: 28px;
1905
+ }
1906
+
1882
1907
  .sv-dropdown_clean-button {
1883
1908
  padding: 3px 12px;
1884
1909
  margin: auto 0;
@@ -2036,6 +2061,10 @@ sv-popup {
2036
2061
  color: var(--error-color, #d52901);
2037
2062
  }
2038
2063
 
2064
+ .sv-tagbox .sv-dropdown__filter-string-input {
2065
+ height: auto;
2066
+ }
2067
+
2039
2068
  .sv-text {
2040
2069
  box-sizing: border-box;
2041
2070
  width: 100%;
@@ -2957,6 +2986,7 @@ sv-popup {
2957
2986
 
2958
2987
  .sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__body-content {
2959
2988
  --sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--base-unit, 8px) * 8);
2989
+ --sv-popup-overlay-max-width: calc(100% - var(--base-unit, 8px) * 8);
2960
2990
  position: absolute;
2961
2991
  transform: translate(-50%, -50%);
2962
2992
  left: 50%;
@@ -2964,7 +2994,9 @@ sv-popup {
2964
2994
  max-height: var(--sv-popup-overlay-max-height);
2965
2995
  min-height: min(var(--sv-popup-overlay-max-height), 31 * var(--base-unit, 8px));
2966
2996
  height: auto;
2967
- max-width: calc(40 * var(--base-unit, 8px));
2997
+ width: auto;
2998
+ min-width: min(40 * var(--base-unit, 8px), var(--sv-popup-overlay-max-width));
2999
+ max-width: var(--sv-popup-overlay-max-width);
2968
3000
  border-radius: calc(0.5 * var(--base-unit, 8px));
2969
3001
  overflow: hidden;
2970
3002
  margin: 0;
@@ -3597,9 +3629,8 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
3597
3629
  position: absolute;
3598
3630
  left: 50%;
3599
3631
  bottom: calc(3 * var(--base-unit, 8px));
3600
- transform: translate(-50%, 0);
3601
3632
  background: var(--background, #fff);
3602
- opacity: 0.75;
3633
+ opacity: 0;
3603
3634
  padding: calc(3 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px));
3604
3635
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
3605
3636
  border-radius: calc(1 * var(--base-unit, 8px));
@@ -3610,17 +3641,43 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
3610
3641
  font-family: var(--font-family, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);
3611
3642
  font-size: calc(2 * var(--base-unit, 8px));
3612
3643
  line-height: calc(3 * var(--base-unit, 8px));
3613
- white-space: nowrap;
3614
3644
  display: flex;
3615
3645
  flex-direction: row;
3616
3646
  justify-content: center;
3617
3647
  align-items: center;
3648
+ transform: translateX(-50%) translateY(calc(3 * var(--base-unit, 8px)));
3649
+ transition-timing-function: ease-in;
3650
+ transition-property: transform, opacity;
3651
+ transition-delay: 0.25s;
3652
+ transition: 0.5s;
3653
+ }
3654
+
3655
+ .sv-save-data_root.sv-save-data_root--shown {
3656
+ transition-timing-function: ease-out;
3657
+ transition-property: transform, opacity;
3658
+ transform: translateX(-50%) translateY(0);
3659
+ transition-delay: 0.25s;
3660
+ opacity: 0.75;
3661
+ }
3662
+
3663
+ .sv-save-data_root span {
3664
+ display: flex;
3665
+ flex-grow: 1;
3666
+ }
3667
+ .sv-save-data_root .sv-action-bar {
3668
+ display: flex;
3669
+ flex-grow: 0;
3670
+ flex-shrink: 0;
3671
+ }
3672
+
3673
+ .sv-save-data_root--shown.sv-save-data_success,
3674
+ .sv-save-data_root--shown.sv-save-data_error {
3675
+ opacity: 1;
3618
3676
  }
3619
3677
 
3620
3678
  .sv-save-data_root.sv-save-data_error {
3621
3679
  background-color: var(--red, #e60a3e);
3622
3680
  color: var(--background, #fff);
3623
- opacity: 1;
3624
3681
  font-weight: 600;
3625
3682
  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));
3626
3683
  gap: calc(6 * var(--base-unit, 8px));
@@ -3649,7 +3706,6 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
3649
3706
  .sv-save-data_root.sv-save-data_success {
3650
3707
  background-color: var(--primary, #19b394);
3651
3708
  color: #ffffff;
3652
- opacity: 1;
3653
3709
  font-weight: 600;
3654
3710
  }
3655
3711