@sb1/ffe-file-upload 6.0.12 → 7.0.0
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/CHANGELOG.md +16 -0
- package/less/file-upload.less +0 -100
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [7.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.12...@sb1/ffe-file-upload@7.0.0) (2022-02-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ffe-file-upload:** fjern upload knapp styling ([3374c48](https://github.com/SpareBank1/designsystem/commit/3374c482e9b9820040c26ffc92cbdd7ca9f71d1b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **ffe-file-upload:** fjerner styling for upload knapp som nå bare er en secondary button
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [6.0.12](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.11...@sb1/ffe-file-upload@6.0.12) (2021-11-30)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @sb1/ffe-file-upload
|
package/less/file-upload.less
CHANGED
|
@@ -148,106 +148,6 @@
|
|
|
148
148
|
margin-top: @ffe-spacing-xs;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
&__upload-button {
|
|
152
|
-
margin-top: 35px;
|
|
153
|
-
cursor: pointer;
|
|
154
|
-
background-color: @ffe-farge-hvit;
|
|
155
|
-
border: solid 2px @ffe-farge-vann;
|
|
156
|
-
border-radius: 1.375rem;
|
|
157
|
-
line-height: 1.5rem;
|
|
158
|
-
outline: none;
|
|
159
|
-
overflow: hidden;
|
|
160
|
-
padding: @ffe-spacing-xs @ffe-spacing-sm;
|
|
161
|
-
text-decoration: none;
|
|
162
|
-
white-space: nowrap;
|
|
163
|
-
vertical-align: middle;
|
|
164
|
-
width: 240px;
|
|
165
|
-
color: @ffe-farge-vann;
|
|
166
|
-
transition: all @ffe-transition-duration @ffe-ease;
|
|
167
|
-
.native & {
|
|
168
|
-
@media (prefers-color-scheme: dark) {
|
|
169
|
-
color: @ffe-farge-vann-30;
|
|
170
|
-
background-color: transparent;
|
|
171
|
-
border-color: @ffe-farge-vann-70;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
@media (min-width: @breakpoint-md) {
|
|
176
|
-
margin-top: @ffe-spacing-xs;
|
|
177
|
-
width: 150px;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
&:hover {
|
|
181
|
-
background-color: @ffe-farge-vann-30-hover;
|
|
182
|
-
border-color: @ffe-farge-fjell;
|
|
183
|
-
color: @ffe-farge-fjell;
|
|
184
|
-
.native & {
|
|
185
|
-
@media (prefers-color-scheme: dark) {
|
|
186
|
-
border-color: @ffe-farge-vann-30;
|
|
187
|
-
color: @ffe-farge-hvit;
|
|
188
|
-
background-color: @ffe-farge-natt;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
&:active {
|
|
194
|
-
transform: scale(0.97);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
&:focus {
|
|
198
|
-
box-shadow: 0 0 0 3px @ffe-farge-frost-30, 0 0 0 5px @ffe-farge-vann;
|
|
199
|
-
.native & {
|
|
200
|
-
@media (prefers-color-scheme: dark) {
|
|
201
|
-
box-shadow: 0 0 0 3px @ffe-farge-svart,
|
|
202
|
-
0 0 0 5px @ffe-farge-hvit;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
&:focus:not(:focus-visible) {
|
|
208
|
-
box-shadow: none;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
&[aria-invalid='true'] {
|
|
212
|
-
border: solid 2px @ffe-farge-baer-wcag;
|
|
213
|
-
.native & {
|
|
214
|
-
@media (prefers-color-scheme: dark) {
|
|
215
|
-
border-color: @ffe-farge-baer;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
&__upload-button-icon {
|
|
222
|
-
display: inline-block;
|
|
223
|
-
position: relative;
|
|
224
|
-
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23005aa4' width='18' height='18' viewBox='0 0 200 200'%3E%3Cpath d='M200 174.9v-51.2c0-3.6-2.9-6.8-6.8-6.8H190c-3.6 0-6.8 2.9-6.8 6.8v47.8H16.8v-48.1c0-3.6-2.9-6.8-6.8-6.8H6.8c-3.6 0-6.8 2.9-6.8 6.8v51.2c0 7.8 6.3 13.8 13.9 13.8h173c7.5.1 13.6-6.2 13.1-13.5z'/%3E%3Cpath d='M103.3 13.5c-2.7-2.7-7-2.7-9.7 0L73.1 33.9c-4.4 4.4-1.2 11.7 4.9 11.7h12.2v81.8c0 3.6 2.9 6.8 6.8 6.8h3.2c3.6 0 6.8-2.9 6.8-6.8V45.6h11.9c6.1 0 9.2-7.3 4.9-11.7l-20.5-20.4z'/%3E%3C/svg%3E")
|
|
225
|
-
no-repeat;
|
|
226
|
-
margin-right: @ffe-spacing-xs;
|
|
227
|
-
height: 22px;
|
|
228
|
-
width: 22px;
|
|
229
|
-
vertical-align: middle;
|
|
230
|
-
transition: all @ffe-transition-duration @ffe-ease;
|
|
231
|
-
.native & {
|
|
232
|
-
@media (prefers-color-scheme: dark) {
|
|
233
|
-
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23b3cee4' width='18' height='18' viewBox='0 0 200 200'%3E%3Cpath d='M200 174.9v-51.2c0-3.6-2.9-6.8-6.8-6.8H190c-3.6 0-6.8 2.9-6.8 6.8v47.8H16.8v-48.1c0-3.6-2.9-6.8-6.8-6.8H6.8c-3.6 0-6.8 2.9-6.8 6.8v51.2c0 7.8 6.3 13.8 13.9 13.8h173c7.5.1 13.6-6.2 13.1-13.5z'/%3E%3Cpath d='M103.3 13.5c-2.7-2.7-7-2.7-9.7 0L73.1 33.9c-4.4 4.4-1.2 11.7 4.9 11.7h12.2v81.8c0 3.6 2.9 6.8 6.8 6.8h3.2c3.6 0 6.8-2.9 6.8-6.8V45.6h11.9c6.1 0 9.2-7.3 4.9-11.7l-20.5-20.4z'/%3E%3C/svg%3E")
|
|
234
|
-
no-repeat;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.ffe-file-upload__upload-button:hover & {
|
|
239
|
-
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23002776' width='18' height='18' viewBox='0 0 200 200'%3E%3Cpath d='M200 174.9v-51.2c0-3.6-2.9-6.8-6.8-6.8H190c-3.6 0-6.8 2.9-6.8 6.8v47.8H16.8v-48.1c0-3.6-2.9-6.8-6.8-6.8H6.8c-3.6 0-6.8 2.9-6.8 6.8v51.2c0 7.8 6.3 13.8 13.9 13.8h173c7.5.1 13.6-6.2 13.1-13.5z'/%3E%3Cpath d='M103.3 13.5c-2.7-2.7-7-2.7-9.7 0L73.1 33.9c-4.4 4.4-1.2 11.7 4.9 11.7h12.2v81.8c0 3.6 2.9 6.8 6.8 6.8h3.2c3.6 0 6.8-2.9 6.8-6.8V45.6h11.9c6.1 0 9.2-7.3 4.9-11.7l-20.5-20.4z'/%3E%3C/svg%3E")
|
|
240
|
-
no-repeat;
|
|
241
|
-
|
|
242
|
-
.native & {
|
|
243
|
-
@media (prefers-color-scheme: dark) {
|
|
244
|
-
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' width='18' height='18' viewBox='0 0 200 200'%3E%3Cpath d='M200 174.9v-51.2c0-3.6-2.9-6.8-6.8-6.8H190c-3.6 0-6.8 2.9-6.8 6.8v47.8H16.8v-48.1c0-3.6-2.9-6.8-6.8-6.8H6.8c-3.6 0-6.8 2.9-6.8 6.8v51.2c0 7.8 6.3 13.8 13.9 13.8h173c7.5.1 13.6-6.2 13.1-13.5z'/%3E%3Cpath d='M103.3 13.5c-2.7-2.7-7-2.7-9.7 0L73.1 33.9c-4.4 4.4-1.2 11.7 4.9 11.7h12.2v81.8c0 3.6 2.9 6.8 6.8 6.8h3.2c3.6 0 6.8-2.9 6.8-6.8V45.6h11.9c6.1 0 9.2-7.3 4.9-11.7l-20.5-20.4z'/%3E%3C/svg%3E")
|
|
245
|
-
no-repeat;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
151
|
&__file-item-delete-icon {
|
|
252
152
|
right: 0;
|
|
253
153
|
content: '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-file-upload",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "File upload module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test": "npm run lint"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@sb1/ffe-core": "^
|
|
17
|
+
"@sb1/ffe-core": "^20.0.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@sb1/ffe-core": "*",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "1d92f0b1459fe63eaa4dcd952aa50ad68779cfa2"
|
|
27
27
|
}
|