superdesk-ui-framework 3.0.42 → 3.0.44

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.
Files changed (119) hide show
  1. package/app/styles/_accessibility.scss +349 -310
  2. package/app/styles/_alerts.scss +102 -71
  3. package/app/styles/_animations.scss +29 -16
  4. package/app/styles/_avatar.scss +159 -140
  5. package/app/styles/_badge.scss +11 -5
  6. package/app/styles/_big-icon-font.scss +21 -9
  7. package/app/styles/_boxed-list.scss +72 -47
  8. package/app/styles/_buttons.scss +266 -177
  9. package/app/styles/_carousel.scss +58 -45
  10. package/app/styles/_content-divider.scss +28 -2
  11. package/app/styles/_drag-drop.scss +3 -0
  12. package/app/styles/_empty-states.scss +21 -13
  13. package/app/styles/_hamburger.scss +142 -144
  14. package/app/styles/_helpers.scss +297 -93
  15. package/app/styles/_icon-font.scss +75 -43
  16. package/app/styles/_icon-labels.scss +11 -1
  17. package/app/styles/_labels.scss +27 -14
  18. package/app/styles/_loaders.scss +2 -1
  19. package/app/styles/_master-desk.scss +67 -31
  20. package/app/styles/_mixins.scss +40 -20
  21. package/app/styles/_modals.scss +112 -56
  22. package/app/styles/_panel-info.scss +38 -34
  23. package/app/styles/_popover.scss +0 -1
  24. package/app/styles/_publisher-styles.scss +132 -122
  25. package/app/styles/_sd-tag-input.scss +104 -24
  26. package/app/styles/_simple-list.scss +89 -66
  27. package/app/styles/_spinner.scss +24 -17
  28. package/app/styles/_table-list.scss +114 -80
  29. package/app/styles/_tables.scss +14 -2
  30. package/app/styles/_tabs-vertical.scss +46 -43
  31. package/app/styles/_tabs.scss +97 -87
  32. package/app/styles/_tag-labels.scss +26 -11
  33. package/app/styles/_thumb-carousel.scss +37 -11
  34. package/app/styles/_toggle-box.scss +27 -7
  35. package/app/styles/_toggle-button.scss +5 -1
  36. package/app/styles/_tooltips.scss +284 -272
  37. package/app/styles/components/_card-item.scss +268 -192
  38. package/app/styles/components/_list-item.scss +261 -175
  39. package/app/styles/components/_sd-circular-progress.scss +109 -79
  40. package/app/styles/components/_sd-collapse-box.scss +45 -33
  41. package/app/styles/components/_sd-comment-box.scss +17 -12
  42. package/app/styles/components/_sd-dropzone.scss +32 -15
  43. package/app/styles/components/_sd-editor-popup.scss +29 -15
  44. package/app/styles/components/_sd-grid-item.scss +349 -237
  45. package/app/styles/components/_sd-loader.scss +1 -2
  46. package/app/styles/components/_sd-media-carousel.scss +119 -78
  47. package/app/styles/components/_sd-notification-panel.scss +2 -1
  48. package/app/styles/components/_sd-pagination.scss +27 -19
  49. package/app/styles/components/_sd-photo-preview.scss +82 -41
  50. package/app/styles/components/_sd-searchbar.scss +79 -51
  51. package/app/styles/components/_sd-toaster.scss +52 -30
  52. package/app/styles/components/_subnav.scss +230 -135
  53. package/app/styles/components/_theme-selector.scss +78 -53
  54. package/app/styles/components/sd-slider.scss +11 -7
  55. package/app/styles/design-tokens/_design-tokens-general.scss +31 -27
  56. package/app/styles/design-tokens/_new-colors.scss +3 -1
  57. package/app/styles/dropdowns/_basic-dropdown.scss +164 -86
  58. package/app/styles/dropdowns/_input-dropdown.scss +5 -2
  59. package/app/styles/dropdowns/_navigation_dropdown.scss +18 -4
  60. package/app/styles/dropdowns/_nested-dropdown.scss +11 -2
  61. package/app/styles/dropdowns/_other_dropdown.scss +9 -3
  62. package/app/styles/editor/_editor-buttons.scss +10 -6
  63. package/app/styles/editor/_editor-themes.scss +401 -350
  64. package/app/styles/form-elements/_autocomplete.scss +7 -1
  65. package/app/styles/form-elements/_checkbox.scss +230 -159
  66. package/app/styles/form-elements/_forms-general.scss +345 -285
  67. package/app/styles/form-elements/_input-preview.scss +15 -9
  68. package/app/styles/form-elements/_input-wrap.scss +77 -71
  69. package/app/styles/form-elements/_inputs.scss +668 -489
  70. package/app/styles/form-elements/_radio.scss +10 -5
  71. package/app/styles/form-elements/_switch.scss +27 -16
  72. package/app/styles/grids/_basic-grid.scss +83 -64
  73. package/app/styles/grids/_grid-layout.scss +301 -165
  74. package/app/styles/grids/_layout-grid.scss +85 -59
  75. package/app/styles/grids/_sd-kanban-list.scss +14 -4
  76. package/app/styles/interface-elements/_side-panel.scss +279 -200
  77. package/app/styles/layout/_basic-layout.scss +36 -34
  78. package/app/styles/layout/_container.scss +38 -31
  79. package/app/styles/layout/_editor.scss +57 -17
  80. package/app/styles/layout/_general.scss +81 -67
  81. package/app/styles/menus/_sd-bottom-tabs.scss +21 -12
  82. package/app/styles/menus/_sd-content-navigation.scss +20 -16
  83. package/app/styles/menus/_sd-left-navigation.scss +62 -49
  84. package/app/styles/menus/_sd-sidebar-menu.scss +365 -323
  85. package/app/styles/menus/_sd-top-menu.scss +16 -7
  86. package/app/styles/primereact/_pr-autocomplete.scss +2 -0
  87. package/app/styles/primereact/_pr-datepicker.scss +13 -2
  88. package/app/styles/primereact/_pr-dialog.scss +55 -47
  89. package/app/styles/primereact/_pr-dropdown.scss +27 -22
  90. package/app/styles/primereact/_pr-general.scss +3 -0
  91. package/app/styles/primereact/_pr-menu.scss +2 -1
  92. package/app/styles/primereact/_pr-skeleton.scss +1 -0
  93. package/app/styles/primereact/_pr-tag-input.scss +1 -0
  94. package/app/styles/variables/_colors.scss +168 -170
  95. package/app/styles/variables/_typography.scss +1 -2
  96. package/app-typescript/components/Form/InputWrapper.tsx +1 -1
  97. package/app-typescript/components/Menu.tsx +1 -1
  98. package/app-typescript/components/{TreeSelect.tsx → TreeSelect/TreeSelect.tsx} +228 -257
  99. package/app-typescript/components/TreeSelect/TreeSelectItem.tsx +84 -0
  100. package/app-typescript/components/TreeSelect/TreeSelectPill.tsx +53 -0
  101. package/app-typescript/index.ts +1 -1
  102. package/dist/examples.bundle.css +18 -16
  103. package/dist/examples.bundle.js +1029 -918
  104. package/dist/react/TreeSelect.tsx +1 -1
  105. package/dist/superdesk-ui.bundle.css +4265 -3552
  106. package/dist/superdesk-ui.bundle.js +776 -665
  107. package/dist/vendor.bundle.js +23 -23
  108. package/examples/pages/react/TreeSelect.tsx +1 -1
  109. package/package.json +2 -2
  110. package/react/components/Form/InputWrapper.d.ts +1 -1
  111. package/react/components/Menu.js +1 -1
  112. package/react/components/{TreeSelect.d.ts → TreeSelect/TreeSelect.d.ts} +2 -2
  113. package/react/components/{TreeSelect.js → TreeSelect/TreeSelect.js} +82 -144
  114. package/react/components/TreeSelect/TreeSelectItem.d.ts +20 -0
  115. package/react/components/TreeSelect/TreeSelectItem.js +90 -0
  116. package/react/components/TreeSelect/TreeSelectPill.d.ts +14 -0
  117. package/react/components/TreeSelect/TreeSelectPill.js +71 -0
  118. package/react/index.d.ts +1 -1
  119. package/react/index.js +1 -1
@@ -1,5 +1,4 @@
1
1
  // MODALS
2
- // ------
3
2
 
4
3
  // Recalculate z-index where appropriate
5
4
  $zindexDropdown: 2000;
@@ -12,9 +11,9 @@ $nav-height: 48px;
12
11
  .modal-open {
13
12
  overflow: hidden;
14
13
  .dropdown__menu { z-index: $zindexDropdown + $zindexModal; }
15
- .dropdown.open { *z-index: $zindexDropdown + $zindexModal; }
16
- .popover { z-index: $zindexPopover + $zindexModal; }
17
- .tooltip { z-index: $zindexTooltip + $zindexModal; }
14
+ .dropdown.open { *z-index: $zindexDropdown + $zindexModal; }
15
+ .popover { z-index: $zindexPopover + $zindexModal; }
16
+ .tooltip { z-index: $zindexTooltip + $zindexModal; }
18
17
  }
19
18
 
20
19
  // Variables
@@ -35,7 +34,6 @@ $modal-subnav-height : $nav-height;
35
34
  $modal-padding : $sd-base-increment * 2;
36
35
  $modal-box-shadow: var(--sd-shadow__modal);
37
36
 
38
-
39
37
  // Map with all modal sizes
40
38
  $modal-sizes: (
41
39
  default: $modal-base-width,
@@ -48,7 +46,7 @@ $modal-sizes: (
48
46
  @mixin modal-base(
49
47
  $align-items: flex-start,
50
48
  $space-around: 40px
51
- ) {
49
+ ) {
52
50
  position: fixed;
53
51
  left: $space-around;
54
52
  right: $space-around;
@@ -60,12 +58,14 @@ $modal-sizes: (
60
58
  z-index: $zindexModal;
61
59
  display: none;
62
60
  }
61
+
63
62
  @mixin modal-dialog() {
64
63
  display: flex;
65
64
  max-height: 100%;
66
65
  flex: 0 1 auto;
67
66
  margin: 0 auto;
68
67
  }
68
+
69
69
  @mixin modal-content() {
70
70
  background-color: $modal-bg-color;
71
71
  display: flex;
@@ -74,6 +74,7 @@ $modal-sizes: (
74
74
  border-radius: $modal-border-radius;
75
75
  box-shadow: $modal-box-shadow;
76
76
  }
77
+
77
78
  @mixin modal-header() {
78
79
  padding: $modal-padding - $sd-base-increment $modal-padding;
79
80
  border-bottom: 1px solid $modal-line-color;
@@ -81,13 +82,16 @@ $modal-sizes: (
81
82
  background-color: $modal-bg-color;
82
83
  border-radius: $border-radius__base--large $border-radius__base--large 0 0;
83
84
  }
85
+
84
86
  @mixin modal-body() {
85
87
  background: $modal-bg-color;
86
88
  overflow-y: auto;
87
89
  padding: $modal-padding;
88
90
  position: relative;
89
91
  }
92
+
90
93
  @mixin modal-footer() {
94
+ @include clearfix(); // clear it in case folks use .pull-* classes on buttons
91
95
  padding: $modal-padding - $sd-base-increment $modal-padding;
92
96
  text-align: end; // right align buttons
93
97
  border-top: 1px solid $modal-line-color;
@@ -95,15 +99,16 @@ $modal-sizes: (
95
99
  display: flex;
96
100
  align-items: center;
97
101
  justify-content: flex-end;
98
- @include clearfix(); // clear it in case folks use .pull-* classes on buttons
99
102
  }
100
103
 
101
104
  // Base modal calculation, with different sizes
102
105
  .modal {
103
106
  @include modal-base;
107
+
104
108
  &.in {
105
109
  display: flex !important;
106
110
  }
111
+
107
112
  // default size, no class needed
108
113
  .modal__dialog {
109
114
  @include modal-dialog();
@@ -120,27 +125,33 @@ $modal-sizes: (
120
125
  align-items: initial;
121
126
  flex-direction: initial;
122
127
  padding: 10px;
128
+
123
129
  .modal__content {
124
130
  margin: 0 !important;
125
131
  }
132
+
126
133
  .modal__body {
127
134
  flex: 1 1 auto !important;
128
135
  }
129
136
  }
130
137
  }
138
+
131
139
  // fullscreen modal (preview article dialog)
132
140
  @if $name == fullscreen {
133
141
  &--#{$name} {
134
142
  @include modal-base(flex-start, 0px);
143
+
135
144
  .modal__dialog {
136
145
  width: 100%;
137
146
  height: 100%;
138
- }
147
+ }
148
+
139
149
  .modal__content {
150
+ @include border-radius(0);
140
151
  flex: 0 0 100%;
141
152
  margin: 0;
142
- @include border-radius(0);
143
153
  }
154
+
144
155
  .modal__body {
145
156
  max-height: none;
146
157
  flex: 1 1 auto !important;
@@ -149,18 +160,21 @@ $modal-sizes: (
149
160
  }
150
161
  }
151
162
  }
163
+
152
164
  // all other sizes from $modal-sizes except default one
153
165
  @if $name != default {
154
166
  &--#{$name} {
155
167
  .modal__dialog {
156
168
  max-width: $value;
157
169
  }
170
+
158
171
  .modal__body {
159
172
  max-width: $value !important;
160
173
  }
161
174
  }
162
175
  }
163
176
  }
177
+
164
178
  // modifier, change body to white background
165
179
  // &.modal--white {
166
180
  // .modal__body {
@@ -168,12 +182,15 @@ $modal-sizes: (
168
182
  // }
169
183
  // }
170
184
  // fix for calling a modal from another modal
185
+
171
186
  &.modal--double {
172
187
  z-index: 1060;
188
+
173
189
  &+.modal__backdrop {
174
190
  z-index: 1055;
175
191
  }
176
192
  }
193
+
177
194
  // modal with tabs and footer inside body
178
195
  &.modal--tabs {
179
196
  .modal__body {
@@ -182,28 +199,32 @@ $modal-sizes: (
182
199
  flex-direction: column;
183
200
  padding: 0;
184
201
  background: transparent;
202
+
185
203
  // fix for modal with form
186
204
  > form {
187
205
  display: flex;
188
206
  flex-direction: column;
189
207
  }
190
208
  }
209
+
191
210
  .modal__body-header {
192
211
  height: 48px;
193
212
  width: 100%;
194
213
  border-bottom: 1px solid $modal-line-color;
195
214
  padding: 0;
196
- &--add-padding {
197
- padding: 1rem 2rem; // useful if we use body header for something else but tabs
198
- height: auto;
199
- min-height: 48px;
200
- }
201
- &--flex {
202
- display: flex;
203
- align-items: center;
204
- }
215
+ }
216
+
217
+ .modal__body-header--add-padding {
218
+ padding: 1rem 2rem; // useful if we use body header for something else but tabs
219
+ height: auto;
220
+ min-height: 48px;
221
+ }
205
222
 
223
+ .modal__body-header--flex {
224
+ display: flex;
225
+ align-items: center;
206
226
  }
227
+
207
228
  .modal__body-content {
208
229
  flex: 1 1 auto;
209
230
  width: 100%;
@@ -211,6 +232,7 @@ $modal-sizes: (
211
232
  padding: $modal-padding;
212
233
  min-height: 60px;
213
234
  }
235
+
214
236
  .modal__body-footer {
215
237
  flex: 0 0 auto;
216
238
  padding: $modal-padding - .8rem $modal-padding;
@@ -220,139 +242,170 @@ $modal-sizes: (
220
242
  display: flex;
221
243
  }
222
244
  }
245
+
223
246
  p {
224
247
  margin: 0 0 1em 0;
225
248
  }
226
249
  }
250
+
227
251
  .modal__content {
228
252
  @include modal-content();
229
253
  flex: 0 0 100%;
254
+
230
255
  .modal__header, .modal__footer {
231
256
  flex: 0 0 auto;
232
257
  width: 100%;
233
258
  }
259
+
234
260
  .modal__footer {
235
261
  &> .btn + .btn {
236
262
  margin-left: $sd-base-increment;
237
263
  }
238
- }
264
+ }
265
+
239
266
  .modal__header {
240
267
  @include modal-header();
241
268
  position: relative;
242
- &--padding-20 {
243
- padding: 10px 20px;
269
+ }
270
+
271
+ .modal__header--padding-20 {
272
+ padding: 10px 20px;
273
+ }
274
+
275
+ .modal__header--flex {
276
+ display: flex !important;
277
+ flex-direction: row !important;
278
+ align-items: center;
279
+
280
+ .modal__heading {
281
+ flex-grow: 1;
244
282
  }
245
- &--flex {
246
- display: flex !important;
247
- flex-direction: row !important;
248
- align-items: center;
249
- .modal__heading {
250
- flex-grow: 1;
251
- &--no-grow {
252
- flex-grow: 0;
253
- }
254
- }
283
+
284
+ .modal__heading--no-grow {
285
+ flex-grow: 0;
255
286
  }
256
287
  }
288
+
257
289
  .modal__sliding-toolbar {
258
290
  @include sliding-toolbar;
259
291
  max-height: 5.4rem;
260
292
  }
293
+
261
294
  .modal__header-element-grow {
262
295
  flex-grow: 1;
263
296
  }
297
+
264
298
  .modal__header-buttons {
265
299
  display: flex;
266
300
  align-content: center;
267
- &--right {
268
- justify-content: right;
269
- .btn, .dropdown {
270
- margin: 0 0 0 1rem;
271
- }
272
- }
273
- &--center {
274
- justify-content: center;
275
- }
276
- &--grow {
277
- flex-grow: 1;
301
+ }
302
+
303
+ .modal__header-buttons--right {
304
+ justify-content: right;
305
+
306
+ .btn, .dropdown {
307
+ margin: 0 0 0 1rem;
278
308
  }
279
309
  }
310
+
311
+ .modal__header-buttons--center {
312
+ justify-content: center;
313
+ }
314
+
315
+ .modal__header-buttons--grow {
316
+ flex-grow: 1;
317
+ }
318
+
280
319
  .modal__footer {
281
320
  @include modal-footer();
282
321
  }
322
+
283
323
  .modal__body {
284
324
  @include modal-body();
285
325
  flex: 0 1 auto;
286
326
  width: 100%;
287
327
  max-width: $modal-base-width;
288
- // modifier to add min height, if needed
289
- &--add-min-height {
290
- min-height: 300px;
291
- // we reset this value if the screen height is lower than 500px
292
- @media (max-height: 500px) {
293
- min-height: auto;
294
- }
328
+ // modifier to add min height, if needed
329
+ }
330
+
331
+ .modal__body--add-min-height {
332
+ min-height: 300px;
333
+
334
+ // we reset this value if the screen height is lower than 500px
335
+ @media (max-height: 500px) {
336
+ min-height: auto;
295
337
  }
296
- &--no-padding {
297
- padding: 0 !important;
298
- }
299
338
  }
339
+
340
+ .modal__body--no-padding {
341
+ padding: 0 !important;
342
+ }
343
+
300
344
  .modal__body-heading {
301
345
  font-size: 1.8rem;
302
346
  color: $sd-text;
303
347
  font-weight: 400;
304
348
  margin-bottom: 2rem;
305
349
  line-height: 100%;
306
- &--inactive {
307
- color: $sd-text-light;
308
- }
350
+
309
351
  .badge {
310
352
  vertical-align: bottom;
311
353
  margin-right: 0.6rem;
312
354
  }
313
355
  }
356
+
357
+ .modal__body-heading--inactive {
358
+ color: $sd-text-light;
359
+ }
314
360
  }
361
+
315
362
  .modal__content {
316
363
  .subnav {
317
364
  flex-shrink: 0;
318
365
  }
319
366
  }
367
+
320
368
  .modal__close {
321
369
  margin: 2px -6px 0;
322
370
  border: 0;
323
371
  background: 0;
324
372
  padding: 0px 4px;
325
373
  opacity: 0.3;
374
+
326
375
  &:hover {
327
376
  opacity: 0.7;
328
377
  cursor: pointer;
329
378
  }
330
379
  }
380
+
331
381
  .modal__header--flex {
332
382
  .icn-btn {
333
383
  margin-right: - $sd-base-increment;
334
384
  }
335
385
  }
386
+
336
387
  .modal__header {
337
388
  .icn-btn {
338
389
  opacity: 0.3;
339
390
  transition: opacity 0.2s ease-in-out;
340
391
  }
392
+
341
393
  &:hover {
342
394
  .icn-btn {
343
395
  opacity: 0.75;
396
+
344
397
  &:hover {
345
398
  opacity: 1;
346
399
  }
347
400
  }
348
401
  }
349
402
  }
403
+
350
404
  .modal__heading {
351
405
  font-size: 18px;
352
406
  font-weight: 300;
353
407
  line-height: 27px;
354
408
  color: var(--color-text-light);
355
-
356
409
  }
357
410
 
358
411
  // Background
@@ -364,9 +417,11 @@ $modal-sizes: (
364
417
  left: 0;
365
418
  z-index: $zindexModalBackdrop;
366
419
  background-color: var(--sd-colour-bg--03);
420
+
367
421
  // Fade for backdrop
368
422
  &.fade { opacity: 0; }
369
423
  }
424
+
370
425
  .modal__backdrop,
371
426
  .modal__backdrop.fade.in {
372
427
  opacity: 0.5;
@@ -376,6 +431,7 @@ $modal-sizes: (
376
431
  .modal__header, .modal__body {
377
432
  @include sd-padding('3', 'left');
378
433
  }
434
+
379
435
  .modal__heading {
380
436
  min-width: 12rem;
381
437
  }
@@ -5,38 +5,42 @@
5
5
  padding: 5rem 0 0;
6
6
  text-align: center;
7
7
  color: var(--color-text-light);
8
- &__icon {
9
- height: 8rem;
10
- width: 8rem;
11
- display: flex;
12
- align-items: center;
13
- justify-content: center;
14
- background-color: var(--sd-item__main-Bg);
15
- border-radius: $border-radius__base--full;
16
- margin: 0 auto;
17
- box-shadow: 0 0 6px 1px hsla(0, 0%, 0%, 0.08);
18
- i {
19
- display: block;
20
- font-size: 4.8rem;
21
- line-height: 1;
22
- width: 48px;
23
- height: 48px;
24
- opacity: .6;
25
- margin: 0;
26
- padding: 0;
27
- }
8
+ }
9
+
10
+ .panel-info__icon {
11
+ height: 8rem;
12
+ width: 8rem;
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: center;
16
+ background-color: var(--sd-item__main-Bg);
17
+ border-radius: $border-radius__base--full;
18
+ margin: 0 auto;
19
+ box-shadow: 0 0 6px 1px hsla(0, 0%, 0%, 0.08);
20
+
21
+ i {
22
+ display: block;
23
+ font-size: 4.8rem;
24
+ line-height: 1;
25
+ width: 48px;
26
+ height: 48px;
27
+ opacity: .6;
28
+ margin: 0;
29
+ padding: 0;
28
30
  }
29
- &__heading {
30
- font-size: 1.8rem;
31
- font-weight: 400;
32
- text-align: center;
33
- margin: 1.2rem auto 0;
34
- line-height: 1.2;
35
- }
36
- &__description {
37
- font-size: 1.4rem;
38
- font-weight: 300;
39
- margin: 0.4rem auto 0;
40
- text-align: center;
41
- }
42
- }
31
+ }
32
+
33
+ .panel-info__heading {
34
+ font-size: 1.8rem;
35
+ font-weight: 400;
36
+ text-align: center;
37
+ margin: 1.2rem auto 0;
38
+ line-height: 1.2;
39
+ }
40
+
41
+ .panel-info__description {
42
+ font-size: 1.4rem;
43
+ font-weight: 300;
44
+ margin: 0.4rem auto 0;
45
+ text-align: center;
46
+ }
@@ -24,7 +24,6 @@
24
24
  margin: 0;
25
25
  }
26
26
 
27
-
28
27
  .sd-popover__close {
29
28
  margin-right: -4px;
30
29
  }