@sb1/ffe-file-upload 6.0.11 → 7.0.1

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.
@@ -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,10 +1,12 @@
1
1
  {
2
2
  "name": "@sb1/ffe-file-upload",
3
- "version": "6.0.11",
3
+ "version": "7.0.1",
4
4
  "description": "File upload module",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
7
- "main": "less/ffe-file-upload.less",
7
+ "files": [
8
+ "less"
9
+ ],
8
10
  "repository": {
9
11
  "type": "git",
10
12
  "url": "ssh://git@github.com:SpareBank1/designsystem.git"
@@ -14,7 +16,7 @@
14
16
  "test": "npm run lint"
15
17
  },
16
18
  "devDependencies": {
17
- "@sb1/ffe-core": "^19.3.3"
19
+ "@sb1/ffe-core": "^20.0.0"
18
20
  },
19
21
  "peerDependencies": {
20
22
  "@sb1/ffe-core": "*",
@@ -23,5 +25,5 @@
23
25
  "publishConfig": {
24
26
  "access": "public"
25
27
  },
26
- "gitHead": "21dd36e1ae3ba1d6801e783f89df347908aa7481"
28
+ "gitHead": "e11a27a9d7504e11ef1ae799c6c206e160bd5606"
27
29
  }
package/CHANGELOG.md DELETED
@@ -1,332 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [6.0.11](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.10...@sb1/ffe-file-upload@6.0.11) (2021-11-19)
7
-
8
- **Note:** Version bump only for package @sb1/ffe-file-upload
9
-
10
-
11
-
12
-
13
-
14
- ## [6.0.10](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.9...@sb1/ffe-file-upload@6.0.10) (2021-11-04)
15
-
16
- **Note:** Version bump only for package @sb1/ffe-file-upload
17
-
18
-
19
-
20
-
21
-
22
- ## [6.0.9](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.8...@sb1/ffe-file-upload@6.0.9) (2021-11-01)
23
-
24
- **Note:** Version bump only for package @sb1/ffe-file-upload
25
-
26
-
27
-
28
-
29
-
30
- ## [6.0.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.7...@sb1/ffe-file-upload@6.0.8) (2021-11-01)
31
-
32
- **Note:** Version bump only for package @sb1/ffe-file-upload
33
-
34
-
35
-
36
-
37
-
38
- ## [6.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.6...@sb1/ffe-file-upload@6.0.7) (2021-10-29)
39
-
40
- **Note:** Version bump only for package @sb1/ffe-file-upload
41
-
42
-
43
-
44
-
45
-
46
- ## [6.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.5...@sb1/ffe-file-upload@6.0.6) (2021-10-20)
47
-
48
- **Note:** Version bump only for package @sb1/ffe-file-upload
49
-
50
-
51
-
52
-
53
-
54
- ## [6.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.4...@sb1/ffe-file-upload@6.0.5) (2021-10-08)
55
-
56
- **Note:** Version bump only for package @sb1/ffe-file-upload
57
-
58
-
59
-
60
-
61
-
62
- ## [6.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.3...@sb1/ffe-file-upload@6.0.4) (2021-10-06)
63
-
64
- **Note:** Version bump only for package @sb1/ffe-file-upload
65
-
66
-
67
-
68
-
69
-
70
- ## [6.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.2...@sb1/ffe-file-upload@6.0.3) (2021-09-24)
71
-
72
- **Note:** Version bump only for package @sb1/ffe-file-upload
73
-
74
-
75
-
76
-
77
-
78
- ## [6.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.1...@sb1/ffe-file-upload@6.0.2) (2021-09-17)
79
-
80
- **Note:** Version bump only for package @sb1/ffe-file-upload
81
-
82
-
83
-
84
-
85
-
86
- ## [6.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@6.0.0...@sb1/ffe-file-upload@6.0.1) (2021-09-10)
87
-
88
- **Note:** Version bump only for package @sb1/ffe-file-upload
89
-
90
-
91
-
92
-
93
-
94
- # [6.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@4.0.10...@sb1/ffe-file-upload@6.0.0) (2021-09-06)
95
-
96
-
97
- ### Bug Fixes
98
-
99
- * **ffe-file-upload:** focus-outline skal kun vises på keyboard-fokus - ikke active-state ([ed13768](https://github.com/SpareBank1/designsystem/commit/ed137684150f7a27aba4b4a0295a0f0ebe03892b))
100
-
101
-
102
- ### Features
103
-
104
- * **ffe-file-upload:** oppdaterte farger iht ny profil ([dfd1dc1](https://github.com/SpareBank1/designsystem/commit/dfd1dc10f107297b414e6d56b4d49538c42da26a))
105
-
106
-
107
- ### BREAKING CHANGES
108
-
109
- * **ffe-file-upload:** visuelle endringer i komponenten kan medføre regresjonsfeil
110
-
111
-
112
-
113
-
114
-
115
- # [5.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@4.0.10...@sb1/ffe-file-upload@5.0.0) (2021-09-06)
116
-
117
-
118
- ### Bug Fixes
119
-
120
- * **ffe-file-upload:** focus-outline skal kun vises på keyboard-fokus - ikke active-state ([ed13768](https://github.com/SpareBank1/designsystem/commit/ed137684150f7a27aba4b4a0295a0f0ebe03892b))
121
-
122
-
123
- ### Features
124
-
125
- * **ffe-file-upload:** oppdaterte farger iht ny profil ([dfd1dc1](https://github.com/SpareBank1/designsystem/commit/dfd1dc10f107297b414e6d56b4d49538c42da26a))
126
-
127
-
128
- ### BREAKING CHANGES
129
-
130
- * **ffe-file-upload:** visuelle endringer i komponenten kan medføre regresjonsfeil
131
-
132
-
133
-
134
-
135
-
136
- ## [4.0.10](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@4.0.9...@sb1/ffe-file-upload@4.0.10) (2021-06-17)
137
-
138
- **Note:** Version bump only for package @sb1/ffe-file-upload
139
-
140
-
141
-
142
-
143
-
144
- ## [4.0.9](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@4.0.8...@sb1/ffe-file-upload@4.0.9) (2021-04-14)
145
-
146
- **Note:** Version bump only for package @sb1/ffe-file-upload
147
-
148
-
149
-
150
-
151
-
152
- ## [4.0.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@4.0.7...@sb1/ffe-file-upload@4.0.8) (2021-03-25)
153
-
154
- **Note:** Version bump only for package @sb1/ffe-file-upload
155
-
156
-
157
-
158
-
159
-
160
- ## [4.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@4.0.6...@sb1/ffe-file-upload@4.0.7) (2021-03-17)
161
-
162
- **Note:** Version bump only for package @sb1/ffe-file-upload
163
-
164
-
165
-
166
-
167
-
168
- ## [4.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@4.0.5...@sb1/ffe-file-upload@4.0.6) (2021-03-15)
169
-
170
-
171
- ### Bug Fixes
172
-
173
- * **ffe-file-upload:** broadens version of peer dependencies ([c1a147f](https://github.com/SpareBank1/designsystem/commit/c1a147f139849263400b9b900c8ebd3867ac8479))
174
-
175
-
176
-
177
-
178
-
179
- ## [4.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@4.0.4...@sb1/ffe-file-upload@4.0.5) (2021-03-08)
180
-
181
- **Note:** Version bump only for package @sb1/ffe-file-upload
182
-
183
-
184
-
185
-
186
-
187
- ## [4.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@4.0.3...@sb1/ffe-file-upload@4.0.4) (2021-02-03)
188
-
189
- **Note:** Version bump only for package @sb1/ffe-file-upload
190
-
191
-
192
-
193
-
194
-
195
- ## [4.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@4.0.2...@sb1/ffe-file-upload@4.0.3) (2021-02-02)
196
-
197
- **Note:** Version bump only for package @sb1/ffe-file-upload
198
-
199
-
200
-
201
-
202
-
203
- ## [4.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@4.0.1...@sb1/ffe-file-upload@4.0.2) (2021-01-11)
204
-
205
- **Note:** Version bump only for package @sb1/ffe-file-upload
206
-
207
-
208
-
209
-
210
-
211
- ## [4.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@4.0.0...@sb1/ffe-file-upload@4.0.1) (2020-12-03)
212
-
213
- **Note:** Version bump only for package @sb1/ffe-file-upload
214
-
215
-
216
-
217
-
218
-
219
- # [4.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@3.0.10...@sb1/ffe-file-upload@4.0.0) (2020-11-20)
220
-
221
-
222
- ### Bug Fixes
223
-
224
- * **ffe-file-upload:** change text values to rem ([e4f10db](https://github.com/SpareBank1/designsystem/commit/e4f10db76a54dea51910310609ea44dd376b5c2e))
225
-
226
-
227
- ### BREAKING CHANGES
228
-
229
- * **ffe-file-upload:** This fix changes all font-size and line-height values from px to rem,
230
- this is to solve an issue with zooming in iOS.
231
-
232
-
233
-
234
-
235
-
236
- ## [3.0.10](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@3.0.9...@sb1/ffe-file-upload@3.0.10) (2020-11-05)
237
-
238
- **Note:** Version bump only for package @sb1/ffe-file-upload
239
-
240
-
241
-
242
-
243
-
244
- ## [3.0.9](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@3.0.8...@sb1/ffe-file-upload@3.0.9) (2020-08-25)
245
-
246
- **Note:** Version bump only for package @sb1/ffe-file-upload
247
-
248
-
249
-
250
-
251
-
252
- ## [3.0.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@3.0.7...@sb1/ffe-file-upload@3.0.8) (2020-03-18)
253
-
254
- **Note:** Version bump only for package @sb1/ffe-file-upload
255
-
256
- ## [3.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@3.0.6...@sb1/ffe-file-upload@3.0.7) (2020-03-16)
257
-
258
- **Note:** Version bump only for package @sb1/ffe-file-upload
259
-
260
- ## [3.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@3.0.5...@sb1/ffe-file-upload@3.0.6) (2020-03-13)
261
-
262
- **Note:** Version bump only for package @sb1/ffe-file-upload
263
-
264
- ## [3.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@3.0.4...@sb1/ffe-file-upload@3.0.5) (2020-02-26)
265
-
266
- **Note:** Version bump only for package @sb1/ffe-file-upload
267
-
268
- ## [3.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@3.0.3...@sb1/ffe-file-upload@3.0.4) (2020-02-26)
269
-
270
- **Note:** Version bump only for package @sb1/ffe-file-upload
271
-
272
- ## [3.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@3.0.1...@sb1/ffe-file-upload@3.0.3) (2020-02-26)
273
-
274
- **Note:** Version bump only for package @sb1/ffe-file-upload
275
-
276
- ## [3.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@3.0.1...@sb1/ffe-file-upload@3.0.2) (2020-02-25)
277
-
278
- **Note:** Version bump only for package @sb1/ffe-file-upload
279
-
280
- ## [3.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@3.0.0...@sb1/ffe-file-upload@3.0.1) (2020-02-10)
281
-
282
- **Note:** Version bump only for package @sb1/ffe-file-upload
283
-
284
- # [3.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@2.1.0...@sb1/ffe-file-upload@3.0.0) (2019-12-18)
285
-
286
- ### Bug Fixes
287
-
288
- - **ffe-file-upload:** replace hardcoded spacing with variables ([058ebeb](https://github.com/SpareBank1/designsystem/commit/058ebeb478a57b7e5041a6f4cdd1abcbb5373520))
289
-
290
- ### BREAKING CHANGES
291
-
292
- - **ffe-file-upload:** This commit is likely to cause small visual regressions caused by slightly altered margin and padding values.
293
-
294
- # [2.1.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@2.0.5...@sb1/ffe-file-upload@2.1.0) (2019-12-16)
295
-
296
- ### Features
297
-
298
- - **ffe-file-upload:** add darkmdoe styling overrides ([0946b37](https://github.com/SpareBank1/designsystem/commit/0946b37d65c283c443e5dc23e5b71ed11c257351))
299
-
300
- ## [2.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@2.0.4...@sb1/ffe-file-upload@2.0.5) (2019-10-31)
301
-
302
- **Note:** Version bump only for package @sb1/ffe-file-upload
303
-
304
- ## [2.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@2.0.3...@sb1/ffe-file-upload@2.0.4) (2019-10-21)
305
-
306
- **Note:** Version bump only for package @sb1/ffe-file-upload
307
-
308
- ## [2.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@2.0.2...@sb1/ffe-file-upload@2.0.3) (2019-10-14)
309
-
310
- **Note:** Version bump only for package @sb1/ffe-file-upload
311
-
312
- ## [2.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@2.0.1...@sb1/ffe-file-upload@2.0.2) (2019-09-18)
313
-
314
- **Note:** Version bump only for package @sb1/ffe-file-upload
315
-
316
- ## [2.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-file-upload@2.0.0...@sb1/ffe-file-upload@2.0.1) (2019-09-16)
317
-
318
- **Note:** Version bump only for package @sb1/ffe-file-upload
319
-
320
- # 2.0.0 (2019-09-16)
321
-
322
- ### chore
323
-
324
- - **ffe-file-upload:** add new package ([e127133](https://github.com/SpareBank1/designsystem/commit/e127133))
325
-
326
- ### BREAKING CHANGES
327
-
328
- - **ffe-file-upload:** add new package
329
-
330
- # 1.0.0
331
-
332
- - Initial release