@sit-onyx/storybook-utils 1.0.0-alpha.170 → 1.0.0-alpha.172
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/README.md +3 -3
- package/package.json +2 -2
- package/src/index.css +1 -1
- package/src/theme.ts +1 -1
- package/src/types.ts +3 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<div align="center">
|
|
1
|
+
<div align="center" style="text-align: center">
|
|
2
2
|
<picture>
|
|
3
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-light.svg">
|
|
4
|
-
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-dark.svg">
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" type="image/svg+xml" srcset="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-light.svg">
|
|
4
|
+
<source media="(prefers-color-scheme: light)" type="image/svg+xml" srcset="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-dark.svg">
|
|
5
5
|
<img alt="onyx logo" src="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-dark.svg" width="160px">
|
|
6
6
|
</picture>
|
|
7
7
|
</div>
|
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-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.172",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Schwarz IT KG",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@storybook/vue3": ">= 8.0.0",
|
|
31
31
|
"storybook-dark-mode": ">= 4",
|
|
32
32
|
"@sit-onyx/icons": "^0.1.0-alpha.2",
|
|
33
|
-
"sit-onyx": "^1.0.0-alpha.
|
|
33
|
+
"sit-onyx": "^1.0.0-alpha.165"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"deepmerge-ts": "^7.0.3"
|
package/src/index.css
CHANGED
package/src/theme.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ThemeVars, ThemeVarsPartial } from "@storybook/theming";
|
|
2
2
|
import { create } from "@storybook/theming/create";
|
|
3
|
-
import onyxVariables from "sit-onyx/
|
|
3
|
+
import onyxVariables from "sit-onyx/themes/onyx.json";
|
|
4
4
|
import { ONYX_BREAKPOINTS as RAW_ONYX_BREAKPOINTS, type OnyxBreakpoint } from "sit-onyx/types";
|
|
5
5
|
import onyxLogo from "./assets/logo-onyx.svg";
|
|
6
6
|
|
package/src/types.ts
CHANGED
|
@@ -50,9 +50,10 @@ export type DefineStorybookActionsAndVModelsOptions<T> = Meta<T> & {
|
|
|
50
50
|
export type StorybookGlobalType<TValue> = {
|
|
51
51
|
name: string;
|
|
52
52
|
description: string;
|
|
53
|
-
defaultValue
|
|
53
|
+
defaultValue?: TValue;
|
|
54
54
|
toolbar: {
|
|
55
55
|
icon: string;
|
|
56
|
-
items: { value: TValue; right
|
|
56
|
+
items: { value: TValue; right?: string; title: string }[];
|
|
57
|
+
title?: string;
|
|
57
58
|
};
|
|
58
59
|
};
|