create-asterui 0.1.9 → 0.1.10
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 +6 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,6 +19,7 @@ npm create asterui my-app
|
|
|
19
19
|
npm create asterui my-app --js
|
|
20
20
|
npm create asterui my-app --themes business
|
|
21
21
|
npm create asterui my-app --js --themes all --pm pnpm
|
|
22
|
+
npm create asterui my-app --optional editor
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
### Options
|
|
@@ -29,6 +30,7 @@ npm create asterui my-app --js --themes all --pm pnpm
|
|
|
29
30
|
--prefixed Use @aster-ui/prefixed with d- prefix for daisyUI
|
|
30
31
|
--themes <preset> Theme preset: light-dark, business, all
|
|
31
32
|
--pm <manager> Package manager: npm, pnpm, yarn
|
|
33
|
+
--optional <deps> Optional deps: chart,editor,qrcode,virtuallist
|
|
32
34
|
-h, --help Show help message
|
|
33
35
|
```
|
|
34
36
|
|
|
@@ -61,6 +63,10 @@ import { Chart } from 'asterui/chart' # or '@aster-ui/prefixed/chart'
|
|
|
61
63
|
npm install qrcode
|
|
62
64
|
import { QRCode } from 'asterui/qrcode' # or '@aster-ui/prefixed/qrcode'
|
|
63
65
|
|
|
66
|
+
# For RichTextEditor component
|
|
67
|
+
npm install @aster-ui/icons @tiptap/react
|
|
68
|
+
import { RichTextEditor } from 'asterui/editor' # or '@aster-ui/prefixed/editor'
|
|
69
|
+
|
|
64
70
|
# For VirtualList component
|
|
65
71
|
npm install @tanstack/react-virtual
|
|
66
72
|
import { VirtualList } from 'asterui/virtuallist' # or '@aster-ui/prefixed/virtuallist'
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ const DAISYUI_THEMES = [
|
|
|
15
15
|
];
|
|
16
16
|
const THEME_PRESETS = ['light-dark', 'business', 'all'];
|
|
17
17
|
const ICON_LIBRARIES = [
|
|
18
|
-
{ value: '@aster-ui/icons', label: '@aster-ui/icons', hint: 'Heroicons with size tokens', version: '^0.
|
|
18
|
+
{ value: '@aster-ui/icons', label: '@aster-ui/icons', hint: 'Heroicons with size tokens', version: '^0.2.0' },
|
|
19
19
|
{ value: '@heroicons/react', label: 'Heroicons', hint: '300+ icons, outline/solid', version: '^2.2.0' },
|
|
20
20
|
{ value: 'lucide-react', label: 'Lucide', hint: 'popular, 1400+ icons', version: '^0.500.0' },
|
|
21
21
|
{ value: 'react-icons', label: 'React Icons', hint: 'multiple icon sets', version: '^5.4.0' },
|
|
@@ -307,7 +307,7 @@ function generatePackageJson(name, language, optionalDeps = [], iconLibrary = 'n
|
|
|
307
307
|
deps['apexcharts'] = '^5.0.0';
|
|
308
308
|
}
|
|
309
309
|
if (optionalDeps.includes('editor')) {
|
|
310
|
-
deps[prefixed ? '@aster-ui/icons-prefixed' : '@aster-ui/icons'] = '^0.
|
|
310
|
+
deps[prefixed ? '@aster-ui/icons-prefixed' : '@aster-ui/icons'] = '^0.2.0';
|
|
311
311
|
deps['@tiptap/react'] = '^2.0.0';
|
|
312
312
|
deps['@tiptap/starter-kit'] = '^2.0.0';
|
|
313
313
|
deps['@tiptap/extension-link'] = '^2.0.0';
|