@sit-onyx/storybook-utils 1.0.0-beta.73 → 1.0.0-beta.74
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/package.json +1 -1
- package/src/preview.ts +1 -1
- package/src/theme.ts +1 -1
package/package.json
CHANGED
package/src/preview.ts
CHANGED
|
@@ -36,8 +36,8 @@ import { ONYX_BREAKPOINTS, createTheme, type BrandDetails } from "./theme";
|
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
38
|
export const createPreview = <T extends Preview = Preview>(
|
|
39
|
-
brandDetails: BrandDetails,
|
|
40
39
|
overrides?: T,
|
|
40
|
+
brandDetails?: BrandDetails,
|
|
41
41
|
) => {
|
|
42
42
|
const themes = {
|
|
43
43
|
light: createTheme("light", brandDetails),
|
package/src/theme.ts
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "@sit-onyx/shared/breakpoints";
|
|
5
5
|
import { create, type ThemeVars } from "storybook/internal/theming";
|
|
6
6
|
|
|
7
|
-
export type BrandDetails =
|
|
7
|
+
export type BrandDetails = Pick<ThemeVars, "brandTitle" | "brandImage" | "brandUrl">;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Get the computed value for a CSS custom property.
|