@justeattakeaway/pie-button 1.13.3 → 1.14.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.
@@ -195,6 +195,14 @@
195
195
  }
196
196
  ],
197
197
  "members": [
198
+ {
199
+ "kind": "field",
200
+ "name": "aria",
201
+ "type": {
202
+ "text": "ButtonProps['aria']"
203
+ },
204
+ "privacy": "public"
205
+ },
198
206
  {
199
207
  "kind": "field",
200
208
  "name": "tag",
package/dist/index.d.ts CHANGED
@@ -7,7 +7,15 @@ import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElem
7
7
  import { PropertyValues } from 'lit';
8
8
  import { TemplateResult } from 'lit';
9
9
 
10
+ declare type AriaProps = {
11
+ label?: string;
12
+ };
13
+
10
14
  export declare interface ButtonProps {
15
+ /**
16
+ * The ARIA attributes for the button element.
17
+ */
18
+ aria?: AriaProps;
11
19
  /**
12
20
  * Which HTML element to use when rendering the button.
13
21
  */
@@ -131,6 +139,7 @@ export declare class PieButton extends PieButton_base implements ButtonProps {
131
139
  connectedCallback(): void;
132
140
  disconnectedCallback(): void;
133
141
  updated(changedProperties: PropertyValues<this>): void;
142
+ aria: ButtonProps['aria'];
134
143
  tag: "button" | "a";
135
144
  size: "xsmall" | "small-productive" | "small-expressive" | "medium" | "large";
136
145
  type: "button" | "submit" | "reset";