zc-ui-library 0.0.4 → 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.4",
4
+ "version": "0.0.7",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
package/src/App.tsx CHANGED
@@ -5,7 +5,7 @@ function App() {
5
5
 
6
6
  return (
7
7
  <>
8
- <ZcButton>Click me</ZcButton>
8
+ <ZcButton variant='primary'>clicked</ZcButton>
9
9
  </>
10
10
  )
11
11
  }
@@ -9,10 +9,7 @@ export interface ButtonProps
9
9
  size?: ButtonSize
10
10
  }
11
11
 
12
- export const ZcButton = React.forwardRef<
13
- HTMLButtonElement,
14
- ButtonProps
15
- >(function ZcButton(
12
+ export const ZcButton = React.forwardRef<HTMLButtonElement, ButtonProps>(function ZcButton(
16
13
  {
17
14
  variant = 'primary',
18
15
  size = 'md',
package/src/index.ts CHANGED
@@ -1 +1 @@
1
- export {ZcButton} from './components/Button/ZcButton';
1
+ export {ZcButton} from './components/Button/ZcButton.tsx';