@sanity/ui 2.0.0-beta.13 → 2.0.0-beta.14

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/index.js CHANGED
@@ -3995,8 +3995,9 @@ const PopoverCard = react.memo(react.forwardRef(function PopoverCard2(props, ref
3995
3995
  top: y,
3996
3996
  width,
3997
3997
  zIndex,
3998
+ willChange: animate ? "transform" : void 0,
3998
3999
  ...style
3999
- }), [originX, originY, strategy, style, width, x, y, zIndex]);
4000
+ }), [animate, originX, originY, strategy, style, width, x, y, zIndex]);
4000
4001
  const arrowStyle = react.useMemo(() => ({
4001
4002
  left: arrowX !== null ? arrowX : void 0,
4002
4003
  top: arrowY !== null ? arrowY : void 0,
@@ -4865,8 +4866,9 @@ const TooltipCard = react.memo(react.forwardRef(function TooltipCard2(props, ref
4865
4866
  const rootStyle = react.useMemo(() => ({
4866
4867
  originX,
4867
4868
  originY,
4869
+ willChange: animate ? "transform" : void 0,
4868
4870
  ...style
4869
- }), [originX, originY, style]);
4871
+ }), [animate, originX, originY, style]);
4870
4872
  const arrowStyle = react.useMemo(() => ({
4871
4873
  left: arrowX !== null ? arrowX : void 0,
4872
4874
  top: arrowY !== null ? arrowY : void 0,
@@ -7284,7 +7286,8 @@ function ToastProvider(props) {
7284
7286
  initial: {
7285
7287
  opacity: 0,
7286
7288
  y: 32,
7287
- scale: 0.25
7289
+ scale: 0.25,
7290
+ willChange: "transform"
7288
7291
  },
7289
7292
  layout: "position",
7290
7293
  transition: {