@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,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/switch/switch-context.ts", "../../src/switch/use-switch.ts"],
4
+ "sourcesContent": ["import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [SwitchContextProvider, useSwitchContext] = createGuardedContext({\n hookName: \"useSwitchContext\",\n providerName: \"<SwitchContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { createSwitchApi, switchMachine } from \"@qualcomm-ui/core/switch\";\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 { useSwitchContext } from \"./switch-context\";\nexport function useSwitch(props) {\n const $ = _c(2);\n const machine = useMachine(switchMachine, props);\n let t0;\n if ($[0] !== machine) {\n t0 = createSwitchApi(machine, normalizeProps);\n $[0] = machine;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}\nexport function useSwitchLabel(t0) {\n const {\n id\n } = t0;\n const context = useSwitchContext();\n return context.getLabelBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useSwitchHiddenInput(t0) {\n const {\n id\n } = t0;\n const context = useSwitchContext();\n return context.getHiddenInputBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useSwitchControl() {\n const $ = _c(2);\n const context = useSwitchContext();\n let t0;\n if ($[0] !== context) {\n t0 = context.getControlBindings();\n $[0] = context;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}\nexport function useSwitchThumb() {\n const $ = _c(2);\n const context = useSwitchContext();\n let t0;\n if ($[0] !== context) {\n t0 = context.getThumbBindings();\n $[0] = context;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}\nexport function useSwitchErrorText(t0) {\n const {\n id\n } = t0;\n const context = useSwitchContext();\n return context.getErrorTextBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}"],
5
+ "mappings": "AAAA,OAAS,wBAAAA,MAA4B,kCAC9B,GAAM,CAACC,EAAuBC,CAAgB,EAAIF,EAAqB,CAC5E,SAAU,mBACV,aAAc,0BACd,OAAQ,EACV,CAAC,ECLD,OAAS,KAAKG,MAAU,yBACxB,OAAS,mBAAAC,EAAiB,iBAAAC,MAAqB,2BAC/C,OAAS,gBAAAC,MAAoB,kCAC7B,OAAS,kBAAAC,EAAgB,cAAAC,MAAkB,kCAC3C,OAAS,mBAAAC,MAAuB,gCAEzB,SAASC,EAAUC,EAAO,CAC/B,IAAMC,EAAIC,EAAG,CAAC,EACRC,EAAUC,EAAWC,EAAeL,CAAK,EAC3CM,EACJ,OAAIL,EAAE,CAAC,IAAME,GACXG,EAAKC,EAAgBJ,EAASK,CAAc,EAC5CP,EAAE,CAAC,EAAIE,EACPF,EAAE,CAAC,EAAIK,GAEPA,EAAKL,EAAE,CAAC,EAEHK,CACT,CACO,SAASG,EAAeH,EAAI,CACjC,GAAM,CACJ,GAAAI,CACF,EAAIJ,EAEJ,OADgBK,EAAiB,EAClB,iBAAiB,CAC9B,GAAIC,EAAgBF,CAAE,EACtB,UAAWG,EAAa,CAC1B,CAAC,CACH,CACO,SAASC,EAAqBR,EAAI,CACvC,GAAM,CACJ,GAAAI,CACF,EAAIJ,EAEJ,OADgBK,EAAiB,EAClB,uBAAuB,CACpC,GAAIC,EAAgBF,CAAE,EACtB,UAAWG,EAAa,CAC1B,CAAC,CACH,CACO,SAASE,GAAmB,CACjC,IAAMd,EAAIC,EAAG,CAAC,EACRc,EAAUL,EAAiB,EAC7BL,EACJ,OAAIL,EAAE,CAAC,IAAMe,GACXV,EAAKU,EAAQ,mBAAmB,EAChCf,EAAE,CAAC,EAAIe,EACPf,EAAE,CAAC,EAAIK,GAEPA,EAAKL,EAAE,CAAC,EAEHK,CACT,CACO,SAASW,GAAiB,CAC/B,IAAMhB,EAAIC,EAAG,CAAC,EACRc,EAAUL,EAAiB,EAC7BL,EACJ,OAAIL,EAAE,CAAC,IAAMe,GACXV,EAAKU,EAAQ,iBAAiB,EAC9Bf,EAAE,CAAC,EAAIe,EACPf,EAAE,CAAC,EAAIK,GAEPA,EAAKL,EAAE,CAAC,EAEHK,CACT,CACO,SAASY,EAAmBZ,EAAI,CACrC,GAAM,CACJ,GAAAI,CACF,EAAIJ,EAEJ,OADgBK,EAAiB,EAClB,qBAAqB,CAClC,GAAIC,EAAgBF,CAAE,EACtB,UAAWG,EAAa,CAC1B,CAAC,CACH",
6
+ "names": ["createGuardedContext", "SwitchContextProvider", "useSwitchContext", "_c", "createSwitchApi", "switchMachine", "useOnDestroy", "normalizeProps", "useMachine", "useControlledId", "useSwitch", "props", "$", "_c", "machine", "useMachine", "switchMachine", "t0", "createSwitchApi", "normalizeProps", "useSwitchLabel", "id", "useSwitchContext", "useControlledId", "useOnDestroy", "useSwitchHiddenInput", "useSwitchControl", "context", "useSwitchThumb", "useSwitchErrorText"]
7
+ }
@@ -0,0 +1,3 @@
1
+ import type { SwitchApi } from "@qualcomm-ui/core/switch";
2
+ export declare const SwitchContextProvider: import("react").Provider<SwitchApi>, useSwitchContext: (requireContext?: boolean) => SwitchApi;
3
+ //# sourceMappingURL=switch-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch-context.d.ts","sourceRoot":"","sources":["../../src/switch/switch-context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAA;AAGvD,eAAO,MAAO,qBAAqB,uCAAE,gBAAgB,yCAKjD,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { type SwitchApi, type SwitchApiProps, type SwitchErrorTextBindings, type SwitchThumbBindings } from "@qualcomm-ui/core/switch";
2
+ import type { IdProp } from "@qualcomm-ui/react-core/system";
3
+ export declare function useSwitch(props: SwitchApiProps): SwitchApi;
4
+ export declare function useSwitchLabel({ id }: IdProp): import("@qualcomm-ui/core/switch").SwitchLabelBindings;
5
+ export declare function useSwitchHiddenInput({ id }: IdProp): import("@qualcomm-ui/core/switch").SwitchHiddenInputBindings;
6
+ export declare function useSwitchControl(): import("@qualcomm-ui/core/switch").SwitchControlBindings;
7
+ export declare function useSwitchThumb(): SwitchThumbBindings;
8
+ export declare function useSwitchErrorText({ id }: IdProp): SwitchErrorTextBindings;
9
+ //# sourceMappingURL=use-switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-switch.d.ts","sourceRoot":"","sources":["../../src/switch/use-switch.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAE5B,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAA;AAIjC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,gCAAgC,CAAA;AAI1D,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CAI1D;AAED,wBAAgB,cAAc,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,0DAM1C;AAED,wBAAgB,oBAAoB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,gEAMhD;AAED,wBAAgB,gBAAgB,6DAG/B;AAED,wBAAgB,cAAc,IAAI,mBAAmB,CAGpD;AAED,wBAAgB,kBAAkB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,uBAAuB,CAMxE"}
@@ -0,0 +1,5 @@
1
+ export * from "./polymorphic-as-element";
2
+ export * from "./polymorphic-element";
3
+ export type * from "./system.types";
4
+ export * from "./system.utils";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,mBAAmB,gBAAgB,CAAA;AACnC,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import{jsx as u}from"react/jsx-runtime";function m({as:o,children:r,...t}){return u(o,{...t,children:r})}import{jsx as g}from"react/jsx-runtime";import{Fragment as c,jsx as l}from"react/jsx-runtime";import{cloneElement as s,isValidElement as x}from"react";import{mergeProps as P}from"@qualcomm-ui/utils/merge-props";function i(o,r,t={}){if(typeof o=="function")return o(r);if(typeof o=="string"||typeof o=="number")return l(c,{children:o});let{forwardPropsToClone:e=!0,mergeElementProps:p=!0}=t,n=e?r:{},f=p&&x(o)?P(o.props,n):n;return s(o,f)}function A(o,r){return E(o,r)}function E(o,r){return typeof o=="function"?o(r):o}function w({as:o="div",render:r,...t}){return r?i(r,t):g(m,{as:o,...t})}export{m as PolymorphicAsElement,w as PolymorphicElement,i as bindingRenderProp,A as renderNodeOrFunc,E as renderProp};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/system/polymorphic-as-element.tsx", "../../src/system/polymorphic-element.tsx", "../../src/system/system.utils.tsx"],
4
+ "sourcesContent": ["import { jsx } from \"react/jsx-runtime\";\nexport function PolymorphicAsElement({\n as,\n children,\n ...props\n}) {\n const Element = as;\n return /* @__PURE__ */jsx(Element, {\n ...props,\n children\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { PolymorphicAsElement } from \"./polymorphic-as-element\";\nimport { bindingRenderProp } from \"./system.utils\";\nexport function PolymorphicElement({\n as = \"div\",\n render,\n ...props\n}) {\n if (render) {\n return bindingRenderProp(render, props);\n }\n return /* @__PURE__ */jsx(PolymorphicAsElement, {\n as,\n ...props\n });\n}", "import { Fragment, jsx } from \"react/jsx-runtime\";\nimport { cloneElement, isValidElement } from \"react\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nexport function bindingRenderProp(render, computedProps, opts = {}) {\n if (typeof render === \"function\") {\n return render(computedProps);\n } else if (typeof render === \"string\" || typeof render === \"number\") {\n return /* @__PURE__ */jsx(Fragment, {\n children: render\n });\n }\n const {\n forwardPropsToClone = true,\n mergeElementProps = true\n } = opts;\n const props = forwardPropsToClone ? computedProps : {};\n const mergedProps = mergeElementProps && isValidElement(render) ? mergeProps(render.props, props) : props;\n return cloneElement(render, mergedProps);\n}\nexport function renderNodeOrFunc(render, computedProps) {\n return renderProp(render, computedProps);\n}\nexport function renderProp(render, computedProps) {\n if (typeof render === \"function\") {\n return render(computedProps);\n }\n return render;\n}"],
5
+ "mappings": "AAAA,OAAS,OAAAA,MAAW,oBACb,SAASC,EAAqB,CACnC,GAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EAAG,CAED,OAAsBJ,EADNE,EACmB,CACjC,GAAGE,EACH,SAAAD,CACF,CAAC,CACH,CCXA,OAAS,OAAAE,MAAW,oBCApB,OAAS,YAAAC,EAAU,OAAAC,MAAW,oBAC9B,OAAS,gBAAAC,EAAc,kBAAAC,MAAsB,QAC7C,OAAS,cAAAC,MAAkB,iCACpB,SAASC,EAAkBC,EAAQC,EAAeC,EAAO,CAAC,EAAG,CAClE,GAAI,OAAOF,GAAW,WACpB,OAAOA,EAAOC,CAAa,EACtB,GAAI,OAAOD,GAAW,UAAY,OAAOA,GAAW,SACzD,OAAsBL,EAAID,EAAU,CAClC,SAAUM,CACZ,CAAC,EAEH,GAAM,CACJ,oBAAAG,EAAsB,GACtB,kBAAAC,EAAoB,EACtB,EAAIF,EACEG,EAAQF,EAAsBF,EAAgB,CAAC,EAC/CK,EAAcF,GAAqBP,EAAeG,CAAM,EAAIF,EAAWE,EAAO,MAAOK,CAAK,EAAIA,EACpG,OAAOT,EAAaI,EAAQM,CAAW,CACzC,CACO,SAASC,EAAiBP,EAAQC,EAAe,CACtD,OAAOO,EAAWR,EAAQC,CAAa,CACzC,CACO,SAASO,EAAWR,EAAQC,EAAe,CAChD,OAAI,OAAOD,GAAW,WACbA,EAAOC,CAAa,EAEtBD,CACT,CDxBO,SAASS,EAAmB,CACjC,GAAAC,EAAK,MACL,OAAAC,EACA,GAAGC,CACL,EAAG,CACD,OAAID,EACKE,EAAkBF,EAAQC,CAAK,EAElBE,EAAIC,EAAsB,CAC9C,GAAAL,EACA,GAAGE,CACL,CAAC,CACH",
6
+ "names": ["jsx", "PolymorphicAsElement", "as", "children", "props", "jsx", "Fragment", "jsx", "cloneElement", "isValidElement", "mergeProps", "bindingRenderProp", "render", "computedProps", "opts", "forwardPropsToClone", "mergeElementProps", "props", "mergedProps", "renderNodeOrFunc", "renderProp", "PolymorphicElement", "as", "render", "props", "bindingRenderProp", "jsx", "PolymorphicAsElement"]
7
+ }
@@ -0,0 +1,20 @@
1
+ import type { ReactElement } from "react";
2
+ import type { As, PolymorphicComponentPropsWithRef } from "./system.types";
3
+ /**
4
+ * @interface
5
+ */
6
+ export type PolymorphicAsElementProps<C extends As> = PolymorphicComponentPropsWithRef<C> & {
7
+ /**
8
+ * The component or element used for the root node.
9
+ */
10
+ as: C;
11
+ };
12
+ /**
13
+ * A simple helper component for polymorphic function components. TypeScript
14
+ * struggles with the As type inference, so we make it "any" internally for ease of
15
+ * use in utility components where the type doesn't matter.
16
+ *
17
+ * @internal
18
+ */
19
+ export declare function PolymorphicAsElement({ as, children, ...props }: PolymorphicAsElementProps<any>): ReactElement;
20
+ //# sourceMappingURL=polymorphic-as-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polymorphic-as-element.d.ts","sourceRoot":"","sources":["../../src/system/polymorphic-as-element.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EAAC,EAAE,EAAE,gCAAgC,EAAC,MAAM,gBAAgB,CAAA;AAExE;;GAEG;AACH,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,EAAE,IAChD,gCAAgC,CAAC,CAAC,CAAC,GAAG;IACpC;;OAEG;IACH,EAAE,EAAE,CAAC,CAAA;CACN,CAAA;AAEH;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,EAAE,EACF,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,yBAAyB,CAAC,GAAG,CAAC,GAAG,YAAY,CAG/C"}
@@ -0,0 +1,13 @@
1
+ import type { ElementType, ReactElement } from "react";
2
+ import type { ElementRenderProp } from "./system.types";
3
+ /**
4
+ * @interface
5
+ */
6
+ export type PolymorphicElementProps<DefaultTagName extends ElementType, Props extends object> = ElementRenderProp<DefaultTagName, Props> & {
7
+ /**
8
+ * The fallback element to render if no render prop is provided.
9
+ */
10
+ as?: DefaultTagName;
11
+ };
12
+ export declare function PolymorphicElement<DefaultTagName extends ElementType>({ as, render, ...props }: PolymorphicElementProps<DefaultTagName, any>): ReactElement;
13
+ //# sourceMappingURL=polymorphic-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polymorphic-element.d.ts","sourceRoot":"","sources":["../../src/system/polymorphic-element.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,OAAO,CAAA;AAGpD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAA;AAGrD;;GAEG;AACH,MAAM,MAAM,uBAAuB,CACjC,cAAc,SAAS,WAAW,EAClC,KAAK,SAAS,MAAM,IAClB,iBAAiB,CAAC,cAAc,EAAE,KAAK,CAAC,GAAG;IAC7C;;OAEG;IACH,EAAE,CAAC,EAAE,cAAc,CAAA;CACpB,CAAA;AAED,wBAAgB,kBAAkB,CAAC,cAAc,SAAS,WAAW,EAAE,EACrE,EAAU,EACV,MAAM,EACN,GAAG,KAAK,EACT,EAAE,uBAAuB,CAAC,cAAc,EAAE,GAAG,CAAC,GAAG,YAAY,CAM7D"}
@@ -0,0 +1,69 @@
1
+ import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentType, ElementType, HTMLAttributes, JSX, JSXElementConstructor, ReactElement, ReactNode } from "react";
2
+ export type As = ElementType | ComponentType;
3
+ /**
4
+ * Extract the props of a React element or component
5
+ */
6
+ export type PropsOf<C extends keyof JSX.IntrinsicElements | JSXElementConstructor<any>> = JSX.LibraryManagedAttributes<C, ComponentPropsWithoutRef<C>>;
7
+ export type MergeWithAs<C extends As, Props = object> = Props & Omit<PropsOf<C>, keyof Props>;
8
+ /**
9
+ * @custom ComponentPropsWithRef<C>
10
+ */
11
+ export type PolymorphicComponentPropsWithRef<C extends As, Props = object> = MergeWithAs<C, Props> & {
12
+ /**
13
+ * React {@link https://react.dev/learn/referencing-values-with-refs ref}
14
+ */
15
+ ref?: PolymorphicRef<C>;
16
+ };
17
+ /**
18
+ * Returns the type of ref for the polymorphic component.
19
+ */
20
+ export type PolymorphicRef<C extends As> = ComponentPropsWithRef<C>["ref"];
21
+ /**
22
+ * @typeParam Props The props of the element, only applies to the render function.
23
+ * @typeParam Element The type of JSX being rendered.
24
+ */
25
+ export type RenderFunction<Props = HTMLAttributes<HTMLElement>, Element = ReactElement> = (props: Props) => Element;
26
+ /**
27
+ * @deprecated migrate to {@link BindingRenderProp}
28
+ */
29
+ export type RenderPropLegacy<Props = HTMLAttributes<HTMLElement>, Element = ReactElement> = BindingRenderProp<Props, Element>;
30
+ /**
31
+ * Render prop for elements that need intelligent prop merging.
32
+ * Used with {@link bindingRenderProp} - combines user props with computed props.
33
+ *
34
+ * @typeParam Props The props of the element, only applies to the render function.
35
+ * @typeParam Element The JSX element type or component.
36
+ */
37
+ export type BindingRenderProp<Props = HTMLAttributes<HTMLElement>, Element = ReactElement> = Element | ((props: Props) => Element);
38
+ /**
39
+ * @deprecated migrate to {@link RenderProp}
40
+ */
41
+ export type NodeRenderProp<Props = HTMLAttributes<HTMLElement>> = ReactNode | ((props: Props) => ReactNode);
42
+ /**
43
+ * Simple render prop without prop manipulation.
44
+ * Used with `renderNonBinding()` - passes content through as-is and does not augment
45
+ * the passed ReactNode.
46
+ */
47
+ export type RenderProp<Props = HTMLAttributes<HTMLElement>, ElementType = ReactNode> = ElementType | ((props: Props) => ElementType);
48
+ /**
49
+ * Simple render prop without direct element support. The user must always pass a
50
+ * function.
51
+ */
52
+ export type FunctionRenderProp<Props = HTMLAttributes<HTMLElement>, ElementType = ReactNode> = (props: Props) => ElementType;
53
+ export interface IdProp {
54
+ /**
55
+ * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
56
+ * omitted, a unique identifier will be automatically generated for accessibility.
57
+ */
58
+ id?: string;
59
+ }
60
+ /**
61
+ * @interface
62
+ */
63
+ export type ElementRenderProp<DefaultTagName extends ElementType, Props = object> = ComponentPropsWithRef<DefaultTagName> & {
64
+ /**
65
+ * Allows you to replace the component's HTML element with a different tag or component. {@link https://react-next.qui.qualcomm.com/polymorphic-components Learn more}
66
+ */
67
+ render?: BindingRenderProp<Props, ReactElement>;
68
+ };
69
+ //# sourceMappingURL=system.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.types.d.ts","sourceRoot":"","sources":["../../src/system/system.types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,aAAa,EACb,WAAW,EACX,cAAc,EACd,GAAG,EACH,qBAAqB,EACrB,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAA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CAAA;AAEzC;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,KAAK,GAAG,cAAc,CAAC,WAAW,CAAC,IAC1D,SAAS,GACT,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC,CAAA;AAEjC;;;;GAIG;AACH,MAAM,MAAM,UAAU,CACpB,KAAK,GAAG,cAAc,CAAC,WAAW,CAAC,EACnC,WAAW,GAAG,SAAS,IACrB,WAAW,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,WAAW,CAAC,CAAA;AAEjD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,CAC5B,KAAK,GAAG,cAAc,CAAC,WAAW,CAAC,EACnC,WAAW,GAAG,SAAS,IACrB,CAAC,KAAK,EAAE,KAAK,KAAK,WAAW,CAAA;AAEjC,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAC3B,cAAc,SAAS,WAAW,EAClC,KAAK,GAAG,MAAM,IACZ,qBAAqB,CAAC,cAAc,CAAC,GAAG;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAA;CAChD,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { type HTMLAttributes, type ReactElement, type ReactNode } from "react";
2
+ import type { BindingRenderProp, RenderProp } from "./system.types";
3
+ interface BindingRenderPropConfig {
4
+ /**
5
+ * @default true
6
+ */
7
+ forwardPropsToClone?: boolean;
8
+ /**
9
+ * @default true
10
+ */
11
+ mergeElementProps?: true;
12
+ }
13
+ /**
14
+ * Accepts either a ReactElement or a function that returns a ReactElement. If
15
+ * ReactElement, the element is cloned and props are forwarded (unless {@link
16
+ * forwardPropsToClone} is false). If function, the function is called with the
17
+ * props as the argument. Makes for a flexible render prop.
18
+ */
19
+ export declare function bindingRenderProp<P extends NonNullable<unknown> = HTMLAttributes<HTMLElement>>(render: BindingRenderProp<P>, computedProps: P, opts?: BindingRenderPropConfig): ReactElement;
20
+ /**
21
+ * @deprecated migrate to {@link renderProp}
22
+ */
23
+ export declare function renderNodeOrFunc<P extends NonNullable<unknown> = HTMLAttributes<HTMLElement>>(render: RenderProp<P>, computedProps: P): ReactNode;
24
+ /**
25
+ * Accepts either a ReactNode or a function that returns a ReactNode. If ReactNode,
26
+ * the element is returned as-is. If function, the function is called with the
27
+ * associated parameters.
28
+ */
29
+ export declare function renderProp<P extends NonNullable<unknown> = HTMLAttributes<HTMLElement>>(render: RenderProp<P>, computedProps: P): ReactNode;
30
+ export {};
31
+ //# sourceMappingURL=system.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.utils.d.ts","sourceRoot":"","sources":["../../src/system/system.utils.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAId,OAAO,KAAK,EAAC,iBAAiB,EAAE,UAAU,EAAC,MAAM,gBAAgB,CAAA;AAEjE,UAAU,uBAAuB;IAC/B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,CAAC,SAAS,WAAW,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC,WAAW,CAAC,EAE5D,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAC5B,aAAa,EAAE,CAAC,EAChB,IAAI,GAAE,uBAA4B,GACjC,YAAY,CAad;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,CAAC,SAAS,WAAW,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC,WAAW,CAAC,EAC5D,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,GAAG,SAAS,CAEpD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,CAAC,SAAS,WAAW,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC,WAAW,CAAC,EAC5D,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,GAAG,SAAS,CAKpD"}
@@ -0,0 +1,60 @@
1
+ import type { ReactElement, ReactNode } from "react";
2
+ import { type RenderStrategyApiProps } from "@qualcomm-ui/core/presence";
3
+ import { type PanelProps, type TabProps, type TabsApi, type TabsApiProps } from "@qualcomm-ui/core/tabs";
4
+ import { type ElementRenderProp, type IdProp, type RenderProp } from "@qualcomm-ui/react-core/system";
5
+ export interface CoreTabsRootProps extends TabsApiProps, RenderStrategyApiProps, Omit<ElementRenderProp<"div">, "defaultValue" | "dir"> {
6
+ /**
7
+ * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
8
+ */
9
+ children?: ReactNode;
10
+ }
11
+ export declare function CoreTabsRoot({ children, ...props }: CoreTabsRootProps): ReactElement;
12
+ export interface CoreTabsListProps extends IdProp, ElementRenderProp<"div"> {
13
+ /**
14
+ * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
15
+ */
16
+ children?: ReactNode;
17
+ }
18
+ export declare function CoreTabsList({ children, id, ...props }: CoreTabsListProps): ReactElement;
19
+ export interface CoreTabsTabButtonProps extends IdProp, ElementRenderProp<"button"> {
20
+ /**
21
+ * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
22
+ */
23
+ children?: ReactNode;
24
+ }
25
+ export declare function CoreTabsTabButton({ children, id, ...props }: CoreTabsTabButtonProps): ReactElement;
26
+ export interface CoreTabsPanelProps extends PanelProps, IdProp, ElementRenderProp<"div"> {
27
+ /**
28
+ * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
29
+ */
30
+ children?: ReactNode;
31
+ }
32
+ export declare function CoreTabsPanel({ children, id, ...props }: CoreTabsPanelProps): ReactElement;
33
+ export interface CoreTabsTabDismissButtonProps extends ElementRenderProp<"button"> {
34
+ /**
35
+ * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
36
+ */
37
+ children?: ReactNode;
38
+ }
39
+ export declare function CoreTabsTabDismissButton({ children, ...props }: CoreTabsTabDismissButtonProps): ReactElement;
40
+ export interface CoreTabsTabProps extends TabProps, ElementRenderProp<"div"> {
41
+ /**
42
+ * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
43
+ */
44
+ children?: ReactNode;
45
+ }
46
+ export declare function CoreTabsTab({ children, ...props }: CoreTabsTabProps): ReactElement;
47
+ export interface CoreTabsIndicatorProps extends IdProp, ElementRenderProp<"div"> {
48
+ }
49
+ export declare function CoreTabsIndicator({ children, id, ...props }: CoreTabsIndicatorProps): ReactElement;
50
+ export interface CoreTabsContextProps {
51
+ /**
52
+ * {@link https://react-next.qui.qualcomm.com/render-props Render Prop}
53
+ * that provides the current {@link TabsApi} context.
54
+ *
55
+ * @inheritDoc
56
+ */
57
+ children: RenderProp<TabsApi>;
58
+ }
59
+ export declare function CoreTabsContext({ children }: CoreTabsContextProps): ReactNode;
60
+ //# sourceMappingURL=core-tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-tabs.d.ts","sourceRoot":"","sources":["../../src/tabs/core-tabs.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAEL,KAAK,UAAU,EAEf,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,YAAY,EAElB,MAAM,wBAAwB,CAAA;AAU/B,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,MAAM,EAEX,KAAK,UAAU,EAEhB,MAAM,gCAAgC,CAAA;AAMvC,MAAM,WAAW,iBACf,SAAQ,YAA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;IAC1E;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,gBAAgB,GAAG,YAAY,CAYjC;AAED,MAAM,WAAW,sBACf,SAAQ,MAAM,EACZ,iBAAiB,CAAC,KAAK,CAAC;CAAG;AAE/B,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,EAAE,EACF,GAAG,KAAK,EACT,EAAE,sBAAsB,GAAG,YAAY,CAevC;AAED,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;CAC9B;AAED,wBAAgB,eAAe,CAAC,EAAC,QAAQ,EAAC,EAAE,oBAAoB,GAAG,SAAS,CAG3E"}
@@ -0,0 +1,16 @@
1
+ import { CoreTabsContext, type CoreTabsContextProps, CoreTabsIndicator, type CoreTabsIndicatorProps, CoreTabsList, type CoreTabsListProps, CoreTabsPanel, type CoreTabsPanelProps, CoreTabsRoot, type CoreTabsRootProps, CoreTabsTab, CoreTabsTabButton, type CoreTabsTabButtonProps, CoreTabsTabDismissButton, type CoreTabsTabDismissButtonProps, type CoreTabsTabProps } from "./core-tabs";
2
+ export * from "./tab-prop-context";
3
+ export * from "./tabs-context";
4
+ export type { CoreTabsRootProps, CoreTabsListProps, CoreTabsTabButtonProps, CoreTabsPanelProps, CoreTabsTabDismissButtonProps, CoreTabsTabProps, CoreTabsIndicatorProps, CoreTabsContextProps, };
5
+ type CoreTabsComponent = {
6
+ Context: typeof CoreTabsContext;
7
+ Indicator: typeof CoreTabsIndicator;
8
+ List: typeof CoreTabsList;
9
+ Panel: typeof CoreTabsPanel;
10
+ Root: typeof CoreTabsRoot;
11
+ Tab: typeof CoreTabsTab;
12
+ TabButton: typeof CoreTabsTabButton;
13
+ TabDismissButton: typeof CoreTabsTabDismissButton;
14
+ };
15
+ export declare const CoreTabs: CoreTabsComponent;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,YAAY,EACZ,KAAK,iBAAiB,EACtB,aAAa,EACb,KAAK,kBAAkB,EACvB,YAAY,EACZ,KAAK,iBAAiB,EACtB,WAAW,EACX,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,wBAAwB,EACxB,KAAK,6BAA6B,EAClC,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAA;AAEpB,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAE9B,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,EAC7B,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,GACrB,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,eAAe,CAAA;IAC/B,SAAS,EAAE,OAAO,iBAAiB,CAAA;IACnC,IAAI,EAAE,OAAO,YAAY,CAAA;IACzB,KAAK,EAAE,OAAO,aAAa,CAAA;IAC3B,IAAI,EAAE,OAAO,YAAY,CAAA;IACzB,GAAG,EAAE,OAAO,WAAW,CAAA;IACvB,SAAS,EAAE,OAAO,iBAAiB,CAAA;IACnC,gBAAgB,EAAE,OAAO,wBAAwB,CAAA;CAClD,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,iBAStB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import{c as g}from"react/compiler-runtime";import{jsx as i}from"react/jsx-runtime";import{splitRenderStrategyProps as k}from"@qualcomm-ui/core/presence";import{createTabsApi as A,splitTabsProps as G,tabsMachine as M}from"@qualcomm-ui/core/tabs";import{useOnDestroy as C,useOnDestroyWhen as O}from"@qualcomm-ui/react-core/effects";import{normalizeProps as $,useMachine as j}from"@qualcomm-ui/react-core/machine";import{PresenceContextProvider as z,RenderStrategyPropsProvider as E,usePresence as W,useRenderStrategyPropsContext as _}from"@qualcomm-ui/react-core/presence";import{useControlledId as T}from"@qualcomm-ui/react-core/state";import{PolymorphicElement as d,renderProp as q}from"@qualcomm-ui/react-core/system";import{mergeProps as b}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext as L}from"@qualcomm-ui/react-core/context";var[P,l]=L({hookName:"useTabPropContext",providerName:"<TabPropContextProvider>",strict:!0});import{createGuardedContext as N}from"@qualcomm-ui/react-core/context";var[x,c]=N({hookName:"useTabsContext",providerName:"<TabsContextProvider>",strict:!0});function f(s){let{children:t,...e}=s,[r,o]=k(e),[n,a]=G(o),u=j(M,n),p=A(u,$),m=b(p.getRootBindings(),a);return i(x,{value:p,children:i(E,{value:r,children:i(d,{as:"div",...m,children:t})})})}function v(s){let{children:t,id:e,...r}=s,o=c(),n=b(o.getListBindings({id:T(e),onDestroy:C()}),r);return i(d,{as:"div",...n,children:t})}function h(s){let{children:t,id:e,...r}=s,o=c(),n=l(),a=b(o.getTabButtonBindings({...n,id:T(e),onDestroy:C()}),r);return i(d,{as:"button",...a,children:t})}function B(s){let t=g(3),{children:e,id:r,...o}=s,n=_(),a=c(),u=a.value===o.value,p;t[0]!==n||t[1]!==u?(p={...n,immediate:!0,present:u},t[0]=n,t[1]=u,t[2]=p):p=t[2];let m=W(p),S=b(a.getPanelBindings({...o,id:T(r),onDestroy:O(m.unmounted)}),m.getPresenceBindings(),o);return i(z,{value:m,children:m.unmounted?null:i(d,{as:"div",...S,children:e})})}function y(s){let{children:t,...e}=s,r=c(),o=b(r.getTabDismissButtonBindings(),e);return i(d,{as:"button",...o,children:t})}function D(s){let{children:t,...e}=s,r=c(),{disabled:o,value:n}=e,a=b(r.getTabBindings(),e);return i(P,{value:{disabled:o,value:n},children:i(d,{as:"div",...a,children:t})})}function R(s){let{children:t,id:e,...r}=s,o=c(),n=b(o.getIndicatorBindings({id:T(e),onDestroy:C()}),r);return i(d,{as:"div",...n,children:t})}function I(s){let t=g(3),{children:e}=s,r=c(),o;return t[0]!==e||t[1]!==r?(o=q(e,r),t[0]=e,t[1]=r,t[2]=o):o=t[2],o}var at={Context:I,Indicator:R,List:v,Panel:B,Root:f,Tab:D,TabButton:h,TabDismissButton:y};export{at as CoreTabs,P as TabPropsContextProvider,x as TabsContextProvider,l as useTabPropsContext,c as useTabsContext};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/tabs/core-tabs.tsx", "../../src/tabs/tab-prop-context.ts", "../../src/tabs/tabs-context.ts", "../../src/tabs/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 { createTabsApi, splitTabsProps, tabsMachine } from \"@qualcomm-ui/core/tabs\";\nimport { useOnDestroy, useOnDestroyWhen } from \"@qualcomm-ui/react-core/effects\";\nimport { normalizeProps, useMachine } from \"@qualcomm-ui/react-core/machine\";\nimport { PresenceContextProvider, RenderStrategyPropsProvider, usePresence, useRenderStrategyPropsContext } 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 { TabPropsContextProvider, useTabPropsContext } from \"./tab-prop-context\";\nimport { TabsContextProvider, useTabsContext } from \"./tabs-context\";\nexport function CoreTabsRoot(t0) {\n const {\n children,\n ...props\n } = t0;\n const [renderStrategyProps, localTabsProps] = splitRenderStrategyProps(props);\n const [tabsProps, localProps] = splitTabsProps(localTabsProps);\n const machine = useMachine(tabsMachine, tabsProps);\n const tabsApi = createTabsApi(machine, normalizeProps);\n const mergedProps = mergeProps(tabsApi.getRootBindings(), localProps);\n return jsx(TabsContextProvider, {\n value: tabsApi,\n children: jsx(RenderStrategyPropsProvider, {\n value: renderStrategyProps,\n children: jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n })\n })\n });\n}\nexport function CoreTabsList(t0) {\n const {\n children,\n id,\n ...props\n } = t0;\n const tabsContext = useTabsContext();\n const mergedProps = mergeProps(tabsContext.getListBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n }), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTabsTabButton(t0) {\n const {\n children,\n id,\n ...props\n } = t0;\n const tabsContext = useTabsContext();\n const tabProps = useTabPropsContext();\n const mergedProps = mergeProps(tabsContext.getTabButtonBindings({\n ...tabProps,\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n }), props);\n return jsx(PolymorphicElement, {\n as: \"button\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTabsPanel(t0) {\n const $ = _c(3);\n const {\n children,\n id,\n ...props\n } = t0;\n const renderStrategyProps = useRenderStrategyPropsContext();\n const tabsContext = useTabsContext();\n const t1 = tabsContext.value === props.value;\n let t2;\n if ($[0] !== renderStrategyProps || $[1] !== t1) {\n t2 = {\n ...renderStrategyProps,\n immediate: true,\n present: t1\n };\n $[0] = renderStrategyProps;\n $[1] = t1;\n $[2] = t2;\n } else {\n t2 = $[2];\n }\n const presence = usePresence(t2);\n const mergedProps = mergeProps(tabsContext.getPanelBindings({\n ...props,\n id: useControlledId(id),\n onDestroy: useOnDestroyWhen(presence.unmounted)\n }), presence.getPresenceBindings(), props);\n return jsx(PresenceContextProvider, {\n value: presence,\n children: presence.unmounted ? null : jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n })\n });\n}\nexport function CoreTabsTabDismissButton(t0) {\n const {\n children,\n ...props\n } = t0;\n const tabsContext = useTabsContext();\n const mergedProps = mergeProps(tabsContext.getTabDismissButtonBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"button\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTabsTab(t0) {\n const {\n children,\n ...props\n } = t0;\n const tabsContext = useTabsContext();\n const {\n disabled,\n value\n } = props;\n const mergedProps = mergeProps(tabsContext.getTabBindings(), props);\n return jsx(TabPropsContextProvider, {\n value: {\n disabled,\n value\n },\n children: jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n })\n });\n}\nexport function CoreTabsIndicator(t0) {\n const {\n children,\n id,\n ...props\n } = t0;\n const tabsContext = useTabsContext();\n const mergedProps = mergeProps(tabsContext.getIndicatorBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n }), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTabsContext(t0) {\n const $ = _c(3);\n const {\n children\n } = t0;\n const context = useTabsContext();\n let t1;\n if ($[0] !== children || $[1] !== context) {\n t1 = renderProp(children, context);\n $[0] = children;\n $[1] = context;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n return t1;\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [TabPropsContextProvider, useTabPropsContext] = createGuardedContext({\n hookName: \"useTabPropContext\",\n providerName: \"<TabPropContextProvider>\",\n strict: true\n});", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [TabsContextProvider, useTabsContext] = createGuardedContext({\n hookName: \"useTabsContext\",\n providerName: \"<TabsContextProvider>\",\n strict: true\n});", "import { CoreTabsContext, CoreTabsIndicator, CoreTabsList, CoreTabsPanel, CoreTabsRoot, CoreTabsTab, CoreTabsTabButton, CoreTabsTabDismissButton } from \"./core-tabs\";\nexport * from \"./tab-prop-context\";\nexport * from \"./tabs-context\";\nexport const CoreTabs = {\n Context: CoreTabsContext,\n Indicator: CoreTabsIndicator,\n List: CoreTabsList,\n Panel: CoreTabsPanel,\n Root: CoreTabsRoot,\n Tab: CoreTabsTab,\n TabButton: CoreTabsTabButton,\n TabDismissButton: CoreTabsTabDismissButton\n};"],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,CAAC,EAAI9B,EACP8B,EAAE,CAAC,EAAIgB,EACPhB,EAAE,CAAC,EAAIG,GAEPA,EAAKH,EAAE,CAAC,EAEHG,CACT,CG9KO,IAAMe,GAAW,CACtB,QAASC,EACT,UAAWC,EACX,KAAMC,EACN,MAAOC,EACP,KAAMC,EACN,IAAKC,EACL,UAAWC,EACX,iBAAkBC,CACpB",
6
+ "names": ["_c", "jsx", "splitRenderStrategyProps", "createTabsApi", "splitTabsProps", "tabsMachine", "useOnDestroy", "useOnDestroyWhen", "normalizeProps", "useMachine", "PresenceContextProvider", "RenderStrategyPropsProvider", "usePresence", "useRenderStrategyPropsContext", "useControlledId", "PolymorphicElement", "renderProp", "mergeProps", "createGuardedContext", "TabPropsContextProvider", "useTabPropsContext", "createGuardedContext", "TabsContextProvider", "useTabsContext", "CoreTabsRoot", "t0", "children", "props", "renderStrategyProps", "localTabsProps", "splitRenderStrategyProps", "tabsProps", "localProps", "splitTabsProps", "machine", "useMachine", "tabsMachine", "tabsApi", "createTabsApi", "normalizeProps", "mergedProps", "mergeProps", "jsx", "TabsContextProvider", "RenderStrategyPropsProvider", "PolymorphicElement", "CoreTabsList", "id", "tabsContext", "useTabsContext", "useControlledId", "useOnDestroy", "CoreTabsTabButton", "tabProps", "useTabPropsContext", "CoreTabsPanel", "$", "_c", "useRenderStrategyPropsContext", "t1", "t2", "presence", "usePresence", "useOnDestroyWhen", "PresenceContextProvider", "CoreTabsTabDismissButton", "CoreTabsTab", "disabled", "value", "TabPropsContextProvider", "CoreTabsIndicator", "CoreTabsContext", "context", "renderProp", "CoreTabs", "CoreTabsContext", "CoreTabsIndicator", "CoreTabsList", "CoreTabsPanel", "CoreTabsRoot", "CoreTabsTab", "CoreTabsTabButton", "CoreTabsTabDismissButton"]
7
+ }
@@ -0,0 +1,3 @@
1
+ import type { TabProps } from "@qualcomm-ui/core/tabs";
2
+ export declare const TabPropsContextProvider: import("react").Provider<TabProps>, useTabPropsContext: (requireContext?: boolean) => TabProps;
3
+ //# sourceMappingURL=tab-prop-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-prop-context.d.ts","sourceRoot":"","sources":["../../src/tabs/tab-prop-context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAA;AAGpD,eAAO,MAAO,uBAAuB,sCAAE,kBAAkB,wCAKrD,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { TabsApi } from "@qualcomm-ui/core/tabs";
2
+ export declare const TabsContextProvider: import("react").Provider<TabsApi>, useTabsContext: (requireContext?: boolean) => TabsApi;
3
+ //# sourceMappingURL=tabs-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs-context.d.ts","sourceRoot":"","sources":["../../src/tabs/tabs-context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAA;AAGnD,eAAO,MAAO,mBAAmB,qCAAE,cAAc,uCAK7C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/text-area/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./text-input-context";
2
+ export * from "./use-text-input";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/text-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import{createGuardedContext as x}from"@qualcomm-ui/react-core/context";var[I,o]=x({hookName:"useTextInputContext",providerName:"<TextInputContextProvider>",strict:!0});import{c as s}from"react/compiler-runtime";import{createTextInputApi as c,textInputMachine as p}from"@qualcomm-ui/core/text-input";import{useOnDestroy as i}from"@qualcomm-ui/react-core/effects";import{normalizeProps as d,useMachine as m}from"@qualcomm-ui/react-core/machine";import{useControlledId as u}from"@qualcomm-ui/react-core/state";function D(e){let t=s(2),n=m(p,e),r;return t[0]!==n?(r=c(n,d),t[0]=n,t[1]=r):r=t[1],r}function h(){let e=s(2),t=o(),n;return e[0]!==t?(n=t.getInputGroupBindings(),e[0]=t,e[1]=n):n=e[1],n}function v(e){let{id:t}=e;return o().getLabelBindings({id:u(t),onDestroy:i()})}function G(e){let{id:t}=e;return o().getInputBindings({id:u(t),onDestroy:i()})}function P(e){let{id:t}=e;return o().getErrorTextBindings({id:u(t),onDestroy:i()})}function $(e){let{id:t}=e;return o().getHintBindings({id:u(t),onDestroy:i()})}function b(){let e=s(2),t=o(),n;return e[0]!==t?(n=t.getClearTriggerBindings(),e[0]=t,e[1]=n):n=e[1],n}export{I as TextInputContextProvider,D as useTextInput,b as useTextInputClearTrigger,o as useTextInputContext,P as useTextInputErrorText,$ as useTextInputHint,G as useTextInputInput,h as useTextInputInputGroup,v as useTextInputLabel};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/text-input/text-input-context.ts", "../../src/text-input/use-text-input.ts"],
4
+ "sourcesContent": ["import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [TextInputContextProvider, useTextInputContext] = createGuardedContext({\n hookName: \"useTextInputContext\",\n providerName: \"<TextInputContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { createTextInputApi, textInputMachine } from \"@qualcomm-ui/core/text-input\";\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 { useTextInputContext } from \"./text-input-context\";\nexport function useTextInput(props) {\n const $ = _c(2);\n const machine = useMachine(textInputMachine, props);\n let t0;\n if ($[0] !== machine) {\n t0 = createTextInputApi(machine, normalizeProps);\n $[0] = machine;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}\nexport function useTextInputInputGroup() {\n const $ = _c(2);\n const context = useTextInputContext();\n let t0;\n if ($[0] !== context) {\n t0 = context.getInputGroupBindings();\n $[0] = context;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}\nexport function useTextInputLabel(t0) {\n const {\n id\n } = t0;\n const context = useTextInputContext();\n return context.getLabelBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useTextInputInput(t0) {\n const {\n id\n } = t0;\n const context = useTextInputContext();\n return context.getInputBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useTextInputErrorText(t0) {\n const {\n id\n } = t0;\n const context = useTextInputContext();\n return context.getErrorTextBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useTextInputHint(t0) {\n const {\n id\n } = t0;\n const context = useTextInputContext();\n return context.getHintBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useTextInputClearTrigger() {\n const $ = _c(2);\n const context = useTextInputContext();\n let t0;\n if ($[0] !== context) {\n t0 = context.getClearTriggerBindings();\n $[0] = context;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}"],
5
+ "mappings": "AAAA,OAAS,wBAAAA,MAA4B,kCAC9B,GAAM,CAACC,EAA0BC,CAAmB,EAAIF,EAAqB,CAClF,SAAU,sBACV,aAAc,6BACd,OAAQ,EACV,CAAC,ECLD,OAAS,KAAKG,MAAU,yBACxB,OAAS,sBAAAC,EAAoB,oBAAAC,MAAwB,+BACrD,OAAS,gBAAAC,MAAoB,kCAC7B,OAAS,kBAAAC,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MlB,EAAIC,EAAG,CAAC,EACRQ,EAAUC,EAAoB,EAChCL,EACJ,OAAIL,EAAE,CAAC,IAAMS,GACXJ,EAAKI,EAAQ,wBAAwB,EACrCT,EAAE,CAAC,EAAIS,EACPT,EAAE,CAAC,EAAIK,GAEPA,EAAKL,EAAE,CAAC,EAEHK,CACT",
6
+ "names": ["createGuardedContext", "TextInputContextProvider", "useTextInputContext", "_c", "createTextInputApi", "textInputMachine", "useOnDestroy", "normalizeProps", "useMachine", "useControlledId", "useTextInput", "props", "$", "_c", "machine", "useMachine", "textInputMachine", "t0", "createTextInputApi", "normalizeProps", "useTextInputInputGroup", "context", "useTextInputContext", "useTextInputLabel", "id", "useControlledId", "useOnDestroy", "useTextInputInput", "useTextInputErrorText", "useTextInputHint", "useTextInputClearTrigger"]
7
+ }
@@ -0,0 +1,3 @@
1
+ import type { TextInputApi } from "@qualcomm-ui/core/text-input";
2
+ export declare const TextInputContextProvider: import("react").Provider<TextInputApi>, useTextInputContext: (requireContext?: boolean) => TextInputApi;
3
+ //# sourceMappingURL=text-input-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-input-context.d.ts","sourceRoot":"","sources":["../../src/text-input/text-input-context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAA;AAG9D,eAAO,MAAO,wBAAwB,0CAAE,mBAAmB,4CAKvD,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { type TextInputApiProps } from "@qualcomm-ui/core/text-input";
2
+ import type { IdProp } from "@qualcomm-ui/react-core/system";
3
+ export declare function useTextInput(props: TextInputApiProps): import("@qualcomm-ui/core/text-input").TextInputApi;
4
+ export declare function useTextInputInputGroup(): import("@qualcomm-ui/core/text-input").TextInputInputGroupBindings;
5
+ export declare function useTextInputLabel({ id }: IdProp): import("@qualcomm-ui/core/text-input").TextInputLabelBindings;
6
+ export declare function useTextInputInput({ id }: IdProp): import("@qualcomm-ui/core/text-input").TextInputInputBindings;
7
+ export declare function useTextInputErrorText({ id }: IdProp): import("@qualcomm-ui/core/text-input").TextInputErrorTextBindings;
8
+ export declare function useTextInputHint({ id }: IdProp): import("@qualcomm-ui/core/text-input").TextInputHintBindings;
9
+ export declare function useTextInputClearTrigger(): import("@qualcomm-ui/core/text-input").TextInputClearTriggerBindings;
10
+ //# sourceMappingURL=use-text-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-text-input.d.ts","sourceRoot":"","sources":["../../src/text-input/use-text-input.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,8BAA8B,CAAA;AAIrC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,gCAAgC,CAAA;AAI1D,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,uDAIpD;AAED,wBAAgB,sBAAsB,uEAGrC;AAED,wBAAgB,iBAAiB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,iEAM7C;AAED,wBAAgB,iBAAiB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,iEAM7C;AAED,wBAAgB,qBAAqB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,qEAMjD;AAED,wBAAgB,gBAAgB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,gEAM5C;AAED,wBAAgB,wBAAwB,yEAGvC"}
@@ -0,0 +1,35 @@
1
+ import type { ReactElement, ReactNode } from "react";
2
+ import type { ToastActionTriggerBindings, ToastCloseTriggerBindings } from "@qualcomm-ui/core/toast";
3
+ import { type BindingRenderProp, type ElementRenderProp } from "@qualcomm-ui/react-core/system";
4
+ export interface CoreToastRootProps extends ElementRenderProp<"div"> {
5
+ /**
6
+ * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
7
+ */
8
+ children?: ReactNode;
9
+ }
10
+ export declare function CoreToastRoot({ children, ...props }: CoreToastRootProps): ReactElement;
11
+ export interface CoreToastLabelProps extends ElementRenderProp<"div"> {
12
+ }
13
+ export declare function CoreToastLabel(props: CoreToastLabelProps): ReactElement;
14
+ export interface CoreToastDescriptionProps extends ElementRenderProp<"div"> {
15
+ }
16
+ export declare function CoreToastDescription(props: CoreToastDescriptionProps): ReactElement;
17
+ export interface CoreToastCloseTriggerProps {
18
+ /**
19
+ * Child element or {@link https://react-next.qui.qualcomm.com/render-props#binding-render-prop render function}
20
+ * that receives merged props.
21
+ * @inheritDoc
22
+ */
23
+ children: BindingRenderProp<ToastCloseTriggerBindings>;
24
+ }
25
+ export declare function CoreToastCloseTrigger({ children, ...props }: CoreToastCloseTriggerProps): ReactNode;
26
+ export interface CoreToastActionTriggerProps {
27
+ /**
28
+ * Child element or {@link https://react-next.qui.qualcomm.com/render-props#binding-render-prop render function}
29
+ * that receives merged props.
30
+ * @inheritDoc
31
+ */
32
+ children: BindingRenderProp<ToastActionTriggerBindings>;
33
+ }
34
+ export declare function CoreToastActionTrigger({ children, ...props }: CoreToastActionTriggerProps): ReactNode;
35
+ //# sourceMappingURL=core-toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-toast.d.ts","sourceRoot":"","sources":["../../src/toast/core-toast.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EACV,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,iBAAiB,EAEvB,MAAM,gCAAgC,CAAA;AAKvC,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,CAAC,KAAK,CAAC;IAClE;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,GAAG,YAAY,CAUnC;AAED,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB,CAAC,KAAK,CAAC;CAAG;AAExE,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,YAAY,CAKvE;AAED,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,CAAC,KAAK,CAAC;CAAG;AAE9E,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,yBAAyB,GAC/B,YAAY,CAKd;AAED,MAAM,WAAW,0BAA0B;IACzC;;;;OAIG;IACH,QAAQ,EAAE,iBAAiB,CAAC,yBAAyB,CAAC,CAAA;CACvD;AAED,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,0BAA0B,GAAG,SAAS,CAKxC;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,QAAQ,EAAE,iBAAiB,CAAC,0BAA0B,CAAC,CAAA;CACxD;AAED,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,2BAA2B,GAAG,SAAS,CAKzC"}
@@ -0,0 +1,13 @@
1
+ import { CoreToastActionTrigger, type CoreToastActionTriggerProps, CoreToastCloseTrigger, type CoreToastCloseTriggerProps, CoreToastDescription, type CoreToastDescriptionProps, CoreToastLabel, type CoreToastLabelProps, CoreToastRoot, type CoreToastRootProps } from "./core-toast";
2
+ export * from "./toast-context";
3
+ export * from "./toaster";
4
+ export type { CoreToastRootProps, CoreToastLabelProps, CoreToastDescriptionProps, CoreToastCloseTriggerProps, CoreToastActionTriggerProps, };
5
+ type CoreToastComponent = {
6
+ ActionTrigger: typeof CoreToastActionTrigger;
7
+ CloseTrigger: typeof CoreToastCloseTrigger;
8
+ Description: typeof CoreToastDescription;
9
+ Label: typeof CoreToastLabel;
10
+ Root: typeof CoreToastRoot;
11
+ };
12
+ export declare const CoreToast: CoreToastComponent;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,KAAK,2BAA2B,EAChC,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,cAAc,EACd,KAAK,mBAAmB,EACxB,aAAa,EACb,KAAK,kBAAkB,EACxB,MAAM,cAAc,CAAA;AAErB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AAEzB,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,GAC5B,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,aAAa,EAAE,OAAO,sBAAsB,CAAA;IAC5C,YAAY,EAAE,OAAO,qBAAqB,CAAA;IAC1C,WAAW,EAAE,OAAO,oBAAoB,CAAA;IACxC,KAAK,EAAE,OAAO,cAAc,CAAA;IAC5B,IAAI,EAAE,OAAO,aAAa,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,kBAMvB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import{c as C}from"react/compiler-runtime";import{jsx as l,jsxs as y}from"react/jsx-runtime";import{bindingRenderProp as h,PolymorphicElement as f}from"@qualcomm-ui/react-core/system";import{mergeProps as m}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext as M}from"@qualcomm-ui/react-core/context";var[x,a]=M({hookName:"useToastContext",providerName:"<ToastContextProvider>",strict:!0});function P(t){let{children:o,...r}=t,e=a(),n=m(e.getRootBindings(),r);return y(f,{as:"div",...n,children:[l("div",{...e.getGhostBeforeBindings()}),o,l("div",{...e.getGhostAfterBindings()})]})}function v(t){let o=C(3),r=a(),e;if(o[0]!==r||o[1]!==t){let n=m(r.getLabelBindings(),t);e=l(f,{as:"div",...n}),o[0]=r,o[1]=t,o[2]=e}else e=o[2];return e}function B(t){let o=C(3),r=a(),e;if(o[0]!==r||o[1]!==t){let n=m(r.getDescriptionBindings(),t);e=l(f,{as:"div",...n}),o[0]=r,o[1]=t,o[2]=e}else e=o[2];return e}function A(t){let{children:o,...r}=t,e=a(),n=m(e.getCloseTriggerBindings(),r);return h(o,n)}function G(t){let{children:o,...r}=t,e=a(),n=m(e.getActionTriggerBindings(),r);return h(o,n)}import{c as b}from"react/compiler-runtime";import{jsx as u}from"react/jsx-runtime";import{useId as E}from"react";import{createToastApi as N,createToastGroupApi as _,toastGroupMachine as k,toastMachine as z}from"@qualcomm-ui/core/toast";import{normalizeProps as R,useMachine as D}from"@qualcomm-ui/react-core/machine";import{PolymorphicAsElement as I,renderProp as q}from"@qualcomm-ui/react-core/system";import{mergeProps as w}from"@qualcomm-ui/utils/merge-props";function no(t){let o=b(7),{children:r,dir:e,toaster:n,...c}=t,d=E(),s;o[0]!==e||o[1]!==d||o[2]!==n?(s={dir:e,id:d,store:n},o[0]=e,o[1]=d,o[2]=n,o[3]=s):s=o[3];let i=D(k,s),p=_(i,R),L=w(p.getGroupBindings(),c),g;return o[4]!==r||o[5]!==i?(g=(T,$)=>u(F,{index:$,parent:i,value:T,children:j=>q(r,j)},T.id),o[4]=r,o[5]=i,o[6]=g):g=o[6],u(I,{as:"div",...L,children:p.getToasts().map(g)})}function F(t){let o=b(8),{index:r,parent:e,value:n}=t,c;o[0]!==r||o[1]!==e||o[2]!==n?(c={...n,index:r,parent:e},o[0]=r,o[1]=e,o[2]=n,o[3]=c):c=o[3];let s=D(z,c),i;if(o[4]!==s||o[5]!==t.children||o[6]!==t.value){let p=N(s,R);i=u(x,{value:p,children:t.children(t.value)}),o[4]=s,o[5]=t.children,o[6]=t.value,o[7]=i}else i=o[7];return i}var co={ActionTrigger:G,CloseTrigger:A,Description:B,Label:v,Root:P};export{co as CoreToast,no as CoreToaster,x as ToastContextProvider,a as useToastContext};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/toast/core-toast.tsx", "../../src/toast/toast-context.ts", "../../src/toast/toaster.tsx", "../../src/toast/index.ts"],
4
+ "sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nimport { bindingRenderProp, PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useToastContext } from \"./toast-context\";\nexport function CoreToastRoot(t0) {\n const {\n children,\n ...props\n } = t0;\n const context = useToastContext();\n const mergedProps = mergeProps(context.getRootBindings(), props);\n return jsxs(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children: [jsx(\"div\", {\n ...context.getGhostBeforeBindings()\n }), children, jsx(\"div\", {\n ...context.getGhostAfterBindings()\n })]\n });\n}\nexport function CoreToastLabel(props) {\n const $ = _c(3);\n const context = useToastContext();\n let t0;\n if ($[0] !== context || $[1] !== props) {\n const mergedProps = mergeProps(context.getLabelBindings(), props);\n t0 = jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps\n });\n $[0] = context;\n $[1] = props;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}\nexport function CoreToastDescription(props) {\n const $ = _c(3);\n const context = useToastContext();\n let t0;\n if ($[0] !== context || $[1] !== props) {\n const mergedProps = mergeProps(context.getDescriptionBindings(), props);\n t0 = jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps\n });\n $[0] = context;\n $[1] = props;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}\nexport function CoreToastCloseTrigger(t0) {\n const {\n children,\n ...props\n } = t0;\n const context = useToastContext();\n const mergedProps = mergeProps(context.getCloseTriggerBindings(), props);\n return bindingRenderProp(children, mergedProps);\n}\nexport function CoreToastActionTrigger(t0) {\n const {\n children,\n ...props\n } = t0;\n const context = useToastContext();\n const mergedProps = mergeProps(context.getActionTriggerBindings(), props);\n return bindingRenderProp(children, mergedProps);\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [ToastContextProvider, useToastContext] = createGuardedContext({\n hookName: \"useToastContext\",\n providerName: \"<ToastContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useId } from \"react\";\nimport { createToastApi, createToastGroupApi, toastGroupMachine, toastMachine } from \"@qualcomm-ui/core/toast\";\nimport { normalizeProps, useMachine } from \"@qualcomm-ui/react-core/machine\";\nimport { PolymorphicAsElement, renderProp } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { ToastContextProvider } from \"./toast-context\";\nexport function CoreToaster(t0) {\n const $ = _c(7);\n const {\n children,\n dir,\n toaster,\n ...props\n } = t0;\n const t1 = useId();\n let t2;\n if ($[0] !== dir || $[1] !== t1 || $[2] !== toaster) {\n t2 = {\n dir,\n id: t1,\n store: toaster\n };\n $[0] = dir;\n $[1] = t1;\n $[2] = toaster;\n $[3] = t2;\n } else {\n t2 = $[3];\n }\n const machine = useMachine(toastGroupMachine, t2);\n const api = createToastGroupApi(machine, normalizeProps);\n const mergedProps = mergeProps(api.getGroupBindings(), props);\n let t3;\n if ($[4] !== children || $[5] !== machine) {\n t3 = (toast, index) => jsx(ToastProvider, {\n index,\n parent: machine,\n value: toast,\n children: ctx => renderProp(children, ctx)\n }, toast.id);\n $[4] = children;\n $[5] = machine;\n $[6] = t3;\n } else {\n t3 = $[6];\n }\n return jsx(PolymorphicAsElement, {\n as: \"div\",\n ...mergedProps,\n children: api.getToasts().map(t3)\n });\n}\nfunction ToastProvider(props) {\n const $ = _c(8);\n const {\n index,\n parent,\n value\n } = props;\n let t0;\n if ($[0] !== index || $[1] !== parent || $[2] !== value) {\n t0 = {\n ...value,\n index,\n parent\n };\n $[0] = index;\n $[1] = parent;\n $[2] = value;\n $[3] = t0;\n } else {\n t0 = $[3];\n }\n const composedProps = t0;\n const machine = useMachine(toastMachine, composedProps);\n let t1;\n if ($[4] !== machine || $[5] !== props.children || $[6] !== props.value) {\n const api = createToastApi(machine, normalizeProps);\n t1 = jsx(ToastContextProvider, {\n value: api,\n children: props.children(props.value)\n });\n $[4] = machine;\n $[5] = props.children;\n $[6] = props.value;\n $[7] = t1;\n } else {\n t1 = $[7];\n }\n return t1;\n}", "import { CoreToastActionTrigger, CoreToastCloseTrigger, CoreToastDescription, CoreToastLabel, CoreToastRoot } from \"./core-toast\";\nexport * from \"./toast-context\";\nexport * from \"./toaster\";\nexport const CoreToast = {\n ActionTrigger: CoreToastActionTrigger,\n CloseTrigger: CoreToastCloseTrigger,\n Description: CoreToastDescription,\n Label: CoreToastLabel,\n Root: CoreToastRoot\n};"],
5
+ "mappings": "AAAA,OAAS,KAAKA,MAAU,yBACxB,OAAS,OAAAC,EAAK,QAAAC,MAAY,oBAC1B,OAAS,qBAAAC,EAAmB,sBAAAC,MAA0B,iCACtD,OAAS,cAAAC,MAAkB,iCCH3B,OAAS,wBAAAC,MAA4B,kCAC9B,GAAM,CAACC,EAAsBC,CAAe,EAAIF,EAAqB,CAC1E,SAAU,kBACV,aAAc,yBACd,OAAQ,EACV,CAAC,EDAM,SAASG,EAAcC,EAAI,CAChC,GAAM,CACJ,SAAAC,EACA,GAAGC,CACL,EAAIF,EACEG,EAAUC,EAAgB,EAC1BC,EAAcC,EAAWH,EAAQ,gBAAgB,EAAGD,CAAK,EAC/D,OAAOK,EAAKC,EAAoB,CAC9B,GAAI,MACJ,GAAGH,EACH,SAAU,CAACI,EAAI,MAAO,CACpB,GAAGN,EAAQ,uBAAuB,CACpC,CAAC,EAAGF,EAAUQ,EAAI,MAAO,CACvB,GAAGN,EAAQ,sBAAsB,CACnC,CAAC,CAAC,CACJ,CAAC,CACH,CACO,SAASO,EAAeR,EAAO,CACpC,IAAMS,EAAIC,EAAG,CAAC,EACRT,EAAUC,EAAgB,EAC5BJ,EACJ,GAAIW,EAAE,CAAC,IAAMR,GAAWQ,EAAE,CAAC,IAAMT,EAAO,CACtC,IAAMG,EAAcC,EAAWH,EAAQ,iBAAiB,EAAGD,CAAK,EAChEF,EAAKS,EAAID,EAAoB,CAC3B,GAAI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B,EACPnB,EAAE,CAAC,EAAIyB,EACPzB,EAAE,CAAC,EAAI0B,EACP1B,EAAE,CAAC,EAAID,GAEPA,EAAKC,EAAE,CAAC,EAGV,IAAMS,EAAUC,EAAWiB,EADL5B,CACgC,EAClDO,EACJ,GAAIN,EAAE,CAAC,IAAMS,GAAWT,EAAE,CAAC,IAAMK,EAAM,UAAYL,EAAE,CAAC,IAAMK,EAAM,MAAO,CACvE,IAAMO,EAAMgB,EAAenB,EAASK,CAAc,EAClDR,EAAKc,EAAIS,EAAsB,CAC7B,MAAOjB,EACP,SAAUP,EAAM,SAASA,EAAM,KAAK,CACtC,CAAC,EACDL,EAAE,CAAC,EAAIS,EACPT,EAAE,CAAC,EAAIK,EAAM,SACbL,EAAE,CAAC,EAAIK,EAAM,MACbL,EAAE,CAAC,EAAIM,CACT,MACEA,EAAKN,EAAE,CAAC,EAEV,OAAOM,CACT,CCzFO,IAAMwB,GAAY,CACvB,cAAeC,EACf,aAAcC,EACd,YAAaC,EACb,MAAOC,EACP,KAAMC,CACR",
6
+ "names": ["_c", "jsx", "jsxs", "bindingRenderProp", "PolymorphicElement", "mergeProps", "createGuardedContext", "ToastContextProvider", "useToastContext", "CoreToastRoot", "t0", "children", "props", "context", "useToastContext", "mergedProps", "mergeProps", "jsxs", "PolymorphicElement", "jsx", "CoreToastLabel", "$", "_c", "CoreToastDescription", "CoreToastCloseTrigger", "bindingRenderProp", "CoreToastActionTrigger", "_c", "jsx", "useId", "createToastApi", "createToastGroupApi", "toastGroupMachine", "toastMachine", "normalizeProps", "useMachine", "PolymorphicAsElement", "renderProp", "mergeProps", "CoreToaster", "t0", "$", "_c", "children", "dir", "toaster", "props", "t1", "useId", "t2", "machine", "useMachine", "toastGroupMachine", "api", "createToastGroupApi", "normalizeProps", "mergedProps", "mergeProps", "t3", "toast", "index", "jsx", "ToastProvider", "ctx", "renderProp", "PolymorphicAsElement", "parent", "value", "toastMachine", "createToastApi", "ToastContextProvider", "CoreToast", "CoreToastActionTrigger", "CoreToastCloseTrigger", "CoreToastDescription", "CoreToastLabel", "CoreToastRoot"]
7
+ }
@@ -0,0 +1,3 @@
1
+ import type { ToastApi } from "@qualcomm-ui/core/toast";
2
+ export declare const ToastContextProvider: import("react").Provider<ToastApi<any>>, useToastContext: (requireContext?: boolean) => ToastApi<any>;
3
+ //# sourceMappingURL=toast-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-context.d.ts","sourceRoot":"","sources":["../../src/toast/toast-context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAA;AAGrD,eAAO,MAAO,oBAAoB,2CAAE,eAAe,6CAK/C,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { type ReactElement } from "react";
2
+ import { type ToastGroupProps, type ToastOptions, type ToastStore } from "@qualcomm-ui/core/toast";
3
+ import { type ElementRenderProp, type FunctionRenderProp } from "@qualcomm-ui/react-core/system";
4
+ export interface CoreToasterProps extends Omit<ElementRenderProp<"div">, "children" | "dir">, Omit<ToastGroupProps, "store" | "id"> {
5
+ /**
6
+ * {@link https://react-next.qui.qualcomm.com/render-props#render-prop Render Prop}
7
+ * that provides the {@link ToastOptions}.
8
+ *
9
+ * @inheritDoc
10
+ */
11
+ children: FunctionRenderProp<ToastOptions<ReactElement>>;
12
+ /**
13
+ * The {@link ToastStore} instance.
14
+ * @inheritDoc
15
+ */
16
+ toaster: ToastStore;
17
+ }
18
+ export declare function CoreToaster({ children, dir, toaster, ...props }: CoreToasterProps): ReactElement;
19
+ //# sourceMappingURL=toaster.d.ts.map