@vaadin/field-base 25.0.0-alpha15 → 25.0.0-alpha17

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/field-base",
3
- "version": "25.0.0-alpha15",
3
+ "version": "25.0.0-alpha17",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -31,15 +31,15 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@open-wc/dedupe-mixin": "^1.3.0",
34
- "@vaadin/a11y-base": "25.0.0-alpha15",
35
- "@vaadin/component-base": "25.0.0-alpha15",
34
+ "@vaadin/a11y-base": "25.0.0-alpha17",
35
+ "@vaadin/component-base": "25.0.0-alpha17",
36
36
  "lit": "^3.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@vaadin/chai-plugins": "25.0.0-alpha15",
40
- "@vaadin/test-runner-commands": "25.0.0-alpha15",
39
+ "@vaadin/chai-plugins": "25.0.0-alpha17",
40
+ "@vaadin/test-runner-commands": "25.0.0-alpha17",
41
41
  "@vaadin/testing-helpers": "^2.0.0",
42
- "sinon": "^18.0.0"
42
+ "sinon": "^21.0.0"
43
43
  },
44
- "gitHead": "1ad98437e7600769bf66f870929feefbeef16edf"
44
+ "gitHead": "8264c71309907be99368b09414f0f8d7f591e0b9"
45
45
  }
@@ -97,7 +97,7 @@ export class ErrorController extends SlotChildObserveController {
97
97
  * Note: unlike with other controllers, this method is
98
98
  * called for both default and custom error message.
99
99
  *
100
- * @param {Node | undefined} node
100
+ * @param {Node | undefined} errorNode
101
101
  * @protected
102
102
  * @override
103
103
  */
@@ -38,7 +38,6 @@ export class HelperController extends SlotChildObserveController {
38
38
  * Override method inherited from `SlotChildObserveController`
39
39
  * to create the default helper element lazily as needed.
40
40
  *
41
- * @param {Node | undefined} node
42
41
  * @protected
43
42
  * @override
44
43
  */
@@ -11,7 +11,7 @@ export const checkable = (part, propName = part) => css`
11
11
  :host {
12
12
  align-items: center;
13
13
  display: inline-grid;
14
- gap: var(--vaadin-${unsafeCSS(propName)}-gap, 0.25lh var(--vaadin-gap-s));
14
+ gap: var(--vaadin-${unsafeCSS(propName)}-gap, var(--vaadin-gap-xs) var(--vaadin-gap-s));
15
15
  grid-template-columns: auto 1fr;
16
16
  /*
17
17
  Using minmax(auto, max-content) works around a Safari 17 issue where placing a checkbox
@@ -97,7 +97,7 @@ export const checkable = (part, propName = part) => css`
97
97
  :host(:is([checked], [indeterminate])) {
98
98
  --vaadin-${unsafeCSS(propName)}-background: var(--vaadin-color);
99
99
  --vaadin-${unsafeCSS(propName)}-border-color: transparent;
100
- --vaadin-${unsafeCSS(propName)}-color: var(--vaadin-background-color);
100
+ --vaadin-${unsafeCSS(propName)}-color: oklch(from var(--vaadin-${unsafeCSS(propName)}-background) clamp(0, (0.62 - l) * 1000, 1) 0 0);
101
101
  }
102
102
 
103
103
  :host([disabled]) {
@@ -10,7 +10,7 @@ export const container = css`
10
10
  [class$='container'] {
11
11
  display: flex;
12
12
  flex-direction: column;
13
- gap: var(--vaadin-input-field-container-gap, var(--vaadin-gap-s));
13
+ gap: var(--vaadin-input-field-container-gap, var(--vaadin-gap-xs));
14
14
  min-width: 100%;
15
15
  max-width: 100%;
16
16
  width: var(--vaadin-field-default-width, 12em);
@@ -9,6 +9,7 @@ import { css, unsafeCSS } from 'lit';
9
9
  export const group = (name = 'checkbox') => css`
10
10
  :host {
11
11
  width: fit-content;
12
+ gap: var(--vaadin-${unsafeCSS(name)}-group-gap, var(--vaadin-gap-xs));
12
13
  }
13
14
 
14
15
  .vaadin-group-field-container {
@@ -19,11 +20,10 @@ export const group = (name = 'checkbox') => css`
19
20
  [part='group-field'] {
20
21
  display: flex;
21
22
  flex-direction: column;
22
- gap: var(--vaadin-${unsafeCSS(name)}-group-gap, var(--vaadin-gap-s));
23
23
  }
24
24
 
25
25
  [part='group-field'] {
26
- gap: 0.5lh 1.5em;
26
+ gap: var(--vaadin-gap-xs) var(--vaadin-gap-xl);
27
27
  }
28
28
 
29
29
  :host([theme~='horizontal']) [part='group-field'] {