@bouko/react 0.1.8 → 0.2.0
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,9 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export declare function ColumnBox({ style, children }: {
|
|
3
|
+
style?: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function RowBox({ style, children }: {
|
|
7
|
+
style?: string;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "@bouko/style";
|
|
3
|
+
export function ColumnBox({ style, children }) {
|
|
4
|
+
return (_jsx("div", { className: cn(style, "flex flex-col"), children: children }));
|
|
5
|
+
}
|
|
6
|
+
export function RowBox({ style, children }) {
|
|
7
|
+
return (_jsx("div", { className: cn(style, "flex"), children: children }));
|
|
8
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export { default as Select } from "./components/select";
|
|
|
4
4
|
export { default as MultipleChoice } from "./components/mcq";
|
|
5
5
|
export { default as Attachment } from "./components/attachment";
|
|
6
6
|
export { default as Button } from "./components/button";
|
|
7
|
+
export * from "./components/flex";
|
|
7
8
|
export * from "./core/types";
|
package/dist/index.js
CHANGED
|
@@ -4,4 +4,5 @@ export { default as Select } from "./components/select";
|
|
|
4
4
|
export { default as MultipleChoice } from "./components/mcq";
|
|
5
5
|
export { default as Attachment } from "./components/attachment";
|
|
6
6
|
export { default as Button } from "./components/button";
|
|
7
|
+
export * from "./components/flex";
|
|
7
8
|
export * from "./core/types";
|
package/package.json
CHANGED
|
@@ -1,31 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
|
|
3
3
|
"name": "@bouko/react",
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
|
|
5
7
|
"main": "./dist/index.js",
|
|
8
|
+
|
|
6
9
|
"types": "./dist/index.d.ts",
|
|
10
|
+
|
|
7
11
|
"license": "MIT",
|
|
12
|
+
|
|
8
13
|
"files": [
|
|
14
|
+
|
|
9
15
|
"dist"
|
|
16
|
+
|
|
10
17
|
],
|
|
18
|
+
|
|
11
19
|
"publishConfig": {
|
|
20
|
+
|
|
12
21
|
"access": "public"
|
|
22
|
+
|
|
13
23
|
},
|
|
24
|
+
|
|
14
25
|
"author": "",
|
|
26
|
+
|
|
15
27
|
"description": "",
|
|
16
28
|
|
|
17
29
|
"scripts": {
|
|
30
|
+
|
|
18
31
|
"build": "tsc"
|
|
32
|
+
|
|
19
33
|
},
|
|
20
34
|
|
|
21
35
|
"dependencies": {
|
|
36
|
+
|
|
22
37
|
"@bouko/style": "^0.1.1",
|
|
38
|
+
|
|
23
39
|
"clsx": "^2.1.1",
|
|
40
|
+
|
|
24
41
|
"framer-motion": "^12.16.0",
|
|
42
|
+
|
|
25
43
|
"tailwind-merge": "^3.3.0",
|
|
44
|
+
|
|
26
45
|
"tailwind-variants": "^1.0.0"
|
|
27
|
-
},
|
|
28
46
|
|
|
29
|
-
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}
|
|
30
50
|
|
|
31
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="1em" height="1em">
|
|
2
|
-
<path
|
|
3
|
-
d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"
|
|
4
|
-
fill="currentColor"
|
|
5
|
-
/>
|
|
6
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" width="1em" height="1em">
|
|
2
|
-
<path
|
|
3
|
-
d="M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"
|
|
4
|
-
fill="currentColor"
|
|
5
|
-
/>
|
|
6
|
-
</svg>
|