From e18cab34fd87c0a4549919405c95e7c4ea9ffc6c Mon Sep 17 00:00:00 2001 From: Brian Love Date: Sat, 5 Sep 2026 12:46:49 -0700 Subject: [PATCH] chore: version packages --- .changeset/components-sp1-button.md | 46 ------------------------ packages/core/CHANGELOG.md | 2 ++ packages/core/package.json | 2 +- packages/react/CHANGELOG.md | 52 ++++++++++++++++++++++++++++ packages/react/package.json | 2 +- packages/stream-adapter/CHANGELOG.md | 2 ++ packages/stream-adapter/package.json | 2 +- packages/ui/CHANGELOG.md | 46 ++++++++++++++++++++++++ packages/ui/package.json | 2 +- 9 files changed, 106 insertions(+), 50 deletions(-) delete mode 100644 .changeset/components-sp1-button.md diff --git a/.changeset/components-sp1-button.md b/.changeset/components-sp1-button.md deleted file mode 100644 index efca4ed92..000000000 --- a/.changeset/components-sp1-button.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -"@pretable/react": minor -"@pretable/ui": patch ---- - -The first two components of a kit the grid renders its own chrome from, and a -`components` prop to replace either with your own. - -`PretableButton` (two looks: `ghost`, the 24px action with a hover tint, and -`link`, plain accent text) and `PretableIconButton` (an icon-only button whose -`aria-label` is a required prop — omitting the accessible name is now a -compile error, and an empty one warns in development). Both are always -`type="button"`, pass `className` and `style` straight through, forward their -`ref`, and carry `data-pretable-button` / `data-pretable-icon-button`, -`data-pretable-variant` (labelled buttons) and `data-pretable-site` for styling -through the grid's usual attributes-and-tokens channel. - -`components={{ Button, IconButton }}` on `` and `` -replaces a component everywhere it appears — the tool panel, the header, the -group panel and the portalled filter dialog — and the replacement receives -exactly the props the built-in does, `site` included, so it can branch on where -in the grid it is. It must forward its `ref` (under React 18, `forwardRef`; under -React 19 a plain `ref` prop): the grid anchors menus on and returns focus to -that node. - -The grid's twelve plain push-buttons now render from these. Each keeps its -original attribute (`data-pretable-filter-clear`, `data-pretable-tool-reset`, -…), so selectors and stylesheets keyed on them keep working; the shared look -moved from twelve site rules onto the component rules, and every site's -computed box, colours and focus ring were measured before and after — no pixel -moved. Three things did change on purpose: `Clear` and `Reset columns`, and the -funnel, column-menu and chip-remove icon buttons, now wear the product's focus -ring rather than the browser's; `Clear` and `Reset columns` carry the control -radius (visible only on that ring's corners); and the kit icon-button rule does -not set `position: relative` — the three grid buttons that enlarge their hit -area with a `::after` declare it themselves, so a consumer rendering an -absolutely-positioned child inside `PretableIconButton` should position the -button explicitly. - -Two smaller notes. The set of built-in `site` names (`PretableBuiltInButtonSite`) -grows additively — a new grid button may add one without a major bump. And the -two portalled surfaces that host these controls, the filter dialog and the -column menu, now declare `line-height` alongside the family, size and colour -they already declared: `font: inherit` on a kit button had been pulling the -host page's line-height into `Clear` and every menu item for a consumer with no -CSS reset. diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 4a36eb410..7c63a352e 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,7 @@ # @pretable/core +## 0.16.0 + ## 0.15.3 ## 0.15.2 diff --git a/packages/core/package.json b/packages/core/package.json index 06cc296da..d5a04b6c8 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@pretable/core", - "version": "0.15.3", + "version": "0.16.0", "description": "Framework-agnostic grid state primitives for Pretable.", "license": "MIT", "repository": { diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 4370432cc..77c8ba29d 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,57 @@ # @pretable/react +## 0.16.0 + +### Minor Changes + +- The first two components of a kit the grid renders its own chrome from, and a ([#580](https://github.com/cacheplane/pretable/pull/580)) + `components` prop to replace either with your own. + + `PretableButton` (two looks: `ghost`, the 24px action with a hover tint, and + `link`, plain accent text) and `PretableIconButton` (an icon-only button whose + `aria-label` is a required prop — omitting the accessible name is now a + compile error, and an empty one warns in development). Both are always + `type="button"`, pass `className` and `style` straight through, forward their + `ref`, and carry `data-pretable-button` / `data-pretable-icon-button`, + `data-pretable-variant` (labelled buttons) and `data-pretable-site` for styling + through the grid's usual attributes-and-tokens channel. + + `components={{ Button, IconButton }}` on `` and `` + replaces a component everywhere it appears — the tool panel, the header, the + group panel and the portalled filter dialog — and the replacement receives + exactly the props the built-in does, `site` included, so it can branch on where + in the grid it is. It must forward its `ref` (under React 18, `forwardRef`; under + React 19 a plain `ref` prop): the grid anchors menus on and returns focus to + that node. + + The grid's twelve plain push-buttons now render from these. Each keeps its + original attribute (`data-pretable-filter-clear`, `data-pretable-tool-reset`, + …), so selectors and stylesheets keyed on them keep working; the shared look + moved from twelve site rules onto the component rules, and every site's + computed box, colours and focus ring were measured before and after — no pixel + moved. Three things did change on purpose: `Clear` and `Reset columns`, and the + funnel, column-menu and chip-remove icon buttons, now wear the product's focus + ring rather than the browser's; `Clear` and `Reset columns` carry the control + radius (visible only on that ring's corners); and the kit icon-button rule does + not set `position: relative` — the three grid buttons that enlarge their hit + area with a `::after` declare it themselves, so a consumer rendering an + absolutely-positioned child inside `PretableIconButton` should position the + button explicitly. + + Two smaller notes. The set of built-in `site` names (`PretableBuiltInButtonSite`) + grows additively — a new grid button may add one without a major bump. And the + two portalled surfaces that host these controls, the filter dialog and the + column menu, now declare `line-height` alongside the family, size and colour + they already declared: `font: inherit` on a kit button had been pulling the + host page's line-height into `Clear` and every menu item for a consumer with no + CSS reset. + +### Patch Changes + +- Updated dependencies [[`9ddc19a`](https://github.com/cacheplane/pretable/commit/9ddc19adcaf7a67956d3f974a117352adb16d1f5)]: + - @pretable/ui@0.16.0 + - @pretable/core@0.16.0 + ## 0.15.3 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index b7af432a4..88433db2a 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@pretable/react", - "version": "0.15.3", + "version": "0.16.0", "description": "React components and hooks for Pretable.", "license": "MIT", "repository": { diff --git a/packages/stream-adapter/CHANGELOG.md b/packages/stream-adapter/CHANGELOG.md index bfb4cbf87..5aeb866dd 100644 --- a/packages/stream-adapter/CHANGELOG.md +++ b/packages/stream-adapter/CHANGELOG.md @@ -1,5 +1,7 @@ # @pretable/stream-adapter +## 0.16.0 + ## 0.15.3 ## 0.15.2 diff --git a/packages/stream-adapter/package.json b/packages/stream-adapter/package.json index d12e29d81..683cda056 100644 --- a/packages/stream-adapter/package.json +++ b/packages/stream-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@pretable/stream-adapter", - "version": "0.15.3", + "version": "0.16.0", "description": "Streaming row adapters for Pretable.", "license": "MIT", "repository": { diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index 78627b3a5..49b49996d 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,51 @@ # @pretable/ui +## 0.16.0 + +### Patch Changes + +- The first two components of a kit the grid renders its own chrome from, and a ([#580](https://github.com/cacheplane/pretable/pull/580)) + `components` prop to replace either with your own. + + `PretableButton` (two looks: `ghost`, the 24px action with a hover tint, and + `link`, plain accent text) and `PretableIconButton` (an icon-only button whose + `aria-label` is a required prop — omitting the accessible name is now a + compile error, and an empty one warns in development). Both are always + `type="button"`, pass `className` and `style` straight through, forward their + `ref`, and carry `data-pretable-button` / `data-pretable-icon-button`, + `data-pretable-variant` (labelled buttons) and `data-pretable-site` for styling + through the grid's usual attributes-and-tokens channel. + + `components={{ Button, IconButton }}` on `` and `` + replaces a component everywhere it appears — the tool panel, the header, the + group panel and the portalled filter dialog — and the replacement receives + exactly the props the built-in does, `site` included, so it can branch on where + in the grid it is. It must forward its `ref` (under React 18, `forwardRef`; under + React 19 a plain `ref` prop): the grid anchors menus on and returns focus to + that node. + + The grid's twelve plain push-buttons now render from these. Each keeps its + original attribute (`data-pretable-filter-clear`, `data-pretable-tool-reset`, + …), so selectors and stylesheets keyed on them keep working; the shared look + moved from twelve site rules onto the component rules, and every site's + computed box, colours and focus ring were measured before and after — no pixel + moved. Three things did change on purpose: `Clear` and `Reset columns`, and the + funnel, column-menu and chip-remove icon buttons, now wear the product's focus + ring rather than the browser's; `Clear` and `Reset columns` carry the control + radius (visible only on that ring's corners); and the kit icon-button rule does + not set `position: relative` — the three grid buttons that enlarge their hit + area with a `::after` declare it themselves, so a consumer rendering an + absolutely-positioned child inside `PretableIconButton` should position the + button explicitly. + + Two smaller notes. The set of built-in `site` names (`PretableBuiltInButtonSite`) + grows additively — a new grid button may add one without a major bump. And the + two portalled surfaces that host these controls, the filter dialog and the + column menu, now declare `line-height` alongside the family, size and colour + they already declared: `font: inherit` on a kit button had been pulling the + host page's line-height into `Clear` and every menu item for a consumer with no + CSS reset. + ## 0.15.3 ### Patch Changes diff --git a/packages/ui/package.json b/packages/ui/package.json index 0e650c831..dd0e8ff60 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@pretable/ui", - "version": "0.15.3", + "version": "0.16.0", "description": "CSS themes, tokens, and grid styles for Pretable.", "license": "MIT", "repository": {