@sanity/ui 3.0.12-canary.1 → 3.0.12

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.
Files changed (44) hide show
  1. package/dist/_chunks-cjs/_visual-editing.js +656 -852
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-es/_visual-editing.mjs +658 -854
  4. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  5. package/dist/index.d.mts +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +290 -190
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +292 -192
  10. package/dist/index.mjs.map +1 -1
  11. package/package.json +40 -26
  12. package/src/core/components/autocomplete/autocomplete.tsx +2 -2
  13. package/src/core/components/breadcrumbs/breadcrumbs.tsx +2 -3
  14. package/src/core/components/dialog/dialog.tsx +14 -10
  15. package/src/core/components/hotkeys/hotkeys.tsx +2 -2
  16. package/src/core/components/menu/menuGroup.tsx +2 -2
  17. package/src/core/components/menu/menuItem.tsx +4 -4
  18. package/src/core/components/skeleton/skeleton.tsx +2 -2
  19. package/src/core/components/skeleton/textSkeleton.tsx +5 -5
  20. package/src/core/hooks/index.ts +1 -1
  21. package/src/core/hooks/useArrayProp.ts +17 -5
  22. package/src/core/primitives/avatar/avatar.tsx +16 -14
  23. package/src/core/primitives/avatar/avatarCounter.tsx +16 -14
  24. package/src/core/primitives/avatar/avatarStack.tsx +2 -2
  25. package/src/core/primitives/badge/badge.tsx +3 -3
  26. package/src/core/primitives/box/box.tsx +26 -26
  27. package/src/core/primitives/button/button.tsx +11 -11
  28. package/src/core/primitives/card/card.tsx +8 -8
  29. package/src/core/primitives/code/code.tsx +2 -2
  30. package/src/core/primitives/container/container.tsx +2 -2
  31. package/src/core/primitives/flex/flex.tsx +6 -6
  32. package/src/core/primitives/grid/grid.tsx +9 -9
  33. package/src/core/primitives/heading/heading.tsx +3 -3
  34. package/src/core/primitives/inline/inline.tsx +2 -2
  35. package/src/core/primitives/kbd/kbd.tsx +2 -2
  36. package/src/core/primitives/label/label.tsx +3 -3
  37. package/src/core/primitives/popover/popover.tsx +6 -7
  38. package/src/core/primitives/select/select.tsx +5 -6
  39. package/src/core/primitives/stack/stack.tsx +2 -2
  40. package/src/core/primitives/text/text.tsx +3 -3
  41. package/src/core/primitives/textArea/textArea.tsx +5 -6
  42. package/src/core/primitives/textInput/textInput.tsx +5 -6
  43. package/src/core/primitives/tooltip/tooltip.tsx +2 -3
  44. package/src/core/utils/layer/layerProvider.tsx +2 -3
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: !0 });
3
- var _visualEditing = require("./_chunks-cjs/_visual-editing.js"), jsxRuntime = require("react/jsx-runtime"), icons = require("@sanity/icons"), react = require("react"), styledComponents = require("styled-components"), reactCompilerRuntime = require("react-compiler-runtime"), theme = require("@sanity/ui/theme"), framerMotion = require("framer-motion");
3
+ var _visualEditing = require("./_chunks-cjs/_visual-editing.js"), jsxRuntime = require("react/jsx-runtime"), reactCompilerRuntime = require("react-compiler-runtime"), icons = require("@sanity/icons"), react = require("react"), styledComponents = require("styled-components"), theme = require("@sanity/ui/theme"), framerMotion = require("framer-motion");
4
4
  function _raf(fn) {
5
5
  const frameId = requestAnimationFrame(fn);
6
6
  return () => {
@@ -47,11 +47,6 @@ function focusLastDescendant(element) {
47
47
  }
48
48
  return !1;
49
49
  }
50
- function useArrayProp(val, defaultVal) {
51
- const $ = reactCompilerRuntime.c(3);
52
- let t0;
53
- return $[0] !== defaultVal || $[1] !== val ? (t0 = _visualEditing._getArrayProp(val, defaultVal), $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2], t0;
54
- }
55
50
  function _getElements(element, elementsArg) {
56
51
  const ret = [element];
57
52
  for (const el of elementsArg)
@@ -214,15 +209,17 @@ function autocompleteReducer(state, msg) {
214
209
  } : state;
215
210
  }
216
211
  const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "Home", "End", "PageUp", "PageDown", "Meta", "Tab", "CapsLock"], AUTOCOMPLETE_POPOVER_PLACEMENT = "bottom-start", AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS = ["bottom-start", "top-start"], DEFAULT_RENDER_VALUE = (value, option) => option ? option.value : value, DEFAULT_FILTER_OPTION = (query, option) => option.value.toLowerCase().indexOf(query.toLowerCase()) > -1, InnerAutocomplete = react.forwardRef(function(props, forwardedRef) {
217
- const {
218
- border = !0,
212
+ const $ = reactCompilerRuntime.c(179);
213
+ let customValidity, disabled, filterOptionProp, icon, id, loading, onBlur, onChange, onFocus, onQueryChange, onSelect, openButton, openOnFocus, optionsProp, prefix, readOnly, relatedElements, renderOptionProp, renderPopover, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, valueProp;
214
+ $[0] !== props ? ({
215
+ border: t0,
219
216
  customValidity,
220
217
  disabled,
221
218
  filterOption: filterOptionProp,
222
- fontSize = 2,
219
+ fontSize: t1,
223
220
  icon,
224
221
  id,
225
- listBox = _visualEditing.EMPTY_RECORD,
222
+ listBox: t2,
226
223
  loading,
227
224
  onBlur,
228
225
  onChange,
@@ -232,35 +229,60 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
232
229
  openButton,
233
230
  openOnFocus,
234
231
  options: optionsProp,
235
- padding: paddingProp = 3,
236
- popover = _visualEditing.EMPTY_RECORD,
232
+ padding: t3,
233
+ popover: t4,
237
234
  prefix,
238
- radius = 2,
235
+ radius: t5,
239
236
  readOnly,
240
237
  relatedElements,
241
238
  renderOption: renderOptionProp,
242
239
  renderPopover,
243
- renderValue = DEFAULT_RENDER_VALUE,
240
+ renderValue: t6,
244
241
  suffix,
245
242
  value: valueProp,
246
243
  ...restProps
247
- } = props, [state, dispatch] = react.useReducer(autocompleteReducer, {
248
- activeValue: valueProp || null,
244
+ } = props, $[0] = props, $[1] = customValidity, $[2] = disabled, $[3] = filterOptionProp, $[4] = icon, $[5] = id, $[6] = loading, $[7] = onBlur, $[8] = onChange, $[9] = onFocus, $[10] = onQueryChange, $[11] = onSelect, $[12] = openButton, $[13] = openOnFocus, $[14] = optionsProp, $[15] = prefix, $[16] = readOnly, $[17] = relatedElements, $[18] = renderOptionProp, $[19] = renderPopover, $[20] = restProps, $[21] = suffix, $[22] = t0, $[23] = t1, $[24] = t2, $[25] = t3, $[26] = t4, $[27] = t5, $[28] = t6, $[29] = valueProp) : (customValidity = $[1], disabled = $[2], filterOptionProp = $[3], icon = $[4], id = $[5], loading = $[6], onBlur = $[7], onChange = $[8], onFocus = $[9], onQueryChange = $[10], onSelect = $[11], openButton = $[12], openOnFocus = $[13], optionsProp = $[14], prefix = $[15], readOnly = $[16], relatedElements = $[17], renderOptionProp = $[18], renderPopover = $[19], restProps = $[20], suffix = $[21], t0 = $[22], t1 = $[23], t2 = $[24], t3 = $[25], t4 = $[26], t5 = $[27], t6 = $[28], valueProp = $[29]);
245
+ const border = t0 === void 0 ? !0 : t0, fontSize = t1 === void 0 ? 2 : t1, listBox = t2 === void 0 ? _visualEditing.EMPTY_RECORD : t2, paddingProp = t3 === void 0 ? 3 : t3, popover = t4 === void 0 ? _visualEditing.EMPTY_RECORD : t4, radius = t5 === void 0 ? 2 : t5, renderValue = t6 === void 0 ? DEFAULT_RENDER_VALUE : t6, t7 = valueProp || null, t8 = valueProp || null;
246
+ let t9;
247
+ $[30] !== t7 || $[31] !== t8 ? (t9 = {
248
+ activeValue: t7,
249
249
  focused: !1,
250
250
  listFocused: !1,
251
251
  query: null,
252
- value: valueProp || null
253
- }), {
252
+ value: t8
253
+ }, $[30] = t7, $[31] = t8, $[32] = t9) : t9 = $[32];
254
+ const [state, dispatch] = react.useReducer(autocompleteReducer, t9), {
254
255
  activeValue,
255
256
  focused,
256
257
  listFocused,
257
258
  query,
258
259
  value
259
- } = state, defaultRenderOption = react.useCallback(({
260
- value: value_0
261
- }) => /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Card, { "data-as": "button", padding: paddingProp, radius: 2, tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { size: fontSize, textOverflow: "ellipsis", children: value_0 }) }), [fontSize, paddingProp]), renderOption = typeof renderOptionProp == "function" ? renderOptionProp : defaultRenderOption, filterOption = typeof filterOptionProp == "function" ? filterOptionProp : DEFAULT_FILTER_OPTION, rootElementRef = react.useRef(null), resultsPopoverElementRef = react.useRef(null), inputElementRef = react.useRef(null), listBoxElementRef = react.useRef(null), [inputElement, setInputElement] = react.useState(null), listFocusedRef = react.useRef(!1), valueRef = react.useRef(value), valuePropRef = react.useRef(valueProp), popoverMouseWithinRef = react.useRef(!1);
262
- react.useImperativeHandle(inputElementRef, () => inputElement, [inputElement]), react.useImperativeHandle(forwardedRef, () => inputElement, [inputElement]);
263
- const listBoxId = `${id}-listbox`, options = Array.isArray(optionsProp) ? optionsProp : _visualEditing.EMPTY_ARRAY, padding = _visualEditing._getArrayProp(paddingProp), currentOption = react.useMemo(() => value !== null ? options.find((o) => o.value === value) : void 0, [options, value]), filteredOptions = react.useMemo(() => options.filter((option) => query ? filterOption(query, option) : !0), [filterOption, options, query]), filteredOptionsLen = filteredOptions.length, activeItemId = activeValue ? `${id}-option-${activeValue}` : void 0, expanded = query !== null && loading || focused && query !== null, handleRootBlur = react.useCallback((event) => {
260
+ } = state;
261
+ let t10;
262
+ $[33] !== fontSize || $[34] !== paddingProp ? (t10 = (t112) => {
263
+ const {
264
+ value: value_0
265
+ } = t112;
266
+ return /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Card, { "data-as": "button", padding: paddingProp, radius: 2, tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { size: fontSize, textOverflow: "ellipsis", children: value_0 }) });
267
+ }, $[33] = fontSize, $[34] = paddingProp, $[35] = t10) : t10 = $[35];
268
+ const renderOption = typeof renderOptionProp == "function" ? renderOptionProp : t10, filterOption = typeof filterOptionProp == "function" ? filterOptionProp : DEFAULT_FILTER_OPTION, rootElementRef = react.useRef(null), resultsPopoverElementRef = react.useRef(null), inputElementRef = react.useRef(null), listBoxElementRef = react.useRef(null), [inputElement, setInputElement] = react.useState(null), listFocusedRef = react.useRef(!1), valueRef = react.useRef(value), valuePropRef = react.useRef(valueProp), popoverMouseWithinRef = react.useRef(!1);
269
+ let t11, t12;
270
+ $[36] !== inputElement ? (t11 = () => inputElement, t12 = [inputElement], $[36] = inputElement, $[37] = t11, $[38] = t12) : (t11 = $[37], t12 = $[38]), react.useImperativeHandle(inputElementRef, t11, t12);
271
+ let t13, t14;
272
+ $[39] !== inputElement ? (t13 = () => inputElement, t14 = [inputElement], $[39] = inputElement, $[40] = t13, $[41] = t14) : (t13 = $[40], t14 = $[41]), react.useImperativeHandle(forwardedRef, t13, t14);
273
+ const listBoxId = `${id}-listbox`, options = Array.isArray(optionsProp) ? optionsProp : _visualEditing.EMPTY_ARRAY, padding = _visualEditing.useArrayProp(paddingProp);
274
+ let t15;
275
+ $[42] !== options || $[43] !== value ? (t15 = value !== null ? options.find((o) => o.value === value) : void 0, $[42] = options, $[43] = value, $[44] = t15) : t15 = $[44];
276
+ const currentOption = t15;
277
+ let t16;
278
+ if ($[45] !== filterOption || $[46] !== options || $[47] !== query) {
279
+ let t172;
280
+ $[49] !== filterOption || $[50] !== query ? (t172 = (option) => query ? filterOption(query, option) : !0, $[49] = filterOption, $[50] = query, $[51] = t172) : t172 = $[51], t16 = options.filter(t172), $[45] = filterOption, $[46] = options, $[47] = query, $[48] = t16;
281
+ } else
282
+ t16 = $[48];
283
+ const filteredOptions = t16, filteredOptionsLen = filteredOptions.length, activeItemId = activeValue ? `${id}-option-${activeValue}` : void 0, expanded = query !== null && loading || focused && query !== null;
284
+ let t17;
285
+ $[52] !== onBlur || $[53] !== onQueryChange || $[54] !== relatedElements ? (t17 = (event) => {
264
286
  setTimeout(() => {
265
287
  if (popoverMouseWithinRef.current)
266
288
  return;
@@ -277,20 +299,30 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
277
299
  type: "root/blur"
278
300
  }), popoverMouseWithinRef.current = !1, onQueryChange && onQueryChange(null), onBlur && onBlur(event));
279
301
  }, 0);
280
- }, [onBlur, onQueryChange, relatedElements]), handleRootFocus = react.useCallback((event_0) => {
302
+ }, $[52] = onBlur, $[53] = onQueryChange, $[54] = relatedElements, $[55] = t17) : t17 = $[55];
303
+ const handleRootBlur = t17;
304
+ let t18;
305
+ $[56] === Symbol.for("react.memo_cache_sentinel") ? (t18 = (event_0) => {
281
306
  const listBoxElement = listBoxElementRef.current, focusedElement = event_0.target instanceof HTMLElement ? event_0.target : null, listFocused_0 = listBoxElement?.contains(focusedElement) || !1;
282
307
  listFocused_0 !== listFocusedRef.current && (listFocusedRef.current = listFocused_0, dispatch({
283
308
  type: "root/setListFocused",
284
309
  listFocused: listFocused_0
285
310
  }));
286
- }, []), handleOptionSelect = react.useCallback((v) => {
311
+ }, $[56] = t18) : t18 = $[56];
312
+ const handleRootFocus = t18;
313
+ let t19;
314
+ $[57] !== onChange || $[58] !== onQueryChange || $[59] !== onSelect ? (t19 = (v) => {
287
315
  dispatch({
288
316
  type: "value/change",
289
317
  value: v
290
318
  }), popoverMouseWithinRef.current = !1, onSelect && onSelect(v), valueRef.current = v, onChange && onChange(v), onQueryChange && onQueryChange(null), inputElementRef.current?.focus();
291
- }, [onChange, onSelect, onQueryChange]), handleRootKeyDown = react.useCallback((event_1) => {
319
+ }, $[57] = onChange, $[58] = onQueryChange, $[59] = onSelect, $[60] = t19) : t19 = $[60];
320
+ const handleOptionSelect = t19;
321
+ let t20;
322
+ $[61] !== activeValue || $[62] !== filteredOptions || $[63] !== filteredOptionsLen || $[64] !== onQueryChange ? (t20 = (event_1) => {
292
323
  if (event_1.key === "ArrowDown") {
293
- if (event_1.preventDefault(), !filteredOptionsLen) return;
324
+ if (event_1.preventDefault(), !filteredOptionsLen)
325
+ return;
294
326
  const activeOption = filteredOptions.find((o_0) => o_0.value === activeValue), activeIndex = activeOption ? filteredOptions.indexOf(activeOption) : -1, nextActiveOption = filteredOptions[(activeIndex + 1) % filteredOptionsLen];
295
327
  nextActiveOption && dispatch({
296
328
  type: "root/setActiveValue",
@@ -300,7 +332,8 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
300
332
  return;
301
333
  }
302
334
  if (event_1.key === "ArrowUp") {
303
- if (event_1.preventDefault(), !filteredOptionsLen) return;
335
+ if (event_1.preventDefault(), !filteredOptionsLen)
336
+ return;
304
337
  const activeOption_0 = filteredOptions.find((o_1) => o_1.value === activeValue), activeIndex_0 = activeOption_0 ? filteredOptions.indexOf(activeOption_0) : -1, nextActiveOption_0 = filteredOptions[activeIndex_0 === -1 ? filteredOptionsLen - 1 : (filteredOptionsLen + activeIndex_0 - 1) % filteredOptionsLen];
305
338
  nextActiveOption_0 && dispatch({
306
339
  type: "root/setActiveValue",
@@ -320,35 +353,58 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
320
353
  inputElementRef.current?.focus();
321
354
  return;
322
355
  }
323
- }, [activeValue, filteredOptions, filteredOptionsLen, onQueryChange]), handleInputChange = react.useCallback((event_2) => {
356
+ }, $[61] = activeValue, $[62] = filteredOptions, $[63] = filteredOptionsLen, $[64] = onQueryChange, $[65] = t20) : t20 = $[65];
357
+ const handleRootKeyDown = t20;
358
+ let t21;
359
+ $[66] !== onQueryChange ? (t21 = (event_2) => {
324
360
  const nextQuery = event_2.currentTarget.value;
325
361
  dispatch({
326
362
  type: "input/change",
327
363
  query: nextQuery
328
364
  }), onQueryChange && onQueryChange(nextQuery);
329
- }, [onQueryChange]), dispatchOpen = react.useCallback(() => {
365
+ }, $[66] = onQueryChange, $[67] = t21) : t21 = $[67];
366
+ const handleInputChange = t21;
367
+ let t22;
368
+ $[68] !== currentOption || $[69] !== renderValue || $[70] !== value ? (t22 = () => {
330
369
  dispatch({
331
370
  type: "root/open",
332
371
  query: value ? renderValue(value, currentOption) : ""
333
372
  });
334
- }, [currentOption, renderValue, value]), handleInputFocus = react.useCallback((event_3) => {
373
+ }, $[68] = currentOption, $[69] = renderValue, $[70] = value, $[71] = t22) : t22 = $[71];
374
+ const dispatchOpen = t22;
375
+ let t23;
376
+ $[72] !== dispatchOpen || $[73] !== focused || $[74] !== onFocus || $[75] !== openOnFocus ? (t23 = (event_3) => {
335
377
  focused || (dispatch({
336
378
  type: "input/focus"
337
379
  }), onFocus && onFocus(event_3), openOnFocus && dispatchOpen());
338
- }, [focused, onFocus, openOnFocus, dispatchOpen]), handlePopoverMouseEnter = react.useCallback(() => {
380
+ }, $[72] = dispatchOpen, $[73] = focused, $[74] = onFocus, $[75] = openOnFocus, $[76] = t23) : t23 = $[76];
381
+ const handleInputFocus = t23;
382
+ let t24;
383
+ $[77] === Symbol.for("react.memo_cache_sentinel") ? (t24 = () => {
339
384
  popoverMouseWithinRef.current = !0;
340
- }, []), handlePopoverMouseLeave = react.useCallback(() => {
385
+ }, $[77] = t24) : t24 = $[77];
386
+ const handlePopoverMouseEnter = t24;
387
+ let t25;
388
+ $[78] === Symbol.for("react.memo_cache_sentinel") ? (t25 = () => {
341
389
  popoverMouseWithinRef.current = !1;
342
- }, []), handleClearButtonClick = react.useCallback(() => {
390
+ }, $[78] = t25) : t25 = $[78];
391
+ const handlePopoverMouseLeave = t25;
392
+ let t26;
393
+ $[79] !== onChange || $[80] !== onQueryChange ? (t26 = () => {
343
394
  dispatch({
344
395
  type: "root/clear"
345
396
  }), valueRef.current = "", onChange && onChange(""), onQueryChange && onQueryChange(null), inputElementRef.current?.focus();
346
- }, [onChange, onQueryChange]), handleClearButtonFocus = react.useCallback(() => {
397
+ }, $[79] = onChange, $[80] = onQueryChange, $[81] = t26) : t26 = $[81];
398
+ const handleClearButtonClick = t26;
399
+ let t27;
400
+ $[82] === Symbol.for("react.memo_cache_sentinel") ? (t27 = () => {
347
401
  dispatch({
348
402
  type: "input/focus"
349
403
  });
350
- }, []);
351
- react.useEffect(() => {
404
+ }, $[82] = t27) : t27 = $[82];
405
+ const handleClearButtonFocus = t27;
406
+ let t28, t29;
407
+ $[83] !== valueProp ? (t28 = () => {
352
408
  if (valueProp !== valuePropRef.current) {
353
409
  valuePropRef.current = valueProp, valueProp !== void 0 && (dispatch({
354
410
  type: "value/change",
@@ -360,14 +416,19 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
360
416
  type: "value/change",
361
417
  value: valueProp || null
362
418
  }));
363
- }, [valueProp]), react.useEffect(() => {
419
+ }, t29 = [valueProp], $[83] = valueProp, $[84] = t28, $[85] = t29) : (t28 = $[84], t29 = $[85]), react.useEffect(t28, t29);
420
+ let t30, t31;
421
+ $[86] !== focused ? (t30 = () => {
364
422
  !focused && valueRef.current && dispatch({
365
423
  type: "root/setActiveValue",
366
424
  value: valueRef.current
367
425
  });
368
- }, [focused]), react.useEffect(() => {
426
+ }, t31 = [focused], $[86] = focused, $[87] = t30, $[88] = t31) : (t30 = $[87], t31 = $[88]), react.useEffect(t30, t31);
427
+ let t32, t33;
428
+ $[89] !== activeValue || $[90] !== filteredOptions ? (t32 = () => {
369
429
  const listElement = listBoxElementRef.current;
370
- if (!listElement) return;
430
+ if (!listElement)
431
+ return;
371
432
  const activeOption_1 = filteredOptions.find((o_2) => o_2.value === activeValue);
372
433
  if (activeOption_1) {
373
434
  const activeIndex_1 = filteredOptions.indexOf(activeOption_1), activeItemElement = listElement.childNodes[activeIndex_1];
@@ -377,29 +438,101 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
377
438
  focusFirstDescendant(activeItemElement);
378
439
  }
379
440
  }
380
- }, [activeValue, filteredOptions]);
381
- const clearButton = react.useMemo(() => {
382
- if (!loading && !disabled && value)
383
- return {
441
+ }, t33 = [activeValue, filteredOptions], $[89] = activeValue, $[90] = filteredOptions, $[91] = t32, $[92] = t33) : (t32 = $[91], t33 = $[92]), react.useEffect(t32, t33);
442
+ let t34;
443
+ bb0: {
444
+ if (!loading && !disabled && value) {
445
+ let t352;
446
+ $[93] === Symbol.for("react.memo_cache_sentinel") ? (t352 = {
384
447
  "aria-label": "Clear",
385
448
  onFocus: handleClearButtonFocus
386
- };
387
- }, [disabled, handleClearButtonFocus, loading, value]), openButtonBoxPadding = react.useMemo(() => padding.map((v_0) => v_0 === 0 ? 0 : v_0 === 1 || v_0 === 2 ? 1 : v_0 - 2), [padding]), openButtonPadding = react.useMemo(() => padding.map((v_1) => Math.max(v_1 - 1, 0)), [padding]), openButtonProps = react.useMemo(() => typeof openButton == "object" ? openButton : _visualEditing.EMPTY_RECORD, [openButton]), handleOpenClick = react.useCallback((event_4) => {
449
+ }, $[93] = t352) : t352 = $[93], t34 = t352;
450
+ break bb0;
451
+ }
452
+ t34 = void 0;
453
+ }
454
+ const clearButton = t34;
455
+ let t35;
456
+ $[94] !== padding ? (t35 = padding.map(_temp$3), $[94] = padding, $[95] = t35) : t35 = $[95];
457
+ const openButtonBoxPadding = t35;
458
+ let t36;
459
+ $[96] !== padding ? (t36 = padding.map(_temp2$1), $[96] = padding, $[97] = t36) : t36 = $[97];
460
+ const openButtonPadding = t36, openButtonProps = typeof openButton == "object" ? openButton : _visualEditing.EMPTY_RECORD;
461
+ let t37;
462
+ $[98] !== dispatchOpen || $[99] !== openButtonProps ? (t37 = (event_4) => {
388
463
  dispatchOpen(), openButtonProps.onClick && openButtonProps.onClick(event_4), _raf(() => inputElementRef.current?.focus());
389
- }, [openButtonProps, dispatchOpen]), openButtonNode = react.useMemo(() => !disabled && !readOnly && openButton ? /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { "aria-hidden": expanded, padding: openButtonBoxPadding, children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Button, { "aria-label": "Open", disabled: expanded, fontSize, icon: icons.ChevronDownIcon, mode: "bleed", padding: openButtonPadding, ...openButtonProps, onClick: handleOpenClick }) }) : void 0, [disabled, expanded, fontSize, handleOpenClick, openButton, openButtonBoxPadding, openButtonPadding, openButtonProps, readOnly]), inputValue = react.useMemo(() => query === null ? value !== null ? renderValue(value, currentOption) : "" : query, [currentOption, query, renderValue, value]), handleListBoxKeyDown = react.useCallback((event_5) => {
464
+ }, $[98] = dispatchOpen, $[99] = openButtonProps, $[100] = t37) : t37 = $[100];
465
+ const handleOpenClick = t37;
466
+ let t38;
467
+ $[101] !== disabled || $[102] !== expanded || $[103] !== fontSize || $[104] !== handleOpenClick || $[105] !== openButton || $[106] !== openButtonBoxPadding || $[107] !== openButtonPadding || $[108] !== openButtonProps || $[109] !== readOnly ? (t38 = !disabled && !readOnly && openButton ? /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { "aria-hidden": expanded, padding: openButtonBoxPadding, children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Button, { "aria-label": "Open", disabled: expanded, fontSize, icon: icons.ChevronDownIcon, mode: "bleed", padding: openButtonPadding, ...openButtonProps, onClick: handleOpenClick }) }) : void 0, $[101] = disabled, $[102] = expanded, $[103] = fontSize, $[104] = handleOpenClick, $[105] = openButton, $[106] = openButtonBoxPadding, $[107] = openButtonPadding, $[108] = openButtonProps, $[109] = readOnly, $[110] = t38) : t38 = $[110];
468
+ const openButtonNode = t38;
469
+ let t39;
470
+ bb1: {
471
+ if (query === null) {
472
+ if (value !== null) {
473
+ let t402;
474
+ $[111] !== currentOption || $[112] !== renderValue || $[113] !== value ? (t402 = renderValue(value, currentOption), $[111] = currentOption, $[112] = renderValue, $[113] = value, $[114] = t402) : t402 = $[114], t39 = t402;
475
+ break bb1;
476
+ }
477
+ t39 = "";
478
+ break bb1;
479
+ }
480
+ t39 = query;
481
+ }
482
+ const inputValue = t39;
483
+ let t40;
484
+ $[115] !== listFocused ? (t40 = (event_5) => {
390
485
  event_5.key === "Tab" && listFocused && inputElementRef.current?.focus();
391
- }, [listFocused]), content2 = react.useMemo(() => filteredOptions.length === 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(ListBox, { "data-ui": "AutoComplete__results", onKeyDown: handleListBoxKeyDown, padding: 1, ...listBox, tabIndex: -1, children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Stack, { as: "ul", "aria-multiselectable": !1, "data-ui": "AutoComplete__resultsList", id: listBoxId, ref: listBoxElementRef, role: "listbox", space: 1, children: filteredOptions.map((option_0) => {
392
- const active = activeValue !== null ? option_0.value === activeValue : currentOption === option_0;
393
- return /* @__PURE__ */ jsxRuntime.jsx(AutocompleteOption, { id: `${id}-option-${option_0.value}`, onSelect: handleOptionSelect, selected: active, value: option_0.value, children: react.cloneElement(renderOption(option_0), {
394
- disabled: loading,
395
- selected: active,
396
- tabIndex: listFocused && active ? 0 : -1
397
- }) }, option_0.value);
398
- }) }) }), [activeValue, currentOption, filteredOptions, handleOptionSelect, handleListBoxKeyDown, id, listBox, listBoxId, listFocused, loading, renderOption]), results = react.useMemo(() => renderPopover ? /* @__PURE__ */ jsxRuntime.jsx(RenderPopover, { content: content2, hidden: !expanded, inputElement, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, resultsPopoverElementRef, renderPopover }) : filteredOptionsLen === 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Popover, { arrow: !1, constrainSize: !0, content: content2, fallbackPlacements: AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS, matchReferenceWidth: !0, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, open: expanded, overflow: "auto", placement: AUTOCOMPLETE_POPOVER_PLACEMENT, portal: !0, radius, ref: resultsPopoverElementRef, referenceElement: inputElement, ...popover }), [content2, expanded, filteredOptionsLen, handlePopoverMouseEnter, handlePopoverMouseLeave, inputElement, popover, radius, renderPopover]);
399
- return /* @__PURE__ */ jsxRuntime.jsxs(StyledAutocomplete, { "data-ui": "Autocomplete", onBlur: handleRootBlur, onFocus: handleRootFocus, onKeyDown: handleRootKeyDown, ref: rootElementRef, children: [
400
- /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.TextInput, { ...restProps, "aria-activedescendant": activeItemId, "aria-autocomplete": "list", "aria-expanded": expanded, "aria-owns": listBoxId, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", border, clearButton, customValidity, disabled, fontSize, icon, iconRight: loading && AnimatedSpinnerIcon, id, inputMode: "search", onChange: handleInputChange, onClear: handleClearButtonClick, onFocus: handleInputFocus, padding, prefix, radius, readOnly, ref: setInputElement, role: "combobox", spellCheck: !1, suffix: suffix || openButtonNode, value: inputValue }),
486
+ }, $[115] = listFocused, $[116] = t40) : t40 = $[116];
487
+ const handleListBoxKeyDown = t40;
488
+ let t41;
489
+ bb2: {
490
+ if (filteredOptions.length === 0) {
491
+ t41 = null;
492
+ break bb2;
493
+ }
494
+ let t422;
495
+ if ($[117] !== activeValue || $[118] !== currentOption || $[119] !== filteredOptions || $[120] !== handleOptionSelect || $[121] !== id || $[122] !== listFocused || $[123] !== loading || $[124] !== renderOption) {
496
+ let t433;
497
+ $[126] !== activeValue || $[127] !== currentOption || $[128] !== handleOptionSelect || $[129] !== id || $[130] !== listFocused || $[131] !== loading || $[132] !== renderOption ? (t433 = (option_0) => {
498
+ const active = activeValue !== null ? option_0.value === activeValue : currentOption === option_0;
499
+ return /* @__PURE__ */ jsxRuntime.jsx(AutocompleteOption, { id: `${id}-option-${option_0.value}`, onSelect: handleOptionSelect, selected: active, value: option_0.value, children: react.cloneElement(renderOption(option_0), {
500
+ disabled: loading,
501
+ selected: active,
502
+ tabIndex: listFocused && active ? 0 : -1
503
+ }) }, option_0.value);
504
+ }, $[126] = activeValue, $[127] = currentOption, $[128] = handleOptionSelect, $[129] = id, $[130] = listFocused, $[131] = loading, $[132] = renderOption, $[133] = t433) : t433 = $[133], t422 = filteredOptions.map(t433), $[117] = activeValue, $[118] = currentOption, $[119] = filteredOptions, $[120] = handleOptionSelect, $[121] = id, $[122] = listFocused, $[123] = loading, $[124] = renderOption, $[125] = t422;
505
+ } else
506
+ t422 = $[125];
507
+ let t432;
508
+ $[134] !== listBoxId || $[135] !== t422 ? (t432 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Stack, { as: "ul", "aria-multiselectable": !1, "data-ui": "AutoComplete__resultsList", id: listBoxId, ref: listBoxElementRef, role: "listbox", space: 1, children: t422 }), $[134] = listBoxId, $[135] = t422, $[136] = t432) : t432 = $[136];
509
+ let t442;
510
+ $[137] !== handleListBoxKeyDown || $[138] !== listBox || $[139] !== t432 ? (t442 = /* @__PURE__ */ jsxRuntime.jsx(ListBox, { "data-ui": "AutoComplete__results", onKeyDown: handleListBoxKeyDown, padding: 1, ...listBox, tabIndex: -1, children: t432 }), $[137] = handleListBoxKeyDown, $[138] = listBox, $[139] = t432, $[140] = t442) : t442 = $[140], t41 = t442;
511
+ }
512
+ const content2 = t41;
513
+ let t42;
514
+ bb3: {
515
+ if (renderPopover) {
516
+ const t433 = !expanded;
517
+ let t442;
518
+ $[141] !== content2 || $[142] !== inputElement || $[143] !== renderPopover || $[144] !== t433 ? (t442 = /* @__PURE__ */ jsxRuntime.jsx(RenderPopover, { content: content2, hidden: t433, inputElement, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, resultsPopoverElementRef, renderPopover }), $[141] = content2, $[142] = inputElement, $[143] = renderPopover, $[144] = t433, $[145] = t442) : t442 = $[145], t42 = t442;
519
+ break bb3;
520
+ }
521
+ if (filteredOptionsLen === 0) {
522
+ t42 = null;
523
+ break bb3;
524
+ }
525
+ let t432;
526
+ $[146] !== content2 || $[147] !== expanded || $[148] !== inputElement || $[149] !== popover || $[150] !== radius ? (t432 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Popover, { arrow: !1, constrainSize: !0, content: content2, fallbackPlacements: AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS, matchReferenceWidth: !0, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, open: expanded, overflow: "auto", placement: AUTOCOMPLETE_POPOVER_PLACEMENT, portal: !0, radius, ref: resultsPopoverElementRef, referenceElement: inputElement, ...popover }), $[146] = content2, $[147] = expanded, $[148] = inputElement, $[149] = popover, $[150] = radius, $[151] = t432) : t432 = $[151], t42 = t432;
527
+ }
528
+ const results = t42, t43 = loading && AnimatedSpinnerIcon, t44 = suffix || openButtonNode;
529
+ let t45;
530
+ $[152] !== activeItemId || $[153] !== border || $[154] !== clearButton || $[155] !== customValidity || $[156] !== disabled || $[157] !== expanded || $[158] !== fontSize || $[159] !== handleClearButtonClick || $[160] !== handleInputChange || $[161] !== handleInputFocus || $[162] !== icon || $[163] !== id || $[164] !== inputValue || $[165] !== listBoxId || $[166] !== padding || $[167] !== prefix || $[168] !== radius || $[169] !== readOnly || $[170] !== restProps || $[171] !== t43 || $[172] !== t44 ? (t45 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.TextInput, { ...restProps, "aria-activedescendant": activeItemId, "aria-autocomplete": "list", "aria-expanded": expanded, "aria-owns": listBoxId, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", border, clearButton, customValidity, disabled, fontSize, icon, iconRight: t43, id, inputMode: "search", onChange: handleInputChange, onClear: handleClearButtonClick, onFocus: handleInputFocus, padding, prefix, radius, readOnly, ref: setInputElement, role: "combobox", spellCheck: !1, suffix: t44, value: inputValue }), $[152] = activeItemId, $[153] = border, $[154] = clearButton, $[155] = customValidity, $[156] = disabled, $[157] = expanded, $[158] = fontSize, $[159] = handleClearButtonClick, $[160] = handleInputChange, $[161] = handleInputFocus, $[162] = icon, $[163] = id, $[164] = inputValue, $[165] = listBoxId, $[166] = padding, $[167] = prefix, $[168] = radius, $[169] = readOnly, $[170] = restProps, $[171] = t43, $[172] = t44, $[173] = t45) : t45 = $[173];
531
+ let t46;
532
+ return $[174] !== handleRootBlur || $[175] !== handleRootKeyDown || $[176] !== results || $[177] !== t45 ? (t46 = /* @__PURE__ */ jsxRuntime.jsxs(StyledAutocomplete, { "data-ui": "Autocomplete", onBlur: handleRootBlur, onFocus: handleRootFocus, onKeyDown: handleRootKeyDown, ref: rootElementRef, children: [
533
+ t45,
401
534
  results
402
- ] });
535
+ ] }), $[174] = handleRootBlur, $[175] = handleRootKeyDown, $[176] = results, $[177] = t45, $[178] = t46) : t46 = $[178], t46;
403
536
  });
404
537
  function RenderPopover({
405
538
  renderPopover,
@@ -419,14 +552,21 @@ function RenderPopover({
419
552
  }, resultsPopoverElementRef);
420
553
  }
421
554
  InnerAutocomplete.displayName = "ForwardRef(Autocomplete)";
422
- const Autocomplete = InnerAutocomplete, StyledBreadcrumbs = styledComponents.styled.ol.withConfig({
555
+ const Autocomplete = InnerAutocomplete;
556
+ function _temp$3(v_0) {
557
+ return v_0 === 0 ? 0 : v_0 === 1 || v_0 === 2 ? 1 : v_0 - 2;
558
+ }
559
+ function _temp2$1(v_1) {
560
+ return Math.max(v_1 - 1, 0);
561
+ }
562
+ const StyledBreadcrumbs = styledComponents.styled.ol.withConfig({
423
563
  displayName: "StyledBreadcrumbs",
424
564
  componentId: "sc-1es8h8q-0"
425
565
  })`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`, ExpandButton = styledComponents.styled(_visualEditing.Button).withConfig({
426
566
  displayName: "ExpandButton",
427
567
  componentId: "sc-1es8h8q-1"
428
568
  })`appearance:none;margin:-4px;`, Breadcrumbs = react.forwardRef(function(props, ref) {
429
- const $ = reactCompilerRuntime.c(29);
569
+ const $ = reactCompilerRuntime.c(27);
430
570
  let children, maxLength, restProps, separator, t0;
431
571
  $[0] !== props ? ({
432
572
  children,
@@ -435,23 +575,20 @@ const Autocomplete = InnerAutocomplete, StyledBreadcrumbs = styledComponents.sty
435
575
  space: t0,
436
576
  ...restProps
437
577
  } = props, $[0] = props, $[1] = children, $[2] = maxLength, $[3] = restProps, $[4] = separator, $[5] = t0) : (children = $[1], maxLength = $[2], restProps = $[3], separator = $[4], t0 = $[5]);
438
- const spaceRaw = t0 === void 0 ? 2 : t0;
578
+ const space = _visualEditing.useArrayProp(t0 === void 0 ? 2 : t0), [open, setOpen] = react.useState(!1), expandElementRef = react.useRef(null), popoverElementRef = react.useRef(null);
439
579
  let t1;
440
- $[6] !== spaceRaw ? (t1 = _visualEditing._getArrayProp(spaceRaw), $[6] = spaceRaw, $[7] = t1) : t1 = $[7];
441
- const space = t1, [open, setOpen] = react.useState(!1), expandElementRef = react.useRef(null), popoverElementRef = react.useRef(null);
580
+ $[6] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => setOpen(!1), $[6] = t1) : t1 = $[6];
581
+ const collapse = t1;
442
582
  let t2;
443
- $[8] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => setOpen(!1), $[8] = t2) : t2 = $[8];
444
- const collapse = t2;
583
+ $[7] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => setOpen(!0), $[7] = t2) : t2 = $[7];
584
+ const expand = t2;
445
585
  let t3;
446
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => setOpen(!0), $[9] = t3) : t3 = $[9];
447
- const expand = t3;
586
+ $[8] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => [expandElementRef.current, popoverElementRef.current], $[8] = t3) : t3 = $[8], _visualEditing.useClickOutsideEvent(collapse, t3);
448
587
  let t4;
449
- $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => [expandElementRef.current, popoverElementRef.current], $[10] = t4) : t4 = $[10], _visualEditing.useClickOutsideEvent(collapse, t4);
588
+ $[9] !== children ? (t4 = react.Children.toArray(children).filter(react.isValidElement), $[9] = children, $[10] = t4) : t4 = $[10];
589
+ const rawItems = t4;
450
590
  let t5;
451
- $[11] !== children ? (t5 = react.Children.toArray(children).filter(react.isValidElement), $[11] = children, $[12] = t5) : t5 = $[12];
452
- const rawItems = t5;
453
- let t6;
454
- $[13] !== maxLength || $[14] !== open || $[15] !== rawItems || $[16] !== space ? (t6 = {
591
+ $[11] !== maxLength || $[12] !== open || $[13] !== rawItems || $[14] !== space ? (t5 = {
455
592
  collapse,
456
593
  expand,
457
594
  expandElementRef,
@@ -460,19 +597,19 @@ const Autocomplete = InnerAutocomplete, StyledBreadcrumbs = styledComponents.sty
460
597
  popoverElementRef,
461
598
  rawItems,
462
599
  space
463
- }, $[13] = maxLength, $[14] = open, $[15] = rawItems, $[16] = space, $[17] = t6) : t6 = $[17];
464
- const items = useItems(t6);
465
- let t7;
466
- if ($[18] !== items || $[19] !== separator || $[20] !== space) {
467
- let t82;
468
- $[22] !== separator || $[23] !== space ? (t82 = (item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
600
+ }, $[11] = maxLength, $[12] = open, $[13] = rawItems, $[14] = space, $[15] = t5) : t5 = $[15];
601
+ const items = useItems(t5);
602
+ let t6;
603
+ if ($[16] !== items || $[17] !== separator || $[18] !== space) {
604
+ let t72;
605
+ $[20] !== separator || $[21] !== space ? (t72 = (item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
469
606
  itemIndex > 0 && /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { "aria-hidden": !0, as: "li", paddingX: space, children: separator || /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { muted: !0, children: "/" }) }),
470
607
  /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { as: "li", children: item })
471
- ] }, itemIndex), $[22] = separator, $[23] = space, $[24] = t82) : t82 = $[24], t7 = items.map(t82), $[18] = items, $[19] = separator, $[20] = space, $[21] = t7;
608
+ ] }, itemIndex), $[20] = separator, $[21] = space, $[22] = t72) : t72 = $[22], t6 = items.map(t72), $[16] = items, $[17] = separator, $[18] = space, $[19] = t6;
472
609
  } else
473
- t7 = $[21];
474
- let t8;
475
- return $[25] !== ref || $[26] !== restProps || $[27] !== t7 ? (t8 = /* @__PURE__ */ jsxRuntime.jsx(StyledBreadcrumbs, { "data-ui": "Breadcrumbs", ...restProps, ref, children: t7 }), $[25] = ref, $[26] = restProps, $[27] = t7, $[28] = t8) : t8 = $[28], t8;
610
+ t6 = $[19];
611
+ let t7;
612
+ return $[23] !== ref || $[24] !== restProps || $[25] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(StyledBreadcrumbs, { "data-ui": "Breadcrumbs", ...restProps, ref, children: t6 }), $[23] = ref, $[24] = restProps, $[25] = t6, $[26] = t7) : t7 = $[26], t7;
476
613
  });
477
614
  Breadcrumbs.displayName = "ForwardRef(Breadcrumbs)";
478
615
  function useItems(t0) {
@@ -595,7 +732,7 @@ const StyledDialog = /* @__PURE__ */ styledComponents.styled(_visualEditing.Laye
595
732
  displayName: "DialogFooter",
596
733
  componentId: "sc-4n4xb3-6"
597
734
  })`position:relative;z-index:3;`, DialogCard = react.forwardRef(function(props, forwardedRef) {
598
- const $ = reactCompilerRuntime.c(44), {
735
+ const $ = reactCompilerRuntime.c(38), {
599
736
  __unstable_autoFocus: autoFocus,
600
737
  __unstable_hideCloseButton: hideCloseButton,
601
738
  children,
@@ -610,63 +747,54 @@ const StyledDialog = /* @__PURE__ */ styledComponents.styled(_visualEditing.Laye
610
747
  scheme,
611
748
  shadow: shadowProp,
612
749
  width: widthProp
613
- } = props, portal = _visualEditing.usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = _visualEditing.useBoundaryElement().element;
614
- let t0;
615
- $[0] !== radiusProp ? (t0 = _visualEditing._getArrayProp(radiusProp), $[0] = radiusProp, $[1] = t0) : t0 = $[1];
616
- const radius = t0;
617
- let t1;
618
- $[2] !== shadowProp ? (t1 = _visualEditing._getArrayProp(shadowProp), $[2] = shadowProp, $[3] = t1) : t1 = $[3];
619
- const shadow = t1;
620
- let t2;
621
- $[4] !== widthProp ? (t2 = _visualEditing._getArrayProp(widthProp), $[4] = widthProp, $[5] = t2) : t2 = $[5];
622
- const width = t2, ref = react.useRef(null), contentRef = react.useRef(null), layer = _visualEditing.useLayer(), {
750
+ } = props, portal = _visualEditing.usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = _visualEditing.useBoundaryElement().element, radius = _visualEditing.useArrayProp(radiusProp), shadow = _visualEditing.useArrayProp(shadowProp), width = _visualEditing.useArrayProp(widthProp), ref = react.useRef(null), contentRef = react.useRef(null), layer = _visualEditing.useLayer(), {
623
751
  isTopLayer
624
752
  } = layer, labelId = `${id}_label`, showCloseButton = !!onClose && hideCloseButton === !1, showHeader = !!header || showCloseButton;
625
- let t3;
626
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => ref.current, $[6] = t3) : t3 = $[6], react.useImperativeHandle(forwardedRef, t3);
627
- let t4;
628
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => contentRef.current, $[7] = t4) : t4 = $[7], react.useImperativeHandle(forwardedContentRef, t4);
629
- let t5, t6;
630
- $[8] !== autoFocus ? (t5 = () => {
753
+ let t0;
754
+ $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[0] = t0) : t0 = $[0], react.useImperativeHandle(forwardedRef, t0);
755
+ let t1;
756
+ $[1] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => contentRef.current, $[1] = t1) : t1 = $[1], react.useImperativeHandle(forwardedContentRef, t1);
757
+ let t2, t3;
758
+ $[2] !== autoFocus ? (t2 = () => {
631
759
  autoFocus && ref.current && focusFirstDescendant(ref.current);
632
- }, t6 = [autoFocus, ref], $[8] = autoFocus, $[9] = t5, $[10] = t6) : (t5 = $[9], t6 = $[10]), react.useEffect(t5, t6);
633
- let t7;
634
- $[11] !== boundaryElement || $[12] !== isTopLayer || $[13] !== onClose || $[14] !== portalElement ? (t7 = (event) => {
760
+ }, t3 = [autoFocus, ref], $[2] = autoFocus, $[3] = t2, $[4] = t3) : (t2 = $[3], t3 = $[4]), react.useEffect(t2, t3);
761
+ let t4;
762
+ $[5] !== boundaryElement || $[6] !== isTopLayer || $[7] !== onClose || $[8] !== portalElement ? (t4 = (event) => {
635
763
  if (!isTopLayer || !onClose)
636
764
  return;
637
765
  const target = document.activeElement;
638
766
  target && !isTargetWithinScope(boundaryElement, portalElement, target) || event.key === "Escape" && (event.preventDefault(), event.stopPropagation(), onClose());
639
- }, $[11] = boundaryElement, $[12] = isTopLayer, $[13] = onClose, $[14] = portalElement, $[15] = t7) : t7 = $[15], _visualEditing.useGlobalKeyDown(t7);
640
- let t8;
641
- $[16] !== boundaryElement || $[17] !== isTopLayer || $[18] !== onClickOutside || $[19] !== portalElement ? (t8 = isTopLayer && onClickOutside && ((event_0) => {
767
+ }, $[5] = boundaryElement, $[6] = isTopLayer, $[7] = onClose, $[8] = portalElement, $[9] = t4) : t4 = $[9], _visualEditing.useGlobalKeyDown(t4);
768
+ let t5;
769
+ $[10] !== boundaryElement || $[11] !== isTopLayer || $[12] !== onClickOutside || $[13] !== portalElement ? (t5 = isTopLayer && onClickOutside && ((event_0) => {
642
770
  const target_0 = event_0.target;
643
771
  target_0 && !isTargetWithinScope(boundaryElement, portalElement, target_0) || onClickOutside();
644
- }), $[16] = boundaryElement, $[17] = isTopLayer, $[18] = onClickOutside, $[19] = portalElement, $[20] = t8) : t8 = $[20];
645
- let t9;
646
- $[21] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => [ref.current], $[21] = t9) : t9 = $[21], _visualEditing.useClickOutsideEvent(t8, t9);
647
- let t10;
648
- $[22] !== header || $[23] !== labelId || $[24] !== onClose || $[25] !== showCloseButton || $[26] !== showHeader ? (t10 = showHeader && /* @__PURE__ */ jsxRuntime.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(_visualEditing.Flex, { align: "flex-start", padding: 3, children: [
772
+ }), $[10] = boundaryElement, $[11] = isTopLayer, $[12] = onClickOutside, $[13] = portalElement, $[14] = t5) : t5 = $[14];
773
+ let t6;
774
+ $[15] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => [ref.current], $[15] = t6) : t6 = $[15], _visualEditing.useClickOutsideEvent(t5, t6);
775
+ let t7;
776
+ $[16] !== header || $[17] !== labelId || $[18] !== onClose || $[19] !== showCloseButton || $[20] !== showHeader ? (t7 = showHeader && /* @__PURE__ */ jsxRuntime.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(_visualEditing.Flex, { align: "flex-start", padding: 3, children: [
649
777
  /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { flex: 1, padding: 2, children: header && /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { id: labelId, size: 1, weight: "semibold", children: header }) }),
650
778
  showCloseButton && /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { flex: "none", children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Button, { "aria-label": "Close dialog", disabled: !onClose, icon: icons.CloseIcon, mode: "bleed", onClick: onClose, padding: 2 }) })
651
- ] }) }), $[22] = header, $[23] = labelId, $[24] = onClose, $[25] = showCloseButton, $[26] = showHeader, $[27] = t10) : t10 = $[27];
779
+ ] }) }), $[16] = header, $[17] = labelId, $[18] = onClose, $[19] = showCloseButton, $[20] = showHeader, $[21] = t7) : t7 = $[21];
780
+ let t8;
781
+ $[22] !== children ? (t8 = /* @__PURE__ */ jsxRuntime.jsx(DialogContent, { flex: 1, ref: contentRef, tabIndex: -1, children }), $[22] = children, $[23] = t8) : t8 = $[23];
782
+ let t9;
783
+ $[24] !== footer ? (t9 = footer && /* @__PURE__ */ jsxRuntime.jsx(DialogFooter, { children: footer }), $[24] = footer, $[25] = t9) : t9 = $[25];
784
+ let t10;
785
+ $[26] !== t7 || $[27] !== t8 || $[28] !== t9 ? (t10 = /* @__PURE__ */ jsxRuntime.jsxs(DialogLayout, { direction: "column", children: [
786
+ t7,
787
+ t8,
788
+ t9
789
+ ] }), $[26] = t7, $[27] = t8, $[28] = t9, $[29] = t10) : t10 = $[29];
652
790
  let t11;
653
- $[28] !== children ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(DialogContent, { flex: 1, ref: contentRef, tabIndex: -1, children }), $[28] = children, $[29] = t11) : t11 = $[29];
791
+ $[30] !== radius || $[31] !== scheme || $[32] !== shadow || $[33] !== t10 ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(DialogCardRoot, { radius, ref, scheme, shadow, children: t10 }), $[30] = radius, $[31] = scheme, $[32] = shadow, $[33] = t10, $[34] = t11) : t11 = $[34];
654
792
  let t12;
655
- $[30] !== footer ? (t12 = footer && /* @__PURE__ */ jsxRuntime.jsx(DialogFooter, { children: footer }), $[30] = footer, $[31] = t12) : t12 = $[31];
656
- let t13;
657
- $[32] !== t10 || $[33] !== t11 || $[34] !== t12 ? (t13 = /* @__PURE__ */ jsxRuntime.jsxs(DialogLayout, { direction: "column", children: [
658
- t10,
659
- t11,
660
- t12
661
- ] }), $[32] = t10, $[33] = t11, $[34] = t12, $[35] = t13) : t13 = $[35];
662
- let t14;
663
- $[36] !== radius || $[37] !== scheme || $[38] !== shadow || $[39] !== t13 ? (t14 = /* @__PURE__ */ jsxRuntime.jsx(DialogCardRoot, { radius, ref, scheme, shadow, children: t13 }), $[36] = radius, $[37] = scheme, $[38] = shadow, $[39] = t13, $[40] = t14) : t14 = $[40];
664
- let t15;
665
- return $[41] !== t14 || $[42] !== width ? (t15 = /* @__PURE__ */ jsxRuntime.jsx(DialogContainer, { "data-ui": "DialogCard", width, children: t14 }), $[41] = t14, $[42] = width, $[43] = t15) : t15 = $[43], t15;
793
+ return $[35] !== t11 || $[36] !== width ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(DialogContainer, { "data-ui": "DialogCard", width, children: t11 }), $[35] = t11, $[36] = width, $[37] = t12) : t12 = $[37], t12;
666
794
  });
667
795
  DialogCard.displayName = "ForwardRef(DialogCard)";
668
796
  const Dialog = react.forwardRef(function(props, ref) {
669
- const $ = reactCompilerRuntime.c(70), dialog = useDialog(), {
797
+ const $ = reactCompilerRuntime.c(60), dialog = useDialog(), {
670
798
  layer
671
799
  } = _visualEditing.useTheme_v2();
672
800
  let _positionProp, _zOffsetProp, children, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5, t6;
@@ -693,24 +821,9 @@ const Dialog = react.forwardRef(function(props, ref) {
693
821
  animate: t6,
694
822
  ...restProps
695
823
  } = props, $[0] = props, $[1] = _positionProp, $[2] = _zOffsetProp, $[3] = children, $[4] = contentRef, $[5] = footer, $[6] = header, $[7] = id, $[8] = onActivate, $[9] = onClickOutside, $[10] = onClose, $[11] = onFocus, $[12] = portalProp, $[13] = restProps, $[14] = scheme, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6) : (_positionProp = $[1], _zOffsetProp = $[2], children = $[3], contentRef = $[4], footer = $[5], header = $[6], id = $[7], onActivate = $[8], onClickOutside = $[9], onClose = $[10], onFocus = $[11], portalProp = $[12], restProps = $[13], scheme = $[14], t0 = $[15], t1 = $[16], t2 = $[17], t3 = $[18], t4 = $[19], t5 = $[20], t6 = $[21]);
696
- const autoFocus = t0 === void 0 ? !0 : t0, hideCloseButton = t1 === void 0 ? !1 : t1, cardRadiusProp = t2 === void 0 ? 4 : t2, cardShadow = t3 === void 0 ? 3 : t3, paddingProp = t4 === void 0 ? 3 : t4, widthProp = t5 === void 0 ? 0 : t5, _animate = t6 === void 0 ? !1 : t6, positionProp = _positionProp ?? (dialog.position || "fixed"), zOffsetProp = _zOffsetProp ?? (dialog.zOffset || layer.dialog.zOffset), animate = _visualEditing.usePrefersReducedMotion() ? !1 : _animate, portal = _visualEditing.usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = _visualEditing.useBoundaryElement().element;
824
+ const autoFocus = t0 === void 0 ? !0 : t0, hideCloseButton = t1 === void 0 ? !1 : t1, cardRadiusProp = t2 === void 0 ? 4 : t2, cardShadow = t3 === void 0 ? 3 : t3, paddingProp = t4 === void 0 ? 3 : t4, widthProp = t5 === void 0 ? 0 : t5, _animate = t6 === void 0 ? !1 : t6, positionProp = _positionProp ?? (dialog.position || "fixed"), zOffsetProp = _zOffsetProp ?? (dialog.zOffset || layer.dialog.zOffset), animate = _visualEditing.usePrefersReducedMotion() ? !1 : _animate, portal = _visualEditing.usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = _visualEditing.useBoundaryElement().element, cardRadius = _visualEditing.useArrayProp(cardRadiusProp), padding = _visualEditing.useArrayProp(paddingProp), position = _visualEditing.useArrayProp(positionProp), width = _visualEditing.useArrayProp(widthProp), zOffset = _visualEditing.useArrayProp(zOffsetProp), preDivRef = react.useRef(null), postDivRef = react.useRef(null), cardRef = react.useRef(null), focusedElementRef = react.useRef(null);
697
825
  let t7;
698
- $[22] !== cardRadiusProp ? (t7 = _visualEditing._getArrayProp(cardRadiusProp), $[22] = cardRadiusProp, $[23] = t7) : t7 = $[23];
699
- const cardRadius = t7;
700
- let t8;
701
- $[24] !== paddingProp ? (t8 = _visualEditing._getArrayProp(paddingProp), $[24] = paddingProp, $[25] = t8) : t8 = $[25];
702
- const padding = t8;
703
- let t9;
704
- $[26] !== positionProp ? (t9 = _visualEditing._getArrayProp(positionProp), $[26] = positionProp, $[27] = t9) : t9 = $[27];
705
- const position = t9;
706
- let t10;
707
- $[28] !== widthProp ? (t10 = _visualEditing._getArrayProp(widthProp), $[28] = widthProp, $[29] = t10) : t10 = $[29];
708
- const width = t10;
709
- let t11;
710
- $[30] !== zOffsetProp ? (t11 = _visualEditing._getArrayProp(zOffsetProp), $[30] = zOffsetProp, $[31] = t11) : t11 = $[31];
711
- const zOffset = t11, preDivRef = react.useRef(null), postDivRef = react.useRef(null), cardRef = react.useRef(null), focusedElementRef = react.useRef(null);
712
- let t12;
713
- $[32] !== onFocus ? (t12 = (event) => {
826
+ $[22] !== onFocus ? (t7 = (event) => {
714
827
  onFocus?.(event);
715
828
  const target = event.target, cardElement = cardRef.current;
716
829
  if (cardElement && target === preDivRef.current) {
@@ -722,10 +835,10 @@ const Dialog = react.forwardRef(function(props, ref) {
722
835
  return;
723
836
  }
724
837
  _visualEditing.isHTMLElement(event.target) && (focusedElementRef.current = event.target);
725
- }, $[32] = onFocus, $[33] = t12) : t12 = $[33];
726
- const handleFocus = t12, labelId = `${id}_label`, rootClickTimeoutRef = react.useRef(void 0);
727
- let t13;
728
- $[34] !== boundaryElement || $[35] !== portalElement ? (t13 = () => {
838
+ }, $[22] = onFocus, $[23] = t7) : t7 = $[23];
839
+ const handleFocus = t7, labelId = `${id}_label`, rootClickTimeoutRef = react.useRef(void 0);
840
+ let t8;
841
+ $[24] !== boundaryElement || $[25] !== portalElement ? (t8 = () => {
729
842
  rootClickTimeoutRef.current && clearTimeout(rootClickTimeoutRef.current), rootClickTimeoutRef.current = setTimeout(() => {
730
843
  const activeElement = document.activeElement;
731
844
  if (activeElement && !isTargetWithinScope(boundaryElement, portalElement, activeElement)) {
@@ -738,22 +851,22 @@ const Dialog = react.forwardRef(function(props, ref) {
738
851
  target_0.focus();
739
852
  }
740
853
  }, 0);
741
- }, $[34] = boundaryElement, $[35] = portalElement, $[36] = t13) : t13 = $[36];
742
- const handleRootClick = t13;
743
- let t14;
744
- $[37] === Symbol.for("react.memo_cache_sentinel") ? (t14 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: preDivRef, tabIndex: 0 }), $[37] = t14) : t14 = $[37];
745
- let t15;
746
- $[38] !== autoFocus || $[39] !== cardRadius || $[40] !== cardShadow || $[41] !== children || $[42] !== contentRef || $[43] !== footer || $[44] !== header || $[45] !== hideCloseButton || $[46] !== id || $[47] !== onClickOutside || $[48] !== onClose || $[49] !== portalProp || $[50] !== scheme || $[51] !== width ? (t15 = /* @__PURE__ */ jsxRuntime.jsx(DialogCard, { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, contentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: cardRadius, ref: cardRef, scheme, shadow: cardShadow, width, children }), $[38] = autoFocus, $[39] = cardRadius, $[40] = cardShadow, $[41] = children, $[42] = contentRef, $[43] = footer, $[44] = header, $[45] = hideCloseButton, $[46] = id, $[47] = onClickOutside, $[48] = onClose, $[49] = portalProp, $[50] = scheme, $[51] = width, $[52] = t15) : t15 = $[52];
747
- let t16;
748
- $[53] === Symbol.for("react.memo_cache_sentinel") ? (t16 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: postDivRef, tabIndex: 0 }), $[53] = t16) : t16 = $[53];
749
- let t17;
750
- $[54] !== animate || $[55] !== handleFocus || $[56] !== handleRootClick || $[57] !== id || $[58] !== labelId || $[59] !== onActivate || $[60] !== padding || $[61] !== position || $[62] !== ref || $[63] !== restProps || $[64] !== t15 || $[65] !== zOffset ? (t17 = /* @__PURE__ */ jsxRuntime.jsxs(StyledDialog, { ...restProps, $animate: animate, $padding: padding, $position: position, "aria-labelledby": labelId, "aria-modal": !0, "data-ui": "Dialog", id, onActivate, onClick: handleRootClick, onFocus: handleFocus, ref, role: "dialog", zOffset, children: [
751
- t14,
752
- t15,
753
- t16
754
- ] }), $[54] = animate, $[55] = handleFocus, $[56] = handleRootClick, $[57] = id, $[58] = labelId, $[59] = onActivate, $[60] = padding, $[61] = position, $[62] = ref, $[63] = restProps, $[64] = t15, $[65] = zOffset, $[66] = t17) : t17 = $[66];
755
- let t18;
756
- return $[67] !== portalProp || $[68] !== t17 ? (t18 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Portal, { __unstable_name: portalProp, children: t17 }), $[67] = portalProp, $[68] = t17, $[69] = t18) : t18 = $[69], t18;
854
+ }, $[24] = boundaryElement, $[25] = portalElement, $[26] = t8) : t8 = $[26];
855
+ const handleRootClick = t8;
856
+ let t9;
857
+ $[27] === Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: preDivRef, tabIndex: 0 }), $[27] = t9) : t9 = $[27];
858
+ let t10;
859
+ $[28] !== autoFocus || $[29] !== cardRadius || $[30] !== cardShadow || $[31] !== children || $[32] !== contentRef || $[33] !== footer || $[34] !== header || $[35] !== hideCloseButton || $[36] !== id || $[37] !== onClickOutside || $[38] !== onClose || $[39] !== portalProp || $[40] !== scheme || $[41] !== width ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(DialogCard, { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, contentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: cardRadius, ref: cardRef, scheme, shadow: cardShadow, width, children }), $[28] = autoFocus, $[29] = cardRadius, $[30] = cardShadow, $[31] = children, $[32] = contentRef, $[33] = footer, $[34] = header, $[35] = hideCloseButton, $[36] = id, $[37] = onClickOutside, $[38] = onClose, $[39] = portalProp, $[40] = scheme, $[41] = width, $[42] = t10) : t10 = $[42];
860
+ let t11;
861
+ $[43] === Symbol.for("react.memo_cache_sentinel") ? (t11 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: postDivRef, tabIndex: 0 }), $[43] = t11) : t11 = $[43];
862
+ let t12;
863
+ $[44] !== animate || $[45] !== handleFocus || $[46] !== handleRootClick || $[47] !== id || $[48] !== labelId || $[49] !== onActivate || $[50] !== padding || $[51] !== position || $[52] !== ref || $[53] !== restProps || $[54] !== t10 || $[55] !== zOffset ? (t12 = /* @__PURE__ */ jsxRuntime.jsxs(StyledDialog, { ...restProps, $animate: animate, $padding: padding, $position: position, "aria-labelledby": labelId, "aria-modal": !0, "data-ui": "Dialog", id, onActivate, onClick: handleRootClick, onFocus: handleFocus, ref, role: "dialog", zOffset, children: [
864
+ t9,
865
+ t10,
866
+ t11
867
+ ] }), $[44] = animate, $[45] = handleFocus, $[46] = handleRootClick, $[47] = id, $[48] = labelId, $[49] = onActivate, $[50] = padding, $[51] = position, $[52] = ref, $[53] = restProps, $[54] = t10, $[55] = zOffset, $[56] = t12) : t12 = $[56];
868
+ let t13;
869
+ return $[57] !== portalProp || $[58] !== t12 ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Portal, { __unstable_name: portalProp, children: t12 }), $[57] = portalProp, $[58] = t12, $[59] = t13) : t13 = $[59], t13;
757
870
  });
758
871
  Dialog.displayName = "ForwardRef(Dialog)";
759
872
  function DialogProvider(props) {
@@ -955,7 +1068,7 @@ const keyframe = styledComponents.keyframes`
955
1068
  displayName: "StyledSkeleton",
956
1069
  componentId: "sc-ebtpni-0"
957
1070
  })(_visualEditing.responsiveRadiusStyle, skeletonStyle), Skeleton = react.forwardRef(function(props, ref) {
958
- const $ = reactCompilerRuntime.c(16);
1071
+ const $ = reactCompilerRuntime.c(14);
959
1072
  let delay, radius, restProps, t0;
960
1073
  $[0] !== props ? ({
961
1074
  animated: t0,
@@ -975,10 +1088,9 @@ const keyframe = styledComponents.keyframes`
975
1088
  clearTimeout(timeout);
976
1089
  };
977
1090
  }, t2 = [delay], $[5] = delay, $[6] = t1, $[7] = t2) : (t1 = $[6], t2 = $[7]), react.useEffect(t1, t2);
978
- let t3;
979
- $[8] !== radius ? (t3 = _visualEditing._getArrayProp(radius), $[8] = radius, $[9] = t3) : t3 = $[9];
1091
+ const t3 = _visualEditing.useArrayProp(radius);
980
1092
  let t4;
981
- return $[10] !== animated || $[11] !== ref || $[12] !== restProps || $[13] !== t3 || $[14] !== visible ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton$1, { ...restProps, $animated: animated, $radius: t3, $visible: visible, ref }), $[10] = animated, $[11] = ref, $[12] = restProps, $[13] = t3, $[14] = visible, $[15] = t4) : t4 = $[15], t4;
1093
+ return $[8] !== animated || $[9] !== ref || $[10] !== restProps || $[11] !== t3 || $[12] !== visible ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton$1, { ...restProps, $animated: animated, $radius: t3, $visible: visible, ref }), $[8] = animated, $[9] = ref, $[10] = restProps, $[11] = t3, $[12] = visible, $[13] = t4) : t4 = $[13], t4;
982
1094
  });
983
1095
  Skeleton.displayName = "ForwardRef(Skeleton)";
984
1096
  const StyledSkeleton = /* @__PURE__ */ styledComponents.styled(Skeleton).withConfig({
@@ -999,63 +1111,51 @@ const StyledSkeleton = /* @__PURE__ */ styledComponents.styled(Skeleton).withCon
999
1111
  };
1000
1112
  });
1001
1113
  }), TextSkeleton = react.forwardRef(function(props, ref) {
1002
- const $ = reactCompilerRuntime.c(9);
1114
+ const $ = reactCompilerRuntime.c(7);
1003
1115
  let restProps, t0;
1004
1116
  $[0] !== props ? ({
1005
1117
  size: t0,
1006
1118
  ...restProps
1007
1119
  } = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
1008
- const size = t0 === void 0 ? 2 : t0;
1120
+ const $size = _visualEditing.useArrayProp(t0 === void 0 ? 2 : t0);
1009
1121
  let t1;
1010
- $[3] !== size ? (t1 = _visualEditing._getArrayProp(size), $[3] = size, $[4] = t1) : t1 = $[4];
1011
- const $size = t1;
1012
- let t2;
1013
- return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton, { ...restProps, $size, ref, $style: "text" }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
1122
+ return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton, { ...restProps, $size, ref, $style: "text" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
1014
1123
  });
1015
1124
  TextSkeleton.displayName = "ForwardRef(TextSkeleton)";
1016
1125
  const LabelSkeleton = react.forwardRef(function(props, ref) {
1017
- const $ = reactCompilerRuntime.c(9);
1126
+ const $ = reactCompilerRuntime.c(7);
1018
1127
  let restProps, t0;
1019
1128
  $[0] !== props ? ({
1020
1129
  size: t0,
1021
1130
  ...restProps
1022
1131
  } = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
1023
- const size = t0 === void 0 ? 2 : t0;
1132
+ const $size = _visualEditing.useArrayProp(t0 === void 0 ? 2 : t0);
1024
1133
  let t1;
1025
- $[3] !== size ? (t1 = _visualEditing._getArrayProp(size), $[3] = size, $[4] = t1) : t1 = $[4];
1026
- const $size = t1;
1027
- let t2;
1028
- return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton, { ...restProps, $size, ref, $style: "label" }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
1134
+ return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton, { ...restProps, $size, ref, $style: "label" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
1029
1135
  });
1030
1136
  LabelSkeleton.displayName = "ForwardRef(LabelSkeleton)";
1031
1137
  const HeadingSkeleton = react.forwardRef(function(props, ref) {
1032
- const $ = reactCompilerRuntime.c(9);
1138
+ const $ = reactCompilerRuntime.c(7);
1033
1139
  let restProps, t0;
1034
1140
  $[0] !== props ? ({
1035
1141
  size: t0,
1036
1142
  ...restProps
1037
1143
  } = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
1038
- const size = t0 === void 0 ? 2 : t0;
1144
+ const $size = _visualEditing.useArrayProp(t0 === void 0 ? 2 : t0);
1039
1145
  let t1;
1040
- $[3] !== size ? (t1 = _visualEditing._getArrayProp(size), $[3] = size, $[4] = t1) : t1 = $[4];
1041
- const $size = t1;
1042
- let t2;
1043
- return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton, { ...restProps, $size, ref, $style: "heading" }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
1146
+ return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton, { ...restProps, $size, ref, $style: "heading" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
1044
1147
  });
1045
1148
  HeadingSkeleton.displayName = "ForwardRef(HeadingSkeleton)";
1046
1149
  const CodeSkeleton = react.forwardRef(function(props, ref) {
1047
- const $ = reactCompilerRuntime.c(9);
1150
+ const $ = reactCompilerRuntime.c(7);
1048
1151
  let restProps, t0;
1049
1152
  $[0] !== props ? ({
1050
1153
  size: t0,
1051
1154
  ...restProps
1052
1155
  } = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
1053
- const size = t0 === void 0 ? 2 : t0;
1156
+ const $size = _visualEditing.useArrayProp(t0 === void 0 ? 2 : t0);
1054
1157
  let t1;
1055
- $[3] !== size ? (t1 = _visualEditing._getArrayProp(size), $[3] = size, $[4] = t1) : t1 = $[4];
1056
- const $size = t1;
1057
- let t2;
1058
- return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton, { ...restProps, $size, ref, $style: "code" }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
1158
+ return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton, { ...restProps, $size, ref, $style: "code" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
1059
1159
  });
1060
1160
  CodeSkeleton.displayName = "ForwardRef(CodeSkeleton)";
1061
1161
  const TabPanel = react.forwardRef(function(props, ref) {
@@ -1834,6 +1934,7 @@ exports.rgbToHsl = _visualEditing.rgbToHsl;
1834
1934
  exports.rgba = _visualEditing.rgba;
1835
1935
  exports.screen = _visualEditing.screen;
1836
1936
  exports.studioTheme = _visualEditing.studioTheme;
1937
+ exports.useArrayProp = _visualEditing.useArrayProp;
1837
1938
  exports.useBoundaryElement = _visualEditing.useBoundaryElement;
1838
1939
  exports.useClickOutsideEvent = _visualEditing.useClickOutsideEvent;
1839
1940
  exports.useCustomValidity = _visualEditing.useCustomValidity;
@@ -1873,7 +1974,6 @@ exports.attemptFocus = attemptFocus;
1873
1974
  exports.focusFirstDescendant = focusFirstDescendant;
1874
1975
  exports.focusLastDescendant = focusLastDescendant;
1875
1976
  exports.isFocusable = isFocusable;
1876
- exports.useArrayProp = useArrayProp;
1877
1977
  exports.useClickOutside = useClickOutside;
1878
1978
  exports.useDialog = useDialog;
1879
1979
  exports.useElementRect = useElementRect;