@bouko/react 0.1.0 → 0.1.2

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.
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ type Props = {
3
+ style?: string;
4
+ onClick?: () => void;
5
+ children: ReactNode;
6
+ };
7
+ export default function Button({ style, ...props }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "@bouko/style";
3
+ export default function Button({ style, ...props }) {
4
+ return (_jsx("button", { className: cn("px-4 py-2 duration-200 cursor-pointer", "bg-accent hover:bg-accent-dark border border-accent-dark rounded", "font-semibold text-slate-100", style), ...props }));
5
+ }
@@ -0,0 +1 @@
1
+ export { default as Button } from "./components/button";
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { default as Button } from "./components/button";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
 
3
3
  "name": "@bouko/react",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  },
20
20
 
21
21
  "dependencies": {
22
- "@bouko/style": "^0.1.0",
22
+ "@bouko/style": "^0.1.1",
23
23
  "clsx": "^2.1.1",
24
24
  "tailwind-merge": "^3.3.0",
25
25
  "tailwind-variants": "^1.0.0"