@sanity/ui 3.1.10 → 3.1.11

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,5 +1,5 @@
1
1
  "use strict";
2
- var theme = require("@sanity/ui/theme"), jsxRuntime = require("react/jsx-runtime"), reactCompilerRuntime = require("react-compiler-runtime"), react = require("react"), styledComponents = require("styled-components"), ReactIs = require("react-is"), icons = require("@sanity/icons"), reactDom$1 = require("@floating-ui/react-dom"), framerMotion = require("framer-motion"), resizeObserver = require("@juggle/resize-observer"), reactDom = require("react-dom"), useEffectEvent = require("use-effect-event");
2
+ var theme = require("@sanity/ui/theme"), jsxRuntime = require("react/jsx-runtime"), reactCompilerRuntime = require("react-compiler-runtime"), react = require("react"), styledComponents = require("styled-components"), ReactIs = require("react-is"), icons = require("@sanity/icons"), reactDom$1 = require("@floating-ui/react-dom"), react$1 = require("motion/react"), resizeObserver = require("@juggle/resize-observer"), reactDom = require("react-dom"), useEffectEvent = require("use-effect-event");
3
3
  function _interopDefaultCompat(e) {
4
4
  return e && typeof e == "object" && "default" in e ? e : { default: e };
5
5
  }
@@ -3571,10 +3571,10 @@ function calcMaxWidth(params) {
3571
3571
  if (!(currentWidth === void 0 && boundaryWidth === void 0))
3572
3572
  return Math.min(currentWidth ?? 1 / 0, (boundaryWidth || 1 / 0) - DEFAULT_POPOVER_PADDING * 2);
3573
3573
  }
3574
- const MotionCard$1 = styledComponents.styled(framerMotion.motion.create(Card)).withConfig({
3574
+ const MotionCard$1 = styledComponents.styled(react$1.motion.create(Card)).withConfig({
3575
3575
  displayName: "MotionCard",
3576
3576
  componentId: "sc-ihg31s-0"
3577
- })`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`, MotionFlex = styledComponents.styled(framerMotion.motion.create(Flex)).withConfig({
3577
+ })`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`, MotionFlex = styledComponents.styled(react$1.motion.create(Flex)).withConfig({
3578
3578
  displayName: "MotionFlex",
3579
3579
  componentId: "sc-ihg31s-1"
3580
3580
  })`will-change:opacity;`, PopoverCard = react.forwardRef(function(props, ref) {
@@ -3836,7 +3836,7 @@ const ViewportOverlay = () => {
3836
3836
  $[116] !== open || $[117] !== popover || $[118] !== portal ? (t38 = open && (portal ? /* @__PURE__ */ jsxRuntime.jsx(Portal, { __unstable_name: typeof portal == "string" ? portal : void 0, children: popover }) : popover), $[116] = open, $[117] = popover, $[118] = portal, $[119] = t38) : t38 = $[119];
3837
3837
  const children = t38;
3838
3838
  let t39;
3839
- $[120] !== animate || $[121] !== children ? (t39 = animate ? /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children }) : children, $[120] = animate, $[121] = children, $[122] = t39) : t39 = $[122];
3839
+ $[120] !== animate || $[121] !== children ? (t39 = animate ? /* @__PURE__ */ jsxRuntime.jsx(react$1.AnimatePresence, { children }) : children, $[120] = animate, $[121] = children, $[122] = t39) : t39 = $[122];
3840
3840
  let t40;
3841
3841
  return $[123] !== child || $[124] !== t39 ? (t40 = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3842
3842
  t39,
@@ -4732,7 +4732,7 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
4732
4732
  right: ["right-end", "right-start", "left", "top", "bottom"],
4733
4733
  "right-start": ["right", "right-end", "left-start", "top-start", "bottom-start"],
4734
4734
  "right-end": ["right", "right-start", "left-end", "top-end", "bottom-end"]
4735
- }, MotionCard = styledComponents.styled(framerMotion.motion.create(Card)).withConfig({
4735
+ }, MotionCard = styledComponents.styled(react$1.motion.create(Card)).withConfig({
4736
4736
  displayName: "MotionCard",
4737
4737
  componentId: "sc-1xn138w-0"
4738
4738
  })`will-change:transform;`, TooltipCard = react.forwardRef(function(props, ref) {
@@ -5005,7 +5005,7 @@ const StyledTooltip = styledComponents.styled(Layer).withConfig({
5005
5005
  $[127] !== portalProp || $[128] !== showTooltip || $[129] !== tooltip ? (t38 = showTooltip && (portalProp ? /* @__PURE__ */ jsxRuntime.jsx(Portal, { __unstable_name: typeof portalProp == "string" ? portalProp : void 0, children: tooltip }) : tooltip), $[127] = portalProp, $[128] = showTooltip, $[129] = tooltip, $[130] = t38) : t38 = $[130];
5006
5006
  const children = t38;
5007
5007
  let t39;
5008
- $[131] !== animate || $[132] !== children ? (t39 = animate ? /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children }) : children, $[131] = animate, $[132] = children, $[133] = t39) : t39 = $[133];
5008
+ $[131] !== animate || $[132] !== children ? (t39 = animate ? /* @__PURE__ */ jsxRuntime.jsx(react$1.AnimatePresence, { children }) : children, $[131] = animate, $[132] = children, $[133] = t39) : t39 = $[133];
5009
5009
  let t40;
5010
5010
  return $[134] !== child || $[135] !== t39 ? (t40 = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5011
5011
  t39,