@qualcomm-ui/react 1.21.1 → 1.21.3
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/accordion/__tests__/test-accordion.d.ts +7 -1
- package/dist/accordion/__tests__/test-accordion.d.ts.map +1 -1
- package/dist/avatar/__tests__/test-avatar.d.ts +4 -2
- package/dist/avatar/__tests__/test-avatar.d.ts.map +1 -1
- package/dist/combobox/combobox-virtual-content.d.ts.map +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/combobox/index.js.map +2 -2
- package/dist/segmented-control/__tests__/test-segmented-control.d.ts +13 -3
- package/dist/segmented-control/__tests__/test-segmented-control.d.ts.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { type AccordionRootProps } from "@qualcomm-ui/react/accordion";
|
|
2
|
+
export interface TestAccordionProps extends AccordionRootProps {
|
|
3
|
+
/**
|
|
4
|
+
* Values of items that should be rendered with `disabled` at the item level.
|
|
5
|
+
*/
|
|
6
|
+
disabledValues?: string[];
|
|
7
|
+
}
|
|
2
8
|
export declare const items: {
|
|
3
9
|
content: string;
|
|
4
10
|
secondary: string;
|
|
@@ -11,5 +17,5 @@ export declare const testIds: {
|
|
|
11
17
|
readonly accordionRoot: "accordion-root";
|
|
12
18
|
readonly accordionTrigger: "accordion-trigger-";
|
|
13
19
|
};
|
|
14
|
-
export declare function TestAccordion(props:
|
|
20
|
+
export declare function TestAccordion({ disabledValues, ...props }: TestAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
15
21
|
//# sourceMappingURL=test-accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-accordion.d.ts","sourceRoot":"","sources":["../../../src/accordion/__tests__/test-accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,kBAAkB,EAAC,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"test-accordion.d.ts","sourceRoot":"","sources":["../../../src/accordion/__tests__/test-accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,kBAAkB,EAAC,MAAM,8BAA8B,CAAA;AAE/E,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;CAC1B;AAKD,eAAO,MAAM,KAAK;;;;;GAmBjB,CAAA;AAED,eAAO,MAAM,OAAO;;;;;CAKV,CAAA;AAEV,wBAAgB,aAAa,CAAC,EAAC,cAAc,EAAE,GAAG,KAAK,EAAC,EAAE,kBAAkB,2CA0B3E"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { type AvatarImageProps } from "@qualcomm-ui/react/avatar";
|
|
1
|
+
import { type AvatarImageProps, type AvatarRootProps } from "@qualcomm-ui/react/avatar";
|
|
2
2
|
export declare const testIds: {
|
|
3
3
|
readonly avatarContent: "avatar-content";
|
|
4
4
|
readonly avatarImage: "avatar-image";
|
|
5
5
|
readonly avatarRoot: "avatar-root";
|
|
6
6
|
readonly avatarStatus: "avatar-status";
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export interface TestAvatarProps extends Pick<AvatarImageProps, "src">, Pick<AvatarRootProps, "onStateChange"> {
|
|
9
|
+
}
|
|
10
|
+
export declare function TestAvatar({ onStateChange, src }: TestAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
//# sourceMappingURL=test-avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-avatar.d.ts","sourceRoot":"","sources":["../../../src/avatar/__tests__/test-avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"test-avatar.d.ts","sourceRoot":"","sources":["../../../src/avatar/__tests__/test-avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACrB,MAAM,2BAA2B,CAAA;AAElC,eAAO,MAAM,OAAO;;;;;CAKV,CAAA;AAEV,MAAM,WAAW,eACf,SACE,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,EAC7B,IAAI,CAAC,eAAe,EAAE,eAAe,CAAC;CAAG;AAE7C,wBAAgB,UAAU,CAAC,EAAC,aAAa,EAAE,GAAG,EAAC,EAAE,eAAe,2CAiB/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-virtual-content.d.ts","sourceRoot":"","sources":["../../src/combobox/combobox-virtual-content.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,YAAY,EAGlB,MAAM,OAAO,CAAA;AAEd,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAA;AAOhC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,+BAA+B,CAAA;AAGjE,OAAO,EAAkB,KAAK,oBAAoB,EAAC,MAAM,oBAAoB,CAAA;AAI7E,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,kBAAkB,CAAA;AAG5D,MAAM,WAAW,2BAA2B,CAC1C,CAAC,SAAS,cAAc,CACxB,SAAQ,oBAAoB;IAC5B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAE/B;;;OAGG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAA;IAEtC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;CACvD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,CAAC,SAAS,cAAc,GAAG,cAAc,EACzC,EACA,QAAQ,EACR,qBAAqB,EACrB,GAAG,EACH,UAAU,EACV,cAAc,EACd,GAAG,KAAK,EACT,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"combobox-virtual-content.d.ts","sourceRoot":"","sources":["../../src/combobox/combobox-virtual-content.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,YAAY,EAGlB,MAAM,OAAO,CAAA;AAEd,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAA;AAOhC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,+BAA+B,CAAA;AAGjE,OAAO,EAAkB,KAAK,oBAAoB,EAAC,MAAM,oBAAoB,CAAA;AAI7E,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,kBAAkB,CAAA;AAG5D,MAAM,WAAW,2BAA2B,CAC1C,CAAC,SAAS,cAAc,CACxB,SAAQ,oBAAoB;IAC5B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAE/B;;;OAGG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAA;IAEtC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;CACvD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,CAAC,SAAS,cAAc,GAAG,cAAc,EACzC,EACA,QAAQ,EACR,qBAAqB,EACrB,GAAG,EACH,UAAU,EACV,cAAc,EACd,GAAG,KAAK,EACT,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAAG,YAAY,CAyI/C"}
|
package/dist/combobox/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as jsx18,jsxs as jsxs4}from"react/jsx-runtime";import{useOptionalContentId}from"@qualcomm-ui/react-core/machine";import{Portal}from"@qualcomm-ui/react-core/portal";import{useControlledId}from"@qualcomm-ui/react-core/state";import{jsx}from"react/jsx-runtime";import{X}from"lucide-react";import{InlineIconButton}from"@qualcomm-ui/react/inline-icon-button";import{useQdsInputContext}from"@qualcomm-ui/react/input";import{CoreCombobox}from"@qualcomm-ui/react-core/combobox";import{mergeProps}from"@qualcomm-ui/utils/merge-props";function ComboboxClearTrigger(t0){let{render,...props}=t0,qdsContext=useQdsInputContext(),mergedProps=mergeProps(qdsContext.getClearTriggerBindings(),props);return jsx(CoreCombobox.ClearTrigger,{render:jsx(InlineIconButton,{icon:X,render,variant:"scale"}),...mergedProps})}import{c as _c}from"react/compiler-runtime";import{jsx as jsx2}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox2}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps2}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext}from"@qualcomm-ui/react-core/context";var[QdsComboboxContextProvider,useQdsComboboxContext]=createGuardedContext({hookName:"useQdsComboboxContext",providerName:"<QdsComboboxContextProvider>",strict:!0});function ComboboxContent(props){let $=_c(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps2(qdsContext.getContentBindings(),props);t0=jsx2(CoreCombobox2.Content,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{jsx as jsx3,jsxs}from"react/jsx-runtime";import{InputStartIcon,useQdsInputContext as useQdsInputContext2}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox3}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps3}from"@qualcomm-ui/utils/merge-props";function ComboboxControl(t0){let{children,...props}=t0,qdsContext=useQdsComboboxContext(),qdsInputContext=useQdsInputContext2(),mergedProps=mergeProps3(qdsContext.getControlBindings(),props);return jsxs(CoreCombobox3.Control,{...mergedProps,children:[qdsInputContext.startIcon?jsx3(InputStartIcon,{icon:qdsInputContext.startIcon}):null,children]})}import{c as _c2}from"react/compiler-runtime";import{jsx as jsx4}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox4}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps4}from"@qualcomm-ui/utils/merge-props";function ComboboxEmpty(props){let $=_c2(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps4(qdsContext.getItemBindings(),props);t0=jsx4(CoreCombobox4.Empty,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{jsx as jsx5}from"react/jsx-runtime";import{InputErrorIndicator}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox5}from"@qualcomm-ui/react-core/combobox";function ComboboxErrorIndicator({icon,render,...props}){return jsx5(CoreCombobox5.ErrorIndicator,{render:jsx5(InputErrorIndicator,{icon,render}),...props})}import{jsx as jsx6}from"react/jsx-runtime";import{InputErrorText}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox6}from"@qualcomm-ui/react-core/combobox";function ComboboxErrorText({icon,render,...props}){return jsx6(CoreCombobox6.ErrorText,{render:jsx6(InputErrorText,{icon,render}),...props})}import{jsx as jsx7}from"react/jsx-runtime";import{InputHint}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox7}from"@qualcomm-ui/react-core/combobox";function ComboboxHint({children,render,...props}){return jsx7(CoreCombobox7.Hint,{render:jsx7(InputHint,{render}),...props,children})}import{c as _c3}from"react/compiler-runtime";import{jsx as jsx8}from"react/jsx-runtime";import{useQdsInputContext as useQdsInputContext3}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox8}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps5}from"@qualcomm-ui/utils/merge-props";function ComboboxInput(props){let $=_c3(3),qdsContext=useQdsInputContext3(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps5(qdsContext.getInputBindings(),props);t0=jsx8(CoreCombobox8.Input,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c6}from"react/compiler-runtime";import{Fragment,jsx as jsx12,jsxs as jsxs2}from"react/jsx-runtime";import{Fragment as Fragment2}from"react";import{useComboboxContext}from"@qualcomm-ui/react-core/combobox";import{HighlightText}from"@qualcomm-ui/react-core/highlight";import{renderProp}from"@qualcomm-ui/react-core/system";import{c as _c4}from"react/compiler-runtime";import{jsx as jsx9}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox9}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps6}from"@qualcomm-ui/utils/merge-props";function ComboboxItem(props){let $=_c4(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps6(qdsContext.getItemBindings(),props);t0=jsx9(CoreCombobox9.Item,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{jsx as jsx10}from"react/jsx-runtime";import{Check}from"lucide-react";import{Icon}from"@qualcomm-ui/react/icon";import{CoreCombobox as CoreCombobox10}from"@qualcomm-ui/react-core/combobox";function ComboboxItemIndicator({children,...props}){return jsx10(CoreCombobox10.ItemIndicator,{...props,children:children??jsx10(Icon,{icon:Check})})}import{c as _c5}from"react/compiler-runtime";import{jsx as jsx11}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox11}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps7}from"@qualcomm-ui/utils/merge-props";function ComboboxItemText(props){let $=_c5(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps7(qdsContext.getItemTextBindings(),props);t0=jsx11(CoreCombobox11.ItemText,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}function ComboboxItems(t0){let $=_c6(7),{highlightMatchingText,renderItem}=t0,context=useComboboxContext();if(renderItem){let t12;return $[0]!==context.collection||$[1]!==renderItem?(t12=jsx12(Fragment,{children:context.collection.items.map(item=>{let value=context.collection.getItemValue(item);return jsx12(Fragment2,{children:renderProp(renderItem,{item})},value)})}),$[0]=context.collection,$[1]=renderItem,$[2]=t12):t12=$[2],t12}let t1;return $[3]!==context.collection||$[4]!==context.inputValue||$[5]!==highlightMatchingText?(t1=jsx12(Fragment,{children:context.collection.items.map(item_0=>{let label=context.collection.stringifyItem(item_0),value_0=context.collection.getItemValue(item_0);return jsx12(Fragment2,{children:jsxs2(ComboboxItem,{item:item_0,children:[jsx12(ComboboxItemText,{children:highlightMatchingText?jsx12(HighlightText,{ignoreCase:!0,query:context.inputValue??"",text:label??""}):label}),jsx12(ComboboxItemIndicator,{})]})},value_0)})}),$[3]=context.collection,$[4]=context.inputValue,$[5]=highlightMatchingText,$[6]=t1):t1=$[6],t1}import{jsx as jsx13}from"react/jsx-runtime";import{InputLabel}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox12,useComboboxContext as useComboboxContext2}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps8}from"@qualcomm-ui/utils/merge-props";function ComboboxLabel(t0){let{render,...props}=t0,comboboxContext=useComboboxContext2(),qdsContext=useQdsComboboxContext(),mergedProps=mergeProps8(qdsContext.getLabelBindings(),props);return jsx13(CoreCombobox12.Label,{render:jsx13(InputLabel,{render,required:comboboxContext.required}),...mergedProps})}import{c as _c7}from"react/compiler-runtime";import{jsx as jsx14}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox13}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps9}from"@qualcomm-ui/utils/merge-props";function ComboboxPositioner(props){let $=_c7(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps9(qdsContext.getPositionerBindings(),props);t0=jsx14(CoreCombobox13.Positioner,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c8}from"react/compiler-runtime";import{jsx as jsx15}from"react/jsx-runtime";import"react";import{createQdsInputApi}from"@qualcomm-ui/qds-core/input";import{createQdsSelectApi}from"@qualcomm-ui/qds-core/select";import{QdsInputContextProvider}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox14}from"@qualcomm-ui/react-core/combobox";import{normalizeProps}from"@qualcomm-ui/react-core/machine";import{mergeProps as mergeProps10}from"@qualcomm-ui/utils/merge-props";function ComboboxRoot(t0){let $=_c8(7),t1;if($[0]!==t0){let{icon,size,...props}=t0,t2;$[2]!==size?(t2=createQdsSelectApi({size},normalizeProps),$[2]=size,$[3]=t2):t2=$[3];let qdsContext=t2,t3;$[4]!==icon||$[5]!==size?(t3=createQdsInputApi({size,startIcon:icon},normalizeProps),$[4]=icon,$[5]=size,$[6]=t3):t3=$[6];let qdsInputApi=t3,mergedProps=mergeProps10(qdsContext.getRootBindings(),props);t1=jsx15(QdsComboboxContextProvider,{value:qdsContext,children:jsx15(QdsInputContextProvider,{value:qdsInputApi,children:jsx15(CoreCombobox14.Root,{...mergedProps})})}),$[0]=t0,$[1]=t1}else t1=$[1];return t1}import{jsx as jsx16}from"react/jsx-runtime";import{ChevronDown}from"lucide-react";import{InlineIconButton as InlineIconButton2}from"@qualcomm-ui/react/inline-icon-button";import{CoreCombobox as CoreCombobox15}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps11}from"@qualcomm-ui/utils/merge-props";function ComboboxTrigger(t0){let{icon:t1,render,...props}=t0,icon=t1===void 0?ChevronDown:t1,qdsContext=useQdsComboboxContext(),mergedProps=mergeProps11(qdsContext.getIndicatorBindings(),props);return jsx16(CoreCombobox15.Trigger,{render:jsx16(InlineIconButton2,{icon,render,size:qdsContext.size==="sm"?"sm":"md",variant:"scale"}),...mergedProps})}import{jsx as jsx17,jsxs as jsxs3}from"react/jsx-runtime";import{Fragment as Fragment3,useEffect,useRef}from"react";import{useVirtualizer}from"@tanstack/react-virtual";import{useComboboxContext as useComboboxContext3}from"@qualcomm-ui/react-core/combobox";import{useNoMemo}from"@qualcomm-ui/react-core/compat";import{HighlightText as HighlightText2}from"@qualcomm-ui/react-core/highlight";import{useMergedRef}from"@qualcomm-ui/react-core/refs";import{mergeProps as mergeProps12}from"@qualcomm-ui/utils/merge-props";function ComboboxVirtualContent({children,highlightMatchingText,ref,renderItem,virtualOptions,...props}){let{collection,inputValue,open,setScrollToIndexFn}=useComboboxContext3(),qdsContext=useQdsComboboxContext(),localRef=useRef(null),mergedRef=useMergedRef(ref,localRef);useEffect(()=>{requestAnimationFrame(()=>{let positioner=localRef.current.closest('[data-combobox-part="positioner"]');positioner&&positioner.style.setProperty("--scrollbar-width",`${positioner.offsetWidth-positioner.clientWidth}px`)})},[inputValue,open]);let virtualizer=useVirtualizer({count:collection.items.length,enabled:open,estimateSize:()=>qdsContext.size==="sm"?32:40,getScrollElement:()=>localRef.current.closest('[data-combobox-part="positioner"]')||localRef.current,overscan:5,paddingEnd:2,scrollPaddingEnd:2,...virtualOptions}),mergedProps=mergeProps12(qdsContext.getContentBindings(),{style:{height:`${useNoMemo(()=>virtualizer.getTotalSize())}px`}},props),timerRef=useRef(void 0);useEffect(()=>{setScrollToIndexFn(details=>{let scrollOptions={align:"auto",behavior:"auto"};details&&(details.immediate?virtualizer.scrollToIndex(details.index,scrollOptions):(clearTimeout(timerRef.current),timerRef.current=setTimeout(()=>{virtualizer.scrollToIndex(details.index,scrollOptions)})))})},[setScrollToIndexFn,virtualizer]);let virtualItems=useNoMemo(()=>virtualizer.getVirtualItems());return renderItem?jsxs3(ComboboxContent,{...mergedProps,ref:mergedRef,"data-virtual":!0,children:[children,virtualItems.map(virtualItem=>{let item=collection.items.at(virtualItem.index),value=collection.getItemValue(item);return jsx17(Fragment3,{children:renderItem({"data-virtual":"",item,style:{"--virtual-item-start":`${virtualItem.start}px`}})},value)})]}):jsxs3(ComboboxContent,{...mergedProps,ref:mergedRef,"data-virtual":!0,children:[children,virtualItems.map(virtualItem_0=>{let item_0=collection.items.at(virtualItem_0.index),label=collection.stringifyItem(item_0),value_0=collection.getItemValue(item_0);return jsxs3(ComboboxItem,{"data-virtual":!0,item:item_0,style:{"--virtual-item-start":`${virtualItem_0.start}px`},children:[jsx17(ComboboxItemText,{children:highlightMatchingText?jsx17(HighlightText2,{ignoreCase:!0,query:inputValue,text:label??""}):label}),jsx17(ComboboxItemIndicator,{})]},value_0)})]})}function Combobox(t0){let{"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,clearTriggerProps,contentProps,controlProps,emptyMessage,emptyProps,errorIndicatorProps,errorText,errorTextProps,highlightMatchingText,hint,hintProps,inputProps:inputPropsProp,label,labelProps,portalProps,positionerProps,renderItem,triggerProps,virtual,...props}=t0,emptyContent=emptyMessage||emptyProps?.children||"No results found",labelContent=label||labelProps?.children,hintContent=hint||hintProps?.children,errorTextContent=errorText||errorTextProps?.children,inputProps={...inputPropsProp};ariaLabel!==void 0&&(inputProps["aria-label"]=ariaLabel),ariaLabelledBy!==void 0&&(inputProps["aria-labelledby"]=ariaLabelledBy);let ids={clearTrigger:useOptionalContentId(!clearTriggerProps?.hidden,clearTriggerProps),content:useControlledId(contentProps?.id),control:useControlledId(controlProps?.id),errorText:useOptionalContentId(errorTextContent,errorTextProps),hint:useOptionalContentId(hintContent,hintProps),input:useControlledId(inputProps?.id),label:useOptionalContentId(labelContent,labelProps),positioner:useControlledId(positionerProps?.id),root:useControlledId(props.id),...props.ids};return jsxs4(ComboboxRoot,{...props,ids,children:[labelContent?jsx18(ComboboxLabel,{...labelProps,id:ids.label,children:labelContent}):null,jsxs4(ComboboxControl,{...controlProps,id:ids.control,children:[jsx18(ComboboxInput,{...inputProps,id:ids.input}),jsx18(ComboboxClearTrigger,{...clearTriggerProps,id:ids.clearTrigger}),jsx18(ComboboxErrorIndicator,{...errorIndicatorProps}),jsx18(ComboboxTrigger,{...triggerProps,id:ids.trigger})]}),jsx18(Portal,{...portalProps,children:jsx18(ComboboxPositioner,{...positionerProps,id:ids.positioner,children:virtual?jsx18(ComboboxVirtualContent,{...contentProps,highlightMatchingText,id:ids.content,renderItem,children:jsx18(ComboboxEmpty,{...emptyProps,children:emptyContent})}):jsxs4(ComboboxContent,{...contentProps,id:ids.content,children:[jsx18(ComboboxEmpty,{...emptyProps,children:emptyContent}),jsx18(ComboboxItems,{highlightMatchingText,renderItem})]})})}),errorTextContent?jsx18(ComboboxErrorText,{...errorTextProps,id:ids.errorText,children:errorTextContent}):null,hintContent?jsx18(ComboboxHint,{...hintProps,id:ids.hint,children:hintContent}):null]})}import{c as _c9}from"react/compiler-runtime";import{useComboboxContext as useComboboxContext4}from"@qualcomm-ui/react-core/combobox";import{renderProp as renderProp2}from"@qualcomm-ui/react-core/system";function ComboboxContext(t0){let $=_c9(3),{children}=t0,context=useComboboxContext4(),t1;return $[0]!==children||$[1]!==context?(t1=renderProp2(children,context),$[0]=children,$[1]=context,$[2]=t1):t1=$[2],t1}var Combobox2=Combobox;Combobox2.ClearTrigger=ComboboxClearTrigger;Combobox2.Content=ComboboxContent;Combobox2.Context=ComboboxContext;Combobox2.Control=ComboboxControl;Combobox2.Empty=ComboboxEmpty;Combobox2.ErrorIndicator=ComboboxErrorIndicator;Combobox2.ErrorText=ComboboxErrorText;Combobox2.Hint=ComboboxHint;Combobox2.Input=ComboboxInput;Combobox2.ItemIndicator=ComboboxItemIndicator;Combobox2.ItemText=ComboboxItemText;Combobox2.Item=ComboboxItem;Combobox2.Items=ComboboxItems;Combobox2.Label=ComboboxLabel;Combobox2.Positioner=ComboboxPositioner;Combobox2.Root=ComboboxRoot;Combobox2.Trigger=ComboboxTrigger;Combobox2.VirtualContent=ComboboxVirtualContent;export{Combobox2 as Combobox,QdsComboboxContextProvider,useQdsComboboxContext};
|
|
2
|
+
import{jsx as jsx18,jsxs as jsxs4}from"react/jsx-runtime";import{useOptionalContentId}from"@qualcomm-ui/react-core/machine";import{Portal}from"@qualcomm-ui/react-core/portal";import{useControlledId}from"@qualcomm-ui/react-core/state";import{jsx}from"react/jsx-runtime";import{X}from"lucide-react";import{InlineIconButton}from"@qualcomm-ui/react/inline-icon-button";import{useQdsInputContext}from"@qualcomm-ui/react/input";import{CoreCombobox}from"@qualcomm-ui/react-core/combobox";import{mergeProps}from"@qualcomm-ui/utils/merge-props";function ComboboxClearTrigger(t0){let{render,...props}=t0,qdsContext=useQdsInputContext(),mergedProps=mergeProps(qdsContext.getClearTriggerBindings(),props);return jsx(CoreCombobox.ClearTrigger,{render:jsx(InlineIconButton,{icon:X,render,variant:"scale"}),...mergedProps})}import{c as _c}from"react/compiler-runtime";import{jsx as jsx2}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox2}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps2}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext}from"@qualcomm-ui/react-core/context";var[QdsComboboxContextProvider,useQdsComboboxContext]=createGuardedContext({hookName:"useQdsComboboxContext",providerName:"<QdsComboboxContextProvider>",strict:!0});function ComboboxContent(props){let $=_c(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps2(qdsContext.getContentBindings(),props);t0=jsx2(CoreCombobox2.Content,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{jsx as jsx3,jsxs}from"react/jsx-runtime";import{InputStartIcon,useQdsInputContext as useQdsInputContext2}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox3}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps3}from"@qualcomm-ui/utils/merge-props";function ComboboxControl(t0){let{children,...props}=t0,qdsContext=useQdsComboboxContext(),qdsInputContext=useQdsInputContext2(),mergedProps=mergeProps3(qdsContext.getControlBindings(),props);return jsxs(CoreCombobox3.Control,{...mergedProps,children:[qdsInputContext.startIcon?jsx3(InputStartIcon,{icon:qdsInputContext.startIcon}):null,children]})}import{c as _c2}from"react/compiler-runtime";import{jsx as jsx4}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox4}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps4}from"@qualcomm-ui/utils/merge-props";function ComboboxEmpty(props){let $=_c2(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps4(qdsContext.getItemBindings(),props);t0=jsx4(CoreCombobox4.Empty,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{jsx as jsx5}from"react/jsx-runtime";import{InputErrorIndicator}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox5}from"@qualcomm-ui/react-core/combobox";function ComboboxErrorIndicator({icon,render,...props}){return jsx5(CoreCombobox5.ErrorIndicator,{render:jsx5(InputErrorIndicator,{icon,render}),...props})}import{jsx as jsx6}from"react/jsx-runtime";import{InputErrorText}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox6}from"@qualcomm-ui/react-core/combobox";function ComboboxErrorText({icon,render,...props}){return jsx6(CoreCombobox6.ErrorText,{render:jsx6(InputErrorText,{icon,render}),...props})}import{jsx as jsx7}from"react/jsx-runtime";import{InputHint}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox7}from"@qualcomm-ui/react-core/combobox";function ComboboxHint({children,render,...props}){return jsx7(CoreCombobox7.Hint,{render:jsx7(InputHint,{render}),...props,children})}import{c as _c3}from"react/compiler-runtime";import{jsx as jsx8}from"react/jsx-runtime";import{useQdsInputContext as useQdsInputContext3}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox8}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps5}from"@qualcomm-ui/utils/merge-props";function ComboboxInput(props){let $=_c3(3),qdsContext=useQdsInputContext3(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps5(qdsContext.getInputBindings(),props);t0=jsx8(CoreCombobox8.Input,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c6}from"react/compiler-runtime";import{Fragment,jsx as jsx12,jsxs as jsxs2}from"react/jsx-runtime";import{Fragment as Fragment2}from"react";import{useComboboxContext}from"@qualcomm-ui/react-core/combobox";import{HighlightText}from"@qualcomm-ui/react-core/highlight";import{renderProp}from"@qualcomm-ui/react-core/system";import{c as _c4}from"react/compiler-runtime";import{jsx as jsx9}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox9}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps6}from"@qualcomm-ui/utils/merge-props";function ComboboxItem(props){let $=_c4(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps6(qdsContext.getItemBindings(),props);t0=jsx9(CoreCombobox9.Item,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{jsx as jsx10}from"react/jsx-runtime";import{Check}from"lucide-react";import{Icon}from"@qualcomm-ui/react/icon";import{CoreCombobox as CoreCombobox10}from"@qualcomm-ui/react-core/combobox";function ComboboxItemIndicator({children,...props}){return jsx10(CoreCombobox10.ItemIndicator,{...props,children:children??jsx10(Icon,{icon:Check})})}import{c as _c5}from"react/compiler-runtime";import{jsx as jsx11}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox11}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps7}from"@qualcomm-ui/utils/merge-props";function ComboboxItemText(props){let $=_c5(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps7(qdsContext.getItemTextBindings(),props);t0=jsx11(CoreCombobox11.ItemText,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}function ComboboxItems(t0){let $=_c6(7),{highlightMatchingText,renderItem}=t0,context=useComboboxContext();if(renderItem){let t12;return $[0]!==context.collection||$[1]!==renderItem?(t12=jsx12(Fragment,{children:context.collection.items.map(item=>{let value=context.collection.getItemValue(item);return jsx12(Fragment2,{children:renderProp(renderItem,{item})},value)})}),$[0]=context.collection,$[1]=renderItem,$[2]=t12):t12=$[2],t12}let t1;return $[3]!==context.collection||$[4]!==context.inputValue||$[5]!==highlightMatchingText?(t1=jsx12(Fragment,{children:context.collection.items.map(item_0=>{let label=context.collection.stringifyItem(item_0),value_0=context.collection.getItemValue(item_0);return jsx12(Fragment2,{children:jsxs2(ComboboxItem,{item:item_0,children:[jsx12(ComboboxItemText,{children:highlightMatchingText?jsx12(HighlightText,{ignoreCase:!0,query:context.inputValue??"",text:label??""}):label}),jsx12(ComboboxItemIndicator,{})]})},value_0)})}),$[3]=context.collection,$[4]=context.inputValue,$[5]=highlightMatchingText,$[6]=t1):t1=$[6],t1}import{jsx as jsx13}from"react/jsx-runtime";import{InputLabel}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox12,useComboboxContext as useComboboxContext2}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps8}from"@qualcomm-ui/utils/merge-props";function ComboboxLabel(t0){let{render,...props}=t0,comboboxContext=useComboboxContext2(),qdsContext=useQdsComboboxContext(),mergedProps=mergeProps8(qdsContext.getLabelBindings(),props);return jsx13(CoreCombobox12.Label,{render:jsx13(InputLabel,{render,required:comboboxContext.required}),...mergedProps})}import{c as _c7}from"react/compiler-runtime";import{jsx as jsx14}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox13}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps9}from"@qualcomm-ui/utils/merge-props";function ComboboxPositioner(props){let $=_c7(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps9(qdsContext.getPositionerBindings(),props);t0=jsx14(CoreCombobox13.Positioner,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c8}from"react/compiler-runtime";import{jsx as jsx15}from"react/jsx-runtime";import"react";import{createQdsInputApi}from"@qualcomm-ui/qds-core/input";import{createQdsSelectApi}from"@qualcomm-ui/qds-core/select";import{QdsInputContextProvider}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox14}from"@qualcomm-ui/react-core/combobox";import{normalizeProps}from"@qualcomm-ui/react-core/machine";import{mergeProps as mergeProps10}from"@qualcomm-ui/utils/merge-props";function ComboboxRoot(t0){let $=_c8(7),t1;if($[0]!==t0){let{icon,size,...props}=t0,t2;$[2]!==size?(t2=createQdsSelectApi({size},normalizeProps),$[2]=size,$[3]=t2):t2=$[3];let qdsContext=t2,t3;$[4]!==icon||$[5]!==size?(t3=createQdsInputApi({size,startIcon:icon},normalizeProps),$[4]=icon,$[5]=size,$[6]=t3):t3=$[6];let qdsInputApi=t3,mergedProps=mergeProps10(qdsContext.getRootBindings(),props);t1=jsx15(QdsComboboxContextProvider,{value:qdsContext,children:jsx15(QdsInputContextProvider,{value:qdsInputApi,children:jsx15(CoreCombobox14.Root,{...mergedProps})})}),$[0]=t0,$[1]=t1}else t1=$[1];return t1}import{jsx as jsx16}from"react/jsx-runtime";import{ChevronDown}from"lucide-react";import{InlineIconButton as InlineIconButton2}from"@qualcomm-ui/react/inline-icon-button";import{CoreCombobox as CoreCombobox15}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps11}from"@qualcomm-ui/utils/merge-props";function ComboboxTrigger(t0){let{icon:t1,render,...props}=t0,icon=t1===void 0?ChevronDown:t1,qdsContext=useQdsComboboxContext(),mergedProps=mergeProps11(qdsContext.getIndicatorBindings(),props);return jsx16(CoreCombobox15.Trigger,{render:jsx16(InlineIconButton2,{icon,render,size:qdsContext.size==="sm"?"sm":"md",variant:"scale"}),...mergedProps})}import{jsx as jsx17,jsxs as jsxs3}from"react/jsx-runtime";import{Fragment as Fragment3,useEffect,useRef}from"react";import{useVirtualizer}from"@tanstack/react-virtual";import{useComboboxContext as useComboboxContext3}from"@qualcomm-ui/react-core/combobox";import{useNoMemo}from"@qualcomm-ui/react-core/compat";import{HighlightText as HighlightText2}from"@qualcomm-ui/react-core/highlight";import{useMergedRef}from"@qualcomm-ui/react-core/refs";import{mergeProps as mergeProps12}from"@qualcomm-ui/utils/merge-props";function ComboboxVirtualContent({children,highlightMatchingText,ref,renderItem,virtualOptions,...props}){let{collection,inputValue,open,setScrollToIndexFn}=useComboboxContext3(),qdsContext=useQdsComboboxContext(),localRef=useRef(null),mergedRef=useMergedRef(ref,localRef);useEffect(()=>{let frame=requestAnimationFrame(()=>{let content=localRef.current;if(!content)return;let positioner=content.closest('[data-combobox-part="positioner"]');positioner&&positioner.style.setProperty("--scrollbar-width",`${positioner.offsetWidth-positioner.clientWidth}px`)});return()=>cancelAnimationFrame(frame)},[inputValue,open]);let virtualizer=useVirtualizer({count:collection.items.length,enabled:open,estimateSize:()=>qdsContext.size==="sm"?32:40,getScrollElement:()=>localRef.current.closest('[data-combobox-part="positioner"]')||localRef.current,overscan:5,paddingEnd:2,scrollPaddingEnd:2,...virtualOptions}),mergedProps=mergeProps12(qdsContext.getContentBindings(),{style:{height:`${useNoMemo(()=>virtualizer.getTotalSize())}px`}},props),timerRef=useRef(void 0);useEffect(()=>{setScrollToIndexFn(details=>{let scrollOptions={align:"auto",behavior:"auto"};details&&(details.immediate?virtualizer.scrollToIndex(details.index,scrollOptions):(clearTimeout(timerRef.current),timerRef.current=setTimeout(()=>{virtualizer.scrollToIndex(details.index,scrollOptions)})))})},[setScrollToIndexFn,virtualizer]);let virtualItems=useNoMemo(()=>virtualizer.getVirtualItems());return renderItem?jsxs3(ComboboxContent,{...mergedProps,ref:mergedRef,"data-virtual":!0,children:[children,virtualItems.map(virtualItem=>{let item=collection.items.at(virtualItem.index),value=collection.getItemValue(item);return jsx17(Fragment3,{children:renderItem({"data-virtual":"",item,style:{"--virtual-item-start":`${virtualItem.start}px`}})},value)})]}):jsxs3(ComboboxContent,{...mergedProps,ref:mergedRef,"data-virtual":!0,children:[children,virtualItems.map(virtualItem_0=>{let item_0=collection.items.at(virtualItem_0.index),label=collection.stringifyItem(item_0),value_0=collection.getItemValue(item_0);return jsxs3(ComboboxItem,{"data-virtual":!0,item:item_0,style:{"--virtual-item-start":`${virtualItem_0.start}px`},children:[jsx17(ComboboxItemText,{children:highlightMatchingText?jsx17(HighlightText2,{ignoreCase:!0,query:inputValue,text:label??""}):label}),jsx17(ComboboxItemIndicator,{})]},value_0)})]})}function Combobox(t0){let{"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,clearTriggerProps,contentProps,controlProps,emptyMessage,emptyProps,errorIndicatorProps,errorText,errorTextProps,highlightMatchingText,hint,hintProps,inputProps:inputPropsProp,label,labelProps,portalProps,positionerProps,renderItem,triggerProps,virtual,...props}=t0,emptyContent=emptyMessage||emptyProps?.children||"No results found",labelContent=label||labelProps?.children,hintContent=hint||hintProps?.children,errorTextContent=errorText||errorTextProps?.children,inputProps={...inputPropsProp};ariaLabel!==void 0&&(inputProps["aria-label"]=ariaLabel),ariaLabelledBy!==void 0&&(inputProps["aria-labelledby"]=ariaLabelledBy);let ids={clearTrigger:useOptionalContentId(!clearTriggerProps?.hidden,clearTriggerProps),content:useControlledId(contentProps?.id),control:useControlledId(controlProps?.id),errorText:useOptionalContentId(errorTextContent,errorTextProps),hint:useOptionalContentId(hintContent,hintProps),input:useControlledId(inputProps?.id),label:useOptionalContentId(labelContent,labelProps),positioner:useControlledId(positionerProps?.id),root:useControlledId(props.id),...props.ids};return jsxs4(ComboboxRoot,{...props,ids,children:[labelContent?jsx18(ComboboxLabel,{...labelProps,id:ids.label,children:labelContent}):null,jsxs4(ComboboxControl,{...controlProps,id:ids.control,children:[jsx18(ComboboxInput,{...inputProps,id:ids.input}),jsx18(ComboboxClearTrigger,{...clearTriggerProps,id:ids.clearTrigger}),jsx18(ComboboxErrorIndicator,{...errorIndicatorProps}),jsx18(ComboboxTrigger,{...triggerProps,id:ids.trigger})]}),jsx18(Portal,{...portalProps,children:jsx18(ComboboxPositioner,{...positionerProps,id:ids.positioner,children:virtual?jsx18(ComboboxVirtualContent,{...contentProps,highlightMatchingText,id:ids.content,renderItem,children:jsx18(ComboboxEmpty,{...emptyProps,children:emptyContent})}):jsxs4(ComboboxContent,{...contentProps,id:ids.content,children:[jsx18(ComboboxEmpty,{...emptyProps,children:emptyContent}),jsx18(ComboboxItems,{highlightMatchingText,renderItem})]})})}),errorTextContent?jsx18(ComboboxErrorText,{...errorTextProps,id:ids.errorText,children:errorTextContent}):null,hintContent?jsx18(ComboboxHint,{...hintProps,id:ids.hint,children:hintContent}):null]})}import{c as _c9}from"react/compiler-runtime";import{useComboboxContext as useComboboxContext4}from"@qualcomm-ui/react-core/combobox";import{renderProp as renderProp2}from"@qualcomm-ui/react-core/system";function ComboboxContext(t0){let $=_c9(3),{children}=t0,context=useComboboxContext4(),t1;return $[0]!==children||$[1]!==context?(t1=renderProp2(children,context),$[0]=children,$[1]=context,$[2]=t1):t1=$[2],t1}var Combobox2=Combobox;Combobox2.ClearTrigger=ComboboxClearTrigger;Combobox2.Content=ComboboxContent;Combobox2.Context=ComboboxContext;Combobox2.Control=ComboboxControl;Combobox2.Empty=ComboboxEmpty;Combobox2.ErrorIndicator=ComboboxErrorIndicator;Combobox2.ErrorText=ComboboxErrorText;Combobox2.Hint=ComboboxHint;Combobox2.Input=ComboboxInput;Combobox2.ItemIndicator=ComboboxItemIndicator;Combobox2.ItemText=ComboboxItemText;Combobox2.Item=ComboboxItem;Combobox2.Items=ComboboxItems;Combobox2.Label=ComboboxLabel;Combobox2.Positioner=ComboboxPositioner;Combobox2.Root=ComboboxRoot;Combobox2.Trigger=ComboboxTrigger;Combobox2.VirtualContent=ComboboxVirtualContent;export{Combobox2 as Combobox,QdsComboboxContextProvider,useQdsComboboxContext};
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/combobox/combobox.tsx", "../../src/combobox/combobox-clear-trigger.tsx", "../../src/combobox/combobox-content.tsx", "../../src/combobox/qds-combobox-context.ts", "../../src/combobox/combobox-control.tsx", "../../src/combobox/combobox-empty.tsx", "../../src/combobox/combobox-error-indicator.tsx", "../../src/combobox/combobox-error-text.tsx", "../../src/combobox/combobox-hint.tsx", "../../src/combobox/combobox-input.tsx", "../../src/combobox/combobox-items.tsx", "../../src/combobox/combobox-item.tsx", "../../src/combobox/combobox-item-indicator.tsx", "../../src/combobox/combobox-item-text.tsx", "../../src/combobox/combobox-label.tsx", "../../src/combobox/combobox-positioner.tsx", "../../src/combobox/combobox-root.tsx", "../../src/combobox/combobox-trigger.tsx", "../../src/combobox/combobox-virtual-content.tsx", "../../src/combobox/combobox-context.tsx", "../../src/combobox/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { useOptionalContentId } from \"@qualcomm-ui/react-core/machine\";\nimport { Portal } from \"@qualcomm-ui/react-core/portal\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { ComboboxClearTrigger } from \"./combobox-clear-trigger\";\nimport { ComboboxContent } from \"./combobox-content\";\nimport { ComboboxControl } from \"./combobox-control\";\nimport { ComboboxEmpty } from \"./combobox-empty\";\nimport { ComboboxErrorIndicator } from \"./combobox-error-indicator\";\nimport { ComboboxErrorText } from \"./combobox-error-text\";\nimport { ComboboxHint } from \"./combobox-hint\";\nimport { ComboboxInput } from \"./combobox-input\";\nimport { ComboboxItems } from \"./combobox-items\";\nimport { ComboboxLabel } from \"./combobox-label\";\nimport { ComboboxPositioner } from \"./combobox-positioner\";\nimport { ComboboxRoot } from \"./combobox-root\";\nimport { ComboboxTrigger } from \"./combobox-trigger\";\nimport { ComboboxVirtualContent } from \"./combobox-virtual-content\";\nexport function Combobox(t0) {\n const {\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n clearTriggerProps,\n contentProps,\n controlProps,\n emptyMessage,\n emptyProps,\n errorIndicatorProps,\n errorText,\n errorTextProps,\n highlightMatchingText,\n hint,\n hintProps,\n inputProps: inputPropsProp,\n label,\n labelProps,\n portalProps,\n positionerProps,\n renderItem,\n triggerProps,\n virtual,\n ...props\n } = t0;\n const emptyContent = emptyMessage || emptyProps?.children || \"No results found\";\n const labelContent = label || labelProps?.children;\n const hintContent = hint || hintProps?.children;\n const errorTextContent = errorText || errorTextProps?.children;\n const inputProps = {\n ...inputPropsProp\n };\n if (ariaLabel !== void 0) {\n inputProps[\"aria-label\"] = ariaLabel;\n }\n if (ariaLabelledBy !== void 0) {\n inputProps[\"aria-labelledby\"] = ariaLabelledBy;\n }\n const ids = {\n clearTrigger: useOptionalContentId(!clearTriggerProps?.hidden, clearTriggerProps),\n content: useControlledId(contentProps?.id),\n control: useControlledId(controlProps?.id),\n errorText: useOptionalContentId(errorTextContent, errorTextProps),\n hint: useOptionalContentId(hintContent, hintProps),\n input: useControlledId(inputProps?.id),\n label: useOptionalContentId(labelContent, labelProps),\n positioner: useControlledId(positionerProps?.id),\n root: useControlledId(props.id),\n ...props.ids\n };\n return jsxs(ComboboxRoot, {\n ...props,\n ids,\n children: [labelContent ? jsx(ComboboxLabel, {\n ...labelProps,\n id: ids.label,\n children: labelContent\n }) : null, jsxs(ComboboxControl, {\n ...controlProps,\n id: ids.control,\n children: [jsx(ComboboxInput, {\n ...inputProps,\n id: ids.input\n }), jsx(ComboboxClearTrigger, {\n ...clearTriggerProps,\n id: ids.clearTrigger\n }), jsx(ComboboxErrorIndicator, {\n ...errorIndicatorProps\n }), jsx(ComboboxTrigger, {\n ...triggerProps,\n id: ids.trigger\n })]\n }), jsx(Portal, {\n ...portalProps,\n children: jsx(ComboboxPositioner, {\n ...positionerProps,\n id: ids.positioner,\n children: virtual ? jsx(ComboboxVirtualContent, {\n ...contentProps,\n highlightMatchingText,\n id: ids.content,\n renderItem,\n children: jsx(ComboboxEmpty, {\n ...emptyProps,\n children: emptyContent\n })\n }) : jsxs(ComboboxContent, {\n ...contentProps,\n id: ids.content,\n children: [jsx(ComboboxEmpty, {\n ...emptyProps,\n children: emptyContent\n }), jsx(ComboboxItems, {\n highlightMatchingText,\n renderItem\n })]\n })\n })\n }), errorTextContent ? jsx(ComboboxErrorText, {\n ...errorTextProps,\n id: ids.errorText,\n children: errorTextContent\n }) : null, hintContent ? jsx(ComboboxHint, {\n ...hintProps,\n id: ids.hint,\n children: hintContent\n }) : null]\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { X } from \"lucide-react\";\nimport { InlineIconButton } from \"@qualcomm-ui/react/inline-icon-button\";\nimport { useQdsInputContext } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function ComboboxClearTrigger(t0) {\n const {\n render,\n ...props\n } = t0;\n const qdsContext = useQdsInputContext();\n const mergedProps = mergeProps(qdsContext.getClearTriggerBindings(), props);\n return jsx(CoreCombobox.ClearTrigger, {\n render: jsx(InlineIconButton, {\n icon: X,\n render,\n variant: \"scale\"\n }),\n ...mergedProps\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxContent(props) {\n const $ = _c(3);\n const qdsContext = useQdsComboboxContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getContentBindings(), props);\n t0 = jsx(CoreCombobox.Content, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [QdsComboboxContextProvider, useQdsComboboxContext] = createGuardedContext({\n hookName: \"useQdsComboboxContext\",\n providerName: \"<QdsComboboxContextProvider>\",\n strict: true\n});", "import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { InputStartIcon, useQdsInputContext } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxControl(t0) {\n const {\n children,\n ...props\n } = t0;\n const qdsContext = useQdsComboboxContext();\n const qdsInputContext = useQdsInputContext();\n const mergedProps = mergeProps(qdsContext.getControlBindings(), props);\n return jsxs(CoreCombobox.Control, {\n ...mergedProps,\n children: [qdsInputContext.startIcon ? jsx(InputStartIcon, {\n icon: qdsInputContext.startIcon\n }) : null, children]\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxEmpty(props) {\n const $ = _c(3);\n const qdsContext = useQdsComboboxContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getItemBindings(), props);\n t0 = jsx(CoreCombobox.Empty, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { InputErrorIndicator } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nexport function ComboboxErrorIndicator({\n icon,\n render,\n ...props\n}) {\n return /* @__PURE__ */jsx(CoreCombobox.ErrorIndicator, {\n render: /* @__PURE__ */jsx(InputErrorIndicator, {\n icon,\n render\n }),\n ...props\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { InputErrorText } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nexport function ComboboxErrorText({\n icon,\n render,\n ...props\n}) {\n return /* @__PURE__ */jsx(CoreCombobox.ErrorText, {\n render: /* @__PURE__ */jsx(InputErrorText, {\n icon,\n render\n }),\n ...props\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { InputHint } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nexport function ComboboxHint({\n children,\n render,\n ...props\n}) {\n return /* @__PURE__ */jsx(CoreCombobox.Hint, {\n render: /* @__PURE__ */jsx(InputHint, {\n render\n }),\n ...props,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useQdsInputContext } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function ComboboxInput(props) {\n const $ = _c(3);\n const qdsContext = useQdsInputContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getInputBindings(), props);\n t0 = jsx(CoreCombobox.Input, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nimport { Fragment as Fragment2 } from \"react\";\nimport { useComboboxContext } from \"@qualcomm-ui/react-core/combobox\";\nimport { HighlightText } from \"@qualcomm-ui/react-core/highlight\";\nimport { renderProp } from \"@qualcomm-ui/react-core/system\";\nimport { ComboboxItem } from \"./combobox-item\";\nimport { ComboboxItemIndicator } from \"./combobox-item-indicator\";\nimport { ComboboxItemText } from \"./combobox-item-text\";\nexport function ComboboxItems(t0) {\n const $ = _c(7);\n const {\n highlightMatchingText,\n renderItem\n } = t0;\n const context = useComboboxContext();\n if (renderItem) {\n let t1;\n if ($[0] !== context.collection || $[1] !== renderItem) {\n t1 = jsx(Fragment, {\n children: context.collection.items.map(item => {\n const value = context.collection.getItemValue(item);\n return jsx(Fragment2, {\n children: renderProp(renderItem, {\n item\n })\n }, value);\n })\n });\n $[0] = context.collection;\n $[1] = renderItem;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n return t1;\n }\n let t1;\n if ($[3] !== context.collection || $[4] !== context.inputValue || $[5] !== highlightMatchingText) {\n t1 = jsx(Fragment, {\n children: context.collection.items.map(item_0 => {\n const label = context.collection.stringifyItem(item_0);\n const value_0 = context.collection.getItemValue(item_0);\n return jsx(Fragment2, {\n children: jsxs(ComboboxItem, {\n item: item_0,\n children: [jsx(ComboboxItemText, {\n children: highlightMatchingText ? jsx(HighlightText, {\n ignoreCase: true,\n query: context.inputValue ?? \"\",\n text: label ?? \"\"\n }) : label\n }), jsx(ComboboxItemIndicator, {})]\n })\n }, value_0);\n })\n });\n $[3] = context.collection;\n $[4] = context.inputValue;\n $[5] = highlightMatchingText;\n $[6] = t1;\n } else {\n t1 = $[6];\n }\n return t1;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxItem(props) {\n const $ = _c(3);\n const qdsContext = useQdsComboboxContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getItemBindings(), props);\n t0 = jsx(CoreCombobox.Item, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { Check } from \"lucide-react\";\nimport { Icon } from \"@qualcomm-ui/react/icon\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nexport function ComboboxItemIndicator({\n children,\n ...props\n}) {\n return /* @__PURE__ */jsx(CoreCombobox.ItemIndicator, {\n ...props,\n children: children ?? /* @__PURE__ */jsx(Icon, {\n icon: Check\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxItemText(props) {\n const $ = _c(3);\n const qdsContext = useQdsComboboxContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getItemTextBindings(), props);\n t0 = jsx(CoreCombobox.ItemText, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { InputLabel } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox, useComboboxContext } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxLabel(t0) {\n const {\n render,\n ...props\n } = t0;\n const comboboxContext = useComboboxContext();\n const qdsContext = useQdsComboboxContext();\n const mergedProps = mergeProps(qdsContext.getLabelBindings(), props);\n return jsx(CoreCombobox.Label, {\n render: jsx(InputLabel, {\n render,\n required: comboboxContext.required\n }),\n ...mergedProps\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxPositioner(props) {\n const $ = _c(3);\n const qdsContext = useQdsComboboxContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getPositionerBindings(), props);\n t0 = jsx(CoreCombobox.Positioner, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { createQdsInputApi } from \"@qualcomm-ui/qds-core/input\";\nimport { createQdsSelectApi } from \"@qualcomm-ui/qds-core/select\";\nimport { QdsInputContextProvider } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsComboboxContextProvider } from \"./qds-combobox-context\";\nexport function ComboboxRoot(t0) {\n const $ = _c(7);\n let t1;\n if ($[0] !== t0) {\n const {\n icon,\n size,\n ...props\n } = t0;\n let t2;\n if ($[2] !== size) {\n t2 = createQdsSelectApi({\n size\n }, normalizeProps);\n $[2] = size;\n $[3] = t2;\n } else {\n t2 = $[3];\n }\n const qdsContext = t2;\n let t3;\n if ($[4] !== icon || $[5] !== size) {\n t3 = createQdsInputApi({\n size,\n startIcon: icon\n }, normalizeProps);\n $[4] = icon;\n $[5] = size;\n $[6] = t3;\n } else {\n t3 = $[6];\n }\n const qdsInputApi = t3;\n const mergedProps = mergeProps(qdsContext.getRootBindings(), props);\n t1 = jsx(QdsComboboxContextProvider, {\n value: qdsContext,\n children: jsx(QdsInputContextProvider, {\n value: qdsInputApi,\n children: jsx(CoreCombobox.Root, {\n ...mergedProps\n })\n })\n });\n $[0] = t0;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n return t1;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { ChevronDown } from \"lucide-react\";\nimport { InlineIconButton } from \"@qualcomm-ui/react/inline-icon-button\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxTrigger(t0) {\n const {\n icon: t1,\n render,\n ...props\n } = t0;\n const icon = t1 === undefined ? ChevronDown : t1;\n const qdsContext = useQdsComboboxContext();\n const mergedProps = mergeProps(qdsContext.getIndicatorBindings(), props);\n return jsx(CoreCombobox.Trigger, {\n render: jsx(InlineIconButton, {\n icon,\n render,\n size: qdsContext.size === \"sm\" ? \"sm\" : \"md\",\n variant: \"scale\"\n }),\n ...mergedProps\n });\n}", "import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { Fragment, useEffect, useRef } from \"react\";\nimport { useVirtualizer } from \"@tanstack/react-virtual\";\nimport { useComboboxContext } from \"@qualcomm-ui/react-core/combobox\";\nimport { useNoMemo } from \"@qualcomm-ui/react-core/compat\";\nimport { HighlightText } from \"@qualcomm-ui/react-core/highlight\";\nimport { useMergedRef } from \"@qualcomm-ui/react-core/refs\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { ComboboxContent } from \"./combobox-content\";\nimport { ComboboxItem } from \"./combobox-item\";\nimport { ComboboxItemIndicator } from \"./combobox-item-indicator\";\nimport { ComboboxItemText } from \"./combobox-item-text\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxVirtualContent({\n children,\n highlightMatchingText,\n ref,\n renderItem,\n virtualOptions,\n ...props\n}) {\n const {\n collection,\n inputValue,\n open,\n setScrollToIndexFn\n } = useComboboxContext();\n const qdsContext = useQdsComboboxContext();\n const localRef = useRef(null);\n const mergedRef = useMergedRef(ref, localRef);\n useEffect(() => {\n requestAnimationFrame(() => {\n const positioner = localRef.current.closest(`[data-combobox-part=\"positioner\"]`);\n if (!positioner) {\n return;\n }\n positioner.style.setProperty(\"--scrollbar-width\", `${positioner.offsetWidth - positioner.clientWidth}px`);\n });\n }, [inputValue, open]);\n const virtualizer = useVirtualizer({\n count: collection.items.length,\n enabled: open,\n estimateSize: () => qdsContext.size === \"sm\" ? 32 : 40,\n getScrollElement: () => localRef.current.closest(`[data-combobox-part=\"positioner\"]`) || localRef.current,\n overscan: 5,\n // account for 2px border\n paddingEnd: 2,\n scrollPaddingEnd: 2,\n ...virtualOptions\n });\n const mergedProps = mergeProps(qdsContext.getContentBindings(), {\n style: {\n height: `${useNoMemo(() => virtualizer.getTotalSize())}px`\n }\n }, props);\n const timerRef = useRef(void 0);\n useEffect(() => {\n const handleScrollToIndexFn = details => {\n const scrollOptions = {\n align: \"auto\",\n behavior: \"auto\"\n };\n if (!details) {\n return;\n }\n if (details.immediate) {\n virtualizer.scrollToIndex(details.index, scrollOptions);\n } else {\n clearTimeout(timerRef.current);\n timerRef.current = setTimeout(() => {\n virtualizer.scrollToIndex(details.index, scrollOptions);\n });\n }\n };\n setScrollToIndexFn(handleScrollToIndexFn);\n }, [setScrollToIndexFn, virtualizer]);\n const virtualItems = useNoMemo(() => virtualizer.getVirtualItems());\n if (renderItem) {\n return /* @__PURE__ */jsxs(ComboboxContent, {\n ...mergedProps,\n ref: mergedRef,\n \"data-virtual\": true,\n children: [children, virtualItems.map(virtualItem => {\n const item = collection.items.at(virtualItem.index);\n const value = collection.getItemValue(item);\n return /* @__PURE__ */jsx(Fragment, {\n children: renderItem({\n \"data-virtual\": \"\",\n item,\n style: {\n \"--virtual-item-start\": `${virtualItem.start}px`\n }\n })\n }, value);\n })]\n });\n }\n return /* @__PURE__ */jsxs(ComboboxContent, {\n ...mergedProps,\n ref: mergedRef,\n \"data-virtual\": true,\n children: [children, virtualItems.map(virtualItem_0 => {\n const item_0 = collection.items.at(virtualItem_0.index);\n const label = collection.stringifyItem(item_0);\n const value_0 = collection.getItemValue(item_0);\n return /* @__PURE__ */jsxs(ComboboxItem, {\n \"data-virtual\": true,\n item: item_0,\n style: {\n \"--virtual-item-start\": `${virtualItem_0.start}px`\n },\n children: [/* @__PURE__ */jsx(ComboboxItemText, {\n children: highlightMatchingText ? /* @__PURE__ */jsx(HighlightText, {\n ignoreCase: true,\n query: inputValue,\n text: label ?? \"\"\n }) : label\n }), /* @__PURE__ */jsx(ComboboxItemIndicator, {})]\n }, value_0);\n })]\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { useComboboxContext } from \"@qualcomm-ui/react-core/combobox\";\nimport { renderProp } from \"@qualcomm-ui/react-core/system\";\nexport function ComboboxContext(t0) {\n const $ = _c(3);\n const {\n children\n } = t0;\n const context = useComboboxContext();\n let t1;\n if ($[0] !== children || $[1] !== context) {\n t1 = renderProp(children, context);\n $[0] = children;\n $[1] = context;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n return t1;\n}", "import { Combobox as SimpleCombobox } from \"./combobox\";\nimport { ComboboxClearTrigger } from \"./combobox-clear-trigger\";\nimport { ComboboxContent } from \"./combobox-content\";\nimport { ComboboxContext } from \"./combobox-context\";\nimport { ComboboxControl } from \"./combobox-control\";\nimport { ComboboxEmpty } from \"./combobox-empty\";\nimport { ComboboxErrorIndicator } from \"./combobox-error-indicator\";\nimport { ComboboxErrorText } from \"./combobox-error-text\";\nimport { ComboboxHint } from \"./combobox-hint\";\nimport { ComboboxInput } from \"./combobox-input\";\nimport { ComboboxItem } from \"./combobox-item\";\nimport { ComboboxItemIndicator } from \"./combobox-item-indicator\";\nimport { ComboboxItemText } from \"./combobox-item-text\";\nimport { ComboboxItems } from \"./combobox-items\";\nimport { ComboboxLabel } from \"./combobox-label\";\nimport { ComboboxPositioner } from \"./combobox-positioner\";\nimport { ComboboxRoot } from \"./combobox-root\";\nimport { ComboboxTrigger } from \"./combobox-trigger\";\nimport { ComboboxVirtualContent } from \"./combobox-virtual-content\";\nexport * from \"./qds-combobox-context\";\nexport const Combobox = SimpleCombobox;\nCombobox.ClearTrigger = ComboboxClearTrigger;\nCombobox.Content = ComboboxContent;\nCombobox.Context = ComboboxContext;\nCombobox.Control = ComboboxControl;\nCombobox.Empty = ComboboxEmpty;\nCombobox.ErrorIndicator = ComboboxErrorIndicator;\nCombobox.ErrorText = ComboboxErrorText;\nCombobox.Hint = ComboboxHint;\nCombobox.Input = ComboboxInput;\nCombobox.ItemIndicator = ComboboxItemIndicator;\nCombobox.ItemText = ComboboxItemText;\nCombobox.Item = ComboboxItem;\nCombobox.Items = ComboboxItems;\nCombobox.Label = ComboboxLabel;\nCombobox.Positioner = ComboboxPositioner;\nCombobox.Root = ComboboxRoot;\nCombobox.Trigger = ComboboxTrigger;\nCombobox.VirtualContent = ComboboxVirtualContent;"],
|
|
5
|
-
"mappings": ";AAAA,OAAS,OAAAA,MAAK,QAAAC,UAAY,oBAC1B,OAAS,yBAA4B,kCACrC,OAAS,WAAc,iCACvB,OAAS,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,OAAS,cAAAC,gBAAkB,iCACpB,SAAS,gBAAgB,GAAI,CAClC,IAAM,EAAIF,IAAG,CAAC,EACR,CACJ,QACF,EAAI,GACE,QAAUC,oBAAmB,EAC/B,GACJ,OAAI,EAAE,CAAC,IAAM,UAAY,EAAE,CAAC,IAAM,SAChC,GAAKC,YAAW,SAAU,OAAO,EACjC,EAAE,CAAC,EAAI,SACP,EAAE,CAAC,EAAI,QACP,EAAE,CAAC,EAAI,IAEP,GAAK,EAAE,CAAC,EAEH,EACT,CCCO,IAAMC,UAAW,SACxBA,UAAS,aAAe,qBACxBA,UAAS,QAAU,gBACnBA,UAAS,QAAU,gBACnBA,UAAS,QAAU,gBACnBA,UAAS,MAAQ,cACjBA,UAAS,eAAiB,uBAC1BA,UAAS,UAAY,kBACrBA,UAAS,KAAO,aAChBA,UAAS,MAAQ,cACjBA,UAAS,cAAgB,sBACzBA,UAAS,SAAW,iBACpBA,UAAS,KAAO,aAChBA,UAAS,MAAQ,cACjBA,UAAS,MAAQ,cACjBA,UAAS,WAAa,mBACtBA,UAAS,KAAO,aAChBA,UAAS,QAAU,gBACnBA,UAAS,eAAiB",
|
|
4
|
+
"sourcesContent": ["import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { useOptionalContentId } from \"@qualcomm-ui/react-core/machine\";\nimport { Portal } from \"@qualcomm-ui/react-core/portal\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { ComboboxClearTrigger } from \"./combobox-clear-trigger\";\nimport { ComboboxContent } from \"./combobox-content\";\nimport { ComboboxControl } from \"./combobox-control\";\nimport { ComboboxEmpty } from \"./combobox-empty\";\nimport { ComboboxErrorIndicator } from \"./combobox-error-indicator\";\nimport { ComboboxErrorText } from \"./combobox-error-text\";\nimport { ComboboxHint } from \"./combobox-hint\";\nimport { ComboboxInput } from \"./combobox-input\";\nimport { ComboboxItems } from \"./combobox-items\";\nimport { ComboboxLabel } from \"./combobox-label\";\nimport { ComboboxPositioner } from \"./combobox-positioner\";\nimport { ComboboxRoot } from \"./combobox-root\";\nimport { ComboboxTrigger } from \"./combobox-trigger\";\nimport { ComboboxVirtualContent } from \"./combobox-virtual-content\";\nexport function Combobox(t0) {\n const {\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n clearTriggerProps,\n contentProps,\n controlProps,\n emptyMessage,\n emptyProps,\n errorIndicatorProps,\n errorText,\n errorTextProps,\n highlightMatchingText,\n hint,\n hintProps,\n inputProps: inputPropsProp,\n label,\n labelProps,\n portalProps,\n positionerProps,\n renderItem,\n triggerProps,\n virtual,\n ...props\n } = t0;\n const emptyContent = emptyMessage || emptyProps?.children || \"No results found\";\n const labelContent = label || labelProps?.children;\n const hintContent = hint || hintProps?.children;\n const errorTextContent = errorText || errorTextProps?.children;\n const inputProps = {\n ...inputPropsProp\n };\n if (ariaLabel !== void 0) {\n inputProps[\"aria-label\"] = ariaLabel;\n }\n if (ariaLabelledBy !== void 0) {\n inputProps[\"aria-labelledby\"] = ariaLabelledBy;\n }\n const ids = {\n clearTrigger: useOptionalContentId(!clearTriggerProps?.hidden, clearTriggerProps),\n content: useControlledId(contentProps?.id),\n control: useControlledId(controlProps?.id),\n errorText: useOptionalContentId(errorTextContent, errorTextProps),\n hint: useOptionalContentId(hintContent, hintProps),\n input: useControlledId(inputProps?.id),\n label: useOptionalContentId(labelContent, labelProps),\n positioner: useControlledId(positionerProps?.id),\n root: useControlledId(props.id),\n ...props.ids\n };\n return jsxs(ComboboxRoot, {\n ...props,\n ids,\n children: [labelContent ? jsx(ComboboxLabel, {\n ...labelProps,\n id: ids.label,\n children: labelContent\n }) : null, jsxs(ComboboxControl, {\n ...controlProps,\n id: ids.control,\n children: [jsx(ComboboxInput, {\n ...inputProps,\n id: ids.input\n }), jsx(ComboboxClearTrigger, {\n ...clearTriggerProps,\n id: ids.clearTrigger\n }), jsx(ComboboxErrorIndicator, {\n ...errorIndicatorProps\n }), jsx(ComboboxTrigger, {\n ...triggerProps,\n id: ids.trigger\n })]\n }), jsx(Portal, {\n ...portalProps,\n children: jsx(ComboboxPositioner, {\n ...positionerProps,\n id: ids.positioner,\n children: virtual ? jsx(ComboboxVirtualContent, {\n ...contentProps,\n highlightMatchingText,\n id: ids.content,\n renderItem,\n children: jsx(ComboboxEmpty, {\n ...emptyProps,\n children: emptyContent\n })\n }) : jsxs(ComboboxContent, {\n ...contentProps,\n id: ids.content,\n children: [jsx(ComboboxEmpty, {\n ...emptyProps,\n children: emptyContent\n }), jsx(ComboboxItems, {\n highlightMatchingText,\n renderItem\n })]\n })\n })\n }), errorTextContent ? jsx(ComboboxErrorText, {\n ...errorTextProps,\n id: ids.errorText,\n children: errorTextContent\n }) : null, hintContent ? jsx(ComboboxHint, {\n ...hintProps,\n id: ids.hint,\n children: hintContent\n }) : null]\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { X } from \"lucide-react\";\nimport { InlineIconButton } from \"@qualcomm-ui/react/inline-icon-button\";\nimport { useQdsInputContext } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function ComboboxClearTrigger(t0) {\n const {\n render,\n ...props\n } = t0;\n const qdsContext = useQdsInputContext();\n const mergedProps = mergeProps(qdsContext.getClearTriggerBindings(), props);\n return jsx(CoreCombobox.ClearTrigger, {\n render: jsx(InlineIconButton, {\n icon: X,\n render,\n variant: \"scale\"\n }),\n ...mergedProps\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxContent(props) {\n const $ = _c(3);\n const qdsContext = useQdsComboboxContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getContentBindings(), props);\n t0 = jsx(CoreCombobox.Content, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [QdsComboboxContextProvider, useQdsComboboxContext] = createGuardedContext({\n hookName: \"useQdsComboboxContext\",\n providerName: \"<QdsComboboxContextProvider>\",\n strict: true\n});", "import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { InputStartIcon, useQdsInputContext } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxControl(t0) {\n const {\n children,\n ...props\n } = t0;\n const qdsContext = useQdsComboboxContext();\n const qdsInputContext = useQdsInputContext();\n const mergedProps = mergeProps(qdsContext.getControlBindings(), props);\n return jsxs(CoreCombobox.Control, {\n ...mergedProps,\n children: [qdsInputContext.startIcon ? jsx(InputStartIcon, {\n icon: qdsInputContext.startIcon\n }) : null, children]\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxEmpty(props) {\n const $ = _c(3);\n const qdsContext = useQdsComboboxContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getItemBindings(), props);\n t0 = jsx(CoreCombobox.Empty, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { InputErrorIndicator } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nexport function ComboboxErrorIndicator({\n icon,\n render,\n ...props\n}) {\n return /* @__PURE__ */jsx(CoreCombobox.ErrorIndicator, {\n render: /* @__PURE__ */jsx(InputErrorIndicator, {\n icon,\n render\n }),\n ...props\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { InputErrorText } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nexport function ComboboxErrorText({\n icon,\n render,\n ...props\n}) {\n return /* @__PURE__ */jsx(CoreCombobox.ErrorText, {\n render: /* @__PURE__ */jsx(InputErrorText, {\n icon,\n render\n }),\n ...props\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { InputHint } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nexport function ComboboxHint({\n children,\n render,\n ...props\n}) {\n return /* @__PURE__ */jsx(CoreCombobox.Hint, {\n render: /* @__PURE__ */jsx(InputHint, {\n render\n }),\n ...props,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useQdsInputContext } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function ComboboxInput(props) {\n const $ = _c(3);\n const qdsContext = useQdsInputContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getInputBindings(), props);\n t0 = jsx(CoreCombobox.Input, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nimport { Fragment as Fragment2 } from \"react\";\nimport { useComboboxContext } from \"@qualcomm-ui/react-core/combobox\";\nimport { HighlightText } from \"@qualcomm-ui/react-core/highlight\";\nimport { renderProp } from \"@qualcomm-ui/react-core/system\";\nimport { ComboboxItem } from \"./combobox-item\";\nimport { ComboboxItemIndicator } from \"./combobox-item-indicator\";\nimport { ComboboxItemText } from \"./combobox-item-text\";\nexport function ComboboxItems(t0) {\n const $ = _c(7);\n const {\n highlightMatchingText,\n renderItem\n } = t0;\n const context = useComboboxContext();\n if (renderItem) {\n let t1;\n if ($[0] !== context.collection || $[1] !== renderItem) {\n t1 = jsx(Fragment, {\n children: context.collection.items.map(item => {\n const value = context.collection.getItemValue(item);\n return jsx(Fragment2, {\n children: renderProp(renderItem, {\n item\n })\n }, value);\n })\n });\n $[0] = context.collection;\n $[1] = renderItem;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n return t1;\n }\n let t1;\n if ($[3] !== context.collection || $[4] !== context.inputValue || $[5] !== highlightMatchingText) {\n t1 = jsx(Fragment, {\n children: context.collection.items.map(item_0 => {\n const label = context.collection.stringifyItem(item_0);\n const value_0 = context.collection.getItemValue(item_0);\n return jsx(Fragment2, {\n children: jsxs(ComboboxItem, {\n item: item_0,\n children: [jsx(ComboboxItemText, {\n children: highlightMatchingText ? jsx(HighlightText, {\n ignoreCase: true,\n query: context.inputValue ?? \"\",\n text: label ?? \"\"\n }) : label\n }), jsx(ComboboxItemIndicator, {})]\n })\n }, value_0);\n })\n });\n $[3] = context.collection;\n $[4] = context.inputValue;\n $[5] = highlightMatchingText;\n $[6] = t1;\n } else {\n t1 = $[6];\n }\n return t1;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxItem(props) {\n const $ = _c(3);\n const qdsContext = useQdsComboboxContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getItemBindings(), props);\n t0 = jsx(CoreCombobox.Item, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { Check } from \"lucide-react\";\nimport { Icon } from \"@qualcomm-ui/react/icon\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nexport function ComboboxItemIndicator({\n children,\n ...props\n}) {\n return /* @__PURE__ */jsx(CoreCombobox.ItemIndicator, {\n ...props,\n children: children ?? /* @__PURE__ */jsx(Icon, {\n icon: Check\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxItemText(props) {\n const $ = _c(3);\n const qdsContext = useQdsComboboxContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getItemTextBindings(), props);\n t0 = jsx(CoreCombobox.ItemText, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { InputLabel } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox, useComboboxContext } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxLabel(t0) {\n const {\n render,\n ...props\n } = t0;\n const comboboxContext = useComboboxContext();\n const qdsContext = useQdsComboboxContext();\n const mergedProps = mergeProps(qdsContext.getLabelBindings(), props);\n return jsx(CoreCombobox.Label, {\n render: jsx(InputLabel, {\n render,\n required: comboboxContext.required\n }),\n ...mergedProps\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxPositioner(props) {\n const $ = _c(3);\n const qdsContext = useQdsComboboxContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getPositionerBindings(), props);\n t0 = jsx(CoreCombobox.Positioner, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { createQdsInputApi } from \"@qualcomm-ui/qds-core/input\";\nimport { createQdsSelectApi } from \"@qualcomm-ui/qds-core/select\";\nimport { QdsInputContextProvider } from \"@qualcomm-ui/react/input\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsComboboxContextProvider } from \"./qds-combobox-context\";\nexport function ComboboxRoot(t0) {\n const $ = _c(7);\n let t1;\n if ($[0] !== t0) {\n const {\n icon,\n size,\n ...props\n } = t0;\n let t2;\n if ($[2] !== size) {\n t2 = createQdsSelectApi({\n size\n }, normalizeProps);\n $[2] = size;\n $[3] = t2;\n } else {\n t2 = $[3];\n }\n const qdsContext = t2;\n let t3;\n if ($[4] !== icon || $[5] !== size) {\n t3 = createQdsInputApi({\n size,\n startIcon: icon\n }, normalizeProps);\n $[4] = icon;\n $[5] = size;\n $[6] = t3;\n } else {\n t3 = $[6];\n }\n const qdsInputApi = t3;\n const mergedProps = mergeProps(qdsContext.getRootBindings(), props);\n t1 = jsx(QdsComboboxContextProvider, {\n value: qdsContext,\n children: jsx(QdsInputContextProvider, {\n value: qdsInputApi,\n children: jsx(CoreCombobox.Root, {\n ...mergedProps\n })\n })\n });\n $[0] = t0;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n return t1;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { ChevronDown } from \"lucide-react\";\nimport { InlineIconButton } from \"@qualcomm-ui/react/inline-icon-button\";\nimport { CoreCombobox } from \"@qualcomm-ui/react-core/combobox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxTrigger(t0) {\n const {\n icon: t1,\n render,\n ...props\n } = t0;\n const icon = t1 === undefined ? ChevronDown : t1;\n const qdsContext = useQdsComboboxContext();\n const mergedProps = mergeProps(qdsContext.getIndicatorBindings(), props);\n return jsx(CoreCombobox.Trigger, {\n render: jsx(InlineIconButton, {\n icon,\n render,\n size: qdsContext.size === \"sm\" ? \"sm\" : \"md\",\n variant: \"scale\"\n }),\n ...mergedProps\n });\n}", "import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { Fragment, useEffect, useRef } from \"react\";\nimport { useVirtualizer } from \"@tanstack/react-virtual\";\nimport { useComboboxContext } from \"@qualcomm-ui/react-core/combobox\";\nimport { useNoMemo } from \"@qualcomm-ui/react-core/compat\";\nimport { HighlightText } from \"@qualcomm-ui/react-core/highlight\";\nimport { useMergedRef } from \"@qualcomm-ui/react-core/refs\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { ComboboxContent } from \"./combobox-content\";\nimport { ComboboxItem } from \"./combobox-item\";\nimport { ComboboxItemIndicator } from \"./combobox-item-indicator\";\nimport { ComboboxItemText } from \"./combobox-item-text\";\nimport { useQdsComboboxContext } from \"./qds-combobox-context\";\nexport function ComboboxVirtualContent({\n children,\n highlightMatchingText,\n ref,\n renderItem,\n virtualOptions,\n ...props\n}) {\n const {\n collection,\n inputValue,\n open,\n setScrollToIndexFn\n } = useComboboxContext();\n const qdsContext = useQdsComboboxContext();\n const localRef = useRef(null);\n const mergedRef = useMergedRef(ref, localRef);\n useEffect(() => {\n const frame = requestAnimationFrame(() => {\n const content = localRef.current;\n if (!content) {\n return;\n }\n const positioner = content.closest(`[data-combobox-part=\"positioner\"]`);\n if (!positioner) {\n return;\n }\n positioner.style.setProperty(\"--scrollbar-width\", `${positioner.offsetWidth - positioner.clientWidth}px`);\n });\n return () => cancelAnimationFrame(frame);\n }, [inputValue, open]);\n const virtualizer = useVirtualizer({\n count: collection.items.length,\n enabled: open,\n estimateSize: () => qdsContext.size === \"sm\" ? 32 : 40,\n getScrollElement: () => localRef.current.closest(`[data-combobox-part=\"positioner\"]`) || localRef.current,\n overscan: 5,\n // account for 2px border\n paddingEnd: 2,\n scrollPaddingEnd: 2,\n ...virtualOptions\n });\n const mergedProps = mergeProps(qdsContext.getContentBindings(), {\n style: {\n height: `${useNoMemo(() => virtualizer.getTotalSize())}px`\n }\n }, props);\n const timerRef = useRef(void 0);\n useEffect(() => {\n const handleScrollToIndexFn = details => {\n const scrollOptions = {\n align: \"auto\",\n behavior: \"auto\"\n };\n if (!details) {\n return;\n }\n if (details.immediate) {\n virtualizer.scrollToIndex(details.index, scrollOptions);\n } else {\n clearTimeout(timerRef.current);\n timerRef.current = setTimeout(() => {\n virtualizer.scrollToIndex(details.index, scrollOptions);\n });\n }\n };\n setScrollToIndexFn(handleScrollToIndexFn);\n }, [setScrollToIndexFn, virtualizer]);\n const virtualItems = useNoMemo(() => virtualizer.getVirtualItems());\n if (renderItem) {\n return /* @__PURE__ */jsxs(ComboboxContent, {\n ...mergedProps,\n ref: mergedRef,\n \"data-virtual\": true,\n children: [children, virtualItems.map(virtualItem => {\n const item = collection.items.at(virtualItem.index);\n const value = collection.getItemValue(item);\n return /* @__PURE__ */jsx(Fragment, {\n children: renderItem({\n \"data-virtual\": \"\",\n item,\n style: {\n \"--virtual-item-start\": `${virtualItem.start}px`\n }\n })\n }, value);\n })]\n });\n }\n return /* @__PURE__ */jsxs(ComboboxContent, {\n ...mergedProps,\n ref: mergedRef,\n \"data-virtual\": true,\n children: [children, virtualItems.map(virtualItem_0 => {\n const item_0 = collection.items.at(virtualItem_0.index);\n const label = collection.stringifyItem(item_0);\n const value_0 = collection.getItemValue(item_0);\n return /* @__PURE__ */jsxs(ComboboxItem, {\n \"data-virtual\": true,\n item: item_0,\n style: {\n \"--virtual-item-start\": `${virtualItem_0.start}px`\n },\n children: [/* @__PURE__ */jsx(ComboboxItemText, {\n children: highlightMatchingText ? /* @__PURE__ */jsx(HighlightText, {\n ignoreCase: true,\n query: inputValue,\n text: label ?? \"\"\n }) : label\n }), /* @__PURE__ */jsx(ComboboxItemIndicator, {})]\n }, value_0);\n })]\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { useComboboxContext } from \"@qualcomm-ui/react-core/combobox\";\nimport { renderProp } from \"@qualcomm-ui/react-core/system\";\nexport function ComboboxContext(t0) {\n const $ = _c(3);\n const {\n children\n } = t0;\n const context = useComboboxContext();\n let t1;\n if ($[0] !== children || $[1] !== context) {\n t1 = renderProp(children, context);\n $[0] = children;\n $[1] = context;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n return t1;\n}", "import { Combobox as SimpleCombobox } from \"./combobox\";\nimport { ComboboxClearTrigger } from \"./combobox-clear-trigger\";\nimport { ComboboxContent } from \"./combobox-content\";\nimport { ComboboxContext } from \"./combobox-context\";\nimport { ComboboxControl } from \"./combobox-control\";\nimport { ComboboxEmpty } from \"./combobox-empty\";\nimport { ComboboxErrorIndicator } from \"./combobox-error-indicator\";\nimport { ComboboxErrorText } from \"./combobox-error-text\";\nimport { ComboboxHint } from \"./combobox-hint\";\nimport { ComboboxInput } from \"./combobox-input\";\nimport { ComboboxItem } from \"./combobox-item\";\nimport { ComboboxItemIndicator } from \"./combobox-item-indicator\";\nimport { ComboboxItemText } from \"./combobox-item-text\";\nimport { ComboboxItems } from \"./combobox-items\";\nimport { ComboboxLabel } from \"./combobox-label\";\nimport { ComboboxPositioner } from \"./combobox-positioner\";\nimport { ComboboxRoot } from \"./combobox-root\";\nimport { ComboboxTrigger } from \"./combobox-trigger\";\nimport { ComboboxVirtualContent } from \"./combobox-virtual-content\";\nexport * from \"./qds-combobox-context\";\nexport const Combobox = SimpleCombobox;\nCombobox.ClearTrigger = ComboboxClearTrigger;\nCombobox.Content = ComboboxContent;\nCombobox.Context = ComboboxContext;\nCombobox.Control = ComboboxControl;\nCombobox.Empty = ComboboxEmpty;\nCombobox.ErrorIndicator = ComboboxErrorIndicator;\nCombobox.ErrorText = ComboboxErrorText;\nCombobox.Hint = ComboboxHint;\nCombobox.Input = ComboboxInput;\nCombobox.ItemIndicator = ComboboxItemIndicator;\nCombobox.ItemText = ComboboxItemText;\nCombobox.Item = ComboboxItem;\nCombobox.Items = ComboboxItems;\nCombobox.Label = ComboboxLabel;\nCombobox.Positioner = ComboboxPositioner;\nCombobox.Root = ComboboxRoot;\nCombobox.Trigger = ComboboxTrigger;\nCombobox.VirtualContent = ComboboxVirtualContent;"],
|
|
5
|
+
"mappings": ";AAAA,OAAS,OAAAA,MAAK,QAAAC,UAAY,oBAC1B,OAAS,yBAA4B,kCACrC,OAAS,WAAc,iCACvB,OAAS,oBAAuB,gCCHhC,OAAS,QAAW,oBACpB,OAAS,MAAS,eAClB,OAAS,qBAAwB,wCACjC,OAAS,uBAA0B,2BACnC,OAAS,iBAAoB,mCAC7B,OAAS,eAAkB,iCACpB,SAAS,qBAAqB,GAAI,CACvC,GAAM,CACJ,OACA,GAAG,KACL,EAAI,GACE,WAAa,mBAAmB,EAChC,YAAc,WAAW,WAAW,wBAAwB,EAAG,KAAK,EAC1E,OAAO,IAAI,aAAa,aAAc,CACpC,OAAQ,IAAI,iBAAkB,CAC5B,KAAM,EACN,OACA,QAAS,OACX,CAAC,EACD,GAAG,WACL,CAAC,CACH,CCrBA,OAAS,KAAK,OAAU,yBACxB,OAAS,OAAAC,SAAW,oBACpB,OAAS,gBAAAC,kBAAoB,mCAC7B,OAAS,cAAAC,gBAAkB,iCCH3B,OAAS,yBAA4B,kCAC9B,GAAM,CAAC,2BAA4B,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BA,UAAS,UAAY,kBACrBA,UAAS,KAAO,aAChBA,UAAS,MAAQ,cACjBA,UAAS,cAAgB,sBACzBA,UAAS,SAAW,iBACpBA,UAAS,KAAO,aAChBA,UAAS,MAAQ,cACjBA,UAAS,MAAQ,cACjBA,UAAS,WAAa,mBACtBA,UAAS,KAAO,aAChBA,UAAS,QAAU,gBACnBA,UAAS,eAAiB",
|
|
6
6
|
"names": ["jsx", "jsxs", "jsx", "CoreCombobox", "mergeProps", "mergeProps", "jsx", "CoreCombobox", "jsx", "useQdsInputContext", "CoreCombobox", "mergeProps", "useQdsInputContext", "mergeProps", "CoreCombobox", "jsx", "_c", "jsx", "CoreCombobox", "mergeProps", "_c", "mergeProps", "jsx", "CoreCombobox", "jsx", "CoreCombobox", "jsx", "CoreCombobox", "jsx", "CoreCombobox", "_c", "jsx", "useQdsInputContext", "CoreCombobox", "mergeProps", "_c", "jsx", "jsxs", "_c", "jsx", "CoreCombobox", "mergeProps", "_c", "mergeProps", "jsx", "CoreCombobox", "jsx", "CoreCombobox", "_c", "jsx", "CoreCombobox", "mergeProps", "_c", "mergeProps", "jsx", "CoreCombobox", "_c", "t1", "jsx", "jsxs", "jsx", "CoreCombobox", "useComboboxContext", "mergeProps", "useComboboxContext", "mergeProps", "jsx", "CoreCombobox", "_c", "jsx", "CoreCombobox", "mergeProps", "_c", "mergeProps", "jsx", "CoreCombobox", "_c", "jsx", "CoreCombobox", "mergeProps", "_c", "mergeProps", "jsx", "CoreCombobox", "jsx", "InlineIconButton", "CoreCombobox", "mergeProps", "mergeProps", "jsx", "CoreCombobox", "InlineIconButton", "jsx", "jsxs", "Fragment", "useComboboxContext", "HighlightText", "mergeProps", "useComboboxContext", "mergeProps", "jsxs", "jsx", "Fragment", "HighlightText", "jsxs", "jsx", "_c", "useComboboxContext", "renderProp", "Combobox"]
|
|
7
7
|
}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import { type SegmentedControlRootProps } from "@qualcomm-ui/react/segmented-control";
|
|
1
|
+
import { type SegmentedControlItemRootProps, type SegmentedControlRootProps } from "@qualcomm-ui/react/segmented-control";
|
|
2
2
|
export declare const globalItems: string[];
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
type ItemPropsMap = Partial<Record<string, Omit<SegmentedControlItemRootProps, "children" | "value">>>;
|
|
4
|
+
export interface TestComponentProps extends SegmentedControlRootProps {
|
|
5
|
+
/**
|
|
6
|
+
* Optional map of extra props to spread onto individual items, keyed by item
|
|
7
|
+
* value. Used by tests to disable specific items or pass other item-level
|
|
8
|
+
* overrides without special-casing each scenario in the helper.
|
|
9
|
+
*/
|
|
10
|
+
itemProps?: ItemPropsMap;
|
|
11
|
+
}
|
|
12
|
+
export declare function SimpleComponent({ itemProps, ...props }: TestComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function CompositeComponent({ itemProps, ...props }: TestComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
5
15
|
//# sourceMappingURL=test-segmented-control.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-segmented-control.d.ts","sourceRoot":"","sources":["../../../src/segmented-control/__tests__/test-segmented-control.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,sCAAsC,CAAA;AAE7C,eAAO,MAAM,WAAW,UAA0B,CAAA;AAElD,wBAAgB,eAAe,CAAC,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"test-segmented-control.d.ts","sourceRoot":"","sources":["../../../src/segmented-control/__tests__/test-segmented-control.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC/B,MAAM,sCAAsC,CAAA;AAE7C,eAAO,MAAM,WAAW,UAA0B,CAAA;AAElD,KAAK,YAAY,GAAG,OAAO,CACzB,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,6BAA6B,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC,CAC1E,CAAA;AAED,MAAM,WAAW,kBAAmB,SAAQ,yBAAyB;IACnE;;;;OAIG;IACH,SAAS,CAAC,EAAE,YAAY,CAAA;CACzB;AAED,wBAAgB,eAAe,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,kBAAkB,2CAcxE;AAED,wBAAgB,kBAAkB,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,kBAAkB,2CAgB3E"}
|