@ornikar/bumper 2.7.0 → 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.
Files changed (147) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/definitions/index.d.ts +19 -19
  3. package/dist/definitions/index.d.ts.map +1 -1
  4. package/dist/definitions/shared/storybook/BumperDecorator.d.ts.map +1 -0
  5. package/dist/definitions/{story-components → shared/storybook}/StorySection.d.ts +1 -1
  6. package/dist/definitions/shared/storybook/StorySection.d.ts.map +1 -0
  7. package/dist/definitions/{story-components → shared/storybook}/StoryTitle.d.ts +1 -1
  8. package/dist/definitions/shared/storybook/StoryTitle.d.ts.map +1 -0
  9. package/dist/definitions/{components → system/content}/typography/Typography.d.ts +1 -1
  10. package/dist/definitions/system/content/typography/Typography.d.ts.map +1 -0
  11. package/dist/definitions/{components → system/content}/typography/utils/getVariantAndWeightValues.d.ts +1 -1
  12. package/dist/definitions/system/content/typography/utils/getVariantAndWeightValues.d.ts.map +1 -0
  13. package/dist/definitions/system/core/breakpoints/SwitchBreakpoins.d.ts.map +1 -0
  14. package/dist/definitions/{themes/utils/breakpoints.d.ts → system/core/breakpoints/constants.d.ts} +1 -1
  15. package/dist/definitions/system/core/breakpoints/constants.d.ts.map +1 -0
  16. package/dist/definitions/system/core/breakpoints/hooks/useBreakpointValue.d.ts.map +1 -0
  17. package/dist/definitions/system/core/breakpoints/hooks/useCurrentBreakpointName.d.ts +3 -0
  18. package/dist/definitions/system/core/breakpoints/hooks/useCurrentBreakpointName.d.ts.map +1 -0
  19. package/dist/definitions/system/core/breakpoints/hooks/useWindowSize.d.ts.map +1 -0
  20. package/dist/definitions/{components → system/core}/breakpoints/utils/breakpointsUtils.d.ts +1 -1
  21. package/dist/definitions/system/core/breakpoints/utils/breakpointsUtils.d.ts.map +1 -0
  22. package/dist/definitions/system/core/primitives/Center.d.ts.map +1 -0
  23. package/dist/definitions/system/core/primitives/Pressable.d.ts.map +1 -0
  24. package/dist/definitions/system/core/primitives/Stack.d.ts.map +1 -0
  25. package/dist/definitions/system/core/primitives/View.d.ts.map +1 -0
  26. package/dist/definitions/system/core/provider/BumperProvider.d.ts.map +1 -0
  27. package/dist/definitions/system/core/themes/light.d.ts.map +1 -0
  28. package/dist/definitions/system/core/tokens/fonts.d.ts +17 -0
  29. package/dist/definitions/system/core/tokens/fonts.d.ts.map +1 -0
  30. package/dist/definitions/system/core/tokens/palettes/deepPurpleColorPalette.d.ts.map +1 -0
  31. package/dist/definitions/system/core/tokens/radius.d.ts.map +1 -0
  32. package/dist/definitions/system/core/tokens/size.d.ts.map +1 -0
  33. package/dist/definitions/system/core/tokens/space.d.ts.map +1 -0
  34. package/dist/definitions/tamagui.config.d.ts +37 -3
  35. package/dist/definitions/tamagui.config.d.ts.map +1 -1
  36. package/dist/index-metro.es.android.js +25 -50
  37. package/dist/index-metro.es.android.js.map +1 -1
  38. package/dist/index-metro.es.ios.js +25 -50
  39. package/dist/index-metro.es.ios.js.map +1 -1
  40. package/dist/{index-node-22.17.cjs.js → index-node-22.22.cjs.js} +26 -51
  41. package/dist/index-node-22.22.cjs.js.map +1 -0
  42. package/dist/{index-node-22.17.cjs.web.js → index-node-22.22.cjs.web.js} +26 -51
  43. package/dist/index-node-22.22.cjs.web.js.map +1 -0
  44. package/dist/{index-node-22.17.es.mjs → index-node-22.22.es.mjs} +26 -51
  45. package/dist/index-node-22.22.es.mjs.map +1 -0
  46. package/dist/{index-node-22.17.es.web.mjs → index-node-22.22.es.web.mjs} +26 -51
  47. package/dist/index-node-22.22.es.web.mjs.map +1 -0
  48. package/dist/index.es.js +19 -44
  49. package/dist/index.es.js.map +1 -1
  50. package/dist/index.es.web.js +19 -44
  51. package/dist/index.es.web.js.map +1 -1
  52. package/dist/tsbuildinfo +1 -1
  53. package/package.json +15 -15
  54. package/src/index.ts +19 -19
  55. package/src/{core → shared/storybook}/BumperDecorator.tsx +1 -1
  56. package/src/{story-components → shared/storybook}/StorySection.tsx +1 -2
  57. package/src/{story-components → shared/storybook}/StoryTitle.tsx +1 -1
  58. package/src/{components → system/content}/typography/Typography.stories.tsx +4 -4
  59. package/src/{components → system/content}/typography/Typography.tsx +1 -1
  60. package/src/{components → system/content}/typography/__snapshots__/Typography.stories.tsx.snap +75 -75
  61. package/src/{components → system/content}/typography/__snapshots_web__/Typography.stories.tsx.snap +76 -76
  62. package/src/{components → system/content}/typography/utils/getVariantAndWeightValues.test.tsx +1 -1
  63. package/src/{components → system/content}/typography/utils/getVariantAndWeightValues.tsx +2 -2
  64. package/src/{components → system/core}/breakpoints/__snapshots_web__/breakpoints.stories.tsx.snap +1 -1
  65. package/src/{components → system/core}/breakpoints/breakpoints.stories.tsx +1 -1
  66. package/src/{components → system/core}/breakpoints/hooks/useBreakpointValue.test.ts +1 -1
  67. package/src/{components → system/core}/breakpoints/hooks/useCurrentBreakpointName.test.ts +1 -1
  68. package/src/{components → system/core}/breakpoints/hooks/useCurrentBreakpointName.ts +1 -1
  69. package/src/{components → system/core}/breakpoints/utils/breakpointsUtils.test.ts +1 -1
  70. package/src/{components → system/core}/breakpoints/utils/breakpointsUtils.ts +1 -1
  71. package/src/{components → system/core}/primitives/Pressable.stories.tsx +1 -1
  72. package/src/{components → system/core}/primitives/__snapshots_web__/Center.stories.tsx.snap +1 -1
  73. package/src/{components → system/core}/primitives/__snapshots_web__/Pressable.stories.tsx.snap +1 -1
  74. package/src/{components → system/core}/primitives/__snapshots_web__/Stack.stories.tsx.snap +1 -1
  75. package/src/{components → system/core}/primitives/__snapshots_web__/View.stories.tsx.snap +1 -1
  76. package/src/{core → system/core/provider}/BumperProvider.tsx +1 -1
  77. package/src/{themes → system/core/themes}/__snapshots__/light.stories.tsx.snap +1 -1
  78. package/src/{themes → system/core/themes}/__snapshots_web__/light.stories.tsx.snap +2 -2
  79. package/src/{themes → system/core/themes}/light.stories.tsx +4 -4
  80. package/src/{themes → system/core/themes}/light.ts +3 -2
  81. package/src/{tokens → system/core/tokens}/fonts.ts +5 -16
  82. package/src/{tokens → system/core/tokens}/palettes/__snapshots__/deepPurpleColorPalette.stories.tsx.snap +1 -1
  83. package/src/{tokens → system/core/tokens}/palettes/__snapshots_web__/deepPurpleColorPalette.stories.tsx.snap +2 -2
  84. package/src/{tokens → system/core/tokens}/palettes/deepPurpleColorPalette.stories.tsx +3 -3
  85. package/src/tamagui.config.ts +16 -7
  86. package/dist/definitions/components/breakpoints/SwitchBreakpoins.d.ts.map +0 -1
  87. package/dist/definitions/components/breakpoints/hooks/useBreakpointValue.d.ts.map +0 -1
  88. package/dist/definitions/components/breakpoints/hooks/useCurrentBreakpointName.d.ts +0 -3
  89. package/dist/definitions/components/breakpoints/hooks/useCurrentBreakpointName.d.ts.map +0 -1
  90. package/dist/definitions/components/breakpoints/hooks/useWindowSize.d.ts.map +0 -1
  91. package/dist/definitions/components/breakpoints/utils/breakpointsUtils.d.ts.map +0 -1
  92. package/dist/definitions/components/primitives/Center.d.ts.map +0 -1
  93. package/dist/definitions/components/primitives/Pressable.d.ts.map +0 -1
  94. package/dist/definitions/components/primitives/Stack.d.ts.map +0 -1
  95. package/dist/definitions/components/primitives/View.d.ts.map +0 -1
  96. package/dist/definitions/components/typography/Typography.d.ts.map +0 -1
  97. package/dist/definitions/components/typography/utils/getVariantAndWeightValues.d.ts.map +0 -1
  98. package/dist/definitions/core/BumperDecorator.d.ts.map +0 -1
  99. package/dist/definitions/core/BumperProvider.d.ts.map +0 -1
  100. package/dist/definitions/story-components/StorySection.d.ts.map +0 -1
  101. package/dist/definitions/story-components/StoryTitle.d.ts.map +0 -1
  102. package/dist/definitions/themes/light.d.ts.map +0 -1
  103. package/dist/definitions/themes/utils/breakpoints.d.ts.map +0 -1
  104. package/dist/definitions/tokens/fonts.d.ts +0 -20
  105. package/dist/definitions/tokens/fonts.d.ts.map +0 -1
  106. package/dist/definitions/tokens/palettes/deepPurpleColorPalette.d.ts.map +0 -1
  107. package/dist/definitions/tokens/radius.d.ts.map +0 -1
  108. package/dist/definitions/tokens/size.d.ts.map +0 -1
  109. package/dist/definitions/tokens/space.d.ts.map +0 -1
  110. package/dist/index-node-22.17.cjs.js.map +0 -1
  111. package/dist/index-node-22.17.cjs.web.js.map +0 -1
  112. package/dist/index-node-22.17.es.mjs.map +0 -1
  113. package/dist/index-node-22.17.es.web.mjs.map +0 -1
  114. /package/dist/definitions/{core → shared/storybook}/BumperDecorator.d.ts +0 -0
  115. /package/dist/definitions/{components → system/core}/breakpoints/SwitchBreakpoins.d.ts +0 -0
  116. /package/dist/definitions/{components → system/core}/breakpoints/hooks/useBreakpointValue.d.ts +0 -0
  117. /package/dist/definitions/{components → system/core}/breakpoints/hooks/useWindowSize.d.ts +0 -0
  118. /package/dist/definitions/{components → system/core}/primitives/Center.d.ts +0 -0
  119. /package/dist/definitions/{components → system/core}/primitives/Pressable.d.ts +0 -0
  120. /package/dist/definitions/{components → system/core}/primitives/Stack.d.ts +0 -0
  121. /package/dist/definitions/{components → system/core}/primitives/View.d.ts +0 -0
  122. /package/dist/definitions/{core → system/core/provider}/BumperProvider.d.ts +0 -0
  123. /package/dist/definitions/{themes → system/core/themes}/light.d.ts +0 -0
  124. /package/dist/definitions/{tokens → system/core/tokens}/palettes/deepPurpleColorPalette.d.ts +0 -0
  125. /package/dist/definitions/{tokens → system/core/tokens}/radius.d.ts +0 -0
  126. /package/dist/definitions/{tokens → system/core/tokens}/size.d.ts +0 -0
  127. /package/dist/definitions/{tokens → system/core/tokens}/space.d.ts +0 -0
  128. /package/src/{components → system/core}/breakpoints/SwitchBreakpoins.tsx +0 -0
  129. /package/src/{components → system/core}/breakpoints/__snapshots__/breakpoints.stories.tsx.snap +0 -0
  130. /package/src/{themes/utils/breakpoints.ts → system/core/breakpoints/constants.ts} +0 -0
  131. /package/src/{components → system/core}/breakpoints/hooks/useBreakpointValue.ts +0 -0
  132. /package/src/{components → system/core}/breakpoints/hooks/useWindowSize.ts +0 -0
  133. /package/src/{components → system/core}/primitives/Center.stories.tsx +0 -0
  134. /package/src/{components → system/core}/primitives/Center.ts +0 -0
  135. /package/src/{components → system/core}/primitives/Pressable.tsx +0 -0
  136. /package/src/{components → system/core}/primitives/Stack.stories.tsx +0 -0
  137. /package/src/{components → system/core}/primitives/Stack.tsx +0 -0
  138. /package/src/{components → system/core}/primitives/View.stories.tsx +0 -0
  139. /package/src/{components → system/core}/primitives/View.ts +0 -0
  140. /package/src/{components → system/core}/primitives/__snapshots__/Center.stories.tsx.snap +0 -0
  141. /package/src/{components → system/core}/primitives/__snapshots__/Pressable.stories.tsx.snap +0 -0
  142. /package/src/{components → system/core}/primitives/__snapshots__/Stack.stories.tsx.snap +0 -0
  143. /package/src/{components → system/core}/primitives/__snapshots__/View.stories.tsx.snap +0 -0
  144. /package/src/{tokens → system/core/tokens}/palettes/deepPurpleColorPalette.ts +0 -0
  145. /package/src/{tokens → system/core/tokens}/radius.ts +0 -0
  146. /package/src/{tokens → system/core/tokens}/size.ts +0 -0
  147. /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.0",
3
+ "version": "2.7.2-canary.1768565076.501fccaa5e4ef824bb180cfd40a7e74454a29a3e.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "directory": "@ornikar/bumper",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "sideEffects": false,
14
14
  "engines": {
15
- "node": ">=22.17.0"
15
+ "node": ">=22.22.0"
16
16
  },
17
17
  "scripts": {
18
18
  "build": "ORNIKAR_ONLY=bumper yarn ../.. build",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@storybook/preview-api": ">=8.6.15",
35
- "react": "^18.3.1",
36
- "react-dom": "^18.3.1",
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": "18.3.27",
56
- "react": "18.3.1",
57
- "react-dom": "18.3.1",
58
- "react-native": "0.76.9",
59
- "react-test-renderer": "18.3.1"
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": {
@@ -64,14 +64,14 @@
64
64
  "types": "./dist/definitions/index.d.ts",
65
65
  "node": {
66
66
  "web": {
67
- "require": "./dist/index-node-22.17.cjs.web.js",
68
- "import": "./dist/index-node-22.17.es.web.mjs"
67
+ "require": "./dist/index-node-22.22.cjs.web.js",
68
+ "import": "./dist/index-node-22.22.es.web.mjs"
69
69
  },
70
- "import": "./dist/index-node-22.17.es.mjs",
71
- "require": "./dist/index-node-22.17.cjs.js"
70
+ "import": "./dist/index-node-22.22.es.mjs",
71
+ "require": "./dist/index-node-22.22.cjs.js"
72
72
  },
73
73
  "react-native": {
74
- "jest": "./dist/index-node-22.17.cjs.js"
74
+ "jest": "./dist/index-node-22.22.cjs.js"
75
75
  },
76
76
  "browser": {
77
77
  "import": "./dist/index.es.web.js"
@@ -81,7 +81,7 @@
81
81
  "./src/tamagui.config.ts": "./src/tamagui.config.ts"
82
82
  },
83
83
  "browser": "./dist/index.es",
84
- "main": "./dist/index-node-22.17.es.mjs",
84
+ "main": "./dist/index-node-22.22.es.mjs",
85
85
  "react-native": "./dist/index-metro.es",
86
86
  "types": "./dist/definitions/index.d.ts"
87
87
  }
package/src/index.ts CHANGED
@@ -1,25 +1,25 @@
1
- export { BumperDecorator } from './core/BumperDecorator';
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 './components/primitives/Center';
6
- export { Center } from './components/primitives/Center';
7
- export type { PressableProps } from './components/primitives/Pressable';
8
- export { Pressable } from './components/primitives/Pressable';
9
- export type { HStackProps, StackProps, VStackProps } from './components/primitives/Stack';
10
- export { HStack, Stack, VStack } from './components/primitives/Stack';
11
- export type { ViewProps } from './components/primitives/View';
12
- export { View } from './components/primitives/View';
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 './components/typography/Typography';
16
- export { Typography } from './components/typography/Typography';
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 './components/breakpoints/hooks/useBreakpointValue';
20
- export { useCurrentBreakpointName } from './components/breakpoints/hooks/useCurrentBreakpointName';
21
- export { useWindowSize } from './components/breakpoints/hooks/useWindowSize';
22
- export type { SwitchBreakpointsProps } from './components/breakpoints/SwitchBreakpoins';
23
- export { SwitchBreakpoints } from './components/breakpoints/SwitchBreakpoins';
24
- export type { ValueForBreakpoint } from './components/breakpoints/utils/breakpointsUtils';
25
- export { getValueForBreakpoint } from './components/breakpoints/utils/breakpointsUtils';
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 './BumperProvider';
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 { VStackProps } from '../components/primitives/Stack';
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,5 +1,5 @@
1
1
  import { styled } from '@tamagui/core';
2
- import { Typography } from '../components/typography/Typography';
2
+ import { Typography } from '../../system/content/typography/Typography';
3
3
 
4
4
  export const StoryTitle = styled(Typography.Text, {
5
5
  variants: {
@@ -1,15 +1,15 @@
1
1
  import type { Meta, StoryFn } from '@storybook/react';
2
2
  import type { FC } from 'react';
3
- import { StorySection } from '../../story-components/StorySection';
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