@enso-ui/uploader 2.0.17 → 3.1.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2017 laravel-enso
3
+ Copyright (c) 2026 laravel-enso
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -28,4 +28,4 @@ Thank you to all the people who already contributed to Enso!
28
28
 
29
29
  ## License
30
30
 
31
- [ISC](https://opensource.org/licenses/ISC)
31
+ [MIT](LICENSE)
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@enso-ui/uploader",
3
- "version": "2.0.17",
3
+ "version": "3.1.0",
4
4
  "description": "File Uploader",
5
5
  "main": "bulma/index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
6
  "repository": {
10
7
  "type": "git",
11
8
  "url": "git+https://github.com/enso-ui/uploader.git"
@@ -15,27 +12,16 @@
15
12
  "vue"
16
13
  ],
17
14
  "author": "Adrian Ocneanu <aocneanu@gmail.com>",
18
- "license": "ISC",
15
+ "license": "MIT",
19
16
  "bugs": {
20
17
  "url": "https://github.com/enso-ui/uploader/issues"
21
18
  },
22
19
  "homepage": "https://github.com/enso-ui/uploader#readme",
23
20
  "dependencies": {
24
- "@fortawesome/fontawesome-svg-core": "^1.2.2",
25
- "@fortawesome/free-solid-svg-icons": "^5.11.2",
26
- "@fortawesome/vue-fontawesome": "3.0.0-5",
21
+ "@fortawesome/fontawesome-svg-core": "^7.2.0",
22
+ "@fortawesome/free-solid-svg-icons": "^7.2.0",
23
+ "@fortawesome/vue-fontawesome": "3.1.3",
27
24
  "bulma": "^0.9.0",
28
25
  "vue": "^3.0"
29
- },
30
- "devDependencies": {
31
- "@vue/cli-plugin-babel": "5.0.0-beta.6",
32
- "@vue/cli-plugin-eslint": "5.0.0-beta.6",
33
- "@vue/eslint-config-airbnb": "^5.0.0",
34
- "autoprefixer": "^9.6.1",
35
- "babel-eslint": "^10.0.1",
36
- "cross-env": "^6.0.0",
37
- "eslint": "^7.0.0",
38
- "eslint-import-resolver-alias": "^1.1.2",
39
- "eslint-plugin-vue": "^8.0.0"
40
26
  }
41
27
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <form class="is-marginless"
2
+ <form class="m-0"
3
3
  @submit.prevent>
4
4
  <core-uploader v-bind="$attrs"
5
5
  ref="uploader">
@@ -11,24 +11,16 @@
11
11
  v-on="inputEvents">
12
12
  <slot name="control"
13
13
  :control-events="controlEvents">
14
- <a :class="['file', {'is-small': isSmall}, {'is-large': isLarge}]"
14
+ <a :class="['button', 'uploader-button', {'is-small': isSmall},
15
+ {'is-large': isLarge}, {'is-rounded': isRounded}]"
15
16
  v-on="controlEvents">
16
- <span :class="['file-cta', {'is-rounded': isRounded}]"
17
+ <span class="file-label"
17
18
  v-if="label">
18
- <span class="file-icon"
19
- v-if="!manual || files">
20
- <fa icon="upload"/>
21
- </span>
22
- <span class="file-label">
23
- {{ label }}
24
- </span>
19
+ {{ label }}
25
20
  </span>
26
- <span class="button"
27
- v-else>
28
- <span class="icon"
29
- v-if="!manual || files">
30
- <fa icon="upload"/>
31
- </span>
21
+ <span class="icon"
22
+ v-if="!manual || files">
23
+ <fa :icon="faUpload"/>
32
24
  </span>
33
25
  </a>
34
26
  </slot>
@@ -39,17 +31,18 @@
39
31
 
40
32
  <script>
41
33
  import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
42
- import { library } from '@fortawesome/fontawesome-svg-core';
43
34
  import { faUpload } from '@fortawesome/free-solid-svg-icons';
44
35
  import CoreUploader from '../renderless/CoreUploader.vue';
45
36
 
46
- library.add(faUpload);
47
-
48
37
  export default {
49
38
  name: 'Uploader',
50
39
 
51
40
  components: { CoreUploader, Fa },
52
41
 
42
+ data: () => ({
43
+ faUpload,
44
+ }),
45
+
53
46
  props: {
54
47
  isLarge: {
55
48
  type: Boolean,
@@ -74,7 +67,17 @@ export default {
74
67
  </script>
75
68
 
76
69
  <style lang="scss">
77
- .file-cta.is-rounded {
78
- border-radius: 290486px;
70
+ .uploader-button {
71
+ background-color: var(--bulma-scheme-main);
72
+ border: 1px solid var(--bulma-input-border-color);
73
+ box-shadow: none;
74
+ color: var(--bulma-text-strong);
75
+
76
+ &:hover,
77
+ &:focus {
78
+ background-color: var(--bulma-scheme-main-ter);
79
+ border-color: var(--bulma-input-hover-border-color);
80
+ color: var(--bulma-text-strong);
79
81
  }
82
+ }
80
83
  </style>