@oxyhq/bloom 0.1.36 → 0.1.37

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 (369) hide show
  1. package/lib/commonjs/avatar/Avatar.js +5 -3
  2. package/lib/commonjs/avatar/Avatar.js.map +1 -1
  3. package/lib/commonjs/avatar/default-avatar.js +23 -0
  4. package/lib/commonjs/avatar/default-avatar.js.map +1 -0
  5. package/lib/commonjs/avatar/index.js +3 -2
  6. package/lib/commonjs/avatar/index.js.map +1 -1
  7. package/lib/commonjs/dialog/Dialog.js +44 -10
  8. package/lib/commonjs/dialog/Dialog.js.map +1 -1
  9. package/lib/commonjs/icons/common.js +13 -1
  10. package/lib/commonjs/icons/common.js.map +1 -1
  11. package/lib/commonjs/loading/SpinnerIcon.js +3 -1
  12. package/lib/commonjs/loading/SpinnerIcon.js.map +1 -1
  13. package/lib/commonjs/text-field/index.js.map +1 -1
  14. package/lib/module/avatar/Avatar.js +5 -3
  15. package/lib/module/avatar/Avatar.js.map +1 -1
  16. package/lib/module/avatar/default-avatar.js +19 -0
  17. package/lib/module/avatar/default-avatar.js.map +1 -0
  18. package/lib/module/avatar/index.js +3 -2
  19. package/lib/module/avatar/index.js.map +1 -1
  20. package/lib/module/dialog/Dialog.js +43 -8
  21. package/lib/module/dialog/Dialog.js.map +1 -1
  22. package/lib/module/icons/common.js +13 -1
  23. package/lib/module/icons/common.js.map +1 -1
  24. package/lib/module/loading/SpinnerIcon.js +3 -1
  25. package/lib/module/loading/SpinnerIcon.js.map +1 -1
  26. package/lib/module/text-field/index.js.map +1 -1
  27. package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
  28. package/lib/typescript/commonjs/avatar/default-avatar.d.ts +5 -0
  29. package/lib/typescript/commonjs/avatar/default-avatar.d.ts.map +1 -0
  30. package/lib/typescript/commonjs/avatar/index.d.ts +3 -1
  31. package/lib/typescript/commonjs/avatar/index.d.ts.map +1 -1
  32. package/lib/typescript/commonjs/dialog/Dialog.d.ts +1 -1
  33. package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
  34. package/lib/typescript/commonjs/icons/Accessibility.d.ts +1 -1
  35. package/lib/typescript/commonjs/icons/Alien.d.ts +1 -1
  36. package/lib/typescript/commonjs/icons/AndroidLogo.d.ts +1 -1
  37. package/lib/typescript/commonjs/icons/Apple.d.ts +1 -1
  38. package/lib/typescript/commonjs/icons/AppleLogo.d.ts +1 -1
  39. package/lib/typescript/commonjs/icons/Arrow.d.ts +5 -5
  40. package/lib/typescript/commonjs/icons/ArrowBoxLeft.d.ts +2 -2
  41. package/lib/typescript/commonjs/icons/ArrowCornerDownRight.d.ts +1 -1
  42. package/lib/typescript/commonjs/icons/ArrowOutOfBox.d.ts +2 -2
  43. package/lib/typescript/commonjs/icons/ArrowRotate.d.ts +2 -2
  44. package/lib/typescript/commonjs/icons/ArrowShareRight.d.ts +1 -1
  45. package/lib/typescript/commonjs/icons/ArrowTopCircle.d.ts +1 -1
  46. package/lib/typescript/commonjs/icons/ArrowTriangle.d.ts +1 -1
  47. package/lib/typescript/commonjs/icons/ArrowsDiagonal.d.ts +4 -4
  48. package/lib/typescript/commonjs/icons/AspectRatio.d.ts +3 -3
  49. package/lib/typescript/commonjs/icons/At.d.ts +2 -2
  50. package/lib/typescript/commonjs/icons/Atom.d.ts +1 -1
  51. package/lib/typescript/commonjs/icons/Bars.d.ts +1 -1
  52. package/lib/typescript/commonjs/icons/Beaker.d.ts +1 -1
  53. package/lib/typescript/commonjs/icons/Bell.d.ts +2 -2
  54. package/lib/typescript/commonjs/icons/Bell2.d.ts +4 -4
  55. package/lib/typescript/commonjs/icons/BellPlus.d.ts +1 -1
  56. package/lib/typescript/commonjs/icons/BellRinging.d.ts +2 -2
  57. package/lib/typescript/commonjs/icons/BirthdayCake.d.ts +1 -1
  58. package/lib/typescript/commonjs/icons/Bookmark.d.ts +3 -3
  59. package/lib/typescript/commonjs/icons/Bot.d.ts +2 -2
  60. package/lib/typescript/commonjs/icons/BroomSparkle.d.ts +1 -1
  61. package/lib/typescript/commonjs/icons/Bubble.d.ts +4 -4
  62. package/lib/typescript/commonjs/icons/BubbleInfo.d.ts +1 -1
  63. package/lib/typescript/commonjs/icons/BulletList.d.ts +3 -3
  64. package/lib/typescript/commonjs/icons/CC.d.ts +2 -2
  65. package/lib/typescript/commonjs/icons/Calendar.d.ts +1 -1
  66. package/lib/typescript/commonjs/icons/CalendarClock.d.ts +1 -1
  67. package/lib/typescript/commonjs/icons/CalendarDays.d.ts +1 -1
  68. package/lib/typescript/commonjs/icons/Camera.d.ts +2 -2
  69. package/lib/typescript/commonjs/icons/Car.d.ts +1 -1
  70. package/lib/typescript/commonjs/icons/Celebrate.d.ts +1 -1
  71. package/lib/typescript/commonjs/icons/ChainLink.d.ts +1 -1
  72. package/lib/typescript/commonjs/icons/Check.d.ts +2 -2
  73. package/lib/typescript/commonjs/icons/Chevron.d.ts +6 -6
  74. package/lib/typescript/commonjs/icons/Circle.d.ts +1 -1
  75. package/lib/typescript/commonjs/icons/CircleAndSquare.d.ts +1 -1
  76. package/lib/typescript/commonjs/icons/CircleBanSign.d.ts +1 -1
  77. package/lib/typescript/commonjs/icons/CircleCheck.d.ts +1 -1
  78. package/lib/typescript/commonjs/icons/CircleInfo.d.ts +1 -1
  79. package/lib/typescript/commonjs/icons/CirclePlus.d.ts +1 -1
  80. package/lib/typescript/commonjs/icons/CircleQuestion.d.ts +1 -1
  81. package/lib/typescript/commonjs/icons/CircleX.d.ts +1 -1
  82. package/lib/typescript/commonjs/icons/Clipboard.d.ts +1 -1
  83. package/lib/typescript/commonjs/icons/Clock.d.ts +1 -1
  84. package/lib/typescript/commonjs/icons/CodeBrackets.d.ts +2 -2
  85. package/lib/typescript/commonjs/icons/CodeLines.d.ts +1 -1
  86. package/lib/typescript/commonjs/icons/ColorPalette.d.ts +1 -1
  87. package/lib/typescript/commonjs/icons/Contacts.d.ts +2 -2
  88. package/lib/typescript/commonjs/icons/Crop.d.ts +1 -1
  89. package/lib/typescript/commonjs/icons/DotGrid.d.ts +2 -2
  90. package/lib/typescript/commonjs/icons/Download.d.ts +1 -1
  91. package/lib/typescript/commonjs/icons/EditBig.d.ts +2 -2
  92. package/lib/typescript/commonjs/icons/Emoji.d.ts +4 -4
  93. package/lib/typescript/commonjs/icons/Envelope.d.ts +3 -3
  94. package/lib/typescript/commonjs/icons/EnvelopeOpen.d.ts +1 -1
  95. package/lib/typescript/commonjs/icons/Explosion.d.ts +1 -1
  96. package/lib/typescript/commonjs/icons/Eye.d.ts +2 -2
  97. package/lib/typescript/commonjs/icons/EyeSlash.d.ts +1 -1
  98. package/lib/typescript/commonjs/icons/Filter.d.ts +1 -1
  99. package/lib/typescript/commonjs/icons/FilterTimeline.d.ts +1 -1
  100. package/lib/typescript/commonjs/icons/Flag.d.ts +1 -1
  101. package/lib/typescript/commonjs/icons/Flame.d.ts +1 -1
  102. package/lib/typescript/commonjs/icons/FlipImage.d.ts +2 -2
  103. package/lib/typescript/commonjs/icons/FloppyDisk.d.ts +1 -1
  104. package/lib/typescript/commonjs/icons/Freeze.d.ts +1 -1
  105. package/lib/typescript/commonjs/icons/GameController.d.ts +1 -1
  106. package/lib/typescript/commonjs/icons/Gif.d.ts +2 -2
  107. package/lib/typescript/commonjs/icons/Gift1.d.ts +2 -2
  108. package/lib/typescript/commonjs/icons/Globe.d.ts +3 -3
  109. package/lib/typescript/commonjs/icons/Group.d.ts +1 -1
  110. package/lib/typescript/commonjs/icons/Growth.d.ts +1 -1
  111. package/lib/typescript/commonjs/icons/Haptic.d.ts +1 -1
  112. package/lib/typescript/commonjs/icons/Hashtag.d.ts +3 -3
  113. package/lib/typescript/commonjs/icons/Heart2.d.ts +4 -4
  114. package/lib/typescript/commonjs/icons/Home.d.ts +3 -3
  115. package/lib/typescript/commonjs/icons/HomeOpen.d.ts +2 -2
  116. package/lib/typescript/commonjs/icons/Image.d.ts +2 -2
  117. package/lib/typescript/commonjs/icons/Key.d.ts +1 -1
  118. package/lib/typescript/commonjs/icons/Lab.d.ts +1 -1
  119. package/lib/typescript/commonjs/icons/Leaf.d.ts +1 -1
  120. package/lib/typescript/commonjs/icons/ListMagnifyingGlass.d.ts +1 -1
  121. package/lib/typescript/commonjs/icons/ListPlus.d.ts +1 -1
  122. package/lib/typescript/commonjs/icons/ListSparkle.d.ts +1 -1
  123. package/lib/typescript/commonjs/icons/Live.d.ts +1 -1
  124. package/lib/typescript/commonjs/icons/Loader.d.ts +1 -1
  125. package/lib/typescript/commonjs/icons/Lock.d.ts +2 -2
  126. package/lib/typescript/commonjs/icons/Logo.d.ts +1 -1
  127. package/lib/typescript/commonjs/icons/Macintosh.d.ts +1 -1
  128. package/lib/typescript/commonjs/icons/MagnifyingGlass.d.ts +4 -4
  129. package/lib/typescript/commonjs/icons/Menu.d.ts +1 -1
  130. package/lib/typescript/commonjs/icons/Message.d.ts +3 -3
  131. package/lib/typescript/commonjs/icons/Moon.d.ts +1 -1
  132. package/lib/typescript/commonjs/icons/MusicNote.d.ts +1 -1
  133. package/lib/typescript/commonjs/icons/Mute.d.ts +1 -1
  134. package/lib/typescript/commonjs/icons/News2.d.ts +1 -1
  135. package/lib/typescript/commonjs/icons/Newskie.d.ts +1 -1
  136. package/lib/typescript/commonjs/icons/Newspaper.d.ts +1 -1
  137. package/lib/typescript/commonjs/icons/PageText.d.ts +1 -1
  138. package/lib/typescript/commonjs/icons/PageX.d.ts +1 -1
  139. package/lib/typescript/commonjs/icons/PaintRoller.d.ts +1 -1
  140. package/lib/typescript/commonjs/icons/PaperPlane.d.ts +1 -1
  141. package/lib/typescript/commonjs/icons/Pause.d.ts +4 -4
  142. package/lib/typescript/commonjs/icons/Pencil.d.ts +3 -3
  143. package/lib/typescript/commonjs/icons/PeopleRemove2.d.ts +2 -2
  144. package/lib/typescript/commonjs/icons/Person.d.ts +10 -10
  145. package/lib/typescript/commonjs/icons/Phone.d.ts +2 -2
  146. package/lib/typescript/commonjs/icons/Pin.d.ts +2 -2
  147. package/lib/typescript/commonjs/icons/PinLocation.d.ts +2 -2
  148. package/lib/typescript/commonjs/icons/Pizza.d.ts +1 -1
  149. package/lib/typescript/commonjs/icons/Play.d.ts +4 -4
  150. package/lib/typescript/commonjs/icons/Plus.d.ts +2 -2
  151. package/lib/typescript/commonjs/icons/QrCode.d.ts +1 -1
  152. package/lib/typescript/commonjs/icons/Quote.d.ts +5 -5
  153. package/lib/typescript/commonjs/icons/RaisingHand.d.ts +2 -2
  154. package/lib/typescript/commonjs/icons/Reply.d.ts +2 -2
  155. package/lib/typescript/commonjs/icons/Repost.d.ts +4 -4
  156. package/lib/typescript/commonjs/icons/Rose.d.ts +1 -1
  157. package/lib/typescript/commonjs/icons/SettingsGear2.d.ts +2 -2
  158. package/lib/typescript/commonjs/icons/SettingsSlider.d.ts +1 -1
  159. package/lib/typescript/commonjs/icons/Shaka.d.ts +1 -1
  160. package/lib/typescript/commonjs/icons/Shapes.d.ts +1 -1
  161. package/lib/typescript/commonjs/icons/Shield.d.ts +2 -2
  162. package/lib/typescript/commonjs/icons/Sparkle.d.ts +1 -1
  163. package/lib/typescript/commonjs/icons/Speaker.d.ts +1 -1
  164. package/lib/typescript/commonjs/icons/SquareArrowTopRight.d.ts +1 -1
  165. package/lib/typescript/commonjs/icons/SquareBehindSquare4.d.ts +1 -1
  166. package/lib/typescript/commonjs/icons/Star.d.ts +2 -2
  167. package/lib/typescript/commonjs/icons/StarterPack.d.ts +1 -1
  168. package/lib/typescript/commonjs/icons/StreamingLive.d.ts +1 -1
  169. package/lib/typescript/commonjs/icons/TEMPLATE.d.ts +2 -2
  170. package/lib/typescript/commonjs/icons/TextSize.d.ts +1 -1
  171. package/lib/typescript/commonjs/icons/Ticket.d.ts +1 -1
  172. package/lib/typescript/commonjs/icons/Times.d.ts +1 -1
  173. package/lib/typescript/commonjs/icons/TitleCase.d.ts +1 -1
  174. package/lib/typescript/commonjs/icons/Trash.d.ts +2 -2
  175. package/lib/typescript/commonjs/icons/Tree.d.ts +1 -1
  176. package/lib/typescript/commonjs/icons/Trending.d.ts +2 -2
  177. package/lib/typescript/commonjs/icons/UFO.d.ts +1 -1
  178. package/lib/typescript/commonjs/icons/UserCircle.d.ts +2 -2
  179. package/lib/typescript/commonjs/icons/Verified.d.ts +1 -1
  180. package/lib/typescript/commonjs/icons/VerifiedCheck.d.ts +1 -1
  181. package/lib/typescript/commonjs/icons/VerifierCheck.d.ts +1 -1
  182. package/lib/typescript/commonjs/icons/VideoClip.d.ts +2 -2
  183. package/lib/typescript/commonjs/icons/Warning.d.ts +1 -1
  184. package/lib/typescript/commonjs/icons/Window.d.ts +1 -1
  185. package/lib/typescript/commonjs/icons/Wrench.d.ts +1 -1
  186. package/lib/typescript/commonjs/icons/Zap.d.ts +1 -1
  187. package/lib/typescript/commonjs/icons/common.d.ts +20 -6
  188. package/lib/typescript/commonjs/icons/common.d.ts.map +1 -1
  189. package/lib/typescript/commonjs/icons/index.d.ts +1 -1
  190. package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
  191. package/lib/typescript/commonjs/loading/SpinnerIcon.d.ts.map +1 -1
  192. package/lib/typescript/commonjs/text-field/index.d.ts +2 -2
  193. package/lib/typescript/commonjs/text-field/index.d.ts.map +1 -1
  194. package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
  195. package/lib/typescript/module/avatar/default-avatar.d.ts +5 -0
  196. package/lib/typescript/module/avatar/default-avatar.d.ts.map +1 -0
  197. package/lib/typescript/module/avatar/index.d.ts +3 -1
  198. package/lib/typescript/module/avatar/index.d.ts.map +1 -1
  199. package/lib/typescript/module/dialog/Dialog.d.ts +1 -1
  200. package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
  201. package/lib/typescript/module/icons/Accessibility.d.ts +1 -1
  202. package/lib/typescript/module/icons/Alien.d.ts +1 -1
  203. package/lib/typescript/module/icons/AndroidLogo.d.ts +1 -1
  204. package/lib/typescript/module/icons/Apple.d.ts +1 -1
  205. package/lib/typescript/module/icons/AppleLogo.d.ts +1 -1
  206. package/lib/typescript/module/icons/Arrow.d.ts +5 -5
  207. package/lib/typescript/module/icons/ArrowBoxLeft.d.ts +2 -2
  208. package/lib/typescript/module/icons/ArrowCornerDownRight.d.ts +1 -1
  209. package/lib/typescript/module/icons/ArrowOutOfBox.d.ts +2 -2
  210. package/lib/typescript/module/icons/ArrowRotate.d.ts +2 -2
  211. package/lib/typescript/module/icons/ArrowShareRight.d.ts +1 -1
  212. package/lib/typescript/module/icons/ArrowTopCircle.d.ts +1 -1
  213. package/lib/typescript/module/icons/ArrowTriangle.d.ts +1 -1
  214. package/lib/typescript/module/icons/ArrowsDiagonal.d.ts +4 -4
  215. package/lib/typescript/module/icons/AspectRatio.d.ts +3 -3
  216. package/lib/typescript/module/icons/At.d.ts +2 -2
  217. package/lib/typescript/module/icons/Atom.d.ts +1 -1
  218. package/lib/typescript/module/icons/Bars.d.ts +1 -1
  219. package/lib/typescript/module/icons/Beaker.d.ts +1 -1
  220. package/lib/typescript/module/icons/Bell.d.ts +2 -2
  221. package/lib/typescript/module/icons/Bell2.d.ts +4 -4
  222. package/lib/typescript/module/icons/BellPlus.d.ts +1 -1
  223. package/lib/typescript/module/icons/BellRinging.d.ts +2 -2
  224. package/lib/typescript/module/icons/BirthdayCake.d.ts +1 -1
  225. package/lib/typescript/module/icons/Bookmark.d.ts +3 -3
  226. package/lib/typescript/module/icons/Bot.d.ts +2 -2
  227. package/lib/typescript/module/icons/BroomSparkle.d.ts +1 -1
  228. package/lib/typescript/module/icons/Bubble.d.ts +4 -4
  229. package/lib/typescript/module/icons/BubbleInfo.d.ts +1 -1
  230. package/lib/typescript/module/icons/BulletList.d.ts +3 -3
  231. package/lib/typescript/module/icons/CC.d.ts +2 -2
  232. package/lib/typescript/module/icons/Calendar.d.ts +1 -1
  233. package/lib/typescript/module/icons/CalendarClock.d.ts +1 -1
  234. package/lib/typescript/module/icons/CalendarDays.d.ts +1 -1
  235. package/lib/typescript/module/icons/Camera.d.ts +2 -2
  236. package/lib/typescript/module/icons/Car.d.ts +1 -1
  237. package/lib/typescript/module/icons/Celebrate.d.ts +1 -1
  238. package/lib/typescript/module/icons/ChainLink.d.ts +1 -1
  239. package/lib/typescript/module/icons/Check.d.ts +2 -2
  240. package/lib/typescript/module/icons/Chevron.d.ts +6 -6
  241. package/lib/typescript/module/icons/Circle.d.ts +1 -1
  242. package/lib/typescript/module/icons/CircleAndSquare.d.ts +1 -1
  243. package/lib/typescript/module/icons/CircleBanSign.d.ts +1 -1
  244. package/lib/typescript/module/icons/CircleCheck.d.ts +1 -1
  245. package/lib/typescript/module/icons/CircleInfo.d.ts +1 -1
  246. package/lib/typescript/module/icons/CirclePlus.d.ts +1 -1
  247. package/lib/typescript/module/icons/CircleQuestion.d.ts +1 -1
  248. package/lib/typescript/module/icons/CircleX.d.ts +1 -1
  249. package/lib/typescript/module/icons/Clipboard.d.ts +1 -1
  250. package/lib/typescript/module/icons/Clock.d.ts +1 -1
  251. package/lib/typescript/module/icons/CodeBrackets.d.ts +2 -2
  252. package/lib/typescript/module/icons/CodeLines.d.ts +1 -1
  253. package/lib/typescript/module/icons/ColorPalette.d.ts +1 -1
  254. package/lib/typescript/module/icons/Contacts.d.ts +2 -2
  255. package/lib/typescript/module/icons/Crop.d.ts +1 -1
  256. package/lib/typescript/module/icons/DotGrid.d.ts +2 -2
  257. package/lib/typescript/module/icons/Download.d.ts +1 -1
  258. package/lib/typescript/module/icons/EditBig.d.ts +2 -2
  259. package/lib/typescript/module/icons/Emoji.d.ts +4 -4
  260. package/lib/typescript/module/icons/Envelope.d.ts +3 -3
  261. package/lib/typescript/module/icons/EnvelopeOpen.d.ts +1 -1
  262. package/lib/typescript/module/icons/Explosion.d.ts +1 -1
  263. package/lib/typescript/module/icons/Eye.d.ts +2 -2
  264. package/lib/typescript/module/icons/EyeSlash.d.ts +1 -1
  265. package/lib/typescript/module/icons/Filter.d.ts +1 -1
  266. package/lib/typescript/module/icons/FilterTimeline.d.ts +1 -1
  267. package/lib/typescript/module/icons/Flag.d.ts +1 -1
  268. package/lib/typescript/module/icons/Flame.d.ts +1 -1
  269. package/lib/typescript/module/icons/FlipImage.d.ts +2 -2
  270. package/lib/typescript/module/icons/FloppyDisk.d.ts +1 -1
  271. package/lib/typescript/module/icons/Freeze.d.ts +1 -1
  272. package/lib/typescript/module/icons/GameController.d.ts +1 -1
  273. package/lib/typescript/module/icons/Gif.d.ts +2 -2
  274. package/lib/typescript/module/icons/Gift1.d.ts +2 -2
  275. package/lib/typescript/module/icons/Globe.d.ts +3 -3
  276. package/lib/typescript/module/icons/Group.d.ts +1 -1
  277. package/lib/typescript/module/icons/Growth.d.ts +1 -1
  278. package/lib/typescript/module/icons/Haptic.d.ts +1 -1
  279. package/lib/typescript/module/icons/Hashtag.d.ts +3 -3
  280. package/lib/typescript/module/icons/Heart2.d.ts +4 -4
  281. package/lib/typescript/module/icons/Home.d.ts +3 -3
  282. package/lib/typescript/module/icons/HomeOpen.d.ts +2 -2
  283. package/lib/typescript/module/icons/Image.d.ts +2 -2
  284. package/lib/typescript/module/icons/Key.d.ts +1 -1
  285. package/lib/typescript/module/icons/Lab.d.ts +1 -1
  286. package/lib/typescript/module/icons/Leaf.d.ts +1 -1
  287. package/lib/typescript/module/icons/ListMagnifyingGlass.d.ts +1 -1
  288. package/lib/typescript/module/icons/ListPlus.d.ts +1 -1
  289. package/lib/typescript/module/icons/ListSparkle.d.ts +1 -1
  290. package/lib/typescript/module/icons/Live.d.ts +1 -1
  291. package/lib/typescript/module/icons/Loader.d.ts +1 -1
  292. package/lib/typescript/module/icons/Lock.d.ts +2 -2
  293. package/lib/typescript/module/icons/Logo.d.ts +1 -1
  294. package/lib/typescript/module/icons/Macintosh.d.ts +1 -1
  295. package/lib/typescript/module/icons/MagnifyingGlass.d.ts +4 -4
  296. package/lib/typescript/module/icons/Menu.d.ts +1 -1
  297. package/lib/typescript/module/icons/Message.d.ts +3 -3
  298. package/lib/typescript/module/icons/Moon.d.ts +1 -1
  299. package/lib/typescript/module/icons/MusicNote.d.ts +1 -1
  300. package/lib/typescript/module/icons/Mute.d.ts +1 -1
  301. package/lib/typescript/module/icons/News2.d.ts +1 -1
  302. package/lib/typescript/module/icons/Newskie.d.ts +1 -1
  303. package/lib/typescript/module/icons/Newspaper.d.ts +1 -1
  304. package/lib/typescript/module/icons/PageText.d.ts +1 -1
  305. package/lib/typescript/module/icons/PageX.d.ts +1 -1
  306. package/lib/typescript/module/icons/PaintRoller.d.ts +1 -1
  307. package/lib/typescript/module/icons/PaperPlane.d.ts +1 -1
  308. package/lib/typescript/module/icons/Pause.d.ts +4 -4
  309. package/lib/typescript/module/icons/Pencil.d.ts +3 -3
  310. package/lib/typescript/module/icons/PeopleRemove2.d.ts +2 -2
  311. package/lib/typescript/module/icons/Person.d.ts +10 -10
  312. package/lib/typescript/module/icons/Phone.d.ts +2 -2
  313. package/lib/typescript/module/icons/Pin.d.ts +2 -2
  314. package/lib/typescript/module/icons/PinLocation.d.ts +2 -2
  315. package/lib/typescript/module/icons/Pizza.d.ts +1 -1
  316. package/lib/typescript/module/icons/Play.d.ts +4 -4
  317. package/lib/typescript/module/icons/Plus.d.ts +2 -2
  318. package/lib/typescript/module/icons/QrCode.d.ts +1 -1
  319. package/lib/typescript/module/icons/Quote.d.ts +5 -5
  320. package/lib/typescript/module/icons/RaisingHand.d.ts +2 -2
  321. package/lib/typescript/module/icons/Reply.d.ts +2 -2
  322. package/lib/typescript/module/icons/Repost.d.ts +4 -4
  323. package/lib/typescript/module/icons/Rose.d.ts +1 -1
  324. package/lib/typescript/module/icons/SettingsGear2.d.ts +2 -2
  325. package/lib/typescript/module/icons/SettingsSlider.d.ts +1 -1
  326. package/lib/typescript/module/icons/Shaka.d.ts +1 -1
  327. package/lib/typescript/module/icons/Shapes.d.ts +1 -1
  328. package/lib/typescript/module/icons/Shield.d.ts +2 -2
  329. package/lib/typescript/module/icons/Sparkle.d.ts +1 -1
  330. package/lib/typescript/module/icons/Speaker.d.ts +1 -1
  331. package/lib/typescript/module/icons/SquareArrowTopRight.d.ts +1 -1
  332. package/lib/typescript/module/icons/SquareBehindSquare4.d.ts +1 -1
  333. package/lib/typescript/module/icons/Star.d.ts +2 -2
  334. package/lib/typescript/module/icons/StarterPack.d.ts +1 -1
  335. package/lib/typescript/module/icons/StreamingLive.d.ts +1 -1
  336. package/lib/typescript/module/icons/TEMPLATE.d.ts +2 -2
  337. package/lib/typescript/module/icons/TextSize.d.ts +1 -1
  338. package/lib/typescript/module/icons/Ticket.d.ts +1 -1
  339. package/lib/typescript/module/icons/Times.d.ts +1 -1
  340. package/lib/typescript/module/icons/TitleCase.d.ts +1 -1
  341. package/lib/typescript/module/icons/Trash.d.ts +2 -2
  342. package/lib/typescript/module/icons/Tree.d.ts +1 -1
  343. package/lib/typescript/module/icons/Trending.d.ts +2 -2
  344. package/lib/typescript/module/icons/UFO.d.ts +1 -1
  345. package/lib/typescript/module/icons/UserCircle.d.ts +2 -2
  346. package/lib/typescript/module/icons/Verified.d.ts +1 -1
  347. package/lib/typescript/module/icons/VerifiedCheck.d.ts +1 -1
  348. package/lib/typescript/module/icons/VerifierCheck.d.ts +1 -1
  349. package/lib/typescript/module/icons/VideoClip.d.ts +2 -2
  350. package/lib/typescript/module/icons/Warning.d.ts +1 -1
  351. package/lib/typescript/module/icons/Window.d.ts +1 -1
  352. package/lib/typescript/module/icons/Wrench.d.ts +1 -1
  353. package/lib/typescript/module/icons/Zap.d.ts +1 -1
  354. package/lib/typescript/module/icons/common.d.ts +20 -6
  355. package/lib/typescript/module/icons/common.d.ts.map +1 -1
  356. package/lib/typescript/module/icons/index.d.ts +1 -1
  357. package/lib/typescript/module/icons/index.d.ts.map +1 -1
  358. package/lib/typescript/module/loading/SpinnerIcon.d.ts.map +1 -1
  359. package/lib/typescript/module/text-field/index.d.ts +2 -2
  360. package/lib/typescript/module/text-field/index.d.ts.map +1 -1
  361. package/package.json +1 -1
  362. package/src/avatar/Avatar.tsx +5 -3
  363. package/src/avatar/default-avatar.ts +17 -0
  364. package/src/avatar/index.ts +3 -2
  365. package/src/dialog/Dialog.tsx +93 -13
  366. package/src/icons/common.tsx +17 -4
  367. package/src/icons/index.ts +1 -1
  368. package/src/loading/SpinnerIcon.tsx +6 -2
  369. package/src/text-field/index.tsx +2 -1
@@ -1,15 +1,79 @@
1
1
  import React, { useCallback, useImperativeHandle, useMemo, useRef } from 'react';
2
- import { Pressable, StyleSheet, View } from 'react-native';
3
- import { BottomSheetModal, BottomSheetView, BottomSheetBackdrop, type BottomSheetBackdropProps } from '@gorhom/bottom-sheet';
2
+ import { Pressable, StyleSheet, View, type StyleProp, type ViewStyle } from 'react-native';
4
3
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
5
4
 
6
5
  import { useTheme } from '../theme/use-theme';
6
+ import { lazyRequire } from '../utils/lazy-require';
7
7
  import { Context, useDialogContext } from './context';
8
8
  import type { DialogControlProps, DialogInnerProps, DialogOuterProps } from './types';
9
9
 
10
10
  export { useDialogContext, useDialogControl } from './context';
11
11
  export type { DialogControlProps, DialogOuterProps, DialogInnerProps } from './types';
12
12
 
13
+ // ---------------------------------------------------------------------------
14
+ // Local types for @gorhom/bottom-sheet — declared here instead of imported so
15
+ // that Bloom type-checks cleanly in downstream projects that do not install
16
+ // this optional peer dependency. The module is still consumed at runtime via
17
+ // `lazyRequire`, which returns `null` if the package is missing. In that case
18
+ // Dialog.Outer renders nothing with a console warning, so consumers on native
19
+ // MUST install @gorhom/bottom-sheet to use Bloom's Dialog on native.
20
+ // ---------------------------------------------------------------------------
21
+ type BottomSheetBackdropProps = {
22
+ animatedIndex: unknown;
23
+ animatedPosition: unknown;
24
+ style?: StyleProp<ViewStyle>;
25
+ };
26
+
27
+ type BottomSheetModalRef = {
28
+ present: () => void;
29
+ dismiss: () => void;
30
+ };
31
+
32
+ type BottomSheetModalProps = {
33
+ ref?: React.Ref<BottomSheetModalRef>;
34
+ enablePanDownToClose?: boolean;
35
+ enableDismissOnClose?: boolean;
36
+ enableDynamicSizing?: boolean;
37
+ snapPoints?: (string | number)[];
38
+ backgroundStyle?: StyleProp<ViewStyle>;
39
+ handleComponent?: React.ComponentType | (() => React.ReactNode) | null;
40
+ backdropComponent?: React.ComponentType<BottomSheetBackdropProps>;
41
+ onDismiss?: () => void;
42
+ style?: StyleProp<ViewStyle>;
43
+ children?: React.ReactNode;
44
+ };
45
+
46
+ type BottomSheetViewProps = {
47
+ testID?: string;
48
+ style?: StyleProp<ViewStyle>;
49
+ children?: React.ReactNode;
50
+ };
51
+
52
+ type BottomSheetBackdropComponentProps = BottomSheetBackdropProps & {
53
+ appearsOnIndex?: number;
54
+ disappearsOnIndex?: number;
55
+ pressBehavior?: 'none' | 'close' | 'collapse' | number;
56
+ opacity?: number;
57
+ };
58
+
59
+ type BottomSheetModule = {
60
+ BottomSheetModal: React.ComponentType<BottomSheetModalProps>;
61
+ BottomSheetView: React.ComponentType<BottomSheetViewProps>;
62
+ BottomSheetBackdrop: React.ComponentType<BottomSheetBackdropComponentProps>;
63
+ };
64
+
65
+ const getBottomSheetModule = lazyRequire<BottomSheetModule>('@gorhom/bottom-sheet');
66
+
67
+ let warnedAboutMissingBottomSheet = false;
68
+ function warnMissingBottomSheet(): void {
69
+ if (warnedAboutMissingBottomSheet) return;
70
+ warnedAboutMissingBottomSheet = true;
71
+ console.warn(
72
+ "[bloom] @gorhom/bottom-sheet is not installed. Bloom's native Dialog will not render. " +
73
+ 'Install it as a peer dependency to enable Dialog on native, or rely on the web Dialog implementation on web.',
74
+ );
75
+ }
76
+
13
77
  export function Outer({
14
78
  children,
15
79
  control,
@@ -18,7 +82,7 @@ export function Outer({
18
82
  preventExpansion,
19
83
  }: React.PropsWithChildren<DialogOuterProps>) {
20
84
  const theme = useTheme();
21
- const ref = useRef<BottomSheetModal>(null);
85
+ const ref = useRef<BottomSheetModalRef>(null);
22
86
  const closeCallbacks = useRef<(() => void)[]>([]);
23
87
 
24
88
  const callQueuedCallbacks = useCallback(() => {
@@ -59,21 +123,37 @@ export function Outer({
59
123
  [close],
60
124
  );
61
125
 
126
+ const bottomSheet = getBottomSheetModule();
127
+
62
128
  const renderBackdrop = useCallback(
63
- (props: BottomSheetBackdropProps) => (
64
- <BottomSheetBackdrop
65
- {...props}
66
- appearsOnIndex={0}
67
- disappearsOnIndex={-1}
68
- pressBehavior="close"
69
- opacity={0.4}
70
- />
71
- ),
72
- [],
129
+ (props: BottomSheetBackdropProps) => {
130
+ if (!bottomSheet) return null;
131
+ const { BottomSheetBackdrop } = bottomSheet;
132
+ return (
133
+ <BottomSheetBackdrop
134
+ {...props}
135
+ appearsOnIndex={0}
136
+ disappearsOnIndex={-1}
137
+ pressBehavior="close"
138
+ opacity={0.4}
139
+ />
140
+ );
141
+ },
142
+ [bottomSheet],
73
143
  );
74
144
 
75
145
  const renderHandle = useCallback(() => null, []);
76
146
 
147
+ if (!bottomSheet) {
148
+ // Optional peer `@gorhom/bottom-sheet` is not installed.
149
+ // Dialog.Outer is a no-op in this environment; consumers on native must
150
+ // install the peer to use Bloom's native Dialog implementation.
151
+ warnMissingBottomSheet();
152
+ return null;
153
+ }
154
+
155
+ const { BottomSheetModal, BottomSheetView } = bottomSheet;
156
+
77
157
  return (
78
158
  <BottomSheetModal
79
159
  ref={ref}
@@ -1,14 +1,27 @@
1
1
  import React from 'react';
2
- import { StyleSheet, type TextProps } from 'react-native';
2
+ import { StyleSheet, type ColorValue, type StyleProp, type ViewStyle } from 'react-native';
3
3
  import { type PathProps, type SvgProps } from 'react-native-svg';
4
4
  import { Defs, LinearGradient, Stop } from 'react-native-svg';
5
5
 
6
6
  import { useTheme } from '../theme/use-theme';
7
7
  import { gradients } from '../styles/tokens';
8
8
 
9
+ /**
10
+ * Style prop for Bloom icons. Icons render via `<Svg>`, which is a View-like
11
+ * host, so the style must be View-compatible. A `color` field is allowed as a
12
+ * convenience for consumers who set fill via the CSS `color` shorthand (the
13
+ * icon reads this as a fallback fill when no explicit `fill` prop is given).
14
+ *
15
+ * Note: we intentionally avoid `TextStyle` here — React Native 0.84 introduced
16
+ * `cursor: CursorValue` on `ViewStyle` while `expo/types/react-native-web`
17
+ * augments `TextStyle.cursor` to `string`, and the resulting invariance
18
+ * breaks assignment of `StyleProp<TextStyle>` to `<Svg>`'s style slot.
19
+ */
20
+ export type IconStyle = ViewStyle & { color?: ColorValue };
21
+
9
22
  export type Props = {
10
23
  fill?: PathProps['fill'];
11
- style?: TextProps['style'];
24
+ style?: StyleProp<IconStyle>;
12
25
  size?: keyof typeof sizes;
13
26
  gradient?: keyof typeof gradients;
14
27
  } & Omit<SvgProps, 'style' | 'size'>;
@@ -28,9 +41,9 @@ export function useCommonSVGProps(props: Props) {
28
41
  const { colors } = useTheme();
29
42
  const reactId = React.useId();
30
43
  const { fill, size, gradient, ...rest } = props;
31
- const style = StyleSheet.flatten(rest.style);
44
+ const style = StyleSheet.flatten<IconStyle>(rest.style);
32
45
  const _size = Number(size ? sizes[size] : rest.width || sizes.md);
33
- let _fill = fill || (style as Record<string, string>)?.color || colors.primary;
46
+ let _fill: PathProps['fill'] = fill ?? style?.color ?? colors.primary;
34
47
  let gradientDef = null;
35
48
 
36
49
  if (gradient && gradients[gradient]) {
@@ -150,5 +150,5 @@ export * from './Warning';
150
150
  export * from './Window';
151
151
  export * from './Wrench';
152
152
  export * from './Zap';
153
- export type { Props } from './common';
153
+ export type { IconStyle, Props } from './common';
154
154
  export { sizes, useCommonSVGProps } from './common';
@@ -76,8 +76,12 @@ const AnimatedSpinner: React.FC<AnimatedSpinnerProps> = ({
76
76
  style,
77
77
  ]}
78
78
  >
79
- {/* @ts-expect-error className is added by NativeWind cssInterop at runtime */}
80
- <Svg viewBox="0 0 100 100" width={size} height={size} className={className}>
79
+ <Svg
80
+ viewBox="0 0 100 100"
81
+ width={size}
82
+ height={size}
83
+ {...(className ? ({ className } as Record<string, string>) : {})}
84
+ >
81
85
  <Rect fill={color} height="10" opacity="0" rx="5" ry="5" transform="rotate(-90 50 50)" width="28" x="67" y="45" />
82
86
  <Rect fill={color} height="10" opacity="0.125" rx="5" ry="5" transform="rotate(-45 50 50)" width="28" x="67" y="45" />
83
87
  <Rect fill={color} height="10" opacity="0.25" rx="5" ry="5" transform="rotate(0 50 50)" width="28" x="67" y="45" />
@@ -20,6 +20,7 @@ import {
20
20
  platform,
21
21
  tokens,
22
22
  type TextStyleProp,
23
+ type ViewStyleProp,
23
24
  } from '../styles';
24
25
  import { type Props as SVGIconProps } from '../icons/common';
25
26
  import { Text } from '../typography';
@@ -46,7 +47,7 @@ const Context = createContext<{
46
47
  Context.displayName = 'TextFieldContext';
47
48
 
48
49
  export type RootProps = React.PropsWithChildren<
49
- { isInvalid?: boolean } & TextStyleProp
50
+ { isInvalid?: boolean } & ViewStyleProp
50
51
  >;
51
52
 
52
53
  export function Root({ children, isInvalid = false, style }: RootProps) {