superdesk-ui-framework 3.0.42 → 3.0.43

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 (104) 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/dist/examples.bundle.css +18 -16
  99. package/dist/examples.bundle.js +5 -7
  100. package/dist/superdesk-ui.bundle.css +4265 -3552
  101. package/dist/superdesk-ui.bundle.js +4 -6
  102. package/package.json +2 -2
  103. package/react/components/Form/InputWrapper.d.ts +1 -1
  104. package/react/components/Menu.js +1 -1
@@ -1,6 +1,5 @@
1
1
  // ICON FONT
2
2
  // Glyphs and icons for buttons, nav, and more
3
- // -------------------------------------------
4
3
 
5
4
  // All icons receive the styles of the <i> tag with a base class
6
5
  // of .i and are then given a unique class to add width, height,
@@ -62,33 +61,42 @@ $icon-base-size: 16px;
62
61
  .icon--light {
63
62
  opacity: 0.5;
64
63
  }
64
+
65
65
  .icon--blue {
66
66
  color: $sd-colour-interactive !important;
67
67
  }
68
+
68
69
  .icon--white {
69
70
  color: $white !important;
70
71
  }
72
+
71
73
  .icon--light-blue {
72
74
  color: #68abc8 !important;
73
75
  opacity: 1 !important;
74
76
  }
77
+
75
78
  .icon--dark-blue-grey {
76
79
  color: #31728e !important;
77
80
  opacity: 1 !important;
78
81
  }
82
+
79
83
  [class*=icon-].red,
80
84
  .icon--red {
81
85
  color: $fireBrick !important;
82
86
  }
87
+
83
88
  .icon--orange {
84
89
  color: $orange !important;
85
90
  }
91
+
86
92
  .icon--green {
87
93
  color: $green !important;
88
94
  }
95
+
89
96
  .icon--full-opacity {
90
97
  opacity: 1 !important;
91
98
  }
99
+
92
100
  .icon--disabled {
93
101
  opacity: 0.2 !important;
94
102
  }
@@ -295,34 +303,44 @@ $sd-icon-font: (
295
303
  &.icon-#{$name}:before {
296
304
  content: $value;
297
305
  }
306
+
298
307
  .icon-#{$name} {
299
308
  @if $name == descending {
300
309
  transform: rotate(180deg);
301
310
  }
311
+
302
312
  @if $name == dots-vertical {
303
313
  transform: rotate(90deg);
304
314
  }
315
+
305
316
  &.color--default {
306
317
  color: $icon-color;
307
318
  }
319
+
308
320
  &.color--primary {
309
321
  color: var(--sd-colour-primary) !important;
310
322
  }
323
+
311
324
  &.color--success {
312
325
  color: var(--sd-colour-success) !important;
313
326
  }
327
+
314
328
  &.color--warning {
315
329
  color: var(--sd-colour-warning) !important;
316
330
  }
331
+
317
332
  &.color--alert {
318
333
  color: var(--sd-colour-alert) !important;
319
334
  }
335
+
320
336
  &.color--highlight {
321
337
  color: var(--sd-colour-highlight) !important;
322
338
  }
339
+
323
340
  &.color--light {
324
341
  color: var(--color-text-lighter) !important;
325
342
  }
343
+
326
344
  &.color--white {
327
345
  color: hsla(214, 13%, 90, 1) !important;
328
346
  }
@@ -330,16 +348,18 @@ $sd-icon-font: (
330
348
  &.scale--1\.5x {
331
349
  --icon-base-size: 24px
332
350
  }
351
+
333
352
  &.scale--2x {
334
353
  --icon-base-size: 32px
335
354
  }
355
+
336
356
  &.scale--3x {
337
357
  --icon-base-size: 48px
338
358
  }
359
+
339
360
  &.scale--4x {
340
361
  --icon-base-size: 64px
341
362
  }
342
-
343
363
  }
344
364
  }
345
365
 
@@ -353,9 +373,11 @@ $sd-icon-font: (
353
373
  display: inline-flex !important;
354
374
  font-size: $icon-base-size;
355
375
  height: $icon-base-size;
376
+
356
377
  .icn-mix__icn {
357
378
  opacity: 0.6;
358
379
  }
380
+
359
381
  .icn-mix__sub-icn {
360
382
  position:absolute;
361
383
  font-size: 1.1rem;
@@ -372,21 +394,24 @@ $sd-icon-font: (
372
394
  z-index: 1;
373
395
  opacity: 1 !important;
374
396
  }
375
- &--2x {
376
- font-size: $icon-base-size *2;
397
+ }
398
+
399
+ .icn-mix--2x {
400
+ font-size: $icon-base-size *2;
401
+ height: $icon-base-size *2;
402
+
403
+ .icn-mix__icn {
404
+ opacity: 0.6;
405
+ width: $icon-base-size *2;
377
406
  height: $icon-base-size *2;
378
- .icn-mix__icn {
379
- opacity: 0.6;
380
- width: $icon-base-size *2;
381
- height: $icon-base-size *2;
382
- line-height: $icon-base-size *2;
383
- font-size: $icon-base-size *2;
384
- }
385
- .icn-mix__sub-icn {
386
- font-size: 1.6rem;
387
- inset-inline-end: -0.6rem;
388
- inset-block-end: -0.3rem;
389
- }
407
+ line-height: $icon-base-size *2;
408
+ font-size: $icon-base-size *2;
409
+ }
410
+
411
+ .icn-mix__sub-icn {
412
+ font-size: 1.6rem;
413
+ inset-inline-end: -0.6rem;
414
+ inset-block-end: -0.3rem;
390
415
  }
391
416
  }
392
417
 
@@ -394,6 +419,7 @@ $sd-icon-font: (
394
419
  display: inline-block;
395
420
  height: 3.2rem;
396
421
  width: 3.2rem;
422
+
397
423
  [class^="icon-"],
398
424
  [class*=" icon-"] {
399
425
  width: 32px;
@@ -401,11 +427,12 @@ $sd-icon-font: (
401
427
  line-height: 32px;
402
428
  font-size: 32px;
403
429
  }
404
- &--light {
405
- [class^="icon-"],
406
- [class*=" icon-"] {
407
- opacity: 0.5;
408
- }
430
+ }
431
+
432
+ .double-size-icn--light {
433
+ [class^="icon-"],
434
+ [class*=" icon-"] {
435
+ opacity: 0.5;
409
436
  }
410
437
  }
411
438
 
@@ -413,20 +440,23 @@ $sd-icon-font: (
413
440
  .icn-mix__sub-icn {
414
441
  background-color: $subnav-background !important;
415
442
  }
416
- &--darker {
417
- .icn-mix__sub-icn {
418
- background-color: $subnav-background-darker !important;
419
- }
443
+ }
444
+
445
+ .subnav--darker {
446
+ .icn-mix__sub-icn {
447
+ background-color: $subnav-background-darker !important;
420
448
  }
421
- &--dark-blue-grey {
422
- .icn-mix__sub-icn {
423
- background-color: $subnav-background-dark-blue-grey !important;
424
- color: scale-color($purple, $lightness: 50%);
425
- }
426
- .icn-mix__icn {
427
- color: inherit;
428
- opacity: 1;
429
- }
449
+ }
450
+
451
+ .subnav--dark-blue-grey {
452
+ .icn-mix__sub-icn {
453
+ background-color: $subnav-background-dark-blue-grey !important;
454
+ color: scale-color($purple, $lightness: 50%);
455
+ }
456
+
457
+ .icn-mix__icn {
458
+ color: inherit;
459
+ opacity: 1;
430
460
  }
431
461
  }
432
462
 
@@ -434,14 +464,16 @@ $sd-icon-font: (
434
464
  .icn-mix__sub-icn {
435
465
  background-color: #f0f0f0;
436
466
  }
437
- &--dark-blue-grey {
438
- .icn-mix__sub-icn {
439
- background-color: $subnav-background-dark-blue-grey;
440
- color: scale-color($purple, $lightness: 50%);
441
- }
442
- .icn-mix__icn {
443
- color: inherit;
444
- opacity: 1;
445
- }
467
+ }
468
+
469
+ .side-panel__top-tools--dark-blue-grey {
470
+ .icn-mix__sub-icn {
471
+ background-color: $subnav-background-dark-blue-grey;
472
+ color: scale-color($purple, $lightness: 50%);
473
+ }
474
+
475
+ .icn-mix__icn {
476
+ color: inherit;
477
+ opacity: 1;
446
478
  }
447
479
  }
@@ -35,6 +35,7 @@ $icon-size--small: 1.2rem;
35
35
  white-space: nowrap;
36
36
  cursor: default;
37
37
  line-height: 1;
38
+
38
39
  [class^="icon-"], & [class*=" icon-"] {
39
40
  color: $label-icon-color;
40
41
  margin-inline-end: .4rem;
@@ -49,6 +50,7 @@ $icon-size--small: 1.2rem;
49
50
  border-radius: $border-radius__base--full;
50
51
  padding-inline: 1.2rem;
51
52
  gap: 4px;
53
+
52
54
  [class^="icon-"], & [class*=" icon-"] {
53
55
  margin-inline-end: .2rem;
54
56
  margin-inline-start: -4px;
@@ -59,26 +61,29 @@ $icon-size--small: 1.2rem;
59
61
 
60
62
  .label-icon {
61
63
  @include label-icon;
62
-
63
64
  background: $label-icon-background;
64
65
  color: $label-icon-color;
65
66
 
66
67
  @each $name, $color in $label-icon-palette {
67
68
  &.label-icon--#{$name} {
68
69
  color: $color;
70
+
69
71
  [class^="icon-"], & [class*=" icon-"] {
70
72
  color: $color !important;
71
73
  }
72
74
  }
73
75
  }
76
+
74
77
  &.label-icon--translucent {
75
78
  @include label-icon-translucent;
76
79
  background-color: $label-icon-background-translucent;
80
+
77
81
  @each $name, $color in $label-icon-palette {
78
82
  &.label-icon--#{$name} {
79
83
  background-color: scale-color($color, $alpha: -88%);
80
84
  }
81
85
  }
86
+
82
87
  &.label-icon--large {
83
88
  [class^="icon-"], & [class*=" icon-"] {
84
89
  margin-inline-start: -4px;
@@ -88,6 +93,7 @@ $icon-size--small: 1.2rem;
88
93
  line-height: 1;
89
94
  }
90
95
  }
96
+
91
97
  &.label-icon--small {
92
98
  [class^="icon-"], & [class*=" icon-"] {
93
99
  margin-inline-start: -3px;
@@ -98,6 +104,7 @@ $icon-size--small: 1.2rem;
98
104
  }
99
105
  }
100
106
  }
107
+
101
108
  &.label-icon--large {
102
109
  height: $sd-base-increment * 4;
103
110
  padding: 0 $sd-base-increment * 2;
@@ -105,6 +112,7 @@ $icon-size--small: 1.2rem;
105
112
  font-weight: 500;
106
113
  line-height: inherit;
107
114
  }
115
+
108
116
  &.label-icon--small{
109
117
  height: $sd-base-increment * 2;
110
118
  padding: 0 $sd-base-increment * 1;
@@ -113,11 +121,13 @@ $icon-size--small: 1.2rem;
113
121
  line-height: inherit;
114
122
  letter-spacing: 0.06em;
115
123
  gap: 2px;
124
+
116
125
  .label-icon--inner-label {
117
126
  font-weight: 400;
118
127
  letter-spacing: 0.06em;
119
128
  }
120
129
  }
130
+
121
131
  .label-icon--inner-label {
122
132
  font-weight: 300;
123
133
  text-transform: uppercase;
@@ -18,6 +18,7 @@ $font-size__label--large: 1.2rem;
18
18
  background-color: transparent !important;
19
19
  color: $color;
20
20
  }
21
+
21
22
  @mixin label-translucent-style($color: $label-color-alt) {
22
23
  background-color: $label-background-translucent;
23
24
  color: $color;
@@ -42,6 +43,7 @@ $font-size__label--large: 1.2rem;
42
43
  white-space: nowrap;
43
44
  border: 1px solid transparent;
44
45
  font-weight: 500;
46
+
45
47
  &--large {
46
48
  padding-block-start: $padding-y__label--large;
47
49
  padding-block-end: $padding-y__label--large;
@@ -73,8 +75,9 @@ $font-size__label--large: 1.2rem;
73
75
  white-space: nowrap;
74
76
  color: var(--color-text--inverse);
75
77
  background-color: var(--sd-lbl-bg);
78
+
76
79
  [class^="icon-"], [class*=" icon-"] {
77
- color: currentColor;
80
+ color: currentColor;
78
81
  }
79
82
  }
80
83
 
@@ -82,21 +85,26 @@ $font-size__label--large: 1.2rem;
82
85
  @include label;
83
86
  background: $label-background;
84
87
  color: $label-color;
88
+
85
89
  @each $name, $color in $label-palette {
86
90
  &.label--#{$name} {
87
91
  background: $color;
88
92
  }
89
93
  }
94
+
90
95
  &.label--hollow {
91
96
  @include label-hollow-style;
97
+
92
98
  @each $name, $color in $label-palette {
93
99
  &.label--#{$name} {
94
100
  @include label-hollow-style($color);
95
101
  }
96
102
  }
97
103
  }
104
+
98
105
  &.label--translucent {
99
106
  @include label-translucent-style;
107
+
100
108
  @each $name, $color in $label-palette {
101
109
  &.label--#{$name} {
102
110
  @include label-translucent-style($color);
@@ -104,18 +112,21 @@ $font-size__label--large: 1.2rem;
104
112
  }
105
113
  }
106
114
  }
107
- &--annotation {
108
- background-color: $annotation-color;
109
- color: $grayMedium;
110
- }
111
- &--comment {
112
- background-color: $comment-color;
113
- color: $grayMedium;
114
- }
115
- &--no-transform {
116
- text-transform: none;
117
- letter-spacing: 0.04em;
118
- }
115
+ }
116
+
117
+ .label--annotation {
118
+ background-color: $annotation-color;
119
+ color: $grayMedium;
120
+ }
121
+
122
+ .label--comment {
123
+ background-color: $comment-color;
124
+ color: $grayMedium;
125
+ }
126
+
127
+ .label--no-transform {
128
+ text-transform: none;
129
+ letter-spacing: 0.04em;
119
130
  }
120
131
 
121
132
  // link label
@@ -144,6 +155,7 @@ a.label {
144
155
  font-variant: normal;
145
156
  text-transform: none;
146
157
  }
158
+
147
159
  &:hover, &:focus {
148
160
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
149
161
  }
@@ -153,6 +165,7 @@ a.label {
153
165
  border: 1px solid var(--sd-navy-color);
154
166
  color: var(--sd-navy-color);
155
167
  }
168
+
156
169
  .label.label--darkBlue2 {
157
170
  background: var(--sd-navy-color);
158
- }
171
+ }
@@ -13,6 +13,7 @@
13
13
  pointer-events: none;
14
14
  border-radius: var(--b-radius--medium);
15
15
  }
16
+
16
17
  .sd-loading-overlay--plain {
17
18
  position: absolute;
18
19
  top: 0;
@@ -25,4 +26,4 @@
25
26
  justify-content: center;
26
27
  background-color: var(--sd-colour-overlay-actioning);
27
28
  pointer-events: none;
28
- }
29
+ }