@qualcomm-ui/react 1.23.0 → 1.23.1

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 (108) 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/index.js +2 -3
  14. package/dist/button/index.js.map +1 -7
  15. package/dist/card/index.js +2 -3
  16. package/dist/card/index.js.map +1 -7
  17. package/dist/checkbox/index.js +2 -3
  18. package/dist/checkbox/index.js.map +1 -7
  19. package/dist/checkbox-group/index.js +2 -3
  20. package/dist/checkbox-group/index.js.map +1 -7
  21. package/dist/checkmark/index.js +2 -3
  22. package/dist/checkmark/index.js.map +1 -7
  23. package/dist/collapsible/index.js +2 -3
  24. package/dist/collapsible/index.js.map +1 -7
  25. package/dist/combobox/index.js +2 -3
  26. package/dist/combobox/index.js.map +1 -7
  27. package/dist/dialog/index.js +2 -3
  28. package/dist/dialog/index.js.map +1 -7
  29. package/dist/divider/index.js +2 -3
  30. package/dist/divider/index.js.map +1 -7
  31. package/dist/drawer/index.js +2 -3
  32. package/dist/drawer/index.js.map +1 -7
  33. package/dist/field-group/index.js +2 -3
  34. package/dist/field-group/index.js.map +1 -7
  35. package/dist/file-input/index.js +2 -3
  36. package/dist/file-input/index.js.map +1 -7
  37. package/dist/file-upload/index.js +2 -3
  38. package/dist/file-upload/index.js.map +1 -7
  39. package/dist/footer/index.js +1 -2
  40. package/dist/header-bar/index.js +2 -3
  41. package/dist/header-bar/index.js.map +1 -7
  42. package/dist/icon/index.js +2 -3
  43. package/dist/icon/index.js.map +1 -7
  44. package/dist/inline-icon-button/index.js +2 -3
  45. package/dist/inline-icon-button/index.js.map +1 -7
  46. package/dist/inline-notification/index.js +2 -3
  47. package/dist/inline-notification/index.js.map +1 -7
  48. package/dist/input/index.js +2 -3
  49. package/dist/input/index.js.map +1 -7
  50. package/dist/kbd/index.js +2 -3
  51. package/dist/kbd/index.js.map +1 -7
  52. package/dist/link/index.js +2 -3
  53. package/dist/link/index.js.map +1 -7
  54. package/dist/menu/index.js +2 -3
  55. package/dist/menu/index.js.map +1 -7
  56. package/dist/number-input/index.js +2 -3
  57. package/dist/number-input/index.js.map +1 -7
  58. package/dist/pagination/index.js +2 -3
  59. package/dist/pagination/index.js.map +1 -7
  60. package/dist/password-input/index.js +2 -3
  61. package/dist/password-input/index.js.map +1 -7
  62. package/dist/popover/index.js +2 -3
  63. package/dist/popover/index.js.map +1 -7
  64. package/dist/progress/index.js +2 -3
  65. package/dist/progress/index.js.map +1 -7
  66. package/dist/progress-ring/index.js +2 -3
  67. package/dist/progress-ring/index.js.map +1 -7
  68. package/dist/qds-theme/index.js +2 -3
  69. package/dist/qds-theme/index.js.map +1 -7
  70. package/dist/qui-root/index.js +2 -3
  71. package/dist/qui-root/index.js.map +1 -7
  72. package/dist/radio/index.js +2 -3
  73. package/dist/radio/index.js.map +1 -7
  74. package/dist/segmented-control/index.js +2 -3
  75. package/dist/segmented-control/index.js.map +1 -7
  76. package/dist/select/index.js +2 -3
  77. package/dist/select/index.js.map +1 -7
  78. package/dist/side-nav/index.js +2 -3
  79. package/dist/side-nav/index.js.map +1 -7
  80. package/dist/slider/index.js +2 -3
  81. package/dist/slider/index.js.map +1 -7
  82. package/dist/stepper/index.js +2 -3
  83. package/dist/stepper/index.js.map +1 -7
  84. package/dist/stepper/stepper-completed-content.d.ts +2 -1
  85. package/dist/stepper/stepper-completed-content.d.ts.map +1 -1
  86. package/dist/switch/index.js +2 -3
  87. package/dist/switch/index.js.map +1 -7
  88. package/dist/switch-group/index.js +2 -3
  89. package/dist/switch-group/index.js.map +1 -7
  90. package/dist/table/index.js +2 -3
  91. package/dist/table/index.js.map +1 -7
  92. package/dist/tabs/index.js +2 -3
  93. package/dist/tabs/index.js.map +1 -7
  94. package/dist/tag/index.js +2 -3
  95. package/dist/tag/index.js.map +1 -7
  96. package/dist/text-area/index.js +2 -3
  97. package/dist/text-area/index.js.map +1 -7
  98. package/dist/text-input/index.js +2 -3
  99. package/dist/text-input/index.js.map +1 -7
  100. package/dist/toast/index.js +2 -3
  101. package/dist/toast/index.js.map +1 -7
  102. package/dist/tooltip/index.js +2 -3
  103. package/dist/tooltip/index.js.map +1 -7
  104. package/dist/tree/index.js +2 -3
  105. package/dist/tree/index.js.map +1 -7
  106. package/dist/tsbuildinfo +1 -1
  107. package/package.json +5 -5
  108. package/dist/footer/index.js.map +0 -7
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/pagination/pagination-context.tsx", "../../src/pagination/pagination-next-trigger.tsx", "../../src/pagination/qds-pagination-context.ts", "../../src/pagination/pagination-page-buttons.tsx", "../../src/pagination/pagination-page-item.tsx", "../../src/pagination/pagination-page-items.tsx", "../../src/pagination/pagination-page-metadata.tsx", "../../src/pagination/pagination-page-size.tsx", "../../src/pagination/pagination-page-size-label.tsx", "../../src/pagination/pagination-prev-trigger.tsx", "../../src/pagination/pagination-root.tsx", "../../src/pagination/index.ts"],
4
- "sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport { usePaginationContext } from \"@qualcomm-ui/react-core/pagination\";\nimport { renderProp } from \"@qualcomm-ui/react-core/system\";\nexport function PaginationContext(t0) {\n const $ = _c(3);\n const {\n children\n } = t0;\n const context = usePaginationContext();\n let t1;\n if ($[0] !== children || $[1] !== context) {\n t1 = renderProp(children, context);\n $[0] = children;\n $[1] = context;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n return t1;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { ChevronRight } from \"lucide-react\";\nimport { IconOrNode } from \"@qualcomm-ui/react/icon\";\nimport { usePaginationNextTrigger } from \"@qualcomm-ui/react-core/pagination\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsPaginationContext } from \"./qds-pagination-context\";\nexport function PaginationNextTrigger(t0) {\n const {\n icon: t1,\n ...props\n } = t0;\n const icon = t1 === undefined ? ChevronRight : t1;\n const contextProps = usePaginationNextTrigger();\n const qdsContext = useQdsPaginationContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getPageItemBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"button\",\n ...mergedProps,\n children: jsx(IconOrNode, {\n icon\n })\n });\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [QdsPaginationContextProvider, useQdsPaginationContext] = createGuardedContext({\n hookName: \"useQdsPaginationContext\",\n providerName: \"<QdsPaginationContextProvider>\",\n strict: true\n});", "import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { ActionGroup } from \"@qualcomm-ui/react/action-group\";\nimport { Pagination } from \"./index\";\nexport function PaginationPageButtons({\n ...props\n}) {\n return /* @__PURE__ */jsxs(ActionGroup, {\n ...props,\n children: [/* @__PURE__ */jsx(Pagination.PrevTrigger, {}), /* @__PURE__ */jsx(Pagination.PageItems, {}), /* @__PURE__ */jsx(Pagination.NextTrigger, {})]\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { Ellipsis } from \"lucide-react\";\nimport { Icon } from \"@qualcomm-ui/react/icon\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nexport function PaginationPageItem({\n ...props\n}) {\n const itemType = props[\"data-type\"];\n return /* @__PURE__ */jsx(PolymorphicElement, {\n as: \"button\",\n ...props,\n children: itemType === \"page\" ? props[\"data-page\"] : /* @__PURE__ */jsx(Icon, {\n icon: Ellipsis\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nimport { Fragment as Fragment2 } from \"react\";\nimport { renderProp } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { PaginationContext } from \"./pagination-context\";\nimport { PaginationPageItem } from \"./pagination-page-item\";\nimport { useQdsPaginationContext } from \"./qds-pagination-context\";\nexport function PaginationPageItems(t0) {\n const $ = _c(4);\n const {\n children,\n renderItem: renderItemProp\n } = t0;\n const PageItem = renderItemProp || PaginationPageItem;\n const qdsContext = useQdsPaginationContext();\n let t1;\n if ($[0] !== PageItem || $[1] !== children || $[2] !== qdsContext) {\n t1 = jsx(PaginationContext, {\n children: context => jsxs(Fragment, {\n children: [context.pageItems.map((item, index) => {\n const itemProps = context.getPageItemBindings(item);\n return jsx(Fragment2, {\n children: renderProp(PageItem, mergeProps(itemProps, qdsContext.getPageItemBindings()))\n }, index);\n }), children]\n })\n });\n $[0] = PageItem;\n $[1] = children;\n $[2] = qdsContext;\n $[3] = t1;\n } else {\n t1 = $[3];\n }\n return t1;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { usePaginationPageMetadata } from \"@qualcomm-ui/react-core/pagination\";\nimport { PolymorphicElement, renderProp } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsPaginationContext } from \"./qds-pagination-context\";\nexport function PaginationPageMetadata(t0) {\n const {\n children,\n ...props\n } = t0;\n const {\n pageMetadata,\n props: contextProps\n } = usePaginationPageMetadata();\n const qdsContext = useQdsPaginationContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getPageMetadataBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children: renderProp(children || DefaultMetadata, pageMetadata)\n });\n}\nconst DefaultMetadata = ({\n page,\n pageCount\n}) => {\n return `${page} of ${pageCount}`;\n};", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nimport { Menu } from \"@qualcomm-ui/react/menu\";\nimport { usePaginationContext } from \"@qualcomm-ui/react-core/pagination\";\nimport { Portal } from \"@qualcomm-ui/react-core/portal\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsPaginationContext } from \"./qds-pagination-context\";\nexport function PaginationPageSize(t0) {\n const $ = _c(2);\n const {\n children,\n options,\n ...props\n } = t0;\n const context = usePaginationContext();\n const qdsContext = useQdsPaginationContext();\n const pageSize = context.pageSize;\n const setPageSize = context.setPageSize;\n const pageSizeLabelId = context.pageSizeLabelId;\n const mergedProps = mergeProps(context.getPageSizeBindings(), qdsContext.getPageSizeBindings(), props);\n let t1;\n if ($[0] !== setPageSize) {\n t1 = value => {\n setPageSize(parseInt(value));\n };\n $[0] = setPageSize;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n return jsxs(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children: [children, jsxs(Menu.Root, {\n onSelect: t1,\n size: qdsContext.size,\n children: [jsx(Menu.Trigger, {\n children: jsx(Menu.Button, {\n \"aria-labelledby\": pageSizeLabelId,\n emphasis: \"neutral\",\n size: qdsContext.size,\n variant: \"outline\",\n children: pageSize\n })\n }), jsx(Portal, {\n children: jsx(Menu.Positioner, {\n children: jsx(Menu.Content, {\n children: options.map(_temp)\n })\n })\n })]\n })]\n });\n}\nfunction _temp(opt) {\n return jsx(Menu.Item, {\n value: `${opt}`,\n children: opt\n }, opt);\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { paginationClasses } from \"@qualcomm-ui/qds-core/pagination\";\nimport { usePaginationPageSizeLabel } from \"@qualcomm-ui/react-core/pagination\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PaginationPageSizeLabel(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 = usePaginationPageSizeLabel(t1);\n const mergedProps = mergeProps(contextProps, {\n className: paginationClasses.pageSizeLabel\n }, props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { ChevronLeft } from \"lucide-react\";\nimport { IconOrNode } from \"@qualcomm-ui/react/icon\";\nimport { usePaginationPrevTrigger } from \"@qualcomm-ui/react-core/pagination\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsPaginationContext } from \"./qds-pagination-context\";\nexport function PaginationPrevTrigger(t0) {\n const {\n icon: t1,\n ...props\n } = t0;\n const icon = t1 === undefined ? ChevronLeft : t1;\n const contextProps = usePaginationPrevTrigger();\n const qdsContext = useQdsPaginationContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getPageItemBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"button\",\n ...mergedProps,\n children: jsx(IconOrNode, {\n icon\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { splitProps } from \"@qualcomm-ui/core/pagination\";\nimport { createQdsPaginationApi } from \"@qualcomm-ui/qds-core/pagination\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { PaginationContextProvider, usePagination } from \"@qualcomm-ui/react-core/pagination\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsPaginationContextProvider } from \"./qds-pagination-context\";\nexport function PaginationRoot(t0) {\n const $ = _c(2);\n const {\n children,\n size,\n ...props\n } = t0;\n const [paginationProps, localProps] = splitProps(props);\n const api = usePagination(paginationProps);\n let t1;\n if ($[0] !== size) {\n t1 = createQdsPaginationApi({\n size\n }, normalizeProps);\n $[0] = size;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const qdsContext = t1;\n const mergedProps = mergeProps(api.getRootBindings(), qdsContext.getRootBindings(), localProps);\n return jsx(QdsPaginationContextProvider, {\n value: qdsContext,\n children: jsx(PaginationContextProvider, {\n value: api,\n children: jsx(PolymorphicElement, {\n as: \"nav\",\n ...mergedProps,\n children\n })\n })\n });\n}", "import { PaginationContext } from \"./pagination-context\";\nimport { PaginationNextTrigger } from \"./pagination-next-trigger\";\nimport { PaginationPageButtons } from \"./pagination-page-buttons\";\nimport { PaginationPageItem } from \"./pagination-page-item\";\nimport { PaginationPageItems } from \"./pagination-page-items\";\nimport { PaginationPageMetadata } from \"./pagination-page-metadata\";\nimport { PaginationPageSize } from \"./pagination-page-size\";\nimport { PaginationPageSizeLabel } from \"./pagination-page-size-label\";\nimport { PaginationPrevTrigger } from \"./pagination-prev-trigger\";\nimport { PaginationRoot } from \"./pagination-root\";\nexport * from \"./qds-pagination-context\";\nexport const Pagination = {\n Context: PaginationContext,\n NextTrigger: PaginationNextTrigger,\n PageButtons: PaginationPageButtons,\n PageItem: PaginationPageItem,\n PageItems: PaginationPageItems,\n PageMetadata: PaginationPageMetadata,\n PageSize: PaginationPageSize,\n PageSizeLabel: PaginationPageSizeLabel,\n PrevTrigger: PaginationPrevTrigger,\n Root: PaginationRoot\n};"],
5
- "mappings": ";AAAA,OAAS,KAAK,OAAU,yBACxB,OAAS,yBAA4B,qCACrC,OAAS,eAAkB,iCACpB,SAAS,kBAAkB,GAAI,CACpC,IAAM,EAAI,GAAG,CAAC,EACR,CACJ,QACF,EAAI,GACE,QAAU,qBAAqB,EACjC,GACJ,OAAI,EAAE,CAAC,IAAM,UAAY,EAAE,CAAC,IAAM,SAChC,GAAK,WAAW,SAAU,OAAO,EACjC,EAAE,CAAC,EAAI,SACP,EAAE,CAAC,EAAI,QACP,EAA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AC,gBAAkB,iCAEpB,SAAS,eAAe,GAAI,CACjC,IAAM,EAAIC,IAAG,CAAC,EACR,CACJ,SACA,KACA,GAAG,KACL,EAAI,GACE,CAAC,gBAAiB,UAAU,EAAI,WAAW,KAAK,EAChD,IAAM,cAAc,eAAe,EACrC,GACA,EAAE,CAAC,IAAM,MACX,GAAK,uBAAuB,CAC1B,IACF,EAAG,cAAc,EACjB,EAAE,CAAC,EAAI,KACP,EAAE,CAAC,EAAI,IAEP,GAAK,EAAE,CAAC,EAEV,IAAM,WAAa,GACb,YAAcC,YAAW,IAAI,gBAAgB,EAAG,WAAW,gBAAgB,EAAG,UAAU,EAC9F,OAAOC,KAAI,6BAA8B,CACvC,MAAO,WACP,SAAUA,KAAI,0BAA2B,CACvC,MAAO,IACP,SAAUA,KAAIC,oBAAoB,CAChC,GAAI,MACJ,GAAG,YACH,QACF,CAAC,CACH,CAAC,CACH,CAAC,CACH,CC/BO,IAAM,WAAa,CACxB,QAAS,kBACT,YAAa,sBACb,YAAa,sBACb,SAAU,mBACV,UAAW,oBACX,aAAc,uBACd,SAAU,mBACV,cAAe,wBACf,YAAa,sBACb,KAAM,cACR",
6
- "names": ["jsx", "jsx", "jsx", "PolymorphicElement", "_c", "jsx", "jsxs", "renderProp", "mergeProps", "_c", "jsx", "jsxs", "renderProp", "mergeProps", "jsx", "PolymorphicElement", "renderProp", "mergeProps", "mergeProps", "jsx", "PolymorphicElement", "renderProp", "_c", "jsx", "jsxs", "usePaginationContext", "PolymorphicElement", "mergeProps", "_c", "usePaginationContext", "mergeProps", "jsxs", "PolymorphicElement", "jsx", "_c", "jsx", "PolymorphicElement", "mergeProps", "jsx", "IconOrNode", "PolymorphicElement", "mergeProps", "mergeProps", "jsx", "PolymorphicElement", "IconOrNode", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement"]
7
- }
1
+ {"version":3,"file":"index.js","names":["ReactNode","PaginationApi","usePaginationContext","RenderProp","renderProp","PaginationContextProps","children","PaginationContext","t0","$","_c","context","t1","QdsPaginationApi","createGuardedContext","QdsPaginationContextProvider","useQdsPaginationContext","hookName","providerName","strict","ReactElement","ChevronRight","IconOrNode","LucideIconOrElement","usePaginationNextTrigger","ElementRenderProp","PolymorphicElement","mergeProps","useQdsPaginationContext","PaginationNextTriggerProps","icon","PaginationNextTrigger","t0","$","_c","t1","props","undefined","contextProps","qdsContext","mergedProps","getPageItemBindings","t2","t3","ReactElement","ActionGroup","ActionGroupProps","Pagination","PaginationPageButtonsProps","Omit","PaginationPageButtons","t0","$","_c","props","t1","t2","t3","Symbol","for","t4","ReactElement","Ellipsis","PaginationPageItemBindings","Icon","ElementRenderProp","PolymorphicElement","PaginationPageItemProps","PaginationPageItem","t0","$","_c","props","itemType","t1","t2","Fragment","ReactElement","ReactNode","PaginationPageItemBindings","BindingRenderProp","renderProp","mergeProps","PaginationContext","PaginationPageItem","useQdsPaginationContext","PaginationPageItemsProps","children","renderItem","PaginationPageItems","t0","$","_c","renderItemProp","PageItem","qdsContext","t1","context","pageItems","map","item","index","itemProps","getPageItemBindings","ReactElement","ReactNode","PageMetadata","usePaginationPageMetadata","ElementRenderProp","PolymorphicElement","RenderProp","renderProp","mergeProps","useQdsPaginationContext","PaginationPageMetadataProps","Omit","children","PaginationPageMetadata","t0","$","_c","props","pageMetadata","contextProps","qdsContext","mergedProps","getPageMetadataBindings","t1","DefaultMetadata","t2","t3","page","pageCount","ReactElement","ReactNode","Menu","usePaginationContext","Portal","ElementRenderProp","PolymorphicElement","mergeProps","useQdsPaginationContext","PaginationPageSizeProps","children","options","PaginationPageSize","t0","$","_c","props","context","qdsContext","pageSize","setPageSize","pageSizeLabelId","mergedProps","getPageSizeBindings","t1","value","parseInt","t2","size","t3","t4","map","_temp","t5","t6","t7","opt","ReactElement","ReactNode","paginationClasses","usePaginationPageSizeLabel","ElementRenderProp","PolymorphicElement","mergeProps","PaginationPageSizeLabelProps","children","id","PaginationPageSizeLabel","t0","$","_c","props","t1","contextProps","mergedProps","className","pageSizeLabel","t2","ReactElement","ChevronLeft","IconOrNode","LucideIconOrElement","usePaginationPrevTrigger","ElementRenderProp","PolymorphicElement","mergeProps","useQdsPaginationContext","PaginationPrevTriggerProps","icon","PaginationPrevTrigger","t0","$","_c","t1","props","undefined","contextProps","qdsContext","mergedProps","getPageItemBindings","t2","t3","ReactElement","ReactNode","useMemo","splitProps","createQdsPaginationApi","QdsPaginationApi","QdsPaginationApiProps","normalizeProps","PaginationContextProvider","usePagination","UsePaginationProps","ElementRenderProp","PolymorphicElement","mergeProps","QdsPaginationContextProvider","PaginationRootProps","children","PaginationRoot","t0","$","_c","size","props","paginationProps","localProps","api","t1","qdsContext","mergedProps","getRootBindings","t2","t3","t4","PaginationContext","PaginationContextProps","PaginationNextTrigger","PaginationNextTriggerProps","PaginationPageButtons","PaginationPageButtonsProps","PaginationPageItem","PaginationPageItemProps","PaginationPageItems","PaginationPageItemsProps","PaginationPageMetadata","PaginationPageMetadataProps","PaginationPageSize","PaginationPageSizeProps","PaginationPageSizeLabel","PaginationPageSizeLabelProps","PaginationPrevTrigger","PaginationPrevTriggerProps","PaginationRoot","PaginationRootProps","PaginationComponent","Context","NextTrigger","PageButtons","PageItem","PageItems","PageMetadata","PageSize","PageSizeLabel","PrevTrigger","Root","Pagination"],"sources":["../../src/pagination/pagination-context.tsx","../../src/pagination/qds-pagination-context.ts","../../src/pagination/pagination-next-trigger.tsx","../../src/pagination/pagination-page-buttons.tsx","../../src/pagination/pagination-page-item.tsx","../../src/pagination/pagination-page-items.tsx","../../src/pagination/pagination-page-metadata.tsx","../../src/pagination/pagination-page-size.tsx","../../src/pagination/pagination-page-size-label.tsx","../../src/pagination/pagination-prev-trigger.tsx","../../src/pagination/pagination-root.tsx","../../src/pagination/index.ts"],"sourcesContent":["// 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 {PaginationApi} from \"@qualcomm-ui/core/pagination\"\nimport {usePaginationContext} from \"@qualcomm-ui/react-core/pagination\"\nimport {type RenderProp, renderProp} from \"@qualcomm-ui/react-core/system\"\n\nexport interface PaginationContextProps {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children: RenderProp<PaginationApi>\n}\n\nexport function PaginationContext({\n children,\n}: PaginationContextProps): ReactNode {\n const context = usePaginationContext()\n\n return renderProp(children, context)\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {QdsPaginationApi} from \"@qualcomm-ui/qds-core/pagination\"\nimport {createGuardedContext} from \"@qualcomm-ui/react-core/context\"\n\nexport const [QdsPaginationContextProvider, useQdsPaginationContext] =\n createGuardedContext<QdsPaginationApi>({\n hookName: \"useQdsPaginationContext\",\n providerName: \"<QdsPaginationContextProvider>\",\n strict: true,\n })\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {ChevronRight} from \"lucide-react\"\n\nimport {IconOrNode} from \"@qualcomm-ui/react/icon\"\nimport type {LucideIconOrElement} from \"@qualcomm-ui/react-core/lucide\"\nimport {usePaginationNextTrigger} from \"@qualcomm-ui/react-core/pagination\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsPaginationContext} from \"./qds-pagination-context\"\n\nexport interface PaginationNextTriggerProps extends ElementRenderProp<\"button\"> {\n /**\n * lucide-react icon.\n *\n * @default ChevronRight\n */\n icon?: LucideIconOrElement\n}\n\nexport function PaginationNextTrigger({\n icon = ChevronRight,\n ...props\n}: PaginationNextTriggerProps): ReactElement {\n const contextProps = usePaginationNextTrigger()\n const qdsContext = useQdsPaginationContext()\n\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getPageItemBindings(),\n props,\n )\n\n return (\n <PolymorphicElement as=\"button\" {...mergedProps}>\n <IconOrNode icon={icon} />\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} from \"react\"\n\nimport {\n ActionGroup,\n type ActionGroupProps,\n} from \"@qualcomm-ui/react/action-group\"\n\nimport {Pagination} from \"./index\"\n\nexport interface PaginationPageButtonsProps extends Omit<\n ActionGroupProps,\n \"children\"\n> {}\n\n/**\n * A shortcut for rendering the pagination page buttons. This is equivalent to:\n *\n * @example\n * ```tsx\n * <ActionGroup>\n * <Pagination.PrevTrigger />\n * <Pagination.PageItems />\n * <Pagination.NextTrigger />\n * </ActionGroup>\n * ```\n */\nexport function PaginationPageButtons({\n ...props\n}: PaginationPageButtonsProps): ReactElement {\n return (\n <ActionGroup {...props}>\n <Pagination.PrevTrigger />\n <Pagination.PageItems />\n <Pagination.NextTrigger />\n </ActionGroup>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {Ellipsis} from \"lucide-react\"\n\nimport type {PaginationPageItemBindings} from \"@qualcomm-ui/core/pagination\"\nimport {Icon} from \"@qualcomm-ui/react/icon\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\n\n/**\n * @interface\n */\nexport type PaginationPageItemProps = PaginationPageItemBindings &\n ElementRenderProp<\"button\">\n\nexport function PaginationPageItem({\n ...props\n}: PaginationPageItemProps): ReactElement {\n const itemType = props[\"data-type\"]\n\n return (\n <PolymorphicElement as=\"button\" {...props}>\n {itemType === \"page\" ? props[\"data-page\"] : <Icon icon={Ellipsis} />}\n </PolymorphicElement>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Fragment, type ReactElement, type ReactNode} from \"react\"\n\nimport type {PaginationPageItemBindings} from \"@qualcomm-ui/core/pagination\"\nimport {\n type BindingRenderProp,\n renderProp,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {PaginationContext} from \"./pagination-context\"\nimport {PaginationPageItem} from \"./pagination-page-item\"\nimport {useQdsPaginationContext} from \"./qds-pagination-context\"\n\nexport interface PaginationPageItemsProps {\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 * Page item {@link\n * https://react-next.qui.qualcomm.com/render-props#binding-render-prop\n * Render Prop}\n *\n * @inheritDoc\n */\n renderItem?: BindingRenderProp<PaginationPageItemBindings>\n}\n\nexport function PaginationPageItems({\n children,\n renderItem: renderItemProp,\n}: PaginationPageItemsProps): ReactElement {\n const PageItem = renderItemProp || PaginationPageItem\n\n const qdsContext = useQdsPaginationContext()\n\n return (\n <PaginationContext>\n {(context) => (\n <>\n {context.pageItems.map((item, index) => {\n const itemProps = context.getPageItemBindings(item)\n return (\n <Fragment key={index}>\n {renderProp(\n PageItem,\n mergeProps(itemProps, qdsContext.getPageItemBindings()),\n )}\n </Fragment>\n )\n })}\n {children}\n </>\n )}\n </PaginationContext>\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 {PageMetadata} from \"@qualcomm-ui/core/pagination\"\nimport {usePaginationPageMetadata} from \"@qualcomm-ui/react-core/pagination\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n type RenderProp,\n renderProp,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsPaginationContext} from \"./qds-pagination-context\"\n\nexport interface PaginationPageMetadataProps extends Omit<\n ElementRenderProp<\"div\">,\n \"children\"\n> {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children?: RenderProp<PageMetadata>\n}\n\nexport function PaginationPageMetadata({\n children,\n ...props\n}: PaginationPageMetadataProps): ReactElement {\n const {pageMetadata, props: contextProps} = usePaginationPageMetadata()\n const qdsContext = useQdsPaginationContext()\n\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getPageMetadataBindings(),\n props,\n )\n\n return (\n <PolymorphicElement as=\"div\" {...mergedProps}>\n {renderProp(children || DefaultMetadata, pageMetadata)}\n </PolymorphicElement>\n )\n}\n\nconst DefaultMetadata: RenderProp<PageMetadata> = ({\n page,\n pageCount,\n}): ReactNode => {\n return `${page} of ${pageCount}`\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 {Menu} from \"@qualcomm-ui/react/menu\"\nimport {usePaginationContext} from \"@qualcomm-ui/react-core/pagination\"\nimport {Portal} from \"@qualcomm-ui/react-core/portal\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsPaginationContext} from \"./qds-pagination-context\"\n\nexport interface PaginationPageSizeProps extends ElementRenderProp<\"div\"> {\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 * Available page sizes to choose from.\n */\n options: number[]\n}\n\nexport function PaginationPageSize({\n children,\n options,\n ...props\n}: PaginationPageSizeProps): ReactElement {\n const context = usePaginationContext()\n const qdsContext = useQdsPaginationContext()\n const pageSize = context.pageSize\n const setPageSize = context.setPageSize\n const pageSizeLabelId = context.pageSizeLabelId\n\n const mergedProps = mergeProps(\n context.getPageSizeBindings(),\n qdsContext.getPageSizeBindings(),\n props,\n )\n\n return (\n <PolymorphicElement as=\"div\" {...mergedProps}>\n {children}\n <Menu.Root\n onSelect={(value) => {\n setPageSize(parseInt(value))\n }}\n size={qdsContext.size}\n >\n <Menu.Trigger>\n <Menu.Button\n aria-labelledby={pageSizeLabelId}\n emphasis=\"neutral\"\n size={qdsContext.size}\n variant=\"outline\"\n >\n {pageSize}\n </Menu.Button>\n </Menu.Trigger>\n <Portal>\n <Menu.Positioner>\n <Menu.Content>\n {options.map((opt) => (\n <Menu.Item key={opt} value={`${opt}`}>\n {opt}\n </Menu.Item>\n ))}\n </Menu.Content>\n </Menu.Positioner>\n </Portal>\n </Menu.Root>\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 {paginationClasses} from \"@qualcomm-ui/qds-core/pagination\"\nimport {usePaginationPageSizeLabel} from \"@qualcomm-ui/react-core/pagination\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PaginationPageSizeLabelProps extends ElementRenderProp<\"div\"> {\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 * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be automatically generated for\n * accessibility.\n */\n id?: string\n}\n\nexport function PaginationPageSizeLabel({\n children,\n id,\n ...props\n}: PaginationPageSizeLabelProps): ReactElement {\n const contextProps = usePaginationPageSizeLabel({id})\n\n const mergedProps = mergeProps(\n contextProps,\n {className: paginationClasses.pageSizeLabel},\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} from \"react\"\n\nimport {ChevronLeft} from \"lucide-react\"\n\nimport {IconOrNode} from \"@qualcomm-ui/react/icon\"\nimport type {LucideIconOrElement} from \"@qualcomm-ui/react-core/lucide\"\nimport {usePaginationPrevTrigger} from \"@qualcomm-ui/react-core/pagination\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsPaginationContext} from \"./qds-pagination-context\"\n\nexport interface PaginationPrevTriggerProps extends ElementRenderProp<\"button\"> {\n /**\n * lucide-react icon.\n *\n * @default ChevronLeft\n */\n icon?: LucideIconOrElement\n}\n\nexport function PaginationPrevTrigger({\n icon = ChevronLeft,\n ...props\n}: PaginationPrevTriggerProps): ReactElement {\n const contextProps = usePaginationPrevTrigger()\n const qdsContext = useQdsPaginationContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getPageItemBindings(),\n props,\n )\n\n return (\n <PolymorphicElement as=\"button\" {...mergedProps}>\n <IconOrNode icon={icon} />\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 {splitProps} from \"@qualcomm-ui/core/pagination\"\nimport {\n createQdsPaginationApi,\n type QdsPaginationApi,\n type QdsPaginationApiProps,\n} from \"@qualcomm-ui/qds-core/pagination\"\nimport {normalizeProps} from \"@qualcomm-ui/react-core/machine\"\nimport {\n PaginationContextProvider,\n usePagination,\n type UsePaginationProps,\n} from \"@qualcomm-ui/react-core/pagination\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {QdsPaginationContextProvider} from \"./qds-pagination-context\"\n\nexport interface PaginationRootProps\n extends UsePaginationProps, QdsPaginationApiProps, ElementRenderProp<\"nav\"> {\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\nexport function PaginationRoot({\n children,\n size,\n ...props\n}: PaginationRootProps): ReactElement {\n const [paginationProps, localProps] = splitProps<UsePaginationProps>(props)\n const api = usePagination(paginationProps)\n\n const qdsContext: QdsPaginationApi = useMemo(\n () =>\n createQdsPaginationApi(\n {\n size,\n },\n normalizeProps,\n ),\n [size],\n )\n\n const mergedProps = mergeProps(\n api.getRootBindings(),\n qdsContext.getRootBindings(),\n localProps,\n )\n\n return (\n <QdsPaginationContextProvider value={qdsContext}>\n <PaginationContextProvider value={api}>\n <PolymorphicElement as=\"nav\" {...mergedProps}>\n {children}\n </PolymorphicElement>\n </PaginationContextProvider>\n </QdsPaginationContextProvider>\n )\n}\n","import {\n PaginationContext,\n type PaginationContextProps,\n} from \"./pagination-context\"\nimport {\n PaginationNextTrigger,\n type PaginationNextTriggerProps,\n} from \"./pagination-next-trigger\"\nimport {\n PaginationPageButtons,\n type PaginationPageButtonsProps,\n} from \"./pagination-page-buttons\"\nimport {\n PaginationPageItem,\n type PaginationPageItemProps,\n} from \"./pagination-page-item\"\nimport {\n PaginationPageItems,\n type PaginationPageItemsProps,\n} from \"./pagination-page-items\"\nimport {\n PaginationPageMetadata,\n type PaginationPageMetadataProps,\n} from \"./pagination-page-metadata\"\nimport {\n PaginationPageSize,\n type PaginationPageSizeProps,\n} from \"./pagination-page-size\"\nimport {\n PaginationPageSizeLabel,\n type PaginationPageSizeLabelProps,\n} from \"./pagination-page-size-label\"\nimport {\n PaginationPrevTrigger,\n type PaginationPrevTriggerProps,\n} from \"./pagination-prev-trigger\"\nimport {PaginationRoot, type PaginationRootProps} from \"./pagination-root\"\n\nexport * from \"./qds-pagination-context\"\n\nexport type {\n PaginationContextProps,\n PaginationNextTriggerProps,\n PaginationPageButtonsProps,\n PaginationPageItemProps,\n PaginationPageItemsProps,\n PaginationPageMetadataProps,\n PaginationPageSizeLabelProps,\n PaginationPageSizeProps,\n PaginationPrevTriggerProps,\n PaginationRootProps,\n}\n\ntype PaginationComponent = {\n Context: typeof PaginationContext\n NextTrigger: typeof PaginationNextTrigger\n /**\n * A shortcut for rendering the pagination page buttons. This is equivalent to:\n *\n * @example\n * ```tsx\n * <ActionGroup>\n * <Pagination.PrevTrigger />\n * <Pagination.PageItems />\n * <Pagination.NextTrigger />\n * </ActionGroup>\n * ```\n */\n PageButtons: typeof PaginationPageButtons\n PageItem: typeof PaginationPageItem\n PageItems: typeof PaginationPageItems\n PageMetadata: typeof PaginationPageMetadata\n PageSize: typeof PaginationPageSize\n PageSizeLabel: typeof PaginationPageSizeLabel\n PrevTrigger: typeof PaginationPrevTrigger\n Root: typeof PaginationRoot\n}\n\nexport const Pagination: PaginationComponent = {\n Context: PaginationContext,\n NextTrigger: PaginationNextTrigger,\n PageButtons: PaginationPageButtons,\n PageItem: PaginationPageItem,\n PageItems: PaginationPageItems,\n PageMetadata: PaginationPageMetadata,\n PageSize: PaginationPageSize,\n PageSizeLabel: PaginationPageSizeLabel,\n PrevTrigger: PaginationPrevTrigger,\n Root: PaginationRoot,\n}\n"],"mappings":"mnCAgBA,SAAOO,kBAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAA2B,CAAAJ,YAAAE,EAGhCG,EAAgBT,GAAsB,CAAAU,EAEF,OAFEH,EAAA,KAAAH,GAAAG,EAAA,KAAAE,GAE/BC,EAAAR,EAAWE,EAAUK,EAAQ,CAAAF,EAAA,GAAAH,EAAAG,EAAA,GAAAE,EAAAF,EAAA,GAAAG,GAAAA,EAAAH,EAAA,GAA7BG,ECfT,GAAa,CAACG,EAA8BC,GAC1CF,EAAuC,CACrCG,SAAU,0BACVC,aAAc,iCACdC,OAAQ,GACT,CAAC,CCgBJ,SAAOY,sBAAAC,EAAA,CAAA,IAAAC,EAAAC,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"}
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{jsx as jsx10,jsxs as jsxs2}from"react/jsx-runtime";import{useOptionalContentId}from"@qualcomm-ui/react-core/machine";import{useControlledId}from"@qualcomm-ui/react-core/state";import{c as _c}from"react/compiler-runtime";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{CorePasswordInput}from"@qualcomm-ui/react-core/password-input";import{mergeProps}from"@qualcomm-ui/utils/merge-props";function PasswordInputClearTrigger(props){let $=_c(4),contextProps=CorePasswordInput.usePasswordInputClearTrigger(),qdsContext=useQdsInputContext(),t0;if($[0]!==contextProps||$[1]!==props||$[2]!==qdsContext){let mergedProps=mergeProps(contextProps,qdsContext.getClearTriggerBindings(),props);t0=jsx(InlineIconButton,{icon:X,...mergedProps}),$[0]=contextProps,$[1]=props,$[2]=qdsContext,$[3]=t0}else t0=$[3];return t0}import{c as _c2}from"react/compiler-runtime";import{jsx as jsx2}from"react/jsx-runtime";import{InputErrorIndicator}from"@qualcomm-ui/react/input";import{CorePasswordInput as CorePasswordInput2}from"@qualcomm-ui/react-core/password-input";import{mergeProps as mergeProps2}from"@qualcomm-ui/utils/merge-props";function PasswordInputErrorIndicator(props){let $=_c2(3),contextProps=CorePasswordInput2.usePasswordInputErrorIndicator(),t0;if($[0]!==contextProps||$[1]!==props){let mergedProps=mergeProps2(contextProps,props);t0=jsx2(InputErrorIndicator,{...mergedProps}),$[0]=contextProps,$[1]=props,$[2]=t0}else t0=$[2];return t0}import{c as _c3}from"react/compiler-runtime";import{jsx as jsx3}from"react/jsx-runtime";import{InputErrorText}from"@qualcomm-ui/react/input";import{CorePasswordInput as CorePasswordInput3}from"@qualcomm-ui/react-core/password-input";import{mergeProps as mergeProps3}from"@qualcomm-ui/utils/merge-props";function PasswordInputErrorText(t0){let $=_c3(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=CorePasswordInput3.usePasswordInputErrorText(t1),mergedProps=mergeProps3(contextProps,props);return jsx3(InputErrorText,{...mergedProps,children})}import{c as _c4}from"react/compiler-runtime";import{jsx as jsx4}from"react/jsx-runtime";import{useQdsInputContext as useQdsInputContext2}from"@qualcomm-ui/react/input";import{CorePasswordInput as CorePasswordInput4}from"@qualcomm-ui/react-core/password-input";import{PolymorphicElement}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps4}from"@qualcomm-ui/utils/merge-props";function PasswordInputHint(t0){let $=_c4(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=CorePasswordInput4.usePasswordInputHint(t1),qdsContext=useQdsInputContext2(),mergedProps=mergeProps4(contextProps,qdsContext.getHintBindings(),props);return jsx4(PolymorphicElement,{as:"span",...mergedProps,children})}import{c as _c5}from"react/compiler-runtime";import{jsx as jsx5}from"react/jsx-runtime";import{useQdsInputContext as useQdsInputContext3}from"@qualcomm-ui/react/input";import{CorePasswordInput as CorePasswordInput5}from"@qualcomm-ui/react-core/password-input";import{mergeProps as mergeProps5}from"@qualcomm-ui/utils/merge-props";function PasswordInputInput(t0){let $=_c5(2),{id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=CorePasswordInput5.usePasswordInputInput(t1),qdsContext=useQdsInputContext3(),mergedProps=mergeProps5(contextProps,qdsContext.getInputBindings(),props);return jsx5("input",{...mergedProps})}import{jsx as jsx6,jsxs}from"react/jsx-runtime";import{InputStartIcon,useQdsInputContext as useQdsInputContext4}from"@qualcomm-ui/react/input";import{CorePasswordInput as CorePasswordInput6}from"@qualcomm-ui/react-core/password-input";import{PolymorphicElement as PolymorphicElement2}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps6}from"@qualcomm-ui/utils/merge-props";function PasswordInputInputGroup(t0){let{children,...props}=t0,contextProps=CorePasswordInput6.usePasswordInputInputGroup(),qdsContext=useQdsInputContext4(),mergedProps=mergeProps6(contextProps,qdsContext.getGroupBindings(),props);return jsxs(PolymorphicElement2,{as:"div",...mergedProps,children:[qdsContext.startIcon?jsx6(InputStartIcon,{icon:qdsContext.startIcon}):null,children]})}import{c as _c6}from"react/compiler-runtime";import{jsx as jsx7}from"react/jsx-runtime";import{InputLabel}from"@qualcomm-ui/react/input";import{CorePasswordInput as CorePasswordInput7,usePasswordInputContext}from"@qualcomm-ui/react-core/password-input";import{mergeProps as mergeProps7}from"@qualcomm-ui/utils/merge-props";function PasswordInputLabel(props){let $=_c6(6),context=usePasswordInputContext(),t0;$[0]!==props.id?(t0={id:props.id},$[0]=props.id,$[1]=t0):t0=$[1];let contextProps=CorePasswordInput7.usePasswordInputLabel(t0),t1;if($[2]!==context.required||$[3]!==contextProps||$[4]!==props){let mergedProps=mergeProps7(contextProps,props);t1=jsx7(InputLabel,{required:context.required,...mergedProps}),$[2]=context.required,$[3]=contextProps,$[4]=props,$[5]=t1}else t1=$[5];return t1}import{c as _c7}from"react/compiler-runtime";import{jsx as jsx8}from"react/jsx-runtime";import"react";import{splitPasswordInputProps}from"@qualcomm-ui/core/password-input";import{createQdsInputApi}from"@qualcomm-ui/qds-core/input";import{QdsInputContextProvider}from"@qualcomm-ui/react/input";import{normalizeProps}from"@qualcomm-ui/react-core/machine";import{CorePasswordInput as CorePasswordInput8,PasswordInputContextProvider}from"@qualcomm-ui/react-core/password-input";import{PolymorphicElement as PolymorphicElement3}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps8}from"@qualcomm-ui/utils/merge-props";function PasswordInputRoot(t0){let $=_c7(3),{children,size,startIcon,...props}=t0,[textInputProps,localProps]=splitPasswordInputProps(props),context=CorePasswordInput8.usePasswordInput(textInputProps),t1;$[0]!==size||$[1]!==startIcon?(t1=createQdsInputApi({size,startIcon},normalizeProps),$[0]=size,$[1]=startIcon,$[2]=t1):t1=$[2];let qdsContext=t1,mergedProps=mergeProps8(context.getRootBindings(),qdsContext.getRootBindings(),localProps);return jsx8(PasswordInputContextProvider,{value:context,children:jsx8(QdsInputContextProvider,{value:qdsContext,children:jsx8(PolymorphicElement3,{as:"div",...mergedProps,children})})})}import{c as _c8}from"react/compiler-runtime";import{jsx as jsx9}from"react/jsx-runtime";import{Eye,EyeOff}from"lucide-react";import{passwordInputClasses}from"@qualcomm-ui/qds-core/password-input";import{InlineIconButton as InlineIconButton2}from"@qualcomm-ui/react/inline-icon-button";import{CorePasswordInput as CorePasswordInput9,usePasswordInputContext as usePasswordInputContext2}from"@qualcomm-ui/react-core/password-input";import{mergeProps as mergeProps9}from"@qualcomm-ui/utils/merge-props";function PasswordInputVisibilityTrigger(t0){let $=_c8(2),{children,iconOff:t1,iconOn:t2,id,...props}=t0,iconOff=t1===void 0?EyeOff:t1,iconOn=t2===void 0?Eye:t2,context=usePasswordInputContext2(),t3;$[0]!==id?(t3={id},$[0]=id,$[1]=t3):t3=$[1];let contextProps=CorePasswordInput9.usePasswordInputVisibilityTrigger(t3),mergedProps=mergeProps9(contextProps,{className:passwordInputClasses.visibilityTrigger},props);return jsx9(InlineIconButton2,{icon:context.visible?iconOff:iconOn,...mergedProps,children})}function PasswordInput(t0){let{"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,clearable,errorIndicatorProps,errorText,errorTextProps,hint,hintProps,inputGroupProps,inputProps:inputPropsProp,label,labelProps,placeholder,visibilityTriggerProps,...props}=t0,labelContent=label||labelProps?.children,errorTextContent=errorText||errorTextProps?.children,hintContent=hint||hintProps?.children,inputProps={...inputPropsProp};ariaLabel!==void 0&&(inputProps["aria-label"]=ariaLabel),ariaLabelledBy!==void 0&&(inputProps["aria-labelledby"]=ariaLabelledBy);let visibilityTriggerId=useControlledId(visibilityTriggerProps?.id),ids={errorText:useOptionalContentId(errorTextContent,errorTextProps),hint:useOptionalContentId(hintContent,hintProps),input:useControlledId(inputProps?.id),label:useOptionalContentId(labelContent,labelProps),visibilityTrigger:visibilityTriggerId,...props.ids};return jsxs2(PasswordInputRoot,{...props,ids,children:[labelContent?jsx10(PasswordInputLabel,{...labelProps,id:ids.label,children:labelContent}):null,jsxs2(PasswordInputInputGroup,{...inputGroupProps,children:[jsx10(PasswordInputInput,{placeholder,...inputProps,id:ids.input}),clearable?jsx10(PasswordInputClearTrigger,{}):null,jsx10(PasswordInputVisibilityTrigger,{...visibilityTriggerProps,id:ids.visibilityTrigger}),jsx10(PasswordInputErrorIndicator,{...errorIndicatorProps})]}),hintContent?jsx10(PasswordInputHint,{...hintProps,id:ids.hint,children:hintContent}):null,errorTextContent?jsx10(PasswordInputErrorText,{...errorTextProps,id:ids.errorText,children:errorTextContent}):null]})}var PasswordInput2=PasswordInput;PasswordInput2.ClearTrigger=PasswordInputClearTrigger;PasswordInput2.ErrorIndicator=PasswordInputErrorIndicator;PasswordInput2.ErrorText=PasswordInputErrorText;PasswordInput2.Hint=PasswordInputHint;PasswordInput2.InputGroup=PasswordInputInputGroup;PasswordInput2.Input=PasswordInputInput;PasswordInput2.Label=PasswordInputLabel;PasswordInput2.Root=PasswordInputRoot;PasswordInput2.VisibilityTrigger=PasswordInputVisibilityTrigger;export{PasswordInput2 as PasswordInput};
3
- //# sourceMappingURL=index.js.map
1
+ "use client;";import{c as e}from"react/compiler-runtime";import{mergeProps as t}from"@qualcomm-ui/utils/merge-props";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{PolymorphicElement as i}from"@qualcomm-ui/react-core/system";import{Eye as a,EyeOff as o,X as s}from"lucide-react";import"react";import{normalizeProps as c,useOptionalContentId as l}from"@qualcomm-ui/react-core/machine";import{useControlledId as u}from"@qualcomm-ui/react-core/state";import{InputErrorIndicator as d,InputErrorText as f,InputLabel as p,InputStartIcon as m,QdsInputContextProvider as h,useQdsInputContext as g}from"@qualcomm-ui/react/input";import{InlineIconButton as _}from"@qualcomm-ui/react/inline-icon-button";import{createQdsInputApi as v}from"@qualcomm-ui/qds-core/input";import{CorePasswordInput as y,PasswordInputContextProvider as b,usePasswordInputContext as x}from"@qualcomm-ui/react-core/password-input";import{splitPasswordInputProps as S}from"@qualcomm-ui/core/password-input";import{passwordInputClasses as C}from"@qualcomm-ui/qds-core/password-input";function PasswordInputClearTrigger(r){let i=e(6),a=y.usePasswordInputClearTrigger(),o=g(),c;i[0]!==a||i[1]!==r||i[2]!==o?(c=t(a,o.getClearTriggerBindings(),r),i[0]=a,i[1]=r,i[2]=o,i[3]=c):c=i[3];let l=c,u;return i[4]===l?u=i[5]:(u=n(_,{icon:s,...l}),i[4]=l,i[5]=u),u}function PasswordInputErrorIndicator(r){let i=e(5),a=y.usePasswordInputErrorIndicator(),o;i[0]!==a||i[1]!==r?(o=t(a,r),i[0]=a,i[1]=r,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=n(d,{...s}),i[3]=s,i[4]=c),c}function PasswordInputErrorText(r){let i=e(5),{children:a,id:o,...s}=r,c;i[0]===o?c=i[1]:(c={id:o},i[0]=o,i[1]=c);let l=t(y.usePasswordInputErrorText(c),s),u;return i[2]!==a||i[3]!==l?(u=n(f,{...l,children:a}),i[2]=a,i[3]=l,i[4]=u):u=i[4],u}function PasswordInputHint(r){let a=e(5),{children:o,id:s,...c}=r,l;a[0]===s?l=a[1]:(l={id:s},a[0]=s,a[1]=l);let u=t(y.usePasswordInputHint(l),g().getHintBindings(),c),d;return a[2]!==o||a[3]!==u?(d=n(i,{as:`span`,...u,children:o}),a[2]=o,a[3]=u,a[4]=d):d=a[4],d}function PasswordInputInput(r){let i=e(4),{id:a,...o}=r,s;i[0]===a?s=i[1]:(s={id:a},i[0]=a,i[1]=s);let c=t(y.usePasswordInputInput(s),g().getInputBindings(),o),l;return i[2]===c?l=i[3]:(l=n(`input`,{...c}),i[2]=c,i[3]=l),l}function PasswordInputInputGroup(a){let o=e(6),{children:s,...c}=a,l=y.usePasswordInputInputGroup(),u=g(),d=t(l,u.getGroupBindings(),c),f;o[0]===u.startIcon?f=o[1]:(f=u.startIcon?n(m,{icon:u.startIcon}):null,o[0]=u.startIcon,o[1]=f);let p;return o[2]!==s||o[3]!==d||o[4]!==f?(p=r(i,{as:`div`,...d,children:[f,s]}),o[2]=s,o[3]=d,o[4]=f,o[5]=p):p=o[5],p}function PasswordInputLabel(r){let i=e(8),a=x(),o;i[0]===r.id?o=i[1]:(o={id:r.id},i[0]=r.id,i[1]=o);let s=y.usePasswordInputLabel(o),c;i[2]!==s||i[3]!==r?(c=t(s,r),i[2]=s,i[3]=r,i[4]=c):c=i[4];let l=c,u;return i[5]!==a.required||i[6]!==l?(u=n(p,{required:a.required,...l}),i[5]=a.required,i[6]=l,i[7]=u):u=i[7],u}function PasswordInputRoot(r){let a=e(12),{children:o,size:s,startIcon:l,...u}=r,[d,f]=S(u),p=y.usePasswordInput(d),m;a[0]!==s||a[1]!==l?(m=v({size:s,startIcon:l},c),a[0]=s,a[1]=l,a[2]=m):m=a[2];let g=m,_=t(p.getRootBindings(),g.getRootBindings(),f),x;a[3]!==o||a[4]!==_?(x=n(i,{as:`div`,..._,children:o}),a[3]=o,a[4]=_,a[5]=x):x=a[5];let C;a[6]!==g||a[7]!==x?(C=n(h,{value:g,children:x}),a[6]=g,a[7]=x,a[8]=C):C=a[8];let w;return a[9]!==p||a[10]!==C?(w=n(b,{value:p,children:C}),a[9]=p,a[10]=C,a[11]=w):w=a[11],w}function PasswordInputVisibilityTrigger(r){let i=e(6),{children:s,iconOff:c,iconOn:l,id:u,...d}=r,f=c===void 0?o:c,p=l===void 0?a:l,m=x(),h;i[0]===u?h=i[1]:(h={id:u},i[0]=u,i[1]=h);let g=t(y.usePasswordInputVisibilityTrigger(h),{className:C.visibilityTrigger},d),v=m.visible?f:p,b;return i[2]!==s||i[3]!==g||i[4]!==v?(b=n(_,{icon:v,...g,children:s}),i[2]=s,i[3]=g,i[4]=v,i[5]=b):b=i[5],b}function PasswordInput$1(t){let i=e(63),a,o,s,c,d,f,p,m,h,g,_,v,y,b,x;i[0]===t?(a=i[1],o=i[2],s=i[3],c=i[4],d=i[5],f=i[6],p=i[7],m=i[8],h=i[9],g=i[10],_=i[11],v=i[12],y=i[13],b=i[14],x=i[15]):({"aria-label":a,"aria-labelledby":o,clearable:s,errorIndicatorProps:c,errorText:d,errorTextProps:f,hint:p,hintProps:m,inputGroupProps:h,inputProps:g,label:_,labelProps:v,placeholder:y,visibilityTriggerProps:x,...b}=t,i[0]=t,i[1]=a,i[2]=o,i[3]=s,i[4]=c,i[5]=d,i[6]=f,i[7]=p,i[8]=m,i[9]=h,i[10]=g,i[11]=_,i[12]=v,i[13]=y,i[14]=b,i[15]=x);let S=_||v?.children,C=d||f?.children,w=p||m?.children,T;i[16]!==a||i[17]!==o||i[18]!==g?(T={...g},a!==void 0&&(T[`aria-label`]=a),o!==void 0&&(T[`aria-labelledby`]=o),i[16]=a,i[17]=o,i[18]=g,i[19]=T):T=i[19];let E=u(x?.id),D=l(C,f),O=l(w,m),k=u(T?.id),A=l(S,v),j;i[20]!==b.ids||i[21]!==D||i[22]!==O||i[23]!==k||i[24]!==A||i[25]!==E?(j={errorText:D,hint:O,input:k,label:A,visibilityTrigger:E,...b.ids},i[20]=b.ids,i[21]=D,i[22]=O,i[23]=k,i[24]=A,i[25]=E,i[26]=j):j=i[26];let M=j,N;i[27]!==M.label||i[28]!==S||i[29]!==v?(N=S?n(PasswordInputLabel,{...v,id:M.label,children:S}):null,i[27]=M.label,i[28]=S,i[29]=v,i[30]=N):N=i[30];let P;i[31]!==M.input||i[32]!==T||i[33]!==y?(P=n(PasswordInputInput,{placeholder:y,...T,id:M.input}),i[31]=M.input,i[32]=T,i[33]=y,i[34]=P):P=i[34];let F;i[35]===s?F=i[36]:(F=s?n(PasswordInputClearTrigger,{}):null,i[35]=s,i[36]=F);let I;i[37]!==M.visibilityTrigger||i[38]!==x?(I=n(PasswordInputVisibilityTrigger,{...x,id:M.visibilityTrigger}),i[37]=M.visibilityTrigger,i[38]=x,i[39]=I):I=i[39];let L;i[40]===c?L=i[41]:(L=n(PasswordInputErrorIndicator,{...c}),i[40]=c,i[41]=L);let R;i[42]!==h||i[43]!==L||i[44]!==P||i[45]!==F||i[46]!==I?(R=r(PasswordInputInputGroup,{...h,children:[P,F,I,L]}),i[42]=h,i[43]=L,i[44]=P,i[45]=F,i[46]=I,i[47]=R):R=i[47];let z;i[48]!==w||i[49]!==m||i[50]!==M.hint?(z=w?n(PasswordInputHint,{...m,id:M.hint,children:w}):null,i[48]=w,i[49]=m,i[50]=M.hint,i[51]=z):z=i[51];let B;i[52]!==C||i[53]!==f||i[54]!==M.errorText?(B=C?n(PasswordInputErrorText,{...f,id:M.errorText,children:C}):null,i[52]=C,i[53]=f,i[54]=M.errorText,i[55]=B):B=i[55];let V;return i[56]!==M||i[57]!==b||i[58]!==R||i[59]!==z||i[60]!==B||i[61]!==N?(V=r(PasswordInputRoot,{...b,ids:M,children:[N,R,z,B]}),i[56]=M,i[57]=b,i[58]=R,i[59]=z,i[60]=B,i[61]=N,i[62]=V):V=i[62],V}var w=PasswordInput$1;w.ClearTrigger=PasswordInputClearTrigger,w.ErrorIndicator=PasswordInputErrorIndicator,w.ErrorText=PasswordInputErrorText,w.Hint=PasswordInputHint,w.InputGroup=PasswordInputInputGroup,w.Input=PasswordInputInput,w.Label=PasswordInputLabel,w.Root=PasswordInputRoot,w.VisibilityTrigger=PasswordInputVisibilityTrigger;export{w as PasswordInput};
2
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/password-input/password-input.tsx", "../../src/password-input/password-input-clear-trigger.tsx", "../../src/password-input/password-input-error-indicator.tsx", "../../src/password-input/password-input-error-text.tsx", "../../src/password-input/password-input-hint.tsx", "../../src/password-input/password-input-input.tsx", "../../src/password-input/password-input-input-group.tsx", "../../src/password-input/password-input-label.tsx", "../../src/password-input/password-input-root.tsx", "../../src/password-input/password-input-visibility-trigger.tsx", "../../src/password-input/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 { PasswordInputClearTrigger } from \"./password-input-clear-trigger\";\nimport { PasswordInputErrorIndicator } from \"./password-input-error-indicator\";\nimport { PasswordInputErrorText } from \"./password-input-error-text\";\nimport { PasswordInputHint } from \"./password-input-hint\";\nimport { PasswordInputInput } from \"./password-input-input\";\nimport { PasswordInputInputGroup } from \"./password-input-input-group\";\nimport { PasswordInputLabel } from \"./password-input-label\";\nimport { PasswordInputRoot } from \"./password-input-root\";\nimport { PasswordInputVisibilityTrigger } from \"./password-input-visibility-trigger\";\nexport function PasswordInput(t0) {\n const {\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n clearable,\n errorIndicatorProps,\n errorText,\n errorTextProps,\n hint,\n hintProps,\n inputGroupProps,\n inputProps: inputPropsProp,\n label,\n labelProps,\n placeholder,\n visibilityTriggerProps,\n ...props\n } = t0;\n const labelContent = label || labelProps?.children;\n const errorTextContent = errorText || errorTextProps?.children;\n const hintContent = hint || hintProps?.children;\n const inputProps = {\n ...inputPropsProp\n };\n if (ariaLabel !== void 0) {\n inputProps[\"aria-label\"] = ariaLabel;\n }\n if (ariaLabelledBy !== void 0) {\n inputProps[\"aria-labelledby\"] = ariaLabelledBy;\n }\n const visibilityTriggerId = useControlledId(visibilityTriggerProps?.id);\n const ids = {\n errorText: useOptionalContentId(errorTextContent, errorTextProps),\n hint: useOptionalContentId(hintContent, hintProps),\n input: useControlledId(inputProps?.id),\n label: useOptionalContentId(labelContent, labelProps),\n visibilityTrigger: visibilityTriggerId,\n ...props.ids\n };\n return jsxs(PasswordInputRoot, {\n ...props,\n ids,\n children: [labelContent ? jsx(PasswordInputLabel, {\n ...labelProps,\n id: ids.label,\n children: labelContent\n }) : null, jsxs(PasswordInputInputGroup, {\n ...inputGroupProps,\n children: [jsx(PasswordInputInput, {\n placeholder,\n ...inputProps,\n id: ids.input\n }), clearable ? jsx(PasswordInputClearTrigger, {}) : null, jsx(PasswordInputVisibilityTrigger, {\n ...visibilityTriggerProps,\n id: ids.visibilityTrigger\n }), jsx(PasswordInputErrorIndicator, {\n ...errorIndicatorProps\n })]\n }), hintContent ? jsx(PasswordInputHint, {\n ...hintProps,\n id: ids.hint,\n children: hintContent\n }) : null, errorTextContent ? jsx(PasswordInputErrorText, {\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 { X } from \"lucide-react\";\nimport { InlineIconButton } from \"@qualcomm-ui/react/inline-icon-button\";\nimport { useQdsInputContext } from \"@qualcomm-ui/react/input\";\nimport { CorePasswordInput } from \"@qualcomm-ui/react-core/password-input\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PasswordInputClearTrigger(props) {\n const $ = _c(4);\n const contextProps = CorePasswordInput.usePasswordInputClearTrigger();\n const qdsContext = useQdsInputContext();\n let t0;\n if ($[0] !== contextProps || $[1] !== props || $[2] !== qdsContext) {\n const mergedProps = mergeProps(contextProps, qdsContext.getClearTriggerBindings(), props);\n t0 = jsx(InlineIconButton, {\n icon: X,\n ...mergedProps\n });\n $[0] = contextProps;\n $[1] = props;\n $[2] = qdsContext;\n $[3] = t0;\n } else {\n t0 = $[3];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { InputErrorIndicator } from \"@qualcomm-ui/react/input\";\nimport { CorePasswordInput } from \"@qualcomm-ui/react-core/password-input\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PasswordInputErrorIndicator(props) {\n const $ = _c(3);\n const contextProps = CorePasswordInput.usePasswordInputErrorIndicator();\n let t0;\n if ($[0] !== contextProps || $[1] !== props) {\n const mergedProps = mergeProps(contextProps, props);\n t0 = jsx(InputErrorIndicator, {\n ...mergedProps\n });\n $[0] = contextProps;\n $[1] = props;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { InputErrorText } from \"@qualcomm-ui/react/input\";\nimport { CorePasswordInput } from \"@qualcomm-ui/react-core/password-input\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PasswordInputErrorText(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 = CorePasswordInput.usePasswordInputErrorText(t1);\n const mergedProps = mergeProps(contextProps, props);\n return jsx(InputErrorText, {\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useQdsInputContext } from \"@qualcomm-ui/react/input\";\nimport { CorePasswordInput } from \"@qualcomm-ui/react-core/password-input\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PasswordInputHint(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 = CorePasswordInput.usePasswordInputHint(t1);\n const qdsContext = useQdsInputContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getHintBindings(), 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 { useQdsInputContext } from \"@qualcomm-ui/react/input\";\nimport { CorePasswordInput } from \"@qualcomm-ui/react-core/password-input\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PasswordInputInput(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 = CorePasswordInput.usePasswordInputInput(t1);\n const qdsContext = useQdsInputContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getInputBindings(), props);\n return jsx(\"input\", {\n ...mergedProps\n });\n}", "import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { InputStartIcon, useQdsInputContext } from \"@qualcomm-ui/react/input\";\nimport { CorePasswordInput } from \"@qualcomm-ui/react-core/password-input\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PasswordInputInputGroup(t0) {\n const {\n children,\n ...props\n } = t0;\n const contextProps = CorePasswordInput.usePasswordInputInputGroup();\n const qdsContext = useQdsInputContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getGroupBindings(), props);\n return jsxs(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children: [qdsContext.startIcon ? jsx(InputStartIcon, {\n icon: qdsContext.startIcon\n }) : null, children]\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { InputLabel } from \"@qualcomm-ui/react/input\";\nimport { CorePasswordInput, usePasswordInputContext } from \"@qualcomm-ui/react-core/password-input\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PasswordInputLabel(props) {\n const $ = _c(6);\n const context = usePasswordInputContext();\n let t0;\n if ($[0] !== props.id) {\n t0 = {\n id: props.id\n };\n $[0] = props.id;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n const contextProps = CorePasswordInput.usePasswordInputLabel(t0);\n let t1;\n if ($[2] !== context.required || $[3] !== contextProps || $[4] !== props) {\n const mergedProps = mergeProps(contextProps, props);\n t1 = jsx(InputLabel, {\n required: context.required,\n ...mergedProps\n });\n $[2] = context.required;\n $[3] = contextProps;\n $[4] = props;\n $[5] = t1;\n } else {\n t1 = $[5];\n }\n return t1;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { splitPasswordInputProps } from \"@qualcomm-ui/core/password-input\";\nimport { createQdsInputApi } from \"@qualcomm-ui/qds-core/input\";\nimport { QdsInputContextProvider } from \"@qualcomm-ui/react/input\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { CorePasswordInput, PasswordInputContextProvider } from \"@qualcomm-ui/react-core/password-input\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PasswordInputRoot(t0) {\n const $ = _c(3);\n const {\n children,\n size,\n startIcon,\n ...props\n } = t0;\n const [textInputProps, localProps] = splitPasswordInputProps(props);\n const context = CorePasswordInput.usePasswordInput(textInputProps);\n let t1;\n if ($[0] !== size || $[1] !== startIcon) {\n t1 = createQdsInputApi({\n size,\n startIcon\n }, normalizeProps);\n $[0] = size;\n $[1] = startIcon;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n const qdsContext = t1;\n const mergedProps = mergeProps(context.getRootBindings(), qdsContext.getRootBindings(), localProps);\n return jsx(PasswordInputContextProvider, {\n value: context,\n children: jsx(QdsInputContextProvider, {\n value: qdsContext,\n children: jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n })\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { Eye, EyeOff } from \"lucide-react\";\nimport { passwordInputClasses } from \"@qualcomm-ui/qds-core/password-input\";\nimport { InlineIconButton } from \"@qualcomm-ui/react/inline-icon-button\";\nimport { CorePasswordInput, usePasswordInputContext } from \"@qualcomm-ui/react-core/password-input\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PasswordInputVisibilityTrigger(t0) {\n const $ = _c(2);\n const {\n children,\n iconOff: t1,\n iconOn: t2,\n id,\n ...props\n } = t0;\n const iconOff = t1 === undefined ? EyeOff : t1;\n const iconOn = t2 === undefined ? Eye : t2;\n const context = usePasswordInputContext();\n let t3;\n if ($[0] !== id) {\n t3 = {\n id\n };\n $[0] = id;\n $[1] = t3;\n } else {\n t3 = $[1];\n }\n const contextProps = CorePasswordInput.usePasswordInputVisibilityTrigger(t3);\n const mergedProps = mergeProps(contextProps, {\n className: passwordInputClasses.visibilityTrigger\n }, props);\n return jsx(InlineIconButton, {\n icon: context.visible ? iconOff : iconOn,\n ...mergedProps,\n children\n });\n}", "import { PasswordInput as SimplePasswordInput } from \"./password-input\";\nimport { PasswordInputClearTrigger } from \"./password-input-clear-trigger\";\nimport { PasswordInputErrorIndicator } from \"./password-input-error-indicator\";\nimport { PasswordInputErrorText } from \"./password-input-error-text\";\nimport { PasswordInputHint } from \"./password-input-hint\";\nimport { PasswordInputInput } from \"./password-input-input\";\nimport { PasswordInputInputGroup } from \"./password-input-input-group\";\nimport { PasswordInputLabel } from \"./password-input-label\";\nimport { PasswordInputRoot } from \"./password-input-root\";\nimport { PasswordInputVisibilityTrigger } from \"./password-input-visibility-trigger\";\nexport const PasswordInput = SimplePasswordInput;\nPasswordInput.ClearTrigger = PasswordInputClearTrigger;\nPasswordInput.ErrorIndicator = PasswordInputErrorIndicator;\nPasswordInput.ErrorText = PasswordInputErrorText;\nPasswordInput.Hint = PasswordInputHint;\nPasswordInput.InputGroup = PasswordInputInputGroup;\nPasswordInput.Input = PasswordInputInput;\nPasswordInput.Label = PasswordInputLabel;\nPasswordInput.Root = PasswordInputRoot;\nPasswordInput.VisibilityTrigger = PasswordInputVisibilityTrigger;"],
5
- "mappings": ";AAAA,OAAS,OAAAA,MAAK,QAAAC,UAAY,oBAC1B,OAAS,yBAA4B,kCACrC,OAAS,oBAAuB,gCCFhC,OAAS,KAAK,OAAU,yBACxB,OAAS,QAAW,oBACpB,OAAS,MAAS,eAClB,OAAS,qBAAwB,wCACjC,OAAS,uBAA0B,2BACnC,OAAS,sB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CAACC,MAAI,mBAAoB,CACjC,YACA,GAAG,WACH,GAAI,IAAI,KACV,CAAC,EAAG,UAAYA,MAAI,0BAA2B,CAAC,CAAC,EAAI,KAAMA,MAAI,+BAAgC,CAC7F,GAAG,uBACH,GAAI,IAAI,iBACV,CAAC,EAAGA,MAAI,4BAA6B,CACnC,GAAG,mBACL,CAAC,CAAC,CACJ,CAAC,EAAG,YAAcA,MAAI,kBAAmB,CACvC,GAAG,UACH,GAAI,IAAI,KACR,SAAU,WACZ,CAAC,EAAI,KAAM,iBAAmBA,MAAI,uBAAwB,CACxD,GAAG,eACH,GAAI,IAAI,UACR,SAAU,gBACZ,CAAC,EAAI,IAAI,CACX,CAAC,CACH,CUtEO,IAAMC,eAAgB,cAC7BA,eAAc,aAAe,0BAC7BA,eAAc,eAAiB,4BAC/BA,eAAc,UAAY,uBAC1BA,eAAc,KAAO,kBACrBA,eAAc,WAAa,wBAC3BA,eAAc,MAAQ,mBACtBA,eAAc,MAAQ,mBACtBA,eAAc,KAAO,kBACrBA,eAAc,kBAAoB",
6
- "names": ["jsx", "jsxs", "_c", "jsx", "CorePasswordInput", "mergeProps", "_c", "jsx", "CorePasswordInput", "mergeProps", "_c", "jsx", "useQdsInputContext", "CorePasswordInput", "mergeProps", "_c", "jsx", "useQdsInputContext", "CorePasswordInput", "mergeProps", "jsx", "useQdsInputContext", "CorePasswordInput", "PolymorphicElement", "mergeProps", "_c", "jsx", "CorePasswordInput", "mergeProps", "_c", "jsx", "CorePasswordInput", "PolymorphicElement", "mergeProps", "_c", "jsx", "InlineIconButton", "CorePasswordInput", "usePasswordInputContext", "mergeProps", "jsxs", "jsx", "PasswordInput"]
7
- }
1
+ {"version":3,"file":"index.js","names":["ReactElement","X","InlineIconButton","useQdsInputContext","CorePasswordInput","ElementRenderProp","mergeProps","PasswordInputClearTriggerProps","PasswordInputClearTrigger","props","$","_c","contextProps","usePasswordInputClearTrigger","qdsContext","t0","getClearTriggerBindings","mergedProps","t1","ReactElement","InputErrorIndicator","InputErrorIndicatorProps","CorePasswordInput","mergeProps","PasswordInputErrorIndicatorProps","PasswordInputErrorIndicator","props","$","_c","contextProps","usePasswordInputErrorIndicator","t0","mergedProps","t1","ReactElement","InputErrorText","InputErrorTextProps","CorePasswordInput","IdProp","mergeProps","PasswordInputErrorTextProps","PasswordInputErrorText","t0","$","_c","children","id","props","t1","contextProps","usePasswordInputErrorText","mergedProps","t2","ReactElement","ReactNode","useQdsInputContext","CorePasswordInput","ElementRenderProp","PolymorphicElement","mergeProps","PasswordInputHintProps","children","PasswordInputHint","t0","$","_c","id","props","t1","contextProps","usePasswordInputHint","qdsContext","mergedProps","getHintBindings","t2","ComponentPropsWithRef","ReactElement","useQdsInputContext","CorePasswordInput","mergeProps","PasswordInputInputProps","PasswordInputInput","t0","$","_c","id","props","t1","contextProps","usePasswordInputInput","qdsContext","mergedProps","getInputBindings","t2","ReactElement","ReactNode","InputStartIcon","useQdsInputContext","CorePasswordInput","ElementRenderProp","PolymorphicElement","mergeProps","PasswordInputInputGroupProps","children","PasswordInputInputGroup","t0","$","_c","props","contextProps","usePasswordInputInputGroup","qdsContext","mergedProps","getGroupBindings","t1","startIcon","t2","ReactElement","ReactNode","InputLabel","InputLabelProps","CorePasswordInput","usePasswordInputContext","mergeProps","PasswordInputLabelProps","children","PasswordInputLabel","props","$","_c","context","t0","id","contextProps","usePasswordInputLabel","t1","mergedProps","t2","required","ReactElement","ReactNode","useMemo","PasswordInputApiProps","splitPasswordInputProps","createQdsInputApi","QdsInputContextProvider","QdsReactInputApi","QdsReactInputApiProps","normalizeProps","CorePasswordInput","PasswordInputContextProvider","ElementRenderProp","PolymorphicElement","mergeProps","PasswordInputRootProps","Omit","children","PasswordInputRoot","t0","$","_c","size","startIcon","props","textInputProps","localProps","context","usePasswordInput","t1","qdsContext","mergedProps","getRootBindings","t2","t3","t4","ReactElement","ReactNode","Eye","EyeOff","passwordInputClasses","InlineIconButton","LucideIconOrElement","CorePasswordInput","usePasswordInputContext","ElementRenderProp","mergeProps","PasswordInputVisibilityTriggerProps","children","iconOff","iconOn","PasswordInputVisibilityTrigger","t0","$","_c","t1","t2","id","props","undefined","context","t3","contextProps","usePasswordInputVisibilityTrigger","mergedProps","className","visibilityTrigger","t4","visible","t5","ReactElement","ReactNode","useOptionalContentId","useControlledId","PasswordInputClearTrigger","PasswordInputErrorIndicator","PasswordInputErrorIndicatorProps","PasswordInputErrorText","PasswordInputErrorTextProps","PasswordInputHint","PasswordInputHintProps","PasswordInputInput","PasswordInputInputProps","PasswordInputInputGroup","PasswordInputInputGroupProps","PasswordInputLabel","PasswordInputLabelProps","PasswordInputRoot","PasswordInputRootProps","PasswordInputVisibilityTrigger","PasswordInputVisibilityTriggerProps","PasswordInputProps","children","clearable","errorIndicatorProps","errorText","errorTextProps","hint","hintProps","inputGroupProps","inputProps","label","labelProps","placeholder","visibilityTriggerProps","PasswordInput","t0","$","_c","ariaLabel","ariaLabelledBy","inputPropsProp","props","labelContent","errorTextContent","hintContent","undefined","visibilityTriggerId","id","t1","t2","t3","t4","t5","ids","input","visibilityTrigger","t6","t7","t8","t9","t10","t11","t12","t13","t14","PasswordInput","SimplePasswordInput","PasswordInputClearTrigger","PasswordInputClearTriggerProps","PasswordInputErrorIndicator","PasswordInputErrorIndicatorProps","PasswordInputErrorText","PasswordInputErrorTextProps","PasswordInputHint","PasswordInputHintProps","PasswordInputInput","PasswordInputInputProps","PasswordInputInputGroup","PasswordInputInputGroupProps","PasswordInputLabel","PasswordInputLabelProps","PasswordInputRoot","PasswordInputRootProps","PasswordInputVisibilityTrigger","PasswordInputVisibilityTriggerProps","PasswordInputComponent","ClearTrigger","ErrorIndicator","ErrorText","Hint","Input","InputGroup","Label","Root","VisibilityTrigger"],"sources":["../../src/password-input/password-input-clear-trigger.tsx","../../src/password-input/password-input-error-indicator.tsx","../../src/password-input/password-input-error-text.tsx","../../src/password-input/password-input-hint.tsx","../../src/password-input/password-input-input.tsx","../../src/password-input/password-input-input-group.tsx","../../src/password-input/password-input-label.tsx","../../src/password-input/password-input-root.tsx","../../src/password-input/password-input-visibility-trigger.tsx","../../src/password-input/password-input.tsx","../../src/password-input/index.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {X} from \"lucide-react\"\n\nimport {InlineIconButton} from \"@qualcomm-ui/react/inline-icon-button\"\nimport {useQdsInputContext} from \"@qualcomm-ui/react/input\"\nimport {CorePasswordInput} from \"@qualcomm-ui/react-core/password-input\"\nimport type {ElementRenderProp} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PasswordInputClearTriggerProps extends ElementRenderProp<\"button\"> {}\n\nexport function PasswordInputClearTrigger(\n props: PasswordInputClearTriggerProps,\n): ReactElement {\n const contextProps = CorePasswordInput.usePasswordInputClearTrigger()\n const qdsContext = useQdsInputContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getClearTriggerBindings(),\n props,\n )\n\n return <InlineIconButton icon={X} {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n InputErrorIndicator,\n type InputErrorIndicatorProps,\n} from \"@qualcomm-ui/react/input\"\nimport {CorePasswordInput} from \"@qualcomm-ui/react-core/password-input\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PasswordInputErrorIndicatorProps extends InputErrorIndicatorProps {}\n\nexport function PasswordInputErrorIndicator(\n props: PasswordInputErrorIndicatorProps,\n): ReactElement {\n const contextProps = CorePasswordInput.usePasswordInputErrorIndicator()\n const mergedProps = mergeProps(contextProps, props)\n return <InputErrorIndicator {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n InputErrorText,\n type InputErrorTextProps,\n} from \"@qualcomm-ui/react/input\"\nimport {CorePasswordInput} from \"@qualcomm-ui/react-core/password-input\"\nimport type {IdProp} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PasswordInputErrorTextProps\n extends InputErrorTextProps, IdProp {}\n\nexport function PasswordInputErrorText({\n children,\n id,\n ...props\n}: PasswordInputErrorTextProps): ReactElement {\n const contextProps = CorePasswordInput.usePasswordInputErrorText({id})\n\n const mergedProps = mergeProps(contextProps, props)\n\n return <InputErrorText {...mergedProps}>{children}</InputErrorText>\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 {useQdsInputContext} from \"@qualcomm-ui/react/input\"\nimport {CorePasswordInput} from \"@qualcomm-ui/react-core/password-input\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PasswordInputHintProps extends 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\nexport function PasswordInputHint({\n children,\n id,\n ...props\n}: PasswordInputHintProps): ReactElement {\n const contextProps = CorePasswordInput.usePasswordInputHint({id})\n const qdsContext = useQdsInputContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getHintBindings(),\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 {ComponentPropsWithRef, ReactElement} from \"react\"\n\nimport {useQdsInputContext} from \"@qualcomm-ui/react/input\"\nimport {CorePasswordInput} from \"@qualcomm-ui/react-core/password-input\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PasswordInputInputProps extends ComponentPropsWithRef<\"input\"> {}\n\nexport function PasswordInputInput({\n id,\n ...props\n}: PasswordInputInputProps): ReactElement {\n const contextProps = CorePasswordInput.usePasswordInputInput({id})\n\n const qdsContext = useQdsInputContext()\n\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getInputBindings(),\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 {InputStartIcon, useQdsInputContext} from \"@qualcomm-ui/react/input\"\nimport {CorePasswordInput} from \"@qualcomm-ui/react-core/password-input\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PasswordInputInputGroupProps extends ElementRenderProp<\"div\"> {\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\nexport function PasswordInputInputGroup({\n children,\n ...props\n}: PasswordInputInputGroupProps): ReactElement {\n const contextProps = CorePasswordInput.usePasswordInputInputGroup()\n const qdsContext = useQdsInputContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getGroupBindings(),\n props,\n )\n\n return (\n <PolymorphicElement as=\"div\" {...mergedProps}>\n {qdsContext.startIcon ? (\n <InputStartIcon icon={qdsContext.startIcon} />\n ) : null}\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 {InputLabel, type InputLabelProps} from \"@qualcomm-ui/react/input\"\nimport {\n CorePasswordInput,\n usePasswordInputContext,\n} from \"@qualcomm-ui/react-core/password-input\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PasswordInputLabelProps extends InputLabelProps {\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\nexport function PasswordInputLabel(\n props: PasswordInputLabelProps,\n): ReactElement {\n const context = usePasswordInputContext()\n const contextProps = CorePasswordInput.usePasswordInputLabel({id: props.id})\n\n const mergedProps = mergeProps(contextProps, props)\n\n return <InputLabel required={context.required} {...mergedProps} />\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 PasswordInputApiProps,\n splitPasswordInputProps,\n} from \"@qualcomm-ui/core/password-input\"\nimport {createQdsInputApi} from \"@qualcomm-ui/qds-core/input\"\nimport {\n QdsInputContextProvider,\n type QdsReactInputApi,\n type QdsReactInputApiProps,\n} from \"@qualcomm-ui/react/input\"\nimport {normalizeProps} from \"@qualcomm-ui/react-core/machine\"\nimport {\n CorePasswordInput,\n PasswordInputContextProvider,\n} from \"@qualcomm-ui/react-core/password-input\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PasswordInputRootProps\n extends\n PasswordInputApiProps,\n Omit<QdsReactInputApiProps, \"endIcon\">,\n Omit<ElementRenderProp<\"div\">, \"defaultValue\" | \"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\nexport function PasswordInputRoot({\n children,\n size,\n startIcon,\n ...props\n}: PasswordInputRootProps): ReactElement {\n const [textInputProps, localProps] = splitPasswordInputProps(props)\n const context = CorePasswordInput.usePasswordInput(textInputProps)\n\n const qdsContext: QdsReactInputApi = useMemo(\n () => createQdsInputApi({size, startIcon}, normalizeProps),\n [size, startIcon],\n )\n\n const mergedProps = mergeProps(\n context.getRootBindings(),\n qdsContext.getRootBindings(),\n localProps,\n )\n\n return (\n <PasswordInputContextProvider value={context}>\n <QdsInputContextProvider value={qdsContext}>\n <PolymorphicElement as=\"div\" {...mergedProps}>\n {children}\n </PolymorphicElement>\n </QdsInputContextProvider>\n </PasswordInputContextProvider>\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 {Eye, EyeOff} from \"lucide-react\"\n\nimport {passwordInputClasses} from \"@qualcomm-ui/qds-core/password-input\"\nimport {InlineIconButton} from \"@qualcomm-ui/react/inline-icon-button\"\nimport type {LucideIconOrElement} from \"@qualcomm-ui/react-core/lucide\"\nimport {\n CorePasswordInput,\n usePasswordInputContext,\n} from \"@qualcomm-ui/react-core/password-input\"\nimport type {ElementRenderProp} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PasswordInputVisibilityTriggerProps extends ElementRenderProp<\"button\"> {\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 * The icon shown when the input text is visible.\n *\n * @default EyeOff\n */\n iconOff?: LucideIconOrElement\n\n /**\n * The icon shown when the input text is hidden.\n *\n * @default Eye\n */\n iconOn?: LucideIconOrElement\n}\n\nexport function PasswordInputVisibilityTrigger({\n children,\n iconOff = EyeOff,\n iconOn = Eye,\n id,\n ...props\n}: PasswordInputVisibilityTriggerProps): ReactElement {\n const context = usePasswordInputContext()\n const contextProps = CorePasswordInput.usePasswordInputVisibilityTrigger({id})\n const mergedProps = mergeProps(\n contextProps,\n {className: passwordInputClasses.visibilityTrigger},\n props,\n )\n\n return (\n <InlineIconButton\n icon={context.visible ? iconOff : iconOn}\n {...mergedProps}\n >\n {children}\n </InlineIconButton>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {useOptionalContentId} from \"@qualcomm-ui/react-core/machine\"\nimport {useControlledId} from \"@qualcomm-ui/react-core/state\"\n\nimport {PasswordInputClearTrigger} from \"./password-input-clear-trigger\"\nimport {\n PasswordInputErrorIndicator,\n type PasswordInputErrorIndicatorProps,\n} from \"./password-input-error-indicator\"\nimport {\n PasswordInputErrorText,\n type PasswordInputErrorTextProps,\n} from \"./password-input-error-text\"\nimport {\n PasswordInputHint,\n type PasswordInputHintProps,\n} from \"./password-input-hint\"\nimport {\n PasswordInputInput,\n type PasswordInputInputProps,\n} from \"./password-input-input\"\nimport {\n PasswordInputInputGroup,\n type PasswordInputInputGroupProps,\n} from \"./password-input-input-group\"\nimport {\n PasswordInputLabel,\n type PasswordInputLabelProps,\n} from \"./password-input-label\"\nimport {\n PasswordInputRoot,\n type PasswordInputRootProps,\n} from \"./password-input-root\"\nimport {\n PasswordInputVisibilityTrigger,\n type PasswordInputVisibilityTriggerProps,\n} from \"./password-input-visibility-trigger\"\n\nexport interface PasswordInputProps extends PasswordInputRootProps {\n /**\n * {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label aria-label}\n * attribute, forwarded to the input element.\n */\n \"aria-label\"?: string | undefined\n\n /**\n * {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-labelledby aria-labelledby}\n * attribute, forwarded to the input element. If you provide a {@link label},\n * omit this prop.\n */\n \"aria-labelledby\"?: string | undefined\n\n /**\n * The simple PasswordInput doesn't support children.\n */\n children?: never\n\n /**\n * When `true`, renders a clear button that resets the input value on click.\n * The button only appears when the input has a value.\n *\n * @default false\n */\n clearable?: boolean\n\n /**\n * Props applied to the error indicator element.\n *\n * @inheritDoc\n */\n errorIndicatorProps?: PasswordInputErrorIndicatorProps\n\n /**\n * Optional error that describes the element when {@link invalid} is true.\n */\n errorText?: string\n\n /**\n * Props applied to the error text element.\n *\n * @inheritDoc\n */\n errorTextProps?: PasswordInputErrorTextProps\n\n /**\n * Optional hint describing the element. This element is automatically\n * associated with the component's input element for accessibility.\n */\n hint?: ReactNode\n\n /**\n * Props applied to the label element.\n *\n * @inheritDoc\n */\n hintProps?: PasswordInputHintProps\n\n /**\n * Props applied to the input group element.\n *\n * @inheritDoc\n */\n inputGroupProps?: PasswordInputInputGroupProps\n\n /**\n * Props applied to the input element.\n *\n * @inheritDoc\n */\n inputProps?: PasswordInputInputProps\n\n /**\n * Optional label describing the element. Recommended. This element is\n * automatically associated with the component's input element for\n * accessibility.\n */\n label?: ReactNode\n\n /**\n * Props applied to the label element.\n *\n * @inheritDoc\n */\n labelProps?: PasswordInputLabelProps\n\n /**\n * HTML {@link https://www.w3schools.com/tags/att_input_placeholder.asp placeholder} attribute,\n * passed to the underlying input element.\n */\n placeholder?: string\n\n /**\n * Props applied to the visibility trigger element.\n *\n * @inheritDoc\n */\n visibilityTriggerProps?: PasswordInputVisibilityTriggerProps\n}\n\nexport function PasswordInput({\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n clearable,\n errorIndicatorProps,\n errorText,\n errorTextProps,\n hint,\n hintProps,\n inputGroupProps,\n inputProps: inputPropsProp,\n label,\n labelProps,\n placeholder,\n visibilityTriggerProps,\n ...props\n}: PasswordInputProps): ReactElement {\n const labelContent = label || labelProps?.children\n const errorTextContent = errorText || errorTextProps?.children\n const hintContent = hint || hintProps?.children\n\n const inputProps = {\n ...inputPropsProp,\n }\n\n if (ariaLabel !== undefined) {\n inputProps[\"aria-label\"] = ariaLabel\n }\n if (ariaLabelledBy !== undefined) {\n inputProps[\"aria-labelledby\"] = ariaLabelledBy\n }\n\n const visibilityTriggerId = useControlledId(visibilityTriggerProps?.id)\n\n const ids = {\n errorText: useOptionalContentId(errorTextContent, errorTextProps),\n hint: useOptionalContentId(hintContent, hintProps),\n input: useControlledId(inputProps?.id),\n label: useOptionalContentId(labelContent, labelProps),\n visibilityTrigger: visibilityTriggerId,\n ...props.ids,\n }\n\n return (\n <PasswordInputRoot {...props} ids={ids}>\n {labelContent ? (\n <PasswordInputLabel {...labelProps} id={ids.label}>\n {labelContent}\n </PasswordInputLabel>\n ) : null}\n\n <PasswordInputInputGroup {...inputGroupProps}>\n <PasswordInputInput\n placeholder={placeholder}\n {...inputProps}\n id={ids.input}\n />\n {clearable ? <PasswordInputClearTrigger /> : null}\n <PasswordInputVisibilityTrigger\n {...visibilityTriggerProps}\n id={ids.visibilityTrigger}\n />\n <PasswordInputErrorIndicator {...errorIndicatorProps} />\n </PasswordInputInputGroup>\n\n {hintContent ? (\n <PasswordInputHint {...hintProps} id={ids.hint}>\n {hintContent}\n </PasswordInputHint>\n ) : null}\n\n {errorTextContent ? (\n <PasswordInputErrorText {...errorTextProps} id={ids.errorText}>\n {errorTextContent}\n </PasswordInputErrorText>\n ) : null}\n </PasswordInputRoot>\n )\n}\n","import {PasswordInput as SimplePasswordInput} from \"./password-input\"\nimport {\n PasswordInputClearTrigger,\n type PasswordInputClearTriggerProps,\n} from \"./password-input-clear-trigger\"\nimport {\n PasswordInputErrorIndicator,\n type PasswordInputErrorIndicatorProps,\n} from \"./password-input-error-indicator\"\nimport {\n PasswordInputErrorText,\n type PasswordInputErrorTextProps,\n} from \"./password-input-error-text\"\nimport {\n PasswordInputHint,\n type PasswordInputHintProps,\n} from \"./password-input-hint\"\nimport {\n PasswordInputInput,\n type PasswordInputInputProps,\n} from \"./password-input-input\"\nimport {\n PasswordInputInputGroup,\n type PasswordInputInputGroupProps,\n} from \"./password-input-input-group\"\nimport {\n PasswordInputLabel,\n type PasswordInputLabelProps,\n} from \"./password-input-label\"\nimport {\n PasswordInputRoot,\n type PasswordInputRootProps,\n} from \"./password-input-root\"\nimport {\n PasswordInputVisibilityTrigger,\n type PasswordInputVisibilityTriggerProps,\n} from \"./password-input-visibility-trigger\"\n\nexport type {\n PasswordInputClearTriggerProps,\n PasswordInputErrorIndicatorProps,\n PasswordInputErrorTextProps,\n PasswordInputHintProps,\n PasswordInputInputGroupProps,\n PasswordInputInputProps,\n PasswordInputLabelProps,\n PasswordInputRootProps,\n PasswordInputVisibilityTriggerProps,\n}\n\ntype PasswordInputComponent = typeof SimplePasswordInput & {\n ClearTrigger: typeof PasswordInputClearTrigger\n ErrorIndicator: typeof PasswordInputErrorIndicator\n ErrorText: typeof PasswordInputErrorText\n Hint: typeof PasswordInputHint\n Input: typeof PasswordInputInput\n InputGroup: typeof PasswordInputInputGroup\n Label: typeof PasswordInputLabel\n Root: typeof PasswordInputRoot\n VisibilityTrigger: typeof PasswordInputVisibilityTrigger\n}\n\nexport const PasswordInput: PasswordInputComponent =\n SimplePasswordInput as PasswordInputComponent\n\nPasswordInput.ClearTrigger = PasswordInputClearTrigger\nPasswordInput.ErrorIndicator = PasswordInputErrorIndicator\nPasswordInput.ErrorText = PasswordInputErrorText\nPasswordInput.Hint = PasswordInputHint\nPasswordInput.InputGroup = PasswordInputInputGroup\nPasswordInput.Input = PasswordInputInput\nPasswordInput.Label = PasswordInputLabel\nPasswordInput.Root = PasswordInputRoot\nPasswordInput.VisibilityTrigger = PasswordInputVisibilityTrigger\n"],"mappings":"giCAeA,SAAOQ,0BAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAGLC,EAAqBR,EAAiBS,8BAA+B,CACrEC,EAAmBX,GAAoB,CAAAY,EAAAL,EAAA,KAAAE,GAAAF,EAAA,KAAAD,GAAAC,EAAA,KAAAI,GACnBC,EAAAT,EAClBM,EACAE,EAAUE,yBAA0B,CACpCP,EACD,CAAAC,EAAA,GAAAE,EAAAF,EAAA,GAAAD,EAAAC,EAAA,GAAAI,EAAAJ,EAAA,GAAAK,GAAAA,EAAAL,EAAA,GAJD,IAAAO,EAAoBF,EAInBG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AAoB,EAAApB,EAAA,IAAA4B,GAAAA,EAAA5B,EAAA,IAhCpB4B,EC7HJ,IAAaC,EACXC,gBAEFD,EAAcqB,aAAenB,0BAC7BF,EAAcsB,eAAiBlB,4BAC/BJ,EAAcuB,UAAYjB,uBAC1BN,EAAcwB,KAAOhB,kBACrBR,EAAc0B,WAAad,wBAC3BZ,EAAcyB,MAAQf,mBACtBV,EAAc2B,MAAQb,mBACtBd,EAAc4B,KAAOZ,kBACrBhB,EAAc6B,kBAAoBX"}
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{jsx as jsx9,jsxs}from"react/jsx-runtime";import{Portal as Portal2}from"@qualcomm-ui/react-core/portal";import{useControlledId as useControlledId3}from"@qualcomm-ui/react-core/state";import{c as _c}from"react/compiler-runtime";import{jsx}from"react/jsx-runtime";import{usePopoverAnchor}from"@qualcomm-ui/react-core/popover";import{PolymorphicElement}from"@qualcomm-ui/react-core/system";import{mergeProps}from"@qualcomm-ui/utils/merge-props";function PopoverAnchor(t0){let $=_c(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=usePopoverAnchor(t1),mergedProps=mergeProps(contextProps,props);return jsx(PolymorphicElement,{as:"div",...mergedProps,children})}import{c as _c2}from"react/compiler-runtime";import{jsx as jsx3}from"react/jsx-runtime";import{usePopoverArrow}from"@qualcomm-ui/react-core/popover";import{PolymorphicElement as PolymorphicElement3}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps3}from"@qualcomm-ui/utils/merge-props";import{jsx as jsx2}from"react/jsx-runtime";import{popoverClasses}from"@qualcomm-ui/qds-core/popover";import{usePopoverArrowTip}from"@qualcomm-ui/react-core/popover";import{PolymorphicElement as PolymorphicElement2}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps2}from"@qualcomm-ui/utils/merge-props";function PopoverArrowTip(t0){let{children,...props}=t0,contextProps=usePopoverArrowTip(),mergedProps=mergeProps2(contextProps,{className:popoverClasses.arrowTip},props);return jsx2(PolymorphicElement2,{as:"div",...mergedProps,children})}import{createGuardedContext}from"@qualcomm-ui/react-core/context";var[QdsPopoverContextProvider,useQdsPopoverContext]=createGuardedContext({hookName:"useQdsPopoverContext",providerName:"<QdsPopoverContextProvider>",strict:!0});function PopoverArrow(t0){let $=_c2(2),{children:t1,id,...props}=t0,children=t1===void 0?jsx3(PopoverArrowTip,{}):t1,t2;$[0]!==id?(t2={id},$[0]=id,$[1]=t2):t2=$[1];let contextProps=usePopoverArrow(t2),qdsPopover=useQdsPopoverContext(),mergedProps=mergeProps3(contextProps,qdsPopover.getArrowBindings(),props);return jsx3(PolymorphicElement3,{as:"div",...mergedProps,children})}import{jsx as jsx4}from"react/jsx-runtime";import{useOnDestroyWhen}from"@qualcomm-ui/react-core/effects";import{usePopoverContext}from"@qualcomm-ui/react-core/popover";import{usePresenceContext}from"@qualcomm-ui/react-core/presence";import{composeRefs}from"@qualcomm-ui/react-core/refs";import{useControlledId}from"@qualcomm-ui/react-core/state";import{PolymorphicElement as PolymorphicElement4}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps4}from"@qualcomm-ui/utils/merge-props";function PopoverContent({children,id,ref,...props}){let popover=usePopoverContext(),presence=usePresenceContext(),qdsPopover=useQdsPopoverContext(),mergedProps=mergeProps4(popover.getContentBindings({id:useControlledId(id),onDestroy:useOnDestroyWhen(presence.unmounted)}),qdsPopover.getContentBindings(),props);return presence.unmounted?null:jsx4(PolymorphicElement4,{as:"section",...mergedProps,ref:composeRefs(presence.ref,ref),children})}import{c as _c3}from"react/compiler-runtime";import{jsx as jsx5}from"react/jsx-runtime";import{popoverClasses as popoverClasses2}from"@qualcomm-ui/qds-core/popover";import{usePopoverDescription}from"@qualcomm-ui/react-core/popover";import{PolymorphicElement as PolymorphicElement5}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps5}from"@qualcomm-ui/utils/merge-props";function PopoverDescription(t0){let $=_c3(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=usePopoverDescription(t1),mergedProps=mergeProps5(contextProps,{className:popoverClasses2.description},props);return jsx5(PolymorphicElement5,{as:"div",...mergedProps,children})}import{c as _c4}from"react/compiler-runtime";import{jsx as jsx6}from"react/jsx-runtime";import{popoverClasses as popoverClasses3}from"@qualcomm-ui/qds-core/popover";import{usePopoverLabel}from"@qualcomm-ui/react-core/popover";import{PolymorphicElement as PolymorphicElement6}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps6}from"@qualcomm-ui/utils/merge-props";function PopoverLabel(t0){let $=_c4(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=usePopoverLabel(t1),mergedProps=mergeProps6(contextProps,{className:popoverClasses3.label},props);return jsx6(PolymorphicElement6,{as:"div",...mergedProps,children})}import{jsx as jsx7}from"react/jsx-runtime";import{useOnDestroyWhen as useOnDestroyWhen2}from"@qualcomm-ui/react-core/effects";import{usePopoverContext as usePopoverContext2}from"@qualcomm-ui/react-core/popover";import{Portal}from"@qualcomm-ui/react-core/portal";import{usePresenceContext as usePresenceContext2}from"@qualcomm-ui/react-core/presence";import{useControlledId as useControlledId2}from"@qualcomm-ui/react-core/state";import{PolymorphicElement as PolymorphicElement7}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps7}from"@qualcomm-ui/utils/merge-props";function PopoverPositioner(t0){let{children,id,...props}=t0,popover=usePopoverContext2(),presence=usePresenceContext2(),mergedProps=mergeProps7(popover.getPositionerBindings({id:useControlledId2(id),onDestroy:useOnDestroyWhen2(presence.unmounted)}),props);return presence.unmounted?null:jsx7(Portal,{disabled:!popover.portalled,children:jsx7(PolymorphicElement7,{as:"div",...mergedProps,children})})}import{jsx as jsx8}from"react/jsx-runtime";import{useMemo}from"react";import{splitPresenceProps}from"@qualcomm-ui/core/presence";import{createQdsPopoverApi}from"@qualcomm-ui/qds-core/popover";import{normalizeProps}from"@qualcomm-ui/react-core/machine";import{PopoverContextProvider,usePopover}from"@qualcomm-ui/react-core/popover";import{PresenceContextProvider,usePresence}from"@qualcomm-ui/react-core/presence";import{mergeProps as mergeProps8}from"@qualcomm-ui/utils/merge-props";function PopoverRoot(props){let[presenceProps,{children,emphasis,...localProps}]=splitPresenceProps(props),popover=usePopover(localProps),presence=usePresence(mergeProps8({present:popover.open},presenceProps)),qdsPopoverApi=useMemo(()=>createQdsPopoverApi({emphasis},normalizeProps),[emphasis]);return jsx8(QdsPopoverContextProvider,{value:qdsPopoverApi,children:jsx8(PopoverContextProvider,{value:popover,children:jsx8(PresenceContextProvider,{value:presence,children})})})}import{c as _c5}from"react/compiler-runtime";import{popoverClasses as popoverClasses4}from"@qualcomm-ui/qds-core/popover";import{usePopoverTrigger}from"@qualcomm-ui/react-core/popover";import{bindingRenderProp}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps9}from"@qualcomm-ui/utils/merge-props";function PopoverTrigger(t0){let $=_c5(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=usePopoverTrigger(t1),mergedProps=mergeProps9(contextProps,{className:popoverClasses4.trigger},props);return bindingRenderProp(children,mergedProps)}function Popover(t0){let{anchorProps,arrowProps,children,contentProps,description,descriptionProps,hideArrow,label,labelProps,portalProps,positionerProps,trigger,...props}=t0,labelContent=label||labelProps?.children,descriptionContent=description||descriptionProps?.children,ids={anchor:useControlledId3(anchorProps?.id),arrow:useControlledId3(arrowProps?.id),content:useControlledId3(contentProps?.id),description:descriptionContent?descriptionProps?.id:"",positioner:useControlledId3(positionerProps?.id),title:labelContent?labelProps?.id:"",...props.ids};return jsxs(PopoverRoot,{portalled:!portalProps?.disabled,...props,ids,children:[jsx9(PopoverAnchor,{...anchorProps,id:ids.anchor,children:jsx9(PopoverTrigger,{id:ids.trigger,children:trigger})}),jsx9(Portal2,{...portalProps,children:jsx9(PopoverPositioner,{...positionerProps,id:ids.positioner,children:jsxs(PopoverContent,{...contentProps,id:ids.content,children:[hideArrow?null:jsx9(PopoverArrow,{...arrowProps,id:ids.arrow}),labelContent?jsx9(PopoverLabel,{...labelProps,id:ids.title,children:labelContent}):null,descriptionContent?jsx9(PopoverDescription,{...descriptionProps,id:ids.description,children:descriptionContent}):null,children]})})})]})}import{c as _c6}from"react/compiler-runtime";import{usePopoverCloseTrigger}from"@qualcomm-ui/react-core/popover";import{bindingRenderProp as bindingRenderProp2}from"@qualcomm-ui/react-core/system";function PopoverCloseTrigger(t0){let $=_c6(5),{children,id}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=usePopoverCloseTrigger(t1),t2;return $[2]!==children||$[3]!==contextProps?(t2=bindingRenderProp2(children,contextProps),$[2]=children,$[3]=contextProps,$[4]=t2):t2=$[4],t2}import{jsx as jsx10}from"react/jsx-runtime";import{usePopoverIndicator}from"@qualcomm-ui/react-core/popover";import{PolymorphicElement as PolymorphicElement8}from"@qualcomm-ui/react-core/system";function PopoverIndicator(t0){let{children,...props}=t0,contextProps=usePopoverIndicator();return jsx10(PolymorphicElement8,{as:"span",...contextProps,...props,children})}var Popover2=Popover;Popover2.Anchor=PopoverAnchor;Popover2.Arrow=PopoverArrow;Popover2.ArrowTip=PopoverArrowTip;Popover2.CloseTrigger=PopoverCloseTrigger;Popover2.Content=PopoverContent;Popover2.Description=PopoverDescription;Popover2.Indicator=PopoverIndicator;Popover2.Label=PopoverLabel;Popover2.Positioner=PopoverPositioner;Popover2.Root=PopoverRoot;Popover2.Trigger=PopoverTrigger;export{Popover2 as Popover};
3
- //# sourceMappingURL=index.js.map
1
+ "use client;";import{c as e}from"react/compiler-runtime";import{mergeProps as t}from"@qualcomm-ui/utils/merge-props";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{PolymorphicElement as i,bindingRenderProp as a}from"@qualcomm-ui/react-core/system";import"react";import{normalizeProps as o}from"@qualcomm-ui/react-core/machine";import{useControlledId as s}from"@qualcomm-ui/react-core/state";import{createGuardedContext as c}from"@qualcomm-ui/react-core/context";import{Portal as l}from"@qualcomm-ui/react-core/portal";import{composeRefs as u}from"@qualcomm-ui/react-core/refs";import{splitPresenceProps as d}from"@qualcomm-ui/core/presence";import{PresenceContextProvider as f,usePresence as p,usePresenceContext as m}from"@qualcomm-ui/react-core/presence";import{useOnDestroyWhen as h}from"@qualcomm-ui/react-core/effects";import{PopoverContextProvider as g,usePopover as _,usePopoverAnchor as v,usePopoverArrow as y,usePopoverArrowTip as b,usePopoverCloseTrigger as x,usePopoverContext as S,usePopoverDescription as C,usePopoverIndicator as w,usePopoverLabel as T,usePopoverTrigger as E}from"@qualcomm-ui/react-core/popover";import{createQdsPopoverApi as D,popoverClasses as O}from"@qualcomm-ui/qds-core/popover";function PopoverAnchor(r){let a=e(5),{children:o,id:s,...c}=r,l;a[0]===s?l=a[1]:(l={id:s},a[0]=s,a[1]=l);let u=t(v(l),c),d;return a[2]!==o||a[3]!==u?(d=n(i,{as:`div`,...u,children:o}),a[2]=o,a[3]=u,a[4]=d):d=a[4],d}function PopoverArrowTip(r){let a=e(3),{children:o,...s}=r,c=t(b(),{className:O.arrowTip},s),l;return a[0]!==o||a[1]!==c?(l=n(i,{as:`div`,...c,children:o}),a[0]=o,a[1]=c,a[2]=l):l=a[2],l}var[k,A]=c({hookName:`useQdsPopoverContext`,providerName:`<QdsPopoverContextProvider>`,strict:!0});function PopoverArrow({children:e=n(PopoverArrowTip,{}),id:r,...a}){return n(i,{as:`div`,...t(y({id:r}),A().getArrowBindings(),a),children:e})}function PopoverContent(r){let a=e(7),{children:o,id:c,ref:l,...d}=r,f=S(),p=m(),g=A(),_=t(f.getContentBindings({id:s(c),onDestroy:h(p.unmounted)}),g.getContentBindings(),d);if(p.unmounted)return null;let v;a[0]!==p.ref||a[1]!==l?(v=u(p.ref,l),a[0]=p.ref,a[1]=l,a[2]=v):v=a[2];let y;return a[3]!==o||a[4]!==_||a[5]!==v?(y=n(i,{as:`section`,..._,ref:v,children:o}),a[3]=o,a[4]=_,a[5]=v,a[6]=y):y=a[6],y}function PopoverDescription(r){let a=e(5),{children:o,id:s,...c}=r,l;a[0]===s?l=a[1]:(l={id:s},a[0]=s,a[1]=l);let u=t(C(l),{className:O.description},c),d;return a[2]!==o||a[3]!==u?(d=n(i,{as:`div`,...u,children:o}),a[2]=o,a[3]=u,a[4]=d):d=a[4],d}function PopoverLabel(r){let a=e(5),{children:o,id:s,...c}=r,l;a[0]===s?l=a[1]:(l={id:s},a[0]=s,a[1]=l);let u=t(T(l),{className:O.label},c),d;return a[2]!==o||a[3]!==u?(d=n(i,{as:`div`,...u,children:o}),a[2]=o,a[3]=u,a[4]=d):d=a[4],d}function PopoverPositioner(r){let a=e(6),{children:o,id:c,...u}=r,d=S(),f=m(),p=t(d.getPositionerBindings({id:s(c),onDestroy:h(f.unmounted)}),u);if(f.unmounted)return null;let g=!d.portalled,_;a[0]!==o||a[1]!==p?(_=n(i,{as:`div`,...p,children:o}),a[0]=o,a[1]=p,a[2]=_):_=a[2];let v;return a[3]!==g||a[4]!==_?(v=n(l,{disabled:g,children:_}),a[3]=g,a[4]=_,a[5]=v):v=a[5],v}function PopoverRoot(r){let i=e(11),[a,s]=d(r),{children:c,emphasis:l,...u}=s,m=_(u),h=p(t({present:m.open},a)),v;i[0]===l?v=i[1]:(v=D({emphasis:l},o),i[0]=l,i[1]=v);let y=v,b;i[2]!==c||i[3]!==h?(b=n(f,{value:h,children:c}),i[2]=c,i[3]=h,i[4]=b):b=i[4];let x;i[5]!==m||i[6]!==b?(x=n(g,{value:m,children:b}),i[5]=m,i[6]=b,i[7]=x):x=i[7];let S;return i[8]!==y||i[9]!==x?(S=n(k,{value:y,children:x}),i[8]=y,i[9]=x,i[10]=S):S=i[10],S}function PopoverTrigger(n){let r=e(2),{children:i,id:o,...s}=n,c;return r[0]===o?c=r[1]:(c={id:o},r[0]=o,r[1]=c),a(i,t(E(c),{className:O.trigger},s))}function Popover$1(t){let i=e(61),a,o,c,u,d,f,p,m,h,g,_,v,y;i[0]===t?(a=i[1],o=i[2],c=i[3],u=i[4],d=i[5],f=i[6],p=i[7],m=i[8],h=i[9],g=i[10],_=i[11],v=i[12],y=i[13]):({anchorProps:a,arrowProps:o,children:c,contentProps:u,description:d,descriptionProps:f,hideArrow:p,label:m,labelProps:h,portalProps:g,positionerProps:_,trigger:y,...v}=t,i[0]=t,i[1]=a,i[2]=o,i[3]=c,i[4]=u,i[5]=d,i[6]=f,i[7]=p,i[8]=m,i[9]=h,i[10]=g,i[11]=_,i[12]=v,i[13]=y);let b=m||h?.children,x=d||f?.children,S=s(a?.id),C=s(o?.id),w=s(u?.id),T=x?f?.id:``,E=s(_?.id),D=b?h?.id:``,O;i[14]!==v.ids||i[15]!==S||i[16]!==C||i[17]!==w||i[18]!==T||i[19]!==E||i[20]!==D?(O={anchor:S,arrow:C,content:w,description:T,positioner:E,title:D,...v.ids},i[14]=v.ids,i[15]=S,i[16]=C,i[17]=w,i[18]=T,i[19]=E,i[20]=D,i[21]=O):O=i[21];let k=O,A=!g?.disabled,j;i[22]!==k.trigger||i[23]!==y?(j=n(PopoverTrigger,{id:k.trigger,children:y}),i[22]=k.trigger,i[23]=y,i[24]=j):j=i[24];let M;i[25]!==a||i[26]!==k.anchor||i[27]!==j?(M=n(PopoverAnchor,{...a,id:k.anchor,children:j}),i[25]=a,i[26]=k.anchor,i[27]=j,i[28]=M):M=i[28];let N;i[29]!==o||i[30]!==p||i[31]!==k.arrow?(N=p?null:n(PopoverArrow,{...o,id:k.arrow}),i[29]=o,i[30]=p,i[31]=k.arrow,i[32]=N):N=i[32];let P;i[33]!==k.title||i[34]!==b||i[35]!==h?(P=b?n(PopoverLabel,{...h,id:k.title,children:b}):null,i[33]=k.title,i[34]=b,i[35]=h,i[36]=P):P=i[36];let F;i[37]!==x||i[38]!==f||i[39]!==k.description?(F=x?n(PopoverDescription,{...f,id:k.description,children:x}):null,i[37]=x,i[38]=f,i[39]=k.description,i[40]=F):F=i[40];let I;i[41]!==c||i[42]!==u||i[43]!==k.content||i[44]!==N||i[45]!==P||i[46]!==F?(I=r(PopoverContent,{...u,id:k.content,children:[N,P,F,c]}),i[41]=c,i[42]=u,i[43]=k.content,i[44]=N,i[45]=P,i[46]=F,i[47]=I):I=i[47];let L;i[48]!==k.positioner||i[49]!==_||i[50]!==I?(L=n(PopoverPositioner,{..._,id:k.positioner,children:I}),i[48]=k.positioner,i[49]=_,i[50]=I,i[51]=L):L=i[51];let R;i[52]!==g||i[53]!==L?(R=n(l,{...g,children:L}),i[52]=g,i[53]=L,i[54]=R):R=i[54];let z;return i[55]!==k||i[56]!==v||i[57]!==M||i[58]!==R||i[59]!==A?(z=r(PopoverRoot,{portalled:A,...v,ids:k,children:[M,R]}),i[55]=k,i[56]=v,i[57]=M,i[58]=R,i[59]=A,i[60]=z):z=i[60],z}function PopoverCloseTrigger(t){let n=e(5),{children:r,id:i}=t,o;n[0]===i?o=n[1]:(o={id:i},n[0]=i,n[1]=o);let s=x(o),c;return n[2]!==r||n[3]!==s?(c=a(r,s),n[2]=r,n[3]=s,n[4]=c):c=n[4],c}function PopoverIndicator(t){let r=e(7),a,o;r[0]===t?(a=r[1],o=r[2]):({children:a,...o}=t,r[0]=t,r[1]=a,r[2]=o);let s=w(),c;return r[3]!==a||r[4]!==s||r[5]!==o?(c=n(i,{as:`span`,...s,...o,children:a}),r[3]=a,r[4]=s,r[5]=o,r[6]=c):c=r[6],c}var j=Popover$1;j.Anchor=PopoverAnchor,j.Arrow=PopoverArrow,j.ArrowTip=PopoverArrowTip,j.CloseTrigger=PopoverCloseTrigger,j.Content=PopoverContent,j.Description=PopoverDescription,j.Indicator=PopoverIndicator,j.Label=PopoverLabel,j.Positioner=PopoverPositioner,j.Root=PopoverRoot,j.Trigger=PopoverTrigger;export{j as Popover};
2
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/popover/popover.tsx", "../../src/popover/popover-anchor.tsx", "../../src/popover/popover-arrow.tsx", "../../src/popover/popover-arrow-tip.tsx", "../../src/popover/qds-popover-context.ts", "../../src/popover/popover-content.tsx", "../../src/popover/popover-description.tsx", "../../src/popover/popover-label.tsx", "../../src/popover/popover-positioner.tsx", "../../src/popover/popover-root.tsx", "../../src/popover/popover-trigger.tsx", "../../src/popover/popover-close-trigger.tsx", "../../src/popover/popover-indicator.tsx", "../../src/popover/index.ts"],
4
- "sourcesContent": ["import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { Portal } from \"@qualcomm-ui/react-core/portal\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { PopoverAnchor } from \"./popover-anchor\";\nimport { PopoverArrow } from \"./popover-arrow\";\nimport { PopoverContent } from \"./popover-content\";\nimport { PopoverDescription } from \"./popover-description\";\nimport { PopoverLabel } from \"./popover-label\";\nimport { PopoverPositioner } from \"./popover-positioner\";\nimport { PopoverRoot } from \"./popover-root\";\nimport { PopoverTrigger } from \"./popover-trigger\";\nexport function Popover(t0) {\n const {\n anchorProps,\n arrowProps,\n children,\n contentProps,\n description,\n descriptionProps,\n hideArrow,\n label,\n labelProps,\n portalProps,\n positionerProps,\n trigger,\n ...props\n } = t0;\n const labelContent = label || labelProps?.children;\n const descriptionContent = description || descriptionProps?.children;\n const ids = {\n anchor: useControlledId(anchorProps?.id),\n arrow: useControlledId(arrowProps?.id),\n content: useControlledId(contentProps?.id),\n description: descriptionContent ? descriptionProps?.id : \"\",\n positioner: useControlledId(positionerProps?.id),\n title: labelContent ? labelProps?.id : \"\",\n ...props.ids\n };\n return jsxs(PopoverRoot, {\n portalled: !portalProps?.disabled,\n ...props,\n ids,\n children: [jsx(PopoverAnchor, {\n ...anchorProps,\n id: ids.anchor,\n children: jsx(PopoverTrigger, {\n id: ids.trigger,\n children: trigger\n })\n }), jsx(Portal, {\n ...portalProps,\n children: jsx(PopoverPositioner, {\n ...positionerProps,\n id: ids.positioner,\n children: jsxs(PopoverContent, {\n ...contentProps,\n id: ids.content,\n children: [!hideArrow ? jsx(PopoverArrow, {\n ...arrowProps,\n id: ids.arrow\n }) : null, labelContent ? jsx(PopoverLabel, {\n ...labelProps,\n id: ids.title,\n children: labelContent\n }) : null, descriptionContent ? jsx(PopoverDescription, {\n ...descriptionProps,\n id: ids.description,\n children: descriptionContent\n }) : null, children]\n })\n })\n })]\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { usePopoverAnchor } from \"@qualcomm-ui/react-core/popover\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PopoverAnchor(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 = usePopoverAnchor(t1);\n const mergedProps = mergeProps(contextProps, props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { usePopoverArrow } from \"@qualcomm-ui/react-core/popover\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { PopoverArrowTip } from \"./popover-arrow-tip\";\nimport { useQdsPopoverContext } from \"./qds-popover-context\";\nexport function PopoverArrow(t0) {\n const $ = _c(2);\n const {\n children: t1,\n id,\n ...props\n } = t0;\n const children = t1 === undefined ? jsx(PopoverArrowTip, {}) : 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 = usePopoverArrow(t2);\n const qdsPopover = useQdsPopoverContext();\n const mergedProps = mergeProps(contextProps, qdsPopover.getArrowBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { popoverClasses } from \"@qualcomm-ui/qds-core/popover\";\nimport { usePopoverArrowTip } from \"@qualcomm-ui/react-core/popover\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PopoverArrowTip(t0) {\n const {\n children,\n ...props\n } = t0;\n const contextProps = usePopoverArrowTip();\n const mergedProps = mergeProps(contextProps, {\n className: popoverClasses.arrowTip\n }, props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [QdsPopoverContextProvider, useQdsPopoverContext] = createGuardedContext({\n hookName: \"useQdsPopoverContext\",\n providerName: \"<QdsPopoverContextProvider>\",\n strict: true\n});", "import { jsx } from \"react/jsx-runtime\";\nimport { useOnDestroyWhen } from \"@qualcomm-ui/react-core/effects\";\nimport { usePopoverContext } from \"@qualcomm-ui/react-core/popover\";\nimport { usePresenceContext } from \"@qualcomm-ui/react-core/presence\";\nimport { composeRefs } from \"@qualcomm-ui/react-core/refs\";\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 { useQdsPopoverContext } from \"./qds-popover-context\";\nexport function PopoverContent({\n children,\n id,\n ref,\n ...props\n}) {\n const popover = usePopoverContext();\n const presence = usePresenceContext();\n const qdsPopover = useQdsPopoverContext();\n const mergedProps = mergeProps(popover.getContentBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroyWhen(presence.unmounted)\n }), qdsPopover.getContentBindings(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */jsx(PolymorphicElement, {\n as: \"section\",\n ...mergedProps,\n ref: composeRefs(presence.ref, ref),\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { popoverClasses } from \"@qualcomm-ui/qds-core/popover\";\nimport { usePopoverDescription } from \"@qualcomm-ui/react-core/popover\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PopoverDescription(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 = usePopoverDescription(t1);\n const mergedProps = mergeProps(contextProps, {\n className: popoverClasses.description\n }, props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { popoverClasses } from \"@qualcomm-ui/qds-core/popover\";\nimport { usePopoverLabel } from \"@qualcomm-ui/react-core/popover\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PopoverLabel(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 = usePopoverLabel(t1);\n const mergedProps = mergeProps(contextProps, {\n className: popoverClasses.label\n }, props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { useOnDestroyWhen } from \"@qualcomm-ui/react-core/effects\";\nimport { usePopoverContext } from \"@qualcomm-ui/react-core/popover\";\nimport { Portal } from \"@qualcomm-ui/react-core/portal\";\nimport { usePresenceContext } from \"@qualcomm-ui/react-core/presence\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PopoverPositioner(t0) {\n const {\n children,\n id,\n ...props\n } = t0;\n const popover = usePopoverContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(popover.getPositionerBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroyWhen(presence.unmounted)\n }), props);\n if (presence.unmounted) {\n return null;\n }\n return jsx(Portal, {\n disabled: !popover.portalled,\n children: jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n })\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { splitPresenceProps } from \"@qualcomm-ui/core/presence\";\nimport { createQdsPopoverApi } from \"@qualcomm-ui/qds-core/popover\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { PopoverContextProvider, usePopover } from \"@qualcomm-ui/react-core/popover\";\nimport { PresenceContextProvider, usePresence } from \"@qualcomm-ui/react-core/presence\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsPopoverContextProvider } from \"./qds-popover-context\";\nexport function PopoverRoot(props) {\n const [presenceProps, {\n children,\n emphasis,\n ...localProps\n }] = splitPresenceProps(props);\n const popover = usePopover(localProps);\n const presence = usePresence(mergeProps({\n present: popover.open\n }, presenceProps));\n const qdsPopoverApi = useMemo(() => createQdsPopoverApi({\n emphasis\n }, normalizeProps), [emphasis]);\n return /* @__PURE__ */jsx(QdsPopoverContextProvider, {\n value: qdsPopoverApi,\n children: /* @__PURE__ */jsx(PopoverContextProvider, {\n value: popover,\n children: /* @__PURE__ */jsx(PresenceContextProvider, {\n value: presence,\n children\n })\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { popoverClasses } from \"@qualcomm-ui/qds-core/popover\";\nimport { usePopoverTrigger } from \"@qualcomm-ui/react-core/popover\";\nimport { bindingRenderProp } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function PopoverTrigger(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 = usePopoverTrigger(t1);\n const mergedProps = mergeProps(contextProps, {\n className: popoverClasses.trigger\n }, props);\n return bindingRenderProp(children, mergedProps);\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { usePopoverCloseTrigger } from \"@qualcomm-ui/react-core/popover\";\nimport { bindingRenderProp } from \"@qualcomm-ui/react-core/system\";\nexport function PopoverCloseTrigger(t0) {\n const $ = _c(5);\n const {\n children,\n id\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 = usePopoverCloseTrigger(t1);\n let t2;\n if ($[2] !== children || $[3] !== contextProps) {\n t2 = bindingRenderProp(children, contextProps);\n $[2] = children;\n $[3] = contextProps;\n $[4] = t2;\n } else {\n t2 = $[4];\n }\n return t2;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { usePopoverIndicator } from \"@qualcomm-ui/react-core/popover\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nexport function PopoverIndicator(t0) {\n const {\n children,\n ...props\n } = t0;\n const contextProps = usePopoverIndicator();\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...contextProps,\n ...props,\n children\n });\n}", "import { Popover as SimplePopover } from \"./popover\";\nimport { PopoverAnchor } from \"./popover-anchor\";\nimport { PopoverArrow } from \"./popover-arrow\";\nimport { PopoverArrowTip } from \"./popover-arrow-tip\";\nimport { PopoverCloseTrigger } from \"./popover-close-trigger\";\nimport { PopoverContent } from \"./popover-content\";\nimport { PopoverDescription } from \"./popover-description\";\nimport { PopoverIndicator } from \"./popover-indicator\";\nimport { PopoverLabel } from \"./popover-label\";\nimport { PopoverPositioner } from \"./popover-positioner\";\nimport { PopoverRoot } from \"./popover-root\";\nimport { PopoverTrigger } from \"./popover-trigger\";\nexport const Popover = SimplePopover;\nPopover.Anchor = PopoverAnchor;\nPopover.Arrow = PopoverArrow;\nPopover.ArrowTip = PopoverArrowTip;\nPopover.CloseTrigger = PopoverCloseTrigger;\nPopover.Content = PopoverContent;\nPopover.Description = PopoverDescription;\nPopover.Indicator = PopoverIndicator;\nPopover.Label = PopoverLabel;\nPopover.Positioner = PopoverPositioner;\nPopover.Root = PopoverRoot;\nPopover.Trigger = PopoverTrigger;"],
5
- "mappings": ";AAAA,OAAS,OAAAA,KAAK,SAAY,oBAC1B,OAAS,UAAAC,YAAc,iCACvB,OAAS,mBAAAC,qBAAuB,gCCFhC,OAAS,KAAK,OAAU,yBACxB,OAAS,QAAW,oBACpB,OAAS,qBAAwB,kCACjC,OAAS,uBAA0B,iCACnC,OAAS,eAAkB,iCACpB,SAAS,cAAc,GAAI,CAChC,IAAM,EAAI,GAAG,CAAC,EACR,CACJ,SACA,GACA,GAAG,KACL,EAAI,GACA,GACA,EAAE,CAAC,IAAM,IACX,GAAK,CACH,EACF,EACA,EAAE,CAAC,EAAI,GACP,EAAE,CAAC,EAAI,IAEP,GAAK,EAAE,CAAC,EAEV,IAAM,aAAe,iBAAiB,EAAE,EAClC,YAAc,WAAW,aAAc,KAAK,EAClD,OAAO,IAAI,mBAAoB,CAC7B,GAAI,MACJ,GAAG,YACH,QACF,CAAC,CACH,CC7BA,OAAS,KAAKC,QAAU,yBACxB,OAAS,OAAAC,SAAW,oBACpB,OAAS,oBAAuB,kCAChC,OAAS,sBAAAC,wBAA0B,iCACnC,OAAS,cAAAC,gBAAkB,iCCJ3B,OAAS,OAAAC,SAAW,oBACpB,OAAS,mBAAsB,gCAC/B,OAAS,uBAA0B,kCACnC,OAAS,sBAAAC,wBAA0B,iCACnC,OAAS,cAAAC,gBAAkB,iCACpB,SAAS,gBAAgB,GAAI,CAClC,GAAM,CACJ,SACA,GAAG,KACL,EAAI,GACE,aAAe,mBAAmB,EAClC,YAAcA,YAAW,aAAc,CAC3C,UAAW,eAAe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ACrBA,SAAQ,KAAO,YACfA,SAAQ,QAAU",
6
- "names": ["jsx", "Portal", "useControlledId", "_c", "jsx", "PolymorphicElement", "mergeProps", "jsx", "PolymorphicElement", "mergeProps", "_c", "jsx", "mergeProps", "PolymorphicElement", "jsx", "PolymorphicElement", "mergeProps", "mergeProps", "jsx", "PolymorphicElement", "_c", "jsx", "popoverClasses", "PolymorphicElement", "mergeProps", "_c", "jsx", "popoverClasses", "PolymorphicElement", "mergeProps", "jsx", "useOnDestroyWhen", "usePopoverContext", "usePresenceContext", "useControlledId", "PolymorphicElement", "mergeProps", "jsx", "mergeProps", "mergeProps", "jsx", "_c", "popoverClasses", "mergeProps", "useControlledId", "jsx", "Portal", "_c", "bindingRenderProp", "jsx", "PolymorphicElement", "Popover"]
7
- }
1
+ {"version":3,"file":"index.js","names":["ReactElement","ReactNode","usePopoverAnchor","ElementRenderProp","IdProp","PolymorphicElement","mergeProps","PopoverAnchorProps","children","PopoverAnchor","t0","$","_c","id","props","t1","contextProps","mergedProps","t2","ReactElement","ReactNode","popoverClasses","usePopoverArrowTip","ElementRenderProp","PolymorphicElement","mergeProps","PopoverArrowTipProps","children","PopoverArrowTip","t0","$","_c","props","contextProps","mergedProps","className","arrowTip","t1","QdsPopoverApi","createGuardedContext","QdsPopoverContextProvider","useQdsPopoverContext","hookName","providerName","strict","ReactElement","ReactNode","usePopoverArrow","ElementRenderProp","IdProp","PolymorphicElement","mergeProps","PopoverArrowTip","useQdsPopoverContext","PopoverArrowProps","children","PopoverArrow","id","props","contextProps","qdsPopover","mergedProps","getArrowBindings","ReactNode","useOnDestroyWhen","usePopoverContext","usePresenceContext","composeRefs","useControlledId","ElementRenderProp","PolymorphicElement","mergeProps","useQdsPopoverContext","PopoverContentProps","children","id","PopoverContent","t0","$","_c","ref","props","popover","presence","qdsPopover","mergedProps","getContentBindings","onDestroy","unmounted","t1","t2","ReactElement","ReactNode","popoverClasses","usePopoverDescription","ElementRenderProp","PolymorphicElement","mergeProps","PopoverDescriptionProps","children","id","PopoverDescription","t0","$","_c","props","t1","contextProps","mergedProps","className","description","t2","ReactElement","ReactNode","popoverClasses","usePopoverLabel","ElementRenderProp","IdProp","PolymorphicElement","mergeProps","PopoverLabelProps","children","PopoverLabel","t0","$","_c","id","props","t1","contextProps","mergedProps","className","label","t2","ReactNode","useOnDestroyWhen","usePopoverContext","Portal","usePresenceContext","useControlledId","ElementRenderProp","PolymorphicElement","mergeProps","PopoverPositionerProps","children","id","PopoverPositioner","t0","$","_c","props","popover","presence","mergedProps","getPositionerBindings","onDestroy","unmounted","t1","portalled","t2","t3","ReactElement","ReactNode","useMemo","PopoverApiProps","PresenceApiProps","splitPresenceProps","createQdsPopoverApi","QdsPopoverApiProps","normalizeProps","PopoverContextProvider","usePopover","PresenceContextProvider","usePresence","mergeProps","QdsPopoverContextProvider","PopoverRootProps","children","PopoverRoot","props","$","_c","presenceProps","t0","emphasis","localProps","popover","presence","present","open","t1","qdsPopoverApi","t2","t3","t4","ReactElement","PopoverTriggerBindings","popoverClasses","usePopoverTrigger","BindingRenderProp","bindingRenderProp","mergeProps","PopoverTriggerProps","children","className","id","PopoverTrigger","t0","$","_c","props","t1","contextProps","mergedProps","trigger","ReactElement","ReactNode","PopoverElementIds","PopoverTriggerBindings","Portal","PortalProps","useControlledId","BindingRenderProp","PopoverAnchor","PopoverAnchorProps","PopoverArrow","PopoverArrowProps","PopoverContent","PopoverContentProps","PopoverDescription","PopoverDescriptionProps","PopoverLabel","PopoverLabelProps","PopoverPositioner","PopoverPositionerProps","PopoverRoot","PopoverRootProps","PopoverTrigger","PopoverProps","Omit","anchorProps","arrowProps","children","contentProps","description","descriptionProps","hideArrow","label","labelProps","portalProps","positionerProps","trigger","Popover","t0","$","_c","props","labelContent","descriptionContent","t1","id","t2","t3","t4","t5","t6","t7","ids","anchor","arrow","content","positioner","title","t8","disabled","t9","t10","t11","t12","t13","t14","t15","t16","t17","ReactElement","PopoverCloseTriggerBindings","usePopoverCloseTrigger","BindingRenderProp","bindingRenderProp","PopoverCloseTriggerProps","children","id","PopoverCloseTrigger","t0","$","_c","t1","contextProps","t2","ReactElement","ReactNode","usePopoverIndicator","ElementRenderProp","PolymorphicElement","PopoverIndicatorProps","children","PopoverIndicator","t0","$","_c","props","contextProps","t1","PopoverProps","Popover","SimplePopover","PopoverAnchor","PopoverAnchorProps","PopoverArrow","PopoverArrowProps","PopoverArrowTip","PopoverArrowTipProps","PopoverCloseTrigger","PopoverCloseTriggerProps","PopoverContent","PopoverContentProps","PopoverDescription","PopoverDescriptionProps","PopoverIndicator","PopoverIndicatorProps","PopoverLabel","PopoverLabelProps","PopoverPositioner","PopoverPositionerProps","PopoverRoot","PopoverRootProps","PopoverTrigger","PopoverTriggerProps","PopoverComponent","Anchor","Arrow","ArrowTip","CloseTrigger","Content","Description","Indicator","Label","Positioner","Root","Trigger"],"sources":["../../src/popover/popover-anchor.tsx","../../src/popover/popover-arrow-tip.tsx","../../src/popover/qds-popover-context.ts","../../src/popover/popover-arrow.tsx","../../src/popover/popover-content.tsx","../../src/popover/popover-description.tsx","../../src/popover/popover-label.tsx","../../src/popover/popover-positioner.tsx","../../src/popover/popover-root.tsx","../../src/popover/popover-trigger.tsx","../../src/popover/popover.tsx","../../src/popover/popover-close-trigger.tsx","../../src/popover/popover-indicator.tsx","../../src/popover/index.ts"],"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 {usePopoverAnchor} from \"@qualcomm-ui/react-core/popover\"\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\nexport interface PopoverAnchorProps extends IdProp, ElementRenderProp<\"div\"> {\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\nexport function PopoverAnchor({\n children,\n id,\n ...props\n}: PopoverAnchorProps): ReactElement {\n const contextProps = usePopoverAnchor({id})\n const mergedProps = mergeProps(contextProps, props)\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 {popoverClasses} from \"@qualcomm-ui/qds-core/popover\"\nimport {usePopoverArrowTip} from \"@qualcomm-ui/react-core/popover\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PopoverArrowTipProps extends ElementRenderProp<\"div\"> {\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\nexport function PopoverArrowTip({\n children,\n ...props\n}: PopoverArrowTipProps): ReactElement {\n const contextProps = usePopoverArrowTip()\n\n const mergedProps = mergeProps(\n contextProps,\n {className: popoverClasses.arrowTip},\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 {QdsPopoverApi} from \"@qualcomm-ui/qds-core/popover\"\nimport {createGuardedContext} from \"@qualcomm-ui/react-core/context\"\n\nexport const [QdsPopoverContextProvider, useQdsPopoverContext] =\n createGuardedContext<QdsPopoverApi>({\n hookName: \"useQdsPopoverContext\",\n providerName: \"<QdsPopoverContextProvider>\",\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 {usePopoverArrow} from \"@qualcomm-ui/react-core/popover\"\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 {PopoverArrowTip} from \"./popover-arrow-tip\"\nimport {useQdsPopoverContext} from \"./qds-popover-context\"\n\nexport interface PopoverArrowProps extends IdProp, ElementRenderProp<\"div\"> {\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\nexport function PopoverArrow({\n children = <PopoverArrowTip />,\n id,\n ...props\n}: PopoverArrowProps): ReactElement {\n const contextProps = usePopoverArrow({id})\n const qdsPopover = useQdsPopoverContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsPopover.getArrowBindings(),\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 {ReactNode} from \"react\"\n\nimport {useOnDestroyWhen} from \"@qualcomm-ui/react-core/effects\"\nimport {usePopoverContext} from \"@qualcomm-ui/react-core/popover\"\nimport {usePresenceContext} from \"@qualcomm-ui/react-core/presence\"\nimport {composeRefs} from \"@qualcomm-ui/react-core/refs\"\nimport {useControlledId} from \"@qualcomm-ui/react-core/state\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsPopoverContext} from \"./qds-popover-context\"\n\nexport interface PopoverContentProps extends ElementRenderProp<\"section\"> {\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 * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be automatically generated for\n * accessibility.\n */\n id?: string\n}\n\nexport function PopoverContent({\n children,\n id,\n ref,\n ...props\n}: PopoverContentProps): ReactNode {\n const popover = usePopoverContext()\n const presence = usePresenceContext()\n const qdsPopover = useQdsPopoverContext()\n const mergedProps = mergeProps(\n popover.getContentBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroyWhen(presence.unmounted),\n }),\n qdsPopover.getContentBindings(),\n props,\n )\n\n if (presence.unmounted) {\n return null\n }\n\n return (\n <PolymorphicElement\n as=\"section\"\n {...mergedProps}\n ref={composeRefs(presence.ref, ref)}\n >\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 {popoverClasses} from \"@qualcomm-ui/qds-core/popover\"\nimport {usePopoverDescription} from \"@qualcomm-ui/react-core/popover\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PopoverDescriptionProps extends ElementRenderProp<\"div\"> {\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 * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be automatically generated for\n * accessibility.\n */\n id?: string\n}\n\nexport function PopoverDescription({\n children,\n id,\n ...props\n}: PopoverDescriptionProps): ReactElement {\n const contextProps = usePopoverDescription({id})\n const mergedProps = mergeProps(\n contextProps,\n {className: popoverClasses.description},\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 {popoverClasses} from \"@qualcomm-ui/qds-core/popover\"\nimport {usePopoverLabel} from \"@qualcomm-ui/react-core/popover\"\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\nexport interface PopoverLabelProps extends IdProp, ElementRenderProp<\"div\"> {\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\nexport function PopoverLabel({\n children,\n id,\n ...props\n}: PopoverLabelProps): ReactElement {\n const contextProps = usePopoverLabel({id})\n const mergedProps = mergeProps(\n contextProps,\n {className: popoverClasses.label},\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 {ReactNode} from \"react\"\n\nimport {useOnDestroyWhen} from \"@qualcomm-ui/react-core/effects\"\nimport {usePopoverContext} from \"@qualcomm-ui/react-core/popover\"\nimport {Portal} from \"@qualcomm-ui/react-core/portal\"\nimport {usePresenceContext} from \"@qualcomm-ui/react-core/presence\"\nimport {useControlledId} from \"@qualcomm-ui/react-core/state\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PopoverPositionerProps extends ElementRenderProp<\"div\"> {\n children?: ReactNode\n id?: string\n}\n\nexport function PopoverPositioner({\n children,\n id,\n ...props\n}: PopoverPositionerProps): ReactNode {\n const popover = usePopoverContext()\n const presence = usePresenceContext()\n const mergedProps = mergeProps(\n popover.getPositionerBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroyWhen(presence.unmounted),\n }),\n props,\n )\n\n if (presence.unmounted) {\n return null\n }\n\n return (\n <Portal disabled={!popover.portalled}>\n <PolymorphicElement as=\"div\" {...mergedProps}>\n {children}\n </PolymorphicElement>\n </Portal>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {type ReactElement, type ReactNode, useMemo} from \"react\"\n\nimport type {PopoverApiProps} from \"@qualcomm-ui/core/popover\"\nimport {\n type PresenceApiProps,\n splitPresenceProps,\n} from \"@qualcomm-ui/core/presence\"\nimport {\n createQdsPopoverApi,\n type QdsPopoverApiProps,\n} from \"@qualcomm-ui/qds-core/popover\"\nimport {normalizeProps} from \"@qualcomm-ui/react-core/machine\"\nimport {\n PopoverContextProvider,\n usePopover,\n} from \"@qualcomm-ui/react-core/popover\"\nimport {\n PresenceContextProvider,\n usePresence,\n} from \"@qualcomm-ui/react-core/presence\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {QdsPopoverContextProvider} from \"./qds-popover-context\"\n\nexport interface PopoverRootProps\n extends PopoverApiProps, PresenceApiProps, QdsPopoverApiProps {\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\nexport function PopoverRoot(props: PopoverRootProps): ReactElement {\n const [presenceProps, {children, emphasis, ...localProps}] =\n splitPresenceProps(props)\n const popover = usePopover(localProps)\n const presence = usePresence(\n mergeProps({present: popover.open}, presenceProps),\n )\n const qdsPopoverApi = useMemo(\n () => createQdsPopoverApi({emphasis}, normalizeProps),\n [emphasis],\n )\n\n return (\n <QdsPopoverContextProvider value={qdsPopoverApi}>\n <PopoverContextProvider value={popover}>\n <PresenceContextProvider value={presence}>\n {children}\n </PresenceContextProvider>\n </PopoverContextProvider>\n </QdsPopoverContextProvider>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport type {PopoverTriggerBindings} from \"@qualcomm-ui/core/popover\"\nimport {popoverClasses} from \"@qualcomm-ui/qds-core/popover\"\nimport {usePopoverTrigger} from \"@qualcomm-ui/react-core/popover\"\nimport {\n type BindingRenderProp,\n bindingRenderProp,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface PopoverTriggerProps {\n /**\n * React children {@link\n * https://react-next.qui.qualcomm.com/render-props#binding-render-prop\n * Render Prop}\n *\n * @inheritDoc\n */\n children: BindingRenderProp<PopoverTriggerBindings & {className?: string}>\n\n /**\n * Optional id attribute.\n */\n id?: string\n}\n\n/**\n * A trigger that opens the popover. Doesn't render anything by itself. Applies\n * event handlers and attributes to the child element.\n */\nexport function PopoverTrigger({\n children,\n id,\n ...props\n}: PopoverTriggerProps): ReactElement {\n const contextProps = usePopoverTrigger({id})\n const mergedProps = mergeProps(\n contextProps,\n {className: popoverClasses.trigger},\n props,\n )\n\n return bindingRenderProp(children, 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 type {\n PopoverElementIds,\n PopoverTriggerBindings,\n} from \"@qualcomm-ui/core/popover\"\nimport {Portal, type PortalProps} from \"@qualcomm-ui/react-core/portal\"\nimport {useControlledId} from \"@qualcomm-ui/react-core/state\"\nimport type {BindingRenderProp} from \"@qualcomm-ui/react-core/system\"\n\nimport {PopoverAnchor, type PopoverAnchorProps} from \"./popover-anchor\"\nimport {PopoverArrow, type PopoverArrowProps} from \"./popover-arrow\"\nimport {PopoverContent, type PopoverContentProps} from \"./popover-content\"\nimport {\n PopoverDescription,\n type PopoverDescriptionProps,\n} from \"./popover-description\"\nimport {PopoverLabel, type PopoverLabelProps} from \"./popover-label\"\nimport {\n PopoverPositioner,\n type PopoverPositionerProps,\n} from \"./popover-positioner\"\nimport {PopoverRoot, type PopoverRootProps} from \"./popover-root\"\nimport {PopoverTrigger} from \"./popover-trigger\"\n\nexport interface PopoverProps extends Omit<PopoverRootProps, \"children\"> {\n /**\n * Props applied to the anchor component.\n *\n * @inheritDoc\n */\n anchorProps?: PopoverAnchorProps\n\n /**\n * Props applied to the arrow component.\n *\n * @inheritDoc\n */\n arrowProps?: PopoverArrowProps\n\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n * The content body of the popover.\n */\n children?: ReactNode\n\n /**\n * Props applied to the content component.\n *\n * @inheritDoc\n */\n contentProps?: PopoverContentProps\n\n /**\n * Optional description text for the popover.\n */\n description?: ReactNode\n\n /**\n * Props applied to the description component.\n *\n * @inheritDoc\n */\n descriptionProps?: PopoverDescriptionProps\n\n /**\n * Whether to hide the arrow.\n * @default false\n */\n hideArrow?: boolean\n\n /**\n * Optional label text for the popover.\n */\n label?: ReactNode\n\n /**\n * Props applied to the label component.\n *\n * @inheritDoc\n */\n labelProps?: PopoverLabelProps\n\n /**\n * Props applied to the portal component.\n */\n portalProps?: PortalProps\n\n /**\n * Props applied to the positioner component.\n *\n * @inheritDoc\n */\n positionerProps?: PopoverPositionerProps\n\n /**\n * Render Prop. The popover trigger event handlers and attributes are applied to\n * this element. It must forward its {@link\n * https://react.dev/blog/2024/12/05/react-19#ref-as-a-prop ref}\n *\n * @inheritDoc\n */\n trigger: BindingRenderProp<PopoverTriggerBindings>\n}\n\nexport function Popover({\n anchorProps,\n arrowProps,\n children,\n contentProps,\n description,\n descriptionProps,\n hideArrow,\n label,\n labelProps,\n portalProps,\n positionerProps,\n trigger,\n ...props\n}: PopoverProps): ReactElement {\n const labelContent = label || labelProps?.children\n const descriptionContent = description || descriptionProps?.children\n\n const ids: Partial<PopoverElementIds> = {\n anchor: useControlledId(anchorProps?.id),\n arrow: useControlledId(arrowProps?.id),\n content: useControlledId(contentProps?.id),\n description: descriptionContent ? descriptionProps?.id : \"\",\n positioner: useControlledId(positionerProps?.id),\n title: labelContent ? labelProps?.id : \"\",\n ...props.ids,\n }\n\n return (\n <PopoverRoot portalled={!portalProps?.disabled} {...props} ids={ids}>\n <PopoverAnchor {...anchorProps} id={ids.anchor}>\n <PopoverTrigger id={ids.trigger}>{trigger}</PopoverTrigger>\n </PopoverAnchor>\n\n <Portal {...portalProps}>\n <PopoverPositioner {...positionerProps} id={ids.positioner}>\n <PopoverContent {...contentProps} id={ids.content}>\n {!hideArrow ? (\n <PopoverArrow {...arrowProps} id={ids.arrow} />\n ) : null}\n\n {labelContent ? (\n <PopoverLabel {...labelProps} id={ids.title}>\n {labelContent}\n </PopoverLabel>\n ) : null}\n\n {descriptionContent ? (\n <PopoverDescription {...descriptionProps} id={ids.description}>\n {descriptionContent}\n </PopoverDescription>\n ) : null}\n {children}\n </PopoverContent>\n </PopoverPositioner>\n </Portal>\n </PopoverRoot>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport type {PopoverCloseTriggerBindings} from \"@qualcomm-ui/core/popover\"\nimport {usePopoverCloseTrigger} from \"@qualcomm-ui/react-core/popover\"\nimport {\n type BindingRenderProp,\n bindingRenderProp,\n} from \"@qualcomm-ui/react-core/system\"\n\nexport interface PopoverCloseTriggerProps {\n /**\n * React children {@link\n * https://react-next.qui.qualcomm.com/render-props#binding-render-prop\n * Render Prop}\n *\n * @inheritDoc\n */\n children: BindingRenderProp<PopoverCloseTriggerBindings>\n\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be automatically generated for accessibility.\n */\n id?: string\n}\n\nexport function PopoverCloseTrigger({\n children,\n id,\n}: PopoverCloseTriggerProps): ReactElement {\n const contextProps = usePopoverCloseTrigger({id})\n\n return bindingRenderProp(children, contextProps)\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 {usePopoverIndicator} from \"@qualcomm-ui/react-core/popover\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\n\nexport interface PopoverIndicatorProps extends 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\nexport function PopoverIndicator({\n children,\n ...props\n}: PopoverIndicatorProps): ReactElement {\n const contextProps = usePopoverIndicator()\n\n return (\n <PolymorphicElement as=\"span\" {...contextProps} {...props}>\n {children}\n </PolymorphicElement>\n )\n}\n","import {type PopoverProps, Popover as SimplePopover} from \"./popover\"\nimport {PopoverAnchor, type PopoverAnchorProps} from \"./popover-anchor\"\nimport {PopoverArrow, type PopoverArrowProps} from \"./popover-arrow\"\nimport {PopoverArrowTip, type PopoverArrowTipProps} from \"./popover-arrow-tip\"\nimport {\n PopoverCloseTrigger,\n type PopoverCloseTriggerProps,\n} from \"./popover-close-trigger\"\nimport {PopoverContent, type PopoverContentProps} from \"./popover-content\"\nimport {\n PopoverDescription,\n type PopoverDescriptionProps,\n} from \"./popover-description\"\nimport {PopoverIndicator, type PopoverIndicatorProps} from \"./popover-indicator\"\nimport {PopoverLabel, type PopoverLabelProps} from \"./popover-label\"\nimport {\n PopoverPositioner,\n type PopoverPositionerProps,\n} from \"./popover-positioner\"\nimport {PopoverRoot, type PopoverRootProps} from \"./popover-root\"\nimport {PopoverTrigger, type PopoverTriggerProps} from \"./popover-trigger\"\n\nexport type {\n PopoverAnchorProps,\n PopoverArrowTipProps,\n PopoverArrowProps,\n PopoverCloseTriggerProps,\n PopoverContentProps,\n PopoverDescriptionProps,\n PopoverIndicatorProps,\n PopoverLabelProps,\n PopoverPositionerProps,\n PopoverProps,\n PopoverRootProps,\n PopoverTriggerProps,\n}\n\ntype PopoverComponent = typeof SimplePopover & {\n Anchor: typeof PopoverAnchor\n Arrow: typeof PopoverArrow\n ArrowTip: typeof PopoverArrowTip\n CloseTrigger: typeof PopoverCloseTrigger\n Content: typeof PopoverContent\n Description: typeof PopoverDescription\n Indicator: typeof PopoverIndicator\n Label: typeof PopoverLabel\n Positioner: typeof PopoverPositioner\n Root: typeof PopoverRoot\n Trigger: typeof PopoverTrigger\n}\n\nexport const Popover: PopoverComponent = SimplePopover as PopoverComponent\n\nPopover.Anchor = PopoverAnchor\nPopover.Arrow = PopoverArrow\nPopover.ArrowTip = PopoverArrowTip\nPopover.CloseTrigger = PopoverCloseTrigger\nPopover.Content = PopoverContent\nPopover.Description = PopoverDescription\nPopover.Indicator = PopoverIndicator\nPopover.Label = PopoverLabel\nPopover.Positioner = PopoverPositioner\nPopover.Root = PopoverRoot\nPopover.Trigger = PopoverTrigger\n"],"mappings":"ysCAoBA,SAAOS,cAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAAuB,CAAAJ,WAAAK,KAAA,GAAAC,GAAAJ,EAITK,EAAAJ,EAAA,KAAAE,EACuBE,EAAAJ,EAAA,IAAJI,EAAA,CAAAF,KAAI,CAAAF,EAAA,GAAAE,EAAAF,EAAA,GAAAI,GAC1C,IAAAE,EAAoBX,EADCJ,EAAiBa,EAAK,CACED,EAAM,CAAAI,EAK5B,OAL4BP,EAAA,KAAAH,GAAAG,EAAA,KAAAM,GAGjDC,EAAA,EAAC,EAAD,CAAuB,GAAA,MAAK,GAAKD,EAC9BT,WACkB,CAAA,CAAAG,EAAA,GAAAH,EAAAG,EAAA,GAAAM,EAAAN,EAAA,GAAAO,GAAAA,EAAAP,EAAA,GAFrBO,ECTJ,SAAOU,gBAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAAyB,CAAAJ,WAAA,GAAAK,GAAAH,EAM9BK,EAAoBT,EAFCH,GAAoB,CAIvC,CAAAa,UAAYd,EAAce,SAAU,CACpCJ,EACD,CAAAK,EAKsB,OALtBP,EAAA,KAAAH,GAAAG,EAAA,KAAAI,GAGCG,EAAA,EAAC,EAAD,CAAuB,GAAA,MAAK,GAAKH,EAC9BP,WACkB,CAAA,CAAAG,EAAA,GAAAH,EAAAG,EAAA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AAQ+B,UAAYjB,iBACpBd,EAAQgC,MAAQhB,aAChBhB,EAAQiC,WAAaf,kBACrBlB,EAAQkC,KAAOd,YACfpB,EAAQmC,QAAUb"}
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{jsx as jsx8,jsxs}from"react/jsx-runtime";import{useOptionalContentId}from"@qualcomm-ui/react-core/machine";import{useControlledId as useControlledId2}from"@qualcomm-ui/react-core/state";import{renderProp as renderProp2}from"@qualcomm-ui/react-core/system";import{c as _c}from"react/compiler-runtime";import{jsx}from"react/jsx-runtime";import{CoreProgress}from"@qualcomm-ui/react-core/progress";import{mergeProps}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext}from"@qualcomm-ui/react-core/context";var[QdsProgressContextProvider,useQdsProgressContext]=createGuardedContext({hookName:"useQdsProgressContext",providerName:"<QdsProgressContextProvider>",strict:!0});function ProgressBar(props){let $=_c(3),progressContext=useQdsProgressContext(),t0;if($[0]!==progressContext||$[1]!==props){let mergedProps=mergeProps(progressContext.getBarBindings(),props);t0=jsx(CoreProgress.Bar,{...mergedProps}),$[0]=progressContext,$[1]=props,$[2]=t0}else t0=$[2];return t0}import{c as _c2}from"react/compiler-runtime";import{useProgressContext}from"@qualcomm-ui/react-core/progress";import{renderProp}from"@qualcomm-ui/react-core/system";function ProgressContext(t0){let $=_c2(3),{children}=t0,context=useProgressContext(),t1;return $[0]!==children||$[1]!==context?(t1=renderProp(children,context),$[0]=children,$[1]=context,$[2]=t1):t1=$[2],t1}import{jsx as jsx2}from"react/jsx-runtime";import{InputErrorText}from"@qualcomm-ui/react/input";import{useOnDestroy}from"@qualcomm-ui/react-core/effects";import{useProgressContext as useProgressContext2}from"@qualcomm-ui/react-core/progress";import{useControlledId}from"@qualcomm-ui/react-core/state";import{mergeProps as mergeProps2}from"@qualcomm-ui/utils/merge-props";function ProgressErrorText(t0){let{id,...props}=t0,qdsProgressContext=useQdsProgressContext(),progressContext=useProgressContext2(),mergedProps=mergeProps2(progressContext.getErrorTextBindings({id:useControlledId(id),onDestroy:useOnDestroy()}),qdsProgressContext.getErrorTextBindings(),props);return jsx2(InputErrorText,{...mergedProps})}import{c as _c3}from"react/compiler-runtime";import{jsx as jsx3}from"react/jsx-runtime";import{CoreProgress as CoreProgress2}from"@qualcomm-ui/react-core/progress";import{mergeProps as mergeProps3}from"@qualcomm-ui/utils/merge-props";function ProgressHint(props){let $=_c3(3),qdsContext=useQdsProgressContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps3(qdsContext.getHintBindings(),props);t0=jsx3(CoreProgress2.Hint,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c4}from"react/compiler-runtime";import{jsx as jsx4}from"react/jsx-runtime";import{CoreProgress as CoreProgress3}from"@qualcomm-ui/react-core/progress";import{mergeProps as mergeProps4}from"@qualcomm-ui/utils/merge-props";function ProgressLabel(props){let $=_c4(3),progressContext=useQdsProgressContext(),t0;if($[0]!==progressContext||$[1]!==props){let mergedProps=mergeProps4(progressContext.getLabelBindings(),props);t0=jsx4(CoreProgress3.Label,{...mergedProps}),$[0]=progressContext,$[1]=props,$[2]=t0}else t0=$[2];return t0}import{c as _c5}from"react/compiler-runtime";import{jsx as jsx5}from"react/jsx-runtime";import"react";import{createQdsProgressApi}from"@qualcomm-ui/qds-core/progress";import{normalizeProps}from"@qualcomm-ui/react-core/machine";import{CoreProgress as CoreProgress4}from"@qualcomm-ui/react-core/progress";import{mergeProps as mergeProps5}from"@qualcomm-ui/utils/merge-props";function ProgressRoot(t0){let $=_c5(6),t1;if($[0]!==t0){let{emphasis,labelOrientation,size,...props}=t0,t2;$[2]!==emphasis||$[3]!==labelOrientation||$[4]!==size?(t2=createQdsProgressApi({emphasis,labelOrientation,size},normalizeProps),$[2]=emphasis,$[3]=labelOrientation,$[4]=size,$[5]=t2):t2=$[5];let api=t2,rootProps=mergeProps5(api.getRootBindings(),props);t1=jsx5(QdsProgressContextProvider,{value:api,children:jsx5(CoreProgress4.Root,{...rootProps})}),$[0]=t0,$[1]=t1}else t1=$[1];return t1}import{c as _c6}from"react/compiler-runtime";import{jsx as jsx6}from"react/jsx-runtime";import{CoreProgress as CoreProgress5}from"@qualcomm-ui/react-core/progress";import{mergeProps as mergeProps6}from"@qualcomm-ui/utils/merge-props";function ProgressTrack(props){let $=_c6(3),progressContext=useQdsProgressContext(),t0;if($[0]!==progressContext||$[1]!==props){let mergedProps=mergeProps6(progressContext.getTrackBindings(),props);t0=jsx6(CoreProgress5.Track,{...mergedProps,children:props.children||jsx6(ProgressBar,{})}),$[0]=progressContext,$[1]=props,$[2]=t0}else t0=$[2];return t0}import{c as _c7}from"react/compiler-runtime";import{jsx as jsx7}from"react/jsx-runtime";import{CoreProgress as CoreProgress6}from"@qualcomm-ui/react-core/progress";import{mergeProps as mergeProps7}from"@qualcomm-ui/utils/merge-props";function ProgressValueText(props){let $=_c7(3),progressContext=useQdsProgressContext(),t0;if($[0]!==progressContext||$[1]!==props){let mergedProps=mergeProps7(progressContext.getValueTextBindings(),props);t0=jsx7(CoreProgress6.ValueText,{...mergedProps}),$[0]=progressContext,$[1]=props,$[2]=t0}else t0=$[2];return t0}function Progress(t0){let{barProps,errorText,errorTextProps,hint,hintProps,label,labelProps,trackProps,valueText,valueTextProps,...props}=t0,labelContent=label||labelProps?.children,errorTextContent=errorText||errorTextProps?.children,hintContent=hint||hintProps?.children,ids={errorText:useOptionalContentId(errorTextContent,errorTextProps),hint:useOptionalContentId(hintContent,hintProps),label:useOptionalContentId(labelContent,labelProps),progress:useControlledId2(trackProps?.id),...props.ids};return jsxs(ProgressRoot,{...props,ids,children:[labelContent?jsx8(ProgressLabel,{...labelProps,id:ids.label,children:labelContent}):null,valueText?jsx8(ProgressContext,{children:api=>jsx8(ProgressValueText,{...valueTextProps,children:renderProp2(valueText,api)})}):null,jsx8(ProgressTrack,{...trackProps,id:ids.progress,children:jsx8(ProgressBar,{...barProps})}),errorTextContent?jsx8(ProgressErrorText,{...errorTextProps,id:ids.errorText,children:errorTextContent}):null,hintContent?jsx8(ProgressHint,{...hintProps,id:ids.hint,children:hintContent}):null]})}var Progress2=Progress;Progress2.Bar=ProgressBar;Progress2.Context=ProgressContext;Progress2.ErrorText=ProgressErrorText;Progress2.Hint=ProgressHint;Progress2.Label=ProgressLabel;Progress2.Root=ProgressRoot;Progress2.Track=ProgressTrack;Progress2.ValueText=ProgressValueText;export{Progress2 as Progress,QdsProgressContextProvider,useQdsProgressContext};
3
- //# sourceMappingURL=index.js.map
1
+ "use client;";import{c as e}from"react/compiler-runtime";import{mergeProps as t}from"@qualcomm-ui/utils/merge-props";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{renderProp as i}from"@qualcomm-ui/react-core/system";import"react";import{normalizeProps as a,useOptionalContentId as o}from"@qualcomm-ui/react-core/machine";import{useControlledId as s}from"@qualcomm-ui/react-core/state";import{createGuardedContext as c}from"@qualcomm-ui/react-core/context";import{InputErrorText as l}from"@qualcomm-ui/react/input";import{useOnDestroy as u}from"@qualcomm-ui/react-core/effects";import{CoreProgress as d,useProgressContext as f}from"@qualcomm-ui/react-core/progress";import{createQdsProgressApi as p}from"@qualcomm-ui/qds-core/progress";var[m,h]=c({hookName:`useQdsProgressContext`,providerName:`<QdsProgressContextProvider>`,strict:!0});function ProgressBar(r){let i=e(5),a=h(),o;i[0]!==a||i[1]!==r?(o=t(a.getBarBindings(),r),i[0]=a,i[1]=r,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=n(d.Bar,{...s}),i[3]=s,i[4]=c),c}function ProgressContext(t){let n=e(3),{children:r}=t,a=f(),o;return n[0]!==r||n[1]!==a?(o=i(r,a),n[0]=r,n[1]=a,n[2]=o):o=n[2],o}function ProgressErrorText(r){let i=e(2),{id:a,...o}=r,c=h(),d=t(f().getErrorTextBindings({id:s(a),onDestroy:u()}),c.getErrorTextBindings(),o),p;return i[0]===d?p=i[1]:(p=n(l,{...d}),i[0]=d,i[1]=p),p}function ProgressHint(r){let i=e(5),a=h(),o;i[0]!==r||i[1]!==a?(o=t(a.getHintBindings(),r),i[0]=r,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=n(d.Hint,{...s}),i[3]=s,i[4]=c),c}function ProgressLabel(r){let i=e(5),a=h(),o;i[0]!==a||i[1]!==r?(o=t(a.getLabelBindings(),r),i[0]=a,i[1]=r,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=n(d.Label,{...s}),i[3]=s,i[4]=c),c}function ProgressRoot(r){let i=e(12),o,s;if(i[0]!==r){let{emphasis:e,labelOrientation:n,size:c,...l}=r,u;i[3]!==e||i[4]!==n||i[5]!==c?(u=p({emphasis:e,labelOrientation:n,size:c},a),i[3]=e,i[4]=n,i[5]=c,i[6]=u):u=i[6],o=u,s=t(o.getRootBindings(),l),i[0]=r,i[1]=o,i[2]=s}else o=i[1],s=i[2];let c=s,l;i[7]===c?l=i[8]:(l=n(d.Root,{...c}),i[7]=c,i[8]=l);let u;return i[9]!==o||i[10]!==l?(u=n(m,{value:o,children:l}),i[9]=o,i[10]=l,i[11]=u):u=i[11],u}function ProgressTrack(r){let i=e(8),a=h(),o;i[0]!==a||i[1]!==r?(o=t(a.getTrackBindings(),r),i[0]=a,i[1]=r,i[2]=o):o=i[2];let s=o,c;i[3]===r.children?c=i[4]:(c=r.children||n(ProgressBar,{}),i[3]=r.children,i[4]=c);let l;return i[5]!==s||i[6]!==c?(l=n(d.Track,{...s,children:c}),i[5]=s,i[6]=c,i[7]=l):l=i[7],l}function ProgressValueText(r){let i=e(5),a=h(),o;i[0]!==a||i[1]!==r?(o=t(a.getValueTextBindings(),r),i[0]=a,i[1]=r,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=n(d.ValueText,{...s}),i[3]=s,i[4]=c),c}function Progress$1(t){let a=e(47),c,l,u,d,f,p,m,h,g,_,v;a[0]===t?(c=a[1],l=a[2],u=a[3],d=a[4],f=a[5],p=a[6],m=a[7],h=a[8],g=a[9],_=a[10],v=a[11]):({barProps:c,errorText:l,errorTextProps:u,hint:d,hintProps:f,label:p,labelProps:m,trackProps:g,valueText:_,valueTextProps:v,...h}=t,a[0]=t,a[1]=c,a[2]=l,a[3]=u,a[4]=d,a[5]=f,a[6]=p,a[7]=m,a[8]=h,a[9]=g,a[10]=_,a[11]=v);let y=p||m?.children,b=l||u?.children,x=d||f?.children,S=o(b,u),C=o(x,f),w=o(y,m),T=s(g?.id),E;a[12]!==h.ids||a[13]!==S||a[14]!==C||a[15]!==w||a[16]!==T?(E={errorText:S,hint:C,label:w,progress:T,...h.ids},a[12]=h.ids,a[13]=S,a[14]=C,a[15]=w,a[16]=T,a[17]=E):E=a[17];let D=E,O;a[18]!==D.label||a[19]!==y||a[20]!==m?(O=y?n(ProgressLabel,{...m,id:D.label,children:y}):null,a[18]=D.label,a[19]=y,a[20]=m,a[21]=O):O=a[21];let k;a[22]!==_||a[23]!==v?(k=_?n(ProgressContext,{children:e=>n(ProgressValueText,{...v,children:i(_,e)})}):null,a[22]=_,a[23]=v,a[24]=k):k=a[24];let A;a[25]===c?A=a[26]:(A=n(ProgressBar,{...c}),a[25]=c,a[26]=A);let j;a[27]!==D.progress||a[28]!==A||a[29]!==g?(j=n(ProgressTrack,{...g,id:D.progress,children:A}),a[27]=D.progress,a[28]=A,a[29]=g,a[30]=j):j=a[30];let M;a[31]!==b||a[32]!==u||a[33]!==D.errorText?(M=b?n(ProgressErrorText,{...u,id:D.errorText,children:b}):null,a[31]=b,a[32]=u,a[33]=D.errorText,a[34]=M):M=a[34];let N;a[35]!==x||a[36]!==f||a[37]!==D.hint?(N=x?n(ProgressHint,{...f,id:D.hint,children:x}):null,a[35]=x,a[36]=f,a[37]=D.hint,a[38]=N):N=a[38];let P;return a[39]!==D||a[40]!==h||a[41]!==M||a[42]!==N||a[43]!==O||a[44]!==k||a[45]!==j?(P=r(ProgressRoot,{...h,ids:D,children:[O,k,j,M,N]}),a[39]=D,a[40]=h,a[41]=M,a[42]=N,a[43]=O,a[44]=k,a[45]=j,a[46]=P):P=a[46],P}var g=Progress$1;g.Bar=ProgressBar,g.Context=ProgressContext,g.ErrorText=ProgressErrorText,g.Hint=ProgressHint,g.Label=ProgressLabel,g.Root=ProgressRoot,g.Track=ProgressTrack,g.ValueText=ProgressValueText;export{g as Progress,m as QdsProgressContextProvider,h as useQdsProgressContext};
2
+ //# sourceMappingURL=index.js.map