@oxy.so/bloom 23.6.0 → 23.7.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 (356) hide show
  1. package/NOTICE +28 -0
  2. package/android/src/main/java/so/oxy/bloom/BloomPackage.kt +3 -1
  3. package/android/src/main/java/so/oxy/bloom/icons/BloomIcon.kt +251 -0
  4. package/android/src/main/java/so/oxy/bloom/icons/IconPathParser.java +660 -0
  5. package/docs/adoption-matrix.mdx +1 -4
  6. package/docs/bloom-language-codemod.mdx +6 -2
  7. package/docs/bloom-language-modifiers.mdx +21 -5
  8. package/docs/bloom-language-nodes.mdx +3 -58
  9. package/docs/bloom-language.mdx +15 -36
  10. package/docs/empty-state.mdx +2 -3
  11. package/docs/icons.mdx +29 -1
  12. package/docs/public-parts.mdx +2 -7
  13. package/docs/task-catalog.json +1 -1
  14. package/docs/task-catalog.mdx +1 -1
  15. package/lib/commonjs/icons/TEMPLATE.js +25 -160
  16. package/lib/commonjs/icons/TEMPLATE.js.map +1 -1
  17. package/lib/commonjs/icons/glyph-svg.js +47 -0
  18. package/lib/commonjs/icons/glyph-svg.js.map +1 -0
  19. package/lib/commonjs/icons/glyph.js +29 -0
  20. package/lib/commonjs/icons/glyph.js.map +1 -0
  21. package/lib/commonjs/icons/glyph.native.js +112 -0
  22. package/lib/commonjs/icons/glyph.native.js.map +1 -0
  23. package/lib/commonjs/index.js +279 -485
  24. package/lib/commonjs/index.js.map +1 -1
  25. package/lib/commonjs/index.web.js +279 -485
  26. package/lib/commonjs/index.web.js.map +1 -1
  27. package/lib/commonjs/locale/translations/ar.js +0 -39
  28. package/lib/commonjs/locale/translations/ar.js.map +1 -1
  29. package/lib/commonjs/locale/translations/bn.js +0 -34
  30. package/lib/commonjs/locale/translations/bn.js.map +1 -1
  31. package/lib/commonjs/locale/translations/ca.js +0 -35
  32. package/lib/commonjs/locale/translations/ca.js.map +1 -1
  33. package/lib/commonjs/locale/translations/de.js +0 -35
  34. package/lib/commonjs/locale/translations/de.js.map +1 -1
  35. package/lib/commonjs/locale/translations/es.js +0 -35
  36. package/lib/commonjs/locale/translations/es.js.map +1 -1
  37. package/lib/commonjs/locale/translations/fr.js +0 -35
  38. package/lib/commonjs/locale/translations/fr.js.map +1 -1
  39. package/lib/commonjs/locale/translations/hi.js +0 -35
  40. package/lib/commonjs/locale/translations/hi.js.map +1 -1
  41. package/lib/commonjs/locale/translations/id.js +0 -34
  42. package/lib/commonjs/locale/translations/id.js.map +1 -1
  43. package/lib/commonjs/locale/translations/it.js +0 -35
  44. package/lib/commonjs/locale/translations/it.js.map +1 -1
  45. package/lib/commonjs/locale/translations/ja.js +0 -34
  46. package/lib/commonjs/locale/translations/ja.js.map +1 -1
  47. package/lib/commonjs/locale/translations/pt.js +0 -35
  48. package/lib/commonjs/locale/translations/pt.js.map +1 -1
  49. package/lib/commonjs/locale/translations/ru.js +0 -37
  50. package/lib/commonjs/locale/translations/ru.js.map +1 -1
  51. package/lib/commonjs/locale/translations/tr.js +0 -34
  52. package/lib/commonjs/locale/translations/tr.js.map +1 -1
  53. package/lib/commonjs/locale/translations/zh.js +0 -34
  54. package/lib/commonjs/locale/translations/zh.js.map +1 -1
  55. package/lib/module/icons/TEMPLATE.js +25 -158
  56. package/lib/module/icons/TEMPLATE.js.map +1 -1
  57. package/lib/module/icons/glyph-svg.js +41 -0
  58. package/lib/module/icons/glyph-svg.js.map +1 -0
  59. package/lib/module/icons/glyph.js +25 -0
  60. package/lib/module/icons/glyph.js.map +1 -0
  61. package/lib/module/icons/glyph.native.js +108 -0
  62. package/lib/module/icons/glyph.native.js.map +1 -0
  63. package/lib/module/index.js +0 -14
  64. package/lib/module/index.js.map +1 -1
  65. package/lib/module/index.web.js +0 -14
  66. package/lib/module/index.web.js.map +1 -1
  67. package/lib/module/locale/translations/ar.js +0 -39
  68. package/lib/module/locale/translations/ar.js.map +1 -1
  69. package/lib/module/locale/translations/bn.js +0 -34
  70. package/lib/module/locale/translations/bn.js.map +1 -1
  71. package/lib/module/locale/translations/ca.js +0 -35
  72. package/lib/module/locale/translations/ca.js.map +1 -1
  73. package/lib/module/locale/translations/de.js +0 -35
  74. package/lib/module/locale/translations/de.js.map +1 -1
  75. package/lib/module/locale/translations/es.js +0 -35
  76. package/lib/module/locale/translations/es.js.map +1 -1
  77. package/lib/module/locale/translations/fr.js +0 -35
  78. package/lib/module/locale/translations/fr.js.map +1 -1
  79. package/lib/module/locale/translations/hi.js +0 -35
  80. package/lib/module/locale/translations/hi.js.map +1 -1
  81. package/lib/module/locale/translations/id.js +0 -34
  82. package/lib/module/locale/translations/id.js.map +1 -1
  83. package/lib/module/locale/translations/it.js +0 -35
  84. package/lib/module/locale/translations/it.js.map +1 -1
  85. package/lib/module/locale/translations/ja.js +0 -34
  86. package/lib/module/locale/translations/ja.js.map +1 -1
  87. package/lib/module/locale/translations/pt.js +0 -35
  88. package/lib/module/locale/translations/pt.js.map +1 -1
  89. package/lib/module/locale/translations/ru.js +0 -37
  90. package/lib/module/locale/translations/ru.js.map +1 -1
  91. package/lib/module/locale/translations/tr.js +0 -34
  92. package/lib/module/locale/translations/tr.js.map +1 -1
  93. package/lib/module/locale/translations/zh.js +0 -34
  94. package/lib/module/locale/translations/zh.js.map +1 -1
  95. package/lib/typescript/commonjs/icons/TEMPLATE.d.ts +1 -1
  96. package/lib/typescript/commonjs/icons/TEMPLATE.d.ts.map +1 -1
  97. package/lib/typescript/commonjs/icons/glyph-svg.d.ts +17 -0
  98. package/lib/typescript/commonjs/icons/glyph-svg.d.ts.map +1 -0
  99. package/lib/typescript/commonjs/icons/glyph.d.ts +11 -0
  100. package/lib/typescript/commonjs/icons/glyph.d.ts.map +1 -0
  101. package/lib/typescript/commonjs/icons/glyph.native.d.ts +20 -0
  102. package/lib/typescript/commonjs/icons/glyph.native.d.ts.map +1 -0
  103. package/lib/typescript/commonjs/index.d.ts +0 -9
  104. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  105. package/lib/typescript/commonjs/index.web.d.ts +0 -9
  106. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  107. package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
  108. package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
  109. package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
  110. package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
  111. package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
  112. package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
  113. package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
  114. package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
  115. package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
  116. package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
  117. package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
  118. package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
  120. package/lib/typescript/commonjs/locale/translations/types.d.ts +0 -6
  121. package/lib/typescript/commonjs/locale/translations/types.d.ts.map +1 -1
  122. package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
  123. package/lib/typescript/module/icons/TEMPLATE.d.ts +1 -1
  124. package/lib/typescript/module/icons/TEMPLATE.d.ts.map +1 -1
  125. package/lib/typescript/module/icons/glyph-svg.d.ts +17 -0
  126. package/lib/typescript/module/icons/glyph-svg.d.ts.map +1 -0
  127. package/lib/typescript/module/icons/glyph.d.ts +11 -0
  128. package/lib/typescript/module/icons/glyph.d.ts.map +1 -0
  129. package/lib/typescript/module/icons/glyph.native.d.ts +20 -0
  130. package/lib/typescript/module/icons/glyph.native.d.ts.map +1 -0
  131. package/lib/typescript/module/index.d.ts +0 -9
  132. package/lib/typescript/module/index.d.ts.map +1 -1
  133. package/lib/typescript/module/index.web.d.ts +0 -9
  134. package/lib/typescript/module/index.web.d.ts.map +1 -1
  135. package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
  136. package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
  137. package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
  138. package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
  139. package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
  140. package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
  141. package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
  142. package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
  143. package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
  144. package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
  145. package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
  146. package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
  147. package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
  148. package/lib/typescript/module/locale/translations/types.d.ts +0 -6
  149. package/lib/typescript/module/locale/translations/types.d.ts.map +1 -1
  150. package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
  151. package/package.json +1 -52
  152. package/src/__tests__/support/public-part-classifications.json +0 -5
  153. package/src/icons/TEMPLATE.tsx +28 -49
  154. package/src/icons/glyph-svg.tsx +54 -0
  155. package/src/icons/glyph.native.tsx +138 -0
  156. package/src/icons/glyph.tsx +15 -0
  157. package/src/index.ts +0 -62
  158. package/src/index.web.ts +0 -62
  159. package/src/locale/translations/ar.ts +0 -36
  160. package/src/locale/translations/bn.ts +0 -36
  161. package/src/locale/translations/ca.ts +0 -36
  162. package/src/locale/translations/de.ts +0 -36
  163. package/src/locale/translations/es.ts +0 -36
  164. package/src/locale/translations/fr.ts +0 -36
  165. package/src/locale/translations/hi.ts +0 -36
  166. package/src/locale/translations/id.ts +0 -36
  167. package/src/locale/translations/it.ts +0 -36
  168. package/src/locale/translations/ja.ts +0 -36
  169. package/src/locale/translations/pt.ts +0 -36
  170. package/src/locale/translations/ru.ts +0 -36
  171. package/src/locale/translations/tr.ts +0 -36
  172. package/src/locale/translations/types.ts +0 -6
  173. package/src/locale/translations/zh.ts +0 -36
  174. package/docs/checkout-summary.mdx +0 -94
  175. package/docs/order-confirmation.mdx +0 -66
  176. package/docs/vendor-card.mdx +0 -83
  177. package/lib/commonjs/checkout-summary/CheckoutConfirm.js +0 -243
  178. package/lib/commonjs/checkout-summary/CheckoutConfirm.js.map +0 -1
  179. package/lib/commonjs/checkout-summary/CheckoutSummary.js +0 -432
  180. package/lib/commonjs/checkout-summary/CheckoutSummary.js.map +0 -1
  181. package/lib/commonjs/checkout-summary/CheckoutSummaryRow.js +0 -277
  182. package/lib/commonjs/checkout-summary/CheckoutSummaryRow.js.map +0 -1
  183. package/lib/commonjs/checkout-summary/constants.js +0 -66
  184. package/lib/commonjs/checkout-summary/constants.js.map +0 -1
  185. package/lib/commonjs/checkout-summary/index.js +0 -95
  186. package/lib/commonjs/checkout-summary/index.js.map +0 -1
  187. package/lib/commonjs/checkout-summary/messages.js +0 -23
  188. package/lib/commonjs/checkout-summary/messages.js.map +0 -1
  189. package/lib/commonjs/checkout-summary/shared.js +0 -43
  190. package/lib/commonjs/checkout-summary/shared.js.map +0 -1
  191. package/lib/commonjs/checkout-summary/types.js +0 -6
  192. package/lib/commonjs/checkout-summary/types.js.map +0 -1
  193. package/lib/commonjs/order-confirmation/OrderConfirmation.js +0 -305
  194. package/lib/commonjs/order-confirmation/OrderConfirmation.js.map +0 -1
  195. package/lib/commonjs/order-confirmation/constants.js +0 -26
  196. package/lib/commonjs/order-confirmation/constants.js.map +0 -1
  197. package/lib/commonjs/order-confirmation/index.js +0 -38
  198. package/lib/commonjs/order-confirmation/index.js.map +0 -1
  199. package/lib/commonjs/order-confirmation/messages.js +0 -18
  200. package/lib/commonjs/order-confirmation/messages.js.map +0 -1
  201. package/lib/commonjs/order-confirmation/types.js +0 -6
  202. package/lib/commonjs/order-confirmation/types.js.map +0 -1
  203. package/lib/commonjs/vendor-card/VendorCard.js +0 -1051
  204. package/lib/commonjs/vendor-card/VendorCard.js.map +0 -1
  205. package/lib/commonjs/vendor-card/constants.js +0 -54
  206. package/lib/commonjs/vendor-card/constants.js.map +0 -1
  207. package/lib/commonjs/vendor-card/index.js +0 -69
  208. package/lib/commonjs/vendor-card/index.js.map +0 -1
  209. package/lib/commonjs/vendor-card/message-helpers.js +0 -23
  210. package/lib/commonjs/vendor-card/message-helpers.js.map +0 -1
  211. package/lib/commonjs/vendor-card/messages.js +0 -32
  212. package/lib/commonjs/vendor-card/messages.js.map +0 -1
  213. package/lib/commonjs/vendor-card/shared.js +0 -116
  214. package/lib/commonjs/vendor-card/shared.js.map +0 -1
  215. package/lib/commonjs/vendor-card/types.js +0 -6
  216. package/lib/commonjs/vendor-card/types.js.map +0 -1
  217. package/lib/module/checkout-summary/CheckoutConfirm.js +0 -237
  218. package/lib/module/checkout-summary/CheckoutConfirm.js.map +0 -1
  219. package/lib/module/checkout-summary/CheckoutSummary.js +0 -426
  220. package/lib/module/checkout-summary/CheckoutSummary.js.map +0 -1
  221. package/lib/module/checkout-summary/CheckoutSummaryRow.js +0 -273
  222. package/lib/module/checkout-summary/CheckoutSummaryRow.js.map +0 -1
  223. package/lib/module/checkout-summary/constants.js +0 -63
  224. package/lib/module/checkout-summary/constants.js.map +0 -1
  225. package/lib/module/checkout-summary/index.js +0 -8
  226. package/lib/module/checkout-summary/index.js.map +0 -1
  227. package/lib/module/checkout-summary/messages.js +0 -20
  228. package/lib/module/checkout-summary/messages.js.map +0 -1
  229. package/lib/module/checkout-summary/shared.js +0 -36
  230. package/lib/module/checkout-summary/shared.js.map +0 -1
  231. package/lib/module/checkout-summary/types.js +0 -4
  232. package/lib/module/checkout-summary/types.js.map +0 -1
  233. package/lib/module/order-confirmation/OrderConfirmation.js +0 -299
  234. package/lib/module/order-confirmation/OrderConfirmation.js.map +0 -1
  235. package/lib/module/order-confirmation/constants.js +0 -23
  236. package/lib/module/order-confirmation/constants.js.map +0 -1
  237. package/lib/module/order-confirmation/index.js +0 -5
  238. package/lib/module/order-confirmation/index.js.map +0 -1
  239. package/lib/module/order-confirmation/messages.js +0 -15
  240. package/lib/module/order-confirmation/messages.js.map +0 -1
  241. package/lib/module/order-confirmation/types.js +0 -4
  242. package/lib/module/order-confirmation/types.js.map +0 -1
  243. package/lib/module/vendor-card/VendorCard.js +0 -1046
  244. package/lib/module/vendor-card/VendorCard.js.map +0 -1
  245. package/lib/module/vendor-card/constants.js +0 -50
  246. package/lib/module/vendor-card/constants.js.map +0 -1
  247. package/lib/module/vendor-card/index.js +0 -6
  248. package/lib/module/vendor-card/index.js.map +0 -1
  249. package/lib/module/vendor-card/message-helpers.js +0 -18
  250. package/lib/module/vendor-card/message-helpers.js.map +0 -1
  251. package/lib/module/vendor-card/messages.js +0 -29
  252. package/lib/module/vendor-card/messages.js.map +0 -1
  253. package/lib/module/vendor-card/shared.js +0 -107
  254. package/lib/module/vendor-card/shared.js.map +0 -1
  255. package/lib/module/vendor-card/types.js +0 -4
  256. package/lib/module/vendor-card/types.js.map +0 -1
  257. package/lib/typescript/commonjs/checkout-summary/CheckoutConfirm.d.ts +0 -40
  258. package/lib/typescript/commonjs/checkout-summary/CheckoutConfirm.d.ts.map +0 -1
  259. package/lib/typescript/commonjs/checkout-summary/CheckoutSummary.d.ts +0 -36
  260. package/lib/typescript/commonjs/checkout-summary/CheckoutSummary.d.ts.map +0 -1
  261. package/lib/typescript/commonjs/checkout-summary/CheckoutSummaryRow.d.ts +0 -29
  262. package/lib/typescript/commonjs/checkout-summary/CheckoutSummaryRow.d.ts.map +0 -1
  263. package/lib/typescript/commonjs/checkout-summary/constants.d.ts +0 -39
  264. package/lib/typescript/commonjs/checkout-summary/constants.d.ts.map +0 -1
  265. package/lib/typescript/commonjs/checkout-summary/index.d.ts +0 -8
  266. package/lib/typescript/commonjs/checkout-summary/index.d.ts.map +0 -1
  267. package/lib/typescript/commonjs/checkout-summary/messages.d.ts +0 -23
  268. package/lib/typescript/commonjs/checkout-summary/messages.d.ts.map +0 -1
  269. package/lib/typescript/commonjs/checkout-summary/shared.d.ts +0 -27
  270. package/lib/typescript/commonjs/checkout-summary/shared.d.ts.map +0 -1
  271. package/lib/typescript/commonjs/checkout-summary/types.d.ts +0 -147
  272. package/lib/typescript/commonjs/checkout-summary/types.d.ts.map +0 -1
  273. package/lib/typescript/commonjs/order-confirmation/OrderConfirmation.d.ts +0 -40
  274. package/lib/typescript/commonjs/order-confirmation/OrderConfirmation.d.ts.map +0 -1
  275. package/lib/typescript/commonjs/order-confirmation/constants.d.ts +0 -17
  276. package/lib/typescript/commonjs/order-confirmation/constants.d.ts.map +0 -1
  277. package/lib/typescript/commonjs/order-confirmation/index.d.ts +0 -4
  278. package/lib/typescript/commonjs/order-confirmation/index.d.ts.map +0 -1
  279. package/lib/typescript/commonjs/order-confirmation/messages.d.ts +0 -12
  280. package/lib/typescript/commonjs/order-confirmation/messages.d.ts.map +0 -1
  281. package/lib/typescript/commonjs/order-confirmation/types.d.ts +0 -88
  282. package/lib/typescript/commonjs/order-confirmation/types.d.ts.map +0 -1
  283. package/lib/typescript/commonjs/vendor-card/VendorCard.d.ts +0 -6
  284. package/lib/typescript/commonjs/vendor-card/VendorCard.d.ts.map +0 -1
  285. package/lib/typescript/commonjs/vendor-card/constants.d.ts +0 -30
  286. package/lib/typescript/commonjs/vendor-card/constants.d.ts.map +0 -1
  287. package/lib/typescript/commonjs/vendor-card/index.d.ts +0 -5
  288. package/lib/typescript/commonjs/vendor-card/index.d.ts.map +0 -1
  289. package/lib/typescript/commonjs/vendor-card/message-helpers.d.ts +0 -13
  290. package/lib/typescript/commonjs/vendor-card/message-helpers.d.ts.map +0 -1
  291. package/lib/typescript/commonjs/vendor-card/messages.d.ts +0 -22
  292. package/lib/typescript/commonjs/vendor-card/messages.d.ts.map +0 -1
  293. package/lib/typescript/commonjs/vendor-card/shared.d.ts +0 -24
  294. package/lib/typescript/commonjs/vendor-card/shared.d.ts.map +0 -1
  295. package/lib/typescript/commonjs/vendor-card/types.d.ts +0 -111
  296. package/lib/typescript/commonjs/vendor-card/types.d.ts.map +0 -1
  297. package/lib/typescript/module/checkout-summary/CheckoutConfirm.d.ts +0 -40
  298. package/lib/typescript/module/checkout-summary/CheckoutConfirm.d.ts.map +0 -1
  299. package/lib/typescript/module/checkout-summary/CheckoutSummary.d.ts +0 -36
  300. package/lib/typescript/module/checkout-summary/CheckoutSummary.d.ts.map +0 -1
  301. package/lib/typescript/module/checkout-summary/CheckoutSummaryRow.d.ts +0 -29
  302. package/lib/typescript/module/checkout-summary/CheckoutSummaryRow.d.ts.map +0 -1
  303. package/lib/typescript/module/checkout-summary/constants.d.ts +0 -39
  304. package/lib/typescript/module/checkout-summary/constants.d.ts.map +0 -1
  305. package/lib/typescript/module/checkout-summary/index.d.ts +0 -8
  306. package/lib/typescript/module/checkout-summary/index.d.ts.map +0 -1
  307. package/lib/typescript/module/checkout-summary/messages.d.ts +0 -23
  308. package/lib/typescript/module/checkout-summary/messages.d.ts.map +0 -1
  309. package/lib/typescript/module/checkout-summary/shared.d.ts +0 -27
  310. package/lib/typescript/module/checkout-summary/shared.d.ts.map +0 -1
  311. package/lib/typescript/module/checkout-summary/types.d.ts +0 -147
  312. package/lib/typescript/module/checkout-summary/types.d.ts.map +0 -1
  313. package/lib/typescript/module/order-confirmation/OrderConfirmation.d.ts +0 -40
  314. package/lib/typescript/module/order-confirmation/OrderConfirmation.d.ts.map +0 -1
  315. package/lib/typescript/module/order-confirmation/constants.d.ts +0 -17
  316. package/lib/typescript/module/order-confirmation/constants.d.ts.map +0 -1
  317. package/lib/typescript/module/order-confirmation/index.d.ts +0 -4
  318. package/lib/typescript/module/order-confirmation/index.d.ts.map +0 -1
  319. package/lib/typescript/module/order-confirmation/messages.d.ts +0 -12
  320. package/lib/typescript/module/order-confirmation/messages.d.ts.map +0 -1
  321. package/lib/typescript/module/order-confirmation/types.d.ts +0 -88
  322. package/lib/typescript/module/order-confirmation/types.d.ts.map +0 -1
  323. package/lib/typescript/module/vendor-card/VendorCard.d.ts +0 -6
  324. package/lib/typescript/module/vendor-card/VendorCard.d.ts.map +0 -1
  325. package/lib/typescript/module/vendor-card/constants.d.ts +0 -30
  326. package/lib/typescript/module/vendor-card/constants.d.ts.map +0 -1
  327. package/lib/typescript/module/vendor-card/index.d.ts +0 -5
  328. package/lib/typescript/module/vendor-card/index.d.ts.map +0 -1
  329. package/lib/typescript/module/vendor-card/message-helpers.d.ts +0 -13
  330. package/lib/typescript/module/vendor-card/message-helpers.d.ts.map +0 -1
  331. package/lib/typescript/module/vendor-card/messages.d.ts +0 -22
  332. package/lib/typescript/module/vendor-card/messages.d.ts.map +0 -1
  333. package/lib/typescript/module/vendor-card/shared.d.ts +0 -24
  334. package/lib/typescript/module/vendor-card/shared.d.ts.map +0 -1
  335. package/lib/typescript/module/vendor-card/types.d.ts +0 -111
  336. package/lib/typescript/module/vendor-card/types.d.ts.map +0 -1
  337. package/src/checkout-summary/CheckoutConfirm.tsx +0 -119
  338. package/src/checkout-summary/CheckoutSummary.tsx +0 -221
  339. package/src/checkout-summary/CheckoutSummaryRow.tsx +0 -172
  340. package/src/checkout-summary/constants.ts +0 -64
  341. package/src/checkout-summary/index.ts +0 -22
  342. package/src/checkout-summary/messages.ts +0 -33
  343. package/src/checkout-summary/shared.ts +0 -40
  344. package/src/checkout-summary/types.ts +0 -152
  345. package/src/order-confirmation/OrderConfirmation.tsx +0 -197
  346. package/src/order-confirmation/constants.ts +0 -20
  347. package/src/order-confirmation/index.ts +0 -12
  348. package/src/order-confirmation/messages.ts +0 -18
  349. package/src/order-confirmation/types.ts +0 -98
  350. package/src/vendor-card/VendorCard.tsx +0 -509
  351. package/src/vendor-card/constants.ts +0 -58
  352. package/src/vendor-card/index.ts +0 -15
  353. package/src/vendor-card/message-helpers.ts +0 -20
  354. package/src/vendor-card/messages.ts +0 -36
  355. package/src/vendor-card/shared.ts +0 -136
  356. package/src/vendor-card/types.ts +0 -115
@@ -5,13 +5,18 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.createMultiPathSVG = createMultiPathSVG;
7
7
  exports.createSinglePathSVG = createSinglePathSVG;
8
- var _compilerRuntime = require("react/compiler-runtime");
9
8
  var _react = require("react");
10
- var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
11
- var _shared = require("./shared.js");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- var cache;
14
- function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
9
+ var _glyph = require("./glyph");
10
+ /**
11
+ * The icon component of one glyph. What draws it is the platform's: inline SVG
12
+ * on the web, one native view per icon on native when the app's binary has it
13
+ * (`glyph.native.tsx`), react-native-svg otherwise.
14
+ */
15
+ function iconComponent(glyph) {
16
+ return /*#__PURE__*/(0, _react.forwardRef)(function IconImpl(props, ref) {
17
+ return (0, _glyph.useGlyph)(glyph, props, ref);
18
+ });
19
+ }
15
20
  function createSinglePathSVG({
16
21
  path,
17
22
  viewBox,
@@ -19,166 +24,26 @@ function createSinglePathSVG({
19
24
  strokeLinecap = 'butt',
20
25
  strokeLinejoin = 'miter'
21
26
  }) {
22
- return /*#__PURE__*/(0, _react.forwardRef)(function IconImpl(props, ref) {
23
- const $ = (0, _compilerRuntime.c)(18);
24
- const t0 = (0, _shared.useCommonSVGProps)(props);
25
- let fill;
26
- let gradient;
27
- let rest;
28
- let size;
29
- let style;
30
- if ($[0] !== t0) {
31
- ({
32
- fill,
33
- size,
34
- style,
35
- gradient,
36
- ...rest
37
- } = t0);
38
- $[0] = t0;
39
- $[1] = fill;
40
- $[2] = gradient;
41
- $[3] = rest;
42
- $[4] = size;
43
- $[5] = style;
44
- } else {
45
- fill = $[1];
46
- gradient = $[2];
47
- rest = $[3];
48
- size = $[4];
49
- style = $[5];
50
- }
51
- const hasStroke = strokeWidth > 0;
52
- let t1;
53
- if ($[6] !== style) {
54
- t1 = [style];
55
- $[6] = style;
56
- $[7] = t1;
57
- } else {
58
- t1 = $[7];
59
- }
60
- const t2 = hasStroke ? "none" : fill;
61
- const t3 = hasStroke ? fill : "none";
62
- let t4;
63
- if ($[8] !== t2 || $[9] !== t3) {
64
- t4 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
65
- fill: t2,
66
- stroke: t3,
67
- strokeWidth: strokeWidth,
68
- strokeLinecap: strokeLinecap,
69
- strokeLinejoin: strokeLinejoin,
70
- fillRule: "evenodd",
71
- clipRule: "evenodd",
72
- d: path
73
- });
74
- $[8] = t2;
75
- $[9] = t3;
76
- $[10] = t4;
77
- } else {
78
- t4 = $[10];
79
- }
80
- let t5;
81
- if ($[11] !== gradient || $[12] !== ref || $[13] !== rest || $[14] !== size || $[15] !== t1 || $[16] !== t4) {
82
- t5 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
83
- fill: "none",
84
- ...rest,
85
- ref: ref,
86
- viewBox: viewBox || "0 0 24 24",
87
- width: size,
88
- height: size,
89
- style: t1,
90
- children: [gradient, t4]
91
- });
92
- $[11] = gradient;
93
- $[12] = ref;
94
- $[13] = rest;
95
- $[14] = size;
96
- $[15] = t1;
97
- $[16] = t4;
98
- $[17] = t5;
99
- } else {
100
- t5 = $[17];
101
- }
102
- return t5;
27
+ return iconComponent({
28
+ kind: 'single',
29
+ paths: [path],
30
+ viewBox: viewBox || '0 0 24 24',
31
+ strokeWidth,
32
+ strokeLinecap,
33
+ strokeLinejoin
103
34
  });
104
35
  }
105
36
  function createMultiPathSVG({
106
37
  paths,
107
38
  viewBox
108
39
  }) {
109
- return /*#__PURE__*/(0, _react.forwardRef)(function IconImpl(props, ref) {
110
- const $ = (0, _compilerRuntime.c)(17);
111
- const t0 = (0, _shared.useCommonSVGProps)(props);
112
- let fill;
113
- let gradient;
114
- let rest;
115
- let size;
116
- let style;
117
- if ($[0] !== t0) {
118
- ({
119
- fill,
120
- size,
121
- style,
122
- gradient,
123
- ...rest
124
- } = t0);
125
- $[0] = t0;
126
- $[1] = fill;
127
- $[2] = gradient;
128
- $[3] = rest;
129
- $[4] = size;
130
- $[5] = style;
131
- } else {
132
- fill = $[1];
133
- gradient = $[2];
134
- rest = $[3];
135
- size = $[4];
136
- style = $[5];
137
- }
138
- let t1;
139
- if ($[6] !== style) {
140
- t1 = [style];
141
- $[6] = style;
142
- $[7] = t1;
143
- } else {
144
- t1 = $[7];
145
- }
146
- let t2;
147
- if ($[8] !== fill) {
148
- t2 = paths.map((path, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
149
- fill: fill,
150
- fillRule: "evenodd",
151
- clipRule: "evenodd",
152
- d: path
153
- }, i));
154
- $[8] = fill;
155
- $[9] = t2;
156
- } else {
157
- t2 = $[9];
158
- }
159
- let t3;
160
- if ($[10] !== gradient || $[11] !== ref || $[12] !== rest || $[13] !== size || $[14] !== t1 || $[15] !== t2) {
161
- t3 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
162
- fill: "none",
163
- ...rest,
164
- ref: ref,
165
- viewBox: viewBox || "0 0 24 24",
166
- width: size,
167
- height: size,
168
- style: t1,
169
- children: [gradient, t2]
170
- });
171
- $[10] = gradient;
172
- $[11] = ref;
173
- $[12] = rest;
174
- $[13] = size;
175
- $[14] = t1;
176
- $[15] = t2;
177
- $[16] = t3;
178
- } else {
179
- t3 = $[16];
180
- }
181
- return t3;
40
+ return iconComponent({
41
+ kind: 'multi',
42
+ paths,
43
+ viewBox: viewBox || '0 0 24 24',
44
+ strokeWidth: 0,
45
+ strokeLinecap: 'butt',
46
+ strokeLinejoin: 'miter'
182
47
  });
183
48
  }
184
49
  //# sourceMappingURL=TEMPLATE.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeSvg","_interopRequireWildcard","_shared","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","createSinglePathSVG","path","viewBox","strokeWidth","strokeLinecap","strokeLinejoin","forwardRef","IconImpl","props","ref","$","_compilerRuntime","t0","useCommonSVGProps","fill","gradient","rest","size","style","hasStroke","t1","t2","t3","t4","jsx","Path","stroke","fillRule","clipRule","t5","jsxs","children","createMultiPathSVG","paths","map","i"],"sourceRoot":"../../../src","sources":["icons/TEMPLATE.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAAyD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,IAAAK,KAAA;AAAA,SAAAH,wBAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAE,UAAA,SAAAF,CAAA,MAAAG,CAAA,EAAAC,CAAA,EAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,QAAAM,MAAA,CAAAN,CAAA,MAAAA,CAAA,SAAAQ,CAAA,MAAAT,KAAA,yBAAAY,OAAA,KAAAZ,KAAA,OAAAY,OAAA,KAAAZ,KAAA,QAAAA,KAAA,CAAAa,GAAA,CAAAZ,CAAA,UAAAD,KAAA,CAAAc,GAAA,CAAAb,CAAA,GAAAD,KAAA,CAAAe,GAAA,CAAAd,CAAA,EAAAQ,CAAA,UAAAJ,CAAA,IAAAJ,CAAA,gBAAAI,CAAA,OAAAW,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAI,CAAA,OAAAD,CAAA,GAAAE,CAAA,IAAAC,MA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AA,GAAAY,KAAK,CAAAC,GAAI,CAAC,CAAAjC,IAAA,EAAAkC,CAAA,kBACT,IAAAvD,WAAA,CAAA4C,GAAA,EAAC/C,eAAA,CAAAgD,IAAI;QAAeX,IAAI,EAAJA,IAAI;QAAWa,QAAS,EAAT,SAAS;QAAUC,QAAS,EAAT,SAAS;QAAI3B,CAAI,EAAJA;MAAI,GAA5DkC,CAA+D,CAC3E,CAAC;MAAAzB,CAAA,MAAAI,IAAA;MAAAJ,CAAA,MAAAW,EAAA;IAAA;MAAAA,EAAA,GAAAX,CAAA;IAAA;IAAA,IAAAY,EAAA;IAAA,IAAAZ,CAAA,SAAAK,QAAA,IAAAL,CAAA,SAAAD,GAAA,IAAAC,CAAA,SAAAM,IAAA,IAAAN,CAAA,SAAAO,IAAA,IAAAP,CAAA,SAAAU,EAAA,IAAAV,CAAA,SAAAW,EAAA;MAZJC,EAAA,oBAAA1C,WAAA,CAAAkD,IAAA,EAACrD,eAAA,CAAAe,OAAG;QACGsB,IAAM,EAAN,MAAM;QAAA,GACPE,IAAI;QACHP,GAAG,EAAHA,GAAG;QACCP,OAAsB,EAAtBA,OAAsB,IAAtB,WAAsB;QACxBe,KAAI,EAAJA,IAAI;QACHA,MAAI,EAAJA,IAAI;QACLC,KAAO,EAAPE,EAAO;QAAAW,QAAA,GAEbhB,QAAQ,EACRM,EAEC;MAAA,CACC,CAAC;MAAAX,CAAA,OAAAK,QAAA;MAAAL,CAAA,OAAAD,GAAA;MAAAC,CAAA,OAAAM,IAAA;MAAAN,CAAA,OAAAO,IAAA;MAAAP,CAAA,OAAAU,EAAA;MAAAV,CAAA,OAAAW,EAAA;MAAAX,CAAA,OAAAY,EAAA;IAAA;MAAAA,EAAA,GAAAZ,CAAA;IAAA;IAAA,OAbNY,EAaM;EAAA,CAET,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_glyph","iconComponent","glyph","forwardRef","IconImpl","props","ref","useGlyph","createSinglePathSVG","path","viewBox","strokeWidth","strokeLinecap","strokeLinejoin","kind","paths","createMultiPathSVG"],"sourceRoot":"../../../src","sources":["icons/TEMPLATE.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA,SAASE,aAAaA,CAACC,KAAgB,EAAE;EACvC,oBAAO,IAAAC,iBAAU,EAAa,SAAAC,SAAAC,KAAA,EAAAC,GAAA;IAAA,OACrB,IAAAC,eAAQ,EAACL,KAAK,EAAEG,KAAK,EAAEC,GAAG,CAAC;EAAA,CACnC,CAAC;AACJ;AAEO,SAASE,mBAAmBA,CAAC;EAClCC,IAAI;EACJC,OAAO;EACPC,WAAW,GAAG,CAAC;EACfC,aAAa,GAAG,MAAM;EACtBC,cAAc,GAAG;AAOnB,CAAC,EAAE;EACD,OAAOZ,aAAa,CAAC;IACnBa,IAAI,EAAE,QAAQ;IACdC,KAAK,EAAE,CAACN,IAAI,CAAC;IACbC,OAAO,EAAEA,OAAO,IAAI,WAAW;IAC/BC,WAAW;IACXC,aAAa;IACbC;EACF,CAAC,CAAC;AACJ;AAEO,SAASG,kBAAkBA,CAAC;EAAED,KAAK;EAAEL;AAA+C,CAAC,EAAE;EAC5F,OAAOT,aAAa,CAAC;IACnBa,IAAI,EAAE,OAAO;IACbC,KAAK;IACLL,OAAO,EAAEA,OAAO,IAAI,WAAW;IAC/BC,WAAW,EAAE,CAAC;IACdC,aAAa,EAAE,MAAM;IACrBC,cAAc,EAAE;EAClB,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.svgGlyph = svgGlyph;
7
+ var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ var cache;
10
+ function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
11
+ /** One glyph as its factory describes it: its path data and how it paints. */
12
+
13
+ /** The glyph as react-native-svg (and, on the web, inline SVG) draws it. */
14
+ function svgGlyph(glyph, {
15
+ fill,
16
+ size,
17
+ style,
18
+ gradient,
19
+ ...rest
20
+ }, ref) {
21
+ const hasStroke = glyph.strokeWidth > 0;
22
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
23
+ fill: "none",
24
+ ...rest,
25
+ ref: ref,
26
+ viewBox: glyph.viewBox,
27
+ width: size,
28
+ height: size,
29
+ style: [style],
30
+ children: [gradient, glyph.kind === 'single' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
31
+ fill: hasStroke ? 'none' : fill,
32
+ stroke: hasStroke ? fill : 'none',
33
+ strokeWidth: glyph.strokeWidth,
34
+ strokeLinecap: glyph.strokeLinecap,
35
+ strokeLinejoin: glyph.strokeLinejoin,
36
+ fillRule: "evenodd",
37
+ clipRule: "evenodd",
38
+ d: glyph.paths[0]
39
+ }) : glyph.paths.map((path, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
40
+ fill: fill,
41
+ fillRule: "evenodd",
42
+ clipRule: "evenodd",
43
+ d: path
44
+ }, i))]
45
+ });
46
+ }
47
+ //# sourceMappingURL=glyph-svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeSvg","_interopRequireWildcard","require","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","svgGlyph","glyph","fill","size","style","gradient","rest","ref","hasStroke","strokeWidth","jsxs","viewBox","width","height","children","kind","jsx","Path","stroke","strokeLinecap","strokeLinejoin","fillRule","clipRule","d","paths","map","path","i"],"sourceRoot":"../../../src","sources":["icons/glyph-svg.tsx"],"mappings":";;;;;;AACA,IAAAA,eAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA6C,IAAAC,WAAA,GAAAD,OAAA;AAAA,IAAAE,KAAA;AAAA,SAAAH,wBAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAE,UAAA,SAAAF,CAAA,MAAAG,CAAA,EAAAC,CAAA,EAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,QAAAM,MAAA,CAAAN,CAAA,MAAAA,CAAA,SAAAQ,CAAA,MAAAT,KAAA,yBAAAY,OAAA,KAAAZ,KAAA,OAAAY,OAAA,KAAAZ,KAAA,QAAAA,KAAA,CAAAa,GAAA,CAAAZ,CAAA,UAAAD,KAAA,CAAAc,GAAA,CAAAb,CAAA,GAAAD,KAAA,CAAAe,GAAA,CAAAd,CAAA,EAAAQ,CAAA,UAAAJ,CAAA,IAAAJ,CAAA,gBAAAI,CAAA,OAAAW,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAI,CAAA,OAAAD,CAAA,GAAAE,CAAA,IAAAC,MAAA,CAAAW,wBAAA,CAAAjB,CAAA,EAAAI,CAAA,OAAAD,CAAA,CAAAU,GAAA,IAAAV,CAAA,CAAAW,GAAA,IAAAT,CAAA,CAAAG,CAAA,EAAAJ,CAAA,EAAAD,CAAA,IAAAK,CAAA,CAAAJ,CAAA,IAAAJ,CAAA,CAAAI,CAAA,WAAAI,CAAA;AAI7C;;AAYA;AACO,SAASU,QAAQA,CACtBC,KAAgB,EAChB;EAAEC,IAAI;EAAEC,IAAI;EAAEC,KAAK;EAAEC,QAAQ;EAAE,GAA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yph;
7
+ var _compilerRuntime = require("react/compiler-runtime");
8
+ var _glyphSvg = require("./glyph-svg.js");
9
+ var _shared = require("./shared.js");
10
+ /**
11
+ * Draws a Bloom icon. Here (the web, and Node) it is inline SVG, which costs
12
+ * nothing extra in a browser; `glyph.native.tsx` is the native fork.
13
+ */
14
+ function useGlyph(glyph, props, ref) {
15
+ const $ = (0, _compilerRuntime.c)(4);
16
+ const t0 = (0, _shared.useCommonSVGProps)(props);
17
+ let t1;
18
+ if ($[0] !== glyph || $[1] !== ref || $[2] !== t0) {
19
+ t1 = (0, _glyphSvg.svgGlyph)(glyph, t0, ref);
20
+ $[0] = glyph;
21
+ $[1] = ref;
22
+ $[2] = t0;
23
+ $[3] = t1;
24
+ } else {
25
+ t1 = $[3];
26
+ }
27
+ return t1;
28
+ }
29
+ //# sourceMappingURL=glyph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_glyphSvg","require","_shared","useGlyph","glyph","props","ref","$","_compilerRuntime","c","t0","useCommonSVGProps","t1","svgGlyph"],"sourceRoot":"../../../src","sources":["icons/glyph.tsx"],"mappings":";;;;;;;AAGA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAIA;AACA;AACA;AACA;AACO,SAAAE,SAAAC,KAAA,EAAAC,KAAA,EAAAC,GAAA;EAAA,MAAAC,CAAA,OAAAC,gBAAA,CAAAC,CAAA;EACkB,MAAAC,EAAA,OAAAC,yBAAiB,EAACN,KAAK,CAAC;EAAA,IAAAO,EAAA;EAAA,IAAAL,CAAA,QAAAH,KAAA,IAAAG,CAAA,QAAAD,GAAA,IAAAC,CAAA,QAAAG,EAAA;IAAxCE,EAAA,OAAAC,kBAAQ,EAACT,KAAK,EAAEM,EAAwB,EAAEJ,GAAG,CAAC;IAAAC,CAAA,MAAAH,KAAA;IAAAG,CAAA,MAAAD,GAAA;IAAAC,CAAA,MAAAG,EAAA;IAAAH,CAAA,MAAAK,EAAA;EAAA;IAAAA,EAAA,GAAAL,CAAA;EAAA;EAAA,OAA9CK,EAA8C;AAAA","ignoreList":[]}
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useGlyph = useGlyph;
7
+ var _reactNative = require("react-native");
8
+ var _tokens = require("../styles/tokens.js");
9
+ var _glyphSvg = require("./glyph-svg.js");
10
+ var _shared = require("./shared.js");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ /** `BloomIconV1` (`android/…/icons/BloomIcon.kt`): the versioned name is the prop contract. */
13
+
14
+ let nativeIcon;
15
+
16
+ /**
17
+ * The native icon view, when the app's binary has it. A JavaScript-only update
18
+ * (an OTA bundle on an older binary, Expo Go, iOS until it has the view) keeps
19
+ * react-native-svg, so every icon still draws.
20
+ */
21
+ function loadNativeIcon() {
22
+ if (nativeIcon === undefined) {
23
+ try {
24
+ nativeIcon = _reactNative.UIManager.hasViewManagerConfig?.('BloomIconV1') ? (0, _reactNative.requireNativeComponent)('BloomIconV1') : null;
25
+ } catch {
26
+ nativeIcon = null;
27
+ }
28
+ }
29
+ return nativeIcon;
30
+ }
31
+ const stopLists = new Map();
32
+
33
+ /** A gradient token's stops, as react-native-svg's `extractGradient` sends them (opaque stops). */
34
+ function stopList(name) {
35
+ let list = stopLists.get(name);
36
+ if (list === undefined) {
37
+ list = _tokens.gradients[name].values.flatMap(([offset, color]) => [offset, (0, _reactNative.processColor)(color) & 0x00ffffff | 255 << 24]);
38
+ stopLists.set(name, list);
39
+ }
40
+ return list;
41
+ }
42
+ const boxes = new Map();
43
+
44
+ /** react-native-svg's root override for a sized `<Svg>`: the side, and `flex: 0`. */
45
+ function box(size) {
46
+ let style = boxes.get(size);
47
+ if (style === undefined) {
48
+ style = {
49
+ width: size,
50
+ height: size,
51
+ flex: 0
52
+ };
53
+ boxes.set(size, style);
54
+ }
55
+ return style;
56
+ }
57
+
58
+ /**
59
+ * Draws a Bloom icon on native: ONE native view that draws the path on the
60
+ * hardware canvas, where react-native-svg mounts three views and rasterises
61
+ * the glyph in software. The paint is resolved exactly as for the SVG
62
+ * (`useCommonSVGProps`): `fill`, else `style.color`, else the theme's primary;
63
+ * a `gradient` token wins over the fill; `currentColor` is the `color` prop or
64
+ * `style.color`, black without either (react-native-svg's default).
65
+ *
66
+ * What the native view draws: fill, stroke, the gradient tokens and `opacity`,
67
+ * with every View prop (layout style, accessibility, testID, onLayout). SVG
68
+ * paint props an icon never needed (`fillOpacity`, `strokeDasharray`, an SVG
69
+ * `transform`…) are not drawn there.
70
+ */
71
+ function useGlyph(glyph, props, ref) {
72
+ const common = (0, _shared.useCommonSVGProps)(props);
73
+ const NativeIcon = loadNativeIcon();
74
+ if (NativeIcon === null) return (0, _glyphSvg.svgGlyph)(glyph, common, ref);
75
+ const {
76
+ fill,
77
+ size,
78
+ style,
79
+ gradient: _gradientDefs,
80
+ width: _width,
81
+ height: _height,
82
+ color,
83
+ opacity,
84
+ transform: _transform,
85
+ viewBox: _viewBox,
86
+ strokeWidth: _strokeWidth,
87
+ strokeLinecap: _strokeLinecap,
88
+ strokeLinejoin: _strokeLinejoin,
89
+ ...rest
90
+ } = common;
91
+ const token = props.gradient && _tokens.gradients[props.gradient] ? props.gradient : undefined;
92
+ let paint = null;
93
+ if (token === undefined && fill !== 'none' && fill != null) {
94
+ paint = fill === 'currentColor' ? color ?? style?.color ?? 'black' : fill;
95
+ }
96
+ const stroked = glyph.kind === 'single' && glyph.strokeWidth > 0;
97
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(NativeIcon, {
98
+ ...rest,
99
+ ref: ref,
100
+ style: opacity == null ? [style, box(size)] : [style, box(size), {
101
+ opacity: Number(opacity)
102
+ }],
103
+ paths: glyph.paths,
104
+ viewBox: glyph.viewBox,
105
+ fill: paint,
106
+ strokeWidth: stroked ? glyph.strokeWidth : 0,
107
+ strokeLinecap: glyph.strokeLinecap,
108
+ strokeLinejoin: glyph.strokeLinejoin,
109
+ gradient: token === undefined ? null : stopList(token)
110
+ });
111
+ }
112
+ //# sourceMappingURL=glyph.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_tokens","_glyphSvg","_shared","_jsxRuntime","nativeIcon","loadNativeIcon","undefined","UIManager","hasViewManagerConfig","requireNativeComponent","stopLists","Map","stopList","name","list","get","gradients","values","flatMap","offset","color","processColor","set","boxes","box","size","style","width","height","flex","useGlyph","glyph","props","ref","common","useCommonSVGProps","NativeIcon","svgGlyph","fill","gradient","_gradientDefs","_width","_height","opacity","transform","_transform","viewBox","_viewBox","strokeWidth","_strokeWidth","strokeLinecap","_strokeLinecap","strokeLinejoin","_strokeLinejoin","rest","token","paint","stroked","kind","jsx","Number","paths"],"sourceRoot":"../../../src","sources":["icons/glyph.native.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAWA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAAyD,IAAAI,WAAA,GAAAJ,OAAA;AAIzD;;AAYA,IAAIK,UAA6D;;AAEjE;AACA;AACA;AACA;AACA;AACA,SAASC,cAAcA,CAAA,EAAG;EACxB,IAAID,UAAU,KAAKE,SAAS,EAAE;IAC5B,IAAI;MACFF,UAAU,GAAGG,sBAAS,CAACC,oBAAoB,GAAG,aAAa,CAAC,GACxD,IAAAC,mCAAsB,EAAkB,aAAa,CAAC,GACtD,IAAI;IACV,CAAC,CAAC,MAAM;MACNL,UAAU,GAAG,IAAI;IACnB;EACF;EACA,OAAOA,UAAU;AACnB;AAEA,MAAMM,SAAS,GAAG,IAAIC,GAAG,CAA4C,CAAC;;AAEtE;AACA,SAASC,QAAQA,CAACC,IAA4B,EAAqB;EACjE,IAAIC,IAAI,GAAGJ,SAAS,CAACK,GAAG,CAACF,IAAI,CAAC;EAC9B,IAAIC,IAAI,KAAKR,SAAS,EAAE;IACtBQ,IAAI,GAAGE,iBAAS,CAACH,IAA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