ui8kit 1.3.8 → 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
@@ -38,13 +38,16 @@ Options:
38
38
  - `--registry-url <url>` Override registry CDN base URL
39
39
  - `--registry-version <version>` Replace `@latest` in default URLs with a pinned version
40
40
  - `--strict-cdn` Disable fallback CDN providers when an explicit URL is set
41
+ - `--import-style <alias|package>` Choose installed component import style (`alias` or package barrel `@ui8kit/core`; default: `alias`)
41
42
 
42
43
  When running without `--yes`, `init` now asks for:
43
44
 
44
45
  - Global CSS file path (default: `src/index.css`)
45
46
  - Import alias for components (default: `@/components`)
47
+ - Import style for installed components (`alias` or `package`)
46
48
 
47
49
  `typescript` is always set to `true` and `framework` is fixed to `vite-react`.
50
+ `init` now writes configuration and core utilities/variants. Empty category folders are created during bulk install (`add --all`).
48
51
 
49
52
  ### `add`
50
53
 
@@ -75,6 +78,13 @@ Options:
75
78
  - `-f, --force` Overwrite existing files
76
79
  - `-r, --registry <type>` Registry type (default: `ui`)
77
80
  - `--dry-run` Show planned actions without writing files
81
+ - `--all` also creates base install directories before fetching and writing components:
82
+ - `src/lib`
83
+ - `src/components`
84
+ - `src/components/ui`
85
+ - `src/blocks`
86
+ - `src/layouts`
87
+ - `src/variants`
78
88
  - `--retry` Enable retry logic for unstable connections
79
89
  - `--no-cache` (root option) bypasses cache for this run.
80
90
  - `--registry-url <url>` Override registry CDN base URL
@@ -231,7 +241,8 @@ Options:
231
241
  - `[registry]` Path to registry JSON (default: `./src/registry.json`)
232
242
  - `-o, --output <path>` Output directory (default: `./packages/registry/r`)
233
243
 
234
- The build command also generates `packages/registry/ui8kit.map.json` when `src/lib/utility-props.map.ts` is available.
244
+ The build command also generates `packages/registry/ui8kit.map.json` when
245
+ `src/lib/utility-props.map.ts` is available.
235
246
 
236
247
  Generated map shape:
237
248
 
@@ -239,13 +250,23 @@ Generated map shape:
239
250
  {
240
251
  "version": "1.0.0",
241
252
  "generatedAt": "2026-03-06T12:00:00.000Z",
242
- "map": {
243
- "display": ["block", "flex"],
244
- "spacing": ["m-2", "m-4"]
245
- }
253
+ "map": [
254
+ "block",
255
+ "display-block",
256
+ "display-flex",
257
+ "m-2",
258
+ "m-4"
259
+ ]
246
260
  }
247
261
  ```
248
262
 
263
+ `map` keeps the existing top-level envelope, but the value is now a flat string
264
+ array of Tailwind classes. The generation reads both:
265
+
266
+ - `src/lib/utility-props.map.ts` — grouped whitelist map by utility prefix.
267
+ - `src/lib/utility-props.ts` — runtime rule source used for special
268
+ expansions (for example `flex` direction handling and semantic `gap` aliases).
269
+
249
270
  ### Global options
250
271
 
251
272
  These options work for all commands and are defined at the CLI root: