@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/CHANGELOG.md +19 -0
- package/dist/definitions/core/BumperDecorator.d.ts +1 -1
- package/dist/definitions/core/BumperDecorator.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +1 -1
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +1 -1
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +2 -2
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +2 -2
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +1 -1
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +1 -1
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +1 -1
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/breakpoints/breakpoints.stories.tsx +2 -2
- package/src/components/primitives/Center.stories.tsx +2 -2
- package/src/components/primitives/Stack.stories.tsx +2 -2
- package/src/components/primitives/View.stories.tsx +2 -2
- package/src/components/typography/Typography.stories.tsx +2 -2
- package/src/core/BumperDecorator.tsx +1 -1
- package/src/themes/light.stories.tsx +2 -2
- package/src/tokens/palettes/deepPurpleColorPalette.stories.tsx +2 -2
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/
|
|
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/
|
|
40
|
+
"@storybook/preview-api": {
|
|
41
41
|
"optional": true
|
|
42
42
|
},
|
|
43
43
|
"react-dom": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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:
|
|
33
|
+
export const BreakpointsStory: StoryFn<typeof View> = () => {
|
|
34
34
|
return (
|
|
35
35
|
<>
|
|
36
36
|
<CurrentBreakpointNameComponent />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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:
|
|
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 {
|
|
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:
|
|
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 {
|
|
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:
|
|
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 {
|
|
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:
|
|
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 type {
|
|
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:
|
|
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 {
|
|
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:
|
|
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} />
|