@sanity/ui 2.8.15 → 2.8.16
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/index.esm.js +66 -254
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +324 -513
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -254
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { buildTheme, createColorTheme as createColorTheme$1, hexToRgb as hexToRgb$1, hslToRgb as hslToRgb$1, multiply as multiply$1, parseColor as parseColor$1, rgbToHex as rgbToHex$1, rgbToHsl as rgbToHsl$1, rgba as rgba$1, screen as screen$1, getTheme_v2, getScopedTheme } from "@sanity/ui/theme";
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import { c } from "react-compiler-runtime";
|
|
4
|
+
import { useMemo, useState, useRef, useEffect, useDebugValue, useImperativeHandle, useSyncExternalStore, createContext, useContext, forwardRef, useId, Children, isValidElement, cloneElement, useCallback, Component, memo, useLayoutEffect, useReducer, Fragment as Fragment$1, startTransition } from "react";
|
|
4
5
|
import ReactIs, { isValidElementType } from "react-is";
|
|
5
6
|
import { ThemeProvider as ThemeProvider$1, useTheme as useTheme$1, css, styled, keyframes } from "styled-components";
|
|
6
7
|
import { SpinnerIcon, CheckmarkIcon, RemoveIcon, ChevronDownIcon, CloseIcon, ChevronRightIcon, ToggleArrowRightIcon } from "@sanity/icons";
|
|
@@ -10,196 +11,7 @@ import { motion, AnimatePresence } from "framer-motion";
|
|
|
10
11
|
import { createPortal } from "react-dom";
|
|
11
12
|
import { useEffectEvent } from "use-effect-event";
|
|
12
13
|
import { getTheme_v2 as getTheme_v2$1 } from "./_legacy/getTheme_v2.esm.js";
|
|
13
|
-
const createColorTheme = createColorTheme$1, hexToRgb = hexToRgb$1, hslToRgb = hslToRgb$1, multiply = multiply$1, parseColor = parseColor$1, rgbToHex = rgbToHex$1, rgbToHsl = rgbToHsl$1, rgba = rgba$1, screen = screen$1, studioTheme = buildTheme()
|
|
14
|
-
var dist = {};
|
|
15
|
-
/**
|
|
16
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the MIT license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*
|
|
21
|
-
* @lightSyntaxTransform
|
|
22
|
-
* @noflow
|
|
23
|
-
* @nolint
|
|
24
|
-
* @preventMunge
|
|
25
|
-
* @preserve-invariant-messages
|
|
26
|
-
*/
|
|
27
|
-
var hasRequiredDist;
|
|
28
|
-
function requireDist() {
|
|
29
|
-
if (hasRequiredDist) return dist;
|
|
30
|
-
hasRequiredDist = 1;
|
|
31
|
-
var React = require$$0;
|
|
32
|
-
function _interopNamespaceDefault(e) {
|
|
33
|
-
var n = /* @__PURE__ */ Object.create(null);
|
|
34
|
-
return e && Object.keys(e).forEach(function(k) {
|
|
35
|
-
if (k !== "default") {
|
|
36
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
37
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
38
|
-
enumerable: !0,
|
|
39
|
-
get: function() {
|
|
40
|
-
return e[k];
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}), n.default = e, Object.freeze(n);
|
|
45
|
-
}
|
|
46
|
-
var React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React), _a, _b;
|
|
47
|
-
const {
|
|
48
|
-
useRef: useRef2,
|
|
49
|
-
useEffect: useEffect2,
|
|
50
|
-
isValidElement: isValidElement2
|
|
51
|
-
} = React__namespace, ReactSecretInternals = (_a = React__namespace.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE) !== null && _a !== void 0 ? _a : React__namespace.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, $empty = Symbol.for("react.memo_cache_sentinel"), c = typeof ((_b = React__namespace.__COMPILER_RUNTIME) === null || _b === void 0 ? void 0 : _b.c) == "function" ? React__namespace.__COMPILER_RUNTIME.c : function(size2) {
|
|
52
|
-
return React__namespace.useMemo(() => {
|
|
53
|
-
const $ = new Array(size2);
|
|
54
|
-
for (let ii = 0; ii < size2; ii++)
|
|
55
|
-
$[ii] = $empty;
|
|
56
|
-
return $[$empty] = !0, $;
|
|
57
|
-
}, []);
|
|
58
|
-
}, LazyGuardDispatcher = {};
|
|
59
|
-
["readContext", "useCallback", "useContext", "useEffect", "useImperativeHandle", "useInsertionEffect", "useLayoutEffect", "useMemo", "useReducer", "useRef", "useState", "useDebugValue", "useDeferredValue", "useTransition", "useMutableSource", "useSyncExternalStore", "useId", "unstable_isNewReconciler", "getCacheSignal", "getCacheForType", "useCacheRefresh"].forEach((name) => {
|
|
60
|
-
LazyGuardDispatcher[name] = () => {
|
|
61
|
-
throw new Error(`[React] Unexpected React hook call (${name}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `);
|
|
62
|
-
};
|
|
63
|
-
});
|
|
64
|
-
let originalDispatcher = null;
|
|
65
|
-
LazyGuardDispatcher.useMemoCache = (count) => {
|
|
66
|
-
if (originalDispatcher == null)
|
|
67
|
-
throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");
|
|
68
|
-
return originalDispatcher.useMemoCache(count);
|
|
69
|
-
};
|
|
70
|
-
var GuardKind;
|
|
71
|
-
(function(GuardKind2) {
|
|
72
|
-
GuardKind2[GuardKind2.PushGuardContext = 0] = "PushGuardContext", GuardKind2[GuardKind2.PopGuardContext = 1] = "PopGuardContext", GuardKind2[GuardKind2.PushExpectHook = 2] = "PushExpectHook", GuardKind2[GuardKind2.PopExpectHook = 3] = "PopExpectHook";
|
|
73
|
-
})(GuardKind || (GuardKind = {}));
|
|
74
|
-
function setCurrent(newDispatcher) {
|
|
75
|
-
return ReactSecretInternals.ReactCurrentDispatcher.current = newDispatcher, ReactSecretInternals.ReactCurrentDispatcher.current;
|
|
76
|
-
}
|
|
77
|
-
const guardFrames = [];
|
|
78
|
-
function $dispatcherGuard(kind) {
|
|
79
|
-
const curr = ReactSecretInternals.ReactCurrentDispatcher.current;
|
|
80
|
-
if (kind === GuardKind.PushGuardContext) {
|
|
81
|
-
if (guardFrames.push(curr), guardFrames.length === 1 && (originalDispatcher = curr), curr === LazyGuardDispatcher)
|
|
82
|
-
throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");
|
|
83
|
-
setCurrent(LazyGuardDispatcher);
|
|
84
|
-
} else if (kind === GuardKind.PopGuardContext) {
|
|
85
|
-
const lastFrame = guardFrames.pop();
|
|
86
|
-
if (lastFrame == null)
|
|
87
|
-
throw new Error("React Compiler internal error: unexpected null in guard stack");
|
|
88
|
-
guardFrames.length === 0 && (originalDispatcher = null), setCurrent(lastFrame);
|
|
89
|
-
} else if (kind === GuardKind.PushExpectHook)
|
|
90
|
-
guardFrames.push(curr), setCurrent(originalDispatcher);
|
|
91
|
-
else if (kind === GuardKind.PopExpectHook) {
|
|
92
|
-
const lastFrame = guardFrames.pop();
|
|
93
|
-
if (lastFrame == null)
|
|
94
|
-
throw new Error("React Compiler internal error: unexpected null in guard stack");
|
|
95
|
-
setCurrent(lastFrame);
|
|
96
|
-
} else
|
|
97
|
-
throw new Error("React Compiler internal error: unreachable block" + kind);
|
|
98
|
-
}
|
|
99
|
-
function $reset($) {
|
|
100
|
-
for (let ii = 0; ii < $.length; ii++)
|
|
101
|
-
$[ii] = $empty;
|
|
102
|
-
}
|
|
103
|
-
function $makeReadOnly() {
|
|
104
|
-
throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime");
|
|
105
|
-
}
|
|
106
|
-
const renderCounterRegistry = /* @__PURE__ */ new Map();
|
|
107
|
-
function clearRenderCounterRegistry() {
|
|
108
|
-
for (const counters of renderCounterRegistry.values())
|
|
109
|
-
counters.forEach((counter) => {
|
|
110
|
-
counter.count = 0;
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
function registerRenderCounter(name, val) {
|
|
114
|
-
let counters = renderCounterRegistry.get(name);
|
|
115
|
-
counters == null && (counters = /* @__PURE__ */ new Set(), renderCounterRegistry.set(name, counters)), counters.add(val);
|
|
116
|
-
}
|
|
117
|
-
function removeRenderCounter(name, val) {
|
|
118
|
-
const counters = renderCounterRegistry.get(name);
|
|
119
|
-
counters?.delete(val);
|
|
120
|
-
}
|
|
121
|
-
function useRenderCounter(name) {
|
|
122
|
-
const val = useRef2(null);
|
|
123
|
-
val.current != null && (val.current.count += 1), useEffect2(() => {
|
|
124
|
-
if (val.current == null) {
|
|
125
|
-
const counter = {
|
|
126
|
-
count: 0
|
|
127
|
-
};
|
|
128
|
-
registerRenderCounter(name, counter), val.current = counter;
|
|
129
|
-
}
|
|
130
|
-
return () => {
|
|
131
|
-
val.current !== null && removeRenderCounter(name, val.current);
|
|
132
|
-
};
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
const seenErrors = /* @__PURE__ */ new Set();
|
|
136
|
-
function $structuralCheck(oldValue, newValue, variableName, fnName, kind, loc) {
|
|
137
|
-
function error(l, r, path, depth) {
|
|
138
|
-
const str = `${fnName}:${loc} [${kind}] ${variableName}${path} changed from ${l} to ${r} at depth ${depth}`;
|
|
139
|
-
seenErrors.has(str) || (seenErrors.add(str), console.error(str));
|
|
140
|
-
}
|
|
141
|
-
const depthLimit = 2;
|
|
142
|
-
function recur(oldValue2, newValue2, path, depth) {
|
|
143
|
-
if (!(depth > depthLimit)) {
|
|
144
|
-
if (oldValue2 === newValue2)
|
|
145
|
-
return;
|
|
146
|
-
if (typeof oldValue2 != typeof newValue2)
|
|
147
|
-
error(`type ${typeof oldValue2}`, `type ${typeof newValue2}`, path, depth);
|
|
148
|
-
else if (typeof oldValue2 == "object") {
|
|
149
|
-
const oldArray = Array.isArray(oldValue2), newArray = Array.isArray(newValue2);
|
|
150
|
-
if (oldValue2 === null && newValue2 !== null)
|
|
151
|
-
error("null", `type ${typeof newValue2}`, path, depth);
|
|
152
|
-
else if (newValue2 === null)
|
|
153
|
-
error(`type ${typeof oldValue2}`, "null", path, depth);
|
|
154
|
-
else if (oldValue2 instanceof Map)
|
|
155
|
-
if (!(newValue2 instanceof Map))
|
|
156
|
-
error("Map instance", "other value", path, depth);
|
|
157
|
-
else if (oldValue2.size !== newValue2.size)
|
|
158
|
-
error(`Map instance with size ${oldValue2.size}`, `Map instance with size ${newValue2.size}`, path, depth);
|
|
159
|
-
else
|
|
160
|
-
for (const [k, v] of oldValue2)
|
|
161
|
-
newValue2.has(k) ? recur(v, newValue2.get(k), `${path}.get(${k})`, depth + 1) : error(`Map instance with key ${k}`, `Map instance without key ${k}`, path, depth);
|
|
162
|
-
else if (newValue2 instanceof Map)
|
|
163
|
-
error("other value", "Map instance", path, depth);
|
|
164
|
-
else if (oldValue2 instanceof Set)
|
|
165
|
-
if (!(newValue2 instanceof Set))
|
|
166
|
-
error("Set instance", "other value", path, depth);
|
|
167
|
-
else if (oldValue2.size !== newValue2.size)
|
|
168
|
-
error(`Set instance with size ${oldValue2.size}`, `Set instance with size ${newValue2.size}`, path, depth);
|
|
169
|
-
else
|
|
170
|
-
for (const v of newValue2)
|
|
171
|
-
oldValue2.has(v) || error(`Set instance without element ${v}`, `Set instance with element ${v}`, path, depth);
|
|
172
|
-
else if (newValue2 instanceof Set)
|
|
173
|
-
error("other value", "Set instance", path, depth);
|
|
174
|
-
else if (oldArray || newArray)
|
|
175
|
-
if (oldArray !== newArray)
|
|
176
|
-
error(`type ${oldArray ? "array" : "object"}`, `type ${newArray ? "array" : "object"}`, path, depth);
|
|
177
|
-
else if (oldValue2.length !== newValue2.length)
|
|
178
|
-
error(`array with length ${oldValue2.length}`, `array with length ${newValue2.length}`, path, depth);
|
|
179
|
-
else
|
|
180
|
-
for (let ii = 0; ii < oldValue2.length; ii++)
|
|
181
|
-
recur(oldValue2[ii], newValue2[ii], `${path}[${ii}]`, depth + 1);
|
|
182
|
-
else if (isValidElement2(oldValue2) || isValidElement2(newValue2))
|
|
183
|
-
isValidElement2(oldValue2) !== isValidElement2(newValue2) ? error(`type ${isValidElement2(oldValue2) ? "React element" : "object"}`, `type ${isValidElement2(newValue2) ? "React element" : "object"}`, path, depth) : oldValue2.type !== newValue2.type ? error(`React element of type ${oldValue2.type}`, `React element of type ${newValue2.type}`, path, depth) : recur(oldValue2.props, newValue2.props, `[props of ${path}]`, depth + 1);
|
|
184
|
-
else {
|
|
185
|
-
for (const key2 in newValue2)
|
|
186
|
-
key2 in oldValue2 || error(`object without key ${key2}`, `object with key ${key2}`, path, depth);
|
|
187
|
-
for (const key2 in oldValue2)
|
|
188
|
-
key2 in newValue2 ? recur(oldValue2[key2], newValue2[key2], `${path}.${key2}`, depth + 1) : error(`object with key ${key2}`, `object without key ${key2}`, path, depth);
|
|
189
|
-
}
|
|
190
|
-
} else {
|
|
191
|
-
if (typeof oldValue2 == "function")
|
|
192
|
-
return;
|
|
193
|
-
isNaN(oldValue2) || isNaN(newValue2) ? isNaN(oldValue2) !== isNaN(newValue2) && error(`${isNaN(oldValue2) ? "NaN" : "non-NaN value"}`, `${isNaN(newValue2) ? "NaN" : "non-NaN value"}`, path, depth) : oldValue2 !== newValue2 && error(oldValue2, newValue2, path, depth);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
recur(oldValue, newValue, "", 0);
|
|
198
|
-
}
|
|
199
|
-
return dist.$dispatcherGuard = $dispatcherGuard, dist.$makeReadOnly = $makeReadOnly, dist.$reset = $reset, dist.$structuralCheck = $structuralCheck, dist.c = c, dist.clearRenderCounterRegistry = clearRenderCounterRegistry, dist.renderCounterRegistry = renderCounterRegistry, dist.useRenderCounter = useRenderCounter, dist;
|
|
200
|
-
}
|
|
201
|
-
var distExports = requireDist();
|
|
202
|
-
const EMPTY_ARRAY = [], EMPTY_RECORD = {}, POPOVER_MOTION_CONTENT_OPACITY_PROPERTY = "--motion-content-opacity", POPOVER_MOTION_PROPS = {
|
|
14
|
+
const createColorTheme = createColorTheme$1, hexToRgb = hexToRgb$1, hslToRgb = hslToRgb$1, multiply = multiply$1, parseColor = parseColor$1, rgbToHex = rgbToHex$1, rgbToHsl = rgbToHsl$1, rgba = rgba$1, screen = screen$1, studioTheme = buildTheme(), EMPTY_ARRAY = [], EMPTY_RECORD = {}, POPOVER_MOTION_CONTENT_OPACITY_PROPERTY = "--motion-content-opacity", POPOVER_MOTION_PROPS = {
|
|
203
15
|
initial: {
|
|
204
16
|
opacity: 0.5,
|
|
205
17
|
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY]: 0,
|
|
@@ -357,7 +169,7 @@ function _getElements(element, elementsArg) {
|
|
|
357
169
|
return ret.filter(Boolean);
|
|
358
170
|
}
|
|
359
171
|
function useClickOutside(listener, t0, boundaryElement) {
|
|
360
|
-
const $ =
|
|
172
|
+
const $ = c(12), elementsArg = t0 === void 0 ? EMPTY_ARRAY : t0, [element, setElement] = useState(null);
|
|
361
173
|
let t1;
|
|
362
174
|
$[0] !== element || $[1] !== elementsArg ? (t1 = () => _getElements(element, elementsArg), $[0] = element, $[1] = elementsArg, $[2] = t1) : t1 = $[2];
|
|
363
175
|
const [elements, setElements] = useState(t1), elementsRef = useRef(elements);
|
|
@@ -398,7 +210,7 @@ function useClickOutside(listener, t0, boundaryElement) {
|
|
|
398
210
|
}, t5 = [boundaryElement, listener, elements], $[7] = listener, $[8] = boundaryElement, $[9] = elements, $[10] = t4, $[11] = t5) : (t4 = $[10], t5 = $[11]), useEffect(t4, t5), setElement;
|
|
399
211
|
}
|
|
400
212
|
function useClickOutsideEvent(listener, t0, boundaryElement) {
|
|
401
|
-
const $ =
|
|
213
|
+
const $ = c(8), elementsArg = t0 === void 0 ? _temp$5 : t0;
|
|
402
214
|
let t1;
|
|
403
215
|
$[0] !== listener || $[1] !== boundaryElement || $[2] !== elementsArg ? (t1 = (evt) => {
|
|
404
216
|
if (!listener)
|
|
@@ -430,7 +242,7 @@ function _temp$5() {
|
|
|
430
242
|
return EMPTY_ARRAY;
|
|
431
243
|
}
|
|
432
244
|
function useCustomValidity(ref, customValidity) {
|
|
433
|
-
const $ =
|
|
245
|
+
const $ = c(6);
|
|
434
246
|
let t0;
|
|
435
247
|
$[0] !== ref.current || $[1] !== customValidity ? (t0 = () => {
|
|
436
248
|
ref.current?.setCustomValidity(customValidity || "");
|
|
@@ -762,7 +574,7 @@ function _createElementSizeObserver() {
|
|
|
762
574
|
};
|
|
763
575
|
}
|
|
764
576
|
function useElementSize(element) {
|
|
765
|
-
const $ =
|
|
577
|
+
const $ = c(3), [size2, setSize] = useState(null);
|
|
766
578
|
let t0, t1;
|
|
767
579
|
return $[0] !== element ? (t0 = () => {
|
|
768
580
|
if (element)
|
|
@@ -773,12 +585,12 @@ function useElementRect(element) {
|
|
|
773
585
|
return useElementSize(element)?._contentRect || null;
|
|
774
586
|
}
|
|
775
587
|
function useForwardedRef(ref) {
|
|
776
|
-
const $ =
|
|
588
|
+
const $ = c(1), innerRef = useRef(null);
|
|
777
589
|
let t0;
|
|
778
590
|
return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => innerRef.current, $[0] = t0) : t0 = $[0], useImperativeHandle(ref, t0), innerRef;
|
|
779
591
|
}
|
|
780
592
|
function useGlobalKeyDown(onKeyDown) {
|
|
781
|
-
const $ =
|
|
593
|
+
const $ = c(3);
|
|
782
594
|
let t0, t1;
|
|
783
595
|
return $[0] !== onKeyDown ? (t0 = () => (addEventListener("keydown", onKeyDown), () => removeEventListener("keydown", onKeyDown)), t1 = [onKeyDown], $[0] = onKeyDown, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), useEffect(t0, t1);
|
|
784
596
|
}
|
|
@@ -834,7 +646,7 @@ function useRootTheme() {
|
|
|
834
646
|
return value;
|
|
835
647
|
}
|
|
836
648
|
function ThemeColorProvider(props) {
|
|
837
|
-
const $ =
|
|
649
|
+
const $ = c(5), {
|
|
838
650
|
children,
|
|
839
651
|
scheme,
|
|
840
652
|
tone
|
|
@@ -847,7 +659,7 @@ function useTheme() {
|
|
|
847
659
|
return useTheme$1();
|
|
848
660
|
}
|
|
849
661
|
function useTheme_v2() {
|
|
850
|
-
const $ =
|
|
662
|
+
const $ = c(2), t0 = useTheme$1();
|
|
851
663
|
let t1;
|
|
852
664
|
return $[0] !== t0 ? (t1 = getTheme_v2(t0), $[0] = t0, $[1] = t1) : t1 = $[1], t1;
|
|
853
665
|
}
|
|
@@ -900,7 +712,7 @@ function getServerSnapshot() {
|
|
|
900
712
|
return 0;
|
|
901
713
|
}
|
|
902
714
|
function useMediaIndex() {
|
|
903
|
-
const $ =
|
|
715
|
+
const $ = c(2), {
|
|
904
716
|
media
|
|
905
717
|
} = useTheme_v2();
|
|
906
718
|
let t0, t1;
|
|
@@ -1632,7 +1444,7 @@ const Root$C = styled.div(responsiveLabelFont, responsiveTextAlignStyle, labelBa
|
|
|
1632
1444
|
overflow: hidden;
|
|
1633
1445
|
overflow: clip;
|
|
1634
1446
|
`, Label = forwardRef(function(props, ref) {
|
|
1635
|
-
const $ =
|
|
1447
|
+
const $ = c(22);
|
|
1636
1448
|
let t0, t1, childrenProp, textOverflow, align, restProps, accent, weight;
|
|
1637
1449
|
$[0] !== props ? ({
|
|
1638
1450
|
accent,
|
|
@@ -1804,7 +1616,7 @@ function avatarStrokeStyle() {
|
|
|
1804
1616
|
const Root$B = styled.div(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1 = styled.div(avatarStyle.arrow), BgStroke = styled.ellipse(avatarStyle.bgStroke), Stroke = styled.ellipse(avatarStyle.stroke), Initials = styled.div(avatarStyle.initials), InitialsLabel = styled(Label)({
|
|
1805
1617
|
color: "inherit"
|
|
1806
1618
|
}), Image = styled.svg(avatarStyle.image), Avatar = forwardRef(function(props, ref) {
|
|
1807
|
-
const $ =
|
|
1619
|
+
const $ = c(53);
|
|
1808
1620
|
let t0, t1, t2, asProp, animateArrowFrom, arrowPositionProp, src, onImageLoadError, __unstable_hideInnerStroke, initials, restProps, title;
|
|
1809
1621
|
$[0] !== props ? ({
|
|
1810
1622
|
__unstable_hideInnerStroke,
|
|
@@ -1903,7 +1715,7 @@ function _avatarCounterBaseStyle(props) {
|
|
|
1903
1715
|
`;
|
|
1904
1716
|
}
|
|
1905
1717
|
const Root$A = styled.div(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = forwardRef(function(props, ref) {
|
|
1906
|
-
const $ =
|
|
1718
|
+
const $ = c(10), {
|
|
1907
1719
|
count,
|
|
1908
1720
|
size: t0
|
|
1909
1721
|
} = props, size2 = useArrayProp(t0 === void 0 ? 1 : t0);
|
|
@@ -1966,7 +1778,7 @@ const Root$z = styled.div(responsiveAvatarStackSizeStyle, avatarStackStyle), Ava
|
|
|
1966
1778
|
});
|
|
1967
1779
|
AvatarStack.displayName = "ForwardRef(AvatarStack)";
|
|
1968
1780
|
const Root$y = styled.div(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = forwardRef(function(props, ref) {
|
|
1969
|
-
const $ =
|
|
1781
|
+
const $ = c(59);
|
|
1970
1782
|
let t0, t1, t2, t3, column, columnStart, columnEnd, flex, height, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, overflow, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, row, rowStart, rowEnd, sizing, restProps;
|
|
1971
1783
|
$[0] !== props ? ({
|
|
1972
1784
|
as: t0,
|
|
@@ -2077,7 +1889,7 @@ const Root$x = styled.div(responsiveTextFont, responsiveTextAlignStyle, textBase
|
|
|
2077
1889
|
overflow: hidden;
|
|
2078
1890
|
overflow: clip;
|
|
2079
1891
|
`, Text = forwardRef(function(props, ref) {
|
|
2080
|
-
const $ =
|
|
1892
|
+
const $ = c(22);
|
|
2081
1893
|
let t0, t1, t2, childrenProp, textOverflow, align, restProps, weight;
|
|
2082
1894
|
$[0] !== props ? ({
|
|
2083
1895
|
accent: t0,
|
|
@@ -2118,7 +1930,7 @@ function badgeStyle(props) {
|
|
|
2118
1930
|
};
|
|
2119
1931
|
}
|
|
2120
1932
|
const Root$w = styled(Box)(responsiveRadiusStyle, badgeStyle), Badge = forwardRef(function(props, ref) {
|
|
2121
|
-
const $ =
|
|
1933
|
+
const $ = c(17);
|
|
2122
1934
|
let t0, t1, t2, t3, children, restProps;
|
|
2123
1935
|
if ($[0] !== props) {
|
|
2124
1936
|
const {
|
|
@@ -2141,7 +1953,7 @@ const Root$w = styled(Box)(responsiveRadiusStyle, badgeStyle), Badge = forwardRe
|
|
|
2141
1953
|
});
|
|
2142
1954
|
Badge.displayName = "ForwardRef(Badge)";
|
|
2143
1955
|
const Root$v = styled(Box)(flexItemStyle, responsiveFlexStyle), Flex = forwardRef(function(props, ref) {
|
|
2144
|
-
const $ =
|
|
1956
|
+
const $ = c(17);
|
|
2145
1957
|
let t0, align, gap, justify, wrap, restProps, as;
|
|
2146
1958
|
$[0] !== props ? ({
|
|
2147
1959
|
align,
|
|
@@ -2170,7 +1982,7 @@ const rotate$1 = keyframes`
|
|
|
2170
1982
|
animation: ${rotate$1} 500ms linear infinite;
|
|
2171
1983
|
}
|
|
2172
1984
|
`, Spinner = forwardRef(function(props, ref) {
|
|
2173
|
-
const $ =
|
|
1985
|
+
const $ = c(4);
|
|
2174
1986
|
let t0;
|
|
2175
1987
|
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(SpinnerIcon, {}), $[0] = t0) : t0 = $[0];
|
|
2176
1988
|
let t1;
|
|
@@ -2351,7 +2163,7 @@ const Root$t = styled.button(responsiveRadiusStyle, buttonBaseStyles, buttonColo
|
|
|
2351
2163
|
z-index: 1;
|
|
2352
2164
|
box-shadow: inherit;
|
|
2353
2165
|
`, Button = forwardRef(function(props, ref) {
|
|
2354
|
-
const $ =
|
|
2166
|
+
const $ = c(64);
|
|
2355
2167
|
let t0, t1, t2, t3, t4, t5, t6, t7, t8, paddingXProp, paddingYProp, paddingTopProp, paddingBottomProp, paddingLeftProp, paddingRightProp, loading, disabled, selected, IconComponent, text, IconRightComponent, textAlign, children, restProps, width;
|
|
2356
2168
|
$[0] !== props ? ({
|
|
2357
2169
|
children,
|
|
@@ -2567,7 +2379,7 @@ function cardColorStyle(props) {
|
|
|
2567
2379
|
`;
|
|
2568
2380
|
}
|
|
2569
2381
|
const Root$s = styled(Box)(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = forwardRef(function(props, ref) {
|
|
2570
|
-
const $ =
|
|
2382
|
+
const $ = c(42);
|
|
2571
2383
|
let t0, t1, t2, t3, asProp, border2, borderTop2, borderRight2, borderBottom2, borderLeft2, shadow, pressed, selected, restProps, muted, scheme;
|
|
2572
2384
|
$[0] !== props ? ({
|
|
2573
2385
|
__unstable_checkered: t0,
|
|
@@ -2733,7 +2545,7 @@ function inputElementStyles(props) {
|
|
|
2733
2545
|
`;
|
|
2734
2546
|
}
|
|
2735
2547
|
const Root$r = styled.div(checkboxBaseStyles), Input$5 = styled.input(inputElementStyles), Checkbox = forwardRef(function(props, forwardedRef) {
|
|
2736
|
-
const $ =
|
|
2548
|
+
const $ = c(25);
|
|
2737
2549
|
let indeterminate, customValidity, disabled, readOnly, restProps, checked, className, style;
|
|
2738
2550
|
$[0] !== props ? ({
|
|
2739
2551
|
checked,
|
|
@@ -2916,7 +2728,7 @@ function codeBaseStyle() {
|
|
|
2916
2728
|
`;
|
|
2917
2729
|
}
|
|
2918
2730
|
const Root$q = styled.pre(codeBaseStyle, responsiveCodeFontStyle), Code = forwardRef(function(props, ref) {
|
|
2919
|
-
const $ =
|
|
2731
|
+
const $ = c(23);
|
|
2920
2732
|
let t0, languageProp, children, restProps, weight;
|
|
2921
2733
|
$[0] !== props ? ({
|
|
2922
2734
|
children,
|
|
@@ -2957,7 +2769,7 @@ function responsiveContainerWidthStyle(props) {
|
|
|
2957
2769
|
}));
|
|
2958
2770
|
}
|
|
2959
2771
|
const Root$p = styled(Box)(containerBaseStyle, responsiveContainerWidthStyle), Container = forwardRef(function(props, ref) {
|
|
2960
|
-
const $ =
|
|
2772
|
+
const $ = c(9);
|
|
2961
2773
|
let t0, restProps, as;
|
|
2962
2774
|
$[0] !== props ? ({
|
|
2963
2775
|
as,
|
|
@@ -2970,7 +2782,7 @@ const Root$p = styled(Box)(containerBaseStyle, responsiveContainerWidthStyle), C
|
|
|
2970
2782
|
});
|
|
2971
2783
|
Container.displayName = "ForwardRef(Container)";
|
|
2972
2784
|
const Root$o = styled(Box)(responsiveGridStyle), Grid = forwardRef(function(props, ref) {
|
|
2973
|
-
const $ =
|
|
2785
|
+
const $ = c(26);
|
|
2974
2786
|
let as, autoRows, autoCols, autoFlow, columns, gap, gapX, gapY, rows, restProps, children;
|
|
2975
2787
|
$[0] !== props ? ({
|
|
2976
2788
|
as,
|
|
@@ -3056,7 +2868,7 @@ const Root$n = styled.div(headingBaseStyle, responsiveTextAlignStyle, responsive
|
|
|
3056
2868
|
overflow: hidden;
|
|
3057
2869
|
overflow: clip;
|
|
3058
2870
|
`, Heading = forwardRef(function(props, ref) {
|
|
3059
|
-
const $ =
|
|
2871
|
+
const $ = c(22);
|
|
3060
2872
|
let t0, t1, t2, childrenProp, textOverflow, align, restProps, weight;
|
|
3061
2873
|
$[0] !== props ? ({
|
|
3062
2874
|
accent: t0,
|
|
@@ -3109,7 +2921,7 @@ function inlineSpaceStyle(props) {
|
|
|
3109
2921
|
});
|
|
3110
2922
|
}
|
|
3111
2923
|
const Root$m = styled(Box)(inlineBaseStyle, inlineSpaceStyle), Inline = forwardRef(function(props, ref) {
|
|
3112
|
-
const $ =
|
|
2924
|
+
const $ = c(13);
|
|
3113
2925
|
let childrenProp, space, restProps, as;
|
|
3114
2926
|
$[0] !== props ? ({
|
|
3115
2927
|
as,
|
|
@@ -3147,7 +2959,7 @@ function kbdStyle() {
|
|
|
3147
2959
|
`;
|
|
3148
2960
|
}
|
|
3149
2961
|
const Root$l = styled.kbd(responsiveRadiusStyle, kbdStyle), KBD = forwardRef(function(props, ref) {
|
|
3150
|
-
const $ =
|
|
2962
|
+
const $ = c(17);
|
|
3151
2963
|
let t0, t1, t2, children, restProps;
|
|
3152
2964
|
$[0] !== props ? ({
|
|
3153
2965
|
children,
|
|
@@ -3285,7 +3097,7 @@ const Root$k = styled.div(({
|
|
|
3285
3097
|
`, ShapePath = styled.path`
|
|
3286
3098
|
fill: var(--card-bg-color);
|
|
3287
3099
|
`, Arrow = forwardRef(function(props, ref) {
|
|
3288
|
-
const $ =
|
|
3100
|
+
const $ = c(24);
|
|
3289
3101
|
let t0, w, h, restProps;
|
|
3290
3102
|
$[0] !== props ? ({
|
|
3291
3103
|
width: w,
|
|
@@ -3333,7 +3145,7 @@ const Root$k = styled.div(({
|
|
|
3333
3145
|
Arrow.displayName = "ForwardRef(Arrow)";
|
|
3334
3146
|
const BoundaryElementContext = createGlobalScopedContext("@sanity/ui/context/boundaryElement", null);
|
|
3335
3147
|
function BoundaryElementProvider(props) {
|
|
3336
|
-
const $ =
|
|
3148
|
+
const $ = c(5), {
|
|
3337
3149
|
children,
|
|
3338
3150
|
element
|
|
3339
3151
|
} = props;
|
|
@@ -3430,7 +3242,7 @@ function getLayerContext(contextValue) {
|
|
|
3430
3242
|
}
|
|
3431
3243
|
const LayerContext = createGlobalScopedContext("@sanity/ui/context/layer", null);
|
|
3432
3244
|
function useLayer() {
|
|
3433
|
-
const $ =
|
|
3245
|
+
const $ = c(2), value = useContext(LayerContext);
|
|
3434
3246
|
if (!value)
|
|
3435
3247
|
throw new Error("useLayer(): missing context value");
|
|
3436
3248
|
try {
|
|
@@ -3552,7 +3364,7 @@ LayerProvider.displayName = "LayerProvider";
|
|
|
3552
3364
|
const Root$j = styled.div({
|
|
3553
3365
|
position: "relative"
|
|
3554
3366
|
}), LayerChildren = forwardRef(function(props, forwardedRef) {
|
|
3555
|
-
const $ =
|
|
3367
|
+
const $ = c(22);
|
|
3556
3368
|
let t0, onActivate, onFocus, restProps, children;
|
|
3557
3369
|
$[0] !== props ? ({
|
|
3558
3370
|
children,
|
|
@@ -3588,7 +3400,7 @@ const Root$j = styled.div({
|
|
|
3588
3400
|
let t6;
|
|
3589
3401
|
return $[17] !== restProps || $[18] !== handleFocus || $[19] !== t5 || $[20] !== children ? (t6 = /* @__PURE__ */ jsx(Root$j, { ...restProps, "data-ui": "Layer", onFocus: handleFocus, ref, style: t5, children }), $[17] = restProps, $[18] = handleFocus, $[19] = t5, $[20] = children, $[21] = t6) : t6 = $[21], t6;
|
|
3590
3402
|
}), Layer = forwardRef(function(props, ref) {
|
|
3591
|
-
const $ =
|
|
3403
|
+
const $ = c(11);
|
|
3592
3404
|
let t0, restProps, children;
|
|
3593
3405
|
$[0] !== props ? ({
|
|
3594
3406
|
children,
|
|
@@ -3620,7 +3432,7 @@ function usePortal() {
|
|
|
3620
3432
|
return value;
|
|
3621
3433
|
}
|
|
3622
3434
|
function Portal(props) {
|
|
3623
|
-
const $ =
|
|
3435
|
+
const $ = c(3), {
|
|
3624
3436
|
children,
|
|
3625
3437
|
__unstable_name: name
|
|
3626
3438
|
} = props, portal = usePortal(), portalElement = (name ? portal.elements && portal.elements[name] : portal.element) || portal.elements?.default;
|
|
@@ -3631,7 +3443,7 @@ function Portal(props) {
|
|
|
3631
3443
|
}
|
|
3632
3444
|
Portal.displayName = "Portal";
|
|
3633
3445
|
function PortalProvider(props) {
|
|
3634
|
-
const $ =
|
|
3446
|
+
const $ = c(7), {
|
|
3635
3447
|
boundaryElement,
|
|
3636
3448
|
children,
|
|
3637
3449
|
element,
|
|
@@ -3677,7 +3489,7 @@ const Root$i = styled.div`
|
|
|
3677
3489
|
overflow: hidden;
|
|
3678
3490
|
overflow: clip;
|
|
3679
3491
|
`, SrOnly = forwardRef(function(props, ref) {
|
|
3680
|
-
const $ =
|
|
3492
|
+
const $ = c(4), {
|
|
3681
3493
|
as,
|
|
3682
3494
|
children
|
|
3683
3495
|
} = props;
|
|
@@ -3692,7 +3504,7 @@ const Root$h = styled.div`
|
|
|
3692
3504
|
left: 0;
|
|
3693
3505
|
right: 0;
|
|
3694
3506
|
`, VirtualList = forwardRef(function(props, forwardedRef) {
|
|
3695
|
-
const $ =
|
|
3507
|
+
const $ = c(56);
|
|
3696
3508
|
let t0, t1, t2, renderItem, onChange, getItemKey, restProps;
|
|
3697
3509
|
$[0] !== props ? ({
|
|
3698
3510
|
as: t0,
|
|
@@ -3889,7 +3701,7 @@ const MotionCard$1 = styled(motion(Card))`
|
|
|
3889
3701
|
will-change: opacity;
|
|
3890
3702
|
}
|
|
3891
3703
|
`, PopoverCard = memo(forwardRef(function(props, ref) {
|
|
3892
|
-
const $ =
|
|
3704
|
+
const $ = c(60);
|
|
3893
3705
|
let marginsProp, xProp, yProp, animate, originX, originY, strategy, style, width, arrowX, arrowY, restProps, padding, children, overflow, arrow2, arrowRef, placement, radius, scheme, shadow, tone;
|
|
3894
3706
|
$[0] !== props ? ({
|
|
3895
3707
|
__unstable_margins: marginsProp,
|
|
@@ -4113,7 +3925,7 @@ function inputElementStyle(props) {
|
|
|
4113
3925
|
const {
|
|
4114
3926
|
color,
|
|
4115
3927
|
input
|
|
4116
|
-
} = getTheme_v2(props.theme),
|
|
3928
|
+
} = getTheme_v2(props.theme), dist = (input.radio.size - input.radio.markSize) / 2;
|
|
4117
3929
|
return css`
|
|
4118
3930
|
appearance: none;
|
|
4119
3931
|
position: absolute;
|
|
@@ -4145,8 +3957,8 @@ function inputElementStyle(props) {
|
|
|
4145
3957
|
&::after {
|
|
4146
3958
|
content: '';
|
|
4147
3959
|
position: absolute;
|
|
4148
|
-
top: ${rem(
|
|
4149
|
-
left: ${rem(
|
|
3960
|
+
top: ${rem(dist)};
|
|
3961
|
+
left: ${rem(dist)};
|
|
4150
3962
|
height: ${rem(input.radio.markSize)};
|
|
4151
3963
|
width: ${rem(input.radio.markSize)};
|
|
4152
3964
|
border-radius: ${rem(input.radio.markSize / 2)};
|
|
@@ -4211,7 +4023,7 @@ function inputElementStyle(props) {
|
|
|
4211
4023
|
`;
|
|
4212
4024
|
}
|
|
4213
4025
|
const Root$g = styled.div(radioBaseStyle), Input$4 = styled.input(inputElementStyle), Radio = forwardRef(function(props, forwardedRef) {
|
|
4214
|
-
const $ =
|
|
4026
|
+
const $ = c(19);
|
|
4215
4027
|
let customValidity, disabled, readOnly, restProps, className, style;
|
|
4216
4028
|
$[0] !== props ? ({
|
|
4217
4029
|
className,
|
|
@@ -4379,7 +4191,7 @@ const selectStyle = {
|
|
|
4379
4191
|
input: inputStyle,
|
|
4380
4192
|
iconBox: iconBoxStyle
|
|
4381
4193
|
}, Root$f = styled.div(selectStyle.root), Input$3 = styled.select(selectStyle.input), IconBox = styled(Box)(selectStyle.iconBox), Select = forwardRef(function(props, forwardedRef) {
|
|
4382
|
-
const $ =
|
|
4194
|
+
const $ = c(29);
|
|
4383
4195
|
let t0, t1, t2, t3, customValidity, disabled, readOnly, restProps, children;
|
|
4384
4196
|
$[0] !== props ? ({
|
|
4385
4197
|
children,
|
|
@@ -4434,7 +4246,7 @@ function responsiveStackSpaceStyle(props) {
|
|
|
4434
4246
|
}));
|
|
4435
4247
|
}
|
|
4436
4248
|
const Root$e = styled(Box)(stackBaseStyle, responsiveStackSpaceStyle), Stack = forwardRef(function(props, ref) {
|
|
4437
|
-
const $ =
|
|
4249
|
+
const $ = c(10);
|
|
4438
4250
|
let as, space, restProps;
|
|
4439
4251
|
$[0] !== props ? ({
|
|
4440
4252
|
as,
|
|
@@ -4600,7 +4412,7 @@ function switchThumbStyles(props) {
|
|
|
4600
4412
|
`;
|
|
4601
4413
|
}
|
|
4602
4414
|
const Root$d = styled.span(switchBaseStyles), Input$2 = styled.input(switchInputStyles), Representation = styled.span(switchRepresentationStyles), Track = styled.span(switchTrackStyles), Thumb = styled.span(switchThumbStyles), Switch = forwardRef(function(props, forwardedRef) {
|
|
4603
|
-
const $ =
|
|
4415
|
+
const $ = c(26);
|
|
4604
4416
|
let indeterminate, disabled, readOnly, checked, restProps, className, style;
|
|
4605
4417
|
$[0] !== props ? ({
|
|
4606
4418
|
checked,
|
|
@@ -4641,7 +4453,7 @@ const Root$c = styled.span(textInputRootStyle), InputRoot$1 = styled.span`
|
|
|
4641
4453
|
display: block;
|
|
4642
4454
|
position: relative;
|
|
4643
4455
|
`, Input$1 = styled.textarea(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation$1 = styled.div(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = forwardRef(function(props, forwardedRef) {
|
|
4644
|
-
const $ =
|
|
4456
|
+
const $ = c(29);
|
|
4645
4457
|
let t0, t1, t2, t3, t4, customValidity, restProps, weight, __unstable_disableFocusRing;
|
|
4646
4458
|
$[0] !== props ? ({
|
|
4647
4459
|
border: t0,
|
|
@@ -4717,7 +4529,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
4717
4529
|
display: "block"
|
|
4718
4530
|
}
|
|
4719
4531
|
}), TextInput = forwardRef(function(props, forwardedRef) {
|
|
4720
|
-
const $ =
|
|
4532
|
+
const $ = c(86);
|
|
4721
4533
|
let t0, t1, t2, t3, t4, t5, t6, clearButton, IconComponent, IconRightComponent, suffix, prefix, customValidity, onClear, __unstable_disableFocusRing, readOnly, restProps, weight;
|
|
4722
4534
|
$[0] !== props ? ({
|
|
4723
4535
|
__unstable_disableFocusRing,
|
|
@@ -4814,7 +4626,7 @@ function _temp$1(event) {
|
|
|
4814
4626
|
event.preventDefault(), event.stopPropagation();
|
|
4815
4627
|
}
|
|
4816
4628
|
function useDelayedState(initialState) {
|
|
4817
|
-
const $ =
|
|
4629
|
+
const $ = c(3), [state, setState] = useState(initialState), delayedAction = useRef();
|
|
4818
4630
|
let t0;
|
|
4819
4631
|
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = (nextState, delay) => {
|
|
4820
4632
|
const action = () => {
|
|
@@ -4847,7 +4659,7 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
|
|
|
4847
4659
|
will-change: opacity;
|
|
4848
4660
|
}
|
|
4849
4661
|
`, TooltipCard = memo(forwardRef(function(props, ref) {
|
|
4850
|
-
const $ =
|
|
4662
|
+
const $ = c(42);
|
|
4851
4663
|
let animate, originX, originY, style, arrowX, arrowY, restProps, arrow2, arrowRef, placement, padding, radius, scheme, shadow, children;
|
|
4852
4664
|
$[0] !== props ? ({
|
|
4853
4665
|
animate,
|
|
@@ -4902,7 +4714,7 @@ function useTooltipDelayGroup() {
|
|
|
4902
4714
|
return useContext(TooltipDelayGroupContext);
|
|
4903
4715
|
}
|
|
4904
4716
|
function TooltipDelayGroupProvider(props) {
|
|
4905
|
-
const $ =
|
|
4717
|
+
const $ = c(10), {
|
|
4906
4718
|
children,
|
|
4907
4719
|
delay
|
|
4908
4720
|
} = props, [isGroupActive, setIsGroupActive] = useDelayedState(!1), [openTooltipId, setOpenTooltipId] = useDelayedState(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0;
|
|
@@ -5048,7 +4860,7 @@ const Root$a = styled(Layer)`
|
|
|
5048
4860
|
});
|
|
5049
4861
|
Tooltip.displayName = "ForwardRef(Tooltip)";
|
|
5050
4862
|
function useCloseOnMouseLeave(t0) {
|
|
5051
|
-
const $ =
|
|
4863
|
+
const $ = c(7), {
|
|
5052
4864
|
handleIsOpenChange,
|
|
5053
4865
|
referenceElement,
|
|
5054
4866
|
showTooltip
|
|
@@ -5088,7 +4900,7 @@ const Root$9 = styled.div`
|
|
|
5088
4900
|
animation: ${rotate} 500ms linear infinite;
|
|
5089
4901
|
`;
|
|
5090
4902
|
function AutocompleteOption(props) {
|
|
5091
|
-
const $ =
|
|
4903
|
+
const $ = c(11), {
|
|
5092
4904
|
children,
|
|
5093
4905
|
id,
|
|
5094
4906
|
onSelect,
|
|
@@ -5479,7 +5291,7 @@ const Root$7 = styled(Layer)(responsivePaddingStyle, dialogStyle, responsiveDial
|
|
|
5479
5291
|
position: relative;
|
|
5480
5292
|
z-index: 3;
|
|
5481
5293
|
`, DialogCard = forwardRef(function(props, forwardedRef) {
|
|
5482
|
-
const $ =
|
|
5294
|
+
const $ = c(38), {
|
|
5483
5295
|
__unstable_autoFocus: autoFocus,
|
|
5484
5296
|
__unstable_hideCloseButton: hideCloseButton,
|
|
5485
5297
|
children,
|
|
@@ -5599,7 +5411,7 @@ const Dialog = forwardRef(function(props, ref) {
|
|
|
5599
5411
|
});
|
|
5600
5412
|
Dialog.displayName = "ForwardRef(Dialog)";
|
|
5601
5413
|
function DialogProvider(props) {
|
|
5602
|
-
const $ =
|
|
5414
|
+
const $ = c(6), {
|
|
5603
5415
|
children,
|
|
5604
5416
|
position,
|
|
5605
5417
|
zOffset
|
|
@@ -5627,7 +5439,7 @@ const Root$6 = styled.kbd`
|
|
|
5627
5439
|
display: block;
|
|
5628
5440
|
}
|
|
5629
5441
|
`, Hotkeys = forwardRef(function(props, ref) {
|
|
5630
|
-
const $ =
|
|
5442
|
+
const $ = c(24);
|
|
5631
5443
|
let t0, keys, fontSize2, padding, radius, restProps;
|
|
5632
5444
|
$[0] !== props ? ({
|
|
5633
5445
|
fontSize: fontSize2,
|
|
@@ -6234,7 +6046,7 @@ const keyframe = keyframes`
|
|
|
6234
6046
|
background-color: var(--card-skeleton-color-from);
|
|
6235
6047
|
}
|
|
6236
6048
|
`, Root$4 = styled(Box)(responsiveRadiusStyle, skeletonStyle), Skeleton = forwardRef(function(props, ref) {
|
|
6237
|
-
const $ =
|
|
6049
|
+
const $ = c(14);
|
|
6238
6050
|
let t0, delay, radius, restProps;
|
|
6239
6051
|
$[0] !== props ? ({
|
|
6240
6052
|
animated: t0,
|
|
@@ -6274,7 +6086,7 @@ const Root$3 = styled(Skeleton)((props) => {
|
|
|
6274
6086
|
};
|
|
6275
6087
|
});
|
|
6276
6088
|
}), TextSkeleton = forwardRef(function(props, ref) {
|
|
6277
|
-
const $ =
|
|
6089
|
+
const $ = c(7);
|
|
6278
6090
|
let t0, restProps;
|
|
6279
6091
|
$[0] !== props ? ({
|
|
6280
6092
|
size: t0,
|
|
@@ -6286,7 +6098,7 @@ const Root$3 = styled(Skeleton)((props) => {
|
|
|
6286
6098
|
});
|
|
6287
6099
|
TextSkeleton.displayName = "ForwardRef(TextSkeleton)";
|
|
6288
6100
|
const LabelSkeleton = forwardRef(function(props, ref) {
|
|
6289
|
-
const $ =
|
|
6101
|
+
const $ = c(7);
|
|
6290
6102
|
let t0, restProps;
|
|
6291
6103
|
$[0] !== props ? ({
|
|
6292
6104
|
size: t0,
|
|
@@ -6298,7 +6110,7 @@ const LabelSkeleton = forwardRef(function(props, ref) {
|
|
|
6298
6110
|
});
|
|
6299
6111
|
LabelSkeleton.displayName = "ForwardRef(LabelSkeleton)";
|
|
6300
6112
|
const HeadingSkeleton = forwardRef(function(props, ref) {
|
|
6301
|
-
const $ =
|
|
6113
|
+
const $ = c(7);
|
|
6302
6114
|
let t0, restProps;
|
|
6303
6115
|
$[0] !== props ? ({
|
|
6304
6116
|
size: t0,
|
|
@@ -6310,7 +6122,7 @@ const HeadingSkeleton = forwardRef(function(props, ref) {
|
|
|
6310
6122
|
});
|
|
6311
6123
|
HeadingSkeleton.displayName = "ForwardRef(HeadingSkeleton)";
|
|
6312
6124
|
const CodeSkeleton = forwardRef(function(props, ref) {
|
|
6313
|
-
const $ =
|
|
6125
|
+
const $ = c(7);
|
|
6314
6126
|
let t0, restProps;
|
|
6315
6127
|
$[0] !== props ? ({
|
|
6316
6128
|
size: t0,
|
|
@@ -6324,7 +6136,7 @@ CodeSkeleton.displayName = "ForwardRef(CodeSkeleton)";
|
|
|
6324
6136
|
const CustomButton = styled(Button)`
|
|
6325
6137
|
max-width: 100%;
|
|
6326
6138
|
`, Tab = forwardRef(function(props, forwardedRef) {
|
|
6327
|
-
const $ =
|
|
6139
|
+
const $ = c(30);
|
|
6328
6140
|
let t0, t1, onFocus, focused, selected, restProps, icon, id, onClick, label;
|
|
6329
6141
|
$[0] !== props ? ({
|
|
6330
6142
|
icon,
|
|
@@ -6387,7 +6199,7 @@ const CustomInline = styled(Inline)`
|
|
|
6387
6199
|
});
|
|
6388
6200
|
TabList.displayName = "ForwardRef(TabList)";
|
|
6389
6201
|
const TabPanel = forwardRef(function(props, ref) {
|
|
6390
|
-
const $ =
|
|
6202
|
+
const $ = c(9);
|
|
6391
6203
|
let restProps, flex;
|
|
6392
6204
|
$[0] !== props ? ({
|
|
6393
6205
|
flex,
|
|
@@ -6459,7 +6271,7 @@ const STATUS_CARD_TONE = {
|
|
|
6459
6271
|
info: "alert"
|
|
6460
6272
|
}, Root$2 = styled(Card)(rootStyles);
|
|
6461
6273
|
function Toast(props) {
|
|
6462
|
-
const $ =
|
|
6274
|
+
const $ = c(30);
|
|
6463
6275
|
let t0, status, title, description, closable, onClose, restProps, duration;
|
|
6464
6276
|
$[0] !== props ? ({
|
|
6465
6277
|
closable,
|
|
@@ -6662,7 +6474,7 @@ function _focusItemElement(el) {
|
|
|
6662
6474
|
}
|
|
6663
6475
|
}
|
|
6664
6476
|
const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null), Tree = memo(forwardRef(function(props, forwardedRef) {
|
|
6665
|
-
const $ =
|
|
6477
|
+
const $ = c(37);
|
|
6666
6478
|
let t0, onFocus, children, restProps;
|
|
6667
6479
|
$[0] !== props ? ({
|
|
6668
6480
|
children,
|
|
@@ -6916,7 +6728,7 @@ function useTree() {
|
|
|
6916
6728
|
return tree;
|
|
6917
6729
|
}
|
|
6918
6730
|
const TreeGroup = memo(function(props) {
|
|
6919
|
-
const $ =
|
|
6731
|
+
const $ = c(9);
|
|
6920
6732
|
let t0, restProps, children;
|
|
6921
6733
|
$[0] !== props ? ({
|
|
6922
6734
|
children,
|