@bolttech/atoms-button 0.24.4 → 0.25.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.
package/index.cjs CHANGED
@@ -1272,7 +1272,7 @@ const Button = /*#__PURE__*/react.forwardRef((_a, ref) => {
1272
1272
  disabled: disabled,
1273
1273
  type: type,
1274
1274
  "$fullWidth": fullWidth,
1275
- onClick: () => !disabled && onClick && onClick(),
1275
+ onClick: event => !disabled && onClick && onClick(event),
1276
1276
  ref: ref
1277
1277
  }, uiUtils.applyDataAttributes(props), {
1278
1278
  children: jsxRuntime.jsxs(Container, {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@bolttech/atoms-button",
3
- "version": "0.24.4",
3
+ "version": "0.25.1",
4
4
  "main": "./index.cjs",
5
5
  "type": "commonjs",
6
6
  "types": "./src/index.d.ts",
7
7
  "dependencies": {
8
8
  "@bolttech/atoms-icon": "0.22.1",
9
9
  "@bolttech/default-theme": "0.3.1",
10
- "@bolttech/frontend-foundations": "0.3.1",
10
+ "@bolttech/frontend-foundations": "0.6.0",
11
11
  "@bolttech/ui-utils": "0.2.4",
12
12
  "react": "18.2.0",
13
13
  "styled-components": "6.1.1"
@@ -9,6 +9,6 @@ export declare const Button: React.ForwardRefExoticComponent<import("@bolttech/u
9
9
  iconLeft?: string | undefined;
10
10
  type?: import("./atoms-button.type").ButtonTypes | undefined;
11
11
  fullWidth?: boolean | undefined;
12
- onClick?: (() => void) | undefined;
12
+ onClick?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
13
13
  } & React.RefAttributes<HTMLButtonElement>>;
14
14
  export default Button;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DefaultProps } from '@bolttech/ui-utils';
2
3
  export type ButtonVariants = 'transaction' | 'brand' | 'alternative' | 'outline' | 'ghost';
3
4
  export type ButtonSizes = 'sm' | 'md' | 'lg';
@@ -12,5 +13,5 @@ export type ButtonProps = DefaultProps & {
12
13
  iconLeft?: string;
13
14
  type?: ButtonTypes;
14
15
  fullWidth?: boolean;
15
- onClick?: () => void;
16
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
16
17
  };