@vaadin/upload 25.0.2 → 25.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/upload",
3
- "version": "25.0.2",
3
+ "version": "25.0.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,23 +34,24 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@open-wc/dedupe-mixin": "^1.3.0",
37
- "@vaadin/a11y-base": "~25.0.2",
38
- "@vaadin/button": "~25.0.2",
39
- "@vaadin/component-base": "~25.0.2",
40
- "@vaadin/progress-bar": "~25.0.2",
41
- "@vaadin/vaadin-themable-mixin": "~25.0.2",
37
+ "@vaadin/a11y-base": "~25.0.3",
38
+ "@vaadin/button": "~25.0.3",
39
+ "@vaadin/component-base": "~25.0.3",
40
+ "@vaadin/progress-bar": "~25.0.3",
41
+ "@vaadin/vaadin-themable-mixin": "~25.0.3",
42
42
  "lit": "^3.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@vaadin/chai-plugins": "~25.0.2",
46
- "@vaadin/test-runner-commands": "~25.0.2",
45
+ "@vaadin/aura": "~25.0.3",
46
+ "@vaadin/chai-plugins": "~25.0.3",
47
+ "@vaadin/test-runner-commands": "~25.0.3",
47
48
  "@vaadin/testing-helpers": "^2.0.0",
48
- "@vaadin/vaadin-lumo-styles": "~25.0.2",
49
+ "@vaadin/vaadin-lumo-styles": "~25.0.3",
49
50
  "sinon": "^21.0.0"
50
51
  },
51
52
  "web-types": [
52
53
  "web-types.json",
53
54
  "web-types.lit.json"
54
55
  ],
55
- "gitHead": "d17c1f8b7c6f3f991cafd9dbdbe5759caa57afcd"
56
+ "gitHead": "a4b57a083b721045770f1f3700edd699872cd7fb"
56
57
  }
@@ -8,7 +8,7 @@ import { css } from 'lit';
8
8
 
9
9
  export const uploadFileStyles = css`
10
10
  :host {
11
- align-items: center;
11
+ align-items: baseline;
12
12
  display: grid;
13
13
  gap: var(--vaadin-upload-file-gap, var(--vaadin-gap-s));
14
14
  grid-template-columns: var(--vaadin-icon-size, 1lh) minmax(0, 1fr) auto;
@@ -32,8 +32,9 @@ export const uploadFileStyles = css`
32
32
 
33
33
  [part='done-icon']::before,
34
34
  [part='warning-icon']::before {
35
- content: '';
36
- display: inline-block;
35
+ content: '\\2003' / '';
36
+ display: inline-flex;
37
+ align-items: center;
37
38
  flex: none;
38
39
  height: var(--vaadin-icon-size, 1lh);
39
40
  width: var(--vaadin-icon-size, 1lh);
@@ -82,19 +83,25 @@ export const uploadFileStyles = css`
82
83
  line-height: var(--vaadin-upload-file-error-line-height, inherit);
83
84
  }
84
85
 
86
+ [part='commands'] {
87
+ display: flex;
88
+ align-items: center;
89
+ gap: var(--vaadin-gap-xs);
90
+ height: var(--vaadin-icon-size, 1lh);
91
+ align-self: center;
92
+ }
93
+
85
94
  button {
86
95
  background: var(--vaadin-upload-file-button-background, transparent);
87
- border: var(--vaadin-upload-file-button-border-width, 1px) solid
88
- var(--vaadin-upload-file-button-border-color, transparent);
96
+ border: var(--vaadin-upload-file-button-border-width, 0) solid
97
+ var(--vaadin-upload-file-button-border-color, var(--vaadin-border-color-secondary));
89
98
  border-radius: var(--vaadin-upload-file-button-border-radius, var(--vaadin-radius-m));
90
99
  color: var(--vaadin-upload-file-button-text-color, var(--vaadin-text-color));
91
100
  cursor: var(--vaadin-clickable-cursor);
92
101
  flex-shrink: 0;
93
102
  font: inherit;
94
- padding: var(
95
- --vaadin-upload-file-button-padding,
96
- var(--vaadin-padding-block-container) var(--vaadin-padding-inline-container)
97
- );
103
+ /* Ensure minimum click target (WCAG) */
104
+ padding: var(--vaadin-upload-file-button-padding, max(0px, (24px - var(--vaadin-icon-size, 1lh)) / 2));
98
105
  }
99
106
 
100
107
  button:focus-visible {
@@ -105,8 +112,9 @@ export const uploadFileStyles = css`
105
112
  [part='retry-button']::before,
106
113
  [part='remove-button']::before {
107
114
  background: currentColor;
108
- content: '';
109
- display: block;
115
+ content: '\\2003' / '';
116
+ display: flex;
117
+ align-items: center;
110
118
  height: var(--vaadin-icon-size, 1lh);
111
119
  width: var(--vaadin-icon-size, 1lh);
112
120
  }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/upload",
4
- "version": "25.0.2",
4
+ "version": "25.0.3",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/upload",
4
- "version": "25.0.2",
4
+ "version": "25.0.3",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {