@usableapp/cardds 0.7.115 → 0.7.116
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 +14 -0
- package/css/parts.css +4 -0
- package/dist/cardds.css +4 -0
- package/dist/catalog.json +1 -1
- package/dist/choice/CalendarWeeks.d.ts +15 -2
- package/dist/choice/CalendarWeeks.js +12 -5
- package/dist/choice/span.d.ts +41 -0
- package/dist/choice/span.js +97 -23
- package/dist/media/MapArea.d.ts +5 -3
- package/dist/media/MapArea.js +2 -1
- package/dist/type/icons.d.ts +1 -1
- package/dist/type/icons.js +2 -2
- package/docs/reference.md +22 -0
- package/icons.svg +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.116 — 2026-10-25
|
|
6
|
+
|
|
7
|
+
`MapArea mark="none"`, a `keyboard` icon, `CalendarWeeks` holding several ranges, and controls in a scrolling body no longer cut with large text.
|
|
8
|
+
|
|
9
|
+
Components: all
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **`MapArea mark="none"`: no centre mark, for an app whose map engine draws its own marks.** Before, the centre always showed a `ring` or a `pin`. With `none` nothing stands at the centre and `ringRef` / `ringLabel` are not read, so need not be passed. `ring` and `pin` are unchanged. Story `MapArea/NoMark` (new).
|
|
13
|
+
- **Icon `keyboard`**, in the stroke of `mic`: a "type" choice beside a "speak" one (`BtnGroup select="one"` of `IconBtn`s). Shown in the icon story and a `BtnGroup` sample.
|
|
14
|
+
- **`CalendarWeeks ranges`: several runs of days at once.** `ranges` + `onRangesChange` (or `defaultRanges`), a list of `[first, last]` day keys in order (the same key twice for one day). A tap on a free day adds that day; a tap on a held day removes the whole range it is in; a drag along a row adds its run. A new range that overlaps or touches held ones is merged into one (Mon–Tue held, a tap on Wed = Mon–Wed); a disabled day keeps the ranges on its sides apart. Ranges outside the shown `weeks` (the app showed another month) are kept and handed back with every change; a range partly in sight shows its part and is handed back whole. Keys must sort as their days do (ISO `2026-06-05`). Given `ranges`, `span` and `selected` are not read; `span` itself is unchanged. Story `CalendarWeeks/Ranges` (new).
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- **A control in a body long enough to scroll is no longer cut at its top with large system text.** The body's grid gave a row only its item's minimum (a `Btn`'s `--btn-h`) once the content overflowed, while the button with larger text was taller; a centred `form` button stood out of its row and the scroll edge cut it (seen on a sheet that is not `paper`, at 130% and 160%). Now every row of `.body` is as tall as what it holds (`grid-auto-rows: max-content`). At 100% nothing moves except rows that had the same overflow.
|
|
18
|
+
|
|
5
19
|
## 0.7.115 — 2026-10-24
|
|
6
20
|
|
|
7
21
|
A pick of words that reads as buttons (`BtnGroup look="choice"`), and map places that keep their names in a bubble (`MapPick tip`).
|
package/css/parts.css
CHANGED
|
@@ -227,6 +227,10 @@
|
|
|
227
227
|
display: grid;
|
|
228
228
|
gap: var(--body-gap, var(--card-gap));
|
|
229
229
|
align-content: start;
|
|
230
|
+
/* every row as tall as what it holds. A body that scrolls has no room to hand out, so an `auto` row stays at its item's minimum
|
|
231
|
+
contribution, which for a control with a min-height (a Btn's --btn-h) is that min-height, not the control: with larger text a
|
|
232
|
+
centred `form` button stood out of its row and the scroll edge cut its top */
|
|
233
|
+
grid-auto-rows: max-content;
|
|
230
234
|
min-height: 0;
|
|
231
235
|
padding-top: var(--body-pad-top, 0rem);
|
|
232
236
|
overflow-y: auto;
|
package/dist/cardds.css
CHANGED
|
@@ -4400,6 +4400,10 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4400
4400
|
display: grid;
|
|
4401
4401
|
gap: var(--body-gap, var(--card-gap));
|
|
4402
4402
|
align-content: start;
|
|
4403
|
+
/* every row as tall as what it holds. A body that scrolls has no room to hand out, so an `auto` row stays at its item's minimum
|
|
4404
|
+
contribution, which for a control with a min-height (a Btn's --btn-h) is that min-height, not the control: with larger text a
|
|
4405
|
+
centred `form` button stood out of its row and the scroll edge cut its top */
|
|
4406
|
+
grid-auto-rows: max-content;
|
|
4403
4407
|
min-height: 0;
|
|
4404
4408
|
padding-top: var(--body-pad-top, 0rem);
|
|
4405
4409
|
overflow-y: auto;
|