@usableapp/cardds 0.7.143 → 0.7.145
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 +18 -0
- package/css/card.css +1 -0
- package/css/sheet.css +1 -1
- package/dist/cardds.css +2 -1
- package/dist/catalog.json +1 -1
- package/dist/sheets/Sheet.d.ts +3 -1
- package/dist/sheets/Sheet.js +2 -2
- package/docs/reference.md +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
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.145 — 2026-10-26
|
|
6
|
+
|
|
7
|
+
A `Sheet` says how much of it shows at `half`: `half`.
|
|
8
|
+
|
|
9
|
+
Components: Sheet
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **`Sheet half`**: how much of the sheet shows at `half`, in tenths of its height, 1–9 (default 5). Before → after: the half stop was always 50%, retunable only by the app's own CSS on `--sheet-half` → `<Sheet half={6}>` shows 60% at half. The sheet's slide, its body's scroll-padding and the drag's snap all read it; the state is still called `half`, and the other states (`peek`, `3q`, `full`, `away`) do not move. A sheet without the prop is unchanged. Story `Sheet · HalfSix`.
|
|
13
|
+
|
|
14
|
+
## 0.7.144 — 2026-10-26
|
|
15
|
+
|
|
16
|
+
A list of steps on a whole-card back reads from the start edge.
|
|
17
|
+
|
|
18
|
+
Components: Card
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- **`Bullets` on a `Card backFull` back keeps the card's width and reads from the start edge** (Lh 2026-10-26). Before → after: the whole back was centred (`.card__middle--full`), so a list of steps stood in the middle and each line's words centred under its pic → the `Bullets` stretches to the card's width and its text starts at the start edge, as a `Pin` or a `Field` already did. Nothing to change in a screen.
|
|
22
|
+
|
|
5
23
|
## 0.7.143 — 2026-10-26
|
|
6
24
|
|
|
7
25
|
A sticky note's shadow is lighter and closer. A chat of bubbles has its message box: `MessageBar`.
|
package/css/card.css
CHANGED
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
.card__middle { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--card-gap); height: var(--card-middle-h, auto); overflow: hidden; } /* a flex column, not a grid: the middle's height is the flexed one, so one thing on a face (a QR, a code) may take the whole middle with height: 100% (a grid's auto row never stretched to it, and the thing stood at the top of an empty band) */
|
|
90
90
|
.card__middle--full { justify-content: center; align-items: center; text-align: center; } /* Card backFull: the back is the whole card, no head and no foot — one code, one sentence and its button, a thank-you, in the middle both ways */
|
|
91
91
|
.card__middle--full > :is(.pin, .field, .composer, .form-note) { align-self: stretch; } /* a thing to type in keeps the card's width (centred, a Pin's cells would shrink to nothing) */
|
|
92
|
+
.card__middle--full > .bullets { align-self: stretch; text-align: start; } /* a list of steps keeps the card's width and reads from the start edge (centred, each line's pic would float with its words) */
|
|
92
93
|
.card__turn { position: absolute; inset: 0; width: var(--px); height: var(--px); padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
|
|
93
94
|
.card__face:has(> .card__turn:focus-visible) { outline: var(--focus); outline-offset: calc(-1 * var(--sp-1)); }
|
|
94
95
|
.head > .chip-row > .chip > .icon { --icon-display: inline-block; --icon-align: -0.15em; --icon-margin: 0 var(--chip-sm-gap, var(--sp-1)) 0 0; }
|
package/css/sheet.css
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
where the first control starts and nothing of it leaks through. Published
|
|
53
53
|
(and registered in tokens.css) so a sheet whose head is taller can
|
|
54
54
|
retune it: .my-sheet { --sheet-peek: … } */
|
|
55
|
-
--sheet-half: 0.5; /*
|
|
55
|
+
--sheet-half: 0.5; /* the share of the sheet's own height hidden at half; the Sheet's `half` prop sets it inline (half={6} → 0.4) */
|
|
56
56
|
--sheet-3q: 0.25; /* three quarters showing: slid by a quarter */
|
|
57
57
|
/* the sheet's own height, seen from inside it: the box it slides in is the
|
|
58
58
|
size container (.step, .sheet-stage), so 100cqh is that box, less what
|
package/dist/cardds.css
CHANGED
|
@@ -1050,6 +1050,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1050
1050
|
.card__middle { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--card-gap); height: var(--card-middle-h, auto); overflow: hidden; } /* a flex column, not a grid: the middle's height is the flexed one, so one thing on a face (a QR, a code) may take the whole middle with height: 100% (a grid's auto row never stretched to it, and the thing stood at the top of an empty band) */
|
|
1051
1051
|
.card__middle--full { justify-content: center; align-items: center; text-align: center; } /* Card backFull: the back is the whole card, no head and no foot — one code, one sentence and its button, a thank-you, in the middle both ways */
|
|
1052
1052
|
.card__middle--full > :is(.pin, .field, .composer, .form-note) { align-self: stretch; } /* a thing to type in keeps the card's width (centred, a Pin's cells would shrink to nothing) */
|
|
1053
|
+
.card__middle--full > .bullets { align-self: stretch; text-align: start; } /* a list of steps keeps the card's width and reads from the start edge (centred, each line's pic would float with its words) */
|
|
1053
1054
|
.card__turn { position: absolute; inset: 0; width: var(--px); height: var(--px); padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
|
|
1054
1055
|
.card__face:has(> .card__turn:focus-visible) { outline: var(--focus); outline-offset: calc(-1 * var(--sp-1)); }
|
|
1055
1056
|
.head > .chip-row > .chip > .icon { --icon-display: inline-block; --icon-align: -0.15em; --icon-margin: 0 var(--chip-sm-gap, var(--sp-1)) 0 0; }
|
|
@@ -1932,7 +1933,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1932
1933
|
where the first control starts and nothing of it leaks through. Published
|
|
1933
1934
|
(and registered in tokens.css) so a sheet whose head is taller can
|
|
1934
1935
|
retune it: .my-sheet { --sheet-peek: … } */
|
|
1935
|
-
--sheet-half: 0.5; /*
|
|
1936
|
+
--sheet-half: 0.5; /* the share of the sheet's own height hidden at half; the Sheet's `half` prop sets it inline (half={6} → 0.4) */
|
|
1936
1937
|
--sheet-3q: 0.25; /* three quarters showing: slid by a quarter */
|
|
1937
1938
|
/* the sheet's own height, seen from inside it: the box it slides in is the
|
|
1938
1939
|
size container (.step, .sheet-stage), so 100cqh is that box, less what
|