@qualcomm-ui/react-core 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (441) hide show
  1. package/LICENSE.txt +31 -0
  2. package/dist/accordion/accordion-context.d.ts +5 -0
  3. package/dist/accordion/accordion-context.d.ts.map +1 -0
  4. package/dist/accordion/index.d.ts +3 -0
  5. package/dist/accordion/index.d.ts.map +1 -0
  6. package/dist/accordion/index.js +2 -0
  7. package/dist/accordion/index.js.map +7 -0
  8. package/dist/accordion/use-accordion.d.ts +10 -0
  9. package/dist/accordion/use-accordion.d.ts.map +1 -0
  10. package/dist/avatar/avatar-context.d.ts +3 -0
  11. package/dist/avatar/avatar-context.d.ts.map +1 -0
  12. package/dist/avatar/index.d.ts +3 -0
  13. package/dist/avatar/index.d.ts.map +1 -0
  14. package/dist/avatar/index.js +2 -0
  15. package/dist/avatar/index.js.map +7 -0
  16. package/dist/avatar/use-avatar.d.ts +7 -0
  17. package/dist/avatar/use-avatar.d.ts.map +1 -0
  18. package/dist/checkbox/checkbox-context.d.ts +5 -0
  19. package/dist/checkbox/checkbox-context.d.ts.map +1 -0
  20. package/dist/checkbox/index.d.ts +3 -0
  21. package/dist/checkbox/index.d.ts.map +1 -0
  22. package/dist/checkbox/index.js +2 -0
  23. package/dist/checkbox/index.js.map +7 -0
  24. package/dist/checkbox/use-checkbox.d.ts +13 -0
  25. package/dist/checkbox/use-checkbox.d.ts.map +1 -0
  26. package/dist/classes/index.d.ts +2 -0
  27. package/dist/classes/index.d.ts.map +1 -0
  28. package/dist/classes/index.js +2 -0
  29. package/dist/classes/index.js.map +7 -0
  30. package/dist/classes/state-classes.d.ts +4 -0
  31. package/dist/classes/state-classes.d.ts.map +1 -0
  32. package/dist/collapsible/collapsible-context.d.ts +3 -0
  33. package/dist/collapsible/collapsible-context.d.ts.map +1 -0
  34. package/dist/collapsible/core-collapsible.d.ts +43 -0
  35. package/dist/collapsible/core-collapsible.d.ts.map +1 -0
  36. package/dist/collapsible/index.d.ts +12 -0
  37. package/dist/collapsible/index.d.ts.map +1 -0
  38. package/dist/collapsible/index.js +2 -0
  39. package/dist/collapsible/index.js.map +7 -0
  40. package/dist/collection/index.d.ts +3 -0
  41. package/dist/collection/index.d.ts.map +1 -0
  42. package/dist/collection/index.js +2 -0
  43. package/dist/collection/index.js.map +7 -0
  44. package/dist/collection/use-async-list-collection.d.ts +38 -0
  45. package/dist/collection/use-async-list-collection.d.ts.map +1 -0
  46. package/dist/collection/use-list-collection.d.ts +88 -0
  47. package/dist/collection/use-list-collection.d.ts.map +1 -0
  48. package/dist/combobox/combobox-context.d.ts +3 -0
  49. package/dist/combobox/combobox-context.d.ts.map +1 -0
  50. package/dist/combobox/combobox-item-context.d.ts +3 -0
  51. package/dist/combobox/combobox-item-context.d.ts.map +1 -0
  52. package/dist/combobox/combobox-item-group-context.d.ts +3 -0
  53. package/dist/combobox/combobox-item-group-context.d.ts.map +1 -0
  54. package/dist/combobox/core-combobox.d.ts +62 -0
  55. package/dist/combobox/core-combobox.d.ts.map +1 -0
  56. package/dist/combobox/index.d.ts +26 -0
  57. package/dist/combobox/index.d.ts.map +1 -0
  58. package/dist/combobox/index.js +2 -0
  59. package/dist/combobox/index.js.map +7 -0
  60. package/dist/context/create-guarded-context.d.ts +19 -0
  61. package/dist/context/create-guarded-context.d.ts.map +1 -0
  62. package/dist/context/index.d.ts +3 -0
  63. package/dist/context/index.d.ts.map +1 -0
  64. package/dist/context/index.js +2 -0
  65. package/dist/context/index.js.map +7 -0
  66. package/dist/context/use-context-id.d.ts +29 -0
  67. package/dist/context/use-context-id.d.ts.map +1 -0
  68. package/dist/descendants/index.d.ts +2 -0
  69. package/dist/descendants/index.d.ts.map +1 -0
  70. package/dist/descendants/index.js +2 -0
  71. package/dist/descendants/index.js.map +7 -0
  72. package/dist/descendants/use-descendants.d.ts +10 -0
  73. package/dist/descendants/use-descendants.d.ts.map +1 -0
  74. package/dist/dialog/core-dialog.d.ts +81 -0
  75. package/dist/dialog/core-dialog.d.ts.map +1 -0
  76. package/dist/dialog/dialog-context.d.ts +3 -0
  77. package/dist/dialog/dialog-context.d.ts.map +1 -0
  78. package/dist/dialog/index.d.ts +17 -0
  79. package/dist/dialog/index.d.ts.map +1 -0
  80. package/dist/dialog/index.js +2 -0
  81. package/dist/dialog/index.js.map +7 -0
  82. package/dist/dom/get-valid-children.d.ts +9 -0
  83. package/dist/dom/get-valid-children.d.ts.map +1 -0
  84. package/dist/dom/index.d.ts +10 -0
  85. package/dist/dom/index.d.ts.map +1 -0
  86. package/dist/dom/index.js +2 -0
  87. package/dist/dom/index.js.map +7 -0
  88. package/dist/dom/is-action-element.d.ts +2 -0
  89. package/dist/dom/is-action-element.d.ts.map +1 -0
  90. package/dist/dom/use-clickable.d.ts +52 -0
  91. package/dist/dom/use-clickable.d.ts.map +1 -0
  92. package/dist/dom/use-event-listeners.d.ts +9 -0
  93. package/dist/dom/use-event-listeners.d.ts.map +1 -0
  94. package/dist/dom/use-grouped-children.d.ts +21 -0
  95. package/dist/dom/use-grouped-children.d.ts.map +1 -0
  96. package/dist/dom/use-intersection-observer.d.ts +72 -0
  97. package/dist/dom/use-intersection-observer.d.ts.map +1 -0
  98. package/dist/dom/use-mutation-observer.d.ts +12 -0
  99. package/dist/dom/use-mutation-observer.d.ts.map +1 -0
  100. package/dist/dom/use-real-shape.d.ts +9 -0
  101. package/dist/dom/use-real-shape.d.ts.map +1 -0
  102. package/dist/dom/use-sizes.d.ts +20 -0
  103. package/dist/dom/use-sizes.d.ts.map +1 -0
  104. package/dist/effects/index.d.ts +8 -0
  105. package/dist/effects/index.d.ts.map +1 -0
  106. package/dist/effects/index.js +2 -0
  107. package/dist/effects/index.js.map +7 -0
  108. package/dist/effects/use-debounce.d.ts +8 -0
  109. package/dist/effects/use-debounce.d.ts.map +1 -0
  110. package/dist/effects/use-effect-once.d.ts +2 -0
  111. package/dist/effects/use-effect-once.d.ts.map +1 -0
  112. package/dist/effects/use-enhanced-effect.d.ts +6 -0
  113. package/dist/effects/use-enhanced-effect.d.ts.map +1 -0
  114. package/dist/effects/use-event-callback.d.ts +8 -0
  115. package/dist/effects/use-event-callback.d.ts.map +1 -0
  116. package/dist/effects/use-on-destroy-when.d.ts +14 -0
  117. package/dist/effects/use-on-destroy-when.d.ts.map +1 -0
  118. package/dist/effects/use-on-destroy.d.ts +12 -0
  119. package/dist/effects/use-on-destroy.d.ts.map +1 -0
  120. package/dist/effects/use-safe-layout-effect.d.ts +3 -0
  121. package/dist/effects/use-safe-layout-effect.d.ts.map +1 -0
  122. package/dist/events/index.d.ts +2 -0
  123. package/dist/events/index.d.ts.map +1 -0
  124. package/dist/events/index.js +2 -0
  125. package/dist/events/index.js.map +7 -0
  126. package/dist/events/use-event.d.ts +12 -0
  127. package/dist/events/use-event.d.ts.map +1 -0
  128. package/dist/field/field-context.d.ts +5 -0
  129. package/dist/field/field-context.d.ts.map +1 -0
  130. package/dist/field/fieldset-context.d.ts +10 -0
  131. package/dist/field/fieldset-context.d.ts.map +1 -0
  132. package/dist/field/index.d.ts +5 -0
  133. package/dist/field/index.d.ts.map +1 -0
  134. package/dist/field/index.js +2 -0
  135. package/dist/field/index.js.map +7 -0
  136. package/dist/field/use-field.d.ts +9 -0
  137. package/dist/field/use-field.d.ts.map +1 -0
  138. package/dist/field/use-fieldset.d.ts +4 -0
  139. package/dist/field/use-fieldset.d.ts.map +1 -0
  140. package/dist/highlight/highlight-text.d.ts +6 -0
  141. package/dist/highlight/highlight-text.d.ts.map +1 -0
  142. package/dist/highlight/index.d.ts +3 -0
  143. package/dist/highlight/index.d.ts.map +1 -0
  144. package/dist/highlight/index.js +2 -0
  145. package/dist/highlight/index.js.map +7 -0
  146. package/dist/highlight/use-highlight.d.ts +6 -0
  147. package/dist/highlight/use-highlight.d.ts.map +1 -0
  148. package/dist/inline-notification/core-inline-notification.d.ts +25 -0
  149. package/dist/inline-notification/core-inline-notification.d.ts.map +1 -0
  150. package/dist/inline-notification/index.d.ts +11 -0
  151. package/dist/inline-notification/index.d.ts.map +1 -0
  152. package/dist/inline-notification/index.js +2 -0
  153. package/dist/inline-notification/index.js.map +7 -0
  154. package/dist/inline-notification/inline-notification-context.d.ts +3 -0
  155. package/dist/inline-notification/inline-notification-context.d.ts.map +1 -0
  156. package/dist/inline-notification/use-inline-notification.d.ts +4 -0
  157. package/dist/inline-notification/use-inline-notification.d.ts.map +1 -0
  158. package/dist/locale/index.d.ts +3 -0
  159. package/dist/locale/index.d.ts.map +1 -0
  160. package/dist/locale/index.js +2 -0
  161. package/dist/locale/index.js.map +7 -0
  162. package/dist/locale/locale-context.d.ts +3 -0
  163. package/dist/locale/locale-context.d.ts.map +1 -0
  164. package/dist/locale/use-filter.d.ts +7 -0
  165. package/dist/locale/use-filter.d.ts.map +1 -0
  166. package/dist/lorem-ipsum/index.d.ts +2 -0
  167. package/dist/lorem-ipsum/index.d.ts.map +1 -0
  168. package/dist/lorem-ipsum/index.js +2 -0
  169. package/dist/lorem-ipsum/index.js.map +7 -0
  170. package/dist/lorem-ipsum/lorem-ipsum.d.ts +10 -0
  171. package/dist/lorem-ipsum/lorem-ipsum.d.ts.map +1 -0
  172. package/dist/lucide/icon.types.d.ts +15 -0
  173. package/dist/lucide/icon.types.d.ts.map +1 -0
  174. package/dist/lucide/index.d.ts +2 -0
  175. package/dist/lucide/index.d.ts.map +1 -0
  176. package/dist/lucide/index.js +1 -0
  177. package/dist/lucide/index.js.map +7 -0
  178. package/dist/machine/index.d.ts +9 -0
  179. package/dist/machine/index.d.ts.map +1 -0
  180. package/dist/machine/index.js +2 -0
  181. package/dist/machine/index.js.map +7 -0
  182. package/dist/machine/normalize-props.d.ts +2 -0
  183. package/dist/machine/normalize-props.d.ts.map +1 -0
  184. package/dist/machine/use-bindable-id-collection.d.ts +3 -0
  185. package/dist/machine/use-bindable-id-collection.d.ts.map +1 -0
  186. package/dist/machine/use-bindable-id.d.ts +3 -0
  187. package/dist/machine/use-bindable-id.d.ts.map +1 -0
  188. package/dist/machine/use-bindable.d.ts +3 -0
  189. package/dist/machine/use-bindable.d.ts.map +1 -0
  190. package/dist/machine/use-machine.d.ts +11 -0
  191. package/dist/machine/use-machine.d.ts.map +1 -0
  192. package/dist/machine/use-optional-content-id.d.ts +11 -0
  193. package/dist/machine/use-optional-content-id.d.ts.map +1 -0
  194. package/dist/machine/use-prop.d.ts +15 -0
  195. package/dist/machine/use-prop.d.ts.map +1 -0
  196. package/dist/machine/use-track.d.ts +2 -0
  197. package/dist/machine/use-track.d.ts.map +1 -0
  198. package/dist/menu/index.d.ts +8 -0
  199. package/dist/menu/index.d.ts.map +1 -0
  200. package/dist/menu/index.js +2 -0
  201. package/dist/menu/index.js.map +7 -0
  202. package/dist/menu/menu-context.d.ts +16 -0
  203. package/dist/menu/menu-context.d.ts.map +1 -0
  204. package/dist/menu/menu-item-context.d.ts +4 -0
  205. package/dist/menu/menu-item-context.d.ts.map +1 -0
  206. package/dist/menu/menu-item-group-context.d.ts +4 -0
  207. package/dist/menu/menu-item-group-context.d.ts.map +1 -0
  208. package/dist/menu/menu-machine-context.d.ts +4 -0
  209. package/dist/menu/menu-machine-context.d.ts.map +1 -0
  210. package/dist/menu/menu-trigger-context.d.ts +3 -0
  211. package/dist/menu/menu-trigger-context.d.ts.map +1 -0
  212. package/dist/menu/use-menu-item.d.ts +38 -0
  213. package/dist/menu/use-menu-item.d.ts.map +1 -0
  214. package/dist/menu/use-menu.d.ts +22 -0
  215. package/dist/menu/use-menu.d.ts.map +1 -0
  216. package/dist/number-input/core-number-input.d.ts +57 -0
  217. package/dist/number-input/core-number-input.d.ts.map +1 -0
  218. package/dist/number-input/index.d.ts +16 -0
  219. package/dist/number-input/index.d.ts.map +1 -0
  220. package/dist/number-input/index.js +2 -0
  221. package/dist/number-input/index.js.map +7 -0
  222. package/dist/number-input/number-input-context.d.ts +3 -0
  223. package/dist/number-input/number-input-context.d.ts.map +1 -0
  224. package/dist/pagination/index.d.ts +3 -0
  225. package/dist/pagination/index.d.ts.map +1 -0
  226. package/dist/pagination/index.js +2 -0
  227. package/dist/pagination/index.js.map +7 -0
  228. package/dist/pagination/pagination-context.d.ts +3 -0
  229. package/dist/pagination/pagination-context.d.ts.map +1 -0
  230. package/dist/pagination/use-pagination.d.ts +25 -0
  231. package/dist/pagination/use-pagination.d.ts.map +1 -0
  232. package/dist/password-input/index.d.ts +3 -0
  233. package/dist/password-input/index.d.ts.map +1 -0
  234. package/dist/password-input/index.js +2 -0
  235. package/dist/password-input/index.js.map +7 -0
  236. package/dist/password-input/password-input-context.d.ts +3 -0
  237. package/dist/password-input/password-input-context.d.ts.map +1 -0
  238. package/dist/password-input/use-password-input.d.ts +12 -0
  239. package/dist/password-input/use-password-input.d.ts.map +1 -0
  240. package/dist/popover/index.d.ts +3 -0
  241. package/dist/popover/index.d.ts.map +1 -0
  242. package/dist/popover/index.js +2 -0
  243. package/dist/popover/index.js.map +7 -0
  244. package/dist/popover/popover-context.d.ts +3 -0
  245. package/dist/popover/popover-context.d.ts.map +1 -0
  246. package/dist/popover/use-popover.d.ts +12 -0
  247. package/dist/popover/use-popover.d.ts.map +1 -0
  248. package/dist/portal/index.d.ts +3 -0
  249. package/dist/portal/index.d.ts.map +1 -0
  250. package/dist/portal/index.js +2 -0
  251. package/dist/portal/index.js.map +7 -0
  252. package/dist/portal/portal-context.d.ts +10 -0
  253. package/dist/portal/portal-context.d.ts.map +1 -0
  254. package/dist/portal/portal.d.ts +19 -0
  255. package/dist/portal/portal.d.ts.map +1 -0
  256. package/dist/position/index.d.ts +2 -0
  257. package/dist/position/index.d.ts.map +1 -0
  258. package/dist/position/index.js +1 -0
  259. package/dist/position/index.js.map +7 -0
  260. package/dist/position/position.types.d.ts +2 -0
  261. package/dist/position/position.types.d.ts.map +1 -0
  262. package/dist/presence/index.d.ts +5 -0
  263. package/dist/presence/index.d.ts.map +1 -0
  264. package/dist/presence/index.js +2 -0
  265. package/dist/presence/index.js.map +7 -0
  266. package/dist/presence/presence-context.d.ts +3 -0
  267. package/dist/presence/presence-context.d.ts.map +1 -0
  268. package/dist/presence/presence.d.ts +11 -0
  269. package/dist/presence/presence.d.ts.map +1 -0
  270. package/dist/presence/render-strategy.d.ts +3 -0
  271. package/dist/presence/render-strategy.d.ts.map +1 -0
  272. package/dist/presence/use-presence.d.ts +18 -0
  273. package/dist/presence/use-presence.d.ts.map +1 -0
  274. package/dist/progress/core-progress.d.ts +53 -0
  275. package/dist/progress/core-progress.d.ts.map +1 -0
  276. package/dist/progress/index.d.ts +14 -0
  277. package/dist/progress/index.d.ts.map +1 -0
  278. package/dist/progress/index.js +2 -0
  279. package/dist/progress/index.js.map +7 -0
  280. package/dist/progress/progress-context.d.ts +3 -0
  281. package/dist/progress/progress-context.d.ts.map +1 -0
  282. package/dist/progress-ring/core-progress-ring.d.ts +45 -0
  283. package/dist/progress-ring/core-progress-ring.d.ts.map +1 -0
  284. package/dist/progress-ring/index.d.ts +14 -0
  285. package/dist/progress-ring/index.d.ts.map +1 -0
  286. package/dist/progress-ring/index.js +2 -0
  287. package/dist/progress-ring/index.js.map +7 -0
  288. package/dist/progress-ring/progress-ring-context.d.ts +3 -0
  289. package/dist/progress-ring/progress-ring-context.d.ts.map +1 -0
  290. package/dist/props/index.d.ts +2 -0
  291. package/dist/props/index.d.ts.map +1 -0
  292. package/dist/props/index.js +2 -0
  293. package/dist/props/index.js.map +7 -0
  294. package/dist/props/use-previous-props.d.ts +2 -0
  295. package/dist/props/use-previous-props.d.ts.map +1 -0
  296. package/dist/radio/index.d.ts +3 -0
  297. package/dist/radio/index.d.ts.map +1 -0
  298. package/dist/radio/index.js +2 -0
  299. package/dist/radio/index.js.map +7 -0
  300. package/dist/radio/radio-context.d.ts +4 -0
  301. package/dist/radio/radio-context.d.ts.map +1 -0
  302. package/dist/radio/use-radio.d.ts +14 -0
  303. package/dist/radio/use-radio.d.ts.map +1 -0
  304. package/dist/refs/compose-refs.d.ts +5 -0
  305. package/dist/refs/compose-refs.d.ts.map +1 -0
  306. package/dist/refs/get-child-ref.d.ts +4 -0
  307. package/dist/refs/get-child-ref.d.ts.map +1 -0
  308. package/dist/refs/index.d.ts +5 -0
  309. package/dist/refs/index.d.ts.map +1 -0
  310. package/dist/refs/index.js +2 -0
  311. package/dist/refs/index.js.map +7 -0
  312. package/dist/refs/set-ref.d.ts +15 -0
  313. package/dist/refs/set-ref.d.ts.map +1 -0
  314. package/dist/refs/use-merged-ref.d.ts +9 -0
  315. package/dist/refs/use-merged-ref.d.ts.map +1 -0
  316. package/dist/segmented-control/index.d.ts +3 -0
  317. package/dist/segmented-control/index.d.ts.map +1 -0
  318. package/dist/segmented-control/index.js +2 -0
  319. package/dist/segmented-control/index.js.map +7 -0
  320. package/dist/segmented-control/segmented-control-context.d.ts +3 -0
  321. package/dist/segmented-control/segmented-control-context.d.ts.map +1 -0
  322. package/dist/segmented-control/use-segmented-control.d.ts +7 -0
  323. package/dist/segmented-control/use-segmented-control.d.ts.map +1 -0
  324. package/dist/select/core-select.d.ts +29 -0
  325. package/dist/select/core-select.d.ts.map +1 -0
  326. package/dist/select/index.d.ts +16 -0
  327. package/dist/select/index.d.ts.map +1 -0
  328. package/dist/select/index.js +2 -0
  329. package/dist/select/index.js.map +7 -0
  330. package/dist/select/select-context.d.ts +4 -0
  331. package/dist/select/select-context.d.ts.map +1 -0
  332. package/dist/select/use-select.d.ts +7 -0
  333. package/dist/select/use-select.d.ts.map +1 -0
  334. package/dist/side-nav/core-side-nav.d.ts +39 -0
  335. package/dist/side-nav/core-side-nav.d.ts.map +1 -0
  336. package/dist/side-nav/index.d.ts +14 -0
  337. package/dist/side-nav/index.d.ts.map +1 -0
  338. package/dist/side-nav/index.js +2 -0
  339. package/dist/side-nav/index.js.map +7 -0
  340. package/dist/side-nav/side-nav-context.d.ts +3 -0
  341. package/dist/side-nav/side-nav-context.d.ts.map +1 -0
  342. package/dist/slider/index.d.ts +3 -0
  343. package/dist/slider/index.d.ts.map +1 -0
  344. package/dist/slider/index.js +2 -0
  345. package/dist/slider/index.js.map +7 -0
  346. package/dist/slider/slider-context.d.ts +4 -0
  347. package/dist/slider/slider-context.d.ts.map +1 -0
  348. package/dist/slider/use-slider.d.ts +22 -0
  349. package/dist/slider/use-slider.d.ts.map +1 -0
  350. package/dist/state/controlled-open.d.ts +23 -0
  351. package/dist/state/controlled-open.d.ts.map +1 -0
  352. package/dist/state/index.d.ts +4 -0
  353. package/dist/state/index.d.ts.map +1 -0
  354. package/dist/state/index.js +3 -0
  355. package/dist/state/index.js.map +7 -0
  356. package/dist/state/use-controlled-id.d.ts +8 -0
  357. package/dist/state/use-controlled-id.d.ts.map +1 -0
  358. package/dist/state/use-controlled-state.d.ts +35 -0
  359. package/dist/state/use-controlled-state.d.ts.map +1 -0
  360. package/dist/switch/index.d.ts +3 -0
  361. package/dist/switch/index.d.ts.map +1 -0
  362. package/dist/switch/index.js +2 -0
  363. package/dist/switch/index.js.map +7 -0
  364. package/dist/switch/switch-context.d.ts +3 -0
  365. package/dist/switch/switch-context.d.ts.map +1 -0
  366. package/dist/switch/use-switch.d.ts +9 -0
  367. package/dist/switch/use-switch.d.ts.map +1 -0
  368. package/dist/system/index.d.ts +5 -0
  369. package/dist/system/index.d.ts.map +1 -0
  370. package/dist/system/index.js +2 -0
  371. package/dist/system/index.js.map +7 -0
  372. package/dist/system/polymorphic-as-element.d.ts +20 -0
  373. package/dist/system/polymorphic-as-element.d.ts.map +1 -0
  374. package/dist/system/polymorphic-element.d.ts +13 -0
  375. package/dist/system/polymorphic-element.d.ts.map +1 -0
  376. package/dist/system/system.types.d.ts +69 -0
  377. package/dist/system/system.types.d.ts.map +1 -0
  378. package/dist/system/system.utils.d.ts +31 -0
  379. package/dist/system/system.utils.d.ts.map +1 -0
  380. package/dist/tabs/core-tabs.d.ts +60 -0
  381. package/dist/tabs/core-tabs.d.ts.map +1 -0
  382. package/dist/tabs/index.d.ts +16 -0
  383. package/dist/tabs/index.d.ts.map +1 -0
  384. package/dist/tabs/index.js +2 -0
  385. package/dist/tabs/index.js.map +7 -0
  386. package/dist/tabs/tab-prop-context.d.ts +3 -0
  387. package/dist/tabs/tab-prop-context.d.ts.map +1 -0
  388. package/dist/tabs/tabs-context.d.ts +3 -0
  389. package/dist/tabs/tabs-context.d.ts.map +1 -0
  390. package/dist/text-area/index.d.ts +2 -0
  391. package/dist/text-area/index.d.ts.map +1 -0
  392. package/dist/text-area/index.js +1 -0
  393. package/dist/text-area/index.js.map +7 -0
  394. package/dist/text-input/index.d.ts +3 -0
  395. package/dist/text-input/index.d.ts.map +1 -0
  396. package/dist/text-input/index.js +2 -0
  397. package/dist/text-input/index.js.map +7 -0
  398. package/dist/text-input/text-input-context.d.ts +3 -0
  399. package/dist/text-input/text-input-context.d.ts.map +1 -0
  400. package/dist/text-input/use-text-input.d.ts +10 -0
  401. package/dist/text-input/use-text-input.d.ts.map +1 -0
  402. package/dist/toast/core-toast.d.ts +35 -0
  403. package/dist/toast/core-toast.d.ts.map +1 -0
  404. package/dist/toast/index.d.ts +13 -0
  405. package/dist/toast/index.d.ts.map +1 -0
  406. package/dist/toast/index.js +2 -0
  407. package/dist/toast/index.js.map +7 -0
  408. package/dist/toast/toast-context.d.ts +3 -0
  409. package/dist/toast/toast-context.d.ts.map +1 -0
  410. package/dist/toast/toaster.d.ts +19 -0
  411. package/dist/toast/toaster.d.ts.map +1 -0
  412. package/dist/tooltip/index.d.ts +3 -0
  413. package/dist/tooltip/index.d.ts.map +1 -0
  414. package/dist/tooltip/index.js +2 -0
  415. package/dist/tooltip/index.js.map +7 -0
  416. package/dist/tooltip/tooltip-context.d.ts +3 -0
  417. package/dist/tooltip/tooltip-context.d.ts.map +1 -0
  418. package/dist/tooltip/use-tooltip.d.ts +9 -0
  419. package/dist/tooltip/use-tooltip.d.ts.map +1 -0
  420. package/dist/transitions/get-transition-props.d.ts +25 -0
  421. package/dist/transitions/get-transition-props.d.ts.map +1 -0
  422. package/dist/transitions/index.d.ts +3 -0
  423. package/dist/transitions/index.d.ts.map +1 -0
  424. package/dist/transitions/index.js +2 -0
  425. package/dist/transitions/index.js.map +7 -0
  426. package/dist/transitions/transitions.types.d.ts +119 -0
  427. package/dist/transitions/transitions.types.d.ts.map +1 -0
  428. package/dist/tree/core-tree.d.ts +63 -0
  429. package/dist/tree/core-tree.d.ts.map +1 -0
  430. package/dist/tree/index.d.ts +20 -0
  431. package/dist/tree/index.d.ts.map +1 -0
  432. package/dist/tree/index.js +2 -0
  433. package/dist/tree/index.js.map +7 -0
  434. package/dist/tree/tree-context.d.ts +7 -0
  435. package/dist/tree/tree-context.d.ts.map +1 -0
  436. package/dist/tree/tree-node-context.d.ts +4 -0
  437. package/dist/tree/tree-node-context.d.ts.map +1 -0
  438. package/dist/tree/use-tree.d.ts +5 -0
  439. package/dist/tree/use-tree.d.ts.map +1 -0
  440. package/dist/tsbuildinfo +1 -0
  441. package/package.json +50 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../src/toast/toaster.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,KAAK,YAAY,EAAQ,MAAM,OAAO,CAAA;AAE9C,OAAO,EAKL,KAAK,eAAe,EAGpB,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAGxB,MAAM,gCAAgC,CAAA;AAMvC,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC,EACxD,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,IAAI,CAAC;IACvC;;;;;OAKG;IACH,QAAQ,EAAE,kBAAkB,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAA;IAExD;;;OAGG;IACH,OAAO,EAAE,UAAU,CAAA;CACpB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,GAAG,EACH,OAAO,EACP,GAAG,KAAK,EACT,EAAE,gBAAgB,GAAG,YAAY,CAyBjC"}
@@ -0,0 +1,3 @@
1
+ export * from "./tooltip-context";
2
+ export * from "./use-tooltip";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tooltip/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA"}
@@ -0,0 +1,2 @@
1
+ import{createGuardedContext as c}from"@qualcomm-ui/react-core/context";var[m,n]=c({hookName:"useTooltipContext",providerName:"<TooltipContextProvider>",strict:!0});import{c as p}from"react/compiler-runtime";import{createTooltipApi as u,tooltipMachine as l}from"@qualcomm-ui/core/tooltip";import{useOnDestroy as i}from"@qualcomm-ui/react-core/effects";import{normalizeProps as x,useMachine as T}from"@qualcomm-ui/react-core/machine";import{useControlledId as s}from"@qualcomm-ui/react-core/state";function D(t){let o=p(2),e=T(l,t),r;return o[0]!==e?(r=u(e,x),o[0]=e,o[1]=r):r=o[1],r}function P(t){let{id:o}=t;return n().getTooltipArrowBindings({id:s(o),onDestroy:i()})}function w(){let t=p(2),o=n(),e;return t[0]!==o?(e=o.getTooltipArrowTipBindings(),t[0]=o,t[1]=e):e=t[1],e}function h(t){let{id:o}=t;return n().getTooltipPositionerBindings({id:s(o),onDestroy:i()})}function v(t){let{id:o}=t;return n().getTooltipContentBindings({id:s(o),onDestroy:i()})}function M(t){let{id:o}=t;return n().getTooltipTriggerBindings({id:s(o),onDestroy:i()})}export{m as TooltipContextProvider,D as useTooltip,P as useTooltipArrow,w as useTooltipArrowTip,v as useTooltipContent,n as useTooltipContext,h as useTooltipPositioner,M as useTooltipTrigger};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/tooltip/tooltip-context.ts", "../../src/tooltip/use-tooltip.ts"],
4
+ "sourcesContent": ["import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [TooltipContextProvider, useTooltipContext] = createGuardedContext({\n hookName: \"useTooltipContext\",\n providerName: \"<TooltipContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { createTooltipApi, tooltipMachine } from \"@qualcomm-ui/core/tooltip\";\nimport { useOnDestroy } from \"@qualcomm-ui/react-core/effects\";\nimport { normalizeProps, useMachine } from \"@qualcomm-ui/react-core/machine\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { useTooltipContext } from \"./tooltip-context\";\nexport function useTooltip(props) {\n const $ = _c(2);\n const config = useMachine(tooltipMachine, props);\n let t0;\n if ($[0] !== config) {\n t0 = createTooltipApi(config, normalizeProps);\n $[0] = config;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}\nexport function useTooltipArrow(t0) {\n const {\n id\n } = t0;\n const context = useTooltipContext();\n return context.getTooltipArrowBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useTooltipArrowTip() {\n const $ = _c(2);\n const context = useTooltipContext();\n let t0;\n if ($[0] !== context) {\n t0 = context.getTooltipArrowTipBindings();\n $[0] = context;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}\nexport function useTooltipPositioner(t0) {\n const {\n id\n } = t0;\n const context = useTooltipContext();\n return context.getTooltipPositionerBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useTooltipContent(t0) {\n const {\n id\n } = t0;\n const context = useTooltipContext();\n return context.getTooltipContentBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useTooltipTrigger(t0) {\n const {\n id\n } = t0;\n const context = useTooltipContext();\n return context.getTooltipTriggerBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}"],
5
+ "mappings": "AAAA,OAAS,wBAAAA,MAA4B,kCAC9B,GAAM,CAACC,EAAwBC,CAAiB,EAAIF,EAAqB,CAC9E,SAAU,oBACV,aAAc,2BACd,O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ACF,EAAIJ,EAEJ,OADgBK,EAAkB,EACnB,0BAA0B,CACvC,GAAIC,EAAgBF,CAAE,EACtB,UAAWG,EAAa,CAC1B,CAAC,CACH",
6
+ "names": ["createGuardedContext", "TooltipContextProvider", "useTooltipContext", "_c", "createTooltipApi", "tooltipMachine", "useOnDestroy", "normalizeProps", "useMachine", "useControlledId", "useTooltip", "props", "$", "_c", "config", "useMachine", "tooltipMachine", "t0", "createTooltipApi", "normalizeProps", "useTooltipArrow", "id", "useTooltipContext", "useControlledId", "useOnDestroy", "useTooltipArrowTip", "context", "useTooltipPositioner", "useTooltipContent", "useTooltipTrigger"]
7
+ }
@@ -0,0 +1,3 @@
1
+ import type { TooltipApi } from "@qualcomm-ui/core/tooltip";
2
+ export declare const TooltipContextProvider: import("react").Provider<TooltipApi>, useTooltipContext: (requireContext?: boolean) => TooltipApi;
3
+ //# sourceMappingURL=tooltip-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip-context.d.ts","sourceRoot":"","sources":["../../src/tooltip/tooltip-context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,2BAA2B,CAAA;AAGzD,eAAO,MAAO,sBAAsB,wCAAE,iBAAiB,0CAKnD,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { type TooltipApi, type TooltipApiProps, type TooltipArrowBindings, type TooltipArrowTipBindings, type TooltipContentBindings, type TooltipPositionerBindings, type TooltipTriggerBindings } from "@qualcomm-ui/core/tooltip";
2
+ import type { IdProp } from "@qualcomm-ui/react-core/system";
3
+ export declare function useTooltip(props: TooltipApiProps): TooltipApi;
4
+ export declare function useTooltipArrow({ id }: IdProp): TooltipArrowBindings;
5
+ export declare function useTooltipArrowTip(): TooltipArrowTipBindings;
6
+ export declare function useTooltipPositioner({ id }: IdProp): TooltipPositionerBindings;
7
+ export declare function useTooltipContent({ id }: IdProp): TooltipContentBindings;
8
+ export declare function useTooltipTrigger({ id }: IdProp): TooltipTriggerBindings;
9
+ //# sourceMappingURL=use-tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-tooltip.d.ts","sourceRoot":"","sources":["../../src/tooltip/use-tooltip.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAE3B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC5B,MAAM,2BAA2B,CAAA;AAIlC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,gCAAgC,CAAA;AAI1D,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,UAAU,CAG7D;AAED,wBAAgB,eAAe,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,oBAAoB,CAMlE;AAED,wBAAgB,kBAAkB,IAAI,uBAAuB,CAG5D;AAED,wBAAgB,oBAAoB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,yBAAyB,CAM5E;AAED,wBAAgB,iBAAiB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,sBAAsB,CAMtE;AAED,wBAAgB,iBAAiB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,sBAAsB,CAMtE"}
@@ -0,0 +1,25 @@
1
+ import type { CSSProperties } from "react";
2
+ import type { AnimationEasing } from "@qualcomm-ui/utils/transitions";
3
+ /**
4
+ * CSS hack to force a repaint
5
+ */
6
+ export declare function reflow(node: Element): void;
7
+ interface ComponentProps {
8
+ easing: AnimationEasing;
9
+ style: CSSProperties | undefined;
10
+ timeout: number | "auto" | {
11
+ enter?: number;
12
+ exit?: number;
13
+ };
14
+ }
15
+ interface Options {
16
+ mode: "enter" | "exit";
17
+ }
18
+ interface TransitionProps {
19
+ delay: string | undefined;
20
+ duration: string | number;
21
+ easing: string | undefined;
22
+ }
23
+ export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
24
+ export {};
25
+ //# sourceMappingURL=get-transition-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-transition-props.d.ts","sourceRoot":"","sources":["../../src/transitions/get-transition-props.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,OAAO,CAAA;AAExC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAA;AAEnE;;GAEG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAK1C;AAED,UAAU,cAAc;IACtB,MAAM,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,aAAa,GAAG,SAAS,CAAA;IAChC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAC,CAAA;CAC3D;AAED,UAAU,OAAO;IACf,IAAI,EAAE,OAAO,GAAG,MAAM,CAAA;CACvB;AAED,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,OAAO,GACf,eAAe,CAcjB"}
@@ -0,0 +1,3 @@
1
+ export * from "./get-transition-props";
2
+ export * from "./transitions.types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,2 @@
1
+ function i(o){o.scrollTop=o.scrollTop}function a(o,e){let{easing:n,style:r={},timeout:t}=o;return{delay:r.transitionDelay,duration:r.transitionDuration??(typeof t=="number"||t==="auto"?t:t[e.mode]||0),easing:r.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n)}}export{a as getTransitionProps,i as reflow};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/transitions/get-transition-props.ts"],
4
+ "sourcesContent": ["export function reflow(node) {\n node.scrollTop = node.scrollTop;\n}\nexport function getTransitionProps(props, options) {\n const {\n easing,\n style = {},\n timeout\n } = props;\n return {\n delay: style.transitionDelay,\n duration: style.transitionDuration ?? (typeof timeout === \"number\" || timeout === \"auto\" ? timeout : timeout[options.mode] || 0),\n easing: style.transitionTimingFunction ?? (typeof easing === \"object\" ? easing[options.mode] : easing)\n };\n}"],
5
+ "mappings": "AAAO,SAASA,EAAOC,EAAM,CAC3BA,EAAK,UAAYA,EAAK,SACxB,CACO,SAASC,EAAmBC,EAAOC,EAAS,CACjD,GAAM,CACJ,OAAAC,EACA,MAAAC,EAAQ,CAAC,EACT,QAAAC,CACF,EAAIJ,EACJ,MAAO,CACL,MAAOG,EAAM,gBACb,SAAUA,EAAM,qBAAuB,OAAOC,GAAY,UAAYA,IAAY,OAASA,EAAUA,EAAQH,EAAQ,IAAI,GAAK,GAC9H,OAAQE,EAAM,2BAA6B,OAAOD,GAAW,SAAWA,EAAOD,EAAQ,IAAI,EAAIC,EACjG,CACF",
6
+ "names": ["reflow", "node", "getTransitionProps", "props", "options", "easing", "style", "timeout"]
7
+ }
@@ -0,0 +1,119 @@
1
+ import type { CSSProperties, ReactNode, Ref } from "react";
2
+ export type EndHandler<RefElement extends HTMLElement> = (node: RefElement | null, done: () => void) => void;
3
+ export type EnterHandler<RefElement extends HTMLElement> = (node: RefElement | null, isAppearing: boolean) => void;
4
+ export type ExitHandler<RefElement extends HTMLElement> = (node: RefElement | null) => void;
5
+ /**
6
+ * @interface
7
+ */
8
+ export type TransitionProps<RefElement extends HTMLElement> = {
9
+ /**
10
+ * Add a custom transition end trigger. Called with the transitioning DOM
11
+ * node and a done callback. Allows for more fine-grained transition end
12
+ * logic. Note: Timeouts are still used as a fallback if provided.
13
+ */
14
+ addEndListener?: EndHandler<RefElement> | undefined;
15
+ /**
16
+ * Whether to show the animation when the component is first mounted.
17
+ */
18
+ appear?: boolean;
19
+ /**
20
+ * React Children
21
+ */
22
+ children?: ReactNode;
23
+ /**
24
+ * Class applied to the root element.
25
+ */
26
+ className?: string;
27
+ /**
28
+ * Show the component; triggers the enter or exit states
29
+ */
30
+ in?: boolean | undefined;
31
+ /**
32
+ * By default, the child component is mounted immediately along with the
33
+ * parent Transition component. If you want to "lazy mount" the component on
34
+ * the first {@link in} = `true` you can set {@link mountOnEnter}. After the
35
+ * first enter transition the component will stay mounted, even on "exited",
36
+ * unless you also specify {@link unmountOnExit}.
37
+ */
38
+ mountOnEnter?: boolean | undefined;
39
+ /**
40
+ * A React reference to DOM element that need to transition. {@link https://stackoverflow.com/a/51127130/4671932 example}.
41
+ * When `nodeRef` prop is used, node is not passed to callback functions (e.g.
42
+ * onEnter) because user already has direct access to the node. When changing
43
+ * `key` prop of `Transition` in a `TransitionGroup` a new `nodeRef` needs to be
44
+ * provided to `Transition` with changed `key` prop. {@link https://github.com/reactjs/react-transition-group/blob/master/test/Transition-test.js see also}.
45
+ */
46
+ nodeRef?: Ref<RefElement> | undefined;
47
+ /**
48
+ * Callback fired before the "entering" status is applied. An extra
49
+ * parameter `isAppearing` is supplied to indicate if the enter stage is
50
+ * occurring on the initial mount
51
+ */
52
+ onEnter?: EnterHandler<RefElement> | undefined;
53
+ /**
54
+ * Callback fired after the "entered" status is applied. An extra parameter
55
+ * isAppearing is supplied to indicate if the enter stage is occurring on
56
+ * the initial mount
57
+ *
58
+ * @interface
59
+ */
60
+ onEntered?: EnterHandler<RefElement> | undefined;
61
+ /**
62
+ * Callback fired after the "entering" status is applied. An extra parameter
63
+ * isAppearing is supplied to indicate if the enter stage is occurring on
64
+ * the initial mount
65
+ */
66
+ onEntering?: EnterHandler<RefElement> | undefined;
67
+ /**
68
+ * Callback fired before the "exiting" status is applied.
69
+ */
70
+ onExit?: ExitHandler<RefElement> | undefined;
71
+ /**
72
+ * Callback fired after the "exited" status is applied.
73
+ */
74
+ onExited?: ExitHandler<RefElement> | undefined;
75
+ /**
76
+ * Callback fired after the "exiting" status is applied.
77
+ */
78
+ onExiting?: ExitHandler<RefElement> | undefined;
79
+ /**
80
+ * Inline styles
81
+ */
82
+ style?: CSSProperties;
83
+ /**
84
+ * The duration of the transition, in milliseconds. Required unless
85
+ * addEndListener is provided.
86
+ *
87
+ * You may specify a single timeout for all transitions:
88
+ *
89
+ * ```js
90
+ * timeout={500}
91
+ * ```
92
+ *
93
+ * or individually:
94
+ *
95
+ * ```js
96
+ * timeout={{
97
+ * appear: 500,
98
+ * enter: 300,
99
+ * exit: 500,
100
+ * }}
101
+ * ```
102
+ *
103
+ * appear defaults to the value of `enter`.
104
+ * enter defaults to `0`.
105
+ * exit defaults to `0`.
106
+ */
107
+ timeout?: number | {
108
+ appear?: number | undefined;
109
+ enter?: number | undefined;
110
+ exit?: number | undefined;
111
+ };
112
+ /**
113
+ * By default, the child component stays mounted after it reaches the
114
+ * 'exited' state. Set `unmountOnExit` if you'd prefer to unmount the
115
+ * component after it finishes exiting.
116
+ */
117
+ unmountOnExit?: boolean | undefined;
118
+ };
119
+ //# sourceMappingURL=transitions.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transitions.types.d.ts","sourceRoot":"","sources":["../../src/transitions/transitions.types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAE,GAAG,EAAC,MAAM,OAAO,CAAA;AAExD,MAAM,MAAM,UAAU,CAAC,UAAU,SAAS,WAAW,IAAI,CACvD,IAAI,EAAE,UAAU,GAAG,IAAI,EACvB,IAAI,EAAE,MAAM,IAAI,KACb,IAAI,CAAA;AAET,MAAM,MAAM,YAAY,CAAC,UAAU,SAAS,WAAW,IAAI,CACzD,IAAI,EAAE,UAAU,GAAG,IAAI,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,OAAO,CAAC,EACJ,MAAM,GACN;QACE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAC1B,CAAA;IAEL;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACpC,CAAA"}
@@ -0,0 +1,63 @@
1
+ import type { ReactElement, ReactNode } from "react";
2
+ import { type RenderStrategyApiProps } from "@qualcomm-ui/core/presence";
3
+ import { type TreeApi, type TreeApiProps } from "@qualcomm-ui/core/tree";
4
+ import { type ElementRenderProp, type IdProp, type RenderProp } from "@qualcomm-ui/react-core/system";
5
+ import type { TreeNode } from "@qualcomm-ui/utils/collection";
6
+ export interface CoreTreeRootProps<T extends TreeNode = TreeNode> extends IdProp, Omit<ElementRenderProp<"div">, "dir">, TreeApiProps<T>, RenderStrategyApiProps {
7
+ }
8
+ export declare function CoreTreeRoot<T extends TreeNode = TreeNode>({ children, id, ...props }: CoreTreeRootProps<T>): ReactElement;
9
+ export interface CoreTreeLabelProps extends IdProp, ElementRenderProp<"div"> {
10
+ }
11
+ export declare function CoreTreeLabel({ children, id, ...props }: CoreTreeLabelProps): ReactElement;
12
+ export interface CoreTreeBranchNodeProps extends ElementRenderProp<"div"> {
13
+ }
14
+ export declare function CoreTreeBranchNode({ children, ...props }: CoreTreeBranchNodeProps): ReactElement;
15
+ export interface CoreTreeBranchIndentGuideProps extends ElementRenderProp<"div"> {
16
+ }
17
+ export declare function CoreTreeBranchIndentGuide({ children, ...props }: CoreTreeBranchIndentGuideProps): ReactElement;
18
+ export interface CoreTreeBranchTriggerProps extends ElementRenderProp<"div"> {
19
+ }
20
+ export declare function CoreTreeBranchTrigger({ children, ...props }: CoreTreeBranchTriggerProps): ReactElement;
21
+ export interface CoreTreeContextProps<T extends TreeNode = TreeNode> {
22
+ /**
23
+ * {@link
24
+ * https://react-next.qui.qualcomm.com/render-props#render-prop
25
+ * Render Prop}
26
+ *
27
+ * @inheritDoc
28
+ */
29
+ children: RenderProp<TreeApi<T>>;
30
+ }
31
+ export declare function CoreTreeContext({ children }: CoreTreeRootProps): ReactNode;
32
+ export interface CoreTreeNodeIndicatorProps extends ElementRenderProp<"div"> {
33
+ }
34
+ export declare function CoreTreeNodeIndicator({ children, ...props }: CoreTreeNodeIndicatorProps): ReactElement;
35
+ export interface CoreTreeNodeTextProps extends ElementRenderProp<"span"> {
36
+ }
37
+ export declare function CoreTreeNodeText({ children, ...props }: CoreTreeNodeTextProps): ReactElement;
38
+ export interface CoreTreeLeafNodeProps extends ElementRenderProp<"div"> {
39
+ }
40
+ export declare function CoreTreeLeafNode({ children, ...props }: CoreTreeLeafNodeProps): ReactElement;
41
+ export interface CoreTreeNodeCheckboxProps extends ElementRenderProp<"span"> {
42
+ /**
43
+ * React Node rendered when the node is checked.
44
+ *
45
+ * @default CheckmarkCheckedIcon
46
+ */
47
+ checked?: ReactNode;
48
+ /**
49
+ * React Node rendered when the node is indeterminate.
50
+ *
51
+ * @default CheckmarkIndeterminateIcon
52
+ */
53
+ indeterminate?: ReactNode;
54
+ /**
55
+ * React Node rendered when the node is unchecked.
56
+ */
57
+ unchecked?: ReactNode;
58
+ }
59
+ export declare function CoreTreeNodeCheckbox({ checked, indeterminate, unchecked, ...props }: CoreTreeNodeCheckboxProps): ReactElement;
60
+ export interface CoreTreeNodeActionProps extends ElementRenderProp<"button"> {
61
+ }
62
+ export declare function CoreTreeNodeAction({ children, ...props }: CoreTreeNodeActionProps): ReactElement;
63
+ //# sourceMappingURL=core-tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-tree.d.ts","sourceRoot":"","sources":["../../src/tree/core-tree.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,4B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EACT,EAAE,uBAAuB,GAAG,YAAY,CAaxC"}
@@ -0,0 +1,20 @@
1
+ import { CoreTreeBranchIndentGuide, type CoreTreeBranchIndentGuideProps, CoreTreeBranchNode, type CoreTreeBranchNodeProps, CoreTreeBranchTrigger, type CoreTreeBranchTriggerProps, CoreTreeContext, type CoreTreeContextProps, CoreTreeLabel, type CoreTreeLabelProps, CoreTreeLeafNode, type CoreTreeLeafNodeProps, CoreTreeNodeAction, type CoreTreeNodeActionProps, CoreTreeNodeCheckbox, type CoreTreeNodeCheckboxProps, CoreTreeNodeIndicator, type CoreTreeNodeIndicatorProps, CoreTreeNodeText, type CoreTreeNodeTextProps, CoreTreeRoot, type CoreTreeRootProps } from "./core-tree";
2
+ export * from "./tree-context";
3
+ export * from "./tree-node-context";
4
+ export * from "./use-tree";
5
+ export type { CoreTreeRootProps, CoreTreeLabelProps, CoreTreeBranchNodeProps, CoreTreeBranchIndentGuideProps, CoreTreeBranchTriggerProps, CoreTreeContextProps, CoreTreeNodeIndicatorProps, CoreTreeNodeTextProps, CoreTreeLeafNodeProps, CoreTreeNodeCheckboxProps, CoreTreeNodeActionProps, };
6
+ type CoreTreeComponent = {
7
+ BranchIndentGuide: typeof CoreTreeBranchIndentGuide;
8
+ BranchNode: typeof CoreTreeBranchNode;
9
+ BranchTrigger: typeof CoreTreeBranchTrigger;
10
+ Context: typeof CoreTreeContext;
11
+ Label: typeof CoreTreeLabel;
12
+ LeafNode: typeof CoreTreeLeafNode;
13
+ NodeAction: typeof CoreTreeNodeAction;
14
+ NodeCheckbox: typeof CoreTreeNodeCheckbox;
15
+ NodeIndicator: typeof CoreTreeNodeIndicator;
16
+ NodeText: typeof CoreTreeNodeText;
17
+ Root: typeof CoreTreeRoot;
18
+ };
19
+ export declare const CoreTree: CoreTreeComponent;
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tree/index.ts"],"names":[],"mappings":"AAA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runtime";import{jsx as c}from"react/jsx-runtime";import{splitRenderStrategyProps as _}from"@qualcomm-ui/core/presence";import{createTreeApi as j,splitTreeProps as z,treeMachine as E}from"@qualcomm-ui/core/tree";import{useOnDestroy as O}from"@qualcomm-ui/react-core/effects";import{useLocaleContext as q}from"@qualcomm-ui/react-core/locale";import{normalizeProps as w,useMachine as F}from"@qualcomm-ui/react-core/machine";import{RenderStrategyPropsProvider as H}from"@qualcomm-ui/react-core/presence";import{useControlledId as h}from"@qualcomm-ui/react-core/state";import{PolymorphicElement as p,renderProp as J}from"@qualcomm-ui/react-core/system";import{mergeProps as C}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext as $}from"@qualcomm-ui/react-core/context";var[T,D]=$({hookName:"useTreeContext",providerName:"<TreeContextProvider>",strict:!0});function d(){return D()}import{createGuardedContext as g}from"@qualcomm-ui/react-core/context";var[W,f]=g({hookName:"useTreeNodeContext",providerName:"<TreeNodeContextProvider>",strict:!0}),[X,i]=g({hookName:"useTreeNodeContext",providerName:"<TreeNodeContextProvider>",strict:!0});function P(e){let{children:o,id:t,...r}=e,[n,s]=_(r),[a,x]=z(s),{dir:m}=q(),G=F(E,{dir:m,...a}),u=j(G,w),A=C(u.getRootBindings({id:h(t)}),x);return c(T,{value:u,children:c(H,{value:n,children:c(p,{as:"div",...A,children:o})})})}function l(e){let{children:o,id:t,...r}=e,n=d(),s=C(n.getLabelBindings({id:h(t),onDestroy:O()}),r);return c(p,{as:"div",...s,children:o})}function N(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getBranchNodeBindings(n),t);return c(p,{as:"div",...s,children:o})}function B(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getBranchIndentGuideBindings(n),t);return c(p,{as:"div",...s,children:o})}function v(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getBranchTriggerBindings(n),t);return c(p,{as:"div",...s,children:o})}function k(e){let o=M(3),{children:t}=e,r=d(),n;return o[0]!==t||o[1]!==r?(n=J(t,r),o[0]=t,o[1]=r,o[2]=n):n=o[2],n}function S(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getNodeIndicatorBindings(n),t);return c(p,{as:"div",...s,children:o})}function I(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getNodeTextBindings(n),t);return c(p,{as:"span",...s,children:o})}function b(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getLeafNodeBindings(n),t);return c(p,{as:"div",...s,children:o})}function L(e){let{checked:o,indeterminate:t,unchecked:r,...n}=e,s=d(),a=i(),x=C(s.getNodeCheckboxBindings(a),n),m=s.getNodeState(a);return m.checked==="indeterminate"?c(p,{as:"span",...x,children:t}):m.checked?c(p,{as:"span",...x,children:o}):c(p,{as:"span",...x,children:r})}function y(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getNodeActionBindings(n),t);return c(p,{as:"button",...s,children:o})}import{c as R}from"react/compiler-runtime";import{useRenderStrategyPropsContext as K}from"@qualcomm-ui/react-core/presence";function fe(){let e=R(7),o=d(),t=i(),r=f(),n=K(),s=r.expanded,a;e[0]!==t||e[1]!==o?(a=o.getBranchBindings(t),e[0]=t,e[1]=o,e[2]=a):a=e[2];let x;return e[3]!==r.expanded||e[4]!==n||e[5]!==a?(x={open:s,...n,...a},e[3]=r.expanded,e[4]=n,e[5]=a,e[6]=x):x=e[6],x}function he(){let e=R(3),o=d(),t=i(),r;return e[0]!==t||e[1]!==o?(r=o.getBranchContentBindings(t),e[0]=t,e[1]=o,e[2]=r):r=e[2],r}var Ne={BranchIndentGuide:B,BranchNode:N,BranchTrigger:v,Context:k,Label:l,LeafNode:b,NodeAction:y,NodeCheckbox:L,NodeIndicator:S,NodeText:I,Root:P};export{Ne as CoreTree,T as TreeContextProvider,X as TreeNodePropsContextProvider,W as TreeNodeStateContextProvider,fe as useTreeBranch,he as useTreeBranchContent,d as useTreeContext,D as useTreeContextImpl,i as useTreeNodePropsContext,f as useTreeNodeStateContext};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/tree/core-tree.tsx", "../../src/tree/tree-context.ts", "../../src/tree/tree-node-context.ts", "../../src/tree/use-tree.ts", "../../src/tree/index.ts"],
4
+ "sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { splitRenderStrategyProps } from \"@qualcomm-ui/core/presence\";\nimport { createTreeApi, splitTreeProps, treeMachine } from \"@qualcomm-ui/core/tree\";\nimport { useOnDestroy } from \"@qualcomm-ui/react-core/effects\";\nimport { useLocaleContext } from \"@qualcomm-ui/react-core/locale\";\nimport { normalizeProps, useMachine } from \"@qualcomm-ui/react-core/machine\";\nimport { RenderStrategyPropsProvider } from \"@qualcomm-ui/react-core/presence\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { PolymorphicElement, renderProp } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { TreeContextProvider, useTreeContext } from \"./tree-context\";\nimport { useTreeNodePropsContext } from \"./tree-node-context\";\nexport function CoreTreeRoot(t0) {\n const {\n children,\n id,\n ...props\n } = t0;\n const [renderStrategyProps, localTreeProps] = splitRenderStrategyProps(props);\n const [treeProps, localProps] = splitTreeProps(localTreeProps);\n const {\n dir\n } = useLocaleContext();\n const machine = useMachine(treeMachine, {\n dir,\n ...treeProps\n });\n const api = createTreeApi(machine, normalizeProps);\n const mergedProps = mergeProps(api.getRootBindings({\n id: useControlledId(id)\n }), localProps);\n return jsx(TreeContextProvider, {\n value: api,\n children: jsx(RenderStrategyPropsProvider, {\n value: renderStrategyProps,\n children: jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n })\n })\n });\n}\nexport function CoreTreeLabel(t0) {\n const {\n children,\n id,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const mergedProps = mergeProps(treeContext.getLabelBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n }), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeBranchNode(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getBranchNodeBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeBranchIndentGuide(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getBranchIndentGuideBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeBranchTrigger(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getBranchTriggerBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeContext(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}\nexport function CoreTreeNodeIndicator(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getNodeIndicatorBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeNodeText(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getNodeTextBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeLeafNode(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getLeafNodeBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeNodeCheckbox(t0) {\n const {\n checked,\n indeterminate,\n unchecked,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getNodeCheckboxBindings(nodeProps), props);\n const nodeState = treeContext.getNodeState(nodeProps);\n if (nodeState.checked === \"indeterminate\") {\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children: indeterminate\n });\n } else {\n if (nodeState.checked) {\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children: checked\n });\n }\n }\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children: unchecked\n });\n}\nexport function CoreTreeNodeAction(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getNodeActionBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"button\",\n ...mergedProps,\n children\n });\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [TreeContextProvider, useTreeContextImpl] = createGuardedContext({\n hookName: \"useTreeContext\",\n providerName: \"<TreeContextProvider>\",\n strict: true\n});\nexport function useTreeContext() {\n return useTreeContextImpl();\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [TreeNodeStateContextProvider, useTreeNodeStateContext] = createGuardedContext({\n hookName: \"useTreeNodeContext\",\n providerName: \"<TreeNodeContextProvider>\",\n strict: true\n});\nexport const [TreeNodePropsContextProvider, useTreeNodePropsContext] = createGuardedContext({\n hookName: \"useTreeNodeContext\",\n providerName: \"<TreeNodeContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { useRenderStrategyPropsContext } from \"@qualcomm-ui/react-core/presence\";\nimport { useTreeContext } from \"./tree-context\";\nimport { useTreeNodePropsContext, useTreeNodeStateContext } from \"./tree-node-context\";\nexport function useTreeBranch() {\n const $ = _c(7);\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const nodeState = useTreeNodeStateContext();\n const renderStrategyProps = useRenderStrategyPropsContext();\n const t0 = nodeState.expanded;\n let t1;\n if ($[0] !== nodeProps || $[1] !== treeContext) {\n t1 = treeContext.getBranchBindings(nodeProps);\n $[0] = nodeProps;\n $[1] = treeContext;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n let t2;\n if ($[3] !== nodeState.expanded || $[4] !== renderStrategyProps || $[5] !== t1) {\n t2 = {\n open: t0,\n ...renderStrategyProps,\n ...t1\n };\n $[3] = nodeState.expanded;\n $[4] = renderStrategyProps;\n $[5] = t1;\n $[6] = t2;\n } else {\n t2 = $[6];\n }\n return t2;\n}\nexport function useTreeBranchContent() {\n const $ = _c(3);\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n let t0;\n if ($[0] !== nodeProps || $[1] !== treeContext) {\n t0 = treeContext.getBranchContentBindings(nodeProps);\n $[0] = nodeProps;\n $[1] = treeContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { CoreTreeBranchIndentGuide, CoreTreeBranchNode, CoreTreeBranchTrigger, CoreTreeContext, CoreTreeLabel, CoreTreeLeafNode, CoreTreeNodeAction, CoreTreeNodeCheckbox, CoreTreeNodeIndicator, CoreTreeNodeText, CoreTreeRoot } from \"./core-tree\";\nexport * from \"./tree-context\";\nexport * from \"./tree-node-context\";\nexport * from \"./use-tree\";\nexport const CoreTree = {\n BranchIndentGuide: CoreTreeBranchIndentGuide,\n BranchNode: CoreTreeBranchNode,\n BranchTrigger: CoreTreeBranchTrigger,\n Context: CoreTreeContext,\n Label: CoreTreeLabel,\n LeafNode: CoreTreeLeafNode,\n NodeAction: CoreTreeNodeAction,\n NodeCheckbox: CoreTreeNodeCheckbox,\n NodeIndicator: CoreTreeNodeIndicator,\n NodeText: CoreTreeNodeText,\n Root: CoreTreeRoot\n};"],
5
+ "mappings": "AAAA,OAAS,KAAKA,MAAU,yBACxB,OAAS,OAAAC,MAAW,oBACpB,OAAS,4BAAAC,MAAgC,6BACzC,OAAS,iBAAAC,EAAe,kBAAAC,EAAgB,eAAAC,MAAmB,yBAC3D,OAAS,gBAAAC,MAAoB,kCAC7B,OAAS,oBAAAC,MAAwB,iCACjC,OAAS,kBAAAC,EAAgB,cAAAC,MAAkB,kCAC3C,OAAS,+BAAAC,MAAmC,mCAC5C,OAAS,mBAAAC,MAAuB,gCAChC,OAAS,sBAAAC,EAAoB,cAAAC,MAAkB,iCAC/C,OAAS,cAAAC,MAAkB,iCCV3B,OAAS,wBAAAC,MAA4B,kCAC9B,GAAM,CAACC,EAAqBC,CAAkB,EAAIF,EAAqB,CAC5E,SAAU,iBACV,aAAc,wBACd,OAAQ,EACV,CAAC,EACM,SAASG,GAAiB,CAC/B,OAAOD,EAAmB,CAC5B,CCRA,OAAS,wBAAAE,MAA4B,kCAC9B,GAAM,CAACC,EAA8BC,CAAuB,EAAIF,EAAqB,CAC1F,SAAU,qBACV,aAAc,4BACd,OAAQ,EACV,CAAC,EACY,CAACG,EAA8BC,CAAuB,EAAIJ,EAAqB,CAC1F,SAAU,qBACV,aAAc,4BACd,OAAQ,EACV,CAAC,EFGM,SAASK,EAAaC,EAAI,CAC/B,GAAM,CACJ,SAAAC,EACA,GAAAC,EACA,GAAGC,CACL,EAAIH,EACE,CAACI,EAAqBC,CAAc,EAAIC,EAAyBH,CAAK,EACtE,CAACI,EAAWC,CAAU,EAAIC,EAAeJ,CAAc,EACvD,CACJ,IAAAK,CACF,EAAIC,EAAiB,EACfC,EAAUC,EAAWC,EAAa,CACtC,IAAAJ,EACA,GAAGH,CACL,CAAC,EACKQ,EAAMC,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,EAAE,CAAC,EAEV,IAAIY,EACJ,OAAIZ,EAAE,CAAC,IAAMM,EAAU,UAAYN,EAAE,CAAC,IAAMQ,GAAuBR,EAAE,CAAC,IAAMW,GAC1EC,EAAK,CACH,KAAMF,EACN,GAAGF,EACH,GAAGG,CACL,EACAX,EAAE,CAAC,EAAIM,EAAU,SACjBN,EAAE,CAAC,EAAIQ,EACPR,EAAE,CAAC,EAAIW,EACPX,EAAE,CAAC,EAAIY,GAEPA,EAAKZ,EAAE,CAAC,EAEHY,CACT,CACO,SAASC,IAAuB,CACrC,IAAMb,EAAIC,EAAG,CAAC,EACRC,EAAcC,EAAe,EAC7BC,EAAYC,EAAwB,EACtCK,EACJ,OAAIV,EAAE,CAAC,IAAMI,GAAaJ,EAAE,CAAC,IAAME,GACjCQ,EAAKR,EAAY,yBAAyBE,CAAS,EACnDJ,EAAE,CAAC,EAAII,EACPJ,EAAE,CAAC,EAAIE,EACPF,EAAE,CAAC,EAAIU,GAEPA,EAAKV,EAAE,CAAC,EAEHU,CACT,CC9CO,IAAMI,GAAW,CACtB,kBAAmBC,EACnB,WAAYC,EACZ,cAAeC,EACf,QAASC,EACT,MAAOC,EACP,SAAUC,EACV,WAAYC,EACZ,aAAcC,EACd,cAAeC,EACf,SAAUC,EACV,KAAMC,CACR",
6
+ "names": ["_c", "jsx", "splitRenderStrategyProps", "createTreeApi", "splitTreeProps", "treeMachine", "useOnDestroy", "useLocaleContext", "normalizeProps", "useMachine", "RenderStrategyPropsProvider", "useControlledId", "PolymorphicElement", "renderProp", "mergeProps", "createGuardedContext", "TreeContextProvider", "useTreeContextImpl", "useTreeContext", "createGuardedContext", "TreeNodeStateContextProvider", "useTreeNodeStateContext", "TreeNodePropsContextProvider", "useTreeNodePropsContext", "CoreTreeRoot", "t0", "children", "id", "props", "renderStrategyProps", "localTreeProps", "splitRenderStrategyProps", "treeProps", "localProps", "splitTreeProps", "dir", "useLocaleContext", "machine", "useMachine", "treeMachine", "api", "createTreeApi", "normalizeProps", "mergedProps", "mergeProps", "useControlledId", "jsx", "TreeContextProvider", "RenderStrategyPropsProvider", "PolymorphicElement", "CoreTreeLabel", "treeContext", "useTreeContext", "useOnDestroy", "CoreTreeBranchNode", "nodeProps", "useTreeNodePropsContext", "CoreTreeBranchIndentGuide", "CoreTreeBranchTrigger", "CoreTreeContext", "$", "_c", "t1", "renderProp", "CoreTreeNodeIndicator", "CoreTreeNodeText", "CoreTreeLeafNode", "CoreTreeNodeCheckbox", "checked", "indeterminate", "unchecked", "nodeState", "CoreTreeNodeAction", "_c", "useRenderStrategyPropsContext", "useTreeBranch", "$", "_c", "treeContext", "useTreeContext", "nodeProps", "useTreeNodePropsContext", "nodeState", "useTreeNodeStateContext", "renderStrategyProps", "useRenderStrategyPropsContext", "t0", "t1", "t2", "useTreeBranchContent", "CoreTree", "CoreTreeBranchIndentGuide", "CoreTreeBranchNode", "CoreTreeBranchTrigger", "CoreTreeContext", "CoreTreeLabel", "CoreTreeLeafNode", "CoreTreeNodeAction", "CoreTreeNodeCheckbox", "CoreTreeNodeIndicator", "CoreTreeNodeText", "CoreTreeRoot"]
7
+ }
@@ -0,0 +1,7 @@
1
+ import type { TreeApi } from "@qualcomm-ui/core/tree";
2
+ import type { TreeNode } from "@qualcomm-ui/utils/collection";
3
+ export interface UseTreeContext<T extends TreeNode> extends TreeApi<T> {
4
+ }
5
+ export declare const TreeContextProvider: import("react").Provider<UseTreeContext<any>>, useTreeContextImpl: (requireContext?: boolean) => UseTreeContext<any>;
6
+ export declare function useTreeContext<T extends TreeNode = TreeNode>(): TreeApi<T>;
7
+ //# sourceMappingURL=tree-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree-context.d.ts","sourceRoot":"","sources":["../../src/tree/tree-context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAA;AAEnD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAA;AAE3D,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,OAAO,CAAC,CAAC,CAAC;CAAG;AAEzE,eAAO,MAAO,mBAAmB,iDAAE,kBAAkB,mDAMnD,CAAA;AAEF,wBAAgB,cAAc,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,CAE1E"}
@@ -0,0 +1,4 @@
1
+ import type { NodeProps, NodeState } from "@qualcomm-ui/core/tree";
2
+ export declare const TreeNodeStateContextProvider: import("react").Provider<NodeState<any>>, useTreeNodeStateContext: (requireContext?: boolean) => NodeState<any>;
3
+ export declare const TreeNodePropsContextProvider: import("react").Provider<NodeProps<any>>, useTreeNodePropsContext: (requireContext?: boolean) => NodeProps<any>;
4
+ //# sourceMappingURL=tree-node-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree-node-context.d.ts","sourceRoot":"","sources":["../../src/tree/tree-node-context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,wBAAwB,CAAA;AAGhE,eAAO,MAAO,4BAA4B,4CAAE,uBAAuB,8CAK/D,CAAA;AAEJ,eAAO,MAAO,4BAA4B,4CAAE,uBAAuB,8CAK/D,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { TreeBranchBindings, TreeBranchContentBindings } from "@qualcomm-ui/core/tree";
2
+ import type { CoreCollapsibleRootProps } from "@qualcomm-ui/react-core/collapsible";
3
+ export declare function useTreeBranch(): CoreCollapsibleRootProps & TreeBranchBindings;
4
+ export declare function useTreeBranchContent(): TreeBranchContentBindings;
5
+ //# sourceMappingURL=use-tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-tree.d.ts","sourceRoot":"","sources":["../../src/tree/use-tree.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAA;AASjF,wBAAgB,aAAa,IAAI,wBAAwB,GAAG,kBAAkB,CAW7E;AAED,wBAAgB,oBAAoB,IAAI,yBAAyB,CAKhE"}