@sanity/ui 5.0.0-alpha.25 → 5.0.0-alpha.27

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.d.ts CHANGED
@@ -49,7 +49,7 @@ interface AvatarStackProps extends ComponentProps<'ul'> {
49
49
  /** @public */
50
50
  export declare function AvatarStack({ size, ...props }: AvatarStackProps): import("react").JSX.Element;
51
51
  declare const TONE: readonly ["neutral", "positive", "suggest", "caution", "critical"];
52
- declare const TONE_WITH_DEFAULT: string[];
52
+ declare const TONE_WITH_DEFAULT: readonly ["default", "neutral", "positive", "suggest", "caution", "critical"];
53
53
  /** @public */
54
54
  type Tone = (typeof TONE)[number];
55
55
  type ToneWithDefault = (typeof TONE_WITH_DEFAULT)[number];
@@ -320,7 +320,7 @@ interface CheckboxProps extends ComponentProps<'input'> {
320
320
  indeterminate?: boolean;
321
321
  }
322
322
  /** @beta */
323
- export declare function Checkbox(props: CheckboxProps): import("react").JSX.Element;
323
+ export declare function Checkbox({ ref, ...props }: CheckboxProps): import("react").JSX.Element;
324
324
  declare const FONT_WEIGHT: readonly ["regular", "medium", "semibold", "bold"];
325
325
  /** @public */
326
326
  type FontWeight = (typeof FONT_WEIGHT)[number];
@@ -407,7 +407,7 @@ interface DialogProps extends Omit<ComponentProps<'dialog'>, 'open'> {
407
407
  interface DialogContentProps extends ComponentProps<'div'> {}
408
408
  /** @beta */
409
409
  interface DialogFooterProps extends ComponentProps<'div'> {}
410
- declare function DialogRoot({ open, size, ...props }: DialogProps): import("react").JSX.Element;
410
+ declare function DialogRoot({ open, size, ref, ...props }: DialogProps): import("react").JSX.Element;
411
411
  declare namespace DialogRoot {
412
412
  var displayName: string;
413
413
  var Content: typeof DialogContent;
@@ -960,5 +960,11 @@ type VisuallyHiddenProps<T extends ElementType = 'span'> = Polymorphic<T, {
960
960
  export declare function VisuallyHidden<T extends ElementType = 'span'>(props: VisuallyHiddenProps<T>): import("react").JSX.Element;
961
961
  /** @public */
962
962
  export declare function useIsClient(): boolean;
963
- export type { AlignItems, AvatarCounterProps, AvatarProps, AvatarStackProps, BadgeProps, BoxProps, ButtonProps, CardProps, CheckboxProps, CodeProps, CodeSize, ContainerProps, ContainerSize, Density, DialogContentProps, DialogFooterProps, DialogProps, DisplayBlock, DisplayFlex, DisplayGrid, DividerProps, EyebrowProps, EyebrowSize, FlexDirection, FlexParentProps, FlexProps, FlexWrap, FontWeight, GapProps, GridAutoFlow, GridParentProps, GridProps, HStackProps, HeadingProps, HeadingSize, HotkeysProps, IconButtonProps, IconProps, IconSize, IndicatorProps, IndicatorStackProps, InlineProps, JustifyContent, KBDProps, LayoutProps, LinkProps, ListImageProps, ListItemButtonProps, ListItemProps, ListProps, MarginProps, Overflow, PaddingProps, Placement, PlacementProps, PopoverProps, Position, PressAreaProps, RadioProps, Radius, Responsive, SelectProps, Shadow, SkipToContentProps, Space, SpaceAuto, SpaceAutoNegative, SpaceInherit, SpinnerProps, SwitchProps, TabProps, TabsListProps, TabsPanelProps, TabsProps, TextAlign, TextAreaProps, TextInputProps, TextProps, TextSize, Tone, TooltipGroupProps, TooltipProps, TypographyProps, VStackProps, VisuallyHiddenProps };
963
+ /** @public */
964
+ interface SearchInputProps extends FormElementDensityProps, Omit<ComponentProps<'input'>, 'type'> {
965
+ loading?: boolean;
966
+ }
967
+ /** @public */
968
+ export declare function SearchInput({ density, loading, placeholder, ref, ...props }: SearchInputProps): import("react").JSX.Element;
969
+ export type { AlignItems, AvatarCounterProps, AvatarProps, AvatarStackProps, BadgeProps, BoxProps, ButtonProps, CardProps, CheckboxProps, CodeProps, CodeSize, ContainerProps, ContainerSize, Density, DialogContentProps, DialogFooterProps, DialogProps, DisplayBlock, DisplayFlex, DisplayGrid, DividerProps, EyebrowProps, EyebrowSize, FlexDirection, FlexParentProps, FlexProps, FlexWrap, FontWeight, GapProps, GridAutoFlow, GridParentProps, GridProps, HStackProps, HeadingProps, HeadingSize, HotkeysProps, IconButtonProps, IconProps, IconSize, IndicatorProps, IndicatorStackProps, InlineProps, JustifyContent, KBDProps, LayoutProps, LinkProps, ListImageProps, ListItemButtonProps, ListItemProps, ListProps, MarginProps, Overflow, PaddingProps, Placement, PlacementProps, PopoverProps, Position, PressAreaProps, RadioProps, Radius, Responsive, SearchInputProps, SelectProps, Shadow, SkipToContentProps, Space, SpaceAuto, SpaceAutoNegative, SpaceInherit, SpinnerProps, SwitchProps, TabProps, TabsListProps, TabsPanelProps, TabsProps, TextAlign, TextAreaProps, TextInputProps, TextProps, TextSize, Tone, TooltipGroupProps, TooltipProps, TypographyProps, VStackProps, VisuallyHiddenProps };
964
970
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/Avatar.ts","../src/types/Responsive.ts","../src/components/avatar/avatar.props.ts","../src/components/avatar/Avatar.tsx","../src/components/avatar-counter/avatarCounter.props.ts","../src/components/avatar-counter/AvatarCounter.tsx","../src/components/avatar-stack/avatarStack.props.ts","../src/components/avatar-stack/AvatarStack.tsx","../src/types/Tone.ts","../src/props/tone.ts","../src/types/Polymorphic.ts","../src/components/badge/badge.props.ts","../src/components/badge/Badge.tsx","../src/types/Radius.ts","../src/props/border.ts","../src/props/flexChild.ts","../src/props/gridChild.ts","../src/props/height.ts","../src/types/Space.ts","../src/props/margin.ts","../src/types/Overflow.ts","../src/props/overflow.ts","../src/props/padding.ts","../src/types/Position.ts","../src/props/position.ts","../src/types/Shadow.ts","../src/props/shadow.ts","../src/props/width.ts","../src/props/zIndex.ts","../src/props/layout.ts","../src/types/Display.ts","../src/components/box/box.props.ts","../src/components/box/Box.tsx","../src/types/Button.ts","../src/types/Interactive.ts","../src/components/button/button.props.ts","../src/components/button/Button.tsx","../src/types/Density.ts","../src/components/card/card.props.ts","../src/components/card/Card.tsx","../src/components/checkbox/checkbox.props.ts","../src/components/checkbox/Checkbox.tsx","../src/types/FontWeight.ts","../src/types/TextAlign.ts","../src/props/typography.ts","../src/types/Code.ts","../src/components/code/code.props.ts","../src/components/code/Code.tsx","../src/types/Container.ts","../src/components/container/container.props.ts","../src/components/container/Container.tsx","../src/components/dialog/dialog.props.ts","../src/components/dialog/Dialog.tsx","../src/components/divider/divider.props.ts","../src/components/divider/Divider.tsx","../src/types/Eyebrow.ts","../src/components/eyebrow/eyebrow.props.ts","../src/components/eyebrow/Eyebrow.tsx","../src/types/Flex.ts","../src/props/flexParent.ts","../src/props/gap.ts","../src/components/flex/flex.props.ts","../src/components/flex/Flex.tsx","../src/types/Grid.ts","../src/props/gridParent.ts","../src/components/grid/grid.props.ts","../src/components/grid/Grid.tsx","../src/components/h-stack/hStack.props.ts","../src/components/h-stack/HStack.tsx","../src/types/Heading.ts","../src/components/heading/heading.props.ts","../src/components/heading/Heading.tsx","../src/components/hotkeys/hotkeys.props.ts","../src/components/hotkeys/Hotkeys.tsx","../src/types/Icon.ts","../src/components/icon/icon.props.ts","../src/components/icon/Icon.tsx","../src/components/icon-button/iconButton.props.ts","../src/components/icon-button/IconButton.tsx","../src/components/indicator/indicator.props.ts","../src/components/indicator/Indicator.tsx","../src/components/indicator-stack/indicatorStack.props.ts","../src/components/indicator-stack/IndicatorStack.tsx","../src/components/inline/inline.props.ts","../src/components/inline/Inline.tsx","../src/components/kbd/kbd.props.ts","../src/components/kbd/KBD.tsx","../src/components/link/link.props.ts","../src/components/link/Link.tsx","../src/types/List.ts","../src/components/list/list.props.ts","../src/components/list/List.tsx","../src/types/Placement.ts","../src/props/placement.ts","../src/components/popover/popover.props.ts","../src/components/popover/Popover.tsx","../src/components/press-area/pressArea.props.ts","../src/components/press-area/PressArea.tsx","../src/components/radio/radio.props.ts","../src/components/radio/Radio.tsx","../src/types/FormElement.ts","../src/props/formElement.ts","../src/components/select/select.props.ts","../src/components/select/Select.tsx","../src/components/skip-to-content/skipToContent.props.ts","../src/components/skip-to-content/SkipToContent.tsx","../src/components/spinner/spinner.props.ts","../src/components/spinner/Spinner.tsx","../src/components/switch/switch.props.ts","../src/components/switch/Switch.tsx","../src/components/tabs/tabs.props.ts","../src/components/tabs/Tabs.tsx","../src/types/Text.ts","../src/components/text/text.props.ts","../src/components/text/Text.tsx","../src/components/text-area/textArea.props.ts","../src/components/text-area/TextArea.tsx","../src/components/text-input/textInput.props.ts","../src/components/text-input/TextInput.tsx","../src/components/tooltip/tooltip.props.ts","../src/components/tooltip/Tooltip.tsx","../src/components/tooltip-group/tooltipGroup.props.ts","../src/components/tooltip-group/TooltipGroup.tsx","../src/components/v-stack/vStack.props.ts","../src/components/v-stack/VStack.tsx","../src/components/visually-hidden/visuallyHidden.props.ts","../src/components/visually-hidden/VisuallyHidden.tsx","../src/hooks/useIsClient.ts"],"mappings":";cAAa;KACD,qBAAqB;cAEpB;KAUD,sBAAsB;;KCZtB,WAAW,KACnB,WAEE,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;;;UCA3C,oBAAoB;;EAEnC,QAAQ;;EAER;;EAEA,OAAO,WAAW;;EAElB;;;wBCNc,SAAQ,OAAgB,SAAa,SAAQ,8BAAW,IAAA;;UCHvD,2BAA2B;;EAE1C;;EAEA,OAAO;;;wBCFO,gBAAe,SAAa,SAAQ,qCAAkB,IAAA;;UCJrD,yBAAyB;;EAExC;;EAEA,OAAO;;;wBCEO,cAAa,SAAa,SAAQ,mCAAgB,IAAA;cCZrD;cACA;;KAED,eAAe;KACf,0BAA0B;KCD1B;EACV,OAAO;;KAWG;EACV,OAAO;;KCdG,YAAY,UAAU,aAAa,wBAAwB,QACrE,KACE,YAAW,aAAa,YAAY,2BAChC,UACA,sBAAsB,UACpB;;KCAE,WAAW,UAAU,wBAAwB,YACvD,GACA;;EAEE,KAAK;;EAEL,YAAY,cAAc;;EAE1B;;;wBCHY,MAAM,UAAU,wBAAuB,SAAqB,SAAQ,WAAW,qBAAE,IAAA;cCZpF;;KAED,iBA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BAAE,IAAA;;KCL/E,oBAAoB,UAAU,wBAAwB,YAChE;;;;EAKE,KAAK;;;;EAIL;;;wBCNY,eAAe,UAAU,sBAAsB,OAAO,oBAAoB,qBAAE,IAAA;;wBCP5E"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/Avatar.ts","../src/types/Responsive.ts","../src/components/avatar/avatar.props.ts","../src/components/avatar/Avatar.tsx","../src/components/avatar-counter/avatarCounter.props.ts","../src/components/avatar-counter/AvatarCounter.tsx","../src/components/avatar-stack/avatarStack.props.ts","../src/components/avatar-stack/AvatarStack.tsx","../src/types/Tone.ts","../src/props/tone.ts","../src/types/Polymorphic.ts","../src/components/badge/badge.props.ts","../src/components/badge/Badge.tsx","../src/types/Radius.ts","../src/props/border.ts","../src/props/flexChild.ts","../src/props/gridChild.ts","../src/props/height.ts","../src/types/Space.ts","../src/props/margin.ts","../src/types/Overflow.ts","../src/props/overflow.ts","../src/props/padding.ts","../src/types/Position.ts","../src/props/position.ts","../src/types/Shadow.ts","../src/props/shadow.ts","../src/props/width.ts","../src/props/zIndex.ts","../src/props/layout.ts","../src/types/Display.ts","../src/components/box/box.props.ts","../src/components/box/Box.tsx","../src/types/Button.ts","../src/types/Interactive.ts","../src/components/button/button.props.ts","../src/components/button/Button.tsx","../src/types/Density.ts","../src/components/card/card.props.ts","../src/components/card/Card.tsx","../src/components/checkbox/checkbox.props.ts","../src/components/checkbox/Checkbox.tsx","../src/types/FontWeight.ts","../src/types/TextAlign.ts","../src/props/typography.ts","../src/types/Code.ts","../src/components/code/code.props.ts","../src/components/code/Code.tsx","../src/types/Container.ts","../src/components/container/container.props.ts","../src/components/container/Container.tsx","../src/components/dialog/dialog.props.ts","../src/components/dialog/Dialog.tsx","../src/components/divider/divider.props.ts","../src/components/divider/Divider.tsx","../src/types/Eyebrow.ts","../src/components/eyebrow/eyebrow.props.ts","../src/components/eyebrow/Eyebrow.tsx","../src/types/Flex.ts","../src/props/flexParent.ts","../src/props/gap.ts","../src/components/flex/flex.props.ts","../src/components/flex/Flex.tsx","../src/types/Grid.ts","../src/props/gridParent.ts","../src/components/grid/grid.props.ts","../src/components/grid/Grid.tsx","../src/components/h-stack/hStack.props.ts","../src/components/h-stack/HStack.tsx","../src/types/Heading.ts","../src/components/heading/heading.props.ts","../src/components/heading/Heading.tsx","../src/components/hotkeys/hotkeys.props.ts","../src/components/hotkeys/Hotkeys.tsx","../src/types/Icon.ts","../src/components/icon/icon.props.ts","../src/components/icon/Icon.tsx","../src/components/icon-button/iconButton.props.ts","../src/components/icon-button/IconButton.tsx","../src/components/indicator/indicator.props.ts","../src/components/indicator/Indicator.tsx","../src/components/indicator-stack/indicatorStack.props.ts","../src/components/indicator-stack/IndicatorStack.tsx","../src/components/inline/inline.props.ts","../src/components/inline/Inline.tsx","../src/components/kbd/kbd.props.ts","../src/components/kbd/KBD.tsx","../src/components/link/link.props.ts","../src/components/link/Link.tsx","../src/types/List.ts","../src/components/list/list.props.ts","../src/components/list/List.tsx","../src/types/Placement.ts","../src/props/placement.ts","../src/components/popover/popover.props.ts","../src/components/popover/Popover.tsx","../src/components/press-area/pressArea.props.ts","../src/components/press-area/PressArea.tsx","../src/components/radio/radio.props.ts","../src/components/radio/Radio.tsx","../src/types/FormElement.ts","../src/props/formElement.ts","../src/components/select/select.props.ts","../src/components/select/Select.tsx","../src/components/skip-to-content/skipToContent.props.ts","../src/components/skip-to-content/SkipToContent.tsx","../src/components/spinner/spinner.props.ts","../src/components/spinner/Spinner.tsx","../src/components/switch/switch.props.ts","../src/components/switch/Switch.tsx","../src/components/tabs/tabs.props.ts","../src/components/tabs/Tabs.tsx","../src/types/Text.ts","../src/components/text/text.props.ts","../src/components/text/Text.tsx","../src/components/text-area/textArea.props.ts","../src/components/text-area/TextArea.tsx","../src/components/text-input/textInput.props.ts","../src/components/text-input/TextInput.tsx","../src/components/tooltip/tooltip.props.ts","../src/components/tooltip/Tooltip.tsx","../src/components/tooltip-group/tooltipGroup.props.ts","../src/components/tooltip-group/TooltipGroup.tsx","../src/components/v-stack/vStack.props.ts","../src/components/v-stack/VStack.tsx","../src/components/visually-hidden/visuallyHidden.props.ts","../src/components/visually-hidden/VisuallyHidden.tsx","../src/hooks/useIsClient.ts","../src/components/search-input/searchInput.props.ts","../src/components/search-input/SearchInput.tsx"],"mappings":";cAAa;KACD,qBAAqB;cAEpB;KAUD,sBAAsB;;KCZtB,WAAW,KACnB,WAEE,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;;;UCA3C,oBAAoB;;EAEnC,QAAQ;;EAER;;EAEA,OAAO,WAAW;;EAElB;;;wBCNc,SAAQ,OAAgB,SAAa,SAAQ,8BAAW,IAAA;;UCHvD,2BAA2B;;EAE1C;;EAEA,OAAO;;;wBCFO,gBAAe,SAAa,SAAQ,qCAAkB,IAAA;;UCJrD,yBAAyB;;EAExC;;EAEA,OAAO;;;wBCEO,cAAa,SAAa,SAAQ,mCAAgB,IAAA;cCZrD;cACA;;KAED,eAAe;KACf,0BAA0B;KCD1B;EACV,OAAO;;KAWG;EACV,OAAO;;KCdG,YAAY,UAAU,aAAa,wBAAwB,QACrE,KACE,YAAW,aAAa,YAAY,2BAChC,UACA,sBAAsB,UACpB;;KCAE,WAAW,UAAU,wBAAwB,YACvD,GACA;;EAEE,KAAK;;EAEL,YAAY,cAAc;;EAE1B;;;wBCHY,MAAM,UAAU,wBAAuB,SAAqB,SAAQ,WAAW,qBAAE,IAAA;cCZpF;;KAED,iBAAiB;KCEjB;;EAEV,SAAS;;EAET,YAAY;;EAEZ,cAAc;;EAEd,eAAe;;EAEf,aAAa;;EAEb,SAAS,WAAW;;KCbV;;EAEV,YAAY;;EAEZ,WAAW;;EAEX,aAAa;;KCNH;;EAEV,aAAa;;EAEb,kBAAkB;;EAElB,gBAAgB;;EAEhB,UAAU;;EAEV,eAAe;;EAEf,aAAa;;KCZ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A"}
package/dist/index.js CHANGED
@@ -6,11 +6,12 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  import { SpinnerIcon } from "@sanity/icons/Spinner";
7
7
  import { CheckmarkIcon } from "@sanity/icons/Checkmark";
8
8
  import { RemoveIcon } from "@sanity/icons/Remove";
9
- import { CloseIcon } from "@sanity/icons/Close";
9
+ import CloseIcon$1, { CloseIcon } from "@sanity/icons/Close";
10
10
  import { createPortal } from "react-dom";
11
11
  import SelectIcon from "@sanity/icons/Select";
12
+ import SearchIcon from "@sanity/icons/Search";
12
13
  function getProps(componentProps, propDefs) {
13
- let { allComponentProps, allPropDefs } = flattenCompositeProps(componentProps, propDefs), restProps = {}, className = componentProps?.className || "", style = componentProps?.style || {};
14
+ let { allComponentProps, allPropDefs } = flattenCompositeProps(componentProps, propDefs), restProps = {}, classNames = [], style = componentProps?.style ? { ...componentProps.style } : {};
14
15
  for (let key in allComponentProps) {
15
16
  let propDef = allPropDefs?.[key], propValue = allComponentProps[key];
16
17
  if (!(propDef && "className" in propDef && propDef.className || propDef?.type === "conditional")) {
@@ -19,26 +20,28 @@ function getProps(componentProps, propDefs) {
19
20
  }
20
21
  if (Array.isArray(propValue)) for (let i = 0, len = Math.min(propValue.length, 6); i < len; i++) {
21
22
  let resolvedPropDef = getResolvedPropDef(propValue[i], propDef);
22
- resolvedPropDef && (className = clsx(className, getClassName(propValue[i], resolvedPropDef, i)), style = {
23
- ...style,
24
- ...getStyle(propValue[i], resolvedPropDef, i)
25
- });
23
+ if (!resolvedPropDef || propValue[i] === null || propValue[i] === void 0) continue;
24
+ let className = getClassName(propValue[i], resolvedPropDef, i);
25
+ className && classNames.push(className);
26
+ let styleKey = getStyleKey(resolvedPropDef, i);
27
+ styleKey && (style[styleKey] = propValue[i]);
26
28
  }
27
29
  else {
30
+ if (propValue == null) continue;
28
31
  let resolvedPropDef = getResolvedPropDef(propValue, propDef);
29
32
  if (!resolvedPropDef) {
30
33
  restProps[key] = propValue;
31
34
  continue;
32
35
  }
33
- className = clsx(className, getClassName(propValue, resolvedPropDef)), style = {
34
- ...style,
35
- ...getStyle(propValue, resolvedPropDef)
36
- };
36
+ let className = getClassName(propValue, resolvedPropDef);
37
+ className && classNames.push(className);
38
+ let styleKey = getStyleKey(resolvedPropDef);
39
+ styleKey && (style[styleKey] = propValue);
37
40
  }
38
41
  }
39
42
  return {
40
43
  ...restProps,
41
- className,
44
+ className: clsx(componentProps?.className, ...classNames),
42
45
  style
43
46
  };
44
47
  }
@@ -56,8 +59,8 @@ function getClassName(propValue, propDef, bp) {
56
59
  }
57
60
  return "";
58
61
  }
59
- function getStyle(propValue, propDef, bp) {
60
- return (propDef.type === "string" || propDef.type === "number") && propDef.variable ? { [`${propDef.variable}${bp ? `-bp-${bp}` : ""}`]: propValue } : {};
62
+ function getStyleKey(propDef, bp) {
63
+ if ((propDef.type === "string" || propDef.type === "number") && propDef.variable) return `${propDef.variable}${bp ? `-bp-${bp}` : ""}`;
61
64
  }
62
65
  function flattenCompositeProps(componentProps, propDefs) {
63
66
  let props = {
@@ -81,7 +84,7 @@ function getCompositeValue(propValue, propDef, key) {
81
84
  return compositeValue;
82
85
  }
83
86
  function suffixClassName(className) {
84
- return `${className}-13d200`;
87
+ return `${className}-711625`;
85
88
  }
86
89
  const SPACE = [
87
90
  0,
@@ -1069,38 +1072,64 @@ function Card(t0) {
1069
1072
  children
1070
1073
  }), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
1071
1074
  }
1075
+ /**
1076
+ * Sets a ref to a value. Returns the cleanup function of a callback ref, if it returns one.
1077
+ */
1078
+ function setRef(ref, value) {
1079
+ if (typeof ref == "function") return ref(value);
1080
+ ref != null && (ref.current = value);
1081
+ }
1082
+ /**
1083
+ * Composes multiple refs (callback refs and ref objects) into one callback ref.
1084
+ *
1085
+ * On detach, the composed ref calls the cleanup function of each callback ref that returned one.
1086
+ * It sets all other refs to `null`.
1087
+ */
1088
+ function composeRefs(...refs) {
1089
+ return (node) => {
1090
+ let cleanups = refs.map((ref) => setRef(ref, node));
1091
+ return () => {
1092
+ for (let i = 0; i < refs.length; i++) {
1093
+ let cleanup = cleanups[i];
1094
+ typeof cleanup == "function" ? cleanup() : setRef(refs[i], null);
1095
+ }
1096
+ };
1097
+ };
1098
+ }
1072
1099
  const checkboxProps = {
1073
1100
  hasError: { type: "boolean" },
1074
1101
  indeterminate: { type: "boolean" }
1075
1102
  }, checkboxClassName = suffixClassName("sui-Checkbox"), checkboxInputClassName = suffixClassName("sui-CheckboxInput");
1076
1103
  /** @beta */
1077
- function Checkbox(props) {
1078
- let $ = c(12), inputRef = useRef(null), { className, style, hasError, indeterminate, ...rest } = getProps(props, checkboxProps);
1104
+ function Checkbox(t0) {
1105
+ let $ = c(15), { ref, ...props } = t0, inputRef = useRef(null), { className, style, hasError, indeterminate, ...rest } = getProps(props, checkboxProps);
1079
1106
  useEffect(() => {
1080
1107
  inputRef.current && (inputRef.current.indeterminate = indeterminate);
1081
1108
  }, [indeterminate, inputRef]);
1082
- let T0 = Box, t1 = clsx(checkboxClassName, className), t2;
1083
- $[0] === indeterminate ? t2 = $[1] : (t2 = jsx(indeterminate ? RemoveIcon : CheckmarkIcon, { "aria-hidden": "true" }), $[0] = indeterminate, $[1] = t2);
1084
- let t3 = hasError || void 0, t4;
1085
- $[2] !== inputRef || $[3] !== rest || $[4] !== t3 ? (t4 = /* @__PURE__ */ jsx("input", {
1109
+ let T0 = Box, t2 = clsx(checkboxClassName, className), t3;
1110
+ $[0] === indeterminate ? t3 = $[1] : (t3 = jsx(indeterminate ? RemoveIcon : CheckmarkIcon, { "aria-hidden": "true" }), $[0] = indeterminate, $[1] = t3);
1111
+ let t4;
1112
+ $[2] !== inputRef || $[3] !== ref ? (t4 = composeRefs(inputRef, ref), $[2] = inputRef, $[3] = ref, $[4] = t4) : t4 = $[4];
1113
+ let t5 = hasError || void 0, t6;
1114
+ $[5] !== rest || $[6] !== t4 || $[7] !== t5 ? (t6 = /* @__PURE__ */ jsx("input", {
1086
1115
  type: "checkbox",
1087
1116
  className: checkboxInputClassName,
1088
- ref: inputRef,
1089
- "aria-invalid": t3,
1117
+ ref: t4,
1118
+ "aria-invalid": t5,
1090
1119
  ...rest
1091
- }), $[2] = inputRef, $[3] = rest, $[4] = t3, $[5] = t4) : t4 = $[5];
1092
- let t5;
1093
- return $[6] !== T0 || $[7] !== style || $[8] !== t1 || $[9] !== t2 || $[10] !== t4 ? (t5 = /* @__PURE__ */ jsxs(T0, {
1120
+ }), $[5] = rest, $[6] = t4, $[7] = t5, $[8] = t6) : t6 = $[8];
1121
+ let t7;
1122
+ return $[9] !== T0 || $[10] !== style || $[11] !== t2 || $[12] !== t3 || $[13] !== t6 ? (t7 = /* @__PURE__ */ jsxs(T0, {
1094
1123
  as: "span",
1095
- className: t1,
1124
+ className: t2,
1096
1125
  style,
1097
1126
  "data-ui": "Checkbox",
1098
1127
  position: "relative",
1099
1128
  radius: 2,
1100
1129
  width: "17px",
1101
1130
  height: "17px",
1102
- children: [t2, t4]
1103
- }), $[6] = T0, $[7] = style, $[8] = t1, $[9] = t2, $[10] = t4, $[11] = t5) : t5 = $[11], t5;
1131
+ children: [t3, t6]
1132
+ }), $[9] = T0, $[10] = style, $[11] = t2, $[12] = t3, $[13] = t6, $[14] = t7) : t7 = $[14], t7;
1104
1133
  }
1105
1134
  const codeProps = {
1106
1135
  inline: { type: "boolean" },
@@ -1298,7 +1327,7 @@ const dialogProps = {
1298
1327
  }
1299
1328
  }, dialogClassName = suffixClassName("sui-Dialog"), dialogContentClassName = suffixClassName("sui-DialogContent"), dialogFooterClassName = suffixClassName("sui-DialogFooter");
1300
1329
  function DialogRoot(t0) {
1301
- let $ = c(17), { open: t1, size: t2, ...props } = t0, open = t1 !== void 0 && t1, { children, className, style, header, onClose, ...rest } = getProps({
1330
+ let $ = c(20), { open: t1, size: t2, ref, ...props } = t0, open = t1 !== void 0 && t1, { children, className, style, header, onClose, ...rest } = getProps({
1302
1331
  size: t2 === void 0 ? 0 : t2,
1303
1332
  ...props
1304
1333
  }, dialogProps), dialogRef = useRef(null), headerId = useId(), dialogClasses = clsx(dialogClassName, `${props.topAnchor ? "sui-mx-auto" : "sui-m-auto"} sui-radius5 sui-shadow3 sui-p4 sui-flex-direction-column sui-gap4 sui-overflow-y-auto`), t3, t4;
@@ -1308,40 +1337,42 @@ function DialogRoot(t0) {
1308
1337
  dialogElement.close();
1309
1338
  };
1310
1339
  }, t4 = [open], $[0] = open, $[1] = t3, $[2] = t4), useEffect(t3, t4);
1311
- let t6 = header ? headerId : void 0, t7 = clsx(dialogClasses, className), t8;
1312
- $[3] !== header || $[4] !== headerId ? (t8 = header ? /* @__PURE__ */ jsx(Heading, {
1340
+ let t5;
1341
+ $[3] === ref ? t5 = $[4] : (t5 = composeRefs(dialogRef, ref), $[3] = ref, $[4] = t5);
1342
+ let t7 = header ? headerId : void 0, t8 = clsx(dialogClasses, className), t9;
1343
+ $[5] !== header || $[6] !== headerId ? (t9 = header ? /* @__PURE__ */ jsx(Heading, {
1313
1344
  as: "h2",
1314
1345
  trim: !0,
1315
1346
  size: 1,
1316
1347
  id: headerId,
1317
1348
  children: header
1318
- }) : /* @__PURE__ */ jsx("div", {}), $[3] = header, $[4] = headerId, $[5] = t8) : t8 = $[5];
1319
- let t9;
1320
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsx(IconButton, {
1349
+ }) : /* @__PURE__ */ jsx("div", {}), $[5] = header, $[6] = headerId, $[7] = t9) : t9 = $[7];
1350
+ let t10;
1351
+ $[8] === Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsx(IconButton, {
1321
1352
  "aria-label": "Close",
1322
1353
  level: "tertiary",
1323
1354
  icon: CloseIcon,
1324
1355
  onClick: () => dialogRef.current?.close()
1325
- }), $[6] = t9) : t9 = $[6];
1326
- let t10;
1327
- $[7] === t8 ? t10 = $[8] : (t10 = /* @__PURE__ */ jsxs(Flex, {
1356
+ }), $[8] = t10) : t10 = $[8];
1357
+ let t11;
1358
+ $[9] === t9 ? t11 = $[10] : (t11 = /* @__PURE__ */ jsxs(Flex, {
1328
1359
  flexShrink: 0,
1329
1360
  justifyContent: "space-between",
1330
1361
  alignItems: "center",
1331
- children: [t8, t9]
1332
- }), $[7] = t8, $[8] = t10);
1333
- let t11;
1334
- return $[9] !== children || $[10] !== onClose || $[11] !== rest || $[12] !== style || $[13] !== t10 || $[14] !== t6 || $[15] !== t7 ? (t11 = /* @__PURE__ */ jsxs("dialog", {
1362
+ children: [t9, t10]
1363
+ }), $[9] = t9, $[10] = t11);
1364
+ let t12;
1365
+ return $[11] !== children || $[12] !== onClose || $[13] !== rest || $[14] !== style || $[15] !== t11 || $[16] !== t5 || $[17] !== t7 || $[18] !== t8 ? (t12 = /* @__PURE__ */ jsxs("dialog", {
1335
1366
  ...rest,
1336
- ref: dialogRef,
1367
+ ref: t5,
1337
1368
  closedby: "any",
1338
- "aria-labelledby": t6,
1369
+ "aria-labelledby": t7,
1339
1370
  onClose,
1340
- className: t7,
1371
+ className: t8,
1341
1372
  style,
1342
1373
  "data-ui": "Dialog",
1343
- children: [t10, children]
1344
- }), $[9] = children, $[10] = onClose, $[11] = rest, $[12] = style, $[13] = t10, $[14] = t6, $[15] = t7, $[16] = t11) : t11 = $[16], t11;
1374
+ children: [t11, children]
1375
+ }), $[11] = children, $[12] = onClose, $[13] = rest, $[14] = style, $[15] = t11, $[16] = t5, $[17] = t7, $[18] = t8, $[19] = t12) : t12 = $[19], t12;
1345
1376
  }
1346
1377
  function DialogContent(props) {
1347
1378
  let $ = c(12), T0, children, style, t0, t1;
@@ -2115,10 +2146,10 @@ const formElementDensityProps = { density: {
2115
2146
  } }, selectProps = {
2116
2147
  hasError: { type: "boolean" },
2117
2148
  ...formElementDensityProps
2118
- }, selectClassName = suffixClassName("sui-Select");
2149
+ }, selectClassName = suffixClassName("sui-Select"), selectIconClassName = suffixClassName("sui-Select-Icon");
2119
2150
  /** @public */
2120
2151
  function Select(t0) {
2121
- let $ = c(17), { density: t1, hasError: t2, ...props } = t0, density = t1 === void 0 ? "regular" : t1, hasError = t2 !== void 0 && t2, { children, className, style, ...rest } = getProps({
2152
+ let $ = c(18), { density: t1, hasError: t2, ...props } = t0, density = t1 === void 0 ? "regular" : t1, hasError = t2 !== void 0 && t2, { children, className, style, ...rest } = getProps({
2122
2153
  density,
2123
2154
  ...props
2124
2155
  }, selectProps), anchorName = `--anchor-${useId()}`, selectClasses = clsx(selectClassName, "sui-radius2", "sui-width-full", className), t3;
@@ -2136,27 +2167,29 @@ function Select(t0) {
2136
2167
  children
2137
2168
  }), $[3] = children, $[4] = rest, $[5] = selectClasses, $[6] = t3, $[7] = t4, $[8] = t5) : t5 = $[8];
2138
2169
  let t6;
2139
- $[9] === anchorName ? t6 = $[10] : (t6 = { positionAnchor: anchorName }, $[9] = anchorName, $[10] = t6);
2170
+ $[9] === Symbol.for("react.memo_cache_sentinel") ? (t6 = clsx(selectIconClassName, "sui-position-absolute sui-display-flex sui-align-items-center sui-px1"), $[9] = t6) : t6 = $[9];
2140
2171
  let t7;
2141
- $[11] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsx(Icon, {
2172
+ $[10] === anchorName ? t7 = $[11] : (t7 = { positionAnchor: anchorName }, $[10] = anchorName, $[11] = t7);
2173
+ let t8;
2174
+ $[12] === Symbol.for("react.memo_cache_sentinel") ? (t8 = /* @__PURE__ */ jsx(Icon, {
2142
2175
  icon: SelectIcon,
2143
2176
  size: 1
2144
- }), $[11] = t7) : t7 = $[11];
2145
- let t8;
2146
- $[12] === t6 ? t8 = $[13] : (t8 = /* @__PURE__ */ jsx("div", {
2147
- className: "sui-position-absolute sui-display-flex sui-align-items-center sui-px1",
2148
- "data-ui": "Select-icon",
2149
- style: t6,
2150
- children: t7
2151
- }), $[12] = t6, $[13] = t8);
2177
+ }), $[12] = t8) : t8 = $[12];
2152
2178
  let t9;
2153
- return $[14] !== t5 || $[15] !== t8 ? (t9 = /* @__PURE__ */ jsxs(Fragment, { children: [t5, t8] }), $[14] = t5, $[15] = t8, $[16] = t9) : t9 = $[16], t9;
2179
+ $[13] === t7 ? t9 = $[14] : (t9 = /* @__PURE__ */ jsx("div", {
2180
+ className: t6,
2181
+ "data-ui": "Select-Icon",
2182
+ style: t7,
2183
+ children: t8
2184
+ }), $[13] = t7, $[14] = t9);
2185
+ let t10;
2186
+ return $[15] !== t5 || $[16] !== t9 ? (t10 = /* @__PURE__ */ jsxs(Fragment, { children: [t5, t9] }), $[15] = t5, $[16] = t9, $[17] = t10) : t10 = $[17], t10;
2154
2187
  }
2155
2188
  const visuallyHiddenProps = {
2156
2189
  as: { type: "string" },
2157
2190
  visibleOnFocus: {
2158
2191
  type: "boolean",
2159
- className: "sui-visually-hidden-visible"
2192
+ className: "visually-hidden-visible"
2160
2193
  }
2161
2194
  }, visuallyHiddenClassName = suffixClassName("sui-VisuallyHidden");
2162
2195
  /** @public */
@@ -2459,7 +2492,7 @@ function TooltipRoot(t0) {
2459
2492
  const Tooltip = Object.assign(TooltipRoot, { forwardsTriggerProps: !0 }), tooltipGroupProps = { as: { type: "string" } }, tooltipGroupClassName = suffixClassName("sui-TooltipGroup");
2460
2493
  /** @public */
2461
2494
  function TooltipGroup(props) {
2462
- let $ = c(17), { as, children, className, style, ...rest } = getProps(props, tooltipGroupProps), Component = as || "div", ref = useRef(null), [isActive, setIsActive] = useState(!1), t0;
2495
+ let $ = c(4), { as, children, className, style, ref, ...rest } = getProps(props, tooltipGroupProps), Component = as || "div", tooltipGroupRef = useRef(null), [isActive, setIsActive] = useState(!1), t0;
2463
2496
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = (e) => {
2464
2497
  let tooltip = e.target.closest("[data-ui=\"Tooltip\"]");
2465
2498
  tooltip && e.propertyName === "opacity" && window.getComputedStyle(tooltip).opacity !== "0" && setIsActive(!0);
@@ -2468,30 +2501,110 @@ function TooltipGroup(props) {
2468
2501
  $[1] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
2469
2502
  setIsActive(!1);
2470
2503
  }, $[1] = t1) : t1 = $[1];
2471
- let handleMouseLeave = t1, t2;
2472
- $[2] === Symbol.for("react.memo_cache_sentinel") ? (t2 = (e_0) => {
2473
- ref.current && ref.current.contains(e_0.relatedTarget) || setIsActive(!1);
2474
- }, $[2] = t2) : t2 = $[2];
2475
- let handleBlur = t2, t3 = clsx(tooltipGroupClassName, className), t4;
2476
- $[3] === isActive ? t4 = $[4] : (t4 = isActive && { "--tooltip-delay-group": "0ms" }, $[3] = isActive, $[4] = t4);
2477
- let t5;
2478
- $[5] !== style || $[6] !== t4 ? (t5 = {
2479
- ...style,
2480
- ...t4
2481
- }, $[5] = style, $[6] = t4, $[7] = t5) : t5 = $[7];
2482
- let t6;
2483
- return $[8] !== Component || $[9] !== children || $[10] !== handleBlur || $[11] !== handleMouseLeave || $[12] !== handleTransitionEnd || $[13] !== rest || $[14] !== t3 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Component, {
2484
- className: t3,
2485
- style: t5,
2504
+ let handleMouseLeave = t1, handleBlur = (e_0) => {
2505
+ tooltipGroupRef.current && tooltipGroupRef.current.contains(e_0.relatedTarget) || setIsActive(!1);
2506
+ }, t2;
2507
+ return $[2] === isActive ? t2 = $[3] : (t2 = isActive && { "--tooltip-delay-group": "0ms" }, $[2] = isActive, $[3] = t2), /* @__PURE__ */ jsx(Component, {
2508
+ className: clsx(tooltipGroupClassName, className),
2509
+ style: {
2510
+ ...style,
2511
+ ...t2
2512
+ },
2513
+ ...rest,
2486
2514
  "data-ui": "TooltipGroup",
2487
- ref,
2515
+ ref: composeRefs(tooltipGroupRef, ref),
2488
2516
  onTransitionEnd: handleTransitionEnd,
2489
2517
  onMouseLeave: handleMouseLeave,
2490
2518
  onBlur: handleBlur,
2491
- ...rest,
2492
2519
  children
2493
- }), $[8] = Component, $[9] = children, $[10] = handleBlur, $[11] = handleMouseLeave, $[12] = handleTransitionEnd, $[13] = rest, $[14] = t3, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
2520
+ });
2494
2521
  }
2495
- export { Avatar, AvatarCounter, AvatarStack, Badge, Box, Button, Card, Checkbox, Code, Container, Dialog, Divider, Eyebrow, Flex, Grid, HStack, Heading, Hotkeys, Icon, IconButton, Indicator, IndicatorStack, Inline, KBD, Link, List, Popover, PressArea, Radio, Select, SkipToContent, Spinner, Switch, Tabs, Text, TextArea, TextInput, Tooltip, TooltipGroup, VStack, VisuallyHidden, useIsClient };
2522
+ const searchInputProps = {
2523
+ loading: { type: "boolean" },
2524
+ ...formElementDensityProps
2525
+ }, searchInputClassName = suffixClassName("sui-SearchInput"), searchInputClearClassName = suffixClassName("sui-SearchInput-Clear"), searchInputIconClassName = suffixClassName("sui-SearchInput-Icon");
2526
+ /** @public */
2527
+ function SearchInput(t0) {
2528
+ let $ = c(38), loading, placeholder, ref, rest, style, t1;
2529
+ if ($[0] !== t0) {
2530
+ let { density: t2, loading: t3, placeholder: t4, ref: t5, ...props } = t0;
2531
+ loading = t3, ref = t5;
2532
+ let density = t2 === void 0 ? "regular" : t2;
2533
+ placeholder = t4 === void 0 ? " " : t4;
2534
+ let { className, style: t6, ...t7 } = getProps({
2535
+ density,
2536
+ ...props
2537
+ }, searchInputProps);
2538
+ style = t6, rest = t7, t1 = clsx(searchInputClassName, "sui-radius2", "sui-width-full", className), $[0] = t0, $[1] = loading, $[2] = placeholder, $[3] = ref, $[4] = rest, $[5] = style, $[6] = t1;
2539
+ } else loading = $[1], placeholder = $[2], ref = $[3], rest = $[4], style = $[5], t1 = $[6];
2540
+ let searchInputClasses = t1, anchorName = `--anchor-${useId()}`, inputRef = useRef(null), t2;
2541
+ $[7] === Symbol.for("react.memo_cache_sentinel") ? (t2 = function handleClear() {
2542
+ let input = inputRef.current;
2543
+ input && ((Object.getOwnPropertyDescriptor(Object.getPrototypeOf(input), "value")?.set)?.call(input, ""), input.dispatchEvent(new Event("input", { bubbles: !0 })), input.focus());
2544
+ }, $[7] = t2) : t2 = $[7];
2545
+ let handleClear = t2, t3;
2546
+ $[8] !== anchorName || $[9] !== style ? (t3 = {
2547
+ anchorName,
2548
+ ...style
2549
+ }, $[8] = anchorName, $[9] = style, $[10] = t3) : t3 = $[10];
2550
+ let t4;
2551
+ $[11] === ref ? t4 = $[12] : (t4 = composeRefs(inputRef, ref), $[11] = ref, $[12] = t4);
2552
+ let t5;
2553
+ $[13] !== loading || $[14] !== placeholder || $[15] !== rest || $[16] !== searchInputClasses || $[17] !== t3 || $[18] !== t4 ? (t5 = /* @__PURE__ */ jsx("input", {
2554
+ className: searchInputClasses,
2555
+ style: t3,
2556
+ ...rest,
2557
+ "aria-busy": loading,
2558
+ "data-ui": "SearchInput",
2559
+ type: "search",
2560
+ placeholder,
2561
+ ref: t4
2562
+ }), $[13] = loading, $[14] = placeholder, $[15] = rest, $[16] = searchInputClasses, $[17] = t3, $[18] = t4, $[19] = t5) : t5 = $[19];
2563
+ let t6;
2564
+ $[20] === Symbol.for("react.memo_cache_sentinel") ? (t6 = clsx(searchInputIconClassName, "sui-position-absolute sui-display-flex sui-align-items-center sui-px1"), $[20] = t6) : t6 = $[20];
2565
+ let t7;
2566
+ $[21] === anchorName ? t7 = $[22] : (t7 = { positionAnchor: anchorName }, $[21] = anchorName, $[22] = t7);
2567
+ let t8;
2568
+ $[23] === loading ? t8 = $[24] : (t8 = loading ? /* @__PURE__ */ jsx(Spinner, { size: 1 }) : /* @__PURE__ */ jsx(Icon, {
2569
+ icon: SearchIcon,
2570
+ size: 1
2571
+ }), $[23] = loading, $[24] = t8);
2572
+ let t9;
2573
+ $[25] !== t7 || $[26] !== t8 ? (t9 = /* @__PURE__ */ jsx("div", {
2574
+ className: t6,
2575
+ "data-ui": "Search-Icon",
2576
+ style: t7,
2577
+ children: t8
2578
+ }), $[25] = t7, $[26] = t8, $[27] = t9) : t9 = $[27];
2579
+ let t10;
2580
+ $[28] === Symbol.for("react.memo_cache_sentinel") ? (t10 = clsx(searchInputClearClassName, "sui-position-absolute sui-display-flex sui-align-items-center sui-px1"), $[28] = t10) : t10 = $[28];
2581
+ let t11;
2582
+ $[29] === anchorName ? t11 = $[30] : (t11 = { positionAnchor: anchorName }, $[29] = anchorName, $[30] = t11);
2583
+ let t12;
2584
+ $[31] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(PressArea, {
2585
+ type: "button",
2586
+ onClick: handleClear,
2587
+ "aria-label": "Clear search query",
2588
+ className: "sui-display-inline-flex sui-align-items-center sui-justify-content-center",
2589
+ children: /* @__PURE__ */ jsx(Icon, {
2590
+ icon: CloseIcon$1,
2591
+ size: 0
2592
+ })
2593
+ }), $[31] = t12) : t12 = $[31];
2594
+ let t13;
2595
+ $[32] === t11 ? t13 = $[33] : (t13 = /* @__PURE__ */ jsx("div", {
2596
+ className: t10,
2597
+ "data-ui": "Search-Clear",
2598
+ style: t11,
2599
+ children: t12
2600
+ }), $[32] = t11, $[33] = t13);
2601
+ let t14;
2602
+ return $[34] !== t13 || $[35] !== t5 || $[36] !== t9 ? (t14 = /* @__PURE__ */ jsxs(Fragment, { children: [
2603
+ t5,
2604
+ t9,
2605
+ t13
2606
+ ] }), $[34] = t13, $[35] = t5, $[36] = t9, $[37] = t14) : t14 = $[37], t14;
2607
+ }
2608
+ export { Avatar, AvatarCounter, AvatarStack, Badge, Box, Button, Card, Checkbox, Code, Container, Dialog, Divider, Eyebrow, Flex, Grid, HStack, Heading, Hotkeys, Icon, IconButton, Indicator, IndicatorStack, Inline, KBD, Link, List, Popover, PressArea, Radio, SearchInput, Select, SkipToContent, Spinner, Switch, Tabs, Text, TextArea, TextInput, Tooltip, TooltipGroup, VStack, VisuallyHidden, useIsClient };
2496
2609
 
2497
2610
  //# sourceMappingURL=index.js.map