@neovici/cosmoz-button 1.0.2 → 1.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.
@@ -7,6 +7,7 @@ export interface CosmozButtonElement extends HTMLElement {
7
7
  disabled: boolean;
8
8
  'full-width': boolean;
9
9
  type: ButtonType;
10
+ value: string | null;
10
11
  }
11
12
  /**
12
13
  * A customizable button component using Untitled UI design tokens.
@@ -18,6 +19,7 @@ export interface CosmozButtonElement extends HTMLElement {
18
19
  * @attr {boolean} disabled - Disables the button
19
20
  * @attr {boolean} full-width - Makes the button 100% width
20
21
  * @attr {string} type - Button type: button (default), submit, reset
22
+ * @attr {string} value - Value associated with the button (optional)
21
23
  *
22
24
  * @slot - Default slot for button text content
23
25
  * @slot prefix - Slot for prefix icon (before text)
@@ -7,6 +7,7 @@ const observedAttributes = [
7
7
  'disabled',
8
8
  'full-width',
9
9
  'type',
10
+ 'value',
10
11
  ];
11
12
  /**
12
13
  * A customizable button component using Untitled UI design tokens.
@@ -18,6 +19,7 @@ const observedAttributes = [
18
19
  * @attr {boolean} disabled - Disables the button
19
20
  * @attr {boolean} full-width - Makes the button 100% width
20
21
  * @attr {string} type - Button type: button (default), submit, reset
22
+ * @attr {string} value - Value associated with the button (optional)
21
23
  *
22
24
  * @slot - Default slot for button text content
23
25
  * @slot prefix - Slot for prefix icon (before text)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-button",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "A customizable button web component built with Untitled UI design tokens",
5
5
  "keywords": [
6
6
  "web-components",
@@ -63,12 +63,13 @@
63
63
  "dependencies": {
64
64
  "@neovici/cosmoz-tokens": "^3.2.0",
65
65
  "@pionjs/pion": "^2.5.2",
66
+ "@playwright/test": "^1.60.0",
66
67
  "lit-html": "^3.3.1"
67
68
  },
68
69
  "devDependencies": {
69
70
  "@commitlint/cli": "^20.0.0",
70
71
  "@commitlint/config-conventional": "^20.4.1",
71
- "@neovici/cfg": "^2.8.0",
72
+ "@neovici/cfg": "^2.13.0",
72
73
  "@neovici/testing": "^2.0.0",
73
74
  "@open-wc/testing": "^4.0.0",
74
75
  "@semantic-release/changelog": "^6.0.0",