@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
@@ -1,20 +0,0 @@
1
- import { ORDER_CONFIRMATION_MESSAGES } from './messages';
2
-
3
- /**
4
- * The English words the confirmation says when the app says nothing. The
5
- * component itself says them in the app's language (`ORDER_CONFIRMATION_MESSAGES`).
6
- */
7
- export const ORDER_CONFIRMATION_TITLE = ORDER_CONFIRMATION_MESSAGES.en.title;
8
- export const ORDER_CONFIRMATION_REFERENCE_LABEL = ORDER_CONFIRMATION_MESSAGES.en.referenceLabel;
9
- export const ORDER_CONFIRMATION_ITEMS_LABEL = ORDER_CONFIRMATION_MESSAGES.en.itemsLabel;
10
-
11
- /**
12
- * The drawn-on check. 56 is the size at which the 4px stroke of
13
- * `AnimatedCheck`'s 52-unit canvas reads as a mark rather than as an icon —
14
- * below ~40 it looks like a status glyph, which is the opposite of what a
15
- * finished flow is saying.
16
- */
17
- export const ORDER_CONFIRMATION_MARK = 56;
18
-
19
- /** Between the blocks of the receipt. */
20
- export const ORDER_CONFIRMATION_GAP = 16;
@@ -1,12 +0,0 @@
1
- export { OrderConfirmation } from './OrderConfirmation';
2
- export {
3
- ORDER_CONFIRMATION_ITEMS_LABEL,
4
- ORDER_CONFIRMATION_MARK,
5
- ORDER_CONFIRMATION_REFERENCE_LABEL,
6
- ORDER_CONFIRMATION_TITLE,
7
- } from './constants';
8
- export type {
9
- OrderConfirmationAddress,
10
- OrderConfirmationFact,
11
- OrderConfirmationProps,
12
- } from './types';
@@ -1,18 +0,0 @@
1
- import { defineMessages, type MessageCatalog } from '../locale/messages';
2
-
3
- /**
4
- * The words the confirmation says when the app says nothing, in each Bloom
5
- * language. The `title`, `referenceLabel` and `itemsLabel` props still win.
6
- */
7
- export interface OrderConfirmationMessages {
8
- title: string;
9
- referenceLabel: string;
10
- itemsLabel: string;
11
- }
12
-
13
- export const ORDER_CONFIRMATION_MESSAGES: MessageCatalog<OrderConfirmationMessages> =
14
- defineMessages<OrderConfirmationMessages>('ORDER_CONFIRMATION_MESSAGES', {
15
- title: 'Your order is placed',
16
- referenceLabel: 'Order number',
17
- itemsLabel: 'What you ordered',
18
- });
@@ -1,98 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { StyleProp, ViewStyle } from 'react-native';
3
-
4
- import type { AddressKind } from '../address';
5
- import type { EmptyStateAction, EmptyStateVariant } from '../empty-state';
6
- import type { BloomIconComponent } from '../icons/icon-component';
7
- import type { OrderStatusBarProps } from '../order-status';
8
-
9
- /**
10
- * One reading of the receipt: when it arrives, what was charged, who is
11
- * bringing it.
12
- *
13
- * `value` is PRE-FORMATTED, like every string in this family — a time, an
14
- * amount, a courier's name. Nothing here reads a clock or adds a number.
15
- */
16
- export interface OrderConfirmationFact {
17
- /** Stable key. Defaults to the label. */
18
- id?: string;
19
- /** "Arrives", "Paid with", "Courier". */
20
- label: string;
21
- /** "Today, 17:00 – 19:00", "•••• 4417", "Mireia". */
22
- value: string;
23
- }
24
-
25
- /** Where it is going, drawn with `address`'s own `AddressRow`. */
26
- export interface OrderConfirmationAddress {
27
- /** The line the place is recognised by — "Home". */
28
- title: string;
29
- /** The rest of it. */
30
- subtitle?: string;
31
- /** Chooses the glyph. Default `place`. */
32
- kind?: AddressKind;
33
- /** The glyph, overriding whatever `kind` would have chosen. */
34
- icon?: BloomIconComponent;
35
- /** A node after the title — a `Badge`. */
36
- badge?: ReactNode;
37
- /** A short trailing reading — "1.2 km". */
38
- meta?: string;
39
- testID?: string;
40
- }
41
-
42
- export interface OrderConfirmationProps {
43
- /** Default `"Your order is placed"`. */
44
- title?: string;
45
- /** The line under it — "We have sent the receipt to your inbox." */
46
- description?: string;
47
- /**
48
- * The mark above the title. Default a check on a success-tinted disc — a
49
- * STATIC one, because `AnimatedCheck` draws itself on only when a caller
50
- * kicks it through its ref, and a mark nobody can see until a method runs is
51
- * not a mark. Pass `<AnimatedCheck>` (played by your own ref) for the
52
- * draw-on, a brand mark, or `null` for none.
53
- */
54
- mark?: ReactNode;
55
- /** The default mark's box. Default 56. */
56
- markSize?: number;
57
-
58
- /** The order's own number — "A-4821". PRE-FORMATTED, including any prefix. */
59
- reference?: string;
60
- /** The caption above it. Default `"Order number"`. */
61
- referenceLabel?: string;
62
-
63
- /**
64
- * The tracking strip — `order-status`'s `OrderStatusBar`, passed straight
65
- * through. This family draws no second one: "where it is right now" has one
66
- * component in the library and this is a place that shows it.
67
- */
68
- status?: OrderStatusBarProps;
69
-
70
- /** Where it goes. */
71
- address?: OrderConfirmationAddress;
72
-
73
- /** When it arrives, what was charged, and anything else worth reading back. */
74
- facts?: readonly OrderConfirmationFact[];
75
-
76
- /**
77
- * What was ordered, in full — the basket's own rows, rendered by the app.
78
- * A slot rather than data: a line of an order is a dish, a parcel or a seat
79
- * depending on the app, and each already has a row family of its own.
80
- */
81
- items?: ReactNode;
82
- /** The caption above `items`. Default `"What you ordered"`. */
83
- itemsLabel?: string;
84
-
85
- /** The first thing you do next — normally "Track order". */
86
- action?: EmptyStateAction;
87
- /** The other one — normally "Get help". */
88
- secondaryAction?: EmptyStateAction;
89
- /** Under the actions — a "Back to the shop" link, a note. */
90
- footer?: ReactNode;
91
-
92
- /** Default `comfortable`. `compact` is the panel rung. */
93
- variant?: EmptyStateVariant;
94
- /** Names the whole surface. Defaults to the title and the reference. */
95
- accessibilityLabel?: string;
96
- style?: StyleProp<ViewStyle>;
97
- testID?: string;
98
- }
@@ -1,509 +0,0 @@
1
- import React, { memo, useMemo } from 'react';
2
- import { Pressable, View, type GestureResponderEvent, type ViewStyle } from 'react-native';
3
- import { openHref } from '../hooks/link-activation';
4
- import { BloomImage } from '../image';
5
-
6
- import { Badge } from '../badge';
7
- import { Chip } from '../chip';
8
- import { RiPriceTag3Line } from '../icons/remix/RiPriceTag3Line';
9
- import { useImageResolver } from '../image-resolver/context';
10
- import { useCommonMessages } from '../locale/common-messages';
11
- import { useMessages } from '../locale/messages';
12
- import { FavoriteButton } from '../listing-card';
13
- import { ListingFacts, ListingStatusPill } from '../listing-card/parts';
14
- import {
15
- COMPACT_PHOTO_RADIUS,
16
- COMPACT_PHOTO_SIZE,
17
- LISTING_CARD_CSS,
18
- LISTING_CARD_STYLE_ID,
19
- PHOTO_RADIUS,
20
- resolveListingCardPaint,
21
- resolvePhoto,
22
- STATUS_WASH_OPACITY,
23
- type ListingCardPaint,
24
- } from '../listing-card/shared';
25
- import { OFFERING_BADGE_RUNG } from '../offering-badge/shared';
26
- import type { OfferingBadgeSize } from '../offering-badge/types';
27
- import { Rating } from '../rating';
28
- import { Box as SkeletonBox } from '../skeleton';
29
- import { useInteractiveWebCss } from '../styles/interactive-web-css';
30
- import { webDataSet } from '../styles/web-data';
31
- import type { WebCssStyle } from '../styles/web-view-style';
32
- import { useTheme } from '../theme/use-theme';
33
- import { Text } from '../typography';
34
- import {
35
- VENDOR_CUISINE_CHIP_HEIGHT,
36
- VENDOR_PHOTO_ASPECT_RATIO,
37
- VENDOR_TEXT_GAP,
38
- } from './constants';
39
- import { VENDOR_CARD_MESSAGES } from './messages';
40
- import {
41
- availabilityLabelFor,
42
- composeVendorName,
43
- VENDOR_CARD_CSS,
44
- VENDOR_CARD_STYLE_ID,
45
- vendorCuisines,
46
- vendorFacts,
47
- } from './shared';
48
- import type { VendorCardDensity, VendorCardProps } from './types';
49
- import { IS_WEB } from '../styles/platform';
50
-
51
- /**
52
- * A restaurant or a shop in a list.
53
- *
54
- * comfortable a 16:9 cover (radius 16) with the marks over it, 12 below it
55
- * the name + `Rating`, the cuisines, the "opens at" line and
56
- * the fact row
57
- * compact a 112 square thumbnail (radius 12), 12 right of it the marks
58
- * row, the name + small `Rating`, the cuisines, the "opens at"
59
- * line and the fact row
60
- * marks the status pill first, then the promo — the reader decides
61
- * "can I order at all" before "is it cheap"
62
- * not open the cover washed 50% toward the page, exactly as a home that
63
- * is not available is
64
- *
65
- * IT IS `listing-card`'s CARD WITH A VENDOR'S DATA IN IT, deliberately. The
66
- * wash, the status pill, the fact row, the heart, the placeholder and every
67
- * colour are `listing-card`'s own parts — a food app and a housing app put the
68
- * same object on the screen, and this family owns only what is different: the
69
- * cover's shape, the cuisines, the four delivery readings and the promo mark.
70
- *
71
- * THE CARD IS A LINK AND THE CONTROLS ARE ITS SIBLINGS, NOT ITS CHILDREN — the
72
- * rule `ListingCard` records: a button inside an anchor is invalid HTML and
73
- * makes the heart's press open the vendor. The heart sits in an overlay laid
74
- * over the cover from outside the link.
75
- *
76
- * The cover is ONE picture. A vendor is not a gallery, so there is no pager, no
77
- * dots and no arrows; a shelf scrolls sideways through vendors, not through one
78
- * vendor's photos.
79
- */
80
-
81
- // ---------------------------------------------------------------------------
82
- // Cover
83
- // ---------------------------------------------------------------------------
84
-
85
- function coverStyle(density: VendorCardDensity): ViewStyle {
86
- return density === 'compact'
87
- ? { width: COMPACT_PHOTO_SIZE, height: COMPACT_PHOTO_SIZE, borderRadius: COMPACT_PHOTO_RADIUS }
88
- : { width: '100%', aspectRatio: VENDOR_PHOTO_ASPECT_RATIO, borderRadius: PHOTO_RADIUS };
89
- }
90
-
91
- function Cover({
92
- photo,
93
- photoVariant,
94
- density,
95
- paint,
96
- washed,
97
- testID,
98
- }: {
99
- photo?: string;
100
- photoVariant?: string;
101
- density: VendorCardDensity;
102
- paint: ListingCardPaint;
103
- washed: boolean;
104
- testID?: string;
105
- }) {
106
- const resolver = useImageResolver();
107
- const uri = photo ? resolvePhoto(photo, resolver, photoVariant) : undefined;
108
- return (
109
- <View
110
- style={[
111
- coverStyle(density),
112
- { flexShrink: 0, overflow: 'hidden', backgroundColor: paint.photoPlaceholder },
113
- ]}
114
- testID={testID ? `${testID}-photo` : undefined}
115
- >
116
- {uri ? (
117
- <BloomImage
118
- source={{ uri }}
119
- contentFit="cover"
120
- accessibilityIgnoresInvertColors
121
- style={{ width: '100%', height: '100%' }}
122
- />
123
- ) : null}
124
- {washed ? (
125
- <View
126
- pointerEvents="none"
127
- style={{
128
- position: 'absolute',
129
- top: 0,
130
- right: 0,
131
- bottom: 0,
132
- left: 0,
133
- backgroundColor: paint.statusWash,
134
- opacity: STATUS_WASH_OPACITY,
135
- }}
136
- testID={testID ? `${testID}-wash` : undefined}
137
- />
138
- ) : null}
139
- </View>
140
- );
141
- }
142
-
143
- // ---------------------------------------------------------------------------
144
- // Marks — the status pill and the promo, in one wrapping row
145
- // ---------------------------------------------------------------------------
146
-
147
- function Marks({
148
- status,
149
- promo,
150
- promoTone,
151
- size,
152
- paint,
153
- testID,
154
- }: {
155
- status: string | null;
156
- promo?: string;
157
- promoTone: NonNullable<VendorCardProps['promoTone']>;
158
- size: OfferingBadgeSize;
159
- paint: ListingCardPaint;
160
- testID?: string;
161
- }) {
162
- if (!status && !promo) return null;
163
- return (
164
- <View
165
- pointerEvents="none"
166
- style={{ flexDirection: 'row', flexWrap: 'wrap', alignItems: 'flex-start', gap: 6 }}
167
- testID={testID ? `${testID}-marks` : undefined}
168
- >
169
- {status ? (
170
- <ListingStatusPill
171
- label={status}
172
- fill={paint.statusFill}
173
- text={paint.statusText}
174
- size={size}
175
- testID={testID ? `${testID}-status` : undefined}
176
- />
177
- ) : null}
178
- {promo ? (
179
- <Badge
180
- content={promo}
181
- variant="solid"
182
- color={promoTone}
183
- size={OFFERING_BADGE_RUNG[size]}
184
- icon={RiPriceTag3Line}
185
- testID={testID ? `${testID}-promo` : undefined}
186
- />
187
- ) : null}
188
- </View>
189
- );
190
- }
191
-
192
- // ---------------------------------------------------------------------------
193
- // Cuisines
194
- // ---------------------------------------------------------------------------
195
-
196
- /**
197
- * The cuisines as pills, on ONE line. The row wraps inside a box one pill tall
198
- * and clips, so a pill that does not fit moves to a second line nobody sees —
199
- * cuisines drop out WHOLE from the end rather than each being truncated to
200
- * "Jap…". The card's accessible name carries every one of them.
201
- */
202
- function Cuisines({
203
- cuisines,
204
- surface,
205
- style,
206
- testID,
207
- }: {
208
- cuisines: readonly string[];
209
- surface: string;
210
- style?: ViewStyle;
211
- testID?: string;
212
- }) {
213
- if (cuisines.length === 0) return null;
214
- return (
215
- <View
216
- // `aria-hidden` for the reason the doc comment gives: these words are
217
- // already in the card's own accessible name, in full, and a screen reader
218
- // reading the clipped row as well would say the first three twice.
219
- aria-hidden
220
- importantForAccessibility="no-hide-descendants"
221
- style={[
222
- {
223
- flexDirection: 'row',
224
- flexWrap: 'wrap',
225
- alignItems: 'center',
226
- columnGap: 6,
227
- rowGap: 6,
228
- height: VENDOR_CUISINE_CHIP_HEIGHT,
229
- overflow: 'hidden',
230
- },
231
- style,
232
- ]}
233
- testID={testID ? `${testID}-cuisines` : undefined}
234
- >
235
- {cuisines.map((cuisine) => (
236
- <Chip key={cuisine} size="sm" variant="subtle" color="default" surface={surface}>
237
- {cuisine}
238
- </Chip>
239
- ))}
240
- </View>
241
- );
242
- }
243
-
244
- // ---------------------------------------------------------------------------
245
- // Skeleton
246
- // ---------------------------------------------------------------------------
247
-
248
- function VendorCardSkeleton({
249
- density,
250
- style,
251
- testID,
252
- }: Pick<VendorCardProps, 'style' | 'testID'> & { density: VendorCardDensity }) {
253
- const common = useCommonMessages();
254
- const compact = density === 'compact';
255
- return (
256
- <View
257
- aria-busy
258
- accessibilityLabel={common.loading}
259
- style={[{ flexDirection: compact ? 'row' : 'column', alignItems: 'flex-start' }, style]}
260
- testID={testID}
261
- >
262
- {compact ? (
263
- <SkeletonBox
264
- width={COMPACT_PHOTO_SIZE}
265
- height={COMPACT_PHOTO_SIZE}
266
- borderRadius={COMPACT_PHOTO_RADIUS}
267
- style={{ flexShrink: 0 }}
268
- />
269
- ) : (
270
- <SkeletonBox
271
- borderRadius={PHOTO_RADIUS}
272
- style={{ width: '100%', aspectRatio: VENDOR_PHOTO_ASPECT_RATIO }}
273
- />
274
- )}
275
- <View
276
- style={{
277
- flex: compact ? 1 : undefined,
278
- alignSelf: compact ? 'center' : 'stretch',
279
- marginTop: compact ? 0 : VENDOR_TEXT_GAP,
280
- marginLeft: compact ? VENDOR_TEXT_GAP : 0,
281
- gap: 8,
282
- }}
283
- >
284
- <SkeletonBox width="60%" height={14} borderRadius={4} />
285
- <SkeletonBox width="45%" height={12} borderRadius={4} />
286
- <SkeletonBox width="70%" height={12} borderRadius={4} />
287
- </View>
288
- </View>
289
- );
290
- }
291
-
292
- // ---------------------------------------------------------------------------
293
- // Card
294
- // ---------------------------------------------------------------------------
295
-
296
- function VendorCardComponent(props: VendorCardProps) {
297
- const {
298
- name,
299
- photo,
300
- photoVariant,
301
- cuisines,
302
- rating,
303
- reviewCount,
304
- newLabel,
305
- promo,
306
- promoTone = 'success',
307
- availability,
308
- availabilityLabel,
309
- opensAt,
310
- favorite = false,
311
- onFavoriteChange,
312
- saveLabel,
313
- removeLabel,
314
- onPress,
315
- href,
316
- loading = false,
317
- density = 'comfortable',
318
- accessibilityLabel,
319
- style,
320
- testID,
321
- } = props;
322
-
323
- const theme = useTheme();
324
- const { messages } = useMessages(VENDOR_CARD_MESSAGES);
325
- // The card adopts BOTH sheets: its own link ring, and `listing-card`'s, which
326
- // is where the heart's `:focus-visible` rule lives. `adoptStyleSheet` replaces
327
- // by id, so a page of vendor cards adopts each exactly once.
328
- useInteractiveWebCss(VENDOR_CARD_STYLE_ID, VENDOR_CARD_CSS);
329
- useInteractiveWebCss(LISTING_CARD_STYLE_ID, LISTING_CARD_CSS);
330
- const paint = useMemo(() => resolveListingCardPaint(theme), [theme]);
331
-
332
- const compact = density === 'compact';
333
- if (loading) return <VendorCardSkeleton density={density} style={style} testID={testID} />;
334
-
335
- const status = availabilityLabelFor(availability, availabilityLabel, messages);
336
- const facts = vendorFacts(props, messages);
337
- const shownCuisines = vendorCuisines(cuisines, density);
338
- const markSize: OfferingBadgeSize = compact ? 'sm' : 'md';
339
- const label = accessibilityLabel ?? composeVendorName(props, messages);
340
-
341
- const handlePress = (event: GestureResponderEvent) => {
342
- if (onPress) {
343
- if (IS_WEB && href) event.preventDefault();
344
- onPress();
345
- return;
346
- }
347
- if (!IS_WEB && href) openHref(href);
348
- };
349
-
350
- const linkProps = {
351
- ...webDataSet({ bloomVendorCardLink: '' }),
352
- ...(IS_WEB && href ? { href } : null),
353
- role: href ? ('link' as const) : onPress ? ('button' as const) : undefined,
354
- accessibilityLabel: label,
355
- onPress: onPress || (!IS_WEB && href) ? handlePress : undefined,
356
- testID: testID ? `${testID}-link` : undefined,
357
- };
358
-
359
- const linkStyle: WebCssStyle = {
360
- flexDirection: compact ? 'row' : 'column',
361
- alignItems: 'flex-start',
362
- '--bloom-vendor-card-ring': paint.ring,
363
- };
364
-
365
- const details = (
366
- <View
367
- style={{
368
- flex: compact ? 1 : undefined,
369
- minWidth: 0,
370
- alignSelf: compact ? 'center' : 'stretch',
371
- marginTop: compact ? 0 : VENDOR_TEXT_GAP,
372
- marginLeft: compact ? VENDOR_TEXT_GAP : 0,
373
- gap: 4,
374
- }}
375
- >
376
- {/*
377
- The compact row has no room for pills over a 112 thumbnail, so the marks
378
- sit ABOVE the name — the same answer `ListingCard`'s compact density
379
- gives for its offerings.
380
- */}
381
- {compact ? (
382
- <Marks
383
- status={status}
384
- promo={promo}
385
- promoTone={promoTone}
386
- size={markSize}
387
- paint={paint}
388
- testID={testID}
389
- />
390
- ) : null}
391
- <View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
392
- <Text
393
- variant={compact ? 'body-semibold' : 'headline-semibold'}
394
- numberOfLines={1}
395
- testID={testID ? `${testID}-name` : undefined}
396
- style={{ flex: 1, minWidth: 0, color: paint.text }}
397
- >
398
- {name}
399
- </Text>
400
- {rating !== undefined ? (
401
- <Rating
402
- size={compact ? 'sm' : 'md'}
403
- value={rating}
404
- count={reviewCount}
405
- newLabel={newLabel ?? messages.new}
406
- style={{ flexShrink: 0 }}
407
- testID={testID ? `${testID}-rating` : undefined}
408
- />
409
- ) : null}
410
- </View>
411
- <Cuisines
412
- cuisines={shownCuisines}
413
- surface={theme.colors.background}
414
- style={{ marginTop: 2 }}
415
- testID={testID}
416
- />
417
- {status && opensAt ? (
418
- <Text
419
- variant="body-2-regular"
420
- numberOfLines={1}
421
- testID={testID ? `${testID}-opens-at` : undefined}
422
- style={{ marginTop: 2, color: paint.textSecondary }}
423
- >
424
- {opensAt}
425
- </Text>
426
- ) : null}
427
- {facts.length > 0 ? (
428
- <ListingFacts
429
- facts={facts}
430
- size={compact ? 'small' : 'medium'}
431
- color={paint.textSecondary}
432
- style={{ marginTop: 2 }}
433
- testID={testID ? `${testID}-facts` : undefined}
434
- />
435
- ) : null}
436
- </View>
437
- );
438
-
439
- return (
440
- <View
441
- {...webDataSet({ bloomVendorCard: density })}
442
- style={[{ position: 'relative' }, style]}
443
- testID={testID}
444
- >
445
- <Pressable {...linkProps} style={linkStyle}>
446
- <Cover
447
- photo={photo}
448
- photoVariant={photoVariant}
449
- density={density}
450
- paint={paint}
451
- washed={status != null}
452
- testID={testID}
453
- />
454
- {details}
455
- </Pressable>
456
-
457
- {compact ? null : (
458
- <View
459
- pointerEvents="box-none"
460
- style={{
461
- position: 'absolute',
462
- top: 0,
463
- left: 0,
464
- right: 0,
465
- aspectRatio: VENDOR_PHOTO_ASPECT_RATIO,
466
- }}
467
- >
468
- <View style={{ position: 'absolute', top: 12, left: 12, right: 56 }}>
469
- <Marks
470
- status={status}
471
- promo={promo}
472
- promoTone={promoTone}
473
- size={markSize}
474
- paint={paint}
475
- testID={testID}
476
- />
477
- </View>
478
- {onFavoriteChange ? (
479
- <View style={{ position: 'absolute', top: 6, right: 6 }}>
480
- <FavoriteButton
481
- favorite={favorite}
482
- onFavoriteChange={onFavoriteChange}
483
- saveLabel={saveLabel}
484
- removeLabel={removeLabel}
485
- testID={testID ? `${testID}-favorite` : undefined}
486
- />
487
- </View>
488
- ) : null}
489
- </View>
490
- )}
491
-
492
- {compact && onFavoriteChange ? (
493
- <View style={{ position: 'absolute', top: 2, left: COMPACT_PHOTO_SIZE - 34 }}>
494
- <FavoriteButton
495
- favorite={favorite}
496
- size={20}
497
- onFavoriteChange={onFavoriteChange}
498
- saveLabel={saveLabel}
499
- removeLabel={removeLabel}
500
- testID={testID ? `${testID}-favorite` : undefined}
501
- />
502
- </View>
503
- ) : null}
504
- </View>
505
- );
506
- }
507
-
508
- export const VendorCard = memo(VendorCardComponent);
509
- VendorCard.displayName = 'VendorCard';