@sanity/ui 2.0.0-beta.12 → 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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023–2024 Sanity.io
3
+ Copyright (c) 2024–2024 Sanity.io
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.esm.js CHANGED
@@ -3982,8 +3982,9 @@ const PopoverCard = memo(forwardRef(function PopoverCard2(props, ref) {
3982
3982
  top: y,
3983
3983
  width,
3984
3984
  zIndex,
3985
+ willChange: animate ? "transform" : void 0,
3985
3986
  ...style
3986
- }), [originX, originY, strategy, style, width, x, y, zIndex]);
3987
+ }), [animate, originX, originY, strategy, style, width, x, y, zIndex]);
3987
3988
  const arrowStyle = useMemo(() => ({
3988
3989
  left: arrowX !== null ? arrowX : void 0,
3989
3990
  top: arrowY !== null ? arrowY : void 0,
@@ -4852,8 +4853,9 @@ const TooltipCard = memo(forwardRef(function TooltipCard2(props, ref) {
4852
4853
  const rootStyle = useMemo(() => ({
4853
4854
  originX,
4854
4855
  originY,
4856
+ willChange: animate ? "transform" : void 0,
4855
4857
  ...style
4856
- }), [originX, originY, style]);
4858
+ }), [animate, originX, originY, style]);
4857
4859
  const arrowStyle = useMemo(() => ({
4858
4860
  left: arrowX !== null ? arrowX : void 0,
4859
4861
  top: arrowY !== null ? arrowY : void 0,
@@ -7271,7 +7273,8 @@ function ToastProvider(props) {
7271
7273
  initial: {
7272
7274
  opacity: 0,
7273
7275
  y: 32,
7274
- scale: 0.25
7276
+ scale: 0.25,
7277
+ willChange: "transform"
7275
7278
  },
7276
7279
  layout: "position",
7277
7280
  transition: {