Releases: cube-js/cube-ui-kit
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.
v0.94.2
v0.94.1
v0.94.0
Minor Changes
-
#906
9fd69a24Thanks @tenphi! - Add newDisclosurecomponent for expandable/collapsible content sections. Features include:Disclosure- Single expandable panel with trigger and contentDisclosure.Trigger- Built on ItemButton with full support for icons, descriptions, and actionsDisclosure.Content- Collapsible content area with smooth height animationsDisclosure.Group- Accordion container for multiple disclosures with single or multiple expanded supportDisclosure.Item- Individual item within a group
Supports controlled/uncontrolled state,
shapevariants (default,card,sharp), disabled state, custom transition duration, and render prop API for custom triggers.
Patch Changes
v0.93.1
v0.93.0
Minor Changes
-
#901
1d980997Thanks @tenphi! - Added unified support forfieldProps,fieldStyles,labelProps, andlabelStylesacross all field components. ThefieldStylesandlabelStylesprops serve as shorthands forfieldProps.stylesandlabelProps.stylesrespectively, with shorthand props taking priority. All merging logic is centralized in thewrapWithFieldhelper.Breaking changes:
- Removed
wrapperStylesprop from TextInputBase and Select components (usestylesprop instead for the root element).
- Removed