@sit-onyx/storybook-utils 1.0.0-beta.96 → 1.0.0-beta.97

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/preview.ts +4 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sit-onyx/storybook-utils",
3
3
  "description": "Storybook utilities for Vue",
4
- "version": "1.0.0-beta.96",
4
+ "version": "1.0.0-beta.97",
5
5
  "type": "module",
6
6
  "author": "Schwarz IT KG",
7
7
  "license": "Apache-2.0",
@@ -37,9 +37,9 @@
37
37
  "deepmerge-ts": "^7.1.5"
38
38
  },
39
39
  "devDependencies": {
40
- "storybook": "^9.0.12",
41
- "vue": "3.5.16",
42
- "vue-component-type-helpers": "^2.2.10",
40
+ "storybook": "^9.0.17",
41
+ "vue": "3.5.17",
42
+ "vue-component-type-helpers": "^3.0.3",
43
43
  "@sit-onyx/icons": "^1.0.0-beta.21",
44
44
  "@sit-onyx/shared": "^1.0.0-beta.4"
45
45
  },
package/src/preview.ts CHANGED
@@ -48,6 +48,7 @@ export const createPreview = <T extends Preview = Preview>(
48
48
  argTypesEnhancers: [enhanceEventArgTypes],
49
49
  initialGlobals: {
50
50
  ["requiredMode" satisfies keyof typeof requiredGlobalType]: "required",
51
+ backgrounds: { value: "currentTheme" },
51
52
  },
52
53
  globalTypes: {
53
54
  ...requiredGlobalType,
@@ -96,8 +97,9 @@ export const createPreview = <T extends Preview = Preview>(
96
97
  dark: themes.dark,
97
98
  },
98
99
  backgrounds: {
99
- // backgrounds are not needed because we have configured the darkMode addon/toggle switch
100
- disable: true,
100
+ options: {
101
+ currentTheme: { name: "Dynamic", value: "var(--onyx-color-base-background-tinted)" },
102
+ },
101
103
  },
102
104
  viewport: {
103
105
  options: ONYX_BREAKPOINTS,