@tamagui/core 2.0.0-rc.18 → 2.0.0-rc.19

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.
@@ -1,4 +1,4 @@
1
1
  $ tamagui-build
2
- built @tamagui/core in 678 ms
2
+ built @tamagui/core in 664 ms
3
3
  Running afterBuild script...
4
- afterBuild completed in 695 ms
4
+ afterBuild completed in 959 ms
package/dist/native.cjs CHANGED
@@ -321,6 +321,7 @@ const defaultProps$1 = {
321
321
  onTouchStartCapture: true
322
322
  }, styleProps = {
323
323
  classList: true,
324
+ className: true,
324
325
  style: true
325
326
  }, forwardedProps = {
326
327
  defaultProps: defaultProps$1,
@@ -10225,10 +10226,13 @@ function parseBackgroundImage(css, tokenMap) {
10225
10226
  var direction, startIdx = 0, firstPart = parts[0].trim();
10226
10227
  (firstPart.startsWith("to ") || /^\d+(\.\d+)?(deg|rad|turn|grad)$/.test(firstPart)) && (direction = firstPart, startIdx = 1);
10227
10228
  for (var colorStops = [], i = startIdx; i < parts.length; i++) {
10228
- var stopParts = parts[i].trim().split(/\s+/), colorRaw = stopParts[0], color = resolveColor(colorRaw, tokenMap), positions = stopParts.slice(1), stop = {
10229
- color
10230
- };
10231
- positions.length > 0 && (stop.positions = positions), colorStops.push(stop);
10229
+ var stopParts = parts[i].trim().match(/\S+\([^)]*\)|\S+/g);
10230
+ if (stopParts) {
10231
+ var colorRaw = stopParts[0], color = resolveColor(colorRaw, tokenMap), positions = stopParts.slice(1), stop = {
10232
+ color
10233
+ };
10234
+ positions.length > 0 && (stop.positions = positions), colorStops.push(stop);
10235
+ }
10232
10236
  }
10233
10237
  var gradient = {
10234
10238
  type: "linear-gradient",
@@ -11909,8 +11913,9 @@ function createComponent(staticConfig) {
11909
11913
  splitStyles && (splitStyles.effectiveTransition = effectiveTransition), stateRef.current.prevPseudoState = extractPseudoState(state2);
11910
11914
  var animations = useAnimations({
11911
11915
  props: propsWithAnimation,
11912
- // if hydrating, send empty style
11913
- style: splitStylesStyle || {},
11916
+ // clone style to prevent animation driver mutations from leaking to viewProps
11917
+ // during SSR/pre-hydration (CSS driver mutates style.transition in place)
11918
+ style: isHydrated ? splitStylesStyle || {} : __spreadValues({}, splitStylesStyle),
11914
11919
  // @ts-ignore
11915
11920
  styleState: splitStyles,
11916
11921
  useStyleEmitter,
@@ -2506,10 +2506,13 @@ function parseBackgroundImage(css, tokenMap) {
2506
2506
  var direction, startIdx = 0, firstPart = parts[0].trim();
2507
2507
  (firstPart.startsWith("to ") || /^\d+(\.\d+)?(deg|rad|turn|grad)$/.test(firstPart)) && (direction = firstPart, startIdx = 1);
2508
2508
  for (var colorStops = [], i = startIdx; i < parts.length; i++) {
2509
- var stopParts = parts[i].trim().split(/\s+/), colorRaw = stopParts[0], color = resolveColor(colorRaw, tokenMap), positions = stopParts.slice(1), stop = {
2510
- color
2511
- };
2512
- positions.length > 0 && (stop.positions = positions), colorStops.push(stop);
2509
+ var stopParts = parts[i].trim().match(/\S+\([^)]*\)|\S+/g);
2510
+ if (stopParts) {
2511
+ var colorRaw = stopParts[0], color = resolveColor(colorRaw, tokenMap), positions = stopParts.slice(1), stop = {
2512
+ color
2513
+ };
2514
+ positions.length > 0 && (stop.positions = positions), colorStops.push(stop);
2515
+ }
2513
2516
  }
2514
2517
  var gradient = {
2515
2518
  type: "linear-gradient",
@@ -4196,8 +4199,9 @@ function createComponent(staticConfig) {
4196
4199
  splitStyles && (splitStyles.effectiveTransition = effectiveTransition), stateRef.current.prevPseudoState = extractPseudoState(state2);
4197
4200
  var animations = useAnimations({
4198
4201
  props: propsWithAnimation,
4199
- // if hydrating, send empty style
4200
- style: splitStylesStyle || {},
4202
+ // clone style to prevent animation driver mutations from leaking to viewProps
4203
+ // during SSR/pre-hydration (CSS driver mutates style.transition in place)
4204
+ style: isHydrated ? splitStylesStyle || {} : __spreadValues({}, splitStylesStyle),
4201
4205
  // @ts-ignore
4202
4206
  styleState: splitStyles,
4203
4207
  useStyleEmitter,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "2.0.0-rc.18",
3
+ "version": "2.0.0-rc.19",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -79,17 +79,17 @@
79
79
  "clean:build": "tamagui-build clean:build"
80
80
  },
81
81
  "dependencies": {
82
- "@tamagui/helpers": "2.0.0-rc.18",
83
- "@tamagui/react-native-media-driver": "2.0.0-rc.18",
84
- "@tamagui/react-native-use-pressable": "2.0.0-rc.18",
85
- "@tamagui/use-element-layout": "2.0.0-rc.18",
86
- "@tamagui/use-event": "2.0.0-rc.18",
87
- "@tamagui/web": "2.0.0-rc.18"
82
+ "@tamagui/helpers": "2.0.0-rc.19",
83
+ "@tamagui/react-native-media-driver": "2.0.0-rc.19",
84
+ "@tamagui/react-native-use-pressable": "2.0.0-rc.19",
85
+ "@tamagui/use-element-layout": "2.0.0-rc.19",
86
+ "@tamagui/use-event": "2.0.0-rc.19",
87
+ "@tamagui/web": "2.0.0-rc.19"
88
88
  },
89
89
  "devDependencies": {
90
- "@tamagui/build": "2.0.0-rc.18",
91
- "@tamagui/native-bundle": "2.0.0-rc.18",
92
- "@tamagui/react-native-web-lite": "2.0.0-rc.18",
90
+ "@tamagui/build": "2.0.0-rc.19",
91
+ "@tamagui/native-bundle": "2.0.0-rc.19",
92
+ "@tamagui/react-native-web-lite": "2.0.0-rc.19",
93
93
  "@testing-library/react": "^16.1.0",
94
94
  "csstype": "^3.0.10",
95
95
  "react": ">=19",