@xeplr/ui-factory 1.0.9 → 1.0.10

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
@@ -196,6 +196,11 @@ const clean = schemaHandler.applySchema(formSchema(screen), req.body) // throw
196
196
  | `label` | — | text with a heading, subheading or text preset |
197
197
  | `list` | — | saved records, with New / Edit / Delete |
198
198
 
199
+ A screen is a **sheet**: it paints its own surface, so a screen designed in
200
+ dark ink stays readable inside a dark app. Give the screen a `background` in
201
+ its own style to change it, or set `--xeplr-factory-paper` on the host for all
202
+ of them.
203
+
199
204
  Every control also takes `style` — see [AUTHORING.md](./AUTHORING.md#styles) for the keys. Sizes are pixels at the screen's design `width` (default 800): a screen is shown at that size, never stretched, and scaled down only on a narrower display.
200
205
 
201
206
  ### Steps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeplr/ui-factory",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Design data-entry screens on @xeplr/ui-canvas, save them as JSON, run them as auto-saving forms with lists of saved records — built for Claude to draft and people to refine",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -19,8 +19,23 @@
19
19
  --xf-danger: var(--xeplr-danger, #c2372e);
20
20
  }
21
21
 
22
- /* ── the screen ─────────────────────────────────────────────────────────── */
23
- .xeplr-factory-screen { position: relative; width: 100%; color: var(--xf-ink); }
22
+ /* ── the screen ───────────────────────────────────────────────────────────
23
+ A screen is a SHEET: it paints its own surface, the way the builder's canvas
24
+ does. Without that it is transparent, and a screen designed in dark ink
25
+ disappears into a dark app — what you designed is not what you get. The
26
+ screen's own `background` style overrides this (screenStyle), as does the
27
+ host with --xeplr-factory-paper. */
28
+ .xeplr-factory-screen {
29
+ position: relative; width: 100%;
30
+ color: var(--xf-ink);
31
+ background: var(--xeplr-factory-paper, var(--xf-surface));
32
+ border-radius: calc(8 * var(--xf-u));
33
+ }
34
+ /* The status line and the step buttons live on the sheet, so they keep a
35
+ margin of their own rather than touching its edge. */
36
+ .xeplr-factory-screen > .xeplr-factory-status,
37
+ .xeplr-factory-screen > .xeplr-factory-stepnav,
38
+ .xeplr-factory-screen > .xeplr-factory-done { padding-inline: calc(12 * var(--xf-u)); }
24
39
  .xeplr-factory-status {
25
40
  display: flex; justify-content: space-between; gap: 12px; min-height: 18px;
26
41
  padding: 4px 2px 8px; font-size: 12px; color: var(--xf-muted);