@tamagui/core 1.144.0 → 1.144.1-1768163771506

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
@@ -10767,14 +10767,14 @@ function createComponent(staticConfig) {
10767
10767
  var {
10768
10768
  context,
10769
10769
  isReactNative
10770
- } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? React.useContext(context) : void 0, overriddenContextProps = null;
10770
+ } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? React.useContext(context) : void 0, overriddenContextProps = null, componentContext = React.useContext(ComponentContext);
10771
10771
  var props = propsIn;
10772
10772
  if (styledContextValue || defaultProps2) {
10773
- var [nextProps, overrides] = mergeComponentProps(defaultProps2, styledContextValue, propsIn);
10773
+ var effectiveDefaults = defaultProps2, [nextProps, overrides] = mergeComponentProps(effectiveDefaults, styledContextValue, propsIn);
10774
10774
  nextProps && (props = nextProps), overriddenContextProps = overrides;
10775
10775
  }
10776
10776
  var componentName2 = props.componentName || staticConfig.componentName;
10777
- 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), {
10777
+ 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), {
10778
10778
  disabled,
10779
10779
  groupName,
10780
10780
  hasAnimationProp,
@@ -3466,14 +3466,14 @@ function createComponent(staticConfig) {
3466
3466
  var {
3467
3467
  context,
3468
3468
  isReactNative
3469
- } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? React.useContext(context) : void 0, overriddenContextProps = null;
3469
+ } = staticConfig, debugProp = propsIn.debug, styledContextValue = context ? React.useContext(context) : void 0, overriddenContextProps = null, componentContext = React.useContext(ComponentContext);
3470
3470
  var props = propsIn;
3471
3471
  if (styledContextValue || defaultProps) {
3472
- var [nextProps, overrides] = mergeComponentProps(defaultProps, styledContextValue, propsIn);
3472
+ var effectiveDefaults = defaultProps, [nextProps, overrides] = mergeComponentProps(effectiveDefaults, styledContextValue, propsIn);
3473
3473
  nextProps && (props = nextProps), overriddenContextProps = overrides;
3474
3474
  }
3475
3475
  var componentName2 = props.componentName || staticConfig.componentName;
3476
- 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), {
3476
+ 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), {
3477
3477
  disabled,
3478
3478
  groupName,
3479
3479
  hasAnimationProp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "1.144.0",
3
+ "version": "1.144.1-1768163771506",
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": "1.144.0",
37
- "@tamagui/react-native-media-driver": "1.144.0",
38
- "@tamagui/react-native-use-pressable": "1.144.0",
39
- "@tamagui/react-native-use-responder-events": "1.144.0",
40
- "@tamagui/use-element-layout": "1.144.0",
41
- "@tamagui/use-event": "1.144.0",
42
- "@tamagui/web": "1.144.0"
36
+ "@tamagui/helpers": "1.144.1-1768163771506",
37
+ "@tamagui/react-native-media-driver": "1.144.1-1768163771506",
38
+ "@tamagui/react-native-use-pressable": "1.144.1-1768163771506",
39
+ "@tamagui/react-native-use-responder-events": "1.144.1-1768163771506",
40
+ "@tamagui/use-element-layout": "1.144.1-1768163771506",
41
+ "@tamagui/use-event": "1.144.1-1768163771506",
42
+ "@tamagui/web": "1.144.1-1768163771506"
43
43
  },
44
44
  "devDependencies": {
45
- "@tamagui/build": "1.144.0",
46
- "@tamagui/native-bundle": "1.144.0",
47
- "@tamagui/react-native-web-lite": "1.144.0",
45
+ "@tamagui/build": "1.144.1-1768163771506",
46
+ "@tamagui/native-bundle": "1.144.1-1768163771506",
47
+ "@tamagui/react-native-web-lite": "1.144.1-1768163771506",
48
48
  "@testing-library/react": "^16.1.0",
49
49
  "csstype": "^3.0.10",
50
50
  "react": "*",