Releases: cube-js/cube-ui-kit
v0.98.4
Patch Changes
- #934
488bda2dThanks @tenphi! - Fix infinite loop in IconSwitch component caused by unnecessary state updates when children prop reference changes. The component now renders current children directly for the active icon instead of storing it in state, preventing render loops while maintaining proper transition behavior.
v0.98.3
v0.98.2
v0.98.1
v0.98.0
Minor Changes
-
#923
cb6340efThanks @tenphi! - Rework of Button component to align its implementation and layout with Item and ItemButton components. -
#924
fd497403Thanks @tenphi! - Addtokensprop to tasty components for defining CSS custom properties as inline styles. Tokens support design system values ($namefor regular properties,#namefor colors with RGB variants) and are merged from component defaults to instance usage. Usetokensinstead ofstyleprop for dynamic CSS custom properties. -
#924
fd497403Thanks @tenphi! - Add dynamic icon support to Button and Item components. TheiconandrightIconprops 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
Modstype generic for better type definitions:Mods<{ loading?: boolean }>instead of extending interface.
Patch Changes
-
#924
fd497403Thanks @tenphi! - Enlarge the size of the fullscreen dialog. -
#924
fd497403Thanks @tenphi! - Add IconSwitch component for icon transitions. -
#924
fd497403Thanks @tenphi! - Remove redundantisButtonprop from Item component. -
#924
fd497403Thanks @tenphi! - Addtightmodifier topresetstyle for setting line-height to the same value as font-size. -
#924
fd497403Thanks @tenphi! - Addcardtype to Item component. -
#924
fd497403Thanks @tenphi! - AddpreserveContentprop 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
fd497403Thanks @tenphi! - Addtitletype support to Item component. -
#924
fd497403Thanks @tenphi! - Remove the selected mod in DisclosureTrigger.' -
#924
fd497403Thanks @tenphi! - Fix Layout.PanelHeader props type.
v0.97.1
v0.97.0
Minor Changes
-
#917
c64cd31bThanks @tenphi! - AddedLayout.ContainerandLayout.Centersub-components for centered content layouts:Layout.Container- Horizontally centered content with constrained width (min 40x, max 120x). Ideal for forms, articles, and focused content.Layout.Center- Extends Container with vertical centering and text-align center. Ideal for empty states, loading screens, and hero sections.
Both components support
innerStylesprop for customizing the inner container. -
#917
c64cd31bThanks @tenphi! - Add newmodeprop toLayout.Panelwith support forstickyandoverlaymodes:sticky- Panel floats over content without pushing it asideoverlay- Panel with dismissable backdrop (closes on backdrop click, Escape key, or focus change to main content)
New props:
mode,isDismissable,overlayStyles
Patch Changes
v0.96.0
Minor Changes
fe46a7f2Thanks @tenphi! - Add newLayoutcomponent with compound sub-components for building complex application layouts. IncludesLayout.Header,Layout.Footer,Layout.Content,Layout.Toolbar,Layout.Pane,Layout.Panel,Layout.PanelHeader,Layout.Block,Layout.Flex,Layout.Grid, and standaloneGridLayout.
v0.95.0
Minor Changes
-
#911
33990457Thanks @tenphi! - AddedTextItemcomponent for displaying text with automatic overflow handling and tooltips. Features include:- Auto-tooltip on text overflow (enabled by default)
- Text highlighting with
highlightprop for search results - Customizable highlight styles via
highlightStylesprop - Case-sensitive/insensitive highlight matching
- Inherits all
Textcomponent props
Added
Text.Highlightsub-component for semantic text highlighting (uses<mark>element).Breaking: Removed
Text.Selectionin favor ofText.Highlight.