@xyo-network/react-storybook 2.41.38 → 2.41.39

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.
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { InvertableThemeProvider } from '@xylabs/react-invertable-theme';
2
+ import { InvertibleThemeProvider } from '@xylabs/react-invertible-theme';
3
3
  import { appThemeOptions, partialAppDarkThemeOptions, partialAppLightThemeOptions, themeOptions } from '@xyo-network/react-theme';
4
4
  import merge from 'lodash/merge';
5
5
  import { useDarkMode } from 'storybook-dark-mode';
6
6
  const useAppThemeDecorator = (Story, { args }) => {
7
7
  const darkMode = useDarkMode();
8
8
  const mergedThemeOptions = merge(themeOptions, appThemeOptions);
9
- return (_jsx(InvertableThemeProvider, { dark: darkMode, options: mergedThemeOptions, lightOptions: partialAppLightThemeOptions, darkOptions: partialAppDarkThemeOptions, children: _jsx(Story, { ...args }) }));
9
+ return (_jsx(InvertibleThemeProvider, { dark: darkMode, options: mergedThemeOptions, lightOptions: partialAppLightThemeOptions, darkOptions: partialAppDarkThemeOptions, children: _jsx(Story, { ...args }) }));
10
10
  };
11
11
  export { useAppThemeDecorator };
12
12
  //# sourceMappingURL=useAppThemeDecorator.js.map
package/package.json CHANGED
@@ -11,17 +11,17 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@storybook/react": "^6.5.16",
14
- "@xylabs/react-flexbox": "^2.15.11",
15
- "@xylabs/react-invertable-theme": "^2.15.11",
16
- "@xylabs/react-shared": "^2.15.11",
14
+ "@xylabs/react-flexbox": "^2.15.12",
15
+ "@xylabs/react-invertible-theme": "^2.15.12",
16
+ "@xylabs/react-shared": "^2.15.12",
17
17
  "@xyo-network/boundwitness-model": "^2.43.22",
18
18
  "@xyo-network/payload-builder": "^2.43.22",
19
19
  "@xyo-network/payload-model": "^2.43.22",
20
- "@xyo-network/react-api": "^2.41.38",
21
- "@xyo-network/react-auth": "^2.41.38",
22
- "@xyo-network/react-map": "^2.41.38",
23
- "@xyo-network/react-theme": "^2.41.38",
24
- "@xyo-network/react-wallet-service": "^2.41.38",
20
+ "@xyo-network/react-api": "^2.41.39",
21
+ "@xyo-network/react-auth": "^2.41.39",
22
+ "@xyo-network/react-map": "^2.41.39",
23
+ "@xyo-network/react-theme": "^2.41.39",
24
+ "@xyo-network/react-wallet-service": "^2.41.39",
25
25
  "lodash": "^4.17.21",
26
26
  "require-from-string": "^2.0.2",
27
27
  "storybook-dark-mode": "^2.0.5"
@@ -88,5 +88,5 @@
88
88
  },
89
89
  "sideEffects": false,
90
90
  "types": "dist/types/index.d.ts",
91
- "version": "2.41.38"
91
+ "version": "2.41.39"
92
92
  }
@@ -1,5 +1,5 @@
1
1
  import { DecoratorFn } from '@storybook/react'
2
- import { InvertableThemeProvider } from '@xylabs/react-invertable-theme'
2
+ import { InvertibleThemeProvider } from '@xylabs/react-invertible-theme'
3
3
  import { appThemeOptions, partialAppDarkThemeOptions, partialAppLightThemeOptions, themeOptions } from '@xyo-network/react-theme'
4
4
  import merge from 'lodash/merge'
5
5
  import { useDarkMode } from 'storybook-dark-mode'
@@ -8,14 +8,14 @@ const useAppThemeDecorator: DecoratorFn = (Story, { args }) => {
8
8
  const darkMode = useDarkMode()
9
9
  const mergedThemeOptions = merge(themeOptions, appThemeOptions)
10
10
  return (
11
- <InvertableThemeProvider
11
+ <InvertibleThemeProvider
12
12
  dark={darkMode}
13
13
  options={mergedThemeOptions}
14
14
  lightOptions={partialAppLightThemeOptions}
15
15
  darkOptions={partialAppDarkThemeOptions}
16
16
  >
17
17
  <Story {...args} />
18
- </InvertableThemeProvider>
18
+ </InvertibleThemeProvider>
19
19
  )
20
20
  }
21
21