@repobuddy/storybook 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.d.ts +13 -1
- package/esm/index.js +3 -3
- package/package.json +4 -4
- package/src/index.ts +1 -0
package/esm/index.d.ts
CHANGED
|
@@ -70,6 +70,18 @@ type StoryCardProps = {
|
|
|
70
70
|
*/
|
|
71
71
|
children?: ReactNode | undefined;
|
|
72
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* A card component that displays information with optional title and status styling.
|
|
75
|
+
*
|
|
76
|
+
* @param props - StoryCard component props
|
|
77
|
+
* @returns A section element containing the card content
|
|
78
|
+
*/
|
|
79
|
+
declare function StoryCard({
|
|
80
|
+
status,
|
|
81
|
+
className,
|
|
82
|
+
children,
|
|
83
|
+
title
|
|
84
|
+
}: StoryCardProps): react_jsx_runtime0.JSX.Element;
|
|
73
85
|
//#endregion
|
|
74
86
|
//#region src/decorators/show_doc_source.d.ts
|
|
75
87
|
/**
|
|
@@ -800,4 +812,4 @@ type ExtendsStoryObj<S extends {
|
|
|
800
812
|
tags?: ExtractStringLiterals<NonNullable<S['tags']>[number]> extends infer MT ? IsStringLiteral<MT> extends true ? Array<(string & {}) | MT | E['tag']> | undefined : Array<(string & {}) | E['tag']> | undefined : never;
|
|
801
813
|
};
|
|
802
814
|
//#endregion
|
|
803
|
-
export { ActionsParam, BackgroundsParam, DocsParam, ExtendMeta, ExtendStoryObj, ExtendsMeta, ExtendsStoryObj, FnToArgTypes, GlobalApiBackgroundsParam, GlobalApiViewportParam, LayoutParam, ShowHtml, ShowHtmlProps, SourceProps, StorySortParam, StorybookBuiltInParams, TestParam, Viewport, ViewportParam, WithStoryCardProps, defineActionsParam, defineBackgroundsParam, defineDocsParam, defineLayoutParam, defineParameters, defineTestParam, defineViewportParam, showDocSource, whenRunningInTest, withStoryCard };
|
|
815
|
+
export { ActionsParam, BackgroundsParam, DocsParam, ExtendMeta, ExtendStoryObj, ExtendsMeta, ExtendsStoryObj, FnToArgTypes, GlobalApiBackgroundsParam, GlobalApiViewportParam, LayoutParam, ShowHtml, ShowHtmlProps, SourceProps, StoryCard, StoryCardProps, StorySortParam, StorybookBuiltInParams, TestParam, Viewport, ViewportParam, WithStoryCardProps, defineActionsParam, defineBackgroundsParam, defineDocsParam, defineLayoutParam, defineParameters, defineTestParam, defineViewportParam, showDocSource, whenRunningInTest, withStoryCard };
|
package/esm/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import { isRunningInTest } from "@repobuddy/test";
|
|
|
3
3
|
import { prettify } from "htmlfy";
|
|
4
4
|
import { createContext, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { cva } from "class-variance-authority";
|
|
7
|
+
import { twJoin, twMerge } from "tailwind-merge";
|
|
6
8
|
import { SyntaxHighlighter } from "storybook/internal/components";
|
|
7
9
|
import { addons } from "storybook/preview-api";
|
|
8
10
|
import { ThemeProvider, convert, themes } from "storybook/theming";
|
|
9
|
-
import { twJoin, twMerge } from "tailwind-merge";
|
|
10
|
-
import { cva } from "class-variance-authority";
|
|
11
11
|
|
|
12
12
|
export * from "@repobuddy/test"
|
|
13
13
|
|
|
@@ -455,4 +455,4 @@ function whenRunningInTest(decoratorOrHandler) {
|
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
//#endregion
|
|
458
|
-
export { ShowHtml, defineActionsParam, defineBackgroundsParam, defineDocsParam, defineLayoutParam, defineParameters, defineTestParam, defineViewportParam, showDocSource, whenRunningInTest, withStoryCard };
|
|
458
|
+
export { ShowHtml, StoryCard, defineActionsParam, defineBackgroundsParam, defineDocsParam, defineLayoutParam, defineParameters, defineTestParam, defineViewportParam, showDocSource, whenRunningInTest, withStoryCard };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobuddy/storybook",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "Storybook repo buddy",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@repobuddy/vitest": "^2.0.0",
|
|
62
62
|
"@storybook-community/storybook-dark-mode": "^7.0.2",
|
|
63
|
-
"@storybook/addon-docs": "^10.
|
|
63
|
+
"@storybook/addon-docs": "^10.2.4",
|
|
64
64
|
"@storybook/addon-vitest": "^10.1.10",
|
|
65
|
-
"@storybook/react-vite": "^10.
|
|
65
|
+
"@storybook/react-vite": "^10.2.4",
|
|
66
66
|
"@tailwindcss/cli": "^4.1.17",
|
|
67
67
|
"@tailwindcss/vite": "^4.1.17",
|
|
68
68
|
"@vitest/browser": "^4.0.16",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@storybook-community/storybook-dark-mode": "^7.0.0",
|
|
85
|
-
"@storybook/addon-docs": "^10.
|
|
85
|
+
"@storybook/addon-docs": "^10.2.4",
|
|
86
86
|
"storybook-addon-tag-badges": "^3.0.2"
|
|
87
87
|
},
|
|
88
88
|
"peerDependenciesMeta": {
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from '@repobuddy/test'
|
|
2
2
|
export type * from './arg-types/fn-to-arg-types.ts'
|
|
3
3
|
export * from './components/show_html.tsx'
|
|
4
|
+
export * from './components/story_card.tsx'
|
|
4
5
|
export * from './decorators/show_doc_source.tsx'
|
|
5
6
|
export * from './decorators/with_story_card.tsx'
|
|
6
7
|
export * from './parameters/define_actions_param.ts'
|