Releases: ianpaschal/combat-command-components
Releases · ianpaschal/combat-command-components
v2.1.0
v2.1.0
Bug Fixes
<Select/>missingsizeprop: Thesizeprop was absent and the component defaulted to36pxinstead of the correct40px. Both are now fixed. (CC-41, #23)<RadioCards/>not highlightingnullvalues: Selecting a card with anullvalue would animate the selection dot but not highlight the card itself. Card highlighting now works correctly fornullvalues. (CC-40, #25)<Select/>items missing padding: Menu items were rendering without padding. (CC-60, #26)
Improvements
- Action sheet bottom spacing: Increased bottom spacing on the mobile action sheet for better visual balance. (CC-46, #24)
Full Changelog: v2.0.1...v2.1.0
v2.0.1
- Fixed CC-20: Menu items on desktop did not receive a hover effect.
- Tweaked the Daybreak and Midnight theme colors slightly.
v2.0.0
Breaking Changes & Migration
ThemeProvideris now required - Intent-based color tokens (accent,neutral,danger, etc.) no longer resolve without a<ThemeProvider>wrapping your app. Add it at your root and pass your themes via the theme registry. Thethemeprop optionally locks the active theme and overrides any user selection orsetThemecalls.- Radix UI replaced by Base UI -
radix-ui,@radix-ui/colorshave been removed as dependencies.@base-ui/reactreplaces them, bumped from^1.2.0to^1.4.1. If you were importing any Radix primitives transitively, install them directly. AppLogoremoved as a top-level export -AppLogois no longer exported from the package root. It is now an internal sub-component ofAppNavigation.AppNavigationsub-component renames -DesktopRouteList→DesktopRoutes,MobileRouteList→MobileRoutes. Update any direct imports.Buttondefault prop changesintent:'neutral'→'secondary'variant:'primary'→'solid'|
- Peer dependencies removed -
react-router-dom,react-pdf, andpdfjs-distare no longer declared as peer dependencies. They are now either bundled dependencies or not required at all. Remove them from your own peer dependency constraints if you had added them transitively.
Added
ThemeProvider
New component that sets CSS custom properties for intent-based color tokens. Supports system theme detection, user-controlled theme switching, and a theme prop to force a specific theme. Themes are registered via a global store and exposed as selectable options through context.
Tabs
Controlled and uncontrolled tab component built on Base UI. Accepts a tabs array, supports value/defaultValue/onValueChange, and exposes tab state via context to child components.
New form components
CheckboxandCheckboxGroupSwitchRadioCardsInputTextAreaInputDateTime— date/time picker usingreact-day-pickerInputPanel
New display/layout components
CardHeroImageViewerCircularProgressMenu
Dialog
- New
confirmTextprop to override the default confirm button label (previously hardcoded as"Confirm") - New
fullHeightandfullWidthprops - New
maxHeightprop (previously onlymaxWidthwas supported) - Cancel button now uses
variant="shaded"instead ofvariant="secondary"
AppNavigation
Query parameters are now included when matching active routes.
Fixed
Drawer:fullSizeprop had no effect. It now correctly setsdata-full-widthordata-full-heighton the popup based on the drawer'ssideprop.Select: Overflow indicator borders were not respecting dark mode.
Removed
AppLogotop-level export (now internal toAppNavigation)DesktopRouteListandMobileRouteListexports (renamed — see migration above)radix-uiand@radix-ui/colorsdependenciesreact-router-dom,react-pdf,pdfjs-distpeer dependencies
v1.5.0
Improvements
- Added animated focus outlines to interactive elements (elements using a
variantandintent); - Reduce
<DialogProvider/>children re-renders by implementing a store;
Bug Fixes
- Dialog only cancels on backdrop click (as compared to any loss of focus);
v1.4.1
Improvements
- Improved styles for
<Dialog/>
v1.4.0
New Features
- Added
<Dialog/>; - Added
<Spinner/>; - Added
<Button/>;
v1.3.0
New Features
- Added a
<Table/>component.
Bug Fixes
<Badge/>'sintentis no longer passed to its child.
v1.2.0
New Features
- Adds a
<Badge/>component.
Bug Fixes
- Numerous rendering (style) issues fixed on
<AppNavigation/>.