@sanity/ui 4.0.0-static.33 → 4.0.0-static.34

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { SpinnerIcon, CloseIcon, ChevronDownIcon, ChevronRightIcon, ToggleArrowRightIcon, CheckmarkIcon, RemoveIcon } from "@sanity/icons";
4
- import { useState, isValidElement, useDebugValue, useSyncExternalStore, createContext, use, useRef, useImperativeHandle, useEffect, cloneElement, useReducer, Children, Fragment as Fragment$1, startTransition, useId, lazy, Suspense, useLayoutEffect, Component } from "react";
4
+ import { isValidElement, useDebugValue, useSyncExternalStore, createContext, use, useRef, useImperativeHandle, useEffect, useState, cloneElement, useReducer, Children, Fragment as Fragment$1, startTransition, useId, lazy, Suspense, useLayoutEffect, Component } from "react";
5
5
  import { box, text, textOverflow, animatedSpinnerIcon, spinner, button, buttonLoadingBox, _arrow, vars, _arrowSvg, _arrowStrokeMask, _arrowStroke, _arrowShape, card, BREAKPOINTS, popoverCard, popover, _selectable, stack, textInput, textInputPrefix, textInputElement, _inputElement, _inputPresentation, textInputSuffix, breadcrumbs, container as container$1, dialogCard, dialogHeader, dialogContent, dialogScrollerShadowTop, dialogScroller, dialogScrollerShadowBottom, dialogFooter, dialog, dialogContainer, kbd, menu, menuDivider, toast, toastLayer, treeItem, label, avatar, avatarArrow, avatarInitials, avatarImage, avatarImageOutline, avatarCounter, avatarStack, badge, checkbox, checkboxInput, checkboxPresentation, code, heading, radio, radioInput, radioPresentation, select, selectPresentation, skeleton, codeSkeleton, headingSkeleton, labelSkeleton, textSkeleton, srOnly, _switch, _switchElement, _switchPresentation, _switchTrack, _switchThumb, textArea, tooltip, root } from "@sanity/ui/css";
6
6
  import { isValidElementType } from "react-is";
7
7
  import { detectOverflow, useFloating, autoPlacement, flip, offset, shift, arrow, hide, autoUpdate } from "@floating-ui/react-dom";
@@ -119,18 +119,13 @@ function isArray(val) {
119
119
  function isRecord(value) {
120
120
  return !!(value && typeof value == "object" && !Array.isArray(value));
121
121
  }
122
- function _getArrayProp(val, defaultVal) {
123
- return val === void 0 ? defaultVal || EMPTY_ARRAY : Array.isArray(val) ? val : [val];
124
- }
125
122
  function _getResponsiveProp(val, defaultVal) {
126
123
  return val === void 0 ? defaultVal || EMPTY_ARRAY : isArray(val) || isRecord(val) ? val : [val];
127
124
  }
128
125
  function useResponsiveProp(val, defaultVal) {
129
126
  const $ = c(3);
130
127
  let t0;
131
- $[0] !== defaultVal || $[1] !== val ? (t0 = () => [_getResponsiveProp(val, defaultVal), JSON.stringify(val ?? defaultVal)], $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2];
132
- const [t1, setCache] = useState(t0), [cachedVal, cachedHash] = t1, hash = JSON.stringify(val ?? defaultVal);
133
- return hash !== cachedHash && setCache([_getResponsiveProp(val, defaultVal), hash]), cachedVal;
128
+ return $[0] !== defaultVal || $[1] !== val ? (t0 = _getResponsiveProp(val, defaultVal), $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2], t0;
134
129
  }
135
130
  const DEFAULT_BOX_ELEMENT = "div";
136
131
  function Box(props) {
@@ -520,9 +515,8 @@ function CardProvider(props) {
520
515
  scheme,
521
516
  unstable_CompatProvider
522
517
  }, $[0] = scheme, $[1] = tone, $[2] = unstable_CompatProvider, $[3] = t0) : t0 = $[3];
523
- const t1 = t0;
524
- let t2;
525
- return $[4] !== children || $[5] !== t1 ? (t2 = /* @__PURE__ */ jsx(CardContext.Provider, { value: t1, children }), $[4] = children, $[5] = t1, $[6] = t2) : t2 = $[6], t2;
518
+ let t1;
519
+ return $[4] !== children || $[5] !== t0 ? (t1 = /* @__PURE__ */ jsx(CardContext, { value: t0, children }), $[4] = children, $[5] = t0, $[6] = t1) : t1 = $[6], t1;
526
520
  }
527
521
  function useCard() {
528
522
  const card2 = use(CardContext);
@@ -891,18 +885,21 @@ function useMediaIndex() {
891
885
  return useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
892
886
  }
893
887
  function LayerProvider(props) {
894
- const $ = c(19), {
888
+ const $ = c(21), {
895
889
  children,
896
890
  zOffset: t0
897
891
  } = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = use(LayerContext);
898
892
  let t1;
899
893
  $[0] !== parentContextValue ? (t1 = parentContextValue && getLayerContext(parentContextValue), $[0] = parentContextValue, $[1] = t1) : t1 = $[1];
900
- const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1, zOffset = useResponsiveProp(zOffsetProp), maxMediaIndex = Object.values(zOffset).length - 1, mediaIndex = Math.min(useMediaIndex(), maxMediaIndex), zIndex = parent ? parent.zIndex + (zOffset[mediaIndex] ?? 0) : zOffset[mediaIndex] ?? 0;
894
+ const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1;
901
895
  let t2;
902
- $[2] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {}, $[2] = t2) : t2 = $[2];
903
- const [, setChildLayers] = useState(t2), [size2, setSize] = useState(0), isTopLayer = size2 === 0;
896
+ $[2] !== zOffsetProp ? (t2 = _getResponsiveProp(zOffsetProp), $[2] = zOffsetProp, $[3] = t2) : t2 = $[3];
897
+ const zOffset = t2, maxMediaIndex = Object.values(zOffset).length - 1, mediaIndex = Math.min(useMediaIndex(), maxMediaIndex), zIndex = parent ? parent.zIndex + (zOffset[mediaIndex] ?? 0) : zOffset[mediaIndex] ?? 0;
904
898
  let t3;
905
- $[3] !== parentRegisterChild || $[4] !== setChildLayers ? (t3 = (childLevel) => {
899
+ $[4] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {}, $[4] = t3) : t3 = $[4];
900
+ const [, setChildLayers] = useState(t3), [size2, setSize] = useState(0), isTopLayer = size2 === 0;
901
+ let t4;
902
+ $[5] !== parentRegisterChild || $[6] !== setChildLayers ? (t4 = (childLevel) => {
906
903
  const parentDispose = parentRegisterChild?.(childLevel);
907
904
  return childLevel !== void 0 ? setChildLayers((state) => {
908
905
  const prevLen = state[childLevel] ?? 0, nextState = {
@@ -918,22 +915,22 @@ function LayerProvider(props) {
918
915
  return nextState_0[childLevel] === 1 ? (delete nextState_0[childLevel], setSize(Object.keys(nextState_0).length)) : nextState_0[childLevel] = nextState_0[childLevel] - 1, nextState_0;
919
916
  }) : setSize(_temp2$3), parentDispose?.();
920
917
  };
921
- }, $[3] = parentRegisterChild, $[4] = setChildLayers, $[5] = t3) : t3 = $[5];
922
- const registerChild = t3;
923
- let t4, t5;
924
- $[6] !== level || $[7] !== parentRegisterChild ? (t4 = () => parentRegisterChild?.(level), t5 = [level, parentRegisterChild], $[6] = level, $[7] = parentRegisterChild, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), useEffect(t4, t5);
925
- let t6;
926
- $[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (t6 = {
918
+ }, $[5] = parentRegisterChild, $[6] = setChildLayers, $[7] = t4) : t4 = $[7];
919
+ const registerChild = t4;
920
+ let t5, t6;
921
+ $[8] !== level || $[9] !== parentRegisterChild ? (t5 = () => parentRegisterChild?.(level), t6 = [level, parentRegisterChild], $[8] = level, $[9] = parentRegisterChild, $[10] = t5, $[11] = t6) : (t5 = $[10], t6 = $[11]), useEffect(t5, t6);
922
+ let t7;
923
+ $[12] !== isTopLayer || $[13] !== level || $[14] !== registerChild || $[15] !== size2 || $[16] !== zIndex ? (t7 = {
927
924
  version: 0,
928
925
  isTopLayer,
929
926
  level,
930
927
  registerChild,
931
928
  size: size2,
932
929
  zIndex
933
- }, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] = t6) : t6 = $[15];
934
- const value = t6;
935
- let t7;
936
- return $[16] !== children || $[17] !== value ? (t7 = /* @__PURE__ */ jsx(LayerContext.Provider, { value, children }), $[16] = children, $[17] = value, $[18] = t7) : t7 = $[18], t7;
930
+ }, $[12] = isTopLayer, $[13] = level, $[14] = registerChild, $[15] = size2, $[16] = zIndex, $[17] = t7) : t7 = $[17];
931
+ const value = t7;
932
+ let t8;
933
+ return $[18] !== children || $[19] !== value ? (t8 = /* @__PURE__ */ jsx(LayerContext, { value, children }), $[18] = children, $[19] = value, $[20] = t8) : t8 = $[20], t8;
937
934
  }
938
935
  function _temp2$3(v_0) {
939
936
  return v_0 - 1;
@@ -1039,7 +1036,7 @@ function ViewportOverlay() {
1039
1036
  } }), $[0] = zIndex, $[1] = t0) : t0 = $[1], t0;
1040
1037
  }
1041
1038
  function Popover(props) {
1042
- const $ = c(111), boundaryElementContext = useBoundaryElement(), t0 = props;
1039
+ const $ = c(113), boundaryElementContext = useBoundaryElement(), t0 = props;
1043
1040
  let _fallbackPlacements, _floatingBoundary, _referenceBoundary, childProp, className, content2, disabled, forwardedRef, matchReferenceWidth, modal, open, padding, portal, referenceElement, rest, scheme, t1, t10, t11, t12, t13, t14, t2, t3, t4, t5, t6, t7, t8, t9, updateRef;
1044
1041
  if ($[0] !== t0) {
1045
1042
  const {
@@ -1061,7 +1058,7 @@ function Popover(props) {
1061
1058
  overflow: t292,
1062
1059
  padding: t302,
1063
1060
  placement: t312,
1064
- placementStrategy: t32,
1061
+ placementStrategy: t322,
1065
1062
  portal: t33,
1066
1063
  preventOverflow: t34,
1067
1064
  radius: t35,
@@ -1076,15 +1073,18 @@ function Popover(props) {
1076
1073
  updateRef: t44,
1077
1074
  ...t45
1078
1075
  } = t0;
1079
- t1 = t152, t2 = t162, t3 = t172, t4 = t182, childProp = t192, className = t202, t5 = t212, content2 = t222, disabled = t232, _fallbackPlacements = t242, matchReferenceWidth = t252, _floatingBoundary = t262, modal = t272, open = t282, t6 = t292, padding = t302, t7 = t312, t8 = t32, portal = t33, t9 = t34, t10 = t35, forwardedRef = t36, _referenceBoundary = t37, referenceElement = t38, scheme = t39, t11 = t40, t12 = t41, t13 = t42, t14 = t43, updateRef = t44, rest = t45, $[0] = t0, $[1] = _fallbackPlacements, $[2] = _floatingBoundary, $[3] = _referenceBoundary, $[4] = childProp, $[5] = className, $[6] = content2, $[7] = disabled, $[8] = forwardedRef, $[9] = matchReferenceWidth, $[10] = modal, $[11] = open, $[12] = padding, $[13] = portal, $[14] = referenceElement, $[15] = rest, $[16] = scheme, $[17] = t1, $[18] = t10, $[19] = t11, $[20] = t12, $[21] = t13, $[22] = t14, $[23] = t2, $[24] = t3, $[25] = t4, $[26] = t5, $[27] = t6, $[28] = t7, $[29] = t8, $[30] = t9, $[31] = updateRef;
1076
+ t1 = t152, t2 = t162, t3 = t172, t4 = t182, childProp = t192, className = t202, t5 = t212, content2 = t222, disabled = t232, _fallbackPlacements = t242, matchReferenceWidth = t252, _floatingBoundary = t262, modal = t272, open = t282, t6 = t292, padding = t302, t7 = t312, t8 = t322, portal = t33, t9 = t34, t10 = t35, forwardedRef = t36, _referenceBoundary = t37, referenceElement = t38, scheme = t39, t11 = t40, t12 = t41, t13 = t42, t14 = t43, updateRef = t44, rest = t45, $[0] = t0, $[1] = _fallbackPlacements, $[2] = _floatingBoundary, $[3] = _referenceBoundary, $[4] = childProp, $[5] = className, $[6] = content2, $[7] = disabled, $[8] = forwardedRef, $[9] = matchReferenceWidth, $[10] = modal, $[11] = open, $[12] = padding, $[13] = portal, $[14] = referenceElement, $[15] = rest, $[16] = scheme, $[17] = t1, $[18] = t10, $[19] = t11, $[20] = t12, $[21] = t13, $[22] = t14, $[23] = t2, $[24] = t3, $[25] = t4, $[26] = t5, $[27] = t6, $[28] = t7, $[29] = t8, $[30] = t9, $[31] = updateRef;
1080
1077
  } else
1081
1078
  _fallbackPlacements = $[1], _floatingBoundary = $[2], _referenceBoundary = $[3], childProp = $[4], className = $[5], content2 = $[6], disabled = $[7], forwardedRef = $[8], matchReferenceWidth = $[9], modal = $[10], open = $[11], padding = $[12], portal = $[13], referenceElement = $[14], rest = $[15], scheme = $[16], t1 = $[17], t10 = $[18], t11 = $[19], t12 = $[20], t13 = $[21], t14 = $[22], t2 = $[23], t3 = $[24], t4 = $[25], t5 = $[26], t6 = $[27], t7 = $[28], t8 = $[29], t9 = $[30], updateRef = $[31];
1082
- const margins = t1 === void 0 ? DEFAULT_POPOVER_MARGINS : t1, _animate = t2 === void 0 ? !1 : t2, arrowProp = t3 === void 0 ? !1 : t3, as = t4 === void 0 ? DEFAULT_POPOVER_ELEMENT : t4, constrainSize = t5 === void 0 ? !1 : t5, overflow = t6 === void 0 ? "hidden" : t6, placementProp = t7 === void 0 ? "bottom" : t7, placementStrategy = t8 === void 0 ? "flip" : t8, preventOverflow = t9 === void 0 ? !0 : t9, radius = t10 === void 0 ? 3 : t10, shadow = t11 === void 0 ? 3 : t11, tone = t12 === void 0 ? "inherit" : t12, widthProp = t13 === void 0 ? "auto" : t13, zOffsetProp = t14 === void 0 ? Z_OFFSETS.popover : t14, fallbackPlacements = _fallbackPlacements ?? DEFAULT_FALLBACK_PLACEMENTS$1[props.placement ?? "bottom"], floatingBoundary = _floatingBoundary ?? boundaryElementContext.element, referenceBoundary = _referenceBoundary ?? boundaryElementContext.element, card2 = useCard(), animate = usePrefersReducedMotion() ? !1 : _animate, zOffset = useResponsiveProp(zOffsetProp), ref = useRef(null), arrowRef = useRef(null);
1079
+ const margins = t1 === void 0 ? DEFAULT_POPOVER_MARGINS : t1, _animate = t2 === void 0 ? !1 : t2, arrowProp = t3 === void 0 ? !1 : t3, as = t4 === void 0 ? DEFAULT_POPOVER_ELEMENT : t4, constrainSize = t5 === void 0 ? !1 : t5, overflow = t6 === void 0 ? "hidden" : t6, placementProp = t7 === void 0 ? "bottom" : t7, placementStrategy = t8 === void 0 ? "flip" : t8, preventOverflow = t9 === void 0 ? !0 : t9, radius = t10 === void 0 ? 3 : t10, shadow = t11 === void 0 ? 3 : t11, tone = t12 === void 0 ? "inherit" : t12, widthProp = t13 === void 0 ? "auto" : t13, zOffsetProp = t14 === void 0 ? Z_OFFSETS.popover : t14, fallbackPlacements = _fallbackPlacements ?? DEFAULT_FALLBACK_PLACEMENTS$1[props.placement ?? "bottom"], floatingBoundary = _floatingBoundary ?? boundaryElementContext.element, referenceBoundary = _referenceBoundary ?? boundaryElementContext.element, card2 = useCard(), animate = usePrefersReducedMotion() ? !1 : _animate;
1083
1080
  let t15;
1084
- $[32] === Symbol.for("react.memo_cache_sentinel") ? (t15 = () => ref.current, $[32] = t15) : t15 = $[32], useImperativeHandle(forwardedRef, t15);
1085
- const referenceWidthRef = useRef(void 0);
1081
+ $[32] !== zOffsetProp ? (t15 = _getResponsiveProp(zOffsetProp), $[32] = zOffsetProp, $[33] = t15) : t15 = $[33];
1082
+ const zOffset = t15, ref = useRef(null), arrowRef = useRef(null);
1086
1083
  let t16;
1087
- $[33] !== animate || $[34] !== arrowProp || $[35] !== constrainSize || $[36] !== fallbackPlacements || $[37] !== floatingBoundary || $[38] !== margins || $[39] !== matchReferenceWidth || $[40] !== placementProp || $[41] !== placementStrategy || $[42] !== preventOverflow || $[43] !== referenceBoundary ? (t16 = {
1084
+ $[34] === Symbol.for("react.memo_cache_sentinel") ? (t16 = () => ref.current, $[34] = t16) : t16 = $[34], useImperativeHandle(forwardedRef, t16);
1085
+ const referenceWidthRef = useRef(void 0);
1086
+ let t17;
1087
+ $[35] !== animate || $[36] !== arrowProp || $[37] !== constrainSize || $[38] !== fallbackPlacements || $[39] !== floatingBoundary || $[40] !== margins || $[41] !== matchReferenceWidth || $[42] !== placementProp || $[43] !== placementStrategy || $[44] !== preventOverflow || $[45] !== referenceBoundary ? (t17 = {
1088
1088
  animate,
1089
1089
  arrowProp,
1090
1090
  arrowRef,
@@ -1099,19 +1099,19 @@ function Popover(props) {
1099
1099
  referenceBoundary,
1100
1100
  referenceWidthRef,
1101
1101
  rootBoundary: "viewport"
1102
- }, $[33] = animate, $[34] = arrowProp, $[35] = constrainSize, $[36] = fallbackPlacements, $[37] = floatingBoundary, $[38] = margins, $[39] = matchReferenceWidth, $[40] = placementProp, $[41] = placementStrategy, $[42] = preventOverflow, $[43] = referenceBoundary, $[44] = t16) : t16 = $[44];
1103
- const middleware = useMiddleware$1(t16);
1104
- let t17;
1105
- $[45] !== referenceElement ? (t17 = referenceElement ? {
1106
- reference: referenceElement
1107
- } : void 0, $[45] = referenceElement, $[46] = t17) : t17 = $[46];
1102
+ }, $[35] = animate, $[36] = arrowProp, $[37] = constrainSize, $[38] = fallbackPlacements, $[39] = floatingBoundary, $[40] = margins, $[41] = matchReferenceWidth, $[42] = placementProp, $[43] = placementStrategy, $[44] = preventOverflow, $[45] = referenceBoundary, $[46] = t17) : t17 = $[46];
1103
+ const middleware = useMiddleware$1(t17);
1108
1104
  let t18;
1109
- $[47] !== middleware || $[48] !== placementProp || $[49] !== t17 ? (t18 = {
1105
+ $[47] !== referenceElement ? (t18 = referenceElement ? {
1106
+ reference: referenceElement
1107
+ } : void 0, $[47] = referenceElement, $[48] = t18) : t18 = $[48];
1108
+ let t19;
1109
+ $[49] !== middleware || $[50] !== placementProp || $[51] !== t18 ? (t19 = {
1110
1110
  middleware,
1111
1111
  placement: placementProp,
1112
1112
  whileElementsMounted: autoUpdate,
1113
- elements: t17
1114
- }, $[47] = middleware, $[48] = placementProp, $[49] = t17, $[50] = t18) : t18 = $[50];
1113
+ elements: t18
1114
+ }, $[49] = middleware, $[50] = placementProp, $[51] = t18, $[52] = t19) : t19 = $[52];
1115
1115
  const {
1116
1116
  x,
1117
1117
  y,
@@ -1120,61 +1120,61 @@ function Popover(props) {
1120
1120
  refs,
1121
1121
  strategy,
1122
1122
  update
1123
- } = useFloating(t18), referenceHidden = middlewareData.hide?.referenceHidden, arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY;
1124
- let t19;
1125
- $[51] !== refs ? (t19 = (node) => {
1126
- ref.current = node, refs.setFloating(node);
1127
- }, $[51] = refs, $[52] = t19) : t19 = $[52];
1128
- const setFloating = t19;
1123
+ } = useFloating(t19), referenceHidden = middlewareData.hide?.referenceHidden, arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY;
1129
1124
  let t20;
1130
- $[53] !== childProp ? (t20 = childProp ? getElementRef(childProp) : null, $[53] = childProp, $[54] = t20) : t20 = $[54];
1125
+ $[53] !== refs ? (t20 = (node) => {
1126
+ ref.current = node, refs.setFloating(node);
1127
+ }, $[53] = refs, $[54] = t20) : t20 = $[54];
1128
+ const setFloating = t20;
1131
1129
  let t21;
1132
- $[55] !== refs.reference.current ? (t21 = () => refs.reference.current, $[55] = refs.reference.current, $[56] = t21) : t21 = $[56], useImperativeHandle(t20, t21);
1130
+ $[55] !== childProp ? (t21 = childProp ? getElementRef(childProp) : null, $[55] = childProp, $[56] = t21) : t21 = $[56];
1133
1131
  let t22;
1132
+ $[57] !== refs.reference.current ? (t22 = () => refs.reference.current, $[57] = refs.reference.current, $[58] = t22) : t22 = $[58], useImperativeHandle(t21, t22);
1133
+ let t23;
1134
1134
  bb0: {
1135
1135
  if (referenceElement) {
1136
- t22 = childProp;
1136
+ t23 = childProp;
1137
1137
  break bb0;
1138
1138
  }
1139
1139
  if (!childProp) {
1140
- t22 = null;
1140
+ t23 = null;
1141
1141
  break bb0;
1142
1142
  }
1143
- let t232;
1144
- $[57] !== childProp || $[58] !== refs.setReference ? (t232 = cloneElement(childProp, {
1143
+ let t242;
1144
+ $[59] !== childProp || $[60] !== refs.setReference ? (t242 = cloneElement(childProp, {
1145
1145
  ref: refs.setReference
1146
- }), $[57] = childProp, $[58] = refs.setReference, $[59] = t232) : t232 = $[59], t22 = t232;
1146
+ }), $[59] = childProp, $[60] = refs.setReference, $[61] = t242) : t242 = $[61], t23 = t242;
1147
1147
  }
1148
- const child = t22;
1149
- let t23, t24;
1150
- if ($[60] !== update ? (t23 = () => update, t24 = [update], $[60] = update, $[61] = t23, $[62] = t24) : (t23 = $[61], t24 = $[62]), useImperativeHandle(updateRef, t23, t24), disabled) {
1151
- let t252;
1152
- return $[63] !== childProp ? (t252 = childProp || /* @__PURE__ */ jsx(Fragment, {}), $[63] = childProp, $[64] = t252) : t252 = $[64], t252;
1148
+ const child = t23;
1149
+ let t24, t25;
1150
+ if ($[62] !== update ? (t24 = () => update, t25 = [update], $[62] = update, $[63] = t24, $[64] = t25) : (t24 = $[63], t25 = $[64]), useImperativeHandle(updateRef, t24, t25), disabled) {
1151
+ let t262;
1152
+ return $[65] !== childProp ? (t262 = childProp || /* @__PURE__ */ jsx(Fragment, {}), $[65] = childProp, $[66] = t262) : t262 = $[66], t262;
1153
1153
  }
1154
- let t25;
1155
- $[65] !== modal ? (t25 = modal && /* @__PURE__ */ jsx(ViewportOverlay, {}), $[65] = modal, $[66] = t25) : t25 = $[66];
1156
1154
  let t26;
1157
- $[67] !== className ? (t26 = popover({
1158
- className
1159
- }), $[67] = className, $[68] = t26) : t26 = $[68];
1155
+ $[67] !== modal ? (t26 = modal && /* @__PURE__ */ jsx(ViewportOverlay, {}), $[67] = modal, $[68] = t26) : t26 = $[68];
1160
1156
  let t27;
1161
- $[69] !== animate || $[70] !== arrowProp || $[71] !== arrowX || $[72] !== arrowY || $[73] !== as || $[74] !== content2 || $[75] !== margins || $[76] !== originX || $[77] !== originY || $[78] !== overflow || $[79] !== padding || $[80] !== placement || $[81] !== radius || $[82] !== referenceHidden || $[83] !== rest || $[84] !== scheme || $[85] !== setFloating || $[86] !== shadow || $[87] !== strategy || $[88] !== t26 || $[89] !== tone || $[90] !== widthProp || $[91] !== x || $[92] !== y || $[93] !== zOffset ? (t27 = /* @__PURE__ */ jsx(PopoverLayer, { ...rest, __unstable_margins: margins, animate, arrow: arrowProp, arrowRef, arrowX, arrowY, as, className: t26, hidden: referenceHidden, maxWidth: widthProp, overflow, padding, placement, radius, ref: setFloating, scheme, shadow, originX, originY, tone, strategy, x, y, zOffset, children: content2 }), $[69] = animate, $[70] = arrowProp, $[71] = arrowX, $[72] = arrowY, $[73] = as, $[74] = content2, $[75] = margins, $[76] = originX, $[77] = originY, $[78] = overflow, $[79] = padding, $[80] = placement, $[81] = radius, $[82] = referenceHidden, $[83] = rest, $[84] = scheme, $[85] = setFloating, $[86] = shadow, $[87] = strategy, $[88] = t26, $[89] = tone, $[90] = widthProp, $[91] = x, $[92] = y, $[93] = zOffset, $[94] = t27) : t27 = $[94];
1157
+ $[69] !== className ? (t27 = popover({
1158
+ className
1159
+ }), $[69] = className, $[70] = t27) : t27 = $[70];
1162
1160
  let t28;
1163
- $[95] !== t25 || $[96] !== t27 ? (t28 = /* @__PURE__ */ jsxs(Fragment, { children: [
1164
- t25,
1165
- t27
1166
- ] }), $[95] = t25, $[96] = t27, $[97] = t28) : t28 = $[97];
1167
- const node_0 = t28;
1161
+ $[71] !== animate || $[72] !== arrowProp || $[73] !== arrowX || $[74] !== arrowY || $[75] !== as || $[76] !== content2 || $[77] !== margins || $[78] !== originX || $[79] !== originY || $[80] !== overflow || $[81] !== padding || $[82] !== placement || $[83] !== radius || $[84] !== referenceHidden || $[85] !== rest || $[86] !== scheme || $[87] !== setFloating || $[88] !== shadow || $[89] !== strategy || $[90] !== t27 || $[91] !== tone || $[92] !== widthProp || $[93] !== x || $[94] !== y || $[95] !== zOffset ? (t28 = /* @__PURE__ */ jsx(PopoverLayer, { ...rest, __unstable_margins: margins, animate, arrow: arrowProp, arrowRef, arrowX, arrowY, as, className: t27, hidden: referenceHidden, maxWidth: widthProp, overflow, padding, placement, radius, ref: setFloating, scheme, shadow, originX, originY, tone, strategy, x, y, zOffset, children: content2 }), $[71] = animate, $[72] = arrowProp, $[73] = arrowX, $[74] = arrowY, $[75] = as, $[76] = content2, $[77] = margins, $[78] = originX, $[79] = originY, $[80] = overflow, $[81] = padding, $[82] = placement, $[83] = radius, $[84] = referenceHidden, $[85] = rest, $[86] = scheme, $[87] = setFloating, $[88] = shadow, $[89] = strategy, $[90] = t27, $[91] = tone, $[92] = widthProp, $[93] = x, $[94] = y, $[95] = zOffset, $[96] = t28) : t28 = $[96];
1168
1162
  let t29;
1169
- $[98] !== card2 || $[99] !== node_0 || $[100] !== open || $[101] !== portal || $[102] !== scheme || $[103] !== tone ? (t29 = open && (portal ? /* @__PURE__ */ jsx(Portal, { __unstable_name: typeof portal == "string" ? portal : void 0, children: /* @__PURE__ */ jsx(CardProvider, { tone: tone === "inherit" ? card2.tone : tone, scheme: scheme ?? "light", children: node_0 }) }) : node_0), $[98] = card2, $[99] = node_0, $[100] = open, $[101] = portal, $[102] = scheme, $[103] = tone, $[104] = t29) : t29 = $[104];
1170
- const children = t29;
1163
+ $[97] !== t26 || $[98] !== t28 ? (t29 = /* @__PURE__ */ jsxs(Fragment, { children: [
1164
+ t26,
1165
+ t28
1166
+ ] }), $[97] = t26, $[98] = t28, $[99] = t29) : t29 = $[99];
1167
+ const node_0 = t29;
1171
1168
  let t30;
1172
- $[105] !== animate || $[106] !== children ? (t30 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[105] = animate, $[106] = children, $[107] = t30) : t30 = $[107];
1169
+ $[100] !== card2 || $[101] !== node_0 || $[102] !== open || $[103] !== portal || $[104] !== scheme || $[105] !== tone ? (t30 = open && (portal ? /* @__PURE__ */ jsx(Portal, { __unstable_name: typeof portal == "string" ? portal : void 0, children: /* @__PURE__ */ jsx(CardProvider, { tone: tone === "inherit" ? card2.tone : tone, scheme: scheme ?? "light", children: node_0 }) }) : node_0), $[100] = card2, $[101] = node_0, $[102] = open, $[103] = portal, $[104] = scheme, $[105] = tone, $[106] = t30) : t30 = $[106];
1170
+ const children = t30;
1173
1171
  let t31;
1174
- return $[108] !== child || $[109] !== t30 ? (t31 = /* @__PURE__ */ jsxs(Fragment, { children: [
1175
- t30,
1172
+ $[107] !== animate || $[108] !== children ? (t31 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[107] = animate, $[108] = children, $[109] = t31) : t31 = $[109];
1173
+ let t32;
1174
+ return $[110] !== child || $[111] !== t31 ? (t32 = /* @__PURE__ */ jsxs(Fragment, { children: [
1175
+ t31,
1176
1176
  child
1177
- ] }), $[108] = child, $[109] = t30, $[110] = t31) : t31 = $[110], t31;
1177
+ ] }), $[110] = child, $[111] = t31, $[112] = t32) : t32 = $[112], t32;
1178
1178
  }
1179
1179
  function useMiddleware$1(t0) {
1180
1180
  const $ = c(36), {
@@ -1304,7 +1304,7 @@ function useCustomValidity(ref, customValidity) {
1304
1304
  }
1305
1305
  const DEFAULT_TEXT_INPUT_ELEMENT = "input";
1306
1306
  function TextInput(props) {
1307
- const $ = c(90), t0 = props;
1307
+ const $ = c(86), t0 = props;
1308
1308
  let IconComponent, IconRightComponent, __unstable_disableFocusRing, className, clearButton, customValidity, flex, forwardedRef, onClear, prefix, readOnly, rest, suffix, t1, t2, t3, t4, t5, t6, t7, t8, width;
1309
1309
  if ($[0] !== t0) {
1310
1310
  const {
@@ -1335,23 +1335,20 @@ function TextInput(props) {
1335
1335
  __unstable_disableFocusRing = t92, t1 = t102, t2 = t112, className = t122, clearButton = t132, t3 = t142, flex = t152, t4 = t162, t5 = t172, IconComponent = t182, IconRightComponent = t192, onClear = t202, t6 = t212, prefix = t222, t7 = t232, readOnly = t242, forwardedRef = t252, suffix = t262, customValidity = t272, t8 = t282, width = t292, rest = t302, $[0] = t0, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = className, $[5] = clearButton, $[6] = customValidity, $[7] = flex, $[8] = forwardedRef, $[9] = onClear, $[10] = prefix, $[11] = readOnly, $[12] = rest, $[13] = suffix, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6, $[20] = t7, $[21] = t8, $[22] = width;
1336
1336
  } else
1337
1337
  IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], className = $[4], clearButton = $[5], customValidity = $[6], flex = $[7], forwardedRef = $[8], onClear = $[9], prefix = $[10], readOnly = $[11], rest = $[12], suffix = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], t5 = $[18], t6 = $[19], t7 = $[20], t8 = $[21], width = $[22];
1338
- const Element2 = t1 === void 0 ? DEFAULT_TEXT_INPUT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4, gap = t5 === void 0 ? 3 : t5, padding = t6 === void 0 ? 3 : t6, radius = t7 === void 0 ? 2 : t7, type = t8 === void 0 ? "text" : t8, ref = useRef(null), responsivePadding = useResponsiveProp(padding), withClearButton = !!clearButton;
1338
+ const Element2 = t1 === void 0 ? DEFAULT_TEXT_INPUT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4, gap = t5 === void 0 ? 3 : t5, padding = t6 === void 0 ? 3 : t6, radius = t7 === void 0 ? 2 : t7, type = t8 === void 0 ? "text" : t8, ref = useRef(null);
1339
1339
  let t9;
1340
- $[23] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => ref.current, $[23] = t9) : t9 = $[23], useImperativeHandle(forwardedRef, t9), useCustomValidity(ref, customValidity);
1341
- const handleClearMouseDown = _temp$a;
1340
+ $[23] !== padding ? (t9 = _getResponsiveProp(padding), $[23] = padding, $[24] = t9) : t9 = $[24];
1341
+ const responsivePadding = t9, withClearButton = !!clearButton;
1342
1342
  let t10;
1343
- $[24] !== onClear ? (t10 = (event_0) => {
1344
- event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
1345
- }, $[24] = onClear, $[25] = t10) : t10 = $[25];
1346
- const handleClearClick = t10;
1343
+ $[25] === Symbol.for("react.memo_cache_sentinel") ? (t10 = () => ref.current, $[25] = t10) : t10 = $[25], useImperativeHandle(forwardedRef, t10), useCustomValidity(ref, customValidity);
1344
+ const handleClearMouseDown = _temp$a;
1347
1345
  let t11;
1348
- $[26] !== responsivePadding ? (t11 = Object.fromEntries(Object.entries(responsivePadding).map(_temp2$2)), $[26] = responsivePadding, $[27] = t11) : t11 = $[27];
1349
- const clearButtonBoxPadding = t11;
1346
+ $[26] !== onClear ? (t11 = (event_0) => {
1347
+ event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
1348
+ }, $[26] = onClear, $[27] = t11) : t11 = $[27];
1349
+ const handleClearClick = t11;
1350
1350
  let t12;
1351
- $[28] !== responsivePadding ? (t12 = Object.fromEntries(Object.entries(responsivePadding).map(_temp3)), $[28] = responsivePadding, $[29] = t12) : t12 = $[29];
1352
- const clearButtonPadding = t12, clearButtonProps = isRecord(clearButton) ? clearButton : EMPTY_RECORD;
1353
- let t13;
1354
- $[30] !== border || $[31] !== className || $[32] !== flex || $[33] !== fontSize || $[34] !== gap || $[35] !== padding || $[36] !== radius || $[37] !== width ? (t13 = textInput({
1351
+ $[28] !== border || $[29] !== className || $[30] !== flex || $[31] !== fontSize || $[32] !== gap || $[33] !== padding || $[34] !== radius || $[35] !== width ? (t12 = textInput({
1355
1352
  className,
1356
1353
  border,
1357
1354
  flex,
@@ -1360,52 +1357,77 @@ function TextInput(props) {
1360
1357
  radius,
1361
1358
  gap,
1362
1359
  width
1363
- }), $[30] = border, $[31] = className, $[32] = flex, $[33] = fontSize, $[34] = gap, $[35] = padding, $[36] = radius, $[37] = width, $[38] = t13) : t13 = $[38];
1364
- const t14 = IconComponent ? "" : void 0, t15 = IconRightComponent ? "" : void 0, t16 = customValidity ? "" : void 0, t17 = prefix ? "" : void 0, t18 = !disabled && readOnly ? "" : void 0, t19 = suffix ? "" : void 0;
1360
+ }), $[28] = border, $[29] = className, $[30] = flex, $[31] = fontSize, $[32] = gap, $[33] = padding, $[34] = radius, $[35] = width, $[36] = t12) : t12 = $[36];
1361
+ const t13 = IconComponent ? "" : void 0, t14 = IconRightComponent ? "" : void 0, t15 = customValidity ? "" : void 0, t16 = prefix ? "" : void 0, t17 = !disabled && readOnly ? "" : void 0, t18 = suffix ? "" : void 0;
1362
+ let t19;
1363
+ $[37] !== prefix ? (t19 = prefix && /* @__PURE__ */ jsx("span", { className: textInputPrefix(), children: /* @__PURE__ */ jsx("span", { children: prefix }) }), $[37] = prefix, $[38] = t19) : t19 = $[38];
1365
1364
  let t20;
1366
- $[39] !== prefix ? (t20 = prefix && /* @__PURE__ */ jsx("span", { className: textInputPrefix(), children: /* @__PURE__ */ jsx("span", { children: prefix }) }), $[39] = prefix, $[40] = t20) : t20 = $[40];
1365
+ $[39] === Symbol.for("react.memo_cache_sentinel") ? (t20 = textInputElement(), $[39] = t20) : t20 = $[39];
1367
1366
  let t21;
1368
- $[41] === Symbol.for("react.memo_cache_sentinel") ? (t21 = textInputElement(), $[41] = t21) : t21 = $[41];
1369
- let t22;
1370
- $[42] === Symbol.for("react.memo_cache_sentinel") ? (t22 = _inputElement(), $[42] = t22) : t22 = $[42];
1371
- const t23 = __unstable_disableFocusRing ? "" : void 0;
1367
+ $[40] === Symbol.for("react.memo_cache_sentinel") ? (t21 = _inputElement(), $[40] = t21) : t21 = $[40];
1368
+ const t22 = __unstable_disableFocusRing ? "" : void 0;
1369
+ let t23;
1370
+ $[41] !== Element2 || $[42] !== disabled || $[43] !== readOnly || $[44] !== rest || $[45] !== t22 || $[46] !== type ? (t23 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t21, "data-no-focus-ring": t22, disabled, readOnly, ref, type }), $[41] = Element2, $[42] = disabled, $[43] = readOnly, $[44] = rest, $[45] = t22, $[46] = type, $[47] = t23) : t23 = $[47];
1372
1371
  let t24;
1373
- $[43] !== Element2 || $[44] !== disabled || $[45] !== readOnly || $[46] !== rest || $[47] !== t23 || $[48] !== type ? (t24 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t22, "data-no-focus-ring": t23, disabled, readOnly, ref, type }), $[43] = Element2, $[44] = disabled, $[45] = readOnly, $[46] = rest, $[47] = t23, $[48] = type, $[49] = t24) : t24 = $[49];
1372
+ $[48] === Symbol.for("react.memo_cache_sentinel") ? (t24 = _inputPresentation(), $[48] = t24) : t24 = $[48];
1374
1373
  let t25;
1375
- $[50] === Symbol.for("react.memo_cache_sentinel") ? (t25 = _inputPresentation(), $[50] = t25) : t25 = $[50];
1376
- let t26;
1377
- $[51] !== IconComponent || $[52] !== fontSize || $[53] !== padding ? (t26 = IconComponent && /* @__PURE__ */ jsx(Box, { as: "span", padding, position: "absolute", insetTop: 0, insetLeft: 0, children: /* @__PURE__ */ jsxs(Text, { as: "span", size: fontSize, children: [
1374
+ $[49] !== IconComponent || $[50] !== fontSize || $[51] !== padding ? (t25 = IconComponent && /* @__PURE__ */ jsx(Box, { as: "span", padding, position: "absolute", insetTop: 0, insetLeft: 0, children: /* @__PURE__ */ jsxs(Text, { as: "span", size: fontSize, children: [
1378
1375
  isValidElement(IconComponent) && IconComponent,
1379
1376
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
1380
- ] }) }), $[51] = IconComponent, $[52] = fontSize, $[53] = padding, $[54] = t26) : t26 = $[54];
1381
- let t27;
1382
- $[55] !== IconRightComponent || $[56] !== fontSize || $[57] !== padding || $[58] !== withClearButton ? (t27 = !withClearButton && IconRightComponent && /* @__PURE__ */ jsx(Box, { as: "span", padding, position: "absolute", insetTop: 0, insetRight: 0, children: /* @__PURE__ */ jsxs(Text, { as: "span", size: fontSize, children: [
1377
+ ] }) }), $[49] = IconComponent, $[50] = fontSize, $[51] = padding, $[52] = t25) : t25 = $[52];
1378
+ let t26;
1379
+ $[53] !== IconRightComponent || $[54] !== fontSize || $[55] !== padding || $[56] !== withClearButton ? (t26 = !withClearButton && IconRightComponent && /* @__PURE__ */ jsx(Box, { as: "span", padding, position: "absolute", insetTop: 0, insetRight: 0, children: /* @__PURE__ */ jsxs(Text, { as: "span", size: fontSize, children: [
1383
1380
  isValidElement(IconRightComponent) && IconRightComponent,
1384
1381
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
1385
- ] }) }), $[55] = IconRightComponent, $[56] = fontSize, $[57] = padding, $[58] = withClearButton, $[59] = t27) : t27 = $[59];
1382
+ ] }) }), $[53] = IconRightComponent, $[54] = fontSize, $[55] = padding, $[56] = withClearButton, $[57] = t26) : t26 = $[57];
1383
+ let t27;
1384
+ $[58] !== t25 || $[59] !== t26 ? (t27 = /* @__PURE__ */ jsxs("span", { className: t24, children: [
1385
+ t25,
1386
+ t26
1387
+ ] }), $[58] = t25, $[59] = t26, $[60] = t27) : t27 = $[60];
1386
1388
  let t28;
1387
- $[60] !== t26 || $[61] !== t27 ? (t28 = /* @__PURE__ */ jsxs("span", { className: t25, children: [
1388
- t26,
1389
- t27
1390
- ] }), $[60] = t26, $[61] = t27, $[62] = t28) : t28 = $[62];
1389
+ $[61] !== clearButton || $[62] !== disabled || $[63] !== fontSize || $[64] !== handleClearClick || $[65] !== radius || $[66] !== readOnly || $[67] !== responsivePadding ? (t28 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(ClearButton, { fontSize, radius, clearButtonProps: isRecord(clearButton) ? clearButton : EMPTY_RECORD, handleClearClick, handleClearMouseDown, padding: responsivePadding }), $[61] = clearButton, $[62] = disabled, $[63] = fontSize, $[64] = handleClearClick, $[65] = radius, $[66] = readOnly, $[67] = responsivePadding, $[68] = t28) : t28 = $[68];
1391
1390
  let t29;
1392
- $[63] !== clearButton || $[64] !== clearButtonBoxPadding || $[65] !== clearButtonPadding || $[66] !== clearButtonProps || $[67] !== disabled || $[68] !== fontSize || $[69] !== handleClearClick || $[70] !== radius || $[71] !== readOnly ? (t29 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(Box, { as: "span", insetTop: 0, insetRight: 0, padding: clearButtonBoxPadding, position: "absolute", style: {
1393
- zIndex: 2
1394
- }, children: /* @__PURE__ */ jsx(Button, { "aria-label": "Clear", "data-qa": "clear-button", display: "block", fontSize, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[63] = clearButton, $[64] = clearButtonBoxPadding, $[65] = clearButtonPadding, $[66] = clearButtonProps, $[67] = disabled, $[68] = fontSize, $[69] = handleClearClick, $[70] = radius, $[71] = readOnly, $[72] = t29) : t29 = $[72];
1391
+ $[69] !== t23 || $[70] !== t27 || $[71] !== t28 ? (t29 = /* @__PURE__ */ jsxs("span", { className: t20, children: [
1392
+ t23,
1393
+ t27,
1394
+ t28
1395
+ ] }), $[69] = t23, $[70] = t27, $[71] = t28, $[72] = t29) : t29 = $[72];
1395
1396
  let t30;
1396
- $[73] !== t24 || $[74] !== t28 || $[75] !== t29 ? (t30 = /* @__PURE__ */ jsxs("span", { className: t21, children: [
1397
- t24,
1398
- t28,
1399
- t29
1400
- ] }), $[73] = t24, $[74] = t28, $[75] = t29, $[76] = t30) : t30 = $[76];
1397
+ $[73] !== suffix ? (t30 = suffix && /* @__PURE__ */ jsx("span", { className: textInputSuffix(), children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[73] = suffix, $[74] = t30) : t30 = $[74];
1401
1398
  let t31;
1402
- $[77] !== suffix ? (t31 = suffix && /* @__PURE__ */ jsx("span", { className: textInputSuffix(), children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[77] = suffix, $[78] = t31) : t31 = $[78];
1403
- let t32;
1404
- return $[79] !== t13 || $[80] !== t14 || $[81] !== t15 || $[82] !== t16 || $[83] !== t17 || $[84] !== t18 || $[85] !== t19 || $[86] !== t20 || $[87] !== t30 || $[88] !== t31 ? (t32 = /* @__PURE__ */ jsxs("span", { className: t13, "data-icon-left": t14, "data-icon-right": t15, "data-invalid": t16, "data-prefix": t17, "data-read-only": t18, "data-suffix": t19, "data-ui": "TextInput", children: [
1405
- t20,
1406
- t30,
1407
- t31
1408
- ] }), $[79] = t13, $[80] = t14, $[81] = t15, $[82] = t16, $[83] = t17, $[84] = t18, $[85] = t19, $[86] = t20, $[87] = t30, $[88] = t31, $[89] = t32) : t32 = $[89], t32;
1399
+ return $[75] !== t12 || $[76] !== t13 || $[77] !== t14 || $[78] !== t15 || $[79] !== t16 || $[80] !== t17 || $[81] !== t18 || $[82] !== t19 || $[83] !== t29 || $[84] !== t30 ? (t31 = /* @__PURE__ */ jsxs("span", { className: t12, "data-icon-left": t13, "data-icon-right": t14, "data-invalid": t15, "data-prefix": t16, "data-read-only": t17, "data-suffix": t18, "data-ui": "TextInput", children: [
1400
+ t19,
1401
+ t29,
1402
+ t30
1403
+ ] }), $[75] = t12, $[76] = t13, $[77] = t14, $[78] = t15, $[79] = t16, $[80] = t17, $[81] = t18, $[82] = t19, $[83] = t29, $[84] = t30, $[85] = t31) : t31 = $[85], t31;
1404
+ }
1405
+ function _temp$a(event) {
1406
+ event.preventDefault(), event.stopPropagation();
1407
+ }
1408
+ function ClearButton(t0) {
1409
+ const $ = c(15), {
1410
+ fontSize,
1411
+ radius,
1412
+ clearButtonProps,
1413
+ handleClearClick,
1414
+ handleClearMouseDown,
1415
+ padding
1416
+ } = t0;
1417
+ let t1;
1418
+ $[0] !== padding ? (t1 = Object.fromEntries(Object.entries(padding).map(_temp2$2)), $[0] = padding, $[1] = t1) : t1 = $[1];
1419
+ const clearButtonBoxPadding = t1;
1420
+ let t2;
1421
+ $[2] !== padding ? (t2 = Object.fromEntries(Object.entries(padding).map(_temp3)), $[2] = padding, $[3] = t2) : t2 = $[3];
1422
+ const clearButtonPadding = t2;
1423
+ let t3;
1424
+ $[4] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {
1425
+ zIndex: 2
1426
+ }, $[4] = t3) : t3 = $[4];
1427
+ let t4;
1428
+ $[5] !== clearButtonPadding || $[6] !== clearButtonProps || $[7] !== fontSize || $[8] !== handleClearClick || $[9] !== handleClearMouseDown || $[10] !== radius ? (t4 = /* @__PURE__ */ jsx(Button, { "aria-label": "Clear", "data-qa": "clear-button", display: "block", fontSize, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }), $[5] = clearButtonPadding, $[6] = clearButtonProps, $[7] = fontSize, $[8] = handleClearClick, $[9] = handleClearMouseDown, $[10] = radius, $[11] = t4) : t4 = $[11];
1429
+ let t5;
1430
+ return $[12] !== clearButtonBoxPadding || $[13] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, { as: "span", insetTop: 0, insetRight: 0, padding: clearButtonBoxPadding, position: "absolute", style: t3, children: t4 }), $[12] = clearButtonBoxPadding, $[13] = t4, $[14] = t5) : t5 = $[14], t5;
1409
1431
  }
1410
1432
  function _temp3(t0) {
1411
1433
  const [key_0, value_0] = t0;
@@ -1415,9 +1437,6 @@ function _temp2$2(t0) {
1415
1437
  const [key2, value] = t0;
1416
1438
  return value === 0 ? [key2, 0] : value === 1 ? [key2, 1] : value === 2 ? [key2, 1] : [key2, typeof value == "number" ? value - 2 : 0];
1417
1439
  }
1418
- function _temp$a(event) {
1419
- event.preventDefault(), event.stopPropagation();
1420
- }
1421
1440
  function AutocompleteOption(props) {
1422
1441
  const $ = c(11), {
1423
1442
  children,
@@ -2093,7 +2112,7 @@ function useDialog() {
2093
2112
  }
2094
2113
  const DEFAULT_DIALOG_ELEMENT = "div";
2095
2114
  function Dialog(props) {
2096
- const $ = c(69), context = useDialog(), t0 = props;
2115
+ const $ = c(75), context = useDialog(), t0 = props;
2097
2116
  let _positionProp, _zOffsetProp, children, className, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, portalProp, rest, scheme, t1, t2, t3, t4, t5, t6, t7, tone;
2098
2117
  $[0] !== t0 ? ({
2099
2118
  __unstable_autoFocus: t1,
@@ -2120,9 +2139,18 @@ function Dialog(props) {
2120
2139
  tone,
2121
2140
  ...rest
2122
2141
  } = t0, $[0] = t0, $[1] = _positionProp, $[2] = _zOffsetProp, $[3] = children, $[4] = className, $[5] = contentRef, $[6] = footer, $[7] = header, $[8] = id, $[9] = onActivate, $[10] = onClickOutside, $[11] = onClose, $[12] = onFocus, $[13] = portalProp, $[14] = rest, $[15] = scheme, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6, $[22] = t7, $[23] = tone) : (_positionProp = $[1], _zOffsetProp = $[2], children = $[3], className = $[4], contentRef = $[5], footer = $[6], header = $[7], id = $[8], onActivate = $[9], onClickOutside = $[10], onClose = $[11], onFocus = $[12], portalProp = $[13], rest = $[14], scheme = $[15], t1 = $[16], t2 = $[17], t3 = $[18], t4 = $[19], t5 = $[20], t6 = $[21], t7 = $[22], tone = $[23]);
2123
- const autoFocus = t1 === void 0 ? !0 : t1, hideCloseButton = t2 === void 0 ? !1 : t2, _animate = t3 === void 0 ? !1 : t3, cardRadiusProp = t4 === void 0 ? 4 : t4, padding = t5 === void 0 ? 3 : t5, cardShadow = t6 === void 0 ? 4 : t6, width = t7 === void 0 ? 0 : t7, positionProp = _positionProp ?? context.position ?? "fixed", zOffsetProp = _zOffsetProp ?? context.zOffset ?? Z_OFFSETS.dialog, animate = usePrefersReducedMotion() ? !1 : _animate, portal = usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = useBoundaryElement().element, cardRadius = useResponsiveProp(cardRadiusProp), position = useResponsiveProp(positionProp), zOffset = useResponsiveProp(zOffsetProp), preDivRef = useRef(null), postDivRef = useRef(null), cardRef = useRef(null), focusedElementRef = useRef(null);
2142
+ const autoFocus = t1 === void 0 ? !0 : t1, hideCloseButton = t2 === void 0 ? !1 : t2, _animate = t3 === void 0 ? !1 : t3, cardRadiusProp = t4 === void 0 ? 4 : t4, padding = t5 === void 0 ? 3 : t5, cardShadow = t6 === void 0 ? 4 : t6, width = t7 === void 0 ? 0 : t7, positionProp = _positionProp ?? context.position ?? "fixed", zOffsetProp = _zOffsetProp ?? context.zOffset ?? Z_OFFSETS.dialog, animate = usePrefersReducedMotion() ? !1 : _animate, portal = usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = useBoundaryElement().element;
2124
2143
  let t8;
2125
- $[24] !== onFocus ? (t8 = (event) => {
2144
+ $[24] !== cardRadiusProp ? (t8 = _getResponsiveProp(cardRadiusProp), $[24] = cardRadiusProp, $[25] = t8) : t8 = $[25];
2145
+ const cardRadius = t8;
2146
+ let t9;
2147
+ $[26] !== positionProp ? (t9 = _getResponsiveProp(positionProp), $[26] = positionProp, $[27] = t9) : t9 = $[27];
2148
+ const position = t9;
2149
+ let t10;
2150
+ $[28] !== zOffsetProp ? (t10 = _getResponsiveProp(zOffsetProp), $[28] = zOffsetProp, $[29] = t10) : t10 = $[29];
2151
+ const zOffset = t10, preDivRef = useRef(null), postDivRef = useRef(null), cardRef = useRef(null), focusedElementRef = useRef(null);
2152
+ let t11;
2153
+ $[30] !== onFocus ? (t11 = (event) => {
2126
2154
  onFocus?.(event);
2127
2155
  const target = event.target, cardElement = cardRef.current;
2128
2156
  if (cardElement && target === preDivRef.current) {
@@ -2134,10 +2162,10 @@ function Dialog(props) {
2134
2162
  return;
2135
2163
  }
2136
2164
  isHTMLElement(event.target) && (focusedElementRef.current = event.target);
2137
- }, $[24] = onFocus, $[25] = t8) : t8 = $[25];
2138
- const handleFocus = t8, labelId = `${id}_label`, rootClickTimeoutRef = useRef(void 0);
2139
- let t9;
2140
- $[26] !== boundaryElement || $[27] !== portalElement ? (t9 = () => {
2165
+ }, $[30] = onFocus, $[31] = t11) : t11 = $[31];
2166
+ const handleFocus = t11, labelId = `${id}_label`, rootClickTimeoutRef = useRef(void 0);
2167
+ let t12;
2168
+ $[32] !== boundaryElement || $[33] !== portalElement ? (t12 = () => {
2141
2169
  rootClickTimeoutRef.current && clearTimeout(rootClickTimeoutRef.current), rootClickTimeoutRef.current = setTimeout(() => {
2142
2170
  const activeElement = document.activeElement;
2143
2171
  if (activeElement && !isTargetWithinScope(boundaryElement, portalElement, activeElement)) {
@@ -2150,31 +2178,31 @@ function Dialog(props) {
2150
2178
  target_0.focus();
2151
2179
  }
2152
2180
  }, 0);
2153
- }, $[26] = boundaryElement, $[27] = portalElement, $[28] = t9) : t9 = $[28];
2154
- const handleRootClick = t9;
2155
- let t10;
2156
- $[29] !== className ? (t10 = dialog({
2157
- className
2158
- }), $[29] = className, $[30] = t10) : t10 = $[30];
2159
- const t11 = animate ? "" : void 0;
2160
- let t12;
2161
- $[31] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx("div", { ref: preDivRef, tabIndex: 0 }), $[31] = t12) : t12 = $[31];
2181
+ }, $[32] = boundaryElement, $[33] = portalElement, $[34] = t12) : t12 = $[34];
2182
+ const handleRootClick = t12;
2162
2183
  let t13;
2163
- $[32] === Symbol.for("react.memo_cache_sentinel") ? (t13 = dialogContainer(), $[32] = t13) : t13 = $[32];
2164
- let t14;
2165
- $[33] !== autoFocus || $[34] !== cardRadius || $[35] !== cardShadow || $[36] !== children || $[37] !== contentRef || $[38] !== footer || $[39] !== header || $[40] !== hideCloseButton || $[41] !== id || $[42] !== onClickOutside || $[43] !== onClose || $[44] !== portalProp || $[45] !== scheme || $[46] !== tone || $[47] !== width ? (t14 = /* @__PURE__ */ jsx(DialogCard, { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, contentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: cardRadius, ref: cardRef, scheme, shadow: cardShadow, tone, width, children }), $[33] = autoFocus, $[34] = cardRadius, $[35] = cardShadow, $[36] = children, $[37] = contentRef, $[38] = footer, $[39] = header, $[40] = hideCloseButton, $[41] = id, $[42] = onClickOutside, $[43] = onClose, $[44] = portalProp, $[45] = scheme, $[46] = tone, $[47] = width, $[48] = t14) : t14 = $[48];
2184
+ $[35] !== className ? (t13 = dialog({
2185
+ className
2186
+ }), $[35] = className, $[36] = t13) : t13 = $[36];
2187
+ const t14 = animate ? "" : void 0;
2166
2188
  let t15;
2167
- $[49] !== t14 || $[50] !== width ? (t15 = /* @__PURE__ */ jsx(Container, { alignItems: "center", className: t13, "data-ui": "DialogCard", flexDirection: "column", display: "flex", justifyContent: "center", width, children: t14 }), $[49] = t14, $[50] = width, $[51] = t15) : t15 = $[51];
2189
+ $[37] === Symbol.for("react.memo_cache_sentinel") ? (t15 = /* @__PURE__ */ jsx("div", { ref: preDivRef, tabIndex: 0 }), $[37] = t15) : t15 = $[37];
2168
2190
  let t16;
2169
- $[52] === Symbol.for("react.memo_cache_sentinel") ? (t16 = /* @__PURE__ */ jsx("div", { ref: postDivRef, tabIndex: 0 }), $[52] = t16) : t16 = $[52];
2191
+ $[38] === Symbol.for("react.memo_cache_sentinel") ? (t16 = dialogContainer(), $[38] = t16) : t16 = $[38];
2170
2192
  let t17;
2171
- $[53] !== handleFocus || $[54] !== handleRootClick || $[55] !== id || $[56] !== labelId || $[57] !== onActivate || $[58] !== padding || $[59] !== position || $[60] !== rest || $[61] !== t10 || $[62] !== t11 || $[63] !== t15 || $[64] !== zOffset ? (t17 = /* @__PURE__ */ jsxs(Layer, { ...rest, "aria-labelledby": labelId, "aria-modal": !0, className: t10, "data-animate": t11, "data-ui": "Dialog", display: "flex", id, onActivate, onClick: handleRootClick, onFocus: handleFocus, padding, position, role: "dialog", zOffset, children: [
2172
- t12,
2173
- t15,
2174
- t16
2175
- ] }), $[53] = handleFocus, $[54] = handleRootClick, $[55] = id, $[56] = labelId, $[57] = onActivate, $[58] = padding, $[59] = position, $[60] = rest, $[61] = t10, $[62] = t11, $[63] = t15, $[64] = zOffset, $[65] = t17) : t17 = $[65];
2193
+ $[39] !== autoFocus || $[40] !== cardRadius || $[41] !== cardShadow || $[42] !== children || $[43] !== contentRef || $[44] !== footer || $[45] !== header || $[46] !== hideCloseButton || $[47] !== id || $[48] !== onClickOutside || $[49] !== onClose || $[50] !== portalProp || $[51] !== scheme || $[52] !== tone || $[53] !== width ? (t17 = /* @__PURE__ */ jsx(DialogCard, { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, contentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: cardRadius, ref: cardRef, scheme, shadow: cardShadow, tone, width, children }), $[39] = autoFocus, $[40] = cardRadius, $[41] = cardShadow, $[42] = children, $[43] = contentRef, $[44] = footer, $[45] = header, $[46] = hideCloseButton, $[47] = id, $[48] = onClickOutside, $[49] = onClose, $[50] = portalProp, $[51] = scheme, $[52] = tone, $[53] = width, $[54] = t17) : t17 = $[54];
2176
2194
  let t18;
2177
- return $[66] !== portalProp || $[67] !== t17 ? (t18 = /* @__PURE__ */ jsx(Portal, { __unstable_name: portalProp, children: t17 }), $[66] = portalProp, $[67] = t17, $[68] = t18) : t18 = $[68], t18;
2195
+ $[55] !== t17 || $[56] !== width ? (t18 = /* @__PURE__ */ jsx(Container, { alignItems: "center", className: t16, "data-ui": "DialogCard", flexDirection: "column", display: "flex", justifyContent: "center", width, children: t17 }), $[55] = t17, $[56] = width, $[57] = t18) : t18 = $[57];
2196
+ let t19;
2197
+ $[58] === Symbol.for("react.memo_cache_sentinel") ? (t19 = /* @__PURE__ */ jsx("div", { ref: postDivRef, tabIndex: 0 }), $[58] = t19) : t19 = $[58];
2198
+ let t20;
2199
+ $[59] !== handleFocus || $[60] !== handleRootClick || $[61] !== id || $[62] !== labelId || $[63] !== onActivate || $[64] !== padding || $[65] !== position || $[66] !== rest || $[67] !== t13 || $[68] !== t14 || $[69] !== t18 || $[70] !== zOffset ? (t20 = /* @__PURE__ */ jsxs(Layer, { ...rest, "aria-labelledby": labelId, "aria-modal": !0, className: t13, "data-animate": t14, "data-ui": "Dialog", display: "flex", id, onActivate, onClick: handleRootClick, onFocus: handleFocus, padding, position, role: "dialog", zOffset, children: [
2200
+ t15,
2201
+ t18,
2202
+ t19
2203
+ ] }), $[59] = handleFocus, $[60] = handleRootClick, $[61] = id, $[62] = labelId, $[63] = onActivate, $[64] = padding, $[65] = position, $[66] = rest, $[67] = t13, $[68] = t14, $[69] = t18, $[70] = zOffset, $[71] = t20) : t20 = $[71];
2204
+ let t21;
2205
+ return $[72] !== portalProp || $[73] !== t20 ? (t21 = /* @__PURE__ */ jsx(Portal, { __unstable_name: portalProp, children: t20 }), $[72] = portalProp, $[73] = t20, $[74] = t21) : t21 = $[74], t21;
2178
2206
  }
2179
2207
  function DialogProvider(props) {
2180
2208
  const $ = c(6), {
@@ -2190,7 +2218,7 @@ function DialogProvider(props) {
2190
2218
  }, $[0] = position, $[1] = zOffset, $[2] = t0) : t0 = $[2];
2191
2219
  const contextValue = t0;
2192
2220
  let t1;
2193
- return $[3] !== children || $[4] !== contextValue ? (t1 = /* @__PURE__ */ jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = children, $[4] = contextValue, $[5] = t1) : t1 = $[5], t1;
2221
+ return $[3] !== children || $[4] !== contextValue ? (t1 = /* @__PURE__ */ jsx(DialogContext, { value: contextValue, children }), $[3] = children, $[4] = contextValue, $[5] = t1) : t1 = $[5], t1;
2194
2222
  }
2195
2223
  const DEFAULT_KBD_ELEMENT = "kbd";
2196
2224
  function KBD(props) {
@@ -2489,7 +2517,7 @@ function Menu(props) {
2489
2517
  let t14;
2490
2518
  $[45] !== as || $[46] !== handleKeyDown || $[47] !== handleRefChange || $[48] !== padding || $[49] !== rest || $[50] !== t12 || $[51] !== t13 ? (t14 = /* @__PURE__ */ jsx(Box, { "data-ui": "Menu", ...rest, as, className: t12, onKeyDown: handleKeyDown, overflow: "auto", outline: "none", padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t13 }), $[45] = as, $[46] = handleKeyDown, $[47] = handleRefChange, $[48] = padding, $[49] = rest, $[50] = t12, $[51] = t13, $[52] = t14) : t14 = $[52];
2491
2519
  let t15;
2492
- return $[53] !== t14 || $[54] !== value ? (t15 = /* @__PURE__ */ jsx(MenuContext.Provider, { value, children: t14 }), $[53] = t14, $[54] = value, $[55] = t15) : t15 = $[55], t15;
2520
+ return $[53] !== t14 || $[54] !== value ? (t15 = /* @__PURE__ */ jsx(MenuContext, { value, children: t14 }), $[53] = t14, $[54] = value, $[55] = t15) : t15 = $[55], t15;
2493
2521
  }
2494
2522
  function MenuButton(props) {
2495
2523
  const $ = c(57), {
@@ -3135,7 +3163,7 @@ function ToastProvider(props) {
3135
3163
  let t3;
3136
3164
  $[2] !== gap || $[3] !== mounted || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== state || $[8] !== zOffset ? (t3 = mounted && /* @__PURE__ */ jsx(LayerProvider, { zOffset, children: /* @__PURE__ */ jsx(ToastLayer, { padding, paddingX, paddingY, gap, children: /* @__PURE__ */ jsx(AnimatePresence, { initial: !1, mode: "popLayout", children: state.map(_temp$4) }) }) }), $[2] = gap, $[3] = mounted, $[4] = padding, $[5] = paddingX, $[6] = paddingY, $[7] = state, $[8] = zOffset, $[9] = t3) : t3 = $[9];
3137
3165
  let t4;
3138
- return $[10] !== children || $[11] !== t3 ? (t4 = /* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
3166
+ return $[10] !== children || $[11] !== t3 ? (t4 = /* @__PURE__ */ jsxs(ToastContext, { value, children: [
3139
3167
  children,
3140
3168
  t3
3141
3169
  ] }), $[10] = children, $[11] = t3, $[12] = t4) : t4 = $[12], t4;
@@ -3363,7 +3391,7 @@ function Tree(props) {
3363
3391
  let t18;
3364
3392
  $[29] !== children || $[30] !== gap || $[31] !== handleFocus || $[32] !== handleKeyDown || $[33] !== rest ? (t18 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "Tree", ...rest, gap, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", children }), $[29] = children, $[30] = gap, $[31] = handleFocus, $[32] = handleKeyDown, $[33] = rest, $[34] = t18) : t18 = $[34];
3365
3393
  let t19;
3366
- return $[35] !== contextValue || $[36] !== t18 ? (t19 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t18 }), $[35] = contextValue, $[36] = t18, $[37] = t19) : t19 = $[37], t19;
3394
+ return $[35] !== contextValue || $[36] !== t18 ? (t19 = /* @__PURE__ */ jsx(TreeContext, { value: contextValue, children: t18 }), $[35] = contextValue, $[36] = t18, $[37] = t19) : t19 = $[37], t19;
3367
3395
  }
3368
3396
  function useTree() {
3369
3397
  const tree = use(TreeContext);
@@ -3485,7 +3513,7 @@ function TreeItem(props) {
3485
3513
  let t302;
3486
3514
  $[86] !== children || $[87] !== expanded ? (t302 = children && /* @__PURE__ */ jsx(TreeGroup, { hidden: !expanded, children }), $[86] = children, $[87] = expanded, $[88] = t302) : t302 = $[88];
3487
3515
  let t312;
3488
- $[89] !== contextValue || $[90] !== t302 ? (t312 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t302 }), $[89] = contextValue, $[90] = t302, $[91] = t312) : t312 = $[91];
3516
+ $[89] !== contextValue || $[90] !== t302 ? (t312 = /* @__PURE__ */ jsx(TreeContext, { value: contextValue, children: t302 }), $[89] = contextValue, $[90] = t302, $[91] = t312) : t312 = $[91];
3489
3517
  let t322;
3490
3518
  return $[92] !== handleClick || $[93] !== id || $[94] !== itemKey || $[95] !== t242 || $[96] !== t252 || $[97] !== t262 || $[98] !== t292 || $[99] !== t312 ? (t322 = /* @__PURE__ */ jsxs(Box, { "data-selected": t242, "data-tree-id": id, "data-tree-key": itemKey, "data-ui": "TreeItem", ...t252, as: "li", className: t262, onClick: handleClick, ref: setRootElement, role: "none", children: [
3491
3519
  t292,
@@ -3507,7 +3535,7 @@ function TreeItem(props) {
3507
3535
  let t31;
3508
3536
  $[111] !== children || $[112] !== expanded ? (t31 = children && /* @__PURE__ */ jsx(TreeGroup, { expanded, children }), $[111] = children, $[112] = expanded, $[113] = t31) : t31 = $[113];
3509
3537
  let t32;
3510
- $[114] !== contextValue || $[115] !== t31 ? (t32 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t31 }), $[114] = contextValue, $[115] = t31, $[116] = t32) : t32 = $[116];
3538
+ $[114] !== contextValue || $[115] !== t31 ? (t32 = /* @__PURE__ */ jsx(TreeContext, { value: contextValue, children: t31 }), $[114] = contextValue, $[115] = t31, $[116] = t32) : t32 = $[116];
3511
3539
  let t33;
3512
3540
  return $[117] !== expanded || $[118] !== handleClick || $[119] !== handleKeyDown || $[120] !== id || $[121] !== itemKey || $[122] !== t24 || $[123] !== t25 || $[124] !== t26 || $[125] !== t30 || $[126] !== t32 || $[127] !== tabIndex ? (t33 = /* @__PURE__ */ jsxs(Box, { "data-selected": t24, "data-ui": "TreeItem", "data-tree-id": id, "data-tree-key": itemKey, ...t25, "aria-expanded": expanded, className: t26, onClick: handleClick, onKeyDown: handleKeyDown, ref: setRootElement, role: "treeitem", tabIndex, children: [
3513
3541
  t30,
@@ -3777,7 +3805,7 @@ function Label(props) {
3777
3805
  }
3778
3806
  const DEFAULT_AVATAR_ELEMENT = "span";
3779
3807
  function Avatar(props) {
3780
- const $ = c(50), t0 = props;
3808
+ const $ = c(52), t0 = props;
3781
3809
  let animateArrowFrom, arrowPositionProp, className, hideInnerStroke, initials, onImageLoadError, rest, src, t1, t2, t3, title;
3782
3810
  $[0] !== t0 ? ({
3783
3811
  __unstable_hideInnerStroke: hideInnerStroke,
@@ -3793,52 +3821,55 @@ function Avatar(props) {
3793
3821
  size: t3,
3794
3822
  ...rest
3795
3823
  } = t0, $[0] = t0, $[1] = animateArrowFrom, $[2] = arrowPositionProp, $[3] = className, $[4] = hideInnerStroke, $[5] = initials, $[6] = onImageLoadError, $[7] = rest, $[8] = src, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = title) : (animateArrowFrom = $[1], arrowPositionProp = $[2], className = $[3], hideInnerStroke = $[4], initials = $[5], onImageLoadError = $[6], rest = $[7], src = $[8], t1 = $[9], t2 = $[10], t3 = $[11], title = $[12]);
3796
- const Element2 = t1 === void 0 ? DEFAULT_AVATAR_ELEMENT : t1, color = t2 === void 0 ? "magenta" : t2, sizeProp = t3 === void 0 ? 1 : t3, size2 = useResponsiveProp(sizeProp), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageError, setImageError] = useState(!1);
3797
- let t4, t5;
3798
- $[13] !== arrowPosition || $[14] !== arrowPositionProp ? (t4 = () => {
3824
+ const Element2 = t1 === void 0 ? DEFAULT_AVATAR_ELEMENT : t1, color = t2 === void 0 ? "magenta" : t2, sizeProp = t3 === void 0 ? 1 : t3;
3825
+ let t4;
3826
+ $[13] !== sizeProp ? (t4 = _getResponsiveProp(sizeProp), $[13] = sizeProp, $[14] = t4) : t4 = $[14];
3827
+ const size2 = t4, [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageError, setImageError] = useState(!1);
3828
+ let t5, t6;
3829
+ $[15] !== arrowPosition || $[16] !== arrowPositionProp ? (t5 = () => {
3799
3830
  if (arrowPosition === arrowPositionProp)
3800
3831
  return;
3801
3832
  const raf = requestAnimationFrame(() => setArrowPosition(arrowPositionProp));
3802
3833
  return () => cancelAnimationFrame(raf);
3803
- }, t5 = [arrowPosition, arrowPositionProp], $[13] = arrowPosition, $[14] = arrowPositionProp, $[15] = t4, $[16] = t5) : (t4 = $[15], t5 = $[16]), useEffect(t4, t5);
3804
- let t6, t7;
3805
- $[17] !== src ? (t6 = () => {
3834
+ }, t6 = [arrowPosition, arrowPositionProp], $[15] = arrowPosition, $[16] = arrowPositionProp, $[17] = t5, $[18] = t6) : (t5 = $[17], t6 = $[18]), useEffect(t5, t6);
3835
+ let t7, t8;
3836
+ $[19] !== src ? (t7 = () => {
3806
3837
  src && setImageError(!1);
3807
- }, t7 = [src], $[17] = src, $[18] = t6, $[19] = t7) : (t6 = $[18], t7 = $[19]), useEffect(t6, t7);
3808
- let t8;
3809
- $[20] !== onImageLoadError ? (t8 = () => {
3810
- setImageError(!0), onImageLoadError && onImageLoadError(new Error("Avatar: the image failed to load"));
3811
- }, $[20] = onImageLoadError, $[21] = t8) : t8 = $[21];
3812
- const handleImageError = t8;
3838
+ }, t8 = [src], $[19] = src, $[20] = t7, $[21] = t8) : (t7 = $[20], t8 = $[21]), useEffect(t7, t8);
3813
3839
  let t9;
3814
- $[22] !== size2 ? (t9 = Object.values(size2).map(_temp$2), $[22] = size2, $[23] = t9) : t9 = $[23];
3815
- const initialsSize = t9, t10 = hideInnerStroke ? "" : void 0;
3816
- let t11;
3817
- $[24] !== className || $[25] !== color || $[26] !== sizeProp ? (t11 = avatar({
3840
+ $[22] !== onImageLoadError ? (t9 = () => {
3841
+ setImageError(!0), onImageLoadError && onImageLoadError(new Error("Avatar: the image failed to load"));
3842
+ }, $[22] = onImageLoadError, $[23] = t9) : t9 = $[23];
3843
+ const handleImageError = t9;
3844
+ let t10;
3845
+ $[24] !== size2 ? (t10 = Object.values(size2).map(_temp$2), $[24] = size2, $[25] = t10) : t10 = $[25];
3846
+ const initialsSize = t10, t11 = hideInnerStroke ? "" : void 0;
3847
+ let t12;
3848
+ $[26] !== className || $[27] !== color || $[28] !== sizeProp ? (t12 = avatar({
3818
3849
  className,
3819
3850
  color,
3820
3851
  size: sizeProp
3821
- }), $[24] = className, $[25] = color, $[26] = sizeProp, $[27] = t11) : t11 = $[27];
3822
- const t12 = imageError ? "" : void 0;
3823
- let t13;
3824
- $[28] === Symbol.for("react.memo_cache_sentinel") ? (t13 = avatarArrow(), $[28] = t13) : t13 = $[28];
3852
+ }), $[26] = className, $[27] = color, $[28] = sizeProp, $[29] = t12) : t12 = $[29];
3853
+ const t13 = imageError ? "" : void 0;
3825
3854
  let t14;
3826
- $[29] !== color ? (t14 = /* @__PURE__ */ jsx("span", { className: t13, children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[29] = color, $[30] = t14) : t14 = $[30];
3855
+ $[30] === Symbol.for("react.memo_cache_sentinel") ? (t14 = avatarArrow(), $[30] = t14) : t14 = $[30];
3827
3856
  let t15;
3828
- $[31] === Symbol.for("react.memo_cache_sentinel") ? (t15 = avatarInitials(), $[31] = t15) : t15 = $[31];
3857
+ $[31] !== color ? (t15 = /* @__PURE__ */ jsx("span", { className: t14, children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[31] = color, $[32] = t15) : t15 = $[32];
3829
3858
  let t16;
3830
- $[32] !== initials || $[33] !== initialsSize ? (t16 = /* @__PURE__ */ jsx(Box, { alignItems: "center", as: "span", className: t15, display: "flex", justifyContent: "center", position: "absolute", inset: 0, children: /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: initialsSize, weight: "medium", children: initials }) }), $[32] = initials, $[33] = initialsSize, $[34] = t16) : t16 = $[34];
3859
+ $[33] === Symbol.for("react.memo_cache_sentinel") ? (t16 = avatarInitials(), $[33] = t16) : t16 = $[33];
3831
3860
  let t17;
3832
- $[35] !== handleImageError || $[36] !== initials || $[37] !== src ? (t17 = src && /* @__PURE__ */ jsxs(Box, { className: avatarImage(), inset: 0, position: "absolute", children: [
3861
+ $[34] !== initials || $[35] !== initialsSize ? (t17 = /* @__PURE__ */ jsx(Box, { alignItems: "center", as: "span", className: t16, display: "flex", justifyContent: "center", position: "absolute", inset: 0, children: /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: initialsSize, weight: "medium", children: initials }) }), $[34] = initials, $[35] = initialsSize, $[36] = t17) : t17 = $[36];
3862
+ let t18;
3863
+ $[37] !== handleImageError || $[38] !== initials || $[39] !== src ? (t18 = src && /* @__PURE__ */ jsxs(Box, { className: avatarImage(), inset: 0, position: "absolute", children: [
3833
3864
  /* @__PURE__ */ jsx("img", { alt: initials, onError: handleImageError, src }),
3834
3865
  /* @__PURE__ */ jsx("span", { className: avatarImageOutline() })
3835
- ] }), $[35] = handleImageError, $[36] = initials, $[37] = src, $[38] = t17) : t17 = $[38];
3836
- let t18;
3837
- return $[39] !== Element2 || $[40] !== arrowPosition || $[41] !== rest || $[42] !== t10 || $[43] !== t11 || $[44] !== t12 || $[45] !== t14 || $[46] !== t16 || $[47] !== t17 || $[48] !== title ? (t18 = /* @__PURE__ */ jsxs(Element2, { "data-hide-inner-stroke": t10, "data-ui": "Avatar", ...rest, "aria-label": title, className: t11, "data-arrow-position": arrowPosition, "data-image-error": t12, title, children: [
3838
- t14,
3839
- t16,
3840
- t17
3841
- ] }), $[39] = Element2, $[40] = arrowPosition, $[41] = rest, $[42] = t10, $[43] = t11, $[44] = t12, $[45] = t14, $[46] = t16, $[47] = t17, $[48] = title, $[49] = t18) : t18 = $[49], t18;
3866
+ ] }), $[37] = handleImageError, $[38] = initials, $[39] = src, $[40] = t18) : t18 = $[40];
3867
+ let t19;
3868
+ return $[41] !== Element2 || $[42] !== arrowPosition || $[43] !== rest || $[44] !== t11 || $[45] !== t12 || $[46] !== t13 || $[47] !== t15 || $[48] !== t17 || $[49] !== t18 || $[50] !== title ? (t19 = /* @__PURE__ */ jsxs(Element2, { "data-hide-inner-stroke": t11, "data-ui": "Avatar", ...rest, "aria-label": title, className: t12, "data-arrow-position": arrowPosition, "data-image-error": t13, title, children: [
3869
+ t15,
3870
+ t17,
3871
+ t18
3872
+ ] }), $[41] = Element2, $[42] = arrowPosition, $[43] = rest, $[44] = t11, $[45] = t12, $[46] = t13, $[47] = t15, $[48] = t17, $[49] = t18, $[50] = title, $[51] = t19) : t19 = $[51], t19;
3842
3873
  }
3843
3874
  function _temp$2(s) {
3844
3875
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
@@ -4744,7 +4775,7 @@ function TooltipDelayGroupProvider(props) {
4744
4775
  }, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] = t0, $[5] = t1) : t1 = $[5];
4745
4776
  const value = t1;
4746
4777
  let t2;
4747
- return $[6] !== children || $[7] !== value ? (t2 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t2) : t2 = $[8], t2;
4778
+ return $[6] !== children || $[7] !== value ? (t2 = /* @__PURE__ */ jsx(TooltipDelayGroupContext, { value, children }), $[6] = children, $[7] = value, $[8] = t2) : t2 = $[8], t2;
4748
4779
  }
4749
4780
  function BoundaryElementProvider(props) {
4750
4781
  const $ = c(5), {
@@ -4758,7 +4789,7 @@ function BoundaryElementProvider(props) {
4758
4789
  }, $[0] = element, $[1] = t0) : t0 = $[1];
4759
4790
  const value = t0;
4760
4791
  let t1;
4761
- return $[2] !== children || $[3] !== value ? (t1 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t1) : t1 = $[4], t1;
4792
+ return $[2] !== children || $[3] !== value ? (t1 = /* @__PURE__ */ jsx(BoundaryElementContext, { value, children }), $[2] = children, $[3] = value, $[4] = t1) : t1 = $[4], t1;
4762
4793
  }
4763
4794
  function findMaxBreakpoints(media2, width) {
4764
4795
  const ret = [];
@@ -5041,7 +5072,6 @@ export {
5041
5072
  VirtualList,
5042
5073
  _ResizeObserver,
5043
5074
  _elementSizeObserver,
5044
- _getArrayProp,
5045
5075
  _getResponsiveProp,
5046
5076
  _hasFocus,
5047
5077
  _isEnterToClickElement,
@@ -5072,7 +5102,6 @@ export {
5072
5102
  usePortal,
5073
5103
  usePrefersDark,
5074
5104
  usePrefersReducedMotion,
5075
- useResponsiveProp,
5076
5105
  useToast,
5077
5106
  useTooltipDelayGroup,
5078
5107
  useTree