@ttianqii/takaui 0.0.7 → 0.0.9

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/README.md CHANGED
@@ -6,15 +6,16 @@
6
6
 
7
7
  A modern, customizable React UI component library built with TypeScript, Tailwind CSS, and Radix UI primitives.
8
8
 
9
- **Current Version:** 0.0.6
9
+ **Current Version:** 0.0.9
10
10
 
11
- ## ✨ What's New in 0.0.6
11
+ ## ✨ What's New in 0.0.9
12
12
 
13
- - 🎯 **DatePicker Range Selection** - Select date ranges with 1 or 2 month views
14
- - 🎨 **Enhanced Hover States** - Improved visual feedback for range selection
15
- - 🔧 **DataGrid System** - New modular table components for better composition
16
- - 📅 **Schedule Component** - Now supports Date type in custom metadata fields
17
- - 🐛 **Bug Fixes** - Text alignment and various improvements
13
+ - 🎨 **No CSS Imports Needed!** - Works like shadcn/ui with pure Tailwind CSS
14
+ - **Zero Bundle Bloat** - No CSS bundled with components
15
+ - 🔧 **Converted to Tailwind** - All components use Tailwind classes (Button, DatePicker, Popover)
16
+ - 🎯 **Original Design Preserved** - Black selected states, all original styling maintained
17
+ - 📦 **Better Tree Shaking** - Set `sideEffects: false` for optimal bundle size
18
+ - 🧹 **Cleaner API** - Removed inline styles and data attributes
18
19
 
19
20
  ## 📦 Installation
20
21
 
@@ -29,9 +30,10 @@ npx takaui-setup
29
30
 
30
31
  This will:
31
32
  - ✅ Configure your Tailwind config automatically
32
- - ✅ Add CSS import to your main file
33
33
  - ✅ Verify your setup is correct
34
34
 
35
+ **No CSS imports needed!** Components work with pure Tailwind CSS.
36
+
35
37
  ### Manual Installation
36
38
 
37
39
  If you prefer manual setup:
@@ -50,6 +52,8 @@ pnpm add @ttianqii/takaui
50
52
  bun add @ttianqii/takaui
51
53
  ```
52
54
 
55
+ **That's it!** Just make sure you have Tailwind CSS configured in your project.
56
+
53
57
  ### Peer Dependencies
54
58
 
55
59
  TakaUI requires React 18+ or React 19+:
@@ -70,7 +74,18 @@ bun add react react-dom
70
74
 
71
75
  ### Tailwind CSS Setup
72
76
 
73
- TakaUI uses Tailwind CSS for styling. Add the TakaUI paths to your `tailwind.config.js`:
77
+ **Important:** TakaUI uses Tailwind CSS for styling (no CSS imports needed!). You must have Tailwind CSS configured in your project.
78
+
79
+ #### 1. Install Tailwind CSS (if not already installed)
80
+
81
+ ```bash
82
+ npm install -D tailwindcss postcss autoprefixer
83
+ npx tailwindcss init -p
84
+ ```
85
+
86
+ #### 2. Configure Tailwind
87
+
88
+ Add TakaUI to your `tailwind.config.js` content paths:
74
89
 
75
90
  ```js
76
91
  /** @type {import('tailwindcss').Config} */
@@ -87,15 +102,17 @@ export default {
87
102
  }
88
103
  ```
89
104
 
90
- ### Import Styles
105
+ #### 3. Add Tailwind directives
91
106
 
92
- Import the TakaUI styles in your main entry file (e.g., `main.tsx` or `App.tsx`):
107
+ In your main CSS file (e.g., `src/index.css`):
93
108
 
94
- ```tsx
95
- import '@ttianqii/takaui/styles.css'
109
+ ```css
110
+ @tailwind base;
111
+ @tailwind components;
112
+ @tailwind utilities;
96
113
  ```
97
114
 
98
- **💡 Tip:** Run `npx takaui-setup` to automatically add this import!
115
+ **That's it!** No CSS imports needed from TakaUI. 🎉
99
116
 
100
117
  ## 🚀 Quick Start
101
118