lovdacn 0.1.1 → 1.0.0-beta.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.
Files changed (121) hide show
  1. package/README.md +8 -65
  2. package/dist/index.js +72 -72
  3. package/package.json +5 -4
  4. package/templates/nativewind/.vscode/extensions.json +1 -0
  5. package/templates/nativewind/.vscode/settings.json +7 -0
  6. package/templates/nativewind/AGENTS.md +3 -0
  7. package/templates/nativewind/CLAUDE.md +1 -0
  8. package/{LICENSE → templates/nativewind/LICENSE} +3 -3
  9. package/templates/nativewind/README.md +56 -0
  10. package/templates/nativewind/app.json +43 -0
  11. package/templates/nativewind/assets/expo.icon/Assets/expo-symbol 2.svg +3 -0
  12. package/templates/nativewind/assets/expo.icon/Assets/grid.png +0 -0
  13. package/templates/nativewind/assets/expo.icon/icon.json +40 -0
  14. package/templates/nativewind/assets/images/android-icon-background.png +0 -0
  15. package/templates/nativewind/assets/images/android-icon-foreground.png +0 -0
  16. package/templates/nativewind/assets/images/android-icon-monochrome.png +0 -0
  17. package/templates/nativewind/assets/images/expo-badge-white.png +0 -0
  18. package/templates/nativewind/assets/images/expo-badge.png +0 -0
  19. package/templates/nativewind/assets/images/expo-logo.png +0 -0
  20. package/templates/nativewind/assets/images/favicon.png +0 -0
  21. package/templates/nativewind/assets/images/icon.png +0 -0
  22. package/templates/nativewind/assets/images/logo-glow.png +0 -0
  23. package/templates/nativewind/assets/images/react-logo.png +0 -0
  24. package/templates/nativewind/assets/images/react-logo@2x.png +0 -0
  25. package/templates/nativewind/assets/images/react-logo@3x.png +0 -0
  26. package/templates/nativewind/assets/images/splash-icon.png +0 -0
  27. package/templates/nativewind/assets/images/tabIcons/explore.png +0 -0
  28. package/templates/nativewind/assets/images/tabIcons/explore@2x.png +0 -0
  29. package/templates/nativewind/assets/images/tabIcons/explore@3x.png +0 -0
  30. package/templates/nativewind/assets/images/tabIcons/home.png +0 -0
  31. package/templates/nativewind/assets/images/tabIcons/home@2x.png +0 -0
  32. package/templates/nativewind/assets/images/tabIcons/home@3x.png +0 -0
  33. package/templates/nativewind/assets/images/tutorial-web.png +0 -0
  34. package/templates/nativewind/babel.config.js +9 -0
  35. package/templates/nativewind/expo-env.d.ts +3 -0
  36. package/templates/nativewind/lvcn.json +16 -0
  37. package/templates/nativewind/metro.config.js +6 -0
  38. package/templates/nativewind/nativewind-env.d.ts +3 -0
  39. package/templates/nativewind/package.json +55 -0
  40. package/templates/nativewind/postcss.config.js +6 -0
  41. package/templates/nativewind/scripts/reset-project.js +114 -0
  42. package/templates/nativewind/src/app/_layout.tsx +25 -0
  43. package/templates/nativewind/src/app/explore.tsx +180 -0
  44. package/templates/nativewind/src/app/index.tsx +12 -0
  45. package/templates/nativewind/src/components/animated-icon.module.css +6 -0
  46. package/templates/nativewind/src/components/animated-icon.tsx +148 -0
  47. package/templates/nativewind/src/components/animated-icon.web.tsx +108 -0
  48. package/templates/nativewind/src/components/app-tabs.tsx +32 -0
  49. package/templates/nativewind/src/components/app-tabs.web.tsx +115 -0
  50. package/templates/nativewind/src/components/external-link.tsx +25 -0
  51. package/templates/nativewind/src/components/hint-row.tsx +35 -0
  52. package/templates/nativewind/src/components/themed-text.tsx +73 -0
  53. package/templates/nativewind/src/components/themed-view.tsx +16 -0
  54. package/templates/nativewind/src/components/ui/button.tsx +106 -0
  55. package/templates/nativewind/src/components/ui/collapsible.tsx +65 -0
  56. package/templates/nativewind/src/components/ui/text.tsx +89 -0
  57. package/templates/nativewind/src/components/web-badge.tsx +43 -0
  58. package/templates/nativewind/src/constants/theme.ts +65 -0
  59. package/templates/nativewind/src/global.css +13 -0
  60. package/templates/nativewind/src/hooks/use-color-scheme.ts +1 -0
  61. package/templates/nativewind/src/hooks/use-color-scheme.web.ts +21 -0
  62. package/templates/nativewind/src/hooks/use-theme.ts +14 -0
  63. package/templates/nativewind/tailwind.config.js +86 -0
  64. package/templates/nativewind/tsconfig.json +21 -0
  65. package/templates/uniwind/.claude/settings.json +5 -0
  66. package/templates/uniwind/.vscode/extensions.json +1 -0
  67. package/templates/uniwind/.vscode/settings.json +7 -0
  68. package/templates/uniwind/AGENTS.md +3 -0
  69. package/templates/uniwind/CLAUDE.md +1 -0
  70. package/templates/uniwind/LICENSE +21 -0
  71. package/templates/uniwind/README.md +56 -0
  72. package/templates/uniwind/app.json +42 -0
  73. package/templates/uniwind/assets/expo.icon/Assets/expo-symbol 2.svg +3 -0
  74. package/templates/uniwind/assets/expo.icon/Assets/grid.png +0 -0
  75. package/templates/uniwind/assets/expo.icon/icon.json +40 -0
  76. package/templates/uniwind/assets/images/android-icon-background.png +0 -0
  77. package/templates/uniwind/assets/images/android-icon-foreground.png +0 -0
  78. package/templates/uniwind/assets/images/android-icon-monochrome.png +0 -0
  79. package/templates/uniwind/assets/images/expo-badge-white.png +0 -0
  80. package/templates/uniwind/assets/images/expo-badge.png +0 -0
  81. package/templates/uniwind/assets/images/expo-logo.png +0 -0
  82. package/templates/uniwind/assets/images/favicon.png +0 -0
  83. package/templates/uniwind/assets/images/icon.png +0 -0
  84. package/templates/uniwind/assets/images/logo-glow.png +0 -0
  85. package/templates/uniwind/assets/images/react-logo.png +0 -0
  86. package/templates/uniwind/assets/images/react-logo@2x.png +0 -0
  87. package/templates/uniwind/assets/images/react-logo@3x.png +0 -0
  88. package/templates/uniwind/assets/images/splash-icon.png +0 -0
  89. package/templates/uniwind/assets/images/tabIcons/explore.png +0 -0
  90. package/templates/uniwind/assets/images/tabIcons/explore@2x.png +0 -0
  91. package/templates/uniwind/assets/images/tabIcons/explore@3x.png +0 -0
  92. package/templates/uniwind/assets/images/tabIcons/home.png +0 -0
  93. package/templates/uniwind/assets/images/tabIcons/home@2x.png +0 -0
  94. package/templates/uniwind/assets/images/tabIcons/home@3x.png +0 -0
  95. package/templates/uniwind/assets/images/tutorial-web.png +0 -0
  96. package/templates/uniwind/expo-env.d.ts +3 -0
  97. package/templates/uniwind/lvcn.json +16 -0
  98. package/templates/uniwind/metro.config.js +14 -0
  99. package/templates/uniwind/package.json +46 -0
  100. package/templates/uniwind/scripts/reset-project.js +114 -0
  101. package/templates/uniwind/src/app/_layout.tsx +23 -0
  102. package/templates/uniwind/src/app/explore.tsx +180 -0
  103. package/templates/uniwind/src/app/index.tsx +98 -0
  104. package/templates/uniwind/src/components/animated-icon.module.css +6 -0
  105. package/templates/uniwind/src/components/animated-icon.tsx +148 -0
  106. package/templates/uniwind/src/components/animated-icon.web.tsx +108 -0
  107. package/templates/uniwind/src/components/app-tabs.tsx +32 -0
  108. package/templates/uniwind/src/components/app-tabs.web.tsx +115 -0
  109. package/templates/uniwind/src/components/external-link.tsx +25 -0
  110. package/templates/uniwind/src/components/hint-row.tsx +35 -0
  111. package/templates/uniwind/src/components/themed-text.tsx +73 -0
  112. package/templates/uniwind/src/components/themed-view.tsx +16 -0
  113. package/templates/uniwind/src/components/ui/collapsible.tsx +65 -0
  114. package/templates/uniwind/src/components/web-badge.tsx +43 -0
  115. package/templates/uniwind/src/constants/theme.ts +65 -0
  116. package/templates/uniwind/src/global.css +12 -0
  117. package/templates/uniwind/src/hooks/use-color-scheme.ts +1 -0
  118. package/templates/uniwind/src/hooks/use-color-scheme.web.ts +21 -0
  119. package/templates/uniwind/src/hooks/use-theme.ts +14 -0
  120. package/templates/uniwind/src/uniwind-types.d.ts +10 -0
  121. package/templates/uniwind/tsconfig.json +20 -0
package/README.md CHANGED
@@ -1,72 +1,15 @@
1
- # lovdacn
1
+ # lovda
2
2
 
3
- > ⚠️ **Beta.** The CLI is under active development. APIs and components may change.
3
+ To install dependencies:
4
4
 
5
- `lovdacn` is the CLI for **lovdaCN** — premium, responsive, customizable UI components for
6
- **Expo & React Native**, built for Tailwind-based styling systems (**NativeWind** and **Uniwind**).
7
-
8
- Inspired by `shadcn/ui`: components are copied into your codebase, so you own the code and can
9
- customize everything.
10
-
11
- ## Usage
12
-
13
- You don't need to install anything — run it with your package manager's runner.
14
-
15
- ### Initialize a project
16
-
17
- Sets up configuration (`lvcn.json`), theme, and the required files.
18
-
19
- ```sh
20
- npx lovdacn@latest init
21
- # pnpm
22
- pnpm dlx lovdacn@latest init
23
- # bun
24
- bunx lovdacn@latest init
5
+ ```bash
6
+ bun install
25
7
  ```
26
8
 
27
- During beta you can also pin the beta tag explicitly:
28
-
29
- ```sh
30
- npx lovdacn@beta init
31
- ```
32
-
33
- > `lvcn` is a shorthand alias for the same CLI, e.g. `npx lvcn@latest init`.
34
-
35
- ### Add components
36
-
37
- ```sh
38
- # a single component
39
- npx lovdacn@latest add button
9
+ To run:
40
10
 
41
- # multiple components
42
- npx lovdacn@latest add input select checkbox
11
+ ```bash
12
+ bun run index.ts
43
13
  ```
44
14
 
45
- Running `add` with no arguments opens an interactive multi-select of all available components.
46
-
47
- ## What it does
48
-
49
- - **`init`** — scaffolds/configures an Expo + NativeWind or Uniwind project (theme, `lvcn.json`,
50
- metro/tailwind config, global CSS, portal host for overlays, etc.).
51
- - **`add`** — resolves a component and its dependencies from the registry, rewrites import
52
- aliases to match your project, installs npm dependencies (via `expo install` for Expo
53
- projects), and writes the files into your components directory.
54
- - **`preset`** — manage theme/color presets.
55
-
56
- ## Configuration
57
-
58
- Components are resolved from the registry at `https://lovdacn.vercel.app/r`. You can point the CLI at a
59
- different registry (a URL, or a local folder for development) with:
60
-
61
- ```sh
62
- LOVDA_REGISTRY_URL=https://your-registry/r npx lovdacn@latest add button
63
- ```
64
-
65
- ## Links
66
-
67
- - Documentation: https://lovdacn.vercel.app
68
- - Repository: https://github.com/lovdacn-ui/ui
69
-
70
- ## License
71
-
72
- MIT
15
+ This project was created using `bun init` in bun v1.3.14. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.