@adia-ai/web-components 0.6.46 → 0.6.47

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
@@ -1,5 +1,17 @@
1
1
  # Changelog — @adia-ai/web-components
2
2
 
3
+ ## [0.6.47] — 2026-05-29
4
+
5
+ ### Added — `<card-ui>` `[grow]` section attribute
6
+
7
+ - **`components/card/card.css`** — `<section grow>` inside `card-ui` fills the card's remaining vertical height via `flex: 1`. The card becomes a `flex-direction: column` container when any direct `<section[grow]>` child is present, so the grow section absorbs the leftover space after header/footer. Requires the card to have a definite height (explicit inline height, grid row track, or flex parent) — a content-sized card has nothing to fill. Composable with `[bleed]`: `<section bleed grow>` for edge-to-edge fill surfaces (maps, canvases, full-bleed tables). A `<chart-ui>` directly inside `<section bleed>` auto-grows without `[grow]` (pre-existing zero-config convenience for the common chart case).
8
+ - **`components/card/card.examples.html`** — examples demonstrating the grow pattern.
9
+ - **`components/card/card.yaml`** — a2ui rules updated to document `[grow]`.
10
+
11
+ ### Maintenance
12
+
13
+ - **`dist/web-components.min.css`** — bundle rebuild reflecting the `card.css` addition.
14
+
3
15
  ## [0.6.46] — 2026-05-29
4
16
 
5
17
  ### Added — declarative `traits="..."` Quick start sections on all 56 trait pages
@@ -304,12 +304,28 @@
304
304
  padding: 0;
305
305
  }
306
306
 
307
- /* Flex-column growth for bleed chart cards (sparklines, area, line).
308
- Switches the card to a column flex container so the bleed section
309
- can flex-grow to fill remaining height after the header. The chart
310
- then uses height:100% to fill the section. Only activates when a
311
- chart-ui is a direct child of a bleed section no effect on other
312
- card layouts. */
307
+ /* [grow] section fills remaining card height. Switches the card to a
308
+ column flex container so the section flex-grows into the leftover
309
+ space after the header/footer. Matches the col-ui[grow] / row-ui[grow]
310
+ semantics (flex:1) same mental model, applied to a card body section.
311
+ Requires the card to have a definite height (inline height, a grid row
312
+ track, or a flex parent); a content-sized card has no leftover to fill.
313
+ Combine with [bleed] for edge-to-edge fill (tables, charts, maps):
314
+ <section bleed grow>. */
315
+ :scope:has(> section[grow]) {
316
+ display: flex;
317
+ flex-direction: column;
318
+ }
319
+
320
+ & > section[grow] {
321
+ flex: 1;
322
+ min-height: 0;
323
+ }
324
+
325
+ /* Auto-grow for bleed chart cards (sparklines, area, line) — a chart-ui
326
+ directly inside a bleed section fills height without an explicit [grow]
327
+ (the chart itself uses height:100%). Equivalent to the [grow] rule
328
+ above; kept as a zero-config convenience for the common chart case. */
313
329
  :scope:has(> section[bleed] > chart-ui) {
314
330
  display: flex;
315
331
  flex-direction: column;
@@ -137,6 +137,11 @@ a2ui:
137
137
  row 2 without needing slot="description".
138
138
  - Multiple <section> siblings are allowed and stack vertically. [bleed] on a section removes its margin for edge-to-edge
139
139
  content (tables, charts); [padding] adds a canvas-scrim background for hero regions.
140
+ - '[grow] on a section makes it fill the card''s remaining height (flex:1 — same semantics as col-ui[grow]/row-ui[grow]).
141
+ The card becomes a flex column so the section absorbs the leftover space after the header/footer. Requires the card to
142
+ have a definite height (inline height, grid row track, or flex parent) — a content-sized card has nothing to fill.
143
+ Combine with [bleed] for edge-to-edge fill: <section bleed grow>. A <chart-ui> directly inside a <section bleed>
144
+ auto-grows without [grow] (zero-config convenience for the common chart case).'
140
145
  - 'Footer with a [slot="description"] + [slot="action"] pair triggers justify-content: space-between — useful for a "Last
141
146
  saved …" note on the left and a Save/Cancel button group on the right.'
142
147
  - >-