Skip to content

Releases: Cratis/Components

Release v1.7.1

19 Apr 15:45
701add3

Choose a tag to compare

Added

  • Added two new CommandStepper Storybook stories that render inside realistic dialog-style frames.

Changed

  • Exported CommandStepper from the root module exports.
  • Added a dedicated ./CommandStepper package export entry in Source/package.json.

Fixed

  • Repaired malformed JSX/TypeScript structure in CommandStepper.stories.tsx so the Source build compiles cleanly.

Release v1.7.0

19 Apr 07:06

Choose a tag to compare

No release notes

Release v1.6.9

07 Apr 19:43
6211d52

Choose a tag to compare

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

  • Icon type (string | ReactNode) in Common/Icon.tsx — shared union type for all icon props
  • IconDisplay component in Common/Icon.tsx — renders a CSS class string as <i className={...} /> or passes a ReactNode through directly; exported from @cratis/components/Common
  • Storybook stories for IconDisplay covering string icon, string with extra class, SVG ReactNode, arbitrary ReactNode, and a side-by-side comparison (Common/Icon.stories.tsx)
  • WithReactNodeIcons Storybook story in the Toolbar demonstrating SVG icons in ToolbarButton and ToolbarFanOutItem alongside existing string usage
  • Documentation/Common/icon.md — covers the Icon type, IconDisplay props, and ReactNode usage examples

Changed

  • ToolbarButton.icon widened from string to Icon
  • ToolbarFanOutItem.icon widened from string to Icon
  • Documentation/Common/index.md and toc.yml updated to include the new Icon page
  • Documentation/Toolbar/basic-usage.md updated with a ReactNode icons section and cross-reference
  • Documentation/Toolbar/fan-out.md updated 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>

WithReactNodeIcons Storybook story

Release v1.6.8

07 Apr 08:57
1dab031

Choose a tag to compare

Fixed

  • Upgrading all dependencies.

Release v1.6.7

27 Mar 13:29
5c22167

Choose a tag to compare

Fixed

  • Moving dependencies that could potentially cause version conflicts into peerDependencies.

Release v1.6.6

27 Mar 09:35

Choose a tag to compare

No release notes

Release v1.6.5

27 Mar 06:59

Choose a tag to compare

No release notes

Release v1.6.4

27 Mar 06:46

Choose a tag to compare

No release notes

Release v1.6.3

26 Mar 20:29

Choose a tag to compare

No release notes

Release v1.6.2

26 Mar 17:56
60520ba

Choose a tag to compare

Fixed

  • Actually upgrading to Cratis Arc 20