@zentauri-ui/zentauri-components 1.4.1 → 1.4.2

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
@@ -285,6 +285,7 @@ Call the published binary by name after the package (recommended so `npx` does n
285
285
  ```bash
286
286
  npx @zentauri-ui/zentauri-components zentauri-components init
287
287
  npx @zentauri-ui/zentauri-components zentauri-components add buttons inputs
288
+ npx @zentauri-ui/zentauri-components zentauri-components -h
288
289
  ```
289
290
 
290
291
  **Hooks only** (copy `src/hooks/<name>` into your app, plus sibling hook dependencies such as `useMediaQuery` when needed):
package/cli/index.mjs CHANGED
@@ -131,18 +131,22 @@ function loadRegistry() {
131
131
  * // Terminal shows multi-line Usage / Options / examples (see string below).
132
132
  */
133
133
  function printHelp() {
134
+ const reg = loadRegistry();
135
+ const componentsList = (reg.components ?? []).join("\n");
136
+ const hooksList = (reg.hooks ?? []).join("\n");
137
+
134
138
  console.log(`Zentauri UI — copy component source into your app (shadcn-style)
135
139
 
136
140
  Usage:
137
141
  zentauri-components init [options] Create components.json with defaults
138
142
  zentauri-components add <component> [...] Copy UI components (and their hooks)
139
- zentauri-components add hook <hook> [...] Copy hook source only (plus transitive hook deps)
143
+ zentauri-components add hook <hook> [...] Copy hook source only (plus transitive hook deps)
140
144
 
141
145
  List of components:
142
- ${registry.components.join("\n")}
146
+ ${componentsList}
143
147
 
144
148
  List of hooks:
145
- ${registry.hooks.join("\n")}
149
+ ${hooksList}
146
150
 
147
151
  (The zentauri-ui binary name works the same if your PATH exposes it.)
148
152
 
@@ -161,8 +165,8 @@ Use hooks from the package without copying (after npm install):
161
165
  import { useWindowSize } from "@zentauri-ui/zentauri-components/hooks/useWindowSize";
162
166
 
163
167
  Published package:
164
- npx @zentauri-ui/zentauri-components init
165
- npx @zentauri-ui/zentauri-components add accordion buttons inputs
168
+ npx @zentauri-ui/zentauri-components zentauri-components init
169
+ npx @zentauri-ui/zentauri-components zentauri-components add accordion buttons inputs
166
170
 
167
171
  If npx does not pick the right binary:
168
172
  npx --yes --package=@zentauri-ui/zentauri-components zentauri-components init
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zentauri-ui/zentauri-components",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "React + Tailwind UI kit with ESM/CJS builds, per-entry exports, and a zentauri-components / zentauri-ui CLI to vendor UI or hook source into your app",
5
5
  "license": "MIT",
6
6
  "files": ["dist", "src/ui", "src/lib", "src/hooks", "cli"],