blend-native 0.0.1-beta.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 (555) hide show
  1. package/README.md +404 -0
  2. package/lib/commonjs/a11y/announcement.js +42 -0
  3. package/lib/commonjs/a11y/announcement.js.map +1 -0
  4. package/lib/commonjs/a11y/useLiveRegion.js +37 -0
  5. package/lib/commonjs/a11y/useLiveRegion.js.map +1 -0
  6. package/lib/commonjs/adapters/cssStringAdapter.js +363 -0
  7. package/lib/commonjs/adapters/cssStringAdapter.js.map +1 -0
  8. package/lib/commonjs/adapters/optionalGradient.js +33 -0
  9. package/lib/commonjs/adapters/optionalGradient.js.map +1 -0
  10. package/lib/commonjs/adapters/surfaceStyle.js +159 -0
  11. package/lib/commonjs/adapters/surfaceStyle.js.map +1 -0
  12. package/lib/commonjs/components/Alert/Alert.js +130 -0
  13. package/lib/commonjs/components/Alert/Alert.js.map +1 -0
  14. package/lib/commonjs/components/Alert/AlertActions.js +74 -0
  15. package/lib/commonjs/components/Alert/AlertActions.js.map +1 -0
  16. package/lib/commonjs/components/Alert/AlertClose.js +48 -0
  17. package/lib/commonjs/components/Alert/AlertClose.js.map +1 -0
  18. package/lib/commonjs/components/Alert/AlertText.js +49 -0
  19. package/lib/commonjs/components/Alert/AlertText.js.map +1 -0
  20. package/lib/commonjs/components/Alert/alert.tokens.js +6 -0
  21. package/lib/commonjs/components/Alert/alert.tokens.js.map +1 -0
  22. package/lib/commonjs/components/Alert/alert.types.js +6 -0
  23. package/lib/commonjs/components/Alert/alert.types.js.map +1 -0
  24. package/lib/commonjs/components/Alert/alert.utils.js +80 -0
  25. package/lib/commonjs/components/Alert/alert.utils.js.map +1 -0
  26. package/lib/commonjs/components/Alert/index.js +51 -0
  27. package/lib/commonjs/components/Alert/index.js.map +1 -0
  28. package/lib/commonjs/components/Button/Button.js +125 -0
  29. package/lib/commonjs/components/Button/Button.js.map +1 -0
  30. package/lib/commonjs/components/Button/button.types.js +6 -0
  31. package/lib/commonjs/components/Button/button.types.js.map +1 -0
  32. package/lib/commonjs/components/Button/button.utils.js +129 -0
  33. package/lib/commonjs/components/Button/button.utils.js.map +1 -0
  34. package/lib/commonjs/components/Button/index.js +57 -0
  35. package/lib/commonjs/components/Button/index.js.map +1 -0
  36. package/lib/commonjs/components/Skeleton/Skeleton.js +154 -0
  37. package/lib/commonjs/components/Skeleton/Skeleton.js.map +1 -0
  38. package/lib/commonjs/components/Skeleton/index.js +20 -0
  39. package/lib/commonjs/components/Skeleton/index.js.map +1 -0
  40. package/lib/commonjs/components/Skeleton/skeleton.types.js +6 -0
  41. package/lib/commonjs/components/Skeleton/skeleton.types.js.map +1 -0
  42. package/lib/commonjs/components/Skeleton/skeleton.utils.js +45 -0
  43. package/lib/commonjs/components/Skeleton/skeleton.utils.js.map +1 -0
  44. package/lib/commonjs/components/Tag/Tag.js +161 -0
  45. package/lib/commonjs/components/Tag/Tag.js.map +1 -0
  46. package/lib/commonjs/components/Tag/index.js +33 -0
  47. package/lib/commonjs/components/Tag/index.js.map +1 -0
  48. package/lib/commonjs/components/Tag/tag.types.js +6 -0
  49. package/lib/commonjs/components/Tag/tag.types.js.map +1 -0
  50. package/lib/commonjs/components/Tag/tag.utils.js +69 -0
  51. package/lib/commonjs/components/Tag/tag.utils.js.map +1 -0
  52. package/lib/commonjs/components/TextInput/TextInput.js +138 -0
  53. package/lib/commonjs/components/TextInput/TextInput.js.map +1 -0
  54. package/lib/commonjs/components/TextInput/index.js +14 -0
  55. package/lib/commonjs/components/TextInput/index.js.map +1 -0
  56. package/lib/commonjs/components/TextInput/textInput.types.js +6 -0
  57. package/lib/commonjs/components/TextInput/textInput.types.js.map +1 -0
  58. package/lib/commonjs/components/TextInput/textInput.utils.js +40 -0
  59. package/lib/commonjs/components/TextInput/textInput.utils.js.map +1 -0
  60. package/lib/commonjs/components/shared/field/FieldFooter.js +51 -0
  61. package/lib/commonjs/components/shared/field/FieldFooter.js.map +1 -0
  62. package/lib/commonjs/components/shared/field/FieldLabels.js +67 -0
  63. package/lib/commonjs/components/shared/field/FieldLabels.js.map +1 -0
  64. package/lib/commonjs/components/shared/field/fieldState.js +37 -0
  65. package/lib/commonjs/components/shared/field/fieldState.js.map +1 -0
  66. package/lib/commonjs/components/shared/group.js +73 -0
  67. package/lib/commonjs/components/shared/group.js.map +1 -0
  68. package/lib/commonjs/index.js +256 -0
  69. package/lib/commonjs/index.js.map +1 -0
  70. package/lib/commonjs/motion/motion.js +128 -0
  71. package/lib/commonjs/motion/motion.js.map +1 -0
  72. package/lib/commonjs/motion/useReduceMotion.js +37 -0
  73. package/lib/commonjs/motion/useReduceMotion.js.map +1 -0
  74. package/lib/commonjs/overlay/portal.js +110 -0
  75. package/lib/commonjs/overlay/portal.js.map +1 -0
  76. package/lib/commonjs/overlay/positioning.js +122 -0
  77. package/lib/commonjs/overlay/positioning.js.map +1 -0
  78. package/lib/commonjs/overlay/safeAreaInsets.js +30 -0
  79. package/lib/commonjs/overlay/safeAreaInsets.js.map +1 -0
  80. package/lib/commonjs/overlay/sheet/BottomSheet.js +196 -0
  81. package/lib/commonjs/overlay/sheet/BottomSheet.js.map +1 -0
  82. package/lib/commonjs/overlay/sheet/sheetMath.js +60 -0
  83. package/lib/commonjs/overlay/sheet/sheetMath.js.map +1 -0
  84. package/lib/commonjs/overlay/toast/ToastOutlet.js +106 -0
  85. package/lib/commonjs/overlay/toast/ToastOutlet.js.map +1 -0
  86. package/lib/commonjs/overlay/toast/toastStore.js +76 -0
  87. package/lib/commonjs/overlay/toast/toastStore.js.map +1 -0
  88. package/lib/commonjs/overlay/useAnchoredPosition.js +85 -0
  89. package/lib/commonjs/overlay/useAnchoredPosition.js.map +1 -0
  90. package/lib/commonjs/package.json +1 -0
  91. package/lib/commonjs/primitives/Block.js +112 -0
  92. package/lib/commonjs/primitives/Block.js.map +1 -0
  93. package/lib/commonjs/primitives/Pressable.js +348 -0
  94. package/lib/commonjs/primitives/Pressable.js.map +1 -0
  95. package/lib/commonjs/primitives/PrimitiveInput.js +66 -0
  96. package/lib/commonjs/primitives/PrimitiveInput.js.map +1 -0
  97. package/lib/commonjs/primitives/Separator.js +55 -0
  98. package/lib/commonjs/primitives/Separator.js.map +1 -0
  99. package/lib/commonjs/primitives/Slot.js +78 -0
  100. package/lib/commonjs/primitives/Slot.js.map +1 -0
  101. package/lib/commonjs/primitives/Text.js +73 -0
  102. package/lib/commonjs/primitives/Text.js.map +1 -0
  103. package/lib/commonjs/primitives/pressFeedback.js +53 -0
  104. package/lib/commonjs/primitives/pressFeedback.js.map +1 -0
  105. package/lib/commonjs/primitives/textStyle.js +27 -0
  106. package/lib/commonjs/primitives/textStyle.js.map +1 -0
  107. package/lib/commonjs/primitives/tintSlot.js +45 -0
  108. package/lib/commonjs/primitives/tintSlot.js.map +1 -0
  109. package/lib/commonjs/primitives/touchTarget.js +64 -0
  110. package/lib/commonjs/primitives/touchTarget.js.map +1 -0
  111. package/lib/commonjs/theme/BlendNativeProvider.js +90 -0
  112. package/lib/commonjs/theme/BlendNativeProvider.js.map +1 -0
  113. package/lib/commonjs/theme/breakpoint.js +36 -0
  114. package/lib/commonjs/theme/breakpoint.js.map +1 -0
  115. package/lib/commonjs/theme/fonts.js +58 -0
  116. package/lib/commonjs/theme/fonts.js.map +1 -0
  117. package/lib/commonjs/theme/nativeTokenRegistry.js +44 -0
  118. package/lib/commonjs/theme/nativeTokenRegistry.js.map +1 -0
  119. package/lib/commonjs/theme/systemTheme.js +35 -0
  120. package/lib/commonjs/theme/systemTheme.js.map +1 -0
  121. package/lib/commonjs/theme/useNativeBreakpoint.js +33 -0
  122. package/lib/commonjs/theme/useNativeBreakpoint.js.map +1 -0
  123. package/lib/commonjs/theme/useNativeTokens.js +71 -0
  124. package/lib/commonjs/theme/useNativeTokens.js.map +1 -0
  125. package/lib/module/a11y/announcement.js +38 -0
  126. package/lib/module/a11y/announcement.js.map +1 -0
  127. package/lib/module/a11y/useLiveRegion.js +33 -0
  128. package/lib/module/a11y/useLiveRegion.js.map +1 -0
  129. package/lib/module/adapters/cssStringAdapter.js +352 -0
  130. package/lib/module/adapters/cssStringAdapter.js.map +1 -0
  131. package/lib/module/adapters/optionalGradient.js +29 -0
  132. package/lib/module/adapters/optionalGradient.js.map +1 -0
  133. package/lib/module/adapters/surfaceStyle.js +155 -0
  134. package/lib/module/adapters/surfaceStyle.js.map +1 -0
  135. package/lib/module/components/Alert/Alert.js +126 -0
  136. package/lib/module/components/Alert/Alert.js.map +1 -0
  137. package/lib/module/components/Alert/AlertActions.js +70 -0
  138. package/lib/module/components/Alert/AlertActions.js.map +1 -0
  139. package/lib/module/components/Alert/AlertClose.js +44 -0
  140. package/lib/module/components/Alert/AlertClose.js.map +1 -0
  141. package/lib/module/components/Alert/AlertText.js +45 -0
  142. package/lib/module/components/Alert/AlertText.js.map +1 -0
  143. package/lib/module/components/Alert/alert.tokens.js +4 -0
  144. package/lib/module/components/Alert/alert.tokens.js.map +1 -0
  145. package/lib/module/components/Alert/alert.types.js +4 -0
  146. package/lib/module/components/Alert/alert.types.js.map +1 -0
  147. package/lib/module/components/Alert/alert.utils.js +72 -0
  148. package/lib/module/components/Alert/alert.utils.js.map +1 -0
  149. package/lib/module/components/Alert/index.js +6 -0
  150. package/lib/module/components/Alert/index.js.map +1 -0
  151. package/lib/module/components/Button/Button.js +121 -0
  152. package/lib/module/components/Button/Button.js.map +1 -0
  153. package/lib/module/components/Button/button.types.js +4 -0
  154. package/lib/module/components/Button/button.types.js.map +1 -0
  155. package/lib/module/components/Button/button.utils.js +120 -0
  156. package/lib/module/components/Button/button.utils.js.map +1 -0
  157. package/lib/module/components/Button/index.js +5 -0
  158. package/lib/module/components/Button/index.js.map +1 -0
  159. package/lib/module/components/Skeleton/Skeleton.js +149 -0
  160. package/lib/module/components/Skeleton/Skeleton.js.map +1 -0
  161. package/lib/module/components/Skeleton/index.js +4 -0
  162. package/lib/module/components/Skeleton/index.js.map +1 -0
  163. package/lib/module/components/Skeleton/skeleton.types.js +4 -0
  164. package/lib/module/components/Skeleton/skeleton.types.js.map +1 -0
  165. package/lib/module/components/Skeleton/skeleton.utils.js +40 -0
  166. package/lib/module/components/Skeleton/skeleton.utils.js.map +1 -0
  167. package/lib/module/components/Tag/Tag.js +157 -0
  168. package/lib/module/components/Tag/Tag.js.map +1 -0
  169. package/lib/module/components/Tag/index.js +5 -0
  170. package/lib/module/components/Tag/index.js.map +1 -0
  171. package/lib/module/components/Tag/tag.types.js +4 -0
  172. package/lib/module/components/Tag/tag.types.js.map +1 -0
  173. package/lib/module/components/Tag/tag.utils.js +64 -0
  174. package/lib/module/components/Tag/tag.utils.js.map +1 -0
  175. package/lib/module/components/TextInput/TextInput.js +134 -0
  176. package/lib/module/components/TextInput/TextInput.js.map +1 -0
  177. package/lib/module/components/TextInput/index.js +4 -0
  178. package/lib/module/components/TextInput/index.js.map +1 -0
  179. package/lib/module/components/TextInput/textInput.types.js +4 -0
  180. package/lib/module/components/TextInput/textInput.types.js.map +1 -0
  181. package/lib/module/components/TextInput/textInput.utils.js +36 -0
  182. package/lib/module/components/TextInput/textInput.utils.js.map +1 -0
  183. package/lib/module/components/shared/field/FieldFooter.js +47 -0
  184. package/lib/module/components/shared/field/FieldFooter.js.map +1 -0
  185. package/lib/module/components/shared/field/FieldLabels.js +63 -0
  186. package/lib/module/components/shared/field/FieldLabels.js.map +1 -0
  187. package/lib/module/components/shared/field/fieldState.js +33 -0
  188. package/lib/module/components/shared/field/fieldState.js.map +1 -0
  189. package/lib/module/components/shared/group.js +68 -0
  190. package/lib/module/components/shared/group.js.map +1 -0
  191. package/lib/module/index.js +80 -0
  192. package/lib/module/index.js.map +1 -0
  193. package/lib/module/motion/motion.js +123 -0
  194. package/lib/module/motion/motion.js.map +1 -0
  195. package/lib/module/motion/useReduceMotion.js +33 -0
  196. package/lib/module/motion/useReduceMotion.js.map +1 -0
  197. package/lib/module/overlay/portal.js +104 -0
  198. package/lib/module/overlay/portal.js.map +1 -0
  199. package/lib/module/overlay/positioning.js +118 -0
  200. package/lib/module/overlay/positioning.js.map +1 -0
  201. package/lib/module/overlay/safeAreaInsets.js +27 -0
  202. package/lib/module/overlay/safeAreaInsets.js.map +1 -0
  203. package/lib/module/overlay/sheet/BottomSheet.js +190 -0
  204. package/lib/module/overlay/sheet/BottomSheet.js.map +1 -0
  205. package/lib/module/overlay/sheet/sheetMath.js +53 -0
  206. package/lib/module/overlay/sheet/sheetMath.js.map +1 -0
  207. package/lib/module/overlay/toast/ToastOutlet.js +101 -0
  208. package/lib/module/overlay/toast/ToastOutlet.js.map +1 -0
  209. package/lib/module/overlay/toast/toastStore.js +66 -0
  210. package/lib/module/overlay/toast/toastStore.js.map +1 -0
  211. package/lib/module/overlay/useAnchoredPosition.js +82 -0
  212. package/lib/module/overlay/useAnchoredPosition.js.map +1 -0
  213. package/lib/module/package.json +1 -0
  214. package/lib/module/primitives/Block.js +107 -0
  215. package/lib/module/primitives/Block.js.map +1 -0
  216. package/lib/module/primitives/Pressable.js +339 -0
  217. package/lib/module/primitives/Pressable.js.map +1 -0
  218. package/lib/module/primitives/PrimitiveInput.js +62 -0
  219. package/lib/module/primitives/PrimitiveInput.js.map +1 -0
  220. package/lib/module/primitives/Separator.js +50 -0
  221. package/lib/module/primitives/Separator.js.map +1 -0
  222. package/lib/module/primitives/Slot.js +69 -0
  223. package/lib/module/primitives/Slot.js.map +1 -0
  224. package/lib/module/primitives/Text.js +68 -0
  225. package/lib/module/primitives/Text.js.map +1 -0
  226. package/lib/module/primitives/pressFeedback.js +48 -0
  227. package/lib/module/primitives/pressFeedback.js.map +1 -0
  228. package/lib/module/primitives/textStyle.js +23 -0
  229. package/lib/module/primitives/textStyle.js.map +1 -0
  230. package/lib/module/primitives/tintSlot.js +42 -0
  231. package/lib/module/primitives/tintSlot.js.map +1 -0
  232. package/lib/module/primitives/touchTarget.js +58 -0
  233. package/lib/module/primitives/touchTarget.js.map +1 -0
  234. package/lib/module/theme/BlendNativeProvider.js +78 -0
  235. package/lib/module/theme/BlendNativeProvider.js.map +1 -0
  236. package/lib/module/theme/breakpoint.js +33 -0
  237. package/lib/module/theme/breakpoint.js.map +1 -0
  238. package/lib/module/theme/fonts.js +55 -0
  239. package/lib/module/theme/fonts.js.map +1 -0
  240. package/lib/module/theme/nativeTokenRegistry.js +40 -0
  241. package/lib/module/theme/nativeTokenRegistry.js.map +1 -0
  242. package/lib/module/theme/systemTheme.js +31 -0
  243. package/lib/module/theme/systemTheme.js.map +1 -0
  244. package/lib/module/theme/useNativeBreakpoint.js +24 -0
  245. package/lib/module/theme/useNativeBreakpoint.js.map +1 -0
  246. package/lib/module/theme/useNativeTokens.js +67 -0
  247. package/lib/module/theme/useNativeTokens.js.map +1 -0
  248. package/lib/typescript/commonjs/a11y/announcement.d.ts +26 -0
  249. package/lib/typescript/commonjs/a11y/announcement.d.ts.map +1 -0
  250. package/lib/typescript/commonjs/a11y/useLiveRegion.d.ts +17 -0
  251. package/lib/typescript/commonjs/a11y/useLiveRegion.d.ts.map +1 -0
  252. package/lib/typescript/commonjs/adapters/cssStringAdapter.d.ts +119 -0
  253. package/lib/typescript/commonjs/adapters/cssStringAdapter.d.ts.map +1 -0
  254. package/lib/typescript/commonjs/adapters/optionalGradient.d.ts +32 -0
  255. package/lib/typescript/commonjs/adapters/optionalGradient.d.ts.map +1 -0
  256. package/lib/typescript/commonjs/adapters/surfaceStyle.d.ts +75 -0
  257. package/lib/typescript/commonjs/adapters/surfaceStyle.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/components/Alert/Alert.d.ts +14 -0
  259. package/lib/typescript/commonjs/components/Alert/Alert.d.ts.map +1 -0
  260. package/lib/typescript/commonjs/components/Alert/AlertActions.d.ts +13 -0
  261. package/lib/typescript/commonjs/components/Alert/AlertActions.d.ts.map +1 -0
  262. package/lib/typescript/commonjs/components/Alert/AlertClose.d.ts +22 -0
  263. package/lib/typescript/commonjs/components/Alert/AlertClose.d.ts.map +1 -0
  264. package/lib/typescript/commonjs/components/Alert/AlertText.d.ts +19 -0
  265. package/lib/typescript/commonjs/components/Alert/AlertText.d.ts.map +1 -0
  266. package/lib/typescript/commonjs/components/Alert/alert.tokens.d.ts +17 -0
  267. package/lib/typescript/commonjs/components/Alert/alert.tokens.d.ts.map +1 -0
  268. package/lib/typescript/commonjs/components/Alert/alert.types.d.ts +70 -0
  269. package/lib/typescript/commonjs/components/Alert/alert.types.d.ts.map +1 -0
  270. package/lib/typescript/commonjs/components/Alert/alert.utils.d.ts +58 -0
  271. package/lib/typescript/commonjs/components/Alert/alert.utils.d.ts.map +1 -0
  272. package/lib/typescript/commonjs/components/Alert/index.d.ts +7 -0
  273. package/lib/typescript/commonjs/components/Alert/index.d.ts.map +1 -0
  274. package/lib/typescript/commonjs/components/Button/Button.d.ts +22 -0
  275. package/lib/typescript/commonjs/components/Button/Button.d.ts.map +1 -0
  276. package/lib/typescript/commonjs/components/Button/button.types.d.ts +37 -0
  277. package/lib/typescript/commonjs/components/Button/button.types.d.ts.map +1 -0
  278. package/lib/typescript/commonjs/components/Button/button.utils.d.ts +98 -0
  279. package/lib/typescript/commonjs/components/Button/button.utils.d.ts.map +1 -0
  280. package/lib/typescript/commonjs/components/Button/index.d.ts +5 -0
  281. package/lib/typescript/commonjs/components/Button/index.d.ts.map +1 -0
  282. package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +7 -0
  283. package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts.map +1 -0
  284. package/lib/typescript/commonjs/components/Skeleton/index.d.ts +3 -0
  285. package/lib/typescript/commonjs/components/Skeleton/index.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/components/Skeleton/skeleton.types.d.ts +25 -0
  287. package/lib/typescript/commonjs/components/Skeleton/skeleton.types.d.ts.map +1 -0
  288. package/lib/typescript/commonjs/components/Skeleton/skeleton.utils.d.ts +21 -0
  289. package/lib/typescript/commonjs/components/Skeleton/skeleton.utils.d.ts.map +1 -0
  290. package/lib/typescript/commonjs/components/Tag/Tag.d.ts +21 -0
  291. package/lib/typescript/commonjs/components/Tag/Tag.d.ts.map +1 -0
  292. package/lib/typescript/commonjs/components/Tag/index.d.ts +4 -0
  293. package/lib/typescript/commonjs/components/Tag/index.d.ts.map +1 -0
  294. package/lib/typescript/commonjs/components/Tag/tag.types.d.ts +56 -0
  295. package/lib/typescript/commonjs/components/Tag/tag.types.d.ts.map +1 -0
  296. package/lib/typescript/commonjs/components/Tag/tag.utils.d.ts +41 -0
  297. package/lib/typescript/commonjs/components/Tag/tag.utils.d.ts.map +1 -0
  298. package/lib/typescript/commonjs/components/TextInput/TextInput.d.ts +33 -0
  299. package/lib/typescript/commonjs/components/TextInput/TextInput.d.ts.map +1 -0
  300. package/lib/typescript/commonjs/components/TextInput/index.d.ts +3 -0
  301. package/lib/typescript/commonjs/components/TextInput/index.d.ts.map +1 -0
  302. package/lib/typescript/commonjs/components/TextInput/textInput.types.d.ts +45 -0
  303. package/lib/typescript/commonjs/components/TextInput/textInput.types.d.ts.map +1 -0
  304. package/lib/typescript/commonjs/components/TextInput/textInput.utils.d.ts +35 -0
  305. package/lib/typescript/commonjs/components/TextInput/textInput.utils.d.ts.map +1 -0
  306. package/lib/typescript/commonjs/components/shared/field/FieldFooter.d.ts +22 -0
  307. package/lib/typescript/commonjs/components/shared/field/FieldFooter.d.ts.map +1 -0
  308. package/lib/typescript/commonjs/components/shared/field/FieldLabels.d.ts +27 -0
  309. package/lib/typescript/commonjs/components/shared/field/FieldLabels.d.ts.map +1 -0
  310. package/lib/typescript/commonjs/components/shared/field/fieldState.d.ts +23 -0
  311. package/lib/typescript/commonjs/components/shared/field/fieldState.d.ts.map +1 -0
  312. package/lib/typescript/commonjs/components/shared/group.d.ts +50 -0
  313. package/lib/typescript/commonjs/components/shared/group.d.ts.map +1 -0
  314. package/lib/typescript/commonjs/index.d.ts +74 -0
  315. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  316. package/lib/typescript/commonjs/motion/motion.d.ts +121 -0
  317. package/lib/typescript/commonjs/motion/motion.d.ts.map +1 -0
  318. package/lib/typescript/commonjs/motion/useReduceMotion.d.ts +14 -0
  319. package/lib/typescript/commonjs/motion/useReduceMotion.d.ts.map +1 -0
  320. package/lib/typescript/commonjs/overlay/portal.d.ts +20 -0
  321. package/lib/typescript/commonjs/overlay/portal.d.ts.map +1 -0
  322. package/lib/typescript/commonjs/overlay/positioning.d.ts +65 -0
  323. package/lib/typescript/commonjs/overlay/positioning.d.ts.map +1 -0
  324. package/lib/typescript/commonjs/overlay/safeAreaInsets.d.ts +19 -0
  325. package/lib/typescript/commonjs/overlay/safeAreaInsets.d.ts.map +1 -0
  326. package/lib/typescript/commonjs/overlay/sheet/BottomSheet.d.ts +56 -0
  327. package/lib/typescript/commonjs/overlay/sheet/BottomSheet.d.ts.map +1 -0
  328. package/lib/typescript/commonjs/overlay/sheet/sheetMath.d.ts +32 -0
  329. package/lib/typescript/commonjs/overlay/sheet/sheetMath.d.ts.map +1 -0
  330. package/lib/typescript/commonjs/overlay/toast/ToastOutlet.d.ts +17 -0
  331. package/lib/typescript/commonjs/overlay/toast/ToastOutlet.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/overlay/toast/toastStore.d.ts +45 -0
  333. package/lib/typescript/commonjs/overlay/toast/toastStore.d.ts.map +1 -0
  334. package/lib/typescript/commonjs/overlay/useAnchoredPosition.d.ts +40 -0
  335. package/lib/typescript/commonjs/overlay/useAnchoredPosition.d.ts.map +1 -0
  336. package/lib/typescript/commonjs/package.json +1 -0
  337. package/lib/typescript/commonjs/primitives/Block.d.ts +37 -0
  338. package/lib/typescript/commonjs/primitives/Block.d.ts.map +1 -0
  339. package/lib/typescript/commonjs/primitives/Pressable.d.ts +135 -0
  340. package/lib/typescript/commonjs/primitives/Pressable.d.ts.map +1 -0
  341. package/lib/typescript/commonjs/primitives/PrimitiveInput.d.ts +42 -0
  342. package/lib/typescript/commonjs/primitives/PrimitiveInput.d.ts.map +1 -0
  343. package/lib/typescript/commonjs/primitives/Separator.d.ts +28 -0
  344. package/lib/typescript/commonjs/primitives/Separator.d.ts.map +1 -0
  345. package/lib/typescript/commonjs/primitives/Slot.d.ts +48 -0
  346. package/lib/typescript/commonjs/primitives/Slot.d.ts.map +1 -0
  347. package/lib/typescript/commonjs/primitives/Text.d.ts +50 -0
  348. package/lib/typescript/commonjs/primitives/Text.d.ts.map +1 -0
  349. package/lib/typescript/commonjs/primitives/pressFeedback.d.ts +39 -0
  350. package/lib/typescript/commonjs/primitives/pressFeedback.d.ts.map +1 -0
  351. package/lib/typescript/commonjs/primitives/textStyle.d.ts +13 -0
  352. package/lib/typescript/commonjs/primitives/textStyle.d.ts.map +1 -0
  353. package/lib/typescript/commonjs/primitives/tintSlot.d.ts +10 -0
  354. package/lib/typescript/commonjs/primitives/tintSlot.d.ts.map +1 -0
  355. package/lib/typescript/commonjs/primitives/touchTarget.d.ts +43 -0
  356. package/lib/typescript/commonjs/primitives/touchTarget.d.ts.map +1 -0
  357. package/lib/typescript/commonjs/theme/BlendNativeProvider.d.ts +69 -0
  358. package/lib/typescript/commonjs/theme/BlendNativeProvider.d.ts.map +1 -0
  359. package/lib/typescript/commonjs/theme/breakpoint.d.ts +27 -0
  360. package/lib/typescript/commonjs/theme/breakpoint.d.ts.map +1 -0
  361. package/lib/typescript/commonjs/theme/fonts.d.ts +34 -0
  362. package/lib/typescript/commonjs/theme/fonts.d.ts.map +1 -0
  363. package/lib/typescript/commonjs/theme/nativeTokenRegistry.d.ts +34 -0
  364. package/lib/typescript/commonjs/theme/nativeTokenRegistry.d.ts.map +1 -0
  365. package/lib/typescript/commonjs/theme/systemTheme.d.ts +25 -0
  366. package/lib/typescript/commonjs/theme/systemTheme.d.ts.map +1 -0
  367. package/lib/typescript/commonjs/theme/useNativeBreakpoint.d.ts +17 -0
  368. package/lib/typescript/commonjs/theme/useNativeBreakpoint.d.ts.map +1 -0
  369. package/lib/typescript/commonjs/theme/useNativeTokens.d.ts +4 -0
  370. package/lib/typescript/commonjs/theme/useNativeTokens.d.ts.map +1 -0
  371. package/lib/typescript/module/a11y/announcement.d.ts +26 -0
  372. package/lib/typescript/module/a11y/announcement.d.ts.map +1 -0
  373. package/lib/typescript/module/a11y/useLiveRegion.d.ts +17 -0
  374. package/lib/typescript/module/a11y/useLiveRegion.d.ts.map +1 -0
  375. package/lib/typescript/module/adapters/cssStringAdapter.d.ts +119 -0
  376. package/lib/typescript/module/adapters/cssStringAdapter.d.ts.map +1 -0
  377. package/lib/typescript/module/adapters/optionalGradient.d.ts +32 -0
  378. package/lib/typescript/module/adapters/optionalGradient.d.ts.map +1 -0
  379. package/lib/typescript/module/adapters/surfaceStyle.d.ts +75 -0
  380. package/lib/typescript/module/adapters/surfaceStyle.d.ts.map +1 -0
  381. package/lib/typescript/module/components/Alert/Alert.d.ts +14 -0
  382. package/lib/typescript/module/components/Alert/Alert.d.ts.map +1 -0
  383. package/lib/typescript/module/components/Alert/AlertActions.d.ts +13 -0
  384. package/lib/typescript/module/components/Alert/AlertActions.d.ts.map +1 -0
  385. package/lib/typescript/module/components/Alert/AlertClose.d.ts +22 -0
  386. package/lib/typescript/module/components/Alert/AlertClose.d.ts.map +1 -0
  387. package/lib/typescript/module/components/Alert/AlertText.d.ts +19 -0
  388. package/lib/typescript/module/components/Alert/AlertText.d.ts.map +1 -0
  389. package/lib/typescript/module/components/Alert/alert.tokens.d.ts +17 -0
  390. package/lib/typescript/module/components/Alert/alert.tokens.d.ts.map +1 -0
  391. package/lib/typescript/module/components/Alert/alert.types.d.ts +70 -0
  392. package/lib/typescript/module/components/Alert/alert.types.d.ts.map +1 -0
  393. package/lib/typescript/module/components/Alert/alert.utils.d.ts +58 -0
  394. package/lib/typescript/module/components/Alert/alert.utils.d.ts.map +1 -0
  395. package/lib/typescript/module/components/Alert/index.d.ts +7 -0
  396. package/lib/typescript/module/components/Alert/index.d.ts.map +1 -0
  397. package/lib/typescript/module/components/Button/Button.d.ts +22 -0
  398. package/lib/typescript/module/components/Button/Button.d.ts.map +1 -0
  399. package/lib/typescript/module/components/Button/button.types.d.ts +37 -0
  400. package/lib/typescript/module/components/Button/button.types.d.ts.map +1 -0
  401. package/lib/typescript/module/components/Button/button.utils.d.ts +98 -0
  402. package/lib/typescript/module/components/Button/button.utils.d.ts.map +1 -0
  403. package/lib/typescript/module/components/Button/index.d.ts +5 -0
  404. package/lib/typescript/module/components/Button/index.d.ts.map +1 -0
  405. package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +7 -0
  406. package/lib/typescript/module/components/Skeleton/Skeleton.d.ts.map +1 -0
  407. package/lib/typescript/module/components/Skeleton/index.d.ts +3 -0
  408. package/lib/typescript/module/components/Skeleton/index.d.ts.map +1 -0
  409. package/lib/typescript/module/components/Skeleton/skeleton.types.d.ts +25 -0
  410. package/lib/typescript/module/components/Skeleton/skeleton.types.d.ts.map +1 -0
  411. package/lib/typescript/module/components/Skeleton/skeleton.utils.d.ts +21 -0
  412. package/lib/typescript/module/components/Skeleton/skeleton.utils.d.ts.map +1 -0
  413. package/lib/typescript/module/components/Tag/Tag.d.ts +21 -0
  414. package/lib/typescript/module/components/Tag/Tag.d.ts.map +1 -0
  415. package/lib/typescript/module/components/Tag/index.d.ts +4 -0
  416. package/lib/typescript/module/components/Tag/index.d.ts.map +1 -0
  417. package/lib/typescript/module/components/Tag/tag.types.d.ts +56 -0
  418. package/lib/typescript/module/components/Tag/tag.types.d.ts.map +1 -0
  419. package/lib/typescript/module/components/Tag/tag.utils.d.ts +41 -0
  420. package/lib/typescript/module/components/Tag/tag.utils.d.ts.map +1 -0
  421. package/lib/typescript/module/components/TextInput/TextInput.d.ts +33 -0
  422. package/lib/typescript/module/components/TextInput/TextInput.d.ts.map +1 -0
  423. package/lib/typescript/module/components/TextInput/index.d.ts +3 -0
  424. package/lib/typescript/module/components/TextInput/index.d.ts.map +1 -0
  425. package/lib/typescript/module/components/TextInput/textInput.types.d.ts +45 -0
  426. package/lib/typescript/module/components/TextInput/textInput.types.d.ts.map +1 -0
  427. package/lib/typescript/module/components/TextInput/textInput.utils.d.ts +35 -0
  428. package/lib/typescript/module/components/TextInput/textInput.utils.d.ts.map +1 -0
  429. package/lib/typescript/module/components/shared/field/FieldFooter.d.ts +22 -0
  430. package/lib/typescript/module/components/shared/field/FieldFooter.d.ts.map +1 -0
  431. package/lib/typescript/module/components/shared/field/FieldLabels.d.ts +27 -0
  432. package/lib/typescript/module/components/shared/field/FieldLabels.d.ts.map +1 -0
  433. package/lib/typescript/module/components/shared/field/fieldState.d.ts +23 -0
  434. package/lib/typescript/module/components/shared/field/fieldState.d.ts.map +1 -0
  435. package/lib/typescript/module/components/shared/group.d.ts +50 -0
  436. package/lib/typescript/module/components/shared/group.d.ts.map +1 -0
  437. package/lib/typescript/module/index.d.ts +74 -0
  438. package/lib/typescript/module/index.d.ts.map +1 -0
  439. package/lib/typescript/module/motion/motion.d.ts +121 -0
  440. package/lib/typescript/module/motion/motion.d.ts.map +1 -0
  441. package/lib/typescript/module/motion/useReduceMotion.d.ts +14 -0
  442. package/lib/typescript/module/motion/useReduceMotion.d.ts.map +1 -0
  443. package/lib/typescript/module/overlay/portal.d.ts +20 -0
  444. package/lib/typescript/module/overlay/portal.d.ts.map +1 -0
  445. package/lib/typescript/module/overlay/positioning.d.ts +65 -0
  446. package/lib/typescript/module/overlay/positioning.d.ts.map +1 -0
  447. package/lib/typescript/module/overlay/safeAreaInsets.d.ts +19 -0
  448. package/lib/typescript/module/overlay/safeAreaInsets.d.ts.map +1 -0
  449. package/lib/typescript/module/overlay/sheet/BottomSheet.d.ts +56 -0
  450. package/lib/typescript/module/overlay/sheet/BottomSheet.d.ts.map +1 -0
  451. package/lib/typescript/module/overlay/sheet/sheetMath.d.ts +32 -0
  452. package/lib/typescript/module/overlay/sheet/sheetMath.d.ts.map +1 -0
  453. package/lib/typescript/module/overlay/toast/ToastOutlet.d.ts +17 -0
  454. package/lib/typescript/module/overlay/toast/ToastOutlet.d.ts.map +1 -0
  455. package/lib/typescript/module/overlay/toast/toastStore.d.ts +45 -0
  456. package/lib/typescript/module/overlay/toast/toastStore.d.ts.map +1 -0
  457. package/lib/typescript/module/overlay/useAnchoredPosition.d.ts +40 -0
  458. package/lib/typescript/module/overlay/useAnchoredPosition.d.ts.map +1 -0
  459. package/lib/typescript/module/package.json +1 -0
  460. package/lib/typescript/module/primitives/Block.d.ts +37 -0
  461. package/lib/typescript/module/primitives/Block.d.ts.map +1 -0
  462. package/lib/typescript/module/primitives/Pressable.d.ts +135 -0
  463. package/lib/typescript/module/primitives/Pressable.d.ts.map +1 -0
  464. package/lib/typescript/module/primitives/PrimitiveInput.d.ts +42 -0
  465. package/lib/typescript/module/primitives/PrimitiveInput.d.ts.map +1 -0
  466. package/lib/typescript/module/primitives/Separator.d.ts +28 -0
  467. package/lib/typescript/module/primitives/Separator.d.ts.map +1 -0
  468. package/lib/typescript/module/primitives/Slot.d.ts +48 -0
  469. package/lib/typescript/module/primitives/Slot.d.ts.map +1 -0
  470. package/lib/typescript/module/primitives/Text.d.ts +50 -0
  471. package/lib/typescript/module/primitives/Text.d.ts.map +1 -0
  472. package/lib/typescript/module/primitives/pressFeedback.d.ts +39 -0
  473. package/lib/typescript/module/primitives/pressFeedback.d.ts.map +1 -0
  474. package/lib/typescript/module/primitives/textStyle.d.ts +13 -0
  475. package/lib/typescript/module/primitives/textStyle.d.ts.map +1 -0
  476. package/lib/typescript/module/primitives/tintSlot.d.ts +10 -0
  477. package/lib/typescript/module/primitives/tintSlot.d.ts.map +1 -0
  478. package/lib/typescript/module/primitives/touchTarget.d.ts +43 -0
  479. package/lib/typescript/module/primitives/touchTarget.d.ts.map +1 -0
  480. package/lib/typescript/module/theme/BlendNativeProvider.d.ts +69 -0
  481. package/lib/typescript/module/theme/BlendNativeProvider.d.ts.map +1 -0
  482. package/lib/typescript/module/theme/breakpoint.d.ts +27 -0
  483. package/lib/typescript/module/theme/breakpoint.d.ts.map +1 -0
  484. package/lib/typescript/module/theme/fonts.d.ts +34 -0
  485. package/lib/typescript/module/theme/fonts.d.ts.map +1 -0
  486. package/lib/typescript/module/theme/nativeTokenRegistry.d.ts +34 -0
  487. package/lib/typescript/module/theme/nativeTokenRegistry.d.ts.map +1 -0
  488. package/lib/typescript/module/theme/systemTheme.d.ts +25 -0
  489. package/lib/typescript/module/theme/systemTheme.d.ts.map +1 -0
  490. package/lib/typescript/module/theme/useNativeBreakpoint.d.ts +17 -0
  491. package/lib/typescript/module/theme/useNativeBreakpoint.d.ts.map +1 -0
  492. package/lib/typescript/module/theme/useNativeTokens.d.ts +4 -0
  493. package/lib/typescript/module/theme/useNativeTokens.d.ts.map +1 -0
  494. package/package.json +137 -0
  495. package/src/a11y/announcement.ts +41 -0
  496. package/src/a11y/useLiveRegion.ts +36 -0
  497. package/src/adapters/cssStringAdapter.ts +403 -0
  498. package/src/adapters/optionalGradient.ts +39 -0
  499. package/src/adapters/surfaceStyle.ts +209 -0
  500. package/src/components/Alert/Alert.tsx +167 -0
  501. package/src/components/Alert/AlertActions.tsx +98 -0
  502. package/src/components/Alert/AlertClose.tsx +53 -0
  503. package/src/components/Alert/AlertText.tsx +58 -0
  504. package/src/components/Alert/alert.tokens.ts +24 -0
  505. package/src/components/Alert/alert.types.ts +81 -0
  506. package/src/components/Alert/alert.utils.ts +94 -0
  507. package/src/components/Alert/index.ts +21 -0
  508. package/src/components/Button/Button.tsx +180 -0
  509. package/src/components/Button/button.types.ts +44 -0
  510. package/src/components/Button/button.utils.ts +213 -0
  511. package/src/components/Button/index.ts +12 -0
  512. package/src/components/Skeleton/Skeleton.tsx +196 -0
  513. package/src/components/Skeleton/index.ts +2 -0
  514. package/src/components/Skeleton/skeleton.types.ts +28 -0
  515. package/src/components/Skeleton/skeleton.utils.ts +56 -0
  516. package/src/components/Tag/Tag.tsx +204 -0
  517. package/src/components/Tag/index.ts +7 -0
  518. package/src/components/Tag/tag.types.ts +63 -0
  519. package/src/components/Tag/tag.utils.ts +82 -0
  520. package/src/components/TextInput/TextInput.tsx +165 -0
  521. package/src/components/TextInput/index.ts +2 -0
  522. package/src/components/TextInput/textInput.types.ts +54 -0
  523. package/src/components/TextInput/textInput.utils.ts +68 -0
  524. package/src/components/shared/field/FieldFooter.tsx +66 -0
  525. package/src/components/shared/field/FieldLabels.tsx +86 -0
  526. package/src/components/shared/field/fieldState.ts +39 -0
  527. package/src/components/shared/group.ts +72 -0
  528. package/src/index.ts +144 -0
  529. package/src/motion/motion.ts +115 -0
  530. package/src/motion/useReduceMotion.ts +36 -0
  531. package/src/overlay/portal.tsx +122 -0
  532. package/src/overlay/positioning.ts +196 -0
  533. package/src/overlay/safeAreaInsets.ts +36 -0
  534. package/src/overlay/sheet/BottomSheet.tsx +276 -0
  535. package/src/overlay/sheet/sheetMath.ts +58 -0
  536. package/src/overlay/toast/ToastOutlet.tsx +127 -0
  537. package/src/overlay/toast/toastStore.ts +96 -0
  538. package/src/overlay/useAnchoredPosition.ts +92 -0
  539. package/src/primitives/Block.tsx +129 -0
  540. package/src/primitives/Pressable.tsx +528 -0
  541. package/src/primitives/PrimitiveInput.tsx +87 -0
  542. package/src/primitives/Separator.tsx +65 -0
  543. package/src/primitives/Slot.tsx +94 -0
  544. package/src/primitives/Text.tsx +98 -0
  545. package/src/primitives/pressFeedback.ts +78 -0
  546. package/src/primitives/textStyle.ts +24 -0
  547. package/src/primitives/tintSlot.ts +44 -0
  548. package/src/primitives/touchTarget.ts +72 -0
  549. package/src/theme/BlendNativeProvider.tsx +147 -0
  550. package/src/theme/breakpoint.ts +38 -0
  551. package/src/theme/fonts.ts +63 -0
  552. package/src/theme/nativeTokenRegistry.ts +57 -0
  553. package/src/theme/systemTheme.ts +34 -0
  554. package/src/theme/useNativeBreakpoint.ts +27 -0
  555. package/src/theme/useNativeTokens.ts +99 -0
@@ -0,0 +1,119 @@
1
+ import type { ViewStyle } from 'react-native';
2
+ /**
3
+ * Result of parsing a background token.
4
+ *
5
+ * - `flat` — solid color, apply via `backgroundColor`.
6
+ * - `gradient` — linear gradient, requires a `<LinearGradient>` wrapper.
7
+ * - `null` — `none` / transparent / unparseable; no background.
8
+ */
9
+ export type ParsedBackground = {
10
+ type: 'flat';
11
+ color: string;
12
+ } | {
13
+ type: 'gradient';
14
+ colors: string[];
15
+ locations: number[];
16
+ start: {
17
+ x: number;
18
+ y: number;
19
+ };
20
+ end: {
21
+ x: number;
22
+ y: number;
23
+ };
24
+ } | null;
25
+ /**
26
+ * Parse a CSS dimension string (`"6px"`, `"1.5px"`, `"0"`) into a number.
27
+ * Returns `undefined` for non-numeric input.
28
+ *
29
+ * `parseDimension("6px") → 6`
30
+ * `parseDimension("1.5px") → 1.5`
31
+ * `parseDimension("0") → 0`
32
+ */
33
+ export declare function parseDimension(value: string | number | undefined): number | undefined;
34
+ /**
35
+ * RN's type for anything that accepts a length or a percentage
36
+ * (`width`, `maxHeight`, `flexBasis`, ...).
37
+ */
38
+ export type RNSize = number | `${number}%` | 'auto';
39
+ /**
40
+ * Parse a CSS size value — `width`, `height`, `maxHeight`, `minWidth`, ... —
41
+ * into something RN's stylesheet actually understands.
42
+ *
43
+ * This is deliberately strict. `parseFloat` is NOT a safe fallback here: it
44
+ * turns `"100%"` into `100`, which RN renders as **100 pixels** rather than
45
+ * full width, and it silently accepts `"12abc"` (→ `12`) and `"50em"` (→ `50`).
46
+ * Anything not explicitly understood returns `undefined` so the caller skips
47
+ * the prop instead of laying out a wrong value.
48
+ *
49
+ * ```
50
+ * parseSize(24) → 24
51
+ * parseSize('24px') → 24
52
+ * parseSize('50%') → '50%'
53
+ * parseSize('100%') → '100%'
54
+ * parseSize('auto') → 'auto'
55
+ * parseSize('fit-content') → 'auto' // RN's nearest equivalent
56
+ * parseSize('min-content') → undefined
57
+ * parseSize('calc(1+2)') → undefined
58
+ * parseSize('50em') → undefined
59
+ * parseSize('12abc') → undefined
60
+ * ```
61
+ */
62
+ export declare function parseSize(value: string | number | undefined): RNSize | undefined;
63
+ /**
64
+ * Parse a CSS time value (`"1.5s"`, `"200ms"`, `1500`) into milliseconds.
65
+ * Returns `undefined` for unparseable input so callers fall back to their
66
+ * own default duration.
67
+ *
68
+ * `parseDuration('1.5s') → 1500`
69
+ * `parseDuration('200ms') → 200`
70
+ */
71
+ export declare function parseDuration(value: string | number | undefined): number | undefined;
72
+ /**
73
+ * Parse a CSS `border` shorthand (`"1px solid #E1E4EA"`) into RN border props.
74
+ * Returns `{ borderWidth, borderColor }` — the only two border properties RN
75
+ * supports uniformly across iOS/Android.
76
+ *
77
+ * `parseBorder("1.5px solid #1A56DB") → { borderWidth: 1.5, borderColor: "#1A56DB" }`
78
+ * `parseBorder("none") → {}`
79
+ */
80
+ export declare function parseBorder(value: string | undefined): Partial<Pick<ViewStyle, 'borderWidth' | 'borderColor'>>;
81
+ /**
82
+ * Parse a CSS `border-radius` value into a number or corner-tuple for RN.
83
+ *
84
+ * Single value: `"10px" → 10`
85
+ * Four values (per CSS order TL TR BR BL): `"10px 0 0 10px" → { topLeft: 10, topRight: 0, bottomRight: 0, bottomLeft: 10 }`
86
+ *
87
+ * Returns `undefined` for unparseable input so callers can skip the prop.
88
+ */
89
+ export declare function parseBorderRadius(value: string | number | undefined): number | Pick<ViewStyle, 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderBottomRightRadius' | 'borderBottomLeftRadius'> | undefined;
90
+ /**
91
+ * Parse one or more CSS `box-shadow` declarations into RN shadow/elevation props.
92
+ *
93
+ * RN does NOT support `inset` shadows — any `inset` declaration returns `null`
94
+ * (the caller should treat that as "no shadow"). Multiple comma-separated
95
+ * shadows are collapsed into the first non-inset shadow, because RN's shadow
96
+ * API models a single shadow.
97
+ *
98
+ * Focus-ring shadows (`"0 0 0 3px #EFF6FF"`) are parsed normally and become
99
+ * outer shadows — visually acceptable on native.
100
+ *
101
+ * Returns a `ViewStyle` subset: `shadowColor`, `shadowOffset`, `shadowOpacity`,
102
+ * `shadowRadius` (iOS) + `elevation` (Android).
103
+ */
104
+ export declare function parseBoxShadow(value: string | undefined): Pick<ViewStyle, 'shadowColor' | 'shadowOffset' | 'shadowOpacity' | 'shadowRadius' | 'elevation'> | null;
105
+ /**
106
+ * Parse a CSS `background` value into a `ParsedBackground`.
107
+ *
108
+ * - `"linear-gradient(180deg, #1A56DB -5%, #2563EB 107.5%)"` → gradient descriptor
109
+ * (percentage midpoints outside [0,1] are clamped — known limitation)
110
+ * - `"#FFFFFF"` / `"rgb(255,255,255)"` → flat color
111
+ * - `"none"` / `"transparent"` → null
112
+ */
113
+ export declare function parseBackground(value: string | undefined): ParsedBackground;
114
+ /**
115
+ * Merge multiple style objects into one, skipping `undefined` values.
116
+ * Helper for composing adapter output with caller-provided overrides.
117
+ */
118
+ export declare function mergeStyles<T extends object>(...styles: (T | undefined)[]): T;
119
+ //# sourceMappingURL=cssStringAdapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssStringAdapter.d.ts","sourceRoot":"","sources":["../../../../src/adapters/cssStringAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAmC7C;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GACtB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC/B;IACI,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B,GAAG,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAChC,GACD,IAAI,CAAA;AAEV;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GACnC,MAAM,GAAG,SAAS,CAQpB;AAED;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,GAAG,MAAM,GAAG,GAAG,MAAM,CAAA;AAEnD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,SAAS,CACrB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GACnC,MAAM,GAAG,SAAS,CAuBpB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CACzB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GACnC,MAAM,GAAG,SAAS,CASpB;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACvB,KAAK,EAAE,MAAM,GAAG,SAAS,GAC1B,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,GAAG,aAAa,CAAC,CAAC,CAgBzD;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAEhC,MAAM,GACN,IAAI,CACA,SAAS,EACP,qBAAqB,GACrB,sBAAsB,GACtB,yBAAyB,GACzB,wBAAwB,CAC7B,GACD,SAAS,CAqBd;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC1B,KAAK,EAAE,MAAM,GAAG,SAAS,GAC1B,IAAI,CACH,SAAS,EACP,aAAa,GACb,cAAc,GACd,eAAe,GACf,cAAc,GACd,WAAW,CAChB,GAAG,IAAI,CAuDP;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,gBAAgB,CA4E3E;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,GAAG,CAAC,CAY7E"}
@@ -0,0 +1,32 @@
1
+ import type React from 'react';
2
+ import type { ViewStyle } from 'react-native';
3
+ /**
4
+ * Optional `expo-linear-gradient` probe, shared by every surface that can
5
+ * render a gradient (Pressable's gradient buttons, Skeleton's wave sweep).
6
+ *
7
+ * The probe must survive every build target this package ships:
8
+ *
9
+ * - **Metro (`react-native` condition, raw `src/`)** and the **CJS build**
10
+ * (`require`/`default` conditions): `require` exists, the module loads
11
+ * when installed, and the `catch` absorbs its absence.
12
+ * - **The ESM build** (`import` condition): there is no `require` in module
13
+ * scope. The `typeof` guard makes the degradation explicit — gradient
14
+ * surfaces fall back to a flat fill — instead of relying on a caught
15
+ * `ReferenceError`. Bundlers that polyfill `require` in ESM (webpack)
16
+ * still resolve the real module.
17
+ */
18
+ export type GradientComponent = React.ComponentType<{
19
+ colors: readonly string[];
20
+ locations?: readonly number[];
21
+ start?: {
22
+ x: number;
23
+ y: number;
24
+ };
25
+ end?: {
26
+ x: number;
27
+ y: number;
28
+ };
29
+ style?: ViewStyle;
30
+ }>;
31
+ export declare let LinearGradient: GradientComponent | null;
32
+ //# sourceMappingURL=optionalGradient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optionalGradient.d.ts","sourceRoot":"","sources":["../../../../src/adapters/optionalGradient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC;IAChD,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;IACzB,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC7B,KAAK,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAChC,GAAG,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAA;CACpB,CAAC,CAAA;AAIF,eAAO,IAAI,cAAc,EAAE,iBAAiB,GAAG,IAAW,CAAA"}
@@ -0,0 +1,75 @@
1
+ import type { ViewStyle } from 'react-native';
2
+ import { type ParsedBackground } from './cssStringAdapter';
3
+ /**
4
+ * Shared CSS-string → `ViewStyle` resolution for every native surface.
5
+ *
6
+ * Both `Block` (a plain `View`) and `Pressable` (an interactive surface) need
7
+ * to turn the same token-shaped CSS strings into RN styles. Before this
8
+ * existed, `Pressable` inlined the whole translation and `Block` had none at
9
+ * all — which meant a non-interactive container could not render a border,
10
+ * a radius, or a height. Components that switch between the two depending on
11
+ * whether they are interactive (web's `TagElement = onClick ? PrimitiveButton
12
+ * : Block` pattern) would have rendered differently in each branch.
13
+ *
14
+ * Pure and total: unparseable input is dropped rather than thrown, and no key
15
+ * is emitted for a value that could not be resolved, so `undefined`/`NaN`
16
+ * never reaches RN's stylesheet.
17
+ */
18
+ /**
19
+ * Which platform's shadow model to emit.
20
+ *
21
+ * Passed in rather than read from `Platform.OS` so this module stays free of
22
+ * any `react-native` value import and remains unit-testable outside a
23
+ * renderer — the same constraint that shapes `theme/breakpoint.ts` and
24
+ * `primitives/touchTarget.ts`.
25
+ */
26
+ export type SurfacePlatform = 'ios' | 'android' | 'web' | 'windows' | 'macos';
27
+ export type SurfaceStyleProps = {
28
+ /** CSS-string background token — flat colour, gradient, or `none`. */
29
+ background?: string;
30
+ /** CSS-string border shorthand, e.g. `"1px solid #E1E4EA"`. */
31
+ border?: string;
32
+ /** CSS border-radius: `"10px"`, `"9999px"`, or a 4-value corner string. */
33
+ borderRadius?: string | number;
34
+ /** CSS box-shadow. Inset shadows are dropped (RN cannot render them). */
35
+ boxShadow?: string;
36
+ paddingTop?: string | number;
37
+ paddingRight?: string | number;
38
+ paddingBottom?: string | number;
39
+ paddingLeft?: string | number;
40
+ width?: string | number;
41
+ minWidth?: string | number;
42
+ maxWidth?: string | number;
43
+ height?: string | number;
44
+ minHeight?: string | number;
45
+ maxHeight?: string | number;
46
+ flexDirection?: ViewStyle['flexDirection'];
47
+ alignItems?: ViewStyle['alignItems'];
48
+ justifyContent?: ViewStyle['justifyContent'];
49
+ alignSelf?: ViewStyle['alignSelf'];
50
+ gap?: string | number;
51
+ flexShrink?: number;
52
+ flexGrow?: number;
53
+ opacity?: number;
54
+ overflow?: ViewStyle['overflow'];
55
+ /** Solid background colour, already RN-ready. Wins over `background`. */
56
+ backgroundColor?: string;
57
+ };
58
+ /**
59
+ * Resolve the parsed background into `backgroundColor`, and report whether a
60
+ * gradient was requested. Gradients cannot be expressed as a `ViewStyle`, so
61
+ * callers that support them (`Pressable`) render a `<LinearGradient>` layer
62
+ * and callers that do not fall back to the gradient's first colour.
63
+ */
64
+ export declare function resolveBackground(background: string | undefined, explicitBackgroundColor: string | undefined): {
65
+ backgroundColor?: string;
66
+ gradient?: ParsedBackground;
67
+ };
68
+ /**
69
+ * Translate token-shaped surface props into a `ViewStyle`.
70
+ *
71
+ * Gradients are reported separately via `resolveBackground` — this function
72
+ * emits only the flat-colour fallback, so it is safe for any `View`.
73
+ */
74
+ export declare function resolveSurfaceStyle(props: SurfaceStyleProps, platform?: SurfacePlatform): ViewStyle;
75
+ //# sourceMappingURL=surfaceStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surfaceStyle.d.ts","sourceRoot":"","sources":["../../../../src/adapters/surfaceStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAOH,KAAK,gBAAgB,EACxB,MAAM,oBAAoB,CAAA;AAE3B;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,CAAA;AAE7E,MAAM,MAAM,iBAAiB,GAAG;IAC5B,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAE7B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAE3B,aAAa,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAA;IAC1C,UAAU,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAA;IACpC,cAAc,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAA;IAC5C,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;IAClC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;IAChC,yEAAyE;IACzE,eAAe,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA;AAgBD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC7B,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,uBAAuB,EAAE,MAAM,GAAG,SAAS,GAC5C;IAAE,eAAe,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAA;CAAE,CAa3D;AAoCD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAC/B,KAAK,EAAE,iBAAiB,EACxB,QAAQ,GAAE,eAAuB,GAClC,SAAS,CAuDX"}
@@ -0,0 +1,14 @@
1
+ import type { View as RNView } from 'react-native';
2
+ import type { AlertNativeProps } from './alert.types';
3
+ /**
4
+ * Alert — React Native implementation of web's `AlertV2`.
5
+ *
6
+ * Tokens resolve through `useNativeTokens('ALERTV2')`, so theme and per-slot
7
+ * overrides come from `BlendNativeProvider`.
8
+ *
9
+ * AlertV2's tokens contain no gradients, so this needs no native module beyond
10
+ * the icon set.
11
+ */
12
+ declare const Alert: import("react").ForwardRefExoticComponent<AlertNativeProps & import("react").RefAttributes<RNView>>;
13
+ export default Alert;
14
+ //# sourceMappingURL=Alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAsBlD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD;;;;;;;;GAQG;AACH,QAAA,MAAM,KAAK,qGAgIT,CAAA;AAIF,eAAe,KAAK,CAAA"}
@@ -0,0 +1,13 @@
1
+ import type { AlertV2Type } from '@juspay/blend-design-system/node';
2
+ import type { AlertActionTokens } from './alert.tokens';
3
+ import type { AlertActions as AlertActionsConfig } from './alert.types';
4
+ export type AlertActionsProps = {
5
+ actions?: AlertActionsConfig;
6
+ type: AlertV2Type;
7
+ tokens: AlertActionTokens;
8
+ testID?: string;
9
+ };
10
+ declare function AlertActionsImpl({ actions, type, tokens, testID, }: AlertActionsProps): import("react/jsx-runtime").JSX.Element | null;
11
+ export declare const AlertActions: import("react").MemoExoticComponent<typeof AlertActionsImpl>;
12
+ export {};
13
+ //# sourceMappingURL=AlertActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/AlertActions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAKnE,OAAO,KAAK,EACR,iBAAiB,EAEpB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAER,YAAY,IAAI,kBAAkB,EACrC,MAAM,eAAe,CAAA;AA8CtB,MAAM,MAAM,iBAAiB,GAAG;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,iBAAiB,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,iBAAS,gBAAgB,CAAC,EACtB,OAAO,EACP,IAAI,EACJ,MAAM,EACN,MAAM,GACT,EAAE,iBAAiB,kDAuBnB;AAED,eAAO,MAAM,YAAY,8DAAyB,CAAA"}
@@ -0,0 +1,22 @@
1
+ import type { ViewStyle } from 'react-native';
2
+ import type { AlertCloseButton } from './alert.types';
3
+ /**
4
+ * `Alert`'s close affordance.
5
+ *
6
+ * Renders lucide's `X` by default; a consumer icon supplied via
7
+ * `closeButton.icon` goes through `Slot` so it is tinted the same way.
8
+ *
9
+ * The control is smaller than the 44pt minimum tap target, so it relies on the
10
+ * `hitSlop` `Pressable` applies automatically.
11
+ */
12
+ export type AlertCloseProps = {
13
+ closeButton: AlertCloseButton;
14
+ color: string;
15
+ size: number;
16
+ alignSelf: ViewStyle['alignSelf'];
17
+ testID?: string;
18
+ };
19
+ declare function AlertCloseImpl({ closeButton, color, size, alignSelf, testID, }: AlertCloseProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare const AlertClose: import("react").MemoExoticComponent<typeof AlertCloseImpl>;
21
+ export {};
22
+ //# sourceMappingURL=AlertClose.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertClose.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/AlertClose.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAI7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD;;;;;;;;GAQG;AAEH,MAAM,MAAM,eAAe,GAAG;IAC1B,WAAW,EAAE,gBAAgB,CAAA;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,iBAAS,cAAc,CAAC,EACpB,WAAW,EACX,KAAK,EACL,IAAI,EACJ,SAAS,EACT,MAAM,GACT,EAAE,eAAe,2CAkBjB;AAED,eAAO,MAAM,UAAU,4DAAuB,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type { AlertV2Type } from '@juspay/blend-design-system/node';
2
+ import type { AlertTextTokens } from './alert.tokens';
3
+ /**
4
+ * The heading and description block of an `Alert`.
5
+ *
6
+ * `flexShrink` is explicit because Yoga defaults it to 0 where CSS defaults it
7
+ * to 1 — without it this box sizes to its text and a long description runs off
8
+ * the edge instead of wrapping.
9
+ */
10
+ export type AlertTextProps = {
11
+ heading?: string;
12
+ description?: string;
13
+ type: AlertV2Type;
14
+ tokens: AlertTextTokens;
15
+ };
16
+ declare function AlertTextImpl({ heading, description, type, tokens }: AlertTextProps): import("react/jsx-runtime").JSX.Element | null;
17
+ export declare const AlertText: import("react").MemoExoticComponent<typeof AlertTextImpl>;
18
+ export {};
19
+ //# sourceMappingURL=AlertText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertText.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/AlertText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAGnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAErD;;;;;;GAMG;AAEH,MAAM,MAAM,cAAc,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,eAAe,CAAA;CAC1B,CAAA;AAED,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,cAAc,kDAiC5E;AAED,eAAO,MAAM,SAAS,2DAAsB,CAAA"}
@@ -0,0 +1,17 @@
1
+ import type { AlertV2TokensType } from '@juspay/blend-design-system/node';
2
+ /**
3
+ * Named aliases for AlertV2's deeply-nested token paths.
4
+ *
5
+ * The raw paths run five levels deep
6
+ * (`mainContainer.content.actionContainer.primaryAction.fontSize`), so spelling
7
+ * them out at each use site buried the prop types. These are type-only and
8
+ * erase completely.
9
+ */
10
+ export type AlertTextTokens = AlertV2TokensType['mainContainer']['content']['textContainer'];
11
+ export type AlertActionTokens = AlertV2TokensType['mainContainer']['content']['actionContainer'];
12
+ export type AlertCloseTokens = AlertV2TokensType['mainContainer']['closeButton'];
13
+ /** One action's typography and per-type colour map. */
14
+ export type AlertActionVariantTokens = AlertActionTokens['primaryAction'];
15
+ /** The shape shared by the heading and description token groups. */
16
+ export type AlertTextVariantTokens = AlertTextTokens['heading'];
17
+ //# sourceMappingURL=alert.tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.tokens.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/alert.tokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAEzE;;;;;;;GAOG;AAEH,MAAM,MAAM,eAAe,GACvB,iBAAiB,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAA;AAElE,MAAM,MAAM,iBAAiB,GACzB,iBAAiB,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC,CAAA;AAEpE,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,eAAe,CAAC,CAAC,aAAa,CAAC,CAAA;AAEhF,uDAAuD;AACvD,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,eAAe,CAAC,CAAA;AAEzE,oEAAoE;AACpE,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC,SAAS,CAAC,CAAA"}
@@ -0,0 +1,70 @@
1
+ import type React from 'react';
2
+ import type { GestureResponderEvent, ViewStyle } from 'react-native';
3
+ import type { AlertV2ActionPosition, AlertV2SubType, AlertV2Type } from '@juspay/blend-design-system/node';
4
+ /**
5
+ * Props for the native `Alert`.
6
+ *
7
+ * Mirrors web `AlertV2Props` (`packages/blend/lib/components/AlertV2/
8
+ * alertV2.types.ts`) with DOM-specific pieces replaced by RN equivalents:
9
+ *
10
+ * - `onClick` handlers become `onPress`, carrying a `GestureResponderEvent`.
11
+ * - `HTMLAttributes` passthrough becomes RN `View` props via `...rest`.
12
+ * - `width` / `maxWidth` / `minWidth` accept token strings or numbers and are
13
+ * resolved by `parseSize`.
14
+ */
15
+ export type AlertSlot = {
16
+ slot: React.ReactNode;
17
+ /** Overrides the token-derived slot max height. */
18
+ maxHeight?: string | number;
19
+ };
20
+ export type AlertAction = {
21
+ text: string;
22
+ onPress?: (event: GestureResponderEvent) => void;
23
+ /** Overrides the accessible name, which defaults to `<text> action`. */
24
+ accessibilityLabel?: string;
25
+ };
26
+ export type AlertActions = {
27
+ /**
28
+ * `BOTTOM` stacks the actions under the text; `RIGHT` places them inline
29
+ * and enables the separator before the close button.
30
+ */
31
+ position?: AlertV2ActionPosition;
32
+ primaryAction?: AlertAction;
33
+ secondaryAction?: AlertAction;
34
+ };
35
+ export type AlertCloseButton = {
36
+ show?: boolean;
37
+ onPress?: (event: GestureResponderEvent) => void;
38
+ /**
39
+ * Replaces the default lucide `X`. Tinted by `Slot` like any other icon,
40
+ * so a custom icon only needs to accept a `color` prop.
41
+ */
42
+ icon?: React.ReactNode;
43
+ accessibilityLabel?: string;
44
+ };
45
+ export type AlertNativeProps = {
46
+ type?: AlertV2Type;
47
+ subType?: AlertV2SubType;
48
+ slot?: AlertSlot;
49
+ heading?: string;
50
+ description?: string;
51
+ actions?: AlertActions;
52
+ closeButton?: AlertCloseButton;
53
+ width?: string | number;
54
+ maxWidth?: string | number;
55
+ minWidth?: string | number;
56
+ /**
57
+ * Announce the alert to assistive tech when it appears. Defaults to `true`,
58
+ * matching web's hard-coded `aria-live="assertive"`.
59
+ *
60
+ * Pass `false` for alerts that are part of a screen's initial content
61
+ * rather than a response to something the user did. Several alerts mounting
62
+ * at once each queue an announcement, so a static list of them talks over
63
+ * itself — the showcase in `apps/native-site` disables it for that reason.
64
+ */
65
+ announce?: boolean;
66
+ accessibilityLabel?: string;
67
+ testID?: string;
68
+ style?: ViewStyle;
69
+ };
70
+ //# sourceMappingURL=alert.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/alert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACpE,OAAO,KAAK,EACR,qBAAqB,EACrB,cAAc,EACd,WAAW,EACd,MAAM,kCAAkC,CAAA;AAEzC;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,SAAS,GAAG;IACpB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAChD,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAA;IAChC,aAAa,CAAC,EAAE,WAAW,CAAA;IAC3B,eAAe,CAAC,EAAE,WAAW,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAChD;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,WAAW,CAAC,EAAE,gBAAgB,CAAA;IAE9B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAE1B;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,SAAS,CAAA;CACpB,CAAA"}
@@ -0,0 +1,58 @@
1
+ import { AlertV2ActionPosition, type AlertV2TokensType } from '@juspay/blend-design-system/node';
2
+ import type { ViewStyle } from 'react-native';
3
+ /**
4
+ * Native Alert layout helpers.
5
+ *
6
+ * Web computes these inline in the JSX of `AlertV2.tsx`. Pulling them out
7
+ * makes the branching testable, and keeps the component readable given that
8
+ * one prop reshapes four layout values at once.
9
+ */
10
+ /**
11
+ * Flex sizing shared by every box in Alert's row chain.
12
+ *
13
+ * `flexShrink` is explicit because **Yoga defaults it to 0 where CSS defaults
14
+ * it to 1**. Without it a flex child sizes to its content and refuses to
15
+ * narrow, so a long description runs off the right edge instead of wrapping.
16
+ *
17
+ * Exported as a constant rather than repeated inline so the invariant has one
18
+ * definition and can be asserted directly in tests.
19
+ */
20
+ export declare const ALERT_FLEX_BOX: {
21
+ readonly flexGrow: 1;
22
+ readonly flexShrink: 1;
23
+ };
24
+ /** Fallback icon size when the close-button token cannot be parsed. */
25
+ export declare const FALLBACK_CLOSE_ICON_SIZE = 16;
26
+ export type AlertLayout = {
27
+ /** Direction the text block and actions flow in. */
28
+ contentDirection: NonNullable<ViewStyle['flexDirection']>;
29
+ contentJustify: NonNullable<ViewStyle['justifyContent']>;
30
+ contentAlign: NonNullable<ViewStyle['alignItems']>;
31
+ /** Vertical alignment of the close button against the content. */
32
+ closeAlign: NonNullable<ViewStyle['alignItems']>;
33
+ };
34
+ /**
35
+ * Resolve the layout for an action position.
36
+ *
37
+ * `BOTTOM` stacks the actions beneath the text and pins the close button to
38
+ * the top; `RIGHT` runs everything on one line, vertically centred. Mirrors
39
+ * the `actionPlacementBottom` branches in web `AlertV2.tsx`.
40
+ */
41
+ export declare function getAlertLayout(position: AlertV2ActionPosition): AlertLayout;
42
+ /**
43
+ * Whether to render the divider between the actions and the close button.
44
+ *
45
+ * Web's condition is `position === RIGHT && closeButton.show` — the separator
46
+ * only makes sense when both sit on the same line. Extracted because the
47
+ * two-term condition is easy to get subtly wrong, and it has a truth table
48
+ * in the tests.
49
+ */
50
+ export declare function shouldShowSeparator(position: AlertV2ActionPosition, closeButtonShown: boolean): boolean;
51
+ /**
52
+ * Resolve the accessible name for an action.
53
+ * Mirrors web's `aria-label={`${action.text} action`}`.
54
+ */
55
+ export declare function getActionAccessibilityLabel(text: string, override?: string): string;
56
+ /** Numeric size for the close icon, from the same token web uses. */
57
+ export declare function getCloseIconSize(tokens: AlertV2TokensType): number;
58
+ //# sourceMappingURL=alert.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/alert.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,qBAAqB,EACrB,KAAK,iBAAiB,EACzB,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;;;GAMG;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc;;;CAGjB,CAAA;AAEV,uEAAuE;AACvE,eAAO,MAAM,wBAAwB,KAAK,CAAA;AAE1C,MAAM,MAAM,WAAW,GAAG;IACtB,oDAAoD;IACpD,gBAAgB,EAAE,WAAW,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAA;IACzD,cAAc,EAAE,WAAW,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAA;IACxD,YAAY,EAAE,WAAW,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAA;IAClD,kEAAkE;IAClE,UAAU,EAAE,WAAW,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAA;CACnD,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,qBAAqB,GAAG,WAAW,CAS3E;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAC/B,QAAQ,EAAE,qBAAqB,EAC/B,gBAAgB,EAAE,OAAO,GAC1B,OAAO,CAET;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACvC,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAClB,MAAM,CAER;AAED,qEAAqE;AACrE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAOlE"}
@@ -0,0 +1,7 @@
1
+ export { default as Alert } from './Alert';
2
+ export type { AlertNativeProps, AlertSlot, AlertAction, AlertActions, AlertCloseButton, } from './alert.types';
3
+ export { getAlertLayout, shouldShowSeparator, getActionAccessibilityLabel, getCloseIconSize, } from './alert.utils';
4
+ export type { AlertLayout } from './alert.utils';
5
+ export { ALERT_FLEX_BOX, FALLBACK_CLOSE_ICON_SIZE } from './alert.utils';
6
+ export type { AlertTextTokens, AlertActionTokens, AlertCloseTokens, } from './alert.tokens';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,YAAY,EACR,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,gBAAgB,GACnB,MAAM,eAAe,CAAA;AACtB,OAAO,EACH,cAAc,EACd,mBAAmB,EACnB,2BAA2B,EAC3B,gBAAgB,GACnB,MAAM,eAAe,CAAA;AACtB,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AACxE,YAAY,EACR,eAAe,EACf,iBAAiB,EACjB,gBAAgB,GACnB,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,22 @@
1
+ import type { View as RNView } from 'react-native';
2
+ /**
3
+ * Button — React Native implementation of web's `ButtonV2`.
4
+ *
5
+ * Imports only from `@juspay/blend-design-system/node` (the React-free token
6
+ * entry), the local adapters, and the local primitives — never from web's
7
+ * `context/`, `hooks/`, or `Primitives/` directories.
8
+ *
9
+ * Tokens resolve through `useNativeTokens('BUTTONV2')`, which reads theme and
10
+ * per-slot overrides from `BlendNativeProvider`. This replaces the earlier
11
+ * per-component `theme` prop, which offered no app-wide dark mode, no nested
12
+ * theme scopes, and no `componentTokens` overrides.
13
+ */
14
+ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@juspay/blend-design-system/node").ButtonBaseProps, "skeleton"> & {
15
+ onPress?: (event: import("react-native").GestureResponderEvent) => void;
16
+ disabled?: boolean;
17
+ testID?: string;
18
+ justifyContent?: import("react-native").ViewStyle["justifyContent"];
19
+ style?: import("react-native").ViewStyle;
20
+ } & Omit<import("react-native").PressableProps, "children" | "style" | "testID" | "onPress" | "disabled"> & import("react").RefAttributes<RNView>>;
21
+ export default Button;
22
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAmBlD;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,MAAM;;;;;;kJA+IV,CAAA;AAIF,eAAe,MAAM,CAAA"}
@@ -0,0 +1,37 @@
1
+ import type { GestureResponderEvent, PressableProps, ViewStyle } from 'react-native';
2
+ import type { ButtonBaseProps } from '@juspay/blend-design-system/node';
3
+ /**
4
+ * Props for the native `Button`.
5
+ *
6
+ * Extends web's `ButtonBaseProps` (buttonType, size, subType, text, slots,
7
+ * loading, state, width, ...) with DOM-specific pieces swapped for RN ones:
8
+ *
9
+ * - `onClick` → `onPress`, carrying a `GestureResponderEvent` so consumers
10
+ * can read `nativeEvent.locationX` for anchored menus and popovers.
11
+ * - `data-testid` → `testID`.
12
+ * - `Omit<ButtonHTMLAttributes>` passthrough → `Omit<PressableProps>`, which
13
+ * also supplies `onPressIn`/`onPressOut`/`onLongPress`/`hitSlop`/
14
+ * `accessibilityHint` for free.
15
+ *
16
+ * `skeleton` is **omitted** rather than accepted-and-ignored. It is part of
17
+ * `ButtonBaseProps` on web, but there is no native `Skeleton` yet — leaving
18
+ * it in the type made `skeleton={{ showSkeleton: true }}` type-check while
19
+ * doing nothing. Omitting it turns that into a compile error instead.
20
+ */
21
+ export type ButtonNativeProps = Omit<ButtonBaseProps, 'skeleton'> & {
22
+ /** Called when the button is pressed (replaces web `onClick`). */
23
+ onPress?: (event: GestureResponderEvent) => void;
24
+ /** Disables interaction and applies disabled tokens. */
25
+ disabled?: boolean;
26
+ /** RN test ID (replaces web `data-testid`). */
27
+ testID?: string;
28
+ /**
29
+ * Flex alignment along the main axis, for slot layout. Typed off RN's own
30
+ * `ViewStyle` rather than a hand-maintained union so it stays correct as
31
+ * RN adds values.
32
+ */
33
+ justifyContent?: ViewStyle['justifyContent'];
34
+ /** Escape hatch for RN styles the token props do not cover. */
35
+ style?: ViewStyle;
36
+ } & Omit<PressableProps, 'style' | 'onPress' | 'disabled' | 'children' | 'testID'>;
37
+ //# sourceMappingURL=button.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,qBAAqB,EACrB,cAAc,EACd,SAAS,EACZ,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,GAAG;IAChE,kEAAkE;IAClE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAChD,wDAAwD;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;OAIG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAA;IAC5C,+DAA+D;IAC/D,KAAK,CAAC,EAAE,SAAS,CAAA;CACpB,GAAG,IAAI,CACA,cAAc,EACd,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAC3D,CAAA"}