Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/lazy-pandas-tidy.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/lucky-frogs-inform.md

This file was deleted.

18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @cube-dev/ui-kit

## 0.149.0

### Minor Changes

- [#1257](https://github.com/cube-js/cube-ui-kit/pull/1257) [`ad7190c7`](https://github.com/cube-js/cube-ui-kit/commit/ad7190c7be84654799aad1c9b72c2f4447ccbcee) Thanks [@tenphi](https://github.com/tenphi)! - Added the `InfoBadge` component — an informational icon with a tooltip. It renders as a plain `ItemBadge` by default and upgrades to an `ItemAction` link/button as soon as `to` or `onPress` is provided, so the same icon can point at the docs. The badge contains its own press events (including `preventDefault` on click), which lets it sit inside a bigger click target — a field `<label>`, a switch row, a table header — without activating it. When interactive, the tooltip gets a localized `Click to learn more.` suffix, which `tooltipSuffix` overrides or removes.

`size` is `small` | `medium` | `large` (default `medium`). Every size contributes exactly one line to the text around it, so the badge stays vertically aligned with adjacent text — in a field label, a table header, or mid-paragraph — whichever size you pick.

The info icon that fields render for their `tooltip` prop is now an `InfoBadge`, so clicking it no longer activates the field it labels.

`tooltip={{ title }}` on `ItemAction` and `ItemBadge` now accepts any `ReactNode` as the title. Rich titles are no longer used as the `aria-label` (previously they were stringified into it) — pass `aria-label` for those.

`ItemAction` and `ItemBadge` now treat an explicit `aria-label` as higher priority than the accessible name inferred from a string `tooltip`. Previously `ItemAction` let the tooltip win, so an `aria-label` passed alongside a string tooltip was silently dropped.

### Patch Changes

- [#1260](https://github.com/cube-js/cube-ui-kit/pull/1260) [`07914318`](https://github.com/cube-js/cube-ui-kit/commit/0791431810ae3c9f663ccbf457fdc3c6c7cfe4fa) Thanks [@tenphi](https://github.com/tenphi)! - Update `@tenphi/tasty` to 2.11.0 and `@tenphi/eslint-plugin-tasty` to 0.11.2, and reformat the styles the new lint rules cover. No public API or rendering change — every rewrite was verified to emit identical CSS, and Chromatic reports all 905 stories unchanged.

## 0.148.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cube-dev/ui-kit",
"version": "0.148.0",
"version": "0.149.0",
"type": "module",
"description": "UIKit for Cube Projects",
"repository": {
Expand Down
Loading