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/modern.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
  */
@@ -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;
@@ -1874,11 +1877,31 @@ sv-popup {
1874
1877
  color: var(--text-color, #404040);
1875
1878
  position: relative;
1876
1879
  }
1880
+ .sv-dropdown__value .sv-string-viewer {
1881
+ line-height: 28px;
1882
+ }
1877
1883
 
1878
1884
  .sv_dropdown_control__input-field-component {
1879
1885
  height: auto;
1880
1886
  }
1881
1887
 
1888
+ .sv-dropdown__hint-prefix {
1889
+ opacity: 0.5;
1890
+ }
1891
+ .sv-dropdown__hint-prefix span {
1892
+ word-break: unset;
1893
+ line-height: 28px;
1894
+ }
1895
+
1896
+ .sv-dropdown__hint-suffix {
1897
+ display: flex;
1898
+ opacity: 0.5;
1899
+ }
1900
+ .sv-dropdown__hint-suffix span {
1901
+ word-break: unset;
1902
+ line-height: 28px;
1903
+ }
1904
+
1882
1905
  .sv-dropdown_clean-button {
1883
1906
  padding: 3px 12px;
1884
1907
  margin: auto 0;
@@ -2036,6 +2059,10 @@ sv-popup {
2036
2059
  color: var(--error-color, #d52901);
2037
2060
  }
2038
2061
 
2062
+ .sv-tagbox .sv-dropdown__filter-string-input {
2063
+ height: auto;
2064
+ }
2065
+
2039
2066
  .sv-text {
2040
2067
  box-sizing: border-box;
2041
2068
  width: 100%;
@@ -2957,6 +2984,7 @@ sv-popup {
2957
2984
 
2958
2985
  .sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__body-content {
2959
2986
  --sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--base-unit, 8px) * 8);
2987
+ --sv-popup-overlay-max-width: calc(100% - var(--base-unit, 8px) * 8);
2960
2988
  position: absolute;
2961
2989
  transform: translate(-50%, -50%);
2962
2990
  left: 50%;
@@ -2964,7 +2992,9 @@ sv-popup {
2964
2992
  max-height: var(--sv-popup-overlay-max-height);
2965
2993
  min-height: min(var(--sv-popup-overlay-max-height), 31 * var(--base-unit, 8px));
2966
2994
  height: auto;
2967
- max-width: calc(40 * var(--base-unit, 8px));
2995
+ width: auto;
2996
+ min-width: min(40 * var(--base-unit, 8px), var(--sv-popup-overlay-max-width));
2997
+ max-width: var(--sv-popup-overlay-max-width);
2968
2998
  border-radius: calc(0.5 * var(--base-unit, 8px));
2969
2999
  overflow: hidden;
2970
3000
  margin: 0;
@@ -3597,9 +3627,8 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
3597
3627
  position: absolute;
3598
3628
  left: 50%;
3599
3629
  bottom: calc(3 * var(--base-unit, 8px));
3600
- transform: translate(-50%, 0);
3601
3630
  background: var(--background, #fff);
3602
- opacity: 0.75;
3631
+ opacity: 0;
3603
3632
  padding: calc(3 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px));
3604
3633
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
3605
3634
  border-radius: calc(1 * var(--base-unit, 8px));
@@ -3610,17 +3639,43 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
3610
3639
  font-family: var(--font-family, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);
3611
3640
  font-size: calc(2 * var(--base-unit, 8px));
3612
3641
  line-height: calc(3 * var(--base-unit, 8px));
3613
- white-space: nowrap;
3614
3642
  display: flex;
3615
3643
  flex-direction: row;
3616
3644
  justify-content: center;
3617
3645
  align-items: center;
3646
+ transform: translateX(-50%) translateY(calc(3 * var(--base-unit, 8px)));
3647
+ transition-timing-function: ease-in;
3648
+ transition-property: transform, opacity;
3649
+ transition-delay: 0.25s;
3650
+ transition: 0.5s;
3651
+ }
3652
+
3653
+ .sv-save-data_root.sv-save-data_root--shown {
3654
+ transition-timing-function: ease-out;
3655
+ transition-property: transform, opacity;
3656
+ transform: translateX(-50%) translateY(0);
3657
+ transition-delay: 0.25s;
3658
+ opacity: 0.75;
3659
+ }
3660
+
3661
+ .sv-save-data_root span {
3662
+ display: flex;
3663
+ flex-grow: 1;
3664
+ }
3665
+ .sv-save-data_root .sv-action-bar {
3666
+ display: flex;
3667
+ flex-grow: 0;
3668
+ flex-shrink: 0;
3669
+ }
3670
+
3671
+ .sv-save-data_root--shown.sv-save-data_success,
3672
+ .sv-save-data_root--shown.sv-save-data_error {
3673
+ opacity: 1;
3618
3674
  }
3619
3675
 
3620
3676
  .sv-save-data_root.sv-save-data_error {
3621
3677
  background-color: var(--red, #e60a3e);
3622
3678
  color: var(--background, #fff);
3623
- opacity: 1;
3624
3679
  font-weight: 600;
3625
3680
  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
3681
  gap: calc(6 * var(--base-unit, 8px));
@@ -3649,7 +3704,6 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
3649
3704
  .sv-save-data_root.sv-save-data_success {
3650
3705
  background-color: var(--primary, #19b394);
3651
3706
  color: #ffffff;
3652
- opacity: 1;
3653
3707
  font-weight: 600;
3654
3708
  }
3655
3709