@ornikar/bumper 2.5.0 → 2.5.1-canary.9789a78a274b9d336c93fc42d4a6561d0d61ff73.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/bumper",
3
- "version": "2.5.0",
3
+ "version": "2.5.1-canary.9789a78a274b9d336c93fc42d4a6561d0d61ff73.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "directory": "@ornikar/bumper",
@@ -31,13 +31,13 @@
31
31
  "@tamagui/core": "1.135.6"
32
32
  },
33
33
  "peerDependencies": {
34
- "@storybook/addons": ">=7.6.20",
34
+ "@storybook/preview-api": ">=8.6.15",
35
35
  "react": "^18.3.1",
36
36
  "react-dom": "^18.3.1",
37
37
  "react-native": ">=0.76.9"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
- "@storybook/addons": {
40
+ "@storybook/preview-api": {
41
41
  "optional": true
42
42
  },
43
43
  "react-dom": {
@@ -1,4 +1,4 @@
1
- import type { ComponentStory, Meta } from '@storybook/react';
1
+ import type { Meta, StoryFn } from '@storybook/react';
2
2
  import type { View } from '@tamagui/core';
3
3
  import type { ReactElement } from 'react';
4
4
  import { Typography } from '../typography/Typograhy';
@@ -30,7 +30,7 @@ const SwitchBreakpointsComponent = (): ReactElement => {
30
30
  );
31
31
  };
32
32
 
33
- export const BreakpointsStory: ComponentStory<typeof View> = () => {
33
+ export const BreakpointsStory: StoryFn<typeof View> = () => {
34
34
  return (
35
35
  <>
36
36
  <CurrentBreakpointNameComponent />
@@ -1,4 +1,4 @@
1
- import type { ComponentStory, Meta } from '@storybook/react';
1
+ import type { Meta, StoryFn } from '@storybook/react';
2
2
  import type { CenterProps } from './Center';
3
3
  import { Center } from './Center';
4
4
  import { View } from './View';
@@ -8,7 +8,7 @@ export default {
8
8
  component: Center,
9
9
  } satisfies Meta<CenterProps>;
10
10
 
11
- export const CenterStory: ComponentStory<typeof Center> = () => (
11
+ export const CenterStory: StoryFn<typeof Center> = () => (
12
12
  <Center width="$size.120" height="$size.120" backgroundColor="$bg.accent.default">
13
13
  <View width="$size.16" height="$size.16" backgroundColor="$bg.base.mid.default" />
14
14
  </Center>
@@ -1,4 +1,4 @@
1
- import type { ComponentStory, Meta } from '@storybook/react';
1
+ import type { Meta, StoryFn } from '@storybook/react';
2
2
  import type { StackProps } from './Stack';
3
3
  import { HStack, Stack, VStack } from './Stack';
4
4
  import { View } from './View';
@@ -36,7 +36,7 @@ const items = (
36
36
  </>
37
37
  );
38
38
 
39
- export const StackStory: ComponentStory<typeof Stack> = () => (
39
+ export const StackStory: StoryFn<typeof Stack> = () => (
40
40
  <>
41
41
  <HStack gap="$space.4">{items}</HStack>
42
42
 
@@ -1,4 +1,4 @@
1
- import type { ComponentStory, Meta } from '@storybook/react';
1
+ import type { Meta, StoryFn } from '@storybook/react';
2
2
  import type { ViewProps } from './View';
3
3
  import { View } from './View';
4
4
 
@@ -7,7 +7,7 @@ export default {
7
7
  component: View,
8
8
  } satisfies Meta<ViewProps>;
9
9
 
10
- export const ViewStory: ComponentStory<typeof View> = () => (
10
+ export const ViewStory: StoryFn<typeof View> = () => (
11
11
  <View width="$size.120" height="$size.120" backgroundColor="$bg.accent.default" />
12
12
  );
13
13
 
@@ -1,4 +1,4 @@
1
- import type { ComponentStory, Meta } from '@storybook/react';
1
+ import type { Meta, StoryFn } from '@storybook/react';
2
2
  import type { FC } from 'react';
3
3
  import { StorySection } from '../../story-components/StorySection';
4
4
  import type { BodyFontVariants, FontVariants, HeadingFontVariants, LabelFontVariants } from '../../tokens/fonts';
@@ -74,7 +74,7 @@ function TypographyVariants({ types }: TypographyTypesProps) {
74
74
  );
75
75
  }
76
76
 
77
- export const TypographyStory: ComponentStory<typeof Typography.Text> = (args) => (
77
+ export const TypographyStory: StoryFn<typeof Typography.Text> = (args) => (
78
78
  <>
79
79
  <StorySection.Demo>
80
80
  <Typography.Text {...args} />
@@ -1,4 +1,4 @@
1
- import { makeDecorator } from '@storybook/addons';
1
+ import { makeDecorator } from '@storybook/preview-api';
2
2
  import type { ReactNode } from 'react';
3
3
  import { BumperProvider } from './BumperProvider';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { ComponentStory, Meta } from '@storybook/react';
1
+ import type { Meta, StoryFn } from '@storybook/react';
2
2
  import type { GetThemeValueForKey } from '@tamagui/core';
3
3
  import { VStack } from '../components/primitives/Stack';
4
4
  import { View } from '../components/primitives/View';
@@ -27,7 +27,7 @@ const TokenView = ({ tokenName, tokenValue }: { tokenName: string; tokenValue: s
27
27
  );
28
28
  };
29
29
 
30
- export const TypographyHeadingStory: ComponentStory<typeof View> = () => (
30
+ export const TypographyHeadingStory: StoryFn<typeof View> = () => (
31
31
  <StorySection title="Tokens">
32
32
  {Object.entries(light).map(([tokenName, tokenValue]) => (
33
33
  <TokenView key={tokenName} tokenName={tokenName} tokenValue={tokenValue} />
@@ -1,4 +1,4 @@
1
- import type { ComponentStory, Meta } from '@storybook/react';
1
+ import type { Meta, StoryFn } from '@storybook/react';
2
2
  import type { GetThemeValueForKey } from '@tamagui/core';
3
3
  import { View } from '../../components/primitives/View';
4
4
  import { Typography } from '../../components/typography/Typograhy';
@@ -26,7 +26,7 @@ const TokenView = ({ tokenName, tokenValue }: { tokenName: string; tokenValue: s
26
26
  );
27
27
  };
28
28
 
29
- export const TypographyHeadingStory: ComponentStory<typeof View> = () => (
29
+ export const TypographyHeadingStory: StoryFn<typeof View> = () => (
30
30
  <StorySection title="Palette">
31
31
  {Object.entries(deepPurpleColorPalette).map(([tokenName, tokenValue]) => (
32
32
  <TokenView key={tokenName} tokenName={tokenName} tokenValue={tokenValue} />