mlola-ui 1.0.7 → 1.0.9

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
@@ -1,9 +1,10 @@
1
1
  # mlola-ui
2
2
 
3
3
  The Mlola UI source-copy CLI. It writes components, blocks, pages, and templates
4
- into your project, rewrites their imports to your aliases, and installs nothing
5
- else. Framework-free: the copied markup works in any language that can emit
6
- HTML, and React sources use only React.
4
+ into your project, rewrites their imports to fit it, and installs the Mlola
5
+ packages they import with your package manager. Framework-free: the copied
6
+ markup works in any language that can emit HTML, and React sources use only
7
+ React.
7
8
 
8
9
  The library's contract is generated from its own stylesheet, so a model reading
9
10
  it cannot invent a class or attribute that does not exist.
@@ -17,20 +18,30 @@ npx mlola-ui doctor
17
18
  ```
18
19
 
19
20
  `init` writes `mlola.config.json`, the engine stylesheet, and the instructions
20
- your coding agents read (see below). `add` resolves the
21
- dependency graph (a page pulls its blocks, a block pulls its components) and
22
- copies only what you asked for. `doctor` checks the project against the registry:
23
- missing engine imports, legacy attributes, modified generated files, and
24
- forbidden dependencies.
21
+ your coding agents read (see below), and installs `@mlola-ui/engine`. It fits
22
+ the project it finds: files go where the `@/` alias in `tsconfig.json` points,
23
+ or into `src/` when there is one. Without an alias, as in a new Vite app, it
24
+ sets `"imports": "relative"` and the copied files import each other by
25
+ relative path, so nothing needs setting up first.
26
+
27
+ `add` resolves the dependency graph (a page pulls its blocks, a block pulls its
28
+ components), copies only what you asked for, and installs the packages the
29
+ copied code imports that `package.json` does not declare yet. Pass
30
+ `--no-install` to only print the command. `doctor` checks the project against
31
+ the registry: packages the installed items import, the engine import, the
32
+ theme attribute, and files changed since they were added.
33
+
34
+ Tailwind can stay in the project. The engine places Mlola's layers above
35
+ Tailwind's preflight in either import order.
25
36
 
26
37
  ## Commands
27
38
 
28
39
  | Command | What it does |
29
40
  | --- | --- |
30
- | `init [--no-agents]` | create `mlola.config.json`, the stylesheet entry and the agent instructions |
41
+ | `init [--no-agents] [--no-install]` | create `mlola.config.json`, the stylesheet entry and the agent instructions, and install the engine |
31
42
  | `agents` | write or refresh the agent instructions in an existing project |
32
43
  | `mcp` | run the Mlola MCP server over stdio, for coding agents |
33
- | `add <items…>` | copy items and their dependencies into the project |
44
+ | `add <items…> [--no-install]` | copy items and their dependencies into the project, and install the packages they import |
34
45
  | `list [--json]` | print every installable item |
35
46
  | `doctor` | report project and registry problems |
36
47
  | `login <token>` | save a Mlola Pro token (from /account) for this user |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mlola-ui",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Source-copy CLI that writes framework-free Mlola UI items into your project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -188,6 +188,7 @@ correct. This table is read out of the stylesheet, so it is never stale.
188
188
  | `.ml-context-menu-item` | `aria-disabled` | `true` |
189
189
  | `.ml-context-menu-item` | `data-danger` | _presence only_ |
190
190
  | `.ml-context-menu-item` | `data-highlighted` | _presence only_ |
191
+ | `.ml-copy-button` | `data-status` | `error` |
191
192
  | `.ml-date-picker-panel` | `data-presets` | _presence only_ |
192
193
  | `.ml-date-picker-trigger` | `data-empty` | _presence only_ |
193
194
  | `.ml-dropdown-item` | `data-danger` | _presence only_ |
@@ -219,6 +220,8 @@ correct. This table is read out of the stylesheet, so it is never stale.
219
220
  | `.ml-otp` | `data-invalid` | _presence only_ |
220
221
  | `.ml-pagination-button` | `aria-current` | `page` |
221
222
  | `.ml-pagination-button` | `data-state` | `active` |
223
+ | `.ml-password-input-strength` | `data-strength` | `medium`, `strong`, `weak` |
224
+ | `.ml-password-input-toggle` | `aria-pressed` | `true` |
222
225
  | `.ml-popover` | `data-side` | `bottom`, `left`, `right`, `top` |
223
226
  | `.ml-priority-icon` | `data-priority` | `high`, `none`, `urgent` |
224
227
  | `.ml-progress-root` | `data-active` | _presence only_ |
@@ -247,6 +250,7 @@ correct. This table is read out of the stylesheet, so it is never stale.
247
250
  | `.ml-sidebar-title` | `data-collapsible` | _presence only_ |
248
251
  | `.ml-skeleton` | `data-rounded` | `none` |
249
252
  | `.ml-slider-field` | `data-size` | `sm` |
253
+ | `.ml-spinner` | `data-size` | `lg`, `sm` |
250
254
  | `.ml-status-icon` | `data-status` | `backlog`, `canceled`, `done`, `in-progress`, `in-review` |
251
255
  | `.ml-stepper` | `data-orientation` | `horizontal`, `vertical` |
252
256
  | `.ml-stepper-step` | `data-status` | `complete`, `current`, `error`, `upcoming` |