@sanity/ui 3.1.9 → 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.
- package/dist/_chunks-cjs/_visual-editing.js +39 -32
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-cjs/refractor.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +39 -32
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_chunks-es/refractor.mjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -5
- package/src/core/components/tree/tree.tsx +0 -1
- package/src/core/hooks/useClickOutside.test.tsx +1 -1
- package/src/core/utils/virtualList/virtualList.tsx +0 -1
|
@@ -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(
|
|
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
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
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
|
-
$[
|
|
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
|
-
$[
|
|
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
|
-
|
|
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);
|