@vaadin/password-field 25.0.0-alpha16 → 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/password-field",
3
- "version": "25.0.0-alpha16",
3
+ "version": "25.0.0-alpha17",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,24 +34,24 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@open-wc/dedupe-mixin": "^1.3.0",
37
- "@vaadin/a11y-base": "25.0.0-alpha16",
38
- "@vaadin/button": "25.0.0-alpha16",
39
- "@vaadin/component-base": "25.0.0-alpha16",
40
- "@vaadin/field-base": "25.0.0-alpha16",
41
- "@vaadin/text-field": "25.0.0-alpha16",
42
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha16",
37
+ "@vaadin/a11y-base": "25.0.0-alpha17",
38
+ "@vaadin/button": "25.0.0-alpha17",
39
+ "@vaadin/component-base": "25.0.0-alpha17",
40
+ "@vaadin/field-base": "25.0.0-alpha17",
41
+ "@vaadin/text-field": "25.0.0-alpha17",
42
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha17",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/chai-plugins": "25.0.0-alpha16",
47
- "@vaadin/test-runner-commands": "25.0.0-alpha16",
46
+ "@vaadin/chai-plugins": "25.0.0-alpha17",
47
+ "@vaadin/test-runner-commands": "25.0.0-alpha17",
48
48
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha16",
50
- "sinon": "^18.0.0"
49
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha17",
50
+ "sinon": "^21.0.0"
51
51
  },
52
52
  "web-types": [
53
53
  "web-types.json",
54
54
  "web-types.lit.json"
55
55
  ],
56
- "gitHead": "4b316158a4a4f702f032bc9940fc82f0faa840f4"
56
+ "gitHead": "8264c71309907be99368b09414f0f8d7f591e0b9"
57
57
  }
@@ -10,10 +10,10 @@ import { buttonStyles } from '@vaadin/button/src/styles/vaadin-button-base-style
10
10
  const passwordFieldBase = css`
11
11
  :host {
12
12
  --vaadin-button-background: transparent;
13
- --vaadin-button-border: none;
14
13
  --vaadin-button-padding: 0;
15
14
  color: var(--vaadin-input-field-button-color, inherit);
16
15
  display: block;
16
+ border: none;
17
17
  cursor: var(--vaadin-clickable-cursor);
18
18
  }
19
19
 
@@ -49,20 +49,36 @@ export interface PasswordFieldEventMap extends HTMLElementEventMap, PasswordFiel
49
49
  *
50
50
  * ### Styling
51
51
  *
52
- * `<vaadin-password-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.
53
- * See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
52
+ * The following shadow DOM parts are available for styling:
54
53
  *
55
- * In addition to `<vaadin-text-field>` parts, the following parts are available for theming:
54
+ * Part name | Description
55
+ * ---------------------|----------------
56
+ * `label` | The label element
57
+ * `input-field` | The element that wraps prefix, value and suffix
58
+ * `clear-button` | The clear button
59
+ * `error-message` | The error message element
60
+ * `helper-text` | The helper text element wrapper
61
+ * `required-indicator` | The `required` state indicator element
62
+ * `reveal-button` | The eye icon which toggles the password visibility
56
63
  *
57
- * Part name | Description
58
- * ----------------|----------------------------------------------------
59
- * `reveal-button` | The eye icon which toggles the password visibility
64
+ * The following state attributes are available for styling:
60
65
  *
61
- * In addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:
66
+ * Attribute | Description
67
+ * ---------------------|---------------------------------
68
+ * `disabled` | Set when the element is disabled
69
+ * `has-value` | Set when the element has a value
70
+ * `has-label` | Set when the element has a label
71
+ * `has-helper` | Set when the element has helper text or slot
72
+ * `has-error-message` | Set when the element has an error message
73
+ * `has-tooltip` | Set when the element has a slotted tooltip
74
+ * `invalid` | Set when the element is invalid
75
+ * `input-prevented` | Temporarily set when invalid input is prevented
76
+ * `focused` | Set when the element is focused
77
+ * `focus-ring` | Set when the element is keyboard focused
78
+ * `readonly` | Set when the element is readonly
79
+ * `password-visible` | Set when the password is visible
62
80
  *
63
- * Attribute | Description
64
- * -------------------|---------------------------------
65
- * `password-visible` | Set when the password is visible
81
+ * Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
66
82
  *
67
83
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
68
84
  *
@@ -19,20 +19,36 @@ import { PasswordFieldMixin } from './vaadin-password-field-mixin.js';
19
19
  *
20
20
  * ### Styling
21
21
  *
22
- * `<vaadin-password-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.
23
- * See [`<vaadin-text-field>`](#/elements/vaadin-text-field) for the styling documentation.
22
+ * The following shadow DOM parts are available for styling:
24
23
  *
25
- * In addition to `<vaadin-text-field>` parts, the following parts are available for theming:
24
+ * Part name | Description
25
+ * ---------------------|----------------
26
+ * `label` | The label element
27
+ * `input-field` | The element that wraps prefix, value and suffix
28
+ * `clear-button` | The clear button
29
+ * `error-message` | The error message element
30
+ * `helper-text` | The helper text element wrapper
31
+ * `required-indicator` | The `required` state indicator element
32
+ * `reveal-button` | The eye icon which toggles the password visibility
26
33
  *
27
- * Part name | Description
28
- * ----------------|----------------------------------------------------
29
- * `reveal-button` | The eye icon which toggles the password visibility
34
+ * The following state attributes are available for styling:
30
35
  *
31
- * In addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:
36
+ * Attribute | Description
37
+ * ---------------------|---------------------------------
38
+ * `disabled` | Set when the element is disabled
39
+ * `has-value` | Set when the element has a value
40
+ * `has-label` | Set when the element has a label
41
+ * `has-helper` | Set when the element has helper text or slot
42
+ * `has-error-message` | Set when the element has an error message
43
+ * `has-tooltip` | Set when the element has a slotted tooltip
44
+ * `invalid` | Set when the element is invalid
45
+ * `input-prevented` | Temporarily set when invalid input is prevented
46
+ * `focused` | Set when the element is focused
47
+ * `focus-ring` | Set when the element is keyboard focused
48
+ * `readonly` | Set when the element is readonly
49
+ * `password-visible` | Set when the password is visible
32
50
  *
33
- * Attribute | Description
34
- * -------------------|---------------------------------
35
- * `password-visible` | Set when the password is visible
51
+ * Note, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.
36
52
  *
37
53
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
38
54
  *
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/password-field",
4
- "version": "25.0.0-alpha16",
4
+ "version": "25.0.0-alpha17",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-password-field",
11
- "description": "`<vaadin-password-field>` is an extension of `<vaadin-text-field>` component for entering passwords.\n\n```html\n<vaadin-password-field label=\"Password\"></vaadin-password-field>\n```\n\n### Styling\n\n`<vaadin-password-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha16/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n----------------|----------------------------------------------------\n`reveal-button` | The eye icon which toggles the password visibility\n\nIn addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:\n\nAttribute | Description\n-------------------|---------------------------------\n`password-visible` | Set when the password is visible\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
11
+ "description": "`<vaadin-password-field>` is an extension of `<vaadin-text-field>` component for entering passwords.\n\n```html\n<vaadin-password-field label=\"Password\"></vaadin-password-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`reveal-button` | The eye icon which toggles the password visibility\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`password-visible` | Set when the password is visible\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "disabled",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/password-field",
4
- "version": "25.0.0-alpha16",
4
+ "version": "25.0.0-alpha17",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-password-field",
19
- "description": "`<vaadin-password-field>` is an extension of `<vaadin-text-field>` component for entering passwords.\n\n```html\n<vaadin-password-field label=\"Password\"></vaadin-password-field>\n```\n\n### Styling\n\n`<vaadin-password-field>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha16/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n----------------|----------------------------------------------------\n`reveal-button` | The eye icon which toggles the password visibility\n\nIn addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:\n\nAttribute | Description\n-------------------|---------------------------------\n`password-visible` | Set when the password is visible\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
19
+ "description": "`<vaadin-password-field>` is an extension of `<vaadin-text-field>` component for entering passwords.\n\n```html\n<vaadin-password-field label=\"Password\"></vaadin-password-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`reveal-button` | The eye icon which toggles the password visibility\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`password-visible` | Set when the password is visible\n\nNote, the `input-prevented` state attribute is only supported when `allowedCharPattern` is set.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {