@usableapp/cardds 0.7.116 → 0.7.117

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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  > For: a project that consumes `@usableapp/cardds` and its AI — what changed between versions, written as before → after, so a screen can be brought up to date without reading the source. Newest first. A consumer never edits cardds; if something here leaves you without a way to do what you did before, report the gap. Each release section after 0.7.97 carries one `Components:` line, written by `node scripts/components-changed.mjs <previous tag>`: the components the release changed, or `all` when a file changed that any component can read (a token, the build), or `none`; check only the screens that import those.
4
4
 
5
+ ## 0.7.117 — 2026-10-25
6
+
7
+ Every switch follows the brand on every palette (orchard's sky Toggle and Ring removed); a gallery page of every switch; the spec scripts are paused.
8
+
9
+ Components: all
10
+
11
+ ### Changed
12
+ - **Every switch is the brand, `--accent` / `--on-accent`, on every palette (Lh 2026-10-25).** Under `data-palette="orchard"` an on `Toggle` was sky `--highlight-3` with a dark knob, and a `Ring`'s filled part was sky too, left over from a trial; on the brand card (tone 3) they did not turn to the card's ink like the other switches. Both rules are gone: the Toggle and the Ring now read like `Check`, the picks and `BtnGroup` — moss with a linen knob on paper, linen with a dark knob on the brand card. Before → after: nothing to change in a project; a project that wanted sky sets it from its own theme. Story `Switches/All` (new): every switch in five states (off, on, disabled off, disabled on, focus) under every palette and ground.
13
+
14
+ ### Removed
15
+ - **The spec scripts are paused (Lh 2026-10-25):** `npm test`, `npm run ci`, `snapshot:write`, `snapshot:check`, `scripts/ci.mjs` and `.github/workflows/ci.yml` are gone; lint (`check`, `validate:inbox`, `typecheck`, `dup`) stays. Nothing a consumer imports changes; publishing is unchanged.
16
+
5
17
  ## 0.7.116 — 2026-10-25
6
18
 
7
19
  `MapArea mark="none"`, a `keyboard` icon, `CalendarWeeks` holding several ranges, and controls in a scrolling body no longer cut with large text.
package/bin/cardds.mjs CHANGED
@@ -102,7 +102,7 @@ A real phone: run the dev server with server: { host: true } and open the Netw
102
102
  }
103
103
 
104
104
  // the exports beside the components that are not components (docs/roles.md rows `a function, not a component`…): shape `—` and nothing to tell them from a structural part, so they are named.
105
- // A new one joins here and in the list test of tests/catalog.spec.js, or it is listed as structure
105
+ // A new one joins here, or it is listed as structure
106
106
  const HELPERS = new Set(['applyMask', 'cardGrounds', 'inkGrounds', 'slideTo', 'slideScreen', 'installScreenSlide', 'useLayer', 'useLayers', 'useOptionalLayer', 'registerIcons', 'LayerHistory', 'setWords', 'word', 'setTextScale', 'controlsFor']);
107
107
  const one = (text) => text.replace(/\s+/g, ' ').trim();
108
108
  const indent = (text, by = ' ') => text.replace(/^(?=.)/gm, by);
package/css/palette.css CHANGED
@@ -97,11 +97,10 @@
97
97
  /* fields are WHITE boxes on every ground (Lh 2026-09-25): a light ground, so the words typed in them are onlight, even on the moss card */
98
98
  [data-palette="orchard"] .field { background: var(--field-bg, #ffffff); color: var(--ink-onlight); }
99
99
  [data-palette="orchard"] .pin__cell { background: var(--pin-cell-bg, #ffffff); color: var(--ink-onlight); }
100
- /* the vivid ones, tried on the live parts (Lh 2026-09-25): primary = yellow · a user avatar = fuchsia · ring = sky · a switch on = sky · maple only on small dots (the count, dot a); the chosen stack tab stays moss */
100
+ /* the vivid ones, tried on the live parts (Lh 2026-09-25): primary = yellow · a user avatar = fuchsia · maple only on small dots (the count, dot a); the chosen stack tab stays moss.
101
+ Every switch (Toggle, Check, a pick, a Ring…) is the brand, --accent / --on-accent, as on every palette: no switch rule here (Lh 2026-10-25) */
101
102
  [data-palette="orchard"] :is(.btn--primary, .icon-btn--primary) { background: var(--btn-primary-bg, var(--highlight-2)); color: var(--btn-primary-ink, var(--ink-onlight)); }
102
103
  [data-palette="orchard"] .avatar:not(.avatar--outline, .avatar--add, .avatar--on) { background: var(--avatar-bg, var(--highlight-4)); --dark: 1; }
103
- [data-palette="orchard"] .ring::before { background: conic-gradient(var(--highlight-3) calc(var(--value) * 1%), var(--ink-tint) 0); }
104
- [data-palette="orchard"] .toggle:checked { background: var(--highlight-3); --accent-dark: 0; } /* sky is a light ground: its knob is onlight */
105
104
 
106
105
  /* ---- VERS — Lh's own-palette pick (2026-09-25): white surface, champagne paper, sage brand; earth tones for tones 2·4·5 ---- */
107
106
  [data-palette="vers"] {
package/dist/cardds.css CHANGED
@@ -527,11 +527,10 @@
527
527
  /* fields are WHITE boxes on every ground (Lh 2026-09-25): a light ground, so the words typed in them are onlight, even on the moss card */
528
528
  [data-palette="orchard"] .field { background: var(--field-bg, #ffffff); color: var(--ink-onlight); }
529
529
  [data-palette="orchard"] .pin__cell { background: var(--pin-cell-bg, #ffffff); color: var(--ink-onlight); }
530
- /* the vivid ones, tried on the live parts (Lh 2026-09-25): primary = yellow · a user avatar = fuchsia · ring = sky · a switch on = sky · maple only on small dots (the count, dot a); the chosen stack tab stays moss */
530
+ /* the vivid ones, tried on the live parts (Lh 2026-09-25): primary = yellow · a user avatar = fuchsia · maple only on small dots (the count, dot a); the chosen stack tab stays moss.
531
+ Every switch (Toggle, Check, a pick, a Ring…) is the brand, --accent / --on-accent, as on every palette: no switch rule here (Lh 2026-10-25) */
531
532
  [data-palette="orchard"] :is(.btn--primary, .icon-btn--primary) { background: var(--btn-primary-bg, var(--highlight-2)); color: var(--btn-primary-ink, var(--ink-onlight)); }
532
533
  [data-palette="orchard"] .avatar:not(.avatar--outline, .avatar--add, .avatar--on) { background: var(--avatar-bg, var(--highlight-4)); --dark: 1; }
533
- [data-palette="orchard"] .ring::before { background: conic-gradient(var(--highlight-3) calc(var(--value) * 1%), var(--ink-tint) 0); }
534
- [data-palette="orchard"] .toggle:checked { background: var(--highlight-3); --accent-dark: 0; } /* sky is a light ground: its knob is onlight */
535
534
 
536
535
  /* ---- VERS — Lh's own-palette pick (2026-09-25): white surface, champagne paper, sage brand; earth tones for tones 2·4·5 ---- */
537
536
  [data-palette="vers"] {