@qualcomm-ui/react 1.23.0 → 1.24.0

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.
Files changed (132) hide show
  1. package/dist/accordion/index.js +2 -3
  2. package/dist/accordion/index.js.map +1 -7
  3. package/dist/action-group/index.js +2 -3
  4. package/dist/action-group/index.js.map +1 -7
  5. package/dist/alert-banner/index.js +2 -3
  6. package/dist/alert-banner/index.js.map +1 -7
  7. package/dist/avatar/index.js +2 -3
  8. package/dist/avatar/index.js.map +1 -7
  9. package/dist/badge/index.js +2 -3
  10. package/dist/badge/index.js.map +1 -7
  11. package/dist/breadcrumbs/index.js +2 -3
  12. package/dist/breadcrumbs/index.js.map +1 -7
  13. package/dist/button/button-group-context.d.ts +2 -5
  14. package/dist/button/button-group-context.d.ts.map +1 -1
  15. package/dist/button/button.d.ts +2 -1
  16. package/dist/button/button.d.ts.map +1 -1
  17. package/dist/button/icon-button.d.ts +2 -1
  18. package/dist/button/icon-button.d.ts.map +1 -1
  19. package/dist/button/index.js +2 -3
  20. package/dist/button/index.js.map +1 -7
  21. package/dist/card/index.js +2 -3
  22. package/dist/card/index.js.map +1 -7
  23. package/dist/checkbox/index.js +2 -3
  24. package/dist/checkbox/index.js.map +1 -7
  25. package/dist/checkbox-group/index.js +2 -3
  26. package/dist/checkbox-group/index.js.map +1 -7
  27. package/dist/checkmark/index.js +2 -3
  28. package/dist/checkmark/index.js.map +1 -7
  29. package/dist/collapsible/index.js +2 -3
  30. package/dist/collapsible/index.js.map +1 -7
  31. package/dist/combobox/index.js +2 -3
  32. package/dist/combobox/index.js.map +1 -7
  33. package/dist/dialog/index.js +2 -3
  34. package/dist/dialog/index.js.map +1 -7
  35. package/dist/divider/index.js +2 -3
  36. package/dist/divider/index.js.map +1 -7
  37. package/dist/drawer/index.js +2 -3
  38. package/dist/drawer/index.js.map +1 -7
  39. package/dist/field-group/index.js +2 -3
  40. package/dist/field-group/index.js.map +1 -7
  41. package/dist/file-input/index.js +2 -3
  42. package/dist/file-input/index.js.map +1 -7
  43. package/dist/file-upload/index.js +2 -3
  44. package/dist/file-upload/index.js.map +1 -7
  45. package/dist/footer/index.js +1 -2
  46. package/dist/header-bar/index.js +2 -3
  47. package/dist/header-bar/index.js.map +1 -7
  48. package/dist/icon/index.js +2 -3
  49. package/dist/icon/index.js.map +1 -7
  50. package/dist/inline-icon-button/index.js +2 -3
  51. package/dist/inline-icon-button/index.js.map +1 -7
  52. package/dist/inline-notification/index.js +2 -3
  53. package/dist/inline-notification/index.js.map +1 -7
  54. package/dist/input/index.js +2 -3
  55. package/dist/input/index.js.map +1 -7
  56. package/dist/kbd/index.js +2 -3
  57. package/dist/kbd/index.js.map +1 -7
  58. package/dist/link/index.js +2 -3
  59. package/dist/link/index.js.map +1 -7
  60. package/dist/menu/index.d.ts +76 -51
  61. package/dist/menu/index.d.ts.map +1 -1
  62. package/dist/menu/index.js +2 -3
  63. package/dist/menu/index.js.map +1 -7
  64. package/dist/menu/menu-icon-button.d.ts +1 -1
  65. package/dist/menu/menu-icon-button.d.ts.map +1 -1
  66. package/dist/menu/menu-split-button.d.ts +40 -0
  67. package/dist/menu/menu-split-button.d.ts.map +1 -0
  68. package/dist/number-input/index.js +2 -3
  69. package/dist/number-input/index.js.map +1 -7
  70. package/dist/pagination/index.js +2 -3
  71. package/dist/pagination/index.js.map +1 -7
  72. package/dist/password-input/index.js +2 -3
  73. package/dist/password-input/index.js.map +1 -7
  74. package/dist/popover/index.js +2 -3
  75. package/dist/popover/index.js.map +1 -7
  76. package/dist/progress/index.js +2 -3
  77. package/dist/progress/index.js.map +1 -7
  78. package/dist/progress-ring/index.js +2 -3
  79. package/dist/progress-ring/index.js.map +1 -7
  80. package/dist/qds-theme/index.js +2 -3
  81. package/dist/qds-theme/index.js.map +1 -7
  82. package/dist/qui-root/index.js +2 -3
  83. package/dist/qui-root/index.js.map +1 -7
  84. package/dist/radio/index.js +2 -3
  85. package/dist/radio/index.js.map +1 -7
  86. package/dist/segmented-control/index.js +2 -3
  87. package/dist/segmented-control/index.js.map +1 -7
  88. package/dist/select/index.js +2 -3
  89. package/dist/select/index.js.map +1 -7
  90. package/dist/side-nav/index.js +2 -3
  91. package/dist/side-nav/index.js.map +1 -7
  92. package/dist/slider/index.js +2 -3
  93. package/dist/slider/index.js.map +1 -7
  94. package/dist/stepper/index.js +2 -3
  95. package/dist/stepper/index.js.map +1 -7
  96. package/dist/stepper/stepper-completed-content.d.ts +2 -1
  97. package/dist/stepper/stepper-completed-content.d.ts.map +1 -1
  98. package/dist/switch/index.js +2 -3
  99. package/dist/switch/index.js.map +1 -7
  100. package/dist/switch-group/index.js +2 -3
  101. package/dist/switch-group/index.js.map +1 -7
  102. package/dist/table/index.js +2 -3
  103. package/dist/table/index.js.map +1 -7
  104. package/dist/tabs/index.js +2 -3
  105. package/dist/tabs/index.js.map +1 -7
  106. package/dist/tag/index.js +2 -3
  107. package/dist/tag/index.js.map +1 -7
  108. package/dist/tag/tag.d.ts +33 -6
  109. package/dist/tag/tag.d.ts.map +1 -1
  110. package/dist/text-area/index.js +2 -3
  111. package/dist/text-area/index.js.map +1 -7
  112. package/dist/text-input/index.js +2 -3
  113. package/dist/text-input/index.js.map +1 -7
  114. package/dist/toast/index.js +2 -3
  115. package/dist/toast/index.js.map +1 -7
  116. package/dist/tooltip/index.js +2 -3
  117. package/dist/tooltip/index.js.map +1 -7
  118. package/dist/tree/index.js +2 -3
  119. package/dist/tree/index.js.map +1 -7
  120. package/dist/tsbuildinfo +1 -1
  121. package/package.json +9 -6
  122. package/dist/button/internal/context-button.d.ts +0 -4
  123. package/dist/button/internal/context-button.d.ts.map +0 -1
  124. package/dist/button/internal/context-icon-button.d.ts +0 -4
  125. package/dist/button/internal/context-icon-button.d.ts.map +0 -1
  126. package/dist/button/internal/index.d.ts +0 -5
  127. package/dist/button/internal/index.d.ts.map +0 -1
  128. package/dist/button/internal/internal-button.d.ts +0 -4
  129. package/dist/button/internal/internal-button.d.ts.map +0 -1
  130. package/dist/button/internal/internal-icon-button.d.ts +0 -4
  131. package/dist/button/internal/internal-icon-button.d.ts.map +0 -1
  132. package/dist/footer/index.js.map +0 -7
@@ -1,7 +1 @@
1
- {
2
- "version": 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 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,qBAAqB,EAAI,qBAAqB,CACtF,SAAU,wBACV,aAAc,+BACd,OAAQ,EAC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,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
- "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
- }
1
+ {"version":3,"file":"index.js","names":["ReactElement","X","InlineIconButton","useQdsInputContext","CoreCombobox","CoreComboboxClearTriggerProps","mergeProps","ComboboxClearTriggerProps","ComboboxClearTrigger","t0","$","_c","render","props","qdsContext","mergedProps","getClearTriggerBindings","t1","t2","QdsSelectApi","createGuardedContext","QdsComboboxContextProvider","useQdsComboboxContext","hookName","providerName","strict","ReactElement","CoreCombobox","CoreComboboxContentProps","mergeProps","useQdsComboboxContext","ComboboxContentProps","ComboboxContent","props","$","_c","qdsContext","t0","getContentBindings","mergedProps","t1","ReactElement","InputStartIcon","useQdsInputContext","CoreCombobox","CoreComboboxControlProps","mergeProps","useQdsComboboxContext","ComboboxControlProps","ComboboxControl","t0","$","_c","children","props","qdsContext","qdsInputContext","mergedProps","getControlBindings","t1","startIcon","t2","ReactElement","CoreCombobox","CoreComboboxEmptyProps","mergeProps","useQdsComboboxContext","ComboboxEmptyProps","ComboboxEmpty","props","$","_c","qdsContext","t0","getItemBindings","mergedProps","t1","ReactElement","InputErrorIndicator","InputErrorIndicatorProps","CoreCombobox","CoreComboboxErrorIndicatorProps","ComboboxErrorIndicatorProps","ComboboxErrorIndicator","t0","$","_c","icon","props","render","t1","t2","ReactElement","InputErrorText","InputErrorTextProps","CoreCombobox","CoreComboboxErrorTextProps","ComboboxErrorTextProps","ComboboxErrorText","t0","$","_c","icon","props","render","t1","t2","ReactElement","ReactNode","InputHint","InputHintProps","CoreCombobox","ComboboxHintProps","children","ComboboxHint","t0","$","_c","props","render","t1","t2","ReactElement","useQdsInputContext","CoreCombobox","CoreComboboxInputProps","mergeProps","ComboboxInputProps","ComboboxInput","props","$","_c","qdsContext","t0","getInputBindings","mergedProps","t1","ReactElement","CoreCombobox","CoreComboboxItemProps","CollectionItem","mergeProps","useQdsComboboxContext","ComboboxItemProps","T","ComboboxItem","props","$","_c","qdsContext","t0","getItemBindings","mergedProps","t1","ReactElement","ReactNode","Check","Icon","CoreCombobox","CoreComboboxItemIndicatorProps","ComboboxItemIndicatorProps","children","ComboboxItemIndicator","t0","$","_c","props","t1","t2","ReactElement","CoreCombobox","CoreComboboxItemTextProps","mergeProps","useQdsComboboxContext","ComboboxItemTextProps","ComboboxItemText","props","$","_c","qdsContext","t0","getItemTextBindings","mergedProps","t1","CSSProperties","Fragment","ReactElement","useComboboxContext","HighlightText","RenderFunction","renderProp","BooleanDataAttr","CollectionItem","ComboboxItem","ComboboxItemProps","ComboboxItemIndicator","ComboboxItemText","ComboboxItemRenderProp","Omit","T","style","ComboboxItemsProps","highlightMatchingText","renderItem","ComboboxItems","t0","$","_c","context","t1","collection","items","map","item","value","getItemValue","t2","inputValue","item_0","label","stringifyItem","value_0","ReactElement","InputLabel","CoreCombobox","CoreComboboxLabelProps","useComboboxContext","mergeProps","useQdsComboboxContext","ComboboxLabelProps","ComboboxLabel","t0","$","_c","render","props","comboboxContext","qdsContext","mergedProps","getLabelBindings","t1","required","t2","ReactElement","CoreCombobox","CoreComboboxPositionerProps","mergeProps","useQdsComboboxContext","ComboboxPositionerProps","ComboboxPositioner","props","$","_c","qdsContext","t0","getPositionerBindings","mergedProps","t1","ReactElement","useMemo","createQdsInputApi","createQdsSelectApi","QdsSelectApiProps","QdsInputContextProvider","QdsReactInputApi","CoreCombobox","CoreComboboxRootProps","LucideIconOrElement","normalizeProps","CollectionItem","mergeProps","QdsComboboxContextProvider","ComboboxRootProps","T","icon","ComboboxRoot","t0","$","_c","qdsContext","qdsInputApi","t1","size","props","t2","t3","startIcon","getRootBindings","mergedProps","t4","ReactElement","ReactNode","ChevronDown","LucideIcon","InlineIconButton","CoreCombobox","CoreComboboxTriggerProps","mergeProps","useQdsComboboxContext","ComboboxTriggerProps","icon","ComboboxTrigger","t0","$","_c","t1","render","props","undefined","qdsContext","mergedProps","getIndicatorBindings","t2","size","t3","t4","CSSProperties","Fragment","ReactElement","useEffect","useRef","ScrollToOptions","useVirtualizer","VirtualizerOptions","ScrollToIndexDetails","useComboboxContext","useNoMemo","HighlightText","useMergedRef","CollectionItem","mergeProps","ComboboxContent","ComboboxContentProps","ComboboxItem","ComboboxItemIndicator","ComboboxItemText","ComboboxItemRenderProp","useQdsComboboxContext","ComboboxVirtualContentProps","highlightMatchingText","renderItem","T","virtualOptions","Partial","ComboboxVirtualContent","children","ref","props","collection","inputValue","open","setScrollToIndexFn","qdsContext","localRef","HTMLDivElement","mergedRef","frame","requestAnimationFrame","content","current","positioner","closest","style","setProperty","offsetWidth","clientWidth","cancelAnimationFrame","virtualizer","count","items","length","enabled","estimateSize","size","getScrollElement","overscan","paddingEnd","scrollPaddingEnd","mergedProps","getContentBindings","height","getTotalSize","timerRef","ReturnType","setTimeout","undefined","handleScrollToIndexFn","details","scrollOptions","align","behavior","immediate","scrollToIndex","index","clearTimeout","virtualItems","getVirtualItems","map","virtualItem","item","at","value","getItemValue","start","label","stringifyItem","ReactElement","ReactNode","useOptionalContentId","Portal","PortalProps","useControlledId","CollectionItem","ComboboxClearTrigger","ComboboxClearTriggerProps","ComboboxContent","ComboboxContentProps","ComboboxControl","ComboboxControlProps","ComboboxEmpty","ComboboxEmptyProps","ComboboxErrorIndicator","ComboboxErrorIndicatorProps","ComboboxErrorText","ComboboxErrorTextProps","ComboboxHint","ComboboxHintProps","ComboboxInput","ComboboxInputProps","ComboboxItemRenderProp","ComboboxItems","ComboboxLabel","ComboboxLabelProps","ComboboxPositioner","ComboboxPositionerProps","ComboboxRoot","ComboboxRootProps","ComboboxTrigger","ComboboxTriggerProps","ComboboxVirtualContent","ComboboxProps","T","clearTriggerProps","contentProps","controlProps","emptyMessage","emptyProps","errorIndicatorProps","errorText","errorTextProps","highlightMatchingText","hint","hintProps","inputProps","label","labelProps","portalProps","positionerProps","renderItem","triggerProps","virtual","Combobox","t0","$","_c","ariaLabel","ariaLabelledBy","inputPropsProp","props","emptyContent","children","labelContent","hintContent","errorTextContent","undefined","t1","hidden","t2","id","t3","t4","t5","t6","t7","t8","t9","t10","ids","clearTrigger","content","control","input","positioner","root","t11","t12","t13","t14","t15","trigger","t16","t17","t18","t19","t20","t21","t22","ReactNode","ComboboxApi","useComboboxContext","renderProp","RenderProp","ComboboxContextProps","children","ComboboxContext","t0","$","_c","context","t1","Combobox","SimpleCombobox","ComboboxClearTrigger","ComboboxClearTriggerProps","ComboboxContent","ComboboxContentProps","ComboboxContext","ComboboxContextProps","ComboboxControl","ComboboxControlProps","ComboboxEmpty","ComboboxEmptyProps","ComboboxErrorIndicator","ComboboxErrorIndicatorProps","ComboboxErrorText","ComboboxErrorTextProps","ComboboxHint","ComboboxHintProps","ComboboxInput","ComboboxInputProps","ComboboxItem","ComboboxItemProps","ComboboxItemIndicator","ComboboxItemIndicatorProps","ComboboxItemText","ComboboxItemTextProps","ComboboxItems","ComboboxItemsProps","ComboboxLabel","ComboboxLabelProps","ComboboxPositioner","ComboboxPositionerProps","ComboboxRoot","ComboboxRootProps","ComboboxTrigger","ComboboxTriggerProps","ComboboxVirtualContent","ComboboxVirtualContentProps","ComboboxComponent","ClearTrigger","Content","Context","Control","Empty","ErrorIndicator","ErrorText","Hint","Input","Item","ItemIndicator","Items","ItemText","Label","Positioner","Root","Trigger","VirtualContent"],"sources":["../../src/combobox/combobox-clear-trigger.tsx","../../src/combobox/qds-combobox-context.ts","../../src/combobox/combobox-content.tsx","../../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-item.tsx","../../src/combobox/combobox-item-indicator.tsx","../../src/combobox/combobox-item-text.tsx","../../src/combobox/combobox-items.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.tsx","../../src/combobox/combobox-context.tsx","../../src/combobox/index.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {X} from \"lucide-react\"\n\nimport {InlineIconButton} from \"@qualcomm-ui/react/inline-icon-button\"\nimport {useQdsInputContext} from \"@qualcomm-ui/react/input\"\nimport {\n CoreCombobox,\n type CoreComboboxClearTriggerProps,\n} from \"@qualcomm-ui/react-core/combobox\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface ComboboxClearTriggerProps extends CoreComboboxClearTriggerProps {}\n\n/**\n * Button that clears the input value. Renders a `<button>` element by default.\n */\nexport function ComboboxClearTrigger({\n render,\n ...props\n}: ComboboxClearTriggerProps): ReactElement {\n const qdsContext = useQdsInputContext()\n const mergedProps = mergeProps(qdsContext.getClearTriggerBindings(), props)\n\n return (\n <CoreCombobox.ClearTrigger\n render={<InlineIconButton icon={X} render={render} variant=\"scale\" />}\n {...mergedProps}\n />\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {QdsSelectApi} from \"@qualcomm-ui/qds-core/select\"\nimport {createGuardedContext} from \"@qualcomm-ui/react-core/context\"\n\nexport const [QdsComboboxContextProvider, useQdsComboboxContext] =\n createGuardedContext<QdsSelectApi>({\n hookName: \"useQdsComboboxContext\",\n providerName: \"<QdsComboboxContextProvider>\",\n strict: true,\n })\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreCombobox,\n type CoreComboboxContentProps,\n} from \"@qualcomm-ui/react-core/combobox\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsComboboxContext} from \"./qds-combobox-context\"\n\nexport interface ComboboxContentProps extends CoreComboboxContentProps {}\n\n/**\n * Container for the combobox options. Renders a `<div>` element by default.\n */\nexport function ComboboxContent(props: ComboboxContentProps): ReactElement {\n const qdsContext = useQdsComboboxContext()\n const mergedProps = mergeProps(qdsContext.getContentBindings(), props)\n\n return <CoreCombobox.Content {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {InputStartIcon, useQdsInputContext} from \"@qualcomm-ui/react/input\"\nimport {\n CoreCombobox,\n type CoreComboboxControlProps,\n} from \"@qualcomm-ui/react-core/combobox\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsComboboxContext} from \"./qds-combobox-context\"\n\nexport interface ComboboxControlProps extends CoreComboboxControlProps {}\n\n/**\n * Container for the input element and associated controls. Renders a `<div>` element\n * by default.\n */\nexport function ComboboxControl({\n children,\n ...props\n}: ComboboxControlProps): ReactElement {\n const qdsContext = useQdsComboboxContext()\n const qdsInputContext = useQdsInputContext()\n const mergedProps = mergeProps(qdsContext.getControlBindings(), props)\n\n return (\n <CoreCombobox.Control {...mergedProps}>\n {qdsInputContext.startIcon ? (\n <InputStartIcon icon={qdsInputContext.startIcon} />\n ) : null}\n {children}\n </CoreCombobox.Control>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreCombobox,\n type CoreComboboxEmptyProps,\n} from \"@qualcomm-ui/react-core/combobox\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsComboboxContext} from \"./qds-combobox-context\"\n\nexport interface ComboboxEmptyProps extends CoreComboboxEmptyProps {}\n\n/**\n * Message displayed when no options match the filter. Renders a `<div>` element by\n * default.\n */\nexport function ComboboxEmpty(props: ComboboxEmptyProps): ReactElement {\n const qdsContext = useQdsComboboxContext()\n const mergedProps = mergeProps(qdsContext.getItemBindings(), props)\n\n return <CoreCombobox.Empty {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n InputErrorIndicator,\n type InputErrorIndicatorProps,\n} from \"@qualcomm-ui/react/input\"\nimport {\n CoreCombobox,\n type CoreComboboxErrorIndicatorProps,\n} from \"@qualcomm-ui/react-core/combobox\"\n\nexport interface ComboboxErrorIndicatorProps\n extends CoreComboboxErrorIndicatorProps, InputErrorIndicatorProps {}\n\n/**\n * Visual indicator displayed when the input is invalid. Renders a `<div>` element\n * by default.\n */\nexport function ComboboxErrorIndicator({\n icon,\n render,\n ...props\n}: ComboboxErrorIndicatorProps): ReactElement {\n return (\n <CoreCombobox.ErrorIndicator\n render={<InputErrorIndicator icon={icon} render={render} />}\n {...props}\n />\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n InputErrorText,\n type InputErrorTextProps,\n} from \"@qualcomm-ui/react/input\"\nimport {\n CoreCombobox,\n type CoreComboboxErrorTextProps,\n} from \"@qualcomm-ui/react-core/combobox\"\n\nexport interface ComboboxErrorTextProps\n extends CoreComboboxErrorTextProps, InputErrorTextProps {}\n\n/**\n * Error message displayed when the input is invalid. Renders a `<div>` element by\n * default.\n */\nexport function ComboboxErrorText({\n icon,\n render,\n ...props\n}: ComboboxErrorTextProps): ReactElement {\n return (\n <CoreCombobox.ErrorText\n render={<InputErrorText icon={icon} render={render} />}\n {...props}\n />\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {InputHint, type InputHintProps} from \"@qualcomm-ui/react/input\"\nimport {CoreCombobox} from \"@qualcomm-ui/react-core/combobox\"\n\nexport interface ComboboxHintProps extends InputHintProps {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children?: ReactNode\n}\n\n/**\n * Helper text displayed below the input. Renders a `<div>` element by default.\n */\nexport function ComboboxHint({\n children,\n render,\n ...props\n}: ComboboxHintProps): ReactElement {\n return (\n <CoreCombobox.Hint render={<InputHint render={render} />} {...props}>\n {children}\n </CoreCombobox.Hint>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {useQdsInputContext} from \"@qualcomm-ui/react/input\"\nimport {\n CoreCombobox,\n type CoreComboboxInputProps,\n} from \"@qualcomm-ui/react-core/combobox\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface ComboboxInputProps extends CoreComboboxInputProps {}\n\n/**\n * Text input element for filtering and selecting items. Renders an `<input>` element\n * by default.\n */\nexport function ComboboxInput(props: ComboboxInputProps): ReactElement {\n const qdsContext = useQdsInputContext()\n\n const mergedProps = mergeProps(qdsContext.getInputBindings(), props)\n\n return <CoreCombobox.Input {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreCombobox,\n type CoreComboboxItemProps,\n} from \"@qualcomm-ui/react-core/combobox\"\nimport type {CollectionItem} from \"@qualcomm-ui/utils/collection\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsComboboxContext} from \"./qds-combobox-context\"\n\nexport interface ComboboxItemProps<\n T extends CollectionItem,\n> extends CoreComboboxItemProps<T> {}\n\n/**\n * Individual option within the combobox menu. Renders a `<div>` element by default.\n */\nexport function ComboboxItem<T extends CollectionItem = CollectionItem>(\n props: ComboboxItemProps<T>,\n): ReactElement {\n const qdsContext = useQdsComboboxContext()\n const mergedProps = mergeProps(qdsContext.getItemBindings(), props)\n\n return <CoreCombobox.Item {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {Check} from \"lucide-react\"\n\nimport {Icon} from \"@qualcomm-ui/react/icon\"\nimport {\n CoreCombobox,\n type CoreComboboxItemIndicatorProps,\n} from \"@qualcomm-ui/react-core/combobox\"\n\nexport interface ComboboxItemIndicatorProps extends CoreComboboxItemIndicatorProps {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n *\n * @default `<Icon icon={Check}/>`\n */\n children?: ReactNode\n}\n\n/**\n * Visual indicator showing the selected state of an item. Renders a `<span>`\n * element by default.\n */\nexport function ComboboxItemIndicator({\n children,\n ...props\n}: ComboboxItemIndicatorProps): ReactElement {\n return (\n <CoreCombobox.ItemIndicator {...props}>\n {children ?? <Icon icon={Check} />}\n </CoreCombobox.ItemIndicator>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreCombobox,\n type CoreComboboxItemTextProps,\n} from \"@qualcomm-ui/react-core/combobox\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsComboboxContext} from \"./qds-combobox-context\"\n\nexport interface ComboboxItemTextProps extends CoreComboboxItemTextProps {}\n\n/**\n * Text content of a combobox item. Renders a `<span>` element by default.\n */\nexport function ComboboxItemText(props: ComboboxItemTextProps): ReactElement {\n const qdsContext = useQdsComboboxContext()\n const mergedProps = mergeProps(qdsContext.getItemTextBindings(), props)\n\n return <CoreCombobox.ItemText {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {type CSSProperties, Fragment, type ReactElement} from \"react\"\n\nimport {useComboboxContext} from \"@qualcomm-ui/react-core/combobox\"\nimport {HighlightText} from \"@qualcomm-ui/react-core/highlight\"\nimport {type RenderFunction, renderProp} from \"@qualcomm-ui/react-core/system\"\nimport type {BooleanDataAttr} from \"@qualcomm-ui/utils/attributes\"\nimport type {CollectionItem} from \"@qualcomm-ui/utils/collection\"\n\nimport {ComboboxItem, type ComboboxItemProps} from \"./combobox-item\"\nimport {ComboboxItemIndicator} from \"./combobox-item-indicator\"\nimport {ComboboxItemText} from \"./combobox-item-text\"\n\nexport type ComboboxItemRenderProp<T extends CollectionItem> = RenderFunction<\n Omit<ComboboxItemProps<T>, \"persistFocus\"> & {\n \"data-virtual\"?: BooleanDataAttr\n style?: CSSProperties\n }\n>\n\nexport interface ComboboxItemsProps<T extends CollectionItem> {\n /**\n * Set to `true` to highlight option text matches during filtering.\n */\n highlightMatchingText?: boolean\n\n /**\n * Customize the rendering of the combobox list items.\n */\n renderItem?: ComboboxItemRenderProp<T>\n}\n\n/**\n * Shortcut for rendering a list of select items. Uses the {@link collection} to\n * determine the label and value for each item.\n */\nexport function ComboboxItems<T extends CollectionItem = CollectionItem>({\n highlightMatchingText,\n renderItem,\n}: ComboboxItemsProps<T>): ReactElement {\n const context = useComboboxContext()\n\n if (renderItem) {\n return (\n <>\n {context.collection.items.map((item) => {\n const value = context.collection.getItemValue(item)\n return (\n <Fragment key={value}>{renderProp(renderItem, {item})}</Fragment>\n )\n })}\n </>\n )\n }\n\n return (\n <>\n {context.collection.items.map((item) => {\n const label = context.collection.stringifyItem(item)\n const value = context.collection.getItemValue(item)\n return (\n <Fragment key={value}>\n <ComboboxItem item={item}>\n <ComboboxItemText>\n {highlightMatchingText ? (\n <HighlightText\n ignoreCase\n query={context.inputValue ?? \"\"}\n text={label ?? \"\"}\n />\n ) : (\n label\n )}\n </ComboboxItemText>\n <ComboboxItemIndicator />\n </ComboboxItem>\n </Fragment>\n )\n })}\n </>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {InputLabel} from \"@qualcomm-ui/react/input\"\nimport {\n CoreCombobox,\n type CoreComboboxLabelProps,\n useComboboxContext,\n} from \"@qualcomm-ui/react-core/combobox\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsComboboxContext} from \"./qds-combobox-context\"\n\nexport interface ComboboxLabelProps extends CoreComboboxLabelProps {}\n\n/**\n * Label text associated with the combobox. Renders a `<label>` element by default.\n */\nexport function ComboboxLabel({\n render,\n ...props\n}: ComboboxLabelProps): ReactElement {\n const comboboxContext = useComboboxContext()\n const qdsContext = useQdsComboboxContext()\n const mergedProps = mergeProps(qdsContext.getLabelBindings(), props)\n\n return (\n <CoreCombobox.Label\n render={\n <InputLabel render={render} required={comboboxContext.required} />\n }\n {...mergedProps}\n />\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreCombobox,\n type CoreComboboxPositionerProps,\n} from \"@qualcomm-ui/react-core/combobox\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsComboboxContext} from \"./qds-combobox-context\"\n\nexport interface ComboboxPositionerProps extends CoreComboboxPositionerProps {}\n\n/**\n * Positions the combobox menu relative to the control. Renders a `<div>` element by\n * default.\n */\nexport function ComboboxPositioner(\n props: ComboboxPositionerProps,\n): ReactElement {\n const qdsContext = useQdsComboboxContext()\n const mergedProps = mergeProps(qdsContext.getPositionerBindings(), props)\n\n return <CoreCombobox.Positioner {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {type ReactElement, useMemo} from \"react\"\n\nimport {createQdsInputApi} from \"@qualcomm-ui/qds-core/input\"\nimport {\n createQdsSelectApi,\n type QdsSelectApiProps,\n} from \"@qualcomm-ui/qds-core/select\"\nimport {\n QdsInputContextProvider,\n type QdsReactInputApi,\n} from \"@qualcomm-ui/react/input\"\nimport {\n CoreCombobox,\n type CoreComboboxRootProps,\n} from \"@qualcomm-ui/react-core/combobox\"\nimport type {LucideIconOrElement} from \"@qualcomm-ui/react-core/lucide\"\nimport {normalizeProps} from \"@qualcomm-ui/react-core/machine\"\nimport type {CollectionItem} from \"@qualcomm-ui/utils/collection\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {QdsComboboxContextProvider} from \"./qds-combobox-context\"\n\nexport interface ComboboxRootProps<T extends CollectionItem>\n extends CoreComboboxRootProps<T>, QdsSelectApiProps {\n /**\n * {@link https://lucide.dev lucide} icon, positioned at the start of the\n * input field.\n */\n icon?: LucideIconOrElement\n}\n\n/**\n * Groups all parts of the combobox. Renders a `<div>` element by default.\n */\nexport function ComboboxRoot<T extends CollectionItem = CollectionItem>({\n icon,\n size,\n ...props\n}: ComboboxRootProps<T>): ReactElement {\n const qdsContext = useMemo(\n () => createQdsSelectApi({size}, normalizeProps),\n [size],\n )\n const qdsInputApi: QdsReactInputApi = useMemo(\n () => createQdsInputApi({size, startIcon: icon}, normalizeProps),\n [icon, size],\n )\n\n const mergedProps = mergeProps(qdsContext.getRootBindings(), props)\n\n return (\n <QdsComboboxContextProvider value={qdsContext}>\n <QdsInputContextProvider value={qdsInputApi}>\n <CoreCombobox.Root {...mergedProps} />\n </QdsInputContextProvider>\n </QdsComboboxContextProvider>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {ChevronDown, type LucideIcon} from \"lucide-react\"\n\nimport {InlineIconButton} from \"@qualcomm-ui/react/inline-icon-button\"\nimport {\n CoreCombobox,\n type CoreComboboxTriggerProps,\n} from \"@qualcomm-ui/react-core/combobox\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsComboboxContext} from \"./qds-combobox-context\"\n\nexport interface ComboboxTriggerProps extends CoreComboboxTriggerProps {\n /**\n * Dropdown visibility indicator icon. This automatically rotates when the\n * dropdown is visible.\n *\n * @default ChevronDown\n */\n icon?: ReactNode | LucideIcon\n}\n\n/**\n * Icon that indicates the open/close state of the combobox's associated panel.\n * Renders a `<button>` element by default.\n */\nexport function ComboboxTrigger({\n icon = ChevronDown,\n render,\n ...props\n}: ComboboxTriggerProps): ReactElement {\n const qdsContext = useQdsComboboxContext()\n const mergedProps = mergeProps(qdsContext.getIndicatorBindings(), props)\n\n return (\n <CoreCombobox.Trigger\n render={\n <InlineIconButton\n icon={icon}\n render={render}\n size={qdsContext.size === \"sm\" ? \"sm\" : \"md\"}\n variant=\"scale\"\n />\n }\n {...mergedProps}\n />\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n type CSSProperties,\n Fragment,\n type ReactElement,\n useEffect,\n useRef,\n} from \"react\"\n\nimport {\n type ScrollToOptions,\n useVirtualizer,\n type VirtualizerOptions,\n} from \"@tanstack/react-virtual\"\n\nimport type {ScrollToIndexDetails} from \"@qualcomm-ui/core/select\"\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 type {CollectionItem} from \"@qualcomm-ui/utils/collection\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {ComboboxContent, type ComboboxContentProps} from \"./combobox-content\"\nimport {ComboboxItem} from \"./combobox-item\"\nimport {ComboboxItemIndicator} from \"./combobox-item-indicator\"\nimport {ComboboxItemText} from \"./combobox-item-text\"\nimport type {ComboboxItemRenderProp} from \"./combobox-items\"\nimport {useQdsComboboxContext} from \"./qds-combobox-context\"\n\nexport interface ComboboxVirtualContentProps<\n T extends CollectionItem,\n> extends ComboboxContentProps {\n /**\n * Set to `true` to highlight option text matches during filtering.\n */\n highlightMatchingText?: boolean\n\n /**\n * Customize the rendering of the combobox list items. You must forward the\n * `style` prop to the item, otherwise it won't render properly.\n */\n renderItem?: ComboboxItemRenderProp<T>\n\n /**\n * {@link https://tanstack.com/virtual/v3/docs/api/virtualizer @tanstack/react-virtual options},\n * forwarded to the virtualizer.\n * @inheritDoc\n */\n virtualOptions?: Partial<VirtualizerOptions<any, any>>\n}\n\n/**\n * Virtual scrolling container for efficiently rendering large lists of combobox\n * options. Renders a `<div>` element by default.\n */\nexport function ComboboxVirtualContent<\n T extends CollectionItem = CollectionItem,\n>({\n children,\n highlightMatchingText,\n ref,\n renderItem,\n virtualOptions,\n ...props\n}: ComboboxVirtualContentProps<T>): ReactElement {\n const {collection, inputValue, open, setScrollToIndexFn} =\n useComboboxContext()\n const qdsContext = useQdsComboboxContext()\n const localRef = useRef<HTMLDivElement>(null!)\n const mergedRef = useMergedRef(ref, localRef)\n\n useEffect(() => {\n const frame = requestAnimationFrame(() => {\n const content = localRef.current\n if (!content) {\n return\n }\n\n const positioner: HTMLDivElement | null = content.closest(\n `[data-combobox-part=\"positioner\"]`,\n )\n if (!positioner) {\n return\n }\n positioner.style.setProperty(\n \"--scrollbar-width\",\n `${positioner.offsetWidth - positioner.clientWidth}px`,\n )\n })\n return () => cancelAnimationFrame(frame)\n }, [inputValue, open])\n\n const virtualizer = useVirtualizer({\n count: collection.items.length,\n enabled: open,\n estimateSize: () => (qdsContext.size === \"sm\" ? 32 : 40),\n getScrollElement: () =>\n localRef.current.closest(`[data-combobox-part=\"positioner\"]`) ||\n localRef.current,\n overscan: 5,\n // account for 2px border\n paddingEnd: 2,\n scrollPaddingEnd: 2,\n ...virtualOptions,\n })\n\n const mergedProps = mergeProps(\n qdsContext.getContentBindings(),\n {\n style: {\n height: `${useNoMemo(() => virtualizer.getTotalSize())}px`,\n } satisfies CSSProperties,\n },\n props,\n )\n\n const timerRef = useRef<ReturnType<typeof setTimeout>>(undefined)\n\n useEffect(() => {\n const handleScrollToIndexFn = (details: ScrollToIndexDetails) => {\n const scrollOptions: ScrollToOptions = {\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\n const virtualItems = useNoMemo(() => virtualizer.getVirtualItems())\n\n if (renderItem) {\n return (\n <ComboboxContent {...mergedProps} ref={mergedRef} data-virtual>\n {children}\n {virtualItems.map((virtualItem) => {\n const item = collection.items.at(virtualItem.index)\n const value = collection.getItemValue(item)\n\n return (\n <Fragment key={value}>\n {renderItem({\n \"data-virtual\": \"\",\n item,\n style: {\n \"--virtual-item-start\": `${virtualItem.start}px`,\n } as CSSProperties,\n })}\n </Fragment>\n )\n })}\n </ComboboxContent>\n )\n }\n\n return (\n <ComboboxContent {...mergedProps} ref={mergedRef} data-virtual>\n {children}\n {virtualItems.map((virtualItem) => {\n const item = collection.items.at(virtualItem.index)\n const label = collection.stringifyItem(item)\n const value = collection.getItemValue(item)\n\n return (\n <ComboboxItem\n key={value}\n data-virtual\n item={item}\n style={\n {\n \"--virtual-item-start\": `${virtualItem.start}px`,\n } as CSSProperties\n }\n >\n <ComboboxItemText>\n {highlightMatchingText ? (\n <HighlightText\n ignoreCase\n query={inputValue}\n text={label ?? \"\"}\n />\n ) : (\n label\n )}\n </ComboboxItemText>\n <ComboboxItemIndicator />\n </ComboboxItem>\n )\n })}\n </ComboboxContent>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {useOptionalContentId} from \"@qualcomm-ui/react-core/machine\"\nimport {Portal, type PortalProps} from \"@qualcomm-ui/react-core/portal\"\nimport {useControlledId} from \"@qualcomm-ui/react-core/state\"\nimport type {CollectionItem} from \"@qualcomm-ui/utils/collection\"\n\nimport {\n ComboboxClearTrigger,\n type ComboboxClearTriggerProps,\n} from \"./combobox-clear-trigger\"\nimport {ComboboxContent, type ComboboxContentProps} from \"./combobox-content\"\nimport {ComboboxControl, type ComboboxControlProps} from \"./combobox-control\"\nimport {ComboboxEmpty, type ComboboxEmptyProps} from \"./combobox-empty\"\nimport {\n ComboboxErrorIndicator,\n type ComboboxErrorIndicatorProps,\n} from \"./combobox-error-indicator\"\nimport {\n ComboboxErrorText,\n type ComboboxErrorTextProps,\n} from \"./combobox-error-text\"\nimport {ComboboxHint, type ComboboxHintProps} from \"./combobox-hint\"\nimport {ComboboxInput, type ComboboxInputProps} from \"./combobox-input\"\nimport {type ComboboxItemRenderProp, ComboboxItems} from \"./combobox-items\"\nimport {ComboboxLabel, type ComboboxLabelProps} from \"./combobox-label\"\nimport {\n ComboboxPositioner,\n type ComboboxPositionerProps,\n} from \"./combobox-positioner\"\nimport {ComboboxRoot, type ComboboxRootProps} from \"./combobox-root\"\nimport {ComboboxTrigger, type ComboboxTriggerProps} from \"./combobox-trigger\"\nimport {ComboboxVirtualContent} from \"./combobox-virtual-content\"\n\nexport interface ComboboxProps<\n T extends CollectionItem,\n> extends ComboboxRootProps<T> {\n /**\n * {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label aria-label}\n * attribute, forwarded to the input element.\n */\n \"aria-label\"?: string | undefined\n\n /**\n * {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-labelledby aria-labelledby}\n * attribute, forwarded to the input element. If you provide a {@link label},\n * omit this prop.\n */\n \"aria-labelledby\"?: string | undefined\n\n /**\n * Props applied to the clear trigger element. To prevent this element from\n * rendering, pass `{hidden: true}`\n *\n * @inheritDoc\n */\n clearTriggerProps?: ComboboxClearTriggerProps\n\n /**\n * Props applied to the content element.\n *\n * @inheritDoc\n */\n contentProps?: ComboboxContentProps\n\n /**\n * Props applied to the control element.\n *\n * @inheritDoc\n */\n controlProps?: ComboboxControlProps\n\n /**\n * Label to render when the list is empty.\n *\n * @default \"No results found\"\n */\n emptyMessage?: ReactNode\n\n /**\n * Props applied to the component that renders the empty message.\n */\n emptyProps?: ComboboxEmptyProps\n\n /**\n * Props applied to the error indicator element.\n *\n * @inheritDoc\n */\n errorIndicatorProps?: ComboboxErrorIndicatorProps\n\n /**\n * Optional error that describes the element when {@link invalid} is true.\n */\n errorText?: string\n\n /**\n * Props applied to the error text element.\n *\n * @inheritDoc\n */\n errorTextProps?: ComboboxErrorTextProps\n\n /**\n * Set to `true` to highlight option text matches during filtering.\n */\n highlightMatchingText?: boolean\n\n /**\n * Optional hint describing the element. This element is automatically\n * associated with the component's input element for accessibility.\n */\n hint?: ReactNode\n\n /**\n * Props applied to the label element.\n *\n * @inheritDoc\n */\n hintProps?: ComboboxHintProps\n\n /**\n * Props applied to the select element.\n *\n * @inheritDoc\n */\n inputProps?: ComboboxInputProps\n\n /**\n * Optional label describing the element. Recommended. This element is\n * automatically associated with the component's input element for\n * accessibility.\n */\n label?: ReactNode\n\n /**\n * Props applied to the label element.\n *\n * @inheritDoc\n */\n labelProps?: ComboboxLabelProps\n\n /**\n * Props applied to the portal element.\n *\n * @inheritDoc\n */\n portalProps?: PortalProps\n\n /**\n * Props applied to the positioner element.\n *\n * @inheritDoc\n */\n positionerProps?: ComboboxPositionerProps\n\n /**\n * Customize the rendering of the combobox list items.\n */\n renderItem?: ComboboxItemRenderProp<T>\n\n /**\n * Props applied to the trigger element.\n *\n * @inheritDoc\n */\n triggerProps?: ComboboxTriggerProps\n\n /**\n * When `true`, the list items will be virtually rendered. Useful for large lists.\n */\n virtual?: boolean\n}\n\nexport function Combobox<T extends CollectionItem = CollectionItem>({\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}: ComboboxProps<T>): ReactElement {\n const emptyContent =\n 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\n const inputProps = {\n ...inputPropsProp,\n }\n\n if (ariaLabel !== undefined) {\n inputProps[\"aria-label\"] = ariaLabel\n }\n if (ariaLabelledBy !== undefined) {\n inputProps[\"aria-labelledby\"] = ariaLabelledBy\n }\n\n const ids = {\n clearTrigger: useOptionalContentId(\n !clearTriggerProps?.hidden,\n clearTriggerProps,\n ),\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\n return (\n <ComboboxRoot {...props} ids={ids}>\n {labelContent ? (\n <ComboboxLabel {...labelProps} id={ids.label}>\n {labelContent}\n </ComboboxLabel>\n ) : null}\n <ComboboxControl {...controlProps} id={ids.control}>\n <ComboboxInput {...inputProps} id={ids.input} />\n <ComboboxClearTrigger {...clearTriggerProps} id={ids.clearTrigger} />\n <ComboboxErrorIndicator {...errorIndicatorProps} />\n <ComboboxTrigger {...triggerProps} id={ids.trigger} />\n </ComboboxControl>\n <Portal {...portalProps}>\n <ComboboxPositioner {...positionerProps} id={ids.positioner}>\n {virtual ? (\n <ComboboxVirtualContent\n {...contentProps}\n highlightMatchingText={highlightMatchingText}\n id={ids.content}\n renderItem={renderItem}\n >\n <ComboboxEmpty {...emptyProps}>{emptyContent}</ComboboxEmpty>\n </ComboboxVirtualContent>\n ) : (\n <ComboboxContent {...contentProps} id={ids.content}>\n <ComboboxEmpty {...emptyProps}>{emptyContent}</ComboboxEmpty>\n <ComboboxItems\n highlightMatchingText={highlightMatchingText}\n renderItem={renderItem}\n />\n </ComboboxContent>\n )}\n </ComboboxPositioner>\n </Portal>\n\n {errorTextContent ? (\n <ComboboxErrorText {...errorTextProps} id={ids.errorText}>\n {errorTextContent}\n </ComboboxErrorText>\n ) : null}\n\n {hintContent ? (\n <ComboboxHint {...hintProps} id={ids.hint}>\n {hintContent}\n </ComboboxHint>\n ) : null}\n </ComboboxRoot>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactNode} from \"react\"\n\nimport type {ComboboxApi} from \"@qualcomm-ui/core/combobox\"\nimport {useComboboxContext} from \"@qualcomm-ui/react-core/combobox\"\nimport {renderProp, type RenderProp} from \"@qualcomm-ui/react-core/system\"\n\nexport interface ComboboxContextProps {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children: RenderProp<ComboboxApi>\n}\n\nexport function ComboboxContext({children}: ComboboxContextProps): ReactNode {\n const context = useComboboxContext()\n return renderProp(children, context)\n}\n","import {Combobox as SimpleCombobox} from \"./combobox\"\nimport {\n ComboboxClearTrigger,\n type ComboboxClearTriggerProps,\n} from \"./combobox-clear-trigger\"\nimport {ComboboxContent, type ComboboxContentProps} from \"./combobox-content\"\nimport {ComboboxContext, type ComboboxContextProps} from \"./combobox-context\"\nimport {ComboboxControl, type ComboboxControlProps} from \"./combobox-control\"\nimport {ComboboxEmpty, type ComboboxEmptyProps} from \"./combobox-empty\"\nimport {\n ComboboxErrorIndicator,\n type ComboboxErrorIndicatorProps,\n} from \"./combobox-error-indicator\"\nimport {\n ComboboxErrorText,\n type ComboboxErrorTextProps,\n} from \"./combobox-error-text\"\nimport {ComboboxHint, type ComboboxHintProps} from \"./combobox-hint\"\nimport {ComboboxInput, type ComboboxInputProps} from \"./combobox-input\"\nimport {ComboboxItem, type ComboboxItemProps} from \"./combobox-item\"\nimport {\n ComboboxItemIndicator,\n type ComboboxItemIndicatorProps,\n} from \"./combobox-item-indicator\"\nimport {\n ComboboxItemText,\n type ComboboxItemTextProps,\n} from \"./combobox-item-text\"\nimport {ComboboxItems, type ComboboxItemsProps} from \"./combobox-items\"\nimport {ComboboxLabel, type ComboboxLabelProps} from \"./combobox-label\"\nimport {\n ComboboxPositioner,\n type ComboboxPositionerProps,\n} from \"./combobox-positioner\"\nimport {ComboboxRoot, type ComboboxRootProps} from \"./combobox-root\"\nimport {ComboboxTrigger, type ComboboxTriggerProps} from \"./combobox-trigger\"\nimport {\n ComboboxVirtualContent,\n type ComboboxVirtualContentProps,\n} from \"./combobox-virtual-content\"\n\nexport * from \"./qds-combobox-context\"\n\nexport type {\n ComboboxClearTriggerProps,\n ComboboxContentProps,\n ComboboxContextProps,\n ComboboxControlProps,\n ComboboxEmptyProps,\n ComboboxErrorIndicatorProps,\n ComboboxErrorTextProps,\n ComboboxHintProps,\n ComboboxInputProps,\n ComboboxItemIndicatorProps,\n ComboboxItemTextProps,\n ComboboxItemProps,\n ComboboxItemsProps,\n ComboboxLabelProps,\n ComboboxPositionerProps,\n ComboboxRootProps,\n ComboboxTriggerProps,\n ComboboxVirtualContentProps,\n}\n\ntype ComboboxComponent = typeof SimpleCombobox & {\n /**\n * Button that clears the input value. Renders a `<button>` element by default.\n */\n ClearTrigger: typeof ComboboxClearTrigger\n /**\n * Container for the combobox options. Renders a `<div>` element by default.\n */\n Content: typeof ComboboxContent\n Context: typeof ComboboxContext\n /**\n * Container for the input element and associated controls. Renders a `<div>`\n * element by default.\n */\n Control: typeof ComboboxControl\n /**\n * Message displayed when no options match the filter. Renders a `<div>` element by\n * default.\n */\n Empty: typeof ComboboxEmpty\n /**\n * Visual indicator displayed when the input is invalid. Renders a `<div>` element\n * by default.\n */\n ErrorIndicator: typeof ComboboxErrorIndicator\n /**\n * Error message displayed when the input is invalid. Renders a `<div>` element by\n * default.\n */\n ErrorText: typeof ComboboxErrorText\n /**\n * Helper text displayed below the input. Renders a `<div>` element by default.\n */\n Hint: typeof ComboboxHint\n /**\n * Text input element for filtering and selecting items. Renders an `<input>`\n * element by default.\n */\n Input: typeof ComboboxInput\n /**\n * Individual option within the combobox menu. Renders a `<div>` element by\n * default.\n */\n Item: typeof ComboboxItem\n /**\n * Visual indicator showing the selected state of an item. Renders a `<span>`\n * element by default.\n */\n ItemIndicator: typeof ComboboxItemIndicator\n /**\n * Shortcut for rendering a list of select items. Uses the {@link collection} to\n * determine the label and value for each item.\n */\n Items: typeof ComboboxItems\n /**\n * Text content of a combobox item. Renders a `<span>` element by default.\n */\n ItemText: typeof ComboboxItemText\n /**\n * Label text associated with the combobox. Renders a `<label>` element by default.\n */\n Label: typeof ComboboxLabel\n /**\n * Positions the combobox menu relative to the control. Renders a `<div>` element\n * by default.\n */\n Positioner: typeof ComboboxPositioner\n /**\n * Groups all parts of the combobox. Renders a `<div>` element by default.\n */\n Root: typeof ComboboxRoot\n /**\n * Icon that indicates the open/close state of the combobox's associated panel.\n * Renders a `<button>` element by default.\n */\n Trigger: typeof ComboboxTrigger\n /**\n * Virtual scrolling container for efficiently rendering large lists of combobox\n * options. Renders a `<div>` element by default.\n */\n VirtualContent: typeof ComboboxVirtualContent\n}\n\nexport const Combobox: ComboboxComponent = SimpleCombobox as ComboboxComponent\n\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\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,IAAA0C,EAAA1C,EAAA,IAAA2C,GAAAA,EAAA3C,EAAA,IA9Cf2C,EC3NJ,SAAOQ,gBAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAAyB,CAAAJ,YAAAE,EAC9BG,EAAgBT,GAAoB,CAAAU,EACA,OADAH,EAAA,KAAAH,GAAAG,EAAA,KAAAE,GAC7BC,EAAAT,EAAWG,EAAUK,EAAQ,CAAAF,EAAA,GAAAH,EAAAG,EAAA,GAAAE,EAAAF,EAAA,GAAAG,GAAAA,EAAAH,EAAA,GAA7BG,ECiIT,IAAaC,EAA8BC,WAE3CD,EAASuC,aAAerC,qBACxBF,EAASwC,QAAUpC,gBACnBJ,EAASyC,QAAUnC,gBACnBN,EAAS0C,QAAUlC,gBACnBR,EAAS2C,MAAQjC,cACjBV,EAAS4C,eAAiBhC,uBAC1BZ,EAAS6C,UAAY/B,kBACrBd,EAAS8C,KAAO9B,aAChBhB,EAAS+C,MAAQ7B,cACjBlB,EAASiD,cAAgB3B,sBACzBtB,EAASmD,SAAW3B,iBACpBxB,EAASgD,KAAO5B,aAChBpB,EAASkD,MAAQxB,cACjB1B,EAASoD,MAAQxB,cACjB5B,EAASqD,WAAavB,mBACtB9B,EAASsD,KAAOtB,aAChBhC,EAASuD,QAAUrB,gBACnBlC,EAASwD,eAAiBpB"}
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{c as _c}from"react/compiler-runtime";import{jsx}from"react/jsx-runtime";import{CoreDialog}from"@qualcomm-ui/react-core/dialog";import{mergeProps}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext}from"@qualcomm-ui/react-core/context";var[QdsDialogContextProvider,useQdsDialogContext]=createGuardedContext({hookName:"useQdsDialogContext",providerName:"<QdsDialogContextProvider>",strict:!0});function DialogBackdrop(props){let $=_c(3),qdsContext=useQdsDialogContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps(qdsContext.getBackdropBindings(),props);t0=jsx(CoreDialog.Backdrop,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c2}from"react/compiler-runtime";import{jsx as jsx2}from"react/jsx-runtime";import{CoreDialog as CoreDialog2}from"@qualcomm-ui/react-core/dialog";import{mergeProps as mergeProps2}from"@qualcomm-ui/utils/merge-props";function DialogBody(props){let $=_c2(3),qdsContext=useQdsDialogContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps2(qdsContext.getBodyBindings(),props);t0=jsx2(CoreDialog2.Body,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{jsx as jsx3}from"react/jsx-runtime";import{X}from"lucide-react";import{InlineIconButton}from"@qualcomm-ui/react/inline-icon-button";import{CoreDialog as CoreDialog3}from"@qualcomm-ui/react-core/dialog";import{mergeProps as mergeProps3}from"@qualcomm-ui/utils/merge-props";function DialogCloseButton(t0){let{icon,...props}=t0,qdsContext=useQdsDialogContext(),mergedProps=mergeProps3(qdsContext.getCloseButtonBindings(),props);return jsx3(CoreDialog3.CloseTrigger,{children:jsx3(InlineIconButton,{icon:icon||X,...mergedProps})})}import{jsx as jsx4}from"react/jsx-runtime";import{CoreDialog as CoreDialog4}from"@qualcomm-ui/react-core/dialog";function DialogCloseTrigger(props){return jsx4(CoreDialog4.CloseTrigger,{...props})}import{c as _c3}from"react/compiler-runtime";import{jsx as jsx5}from"react/jsx-runtime";import{CoreDialog as CoreDialog5}from"@qualcomm-ui/react-core/dialog";import{mergeProps as mergeProps4}from"@qualcomm-ui/utils/merge-props";function DialogContent(props){let $=_c3(3),qdsContext=useQdsDialogContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps4(qdsContext.getContentBindings(),props);t0=jsx5(CoreDialog5.Content,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c4}from"react/compiler-runtime";import{useDialogContext}from"@qualcomm-ui/react-core/dialog";import{renderProp}from"@qualcomm-ui/react-core/system";function DialogContext(t0){let $=_c4(3),{children}=t0,context=useDialogContext(),t1;return $[0]!==children||$[1]!==context?(t1=renderProp(children,context),$[0]=children,$[1]=context,$[2]=t1):t1=$[2],t1}import{jsx as jsx6}from"react/jsx-runtime";import{CoreDialog as CoreDialog6}from"@qualcomm-ui/react-core/dialog";function DialogDescription(props){return jsx6(CoreDialog6.Description,{...props})}import{jsx as jsx8,jsxs}from"react/jsx-runtime";import{Portal}from"@qualcomm-ui/react-core/portal";import{c as _c5}from"react/compiler-runtime";import{jsx as jsx7}from"react/jsx-runtime";import{CoreDialog as CoreDialog7}from"@qualcomm-ui/react-core/dialog";import{mergeProps as mergeProps5}from"@qualcomm-ui/utils/merge-props";function DialogPositioner(props){let $=_c5(3),qdsDialogContext=useQdsDialogContext(),t0;if($[0]!==props||$[1]!==qdsDialogContext){let mergedProps=mergeProps5(qdsDialogContext.getPositionerBindings(),props);t0=jsx7(CoreDialog7.Positioner,{...mergedProps}),$[0]=props,$[1]=qdsDialogContext,$[2]=t0}else t0=$[2];return t0}function DialogFloatingPortal({backdropProps,children,contentProps,positionerProps,...props}){return jsxs(Portal,{...props,children:[jsx8(DialogBackdrop,{...backdropProps}),jsx8(DialogPositioner,{...positionerProps,children:jsx8(DialogContent,{...contentProps,children})})]})}import{c as _c6}from"react/compiler-runtime";import{jsx as jsx9}from"react/jsx-runtime";import{CoreDialog as CoreDialog8}from"@qualcomm-ui/react-core/dialog";import{mergeProps as mergeProps6}from"@qualcomm-ui/utils/merge-props";function DialogFooter(props){let $=_c6(3),qdsContext=useQdsDialogContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps6(qdsContext.getFooterBindings(),props);t0=jsx9(CoreDialog8.Footer,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c7}from"react/compiler-runtime";import{jsx as jsx10}from"react/jsx-runtime";import{CoreDialog as CoreDialog9}from"@qualcomm-ui/react-core/dialog";import{mergeProps as mergeProps7}from"@qualcomm-ui/utils/merge-props";function DialogHeading(props){let $=_c7(3),qdsContext=useQdsDialogContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps7(qdsContext.getHeadingBindings(),props);t0=jsx10(CoreDialog9.Heading,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c8}from"react/compiler-runtime";import{jsx as jsx11}from"react/jsx-runtime";import{CircleAlert,CircleCheck,TriangleAlert}from"lucide-react";import{IconOrNode}from"@qualcomm-ui/react/icon";import{mergeProps as mergeProps8}from"@qualcomm-ui/utils/merge-props";function DialogIndicatorIcon(props){let $=_c8(3),qdsContext=useQdsDialogContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps8(qdsContext.getIndicatorIconBindings(),props);t0=jsx11(IconOrNode,{...mergedProps,icon:props.icon||getIconFromEmphasis(qdsContext.emphasis)}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}function getIconFromEmphasis(emphasis){switch(emphasis){case"neutral":return CircleAlert;case"info":return CircleAlert;case"success":return CircleCheck;case"warning":return TriangleAlert;case"danger":return CircleAlert}}import{c as _c9}from"react/compiler-runtime";import{jsx as jsx12}from"react/jsx-runtime";import"react";import{createQdsDialogApi}from"@qualcomm-ui/qds-core/dialog";import{CoreDialog as CoreDialog10}from"@qualcomm-ui/react-core/dialog";import{normalizeProps}from"@qualcomm-ui/react-core/machine";function DialogRoot(t0){let $=_c9(7),t1;if($[0]!==t0){let{emphasis,placement,scrollBehavior,size,...props}=t0,t2;$[2]!==emphasis||$[3]!==placement||$[4]!==scrollBehavior||$[5]!==size?(t2=createQdsDialogApi({emphasis,placement,scrollBehavior,size},normalizeProps),$[2]=emphasis,$[3]=placement,$[4]=scrollBehavior,$[5]=size,$[6]=t2):t2=$[6],t1=jsx12(QdsDialogContextProvider,{value:t2,children:jsx12(CoreDialog10.Root,{...props})}),$[0]=t0,$[1]=t1}else t1=$[1];return t1}import{jsx as jsx13}from"react/jsx-runtime";import{CoreDialog as CoreDialog11}from"@qualcomm-ui/react-core/dialog";function DialogTrigger(props){return jsx13(CoreDialog11.Trigger,{...props})}var Dialog={Backdrop:DialogBackdrop,Body:DialogBody,CloseButton:DialogCloseButton,CloseTrigger:DialogCloseTrigger,Content:DialogContent,Context:DialogContext,Description:DialogDescription,FloatingPortal:DialogFloatingPortal,Footer:DialogFooter,Heading:DialogHeading,IndicatorIcon:DialogIndicatorIcon,Positioner:DialogPositioner,Root:DialogRoot,Trigger:DialogTrigger};export{Dialog,QdsDialogContextProvider,useQdsDialogContext};
3
- //# sourceMappingURL=index.js.map
1
+ "use client;";import{c as e}from"react/compiler-runtime";import{mergeProps as t}from"@qualcomm-ui/utils/merge-props";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{renderProp as i}from"@qualcomm-ui/react-core/system";import{CircleAlert as a,CircleCheck as o,TriangleAlert as s,X as c}from"lucide-react";import{IconOrNode as l}from"@qualcomm-ui/react/icon";import"react";import{normalizeProps as u}from"@qualcomm-ui/react-core/machine";import{createGuardedContext as d}from"@qualcomm-ui/react-core/context";import{Portal as f}from"@qualcomm-ui/react-core/portal";import{InlineIconButton as p}from"@qualcomm-ui/react/inline-icon-button";import{CoreDialog as m,useDialogContext as h}from"@qualcomm-ui/react-core/dialog";import{createQdsDialogApi as g}from"@qualcomm-ui/qds-core/dialog";var[_,v]=d({hookName:`useQdsDialogContext`,providerName:`<QdsDialogContextProvider>`,strict:!0});function DialogBackdrop(r){let i=e(5),a=v(),o;i[0]!==r||i[1]!==a?(o=t(a.getBackdropBindings(),r),i[0]=r,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=n(m.Backdrop,{...s}),i[3]=s,i[4]=c),c}function DialogBody(r){let i=e(5),a=v(),o;i[0]!==r||i[1]!==a?(o=t(a.getBodyBindings(),r),i[0]=r,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=n(m.Body,{...s}),i[3]=s,i[4]=c),c}function DialogCloseButton(r){let i=e(3),{icon:a,...o}=r,s=t(v().getCloseButtonBindings(),o),l=a||c,u;return i[0]!==s||i[1]!==l?(u=n(m.CloseTrigger,{children:n(p,{icon:l,...s})}),i[0]=s,i[1]=l,i[2]=u):u=i[2],u}function DialogCloseTrigger(t){let r=e(2),i;return r[0]===t?i=r[1]:(i=n(m.CloseTrigger,{...t}),r[0]=t,r[1]=i),i}function DialogContent(r){let i=e(5),a=v(),o;i[0]!==r||i[1]!==a?(o=t(a.getContentBindings(),r),i[0]=r,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=n(m.Content,{...s}),i[3]=s,i[4]=c),c}function DialogContext(t){let n=e(3),{children:r}=t,a=h(),o;return n[0]!==r||n[1]!==a?(o=i(r,a),n[0]=r,n[1]=a,n[2]=o):o=n[2],o}function DialogDescription(t){let r=e(2),i;return r[0]===t?i=r[1]:(i=n(m.Description,{...t}),r[0]=t,r[1]=i),i}function DialogPositioner(r){let i=e(5),a=v(),o;i[0]!==r||i[1]!==a?(o=t(a.getPositionerBindings(),r),i[0]=r,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=n(m.Positioner,{...s}),i[3]=s,i[4]=c),c}function DialogFloatingPortal(t){let i=e(18),a,o,s,c,l;i[0]===t?(a=i[1],o=i[2],s=i[3],c=i[4],l=i[5]):({backdropProps:a,children:o,contentProps:s,positionerProps:c,...l}=t,i[0]=t,i[1]=a,i[2]=o,i[3]=s,i[4]=c,i[5]=l);let u;i[6]===a?u=i[7]:(u=n(DialogBackdrop,{...a}),i[6]=a,i[7]=u);let d;i[8]!==o||i[9]!==s?(d=n(DialogContent,{...s,children:o}),i[8]=o,i[9]=s,i[10]=d):d=i[10];let p;i[11]!==c||i[12]!==d?(p=n(DialogPositioner,{...c,children:d}),i[11]=c,i[12]=d,i[13]=p):p=i[13];let m;return i[14]!==l||i[15]!==u||i[16]!==p?(m=r(f,{...l,children:[u,p]}),i[14]=l,i[15]=u,i[16]=p,i[17]=m):m=i[17],m}function DialogFooter(r){let i=e(5),a=v(),o;i[0]!==r||i[1]!==a?(o=t(a.getFooterBindings(),r),i[0]=r,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=n(m.Footer,{...s}),i[3]=s,i[4]=c),c}function DialogHeading(r){let i=e(5),a=v(),o;i[0]!==r||i[1]!==a?(o=t(a.getHeadingBindings(),r),i[0]=r,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=n(m.Heading,{...s}),i[3]=s,i[4]=c),c}function DialogIndicatorIcon(r){let i=e(9),a=v(),o;i[0]!==r||i[1]!==a?(o=t(a.getIndicatorIconBindings(),r),i[0]=r,i[1]=a,i[2]=o):o=i[2];let s=o,c;i[3]!==r.icon||i[4]!==a.emphasis?(c=r.icon||getIconFromEmphasis(a.emphasis),i[3]=r.icon,i[4]=a.emphasis,i[5]=c):c=i[5];let u;return i[6]!==s||i[7]!==c?(u=n(l,{...s,icon:c}),i[6]=s,i[7]=c,i[8]=u):u=i[8],u}function getIconFromEmphasis(e){switch(e){case`neutral`:return a;case`info`:return a;case`success`:return o;case`warning`:return s;case`danger`:return a}}function DialogRoot(t){let r=e(16),i,a,o,s,c;r[0]===t?(i=r[1],a=r[2],o=r[3],s=r[4],c=r[5]):({emphasis:i,placement:a,scrollBehavior:s,size:c,...o}=t,r[0]=t,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=c);let l;r[6]!==i||r[7]!==a||r[8]!==s||r[9]!==c?(l=g({emphasis:i,placement:a,scrollBehavior:s,size:c},u),r[6]=i,r[7]=a,r[8]=s,r[9]=c,r[10]=l):l=r[10];let d=l,f;r[11]===o?f=r[12]:(f=n(m.Root,{...o}),r[11]=o,r[12]=f);let p;return r[13]!==d||r[14]!==f?(p=n(_,{value:d,children:f}),r[13]=d,r[14]=f,r[15]=p):p=r[15],p}function DialogTrigger(t){let r=e(2),i;return r[0]===t?i=r[1]:(i=n(m.Trigger,{...t}),r[0]=t,r[1]=i),i}var y={Backdrop:DialogBackdrop,Body:DialogBody,CloseButton:DialogCloseButton,CloseTrigger:DialogCloseTrigger,Content:DialogContent,Context:DialogContext,Description:DialogDescription,FloatingPortal:DialogFloatingPortal,Footer:DialogFooter,Heading:DialogHeading,IndicatorIcon:DialogIndicatorIcon,Positioner:DialogPositioner,Root:DialogRoot,Trigger:DialogTrigger};export{y as Dialog,_ as QdsDialogContextProvider,v as useQdsDialogContext};
2
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/dialog/dialog-backdrop.tsx", "../../src/dialog/qds-dialog-context.ts", "../../src/dialog/dialog-body.tsx", "../../src/dialog/dialog-close-button.tsx", "../../src/dialog/dialog-close-trigger.tsx", "../../src/dialog/dialog-content.tsx", "../../src/dialog/dialog-context.tsx", "../../src/dialog/dialog-description.tsx", "../../src/dialog/dialog-floating-portal.tsx", "../../src/dialog/dialog-positioner.tsx", "../../src/dialog/dialog-footer.tsx", "../../src/dialog/dialog-heading.tsx", "../../src/dialog/dialog-indicator-icon.tsx", "../../src/dialog/dialog-root.tsx", "../../src/dialog/dialog-trigger.tsx", "../../src/dialog/index.ts"],
4
- "sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreDialog } from \"@qualcomm-ui/react-core/dialog\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsDialogContext } from \"./qds-dialog-context\";\nexport function DialogBackdrop(props) {\n const $ = _c(3);\n const qdsContext = useQdsDialogContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getBackdropBindings(), props);\n t0 = jsx(CoreDialog.Backdrop, {\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 [QdsDialogContextProvider, useQdsDialogContext] = createGuardedContext({\n hookName: \"useQdsDialogContext\",\n providerName: \"<QdsDialogContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreDialog } from \"@qualcomm-ui/react-core/dialog\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsDialogContext } from \"./qds-dialog-context\";\nexport function DialogBody(props) {\n const $ = _c(3);\n const qdsContext = useQdsDialogContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getBodyBindings(), props);\n t0 = jsx(CoreDialog.Body, {\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 { X } from \"lucide-react\";\nimport { InlineIconButton } from \"@qualcomm-ui/react/inline-icon-button\";\nimport { CoreDialog } from \"@qualcomm-ui/react-core/dialog\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsDialogContext } from \"./qds-dialog-context\";\nexport function DialogCloseButton(t0) {\n const {\n icon,\n ...props\n } = t0;\n const qdsContext = useQdsDialogContext();\n const mergedProps = mergeProps(qdsContext.getCloseButtonBindings(), props);\n return jsx(CoreDialog.CloseTrigger, {\n children: jsx(InlineIconButton, {\n icon: icon || X,\n ...mergedProps\n })\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { CoreDialog } from \"@qualcomm-ui/react-core/dialog\";\nexport function DialogCloseTrigger(props) {\n return /* @__PURE__ */jsx(CoreDialog.CloseTrigger, {\n ...props\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreDialog } from \"@qualcomm-ui/react-core/dialog\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsDialogContext } from \"./qds-dialog-context\";\nexport function DialogContent(props) {\n const $ = _c(3);\n const qdsContext = useQdsDialogContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getContentBindings(), props);\n t0 = jsx(CoreDialog.Content, {\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 { useDialogContext } from \"@qualcomm-ui/react-core/dialog\";\nimport { renderProp } from \"@qualcomm-ui/react-core/system\";\nexport function DialogContext(t0) {\n const $ = _c(3);\n const {\n children\n } = t0;\n const context = useDialogContext();\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 { jsx } from \"react/jsx-runtime\";\nimport { CoreDialog } from \"@qualcomm-ui/react-core/dialog\";\nexport function DialogDescription(props) {\n return /* @__PURE__ */jsx(CoreDialog.Description, {\n ...props\n });\n}", "import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { Portal } from \"@qualcomm-ui/react-core/portal\";\nimport { DialogBackdrop } from \"./dialog-backdrop\";\nimport { DialogContent } from \"./dialog-content\";\nimport { DialogPositioner } from \"./dialog-positioner\";\nexport function DialogFloatingPortal({\n backdropProps,\n children,\n contentProps,\n positionerProps,\n ...props\n}) {\n return /* @__PURE__ */jsxs(Portal, {\n ...props,\n children: [/* @__PURE__ */jsx(DialogBackdrop, {\n ...backdropProps\n }), /* @__PURE__ */jsx(DialogPositioner, {\n ...positionerProps,\n children: /* @__PURE__ */jsx(DialogContent, {\n ...contentProps,\n children\n })\n })]\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreDialog } from \"@qualcomm-ui/react-core/dialog\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsDialogContext } from \"./qds-dialog-context\";\nexport function DialogPositioner(props) {\n const $ = _c(3);\n const qdsDialogContext = useQdsDialogContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsDialogContext) {\n const mergedProps = mergeProps(qdsDialogContext.getPositionerBindings(), props);\n t0 = jsx(CoreDialog.Positioner, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsDialogContext;\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 { CoreDialog } from \"@qualcomm-ui/react-core/dialog\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsDialogContext } from \"./qds-dialog-context\";\nexport function DialogFooter(props) {\n const $ = _c(3);\n const qdsContext = useQdsDialogContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getFooterBindings(), props);\n t0 = jsx(CoreDialog.Footer, {\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 { CoreDialog } from \"@qualcomm-ui/react-core/dialog\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsDialogContext } from \"./qds-dialog-context\";\nexport function DialogHeading(props) {\n const $ = _c(3);\n const qdsContext = useQdsDialogContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getHeadingBindings(), props);\n t0 = jsx(CoreDialog.Heading, {\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 { CircleAlert, CircleCheck, TriangleAlert } from \"lucide-react\";\nimport { IconOrNode } from \"@qualcomm-ui/react/icon\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsDialogContext } from \"./qds-dialog-context\";\nexport function DialogIndicatorIcon(props) {\n const $ = _c(3);\n const qdsContext = useQdsDialogContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getIndicatorIconBindings(), props);\n t0 = jsx(IconOrNode, {\n ...mergedProps,\n icon: props.icon || getIconFromEmphasis(qdsContext.emphasis)\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}\nfunction getIconFromEmphasis(emphasis) {\n switch (emphasis) {\n case \"neutral\":\n return CircleAlert;\n case \"info\":\n return CircleAlert;\n case \"success\":\n return CircleCheck;\n case \"warning\":\n return TriangleAlert;\n case \"danger\":\n return CircleAlert;\n }\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { createQdsDialogApi } from \"@qualcomm-ui/qds-core/dialog\";\nimport { CoreDialog } from \"@qualcomm-ui/react-core/dialog\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { QdsDialogContextProvider } from \"./qds-dialog-context\";\nexport function DialogRoot(t0) {\n const $ = _c(7);\n let t1;\n if ($[0] !== t0) {\n const {\n emphasis,\n placement,\n scrollBehavior,\n size,\n ...props\n } = t0;\n let t2;\n if ($[2] !== emphasis || $[3] !== placement || $[4] !== scrollBehavior || $[5] !== size) {\n t2 = createQdsDialogApi({\n emphasis,\n placement,\n scrollBehavior,\n size\n }, normalizeProps);\n $[2] = emphasis;\n $[3] = placement;\n $[4] = scrollBehavior;\n $[5] = size;\n $[6] = t2;\n } else {\n t2 = $[6];\n }\n const qdsDialogApi = t2;\n t1 = jsx(QdsDialogContextProvider, {\n value: qdsDialogApi,\n children: jsx(CoreDialog.Root, {\n ...props\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 { CoreDialog } from \"@qualcomm-ui/react-core/dialog\";\nexport function DialogTrigger(props) {\n return /* @__PURE__ */jsx(CoreDialog.Trigger, {\n ...props\n });\n}", "import { DialogBackdrop } from \"./dialog-backdrop\";\nimport { DialogBody } from \"./dialog-body\";\nimport { DialogCloseButton } from \"./dialog-close-button\";\nimport { DialogCloseTrigger } from \"./dialog-close-trigger\";\nimport { DialogContent } from \"./dialog-content\";\nimport { DialogContext } from \"./dialog-context\";\nimport { DialogDescription } from \"./dialog-description\";\nimport { DialogFloatingPortal } from \"./dialog-floating-portal\";\nimport { DialogFooter } from \"./dialog-footer\";\nimport { DialogHeading } from \"./dialog-heading\";\nimport { DialogIndicatorIcon } from \"./dialog-indicator-icon\";\nimport { DialogPositioner } from \"./dialog-positioner\";\nimport { DialogRoot } from \"./dialog-root\";\nimport { DialogTrigger } from \"./dialog-trigger\";\nexport * from \"./qds-dialog-context\";\nexport const Dialog = {\n Backdrop: DialogBackdrop,\n Body: DialogBody,\n CloseButton: DialogCloseButton,\n CloseTrigger: DialogCloseTrigger,\n Content: DialogContent,\n Context: DialogContext,\n Description: DialogDescription,\n FloatingPortal: DialogFloatingPortal,\n Footer: DialogFooter,\n Heading: DialogHeading,\n IndicatorIcon: DialogIndicatorIcon,\n Positioner: DialogPositioner,\n Root: DialogRoot,\n Trigger: DialogTrigger\n};"],
5
- "mappings": ";AAAA,OAAS,KAAK,OAAU,yBACxB,OAAS,QAAW,oBACpB,OAAS,eAAkB,iCAC3B,OAAS,eAAkB,iCCH3B,OAAS,yBAA4B,kCAC9B,GAAM,CAAC,yBAA0B,mBAAmB,EAAI,qBAAqB,CAClF,SAAU,sBACV,aAAc,6BACd,OAAQ,EACV,CAAC,EDAM,SAAS,eAAe,MAAO,CACpC,IAAM,EAAI,GAAG,CAAC,EACR,WAAa,oBAAoB,EACnC,GACJ,GAAI,EAAE,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,GAAI,EAAE,CAAC,IAAM,GAAI,CACf,GAAM,CACJ,SACA,UACA,eACA,KACA,GAAG,KACL,EAAI,GACA,GACA,EAAE,CAAC,IAAM,UAAY,EAAE,CAAC,IAAM,WAAa,EAAE,CAAC,IAAM,gBAAkB,EAAE,CAAC,IAAM,MACjF,GAAK,mBAAmB,CACtB,SACA,UACA,eACA,IACF,EAAG,cAAc,EACjB,EAAE,CAAC,EAAI,SACP,EAAE,CAAC,EAAI,UACP,EAAE,CAAC,EAAI,eACP,EAAE,CAAC,EAAI,KACP,EAAE,CAAC,EAAI,IAEP,GAAK,EAAE,CAAC,EAGV,GAAKC,MAAI,yBAA0B,CACjC,MAFmB,GAGnB,SAAUA,MAAIC,aAAW,KAAM,CAC7B,GAAG,KACL,CAAC,CACH,CAAC,EACD,EAAE,CAAC,EAAI,GACP,EAAE,CAAC,EAAI,EACT,MACE,GAAK,EAAE,CAAC,EAEV,OAAO,EACT,CC/CA,OAAS,OAAAC,UAAW,oBACpB,OAAS,cAAAC,iBAAkB,iCACpB,SAAS,cAAc,MAAO,CACnC,OAAsBD,MAAIC,aAAW,QAAS,CAC5C,GAAG,KACL,CAAC,CACH,CCSO,IAAM,OAAS,CACpB,SAAU,eACV,KAAM,WACN,YAAa,kBACb,aAAc,mBACd,QAAS,cACT,QAAS,cACT,YAAa,kBACb,eAAgB,qBAChB,OAAQ,aACR,QAAS,cACT,cAAe,oBACf,WAAY,iBACZ,KAAM,WACN,QAAS,aACX",
6
- "names": ["_c", "jsx", "CoreDialog", "mergeProps", "_c", "mergeProps", "jsx", "CoreDialog", "jsx", "CoreDialog", "mergeProps", "mergeProps", "jsx", "CoreDialog", "jsx", "CoreDialog", "_c", "jsx", "CoreDialog", "mergeProps", "_c", "mergeProps", "jsx", "CoreDialog", "_c", "jsx", "CoreDialog", "jsx", "_c", "jsx", "CoreDialog", "mergeProps", "_c", "mergeProps", "jsx", "CoreDialog", "jsx", "_c", "jsx", "CoreDialog", "mergeProps", "_c", "mergeProps", "jsx", "CoreDialog", "_c", "jsx", "CoreDialog", "mergeProps", "_c", "mergeProps", "jsx", "CoreDialog", "_c", "jsx", "mergeProps", "_c", "mergeProps", "jsx", "_c", "jsx", "CoreDialog", "_c", "jsx", "CoreDialog", "jsx", "CoreDialog"]
7
- }
1
+ {"version":3,"file":"index.js","names":["QdsDialogApi","createGuardedContext","QdsDialogContextProvider","useQdsDialogContext","hookName","providerName","strict","ReactNode","CoreDialog","CoreDialogBackdropProps","mergeProps","useQdsDialogContext","DialogBackdropProps","DialogBackdrop","props","$","_c","qdsContext","t0","getBackdropBindings","mergedProps","t1","ReactElement","CoreDialog","CoreDialogBodyProps","mergeProps","useQdsDialogContext","DialogBodyProps","DialogBody","props","$","_c","qdsContext","t0","getBodyBindings","mergedProps","t1","ReactElement","LucideIcon","X","InlineIconButton","CoreDialog","ElementRenderProp","IdProp","mergeProps","useQdsDialogContext","DialogCloseButtonProps","icon","DialogCloseButton","t0","$","_c","props","qdsContext","mergedProps","getCloseButtonBindings","t1","t2","ReactElement","CoreDialog","CoreDialogCloseTriggerProps","DialogCloseTriggerProps","DialogCloseTrigger","props","$","_c","t0","ReactNode","CoreDialog","CoreDialogContentProps","mergeProps","useQdsDialogContext","DialogContentProps","DialogContent","props","$","_c","qdsContext","t0","getContentBindings","mergedProps","t1","ReactNode","DialogApi","useDialogContext","RenderProp","renderProp","DialogContextProps","children","DialogContext","t0","$","_c","context","t1","ReactElement","CoreDialog","CoreDialogDescriptionProps","DialogDescriptionProps","DialogDescription","props","$","_c","t0","ReactNode","CoreDialog","CoreDialogPositionerProps","mergeProps","useQdsDialogContext","DialogPositionerProps","DialogPositioner","props","$","_c","qdsDialogContext","t0","getPositionerBindings","mergedProps","t1","ReactElement","ReactNode","Portal","PortalProps","DialogBackdrop","DialogBackdropProps","DialogContent","DialogContentProps","DialogPositioner","DialogPositionerProps","DialogFloatingPortalProps","backdropProps","children","contentProps","positionerProps","DialogFloatingPortal","t0","$","_c","props","t1","t2","t3","t4","ReactElement","CoreDialog","CoreDialogFooterProps","mergeProps","useQdsDialogContext","DialogFooterProps","DialogFooter","props","$","_c","qdsContext","t0","getFooterBindings","mergedProps","t1","ReactElement","CoreDialog","CoreDialogHeadingProps","mergeProps","useQdsDialogContext","DialogHeadingProps","DialogHeading","props","$","_c","qdsContext","t0","getHeadingBindings","mergedProps","t1","ReactElement","CircleAlert","CircleCheck","TriangleAlert","QdsDialogEmphasis","IconOrNode","LucideIconOrElement","ElementRenderProp","mergeProps","useQdsDialogContext","DialogIndicatorIconProps","icon","DialogIndicatorIcon","props","$","_c","qdsContext","t0","getIndicatorIconBindings","mergedProps","t1","emphasis","getIconFromEmphasis","t2","ReactElement","ReactNode","useMemo","createQdsDialogApi","QdsDialogApiProps","CoreDialog","CoreDialogRootProps","normalizeProps","QdsDialogContextProvider","DialogRootProps","children","DialogRoot","t0","$","_c","emphasis","placement","props","scrollBehavior","size","t1","qdsDialogApi","t2","t3","ReactElement","CoreDialog","CoreDialogTriggerProps","DialogTriggerProps","DialogTrigger","props","$","_c","t0","DialogBackdrop","DialogBackdropProps","DialogBody","DialogBodyProps","DialogCloseButton","DialogCloseButtonProps","DialogCloseTrigger","DialogCloseTriggerProps","DialogContent","DialogContentProps","DialogContext","DialogContextProps","DialogDescription","DialogDescriptionProps","DialogFloatingPortal","DialogFloatingPortalProps","DialogFooter","DialogFooterProps","DialogHeading","DialogHeadingProps","DialogIndicatorIcon","DialogIndicatorIconProps","DialogPositioner","DialogPositionerProps","DialogRoot","DialogRootProps","DialogTrigger","DialogTriggerProps","DialogComponent","Backdrop","Body","CloseButton","CloseTrigger","Content","Context","Description","FloatingPortal","Footer","Heading","IndicatorIcon","Positioner","Root","Trigger","Dialog"],"sources":["../../src/dialog/qds-dialog-context.ts","../../src/dialog/dialog-backdrop.tsx","../../src/dialog/dialog-body.tsx","../../src/dialog/dialog-close-button.tsx","../../src/dialog/dialog-close-trigger.tsx","../../src/dialog/dialog-content.tsx","../../src/dialog/dialog-context.tsx","../../src/dialog/dialog-description.tsx","../../src/dialog/dialog-positioner.tsx","../../src/dialog/dialog-floating-portal.tsx","../../src/dialog/dialog-footer.tsx","../../src/dialog/dialog-heading.tsx","../../src/dialog/dialog-indicator-icon.tsx","../../src/dialog/dialog-root.tsx","../../src/dialog/dialog-trigger.tsx","../../src/dialog/index.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {QdsDialogApi} from \"@qualcomm-ui/qds-core/dialog\"\nimport {createGuardedContext} from \"@qualcomm-ui/react-core/context\"\n\nexport const [QdsDialogContextProvider, useQdsDialogContext] =\n createGuardedContext<QdsDialogApi>({\n hookName: \"useQdsDialogContext\",\n providerName: \"<QdsDialogContextProvider>\",\n strict: true,\n })\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactNode} from \"react\"\n\nimport {\n CoreDialog,\n type CoreDialogBackdropProps,\n} from \"@qualcomm-ui/react-core/dialog\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsDialogContext} from \"./qds-dialog-context\"\n\nexport interface DialogBackdropProps extends CoreDialogBackdropProps {}\n\n/**\n * An overlay displayed beneath the dialog to prevent interaction with the rest of\n * the page. Renders a `<div>` element by default.\n */\nexport function DialogBackdrop(props: DialogBackdropProps): ReactNode {\n const qdsContext = useQdsDialogContext()\n const mergedProps = mergeProps(qdsContext.getBackdropBindings(), props)\n\n return <CoreDialog.Backdrop {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreDialog,\n type CoreDialogBodyProps,\n} from \"@qualcomm-ui/react-core/dialog\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsDialogContext} from \"./qds-dialog-context\"\n\nexport interface DialogBodyProps extends CoreDialogBodyProps {}\n\n/**\n * The main content of the dialog. Container for the heading, description,\n * indicator, and primary content of the dialog. Renders a `<div>` element by\n * default.\n */\nexport function DialogBody(props: DialogBodyProps): ReactElement {\n const qdsContext = useQdsDialogContext()\n const mergedProps = mergeProps(qdsContext.getBodyBindings(), props)\n\n return <CoreDialog.Body {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {type LucideIcon, X} from \"lucide-react\"\n\nimport {InlineIconButton} from \"@qualcomm-ui/react/inline-icon-button\"\nimport {CoreDialog} from \"@qualcomm-ui/react-core/dialog\"\nimport type {ElementRenderProp, IdProp} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsDialogContext} from \"./qds-dialog-context\"\n\nexport interface DialogCloseButtonProps\n extends IdProp, ElementRenderProp<\"button\"> {\n /**\n * @default X\n */\n icon?: LucideIcon\n}\n\n/**\n * A button that closes the dialog. Renders a `<button>` element by default.\n */\nexport function DialogCloseButton({\n icon,\n ...props\n}: DialogCloseButtonProps): ReactElement {\n const qdsContext = useQdsDialogContext()\n const mergedProps = mergeProps(qdsContext.getCloseButtonBindings(), props)\n\n return (\n <CoreDialog.CloseTrigger>\n <InlineIconButton icon={icon || X} {...mergedProps} />\n </CoreDialog.CloseTrigger>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreDialog,\n type CoreDialogCloseTriggerProps,\n} from \"@qualcomm-ui/react-core/dialog\"\n\nexport interface DialogCloseTriggerProps extends CoreDialogCloseTriggerProps {}\n\n/**\n * A button that closes the dialog. Doesn't render anything by itself. Uses a\n * render prop to spread its props onto the child element.\n *\n * @example\n * ```tsx\n * <Dialog.CloseTrigger>\n * <button>Close Dialog</button>\n * </Dialog.CloseTrigger>\n * ```\n */\nexport function DialogCloseTrigger(\n props: DialogCloseTriggerProps,\n): ReactElement {\n return <CoreDialog.CloseTrigger {...props} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactNode} from \"react\"\n\nimport {\n CoreDialog,\n type CoreDialogContentProps,\n} from \"@qualcomm-ui/react-core/dialog\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsDialogContext} from \"./qds-dialog-context\"\n\nexport interface DialogContentProps extends CoreDialogContentProps {}\n\n/**\n * A container for the dialog contents. Renders a `<section>` element by default.\n *\n * @example\n * ```tsx\n * <Dialog.Root>\n * <Dialog.Positioner>\n * <Dialog.Content></Dialog.Content>\n * </Dialog.Positioner>\n * </Dialog.Root>\n * ```\n */\nexport function DialogContent(props: DialogContentProps): ReactNode {\n const qdsContext = useQdsDialogContext()\n const mergedProps = mergeProps(qdsContext.getContentBindings(), props)\n\n return <CoreDialog.Content {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactNode} from \"react\"\n\nimport type {DialogApi} from \"@qualcomm-ui/core/dialog\"\nimport {useDialogContext} from \"@qualcomm-ui/react-core/dialog\"\nimport {type RenderProp, renderProp} from \"@qualcomm-ui/react-core/system\"\n\nexport interface DialogContextProps {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children: RenderProp<DialogApi>\n}\n\nexport function DialogContext({children}: DialogContextProps): ReactNode {\n const context = useDialogContext()\n return renderProp(children, context)\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreDialog,\n type CoreDialogDescriptionProps,\n} from \"@qualcomm-ui/react-core/dialog\"\n\nexport interface DialogDescriptionProps extends CoreDialogDescriptionProps {}\n\n/**\n * A description with additional information about the dialog. Renders a `<div>`\n * element by default.\n */\nexport function DialogDescription(props: DialogDescriptionProps): ReactElement {\n return <CoreDialog.Description {...props} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactNode} from \"react\"\n\nimport {\n CoreDialog,\n type CoreDialogPositionerProps,\n} from \"@qualcomm-ui/react-core/dialog\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsDialogContext} from \"./qds-dialog-context\"\n\nexport interface DialogPositionerProps extends CoreDialogPositionerProps {}\n\n/**\n * A container that positions the dialog on the screen. Renders a `<div>` element by\n * default.\n */\nexport function DialogPositioner(props: DialogPositionerProps): ReactNode {\n const qdsDialogContext = useQdsDialogContext()\n const mergedProps = mergeProps(\n qdsDialogContext.getPositionerBindings(),\n props,\n )\n\n return <CoreDialog.Positioner {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {Portal, type PortalProps} from \"@qualcomm-ui/react-core/portal\"\n\nimport {DialogBackdrop, type DialogBackdropProps} from \"./dialog-backdrop\"\nimport {DialogContent, type DialogContentProps} from \"./dialog-content\"\nimport {DialogPositioner, type DialogPositionerProps} from \"./dialog-positioner\"\n\nexport interface DialogFloatingPortalProps extends PortalProps {\n /**\n * Props applied to the backdrop element.\n *\n * @inheritDoc\n */\n backdropProps?: DialogBackdropProps\n\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children?: ReactNode\n\n /**\n * Props applied to the content element.\n *\n * @inheritDoc\n */\n contentProps?: DialogContentProps\n\n /**\n * Props applied to the positioner element.\n *\n * @inheritDoc\n */\n positionerProps?: DialogPositionerProps\n}\n\n/**\n * A helper component that combines the portal, positioner, and content\n * components. This shortcut is equivalent to:\n * @example\n * ```tsx\n * <Portal {...props}>\n * <Dialog.Backdrop {...backdropProps} />\n * <Dialog.Positioner {...positionerProps}>\n * <Dialog.Content {...contentProps}>{children}</Dialog.Content>\n * </Dialog.Positioner>\n * </Portal>\n * ```\n */\nexport function DialogFloatingPortal({\n backdropProps,\n children,\n contentProps,\n positionerProps,\n ...props\n}: DialogFloatingPortalProps): ReactElement {\n return (\n <Portal {...props}>\n <DialogBackdrop {...backdropProps} />\n <DialogPositioner {...positionerProps}>\n <DialogContent {...contentProps}>{children}</DialogContent>\n </DialogPositioner>\n </Portal>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreDialog,\n type CoreDialogFooterProps,\n} from \"@qualcomm-ui/react-core/dialog\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsDialogContext} from \"./qds-dialog-context\"\n\nexport interface DialogFooterProps extends CoreDialogFooterProps {}\n\n/**\n * Content that appears at the bottom of the dialog, typically reserved for actions.\n * Renders a `<div>` element by default.\n */\nexport function DialogFooter(props: DialogFooterProps): ReactElement {\n const qdsContext = useQdsDialogContext()\n const mergedProps = mergeProps(qdsContext.getFooterBindings(), props)\n\n return <CoreDialog.Footer {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreDialog,\n type CoreDialogHeadingProps,\n} from \"@qualcomm-ui/react-core/dialog\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsDialogContext} from \"./qds-dialog-context\"\n\nexport interface DialogHeadingProps extends CoreDialogHeadingProps {}\n\n/**\n * A heading that labels the dialog. Renders an `<h2>` element by default.\n *\n * @example\n * ```tsx\n * <Dialog.Content>\n * <Dialog.Body>\n * <Dialog.Heading>Title...</Dialog.Heading>\n * // ... other\n * </Dialog.Body>\n * </Dialog.Content>\n * ```\n */\nexport function DialogHeading(props: DialogHeadingProps): ReactElement {\n const qdsContext = useQdsDialogContext()\n const mergedProps = mergeProps(qdsContext.getHeadingBindings(), props)\n\n return <CoreDialog.Heading {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {CircleAlert, CircleCheck, TriangleAlert} from \"lucide-react\"\n\nimport type {QdsDialogEmphasis} from \"@qualcomm-ui/qds-core/dialog\"\nimport {IconOrNode} from \"@qualcomm-ui/react/icon\"\nimport type {LucideIconOrElement} from \"@qualcomm-ui/react-core/lucide\"\nimport type {ElementRenderProp} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsDialogContext} from \"./qds-dialog-context\"\n\nexport interface DialogIndicatorIconProps extends ElementRenderProp<\"span\"> {\n /**\n * Lucide-react icon or React Element. If this prop is omitted, a fallback icon\n * will be rendered based on the {@link emphasis} prop.\n */\n icon?: LucideIconOrElement\n}\n\n/**\n * An icon that indicates the dialog's status. Renders a `<span>` element by default.\n */\nexport function DialogIndicatorIcon(\n props: DialogIndicatorIconProps,\n): ReactElement {\n const qdsContext = useQdsDialogContext()\n\n const mergedProps = mergeProps(qdsContext.getIndicatorIconBindings(), props)\n\n return (\n <IconOrNode\n {...mergedProps}\n icon={props.icon || getIconFromEmphasis(qdsContext.emphasis)}\n />\n )\n}\n\nfunction getIconFromEmphasis(emphasis: QdsDialogEmphasis) {\n switch (emphasis) {\n case \"neutral\":\n return CircleAlert\n case \"info\":\n return CircleAlert\n case \"success\":\n return CircleCheck\n case \"warning\":\n return TriangleAlert\n case \"danger\":\n return CircleAlert\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {type ReactElement, type ReactNode, useMemo} from \"react\"\n\nimport {\n createQdsDialogApi,\n type QdsDialogApiProps,\n} from \"@qualcomm-ui/qds-core/dialog\"\nimport {\n CoreDialog,\n type CoreDialogRootProps,\n} from \"@qualcomm-ui/react-core/dialog\"\nimport {normalizeProps} from \"@qualcomm-ui/react-core/machine\"\n\nimport {QdsDialogContextProvider} from \"./qds-dialog-context\"\n\nexport interface DialogRootProps\n extends CoreDialogRootProps, QdsDialogApiProps {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children: ReactNode\n}\n\n/**\n * Groups all parts of the dialog. Doesn't render its own HTML element.\n */\nexport function DialogRoot({\n emphasis,\n placement,\n scrollBehavior,\n size,\n ...props\n}: DialogRootProps): ReactElement {\n const qdsDialogApi = useMemo(\n () =>\n createQdsDialogApi(\n {emphasis, placement, scrollBehavior, size},\n normalizeProps,\n ),\n [emphasis, placement, scrollBehavior, size],\n )\n return (\n <QdsDialogContextProvider value={qdsDialogApi}>\n <CoreDialog.Root {...props} />\n </QdsDialogContextProvider>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreDialog,\n type CoreDialogTriggerProps,\n} from \"@qualcomm-ui/react-core/dialog\"\n\nexport interface DialogTriggerProps extends CoreDialogTriggerProps {}\n\n/**\n * Enhances a child element to open the dialog when clicked. Requires a single child\n * element.\n *\n * @example\n * ```tsx\n * <Dialog.Trigger>\n * <button>Open Dialog</button>\n * </Dialog.Trigger>\n * ```\n */\nexport function DialogTrigger(props: DialogTriggerProps): ReactElement {\n return <CoreDialog.Trigger {...props} />\n}\n","import {DialogBackdrop, type DialogBackdropProps} from \"./dialog-backdrop\"\nimport {DialogBody, type DialogBodyProps} from \"./dialog-body\"\nimport {\n DialogCloseButton,\n type DialogCloseButtonProps,\n} from \"./dialog-close-button\"\nimport {\n DialogCloseTrigger,\n type DialogCloseTriggerProps,\n} from \"./dialog-close-trigger\"\nimport {DialogContent, type DialogContentProps} from \"./dialog-content\"\nimport {DialogContext, type DialogContextProps} from \"./dialog-context\"\nimport {\n DialogDescription,\n type DialogDescriptionProps,\n} from \"./dialog-description\"\nimport {\n DialogFloatingPortal,\n type DialogFloatingPortalProps,\n} from \"./dialog-floating-portal\"\nimport {DialogFooter, type DialogFooterProps} from \"./dialog-footer\"\nimport {DialogHeading, type DialogHeadingProps} from \"./dialog-heading\"\nimport {\n DialogIndicatorIcon,\n type DialogIndicatorIconProps,\n} from \"./dialog-indicator-icon\"\nimport {DialogPositioner, type DialogPositionerProps} from \"./dialog-positioner\"\nimport {DialogRoot, type DialogRootProps} from \"./dialog-root\"\nimport {DialogTrigger, type DialogTriggerProps} from \"./dialog-trigger\"\n\nexport * from \"./qds-dialog-context\"\n\nexport type {\n DialogBackdropProps,\n DialogBodyProps,\n DialogCloseButtonProps,\n DialogCloseTriggerProps,\n DialogContentProps,\n DialogContextProps,\n DialogDescriptionProps,\n DialogFloatingPortalProps,\n DialogFooterProps,\n DialogHeadingProps,\n DialogIndicatorIconProps,\n DialogPositionerProps,\n DialogRootProps,\n DialogTriggerProps,\n}\n\ntype DialogComponent = {\n /**\n * An overlay displayed beneath the dialog to prevent interaction with the rest of\n * the page. Renders a `<div>` element by default.\n */\n Backdrop: typeof DialogBackdrop\n /**\n * The main content of the dialog. Container for the heading, description,\n * indicator, and primary content of the dialog. Renders a `<div>` element by\n * default.\n */\n Body: typeof DialogBody\n /**\n * A button that closes the dialog. Renders a `<button>` element by default.\n */\n CloseButton: typeof DialogCloseButton\n /**\n * A button that closes the dialog. Doesn't render anything by itself. Uses a\n * render prop to spread its props onto the child element.\n *\n * @example\n * ```tsx\n * <Dialog.CloseTrigger>\n * <button>Close Dialog</button>\n * </Dialog.CloseTrigger>\n * ```\n */\n CloseTrigger: typeof DialogCloseTrigger\n /**\n * A container for the dialog contents. Renders a `<section>` element by default.\n *\n * @example\n * ```tsx\n * <Dialog.Root>\n * <Dialog.Positioner>\n * <Dialog.Content></Dialog.Content>\n * </Dialog.Positioner>\n * </Dialog.Root>\n * ```\n */\n Content: typeof DialogContent\n Context: typeof DialogContext\n /**\n * A description with additional information about the dialog. Renders a `<div>`\n * element by default.\n */\n Description: typeof DialogDescription\n /**\n * A helper component that combines the floating element positioner and content\n * wrappers. This shortcut is equivalent to:\n * @example\n * ```tsx\n * <Portal {...props}>\n * <DialogBackdrop {...backdropProps} />\n * <DialogPositioner {...positionerProps}>\n * <DialogContent {...contentProps}>{children}</DialogContent>\n * </DialogPositioner>\n * </Portal>\n * ```\n */\n FloatingPortal: typeof DialogFloatingPortal\n /**\n * Content that appears at the bottom of the dialog, typically reserved for\n * actions. Renders a `<div>` element by default.\n */\n Footer: typeof DialogFooter\n /**\n * A heading that labels the dialog. Renders an `<h2>` element by default.\n *\n * @example\n * ```tsx\n * <Dialog.Content>\n * <Dialog.Body>\n * <Dialog.Heading>Title...</Dialog.Heading>\n * // ... other\n * </Dialog.Body>\n * </Dialog.Content>\n * ```\n */\n Heading: typeof DialogHeading\n /**\n * An icon that indicates the dialog's status. Renders a `<span>` element by\n * default.\n */\n IndicatorIcon: typeof DialogIndicatorIcon\n /**\n * A container that positions the dialog on the screen. Renders a `<div>` element\n * by default.\n */\n Positioner: typeof DialogPositioner\n /**\n * Groups all parts of the dialog. Doesn't render its own HTML element.\n */\n Root: typeof DialogRoot\n /**\n * Enhances a child element to open the dialog when clicked. Requires a single\n * child element.\n *\n * @example\n * ```tsx\n * <Dialog.Trigger>\n * <button>Open Dialog</button>\n * </Dialog.Trigger>\n * ```\n */\n Trigger: typeof DialogTrigger\n}\n\nexport const Dialog: DialogComponent = {\n Backdrop: DialogBackdrop,\n Body: DialogBody,\n CloseButton: DialogCloseButton,\n CloseTrigger: DialogCloseTrigger,\n Content: DialogContent,\n Context: DialogContext,\n Description: DialogDescription,\n FloatingPortal: DialogFloatingPortal,\n Footer: DialogFooter,\n Heading: DialogHeading,\n IndicatorIcon: DialogIndicatorIcon,\n Positioner: DialogPositioner,\n Root: DialogRoot,\n Trigger: DialogTrigger,\n}\n"],"mappings":"yxBAMA,GAAa,CAACE,EAA0BC,GACtCF,EAAmC,CACjCG,SAAU,sBACVC,aAAc,6BACdC,OAAQ,GACT,CAAC,CCQJ,SAAOO,eAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CACLC,EAAmBN,GAAqB,CAAAO,EAAAH,EAAA,KAAAD,GAAAC,EAAA,KAAAE,GACpBC,EAAAR,EAAWO,EAAUE,qBAAsB,CAAEL,EAAM,CAAAC,EAAA,GAAAD,EAAAC,EAAA,GAAAE,EAAAF,EAAA,GAAAG,GAAAA,EAAAH,EAAA,GAAvE,IAAAK,EAAoBF,EAAmDG,EAExB,OAFwBN,EAAA,KAAAK,EAExBC,EAAAN,EAAA,IAAxCM,EAAA,EAAA,EAAA,SAAA,CAAA,GAAyBD,EAAe,CAAA,CAAAL,EAAA,GAAAK,EAAAL,EAAA,GAAAM,GAAxCA,ECHT,SAAOO,WAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CACLC,EAAmBN,GAAqB,CAAAO,EAAAH,EAAA,KAAAD,GAAAC,EAAA,KAAAE,GACpBC,EAAAR,EAAWO,EAAUE,iBAAkB,CAAEL,EAAM,CAAAC,EAAA,GAAAD,EAAAC,EAAA,GAAAE,EAAAF,EAAA,GAAAG,GAAAA,EAAAH,EAAA,GAAnE,IAAAK,EAAoBF,EAA+CG,EAExB,OAFwBN,EAAA,KAAAK,EAExBC,EAAAN,EAAA,IAApCM,EAAA,EAAA,EAAA,KAAA,CAAA,GAAqBD,EAAe,CAAA,CAAAL,EAAA,GAAAK,EAAAL,EAAA,GAAAM,GAApC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F,EAAA,IAAjCE,EAAA,EAAA,EAAA,QAAA,CAAA,GAAwBH,EAAS,CAAA,CAAAC,EAAA,GAAAD,EAAAC,EAAA,GAAAE,GAAjCA,ECqIT,IAAa4C,EAA0B,CACrCd,SAAU7B,eACV8B,KAAM5B,WACN6B,YAAa3B,kBACb4B,aAAc1B,mBACd2B,QAASzB,cACT0B,QAASxB,cACTyB,YAAavB,kBACbwB,eAAgBtB,qBAChBuB,OAAQrB,aACRsB,QAASpB,cACTqB,cAAenB,oBACfoB,WAAYlB,iBACZmB,KAAMjB,WACNkB,QAAShB,cACV"}
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{jsx}from"react/jsx-runtime";import{createQdsDividerApi,dividerClasses}from"@qualcomm-ui/qds-core/divider";import{normalizeProps}from"@qualcomm-ui/react-core/machine";import{PolymorphicElement}from"@qualcomm-ui/react-core/system";import{mergeProps}from"@qualcomm-ui/utils/merge-props";function Divider({...props}){let divider=createQdsDividerApi(props,normalizeProps),mergedProps=mergeProps(divider.getRootBindings(),{className:dividerClasses.root},props);return jsx(PolymorphicElement,{as:"div",...mergedProps})}export{Divider};
3
- //# sourceMappingURL=index.js.map
1
+ "use client;";import{c as e}from"react/compiler-runtime";import{mergeProps as t}from"@qualcomm-ui/utils/merge-props";import{jsx as n}from"react/jsx-runtime";import{PolymorphicElement as r}from"@qualcomm-ui/react-core/system";import{normalizeProps as i}from"@qualcomm-ui/react-core/machine";import{createQdsDividerApi as a,dividerClasses as o}from"@qualcomm-ui/qds-core/divider";function Divider(s){let c=e(4),l;if(c[0]!==s){let{...e}=s;l=t(a(e,i).getRootBindings(),{className:o.root},e),c[0]=s,c[1]=l}else l=c[1];let u=l,d;return c[2]===u?d=c[3]:(d=n(r,{as:`div`,...u}),c[2]=u,c[3]=d),d}export{Divider};
2
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/divider/divider.tsx"],
4
- "sourcesContent": ["import { jsx } from \"react/jsx-runtime\";\nimport { createQdsDividerApi, dividerClasses } from \"@qualcomm-ui/qds-core/divider\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function Divider({\n ...props\n}) {\n const divider = createQdsDividerApi(props, normalizeProps);\n const mergedProps = mergeProps(divider.getRootBindings(), {\n className: dividerClasses.root\n }, props);\n return /* @__PURE__ */jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps\n });\n}"],
5
- "mappings": ";AAAA,OAAS,QAAW,oBACpB,OAAS,oBAAqB,mBAAsB,gCACpD,OAAS,mBAAsB,kCAC/B,OAAS,uBAA0B,iCACnC,OAAS,eAAkB,iCACpB,SAAS,QAAQ,CACtB,GAAG,KACL,EAAG,CACD,IAAM,QAAU,oBAAoB,MAAO,cAAc,EACnD,YAAc,WAAW,QAAQ,gBAAgB,EAAG,CACxD,UAAW,eAAe,IAC5B,EAAG,KAAK,EACR,OAAsB,IAAI,mBAAoB,CAC5C,GAAI,MACJ,GAAG,WACL,CAAC,CACH",
6
- "names": []
7
- }
1
+ {"version":3,"file":"index.js","names":["ReactElement","createQdsDividerApi","dividerClasses","QdsDividerApiProps","normalizeProps","ElementRenderProp","PolymorphicElement","mergeProps","DividerProps","Divider","t0","$","_c","t1","props","divider","getRootBindings","className","root","mergedProps","t2"],"sources":["../../src/divider/divider.tsx"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n createQdsDividerApi,\n dividerClasses,\n type QdsDividerApiProps,\n} from \"@qualcomm-ui/qds-core/divider\"\nimport {normalizeProps} from \"@qualcomm-ui/react-core/machine\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface DividerProps\n extends QdsDividerApiProps, ElementRenderProp<\"div\"> {}\n\n/**\n * A divider that separates content with a simple line. Renders a `<div>` element by\n * default.\n */\nexport function Divider({...props}: DividerProps): ReactElement {\n const divider = createQdsDividerApi(props, normalizeProps)\n const mergedProps = mergeProps(\n divider.getRootBindings(),\n {className: dividerClasses.root},\n props,\n )\n return <PolymorphicElement as=\"div\" {...mergedProps} />\n}\n"],"mappings":"0XAwBA,SAAOS,QAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAAAC,EAAA,GAAAF,EAAA,KAAAD,EAAA,CAAiB,GAAA,CAAA,GAAAI,GAAAJ,EAEFG,EAAAN,EADJN,EAAoBa,EAAOV,EAAe,CAEjDY,iBAAkB,CACzB,CAAAC,UAAYf,EAAcgB,KAAM,CAChCJ,EACD,CAAAH,EAAA,GAAAD,EAAAC,EAAA,GAAAE,OAAAA,EAAAF,EAAA,GAJD,IAAAQ,EAAoBN,EAInBO,EACsD,OADtDT,EAAA,KAAAQ,EACsDC,EAAAT,EAAA,IAAhDS,EAAA,EAAC,EAAD,CAAuB,GAAA,MAAK,GAAKD,EAAe,CAAA,CAAAR,EAAA,GAAAQ,EAAAR,EAAA,GAAAS,GAAhDA"}
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{jsx}from"react/jsx-runtime";import{Dialog}from"@qualcomm-ui/react/dialog";function DrawerBackdrop(props){return jsx(Dialog.Backdrop,{...props})}import{c as _c}from"react/compiler-runtime";import{jsx as jsx2}from"react/jsx-runtime";import{useQdsDialogContext}from"@qualcomm-ui/react/dialog";import{CoreDialog}from"@qualcomm-ui/react-core/dialog";import{mergeProps}from"@qualcomm-ui/utils/merge-props";function DrawerBody(props){let $=_c(3),qdsContext=useQdsDialogContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps(qdsContext.getBodyBindings(),props);t0=jsx2(CoreDialog.Body,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{jsx as jsx3}from"react/jsx-runtime";import{Dialog as Dialog2}from"@qualcomm-ui/react/dialog";function DrawerCloseButton(props){return jsx3(Dialog2.CloseButton,{...props})}import{jsx as jsx4}from"react/jsx-runtime";import{CoreDialog as CoreDialog2}from"@qualcomm-ui/react-core/dialog";function DrawerCloseTrigger(props){return jsx4(CoreDialog2.CloseTrigger,{...props})}import{c as _c2}from"react/compiler-runtime";import{jsx as jsx5}from"react/jsx-runtime";import{CoreDialog as CoreDialog3}from"@qualcomm-ui/react-core/dialog";import{mergeProps as mergeProps2}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext}from"@qualcomm-ui/react-core/context";var[QdsDrawerContextProvider,useQdsDrawerContext]=createGuardedContext({hookName:"useQdsDrawerContext",providerName:"<QdsDrawerContextProvider>",strict:!0});function DrawerContent(props){let $=_c2(3),qdsContext=useQdsDrawerContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps2(qdsContext.getContentBindings(),props);t0=jsx5(CoreDialog3.Content,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c3}from"react/compiler-runtime";import{useDialogContext}from"@qualcomm-ui/react-core/dialog";import{renderProp}from"@qualcomm-ui/react-core/system";function DrawerContext(t0){let $=_c3(3),{children}=t0,context=useDialogContext(),t1;return $[0]!==children||$[1]!==context?(t1=renderProp(children,context),$[0]=children,$[1]=context,$[2]=t1):t1=$[2],t1}import{jsx as jsx6}from"react/jsx-runtime";import{Dialog as Dialog3}from"@qualcomm-ui/react/dialog";function DrawerDescription(props){return jsx6(Dialog3.Description,{...props})}import{jsx as jsx8,jsxs}from"react/jsx-runtime";import{Portal}from"@qualcomm-ui/react-core/portal";import{c as _c4}from"react/compiler-runtime";import{jsx as jsx7}from"react/jsx-runtime";import{CoreDialog as CoreDialog4}from"@qualcomm-ui/react-core/dialog";import{mergeProps as mergeProps3}from"@qualcomm-ui/utils/merge-props";function DrawerPositioner(props){let $=_c4(3),qdsContext=useQdsDrawerContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps3(qdsContext.getPositionerBindings(),props);t0=jsx7(CoreDialog4.Positioner,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}function DrawerFloatingPortal({backdropProps,children,contentProps,positionerProps,...props}){return jsxs(Portal,{...props,children:[jsx8(DrawerBackdrop,{...backdropProps}),jsx8(DrawerPositioner,{...positionerProps,children:jsx8(DrawerContent,{...contentProps,children})})]})}import{jsx as jsx9}from"react/jsx-runtime";import{Dialog as Dialog4}from"@qualcomm-ui/react/dialog";function DrawerFooter(props){return jsx9(Dialog4.Footer,{...props})}import{jsx as jsx10}from"react/jsx-runtime";import{Dialog as Dialog5}from"@qualcomm-ui/react/dialog";function DrawerHeading(props){return jsx10(Dialog5.Heading,{...props})}import{jsx as jsx11}from"react/jsx-runtime";import{Dialog as Dialog6}from"@qualcomm-ui/react/dialog";function DrawerIndicatorIcon(props){return jsx11(Dialog6.IndicatorIcon,{...props})}import{c as _c5}from"react/compiler-runtime";import{jsx as jsx12}from"react/jsx-runtime";import"react";import{createQdsDialogApi}from"@qualcomm-ui/qds-core/dialog";import{createQdsDrawerApi}from"@qualcomm-ui/qds-core/drawer";import{QdsDialogContextProvider}from"@qualcomm-ui/react/dialog";import{CoreDialog as CoreDialog5}from"@qualcomm-ui/react-core/dialog";import{normalizeProps}from"@qualcomm-ui/react-core/machine";function DrawerRoot(t0){let $=_c5(9),t1;if($[0]!==t0){let{placement,scrollBehavior,size,...props}=t0,t2;$[2]!==scrollBehavior||$[3]!==size?(t2=createQdsDialogApi({emphasis:"neutral",placement:"top",scrollBehavior,size},normalizeProps),$[2]=scrollBehavior,$[3]=size,$[4]=t2):t2=$[4];let qdsDialogApi=t2,t3;$[5]!==placement||$[6]!==scrollBehavior||$[7]!==size?(t3=createQdsDrawerApi({placement,scrollBehavior,size},normalizeProps),$[5]=placement,$[6]=scrollBehavior,$[7]=size,$[8]=t3):t3=$[8],t1=jsx12(QdsDialogContextProvider,{value:qdsDialogApi,children:jsx12(QdsDrawerContextProvider,{value:t3,children:jsx12(CoreDialog5.Root,{...props})})}),$[0]=t0,$[1]=t1}else t1=$[1];return t1}import{jsx as jsx13}from"react/jsx-runtime";import{CoreDialog as CoreDialog6}from"@qualcomm-ui/react-core/dialog";function DrawerTrigger(props){return jsx13(CoreDialog6.Trigger,{...props})}var Drawer={Backdrop:DrawerBackdrop,Body:DrawerBody,CloseButton:DrawerCloseButton,CloseTrigger:DrawerCloseTrigger,Content:DrawerContent,Context:DrawerContext,Description:DrawerDescription,FloatingPortal:DrawerFloatingPortal,Footer:DrawerFooter,Heading:DrawerHeading,IndicatorIcon:DrawerIndicatorIcon,Positioner:DrawerPositioner,Root:DrawerRoot,Trigger:DrawerTrigger};export{Drawer,QdsDrawerContextProvider,useQdsDrawerContext};
3
- //# sourceMappingURL=index.js.map
1
+ "use client;";import{c as e}from"react/compiler-runtime";import{mergeProps as t}from"@qualcomm-ui/utils/merge-props";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{renderProp as i}from"@qualcomm-ui/react-core/system";import"react";import{normalizeProps as a}from"@qualcomm-ui/react-core/machine";import{createGuardedContext as o}from"@qualcomm-ui/react-core/context";import{Portal as s}from"@qualcomm-ui/react-core/portal";import{CoreDialog as c,useDialogContext as l}from"@qualcomm-ui/react-core/dialog";import{createQdsDialogApi as u}from"@qualcomm-ui/qds-core/dialog";import{Dialog as d,QdsDialogContextProvider as f,useQdsDialogContext as p}from"@qualcomm-ui/react/dialog";import{createQdsDrawerApi as m}from"@qualcomm-ui/qds-core/drawer";function DrawerBackdrop(t){let r=e(2),i;return r[0]===t?i=r[1]:(i=n(d.Backdrop,{...t}),r[0]=t,r[1]=i),i}function DrawerBody(r){let i=e(5),a=p(),o;i[0]!==r||i[1]!==a?(o=t(a.getBodyBindings(),r),i[0]=r,i[1]=a,i[2]=o):o=i[2];let s=o,l;return i[3]===s?l=i[4]:(l=n(c.Body,{...s}),i[3]=s,i[4]=l),l}function DrawerCloseButton(t){let r=e(2),i;return r[0]===t?i=r[1]:(i=n(d.CloseButton,{...t}),r[0]=t,r[1]=i),i}function DrawerCloseTrigger(t){let r=e(2),i;return r[0]===t?i=r[1]:(i=n(c.CloseTrigger,{...t}),r[0]=t,r[1]=i),i}var[h,g]=o({hookName:`useQdsDrawerContext`,providerName:`<QdsDrawerContextProvider>`,strict:!0});function DrawerContent(r){let i=e(5),a=g(),o;i[0]!==r||i[1]!==a?(o=t(a.getContentBindings(),r),i[0]=r,i[1]=a,i[2]=o):o=i[2];let s=o,l;return i[3]===s?l=i[4]:(l=n(c.Content,{...s}),i[3]=s,i[4]=l),l}function DrawerContext(t){let n=e(3),{children:r}=t,a=l(),o;return n[0]!==r||n[1]!==a?(o=i(r,a),n[0]=r,n[1]=a,n[2]=o):o=n[2],o}function DrawerDescription(t){let r=e(2),i;return r[0]===t?i=r[1]:(i=n(d.Description,{...t}),r[0]=t,r[1]=i),i}function DrawerPositioner(r){let i=e(5),a=g(),o;i[0]!==r||i[1]!==a?(o=t(a.getPositionerBindings(),r),i[0]=r,i[1]=a,i[2]=o):o=i[2];let s=o,l;return i[3]===s?l=i[4]:(l=n(c.Positioner,{...s}),i[3]=s,i[4]=l),l}function DrawerFloatingPortal(t){let i=e(18),a,o,c,l,u;i[0]===t?(a=i[1],o=i[2],c=i[3],l=i[4],u=i[5]):({backdropProps:a,children:o,contentProps:c,positionerProps:l,...u}=t,i[0]=t,i[1]=a,i[2]=o,i[3]=c,i[4]=l,i[5]=u);let d;i[6]===a?d=i[7]:(d=n(DrawerBackdrop,{...a}),i[6]=a,i[7]=d);let f;i[8]!==o||i[9]!==c?(f=n(DrawerContent,{...c,children:o}),i[8]=o,i[9]=c,i[10]=f):f=i[10];let p;i[11]!==l||i[12]!==f?(p=n(DrawerPositioner,{...l,children:f}),i[11]=l,i[12]=f,i[13]=p):p=i[13];let m;return i[14]!==u||i[15]!==d||i[16]!==p?(m=r(s,{...u,children:[d,p]}),i[14]=u,i[15]=d,i[16]=p,i[17]=m):m=i[17],m}function DrawerFooter(t){let r=e(2),i;return r[0]===t?i=r[1]:(i=n(d.Footer,{...t}),r[0]=t,r[1]=i),i}function DrawerHeading(t){let r=e(2),i;return r[0]===t?i=r[1]:(i=n(d.Heading,{...t}),r[0]=t,r[1]=i),i}function DrawerIndicatorIcon(t){let r=e(2),i;return r[0]===t?i=r[1]:(i=n(d.IndicatorIcon,{...t}),r[0]=t,r[1]=i),i}function DrawerRoot(t){let r=e(20),i,o,s,l;r[0]===t?(i=r[1],o=r[2],s=r[3],l=r[4]):({placement:i,scrollBehavior:s,size:l,...o}=t,r[0]=t,r[1]=i,r[2]=o,r[3]=s,r[4]=l);let d;r[5]!==s||r[6]!==l?(d=u({emphasis:`neutral`,placement:`top`,scrollBehavior:s,size:l},a),r[5]=s,r[6]=l,r[7]=d):d=r[7];let p=d,g;r[8]!==i||r[9]!==s||r[10]!==l?(g=m({placement:i,scrollBehavior:s,size:l},a),r[8]=i,r[9]=s,r[10]=l,r[11]=g):g=r[11];let _=g,v;r[12]===o?v=r[13]:(v=n(c.Root,{...o}),r[12]=o,r[13]=v);let y;r[14]!==_||r[15]!==v?(y=n(h,{value:_,children:v}),r[14]=_,r[15]=v,r[16]=y):y=r[16];let b;return r[17]!==p||r[18]!==y?(b=n(f,{value:p,children:y}),r[17]=p,r[18]=y,r[19]=b):b=r[19],b}function DrawerTrigger(t){let r=e(2),i;return r[0]===t?i=r[1]:(i=n(c.Trigger,{...t}),r[0]=t,r[1]=i),i}var _={Backdrop:DrawerBackdrop,Body:DrawerBody,CloseButton:DrawerCloseButton,CloseTrigger:DrawerCloseTrigger,Content:DrawerContent,Context:DrawerContext,Description:DrawerDescription,FloatingPortal:DrawerFloatingPortal,Footer:DrawerFooter,Heading:DrawerHeading,IndicatorIcon:DrawerIndicatorIcon,Positioner:DrawerPositioner,Root:DrawerRoot,Trigger:DrawerTrigger};export{_ as Drawer,h as QdsDrawerContextProvider,g as useQdsDrawerContext};
2
+ //# sourceMappingURL=index.js.map