@entur/fileupload 0.4.13-beta.0 → 0.4.13-beta.10

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/dist/styles.css CHANGED
@@ -1,5 +1,85 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
+ .eds-file-upload__wrapper {
4
+ display: inline-block;
5
+ min-width: 13.75rem;
6
+ }
7
+ .eds-file-upload__input {
8
+ width: 100%;
9
+ }
10
+ .eds-file-upload__input:focus-visible {
11
+ outline: 2px solid #181c56;
12
+ outline-color: var(--basecolors-stroke-focus-standard);
13
+ outline-offset: 0.125rem;
14
+ }
15
+ .eds-contrast .eds-file-upload__input:focus-visible {
16
+ outline-color: var(--basecolors-stroke-focus-contrast);
17
+ }
18
+ .eds-file-upload__dropzone {
19
+ border: 0.125rem var(--components-loader-fileupload-standard-stroke-default) dashed;
20
+ display: inline-block;
21
+ color: var(--components-loader-fileupload-standard-text);
22
+ cursor: pointer;
23
+ font-family: inherit;
24
+ height: 3rem;
25
+ padding: 0.5rem;
26
+ text-align: center;
27
+ width: 100%;
28
+ }
29
+ .eds-contrast .eds-file-upload__dropzone {
30
+ border-color: var(--components-loader-fileupload-contrast-stroke-default);
31
+ color: var(--components-loader-fileupload-contrast-text);
32
+ }
33
+ .eds-file-upload__dropzone--success {
34
+ border-color: var(--components-loader-fileupload-standard-stroke-success);
35
+ border-style: solid;
36
+ }
37
+ .eds-contrast .eds-file-upload__dropzone--success {
38
+ border-color: var(--components-loader-fileupload-contrast-stroke-success);
39
+ }
40
+ .eds-file-upload__dropzone--error {
41
+ border-color: var(--components-loader-fileupload-standard-stroke-negative);
42
+ border-style: solid;
43
+ }
44
+ .eds-contrast .eds-file-upload__dropzone--error {
45
+ border-color: var(--components-loader-fileupload-contrast-stroke-negative);
46
+ }
47
+ .eds-file-upload__dropzone--reject {
48
+ color: var(--components-loader-fileupload-standard-text-disabled);
49
+ border-color: var(--components-loader-fileupload-standard-stroke-disabled);
50
+ opacity: 0.5;
51
+ }
52
+ .eds-contrast .eds-file-upload__dropzone--reject {
53
+ color: var(--components-loader-fileupload-contrast-text-disabled);
54
+ border-color: var(--components-loader-fileupload-contrast-stroke-disabled);
55
+ }
56
+ .eds-file-upload__file-list {
57
+ width: 100%;
58
+ }
59
+ .eds-file-upload__file-name {
60
+ display: grid;
61
+ grid-template-columns: auto 1fr auto;
62
+ align-items: center;
63
+ font-size: 0.875rem;
64
+ }
65
+ .eds-file-upload__file-name > .eds-file-upload__file-name-icon {
66
+ align-self: flex-start;
67
+ color: var(--components-loader-fileupload-standard-icon);
68
+ margin: 0.5rem 0;
69
+ margin-right: 0.25rem;
70
+ }
71
+ .eds-contrast .eds-file-upload__file-name > .eds-file-upload__file-name-icon {
72
+ color: var(--components-loader-fileupload-contrast-icon);
73
+ }
74
+ .eds-file-upload__file-name-path {
75
+ word-break: break-word;
76
+ }
77
+ .eds-file-upload__file-name .eds-icon-button {
78
+ align-self: flex-start;
79
+ margin-left: 0.75rem;
80
+ }
81
+ /* DO NOT CHANGE!*/
82
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
83
  /* DO NOT CHANGE!*/
4
84
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
5
85
  /* DO NOT CHANGE!*/
@@ -186,83 +266,4 @@
186
266
 
187
267
  :root {
188
268
  --eds-fileupload: 1;
189
- }/* DO NOT CHANGE!*/
190
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
191
- .eds-file-upload__wrapper {
192
- display: inline-block;
193
- min-width: 13.75rem;
194
- }
195
- .eds-file-upload__input {
196
- width: 100%;
197
- }
198
- .eds-file-upload__input:focus-visible {
199
- outline: 2px solid #181c56;
200
- outline-color: var(--basecolors-stroke-focus-standard);
201
- outline-offset: 0.125rem;
202
- }
203
- .eds-contrast .eds-file-upload__input:focus-visible {
204
- outline-color: var(--basecolors-stroke-focus-contrast);
205
- }
206
- .eds-file-upload__dropzone {
207
- border: 0.125rem var(--components-loader-fileupload-standard-stroke-default) dashed;
208
- display: inline-block;
209
- color: var(--components-loader-fileupload-standard-text);
210
- cursor: pointer;
211
- font-family: inherit;
212
- height: 3rem;
213
- padding: 0.5rem;
214
- text-align: center;
215
- width: 100%;
216
- }
217
- .eds-contrast .eds-file-upload__dropzone {
218
- border-color: var(--components-loader-fileupload-contrast-stroke-default);
219
- color: var(--components-loader-fileupload-contrast-text);
220
- }
221
- .eds-file-upload__dropzone--success {
222
- border-color: var(--components-loader-fileupload-standard-stroke-success);
223
- border-style: solid;
224
- }
225
- .eds-contrast .eds-file-upload__dropzone--success {
226
- border-color: var(--components-loader-fileupload-contrast-stroke-success);
227
- }
228
- .eds-file-upload__dropzone--error {
229
- border-color: var(--components-loader-fileupload-standard-stroke-negative);
230
- border-style: solid;
231
- }
232
- .eds-contrast .eds-file-upload__dropzone--error {
233
- border-color: var(--components-loader-fileupload-contrast-stroke-negative);
234
- }
235
- .eds-file-upload__dropzone--reject {
236
- color: var(--components-loader-fileupload-standard-text-disabled);
237
- border-color: var(--components-loader-fileupload-standard-stroke-disabled);
238
- opacity: 0.5;
239
- }
240
- .eds-contrast .eds-file-upload__dropzone--reject {
241
- color: var(--components-loader-fileupload-contrast-text-disabled);
242
- border-color: var(--components-loader-fileupload-contrast-stroke-disabled);
243
269
  }
244
- .eds-file-upload__file-list {
245
- width: 100%;
246
- }
247
- .eds-file-upload__file-name {
248
- display: grid;
249
- grid-template-columns: auto 1fr auto;
250
- align-items: center;
251
- font-size: 0.875rem;
252
- }
253
- .eds-file-upload__file-name > .eds-file-upload__file-name-icon {
254
- align-self: flex-start;
255
- color: var(--components-loader-fileupload-standard-icon);
256
- margin: 0.5rem 0;
257
- margin-right: 0.25rem;
258
- }
259
- .eds-contrast .eds-file-upload__file-name > .eds-file-upload__file-name-icon {
260
- color: var(--components-loader-fileupload-contrast-icon);
261
- }
262
- .eds-file-upload__file-name-path {
263
- word-break: break-word;
264
- }
265
- .eds-file-upload__file-name .eds-icon-button {
266
- align-self: flex-start;
267
- margin-left: 0.75rem;
268
- }
package/package.json CHANGED
@@ -1,18 +1,10 @@
1
1
  {
2
2
  "name": "@entur/fileupload",
3
- "version": "0.4.13-beta.0",
3
+ "version": "0.4.13-beta.10",
4
4
  "license": "EUPL-1.2",
5
- "main": "dist/fileupload.cjs.js",
5
+ "main": "dist/index.js",
6
6
  "module": "dist/fileupload.esm.js",
7
- "types": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/fileupload.esm.js",
12
- "require": "./dist/fileupload.cjs.js"
13
- },
14
- "./dist/*": "./dist/*"
15
- },
7
+ "typings": "dist/index.d.ts",
16
8
  "files": [
17
9
  "dist"
18
10
  ],
@@ -25,37 +17,27 @@
25
17
  "access": "public"
26
18
  },
27
19
  "scripts": {
28
- "start": "vite build --watch",
29
- "build": "vite build",
30
- "test": "jest",
31
- "lint": "eslint src"
20
+ "start": "dts watch --noClean",
21
+ "build": "dts build",
22
+ "test": "dts test",
23
+ "lint": "dts lint src"
32
24
  },
33
25
  "peerDependencies": {
34
26
  "react": ">=16.8.0",
35
27
  "react-dom": ">=16.8.0"
36
28
  },
37
29
  "dependencies": {
38
- "@entur/a11y": "^0.2.100-beta.0",
39
- "@entur/button": "^3.3.13-beta.0",
40
- "@entur/icons": "^8.0.1-beta.0",
41
- "@entur/tokens": "^3.19.2-beta.0",
42
- "@entur/typography": "^1.9.13-beta.0",
43
- "@entur/utils": "^0.12.4-beta.0",
44
- "classnames": "^2.5.1",
45
- "react-dropzone": "^11.7.1"
30
+ "@entur/a11y": "^0.2.99",
31
+ "@entur/button": "^3.3.13-beta.10",
32
+ "@entur/icons": "^8.0.0",
33
+ "@entur/tokens": "^3.19.1",
34
+ "@entur/typography": "^1.10.0-beta.10",
35
+ "@entur/utils": "^0.12.3",
36
+ "classnames": "^2.3.1",
37
+ "react-dropzone": "^11.3.4"
46
38
  },
47
39
  "devDependencies": {
48
- "@testing-library/jest-dom": "^5.17.0",
49
- "@testing-library/react": "^10.4.9",
50
- "@testing-library/user-event": "14.6.1",
51
- "@vitejs/plugin-react": "^5.0.1",
52
- "eslint": "^7.32.0",
53
- "jest": "^29.0.0",
54
- "jest-environment-jsdom": "^29.0.0",
55
- "ts-jest": "^29.0.0",
56
- "typescript": "^5.9.2",
57
- "vite": "^7.1.3",
58
- "vite-plugin-dts": "^4.5.4"
40
+ "dts-cli": "2.0.5"
59
41
  },
60
- "gitHead": "414181fa2084722438238256a9aa32e304896b9d"
42
+ "gitHead": "180506f42d45f01bf4129fa538e414379735a4b4"
61
43
  }