@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/checkbox/checkbox.tsx", "../../src/checkbox/checkbox-control.tsx", "../../src/checkbox/checkbox-indicator.tsx", "../../src/checkbox/qds-checkbox-context.ts", "../../src/checkbox/checkbox-error-text.tsx", "../../src/checkbox/checkbox-hidden-input.tsx", "../../src/checkbox/checkbox-hint.tsx", "../../src/checkbox/checkbox-label.tsx", "../../src/checkbox/checkbox-root.tsx", "../../src/checkbox/checkbox-context.tsx", "../../src/checkbox/index.ts"],
4
- "sourcesContent": ["import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { useOptionalContentId } from \"@qualcomm-ui/react-core/machine\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { CheckboxControl } from \"./checkbox-control\";\nimport { CheckboxErrorText } from \"./checkbox-error-text\";\nimport { CheckboxHiddenInput } from \"./checkbox-hidden-input\";\nimport { CheckboxHint } from \"./checkbox-hint\";\nimport { CheckboxIndicator } from \"./checkbox-indicator\";\nimport { CheckboxLabel } from \"./checkbox-label\";\nimport { CheckboxRoot } from \"./checkbox-root\";\nexport function Checkbox(t0) {\n const {\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n controlProps,\n errorText,\n errorTextProps,\n hiddenInputProps: hiddenInputPropsProp,\n hint,\n hintProps,\n indicatorProps,\n label,\n labelProps,\n ...props\n } = t0;\n const labelContent = label || labelProps?.children;\n const errorTextContent = errorText || errorTextProps?.children;\n const hintContent = hint || hintProps?.children;\n const hiddenInputProps = {\n ...hiddenInputPropsProp\n };\n if (ariaLabel !== void 0) {\n hiddenInputProps[\"aria-label\"] = ariaLabel;\n }\n if (ariaLabelledBy !== void 0) {\n hiddenInputProps[\"aria-labelledby\"] = ariaLabelledBy;\n }\n const ids = {\n errorText: useOptionalContentId(errorTextContent, errorTextProps),\n hiddenInput: useControlledId(hiddenInputProps?.id),\n hint: useOptionalContentId(hintContent, hintProps),\n label: useOptionalContentId(labelContent, labelProps),\n root: useControlledId(props.id),\n ...props.ids\n };\n return jsxs(CheckboxRoot, {\n ...props,\n id: ids.root,\n ids,\n children: [jsx(CheckboxHiddenInput, {\n ...hiddenInputProps,\n id: ids.hiddenInput\n }), jsx(CheckboxControl, {\n ...controlProps,\n children: jsx(CheckboxIndicator, {\n ...indicatorProps\n })\n }), labelContent ? jsx(CheckboxLabel, {\n ...labelProps,\n id: ids.label,\n children: labelContent\n }) : null, hintContent ? jsx(CheckboxHint, {\n ...hintProps,\n id: ids.hint,\n children: hintContent\n }) : null, errorTextContent ? jsx(CheckboxErrorText, {\n ...errorTextProps,\n id: ids.errorText,\n children: errorTextContent\n }) : null]\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useCheckboxControl } from \"@qualcomm-ui/react-core/checkbox\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { CheckboxIndicator } from \"./checkbox-indicator\";\nimport { useQdsCheckboxContext } from \"./qds-checkbox-context\";\nexport function CheckboxControl(t0) {\n const $ = _c(2);\n const {\n children: t1,\n id,\n ...props\n } = t0;\n const children = t1 === undefined ? jsx(CheckboxIndicator, {}) : t1;\n let t2;\n if ($[0] !== id) {\n t2 = {\n id\n };\n $[0] = id;\n $[1] = t2;\n } else {\n t2 = $[1];\n }\n const contextProps = useCheckboxControl(t2);\n const qdsContext = useQdsCheckboxContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getControlBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { CheckmarkIcon } from \"@qualcomm-ui/react/checkmark\";\nimport { useCheckboxIndicator } from \"@qualcomm-ui/react-core/checkbox\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsCheckboxContext } from \"./qds-checkbox-context\";\nexport function CheckboxIndicator(t0) {\n const {\n children,\n ...props\n } = t0;\n const {\n contextProps,\n indeterminate\n } = useCheckboxIndicator();\n const qdsContext = useQdsCheckboxContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getIndicatorBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children: children ?? jsx(CheckmarkIcon, {\n indeterminate,\n size: qdsContext.size\n })\n });\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [QdsCheckboxContextProvider, useQdsCheckboxContext] = createGuardedContext({\n hookName: \"useQdsCheckboxContext\",\n providerName: \"<QdsCheckboxContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { AlertCircle } from \"lucide-react\";\nimport { InputErrorText } from \"@qualcomm-ui/react/input\";\nimport { useCheckboxErrorText } from \"@qualcomm-ui/react-core/checkbox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsCheckboxContext } from \"./qds-checkbox-context\";\nexport function CheckboxErrorText(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useCheckboxErrorText(t1);\n const qdsContext = useQdsCheckboxContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getErrorTextBindings(), props);\n return jsx(InputErrorText, {\n icon: AlertCircle,\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useCheckboxHiddenInput } from \"@qualcomm-ui/react-core/checkbox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsCheckboxContext } from \"./qds-checkbox-context\";\nexport function CheckboxHiddenInput(t0) {\n const $ = _c(2);\n const {\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useCheckboxHiddenInput(t1);\n const qdsContext = useQdsCheckboxContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getHiddenInputBindings(), props);\n return jsx(\"input\", {\n ...mergedProps\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { InputHint } from \"@qualcomm-ui/react/input\";\nimport { useCheckboxHint } from \"@qualcomm-ui/react-core/checkbox\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsCheckboxContext } from \"./qds-checkbox-context\";\nexport function CheckboxHint(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useCheckboxHint(t1);\n const qdsContext = useQdsCheckboxContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getHintBindings(), props);\n return jsx(InputHint, {\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useCheckboxLabel } from \"@qualcomm-ui/react-core/checkbox\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsCheckboxContext } from \"./qds-checkbox-context\";\nexport function CheckboxLabel(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useCheckboxLabel(t1);\n const qdsContext = useQdsCheckboxContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getLabelBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { splitCheckboxProps } from \"@qualcomm-ui/core/checkbox\";\nimport { createQdsCheckboxApi } from \"@qualcomm-ui/qds-core/checkbox\";\nimport { useQdsFieldGroupContext } from \"@qualcomm-ui/react/field-group\";\nimport { CheckboxContextProvider, useCheckbox } from \"@qualcomm-ui/react-core/checkbox\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsCheckboxContextProvider } from \"./qds-checkbox-context\";\nexport function CheckboxRoot(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n size,\n ...props\n } = t0;\n const [checkboxProps, localProps] = splitCheckboxProps(props);\n const context = useCheckbox(checkboxProps);\n const groupContext = useQdsFieldGroupContext();\n const groupSize = size ?? groupContext?.size;\n let t1;\n if ($[0] !== groupSize) {\n t1 = createQdsCheckboxApi({\n size: groupSize\n }, normalizeProps);\n $[0] = groupSize;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const qdsContext = t1;\n const mergedProps = mergeProps(context.getRootBindings({\n id: useControlledId(id)\n }), qdsContext.getRootBindings(), localProps);\n return jsx(QdsCheckboxContextProvider, {\n value: qdsContext,\n children: jsx(CheckboxContextProvider, {\n value: context,\n children: jsx(PolymorphicElement, {\n as: \"label\",\n ...mergedProps,\n children\n })\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { useCheckboxContext } from \"@qualcomm-ui/react-core/checkbox\";\nimport { renderProp } from \"@qualcomm-ui/react-core/system\";\nexport function CheckboxContext(t0) {\n const $ = _c(3);\n const {\n children\n } = t0;\n const context = useCheckboxContext();\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 { Checkbox as SimpleCheckbox } from \"./checkbox\";\nimport { CheckboxContext } from \"./checkbox-context\";\nimport { CheckboxControl } from \"./checkbox-control\";\nimport { CheckboxErrorText } from \"./checkbox-error-text\";\nimport { CheckboxHiddenInput } from \"./checkbox-hidden-input\";\nimport { CheckboxHint } from \"./checkbox-hint\";\nimport { CheckboxIndicator } from \"./checkbox-indicator\";\nimport { CheckboxLabel } from \"./checkbox-label\";\nimport { CheckboxRoot } from \"./checkbox-root\";\nexport const Checkbox = SimpleCheckbox;\nCheckbox.Context = CheckboxContext;\nCheckbox.Control = CheckboxControl;\nCheckbox.ErrorText = CheckboxErrorText;\nCheckbox.HiddenInput = CheckboxHiddenInput;\nCheckbox.Hint = CheckboxHint;\nCheckbox.Indicator = CheckboxIndicator;\nCheckbox.Label = CheckboxLabel;\nCheckbox.Root = CheckboxRoot;"],
5
- "mappings": ";AAAA,OAAS,OAAAA,KAAK,SAAY,oBAC1B,OAAS,yBAA4B,kCACrC,OAAS,mBAAAC,qBAAuB,gCCFhC,OAAS,KAAK,OAAU,yBACxB,OAAS,OAAAC,SAAW,oBACpB,OAAS,uBAA0B,mCACnC,OAAS,sBAAAC,wBAA0B,iCACnC,OAAS,cAAAC,gBAAkB,iCCJ3B,OAAS,QAAW,oBACpB,OAAS,kBAAqB,+BAC9B,OAAS,yBAA4B,mCACrC,OAAS,uBAA0B,iCACnC,OAAS,eAAkB,iCCJ3B,OAAS,yBAA4B,kCAC9B,GAAM,CAAC,2BAA4B,qBAAqB,EAAI,qBAAqB,CACtF,SAAU,wBACV,aAAc,+BACd,OAAQ,EACV,CAAC,EDCM,SAAS,kBAAkB,GAAI,CACpC,GAAM,CACJ,SACA,GAAG,KACL,EAAI,GACE,CACJ,aACA,aACF,EAAI,qBAAqB,EAC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AE,CAAC,EAAI,SACP,EAAE,CAAC,EAAI,QACP,EAAE,CAAC,EAAI,IAEP,GAAK,EAAE,CAAC,EAEH,EACT,CCVO,IAAMC,UAAW,SACxBA,UAAS,QAAU,gBACnBA,UAAS,QAAU,gBACnBA,UAAS,UAAY,kBACrBA,UAAS,YAAc,oBACvBA,UAAS,KAAO,aAChBA,UAAS,UAAY,kBACrBA,UAAS,MAAQ,cACjBA,UAAS,KAAO",
6
- "names": ["jsx", "useControlledId", "jsx", "PolymorphicElement", "mergeProps", "jsx", "mergeProps", "PolymorphicElement", "_c", "jsx", "mergeProps", "_c", "mergeProps", "jsx", "_c", "jsx", "mergeProps", "_c", "mergeProps", "jsx", "_c", "jsx", "mergeProps", "_c", "mergeProps", "jsx", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement", "useControlledId", "jsx", "_c", "Checkbox"]
7
- }
1
+ {"version":3,"file":"index.js","names":["QdsCheckboxApi","createGuardedContext","QdsCheckboxContextProvider","useQdsCheckboxContext","hookName","providerName","strict","ReactElement","ReactNode","CheckmarkIcon","useCheckboxIndicator","ElementRenderProp","PolymorphicElement","mergeProps","useQdsCheckboxContext","CheckboxIndicatorProps","children","CheckboxIndicator","t0","$","_c","props","contextProps","indeterminate","qdsContext","mergedProps","getIndicatorBindings","t1","size","t2","ReactElement","ReactNode","useCheckboxControl","ElementRenderProp","IdProp","PolymorphicElement","ComponentDataAttributes","mergeProps","CheckboxIndicator","useQdsCheckboxContext","CheckboxControlProps","children","CheckboxControl","id","props","contextProps","qdsContext","mergedProps","getControlBindings","ReactElement","ReactNode","AlertCircle","InputErrorText","InputErrorTextProps","useCheckboxErrorText","LucideIconOrElement","IdProp","mergeProps","useQdsCheckboxContext","CheckboxErrorTextProps","children","icon","CheckboxErrorText","t0","$","_c","id","props","t1","contextProps","qdsContext","mergedProps","getErrorTextBindings","t2","ComponentPropsWithRef","ReactElement","useCheckboxHiddenInput","IdProp","mergeProps","useQdsCheckboxContext","CheckboxHiddenInputProps","CheckboxHiddenInput","t0","$","_c","id","props","t1","contextProps","qdsContext","mergedProps","getHiddenInputBindings","t2","ReactElement","ReactNode","InputHint","InputHintProps","useCheckboxHint","IdProp","mergeProps","useQdsCheckboxContext","CheckboxHintProps","children","CheckboxHint","t0","$","_c","id","props","t1","contextProps","qdsContext","mergedProps","getHintBindings","t2","ReactElement","ReactNode","useCheckboxLabel","ElementRenderProp","IdProp","PolymorphicElement","mergeProps","useQdsCheckboxContext","CheckboxLabelProps","children","CheckboxLabel","t0","$","_c","id","props","t1","contextProps","qdsContext","mergedProps","getLabelBindings","t2","ReactElement","ReactNode","useMemo","CheckboxApiProps","splitCheckboxProps","createQdsCheckboxApi","QdsCheckboxApiProps","useQdsFieldGroupContext","CheckboxContextProvider","useCheckbox","normalizeProps","useControlledId","ElementRenderProp","IdProp","PolymorphicElement","mergeProps","QdsCheckboxContextProvider","CheckboxRootProps","Omit","children","CheckboxRoot","t0","$","_c","id","size","props","checkboxProps","localProps","context","groupContext","groupSize","t1","qdsContext","mergedProps","getRootBindings","t2","t3","t4","ReactElement","ReactNode","CheckboxElementIds","useOptionalContentId","useControlledId","CheckboxControl","CheckboxControlProps","CheckboxErrorText","CheckboxErrorTextProps","CheckboxHiddenInput","CheckboxHiddenInputProps","CheckboxHint","CheckboxHintProps","CheckboxIndicator","CheckboxIndicatorProps","CheckboxLabel","CheckboxLabelProps","CheckboxRoot","CheckboxRootProps","CheckboxProps","children","controlProps","errorText","errorTextProps","hiddenInputProps","hint","hintProps","indicatorProps","label","labelProps","Checkbox","t0","$","_c","ariaLabel","ariaLabelledBy","hiddenInputPropsProp","props","labelContent","errorTextContent","hintContent","undefined","t1","t2","id","t3","t4","t5","t6","ids","hiddenInput","root","t7","t8","t9","t10","t11","t12","t13","ReactNode","CheckboxApi","useCheckboxContext","RenderProp","renderProp","CheckboxContextProps","children","CheckboxContext","t0","$","_c","context","t1","Checkbox","SimpleCheckbox","CheckboxContext","CheckboxContextProps","CheckboxControl","CheckboxControlProps","CheckboxErrorText","CheckboxErrorTextProps","CheckboxHiddenInput","CheckboxHiddenInputProps","CheckboxHint","CheckboxHintProps","CheckboxIndicator","CheckboxIndicatorProps","CheckboxLabel","CheckboxLabelProps","CheckboxRoot","CheckboxRootProps","CheckboxComponent","Context","Control","ErrorText","HiddenInput","Hint","Indicator","Label","Root"],"sources":["../../src/checkbox/qds-checkbox-context.ts","../../src/checkbox/checkbox-indicator.tsx","../../src/checkbox/checkbox-control.tsx","../../src/checkbox/checkbox-error-text.tsx","../../src/checkbox/checkbox-hidden-input.tsx","../../src/checkbox/checkbox-hint.tsx","../../src/checkbox/checkbox-label.tsx","../../src/checkbox/checkbox-root.tsx","../../src/checkbox/checkbox.tsx","../../src/checkbox/checkbox-context.tsx","../../src/checkbox/index.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {QdsCheckboxApi} from \"@qualcomm-ui/qds-core/checkbox\"\nimport {createGuardedContext} from \"@qualcomm-ui/react-core/context\"\n\nexport const [QdsCheckboxContextProvider, useQdsCheckboxContext] =\n createGuardedContext<QdsCheckboxApi>({\n hookName: \"useQdsCheckboxContext\",\n providerName: \"<QdsCheckboxContextProvider>\",\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, ReactNode} from \"react\"\n\nimport {CheckmarkIcon} from \"@qualcomm-ui/react/checkmark\"\nimport {useCheckboxIndicator} from \"@qualcomm-ui/react-core/checkbox\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context\"\n\nexport interface CheckboxIndicatorProps extends ElementRenderProp<\"div\"> {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n * Defaults to the check icon when the checkbox is checked.\n *\n * @default `<CheckboxIndicatorIcon />`\n */\n children?: ReactNode\n}\n\n/**\n * Visual indicator that displays the checkbox state. Renders a `<div>` element by\n * default.\n */\nexport function CheckboxIndicator({\n children,\n ...props\n}: CheckboxIndicatorProps): ReactElement {\n const {contextProps, indeterminate} = useCheckboxIndicator()\n const qdsContext = useQdsCheckboxContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getIndicatorBindings(),\n props,\n )\n\n return (\n <PolymorphicElement as=\"div\" {...mergedProps}>\n {children ?? (\n <CheckmarkIcon indeterminate={indeterminate} size={qdsContext.size} />\n )}\n </PolymorphicElement>\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 {useCheckboxControl} from \"@qualcomm-ui/react-core/checkbox\"\nimport {\n type ElementRenderProp,\n type IdProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport type {ComponentDataAttributes} from \"@qualcomm-ui/utils/attributes\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {CheckboxIndicator} from \"./checkbox-indicator\"\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context\"\n\nexport interface CheckboxControlProps\n extends IdProp, ElementRenderProp<\"div\">, ComponentDataAttributes {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n *\n * @default `<CheckboxIndicator />`\n */\n children?: ReactNode\n}\n\n/**\n * Visual control that wraps the checkbox indicator. Renders a `<div>` element by\n * default.\n */\nexport function CheckboxControl({\n children = <CheckboxIndicator />,\n id,\n ...props\n}: CheckboxControlProps): ReactElement {\n const contextProps = useCheckboxControl({id})\n const qdsContext = useQdsCheckboxContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getControlBindings(),\n props,\n )\n\n return (\n <PolymorphicElement as=\"div\" {...mergedProps}>\n {children}\n </PolymorphicElement>\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 {AlertCircle} from \"lucide-react\"\n\nimport {\n InputErrorText,\n type InputErrorTextProps,\n} from \"@qualcomm-ui/react/input\"\nimport {useCheckboxErrorText} from \"@qualcomm-ui/react-core/checkbox\"\nimport type {LucideIconOrElement} from \"@qualcomm-ui/react-core/lucide\"\nimport type {IdProp} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context\"\n\nexport interface CheckboxErrorTextProps extends IdProp, InputErrorTextProps {\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 * An icon to display next to the error text.\n *\n * @default `<AlertCircle />`\n */\n icon?: LucideIconOrElement\n}\n\n/**\n * Error message displayed when the checkbox is invalid. Renders a `<div>` element\n * by default.\n */\nexport function CheckboxErrorText({\n children,\n id,\n ...props\n}: CheckboxErrorTextProps): ReactElement {\n const contextProps = useCheckboxErrorText({id})\n const qdsContext = useQdsCheckboxContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getErrorTextBindings(),\n props,\n )\n\n return (\n <InputErrorText icon={AlertCircle} {...mergedProps}>\n {children}\n </InputErrorText>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ComponentPropsWithRef, ReactElement} from \"react\"\n\nimport {useCheckboxHiddenInput} from \"@qualcomm-ui/react-core/checkbox\"\nimport type {IdProp} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context\"\n\nexport interface CheckboxHiddenInputProps\n extends IdProp, ComponentPropsWithRef<\"input\"> {}\n\n/**\n * Hidden input element used for accessibility and form submissions. Renders an\n * `<input>` element. Note: do not apply typical input props like {@link disabled}\n * to this element. Those are applied to the root element and propagated via\n * internal context.\n */\nexport function CheckboxHiddenInput({\n id,\n ...props\n}: CheckboxHiddenInputProps): ReactElement {\n const contextProps = useCheckboxHiddenInput({id})\n const qdsContext = useQdsCheckboxContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getHiddenInputBindings(),\n props,\n )\n\n return <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, ReactNode} from \"react\"\n\nimport {InputHint, type InputHintProps} from \"@qualcomm-ui/react/input\"\nimport {useCheckboxHint} from \"@qualcomm-ui/react-core/checkbox\"\nimport type {IdProp} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context\"\n\nexport interface CheckboxHintProps extends IdProp, 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 * A help message displayed below the checkbox. Renders a `<div>` element by\n * default.\n */\nexport function CheckboxHint({\n children,\n id,\n ...props\n}: CheckboxHintProps): ReactElement {\n const contextProps = useCheckboxHint({id})\n const qdsContext = useQdsCheckboxContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getHintBindings(),\n props,\n )\n\n return <InputHint {...mergedProps}>{children}</InputHint>\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 {useCheckboxLabel} from \"@qualcomm-ui/react-core/checkbox\"\nimport {\n type ElementRenderProp,\n type IdProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsCheckboxContext} from \"./qds-checkbox-context\"\n\nexport interface CheckboxLabelProps extends IdProp, ElementRenderProp<\"span\"> {\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 * An accessible label that is automatically associated with the checkbox.\n * Renders a `<span>` element by default.\n */\nexport function CheckboxLabel({\n children,\n id,\n ...props\n}: CheckboxLabelProps): ReactElement {\n const contextProps = useCheckboxLabel({id})\n const qdsContext = useQdsCheckboxContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getLabelBindings(),\n props,\n )\n\n return (\n <PolymorphicElement as=\"span\" {...mergedProps}>\n {children}\n </PolymorphicElement>\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 type CheckboxApiProps,\n splitCheckboxProps,\n} from \"@qualcomm-ui/core/checkbox\"\nimport {\n createQdsCheckboxApi,\n type QdsCheckboxApiProps,\n} from \"@qualcomm-ui/qds-core/checkbox\"\nimport {useQdsFieldGroupContext} from \"@qualcomm-ui/react/field-group\"\nimport {\n CheckboxContextProvider,\n useCheckbox,\n} from \"@qualcomm-ui/react-core/checkbox\"\nimport {normalizeProps} from \"@qualcomm-ui/react-core/machine\"\nimport {useControlledId} from \"@qualcomm-ui/react-core/state\"\nimport {\n type ElementRenderProp,\n type IdProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {QdsCheckboxContextProvider} from \"./qds-checkbox-context\"\n\nexport interface CheckboxRootProps\n extends\n IdProp,\n CheckboxApiProps,\n QdsCheckboxApiProps,\n Omit<ElementRenderProp<\"label\">, \"dir\"> {\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 checkbox. Renders a `<label>` element by default.\n */\nexport function CheckboxRoot({\n children,\n id,\n size,\n ...props\n}: CheckboxRootProps): ReactElement {\n const [checkboxProps, localProps] = splitCheckboxProps(props)\n const context = useCheckbox(checkboxProps)\n const groupContext = useQdsFieldGroupContext()\n const groupSize = size ?? groupContext?.size\n const qdsContext = useMemo(\n () => createQdsCheckboxApi({size: groupSize}, normalizeProps),\n [groupSize],\n )\n const mergedProps = mergeProps(\n context.getRootBindings({id: useControlledId(id)}),\n qdsContext.getRootBindings(),\n localProps,\n )\n\n return (\n <QdsCheckboxContextProvider value={qdsContext}>\n <CheckboxContextProvider value={context}>\n <PolymorphicElement as=\"label\" {...mergedProps}>\n {children}\n </PolymorphicElement>\n </CheckboxContextProvider>\n </QdsCheckboxContextProvider>\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 type {CheckboxElementIds} from \"@qualcomm-ui/core/checkbox\"\nimport {useOptionalContentId} from \"@qualcomm-ui/react-core/machine\"\nimport {useControlledId} from \"@qualcomm-ui/react-core/state\"\n\nimport {CheckboxControl, type CheckboxControlProps} from \"./checkbox-control\"\nimport {\n CheckboxErrorText,\n type CheckboxErrorTextProps,\n} from \"./checkbox-error-text\"\nimport {\n CheckboxHiddenInput,\n type CheckboxHiddenInputProps,\n} from \"./checkbox-hidden-input\"\nimport {CheckboxHint, type CheckboxHintProps} from \"./checkbox-hint\"\nimport {\n CheckboxIndicator,\n type CheckboxIndicatorProps,\n} from \"./checkbox-indicator\"\nimport {CheckboxLabel, type CheckboxLabelProps} from \"./checkbox-label\"\nimport {CheckboxRoot, type CheckboxRootProps} from \"./checkbox-root\"\n\nexport interface CheckboxProps extends CheckboxRootProps {\n /**\n * {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label aria-label}\n * attribute, forwarded to the hidden 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 hidden input element. If you provide a {@link\n * label}, omit this prop.\n */\n \"aria-labelledby\"?: string | undefined\n\n /**\n * The simple Checkbox doesn't support children.\n */\n children?: never\n\n /**\n * Props applied to the control element.\n * @inheritDoc\n */\n controlProps?: CheckboxControlProps\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 * @inheritDoc\n */\n errorTextProps?: CheckboxErrorTextProps\n\n /**\n * Props applied to the hidden input element.\n * @inheritDoc\n */\n hiddenInputProps?: CheckboxHiddenInputProps\n\n /**\n * Optional hint text that describes the element.\n */\n hint?: ReactNode\n\n /**\n * Props applied to the hint element.\n * @inheritDoc\n */\n hintProps?: CheckboxHintProps\n\n /**\n * Props applied to the indicator element.\n * @inheritDoc\n */\n indicatorProps?: CheckboxIndicatorProps\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 * @inheritDoc\n */\n labelProps?: CheckboxLabelProps\n}\n\nexport function Checkbox({\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n controlProps,\n errorText,\n errorTextProps,\n hiddenInputProps: hiddenInputPropsProp,\n hint,\n hintProps,\n indicatorProps,\n label,\n labelProps,\n ...props\n}: CheckboxProps): ReactElement {\n const labelContent = label || labelProps?.children\n const errorTextContent = errorText || errorTextProps?.children\n const hintContent = hint || hintProps?.children\n\n const hiddenInputProps = {\n ...hiddenInputPropsProp,\n }\n\n if (ariaLabel !== undefined) {\n hiddenInputProps[\"aria-label\"] = ariaLabel\n }\n if (ariaLabelledBy !== undefined) {\n hiddenInputProps[\"aria-labelledby\"] = ariaLabelledBy\n }\n\n const ids: Partial<CheckboxElementIds> = {\n errorText: useOptionalContentId(errorTextContent, errorTextProps),\n hiddenInput: useControlledId(hiddenInputProps?.id),\n hint: useOptionalContentId(hintContent, hintProps),\n label: useOptionalContentId(labelContent, labelProps),\n root: useControlledId(props.id),\n ...props.ids,\n }\n\n return (\n <CheckboxRoot {...props} id={ids.root} ids={ids}>\n <CheckboxHiddenInput {...hiddenInputProps} id={ids.hiddenInput} />\n <CheckboxControl {...controlProps}>\n <CheckboxIndicator {...indicatorProps} />\n </CheckboxControl>\n {labelContent ? (\n <CheckboxLabel {...labelProps} id={ids.label}>\n {labelContent}\n </CheckboxLabel>\n ) : null}\n {hintContent ? (\n <CheckboxHint {...hintProps} id={ids.hint}>\n {hintContent}\n </CheckboxHint>\n ) : null}\n {errorTextContent ? (\n <CheckboxErrorText {...errorTextProps} id={ids.errorText}>\n {errorTextContent}\n </CheckboxErrorText>\n ) : null}\n </CheckboxRoot>\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 {CheckboxApi} from \"@qualcomm-ui/core/checkbox\"\nimport {useCheckboxContext} from \"@qualcomm-ui/react-core/checkbox\"\nimport {type RenderProp, renderProp} from \"@qualcomm-ui/react-core/system\"\n\nexport interface CheckboxContextProps {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children: RenderProp<CheckboxApi>\n}\n\nexport function CheckboxContext({children}: CheckboxContextProps): ReactNode {\n const context = useCheckboxContext()\n return renderProp(children, context)\n}\n","import {Checkbox as SimpleCheckbox} from \"./checkbox\"\nimport {CheckboxContext, type CheckboxContextProps} from \"./checkbox-context\"\nimport {CheckboxControl, type CheckboxControlProps} from \"./checkbox-control\"\nimport {\n CheckboxErrorText,\n type CheckboxErrorTextProps,\n} from \"./checkbox-error-text\"\nimport {\n CheckboxHiddenInput,\n type CheckboxHiddenInputProps,\n} from \"./checkbox-hidden-input\"\nimport {CheckboxHint, type CheckboxHintProps} from \"./checkbox-hint\"\nimport {\n CheckboxIndicator,\n type CheckboxIndicatorProps,\n} from \"./checkbox-indicator\"\nimport {CheckboxLabel, type CheckboxLabelProps} from \"./checkbox-label\"\nimport {CheckboxRoot, type CheckboxRootProps} from \"./checkbox-root\"\n\nexport type {\n CheckboxContextProps,\n CheckboxControlProps,\n CheckboxErrorTextProps,\n CheckboxHiddenInputProps,\n CheckboxHintProps,\n CheckboxIndicatorProps,\n CheckboxLabelProps,\n CheckboxRootProps,\n}\n\ntype CheckboxComponent = typeof SimpleCheckbox & {\n Context: typeof CheckboxContext\n Control: typeof CheckboxControl\n ErrorText: typeof CheckboxErrorText\n HiddenInput: typeof CheckboxHiddenInput\n Hint: typeof CheckboxHint\n Indicator: typeof CheckboxIndicator\n Label: typeof CheckboxLabel\n Root: typeof CheckboxRoot\n}\n\nexport const Checkbox: CheckboxComponent = SimpleCheckbox as CheckboxComponent\n\nCheckbox.Context = CheckboxContext\nCheckbox.Control = CheckboxControl\nCheckbox.ErrorText = CheckboxErrorText\nCheckbox.HiddenInput = CheckboxHiddenInput\nCheckbox.Hint = CheckboxHint\nCheckbox.Indicator = CheckboxIndicator\nCheckbox.Label = CheckboxLabel\nCheckbox.Root = CheckboxRoot\n"],"mappings":"knCAMA,GAAa,CAACE,EAA4BC,GACxCF,EAAqC,CACnCG,SAAU,wBACVC,aAAc,+BACdC,OAAQ,GACT,CAAC,CCkBJ,SAAOW,kBAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAA2B,CAAAJ,WAAA,GAAAK,GAAAH,EAIhC,CAAAI,eAAAC,iBAAsCb,GAAsB,CAC5Dc,EAAmBV,GAAuB,CAC1CW,EAAoBZ,EAClBS,EAC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GAAAxB,EAAA,MAAAyB,GAAAzB,EAAA,MAAAoB,GAAApB,EAAA,MAAAsB,GAnBVI,EAAA,EAAC,aAAD,CAAa,GAAKrB,EAAW,GAAAY,EAAGE,KAAYF,eAA5C,CACEG,EACAE,EAGCC,EAKAC,EAKAC,EAKY,GAAAzB,EAAA,IAAAiB,EAAAjB,EAAA,IAAAK,EAAAL,EAAA,IAAAuB,EAAAvB,EAAA,IAAAwB,EAAAxB,EAAA,IAAAyB,EAAAzB,EAAA,IAAAoB,EAAApB,EAAA,IAAAsB,EAAAtB,EAAA,IAAA0B,GAAAA,EAAA1B,EAAA,IApBf0B,EC1HJ,SAAOQ,gBAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAAyB,CAAAJ,YAAAE,EAC9BG,EAAgBT,GAAoB,CAAAU,EACA,OADAH,EAAA,KAAAH,GAAAG,EAAA,KAAAE,GAC7BC,EAAAR,EAAWE,EAAUK,EAAQ,CAAAF,EAAA,GAAAH,EAAAG,EAAA,GAAAE,EAAAF,EAAA,GAAAG,GAAAA,EAAAH,EAAA,GAA7BG,ECuBT,IAAaC,EAA8BC,WAE3CD,EAASmB,QAAUjB,gBACnBF,EAASoB,QAAUhB,gBACnBJ,EAASqB,UAAYf,kBACrBN,EAASsB,YAAcd,oBACvBR,EAASuB,KAAOb,aAChBV,EAASwB,UAAYZ,kBACrBZ,EAASyB,MAAQX,cACjBd,EAAS0B,KAAOV"}
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{jsx,jsxs}from"react/jsx-runtime";import{FieldGroupErrorText,FieldGroupHint,FieldGroupItems,FieldGroupLabel,FieldGroupRoot}from"@qualcomm-ui/react/field-group";function CheckboxGroup({children,errorText,hint,label,...props}){let showHint=!!hint&&!props.invalid,showError=!!errorText&&props.invalid;return jsxs(FieldGroupRoot,{...props,children:[label&&jsx(FieldGroupLabel,{children:label}),jsx(FieldGroupItems,{children}),showHint&&jsx(FieldGroupHint,{children:hint}),showError&&jsx(FieldGroupErrorText,{children:errorText})]})}CheckboxGroup.Root=FieldGroupRoot;CheckboxGroup.Label=FieldGroupLabel;CheckboxGroup.Items=FieldGroupItems;CheckboxGroup.Hint=FieldGroupHint;CheckboxGroup.ErrorText=FieldGroupErrorText;export{CheckboxGroup};
3
- //# sourceMappingURL=index.js.map
1
+ "use client;";import{c as e}from"react/compiler-runtime";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{FieldGroupErrorText as r,FieldGroupHint as i,FieldGroupItems as a,FieldGroupLabel as o,FieldGroupRoot as s}from"@qualcomm-ui/react/field-group";function CheckboxGroup(c){let l=e(22),u,d,f,p,m;l[0]===c?(u=l[1],d=l[2],f=l[3],p=l[4],m=l[5]):({children:u,errorText:d,hint:f,label:p,...m}=c,l[0]=c,l[1]=u,l[2]=d,l[3]=f,l[4]=p,l[5]=m);let h=!!f&&!m.invalid,g=!!d&&m.invalid,_;l[6]===p?_=l[7]:(_=p&&t(o,{children:p}),l[6]=p,l[7]=_);let v;l[8]===u?v=l[9]:(v=t(a,{children:u}),l[8]=u,l[9]=v);let y;l[10]!==f||l[11]!==h?(y=h&&t(i,{children:f}),l[10]=f,l[11]=h,l[12]=y):y=l[12];let b;l[13]!==d||l[14]!==g?(b=g&&t(r,{children:d}),l[13]=d,l[14]=g,l[15]=b):b=l[15];let x;return l[16]!==m||l[17]!==_||l[18]!==v||l[19]!==y||l[20]!==b?(x=n(s,{...m,children:[_,v,y,b]}),l[16]=m,l[17]=_,l[18]=v,l[19]=y,l[20]=b,l[21]=x):x=l[21],x}CheckboxGroup.Root=s,CheckboxGroup.Label=o,CheckboxGroup.Items=a,CheckboxGroup.Hint=i,CheckboxGroup.ErrorText=r;export{CheckboxGroup};
2
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/checkbox-group/checkbox-group.tsx"],
4
- "sourcesContent": ["import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { FieldGroupErrorText, FieldGroupHint, FieldGroupItems, FieldGroupLabel, FieldGroupRoot } from \"@qualcomm-ui/react/field-group\";\nexport function CheckboxGroup({\n children,\n errorText,\n hint,\n label,\n ...props\n}) {\n const showHint = Boolean(hint) && !props.invalid;\n const showError = Boolean(errorText) && props.invalid;\n return /* @__PURE__ */jsxs(FieldGroupRoot, {\n ...props,\n children: [label && /* @__PURE__ */jsx(FieldGroupLabel, {\n children: label\n }), /* @__PURE__ */jsx(FieldGroupItems, {\n children\n }), showHint && /* @__PURE__ */jsx(FieldGroupHint, {\n children: hint\n }), showError && /* @__PURE__ */jsx(FieldGroupErrorText, {\n children: errorText\n })]\n });\n}\nCheckboxGroup.Root = FieldGroupRoot;\nCheckboxGroup.Label = FieldGroupLabel;\nCheckboxGroup.Items = FieldGroupItems;\nCheckboxGroup.Hint = FieldGroupHint;\nCheckboxGroup.ErrorText = FieldGroupErrorText;"],
5
- "mappings": ";AAAA,OAAS,IAAK,SAAY,oBAC1B,OAAS,oBAAqB,eAAgB,gBAAiB,gBAAiB,mBAAsB,iCAC/F,SAAS,cAAc,CAC5B,SACA,UACA,KACA,MACA,GAAG,KACL,EAAG,CACD,IAAM,SAAW,EAAQ,MAAS,CAAC,MAAM,QACnC,UAAY,EAAQ,WAAc,MAAM,QAC9C,OAAsB,KAAK,eAAgB,CACzC,GAAG,MACH,SAAU,CAAC,OAAwB,IAAI,gBAAiB,CACtD,SAAU,KACZ,CAAC,EAAkB,IAAI,gBAAiB,CACtC,QACF,CAAC,EAAG,UAA2B,IAAI,eAAgB,CACjD,SAAU,IACZ,CAAC,EAAG,WAA4B,IAAI,oBAAqB,CACvD,SAAU,SACZ,CAAC,CAAC,CACJ,CAAC,CACH,CACA,cAAc,KAAO,eACrB,cAAc,MAAQ,gBACtB,cAAc,MAAQ,gBACtB,cAAc,KAAO,eACrB,cAAc,UAAY",
6
- "names": []
7
- }
1
+ {"version":3,"file":"index.js","names":["ReactElement","ReactNode","FieldGroupErrorText","FieldGroupHint","FieldGroupItems","FieldGroupLabel","FieldGroupRoot","FieldGroupRootProps","CheckboxGroupProps","children","errorText","hint","label","CheckboxGroup","t0","$","_c","props","showHint","Boolean","invalid","showError","t1","t2","t3","t4","t5","Root","Label","Items","Hint","ErrorText"],"sources":["../../src/checkbox-group/checkbox-group.tsx"],"sourcesContent":["// 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 {\n FieldGroupErrorText,\n FieldGroupHint,\n FieldGroupItems,\n FieldGroupLabel,\n FieldGroupRoot,\n type FieldGroupRootProps,\n} from \"@qualcomm-ui/react/field-group\"\n\nexport interface CheckboxGroupProps extends FieldGroupRootProps {\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 * Error message displayed when invalid.\n */\n errorText?: string\n\n /**\n * Helper text displayed below items.\n */\n hint?: string\n\n /**\n * Group label text.\n */\n label?: string\n}\n\n/**\n * Groups multiple checkboxes with a label, hint, and error text.\n */\nexport function CheckboxGroup({\n children,\n errorText,\n hint,\n label,\n ...props\n}: CheckboxGroupProps): ReactElement {\n const showHint = Boolean(hint) && !props.invalid\n const showError = Boolean(errorText) && props.invalid\n\n return (\n <FieldGroupRoot {...props}>\n {label && <FieldGroupLabel>{label}</FieldGroupLabel>}\n <FieldGroupItems>{children}</FieldGroupItems>\n {showHint && <FieldGroupHint>{hint}</FieldGroupHint>}\n {showError && <FieldGroupErrorText>{errorText}</FieldGroupErrorText>}\n </FieldGroupRoot>\n )\n}\n\nCheckboxGroup.Root = FieldGroupRoot\nCheckboxGroup.Label = FieldGroupLabel\nCheckboxGroup.Items = FieldGroupItems\nCheckboxGroup.Hint = FieldGroupHint\nCheckboxGroup.ErrorText = FieldGroupErrorText\n"],"mappings":"kQAuCA,SAAOa,cAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,GAAA,CAAAP,EAAAC,EAAAC,EAAA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EACDC,EACCC,EACAC,EACc,GAAAV,EAAA,IAAAE,EAAAF,EAAA,IAAAO,EAAAP,EAAA,IAAAQ,EAAAR,EAAA,IAAAS,EAAAT,EAAA,IAAAU,EAAAV,EAAA,IAAAW,GAAAA,EAAAX,EAAA,IALjBW,EASJb,cAAcc,KAAOrB,EACrBO,cAAce,MAAQvB,EACtBQ,cAAcgB,MAAQzB,EACtBS,cAAciB,KAAO3B,EACrBU,cAAckB,UAAY7B"}
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{jsx}from"react/jsx-runtime";import{checkmarkAnatomy}from"@qualcomm-ui/qds-core/checkmark";var sharedProps={...checkmarkAnatomy.parts.indicatorIcon,fill:"none",xmlns:"http://www.w3.org/2000/svg"};function CheckmarkCheckedIcon({size,...props}){return size==="sm"?jsx("svg",{height:"8",viewBox:"0 0 10 8",width:"10",...sharedProps,...props,children:jsx("path",{d:"M3.74988 7.28125L0.624878 4.18294L1.61913 3.21875L3.74988 5.30975L8.38032 0.71875L9.37519 1.7045L3.74988 7.28125Z",fill:"currentColor"})}):size==="lg"?jsx("svg",{height:"10",viewBox:"0 0 12 10",width:"12",...sharedProps,...props,children:jsx("path",{d:"M4.46414 9.0312L0.624878 5.22472L1.84638 4.04016L4.46414 6.60908L10.1529 0.96875L11.3752 2.17981L4.46414 9.0312Z",fill:"currentColor"})}):jsx("svg",{height:"8",viewBox:"0 0 10 8",width:"10",...sharedProps,...props,children:jsx("path",{d:"M3.60701 7.65622L0.124878 4.20383L1.23275 3.12945L3.60701 5.45942L8.76662 0.34375L9.87519 1.44215L3.60701 7.65622Z",fill:"currentColor"})})}import{jsx as jsx3}from"react/jsx-runtime";import{jsx as jsx2}from"react/jsx-runtime";import{checkmarkAnatomy as checkmarkAnatomy2}from"@qualcomm-ui/qds-core/checkmark";var sharedProps2={...checkmarkAnatomy2.parts.indicatorIcon,fill:"none",xmlns:"http://www.w3.org/2000/svg"};function CheckmarkIndeterminateIcon({size,...props}){return size==="sm"?jsx2("svg",{height:"2",viewBox:"0 0 8 2",width:"8",...sharedProps2,...props,children:jsx2("path",{d:"M8 2H0V0H8V2Z",fill:"currentColor"})}):size==="lg"?jsx2("svg",{height:"4",viewBox:"0 0 10 4",width:"10",...sharedProps2,...props,children:jsx2("path",{d:"M10 3.5H0V0.5H10V3.5Z",fill:"currentColor"})}):jsx2("svg",{height:"2",viewBox:"0 0 10 2",width:"10",...sharedProps2,...props,children:jsx2("path",{d:"M9.5 2H0.5V0H9.5V2Z",fill:"currentColor"})})}function CheckmarkIcon({indeterminate,...props}){return indeterminate?jsx3(CheckmarkIndeterminateIcon,{...props}):jsx3(CheckmarkCheckedIcon,{...props})}import{c as _c}from"react/compiler-runtime";import{jsx as jsx4}from"react/jsx-runtime";import"react";import{createQdsCheckmarkApi}from"@qualcomm-ui/qds-core/checkmark";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 Checkmark(t0){let $=_c(7),t1;if($[0]!==t0){let{checked,disabled,indeterminate,size,...props}=t0,t2;$[2]!==checked||$[3]!==disabled||$[4]!==indeterminate||$[5]!==size?(t2=createQdsCheckmarkApi({checked,disabled,indeterminate,size},normalizeProps),$[2]=checked,$[3]=disabled,$[4]=indeterminate,$[5]=size,$[6]=t2):t2=$[6];let api=t2,mergedProps=mergeProps(api.getRootBindings(),props);t1=jsx4(PolymorphicElement,{as:"div",...mergedProps,children:jsx4(CheckmarkIcon,{indeterminate,...api.getIconBindings()})}),$[0]=t0,$[1]=t1}else t1=$[1];return t1}export{Checkmark,CheckmarkCheckedIcon,CheckmarkIcon,CheckmarkIndeterminateIcon};
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"react";import{normalizeProps as i}from"@qualcomm-ui/react-core/machine";import{checkmarkAnatomy as a,createQdsCheckmarkApi as o}from"@qualcomm-ui/qds-core/checkmark";var s={...a.parts.indicatorIcon,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function CheckmarkCheckedIcon(t){let r=e(12),i,a;if(r[0]===t?(i=r[1],a=r[2]):({size:a,...i}=t,r[0]=t,r[1]=i,r[2]=a),a===`sm`){let e;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=n(`path`,{d:`M3.74988 7.28125L0.624878 4.18294L1.61913 3.21875L3.74988 5.30975L8.38032 0.71875L9.37519 1.7045L3.74988 7.28125Z`,fill:`currentColor`}),r[3]=e):e=r[3];let t;return r[4]===i?t=r[5]:(t=n(`svg`,{height:`8`,viewBox:`0 0 10 8`,width:`10`,...s,...i,children:e}),r[4]=i,r[5]=t),t}if(a===`lg`){let e;r[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=n(`path`,{d:`M4.46414 9.0312L0.624878 5.22472L1.84638 4.04016L4.46414 6.60908L10.1529 0.96875L11.3752 2.17981L4.46414 9.0312Z`,fill:`currentColor`}),r[6]=e):e=r[6];let t;return r[7]===i?t=r[8]:(t=n(`svg`,{height:`10`,viewBox:`0 0 12 10`,width:`12`,...s,...i,children:e}),r[7]=i,r[8]=t),t}let o;r[9]===Symbol.for(`react.memo_cache_sentinel`)?(o=n(`path`,{d:`M3.60701 7.65622L0.124878 4.20383L1.23275 3.12945L3.60701 5.45942L8.76662 0.34375L9.87519 1.44215L3.60701 7.65622Z`,fill:`currentColor`}),r[9]=o):o=r[9];let c;return r[10]===i?c=r[11]:(c=n(`svg`,{height:`8`,viewBox:`0 0 10 8`,width:`10`,...s,...i,children:o}),r[10]=i,r[11]=c),c}var c={...a.parts.indicatorIcon,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function CheckmarkIndeterminateIcon(t){let r=e(12),i,a;if(r[0]===t?(i=r[1],a=r[2]):({size:a,...i}=t,r[0]=t,r[1]=i,r[2]=a),a===`sm`){let e;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=n(`path`,{d:`M8 2H0V0H8V2Z`,fill:`currentColor`}),r[3]=e):e=r[3];let t;return r[4]===i?t=r[5]:(t=n(`svg`,{height:`2`,viewBox:`0 0 8 2`,width:`8`,...c,...i,children:e}),r[4]=i,r[5]=t),t}if(a===`lg`){let e;r[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=n(`path`,{d:`M10 3.5H0V0.5H10V3.5Z`,fill:`currentColor`}),r[6]=e):e=r[6];let t;return r[7]===i?t=r[8]:(t=n(`svg`,{height:`4`,viewBox:`0 0 10 4`,width:`10`,...c,...i,children:e}),r[7]=i,r[8]=t),t}let o;r[9]===Symbol.for(`react.memo_cache_sentinel`)?(o=n(`path`,{d:`M9.5 2H0.5V0H9.5V2Z`,fill:`currentColor`}),r[9]=o):o=r[9];let s;return r[10]===i?s=r[11]:(s=n(`svg`,{height:`2`,viewBox:`0 0 10 2`,width:`10`,...c,...i,children:o}),r[10]=i,r[11]=s),s}function CheckmarkIcon(t){let r=e(6),i,a;r[0]===t?(i=r[1],a=r[2]):({indeterminate:i,...a}=t,r[0]=t,r[1]=i,r[2]=a);let o;return r[3]!==i||r[4]!==a?(o=n(i?CheckmarkIndeterminateIcon:CheckmarkCheckedIcon,{...a}),r[3]=i,r[4]=a,r[5]=o):o=r[5],o}function Checkmark(a){let s=e(17),c,l,u;if(s[0]!==a){let{checked:e,disabled:n,indeterminate:r,size:d,...f}=a;l=r;let p;s[4]!==e||s[5]!==n||s[6]!==l||s[7]!==d?(p=o({checked:e,disabled:n,indeterminate:l,size:d},i),s[4]=e,s[5]=n,s[6]=l,s[7]=d,s[8]=p):p=s[8],c=p,u=t(c.getRootBindings(),f),s[0]=a,s[1]=c,s[2]=l,s[3]=u}else c=s[1],l=s[2],u=s[3];let d=u,f;s[9]===c?f=s[10]:(f=c.getIconBindings(),s[9]=c,s[10]=f);let p;s[11]!==l||s[12]!==f?(p=n(CheckmarkIcon,{indeterminate:l,...f}),s[11]=l,s[12]=f,s[13]=p):p=s[13];let m;return s[14]!==d||s[15]!==p?(m=n(r,{as:`div`,...d,children:p}),s[14]=d,s[15]=p,s[16]=m):m=s[16],m}export{Checkmark,CheckmarkCheckedIcon,CheckmarkIcon,CheckmarkIndeterminateIcon};
2
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/checkmark/checkmark-checked-icon.tsx", "../../src/checkmark/checkmark-icon.tsx", "../../src/checkmark/checkmark-indeterminate-icon.tsx", "../../src/checkmark/checkmark.tsx"],
4
- "sourcesContent": ["import { jsx } from \"react/jsx-runtime\";\nimport { checkmarkAnatomy } from \"@qualcomm-ui/qds-core/checkmark\";\nconst sharedProps = {\n ...checkmarkAnatomy.parts.indicatorIcon,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n};\nexport function CheckmarkCheckedIcon({\n size,\n ...props\n}) {\n if (size === \"sm\") {\n return /* @__PURE__ */jsx(\"svg\", {\n height: \"8\",\n viewBox: \"0 0 10 8\",\n width: \"10\",\n ...sharedProps,\n ...props,\n children: /* @__PURE__ */jsx(\"path\", {\n d: \"M3.74988 7.28125L0.624878 4.18294L1.61913 3.21875L3.74988 5.30975L8.38032 0.71875L9.37519 1.7045L3.74988 7.28125Z\",\n fill: \"currentColor\"\n })\n });\n }\n if (size === \"lg\") {\n return /* @__PURE__ */jsx(\"svg\", {\n height: \"10\",\n viewBox: \"0 0 12 10\",\n width: \"12\",\n ...sharedProps,\n ...props,\n children: /* @__PURE__ */jsx(\"path\", {\n d: \"M4.46414 9.0312L0.624878 5.22472L1.84638 4.04016L4.46414 6.60908L10.1529 0.96875L11.3752 2.17981L4.46414 9.0312Z\",\n fill: \"currentColor\"\n })\n });\n }\n return /* @__PURE__ */jsx(\"svg\", {\n height: \"8\",\n viewBox: \"0 0 10 8\",\n width: \"10\",\n ...sharedProps,\n ...props,\n children: /* @__PURE__ */jsx(\"path\", {\n d: \"M3.60701 7.65622L0.124878 4.20383L1.23275 3.12945L3.60701 5.45942L8.76662 0.34375L9.87519 1.44215L3.60701 7.65622Z\",\n fill: \"currentColor\"\n })\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { CheckmarkCheckedIcon } from \"./checkmark-checked-icon\";\nimport { CheckmarkIndeterminateIcon } from \"./checkmark-indeterminate-icon\";\nexport function CheckmarkIcon({\n indeterminate,\n ...props\n}) {\n return indeterminate ? /* @__PURE__ */jsx(CheckmarkIndeterminateIcon, {\n ...props\n }) : /* @__PURE__ */jsx(CheckmarkCheckedIcon, {\n ...props\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { checkmarkAnatomy } from \"@qualcomm-ui/qds-core/checkmark\";\nconst sharedProps = {\n ...checkmarkAnatomy.parts.indicatorIcon,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n};\nexport function CheckmarkIndeterminateIcon({\n size,\n ...props\n}) {\n if (size === \"sm\") {\n return /* @__PURE__ */jsx(\"svg\", {\n height: \"2\",\n viewBox: \"0 0 8 2\",\n width: \"8\",\n ...sharedProps,\n ...props,\n children: /* @__PURE__ */jsx(\"path\", {\n d: \"M8 2H0V0H8V2Z\",\n fill: \"currentColor\"\n })\n });\n }\n if (size === \"lg\") {\n return /* @__PURE__ */jsx(\"svg\", {\n height: \"4\",\n viewBox: \"0 0 10 4\",\n width: \"10\",\n ...sharedProps,\n ...props,\n children: /* @__PURE__ */jsx(\"path\", {\n d: \"M10 3.5H0V0.5H10V3.5Z\",\n fill: \"currentColor\"\n })\n });\n }\n return /* @__PURE__ */jsx(\"svg\", {\n height: \"2\",\n viewBox: \"0 0 10 2\",\n width: \"10\",\n ...sharedProps,\n ...props,\n children: /* @__PURE__ */jsx(\"path\", {\n d: \"M9.5 2H0.5V0H9.5V2Z\",\n fill: \"currentColor\"\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { createQdsCheckmarkApi } from \"@qualcomm-ui/qds-core/checkmark\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { CheckmarkIcon } from \"./checkmark-icon\";\nexport function Checkmark(t0) {\n const $ = _c(7);\n let t1;\n if ($[0] !== t0) {\n const {\n checked,\n disabled,\n indeterminate,\n size,\n ...props\n } = t0;\n let t2;\n if ($[2] !== checked || $[3] !== disabled || $[4] !== indeterminate || $[5] !== size) {\n t2 = createQdsCheckmarkApi({\n checked,\n disabled,\n indeterminate,\n size\n }, normalizeProps);\n $[2] = checked;\n $[3] = disabled;\n $[4] = indeterminate;\n $[5] = size;\n $[6] = t2;\n } else {\n t2 = $[6];\n }\n const api = t2;\n const mergedProps = mergeProps(api.getRootBindings(), props);\n t1 = jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children: jsx(CheckmarkIcon, {\n indeterminate,\n ...api.getIconBindings()\n })\n });\n $[0] = t0;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n return t1;\n}"],
5
- "mappings": ";AAAA,OAAS,QAAW,oBACpB,OAAS,qBAAwB,kCACjC,IAAM,YAAc,CAClB,GAAG,iBAAiB,MAAM,cAC1B,KAAM,OACN,MAAO,4BACT,EACO,SAAS,qBAAqB,CACnC,KACA,GAAG,KACL,EAAG,CACD,OAAI,OAAS,KACW,IAAI,MAAO,CAC/B,OAAQ,IACR,QAAS,WACT,MAAO,KACP,GAAG,YACH,GAAG,MACH,SAAyB,IAAI,OAAQ,CACnC,EAAG,oHACH,KAAM,cACR,CAAC,CACH,CAAC,EAEC,OAAS,KACW,IAAI,MAAO,CAC/B,OAAQ,KACR,QAAS,YACT,MAAO,KACP,GAAG,YACH,GAAG,MACH,SAAyB,IAAI,OAAQ,CACnC,EAAG,mHACH,KAAM,cACR,CAAC,CACH,CAAC,EAEmB,IAAI,MAAO,CAC/B,OAA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J,QACA,SACA,cACA,KACA,GAAG,KACL,EAAI,GACA,GACA,EAAE,CAAC,IAAM,SAAW,EAAE,CAAC,IAAM,UAAY,EAAE,CAAC,IAAM,eAAiB,EAAE,CAAC,IAAM,MAC9E,GAAK,sBAAsB,CACzB,QACA,SACA,cACA,IACF,EAAG,cAAc,EACjB,EAAE,CAAC,EAAI,QACP,EAAE,CAAC,EAAI,SACP,EAAE,CAAC,EAAI,cACP,EAAE,CAAC,EAAI,KACP,EAAE,CAAC,EAAI,IAEP,GAAK,EAAE,CAAC,EAEV,IAAM,IAAM,GACN,YAAc,WAAW,IAAI,gBAAgB,EAAG,KAAK,EAC3D,GAAKC,KAAI,mBAAoB,CAC3B,GAAI,MACJ,GAAG,YACH,SAAUA,KAAI,cAAe,CAC3B,cACA,GAAG,IAAI,gBAAgB,CACzB,CAAC,CACH,CAAC,EACD,EAAE,CAAC,EAAI,GACP,EAAE,CAAC,EAAI,EACT,MACE,GAAK,EAAE,CAAC,EAEV,OAAO,EACT",
6
- "names": ["jsx", "jsx", "checkmarkAnatomy", "sharedProps", "jsx", "jsx", "jsx"]
7
- }
1
+ {"version":3,"file":"index.js","names":["ComponentPropsWithRef","ReactElement","QdsCheckboxSize","checkmarkAnatomy","DataAttributes","CheckmarkCheckedIconProps","size","sharedProps","parts","indicatorIcon","fill","xmlns","CheckmarkCheckedIcon","t0","$","_c","props","t1","Symbol","for","t2","ComponentPropsWithRef","ReactElement","QdsCheckboxSize","checkmarkAnatomy","DataAttributes","CheckmarkIndeterminateIconProps","size","sharedProps","parts","indicatorIcon","fill","xmlns","CheckmarkIndeterminateIcon","t0","$","_c","props","t1","Symbol","for","t2","ComponentPropsWithRef","ReactElement","QdsCheckboxSize","CheckmarkCheckedIcon","CheckmarkIndeterminateIcon","CheckboxIndicatorIconProps","indeterminate","size","CheckmarkIcon","t0","$","_c","props","t1","ReactElement","useMemo","createQdsCheckmarkApi","QdsCheckmarkApiProps","normalizeProps","ElementRenderProp","PolymorphicElement","mergeProps","CheckmarkIcon","CheckmarkProps","Checkmark","t0","$","_c","api","indeterminate","t1","checked","disabled","t2","size","props","t3","getRootBindings","mergedProps","getIconBindings","t4"],"sources":["../../src/checkmark/checkmark-checked-icon.tsx","../../src/checkmark/checkmark-indeterminate-icon.tsx","../../src/checkmark/checkmark-icon.tsx","../../src/checkmark/checkmark.tsx"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ComponentPropsWithRef, ReactElement} from \"react\"\n\nimport type {QdsCheckboxSize} from \"@qualcomm-ui/qds-core/checkbox\"\nimport {checkmarkAnatomy} from \"@qualcomm-ui/qds-core/checkmark\"\nimport type {DataAttributes} from \"@qualcomm-ui/utils/attributes\"\n\nexport interface CheckmarkCheckedIconProps extends ComponentPropsWithRef<\"svg\"> {\n size?: QdsCheckboxSize\n}\n\nconst sharedProps: ComponentPropsWithRef<\"svg\"> & DataAttributes = {\n ...checkmarkAnatomy.parts.indicatorIcon,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n}\n\nexport function CheckmarkCheckedIcon({\n size,\n ...props\n}: CheckmarkCheckedIconProps): ReactElement {\n if (size === \"sm\") {\n return (\n <svg height=\"8\" viewBox=\"0 0 10 8\" width=\"10\" {...sharedProps} {...props}>\n <path\n d=\"M3.74988 7.28125L0.624878 4.18294L1.61913 3.21875L3.74988 5.30975L8.38032 0.71875L9.37519 1.7045L3.74988 7.28125Z\"\n fill=\"currentColor\"\n />\n </svg>\n )\n }\n if (size === \"lg\") {\n return (\n <svg\n height=\"10\"\n viewBox=\"0 0 12 10\"\n width=\"12\"\n {...sharedProps}\n {...props}\n >\n <path\n d=\"M4.46414 9.0312L0.624878 5.22472L1.84638 4.04016L4.46414 6.60908L10.1529 0.96875L11.3752 2.17981L4.46414 9.0312Z\"\n fill=\"currentColor\"\n />\n </svg>\n )\n }\n return (\n <svg height=\"8\" viewBox=\"0 0 10 8\" width=\"10\" {...sharedProps} {...props}>\n <path\n d=\"M3.60701 7.65622L0.124878 4.20383L1.23275 3.12945L3.60701 5.45942L8.76662 0.34375L9.87519 1.44215L3.60701 7.65622Z\"\n fill=\"currentColor\"\n />\n </svg>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ComponentPropsWithRef, ReactElement} from \"react\"\n\nimport type {QdsCheckboxSize} from \"@qualcomm-ui/qds-core/checkbox\"\nimport {checkmarkAnatomy} from \"@qualcomm-ui/qds-core/checkmark\"\nimport type {DataAttributes} from \"@qualcomm-ui/utils/attributes\"\n\nexport interface CheckmarkIndeterminateIconProps extends ComponentPropsWithRef<\"svg\"> {\n size?: QdsCheckboxSize\n}\n\nconst sharedProps: ComponentPropsWithRef<\"svg\"> & DataAttributes = {\n ...checkmarkAnatomy.parts.indicatorIcon,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n}\n\nexport function CheckmarkIndeterminateIcon({\n size,\n ...props\n}: CheckmarkIndeterminateIconProps): ReactElement {\n if (size === \"sm\") {\n return (\n <svg height=\"2\" viewBox=\"0 0 8 2\" width=\"8\" {...sharedProps} {...props}>\n <path d=\"M8 2H0V0H8V2Z\" fill=\"currentColor\" />\n </svg>\n )\n }\n if (size === \"lg\") {\n return (\n <svg height=\"4\" viewBox=\"0 0 10 4\" width=\"10\" {...sharedProps} {...props}>\n <path d=\"M10 3.5H0V0.5H10V3.5Z\" fill=\"currentColor\" />\n </svg>\n )\n }\n return (\n <svg height=\"2\" viewBox=\"0 0 10 2\" width=\"10\" {...sharedProps} {...props}>\n <path d=\"M9.5 2H0.5V0H9.5V2Z\" fill=\"currentColor\" />\n </svg>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ComponentPropsWithRef, ReactElement} from \"react\"\n\nimport type {QdsCheckboxSize} from \"@qualcomm-ui/qds-core/checkbox\"\n\nimport {CheckmarkCheckedIcon} from \"./checkmark-checked-icon\"\nimport {CheckmarkIndeterminateIcon} from \"./checkmark-indeterminate-icon\"\n\nexport interface CheckboxIndicatorIconProps extends ComponentPropsWithRef<\"svg\"> {\n indeterminate: boolean | undefined\n size?: QdsCheckboxSize\n}\n\nexport function CheckmarkIcon({\n indeterminate,\n ...props\n}: CheckboxIndicatorIconProps): ReactElement {\n return indeterminate ? (\n <CheckmarkIndeterminateIcon {...props} />\n ) : (\n <CheckmarkCheckedIcon {...props} />\n )\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 {\n createQdsCheckmarkApi,\n type QdsCheckmarkApiProps,\n} from \"@qualcomm-ui/qds-core/checkmark\"\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\nimport {CheckmarkIcon} from \"./checkmark-icon\"\n\nexport interface CheckmarkProps\n extends ElementRenderProp<\"div\">, QdsCheckmarkApiProps {}\n\nexport function Checkmark({\n checked,\n disabled,\n indeterminate,\n size,\n ...props\n}: CheckmarkProps): ReactElement {\n const api = useMemo(\n () =>\n createQdsCheckmarkApi(\n {\n checked,\n disabled,\n indeterminate,\n size,\n },\n normalizeProps,\n ),\n [checked, disabled, indeterminate, size],\n )\n const mergedProps = mergeProps(api.getRootBindings(), props)\n\n return (\n <PolymorphicElement as=\"div\" {...mergedProps}>\n <CheckmarkIcon indeterminate={indeterminate} {...api.getIconBindings()} />\n </PolymorphicElement>\n )\n}\n"],"mappings":"8YAaA,IAAMO,EAA6D,CACjE,GAAGJ,EAAiBK,MAAMC,cAC1BC,KAAM,OACNC,MAAO,6BACR,CAED,SAAOC,qBAAAC,EA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H,EAAA,GAAAQ,EAAAR,EAAA,GAAAU,GAAAA,EAAAV,EAAA,GAVLE,EAEIQ,EAWgBN,EAAAT,EAAWO,EAAGS,iBAAkB,CAAEF,EAAM,CAAAT,EAAA,GAAAD,EAAAC,EAAA,GAAAE,EAAAF,EAAA,GAAAG,EAAAH,EAAA,GAAAI,OAAAF,EAAAF,EAAA,GAAAG,EAAAH,EAAA,GAAAI,EAAAJ,EAAA,GAA5D,IAAAY,EAAoBR,EAAwCG,EAAAP,EAAA,KAAAE,EAIcK,EAAAP,EAAA,KAArBO,EAAAL,EAAGW,iBAAkB,CAAAb,EAAA,GAAAE,EAAAF,EAAA,IAAAO,GAAA,IAAAG,EAAAV,EAAA,MAAAG,GAAAH,EAAA,MAAAO,GAAtEG,EAAA,EAAC,cAAD,CAA8BP,gBAAa,GAAMI,EAAyB,CAAA,CAAAP,EAAA,IAAAG,EAAAH,EAAA,IAAAO,EAAAP,EAAA,IAAAU,GAAAA,EAAAV,EAAA,IAAA,IAAAc,EACvD,OADuDd,EAAA,MAAAY,GAAAZ,EAAA,MAAAU,GAD5EI,EAAA,EAAC,EAAD,CAAuB,GAAA,MAAK,GAAKF,WAC/BF,EACmB,CAAA,CAAAV,EAAA,IAAAY,EAAAZ,EAAA,IAAAU,EAAAV,EAAA,IAAAc,GAAAA,EAAAd,EAAA,IAFrBc"}
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{jsx}from"react/jsx-runtime";import{collapsibleClasses}from"@qualcomm-ui/qds-core/collapsible";import{CoreCollapsible}from"@qualcomm-ui/react-core/collapsible";import{mergeProps}from"@qualcomm-ui/utils/merge-props";function CollapsibleContent(props){let mergedProps=mergeProps({className:collapsibleClasses.content},props);return jsx(CoreCollapsible.Content,{...mergedProps})}import{jsx as jsx2}from"react/jsx-runtime";import{CoreCollapsible as CoreCollapsible2}from"@qualcomm-ui/react-core/collapsible";function CollapsibleContext(props){return jsx2(CoreCollapsible2.Context,{...props})}import{jsx as jsx3}from"react/jsx-runtime";import{CoreCollapsible as CoreCollapsible3}from"@qualcomm-ui/react-core/collapsible";function CollapsibleRoot(props){return jsx3(CoreCollapsible3.Root,{...props})}import{jsx as jsx4}from"react/jsx-runtime";import{CoreCollapsible as CoreCollapsible4}from"@qualcomm-ui/react-core/collapsible";function CollapsibleTrigger(props){return jsx4(CoreCollapsible4.Trigger,{...props})}var Collapsible={Content:CollapsibleContent,Context:CollapsibleContext,Root:CollapsibleRoot,Trigger:CollapsibleTrigger};export{Collapsible};
3
- //# sourceMappingURL=index.js.map
1
+ "use client;";import{c as e}from"react/compiler-runtime";import{CoreCollapsible as t}from"@qualcomm-ui/react-core/collapsible";import{mergeProps as n}from"@qualcomm-ui/utils/merge-props";import{jsx as r}from"react/jsx-runtime";import{collapsibleClasses as i}from"@qualcomm-ui/qds-core/collapsible";function CollapsibleContent(a){let o=e(4),s;o[0]===a?s=o[1]:(s=n({className:i.content},a),o[0]=a,o[1]=s);let c=s,l;return o[2]===c?l=o[3]:(l=r(t.Content,{...c}),o[2]=c,o[3]=l),l}function CollapsibleContext(n){let i=e(2),a;return i[0]===n?a=i[1]:(a=r(t.Context,{...n}),i[0]=n,i[1]=a),a}function CollapsibleRoot(n){let i=e(2),a;return i[0]===n?a=i[1]:(a=r(t.Root,{...n}),i[0]=n,i[1]=a),a}function CollapsibleTrigger(n){let i=e(2),a;return i[0]===n?a=i[1]:(a=r(t.Trigger,{...n}),i[0]=n,i[1]=a),a}var a={Content:CollapsibleContent,Context:CollapsibleContext,Root:CollapsibleRoot,Trigger:CollapsibleTrigger};export{a as Collapsible};
2
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/collapsible/collapsible-content.tsx", "../../src/collapsible/collapsible-context.tsx", "../../src/collapsible/collapsible-root.tsx", "../../src/collapsible/collapsible-trigger.tsx", "../../src/collapsible/index.ts"],
4
- "sourcesContent": ["import { jsx } from \"react/jsx-runtime\";\nimport { collapsibleClasses } from \"@qualcomm-ui/qds-core/collapsible\";\nimport { CoreCollapsible } from \"@qualcomm-ui/react-core/collapsible\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function CollapsibleContent(props) {\n const mergedProps = mergeProps({\n className: collapsibleClasses.content\n }, props);\n return /* @__PURE__ */jsx(CoreCollapsible.Content, {\n ...mergedProps\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { CoreCollapsible } from \"@qualcomm-ui/react-core/collapsible\";\nexport function CollapsibleContext(props) {\n return /* @__PURE__ */jsx(CoreCollapsible.Context, {\n ...props\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { CoreCollapsible } from \"@qualcomm-ui/react-core/collapsible\";\nexport function CollapsibleRoot(props) {\n return /* @__PURE__ */jsx(CoreCollapsible.Root, {\n ...props\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { CoreCollapsible } from \"@qualcomm-ui/react-core/collapsible\";\nexport function CollapsibleTrigger(props) {\n return /* @__PURE__ */jsx(CoreCollapsible.Trigger, {\n ...props\n });\n}", "import { CollapsibleContent } from \"./collapsible-content\";\nimport { CollapsibleContext } from \"./collapsible-context\";\nimport { CollapsibleRoot } from \"./collapsible-root\";\nimport { CollapsibleTrigger } from \"./collapsible-trigger\";\nexport const Collapsible = {\n Content: CollapsibleContent,\n Context: CollapsibleContext,\n Root: CollapsibleRoot,\n Trigger: CollapsibleTrigger\n};"],
5
- "mappings": ";AAAA,OAAS,QAAW,oBACpB,OAAS,uBAA0B,oCACnC,OAAS,oBAAuB,sCAChC,OAAS,eAAkB,iCACpB,SAAS,mBAAmB,MAAO,CACxC,IAAM,YAAc,WAAW,CAC7B,UAAW,mBAAmB,OAChC,EAAG,KAAK,EACR,OAAsB,IAAI,gBAAgB,QAAS,CACjD,GAAG,WACL,CAAC,CACH,CCXA,OAAS,OAAAA,SAAW,oBACpB,OAAS,mBAAAC,qBAAuB,sCACzB,SAAS,mBAAmB,MAAO,CACxC,OAAsBD,KAAIC,iBAAgB,QAAS,CACjD,GAAG,KACL,CAAC,CACH,CCNA,OAAS,OAAAC,SAAW,oBACpB,OAAS,mBAAAC,qBAAuB,sCACzB,SAAS,gBAAgB,MAAO,CACrC,OAAsBD,KAAIC,iBAAgB,KAAM,CAC9C,GAAG,KACL,CAAC,CACH,CCNA,OAAS,OAAAC,SAAW,oBACpB,OAAS,mBAAAC,qBAAuB,sCACzB,SAAS,mBAAmB,MAAO,CACxC,OAAsBD,KAAIC,iBAAgB,QAAS,CACjD,GAAG,KACL,CAAC,CACH,CCFO,IAAM,YAAc,CACzB,QAAS,mBACT,QAAS,mBACT,KAAM,gBACN,QAAS,kBACX",
6
- "names": ["jsx", "CoreCollapsible", "jsx", "CoreCollapsible", "jsx", "CoreCollapsible"]
7
- }
1
+ {"version":3,"file":"index.js","names":["ReactElement","collapsibleClasses","CoreCollapsible","CoreCollapsibleContentProps","mergeProps","CollapsibleContentProps","CollapsibleContent","props","$","_c","t0","className","content","mergedProps","t1","ReactNode","CoreCollapsible","CoreCollapsibleContextProps","CollapsibleContextProps","CollapsibleContext","props","$","_c","t0","ReactElement","CoreCollapsible","CoreCollapsibleRootProps","CollapsibleRootProps","CollapsibleRoot","props","$","_c","t0","ReactElement","CoreCollapsible","CoreCollapsibleTriggerProps","CollapsibleTriggerProps","CollapsibleTrigger","props","$","_c","t0","CollapsibleContent","CollapsibleContentProps","CollapsibleContext","CollapsibleContextProps","CollapsibleRoot","CollapsibleRootProps","CollapsibleTrigger","CollapsibleTriggerProps","CollapsibleComponent","Content","Context","Root","Trigger","Collapsible"],"sources":["../../src/collapsible/collapsible-content.tsx","../../src/collapsible/collapsible-context.tsx","../../src/collapsible/collapsible-root.tsx","../../src/collapsible/collapsible-trigger.tsx","../../src/collapsible/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 {collapsibleClasses} from \"@qualcomm-ui/qds-core/collapsible\"\nimport {\n CoreCollapsible,\n type CoreCollapsibleContentProps,\n} from \"@qualcomm-ui/react-core/collapsible\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface CollapsibleContentProps extends CoreCollapsibleContentProps {}\n\n/**\n * A panel with collapsible contents. Renders a `<div>` element by default.\n */\nexport function CollapsibleContent(\n props: CollapsibleContentProps,\n): ReactElement {\n const mergedProps = mergeProps(\n {\n className: collapsibleClasses.content,\n },\n props,\n )\n\n return <CoreCollapsible.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 {\n CoreCollapsible,\n type CoreCollapsibleContextProps,\n} from \"@qualcomm-ui/react-core/collapsible\"\n\nexport interface CollapsibleContextProps extends CoreCollapsibleContextProps {}\n\nexport function CollapsibleContext(props: CollapsibleContextProps): ReactNode {\n return <CoreCollapsible.Context {...props} />\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 CoreCollapsible,\n type CoreCollapsibleRootProps,\n} from \"@qualcomm-ui/react-core/collapsible\"\n\nexport interface CollapsibleRootProps extends CoreCollapsibleRootProps {}\n\n/**\n * Groups all parts of the collapsible. Renders a `<div>` element by default.\n */\nexport function CollapsibleRoot(props: CollapsibleRootProps): ReactElement {\n return <CoreCollapsible.Root {...props} />\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 CoreCollapsible,\n type CoreCollapsibleTriggerProps,\n} from \"@qualcomm-ui/react-core/collapsible\"\n\nexport interface CollapsibleTriggerProps extends CoreCollapsibleTriggerProps {}\n\n/**\n * A button that opens and closes the collapsible content panel. Renders a\n * `<button>` element by default.\n */\nexport function CollapsibleTrigger(\n props: CollapsibleTriggerProps,\n): ReactElement {\n return <CoreCollapsible.Trigger {...props} />\n}\n","import {\n CollapsibleContent,\n type CollapsibleContentProps,\n} from \"./collapsible-content\"\nimport {\n CollapsibleContext,\n type CollapsibleContextProps,\n} from \"./collapsible-context\"\nimport {CollapsibleRoot, type CollapsibleRootProps} from \"./collapsible-root\"\nimport {\n CollapsibleTrigger,\n type CollapsibleTriggerProps,\n} from \"./collapsible-trigger\"\n\nexport type {\n CollapsibleContentProps,\n CollapsibleContextProps,\n CollapsibleRootProps,\n CollapsibleTriggerProps,\n}\n\ntype CollapsibleComponent = {\n Content: typeof CollapsibleContent\n Context: typeof CollapsibleContext\n /**\n * Groups all parts of the collapsible. Renders a `<div>` element by default.\n */\n Root: typeof CollapsibleRoot\n Trigger: typeof CollapsibleTrigger\n}\n\nexport const Collapsible: CollapsibleComponent = {\n Content: CollapsibleContent,\n Context: CollapsibleContext,\n Root: CollapsibleRoot,\n Trigger: CollapsibleTrigger,\n}\n"],"mappings":"0SAiBA,SAAOM,mBAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAAAC,EAAAF,EAAA,KAAAD,EAQJG,EAAAF,EAAA,IALmBE,EAAAN,EAClB,CAAAO,UACaV,EAAkBW,QAC9B,CACDL,EACD,CAAAC,EAAA,GAAAD,EAAAC,EAAA,GAAAE,GALD,IAAAG,EAAoBH,EAKnBI,EAEkD,OAFlDN,EAAA,KAAAK,EAEkDC,EAAAN,EAAA,IAA5CM,EAAA,EAAA,EAAA,QAAA,CAAA,GAA6BD,EAAe,CAAA,CAAAL,EAAA,GAAAK,EAAAL,EAAA,GAAAM,GAA5CA,ECfT,SAAOK,mBAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAAAC,EACwC,OADxCF,EAAA,KAAAD,EACwCG,EAAAF,EAAA,IAAtCE,EAAA,EAAA,EAAA,QAAA,CAAA,GAA6BH,EAAS,CAAA,CAAAC,EAAA,GAAAD,EAAAC,EAAA,GAAAE,GAAtCA,ECET,SAAOK,gBAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAAAC,EACqC,OADrCF,EAAA,KAAAD,EACqCG,EAAAF,EAAA,IAAnCE,EAAA,EAAA,EAAA,KAAA,CAAA,GAA0BH,EAAS,CAAA,CAAAC,EAAA,GAAAD,EAAAC,EAAA,GAAAE,GAAnCA,ECAT,SAAOK,mBAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAAAC,EAGwC,OAHxCF,EAAA,KAAAD,EAGwCG,EAAAF,EAAA,IAAtCE,EAAA,EAAA,EAAA,QAAA,CAAA,GAA6BH,EAAS,CAAA,CAAAC,EAAA,GAAAD,EAAAC,EAAA,GAAAE,GAAtCA,ECYT,IAAac,EAAoC,CAC/CJ,QAAST,mBACTU,QAASR,mBACTS,KAAMP,gBACNQ,QAASN,mBACV"}
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{jsx as jsx18,jsxs as jsxs4}from"react/jsx-runtime";import{useOptionalContentId}from"@qualcomm-ui/react-core/machine";import{Portal}from"@qualcomm-ui/react-core/portal";import{useControlledId}from"@qualcomm-ui/react-core/state";import{jsx}from"react/jsx-runtime";import{X}from"lucide-react";import{InlineIconButton}from"@qualcomm-ui/react/inline-icon-button";import{useQdsInputContext}from"@qualcomm-ui/react/input";import{CoreCombobox}from"@qualcomm-ui/react-core/combobox";import{mergeProps}from"@qualcomm-ui/utils/merge-props";function ComboboxClearTrigger(t0){let{render,...props}=t0,qdsContext=useQdsInputContext(),mergedProps=mergeProps(qdsContext.getClearTriggerBindings(),props);return jsx(CoreCombobox.ClearTrigger,{render:jsx(InlineIconButton,{icon:X,render,variant:"scale"}),...mergedProps})}import{c as _c}from"react/compiler-runtime";import{jsx as jsx2}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox2}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps2}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext}from"@qualcomm-ui/react-core/context";var[QdsComboboxContextProvider,useQdsComboboxContext]=createGuardedContext({hookName:"useQdsComboboxContext",providerName:"<QdsComboboxContextProvider>",strict:!0});function ComboboxContent(props){let $=_c(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps2(qdsContext.getContentBindings(),props);t0=jsx2(CoreCombobox2.Content,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{jsx as jsx3,jsxs}from"react/jsx-runtime";import{InputStartIcon,useQdsInputContext as useQdsInputContext2}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox3}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps3}from"@qualcomm-ui/utils/merge-props";function ComboboxControl(t0){let{children,...props}=t0,qdsContext=useQdsComboboxContext(),qdsInputContext=useQdsInputContext2(),mergedProps=mergeProps3(qdsContext.getControlBindings(),props);return jsxs(CoreCombobox3.Control,{...mergedProps,children:[qdsInputContext.startIcon?jsx3(InputStartIcon,{icon:qdsInputContext.startIcon}):null,children]})}import{c as _c2}from"react/compiler-runtime";import{jsx as jsx4}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox4}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps4}from"@qualcomm-ui/utils/merge-props";function ComboboxEmpty(props){let $=_c2(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps4(qdsContext.getItemBindings(),props);t0=jsx4(CoreCombobox4.Empty,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{jsx as jsx5}from"react/jsx-runtime";import{InputErrorIndicator}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox5}from"@qualcomm-ui/react-core/combobox";function ComboboxErrorIndicator({icon,render,...props}){return jsx5(CoreCombobox5.ErrorIndicator,{render:jsx5(InputErrorIndicator,{icon,render}),...props})}import{jsx as jsx6}from"react/jsx-runtime";import{InputErrorText}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox6}from"@qualcomm-ui/react-core/combobox";function ComboboxErrorText({icon,render,...props}){return jsx6(CoreCombobox6.ErrorText,{render:jsx6(InputErrorText,{icon,render}),...props})}import{jsx as jsx7}from"react/jsx-runtime";import{InputHint}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox7}from"@qualcomm-ui/react-core/combobox";function ComboboxHint({children,render,...props}){return jsx7(CoreCombobox7.Hint,{render:jsx7(InputHint,{render}),...props,children})}import{c as _c3}from"react/compiler-runtime";import{jsx as jsx8}from"react/jsx-runtime";import{useQdsInputContext as useQdsInputContext3}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox8}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps5}from"@qualcomm-ui/utils/merge-props";function ComboboxInput(props){let $=_c3(3),qdsContext=useQdsInputContext3(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps5(qdsContext.getInputBindings(),props);t0=jsx8(CoreCombobox8.Input,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c6}from"react/compiler-runtime";import{Fragment,jsx as jsx12,jsxs as jsxs2}from"react/jsx-runtime";import{Fragment as Fragment2}from"react";import{useComboboxContext}from"@qualcomm-ui/react-core/combobox";import{HighlightText}from"@qualcomm-ui/react-core/highlight";import{renderProp}from"@qualcomm-ui/react-core/system";import{c as _c4}from"react/compiler-runtime";import{jsx as jsx9}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox9}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps6}from"@qualcomm-ui/utils/merge-props";function ComboboxItem(props){let $=_c4(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps6(qdsContext.getItemBindings(),props);t0=jsx9(CoreCombobox9.Item,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{jsx as jsx10}from"react/jsx-runtime";import{Check}from"lucide-react";import{Icon}from"@qualcomm-ui/react/icon";import{CoreCombobox as CoreCombobox10}from"@qualcomm-ui/react-core/combobox";function ComboboxItemIndicator({children,...props}){return jsx10(CoreCombobox10.ItemIndicator,{...props,children:children??jsx10(Icon,{icon:Check})})}import{c as _c5}from"react/compiler-runtime";import{jsx as jsx11}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox11}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps7}from"@qualcomm-ui/utils/merge-props";function ComboboxItemText(props){let $=_c5(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps7(qdsContext.getItemTextBindings(),props);t0=jsx11(CoreCombobox11.ItemText,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}function ComboboxItems(t0){let $=_c6(7),{highlightMatchingText,renderItem}=t0,context=useComboboxContext();if(renderItem){let t12;return $[0]!==context.collection||$[1]!==renderItem?(t12=jsx12(Fragment,{children:context.collection.items.map(item=>{let value=context.collection.getItemValue(item);return jsx12(Fragment2,{children:renderProp(renderItem,{item})},value)})}),$[0]=context.collection,$[1]=renderItem,$[2]=t12):t12=$[2],t12}let t1;return $[3]!==context.collection||$[4]!==context.inputValue||$[5]!==highlightMatchingText?(t1=jsx12(Fragment,{children:context.collection.items.map(item_0=>{let label=context.collection.stringifyItem(item_0),value_0=context.collection.getItemValue(item_0);return jsx12(Fragment2,{children:jsxs2(ComboboxItem,{item:item_0,children:[jsx12(ComboboxItemText,{children:highlightMatchingText?jsx12(HighlightText,{ignoreCase:!0,query:context.inputValue??"",text:label??""}):label}),jsx12(ComboboxItemIndicator,{})]})},value_0)})}),$[3]=context.collection,$[4]=context.inputValue,$[5]=highlightMatchingText,$[6]=t1):t1=$[6],t1}import{jsx as jsx13}from"react/jsx-runtime";import{InputLabel}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox12,useComboboxContext as useComboboxContext2}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps8}from"@qualcomm-ui/utils/merge-props";function ComboboxLabel(t0){let{render,...props}=t0,comboboxContext=useComboboxContext2(),qdsContext=useQdsComboboxContext(),mergedProps=mergeProps8(qdsContext.getLabelBindings(),props);return jsx13(CoreCombobox12.Label,{render:jsx13(InputLabel,{render,required:comboboxContext.required}),...mergedProps})}import{c as _c7}from"react/compiler-runtime";import{jsx as jsx14}from"react/jsx-runtime";import{CoreCombobox as CoreCombobox13}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps9}from"@qualcomm-ui/utils/merge-props";function ComboboxPositioner(props){let $=_c7(3),qdsContext=useQdsComboboxContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps9(qdsContext.getPositionerBindings(),props);t0=jsx14(CoreCombobox13.Positioner,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c8}from"react/compiler-runtime";import{jsx as jsx15}from"react/jsx-runtime";import"react";import{createQdsInputApi}from"@qualcomm-ui/qds-core/input";import{createQdsSelectApi}from"@qualcomm-ui/qds-core/select";import{QdsInputContextProvider}from"@qualcomm-ui/react/input";import{CoreCombobox as CoreCombobox14}from"@qualcomm-ui/react-core/combobox";import{normalizeProps}from"@qualcomm-ui/react-core/machine";import{mergeProps as mergeProps10}from"@qualcomm-ui/utils/merge-props";function ComboboxRoot(t0){let $=_c8(7),t1;if($[0]!==t0){let{icon,size,...props}=t0,t2;$[2]!==size?(t2=createQdsSelectApi({size},normalizeProps),$[2]=size,$[3]=t2):t2=$[3];let qdsContext=t2,t3;$[4]!==icon||$[5]!==size?(t3=createQdsInputApi({size,startIcon:icon},normalizeProps),$[4]=icon,$[5]=size,$[6]=t3):t3=$[6];let qdsInputApi=t3,mergedProps=mergeProps10(qdsContext.getRootBindings(),props);t1=jsx15(QdsComboboxContextProvider,{value:qdsContext,children:jsx15(QdsInputContextProvider,{value:qdsInputApi,children:jsx15(CoreCombobox14.Root,{...mergedProps})})}),$[0]=t0,$[1]=t1}else t1=$[1];return t1}import{jsx as jsx16}from"react/jsx-runtime";import{ChevronDown}from"lucide-react";import{InlineIconButton as InlineIconButton2}from"@qualcomm-ui/react/inline-icon-button";import{CoreCombobox as CoreCombobox15}from"@qualcomm-ui/react-core/combobox";import{mergeProps as mergeProps11}from"@qualcomm-ui/utils/merge-props";function ComboboxTrigger(t0){let{icon:t1,render,...props}=t0,icon=t1===void 0?ChevronDown:t1,qdsContext=useQdsComboboxContext(),mergedProps=mergeProps11(qdsContext.getIndicatorBindings(),props);return jsx16(CoreCombobox15.Trigger,{render:jsx16(InlineIconButton2,{icon,render,size:qdsContext.size==="sm"?"sm":"md",variant:"scale"}),...mergedProps})}import{jsx as jsx17,jsxs as jsxs3}from"react/jsx-runtime";import{Fragment as Fragment3,useEffect,useRef}from"react";import{useVirtualizer}from"@tanstack/react-virtual";import{useComboboxContext as useComboboxContext3}from"@qualcomm-ui/react-core/combobox";import{useNoMemo}from"@qualcomm-ui/react-core/compat";import{HighlightText as HighlightText2}from"@qualcomm-ui/react-core/highlight";import{useMergedRef}from"@qualcomm-ui/react-core/refs";import{mergeProps as mergeProps12}from"@qualcomm-ui/utils/merge-props";function ComboboxVirtualContent({children,highlightMatchingText,ref,renderItem,virtualOptions,...props}){let{collection,inputValue,open,setScrollToIndexFn}=useComboboxContext3(),qdsContext=useQdsComboboxContext(),localRef=useRef(null),mergedRef=useMergedRef(ref,localRef);useEffect(()=>{let frame=requestAnimationFrame(()=>{let content=localRef.current;if(!content)return;let positioner=content.closest('[data-combobox-part="positioner"]');positioner&&positioner.style.setProperty("--scrollbar-width",`${positioner.offsetWidth-positioner.clientWidth}px`)});return()=>cancelAnimationFrame(frame)},[inputValue,open]);let virtualizer=useVirtualizer({count:collection.items.length,enabled:open,estimateSize:()=>qdsContext.size==="sm"?32:40,getScrollElement:()=>localRef.current.closest('[data-combobox-part="positioner"]')||localRef.current,overscan:5,paddingEnd:2,scrollPaddingEnd:2,...virtualOptions}),mergedProps=mergeProps12(qdsContext.getContentBindings(),{style:{height:`${useNoMemo(()=>virtualizer.getTotalSize())}px`}},props),timerRef=useRef(void 0);useEffect(()=>{setScrollToIndexFn(details=>{let scrollOptions={align:"auto",behavior:"auto"};details&&(details.immediate?virtualizer.scrollToIndex(details.index,scrollOptions):(clearTimeout(timerRef.current),timerRef.current=setTimeout(()=>{virtualizer.scrollToIndex(details.index,scrollOptions)})))})},[setScrollToIndexFn,virtualizer]);let virtualItems=useNoMemo(()=>virtualizer.getVirtualItems());return renderItem?jsxs3(ComboboxContent,{...mergedProps,ref:mergedRef,"data-virtual":!0,children:[children,virtualItems.map(virtualItem=>{let item=collection.items.at(virtualItem.index),value=collection.getItemValue(item);return jsx17(Fragment3,{children:renderItem({"data-virtual":"",item,style:{"--virtual-item-start":`${virtualItem.start}px`}})},value)})]}):jsxs3(ComboboxContent,{...mergedProps,ref:mergedRef,"data-virtual":!0,children:[children,virtualItems.map(virtualItem_0=>{let item_0=collection.items.at(virtualItem_0.index),label=collection.stringifyItem(item_0),value_0=collection.getItemValue(item_0);return jsxs3(ComboboxItem,{"data-virtual":!0,item:item_0,style:{"--virtual-item-start":`${virtualItem_0.start}px`},children:[jsx17(ComboboxItemText,{children:highlightMatchingText?jsx17(HighlightText2,{ignoreCase:!0,query:inputValue,text:label??""}):label}),jsx17(ComboboxItemIndicator,{})]},value_0)})]})}function Combobox(t0){let{"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,clearTriggerProps,contentProps,controlProps,emptyMessage,emptyProps,errorIndicatorProps,errorText,errorTextProps,highlightMatchingText,hint,hintProps,inputProps:inputPropsProp,label,labelProps,portalProps,positionerProps,renderItem,triggerProps,virtual,...props}=t0,emptyContent=emptyMessage||emptyProps?.children||"No results found",labelContent=label||labelProps?.children,hintContent=hint||hintProps?.children,errorTextContent=errorText||errorTextProps?.children,inputProps={...inputPropsProp};ariaLabel!==void 0&&(inputProps["aria-label"]=ariaLabel),ariaLabelledBy!==void 0&&(inputProps["aria-labelledby"]=ariaLabelledBy);let ids={clearTrigger:useOptionalContentId(!clearTriggerProps?.hidden,clearTriggerProps),content:useControlledId(contentProps?.id),control:useControlledId(controlProps?.id),errorText:useOptionalContentId(errorTextContent,errorTextProps),hint:useOptionalContentId(hintContent,hintProps),input:useControlledId(inputProps?.id),label:useOptionalContentId(labelContent,labelProps),positioner:useControlledId(positionerProps?.id),root:useControlledId(props.id),...props.ids};return jsxs4(ComboboxRoot,{...props,ids,children:[labelContent?jsx18(ComboboxLabel,{...labelProps,id:ids.label,children:labelContent}):null,jsxs4(ComboboxControl,{...controlProps,id:ids.control,children:[jsx18(ComboboxInput,{...inputProps,id:ids.input}),jsx18(ComboboxClearTrigger,{...clearTriggerProps,id:ids.clearTrigger}),jsx18(ComboboxErrorIndicator,{...errorIndicatorProps}),jsx18(ComboboxTrigger,{...triggerProps,id:ids.trigger})]}),jsx18(Portal,{...portalProps,children:jsx18(ComboboxPositioner,{...positionerProps,id:ids.positioner,children:virtual?jsx18(ComboboxVirtualContent,{...contentProps,highlightMatchingText,id:ids.content,renderItem,children:jsx18(ComboboxEmpty,{...emptyProps,children:emptyContent})}):jsxs4(ComboboxContent,{...contentProps,id:ids.content,children:[jsx18(ComboboxEmpty,{...emptyProps,children:emptyContent}),jsx18(ComboboxItems,{highlightMatchingText,renderItem})]})})}),errorTextContent?jsx18(ComboboxErrorText,{...errorTextProps,id:ids.errorText,children:errorTextContent}):null,hintContent?jsx18(ComboboxHint,{...hintProps,id:ids.hint,children:hintContent}):null]})}import{c as _c9}from"react/compiler-runtime";import{useComboboxContext as useComboboxContext4}from"@qualcomm-ui/react-core/combobox";import{renderProp as renderProp2}from"@qualcomm-ui/react-core/system";function ComboboxContext(t0){let $=_c9(3),{children}=t0,context=useComboboxContext4(),t1;return $[0]!==children||$[1]!==context?(t1=renderProp2(children,context),$[0]=children,$[1]=context,$[2]=t1):t1=$[2],t1}var Combobox2=Combobox;Combobox2.ClearTrigger=ComboboxClearTrigger;Combobox2.Content=ComboboxContent;Combobox2.Context=ComboboxContext;Combobox2.Control=ComboboxControl;Combobox2.Empty=ComboboxEmpty;Combobox2.ErrorIndicator=ComboboxErrorIndicator;Combobox2.ErrorText=ComboboxErrorText;Combobox2.Hint=ComboboxHint;Combobox2.Input=ComboboxInput;Combobox2.ItemIndicator=ComboboxItemIndicator;Combobox2.ItemText=ComboboxItemText;Combobox2.Item=ComboboxItem;Combobox2.Items=ComboboxItems;Combobox2.Label=ComboboxLabel;Combobox2.Positioner=ComboboxPositioner;Combobox2.Root=ComboboxRoot;Combobox2.Trigger=ComboboxTrigger;Combobox2.VirtualContent=ComboboxVirtualContent;export{Combobox2 as Combobox,QdsComboboxContextProvider,useQdsComboboxContext};
3
- //# 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{Fragment as n,jsx as r,jsxs as i}from"react/jsx-runtime";import{renderProp as a}from"@qualcomm-ui/react-core/system";import{Check as o,ChevronDown as s,X as c}from"lucide-react";import{Icon as l}from"@qualcomm-ui/react/icon";import{Fragment as u,useEffect as d,useRef as f}from"react";import{normalizeProps as p,useOptionalContentId as m}from"@qualcomm-ui/react-core/machine";import{useControlledId as h}from"@qualcomm-ui/react-core/state";import{createGuardedContext as g}from"@qualcomm-ui/react-core/context";import{Portal as _}from"@qualcomm-ui/react-core/portal";import{InputErrorIndicator as v,InputErrorText as y,InputHint as b,InputLabel as x,InputStartIcon as S,QdsInputContextProvider as C,useQdsInputContext as w}from"@qualcomm-ui/react/input";import{InlineIconButton as T}from"@qualcomm-ui/react/inline-icon-button";import{CoreCombobox as E,useComboboxContext as D}from"@qualcomm-ui/react-core/combobox";import{HighlightText as O}from"@qualcomm-ui/react-core/highlight";import{createQdsInputApi as k}from"@qualcomm-ui/qds-core/input";import{createQdsSelectApi as A}from"@qualcomm-ui/qds-core/select";import{useVirtualizer as j}from"@tanstack/react-virtual";import{useNoMemo as M}from"@qualcomm-ui/react-core/compat";import{useMergedRef as N}from"@qualcomm-ui/react-core/refs";function ComboboxClearTrigger(n){let i=e(5),{render:a,...o}=n,s=t(w().getClearTriggerBindings(),o),l;i[0]===a?l=i[1]:(l=r(T,{icon:c,render:a,variant:`scale`}),i[0]=a,i[1]=l);let u;return i[2]!==s||i[3]!==l?(u=r(E.ClearTrigger,{render:l,...s}),i[2]=s,i[3]=l,i[4]=u):u=i[4],u}var[P,F]=g({hookName:`useQdsComboboxContext`,providerName:`<QdsComboboxContextProvider>`,strict:!0});function ComboboxContent(n){let i=e(5),a=F(),o;i[0]!==n||i[1]!==a?(o=t(a.getContentBindings(),n),i[0]=n,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=r(E.Content,{...s}),i[3]=s,i[4]=c),c}function ComboboxControl(n){let a=e(6),{children:o,...s}=n,c=F(),l=w(),u=t(c.getControlBindings(),s),d;a[0]===l.startIcon?d=a[1]:(d=l.startIcon?r(S,{icon:l.startIcon}):null,a[0]=l.startIcon,a[1]=d);let f;return a[2]!==o||a[3]!==u||a[4]!==d?(f=i(E.Control,{...u,children:[d,o]}),a[2]=o,a[3]=u,a[4]=d,a[5]=f):f=a[5],f}function ComboboxEmpty(n){let i=e(5),a=F(),o;i[0]!==n||i[1]!==a?(o=t(a.getItemBindings(),n),i[0]=n,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=r(E.Empty,{...s}),i[3]=s,i[4]=c),c}function ComboboxErrorIndicator(t){let n=e(10),i,a,o;n[0]===t?(i=n[1],a=n[2],o=n[3]):({icon:i,render:o,...a}=t,n[0]=t,n[1]=i,n[2]=a,n[3]=o);let s;n[4]!==i||n[5]!==o?(s=r(v,{icon:i,render:o}),n[4]=i,n[5]=o,n[6]=s):s=n[6];let c;return n[7]!==a||n[8]!==s?(c=r(E.ErrorIndicator,{render:s,...a}),n[7]=a,n[8]=s,n[9]=c):c=n[9],c}function ComboboxErrorText(t){let n=e(10),i,a,o;n[0]===t?(i=n[1],a=n[2],o=n[3]):({icon:i,render:o,...a}=t,n[0]=t,n[1]=i,n[2]=a,n[3]=o);let s;n[4]!==i||n[5]!==o?(s=r(y,{icon:i,render:o}),n[4]=i,n[5]=o,n[6]=s):s=n[6];let c;return n[7]!==a||n[8]!==s?(c=r(E.ErrorText,{render:s,...a}),n[7]=a,n[8]=s,n[9]=c):c=n[9],c}function ComboboxHint(t){let n=e(10),i,a,o;n[0]===t?(i=n[1],a=n[2],o=n[3]):({children:i,render:o,...a}=t,n[0]=t,n[1]=i,n[2]=a,n[3]=o);let s;n[4]===o?s=n[5]:(s=r(b,{render:o}),n[4]=o,n[5]=s);let c;return n[6]!==i||n[7]!==a||n[8]!==s?(c=r(E.Hint,{render:s,...a,children:i}),n[6]=i,n[7]=a,n[8]=s,n[9]=c):c=n[9],c}function ComboboxInput(n){let i=e(5),a=w(),o;i[0]!==n||i[1]!==a?(o=t(a.getInputBindings(),n),i[0]=n,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=r(E.Input,{...s}),i[3]=s,i[4]=c),c}function ComboboxItem(n){let i=e(5),a=F(),o;i[0]!==n||i[1]!==a?(o=t(a.getItemBindings(),n),i[0]=n,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=r(E.Item,{...s}),i[3]=s,i[4]=c),c}function ComboboxItemIndicator(t){let n=e(8),i,a;n[0]===t?(i=n[1],a=n[2]):({children:i,...a}=t,n[0]=t,n[1]=i,n[2]=a);let s;n[3]===i?s=n[4]:(s=i??r(l,{icon:o}),n[3]=i,n[4]=s);let c;return n[5]!==a||n[6]!==s?(c=r(E.ItemIndicator,{...a,children:s}),n[5]=a,n[6]=s,n[7]=c):c=n[7],c}function ComboboxItemText(n){let i=e(5),a=F(),o;i[0]!==n||i[1]!==a?(o=t(a.getItemTextBindings(),n),i[0]=n,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=r(E.ItemText,{...s}),i[3]=s,i[4]=c),c}function ComboboxItems(t){let o=e(11),{highlightMatchingText:s,renderItem:c}=t,l=D();if(c){let e;o[0]!==l.collection||o[1]!==c?(e=l.collection.items.map(e=>{let t=l.collection.getItemValue(e);return r(u,{children:a(c,{item:e})},t)}),o[0]=l.collection,o[1]=c,o[2]=e):e=o[2];let t;return o[3]===e?t=o[4]:(t=r(n,{children:e}),o[3]=e,o[4]=t),t}let d;o[5]!==l.collection||o[6]!==l.inputValue||o[7]!==s?(d=l.collection.items.map(e=>{let t=l.collection.stringifyItem(e),n=l.collection.getItemValue(e);return r(u,{children:i(ComboboxItem,{item:e,children:[r(ComboboxItemText,{children:s?r(O,{ignoreCase:!0,query:l.inputValue??``,text:t??``}):t}),r(ComboboxItemIndicator,{})]})},n)}),o[5]=l.collection,o[6]=l.inputValue,o[7]=s,o[8]=d):d=o[8];let f;return o[9]===d?f=o[10]:(f=r(n,{children:d}),o[9]=d,o[10]=f),f}function ComboboxLabel(n){let i=e(6),{render:a,...o}=n,s=D(),c=t(F().getLabelBindings(),o),l;i[0]!==s.required||i[1]!==a?(l=r(x,{render:a,required:s.required}),i[0]=s.required,i[1]=a,i[2]=l):l=i[2];let u;return i[3]!==c||i[4]!==l?(u=r(E.Label,{render:l,...c}),i[3]=c,i[4]=l,i[5]=u):u=i[5],u}function ComboboxPositioner(n){let i=e(5),a=F(),o;i[0]!==n||i[1]!==a?(o=t(a.getPositionerBindings(),n),i[0]=n,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=r(E.Positioner,{...s}),i[3]=s,i[4]=c),c}function ComboboxRoot(n){let i=e(17),a,o,s;if(i[0]!==n){let{icon:e,size:r,...c}=n,l;i[4]===r?l=i[5]:(l=A({size:r},p),i[4]=r,i[5]=l),a=l;let u;i[6]!==e||i[7]!==r?(u=k({size:r,startIcon:e},p),i[6]=e,i[7]=r,i[8]=u):u=i[8],o=u,s=t(a.getRootBindings(),c),i[0]=n,i[1]=a,i[2]=o,i[3]=s}else a=i[1],o=i[2],s=i[3];let c=s,l;i[9]===c?l=i[10]:(l=r(E.Root,{...c}),i[9]=c,i[10]=l);let u;i[11]!==o||i[12]!==l?(u=r(C,{value:o,children:l}),i[11]=o,i[12]=l,i[13]=u):u=i[13];let d;return i[14]!==a||i[15]!==u?(d=r(P,{value:a,children:u}),i[14]=a,i[15]=u,i[16]=d):d=i[16],d}function ComboboxTrigger(n){let i=e(7),{icon:a,render:o,...c}=n,l=a===void 0?s:a,u=F(),d=t(u.getIndicatorBindings(),c),f=u.size===`sm`?`sm`:`md`,p;i[0]!==l||i[1]!==o||i[2]!==f?(p=r(T,{icon:l,render:o,size:f,variant:`scale`}),i[0]=l,i[1]=o,i[2]=f,i[3]=p):p=i[3];let m;return i[4]!==d||i[5]!==p?(m=r(E.Trigger,{render:p,...d}),i[4]=d,i[5]=p,i[6]=m):m=i[6],m}function ComboboxVirtualContent({children:e,highlightMatchingText:n,ref:a,renderItem:o,virtualOptions:s,...c}){let{collection:l,inputValue:p,open:m,setScrollToIndexFn:h}=D(),g=F(),_=f(null),v=N(a,_);d(()=>{let e=requestAnimationFrame(()=>{let e=_.current;if(!e)return;let t=e.closest(`[data-combobox-part="positioner"]`);t&&t.style.setProperty(`--scrollbar-width`,`${t.offsetWidth-t.clientWidth}px`)});return()=>cancelAnimationFrame(e)},[p,m]);let y=j({count:l.items.length,enabled:m,estimateSize:()=>g.size===`sm`?32:40,getScrollElement:()=>_.current.closest(`[data-combobox-part="positioner"]`)||_.current,overscan:5,paddingEnd:2,scrollPaddingEnd:2,...s}),b=t(g.getContentBindings(),{style:{height:`${M(()=>y.getTotalSize())}px`}},c),x=f(void 0);d(()=>{h(e=>{let t={align:`auto`,behavior:`auto`};e&&(e.immediate?y.scrollToIndex(e.index,t):(clearTimeout(x.current),x.current=setTimeout(()=>{y.scrollToIndex(e.index,t)})))})},[h,y]);let S=M(()=>y.getVirtualItems());return o?i(ComboboxContent,{...b,ref:v,"data-virtual":!0,children:[e,S.map(e=>{let t=l.items.at(e.index),n=l.getItemValue(t);return r(u,{children:o({"data-virtual":``,item:t,style:{"--virtual-item-start":`${e.start}px`}})},n)})]}):i(ComboboxContent,{...b,ref:v,"data-virtual":!0,children:[e,S.map(e=>{let t=l.items.at(e.index),a=l.stringifyItem(t),o=l.getItemValue(t);return i(ComboboxItem,{"data-virtual":!0,item:t,style:{"--virtual-item-start":`${e.start}px`},children:[r(ComboboxItemText,{children:n?r(O,{ignoreCase:!0,query:p,text:a??``}):a}),r(ComboboxItemIndicator,{})]},o)})]})}function Combobox$1(t){let n=e(91),a,o,s,c,l,u,d,f,p,g,v,y,b,x,S,C,w,T,E,D,O,k;n[0]===t?(a=n[1],o=n[2],s=n[3],c=n[4],l=n[5],u=n[6],d=n[7],f=n[8],p=n[9],g=n[10],v=n[11],y=n[12],b=n[13],x=n[14],S=n[15],C=n[16],w=n[17],T=n[18],E=n[19],D=n[20],O=n[21],k=n[22]):({"aria-label":a,"aria-labelledby":o,clearTriggerProps:s,contentProps:c,controlProps:l,emptyMessage:u,emptyProps:d,errorIndicatorProps:f,errorText:p,errorTextProps:g,highlightMatchingText:v,hint:y,hintProps:b,inputProps:x,label:S,labelProps:C,portalProps:w,positionerProps:T,renderItem:D,triggerProps:O,virtual:k,...E}=t,n[0]=t,n[1]=a,n[2]=o,n[3]=s,n[4]=c,n[5]=l,n[6]=u,n[7]=d,n[8]=f,n[9]=p,n[10]=g,n[11]=v,n[12]=y,n[13]=b,n[14]=x,n[15]=S,n[16]=C,n[17]=w,n[18]=T,n[19]=E,n[20]=D,n[21]=O,n[22]=k);let A=u||d?.children||`No results found`,j=S||C?.children,M=y||b?.children,N=p||g?.children,P;n[23]!==a||n[24]!==o||n[25]!==x?(P={...x},a!==void 0&&(P[`aria-label`]=a),o!==void 0&&(P[`aria-labelledby`]=o),n[23]=a,n[24]=o,n[25]=x,n[26]=P):P=n[26];let F=m(!s?.hidden,s),I=h(c?.id),L=h(l?.id),R=m(N,g),z=m(M,b),ee=h(P?.id),te=m(j,C),ne=h(T?.id),re=h(E.id),B;n[27]!==E.ids||n[28]!==F||n[29]!==I||n[30]!==L||n[31]!==R||n[32]!==z||n[33]!==ee||n[34]!==te||n[35]!==ne||n[36]!==re?(B={clearTrigger:F,content:I,control:L,errorText:R,hint:z,input:ee,label:te,positioner:ne,root:re,...E.ids},n[27]=E.ids,n[28]=F,n[29]=I,n[30]=L,n[31]=R,n[32]=z,n[33]=ee,n[34]=te,n[35]=ne,n[36]=re,n[37]=B):B=n[37];let V=B,H;n[38]!==V.label||n[39]!==j||n[40]!==C?(H=j?r(ComboboxLabel,{...C,id:V.label,children:j}):null,n[38]=V.label,n[39]=j,n[40]=C,n[41]=H):H=n[41];let U;n[42]!==V.input||n[43]!==P?(U=r(ComboboxInput,{...P,id:V.input}),n[42]=V.input,n[43]=P,n[44]=U):U=n[44];let W;n[45]!==s||n[46]!==V.clearTrigger?(W=r(ComboboxClearTrigger,{...s,id:V.clearTrigger}),n[45]=s,n[46]=V.clearTrigger,n[47]=W):W=n[47];let G;n[48]===f?G=n[49]:(G=r(ComboboxErrorIndicator,{...f}),n[48]=f,n[49]=G);let K;n[50]!==V.trigger||n[51]!==O?(K=r(ComboboxTrigger,{...O,id:V.trigger}),n[50]=V.trigger,n[51]=O,n[52]=K):K=n[52];let q;n[53]!==l||n[54]!==V.control||n[55]!==U||n[56]!==W||n[57]!==G||n[58]!==K?(q=i(ComboboxControl,{...l,id:V.control,children:[U,W,G,K]}),n[53]=l,n[54]=V.control,n[55]=U,n[56]=W,n[57]=G,n[58]=K,n[59]=q):q=n[59];let J;n[60]!==c||n[61]!==A||n[62]!==d||n[63]!==v||n[64]!==V.content||n[65]!==D||n[66]!==k?(J=k?r(ComboboxVirtualContent,{...c,highlightMatchingText:v,id:V.content,renderItem:D,children:r(ComboboxEmpty,{...d,children:A})}):i(ComboboxContent,{...c,id:V.content,children:[r(ComboboxEmpty,{...d,children:A}),r(ComboboxItems,{highlightMatchingText:v,renderItem:D})]}),n[60]=c,n[61]=A,n[62]=d,n[63]=v,n[64]=V.content,n[65]=D,n[66]=k,n[67]=J):J=n[67];let Y;n[68]!==V.positioner||n[69]!==T||n[70]!==J?(Y=r(ComboboxPositioner,{...T,id:V.positioner,children:J}),n[68]=V.positioner,n[69]=T,n[70]=J,n[71]=Y):Y=n[71];let X;n[72]!==w||n[73]!==Y?(X=r(_,{...w,children:Y}),n[72]=w,n[73]=Y,n[74]=X):X=n[74];let Z;n[75]!==N||n[76]!==g||n[77]!==V.errorText?(Z=N?r(ComboboxErrorText,{...g,id:V.errorText,children:N}):null,n[75]=N,n[76]=g,n[77]=V.errorText,n[78]=Z):Z=n[78];let Q;n[79]!==M||n[80]!==b||n[81]!==V.hint?(Q=M?r(ComboboxHint,{...b,id:V.hint,children:M}):null,n[79]=M,n[80]=b,n[81]=V.hint,n[82]=Q):Q=n[82];let $;return n[83]!==V||n[84]!==E||n[85]!==H||n[86]!==q||n[87]!==X||n[88]!==Z||n[89]!==Q?($=i(ComboboxRoot,{...E,ids:V,children:[H,q,X,Z,Q]}),n[83]=V,n[84]=E,n[85]=H,n[86]=q,n[87]=X,n[88]=Z,n[89]=Q,n[90]=$):$=n[90],$}function ComboboxContext(t){let n=e(3),{children:r}=t,i=D(),o;return n[0]!==r||n[1]!==i?(o=a(r,i),n[0]=r,n[1]=i,n[2]=o):o=n[2],o}var I=Combobox$1;I.ClearTrigger=ComboboxClearTrigger,I.Content=ComboboxContent,I.Context=ComboboxContext,I.Control=ComboboxControl,I.Empty=ComboboxEmpty,I.ErrorIndicator=ComboboxErrorIndicator,I.ErrorText=ComboboxErrorText,I.Hint=ComboboxHint,I.Input=ComboboxInput,I.ItemIndicator=ComboboxItemIndicator,I.ItemText=ComboboxItemText,I.Item=ComboboxItem,I.Items=ComboboxItems,I.Label=ComboboxLabel,I.Positioner=ComboboxPositioner,I.Root=ComboboxRoot,I.Trigger=ComboboxTrigger,I.VirtualContent=ComboboxVirtualContent;export{I as Combobox,P as QdsComboboxContextProvider,F as useQdsComboboxContext};
2
+ //# sourceMappingURL=index.js.map