Repository navigation
What's Changed
- chore(deps): bump the security group across 1 directory with 3 updates by @dependabot[bot] in #1266
- fix(Grid): sort copied indexes numerically by @fallintoplace in #1244
- fix(DateTimeRangePicker): preserve meridiem on Enter by @fallintoplace in #1245
- chore: changeset revamp by @XOP in #1264
- feat(Table): add skeleton loading variant by @mdevils in #1229
- fix(a11y): add keyboard activation and button role to CardHorizontal by @EvandroLG in #1269
- chore(deps): bump the runtime-dependencies group with 15 updates by @dependabot[bot] in #1268
- chore(deps-dev): bump the dev-dependencies group across 1 directory with 17 updates by @dependabot[bot] in #1274
- feat(Alert): add preserveLineBreaks prop by @fneves in #1277
- chore(deps-dev): bump the dev-dependencies group across 1 directory with 11 updates by @dependabot[bot] in #1285
- fix(Grid): respect rowStart when copying selected columns by @fallintoplace in #1271
- chore(deps): bump the runtime-dependencies group across 1 directory with 16 updates by @dependabot[bot] in #1273
- feat(Logos): add Vercel logo by @mdevils in #1294
Good to know
-
Add
preserveLineBreakstoAlert. When it is true, stringtextkeeps\nline breaks.Visual: unchanged by default. Set
preserveLineBreaksonAlert,WarningAlert,DangerAlert,InfoAlert, orSuccessAlertto opt in. ReactNodetextis unchanged. -
New
Skeletoncomponent: a placeholder for content that is still loading, in two shapes.shape="text"(the default) drawslinesof text, each as tall as a line ofTextat the samesize(smormd);shape="rectangle"draws a box of anyheight.widthandheighttake any CSS value and default to filling the parent. Skeletons on screen together share one shimmer sweep; with reduced motion the fill is static.Tablecan now show placeholder rows while loading instead of a centered spinner: setloadingVariant="skeleton"alongsideloading, andskeletonRowCountto choose how many rows (3 by default). The placeholders follow the table'srowHeight.Visual: unchanged by default.
loadingVariantdefaults tospinner, which is whatloadinghas always drawn. The table also setsaria-busywhile loading, in either variant. -
Adds a Vercel logo:
<Icon name="vercel" />. It follows the text color, so it adapts to the theme and accepts acoloroverride. -
Bump the
@radix-ui/react-*runtime dependencies. A consumeraria-describedbyonTooltip.Triggeror itsasChildchild is now merged with the tooltip's id instead of replacing it. This also applies toEllipsisContentandTextTruncatewhile their text is cut off.Tabstriggers move focus before the tab switches, and non-modal popovers inside aDialogorFlyoutkeep focus and scroll.If your app also installs
@radix-ui/react-*packages directly, update them to the versions in click-ui'spackage.jsondependencies so nested dialogs and menus share one focus trap. -
Checkbox,SwitchandRadioGroupinside a<form>now also fire a bubbledchangeevent when the checked value updates after the click, for example from an async handler. ATooltipinside a modalPopoverkeeps the right tab order.ContextMenu.Contentnow applies asideOffsetyou pass. -
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.
-
Keep the selected meridiem when committing a DateTimeRangePicker time with Enter.
-
Keep copied Grid rows and columns in numeric index order.
-
Copy selected Grid columns from the current row offset.
New Contributors
Full Changelog: v0.15.0...v0.16.0