@storybook/react-native-theming 8.4.3-alpha.1 → 8.4.3

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/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as RN from 'react-native';
2
- import { TextStyle } from 'react-native';
2
+ import { ImageSourcePropType, ImageProps, TextStyle } from 'react-native';
3
3
  import * as React$1 from 'react';
4
+ import { ReactElement } from 'react';
4
5
 
5
6
  declare const color: {
6
7
  primary: string;
@@ -68,10 +69,11 @@ type Color = typeof color;
68
69
  type Background = typeof background;
69
70
  type Typography = typeof typography;
70
71
  interface Brand {
71
- title: string | undefined;
72
- url: string | null | undefined;
73
- image: string | null | undefined;
74
- target: string | null | undefined;
72
+ title?: string | undefined;
73
+ url?: string | null | undefined;
74
+ image?: ImageSourcePropType | ReactElement | null | undefined;
75
+ resizeMode?: ImageProps['resizeMode'] | null | undefined;
76
+ target?: string | null | undefined;
75
77
  }
76
78
  interface StorybookThemeWeb {
77
79
  base: 'light' | 'dark';
@@ -102,7 +104,7 @@ interface StorybookThemeWeb {
102
104
  barHoverColor: string;
103
105
  barSelectedColor: string;
104
106
  barBg: string;
105
- brand: Brand;
107
+ brand?: Brand;
106
108
  }
107
109
 
108
110
  type StorybookTheme = StorybookThemeWeb;
package/dist/index.js CHANGED
@@ -2056,12 +2056,7 @@ var theme = {
2056
2056
  barSelectedColor: light.barSelectedColor || light.colorSecondary,
2057
2057
  barBg: light.barBg,
2058
2058
  // Brand logo/text
2059
- brand: {
2060
- title: light.brandTitle,
2061
- url: light.brandUrl,
2062
- image: light.brandImage || (light.brandTitle ? null : void 0),
2063
- target: light.brandTarget
2064
- }
2059
+ brand: void 0
2065
2060
  };
2066
2061
  var darkTheme = {
2067
2062
  base: "dark",
@@ -2144,12 +2139,7 @@ var darkTheme = {
2144
2139
  barSelectedColor: dark.barSelectedColor || dark.colorSecondary,
2145
2140
  barBg: dark.barBg,
2146
2141
  // Brand logo/text
2147
- brand: {
2148
- title: dark.brandTitle,
2149
- url: dark.brandUrl,
2150
- image: dark.brandImage || (dark.brandTitle ? null : void 0),
2151
- target: dark.brandTarget
2152
- }
2142
+ brand: void 0
2153
2143
  };
2154
2144
 
2155
2145
  // ../../node_modules/@emotion/native/dist/emotion-native.esm.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native-theming",
3
- "version": "8.4.3-alpha.1",
3
+ "version": "8.4.3",
4
4
  "description": "A wrapper library around emotion 11 to provide theming support for react-native storybook",
5
5
  "keywords": [
6
6
  "react",
@@ -43,5 +43,5 @@
43
43
  "dist/**/*",
44
44
  "README.md"
45
45
  ],
46
- "gitHead": "52feddc7a8059e56fa563c27f69a928bb852f96f"
46
+ "gitHead": "eacb2e3e0cd304f8a3fe151b0cb189ebdee7ce8e"
47
47
  }