@ttianqii/takaui 0.0.6 → 0.0.7

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
@@ -1,9 +1,41 @@
1
1
  # TakaUI
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@ttianqii/takaui.svg)](https://www.npmjs.com/package/@ttianqii/takaui)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@ttianqii/takaui.svg)](https://www.npmjs.com/package/@ttianqii/takaui)
5
+ [![license](https://img.shields.io/npm/l/@ttianqii/takaui.svg)](https://github.com/ttianqii/takaui/blob/main/LICENSE)
6
+
3
7
  A modern, customizable React UI component library built with TypeScript, Tailwind CSS, and Radix UI primitives.
4
8
 
9
+ **Current Version:** 0.0.6
10
+
11
+ ## ✨ What's New in 0.0.6
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
18
+
5
19
  ## 📦 Installation
6
20
 
21
+ ### Quick Setup (Recommended)
22
+
23
+ Run the automatic setup wizard:
24
+
25
+ ```bash
26
+ npm install @ttianqii/takaui
27
+ npx takaui-setup
28
+ ```
29
+
30
+ This will:
31
+ - ✅ Configure your Tailwind config automatically
32
+ - ✅ Add CSS import to your main file
33
+ - ✅ Verify your setup is correct
34
+
35
+ ### Manual Installation
36
+
37
+ If you prefer manual setup:
38
+
7
39
  ```bash
8
40
  # npm
9
41
  npm install @ttianqii/takaui
@@ -63,15 +95,18 @@ Import the TakaUI styles in your main entry file (e.g., `main.tsx` or `App.tsx`)
63
95
  import '@ttianqii/takaui/styles.css'
64
96
  ```
65
97
 
98
+ **💡 Tip:** Run `npx takaui-setup` to automatically add this import!
99
+
66
100
  ## 🚀 Quick Start
67
101
 
68
102
  ```tsx
69
- import { Calendar, TimePicker, DataTable } from '@ttianqii/takaui'
103
+ import { DatePicker, TimePicker, DataTable } from '@ttianqii/takaui'
70
104
  import '@ttianqii/takaui/styles.css'
71
105
  import { useState } from 'react'
72
106
 
73
107
  function App() {
74
108
  const [date, setDate] = useState<Date | undefined>(new Date())
109
+ const [dateRange, setDateRange] = useState<{ from: Date; to?: Date }>()
75
110
 
76
111
  // DataTable example - No TanStack required!
77
112
  const columns = [
@@ -95,10 +130,18 @@ function App() {
95
130
 
96
131
  return (
97
132
  <div>
98
- <Calendar
99
- mode="single"
100
- selected={date}
101
- onSelect={setDate}
133
+ {/* Single Date Picker */}
134
+ <DatePicker
135
+ date={date}
136
+ onDateChange={setDate}
137
+ />
138
+
139
+ {/* Date Range Picker - NEW! */}
140
+ <DatePicker
141
+ mode="range"
142
+ dateRange={dateRange}
143
+ onDateRangeChange={setDateRange}
144
+ numberOfMonths={2}
102
145
  />
103
146
 
104
147
  <DataTable
@@ -120,18 +163,25 @@ TakaUI includes the following components:
120
163
 
121
164
  - **[Calendar](./docs/CALENDAR.md)** - Flexible date picker with multiple selection modes
122
165
  - **[DatePicker](./docs/DATEPICKER.md)** - Date picker with popover and custom formatting
166
+ - ✨ **NEW:** Range selection with dual month view
167
+ - ✨ **NEW:** Enhanced hover states for better UX
123
168
  - **[TimePicker](./docs/TIMEPICKER.md)** - Time picker with 12h/24h formats and timezone support
124
169
  - **[DropdownMenu](./docs/DROPDOWN.md)** - Accessible dropdown menu component
125
170
 
126
171
  ### Data Display Components
127
172
 
128
- - **[DataTable](./docs/DATATABLE_NEW.md)** - **NEW!** Independent table with sorting, filtering, and pagination (No TanStack!)
173
+ - **[DataTable](./docs/DATATABLE_NEW.md)** - Independent table with sorting, filtering, and pagination (No TanStack!)
129
174
  - ✅ Zero external dependencies (except icons)
130
175
  - ✅ Built-in sorting, pagination, search
131
176
  - ✅ Custom cell rendering
132
177
  - ✅ Loading states
133
178
  - [Quick Reference](./DATATABLE_QUICKREF.md) - Cheat sheet
179
+ - **DataGrid System** - ✨ **NEW!** Modular table components for custom layouts
180
+ - DataGrid, DataGridTable, DataGridPagination
181
+ - DataGridColumnHeader, DataGridRowSelect
182
+ - Perfect for complex table compositions
134
183
  - **[Schedule](./docs/SCHEDULE.md)** - Weekly schedule component with custom fields
184
+ - ✨ **NEW:** Supports Date type in metadata
135
185
  - **[WeekNavigator](./docs/WEEKNAVIGATOR.md)** - Week navigation with date range display
136
186
 
137
187
  ### Advanced Table System (Optional)