@livx.cc/bare-v3 0.1.0-alpha.8 → 0.1.0-alpha.80

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 (56) hide show
  1. package/README.md +8 -6
  2. package/dist/bare.css +813 -39
  3. package/dist/bare.min.css +1 -1
  4. package/dist/components/base.d.ts +36 -0
  5. package/dist/components/board.d.ts +181 -0
  6. package/dist/components/board.js +297 -0
  7. package/dist/components/date-picker.d.ts +60 -0
  8. package/dist/components/date-picker.js +43 -0
  9. package/dist/components/image-viewer.d.ts +41 -0
  10. package/dist/components/image-viewer.js +20 -0
  11. package/dist/components.d.ts +79 -0
  12. package/dist/components.js +1 -0
  13. package/dist/interactions/motion.d.ts +17 -0
  14. package/dist/manifest.json +99 -39
  15. package/dist/markdown-stream.d.ts +115 -0
  16. package/dist/markdown-stream.js +41 -0
  17. package/dist/references/app-frame.md +1 -1
  18. package/dist/references/board.md +150 -0
  19. package/dist/references/button.md +1 -1
  20. package/dist/references/card-structure.md +1 -1
  21. package/dist/references/command.md +2 -2
  22. package/dist/references/confirm.md +9 -0
  23. package/dist/references/control-structure.md +1 -1
  24. package/dist/references/conversation.md +2 -2
  25. package/dist/references/cross-screen.md +2 -1
  26. package/dist/references/data-display.md +1 -1
  27. package/dist/references/date-picker.md +131 -0
  28. package/dist/references/dialog.md +2 -2
  29. package/dist/references/disclosure.md +2 -2
  30. package/dist/references/editable-filtered-rows.md +87 -0
  31. package/dist/references/feedback.md +3 -3
  32. package/dist/references/field.md +1 -1
  33. package/dist/references/form-composition.md +1 -1
  34. package/dist/references/foundation.md +1 -1
  35. package/dist/references/identity.md +1 -1
  36. package/dist/references/image-viewer.md +66 -0
  37. package/dist/references/layout.md +1 -1
  38. package/dist/references/markdown-stream-prompt.md +13 -0
  39. package/dist/references/markdown-stream.md +96 -0
  40. package/dist/references/mobile.md +2 -2
  41. package/dist/references/motion.md +5 -3
  42. package/dist/references/page-layout.md +2 -2
  43. package/dist/references/reading.md +2 -2
  44. package/dist/references/row.md +19 -2
  45. package/dist/references/scroll-entry.md +75 -0
  46. package/dist/references/segmented.md +9 -0
  47. package/dist/references/start.md +7 -7
  48. package/dist/references/status.md +2 -2
  49. package/dist/references/surface.md +1 -1
  50. package/dist/references/tabs.md +2 -2
  51. package/dist/references/tui.md +9 -0
  52. package/dist/references/type.md +2 -2
  53. package/dist/tui.css +269 -0
  54. package/dist/tui.min.css +1 -0
  55. package/package.json +29 -3
  56. package/dist/ui.js +0 -598
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # bare-v3
2
2
 
3
- Experimental semantic styling and a standalone design evaluation lab for Composer. **No strategy winner has been established.** An opt-in, source-pinned Blank integration experiment is underway; release readiness and default-strategy selection still require qualification.
3
+ Experimental semantic styling and a standalone design evaluation lab for Composer. **No strategy winner has been established.** Blank currently uses v3 for new apps in an observation rollout, with released versions pinned for existing apps. Long-term readiness, native-device quality and comparative model efficiency still require qualification.
4
4
 
5
5
  ```sh
6
6
  bun install --frozen-lockfile
@@ -17,23 +17,25 @@ The comparison UI needs the fixture server for example links. Model outputs repl
17
17
 
18
18
  Install the published alpha with `bun add @livx.cc/bare-v3@alpha`; use `bun pm pack` for an unpublished local build. Import CSS from `@livx.cc/bare-v3/css` or `/css/min`. Put `class="b3-root"` on html and set `data-b3-theme="dark"` explicitly for dark mode. Component references are exported under `/references/*.md`; start with `/references/start.md`. Place generic link defaults in `@layer bare.reset` so they do not override button/navigation colors. Unlayered consumer CSS overrides library layers: scope custom palette colors to each theme rather than applying light-only colors unconditionally to `:root`.
19
19
 
20
- `bun lab plan config.json` creates a seeded, capped development job plan. `bun lab prepare run.json` prepares one isolated workspace and manifest without invoking a model. The [visual playground](http://127.0.0.1:4313/fixtures/playground.html) demonstrates the current component contracts and shows the bare-v2 coverage audit. Composed apps include Signal (system performance), Elsewhere (local discovery/booking), Daylight (iOS/Android web studies), Relay, Gather setup and sign-in, Counter, Margin, Still, Fieldnotes, Interval, and the Forma project workspace. New components are an implemented subset, not full bare-v2 parity or a qualified release. Optional interactions are exported from `@livx.cc/bare-v3/ui`; call `mount(document)` once and use its returned cleanup on teardown.
20
+ `bun lab plan config.json` creates a seeded, capped development job plan. `bun lab prepare run.json` prepares one isolated workspace and manifest without invoking a model. The [visual playground](http://127.0.0.1:4313/fixtures/playground.html) demonstrates the current component contracts and shows the bare-v2 coverage audit. Composed apps include Signal (system performance), Elsewhere (local discovery/booking), Daylight (iOS/Android web studies), Relay, Gather setup and sign-in, Counter, Margin, Still, Fieldnotes, Interval, and the Forma project workspace. New components are an implemented subset, not full bare-v2 parity or a qualified release. Two public layers ship: `/css` (CSS only) and `/components` — light-DOM custom elements (`<b3-tabs>`, `<b3-reel>`, `<b3-dropdown>`, `<b3-dialog>`, `<b3-sheet>`, `<b3-command>`, `<b3-toast-region>`, `<b3-toc>`) that enhance native markup, plus the document-wide `data-b3-confirm` guard and the `motion`/`layout`/`sequence`/`settle` helpers. Loading the entry (ESM, or re-bundled as a classic script) registers everything; there is no setup call or cleanup, and loading twice is a no-op. Heavier components are opt-in subpaths: `/components/board` (`<b3-board>`), `/components/date-picker` and `/components/image-viewer`. They are separate files rather than one bundle because of weight: the core is ~20 KB minified (~7 KB gzip), the board alone ~117 KB (~36 KB gzip, it bundles a reactive template runtime privately — one that needs no `'unsafe-eval'` under a Content-Security-Policy and loads only when a board first renders), so a single bundle would multiply every page's always-loaded cost by ~5x for a component most pages never show. `/markdown-stream` is a plain module (`MarkdownStream`, a class, not a tag) for streaming LLM markdown into bare-v3 components. Every entry ships `.d.ts` typings. Read `recipes/board.md`, `recipes/image-viewer.md`, `recipes/date-picker.md` or `recipes/markdown-stream.md` for markup and lifecycle; `fixtures/elements/markdown-stream.html` demos the stream; `bun run chat` serves it as a live chat against a real model (needs `OPENROUTER_API_KEY` or `OPENAI_API_KEY`; offline it replays canned replies). The plain/React/Vue demos in `fixtures/elements/` exercise the image viewer; run `bun scripts/verify-image-viewer.ts` through the authorized AgentX browser workflow to verify measured transforms. `bun scripts/verify-components.ts`, `verify-reel.ts` and `verify-confirm.ts` drive headless Chrome against `fixtures/checks/` and re-run every check against a control build without the code.
21
21
 
22
22
  Playground previews accept shareable app/width links, for example [Signal at 390px](http://127.0.0.1:4313/fixtures/playground.html?demo=metrics&width=390#demos). The controls keep these query parameters in sync; unknown values fall back to the authored defaults. This is an iframe layout preview, not mobile-device qualification.
23
23
 
24
- Source organization: `src/bare.css` is the ordered CSS entry; `src/styles/` groups foundations, layouts, and component families. Base rules and later state rules stay separate to preserve cascade order. `src/ui.js` mounts the focused modules in `src/interactions/`. Each app lives in `fixtures/demos/<name>/{index.html,styles.css,app.js}`. The playground shell and behavior live in `fixtures/playground/`, with individual HTML specimens in `specimens/`. Edit those sources, then run `bun run build`; the build assembles the ignored `fixtures/*.html` pages at their existing URLs. Package consumers still receive bundled CSS and one optional ESM interaction entry. This organization supports focused reads and changes; model context-efficiency gains remain to be measured.
24
+ Source organization: `src/bare.css` is the ordered CSS entry; `src/styles/` groups foundations, layouts, and component families. Base rules and later state rules stay separate to preserve cascade order. `src/` is TypeScript: `src/components.ts` defines the core elements over the focused, unexported modules in `src/interactions/`; opt-in components live in `src/components/`, and `src/components/runtime.ts` is the only module that knows the template framework. Each app lives in `fixtures/demos/<name>/{index.html,styles.css,app.js}`. The playground shell and behavior live in `fixtures/playground/`, with individual HTML specimens in `specimens/`. Edit those sources, then run `bun run build`; the build assembles the ignored `fixtures/*.html` pages at their existing URLs. Package consumers receive bundled CSS and self-contained ESM component entries with typings. This organization supports focused reads and changes; model context-efficiency gains remain to be measured.
25
25
 
26
26
  External TypeScript entrypoints use `<script type="module" src="app.ts">`. Assembly bundles local imports into a separate rendered artifact, preserves the original source, and rejects imports outside the workspace. Replay serves the rendered artifact. Inline TypeScript and package imports are not supported.
27
27
 
28
- Standalone matched app generation remains pending: the worker now invokes the pinned agentx CLI; verify configuration isolation and its complete bounded execution path live before qualification. Composer use is authorized through agentx, with app generation sequenced after the requested visual review. Browser verification already uses Composer through agentx. No live app-generation batch has run.
28
+ Standalone matched comparisons remain pending. The worker uses the pinned AgentX SDK with explicit settings, Composer 2.5 and brokered OS isolation. A live creation and feature-edit pilot passed phone/desktop browser checks; this does not establish comparative design quality or total model cost. See [compact authoring](docs/llm-authoring.md) for protocol, evidence and the lab-only Pug candidate. Browser verification also runs through Composer/AgentX.
29
29
 
30
30
  The 24 briefs are provisional. Authored fixtures are implementation probes, not blind model evidence. Browser checks cover selected journeys across the authored apps, including themes, persistence, forms, command keyboard behavior, outlines, and narrow viewport emulation. The current evidence and remaining gaps are tracked in the implementation plan. A dedicated mobile-app track now requires matched iOS/Android routines flows, discovery/booking and mobile conversation, with separate native-look and actual-device gates. Actual iOS/Android, full accessibility, populated comparisons in the browser, and held-out qualification remain pending.
31
31
 
32
- See the [working task board](tasks.md), [implementation plan](docs/plan.md) and [experiment ledger](lab/experiments/ledger.json). The source repository is private. Public npm alpha.5 is published and installed in the [production Offscript experiment](https://blank.bodify.bod.ee/a/a-offscript-v3). See tasks.md for qualification status; source may advance to the next unpublished prerelease.
32
+ See the [working task board](tasks.md), [implementation plan](docs/plan.md) and [experiment ledger](lab/experiments/ledger.json). The source repository is private; npm releases are public. The [production Offscript experiment](https://blank.bodify.bod.ee/a/a-offscript-v3) uses a pinned release. See tasks.md for integration and qualification status; source may advance beyond the published prerelease.
33
33
 
34
34
  Playground work: edit one specimen in `fixtures/playground/specimens/`, its focused controller in `controllers/`, or a demo’s own folder. `app.js` only assembles controllers. Code/model guidance opens beside the relevant specimen. The expanded reference-page experiment is archived in `archive/reference-2026-09-08/` and excluded from normal builds.
35
35
 
36
36
 
37
37
  [Icon explorer](http://127.0.0.1:4313/fixtures/playground.html#icons): full pinned Lucide family, semantic search, paged results, SVG preview/copy and attribution. Generated from the dev-only lucide-static package by scripts/icons.ts; no sibling checkout or CDN is required. Blank has a smaller supported host catalog: copied SVG remains portable, but host calls must use names Blank actually supplies.
38
38
 
39
- [Motion & delight](http://127.0.0.1:4313/fixtures/playground.html#motion): six composed motion studies plus collapsed functional feedback recipes, reduced-motion preview and contextual usage. The optional UI export includes semantic motion intents, `layout`, `sequence` and `settle`; update real state first and use motion to explain it. Dialog entry/exit/drag remains owned by the mounted overlay helper. These examples do not replace full app, device, accessibility or quality evaluation.
39
+ [Motion & delight](http://127.0.0.1:4313/fixtures/playground.html#motion): six composed motion studies plus collapsed functional feedback recipes, reduced-motion preview and contextual usage. The components export includes semantic motion intents, `layout`, `sequence` and `settle`; update real state first and use motion to explain it. Dialog entry/exit/drag remains owned by `<b3-dialog>`/`<b3-sheet>`. These examples do not replace full app, device, accessibility or quality evaluation.
40
+
41
+ Input/action groups preserve an editable area and wrap a direct `b3-button` below when space is tight; keep the input label and native tab order. Use `b3-title`/`b3-heading` for wrapping protection and `b3-definition` for responsive label/value lists. These contracts are included in the on-demand reference packs.