@ttianqii/takaui 0.1.3 → 0.1.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/package.json CHANGED
@@ -1,8 +1,24 @@
1
1
  {
2
2
  "name": "@ttianqii/takaui",
3
3
  "private": false,
4
- "version": "0.1.3",
4
+ "version": "0.1.5",
5
5
  "type": "module",
6
+ "description": "Modern React UI component library with Calendar, DatePicker, TimePicker, DataTable and more",
7
+ "keywords": [
8
+ "react",
9
+ "ui",
10
+ "components",
11
+ "calendar",
12
+ "datepicker",
13
+ "datatable",
14
+ "takaui"
15
+ ],
16
+ "author": "ttianqii",
17
+ "license": "MIT",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/ttianqii/takaui"
21
+ },
6
22
  "main": "./dist/takaui.cjs",
7
23
  "module": "./dist/takaui.js",
8
24
  "types": "./dist/index.d.ts",
@@ -11,19 +27,16 @@
11
27
  "types": "./dist/index.d.ts",
12
28
  "import": "./dist/takaui.js",
13
29
  "require": "./dist/takaui.cjs"
14
- }
30
+ },
31
+ "./styles": "./dist/styles.css"
15
32
  },
16
33
  "files": [
17
- "dist",
18
- "src/cli"
34
+ "dist"
19
35
  ],
20
- "bin": {
21
- "takaui-setup": "./src/cli/setup.js"
22
- },
23
36
  "sideEffects": false,
24
37
  "scripts": {
25
38
  "dev": "vite --port=15177",
26
- "build": "tsc -b && vite build",
39
+ "build": "tsc && vite build",
27
40
  "lint": "eslint .",
28
41
  "preview": "vite preview",
29
42
  "prepublishOnly": "npm run build"
@@ -43,18 +56,17 @@
43
56
  "@radix-ui/react-popover": "^1.1.15",
44
57
  "@radix-ui/react-select": "^2.2.6",
45
58
  "@radix-ui/react-slot": "^1.1.2",
46
- "@ttianqii/takaui": "^0.0.2",
47
59
  "class-variance-authority": "^0.7.1",
48
60
  "clsx": "^2.1.1",
49
61
  "date-fns": "^4.1.0",
50
62
  "date-holidays": "^3.26.5",
51
63
  "lucide-react": "^0.554.0",
52
64
  "react-day-picker": "^9.11.1",
53
- "react-router-dom": "^7.9.6",
54
65
  "tailwind-merge": "^2.5.5"
55
66
  },
56
67
  "devDependencies": {
57
68
  "@eslint/js": "^9.39.1",
69
+ "@tanstack/react-table": "^8.21.3",
58
70
  "@types/node": "^24.10.0",
59
71
  "@types/react": "^19.2.6",
60
72
  "@types/react-dom": "^19.2.3",
@@ -67,6 +79,7 @@
67
79
  "postcss": "^8.4.49",
68
80
  "react": "^19.2.0",
69
81
  "react-dom": "^19.2.0",
82
+ "react-router-dom": "^7.12.0",
70
83
  "rollup": "^4.53.2",
71
84
  "tailwindcss": "^3.4.17",
72
85
  "typescript": "~5.9.3",
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/src/cli/setup.js DELETED
@@ -1,123 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { readFileSync, writeFileSync, existsSync } from 'fs';
4
- import { join } from 'path';
5
- import { fileURLToPath } from 'url';
6
- import { dirname } from 'path';
7
-
8
- const __filename = fileURLToPath(import.meta.url);
9
- const __dirname = dirname(__filename);
10
-
11
- console.log('\nšŸŽØ TakaUI Setup Wizard\n');
12
-
13
- const cwd = process.cwd();
14
-
15
- // 1. Check for Tailwind config
16
- const tailwindConfigFiles = [
17
- 'tailwind.config.js',
18
- 'tailwind.config.ts',
19
- 'tailwind.config.mjs',
20
- 'tailwind.config.cjs'
21
- ];
22
-
23
- let tailwindConfigPath = null;
24
- for (const file of tailwindConfigFiles) {
25
- if (existsSync(join(cwd, file))) {
26
- tailwindConfigPath = file;
27
- break;
28
- }
29
- }
30
-
31
- if (!tailwindConfigPath) {
32
- console.log('āš ļø No Tailwind config found!');
33
- console.log('\nPlease install Tailwind CSS first:');
34
- console.log(' npm install -D tailwindcss postcss autoprefixer');
35
- console.log(' npx tailwindcss init');
36
- console.log('\nThen run this setup again: npx takaui-setup\n');
37
- process.exit(1);
38
- }
39
-
40
- console.log(`āœ… Found Tailwind config: ${tailwindConfigPath}`);
41
-
42
- // 2. Update Tailwind config
43
- try {
44
- let configContent = readFileSync(join(cwd, tailwindConfigPath), 'utf-8');
45
-
46
- const takaUIPath = './node_modules/@ttianqii/takaui/dist/**/*.{js,mjs,cjs}';
47
-
48
- if (configContent.includes(takaUIPath)) {
49
- console.log('āœ… TakaUI already configured in Tailwind');
50
- } else {
51
- // Add TakaUI to content array
52
- const contentRegex = /content:\s*\[([\s\S]*?)\]/;
53
- const match = configContent.match(contentRegex);
54
-
55
- if (match) {
56
- const currentContent = match[1];
57
- const updatedContent = currentContent.trim()
58
- ? `${currentContent.trim()},\n "${takaUIPath}"`
59
- : `"${takaUIPath}"`;
60
-
61
- configContent = configContent.replace(
62
- contentRegex,
63
- `content: [\n ${updatedContent}\n ]`
64
- );
65
-
66
- writeFileSync(join(cwd, tailwindConfigPath), configContent, 'utf-8');
67
- console.log('āœ… Updated Tailwind config with TakaUI paths');
68
- } else {
69
- console.log('āš ļø Could not auto-update Tailwind config');
70
- console.log(`\nPlease manually add to ${tailwindConfigPath}:`);
71
- console.log(` content: [`);
72
- console.log(` "${takaUIPath}"`);
73
- console.log(` ]`);
74
- }
75
- }
76
- } catch (error) {
77
- console.log('āš ļø Could not update Tailwind config:', error.message);
78
- }
79
-
80
- // 3. Check for Tailwind directives in CSS
81
- const possibleCssFiles = [
82
- 'src/index.css',
83
- 'src/styles.css',
84
- 'src/App.css',
85
- 'src/global.css',
86
- ];
87
-
88
- let cssFile = null;
89
- for (const file of possibleCssFiles) {
90
- if (existsSync(join(cwd, file))) {
91
- cssFile = file;
92
- break;
93
- }
94
- }
95
-
96
- console.log('\nšŸ“ Final Steps:\n');
97
-
98
- if (cssFile) {
99
- const cssContent = readFileSync(join(cwd, cssFile), 'utf-8');
100
-
101
- if (cssContent.includes('@tailwind base') &&
102
- cssContent.includes('@tailwind components') &&
103
- cssContent.includes('@tailwind utilities')) {
104
- console.log(`āœ… Tailwind directives found in ${cssFile}`);
105
- } else {
106
- console.log(`āš ļø Add Tailwind directives to ${cssFile}:`);
107
- console.log(` @tailwind base;`);
108
- console.log(` @tailwind components;`);
109
- console.log(` @tailwind utilities;`);
110
- }
111
- } else {
112
- console.log('āš ļø Create a CSS file (e.g., src/index.css) with:');
113
- console.log(' @tailwind base;');
114
- console.log(' @tailwind components;');
115
- console.log(' @tailwind utilities;');
116
- }
117
-
118
- console.log('\n✨ Setup Complete!\n');
119
- console.log('šŸŽ‰ TakaUI works like shadcn/ui - no CSS imports needed!');
120
- console.log(' Just use the components and Tailwind handles the styling.\n');
121
- console.log('You can now use TakaUI components:');
122
- console.log(" import { DatePicker, DataTable, Calendar } from '@ttianqii/takaui'\n");
123
- console.log('šŸ“š Documentation: https://github.com/ttianqii/takaui\n');