@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.
- package/custom-elements.json +8 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +538 -527
- package/dist/react.d.ts +9 -0
- package/package.json +8 -10
- package/src/defs.ts +9 -0
- package/src/index.ts +8 -3
package/custom-elements.json
CHANGED
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";
|