diff --git a/.changeset/calm-trees-travel.md b/.changeset/calm-trees-travel.md deleted file mode 100644 index 998e8a25e..000000000 --- a/.changeset/calm-trees-travel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cube-dev/ui-kit": patch ---- - -Enlarge the size of the fullscreen dialog. diff --git a/.changeset/fresh-pumas-knock.md b/.changeset/fresh-pumas-knock.md deleted file mode 100644 index 761d8ba08..000000000 --- a/.changeset/fresh-pumas-knock.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cube-dev/ui-kit": minor ---- - -Rework of Button component to align its implementation and layout with Item and ItemButton components. diff --git a/.changeset/grumpy-windows-unite.md b/.changeset/grumpy-windows-unite.md deleted file mode 100644 index d2f66d252..000000000 --- a/.changeset/grumpy-windows-unite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cube-dev/ui-kit": patch ---- - -Add IconSwitch component for icon transitions. diff --git a/.changeset/hip-coats-sit.md b/.changeset/hip-coats-sit.md deleted file mode 100644 index 19fb15cb8..000000000 --- a/.changeset/hip-coats-sit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cube-dev/ui-kit": patch ---- - -Remove redundant `isButton` prop from Item component. diff --git a/.changeset/hungry-geckos-kneel.md b/.changeset/hungry-geckos-kneel.md deleted file mode 100644 index 4c2180176..000000000 --- a/.changeset/hungry-geckos-kneel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cube-dev/ui-kit": patch ---- - -Add `tight` modifier to `preset` style for setting line-height to the same value as font-size. diff --git a/.changeset/loud-worms-hunt.md b/.changeset/loud-worms-hunt.md deleted file mode 100644 index aea14ef06..000000000 --- a/.changeset/loud-worms-hunt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cube-dev/ui-kit": patch ---- - -Add `card` type to Item component. diff --git a/.changeset/strange-coats-tickle.md b/.changeset/strange-coats-tickle.md deleted file mode 100644 index c0710336e..000000000 --- a/.changeset/strange-coats-tickle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cube-dev/ui-kit": patch ---- - -Add `preserveContent` prop to DisplayTransition component. When enabled (default: true), the component preserves children content during exit transitions, ensuring smooth animations even when parent components remove content immediately after hiding. diff --git a/.changeset/tasty-tokens-support.md b/.changeset/tasty-tokens-support.md deleted file mode 100644 index 714b7aafc..000000000 --- a/.changeset/tasty-tokens-support.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cube-dev/ui-kit": minor ---- - -Add `tokens` prop to tasty components for defining CSS custom properties as inline styles. Tokens support design system values (`$name` for regular properties, `#name` for colors with RGB variants) and are merged from component defaults to instance usage. Use `tokens` instead of `style` prop for dynamic CSS custom properties. diff --git a/.changeset/tiny-buses-wave.md b/.changeset/tiny-buses-wave.md deleted file mode 100644 index aeda055c3..000000000 --- a/.changeset/tiny-buses-wave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cube-dev/ui-kit": patch ---- - -Add `title` type support to Item component. diff --git a/.changeset/violet-bees-promise.md b/.changeset/violet-bees-promise.md deleted file mode 100644 index cf8906f6e..000000000 --- a/.changeset/violet-bees-promise.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@cube-dev/ui-kit": minor ---- - -Add dynamic icon support to Button and Item components. The `icon` and `rightIcon` props now support: -- `true` - renders an empty slot (reserves space but shows nothing) -- Function `({ loading, selected, ...mods }) => ReactNode | true` - dynamically renders icon based on component modifiers - -Also made `Mods` type generic for better type definitions: `Mods<{ loading?: boolean }>` instead of extending interface. diff --git a/.changeset/violet-gifts-buy.md b/.changeset/violet-gifts-buy.md deleted file mode 100644 index 07937a75c..000000000 --- a/.changeset/violet-gifts-buy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cube-dev/ui-kit": patch ---- - -Remove the selected mod in DisclosureTrigger.' diff --git a/.changeset/witty-geckos-dance.md b/.changeset/witty-geckos-dance.md deleted file mode 100644 index 3c3a862a1..000000000 --- a/.changeset/witty-geckos-dance.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cube-dev/ui-kit": patch ---- - -Fix Layout.PanelHeader props type. diff --git a/CHANGELOG.md b/CHANGELOG.md index 34cb29b93..5a1534332 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,40 @@ # @cube-dev/ui-kit +## 0.98.0 + +### Minor Changes + +- [#923](https://github.com/cube-js/cube-ui-kit/pull/923) [`cb6340ef`](https://github.com/cube-js/cube-ui-kit/commit/cb6340ef6b8faff274b7ebd52038587e60d72ff1) Thanks [@tenphi](https://github.com/tenphi)! - Rework of Button component to align its implementation and layout with Item and ItemButton components. + +- [#924](https://github.com/cube-js/cube-ui-kit/pull/924) [`fd497403`](https://github.com/cube-js/cube-ui-kit/commit/fd4974035a916cc7f6a17b9a3678571c806f04ea) Thanks [@tenphi](https://github.com/tenphi)! - Add `tokens` prop to tasty components for defining CSS custom properties as inline styles. Tokens support design system values (`$name` for regular properties, `#name` for colors with RGB variants) and are merged from component defaults to instance usage. Use `tokens` instead of `style` prop for dynamic CSS custom properties. + +- [#924](https://github.com/cube-js/cube-ui-kit/pull/924) [`fd497403`](https://github.com/cube-js/cube-ui-kit/commit/fd4974035a916cc7f6a17b9a3678571c806f04ea) Thanks [@tenphi](https://github.com/tenphi)! - Add dynamic icon support to Button and Item components. The `icon` and `rightIcon` props now support: + + - `true` - renders an empty slot (reserves space but shows nothing) + - Function `({ loading, selected, ...mods }) => ReactNode | true` - dynamically renders icon based on component modifiers + + Also made `Mods` type generic for better type definitions: `Mods<{ loading?: boolean }>` instead of extending interface. + +### Patch Changes + +- [#924](https://github.com/cube-js/cube-ui-kit/pull/924) [`fd497403`](https://github.com/cube-js/cube-ui-kit/commit/fd4974035a916cc7f6a17b9a3678571c806f04ea) Thanks [@tenphi](https://github.com/tenphi)! - Enlarge the size of the fullscreen dialog. + +- [#924](https://github.com/cube-js/cube-ui-kit/pull/924) [`fd497403`](https://github.com/cube-js/cube-ui-kit/commit/fd4974035a916cc7f6a17b9a3678571c806f04ea) Thanks [@tenphi](https://github.com/tenphi)! - Add IconSwitch component for icon transitions. + +- [#924](https://github.com/cube-js/cube-ui-kit/pull/924) [`fd497403`](https://github.com/cube-js/cube-ui-kit/commit/fd4974035a916cc7f6a17b9a3678571c806f04ea) Thanks [@tenphi](https://github.com/tenphi)! - Remove redundant `isButton` prop from Item component. + +- [#924](https://github.com/cube-js/cube-ui-kit/pull/924) [`fd497403`](https://github.com/cube-js/cube-ui-kit/commit/fd4974035a916cc7f6a17b9a3678571c806f04ea) Thanks [@tenphi](https://github.com/tenphi)! - Add `tight` modifier to `preset` style for setting line-height to the same value as font-size. + +- [#924](https://github.com/cube-js/cube-ui-kit/pull/924) [`fd497403`](https://github.com/cube-js/cube-ui-kit/commit/fd4974035a916cc7f6a17b9a3678571c806f04ea) Thanks [@tenphi](https://github.com/tenphi)! - Add `card` type to Item component. + +- [#924](https://github.com/cube-js/cube-ui-kit/pull/924) [`fd497403`](https://github.com/cube-js/cube-ui-kit/commit/fd4974035a916cc7f6a17b9a3678571c806f04ea) Thanks [@tenphi](https://github.com/tenphi)! - Add `preserveContent` prop to DisplayTransition component. When enabled (default: true), the component preserves children content during exit transitions, ensuring smooth animations even when parent components remove content immediately after hiding. + +- [#924](https://github.com/cube-js/cube-ui-kit/pull/924) [`fd497403`](https://github.com/cube-js/cube-ui-kit/commit/fd4974035a916cc7f6a17b9a3678571c806f04ea) Thanks [@tenphi](https://github.com/tenphi)! - Add `title` type support to Item component. + +- [#924](https://github.com/cube-js/cube-ui-kit/pull/924) [`fd497403`](https://github.com/cube-js/cube-ui-kit/commit/fd4974035a916cc7f6a17b9a3678571c806f04ea) Thanks [@tenphi](https://github.com/tenphi)! - Remove the selected mod in DisclosureTrigger.' + +- [#924](https://github.com/cube-js/cube-ui-kit/pull/924) [`fd497403`](https://github.com/cube-js/cube-ui-kit/commit/fd4974035a916cc7f6a17b9a3678571c806f04ea) Thanks [@tenphi](https://github.com/tenphi)! - Fix Layout.PanelHeader props type. + ## 0.97.1 ### Patch Changes diff --git a/package.json b/package.json index 586aa4704..0af22bc2b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cube-dev/ui-kit", - "version": "0.97.1", + "version": "0.98.0", "type": "module", "description": "UIKit for Cube Projects", "repository": {