@pnkx-lib/ui 1.9.294 → 1.9.296

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.
Files changed (2) hide show
  1. package/es/ui/Button.js +8 -2
  2. package/package.json +1 -1
package/es/ui/Button.js CHANGED
@@ -3,14 +3,20 @@ import { Button as Button$1 } from 'antd';
3
3
  import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
4
4
 
5
5
  const Button = (props) => {
6
+ const { onClick, ...restProps } = props;
7
+ const handleClick = (e) => {
8
+ e.currentTarget.blur();
9
+ onClick?.(e);
10
+ };
6
11
  return /* @__PURE__ */ jsx(
7
12
  Button$1,
8
13
  {
9
- ...props,
10
14
  className: twMerge(
11
15
  props.type === "default" || props.type === void 0 ? "pnkx-default-border-default-button" : "",
12
16
  props.className
13
- )
17
+ ),
18
+ onClick: handleClick,
19
+ ...restProps
14
20
  }
15
21
  );
16
22
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.294",
4
+ "version": "1.9.296",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",