@b3-crow/ui-kit 0.0.18 → 0.0.23
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/.github/workflows/publish.yml +8 -4
- package/.husky/pre-commit +1 -1
- package/.prettierignore +1 -1
- package/README.md +35 -45
- package/bun.lock +1042 -0
- package/docs/screenshot.svg +57 -0
- package/package.json +22 -11
- package/src/components/coming-soon/AnimatedBackground.tsx +71 -0
- package/src/components/coming-soon/HeroText.tsx +40 -0
- package/src/components/coming-soon/Logo.tsx +27 -0
- package/src/components/coming-soon/Subtitle.tsx +37 -0
- package/src/components/coming-soon/TypewriterText.tsx +89 -0
- package/src/components/coming-soon/index.ts +5 -0
- package/src/index.ts +2 -5
- package/tsconfig.json +2 -2
- package/dist/components/ui/button.d.ts +0 -15
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -33
- package/dist/components/ui/button.js.map +0 -1
- package/dist/components/ui/index.d.ts +0 -2
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/components/ui/index.js +0 -2
- package/dist/components/ui/index.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -5
- package/dist/index.js.map +0 -1
- package/dist/lib/index.d.ts +0 -2
- package/dist/lib/index.d.ts.map +0 -1
- package/dist/lib/index.js +0 -2
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -6
- package/dist/lib/utils.js.map +0 -1
- package/src/components/ui/button.tsx +0 -63
- package/src/components/ui/index.ts +0 -1
- package/src/lib/index.ts +0 -1
- package/src/lib/utils.ts +0 -7
- package/src/styles/globals.css +0 -7
|
@@ -59,13 +59,17 @@ jobs:
|
|
|
59
59
|
packages: write
|
|
60
60
|
steps:
|
|
61
61
|
- uses: actions/checkout@v4
|
|
62
|
+
- name: Pull latest version changes
|
|
63
|
+
run: git pull origin ${{ github.ref_name }}
|
|
64
|
+
- uses: oven-sh/setup-bun@v2
|
|
65
|
+
with:
|
|
66
|
+
bun-version: latest
|
|
62
67
|
- uses: actions/setup-node@v4
|
|
63
68
|
with:
|
|
64
69
|
node-version: '20.x'
|
|
65
70
|
registry-url: 'https://registry.npmjs.org'
|
|
66
|
-
-
|
|
67
|
-
- run:
|
|
68
|
-
- run:
|
|
69
|
-
- run: pnpm publish --no-git-checks
|
|
71
|
+
- run: bun install
|
|
72
|
+
- run: bun run build
|
|
73
|
+
- run: bunx npm publish --no-git-checks
|
|
70
74
|
env:
|
|
71
75
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.husky/pre-commit
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
bun run lint-staged
|
package/.prettierignore
CHANGED
package/README.md
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# CROW-B3 UI Kit
|
|
2
2
|
|
|
3
3
|
CROW-B3 UI Kit is a set of UI components for CROW-B3 projects.
|
|
4
|
-
A React component library built with
|
|
4
|
+
A React component library built with Framer Motion for smooth animations.
|
|
5
|
+
|
|
6
|
+
## Preview
|
|
7
|
+
|
|
8
|
+

|
|
5
9
|
|
|
6
10
|
## Installation
|
|
7
11
|
|
|
8
12
|
```bash
|
|
9
|
-
|
|
13
|
+
bun add @b3-crow/ui-kit
|
|
10
14
|
```
|
|
11
15
|
|
|
12
16
|
## Local Development
|
|
@@ -20,44 +24,36 @@ pnpm add @b3-crow/ui-kit
|
|
|
20
24
|
### 1. Install Peer Dependencies
|
|
21
25
|
|
|
22
26
|
```bash
|
|
23
|
-
|
|
24
|
-
pnpm add -D tailwindcss @tailwindcss/postcss postcss
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### 2. Configure PostCSS
|
|
28
|
-
|
|
29
|
-
Create or update `postcss.config.mjs`:
|
|
30
|
-
|
|
31
|
-
```js
|
|
32
|
-
export default {
|
|
33
|
-
plugins: {
|
|
34
|
-
'@tailwindcss/postcss': {},
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### 3. Import Styles
|
|
40
|
-
|
|
41
|
-
Import the global styles in your app:
|
|
42
|
-
|
|
43
|
-
```tsx
|
|
44
|
-
import '@b3-crow/ui-kit/dist/styles/globals.css';
|
|
27
|
+
bun add react react-dom framer-motion
|
|
45
28
|
```
|
|
46
29
|
|
|
47
30
|
## Usage
|
|
48
31
|
|
|
49
|
-
###
|
|
32
|
+
### Coming Soon Components
|
|
33
|
+
|
|
34
|
+
The UI kit includes a complete Coming Soon page with animated components:
|
|
50
35
|
|
|
51
36
|
```tsx
|
|
52
|
-
import {
|
|
37
|
+
import {
|
|
38
|
+
AnimatedBackground,
|
|
39
|
+
HeroText,
|
|
40
|
+
Logo,
|
|
41
|
+
TypewriterText,
|
|
42
|
+
Subtitle,
|
|
43
|
+
} from '@b3-crow/ui-kit';
|
|
53
44
|
|
|
54
45
|
function App() {
|
|
55
46
|
return (
|
|
56
47
|
<div>
|
|
57
|
-
<
|
|
58
|
-
<
|
|
59
|
-
<
|
|
60
|
-
<
|
|
48
|
+
<AnimatedBackground />
|
|
49
|
+
<Logo src="/your-logo.png" alt="Your Logo" />
|
|
50
|
+
<HeroText text="Your Brand" />
|
|
51
|
+
<TypewriterText text="COMING SOON" />
|
|
52
|
+
<Subtitle>
|
|
53
|
+
Your subtitle text here
|
|
54
|
+
<br />
|
|
55
|
+
Can be multi-line with custom formatting
|
|
56
|
+
</Subtitle>
|
|
61
57
|
</div>
|
|
62
58
|
);
|
|
63
59
|
}
|
|
@@ -65,32 +61,26 @@ function App() {
|
|
|
65
61
|
|
|
66
62
|
### Available Components
|
|
67
63
|
|
|
68
|
-
- **
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- **
|
|
73
|
-
|
|
74
|
-
```tsx
|
|
75
|
-
import { cn } from '@b3-crow/ui-kit';
|
|
76
|
-
|
|
77
|
-
const className = cn('px-4 py-2', 'bg-blue-500', { 'text-white': true });
|
|
78
|
-
```
|
|
64
|
+
- **AnimatedBackground**: Animated gradient background with blurred circles
|
|
65
|
+
- **HeroText**: Large gradient text with fade-in animation (requires `text` prop, optional `gradient` prop)
|
|
66
|
+
- **Logo**: Animated logo component with breathing effect (requires `src` and `alt` props)
|
|
67
|
+
- **TypewriterText**: Typewriter effect text with blinking cursor (requires `text` prop)
|
|
68
|
+
- **Subtitle**: Subtitle text with fade-in animation (requires `children` for custom JSX content)
|
|
79
69
|
|
|
80
70
|
## Development
|
|
81
71
|
|
|
82
72
|
```bash
|
|
83
73
|
# Install dependencies
|
|
84
|
-
|
|
74
|
+
bun install
|
|
85
75
|
|
|
86
76
|
# Build the library
|
|
87
|
-
|
|
77
|
+
bun run build
|
|
88
78
|
|
|
89
79
|
# Lint
|
|
90
|
-
|
|
80
|
+
bun run lint
|
|
91
81
|
|
|
92
82
|
# Format
|
|
93
|
-
|
|
83
|
+
bun run format
|
|
94
84
|
```
|
|
95
85
|
|
|
96
86
|
## License
|