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.
- package/app/styles/_accessibility.scss +349 -310
- package/app/styles/_alerts.scss +102 -71
- package/app/styles/_animations.scss +29 -16
- package/app/styles/_avatar.scss +159 -140
- package/app/styles/_badge.scss +11 -5
- package/app/styles/_big-icon-font.scss +21 -9
- package/app/styles/_boxed-list.scss +72 -47
- package/app/styles/_buttons.scss +266 -177
- package/app/styles/_carousel.scss +58 -45
- package/app/styles/_content-divider.scss +28 -2
- package/app/styles/_drag-drop.scss +3 -0
- package/app/styles/_empty-states.scss +21 -13
- package/app/styles/_hamburger.scss +142 -144
- package/app/styles/_helpers.scss +297 -93
- package/app/styles/_icon-font.scss +75 -43
- package/app/styles/_icon-labels.scss +11 -1
- package/app/styles/_labels.scss +27 -14
- package/app/styles/_loaders.scss +2 -1
- package/app/styles/_master-desk.scss +67 -31
- package/app/styles/_mixins.scss +40 -20
- package/app/styles/_modals.scss +112 -56
- package/app/styles/_panel-info.scss +38 -34
- package/app/styles/_popover.scss +0 -1
- package/app/styles/_publisher-styles.scss +132 -122
- package/app/styles/_sd-tag-input.scss +104 -24
- package/app/styles/_simple-list.scss +89 -66
- package/app/styles/_spinner.scss +24 -17
- package/app/styles/_table-list.scss +114 -80
- package/app/styles/_tables.scss +14 -2
- package/app/styles/_tabs-vertical.scss +46 -43
- package/app/styles/_tabs.scss +97 -87
- package/app/styles/_tag-labels.scss +26 -11
- package/app/styles/_thumb-carousel.scss +37 -11
- package/app/styles/_toggle-box.scss +27 -7
- package/app/styles/_toggle-button.scss +5 -1
- package/app/styles/_tooltips.scss +284 -272
- package/app/styles/components/_card-item.scss +268 -192
- package/app/styles/components/_list-item.scss +261 -175
- package/app/styles/components/_sd-circular-progress.scss +109 -79
- package/app/styles/components/_sd-collapse-box.scss +45 -33
- package/app/styles/components/_sd-comment-box.scss +17 -12
- package/app/styles/components/_sd-dropzone.scss +32 -15
- package/app/styles/components/_sd-editor-popup.scss +29 -15
- package/app/styles/components/_sd-grid-item.scss +349 -237
- package/app/styles/components/_sd-loader.scss +1 -2
- package/app/styles/components/_sd-media-carousel.scss +119 -78
- package/app/styles/components/_sd-notification-panel.scss +2 -1
- package/app/styles/components/_sd-pagination.scss +27 -19
- package/app/styles/components/_sd-photo-preview.scss +82 -41
- package/app/styles/components/_sd-searchbar.scss +79 -51
- package/app/styles/components/_sd-toaster.scss +52 -30
- package/app/styles/components/_subnav.scss +230 -135
- package/app/styles/components/_theme-selector.scss +78 -53
- package/app/styles/components/sd-slider.scss +11 -7
- package/app/styles/design-tokens/_design-tokens-general.scss +31 -27
- package/app/styles/design-tokens/_new-colors.scss +3 -1
- package/app/styles/dropdowns/_basic-dropdown.scss +164 -86
- package/app/styles/dropdowns/_input-dropdown.scss +5 -2
- package/app/styles/dropdowns/_navigation_dropdown.scss +18 -4
- package/app/styles/dropdowns/_nested-dropdown.scss +11 -2
- package/app/styles/dropdowns/_other_dropdown.scss +9 -3
- package/app/styles/editor/_editor-buttons.scss +10 -6
- package/app/styles/editor/_editor-themes.scss +401 -350
- package/app/styles/form-elements/_autocomplete.scss +7 -1
- package/app/styles/form-elements/_checkbox.scss +230 -159
- package/app/styles/form-elements/_forms-general.scss +345 -285
- package/app/styles/form-elements/_input-preview.scss +15 -9
- package/app/styles/form-elements/_input-wrap.scss +77 -71
- package/app/styles/form-elements/_inputs.scss +668 -489
- package/app/styles/form-elements/_radio.scss +10 -5
- package/app/styles/form-elements/_switch.scss +27 -16
- package/app/styles/grids/_basic-grid.scss +83 -64
- package/app/styles/grids/_grid-layout.scss +301 -165
- package/app/styles/grids/_layout-grid.scss +85 -59
- package/app/styles/grids/_sd-kanban-list.scss +14 -4
- package/app/styles/interface-elements/_side-panel.scss +279 -200
- package/app/styles/layout/_basic-layout.scss +36 -34
- package/app/styles/layout/_container.scss +38 -31
- package/app/styles/layout/_editor.scss +57 -17
- package/app/styles/layout/_general.scss +81 -67
- package/app/styles/menus/_sd-bottom-tabs.scss +21 -12
- package/app/styles/menus/_sd-content-navigation.scss +20 -16
- package/app/styles/menus/_sd-left-navigation.scss +62 -49
- package/app/styles/menus/_sd-sidebar-menu.scss +365 -323
- package/app/styles/menus/_sd-top-menu.scss +16 -7
- package/app/styles/primereact/_pr-autocomplete.scss +2 -0
- package/app/styles/primereact/_pr-datepicker.scss +13 -2
- package/app/styles/primereact/_pr-dialog.scss +55 -47
- package/app/styles/primereact/_pr-dropdown.scss +27 -22
- package/app/styles/primereact/_pr-general.scss +3 -0
- package/app/styles/primereact/_pr-menu.scss +2 -1
- package/app/styles/primereact/_pr-skeleton.scss +1 -0
- package/app/styles/primereact/_pr-tag-input.scss +1 -0
- package/app/styles/variables/_colors.scss +168 -170
- package/app/styles/variables/_typography.scss +1 -2
- package/app-typescript/components/Form/InputWrapper.tsx +1 -1
- package/app-typescript/components/Menu.tsx +1 -1
- package/app-typescript/components/{TreeSelect.tsx → TreeSelect/TreeSelect.tsx} +228 -257
- package/app-typescript/components/TreeSelect/TreeSelectItem.tsx +84 -0
- package/app-typescript/components/TreeSelect/TreeSelectPill.tsx +53 -0
- package/app-typescript/index.ts +1 -1
- package/dist/examples.bundle.css +18 -16
- package/dist/examples.bundle.js +1029 -918
- package/dist/react/TreeSelect.tsx +1 -1
- package/dist/superdesk-ui.bundle.css +4265 -3552
- package/dist/superdesk-ui.bundle.js +776 -665
- package/dist/vendor.bundle.js +23 -23
- package/examples/pages/react/TreeSelect.tsx +1 -1
- package/package.json +2 -2
- package/react/components/Form/InputWrapper.d.ts +1 -1
- package/react/components/Menu.js +1 -1
- package/react/components/{TreeSelect.d.ts → TreeSelect/TreeSelect.d.ts} +2 -2
- package/react/components/{TreeSelect.js → TreeSelect/TreeSelect.js} +82 -144
- package/react/components/TreeSelect/TreeSelectItem.d.ts +20 -0
- package/react/components/TreeSelect/TreeSelectItem.js +90 -0
- package/react/components/TreeSelect/TreeSelectPill.d.ts +14 -0
- package/react/components/TreeSelect/TreeSelectPill.js +71 -0
- package/react/index.d.ts +1 -1
- package/react/index.js +1 -1
@@ -1,9 +1,5 @@
|
|
1
|
-
// WELCOME MODAL
|
2
|
-
// ------
|
3
|
-
|
4
1
|
// Modal for onboarding pages. Includes support for slider and pagination.
|
5
2
|
|
6
|
-
|
7
3
|
.sd-carousel {
|
8
4
|
position: fixed;
|
9
5
|
left: 40px;
|
@@ -48,6 +44,7 @@
|
|
48
44
|
flex-grow: 1;
|
49
45
|
|
50
46
|
}
|
47
|
+
|
51
48
|
.sd-carousel__page-header {
|
52
49
|
width: 100%;
|
53
50
|
height: 200px;
|
@@ -56,12 +53,14 @@
|
|
56
53
|
flex-grow: 0;
|
57
54
|
position: relative;
|
58
55
|
overflow: hidden;
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
56
|
+
}
|
57
|
+
|
58
|
+
.sd-carousel__page-header--color-2 {
|
59
|
+
background-color: hsl(268, 22%, 53%);
|
60
|
+
}
|
61
|
+
|
62
|
+
.sd-carousel__page-header--color-3 {
|
63
|
+
background-color: hsl(184, 42%, 60%);
|
65
64
|
}
|
66
65
|
|
67
66
|
.sd-carousel__page-header-illustration {
|
@@ -91,12 +90,14 @@
|
|
91
90
|
font-size: 1.6rem;
|
92
91
|
line-height: 140%;
|
93
92
|
font-weight: 300;
|
93
|
+
|
94
94
|
p {
|
95
95
|
margin-bottom: 1em;
|
96
96
|
&:last-child, &:only-child {
|
97
97
|
margin-bottom: 0;
|
98
98
|
}
|
99
99
|
}
|
100
|
+
|
100
101
|
h3 {
|
101
102
|
font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
|
102
103
|
font-size: 2rem;
|
@@ -104,18 +105,18 @@
|
|
104
105
|
font-weight: 700;
|
105
106
|
}
|
106
107
|
}
|
108
|
+
|
107
109
|
.sd-carousel__page-footer {
|
108
110
|
text-align: center;
|
109
111
|
padding: 0 3rem 3rem;
|
110
112
|
flex-grow: 0;
|
111
113
|
}
|
112
114
|
|
113
|
-
|
114
115
|
@mixin modalNavButton-style(
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
116
|
+
$background: var(--sd-item__main-Bg),
|
117
|
+
$background-hover: var(--sd-item__main-Bg--hover),
|
118
|
+
$background-active: var(--sd-item__main-Bg--alternate)
|
119
|
+
) {
|
119
120
|
border-radius: $border-radius__base--full;
|
120
121
|
cursor: pointer;
|
121
122
|
height: 5.6rem;
|
@@ -127,12 +128,15 @@
|
|
127
128
|
color: $sd-green;
|
128
129
|
transition: $button-transition;
|
129
130
|
background-color: $background;
|
131
|
+
|
130
132
|
&:hover {
|
131
133
|
background-color: $background-hover;
|
132
134
|
}
|
135
|
+
|
133
136
|
&:active {
|
134
137
|
background-color: $background-active;
|
135
138
|
}
|
139
|
+
|
136
140
|
&::after {
|
137
141
|
content: " ";
|
138
142
|
font-family: 'sd_icons';
|
@@ -150,35 +154,42 @@
|
|
150
154
|
|
151
155
|
.sd-carousel__nav-button {
|
152
156
|
@include modalNavButton-style;
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
157
|
+
}
|
158
|
+
|
159
|
+
.sd-carousel__nav-button--next {
|
160
|
+
right: -88px;
|
161
|
+
color: inherit;
|
162
|
+
|
163
|
+
&::after {
|
164
|
+
content: "\e643";
|
159
165
|
}
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
+
}
|
167
|
+
|
168
|
+
.sd-carousel__nav-button--prev {
|
169
|
+
left: -88px;
|
170
|
+
color: inherit;
|
171
|
+
|
172
|
+
&::after {
|
173
|
+
content: "\e642";
|
166
174
|
}
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
}
|
177
|
-
&:active {
|
178
|
-
background-color: var(--sd-colour-success--active);
|
179
|
-
}
|
175
|
+
}
|
176
|
+
|
177
|
+
.sd-carousel__nav-button--end {
|
178
|
+
right: -88px;
|
179
|
+
background-color: var(--sd-colour-success);
|
180
|
+
|
181
|
+
&::after {
|
182
|
+
content: "\e61d";
|
183
|
+
color: $white;
|
180
184
|
}
|
181
185
|
|
186
|
+
&:hover {
|
187
|
+
background-color: var(--sd-colour-success--hover);
|
188
|
+
}
|
189
|
+
|
190
|
+
&:active {
|
191
|
+
background-color: var(--sd-colour-success--active);
|
192
|
+
}
|
182
193
|
}
|
183
194
|
|
184
195
|
.sd-carousel__page-indication-bar {
|
@@ -188,6 +199,7 @@
|
|
188
199
|
text-align: center;
|
189
200
|
width: 100%;
|
190
201
|
}
|
202
|
+
|
191
203
|
.sd-carousel__page-indicator {
|
192
204
|
background-color: rgba(255,255,255,.2);
|
193
205
|
border: 1px solid rgba(0,0,0,.4);
|
@@ -198,10 +210,11 @@
|
|
198
210
|
width: 1.4rem;
|
199
211
|
margin: 0.6rem;
|
200
212
|
transition: $button-transition;
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
213
|
+
}
|
214
|
+
|
215
|
+
.sd-carousel__page-indicator--selected {
|
216
|
+
background-color: rgba(255,255,255,0.8);
|
217
|
+
border-color: rgba(0,0,0,.6);
|
205
218
|
}
|
206
219
|
|
207
220
|
.sd-carousel__backdrop {
|
@@ -212,4 +225,4 @@
|
|
212
225
|
bottom: 0;
|
213
226
|
left: 0;
|
214
227
|
right: 0;
|
215
|
-
}
|
228
|
+
}
|
@@ -30,26 +30,31 @@
|
|
30
30
|
clear: both;
|
31
31
|
width: 100%;
|
32
32
|
min-width: 100%;
|
33
|
+
|
33
34
|
&.sd-content-divider--margin-x-small {
|
34
35
|
margin: $sd-base-increment * 1 0;
|
35
36
|
}
|
37
|
+
|
36
38
|
&.sd-content-divider--margin-small {
|
37
39
|
margin: $sd-base-increment * 2 0;
|
38
40
|
}
|
41
|
+
|
39
42
|
&.sd-content-divider--margin-medium {
|
40
43
|
margin: $sd-base-increment * 3 0;
|
41
44
|
}
|
45
|
+
|
42
46
|
&.sd-content-divider--margin-large {
|
43
47
|
margin: $sd-base-increment * 4 0;
|
44
48
|
}
|
49
|
+
|
45
50
|
&.sd-content-divider--margin-none {
|
46
51
|
margin: 0 0;
|
47
52
|
}
|
48
|
-
|
49
|
-
|
50
53
|
}
|
54
|
+
|
51
55
|
&.sd-content-divider--horizontal.sd-content-divider--with-text {
|
52
56
|
margin: 1.6rem 0;
|
57
|
+
|
53
58
|
&::before, &::after {
|
54
59
|
content: "";
|
55
60
|
position: relative;
|
@@ -64,6 +69,7 @@
|
|
64
69
|
transform: translateY(50%);
|
65
70
|
border-style: inherit;
|
66
71
|
}
|
72
|
+
|
67
73
|
&.sd-content-divider--text-left {
|
68
74
|
&::before {
|
69
75
|
width: 5%;
|
@@ -72,6 +78,7 @@
|
|
72
78
|
width: 95%;
|
73
79
|
}
|
74
80
|
}
|
81
|
+
|
75
82
|
&.sd-content-divider--text-right {
|
76
83
|
&::before {
|
77
84
|
width: 95%;
|
@@ -80,18 +87,23 @@
|
|
80
87
|
width: 5%;
|
81
88
|
}
|
82
89
|
}
|
90
|
+
|
83
91
|
&.sd-content-divider--margin-x-small {
|
84
92
|
margin: $sd-base-increment * 1 0;
|
85
93
|
}
|
94
|
+
|
86
95
|
&.sd-content-divider--margin-small {
|
87
96
|
margin: $sd-base-increment * 2 0;
|
88
97
|
}
|
98
|
+
|
89
99
|
&.sd-content-divider--margin-medium {
|
90
100
|
margin: $sd-base-increment * 3 0;
|
91
101
|
}
|
102
|
+
|
92
103
|
&.sd-content-divider--margin-large {
|
93
104
|
margin: $sd-base-increment * 4 0;
|
94
105
|
}
|
106
|
+
|
95
107
|
&.sd-content-divider--margin-none {
|
96
108
|
margin: $sd-base-increment / 2 0;
|
97
109
|
}
|
@@ -108,6 +120,7 @@
|
|
108
120
|
flex-grow: 0;
|
109
121
|
align-self: stretch;
|
110
122
|
min-height: $sd-base-increment * 2;
|
123
|
+
|
111
124
|
&.sd-content-divider--with-text {
|
112
125
|
margin: 0 $sd-base-increment * 1.5;
|
113
126
|
display: flex;
|
@@ -115,9 +128,11 @@
|
|
115
128
|
justify-content: center;
|
116
129
|
align-items: center;
|
117
130
|
border-left: 0;
|
131
|
+
|
118
132
|
.sd-content-divider__inner-text {
|
119
133
|
padding: $sd-base-increment * 0.5 $sd-base-increment * 2;
|
120
134
|
}
|
135
|
+
|
121
136
|
&::before, &::after {
|
122
137
|
content: "";
|
123
138
|
background-color: transparent;
|
@@ -130,12 +145,14 @@
|
|
130
145
|
width: 1px;
|
131
146
|
border-style: solid;
|
132
147
|
}
|
148
|
+
|
133
149
|
&.sd-content-divider--dashed {
|
134
150
|
&::before, &::after {
|
135
151
|
border-left-style: dashed;
|
136
152
|
}
|
137
153
|
|
138
154
|
}
|
155
|
+
|
139
156
|
&.sd-content-divider--dotted {
|
140
157
|
&::before, &::after {
|
141
158
|
border-style: dotted;
|
@@ -143,31 +160,40 @@
|
|
143
160
|
}
|
144
161
|
}
|
145
162
|
}
|
163
|
+
|
146
164
|
&.sd-content-divider--margin-x-small {
|
147
165
|
margin: 0 $sd-base-increment * 1;
|
148
166
|
}
|
167
|
+
|
149
168
|
&.sd-content-divider--margin-small {
|
150
169
|
margin: 0 $sd-base-increment * 2;
|
151
170
|
}
|
171
|
+
|
152
172
|
&.sd-content-divider--margin-medium {
|
153
173
|
margin: 0 $sd-base-increment * 3;
|
154
174
|
}
|
175
|
+
|
155
176
|
&.sd-content-divider--margin-large {
|
156
177
|
margin: 0 $sd-base-increment * 4;
|
157
178
|
}
|
179
|
+
|
158
180
|
&.sd-content-divider--margin-none {
|
159
181
|
margin: 0 0;
|
160
182
|
}
|
161
183
|
}
|
184
|
+
|
162
185
|
&.sd-content-divider--dashed {
|
163
186
|
border-style: dashed;
|
164
187
|
}
|
188
|
+
|
165
189
|
&.sd-content-divider--dotted {
|
166
190
|
border-style: dotted;
|
167
191
|
border-color: var(--sd-colour-line--strong);
|
168
192
|
}
|
193
|
+
|
169
194
|
&.sd-content-divider--no-border {
|
170
195
|
border: 0 !important;
|
196
|
+
|
171
197
|
&::before, &::after {
|
172
198
|
border: 0 !important;
|
173
199
|
}
|
@@ -6,14 +6,17 @@
|
|
6
6
|
color: $grayText;
|
7
7
|
text-align: center;
|
8
8
|
border-radius: $border-radius__base--x-small;
|
9
|
+
|
9
10
|
i {
|
10
11
|
opacity: 0.4;
|
11
12
|
vertical-align: bottom;
|
12
13
|
margin: -4px 4px -2px 0;
|
13
14
|
}
|
15
|
+
|
14
16
|
a {
|
15
17
|
display: inline-block;
|
16
18
|
}
|
19
|
+
|
17
20
|
.basic-drag-block__text {
|
18
21
|
display: inline-block;
|
19
22
|
}
|
@@ -4,6 +4,7 @@
|
|
4
4
|
display: flex;
|
5
5
|
flex-direction: column;
|
6
6
|
}
|
7
|
+
|
7
8
|
.content-state--empty-container,
|
8
9
|
.content-state__empty-container {
|
9
10
|
position: relative;
|
@@ -11,15 +12,18 @@
|
|
11
12
|
display: flex;
|
12
13
|
flex-direction: column;
|
13
14
|
flex-grow: 1;
|
14
|
-
&--absolute {
|
15
|
-
position: absolute;
|
16
|
-
top: 0;
|
17
|
-
left: 0;
|
18
|
-
bottom: 0;
|
19
|
-
right: 0;
|
20
|
-
}
|
21
15
|
}
|
16
|
+
|
17
|
+
.content-state__empty-container--absolute {
|
18
|
+
position: absolute;
|
19
|
+
top: 0;
|
20
|
+
left: 0;
|
21
|
+
bottom: 0;
|
22
|
+
right: 0;
|
23
|
+
}
|
24
|
+
|
22
25
|
.content-state__empty-info {
|
26
|
+
@include sd-padding('2','x');
|
23
27
|
display: flex;
|
24
28
|
flex-direction: column;
|
25
29
|
align-items: center;
|
@@ -27,9 +31,10 @@
|
|
27
31
|
width: 100%;
|
28
32
|
margin: 16px auto 32px;
|
29
33
|
flex-grow: 1;
|
30
|
-
@include sd-padding('2','x');
|
31
34
|
}
|
35
|
+
|
32
36
|
.content-state__heading {
|
37
|
+
@include sd-margin('1','bottom');
|
33
38
|
font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
|
34
39
|
font-size: 1.8rem;
|
35
40
|
line-height: 1.4;
|
@@ -39,8 +44,8 @@
|
|
39
44
|
opacity: 0.75;
|
40
45
|
max-width: 30ch;
|
41
46
|
margin: 0 auto;
|
42
|
-
@include sd-margin('1','bottom');
|
43
47
|
}
|
48
|
+
|
44
49
|
.content-state__description {
|
45
50
|
text-align: center;
|
46
51
|
color: inherit;
|
@@ -51,23 +56,26 @@
|
|
51
56
|
opacity: 0.65;
|
52
57
|
margin: 0 auto;
|
53
58
|
}
|
59
|
+
|
54
60
|
.content-state__image {
|
61
|
+
@include sd-padding('1','x');
|
62
|
+
@include sd-margin('2','bottom');
|
55
63
|
display: block;
|
56
64
|
height: auto;
|
57
65
|
padding: 0;
|
58
66
|
width: 100%;
|
59
|
-
|
60
|
-
@include sd-margin('2','bottom');
|
67
|
+
|
61
68
|
img {
|
62
69
|
max-width: 100%;
|
63
70
|
width: 100%;
|
64
71
|
height: auto;
|
65
72
|
}
|
73
|
+
|
66
74
|
&.content-state__image--small {
|
67
75
|
max-width: 24rem;
|
68
76
|
}
|
77
|
+
|
69
78
|
&.content-state__image--large {
|
70
79
|
max-width: 48rem;
|
71
80
|
}
|
72
|
-
|
73
|
-
}
|
81
|
+
}
|