@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 +1 -1
- package/dist/index.esm.js +6 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/theme.esm.js +1 -1
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +1 -1
- package/dist/theme.js.map +1 -1
- package/package.json +1 -1
- package/src/core/components/toast/toastProvider.tsx +1 -1
- package/src/core/primitives/popover/popoverCard.tsx +2 -1
- package/src/core/primitives/tooltip/tooltipCard.tsx +2 -1
- package/src/theme/defaults/config.ts +1 -1
package/LICENSE
CHANGED
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: {
|