@storybook/addon-ondevice-backgrounds 10.3.0-next.2 → 10.3.0-next.4
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/BackgroundPanel.js +0 -3
- package/package.json +3 -2
package/dist/BackgroundPanel.js
CHANGED
|
@@ -40,9 +40,6 @@ export const Basic: BackgroundStory = () => <Background />;
|
|
|
40
40
|
`.trim();
|
|
41
41
|
const Instructions = () => (_jsxs(View, { children: [_jsx(Text, { style: [styles.paragraph, styles.title], children: "Setup Instructions" }), _jsx(Text, { style: styles.paragraph, children: "Please add the background decorator definition to your story. The background decorate accepts an array of items, which should include a name for your color (preferably the css class name) and the corresponding color / image value." }), _jsx(Text, { style: styles.paragraph, children: "Below is an example of how to add the background decorator to your story definition. Long press the example to copy it." }), _jsx(Text, { selectable: true, children: codeSample })] }));
|
|
42
42
|
const BackgroundPanel = ({ active, api, channel }) => {
|
|
43
|
-
if (!active) {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
43
|
const store = api.store();
|
|
47
44
|
const storyId = store.getSelection().storyId;
|
|
48
45
|
const story = store.fromId(storyId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-ondevice-backgrounds",
|
|
3
|
-
"version": "10.3.0-next.
|
|
3
|
+
"version": "10.3.0-next.4",
|
|
4
4
|
"description": "A react-native storybook addon to show different backgrounds for your preview",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"addon",
|
|
@@ -28,9 +28,10 @@
|
|
|
28
28
|
"*.d.ts"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@storybook/react-native-theming": "^10.3.0-next.
|
|
31
|
+
"@storybook/react-native-theming": "^10.3.0-next.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
+
"storybook": "10.3.0-alpha.12",
|
|
34
35
|
"typescript": "~5.9.3"
|
|
35
36
|
},
|
|
36
37
|
"peerDependencies": {
|