superdesk-ui-framework 3.0.41 → 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 +20 -7
  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 +4271 -3557
  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,15 +1,15 @@
1
1
  // Boxed lists
2
2
  // Simpler version of the list item.
3
- // ---------------------------------------------
4
3
  .boxed-list {
5
4
  display: flex;
6
5
  flex-direction: column;
7
6
  align-self: stretch;
8
7
  gap: $sd-base-increment * 1.5;
9
8
  margin-bottom: $sd-base-increment * 2;
10
- &--comfortable {
11
- gap: $sd-base-increment * 2;
12
- }
9
+ }
10
+
11
+ .boxed-list--comfortable {
12
+ gap: $sd-base-increment * 2;
13
13
  }
14
14
 
15
15
  $boxed-list-palette: $sd-basic-palette;
@@ -24,6 +24,7 @@ $boxed-list-palette: $sd-basic-palette;
24
24
  background-color: var(--sd-item__main-Bg);
25
25
  box-shadow: $shadow__base--z1;
26
26
  transition: all 0.2s ease-in-out;
27
+
27
28
  @each $name, $color in $boxed-list-palette {
28
29
  &.boxed-list__item--#{$name} {
29
30
  &::before {
@@ -39,28 +40,14 @@ $boxed-list-palette: $sd-basic-palette;
39
40
  }
40
41
  }
41
42
  }
42
- &--selected {
43
- box-shadow: var(--sd-shadow__item--selected);
44
- }
45
- &--unread {
46
- box-shadow: var(--sd-shadow__item--unread);
47
- }
48
- &--clickable {
49
- &:hover {
50
- cursor: pointer;
51
- box-shadow: $shadow__base--z3;
52
- }
53
- }
54
- &--blank {
55
- background-color: transparent !important;
56
- box-shadow: none;
57
- }
43
+
58
44
  &.boxed-list__item--selected.boxed-list__item--clickable {
59
45
  &:hover {
60
46
  box-shadow: var(--sd-shadow__item--selected);
61
47
  background-color: var(--color-selected-bg--hover) !important;
62
48
  }
63
49
  }
50
+
64
51
  &:hover {
65
52
  .boxed-list__slide-in-actions,
66
53
  .boxed-list__actions--slide-in {
@@ -70,32 +57,58 @@ $boxed-list-palette: $sd-basic-palette;
70
57
  overflow: visible;
71
58
  opacity: 1;
72
59
  transition: all ease-in 0.1s;
60
+
73
61
  .icn-btn {
74
62
  opacity: 0.4;
63
+
75
64
  &:hover {
76
65
  opacity: 1;
77
66
  }
78
67
  }
79
68
  }
80
69
  }
81
- &--disabled {
82
- pointer-events: none;
83
- opacity: 0.5;
84
- }
85
- &--comfortable {
86
- min-height: 3.2rem;
87
- @include sd-padding('1-5');
88
- }
89
- &--compact {
90
- min-height: none;
91
- padding: $sd-base-increment $sd-base-increment $sd-base-increment $sd-base-increment * 0.5;
92
- }
93
- &--loose {
94
- min-height: 4.8rem;
95
- @include sd-padding('2');
70
+ }
71
+
72
+ .boxed-list__item--selected {
73
+ box-shadow: var(--sd-shadow__item--selected);
74
+ }
75
+
76
+ .boxed-list__item--unread {
77
+ box-shadow: var(--sd-shadow__item--unread);
78
+ }
79
+
80
+ .boxed-list__item--clickable {
81
+ &:hover {
82
+ cursor: pointer;
83
+ box-shadow: $shadow__base--z3;
96
84
  }
97
85
  }
98
86
 
87
+ .boxed-list__item--blank {
88
+ background-color: transparent !important;
89
+ box-shadow: none;
90
+ }
91
+
92
+ .boxed-list__item--disabled {
93
+ pointer-events: none;
94
+ opacity: 0.5;
95
+ }
96
+
97
+ .boxed-list__item--comfortable {
98
+ min-height: 3.2rem;
99
+ @include sd-padding('1-5');
100
+ }
101
+
102
+ .boxed-list__item--compact {
103
+ min-height: none;
104
+ padding: $sd-base-increment $sd-base-increment $sd-base-increment $sd-base-increment * 0.5;
105
+ }
106
+
107
+ .boxed-list__item--loose {
108
+ min-height: 4.8rem;
109
+ @include sd-padding('2');
110
+ }
111
+
99
112
  .boxed-list__item-media {
100
113
  grid-column: mediaCol;
101
114
  grid-row: mainRow;
@@ -103,6 +116,7 @@ $boxed-list-palette: $sd-basic-palette;
103
116
  flex-direction: column;
104
117
  padding: 0 0.2rem 0 0.2rem;
105
118
  flex: 0 1 auto;
119
+
106
120
  [class^="icon-"],
107
121
  [class*="icon-"],
108
122
  [class^="big-icon--"],
@@ -110,6 +124,7 @@ $boxed-list-palette: $sd-basic-palette;
110
124
  color: var(--color-text);
111
125
  opacity: 0.5;
112
126
  }
127
+
113
128
  [class^="icon-"],
114
129
  [class*="icon-"] {
115
130
  color: var(--color-text);
@@ -129,21 +144,25 @@ $boxed-list-palette: $sd-basic-palette;
129
144
  padding: 0 0.8rem 0 0.8rem;
130
145
  overflow: hidden;
131
146
  position: relative;
132
- &--centered {
133
- align-items: center;
134
- justify-content: center;
135
- }
136
147
  }
148
+
149
+ .boxed-list__item-content--centered {
150
+ align-items: center;
151
+ justify-content: center;
152
+ }
153
+
137
154
  .boxed-list__item-content-row {
138
155
  display: flex;
139
156
  flex-direction: row;
140
157
  align-items: baseline;
141
158
  justify-content: flex-start;
142
- &--fixed {
143
- align-items: baseline;
144
- white-space: nowrap;
145
- }
146
159
  }
160
+
161
+ .boxed-list__item-content-row--fixed {
162
+ align-items: baseline;
163
+ white-space: nowrap;
164
+ }
165
+
147
166
  .boxed-list__item-footer {
148
167
  grid-column: 1/-1;
149
168
  grid-row: footerRow;
@@ -152,9 +171,10 @@ $boxed-list-palette: $sd-basic-palette;
152
171
  align-items: center;
153
172
  padding: 0.8rem 0.8rem 0 0.8rem;
154
173
  margin-top: 0.8rem;
155
- &--allign-baseline {
156
- align-items: baseline;
157
- }
174
+ }
175
+
176
+ .boxed-list__item-footer--allign-baseline {
177
+ align-items: baseline;
158
178
  }
159
179
 
160
180
  .boxed-list__item-content-row + .boxed-list__item-content-row {
@@ -171,6 +191,7 @@ $boxed-list-palette: $sd-basic-palette;
171
191
  align-items: center;
172
192
  flex-grow: 0;
173
193
  gap: 2px;
194
+
174
195
  .icn-btn {
175
196
  margin: 0 -0.6rem 0 0;
176
197
  }
@@ -185,6 +206,7 @@ $boxed-list-palette: $sd-basic-palette;
185
206
  overflow: hidden;
186
207
  opacity: 0;
187
208
  transition: all ease-in-out 0.2s;
209
+
188
210
  .icn-btn {
189
211
  flex: 0 0 auto;
190
212
  opacity: 0;
@@ -196,13 +218,16 @@ $boxed-list-palette: $sd-basic-palette;
196
218
  .boxed-list__actions--static {
197
219
  grid-column: actionsVisible;
198
220
  grid-row: mainRow;
221
+
199
222
  .icn-btn {
200
223
  opacity: 0.4;
224
+
201
225
  &:hover {
202
226
  opacity: 1;
203
227
  }
204
228
  }
205
229
  }
230
+
206
231
  .boxed-list__item {
207
232
  &.boxed-list__item--align-center {
208
233
  .boxed-list__item-content {
@@ -210,4 +235,4 @@ $boxed-list-palette: $sd-basic-palette;
210
235
  }
211
236
 
212
237
  }
213
- }
238
+ }