@bouko/react 0.4.0 → 0.4.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.
@@ -6,4 +6,4 @@ export type ButtonProps = {
6
6
  onClick?: () => void;
7
7
  children: ReactNode;
8
8
  };
9
- export default function Button({ variant, style, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function Button({ variant, style, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn, tv } from "@bouko/style";
3
- export default function Button({ variant, style, ...props }) {
3
+ export function Button({ variant, style, ...props }) {
4
4
  return (_jsx("button", { className: cn(styles({ variant }), style), ...props }));
5
5
  }
6
6
  const styles = tv({
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from "@bouko/style";
3
3
  export function ColumnBox({ style, children }) {
4
- return (_jsx("div", { className: cn(style, "flex flex-col"), children: children }));
4
+ return (_jsx("div", { className: cn("flex flex-col", style), children: children }));
5
5
  }
6
6
  export function RowBox({ style, children }) {
7
- return (_jsx("div", { className: cn(style, "flex"), children: children }));
7
+ return (_jsx("div", { className: cn("flex", style), children: children }));
8
8
  }
package/package.json CHANGED
@@ -1,52 +1,32 @@
1
1
  {
2
2
 
3
3
  "name": "@bouko/react",
4
-
5
- "version": "0.4.0",
6
-
4
+ "version": "0.4.2",
7
5
  "main": "./dist/index.js",
8
-
9
6
  "types": "./dist/index.d.ts",
10
-
11
7
  "license": "MIT",
12
-
13
8
  "files": [
14
-
15
9
  "dist"
16
-
17
10
  ],
18
-
19
11
  "publishConfig": {
20
-
21
12
  "access": "public"
22
-
23
13
  },
24
-
25
14
  "author": "",
26
-
27
15
  "description": "",
28
16
 
29
17
  "scripts": {
30
-
31
18
  "build": "tsc"
32
-
33
19
  },
34
20
 
35
21
  "dependencies": {
36
-
37
22
  "@bouko/form": "^0.2.1",
38
-
39
23
  "@bouko/style": "^0.1.1",
40
-
41
24
  "clsx": "^2.1.1",
42
-
43
25
  "framer-motion": "^12.16.0",
44
-
45
26
  "tailwind-merge": "^3.3.0",
46
-
47
27
  "tailwind-variants": "^1.0.0"
28
+ },
48
29
 
49
- }
50
-
51
- }
30
+ "devDependencies": {}
52
31
 
32
+ }