zc-ui-library 0.0.6 → 0.0.7

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