survey-react 1.10.6 → 1.11.2

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.10.6
2
+ * surveyjs - Survey JavaScript library v1.11.2
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -102,6 +102,18 @@ sv-popup {
102
102
  height: 0;
103
103
  }
104
104
 
105
+ .sv-popup.sv-popup-inner {
106
+ height: 0;
107
+ }
108
+
109
+ .sv-popup-inner > .sv-popup__container {
110
+ margin-top: calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))));
111
+ }
112
+
113
+ .sv-list__item--with-icon .sv-popup-inner > .sv-popup__container {
114
+ margin-top: calc(-0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
115
+ }
116
+
105
117
  .sv-popup__container {
106
118
  background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
107
119
  box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
@@ -152,6 +164,10 @@ sv-popup {
152
164
  padding-bottom: 2px;
153
165
  }
154
166
 
167
+ .sv-popup--modal .sv-popup__body-footer .sv-footer-action-bar {
168
+ overflow: visible;
169
+ }
170
+
155
171
  .sv-popup--confirm-delete .sv-popup__shadow {
156
172
  height: initial;
157
173
  }
@@ -259,6 +275,7 @@ sv-popup {
259
275
  display: flex;
260
276
  flex-direction: column;
261
277
  min-height: 0;
278
+ position: relative;
262
279
  }
263
280
 
264
281
  .sv-popup--show-pointer.sv-popup--top .sv-popup__pointer {
@@ -753,6 +770,18 @@ sv-popup {
753
770
  background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
754
771
  }
755
772
 
773
+ .sd-title + .sv-components-row > .sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile),
774
+ .sd-title ~ .sv-components-row > .sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile) {
775
+ margin-top: 2px;
776
+ }
777
+
778
+ .sv_progress-toc.sv_progress-toc--sticky {
779
+ position: sticky;
780
+ height: auto;
781
+ overflow-y: auto;
782
+ top: 0;
783
+ }
784
+
756
785
  .sv-container-modern {
757
786
  color: var(--text-color, #404040);
758
787
  font-size: var(--font-size, var(--sjs-font-size, 16px));
@@ -2891,6 +2920,18 @@ sv-popup {
2891
2920
  height: 0;
2892
2921
  }
2893
2922
 
2923
+ .sv-popup.sv-popup-inner {
2924
+ height: 0;
2925
+ }
2926
+
2927
+ .sv-popup-inner > .sv-popup__container {
2928
+ margin-top: calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))));
2929
+ }
2930
+
2931
+ .sv-list__item--with-icon .sv-popup-inner > .sv-popup__container {
2932
+ margin-top: calc(-0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
2933
+ }
2934
+
2894
2935
  .sv-popup__container {
2895
2936
  background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
2896
2937
  box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
@@ -2941,6 +2982,10 @@ sv-popup {
2941
2982
  padding-bottom: 2px;
2942
2983
  }
2943
2984
 
2985
+ .sv-popup--modal .sv-popup__body-footer .sv-footer-action-bar {
2986
+ overflow: visible;
2987
+ }
2988
+
2944
2989
  .sv-popup--confirm-delete .sv-popup__shadow {
2945
2990
  height: initial;
2946
2991
  }
@@ -3048,6 +3093,7 @@ sv-popup {
3048
3093
  display: flex;
3049
3094
  flex-direction: column;
3050
3095
  min-height: 0;
3096
+ position: relative;
3051
3097
  }
3052
3098
 
3053
3099
  .sv-popup--show-pointer.sv-popup--top .sv-popup__pointer {
@@ -4140,6 +4186,7 @@ sv-brand-info, .sv-brand-info {
4140
4186
  }
4141
4187
 
4142
4188
  .sv-list__item-body {
4189
+ position: relative;
4143
4190
  width: 100%;
4144
4191
  align-items: center;
4145
4192
  box-sizing: border-box;
@@ -4176,15 +4223,16 @@ sv-brand-info, .sv-brand-info {
4176
4223
  .sv-list__item:focus {
4177
4224
  outline: none;
4178
4225
  }
4179
- .sv-list__item:hover .sv-list__item-body,
4180
- .sv-list__item:focus .sv-list__item-body {
4226
+
4227
+ .sv-list__item:focus .sv-list__item-body,
4228
+ .sv-list__item--hovered > .sv-list__item-body {
4181
4229
  background-color: var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)));
4182
4230
  }
4183
4231
 
4184
4232
  .sv-list__item--with-icon.sv-list__item--with-icon {
4185
4233
  padding: 0;
4186
4234
  }
4187
- .sv-list__item--with-icon.sv-list__item--with-icon .sv-list__item-body {
4235
+ .sv-list__item--with-icon.sv-list__item--with-icon > .sv-list__item-body {
4188
4236
  padding-top: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
4189
4237
  padding-bottom: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
4190
4238
  gap: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
@@ -4204,6 +4252,19 @@ sv-brand-info, .sv-brand-info {
4204
4252
  fill: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
4205
4253
  }
4206
4254
 
4255
+ .sv-list-item__marker-icon {
4256
+ position: absolute;
4257
+ right: var(--sjs-base-unit, var(--base-unit, 8px));
4258
+ flex-shrink: 0;
4259
+ padding: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
4260
+ }
4261
+ .sv-list-item__marker-icon svg {
4262
+ display: block;
4263
+ }
4264
+ .sv-list-item__marker-icon use {
4265
+ fill: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
4266
+ }
4267
+
4207
4268
  [dir=rtl] .sv-list__item-icon,
4208
4269
  [style*="direction:rtl"] .sv-list__item-icon,
4209
4270
  [style*="direction: rtl"] .sv-list__item-icon {
@@ -4220,11 +4281,11 @@ sv-brand-info, .sv-brand-info {
4220
4281
  display: none;
4221
4282
  }
4222
4283
 
4223
- .sv-list__item.sv-list__item--selected .sv-list__item-body,
4224
- .sv-list__item.sv-list__item--selected:hover .sv-list__item-body,
4225
- .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body,
4226
- .sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body,
4227
- li:focus .sv-list__item.sv-list__item--selected .sv-list__item-body {
4284
+ .sv-list__item.sv-list__item--selected > .sv-list__item-body,
4285
+ .sv-list__item.sv-list__item--selected:hover > .sv-list__item-body,
4286
+ .sv-list__item.sv-list__item--selected.sv-list__item--focused > .sv-list__item-body,
4287
+ .sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused > .sv-list__item-body,
4288
+ li:focus .sv-list__item.sv-list__item--selected > .sv-list__item-body {
4228
4289
  background-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
4229
4290
  color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
4230
4291
  font-weight: 600;
@@ -4236,6 +4297,13 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-body {
4236
4297
  li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
4237
4298
  fill: var(--sjs-general-backcolor, var(--background, #fff));
4238
4299
  }
4300
+ .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use,
4301
+ .sv-list__item.sv-list__item--selected:hover .sv-list-item__marker-icon use,
4302
+ .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,
4303
+ .sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,
4304
+ li:focus .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use {
4305
+ fill: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
4306
+ }
4239
4307
 
4240
4308
  .sv-multi-select-list .sv-list__item.sv-list__item--selected .sv-list__item-body,
4241
4309
  .sv-multi-select-list .sv-list__item.sv-list__item--selected:hover .sv-list__item-body {