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
@@ -32,31 +32,37 @@ $toast-sizes: (
32
32
  overflow: hidden;
33
33
  padding: 0 20px 20px;
34
34
  pointer-events: none;
35
+
35
36
  &.sd-toast__container--top {
36
37
  top: $sd-toast-position-top;
37
38
  bottom: auto;
38
39
  }
40
+
39
41
  &.sd-toast__container--top-left {
40
42
  top: $sd-toast-position-top;
41
43
  bottom: auto;
42
44
  align-items: flex-start;
43
45
  }
46
+
44
47
  &.sd-toast__container--top-right {
45
48
  top: $sd-toast-position-top;
46
49
  bottom: auto;
47
50
  align-items: flex-end;
48
51
  }
52
+
49
53
  &.sd-toast__container--bottom {
50
54
  flex-direction: column-reverse;
51
55
  top: auto;
52
56
  bottom: 0;
53
57
  }
58
+
54
59
  &.sd-toast__container--bottom-left {
55
60
  flex-direction: column-reverse;
56
61
  top: auto;
57
62
  bottom: 0;
58
63
  align-items: flex-start;
59
64
  }
65
+
60
66
  &.sd-toast__container--bottom-right {
61
67
  flex-direction: column-reverse;
62
68
  top: auto;
@@ -64,37 +70,26 @@ $toast-sizes: (
64
70
  align-items: flex-end;
65
71
  }
66
72
  }
73
+
67
74
  .sd-toast {
75
+ @include sd-padding('1-5');
68
76
  display: flex;
69
77
  align-items: flex-start;
70
78
  position: relative!important;
71
79
  margin: 2rem 0 0;
72
- @include sd-padding('1-5');
73
80
  border-radius: $border-radius__base--medium;
74
81
  overflow: hidden;
75
82
  box-shadow: $sd-toast-shadow;
76
83
  background-color: $sd-toast-colour-bg;
77
84
  min-width: $sd-toast-min-width;
78
85
  max-width: $sd-toast-max-width;
79
- pointer-events: all;
80
- &--appear,
81
- &--enter {
82
- transform: translateY(-40px);
83
- height: 0px;
84
- }
85
- &--appear-active,
86
- &--enter-active {
87
- transform: translateY(0);
88
- transition-property: transform, height;
89
- transition-duration:.3s;
90
- transition-timing-function: cubic-bezier(.54, 1.12, .38, 1.11);
91
- transition-delay: 0;
92
- -webkit-transition-delay: 0;
93
- }
86
+ pointer-events: all;
87
+
94
88
  &.sd-toast--appear ~ .sd-toast,
95
89
  &.sd-toast--enter ~ .sd-toast {
96
90
  transform: translateY(-40px);
97
91
  }
92
+
98
93
  .sd-toast__icon {
99
94
  [class^="icon-"] {
100
95
  color: inherit;
@@ -102,22 +97,11 @@ $toast-sizes: (
102
97
  margin: 0.6rem 0.4rem 0.6rem 0.6rem;
103
98
  }
104
99
  }
105
- &--exit {
106
- opacity: 1;
107
- -webkit-filter: blur(0);
108
- filter: blur(0);
109
- }
110
- &--exit-active {
111
- opacity: 0;
112
- filter: blur(10px);
113
- transition-property: opacity, filter;
114
- transition-duration: .3s;
115
- transition-timing-function: cubic-bezier(.4, 1, .75, .9);
116
- transition-delay: 0;
117
- }
100
+
118
101
  &.sd-toast--exit ~ .sd-toast {
119
102
  transform: translateY(0);
120
103
  }
104
+
121
105
  &.sd-toast--exit-active ~ .sd-toast {
122
106
  transform: translateY(-40px);
123
107
  transition-property: transform;
@@ -137,6 +121,7 @@ $toast-sizes: (
137
121
  left: 0px;
138
122
  background-color: $color;
139
123
  }
124
+
140
125
  .sd-toast__icon {
141
126
  color: $color;
142
127
  }
@@ -149,27 +134,61 @@ $toast-sizes: (
149
134
  }
150
135
  }
151
136
 
137
+ .sd-toast--appear,
138
+ .sd-toast--enter {
139
+ transform: translateY(-40px);
140
+ height: 0px;
141
+ }
142
+
143
+ .sd-toast--appear-active,
144
+ .sd-toast--enter-active {
145
+ transform: translateY(0);
146
+ transition-property: transform, height;
147
+ transition-duration:.3s;
148
+ transition-timing-function: cubic-bezier(.54, 1.12, .38, 1.11);
149
+ transition-delay: 0;
150
+ -webkit-transition-delay: 0;
151
+ }
152
+
153
+ .sd-toast--exit {
154
+ opacity: 1;
155
+ -webkit-filter: blur(0);
156
+ filter: blur(0);
157
+ }
158
+
159
+ .sd-toast--exit-active {
160
+ opacity: 0;
161
+ filter: blur(10px);
162
+ transition-property: opacity, filter;
163
+ transition-duration: .3s;
164
+ transition-timing-function: cubic-bezier(.4, 1, .75, .9);
165
+ transition-delay: 0;
166
+ }
167
+
152
168
  .sd-toast__message {
153
169
  flex: 1 1 auto;
154
170
  padding: 0.4rem 1.2rem 0.4rem 1.2rem;
155
171
  font-size: 1.4rem;
156
172
  line-height: 150%;
157
173
  color: $sd-toast-colour-text;
174
+
158
175
  p + p {
159
176
  margin-top: 0.8rem;
160
-
161
177
  }
162
178
  }
179
+
163
180
  .sd-toast__message-header {
164
181
  display: flex;
165
182
  flex-direction: row;
166
183
  margin-bottom: 0.2rem;
167
184
  color: $sd-text;
185
+
168
186
  time {
169
187
  font-size: 1.2rem;
170
188
  color: $sd-toast-colour-text;
171
189
  margin-right: 0.2rem;
172
190
  }
191
+
173
192
  .sd-toast__heading {
174
193
  flex-grow: 1;
175
194
  }
@@ -179,14 +198,17 @@ $toast-sizes: (
179
198
  font-size: inherit;
180
199
  font-weight: 600;
181
200
  }
201
+
182
202
  .sd-toast__actions {
183
203
  flex: 0 0 auto;
184
204
  opacity: 0.4;
185
205
  margin: -0.2rem -0.4rem 0 0;
186
206
  }
207
+
187
208
  .sd-toast__icon {
188
209
  flex: 0 0 auto;
189
210
  }
211
+
190
212
  .sd-toast__avatar {
191
213
  flex: 0 0 auto;
192
214
  margin: 0.6rem 0.4rem 0.6rem 0.6rem;