Skip to content

Latest commit

 

History

History
3016 lines (2130 loc) · 157 KB

CHANGELOG.md

File metadata and controls

3016 lines (2130 loc) · 157 KB

@clickhouse/click-ui

0.16.0

Minor Changes

  • 822b25d: Add preserveLineBreaks to Alert. When it is true, string text keeps \n line breaks.

    Visual: unchanged by default. Set preserveLineBreaks on Alert, WarningAlert, DangerAlert, InfoAlert, or SuccessAlert to opt in. ReactNode text is unchanged.

  • b050934: New Skeleton component: a placeholder for content that is still loading, in two shapes. shape="text" (the default) draws lines of text, each as tall as a line of Text at the same size (sm or md); shape="rectangle" draws a box of any height. width and height take any CSS value and default to filling the parent. Skeletons on screen together share one shimmer sweep; with reduced motion the fill is static.

    Table can now show placeholder rows while loading instead of a centered spinner: set loadingVariant="skeleton" alongside loading, and skeletonRowCount to choose how many rows (3 by default). The placeholders follow the table's rowHeight.

    Visual: unchanged by default. loadingVariant defaults to spinner, which is what loading has always drawn. The table also sets aria-busy while loading, in either variant.

Patch Changes

  • 390216f: Adds a Vercel logo: <Icon name="vercel" />. It follows the text color, so it adapts to the theme and accepts a color override.

  • 3eee4d7: Bump the @radix-ui/react-* runtime dependencies. A consumer aria-describedby on Tooltip.Trigger or its asChild child is now merged with the tooltip's id instead of replacing it. This also applies to EllipsisContent and TextTruncate while their text is cut off. Tabs triggers move focus before the tab switches, and non-modal popovers inside a Dialog or Flyout keep focus and scroll.

    If your app also installs @radix-ui/react-* packages directly, update them to the versions in click-ui's package.json dependencies so nested dialogs and menus share one focus trap.

  • eab4994: Checkbox, Switch and RadioGroup inside a <form> now also fire a bubbled change event when the checked value updates after the click, for example from an async handler. A Tooltip inside a modal Popover keeps the right tab order. ContextMenu.Content now applies a sideOffset you pass.

  • 9da6410: Activate a clickable CardHorizontal with Enter and Space, and expose it as a button when it has no inner action button. Display-only cards keep the default key behavior.

  • 529463c: Keep the selected meridiem when committing a DateTimeRangePicker time with Enter.

  • e7a3fda: Keep copied Grid rows and columns in numeric index order.

  • d062351: Copy selected Grid columns from the current row offset.

0.15.0

Reconstructed from the changesets pending at the time of this release.

Minor Changes

  • 8f99808: Adds a new logo type, aws-s3-tables-iceberg.

    It is consumed via Logo (<Icon name="aws-s3-tables-iceberg" />). The artwork is the S3 Tables Iceberg REST glyph (bucket plus table, fill #7AA116), distinct from the generic aws-s3 bucket logo.

  • 0b0bdea: Add sidebar-left and sidebar-right icons to the icon asset set.

  • afac8cd: Dropdown.Content now keeps 8px from the viewport edges instead of 100px. Visual: a menu near a side edge stays aligned with its trigger, and a long menu uses more of the window height before it scrolls or flips.

  • fae77ae: Add TextTruncate, which truncates a single line of text with an ellipsis at the end or in the middle (ellipsisPosition="middle" keeps file extensions and ID suffixes visible). While the text is cut off, the full text shows in a tooltip on hover, and the text becomes a tab stop that shows it on keyboard focus. Inside a button, link, tab, menu item or option it adds no tab stop, so the tooltip is hover-only there. Supports maxWidth, showTooltip={false} for large lists, a custom tooltipContent, and a polymorphic component. It warns in the console when children holds a link or button and no tooltipContent is given.

    Add the useIsTruncated hook, which tells whether an element's single line of text is cut off and re-measures on resize and content changes.

    EllipsisContent and EllipsisContentProps are deprecated in favor of TextTruncate. They keep working unchanged. The internal MiddleTruncator behind Table's overflowMode="truncate-middle" and the FileUpload file name is deprecated too; both keep their current look and behavior for now.

  • 00d99f9: Tooltip.Trigger now forwards its ref, and with asChild it passes its props (event handlers, aria-*, data-*, className, …) on to the child instead of dropping them. You can now compose Tooltip.Trigger asChild inside another asChild part, such as Dropdown.Item asChild.

    Breaking: EllipsisContent with component={Tooltip.Trigger} inside your own Tooltip now gets its ref. When its text is cut off, it shows its own tooltip with that text, in place of your Tooltip.Content.

    Visual: unchanged, except for that tooltip.

    Migration: put Tooltip.Trigger asChild around the text, and turn off the truncation tooltip.

    // Before
    <Tooltip>
      <EllipsisContent component={Tooltip.Trigger}>{label}</EllipsisContent>
      <Tooltip.Content>{details}</Tooltip.Content>
    </Tooltip>
    
    // After
    <Tooltip>
      <Tooltip.Trigger asChild>
        <TextTruncate showTooltip={false}>{label}</TextTruncate>
      </Tooltip.Trigger>
      <Tooltip.Content>{details}</Tooltip.Content>
    </Tooltip>

    If the trigger has no text that can be cut off, such as an icon button, use Tooltip.Trigger alone.

Patch Changes

  • b7ea9f5: Dropdown.Item now forwards its ref to the menu item element, or to the child element with asChild, so it can be the child of Tooltip.Trigger asChild and other components that need a ref.
  • 0c7dff9: Keep Dropdown.Item at its full height when the menu is taller than the space available: the menu now scrolls instead of shrinking items that are taller than one line.
  • 4c21e6e: Table header content for sortable columns, and for columns with an onClick, now renders as a <button>: keyboard users reach it with Tab and sort with Enter or Space, and the sorted column exposes aria-sort. A sorted header's accessible name no longer ends in "arrow-down"; the direction is in aria-sort. Column resizers report their width and range to assistive technology. Header labels of sortable or clickable columns must not contain interactive content. Headers marked isSortable on a table without onSort no longer show a pointer cursor. Visual: unchanged, except a focus ring on a focused sortable header.
  • bf7dca8: Fix TextAreaField not calling onChange when an onInput prop is passed, including onInput={undefined}.

0.14.0

Reconstructed from the changesets pending at the time of this release.

Minor Changes

  • a8b5c19: Adds AI agent logos: github-copilot, cursor, opencode, pi-agent, openai and claude-code. The single-color ones follow the text color, so they adapt to the theme and accept a color override.

0.13.0

Reconstructed from the changesets pending at the time of this release.

Minor Changes

  • 3df3e7e: Add the grid-dots icon to the icon asset set.

  • ecc3e0f: Dropdown.Item with asChild now renders its child element (for example an <a>) as the menu item, with the icon and truncated label inside it, so a link item is focusable and activates from the keyboard. With asChild, children must be a single element.

    Breaking (types only): DropdownItemProps is now a union type, so an interface can no longer extend it. Migrate with a type intersection:

    // before
    interface MyItemProps extends DropdownItemProps {
      extra: string;
    }
    
    // after
    type MyItemProps = DropdownItemProps & {
      extra: string;
    };

Patch Changes

  • 178c6aa: CardHorizontal and CardPrimary now open infoUrl in a new tab with noopener, so the opened page can no longer reach back into the app through window.opener. Non-http(s) values such as javascript: or data: URLs are ignored with a console warning. Absolute and relative http(s) URLs keep working as before.

  • 537131f: Exported prop types now match what the components accept; removed stale copies from GridContainerProps, RadioGroupItemProps, FileTabsProps, FileTabProps, and ToastProviderProps. Dropdown.Sub now type-checks open, defaultOpen and onOpenChange, which it always passed to Radix. Code written against the old copies can fail to type-check: Dropdown.Sub no longer accepts DOM props such as className, which it never rendered, and FileTabProps and FileTabsProps now require the props the components always required.

  • a2d437a: Fixed InitCUIThemeScript breaking when storageKey, defaultTheme or attribute contain a quote or <. Values are now encoded into the inline script and cannot break out of it.

  • 415496c: Prevent disabled AutoComplete options from being selected through keyboard navigation.

  • 342357f: Dismissible banner Alerts no longer render an empty, unnamed button before their content; IconButton and ButtonGroup drop a redundant role="button" attribute (select them with getByRole('button') instead of [role="button"]), and IconButton now honors a consumer-supplied role.

  • bb744e8: Fix the horizontal-loading icon animation in Firefox, where the dots never appeared.

  • 038ce9d: Preserve configured Table column widths when the header is hidden.

  • be65be7: Remove a stray trailing ; from 226 string values in the exported themes object (typography shorthands and two gradients). The generated CSS variables were already clean and are unchanged.

  • d590c5d: Icons and labels stay on one row at viewport widths of 768px and below, instead of the icon stacking above the label.

    Affected components:

    • Dropdown: items and sub-menu triggers
    • ContextMenu: items and sub-menu triggers
    • AutoComplete: options
    • SplitButton
    • Badge
  • ecc3e0f: A disabled menu item rendered as a link now uses the disabled text color instead of the link or visited color.

  • ecc3e0f: Menu items rendered as links are no longer underlined.

  • dfb2cdf: Render the label prop on the default ProgressBar. The prop was already part of the public API but was ignored, so the bar always showed the percentage. It now shows the label when one is passed, and still prefers successMessage once progress reaches 100%. An empty or otherwise falsy label still shows the percentage.

0.12.0

Reconstructed from the changesets pending at the time of this release.

Minor Changes

  • e2b3d21: Breaking: collapse the duplicate share icons down to one (CUI-115).

    The old share glyph was visually indistinguishable from popout — both a rounded square with an arrow leaving the top-right corner — so it read as "opens in a new tab" wherever it was used as a share affordance. It has been removed.

    share now refers to the forward-arrow glyph that was previously registered as share-arrow. share-network is unchanged.

    Migration:

    • If you used share for a link that opens in a new tab, switch to popout. This is the case that will not fail loudly: name="share" keeps compiling and now renders the forward-arrow glyph instead of the box-with-arrow one.
    • If you used share as a genuine "share with someone" affordance, no change is needed — you now get the forward arrow.
    • If you used share-arrow, rename it to share. share-arrow is registered as a deprecated name, so it still renders and logs a deprecation warning, but it is no longer a member of the exported IconName union — strictly-typed props (Button.iconLeft, Link.icon, Dropdown.Item.icon, …) will fail typecheck until updated.

    Deprecated icon and flag names (legacy PascalCase, two-letter flag codes) that previously rendered nothing through Icon now render and log a deprecation warning, matching Flags and Logo.

  • 1979c25: Add native diff highlighting to CodeBlock via language="diff".

  • 7cb92c7: Enable year and month selection in DateRangePicker by clicking on the date in the calendar header. This matches the existing DatePicker behavior and applies to both the standalone calendar and the "Custom time period" calendar shown alongside predefinedDatesList.

Patch Changes

  • 94e8889: Prevent CardHorizontal button clicks from triggering the card handler twice.
  • e2b3d21: <Icon name="c#" /> now renders the C# logo. It failed twice over before: Icon did not resolve asset aliases at all, and the alias itself pointed at c-sharp while the asset registers as csharp. Both are fixed.
  • fd35ea8: Fixed the horizontal-circle loader animations, which used the invalid keyframe selector 0 instead of 0%, causing the initial keyframe to be dropped by browsers that don't tolerate the unitless selector.

0.11.0

Reconstructed from the changesets pending at the time of this release.

Minor Changes

  • 13925e3: EllipsisContent now accepts tooltipProps, forwarded to the Tooltip.Content it renders when its text is truncated. The tooltip previously always used the default side="top", which inside a menu covers the items above the hovered one. IconWrapper, Dropdown.Item and Dropdown.Trigger sub forward the same prop, so menu labels can move their truncation tooltip out of the way.

    How to use?

    <EllipsisContent tooltipProps={{ side: 'right' }}>{organization.name}</EllipsisContent>

    tooltipProps is positioning only — side, align and sideOffset. TooltipContentProps and EllipsisContentProps are now exported for typing wrappers around it. On EllipsisContent and IconWrapper, omitting it keeps today's behavior.

    Dropdown.Item and Dropdown.Trigger sub are the exception: they now default their truncation tooltip to side: 'right' rather than inheriting side="top". A tooltip covering the item above the hovered one is wrong in any menu, so the good default belongs here instead of in every caller. Pass tooltipProps to override it. When the menu sits at the edge of the viewport, Radix's collision handling flips the tooltip to left, never back to top.

  • 129bcfe: Codeblock controls are not visible by default; some a11y improvements

  • 1cd3d89: Link fix - removed redundant margin (small visual changes)

  • 129bcfe: IconButton now has htmlType button by default

Patch Changes

  • 80b346e: Bump all @radix-ui/react-* dependencies to the versions shipped in Radix 1.6.7, and de-duplicate the resulting transitive tree.

    Toasts no longer carry role="status". Select them with li[data-state="open"].

  • e5b8262: Add wrap prop to Text to control text wrapping: wrap, nowrap, break-word or break-all. When unset the text inherits the wrapping behaviour of its parent.

  • 218aef5: Prevent DateDetails from crashing when formatting an invalid system timezone.

  • c68c733: DropdownItemProps exported from @clickhouse/click-ui and @clickhouse/click-ui/Dropdown now matches what Dropdown.Item actually accepts. The barrel was re-exporting a copy in Dropdown.types.ts that the component never imported, so it was missing both type and tooltipProps and typing a wrapper around Dropdown.Item failed to compile. Dropdown.types.ts is now the single declaration, as in ContextMenu, and DropdownItemProps is exported from the package root for the first time.

  • d99d0e2: IconButton no longer leaves the button nameless when a consumer passes an empty aria-label, and hides the inner icon from assistive tech so the control exposes a single accessible name.

  • 2313513: Fix ProgressBar dropping its progress value when a consumer passes a custom style prop.

  • 15f0280: Hides Tooltip when cursor leaves the trigger in ElipsisContent.

    Default Tooltip behavior can obscure interaction with neighbouring elements by remaining on screen when you move your cursor from the trigger to the tooltip. For EllipsisContent, it should always hide in these situations. Its purpose is to reveal the full content, never to be interacted with. If you need to interact with tooltip content, you need another component.

  • 4c11535: Prevent Pagination from calling onChange with NaN when its page input is cleared.

  • 129bcfe: IconButton now has focus ring same as regular button

0.10.0

Reconstructed from the changesets pending at the time of this release.

Minor Changes

  • 0a7025a: Add 16 flags so the set covers every country with a cloud provider region: Austria, Bahrain, Belgium, Chile, China, Denmark, Finland, Greece, Italy, New Zealand, Norway, Poland, Qatar, Saudi Arabia, Spain, and Thailand. All are exported from the Figma library with the standardized rounded corners.

    Also corrects nine existing flags that had drifted from the official artwork. Color drift: Canada, Switzerland, Indonesia, Singapore, Ireland, Sweden, France, Taiwan. Shape drift: Canada's maple leaf proportions, and the width of the red band on the United Arab Emirates flag.

  • 3ebf2e2: EllipsisContent now shows the Click UI Tooltip with the full text when its content is truncated, instead of setting the native title attribute. Also adds an asChild prop to Tooltip.Trigger so a caller's own element can be used as the trigger without the default wrapping div.

  • add8968: Add var7 (red) color variant to Checkbox and CheckboxMultiSelect

  • 8be07c6: Wrap all component styles in a single clickui CSS cascade layer for predictable overrides. Any unlayered app style — a plain rule, a CSS Module class, or a styled(...) override — now beats click-ui's styles regardless of stylesheet order or selector specificity, so consumer overrides no longer depend on bundle order or !important. If your app uses its own layers, declare them after clickui (@layer clickui, app;). Rendering is otherwise unchanged (verified byte-for-byte against the full visual-regression suite). Requires a browser with @layer support (Chrome/Edge 99+, Firefox 97+, Safari 15.4+).

  • 0a02c6b: Breaking: Remove styled-components as a dependency. click-ui no longer uses styled-components internally — every component renders from CSS Modules, and the runtime theme is now delivered through click-ui's own React context (via ClickUIProvider).

    Breaking changes:

    • styled-components is no longer a peer dependency. If your app doesn't use styled-components for its own code, you can remove it.
    • The deprecated linkStyles and StyledLinkProps exports have been removed. Use the Link component with the component prop instead — e.g. <Link component={RouterLink} size="md" weight="normal" to="/path">text</Link>.
    • The lower-level ThemeProvider export has been removed; ClickUIProvider is now the single provider. It already set the theme (and wraps toast/tooltip), so replace any bare <ThemeProvider theme={…}> with <ClickUIProvider theme={…}>.

Patch Changes

  • 97859e9: Fix Alert dropping a consumer-provided className. The root element applied its own class after spreading the rest props, overwriting any incoming className (including the class generated by styled(Alert)). The consumer className is now merged onto the root, and className is a supported prop.
  • c0ee833: Fix GenericMenu dropdown-menu panels (e.g. long organization/list menus) not scrolling when their content exceeds the available height. The base panel's overflow: hidden (needed for border-radius clipping) was winning the cascade over the dropdown-menu-content override that restores overflow-y: auto, because the two rules live in separately-injected stylesheets whose relative order isn't guaranteed. The scroll override now lives on .generic-menu-panel_type_dropdown-menu itself, in the same stylesheet as the property it overrides, so menus with more items than fit scroll again.
  • 7476634: Change default ProgressBar text color in light mode
  • 5e02ef0: Migrate DateDetails off styled-components by reusing the Link component for the trigger styling. No visual change.
  • f743adb: Migrate DatePicker, DateRangePicker, and DateTimeRangePicker from styled-components to css modules with no change in behavior

0.9.1

Reconstructed from the changesets pending at the time of this release.

Patch Changes

  • 5f47433: DateTimeRangePicker's check on whether a user selected range matches a predefined range has been made a little looser so that the selected checkmark on a predefined date should be active more often

  • 56f4f1c: Fix maxRangeLength off-by-one error in DateRangePicker and DateTimeRangePicker. maxRangeLength={31} now only allows a 31 day range instead of 32. DateTimeRangePicker now measures the range in calendar days, so a start date's time of day prevents an off-by-two error.

  • 1be1406: Fix a few bugs by changing the way Select works with its options: instead of imperative rebuilding of several service entities, derive them in-flow, “you might not need an effect”.

    Bugs fixed:

    • search now always works in Selects and matches any text that is rendered in items, including options that arrive while the menu is open
    • disabled items can no longer be selected via keyboard navigation

    Note: filtered-out items now stay mounted (hidden) instead of unmounting, so their rendered text stays available to search.

  • ad90905: Select/MultiSelect/CheckboxMultiSelect now snapshot each item's searchable text from the DOM when a search begins, instead of capturing it up front. Search therefore matches text an item changed after the menu opened (e.g. a row that renders from its own state), and the internal capture no longer needs to re-key on the option set.

0.9.0

Reconstructed from the changesets pending at the time of this release.

Minor Changes

  • e74b3a1: Add allowOnlyDatesList prop to DateRangePicker to restrict selectable dates to an allow-list. Dates not in the list are greyed out and disabled, mirroring the existing DatePicker behavior. When omitted or empty, selection is unrestricted, and the prop composes with futureDatesDisabled and maxRangeLength.

Patch Changes

  • 65e8912: migration of Assets loaders from styled-components to css modules. no behavior change.
  • c7b92c9: Migrate Grid from styled-components to css modules with no change in behavior

0.8.0

Reconstructed from the changesets pending at the time of this release.

Patch Changes

  • 337145a: Fix Select no-data/no-results dropdown row losing its font and padding. The row now renders with the generic-menu button label typography (14px/21px/500) and its intended 8px 16px padding, restoring the correct row height.
  • 25535b3: Table column resize handles no longer render on top of portaled overlays (dropdowns, flyouts). The handle's positive z-index was lifting the delimiter above the page overlay layer; it's redundant for stacking above the header content, so it has been removed.
  • d062817: Fix a DateTimeRangePicker bug that caused preselected dates not to be marked as selected under certain situations
  • d695088: Migrate AutoComplete from styled-components to css modules with no change in behavior
  • 45e3010: Migrate BaseButton from styled-components to css modules with no change in behavior
  • 1f770a5: Migrate CardPromotion from styled-components to css modules with no change in behavior
  • 4c12bb6: Migrate CodeBlock from styled-components to css modules with no change in behavior
  • 4549db6: Migrate ContextMenu from styled-components to css modules with no change in behavior
  • fae805d: Migrate CrossButton from styled-components to css modules with no change in behavior
  • 62543cf: Migrate Dropdown from styled-components to css modules with no change in behavior
  • 321cea6: Migrate EllipsisContent from styled-components to css modules with no change in behavior
  • 0cc2551: Migrate EmptyButton from styled-components to css modules with no change in behavior
  • 12212d1: Migrate FileTabs from styled-components to css modules with no change in behavior
  • d81117f: Migrate FileUpload from styled-components to css modules with no change in behavior
  • 99f4687: Migrate FormContainer from styled-components to css modules with no change in behavior
  • 82d7dc5: Migrate GridCenter from styled-components to css modules with no change in behavior
  • 479bde7: Migrate GridContainer from styled-components to css modules with no change in behavior
  • 08851a0: Migrate MiddleTruncator from styled-components to css modules with no change in behavior
  • ce0ffbc: Migrate Pagination from styled-components to css modules with no change in behavior
  • a225678: Migrate Panel from styled-components to css modules with no change in behavior
  • 82dd99a: Migrate Popover from styled-components to css modules with no change in behavior
  • 5d36c5b: Migrate Select from styled-components to css modules with no change in behavior
  • f581bcc: Migrate SplitButton from styled-components to css modules with no change in behavior

0.7.0

Reconstructed from the changesets pending at the time of this release.

Minor Changes

  • 61f6a5a: Adds a Polaris brand logo to the click-ui logo set.

    Consumers can reference it via <Icon name="polaris" /> (resolves through LogoName), consistent with other brand logos like snowflake and databricks.

  • 8881e5b: Add a portal provider API so overlay components can render into an explicit container.

Patch Changes

  • 9dc0c62: Add hasShadow prop to Flyout.Content to toggle box shadow

  • 5c383de: Fix Container base styles overriding equal-specificity styled-components. Since Container migrated to CSS Modules, its base rule beat any styled(Container) override of layout properties like padding and gap (e.g. a downstream styled(Flyout.Header) padding override was silently dropped). The base rule is now scoped with :where() so modifier classes and consumer overrides win without a specificity hack, and the temporary && workaround in Flyout has been removed.

  • 6cbee11: Fix doubled spacing around Flyout section separators. The FlyoutContent container gap stacked on top of the separators' own margins, adding extra padding between the header, body, and footer. Section spacing now matches the design.

  • 096dfb6: Fix buttons unintentionally submitting their enclosing <form>. A native <button> without an explicit type defaults to type="submit", so several components triggered form submission when used inside a form.

    New htmlType escape hatch (for general-purpose action buttons whose visual type prop shadows the native attribute):

    • IconButton now accepts an htmlType prop to set the native button type (mirrors Button).
    • SplitButton now accepts an htmlType prop to set the native type on its primary action button.

    Internal buttons that are never meant to submit now default to type="button" (non-breaking; consumers can still override):

    • ButtonGroup options
    • Alert dismiss buttons
    • InputWrapper icon button
    • Select search clear button
    • DatePicker calendar title button
    • FileTabs close button
    • CardPromotion dismiss button
    • Table row edit/delete buttons
    • VerticalStepper step trigger
    • CrossButton
  • 74c360e: Migrate BigStat from styled-components to css modules with no change in behavior

  • 716dca0: Migrate CardSecondary from styled-components to css modules with no change in behavior

  • 2bd4199: Migrate ConfirmationDialog from styled-components to css modules with no change in behavior

  • 3cccc05: Migrate Dialog from styled-components to css modules with no change in behavior

  • 79e58be: Migrate Flyout from styled-components to css modules with no change in behavior

  • 059c7d7: Migrate GenericMenu, Dropdown, ContextMenu, and Popover from styled-components to css modules with no change in behavior

  • 681a3aa: Migrate InputWrapper from styled-components to css modules with no change in behavior

  • 9fd217c: Migrate MultiAccordion from styled-components to css modules with no change in behavior

  • 5b39120: Migrate RadioGroup from styled-components to css modules with no change in behavior

  • 0f9be98: Migrate Table from styled-components to css modules with no change in behavior

  • fa8062b: Migrate Tabs from styled-components to css modules with no change in behavior

  • 0709172: Migrate Toast from styled-components to css modules with no change in behavior

  • d05fe5f: Migrate Tooltip from styled-components to css modules with no change in behavior

  • 1857133: Migrate VerticalStepper from styled-components to css modules with no change in behavior

0.6.1

Reconstructed from the changesets pending at the time of this release.

Minor Changes

  • 88e2651: Add pin and unpin icons to the icon asset set.
  • 2c9afcd: Add the popin icon to the icon library.
  • 925fccf: Add Malaysia and Taiwan flags, and standardize rounded corners across all flag SVGs for a consistent look.

Patch Changes

  • 9cc98cd: Add Dollar icon

  • d732157: Add the missing BEM base class to Accordion, Alert, Collapsible, and Link so every block and element has a base for its modifiers to modify. No change in behavior.

  • b860389: Add forwardRef support to ButtonGroup component

    Exposes the wrapper div ref via React.forwardRef, following component library conventions.

  • 91ef765: Button now accepts htmlType prop to support native HTML type attribute.

  • 55c69af: Fix Button loading state regression introduced by the CSS Modules migration. Restore the dual shimmer animation (fixed-width vs fill-width) and stop the disabled styles from overriding the per-type background while loading, so a loading danger button is light red again instead of gray.

  • f6d6658: Fix nested Container inheriting layout props after the CSS Modules migration. Container forwards fillHeight, grow, shrink, minHeight, maxHeight and overflow as CSS custom properties, which inherit by default, so a child Container would pick up an ancestor's values (e.g. a parent with fillHeight stretched every descendant to full height). The base .container rule now resets these custom properties so each Container keeps its own defaults.

  • d16594b: fix: properly define types of polymorphic components

  • 232d788: Fix Publish to npm with OIDC failing because the prepare lifecycle script ran yarn changeset:verify. Removed yarn changeset:verify from the prepare script so npm publish no longer aborts with "Couldn't locate any changeset."

  • e5132b5: fix(Select): don't wrap options content

  • 5d4625d: Migrate Accordion from styled-components to css modules with no change in behavior

  • 079e8ed: Migrate Alert from styled-components to css modules with no change in behavior

  • 713fac7: Migrate Avatar from styled-components to css modules with no change in behavior

  • b23196a: Migrate Badge from styled-components to css modules with no change in behavior

  • 61a2856: migration of ButtonGroup from styled-components to css modules. no behavior change.

  • 24c8be3: Migrate CardHorizontal from styled-components to css modules with no change in behavior

  • 841e093: Migrate CardPrimary from styled-components to css modules with no change in behavior

  • c7b4cca: Migrate Checkbox from styled-components to css modules with no change in behavior

  • 6d1e029: Migrate Collapsible, SidebarNavigationItem, SidebarNavigationTitle, SidebarCollapsibleItem, and SidebarCollapsibleTitle from styled-components to css modules with no change in behavior

  • fb8aed3: Migrate Container from styled-components to css modules with no change in behavior

  • da45796: Migrate GenericLabel from styled-components to css modules with no change in behavior

  • dc6897a: Migrate HoverCard from styled-components to css modules with no change in behavior

  • 969de1a: Migrate Icon from styled-components to css modules with no change in behavior

  • 030c314: Migrate IconButton from styled-components to css modules with no change in behavior

  • fa348c9: Migrate Label from styled-components to css modules with no change in behavior

  • 7f8a488: Migrate Link from styled-components to css modules with no change in behavior

  • d290414: Migrate ProgressBar from styled-components to css modules with no change in behavior

  • 2f77bc9: Migrate Separator from styled-components to css modules with no change in behavior

  • 208f864: Migrate Spacer from styled-components to css modules with no change in behavior

  • 46a8f7b: Migrate Switch from styled-components to css modules with no change in behavior

  • 0d166d7: Migrate Text from styled-components to css modules with no change in behavior

  • 0d166d7: Migrate Title from styled-components to css modules with no change in behavior

  • c77884c: Memoize the Icon wrapper's inline style object so its reference stays stable when the underlying values haven't changed.

0.6.0

Minor Changes

  • b307591: Add BigLake Metastore logo

    Added the BigLakeMetastore logo to the logo library:

    • New Biglake-Metastore.tsx SVG component under src/components/Assets/Logos/
    • Registered in both LogosDark and LogosLight system files
    • Added BigLakeMetastore to the logo types
  • ec4d35d: Adds startContent and endContent props to NumberField, matching the existing TextField API. This enables rendering additional elements (e.g., unit labels, currency symbols) inside the input field without absolute-positioning hacks.

    What has changed?

    • New startContent prop for rendering content to the left of the input
    • New endContent prop for rendering content to the right of the input
    • Clicking on startContent focuses the input field
    • endContent is displayed alongside the existing loading indicator when both are present
    • Added WithEndContent and WithStartContent stories

    How to use?

    With a currency symbol prefix:

    import { NumberField, Text } from '@clickhouse/click-ui';
    
    <NumberField
      label="Price"
      placeholder="0.00"
      hideControls
      startContent={
        <Text
          color="muted"
          size="sm"
        >
          $
        </Text>
      }
    />;

    With a unit suffix:

    import { NumberField, Text } from '@clickhouse/click-ui';
    
    <NumberField
      label="Spend limit"
      placeholder="0"
      hideControls
      endContent={
        <Text
          color="muted"
          size="sm"
        >
          dollars / credits
        </Text>
      }
    />;
  • 4b14153: Adds optional allowOnlyDatesList prop to DatePicker, which enables the user to provide a predefined allowlist of dates that can be selected.

    How to use?

    <DatePicker
      allowOnlyDatesList={[
        new Date('2026-01-15'),
        new Date('2026-01-20'),
        new Date('2026-02-01'),
      ]}
      onSelectDate={date => console.log('Selected:', date)}
    />

    Only the dates in allowOnlyDatesList will be selectable. All other dates will be disabled.

  • cf1852b: Add alignment prop to CardHorizontal to support top-aligned content

    Adds an optional alignment prop ('center' | 'top', default 'center') to CardHorizontal. The default preserves existing behaviour. Use alignment="top" to pin content to the top edge — useful in side-by-side layouts where cards have different content heights and centre-alignment causes visual misalignment.

  • a1b0891: Ship pre-compiled CSS alongside components via CSS Modules.

    Components now import their own Web Standard CSS files (.css) directly. When you import a component, whether from the barrel export (@clickhouse/click-ui) or a per-component path (@clickhouse/click-ui/Button), your bundler (webpack, Vite, etc.) will discover the CSS import and emit it into your application's CSS output automatically.

    What this means for your app:

    • Bundler-managed CSS: The CSS that was previously injected at runtime by styled-components is now delivered as standard .css files; Only applies for components which have migrated out from Styled Components as there's a transition period. Your bundler handles concatenation, minification, and ordering.
    • Tree-shaking works: Components you don't import won't have their CSS included. The sideEffects: ["**/*.css"] declaration in package.json ensures bundlers keep CSS for the components you do use.
    • No config changes needed: Per-component CSS is additive, unused components produce no extra CSS.
    • CSS Modules under the hood: Class names are scoped and hashed to avoid collisions. You don't need to change anything; the public component API is unchanged.

    Migration:

    None required for most bundlers! Install the update and your bundler will handle the rest.

    Framework-specific notes:

    • Next.js: Next.js restricts global CSS imports from node_modules by default. If you encounter the error "Global CSS cannot be imported from within node_modules", add @clickhouse/click-ui to your transpilePackages configuration in next.config.js (available in Next.js 13+):

      module.exports = {
        transpilePackages: ['@clickhouse/click-ui'],
      };

      See the Next.js example documentation for complete setup instructions.

  • f6a2cd2: This library will now use CSS Modules for styling and because it's distributed unbundled, gives the consumer application full control over bundling and optimisations. You'll only include what you actually use, resulting in smaller bundle sizes and better performance!

    Migration:

    Your bundler must be configured to handle .module.css imports from node_modules. Most popular bundlers (Vite, webpack, Parcel, Rollup with appropriate plugins) support CSS Modules by default or with minimal configuration.

    NOTE: We're currently migrating from Styled-Components to CSS Modules. Some components may still use Styled-Components during the transition period.

    To learn more about CSS modules support, check our documentation here

  • 62c0767: Adds timezone field to DatePicker, DateRangePicker and DateTimeRangePicker, allowing the user to configure whether to display dates in system (local) or utc.

    type Timezone = 'system' | 'UTC';

    Defaults to system

    Usage

    DatePicker

    <DatePicker
      onSelectDate={handleDateSelect}
      timezone="system"
    />

    DateRangePicker

    <DateRangePicker
      onSelectDateRange={(startDate, endDate) =>
        setStartDate(startDate);
        setEndDate(endDate);
      }
      timezone="UTC"
    />

    DateTimeRangePicker

    <DateTimeRangePicker
      endDate={endDate}
      onSelectDateRange={handleDateRangeSelected}
      startDate={startDate}
      timezone="system"
    />
  • 0073651: Adds a responsivePositioning prop to the DatePickers, which allows the dropdown to be forced to be aligned with the input in cases where radix determines it shouldn't be

  • c75fbdb: Adds validation for date ranges and validation states for DateTimeRangePicker. When invalid, the input will be highlighted in red and the reason will be displayed below the date input.

  • 59d3dae: DateTimeRangePicker adds an optional prop predefinedDateLabel to onSelectDateRange which passes the label of the predefined date that was selected. This will allow the callback function to know if it was a custom range or a predefined one that was selected

  • bb8ebc8: Adds the ability to set a default date tab between startDate and endDate (defaults to startDate)

Patch Changes

  • 0d2aa03: Add CollapseAll and ExpandAll icons

  • 80af437: Add Mexico flag

  • 3dedeeb: Add an SVG normalization step to fix breaking issues before proceeding with conversion and optimization. The normalization is based in "conservative" optimisation steps, to reduce chances of visual changes.

    Before:

    SVG File → SVGR (SVGO) → React Component
    

    After:

    SVG File → SVGO Normalize → Create temp file → SVGR (no SVGO) → React Component → Delete temp file
    
  • a200c40: Fixes a bug in DateTimeRangePicker that does't allow setting the end date when start date and end date are set

  • 911aa94: Suppress Radix Missing Description console warning when no description prop is provided to Dialog.Content. A hidden RadixDialog.Description is now rendered by default so Radix's accessibility check passes silently.

  • d5e5981: Use Radix Dialog primitives for accessibility compliance.

    • Changed Dialog title from styled.h2 to styled(RadixDialog.Title) so Radix recognizes it as a proper DialogTitle
    • Added optional description prop to Dialog.Content that renders as RadixDialog.Description

    Before

    <Dialog.Content
      title="Confirm Action"
      showClose
    >
      <Text color="muted">Dialog body content goes here</Text>
      <Spacer />
      <Separator size="lg" />
      <ActionArea>
        <Dialog.Close label="Close" />
        <Button iconRight="arrow-right">Continue</Button>
      </ActionArea>
    </Dialog.Content>

    After

    <Dialog.Content
      title="Confirm Action"
      description="Dialog body content goes here"
      showClose
    >
      <Spacer />
      <Separator size="lg" />
      <ActionArea>
        <Dialog.Close label="Cancel" />
        <Button type="primary">Confirm</Button>
      </ActionArea>
    </Dialog.Content>
  • 8936ef2: Fix missing focus tokens in theme configuration

    Added missing focus tokens to the design token source files to prevent them from being removed during token generation:

    • Added card.promotion.color.stroke.focus with semantic reference {click.global.color.accent.default} (resolves to #151515 in light theme and #faff69 in dark theme)
    • Added genericMenu.item.color.default.stroke.focus with value #437eef (light theme) and #faff69 (dark theme)
    • Added genericMenu.item.color.danger.stroke.focus with value #437eef (light theme) and #faff69 (dark theme)

    These tokens are required by the GenericMenu and CardPromotion components for keyboard focus outlines and were previously being lost when regenerating the theme tokens.

  • 5cda186: Add missing 'warning' color option to TextColor type and design tokens.

    The warning value was available in theme tokens but missing from the TextColor type definition, causing TypeScript errors when using <Text color="warning">. This fix:

    • Adds 'warning' to the TextColor type union in Text.tsx
    • Adds warning color tokens to both light (#a33c00) and dark (#ffb88f) theme variables
    • Adds warning token definitions to light.json and dark.json design token files
  • 12770c3: Prevent duplicate CSS imports in vite build --watch mode by clearing trackedImports between rebuilds

  • ba0e4e5: Fixes a bug in DateRangePicker that didn't allow changing to past dates when start date and end date were set and the past date was > maxRangeLength

0.2.0-test.0

Minor Changes

  • b307591: Add BigLake Metastore logo

    Added the BigLakeMetastore logo to the logo library:

    • New Biglake-Metastore.tsx SVG component under src/components/Assets/Logos/
    • Registered in both LogosDark and LogosLight system files
    • Added BigLakeMetastore to the logo types

Patch Changes

  • 8936ef2: Fix missing focus tokens in theme configuration

    Added missing focus tokens to the design token source files to prevent them from being removed during token generation:

    • Added card.promotion.color.stroke.focus with semantic reference {click.global.color.accent.default} (resolves to #151515 in light theme and #faff69 in dark theme)
    • Added genericMenu.item.color.default.stroke.focus with value #437eef (light theme) and #faff69 (dark theme)
    • Added genericMenu.item.color.danger.stroke.focus with value #437eef (light theme) and #faff69 (dark theme)

    These tokens are required by the GenericMenu and CardPromotion components for keyboard focus outlines and were previously being lost when regenerating the theme tokens.

  • 5cda186: Add missing 'warning' color option to TextColor type and design tokens.

    The warning value was available in theme tokens but missing from the TextColor type definition, causing TypeScript errors when using <Text color="warning">. This fix:

    • Adds 'warning' to the TextColor type union in Text.tsx
    • Adds warning color tokens to both light (#a33c00) and dark (#ffb88f) theme variables
    • Adds warning token definitions to light.json and dark.json design token files

0.1.0

Minor Changes

  • a4a16b8: Added new icon components: ChartCloud and ChartSquare.

  • 4c4105f: Add Lakekeeper logo

    How to use?

    import { Logo } from '@clickhouse/click-ui';
    
    <Logo name="lakekeeper" />;
  • 9dad00d: Add PlanetScale logo

  • d936174: Add convert:regenerate command to regenerate asset types (logos, icons, flags, payments) without adding new components. This allows refreshing types.ts and registry files (Light/Dark) when the converter script is updated or when imports need to be standardized.

    How to use?

    Regenerate all asset types:

    yarn convert:regenerate
    

    Regenerate a specific asset type only:

    yarn convert:regenerate --type=icons
    

    Supported values for --type: logos, icons, flags, payments

  • a54b59d: Adds a new DateTimePicker component for selecting date and time ranges with precision control. This component combines calendar-based date selection with time input fields, supporting both predefined time ranges and custom selections.

    What has changed?

    • New DateTimePicker component for selecting date-time ranges
    • Support for predefined time periods (e.g., "Past 15 minutes", "Past hour")
    • Custom date range selection with start/end calendars
    • Time input with hours, minutes, and optional seconds
    • AM/PM meridiem toggle for 12-hour format
    • Calendar can open to the left or right via openDirection prop
    • Time selection is retained when changing dates
    • Support for disabling future dates
    • Maximum range length constraint support
    • Helper function "predefined time periods for DateTimePicker" for common time ranges

    How to use?

    Basic usage with custom date range selection:

    import { DateTimePicker } from '@clickhouse/click-ui';
    
    <DateTimePicker
      onSelectDateRange={(startDate, endDate) => {
        console.log('Selected range:', startDate, endDate);
      }}
      placeholder="Select date range"
    />;

    With predefined time periods:

    import {
      DateTimePicker,
      getPredefinedTimePeriodsForDateTimePicker,
    } from '@clickhouse/click-ui';
    
    <DateTimePicker
      predefinedTimesList={getPredefinedTimePeriodsForDateTimePicker()}
      onSelectDateRange={(startDate, endDate) => {
        console.log('Selected range:', startDate, endDate);
      }}
    />;

    With all options:

    <DateTimePicker
      startDate={new Date()}
      endDate={new Date()}
      disabled={false}
      futureDatesDisabled={true}
      futureStartDatesDisabled={false}
      maxRangeLength={30}
      onSelectDateRange={(startDate, endDate) => handleRangeChange(startDate, endDate)}
      openDirection="left"
      placeholder="start date – end date"
      predefinedTimesList={customPredefinedList}
      shouldShowSeconds={true}
    />
  • 11a8c47: The useLayoutEffect watching headers.length wasn't triggered when headers were reordered (e.g., in sysadmin EntitiesTable with column selection), causing Column widths to be misaligned after reordering, NaN values appearing during resize operations and an incorrect null check (-1 !== null) that was always true.

  • bbdfb43: Truncate filenames by shortening the middle revealing critical parts.

    Assume you have:

    console.clickhouse.cloud_Archive.01-01-1975.lorem-ipsum-a-very-long-filename-001.csv
    console.clickhouse.cloud_Archive.01-01-1975.lorem-ipsum-a-very-long-filename-005.csv
    dashboard.mongodb.atlas_Export.12-15-2024.customer-data-analysis-report-final-v2.json
    admin.postgresql.heroku_Backup.03-22-2023.transaction-logs-monthly-summary-march.sql
    

    In the current faulty version you'd get something like:

    console.clickhouse.cloud_Archive.01-~.csv
    console.clickhouse.cloud_Archive.01-~.csv
    dashboard.mongodb.atlas_Export.12-1~.csv
    admin.postgresql.heroku_Backup.03-2~.csv
    

    Notice that the first two filenames, when presented truncated, have the same shortened name, making it hard to differentiate.

    In the PR proposed version you'd find easier to identify files if these are named in a maintainable way:

    console.clickh...filename-001.csv
    console.clickh...filename-005.csv
    dashboard.mong...ort-final-v2.json
    admin.postgres...ummary-march.sql
    

    Notice that the first and last digits help identify the file more concisely, allowing for a shorter length.

  • e0c3541: Makes the distributed files "unbundled", effectively moving optimisation to a consumer app concern, e.g. obfuscation, compression, bundling MUST be consumer concerns, the library SHOULD NOT make the consumer bundling process more difficult, it MUST facilitate it! It resolves cyclic imports or circular dependencies, enhances linting to prevent imports from barrel files, making the barrel files more of a public API than an internal API to help prevent circular dependencies.

    From now on, bundling preserves the file tree, externalises packages based on the package.json dependency declaration automatically, instead of managing them manually as the current version does. It allows deep imports, e.g. @clickhouse/click-ui/components/Button.

    Exports files are placed by target resolution, e.g. dist/esm|cjs. It has removed UMD until further notice (why is the original version providing UMD, what's the use-case?). As a component library, in principle, it should be ESM and CJS (due to NodeJS SSR) compatible in the worse case scenarios.

    It reduces build times from > 1 minute to < 22 seconds.

    More importantly, this initial revision provides tree-shaking support, helping reduce file size. Which can now be assessed with an optional builder feature to analyse and visualise the package dependency graph, file sizes, etc.

  • 1869f03: Removes react-dom/server renderToStaticMarkup from copy grid elements of Grid to favour the recommended createRoot approach suggested by React's official documentation.

    According to React renderToStaticMarkup "The renderToStaticMarkup works in the browser, but using it in the client code is not recommended. If you need to render a component to HTML in the browser" and React renderToString "Importing react-dom/server on the client unnecessarily increases your bundle size and should be avoided. If you need to render some component to HTML in the browser, use createRoot and read HTML from the DOM".

  • d3b40ae: Reconcile FileUpload and FileMultiUpload to prevent and reduce concurrent implementations, e.g. behaviour, features, styles, etc. In the previous version, the multiple file upload component was recreating the file upload in its file context which is prone to mistakes and hard to maintain.

  • 970cdfb: Cleans up the build configuration, token generation and related processes. By removing legacy styling setups and simplifying the token generation to only the required setup. This work is important before starting to migrate off styled components. Effectively, reducing technical debt.

    For example, the SCSS setup is not providing any value, e.g. there was an unused 320KB file named src/styles/tokens-light-dark.scss.

    It seems that the setup is promoted as offering "tree-shaking" benefits, but I suspect this is not correct from what I could assess. With that being said, even if the consumer app, only use a single variable, the entire 320KB of CSS custom properties would be spit into the final CSS bundle!

    Considering that variables change with time, and if not managed correctly, might increase dramatically, the file size would increase and make the app's distributed bundle size increase for no additional value. Think that tree shaking means a sort of static analysis that has to determine which tokens (bits of code) are not used, to remove them safely. It's not the case here with the current setup, e.g. the whole ":root" stuff would go in.

    Other changes might have extended to removing legacy, unused or orphaned CSS files found in the project.

    Finally, the changes here help to clear or reduce some of the technical debt, e.g. taking a step back before jumping much further. There are other pending PR, which once merged will allow further progress to improve the code base.

  • 133282b: Prevent dayjs mismatch version blocking package dependency install. On CI run, there's a step which installs with flag "immutable". Because there's a dayjs mismatch version, the install process errors.

  • d0c50c0: A version maintenance branch strategy enables the Click UI team to support older versions simultaneously, which is important since consumer applications, e.g. control plane or hyperdx might depend on stable versions and cannot immediately upgrade to the latest release.

    The introduction of this branching strategy conceptually and in the release workflow, practically, allows the team to support active development, incentivise experimentation, change, improvements, iteration, etc while shipping critical bug fixes or security patches to older versions (as long as compatible). This ensures that "stable" versions still receive necessary fixes without forcing potential breaking changes or showing new untested features.

    In the release workflow, implemented automation for it by handling the tedious parts to help reduce human errors and ensure a consistent release flow; But also for our own sanity, as otherwise it'd cause overwhelming version/release management.

    How to use?

    To create a new release, locate the create release and use the interface to select the release type, e.g. release candidate (rc), testing, stable or latest.

    It'll create a new Pull request for review, e.g. changelog, version bump, etc. There, you have the opportunity to make any further tweaks, refinements and check if everything's correct.

    You can find the pull requests in the GitHub tab Pull Request. E.g. let's say you're about to release v0.1.0-rc.1, you'd find chore: 🤖 release v0.1.0-rc.1 (rc).

    To learn more read the release worfklow documentation.

  • aa6c34d: Current select breaks in smaller viewports. Notice that the Icon is misplaced, comparatively with desktop viewport.

    This change provides a fix, to make it work seamlessly across viewport sizes.

  • 6b9c9d3: The previous versions of click-ui (e.g., <= 0.0.250), break on the latest of Nextjs, Vitejs, any React >= 19 or RSC enabled builds. To mitigate it, this initial change provides the minimal setup required for it to work in such environments, e.g. when installing the package, it should run in dev and build processes. It does NOT try to modify, replace, introduce or change breaking changes; there might be a few subtle changes related to Radix. At the time of writing, the library requires a browser runtime, which means that is client-only. Separately, there'll be other PR to address other related concerns and expand on this initial PR, e.g. none interactive components shall render server-side.

    What changed?

    The @clickhouse/click-ui package was updated, which includes an updated Radix UI dependency that removed the side, align, and sideOffset props from ContextMenu.Content.

    Radix made this change because the ContextMenuContentProps TypeScript type now explicitly omits these props:

    interface ContextMenuContentProps extends Omit<MenuContentProps, 'onEntryFocus' | 'side' | 'sideOffset' | 'align'> {}
    
    1. Context menus are fundamentally different from dropdown menus — they open at the cursor position (where the user right-clicked), not relative to a trigger element
    2. The side and align props don't make sense for context menus since there's no anchor element to position against
    3. Smaller bundle size — removing unused positioning logic reduces the bundle for ContextMenu consumers

    Migration Guide

    Before: <ContextMenu.Content side="bottom" align="start"> After: <ContextMenu.Content>

    Before: sideOffset={5} After: Use alignOffset for vertical spacing if needed

    The props were never functionally useful for context menus (which position at the cursor), so removing them is just a cleanup.

    Simply delete these props from your ContextMenu.Content components.

    Sources:

  • 0a11bf7: Introduces a centralised asset configuration with unified aliases and deprecated name mappings. This provides a single source of truth for asset name resolution across all asset types (Icons, Logos, Flags, and Payments), helping to resolve circular dependencies while offering a flexible aliasing system.

    Why aliases?

    Asset naming conventions use kebab-case (e.g., c-sharp, arrow-down) to facilitate file organisation and ensure valid JavaScript identifiers. However, users may prefer more intuitive names that don't follow these conventions. Aliases bridge this gap.

    For example, c# contains a # character which is not a valid JavaScript identifier, but users might still prefer using c# over c-sharp.

    How to use aliases

    Aliases are defined in src/components/Assets/config.ts under ASSET_NAME_MAPPINGS.aliases:

    export const ASSET_NAME_MAPPINGS = {
      aliases: {
        'c#': 'c-sharp',
        // Add more aliases as needed
      } as AssetAliasMap,
      // ...
    };

    The alias is then automatically resolved when using any asset component:

    // Both of these work identically:
    <Logo name="c#" />
    <Logo name="c-sharp" />
  • 4d3733d: Adds keyboard support for resizing the table column, e.g. on the tab column separator "focus", the user can now press keyboard arrows/cursor keys (left or right) for controlling the resizing direction.

    The changes were made to let everyone use the resize feature, not just mouse users, e.g. improved accessibility.

    How to use?

    On a view that includes a table element, press the TAB key on your keyboard to select the column separator. Once the separator is focused, use the arrow/cursor left and right keys to control the resize direction. Press escape key (ESC) to leave focus.

  • b797f89: Provides control to fix the the Date picker content misalignment on smaller viewports or resizing.

    What changed?

    • Exposed responsivePositioning prop on DatePicker and DateRangePicker components (default: true)
    • When enabled, dropdowns automatically adjust position to stay within viewport with 100px padding
    • This fixes the Date picker dropdown becoming misaligned on resize and smaller viewports

    How to use?

    All dropdowns now automatically adjust to stay within viewport by default.

    To disable this behavior use the responsivePositioning prop:

    // Disable responsive positioning on Dropdown
    <Dropdown>
      <Dropdown.Trigger>Open</Dropdown.Trigger>
      <Dropdown.Content responsivePositioning={false}>
        <Dropdown.Item>Item</Dropdown.Item>
      </Dropdown.Content>
    </Dropdown>
    
    // Disable on DatePicker
    <DatePicker
      onSelectDate={handleSelect}
      responsivePositioning={false}
    />
    
    // Disable on DateRangePicker
    <DateRangePicker
      onSelectDateRange={handleRange}
      responsivePositioning={false}
    />
  • ae7584f: Introduced a new date-range picker using a simple two-phase process for year and month selection to make the date selection user experience more elegant.

    Currently, jumping through many years requires multiple clicks and scrolls, making the whole process tiring. The issue was originally reported in reported issue #752.

    How to use?

    To quickly navigate to a different month and year in the Datepicker:

    1. Click the header showing the current month and year (e.g., "Feb 2026")
    2. Select your desired year from the grid (current year is highlighted)
    3. Select the month from the grid (current month is highlighted)
    4. Select the day from the calendar

    This allows you to jump to any date without clicking through months one at a time.

    Progressive input display

    As you progress through the two-phase selection, the input field updates to reflect your choices:

    • After selecting a year: displays "2026"
    • After selecting a month: displays "Feb 2026"
    • After selecting a day: displays the full date "Feb 26, 2026"

    If the picker is dismissed before completing the selection, the input reverts to the previously selected date.

    Visual improvements

    • Current day, month, and year are highlighted with an active background
    • When a date is selected, only the selected date shows the active highlight (not today)
  • 02a4854: The Click-UI source code has several circular dependencies that must be resolved.

    During the resolution of component path redundancies and public API encapsulation in #798, several circular dependencies were exposed. There, some quick basic fixes were applied to allow to progress, but it was found that a separate PR was needed to resolve them.

    What changed?

    The InitCUIThemeScript component and InitCUIThemeScriptProps type were previously exported via src/theme/index.ts (which has been removed). They are now explicitly exported from the main entry point (src/index.ts). Consumers using SSR theme injection must update their imports:

    // Before
    import { InitCUIThemeScript } from '@clickhouse/click-ui/theme';
    
    // After
    import { InitCUIThemeScript } from '@clickhouse/click-ui';

    Additional cleanup:

    Removed orphaned subpath exports for CrossButton, EmptyButton, and GridCenter. These components were moved to @/components/Common in a previous refactor but duplicate directories were left behind. They are now exclusively available via the Common module:

    // Before
    import { CrossButton } from '@clickhouse/click-ui/CrossButton';
    
    // After
    import { CrossButton } from '@clickhouse/click-ui';
    // or for internal use:
    import { CrossButton } from '@/components/Common';

    Bug fix:

    Fixed a broken type export in src/components/Common/index.ts that was referencing a deleted file (Common.types.ts). The TextSize, TextWeight, and CursorOptions types are now correctly exported from their respective source files (Typography and Panel).

  • 7dad1bb: The team should have full control over the Public API to manage which resources are available for use in consumer applications. Previously, consumer applications had unrestricted access to internal resources, which is undesirable.

    For example, third-party APIs like the primitive components provided by Radix UI were directly exposed, meaning that if those primitives were ever swapped out, any consumer applications depending on them would break due to tight coupling.

    With these changes in place, core maintainers can now manage the Public API through a clear and friendlier interface.

    Removed Paths

    The following subpath exports have been removed as they were intended as internal implementation details:

    • @clickhouse/click-ui/Collapsible
    • @clickhouse/click-ui/IconWrapper
    • @clickhouse/click-ui/MiddleTruncator

    If you were importing from these paths, please migrate to the public API exports from the main entry point (@clickhouse/click-ui).

    How to use?

    The public API is controlled through the main barrel file at src/index.ts. This file serves as the single source of truth for all components, types, and utilities exported by the package.

    Note: The generate:exports script uses the TypeScript Compiler API to parse src/index.ts directly and extract only the components that are explicitly exported. This ensures that only public API components get subpath exports in package.json, while internal components remain inaccessible via direct imports.

    Maintainers can add or remove components from the public API by updating the exports in this file. Each export should include both the component and its associated types to ensure consumers have full type support.

    Here's an example of src/index.ts:

    // Adding a new component to the public API
    export { Button } from './components/Button';
    export type { ButtonProps } from './components/Button';
    
    // Removing a component (simply delete)

    After, you must run the generate:exports to update the component-level exports in the package.json file.

    Once complete, commit your changes.

  • f071983: Given the request 813, the following provides support for root colour theme attributes.

    The process will provide control for the consumer's main html, e.g. data-cui-theme. It'll get preferred theme from localStorage (if available), to prevent theme flashing, e.g. due to SSR vs browser runtime. Note that there'll be further changes once the set of PRs are merged (see https://github.com/ClickHouse/click-ui/pulls/punkbit).

    It also provides documentation explaining how to use it in the consumer application.

    How to use?

    The InitCUIThemeScript applies a data-cui-theme attribute to the root <html> element, allowing you to style custom elements with vanilla CSS.

    For example, edit your consumer app stylesheet and introduce custom styles as follows:

    [data-cui-theme='light'] {
      --my-app-bg: #ffffff;
      --my-app-text: #1a1a1a;
    }
    
    [data-cui-theme='dark'] {
      --my-app-bg: #0a0a0a;
      --my-app-text: #f5f5f5;
    }
    
    .my-custom-component {
      background: var(--my-app-bg);
      color: var(--my-app-text);
    }
  • 450e947: Extend ButtonGroup with multi-selection support, offering both controlled and uncontrolled modes so consumers can manage state themselves or delegate it to the component when only the resulting selection is required.

    What changed?

    • Added multiple prop to enable multi-selection mode
    • onClick callback returns string in single mode (backward compatible) and Set<string> in multiple mode
    • Exported SelectionValue type for consumers

    How to use?

    Single selection (default) - backward compatible:

    <ButtonGroup
      options={[
        { label: 'A', value: 'a' },
        { label: 'B', value: 'b' },
      ]}
      defaultSelected="a"
      onClick={(value, selected) => console.log(selected)}
    />

    Multiple selection which state is provided internally by component

    <ButtonGroup
      multiple
      options={[
        { label: 'A', value: 'a' },
        { label: 'B', value: 'b' },
      ]}
      defaultSelected={new Set(['a'])}
      onClick={(value, selected) => console.log([...selected])}
    />

    Multiple selection which state's controlled by consumer app

    const [selected, setSelected] = useState<Set<string>>(new Set(['a']));
    <ButtonGroup
      multiple
      options={[
        { label: 'A', value: 'a' },
        { label: 'B', value: 'b' },
      ]}
      selected={selected}
      onClick={(_, newSelection) => setSelected(newSelection as Set<string>)}
    />;
  • 0f32e3f: Adds a new isResponsive prop to the Table component.

    The default behavior (isResponsive={true}) remains unchanged, preserving the responsive mobile list view conversion.

    When set to false, the table maintains its standard layout with horizontal scroll on narrow screens instead of automatically converting to a mobile list view.

    How to use?

    To disable the mobile list view and keep the table layout with horizontal scroll:

    <Table isResponsive={false}>{/* Table content */}</Table>

    If you don't define isResponsive it'll default to default behaviour:

    <Table>{/* Table content */}</Table>
  • 00211aa: Adapts file upload filename truncation responsiveness, e.g. shows truncated file name on smaller container sizes, showing the original otherwise. It shows the complete filename on element hover.

    This is a variation of 779, which shortens the middle of the text responsively but over breakpoints. Ideally, it should be fluid, but that'd require computation/listener/observables, through container size, it might be hard to justify the time.

    As an alternative, we introduce text number of characters responsive fluidity by faking it, e.g. does not introduce listeners/observables, uses native css resulting in a fluid, well-performing responsive truncation.

  • 61b90a5: Enable keyboard date picker selection

    Added keyboard navigation support to the DatePicker component, allowing users to select dates without using a mouse. This improves accessibility and provides a faster workflow for power users.

    Keyboard Navigation

    • Arrow keys (Up/Down/Left/Right) to navigate between days
    • Arrow keys (Left/Right) to navigate between header controls (chevron buttons and title)
    • Enter or Space to select a date
    • Tab to navigate to previous/next month chevrons
    • Current day, month, or year temporarily reverts to default styling when keyboard focused to make the yellow focus ring clearly visible

    How to use?

    To select a date using only your keyboard:

    1. Tab to the date picker input and press Enter to open the calendar
    2. Use Arrow keys to navigate to your desired day:
      • Left/Right arrows move between days
      • Up/Down arrows move between weeks
    3. Press Enter or Space to select the highlighted date
    4. The calendar will close automatically upon selection

    To navigate months and years:

    1. Tab to the month/year header and press Enter to open the year/month selector
    2. Use Arrow keys to navigate the year grid
    3. Press Enter to select a year
    4. Use Arrow keys to navigate the month grid
    5. Press Enter to select a month
    6. Navigate days and press Enter to select the final date

    To navigate header controls:

    1. When focused on a chevron button or the title, use Left/Right arrow keys to cycle between them
    2. In days view: navigate between prev chevron → title → next chevron
    3. In years view: navigate between the two visible chevron buttons

    Implementation Changes

    • Replaced Dropdown with Popover component for better focus management
    • Added focus management with refs to track keyboard position
    • Implemented keyboard event handlers for Arrow keys, Enter, and Space
    • Added horizontal navigation for header controls (chevron buttons and title)
    • Active elements (today's date, selected date) temporarily revert to default styling when keyboard focused to ensure the yellow focus ring is always visible
  • 0f5c56c: Allow users ability to choose whether text within cells wraps or truncates when space is limited, e.g. text wrap, truncated at the end, or middle.

    The consumer can now control the overflow mode preference at table/column level by declaring the preferred overflow mode when defining the table header items (columns), e.g. declare "overflowMode" to "truncated-middle" along label "filename".

  • 96ab2a9: Enable consumers to import hooks directly via @clickhouse/click-ui/hooks following the same pattern as component imports.

    How to use?

    Import hooks from the new dedicated path:

    import { useToast, useInitialTheme } from '@clickhouse/click-ui/hooks';

    Main entry point still works:

    import { useToast, useInitialTheme } from '@clickhouse/click-ui';
  • 5831e6b: Introducing logos in the library is a manual process which is prone to mistakes and relies on developer time. Furthermore, originally, it lacked documentation, which caused further confusion and wasted time due to context switching; Although the documentation was introduced recently, there's still space for improvement.

    To help improve collaboration with the design team, an SVG to React Component workflow is offered to enable anyone to contribute as easily and quickly as possible. Including documentation, providing information on topics, such as further customisation for theme-based computed logos, e.g. light VS dark.

    While this helps standardise the introduction of logos consistently, there's still space for improvement, e.g. there are two separate registries for light and dark logos and icons introduction, which are similar SVG data types, and are still a manual process. These and others will be addressed separately in the next iterations.

    What has changed?

    The logos API remains the same, you can update Click UI without any further changes. Although, the logo name c# was renamed to c-sharp due to need to use valid javascript identifiers during the auto-conversation process and usage of c# is NOT recommended as its being dropped to favour c-sharp.

  • 3c0312e: Improve current date visibility in the date picker. Previously, the current date used a subtle font weight increase that was barely noticeable depending on OS and browser font rendering. Now it uses a background highlight for better contrast.

    How it works?

    • Adds $isToday styling with a subtle background to day, month, and year cells
    • $isActive (yellow background) only applies when a date is actually selected
    • Hover state resets to yellow border with transparent background across all states
    • Year/month selection via title click is disabled for DateRangePicker
  • 3616770: Improved TypeScript type exports for better support and consumer app integration:

    • CardHorizontal: Enhanced type definitions with proper ReactNode and event handler types
    • CardSecondary: Added explicit type exports for card states and sizes
    • Collapsible: Updated IconWrapper component types for better accessibility
    • IconButton: Refined type definitions for button states and sizes
    • Sidebar components: Improved type safety for navigation items and collapsible sections
    • VerticalStepper: Extracted VerticalStepProps to dedicated types file for reusability
  • bc2821d: ### What's Changed

    Typography Split (breaking for internal imports only):

    • Split monolithic Typography/ folder into atomic Text/ and Title/ components
    • Each component now has dedicated folder with stories, tests, and exports
    • Enables granular imports: import { Text } from '@clickhouse/click-ui/Text'

    Hooks Organization:

    • Moved useToast from components/Toast/ to hooks/ for consistent hook exports
    • All hooks now centralized in src/hooks/ directory

    Build Improvements:

    • Added dist directory cleanup before builds to prevent stale artifacts

    Migration Guide

    For consumers using main index imports:

    // No changes needed - these continue to work:
    import { Text, Title } from '@clickhouse/click-ui';

    For consumers wanting granular imports:

    import { Text } from '@clickhouse/click-ui/Text';
    import { Title } from '@clickhouse/click-ui/Title';
    import { useToast } from '@clickhouse/click-ui';

    For internal development:

    // Old paths (removed):
    import { Text } from '@/components/Typography/Text';
    
    // New paths:
    import { Text } from '@/components/Text';
    import { Title } from '@/components/Title';

    Breaking Changes

    • Internal import paths changed from @/components/Typography/* to @/components/Text and @/components/Title
  • 7b25a0e: ### What's Changed

    Split the monolithic Input/ component folder into 6 separate atomic components, each with dedicated exports:

    • InputWrapper - Shared form element primitives (Wrapper, InputElement, NumberInputElement, etc.)
    • TextField - Standard text input with label and error support
    • NumberField - Numeric input with increment/decrement controls
    • PasswordField - Secure text input with visibility toggle
    • SearchField - Search-optimized input with clear button
    • TextAreaField - Multiline text input (renamed from TextArea for consistency)

    Migration Guide

    For consumers using main index imports:

    // No changes needed - these continue to work:
    import {
      TextField,
      NumberField,
      PasswordField,
      SearchField,
      TextAreaField,
      InputWrapper,
    } from '@clickhouse/click-ui';

    For consumers wanting granular imports:

    // New atomic imports available:
    import { TextField } from '@clickhouse/click-ui/TextField';
    import { NumberField } from '@clickhouse/click-ui/NumberField';
    import { PasswordField } from '@clickhouse/click-ui/PasswordField';
    import { SearchField } from '@clickhouse/click-ui/SearchField';
    import { TextAreaField } from '@clickhouse/click-ui/TextAreaField';
    import { InputWrapper } from '@clickhouse/click-ui/InputWrapper';

    Type imports:

    import type {
      TextFieldProps,
      NumberFieldProps,
      PasswordFieldProps,
    } from '@clickhouse/click-ui';
    
    // Or granular:
    import type { TextFieldProps } from '@clickhouse/click-ui/TextField';

    Breaking Changes

    • Internal import paths changed from @/components/Input/* to @/components/[ComponentName]
    • TextArea renamed to TextAreaField for naming consistency
    • No breaking changes for public API consumers using main exports
  • bd0f4f3: ### What's Changed

    Restructured Select components into atomic exports with dedicated type files:

    • Select - Single-select dropdown (renamed from SingleSelect for clarity)
    • MultiSelect - Multi-select dropdown with tag-style values
    • CheckboxMultiSelect - Multi-select with checkbox interface

    Each component now has:

    • Dedicated folder with index.ts exports
    • Separate .types.ts file for clean type exports
    • Stories and tests co-located with component

    Migration Guide

    For consumers using main index imports:

    // No changes needed - these continue to work:
    import { Select, MultiSelect, CheckboxMultiSelect } from '@clickhouse/click-ui';

    For consumers wanting granular imports:

    // New atomic imports available:
    import { Select } from '@clickhouse/click-ui/Select';
    import { MultiSelect } from '@clickhouse/click-ui/MultiSelect';
    import { CheckboxMultiSelect } from '@clickhouse/click-ui/CheckboxMultiSelect';

    Type imports:

    import type {
      SelectProps,
      MultiSelectProps,
      CheckboxMultiSelectProps,
      SelectOptionListItem,
      SelectionType,
    } from '@clickhouse/click-ui';
    
    // Or granular:
    import type { SelectProps } from '@clickhouse/click-ui/Select';
    import type { MultiSelectProps } from '@clickhouse/click-ui/MultiSelect';

    Breaking Changes

    • Internal import paths changed from @/components/Select/* to @/components/[ComponentName]
    • No breaking changes for public API consumers using main exports
  • 65a573d: Enforce generic type annotation style for arrays via ESLint

    • Added @typescript-eslint/array-type ESLint rule with 'generic' option to enforce Array<Type> notation over Type[]
    • Auto-fixed all 36 existing array type violations across the codebase
  • 1caeabb: Replaces the isResponsive boolean prop with a more explicit mobileLayout prop on the Table component. It clearly states the behavior, while isResponsive requires knowing what "responsive" means here and both are technically "responsive".

    The mobile layout version's more extensible, e.g. a new mode can be easily introduced such as compact without breaking changes.

    Migration guide:

    // Before
    <Table isResponsive={true} />
    <Table isResponsive={false} />
    
    // After
    <Table mobileLayout="list" /> // or use just <Table />
    <Table mobileLayout="scroll" />

    The new mobileLayout prop accepts:

    • "list" (default): Converts to mobile list view on narrow screens
    • "scroll": Maintains table layout with horizontal scroll on narrow screens

    Data attribute change:

    The data-responsive-mode attribute has been renamed to data-mobile-layout. If you have custom CSS targeting [data-responsive-mode='list'] or [data-responsive-mode='scroll'], update to [data-mobile-layout='list'] or [data-mobile-layout='scroll'].

  • 8de3cc4: Filenames can be long, which causes issues as found in the reported issue 693.

    Since upload file error status messages add extra length, it's found best to move it. Here, we move the failure message after the file details container.

  • d45c526: Provide an elegant file architecture pattern inspired by major component libraries. It has a main component, whose name serves as a namespace for types, styles, tests, stories (storybook) and a public export file. This is a first pass; further passes and iterations will be required, which is done to lower the risk of breaking changes.

    What has changed?

    It aims to provide the following:

    components/
    ├── Button/
    │   ├── Button.tsx          # Main component (namespace)
    │   ├── Button.types.ts     # TypeScript types
    │   ├── Button.styles.ts    # Styles
    │   ├── Button.test.tsx     # Tests
    │   ├── Button.stories.tsx  # Storybook stories
    │   └── index.ts            # Component-level exports
    ├── Input/
    │   ├── Input.tsx
    │   ├── index.ts
    │   └── ...
    └── index.ts                # Exports
    

    Fixes

    • ContextMenu.types.ts: Added missing type?: 'default' | 'danger' prop to exported ContextMenuItemProps
    • ContextMenu.tsx: Removed duplicate ArrowProps and ContextMenuItemProps exports, now imports from ./ContextMenu.types
    • Button.tsx: Removed duplicate Alignment type (already defined in Button.types.ts)
    • Flyout.types.ts: Replaced stale type definitions with correct types from Flyout.tsx (DialogContentProps, FlyoutHeaderProps, FlyoutFooterProps)
    • Flyout.types.ts: Fixed 'orientaion' typo to 'orientation' in Omit calls
  • 87018e4: Response for reported issue in #785, which reports a missing prop forwarding option for component customisation on the consumer application side. For example, it doesn't expose className or other props that forward to the common InternalSelect -> StyledSelectTrigger. Thus, we provide the requested changes to allow component customisation!

    How to use?

    Declare a triggerProps with desired elements, for example:

    <Select
      {...props}
      triggerProps={{
          className: 'custom-trigger',
          style: {
            border: '2px dashed #00f',
            borderRadius: '8px',
            maxWidth: '200px',
          },
          onFocus: () => console.log('🤖 Trigger focused!'),
          onMouseEnter: () => console.log('👀 Mouse entered trigger!'),
      }}
    >
  • 476e6ff: Users should also be able to choose whether text within cells wraps or truncates when space is limited, e.g. text wrap, truncated at the end, or middle.

    The consumer can now define at the cell/item level the text overflow mode (priority). A table-level text overflow model preference should be introduced, but the cell-level settings will take precedence.

  • 8fb0736: Allow the user to resize table columns. Originally, preferred to solve using native CSS but due to limitations, introduced a set of DOM event listeners for computed drag events on mouse move and values. From now on, the user can set the Table to have resizable columns by setting the property resizableColumns.

  • 85f9e50: FileMultiUpload reflects FileUpload style. It now shows the error status after the upload details container, doesn't show file size and filename is now displayed in a middle truncator.

  • 071bbb7: Show the success icon instead of the document icon, on file upload success.

  • e8593d6: Extended the build process to include a build output health check. The health check occurs locally and as a separate step in the CI.

  • 71fb216: Introduces click-ui's own DialogProps and DialogTriggerProps types, replacing direct Radix UI type re-exports. This decouples the public API from internal implementation details.

    What's new:

    • DialogProps, DialogTriggerProps - click-ui's own types with the same API you're used to
    • FlyoutContentProps, FlyoutTriggerProps - for advanced use cases (e.g., creating typed wrapper components)

    Example

    import { Flyout, FlyoutContentProps, FlyoutTriggerProps } from '@clickhouse/click-ui';
    
    const MyTrigger = (props: FlyoutTriggerProps) => <Flyout.Trigger {...props} />;
    const MyContent = (props: FlyoutContentProps) => <Flyout.Content {...props} />;

    How to migrate?

    For most users, no changes needed! DialogProps works exactly as before.

    If you were importing Radix types directly from click-ui (HoverCardProps, PopoverProps, ContextMenuProps), import from Radix instead:

    // Before
    import { HoverCardProps } from '@clickhouse/click-ui';
    
    // After
    import { HoverCardProps } from '@radix-ui/react-hover-card';
  • 2a342c9: Add OVH Company logo for white and dark mode

  • f70e04f: Declares the test runner target dirname as src. At the time of writing, the test runner looks for files in any directory, e.g., if you'd add a directory named .ignoreMe, it'd effectively look for test files in this location. For this reason, updated the include and exclude of test property in vite config specifying explicit pathnames.

  • 3048b2a: Add AlloyDB logo

  • 4fc641e: Prevent FileUpload success state icon from squashing in smaller or responsive container sizes.

  • ab8d42c: Rename the asset filenames to be more inline with branding styled

  • a822a3f: Reconciles SVG asset management for Flags, Icons, and Logos by restructuring file locations for React SVG components to match the conventions established in the original SVG-to-React conversion #828.

    It also modifies the original SVG to React Component process to support all three asset types: Flags, Icons and Logos. Included some safeguards, to try to help enforce naming conventions to facilitate. This bit might require further attempts, as it relies on the same retroactive~mapping to old names encountered or established in the Logo conversation version.

    For now, this second iterative pass creates a consistent asset management flow across all three asset types.

  • 74feae1: Adds an openDirection prop to DateRangePicker that controls which side the custom date range calendar opens. This is useful when the component is positioned near the right edge of the viewport, allowing the calendar to open on the left side to prevent overflow.

    What has changed?

    • New openDirection prop accepts 'left' or 'right' (defaults to 'right')
    • Automatic viewport detection, if the calendar would overflow the right side of the viewport, it automatically opens on the left
    • Calendar direction resets to the configured openDirection when the picker is closed

    How to use?

    Default behavior (opens to the right):

    import { DateRangePicker } from '@clickhouse/click-ui';
    
    <DateRangePicker
      onSelectDateRange={(startDate, endDate) => {
        console.log('Selected range:', startDate, endDate);
      }}
    />;

    Open calendar on the left (useful when positioned on the right side of the page):

    <DateRangePicker
      openDirection="left"
      predefinedDatesList={predefinedDatesList}
      onSelectDateRange={(startDate, endDate) => {
        console.log('Selected range:', startDate, endDate);
      }}
    />
  • ac3ebad: Added logo components for new data sources: Supabase, Crunchy Bridge, NeonDB, AWS RDS, AWS Aurora, TigerData.

  • 29c6bc5: Resolve component path redundancy and allow public API encapsulation.

    As work progressed on reducing import path verbosity, several deeper issues surfaced that were addressed as part of this PR. Component import statements previously required the component name twice, e.g. clickhouse/click-ui/components/EllipsisContent/EllipsisContent, which was unnecessary. Beyond that, the original version inadvertently exposed internal implementation details, allowing consumers to directly access and depend on third-party APIs such as Radix UI components and types. This has led to applications incorrectly coupling themselves to these internals rather than the library's intended public API, a problem that now requires careful, incremental cleanup using @deprecated warnings.

    While addressing the above, circular dependencies were discovered throughout the source code. These were not anticipated but were resolved as part of this PR, and new ESLint rules have been introduced to prevent them from reappearing as the library grows.

    Finally, after #773 (distribute unbundled) was merged, which solved critical distribution size issues, could now confirm that tree-shaking works correctly under the revised conditions and both import strategies, e.g. top-package level and component-level.

    API improvements

    1. Elegant import statements with zero performance cost, e.g. gets rid of redundant component name on import, such as @clickhouse/click-ui/components/EllipsisContent/EllipsisContent
    import { EllipsisContent } from '@clickhouse/click-ui/EllipsisContent';
    1. Decoupling consumers from the underlying implementation and improving the long-term maintainability of the library, e.g. The original version exposes internal implementation details, allowing consumers to directly access and depend on third-party APIs such as Radix UI elements/types. This has led to applications incorrectly coupling themselves to these internals rather than the library's intended public API, which now requires a lot of unwanted work as we have to rely on @deprecated warnings to remove them gradually! The PR addresses this by encapsulating these details, ensuring only the deliberate public API surface is accessible.

    Build output size improvements

    The original production version of the Click UI library had a critical bundling issue, producing a build output of 1,216.21 kB with chunks exceeding the 500 kB threshold after minification. To benchmark the improvements, a baseline Vite app without Click UI was measured at 193.30 kB. After integrating the updated PR version of Click UI, the results were as follows:

    Importing a component via the main barrel file / public API produced a build output of 223.70 kB, an overhead of just ~30 kB over the baseline. Importing directly from the component-specific export path (e.g. @clickhouse/click-ui/Button) brought this down marginally further to 223.09 kB.

    Both approaches represent a dramatic reduction from the original, with the PR version adding less than 30 kB over a bare Vite app regardless of import strategy.

    This is made possible by several changes to resolve component paths and, of course, by the introduction of #773, which makes the package distribution unbundled and moves optimisation responsibility to the consumer side. Before, the consumer always had an unscalable bundled/unoptimizable package of 1,216.21 kB.

  • 93149dd: Expose DateTimeRangePicker component and related types to the public API.

    What's new:

    • DateTimeRangePicker - A date/time range picker component for selecting date and time ranges
    • DateTimeRangePickerProps - TypeScript props for the DateTimeRangePicker component
    • DateRangePickerProps - TypeScript props for the DateRangePicker component
    • DatePickerProps - TypeScript props for the DatePicker component

    How to use?

    import { DateTimeRangePicker, DateTimeRangePickerProps } from '@clickhouse/click-ui';
    
    const MyComponent = () => (
      <DateTimeRangePicker onChange={range => console.log(range)} />
    );
  • 8cc22ba: The current Storybook build and publish process relies on webhooks, with outputs only accessible through the Vercel project dashboard, e.g. a contributor without a paid seat has no access to build output which is an impediment when troubleshooting.

    To reduce costs and make troubleshooting easier when builds fail or other issues occur, migrating to Vercel CLI-based build and publish is preferred. By making the process a GitHub action, anyone can investigate and resolve issues much more quickly and independently at the time of contribution. Until the proposed process change, it's required to ask an account holder for detailed build information, which wastes time.

  • ae8b66c: Refactors themed logos to use single theme-aware components and adds simple aliases for commonly used asset names.

    Theme-aware logos

    Logos with light/dark variants (kafka, github, clickhouse, rust, tableau, feature-database, feature-hexagon) are now consolidated into single components that automatically switch based on the current theme. This follows the existing pattern used by OVH and AWS logos.

    Before:

    // Had to explicitly choose the variant
    <Logo name="kafka-light" />
    <Logo name="kafka-dark" />

    After:

    // Automatically switches based on theme
    <Logo name="kafka" />

    Simple aliases for non-themed assets

    Added aliases for commonly used asset names that map to their kebab-case equivalents:

    Alias Resolves to
    mysql my-sql
    mongodb mongo-db
    nodejs node-js
    golang go-lang
    warpstream warp-stream
    digital_ocean digital-ocean
    onelake one-lake
    // Both work identically
    <Logo name="mysql" />
    <Logo name="my-sql" />

Patch Changes

  • 736477b: Removes the ESLint/TSLint rule that enforced arrays to be typed using generic syntax (Array) instead of the shorthand array syntax (T[]).

    The generic array annotation style (Array) adds verbosity without meaningful benefit. Removing this lint rule allows developers to use idiomatic TypeScript, such as the more concise T[] shorthand, which reduces friction and improves readability, e.g., TypeScript docs, LSP will show T[] and not Array.

  • 25bfc23: Explicitly sets box-sizing: content-box on predefined date picker lists. This prevents them for being pushed to too small a size when the app they're in uses a different box sizing model"

  • 3fbefc6: Restore onOpenAutoFocus and onCloseAutoFocus props to FlyoutContentProps.

    These focus management props were inadvertently removed during the decoupling from Radix UI types. They are now explicitly added back to provide parity with the Dialog component and support common accessibility use cases.

    Note: These props are optional and only needed when customizing default focus behavior.

    How to use?

    <Flyout.Content
      onOpenAutoFocus={e => {
        // Prevent default focus behavior
        e.preventDefault();
        // Implement custom focus logic
      }}
      onCloseAutoFocus={() => {
        // Handle focus when flyout closes
      }}
    >
      {children}
    </Flyout.Content>
  • 5831d60: Deprecated StyledLinkProps and linkStyles in the public API. These will be removed in a future release to prevent leaking styled-components implementation details, e.g. $size and $weight transient props in the Public API

    Migration Guide (Recommended)

    The Link component already:

    • Accepts a component prop to render as any element type
    • Accepts size and weight props
    • Passes through all other props, e.g. onClick, etc.

    We recommend migrating away from the deprecated APIs:

    • Replace StyledLinkProps and linkStyles usage
    • Remove the CuiStyledLink styled component definition
    • Use <Link component={RouterLink} size="md" weight="normal" ...> directly

    Current common consumer pattern uses the deprecated internal styling APIs:

    import { Link } from 'react-router-dom';
    import { linkStyles, StyledLinkProps } from '@clickhouse/click-ui';
    
    const CuiStyledLink = styled(Link)<StyledLinkProps>`
      ${linkStyles}
    `;
    
    <CuiStyledLink
      $size="md"
      $weight="normal"
      to="/path"
    >
      text
    </CuiStyledLink>;

    Recommended Pattern:

    import { Link as RouterLink } from 'react-router-dom';
    import { Link } from '@clickhouse/click-ui';
    
    <Link
      component={RouterLink}
      size="md"
      weight="normal"
      to="/path"
    >
      text
    </Link>;

    Note: These deprecated APIs will be removed in a future major release. Please migrate before then to avoid breaking changes.

  • 5ca8259: Add a new logo asset for Apache Iceberg

    How to use?

    import { Logo } from '@clickhouse/click-ui';
    
    <Logo name="apache-iceberg" />;
  • b34ec6d: Introduces a simple workflow to manage versioning and changelogs

  • e2191bb: Show deprecation warning for TableHeaderType to favour type TableColumnConfigProps

  • 56cb7f4: Consolidate dayjs imports and plugin configuration into src/utils/date.ts. The dayjs package does not declare exports for its plugins, requiring explicit .js extensions in ESM environments. Centralizing these imports ensures consistent usage across components.

  • 53a03d7: Add :focus-visible outline ring to Button, Select trigger, Dropdown trigger, and ContextMenu trigger for WCAG SC 2.4.7 (Focus Visible) compliance.

  • d4624f1: Restore changes lost in PR 841-845 merge conflict resolution.

    What changed:

    • Removed the Common/ barrel-export directory that was causing circular dependency issues
    • Split shared components into their own directories: CrossButton, EmptyButton, GridCenter, FormContainer
    • Updated imports across components to use direct paths instead of @/components/Common

    This is an internal refactoring with no public API changes.

  • 2eee805: Updates package.json for consistency

  • 68685c0: Add visible keyboard focus ring to menu items (Dropdown, Select, ContextMenu) for WCAG SC 2.4.7 and SC 1.4.11 compliance. Introduces useInputModality hook and stroke.focus theme tokens.

  • 2e1438f: Restore useCUITheme while flagging it as deprecated.

  • bfd8666: Fix SVG converter script to generate proper Props interfaces (LogoProps, IconProps, FlagProps, PaymentProps) in asset type files. Previously, the propsTypeName configuration was missing, causing Props interfaces to be absent from generated types.

  • b061496: Add circular dependency check to prevent and detect circular import cycles that can cause build issues, runtime errors, and bundle size problems.

    How to use?

    Run the circular dependency check:

    yarn circular-dependency:check

    The command analyzes the source code starting from the src directory and reports any circular dependencies found.

    To check a specific entry point:

    yarn circular-dependency:check src/components

    If circular dependencies are detected, the output will show the file paths involved in the cycle, helping you identify which imports need to be refactored to break the dependency chain.

  • dd63c70: Removes nonsense types which are utterly complex and not readable and shows inconsistency in Figma theme provided data structures.

    The src/theme/index.ts has a few utility types that seem unnecessarily complex, e.g. they are not human-readable, cause confusion and are meaningless in the context of providing utility or any sort of added value. Here, we introduce changes that make it much more idiomatic, minimal or simpler.

    Consequently, found an issue which is being reported internally, as after simplifying it, it's found that there's an   inconsistency between light and dark theme data structures; Bear in mind that the data structures MUST be equal (not discussing the values but structure wise). While this has to be solved in the origin or source, e.g. Figma, the changes in the Figma theme provided data structures to expose them.

    Note that it's solely to facilitate communication and help pinpoint where the problem is located: it does NOT mean or suggest this has to be done manually or that it's ok to change these two files directly in the source code. These MUST be resolved in the source Figma file.

  • 62a0cb7: Remove unnecessary aliases due to asset name normalisation.

  • e861899: Fix incorrect type export: ImageName (which includes icons, logos, flags, and payments) was incorrectly exported only as IconName. Now exports both IconName and ImageName types.

    What changed?

    This fix introduces a potential subtle breaking change. Previously, consumers importing IconName were actually getting ImageName (i.e., IconName | LogoName | FlagName | PaymentName). After this fix, IconName becomes the narrower type (icons only). If you were passing logo, flag, or payment names into a variable typed as IconName, you may now see TypeScript errors. Update those usages to use ImageName instead.

  • 1a2cb02: Build error due to assets wrong type for theme name

  • 455f94b: Fix Table column resize producing NaN width values when columnWidths array is not fully initialized.

  • a984177: Remove package linker from postinstall hook in package.json

  • 1f6cda6: Expose narrow asset types from public API: LogoName, LogoProps, FlagName, FlagProps, TextFieldProps

0.1.0-rc.80

Patch Changes

  • 56cb7f4: Consolidate dayjs imports and plugin configuration into src/utils/date.ts. The dayjs package does not declare exports for its plugins, requiring explicit .js extensions in ESM environments. Centralizing these imports ensures consistent usage across components.

0.1.0-rc.79

Minor Changes

  • 1869f03: Removes react-dom/server renderToStaticMarkup from copy grid elements of Grid to favour the recommended createRoot approach suggested by React's official documentation.

    According to React renderToStaticMarkup "The renderToStaticMarkup works in the browser, but using it in the client code is not recommended. If you need to render a component to HTML in the browser" and React renderToString "Importing react-dom/server on the client unnecessarily increases your bundle size and should be avoided. If you need to render some component to HTML in the browser, use createRoot and read HTML from the DOM".

Patch Changes

  • 3fbefc6: Restore onOpenAutoFocus and onCloseAutoFocus props to FlyoutContentProps.

    These focus management props were inadvertently removed during the decoupling from Radix UI types. They are now explicitly added back to provide parity with the Dialog component and support common accessibility use cases.

    Note: These props are optional and only needed when customizing default focus behavior.

    How to use?

    <Flyout.Content
      onOpenAutoFocus={e => {
        // Prevent default focus behavior
        e.preventDefault();
        // Implement custom focus logic
      }}
      onCloseAutoFocus={() => {
        // Handle focus when flyout closes
      }}
    >
      {children}
    </Flyout.Content>

0.1.0-rc.78

Minor Changes

  • 4c4105f: Add Lakekeeper logo

    How to use?

    import { Logo } from '@clickhouse/click-ui';
    
    <Logo name="lakekeeper" />;
  • 96ab2a9: Enable consumers to import hooks directly via @clickhouse/click-ui/hooks following the same pattern as component imports.

    How to use?

    Import hooks from the new dedicated path:

    import { useToast, useInitialTheme } from '@clickhouse/click-ui/hooks';

    Main entry point still works:

    import { useToast, useInitialTheme } from '@clickhouse/click-ui';

0.1.0-rc.77

Minor Changes

  • d936174: Add convert:regenerate command to regenerate asset types (logos, icons, flags, payments) without adding new components. This allows refreshing types.ts and registry files (Light/Dark) when the converter script is updated or when imports need to be standardized.

    How to use?

    Regenerate all asset types:

    yarn convert:regenerate
    

    Regenerate a specific asset type only:

    yarn convert:regenerate --type=icons
    

    Supported values for --type: logos, icons, flags, payments

  • 3616770: Improved TypeScript type exports for better support and consumer app integration:

    • CardHorizontal: Enhanced type definitions with proper ReactNode and event handler types
    • CardSecondary: Added explicit type exports for card states and sizes
    • Collapsible: Updated IconWrapper component types for better accessibility
    • IconButton: Refined type definitions for button states and sizes
    • Sidebar components: Improved type safety for navigation items and collapsible sections
    • VerticalStepper: Extracted VerticalStepProps to dedicated types file for reusability
  • bc2821d: ### What's Changed

    Typography Split (breaking for internal imports only):

    • Split monolithic Typography/ folder into atomic Text/ and Title/ components
    • Each component now has dedicated folder with stories, tests, and exports
    • Enables granular imports: import { Text } from '@clickhouse/click-ui/Text'

    Hooks Organization:

    • Moved useToast from components/Toast/ to hooks/ for consistent hook exports
    • All hooks now centralized in src/hooks/ directory

    Build Improvements:

    • Added dist directory cleanup before builds to prevent stale artifacts

    Migration Guide

    For consumers using main index imports:

    // No changes needed - these continue to work:
    import { Text, Title } from '@clickhouse/click-ui';

    For consumers wanting granular imports:

    import { Text } from '@clickhouse/click-ui/Text';
    import { Title } from '@clickhouse/click-ui/Title';
    import { useToast } from '@clickhouse/click-ui';

    For internal development:

    // Old paths (removed):
    import { Text } from '@/components/Typography/Text';
    
    // New paths:
    import { Text } from '@/components/Text';
    import { Title } from '@/components/Title';

    Breaking Changes

    • Internal import paths changed from @/components/Typography/* to @/components/Text and @/components/Title
  • 7b25a0e: ### What's Changed

    Split the monolithic Input/ component folder into 6 separate atomic components, each with dedicated exports:

    • InputWrapper - Shared form element primitives (Wrapper, InputElement, NumberInputElement, etc.)
    • TextField - Standard text input with label and error support
    • NumberField - Numeric input with increment/decrement controls
    • PasswordField - Secure text input with visibility toggle
    • SearchField - Search-optimized input with clear button
    • TextAreaField - Multiline text input (renamed from TextArea for consistency)

    Migration Guide

    For consumers using main index imports:

    // No changes needed - these continue to work:
    import {
      TextField,
      NumberField,
      PasswordField,
      SearchField,
      TextAreaField,
      InputWrapper,
    } from '@clickhouse/click-ui';

    For consumers wanting granular imports:

    // New atomic imports available:
    import { TextField } from '@clickhouse/click-ui/TextField';
    import { NumberField } from '@clickhouse/click-ui/NumberField';
    import { PasswordField } from '@clickhouse/click-ui/PasswordField';
    import { SearchField } from '@clickhouse/click-ui/SearchField';
    import { TextAreaField } from '@clickhouse/click-ui/TextAreaField';
    import { InputWrapper } from '@clickhouse/click-ui/InputWrapper';

    Type imports:

    import type {
      TextFieldProps,
      NumberFieldProps,
      PasswordFieldProps,
    } from '@clickhouse/click-ui';
    
    // Or granular:
    import type { TextFieldProps } from '@clickhouse/click-ui/TextField';

    Breaking Changes

    • Internal import paths changed from @/components/Input/* to @/components/[ComponentName]
    • TextArea renamed to TextAreaField for naming consistency
    • No breaking changes for public API consumers using main exports
  • bd0f4f3: ### What's Changed

    Restructured Select components into atomic exports with dedicated type files:

    • Select - Single-select dropdown (renamed from SingleSelect for clarity)
    • MultiSelect - Multi-select dropdown with tag-style values
    • CheckboxMultiSelect - Multi-select with checkbox interface

    Each component now has:

    • Dedicated folder with index.ts exports
    • Separate .types.ts file for clean type exports
    • Stories and tests co-located with component

    Migration Guide

    For consumers using main index imports:

    // No changes needed - these continue to work:
    import { Select, MultiSelect, CheckboxMultiSelect } from '@clickhouse/click-ui';

    For consumers wanting granular imports:

    // New atomic imports available:
    import { Select } from '@clickhouse/click-ui/Select';
    import { MultiSelect } from '@clickhouse/click-ui/MultiSelect';
    import { CheckboxMultiSelect } from '@clickhouse/click-ui/CheckboxMultiSelect';

    Type imports:

    import type {
      SelectProps,
      MultiSelectProps,
      CheckboxMultiSelectProps,
      SelectOptionListItem,
      SelectionType,
    } from '@clickhouse/click-ui';
    
    // Or granular:
    import type { SelectProps } from '@clickhouse/click-ui/Select';
    import type { MultiSelectProps } from '@clickhouse/click-ui/MultiSelect';

    Breaking Changes

    • Internal import paths changed from @/components/Select/* to @/components/[ComponentName]
    • No breaking changes for public API consumers using main exports

Patch Changes

  • 5ca8259: Add a new logo asset for Apache Iceberg

    How to use?

    import { Logo } from '@clickhouse/click-ui';
    
    <Logo name="apache-iceberg" />;
  • bfd8666: Fix SVG converter script to generate proper Props interfaces (LogoProps, IconProps, FlagProps, PaymentProps) in asset type files. Previously, the propsTypeName configuration was missing, causing Props interfaces to be absent from generated types.

0.1.0-rc.76

Minor Changes

  • 11a8c47: The useLayoutEffect watching headers.length wasn't triggered when headers were reordered (e.g., in sysadmin EntitiesTable with column selection), causing Column widths to be misaligned after reordering, NaN values appearing during resize operations and an incorrect null check (-1 !== null) that was always true.

0.1.0-rc.75

Minor Changes

  • ab8d42c: Rename the asset filenames to be more inline with branding styled

Patch Changes

  • 53a03d7: Add :focus-visible outline ring to Button, Select trigger, Dropdown trigger, and ContextMenu trigger for WCAG SC 2.4.7 (Focus Visible) compliance.
  • 68685c0: Add visible keyboard focus ring to menu items (Dropdown, Select, ContextMenu) for WCAG SC 2.4.7 and SC 1.4.11 compliance. Introduces useInputModality hook and stroke.focus theme tokens.
  • 62a0cb7: Remove unnecessary aliases due to asset name normalisation.
  • 455f94b: Fix Table column resize producing NaN width values when columnWidths array is not fully initialized.

0.1.0-rc.74

Minor Changes

  • ae8b66c: Refactors themed logos to use single theme-aware components and adds simple aliases for commonly used asset names.

    Theme-aware logos

    Logos with light/dark variants (kafka, github, clickhouse, rust, tableau, feature-database, feature-hexagon) are now consolidated into single components that automatically switch based on the current theme. This follows the existing pattern used by OVH and AWS logos.

    Before:

    // Had to explicitly choose the variant
    <Logo name="kafka-light" />
    <Logo name="kafka-dark" />

    After:

    // Automatically switches based on theme
    <Logo name="kafka" />

    Simple aliases for non-themed assets

    Added aliases for commonly used asset names that map to their kebab-case equivalents:

    Alias Resolves to
    mysql my-sql
    mongodb mongo-db
    nodejs node-js
    golang go-lang
    warpstream warp-stream
    digital_ocean digital-ocean
    onelake one-lake
    // Both work identically
    <Logo name="mysql" />
    <Logo name="my-sql" />

Patch Changes

  • 25bfc23: Explicitly sets box-sizing: content-box on predefined date picker lists. This prevents them for being pushed to too small a size when the app they're in uses a different box sizing model"
  • 1f6cda6: Expose narrow asset types from public API: LogoName, LogoProps, FlagName, FlagProps, TextFieldProps

0.1.0-rc.73

Minor Changes

  • 0a11bf7: Introduces a centralised asset configuration with unified aliases and deprecated name mappings. This provides a single source of truth for asset name resolution across all asset types (Icons, Logos, Flags, and Payments), helping to resolve circular dependencies while offering a flexible aliasing system.

    Why aliases?

    Asset naming conventions use kebab-case (e.g., c-sharp, arrow-down) to facilitate file organisation and ensure valid JavaScript identifiers. However, users may prefer more intuitive names that don't follow these conventions. Aliases bridge this gap.

    For example, c# contains a # character which is not a valid JavaScript identifier, but users might still prefer using c# over c-sharp.

    How to use aliases

    Aliases are defined in src/components/Assets/config.ts under ASSET_NAME_MAPPINGS.aliases:

    export const ASSET_NAME_MAPPINGS = {
      aliases: {
        'c#': 'c-sharp',
        // Add more aliases as needed
      } as AssetAliasMap,
      // ...
    };

    The alias is then automatically resolved when using any asset component:

    // Both of these work identically:
    <Logo name="c#" />
    <Logo name="c-sharp" />
  • 1caeabb: Replaces the isResponsive boolean prop with a more explicit mobileLayout prop on the Table component. It clearly states the behavior, while isResponsive requires knowing what "responsive" means here and both are technically "responsive".

    The mobile layout version's more extensible, e.g. a new mode can be easily introduced such as compact without breaking changes.

    Migration guide:

    // Before
    <Table isResponsive={true} />
    <Table isResponsive={false} />
    
    // After
    <Table mobileLayout="list" /> // or use just <Table />
    <Table mobileLayout="scroll" />

    The new mobileLayout prop accepts:

    • "list" (default): Converts to mobile list view on narrow screens
    • "scroll": Maintains table layout with horizontal scroll on narrow screens

    Data attribute change:

    The data-responsive-mode attribute has been renamed to data-mobile-layout. If you have custom CSS targeting [data-responsive-mode='list'] or [data-responsive-mode='scroll'], update to [data-mobile-layout='list'] or [data-mobile-layout='scroll'].

  • 93149dd: Expose DateTimeRangePicker component and related types to the public API.

    What's new:

    • DateTimeRangePicker - A date/time range picker component for selecting date and time ranges
    • DateTimeRangePickerProps - TypeScript props for the DateTimeRangePicker component
    • DateRangePickerProps - TypeScript props for the DateRangePicker component
    • DatePickerProps - TypeScript props for the DatePicker component

    How to use?

    import { DateTimeRangePicker, DateTimeRangePickerProps } from '@clickhouse/click-ui';
    
    const MyComponent = () => (
      <DateTimeRangePicker onChange={range => console.log(range)} />
    );

Patch Changes

  • 2e1438f: Restore useCUITheme while flagging it as deprecated.

  • e861899: Fix incorrect type export: ImageName (which includes icons, logos, flags, and payments) was incorrectly exported only as IconName. Now exports both IconName and ImageName types.

    What changed?

    This fix introduces a potential subtle breaking change. Previously, consumers importing IconName were actually getting ImageName (i.e., IconName | LogoName | FlagName | PaymentName). After this fix, IconName becomes the narrower type (icons only). If you were passing logo, flag, or payment names into a variable typed as IconName, you may now see TypeScript errors. Update those usages to use ImageName instead.

0.1.0-rc.72

Minor Changes

  • a54b59d: Adds a new DateTimePicker component for selecting date and time ranges with precision control. This component combines calendar-based date selection with time input fields, supporting both predefined time ranges and custom selections.

    What has changed?

    • New DateTimePicker component for selecting date-time ranges
    • Support for predefined time periods (e.g., "Past 15 minutes", "Past hour")
    • Custom date range selection with start/end calendars
    • Time input with hours, minutes, and optional seconds
    • AM/PM meridiem toggle for 12-hour format
    • Calendar can open to the left or right via openDirection prop
    • Time selection is retained when changing dates
    • Support for disabling future dates
    • Maximum range length constraint support
    • Helper function "predefined time periods for DateTimePicker" for common time ranges

    How to use?

    Basic usage with custom date range selection:

    import { DateTimePicker } from '@clickhouse/click-ui';
    
    <DateTimePicker
      onSelectDateRange={(startDate, endDate) => {
        console.log('Selected range:', startDate, endDate);
      }}
      placeholder="Select date range"
    />;

    With predefined time periods:

    import {
      DateTimePicker,
      getPredefinedTimePeriodsForDateTimePicker,
    } from '@clickhouse/click-ui';
    
    <DateTimePicker
      predefinedTimesList={getPredefinedTimePeriodsForDateTimePicker()}
      onSelectDateRange={(startDate, endDate) => {
        console.log('Selected range:', startDate, endDate);
      }}
    />;

    With all options:

    <DateTimePicker
      startDate={new Date()}
      endDate={new Date()}
      disabled={false}
      futureDatesDisabled={true}
      futureStartDatesDisabled={false}
      maxRangeLength={30}
      onSelectDateRange={(startDate, endDate) => handleRangeChange(startDate, endDate)}
      openDirection="left"
      placeholder="start date – end date"
      predefinedTimesList={customPredefinedList}
      shouldShowSeconds={true}
    />
  • b797f89: Provides control to fix the the Date picker content misalignment on smaller viewports or resizing.

    What changed?

    • Exposed responsivePositioning prop on DatePicker and DateRangePicker components (default: true)
    • When enabled, dropdowns automatically adjust position to stay within viewport with 100px padding
    • This fixes the Date picker dropdown becoming misaligned on resize and smaller viewports

    How to use?

    All dropdowns now automatically adjust to stay within viewport by default.

    To disable this behavior use the responsivePositioning prop:

    // Disable responsive positioning on Dropdown
    <Dropdown>
      <Dropdown.Trigger>Open</Dropdown.Trigger>
      <Dropdown.Content responsivePositioning={false}>
        <Dropdown.Item>Item</Dropdown.Item>
      </Dropdown.Content>
    </Dropdown>
    
    // Disable on DatePicker
    <DatePicker
      onSelectDate={handleSelect}
      responsivePositioning={false}
    />
    
    // Disable on DateRangePicker
    <DateRangePicker
      onSelectDateRange={handleRange}
      responsivePositioning={false}
    />
  • ae7584f: Introduced a new date-range picker using a simple two-phase process for year and month selection to make the date selection user experience more elegant.

    Currently, jumping through many years requires multiple clicks and scrolls, making the whole process tiring. The issue was originally reported in reported issue #752.

    How to use?

    To quickly navigate to a different month and year in the Datepicker:

    1. Click the header showing the current month and year (e.g., "Feb 2026")
    2. Select your desired year from the grid (current year is highlighted)
    3. Select the month from the grid (current month is highlighted)
    4. Select the day from the calendar

    This allows you to jump to any date without clicking through months one at a time.

    Progressive input display

    As you progress through the two-phase selection, the input field updates to reflect your choices:

    • After selecting a year: displays "2026"
    • After selecting a month: displays "Feb 2026"
    • After selecting a day: displays the full date "Feb 26, 2026"

    If the picker is dismissed before completing the selection, the input reverts to the previously selected date.

    Visual improvements

    • Current day, month, and year are highlighted with an active background
    • When a date is selected, only the selected date shows the active highlight (not today)
  • 02a4854: The Click-UI source code has several circular dependencies that must be resolved.

    During the resolution of component path redundancies and public API encapsulation in #798, several circular dependencies were exposed. There, some quick basic fixes were applied to allow to progress, but it was found that a separate PR was needed to resolve them.

    What changed?

    The InitCUIThemeScript component and InitCUIThemeScriptProps type were previously exported via src/theme/index.ts (which has been removed). They are now explicitly exported from the main entry point (src/index.ts). Consumers using SSR theme injection must update their imports:

    // Before
    import { InitCUIThemeScript } from '@clickhouse/click-ui/theme';
    
    // After
    import { InitCUIThemeScript } from '@clickhouse/click-ui';

    Additional cleanup:

    Removed orphaned subpath exports for CrossButton, EmptyButton, and GridCenter. These components were moved to @/components/Common in a previous refactor but duplicate directories were left behind. They are now exclusively available via the Common module:

    // Before
    import { CrossButton } from '@clickhouse/click-ui/CrossButton';
    
    // After
    import { CrossButton } from '@clickhouse/click-ui';
    // or for internal use:
    import { CrossButton } from '@/components/Common';

    Bug fix:

    Fixed a broken type export in src/components/Common/index.ts that was referencing a deleted file (Common.types.ts). The TextSize, TextWeight, and CursorOptions types are now correctly exported from their respective source files (Typography and Panel).

  • 7dad1bb: The team should have full control over the Public API to manage which resources are available for use in consumer applications. Previously, consumer applications had unrestricted access to internal resources, which is undesirable.

    For example, third-party APIs like the primitive components provided by Radix UI were directly exposed, meaning that if those primitives were ever swapped out, any consumer applications depending on them would break due to tight coupling.

    With these changes in place, core maintainers can now manage the Public API through a clear and friendlier interface.

    Removed Paths

    The following subpath exports have been removed as they were intended as internal implementation details:

    • @clickhouse/click-ui/Collapsible
    • @clickhouse/click-ui/IconWrapper
    • @clickhouse/click-ui/MiddleTruncator

    If you were importing from these paths, please migrate to the public API exports from the main entry point (@clickhouse/click-ui).

    How to use?

    The public API is controlled through the main barrel file at src/index.ts. This file serves as the single source of truth for all components, types, and utilities exported by the package.

    Note: The generate:exports script uses the TypeScript Compiler API to parse src/index.ts directly and extract only the components that are explicitly exported. This ensures that only public API components get subpath exports in package.json, while internal components remain inaccessible via direct imports.

    Maintainers can add or remove components from the public API by updating the exports in this file. Each export should include both the component and its associated types to ensure consumers have full type support.

    Here's an example of src/index.ts:

    // Adding a new component to the public API
    export { Button } from './components/Button';
    export type { ButtonProps } from './components/Button';
    
    // Removing a component (simply delete)

    After, you must run the generate:exports to update the component-level exports in the package.json file.

    Once complete, commit your changes.

  • f071983: Given the request 813, the following provides support for root colour theme attributes.

    The process will provide control for the consumer's main html, e.g. data-cui-theme. It'll get preferred theme from localStorage (if available), to prevent theme flashing, e.g. due to SSR vs browser runtime. Note that there'll be further changes once the set of PRs are merged (see https://github.com/ClickHouse/click-ui/pulls/punkbit).

    It also provides documentation explaining how to use it in the consumer application.

    How to use?

    The InitCUIThemeScript applies a data-cui-theme attribute to the root <html> element, allowing you to style custom elements with vanilla CSS.

    For example, edit your consumer app stylesheet and introduce custom styles as follows:

    [data-cui-theme='light'] {
      --my-app-bg: #ffffff;
      --my-app-text: #1a1a1a;
    }
    
    [data-cui-theme='dark'] {
      --my-app-bg: #0a0a0a;
      --my-app-text: #f5f5f5;
    }
    
    .my-custom-component {
      background: var(--my-app-bg);
      color: var(--my-app-text);
    }
  • 450e947: Extend ButtonGroup with multi-selection support, offering both controlled and uncontrolled modes so consumers can manage state themselves or delegate it to the component when only the resulting selection is required.

    What changed?

    • Added multiple prop to enable multi-selection mode
    • onClick callback returns string in single mode (backward compatible) and Set<string> in multiple mode
    • Exported SelectionValue type for consumers

    How to use?

    Single selection (default) - backward compatible:

    <ButtonGroup
      options={[
        { label: 'A', value: 'a' },
        { label: 'B', value: 'b' },
      ]}
      defaultSelected="a"
      onClick={(value, selected) => console.log(selected)}
    />

    Multiple selection which state is provided internally by component

    <ButtonGroup
      multiple
      options={[
        { label: 'A', value: 'a' },
        { label: 'B', value: 'b' },
      ]}
      defaultSelected={new Set(['a'])}
      onClick={(value, selected) => console.log([...selected])}
    />

    Multiple selection which state's controlled by consumer app

    const [selected, setSelected] = useState<Set<string>>(new Set(['a']));
    <ButtonGroup
      multiple
      options={[
        { label: 'A', value: 'a' },
        { label: 'B', value: 'b' },
      ]}
      selected={selected}
      onClick={(_, newSelection) => setSelected(newSelection as Set<string>)}
    />;
  • 0f32e3f: Adds a new isResponsive prop to the Table component.

    The default behavior (isResponsive={true}) remains unchanged, preserving the responsive mobile list view conversion.

    When set to false, the table maintains its standard layout with horizontal scroll on narrow screens instead of automatically converting to a mobile list view.

    How to use?

    To disable the mobile list view and keep the table layout with horizontal scroll:

    <Table isResponsive={false}>{/* Table content */}</Table>

    If you don't define isResponsive it'll default to default behaviour:

    <Table>{/* Table content */}</Table>
  • 61b90a5: Enable keyboard date picker selection

    Added keyboard navigation support to the DatePicker component, allowing users to select dates without using a mouse. This improves accessibility and provides a faster workflow for power users.

    Keyboard Navigation

    • Arrow keys (Up/Down/Left/Right) to navigate between days
    • Arrow keys (Left/Right) to navigate between header controls (chevron buttons and title)
    • Enter or Space to select a date
    • Tab to navigate to previous/next month chevrons
    • Current day, month, or year temporarily reverts to default styling when keyboard focused to make the yellow focus ring clearly visible

    How to use?

    To select a date using only your keyboard:

    1. Tab to the date picker input and press Enter to open the calendar
    2. Use Arrow keys to navigate to your desired day:
      • Left/Right arrows move between days
      • Up/Down arrows move between weeks
    3. Press Enter or Space to select the highlighted date
    4. The calendar will close automatically upon selection

    To navigate months and years:

    1. Tab to the month/year header and press Enter to open the year/month selector
    2. Use Arrow keys to navigate the year grid
    3. Press Enter to select a year
    4. Use Arrow keys to navigate the month grid
    5. Press Enter to select a month
    6. Navigate days and press Enter to select the final date

    To navigate header controls:

    1. When focused on a chevron button or the title, use Left/Right arrow keys to cycle between them
    2. In days view: navigate between prev chevron → title → next chevron
    3. In years view: navigate between the two visible chevron buttons

    Implementation Changes

    • Replaced Dropdown with Popover component for better focus management
    • Added focus management with refs to track keyboard position
    • Implemented keyboard event handlers for Arrow keys, Enter, and Space
    • Added horizontal navigation for header controls (chevron buttons and title)
    • Active elements (today's date, selected date) temporarily revert to default styling when keyboard focused to ensure the yellow focus ring is always visible
  • 3c0312e: Improve current date visibility in the date picker. Previously, the current date used a subtle font weight increase that was barely noticeable depending on OS and browser font rendering. Now it uses a background highlight for better contrast.

    How it works?

    • Adds $isToday styling with a subtle background to day, month, and year cells
    • $isActive (yellow background) only applies when a date is actually selected
    • Hover state resets to yellow border with transparent background across all states
    • Year/month selection via title click is disabled for DateRangePicker
  • 65a573d: Enforce generic type annotation style for arrays via ESLint

    • Added @typescript-eslint/array-type ESLint rule with 'generic' option to enforce Array<Type> notation over Type[]
    • Auto-fixed all 36 existing array type violations across the codebase
  • d45c526: Provide an elegant file architecture pattern inspired by major component libraries. It has a main component, whose name serves as a namespace for types, styles, tests, stories (storybook) and a public export file. This is a first pass; further passes and iterations will be required, which is done to lower the risk of breaking changes.

    What has changed?

    It aims to provide the following:

    components/
    ├── Button/
    │   ├── Button.tsx          # Main component (namespace)
    │   ├── Button.types.ts     # TypeScript types
    │   ├── Button.styles.ts    # Styles
    │   ├── Button.test.tsx     # Tests
    │   ├── Button.stories.tsx  # Storybook stories
    │   └── index.ts            # Component-level exports
    ├── Input/
    │   ├── Input.tsx
    │   ├── index.ts
    │   └── ...
    └── index.ts                # Exports
    

    Fixes

    • ContextMenu.types.ts: Added missing type?: 'default' | 'danger' prop to exported ContextMenuItemProps
    • ContextMenu.tsx: Removed duplicate ArrowProps and ContextMenuItemProps exports, now imports from ./ContextMenu.types
    • Button.tsx: Removed duplicate Alignment type (already defined in Button.types.ts)
    • Flyout.types.ts: Replaced stale type definitions with correct types from Flyout.tsx (DialogContentProps, FlyoutHeaderProps, FlyoutFooterProps)
    • Flyout.types.ts: Fixed 'orientaion' typo to 'orientation' in Omit calls
  • 71fb216: Introduces click-ui's own DialogProps and DialogTriggerProps types, replacing direct Radix UI type re-exports. This decouples the public API from internal implementation details.

    What's new:

    • DialogProps, DialogTriggerProps - click-ui's own types with the same API you're used to
    • FlyoutContentProps, FlyoutTriggerProps - for advanced use cases (e.g., creating typed wrapper components)

    Example

    import { Flyout, FlyoutContentProps, FlyoutTriggerProps } from '@clickhouse/click-ui';
    
    const MyTrigger = (props: FlyoutTriggerProps) => <Flyout.Trigger {...props} />;
    const MyContent = (props: FlyoutContentProps) => <Flyout.Content {...props} />;

    How to migrate?

    For most users, no changes needed! DialogProps works exactly as before.

    If you were importing Radix types directly from click-ui (HoverCardProps, PopoverProps, ContextMenuProps), import from Radix instead:

    // Before
    import { HoverCardProps } from '@clickhouse/click-ui';
    
    // After
    import { HoverCardProps } from '@radix-ui/react-hover-card';
  • 74feae1: Adds an openDirection prop to DateRangePicker that controls which side the custom date range calendar opens. This is useful when the component is positioned near the right edge of the viewport, allowing the calendar to open on the left side to prevent overflow.

    What has changed?

    • New openDirection prop accepts 'left' or 'right' (defaults to 'right')
    • Automatic viewport detection, if the calendar would overflow the right side of the viewport, it automatically opens on the left
    • Calendar direction resets to the configured openDirection when the picker is closed

    How to use?

    Default behavior (opens to the right):

    import { DateRangePicker } from '@clickhouse/click-ui';
    
    <DateRangePicker
      onSelectDateRange={(startDate, endDate) => {
        console.log('Selected range:', startDate, endDate);
      }}
    />;

    Open calendar on the left (useful when positioned on the right side of the page):

    <DateRangePicker
      openDirection="left"
      predefinedDatesList={predefinedDatesList}
      onSelectDateRange={(startDate, endDate) => {
        console.log('Selected range:', startDate, endDate);
      }}
    />
  • 29c6bc5: Resolve component path redundancy and allow public API encapsulation.

    As work progressed on reducing import path verbosity, several deeper issues surfaced that were addressed as part of this PR. Component import statements previously required the component name twice, e.g. clickhouse/click-ui/components/EllipsisContent/EllipsisContent, which was unnecessary. Beyond that, the original version inadvertently exposed internal implementation details, allowing consumers to directly access and depend on third-party APIs such as Radix UI components and types. This has led to applications incorrectly coupling themselves to these internals rather than the library's intended public API, a problem that now requires careful, incremental cleanup using @deprecated warnings.

    While addressing the above, circular dependencies were discovered throughout the source code. These were not anticipated but were resolved as part of this PR, and new ESLint rules have been introduced to prevent them from reappearing as the library grows.

    Finally, after #773 (distribute unbundled) was merged, which solved critical distribution size issues, could now confirm that tree-shaking works correctly under the revised conditions and both import strategies, e.g. top-package level and component-level.

    API improvements

    1. Elegant import statements with zero performance cost, e.g. gets rid of redundant component name on import, such as @clickhouse/click-ui/components/EllipsisContent/EllipsisContent
    import { EllipsisContent } from '@clickhouse/click-ui/EllipsisContent';
    1. Decoupling consumers from the underlying implementation and improving the long-term maintainability of the library, e.g. The original version exposes internal implementation details, allowing consumers to directly access and depend on third-party APIs such as Radix UI elements/types. This has led to applications incorrectly coupling themselves to these internals rather than the library's intended public API, which now requires a lot of unwanted work as we have to rely on @deprecated warnings to remove them gradually! The PR addresses this by encapsulating these details, ensuring only the deliberate public API surface is accessible.

    Build output size improvements

    The original production version of the Click UI library had a critical bundling issue, producing a build output of 1,216.21 kB with chunks exceeding the 500 kB threshold after minification. To benchmark the improvements, a baseline Vite app without Click UI was measured at 193.30 kB. After integrating the updated PR version of Click UI, the results were as follows:

    Importing a component via the main barrel file / public API produced a build output of 223.70 kB, an overhead of just ~30 kB over the baseline. Importing directly from the component-specific export path (e.g. @clickhouse/click-ui/Button) brought this down marginally further to 223.09 kB.

    Both approaches represent a dramatic reduction from the original, with the PR version adding less than 30 kB over a bare Vite app regardless of import strategy.

    This is made possible by several changes to resolve component paths and, of course, by the introduction of #773, which makes the package distribution unbundled and moves optimisation responsibility to the consumer side. Before, the consumer always had an unscalable bundled/unoptimizable package of 1,216.21 kB.

Patch Changes

  • 736477b: Removes the ESLint/TSLint rule that enforced arrays to be typed using generic syntax (Array) instead of the shorthand array syntax (T[]).

    The generic array annotation style (Array) adds verbosity without meaningful benefit. Removing this lint rule allows developers to use idiomatic TypeScript, such as the more concise T[] shorthand, which reduces friction and improves readability, e.g., TypeScript docs, LSP will show T[] and not Array.

  • 5831d60: Deprecated StyledLinkProps and linkStyles in the public API. These will be removed in a future release to prevent leaking styled-components implementation details, e.g. $size and $weight transient props in the Public API

    Migration Guide (Recommended)

    The Link component already:

    • Accepts a component prop to render as any element type
    • Accepts size and weight props
    • Passes through all other props, e.g. onClick, etc.

    We recommend migrating away from the deprecated APIs:

    • Replace StyledLinkProps and linkStyles usage
    • Remove the CuiStyledLink styled component definition
    • Use <Link component={RouterLink} size="md" weight="normal" ...> directly

    Current common consumer pattern uses the deprecated internal styling APIs:

    import { Link } from 'react-router-dom';
    import { linkStyles, StyledLinkProps } from '@clickhouse/click-ui';
    
    const CuiStyledLink = styled(Link)<StyledLinkProps>`
      ${linkStyles}
    `;
    
    <CuiStyledLink
      $size="md"
      $weight="normal"
      to="/path"
    >
      text
    </CuiStyledLink>;

    Recommended Pattern:

    import { Link as RouterLink } from 'react-router-dom';
    import { Link } from '@clickhouse/click-ui';
    
    <Link
      component={RouterLink}
      size="md"
      weight="normal"
      to="/path"
    >
      text
    </Link>;

    Note: These deprecated APIs will be removed in a future major release. Please migrate before then to avoid breaking changes.

  • d4624f1: Restore changes lost in PR 841-845 merge conflict resolution.

    What changed:

    • Removed the Common/ barrel-export directory that was causing circular dependency issues
    • Split shared components into their own directories: CrossButton, EmptyButton, GridCenter, FormContainer
    • Updated imports across components to use direct paths instead of @/components/Common

    This is an internal refactoring with no public API changes.

  • b061496: Add circular dependency check to prevent and detect circular import cycles that can cause build issues, runtime errors, and bundle size problems.

    How to use?

    Run the circular dependency check:

    yarn circular-dependency:check

    The command analyzes the source code starting from the src directory and reports any circular dependencies found.

    To check a specific entry point:

    yarn circular-dependency:check src/components

    If circular dependencies are detected, the output will show the file paths involved in the cycle, helping you identify which imports need to be refactored to break the dependency chain.

  • a984177: Remove package linker from postinstall hook in package.json

0.1.0-rc.69

Minor Changes

  • e8593d6: Extended the build process to include a build output health check. The health check occurs locally and as a separate step in the CI.

Patch Changes

  • 1a2cb02: Build error due to assets wrong type for theme name

0.1.0-rc.68

Minor Changes

  • a4a16b8: Added new icon components: ChartCloud and ChartSquare.

  • 9dad00d: Add PlanetScale logo

  • bbdfb43: Truncate filenames by shortening the middle revealing critical parts.

    Assume you have:

    console.clickhouse.cloud_Archive.01-01-1975.lorem-ipsum-a-very-long-filename-001.csv
    console.clickhouse.cloud_Archive.01-01-1975.lorem-ipsum-a-very-long-filename-005.csv
    dashboard.mongodb.atlas_Export.12-15-2024.customer-data-analysis-report-final-v2.json
    admin.postgresql.heroku_Backup.03-22-2023.transaction-logs-monthly-summary-march.sql
    

    In the current faulty version you'd get something like:

    console.clickhouse.cloud_Archive.01-~.csv
    console.clickhouse.cloud_Archive.01-~.csv
    dashboard.mongodb.atlas_Export.12-1~.csv
    admin.postgresql.heroku_Backup.03-2~.csv
    

    Notice that the first two filenames, when presented truncated, have the same shortened name, making it hard to differentiate.

    In the PR proposed version you'd find easier to identify files if these are named in a maintainable way:

    console.clickh...filename-001.csv
    console.clickh...filename-005.csv
    dashboard.mong...ort-final-v2.json
    admin.postgres...ummary-march.sql
    

    Notice that the first and last digits help identify the file more concisely, allowing for a shorter length.

  • e0c3541: Makes the distributed files "unbundled", effectively moving optimisation to a consumer app concern, e.g. obfuscation, compression, bundling MUST be consumer concerns, the library SHOULD NOT make the consumer bundling process more difficult, it MUST facilitate it! It resolves cyclic imports or circular dependencies, enhances linting to prevent imports from barrel files, making the barrel files more of a public API than an internal API to help prevent circular dependencies.

    From now on, bundling preserves the file tree, externalises packages based on the package.json dependency declaration automatically, instead of managing them manually as the current version does. It allows deep imports, e.g. @clickhouse/click-ui/components/Button.

    Exports files are placed by target resolution, e.g. dist/esm|cjs. It has removed UMD until further notice (why is the original version providing UMD, what's the use-case?). As a component library, in principle, it should be ESM and CJS (due to NodeJS SSR) compatible in the worse case scenarios.

    It reduces build times from > 1 minute to < 22 seconds.

    More importantly, this initial revision provides tree-shaking support, helping reduce file size. Which can now be assessed with an optional builder feature to analyse and visualise the package dependency graph, file sizes, etc.

  • d3b40ae: Reconcile FileUpload and FileMultiUpload to prevent and reduce concurrent implementations, e.g. behaviour, features, styles, etc. In the previous version, the multiple file upload component was recreating the file upload in its file context which is prone to mistakes and hard to maintain.

  • 970cdfb: Cleans up the build configuration, token generation and related processes. By removing legacy styling setups and simplifying the token generation to only the required setup. This work is important before starting to migrate off styled components. Effectively, reducing technical debt.

    For example, the SCSS setup is not providing any value, e.g. there was an unused 320KB file named src/styles/tokens-light-dark.scss.

    It seems that the setup is promoted as offering "tree-shaking" benefits, but I suspect this is not correct from what I could assess. With that being said, even if the consumer app, only use a single variable, the entire 320KB of CSS custom properties would be spit into the final CSS bundle!

    Considering that variables change with time, and if not managed correctly, might increase dramatically, the file size would increase and make the app's distributed bundle size increase for no additional value. Think that tree shaking means a sort of static analysis that has to determine which tokens (bits of code) are not used, to remove them safely. It's not the case here with the current setup, e.g. the whole ":root" stuff would go in.

    Other changes might have extended to removing legacy, unused or orphaned CSS files found in the project.

    Finally, the changes here help to clear or reduce some of the technical debt, e.g. taking a step back before jumping much further. There are other pending PR, which once merged will allow further progress to improve the code base.

  • 133282b: Prevent dayjs mismatch version blocking package dependency install. On CI run, there's a step which installs with flag "immutable". Because there's a dayjs mismatch version, the install process errors.

  • d0c50c0: A version maintenance branch strategy enables the Click UI team to support older versions simultaneously, which is important since consumer applications, e.g. control plane or hyperdx might depend on stable versions and cannot immediately upgrade to the latest release.

    The introduction of this branching strategy conceptually and in the release workflow, practically, allows the team to support active development, incentivise experimentation, change, improvements, iteration, etc while shipping critical bug fixes or security patches to older versions (as long as compatible). This ensures that "stable" versions still receive necessary fixes without forcing potential breaking changes or showing new untested features.

    In the release workflow, implemented automation for it by handling the tedious parts to help reduce human errors and ensure a consistent release flow; But also for our own sanity, as otherwise it'd cause overwhelming version/release management.

    How to use?

    To create a new release, locate the create release and use the interface to select the release type, e.g. release candidate (rc), testing, stable or latest.

    It'll create a new Pull request for review, e.g. changelog, version bump, etc. There, you have the opportunity to make any further tweaks, refinements and check if everything's correct.

    You can find the pull requests in the GitHub tab Pull Request. E.g. let's say you're about to release v0.1.0-rc.1, you'd find chore: 🤖 release v0.1.0-rc.1 (rc).

    To learn more read the release worfklow documentation.

  • aa6c34d: Current select breaks in smaller viewports. Notice that the Icon is misplaced, comparatively with desktop viewport.

    This change provides a fix, to make it work seamlessly across viewport sizes.

  • 6b9c9d3: The previous versions of click-ui (e.g., <= 0.0.250), break on the latest of Nextjs, Vitejs, any React >= 19 or RSC enabled builds. To mitigate it, this initial change provides the minimal setup required for it to work in such environments, e.g. when installing the package, it should run in dev and build processes. It does NOT try to modify, replace, introduce or change breaking changes; there might be a few subtle changes related to Radix. At the time of writing, the library requires a browser runtime, which means that is client-only. Separately, there'll be other PR to address other related concerns and expand on this initial PR, e.g. none interactive components shall render server-side.

    What changed?

    The @clickhouse/click-ui package was updated, which includes an updated Radix UI dependency that removed the side, align, and sideOffset props from ContextMenu.Content.

    Radix made this change because the ContextMenuContentProps TypeScript type now explicitly omits these props:

    interface ContextMenuContentProps extends Omit<MenuContentProps, 'onEntryFocus' | 'side' | 'sideOffset' | 'align'> {}
    
    1. Context menus are fundamentally different from dropdown menus — they open at the cursor position (where the user right-clicked), not relative to a trigger element
    2. The side and align props don't make sense for context menus since there's no anchor element to position against
    3. Smaller bundle size — removing unused positioning logic reduces the bundle for ContextMenu consumers

    Migration Guide

    Before: <ContextMenu.Content side="bottom" align="start"> After: <ContextMenu.Content>

    Before: sideOffset={5} After: Use alignOffset for vertical spacing if needed

    The props were never functionally useful for context menus (which position at the cursor), so removing them is just a cleanup.

    Simply delete these props from your ContextMenu.Content components.

    Sources:

  • 4d3733d: Adds keyboard support for resizing the table column, e.g. on the tab column separator "focus", the user can now press keyboard arrows/cursor keys (left or right) for controlling the resizing direction.

    The changes were made to let everyone use the resize feature, not just mouse users, e.g. improved accessibility.

    How to use?

    On a view that includes a table element, press the TAB key on your keyboard to select the column separator. Once the separator is focused, use the arrow/cursor left and right keys to control the resize direction. Press escape key (ESC) to leave focus.

  • 00211aa: Adapts file upload filename truncation responsiveness, e.g. shows truncated file name on smaller container sizes, showing the original otherwise. It shows the complete filename on element hover.

    This is a variation of 779, which shortens the middle of the text responsively but over breakpoints. Ideally, it should be fluid, but that'd require computation/listener/observables, through container size, it might be hard to justify the time.

    As an alternative, we introduce text number of characters responsive fluidity by faking it, e.g. does not introduce listeners/observables, uses native css resulting in a fluid, well-performing responsive truncation.

  • 0f5c56c: Allow users ability to choose whether text within cells wraps or truncates when space is limited, e.g. text wrap, truncated at the end, or middle.

    The consumer can now control the overflow mode preference at table/column level by declaring the preferred overflow mode when defining the table header items (columns), e.g. declare "overflowMode" to "truncated-middle" along label "filename".

  • 5831e6b: Introducing logos in the library is a manual process which is prone to mistakes and relies on developer time. Furthermore, originally, it lacked documentation, which caused further confusion and wasted time due to context switching; Although the documentation was introduced recently, there's still space for improvement.

    To help improve collaboration with the design team, an SVG to React Component workflow is offered to enable anyone to contribute as easily and quickly as possible. Including documentation, providing information on topics, such as further customisation for theme-based computed logos, e.g. light VS dark.

    While this helps standardise the introduction of logos consistently, there's still space for improvement, e.g. there are two separate registries for light and dark logos and icons introduction, which are similar SVG data types, and are still a manual process. These and others will be addressed separately in the next iterations.

    What has changed?

    The logos API remains the same, you can update Click UI without any further changes. Although, the logo name c# was renamed to c-sharp due to need to use valid javascript identifiers during the auto-conversation process and usage of c# is NOT recommended as its being dropped to favour c-sharp.

  • 8de3cc4: Filenames can be long, which causes issues as found in the reported issue 693.

    Since upload file error status messages add extra length, it's found best to move it. Here, we move the failure message after the file details container.

  • 87018e4: Response for reported issue in #785, which reports a missing prop forwarding option for component customisation on the consumer application side. For example, it doesn't expose className or other props that forward to the common InternalSelect -> StyledSelectTrigger. Thus, we provide the requested changes to allow component customisation!

    How to use?

    Declare a triggerProps with desired elements, for example:

    <Select
      {...props}
      triggerProps={{
          className: 'custom-trigger',
          style: {
            border: '2px dashed #00f',
            borderRadius: '8px',
            maxWidth: '200px',
          },
          onFocus: () => console.log('🤖 Trigger focused!'),
          onMouseEnter: () => console.log('👀 Mouse entered trigger!'),
      }}
    >
  • 476e6ff: Users should also be able to choose whether text within cells wraps or truncates when space is limited, e.g. text wrap, truncated at the end, or middle.

    The consumer can now define at the cell/item level the text overflow mode (priority). A table-level text overflow model preference should be introduced, but the cell-level settings will take precedence.

  • 8fb0736: Allow the user to resize table columns. Originally, preferred to solve using native CSS but due to limitations, introduced a set of DOM event listeners for computed drag events on mouse move and values. From now on, the user can set the Table to have resizable columns by setting the property resizableColumns.

  • 85f9e50: FileMultiUpload reflects FileUpload style. It now shows the error status after the upload details container, doesn't show file size and filename is now displayed in a middle truncator.

  • 071bbb7: Show the success icon instead of the document icon, on file upload success.

  • 2a342c9: Add OVH Company logo for white and dark mode

  • f70e04f: Declares the test runner target dirname as src. At the time of writing, the test runner looks for files in any directory, e.g., if you'd add a directory named .ignoreMe, it'd effectively look for test files in this location. For this reason, updated the include and exclude of test property in vite config specifying explicit pathnames.

  • 3048b2a: Add AlloyDB logo

  • 4fc641e: Prevent FileUpload success state icon from squashing in smaller or responsive container sizes.

  • a822a3f: Reconciles SVG asset management for Flags, Icons, and Logos by restructuring file locations for React SVG components to match the conventions established in the original SVG-to-React conversion #828.

    It also modifies the original SVG to React Component process to support all three asset types: Flags, Icons and Logos. Included some safeguards, to try to help enforce naming conventions to facilitate. This bit might require further attempts, as it relies on the same retroactive~mapping to old names encountered or established in the Logo conversation version.

    For now, this second iterative pass creates a consistent asset management flow across all three asset types.

  • ac3ebad: Added logo components for new data sources: Supabase, Crunchy Bridge, NeonDB, AWS RDS, AWS Aurora, TigerData.

  • 8cc22ba: The current Storybook build and publish process relies on webhooks, with outputs only accessible through the Vercel project dashboard, e.g. a contributor without a paid seat has no access to build output which is an impediment when troubleshooting.

    To reduce costs and make troubleshooting easier when builds fail or other issues occur, migrating to Vercel CLI-based build and publish is preferred. By making the process a GitHub action, anyone can investigate and resolve issues much more quickly and independently at the time of contribution. Until the proposed process change, it's required to ask an account holder for detailed build information, which wastes time.

Patch Changes

  • b34ec6d: Introduces a simple workflow to manage versioning and changelogs

  • e2191bb: Show deprecation warning for TableHeaderType to favour type TableColumnConfigProps

  • 2eee805: Updates package.json for consistency

  • dd63c70: Removes nonsense types which are utterly complex and not readable and shows inconsistency in Figma theme provided data structures.

    The src/theme/index.ts has a few utility types that seem unnecessarily complex, e.g. they are not human-readable, cause confusion and are meaningless in the context of providing utility or any sort of added value. Here, we introduce changes that make it much more idiomatic, minimal or simpler.

    Consequently, found an issue which is being reported internally, as after simplifying it, it's found that there's an   inconsistency between light and dark theme data structures; Bear in mind that the data structures MUST be equal (not discussing the values but structure wise). While this has to be solved in the origin or source, e.g. Figma, the changes in the Figma theme provided data structures to expose them.

    Note that it's solely to facilitate communication and help pinpoint where the problem is located: it does NOT mean or suggest this has to be done manually or that it's ok to change these two files directly in the source code. These MUST be resolved in the source Figma file.