# @repobuddy/storybook

## 2.35.0

### Minor Changes

- [#890](https://github.com/repobuddy/storybook/pull/890) [`842665c`](https://github.com/repobuddy/storybook/commit/842665c7c38e2798356c02eee200ad158e4ca318) Thanks [@unional](https://github.com/unional)! - Support Storybook 11. The `storybook`, `@storybook/addon-docs`, and `@storybook/react-vite` peer dependency ranges are now `^10.5.10 || ^11.0.0-alpha.1`, so Storybook 10 stays supported. The optional `storybook-addon-tag-badges` peer range is now `^3.0.2 || ^4.0.0`: use v3 with Storybook 10 and v4 with Storybook 11. The optional `@storybook-community/storybook-dark-mode` peer range is now `^7.1.3 || ^8.0.0`: use v7 with Storybook 10 and v8 with Storybook 11. No API changed: the package uses no API that Storybook 11 removed.

## 2.34.1

### Patch Changes

- [#857](https://github.com/repobuddy/storybook/pull/857) [`526ca0f`](https://github.com/repobuddy/storybook/commit/526ca0f9bcea3090e4188547fb3f27ff18fd0303) Thanks [@unional](https://github.com/unional)! - Include `CHANGELOG.md` in the published package.

## 2.34.0

### Minor Changes

- [`a8bc4af`](https://github.com/repobuddy/storybook/commit/a8bc4af160377c58a4b392d9478194574691d09c) Thanks [@unional](https://github.com/unional)! - Add `SourceCode` and `SourceCodeCard` components to display highlighted source code that follows the Storybook dark mode.

## 2.33.5

### Patch Changes

- [#825](https://github.com/repobuddy/storybook/pull/825) [`a5ca1b7`](https://github.com/repobuddy/storybook/commit/a5ca1b7db926dd2857bc81fed47443fea68b30ae) Thanks [@unional](https://github.com/unional)! - Update `type-plus` to 8.0.0, `@just-web/css` to 0.9.0, and `@repobuddy/test` to 1.1.2.

## 2.33.4

### Patch Changes

- [#789](https://github.com/repobuddy/storybook/pull/789) [`a371c7a`](https://github.com/repobuddy/storybook/commit/a371c7a210f1472da8b2267ec76358f93ee6605c) Thanks [@unional](https://github.com/unional)! - Build and test against Storybook 10.6.1. The peer dependency range is unchanged (`^10.5.10`), so Storybook 10.5 and 10.6 are both supported.

## 2.33.3

### Patch Changes

- [#785](https://github.com/repobuddy/storybook/pull/785) [`1b488f3`](https://github.com/repobuddy/storybook/commit/1b488f36ba0c5f3dc3b294778c0db894687a5c16) Thanks [@unional](https://github.com/unional)! - Declare `@storybook/react-vite` as an optional peer dependency.
  
  The published type declarations import from `@storybook/react-vite`, so pnpm now links the consumer's copy instead of letting TypeScript resolve another installed copy (fixes TS2322 and TS2883 in consumers).

## 2.33.2

### Patch Changes

- [#781](https://github.com/repobuddy/storybook/pull/781) [`79301be`](https://github.com/repobuddy/storybook/commit/79301be7e0f70ba12eb082ab6a922dca0a3b60ba) Thanks [@unional](https://github.com/unional)! - Update `type-plus` to `8.0.0-beta.12`, `@just-web/css` to `^0.8.7`, and `@repobuddy/test` to `^1.1.0`.

## 2.33.1

### Patch Changes

- [#775](https://github.com/repobuddy/storybook/pull/775) [`ec459fc`](https://github.com/repobuddy/storybook/commit/ec459fcba98fe51de0badb0e08f63077979b2a1d) Thanks [@unional](https://github.com/unional)! - Pin `type-plus` to the exact version `8.0.0-beta.10`.
  
  The package was already on `^8.0.0-beta.10`, so type-plus 8's `typescript >= 5.6.0`
  peer already reaches consumers today and tightening the caret does not change what
  a fresh install resolves. `^8.0.0-beta.10` resolves to `>=8.0.0-beta.10 <9.0.0-0`,
  which admits every later 8.0.0 prerelease plus the eventual `8.0.0` and `8.1.0` —
  and 8 is a prerelease line where breaking changes have landed between betas (e.g.
  `beta.10` -> `beta.11` changed `Equal`'s signature and removed `isType.f`). Pinning
  the exact version makes each future bump a reviewable PR instead of something a
  lockfile refresh can do silently.

## 2.33.0

### Minor Changes

- [#740](https://github.com/repobuddy/storybook/pull/740) [`5154ece`](https://github.com/repobuddy/storybook/commit/5154ece04d405c4da0ab2877eca32df8abc6fdc9) Thanks [@unional](https://github.com/unional)! - Add `explore` tag and `exploreBadge` (🔭) for stories that help users explore component behavior and configurations.

- [#759](https://github.com/repobuddy/storybook/pull/759) [`1cda02f`](https://github.com/repobuddy/storybook/commit/1cda02fe5c8109e3c7be8b46bd1271dccbe0136e) Thanks [@unional](https://github.com/unional)! - Add `known-issue` tag and `knownIssueBadge` (🩹) for stories that document a known, accepted issue and are expected to fail tests.

## 2.32.3

### Patch Changes

- [#752](https://github.com/repobuddy/storybook/pull/752) [`b518cc4`](https://github.com/repobuddy/storybook/commit/b518cc4b17a80f53175dcf57483446fb95bfc25c) Thanks [@unional](https://github.com/unional)! - Depend on `type-plus` as a range on the 8.x line, `^8.0.0-beta.10`, instead of the stable `^7.6.2`.
  
  This package belongs on the type-plus 8.x line. The real defect in the earlier manifest was not the line but the *exact* pin `8.0.0-beta.8`, which could never resolve forward — and `8.0.0-beta.8` ships `"type": "module"` with a `cjs/` build that lacks a `{"type":"commonjs"}` marker, so `require()` of it failed with `ReferenceError: exports is not defined in ES module scope`. Upstream fixed that in `8.0.0-beta.10`.
  
  `^8.0.0-beta.10` resolves to `>=8.0.0-beta.10 <9.0.0-0`, so the CJS fix and every later 8.x release — betas and the eventual stable — flow in without another manifest change.
  
  The two local type aliases stay as they are: `Properties` (used by `FnToArgTypes`) and `IsStringLiteral` (used by `ExtendsMeta` and `ExtendsStoryObj`) remain declared in this package rather than re-exported from `type-plus`, so the published type surface is unchanged by this release.

## 2.32.2

### Patch Changes

- [#742](https://github.com/repobuddy/storybook/pull/742) [`29d73d0`](https://github.com/repobuddy/storybook/commit/29d73d092f0ca509e652274aad93fc29bd3e6bf3) Thanks [@unional](https://github.com/unional)! - Depend on the stable `type-plus@^7.6.2` instead of the prerelease `type-plus@8.0.0-beta.8`.
  
  `type-plus@latest` is `7.6.2`; the 8.x line is an unfinished major parked in changesets prerelease mode. Pinning an exact beta pushed that prerelease into the tree of every repo that consumes `@repobuddy/storybook`. `@just-web/css` moves to `^0.8.4` for the same reason — `0.8.3` pinned `type-plus@8.0.0-beta.7` transitively.
  
  Two type-level helpers that only exist in the 8.x line are now declared locally rather than imported, so the published types keep their current meaning:
  
  - `IsStringLiteral`, used by `ExtendsMeta` and `ExtendsStoryObj`, has no counterpart in 7.6.2.
  - `Properties`, used by `FnToArgTypes`, widens `unknown` to `{}` in 7.6.2; the local copy keeps the `any`/`unknown` passthrough 8.x added.
  
  All emitted JavaScript is byte-identical. The only change to the emitted `.d.ts` files is that those two aliases are now inlined instead of imported from `type-plus` — which also fixes the published types, since they previously imported `IsStringLiteral` from a `type-plus` version that no consumer would have installed.

## 2.32.1

### Patch Changes

- [`9675970`](https://github.com/repobuddy/storybook/commit/9675970f32974c2e744b3ed9a611bbb4b3f002cf) Thanks [@unional](https://github.com/unional)! - Stop forcing a transparent card background in the `showSource` decorator when displaying the original source.
  It causes a11y issues due to insufficient contrast depending on the background color used by the user.

## 2.32.0

### Minor Changes

- [#730](https://github.com/repobuddy/storybook/pull/730) [`14ab083`](https://github.com/repobuddy/storybook/commit/14ab0837a731537063781fba324f2e91b461e30f) Thanks [@unional](https://github.com/unional)! - Raise the `storybook` and `@storybook/addon-docs` peer ranges to `^10.5.10`, and `@storybook-community/storybook-dark-mode` to `^7.1.3`.

### Patch Changes

- [#730](https://github.com/repobuddy/storybook/pull/730) [`7eb5c6a`](https://github.com/repobuddy/storybook/commit/7eb5c6a8b03ea8d4941aba22c5e1e6c16cc9c469) Thanks [@unional](https://github.com/unional)! - Fix `createDarkModeDocsContainer` rendering the dark theme on first paint regardless of the active mode. It now seeds from the mode `@storybook-community/storybook-dark-mode` persisted, falling back to `prefers-color-scheme`, instead of waiting for the first `DARK_MODE` event.

## 2.31.0

### Minor Changes

- [#699](https://github.com/repobuddy/storybook/pull/699) [`9e17304`](https://github.com/repobuddy/storybook/commit/9e17304983ffa6c6f5ed25cac90dbdf2ec831f2e) Thanks [@unional](https://github.com/unional)! - Add `experiment` tag and `experimentBadge` (🔬) for stories covering features in early-stage experimentation.

## 2.30.2

### Patch Changes

- [`056cce3`](https://github.com/repobuddy/storybook/commit/056cce3019b9eb107a51a8de20842f593cc4f35f) Thanks [@unional](https://github.com/unional)! - fix `withStoryCard`: changing Storybook controls now triggers a rerender.

  Previously the memoization chain inside `StoryCardScope`/`StoryCardCollector` held stable references across control changes, so `<Story />` was never re-called and the canvas did not update. The decorator now threads the current story `args` object through as a prop; because Storybook creates a new `args` object on every control change, the reference-equality check in `entryPropsEqual` fails and the memoization is correctly invalidated.

## 2.30.1

### Patch Changes

- [`f55f513`](https://github.com/repobuddy/storybook/commit/f55f5138c1bd4f4dcea3d4367690d0e129b573be) Thanks [@unional](https://github.com/unional)! - remove `createStorySort` from public exports.

  `createStorySort` has been removed. It does not work.

  Storybook performs static AST analysis on the `storySort` value and rejects function-call results or variable references — it must be a self-contained inline function literal.

  Copy the inline `storySort` implementation directly into your `.storybook/preview.ts` instead.

## 2.30.0

### Minor Changes

- [#656](https://github.com/repobuddy/storybook/pull/656) [`31ea5b2`](https://github.com/repobuddy/storybook/commit/31ea5b21561da9f10579a978e7aa88839bc92865) Thanks [@unional](https://github.com/unional)! - Add `sortStoryWithTag` for sorting stories by title hierarchy and tag priority.

## 2.29.0

### Minor Changes

- [`aec3cf3`](https://github.com/repobuddy/storybook/commit/aec3cf308c8b61db6fa7994f0d1a312a57629242) Thanks [@unional](https://github.com/unional)! - Add `language` option to `showSource` decorator to allow explicitly specifying the syntax highlighting language for the source code display.

## 2.28.1

### Patch Changes

- [`2d7d275`](https://github.com/repobuddy/storybook/commit/2d7d275139b52a7ff5437fb31310c9ddfeb455ee) Thanks [@unional](https://github.com/unional)! - Declare optional `react` and `storybook` peer dependencies, mark `@storybook/addon-docs` as optional, and widen its range to `^10.2.4` for better compatibility with Storybook 10.2.x hosts.

## 2.28.0

### Minor Changes

- [`27d3c21`](https://github.com/repobuddy/storybook/commit/27d3c218174eefdabc8916c8f186cc90746cf8b9) Thanks [@unional](https://github.com/unional)! - Add `bug` tag and `bugBadge` for stories that document or reproduce a known bug

### Patch Changes

- [#541](https://github.com/repobuddy/storybook/pull/541) [`a853db7`](https://github.com/repobuddy/storybook/commit/a853db729fb60d6f2bbd336af09d2719a6ddf7f8) Thanks [@unional](https://github.com/unional)! - Fix `sourceBadge` from showing in document

- [#546](https://github.com/repobuddy/storybook/pull/546) [`6eef43c`](https://github.com/repobuddy/storybook/commit/6eef43c5dca270f20b60ed366bbef11fc7a7597b) Thanks [@unional](https://github.com/unional)! - Update type, class, function, and var badges to display in sidebar for both component and story entries

## 2.27.0

### Minor Changes

- [`508aafd`](https://github.com/repobuddy/storybook/commit/508aafd54a18594fe292409989597494aa8bdde1) Thanks [@unional](https://github.com/unional)! - Add `class` tag and `classBadge` for stories that showcase or document classes. Displays 🔷 in the sidebar.

### Patch Changes

- [`ab33ab8`](https://github.com/repobuddy/storybook/commit/ab33ab8f0bd09c6a1c242920673a9174a127c982) Thanks [@unional](https://github.com/unional)! - Increase the priority of `propsBadge` above `typeBadge` and `functionBadge` in the sidebar.

## 2.26.0

### Minor Changes

- [`5897002`](https://github.com/repobuddy/storybook/commit/5897002587a5e01c9223c346b6b9a4232498221b) Thanks [@unional](https://github.com/unional)! - Add `a11yBadge` for the `a11y` tag. Use `tags: ['a11y']` to mark stories that demonstrate or test accessibility. The badge displays ♿ with an "Accessibility" tooltip in the Storybook sidebar.

## 2.25.0

### Minor Changes

- [`f5cdb20`](https://github.com/repobuddy/storybook/commit/f5cdb203d316649881c10b7ce470df8e054bf822) Thanks [@unional](https://github.com/unional)! - Add `specBadge` for the `spec` tag. Use `tags: ['spec']` to mark stories that serve as the specification of the component or code. The badge displays 📜 with a "Specification" tooltip in the Storybook sidebar.

## 2.24.0

### Minor Changes

- [`330db7d`](https://github.com/repobuddy/storybook/commit/330db7d6b99ba36032091fb055957a05349dd42d) Thanks [@unional](https://github.com/unional)! - Add `playgroundBadge` for the `playground` tag. Use `tags: ['playground']` to mark high-quality interactive stories where users can explore and interact with the component. The badge displays ▶️ with a "Playground" tooltip in the Storybook sidebar.

## 2.23.1

### Patch Changes

- [`419cfae`](https://github.com/repobuddy/storybook/commit/419cfae8895724b919f49f91215ebb77b668374d) Thanks [@unional](https://github.com/unional)! - Update `tailwindcss` to 4.2.1 and change it to direct dependency.
  This is needed to support composing Tailwind config using `@repobuddy/storybook/tailwind.css`.

## 2.23.0

### Minor Changes

- [`233aa64`](https://github.com/repobuddy/storybook/commit/233aa64a034f71d3912cb07d8d19079e418628db) Thanks [@unional](https://github.com/unional)! - Add `data-testid` support to `StoryCard`, `showSource` decorator, and `withStoryCard` decorator.

## 2.22.0

### Minor Changes

- [`49e424f`](https://github.com/repobuddy/storybook/commit/49e424f3add4167373040289a1923cf55919bc84) Thanks [@unional](https://github.com/unional)! - Add `perf` tag and `perfBadge` for stories that demonstrate or test performance. The badge displays ⚡ with a "Performance" tooltip in the Storybook sidebar.

- [`6f278ff`](https://github.com/repobuddy/storybook/commit/6f278ff1f9a2af3b99ab3d37ae8705ae3a9c8206) Thanks [@unional](https://github.com/unional)! - Add `showSource` decorator for displaying story source above or below the rendered story. Deprecate `showDocSource` in favor of `showSource({ placement: 'after' })`.

## 2.21.1

### Patch Changes

- [`a36bcf5`](https://github.com/repobuddy/storybook/commit/a36bcf54ac1012a949591f8b81b7c2edf003e47e) Thanks [@unional](https://github.com/unional)! - Optimize story card scope rendering with memoized components

  Add `StoryCardList` and `StableScopeChildren` memoized components to prevent cascade re-renders when registry state updates. Fix `StoryCardCollector` to compare all relevant props (not just Story reference) for proper memoization. Remove unnecessary `useMemo` from decorator.

## 2.21.0

### Minor Changes

- [`62d0ff1`](https://github.com/repobuddy/storybook/commit/62d0ff187cc869b3028ddb26441c90a2eaab5d76) Thanks [@unional](https://github.com/unional)! - Add `update` to story card registry context and stabilize decorator scope props

  - Story card registry context now exposes `update(id, card)` for in-place card updates
  - Story card scope uses update instead of remove+add when entry props change, reducing re-mount churn
  - `showDocSource` and `withStoryCard` memoize scope props for stable references

  Skip `withStoryCard` when running in tests

### Patch Changes

- [`e946d7f`](https://github.com/repobuddy/storybook/commit/e946d7f516c894821eb7771c68f0b87bd5df8b9b) Thanks [@unional](https://github.com/unional)! - Improve StoryCardScope and StoryCard performance with memoization to reduce re-renders during card registration and container updates.

- [`b22433d`](https://github.com/repobuddy/storybook/commit/b22433d7b87fa140721133808849eb00ac0abdb8) Thanks [@unional](https://github.com/unional)! - Remove default flex layout classes from StoryCard base styles

## 2.20.1

### Patch Changes

- [`e2c8703`](https://github.com/repobuddy/storybook/commit/e2c8703cff3757bf371d651c2db7ffe183c8be8f) Thanks [@unional](https://github.com/unional)! - Update badge sidebar display

## 2.20.0

### Minor Changes

- [`54131c1`](https://github.com/repobuddy/storybook/commit/54131c1110918635c827fb56a0e5c01d5a6f65c5) Thanks [@unional](https://github.com/unional)! - Allow `showDocSource` decorator `source` option to be a function that receives the story's original source and returns the code to display.

### Patch Changes

- [`94aeea6`](https://github.com/repobuddy/storybook/commit/94aeea69bcafea6aaf622a22f5ce6b3a263387a5) Thanks [@unional](https://github.com/unional)! - Add `@types/react` as peer deps

## 2.19.1

### Patch Changes

- [#434](https://github.com/repobuddy/storybook/pull/434) [`bd9771e`](https://github.com/repobuddy/storybook/commit/bd9771e07ad658184575ad9564c4296269ab4c0e) Thanks [@unional](https://github.com/unional)! - Fix `FnToArgTypes` type to support variadic functions.

## 2.19.0

### Minor Changes

- [`b440c08`](https://github.com/repobuddy/storybook/commit/b440c087a3df50e24e8750defe945ea1c50ddab8) Thanks [@unional](https://github.com/unional)! - Add example badge to storybook-addon-tag-badges

  - Add `exampleBadge` for the `example` tag (✨ with "Example" tooltip)

- [`836debd`](https://github.com/repobuddy/storybook/commit/836debd18666cb31cb2f746569c308c6d28128e2) Thanks [@unional](https://github.com/unional)! - Add remove badge to storybook-addon-tag-badges

  - Add `removeBadge` (☠️) for features/components scheduled for removal in a future version
  - Tag format: `remove`, `remove:next` (equivalent), or `remove:<version>` (e.g. `remove:2`) with single version number
  - Badge displays "☠️ v2" for version or "☠️" for next

- [`57ca9ee`](https://github.com/repobuddy/storybook/commit/57ca9eefe7ebf1f3fa6dcc2ba19fa72198bf3e6e) Thanks [@unional](https://github.com/unional)! - Add alpha and rc badges; use red/yellow/blue for stability stages

  - Add `alphaBadge` for the `alpha` tag (🔴 with "Alpha" tooltip)
  - Add `rcBadge` for the `rc` tag (🔵 with "Release Candidate" tooltip)
  - Change `betaBadge` from 🌱 to 🟡 for consistent red/yellow/blue staging

### Patch Changes

- [`555555e`](https://github.com/repobuddy/storybook/commit/555555e11bc74cc348d543280341f8cf67d31b9f) Thanks [@unional](https://github.com/unional)! - Change deprecated badge to use trashcan emoji

  - Replace gravestone (🪦) with trashcan (🗑️) for `deprecatedBadge`

- [`e6c9ddd`](https://github.com/repobuddy/storybook/commit/e6c9ddd0dc55132aed35cf0b2f77df05161ea023) Thanks [@unional](https://github.com/unional)! - Add missing tags to TagNames type

  - Add `autodocs` (Storybook built-in tag used in stories)

## 2.18.1

### Patch Changes

- [`5f63d09`](https://github.com/repobuddy/storybook/commit/5f63d09a455ad3d3e681edf5f5958643f3902d9b) Thanks [@unional](https://github.com/unional)! - Update JSDoc and readme to reflect tagBadges order (first match wins)

## 2.18.0

### Minor Changes

- [`24e9234`](https://github.com/repobuddy/storybook/commit/24e92346bd6c6b2353e98b5eda9241c17907876b) Thanks [@unional](https://github.com/unional)! - Add negation-style tag names to tag badges addon

  Extend the `TagNames` type with `!test`, `!type`, `!func`, `!var`, and `!snapshot` for use in Storybook stories.

- [`49679a2`](https://github.com/repobuddy/storybook/commit/49679a2478b96cd5b54b8e04141ce3c44fa762b4) Thanks [@unional](https://github.com/unional)! - Add use-case tag badge and stories

  - Add `useCaseBadge` (🎯) for stories tagged with `use-case`
  - Add `use_case_badge.stories.tsx` demonstrating the badge

### Patch Changes

- [`66713ea`](https://github.com/repobuddy/storybook/commit/66713eaeee4b545ddcc41afc6856a97c08afe331) Thanks [@unional](https://github.com/unional)! - Update beta tag badge emoji to seedling

  Change the beta badge from 🅱️ to 🌱 for stories covering features in beta.

## 2.17.0

### Minor Changes

- [`e7d7eaa`](https://github.com/repobuddy/storybook/commit/e7d7eaa03ac89d8525415ea9f54267c47feffcd7) Thanks [@unional](https://github.com/unional)! - Add `use-case` tag completion.
  `usecase` is a typo and should be removed.

## 2.16.0

### Minor Changes

- [`ea7ef0d`](https://github.com/repobuddy/storybook/commit/ea7ef0de37208f258388dad12dd1d354bcfdafdc) Thanks [@unional](https://github.com/unional)! - Add function and var tag badges to storybook-addon-tag-badges.

  - **functionBadge** (`func`): Badge displays `ƒ(x)` for stories that showcase or document functions; hidden in MDX.
  - **varBadge** (`var`): Badge displays `var` for stories that describe values and variables.
  - **typeBadge**: Now shown in MDX (`display.mdx: true`).
  - **tagBadges**: Reordered and doc comment updated to list all badges.

## 2.15.0

### Minor Changes

- [`e86ea79`](https://github.com/repobuddy/storybook/commit/e86ea796f15001663ddae2c38f70e3caac0d115e) Thanks [@unional](https://github.com/unional)! - Add type badge to storybook-addon-tag-badges for stories that showcase or document TypeScript types. The badge displays `<T>` in the sidebar and is hidden in MDX docs.

## 2.14.0

### Minor Changes

- [`fcee5b1`](https://github.com/repobuddy/storybook/commit/fcee5b178eb96c91747317e5b480ba588b47d53b) Thanks [@unional](https://github.com/unional)! - Add `appearance` prop to StoryCard and story card APIs; deprecate `status`.

  - **StoryCard**: New `appearance` prop with variants `error`, `warn`, `info`, `source`, and `output`. The `status` prop is deprecated in favor of `appearance` but remains supported.
  - **withStoryCard** and **StoryCardParam**: Support `appearance`; `status` is deprecated.
  - **className** function state: Now receives `appearance` (and `status` for backward compatibility). Prefer `appearance` in new code.

## 2.13.0

### Minor Changes

- [`4b655ca`](https://github.com/repobuddy/storybook/commit/4b655ca0f19c5f2cc0ca4f42daaac80baa6fe24a) Thanks [@unional](https://github.com/unional)! - Add source badge to storybook-addon-tag-badges.

  - Export `sourceBadge` tag badge parameter for the `source` tag (displays `</>` with "Source Code" tooltip, hidden in MDX).

### Patch Changes

- [`4321270`](https://github.com/repobuddy/storybook/commit/43212700cfd082f6566806a78eb8dd13d618b1b7) Thanks [@unional](https://github.com/unional)! - Add missing type for source badge.

## 2.12.0

### Minor Changes

- [`2daf00b`](https://github.com/repobuddy/storybook/commit/2daf00b92ca8a4a23275de762fc60fa4bf7a965c) Thanks [@unional](https://github.com/unional)! - Add `placement` option to `showDocSource` decorator to display source code above or below the story

  - **showDocSource**: New optional `placement?: 'before' | 'after'` (default `'after'`) to control whether the source code card is rendered above or below the story.

### Patch Changes

- [`42dd3ed`](https://github.com/repobuddy/storybook/commit/42dd3edef4a98c19cfd656bd3fa5190342847461) Thanks [@unional](https://github.com/unional)! - Show unit badge in sidebar and reorder tag badges (versionBadge before internal/snapshot).

## 2.11.0

### Minor Changes

- [`85c43e0`](https://github.com/repobuddy/storybook/commit/85c43e00dc11d0ff363d35e39836c7bed32cf3de) Thanks [@unional](https://github.com/unional)! - Add `@repobuddy/storybook/tailwind.css` export and document Tailwind style composition.

  - Export `./tailwind.css` for projects that build their own stylesheet.
  - Update readme with Styling section: how to use `tailwind.css`.

## 2.10.0

### Minor Changes

- [`f9f468d`](https://github.com/repobuddy/storybook/commit/f9f468d4e0659298a5a80160d822ed29306f3fe5) Thanks [@unional](https://github.com/unional)! - Provide tailwind style compsition support.

## 2.9.1

### Patch Changes

- [`78149f4`](https://github.com/repobuddy/storybook/commit/78149f4f9b33688ac298bdc7b9fa93a96a20f8aa) Thanks [@unional](https://github.com/unional)! - fix name of `defineStoryCardParam`

## 2.9.0

### Minor Changes

- [`152a10c`](https://github.com/repobuddy/storybook/commit/152a10c9210b072bd34f0ec6466731aae222ea61) Thanks [@unional](https://github.com/unional)! - Add `defineStoryCard` parameter function to configure story cards via story parameters.

  The `withStoryCard` decorator now supports reading configuration from story parameters using `defineStoryCard`, allowing story card configuration to be defined in the `parameters` object instead of only in decorator props.

## 2.8.0

### Minor Changes

- [`b1b5c5b`](https://github.com/repobuddy/storybook/commit/b1b5c5b6f1bdd4ec16d06005cdae307958c08526) Thanks [@unional](https://github.com/unional)! - Export `StoryCard`.

## 2.7.0

### Minor Changes

- [`6c6435b`](https://github.com/repobuddy/storybook/commit/6c6435b7202b73abb4126f5c61472f51d7c4ea74) Thanks [@unional](https://github.com/unional)! - Add `source` option to `showDocSource` decorator

  When provided, the decorator shows the given source string instead of `docs.source.code` or the story's original source. This allows callers to override the displayed code explicitly.

## 2.6.0

### Minor Changes

- [#378](https://github.com/repobuddy/storybook/pull/378) [`bdad2c4`](https://github.com/repobuddy/storybook/commit/bdad2c40db1bb97c271e033077383591c5a6a9eb) Thanks [@unional](https://github.com/unional)! - Add `FnToArgTypes` type utility to convert a function's parameter types to Storybook Args type.

## 2.5.0

### Minor Changes

- [`afaccdf`](https://github.com/repobuddy/storybook/commit/afaccdfeba5bd7a04d27780f2face6c3be8d5aa2) Thanks [@unional](https://github.com/unional)! - Add Tailwind CSS prefix system and enhance `showDocSource` decorator.

  - Add `rbsb:` prefix to all Tailwind classes to avoid conflicts with user styles
  - Add `className` option to `showDocSource` decorator for custom styling
  - Update `StoryCard` component to use the new prefix system

## 2.4.0

### Minor Changes

- [#360](https://github.com/repobuddy/storybook/pull/360) [`4b3a90d`](https://github.com/repobuddy/storybook/commit/4b3a90dcdb96c116e8094993c54203e672936965) Thanks [@unional](https://github.com/unional)! - Enhance `showDocSource` decorator.
  Add `showOriginalSource` option to `showDocSource` decorator to display original source code in a card.

- [#360](https://github.com/repobuddy/storybook/pull/360) [`f03cfe8`](https://github.com/repobuddy/storybook/commit/f03cfe80f879a797af43b59776dacd6712026211) Thanks [@unional](https://github.com/unional)! - Add `version:next` tag to tag badges configuration

## 2.3.0

### Minor Changes

- [#324](https://github.com/repobuddy/storybook/pull/324) [`a12377d`](https://github.com/repobuddy/storybook/commit/a12377d68a3c66bf2d9058c98ff8fdf568050011) Thanks [@unional](https://github.com/unional)! - Add `ExtendsStoryObj`, deprecate `ExtendStoryObj`.

  `ExtendsStoryObj` simplify type params, and improve extending `tags` if the extending `StoryObj` has predefined tag literals.

- [#324](https://github.com/repobuddy/storybook/pull/324) [`5d3b312`](https://github.com/repobuddy/storybook/commit/5d3b312e3a7f464391f64717216cad7b74002e22) Thanks [@unional](https://github.com/unional)! - Add `ExtendsMeta`, deprecate `ExtendMeta`.

  `ExtendsMeta` simplify type params, and improve extending `tags` if the extending `Meta` has predefined tag literals.

## 2.2.2

### Patch Changes

- [`b9e3883`](https://github.com/repobuddy/storybook/commit/b9e38834977c72b89cfd4003731b96f74c4e523d) Thanks [@unional](https://github.com/unional)! - fix `withStoryCard({ className: ({ status, defaultClassName }) => string })` to treat returning string as the final className string instead of merging with the `defaultClassName`.

  Remove `undefined` from the `status` type in the function. The `status` defaults to `info` so it will never be `undefined`.

## 2.2.1

### Patch Changes

- [`8f74138`](https://github.com/repobuddy/storybook/commit/8f7413890fd367996089ba5aa218a6c9db4d41c0) Thanks [@unional](https://github.com/unional)! - Add fallback for `crypto.randomUUID()`

## 2.2.0

### Minor Changes

- [`d2eff3b`](https://github.com/repobuddy/storybook/commit/d2eff3b2780ea3c3edd1d159f029a0167adf6035) Thanks [@unional](https://github.com/unional)! - Add `withStoryCard`

- [`677d72e`](https://github.com/repobuddy/storybook/commit/677d72e095fb81e653e914a1b6a9d2386c7c230b) Thanks [@unional](https://github.com/unional)! - Add `usecase` tag name literal.
  It does not have an associated badge, as that will make the side bar too busy.

## 2.1.2

### Patch Changes

- [`0de3ad5`](https://github.com/repobuddy/storybook/commit/0de3ad54b787ede457404ad113176c8c814197a4) Thanks [@unional](https://github.com/unional)! - Add `@storybook/addon-docs` as peer deps

## 2.1.1

### Patch Changes

- [`30176cc`](https://github.com/repobuddy/storybook/commit/30176cc3cfb7ed9917c0f9000b58c207d0afa3ec) Thanks [@unional](https://github.com/unional)! - External `react/jsx-runtime`.

## 2.1.0

### Minor Changes

- [#249](https://github.com/repobuddy/storybook/pull/249) [`4ee38b2`](https://github.com/repobuddy/storybook/commit/4ee38b270ca094940b149809b220180f205835a3) Thanks [@unional](https://github.com/unional)! - Convert to use `tsdown` instead of `unbuild`.
  `unbuild` leads to `React not found` error.

## 2.0.1

### Patch Changes

- [#242](https://github.com/repobuddy/storybook/pull/242) [`4453f23`](https://github.com/repobuddy/storybook/commit/4453f23127d2c70b4b482fc688d1f4d1cbc031c3) Thanks [@unional](https://github.com/unional)! - Fix import paths.

## 2.0.0

### Major Changes

- [#232](https://github.com/repobuddy/storybook/pull/232) [`1c20a4a`](https://github.com/repobuddy/storybook/commit/1c20a4a45a36a0611dcd1eed65fe0064575802f7) Thanks [@unional](https://github.com/unional)! - Update to support Storybook 10, `storybook-addon-tag-badges` v3, and `@storybook-community/storybook-dark-mode` v7.

### Minor Changes

- [#174](https://github.com/repobuddy/storybook/pull/174) [`9cbce4e`](https://github.com/repobuddy/storybook/commit/9cbce4e7c90c31b138c7ac3c49d5ec2b93cb7800) Thanks [@unional](https://github.com/unional)! - Replace `storybook-dark-mode2` with its successor `@storybook-community/storybook-dark-mode`.

- [#100](https://github.com/repobuddy/storybook/pull/100) [`d48b633`](https://github.com/repobuddy/storybook/commit/d48b63307b639e34c29587203e05e99d1ad3a1a4) Thanks [@unional](https://github.com/unional)! - Add `ExtendMeta` and `ExtendStoryObj`.

- [`e548eeb`](https://github.com/repobuddy/storybook/commit/e548eebed9d9aae6716b1c22826ba4bc01894822) - Remove `JSX.Element` support from `docs.description.story` and `docs.description.component` properties in `DocsParam` interface.

  Storybook does not support that when the story is rendered in the docs.

## 1.0.1

### Patch Changes

- [`ba1279d`](https://github.com/repobuddy/storybook/commit/ba1279d45c9640a76a42ab5868aba53a986ba7b1) Thanks [@unional](https://github.com/unional)! - Remove class manipulation for dark mode in `withDarkMode()`.
  It interferes with the class manipulation during `beforeEach` in `vitest.setup.ts`.

  Technically style manipulation has the same problem.
  Will address that in `storybook-dark-mode2` or in a future PR.

## 1.0.0

### Major Changes

- [`ccf3f20`](https://github.com/repobuddy/storybook/commit/ccf3f2063c74c71f15c9654d42c9fab5df8f64cc) Thanks [@unional](https://github.com/unional)! - Bump major version for Storybook 9 support.

  This allows `0.x` to continue adding features and with potential breaking changes.

### Minor Changes

- [#84](https://github.com/repobuddy/storybook/pull/84) [`94bb608`](https://github.com/repobuddy/storybook/commit/94bb60805f78b4211bc7ae0d04acdfbd4b041ef6) Thanks [@unional](https://github.com/unional)! - Replace `storybook-dark-mode` with `@storybook-community/storybook-dark-mode` which supports Storybook 9.

- [#84](https://github.com/repobuddy/storybook/pull/84) [`b429dfc`](https://github.com/repobuddy/storybook/commit/b429dfcc6cd97ed06052b8c1b62f8c8c9ad03fb4) Thanks [@unional](https://github.com/unional)! - Add `codePanel` to `defineDocsParam`

### Patch Changes

- [`4d91d37`](https://github.com/repobuddy/storybook/commit/4d91d37d95356f907a80a39756f9edbb149fccbb) Thanks [@unional](https://github.com/unional)! - Add missing augmented `Meta` type.

## 0.16.1

### Patch Changes

- [`df010be`](https://github.com/repobuddy/storybook/commit/df010be29ff132f150b85fb8b7e4b0ec4b3625bd) Thanks [@unional](https://github.com/unional)! - Move `TagNames` out to its own type

## 0.16.0

### Minor Changes

- [#79](https://github.com/repobuddy/storybook/pull/79) [`bb439b6`](https://github.com/repobuddy/storybook/commit/bb439b6a57687861fd86d8c4256938c882fb6a7b) Thanks [@unional](https://github.com/unional)! - Add augmented `StoryObj` withe better `tags` support.

## 0.15.0

### Minor Changes

- [`7f414f9`](https://github.com/repobuddy/storybook/commit/7f414f9cdf3a8b4b4e0597f01e946fdb1f4c79ee) Thanks [@unional](https://github.com/unional)! - Add `keyboardBadge`

## 0.14.0

### Minor Changes

- [#74](https://github.com/repobuddy/storybook/pull/74) [`a807ba3`](https://github.com/repobuddy/storybook/commit/a807ba345a3083933ae19791739e151440fd44df) Thanks [@unional](https://github.com/unional)! - Add `ShowHtml` component.

## 0.13.0

### Minor Changes

- [#69](https://github.com/repobuddy/storybook/pull/69) [`4686b79`](https://github.com/repobuddy/storybook/commit/4686b79085d2fc3f140fdf40529738cbfa3393f7) Thanks [@unional](https://github.com/unional)! - Add `internal` tag to hide stories from the sidebar during production build.

## 0.12.0

### Minor Changes

- [`d4d8127`](https://github.com/repobuddy/storybook/commit/d4d8127352b4d627b3327d6571d6b8957783a1c1) Thanks [@unional](https://github.com/unional)! - Add compose params support for `defineParameters()`.

## 0.11.3

### Patch Changes

- [`92c7ecd`](https://github.com/repobuddy/storybook/commit/92c7ecdf113fcb963d7f403500a5d4c22c613fa3) Thanks [@unional](https://github.com/unional)! - Allow `story` and `component` to be `JSX.Element` in `docs.description`.

## 0.11.2

### Patch Changes

- [`4165d96`](https://github.com/repobuddy/storybook/commit/4165d96095cd295a2f45172de55953c51f670196) Thanks [@unional](https://github.com/unional)! - Support multiple class names in `bodyClass` (i.e.: `bodyClass: 'class1 class2'`).

## 0.11.1

### Patch Changes

- [`2f6dd3c`](https://github.com/repobuddy/storybook/commit/2f6dd3c5b60c953fed60f6f1a2ff6163c19ff705) Thanks [@unional](https://github.com/unional)! - Add `dark` and `light` back to `DarkModeParam`.

## 0.11.0

### Minor Changes

- [`9e79310`](https://github.com/repobuddy/storybook/commit/9e79310daa04df40675d31d5425eace793f8323b) Thanks [@unional](https://github.com/unional)! - Add `propsBadge` to `tagBadges`.
  Rename `withStoryRoot` to `withDarMode`.
  Add `bodyClass` and `bodyStyle` to `withDarkMode`
  Use `darkMode` parameter in `withDarkMode`
  Add `darkStyle` and `lightStyle` to `DarkModeParam`

- [`0603417`](https://github.com/repobuddy/storybook/commit/0603417863f23c8317e62880dc5adefb6322ae82) Thanks [@unional](https://github.com/unional)! - Move `storybook-addon-tag-badges` export into `@repobuddy/storybook/storybook-addon-tag-badges` (breaking).

- [`415df7d`](https://github.com/repobuddy/storybook/commit/415df7df64cab8d95f7bc420b1379373d9ba927a) Thanks [@unional](https://github.com/unional)! - Hide `snapshot`, `unit`, and `integration` badges in the sidebar.

### Patch Changes

- [`b8a2fa6`](https://github.com/repobuddy/storybook/commit/b8a2fa632ce87c14903089c1a3a1c3f993db94e7) Thanks [@unional](https://github.com/unional)! - `createDarkModeDocsContainer` can specify only one theme.

## 0.10.0

### Minor Changes

- [#58](https://github.com/repobuddy/storybook/pull/58) [`3574cf5`](https://github.com/repobuddy/storybook/commit/3574cf57d44d005dd8302796dd9d5582a4d43b8f) Thanks [@unional](https://github.com/unional)! - Update `defineParameters` story to mention it cannot be used in `preview.ts`.
  Fix `storySort` to `options.storySort`.

  Remove `defineStorySort` as it cannot be used in `preview.ts`.

- [#58](https://github.com/repobuddy/storybook/pull/58) [`0c08476`](https://github.com/repobuddy/storybook/commit/0c0847643da6c1c03ce3021fdd4a50bf8af64dc2) Thanks [@unional](https://github.com/unional)! - Add `createDarkModeDocsContainer`, `defineDarkModeParam`.

- [#58](https://github.com/repobuddy/storybook/pull/58) [`3d73eaa`](https://github.com/repobuddy/storybook/commit/3d73eaac2e58d61e384dac845a164573cb9877e8) Thanks [@unional](https://github.com/unional)! - Add `withStoryRoot()`

### Patch Changes

- [#58](https://github.com/repobuddy/storybook/pull/58) [`6e96de2`](https://github.com/repobuddy/storybook/commit/6e96de253ad67e083efad09896cf879c4ea3c18f) Thanks [@unional](https://github.com/unional)! - Add `storybook-addon-tag-badges` as optional peer dependency.

## 0.9.4

### Patch Changes

- [`414b5d6`](https://github.com/repobuddy/storybook/commit/414b5d64857dd0522dbd034db6917629d3fe1ef3) - Adjusts badge priority.

## 0.9.3

### Patch Changes

- [`b046c09`](https://github.com/repobuddy/storybook/commit/b046c09f749d449c13e9a1491af905a48294f8a4) - Further limits the scope of the `editorBadge` to only show in story.
  Also lowers the priority of the `editorBadge`.

## 0.9.2

### Patch Changes

- [`0163a5c`](https://github.com/repobuddy/storybook/commit/0163a5ceb8bcbdbedf700430b60e52374d99e7a3) - Make emoji badges border transparent.

## 0.9.1

### Patch Changes

- [`2e5b345`](https://github.com/repobuddy/storybook/commit/2e5b34566273dec30bb448ee5ce2612949978c95) Thanks [@unional](https://github.com/unional)! - Narrow `snapshot` and `editor` display application.

## 0.9.0

### Minor Changes

- [#42](https://github.com/repobuddy/storybook/pull/42) [`a1fc0e4`](https://github.com/repobuddy/storybook/commit/a1fc0e42a65e5f2fcaed2f3413259812fc17badb) Thanks [@unional](https://github.com/unional)! - Export decorators in `@repobuddy/storybook/react` instead of `@repobuddy/storybook`.

  `@repobuddy/storybook` should not depend on ReactJS.

### Patch Changes

- [#42](https://github.com/repobuddy/storybook/pull/42) [`5433517`](https://github.com/repobuddy/storybook/commit/5433517d6e91e2fe5711dd25a280e15247db04a1) Thanks [@unional](https://github.com/unional)! - Update integration badge.

## 0.8.0

### Minor Changes

- [#38](https://github.com/repobuddy/storybook/pull/38) [`765ef16`](https://github.com/repobuddy/storybook/commit/765ef1692c5c1f7c033ea678ec519d5085eef66b) Thanks [@unional](https://github.com/unional)! - Export individual badges.

## 0.7.0

### Minor Changes

- [`87acf67`](https://github.com/repobuddy/storybook/commit/87acf67af7bd37e839b1d0f72a08fb9b98872bfb) Thanks [@unional](https://github.com/unional)! - Add `snapshot` badge

## 0.6.1

### Patch Changes

- [`5a3eff2`](https://github.com/repobuddy/storybook/commit/5a3eff2e6a7ff87c5aef9b5f2269b2958e7f9e1f) Thanks [@unional](https://github.com/unional)! - Updated docs and limits `editor` tag to story.

## 0.6.0

### Minor Changes

- [`b1ce406`](https://github.com/repobuddy/storybook/commit/b1ce4062c78d6e3da4398f7dc357eeb7e4d63144) Thanks [@unional](https://github.com/unional)! - Add `editor` badge

## 0.5.0

### Minor Changes

- [`9ae11fc`](https://github.com/repobuddy/storybook/commit/9ae11fc35a993f14749e8908e2766c25e098d694) Thanks [@unional](https://github.com/unional)! - Depends on `@repobuddy/test` (instead of `@repobuddy/vitest`) and re-exports it.

## 0.4.0

### Minor Changes

- [#29](https://github.com/repobuddy/storybook/pull/29) [`2f3d9f9`](https://github.com/repobuddy/storybook/commit/2f3d9f98ce16a53cf41d7c088d861efebe8f2cb1) Thanks [@unional](https://github.com/unional)! - Add `whenRunningInTest()`

## 0.3.1

### Patch Changes

- [`956f983`](https://github.com/repobuddy/storybook/commit/956f98379086371c0c6f4982e711299302078bc2) Thanks [@unional](https://github.com/unional)! - Add missing `docs` and `viewport` support to `defineParameters()`.

## 0.3.0

### Minor Changes

- [`d39642c`](https://github.com/repobuddy/storybook/commit/d39642c8ad95be9bf62178b1c71af9c987a23764) Thanks [@unional](https://github.com/unional)! - Add `showDocSource` and `defineBackgroundsParam`
  s

### Patch Changes

- [`ee132b9`](https://github.com/repobuddy/storybook/commit/ee132b9aa6e1c15ccac3680d0348b192147fbc1f) Thanks [@unional](https://github.com/unional)! - Allow free form

## 0.2.0

### Minor Changes

- [`2ab6d48`](https://github.com/repobuddy/storybook/commit/2ab6d4896a547939f3d7eb78d793975bcadc4fec) Thanks [@unional](https://github.com/unional)! - Add `defineDocsParam()`

- [`a01f913`](https://github.com/repobuddy/storybook/commit/a01f913bbd90e4dc485e1f09b5bef31488412d8c) Thanks [@unional](https://github.com/unional)! - Add `defineViewportParam()`

- [`a457c22`](https://github.com/repobuddy/storybook/commit/a457c228fd22627d5433d31e2adf1bc453428c8a) Thanks [@unional](https://github.com/unional)! - Add `brandTitle()`

## 0.1.0

### Minor Changes

- [`c0f4e6d`](https://github.com/repobuddy/storybook/commit/c0f4e6d08fe4ccbe386f09d24afc9090f6c030f5) Thanks [@unional](https://github.com/unional)! - Initial release
