@b3-crow/ui-kit 0.0.19 → 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.
Files changed (40) hide show
  1. package/.github/workflows/publish.yml +8 -4
  2. package/.husky/pre-commit +1 -1
  3. package/.prettierignore +1 -1
  4. package/README.md +35 -45
  5. package/bun.lock +1042 -0
  6. package/docs/screenshot.svg +57 -0
  7. package/package.json +22 -11
  8. package/src/components/coming-soon/AnimatedBackground.tsx +71 -0
  9. package/src/components/coming-soon/HeroText.tsx +40 -0
  10. package/src/components/coming-soon/Logo.tsx +27 -0
  11. package/src/components/coming-soon/Subtitle.tsx +37 -0
  12. package/src/components/coming-soon/TypewriterText.tsx +89 -0
  13. package/src/components/coming-soon/index.ts +5 -0
  14. package/src/index.ts +2 -5
  15. package/tsconfig.json +2 -2
  16. package/dist/components/ui/button.d.ts +0 -15
  17. package/dist/components/ui/button.d.ts.map +0 -1
  18. package/dist/components/ui/button.js +0 -33
  19. package/dist/components/ui/button.js.map +0 -1
  20. package/dist/components/ui/index.d.ts +0 -2
  21. package/dist/components/ui/index.d.ts.map +0 -1
  22. package/dist/components/ui/index.js +0 -2
  23. package/dist/components/ui/index.js.map +0 -1
  24. package/dist/index.d.ts +0 -3
  25. package/dist/index.d.ts.map +0 -1
  26. package/dist/index.js +0 -5
  27. package/dist/index.js.map +0 -1
  28. package/dist/lib/index.d.ts +0 -2
  29. package/dist/lib/index.d.ts.map +0 -1
  30. package/dist/lib/index.js +0 -2
  31. package/dist/lib/index.js.map +0 -1
  32. package/dist/lib/utils.d.ts +0 -3
  33. package/dist/lib/utils.d.ts.map +0 -1
  34. package/dist/lib/utils.js +0 -6
  35. package/dist/lib/utils.js.map +0 -1
  36. package/src/components/ui/button.tsx +0 -63
  37. package/src/components/ui/index.ts +0 -1
  38. package/src/lib/index.ts +0 -1
  39. package/src/lib/utils.ts +0 -7
  40. 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
- - uses: pnpm/action-setup@v4
67
- - run: pnpm install
68
- - run: pnpm build
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
- pnpm run lint-staged
1
+ bun run lint-staged
package/.prettierignore CHANGED
@@ -16,7 +16,7 @@ build/
16
16
  # Package manager files
17
17
  package-lock.json
18
18
  yarn.lock
19
- pnpm-lock.yaml
19
+ bun.lock
20
20
 
21
21
  # IDE files
22
22
  .vscode/
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 shadcn/ui and Tailwind CSS v4.
4
+ A React component library built with Framer Motion for smooth animations.
5
+
6
+ ## Preview
7
+
8
+ ![Coming Soon Page](./docs/screenshot.svg)
5
9
 
6
10
  ## Installation
7
11
 
8
12
  ```bash
9
- pnpm add @b3-crow/ui-kit
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
- pnpm add react react-dom
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
- ### Button Component
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 { Button } from '@b3-crow/ui-kit';
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
- <Button>Click me</Button>
58
- <Button variant="outline">Outline</Button>
59
- <Button variant="destructive">Delete</Button>
60
- <Button size="lg">Large</Button>
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
- - **Button**: Fully customizable button component with multiple variants and sizes
69
-
70
- ### Utilities
71
-
72
- - **cn**: Utility function for merging Tailwind classes
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
- pnpm install
74
+ bun install
85
75
 
86
76
  # Build the library
87
- pnpm run build
77
+ bun run build
88
78
 
89
79
  # Lint
90
- pnpm run lint
80
+ bun run lint
91
81
 
92
82
  # Format
93
- pnpm run format
83
+ bun run format
94
84
  ```
95
85
 
96
86
  ## License