@sanity/ui 3.4.3 → 3.4.5
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/refractor.cjs +18 -0
- package/dist/_chunks/refractor.cjs.map +1 -0
- package/dist/_chunks/refractor.js +9 -7
- package/dist/_chunks/refractor.js.map +1 -1
- package/dist/_chunks/{tabList.mjs → tabList.cjs} +922 -431
- package/dist/_chunks/tabList.cjs.map +1 -0
- package/dist/_chunks/tabList.js +471 -880
- package/dist/_chunks/tabList.js.map +1 -1
- package/dist/_chunks/{theme.mjs → theme.cjs} +266 -11
- package/dist/_chunks/theme.cjs.map +1 -0
- package/dist/_chunks/{theme.d.mts → theme.d.cts} +11 -11
- package/dist/_chunks/{theme.d.mts.map → theme.d.cts.map} +1 -1
- package/dist/_chunks/theme.d.ts +10 -10
- package/dist/_chunks/theme.js +10 -265
- package/dist/_chunks/theme.js.map +1 -1
- package/dist/_chunks/{useTheme.d.mts → useTheme.d.cts} +26 -26
- package/dist/_chunks/{useTheme.d.mts.map → useTheme.d.cts.map} +1 -1
- package/dist/_chunks/useTheme.d.ts +24 -24
- package/dist/_visual-editing.cjs +3 -0
- package/dist/{_visual-editing.d.mts → _visual-editing.d.cts} +1 -1
- package/dist/_visual-editing.js +2 -3
- package/dist/{index.mjs → index.cjs} +513 -511
- package/dist/index.cjs.map +1 -0
- package/dist/{index.d.mts → index.d.cts} +12 -12
- package/dist/{index.d.mts.map → index.d.cts.map} +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +521 -501
- package/dist/index.js.map +1 -1
- package/dist/theme.cjs +3 -0
- package/dist/{theme.d.mts → theme.d.cts} +1 -1
- package/dist/theme.js +2 -3
- package/package.json +22 -23
- package/dist/_chunks/refractor.mjs +0 -20
- package/dist/_chunks/refractor.mjs.map +0 -1
- package/dist/_chunks/tabList.mjs.map +0 -1
- package/dist/_chunks/theme.mjs.map +0 -1
- package/dist/_visual-editing.mjs +0 -2
- package/dist/index.mjs.map +0 -1
- package/dist/theme.mjs +0 -2
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = (to, from, except, desc) => {
|
|
2
|
+
if (from && typeof from == "object" || typeof from == "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) key = keys[i], !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
3
|
+
get: ((k) => from[k]).bind(null, key),
|
|
4
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
5
|
+
});
|
|
6
|
+
return to;
|
|
7
|
+
}, __toESM = (mod, isNodeMode, target) => (target = mod == null ? {} : __create(__getProtoOf(mod)), __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
8
|
+
value: mod,
|
|
9
|
+
enumerable: !0
|
|
10
|
+
}) : target, mod));
|
|
11
|
+
const require_theme = require("./theme.cjs");
|
|
12
|
+
let react_compiler_runtime = require("react-compiler-runtime"), react = require("react");
|
|
13
|
+
react = __toESM(react, 1);
|
|
14
|
+
let react_is = require("react-is"), styled_components = require("styled-components"), react_jsx_runtime = require("react/jsx-runtime"), _sanity_icons_Spinner = require("@sanity/icons/Spinner"), use_effect_event = require("use-effect-event"), _juggle_resize_observer = require("@juggle/resize-observer"), _floating_ui_react_dom = require("@floating-ui/react-dom"), motion_react = require("motion/react"), react_dom = require("react-dom"), _sanity_icons_Close = require("@sanity/icons/Close"), _sanity_icons_ChevronRight = require("@sanity/icons/ChevronRight");
|
|
15
15
|
/**
|
|
16
16
|
* @public
|
|
17
17
|
* @deprecated Use `createColorTheme` from `@sanity/ui/theme` instead.
|
|
18
18
|
*/
|
|
19
|
-
const createColorTheme =
|
|
19
|
+
const createColorTheme = require_theme.Z, hexToRgb = require_theme.o, hslToRgb = require_theme.s, multiply = require_theme.f, parseColor = require_theme.a, rgbToHex = require_theme.c, rgbToHsl = require_theme.l, rgba = require_theme.r, screen = require_theme.d, studioTheme = require_theme.n(), EMPTY_ARRAY = [], EMPTY_RECORD = {}, POPOVER_MOTION_DURATION = .2, POPOVER_MOTION_PROPS = {
|
|
20
20
|
card: {
|
|
21
21
|
initial: {
|
|
22
22
|
scale: .97,
|
|
@@ -121,7 +121,7 @@ function _getArrayProp(val, defaultVal) {
|
|
|
121
121
|
function _getResponsiveSpace(theme, props, spaceIndexes = EMPTY_ARRAY) {
|
|
122
122
|
if (!Array.isArray(spaceIndexes)) throw Error("the property must be array of numbers");
|
|
123
123
|
if (spaceIndexes.length === 0) return null;
|
|
124
|
-
let { media, space } =
|
|
124
|
+
let { media, space } = require_theme.X(theme);
|
|
125
125
|
return _responsive(media, spaceIndexes, (spaceIndex) => _fillCSSObject(props, rem(space[spaceIndex])));
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
@@ -129,7 +129,7 @@ function _getResponsiveSpace(theme, props, spaceIndexes = EMPTY_ARRAY) {
|
|
|
129
129
|
* @internal
|
|
130
130
|
*/
|
|
131
131
|
function responsiveFont(fontKey, props) {
|
|
132
|
-
let { $size, $weight } = props, { font, media } =
|
|
132
|
+
let { $size, $weight } = props, { font, media } = require_theme.X(props.theme), { family, sizes, weights } = font[fontKey], fontWeight = $weight && weights[$weight] || weights.regular, defaultSize = sizes[2], base = {
|
|
133
133
|
position: "relative",
|
|
134
134
|
fontFamily: family,
|
|
135
135
|
fontWeight: `${fontWeight}`,
|
|
@@ -179,7 +179,7 @@ function fontSize(size) {
|
|
|
179
179
|
* @internal
|
|
180
180
|
*/
|
|
181
181
|
function responsiveTextAlignStyle(props) {
|
|
182
|
-
let { media } =
|
|
182
|
+
let { media } = require_theme.X(props.theme);
|
|
183
183
|
return _responsive(media, props.$align, (textAlign) => ({ textAlign }));
|
|
184
184
|
}
|
|
185
185
|
/**
|
|
@@ -221,10 +221,10 @@ function createGlobalScopedContext(key, defaultValue) {
|
|
|
221
221
|
* Prevent errors about re-renders on React SSR on Next.js App Router
|
|
222
222
|
*/
|
|
223
223
|
if (typeof document > "u") {
|
|
224
|
-
let context = createContext(defaultValue);
|
|
224
|
+
let context = (0, react.createContext)(defaultValue);
|
|
225
225
|
return context.displayName = key, context;
|
|
226
226
|
}
|
|
227
|
-
return globalScope[symbol] = globalScope[symbol] || createContext(defaultValue), globalScope[symbol];
|
|
227
|
+
return globalScope[symbol] = globalScope[symbol] || (0, react.createContext)(defaultValue), globalScope[symbol];
|
|
228
228
|
}
|
|
229
229
|
/**
|
|
230
230
|
* @internal
|
|
@@ -233,8 +233,8 @@ const ThemeContext = createGlobalScopedContext("@sanity/ui/context/theme", null)
|
|
|
233
233
|
/**
|
|
234
234
|
* @public
|
|
235
235
|
*/
|
|
236
|
-
function ThemeProvider
|
|
237
|
-
let $ = c(15), parentTheme = useContext(ThemeContext), { children } = props, scheme = props.scheme ?? (parentTheme?.scheme || "light"), rootTheme = props.theme ?? (parentTheme?.theme || null), tone = props.tone ?? (parentTheme?.tone || "default"), t0;
|
|
236
|
+
function ThemeProvider(props) {
|
|
237
|
+
let $ = (0, react_compiler_runtime.c)(15), parentTheme = (0, react.useContext)(ThemeContext), { children } = props, scheme = props.scheme ?? (parentTheme?.scheme || "light"), rootTheme = props.theme ?? (parentTheme?.theme || null), tone = props.tone ?? (parentTheme?.tone || "default"), t0;
|
|
238
238
|
bb0: {
|
|
239
239
|
if (!rootTheme) {
|
|
240
240
|
t0 = null;
|
|
@@ -255,20 +255,20 @@ function ThemeProvider$1(props) {
|
|
|
255
255
|
break bb1;
|
|
256
256
|
}
|
|
257
257
|
let t2;
|
|
258
|
-
$[4] !== rootTheme || $[5] !== scheme || $[6] !== tone ? (t2 =
|
|
258
|
+
$[4] !== rootTheme || $[5] !== scheme || $[6] !== tone ? (t2 = require_theme.t(rootTheme, scheme, tone), $[4] = rootTheme, $[5] = scheme, $[6] = tone, $[7] = t2) : t2 = $[7], t1 = t2;
|
|
259
259
|
}
|
|
260
260
|
let theme = t1;
|
|
261
261
|
if (!theme) {
|
|
262
262
|
let t2;
|
|
263
|
-
return $[8] === Symbol.for("react.memo_cache_sentinel") ? (t2 = /* @__PURE__ */ jsx("pre", { children: "ThemeProvider: no \"theme\" property provided" }), $[8] = t2) : t2 = $[8], t2;
|
|
263
|
+
return $[8] === Symbol.for("react.memo_cache_sentinel") ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", { children: "ThemeProvider: no \"theme\" property provided" }), $[8] = t2) : t2 = $[8], t2;
|
|
264
264
|
}
|
|
265
265
|
let t2;
|
|
266
|
-
$[9] !== children || $[10] !== theme ? (t2 = /* @__PURE__ */ jsx(ThemeProvider, {
|
|
266
|
+
$[9] !== children || $[10] !== theme ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(styled_components.ThemeProvider, {
|
|
267
267
|
theme,
|
|
268
268
|
children
|
|
269
269
|
}), $[9] = children, $[10] = theme, $[11] = t2) : t2 = $[11];
|
|
270
270
|
let t3;
|
|
271
|
-
return $[12] !== t2 || $[13] !== themeContext ? (t3 = /* @__PURE__ */ jsx(ThemeContext.Provider, {
|
|
271
|
+
return $[12] !== t2 || $[13] !== themeContext ? (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ThemeContext.Provider, {
|
|
272
272
|
value: themeContext,
|
|
273
273
|
children: t2
|
|
274
274
|
}), $[12] = t2, $[13] = themeContext, $[14] = t3) : t3 = $[14], t3;
|
|
@@ -277,7 +277,7 @@ function ThemeProvider$1(props) {
|
|
|
277
277
|
* @public
|
|
278
278
|
*/
|
|
279
279
|
function useRootTheme() {
|
|
280
|
-
let value = useContext(ThemeContext);
|
|
280
|
+
let value = (0, react.useContext)(ThemeContext);
|
|
281
281
|
if (!value) throw Error("useRootTheme(): missing context value");
|
|
282
282
|
return value;
|
|
283
283
|
}
|
|
@@ -285,8 +285,8 @@ function useRootTheme() {
|
|
|
285
285
|
* @public
|
|
286
286
|
*/
|
|
287
287
|
function ThemeColorProvider(props) {
|
|
288
|
-
let $ = c(5), { children, scheme, tone } = props, root = useRootTheme(), t0 = scheme || root.scheme, t1;
|
|
289
|
-
return $[0] !== children || $[1] !== root.theme || $[2] !== t0 || $[3] !== tone ? (t1 = /* @__PURE__ */ jsx(ThemeProvider
|
|
288
|
+
let $ = (0, react_compiler_runtime.c)(5), { children, scheme, tone } = props, root = useRootTheme(), t0 = scheme || root.scheme, t1;
|
|
289
|
+
return $[0] !== children || $[1] !== root.theme || $[2] !== t0 || $[3] !== tone ? (t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ThemeProvider, {
|
|
290
290
|
scheme: t0,
|
|
291
291
|
theme: root.theme,
|
|
292
292
|
tone,
|
|
@@ -296,14 +296,15 @@ function ThemeColorProvider(props) {
|
|
|
296
296
|
/**
|
|
297
297
|
* @public
|
|
298
298
|
*/
|
|
299
|
-
function useTheme
|
|
300
|
-
return useTheme();
|
|
299
|
+
function useTheme() {
|
|
300
|
+
return (0, styled_components.useTheme)();
|
|
301
301
|
}
|
|
302
302
|
/**
|
|
303
303
|
* @public
|
|
304
304
|
*/
|
|
305
305
|
function useTheme_v2() {
|
|
306
|
-
|
|
306
|
+
let $ = (0, react_compiler_runtime.c)(2), t0 = (0, styled_components.useTheme)(), t1;
|
|
307
|
+
return $[0] === t0 ? t1 = $[1] : (t1 = require_theme.X(t0), $[0] = t0, $[1] = t1), t1;
|
|
307
308
|
}
|
|
308
309
|
function responsiveBorderStyle() {
|
|
309
310
|
return [
|
|
@@ -315,23 +316,23 @@ function responsiveBorderStyle() {
|
|
|
315
316
|
];
|
|
316
317
|
}
|
|
317
318
|
function border(props) {
|
|
318
|
-
let { card, media } =
|
|
319
|
+
let { card, media } = require_theme.X(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
|
|
319
320
|
return _responsive(media, props.$border, (value) => value ? { "&&": { border: borderStyle } } : { "&&": { border: 0 } });
|
|
320
321
|
}
|
|
321
322
|
function borderTop(props) {
|
|
322
|
-
let { card, media } =
|
|
323
|
+
let { card, media } = require_theme.X(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
|
|
323
324
|
return _responsive(media, props.$borderTop, (value) => value ? { "&&": { borderTop: borderStyle } } : { "&&": { borderTop: 0 } });
|
|
324
325
|
}
|
|
325
326
|
function borderRight(props) {
|
|
326
|
-
let { card, media } =
|
|
327
|
+
let { card, media } = require_theme.X(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
|
|
327
328
|
return _responsive(media, props.$borderRight, (value) => value ? { "&&": { borderRight: borderStyle } } : { "&&": { borderRight: 0 } });
|
|
328
329
|
}
|
|
329
330
|
function borderBottom(props) {
|
|
330
|
-
let { card, media } =
|
|
331
|
+
let { card, media } = require_theme.X(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
|
|
331
332
|
return _responsive(media, props.$borderBottom, (value) => value ? { "&&": { borderBottom: borderStyle } } : { "&&": { borderBottom: 0 } });
|
|
332
333
|
}
|
|
333
334
|
function borderLeft(props) {
|
|
334
|
-
let { card, media } =
|
|
335
|
+
let { card, media } = require_theme.X(props.theme), borderStyle = `${card.border?.width ?? 1}px solid var(--card-border-color)`;
|
|
335
336
|
return _responsive(media, props.$borderLeft, (value) => value ? { "&&": { borderLeft: borderStyle } } : { "&&": { borderLeft: 0 } });
|
|
336
337
|
}
|
|
337
338
|
const BASE_STYLE$3 = { "&[data-as=\"ul\"],&[data-as=\"ol\"]": { listStyle: "none" } }, BOX_SIZING = {
|
|
@@ -353,19 +354,19 @@ function responsiveBoxStyle() {
|
|
|
353
354
|
];
|
|
354
355
|
}
|
|
355
356
|
function responsiveBoxDisplayStyle(props) {
|
|
356
|
-
let { media } =
|
|
357
|
+
let { media } = require_theme.X(props.theme);
|
|
357
358
|
return _responsive(media, props.$display, (display) => ({ "&:not([hidden])": { display } }));
|
|
358
359
|
}
|
|
359
360
|
function responsiveBoxSizingStyle(props) {
|
|
360
|
-
let { media } =
|
|
361
|
+
let { media } = require_theme.X(props.theme);
|
|
361
362
|
return _responsive(media, props.$sizing, (sizing) => ({ boxSizing: BOX_SIZING[sizing] }));
|
|
362
363
|
}
|
|
363
364
|
function responsiveBoxHeightStyle(props) {
|
|
364
|
-
let { media } =
|
|
365
|
+
let { media } = require_theme.X(props.theme);
|
|
365
366
|
return _responsive(media, props.$height, (height) => ({ height: BOX_HEIGHT[height] }));
|
|
366
367
|
}
|
|
367
368
|
function responsiveBoxOverflowStyle(props) {
|
|
368
|
-
let { media } =
|
|
369
|
+
let { media } = require_theme.X(props.theme);
|
|
369
370
|
return _responsive(media, props.$overflow, (overflow) => ({ overflow }));
|
|
370
371
|
}
|
|
371
372
|
const BASE_STYLE$2 = {
|
|
@@ -376,7 +377,7 @@ function flexItemStyle() {
|
|
|
376
377
|
return [BASE_STYLE$2, responsiveFlexItemStyle];
|
|
377
378
|
}
|
|
378
379
|
function responsiveFlexItemStyle(props) {
|
|
379
|
-
let { media } =
|
|
380
|
+
let { media } = require_theme.X(props.theme);
|
|
380
381
|
return props.$flex ? _responsive(media, props.$flex, (flex) => ({ flex: `${flex}` })) : EMPTY_ARRAY;
|
|
381
382
|
}
|
|
382
383
|
const BASE_STYLE$1 = { "&&:not([hidden])": { display: "flex" } };
|
|
@@ -391,23 +392,23 @@ function responsiveFlexStyle() {
|
|
|
391
392
|
];
|
|
392
393
|
}
|
|
393
394
|
function responsiveFlexAlignStyle(props) {
|
|
394
|
-
let { media } =
|
|
395
|
+
let { media } = require_theme.X(props.theme);
|
|
395
396
|
return _responsive(media, props.$align, (align) => ({ alignItems: align }));
|
|
396
397
|
}
|
|
397
398
|
function responsiveFlexGapStyle(props) {
|
|
398
|
-
let { media, space } =
|
|
399
|
+
let { media, space } = require_theme.X(props.theme);
|
|
399
400
|
return _responsive(media, props.$gap, (gap) => ({ gap: gap ? rem(space[gap]) : void 0 }));
|
|
400
401
|
}
|
|
401
402
|
function responsiveFlexWrapStyle(props) {
|
|
402
|
-
let { media } =
|
|
403
|
+
let { media } = require_theme.X(props.theme);
|
|
403
404
|
return _responsive(media, props.$wrap, (wrap) => ({ flexWrap: wrap }));
|
|
404
405
|
}
|
|
405
406
|
function responsiveFlexJustifyStyle(props) {
|
|
406
|
-
let { media } =
|
|
407
|
+
let { media } = require_theme.X(props.theme);
|
|
407
408
|
return _responsive(media, props.$justify, (justify) => ({ justifyContent: justify }));
|
|
408
409
|
}
|
|
409
410
|
function responsiveFlexDirectionStyle(props) {
|
|
410
|
-
let { media } =
|
|
411
|
+
let { media } = require_theme.X(props.theme);
|
|
411
412
|
return _responsive(media, props.$direction, (direction) => ({ flexDirection: direction }));
|
|
412
413
|
}
|
|
413
414
|
function focusRingBorderStyle(border) {
|
|
@@ -440,27 +441,27 @@ const GRID_ITEM_ROW = {
|
|
|
440
441
|
full: "1 / -1"
|
|
441
442
|
};
|
|
442
443
|
function responsiveGridItemRowStyle(props) {
|
|
443
|
-
let { media } =
|
|
444
|
+
let { media } = require_theme.X(props.theme);
|
|
444
445
|
return _responsive(media, props.$row, (row) => typeof row == "number" ? { gridRow: `span ${row} / span ${row}` } : { gridRow: GRID_ITEM_ROW[row] });
|
|
445
446
|
}
|
|
446
447
|
function responsiveGridItemRowStartStyle(props) {
|
|
447
|
-
let { media } =
|
|
448
|
+
let { media } = require_theme.X(props.theme);
|
|
448
449
|
return _responsive(media, props.$rowStart, (rowStart) => ({ gridRowStart: `${rowStart}` }));
|
|
449
450
|
}
|
|
450
451
|
function responsiveGridItemRowEndStyle(props) {
|
|
451
|
-
let { media } =
|
|
452
|
+
let { media } = require_theme.X(props.theme);
|
|
452
453
|
return _responsive(media, props.$rowEnd, (rowEnd) => ({ gridRowEnd: `${rowEnd}` }));
|
|
453
454
|
}
|
|
454
455
|
function responsiveGridItemColumnStyle(props) {
|
|
455
|
-
let { media } =
|
|
456
|
+
let { media } = require_theme.X(props.theme);
|
|
456
457
|
return _responsive(media, props.$column, (column) => typeof column == "number" ? { gridColumn: `span ${column} / span ${column}` } : { gridColumn: GRID_ITEM_COLUMN[column] });
|
|
457
458
|
}
|
|
458
459
|
function responsiveGridItemColumnStartStyle(props) {
|
|
459
|
-
let { media } =
|
|
460
|
+
let { media } = require_theme.X(props.theme);
|
|
460
461
|
return _responsive(media, props.$columnStart, (columnStart) => ({ gridColumnStart: `${columnStart}` }));
|
|
461
462
|
}
|
|
462
463
|
function responsiveGridItemColumnEndStyle(props) {
|
|
463
|
-
let { media } =
|
|
464
|
+
let { media } = require_theme.X(props.theme);
|
|
464
465
|
return _responsive(media, props.$columnEnd, (columnEnd) => ({ gridColumnEnd: `${columnEnd}` }));
|
|
465
466
|
}
|
|
466
467
|
const GRID_CSS = {
|
|
@@ -491,39 +492,39 @@ function responsiveGridStyle() {
|
|
|
491
492
|
];
|
|
492
493
|
}
|
|
493
494
|
function responsiveGridAutoFlowStyle(props) {
|
|
494
|
-
let { media } =
|
|
495
|
+
let { media } = require_theme.X(props.theme);
|
|
495
496
|
return _responsive(media, props.$autoFlow, (autoFlow) => ({ gridAutoFlow: autoFlow }));
|
|
496
497
|
}
|
|
497
498
|
function responsiveGridAutoRowsStyle(props) {
|
|
498
|
-
let { media } =
|
|
499
|
+
let { media } = require_theme.X(props.theme);
|
|
499
500
|
return _responsive(media, props.$autoRows, (autoRows) => ({ gridAutoRows: autoRows && GRID_AUTO_ROWS[autoRows] }));
|
|
500
501
|
}
|
|
501
502
|
function responsiveGridAutoColsStyle(props) {
|
|
502
|
-
let { media } =
|
|
503
|
+
let { media } = require_theme.X(props.theme);
|
|
503
504
|
return _responsive(media, props.$autoCols, (autoCols) => ({ gridAutoColumns: autoCols && GRID_AUTO_COLUMS[autoCols] }));
|
|
504
505
|
}
|
|
505
506
|
function responsiveGridColumnsStyle(props) {
|
|
506
|
-
let { media } =
|
|
507
|
+
let { media } = require_theme.X(props.theme);
|
|
507
508
|
return _responsive(media, props.$columns, (columns) => ({ gridTemplateColumns: columns && `repeat(${columns},minmax(0,1fr));` }));
|
|
508
509
|
}
|
|
509
510
|
function responsiveGridRowsStyle(props) {
|
|
510
|
-
let { media } =
|
|
511
|
+
let { media } = require_theme.X(props.theme);
|
|
511
512
|
return _responsive(media, props.$rows, (rows) => ({ gridTemplateRows: rows && `repeat(${rows},minmax(0,1fr));` }));
|
|
512
513
|
}
|
|
513
514
|
function responsiveGridGapStyle(props) {
|
|
514
|
-
let { media, space } =
|
|
515
|
+
let { media, space } = require_theme.X(props.theme);
|
|
515
516
|
return _responsive(media, props.$gap, (gap) => ({ gridGap: gap ? rem(space[gap]) : void 0 }));
|
|
516
517
|
}
|
|
517
518
|
function responsiveGridGapXStyle(props) {
|
|
518
|
-
let { media, space } =
|
|
519
|
+
let { media, space } = require_theme.X(props.theme);
|
|
519
520
|
return _responsive(media, props.$gapX, (gapX) => ({ columnGap: gapX ? rem(space[gapX]) : void 0 }));
|
|
520
521
|
}
|
|
521
522
|
function responsiveGridGapYStyle(props) {
|
|
522
|
-
let { media, space } =
|
|
523
|
+
let { media, space } = require_theme.X(props.theme);
|
|
523
524
|
return _responsive(media, props.$gapY, (gapY) => ({ rowGap: gapY ? rem(space[gapY]) : void 0 }));
|
|
524
525
|
}
|
|
525
526
|
function responsiveInputPaddingStyle(props) {
|
|
526
|
-
let { $fontSize, $iconLeft, $iconRight, $padding, $space } = props, { font, media, space } =
|
|
527
|
+
let { $fontSize, $iconLeft, $iconRight, $padding, $space } = props, { font, media, space } = require_theme.X(props.theme), len = Math.max($padding.length, $space.length, $fontSize.length), _padding = [], _space = [], _fontSize = [];
|
|
527
528
|
for (let i = 0; i < len; i += 1) _fontSize[i] = $fontSize[i] === void 0 ? _fontSize[i - 1] : $fontSize[i], _padding[i] = $padding[i] === void 0 ? _padding[i - 1] : $padding[i], _space[i] = $space[i] === void 0 ? _space[i - 1] : $space[i];
|
|
528
529
|
return _responsive(media, _padding, (_, i) => {
|
|
529
530
|
let size = font.text.sizes[_fontSize[i]] || font.text.sizes[2], emSize = size.lineHeight - size.ascenderHeight - size.descenderHeight, p = space[_padding[i]], s = space[_space[i]], styles = {
|
|
@@ -541,16 +542,16 @@ function responsiveInputPaddingIconRightStyle(props) {
|
|
|
541
542
|
$iconRight: !0
|
|
542
543
|
});
|
|
543
544
|
}
|
|
544
|
-
const ROOT_STYLE = css`&:not([hidden]){display:flex;}align-items:center;`;
|
|
545
|
+
const ROOT_STYLE = styled_components.css`&:not([hidden]){display:flex;}align-items:center;`;
|
|
545
546
|
function textInputRootStyle() {
|
|
546
547
|
return ROOT_STYLE;
|
|
547
548
|
}
|
|
548
549
|
function textInputBaseStyle(props) {
|
|
549
|
-
let { $scheme, $tone, $weight } = props, { color, font } =
|
|
550
|
-
return css`appearance:none;background:none;border:0;border-radius:0;outline:none;width:100%;box-sizing:border-box;font-family:${font.text.family};font-weight:${$weight && font.text.weights[$weight] || font.text.weights.regular};margin:0;position:relative;z-index:1;display:block;&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus,&:-webkit-autofill:active{-webkit-text-fill-color:var(--input-fg-color) !important;transition:background-color 5000s;transition-delay:86400s;}&[data-as='textarea']{resize:none;}color:var(--input-fg-color);&::placeholder{color:var(--input-placeholder-color);}&[data-scheme='${$scheme}'][data-tone='${$tone}']{--input-fg-color:${color.input.default.enabled.fg};--input-placeholder-color:${color.input.default.enabled.placeholder};&:not(:invalid):not(:disabled):not(:read-only){--input-fg-color:${color.input.default.enabled.fg};--input-placeholder-color:${color.input.default.enabled.placeholder};}&:not(:invalid):disabled{--input-fg-color:${color.input.default.disabled.fg};--input-placeholder-color:${color.input.default.disabled.placeholder};}&:invalid{--input-fg-color:${color.input.invalid.enabled.fg};--input-placeholder-color:${color.input.invalid.enabled.placeholder};}&:read-only{--input-fg-color:${color.input.default.readOnly.fg};--input-placeholder-color:${color.input.default.readOnly.placeholder};}}`;
|
|
550
|
+
let { $scheme, $tone, $weight } = props, { color, font } = require_theme.X(props.theme);
|
|
551
|
+
return styled_components.css`appearance:none;background:none;border:0;border-radius:0;outline:none;width:100%;box-sizing:border-box;font-family:${font.text.family};font-weight:${$weight && font.text.weights[$weight] || font.text.weights.regular};margin:0;position:relative;z-index:1;display:block;&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus,&:-webkit-autofill:active{-webkit-text-fill-color:var(--input-fg-color) !important;transition:background-color 5000s;transition-delay:86400s;}&[data-as='textarea']{resize:none;}color:var(--input-fg-color);&::placeholder{color:var(--input-placeholder-color);}&[data-scheme='${$scheme}'][data-tone='${$tone}']{--input-fg-color:${color.input.default.enabled.fg};--input-placeholder-color:${color.input.default.enabled.placeholder};&:not(:invalid):not(:disabled):not(:read-only){--input-fg-color:${color.input.default.enabled.fg};--input-placeholder-color:${color.input.default.enabled.placeholder};}&:not(:invalid):disabled{--input-fg-color:${color.input.default.disabled.fg};--input-placeholder-color:${color.input.default.disabled.placeholder};}&:invalid{--input-fg-color:${color.input.invalid.enabled.fg};--input-placeholder-color:${color.input.invalid.enabled.placeholder};}&:read-only{--input-fg-color:${color.input.default.readOnly.fg};--input-placeholder-color:${color.input.default.readOnly.placeholder};}}`;
|
|
551
552
|
}
|
|
552
553
|
function textInputFontSizeStyle(props) {
|
|
553
|
-
let { font, media } =
|
|
554
|
+
let { font, media } = require_theme.X(props.theme);
|
|
554
555
|
return _responsive(media, props.$fontSize, (sizeIndex) => {
|
|
555
556
|
let size = font.text.sizes[sizeIndex] || font.text.sizes[2];
|
|
556
557
|
return {
|
|
@@ -560,8 +561,8 @@ function textInputFontSizeStyle(props) {
|
|
|
560
561
|
});
|
|
561
562
|
}
|
|
562
563
|
function textInputRepresentationStyle(props) {
|
|
563
|
-
let { $hasPrefix, $hasSuffix, $scheme, $tone, $unstableDisableFocusRing } = props, { color, input } =
|
|
564
|
-
return css`--input-box-shadow:none;position:absolute;top:0;left:0;right:0;bottom:0;display:block;pointer-events:none;z-index:0;background-color:var(--card-bg-color);box-shadow:var(--input-box-shadow);border-top-left-radius:${$hasPrefix ? 0 : void 0};border-bottom-left-radius:${$hasPrefix ? 0 : void 0};border-top-right-radius:${$hasSuffix ? 0 : void 0};border-bottom-right-radius:${$hasSuffix ? 0 : void 0};&[data-scheme='${$scheme}'][data-tone='${$tone}']{--card-bg-color:${color.input.default.enabled.bg};--card-fg-color:${color.input.default.enabled.fg};*:not(:disabled) + &[data-border]{--input-box-shadow:${focusRingBorderStyle({
|
|
564
|
+
let { $hasPrefix, $hasSuffix, $scheme, $tone, $unstableDisableFocusRing } = props, { color, input } = require_theme.X(props.theme);
|
|
565
|
+
return styled_components.css`--input-box-shadow:none;position:absolute;top:0;left:0;right:0;bottom:0;display:block;pointer-events:none;z-index:0;background-color:var(--card-bg-color);box-shadow:var(--input-box-shadow);border-top-left-radius:${$hasPrefix ? 0 : void 0};border-bottom-left-radius:${$hasPrefix ? 0 : void 0};border-top-right-radius:${$hasSuffix ? 0 : void 0};border-bottom-right-radius:${$hasSuffix ? 0 : void 0};&[data-scheme='${$scheme}'][data-tone='${$tone}']{--card-bg-color:${color.input.default.enabled.bg};--card-fg-color:${color.input.default.enabled.fg};*:not(:disabled) + &[data-border]{--input-box-shadow:${focusRingBorderStyle({
|
|
565
566
|
color: color.input.default.enabled.border,
|
|
566
567
|
width: input.border.width
|
|
567
568
|
})};}*:not(:disabled):invalid + &{--card-bg-color:${color.input.invalid.enabled.bg};--card-fg-color:${color.input.invalid.enabled.fg};&[data-border]{--input-box-shadow:${focusRingBorderStyle({
|
|
@@ -612,7 +613,7 @@ function responsivePaddingStyle(props) {
|
|
|
612
613
|
].filter(Boolean);
|
|
613
614
|
}
|
|
614
615
|
function responsiveRadiusStyle(props) {
|
|
615
|
-
let { media, radius } =
|
|
616
|
+
let { media, radius } = require_theme.X(props.theme);
|
|
616
617
|
return _responsive(media, props.$radius, (value) => {
|
|
617
618
|
let borderRadius = 0;
|
|
618
619
|
return typeof value == "number" && (borderRadius = rem(radius[value])), value === "full" && (borderRadius = "9999px"), { borderRadius };
|
|
@@ -625,18 +626,18 @@ function shadowStyle(shadow, outlineWidth = 1) {
|
|
|
625
626
|
return shadow ? { boxShadow: `${`0 0 0 ${rem(outlineWidth)} var(--card-shadow-outline-color)`}, ${toBoxShadow(shadow.umbra, "var(--card-shadow-umbra-color)")}, ${toBoxShadow(shadow.penumbra, "var(--card-shadow-penumbra-color)")}, ${toBoxShadow(shadow.ambient, "var(--card-shadow-ambient-color)")}` } : EMPTY_RECORD;
|
|
626
627
|
}
|
|
627
628
|
function responsiveShadowStyle(props) {
|
|
628
|
-
let { card, media, shadow } =
|
|
629
|
+
let { card, media, shadow } = require_theme.X(props.theme);
|
|
629
630
|
return _responsive(media, props.$shadow, (index) => shadowStyle(shadow[index], card.shadow.outline));
|
|
630
631
|
}
|
|
631
632
|
/** @internal */
|
|
632
|
-
const SpanWithTextOverflow = styled.span.withConfig({
|
|
633
|
+
const SpanWithTextOverflow = styled_components.styled.span.withConfig({
|
|
633
634
|
displayName: "SpanWithTextOverflow",
|
|
634
635
|
componentId: "sc-xkyu3h-0"
|
|
635
|
-
})`display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;overflow:clip;`, StyledBox = /* @__PURE__ */ styled.div.withConfig({
|
|
636
|
+
})`display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;overflow:clip;`, StyledBox = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
636
637
|
displayName: "StyledBox",
|
|
637
638
|
componentId: "sc-yj6ffl-0"
|
|
638
|
-
})(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = forwardRef(function Box(props, ref) {
|
|
639
|
-
let $ = c(115), deprecated_column, deprecated_columnEnd, deprecated_columnStart, deprecated_row, deprecated_rowEnd, deprecated_rowStart, flex, gridColumn, gridColumnEnd, gridColumnStart, gridRow, gridRowEnd, gridRowStart, height, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, restProps, sizing, t0, t1, t2, t3;
|
|
639
|
+
})(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = (0, react.forwardRef)(function Box(props, ref) {
|
|
640
|
+
let $ = (0, react_compiler_runtime.c)(115), deprecated_column, deprecated_columnEnd, deprecated_columnStart, deprecated_row, deprecated_rowEnd, deprecated_rowStart, flex, gridColumn, gridColumnEnd, gridColumnStart, gridRow, gridRowEnd, gridRowStart, height, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, restProps, sizing, t0, t1, t2, t3;
|
|
640
641
|
$[0] === props ? (deprecated_column = $[1], deprecated_columnEnd = $[2], deprecated_columnStart = $[3], deprecated_row = $[4], deprecated_rowEnd = $[5], deprecated_rowStart = $[6], flex = $[7], gridColumn = $[8], gridColumnEnd = $[9], gridColumnStart = $[10], gridRow = $[11], gridRowEnd = $[12], gridRowStart = $[13], height = $[14], marginBottom = $[15], marginLeft = $[16], marginRight = $[17], marginTop = $[18], marginX = $[19], marginY = $[20], overflow = $[21], paddingBottom = $[22], paddingLeft = $[23], paddingRight = $[24], paddingTop = $[25], paddingX = $[26], paddingY = $[27], restProps = $[28], sizing = $[29], t0 = $[30], t1 = $[31], t2 = $[32], t3 = $[33]) : ({as: t0, gridColumn, column: deprecated_column, gridColumnStart, columnStart: deprecated_columnStart, gridColumnEnd, columnEnd: deprecated_columnEnd, display: t1, flex, height, margin: t2, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, overflow, padding: t3, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, gridRow, row: deprecated_row, gridRowStart, rowStart: deprecated_rowStart, gridRowEnd, rowEnd: deprecated_rowEnd, sizing, ...restProps} = props, $[0] = props, $[1] = deprecated_column, $[2] = deprecated_columnEnd, $[3] = deprecated_columnStart, $[4] = deprecated_row, $[5] = deprecated_rowEnd, $[6] = deprecated_rowStart, $[7] = flex, $[8] = gridColumn, $[9] = gridColumnEnd, $[10] = gridColumnStart, $[11] = gridRow, $[12] = gridRowEnd, $[13] = gridRowStart, $[14] = height, $[15] = marginBottom, $[16] = marginLeft, $[17] = marginRight, $[18] = marginTop, $[19] = marginX, $[20] = marginY, $[21] = overflow, $[22] = paddingBottom, $[23] = paddingLeft, $[24] = paddingRight, $[25] = paddingTop, $[26] = paddingX, $[27] = paddingY, $[28] = restProps, $[29] = sizing, $[30] = t0, $[31] = t1, $[32] = t2, $[33] = t3);
|
|
641
642
|
let asProp = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, column = gridColumn === void 0 ? deprecated_column : gridColumn, columnStart = gridColumnStart === void 0 ? deprecated_columnStart : gridColumnStart, columnEnd = gridColumnEnd === void 0 ? deprecated_columnEnd : gridColumnEnd, row = gridRow === void 0 ? deprecated_row : gridRow, rowStart = gridRowStart === void 0 ? deprecated_rowStart : gridRowStart, rowEnd = gridRowEnd === void 0 ? deprecated_rowEnd : gridRowEnd, t4 = typeof asProp == "string" ? asProp : void 0, t5;
|
|
642
643
|
$[34] === column ? t5 = $[35] : (t5 = _getArrayProp(column), $[34] = column, $[35] = t5);
|
|
@@ -689,7 +690,7 @@ const SpanWithTextOverflow = styled.span.withConfig({
|
|
|
689
690
|
let t29;
|
|
690
691
|
$[82] === sizing ? t29 = $[83] : (t29 = _getArrayProp(sizing), $[82] = sizing, $[83] = t29);
|
|
691
692
|
let t30;
|
|
692
|
-
return $[84] !== asProp || $[85] !== props.children || $[86] !== ref || $[87] !== restProps || $[88] !== t10 || $[89] !== t11 || $[90] !== t12 || $[91] !== t13 || $[92] !== t14 || $[93] !== t15 || $[94] !== t16 || $[95] !== t17 || $[96] !== t18 || $[97] !== t19 || $[98] !== t20 || $[99] !== t21 || $[100] !== t22 || $[101] !== t23 || $[102] !== t24 || $[103] !== t25 || $[104] !== t26 || $[105] !== t27 || $[106] !== t28 || $[107] !== t29 || $[108] !== t4 || $[109] !== t5 || $[110] !== t6 || $[111] !== t7 || $[112] !== t8 || $[113] !== t9 ? (t30 = /* @__PURE__ */ jsx(StyledBox, {
|
|
693
|
+
return $[84] !== asProp || $[85] !== props.children || $[86] !== ref || $[87] !== restProps || $[88] !== t10 || $[89] !== t11 || $[90] !== t12 || $[91] !== t13 || $[92] !== t14 || $[93] !== t15 || $[94] !== t16 || $[95] !== t17 || $[96] !== t18 || $[97] !== t19 || $[98] !== t20 || $[99] !== t21 || $[100] !== t22 || $[101] !== t23 || $[102] !== t24 || $[103] !== t25 || $[104] !== t26 || $[105] !== t27 || $[106] !== t28 || $[107] !== t29 || $[108] !== t4 || $[109] !== t5 || $[110] !== t6 || $[111] !== t7 || $[112] !== t8 || $[113] !== t9 ? (t30 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledBox, {
|
|
693
694
|
"data-as": t4,
|
|
694
695
|
"data-ui": "Box",
|
|
695
696
|
...restProps,
|
|
@@ -724,28 +725,28 @@ const SpanWithTextOverflow = styled.span.withConfig({
|
|
|
724
725
|
}), $[84] = asProp, $[85] = props.children, $[86] = ref, $[87] = restProps, $[88] = t10, $[89] = t11, $[90] = t12, $[91] = t13, $[92] = t14, $[93] = t15, $[94] = t16, $[95] = t17, $[96] = t18, $[97] = t19, $[98] = t20, $[99] = t21, $[100] = t22, $[101] = t23, $[102] = t24, $[103] = t25, $[104] = t26, $[105] = t27, $[106] = t28, $[107] = t29, $[108] = t4, $[109] = t5, $[110] = t6, $[111] = t7, $[112] = t8, $[113] = t9, $[114] = t30) : t30 = $[114], t30;
|
|
725
726
|
});
|
|
726
727
|
function textBaseStyle(props) {
|
|
727
|
-
let { $accent, $muted } = props, { font } =
|
|
728
|
-
return css`color:var(--card-fg-color);${$accent && css`color:var(--card-accent-fg-color);`} ${$muted && css`color:var(--card-muted-fg-color);`} & code{font-family:${font.code.family};border-radius:1px;background-color:var(--card-code-bg-color);color:var(--card-code-fg-color);}& a{text-decoration:none;border-radius:1px;color:var(--card-link-color);outline:none;@media (hover:hover){&:hover{text-decoration:underline;}}&:focus{box-shadow:0 0 0 1px var(--card-bg-color),0 0 0 3px var(--card-focus-ring-color);}&:focus:not(:focus-visible){box-shadow:none;}}& strong{font-weight:${font.text.weights.bold};}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;color:var(--card-icon-color);& path{vector-effect:non-scaling-stroke !important;}}`;
|
|
728
|
+
let { $accent, $muted } = props, { font } = require_theme.X(props.theme);
|
|
729
|
+
return styled_components.css`color:var(--card-fg-color);${$accent && styled_components.css`color:var(--card-accent-fg-color);`} ${$muted && styled_components.css`color:var(--card-muted-fg-color);`} & code{font-family:${font.code.family};border-radius:1px;background-color:var(--card-code-bg-color);color:var(--card-code-fg-color);}& a{text-decoration:none;border-radius:1px;color:var(--card-link-color);outline:none;@media (hover:hover){&:hover{text-decoration:underline;}}&:focus{box-shadow:0 0 0 1px var(--card-bg-color),0 0 0 3px var(--card-focus-ring-color);}&:focus:not(:focus-visible){box-shadow:none;}}& strong{font-weight:${font.text.weights.bold};}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;color:var(--card-icon-color);& path{vector-effect:non-scaling-stroke !important;}}`;
|
|
729
730
|
}
|
|
730
|
-
const StyledText = /* @__PURE__ */ styled.div.withConfig({
|
|
731
|
+
const StyledText = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
731
732
|
displayName: "StyledText",
|
|
732
733
|
componentId: "sc-d4ufel-0"
|
|
733
|
-
})(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle), Text = forwardRef(function Text(props, ref) {
|
|
734
|
-
let $ = c(26), align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
|
|
734
|
+
})(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle), Text = (0, react.forwardRef)(function Text(props, ref) {
|
|
735
|
+
let $ = (0, react_compiler_runtime.c)(26), align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
|
|
735
736
|
$[0] === props ? (align = $[1], childrenProp = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], textOverflow = $[7], weight = $[8]) : ({accent: t0, align, children: childrenProp, muted: t1, size: t2, textOverflow, weight, ...restProps} = props, $[0] = props, $[1] = align, $[2] = childrenProp, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = textOverflow, $[8] = weight);
|
|
736
737
|
let accent = t0 !== void 0 && t0, muted = t1 !== void 0 && t1, size = t2 === void 0 ? 2 : t2, children = childrenProp;
|
|
737
738
|
if (textOverflow === "ellipsis") {
|
|
738
739
|
let t3;
|
|
739
|
-
$[9] === children ? t3 = $[10] : (t3 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t3), children = t3;
|
|
740
|
+
$[9] === children ? t3 = $[10] : (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t3), children = t3;
|
|
740
741
|
}
|
|
741
742
|
let t3;
|
|
742
743
|
$[11] === align ? t3 = $[12] : (t3 = _getArrayProp(align), $[11] = align, $[12] = t3);
|
|
743
744
|
let t4;
|
|
744
745
|
$[13] === size ? t4 = $[14] : (t4 = _getArrayProp(size), $[13] = size, $[14] = t4);
|
|
745
746
|
let t5;
|
|
746
|
-
$[15] === children ? t5 = $[16] : (t5 = /* @__PURE__ */ jsx("span", { children }), $[15] = children, $[16] = t5);
|
|
747
|
+
$[15] === children ? t5 = $[16] : (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children }), $[15] = children, $[16] = t5);
|
|
747
748
|
let t6;
|
|
748
|
-
return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ jsx(StyledText, {
|
|
749
|
+
return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledText, {
|
|
749
750
|
"data-ui": "Text",
|
|
750
751
|
...restProps,
|
|
751
752
|
$accent: accent,
|
|
@@ -756,11 +757,11 @@ const StyledText = /* @__PURE__ */ styled.div.withConfig({
|
|
|
756
757
|
$weight: weight,
|
|
757
758
|
children: t5
|
|
758
759
|
}), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
|
|
759
|
-
}), StyledFlex = /* @__PURE__ */ styled(Box).withConfig({
|
|
760
|
+
}), StyledFlex = /* @__PURE__ */ (0, styled_components.styled)(Box).withConfig({
|
|
760
761
|
displayName: "StyledFlex",
|
|
761
762
|
componentId: "sc-ux9uze-0"
|
|
762
|
-
})(flexItemStyle, responsiveFlexStyle), Flex = forwardRef(function Flex(props, ref) {
|
|
763
|
-
let $ = c(27), align, as, gap, justify, restProps, t0, wrap;
|
|
763
|
+
})(flexItemStyle, responsiveFlexStyle), Flex = (0, react.forwardRef)(function Flex(props, ref) {
|
|
764
|
+
let $ = (0, react_compiler_runtime.c)(27), align, as, gap, justify, restProps, t0, wrap;
|
|
764
765
|
$[0] === props ? (align = $[1], as = $[2], gap = $[3], justify = $[4], restProps = $[5], t0 = $[6], wrap = $[7]) : ({align, as, direction: t0, gap, justify, wrap, ...restProps} = props, $[0] = props, $[1] = align, $[2] = as, $[3] = gap, $[4] = justify, $[5] = restProps, $[6] = t0, $[7] = wrap);
|
|
765
766
|
let direction = t0 === void 0 ? "row" : t0, t1;
|
|
766
767
|
$[8] === align ? t1 = $[9] : (t1 = _getArrayProp(align), $[8] = align, $[9] = t1);
|
|
@@ -773,7 +774,7 @@ const StyledText = /* @__PURE__ */ styled.div.withConfig({
|
|
|
773
774
|
let t5;
|
|
774
775
|
$[16] === wrap ? t5 = $[17] : (t5 = _getArrayProp(wrap), $[16] = wrap, $[17] = t5);
|
|
775
776
|
let t6;
|
|
776
|
-
return $[18] !== as || $[19] !== ref || $[20] !== restProps || $[21] !== t1 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledFlex, {
|
|
777
|
+
return $[18] !== as || $[19] !== ref || $[20] !== restProps || $[21] !== t1 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledFlex, {
|
|
777
778
|
"data-ui": "Flex",
|
|
778
779
|
...restProps,
|
|
779
780
|
$align: t1,
|
|
@@ -784,14 +785,14 @@ const StyledText = /* @__PURE__ */ styled.div.withConfig({
|
|
|
784
785
|
forwardedAs: as,
|
|
785
786
|
ref
|
|
786
787
|
}), $[18] = as, $[19] = ref, $[20] = restProps, $[21] = t1, $[22] = t2, $[23] = t3, $[24] = t4, $[25] = t5, $[26] = t6) : t6 = $[26], t6;
|
|
787
|
-
}), rotate = keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`, StyledSpinner = styled(Text).withConfig({
|
|
788
|
+
}), rotate = styled_components.keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`, StyledSpinner = (0, styled_components.styled)(Text).withConfig({
|
|
788
789
|
displayName: "StyledSpinner",
|
|
789
790
|
componentId: "sc-10l2iw-0"
|
|
790
|
-
})`& > span > svg{animation:${rotate} 500ms linear infinite;}`, Spinner = forwardRef(function Spinner(props, ref) {
|
|
791
|
-
let $ = c(4), t0;
|
|
792
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(SpinnerIcon, {}), $[0] = t0) : t0 = $[0];
|
|
791
|
+
})`& > span > svg{animation:${rotate} 500ms linear infinite;}`, Spinner = (0, react.forwardRef)(function Spinner(props, ref) {
|
|
792
|
+
let $ = (0, react_compiler_runtime.c)(4), t0;
|
|
793
|
+
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_sanity_icons_Spinner.SpinnerIcon, {}), $[0] = t0) : t0 = $[0];
|
|
793
794
|
let t1;
|
|
794
|
-
return $[1] !== props || $[2] !== ref ? (t1 = /* @__PURE__ */ jsx(StyledSpinner, {
|
|
795
|
+
return $[1] !== props || $[2] !== ref ? (t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSpinner, {
|
|
795
796
|
"data-ui": "Spinner",
|
|
796
797
|
...props,
|
|
797
798
|
ref,
|
|
@@ -881,8 +882,8 @@ function _cardColorStyle(base, color, checkered = !1) {
|
|
|
881
882
|
* @internal
|
|
882
883
|
*/
|
|
883
884
|
function buttonBaseStyles(props) {
|
|
884
|
-
let { $width } = props, { style } =
|
|
885
|
-
return css`${style?.button};-webkit-font-smoothing:inherit;appearance:none;display:inline-flex;align-items:center;font:inherit;border:0;outline:none;user-select:none;text-decoration:none;border:0;box-sizing:border-box;padding:0;margin:0;white-space:nowrap;text-align:left;position:relative;vertical-align:top;${$width === "fill" && css`width:-moz-available;width:-webkit-fill-available;width:stretch;`} & > span{display:block;flex:1;min-width:0;border-radius:inherit;}&::-moz-focus-inner{border:0;padding:0;}`;
|
|
885
|
+
let { $width } = props, { style } = require_theme.X(props.theme);
|
|
886
|
+
return styled_components.css`${style?.button};-webkit-font-smoothing:inherit;appearance:none;display:inline-flex;align-items:center;font:inherit;border:0;outline:none;user-select:none;text-decoration:none;border:0;box-sizing:border-box;padding:0;margin:0;white-space:nowrap;text-align:left;position:relative;vertical-align:top;${$width === "fill" && styled_components.css`width:-moz-available;width:-webkit-fill-available;width:stretch;`} & > span{display:block;flex:1;min-width:0;border-radius:inherit;}&::-moz-focus-inner{border:0;padding:0;}`;
|
|
886
887
|
}
|
|
887
888
|
function combineBoxShadow(...boxShadows) {
|
|
888
889
|
return boxShadows.filter(Boolean).join(",");
|
|
@@ -891,7 +892,7 @@ function combineBoxShadow(...boxShadows) {
|
|
|
891
892
|
* @internal
|
|
892
893
|
*/
|
|
893
894
|
function buttonColorStyles(props) {
|
|
894
|
-
let { $mode } = props, { button, color: baseColor, style } =
|
|
895
|
+
let { $mode } = props, { button, color: baseColor, style } = require_theme.X(props.theme);
|
|
895
896
|
props.$mode;
|
|
896
897
|
let mode = baseColor.button[$mode] || baseColor.button.default, color = mode[props.$tone] || mode.default, border = {
|
|
897
898
|
width: button.border.width,
|
|
@@ -926,14 +927,14 @@ function buttonColorStyles(props) {
|
|
|
926
927
|
style?.button?.root
|
|
927
928
|
].filter(Boolean);
|
|
928
929
|
}
|
|
929
|
-
const StyledButton = /* @__PURE__ */ styled.button.withConfig({
|
|
930
|
+
const StyledButton = /* @__PURE__ */ styled_components.styled.button.withConfig({
|
|
930
931
|
displayName: "StyledButton",
|
|
931
932
|
componentId: "sc-rwh0gh-0"
|
|
932
|
-
})(responsiveRadiusStyle, buttonBaseStyles, buttonColorStyles), LoadingBox = styled.div.withConfig({
|
|
933
|
+
})(responsiveRadiusStyle, buttonBaseStyles, buttonColorStyles), LoadingBox = styled_components.styled.div.withConfig({
|
|
933
934
|
displayName: "LoadingBox",
|
|
934
935
|
componentId: "sc-rwh0gh-1"
|
|
935
|
-
})`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`, Button = forwardRef(function Button(props, ref) {
|
|
936
|
-
let $ = c(87), IconComponent, IconRightComponent, children, disabled, gap, loading, paddingBottomProp, paddingLeftProp, paddingRightProp, paddingTopProp, paddingXProp, paddingYProp, restProps, selected, t0, t1, t2, t3, t4, t5, t6, t7, t8, text, textAlign, textWeight, width;
|
|
936
|
+
})`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`, Button = (0, react.forwardRef)(function Button(props, ref) {
|
|
937
|
+
let $ = (0, react_compiler_runtime.c)(87), IconComponent, IconRightComponent, children, disabled, gap, loading, paddingBottomProp, paddingLeftProp, paddingRightProp, paddingTopProp, paddingXProp, paddingYProp, restProps, selected, t0, t1, t2, t3, t4, t5, t6, t7, t8, text, textAlign, textWeight, width;
|
|
937
938
|
$[0] === props ? (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], gap = $[5], loading = $[6], paddingBottomProp = $[7], paddingLeftProp = $[8], paddingRightProp = $[9], paddingTopProp = $[10], paddingXProp = $[11], paddingYProp = $[12], restProps = $[13], selected = $[14], t0 = $[15], t1 = $[16], t2 = $[17], t3 = $[18], t4 = $[19], t5 = $[20], t6 = $[21], t7 = $[22], t8 = $[23], text = $[24], textAlign = $[25], textWeight = $[26], width = $[27]) : ({children, disabled, fontSize: t0, icon: IconComponent, iconRight: IconRightComponent, justify: t1, loading, mode: t2, padding: t3, paddingX: paddingXProp, paddingY: paddingYProp, paddingTop: paddingTopProp, paddingBottom: paddingBottomProp, paddingLeft: paddingLeftProp, paddingRight: paddingRightProp, radius: t4, selected, gap, space: t5, text, textAlign, textWeight, tone: t6, type: t7, muted: t8, width, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = gap, $[6] = loading, $[7] = paddingBottomProp, $[8] = paddingLeftProp, $[9] = paddingRightProp, $[10] = paddingTopProp, $[11] = paddingXProp, $[12] = paddingYProp, $[13] = restProps, $[14] = selected, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6, $[22] = t7, $[23] = t8, $[24] = text, $[25] = textAlign, $[26] = textWeight, $[27] = width);
|
|
938
939
|
let fontSize = t0 === void 0 ? 1 : t0, justifyProp = t1 === void 0 ? "center" : t1, mode = t2 === void 0 ? "default" : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, deprecated_space = t5 === void 0 ? 3 : t5, tone = t6 === void 0 ? "default" : t6, type = t7 === void 0 ? "button" : t7, muted = t8 !== void 0 && t8, { button } = useTheme_v2(), t9;
|
|
939
940
|
$[28] === justifyProp ? t9 = $[29] : (t9 = _getArrayProp(justifyProp), $[28] = justifyProp, $[29] = t9);
|
|
@@ -966,21 +967,21 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
|
|
|
966
967
|
paddingRight
|
|
967
968
|
}, $[48] = padding, $[49] = paddingBottom, $[50] = paddingLeft, $[51] = paddingRight, $[52] = paddingTop, $[53] = paddingX, $[54] = paddingY, $[55] = t20) : t20 = $[55];
|
|
968
969
|
let boxProps = t20, t21 = !!(loading || disabled), t22 = selected ? "" : void 0, t23 = !!(loading || disabled), t24;
|
|
969
|
-
$[56] === loading ? t24 = $[57] : (t24 = !!loading && /* @__PURE__ */ jsx(LoadingBox, { children: /* @__PURE__ */ jsx(Spinner, {}) }), $[56] = loading, $[57] = t24);
|
|
970
|
+
$[56] === loading ? t24 = $[57] : (t24 = !!loading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoadingBox, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Spinner, {}) }), $[56] = loading, $[57] = t24);
|
|
970
971
|
let t25;
|
|
971
|
-
$[58] !== IconComponent || $[59] !== IconRightComponent || $[60] !== boxProps || $[61] !== button || $[62] !== fontSize || $[63] !== justify || $[64] !== muted || $[65] !== spacing || $[66] !== text || $[67] !== textAlign || $[68] !== textWeight ? (t25 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsx(Box, {
|
|
972
|
+
$[58] !== IconComponent || $[59] !== IconRightComponent || $[60] !== boxProps || $[61] !== button || $[62] !== fontSize || $[63] !== justify || $[64] !== muted || $[65] !== spacing || $[66] !== text || $[67] !== textAlign || $[68] !== textWeight ? (t25 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
|
|
972
973
|
as: "span",
|
|
973
974
|
...boxProps,
|
|
974
|
-
children: /* @__PURE__ */ jsxs(Flex, {
|
|
975
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Flex, {
|
|
975
976
|
as: "span",
|
|
976
977
|
justify,
|
|
977
978
|
gap: spacing,
|
|
978
979
|
children: [
|
|
979
|
-
IconComponent && /* @__PURE__ */ jsxs(Text, {
|
|
980
|
+
IconComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
|
|
980
981
|
size: fontSize,
|
|
981
|
-
children: [isValidElement(IconComponent) && IconComponent, isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})]
|
|
982
|
+
children: [(0, react.isValidElement)(IconComponent) && IconComponent, (0, react_is.isValidElementType)(IconComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconComponent, {})]
|
|
982
983
|
}),
|
|
983
|
-
text && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Text, {
|
|
984
|
+
text && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, {
|
|
984
985
|
muted,
|
|
985
986
|
align: textAlign,
|
|
986
987
|
size: fontSize,
|
|
@@ -988,21 +989,21 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
|
|
|
988
989
|
weight: textWeight ?? button.textWeight,
|
|
989
990
|
children: text
|
|
990
991
|
}) }),
|
|
991
|
-
IconRightComponent && /* @__PURE__ */ jsxs(Text, {
|
|
992
|
+
IconRightComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
|
|
992
993
|
size: fontSize,
|
|
993
|
-
children: [isValidElement(IconRightComponent) && IconRightComponent, isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})]
|
|
994
|
+
children: [(0, react.isValidElement)(IconRightComponent) && IconRightComponent, (0, react_is.isValidElementType)(IconRightComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconRightComponent, {})]
|
|
994
995
|
})
|
|
995
996
|
]
|
|
996
997
|
})
|
|
997
998
|
}), $[58] = IconComponent, $[59] = IconRightComponent, $[60] = boxProps, $[61] = button, $[62] = fontSize, $[63] = justify, $[64] = muted, $[65] = spacing, $[66] = text, $[67] = textAlign, $[68] = textWeight, $[69] = t25) : t25 = $[69];
|
|
998
999
|
let t26;
|
|
999
|
-
$[70] !== boxProps || $[71] !== children ? (t26 = children && /* @__PURE__ */ jsx(Box, {
|
|
1000
|
+
$[70] !== boxProps || $[71] !== children ? (t26 = children && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
|
|
1000
1001
|
as: "span",
|
|
1001
1002
|
...boxProps,
|
|
1002
1003
|
children
|
|
1003
1004
|
}), $[70] = boxProps, $[71] = children, $[72] = t26) : t26 = $[72];
|
|
1004
1005
|
let t27;
|
|
1005
|
-
return $[73] !== mode || $[74] !== radius || $[75] !== ref || $[76] !== restProps || $[77] !== t21 || $[78] !== t22 || $[79] !== t23 || $[80] !== t24 || $[81] !== t25 || $[82] !== t26 || $[83] !== tone || $[84] !== type || $[85] !== width ? (t27 = /* @__PURE__ */ jsxs(StyledButton, {
|
|
1006
|
+
return $[73] !== mode || $[74] !== radius || $[75] !== ref || $[76] !== restProps || $[77] !== t21 || $[78] !== t22 || $[79] !== t23 || $[80] !== t24 || $[81] !== t25 || $[82] !== t26 || $[83] !== tone || $[84] !== type || $[85] !== width ? (t27 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledButton, {
|
|
1006
1007
|
"data-ui": "Button",
|
|
1007
1008
|
...restProps,
|
|
1008
1009
|
$mode: mode,
|
|
@@ -1025,15 +1026,15 @@ function cardStyle(props) {
|
|
|
1025
1026
|
return [cardBaseStyle(props), cardColorStyle(props)];
|
|
1026
1027
|
}
|
|
1027
1028
|
function cardBaseStyle(props) {
|
|
1028
|
-
let { $checkered } = props, { space } =
|
|
1029
|
-
return css`${$checkered && css`background-size:${space[3]}px ${space[3]}px;background-position:50% 50%;background-image:var(--card-bg-image);`} &[data-as='button']{-webkit-font-smoothing:inherit;appearance:none;outline:none;font:inherit;text-align:inherit;border:0;width:-moz-available;width:-webkit-fill-available;width:stretch;}&[data-as='a']{outline:none;text-decoration:none;}&[data-as='pre']{font:inherit;}`;
|
|
1029
|
+
let { $checkered } = props, { space } = require_theme.X(props.theme);
|
|
1030
|
+
return styled_components.css`${$checkered && styled_components.css`background-size:${space[3]}px ${space[3]}px;background-position:50% 50%;background-image:var(--card-bg-image);`} &[data-as='button']{-webkit-font-smoothing:inherit;appearance:none;outline:none;font:inherit;text-align:inherit;border:0;width:-moz-available;width:-webkit-fill-available;width:stretch;}&[data-as='a']{outline:none;text-decoration:none;}&[data-as='pre']{font:inherit;}`;
|
|
1030
1031
|
}
|
|
1031
1032
|
function cardColorStyle(props) {
|
|
1032
|
-
let { $checkered, $focusRing, $muted } = props, { card, color, style } =
|
|
1033
|
+
let { $checkered, $focusRing, $muted } = props, { card, color, style } = require_theme.X(props.theme), border = {
|
|
1033
1034
|
width: card.border.width,
|
|
1034
1035
|
color: "var(--card-border-color)"
|
|
1035
1036
|
};
|
|
1036
|
-
return css`color-scheme:${color._dark ? "dark" : "light"};${_cardColorStyle(color, color, $checkered)} background-color:${$muted ? "var(--card-muted-bg-color)" : "var(--card-bg-color)"};color:var(--card-fg-color);&[data-as='button']{--card-focus-ring-box-shadow:none;cursor:default;box-shadow:var(--card-focus-ring-box-shadow);&:disabled{${_cardColorStyle(color, color.selectable.default.disabled, $checkered)}}&:not(:disabled){&[data-pressed]{${_cardColorStyle(color, color.selectable.default.pressed, $checkered)}}&[data-selected]{${_cardColorStyle(color, color.selectable.default.selected, $checkered)}}@media (hover:hover){&:not([data-pressed]):not([data-selected]){&[data-hovered],&:hover{${_cardColorStyle(color, color.selectable.default.hovered, $checkered)}}&:active{${_cardColorStyle(color, color.selectable.default.pressed, $checkered)}}}}&:focus-visible{--card-focus-ring-box-shadow:${$focusRing ? focusRingStyle({
|
|
1037
|
+
return styled_components.css`color-scheme:${color._dark ? "dark" : "light"};${_cardColorStyle(color, color, $checkered)} background-color:${$muted ? "var(--card-muted-bg-color)" : "var(--card-bg-color)"};color:var(--card-fg-color);&[data-as='button']{--card-focus-ring-box-shadow:none;cursor:default;box-shadow:var(--card-focus-ring-box-shadow);&:disabled{${_cardColorStyle(color, color.selectable.default.disabled, $checkered)}}&:not(:disabled){&[data-pressed]{${_cardColorStyle(color, color.selectable.default.pressed, $checkered)}}&[data-selected]{${_cardColorStyle(color, color.selectable.default.selected, $checkered)}}@media (hover:hover){&:not([data-pressed]):not([data-selected]){&[data-hovered],&:hover{${_cardColorStyle(color, color.selectable.default.hovered, $checkered)}}&:active{${_cardColorStyle(color, color.selectable.default.pressed, $checkered)}}}}&:focus-visible{--card-focus-ring-box-shadow:${$focusRing ? focusRingStyle({
|
|
1037
1038
|
base: color,
|
|
1038
1039
|
border,
|
|
1039
1040
|
focusRing: card.focusRing
|
|
@@ -1043,13 +1044,13 @@ function cardColorStyle(props) {
|
|
|
1043
1044
|
focusRing: card.focusRing
|
|
1044
1045
|
}) : void 0};}}}${style?.card?.root}`;
|
|
1045
1046
|
}
|
|
1046
|
-
const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
|
|
1047
|
+
const StyledCard = /* @__PURE__ */ (0, styled_components.styled)(Box).withConfig({
|
|
1047
1048
|
displayName: "StyledCard",
|
|
1048
1049
|
componentId: "sc-p2pbep-0"
|
|
1049
|
-
})(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = forwardRef(function Card(props, ref) {
|
|
1050
|
-
let $ = c(56), asProp, border, borderBottom, borderLeft, borderRight, borderTop, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
|
|
1050
|
+
})(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = (0, react.forwardRef)(function Card(props, ref) {
|
|
1051
|
+
let $ = (0, react_compiler_runtime.c)(56), asProp, border, borderBottom, borderLeft, borderRight, borderTop, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
|
|
1051
1052
|
$[0] === props ? (asProp = $[1], border = $[2], borderBottom = $[3], borderLeft = $[4], borderRight = $[5], borderTop = $[6], muted = $[7], pressed = $[8], restProps = $[9], scheme = $[10], selected = $[11], shadow = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16]) : ({__unstable_checkered: t0, __unstable_focusRing: t1, as: asProp, border, borderTop, borderRight, borderBottom, borderLeft, muted, pressed, radius: t2, scheme, selected, shadow, tone: t3, ...restProps} = props, $[0] = props, $[1] = asProp, $[2] = border, $[3] = borderBottom, $[4] = borderLeft, $[5] = borderRight, $[6] = borderTop, $[7] = muted, $[8] = pressed, $[9] = restProps, $[10] = scheme, $[11] = selected, $[12] = shadow, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3);
|
|
1052
|
-
let checkered = t0 !== void 0 && t0, focusRing = t1 !== void 0 && t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme, t6;
|
|
1053
|
+
let checkered = t0 !== void 0 && t0, focusRing = t1 !== void 0 && t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = (0, react_is.isValidElementType)(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme, t6;
|
|
1053
1054
|
$[17] === border ? t6 = $[18] : (t6 = _getArrayProp(border), $[17] = border, $[18] = t6);
|
|
1054
1055
|
let t7;
|
|
1055
1056
|
$[19] === borderTop ? t7 = $[20] : (t7 = _getArrayProp(borderTop), $[19] = borderTop, $[20] = t7);
|
|
@@ -1064,7 +1065,7 @@ const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
1064
1065
|
let t12;
|
|
1065
1066
|
$[29] === shadow ? t12 = $[30] : (t12 = _getArrayProp(shadow), $[29] = shadow, $[30] = t12);
|
|
1066
1067
|
let t13 = checkered ? "" : void 0, t14 = pressed ? "" : void 0, t15 = selected ? "" : void 0, t16;
|
|
1067
|
-
$[31] !== as || $[32] !== checkered || $[33] !== focusRing || $[34] !== muted || $[35] !== ref || $[36] !== restProps || $[37] !== rootTheme.scheme || $[38] !== selected || $[39] !== t10 || $[40] !== t11 || $[41] !== t12 || $[42] !== t13 || $[43] !== t14 || $[44] !== t15 || $[45] !== t4 || $[46] !== t6 || $[47] !== t7 || $[48] !== t8 || $[49] !== t9 || $[50] !== tone ? (t16 = /* @__PURE__ */ jsx(StyledCard, {
|
|
1068
|
+
$[31] !== as || $[32] !== checkered || $[33] !== focusRing || $[34] !== muted || $[35] !== ref || $[36] !== restProps || $[37] !== rootTheme.scheme || $[38] !== selected || $[39] !== t10 || $[40] !== t11 || $[41] !== t12 || $[42] !== t13 || $[43] !== t14 || $[44] !== t15 || $[45] !== t4 || $[46] !== t6 || $[47] !== t7 || $[48] !== t8 || $[49] !== t9 || $[50] !== tone ? (t16 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledCard, {
|
|
1068
1069
|
"data-as": t4,
|
|
1069
1070
|
"data-scheme": t5,
|
|
1070
1071
|
"data-ui": "Card",
|
|
@@ -1089,7 +1090,7 @@ const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
1089
1090
|
selected
|
|
1090
1091
|
}), $[31] = as, $[32] = checkered, $[33] = focusRing, $[34] = muted, $[35] = ref, $[36] = restProps, $[37] = rootTheme.scheme, $[38] = selected, $[39] = t10, $[40] = t11, $[41] = t12, $[42] = t13, $[43] = t14, $[44] = t15, $[45] = t4, $[46] = t6, $[47] = t7, $[48] = t8, $[49] = t9, $[50] = tone, $[51] = t16) : t16 = $[51];
|
|
1091
1092
|
let t17;
|
|
1092
|
-
return $[52] !== scheme || $[53] !== t16 || $[54] !== tone ? (t17 = /* @__PURE__ */ jsx(ThemeColorProvider, {
|
|
1093
|
+
return $[52] !== scheme || $[53] !== t16 || $[54] !== tone ? (t17 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ThemeColorProvider, {
|
|
1093
1094
|
scheme,
|
|
1094
1095
|
tone,
|
|
1095
1096
|
children: t16
|
|
@@ -1098,12 +1099,9 @@ const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
1098
1099
|
/**
|
|
1099
1100
|
* @public
|
|
1100
1101
|
*/
|
|
1101
|
-
function useClickOutsideEvent(listener,
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
* juggle `useState`, `useRef` and `useState` to make sure the `mousedown` event listener isn't constantly being added and removed.
|
|
1105
|
-
*/
|
|
1106
|
-
let onEvent = useEffectEvent((evt) => {
|
|
1102
|
+
function useClickOutsideEvent(listener, t0, boundaryElement) {
|
|
1103
|
+
let $ = (0, react_compiler_runtime.c)(9), elementsArg = t0 === void 0 ? _temp$8 : t0, t1;
|
|
1104
|
+
$[0] !== boundaryElement || $[1] !== elementsArg || $[2] !== listener ? (t1 = (evt) => {
|
|
1107
1105
|
if (!listener) return;
|
|
1108
1106
|
let target = evt.target;
|
|
1109
1107
|
if (!(target instanceof Node)) return;
|
|
@@ -1112,27 +1110,34 @@ function useClickOutsideEvent(listener, elementsArg = () => EMPTY_ARRAY, boundar
|
|
|
1112
1110
|
let elements = elementsArg().flat();
|
|
1113
1111
|
for (let el of elements) if (el && (target === el || el.contains(target))) return;
|
|
1114
1112
|
listener(evt);
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1113
|
+
}, $[0] = boundaryElement, $[1] = elementsArg, $[2] = listener, $[3] = t1) : t1 = $[3];
|
|
1114
|
+
let onEvent = (0, use_effect_event.useEffectEvent)(t1), hasListener = !!listener, t2;
|
|
1115
|
+
$[4] !== hasListener || $[5] !== onEvent ? (t2 = () => {
|
|
1117
1116
|
if (!hasListener) return;
|
|
1118
|
-
let handleEvent = (
|
|
1117
|
+
let handleEvent = (evt_0) => onEvent(evt_0);
|
|
1119
1118
|
return document.addEventListener("mousedown", handleEvent), () => {
|
|
1120
1119
|
document.removeEventListener("mousedown", handleEvent);
|
|
1121
1120
|
};
|
|
1122
|
-
}, [hasListener]
|
|
1121
|
+
}, $[4] = hasListener, $[5] = onEvent, $[6] = t2) : t2 = $[6];
|
|
1122
|
+
let t3;
|
|
1123
|
+
$[7] === hasListener ? t3 = $[8] : (t3 = [hasListener], $[7] = hasListener, $[8] = t3), (0, react.useEffect)(t2, t3), (0, react.useDebugValue)(listener ? "MouseDown On" : "MouseDown Off");
|
|
1124
|
+
}
|
|
1125
|
+
function _temp$8() {
|
|
1126
|
+
return EMPTY_ARRAY;
|
|
1123
1127
|
}
|
|
1124
1128
|
/**
|
|
1125
1129
|
* @beta
|
|
1126
1130
|
*/
|
|
1127
1131
|
function useCustomValidity(ref, customValidity) {
|
|
1128
|
-
|
|
1132
|
+
let $ = (0, react_compiler_runtime.c)(4), t0, t1;
|
|
1133
|
+
$[0] !== customValidity || $[1] !== ref ? (t0 = () => {
|
|
1129
1134
|
ref.current?.setCustomValidity(customValidity || "");
|
|
1130
|
-
}, [customValidity, ref]);
|
|
1135
|
+
}, t1 = [customValidity, ref], $[0] = customValidity, $[1] = ref, $[2] = t0, $[3] = t1) : (t0 = $[2], t1 = $[3]), (0, react.useEffect)(t0, t1);
|
|
1131
1136
|
}
|
|
1132
1137
|
/**
|
|
1133
1138
|
* @internal
|
|
1134
1139
|
*/
|
|
1135
|
-
const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : ResizeObserver, _elementSizeObserver = _createElementSizeObserver();
|
|
1140
|
+
const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : _juggle_resize_observer.ResizeObserver, _elementSizeObserver = _createElementSizeObserver();
|
|
1136
1141
|
function _createElementRectValueListener() {
|
|
1137
1142
|
return { subscribe(element, subscriber) {
|
|
1138
1143
|
let resizeObserver = new _ResizeObserver(([entry]) => {
|
|
@@ -1170,10 +1175,10 @@ function _createElementSizeObserver() {
|
|
|
1170
1175
|
* @beta
|
|
1171
1176
|
*/
|
|
1172
1177
|
function useElementSize(element) {
|
|
1173
|
-
let [size, setSize] = useState(null);
|
|
1174
|
-
return
|
|
1178
|
+
let $ = (0, react_compiler_runtime.c)(3), [size, setSize] = (0, react.useState)(null), t0, t1;
|
|
1179
|
+
return $[0] === element ? (t0 = $[1], t1 = $[2]) : (t0 = () => {
|
|
1175
1180
|
if (element) return _elementSizeObserver.subscribe(element, setSize);
|
|
1176
|
-
}, [element]), size;
|
|
1181
|
+
}, t1 = [element], $[0] = element, $[1] = t0, $[2] = t1), (0, react.useEffect)(t0, t1), size;
|
|
1177
1182
|
}
|
|
1178
1183
|
/**
|
|
1179
1184
|
* Adds global keydown event listener to the window.
|
|
@@ -1183,11 +1188,15 @@ function useElementSize(element) {
|
|
|
1183
1188
|
* @beta
|
|
1184
1189
|
*/
|
|
1185
1190
|
function useGlobalKeyDown(onKeyDown, options) {
|
|
1186
|
-
let
|
|
1187
|
-
|
|
1188
|
-
|
|
1191
|
+
let $ = (0, react_compiler_runtime.c)(7), t0;
|
|
1192
|
+
$[0] === onKeyDown ? t0 = $[1] : (t0 = (event) => onKeyDown(event), $[0] = onKeyDown, $[1] = t0);
|
|
1193
|
+
let handleKeyDown = (0, use_effect_event.useEffectEvent)(t0), t1;
|
|
1194
|
+
$[2] !== handleKeyDown || $[3] !== options ? (t1 = () => {
|
|
1195
|
+
let handler = (event_0) => handleKeyDown(event_0);
|
|
1189
1196
|
return window.addEventListener("keydown", handler, options), () => window.removeEventListener("keydown", handler, options);
|
|
1190
|
-
}, [options]);
|
|
1197
|
+
}, $[2] = handleKeyDown, $[3] = options, $[4] = t1) : t1 = $[4];
|
|
1198
|
+
let t2;
|
|
1199
|
+
$[5] === options ? t2 = $[6] : (t2 = [options], $[5] = options, $[6] = t2), (0, react.useEffect)(t1, t2);
|
|
1191
1200
|
}
|
|
1192
1201
|
/**
|
|
1193
1202
|
* Efficiently subscribes to `window.matchMedia` queries
|
|
@@ -1197,10 +1206,15 @@ function useGlobalKeyDown(onKeyDown, options) {
|
|
|
1197
1206
|
* @public
|
|
1198
1207
|
*/
|
|
1199
1208
|
function useMatchMedia(mediaQueryString, getServerSnapshot) {
|
|
1200
|
-
|
|
1209
|
+
let $ = (0, react_compiler_runtime.c)(4);
|
|
1210
|
+
(0, react.useDebugValue)(mediaQueryString);
|
|
1211
|
+
let t0;
|
|
1212
|
+
$[0] === mediaQueryString ? t0 = $[1] : (t0 = (onStoreChange) => {
|
|
1201
1213
|
let media = window.matchMedia(mediaQueryString);
|
|
1202
1214
|
return media.addEventListener("change", onStoreChange), () => media.removeEventListener("change", onStoreChange);
|
|
1203
|
-
}, [
|
|
1215
|
+
}, $[0] = mediaQueryString, $[1] = t0);
|
|
1216
|
+
let t1;
|
|
1217
|
+
return $[2] === mediaQueryString ? t1 = $[3] : (t1 = () => window.matchMedia(mediaQueryString).matches, $[2] = mediaQueryString, $[3] = t1), (0, react.useSyncExternalStore)(t0, t1, getServerSnapshot);
|
|
1204
1218
|
}
|
|
1205
1219
|
function _getMediaQuery(media, index) {
|
|
1206
1220
|
return index === 0 ? `screen and (max-width: ${media[index] - 1}px)` : index === media.length ? `screen and (min-width: ${media[index - 1]}px)` : `screen and (min-width: ${media[index - 1]}px) and (max-width: ${media[index] - 1}px)`;
|
|
@@ -1253,8 +1267,10 @@ function getServerSnapshot() {
|
|
|
1253
1267
|
* @beta
|
|
1254
1268
|
*/
|
|
1255
1269
|
function useMediaIndex() {
|
|
1256
|
-
let
|
|
1257
|
-
|
|
1270
|
+
let $ = (0, react_compiler_runtime.c)(2), { media } = useTheme_v2(), t0;
|
|
1271
|
+
$[0] === media ? t0 = $[1] : (t0 = _createMediaStore(media), $[0] = media, $[1] = t0);
|
|
1272
|
+
let store = t0;
|
|
1273
|
+
return (0, react.useSyncExternalStore)(store.subscribe, store.getSnapshot, getServerSnapshot);
|
|
1258
1274
|
}
|
|
1259
1275
|
/**
|
|
1260
1276
|
* Returns true if a dark color scheme is preferred, false if a light color scheme is preferred or the preference is not known.
|
|
@@ -1267,8 +1283,11 @@ function useMediaIndex() {
|
|
|
1267
1283
|
*
|
|
1268
1284
|
* @public
|
|
1269
1285
|
*/
|
|
1270
|
-
function usePrefersDark(
|
|
1271
|
-
return useMatchMedia("(prefers-color-scheme: dark)",
|
|
1286
|
+
function usePrefersDark(t0) {
|
|
1287
|
+
return useMatchMedia("(prefers-color-scheme: dark)", t0 === void 0 ? _temp$7 : t0);
|
|
1288
|
+
}
|
|
1289
|
+
function _temp$7() {
|
|
1290
|
+
return !1;
|
|
1272
1291
|
}
|
|
1273
1292
|
/**
|
|
1274
1293
|
* Returns true if motion should be reduced
|
|
@@ -1281,14 +1300,17 @@ function usePrefersDark(getServerSnapshot = () => !1) {
|
|
|
1281
1300
|
*
|
|
1282
1301
|
* @public
|
|
1283
1302
|
*/
|
|
1284
|
-
function usePrefersReducedMotion(
|
|
1285
|
-
return useMatchMedia("(prefers-reduced-motion: reduce)",
|
|
1303
|
+
function usePrefersReducedMotion(t0) {
|
|
1304
|
+
return useMatchMedia("(prefers-reduced-motion: reduce)", t0 === void 0 ? _temp$6 : t0);
|
|
1305
|
+
}
|
|
1306
|
+
function _temp$6() {
|
|
1307
|
+
return !1;
|
|
1286
1308
|
}
|
|
1287
|
-
const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
|
|
1309
|
+
const StyledGrid = /* @__PURE__ */ (0, styled_components.styled)(Box).withConfig({
|
|
1288
1310
|
displayName: "StyledGrid",
|
|
1289
1311
|
componentId: "sc-1yxm55-0"
|
|
1290
|
-
})(responsiveGridStyle), Grid = forwardRef(function Grid(props, ref) {
|
|
1291
|
-
let $ = c(44), as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, gridTemplateColumns, gridTemplateRows, restProps, rows;
|
|
1312
|
+
})(responsiveGridStyle), Grid = (0, react.forwardRef)(function Grid(props, ref) {
|
|
1313
|
+
let $ = (0, react_compiler_runtime.c)(44), as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, gridTemplateColumns, gridTemplateRows, restProps, rows;
|
|
1292
1314
|
$[0] === props ? (as = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], children = $[5], columns = $[6], gap = $[7], gapX = $[8], gapY = $[9], gridTemplateColumns = $[10], gridTemplateRows = $[11], restProps = $[12], rows = $[13]) : ({as, autoRows, autoCols, autoFlow, columns, gridTemplateColumns, gap, gapX, gapY, rows, gridTemplateRows, children, ...restProps} = props, $[0] = props, $[1] = as, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = children, $[6] = columns, $[7] = gap, $[8] = gapX, $[9] = gapY, $[10] = gridTemplateColumns, $[11] = gridTemplateRows, $[12] = restProps, $[13] = rows);
|
|
1293
1315
|
let t0 = typeof as == "string" ? as : void 0, t1;
|
|
1294
1316
|
$[14] === autoRows ? t1 = $[15] : (t1 = _getArrayProp(autoRows), $[14] = autoRows, $[15] = t1);
|
|
@@ -1307,7 +1329,7 @@ const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
1307
1329
|
let t9 = gridTemplateRows === void 0 ? rows : gridTemplateRows, t10;
|
|
1308
1330
|
$[28] === t9 ? t10 = $[29] : (t10 = _getArrayProp(t9), $[28] = t9, $[29] = t10);
|
|
1309
1331
|
let t11;
|
|
1310
|
-
return $[30] !== as || $[31] !== children || $[32] !== ref || $[33] !== restProps || $[34] !== t0 || $[35] !== t1 || $[36] !== t10 || $[37] !== t2 || $[38] !== t3 || $[39] !== t5 || $[40] !== t6 || $[41] !== t7 || $[42] !== t8 ? (t11 = /* @__PURE__ */ jsx(StyledGrid, {
|
|
1332
|
+
return $[30] !== as || $[31] !== children || $[32] !== ref || $[33] !== restProps || $[34] !== t0 || $[35] !== t1 || $[36] !== t10 || $[37] !== t2 || $[38] !== t3 || $[39] !== t5 || $[40] !== t6 || $[41] !== t7 || $[42] !== t8 ? (t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledGrid, {
|
|
1311
1333
|
"data-as": t0,
|
|
1312
1334
|
"data-ui": "Grid",
|
|
1313
1335
|
...restProps,
|
|
@@ -1335,7 +1357,7 @@ function inlineBaseStyle() {
|
|
|
1335
1357
|
};
|
|
1336
1358
|
}
|
|
1337
1359
|
function inlineSpaceStyle(props) {
|
|
1338
|
-
let { media, space } =
|
|
1360
|
+
let { media, space } = require_theme.X(props.theme);
|
|
1339
1361
|
return _responsive(media, props.$space, (spaceIndex) => {
|
|
1340
1362
|
let _space = rem(spaceIndex === .5 ? space[1] / 2 : space[spaceIndex]);
|
|
1341
1363
|
return {
|
|
@@ -1344,18 +1366,18 @@ function inlineSpaceStyle(props) {
|
|
|
1344
1366
|
};
|
|
1345
1367
|
});
|
|
1346
1368
|
}
|
|
1347
|
-
const StyledInline = /* @__PURE__ */ styled(Box).withConfig({
|
|
1369
|
+
const StyledInline = /* @__PURE__ */ (0, styled_components.styled)(Box).withConfig({
|
|
1348
1370
|
displayName: "StyledInline",
|
|
1349
1371
|
componentId: "sc-8j2qbm-0"
|
|
1350
|
-
})(inlineBaseStyle, inlineSpaceStyle), Inline = forwardRef(function Inline(props, ref) {
|
|
1351
|
-
let $ = c(16), as, childrenProp, deprecated_space, gap, restProps;
|
|
1372
|
+
})(inlineBaseStyle, inlineSpaceStyle), Inline = (0, react.forwardRef)(function Inline(props, ref) {
|
|
1373
|
+
let $ = (0, react_compiler_runtime.c)(16), as, childrenProp, deprecated_space, gap, restProps;
|
|
1352
1374
|
$[0] === props ? (as = $[1], childrenProp = $[2], deprecated_space = $[3], gap = $[4], restProps = $[5]) : ({as, children: childrenProp, gap, space: deprecated_space, ...restProps} = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] = deprecated_space, $[4] = gap, $[5] = restProps);
|
|
1353
1375
|
let spacing = gap === void 0 ? deprecated_space : gap, t0;
|
|
1354
|
-
$[6] === childrenProp ? t0 = $[7] : (t0 = Children.map(childrenProp, _temp$
|
|
1376
|
+
$[6] === childrenProp ? t0 = $[7] : (t0 = react.Children.map(childrenProp, _temp$5), $[6] = childrenProp, $[7] = t0);
|
|
1355
1377
|
let children = t0, t1;
|
|
1356
1378
|
$[8] === spacing ? t1 = $[9] : (t1 = _getArrayProp(spacing), $[8] = spacing, $[9] = t1);
|
|
1357
1379
|
let t2 = ref, t3;
|
|
1358
|
-
return $[10] !== as || $[11] !== children || $[12] !== restProps || $[13] !== t1 || $[14] !== t2 ? (t3 = /* @__PURE__ */ jsx(StyledInline, {
|
|
1380
|
+
return $[10] !== as || $[11] !== children || $[12] !== restProps || $[13] !== t1 || $[14] !== t2 ? (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledInline, {
|
|
1359
1381
|
"data-ui": "Inline",
|
|
1360
1382
|
...restProps,
|
|
1361
1383
|
$space: t1,
|
|
@@ -1364,35 +1386,35 @@ const StyledInline = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
1364
1386
|
children
|
|
1365
1387
|
}), $[10] = as, $[11] = children, $[12] = restProps, $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15], t3;
|
|
1366
1388
|
});
|
|
1367
|
-
function _temp$
|
|
1368
|
-
return child && /* @__PURE__ */ jsx("div", { children: child });
|
|
1389
|
+
function _temp$5(child) {
|
|
1390
|
+
return child && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: child });
|
|
1369
1391
|
}
|
|
1370
1392
|
function kbdStyle() {
|
|
1371
|
-
return css`--card-bg-color:var(--card-kbd-bg-color);--card-border-color:var(--card-kbd-border-color);--card-fg-color:var(--card-kbd-fg-color);box-shadow:inset 0 0 0 1px var(--card-border-color);background:var(--card-bg-color);font:inherit;vertical-align:top;&:not([hidden]){display:inline-block;}`;
|
|
1393
|
+
return styled_components.css`--card-bg-color:var(--card-kbd-bg-color);--card-border-color:var(--card-kbd-border-color);--card-fg-color:var(--card-kbd-fg-color);box-shadow:inset 0 0 0 1px var(--card-border-color);background:var(--card-bg-color);font:inherit;vertical-align:top;&:not([hidden]){display:inline-block;}`;
|
|
1372
1394
|
}
|
|
1373
|
-
const StyledKBD = /* @__PURE__ */ styled.kbd.withConfig({
|
|
1395
|
+
const StyledKBD = /* @__PURE__ */ styled_components.styled.kbd.withConfig({
|
|
1374
1396
|
displayName: "StyledKBD",
|
|
1375
1397
|
componentId: "sc-pgjv2l-0"
|
|
1376
|
-
})(responsiveRadiusStyle, kbdStyle), KBD = forwardRef(function KBD(props, ref) {
|
|
1377
|
-
let $ = c(19), children, restProps, t0, t1, t2;
|
|
1398
|
+
})(responsiveRadiusStyle, kbdStyle), KBD = (0, react.forwardRef)(function KBD(props, ref) {
|
|
1399
|
+
let $ = (0, react_compiler_runtime.c)(19), children, restProps, t0, t1, t2;
|
|
1378
1400
|
$[0] === props ? (children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5]) : ({children, fontSize: t0, padding: t1, radius: t2, ...restProps} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2);
|
|
1379
1401
|
let fontSize = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? 2 : t2, t3;
|
|
1380
1402
|
$[6] === radius ? t3 = $[7] : (t3 = _getArrayProp(radius), $[6] = radius, $[7] = t3);
|
|
1381
1403
|
let t4;
|
|
1382
|
-
$[8] !== children || $[9] !== fontSize ? (t4 = /* @__PURE__ */ jsx(Text, {
|
|
1404
|
+
$[8] !== children || $[9] !== fontSize ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, {
|
|
1383
1405
|
as: "span",
|
|
1384
1406
|
size: fontSize,
|
|
1385
1407
|
weight: "semibold",
|
|
1386
1408
|
children
|
|
1387
1409
|
}), $[8] = children, $[9] = fontSize, $[10] = t4) : t4 = $[10];
|
|
1388
1410
|
let t5;
|
|
1389
|
-
$[11] !== padding || $[12] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, {
|
|
1411
|
+
$[11] !== padding || $[12] !== t4 ? (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
|
|
1390
1412
|
as: "span",
|
|
1391
1413
|
padding,
|
|
1392
1414
|
children: t4
|
|
1393
1415
|
}), $[11] = padding, $[12] = t4, $[13] = t5) : t5 = $[13];
|
|
1394
1416
|
let t6;
|
|
1395
|
-
return $[14] !== ref || $[15] !== restProps || $[16] !== t3 || $[17] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledKBD, {
|
|
1417
|
+
return $[14] !== ref || $[15] !== restProps || $[16] !== t3 || $[17] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledKBD, {
|
|
1396
1418
|
"data-ui": "KBD",
|
|
1397
1419
|
...restProps,
|
|
1398
1420
|
$radius: t3,
|
|
@@ -1455,17 +1477,17 @@ function getRoundedCommands(points) {
|
|
|
1455
1477
|
function compileCommands(cmds) {
|
|
1456
1478
|
return cmds.map((n, idx) => n.type === "point" ? `${idx === 0 ? "M" : "L"} ${n.x} ${n.y}` : n.type === "curve" ? `C ${n.startControl.x} ${n.startControl.y} ${n.endControl.x} ${n.endControl.y} ${n.curveEnd.x} ${n.curveEnd.y}` : "").join(" ");
|
|
1457
1479
|
}
|
|
1458
|
-
const StyledArrow = /* @__PURE__ */ styled.div.withConfig({
|
|
1480
|
+
const StyledArrow = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
1459
1481
|
displayName: "StyledArrow",
|
|
1460
1482
|
componentId: "sc-1ev21f-0"
|
|
1461
|
-
})(({ $w: w }) => css`position:absolute;width:${w}px;height:${w}px;:empty + &{display:none;}& > svg{display:block;line-height:0;transform-origin:${w / 2}px ${w / 2}px;}[data-placement^='top'] > &{bottom:-${w}px;& > svg{transform:rotate(0);}}[data-placement^='right'] > &{left:-${w}px;& > svg{transform:rotate(90deg);}}[data-placement^='left'] > &{right:-${w}px;& > svg{transform:rotate(-90deg);}}[data-placement^='bottom'] > &{top:-${w}px;& > svg{transform:rotate(180deg);}}`), StrokePath = styled.path.withConfig({
|
|
1483
|
+
})(({ $w: w }) => styled_components.css`position:absolute;width:${w}px;height:${w}px;:empty + &{display:none;}& > svg{display:block;line-height:0;transform-origin:${w / 2}px ${w / 2}px;}[data-placement^='top'] > &{bottom:-${w}px;& > svg{transform:rotate(0);}}[data-placement^='right'] > &{left:-${w}px;& > svg{transform:rotate(90deg);}}[data-placement^='left'] > &{right:-${w}px;& > svg{transform:rotate(-90deg);}}[data-placement^='bottom'] > &{top:-${w}px;& > svg{transform:rotate(180deg);}}`), StrokePath = styled_components.styled.path.withConfig({
|
|
1462
1484
|
displayName: "StrokePath",
|
|
1463
1485
|
componentId: "sc-1ev21f-1"
|
|
1464
|
-
})`stroke:var(--card-shadow-outline-color);`, ShapePath = styled.path.withConfig({
|
|
1486
|
+
})`stroke:var(--card-shadow-outline-color);`, ShapePath = styled_components.styled.path.withConfig({
|
|
1465
1487
|
displayName: "ShapePath",
|
|
1466
1488
|
componentId: "sc-1ev21f-2"
|
|
1467
|
-
})`fill:var(--card-bg-color);`, Arrow = forwardRef(function Arrow(props, ref) {
|
|
1468
|
-
let $ = c(29), h, restProps, t0, w;
|
|
1489
|
+
})`fill:var(--card-bg-color);`, Arrow = (0, react.forwardRef)(function Arrow(props, ref) {
|
|
1490
|
+
let $ = (0, react_compiler_runtime.c)(29), h, restProps, t0, w;
|
|
1469
1491
|
$[0] === props ? (h = $[1], restProps = $[2], t0 = $[3], w = $[4]) : ({width: w, height: h, radius: t0, ...restProps} = props, $[0] = props, $[1] = h, $[2] = restProps, $[3] = t0, $[4] = w);
|
|
1470
1492
|
let radius = t0 === void 0 ? 0 : t0, { card } = useTheme_v2(), strokeWidth = card.shadow.outline, center = w / 2, t1;
|
|
1471
1493
|
$[5] !== center || $[6] !== h || $[7] !== radius || $[8] !== w ? (t1 = compileCommands(getRoundedCommands([
|
|
@@ -1494,9 +1516,9 @@ const StyledArrow = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1494
1516
|
}
|
|
1495
1517
|
])), $[5] = center, $[6] = h, $[7] = radius, $[8] = w, $[9] = t1) : t1 = $[9];
|
|
1496
1518
|
let path = t1, strokePath = `${path}`, fillPath = `${path} M ${w} -1 M 0 -1 Z`, t2 = `0 0 ${w} ${w}`, t3;
|
|
1497
|
-
$[10] !== strokeWidth || $[11] !== w ? (t3 = /* @__PURE__ */ jsx("mask", {
|
|
1519
|
+
$[10] !== strokeWidth || $[11] !== w ? (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("mask", {
|
|
1498
1520
|
id: "stroke-mask",
|
|
1499
|
-
children: /* @__PURE__ */ jsx("rect", {
|
|
1521
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
|
|
1500
1522
|
x: 0,
|
|
1501
1523
|
y: strokeWidth,
|
|
1502
1524
|
width: w,
|
|
@@ -1505,15 +1527,15 @@ const StyledArrow = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1505
1527
|
})
|
|
1506
1528
|
}), $[10] = strokeWidth, $[11] = w, $[12] = t3) : t3 = $[12];
|
|
1507
1529
|
let t4 = strokeWidth * 2, t5;
|
|
1508
|
-
$[13] !== strokePath || $[14] !== t4 ? (t5 = /* @__PURE__ */ jsx(StrokePath, {
|
|
1530
|
+
$[13] !== strokePath || $[14] !== t4 ? (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StrokePath, {
|
|
1509
1531
|
d: strokePath,
|
|
1510
1532
|
mask: "url(#stroke-mask)",
|
|
1511
1533
|
strokeWidth: t4
|
|
1512
1534
|
}), $[13] = strokePath, $[14] = t4, $[15] = t5) : t5 = $[15];
|
|
1513
1535
|
let t6;
|
|
1514
|
-
$[16] === fillPath ? t6 = $[17] : (t6 = /* @__PURE__ */ jsx(ShapePath, { d: fillPath }), $[16] = fillPath, $[17] = t6);
|
|
1536
|
+
$[16] === fillPath ? t6 = $[17] : (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ShapePath, { d: fillPath }), $[16] = fillPath, $[17] = t6);
|
|
1515
1537
|
let t7;
|
|
1516
|
-
$[18] !== t2 || $[19] !== t3 || $[20] !== t5 || $[21] !== t6 || $[22] !== w ? (t7 = /* @__PURE__ */ jsxs("svg", {
|
|
1538
|
+
$[18] !== t2 || $[19] !== t3 || $[20] !== t5 || $[21] !== t6 || $[22] !== w ? (t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
1517
1539
|
width: w,
|
|
1518
1540
|
height: w,
|
|
1519
1541
|
viewBox: t2,
|
|
@@ -1524,7 +1546,7 @@ const StyledArrow = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1524
1546
|
]
|
|
1525
1547
|
}), $[18] = t2, $[19] = t3, $[20] = t5, $[21] = t6, $[22] = w, $[23] = t7) : t7 = $[23];
|
|
1526
1548
|
let t8;
|
|
1527
|
-
return $[24] !== ref || $[25] !== restProps || $[26] !== t7 || $[27] !== w ? (t8 = /* @__PURE__ */ jsx(StyledArrow, {
|
|
1549
|
+
return $[24] !== ref || $[25] !== restProps || $[26] !== t7 || $[27] !== w ? (t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledArrow, {
|
|
1528
1550
|
...restProps,
|
|
1529
1551
|
$w: w,
|
|
1530
1552
|
ref,
|
|
@@ -1542,7 +1564,7 @@ const DEFAULT_VALUE = {
|
|
|
1542
1564
|
* @public
|
|
1543
1565
|
*/
|
|
1544
1566
|
function useBoundaryElement() {
|
|
1545
|
-
let value = useContext(BoundaryElementContext);
|
|
1567
|
+
let value = (0, react.useContext)(BoundaryElementContext);
|
|
1546
1568
|
if (value && (!isRecord(value) || value.version !== 0)) throw Error("useBoundaryElement(): the context value is not compatible");
|
|
1547
1569
|
return value || DEFAULT_VALUE;
|
|
1548
1570
|
}
|
|
@@ -1557,16 +1579,16 @@ const LayerContext = createGlobalScopedContext("@sanity/ui/context/layer", null)
|
|
|
1557
1579
|
* @public
|
|
1558
1580
|
*/
|
|
1559
1581
|
function LayerProvider(props) {
|
|
1560
|
-
let $ = c(21), { children, zOffset: t0 } = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = useContext(LayerContext), t1;
|
|
1582
|
+
let $ = (0, react_compiler_runtime.c)(21), { children, zOffset: t0 } = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = (0, react.useContext)(LayerContext), t1;
|
|
1561
1583
|
$[0] === parentContextValue ? t1 = $[1] : (t1 = parentContextValue && getLayerContext(parentContextValue), $[0] = parentContextValue, $[1] = t1);
|
|
1562
1584
|
let parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1, t2;
|
|
1563
1585
|
$[2] === zOffsetProp ? t2 = $[3] : (t2 = _getArrayProp(zOffsetProp), $[2] = zOffsetProp, $[3] = t2);
|
|
1564
1586
|
let zOffset = t2, maxMediaIndex = zOffset.length - 1, mediaIndex = Math.min(useMediaIndex(), maxMediaIndex), zIndex = parent ? parent.zIndex + zOffset[mediaIndex] : zOffset[mediaIndex], t3;
|
|
1565
1587
|
$[4] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {}, $[4] = t3) : t3 = $[4];
|
|
1566
|
-
let [, setChildLayers] = useState(t3), [size, setSize] = useState(0), isTopLayer = size === 0, t4;
|
|
1588
|
+
let [, setChildLayers] = (0, react.useState)(t3), [size, setSize] = (0, react.useState)(0), isTopLayer = size === 0, t4;
|
|
1567
1589
|
$[5] !== parentRegisterChild || $[6] !== setChildLayers ? (t4 = (childLevel) => {
|
|
1568
1590
|
let parentDispose = parentRegisterChild?.(childLevel);
|
|
1569
|
-
return childLevel === void 0 ? setSize(_temp$
|
|
1591
|
+
return childLevel === void 0 ? setSize(_temp$4) : setChildLayers((state) => {
|
|
1570
1592
|
let prevLen = state[childLevel] ?? 0, nextState = {
|
|
1571
1593
|
...state,
|
|
1572
1594
|
[childLevel]: prevLen + 1
|
|
@@ -1580,7 +1602,7 @@ function LayerProvider(props) {
|
|
|
1580
1602
|
};
|
|
1581
1603
|
}, $[5] = parentRegisterChild, $[6] = setChildLayers, $[7] = t4) : t4 = $[7];
|
|
1582
1604
|
let registerChild = t4, t5, t6;
|
|
1583
|
-
$[8] !== level || $[9] !== parentRegisterChild ? (t5 = () => parentRegisterChild?.(level), t6 = [level, parentRegisterChild], $[8] = level, $[9] = parentRegisterChild, $[10] = t5, $[11] = t6) : (t5 = $[10], t6 = $[11]), useEffect(t5, t6);
|
|
1605
|
+
$[8] !== level || $[9] !== parentRegisterChild ? (t5 = () => parentRegisterChild?.(level), t6 = [level, parentRegisterChild], $[8] = level, $[9] = parentRegisterChild, $[10] = t5, $[11] = t6) : (t5 = $[10], t6 = $[11]), (0, react.useEffect)(t5, t6);
|
|
1584
1606
|
let t7;
|
|
1585
1607
|
$[12] !== isTopLayer || $[13] !== level || $[14] !== registerChild || $[15] !== size || $[16] !== zIndex ? (t7 = {
|
|
1586
1608
|
version: 0,
|
|
@@ -1591,7 +1613,7 @@ function LayerProvider(props) {
|
|
|
1591
1613
|
zIndex
|
|
1592
1614
|
}, $[12] = isTopLayer, $[13] = level, $[14] = registerChild, $[15] = size, $[16] = zIndex, $[17] = t7) : t7 = $[17];
|
|
1593
1615
|
let value = t7, t8;
|
|
1594
|
-
return $[18] !== children || $[19] !== value ? (t8 = /* @__PURE__ */ jsx(LayerContext.Provider, {
|
|
1616
|
+
return $[18] !== children || $[19] !== value ? (t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LayerContext.Provider, {
|
|
1595
1617
|
value,
|
|
1596
1618
|
children
|
|
1597
1619
|
}), $[18] = children, $[19] = value, $[20] = t8) : t8 = $[20], t8;
|
|
@@ -1599,33 +1621,35 @@ function LayerProvider(props) {
|
|
|
1599
1621
|
function _temp2$2(v_0) {
|
|
1600
1622
|
return v_0 - 1;
|
|
1601
1623
|
}
|
|
1602
|
-
function _temp$
|
|
1624
|
+
function _temp$4(v) {
|
|
1603
1625
|
return v + 1;
|
|
1604
1626
|
}
|
|
1605
1627
|
/**
|
|
1606
1628
|
* @public
|
|
1607
1629
|
*/
|
|
1608
1630
|
function useLayer() {
|
|
1609
|
-
let value = useContext(LayerContext);
|
|
1631
|
+
let $ = (0, react_compiler_runtime.c)(2), value = (0, react.useContext)(LayerContext);
|
|
1610
1632
|
if (!value) throw Error("useLayer(): missing context value");
|
|
1611
1633
|
try {
|
|
1612
|
-
|
|
1613
|
-
|
|
1634
|
+
let t1;
|
|
1635
|
+
return $[0] === value ? t1 = $[1] : (t1 = getLayerContext(value), $[0] = value, $[1] = t1), t1;
|
|
1636
|
+
} catch (t0) {
|
|
1637
|
+
let err = t0;
|
|
1614
1638
|
throw err instanceof Error ? Error(`useLayer(): ${err.message}`) : Error(`useLayer(): ${err}`);
|
|
1615
1639
|
}
|
|
1616
1640
|
}
|
|
1617
|
-
const StyledLayer = /* @__PURE__ */ styled.div.withConfig({
|
|
1641
|
+
const StyledLayer = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
1618
1642
|
displayName: "StyledLayer",
|
|
1619
1643
|
componentId: "sc-100e5i-0"
|
|
1620
|
-
})({ position: "relative" }), LayerChildren = forwardRef(function LayerChildren(props, forwardedRef) {
|
|
1621
|
-
let $ = c(22), children, onActivate, onFocus, restProps, t0;
|
|
1644
|
+
})({ position: "relative" }), LayerChildren = (0, react.forwardRef)(function LayerChildren(props, forwardedRef) {
|
|
1645
|
+
let $ = (0, react_compiler_runtime.c)(22), children, onActivate, onFocus, restProps, t0;
|
|
1622
1646
|
$[0] === props ? (children = $[1], onActivate = $[2], onFocus = $[3], restProps = $[4], t0 = $[5]) : ({children, onActivate, onFocus, style: t0, ...restProps} = props, $[0] = props, $[1] = children, $[2] = onActivate, $[3] = onFocus, $[4] = restProps, $[5] = t0);
|
|
1623
|
-
let style = t0 === void 0 ? EMPTY_RECORD : t0, { zIndex, isTopLayer } = useLayer(), lastFocusedRef = useRef(null), ref = useRef(null), isTopLayerRef = useRef(isTopLayer), t1;
|
|
1624
|
-
$[6] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => ref.current, $[6] = t1) : t1 = $[6], useImperativeHandle(forwardedRef, t1);
|
|
1647
|
+
let style = t0 === void 0 ? EMPTY_RECORD : t0, { zIndex, isTopLayer } = useLayer(), lastFocusedRef = (0, react.useRef)(null), ref = (0, react.useRef)(null), isTopLayerRef = (0, react.useRef)(isTopLayer), t1;
|
|
1648
|
+
$[6] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => ref.current, $[6] = t1) : t1 = $[6], (0, react.useImperativeHandle)(forwardedRef, t1);
|
|
1625
1649
|
let t2, t3;
|
|
1626
1650
|
$[7] !== isTopLayer || $[8] !== onActivate ? (t2 = () => {
|
|
1627
1651
|
isTopLayerRef.current !== isTopLayer && isTopLayer && onActivate?.({ activeElement: lastFocusedRef.current }), isTopLayerRef.current = isTopLayer;
|
|
1628
|
-
}, t3 = [isTopLayer, onActivate], $[7] = isTopLayer, $[8] = onActivate, $[9] = t2, $[10] = t3) : (t2 = $[9], t3 = $[10]), useEffect(t2, t3);
|
|
1652
|
+
}, t3 = [isTopLayer, onActivate], $[7] = isTopLayer, $[8] = onActivate, $[9] = t2, $[10] = t3) : (t2 = $[9], t3 = $[10]), (0, react.useEffect)(t2, t3);
|
|
1629
1653
|
let t4;
|
|
1630
1654
|
$[11] !== isTopLayer || $[12] !== onFocus ? (t4 = (event) => {
|
|
1631
1655
|
onFocus?.(event);
|
|
@@ -1638,7 +1662,7 @@ const StyledLayer = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1638
1662
|
zIndex
|
|
1639
1663
|
}, $[14] = style, $[15] = zIndex, $[16] = t5) : t5 = $[16];
|
|
1640
1664
|
let t6;
|
|
1641
|
-
return $[17] !== children || $[18] !== handleFocus || $[19] !== restProps || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledLayer, {
|
|
1665
|
+
return $[17] !== children || $[18] !== handleFocus || $[19] !== restProps || $[20] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledLayer, {
|
|
1642
1666
|
...restProps,
|
|
1643
1667
|
"data-ui": "Layer",
|
|
1644
1668
|
onFocus: handleFocus,
|
|
@@ -1646,17 +1670,17 @@ const StyledLayer = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1646
1670
|
style: t5,
|
|
1647
1671
|
children
|
|
1648
1672
|
}), $[17] = children, $[18] = handleFocus, $[19] = restProps, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
|
|
1649
|
-
}), Layer = forwardRef(function Layer(props, ref) {
|
|
1650
|
-
let $ = c(11), children, restProps, t0;
|
|
1673
|
+
}), Layer = (0, react.forwardRef)(function Layer(props, ref) {
|
|
1674
|
+
let $ = (0, react_compiler_runtime.c)(11), children, restProps, t0;
|
|
1651
1675
|
$[0] === props ? (children = $[1], restProps = $[2], t0 = $[3]) : ({children, zOffset: t0, ...restProps} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0);
|
|
1652
1676
|
let zOffset = t0 === void 0 ? 1 : t0, t1;
|
|
1653
|
-
$[4] !== children || $[5] !== ref || $[6] !== restProps ? (t1 = /* @__PURE__ */ jsx(LayerChildren, {
|
|
1677
|
+
$[4] !== children || $[5] !== ref || $[6] !== restProps ? (t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LayerChildren, {
|
|
1654
1678
|
...restProps,
|
|
1655
1679
|
ref,
|
|
1656
1680
|
children
|
|
1657
1681
|
}), $[4] = children, $[5] = ref, $[6] = restProps, $[7] = t1) : t1 = $[7];
|
|
1658
1682
|
let t2;
|
|
1659
|
-
return $[8] !== t1 || $[9] !== zOffset ? (t2 = /* @__PURE__ */ jsx(LayerProvider, {
|
|
1683
|
+
return $[8] !== t1 || $[9] !== zOffset ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LayerProvider, {
|
|
1660
1684
|
zOffset,
|
|
1661
1685
|
children: t1
|
|
1662
1686
|
}), $[8] = t1, $[9] = zOffset, $[10] = t2) : t2 = $[10], t2;
|
|
@@ -1673,7 +1697,7 @@ const PortalContext = createGlobalScopedContext(key, {
|
|
|
1673
1697
|
* @public
|
|
1674
1698
|
*/
|
|
1675
1699
|
function usePortal() {
|
|
1676
|
-
let value = useContext(PortalContext);
|
|
1700
|
+
let value = (0, react.useContext)(PortalContext);
|
|
1677
1701
|
if (!value) throw Error("usePortal(): missing context value");
|
|
1678
1702
|
if (!isRecord(value) || value.version !== 0) throw Error("usePortal(): the context value is not compatible");
|
|
1679
1703
|
return value;
|
|
@@ -1682,14 +1706,16 @@ function usePortal() {
|
|
|
1682
1706
|
* @public
|
|
1683
1707
|
*/
|
|
1684
1708
|
function Portal(props) {
|
|
1685
|
-
let { children, __unstable_name: name } = props, portal = usePortal(), portalElement = (name ? portal.elements && portal.elements[name] : portal.element) || portal.elements?.default;
|
|
1686
|
-
|
|
1709
|
+
let $ = (0, react_compiler_runtime.c)(3), { children, __unstable_name: name } = props, portal = usePortal(), portalElement = (name ? portal.elements && portal.elements[name] : portal.element) || portal.elements?.default;
|
|
1710
|
+
if (!portalElement) return null;
|
|
1711
|
+
let t0;
|
|
1712
|
+
return $[0] !== children || $[1] !== portalElement ? (t0 = (0, react_dom.createPortal)(children, portalElement), $[0] = children, $[1] = portalElement, $[2] = t0) : t0 = $[2], t0;
|
|
1687
1713
|
}
|
|
1688
1714
|
/**
|
|
1689
1715
|
* @public
|
|
1690
1716
|
*/
|
|
1691
1717
|
function PortalProvider(props) {
|
|
1692
|
-
let $ = c(7), { boundaryElement, children, element, __unstable_elements: elements } = props, fallbackElement = useSyncExternalStore(emptySubscribe, _temp$
|
|
1718
|
+
let $ = (0, react_compiler_runtime.c)(7), { boundaryElement, children, element, __unstable_elements: elements } = props, fallbackElement = (0, react.useSyncExternalStore)(emptySubscribe, _temp$3, _temp2$1), t0 = boundaryElement || null, t1 = element || fallbackElement, t2;
|
|
1693
1719
|
$[0] !== elements || $[1] !== t0 || $[2] !== t1 ? (t2 = {
|
|
1694
1720
|
version: 0,
|
|
1695
1721
|
boundaryElement: t0,
|
|
@@ -1697,7 +1723,7 @@ function PortalProvider(props) {
|
|
|
1697
1723
|
elements
|
|
1698
1724
|
}, $[0] = elements, $[1] = t0, $[2] = t1, $[3] = t2) : t2 = $[3];
|
|
1699
1725
|
let value = t2, t3;
|
|
1700
|
-
return $[4] !== children || $[5] !== value ? (t3 = /* @__PURE__ */ jsx(PortalContext.Provider, {
|
|
1726
|
+
return $[4] !== children || $[5] !== value ? (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PortalContext.Provider, {
|
|
1701
1727
|
value,
|
|
1702
1728
|
children
|
|
1703
1729
|
}), $[4] = children, $[5] = value, $[6] = t3) : t3 = $[6], t3;
|
|
@@ -1705,7 +1731,7 @@ function PortalProvider(props) {
|
|
|
1705
1731
|
function _temp2$1() {
|
|
1706
1732
|
return null;
|
|
1707
1733
|
}
|
|
1708
|
-
function _temp$
|
|
1734
|
+
function _temp$3() {
|
|
1709
1735
|
return document.body;
|
|
1710
1736
|
}
|
|
1711
1737
|
const emptySubscribe = () => () => {};
|
|
@@ -1785,7 +1811,7 @@ function size(options) {
|
|
|
1785
1811
|
return {
|
|
1786
1812
|
name: "@sanity/ui/size",
|
|
1787
1813
|
async fn(args) {
|
|
1788
|
-
let { elements, placement, platform, rects } = args, { floating, reference } = rects, overflow = await detectOverflow(args, {
|
|
1814
|
+
let { elements, placement, platform, rects } = args, { floating, reference } = rects, overflow = await (0, _floating_ui_react_dom.detectOverflow)(args, {
|
|
1789
1815
|
altBoundary: !0,
|
|
1790
1816
|
boundary: options.boundaryElement || void 0,
|
|
1791
1817
|
elementContext: "floating",
|
|
@@ -1808,14 +1834,14 @@ function calcMaxWidth(params) {
|
|
|
1808
1834
|
let { boundaryWidth, currentWidth } = params;
|
|
1809
1835
|
if (currentWidth !== void 0 || boundaryWidth !== void 0) return Math.min(currentWidth ?? Infinity, (boundaryWidth || Infinity) - 8);
|
|
1810
1836
|
}
|
|
1811
|
-
const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
1837
|
+
const MotionCard$1 = (0, styled_components.styled)(motion_react.motion.create(Card)).withConfig({
|
|
1812
1838
|
displayName: "MotionCard",
|
|
1813
1839
|
componentId: "sc-n3w53t-0"
|
|
1814
|
-
})`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`, MotionFlex = styled(motion.create(Flex)).withConfig({
|
|
1840
|
+
})`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`, MotionFlex = (0, styled_components.styled)(motion_react.motion.create(Flex)).withConfig({
|
|
1815
1841
|
displayName: "MotionFlex",
|
|
1816
1842
|
componentId: "sc-n3w53t-1"
|
|
1817
|
-
})`will-change:opacity;`, PopoverCard = forwardRef(function PopoverCard(props, ref) {
|
|
1818
|
-
let $ = c(66), animate, arrow, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, restProps, scheme, shadow, strategy, style, tone, width, xProp, yProp;
|
|
1843
|
+
})`will-change:opacity;`, PopoverCard = (0, react.forwardRef)(function PopoverCard(props, ref) {
|
|
1844
|
+
let $ = (0, react_compiler_runtime.c)(66), animate, arrow, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, restProps, scheme, shadow, strategy, style, tone, width, xProp, yProp;
|
|
1819
1845
|
$[0] === props ? (animate = $[1], arrow = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], originX = $[8], originY = $[9], overflow = $[10], padding = $[11], placement = $[12], radius = $[13], restProps = $[14], scheme = $[15], shadow = $[16], strategy = $[17], style = $[18], tone = $[19], width = $[20], xProp = $[21], yProp = $[22]) : ({__unstable_margins: marginsProp, animate, arrow, arrowRef, arrowX, arrowY, children, padding, placement, originX, originY, overflow, radius, scheme, shadow, strategy, style, tone, width, x: xProp, y: yProp, ...restProps} = props, $[0] = props, $[1] = animate, $[2] = arrow, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = originX, $[9] = originY, $[10] = overflow, $[11] = padding, $[12] = placement, $[13] = radius, $[14] = restProps, $[15] = scheme, $[16] = shadow, $[17] = strategy, $[18] = style, $[19] = tone, $[20] = width, $[21] = xProp, $[22] = yProp);
|
|
1820
1846
|
let { zIndex } = useLayer(), margins = marginsProp || DEFAULT_POPOVER_MARGINS, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0], t0 = animate ? "transform" : void 0, t1;
|
|
1821
1847
|
$[23] !== originX || $[24] !== originY || $[25] !== strategy || $[26] !== style || $[27] !== t0 || $[28] !== width || $[29] !== x || $[30] !== y || $[31] !== zIndex ? (t1 = {
|
|
@@ -1843,14 +1869,14 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
|
1843
1869
|
let t8;
|
|
1844
1870
|
$[40] === animate ? t8 = $[41] : (t8 = animate ? ["hidden", "scaleOut"] : void 0, $[40] = animate, $[41] = t8);
|
|
1845
1871
|
let t9;
|
|
1846
|
-
$[42] !== children || $[43] !== padding ? (t9 = /* @__PURE__ */ jsx(Flex, {
|
|
1872
|
+
$[42] !== children || $[43] !== padding ? (t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Flex, {
|
|
1847
1873
|
direction: "column",
|
|
1848
1874
|
flex: 1,
|
|
1849
1875
|
padding,
|
|
1850
1876
|
children
|
|
1851
1877
|
}), $[42] = children, $[43] = padding, $[44] = t9) : t9 = $[44];
|
|
1852
1878
|
let t10;
|
|
1853
|
-
$[45] !== overflow || $[46] !== t9 ? (t10 = /* @__PURE__ */ jsx(MotionFlex, {
|
|
1879
|
+
$[45] !== overflow || $[46] !== t9 ? (t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MotionFlex, {
|
|
1854
1880
|
"data-ui": "Popover__wrapper",
|
|
1855
1881
|
direction: "column",
|
|
1856
1882
|
flex: 1,
|
|
@@ -1860,7 +1886,7 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
|
1860
1886
|
children: t9
|
|
1861
1887
|
}), $[45] = overflow, $[46] = t9, $[47] = t10) : t10 = $[47];
|
|
1862
1888
|
let t11;
|
|
1863
|
-
$[48] !== arrow || $[49] !== arrowRef || $[50] !== arrowStyle ? (t11 = arrow && /* @__PURE__ */ jsx(Arrow, {
|
|
1889
|
+
$[48] !== arrow || $[49] !== arrowRef || $[50] !== arrowStyle ? (t11 = arrow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Arrow, {
|
|
1864
1890
|
ref: arrowRef,
|
|
1865
1891
|
style: arrowStyle,
|
|
1866
1892
|
width: 19,
|
|
@@ -1868,7 +1894,7 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
|
1868
1894
|
radius: 2
|
|
1869
1895
|
}), $[48] = arrow, $[49] = arrowRef, $[50] = arrowStyle, $[51] = t11) : t11 = $[51];
|
|
1870
1896
|
let t12;
|
|
1871
|
-
return $[52] !== placement || $[53] !== radius || $[54] !== ref || $[55] !== rootStyle || $[56] !== scheme || $[57] !== shadow || $[58] !== t10 || $[59] !== t11 || $[60] !== t5 || $[61] !== t6 || $[62] !== t7 || $[63] !== t8 || $[64] !== tone ? (t12 = /* @__PURE__ */ jsxs(MotionCard$1, {
|
|
1897
|
+
return $[52] !== placement || $[53] !== radius || $[54] !== ref || $[55] !== rootStyle || $[56] !== scheme || $[57] !== shadow || $[58] !== t10 || $[59] !== t11 || $[60] !== t5 || $[61] !== t6 || $[62] !== t7 || $[63] !== t8 || $[64] !== tone ? (t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MotionCard$1, {
|
|
1872
1898
|
"data-ui": "Popover",
|
|
1873
1899
|
...t5,
|
|
1874
1900
|
"data-placement": placement,
|
|
@@ -1887,16 +1913,16 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
|
1887
1913
|
children: [t10, t11]
|
|
1888
1914
|
}), $[52] = placement, $[53] = radius, $[54] = ref, $[55] = rootStyle, $[56] = scheme, $[57] = shadow, $[58] = t10, $[59] = t11, $[60] = t5, $[61] = t6, $[62] = t7, $[63] = t8, $[64] = tone, $[65] = t12) : t12 = $[65], t12;
|
|
1889
1915
|
}), ViewportOverlay = () => {
|
|
1890
|
-
let $ = c(2), { zIndex } = useLayer(), t0;
|
|
1891
|
-
return $[0] === zIndex ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx("div", { style: {
|
|
1916
|
+
let $ = (0, react_compiler_runtime.c)(2), { zIndex } = useLayer(), t0;
|
|
1917
|
+
return $[0] === zIndex ? t0 = $[1] : (t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { style: {
|
|
1892
1918
|
height: "100vh",
|
|
1893
1919
|
inset: 0,
|
|
1894
1920
|
position: "fixed",
|
|
1895
1921
|
width: "100vw",
|
|
1896
1922
|
zIndex
|
|
1897
1923
|
} }), $[0] = zIndex, $[1] = t0), t0;
|
|
1898
|
-
}, Popover = forwardRef(function Popover(props, forwardedRef) {
|
|
1899
|
-
let $ = c(126), { container, layer } = useTheme_v2(), boundaryElementContext = useBoundaryElement(), _boundaryElement, _fallbackPlacements, _floatingBoundary, _referenceBoundary, _zOffsetProp, childProp, content, disabled, matchReferenceWidth, modal, open, paddingProp, portal, referenceElement, restProps, scheme, t0, t1, t10, t11, t2, t3, t4, t5, t6, t7, t8, t9, updateRef;
|
|
1924
|
+
}, Popover = (0, react.forwardRef)(function Popover(props, forwardedRef) {
|
|
1925
|
+
let $ = (0, react_compiler_runtime.c)(126), { container, layer } = useTheme_v2(), boundaryElementContext = useBoundaryElement(), _boundaryElement, _fallbackPlacements, _floatingBoundary, _referenceBoundary, _zOffsetProp, childProp, content, disabled, matchReferenceWidth, modal, open, paddingProp, portal, referenceElement, restProps, scheme, t0, t1, t10, t11, t2, t3, t4, t5, t6, t7, t8, t9, updateRef;
|
|
1900
1926
|
if ($[0] !== props) {
|
|
1901
1927
|
let { __unstable_margins: t12, animate: t13, arrow: t14, boundaryElement: t15, children: t16, constrainSize: t17, content: t18, disabled: t19, fallbackPlacements: t20, matchReferenceWidth: t21, floatingBoundary: t22, modal: t23, onActivate, open: t24, overflow: t25, padding: t26, placement: t27, placementStrategy: t28, portal: t29, preventOverflow: t30, radius: t31, referenceBoundary: t32, referenceElement: t33, scheme: t34, shadow: t35, tone: t36, width: t37, zOffset: t38, updateRef: t39, ...t40 } = props;
|
|
1902
1928
|
t0 = t12, t1 = t13, t2 = t14, _boundaryElement = t15, childProp = t16, t3 = t17, content = t18, disabled = t19, _fallbackPlacements = t20, matchReferenceWidth = t21, _floatingBoundary = t22, modal = t23, open = t24, t4 = t25, paddingProp = t26, t5 = t27, t6 = t28, portal = t29, t7 = t30, t8 = t31, _referenceBoundary = t32, referenceElement = t33, scheme = t34, t9 = t35, t10 = t36, t11 = t37, _zOffsetProp = t38, updateRef = t39, restProps = t40, $[0] = props, $[1] = _boundaryElement, $[2] = _fallbackPlacements, $[3] = _floatingBoundary, $[4] = _referenceBoundary, $[5] = _zOffsetProp, $[6] = childProp, $[7] = content, $[8] = disabled, $[9] = matchReferenceWidth, $[10] = modal, $[11] = open, $[12] = paddingProp, $[13] = portal, $[14] = referenceElement, $[15] = restProps, $[16] = scheme, $[17] = t0, $[18] = t1, $[19] = t10, $[20] = t11, $[21] = t2, $[22] = t3, $[23] = t4, $[24] = t5, $[25] = t6, $[26] = t7, $[27] = t8, $[28] = t9, $[29] = updateRef;
|
|
@@ -1909,26 +1935,26 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
|
1909
1935
|
$[34] === shadowProp ? t14 = $[35] : (t14 = _getArrayProp(shadowProp), $[34] = shadowProp, $[35] = t14);
|
|
1910
1936
|
let shadow = t14, widthArrayProp = _getArrayProp(widthProp), t15;
|
|
1911
1937
|
$[36] === zOffsetProp ? t15 = $[37] : (t15 = _getArrayProp(zOffsetProp), $[36] = zOffsetProp, $[37] = t15);
|
|
1912
|
-
let zOffset = t15, ref = useRef(null), arrowRef = useRef(null), t16;
|
|
1913
|
-
$[38] === Symbol.for("react.memo_cache_sentinel") ? (t16 = () => ref.current, $[38] = t16) : t16 = $[38], useImperativeHandle(forwardedRef, t16);
|
|
1938
|
+
let zOffset = t15, ref = (0, react.useRef)(null), arrowRef = (0, react.useRef)(null), t16;
|
|
1939
|
+
$[38] === Symbol.for("react.memo_cache_sentinel") ? (t16 = () => ref.current, $[38] = t16) : t16 = $[38], (0, react.useImperativeHandle)(forwardedRef, t16);
|
|
1914
1940
|
let mediaIndex = useMediaIndex(), boundaryWidth = constrainSize || preventOverflow ? boundarySize?.width : void 0, width = calcCurrentWidth({
|
|
1915
1941
|
container,
|
|
1916
1942
|
mediaIndex,
|
|
1917
1943
|
width: widthArrayProp
|
|
1918
|
-
}), widthRef = useRef(width), t17, t18;
|
|
1944
|
+
}), widthRef = (0, react.useRef)(width), t17, t18;
|
|
1919
1945
|
$[39] === width ? (t17 = $[40], t18 = $[41]) : (t17 = () => {
|
|
1920
1946
|
widthRef.current = width;
|
|
1921
|
-
}, t18 = [width], $[39] = width, $[40] = t17, $[41] = t18), useEffect(t17, t18);
|
|
1947
|
+
}, t18 = [width], $[39] = width, $[40] = t17, $[41] = t18), (0, react.useEffect)(t17, t18);
|
|
1922
1948
|
let t19;
|
|
1923
1949
|
$[42] !== boundaryWidth || $[43] !== width ? (t19 = calcMaxWidth({
|
|
1924
1950
|
boundaryWidth,
|
|
1925
1951
|
currentWidth: width
|
|
1926
1952
|
}), $[42] = boundaryWidth, $[43] = width, $[44] = t19) : t19 = $[44];
|
|
1927
|
-
let maxWidth = t19, maxWidthRef = useRef(maxWidth), t20, t21;
|
|
1953
|
+
let maxWidth = t19, maxWidthRef = (0, react.useRef)(maxWidth), t20, t21;
|
|
1928
1954
|
$[45] === maxWidth ? (t20 = $[46], t21 = $[47]) : (t20 = () => {
|
|
1929
1955
|
maxWidthRef.current = maxWidth;
|
|
1930
|
-
}, t21 = [maxWidth], $[45] = maxWidth, $[46] = t20, $[47] = t21), useEffect(t20, t21);
|
|
1931
|
-
let referenceWidthRef = useRef(void 0), t22, t23;
|
|
1956
|
+
}, t21 = [maxWidth], $[45] = maxWidth, $[46] = t20, $[47] = t21), (0, react.useEffect)(t20, t21);
|
|
1957
|
+
let referenceWidthRef = (0, react.useRef)(void 0), t22, t23;
|
|
1932
1958
|
$[48] !== matchReferenceWidth || $[49] !== maxWidth || $[50] !== open || $[51] !== width ? (t22 = () => {
|
|
1933
1959
|
let floatingElement = ref.current;
|
|
1934
1960
|
if (!open || !floatingElement) return;
|
|
@@ -1939,8 +1965,8 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
|
1939
1965
|
matchReferenceWidth,
|
|
1940
1966
|
maxWidth,
|
|
1941
1967
|
open
|
|
1942
|
-
], $[48] = matchReferenceWidth, $[49] = maxWidth, $[50] = open, $[51] = width, $[52] = t22, $[53] = t23) : (t22 = $[52], t23 = $[53]), useEffect(t22, t23);
|
|
1943
|
-
let [referenceWidth_0, setReferenceWidth] = useState(void 0), t24;
|
|
1968
|
+
], $[48] = matchReferenceWidth, $[49] = maxWidth, $[50] = open, $[51] = width, $[52] = t22, $[53] = t23) : (t22 = $[52], t23 = $[53]), (0, react.useEffect)(t22, t23);
|
|
1969
|
+
let [referenceWidth_0, setReferenceWidth] = (0, react.useState)(void 0), t24;
|
|
1944
1970
|
$[54] !== animate || $[55] !== arrowProp || $[56] !== constrainSize || $[57] !== fallbackPlacements || $[58] !== floatingBoundary || $[59] !== margins || $[60] !== matchReferenceWidth || $[61] !== placementProp || $[62] !== placementStrategy || $[63] !== preventOverflow || $[64] !== referenceBoundary ? (t24 = {
|
|
1945
1971
|
animate,
|
|
1946
1972
|
arrowProp,
|
|
@@ -1966,10 +1992,10 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
|
1966
1992
|
$[68] !== middleware || $[69] !== placementProp || $[70] !== t25 ? (t26 = {
|
|
1967
1993
|
middleware,
|
|
1968
1994
|
placement: placementProp,
|
|
1969
|
-
whileElementsMounted: autoUpdate,
|
|
1995
|
+
whileElementsMounted: _floating_ui_react_dom.autoUpdate,
|
|
1970
1996
|
elements: t25
|
|
1971
1997
|
}, $[68] = middleware, $[69] = placementProp, $[70] = t25, $[71] = t26) : t26 = $[71];
|
|
1972
|
-
let { x, y, middlewareData, placement, refs, strategy, update } = useFloating(t26), referenceHidden = middlewareData.hide?.referenceHidden, arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, t27;
|
|
1998
|
+
let { x, y, middlewareData, placement, refs, strategy, update } = (0, _floating_ui_react_dom.useFloating)(t26), referenceHidden = middlewareData.hide?.referenceHidden, arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, t27;
|
|
1973
1999
|
$[72] === Symbol.for("react.memo_cache_sentinel") ? (t27 = (arrowEl) => {
|
|
1974
2000
|
arrowRef.current = arrowEl;
|
|
1975
2001
|
}, $[72] = t27) : t27 = $[72];
|
|
@@ -1980,7 +2006,7 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
|
1980
2006
|
let setFloating = t28, t29;
|
|
1981
2007
|
$[75] === childProp ? t29 = $[76] : (t29 = childProp ? getElementRef(childProp) : null, $[75] = childProp, $[76] = t29);
|
|
1982
2008
|
let t30;
|
|
1983
|
-
$[77] === refs.reference.current ? t30 = $[78] : (t30 = () => refs.reference.current, $[77] = refs.reference.current, $[78] = t30), useImperativeHandle(t29, t30);
|
|
2009
|
+
$[77] === refs.reference.current ? t30 = $[78] : (t30 = () => refs.reference.current, $[77] = refs.reference.current, $[78] = t30), (0, react.useImperativeHandle)(t29, t30);
|
|
1984
2010
|
let t31;
|
|
1985
2011
|
bb0: {
|
|
1986
2012
|
if (referenceElement) {
|
|
@@ -1992,17 +2018,17 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
|
1992
2018
|
break bb0;
|
|
1993
2019
|
}
|
|
1994
2020
|
let t32;
|
|
1995
|
-
$[79] !== childProp || $[80] !== refs.setReference ? (t32 = cloneElement(childProp, { ref: refs.setReference }), $[79] = childProp, $[80] = refs.setReference, $[81] = t32) : t32 = $[81], t31 = t32;
|
|
2021
|
+
$[79] !== childProp || $[80] !== refs.setReference ? (t32 = (0, react.cloneElement)(childProp, { ref: refs.setReference }), $[79] = childProp, $[80] = refs.setReference, $[81] = t32) : t32 = $[81], t31 = t32;
|
|
1996
2022
|
}
|
|
1997
2023
|
let child = t31, t32, t33;
|
|
1998
|
-
if ($[82] === update ? (t32 = $[83], t33 = $[84]) : (t32 = () => update, t33 = [update], $[82] = update, $[83] = t32, $[84] = t33), useImperativeHandle(updateRef, t32, t33), disabled) {
|
|
2024
|
+
if ($[82] === update ? (t32 = $[83], t33 = $[84]) : (t32 = () => update, t33 = [update], $[82] = update, $[83] = t32, $[84] = t33), (0, react.useImperativeHandle)(updateRef, t32, t33), disabled) {
|
|
1999
2025
|
let t34;
|
|
2000
|
-
return $[85] === childProp ? t34 = $[86] : (t34 = childProp || /* @__PURE__ */ jsx(Fragment
|
|
2026
|
+
return $[85] === childProp ? t34 = $[86] : (t34 = childProp || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {}), $[85] = childProp, $[86] = t34), t34;
|
|
2001
2027
|
}
|
|
2002
2028
|
let t34;
|
|
2003
|
-
$[87] === modal ? t34 = $[88] : (t34 = modal && /* @__PURE__ */ jsx(ViewportOverlay, {}), $[87] = modal, $[88] = t34);
|
|
2029
|
+
$[87] === modal ? t34 = $[88] : (t34 = modal && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ViewportOverlay, {}), $[87] = modal, $[88] = t34);
|
|
2004
2030
|
let t35 = matchReferenceWidth ? referenceWidth_0 : width, t36;
|
|
2005
|
-
$[89] !== animate || $[90] !== arrowProp || $[91] !== arrowX || $[92] !== arrowY || $[93] !== content || $[94] !== margins || $[95] !== originX || $[96] !== originY || $[97] !== overflow || $[98] !== padding || $[99] !== placement || $[100] !== radius || $[101] !== referenceHidden || $[102] !== restProps || $[103] !== scheme || $[104] !== setFloating || $[105] !== shadow || $[106] !== strategy || $[107] !== t35 || $[108] !== tone || $[109] !== x || $[110] !== y ? (t36 = /* @__PURE__ */ jsx(PopoverCard, {
|
|
2031
|
+
$[89] !== animate || $[90] !== arrowProp || $[91] !== arrowX || $[92] !== arrowY || $[93] !== content || $[94] !== margins || $[95] !== originX || $[96] !== originY || $[97] !== overflow || $[98] !== padding || $[99] !== placement || $[100] !== radius || $[101] !== referenceHidden || $[102] !== restProps || $[103] !== scheme || $[104] !== setFloating || $[105] !== shadow || $[106] !== strategy || $[107] !== t35 || $[108] !== tone || $[109] !== x || $[110] !== y ? (t36 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PopoverCard, {
|
|
2006
2032
|
...restProps,
|
|
2007
2033
|
__unstable_margins: margins,
|
|
2008
2034
|
animate,
|
|
@@ -2028,29 +2054,29 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
|
2028
2054
|
children: content
|
|
2029
2055
|
}), $[89] = animate, $[90] = arrowProp, $[91] = arrowX, $[92] = arrowY, $[93] = content, $[94] = margins, $[95] = originX, $[96] = originY, $[97] = overflow, $[98] = padding, $[99] = placement, $[100] = radius, $[101] = referenceHidden, $[102] = restProps, $[103] = scheme, $[104] = setFloating, $[105] = shadow, $[106] = strategy, $[107] = t35, $[108] = tone, $[109] = x, $[110] = y, $[111] = t36) : t36 = $[111];
|
|
2030
2056
|
let t37;
|
|
2031
|
-
$[112] !== t34 || $[113] !== t36 || $[114] !== zOffset ? (t37 = /* @__PURE__ */ jsxs(LayerProvider, {
|
|
2057
|
+
$[112] !== t34 || $[113] !== t36 || $[114] !== zOffset ? (t37 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(LayerProvider, {
|
|
2032
2058
|
zOffset,
|
|
2033
2059
|
children: [t34, t36]
|
|
2034
2060
|
}), $[112] = t34, $[113] = t36, $[114] = zOffset, $[115] = t37) : t37 = $[115];
|
|
2035
2061
|
let popover = t37, t38;
|
|
2036
|
-
$[116] !== open || $[117] !== popover || $[118] !== portal ? (t38 = open && (portal ? /* @__PURE__ */ jsx(Portal, {
|
|
2062
|
+
$[116] !== open || $[117] !== popover || $[118] !== portal ? (t38 = open && (portal ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Portal, {
|
|
2037
2063
|
__unstable_name: typeof portal == "string" ? portal : void 0,
|
|
2038
2064
|
children: popover
|
|
2039
2065
|
}) : popover), $[116] = open, $[117] = popover, $[118] = portal, $[119] = t38) : t38 = $[119];
|
|
2040
2066
|
let children = t38, t39;
|
|
2041
|
-
$[120] !== animate || $[121] !== children ? (t39 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[120] = animate, $[121] = children, $[122] = t39) : t39 = $[122];
|
|
2067
|
+
$[120] !== animate || $[121] !== children ? (t39 = animate ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.AnimatePresence, { children }) : children, $[120] = animate, $[121] = children, $[122] = t39) : t39 = $[122];
|
|
2042
2068
|
let t40;
|
|
2043
|
-
return $[123] !== child || $[124] !== t39 ? (t40 = /* @__PURE__ */ jsxs(Fragment
|
|
2069
|
+
return $[123] !== child || $[124] !== t39 ? (t40 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [t39, child] }), $[123] = child, $[124] = t39, $[125] = t40) : t40 = $[125], t40;
|
|
2044
2070
|
});
|
|
2045
2071
|
function useMiddleware$1(t0) {
|
|
2046
|
-
let $ = c(42), { animate, arrowProp, arrowRef, constrainSize, fallbackPlacements, floatingBoundary, margins, matchReferenceWidth, maxWidthRef, placementProp, placementStrategy, preventOverflow, referenceBoundary, referenceWidthRef, rootBoundary, setReferenceWidth, widthRef } = t0, ret;
|
|
2072
|
+
let $ = (0, react_compiler_runtime.c)(42), { animate, arrowProp, arrowRef, constrainSize, fallbackPlacements, floatingBoundary, margins, matchReferenceWidth, maxWidthRef, placementProp, placementStrategy, preventOverflow, referenceBoundary, referenceWidthRef, rootBoundary, setReferenceWidth, widthRef } = t0, ret;
|
|
2047
2073
|
if ($[0] !== animate || $[1] !== arrowProp || $[2] !== arrowRef || $[3] !== constrainSize || $[4] !== fallbackPlacements || $[5] !== floatingBoundary || $[6] !== margins || $[7] !== matchReferenceWidth || $[8] !== maxWidthRef || $[9] !== placementProp || $[10] !== placementStrategy || $[11] !== preventOverflow || $[12] !== referenceBoundary || $[13] !== referenceWidthRef || $[14] !== rootBoundary || $[15] !== setReferenceWidth || $[16] !== widthRef) {
|
|
2048
2074
|
if (ret = [], constrainSize || preventOverflow) if (placementStrategy === "autoPlacement") {
|
|
2049
2075
|
let t1;
|
|
2050
|
-
$[18] !== fallbackPlacements || $[19] !== placementProp ? (t1 = autoPlacement({ allowedPlacements: [placementProp].concat(fallbackPlacements) }), $[18] = fallbackPlacements, $[19] = placementProp, $[20] = t1) : t1 = $[20], ret.push(t1);
|
|
2076
|
+
$[18] !== fallbackPlacements || $[19] !== placementProp ? (t1 = (0, _floating_ui_react_dom.autoPlacement)({ allowedPlacements: [placementProp].concat(fallbackPlacements) }), $[18] = fallbackPlacements, $[19] = placementProp, $[20] = t1) : t1 = $[20], ret.push(t1);
|
|
2051
2077
|
} else {
|
|
2052
2078
|
let t1 = floatingBoundary || void 0, t2;
|
|
2053
|
-
$[21] !== fallbackPlacements || $[22] !== rootBoundary || $[23] !== t1 ? (t2 = flip({
|
|
2079
|
+
$[21] !== fallbackPlacements || $[22] !== rootBoundary || $[23] !== t1 ? (t2 = (0, _floating_ui_react_dom.flip)({
|
|
2054
2080
|
boundary: t1,
|
|
2055
2081
|
fallbackPlacements,
|
|
2056
2082
|
padding: 4,
|
|
@@ -2058,7 +2084,7 @@ function useMiddleware$1(t0) {
|
|
|
2058
2084
|
}), $[21] = fallbackPlacements, $[22] = rootBoundary, $[23] = t1, $[24] = t2) : t2 = $[24], ret.push(t2);
|
|
2059
2085
|
}
|
|
2060
2086
|
let t1;
|
|
2061
|
-
if ($[25] === Symbol.for("react.memo_cache_sentinel") ? (t1 = offset({ mainAxis: 4 }), $[25] = t1) : t1 = $[25], ret.push(t1), constrainSize || matchReferenceWidth) {
|
|
2087
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel") ? (t1 = (0, _floating_ui_react_dom.offset)({ mainAxis: 4 }), $[25] = t1) : t1 = $[25], ret.push(t1), constrainSize || matchReferenceWidth) {
|
|
2062
2088
|
let t2 = floatingBoundary || void 0, t3;
|
|
2063
2089
|
$[26] !== constrainSize || $[27] !== margins || $[28] !== matchReferenceWidth || $[29] !== maxWidthRef || $[30] !== referenceWidthRef || $[31] !== setReferenceWidth || $[32] !== t2 || $[33] !== widthRef ? (t3 = size({
|
|
2064
2090
|
boundaryElement: t2,
|
|
@@ -2074,7 +2100,7 @@ function useMiddleware$1(t0) {
|
|
|
2074
2100
|
}
|
|
2075
2101
|
if (preventOverflow) {
|
|
2076
2102
|
let t2 = floatingBoundary || void 0, t3;
|
|
2077
|
-
$[35] !== rootBoundary || $[36] !== t2 ? (t3 = shift({
|
|
2103
|
+
$[35] !== rootBoundary || $[36] !== t2 ? (t3 = (0, _floating_ui_react_dom.shift)({
|
|
2078
2104
|
boundary: t2,
|
|
2079
2105
|
rootBoundary,
|
|
2080
2106
|
padding: 4
|
|
@@ -2082,14 +2108,14 @@ function useMiddleware$1(t0) {
|
|
|
2082
2108
|
}
|
|
2083
2109
|
if (arrowProp) {
|
|
2084
2110
|
let t2;
|
|
2085
|
-
$[38] === arrowRef ? t2 = $[39] : (t2 = arrow({
|
|
2111
|
+
$[38] === arrowRef ? t2 = $[39] : (t2 = (0, _floating_ui_react_dom.arrow)({
|
|
2086
2112
|
element: arrowRef,
|
|
2087
2113
|
padding: 4
|
|
2088
2114
|
}), $[38] = arrowRef, $[39] = t2), ret.push(t2);
|
|
2089
2115
|
}
|
|
2090
2116
|
animate && ret.push(origin);
|
|
2091
2117
|
let t2 = referenceBoundary || void 0, t3;
|
|
2092
|
-
$[40] === t2 ? t3 = $[41] : (t3 = hide({
|
|
2118
|
+
$[40] === t2 ? t3 = $[41] : (t3 = (0, _floating_ui_react_dom.hide)({
|
|
2093
2119
|
boundary: t2,
|
|
2094
2120
|
padding: 4,
|
|
2095
2121
|
strategy: "referenceHidden"
|
|
@@ -2107,19 +2133,19 @@ function stackBaseStyle() {
|
|
|
2107
2133
|
return BASE_STYLE;
|
|
2108
2134
|
}
|
|
2109
2135
|
function responsiveStackSpaceStyle(props) {
|
|
2110
|
-
let { media, space } =
|
|
2136
|
+
let { media, space } = require_theme.X(props.theme);
|
|
2111
2137
|
return _responsive(media, props.$space, (spaceIndex) => ({ gridGap: rem(space[spaceIndex]) }));
|
|
2112
2138
|
}
|
|
2113
|
-
const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
|
|
2139
|
+
const StyledStack = /* @__PURE__ */ (0, styled_components.styled)(Box).withConfig({
|
|
2114
2140
|
displayName: "StyledStack",
|
|
2115
2141
|
componentId: "sc-0k6050-0"
|
|
2116
|
-
})(stackBaseStyle, responsiveStackSpaceStyle), Stack = forwardRef(function Stack(props, ref) {
|
|
2117
|
-
let $ = c(13), as, deprecated_space, gap, restProps;
|
|
2142
|
+
})(stackBaseStyle, responsiveStackSpaceStyle), Stack = (0, react.forwardRef)(function Stack(props, ref) {
|
|
2143
|
+
let $ = (0, react_compiler_runtime.c)(13), as, deprecated_space, gap, restProps;
|
|
2118
2144
|
$[0] === props ? (as = $[1], deprecated_space = $[2], gap = $[3], restProps = $[4]) : ({as, gap, space: deprecated_space, ...restProps} = props, $[0] = props, $[1] = as, $[2] = deprecated_space, $[3] = gap, $[4] = restProps);
|
|
2119
2145
|
let spacing = gap === void 0 ? deprecated_space : gap, t0 = typeof as == "string" ? as : void 0, t1;
|
|
2120
2146
|
$[5] === spacing ? t1 = $[6] : (t1 = _getArrayProp(spacing), $[5] = spacing, $[6] = t1);
|
|
2121
2147
|
let t2;
|
|
2122
|
-
return $[7] !== as || $[8] !== ref || $[9] !== restProps || $[10] !== t0 || $[11] !== t1 ? (t2 = /* @__PURE__ */ jsx(StyledStack, {
|
|
2148
|
+
return $[7] !== as || $[8] !== ref || $[9] !== restProps || $[10] !== t0 || $[11] !== t1 ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledStack, {
|
|
2123
2149
|
"data-as": t0,
|
|
2124
2150
|
"data-ui": "Stack",
|
|
2125
2151
|
...restProps,
|
|
@@ -2127,40 +2153,40 @@ const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
2127
2153
|
forwardedAs: as,
|
|
2128
2154
|
ref
|
|
2129
2155
|
}), $[7] = as, $[8] = ref, $[9] = restProps, $[10] = t0, $[11] = t1, $[12] = t2) : t2 = $[12], t2;
|
|
2130
|
-
}), CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledTextInput = /* @__PURE__ */ styled(Card).attrs({ forwardedAs: "span" }).withConfig({
|
|
2156
|
+
}), CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledTextInput = /* @__PURE__ */ (0, styled_components.styled)(Card).attrs({ forwardedAs: "span" }).withConfig({
|
|
2131
2157
|
displayName: "StyledTextInput",
|
|
2132
2158
|
componentId: "sc-iuvxo7-0"
|
|
2133
|
-
})(textInputRootStyle), InputRoot = styled.span.withConfig({
|
|
2159
|
+
})(textInputRootStyle), InputRoot = styled_components.styled.span.withConfig({
|
|
2134
2160
|
displayName: "InputRoot",
|
|
2135
2161
|
componentId: "sc-iuvxo7-1"
|
|
2136
|
-
})`flex:1;min-width:0;display:block;position:relative;`, Prefix = styled(Card).attrs({ forwardedAs: "span" }).withConfig({
|
|
2162
|
+
})`flex:1;min-width:0;display:block;position:relative;`, Prefix = (0, styled_components.styled)(Card).attrs({ forwardedAs: "span" }).withConfig({
|
|
2137
2163
|
displayName: "Prefix",
|
|
2138
2164
|
componentId: "sc-iuvxo7-2"
|
|
2139
|
-
})`border-top-right-radius:0;border-bottom-right-radius:0;& > span{display:block;margin:-1px;}`, Suffix = styled(Card).attrs({ forwardedAs: "span" }).withConfig({
|
|
2165
|
+
})`border-top-right-radius:0;border-bottom-right-radius:0;& > span{display:block;margin:-1px;}`, Suffix = (0, styled_components.styled)(Card).attrs({ forwardedAs: "span" }).withConfig({
|
|
2140
2166
|
displayName: "Suffix",
|
|
2141
2167
|
componentId: "sc-iuvxo7-3"
|
|
2142
|
-
})`border-top-left-radius:0;border-bottom-left-radius:0;& > span{display:block;margin:-1px;}`, Input = /* @__PURE__ */ styled.input.withConfig({
|
|
2168
|
+
})`border-top-left-radius:0;border-bottom-left-radius:0;& > span{display:block;margin:-1px;}`, Input = /* @__PURE__ */ styled_components.styled.input.withConfig({
|
|
2143
2169
|
displayName: "Input",
|
|
2144
2170
|
componentId: "sc-iuvxo7-4"
|
|
2145
|
-
})(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation = /* @__PURE__ */ styled.span.withConfig({
|
|
2171
|
+
})(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation = /* @__PURE__ */ styled_components.styled.span.withConfig({
|
|
2146
2172
|
displayName: "Presentation",
|
|
2147
2173
|
componentId: "sc-iuvxo7-5"
|
|
2148
|
-
})(responsiveRadiusStyle, textInputRepresentationStyle), LeftBox = styled(Box).withConfig({
|
|
2174
|
+
})(responsiveRadiusStyle, textInputRepresentationStyle), LeftBox = (0, styled_components.styled)(Box).withConfig({
|
|
2149
2175
|
displayName: "LeftBox",
|
|
2150
2176
|
componentId: "sc-iuvxo7-6"
|
|
2151
|
-
})`position:absolute;top:0;left:0;`, RightBox = styled(Box).withConfig({
|
|
2177
|
+
})`position:absolute;top:0;left:0;`, RightBox = (0, styled_components.styled)(Box).withConfig({
|
|
2152
2178
|
displayName: "RightBox",
|
|
2153
2179
|
componentId: "sc-iuvxo7-7"
|
|
2154
|
-
})`position:absolute;top:0;right:0;`, RightCard = styled(Card).withConfig({
|
|
2180
|
+
})`position:absolute;top:0;right:0;`, RightCard = (0, styled_components.styled)(Card).withConfig({
|
|
2155
2181
|
displayName: "RightCard",
|
|
2156
2182
|
componentId: "sc-iuvxo7-8"
|
|
2157
|
-
})`background-color:transparent;position:absolute;top:0;right:0;`, TextInputClearButton = /* @__PURE__ */ styled(Button).withConfig({
|
|
2183
|
+
})`background-color:transparent;position:absolute;top:0;right:0;`, TextInputClearButton = /* @__PURE__ */ (0, styled_components.styled)(Button).withConfig({
|
|
2158
2184
|
displayName: "TextInputClearButton",
|
|
2159
2185
|
componentId: "sc-iuvxo7-9"
|
|
2160
|
-
})({ "&:not([hidden])": { display: "block" } }), TextInput = forwardRef(function TextInput(props, forwardedRef) {
|
|
2161
|
-
let $ = c(93), IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, gap, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
|
|
2186
|
+
})({ "&:not([hidden])": { display: "block" } }), TextInput = (0, react.forwardRef)(function TextInput(props, forwardedRef) {
|
|
2187
|
+
let $ = (0, react_compiler_runtime.c)(93), IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, gap, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
|
|
2162
2188
|
$[0] === props ? (IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], clearButton = $[4], customValidity = $[5], gap = $[6], onClear = $[7], prefix = $[8], readOnly = $[9], restProps = $[10], suffix = $[11], t0 = $[12], t1 = $[13], t2 = $[14], t3 = $[15], t4 = $[16], t5 = $[17], t6 = $[18], weight = $[19]) : ({__unstable_disableFocusRing, border: t0, clearButton, disabled: t1, fontSize: t2, gap, icon: IconComponent, iconRight: IconRightComponent, onClear, padding: t3, prefix, radius: t4, readOnly, space: t5, suffix, customValidity, type: t6, weight, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = clearButton, $[5] = customValidity, $[6] = gap, $[7] = onClear, $[8] = prefix, $[9] = readOnly, $[10] = restProps, $[11] = suffix, $[12] = t0, $[13] = t1, $[14] = t2, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = weight);
|
|
2163
|
-
let border = t0 === void 0 || t0, disabled = t1 !== void 0 && t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, deprecated_space = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = useRef(null), rootTheme = useRootTheme(), t7;
|
|
2189
|
+
let border = t0 === void 0 || t0, disabled = t1 !== void 0 && t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, deprecated_space = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = (0, react.useRef)(null), rootTheme = useRootTheme(), t7;
|
|
2164
2190
|
$[20] === fontSizeProp ? t7 = $[21] : (t7 = _getArrayProp(fontSizeProp), $[20] = fontSizeProp, $[21] = t7);
|
|
2165
2191
|
let fontSize = t7, t8;
|
|
2166
2192
|
$[22] === paddingProp ? t8 = $[23] : (t8 = _getArrayProp(paddingProp), $[22] = paddingProp, $[23] = t8);
|
|
@@ -2169,39 +2195,39 @@ const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
2169
2195
|
let radius = t9, t10 = gap === void 0 ? deprecated_space : gap, t11;
|
|
2170
2196
|
$[26] === t10 ? t11 = $[27] : (t11 = _getArrayProp(t10), $[26] = t10, $[27] = t11);
|
|
2171
2197
|
let space = t11, $hasClearButton = !!clearButton, $hasIcon = !!IconComponent, $hasIconRight = !!IconRightComponent, $hasSuffix = !!suffix, $hasPrefix = !!prefix, t12;
|
|
2172
|
-
$[28] === Symbol.for("react.memo_cache_sentinel") ? (t12 = () => ref.current, $[28] = t12) : t12 = $[28], useImperativeHandle(forwardedRef, t12), useCustomValidity(ref, customValidity);
|
|
2173
|
-
let handleClearMouseDown = _temp$
|
|
2198
|
+
$[28] === Symbol.for("react.memo_cache_sentinel") ? (t12 = () => ref.current, $[28] = t12) : t12 = $[28], (0, react.useImperativeHandle)(forwardedRef, t12), useCustomValidity(ref, customValidity);
|
|
2199
|
+
let handleClearMouseDown = _temp$2, t13;
|
|
2174
2200
|
$[29] === onClear ? t13 = $[30] : (t13 = (event_0) => {
|
|
2175
2201
|
event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
|
|
2176
2202
|
}, $[29] = onClear, $[30] = t13);
|
|
2177
2203
|
let handleClearClick = t13, t14;
|
|
2178
|
-
$[31] !== prefix || $[32] !== radius ? (t14 = prefix && /* @__PURE__ */ jsx(Prefix, {
|
|
2204
|
+
$[31] !== prefix || $[32] !== radius ? (t14 = prefix && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Prefix, {
|
|
2179
2205
|
borderTop: !0,
|
|
2180
2206
|
borderLeft: !0,
|
|
2181
2207
|
borderBottom: !0,
|
|
2182
2208
|
radius,
|
|
2183
2209
|
sizing: "border",
|
|
2184
2210
|
tone: "inherit",
|
|
2185
|
-
children: /* @__PURE__ */ jsx("span", { children: prefix })
|
|
2211
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: prefix })
|
|
2186
2212
|
}), $[31] = prefix, $[32] = radius, $[33] = t14) : t14 = $[33];
|
|
2187
2213
|
let prefixNode = t14, t15 = border ? "" : void 0, t16;
|
|
2188
|
-
$[34] !== IconComponent || $[35] !== fontSize || $[36] !== padding ? (t16 = IconComponent && /* @__PURE__ */ jsx(LeftBox, {
|
|
2214
|
+
$[34] !== IconComponent || $[35] !== fontSize || $[36] !== padding ? (t16 = IconComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LeftBox, {
|
|
2189
2215
|
padding,
|
|
2190
|
-
children: /* @__PURE__ */ jsxs(Text, {
|
|
2216
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
|
|
2191
2217
|
size: fontSize,
|
|
2192
|
-
children: [isValidElement(IconComponent) && IconComponent, isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})]
|
|
2218
|
+
children: [(0, react.isValidElement)(IconComponent) && IconComponent, (0, react_is.isValidElementType)(IconComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconComponent, {})]
|
|
2193
2219
|
})
|
|
2194
2220
|
}), $[34] = IconComponent, $[35] = fontSize, $[36] = padding, $[37] = t16) : t16 = $[37];
|
|
2195
2221
|
let t17;
|
|
2196
|
-
$[38] !== $hasClearButton || $[39] !== IconRightComponent || $[40] !== fontSize || $[41] !== padding ? (t17 = !$hasClearButton && IconRightComponent && /* @__PURE__ */ jsx(RightBox, {
|
|
2222
|
+
$[38] !== $hasClearButton || $[39] !== IconRightComponent || $[40] !== fontSize || $[41] !== padding ? (t17 = !$hasClearButton && IconRightComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RightBox, {
|
|
2197
2223
|
padding,
|
|
2198
|
-
children: /* @__PURE__ */ jsxs(Text, {
|
|
2224
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
|
|
2199
2225
|
size: fontSize,
|
|
2200
|
-
children: [isValidElement(IconRightComponent) && IconRightComponent, isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})]
|
|
2226
|
+
children: [(0, react.isValidElement)(IconRightComponent) && IconRightComponent, (0, react_is.isValidElementType)(IconRightComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconRightComponent, {})]
|
|
2201
2227
|
})
|
|
2202
2228
|
}), $[38] = $hasClearButton, $[39] = IconRightComponent, $[40] = fontSize, $[41] = padding, $[42] = t17) : t17 = $[42];
|
|
2203
2229
|
let t18;
|
|
2204
|
-
$[43] !== $hasPrefix || $[44] !== $hasSuffix || $[45] !== __unstable_disableFocusRing || $[46] !== radius || $[47] !== rootTheme.scheme || $[48] !== rootTheme.tone || $[49] !== t15 || $[50] !== t16 || $[51] !== t17 ? (t18 = /* @__PURE__ */ jsxs(Presentation, {
|
|
2230
|
+
$[43] !== $hasPrefix || $[44] !== $hasSuffix || $[45] !== __unstable_disableFocusRing || $[46] !== radius || $[47] !== rootTheme.scheme || $[48] !== rootTheme.tone || $[49] !== t15 || $[50] !== t16 || $[51] !== t17 ? (t18 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Presentation, {
|
|
2205
2231
|
$hasPrefix,
|
|
2206
2232
|
$unstableDisableFocusRing: __unstable_disableFocusRing,
|
|
2207
2233
|
$hasSuffix,
|
|
@@ -2218,16 +2244,16 @@ const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
2218
2244
|
let clearButtonBoxPadding = t19, t20;
|
|
2219
2245
|
$[55] === padding ? t20 = $[56] : (t20 = padding.map(_temp3), $[55] = padding, $[56] = t20);
|
|
2220
2246
|
let clearButtonPadding = t20, clearButtonProps = typeof clearButton == "object" ? clearButton : EMPTY_RECORD, t21;
|
|
2221
|
-
$[57] !== clearButton || $[58] !== clearButtonBoxPadding || $[59] !== clearButtonPadding || $[60] !== clearButtonProps || $[61] !== customValidity || $[62] !== disabled || $[63] !== fontSize || $[64] !== handleClearClick || $[65] !== radius || $[66] !== readOnly ? (t21 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(RightCard, {
|
|
2247
|
+
$[57] !== clearButton || $[58] !== clearButtonBoxPadding || $[59] !== clearButtonPadding || $[60] !== clearButtonProps || $[61] !== customValidity || $[62] !== disabled || $[63] !== fontSize || $[64] !== handleClearClick || $[65] !== radius || $[66] !== readOnly ? (t21 = !disabled && !readOnly && clearButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RightCard, {
|
|
2222
2248
|
forwardedAs: "span",
|
|
2223
2249
|
padding: clearButtonBoxPadding,
|
|
2224
2250
|
style: CLEAR_BUTTON_BOX_STYLE,
|
|
2225
2251
|
tone: customValidity ? "critical" : "inherit",
|
|
2226
|
-
children: /* @__PURE__ */ jsx(TextInputClearButton, {
|
|
2252
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextInputClearButton, {
|
|
2227
2253
|
"aria-label": "Clear",
|
|
2228
2254
|
"data-qa": "clear-button",
|
|
2229
2255
|
fontSize,
|
|
2230
|
-
icon: CloseIcon,
|
|
2256
|
+
icon: _sanity_icons_Close.CloseIcon,
|
|
2231
2257
|
mode: "bleed",
|
|
2232
2258
|
padding: clearButtonPadding,
|
|
2233
2259
|
radius,
|
|
@@ -2237,17 +2263,17 @@ const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
2237
2263
|
})
|
|
2238
2264
|
}), $[57] = clearButton, $[58] = clearButtonBoxPadding, $[59] = clearButtonPadding, $[60] = clearButtonProps, $[61] = customValidity, $[62] = disabled, $[63] = fontSize, $[64] = handleClearClick, $[65] = radius, $[66] = readOnly, $[67] = t21) : t21 = $[67];
|
|
2239
2265
|
let clearButtonNode = t21, t22;
|
|
2240
|
-
$[68] !== radius || $[69] !== suffix ? (t22 = suffix && /* @__PURE__ */ jsx(Suffix, {
|
|
2266
|
+
$[68] !== radius || $[69] !== suffix ? (t22 = suffix && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Suffix, {
|
|
2241
2267
|
borderTop: !0,
|
|
2242
2268
|
borderRight: !0,
|
|
2243
2269
|
borderBottom: !0,
|
|
2244
2270
|
radius,
|
|
2245
2271
|
sizing: "border",
|
|
2246
2272
|
tone: "inherit",
|
|
2247
|
-
children: /* @__PURE__ */ jsx("span", { children: suffix })
|
|
2273
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: suffix })
|
|
2248
2274
|
}), $[68] = radius, $[69] = suffix, $[70] = t22) : t22 = $[70];
|
|
2249
2275
|
let suffixNode = t22, t23 = $hasIconRight || $hasClearButton, t24;
|
|
2250
|
-
$[71] !== $hasIcon || $[72] !== disabled || $[73] !== fontSize || $[74] !== padding || $[75] !== readOnly || $[76] !== restProps || $[77] !== rootTheme.scheme || $[78] !== rootTheme.tone || $[79] !== space || $[80] !== t23 || $[81] !== type || $[82] !== weight ? (t24 = /* @__PURE__ */ jsx(Input, {
|
|
2276
|
+
$[71] !== $hasIcon || $[72] !== disabled || $[73] !== fontSize || $[74] !== padding || $[75] !== readOnly || $[76] !== restProps || $[77] !== rootTheme.scheme || $[78] !== rootTheme.tone || $[79] !== space || $[80] !== t23 || $[81] !== type || $[82] !== weight ? (t24 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input, {
|
|
2251
2277
|
"data-as": "input",
|
|
2252
2278
|
"data-scheme": rootTheme.scheme,
|
|
2253
2279
|
"data-tone": rootTheme.tone,
|
|
@@ -2266,13 +2292,13 @@ const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
2266
2292
|
type
|
|
2267
2293
|
}), $[71] = $hasIcon, $[72] = disabled, $[73] = fontSize, $[74] = padding, $[75] = readOnly, $[76] = restProps, $[77] = rootTheme.scheme, $[78] = rootTheme.tone, $[79] = space, $[80] = t23, $[81] = type, $[82] = weight, $[83] = t24) : t24 = $[83];
|
|
2268
2294
|
let t25;
|
|
2269
|
-
$[84] !== clearButtonNode || $[85] !== presentationNode || $[86] !== t24 ? (t25 = /* @__PURE__ */ jsxs(InputRoot, { children: [
|
|
2295
|
+
$[84] !== clearButtonNode || $[85] !== presentationNode || $[86] !== t24 ? (t25 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(InputRoot, { children: [
|
|
2270
2296
|
t24,
|
|
2271
2297
|
presentationNode,
|
|
2272
2298
|
clearButtonNode
|
|
2273
2299
|
] }), $[84] = clearButtonNode, $[85] = presentationNode, $[86] = t24, $[87] = t25) : t25 = $[87];
|
|
2274
2300
|
let t26;
|
|
2275
|
-
return $[88] !== prefixNode || $[89] !== rootTheme.tone || $[90] !== suffixNode || $[91] !== t25 ? (t26 = /* @__PURE__ */ jsxs(StyledTextInput, {
|
|
2301
|
+
return $[88] !== prefixNode || $[89] !== rootTheme.tone || $[90] !== suffixNode || $[91] !== t25 ? (t26 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledTextInput, {
|
|
2276
2302
|
"data-ui": "TextInput",
|
|
2277
2303
|
tone: rootTheme.tone,
|
|
2278
2304
|
children: [
|
|
@@ -2282,7 +2308,7 @@ const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
2282
2308
|
]
|
|
2283
2309
|
}), $[88] = prefixNode, $[89] = rootTheme.tone, $[90] = suffixNode, $[91] = t25, $[92] = t26) : t26 = $[92], t26;
|
|
2284
2310
|
});
|
|
2285
|
-
function _temp$
|
|
2311
|
+
function _temp$2(event) {
|
|
2286
2312
|
event.preventDefault(), event.stopPropagation();
|
|
2287
2313
|
}
|
|
2288
2314
|
function _temp2(v) {
|
|
@@ -2295,16 +2321,20 @@ function _temp3(v_0) {
|
|
|
2295
2321
|
* @beta
|
|
2296
2322
|
*/
|
|
2297
2323
|
function useDelayedState(initialState) {
|
|
2298
|
-
let [state, setState] = useState(initialState), delayedAction = useRef(void 0),
|
|
2324
|
+
let $ = (0, react_compiler_runtime.c)(5), [state, setState] = (0, react.useState)(initialState), delayedAction = (0, react.useRef)(void 0), t0;
|
|
2325
|
+
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = (nextState, delay) => {
|
|
2299
2326
|
let action = () => {
|
|
2300
2327
|
setState(nextState);
|
|
2301
2328
|
};
|
|
2302
2329
|
if (delayedAction.current &&= (clearTimeout(delayedAction.current), void 0), !delay) return action();
|
|
2303
2330
|
delayedAction.current = setTimeout(action, delay);
|
|
2304
|
-
}, []);
|
|
2305
|
-
|
|
2331
|
+
}, $[0] = t0) : t0 = $[0];
|
|
2332
|
+
let onStateChange = t0, t1, t2;
|
|
2333
|
+
$[1] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => () => {
|
|
2306
2334
|
delayedAction.current && clearTimeout(delayedAction.current);
|
|
2307
|
-
}, []), [
|
|
2335
|
+
}, t2 = [], $[1] = t1, $[2] = t2) : (t1 = $[1], t2 = $[2]), (0, react.useEffect)(t1, t2);
|
|
2336
|
+
let t3;
|
|
2337
|
+
return $[3] === state ? t3 = $[4] : (t3 = [state, onStateChange], $[3] = state, $[4] = t3), t3;
|
|
2308
2338
|
}
|
|
2309
2339
|
const DEFAULT_FALLBACK_PLACEMENTS = {
|
|
2310
2340
|
top: [
|
|
@@ -2391,11 +2421,11 @@ const DEFAULT_FALLBACK_PLACEMENTS = {
|
|
|
2391
2421
|
"top-end",
|
|
2392
2422
|
"bottom-end"
|
|
2393
2423
|
]
|
|
2394
|
-
}, MotionCard = styled(motion.create(Card)).withConfig({
|
|
2424
|
+
}, MotionCard = (0, styled_components.styled)(motion_react.motion.create(Card)).withConfig({
|
|
2395
2425
|
displayName: "MotionCard",
|
|
2396
2426
|
componentId: "sc-d1w0oq-0"
|
|
2397
|
-
})`will-change:transform;`, TooltipCard = forwardRef(function TooltipCard(props, ref) {
|
|
2398
|
-
let $ = c(48), animate, arrow, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, restProps, scheme, shadow, style;
|
|
2427
|
+
})`will-change:transform;`, TooltipCard = (0, react.forwardRef)(function TooltipCard(props, ref) {
|
|
2428
|
+
let $ = (0, react_compiler_runtime.c)(48), animate, arrow, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, restProps, scheme, shadow, style;
|
|
2399
2429
|
$[0] === props ? (animate = $[1], arrow = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], originX = $[7], originY = $[8], padding = $[9], placement = $[10], radius = $[11], restProps = $[12], scheme = $[13], shadow = $[14], style = $[15]) : ({animate, arrow, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, scheme, shadow, style, ...restProps} = props, $[0] = props, $[1] = animate, $[2] = arrow, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = originX, $[8] = originY, $[9] = padding, $[10] = placement, $[11] = radius, $[12] = restProps, $[13] = scheme, $[14] = shadow, $[15] = style);
|
|
2400
2430
|
let t0 = animate ? "transform" : void 0, t1;
|
|
2401
2431
|
$[16] !== originX || $[17] !== originY || $[18] !== style || $[19] !== t0 ? (t1 = {
|
|
@@ -2418,7 +2448,7 @@ const DEFAULT_FALLBACK_PLACEMENTS = {
|
|
|
2418
2448
|
let t8;
|
|
2419
2449
|
$[28] === animate ? t8 = $[29] : (t8 = animate ? ["hidden", "scaleOut"] : void 0, $[28] = animate, $[29] = t8);
|
|
2420
2450
|
let t9;
|
|
2421
|
-
$[30] !== arrow || $[31] !== arrowRef || $[32] !== arrowStyle ? (t9 = arrow && /* @__PURE__ */ jsx(Arrow, {
|
|
2451
|
+
$[30] !== arrow || $[31] !== arrowRef || $[32] !== arrowStyle ? (t9 = arrow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Arrow, {
|
|
2422
2452
|
ref: arrowRef,
|
|
2423
2453
|
style: arrowStyle,
|
|
2424
2454
|
width: 15,
|
|
@@ -2426,7 +2456,7 @@ const DEFAULT_FALLBACK_PLACEMENTS = {
|
|
|
2426
2456
|
radius: 2
|
|
2427
2457
|
}), $[30] = arrow, $[31] = arrowRef, $[32] = arrowStyle, $[33] = t9) : t9 = $[33];
|
|
2428
2458
|
let t10;
|
|
2429
|
-
return $[34] !== children || $[35] !== padding || $[36] !== placement || $[37] !== radius || $[38] !== ref || $[39] !== rootStyle || $[40] !== scheme || $[41] !== shadow || $[42] !== t5 || $[43] !== t6 || $[44] !== t7 || $[45] !== t8 || $[46] !== t9 ? (t10 = /* @__PURE__ */ jsxs(MotionCard, {
|
|
2459
|
+
return $[34] !== children || $[35] !== padding || $[36] !== placement || $[37] !== radius || $[38] !== ref || $[39] !== rootStyle || $[40] !== scheme || $[41] !== shadow || $[42] !== t5 || $[43] !== t6 || $[44] !== t7 || $[45] !== t8 || $[46] !== t9 ? (t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MotionCard, {
|
|
2430
2460
|
"data-ui": "Tooltip__card",
|
|
2431
2461
|
...t5,
|
|
2432
2462
|
"data-placement": placement,
|
|
@@ -2448,18 +2478,18 @@ const DEFAULT_FALLBACK_PLACEMENTS = {
|
|
|
2448
2478
|
* @beta
|
|
2449
2479
|
*/
|
|
2450
2480
|
function useTooltipDelayGroup() {
|
|
2451
|
-
return useContext(TooltipDelayGroupContext);
|
|
2481
|
+
return (0, react.useContext)(TooltipDelayGroupContext);
|
|
2452
2482
|
}
|
|
2453
|
-
const StyledTooltip = styled(Layer).withConfig({
|
|
2483
|
+
const StyledTooltip = (0, styled_components.styled)(Layer).withConfig({
|
|
2454
2484
|
displayName: "StyledTooltip",
|
|
2455
2485
|
componentId: "sc-dkqcjk-0"
|
|
2456
|
-
})`pointer-events:none;`, Tooltip = forwardRef(function Tooltip(props, forwardedRef) {
|
|
2457
|
-
let $ = c(137), boundaryElementContext = useBoundaryElement(), { layer } = useTheme_v2(), _boundaryElement, _fallbackPlacementsProp, _zOffset, childProp, content, delay, disabled, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5;
|
|
2486
|
+
})`pointer-events:none;`, Tooltip = (0, react.forwardRef)(function Tooltip(props, forwardedRef) {
|
|
2487
|
+
let $ = (0, react_compiler_runtime.c)(137), boundaryElementContext = useBoundaryElement(), { layer } = useTheme_v2(), _boundaryElement, _fallbackPlacementsProp, _zOffset, childProp, content, delay, disabled, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5;
|
|
2458
2488
|
$[0] === props ? (_boundaryElement = $[1], _fallbackPlacementsProp = $[2], _zOffset = $[3], childProp = $[4], content = $[5], delay = $[6], disabled = $[7], portalProp = $[8], restProps = $[9], scheme = $[10], t0 = $[11], t1 = $[12], t2 = $[13], t3 = $[14], t4 = $[15], t5 = $[16]) : ({animate: t0, arrow: t1, boundaryElement: _boundaryElement, children: childProp, content, disabled, fallbackPlacements: _fallbackPlacementsProp, padding: t2, placement: t3, portal: portalProp, radius: t4, scheme, shadow: t5, zOffset: _zOffset, delay, ...restProps} = props, $[0] = props, $[1] = _boundaryElement, $[2] = _fallbackPlacementsProp, $[3] = _zOffset, $[4] = childProp, $[5] = content, $[6] = delay, $[7] = disabled, $[8] = portalProp, $[9] = restProps, $[10] = scheme, $[11] = t0, $[12] = t1, $[13] = t2, $[14] = t3, $[15] = t4, $[16] = t5);
|
|
2459
2489
|
let _animate = t0 !== void 0 && t0, arrowProp = t1 !== void 0 && t1, padding = t2 === void 0 ? 2 : t2, placementProp = t3 === void 0 ? "bottom" : t3, radius = t4 === void 0 ? 2 : t4, shadow = t5 === void 0 ? 2 : t5, boundaryElement = _boundaryElement ?? boundaryElementContext?.element, fallbackPlacementsProp = _fallbackPlacementsProp ?? DEFAULT_FALLBACK_PLACEMENTS[props.placement ?? "bottom"], zOffset = _zOffset ?? layer.tooltip.zOffset, animate = !usePrefersReducedMotion() && _animate, t6;
|
|
2460
2490
|
$[17] === fallbackPlacementsProp ? t6 = $[18] : (t6 = _getArrayProp(fallbackPlacementsProp), $[17] = fallbackPlacementsProp, $[18] = t6);
|
|
2461
|
-
let fallbackPlacements = t6, ref = useRef(null), [referenceElement, setReferenceElement] = useState(null), arrowRef = useRef(null), [tooltipMaxWidth, setTooltipMaxWidth] = useState(0), t7;
|
|
2462
|
-
$[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], useImperativeHandle(forwardedRef, t7);
|
|
2491
|
+
let fallbackPlacements = t6, ref = (0, react.useRef)(null), [referenceElement, setReferenceElement] = (0, react.useState)(null), arrowRef = (0, react.useRef)(null), [tooltipMaxWidth, setTooltipMaxWidth] = (0, react.useState)(0), t7;
|
|
2492
|
+
$[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], (0, react.useImperativeHandle)(forwardedRef, t7);
|
|
2463
2493
|
let portal = usePortal(), portalElement = typeof portalProp == "string" ? portal.elements?.[portalProp] || null : portal.element, t8;
|
|
2464
2494
|
$[20] !== animate || $[21] !== arrowProp || $[22] !== boundaryElement || $[23] !== fallbackPlacements ? (t8 = {
|
|
2465
2495
|
animate,
|
|
@@ -2475,10 +2505,10 @@ const StyledTooltip = styled(Layer).withConfig({
|
|
|
2475
2505
|
$[27] !== middleware || $[28] !== placementProp || $[29] !== t9 ? (t10 = {
|
|
2476
2506
|
middleware,
|
|
2477
2507
|
placement: placementProp,
|
|
2478
|
-
whileElementsMounted: autoUpdate,
|
|
2508
|
+
whileElementsMounted: _floating_ui_react_dom.autoUpdate,
|
|
2479
2509
|
elements: t9
|
|
2480
2510
|
}, $[27] = middleware, $[28] = placementProp, $[29] = t9, $[30] = t10) : t10 = $[30];
|
|
2481
|
-
let { floatingStyles, placement, middlewareData, refs, update } = useFloating(t10), arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, tooltipId = useId(), [isOpen, setIsOpen] = useDelayedState(!1), delayGroupContext = useTooltipDelayGroup(), t11;
|
|
2511
|
+
let { floatingStyles, placement, middlewareData, refs, update } = (0, _floating_ui_react_dom.useFloating)(t10), arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, tooltipId = (0, react.useId)(), [isOpen, setIsOpen] = useDelayedState(!1), delayGroupContext = useTooltipDelayGroup(), t11;
|
|
2482
2512
|
$[31] === delayGroupContext ? t11 = $[32] : (t11 = delayGroupContext || {}, $[31] = delayGroupContext, $[32] = t11);
|
|
2483
2513
|
let { setIsGroupActive, setOpenTooltipId } = t11, showTooltip = isOpen || delayGroupContext?.openTooltipId === tooltipId, isInsideGroup = delayGroupContext !== null, openDelayProp = typeof delay == "number" ? delay : delay?.open || 0, closeDelayProp = typeof delay == "number" ? delay : delay?.close || 0, openDelay = isInsideGroup ? delayGroupContext.openDelay : openDelayProp, closeDelay = isInsideGroup ? delayGroupContext.closeDelay : closeDelayProp, t12;
|
|
2484
2514
|
$[33] !== closeDelay || $[34] !== isInsideGroup || $[35] !== openDelay || $[36] !== setIsGroupActive || $[37] !== setIsOpen || $[38] !== setOpenTooltipId || $[39] !== tooltipId ? (t12 = (open, immediate) => {
|
|
@@ -2526,7 +2556,7 @@ const StyledTooltip = styled(Layer).withConfig({
|
|
|
2526
2556
|
disabled,
|
|
2527
2557
|
handleIsOpenChange,
|
|
2528
2558
|
showTooltip
|
|
2529
|
-
], $[64] = disabled, $[65] = handleIsOpenChange, $[66] = showTooltip, $[67] = t20, $[68] = t21) : (t20 = $[67], t21 = $[68]), useEffect(t20, t21);
|
|
2559
|
+
], $[64] = disabled, $[65] = handleIsOpenChange, $[66] = showTooltip, $[67] = t20, $[68] = t21) : (t20 = $[67], t21 = $[68]), (0, react.useEffect)(t20, t21);
|
|
2530
2560
|
let t22, t23;
|
|
2531
2561
|
$[69] !== content || $[70] !== handleIsOpenChange || $[71] !== showTooltip ? (t22 = () => {
|
|
2532
2562
|
!content && showTooltip && handleIsOpenChange(!1);
|
|
@@ -2534,7 +2564,7 @@ const StyledTooltip = styled(Layer).withConfig({
|
|
|
2534
2564
|
content,
|
|
2535
2565
|
handleIsOpenChange,
|
|
2536
2566
|
showTooltip
|
|
2537
|
-
], $[69] = content, $[70] = handleIsOpenChange, $[71] = showTooltip, $[72] = t22, $[73] = t23) : (t22 = $[72], t23 = $[73]), useEffect(t22, t23);
|
|
2567
|
+
], $[69] = content, $[70] = handleIsOpenChange, $[71] = showTooltip, $[72] = t22, $[73] = t23) : (t22 = $[72], t23 = $[73]), (0, react.useEffect)(t22, t23);
|
|
2538
2568
|
let t24, t25;
|
|
2539
2569
|
$[74] !== handleIsOpenChange || $[75] !== showTooltip ? (t24 = () => {
|
|
2540
2570
|
if (!showTooltip) return;
|
|
@@ -2544,14 +2574,14 @@ const StyledTooltip = styled(Layer).withConfig({
|
|
|
2544
2574
|
return window.addEventListener("keydown", handleWindowKeyDown), () => {
|
|
2545
2575
|
window.removeEventListener("keydown", handleWindowKeyDown);
|
|
2546
2576
|
};
|
|
2547
|
-
}, t25 = [handleIsOpenChange, showTooltip], $[74] = handleIsOpenChange, $[75] = showTooltip, $[76] = t24, $[77] = t25) : (t24 = $[76], t25 = $[77]), useEffect(t24, t25);
|
|
2577
|
+
}, t25 = [handleIsOpenChange, showTooltip], $[74] = handleIsOpenChange, $[75] = showTooltip, $[76] = t24, $[77] = t25) : (t24 = $[76], t25 = $[77]), (0, react.useEffect)(t24, t25);
|
|
2548
2578
|
let t26;
|
|
2549
2579
|
$[78] !== boundaryElement || $[79] !== portalElement?.offsetWidth ? (t26 = () => {
|
|
2550
2580
|
let availableWidths = [...boundaryElement ? [boundaryElement.offsetWidth] : [], portalElement?.offsetWidth || document.body.offsetWidth];
|
|
2551
2581
|
setTooltipMaxWidth(Math.min(...availableWidths) - 8);
|
|
2552
2582
|
}, $[78] = boundaryElement, $[79] = portalElement?.offsetWidth, $[80] = t26) : t26 = $[80];
|
|
2553
2583
|
let t27;
|
|
2554
|
-
$[81] !== boundaryElement || $[82] !== portalElement ? (t27 = [boundaryElement, portalElement], $[81] = boundaryElement, $[82] = portalElement, $[83] = t27) : t27 = $[83], useLayoutEffect(t26, t27);
|
|
2584
|
+
$[81] !== boundaryElement || $[82] !== portalElement ? (t27 = [boundaryElement, portalElement], $[81] = boundaryElement, $[82] = portalElement, $[83] = t27) : t27 = $[83], (0, react.useLayoutEffect)(t26, t27);
|
|
2555
2585
|
let t28;
|
|
2556
2586
|
$[84] === update ? t28 = $[85] : (t28 = (arrowEl) => {
|
|
2557
2587
|
arrowRef.current = arrowEl, update();
|
|
@@ -2567,7 +2597,7 @@ const StyledTooltip = styled(Layer).withConfig({
|
|
|
2567
2597
|
break bb0;
|
|
2568
2598
|
}
|
|
2569
2599
|
let t31;
|
|
2570
|
-
$[88] !== childProp || $[89] !== handleBlur || $[90] !== handleClick || $[91] !== handleContextMenu || $[92] !== handleFocus || $[93] !== handleMouseEnter || $[94] !== handleMouseLeave ? (t31 = cloneElement(childProp, {
|
|
2600
|
+
$[88] !== childProp || $[89] !== handleBlur || $[90] !== handleClick || $[91] !== handleContextMenu || $[92] !== handleFocus || $[93] !== handleMouseEnter || $[94] !== handleMouseLeave ? (t31 = (0, react.cloneElement)(childProp, {
|
|
2571
2601
|
onBlur: handleBlur,
|
|
2572
2602
|
onFocus: handleFocus,
|
|
2573
2603
|
onMouseEnter: handleMouseEnter,
|
|
@@ -2580,9 +2610,9 @@ const StyledTooltip = styled(Layer).withConfig({
|
|
|
2580
2610
|
let child = t30, t31;
|
|
2581
2611
|
$[96] === childProp ? t31 = $[97] : (t31 = childProp ? getElementRef(childProp) : null, $[96] = childProp, $[97] = t31);
|
|
2582
2612
|
let t32, t33;
|
|
2583
|
-
if ($[98] === referenceElement ? (t32 = $[99], t33 = $[100]) : (t32 = () => referenceElement, t33 = [referenceElement], $[98] = referenceElement, $[99] = t32, $[100] = t33), useImperativeHandle(t31, t32, t33), !child) {
|
|
2613
|
+
if ($[98] === referenceElement ? (t32 = $[99], t33 = $[100]) : (t32 = () => referenceElement, t33 = [referenceElement], $[98] = referenceElement, $[99] = t32, $[100] = t33), (0, react.useImperativeHandle)(t31, t32, t33), !child) {
|
|
2584
2614
|
let t34;
|
|
2585
|
-
return $[101] === Symbol.for("react.memo_cache_sentinel") ? (t34 = /* @__PURE__ */ jsx(Fragment
|
|
2615
|
+
return $[101] === Symbol.for("react.memo_cache_sentinel") ? (t34 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {}), $[101] = t34) : t34 = $[101], t34;
|
|
2586
2616
|
}
|
|
2587
2617
|
if (disabled) return child;
|
|
2588
2618
|
let t34 = tooltipMaxWidth > 0 ? `${tooltipMaxWidth}px` : void 0, t35;
|
|
@@ -2591,7 +2621,7 @@ const StyledTooltip = styled(Layer).withConfig({
|
|
|
2591
2621
|
maxWidth: t34
|
|
2592
2622
|
}, $[102] = floatingStyles, $[103] = t34, $[104] = t35) : t35 = $[104];
|
|
2593
2623
|
let t36;
|
|
2594
|
-
$[105] !== animate || $[106] !== arrowProp || $[107] !== arrowX || $[108] !== arrowY || $[109] !== content || $[110] !== originX || $[111] !== originY || $[112] !== padding || $[113] !== placement || $[114] !== radius || $[115] !== restProps || $[116] !== scheme || $[117] !== setArrow || $[118] !== setFloating || $[119] !== shadow ? (t36 = /* @__PURE__ */ jsx(TooltipCard, {
|
|
2624
|
+
$[105] !== animate || $[106] !== arrowProp || $[107] !== arrowX || $[108] !== arrowY || $[109] !== content || $[110] !== originX || $[111] !== originY || $[112] !== padding || $[113] !== placement || $[114] !== radius || $[115] !== restProps || $[116] !== scheme || $[117] !== setArrow || $[118] !== setFloating || $[119] !== shadow ? (t36 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipCard, {
|
|
2595
2625
|
...restProps,
|
|
2596
2626
|
animate,
|
|
2597
2627
|
arrow: arrowProp,
|
|
@@ -2609,7 +2639,7 @@ const StyledTooltip = styled(Layer).withConfig({
|
|
|
2609
2639
|
children: content
|
|
2610
2640
|
}), $[105] = animate, $[106] = arrowProp, $[107] = arrowX, $[108] = arrowY, $[109] = content, $[110] = originX, $[111] = originY, $[112] = padding, $[113] = placement, $[114] = radius, $[115] = restProps, $[116] = scheme, $[117] = setArrow, $[118] = setFloating, $[119] = shadow, $[120] = t36) : t36 = $[120];
|
|
2611
2641
|
let t37;
|
|
2612
|
-
$[121] !== restProps || $[122] !== setFloating || $[123] !== t35 || $[124] !== t36 || $[125] !== zOffset ? (t37 = /* @__PURE__ */ jsx(StyledTooltip, {
|
|
2642
|
+
$[121] !== restProps || $[122] !== setFloating || $[123] !== t35 || $[124] !== t36 || $[125] !== zOffset ? (t37 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTooltip, {
|
|
2613
2643
|
"data-ui": "Tooltip",
|
|
2614
2644
|
...restProps,
|
|
2615
2645
|
ref: setFloating,
|
|
@@ -2618,36 +2648,36 @@ const StyledTooltip = styled(Layer).withConfig({
|
|
|
2618
2648
|
children: t36
|
|
2619
2649
|
}), $[121] = restProps, $[122] = setFloating, $[123] = t35, $[124] = t36, $[125] = zOffset, $[126] = t37) : t37 = $[126];
|
|
2620
2650
|
let tooltip = t37, t38;
|
|
2621
|
-
$[127] !== portalProp || $[128] !== showTooltip || $[129] !== tooltip ? (t38 = showTooltip && (portalProp ? /* @__PURE__ */ jsx(Portal, {
|
|
2651
|
+
$[127] !== portalProp || $[128] !== showTooltip || $[129] !== tooltip ? (t38 = showTooltip && (portalProp ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Portal, {
|
|
2622
2652
|
__unstable_name: typeof portalProp == "string" ? portalProp : void 0,
|
|
2623
2653
|
children: tooltip
|
|
2624
2654
|
}) : tooltip), $[127] = portalProp, $[128] = showTooltip, $[129] = tooltip, $[130] = t38) : t38 = $[130];
|
|
2625
2655
|
let children = t38, t39;
|
|
2626
|
-
$[131] !== animate || $[132] !== children ? (t39 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[131] = animate, $[132] = children, $[133] = t39) : t39 = $[133];
|
|
2656
|
+
$[131] !== animate || $[132] !== children ? (t39 = animate ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.AnimatePresence, { children }) : children, $[131] = animate, $[132] = children, $[133] = t39) : t39 = $[133];
|
|
2627
2657
|
let t40;
|
|
2628
|
-
return $[134] !== child || $[135] !== t39 ? (t40 = /* @__PURE__ */ jsxs(Fragment
|
|
2658
|
+
return $[134] !== child || $[135] !== t39 ? (t40 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [t39, child] }), $[134] = child, $[135] = t39, $[136] = t40) : t40 = $[136], t40;
|
|
2629
2659
|
});
|
|
2630
2660
|
function useMiddleware(t0) {
|
|
2631
|
-
let $ = c(17), { animate, arrowProp, arrowRef, boundaryElement, fallbackPlacements, rootBoundary } = t0, ret;
|
|
2661
|
+
let $ = (0, react_compiler_runtime.c)(17), { animate, arrowProp, arrowRef, boundaryElement, fallbackPlacements, rootBoundary } = t0, ret;
|
|
2632
2662
|
if ($[0] !== animate || $[1] !== arrowProp || $[2] !== arrowRef || $[3] !== boundaryElement || $[4] !== fallbackPlacements || $[5] !== rootBoundary) {
|
|
2633
2663
|
ret = [];
|
|
2634
2664
|
let t1 = boundaryElement || void 0, t2;
|
|
2635
|
-
$[7] !== fallbackPlacements || $[8] !== rootBoundary || $[9] !== t1 ? (t2 = flip({
|
|
2665
|
+
$[7] !== fallbackPlacements || $[8] !== rootBoundary || $[9] !== t1 ? (t2 = (0, _floating_ui_react_dom.flip)({
|
|
2636
2666
|
boundary: t1,
|
|
2637
2667
|
fallbackPlacements,
|
|
2638
2668
|
padding: 4,
|
|
2639
2669
|
rootBoundary
|
|
2640
2670
|
}), $[7] = fallbackPlacements, $[8] = rootBoundary, $[9] = t1, $[10] = t2) : t2 = $[10], ret.push(t2);
|
|
2641
2671
|
let t3;
|
|
2642
|
-
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t3 = offset({ mainAxis: 4 }), $[11] = t3) : t3 = $[11], ret.push(t3);
|
|
2672
|
+
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t3 = (0, _floating_ui_react_dom.offset)({ mainAxis: 4 }), $[11] = t3) : t3 = $[11], ret.push(t3);
|
|
2643
2673
|
let t4 = boundaryElement || void 0, t5;
|
|
2644
|
-
if ($[12] !== rootBoundary || $[13] !== t4 ? (t5 = shift({
|
|
2674
|
+
if ($[12] !== rootBoundary || $[13] !== t4 ? (t5 = (0, _floating_ui_react_dom.shift)({
|
|
2645
2675
|
boundary: t4,
|
|
2646
2676
|
rootBoundary,
|
|
2647
2677
|
padding: 4
|
|
2648
2678
|
}), $[12] = rootBoundary, $[13] = t4, $[14] = t5) : t5 = $[14], ret.push(t5), arrowProp) {
|
|
2649
2679
|
let t6;
|
|
2650
|
-
$[15] === arrowRef ? t6 = $[16] : (t6 = arrow({
|
|
2680
|
+
$[15] === arrowRef ? t6 = $[16] : (t6 = (0, _floating_ui_react_dom.arrow)({
|
|
2651
2681
|
element: arrowRef,
|
|
2652
2682
|
padding: 4
|
|
2653
2683
|
}), $[15] = arrowRef, $[16] = t6), ret.push(t6);
|
|
@@ -2661,11 +2691,11 @@ function useMiddleware(t0) {
|
|
|
2661
2691
|
* @see https://19.react.dev/learn/separating-events-from-effects#reading-latest-props-and-state-with-effect-events:~:text=Never%20pass%20them%20to%20other%20components%20or%20Hooks
|
|
2662
2692
|
*/
|
|
2663
2693
|
function useCloseOnMouseLeave(t0) {
|
|
2664
|
-
let $ = c(10), { handleIsOpenChange, referenceElement, showTooltip, isInsideGroup } = t0, t1;
|
|
2694
|
+
let $ = (0, react_compiler_runtime.c)(10), { handleIsOpenChange, referenceElement, showTooltip, isInsideGroup } = t0, t1;
|
|
2665
2695
|
$[0] !== handleIsOpenChange || $[1] !== referenceElement ? (t1 = (target, teardown) => {
|
|
2666
2696
|
referenceElement && (referenceElement === target || target instanceof Node && referenceElement.contains(target) || (handleIsOpenChange(!1), teardown()));
|
|
2667
2697
|
}, $[0] = handleIsOpenChange, $[1] = referenceElement, $[2] = t1) : t1 = $[2];
|
|
2668
|
-
let onMouseMove = useEffectEvent(t1), t2;
|
|
2698
|
+
let onMouseMove = (0, use_effect_event.useEffectEvent)(t1), t2;
|
|
2669
2699
|
$[3] !== isInsideGroup || $[4] !== onMouseMove || $[5] !== showTooltip ? (t2 = () => {
|
|
2670
2700
|
if (!showTooltip || isInsideGroup) return;
|
|
2671
2701
|
let handleMouseMove = (event) => {
|
|
@@ -2674,28 +2704,28 @@ function useCloseOnMouseLeave(t0) {
|
|
|
2674
2704
|
return window.addEventListener("mousemove", handleMouseMove), () => window.removeEventListener("mousemove", handleMouseMove);
|
|
2675
2705
|
}, $[3] = isInsideGroup, $[4] = onMouseMove, $[5] = showTooltip, $[6] = t2) : t2 = $[6];
|
|
2676
2706
|
let t3;
|
|
2677
|
-
$[7] !== isInsideGroup || $[8] !== showTooltip ? (t3 = [isInsideGroup, showTooltip], $[7] = isInsideGroup, $[8] = showTooltip, $[9] = t3) : t3 = $[9], useEffect(t2, t3);
|
|
2707
|
+
$[7] !== isInsideGroup || $[8] !== showTooltip ? (t3 = [isInsideGroup, showTooltip], $[7] = isInsideGroup, $[8] = showTooltip, $[9] = t3) : t3 = $[9], (0, react.useEffect)(t2, t3);
|
|
2678
2708
|
}
|
|
2679
|
-
const StyledHotkeys = styled.kbd.withConfig({
|
|
2709
|
+
const StyledHotkeys = styled_components.styled.kbd.withConfig({
|
|
2680
2710
|
displayName: "StyledHotkeys",
|
|
2681
2711
|
componentId: "sc-07x5rd-0"
|
|
2682
|
-
})`font:inherit;padding:1px;&:not([hidden]){display:block;}`, Key = styled(KBD).withConfig({
|
|
2712
|
+
})`font:inherit;padding:1px;&:not([hidden]){display:block;}`, Key = (0, styled_components.styled)(KBD).withConfig({
|
|
2683
2713
|
displayName: "Key",
|
|
2684
2714
|
componentId: "sc-07x5rd-1"
|
|
2685
|
-
})`&:not([hidden]){display:block;}`, Hotkeys = forwardRef(function Hotkeys(props, ref) {
|
|
2686
|
-
let $ = c(27), fontSize, gap, keys, padding, radius, restProps, t0;
|
|
2715
|
+
})`&:not([hidden]){display:block;}`, Hotkeys = (0, react.forwardRef)(function Hotkeys(props, ref) {
|
|
2716
|
+
let $ = (0, react_compiler_runtime.c)(27), fontSize, gap, keys, padding, radius, restProps, t0;
|
|
2687
2717
|
$[0] === props ? (fontSize = $[1], gap = $[2], keys = $[3], padding = $[4], radius = $[5], restProps = $[6], t0 = $[7]) : ({fontSize, gap, keys, padding, radius, space: t0, ...restProps} = props, $[0] = props, $[1] = fontSize, $[2] = gap, $[3] = keys, $[4] = padding, $[5] = radius, $[6] = restProps, $[7] = t0);
|
|
2688
2718
|
let t1 = gap === void 0 ? t0 === void 0 ? .5 : t0 : gap, t2;
|
|
2689
2719
|
$[8] === t1 ? t2 = $[9] : (t2 = _getArrayProp(t1), $[8] = t1, $[9] = t2);
|
|
2690
2720
|
let spacing = t2;
|
|
2691
2721
|
if (!keys || keys.length === 0) {
|
|
2692
2722
|
let t3;
|
|
2693
|
-
return $[10] === Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ jsx(Fragment
|
|
2723
|
+
return $[10] === Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {}), $[10] = t3) : t3 = $[10], t3;
|
|
2694
2724
|
}
|
|
2695
2725
|
let t3;
|
|
2696
2726
|
if ($[11] !== fontSize || $[12] !== keys || $[13] !== padding || $[14] !== radius) {
|
|
2697
2727
|
let t4;
|
|
2698
|
-
$[16] !== fontSize || $[17] !== padding || $[18] !== radius ? (t4 = (key, i) => /* @__PURE__ */ jsx(Key, {
|
|
2728
|
+
$[16] !== fontSize || $[17] !== padding || $[18] !== radius ? (t4 = (key, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Key, {
|
|
2699
2729
|
fontSize,
|
|
2700
2730
|
padding,
|
|
2701
2731
|
radius,
|
|
@@ -2703,13 +2733,13 @@ const StyledHotkeys = styled.kbd.withConfig({
|
|
|
2703
2733
|
}, i), $[16] = fontSize, $[17] = padding, $[18] = radius, $[19] = t4) : t4 = $[19], t3 = keys.map(t4), $[11] = fontSize, $[12] = keys, $[13] = padding, $[14] = radius, $[15] = t3;
|
|
2704
2734
|
} else t3 = $[15];
|
|
2705
2735
|
let t4;
|
|
2706
|
-
$[20] !== spacing || $[21] !== t3 ? (t4 = /* @__PURE__ */ jsx(Inline, {
|
|
2736
|
+
$[20] !== spacing || $[21] !== t3 ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Inline, {
|
|
2707
2737
|
as: "span",
|
|
2708
2738
|
gap: spacing,
|
|
2709
2739
|
children: t3
|
|
2710
2740
|
}), $[20] = spacing, $[21] = t3, $[22] = t4) : t4 = $[22];
|
|
2711
2741
|
let t5;
|
|
2712
|
-
return $[23] !== ref || $[24] !== restProps || $[25] !== t4 ? (t5 = /* @__PURE__ */ jsx(StyledHotkeys, {
|
|
2742
|
+
return $[23] !== ref || $[24] !== restProps || $[25] !== t4 ? (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledHotkeys, {
|
|
2713
2743
|
"data-ui": "Hotkeys",
|
|
2714
2744
|
...restProps,
|
|
2715
2745
|
ref,
|
|
@@ -2763,10 +2793,15 @@ function _sortElements(rootElement, elements) {
|
|
|
2763
2793
|
* @internal
|
|
2764
2794
|
*/
|
|
2765
2795
|
function useMenuController(props) {
|
|
2766
|
-
let
|
|
2796
|
+
let $ = (0, react_compiler_runtime.c)(21), { onKeyDown, originElement, shouldFocus, rootElementRef } = props, t0;
|
|
2797
|
+
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = [], $[0] = t0) : t0 = $[0];
|
|
2798
|
+
let elementsRef = (0, react.useRef)(t0), [activeIndex, _setActiveIndex] = (0, react.useState)(-1), activeIndexRef = (0, react.useRef)(activeIndex), [activeElement, setActiveElement] = (0, react.useState)(null), t1;
|
|
2799
|
+
$[1] === Symbol.for("react.memo_cache_sentinel") ? (t1 = (nextActiveIndex) => {
|
|
2767
2800
|
_setActiveIndex(nextActiveIndex), activeIndexRef.current = nextActiveIndex, setActiveElement(elementsRef.current[nextActiveIndex] || null);
|
|
2768
|
-
}, []
|
|
2769
|
-
|
|
2801
|
+
}, $[1] = t1) : t1 = $[1];
|
|
2802
|
+
let setActiveIndex = t1, t2;
|
|
2803
|
+
$[2] === rootElementRef ? t2 = $[3] : (t2 = (element, selected) => {
|
|
2804
|
+
if (!element) return _temp$1;
|
|
2770
2805
|
if (elementsRef.current.indexOf(element) === -1 && (elementsRef.current.push(element), _sortElements(rootElementRef.current, elementsRef.current)), selected) {
|
|
2771
2806
|
let selectedIndex = elementsRef.current.indexOf(element);
|
|
2772
2807
|
setActiveIndex(selectedIndex);
|
|
@@ -2775,7 +2810,9 @@ function useMenuController(props) {
|
|
|
2775
2810
|
let idx = elementsRef.current.indexOf(element);
|
|
2776
2811
|
idx > -1 && elementsRef.current.splice(idx, 1);
|
|
2777
2812
|
};
|
|
2778
|
-
}, [rootElementRef,
|
|
2813
|
+
}, $[2] = rootElementRef, $[3] = t2);
|
|
2814
|
+
let mount = t2, t3;
|
|
2815
|
+
$[4] !== onKeyDown || $[5] !== originElement ? (t3 = (event) => {
|
|
2779
2816
|
if (event.key === "Tab") {
|
|
2780
2817
|
originElement && originElement.focus();
|
|
2781
2818
|
return;
|
|
@@ -2790,59 +2827,60 @@ function useMenuController(props) {
|
|
|
2790
2827
|
}
|
|
2791
2828
|
if (event.key === "End") {
|
|
2792
2829
|
event.preventDefault(), event.stopPropagation();
|
|
2793
|
-
let
|
|
2794
|
-
if (!
|
|
2795
|
-
let
|
|
2796
|
-
setActiveIndex(
|
|
2830
|
+
let focusableElements_0 = _getFocusableElements(elementsRef.current), el_0 = focusableElements_0[focusableElements_0.length - 1];
|
|
2831
|
+
if (!el_0) return;
|
|
2832
|
+
let currentIndex_0 = elementsRef.current.indexOf(el_0);
|
|
2833
|
+
setActiveIndex(currentIndex_0);
|
|
2797
2834
|
return;
|
|
2798
2835
|
}
|
|
2799
2836
|
if (event.key === "ArrowUp") {
|
|
2800
2837
|
event.preventDefault(), event.stopPropagation();
|
|
2801
|
-
let
|
|
2838
|
+
let focusableElements_1 = _getFocusableElements(elementsRef.current), focusableLen = focusableElements_1.length;
|
|
2802
2839
|
if (focusableLen === 0) return;
|
|
2803
|
-
let focusedElement = elementsRef.current[activeIndexRef.current], focusedIndex =
|
|
2840
|
+
let focusedElement = elementsRef.current[activeIndexRef.current], focusedIndex = focusableElements_1.indexOf(focusedElement);
|
|
2804
2841
|
focusedIndex = (focusedIndex - 1 + focusableLen) % focusableLen;
|
|
2805
|
-
let
|
|
2806
|
-
setActiveIndex(
|
|
2842
|
+
let el_1 = focusableElements_1[focusedIndex], currentIndex_1 = elementsRef.current.indexOf(el_1);
|
|
2843
|
+
setActiveIndex(currentIndex_1);
|
|
2807
2844
|
return;
|
|
2808
2845
|
}
|
|
2809
2846
|
if (event.key === "ArrowDown") {
|
|
2810
2847
|
event.preventDefault(), event.stopPropagation();
|
|
2811
|
-
let
|
|
2812
|
-
if (
|
|
2813
|
-
let
|
|
2814
|
-
|
|
2815
|
-
let
|
|
2816
|
-
setActiveIndex(
|
|
2848
|
+
let focusableElements_2 = _getFocusableElements(elementsRef.current), focusableLen_0 = focusableElements_2.length;
|
|
2849
|
+
if (focusableLen_0 === 0) return;
|
|
2850
|
+
let focusedElement_0 = elementsRef.current[activeIndexRef.current], focusedIndex_0 = focusableElements_2.indexOf(focusedElement_0);
|
|
2851
|
+
focusedIndex_0 = (focusedIndex_0 + 1) % focusableLen_0;
|
|
2852
|
+
let el_2 = focusableElements_2[focusedIndex_0], currentIndex_2 = elementsRef.current.indexOf(el_2);
|
|
2853
|
+
setActiveIndex(currentIndex_2);
|
|
2817
2854
|
return;
|
|
2818
2855
|
}
|
|
2819
2856
|
onKeyDown && onKeyDown(event);
|
|
2820
|
-
}, [
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2857
|
+
}, $[4] = onKeyDown, $[5] = originElement, $[6] = t3) : t3 = $[6];
|
|
2858
|
+
let handleKeyDown = t3, t4;
|
|
2859
|
+
$[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = (event_0) => {
|
|
2860
|
+
let element_0 = event_0.currentTarget, currentIndex_3 = elementsRef.current.indexOf(element_0);
|
|
2861
|
+
setActiveIndex(currentIndex_3);
|
|
2862
|
+
}, $[7] = t4) : t4 = $[7];
|
|
2863
|
+
let handleItemMouseEnter = t4, t5;
|
|
2864
|
+
$[8] === rootElementRef ? t5 = $[9] : (t5 = () => {
|
|
2828
2865
|
setActiveIndex(-2), rootElementRef.current?.focus();
|
|
2829
|
-
}, [rootElementRef,
|
|
2830
|
-
|
|
2866
|
+
}, $[8] = rootElementRef, $[9] = t5);
|
|
2867
|
+
let handleItemMouseLeave = t5, t6, t7;
|
|
2868
|
+
$[10] !== activeIndex || $[11] !== rootElementRef || $[12] !== shouldFocus ? (t6 = () => {
|
|
2831
2869
|
if (!rootElementRef.current) return;
|
|
2832
2870
|
let rafId = requestAnimationFrame(() => {
|
|
2833
2871
|
if (activeIndex === -1) {
|
|
2834
2872
|
if (shouldFocus === "first") {
|
|
2835
|
-
let
|
|
2836
|
-
if (
|
|
2837
|
-
let
|
|
2838
|
-
setActiveIndex(
|
|
2873
|
+
let el_3 = _getFocusableElements(elementsRef.current)[0];
|
|
2874
|
+
if (el_3) {
|
|
2875
|
+
let currentIndex_4 = elementsRef.current.indexOf(el_3);
|
|
2876
|
+
setActiveIndex(currentIndex_4);
|
|
2839
2877
|
}
|
|
2840
2878
|
}
|
|
2841
2879
|
if (shouldFocus === "last") {
|
|
2842
|
-
let
|
|
2843
|
-
if (
|
|
2844
|
-
let
|
|
2845
|
-
setActiveIndex(
|
|
2880
|
+
let focusableElements_4 = _getFocusableElements(elementsRef.current), el_4 = focusableElements_4[focusableElements_4.length - 1];
|
|
2881
|
+
if (el_4) {
|
|
2882
|
+
let currentIndex_5 = elementsRef.current.indexOf(el_4);
|
|
2883
|
+
setActiveIndex(currentIndex_5);
|
|
2846
2884
|
}
|
|
2847
2885
|
}
|
|
2848
2886
|
return;
|
|
@@ -2850,31 +2888,34 @@ function useMenuController(props) {
|
|
|
2850
2888
|
(elementsRef.current[activeIndex] || null)?.focus();
|
|
2851
2889
|
});
|
|
2852
2890
|
return () => cancelAnimationFrame(rafId);
|
|
2853
|
-
}, [
|
|
2891
|
+
}, t7 = [
|
|
2854
2892
|
activeIndex,
|
|
2855
2893
|
rootElementRef,
|
|
2856
2894
|
setActiveIndex,
|
|
2857
2895
|
shouldFocus
|
|
2858
|
-
]),
|
|
2896
|
+
], $[10] = activeIndex, $[11] = rootElementRef, $[12] = shouldFocus, $[13] = t6, $[14] = t7) : (t6 = $[13], t7 = $[14]), (0, react.useEffect)(t6, t7);
|
|
2897
|
+
let t8;
|
|
2898
|
+
return $[15] !== activeElement || $[16] !== activeIndex || $[17] !== handleItemMouseLeave || $[18] !== handleKeyDown || $[19] !== mount ? (t8 = {
|
|
2859
2899
|
activeElement,
|
|
2860
2900
|
activeIndex,
|
|
2861
2901
|
handleItemMouseEnter,
|
|
2862
2902
|
handleItemMouseLeave,
|
|
2863
2903
|
handleKeyDown,
|
|
2864
2904
|
mount
|
|
2865
|
-
};
|
|
2905
|
+
}, $[15] = activeElement, $[16] = activeIndex, $[17] = handleItemMouseLeave, $[18] = handleKeyDown, $[19] = mount, $[20] = t8) : t8 = $[20], t8;
|
|
2866
2906
|
}
|
|
2867
|
-
|
|
2907
|
+
function _temp$1() {}
|
|
2908
|
+
const StyledMenu = (0, styled_components.styled)(Box).withConfig({
|
|
2868
2909
|
displayName: "StyledMenu",
|
|
2869
2910
|
componentId: "sc-88w4l4-0"
|
|
2870
|
-
})`outline:none;overflow:auto;`, Menu = forwardRef(function Menu(props, forwardedRef) {
|
|
2871
|
-
let $ = c(50), _shouldFocus, children, gap, onClickOutside, onEscape, onItemClick, onItemSelect, onKeyDown, originElement, registerElement, restProps, t0, t1;
|
|
2911
|
+
})`outline:none;overflow:auto;`, Menu = (0, react.forwardRef)(function Menu(props, forwardedRef) {
|
|
2912
|
+
let $ = (0, react_compiler_runtime.c)(50), _shouldFocus, children, gap, onClickOutside, onEscape, onItemClick, onItemSelect, onKeyDown, originElement, registerElement, restProps, t0, t1;
|
|
2872
2913
|
if ($[0] !== props) {
|
|
2873
2914
|
let { children: t2, focusFirst, focusLast, onClickOutside: t3, onEscape: t4, onItemClick: t5, onItemSelect: t6, onKeyDown: t7, originElement: t8, padding: t9, registerElement: t10, shouldFocus: t11, gap: t12, space: t13, ...t14 } = props;
|
|
2874
2915
|
children = t2, onClickOutside = t3, onEscape = t4, onItemClick = t5, onItemSelect = t6, onKeyDown = t7, originElement = t8, t0 = t9, registerElement = t10, _shouldFocus = t11, gap = t12, t1 = t13, restProps = t14, $[0] = props, $[1] = _shouldFocus, $[2] = children, $[3] = gap, $[4] = onClickOutside, $[5] = onEscape, $[6] = onItemClick, $[7] = onItemSelect, $[8] = onKeyDown, $[9] = originElement, $[10] = registerElement, $[11] = restProps, $[12] = t0, $[13] = t1;
|
|
2875
2916
|
} else _shouldFocus = $[1], children = $[2], gap = $[3], onClickOutside = $[4], onEscape = $[5], onItemClick = $[6], onItemSelect = $[7], onKeyDown = $[8], originElement = $[9], registerElement = $[10], restProps = $[11], t0 = $[12], t1 = $[13];
|
|
2876
|
-
let padding = t0 === void 0 ? 1 : t0, spacing = gap === void 0 ? t1 === void 0 ? 1 : t1 : gap, shouldFocus = _shouldFocus ?? (props.focusFirst && "first" || props.focusLast && "last" || null), ref = useRef(null), t2;
|
|
2877
|
-
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[14] = t2) : t2 = $[14], useImperativeHandle(forwardedRef, t2);
|
|
2917
|
+
let padding = t0 === void 0 ? 1 : t0, spacing = gap === void 0 ? t1 === void 0 ? 1 : t1 : gap, shouldFocus = _shouldFocus ?? (props.focusFirst && "first" || props.focusLast && "last" || null), ref = (0, react.useRef)(null), t2;
|
|
2918
|
+
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[14] = t2) : t2 = $[14], (0, react.useImperativeHandle)(forwardedRef, t2);
|
|
2878
2919
|
let { isTopLayer } = useLayer(), t3;
|
|
2879
2920
|
$[15] !== onKeyDown || $[16] !== originElement || $[17] !== shouldFocus ? (t3 = {
|
|
2880
2921
|
onKeyDown,
|
|
@@ -2882,14 +2923,14 @@ const StyledMenu = styled(Box).withConfig({
|
|
|
2882
2923
|
shouldFocus,
|
|
2883
2924
|
rootElementRef: ref
|
|
2884
2925
|
}, $[15] = onKeyDown, $[16] = originElement, $[17] = shouldFocus, $[18] = t3) : t3 = $[18];
|
|
2885
|
-
let { activeElement, activeIndex, handleItemMouseEnter, handleItemMouseLeave, handleKeyDown, mount } = useMenuController(t3), unregisterElementRef = useRef(null), t4;
|
|
2926
|
+
let { activeElement, activeIndex, handleItemMouseEnter, handleItemMouseLeave, handleKeyDown, mount } = useMenuController(t3), unregisterElementRef = (0, react.useRef)(null), t4;
|
|
2886
2927
|
$[19] === registerElement ? t4 = $[20] : (t4 = (el) => {
|
|
2887
2928
|
unregisterElementRef.current &&= (unregisterElementRef.current(), null), ref.current = el, ref.current && registerElement && (unregisterElementRef.current = registerElement(ref.current));
|
|
2888
2929
|
}, $[19] = registerElement, $[20] = t4);
|
|
2889
2930
|
let handleRefChange = t4, t5, t6;
|
|
2890
2931
|
$[21] !== activeIndex || $[22] !== onItemSelect ? (t5 = () => {
|
|
2891
2932
|
onItemSelect && onItemSelect(activeIndex);
|
|
2892
|
-
}, t6 = [activeIndex, onItemSelect], $[21] = activeIndex, $[22] = onItemSelect, $[23] = t5, $[24] = t6) : (t5 = $[23], t6 = $[24]), useEffect(t5, t6);
|
|
2933
|
+
}, t6 = [activeIndex, onItemSelect], $[21] = activeIndex, $[22] = onItemSelect, $[23] = t5, $[24] = t6) : (t5 = $[23], t6 = $[24]), (0, react.useEffect)(t5, t6);
|
|
2893
2934
|
let t7;
|
|
2894
2935
|
$[25] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => [ref.current], $[25] = t7) : t7 = $[25], useClickOutsideEvent(isTopLayer && onClickOutside, t7);
|
|
2895
2936
|
let t8;
|
|
@@ -2909,12 +2950,12 @@ const StyledMenu = styled(Box).withConfig({
|
|
|
2909
2950
|
registerElement
|
|
2910
2951
|
}, $[29] = activeElement, $[30] = handleItemMouseEnter, $[31] = handleItemMouseLeave, $[32] = mount, $[33] = onClickOutside, $[34] = onEscape, $[35] = onItemClick, $[36] = registerElement, $[37] = t9) : t9 = $[37];
|
|
2911
2952
|
let value = t9, t10;
|
|
2912
|
-
$[38] !== children || $[39] !== spacing ? (t10 = /* @__PURE__ */ jsx(Stack, {
|
|
2953
|
+
$[38] !== children || $[39] !== spacing ? (t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Stack, {
|
|
2913
2954
|
gap: spacing,
|
|
2914
2955
|
children
|
|
2915
2956
|
}), $[38] = children, $[39] = spacing, $[40] = t10) : t10 = $[40];
|
|
2916
2957
|
let t11;
|
|
2917
|
-
$[41] !== handleKeyDown || $[42] !== handleRefChange || $[43] !== padding || $[44] !== restProps || $[45] !== t10 ? (t11 = /* @__PURE__ */ jsx(StyledMenu, {
|
|
2958
|
+
$[41] !== handleKeyDown || $[42] !== handleRefChange || $[43] !== padding || $[44] !== restProps || $[45] !== t10 ? (t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledMenu, {
|
|
2918
2959
|
"data-ui": "Menu",
|
|
2919
2960
|
...restProps,
|
|
2920
2961
|
onKeyDown: handleKeyDown,
|
|
@@ -2925,30 +2966,30 @@ const StyledMenu = styled(Box).withConfig({
|
|
|
2925
2966
|
children: t10
|
|
2926
2967
|
}), $[41] = handleKeyDown, $[42] = handleRefChange, $[43] = padding, $[44] = restProps, $[45] = t10, $[46] = t11) : t11 = $[46];
|
|
2927
2968
|
let t12;
|
|
2928
|
-
return $[47] !== t11 || $[48] !== value ? (t12 = /* @__PURE__ */ jsx(MenuContext.Provider, {
|
|
2969
|
+
return $[47] !== t11 || $[48] !== value ? (t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuContext.Provider, {
|
|
2929
2970
|
value,
|
|
2930
2971
|
children: t11
|
|
2931
2972
|
}), $[47] = t11, $[48] = value, $[49] = t12) : t12 = $[49], t12;
|
|
2932
|
-
}), MenuDivider = styled.hr.withConfig({
|
|
2973
|
+
}), MenuDivider = styled_components.styled.hr.withConfig({
|
|
2933
2974
|
displayName: "MenuDivider",
|
|
2934
|
-
componentId: "sc-
|
|
2975
|
+
componentId: "sc-8tblqx-0"
|
|
2935
2976
|
})`height:1px;border:0;background:var(--card-hairline-soft-color);margin:0;`;
|
|
2936
2977
|
function selectableBaseStyle() {
|
|
2937
|
-
return css`background-color:inherit;color:inherit;&[data-as='button']{-webkit-font-smoothing:inherit;appearance:none;outline:none;font:inherit;text-align:inherit;border:0;width:-moz-available;width:-webkit-fill-available;width:stretch;}&[data-as='a']{text-decoration:none;}`;
|
|
2978
|
+
return styled_components.css`background-color:inherit;color:inherit;&[data-as='button']{-webkit-font-smoothing:inherit;appearance:none;outline:none;font:inherit;text-align:inherit;border:0;width:-moz-available;width:-webkit-fill-available;width:stretch;}&[data-as='a']{text-decoration:none;}`;
|
|
2938
2979
|
}
|
|
2939
2980
|
function selectableColorStyle(props) {
|
|
2940
|
-
let { $tone } = props, { color, style } =
|
|
2941
|
-
return css`${_cardColorStyle(color, tone.enabled)} background-color:var(--card-bg-color);color:var(--card-fg-color);outline:none;&[data-as='button']{&:disabled{${_cardColorStyle(color, tone.disabled)}}&:not(:disabled){&[aria-pressed='true']{${_cardColorStyle(color, tone.pressed)}}&[data-selected],&[aria-selected='true'] > &{${_cardColorStyle(color, tone.selected)}}@media (hover:hover){&:not([data-selected]){&[data-hovered],&:hover{${_cardColorStyle(color, tone.hovered)}}&:active{${_cardColorStyle(color, tone.pressed)}}}}}}&[data-as='a']{&[data-disabled]{${_cardColorStyle(color, tone.disabled)}}&:not([data-disabled]){&[data-pressed]{${_cardColorStyle(color, tone.pressed)}}&[data-selected]{${_cardColorStyle(color, tone.selected)}}@media (hover:hover){&:not([data-selected]){&[data-hovered],&:hover{${_cardColorStyle(color, tone.hovered)}}&:active{${_cardColorStyle(color, tone.pressed)}}}}}}${style?.card?.root}`;
|
|
2981
|
+
let { $tone } = props, { color, style } = require_theme.X(props.theme), tone = color.selectable[$tone];
|
|
2982
|
+
return styled_components.css`${_cardColorStyle(color, tone.enabled)} background-color:var(--card-bg-color);color:var(--card-fg-color);outline:none;&[data-as='button']{&:disabled{${_cardColorStyle(color, tone.disabled)}}&:not(:disabled){&[aria-pressed='true']{${_cardColorStyle(color, tone.pressed)}}&[data-selected],&[aria-selected='true'] > &{${_cardColorStyle(color, tone.selected)}}@media (hover:hover){&:not([data-selected]){&[data-hovered],&:hover{${_cardColorStyle(color, tone.hovered)}}&:active{${_cardColorStyle(color, tone.pressed)}}}}}}&[data-as='a']{&[data-disabled]{${_cardColorStyle(color, tone.disabled)}}&:not([data-disabled]){&[data-pressed]{${_cardColorStyle(color, tone.pressed)}}&[data-selected]{${_cardColorStyle(color, tone.selected)}}@media (hover:hover){&:not([data-selected]){&[data-hovered],&:hover{${_cardColorStyle(color, tone.hovered)}}&:active{${_cardColorStyle(color, tone.pressed)}}}}}}${style?.card?.root}`;
|
|
2942
2983
|
}
|
|
2943
2984
|
/**
|
|
2944
2985
|
* @internal
|
|
2945
2986
|
*/
|
|
2946
|
-
const Selectable = /* @__PURE__ */ styled(Box).withConfig({
|
|
2987
|
+
const Selectable = /* @__PURE__ */ (0, styled_components.styled)(Box).withConfig({
|
|
2947
2988
|
displayName: "Selectable",
|
|
2948
2989
|
componentId: "sc-sk8nre-0"
|
|
2949
2990
|
})(responsiveRadiusStyle, selectableBaseStyle, selectableColorStyle);
|
|
2950
2991
|
function useMenu() {
|
|
2951
|
-
let value = useContext(MenuContext);
|
|
2992
|
+
let value = (0, react.useContext)(MenuContext);
|
|
2952
2993
|
if (!value) throw Error("useMenu(): missing context value");
|
|
2953
2994
|
if (!isRecord(value) || value.version !== 2) throw Error("useMenu(): the context value is not compatible");
|
|
2954
2995
|
return value;
|
|
@@ -2957,9 +2998,9 @@ function useMenu() {
|
|
|
2957
2998
|
* @public
|
|
2958
2999
|
*/
|
|
2959
3000
|
const MenuGroup = function MenuGroup(props) {
|
|
2960
|
-
let $ = c(82), IconComponent, children, gap, menuProps, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
|
|
3001
|
+
let $ = (0, react_compiler_runtime.c)(82), IconComponent, children, gap, menuProps, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
|
|
2961
3002
|
$[0] === props ? (IconComponent = $[1], children = $[2], gap = $[3], menuProps = $[4], onClick = $[5], popover = $[6], restProps = $[7], t0 = $[8], t1 = $[9], t2 = $[10], t3 = $[11], t4 = $[12], t5 = $[13], text = $[14]) : ({as: t0, children, fontSize: t1, icon: IconComponent, menu: menuProps, onClick, padding: t2, popover, radius: t3, gap, space: t4, text, tone: t5, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = children, $[3] = gap, $[4] = menuProps, $[5] = onClick, $[6] = popover, $[7] = restProps, $[8] = t0, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = t4, $[13] = t5, $[14] = text);
|
|
2962
|
-
let as = t0 === void 0 ? "button" : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, deprecated_space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, spacing = gap === void 0 ? deprecated_space : gap, menu = useMenu(), { scheme } = useRootTheme(), { activeElement, mount, onClickOutside, onEscape, onItemClick, onItemMouseEnter: _onItemMouseEnter, registerElement } = menu, onItemMouseEnter = _onItemMouseEnter ?? menu.onItemMouseEnter, [rootElement, setRootElement] = useState(null), [open, setOpen] = useState(!1), [shouldFocus, setShouldFocus] = useState(null), active = !!activeElement && activeElement === rootElement, [withinMenu, setWithinMenu] = useState(!1), t6;
|
|
3003
|
+
let as = t0 === void 0 ? "button" : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, deprecated_space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, spacing = gap === void 0 ? deprecated_space : gap, menu = useMenu(), { scheme } = useRootTheme(), { activeElement, mount, onClickOutside, onEscape, onItemClick, onItemMouseEnter: _onItemMouseEnter, registerElement } = menu, onItemMouseEnter = _onItemMouseEnter ?? menu.onItemMouseEnter, [rootElement, setRootElement] = (0, react.useState)(null), [open, setOpen] = (0, react.useState)(!1), [shouldFocus, setShouldFocus] = (0, react.useState)(null), active = !!activeElement && activeElement === rootElement, [withinMenu, setWithinMenu] = (0, react.useState)(!1), t6;
|
|
2963
3004
|
$[15] === onItemMouseEnter ? t6 = $[16] : (t6 = (event) => {
|
|
2964
3005
|
setWithinMenu(!1), onItemMouseEnter(event), setOpen(!0);
|
|
2965
3006
|
}, $[15] = onItemMouseEnter, $[16] = t6);
|
|
@@ -2980,23 +3021,23 @@ const MenuGroup = function MenuGroup(props) {
|
|
|
2980
3021
|
let handleChildItemClick = t9, t10;
|
|
2981
3022
|
$[23] === Symbol.for("react.memo_cache_sentinel") ? (t10 = () => setWithinMenu(!0), $[23] = t10) : t10 = $[23];
|
|
2982
3023
|
let handleMenuMouseEnter = t10, t11, t12;
|
|
2983
|
-
$[24] !== mount || $[25] !== rootElement ? (t11 = () => mount(rootElement), t12 = [mount, rootElement], $[24] = mount, $[25] = rootElement, $[26] = t11, $[27] = t12) : (t11 = $[26], t12 = $[27]), useEffect(t11, t12);
|
|
3024
|
+
$[24] !== mount || $[25] !== rootElement ? (t11 = () => mount(rootElement), t12 = [mount, rootElement], $[24] = mount, $[25] = rootElement, $[26] = t11, $[27] = t12) : (t11 = $[26], t12 = $[27]), (0, react.useEffect)(t11, t12);
|
|
2984
3025
|
let t13, t14;
|
|
2985
3026
|
$[28] === active ? (t13 = $[29], t14 = $[30]) : (t13 = () => {
|
|
2986
3027
|
active || setOpen(!1);
|
|
2987
|
-
}, t14 = [active], $[28] = active, $[29] = t13, $[30] = t14), useEffect(t13, t14);
|
|
3028
|
+
}, t14 = [active], $[28] = active, $[29] = t13, $[30] = t14), (0, react.useEffect)(t13, t14);
|
|
2988
3029
|
let t15, t16;
|
|
2989
3030
|
$[31] === open ? (t15 = $[32], t16 = $[33]) : (t15 = () => {
|
|
2990
3031
|
open || setWithinMenu(!1);
|
|
2991
|
-
}, t16 = [open], $[31] = open, $[32] = t15, $[33] = t16), useEffect(t15, t16);
|
|
3032
|
+
}, t16 = [open], $[31] = open, $[32] = t15, $[33] = t16), (0, react.useEffect)(t15, t16);
|
|
2992
3033
|
let t17, t18;
|
|
2993
3034
|
$[34] === shouldFocus ? (t17 = $[35], t18 = $[36]) : (t17 = () => {
|
|
2994
3035
|
if (!shouldFocus) return;
|
|
2995
3036
|
let rafId = requestAnimationFrame(() => setShouldFocus(null));
|
|
2996
3037
|
return () => cancelAnimationFrame(rafId);
|
|
2997
|
-
}, t18 = [shouldFocus], $[34] = shouldFocus, $[35] = t17, $[36] = t18), useEffect(t17, t18);
|
|
3038
|
+
}, t18 = [shouldFocus], $[34] = shouldFocus, $[35] = t17, $[36] = t18), (0, react.useEffect)(t17, t18);
|
|
2998
3039
|
let t19;
|
|
2999
|
-
$[37] !== children || $[38] !== handleChildItemClick || $[39] !== handleMenuKeyDown || $[40] !== menuProps || $[41] !== onClickOutside || $[42] !== onEscape || $[43] !== registerElement || $[44] !== shouldFocus ? (t19 = /* @__PURE__ */ jsx(Menu, {
|
|
3040
|
+
$[37] !== children || $[38] !== handleChildItemClick || $[39] !== handleMenuKeyDown || $[40] !== menuProps || $[41] !== onClickOutside || $[42] !== onEscape || $[43] !== registerElement || $[44] !== shouldFocus ? (t19 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
|
|
3000
3041
|
...menuProps,
|
|
3001
3042
|
onClickOutside,
|
|
3002
3043
|
onEscape,
|
|
@@ -3018,14 +3059,14 @@ const MenuGroup = function MenuGroup(props) {
|
|
|
3018
3059
|
let handleKeyDown = t20, t21 = as === "button" ? withinMenu : void 0, t22 = as === "button" ? void 0 : withinMenu, t23 = !withinMenu && active ? "" : void 0, t24;
|
|
3019
3060
|
$[47] === radius ? t24 = $[48] : (t24 = _getArrayProp(radius), $[47] = radius, $[48] = t24);
|
|
3020
3061
|
let t25 = as === "button" ? "button" : void 0, t26;
|
|
3021
|
-
$[49] !== IconComponent || $[50] !== fontSize ? (t26 = IconComponent && /* @__PURE__ */ jsxs(Text, {
|
|
3062
|
+
$[49] !== IconComponent || $[50] !== fontSize ? (t26 = IconComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
|
|
3022
3063
|
size: fontSize,
|
|
3023
|
-
children: [isValidElement(IconComponent) && IconComponent, isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})]
|
|
3064
|
+
children: [(0, react.isValidElement)(IconComponent) && IconComponent, (0, react_is.isValidElementType)(IconComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconComponent, {})]
|
|
3024
3065
|
}), $[49] = IconComponent, $[50] = fontSize, $[51] = t26) : t26 = $[51];
|
|
3025
3066
|
let t27;
|
|
3026
|
-
$[52] !== fontSize || $[53] !== text ? (t27 = /* @__PURE__ */ jsx(Box, {
|
|
3067
|
+
$[52] !== fontSize || $[53] !== text ? (t27 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
|
|
3027
3068
|
flex: 1,
|
|
3028
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
3069
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, {
|
|
3029
3070
|
size: fontSize,
|
|
3030
3071
|
textOverflow: "ellipsis",
|
|
3031
3072
|
weight: "medium",
|
|
@@ -3033,14 +3074,14 @@ const MenuGroup = function MenuGroup(props) {
|
|
|
3033
3074
|
})
|
|
3034
3075
|
}), $[52] = fontSize, $[53] = text, $[54] = t27) : t27 = $[54];
|
|
3035
3076
|
let t28;
|
|
3036
|
-
$[55] === Symbol.for("react.memo_cache_sentinel") ? (t28 = /* @__PURE__ */ jsx(ChevronRightIcon, {}), $[55] = t28) : t28 = $[55];
|
|
3077
|
+
$[55] === Symbol.for("react.memo_cache_sentinel") ? (t28 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_sanity_icons_ChevronRight.ChevronRightIcon, {}), $[55] = t28) : t28 = $[55];
|
|
3037
3078
|
let t29;
|
|
3038
|
-
$[56] === fontSize ? t29 = $[57] : (t29 = /* @__PURE__ */ jsx(Text, {
|
|
3079
|
+
$[56] === fontSize ? t29 = $[57] : (t29 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, {
|
|
3039
3080
|
size: fontSize,
|
|
3040
3081
|
children: t28
|
|
3041
3082
|
}), $[56] = fontSize, $[57] = t29);
|
|
3042
3083
|
let t30;
|
|
3043
|
-
$[58] !== padding || $[59] !== spacing || $[60] !== t26 || $[61] !== t27 || $[62] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Flex, {
|
|
3084
|
+
$[58] !== padding || $[59] !== spacing || $[60] !== t26 || $[61] !== t27 || $[62] !== t29 ? (t30 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Flex, {
|
|
3044
3085
|
gap: spacing,
|
|
3045
3086
|
padding,
|
|
3046
3087
|
children: [
|
|
@@ -3050,7 +3091,7 @@ const MenuGroup = function MenuGroup(props) {
|
|
|
3050
3091
|
]
|
|
3051
3092
|
}), $[58] = padding, $[59] = spacing, $[60] = t26, $[61] = t27, $[62] = t29, $[63] = t30) : t30 = $[63];
|
|
3052
3093
|
let t31;
|
|
3053
|
-
$[64] !== as || $[65] !== handleClick || $[66] !== handleMouseEnter || $[67] !== restProps || $[68] !== scheme || $[69] !== t21 || $[70] !== t22 || $[71] !== t23 || $[72] !== t24 || $[73] !== t25 || $[74] !== t30 || $[75] !== tone ? (t31 = /* @__PURE__ */ jsx(Selectable, {
|
|
3094
|
+
$[64] !== as || $[65] !== handleClick || $[66] !== handleMouseEnter || $[67] !== restProps || $[68] !== scheme || $[69] !== t21 || $[70] !== t22 || $[71] !== t23 || $[72] !== t24 || $[73] !== t25 || $[74] !== t30 || $[75] !== tone ? (t31 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Selectable, {
|
|
3054
3095
|
"data-as": as,
|
|
3055
3096
|
"data-ui": "MenuGroup",
|
|
3056
3097
|
forwardedAs: as,
|
|
@@ -3070,24 +3111,24 @@ const MenuGroup = function MenuGroup(props) {
|
|
|
3070
3111
|
children: t30
|
|
3071
3112
|
}), $[64] = as, $[65] = handleClick, $[66] = handleMouseEnter, $[67] = restProps, $[68] = scheme, $[69] = t21, $[70] = t22, $[71] = t23, $[72] = t24, $[73] = t25, $[74] = t30, $[75] = tone, $[76] = t31) : t31 = $[76];
|
|
3072
3113
|
let t32;
|
|
3073
|
-
return $[77] !== childMenu || $[78] !== open || $[79] !== popover || $[80] !== t31 ? (t32 = /* @__PURE__ */ jsx(Popover, {
|
|
3114
|
+
return $[77] !== childMenu || $[78] !== open || $[79] !== popover || $[80] !== t31 ? (t32 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Popover, {
|
|
3074
3115
|
...popover,
|
|
3075
3116
|
content: childMenu,
|
|
3076
3117
|
"data-ui": "MenuGroup__popover",
|
|
3077
3118
|
open,
|
|
3078
3119
|
children: t31
|
|
3079
3120
|
}), $[77] = childMenu, $[78] = open, $[79] = popover, $[80] = t31, $[81] = t32) : t32 = $[81], t32;
|
|
3080
|
-
}, MenuItem = forwardRef(function MenuItem(props, forwardedRef) {
|
|
3081
|
-
let $ = c(76), IconComponent, IconRightComponent, children, disabled, gap, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
|
|
3121
|
+
}, MenuItem = (0, react.forwardRef)(function MenuItem(props, forwardedRef) {
|
|
3122
|
+
let $ = (0, react_compiler_runtime.c)(76), IconComponent, IconRightComponent, children, disabled, gap, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
|
|
3082
3123
|
$[0] === props ? (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], gap = $[5], hotkeys = $[6], onClick = $[7], paddingBottom = $[8], paddingLeft = $[9], paddingRight = $[10], paddingTop = $[11], paddingX = $[12], paddingY = $[13], pressed = $[14], restProps = $[15], selectedProp = $[16], t0 = $[17], t1 = $[18], t2 = $[19], t3 = $[20], t4 = $[21], t5 = $[22], text = $[23]) : ({as: t0, children, disabled, fontSize: t1, hotkeys, icon: IconComponent, iconRight: IconRightComponent, onClick, padding: t2, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, pressed, radius: t3, selected: selectedProp, gap, space: t4, text, tone: t5, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = gap, $[6] = hotkeys, $[7] = onClick, $[8] = paddingBottom, $[9] = paddingLeft, $[10] = paddingRight, $[11] = paddingTop, $[12] = paddingX, $[13] = paddingY, $[14] = pressed, $[15] = restProps, $[16] = selectedProp, $[17] = t0, $[18] = t1, $[19] = t2, $[20] = t3, $[21] = t4, $[22] = t5, $[23] = text);
|
|
3083
|
-
let as = t0 === void 0 ? "button" : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, deprecated_space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, spacing = gap === void 0 ? deprecated_space : gap, { scheme } = useRootTheme(), menu = useMenu(), { activeElement, mount, onItemClick, onItemMouseEnter: _onItemMouseEnter, onItemMouseLeave: _onItemMouseLeave } = menu, onItemMouseEnter = _onItemMouseEnter ?? menu.onItemMouseEnter, onItemMouseLeave = _onItemMouseLeave ?? menu.onItemMouseLeave, [rootElement, setRootElement] = useState(null), active = !!activeElement && activeElement === rootElement, ref = useRef(null), t6;
|
|
3084
|
-
$[24] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => ref.current, $[24] = t6) : t6 = $[24], useImperativeHandle(forwardedRef, t6);
|
|
3124
|
+
let as = t0 === void 0 ? "button" : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, deprecated_space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, spacing = gap === void 0 ? deprecated_space : gap, { scheme } = useRootTheme(), menu = useMenu(), { activeElement, mount, onItemClick, onItemMouseEnter: _onItemMouseEnter, onItemMouseLeave: _onItemMouseLeave } = menu, onItemMouseEnter = _onItemMouseEnter ?? menu.onItemMouseEnter, onItemMouseLeave = _onItemMouseLeave ?? menu.onItemMouseLeave, [rootElement, setRootElement] = (0, react.useState)(null), active = !!activeElement && activeElement === rootElement, ref = (0, react.useRef)(null), t6;
|
|
3125
|
+
$[24] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => ref.current, $[24] = t6) : t6 = $[24], (0, react.useImperativeHandle)(forwardedRef, t6);
|
|
3085
3126
|
let t7, t8;
|
|
3086
3127
|
$[25] !== mount || $[26] !== rootElement || $[27] !== selectedProp ? (t7 = () => mount(rootElement, selectedProp), t8 = [
|
|
3087
3128
|
mount,
|
|
3088
3129
|
rootElement,
|
|
3089
3130
|
selectedProp
|
|
3090
|
-
], $[25] = mount, $[26] = rootElement, $[27] = selectedProp, $[28] = t7, $[29] = t8) : (t7 = $[28], t8 = $[29]), useEffect(t7, t8);
|
|
3131
|
+
], $[25] = mount, $[26] = rootElement, $[27] = selectedProp, $[28] = t7, $[29] = t8) : (t7 = $[28], t8 = $[29]), (0, react.useEffect)(t7, t8);
|
|
3091
3132
|
let t9;
|
|
3092
3133
|
$[30] !== disabled || $[31] !== onClick || $[32] !== onItemClick ? (t9 = (event) => {
|
|
3093
3134
|
disabled || (onClick && onClick(event), onItemClick && onItemClick());
|
|
@@ -3113,26 +3154,26 @@ const MenuGroup = function MenuGroup(props) {
|
|
|
3113
3154
|
let t17;
|
|
3114
3155
|
$[47] === Symbol.for("react.memo_cache_sentinel") ? (t17 = _getArrayProp(0), $[47] = t17) : t17 = $[47];
|
|
3115
3156
|
let t18 = disabled ? "default" : tone, t19 = as === "button" ? "button" : void 0, t20;
|
|
3116
|
-
$[48] !== IconComponent || $[49] !== IconRightComponent || $[50] !== fontSize || $[51] !== hotkeys || $[52] !== hotkeysFontSize || $[53] !== paddingProps || $[54] !== spacing || $[55] !== text ? (t20 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, {
|
|
3157
|
+
$[48] !== IconComponent || $[49] !== IconRightComponent || $[50] !== fontSize || $[51] !== hotkeys || $[52] !== hotkeysFontSize || $[53] !== paddingProps || $[54] !== spacing || $[55] !== text ? (t20 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Flex, {
|
|
3117
3158
|
as: "span",
|
|
3118
3159
|
gap: spacing,
|
|
3119
3160
|
align: "center",
|
|
3120
3161
|
...paddingProps,
|
|
3121
3162
|
children: [
|
|
3122
|
-
IconComponent && /* @__PURE__ */ jsxs(Text, {
|
|
3163
|
+
IconComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
|
|
3123
3164
|
size: fontSize,
|
|
3124
|
-
children: [isValidElement(IconComponent) && IconComponent, isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})]
|
|
3165
|
+
children: [(0, react.isValidElement)(IconComponent) && IconComponent, (0, react_is.isValidElementType)(IconComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconComponent, {})]
|
|
3125
3166
|
}),
|
|
3126
|
-
text && /* @__PURE__ */ jsx(Box, {
|
|
3167
|
+
text && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
|
|
3127
3168
|
flex: 1,
|
|
3128
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
3169
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, {
|
|
3129
3170
|
size: fontSize,
|
|
3130
3171
|
textOverflow: "ellipsis",
|
|
3131
3172
|
weight: "medium",
|
|
3132
3173
|
children: text
|
|
3133
3174
|
})
|
|
3134
3175
|
}),
|
|
3135
|
-
hotkeys && /* @__PURE__ */ jsx(Hotkeys, {
|
|
3176
|
+
hotkeys && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hotkeys, {
|
|
3136
3177
|
fontSize: hotkeysFontSize,
|
|
3137
3178
|
keys: hotkeys,
|
|
3138
3179
|
style: {
|
|
@@ -3140,20 +3181,20 @@ const MenuGroup = function MenuGroup(props) {
|
|
|
3140
3181
|
marginBottom: -4
|
|
3141
3182
|
}
|
|
3142
3183
|
}),
|
|
3143
|
-
IconRightComponent && /* @__PURE__ */ jsxs(Text, {
|
|
3184
|
+
IconRightComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Text, {
|
|
3144
3185
|
size: fontSize,
|
|
3145
|
-
children: [isValidElement(IconRightComponent) && IconRightComponent, isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})]
|
|
3186
|
+
children: [(0, react.isValidElement)(IconRightComponent) && IconRightComponent, (0, react_is.isValidElementType)(IconRightComponent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconRightComponent, {})]
|
|
3146
3187
|
})
|
|
3147
3188
|
]
|
|
3148
3189
|
}), $[48] = IconComponent, $[49] = IconRightComponent, $[50] = fontSize, $[51] = hotkeys, $[52] = hotkeysFontSize, $[53] = paddingProps, $[54] = spacing, $[55] = text, $[56] = t20) : t20 = $[56];
|
|
3149
3190
|
let t21;
|
|
3150
|
-
$[57] !== children || $[58] !== paddingProps ? (t21 = children && /* @__PURE__ */ jsx(Box, {
|
|
3191
|
+
$[57] !== children || $[58] !== paddingProps ? (t21 = children && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, {
|
|
3151
3192
|
as: "span",
|
|
3152
3193
|
...paddingProps,
|
|
3153
3194
|
children
|
|
3154
3195
|
}), $[57] = children, $[58] = paddingProps, $[59] = t21) : t21 = $[59];
|
|
3155
3196
|
let t22;
|
|
3156
|
-
return $[60] !== as || $[61] !== disabled || $[62] !== handleClick || $[63] !== onItemMouseEnter || $[64] !== onItemMouseLeave || $[65] !== restProps || $[66] !== scheme || $[67] !== t13 || $[68] !== t14 || $[69] !== t15 || $[70] !== t16 || $[71] !== t18 || $[72] !== t19 || $[73] !== t20 || $[74] !== t21 ? (t22 = /* @__PURE__ */ jsxs(Selectable, {
|
|
3197
|
+
return $[60] !== as || $[61] !== disabled || $[62] !== handleClick || $[63] !== onItemMouseEnter || $[64] !== onItemMouseLeave || $[65] !== restProps || $[66] !== scheme || $[67] !== t13 || $[68] !== t14 || $[69] !== t15 || $[70] !== t16 || $[71] !== t18 || $[72] !== t19 || $[73] !== t20 || $[74] !== t21 ? (t22 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Selectable, {
|
|
3157
3198
|
"data-ui": "MenuItem",
|
|
3158
3199
|
role: "menuitem",
|
|
3159
3200
|
...restProps,
|
|
@@ -3178,14 +3219,14 @@ const MenuGroup = function MenuGroup(props) {
|
|
|
3178
3219
|
function _temp(s) {
|
|
3179
3220
|
return s - 1;
|
|
3180
3221
|
}
|
|
3181
|
-
const CustomButton = styled(Button).withConfig({
|
|
3222
|
+
const CustomButton = (0, styled_components.styled)(Button).withConfig({
|
|
3182
3223
|
displayName: "CustomButton",
|
|
3183
3224
|
componentId: "sc-rhibqq-0"
|
|
3184
|
-
})`max-width:100%;`, Tab = forwardRef(function Tab(props, forwardedRef) {
|
|
3185
|
-
let $ = c(30), focused, icon, id, label, onClick, onFocus, restProps, selected, t0, t1;
|
|
3225
|
+
})`max-width:100%;`, Tab = (0, react.forwardRef)(function Tab(props, forwardedRef) {
|
|
3226
|
+
let $ = (0, react_compiler_runtime.c)(30), focused, icon, id, label, onClick, onFocus, restProps, selected, t0, t1;
|
|
3186
3227
|
$[0] === props ? (focused = $[1], icon = $[2], id = $[3], label = $[4], onClick = $[5], onFocus = $[6], restProps = $[7], selected = $[8], t0 = $[9], t1 = $[10]) : ({icon, id, focused, fontSize: t0, label, onClick, onFocus, padding: t1, selected, ...restProps} = props, $[0] = props, $[1] = focused, $[2] = icon, $[3] = id, $[4] = label, $[5] = onClick, $[6] = onFocus, $[7] = restProps, $[8] = selected, $[9] = t0, $[10] = t1);
|
|
3187
|
-
let fontSize = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 2 : t1, ref = useRef(null), focusedRef = useRef(!1), t2;
|
|
3188
|
-
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[11] = t2) : t2 = $[11], useImperativeHandle(forwardedRef, t2);
|
|
3228
|
+
let fontSize = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 2 : t1, ref = (0, react.useRef)(null), focusedRef = (0, react.useRef)(!1), t2;
|
|
3229
|
+
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[11] = t2) : t2 = $[11], (0, react.useImperativeHandle)(forwardedRef, t2);
|
|
3189
3230
|
let t3;
|
|
3190
3231
|
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
|
|
3191
3232
|
focusedRef.current = !1;
|
|
@@ -3197,9 +3238,9 @@ const CustomButton = styled(Button).withConfig({
|
|
|
3197
3238
|
let handleFocus = t4, t5, t6;
|
|
3198
3239
|
$[15] === focused ? (t5 = $[16], t6 = $[17]) : (t5 = () => {
|
|
3199
3240
|
focused && !focusedRef.current && (ref.current && ref.current.focus(), focusedRef.current = !0);
|
|
3200
|
-
}, t6 = [focused], $[15] = focused, $[16] = t5, $[17] = t6), useEffect(t5, t6);
|
|
3241
|
+
}, t6 = [focused], $[15] = focused, $[16] = t5, $[17] = t6), (0, react.useEffect)(t5, t6);
|
|
3201
3242
|
let t7 = selected ? "true" : "false", t8 = selected ? 0 : -1, t9;
|
|
3202
|
-
return $[18] !== fontSize || $[19] !== handleFocus || $[20] !== icon || $[21] !== id || $[22] !== label || $[23] !== onClick || $[24] !== padding || $[25] !== restProps || $[26] !== selected || $[27] !== t7 || $[28] !== t8 ? (t9 = /* @__PURE__ */ jsx(CustomButton, {
|
|
3243
|
+
return $[18] !== fontSize || $[19] !== handleFocus || $[20] !== icon || $[21] !== id || $[22] !== label || $[23] !== onClick || $[24] !== padding || $[25] !== restProps || $[26] !== selected || $[27] !== t7 || $[28] !== t8 ? (t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CustomButton, {
|
|
3203
3244
|
"data-ui": "Tab",
|
|
3204
3245
|
...restProps,
|
|
3205
3246
|
"aria-selected": t7,
|
|
@@ -3218,16 +3259,16 @@ const CustomButton = styled(Button).withConfig({
|
|
|
3218
3259
|
text: label,
|
|
3219
3260
|
type: "button"
|
|
3220
3261
|
}), $[18] = fontSize, $[19] = handleFocus, $[20] = icon, $[21] = id, $[22] = label, $[23] = onClick, $[24] = padding, $[25] = restProps, $[26] = selected, $[27] = t7, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
|
|
3221
|
-
}), CustomInline = styled(Inline).withConfig({
|
|
3262
|
+
}), CustomInline = (0, styled_components.styled)(Inline).withConfig({
|
|
3222
3263
|
displayName: "CustomInline",
|
|
3223
3264
|
componentId: "sc-40huc5-0"
|
|
3224
|
-
})`& > div{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;}`, TabList = forwardRef(function TabList(props, ref) {
|
|
3225
|
-
let $ = c(15), childrenProp, restProps;
|
|
3265
|
+
})`& > div{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;}`, TabList = (0, react.forwardRef)(function TabList(props, ref) {
|
|
3266
|
+
let $ = (0, react_compiler_runtime.c)(15), childrenProp, restProps;
|
|
3226
3267
|
$[0] === props ? (childrenProp = $[1], restProps = $[2]) : ({children: childrenProp, ...restProps} = props, $[0] = props, $[1] = childrenProp, $[2] = restProps);
|
|
3227
|
-
let [focusedIndex, setFocusedIndex] = useState(-1), t0;
|
|
3268
|
+
let [focusedIndex, setFocusedIndex] = (0, react.useState)(-1), t0;
|
|
3228
3269
|
if ($[3] !== childrenProp || $[4] !== focusedIndex) {
|
|
3229
|
-
let children = Children.toArray(childrenProp).filter(isValidElement), t1;
|
|
3230
|
-
$[6] === focusedIndex ? t1 = $[7] : (t1 = (child, childIndex) => cloneElement(child, {
|
|
3270
|
+
let children = react.Children.toArray(childrenProp).filter(react.isValidElement), t1;
|
|
3271
|
+
$[6] === focusedIndex ? t1 = $[7] : (t1 = (child, childIndex) => (0, react.cloneElement)(child, {
|
|
3231
3272
|
focused: focusedIndex === childIndex,
|
|
3232
3273
|
key: childIndex,
|
|
3233
3274
|
onFocus: () => setFocusedIndex(childIndex)
|
|
@@ -3238,7 +3279,7 @@ const CustomButton = styled(Button).withConfig({
|
|
|
3238
3279
|
event.key === "ArrowLeft" && setFocusedIndex((prevIndex) => (prevIndex + numTabs - 1) % numTabs), event.key === "ArrowRight" && setFocusedIndex((prevIndex_0) => (prevIndex_0 + 1) % numTabs);
|
|
3239
3280
|
}, $[8] = numTabs, $[9] = t1);
|
|
3240
3281
|
let handleKeyDown = t1, t2;
|
|
3241
|
-
return $[10] !== handleKeyDown || $[11] !== ref || $[12] !== restProps || $[13] !== tabs ? (t2 = /* @__PURE__ */ jsx(CustomInline, {
|
|
3282
|
+
return $[10] !== handleKeyDown || $[11] !== ref || $[12] !== restProps || $[13] !== tabs ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CustomInline, {
|
|
3242
3283
|
"data-ui": "TabList",
|
|
3243
3284
|
...restProps,
|
|
3244
3285
|
onKeyDown: handleKeyDown,
|
|
@@ -3247,6 +3288,456 @@ const CustomButton = styled(Button).withConfig({
|
|
|
3247
3288
|
children: tabs
|
|
3248
3289
|
}), $[10] = handleKeyDown, $[11] = ref, $[12] = restProps, $[13] = tabs, $[14] = t2) : t2 = $[14], t2;
|
|
3249
3290
|
});
|
|
3250
|
-
|
|
3291
|
+
Object.defineProperty(exports, "$", {
|
|
3292
|
+
enumerable: !0,
|
|
3293
|
+
get: function() {
|
|
3294
|
+
return responsiveInputPaddingStyle;
|
|
3295
|
+
}
|
|
3296
|
+
}), Object.defineProperty(exports, "A", {
|
|
3297
|
+
enumerable: !0,
|
|
3298
|
+
get: function() {
|
|
3299
|
+
return useMediaIndex;
|
|
3300
|
+
}
|
|
3301
|
+
}), Object.defineProperty(exports, "At", {
|
|
3302
|
+
enumerable: !0,
|
|
3303
|
+
get: function() {
|
|
3304
|
+
return parseColor;
|
|
3305
|
+
}
|
|
3306
|
+
}), Object.defineProperty(exports, "B", {
|
|
3307
|
+
enumerable: !0,
|
|
3308
|
+
get: function() {
|
|
3309
|
+
return _cardColorStyle;
|
|
3310
|
+
}
|
|
3311
|
+
}), Object.defineProperty(exports, "C", {
|
|
3312
|
+
enumerable: !0,
|
|
3313
|
+
get: function() {
|
|
3314
|
+
return BoundaryElementContext;
|
|
3315
|
+
}
|
|
3316
|
+
}), Object.defineProperty(exports, "Ct", {
|
|
3317
|
+
enumerable: !0,
|
|
3318
|
+
get: function() {
|
|
3319
|
+
return isHTMLTextAreaElement;
|
|
3320
|
+
}
|
|
3321
|
+
}), Object.defineProperty(exports, "D", {
|
|
3322
|
+
enumerable: !0,
|
|
3323
|
+
get: function() {
|
|
3324
|
+
return Grid;
|
|
3325
|
+
}
|
|
3326
|
+
}), Object.defineProperty(exports, "Dt", {
|
|
3327
|
+
enumerable: !0,
|
|
3328
|
+
get: function() {
|
|
3329
|
+
return hexToRgb;
|
|
3330
|
+
}
|
|
3331
|
+
}), Object.defineProperty(exports, "E", {
|
|
3332
|
+
enumerable: !0,
|
|
3333
|
+
get: function() {
|
|
3334
|
+
return Inline;
|
|
3335
|
+
}
|
|
3336
|
+
}), Object.defineProperty(exports, "Et", {
|
|
3337
|
+
enumerable: !0,
|
|
3338
|
+
get: function() {
|
|
3339
|
+
return createColorTheme;
|
|
3340
|
+
}
|
|
3341
|
+
}), Object.defineProperty(exports, "F", {
|
|
3342
|
+
enumerable: !0,
|
|
3343
|
+
get: function() {
|
|
3344
|
+
return _ResizeObserver;
|
|
3345
|
+
}
|
|
3346
|
+
}), Object.defineProperty(exports, "Ft", {
|
|
3347
|
+
enumerable: !0,
|
|
3348
|
+
get: function() {
|
|
3349
|
+
return studioTheme;
|
|
3350
|
+
}
|
|
3351
|
+
}), Object.defineProperty(exports, "G", {
|
|
3352
|
+
enumerable: !0,
|
|
3353
|
+
get: function() {
|
|
3354
|
+
return SpanWithTextOverflow;
|
|
3355
|
+
}
|
|
3356
|
+
}), Object.defineProperty(exports, "H", {
|
|
3357
|
+
enumerable: !0,
|
|
3358
|
+
get: function() {
|
|
3359
|
+
return Flex;
|
|
3360
|
+
}
|
|
3361
|
+
}), Object.defineProperty(exports, "I", {
|
|
3362
|
+
enumerable: !0,
|
|
3363
|
+
get: function() {
|
|
3364
|
+
return useCustomValidity;
|
|
3365
|
+
}
|
|
3366
|
+
}), Object.defineProperty(exports, "It", {
|
|
3367
|
+
enumerable: !0,
|
|
3368
|
+
get: function() {
|
|
3369
|
+
return __toESM;
|
|
3370
|
+
}
|
|
3371
|
+
}), Object.defineProperty(exports, "J", {
|
|
3372
|
+
enumerable: !0,
|
|
3373
|
+
get: function() {
|
|
3374
|
+
return textInputBaseStyle;
|
|
3375
|
+
}
|
|
3376
|
+
}), Object.defineProperty(exports, "K", {
|
|
3377
|
+
enumerable: !0,
|
|
3378
|
+
get: function() {
|
|
3379
|
+
return responsiveRadiusStyle;
|
|
3380
|
+
}
|
|
3381
|
+
}), Object.defineProperty(exports, "L", {
|
|
3382
|
+
enumerable: !0,
|
|
3383
|
+
get: function() {
|
|
3384
|
+
return useClickOutsideEvent;
|
|
3385
|
+
}
|
|
3386
|
+
}), Object.defineProperty(exports, "M", {
|
|
3387
|
+
enumerable: !0,
|
|
3388
|
+
get: function() {
|
|
3389
|
+
return useGlobalKeyDown;
|
|
3390
|
+
}
|
|
3391
|
+
}), Object.defineProperty(exports, "Mt", {
|
|
3392
|
+
enumerable: !0,
|
|
3393
|
+
get: function() {
|
|
3394
|
+
return rgbToHsl;
|
|
3395
|
+
}
|
|
3396
|
+
}), Object.defineProperty(exports, "N", {
|
|
3397
|
+
enumerable: !0,
|
|
3398
|
+
get: function() {
|
|
3399
|
+
return useElementSize;
|
|
3400
|
+
}
|
|
3401
|
+
}), Object.defineProperty(exports, "Nt", {
|
|
3402
|
+
enumerable: !0,
|
|
3403
|
+
get: function() {
|
|
3404
|
+
return rgba;
|
|
3405
|
+
}
|
|
3406
|
+
}), Object.defineProperty(exports, "O", {
|
|
3407
|
+
enumerable: !0,
|
|
3408
|
+
get: function() {
|
|
3409
|
+
return usePrefersReducedMotion;
|
|
3410
|
+
}
|
|
3411
|
+
}), Object.defineProperty(exports, "Ot", {
|
|
3412
|
+
enumerable: !0,
|
|
3413
|
+
get: function() {
|
|
3414
|
+
return hslToRgb;
|
|
3415
|
+
}
|
|
3416
|
+
}), Object.defineProperty(exports, "P", {
|
|
3417
|
+
enumerable: !0,
|
|
3418
|
+
get: function() {
|
|
3419
|
+
return _elementSizeObserver;
|
|
3420
|
+
}
|
|
3421
|
+
}), Object.defineProperty(exports, "Pt", {
|
|
3422
|
+
enumerable: !0,
|
|
3423
|
+
get: function() {
|
|
3424
|
+
return screen;
|
|
3425
|
+
}
|
|
3426
|
+
}), Object.defineProperty(exports, "Q", {
|
|
3427
|
+
enumerable: !0,
|
|
3428
|
+
get: function() {
|
|
3429
|
+
return responsiveInputPaddingIconRightStyle;
|
|
3430
|
+
}
|
|
3431
|
+
}), Object.defineProperty(exports, "R", {
|
|
3432
|
+
enumerable: !0,
|
|
3433
|
+
get: function() {
|
|
3434
|
+
return Card;
|
|
3435
|
+
}
|
|
3436
|
+
}), Object.defineProperty(exports, "S", {
|
|
3437
|
+
enumerable: !0,
|
|
3438
|
+
get: function() {
|
|
3439
|
+
return isRecord;
|
|
3440
|
+
}
|
|
3441
|
+
}), Object.defineProperty(exports, "St", {
|
|
3442
|
+
enumerable: !0,
|
|
3443
|
+
get: function() {
|
|
3444
|
+
return isHTMLSelectElement;
|
|
3445
|
+
}
|
|
3446
|
+
}), Object.defineProperty(exports, "T", {
|
|
3447
|
+
enumerable: !0,
|
|
3448
|
+
get: function() {
|
|
3449
|
+
return KBD;
|
|
3450
|
+
}
|
|
3451
|
+
}), Object.defineProperty(exports, "Tt", {
|
|
3452
|
+
enumerable: !0,
|
|
3453
|
+
get: function() {
|
|
3454
|
+
return EMPTY_RECORD;
|
|
3455
|
+
}
|
|
3456
|
+
}), Object.defineProperty(exports, "U", {
|
|
3457
|
+
enumerable: !0,
|
|
3458
|
+
get: function() {
|
|
3459
|
+
return Text;
|
|
3460
|
+
}
|
|
3461
|
+
}), Object.defineProperty(exports, "V", {
|
|
3462
|
+
enumerable: !0,
|
|
3463
|
+
get: function() {
|
|
3464
|
+
return Spinner;
|
|
3465
|
+
}
|
|
3466
|
+
}), Object.defineProperty(exports, "W", {
|
|
3467
|
+
enumerable: !0,
|
|
3468
|
+
get: function() {
|
|
3469
|
+
return Box;
|
|
3470
|
+
}
|
|
3471
|
+
}), Object.defineProperty(exports, "X", {
|
|
3472
|
+
enumerable: !0,
|
|
3473
|
+
get: function() {
|
|
3474
|
+
return textInputRepresentationStyle;
|
|
3475
|
+
}
|
|
3476
|
+
}), Object.defineProperty(exports, "Y", {
|
|
3477
|
+
enumerable: !0,
|
|
3478
|
+
get: function() {
|
|
3479
|
+
return textInputFontSizeStyle;
|
|
3480
|
+
}
|
|
3481
|
+
}), Object.defineProperty(exports, "Z", {
|
|
3482
|
+
enumerable: !0,
|
|
3483
|
+
get: function() {
|
|
3484
|
+
return textInputRootStyle;
|
|
3485
|
+
}
|
|
3486
|
+
}), Object.defineProperty(exports, "_", {
|
|
3487
|
+
enumerable: !0,
|
|
3488
|
+
get: function() {
|
|
3489
|
+
return usePortal;
|
|
3490
|
+
}
|
|
3491
|
+
}), Object.defineProperty(exports, "_t", {
|
|
3492
|
+
enumerable: !0,
|
|
3493
|
+
get: function() {
|
|
3494
|
+
return containsOrEqualsElement;
|
|
3495
|
+
}
|
|
3496
|
+
}), Object.defineProperty(exports, "a", {
|
|
3497
|
+
enumerable: !0,
|
|
3498
|
+
get: function() {
|
|
3499
|
+
return MenuDivider;
|
|
3500
|
+
}
|
|
3501
|
+
}), Object.defineProperty(exports, "at", {
|
|
3502
|
+
enumerable: !0,
|
|
3503
|
+
get: function() {
|
|
3504
|
+
return useRootTheme;
|
|
3505
|
+
}
|
|
3506
|
+
}), Object.defineProperty(exports, "b", {
|
|
3507
|
+
enumerable: !0,
|
|
3508
|
+
get: function() {
|
|
3509
|
+
return LayerProvider;
|
|
3510
|
+
}
|
|
3511
|
+
}), Object.defineProperty(exports, "bt", {
|
|
3512
|
+
enumerable: !0,
|
|
3513
|
+
get: function() {
|
|
3514
|
+
return isHTMLElement;
|
|
3515
|
+
}
|
|
3516
|
+
}), Object.defineProperty(exports, "c", {
|
|
3517
|
+
enumerable: !0,
|
|
3518
|
+
get: function() {
|
|
3519
|
+
return Tooltip;
|
|
3520
|
+
}
|
|
3521
|
+
}), Object.defineProperty(exports, "ct", {
|
|
3522
|
+
enumerable: !0,
|
|
3523
|
+
get: function() {
|
|
3524
|
+
return responsiveTextFont;
|
|
3525
|
+
}
|
|
3526
|
+
}), Object.defineProperty(exports, "d", {
|
|
3527
|
+
enumerable: !0,
|
|
3528
|
+
get: function() {
|
|
3529
|
+
return useDelayedState;
|
|
3530
|
+
}
|
|
3531
|
+
}), Object.defineProperty(exports, "dt", {
|
|
3532
|
+
enumerable: !0,
|
|
3533
|
+
get: function() {
|
|
3534
|
+
return _fillCSSObject;
|
|
3535
|
+
}
|
|
3536
|
+
}), Object.defineProperty(exports, "et", {
|
|
3537
|
+
enumerable: !0,
|
|
3538
|
+
get: function() {
|
|
3539
|
+
return focusRingBorderStyle;
|
|
3540
|
+
}
|
|
3541
|
+
}), Object.defineProperty(exports, "f", {
|
|
3542
|
+
enumerable: !0,
|
|
3543
|
+
get: function() {
|
|
3544
|
+
return TextInput;
|
|
3545
|
+
}
|
|
3546
|
+
}), Object.defineProperty(exports, "ft", {
|
|
3547
|
+
enumerable: !0,
|
|
3548
|
+
get: function() {
|
|
3549
|
+
return _getArrayProp;
|
|
3550
|
+
}
|
|
3551
|
+
}), Object.defineProperty(exports, "g", {
|
|
3552
|
+
enumerable: !0,
|
|
3553
|
+
get: function() {
|
|
3554
|
+
return Portal;
|
|
3555
|
+
}
|
|
3556
|
+
}), Object.defineProperty(exports, "gt", {
|
|
3557
|
+
enumerable: !0,
|
|
3558
|
+
get: function() {
|
|
3559
|
+
return _isEnterToClickElement;
|
|
3560
|
+
}
|
|
3561
|
+
}), Object.defineProperty(exports, "h", {
|
|
3562
|
+
enumerable: !0,
|
|
3563
|
+
get: function() {
|
|
3564
|
+
return PortalProvider;
|
|
3565
|
+
}
|
|
3566
|
+
}), Object.defineProperty(exports, "ht", {
|
|
3567
|
+
enumerable: !0,
|
|
3568
|
+
get: function() {
|
|
3569
|
+
return rem;
|
|
3570
|
+
}
|
|
3571
|
+
}), Object.defineProperty(exports, "i", {
|
|
3572
|
+
enumerable: !0,
|
|
3573
|
+
get: function() {
|
|
3574
|
+
return MenuGroup;
|
|
3575
|
+
}
|
|
3576
|
+
}), Object.defineProperty(exports, "it", {
|
|
3577
|
+
enumerable: !0,
|
|
3578
|
+
get: function() {
|
|
3579
|
+
return ThemeColorProvider;
|
|
3580
|
+
}
|
|
3581
|
+
}), Object.defineProperty(exports, "j", {
|
|
3582
|
+
enumerable: !0,
|
|
3583
|
+
get: function() {
|
|
3584
|
+
return useMatchMedia;
|
|
3585
|
+
}
|
|
3586
|
+
}), Object.defineProperty(exports, "jt", {
|
|
3587
|
+
enumerable: !0,
|
|
3588
|
+
get: function() {
|
|
3589
|
+
return rgbToHex;
|
|
3590
|
+
}
|
|
3591
|
+
}), Object.defineProperty(exports, "k", {
|
|
3592
|
+
enumerable: !0,
|
|
3593
|
+
get: function() {
|
|
3594
|
+
return usePrefersDark;
|
|
3595
|
+
}
|
|
3596
|
+
}), Object.defineProperty(exports, "kt", {
|
|
3597
|
+
enumerable: !0,
|
|
3598
|
+
get: function() {
|
|
3599
|
+
return multiply;
|
|
3600
|
+
}
|
|
3601
|
+
}), Object.defineProperty(exports, "l", {
|
|
3602
|
+
enumerable: !0,
|
|
3603
|
+
get: function() {
|
|
3604
|
+
return useTooltipDelayGroup;
|
|
3605
|
+
}
|
|
3606
|
+
}), Object.defineProperty(exports, "lt", {
|
|
3607
|
+
enumerable: !0,
|
|
3608
|
+
get: function() {
|
|
3609
|
+
return responsiveTextAlignStyle;
|
|
3610
|
+
}
|
|
3611
|
+
}), Object.defineProperty(exports, "m", {
|
|
3612
|
+
enumerable: !0,
|
|
3613
|
+
get: function() {
|
|
3614
|
+
return Popover;
|
|
3615
|
+
}
|
|
3616
|
+
}), Object.defineProperty(exports, "mt", {
|
|
3617
|
+
enumerable: !0,
|
|
3618
|
+
get: function() {
|
|
3619
|
+
return _responsive;
|
|
3620
|
+
}
|
|
3621
|
+
}), Object.defineProperty(exports, "n", {
|
|
3622
|
+
enumerable: !0,
|
|
3623
|
+
get: function() {
|
|
3624
|
+
return Tab;
|
|
3625
|
+
}
|
|
3626
|
+
}), Object.defineProperty(exports, "nt", {
|
|
3627
|
+
enumerable: !0,
|
|
3628
|
+
get: function() {
|
|
3629
|
+
return useTheme;
|
|
3630
|
+
}
|
|
3631
|
+
}), Object.defineProperty(exports, "o", {
|
|
3632
|
+
enumerable: !0,
|
|
3633
|
+
get: function() {
|
|
3634
|
+
return Menu;
|
|
3635
|
+
}
|
|
3636
|
+
}), Object.defineProperty(exports, "ot", {
|
|
3637
|
+
enumerable: !0,
|
|
3638
|
+
get: function() {
|
|
3639
|
+
return ThemeProvider;
|
|
3640
|
+
}
|
|
3641
|
+
}), Object.defineProperty(exports, "p", {
|
|
3642
|
+
enumerable: !0,
|
|
3643
|
+
get: function() {
|
|
3644
|
+
return Stack;
|
|
3645
|
+
}
|
|
3646
|
+
}), Object.defineProperty(exports, "pt", {
|
|
3647
|
+
enumerable: !0,
|
|
3648
|
+
get: function() {
|
|
3649
|
+
return _getResponsiveSpace;
|
|
3650
|
+
}
|
|
3651
|
+
}), Object.defineProperty(exports, "q", {
|
|
3652
|
+
enumerable: !0,
|
|
3653
|
+
get: function() {
|
|
3654
|
+
return responsivePaddingStyle;
|
|
3655
|
+
}
|
|
3656
|
+
}), Object.defineProperty(exports, "r", {
|
|
3657
|
+
enumerable: !0,
|
|
3658
|
+
get: function() {
|
|
3659
|
+
return MenuItem;
|
|
3660
|
+
}
|
|
3661
|
+
}), Object.defineProperty(exports, "rt", {
|
|
3662
|
+
enumerable: !0,
|
|
3663
|
+
get: function() {
|
|
3664
|
+
return useTheme_v2;
|
|
3665
|
+
}
|
|
3666
|
+
}), Object.defineProperty(exports, "s", {
|
|
3667
|
+
enumerable: !0,
|
|
3668
|
+
get: function() {
|
|
3669
|
+
return Hotkeys;
|
|
3670
|
+
}
|
|
3671
|
+
}), Object.defineProperty(exports, "st", {
|
|
3672
|
+
enumerable: !0,
|
|
3673
|
+
get: function() {
|
|
3674
|
+
return createGlobalScopedContext;
|
|
3675
|
+
}
|
|
3676
|
+
}), Object.defineProperty(exports, "t", {
|
|
3677
|
+
enumerable: !0,
|
|
3678
|
+
get: function() {
|
|
3679
|
+
return TabList;
|
|
3680
|
+
}
|
|
3681
|
+
}), Object.defineProperty(exports, "tt", {
|
|
3682
|
+
enumerable: !0,
|
|
3683
|
+
get: function() {
|
|
3684
|
+
return focusRingStyle;
|
|
3685
|
+
}
|
|
3686
|
+
}), Object.defineProperty(exports, "u", {
|
|
3687
|
+
enumerable: !0,
|
|
3688
|
+
get: function() {
|
|
3689
|
+
return TooltipDelayGroupContext;
|
|
3690
|
+
}
|
|
3691
|
+
}), Object.defineProperty(exports, "ut", {
|
|
3692
|
+
enumerable: !0,
|
|
3693
|
+
get: function() {
|
|
3694
|
+
return responsiveFont;
|
|
3695
|
+
}
|
|
3696
|
+
}), Object.defineProperty(exports, "v", {
|
|
3697
|
+
enumerable: !0,
|
|
3698
|
+
get: function() {
|
|
3699
|
+
return Layer;
|
|
3700
|
+
}
|
|
3701
|
+
}), Object.defineProperty(exports, "vt", {
|
|
3702
|
+
enumerable: !0,
|
|
3703
|
+
get: function() {
|
|
3704
|
+
return isHTMLAnchorElement;
|
|
3705
|
+
}
|
|
3706
|
+
}), Object.defineProperty(exports, "w", {
|
|
3707
|
+
enumerable: !0,
|
|
3708
|
+
get: function() {
|
|
3709
|
+
return Arrow;
|
|
3710
|
+
}
|
|
3711
|
+
}), Object.defineProperty(exports, "wt", {
|
|
3712
|
+
enumerable: !0,
|
|
3713
|
+
get: function() {
|
|
3714
|
+
return EMPTY_ARRAY;
|
|
3715
|
+
}
|
|
3716
|
+
}), Object.defineProperty(exports, "x", {
|
|
3717
|
+
enumerable: !0,
|
|
3718
|
+
get: function() {
|
|
3719
|
+
return useBoundaryElement;
|
|
3720
|
+
}
|
|
3721
|
+
}), Object.defineProperty(exports, "xt", {
|
|
3722
|
+
enumerable: !0,
|
|
3723
|
+
get: function() {
|
|
3724
|
+
return isHTMLInputElement;
|
|
3725
|
+
}
|
|
3726
|
+
}), Object.defineProperty(exports, "y", {
|
|
3727
|
+
enumerable: !0,
|
|
3728
|
+
get: function() {
|
|
3729
|
+
return useLayer;
|
|
3730
|
+
}
|
|
3731
|
+
}), Object.defineProperty(exports, "yt", {
|
|
3732
|
+
enumerable: !0,
|
|
3733
|
+
get: function() {
|
|
3734
|
+
return isHTMLButtonElement;
|
|
3735
|
+
}
|
|
3736
|
+
}), Object.defineProperty(exports, "z", {
|
|
3737
|
+
enumerable: !0,
|
|
3738
|
+
get: function() {
|
|
3739
|
+
return Button;
|
|
3740
|
+
}
|
|
3741
|
+
});
|
|
3251
3742
|
|
|
3252
|
-
//# sourceMappingURL=tabList.
|
|
3743
|
+
//# sourceMappingURL=tabList.cjs.map
|