@sequencing/design-system 0.0.103 → 0.0.104

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.
@@ -127,8 +127,8 @@
127
127
  "defaultValue": null,
128
128
  "description": "Called when a click is performed. The HTML event will be sent to this function",
129
129
  "name": "onClick",
130
- "required": true,
131
- "type": "(event: MouseEvent<HTMLButtonElement, MouseEvent>) => void"
130
+ "required": false,
131
+ "type": "((event: MouseEvent<HTMLButtonElement, MouseEvent>) => void)"
132
132
  },
133
133
  "form": {
134
134
  "defaultValue": null,
@@ -25,7 +25,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
25
25
  /** Determines icon position to the left or right of the label text. Default: ``left`` */
26
26
  iconPosition?: "left" | "right";
27
27
  /** Called when a click is performed. The HTML event will be sent to this function */
28
- onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
28
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
29
29
  }
30
30
  /**
31
31
  * The Button component is used to trigger an action or event,
package/dist/index.d.ts CHANGED
@@ -78,7 +78,7 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
78
78
  /** Determines icon position to the left or right of the label text. Default: ``left`` */
79
79
  iconPosition?: "left" | "right";
80
80
  /** Called when a click is performed. The HTML event will be sent to this function */
81
- onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
81
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
82
82
  }
83
83
  /**
84
84
  * The Button component is used to trigger an action or event,
@@ -25,7 +25,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
25
25
  /** Determines icon position to the left or right of the label text. Default: ``left`` */
26
26
  iconPosition?: "left" | "right";
27
27
  /** Called when a click is performed. The HTML event will be sent to this function */
28
- onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
28
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
29
29
  }
30
30
  /**
31
31
  * The Button component is used to trigger an action or event,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequencing/design-system",
3
- "version": "0.0.103",
3
+ "version": "0.0.104",
4
4
  "description": "Sequencing Design System",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\"",