@cdx-ui/primitives 0.0.1-alpha.9 → 0.0.1-beta.10

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 (555) hide show
  1. package/README.md +35 -0
  2. package/lib/commonjs/avatar/context.js +11 -0
  3. package/lib/commonjs/avatar/context.js.map +1 -0
  4. package/lib/commonjs/avatar/createAvatarBadge.js +20 -0
  5. package/lib/commonjs/avatar/createAvatarBadge.js.map +1 -0
  6. package/lib/commonjs/avatar/createAvatarIcon.js +30 -0
  7. package/lib/commonjs/avatar/createAvatarIcon.js.map +1 -0
  8. package/lib/commonjs/avatar/createAvatarImage.js +51 -0
  9. package/lib/commonjs/avatar/createAvatarImage.js.map +1 -0
  10. package/lib/commonjs/avatar/createAvatarRoot.js +34 -0
  11. package/lib/commonjs/avatar/createAvatarRoot.js.map +1 -0
  12. package/lib/commonjs/avatar/createAvatarText.js +42 -0
  13. package/lib/commonjs/avatar/createAvatarText.js.map +1 -0
  14. package/lib/commonjs/avatar/index.js +30 -0
  15. package/lib/commonjs/avatar/index.js.map +1 -0
  16. package/lib/commonjs/avatar/types.js +6 -0
  17. package/lib/commonjs/avatar/types.js.map +1 -0
  18. package/lib/commonjs/button/index.js +25 -19
  19. package/lib/commonjs/button/index.js.map +1 -1
  20. package/lib/commonjs/checkbox/createCheckboxIcon.js +3 -2
  21. package/lib/commonjs/checkbox/createCheckboxIcon.js.map +1 -1
  22. package/lib/commonjs/checkbox/createCheckboxRoot.web.js +2 -0
  23. package/lib/commonjs/checkbox/createCheckboxRoot.web.js.map +1 -1
  24. package/lib/commonjs/checkbox/index.js +19 -21
  25. package/lib/commonjs/checkbox/index.js.map +1 -1
  26. package/lib/commonjs/dialog/context.js +11 -0
  27. package/lib/commonjs/dialog/context.js.map +1 -0
  28. package/lib/commonjs/dialog/createDialogBody.js +21 -0
  29. package/lib/commonjs/dialog/createDialogBody.js.map +1 -0
  30. package/lib/commonjs/dialog/createDialogClose.js +37 -0
  31. package/lib/commonjs/dialog/createDialogClose.js.map +1 -0
  32. package/lib/commonjs/dialog/createDialogContent.js +141 -0
  33. package/lib/commonjs/dialog/createDialogContent.js.map +1 -0
  34. package/lib/commonjs/dialog/createDialogDescription.js +30 -0
  35. package/lib/commonjs/dialog/createDialogDescription.js.map +1 -0
  36. package/lib/commonjs/dialog/createDialogFooter.js +21 -0
  37. package/lib/commonjs/dialog/createDialogFooter.js.map +1 -0
  38. package/lib/commonjs/dialog/createDialogHeader.js +21 -0
  39. package/lib/commonjs/dialog/createDialogHeader.js.map +1 -0
  40. package/lib/commonjs/dialog/createDialogRoot.js +54 -0
  41. package/lib/commonjs/dialog/createDialogRoot.js.map +1 -0
  42. package/lib/commonjs/dialog/createDialogTitle.js +21 -0
  43. package/lib/commonjs/dialog/createDialogTitle.js.map +1 -0
  44. package/lib/commonjs/dialog/createDialogTrigger.js +37 -0
  45. package/lib/commonjs/dialog/createDialogTrigger.js.map +1 -0
  46. package/lib/commonjs/dialog/index.js +60 -0
  47. package/lib/commonjs/dialog/index.js.map +1 -0
  48. package/lib/commonjs/dialog/types.js +6 -0
  49. package/lib/commonjs/dialog/types.js.map +1 -0
  50. package/lib/commonjs/field/createFieldError.js +41 -0
  51. package/lib/commonjs/field/createFieldError.js.map +1 -0
  52. package/lib/commonjs/field/createFieldErrorIcon.js +18 -0
  53. package/lib/commonjs/field/createFieldErrorIcon.js.map +1 -0
  54. package/lib/commonjs/field/createFieldErrorText.js +18 -0
  55. package/lib/commonjs/field/createFieldErrorText.js.map +1 -0
  56. package/lib/commonjs/field/createFieldHelper.js +41 -0
  57. package/lib/commonjs/field/createFieldHelper.js.map +1 -0
  58. package/lib/commonjs/field/createFieldHelperText.js +18 -0
  59. package/lib/commonjs/field/createFieldHelperText.js.map +1 -0
  60. package/lib/commonjs/field/createFieldLabel.js +36 -0
  61. package/lib/commonjs/field/createFieldLabel.js.map +1 -0
  62. package/lib/commonjs/field/createFieldRoot.js +35 -0
  63. package/lib/commonjs/field/createFieldRoot.js.map +1 -0
  64. package/lib/commonjs/field/index.js +46 -0
  65. package/lib/commonjs/field/index.js.map +1 -0
  66. package/lib/commonjs/field/types.js +6 -0
  67. package/lib/commonjs/field/types.js.map +1 -0
  68. package/lib/commonjs/form/createFormRoot.js +21 -0
  69. package/lib/commonjs/form/createFormRoot.js.map +1 -0
  70. package/lib/commonjs/form/index.js +15 -0
  71. package/lib/commonjs/form/index.js.map +1 -0
  72. package/lib/commonjs/form/types.js +6 -0
  73. package/lib/commonjs/form/types.js.map +1 -0
  74. package/lib/commonjs/index.js +105 -1
  75. package/lib/commonjs/index.js.map +1 -1
  76. package/lib/commonjs/input/createInputField.js +7 -2
  77. package/lib/commonjs/input/createInputField.js.map +1 -1
  78. package/lib/commonjs/input/index.js +13 -19
  79. package/lib/commonjs/input/index.js.map +1 -1
  80. package/lib/commonjs/link/LinkProvider.js +28 -0
  81. package/lib/commonjs/link/LinkProvider.js.map +1 -0
  82. package/lib/commonjs/link/createLink.js +74 -0
  83. package/lib/commonjs/link/createLink.js.map +1 -0
  84. package/lib/commonjs/link/index.js +27 -0
  85. package/lib/commonjs/link/index.js.map +1 -0
  86. package/lib/commonjs/link/types.js +6 -0
  87. package/lib/commonjs/link/types.js.map +1 -0
  88. package/lib/commonjs/link/useLink.js +56 -0
  89. package/lib/commonjs/link/useLink.js.map +1 -0
  90. package/lib/commonjs/list-item/context.js +11 -0
  91. package/lib/commonjs/list-item/context.js.map +1 -0
  92. package/lib/commonjs/list-item/createListItemContent.js +30 -0
  93. package/lib/commonjs/list-item/createListItemContent.js.map +1 -0
  94. package/lib/commonjs/list-item/createListItemDescription.js +25 -0
  95. package/lib/commonjs/list-item/createListItemDescription.js.map +1 -0
  96. package/lib/commonjs/list-item/createListItemLeadingSlot.js +34 -0
  97. package/lib/commonjs/list-item/createListItemLeadingSlot.js.map +1 -0
  98. package/lib/commonjs/list-item/createListItemMeta.js +25 -0
  99. package/lib/commonjs/list-item/createListItemMeta.js.map +1 -0
  100. package/lib/commonjs/list-item/createListItemRoot.js +142 -0
  101. package/lib/commonjs/list-item/createListItemRoot.js.map +1 -0
  102. package/lib/commonjs/list-item/createListItemSectionHeader.js +54 -0
  103. package/lib/commonjs/list-item/createListItemSectionHeader.js.map +1 -0
  104. package/lib/commonjs/list-item/createListItemTitle.js +25 -0
  105. package/lib/commonjs/list-item/createListItemTitle.js.map +1 -0
  106. package/lib/commonjs/list-item/createListItemTrailingSlot.js +28 -0
  107. package/lib/commonjs/list-item/createListItemTrailingSlot.js.map +1 -0
  108. package/lib/commonjs/list-item/index.js +55 -0
  109. package/lib/commonjs/list-item/index.js.map +1 -0
  110. package/lib/commonjs/list-item/types.js +6 -0
  111. package/lib/commonjs/list-item/types.js.map +1 -0
  112. package/lib/commonjs/otp-input/context.js +14 -0
  113. package/lib/commonjs/otp-input/context.js.map +1 -0
  114. package/lib/commonjs/otp-input/createOtpInputCell.js +29 -0
  115. package/lib/commonjs/otp-input/createOtpInputCell.js.map +1 -0
  116. package/lib/commonjs/otp-input/createOtpInputField.js +104 -0
  117. package/lib/commonjs/otp-input/createOtpInputField.js.map +1 -0
  118. package/lib/commonjs/otp-input/createOtpInputRoot.js +136 -0
  119. package/lib/commonjs/otp-input/createOtpInputRoot.js.map +1 -0
  120. package/lib/commonjs/otp-input/index.js +48 -0
  121. package/lib/commonjs/otp-input/index.js.map +1 -0
  122. package/lib/commonjs/otp-input/types.js +6 -0
  123. package/lib/commonjs/otp-input/types.js.map +1 -0
  124. package/lib/commonjs/otp-input/utils/applyValueChange.js +73 -0
  125. package/lib/commonjs/otp-input/utils/applyValueChange.js.map +1 -0
  126. package/lib/commonjs/otp-input/utils/filterValue.js +46 -0
  127. package/lib/commonjs/otp-input/utils/filterValue.js.map +1 -0
  128. package/lib/commonjs/overlay/OverlayContainer.js +8 -11
  129. package/lib/commonjs/overlay/OverlayContainer.js.map +1 -1
  130. package/lib/commonjs/overlay/index.js +7 -0
  131. package/lib/commonjs/overlay/index.js.map +1 -1
  132. package/lib/commonjs/overlay/useEscapeKey.js +14 -0
  133. package/lib/commonjs/overlay/useEscapeKey.js.map +1 -0
  134. package/lib/commonjs/overlay/useEscapeKey.web.js +30 -0
  135. package/lib/commonjs/overlay/useEscapeKey.web.js.map +1 -0
  136. package/lib/commonjs/progress/context.js +11 -0
  137. package/lib/commonjs/progress/context.js.map +1 -0
  138. package/lib/commonjs/progress/createProgressIndicator.js +42 -0
  139. package/lib/commonjs/progress/createProgressIndicator.js.map +1 -0
  140. package/lib/commonjs/progress/createProgressRoot.js +96 -0
  141. package/lib/commonjs/progress/createProgressRoot.js.map +1 -0
  142. package/lib/commonjs/progress/index.js +25 -0
  143. package/lib/commonjs/progress/index.js.map +1 -0
  144. package/lib/commonjs/progress/types.js +6 -0
  145. package/lib/commonjs/progress/types.js.map +1 -0
  146. package/lib/commonjs/select/context.js +8 -43
  147. package/lib/commonjs/select/context.js.map +1 -1
  148. package/lib/commonjs/select/createSelectItem.js +1 -1
  149. package/lib/commonjs/select/createSelectItem.js.map +1 -1
  150. package/lib/commonjs/select/createSelectRoot.js +9 -6
  151. package/lib/commonjs/select/createSelectRoot.js.map +1 -1
  152. package/lib/commonjs/select/createSelectTrigger.js +53 -12
  153. package/lib/commonjs/select/createSelectTrigger.js.map +1 -1
  154. package/lib/commonjs/utils/createPortal.js +23 -0
  155. package/lib/commonjs/utils/createPortal.js.map +1 -0
  156. package/lib/commonjs/utils/dataAttributes.web.js +1 -4
  157. package/lib/commonjs/utils/dataAttributes.web.js.map +1 -1
  158. package/lib/module/avatar/context.js +5 -0
  159. package/lib/module/avatar/context.js.map +1 -0
  160. package/lib/module/{input/createInputIcon.js → avatar/createAvatarBadge.js} +3 -3
  161. package/lib/module/avatar/createAvatarBadge.js.map +1 -0
  162. package/lib/module/avatar/createAvatarIcon.js +25 -0
  163. package/lib/module/avatar/createAvatarIcon.js.map +1 -0
  164. package/lib/module/avatar/createAvatarImage.js +46 -0
  165. package/lib/module/avatar/createAvatarImage.js.map +1 -0
  166. package/lib/module/avatar/createAvatarRoot.js +29 -0
  167. package/lib/module/avatar/createAvatarRoot.js.map +1 -0
  168. package/lib/module/avatar/createAvatarText.js +37 -0
  169. package/lib/module/avatar/createAvatarText.js.map +1 -0
  170. package/lib/module/avatar/index.js +26 -0
  171. package/lib/module/avatar/index.js.map +1 -0
  172. package/lib/module/avatar/types.js +4 -0
  173. package/lib/module/avatar/types.js.map +1 -0
  174. package/lib/module/button/index.js +19 -19
  175. package/lib/module/button/index.js.map +1 -1
  176. package/lib/module/checkbox/createCheckboxIcon.js +3 -2
  177. package/lib/module/checkbox/createCheckboxIcon.js.map +1 -1
  178. package/lib/module/checkbox/createCheckboxRoot.web.js +2 -0
  179. package/lib/module/checkbox/createCheckboxRoot.web.js.map +1 -1
  180. package/lib/module/checkbox/index.js +18 -19
  181. package/lib/module/checkbox/index.js.map +1 -1
  182. package/lib/module/dialog/context.js +5 -0
  183. package/lib/module/dialog/context.js.map +1 -0
  184. package/lib/module/dialog/createDialogBody.js +15 -0
  185. package/lib/module/dialog/createDialogBody.js.map +1 -0
  186. package/lib/module/dialog/createDialogClose.js +31 -0
  187. package/lib/module/dialog/createDialogClose.js.map +1 -0
  188. package/lib/module/dialog/createDialogContent.js +136 -0
  189. package/lib/module/dialog/createDialogContent.js.map +1 -0
  190. package/lib/module/dialog/createDialogDescription.js +24 -0
  191. package/lib/module/dialog/createDialogDescription.js.map +1 -0
  192. package/lib/module/dialog/createDialogFooter.js +15 -0
  193. package/lib/module/dialog/createDialogFooter.js.map +1 -0
  194. package/lib/module/dialog/createDialogHeader.js +15 -0
  195. package/lib/module/dialog/createDialogHeader.js.map +1 -0
  196. package/lib/module/dialog/createDialogRoot.js +49 -0
  197. package/lib/module/dialog/createDialogRoot.js.map +1 -0
  198. package/lib/module/dialog/createDialogTitle.js +15 -0
  199. package/lib/module/dialog/createDialogTitle.js.map +1 -0
  200. package/lib/module/dialog/createDialogTrigger.js +31 -0
  201. package/lib/module/dialog/createDialogTrigger.js.map +1 -0
  202. package/lib/module/dialog/index.js +45 -0
  203. package/lib/module/dialog/index.js.map +1 -0
  204. package/lib/module/dialog/types.js +4 -0
  205. package/lib/module/dialog/types.js.map +1 -0
  206. package/lib/module/field/createFieldError.js +35 -0
  207. package/lib/module/field/createFieldError.js.map +1 -0
  208. package/lib/module/field/createFieldErrorIcon.js +13 -0
  209. package/lib/module/field/createFieldErrorIcon.js.map +1 -0
  210. package/lib/module/field/createFieldErrorText.js +13 -0
  211. package/lib/module/field/createFieldErrorText.js.map +1 -0
  212. package/lib/module/field/createFieldHelper.js +35 -0
  213. package/lib/module/field/createFieldHelper.js.map +1 -0
  214. package/lib/module/field/createFieldHelperText.js +13 -0
  215. package/lib/module/field/createFieldHelperText.js.map +1 -0
  216. package/lib/module/field/createFieldLabel.js +31 -0
  217. package/lib/module/field/createFieldLabel.js.map +1 -0
  218. package/lib/module/field/createFieldRoot.js +29 -0
  219. package/lib/module/field/createFieldRoot.js.map +1 -0
  220. package/lib/module/field/index.js +42 -0
  221. package/lib/module/field/index.js.map +1 -0
  222. package/lib/module/field/types.js +4 -0
  223. package/lib/module/field/types.js.map +1 -0
  224. package/lib/module/form/createFormRoot.js +15 -0
  225. package/lib/module/form/createFormRoot.js.map +1 -0
  226. package/lib/module/form/index.js +11 -0
  227. package/lib/module/form/index.js.map +1 -0
  228. package/lib/module/form/types.js +4 -0
  229. package/lib/module/form/types.js.map +1 -0
  230. package/lib/module/index.js +9 -0
  231. package/lib/module/index.js.map +1 -1
  232. package/lib/module/input/createInputField.js +8 -3
  233. package/lib/module/input/createInputField.js.map +1 -1
  234. package/lib/module/input/index.js +12 -17
  235. package/lib/module/input/index.js.map +1 -1
  236. package/lib/module/link/LinkProvider.js +23 -0
  237. package/lib/module/link/LinkProvider.js.map +1 -0
  238. package/lib/module/link/createLink.js +68 -0
  239. package/lib/module/link/createLink.js.map +1 -0
  240. package/lib/module/link/index.js +6 -0
  241. package/lib/module/link/index.js.map +1 -0
  242. package/lib/module/link/types.js +4 -0
  243. package/lib/module/link/types.js.map +1 -0
  244. package/lib/module/link/useLink.js +52 -0
  245. package/lib/module/link/useLink.js.map +1 -0
  246. package/lib/module/list-item/context.js +5 -0
  247. package/lib/module/list-item/context.js.map +1 -0
  248. package/lib/module/list-item/createListItemContent.js +24 -0
  249. package/lib/module/list-item/createListItemContent.js.map +1 -0
  250. package/lib/module/list-item/createListItemDescription.js +19 -0
  251. package/lib/module/list-item/createListItemDescription.js.map +1 -0
  252. package/lib/module/list-item/createListItemLeadingSlot.js +28 -0
  253. package/lib/module/list-item/createListItemLeadingSlot.js.map +1 -0
  254. package/lib/module/list-item/createListItemMeta.js +19 -0
  255. package/lib/module/list-item/createListItemMeta.js.map +1 -0
  256. package/lib/module/list-item/createListItemRoot.js +136 -0
  257. package/lib/module/list-item/createListItemRoot.js.map +1 -0
  258. package/lib/module/list-item/createListItemSectionHeader.js +48 -0
  259. package/lib/module/list-item/createListItemSectionHeader.js.map +1 -0
  260. package/lib/module/list-item/createListItemTitle.js +19 -0
  261. package/lib/module/list-item/createListItemTitle.js.map +1 -0
  262. package/lib/module/list-item/createListItemTrailingSlot.js +22 -0
  263. package/lib/module/list-item/createListItemTrailingSlot.js.map +1 -0
  264. package/lib/module/list-item/index.js +39 -0
  265. package/lib/module/list-item/index.js.map +1 -0
  266. package/lib/module/list-item/types.js +4 -0
  267. package/lib/module/list-item/types.js.map +1 -0
  268. package/lib/module/otp-input/context.js +6 -0
  269. package/lib/module/otp-input/context.js.map +1 -0
  270. package/lib/module/otp-input/createOtpInputCell.js +24 -0
  271. package/lib/module/otp-input/createOtpInputCell.js.map +1 -0
  272. package/lib/module/otp-input/createOtpInputField.js +99 -0
  273. package/lib/module/otp-input/createOtpInputField.js.map +1 -0
  274. package/lib/module/otp-input/createOtpInputRoot.js +131 -0
  275. package/lib/module/otp-input/createOtpInputRoot.js.map +1 -0
  276. package/lib/module/otp-input/index.js +20 -0
  277. package/lib/module/otp-input/index.js.map +1 -0
  278. package/lib/module/otp-input/types.js +4 -0
  279. package/lib/module/otp-input/types.js.map +1 -0
  280. package/lib/module/otp-input/utils/applyValueChange.js +69 -0
  281. package/lib/module/otp-input/utils/applyValueChange.js.map +1 -0
  282. package/lib/module/otp-input/utils/filterValue.js +40 -0
  283. package/lib/module/otp-input/utils/filterValue.js.map +1 -0
  284. package/lib/module/overlay/OverlayContainer.js +8 -11
  285. package/lib/module/overlay/OverlayContainer.js.map +1 -1
  286. package/lib/module/overlay/index.js +1 -0
  287. package/lib/module/overlay/index.js.map +1 -1
  288. package/lib/module/overlay/useEscapeKey.js +10 -0
  289. package/lib/module/overlay/useEscapeKey.js.map +1 -0
  290. package/lib/module/overlay/useEscapeKey.web.js +27 -0
  291. package/lib/module/overlay/useEscapeKey.web.js.map +1 -0
  292. package/lib/module/progress/context.js +5 -0
  293. package/lib/module/progress/context.js.map +1 -0
  294. package/lib/module/progress/createProgressIndicator.js +37 -0
  295. package/lib/module/progress/createProgressIndicator.js.map +1 -0
  296. package/lib/module/progress/createProgressRoot.js +91 -0
  297. package/lib/module/progress/createProgressRoot.js.map +1 -0
  298. package/lib/module/progress/index.js +15 -0
  299. package/lib/module/progress/index.js.map +1 -0
  300. package/lib/module/progress/types.js +4 -0
  301. package/lib/module/progress/types.js.map +1 -0
  302. package/lib/module/select/context.js +4 -42
  303. package/lib/module/select/context.js.map +1 -1
  304. package/lib/module/select/createSelectItem.js +2 -2
  305. package/lib/module/select/createSelectItem.js.map +1 -1
  306. package/lib/module/select/createSelectRoot.js +10 -7
  307. package/lib/module/select/createSelectRoot.js.map +1 -1
  308. package/lib/module/select/createSelectTrigger.js +56 -15
  309. package/lib/module/select/createSelectTrigger.js.map +1 -1
  310. package/lib/module/utils/createPortal.js +19 -0
  311. package/lib/module/utils/createPortal.js.map +1 -0
  312. package/lib/module/utils/dataAttributes.web.js +1 -4
  313. package/lib/module/utils/dataAttributes.web.js.map +1 -1
  314. package/lib/typescript/avatar/context.d.ts +6 -0
  315. package/lib/typescript/avatar/context.d.ts.map +1 -0
  316. package/lib/typescript/avatar/createAvatarBadge.d.ts +4 -0
  317. package/lib/typescript/avatar/createAvatarBadge.d.ts.map +1 -0
  318. package/lib/typescript/avatar/createAvatarIcon.d.ts +4 -0
  319. package/lib/typescript/avatar/createAvatarIcon.d.ts.map +1 -0
  320. package/lib/typescript/avatar/createAvatarImage.d.ts +4 -0
  321. package/lib/typescript/avatar/createAvatarImage.d.ts.map +1 -0
  322. package/lib/typescript/avatar/createAvatarRoot.d.ts +4 -0
  323. package/lib/typescript/avatar/createAvatarRoot.d.ts.map +1 -0
  324. package/lib/typescript/avatar/createAvatarText.d.ts +4 -0
  325. package/lib/typescript/avatar/createAvatarText.d.ts.map +1 -0
  326. package/lib/typescript/avatar/index.d.ts +11 -0
  327. package/lib/typescript/avatar/index.d.ts.map +1 -0
  328. package/lib/typescript/avatar/types.d.ts +33 -0
  329. package/lib/typescript/avatar/types.d.ts.map +1 -0
  330. package/lib/typescript/button/index.d.ts +2 -1
  331. package/lib/typescript/button/index.d.ts.map +1 -1
  332. package/lib/typescript/checkbox/context.d.ts +2 -2
  333. package/lib/typescript/checkbox/createCheckboxRoot.web.d.ts.map +1 -1
  334. package/lib/typescript/checkbox/index.d.ts +3 -2
  335. package/lib/typescript/checkbox/index.d.ts.map +1 -1
  336. package/lib/typescript/checkbox/useCheckboxRoot.d.ts +8 -3
  337. package/lib/typescript/checkbox/useCheckboxRoot.d.ts.map +1 -1
  338. package/lib/typescript/dialog/context.d.ts +6 -0
  339. package/lib/typescript/dialog/context.d.ts.map +1 -0
  340. package/lib/typescript/dialog/createDialogBody.d.ts +4 -0
  341. package/lib/typescript/dialog/createDialogBody.d.ts.map +1 -0
  342. package/lib/typescript/dialog/createDialogClose.d.ts +4 -0
  343. package/lib/typescript/dialog/createDialogClose.d.ts.map +1 -0
  344. package/lib/typescript/dialog/createDialogContent.d.ts +4 -0
  345. package/lib/typescript/dialog/createDialogContent.d.ts.map +1 -0
  346. package/lib/typescript/dialog/createDialogDescription.d.ts +4 -0
  347. package/lib/typescript/dialog/createDialogDescription.d.ts.map +1 -0
  348. package/lib/typescript/dialog/createDialogFooter.d.ts +4 -0
  349. package/lib/typescript/dialog/createDialogFooter.d.ts.map +1 -0
  350. package/lib/typescript/dialog/createDialogHeader.d.ts +4 -0
  351. package/lib/typescript/dialog/createDialogHeader.d.ts.map +1 -0
  352. package/lib/typescript/dialog/createDialogRoot.d.ts +4 -0
  353. package/lib/typescript/dialog/createDialogRoot.d.ts.map +1 -0
  354. package/lib/typescript/dialog/createDialogTitle.d.ts +4 -0
  355. package/lib/typescript/dialog/createDialogTitle.d.ts.map +1 -0
  356. package/lib/typescript/dialog/createDialogTrigger.d.ts +4 -0
  357. package/lib/typescript/dialog/createDialogTrigger.d.ts.map +1 -0
  358. package/lib/typescript/dialog/index.d.ts +18 -0
  359. package/lib/typescript/dialog/index.d.ts.map +1 -0
  360. package/lib/typescript/dialog/types.d.ts +52 -0
  361. package/lib/typescript/dialog/types.d.ts.map +1 -0
  362. package/lib/typescript/field/createFieldError.d.ts +5 -0
  363. package/lib/typescript/field/createFieldError.d.ts.map +1 -0
  364. package/lib/typescript/field/createFieldErrorIcon.d.ts +5 -0
  365. package/lib/typescript/field/createFieldErrorIcon.d.ts.map +1 -0
  366. package/lib/typescript/field/createFieldErrorText.d.ts +5 -0
  367. package/lib/typescript/field/createFieldErrorText.d.ts.map +1 -0
  368. package/lib/typescript/field/createFieldHelper.d.ts +5 -0
  369. package/lib/typescript/field/createFieldHelper.d.ts.map +1 -0
  370. package/lib/typescript/field/createFieldHelperText.d.ts +5 -0
  371. package/lib/typescript/field/createFieldHelperText.d.ts.map +1 -0
  372. package/lib/typescript/field/createFieldLabel.d.ts +6 -0
  373. package/lib/typescript/field/createFieldLabel.d.ts.map +1 -0
  374. package/lib/typescript/field/createFieldRoot.d.ts +6 -0
  375. package/lib/typescript/field/createFieldRoot.d.ts.map +1 -0
  376. package/lib/typescript/field/index.d.ts +13 -0
  377. package/lib/typescript/field/index.d.ts.map +1 -0
  378. package/lib/typescript/field/types.d.ts +63 -0
  379. package/lib/typescript/field/types.d.ts.map +1 -0
  380. package/lib/typescript/form/createFormRoot.d.ts +4 -0
  381. package/lib/typescript/form/createFormRoot.d.ts.map +1 -0
  382. package/lib/typescript/form/index.d.ts +6 -0
  383. package/lib/typescript/form/index.d.ts.map +1 -0
  384. package/lib/typescript/form/types.d.ts +14 -0
  385. package/lib/typescript/form/types.d.ts.map +1 -0
  386. package/lib/typescript/index.d.ts +9 -0
  387. package/lib/typescript/index.d.ts.map +1 -1
  388. package/lib/typescript/input/createInputField.d.ts.map +1 -1
  389. package/lib/typescript/input/index.d.ts +3 -3
  390. package/lib/typescript/input/index.d.ts.map +1 -1
  391. package/lib/typescript/input/types.d.ts +1 -2
  392. package/lib/typescript/input/types.d.ts.map +1 -1
  393. package/lib/typescript/link/LinkProvider.d.ts +36 -0
  394. package/lib/typescript/link/LinkProvider.d.ts.map +1 -0
  395. package/lib/typescript/link/createLink.d.ts +6 -0
  396. package/lib/typescript/link/createLink.d.ts.map +1 -0
  397. package/lib/typescript/link/index.d.ts +6 -0
  398. package/lib/typescript/link/index.d.ts.map +1 -0
  399. package/lib/typescript/link/types.d.ts +45 -0
  400. package/lib/typescript/link/types.d.ts.map +1 -0
  401. package/lib/typescript/link/useLink.d.ts +9 -0
  402. package/lib/typescript/link/useLink.d.ts.map +1 -0
  403. package/lib/typescript/list-item/context.d.ts +6 -0
  404. package/lib/typescript/list-item/context.d.ts.map +1 -0
  405. package/lib/typescript/list-item/createListItemContent.d.ts +3 -0
  406. package/lib/typescript/list-item/createListItemContent.d.ts.map +1 -0
  407. package/lib/typescript/list-item/createListItemDescription.d.ts +3 -0
  408. package/lib/typescript/list-item/createListItemDescription.d.ts.map +1 -0
  409. package/lib/typescript/list-item/createListItemLeadingSlot.d.ts +4 -0
  410. package/lib/typescript/list-item/createListItemLeadingSlot.d.ts.map +1 -0
  411. package/lib/typescript/list-item/createListItemMeta.d.ts +3 -0
  412. package/lib/typescript/list-item/createListItemMeta.d.ts.map +1 -0
  413. package/lib/typescript/list-item/createListItemRoot.d.ts +4 -0
  414. package/lib/typescript/list-item/createListItemRoot.d.ts.map +1 -0
  415. package/lib/typescript/list-item/createListItemSectionHeader.d.ts +4 -0
  416. package/lib/typescript/list-item/createListItemSectionHeader.d.ts.map +1 -0
  417. package/lib/typescript/list-item/createListItemTitle.d.ts +3 -0
  418. package/lib/typescript/list-item/createListItemTitle.d.ts.map +1 -0
  419. package/lib/typescript/list-item/createListItemTrailingSlot.d.ts +3 -0
  420. package/lib/typescript/list-item/createListItemTrailingSlot.d.ts.map +1 -0
  421. package/lib/typescript/list-item/index.d.ts +16 -0
  422. package/lib/typescript/list-item/index.d.ts.map +1 -0
  423. package/lib/typescript/list-item/types.d.ts +86 -0
  424. package/lib/typescript/list-item/types.d.ts.map +1 -0
  425. package/lib/typescript/otp-input/context.d.ts +10 -0
  426. package/lib/typescript/otp-input/context.d.ts.map +1 -0
  427. package/lib/typescript/otp-input/createOtpInputCell.d.ts +4 -0
  428. package/lib/typescript/otp-input/createOtpInputCell.d.ts.map +1 -0
  429. package/lib/typescript/otp-input/createOtpInputField.d.ts +4 -0
  430. package/lib/typescript/otp-input/createOtpInputField.d.ts.map +1 -0
  431. package/lib/typescript/otp-input/createOtpInputRoot.d.ts +4 -0
  432. package/lib/typescript/otp-input/createOtpInputRoot.d.ts.map +1 -0
  433. package/lib/typescript/otp-input/index.d.ts +11 -0
  434. package/lib/typescript/otp-input/index.d.ts.map +1 -0
  435. package/lib/typescript/otp-input/types.d.ts +75 -0
  436. package/lib/typescript/otp-input/types.d.ts.map +1 -0
  437. package/lib/typescript/otp-input/utils/applyValueChange.d.ts +10 -0
  438. package/lib/typescript/otp-input/utils/applyValueChange.d.ts.map +1 -0
  439. package/lib/typescript/otp-input/utils/filterValue.d.ts +7 -0
  440. package/lib/typescript/otp-input/utils/filterValue.d.ts.map +1 -0
  441. package/lib/typescript/overlay/OverlayContainer.d.ts +5 -1
  442. package/lib/typescript/overlay/OverlayContainer.d.ts.map +1 -1
  443. package/lib/typescript/overlay/index.d.ts +1 -0
  444. package/lib/typescript/overlay/index.d.ts.map +1 -1
  445. package/lib/typescript/overlay/useEscapeKey.d.ts +6 -0
  446. package/lib/typescript/overlay/useEscapeKey.d.ts.map +1 -0
  447. package/lib/typescript/overlay/useEscapeKey.web.d.ts +6 -0
  448. package/lib/typescript/overlay/useEscapeKey.web.d.ts.map +1 -0
  449. package/lib/typescript/progress/context.d.ts +13 -0
  450. package/lib/typescript/progress/context.d.ts.map +1 -0
  451. package/lib/typescript/progress/createProgressIndicator.d.ts +3 -0
  452. package/lib/typescript/progress/createProgressIndicator.d.ts.map +1 -0
  453. package/lib/typescript/progress/createProgressRoot.d.ts +4 -0
  454. package/lib/typescript/progress/createProgressRoot.d.ts.map +1 -0
  455. package/lib/typescript/progress/index.d.ts +10 -0
  456. package/lib/typescript/progress/index.d.ts.map +1 -0
  457. package/lib/typescript/progress/types.d.ts +25 -0
  458. package/lib/typescript/progress/types.d.ts.map +1 -0
  459. package/lib/typescript/select/context.d.ts +14 -7
  460. package/lib/typescript/select/context.d.ts.map +1 -1
  461. package/lib/typescript/select/createSelectRoot.d.ts.map +1 -1
  462. package/lib/typescript/select/createSelectTrigger.d.ts +2 -7
  463. package/lib/typescript/select/createSelectTrigger.d.ts.map +1 -1
  464. package/lib/typescript/select/types.d.ts +4 -1
  465. package/lib/typescript/select/types.d.ts.map +1 -1
  466. package/lib/typescript/utils/createPortal.d.ts +11 -0
  467. package/lib/typescript/utils/createPortal.d.ts.map +1 -0
  468. package/lib/typescript/utils/dataAttributes.web.d.ts.map +1 -1
  469. package/package.json +8 -3
  470. package/src/avatar/context.tsx +5 -0
  471. package/src/avatar/createAvatarBadge.tsx +12 -0
  472. package/src/avatar/createAvatarIcon.tsx +16 -0
  473. package/src/avatar/createAvatarImage.tsx +40 -0
  474. package/src/avatar/createAvatarRoot.tsx +23 -0
  475. package/src/avatar/createAvatarText.tsx +30 -0
  476. package/src/avatar/index.ts +43 -0
  477. package/src/avatar/types.ts +77 -0
  478. package/src/button/index.tsx +19 -19
  479. package/src/checkbox/createCheckboxIcon.tsx +2 -2
  480. package/src/checkbox/createCheckboxRoot.web.tsx +2 -0
  481. package/src/checkbox/index.ts +20 -20
  482. package/src/dialog/context.tsx +4 -0
  483. package/src/dialog/createDialogBody.tsx +11 -0
  484. package/src/dialog/createDialogClose.tsx +27 -0
  485. package/src/dialog/createDialogContent.tsx +122 -0
  486. package/src/dialog/createDialogDescription.tsx +20 -0
  487. package/src/dialog/createDialogFooter.tsx +11 -0
  488. package/src/dialog/createDialogHeader.tsx +11 -0
  489. package/src/dialog/createDialogRoot.tsx +66 -0
  490. package/src/dialog/createDialogTitle.tsx +11 -0
  491. package/src/dialog/createDialogTrigger.tsx +27 -0
  492. package/src/dialog/index.tsx +93 -0
  493. package/src/dialog/types.ts +88 -0
  494. package/src/field/createFieldError.tsx +32 -0
  495. package/src/field/createFieldErrorIcon.tsx +9 -0
  496. package/src/field/createFieldErrorText.tsx +9 -0
  497. package/src/field/createFieldHelper.tsx +28 -0
  498. package/src/field/createFieldHelperText.tsx +9 -0
  499. package/src/field/createFieldLabel.tsx +30 -0
  500. package/src/field/createFieldRoot.tsx +27 -0
  501. package/src/field/index.tsx +68 -0
  502. package/src/field/types.tsx +78 -0
  503. package/src/form/createFormRoot.tsx +13 -0
  504. package/src/form/index.tsx +12 -0
  505. package/src/form/types.tsx +16 -0
  506. package/src/index.ts +9 -0
  507. package/src/input/createInputField.tsx +13 -3
  508. package/src/input/index.tsx +15 -28
  509. package/src/input/types.ts +0 -4
  510. package/src/link/LinkProvider.tsx +50 -0
  511. package/src/link/createLink.tsx +71 -0
  512. package/src/link/index.tsx +5 -0
  513. package/src/link/types.ts +47 -0
  514. package/src/link/useLink.ts +54 -0
  515. package/src/list-item/context.tsx +5 -0
  516. package/src/list-item/createListItemContent.tsx +23 -0
  517. package/src/list-item/createListItemDescription.tsx +19 -0
  518. package/src/list-item/createListItemLeadingSlot.tsx +30 -0
  519. package/src/list-item/createListItemMeta.tsx +17 -0
  520. package/src/list-item/createListItemRoot.tsx +163 -0
  521. package/src/list-item/createListItemSectionHeader.tsx +53 -0
  522. package/src/list-item/createListItemTitle.tsx +17 -0
  523. package/src/list-item/createListItemTrailingSlot.tsx +21 -0
  524. package/src/list-item/index.ts +88 -0
  525. package/src/list-item/types.ts +122 -0
  526. package/src/otp-input/context.tsx +8 -0
  527. package/src/otp-input/createOtpInputCell.tsx +22 -0
  528. package/src/otp-input/createOtpInputField.tsx +98 -0
  529. package/src/otp-input/createOtpInputRoot.tsx +179 -0
  530. package/src/otp-input/index.tsx +34 -0
  531. package/src/otp-input/types.ts +92 -0
  532. package/src/otp-input/utils/applyValueChange.ts +56 -0
  533. package/src/otp-input/utils/filterValue.ts +37 -0
  534. package/src/overlay/OverlayContainer.tsx +9 -18
  535. package/src/overlay/index.ts +1 -0
  536. package/src/overlay/useEscapeKey.ts +7 -0
  537. package/src/overlay/useEscapeKey.web.ts +27 -0
  538. package/src/progress/context.tsx +13 -0
  539. package/src/progress/createProgressIndicator.tsx +35 -0
  540. package/src/progress/createProgressRoot.tsx +109 -0
  541. package/src/progress/index.ts +28 -0
  542. package/src/progress/types.ts +37 -0
  543. package/src/select/context.tsx +9 -44
  544. package/src/select/createSelectItem.tsx +3 -3
  545. package/src/select/createSelectRoot.tsx +10 -6
  546. package/src/select/createSelectTrigger.tsx +62 -36
  547. package/src/select/types.ts +4 -1
  548. package/src/utils/createPortal.ts +20 -0
  549. package/src/utils/dataAttributes.web.ts +2 -4
  550. package/lib/commonjs/input/createInputIcon.js +0 -20
  551. package/lib/commonjs/input/createInputIcon.js.map +0 -1
  552. package/lib/module/input/createInputIcon.js.map +0 -1
  553. package/lib/typescript/input/createInputIcon.d.ts +0 -4
  554. package/lib/typescript/input/createInputIcon.d.ts.map +0 -1
  555. package/src/input/createInputIcon.tsx +0 -12
@@ -1,9 +1,9 @@
1
+ import type React from 'react';
1
2
  import type { IInputComponentType } from './types';
2
3
  export type { IInputFieldProps, IInputIconProps, IInputProps, IInputRootProps, IInputSlotProps, } from './types';
3
- export declare const createInput: <RootProps, IconProps, SlotProps, FieldProps, RootRef = unknown, FieldRef = unknown>({ Root, Icon, Slot, Field, }: {
4
+ export declare function createInput<RootProps, SlotProps, FieldProps, RootRef = unknown, FieldRef = unknown>(BaseComponents: {
4
5
  Root: React.ComponentType<RootProps>;
5
- Icon: React.ComponentType<IconProps>;
6
6
  Slot: React.ComponentType<SlotProps>;
7
7
  Field: React.ComponentType<FieldProps>;
8
- }) => IInputComponentType<RootProps, IconProps, SlotProps, FieldProps, RootRef, FieldRef>;
8
+ }): IInputComponentType<RootProps, SlotProps, FieldProps, RootRef, FieldRef>;
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/input/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,eAAe,EACf,eAAe,GAChB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,WAAW,GACtB,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,OAAO,GAAG,OAAO,EACjB,QAAQ,GAAG,OAAO,EAClB,8BAKC;IACD,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;CACxC,KAWiB,mBAAmB,CACjC,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,OAAO,EACP,QAAQ,CAEX,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,eAAe,EACf,eAAe,GAChB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,WAAW,CACzB,SAAS,EACT,SAAS,EACT,UAAU,EACV,OAAO,GAAG,OAAO,EACjB,QAAQ,GAAG,OAAO,EAClB,cAAc,EAAE;IAChB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;CACxC,GAYO,mBAAmB,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,CAC/E"}
@@ -82,8 +82,7 @@ export interface IInputSlotProps extends ViewProps {
82
82
  */
83
83
  focusOnPress?: boolean;
84
84
  }
85
- export type IInputComponentType<RootProps, IconProps, SlotProps, FieldProps, RootRef = unknown, FieldRef = unknown> = React.ForwardRefExoticComponent<React.PropsWithoutRef<RootProps & IInputFieldProps> & React.RefAttributes<RootRef>> & {
86
- Icon: React.ForwardRefExoticComponent<React.PropsWithoutRef<IconProps> & React.RefAttributes<unknown>>;
85
+ export type IInputComponentType<RootProps, SlotProps, FieldProps, RootRef = unknown, FieldRef = unknown> = React.ForwardRefExoticComponent<React.PropsWithoutRef<RootProps & IInputFieldProps> & React.RefAttributes<RootRef>> & {
87
86
  Slot: React.ForwardRefExoticComponent<React.PropsWithoutRef<SlotProps & IInputSlotProps> & React.RefAttributes<unknown>>;
88
87
  Field: React.ForwardRefExoticComponent<React.PropsWithoutRef<FieldProps & IInputProps> & React.RefAttributes<FieldRef>>;
89
88
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9D,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AACD,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,UAAU,eAAgB,SAAQ,cAAc;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAA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E,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,mBAAmB,CAC7B,SAAS,EACT,SAAS,EACT,UAAU,EACV,OAAO,GAAG,OAAO,EACjB,QAAQ,GAAG,OAAO,IAChB,KAAK,CAAC,yBAAyB,CACjC,KAAK,CAAC,eAAe,CAAC,SAAS,GAAG,gBAAgB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CACnF,GAAG;IACF,IAAI,EAAE,KAAK,CAAC,yBAAyB,CACnC,KAAK,CAAC,eAAe,CAAC,SAAS,GAAG,eAAe,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAClF,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,yBAAyB,CACpC,KAAK,CAAC,eAAe,CAAC,UAAU,GAAG,WAAW,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,CAChF,CAAC;CACH,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { LinkAction } from './types';
3
+ export interface LinkConfig {
4
+ /**
5
+ * Global navigation handler for `<Link>` instances whose `href` passes the
6
+ * `shouldNavigate` check. Called with the `href` and the per-instance `action`.
7
+ *
8
+ * @param href - The URL or path to navigate to.
9
+ * @param action - Navigation intent from the per-instance `action` prop:
10
+ * `'navigate'` (default) — smart navigation, avoids duplicates.
11
+ * `'push'` — always pushes a new entry onto the stack.
12
+ * `'replace'` — replaces the current entry without stacking.
13
+ */
14
+ navigate: (href: string, action: LinkAction) => void | Promise<void>;
15
+ /**
16
+ * Optional predicate evaluated at **render time** to decide whether the
17
+ * provider should handle a given `href`.
18
+ *
19
+ * - Returns `true` → the provider's `navigate` is called on press;
20
+ * on web the native `<a href>` is **removed** so the browser doesn't
21
+ * follow the link.
22
+ * - Returns `false` → the provider is bypassed; on web the `<a href>` is
23
+ * preserved (cmd-click, SEO, etc.); on native `Linking.openURL` is used.
24
+ *
25
+ * Defaults to `() => true` when omitted (all hrefs go through the provider).
26
+ */
27
+ shouldNavigate?: (href: string) => boolean;
28
+ }
29
+ export declare function LinkProvider({ navigate, shouldNavigate, children, }: LinkConfig & {
30
+ children: ReactNode;
31
+ }): import("react/jsx-runtime").JSX.Element;
32
+ export declare namespace LinkProvider {
33
+ var displayName: string;
34
+ }
35
+ export declare function useLinkConfig(): LinkConfig | undefined;
36
+ //# sourceMappingURL=LinkProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkProvider.d.ts","sourceRoot":"","sources":["../../../src/link/LinkProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB;;;;;;;;;OASG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErE;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;CAC5C;AAID,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,cAAc,EACd,QAAQ,GACT,EAAE,UAAU,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAMtC;yBAVe,YAAY;;;AAc5B,wBAAgB,aAAa,IAAI,UAAU,GAAG,SAAS,CAEtD"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { ILinkProps } from './types';
3
+ export declare const createLink: <RootT, R = unknown>({ Root }: {
4
+ Root: React.ComponentType<RootT>;
5
+ }) => React.ForwardRefExoticComponent<ILinkProps & React.RefAttributes<R>>;
6
+ //# sourceMappingURL=createLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createLink.d.ts","sourceRoot":"","sources":["../../../src/link/createLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,UAAU,GAAI,KAAK,EAAE,CAAC,GAAG,OAAO,EAAE,UAAU;IAAE,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;CAAE,yEA8D1F,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { createLink } from './createLink';
2
+ export { LinkProvider } from './LinkProvider';
3
+ export type { LinkConfig } from './LinkProvider';
4
+ export { useLink } from './useLink';
5
+ export type { ILinkProps, IUseLinkProp, LinkAction } from './types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,45 @@
1
+ import type React from 'react';
2
+ import type { GestureResponderEvent, PressableProps } from 'react-native';
3
+ /**
4
+ * Navigation action forwarded to the `LinkProvider.navigate` callback.
5
+ *
6
+ * - `'navigate'` — (default) Smart navigation. In React Navigation this
7
+ * avoids duplicating a screen that is already in the stack. In expo-router
8
+ * it maps to `router.navigate()`.
9
+ * - `'push'` — Always pushes a new screen onto the navigation stack,
10
+ * even if the destination is already present.
11
+ * - `'replace'` — Replaces the current screen without adding to the stack.
12
+ * Useful for post-login redirects or wizard flows.
13
+ */
14
+ export type LinkAction = 'navigate' | 'push' | 'replace';
15
+ export interface ILinkProps extends PressableProps {
16
+ /**
17
+ * URL that should be opened on Link press
18
+ */
19
+ href?: string | undefined;
20
+ /**
21
+ * Callback that will be invoked on Link press
22
+ */
23
+ onPress?: ((event?: GestureResponderEvent) => void) | null | undefined;
24
+ /**
25
+ * Navigation action forwarded to the `LinkProvider`.
26
+ * Defaults to `'navigate'`.
27
+ */
28
+ action?: LinkAction;
29
+ isPressed?: boolean;
30
+ isHovered?: boolean;
31
+ isFocused?: boolean;
32
+ isFocusVisible?: boolean;
33
+ /**
34
+ * HTML anchor attributes applied only on web. Ignored on native platforms.
35
+ * `target`, `rel`, and `download` are forwarded via react-native-web's `hrefAttrs`.
36
+ */
37
+ webProps?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
38
+ }
39
+ export interface IUseLinkProp {
40
+ href?: string;
41
+ onPress: ((event?: GestureResponderEvent) => void) | null | undefined;
42
+ action?: LinkAction;
43
+ webProps?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
44
+ }
45
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/link/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE1E;;;;;;;;;;GAUG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAEzD,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACvE;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;CAC1D;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACtE,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;CAC1D"}
@@ -0,0 +1,9 @@
1
+ import type { AccessibilityRole } from 'react-native';
2
+ import type { IUseLinkProp } from './types';
3
+ export declare function useLink(props: IUseLinkProp): {
4
+ linkProps: {
5
+ role: AccessibilityRole;
6
+ accessible: boolean;
7
+ };
8
+ };
9
+ //# sourceMappingURL=useLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLink.d.ts","sourceRoot":"","sources":["../../../src/link/useLink.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAyB,MAAM,cAAc,CAAC;AAE7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAW5C,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY;;cAmCrB,iBAAiB;;;EAItC"}
@@ -0,0 +1,6 @@
1
+ import type { IListItemContextValue } from './types';
2
+ export declare const ListItemProvider: import("react").FunctionComponent<{
3
+ children: import("react").ReactNode;
4
+ value: IListItemContextValue;
5
+ }>, useListItemContext: () => IListItemContextValue;
6
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/list-item/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAO,gBAAgB;;;IAAE,kBAAkB,6BACO,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const createListItemContent: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<import("react-native").ViewProps & React.RefAttributes<unknown>>;
3
+ //# sourceMappingURL=createListItemContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemContent.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,eAAO,MAAM,qBAAqB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qGAYlE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const createListItemDescription: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<import("react-native").TextProps & React.RefAttributes<unknown>>;
3
+ //# sourceMappingURL=createListItemDescription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemDescription.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemDescription.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,eAAO,MAAM,yBAAyB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qGAcvE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { IListItemLeadingSlotProps } from './types';
3
+ export declare const createListItemLeadingSlot: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<IListItemLeadingSlotProps & React.RefAttributes<unknown>>;
4
+ //# sourceMappingURL=createListItemLeadingSlot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemLeadingSlot.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemLeadingSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAIzD,eAAO,MAAM,yBAAyB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,8FAuBvE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const createListItemMeta: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<import("react-native").TextProps & React.RefAttributes<unknown>>;
3
+ //# sourceMappingURL=createListItemMeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemMeta.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemMeta.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qGAY/D,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { IListItemProps } from './types';
3
+ export declare const createListItemRoot: <V, P>(BaseView: React.ComponentType<V>, BasePressable: React.ComponentType<P>) => React.ForwardRefExoticComponent<IListItemProps & React.RefAttributes<unknown>>;
4
+ //# sourceMappingURL=createListItemRoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemRoot.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,cAAc,EAAiC,MAAM,SAAS,CAAC;AAyB7E,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAE,CAAC,EACrC,UAAU,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EAChC,eAAe,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,mFAiIpC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { IListItemSectionHeaderProps } from './types';
3
+ export declare const createListItemSectionHeader: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<IListItemSectionHeaderProps & React.RefAttributes<unknown>>;
4
+ //# sourceMappingURL=createListItemSectionHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemSectionHeader.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemSectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAsB3D,eAAO,MAAM,2BAA2B,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,gGA2BzE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const createListItemTitle: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<import("react-native").TextProps & React.RefAttributes<unknown>>;
3
+ //# sourceMappingURL=createListItemTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemTitle.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,eAAO,MAAM,mBAAmB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qGAYhE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const createListItemTrailingSlot: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<import("react-native").ViewProps & React.RefAttributes<unknown>>;
3
+ //# sourceMappingURL=createListItemTrailingSlot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemTrailingSlot.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemTrailingSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,eAAO,MAAM,0BAA0B,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qGAcxE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type React from 'react';
2
+ import type { IListItemComponentType } from './types';
3
+ export type { IListItemComponentType, IListItemContentProps, IListItemContextValue, IListItemDescriptionProps, IListItemLeadingSlotProps, IListItemMetaProps, IListItemPressablePassthrough, IListItemProps, IListItemSectionHeaderProps, IListItemTitleProps, IListItemTrailingSlotProps, ListItemCrossAlign, ListItemSize, ListItemSurface, } from './types';
4
+ export { ListItemProvider, useListItemContext } from './context';
5
+ export declare function createListItem<ViewComponent, PressableComponent, LeadingSlot, Content, Title, Description, Meta, TrailingSlot, SectionHeader>(BaseComponents: {
6
+ View: React.ComponentType<ViewComponent>;
7
+ Pressable: React.ComponentType<PressableComponent>;
8
+ LeadingSlot: React.ComponentType<LeadingSlot>;
9
+ Content: React.ComponentType<Content>;
10
+ Title: React.ComponentType<Title>;
11
+ Description: React.ComponentType<Description>;
12
+ Meta: React.ComponentType<Meta>;
13
+ TrailingSlot: React.ComponentType<TrailingSlot>;
14
+ SectionHeader: React.ComponentType<SectionHeader>;
15
+ }): IListItemComponentType<ViewComponent | PressableComponent, LeadingSlot, Content, Title, Description, Meta, TrailingSlot, SectionHeader>;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/list-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,YAAY,EACV,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,kBAAkB,EAClB,6BAA6B,EAC7B,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,YAAY,EACZ,eAAe,GAChB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEjE,wBAAgB,cAAc,CAC5B,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,OAAO,EACP,KAAK,EACL,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,cAAc,EAAE;IAChB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IACzC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IACnD,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAC9C,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACtC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAClC,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAC9C,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAChC,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IAChD,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;CACnD,GA2BO,sBAAsB,CAC1B,aAAa,GAAG,kBAAkB,EAClC,WAAW,EACX,OAAO,EACP,KAAK,EACL,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,aAAa,CACd,CACF"}
@@ -0,0 +1,86 @@
1
+ import type { ForwardRefExoticComponent, PropsWithoutRef, ReactNode, RefAttributes } from 'react';
2
+ import type { PressableProps, TextProps, ViewProps } from 'react-native';
3
+ export type ListItemSize = 'default' | 'compact';
4
+ export type ListItemSurface = 'default' | 'negative';
5
+ /**
6
+ * Cross-axis alignment for the row (`flex-direction: row`).
7
+ * - **center**: Leading, content, and trailing are vertically centered (typical transactions).
8
+ * - **start**: Top-aligned — use when trailing text should align with the title row (e.g. branch distance “2.04 mi”) or status chips sit above a tall content stack.
9
+ */
10
+ export type ListItemCrossAlign = 'center' | 'start';
11
+ export type IListItemPressablePassthrough = Partial<Pick<PressableProps, 'onPressIn' | 'onPressOut' | 'onHoverIn' | 'onHoverOut'>>;
12
+ export interface IListItemProps extends ViewProps, IListItemPressablePassthrough {
13
+ /**
14
+ * Disables press handling when the root is pressable (maps to Pressable `disabled`).
15
+ */
16
+ disabled?: boolean;
17
+ /**
18
+ * When set (and `asChild` is not used), root renders as pressable with interaction props.
19
+ */
20
+ onPress?: PressableProps['onPress'];
21
+ /**
22
+ * Vertical density; mapped at styled layer via `data-size`.
23
+ * @default 'default'
24
+ */
25
+ size?: ListItemSize;
26
+ /**
27
+ * Semantic row surface (e.g. canceled transaction); mapped via `data-surface`.
28
+ * @default 'default'
29
+ */
30
+ surface?: ListItemSurface;
31
+ /**
32
+ * Whether the row shows a bottom separator; mapped via `data-separator`.
33
+ * @default true
34
+ */
35
+ showSeparator?: boolean;
36
+ /**
37
+ * Vertical alignment of leading / content / trailing along the row cross axis.
38
+ * @default 'center'
39
+ */
40
+ crossAlign?: ListItemCrossAlign;
41
+ /**
42
+ * Merge interaction props onto a single child instead of rendering the default pressable root.
43
+ * Intended for use with `onPress`.
44
+ */
45
+ asChild?: boolean;
46
+ }
47
+ export interface IListItemContextValue {
48
+ isPressed: boolean;
49
+ isHovered: boolean;
50
+ isDisabled: boolean;
51
+ crossAlign: ListItemCrossAlign;
52
+ }
53
+ export interface IListItemLeadingSlotProps extends ViewProps {
54
+ /**
55
+ * Decorative leading content defaults to hidden from the accessibility tree.
56
+ * Set to `false` when the leading region contains meaningful controls.
57
+ * @default true
58
+ */
59
+ 'aria-hidden'?: boolean;
60
+ }
61
+ export type IListItemContentProps = ViewProps;
62
+ export type IListItemTitleProps = TextProps;
63
+ export type IListItemDescriptionProps = TextProps;
64
+ export type IListItemMetaProps = TextProps;
65
+ export type IListItemTrailingSlotProps = ViewProps;
66
+ export interface IListItemSectionHeaderProps extends ViewProps {
67
+ /** Primary section label (e.g. date heading). */
68
+ children: ReactNode;
69
+ /** Optional right-aligned adornment (e.g. section Chip). */
70
+ trailing?: ReactNode;
71
+ /**
72
+ * Whether to expose the top divider marker for styling (`data-divider`).
73
+ * @default true
74
+ */
75
+ showDivider?: boolean;
76
+ }
77
+ export type IListItemComponentType<RootRef, LeadingSlot, Content, Title, Description, Meta, TrailingSlot, SectionHeader> = ForwardRefExoticComponent<RefAttributes<RootRef> & IListItemProps> & {
78
+ LeadingSlot: ForwardRefExoticComponent<RefAttributes<LeadingSlot> & PropsWithoutRef<LeadingSlot> & IListItemLeadingSlotProps>;
79
+ Content: ForwardRefExoticComponent<RefAttributes<Content> & PropsWithoutRef<Content> & IListItemContentProps>;
80
+ Title: ForwardRefExoticComponent<RefAttributes<Title> & PropsWithoutRef<Title> & IListItemTitleProps>;
81
+ Description: ForwardRefExoticComponent<RefAttributes<Description> & PropsWithoutRef<Description> & IListItemDescriptionProps>;
82
+ Meta: ForwardRefExoticComponent<RefAttributes<Meta> & PropsWithoutRef<Meta> & IListItemMetaProps>;
83
+ TrailingSlot: ForwardRefExoticComponent<RefAttributes<TrailingSlot> & PropsWithoutRef<TrailingSlot> & IListItemTrailingSlotProps>;
84
+ SectionHeader: ForwardRefExoticComponent<RefAttributes<SectionHeader> & PropsWithoutRef<SectionHeader> & IListItemSectionHeaderProps>;
85
+ };
86
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/list-item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,eAAe,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClG,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAEjD,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,UAAU,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,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AAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,sBAAsB,CAChC,OAAO,EACP,WAAW,EACX,OAAO,EACP,KAAK,EACL,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,aAAa,IACX,yBAAyB,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC,GAAG;IACvE,WAAW,EAAE,yBAAyB,CACpC,aAAa,CAAC,WAAW,CAAC,GAAG,eAAe,CAAC,WAAW,CAAC,GAAG,yBAAyB,CACtF,CAAC;IACF,OAAO,EAAE,yBAAyB,CAChC,aAAa,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,GAAG,qBAAqB,CAC1E,CAAC;IACF,KAAK,EAAE,yBAAyB,CAC9B,aAAa,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,mBAAmB,CACpE,CAAC;IACF,WAAW,EAAE,yBAAyB,CACpC,aAAa,CAAC,WAAW,CAAC,GAAG,eAAe,CAAC,WAAW,CAAC,GAAG,yBAAyB,CACtF,CAAC;IACF,IAAI,EAAE,yBAAyB,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC;IAClG,YAAY,EAAE,yBAAyB,CACrC,aAAa,CAAC,YAAY,CAAC,GAAG,eAAe,CAAC,YAAY,CAAC,GAAG,0BAA0B,CACzF,CAAC;IACF,aAAa,EAAE,yBAAyB,CACtC,aAAa,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC,aAAa,CAAC,GAAG,2BAA2B,CAC5F,CAAC;CACH,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { OtpInputCellIndexContextValue, OtpInputContextValue } from './types';
2
+ export declare const OtpInputProvider: import("react").FunctionComponent<{
3
+ children: import("react").ReactNode;
4
+ value: OtpInputContextValue;
5
+ }>, useOtpInputContext: () => OtpInputContextValue;
6
+ export declare const OtpCellIndexProvider: import("react").FunctionComponent<{
7
+ children: import("react").ReactNode;
8
+ value: OtpInputCellIndexContextValue;
9
+ }>, useOtpCellIndexContext: () => OtpInputCellIndexContextValue;
10
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/otp-input/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEnF,eAAO,MAAO,gBAAgB;;;IAAE,kBAAkB,4BACM,CAAC;AAEzD,eAAO,MAAO,oBAAoB;;;IAAE,sBAAsB,qCACW,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type React from 'react';
2
+ import type { IOtpInputCellProps } from './types';
3
+ export declare const createOtpInputCell: <T>(BaseCell: React.ComponentType<T>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithChildren<IOtpInputCellProps & T>> & React.RefAttributes<unknown>>;
4
+ //# sourceMappingURL=createOtpInputCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createOtpInputCell.d.ts","sourceRoot":"","sources":["../../../src/otp-input/createOtpInputCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAG,UAAU,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,2IAenE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type React from 'react';
2
+ import { type TextInput } from 'react-native';
3
+ export declare const createOtpInputField: <T>(BaseField: React.ComponentType<T>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<import("react-native").TextInputProps & Omit<T, keyof import("react-native").TextInputProps>> & React.RefAttributes<TextInput>>;
4
+ //# sourceMappingURL=createOtpInputField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createOtpInputField.d.ts","sourceRoot":"","sources":["../../../src/otp-input/createOtpInputField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAY,KAAK,SAAS,EAA+B,MAAM,cAAc,CAAC;AAKrF,eAAO,MAAM,mBAAmB,GAAI,CAAC,EAAG,WAAW,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,0LA0FrE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type React from 'react';
2
+ import type { IOtpInputRootProps } from './types';
3
+ export declare const createOtpInputRoot: <RootProps>(BaseRoot: React.ComponentType<RootProps>, OtpCell: React.ComponentType<any>, OtpField: React.ComponentType<any>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<IOtpInputRootProps & RootProps> & React.RefAttributes<unknown>>;
4
+ //# sourceMappingURL=createOtpInputRoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createOtpInputRoot.d.ts","sourceRoot":"","sources":["../../../src/otp-input/createOtpInputRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,kBAAkB,GAAI,SAAS,EAC1C,UAAU,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,EAExC,SAAS,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,EAEjC,UAAU,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,0HAoKjC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type React from 'react';
2
+ import type { IOtpInputComponentType } from './types';
3
+ export { applyOtpInputChange } from './utils/applyValueChange';
4
+ export { filterAllowedCharacters, filterByRegExp, filterDigits } from './utils/filterValue';
5
+ export type * from './types';
6
+ export declare function createOtpInput<RootProps, CellProps, FieldProps, RootRef = unknown, FieldRef = unknown>(BaseComponents: {
7
+ Root: React.ComponentType<RootProps>;
8
+ Cell: React.ComponentType<CellProps>;
9
+ Field: React.ComponentType<FieldProps>;
10
+ }): IOtpInputComponentType<RootProps, CellProps, FieldProps, RootRef, FieldRef>;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/otp-input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC5F,mBAAmB,SAAS,CAAC;AAE7B,wBAAgB,cAAc,CAC5B,SAAS,EACT,SAAS,EACT,UAAU,EACV,OAAO,GAAG,OAAO,EACjB,QAAQ,GAAG,OAAO,EAClB,cAAc,EAAE;IAChB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;CACxC,GAYO,sBAAsB,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,CAClF"}
@@ -0,0 +1,75 @@
1
+ import type React from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import type { TextInputProps, ViewProps } from 'react-native';
4
+ export interface IOtpInputRootProps extends ViewProps {
5
+ /** Number of OTP cells (fixed). */
6
+ cellCount: number;
7
+ /** Controlled value: characters in order, length 0..`cellCount` (prefix fill). */
8
+ value: string;
9
+ onChangeText: (value: string) => void;
10
+ /**
11
+ * Called when the code is ready to verify again:
12
+ * - `value` becomes full (`length === cellCount`) after being shorter, or
13
+ * - `value` stays full but the string changes (user corrected a digit without dropping below full length).
14
+ * Does not fire on mount when `value` is already full and unchanged, nor on re-renders with the same full `value`.
15
+ */
16
+ onComplete?: () => void;
17
+ isDisabled?: boolean;
18
+ isInvalid?: boolean;
19
+ isReadOnly?: boolean;
20
+ /** When false, no SMS / Web OTP autofill hints on the first cell. @default true */
21
+ smsOtpAutofill?: boolean;
22
+ /**
23
+ * Override default digit-only filtering.
24
+ * Takes priority over `allowedCharacters` and `characterPattern` when truthy.
25
+ * Does not change the default `keyboardType` (`number-pad`); use `getCellProps` if the allowed
26
+ * character set needs a different keyboard.
27
+ */
28
+ filterInput?: (input: string) => string;
29
+ /**
30
+ * Keep only characters present in this string (treated as a set of code units).
31
+ * Used when `filterInput` is not provided. Takes priority over `characterPattern`.
32
+ * Default keyboard remains numeric; use `getCellProps` to set `keyboardType` when allowing letters/symbols.
33
+ */
34
+ allowedCharacters?: string;
35
+ /**
36
+ * Keep only characters matching this pattern (tested per code unit).
37
+ * Used when neither `filterInput` nor `allowedCharacters` is provided.
38
+ * Default keyboard remains numeric; use `getCellProps` to set `keyboardType` for non-digit input.
39
+ */
40
+ characterPattern?: RegExp;
41
+ /**
42
+ * Spread onto each cell after built-in field props (including `keyboardType="number-pad"`),
43
+ * so consumers can override `keyboardType`, `autoCapitalize`, etc. for non-digit OTPs.
44
+ */
45
+ getCellProps?: (index: number) => Partial<TextInputProps>;
46
+ /** Optional prefix for `testID` on each field: `${cellTestIdPrefix}:${index}:...` */
47
+ cellTestIdPrefix?: string;
48
+ }
49
+ export interface IOtpInputCellProps extends ViewProps {
50
+ children?: ReactNode;
51
+ }
52
+ export type IOtpInputFieldProps = TextInputProps;
53
+ export interface OtpInputCellIndexContextValue {
54
+ cellIndex: number;
55
+ }
56
+ export interface OtpInputContextValue {
57
+ cellCount: number;
58
+ value: string;
59
+ isDisabled: boolean;
60
+ isInvalid: boolean;
61
+ isReadOnly: boolean;
62
+ smsOtpAutofill: boolean;
63
+ filter: (input: string) => string;
64
+ getCellProps?: (index: number) => Partial<TextInputProps>;
65
+ cellTestIdPrefix?: string;
66
+ rootAccessibilityLabel?: string;
67
+ setFieldRef: (index: number, el: import('react-native').TextInput | null) => void;
68
+ handleFieldChange: (index: number, text: string) => void;
69
+ handleFieldKeyPress: (index: number, key: string) => void;
70
+ }
71
+ export type IOtpInputComponentType<RootProps, CellProps, FieldProps, RootRef = unknown, FieldRef = unknown> = React.ForwardRefExoticComponent<React.PropsWithoutRef<RootProps & IOtpInputRootProps> & React.RefAttributes<RootRef>> & {
72
+ Cell: React.ForwardRefExoticComponent<React.PropsWithoutRef<CellProps & IOtpInputCellProps> & React.RefAttributes<unknown>>;
73
+ Field: React.ForwardRefExoticComponent<React.PropsWithoutRef<FieldProps & IOtpInputFieldProps> & React.RefAttributes<FieldRef>>;
74
+ };
75
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/otp-input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9D,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mFAAmF;IACnF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC;;;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ACV,OAAO,GAAG,OAAO,EACjB,QAAQ,GAAG,OAAO,IAChB,KAAK,CAAC,yBAAyB,CACjC,KAAK,CAAC,eAAe,CAAC,SAAS,GAAG,kBAAkB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CACrF,GAAG;IACF,IAAI,EAAE,KAAK,CAAC,yBAAyB,CACnC,KAAK,CAAC,eAAe,CAAC,SAAS,GAAG,kBAAkB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CACrF,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,yBAAyB,CACpC,KAAK,CAAC,eAAe,CAAC,UAAU,GAAG,mBAAmB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,CACxF,CAAC;CACH,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Pure OTP value transition for a controlled prefix string (no explicit empty slots).
3
+ * - Single-character edits use index-based replace/append (no reorder).
4
+ * - Multi-character input (paste/autofill) writes at `index` forward, then packs left.
5
+ */
6
+ export declare function applyOtpInputChange(value: string, index: number, rawText: string, cellCount: number, filter: (input: string) => string): {
7
+ nextValue: string;
8
+ focusIndex: number;
9
+ };
10
+ //# sourceMappingURL=applyValueChange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applyValueChange.d.ts","sourceRoot":"","sources":["../../../../src/otp-input/utils/applyValueChange.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAChC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CA4C3C"}
@@ -0,0 +1,7 @@
1
+ /** Strip to digits (default OTP behavior). */
2
+ export declare function filterDigits(input: string): string;
3
+ /** Keep only characters present in `allowed` (treat as a set of UTF-16 code units). */
4
+ export declare function filterAllowedCharacters(allowed: string): (input: string) => string;
5
+ /** Keep only characters matching `re` (tested per UTF-16 code unit). */
6
+ export declare function filterByRegExp(re: RegExp): (input: string) => string;
7
+ //# sourceMappingURL=filterValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterValue.d.ts","sourceRoot":"","sources":["../../../../src/otp-input/utils/filterValue.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,uFAAuF;AACvF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,IAK7C,OAAO,MAAM,YAUtB;AAED,wEAAwE;AACxE,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,IAC/B,OAAO,MAAM,YAWtB"}
@@ -12,7 +12,11 @@ export interface OverlayContainerProps {
12
12
  * Cross-platform overlay container.
13
13
  *
14
14
  * - Web: renders children into a `createPortal` at `document.body` with
15
- * `position: fixed` and `zIndex: 50`.
15
+ * `position: fixed` and `zIndex: 50`. Uses a plain `View` rather than
16
+ * Reanimated's `Animated.View` because Reanimated's layout animations
17
+ * (`entering`/`exiting`) rely on `require()` calls that break silently
18
+ * in Vite production bundles, leaving elements stuck at opacity 0.
19
+ * See: https://github.com/software-mansion/react-native-reanimated/issues/6775
16
20
  * - Native: renders children inside a transparent `<Modal>` with a
17
21
  * backdrop `<Pressable>` that calls `onDismiss` on press.
18
22
  *
@@ -1 +1 @@
1
- {"version":3,"file":"OverlayContainer.d.ts","sourceRoot":"","sources":["../../../src/overlay/OverlayContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAiB,EAAE,KAAK,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAW/E,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,QAAQ,EACR,OAAO,EACP,KAAK,EACL,QAAQ,GACT,EAAE,QAAQ,CAAC,qBAAqB,CAAC,2CA+BjC"}
1
+ {"version":3,"file":"OverlayContainer.d.ts","sourceRoot":"","sources":["../../../src/overlay/OverlayContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAiB,EAAE,KAAK,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAG/E,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,QAAQ,EACR,OAAO,EACP,KAAK,EACL,QAAQ,GACT,EAAE,QAAQ,CAAC,qBAAqB,CAAC,2CAyBjC"}
@@ -2,5 +2,6 @@ export { OverlayContainer } from './OverlayContainer';
2
2
  export type { OverlayContainerProps } from './OverlayContainer';
3
3
  export { useAnchorPosition, type AnchorLayout } from './useAnchorPosition';
4
4
  export { useDismissOverlay } from './useDismissOverlay';
5
+ export { useEscapeKey } from './useEscapeKey';
5
6
  export { useOverlayPosition, type OverlayPosition, OverlayInsetsProvider, type EdgeInsets, } from './useOverlayPosition';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/overlay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,kBAAkB,EAClB,KAAK,eAAe,EACpB,qBAAqB,EACrB,KAAK,UAAU,GAChB,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/overlay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,kBAAkB,EAClB,KAAK,eAAe,EACpB,qBAAqB,EACrB,KAAK,UAAU,GAChB,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * No-op on native — Escape key dismissal is not applicable.
3
+ * Native uses the system back gesture / hardware button via Modal.
4
+ */
5
+ export declare function useEscapeKey(_open: boolean, _onEscape: () => void): void;
6
+ //# sourceMappingURL=useEscapeKey.d.ts.map