@bouko/react 0.3.4 → 0.3.5
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/dist/components/badge.d.ts +5 -0
- package/dist/components/badge.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +25 -4
- package/dist/assets/icons/check.svg +0 -6
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export default async function Badge({ style, children }) {
|
|
3
|
+
return (_jsx("span", { className: "w-min px-3 py-1 bg-accent/20 border border-accent-dark rounded-full text-xs text-accent-dark font-semibold", children: children }));
|
|
4
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { default as Attachment } from "./components/attachment";
|
|
|
6
6
|
export { default as Button } from "./components/button";
|
|
7
7
|
export { default as CheckBox } from "./components/checkbox";
|
|
8
8
|
export { default as Heading } from "./components/heading";
|
|
9
|
+
export { default as Badge } from "./components/badge";
|
|
9
10
|
export * from "./components/flex";
|
|
10
11
|
export * from "./core/types";
|
|
11
12
|
export * from "./core/functions";
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export { default as Attachment } from "./components/attachment";
|
|
|
6
6
|
export { default as Button } from "./components/button";
|
|
7
7
|
export { default as CheckBox } from "./components/checkbox";
|
|
8
8
|
export { default as Heading } from "./components/heading";
|
|
9
|
+
export { default as Badge } from "./components/badge";
|
|
9
10
|
export * from "./components/flex";
|
|
10
11
|
export * from "./core/types";
|
|
11
12
|
export * from "./core/functions";
|
package/package.json
CHANGED
|
@@ -1,31 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
|
|
3
3
|
"name": "@bouko/react",
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
"version": "0.3.5",
|
|
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
|
+
|
|
37
|
+
"@bouko/form": "^0.2.1",
|
|
38
|
+
|
|
22
39
|
"@bouko/style": "^0.1.1",
|
|
40
|
+
|
|
23
41
|
"clsx": "^2.1.1",
|
|
42
|
+
|
|
24
43
|
"framer-motion": "^12.16.0",
|
|
44
|
+
|
|
25
45
|
"tailwind-merge": "^3.3.0",
|
|
46
|
+
|
|
26
47
|
"tailwind-variants": "^1.0.0"
|
|
27
|
-
},
|
|
28
48
|
|
|
29
|
-
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
}
|
|
30
52
|
|
|
31
|
-
}
|
|
@@ -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="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"
|
|
4
|
-
fill="currentColor"
|
|
5
|
-
/>
|
|
6
|
-
</svg>
|