@sanity/ui 5.0.0-alpha.25 → 5.0.0-alpha.26
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 +10 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +193 -81
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/checkbox/Checkbox.tsx +3 -2
- package/src/components/dialog/Dialog.tsx +3 -2
- package/src/components/index.css +1 -0
- package/src/components/search-input/SearchInput.tsx +90 -0
- package/src/components/search-input/search-input.css +125 -0
- package/src/components/search-input/searchInput.props.ts +18 -0
- package/src/components/select/Select.tsx +6 -1
- package/src/components/select/select.css +10 -12
- package/src/components/tooltip-group/TooltipGroup.tsx +6 -5
- package/src/components/visually-hidden/visuallyHidden.props.ts +1 -1
- package/src/index.ts +1 -0
- package/src/types/Tone.ts +1 -1
- package/src/utils/composeRefs.test.ts +130 -0
- package/src/utils/composeRefs.ts +52 -0
- package/src/utils/getProps.test.ts +18 -0
- package/src/utils/getProps.ts +31 -16
- package/src/version.ts +2 -2
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:
|
|
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
|
-
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,UAC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;;;;EAKE,KAAK;;;wBCFO,aAAa,UAAU,qBAAqB,OAAO,kBAAkB,qBAAE,IAAA;;KCJ3E,YAAY,UAAU,uBAAuB,YACvD,GACA,KAAK,UAAU;;wBCGD,OAAO,UAAU,uBAAsB,cAAc,SAAQ,YAAY,qBAAE,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,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AChE;;;;EAKE,KAAK;;;;EAIL;;;wBCNY,eAAe,UAAU,sBAAsB,OAAO,oBAAoB,qBAAE,IAAA;;wBCP5E;;UCGC,yBACP,yBAAyB,KAAK;EAEtC;;;wBCSc,cACd,SACA,SAEA,aACA,QACG,SACF,mCAAgB,IAAA"}
|
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 = {},
|
|
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,27 @@ 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
|
|
23
|
-
|
|
24
|
-
|
|
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 {
|
|
28
30
|
let resolvedPropDef = getResolvedPropDef(propValue, propDef);
|
|
29
|
-
if (!resolvedPropDef) {
|
|
31
|
+
if (!resolvedPropDef || propValue == null) {
|
|
30
32
|
restProps[key] = propValue;
|
|
31
33
|
continue;
|
|
32
34
|
}
|
|
33
|
-
className =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
let className = getClassName(propValue, resolvedPropDef);
|
|
36
|
+
className && classNames.push(className);
|
|
37
|
+
let styleKey = getStyleKey(resolvedPropDef);
|
|
38
|
+
styleKey && (style[styleKey] = propValue);
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
return {
|
|
40
42
|
...restProps,
|
|
41
|
-
className,
|
|
43
|
+
className: clsx(componentProps?.className, ...classNames),
|
|
42
44
|
style
|
|
43
45
|
};
|
|
44
46
|
}
|
|
@@ -56,8 +58,8 @@ function getClassName(propValue, propDef, bp) {
|
|
|
56
58
|
}
|
|
57
59
|
return "";
|
|
58
60
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
61
|
+
function getStyleKey(propDef, bp) {
|
|
62
|
+
if ((propDef.type === "string" || propDef.type === "number") && propDef.variable) return `${propDef.variable}${bp ? `-bp-${bp}` : ""}`;
|
|
61
63
|
}
|
|
62
64
|
function flattenCompositeProps(componentProps, propDefs) {
|
|
63
65
|
let props = {
|
|
@@ -81,7 +83,7 @@ function getCompositeValue(propValue, propDef, key) {
|
|
|
81
83
|
return compositeValue;
|
|
82
84
|
}
|
|
83
85
|
function suffixClassName(className) {
|
|
84
|
-
return `${className}-
|
|
86
|
+
return `${className}-f11fdc`;
|
|
85
87
|
}
|
|
86
88
|
const SPACE = [
|
|
87
89
|
0,
|
|
@@ -1069,38 +1071,64 @@ function Card(t0) {
|
|
|
1069
1071
|
children
|
|
1070
1072
|
}), $[6] = T0, $[7] = children, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
|
|
1071
1073
|
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Sets a ref to a value. Returns the cleanup function of a callback ref, if it returns one.
|
|
1076
|
+
*/
|
|
1077
|
+
function setRef(ref, value) {
|
|
1078
|
+
if (typeof ref == "function") return ref(value);
|
|
1079
|
+
ref != null && (ref.current = value);
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Composes multiple refs (callback refs and ref objects) into one callback ref.
|
|
1083
|
+
*
|
|
1084
|
+
* On detach, the composed ref calls the cleanup function of each callback ref that returned one.
|
|
1085
|
+
* It sets all other refs to `null`.
|
|
1086
|
+
*/
|
|
1087
|
+
function composeRefs(...refs) {
|
|
1088
|
+
return (node) => {
|
|
1089
|
+
let cleanups = refs.map((ref) => setRef(ref, node));
|
|
1090
|
+
return () => {
|
|
1091
|
+
for (let i = 0; i < refs.length; i++) {
|
|
1092
|
+
let cleanup = cleanups[i];
|
|
1093
|
+
typeof cleanup == "function" ? cleanup() : setRef(refs[i], null);
|
|
1094
|
+
}
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1072
1098
|
const checkboxProps = {
|
|
1073
1099
|
hasError: { type: "boolean" },
|
|
1074
1100
|
indeterminate: { type: "boolean" }
|
|
1075
1101
|
}, checkboxClassName = suffixClassName("sui-Checkbox"), checkboxInputClassName = suffixClassName("sui-CheckboxInput");
|
|
1076
1102
|
/** @beta */
|
|
1077
|
-
function Checkbox(
|
|
1078
|
-
let $ = c(
|
|
1103
|
+
function Checkbox(t0) {
|
|
1104
|
+
let $ = c(15), { ref, ...props } = t0, inputRef = useRef(null), { className, style, hasError, indeterminate, ...rest } = getProps(props, checkboxProps);
|
|
1079
1105
|
useEffect(() => {
|
|
1080
1106
|
inputRef.current && (inputRef.current.indeterminate = indeterminate);
|
|
1081
1107
|
}, [indeterminate, inputRef]);
|
|
1082
|
-
let T0 = Box,
|
|
1083
|
-
$[0] === indeterminate ?
|
|
1084
|
-
let
|
|
1085
|
-
$[2] !== inputRef || $[3] !==
|
|
1108
|
+
let T0 = Box, t2 = clsx(checkboxClassName, className), t3;
|
|
1109
|
+
$[0] === indeterminate ? t3 = $[1] : (t3 = jsx(indeterminate ? RemoveIcon : CheckmarkIcon, { "aria-hidden": "true" }), $[0] = indeterminate, $[1] = t3);
|
|
1110
|
+
let t4;
|
|
1111
|
+
$[2] !== inputRef || $[3] !== ref ? (t4 = composeRefs(inputRef, ref), $[2] = inputRef, $[3] = ref, $[4] = t4) : t4 = $[4];
|
|
1112
|
+
let t5 = hasError || void 0, t6;
|
|
1113
|
+
$[5] !== rest || $[6] !== t4 || $[7] !== t5 ? (t6 = /* @__PURE__ */ jsx("input", {
|
|
1086
1114
|
type: "checkbox",
|
|
1087
1115
|
className: checkboxInputClassName,
|
|
1088
|
-
ref:
|
|
1089
|
-
"aria-invalid":
|
|
1116
|
+
ref: t4,
|
|
1117
|
+
"aria-invalid": t5,
|
|
1090
1118
|
...rest
|
|
1091
|
-
}), $[
|
|
1092
|
-
let
|
|
1093
|
-
return $[
|
|
1119
|
+
}), $[5] = rest, $[6] = t4, $[7] = t5, $[8] = t6) : t6 = $[8];
|
|
1120
|
+
let t7;
|
|
1121
|
+
return $[9] !== T0 || $[10] !== style || $[11] !== t2 || $[12] !== t3 || $[13] !== t6 ? (t7 = /* @__PURE__ */ jsxs(T0, {
|
|
1094
1122
|
as: "span",
|
|
1095
|
-
className:
|
|
1123
|
+
className: t2,
|
|
1096
1124
|
style,
|
|
1097
1125
|
"data-ui": "Checkbox",
|
|
1098
1126
|
position: "relative",
|
|
1099
1127
|
radius: 2,
|
|
1100
1128
|
width: "17px",
|
|
1101
1129
|
height: "17px",
|
|
1102
|
-
children: [
|
|
1103
|
-
}), $[
|
|
1130
|
+
children: [t3, t6]
|
|
1131
|
+
}), $[9] = T0, $[10] = style, $[11] = t2, $[12] = t3, $[13] = t6, $[14] = t7) : t7 = $[14], t7;
|
|
1104
1132
|
}
|
|
1105
1133
|
const codeProps = {
|
|
1106
1134
|
inline: { type: "boolean" },
|
|
@@ -1298,7 +1326,7 @@ const dialogProps = {
|
|
|
1298
1326
|
}
|
|
1299
1327
|
}, dialogClassName = suffixClassName("sui-Dialog"), dialogContentClassName = suffixClassName("sui-DialogContent"), dialogFooterClassName = suffixClassName("sui-DialogFooter");
|
|
1300
1328
|
function DialogRoot(t0) {
|
|
1301
|
-
let $ = c(
|
|
1329
|
+
let $ = c(20), { open: t1, size: t2, ref, ...props } = t0, open = t1 !== void 0 && t1, { children, className, style, header, onClose, ...rest } = getProps({
|
|
1302
1330
|
size: t2 === void 0 ? 0 : t2,
|
|
1303
1331
|
...props
|
|
1304
1332
|
}, 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 +1336,42 @@ function DialogRoot(t0) {
|
|
|
1308
1336
|
dialogElement.close();
|
|
1309
1337
|
};
|
|
1310
1338
|
}, t4 = [open], $[0] = open, $[1] = t3, $[2] = t4), useEffect(t3, t4);
|
|
1311
|
-
let
|
|
1312
|
-
$[3]
|
|
1339
|
+
let t5;
|
|
1340
|
+
$[3] === ref ? t5 = $[4] : (t5 = composeRefs(dialogRef, ref), $[3] = ref, $[4] = t5);
|
|
1341
|
+
let t7 = header ? headerId : void 0, t8 = clsx(dialogClasses, className), t9;
|
|
1342
|
+
$[5] !== header || $[6] !== headerId ? (t9 = header ? /* @__PURE__ */ jsx(Heading, {
|
|
1313
1343
|
as: "h2",
|
|
1314
1344
|
trim: !0,
|
|
1315
1345
|
size: 1,
|
|
1316
1346
|
id: headerId,
|
|
1317
1347
|
children: header
|
|
1318
|
-
}) : /* @__PURE__ */ jsx("div", {}), $[
|
|
1319
|
-
let
|
|
1320
|
-
$[
|
|
1348
|
+
}) : /* @__PURE__ */ jsx("div", {}), $[5] = header, $[6] = headerId, $[7] = t9) : t9 = $[7];
|
|
1349
|
+
let t10;
|
|
1350
|
+
$[8] === Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsx(IconButton, {
|
|
1321
1351
|
"aria-label": "Close",
|
|
1322
1352
|
level: "tertiary",
|
|
1323
1353
|
icon: CloseIcon,
|
|
1324
1354
|
onClick: () => dialogRef.current?.close()
|
|
1325
|
-
}), $[
|
|
1326
|
-
let
|
|
1327
|
-
$[
|
|
1355
|
+
}), $[8] = t10) : t10 = $[8];
|
|
1356
|
+
let t11;
|
|
1357
|
+
$[9] === t9 ? t11 = $[10] : (t11 = /* @__PURE__ */ jsxs(Flex, {
|
|
1328
1358
|
flexShrink: 0,
|
|
1329
1359
|
justifyContent: "space-between",
|
|
1330
1360
|
alignItems: "center",
|
|
1331
|
-
children: [
|
|
1332
|
-
}), $[
|
|
1333
|
-
let
|
|
1334
|
-
return $[
|
|
1361
|
+
children: [t9, t10]
|
|
1362
|
+
}), $[9] = t9, $[10] = t11);
|
|
1363
|
+
let t12;
|
|
1364
|
+
return $[11] !== children || $[12] !== onClose || $[13] !== rest || $[14] !== style || $[15] !== t11 || $[16] !== t5 || $[17] !== t7 || $[18] !== t8 ? (t12 = /* @__PURE__ */ jsxs("dialog", {
|
|
1335
1365
|
...rest,
|
|
1336
|
-
ref:
|
|
1366
|
+
ref: t5,
|
|
1337
1367
|
closedby: "any",
|
|
1338
|
-
"aria-labelledby":
|
|
1368
|
+
"aria-labelledby": t7,
|
|
1339
1369
|
onClose,
|
|
1340
|
-
className:
|
|
1370
|
+
className: t8,
|
|
1341
1371
|
style,
|
|
1342
1372
|
"data-ui": "Dialog",
|
|
1343
|
-
children: [
|
|
1344
|
-
}), $[
|
|
1373
|
+
children: [t11, children]
|
|
1374
|
+
}), $[11] = children, $[12] = onClose, $[13] = rest, $[14] = style, $[15] = t11, $[16] = t5, $[17] = t7, $[18] = t8, $[19] = t12) : t12 = $[19], t12;
|
|
1345
1375
|
}
|
|
1346
1376
|
function DialogContent(props) {
|
|
1347
1377
|
let $ = c(12), T0, children, style, t0, t1;
|
|
@@ -2115,10 +2145,10 @@ const formElementDensityProps = { density: {
|
|
|
2115
2145
|
} }, selectProps = {
|
|
2116
2146
|
hasError: { type: "boolean" },
|
|
2117
2147
|
...formElementDensityProps
|
|
2118
|
-
}, selectClassName = suffixClassName("sui-Select");
|
|
2148
|
+
}, selectClassName = suffixClassName("sui-Select"), selectIconClassName = suffixClassName("sui-Select-Icon");
|
|
2119
2149
|
/** @public */
|
|
2120
2150
|
function Select(t0) {
|
|
2121
|
-
let $ = c(
|
|
2151
|
+
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
2152
|
density,
|
|
2123
2153
|
...props
|
|
2124
2154
|
}, selectProps), anchorName = `--anchor-${useId()}`, selectClasses = clsx(selectClassName, "sui-radius2", "sui-width-full", className), t3;
|
|
@@ -2136,27 +2166,29 @@ function Select(t0) {
|
|
|
2136
2166
|
children
|
|
2137
2167
|
}), $[3] = children, $[4] = rest, $[5] = selectClasses, $[6] = t3, $[7] = t4, $[8] = t5) : t5 = $[8];
|
|
2138
2168
|
let t6;
|
|
2139
|
-
$[9] ===
|
|
2169
|
+
$[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
2170
|
let t7;
|
|
2141
|
-
$[
|
|
2171
|
+
$[10] === anchorName ? t7 = $[11] : (t7 = { positionAnchor: anchorName }, $[10] = anchorName, $[11] = t7);
|
|
2172
|
+
let t8;
|
|
2173
|
+
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t8 = /* @__PURE__ */ jsx(Icon, {
|
|
2142
2174
|
icon: SelectIcon,
|
|
2143
2175
|
size: 1
|
|
2144
|
-
}), $[
|
|
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);
|
|
2176
|
+
}), $[12] = t8) : t8 = $[12];
|
|
2152
2177
|
let t9;
|
|
2153
|
-
|
|
2178
|
+
$[13] === t7 ? t9 = $[14] : (t9 = /* @__PURE__ */ jsx("div", {
|
|
2179
|
+
className: t6,
|
|
2180
|
+
"data-ui": "Select-Icon",
|
|
2181
|
+
style: t7,
|
|
2182
|
+
children: t8
|
|
2183
|
+
}), $[13] = t7, $[14] = t9);
|
|
2184
|
+
let t10;
|
|
2185
|
+
return $[15] !== t5 || $[16] !== t9 ? (t10 = /* @__PURE__ */ jsxs(Fragment, { children: [t5, t9] }), $[15] = t5, $[16] = t9, $[17] = t10) : t10 = $[17], t10;
|
|
2154
2186
|
}
|
|
2155
2187
|
const visuallyHiddenProps = {
|
|
2156
2188
|
as: { type: "string" },
|
|
2157
2189
|
visibleOnFocus: {
|
|
2158
2190
|
type: "boolean",
|
|
2159
|
-
className: "
|
|
2191
|
+
className: "visually-hidden-visible"
|
|
2160
2192
|
}
|
|
2161
2193
|
}, visuallyHiddenClassName = suffixClassName("sui-VisuallyHidden");
|
|
2162
2194
|
/** @public */
|
|
@@ -2459,7 +2491,7 @@ function TooltipRoot(t0) {
|
|
|
2459
2491
|
const Tooltip = Object.assign(TooltipRoot, { forwardsTriggerProps: !0 }), tooltipGroupProps = { as: { type: "string" } }, tooltipGroupClassName = suffixClassName("sui-TooltipGroup");
|
|
2460
2492
|
/** @public */
|
|
2461
2493
|
function TooltipGroup(props) {
|
|
2462
|
-
let $ = c(
|
|
2494
|
+
let $ = c(4), { as, children, className, style, ref, ...rest } = getProps(props, tooltipGroupProps), Component = as || "div", tooltipGroupRef = useRef(null), [isActive, setIsActive] = useState(!1), t0;
|
|
2463
2495
|
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = (e) => {
|
|
2464
2496
|
let tooltip = e.target.closest("[data-ui=\"Tooltip\"]");
|
|
2465
2497
|
tooltip && e.propertyName === "opacity" && window.getComputedStyle(tooltip).opacity !== "0" && setIsActive(!0);
|
|
@@ -2468,30 +2500,110 @@ function TooltipGroup(props) {
|
|
|
2468
2500
|
$[1] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
|
|
2469
2501
|
setIsActive(!1);
|
|
2470
2502
|
}, $[1] = t1) : t1 = $[1];
|
|
2471
|
-
let handleMouseLeave = t1,
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
...
|
|
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,
|
|
2503
|
+
let handleMouseLeave = t1, handleBlur = (e_0) => {
|
|
2504
|
+
tooltipGroupRef.current && tooltipGroupRef.current.contains(e_0.relatedTarget) || setIsActive(!1);
|
|
2505
|
+
}, t2;
|
|
2506
|
+
return $[2] === isActive ? t2 = $[3] : (t2 = isActive && { "--tooltip-delay-group": "0ms" }, $[2] = isActive, $[3] = t2), /* @__PURE__ */ jsx(Component, {
|
|
2507
|
+
className: clsx(tooltipGroupClassName, className),
|
|
2508
|
+
style: {
|
|
2509
|
+
...style,
|
|
2510
|
+
...t2
|
|
2511
|
+
},
|
|
2512
|
+
...rest,
|
|
2486
2513
|
"data-ui": "TooltipGroup",
|
|
2487
|
-
ref,
|
|
2514
|
+
ref: composeRefs(tooltipGroupRef, ref),
|
|
2488
2515
|
onTransitionEnd: handleTransitionEnd,
|
|
2489
2516
|
onMouseLeave: handleMouseLeave,
|
|
2490
2517
|
onBlur: handleBlur,
|
|
2491
|
-
...rest,
|
|
2492
2518
|
children
|
|
2493
|
-
})
|
|
2519
|
+
});
|
|
2494
2520
|
}
|
|
2495
|
-
|
|
2521
|
+
const searchInputProps = {
|
|
2522
|
+
loading: { type: "boolean" },
|
|
2523
|
+
...formElementDensityProps
|
|
2524
|
+
}, searchInputClassName = suffixClassName("sui-SearchInput"), searchInputClearClassName = suffixClassName("sui-SearchInput-Clear"), searchInputIconClassName = suffixClassName("sui-SearchInput-Icon");
|
|
2525
|
+
/** @public */
|
|
2526
|
+
function SearchInput(t0) {
|
|
2527
|
+
let $ = c(38), loading, placeholder, ref, rest, style, t1;
|
|
2528
|
+
if ($[0] !== t0) {
|
|
2529
|
+
let { density: t2, loading: t3, placeholder: t4, ref: t5, ...props } = t0;
|
|
2530
|
+
loading = t3, ref = t5;
|
|
2531
|
+
let density = t2 === void 0 ? "regular" : t2;
|
|
2532
|
+
placeholder = t4 === void 0 ? " " : t4;
|
|
2533
|
+
let { className, style: t6, ...t7 } = getProps({
|
|
2534
|
+
density,
|
|
2535
|
+
...props
|
|
2536
|
+
}, searchInputProps);
|
|
2537
|
+
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;
|
|
2538
|
+
} else loading = $[1], placeholder = $[2], ref = $[3], rest = $[4], style = $[5], t1 = $[6];
|
|
2539
|
+
let searchInputClasses = t1, anchorName = `--anchor-${useId()}`, inputRef = useRef(null), t2;
|
|
2540
|
+
$[7] === Symbol.for("react.memo_cache_sentinel") ? (t2 = function handleClear() {
|
|
2541
|
+
let input = inputRef.current;
|
|
2542
|
+
input && ((Object.getOwnPropertyDescriptor(Object.getPrototypeOf(input), "value")?.set)?.call(input, ""), input.dispatchEvent(new Event("input", { bubbles: !0 })), input.focus());
|
|
2543
|
+
}, $[7] = t2) : t2 = $[7];
|
|
2544
|
+
let handleClear = t2, t3;
|
|
2545
|
+
$[8] !== anchorName || $[9] !== style ? (t3 = {
|
|
2546
|
+
anchorName,
|
|
2547
|
+
...style
|
|
2548
|
+
}, $[8] = anchorName, $[9] = style, $[10] = t3) : t3 = $[10];
|
|
2549
|
+
let t4;
|
|
2550
|
+
$[11] === ref ? t4 = $[12] : (t4 = composeRefs(inputRef, ref), $[11] = ref, $[12] = t4);
|
|
2551
|
+
let t5;
|
|
2552
|
+
$[13] !== loading || $[14] !== placeholder || $[15] !== rest || $[16] !== searchInputClasses || $[17] !== t3 || $[18] !== t4 ? (t5 = /* @__PURE__ */ jsx("input", {
|
|
2553
|
+
className: searchInputClasses,
|
|
2554
|
+
style: t3,
|
|
2555
|
+
...rest,
|
|
2556
|
+
"aria-busy": loading,
|
|
2557
|
+
"data-ui": "SearchInput",
|
|
2558
|
+
type: "search",
|
|
2559
|
+
placeholder,
|
|
2560
|
+
ref: t4
|
|
2561
|
+
}), $[13] = loading, $[14] = placeholder, $[15] = rest, $[16] = searchInputClasses, $[17] = t3, $[18] = t4, $[19] = t5) : t5 = $[19];
|
|
2562
|
+
let t6;
|
|
2563
|
+
$[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];
|
|
2564
|
+
let t7;
|
|
2565
|
+
$[21] === anchorName ? t7 = $[22] : (t7 = { positionAnchor: anchorName }, $[21] = anchorName, $[22] = t7);
|
|
2566
|
+
let t8;
|
|
2567
|
+
$[23] === loading ? t8 = $[24] : (t8 = loading ? /* @__PURE__ */ jsx(Spinner, { size: 1 }) : /* @__PURE__ */ jsx(Icon, {
|
|
2568
|
+
icon: SearchIcon,
|
|
2569
|
+
size: 1
|
|
2570
|
+
}), $[23] = loading, $[24] = t8);
|
|
2571
|
+
let t9;
|
|
2572
|
+
$[25] !== t7 || $[26] !== t8 ? (t9 = /* @__PURE__ */ jsx("div", {
|
|
2573
|
+
className: t6,
|
|
2574
|
+
"data-ui": "Search-Icon",
|
|
2575
|
+
style: t7,
|
|
2576
|
+
children: t8
|
|
2577
|
+
}), $[25] = t7, $[26] = t8, $[27] = t9) : t9 = $[27];
|
|
2578
|
+
let t10;
|
|
2579
|
+
$[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];
|
|
2580
|
+
let t11;
|
|
2581
|
+
$[29] === anchorName ? t11 = $[30] : (t11 = { positionAnchor: anchorName }, $[29] = anchorName, $[30] = t11);
|
|
2582
|
+
let t12;
|
|
2583
|
+
$[31] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(PressArea, {
|
|
2584
|
+
type: "button",
|
|
2585
|
+
onClick: handleClear,
|
|
2586
|
+
"aria-label": "Clear search query",
|
|
2587
|
+
className: "sui-display-inline-flex sui-align-items-center sui-justify-content-center",
|
|
2588
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
2589
|
+
icon: CloseIcon$1,
|
|
2590
|
+
size: 0
|
|
2591
|
+
})
|
|
2592
|
+
}), $[31] = t12) : t12 = $[31];
|
|
2593
|
+
let t13;
|
|
2594
|
+
$[32] === t11 ? t13 = $[33] : (t13 = /* @__PURE__ */ jsx("div", {
|
|
2595
|
+
className: t10,
|
|
2596
|
+
"data-ui": "Search-Clear",
|
|
2597
|
+
style: t11,
|
|
2598
|
+
children: t12
|
|
2599
|
+
}), $[32] = t11, $[33] = t13);
|
|
2600
|
+
let t14;
|
|
2601
|
+
return $[34] !== t13 || $[35] !== t5 || $[36] !== t9 ? (t14 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2602
|
+
t5,
|
|
2603
|
+
t9,
|
|
2604
|
+
t13
|
|
2605
|
+
] }), $[34] = t13, $[35] = t5, $[36] = t9, $[37] = t14) : t14 = $[37], t14;
|
|
2606
|
+
}
|
|
2607
|
+
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
2608
|
|
|
2497
2609
|
//# sourceMappingURL=index.js.map
|