@sanity/ui 3.1.8 → 3.1.10

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.
@@ -3025,7 +3025,7 @@ const StyledArrow = /* @__PURE__ */ styledComponents.styled.div.withConfig({
3025
3025
  displayName: "ShapePath",
3026
3026
  componentId: "sc-12vzy6c-2"
3027
3027
  })`fill:var(--card-bg-color);`, Arrow = react.forwardRef(function(props, ref) {
3028
- const $ = reactCompilerRuntime.c(24);
3028
+ const $ = reactCompilerRuntime.c(29);
3029
3029
  let h, restProps, t0, w;
3030
3030
  $[0] !== props ? ({
3031
3031
  width: w,
@@ -3035,40 +3035,47 @@ const StyledArrow = /* @__PURE__ */ styledComponents.styled.div.withConfig({
3035
3035
  } = props, $[0] = props, $[1] = h, $[2] = restProps, $[3] = t0, $[4] = w) : (h = $[1], restProps = $[2], t0 = $[3], w = $[4]);
3036
3036
  const radius = t0 === void 0 ? 0 : t0, {
3037
3037
  card
3038
- } = useTheme_v2(), strokeWidth = card.shadow.outline, center = w / 2, points = [{
3039
- x: 0,
3040
- y: 0
3041
- }, {
3042
- x: radius,
3043
- y: 0,
3044
- radius
3045
- }, {
3046
- x: center,
3047
- y: h - 1,
3048
- radius
3049
- }, {
3050
- x: w - radius,
3051
- y: 0,
3052
- radius
3053
- }, {
3054
- x: w,
3055
- y: 0
3056
- }], cmds = getRoundedCommands(points), path = compileCommands(cmds), strokePath = `${path}`, fillPath = `${path} M ${w} -1 M 0 -1 Z`, t1 = `0 0 ${w} ${w}`;
3057
- let t2;
3058
- $[5] !== strokeWidth || $[6] !== w ? (t2 = /* @__PURE__ */ jsxRuntime.jsx("mask", { id: "stroke-mask", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { x: 0, y: strokeWidth, width: w, height: w, fill: "white" }) }), $[5] = strokeWidth, $[6] = w, $[7] = t2) : t2 = $[7];
3059
- const t3 = strokeWidth * 2;
3060
- let t4;
3061
- $[8] !== strokePath || $[9] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(StrokePath, { d: strokePath, mask: "url(#stroke-mask)", strokeWidth: t3 }), $[8] = strokePath, $[9] = t3, $[10] = t4) : t4 = $[10];
3038
+ } = useTheme_v2(), strokeWidth = card.shadow.outline, center = w / 2;
3039
+ let t1;
3040
+ if ($[5] !== center || $[6] !== h || $[7] !== radius || $[8] !== w) {
3041
+ const points = [{
3042
+ x: 0,
3043
+ y: 0
3044
+ }, {
3045
+ x: radius,
3046
+ y: 0,
3047
+ radius
3048
+ }, {
3049
+ x: center,
3050
+ y: h - 1,
3051
+ radius
3052
+ }, {
3053
+ x: w - radius,
3054
+ y: 0,
3055
+ radius
3056
+ }, {
3057
+ x: w,
3058
+ y: 0
3059
+ }], cmds = getRoundedCommands(points);
3060
+ t1 = compileCommands(cmds), $[5] = center, $[6] = h, $[7] = radius, $[8] = w, $[9] = t1;
3061
+ } else
3062
+ t1 = $[9];
3063
+ const path = t1, strokePath = `${path}`, fillPath = `${path} M ${w} -1 M 0 -1 Z`, t2 = `0 0 ${w} ${w}`;
3064
+ let t3;
3065
+ $[10] !== strokeWidth || $[11] !== w ? (t3 = /* @__PURE__ */ jsxRuntime.jsx("mask", { id: "stroke-mask", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { x: 0, y: strokeWidth, width: w, height: w, fill: "white" }) }), $[10] = strokeWidth, $[11] = w, $[12] = t3) : t3 = $[12];
3066
+ const t4 = strokeWidth * 2;
3062
3067
  let t5;
3063
- $[11] !== fillPath ? (t5 = /* @__PURE__ */ jsxRuntime.jsx(ShapePath, { d: fillPath }), $[11] = fillPath, $[12] = t5) : t5 = $[12];
3068
+ $[13] !== strokePath || $[14] !== t4 ? (t5 = /* @__PURE__ */ jsxRuntime.jsx(StrokePath, { d: strokePath, mask: "url(#stroke-mask)", strokeWidth: t4 }), $[13] = strokePath, $[14] = t4, $[15] = t5) : t5 = $[15];
3064
3069
  let t6;
3065
- $[13] !== t1 || $[14] !== t2 || $[15] !== t4 || $[16] !== t5 || $[17] !== w ? (t6 = /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: w, height: w, viewBox: t1, children: [
3066
- t2,
3067
- t4,
3068
- t5
3069
- ] }), $[13] = t1, $[14] = t2, $[15] = t4, $[16] = t5, $[17] = w, $[18] = t6) : t6 = $[18];
3070
+ $[16] !== fillPath ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(ShapePath, { d: fillPath }), $[16] = fillPath, $[17] = t6) : t6 = $[17];
3070
3071
  let t7;
3071
- return $[19] !== ref || $[20] !== restProps || $[21] !== t6 || $[22] !== w ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(StyledArrow, { ...restProps, $w: w, ref, children: t6 }), $[19] = ref, $[20] = restProps, $[21] = t6, $[22] = w, $[23] = t7) : t7 = $[23], t7;
3072
+ $[18] !== t2 || $[19] !== t3 || $[20] !== t5 || $[21] !== t6 || $[22] !== w ? (t7 = /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: w, height: w, viewBox: t2, children: [
3073
+ t3,
3074
+ t5,
3075
+ t6
3076
+ ] }), $[18] = t2, $[19] = t3, $[20] = t5, $[21] = t6, $[22] = w, $[23] = t7) : t7 = $[23];
3077
+ let t8;
3078
+ return $[24] !== ref || $[25] !== restProps || $[26] !== t7 || $[27] !== w ? (t8 = /* @__PURE__ */ jsxRuntime.jsx(StyledArrow, { ...restProps, $w: w, ref, children: t7 }), $[24] = ref, $[25] = restProps, $[26] = t7, $[27] = w, $[28] = t8) : t8 = $[28], t8;
3072
3079
  });
3073
3080
  Arrow.displayName = "ForwardRef(Arrow)";
3074
3081
  const BoundaryElementContext = createGlobalScopedContext("@sanity/ui/context/boundaryElement", null);