@histoire/shared 0.13.0 → 0.13.2
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/dist/types/config.d.ts +12 -0
- package/package.json +1 -1
- package/src/types/config.ts +12 -0
package/dist/types/config.d.ts
CHANGED
|
@@ -107,6 +107,18 @@ export interface HistoireConfig {
|
|
|
107
107
|
* Add a link to the main logo
|
|
108
108
|
*/
|
|
109
109
|
logoHref?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Default color scheme for the app.
|
|
112
|
+
*/
|
|
113
|
+
defaultColorScheme?: 'light' | 'dark' | 'auto';
|
|
114
|
+
/**
|
|
115
|
+
* Hides the dark mode button in the toolbar.
|
|
116
|
+
*/
|
|
117
|
+
hideColorSchemeSwitch?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Enable persistence of the color scheme in the browser.
|
|
120
|
+
*/
|
|
121
|
+
storeColorScheme?: boolean;
|
|
110
122
|
};
|
|
111
123
|
/**
|
|
112
124
|
* Setup file exporting a default function executed when setting up each story preview.
|
package/package.json
CHANGED
package/src/types/config.ts
CHANGED
|
@@ -116,6 +116,18 @@ export interface HistoireConfig {
|
|
|
116
116
|
* Add a link to the main logo
|
|
117
117
|
*/
|
|
118
118
|
logoHref?: string
|
|
119
|
+
/**
|
|
120
|
+
* Default color scheme for the app.
|
|
121
|
+
*/
|
|
122
|
+
defaultColorScheme?: 'light' | 'dark' | 'auto'
|
|
123
|
+
/**
|
|
124
|
+
* Hides the dark mode button in the toolbar.
|
|
125
|
+
*/
|
|
126
|
+
hideColorSchemeSwitch?: boolean
|
|
127
|
+
/**
|
|
128
|
+
* Enable persistence of the color scheme in the browser.
|
|
129
|
+
*/
|
|
130
|
+
storeColorScheme?: boolean
|
|
119
131
|
}
|
|
120
132
|
/**
|
|
121
133
|
* Setup file exporting a default function executed when setting up each story preview.
|