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,3 @@
1
-
2
-
3
1
  // Dashboard content header
4
2
 
5
3
  .dashboard-content-header {
@@ -10,60 +8,67 @@
10
8
  .big-number-block {
11
9
  display: flex;
12
10
  color: $grayNeutral;
11
+ }
13
12
 
14
- &__number {
15
- font-size: 3.6rem;
16
- font-weight: 300;
17
- line-height: 100%;
18
- letter-spacing: -.02em;
19
- }
20
- &__text {
21
- margin: 0 1rem;
22
- line-height: 120%;
23
- font-weight: 300;
24
- }
13
+ .big-number-block__number {
14
+ font-size: 3.6rem;
15
+ font-weight: 300;
16
+ line-height: 100%;
17
+ letter-spacing: -.02em;
18
+ }
25
19
 
26
- &--grow {
27
- flex-grow: 1;
28
- }
29
- &--center {
30
- align-items: center;
31
- }
20
+ .big-number-block__text {
21
+ margin: 0 1rem;
22
+ line-height: 120%;
23
+ font-weight: 300;
24
+ }
25
+
26
+ .big-number-block--grow {
27
+ flex-grow: 1;
28
+ }
29
+
30
+ .big-number-block--center {
31
+ align-items: center;
32
32
  }
33
33
 
34
34
  .dashboard-thumbnail-block {
35
35
  display: flex;
36
+ }
36
37
 
37
- &__image {
38
- border: 1px solid #d6d6d6;
39
- }
40
- &__meta {
41
- padding: 0 1rem;
42
- display: flex;
43
- flex-direction: column;
44
- }
45
- &__label {
46
- font-size: 1.2rem;
47
- color: $grayLight;
48
- }
49
- &__heading {
50
- display: flex;
51
- font-weight: 700;
52
- padding: .3rem 0;
38
+ .dashboard-thumbnail-block__image {
39
+ border: 1px solid #d6d6d6;
40
+ }
53
41
 
54
- i {
55
- margin-right: .5rem;
56
- }
42
+ .dashboard-thumbnail-block__meta {
43
+ padding: 0 1rem;
44
+ display: flex;
45
+ flex-direction: column;
46
+ }
47
+
48
+ .dashboard-thumbnail-block__label {
49
+ font-size: 1.2rem;
50
+ color: $grayLight;
51
+ }
52
+
53
+ .dashboard-thumbnail-block__heading {
54
+ display: flex;
55
+ font-weight: 700;
56
+ padding: .3rem 0;
57
+
58
+ i {
59
+ margin-right: .5rem;
57
60
  }
58
- &__link {
59
- color: $sd-colour-interactive;
61
+ }
62
+
63
+ .dashboard-thumbnail-block__link {
64
+ color: $sd-colour-interactive;
65
+ text-decoration: none;
66
+ border-bottom: 1px dotted $sd-colour-interactive;
67
+
68
+ &:hover {
69
+ border-bottom: 1px solid $sd-colour-interactive;
60
70
  text-decoration: none;
61
- border-bottom: 1px dotted $sd-colour-interactive;
62
- &:hover {
63
- border-bottom: 1px solid $sd-colour-interactive;
64
- text-decoration: none;
65
- color: $sd-colour-interactive;
66
- }
71
+ color: $sd-colour-interactive;
67
72
  }
68
73
  }
69
74
 
@@ -72,111 +77,116 @@
72
77
  border-right: 0;
73
78
  border-left: 2px solid rgba(0, 0, 0, 0.4);
74
79
  }
80
+
75
81
  .panel-border-right {
76
82
  border-left: 0;
77
83
  border-right: 2px solid rgba(0, 0, 0, 0.4);
78
84
  }
79
85
 
80
86
  // Overlay block
81
-
82
87
  .sd-overlay-block {
83
88
  position: relative;
89
+
90
+ .sd-overlay-block__overlay-message {
91
+ display: none;
92
+ margin-top: 1rem;
93
+ color: $grayText;
94
+ }
84
95
 
85
96
  img {
86
97
  width: 100%;
87
98
  }
88
-
89
- &__overlay {
90
- position: absolute;
91
- top: 0;
92
- right: 0;
93
- bottom: 0;
94
- left: 0;
95
- display: flex;
96
- flex-direction: column;
97
- align-items: center;
98
- justify-content: space-between;
99
- background-color: rgba(0, 0, 0, 0.5);
100
- transition: 0.2s linear opacity;
101
- opacity: 0;
102
- color: #fff;
103
- }
104
99
 
105
100
  &:hover {
106
101
  .sd-overlay-block__overlay {
107
102
  opacity: 1;
108
103
  }
109
104
  }
105
+ }
110
106
 
111
- &__overlay-action-group {
112
- display: flex;
113
- flex-direction: row;
114
- align-items: center;
115
- justify-content: center;
116
- flex-grow: 1;
117
- }
107
+ .sd-overlay-block__overlay {
108
+ position: absolute;
109
+ top: 0;
110
+ right: 0;
111
+ bottom: 0;
112
+ left: 0;
113
+ display: flex;
114
+ flex-direction: column;
115
+ align-items: center;
116
+ justify-content: space-between;
117
+ background-color: rgba(0, 0, 0, 0.5);
118
+ transition: 0.2s linear opacity;
119
+ opacity: 0;
120
+ color: #fff;
121
+ }
122
+
123
+ .sd-overlay-block__overlay-action-group {
124
+ display: flex;
125
+ flex-direction: row;
126
+ align-items: center;
127
+ justify-content: center;
128
+ flex-grow: 1;
129
+ }
118
130
 
119
- &__overlay-action {
120
- flex-grow: 0;
121
- flex-shrink: 0;
131
+ .sd-overlay-block__overlay-action {
132
+ flex-grow: 0;
133
+ flex-shrink: 0;
134
+ color: #fff;
135
+ width: 5.6rem;
136
+ height: 5.6rem;
137
+ border: 2px solid rgba(255, 255, 255, 0.5);
138
+ border-radius: $border-radius__base--full;
139
+ display: flex;
140
+ flex-direction: column;
141
+ align-items: center;
142
+ justify-content: center;
143
+ transition: 0.2s linear all;
144
+ cursor: pointer;
145
+ text-decoration: none;
146
+ background-color: transparent;
147
+
148
+ i {
122
149
  color: #fff;
123
- width: 5.6rem;
124
- height: 5.6rem;
125
- border: 2px solid rgba(255, 255, 255, 0.5);
126
- border-radius: $border-radius__base--full;
127
- display: flex;
128
- flex-direction: column;
129
- align-items: center;
130
- justify-content: center;
150
+ height: 2.4rem;
151
+ width: 2.4rem;
152
+ font-size: 2.4rem;
153
+ line-height: 1;
154
+ opacity: 0.5;
131
155
  transition: 0.2s linear all;
132
- cursor: pointer;
156
+ }
157
+
158
+ &:hover {
159
+ border-color: white;
160
+ background-color: rgba(0, 0, 0, 0.4);
133
161
  text-decoration: none;
134
- background-color: transparent;
135
-
162
+
136
163
  i {
137
- color: #fff;
138
- height: 2.4rem;
139
- width: 2.4rem;
140
- font-size: 2.4rem;
141
- line-height: 1;
142
- opacity: 0.5;
143
- transition: 0.2s linear all;
164
+ opacity: 1;
144
165
  }
166
+ }
145
167
 
146
- &:hover {
147
- border-color: white;
148
- background-color: rgba(0, 0, 0, 0.4);
149
- text-decoration: none;
150
-
151
- i {
152
- opacity: 1;
153
- }
154
- }
155
- + .sd-overlay-block__overlay-action {
156
- margin-left: 2rem;
157
- }
168
+ + .sd-overlay-block__overlay-action {
169
+ margin-left: 2rem;
158
170
  }
159
- .sd-overlay-block__overlay-message {
171
+ }
172
+
173
+ .sd-overlay-block--no-image {
174
+ height: 160px;
175
+ border: 2px dashed $grayDark;
176
+
177
+ img {
160
178
  display: none;
161
- margin-top: 1rem;
162
- color: $grayText;
163
179
  }
164
180
 
165
- &--no-image {
166
- height: 160px;
167
- border: 2px dashed $grayDark;
181
+ .sd-overlay-block__overlay {
182
+ opacity: 1;
183
+ }
168
184
 
169
- .sd-overlay-block__overlay {
170
- opacity: 1;
171
- }
172
- img {
173
- display: none;
174
- }
175
- .sd-overlay-block__overlay-action-group {
176
- flex-direction: column;
177
- }
178
- .sd-overlay-block__overlay-message {
179
- display: block;
180
- }
185
+ .sd-overlay-block__overlay-action-group {
186
+ flex-direction: column;
181
187
  }
182
- }
188
+
189
+ .sd-overlay-block__overlay-message {
190
+ display: block;
191
+ }
192
+ }