belong-ui-lib 1.0.8 → 1.0.10

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './button.css';
2
+ import './index.css';
3
3
  type ButtonType = 'default' | 'primary' | 'dashed' | 'text';
4
4
  interface ButtonProps {
5
5
  type?: ButtonType;
@@ -1,13 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import './button.css';
2
+ import './index.css';
3
3
  var Button = function (_a) {
4
4
  var _b = _a.type, type = _b === void 0 ? 'default' : _b, onClick = _a.onClick, children = _a.children;
5
5
  var className = [
6
6
  'ant-btn',
7
7
  "ant-btn-".concat(type),
8
- ]
9
- .filter(Boolean)
10
- .join(' ');
8
+ ].join(' ');
11
9
  var handleClick = function (e) {
12
10
  onClick === null || onClick === void 0 ? void 0 : onClick(e);
13
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "belong-ui-lib",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "belong-ui-lib",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import './button.css'
2
+ import './index.css'
3
3
 
4
4
  type ButtonType = 'default' | 'primary' | 'dashed' | 'text'
5
5
 
@@ -17,9 +17,7 @@ const Button: React.FC<ButtonProps> = ({
17
17
  const className = [
18
18
  'ant-btn',
19
19
  `ant-btn-${type}`,
20
- ]
21
- .filter(Boolean)
22
- .join(' ')
20
+ ].join(' ')
23
21
 
24
22
  const handleClick: React.MouseEventHandler<HTMLButtonElement> = (e) => {
25
23
  onClick?.(e)
package/dist/Button.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- export interface ButtonProps {
3
- text: string;
4
- onClick?: () => void;
5
- }
6
- declare const Button: React.FC<ButtonProps>;
7
- export default Button;
package/dist/Button.js DELETED
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- var Button = function (_a) {
3
- var text = _a.text, onClick = _a.onClick;
4
- console.log(11111);
5
- return (_jsx("button", { style: { padding: "8px 16px", cursor: "pointer" }, onClick: onClick, children: text }));
6
- };
7
- export default Button;