@zentauri-ui/zentauri-components 1.4.3 → 1.4.4
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 +5 -5
- package/cli/index.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -283,16 +283,16 @@ Which UI folders are valid for `add` is driven by **`cli/registry.json`**: a gen
|
|
|
283
283
|
Call the published binary by name after the package (recommended so `npx` does not treat the first word as a shell command):
|
|
284
284
|
|
|
285
285
|
```bash
|
|
286
|
-
npx @zentauri-ui/zentauri-components
|
|
287
|
-
npx @zentauri-ui/zentauri-components
|
|
288
|
-
npx @zentauri-ui/zentauri-components
|
|
286
|
+
npx @zentauri-ui/zentauri-components init
|
|
287
|
+
npx @zentauri-ui/zentauri-components add buttons inputs
|
|
288
|
+
npx @zentauri-ui/zentauri-components -h
|
|
289
289
|
```
|
|
290
290
|
|
|
291
291
|
**Hooks only** (copy `src/hooks/<name>` into your app, plus sibling hook dependencies such as `useMediaQuery` when needed):
|
|
292
292
|
|
|
293
293
|
```bash
|
|
294
|
-
npx @zentauri-ui/zentauri-components
|
|
295
|
-
npx @zentauri-ui/zentauri-components
|
|
294
|
+
npx @zentauri-ui/zentauri-components add hook useWindowSize
|
|
295
|
+
npx @zentauri-ui/zentauri-components add hook useToggle useDebouncedValue
|
|
296
296
|
```
|
|
297
297
|
|
|
298
298
|
The **`zentauri-ui`** binary is the same entry as **`zentauri-components`**. If `npx` still mis-resolves, pin the package:
|
package/cli/index.mjs
CHANGED
|
@@ -165,8 +165,8 @@ Use hooks from the package without copying (after npm install):
|
|
|
165
165
|
import { useWindowSize } from "@zentauri-ui/zentauri-components/hooks/useWindowSize";
|
|
166
166
|
|
|
167
167
|
Published package:
|
|
168
|
-
npx @zentauri-ui/zentauri-components
|
|
169
|
-
npx @zentauri-ui/zentauri-components
|
|
168
|
+
npx @zentauri-ui/zentauri-components init
|
|
169
|
+
npx @zentauri-ui/zentauri-components add accordion buttons inputs
|
|
170
170
|
|
|
171
171
|
If npx does not pick the right binary:
|
|
172
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.
|
|
3
|
+
"version": "1.4.4",
|
|
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"],
|