diff --git a/.changeset/report-blocks-by-theme.md b/.changeset/report-blocks-by-theme.md deleted file mode 100644 index 740ddba..0000000 --- a/.changeset/report-blocks-by-theme.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"ibcs-react": minor ---- - -How a `Report` frames its blocks is now a theme decision, not a fixed look. A new `card` token group (`radius`, `border`, `borderWidth`, `shadow`, `padding`) is the default behind every `appearance` prop, with two ready-made sets: `framedCard` — what every preset ships with, a hairline border, gently rounded, not lifted — and `flatCard` — no border, rounding, shadow or padding, blocks separated by whitespace alone, which is the IBCS SIMPLIFY ideal and what a printed page wants. It composes with any palette: ``. `cardSurface` reads the same tokens, so `KpiCard` follows the theme too and its own `appearance` still wins per instance. Inside a `Report`, a KPI block is now framed once — the block is the frame and the card inside draws none — where before the two borders stacked. The block chrome unifies on the card values (radius 8, no shadow) in place of the wrapper's own 10px/faint-shadow look. - -The single-column collapse is a screen rule now: `@media screen and (max-width: …)`, so a PDF or print rendering keeps the authored spans whatever the paper width — an A4 page area is narrower than the old 760px breakpoint and used to stack every block full-width. New `collapseBelow` prop (default 760, `false` to never collapse), scoped per grid so two reports on one page can differ. The parts carry stable selectors for CSS a theme cannot express: `.ibcs-report` on the root (before your `className`), `.ibcs-report-grid`, and `.ibcs-report-block` with `data-block-type` / `data-block-id` on every block. diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c2dfa6..c73872f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.4.0 + +### Minor Changes + +- 0e890d4: How a `Report` frames its blocks is now a theme decision, not a fixed look. A new `card` token group (`radius`, `border`, `borderWidth`, `shadow`, `padding`) is the default behind every `appearance` prop, with two ready-made sets: `framedCard` — what every preset ships with, a hairline border, gently rounded, not lifted — and `flatCard` — no border, rounding, shadow or padding, blocks separated by whitespace alone, which is the IBCS SIMPLIFY ideal and what a printed page wants. It composes with any palette: ``. `cardSurface` reads the same tokens, so `KpiCard` follows the theme too and its own `appearance` still wins per instance. Inside a `Report`, a KPI block is now framed once — the block is the frame and the card inside draws none — where before the two borders stacked. The block chrome unifies on the card values (radius 8, no shadow) in place of the wrapper's own 10px/faint-shadow look. + + The single-column collapse is a screen rule now: `@media screen and (max-width: …)`, so a PDF or print rendering keeps the authored spans whatever the paper width — an A4 page area is narrower than the old 760px breakpoint and used to stack every block full-width. New `collapseBelow` prop (default 760, `false` to never collapse), scoped per grid so two reports on one page can differ. The parts carry stable selectors for CSS a theme cannot express: `.ibcs-report` on the root (before your `className`), `.ibcs-report-grid`, and `.ibcs-report-block` with `data-block-type` / `data-block-id` on every block. + ## 1.3.0 ### Minor Changes diff --git a/package-lock.json b/package-lock.json index 2ce7ea8..d1dc2d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ibcs-react", - "version": "1.3.0", + "version": "1.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ibcs-react", - "version": "1.3.0", + "version": "1.4.0", "license": "MIT", "devDependencies": { "@changesets/cli": "^2.31.0", diff --git a/package.json b/package.json index fb24358..4739652 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ibcs-react", - "version": "1.3.0", + "version": "1.4.0", "description": "IBCS / ISO 24896:2026 business reporting components for React: statement tables, variance and waterfall charts, KPI cards and a conformance linter. One data model, many views.", "keywords": [ "actual-vs-budget",