@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 +12 -0
- package/components/card/card.css +22 -6
- package/components/card/card.yaml +5 -0
- package/dist/web-components.min.css +1 -1
- package/package.json +1 -1
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
|
package/components/card/card.css
CHANGED
|
@@ -304,12 +304,28 @@
|
|
|
304
304
|
padding: 0;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
/*
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
card
|
|
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
|
- >-
|