@tamagui/core 2.0.0-1768326993354 → 2.0.0-1768427228811

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/dist/native.cjs CHANGED
@@ -10862,14 +10862,14 @@ function createComponent(staticConfig) {
10862
10862
  var {
10863
10863
  context,
10864
10864
  isReactNative
10865
- } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? React.useContext(context) : void 0, overriddenContextProps = null;
10865
+ } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? React.useContext(context) : void 0, overriddenContextProps = null, componentContext = React.useContext(ComponentContext);
10866
10866
  var props = propsIn;
10867
10867
  if (styledContextValue || defaultProps2) {
10868
- var [nextProps, overrides] = mergeComponentProps(defaultProps2, styledContextValue, propsIn);
10868
+ var effectiveDefaults = defaultProps2, [nextProps, overrides] = mergeComponentProps(effectiveDefaults, styledContextValue, propsIn);
10869
10869
  nextProps && (props = nextProps), overriddenContextProps = overrides;
10870
10870
  }
10871
10871
  var componentName2 = props.componentName || staticConfig.componentName;
10872
- var componentContext = React.useContext(ComponentContext), groupContextParent = React.useContext(GroupContext), animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = useComponentState(props, (animationDriver == null ? void 0 : animationDriver.isStub) ? null : animationDriver, staticConfig), {
10872
+ var groupContextParent = React.useContext(GroupContext), animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = useComponentState(props, (animationDriver == null ? void 0 : animationDriver.isStub) ? null : animationDriver, staticConfig), {
10873
10873
  disabled,
10874
10874
  groupName,
10875
10875
  hasAnimationProp,
@@ -3561,14 +3561,14 @@ function createComponent(staticConfig) {
3561
3561
  var {
3562
3562
  context,
3563
3563
  isReactNative
3564
- } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? React.useContext(context) : void 0, overriddenContextProps = null;
3564
+ } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? React.useContext(context) : void 0, overriddenContextProps = null, componentContext = React.useContext(ComponentContext);
3565
3565
  var props = propsIn;
3566
3566
  if (styledContextValue || defaultProps) {
3567
- var [nextProps, overrides] = mergeComponentProps(defaultProps, styledContextValue, propsIn);
3567
+ var effectiveDefaults = defaultProps, [nextProps, overrides] = mergeComponentProps(effectiveDefaults, styledContextValue, propsIn);
3568
3568
  nextProps && (props = nextProps), overriddenContextProps = overrides;
3569
3569
  }
3570
3570
  var componentName2 = props.componentName || staticConfig.componentName;
3571
- var componentContext = React.useContext(ComponentContext), groupContextParent = React.useContext(GroupContext), animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = useComponentState(props, (animationDriver == null ? void 0 : animationDriver.isStub) ? null : animationDriver, staticConfig), {
3571
+ var groupContextParent = React.useContext(GroupContext), animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = useComponentState(props, (animationDriver == null ? void 0 : animationDriver.isStub) ? null : animationDriver, staticConfig), {
3572
3572
  disabled,
3573
3573
  groupName,
3574
3574
  hasAnimationProp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "2.0.0-1768326993354",
3
+ "version": "2.0.0-1768427228811",
4
4
  "type": "module",
5
5
  "source": "src/index.tsx",
6
6
  "main": "dist/cjs",
@@ -33,18 +33,18 @@
33
33
  "native-test.d.ts"
34
34
  ],
35
35
  "dependencies": {
36
- "@tamagui/helpers": "2.0.0-1768326993354",
37
- "@tamagui/react-native-media-driver": "2.0.0-1768326993354",
38
- "@tamagui/react-native-use-pressable": "2.0.0-1768326993354",
39
- "@tamagui/react-native-use-responder-events": "2.0.0-1768326993354",
40
- "@tamagui/use-element-layout": "2.0.0-1768326993354",
41
- "@tamagui/use-event": "2.0.0-1768326993354",
42
- "@tamagui/web": "2.0.0-1768326993354"
36
+ "@tamagui/helpers": "2.0.0-1768427228811",
37
+ "@tamagui/react-native-media-driver": "2.0.0-1768427228811",
38
+ "@tamagui/react-native-use-pressable": "2.0.0-1768427228811",
39
+ "@tamagui/react-native-use-responder-events": "2.0.0-1768427228811",
40
+ "@tamagui/use-element-layout": "2.0.0-1768427228811",
41
+ "@tamagui/use-event": "2.0.0-1768427228811",
42
+ "@tamagui/web": "2.0.0-1768427228811"
43
43
  },
44
44
  "devDependencies": {
45
- "@tamagui/build": "2.0.0-1768326993354",
46
- "@tamagui/native-bundle": "2.0.0-1768326993354",
47
- "@tamagui/react-native-web-lite": "2.0.0-1768326993354",
45
+ "@tamagui/build": "2.0.0-1768427228811",
46
+ "@tamagui/native-bundle": "2.0.0-1768427228811",
47
+ "@tamagui/react-native-web-lite": "2.0.0-1768427228811",
48
48
  "@testing-library/react": "^16.1.0",
49
49
  "csstype": "^3.0.10",
50
50
  "react": "*",