zc-ui-library 0.0.4 → 0.0.6
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/package.json +1 -1
- package/src/App.tsx +3 -2
- package/src/components/Button/ZcButton.tsx +4 -5
- package/src/index.ts +2 -1
package/package.json
CHANGED
package/src/App.tsx
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import './App.css'
|
|
2
|
-
import
|
|
2
|
+
import ZcButton from "./components/Button/ZcButton.tsx";
|
|
3
|
+
|
|
3
4
|
|
|
4
5
|
function App() {
|
|
5
6
|
|
|
6
7
|
return (
|
|
7
8
|
<>
|
|
8
|
-
<ZcButton>
|
|
9
|
+
<ZcButton>clickd</ZcButton>
|
|
9
10
|
</>
|
|
10
11
|
)
|
|
11
12
|
}
|
|
@@ -9,10 +9,7 @@ export interface ButtonProps
|
|
|
9
9
|
size?: ButtonSize
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
HTMLButtonElement,
|
|
14
|
-
ButtonProps
|
|
15
|
-
>(function ZcButton(
|
|
12
|
+
const ZcButton = React.forwardRef<HTMLButtonElement, ButtonProps>(function ZcButton(
|
|
16
13
|
{
|
|
17
14
|
variant = 'primary',
|
|
18
15
|
size = 'md',
|
|
@@ -49,4 +46,6 @@ export const ZcButton = React.forwardRef<
|
|
|
49
46
|
{children}
|
|
50
47
|
</button>
|
|
51
48
|
)
|
|
52
|
-
})
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
export default ZcButton;
|
package/src/index.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {ZcButton} from './components/Button/ZcButton';
|
|
1
|
+
export {default as ZcButton} from './components/Button/ZcButton';
|
|
2
|
+
export type {default as ZcButtonProps} from './components/Button/ZcButton';
|