@ornikar/bumper 2.4.0 → 2.4.1-canary.5ba1adb7ef6f41e2165abd46b6c8df65c0325fc7.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.4.0",
3
+ "version": "2.4.1-canary.5ba1adb7ef6f41e2165abd46b6c8df65c0325fc7.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": {
@@ -50,7 +50,7 @@
50
50
  "devDependencies": {
51
51
  "@babel/core": "7.27.1",
52
52
  "@testing-library/dom": "10.4.1",
53
- "@testing-library/react": "16.3.0",
53
+ "@testing-library/react": "16.3.1",
54
54
  "@testing-library/react-native": "13.3.3",
55
55
  "@types/react": "18.3.27",
56
56
  "react": "18.3.1",
@@ -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 { Text } from '@tamagui/core';
3
3
  import { StorySection } from '../../story-components/StorySection';
4
4
  import { Typography } from '../typography/Typograhy';
@@ -9,7 +9,7 @@ export default {
9
9
  component: Stack,
10
10
  } satisfies Meta<unknown>;
11
11
 
12
- export const StacksStory: ComponentStory<typeof Stack> = () => (
12
+ export const StacksStory: StoryFn<typeof Stack> = () => (
13
13
  <>
14
14
  <Text>
15
15
  - space is deprecated, use gap instead - direction from NB is now flexDirection- reversed from NB is now direction
@@ -1,4 +1,4 @@
1
- import type { ComponentStory, Meta } from '@storybook/react';
1
+ import type { Meta, StoryFn } from '@storybook/react';
2
2
  import { View } from './View';
3
3
 
4
4
  export default {
@@ -6,7 +6,7 @@ export default {
6
6
  component: View,
7
7
  } satisfies Meta<unknown>;
8
8
 
9
- export const ViewStory: ComponentStory<typeof View> = () => (
9
+ export const ViewStory: StoryFn<typeof View> = () => (
10
10
  <View width={50} height={500} backgroundColor="$bg.base.mid.default" />
11
11
  );
12
12
 
@@ -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/Stacks';
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} />