@ornikar/bumper 2.7.1 → 2.7.2-canary.1768565076.501fccaa5e4ef824bb180cfd40a7e74454a29a3e.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 +8 -0
- package/dist/definitions/index.d.ts +19 -19
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/shared/storybook/BumperDecorator.d.ts.map +1 -0
- package/dist/definitions/{story-components → shared/storybook}/StorySection.d.ts +1 -1
- package/dist/definitions/shared/storybook/StorySection.d.ts.map +1 -0
- package/dist/definitions/{story-components → shared/storybook}/StoryTitle.d.ts +1 -1
- package/dist/definitions/shared/storybook/StoryTitle.d.ts.map +1 -0
- package/dist/definitions/{components → system/content}/typography/Typography.d.ts +1 -1
- package/dist/definitions/system/content/typography/Typography.d.ts.map +1 -0
- package/dist/definitions/{components → system/content}/typography/utils/getVariantAndWeightValues.d.ts +1 -1
- package/dist/definitions/system/content/typography/utils/getVariantAndWeightValues.d.ts.map +1 -0
- package/dist/definitions/system/core/breakpoints/SwitchBreakpoins.d.ts.map +1 -0
- package/dist/definitions/{themes/utils/breakpoints.d.ts → system/core/breakpoints/constants.d.ts} +1 -1
- package/dist/definitions/system/core/breakpoints/constants.d.ts.map +1 -0
- package/dist/definitions/system/core/breakpoints/hooks/useBreakpointValue.d.ts.map +1 -0
- package/dist/definitions/system/core/breakpoints/hooks/useCurrentBreakpointName.d.ts +3 -0
- package/dist/definitions/system/core/breakpoints/hooks/useCurrentBreakpointName.d.ts.map +1 -0
- package/dist/definitions/system/core/breakpoints/hooks/useWindowSize.d.ts.map +1 -0
- package/dist/definitions/{components → system/core}/breakpoints/utils/breakpointsUtils.d.ts +1 -1
- package/dist/definitions/system/core/breakpoints/utils/breakpointsUtils.d.ts.map +1 -0
- package/dist/definitions/system/core/primitives/Center.d.ts.map +1 -0
- package/dist/definitions/system/core/primitives/Pressable.d.ts.map +1 -0
- package/dist/definitions/system/core/primitives/Stack.d.ts.map +1 -0
- package/dist/definitions/system/core/primitives/View.d.ts.map +1 -0
- package/dist/definitions/system/core/provider/BumperProvider.d.ts.map +1 -0
- package/dist/definitions/system/core/themes/light.d.ts.map +1 -0
- package/dist/definitions/system/core/tokens/fonts.d.ts +17 -0
- package/dist/definitions/system/core/tokens/fonts.d.ts.map +1 -0
- package/dist/definitions/system/core/tokens/palettes/deepPurpleColorPalette.d.ts.map +1 -0
- package/dist/definitions/system/core/tokens/radius.d.ts.map +1 -0
- package/dist/definitions/system/core/tokens/size.d.ts.map +1 -0
- package/dist/definitions/system/core/tokens/space.d.ts.map +1 -0
- package/dist/definitions/tamagui.config.d.ts +37 -3
- package/dist/definitions/tamagui.config.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +25 -50
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +25 -50
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.22.cjs.js +25 -50
- package/dist/index-node-22.22.cjs.js.map +1 -1
- package/dist/index-node-22.22.cjs.web.js +25 -50
- package/dist/index-node-22.22.cjs.web.js.map +1 -1
- package/dist/index-node-22.22.es.mjs +25 -50
- package/dist/index-node-22.22.es.mjs.map +1 -1
- package/dist/index-node-22.22.es.web.mjs +25 -50
- package/dist/index-node-22.22.es.web.mjs.map +1 -1
- package/dist/index.es.js +19 -44
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +19 -44
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/index.ts +19 -19
- package/src/{core → shared/storybook}/BumperDecorator.tsx +1 -1
- package/src/{story-components → shared/storybook}/StorySection.tsx +1 -2
- package/src/{story-components → shared/storybook}/StoryTitle.tsx +1 -1
- package/src/{components → system/content}/typography/Typography.stories.tsx +4 -4
- package/src/{components → system/content}/typography/Typography.tsx +1 -1
- package/src/{components → system/content}/typography/__snapshots__/Typography.stories.tsx.snap +75 -75
- package/src/{components → system/content}/typography/__snapshots_web__/Typography.stories.tsx.snap +76 -76
- package/src/{components → system/content}/typography/utils/getVariantAndWeightValues.test.tsx +1 -1
- package/src/{components → system/content}/typography/utils/getVariantAndWeightValues.tsx +2 -2
- package/src/{components → system/core}/breakpoints/__snapshots_web__/breakpoints.stories.tsx.snap +1 -1
- package/src/{components → system/core}/breakpoints/breakpoints.stories.tsx +1 -1
- package/src/{components → system/core}/breakpoints/hooks/useBreakpointValue.test.ts +1 -1
- package/src/{components → system/core}/breakpoints/hooks/useCurrentBreakpointName.test.ts +1 -1
- package/src/{components → system/core}/breakpoints/hooks/useCurrentBreakpointName.ts +1 -1
- package/src/{components → system/core}/breakpoints/utils/breakpointsUtils.test.ts +1 -1
- package/src/{components → system/core}/breakpoints/utils/breakpointsUtils.ts +1 -1
- package/src/{components → system/core}/primitives/Pressable.stories.tsx +1 -1
- package/src/{components → system/core}/primitives/__snapshots_web__/Center.stories.tsx.snap +1 -1
- package/src/{components → system/core}/primitives/__snapshots_web__/Pressable.stories.tsx.snap +1 -1
- package/src/{components → system/core}/primitives/__snapshots_web__/Stack.stories.tsx.snap +1 -1
- package/src/{components → system/core}/primitives/__snapshots_web__/View.stories.tsx.snap +1 -1
- package/src/{core → system/core/provider}/BumperProvider.tsx +1 -1
- package/src/{themes → system/core/themes}/__snapshots__/light.stories.tsx.snap +1 -1
- package/src/{themes → system/core/themes}/__snapshots_web__/light.stories.tsx.snap +2 -2
- package/src/{themes → system/core/themes}/light.stories.tsx +4 -4
- package/src/{themes → system/core/themes}/light.ts +3 -2
- package/src/{tokens → system/core/tokens}/fonts.ts +5 -16
- package/src/{tokens → system/core/tokens}/palettes/__snapshots__/deepPurpleColorPalette.stories.tsx.snap +1 -1
- package/src/{tokens → system/core/tokens}/palettes/__snapshots_web__/deepPurpleColorPalette.stories.tsx.snap +2 -2
- package/src/{tokens → system/core/tokens}/palettes/deepPurpleColorPalette.stories.tsx +3 -3
- package/src/tamagui.config.ts +16 -7
- package/dist/definitions/components/breakpoints/SwitchBreakpoins.d.ts.map +0 -1
- package/dist/definitions/components/breakpoints/hooks/useBreakpointValue.d.ts.map +0 -1
- package/dist/definitions/components/breakpoints/hooks/useCurrentBreakpointName.d.ts +0 -3
- package/dist/definitions/components/breakpoints/hooks/useCurrentBreakpointName.d.ts.map +0 -1
- package/dist/definitions/components/breakpoints/hooks/useWindowSize.d.ts.map +0 -1
- package/dist/definitions/components/breakpoints/utils/breakpointsUtils.d.ts.map +0 -1
- package/dist/definitions/components/primitives/Center.d.ts.map +0 -1
- package/dist/definitions/components/primitives/Pressable.d.ts.map +0 -1
- package/dist/definitions/components/primitives/Stack.d.ts.map +0 -1
- package/dist/definitions/components/primitives/View.d.ts.map +0 -1
- package/dist/definitions/components/typography/Typography.d.ts.map +0 -1
- package/dist/definitions/components/typography/utils/getVariantAndWeightValues.d.ts.map +0 -1
- package/dist/definitions/core/BumperDecorator.d.ts.map +0 -1
- package/dist/definitions/core/BumperProvider.d.ts.map +0 -1
- package/dist/definitions/story-components/StorySection.d.ts.map +0 -1
- package/dist/definitions/story-components/StoryTitle.d.ts.map +0 -1
- package/dist/definitions/themes/light.d.ts.map +0 -1
- package/dist/definitions/themes/utils/breakpoints.d.ts.map +0 -1
- package/dist/definitions/tokens/fonts.d.ts +0 -20
- package/dist/definitions/tokens/fonts.d.ts.map +0 -1
- package/dist/definitions/tokens/palettes/deepPurpleColorPalette.d.ts.map +0 -1
- package/dist/definitions/tokens/radius.d.ts.map +0 -1
- package/dist/definitions/tokens/size.d.ts.map +0 -1
- package/dist/definitions/tokens/space.d.ts.map +0 -1
- /package/dist/definitions/{core → shared/storybook}/BumperDecorator.d.ts +0 -0
- /package/dist/definitions/{components → system/core}/breakpoints/SwitchBreakpoins.d.ts +0 -0
- /package/dist/definitions/{components → system/core}/breakpoints/hooks/useBreakpointValue.d.ts +0 -0
- /package/dist/definitions/{components → system/core}/breakpoints/hooks/useWindowSize.d.ts +0 -0
- /package/dist/definitions/{components → system/core}/primitives/Center.d.ts +0 -0
- /package/dist/definitions/{components → system/core}/primitives/Pressable.d.ts +0 -0
- /package/dist/definitions/{components → system/core}/primitives/Stack.d.ts +0 -0
- /package/dist/definitions/{components → system/core}/primitives/View.d.ts +0 -0
- /package/dist/definitions/{core → system/core/provider}/BumperProvider.d.ts +0 -0
- /package/dist/definitions/{themes → system/core/themes}/light.d.ts +0 -0
- /package/dist/definitions/{tokens → system/core/tokens}/palettes/deepPurpleColorPalette.d.ts +0 -0
- /package/dist/definitions/{tokens → system/core/tokens}/radius.d.ts +0 -0
- /package/dist/definitions/{tokens → system/core/tokens}/size.d.ts +0 -0
- /package/dist/definitions/{tokens → system/core/tokens}/space.d.ts +0 -0
- /package/src/{components → system/core}/breakpoints/SwitchBreakpoins.tsx +0 -0
- /package/src/{components → system/core}/breakpoints/__snapshots__/breakpoints.stories.tsx.snap +0 -0
- /package/src/{themes/utils/breakpoints.ts → system/core/breakpoints/constants.ts} +0 -0
- /package/src/{components → system/core}/breakpoints/hooks/useBreakpointValue.ts +0 -0
- /package/src/{components → system/core}/breakpoints/hooks/useWindowSize.ts +0 -0
- /package/src/{components → system/core}/primitives/Center.stories.tsx +0 -0
- /package/src/{components → system/core}/primitives/Center.ts +0 -0
- /package/src/{components → system/core}/primitives/Pressable.tsx +0 -0
- /package/src/{components → system/core}/primitives/Stack.stories.tsx +0 -0
- /package/src/{components → system/core}/primitives/Stack.tsx +0 -0
- /package/src/{components → system/core}/primitives/View.stories.tsx +0 -0
- /package/src/{components → system/core}/primitives/View.ts +0 -0
- /package/src/{components → system/core}/primitives/__snapshots__/Center.stories.tsx.snap +0 -0
- /package/src/{components → system/core}/primitives/__snapshots__/Pressable.stories.tsx.snap +0 -0
- /package/src/{components → system/core}/primitives/__snapshots__/Stack.stories.tsx.snap +0 -0
- /package/src/{components → system/core}/primitives/__snapshots__/View.stories.tsx.snap +0 -0
- /package/src/{tokens → system/core/tokens}/palettes/deepPurpleColorPalette.ts +0 -0
- /package/src/{tokens → system/core/tokens}/radius.ts +0 -0
- /package/src/{tokens → system/core/tokens}/size.ts +0 -0
- /package/src/{tokens → system/core/tokens}/space.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ornikar/bumper",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.2-canary.1768565076.501fccaa5e4ef824bb180cfd40a7e74454a29a3e.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "@ornikar/bumper",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@storybook/preview-api": ">=8.6.15",
|
|
35
|
-
"react": "^
|
|
36
|
-
"react-dom": "^
|
|
35
|
+
"react": "^19.0.0",
|
|
36
|
+
"react-dom": "^19.0.0",
|
|
37
37
|
"react-native": ">=0.76.9"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@testing-library/dom": "10.4.1",
|
|
53
53
|
"@testing-library/react": "16.3.1",
|
|
54
54
|
"@testing-library/react-native": "13.3.3",
|
|
55
|
-
"@types/react": "
|
|
56
|
-
"react": "
|
|
57
|
-
"react-dom": "
|
|
58
|
-
"react-native": "0.
|
|
59
|
-
"react-test-renderer": "
|
|
55
|
+
"@types/react": "19.0.10",
|
|
56
|
+
"react": "19.0.0",
|
|
57
|
+
"react-dom": "19.0.0",
|
|
58
|
+
"react-native": "0.79.6",
|
|
59
|
+
"react-test-renderer": "19.0.0"
|
|
60
60
|
},
|
|
61
61
|
"expo": {},
|
|
62
62
|
"exports": {
|
package/src/index.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { BumperDecorator } from './
|
|
2
|
-
export { BumperProvider } from './core/BumperProvider';
|
|
1
|
+
export { BumperDecorator } from './shared/storybook/BumperDecorator';
|
|
2
|
+
export { BumperProvider } from './system/core/provider/BumperProvider';
|
|
3
3
|
|
|
4
4
|
// Primitives
|
|
5
|
-
export type { CenterProps } from './
|
|
6
|
-
export { Center } from './
|
|
7
|
-
export type { PressableProps } from './
|
|
8
|
-
export { Pressable } from './
|
|
9
|
-
export type { HStackProps, StackProps, VStackProps } from './
|
|
10
|
-
export { HStack, Stack, VStack } from './
|
|
11
|
-
export type { ViewProps } from './
|
|
12
|
-
export { View } from './
|
|
5
|
+
export type { CenterProps } from './system/core/primitives/Center';
|
|
6
|
+
export { Center } from './system/core/primitives/Center';
|
|
7
|
+
export type { PressableProps } from './system/core/primitives/Pressable';
|
|
8
|
+
export { Pressable } from './system/core/primitives/Pressable';
|
|
9
|
+
export type { HStackProps, StackProps, VStackProps } from './system/core/primitives/Stack';
|
|
10
|
+
export { HStack, Stack, VStack } from './system/core/primitives/Stack';
|
|
11
|
+
export type { ViewProps } from './system/core/primitives/View';
|
|
12
|
+
export { View } from './system/core/primitives/View';
|
|
13
13
|
|
|
14
14
|
// Typography
|
|
15
|
-
export type { TypographyTextProps } from './
|
|
16
|
-
export { Typography } from './
|
|
15
|
+
export type { TypographyTextProps } from './system/content/typography/Typography';
|
|
16
|
+
export { Typography } from './system/content/typography/Typography';
|
|
17
17
|
|
|
18
18
|
// Breakpoints
|
|
19
|
-
export { useBreakpointValue } from './
|
|
20
|
-
export { useCurrentBreakpointName } from './
|
|
21
|
-
export { useWindowSize } from './
|
|
22
|
-
export type { SwitchBreakpointsProps } from './
|
|
23
|
-
export { SwitchBreakpoints } from './
|
|
24
|
-
export type { ValueForBreakpoint } from './
|
|
25
|
-
export { getValueForBreakpoint } from './
|
|
19
|
+
export { useBreakpointValue } from './system/core/breakpoints/hooks/useBreakpointValue';
|
|
20
|
+
export { useCurrentBreakpointName } from './system/core/breakpoints/hooks/useCurrentBreakpointName';
|
|
21
|
+
export { useWindowSize } from './system/core/breakpoints/hooks/useWindowSize';
|
|
22
|
+
export type { SwitchBreakpointsProps } from './system/core/breakpoints/SwitchBreakpoins';
|
|
23
|
+
export { SwitchBreakpoints } from './system/core/breakpoints/SwitchBreakpoins';
|
|
24
|
+
export type { ValueForBreakpoint } from './system/core/breakpoints/utils/breakpointsUtils';
|
|
25
|
+
export { getValueForBreakpoint } from './system/core/breakpoints/utils/breakpointsUtils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeDecorator } from '@storybook/preview-api';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
import { BumperProvider } from '
|
|
3
|
+
import { BumperProvider } from '../../system/core/provider/BumperProvider';
|
|
4
4
|
|
|
5
5
|
export const BumperDecorator = makeDecorator({
|
|
6
6
|
name: 'BumperDecorator',
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { styled } from '@tamagui/core';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import type { Except } from 'type-fest';
|
|
4
|
-
import type
|
|
5
|
-
import { VStack } from '../components/primitives/Stack';
|
|
4
|
+
import { VStack, type VStackProps } from '../../system/core/primitives/Stack';
|
|
6
5
|
import { StoryTitle } from './StoryTitle';
|
|
7
6
|
|
|
8
7
|
const InternalStorySection = styled(VStack, {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { Meta, StoryFn } from '@storybook/react';
|
|
2
2
|
import type { FC } from 'react';
|
|
3
|
-
import { StorySection } from '
|
|
3
|
+
import { StorySection } from '../../../shared/storybook/StorySection';
|
|
4
|
+
import { VStack } from '../../core/primitives/Stack';
|
|
5
|
+
import { View } from '../../core/primitives/View';
|
|
4
6
|
import type {
|
|
5
7
|
BodyFontVariants,
|
|
6
8
|
ContentCapsVariants,
|
|
7
9
|
FontVariants,
|
|
8
10
|
HeadingFontVariants,
|
|
9
11
|
LabelFontVariants,
|
|
10
|
-
} from '../../tokens/fonts';
|
|
11
|
-
import { VStack } from '../primitives/Stack';
|
|
12
|
-
import { View } from '../primitives/View';
|
|
12
|
+
} from '../../core/tokens/fonts';
|
|
13
13
|
import type { TypographyTextProps } from './Typography';
|
|
14
14
|
import { Typography } from './Typography';
|
|
15
15
|
|
|
@@ -8,7 +8,7 @@ import type {
|
|
|
8
8
|
FontVariants,
|
|
9
9
|
HeadingFontVariants,
|
|
10
10
|
LabelFontVariants,
|
|
11
|
-
} from '../../tokens/fonts';
|
|
11
|
+
} from '../../core/tokens/fonts';
|
|
12
12
|
import { getVariantAndWeightValues } from './utils/getVariantAndWeightValues';
|
|
13
13
|
|
|
14
14
|
// Should use type from tamagui (PropsWithoutMediaStyles) when fixed: https://github.com/tamagui/tamagui/pull/3783
|