@sanity/ui 3.1.1-canary.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +175 -185
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +176 -186
- package/dist/index.mjs.map +1 -1
- package/package.json +53 -39
- package/src/core/components/autocomplete/autocomplete.tsx +1 -11
- package/src/core/components/tree/treeItem.tsx +2 -12
package/dist/index.js
CHANGED
|
@@ -214,7 +214,7 @@ function autocompleteReducer(state, msg) {
|
|
|
214
214
|
} : state;
|
|
215
215
|
}
|
|
216
216
|
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 $ = reactCompilerRuntime.c(
|
|
217
|
+
const $ = reactCompilerRuntime.c(180);
|
|
218
218
|
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;
|
|
219
219
|
$[0] !== props ? ({
|
|
220
220
|
border: t0,
|
|
@@ -270,29 +270,24 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
|
|
|
270
270
|
} = t112;
|
|
271
271
|
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 }) });
|
|
272
272
|
}, $[33] = fontSize, $[34] = paddingProp, $[35] = t10) : t10 = $[35];
|
|
273
|
-
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,
|
|
274
|
-
let t11;
|
|
275
|
-
$[36]
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
const setInputElement = t11, listFocusedRef = react.useRef(!1), valueRef = react.useRef(value), valuePropRef = react.useRef(valueProp), popoverMouseWithinRef = react.useRef(!1);
|
|
279
|
-
let t12, t13;
|
|
280
|
-
$[37] !== inputElement ? (t12 = () => inputElement, t13 = [inputElement], $[37] = inputElement, $[38] = t12, $[39] = t13) : (t12 = $[38], t13 = $[39]), react.useImperativeHandle(inputElementRef, t12, t13);
|
|
281
|
-
let t14, t15;
|
|
282
|
-
$[40] !== inputElement ? (t14 = () => inputElement, t15 = [inputElement], $[40] = inputElement, $[41] = t14, $[42] = t15) : (t14 = $[41], t15 = $[42]), react.useImperativeHandle(forwardedRef, t14, t15);
|
|
273
|
+
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);
|
|
274
|
+
let t11, t12;
|
|
275
|
+
$[36] !== inputElement ? (t11 = () => inputElement, t12 = [inputElement], $[36] = inputElement, $[37] = t11, $[38] = t12) : (t11 = $[37], t12 = $[38]), react.useImperativeHandle(inputElementRef, t11, t12);
|
|
276
|
+
let t13, t14;
|
|
277
|
+
$[39] !== inputElement ? (t13 = () => inputElement, t14 = [inputElement], $[39] = inputElement, $[40] = t13, $[41] = t14) : (t13 = $[40], t14 = $[41]), react.useImperativeHandle(forwardedRef, t13, t14);
|
|
283
278
|
const listBoxId = `${id}-listbox`, options = Array.isArray(optionsProp) ? optionsProp : _visualEditing.EMPTY_ARRAY, padding = _visualEditing._getArrayProp(paddingProp);
|
|
279
|
+
let t15;
|
|
280
|
+
$[42] !== options || $[43] !== value ? (t15 = value !== null ? options.find((o) => o.value === value) : void 0, $[42] = options, $[43] = value, $[44] = t15) : t15 = $[44];
|
|
281
|
+
const currentOption = t15;
|
|
284
282
|
let t16;
|
|
285
|
-
$[
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
if ($[46] !== filterOption || $[47] !== options || $[48] !== query) {
|
|
289
|
-
let t182;
|
|
290
|
-
$[50] !== filterOption || $[51] !== query ? (t182 = (option) => query ? filterOption(query, option) : !0, $[50] = filterOption, $[51] = query, $[52] = t182) : t182 = $[52], t17 = options.filter(t182), $[46] = filterOption, $[47] = options, $[48] = query, $[49] = t17;
|
|
283
|
+
if ($[45] !== filterOption || $[46] !== options || $[47] !== query) {
|
|
284
|
+
let t172;
|
|
285
|
+
$[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;
|
|
291
286
|
} else
|
|
292
|
-
|
|
293
|
-
const filteredOptions =
|
|
294
|
-
let
|
|
295
|
-
$[
|
|
287
|
+
t16 = $[48];
|
|
288
|
+
const filteredOptions = t16, filteredOptionsLen = filteredOptions.length, activeItemId = activeValue ? `${id}-option-${activeValue}` : void 0, expanded = query !== null && loading || focused && query !== null;
|
|
289
|
+
let t17;
|
|
290
|
+
$[52] !== onBlur || $[53] !== onQueryChange || $[54] !== relatedElements ? (t17 = (event) => {
|
|
296
291
|
setTimeout(() => {
|
|
297
292
|
if (popoverMouseWithinRef.current)
|
|
298
293
|
return;
|
|
@@ -309,27 +304,27 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
|
|
|
309
304
|
type: "root/blur"
|
|
310
305
|
}), popoverMouseWithinRef.current = !1, onQueryChange && onQueryChange(null), onBlur && onBlur(event));
|
|
311
306
|
}, 0);
|
|
312
|
-
}, $[
|
|
313
|
-
const handleRootBlur =
|
|
314
|
-
let
|
|
315
|
-
$[
|
|
307
|
+
}, $[52] = onBlur, $[53] = onQueryChange, $[54] = relatedElements, $[55] = t17) : t17 = $[55];
|
|
308
|
+
const handleRootBlur = t17;
|
|
309
|
+
let t18;
|
|
310
|
+
$[56] === Symbol.for("react.memo_cache_sentinel") ? (t18 = (event_0) => {
|
|
316
311
|
const listBoxElement = listBoxElementRef.current, focusedElement = event_0.target instanceof HTMLElement ? event_0.target : null, listFocused_0 = listBoxElement?.contains(focusedElement) || !1;
|
|
317
312
|
listFocused_0 !== listFocusedRef.current && (listFocusedRef.current = listFocused_0, dispatch({
|
|
318
313
|
type: "root/setListFocused",
|
|
319
314
|
listFocused: listFocused_0
|
|
320
315
|
}));
|
|
321
|
-
}, $[
|
|
322
|
-
const handleRootFocus =
|
|
323
|
-
let
|
|
324
|
-
$[
|
|
316
|
+
}, $[56] = t18) : t18 = $[56];
|
|
317
|
+
const handleRootFocus = t18;
|
|
318
|
+
let t19;
|
|
319
|
+
$[57] !== onChange || $[58] !== onQueryChange || $[59] !== onSelect ? (t19 = (v) => {
|
|
325
320
|
dispatch({
|
|
326
321
|
type: "value/change",
|
|
327
322
|
value: v
|
|
328
323
|
}), popoverMouseWithinRef.current = !1, onSelect && onSelect(v), valueRef.current = v, onChange && onChange(v), onQueryChange && onQueryChange(null), inputElementRef.current?.focus();
|
|
329
|
-
}, $[
|
|
330
|
-
const handleOptionSelect =
|
|
331
|
-
let
|
|
332
|
-
$[
|
|
324
|
+
}, $[57] = onChange, $[58] = onQueryChange, $[59] = onSelect, $[60] = t19) : t19 = $[60];
|
|
325
|
+
const handleOptionSelect = t19;
|
|
326
|
+
let t20;
|
|
327
|
+
$[61] !== activeValue || $[62] !== filteredOptions || $[63] !== filteredOptionsLen || $[64] !== onQueryChange ? (t20 = (event_1) => {
|
|
333
328
|
if (event_1.key === "ArrowDown") {
|
|
334
329
|
if (event_1.preventDefault(), !filteredOptionsLen)
|
|
335
330
|
return;
|
|
@@ -363,58 +358,58 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
|
|
|
363
358
|
inputElementRef.current?.focus();
|
|
364
359
|
return;
|
|
365
360
|
}
|
|
366
|
-
}, $[
|
|
367
|
-
const handleRootKeyDown =
|
|
368
|
-
let
|
|
369
|
-
$[
|
|
361
|
+
}, $[61] = activeValue, $[62] = filteredOptions, $[63] = filteredOptionsLen, $[64] = onQueryChange, $[65] = t20) : t20 = $[65];
|
|
362
|
+
const handleRootKeyDown = t20;
|
|
363
|
+
let t21;
|
|
364
|
+
$[66] !== onQueryChange ? (t21 = (event_2) => {
|
|
370
365
|
const nextQuery = event_2.currentTarget.value;
|
|
371
366
|
dispatch({
|
|
372
367
|
type: "input/change",
|
|
373
368
|
query: nextQuery
|
|
374
369
|
}), onQueryChange && onQueryChange(nextQuery);
|
|
375
|
-
}, $[
|
|
376
|
-
const handleInputChange =
|
|
377
|
-
let
|
|
378
|
-
$[
|
|
370
|
+
}, $[66] = onQueryChange, $[67] = t21) : t21 = $[67];
|
|
371
|
+
const handleInputChange = t21;
|
|
372
|
+
let t22;
|
|
373
|
+
$[68] !== currentOption || $[69] !== renderValue || $[70] !== value ? (t22 = () => {
|
|
379
374
|
dispatch({
|
|
380
375
|
type: "root/open",
|
|
381
376
|
query: value ? renderValue(value, currentOption) : ""
|
|
382
377
|
});
|
|
383
|
-
}, $[
|
|
384
|
-
const dispatchOpen =
|
|
385
|
-
let
|
|
386
|
-
$[
|
|
378
|
+
}, $[68] = currentOption, $[69] = renderValue, $[70] = value, $[71] = t22) : t22 = $[71];
|
|
379
|
+
const dispatchOpen = t22;
|
|
380
|
+
let t23;
|
|
381
|
+
$[72] !== dispatchOpen || $[73] !== focused || $[74] !== onFocus || $[75] !== openOnFocus ? (t23 = (event_3) => {
|
|
387
382
|
focused || (dispatch({
|
|
388
383
|
type: "input/focus"
|
|
389
384
|
}), onFocus && onFocus(event_3), openOnFocus && dispatchOpen());
|
|
390
|
-
}, $[
|
|
391
|
-
const handleInputFocus =
|
|
385
|
+
}, $[72] = dispatchOpen, $[73] = focused, $[74] = onFocus, $[75] = openOnFocus, $[76] = t23) : t23 = $[76];
|
|
386
|
+
const handleInputFocus = t23;
|
|
387
|
+
let t24;
|
|
388
|
+
$[77] === Symbol.for("react.memo_cache_sentinel") ? (t24 = () => {
|
|
389
|
+
popoverMouseWithinRef.current = !0;
|
|
390
|
+
}, $[77] = t24) : t24 = $[77];
|
|
391
|
+
const handlePopoverMouseEnter = t24;
|
|
392
392
|
let t25;
|
|
393
393
|
$[78] === Symbol.for("react.memo_cache_sentinel") ? (t25 = () => {
|
|
394
|
-
popoverMouseWithinRef.current = !
|
|
394
|
+
popoverMouseWithinRef.current = !1;
|
|
395
395
|
}, $[78] = t25) : t25 = $[78];
|
|
396
|
-
const
|
|
396
|
+
const handlePopoverMouseLeave = t25;
|
|
397
397
|
let t26;
|
|
398
|
-
$[79]
|
|
399
|
-
popoverMouseWithinRef.current = !1;
|
|
400
|
-
}, $[79] = t26) : t26 = $[79];
|
|
401
|
-
const handlePopoverMouseLeave = t26;
|
|
402
|
-
let t27;
|
|
403
|
-
$[80] !== onChange || $[81] !== onQueryChange ? (t27 = () => {
|
|
398
|
+
$[79] !== onChange || $[80] !== onQueryChange ? (t26 = () => {
|
|
404
399
|
dispatch({
|
|
405
400
|
type: "root/clear"
|
|
406
401
|
}), valueRef.current = "", onChange && onChange(""), onQueryChange && onQueryChange(null), inputElementRef.current?.focus();
|
|
407
|
-
}, $[
|
|
408
|
-
const handleClearButtonClick =
|
|
409
|
-
let
|
|
410
|
-
$[
|
|
402
|
+
}, $[79] = onChange, $[80] = onQueryChange, $[81] = t26) : t26 = $[81];
|
|
403
|
+
const handleClearButtonClick = t26;
|
|
404
|
+
let t27;
|
|
405
|
+
$[82] === Symbol.for("react.memo_cache_sentinel") ? (t27 = () => {
|
|
411
406
|
dispatch({
|
|
412
407
|
type: "input/focus"
|
|
413
408
|
});
|
|
414
|
-
}, $[
|
|
415
|
-
const handleClearButtonFocus =
|
|
416
|
-
let
|
|
417
|
-
$[
|
|
409
|
+
}, $[82] = t27) : t27 = $[82];
|
|
410
|
+
const handleClearButtonFocus = t27;
|
|
411
|
+
let t28, t29;
|
|
412
|
+
$[83] !== valueProp ? (t28 = () => {
|
|
418
413
|
if (valueProp !== valuePropRef.current) {
|
|
419
414
|
valuePropRef.current = valueProp, valueProp !== void 0 && (dispatch({
|
|
420
415
|
type: "value/change",
|
|
@@ -426,16 +421,16 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
|
|
|
426
421
|
type: "value/change",
|
|
427
422
|
value: valueProp || null
|
|
428
423
|
}));
|
|
429
|
-
},
|
|
430
|
-
let
|
|
431
|
-
$[
|
|
424
|
+
}, t29 = [valueProp], $[83] = valueProp, $[84] = t28, $[85] = t29) : (t28 = $[84], t29 = $[85]), react.useEffect(t28, t29);
|
|
425
|
+
let t30, t31;
|
|
426
|
+
$[86] !== focused ? (t30 = () => {
|
|
432
427
|
!focused && valueRef.current && dispatch({
|
|
433
428
|
type: "root/setActiveValue",
|
|
434
429
|
value: valueRef.current
|
|
435
430
|
});
|
|
436
|
-
},
|
|
437
|
-
let
|
|
438
|
-
$[
|
|
431
|
+
}, t31 = [focused], $[86] = focused, $[87] = t30, $[88] = t31) : (t30 = $[87], t31 = $[88]), react.useEffect(t30, t31);
|
|
432
|
+
let t32, t33;
|
|
433
|
+
$[89] !== activeValue || $[90] !== filteredOptions ? (t32 = () => {
|
|
439
434
|
const listElement = listBoxElementRef.current;
|
|
440
435
|
if (!listElement)
|
|
441
436
|
return;
|
|
@@ -448,95 +443,95 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
|
|
|
448
443
|
focusFirstDescendant(activeItemElement);
|
|
449
444
|
}
|
|
450
445
|
}
|
|
451
|
-
},
|
|
452
|
-
let
|
|
446
|
+
}, t33 = [activeValue, filteredOptions], $[89] = activeValue, $[90] = filteredOptions, $[91] = t32, $[92] = t33) : (t32 = $[91], t33 = $[92]), react.useEffect(t32, t33);
|
|
447
|
+
let t34;
|
|
453
448
|
bb0: {
|
|
454
449
|
if (!loading && !disabled && value) {
|
|
455
|
-
let
|
|
456
|
-
$[
|
|
450
|
+
let t352;
|
|
451
|
+
$[93] === Symbol.for("react.memo_cache_sentinel") ? (t352 = {
|
|
457
452
|
"aria-label": "Clear",
|
|
458
453
|
onFocus: handleClearButtonFocus
|
|
459
|
-
}, $[
|
|
454
|
+
}, $[93] = t352) : t352 = $[93], t34 = t352;
|
|
460
455
|
break bb0;
|
|
461
456
|
}
|
|
462
|
-
|
|
457
|
+
t34 = void 0;
|
|
463
458
|
}
|
|
464
|
-
const clearButton =
|
|
465
|
-
let
|
|
466
|
-
$[
|
|
459
|
+
const clearButton = t34, openButtonBoxPadding = padding.map(_temp$3), openButtonPadding = padding.map(_temp2$1), openButtonProps = typeof openButton == "object" ? openButton : _visualEditing.EMPTY_RECORD;
|
|
460
|
+
let t35;
|
|
461
|
+
$[94] !== dispatchOpen || $[95] !== openButtonProps ? (t35 = (event_4) => {
|
|
467
462
|
dispatchOpen(), openButtonProps.onClick && openButtonProps.onClick(event_4), _raf(() => inputElementRef.current?.focus());
|
|
468
|
-
}, $[
|
|
469
|
-
const handleOpenClick =
|
|
463
|
+
}, $[94] = dispatchOpen, $[95] = openButtonProps, $[96] = t35) : t35 = $[96];
|
|
464
|
+
const handleOpenClick = t35;
|
|
465
|
+
let t36;
|
|
466
|
+
$[97] !== disabled || $[98] !== expanded || $[99] !== fontSize || $[100] !== handleOpenClick || $[101] !== openButton || $[102] !== openButtonBoxPadding || $[103] !== openButtonPadding || $[104] !== openButtonProps || $[105] !== readOnly ? (t36 = !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, $[97] = disabled, $[98] = expanded, $[99] = fontSize, $[100] = handleOpenClick, $[101] = openButton, $[102] = openButtonBoxPadding, $[103] = openButtonPadding, $[104] = openButtonProps, $[105] = readOnly, $[106] = t36) : t36 = $[106];
|
|
467
|
+
const openButtonNode = t36;
|
|
470
468
|
let t37;
|
|
471
|
-
$[98] !== disabled || $[99] !== expanded || $[100] !== fontSize || $[101] !== handleOpenClick || $[102] !== openButton || $[103] !== openButtonBoxPadding || $[104] !== openButtonPadding || $[105] !== openButtonProps || $[106] !== readOnly ? (t37 = !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, $[98] = disabled, $[99] = expanded, $[100] = fontSize, $[101] = handleOpenClick, $[102] = openButton, $[103] = openButtonBoxPadding, $[104] = openButtonPadding, $[105] = openButtonProps, $[106] = readOnly, $[107] = t37) : t37 = $[107];
|
|
472
|
-
const openButtonNode = t37;
|
|
473
|
-
let t38;
|
|
474
469
|
bb1: {
|
|
475
470
|
if (query === null) {
|
|
476
471
|
if (value !== null) {
|
|
477
|
-
let
|
|
478
|
-
$[
|
|
472
|
+
let t382;
|
|
473
|
+
$[107] !== currentOption || $[108] !== renderValue || $[109] !== value ? (t382 = renderValue(value, currentOption), $[107] = currentOption, $[108] = renderValue, $[109] = value, $[110] = t382) : t382 = $[110], t37 = t382;
|
|
479
474
|
break bb1;
|
|
480
475
|
}
|
|
481
|
-
|
|
476
|
+
t37 = "";
|
|
482
477
|
break bb1;
|
|
483
478
|
}
|
|
484
|
-
|
|
479
|
+
t37 = query;
|
|
485
480
|
}
|
|
486
|
-
const inputValue =
|
|
487
|
-
let
|
|
488
|
-
$[
|
|
481
|
+
const inputValue = t37;
|
|
482
|
+
let t38;
|
|
483
|
+
$[111] !== listFocused ? (t38 = (event_5) => {
|
|
489
484
|
event_5.key === "Tab" && listFocused && inputElementRef.current?.focus();
|
|
490
|
-
}, $[
|
|
491
|
-
const handleListBoxKeyDown =
|
|
492
|
-
let
|
|
485
|
+
}, $[111] = listFocused, $[112] = t38) : t38 = $[112];
|
|
486
|
+
const handleListBoxKeyDown = t38;
|
|
487
|
+
let t39;
|
|
493
488
|
bb2: {
|
|
494
489
|
if (filteredOptions.length === 0) {
|
|
495
|
-
|
|
490
|
+
t39 = null;
|
|
496
491
|
break bb2;
|
|
497
492
|
}
|
|
498
|
-
let
|
|
499
|
-
if ($[
|
|
500
|
-
let
|
|
501
|
-
$[
|
|
493
|
+
let t402;
|
|
494
|
+
if ($[113] !== activeValue || $[114] !== currentOption || $[115] !== filteredOptions || $[116] !== handleOptionSelect || $[117] !== id || $[118] !== listFocused || $[119] !== loading || $[120] !== renderOption) {
|
|
495
|
+
let t413;
|
|
496
|
+
$[122] !== activeValue || $[123] !== currentOption || $[124] !== handleOptionSelect || $[125] !== id || $[126] !== listFocused || $[127] !== loading || $[128] !== renderOption ? (t413 = (option_0) => {
|
|
502
497
|
const active = activeValue !== null ? option_0.value === activeValue : currentOption === option_0;
|
|
503
498
|
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), {
|
|
504
499
|
disabled: loading,
|
|
505
500
|
selected: active,
|
|
506
501
|
tabIndex: listFocused && active ? 0 : -1
|
|
507
502
|
}) }, option_0.value);
|
|
508
|
-
}, $[
|
|
503
|
+
}, $[122] = activeValue, $[123] = currentOption, $[124] = handleOptionSelect, $[125] = id, $[126] = listFocused, $[127] = loading, $[128] = renderOption, $[129] = t413) : t413 = $[129], t402 = filteredOptions.map(t413), $[113] = activeValue, $[114] = currentOption, $[115] = filteredOptions, $[116] = handleOptionSelect, $[117] = id, $[118] = listFocused, $[119] = loading, $[120] = renderOption, $[121] = t402;
|
|
509
504
|
} else
|
|
510
|
-
|
|
505
|
+
t402 = $[121];
|
|
506
|
+
let t412;
|
|
507
|
+
$[130] !== listBoxId || $[131] !== t402 ? (t412 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Stack, { as: "ul", "aria-multiselectable": !1, "data-ui": "AutoComplete__resultsList", id: listBoxId, ref: listBoxElementRef, role: "listbox", space: 1, children: t402 }), $[130] = listBoxId, $[131] = t402, $[132] = t412) : t412 = $[132];
|
|
511
508
|
let t422;
|
|
512
|
-
$[
|
|
513
|
-
let t432;
|
|
514
|
-
$[134] !== handleListBoxKeyDown || $[135] !== listBox || $[136] !== t422 ? (t432 = /* @__PURE__ */ jsxRuntime.jsx(ListBox, { "data-ui": "AutoComplete__results", onKeyDown: handleListBoxKeyDown, padding: 1, ...listBox, tabIndex: -1, children: t422 }), $[134] = handleListBoxKeyDown, $[135] = listBox, $[136] = t422, $[137] = t432) : t432 = $[137], t40 = t432;
|
|
509
|
+
$[133] !== handleListBoxKeyDown || $[134] !== listBox || $[135] !== t412 ? (t422 = /* @__PURE__ */ jsxRuntime.jsx(ListBox, { "data-ui": "AutoComplete__results", onKeyDown: handleListBoxKeyDown, padding: 1, ...listBox, tabIndex: -1, children: t412 }), $[133] = handleListBoxKeyDown, $[134] = listBox, $[135] = t412, $[136] = t422) : t422 = $[136], t39 = t422;
|
|
515
510
|
}
|
|
516
|
-
const content2 =
|
|
517
|
-
let
|
|
511
|
+
const content2 = t39;
|
|
512
|
+
let t40;
|
|
518
513
|
bb3: {
|
|
519
514
|
if (renderPopover) {
|
|
520
|
-
const
|
|
521
|
-
let
|
|
522
|
-
$[
|
|
515
|
+
const t413 = !expanded;
|
|
516
|
+
let t422;
|
|
517
|
+
$[137] !== content2 || $[138] !== handlePopoverMouseEnter || $[139] !== handlePopoverMouseLeave || $[140] !== inputElement || $[141] !== renderPopover || $[142] !== t413 ? (t422 = /* @__PURE__ */ jsxRuntime.jsx(RenderPopover, { content: content2, hidden: t413, inputElement, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, resultsPopoverElementRef, renderPopover }), $[137] = content2, $[138] = handlePopoverMouseEnter, $[139] = handlePopoverMouseLeave, $[140] = inputElement, $[141] = renderPopover, $[142] = t413, $[143] = t422) : t422 = $[143], t40 = t422;
|
|
523
518
|
break bb3;
|
|
524
519
|
}
|
|
525
520
|
if (filteredOptionsLen === 0) {
|
|
526
|
-
|
|
521
|
+
t40 = null;
|
|
527
522
|
break bb3;
|
|
528
523
|
}
|
|
529
|
-
let
|
|
530
|
-
$[
|
|
524
|
+
let t412;
|
|
525
|
+
$[144] !== content2 || $[145] !== expanded || $[146] !== handlePopoverMouseEnter || $[147] !== handlePopoverMouseLeave || $[148] !== inputElement || $[149] !== popover || $[150] !== radius ? (t412 = /* @__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 }), $[144] = content2, $[145] = expanded, $[146] = handlePopoverMouseEnter, $[147] = handlePopoverMouseLeave, $[148] = inputElement, $[149] = popover, $[150] = radius, $[151] = t412) : t412 = $[151], t40 = t412;
|
|
531
526
|
}
|
|
532
|
-
const results =
|
|
527
|
+
const results = t40, t41 = loading && AnimatedSpinnerIcon, t42 = suffix || openButtonNode;
|
|
528
|
+
let t43;
|
|
529
|
+
$[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] !== t41 || $[172] !== t42 ? (t43 = /* @__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: t41, id, inputMode: "search", onChange: handleInputChange, onClear: handleClearButtonClick, onFocus: handleInputFocus, padding, prefix, radius, readOnly, ref: setInputElement, role: "combobox", spellCheck: !1, suffix: t42, 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] = t41, $[172] = t42, $[173] = t43) : t43 = $[173];
|
|
533
530
|
let t44;
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
return $[175] !== handleRootBlur || $[176] !== handleRootFocus || $[177] !== handleRootKeyDown || $[178] !== results || $[179] !== t44 ? (t45 = /* @__PURE__ */ jsxRuntime.jsxs(StyledAutocomplete, { "data-ui": "Autocomplete", onBlur: handleRootBlur, onFocus: handleRootFocus, onKeyDown: handleRootKeyDown, ref: rootElementRef, children: [
|
|
537
|
-
t44,
|
|
531
|
+
return $[174] !== handleRootBlur || $[175] !== handleRootFocus || $[176] !== handleRootKeyDown || $[177] !== results || $[178] !== t43 ? (t44 = /* @__PURE__ */ jsxRuntime.jsxs(StyledAutocomplete, { "data-ui": "Autocomplete", onBlur: handleRootBlur, onFocus: handleRootFocus, onKeyDown: handleRootKeyDown, ref: rootElementRef, children: [
|
|
532
|
+
t43,
|
|
538
533
|
results
|
|
539
|
-
] }), $[
|
|
534
|
+
] }), $[174] = handleRootBlur, $[175] = handleRootFocus, $[176] = handleRootKeyDown, $[177] = results, $[178] = t43, $[179] = t44) : t44 = $[179], t44;
|
|
540
535
|
});
|
|
541
536
|
function RenderPopover({
|
|
542
537
|
renderPopover,
|
|
@@ -1790,7 +1785,7 @@ const StyledTreeItem = /* @__PURE__ */ styledComponents.styled.li.withConfig({
|
|
|
1790
1785
|
componentId: "sc-iiskig-2"
|
|
1791
1786
|
})`& > svg{transition:transform 100ms;}`;
|
|
1792
1787
|
function TreeItem(props) {
|
|
1793
|
-
const $ = reactCompilerRuntime.c(
|
|
1788
|
+
const $ = reactCompilerRuntime.c(112);
|
|
1794
1789
|
let IconComponent, children, href, idProp, linkAs, muted, onClick, restProps, t0, t1, t2, t3, t4, text, weight;
|
|
1795
1790
|
$[0] !== props ? ({
|
|
1796
1791
|
children,
|
|
@@ -1809,101 +1804,96 @@ function TreeItem(props) {
|
|
|
1809
1804
|
weight,
|
|
1810
1805
|
...restProps
|
|
1811
1806
|
} = props, $[0] = props, $[1] = IconComponent, $[2] = children, $[3] = href, $[4] = idProp, $[5] = linkAs, $[6] = muted, $[7] = onClick, $[8] = restProps, $[9] = t0, $[10] = t1, $[11] = t2, $[12] = t3, $[13] = t4, $[14] = text, $[15] = weight) : (IconComponent = $[1], children = $[2], href = $[3], idProp = $[4], linkAs = $[5], muted = $[6], onClick = $[7], restProps = $[8], t0 = $[9], t1 = $[10], t2 = $[11], t3 = $[12], t4 = $[13], text = $[14], weight = $[15]);
|
|
1812
|
-
const expandedProp = t0 === void 0 ? !1 : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 2 : t2, selected = t3 === void 0 ? !1 : t3, space = t4 === void 0 ? 2 : t4, [rootElement,
|
|
1813
|
-
let t5;
|
|
1814
|
-
$[16] === Symbol.for("react.memo_cache_sentinel") ? (t5 = (node) => {
|
|
1815
|
-
react.startTransition(() => _setRootElement(node));
|
|
1816
|
-
}, $[16] = t5) : t5 = $[16];
|
|
1817
|
-
const setRootElement = t5, treeitemRef = react.useRef(null), tree = useTree(), {
|
|
1807
|
+
const expandedProp = t0 === void 0 ? !1 : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 2 : t2, selected = t3 === void 0 ? !1 : t3, space = t4 === void 0 ? 2 : t4, [rootElement, setRootElement] = react.useState(null), treeitemRef = react.useRef(null), tree = useTree(), {
|
|
1818
1808
|
path,
|
|
1819
1809
|
registerItem,
|
|
1820
1810
|
setExpanded,
|
|
1821
1811
|
setFocusedElement
|
|
1822
1812
|
} = tree, _id = react.useId(), id = idProp || _id;
|
|
1823
|
-
let
|
|
1824
|
-
if ($[
|
|
1813
|
+
let t5, t6;
|
|
1814
|
+
if ($[16] !== id || $[17] !== path) {
|
|
1825
1815
|
const itemPath = path.concat([id || ""]);
|
|
1826
|
-
|
|
1816
|
+
t5 = itemPath, t6 = itemPath.join("/"), $[16] = id, $[17] = path, $[18] = t5, $[19] = t6;
|
|
1827
1817
|
} else
|
|
1828
|
-
|
|
1829
|
-
let
|
|
1830
|
-
$[
|
|
1831
|
-
const [itemPath_0, itemKey] =
|
|
1832
|
-
let
|
|
1833
|
-
$[
|
|
1818
|
+
t5 = $[18], t6 = $[19];
|
|
1819
|
+
let t7;
|
|
1820
|
+
$[20] !== t5 || $[21] !== t6 ? (t7 = [t5, t6], $[20] = t5, $[21] = t6, $[22] = t7) : t7 = $[22];
|
|
1821
|
+
const [itemPath_0, itemKey] = t7, itemState = tree.state[itemKey], focused = tree.focusedElement === rootElement, expanded = itemState?.expanded === void 0 ? expandedProp : itemState?.expanded || !1, tabIndex = tree.focusedElement && tree.focusedElement === rootElement ? 0 : -1, t8 = tree.level + 1;
|
|
1822
|
+
let t9;
|
|
1823
|
+
$[23] !== itemPath_0 || $[24] !== t8 || $[25] !== tree ? (t9 = {
|
|
1834
1824
|
...tree,
|
|
1835
|
-
level:
|
|
1825
|
+
level: t8,
|
|
1836
1826
|
path: itemPath_0
|
|
1837
|
-
}, $[
|
|
1838
|
-
const contextValue =
|
|
1839
|
-
let
|
|
1840
|
-
$[
|
|
1827
|
+
}, $[23] = itemPath_0, $[24] = t8, $[25] = tree, $[26] = t9) : t9 = $[26];
|
|
1828
|
+
const contextValue = t9;
|
|
1829
|
+
let t10;
|
|
1830
|
+
$[27] !== expanded || $[28] !== itemKey || $[29] !== onClick || $[30] !== rootElement || $[31] !== setExpanded || $[32] !== setFocusedElement ? (t10 = (event) => {
|
|
1841
1831
|
onClick && onClick(event);
|
|
1842
1832
|
const target = event.target;
|
|
1843
1833
|
target instanceof HTMLElement && (target.getAttribute("data-ui") === "TreeItem" || target.closest('[data-ui="TreeItem__box"]')) && (event.stopPropagation(), setExpanded(itemKey, !expanded), setFocusedElement(rootElement));
|
|
1844
|
-
}, $[
|
|
1845
|
-
const handleClick =
|
|
1846
|
-
let
|
|
1847
|
-
$[
|
|
1834
|
+
}, $[27] = expanded, $[28] = itemKey, $[29] = onClick, $[30] = rootElement, $[31] = setExpanded, $[32] = setFocusedElement, $[33] = t10) : t10 = $[33];
|
|
1835
|
+
const handleClick = t10;
|
|
1836
|
+
let t11;
|
|
1837
|
+
$[34] !== focused || $[35] !== rootElement ? (t11 = (event_0) => {
|
|
1848
1838
|
focused && event_0.key === "Enter" && (treeitemRef.current || rootElement)?.click();
|
|
1849
|
-
}, $[
|
|
1850
|
-
const handleKeyDown =
|
|
1851
|
-
let
|
|
1852
|
-
$[
|
|
1839
|
+
}, $[34] = focused, $[35] = rootElement, $[36] = t11) : t11 = $[36];
|
|
1840
|
+
const handleKeyDown = t11;
|
|
1841
|
+
let t12, t13;
|
|
1842
|
+
$[37] !== expanded || $[38] !== itemKey || $[39] !== registerItem || $[40] !== rootElement || $[41] !== selected ? (t12 = () => {
|
|
1853
1843
|
if (rootElement)
|
|
1854
1844
|
return registerItem(rootElement, itemKey, expanded, selected);
|
|
1855
|
-
},
|
|
1856
|
-
const
|
|
1857
|
-
let
|
|
1858
|
-
$[
|
|
1859
|
-
visibility:
|
|
1845
|
+
}, t13 = [expanded, itemKey, registerItem, rootElement, selected], $[37] = expanded, $[38] = itemKey, $[39] = registerItem, $[40] = rootElement, $[41] = selected, $[42] = t12, $[43] = t13) : (t12 = $[42], t13 = $[43]), react.useEffect(t12, t13);
|
|
1846
|
+
const t14 = IconComponent || children ? "visible" : "hidden";
|
|
1847
|
+
let t15;
|
|
1848
|
+
$[44] !== t14 ? (t15 = {
|
|
1849
|
+
visibility: t14,
|
|
1860
1850
|
pointerEvents: "none"
|
|
1861
|
-
}, $[
|
|
1851
|
+
}, $[44] = t14, $[45] = t15) : t15 = $[45];
|
|
1852
|
+
let t16;
|
|
1853
|
+
$[46] !== IconComponent || $[47] !== fontSize || $[48] !== muted || $[49] !== weight ? (t16 = IconComponent && /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { muted, size: fontSize, weight, children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {}) }), $[46] = IconComponent, $[47] = fontSize, $[48] = muted, $[49] = weight, $[50] = t16) : t16 = $[50];
|
|
1862
1854
|
let t17;
|
|
1863
|
-
$[
|
|
1864
|
-
let t18;
|
|
1865
|
-
$[52] !== IconComponent || $[53] !== expanded || $[54] !== fontSize || $[55] !== muted || $[56] !== weight ? (t18 = !IconComponent && /* @__PURE__ */ jsxRuntime.jsx(ToggleArrowText, { muted, size: fontSize, weight, children: /* @__PURE__ */ jsxRuntime.jsx(icons.ToggleArrowRightIcon, { style: {
|
|
1855
|
+
$[51] !== IconComponent || $[52] !== expanded || $[53] !== fontSize || $[54] !== muted || $[55] !== weight ? (t17 = !IconComponent && /* @__PURE__ */ jsxRuntime.jsx(ToggleArrowText, { muted, size: fontSize, weight, children: /* @__PURE__ */ jsxRuntime.jsx(icons.ToggleArrowRightIcon, { style: {
|
|
1866
1856
|
transform: expanded ? "rotate(90deg)" : void 0
|
|
1867
|
-
} }) }), $[
|
|
1857
|
+
} }) }), $[51] = IconComponent, $[52] = expanded, $[53] = fontSize, $[54] = muted, $[55] = weight, $[56] = t17) : t17 = $[56];
|
|
1858
|
+
let t18;
|
|
1859
|
+
$[57] !== space || $[58] !== t15 || $[59] !== t16 || $[60] !== t17 ? (t18 = /* @__PURE__ */ jsxRuntime.jsxs(_visualEditing.Box, { marginRight: space, style: t15, children: [
|
|
1860
|
+
t16,
|
|
1861
|
+
t17
|
|
1862
|
+
] }), $[57] = space, $[58] = t15, $[59] = t16, $[60] = t17, $[61] = t18) : t18 = $[61];
|
|
1868
1863
|
let t19;
|
|
1869
|
-
$[
|
|
1870
|
-
t17,
|
|
1871
|
-
t18
|
|
1872
|
-
] }), $[58] = space, $[59] = t16, $[60] = t17, $[61] = t18, $[62] = t19) : t19 = $[62];
|
|
1864
|
+
$[62] !== fontSize || $[63] !== muted || $[64] !== text || $[65] !== weight ? (t19 = /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Box, { flex: 1, children: /* @__PURE__ */ jsxRuntime.jsx(_visualEditing.Text, { muted, size: fontSize, textOverflow: "ellipsis", weight, children: text }) }), $[62] = fontSize, $[63] = muted, $[64] = text, $[65] = weight, $[66] = t19) : t19 = $[66];
|
|
1873
1865
|
let t20;
|
|
1874
|
-
$[
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
] }), $[68] = padding, $[69] = t19, $[70] = t20, $[71] = t21) : t21 = $[71];
|
|
1880
|
-
const content2 = t21;
|
|
1866
|
+
$[67] !== padding || $[68] !== t18 || $[69] !== t19 ? (t20 = /* @__PURE__ */ jsxRuntime.jsxs(_visualEditing.Flex, { padding, children: [
|
|
1867
|
+
t18,
|
|
1868
|
+
t19
|
|
1869
|
+
] }), $[67] = padding, $[68] = t18, $[69] = t19, $[70] = t20) : t20 = $[70];
|
|
1870
|
+
const content2 = t20;
|
|
1881
1871
|
if (href) {
|
|
1882
|
-
const
|
|
1872
|
+
const t212 = selected ? "" : void 0;
|
|
1873
|
+
let t222;
|
|
1874
|
+
$[71] !== content2 || $[72] !== expanded || $[73] !== href || $[74] !== linkAs || $[75] !== tabIndex || $[76] !== tree.level ? (t222 = /* @__PURE__ */ jsxRuntime.jsx(TreeItemBox, { $level: tree.level, "aria-expanded": expanded, as: linkAs, "data-ui": "TreeItem__box", href, ref: treeitemRef, role: "treeitem", tabIndex, children: content2 }), $[71] = content2, $[72] = expanded, $[73] = href, $[74] = linkAs, $[75] = tabIndex, $[76] = tree.level, $[77] = t222) : t222 = $[77];
|
|
1883
1875
|
let t232;
|
|
1884
|
-
$[
|
|
1876
|
+
$[78] !== children || $[79] !== expanded ? (t232 = children && /* @__PURE__ */ jsxRuntime.jsx(TreeGroup, { hidden: !expanded, children }), $[78] = children, $[79] = expanded, $[80] = t232) : t232 = $[80];
|
|
1885
1877
|
let t242;
|
|
1886
|
-
$[
|
|
1878
|
+
$[81] !== contextValue || $[82] !== t232 ? (t242 = /* @__PURE__ */ jsxRuntime.jsx(TreeContext.Provider, { value: contextValue, children: t232 }), $[81] = contextValue, $[82] = t232, $[83] = t242) : t242 = $[83];
|
|
1887
1879
|
let t252;
|
|
1888
|
-
$[
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
t252
|
|
1893
|
-
] }), $[85] = handleClick, $[86] = id, $[87] = itemKey, $[88] = restProps, $[89] = t222, $[90] = t232, $[91] = t252, $[92] = t262) : t262 = $[92], t262;
|
|
1880
|
+
return $[84] !== handleClick || $[85] !== id || $[86] !== itemKey || $[87] !== restProps || $[88] !== t212 || $[89] !== t222 || $[90] !== t242 ? (t252 = /* @__PURE__ */ jsxRuntime.jsxs(StyledTreeItem, { "data-selected": t212, "data-tree-id": id, "data-tree-key": itemKey, "data-ui": "TreeItem", ...restProps, onClick: handleClick, ref: setRootElement, role: "none", children: [
|
|
1881
|
+
t222,
|
|
1882
|
+
t242
|
|
1883
|
+
] }), $[84] = handleClick, $[85] = id, $[86] = itemKey, $[87] = restProps, $[88] = t212, $[89] = t222, $[90] = t242, $[91] = t252) : t252 = $[91], t252;
|
|
1894
1884
|
}
|
|
1895
|
-
const
|
|
1885
|
+
const t21 = selected ? "" : void 0;
|
|
1886
|
+
let t22;
|
|
1887
|
+
$[92] !== content2 || $[93] !== tree.level ? (t22 = /* @__PURE__ */ jsxRuntime.jsx(TreeItemBox, { $level: tree.level, as: "div", "data-ui": "TreeItem__box", children: content2 }), $[92] = content2, $[93] = tree.level, $[94] = t22) : t22 = $[94];
|
|
1896
1888
|
let t23;
|
|
1897
|
-
$[
|
|
1889
|
+
$[95] !== children || $[96] !== expanded ? (t23 = children && /* @__PURE__ */ jsxRuntime.jsx(TreeGroup, { expanded, children }), $[95] = children, $[96] = expanded, $[97] = t23) : t23 = $[97];
|
|
1898
1890
|
let t24;
|
|
1899
|
-
$[
|
|
1891
|
+
$[98] !== contextValue || $[99] !== t23 ? (t24 = /* @__PURE__ */ jsxRuntime.jsx(TreeContext.Provider, { value: contextValue, children: t23 }), $[98] = contextValue, $[99] = t23, $[100] = t24) : t24 = $[100];
|
|
1900
1892
|
let t25;
|
|
1901
|
-
$[
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
t25
|
|
1906
|
-
] }), $[102] = expanded, $[103] = handleClick, $[104] = handleKeyDown, $[105] = id, $[106] = itemKey, $[107] = restProps, $[108] = t22, $[109] = t23, $[110] = t25, $[111] = tabIndex, $[112] = t26) : t26 = $[112], t26;
|
|
1893
|
+
return $[101] !== expanded || $[102] !== handleClick || $[103] !== handleKeyDown || $[104] !== id || $[105] !== itemKey || $[106] !== restProps || $[107] !== t21 || $[108] !== t22 || $[109] !== t24 || $[110] !== tabIndex ? (t25 = /* @__PURE__ */ jsxRuntime.jsxs(StyledTreeItem, { "data-selected": t21, "data-ui": "TreeItem", "data-tree-id": id, "data-tree-key": itemKey, ...restProps, "aria-expanded": expanded, onClick: handleClick, onKeyDown: handleKeyDown, ref: setRootElement, role: "treeitem", tabIndex, children: [
|
|
1894
|
+
t22,
|
|
1895
|
+
t24
|
|
1896
|
+
] }), $[101] = expanded, $[102] = handleClick, $[103] = handleKeyDown, $[104] = id, $[105] = itemKey, $[106] = restProps, $[107] = t21, $[108] = t22, $[109] = t24, $[110] = tabIndex, $[111] = t25) : t25 = $[111], t25;
|
|
1907
1897
|
}
|
|
1908
1898
|
TreeItem.displayName = "TreeItem";
|
|
1909
1899
|
exports.Arrow = _visualEditing.Arrow;
|