@justeattakeaway/pie-button 0.44.0 → 0.45.1

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.
@@ -2,6 +2,12 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "readme": "",
4
4
  "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/defs-react.js",
8
+ "declarations": [],
9
+ "exports": []
10
+ },
5
11
  {
6
12
  "kind": "javascript-module",
7
13
  "path": "src/defs.js",
package/dist/index.d.ts CHANGED
@@ -9,15 +9,15 @@ export declare interface ButtonProps {
9
9
  /**
10
10
  * What size the button should be.
11
11
  */
12
- size: typeof sizes[number];
12
+ size?: typeof sizes[number];
13
13
  /**
14
14
  * What type attribute should be applied to the button. For example submit, button.
15
15
  */
16
- type: typeof types[number];
16
+ type?: typeof types[number];
17
17
  /**
18
18
  * What style variant the button should be such as primary, outline or ghost.
19
19
  */
20
- variant: Variant;
20
+ variant?: Variant;
21
21
  /**
22
22
  * The placement of the icon slot, if provided, such as leading or trailing
23
23
  */
@@ -25,19 +25,19 @@ export declare interface ButtonProps {
25
25
  /**
26
26
  * When true, the button element is disabled.
27
27
  */
28
- disabled: boolean;
28
+ disabled?: boolean;
29
29
  /**
30
30
  * When true, the button element will occupy the full width of its container.
31
31
  */
32
- isFullWidth: boolean;
32
+ isFullWidth?: boolean;
33
33
  /**
34
34
  * When true, displays a loading indicator inside the button.
35
35
  */
36
- isLoading: boolean;
36
+ isLoading?: boolean;
37
37
  /**
38
38
  * When true, enables the responsive size feature.
39
39
  */
40
- isResponsive: boolean;
40
+ isResponsive?: boolean;
41
41
  /**
42
42
  * The name of the button, submitted as a pair with the button's value as part of the form data, when that button is used to submit the form.
43
43
  * [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attributes)