Releases: Cratis/Components
Releases · Cratis/Components
Release v1.7.1
Added
- Added two new
CommandStepperStorybook stories that render inside realistic dialog-style frames.
Changed
- Exported
CommandStepperfrom the root module exports. - Added a dedicated
./CommandStepperpackage export entry inSource/package.json.
Fixed
- Repaired malformed JSX/TypeScript structure in
CommandStepper.stories.tsxso the Source build compiles cleanly.
Release v1.7.0
No release notes
Release v1.6.9
Any component accepting an icon as a string should also accept a ReactNode — enabling SVG components, third-party icon libraries, or arbitrary elements as icons without workarounds.
Added
Icontype (string | ReactNode) inCommon/Icon.tsx— shared union type for all icon propsIconDisplaycomponent inCommon/Icon.tsx— renders a CSS class string as<i className={...} />or passes aReactNodethrough directly; exported from@cratis/components/Common- Storybook stories for
IconDisplaycovering string icon, string with extra class, SVG ReactNode, arbitrary ReactNode, and a side-by-side comparison (Common/Icon.stories.tsx) WithReactNodeIconsStorybook story in the Toolbar demonstrating SVG icons inToolbarButtonandToolbarFanOutItemalongside existing string usageDocumentation/Common/icon.md— covers theIcontype,IconDisplayprops, and ReactNode usage examples
Changed
ToolbarButton.iconwidened fromstringtoIconToolbarFanOutItem.iconwidened fromstringtoIconDocumentation/Common/index.mdandtoc.ymlupdated to include the newIconpageDocumentation/Toolbar/basic-usage.mdupdated with a ReactNode icons section and cross-referenceDocumentation/Toolbar/fan-out.mdupdated with a ReactNode icons section and cross-reference
Usage example — both forms work interchangeably:
// String (PrimeIcons) — existing usage unchanged
<ToolbarButton icon="pi pi-pencil" tooltip="Draw" />
// ReactNode — now supported
<ToolbarButton icon={<FaPencil />} tooltip="Draw" />
<ToolbarFanOutItem icon={<MyCustomSvg />} tooltip="Shapes">...</ToolbarFanOutItem>Release v1.6.8
Fixed
- Upgrading all dependencies.
Release v1.6.7
Fixed
- Moving dependencies that could potentially cause version conflicts into
peerDependencies.
Release v1.6.6
No release notes
Release v1.6.5
No release notes
Release v1.6.4
No release notes
Release v1.6.3
No release notes
Release v1.6.2
Fixed
- Actually upgrading to Cratis Arc 20
