@qualcomm-ui/react 1.23.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/index.js +2 -3
- package/dist/accordion/index.js.map +1 -7
- package/dist/action-group/index.js +2 -3
- package/dist/action-group/index.js.map +1 -7
- package/dist/alert-banner/index.js +2 -3
- package/dist/alert-banner/index.js.map +1 -7
- package/dist/avatar/index.js +2 -3
- package/dist/avatar/index.js.map +1 -7
- package/dist/badge/index.js +2 -3
- package/dist/badge/index.js.map +1 -7
- package/dist/breadcrumbs/index.js +2 -3
- package/dist/breadcrumbs/index.js.map +1 -7
- package/dist/button/button-group-context.d.ts +2 -5
- package/dist/button/button-group-context.d.ts.map +1 -1
- package/dist/button/button.d.ts +2 -1
- package/dist/button/button.d.ts.map +1 -1
- package/dist/button/icon-button.d.ts +2 -1
- package/dist/button/icon-button.d.ts.map +1 -1
- package/dist/button/index.js +2 -3
- package/dist/button/index.js.map +1 -7
- package/dist/card/index.js +2 -3
- package/dist/card/index.js.map +1 -7
- package/dist/checkbox/index.js +2 -3
- package/dist/checkbox/index.js.map +1 -7
- package/dist/checkbox-group/index.js +2 -3
- package/dist/checkbox-group/index.js.map +1 -7
- package/dist/checkmark/index.js +2 -3
- package/dist/checkmark/index.js.map +1 -7
- package/dist/collapsible/index.js +2 -3
- package/dist/collapsible/index.js.map +1 -7
- package/dist/combobox/index.js +2 -3
- package/dist/combobox/index.js.map +1 -7
- package/dist/dialog/index.js +2 -3
- package/dist/dialog/index.js.map +1 -7
- package/dist/divider/index.js +2 -3
- package/dist/divider/index.js.map +1 -7
- package/dist/drawer/index.js +2 -3
- package/dist/drawer/index.js.map +1 -7
- package/dist/field-group/index.js +2 -3
- package/dist/field-group/index.js.map +1 -7
- package/dist/file-input/index.js +2 -3
- package/dist/file-input/index.js.map +1 -7
- package/dist/file-upload/index.js +2 -3
- package/dist/file-upload/index.js.map +1 -7
- package/dist/footer/index.js +1 -2
- package/dist/header-bar/index.js +2 -3
- package/dist/header-bar/index.js.map +1 -7
- package/dist/icon/index.js +2 -3
- package/dist/icon/index.js.map +1 -7
- package/dist/inline-icon-button/index.js +2 -3
- package/dist/inline-icon-button/index.js.map +1 -7
- package/dist/inline-notification/index.js +2 -3
- package/dist/inline-notification/index.js.map +1 -7
- package/dist/input/index.js +2 -3
- package/dist/input/index.js.map +1 -7
- package/dist/kbd/index.js +2 -3
- package/dist/kbd/index.js.map +1 -7
- package/dist/link/index.js +2 -3
- package/dist/link/index.js.map +1 -7
- package/dist/menu/index.d.ts +76 -51
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +2 -3
- package/dist/menu/index.js.map +1 -7
- package/dist/menu/menu-icon-button.d.ts +1 -1
- package/dist/menu/menu-icon-button.d.ts.map +1 -1
- package/dist/menu/menu-split-button.d.ts +40 -0
- package/dist/menu/menu-split-button.d.ts.map +1 -0
- package/dist/number-input/index.js +2 -3
- package/dist/number-input/index.js.map +1 -7
- package/dist/pagination/index.js +2 -3
- package/dist/pagination/index.js.map +1 -7
- package/dist/password-input/index.js +2 -3
- package/dist/password-input/index.js.map +1 -7
- package/dist/popover/index.js +2 -3
- package/dist/popover/index.js.map +1 -7
- package/dist/progress/index.js +2 -3
- package/dist/progress/index.js.map +1 -7
- package/dist/progress-ring/index.js +2 -3
- package/dist/progress-ring/index.js.map +1 -7
- package/dist/qds-theme/index.js +2 -3
- package/dist/qds-theme/index.js.map +1 -7
- package/dist/qui-root/index.js +2 -3
- package/dist/qui-root/index.js.map +1 -7
- package/dist/radio/index.js +2 -3
- package/dist/radio/index.js.map +1 -7
- package/dist/segmented-control/index.js +2 -3
- package/dist/segmented-control/index.js.map +1 -7
- package/dist/select/index.js +2 -3
- package/dist/select/index.js.map +1 -7
- package/dist/side-nav/index.js +2 -3
- package/dist/side-nav/index.js.map +1 -7
- package/dist/slider/index.js +2 -3
- package/dist/slider/index.js.map +1 -7
- package/dist/stepper/index.js +2 -3
- package/dist/stepper/index.js.map +1 -7
- package/dist/stepper/stepper-completed-content.d.ts +2 -1
- package/dist/stepper/stepper-completed-content.d.ts.map +1 -1
- package/dist/switch/index.js +2 -3
- package/dist/switch/index.js.map +1 -7
- package/dist/switch-group/index.js +2 -3
- package/dist/switch-group/index.js.map +1 -7
- package/dist/table/index.js +2 -3
- package/dist/table/index.js.map +1 -7
- package/dist/tabs/index.js +2 -3
- package/dist/tabs/index.js.map +1 -7
- package/dist/tag/index.js +2 -3
- package/dist/tag/index.js.map +1 -7
- package/dist/tag/tag.d.ts +33 -6
- package/dist/tag/tag.d.ts.map +1 -1
- package/dist/text-area/index.js +2 -3
- package/dist/text-area/index.js.map +1 -7
- package/dist/text-input/index.js +2 -3
- package/dist/text-input/index.js.map +1 -7
- package/dist/toast/index.js +2 -3
- package/dist/toast/index.js.map +1 -7
- package/dist/tooltip/index.js +2 -3
- package/dist/tooltip/index.js.map +1 -7
- package/dist/tree/index.js +2 -3
- package/dist/tree/index.js.map +1 -7
- package/dist/tsbuildinfo +1 -1
- package/package.json +9 -6
- package/dist/button/internal/context-button.d.ts +0 -4
- package/dist/button/internal/context-button.d.ts.map +0 -1
- package/dist/button/internal/context-icon-button.d.ts +0 -4
- package/dist/button/internal/context-icon-button.d.ts.map +0 -1
- package/dist/button/internal/index.d.ts +0 -5
- package/dist/button/internal/index.d.ts.map +0 -1
- package/dist/button/internal/internal-button.d.ts +0 -4
- package/dist/button/internal/internal-button.d.ts.map +0 -1
- package/dist/button/internal/internal-icon-button.d.ts +0 -4
- package/dist/button/internal/internal-icon-button.d.ts.map +0 -1
- package/dist/footer/index.js.map +0 -7
package/dist/toast/index.js.map
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/toast/toast-action-button.tsx", "../../src/toast/qds-toast-context.tsx", "../../src/toast/toast-close-button.tsx", "../../src/toast/toast-description.tsx", "../../src/toast/toast-icon.tsx", "../../src/toast/toast-label.tsx", "../../src/toast/toast-root.tsx", "../../src/toast/create-toaster.ts", "../../src/toast/toaster.tsx", "../../src/toast/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { jsx } from \"react/jsx-runtime\";\nimport { Button } from \"@qualcomm-ui/react/button\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { CoreToast } from \"@qualcomm-ui/react-core/toast\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsToastContext } from \"./qds-toast-context\";\nexport function ToastActionButton(t0) {\n const {\n action,\n render,\n ...props\n } = t0;\n const qdsContext = useQdsToastContext();\n const mergedProps = mergeProps(qdsContext.getActionBindings(), props);\n return jsx(CoreToast.ActionTrigger, {\n ...mergedProps,\n children: jsx(PolymorphicElement, {\n as: \"button\",\n render: jsx(Button, {\n emphasis: \"neutral\",\n render,\n size: \"sm\",\n variant: \"outline\"\n }),\n children: action.label\n })\n });\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [QdsToastContextProvider, useQdsToastContext] = createGuardedContext({\n hookName: \"useQdsToastContext\",\n providerName: \"<QdsToastContextProvider>\",\n strict: true\n});", "import { jsx } from \"react/jsx-runtime\";\nimport { X } from \"lucide-react\";\nimport { InlineIconButton } from \"@qualcomm-ui/react/inline-icon-button\";\nimport { CoreToast } from \"@qualcomm-ui/react-core/toast\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsToastContext } from \"./qds-toast-context\";\nexport function ToastCloseButton(t0) {\n const {\n icon,\n ...props\n } = t0;\n const qdsContext = useQdsToastContext();\n const mergedProps = mergeProps(qdsContext.getCloseButtonBindings(), props);\n return jsx(CoreToast.CloseTrigger, {\n ...mergedProps,\n children: jsx(InlineIconButton, {\n icon: icon || X,\n variant: \"fixed\"\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreToast } from \"@qualcomm-ui/react-core/toast\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsToastContext } from \"./qds-toast-context\";\nexport function ToastDescription(props) {\n const $ = _c(3);\n const qdsContext = useQdsToastContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getDescriptionBindings(), props);\n t0 = jsx(CoreToast.Description, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { BellRing, CircleAlert, CircleCheck, TriangleAlert } from \"lucide-react\";\nimport { IconOrNode } from \"@qualcomm-ui/react/icon\";\nimport { ProgressRing } from \"@qualcomm-ui/react/progress-ring\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsToastContext } from \"./qds-toast-context\";\nexport function ToastIcon(t0) {\n const {\n icon: iconProp,\n ...props\n } = t0;\n const qdsContext = useQdsToastContext();\n const mergedProps = mergeProps(qdsContext.getIconBindings(), props);\n return jsx(IconOrNode, {\n icon: iconProp || icons[qdsContext.emphasis] || CircleAlert,\n size: \"lg\",\n ...mergedProps\n });\n}\nconst icons = {\n danger: CircleAlert,\n info: CircleAlert,\n loading: /* @__PURE__ */jsx(ProgressRing, {\n size: \"xs\"\n }),\n neutral: BellRing,\n success: CircleCheck,\n warning: TriangleAlert\n};", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreToast } from \"@qualcomm-ui/react-core/toast\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsToastContext } from \"./qds-toast-context\";\nexport function ToastLabel(props) {\n const $ = _c(3);\n const qdsContext = useQdsToastContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getLabelBindings(), props);\n t0 = jsx(CoreToast.Label, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { createQdsToastApi } from \"@qualcomm-ui/qds-core/toast\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { CoreToast, useToastContext } from \"@qualcomm-ui/react-core/toast\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsToastContextProvider } from \"./qds-toast-context\";\nexport function ToastRoot(props) {\n const $ = _c(5);\n const toastContext = useToastContext();\n let t0;\n if ($[0] !== toastContext.type) {\n t0 = createQdsToastApi({\n emphasis: toastContext.type\n }, normalizeProps);\n $[0] = toastContext.type;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n const qdsApi = t0;\n let t1;\n if ($[2] !== props || $[3] !== qdsApi) {\n const mergedProps = mergeProps(qdsApi.getRootBindings(), props);\n t1 = jsx(QdsToastContextProvider, {\n value: qdsApi,\n children: jsx(CoreToast.Root, {\n ...mergedProps\n })\n });\n $[2] = props;\n $[3] = qdsApi;\n $[4] = t1;\n } else {\n t1 = $[4];\n }\n return t1;\n}", "import { createToastStore } from \"@qualcomm-ui/core/toast\";\nexport function createToaster(options) {\n return createToastStore(options);\n}", "import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { CoreToaster } from \"@qualcomm-ui/react-core/toast\";\nimport { ToastActionButton } from \"./toast-action-button\";\nimport { ToastCloseButton } from \"./toast-close-button\";\nimport { ToastDescription } from \"./toast-description\";\nimport { ToastIcon } from \"./toast-icon\";\nimport { ToastLabel } from \"./toast-label\";\nimport { ToastRoot } from \"./toast-root\";\nexport function Toaster({\n children,\n toaster,\n ...props\n}) {\n return /* @__PURE__ */jsx(CoreToaster, {\n toaster,\n ...props,\n children: children || DefaultToast\n });\n}\nfunction DefaultToast(toast) {\n return /* @__PURE__ */jsxs(ToastRoot, {\n children: [/* @__PURE__ */jsx(ToastIcon, {}), /* @__PURE__ */jsx(ToastLabel, {\n children: toast.label\n }), /* @__PURE__ */jsx(ToastDescription, {\n children: toast.description\n }), toast.action ? /* @__PURE__ */jsx(ToastActionButton, {\n action: toast.action\n }) : null, toast.closable ? /* @__PURE__ */jsx(ToastCloseButton, {}) : null]\n }, toast.id);\n}", "import { ToastActionButton } from \"./toast-action-button\";\nimport { ToastCloseButton } from \"./toast-close-button\";\nimport { ToastDescription } from \"./toast-description\";\nimport { ToastIcon } from \"./toast-icon\";\nimport { ToastLabel } from \"./toast-label\";\nimport { ToastRoot } from \"./toast-root\";\nexport * from \"./create-toaster\";\nexport * from \"./qds-toast-context\";\nexport * from \"./toaster\";\nexport const Toast = {\n ActionButton: ToastActionButton,\n CloseButton: ToastCloseButton,\n Description: ToastDescription,\n Icon: ToastIcon,\n Label: ToastLabel,\n Root: ToastRoot\n};"],
|
|
5
|
-
"mappings": ";AAAA,OAAS,QAAW,oBACpB,OAAS,WAAc,4BACvB,OAAS,uBAA0B,iCACnC,OAAS,cAAiB,gCAC1B,OAAS,eAAkB,iCCJ3B,OAAS,yBAA4B,kCAC9B,GAAM,CAAC,wBAAyB,kBAAkB,EAAI,qBAAqB,CAChF,SAAU,qBACV,aAAc,4BACd,OAAQ,EACV,CAAC,EDCM,SAAS,kBAAkB,GAAI,CACpC,GAAM,CACJ,OACA,OACA,GAAG,KACL,EAAI,GACE,WAAa,mBAAmB,EAChC,YAAc,WAAW,WAAW,kBAAkB,EAAG,KAAK,EACpE,OAAO,IAAI,UAAU,cAAe,CAClC,GAAG,YACH,SAAU,IAAI,mBAAoB,CAChC,GAAI,SACJ,OAAQ,IAAI,OAAQ,CAClB,SAAU,UACV,OACA,KAAM,KACN,QAAS,SACX,CAAC,EACD,SAAU,OAAO,KACnB,CAAC,CACH,CAAC,CACH,CE3BA,OAAS,OAAAA,SAAW,oBACpB,OAAS,MAAS,eAClB,OAAS,qBAAwB,wCACjC,OAAS,aAAAC,eAAiB,gCAC1B,OAAS,cAAAC,gBAAkB,iCAE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AAK,EAAE,CAAC,EAEV,OAAO,EACT,CCtCA,OAAS,qBAAwB,0BAC1B,SAAS,cAAc,QAAS,CACrC,OAAO,iBAAiB,OAAO,CACjC,CCHA,OAAS,OAAAC,KAAK,SAAY,oBAC1B,OAAS,gBAAmB,gCAOrB,SAAS,QAAQ,CACtB,SACA,QACA,GAAG,KACL,EAAG,CACD,OAAsBC,KAAI,YAAa,CACrC,QACA,GAAG,MACH,SAAU,UAAY,YACxB,CAAC,CACH,CACA,SAAS,aAAa,MAAO,CAC3B,OAAsB,KAAK,UAAW,CACpC,SAAU,CAAgBA,KAAI,UAAW,CAAC,CAAC,EAAkBA,KAAI,WAAY,CAC3E,SAAU,MAAM,KAClB,CAAC,EAAkBA,KAAI,iBAAkB,CACvC,SAAU,MAAM,WAClB,CAAC,EAAG,MAAM,OAAwBA,KAAI,kBAAmB,CACvD,OAAQ,MAAM,MAChB,CAAC,EAAI,KAAM,MAAM,SAA0BA,KAAI,iBAAkB,CAAC,CAAC,EAAI,IAAI,CAC7E,EAAG,MAAM,EAAE,CACb,CCpBO,IAAM,MAAQ,CACnB,aAAc,kBACd,YAAa,iBACb,YAAa,iBACb,KAAM,UACN,MAAO,WACP,KAAM,SACR",
|
|
6
|
-
"names": ["jsx", "CoreToast", "mergeProps", "mergeProps", "jsx", "CoreToast", "jsx", "CoreToast", "mergeProps", "mergeProps", "jsx", "CoreToast", "jsx", "mergeProps", "mergeProps", "jsx", "_c", "jsx", "CoreToast", "mergeProps", "_c", "mergeProps", "jsx", "CoreToast", "_c", "jsx", "CoreToast", "mergeProps", "_c", "mergeProps", "jsx", "CoreToast", "jsx", "jsx"]
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","names":["QdsToastApi","createGuardedContext","QdsToastContextProvider","useQdsToastContext","hookName","providerName","strict","ReactElement","ToastActionOptions","Button","ElementRenderProp","PolymorphicElement","CoreToast","mergeProps","useQdsToastContext","ToastActionButtonProps","action","ToastActionButton","t0","$","_c","render","props","qdsContext","mergedProps","getActionBindings","t1","t2","label","t3","ReactElement","LucideIcon","X","InlineIconButton","CoreToast","CoreToastCloseTriggerProps","mergeProps","useQdsToastContext","ToastCloseButtonProps","Omit","icon","ToastCloseButton","t0","$","_c","props","qdsContext","mergedProps","getCloseButtonBindings","t1","t2","t3","ReactElement","CoreToast","CoreToastDescriptionProps","mergeProps","useQdsToastContext","ToastDescriptionProps","ToastDescription","props","$","_c","qdsContext","t0","getDescriptionBindings","mergedProps","t1","ReactElement","BellRing","CircleAlert","CircleCheck","TriangleAlert","QdsNotificationEmphasis","IconOrNode","ProgressRing","LucideIconOrNode","ElementRenderProp","mergeProps","useQdsToastContext","ToastIconProps","icon","ToastIcon","t0","$","_c","iconProp","props","qdsContext","mergedProps","getIconBindings","t1","icons","emphasis","t2","Record","danger","info","loading","neutral","success","warning","ReactElement","CoreToast","CoreToastLabelProps","mergeProps","useQdsToastContext","ToastLabelProps","ToastLabel","props","$","_c","qdsContext","t0","getLabelBindings","mergedProps","t1","ReactElement","useMemo","createQdsToastApi","normalizeProps","CoreToast","CoreToastRootProps","useToastContext","mergeProps","QdsToastContextProvider","ToastRootProps","ToastRoot","props","$","_c","toastContext","t0","type","emphasis","qdsApi","t1","getRootBindings","mergedProps","t2","t3","ReactElement","createToastStore","ToasterCreateOptions","ToastOptions","ToastStore","ToasterInstance","ToastCreateOptions","createToaster","options","ReactElement","ToastOptions","FunctionRenderProp","CoreToaster","CoreToasterProps","ToasterInstance","ToastActionButton","ToastCloseButton","ToastDescription","ToastIcon","ToastLabel","ToastRoot","ToasterProps","Omit","children","toaster","Toaster","t0","$","_c","props","t1","DefaultToast","t2","toast","Symbol","for","label","description","t3","action","t4","closable","t5","id","ToastActionButton","ToastActionButtonProps","ToastCloseButton","ToastCloseButtonProps","ToastDescription","ToastDescriptionProps","ToastIcon","ToastIconProps","ToastLabel","ToastLabelProps","ToastRoot","ToastRootProps","ToastComponent","ActionButton","CloseButton","Description","Icon","Label","Root","Toast"],"sources":["../../src/toast/qds-toast-context.tsx","../../src/toast/toast-action-button.tsx","../../src/toast/toast-close-button.tsx","../../src/toast/toast-description.tsx","../../src/toast/toast-icon.tsx","../../src/toast/toast-label.tsx","../../src/toast/toast-root.tsx","../../src/toast/create-toaster.ts","../../src/toast/toaster.tsx","../../src/toast/index.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {QdsToastApi} from \"@qualcomm-ui/qds-core/toast\"\nimport {createGuardedContext} from \"@qualcomm-ui/react-core/context\"\n\nexport const [QdsToastContextProvider, useQdsToastContext] =\n createGuardedContext<QdsToastApi>({\n hookName: \"useQdsToastContext\",\n providerName: \"<QdsToastContextProvider>\",\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 type {ToastActionOptions} from \"@qualcomm-ui/core/toast\"\nimport {Button} from \"@qualcomm-ui/react/button\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {CoreToast} from \"@qualcomm-ui/react-core/toast\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsToastContext} from \"./qds-toast-context\"\n\nexport interface ToastActionButtonProps extends ElementRenderProp<\"button\"> {\n /**\n * The action to perform when the button is clicked.\n */\n action: ToastActionOptions\n}\n\nexport function ToastActionButton({\n action,\n render,\n ...props\n}: ToastActionButtonProps): ReactElement | null {\n const qdsContext = useQdsToastContext()\n const mergedProps = mergeProps(qdsContext.getActionBindings(), props)\n\n return (\n <CoreToast.ActionTrigger {...mergedProps}>\n <PolymorphicElement\n as=\"button\"\n render={\n <Button\n emphasis=\"neutral\"\n render={render}\n size=\"sm\"\n variant=\"outline\"\n />\n }\n >\n {action.label}\n </PolymorphicElement>\n </CoreToast.ActionTrigger>\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 LucideIcon, X} from \"lucide-react\"\n\nimport {InlineIconButton} from \"@qualcomm-ui/react/inline-icon-button\"\nimport {\n CoreToast,\n type CoreToastCloseTriggerProps,\n} from \"@qualcomm-ui/react-core/toast\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsToastContext} from \"./qds-toast-context\"\n\nexport interface ToastCloseButtonProps extends Omit<\n CoreToastCloseTriggerProps,\n \"children\"\n> {\n /**\n * @default X\n */\n icon?: LucideIcon\n}\n\nexport function ToastCloseButton({\n icon,\n ...props\n}: ToastCloseButtonProps): ReactElement {\n const qdsContext = useQdsToastContext()\n const mergedProps = mergeProps(qdsContext.getCloseButtonBindings(), props)\n\n return (\n <CoreToast.CloseTrigger {...mergedProps}>\n <InlineIconButton icon={icon || X} variant=\"fixed\" />\n </CoreToast.CloseTrigger>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreToast,\n type CoreToastDescriptionProps,\n} from \"@qualcomm-ui/react-core/toast\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsToastContext} from \"./qds-toast-context\"\n\nexport interface ToastDescriptionProps extends CoreToastDescriptionProps {}\n\nexport function ToastDescription(props: ToastDescriptionProps): ReactElement {\n const qdsContext = useQdsToastContext()\n const mergedProps = mergeProps(qdsContext.getDescriptionBindings(), props)\n\n return <CoreToast.Description {...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 {BellRing, CircleAlert, CircleCheck, TriangleAlert} from \"lucide-react\"\n\nimport type {QdsNotificationEmphasis} from \"@qualcomm-ui/qds-core/inline-notification\"\nimport {IconOrNode} from \"@qualcomm-ui/react/icon\"\nimport {ProgressRing} from \"@qualcomm-ui/react/progress-ring\"\nimport type {LucideIconOrNode} from \"@qualcomm-ui/react-core/lucide\"\nimport type {ElementRenderProp} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsToastContext} from \"./qds-toast-context\"\n\nexport interface ToastIconProps extends ElementRenderProp<\"span\"> {\n /**\n * Override the icon displayed in the notification. When this prop is omitted,\n * the icon is determined by the {@link emphasis} prop.\n */\n icon?: LucideIconOrNode\n}\n\nexport function ToastIcon({\n icon: iconProp,\n ...props\n}: ToastIconProps): ReactElement {\n const qdsContext = useQdsToastContext()\n\n const mergedProps = mergeProps(qdsContext.getIconBindings(), props)\n\n return (\n <IconOrNode\n icon={iconProp || icons[qdsContext.emphasis] || CircleAlert}\n size=\"lg\"\n {...mergedProps}\n />\n )\n}\n\nconst icons: Record<QdsNotificationEmphasis, LucideIconOrNode> = {\n danger: CircleAlert,\n info: CircleAlert,\n loading: <ProgressRing size=\"xs\" />,\n neutral: BellRing,\n success: CircleCheck,\n warning: TriangleAlert,\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 CoreToast,\n type CoreToastLabelProps,\n} from \"@qualcomm-ui/react-core/toast\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsToastContext} from \"./qds-toast-context\"\n\nexport interface ToastLabelProps extends CoreToastLabelProps {}\n\nexport function ToastLabel(props: ToastLabelProps): ReactElement {\n const qdsContext = useQdsToastContext()\n const mergedProps = mergeProps(qdsContext.getLabelBindings(), props)\n\n return <CoreToast.Label {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {type ReactElement, useMemo} from \"react\"\n\nimport {createQdsToastApi} from \"@qualcomm-ui/qds-core/toast\"\nimport {normalizeProps} from \"@qualcomm-ui/react-core/machine\"\nimport {\n CoreToast,\n type CoreToastRootProps,\n useToastContext,\n} from \"@qualcomm-ui/react-core/toast\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {QdsToastContextProvider} from \"./qds-toast-context\"\n\nexport interface ToastRootProps extends CoreToastRootProps {}\n\nexport function ToastRoot(props: ToastRootProps): ReactElement {\n const toastContext = useToastContext()\n const qdsApi = useMemo(\n () => createQdsToastApi({emphasis: toastContext.type}, normalizeProps),\n [toastContext.type],\n )\n\n const mergedProps = mergeProps(qdsApi.getRootBindings(), props)\n\n return (\n <QdsToastContextProvider value={qdsApi}>\n <CoreToast.Root {...mergedProps} />\n </QdsToastContextProvider>\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 createToastStore,\n type ToasterCreateOptions,\n type ToastOptions,\n type ToastStore,\n} from \"@qualcomm-ui/core/toast\"\n\nexport interface ToasterInstance extends ToastStore<ReactElement | string> {}\n\nexport interface ToastCreateOptions extends ToastOptions<\n ReactElement | string\n> {}\n\nexport function createToaster(options: ToasterCreateOptions): ToasterInstance {\n return createToastStore<ReactElement | string>(options)\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 {ToastOptions} from \"@qualcomm-ui/core/toast\"\nimport type {FunctionRenderProp} from \"@qualcomm-ui/react-core/system\"\nimport {CoreToaster, type CoreToasterProps} from \"@qualcomm-ui/react-core/toast\"\n\nimport type {ToasterInstance} from \"./create-toaster\"\nimport {ToastActionButton} from \"./toast-action-button\"\nimport {ToastCloseButton} from \"./toast-close-button\"\nimport {ToastDescription} from \"./toast-description\"\nimport {ToastIcon} from \"./toast-icon\"\nimport {ToastLabel} from \"./toast-label\"\nimport {ToastRoot} from \"./toast-root\"\n\nexport interface ToasterProps extends Omit<CoreToasterProps, \"children\"> {\n /**\n * {@link https://react-next.qui.qualcomm.com/render-props#functionrenderprop Render Prop}\n * that provides the {@link ToastOptions}.\n *\n * @inheritDoc\n */\n children?: FunctionRenderProp<ToastOptions>\n\n /**\n * The {@link ToasterInstance} instance.\n *\n * @inheritDoc\n */\n toaster: ToasterInstance\n}\n\nexport function Toaster({\n children,\n toaster,\n ...props\n}: ToasterProps): ReactElement {\n return (\n <CoreToaster toaster={toaster} {...props}>\n {children || DefaultToast}\n </CoreToaster>\n )\n}\n\nfunction DefaultToast(toast: ToastOptions<ReactElement | string>) {\n return (\n <ToastRoot key={toast.id}>\n <ToastIcon />\n <ToastLabel>{toast.label}</ToastLabel>\n <ToastDescription>{toast.description}</ToastDescription>\n {toast.action ? <ToastActionButton action={toast.action} /> : null}\n {toast.closable ? <ToastCloseButton /> : null}\n </ToastRoot>\n )\n}\n","import {\n ToastActionButton,\n type ToastActionButtonProps,\n} from \"./toast-action-button\"\nimport {\n ToastCloseButton,\n type ToastCloseButtonProps,\n} from \"./toast-close-button\"\nimport {ToastDescription, type ToastDescriptionProps} from \"./toast-description\"\nimport {ToastIcon, type ToastIconProps} from \"./toast-icon\"\nimport {ToastLabel, type ToastLabelProps} from \"./toast-label\"\nimport {ToastRoot, type ToastRootProps} from \"./toast-root\"\n\nexport * from \"./create-toaster\"\nexport * from \"./qds-toast-context\"\nexport * from \"./toaster\"\n\nexport type {\n ToastActionButtonProps,\n ToastCloseButtonProps,\n ToastDescriptionProps,\n ToastIconProps,\n ToastLabelProps,\n ToastRootProps,\n}\n\ntype ToastComponent = {\n ActionButton: typeof ToastActionButton\n CloseButton: typeof ToastCloseButton\n Description: typeof ToastDescription\n Icon: typeof ToastIcon\n Label: typeof ToastLabel\n Root: typeof ToastRoot\n}\n\nexport const Toast: ToastComponent = {\n ActionButton: ToastActionButton,\n CloseButton: ToastCloseButton,\n Description: ToastDescription,\n Icon: ToastIcon,\n Label: ToastLabel,\n Root: ToastRoot,\n}\n"],"mappings":"i7BAMA,GAAa,CAACE,EAAyBC,GACrCF,EAAkC,CAChCG,SAAU,qBACVC,aAAc,4BACdC,OAAQ,GACT,CAAC,CCYJ,SAAOW,kBAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAA2B,CAAAJ,SAAAK,SAAA,GAAAC,GAAAJ,EAMhCM,EAAoBX,EADDC,GAAoB,CACEW,mBAAoB,CAAEH,EAAM,CAAAI,EAAAP,EAAA,KAAAE,EAY3DK,EAAAP,EAAA,IALFO,EAAA,EAAC,EAAD,CACW,SAAA,UACDL,SACH,KAAA,KACG,QAAA,UACR,CAAA,CAAAF,EAAA,GAAAE,EAAAF,EAAA,GAAAO,GAAA,IAAAC,EAAAR,EAAA,KAAAH,EAAAY,OAAAT,EAAA,KAAAO,GARNC,EAAA,EAAC,EAAD,CACK,GAAA,SAED,OAAAD,WAQDV,EAAMY,MACY,CAAA,CAAAT,EAAA,GAAAH,EAAAY,MAAAT,EAAA,GAAAO,EAAAP,EAAA,GAAAQ,GAAAA,EAAAR,EAAA,GAAA,IAAAU,EACG,OADHV,EAAA,KAAAK,GAAAL,EAAA,KAAAQ,GAbvBE,EAAA,EAAA,EAAA,cAAA,CAAA,GAA6BL,WAC3BG,EAawB,CAAA,CAAAR,EAAA,GAAAK,EAAAL,EAAA,GAAAQ,EAAAR,EAAA,GAAAU,GAAAA,EAAAV,EAAA,GAd1BU,ECNJ,SAAOY,iBAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAA0B,CAAAJ,OAAA,GAAAK,GAAAH,EAK/BK,EAAoBX,EADDC,GAAoB,CACEW,wBAAyB,CAAEH,EAAM,CAI9CI,EAAAT,GAAAR,EAASkB,EAAAP,EAAA,KAAAM,EAAoBC,EAAAP,EAAA,IAArDO,EAAA,EAA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A,EAAC,iBAAD,CAAA,SAAmBC,EAAKI,YAAgC,CAAA,CAAAV,EAAA,GAAAM,EAAAI,YAAAV,EAAA,GAAAK,GAAA,IAAAM,EAAAX,EAAA,KAAAM,EAAAM,OACUD,EAAAX,EAAA,IAAjEW,EAAAL,EAAKM,OAAU,EAAC,kBAAD,CAA2B,OAAAN,EAAKM,OAAkB,CAAA,CAAjE,KAAiEZ,EAAA,GAAAM,EAAAM,OAAAZ,EAAA,GAAAW,GAAA,IAAAE,EAAAb,EAAA,KAAAM,EAAAQ,SACrBD,EAAAb,EAAA,IAA5Ca,EAAAP,EAAKQ,SAAY,EAAC,iBAAD,EAA2B,CAAA,CAA5C,KAA4Cd,EAAA,GAAAM,EAAAQ,SAAAd,EAAA,GAAAa,GAAA,IAAAE,EACnC,OADmCf,EAAA,KAAAG,GAAAH,EAAA,MAAAK,GAAAL,EAAA,MAAAW,GAAAX,EAAA,MAAAa,GAAAb,EAAA,MAAAM,EAAAU,IAL/CD,EAAA,EAAC,UAAD,CAAA,SAAA,CACEhB,EACAI,EACAE,EACCM,EACAE,EACS,CAAA,CANIP,EAAKU,GAMT,CAAAhB,EAAA,GAAAG,EAAAH,EAAA,IAAAK,EAAAL,EAAA,IAAAW,EAAAX,EAAA,IAAAa,EAAAb,EAAA,IAAAM,EAAAU,GAAAhB,EAAA,IAAAe,GAAAA,EAAAf,EAAA,IANZe,ECbJ,IAAaqB,EAAwB,CACnCN,aAAcb,kBACdc,YAAaZ,iBACba,YAAaX,iBACbY,KAAMV,UACNW,MAAOT,WACPU,KAAMR,UACP"}
|
package/dist/tooltip/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
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{Portal as o}from"@qualcomm-ui/react-core/portal";import{tooltipClasses as s}from"@qualcomm-ui/qds-core/tooltip";import{TooltipContextProvider as c,useTooltip as l,useTooltipArrow as u,useTooltipArrowTip as d,useTooltipContent as f,useTooltipPositioner as p,useTooltipTrigger as m}from"@qualcomm-ui/react-core/tooltip";function TooltipArrowTip(r){let a=e(5),o=d(),c;a[0]!==o||a[1]!==r?(c=t(o,{className:s.arrowTip},r),a[0]=o,a[1]=r,a[2]=c):c=a[2];let l=c,u;return a[3]===l?u=a[4]:(u=n(i,{as:`div`,...l}),a[3]=l,a[4]=u),u}function TooltipArrow({children:e=n(TooltipArrowTip,{}),id:r,...a}){return n(i,{as:`div`,...t(u({id:r}),{className:s.arrow},a),children:e})}function TooltipContent(r){let a=e(5),{children:o,id:c,...l}=r,u;a[0]===c?u=a[1]:(u={id:c},a[0]=c,a[1]=u);let d=t(f(u),{className:s.content},l),p;return a[2]!==o||a[3]!==d?(p=n(i,{as:`div`,...d,children:o}),a[2]=o,a[3]=d,a[4]=p):p=a[4],p}function TooltipPositioner(r){let a=e(5),{children:o,id:c,...l}=r,u;a[0]===c?u=a[1]:(u={id:c},a[0]=c,a[1]=u);let d=t(p(u),{className:s.positioner},l),f;return a[2]!==o||a[3]!==d?(f=n(i,{as:`div`,...d,children:o}),a[2]=o,a[3]=d,a[4]=f):f=a[4],f}function TooltipRoot(t){let r=e(6),i,a;r[0]===t?(i=r[1],a=r[2]):({children:i,...a}=t,r[0]=t,r[1]=i,r[2]=a);let o=l(a),s;return r[3]!==i||r[4]!==o?(s=n(c,{value:o,children:i}),r[3]=i,r[4]=o,r[5]=s):s=r[5],s}function TooltipTrigger(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(m(c),s))}function Tooltip$1(t){let i=e(30),a,s,c,l,u,d,f,p,m;i[0]===t?(a=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9]):({arrowProps:a,arrowTipProps:s,children:c,contentProps:l,hideArrow:u,portalProps:d,positionerProps:f,trigger:m,...p}=t,i[0]=t,i[1]=a,i[2]=s,i[3]=c,i[4]=l,i[5]=u,i[6]=d,i[7]=f,i[8]=p,i[9]=m);let h;i[10]===m?h=i[11]:(h=n(TooltipTrigger,{children:m}),i[10]=m,i[11]=h);let g;i[12]!==a||i[13]!==s||i[14]!==u?(g=u?null:n(TooltipArrow,{...a,children:n(TooltipArrowTip,{...s})}),i[12]=a,i[13]=s,i[14]=u,i[15]=g):g=i[15];let _;i[16]!==c||i[17]!==l||i[18]!==g?(_=r(TooltipContent,{...l,children:[g,c]}),i[16]=c,i[17]=l,i[18]=g,i[19]=_):_=i[19];let v;i[20]!==f||i[21]!==_?(v=n(TooltipPositioner,{...f,children:_}),i[20]=f,i[21]=_,i[22]=v):v=i[22];let y;i[23]!==d||i[24]!==v?(y=n(o,{...d,children:v}),i[23]=d,i[24]=v,i[25]=y):y=i[25];let b;return i[26]!==p||i[27]!==h||i[28]!==y?(b=r(TooltipRoot,{...p,children:[h,y]}),i[26]=p,i[27]=h,i[28]=y,i[29]=b):b=i[29],b}var h=Tooltip$1;h.ArrowTip=TooltipArrowTip,h.Arrow=TooltipArrow,h.Content=TooltipContent,h.Positioner=TooltipPositioner,h.Root=TooltipRoot,h.Trigger=TooltipTrigger;export{h as Tooltip};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/tooltip/tooltip.tsx", "../../src/tooltip/tooltip-arrow.tsx", "../../src/tooltip/tooltip-arrow-tip.tsx", "../../src/tooltip/tooltip-content.tsx", "../../src/tooltip/tooltip-positioner.tsx", "../../src/tooltip/tooltip-root.tsx", "../../src/tooltip/tooltip-trigger.tsx", "../../src/tooltip/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { Portal } from \"@qualcomm-ui/react-core/portal\";\nimport { TooltipArrow } from \"./tooltip-arrow\";\nimport { TooltipArrowTip } from \"./tooltip-arrow-tip\";\nimport { TooltipContent } from \"./tooltip-content\";\nimport { TooltipPositioner } from \"./tooltip-positioner\";\nimport { TooltipRoot } from \"./tooltip-root\";\nimport { TooltipTrigger } from \"./tooltip-trigger\";\nexport function Tooltip({\n arrowProps,\n arrowTipProps,\n children,\n contentProps,\n hideArrow,\n portalProps,\n positionerProps,\n trigger,\n ...props\n}) {\n return /* @__PURE__ */jsxs(TooltipRoot, {\n ...props,\n children: [/* @__PURE__ */jsx(TooltipTrigger, {\n children: trigger\n }), /* @__PURE__ */jsx(Portal, {\n ...portalProps,\n children: /* @__PURE__ */jsx(TooltipPositioner, {\n ...positionerProps,\n children: /* @__PURE__ */jsxs(TooltipContent, {\n ...contentProps,\n children: [hideArrow ? null : /* @__PURE__ */jsx(TooltipArrow, {\n ...arrowProps,\n children: /* @__PURE__ */jsx(TooltipArrowTip, {\n ...arrowTipProps\n })\n }), children]\n })\n })\n })]\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { tooltipClasses } from \"@qualcomm-ui/qds-core/tooltip\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { useTooltipArrow } from \"@qualcomm-ui/react-core/tooltip\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { TooltipArrowTip } from \"./tooltip-arrow-tip\";\nexport function TooltipArrow(t0) {\n const $ = _c(2);\n const {\n children: t1,\n id,\n ...props\n } = t0;\n const children = t1 === undefined ? jsx(TooltipArrowTip, {}) : 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 = useTooltipArrow(t2);\n const mergedProps = mergeProps(contextProps, {\n className: tooltipClasses.arrow\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 { tooltipClasses } from \"@qualcomm-ui/qds-core/tooltip\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { useTooltipArrowTip } from \"@qualcomm-ui/react-core/tooltip\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function TooltipArrowTip(props) {\n const $ = _c(3);\n const contextProps = useTooltipArrowTip();\n let t0;\n if ($[0] !== contextProps || $[1] !== props) {\n const mergedProps = mergeProps(contextProps, {\n className: tooltipClasses.arrowTip\n }, props);\n t0 = jsx(PolymorphicElement, {\n as: \"div\",\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 { tooltipClasses } from \"@qualcomm-ui/qds-core/tooltip\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { useTooltipContent } from \"@qualcomm-ui/react-core/tooltip\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function TooltipContent(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 = useTooltipContent(t1);\n const mergedProps = mergeProps(contextProps, {\n className: tooltipClasses.content\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 { tooltipClasses } from \"@qualcomm-ui/qds-core/tooltip\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { useTooltipPositioner } from \"@qualcomm-ui/react-core/tooltip\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function TooltipPositioner(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 = useTooltipPositioner(t1);\n const mergedProps = mergeProps(contextProps, {\n className: tooltipClasses.positioner\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 { TooltipContextProvider, useTooltip } from \"@qualcomm-ui/react-core/tooltip\";\nexport function TooltipRoot(t0) {\n const $ = _c(6);\n let children;\n let props;\n if ($[0] !== t0) {\n ({\n children,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = children;\n $[2] = props;\n } else {\n children = $[1];\n props = $[2];\n }\n const t1 = useTooltip(props);\n let t2;\n if ($[3] !== children || $[4] !== t1) {\n t2 = jsx(TooltipContextProvider, {\n value: t1,\n children\n });\n $[3] = children;\n $[4] = t1;\n $[5] = t2;\n } else {\n t2 = $[5];\n }\n return t2;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { bindingRenderProp } from \"@qualcomm-ui/react-core/system\";\nimport { useTooltipTrigger } from \"@qualcomm-ui/react-core/tooltip\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function TooltipTrigger(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 = useTooltipTrigger(t1);\n const mergedProps = mergeProps(contextProps, props);\n return bindingRenderProp(children, mergedProps);\n}", "import { Tooltip as SimpleTooltip } from \"./tooltip\";\nimport { TooltipArrow } from \"./tooltip-arrow\";\nimport { TooltipArrowTip } from \"./tooltip-arrow-tip\";\nimport { TooltipContent } from \"./tooltip-content\";\nimport { TooltipPositioner } from \"./tooltip-positioner\";\nimport { TooltipRoot } from \"./tooltip-root\";\nimport { TooltipTrigger } from \"./tooltip-trigger\";\nexport const Tooltip = SimpleTooltip;\nTooltip.ArrowTip = TooltipArrowTip;\nTooltip.Arrow = TooltipArrow;\nTooltip.Content = TooltipContent;\nTooltip.Positioner = TooltipPositioner;\nTooltip.Root = TooltipRoot;\nTooltip.Trigger = TooltipTrigger;"],
|
|
5
|
-
"mappings": ";AAAA,OAAS,OAAAA,KAAK,SAAY,oBAC1B,OAAS,WAAc,iCCDvB,OAAS,KAAKC,QAAU,yBACxB,OAAS,OAAAC,SAAW,oBACpB,OAAS,kBAAAC,oBAAsB,gCAC/B,OAAS,sBAAAC,wBAA0B,iCACnC,OAAS,oBAAuB,kCAChC,OAAS,cAAAC,gBAAkB,iCCL3B,OAAS,KAAK,OAAU,yBACxB,OAAS,QAAW,oBACpB,OAAS,mBAAsB,gCAC/B,OAAS,uBAA0B,iCACnC,OAAS,uBAA0B,kCACnC,OAAS,eAAkB,iCACpB,SAAS,gBAAgB,MAAO,CACrC,IAAM,EAAI,GAAG,CAAC,EACR,aAAe,mBAAmB,EACpC,GACJ,GAAI,EAAE,CAAC,IAAM,cAAgB,EAAE,CAAC,IAAM,MAAO,CAC3C,IAAM,YAAc,WAAW,aAAc,CAC3C,UAAW,eAAe,QAC5B,EAAG,KAAK,EACR,GAAK,IAAI,mBAAoB,CAC3B,GAAI,MACJ,GAAG,WACL,CAAC,EACD,EAAE,CAAC,EAAI,aACP,EAAE,CAAC,EAAI,MACP,EAAE,CAAC,EAAI,EACT,MACE,GAAK,EAAE,CAAC,EAEV,OAAO,EACT,CDlBO,SAAS,aAAa,GAAI,CAC/B,IAAM,EAAIC,IAAG,CAAC,EACR,CACJ,SAAU,GACV,GACA,GAAG,KACL,EAAI,GACE,SAAW,KAAO,OAAYC,KAAI,gBAAiB,CAAC,CAAC,EAAI,GAC3D,GACA,EAAE,CAAC,IAAM,IACX,GAAK,CACH,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C,KAAI,eAAgB,CAC5C,SAAU,OACZ,CAAC,EAAkBA,KAAI,OAAQ,CAC7B,GAAG,YACH,SAAyBA,KAAI,kBAAmB,CAC9C,GAAG,gBACH,SAAyB,KAAK,eAAgB,CAC5C,GAAG,aACH,SAAU,CAAC,UAAY,KAAsBA,KAAI,aAAc,CAC7D,GAAG,WACH,SAAyBA,KAAI,gBAAiB,CAC5C,GAAG,aACL,CAAC,CACH,CAAC,EAAG,QAAQ,CACd,CAAC,CACH,CAAC,CACH,CAAC,CAAC,CACJ,CAAC,CACH,COhCO,IAAMC,SAAU,QACvBA,SAAQ,SAAW,gBACnBA,SAAQ,MAAQ,aAChBA,SAAQ,QAAU,eAClBA,SAAQ,WAAa,kBACrBA,SAAQ,KAAO,YACfA,SAAQ,QAAU",
|
|
6
|
-
"names": ["jsx", "_c", "jsx", "tooltipClasses", "PolymorphicElement", "mergeProps", "_c", "jsx", "mergeProps", "tooltipClasses", "PolymorphicElement", "_c", "jsx", "tooltipClasses", "PolymorphicElement", "mergeProps", "_c", "jsx", "tooltipClasses", "PolymorphicElement", "mergeProps", "_c", "jsx", "_c", "mergeProps", "jsx", "Tooltip"]
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","names":["ReactElement","tooltipClasses","ElementRenderProp","PolymorphicElement","useTooltipArrowTip","mergeProps","TooltipArrowTipProps","TooltipArrowTip","props","$","_c","contextProps","t0","className","arrowTip","mergedProps","t1","ReactElement","ReactNode","tooltipClasses","ElementRenderProp","PolymorphicElement","useTooltipArrow","mergeProps","TooltipArrowTip","TooltipArrowProps","children","TooltipArrow","id","props","contextProps","mergedProps","className","arrow","ReactElement","ReactNode","tooltipClasses","ElementRenderProp","IdProp","PolymorphicElement","useTooltipContent","mergeProps","TooltipContentProps","children","TooltipContent","t0","$","_c","id","props","t1","contextProps","mergedProps","className","content","t2","ReactElement","ReactNode","tooltipClasses","ElementRenderProp","IdProp","PolymorphicElement","useTooltipPositioner","mergeProps","TooltipPositionerProps","children","TooltipPositioner","t0","$","_c","id","props","t1","contextProps","mergedProps","className","positioner","t2","ReactNode","TooltipApiProps","TooltipContextProvider","useTooltip","TooltipRootProps","children","TooltipRoot","t0","$","_c","props","t1","t2","ReactElement","TooltipTriggerBindings","bindingRenderProp","BindingRenderProp","IdProp","useTooltipTrigger","mergeProps","TooltipTriggerProps","children","TooltipTrigger","t0","$","_c","id","props","t1","contextProps","mergedProps","ReactElement","ReactNode","TooltipTriggerBindings","Portal","PortalProps","BindingRenderProp","TooltipArrow","TooltipArrowProps","TooltipArrowTip","TooltipArrowTipProps","TooltipContent","TooltipContentProps","TooltipPositioner","TooltipPositionerProps","TooltipRoot","TooltipRootProps","TooltipTrigger","TooltipProps","Omit","arrowProps","arrowTipProps","children","contentProps","hideArrow","portalProps","positionerProps","trigger","Tooltip","t0","$","_c","props","t1","t2","t3","t4","t5","t6","Tooltip","SimpleTooltip","TooltipArrow","TooltipArrowProps","TooltipArrowTip","TooltipArrowTipProps","TooltipContent","TooltipContentProps","TooltipPositioner","TooltipPositionerProps","TooltipRoot","TooltipRootProps","TooltipTrigger","TooltipTriggerProps","TooltipComponent","Arrow","ArrowTip","Content","Positioner","Root","Trigger"],"sources":["../../src/tooltip/tooltip-arrow-tip.tsx","../../src/tooltip/tooltip-arrow.tsx","../../src/tooltip/tooltip-content.tsx","../../src/tooltip/tooltip-positioner.tsx","../../src/tooltip/tooltip-root.tsx","../../src/tooltip/tooltip-trigger.tsx","../../src/tooltip/tooltip.tsx","../../src/tooltip/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 {tooltipClasses} from \"@qualcomm-ui/qds-core/tooltip\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {useTooltipArrowTip} from \"@qualcomm-ui/react-core/tooltip\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface TooltipArrowTipProps extends ElementRenderProp<\"div\"> {}\n\n/**\n * The arrow tip element. Renders a `<div>` element by default.\n */\nexport function TooltipArrowTip(props: TooltipArrowTipProps): ReactElement {\n const contextProps = useTooltipArrowTip()\n const mergedProps = mergeProps(\n contextProps,\n {className: tooltipClasses.arrowTip},\n props,\n )\n\n return <PolymorphicElement as=\"div\" {...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 {tooltipClasses} from \"@qualcomm-ui/qds-core/tooltip\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {useTooltipArrow} from \"@qualcomm-ui/react-core/tooltip\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {TooltipArrowTip} from \"./tooltip-arrow-tip\"\n\nexport interface TooltipArrowProps 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/**\n * The container that positions the arrow. This element renders the\n * `<Tooltip.ArrowTip/>` by default if no children are provided.\n */\nexport function TooltipArrow({\n children = <TooltipArrowTip />,\n id,\n ...props\n}: TooltipArrowProps): ReactElement {\n const contextProps = useTooltipArrow({id})\n const mergedProps = mergeProps(\n contextProps,\n {className: tooltipClasses.arrow},\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 {tooltipClasses} from \"@qualcomm-ui/qds-core/tooltip\"\nimport {\n type ElementRenderProp,\n type IdProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {useTooltipContent} from \"@qualcomm-ui/react-core/tooltip\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface TooltipContentProps 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\n/**\n * The content of the tooltip which is displayed relative to the trigger. Renders a\n * `<div>` element by default.\n */\nexport function TooltipContent({\n children,\n id,\n ...props\n}: TooltipContentProps): ReactElement {\n const contextProps = useTooltipContent({id})\n const mergedProps = mergeProps(\n contextProps,\n {className: tooltipClasses.content},\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 {tooltipClasses} from \"@qualcomm-ui/qds-core/tooltip\"\nimport {\n type ElementRenderProp,\n type IdProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {useTooltipPositioner} from \"@qualcomm-ui/react-core/tooltip\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface TooltipPositionerProps\n 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\n/**\n * The element that positions the tooltip content relative to the trigger. Renders a\n * `<div>` element by default.\n */\nexport function TooltipPositioner({\n children,\n id,\n ...props\n}: TooltipPositionerProps): ReactElement {\n const contextProps = useTooltipPositioner({id})\n const mergedProps = mergeProps(\n contextProps,\n {className: tooltipClasses.positioner},\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 type {TooltipApiProps} from \"@qualcomm-ui/core/tooltip\"\nimport {\n TooltipContextProvider,\n useTooltip,\n} from \"@qualcomm-ui/react-core/tooltip\"\n\nexport interface TooltipRootProps extends TooltipApiProps {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children?: ReactNode\n}\n\n/**\n * The main component that wraps the trigger and the content elements. Doesn't\n * render anything by itself.\n */\nexport function TooltipRoot({children, ...props}: TooltipRootProps) {\n return (\n <TooltipContextProvider value={useTooltip(props)}>\n {children}\n </TooltipContextProvider>\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 {TooltipTriggerBindings} from \"@qualcomm-ui/core/tooltip\"\nimport {\n bindingRenderProp,\n type BindingRenderProp,\n type IdProp,\n} from \"@qualcomm-ui/react-core/system\"\nimport {useTooltipTrigger} from \"@qualcomm-ui/react-core/tooltip\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface TooltipTriggerProps extends IdProp {\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<TooltipTriggerBindings>\n}\n\n/**\n * A trigger that opens the tooltip. Doesn't render anything by itself. Applies\n * event handlers and attributes to the child element.\n */\nexport function TooltipTrigger({\n children,\n id,\n ...props\n}: TooltipTriggerProps): ReactElement | null {\n const contextProps = useTooltipTrigger({id})\n\n const mergedProps = mergeProps(contextProps, props)\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 {TooltipTriggerBindings} from \"@qualcomm-ui/core/tooltip\"\nimport {Portal, type PortalProps} from \"@qualcomm-ui/react-core/portal\"\nimport type {BindingRenderProp} from \"@qualcomm-ui/react-core/system\"\n\nimport {TooltipArrow, type TooltipArrowProps} from \"./tooltip-arrow\"\nimport {TooltipArrowTip, type TooltipArrowTipProps} from \"./tooltip-arrow-tip\"\nimport {TooltipContent, type TooltipContentProps} from \"./tooltip-content\"\nimport {\n TooltipPositioner,\n type TooltipPositionerProps,\n} from \"./tooltip-positioner\"\nimport {TooltipRoot, type TooltipRootProps} from \"./tooltip-root\"\nimport {TooltipTrigger} from \"./tooltip-trigger\"\n\nexport interface TooltipProps extends Omit<TooltipRootProps, \"children\"> {\n /**\n * Props applied to the arrow element.\n *\n * @inheritDoc\n */\n arrowProps?: TooltipArrowProps\n\n /**\n * Props applied to the arrow tip element.\n *\n * @inheritDoc\n */\n arrowTipProps?: TooltipArrowTipProps\n\n /**\n * The text content of the tooltip.\n */\n children?: ReactNode\n\n /**\n * Props applied to the content element.\n *\n * @inheritDoc\n */\n contentProps?: TooltipContentProps\n\n /**\n * Whether to hide the arrow.\n *\n * @default false\n */\n hideArrow?: boolean\n\n /**\n * Props applied to the portal element.\n *\n * @inheritDoc\n */\n portalProps?: PortalProps\n\n /**\n * Props applied to the positioner element.\n *\n * @inheritDoc\n */\n positionerProps?: TooltipPositionerProps\n\n /**\n * React children render prop. The tooltip trigger event handlers and attributes\n * are applied to this element. It must forward its\n * {@link https://react.dev/blog/2024/12/05/react-19#ref-as-a-prop ref}\n *\n * @inheritDoc\n */\n trigger: BindingRenderProp<TooltipTriggerBindings>\n}\n\nexport function Tooltip({\n arrowProps,\n arrowTipProps,\n children,\n contentProps,\n hideArrow,\n portalProps,\n positionerProps,\n trigger,\n ...props\n}: TooltipProps): ReactElement {\n return (\n <TooltipRoot {...props}>\n <TooltipTrigger>{trigger}</TooltipTrigger>\n <Portal {...portalProps}>\n <TooltipPositioner {...positionerProps}>\n <TooltipContent {...contentProps}>\n {hideArrow ? null : (\n <TooltipArrow {...arrowProps}>\n <TooltipArrowTip {...arrowTipProps} />\n </TooltipArrow>\n )}\n {children}\n </TooltipContent>\n </TooltipPositioner>\n </Portal>\n </TooltipRoot>\n )\n}\n","import {Tooltip as SimpleTooltip} from \"./tooltip\"\nimport {TooltipArrow, type TooltipArrowProps} from \"./tooltip-arrow\"\nimport {TooltipArrowTip, type TooltipArrowTipProps} from \"./tooltip-arrow-tip\"\nimport {TooltipContent, type TooltipContentProps} from \"./tooltip-content\"\nimport {\n TooltipPositioner,\n type TooltipPositionerProps,\n} from \"./tooltip-positioner\"\nimport {TooltipRoot, type TooltipRootProps} from \"./tooltip-root\"\nimport {TooltipTrigger, type TooltipTriggerProps} from \"./tooltip-trigger\"\n\nexport type {\n TooltipArrowTipProps,\n TooltipArrowProps,\n TooltipContentProps,\n TooltipPositionerProps,\n TooltipRootProps,\n TooltipTriggerProps,\n}\n\ntype TooltipComponent = typeof SimpleTooltip & {\n /**\n * The container that positions the arrow. This element renders the\n * `<Tooltip.ArrowTip/>` by default if no children are provided.\n */\n Arrow: typeof TooltipArrow\n /**\n * The arrow tip element. Renders a `<div>` element by default.\n */\n ArrowTip: typeof TooltipArrowTip\n /**\n * The content of the tooltip which is displayed relative to the trigger. Renders a\n * `<div>` element by default.\n */\n Content: typeof TooltipContent\n /**\n * The element that positions the tooltip content relative to the trigger. Renders\n * a `<div>` element by default.\n */\n Positioner: typeof TooltipPositioner\n /**\n * The main component that wraps the trigger and the content elements. Doesn't\n * render anything by itself.\n */\n Root: typeof TooltipRoot\n /**\n * A trigger that opens the tooltip. Doesn't render anything by itself. Applies\n * event handlers and attributes to the child element.\n */\n Trigger: typeof TooltipTrigger\n}\n\nexport const Tooltip: TooltipComponent = SimpleTooltip as TooltipComponent\n\nTooltip.ArrowTip = TooltipArrowTip\nTooltip.Arrow = TooltipArrow\nTooltip.Content = TooltipContent\nTooltip.Positioner = TooltipPositioner\nTooltip.Root = TooltipRoot\nTooltip.Trigger = TooltipTrigger\n"],"mappings":"ukBAkBA,SAAO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EAAA,IAAAP,EAAAO,EAAA,IAAAI,EAAAJ,EAAA,IAAAK,GAAAA,EAAAL,EAAA,IAAA,IAAAM,EAAAN,EAAA,MAAAJ,GAAAI,EAAA,MAAAK,GARnBC,EAAA,EAAC,kBAAD,CAAkB,GAAKV,WACrBS,EAQkB,CAAA,CAAAL,EAAA,IAAAJ,EAAAI,EAAA,IAAAK,EAAAL,EAAA,IAAAM,GAAAA,EAAAN,EAAA,IAAA,IAAAO,EAAAP,EAAA,MAAAL,GAAAK,EAAA,MAAAM,GAVtBC,EAAA,EAAC,EAAD,CAAO,GAAKZ,WACVW,EAUO,CAAA,CAAAN,EAAA,IAAAL,EAAAK,EAAA,IAAAM,EAAAN,EAAA,IAAAO,GAAAA,EAAAP,EAAA,IAAA,IAAAQ,EACG,OADHR,EAAA,MAAAE,GAAAF,EAAA,MAAAG,GAAAH,EAAA,MAAAO,GAbXC,EAAA,EAAC,YAAD,CAAY,GAAKN,WAAjB,CACEC,EACAI,EAYY,GAAAP,EAAA,IAAAE,EAAAF,EAAA,IAAAG,EAAAH,EAAA,IAAAO,EAAAP,EAAA,IAAAQ,GAAAA,EAAAR,EAAA,IAddQ,ECrCJ,IAAaC,EAA4BC,UAEzCD,EAAQgB,SAAWZ,gBACnBJ,EAAQe,MAAQb,aAChBF,EAAQiB,QAAUX,eAClBN,EAAQkB,WAAaV,kBACrBR,EAAQmB,KAAOT,YACfV,EAAQoB,QAAUR"}
|
package/dist/tree/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{c as _c}from"react/compiler-runtime";import{jsx}from"react/jsx-runtime";import{Collapsible}from"@qualcomm-ui/react/collapsible";import{useTreeBranch}from"@qualcomm-ui/react-core/tree";import{mergeProps}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext}from"@qualcomm-ui/react-core/context";var[QdsTreeContextProvider,useQdsTreeContext]=createGuardedContext({hookName:"useQdsTreeContext",providerName:"<QdsTreeContextProvider>",strict:!0});function TreeBranch(props){let $=_c(4),qdsContext=useQdsTreeContext(),treeBranchProps=useTreeBranch(),t0;if($[0]!==props||$[1]!==qdsContext||$[2]!==treeBranchProps){let mergedProps=mergeProps(qdsContext.getBranchBindings(),treeBranchProps,props);t0=jsx(Collapsible.Root,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=treeBranchProps,$[3]=t0}else t0=$[3];return t0}import{c as _c2}from"react/compiler-runtime";import{jsx as jsx2}from"react/jsx-runtime";import{Collapsible as Collapsible2}from"@qualcomm-ui/react/collapsible";import{useTreeBranchContent}from"@qualcomm-ui/react-core/tree";import{mergeProps as mergeProps2}from"@qualcomm-ui/utils/merge-props";function TreeBranchContent(props){let $=_c2(4),qdsContext=useQdsTreeContext(),treeBranchContentProps=useTreeBranchContent(),t0;if($[0]!==props||$[1]!==qdsContext||$[2]!==treeBranchContentProps){let mergedProps=mergeProps2(qdsContext.getBranchContentBindings(),treeBranchContentProps,props);t0=jsx2(Collapsible2.Content,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=treeBranchContentProps,$[3]=t0}else t0=$[3];return t0}import{c as _c3}from"react/compiler-runtime";import{jsx as jsx3}from"react/jsx-runtime";import{CoreTree}from"@qualcomm-ui/react-core/tree";import{mergeProps as mergeProps3}from"@qualcomm-ui/utils/merge-props";function TreeBranchIndentGuide(props){let $=_c3(3),qdsContext=useQdsTreeContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps3(qdsContext.getBranchIndentGuideBindings(),props);t0=jsx3(CoreTree.BranchIndentGuide,{...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{CoreTree as CoreTree2}from"@qualcomm-ui/react-core/tree";import{mergeProps as mergeProps4}from"@qualcomm-ui/utils/merge-props";function TreeBranchNode(props){let $=_c4(3),qdsContext=useQdsTreeContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps4(qdsContext.getBranchNodeBindings(),props);t0=jsx4(CoreTree2.BranchNode,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{jsx as jsx5}from"react/jsx-runtime";import{ChevronRight}from"lucide-react";import{IconOrNode}from"@qualcomm-ui/react/icon";import{CoreTree as CoreTree3}from"@qualcomm-ui/react-core/tree";import{mergeProps as mergeProps5}from"@qualcomm-ui/utils/merge-props";function TreeBranchTrigger(t0){let{icon:t1,...props}=t0,icon=t1===void 0?ChevronRight:t1,qdsContext=useQdsTreeContext(),mergedProps=mergeProps5(qdsContext.getBranchTriggerBindings(),props);return jsx5(CoreTree3.BranchTrigger,{...mergedProps,children:jsx5(IconOrNode,{icon})})}import{c as _c5}from"react/compiler-runtime";import{renderProp}from"@qualcomm-ui/react-core/system";import{useTreeContext}from"@qualcomm-ui/react-core/tree";function TreeContext(t0){let $=_c5(3),{children}=t0,treeContext=useTreeContext(),t1;return $[0]!==children||$[1]!==treeContext?(t1=renderProp(children,treeContext),$[0]=children,$[1]=treeContext,$[2]=t1):t1=$[2],t1}import{c as _c6}from"react/compiler-runtime";import{jsx as jsx6}from"react/jsx-runtime";import{CoreTree as CoreTree4}from"@qualcomm-ui/react-core/tree";import{mergeProps as mergeProps6}from"@qualcomm-ui/utils/merge-props";function TreeLabel(props){let $=_c6(3),qdsContext=useQdsTreeContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps6(qdsContext.getLabelBindings(),props);t0=jsx6(CoreTree4.Label,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c7}from"react/compiler-runtime";import{jsx as jsx7}from"react/jsx-runtime";import{CoreTree as CoreTree5}from"@qualcomm-ui/react-core/tree";import{mergeProps as mergeProps7}from"@qualcomm-ui/utils/merge-props";function TreeLeafNode(props){let $=_c7(3),qdsContext=useQdsTreeContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps7(qdsContext.getLeafNodeBindings(),props);t0=jsx7(CoreTree5.LeafNode,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c8}from"react/compiler-runtime";import{jsx as jsx8}from"react/jsx-runtime";import{InlineIconButton}from"@qualcomm-ui/react/inline-icon-button";import{CoreTree as CoreTree6}from"@qualcomm-ui/react-core/tree";import{mergeProps as mergeProps8}from"@qualcomm-ui/utils/merge-props";function TreeNodeAction(props){let $=_c8(3),qdsContext=useQdsTreeContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps8(qdsContext.getNodeActionBindings(),props);t0=jsx8(CoreTree6.NodeAction,{render:jsx8(InlineIconButton,{icon:props.icon}),...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c9}from"react/compiler-runtime";import{jsx as jsx9}from"react/jsx-runtime";import"react";import{createQdsCheckmarkApi}from"@qualcomm-ui/qds-core/checkmark";import{CheckmarkCheckedIcon,CheckmarkIndeterminateIcon}from"@qualcomm-ui/react/checkmark";import{normalizeProps}from"@qualcomm-ui/react-core/machine";import{CoreTree as CoreTree7,useTreeNodeStateContext}from"@qualcomm-ui/react-core/tree";import{mergeProps as mergeProps9}from"@qualcomm-ui/utils/merge-props";function TreeNodeCheckbox(props){let $=_c9(7),nodeState=useTreeNodeStateContext(),t0=nodeState.checked===!0,t1=nodeState.checked==="indeterminate",t2;$[0]!==nodeState.disabled||$[1]!==t0||$[2]!==t1?(t2=createQdsCheckmarkApi({checked:t0,disabled:nodeState.disabled,indeterminate:t1,size:"md"},normalizeProps),$[0]=nodeState.disabled,$[1]=t0,$[2]=t1,$[3]=t2):t2=$[3];let api=t2,t3;if($[4]!==api||$[5]!==props){let mergedProps=mergeProps9(api.getRootBindings(),props);t3=jsx9(CoreTree7.NodeCheckbox,{...mergedProps,checked:props.checked||jsx9(CheckmarkCheckedIcon,{}),indeterminate:props.indeterminate||jsx9(CheckmarkIndeterminateIcon,{})}),$[4]=api,$[5]=props,$[6]=t3}else t3=$[6];return t3}import{c as _c10}from"react/compiler-runtime";import{jsx as jsx10}from"react/jsx-runtime";import{IconOrNode as IconOrNode2}from"@qualcomm-ui/react/icon";import{useTreeContext as useTreeContext2,useTreeNodePropsContext}from"@qualcomm-ui/react-core/tree";import{mergeProps as mergeProps10}from"@qualcomm-ui/utils/merge-props";function TreeNodeIcon(props){let $=_c10(5),treeContext=useTreeContext2(),nodeProps=useTreeNodePropsContext(),qdsTreeContext=useQdsTreeContext(),t0;if($[0]!==nodeProps||$[1]!==props||$[2]!==qdsTreeContext||$[3]!==treeContext){let mergedProps=mergeProps10(treeContext.getNodeIconBindings(nodeProps),qdsTreeContext.getNodeIconBindings(),props);t0=jsx10(IconOrNode2,{...mergedProps}),$[0]=nodeProps,$[1]=props,$[2]=qdsTreeContext,$[3]=treeContext,$[4]=t0}else t0=$[4];return t0}import{c as _c11}from"react/compiler-runtime";import{jsx as jsx11}from"react/jsx-runtime";import{CoreTree as CoreTree8}from"@qualcomm-ui/react-core/tree";import{mergeProps as mergeProps11}from"@qualcomm-ui/utils/merge-props";function TreeNodeIndicator(props){let $=_c11(3),qdsContext=useQdsTreeContext(),t0;if($[0]!==props||$[1]!==qdsContext){let mergedProps=mergeProps11(qdsContext.getNodeIndicatorBindings(),props);t0=jsx11(CoreTree8.NodeIndicator,{...mergedProps}),$[0]=props,$[1]=qdsContext,$[2]=t0}else t0=$[2];return t0}import{c as _c12}from"react/compiler-runtime";import{jsx as jsx12}from"react/jsx-runtime";import"react";import{TreeNodePropsContextProvider,TreeNodeStateContextProvider,useTreeContext as useTreeContext3}from"@qualcomm-ui/react-core/tree";function TreeNodeProvider(t0){let $=_c12(10),{children,indexPath,node}=t0,treeContext=useTreeContext3(),t1;$[0]!==indexPath||$[1]!==node?(t1={indexPath,node},$[0]=indexPath,$[1]=node,$[2]=t1):t1=$[2];let nodeProps=t1,t2;$[3]!==nodeProps||$[4]!==treeContext?(t2=treeContext.getNodeState(nodeProps),$[3]=nodeProps,$[4]=treeContext,$[5]=t2):t2=$[5];let nodeState=t2,t3;return $[6]!==children||$[7]!==nodeProps||$[8]!==nodeState?(t3=jsx12(TreeNodeStateContextProvider,{value:nodeState,children:jsx12(TreeNodePropsContextProvider,{value:nodeProps,children})}),$[6]=children,$[7]=nodeProps,$[8]=nodeState,$[9]=t3):t3=$[9],t3}import{jsx as jsx13}from"react/jsx-runtime";import{CoreTree as CoreTree9}from"@qualcomm-ui/react-core/tree";function TreeNodeText(props){return jsx13(CoreTree9.NodeText,{...props})}import{c as _c13}from"react/compiler-runtime";import{jsx as jsx14,jsxs}from"react/jsx-runtime";import{renderProp as renderProp2}from"@qualcomm-ui/react-core/system";import{useTreeContext as useTreeContext4}from"@qualcomm-ui/react-core/tree";function TreeNodes(props){let $=_c13(13),context=useTreeContext4(),{indentGuideProps,indexPath,node,renderBranch,renderLeaf,showIndentGuide}=props,{collection}=context,t0;$[0]!==collection||$[1]!==node?(t0=collection.getNodeChildren(node),$[0]=collection,$[1]=node,$[2]=t0):t0=$[2];let childNodes=t0,t1;return $[3]!==childNodes.length||$[4]!==collection||$[5]!==indentGuideProps||$[6]!==indexPath||$[7]!==node||$[8]!==props||$[9]!==renderBranch||$[10]!==renderLeaf||$[11]!==showIndentGuide?(t1=jsx14(TreeNodeProvider,{...props,children:childNodes.length?jsxs(TreeBranch,{children:[renderProp2(renderBranch,props),jsxs(TreeBranchContent,{children:[showIndentGuide?jsx14(TreeBranchIndentGuide,{...indentGuideProps}):null,collection.getNodeChildren(node).map((childNode,index)=>jsx14(TreeNodes,{indexPath:[...indexPath,index],node:childNode,renderBranch:props.renderBranch,renderLeaf:props.renderLeaf,showIndentGuide},collection.getNodeValue(childNode)))]})]}):renderProp2(renderLeaf,props)}),$[3]=childNodes.length,$[4]=collection,$[5]=indentGuideProps,$[6]=indexPath,$[7]=node,$[8]=props,$[9]=renderBranch,$[10]=renderLeaf,$[11]=showIndentGuide,$[12]=t1):t1=$[12],t1}import{c as _c14}from"react/compiler-runtime";import{jsx as jsx15}from"react/jsx-runtime";import"react";import{createQdsTreeApi}from"@qualcomm-ui/qds-core/tree";import{normalizeProps as normalizeProps2}from"@qualcomm-ui/react-core/machine";import{CoreTree as CoreTree10}from"@qualcomm-ui/react-core/tree";import{mergeProps as mergeProps12}from"@qualcomm-ui/utils/merge-props";function TreeRoot(t0){let $=_c14(4),t1;if($[0]!==t0){let{size,...props}=t0,t2;$[2]!==size?(t2=createQdsTreeApi({size},normalizeProps2),$[2]=size,$[3]=t2):t2=$[3];let qdsContext=t2,mergedProps=mergeProps12(qdsContext.getRootBindings(),props);t1=jsx15(QdsTreeContextProvider,{value:qdsContext,children:jsx15(CoreTree10.Root,{...mergedProps})}),$[0]=t0,$[1]=t1}else t1=$[1];return t1}var Tree={Branch:TreeBranch,BranchContent:TreeBranchContent,BranchIndentGuide:TreeBranchIndentGuide,BranchNode:TreeBranchNode,BranchTrigger:TreeBranchTrigger,Context:TreeContext,Label:TreeLabel,LeafNode:TreeLeafNode,NodeAction:TreeNodeAction,NodeCheckbox:TreeNodeCheckbox,NodeIcon:TreeNodeIcon,NodeIndicator:TreeNodeIndicator,NodeProvider:TreeNodeProvider,Nodes:TreeNodes,NodeText:TreeNodeText,Root:TreeRoot};export{QdsTreeContextProvider,Tree,useQdsTreeContext};
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use client;";import{c as e}from"react/compiler-runtime";import{Collapsible as t}from"@qualcomm-ui/react/collapsible";import{mergeProps as n}from"@qualcomm-ui/utils/merge-props";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{renderProp as a}from"@qualcomm-ui/react-core/system";import{ChevronRight as o}from"lucide-react";import{IconOrNode as s}from"@qualcomm-ui/react/icon";import"react";import{normalizeProps as c}from"@qualcomm-ui/react-core/machine";import{createGuardedContext as l}from"@qualcomm-ui/react-core/context";import{CheckmarkCheckedIcon as u,CheckmarkIndeterminateIcon as d}from"@qualcomm-ui/react/checkmark";import{createQdsCheckmarkApi as f}from"@qualcomm-ui/qds-core/checkmark";import{InlineIconButton as p}from"@qualcomm-ui/react/inline-icon-button";import{CoreTree as m,TreeNodePropsContextProvider as h,TreeNodeStateContextProvider as g,useTreeBranch as _,useTreeBranchContent as v,useTreeContext as y,useTreeNodePropsContext as b,useTreeNodeStateContext as x}from"@qualcomm-ui/react-core/tree";import{createQdsTreeApi as S}from"@qualcomm-ui/qds-core/tree";var[C,w]=l({hookName:`useQdsTreeContext`,providerName:`<QdsTreeContextProvider>`,strict:!0});function TreeBranch(i){let a=e(6),o=w(),s=_(),c;a[0]!==i||a[1]!==o||a[2]!==s?(c=n(o.getBranchBindings(),s,i),a[0]=i,a[1]=o,a[2]=s,a[3]=c):c=a[3];let l=c,u;return a[4]===l?u=a[5]:(u=r(t.Root,{...l}),a[4]=l,a[5]=u),u}function TreeBranchContent(i){let a=e(6),o=w(),s=v(),c;a[0]!==i||a[1]!==o||a[2]!==s?(c=n(o.getBranchContentBindings(),s,i),a[0]=i,a[1]=o,a[2]=s,a[3]=c):c=a[3];let l=c,u;return a[4]===l?u=a[5]:(u=r(t.Content,{...l}),a[4]=l,a[5]=u),u}function TreeBranchIndentGuide(t){let i=e(5),a=w(),o;i[0]!==t||i[1]!==a?(o=n(a.getBranchIndentGuideBindings(),t),i[0]=t,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=r(m.BranchIndentGuide,{...s}),i[3]=s,i[4]=c),c}function TreeBranchNode(t){let i=e(5),a=w(),o;i[0]!==t||i[1]!==a?(o=n(a.getBranchNodeBindings(),t),i[0]=t,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=r(m.BranchNode,{...s}),i[3]=s,i[4]=c),c}function TreeBranchTrigger(t){let i=e(5),{icon:a,...c}=t,l=a===void 0?o:a,u=n(w().getBranchTriggerBindings(),c),d;i[0]===l?d=i[1]:(d=r(s,{icon:l}),i[0]=l,i[1]=d);let f;return i[2]!==u||i[3]!==d?(f=r(m.BranchTrigger,{...u,children:d}),i[2]=u,i[3]=d,i[4]=f):f=i[4],f}function TreeContext(t){let n=e(3),{children:r}=t,i=y(),o;return n[0]!==r||n[1]!==i?(o=a(r,i),n[0]=r,n[1]=i,n[2]=o):o=n[2],o}function TreeLabel(t){let i=e(5),a=w(),o;i[0]!==t||i[1]!==a?(o=n(a.getLabelBindings(),t),i[0]=t,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=r(m.Label,{...s}),i[3]=s,i[4]=c),c}function TreeLeafNode(t){let i=e(5),a=w(),o;i[0]!==t||i[1]!==a?(o=n(a.getLeafNodeBindings(),t),i[0]=t,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=r(m.LeafNode,{...s}),i[3]=s,i[4]=c),c}function TreeNodeAction(t){let i=e(8),a=w(),o;i[0]!==t||i[1]!==a?(o=n(a.getNodeActionBindings(),t),i[0]=t,i[1]=a,i[2]=o):o=i[2];let s=o,c;i[3]===t.icon?c=i[4]:(c=r(p,{icon:t.icon}),i[3]=t.icon,i[4]=c);let l;return i[5]!==s||i[6]!==c?(l=r(m.NodeAction,{render:c,...s}),i[5]=s,i[6]=c,i[7]=l):l=i[7],l}function TreeNodeCheckbox(t){let i=e(15),a=x(),o=a.checked===!0,s=a.checked===`indeterminate`,l;i[0]!==a.disabled||i[1]!==o||i[2]!==s?(l=f({checked:o,disabled:a.disabled,indeterminate:s,size:`md`},c),i[0]=a.disabled,i[1]=o,i[2]=s,i[3]=l):l=i[3];let p=l,h;i[4]!==p||i[5]!==t?(h=n(p.getRootBindings(),t),i[4]=p,i[5]=t,i[6]=h):h=i[6];let g=h,_;i[7]===t.checked?_=i[8]:(_=t.checked||r(u,{}),i[7]=t.checked,i[8]=_);let v;i[9]===t.indeterminate?v=i[10]:(v=t.indeterminate||r(d,{}),i[9]=t.indeterminate,i[10]=v);let y;return i[11]!==g||i[12]!==_||i[13]!==v?(y=r(m.NodeCheckbox,{...g,checked:_,indeterminate:v}),i[11]=g,i[12]=_,i[13]=v,i[14]=y):y=i[14],y}function TreeNodeIcon(t){let i=e(7),a=y(),o=b(),c=w(),l;i[0]!==o||i[1]!==t||i[2]!==c||i[3]!==a?(l=n(a.getNodeIconBindings(o),c.getNodeIconBindings(),t),i[0]=o,i[1]=t,i[2]=c,i[3]=a,i[4]=l):l=i[4];let u=l,d;return i[5]===u?d=i[6]:(d=r(s,{...u}),i[5]=u,i[6]=d),d}function TreeNodeIndicator(t){let i=e(5),a=w(),o;i[0]!==t||i[1]!==a?(o=n(a.getNodeIndicatorBindings(),t),i[0]=t,i[1]=a,i[2]=o):o=i[2];let s=o,c;return i[3]===s?c=i[4]:(c=r(m.NodeIndicator,{...s}),i[3]=s,i[4]=c),c}function TreeNodeProvider(t){let n=e(12),{children:i,indexPath:a,node:o}=t,s=y(),c;n[0]!==a||n[1]!==o?(c={indexPath:a,node:o},n[0]=a,n[1]=o,n[2]=c):c=n[2];let l=c,u;n[3]!==l||n[4]!==s?(u=s.getNodeState(l),n[3]=l,n[4]=s,n[5]=u):u=n[5];let d=u,f;n[6]!==i||n[7]!==l?(f=r(h,{value:l,children:i}),n[6]=i,n[7]=l,n[8]=f):f=n[8];let p;return n[9]!==d||n[10]!==f?(p=r(g,{value:d,children:f}),n[9]=d,n[10]=f,n[11]=p):p=n[11],p}function TreeNodeText(t){let n=e(2),i;return n[0]===t?i=n[1]:(i=r(m.NodeText,{...t}),n[0]=t,n[1]=i),i}function TreeNodes(t){let n=e(16),o=y(),{indentGuideProps:s,indexPath:c,node:l,renderBranch:u,renderLeaf:d,showIndentGuide:f}=t,{collection:p}=o,m;n[0]!==p||n[1]!==l?(m=p.getNodeChildren(l),n[0]=p,n[1]=l,n[2]=m):m=n[2];let h=m,g;n[3]!==h.length||n[4]!==p||n[5]!==s||n[6]!==c||n[7]!==l||n[8]!==t||n[9]!==u||n[10]!==d||n[11]!==f?(g=h.length?i(TreeBranch,{children:[a(u,t),i(TreeBranchContent,{children:[f?r(TreeBranchIndentGuide,{...s}):null,p.getNodeChildren(l).map((e,n)=>r(TreeNodes,{indexPath:[...c,n],node:e,renderBranch:t.renderBranch,renderLeaf:t.renderLeaf,showIndentGuide:f},p.getNodeValue(e)))]})]}):a(d,t),n[3]=h.length,n[4]=p,n[5]=s,n[6]=c,n[7]=l,n[8]=t,n[9]=u,n[10]=d,n[11]=f,n[12]=g):g=n[12];let _;return n[13]!==t||n[14]!==g?(_=r(TreeNodeProvider,{...t,children:g}),n[13]=t,n[14]=g,n[15]=_):_=n[15],_}function TreeRoot(t){let i=e(10),a,o;if(i[0]!==t){let{size:e,...r}=t,s;i[3]===e?s=i[4]:(s=S({size:e},c),i[3]=e,i[4]=s),a=s,o=n(a.getRootBindings(),r),i[0]=t,i[1]=a,i[2]=o}else a=i[1],o=i[2];let s=o,l;i[5]===s?l=i[6]:(l=r(m.Root,{...s}),i[5]=s,i[6]=l);let u;return i[7]!==a||i[8]!==l?(u=r(C,{value:a,children:l}),i[7]=a,i[8]=l,i[9]=u):u=i[9],u}var T={Branch:TreeBranch,BranchContent:TreeBranchContent,BranchIndentGuide:TreeBranchIndentGuide,BranchNode:TreeBranchNode,BranchTrigger:TreeBranchTrigger,Context:TreeContext,Label:TreeLabel,LeafNode:TreeLeafNode,NodeAction:TreeNodeAction,NodeCheckbox:TreeNodeCheckbox,NodeIcon:TreeNodeIcon,NodeIndicator:TreeNodeIndicator,NodeProvider:TreeNodeProvider,Nodes:TreeNodes,NodeText:TreeNodeText,Root:TreeRoot};export{C as QdsTreeContextProvider,T as Tree,w as useQdsTreeContext};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
package/dist/tree/index.js.map
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/tree/tree-branch.tsx", "../../src/tree/qds-tree-context.ts", "../../src/tree/tree-branch-content.tsx", "../../src/tree/tree-branch-indent-guide.tsx", "../../src/tree/tree-branch-node.tsx", "../../src/tree/tree-branch-trigger.tsx", "../../src/tree/tree-context.tsx", "../../src/tree/tree-label.tsx", "../../src/tree/tree-leaf-node.tsx", "../../src/tree/tree-node-action.tsx", "../../src/tree/tree-node-checkbox.tsx", "../../src/tree/tree-node-icon.tsx", "../../src/tree/tree-node-indicator.tsx", "../../src/tree/tree-node-provider.tsx", "../../src/tree/tree-node-text.tsx", "../../src/tree/tree-nodes.tsx", "../../src/tree/tree-root.tsx", "../../src/tree/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { Collapsible } from \"@qualcomm-ui/react/collapsible\";\nimport { useTreeBranch } from \"@qualcomm-ui/react-core/tree\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsTreeContext } from \"./qds-tree-context\";\nexport function TreeBranch(props) {\n const $ = _c(4);\n const qdsContext = useQdsTreeContext();\n const treeBranchProps = useTreeBranch();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext || $[2] !== treeBranchProps) {\n const mergedProps = mergeProps(qdsContext.getBranchBindings(), treeBranchProps, props);\n t0 = jsx(Collapsible.Root, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = treeBranchProps;\n $[3] = t0;\n } else {\n t0 = $[3];\n }\n return t0;\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [QdsTreeContextProvider, useQdsTreeContext] = createGuardedContext({\n hookName: \"useQdsTreeContext\",\n providerName: \"<QdsTreeContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { Collapsible } from \"@qualcomm-ui/react/collapsible\";\nimport { useTreeBranchContent } from \"@qualcomm-ui/react-core/tree\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsTreeContext } from \"./qds-tree-context\";\nexport function TreeBranchContent(props) {\n const $ = _c(4);\n const qdsContext = useQdsTreeContext();\n const treeBranchContentProps = useTreeBranchContent();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext || $[2] !== treeBranchContentProps) {\n const mergedProps = mergeProps(qdsContext.getBranchContentBindings(), treeBranchContentProps, props);\n t0 = jsx(Collapsible.Content, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = treeBranchContentProps;\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 { CoreTree } from \"@qualcomm-ui/react-core/tree\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsTreeContext } from \"./qds-tree-context\";\nexport function TreeBranchIndentGuide(props) {\n const $ = _c(3);\n const qdsContext = useQdsTreeContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getBranchIndentGuideBindings(), props);\n t0 = jsx(CoreTree.BranchIndentGuide, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreTree } from \"@qualcomm-ui/react-core/tree\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsTreeContext } from \"./qds-tree-context\";\nexport function TreeBranchNode(props) {\n const $ = _c(3);\n const qdsContext = useQdsTreeContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getBranchNodeBindings(), props);\n t0 = jsx(CoreTree.BranchNode, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { ChevronRight } from \"lucide-react\";\nimport { IconOrNode } from \"@qualcomm-ui/react/icon\";\nimport { CoreTree } from \"@qualcomm-ui/react-core/tree\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsTreeContext } from \"./qds-tree-context\";\nexport function TreeBranchTrigger(t0) {\n const {\n icon: t1,\n ...props\n } = t0;\n const icon = t1 === undefined ? ChevronRight : t1;\n const qdsContext = useQdsTreeContext();\n const mergedProps = mergeProps(qdsContext.getBranchTriggerBindings(), props);\n return jsx(CoreTree.BranchTrigger, {\n ...mergedProps,\n children: jsx(IconOrNode, {\n icon\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { renderProp } from \"@qualcomm-ui/react-core/system\";\nimport { useTreeContext } from \"@qualcomm-ui/react-core/tree\";\nexport function TreeContext(t0) {\n const $ = _c(3);\n const {\n children\n } = t0;\n const treeContext = useTreeContext();\n let t1;\n if ($[0] !== children || $[1] !== treeContext) {\n t1 = renderProp(children, treeContext);\n $[0] = children;\n $[1] = treeContext;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n return t1;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreTree } from \"@qualcomm-ui/react-core/tree\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsTreeContext } from \"./qds-tree-context\";\nexport function TreeLabel(props) {\n const $ = _c(3);\n const qdsContext = useQdsTreeContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getLabelBindings(), props);\n t0 = jsx(CoreTree.Label, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreTree } from \"@qualcomm-ui/react-core/tree\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsTreeContext } from \"./qds-tree-context\";\nexport function TreeLeafNode(props) {\n const $ = _c(3);\n const qdsContext = useQdsTreeContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getLeafNodeBindings(), props);\n t0 = jsx(CoreTree.LeafNode, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { InlineIconButton } from \"@qualcomm-ui/react/inline-icon-button\";\nimport { CoreTree } from \"@qualcomm-ui/react-core/tree\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsTreeContext } from \"./qds-tree-context\";\nexport function TreeNodeAction(props) {\n const $ = _c(3);\n const qdsContext = useQdsTreeContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getNodeActionBindings(), props);\n t0 = jsx(CoreTree.NodeAction, {\n render: jsx(InlineIconButton, {\n icon: props.icon\n }),\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { createQdsCheckmarkApi } from \"@qualcomm-ui/qds-core/checkmark\";\nimport { CheckmarkCheckedIcon, CheckmarkIndeterminateIcon } from \"@qualcomm-ui/react/checkmark\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { CoreTree, useTreeNodeStateContext } from \"@qualcomm-ui/react-core/tree\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function TreeNodeCheckbox(props) {\n const $ = _c(7);\n const nodeState = useTreeNodeStateContext();\n const t0 = nodeState.checked === true;\n const t1 = nodeState.checked === \"indeterminate\";\n let t2;\n if ($[0] !== nodeState.disabled || $[1] !== t0 || $[2] !== t1) {\n t2 = createQdsCheckmarkApi({\n checked: t0,\n disabled: nodeState.disabled,\n indeterminate: t1,\n size: \"md\"\n }, normalizeProps);\n $[0] = nodeState.disabled;\n $[1] = t0;\n $[2] = t1;\n $[3] = t2;\n } else {\n t2 = $[3];\n }\n const api = t2;\n let t3;\n if ($[4] !== api || $[5] !== props) {\n const mergedProps = mergeProps(api.getRootBindings(), props);\n t3 = jsx(CoreTree.NodeCheckbox, {\n ...mergedProps,\n checked: props.checked || jsx(CheckmarkCheckedIcon, {}),\n indeterminate: props.indeterminate || jsx(CheckmarkIndeterminateIcon, {})\n });\n $[4] = api;\n $[5] = props;\n $[6] = t3;\n } else {\n t3 = $[6];\n }\n return t3;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { IconOrNode } from \"@qualcomm-ui/react/icon\";\nimport { useTreeContext, useTreeNodePropsContext } from \"@qualcomm-ui/react-core/tree\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsTreeContext } from \"./qds-tree-context\";\nexport function TreeNodeIcon(props) {\n const $ = _c(5);\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const qdsTreeContext = useQdsTreeContext();\n let t0;\n if ($[0] !== nodeProps || $[1] !== props || $[2] !== qdsTreeContext || $[3] !== treeContext) {\n const mergedProps = mergeProps(treeContext.getNodeIconBindings(nodeProps), qdsTreeContext.getNodeIconBindings(), props);\n t0 = jsx(IconOrNode, {\n ...mergedProps\n });\n $[0] = nodeProps;\n $[1] = props;\n $[2] = qdsTreeContext;\n $[3] = treeContext;\n $[4] = t0;\n } else {\n t0 = $[4];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreTree } from \"@qualcomm-ui/react-core/tree\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsTreeContext } from \"./qds-tree-context\";\nexport function TreeNodeIndicator(props) {\n const $ = _c(3);\n const qdsContext = useQdsTreeContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getNodeIndicatorBindings(), props);\n t0 = jsx(CoreTree.NodeIndicator, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { TreeNodePropsContextProvider, TreeNodeStateContextProvider, useTreeContext } from \"@qualcomm-ui/react-core/tree\";\nexport function TreeNodeProvider(t0) {\n const $ = _c(10);\n const {\n children,\n indexPath,\n node\n } = t0;\n const treeContext = useTreeContext();\n let t1;\n if ($[0] !== indexPath || $[1] !== node) {\n t1 = {\n indexPath,\n node\n };\n $[0] = indexPath;\n $[1] = node;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n const nodeProps = t1;\n let t2;\n if ($[3] !== nodeProps || $[4] !== treeContext) {\n t2 = treeContext.getNodeState(nodeProps);\n $[3] = nodeProps;\n $[4] = treeContext;\n $[5] = t2;\n } else {\n t2 = $[5];\n }\n const nodeState = t2;\n let t3;\n if ($[6] !== children || $[7] !== nodeProps || $[8] !== nodeState) {\n t3 = jsx(TreeNodeStateContextProvider, {\n value: nodeState,\n children: jsx(TreeNodePropsContextProvider, {\n value: nodeProps,\n children\n })\n });\n $[6] = children;\n $[7] = nodeProps;\n $[8] = nodeState;\n $[9] = t3;\n } else {\n t3 = $[9];\n }\n return t3;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { CoreTree } from \"@qualcomm-ui/react-core/tree\";\nexport function TreeNodeText(props) {\n return /* @__PURE__ */jsx(CoreTree.NodeText, {\n ...props\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nimport { renderProp } from \"@qualcomm-ui/react-core/system\";\nimport { useTreeContext } from \"@qualcomm-ui/react-core/tree\";\nimport { TreeBranch } from \"./tree-branch\";\nimport { TreeBranchContent } from \"./tree-branch-content\";\nimport { TreeBranchIndentGuide } from \"./tree-branch-indent-guide\";\nimport { TreeNodeProvider } from \"./tree-node-provider\";\nexport function TreeNodes(props) {\n const $ = _c(13);\n const context = useTreeContext();\n const {\n indentGuideProps,\n indexPath,\n node,\n renderBranch,\n renderLeaf,\n showIndentGuide\n } = props;\n const {\n collection\n } = context;\n let t0;\n if ($[0] !== collection || $[1] !== node) {\n t0 = collection.getNodeChildren(node);\n $[0] = collection;\n $[1] = node;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n const childNodes = t0;\n let t1;\n if ($[3] !== childNodes.length || $[4] !== collection || $[5] !== indentGuideProps || $[6] !== indexPath || $[7] !== node || $[8] !== props || $[9] !== renderBranch || $[10] !== renderLeaf || $[11] !== showIndentGuide) {\n t1 = jsx(TreeNodeProvider, {\n ...props,\n children: childNodes.length ? jsxs(TreeBranch, {\n children: [renderProp(renderBranch, props), jsxs(TreeBranchContent, {\n children: [showIndentGuide ? jsx(TreeBranchIndentGuide, {\n ...indentGuideProps\n }) : null, collection.getNodeChildren(node).map((childNode, index) => jsx(TreeNodes, {\n indexPath: [...indexPath, index],\n node: childNode,\n renderBranch: props.renderBranch,\n renderLeaf: props.renderLeaf,\n showIndentGuide\n }, collection.getNodeValue(childNode)))]\n })]\n }) : renderProp(renderLeaf, props)\n });\n $[3] = childNodes.length;\n $[4] = collection;\n $[5] = indentGuideProps;\n $[6] = indexPath;\n $[7] = node;\n $[8] = props;\n $[9] = renderBranch;\n $[10] = renderLeaf;\n $[11] = showIndentGuide;\n $[12] = t1;\n } else {\n t1 = $[12];\n }\n return t1;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { createQdsTreeApi } from \"@qualcomm-ui/qds-core/tree\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { CoreTree } from \"@qualcomm-ui/react-core/tree\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsTreeContextProvider } from \"./qds-tree-context\";\nexport function TreeRoot(t0) {\n const $ = _c(4);\n let t1;\n if ($[0] !== t0) {\n const {\n size,\n ...props\n } = t0;\n let t2;\n if ($[2] !== size) {\n t2 = createQdsTreeApi({\n size\n }, normalizeProps);\n $[2] = size;\n $[3] = t2;\n } else {\n t2 = $[3];\n }\n const qdsContext = t2;\n const mergedProps = mergeProps(qdsContext.getRootBindings(), props);\n t1 = jsx(QdsTreeContextProvider, {\n value: qdsContext,\n children: jsx(CoreTree.Root, {\n ...mergedProps\n })\n });\n $[0] = t0;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n return t1;\n}", "import { TreeBranch } from \"./tree-branch\";\nimport { TreeBranchContent } from \"./tree-branch-content\";\nimport { TreeBranchIndentGuide } from \"./tree-branch-indent-guide\";\nimport { TreeBranchNode } from \"./tree-branch-node\";\nimport { TreeBranchTrigger } from \"./tree-branch-trigger\";\nimport { TreeContext } from \"./tree-context\";\nimport { TreeLabel } from \"./tree-label\";\nimport { TreeLeafNode } from \"./tree-leaf-node\";\nimport { TreeNodeAction } from \"./tree-node-action\";\nimport { TreeNodeCheckbox } from \"./tree-node-checkbox\";\nimport { TreeNodeIcon } from \"./tree-node-icon\";\nimport { TreeNodeIndicator } from \"./tree-node-indicator\";\nimport { TreeNodeProvider } from \"./tree-node-provider\";\nimport { TreeNodeText } from \"./tree-node-text\";\nimport { TreeNodes } from \"./tree-nodes\";\nimport { TreeRoot } from \"./tree-root\";\nexport * from \"./qds-tree-context\";\nexport const Tree = {\n Branch: TreeBranch,\n BranchContent: TreeBranchContent,\n BranchIndentGuide: TreeBranchIndentGuide,\n BranchNode: TreeBranchNode,\n BranchTrigger: TreeBranchTrigger,\n Context: TreeContext,\n Label: TreeLabel,\n LeafNode: TreeLeafNode,\n NodeAction: TreeNodeAction,\n NodeCheckbox: TreeNodeCheckbox,\n Node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AAwB,CAC/B,MAAO,WACP,SAAUA,MAAIC,WAAS,KAAM,CAC3B,GAAG,WACL,CAAC,CACH,CAAC,EACD,EAAE,CAAC,EAAI,GACP,EAAE,CAAC,EAAI,EACT,MACE,GAAK,EAAE,CAAC,EAEV,OAAO,EACT,CCvBO,IAAM,KAAO,CAClB,OAAQ,WACR,cAAe,kBACf,kBAAmB,sBACnB,WAAY,eACZ,cAAe,kBACf,QAAS,YACT,MAAO,UACP,SAAU,aACV,WAAY,eACZ,aAAc,iBACd,SAAU,aACV,cAAe,kBACf,aAAc,iBACd,MAAO,UACP,SAAU,aACV,KAAM,QACR",
|
|
6
|
-
"names": ["_c", "jsx", "Collapsible", "mergeProps", "_c", "mergeProps", "jsx", "Collapsible", "_c", "jsx", "mergeProps", "_c", "mergeProps", "jsx", "_c", "jsx", "CoreTree", "mergeProps", "_c", "mergeProps", "jsx", "CoreTree", "jsx", "CoreTree", "mergeProps", "mergeProps", "jsx", "CoreTree", "_c", "_c", "jsx", "CoreTree", "mergeProps", "_c", "mergeProps", "jsx", "CoreTree", "_c", "jsx", "CoreTree", "mergeProps", "_c", "mergeProps", "jsx", "CoreTree", "_c", "jsx", "CoreTree", "mergeProps", "_c", "mergeProps", "jsx", "CoreTree", "_c", "jsx", "CoreTree", "mergeProps", "_c", "jsx", "IconOrNode", "useTreeContext", "mergeProps", "_c", "useTreeContext", "mergeProps", "jsx", "IconOrNode", "_c", "jsx", "CoreTree", "mergeProps", "_c", "mergeProps", "jsx", "CoreTree", "_c", "jsx", "useTreeContext", "jsx", "CoreTree", "_c", "jsx", "renderProp", "useTreeContext", "_c", "useTreeContext", "jsx", "renderProp", "_c", "jsx", "normalizeProps", "CoreTree", "mergeProps", "_c", "normalizeProps", "mergeProps", "jsx", "CoreTree"]
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","names":["QdsTreeApi","createGuardedContext","QdsTreeContextProvider","useQdsTreeContext","hookName","providerName","strict","ReactElement","ReactNode","Collapsible","ElementRenderProp","useTreeBranch","mergeProps","useQdsTreeContext","TreeBranchProps","children","TreeBranch","props","$","_c","qdsContext","treeBranchProps","t0","getBranchBindings","mergedProps","t1","ReactElement","ReactNode","Collapsible","ElementRenderProp","useTreeBranchContent","mergeProps","useQdsTreeContext","TreeBranchContentProps","children","TreeBranchContent","props","$","_c","qdsContext","treeBranchContentProps","t0","getBranchContentBindings","mergedProps","t1","ReactElement","CoreTree","CoreTreeBranchIndentGuideProps","mergeProps","useQdsTreeContext","TreeBranchIndentGuideProps","TreeBranchIndentGuide","props","$","_c","qdsContext","t0","getBranchIndentGuideBindings","mergedProps","t1","ReactElement","CoreTree","CoreTreeBranchNodeProps","mergeProps","useQdsTreeContext","TreeBranchNodeProps","TreeBranchNode","props","$","_c","qdsContext","t0","getBranchNodeBindings","mergedProps","t1","ReactElement","ChevronRight","IconOrNode","LucideIconOrNode","CoreTree","CoreTreeBranchTriggerProps","mergeProps","useQdsTreeContext","TreeBranchTriggerProps","icon","TreeBranchTrigger","t0","$","_c","t1","props","undefined","qdsContext","mergedProps","getBranchTriggerBindings","t2","t3","ReactNode","TreeApi","renderProp","RenderProp","useTreeContext","TreeNode","TreeContextProps","children","T","TreeContext","t0","$","_c","treeContext","t1","ReactElement","CoreTree","CoreTreeLabelProps","mergeProps","useQdsTreeContext","TreeLabelProps","TreeLabel","props","$","_c","qdsContext","t0","getLabelBindings","mergedProps","t1","ReactElement","CoreTree","CoreTreeLeafNodeProps","mergeProps","useQdsTreeContext","TreeLeafNodeProps","TreeLeafNode","props","$","_c","qdsContext","t0","getLeafNodeBindings","mergedProps","t1","ReactElement","InlineIconButton","InlineIconButtonProps","CoreTree","CoreTreeNodeActionProps","mergeProps","useQdsTreeContext","TreeNodeActionProps","Pick","TreeNodeAction","props","$","_c","qdsContext","t0","getNodeActionBindings","mergedProps","t1","icon","t2","ReactElement","ReactNode","useMemo","createQdsCheckmarkApi","CheckmarkCheckedIcon","CheckmarkIndeterminateIcon","normalizeProps","CoreTree","CoreTreeNodeCheckboxProps","useTreeNodeStateContext","mergeProps","TreeNodeCheckboxProps","checked","indeterminate","TreeNodeCheckbox","props","$","_c","nodeState","t0","t1","t2","disabled","size","api","t3","getRootBindings","mergedProps","t4","t5","t6","ReactElement","IconOrNode","LucideIconOrNode","ElementRenderProp","useTreeContext","useTreeNodePropsContext","mergeProps","useQdsTreeContext","TreeNodeIconProps","icon","TreeNodeIcon","props","$","_c","treeContext","nodeProps","qdsTreeContext","t0","getNodeIconBindings","mergedProps","t1","ReactElement","CoreTree","CoreTreeNodeIndicatorProps","mergeProps","useQdsTreeContext","TreeNodeIndicatorProps","TreeNodeIndicator","props","$","_c","qdsContext","t0","getNodeIndicatorBindings","mergedProps","t1","ReactElement","ReactNode","useMemo","NodeProps","TreeNodePropsContextProvider","TreeNodeStateContextProvider","useTreeContext","TreeNode","TreeNodeProviderProps","children","node","T","TreeNodeProvider","t0","$","_c","indexPath","treeContext","t1","nodeProps","t2","getNodeState","nodeState","t3","t4","ReactElement","CoreTree","CoreTreeNodeTextProps","TreeNodeTextProps","TreeNodeText","props","$","_c","t0","ReactElement","renderProp","RenderProp","useTreeContext","TreeBranch","TreeBranchContent","TreeBranchIndentGuide","TreeBranchIndentGuideProps","TreeNodeProvider","TreeNodeProviderProps","TreeNodesProps","Omit","T","indentGuideProps","renderBranch","renderLeaf","showIndentGuide","TreeNodes","props","$","_c","context","indexPath","node","collection","t0","getNodeChildren","childNodes","t1","length","map","childNode","index","getNodeValue","t2","ReactElement","useMemo","createQdsTreeApi","QdsTreeApiProps","normalizeProps","CoreTree","CoreTreeRootProps","TreeNode","mergeProps","QdsTreeContextProvider","TreeRootProps","T","TreeRoot","t0","$","_c","qdsContext","t1","size","props","t2","getRootBindings","mergedProps","t3","TreeBranch","TreeBranchProps","TreeBranchContent","TreeBranchContentProps","TreeBranchIndentGuide","TreeBranchIndentGuideProps","TreeBranchNode","TreeBranchNodeProps","TreeBranchTrigger","TreeBranchTriggerProps","TreeContext","TreeContextProps","TreeLabel","TreeLabelProps","TreeLeafNode","TreeLeafNodeProps","TreeNodeAction","TreeNodeActionProps","TreeNodeCheckbox","TreeNodeCheckboxProps","TreeNodeIcon","TreeNodeIconProps","TreeNodeIndicator","TreeNodeIndicatorProps","TreeNodeProvider","TreeNodeProviderProps","TreeNodeText","TreeNodeTextProps","TreeNodes","TreeNodesProps","TreeRoot","TreeRootProps","TreeComponent","Branch","BranchContent","BranchIndentGuide","BranchNode","BranchTrigger","Context","Label","LeafNode","NodeAction","NodeCheckbox","NodeIcon","NodeIndicator","NodeProvider","Nodes","NodeText","Root","Tree"],"sources":["../../src/tree/qds-tree-context.ts","../../src/tree/tree-branch.tsx","../../src/tree/tree-branch-content.tsx","../../src/tree/tree-branch-indent-guide.tsx","../../src/tree/tree-branch-node.tsx","../../src/tree/tree-branch-trigger.tsx","../../src/tree/tree-context.tsx","../../src/tree/tree-label.tsx","../../src/tree/tree-leaf-node.tsx","../../src/tree/tree-node-action.tsx","../../src/tree/tree-node-checkbox.tsx","../../src/tree/tree-node-icon.tsx","../../src/tree/tree-node-indicator.tsx","../../src/tree/tree-node-provider.tsx","../../src/tree/tree-node-text.tsx","../../src/tree/tree-nodes.tsx","../../src/tree/tree-root.tsx","../../src/tree/index.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {QdsTreeApi} from \"@qualcomm-ui/qds-core/tree\"\nimport {createGuardedContext} from \"@qualcomm-ui/react-core/context\"\n\nexport const [QdsTreeContextProvider, useQdsTreeContext] =\n createGuardedContext<QdsTreeApi>({\n hookName: \"useQdsTreeContext\",\n providerName: \"<QdsTreeContextProvider>\",\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 {Collapsible} from \"@qualcomm-ui/react/collapsible\"\nimport type {ElementRenderProp} from \"@qualcomm-ui/react-core/system\"\nimport {useTreeBranch} from \"@qualcomm-ui/react-core/tree\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsTreeContext} from \"./qds-tree-context\"\n\nexport interface TreeBranchProps 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/**\n * Groups the branch node and its content element. Renders a `<div>` element by\n * default.\n */\nexport function TreeBranch(props: TreeBranchProps): ReactElement {\n const qdsContext = useQdsTreeContext()\n const treeBranchProps = useTreeBranch()\n const mergedProps = mergeProps(\n qdsContext.getBranchBindings(),\n treeBranchProps,\n props,\n )\n\n return <Collapsible.Root {...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 {Collapsible} from \"@qualcomm-ui/react/collapsible\"\nimport type {ElementRenderProp} from \"@qualcomm-ui/react-core/system\"\nimport {useTreeBranchContent} from \"@qualcomm-ui/react-core/tree\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsTreeContext} from \"./qds-tree-context\"\n\nexport interface TreeBranchContentProps 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/**\n * Container element for the branch node's children. Renders a `<div>` element by\n * default.\n */\nexport function TreeBranchContent(props: TreeBranchContentProps): ReactElement {\n const qdsContext = useQdsTreeContext()\n const treeBranchContentProps = useTreeBranchContent()\n const mergedProps = mergeProps(\n qdsContext.getBranchContentBindings(),\n treeBranchContentProps,\n props,\n )\n\n return <Collapsible.Content {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreTree,\n type CoreTreeBranchIndentGuideProps,\n} from \"@qualcomm-ui/react-core/tree\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsTreeContext} from \"./qds-tree-context\"\n\nexport interface TreeBranchIndentGuideProps extends CoreTreeBranchIndentGuideProps {}\n\n/**\n * Provides a visual guide to the indentation level of the branch's children.\n * Renders a `<div>` element by default.\n */\nexport function TreeBranchIndentGuide(\n props: TreeBranchIndentGuideProps,\n): ReactElement {\n const qdsContext = useQdsTreeContext()\n const mergedProps = mergeProps(\n qdsContext.getBranchIndentGuideBindings(),\n props,\n )\n\n return <CoreTree.BranchIndentGuide {...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 CoreTree,\n type CoreTreeBranchNodeProps,\n} from \"@qualcomm-ui/react-core/tree\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsTreeContext} from \"./qds-tree-context\"\n\nexport interface TreeBranchNodeProps extends CoreTreeBranchNodeProps {}\n\n/**\n * An interactive tree item with children. Renders a `<div>` element by default.\n */\nexport function TreeBranchNode(props: TreeBranchNodeProps): ReactElement {\n const qdsContext = useQdsTreeContext()\n const mergedProps = mergeProps(qdsContext.getBranchNodeBindings(), props)\n\n return <CoreTree.BranchNode {...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 {ChevronRight} from \"lucide-react\"\n\nimport {IconOrNode} from \"@qualcomm-ui/react/icon\"\nimport type {LucideIconOrNode} from \"@qualcomm-ui/react-core/lucide\"\nimport {\n CoreTree,\n type CoreTreeBranchTriggerProps,\n} from \"@qualcomm-ui/react-core/tree\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsTreeContext} from \"./qds-tree-context\"\n\nexport interface TreeBranchTriggerProps extends CoreTreeBranchTriggerProps {\n /**\n * @default ChevronRight\n */\n icon?: LucideIconOrNode\n}\n\n/**\n * Action that indicates whether a branch is expanded or collapsed. Renders a `<div>`\n * element by default.\n */\nexport function TreeBranchTrigger({\n icon = ChevronRight,\n ...props\n}: TreeBranchTriggerProps): ReactElement {\n const qdsContext = useQdsTreeContext()\n const mergedProps = mergeProps(qdsContext.getBranchTriggerBindings(), props)\n\n return (\n <CoreTree.BranchTrigger {...mergedProps}>\n <IconOrNode icon={icon} />\n </CoreTree.BranchTrigger>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactNode} from \"react\"\n\nimport type {TreeApi} from \"@qualcomm-ui/core/tree\"\nimport {renderProp, type RenderProp} from \"@qualcomm-ui/react-core/system\"\nimport {useTreeContext} from \"@qualcomm-ui/react-core/tree\"\nimport type {TreeNode} from \"@qualcomm-ui/utils/collection\"\n\nexport interface TreeContextProps<T extends TreeNode> {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children: RenderProp<TreeApi<T>>\n}\n\nexport function TreeContext<T extends TreeNode>({\n children,\n}: TreeContextProps<T>): ReactNode {\n const treeContext = useTreeContext<T>()\n return renderProp(children, treeContext)\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 {CoreTree, type CoreTreeLabelProps} from \"@qualcomm-ui/react-core/tree\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsTreeContext} from \"./qds-tree-context\"\n\nexport interface TreeLabelProps extends CoreTreeLabelProps {}\n\n/**\n * An optional accessible label for the tree. Renders a `<div>` element by default.\n */\nexport function TreeLabel(props: TreeLabelProps): ReactElement {\n const qdsContext = useQdsTreeContext()\n const mergedProps = mergeProps(qdsContext.getLabelBindings(), props)\n\n return <CoreTree.Label {...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 CoreTree,\n type CoreTreeLeafNodeProps,\n} from \"@qualcomm-ui/react-core/tree\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsTreeContext} from \"./qds-tree-context\"\n\nexport interface TreeLeafNodeProps extends CoreTreeLeafNodeProps {}\n\n/**\n * A childless tree item. Renders a `<div>` element by default.\n */\nexport function TreeLeafNode(props: TreeLeafNodeProps): ReactElement {\n const qdsContext = useQdsTreeContext()\n const mergedProps = mergeProps(qdsContext.getLeafNodeBindings(), props)\n\n return <CoreTree.LeafNode {...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 InlineIconButton,\n type InlineIconButtonProps,\n} from \"@qualcomm-ui/react/inline-icon-button\"\nimport {\n CoreTree,\n type CoreTreeNodeActionProps,\n} from \"@qualcomm-ui/react-core/tree\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsTreeContext} from \"./qds-tree-context\"\n\nexport interface TreeNodeActionProps\n extends\n CoreTreeNodeActionProps,\n Pick<InlineIconButtonProps, \"icon\" | \"size\"> {}\n\n/**\n * An action button within a tree item's interactive area. Renders a `<button>`\n * element by default.\n */\nexport function TreeNodeAction(props: TreeNodeActionProps): ReactElement {\n const qdsContext = useQdsTreeContext()\n const mergedProps = mergeProps(qdsContext.getNodeActionBindings(), props)\n\n return (\n <CoreTree.NodeAction\n render={<InlineIconButton icon={props.icon} />}\n {...mergedProps}\n />\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {type ReactElement, type ReactNode, useMemo} from \"react\"\n\nimport {createQdsCheckmarkApi} from \"@qualcomm-ui/qds-core/checkmark\"\nimport {\n CheckmarkCheckedIcon,\n CheckmarkIndeterminateIcon,\n} from \"@qualcomm-ui/react/checkmark\"\nimport {normalizeProps} from \"@qualcomm-ui/react-core/machine\"\nimport {\n CoreTree,\n type CoreTreeNodeCheckboxProps,\n useTreeNodeStateContext,\n} from \"@qualcomm-ui/react-core/tree\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nexport interface TreeNodeCheckboxProps extends CoreTreeNodeCheckboxProps {\n /**\n * React Node rendered when the node is checked.\n *\n * @default CheckmarkCheckedIcon\n */\n checked?: ReactNode\n\n /**\n * React Node rendered when the node is indeterminate.\n *\n * @default CheckmarkIndeterminateIcon\n */\n indeterminate?: ReactNode\n}\n\n/**\n * A checkbox control within a tree item. Renders a `<span>` element by default.\n */\nexport function TreeNodeCheckbox(props: TreeNodeCheckboxProps): ReactElement {\n const nodeState = useTreeNodeStateContext()\n\n const api = useMemo(\n () =>\n createQdsCheckmarkApi(\n {\n checked: nodeState.checked === true,\n disabled: nodeState.disabled,\n indeterminate: nodeState.checked === \"indeterminate\",\n size: \"md\",\n },\n normalizeProps,\n ),\n [nodeState.checked, nodeState.disabled],\n )\n const mergedProps = mergeProps(api.getRootBindings(), props)\n\n return (\n <CoreTree.NodeCheckbox\n {...mergedProps}\n checked={props.checked || <CheckmarkCheckedIcon />}\n indeterminate={props.indeterminate || <CheckmarkIndeterminateIcon />}\n />\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {IconOrNode} from \"@qualcomm-ui/react/icon\"\nimport type {LucideIconOrNode} from \"@qualcomm-ui/react-core/lucide\"\nimport type {ElementRenderProp} from \"@qualcomm-ui/react-core/system\"\nimport {\n useTreeContext,\n useTreeNodePropsContext,\n} from \"@qualcomm-ui/react-core/tree\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsTreeContext} from \"./qds-tree-context\"\n\nexport interface TreeNodeIconProps extends ElementRenderProp<\"span\"> {\n /**\n * lucide-react icon or JSX Element.\n */\n icon: LucideIconOrNode\n}\n\n/**\n * The icon for the tree item. Renders a `<span>` element by default.\n */\nexport function TreeNodeIcon(props: TreeNodeIconProps): ReactElement {\n const treeContext = useTreeContext()\n const nodeProps = useTreeNodePropsContext()\n const qdsTreeContext = useQdsTreeContext()\n const mergedProps = mergeProps(\n treeContext.getNodeIconBindings(nodeProps),\n qdsTreeContext.getNodeIconBindings(),\n props,\n )\n\n return <IconOrNode {...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 CoreTree,\n type CoreTreeNodeIndicatorProps,\n} from \"@qualcomm-ui/react-core/tree\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsTreeContext} from \"./qds-tree-context\"\n\nexport interface TreeNodeIndicatorProps extends CoreTreeNodeIndicatorProps {}\n\n/**\n * Indicates whether the tree item is selected. Renders a `<div>` element by default.\n */\nexport function TreeNodeIndicator(props: TreeNodeIndicatorProps): ReactElement {\n const qdsContext = useQdsTreeContext()\n const mergedProps = mergeProps(qdsContext.getNodeIndicatorBindings(), props)\n\n return <CoreTree.NodeIndicator {...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 type {NodeProps} from \"@qualcomm-ui/core/tree\"\nimport {\n TreeNodePropsContextProvider,\n TreeNodeStateContextProvider,\n useTreeContext,\n} from \"@qualcomm-ui/react-core/tree\"\nimport type {TreeNode} from \"@qualcomm-ui/utils/collection\"\n\nexport interface TreeNodeProviderProps<T> extends NodeProps {\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 tree node to apply context from.\n *\n * @inheritDoc\n */\n node: T\n}\n\nexport function TreeNodeProvider<T extends TreeNode = TreeNode>({\n children,\n indexPath,\n node,\n}: TreeNodeProviderProps<T>): ReactElement {\n const treeContext = useTreeContext()\n const nodeProps = useMemo(\n () => ({\n indexPath,\n node,\n }),\n [indexPath, node],\n )\n const nodeState = useMemo(\n () => treeContext.getNodeState(nodeProps),\n [nodeProps, treeContext],\n )\n return (\n <TreeNodeStateContextProvider value={nodeState}>\n <TreeNodePropsContextProvider value={nodeProps}>\n {children}\n </TreeNodePropsContextProvider>\n </TreeNodeStateContextProvider>\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 CoreTree,\n type CoreTreeNodeTextProps,\n} from \"@qualcomm-ui/react-core/tree\"\n\nexport interface TreeNodeTextProps extends CoreTreeNodeTextProps {}\n\n/**\n * The primary title of the tree item. Renders a `<span>` element by default.\n */\nexport function TreeNodeText(props: TreeNodeTextProps): ReactElement {\n return <CoreTree.NodeText {...props} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {renderProp, type RenderProp} from \"@qualcomm-ui/react-core/system\"\nimport {useTreeContext} from \"@qualcomm-ui/react-core/tree\"\n\nimport {TreeBranch} from \"./tree-branch\"\nimport {TreeBranchContent} from \"./tree-branch-content\"\nimport {\n TreeBranchIndentGuide,\n type TreeBranchIndentGuideProps,\n} from \"./tree-branch-indent-guide\"\nimport {\n TreeNodeProvider,\n type TreeNodeProviderProps,\n} from \"./tree-node-provider\"\n\nexport interface TreeNodesProps<T> extends Omit<\n TreeNodeProviderProps<T>,\n \"children\"\n> {\n /**\n * Props passed to the branch indent guide component. Only applicable when {@link\n * showIndentGuide} is true.\n *\n * @inheritDoc\n */\n indentGuideProps?: TreeBranchIndentGuideProps\n\n /**\n * {@link https://react-next.qui.qualcomm.com/render-props#render-prop Render Prop}\n * for the tree's branch items. Use this prop to supply the content of the branch\n * item like the text, indicator, or icon.\n *\n * @inheritDoc\n */\n renderBranch: RenderProp<TreeNodesProps<T>>\n\n /**\n * {@link https://react-next.qui.qualcomm.com/render-props#render-prop Render Prop}\n * for the tree's leaf items. Use this prop to supply the content of the leaf item\n * like the text, indicator, or icon.\n *\n * @inheritDoc\n */\n renderLeaf: RenderProp<TreeNodesProps<T>>\n\n /**\n * Whether to render the indent guide for branch child nodes.\n *\n * @default false\n */\n showIndentGuide?: boolean\n}\n\n/**\n * A helper component that renders recursive tree nodes. Doesn't render its own HTML\n * element.\n */\nexport function TreeNodes<\n T extends NonNullable<unknown> = NonNullable<unknown>,\n>(props: TreeNodesProps<T>): ReactElement {\n const context = useTreeContext()\n const {\n indentGuideProps,\n indexPath,\n node,\n renderBranch,\n renderLeaf,\n showIndentGuide,\n } = props\n const {collection} = context\n const childNodes = collection.getNodeChildren(node)\n\n return (\n <TreeNodeProvider {...props}>\n {childNodes.length ? (\n <TreeBranch>\n {renderProp(renderBranch, props)}\n\n <TreeBranchContent>\n {showIndentGuide ? (\n <TreeBranchIndentGuide {...indentGuideProps} />\n ) : null}\n {collection.getNodeChildren(node).map((childNode, index) => (\n <TreeNodes\n key={collection.getNodeValue(childNode)}\n indexPath={[...indexPath, index]}\n node={childNode}\n renderBranch={props.renderBranch}\n renderLeaf={props.renderLeaf}\n showIndentGuide={showIndentGuide}\n />\n ))}\n </TreeBranchContent>\n </TreeBranch>\n ) : (\n renderProp(renderLeaf, props)\n )}\n </TreeNodeProvider>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {type ReactElement, useMemo} from \"react\"\n\nimport {\n createQdsTreeApi,\n type QdsTreeApiProps,\n} from \"@qualcomm-ui/qds-core/tree\"\nimport {normalizeProps} from \"@qualcomm-ui/react-core/machine\"\nimport {CoreTree, type CoreTreeRootProps} from \"@qualcomm-ui/react-core/tree\"\nimport type {TreeNode} from \"@qualcomm-ui/utils/collection\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {QdsTreeContextProvider} from \"./qds-tree-context\"\n\nexport interface TreeRootProps<T extends TreeNode = TreeNode>\n extends CoreTreeRootProps<T>, QdsTreeApiProps {}\n\n/**\n * Groups all parts of the tree. Renders a `<div>` element by default.\n */\nexport function TreeRoot<T extends TreeNode = TreeNode>({\n size,\n ...props\n}: TreeRootProps<T>): ReactElement {\n const qdsContext = useMemo(\n () =>\n createQdsTreeApi(\n {\n size,\n },\n normalizeProps,\n ),\n [size],\n )\n\n const mergedProps = mergeProps(qdsContext.getRootBindings(), props)\n\n return (\n <QdsTreeContextProvider value={qdsContext}>\n <CoreTree.Root {...mergedProps} />\n </QdsTreeContextProvider>\n )\n}\n","import {TreeBranch, type TreeBranchProps} from \"./tree-branch\"\nimport {\n TreeBranchContent,\n type TreeBranchContentProps,\n} from \"./tree-branch-content\"\nimport {\n TreeBranchIndentGuide,\n type TreeBranchIndentGuideProps,\n} from \"./tree-branch-indent-guide\"\nimport {TreeBranchNode, type TreeBranchNodeProps} from \"./tree-branch-node\"\nimport {\n TreeBranchTrigger,\n type TreeBranchTriggerProps,\n} from \"./tree-branch-trigger\"\nimport {TreeContext, type TreeContextProps} from \"./tree-context\"\nimport {TreeLabel, type TreeLabelProps} from \"./tree-label\"\nimport {TreeLeafNode, type TreeLeafNodeProps} from \"./tree-leaf-node\"\nimport {TreeNodeAction, type TreeNodeActionProps} from \"./tree-node-action\"\nimport {\n TreeNodeCheckbox,\n type TreeNodeCheckboxProps,\n} from \"./tree-node-checkbox\"\nimport {TreeNodeIcon, type TreeNodeIconProps} from \"./tree-node-icon\"\nimport {\n TreeNodeIndicator,\n type TreeNodeIndicatorProps,\n} from \"./tree-node-indicator\"\nimport {\n TreeNodeProvider,\n type TreeNodeProviderProps,\n} from \"./tree-node-provider\"\nimport {TreeNodeText, type TreeNodeTextProps} from \"./tree-node-text\"\nimport {TreeNodes, type TreeNodesProps} from \"./tree-nodes\"\nimport {TreeRoot, type TreeRootProps} from \"./tree-root\"\n\nexport * from \"./qds-tree-context\"\n\nexport type {\n TreeBranchContentProps,\n TreeBranchIndentGuideProps,\n TreeBranchNodeProps,\n TreeBranchTriggerProps,\n TreeBranchProps,\n TreeContextProps,\n TreeLabelProps,\n TreeLeafNodeProps,\n TreeNodeActionProps,\n TreeNodeCheckboxProps,\n TreeNodeIconProps,\n TreeNodeIndicatorProps,\n TreeNodeProviderProps,\n TreeNodeTextProps,\n TreeNodesProps,\n TreeRootProps,\n}\n\ntype TreeComponent = {\n /**\n * Groups the branch node and its content element. Renders a `<div>` element by\n * default.\n */\n Branch: typeof TreeBranch\n /**\n * Container element for the branch node's children. Renders a `<div>` element by\n * default.\n */\n BranchContent: typeof TreeBranchContent\n /**\n * Provides a visual guide to the indentation level of the branch's children.\n * Renders a `<div>` element by default.\n */\n BranchIndentGuide: typeof TreeBranchIndentGuide\n /**\n * An interactive tree item with children. Renders a `<div>` element by default.\n */\n BranchNode: typeof TreeBranchNode\n /**\n * Action that indicates whether a branch is expanded or collapsed. Renders a\n * `<div>` element by default.\n */\n BranchTrigger: typeof TreeBranchTrigger\n Context: typeof TreeContext\n /**\n * An optional accessible label for the tree. Renders a `<div>` element by default.\n */\n Label: typeof TreeLabel\n /**\n * A childless tree item. Renders a `<div>` element by default.\n */\n LeafNode: typeof TreeLeafNode\n /**\n * An action button within a tree item's interactive area. Renders a `<button>`\n * element by default.\n */\n NodeAction: typeof TreeNodeAction\n /**\n * A checkbox control within a tree item. Renders a `<span>` element by default.\n */\n NodeCheckbox: typeof TreeNodeCheckbox\n /**\n * The icon for the tree item. Renders a `<span>` element by default.\n */\n NodeIcon: typeof TreeNodeIcon\n /**\n * Indicates whether the tree item is selected. Renders a `<div>` element by\n * default.\n */\n NodeIndicator: typeof TreeNodeIndicator\n NodeProvider: typeof TreeNodeProvider\n /**\n * A helper component that renders recursive tree nodes. Doesn't render its own\n * HTML element.\n */\n Nodes: typeof TreeNodes\n /**\n * The primary title of the tree item. Renders a `<span>` element by default.\n */\n NodeText: typeof TreeNodeText\n /**\n * Groups all parts of the tree. Renders a `<div>` element by default.\n */\n Root: typeof TreeRoot\n}\n\nexport const Tree: TreeComponent = {\n Branch: TreeBranch,\n BranchContent: TreeBranchContent,\n BranchIndentGuide: TreeBranchIndentGuide,\n BranchNode: TreeBranchNode,\n BranchTrigger: TreeBranchTrigger,\n Context: TreeContext,\n Label: TreeLabel,\n LeafNode: TreeLeafNode,\n NodeAction: TreeNodeAction,\n NodeCheckbox: TreeNodeCheckbox,\n NodeIcon: TreeNodeIcon,\n NodeIndicator: TreeNodeIndicator,\n NodeProvider: TreeNodeProvider,\n Nodes: TreeNodes,\n NodeText: TreeNodeText,\n Root: TreeRoot,\n}\n"],"mappings":"ikCAMA,GAAa,CAACE,EAAwBC,GACpCF,EAAiC,CAC/BG,SAAU,oBACVC,aAAc,2BACdC,OAAQ,GACT,CAAC,CCYJ,SAAOU,WAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CACLC,EAAmBP,GAAmB,CACtCQ,EAAwBV,GAAe,CAAAW,EAAAJ,EAAA,KAAAD,GAAAC,EAAA,KAAAE,GAAAF,EAAA,KAAAG,GACnBC,EAAAV,EAClBQ,EAAUG,mBAAoB,CAC9BF,EACAJ,EACD,CAAAC,EAAA,GAAAD,EAAAC,EAAA,GAAAE,EAAAF,EAAA,GAAAG,EAAAH,EAAA,GAAAI,GAAAA,EAAAJ,EAAA,GAJD,IAAAM,EAAoBF,EAInBG,EAE2C,OAF3CP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