@oxy.so/bloom 23.5.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 (388) 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 +22 -6
  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/commonjs/subtle-hover/SubtleHover.js +94 -31
  56. package/lib/commonjs/subtle-hover/SubtleHover.js.map +1 -1
  57. package/lib/commonjs/subtle-hover/index.js +7 -0
  58. package/lib/commonjs/subtle-hover/index.js.map +1 -1
  59. package/lib/commonjs/subtle-hover/use-press-highlight.js +95 -0
  60. package/lib/commonjs/subtle-hover/use-press-highlight.js.map +1 -0
  61. package/lib/module/icons/TEMPLATE.js +25 -158
  62. package/lib/module/icons/TEMPLATE.js.map +1 -1
  63. package/lib/module/icons/glyph-svg.js +41 -0
  64. package/lib/module/icons/glyph-svg.js.map +1 -0
  65. package/lib/module/icons/glyph.js +25 -0
  66. package/lib/module/icons/glyph.js.map +1 -0
  67. package/lib/module/icons/glyph.native.js +108 -0
  68. package/lib/module/icons/glyph.native.js.map +1 -0
  69. package/lib/module/index.js +0 -14
  70. package/lib/module/index.js.map +1 -1
  71. package/lib/module/index.web.js +0 -14
  72. package/lib/module/index.web.js.map +1 -1
  73. package/lib/module/locale/translations/ar.js +0 -39
  74. package/lib/module/locale/translations/ar.js.map +1 -1
  75. package/lib/module/locale/translations/bn.js +0 -34
  76. package/lib/module/locale/translations/bn.js.map +1 -1
  77. package/lib/module/locale/translations/ca.js +0 -35
  78. package/lib/module/locale/translations/ca.js.map +1 -1
  79. package/lib/module/locale/translations/de.js +0 -35
  80. package/lib/module/locale/translations/de.js.map +1 -1
  81. package/lib/module/locale/translations/es.js +0 -35
  82. package/lib/module/locale/translations/es.js.map +1 -1
  83. package/lib/module/locale/translations/fr.js +0 -35
  84. package/lib/module/locale/translations/fr.js.map +1 -1
  85. package/lib/module/locale/translations/hi.js +0 -35
  86. package/lib/module/locale/translations/hi.js.map +1 -1
  87. package/lib/module/locale/translations/id.js +0 -34
  88. package/lib/module/locale/translations/id.js.map +1 -1
  89. package/lib/module/locale/translations/it.js +0 -35
  90. package/lib/module/locale/translations/it.js.map +1 -1
  91. package/lib/module/locale/translations/ja.js +0 -34
  92. package/lib/module/locale/translations/ja.js.map +1 -1
  93. package/lib/module/locale/translations/pt.js +0 -35
  94. package/lib/module/locale/translations/pt.js.map +1 -1
  95. package/lib/module/locale/translations/ru.js +0 -37
  96. package/lib/module/locale/translations/ru.js.map +1 -1
  97. package/lib/module/locale/translations/tr.js +0 -34
  98. package/lib/module/locale/translations/tr.js.map +1 -1
  99. package/lib/module/locale/translations/zh.js +0 -34
  100. package/lib/module/locale/translations/zh.js.map +1 -1
  101. package/lib/module/subtle-hover/SubtleHover.js +95 -32
  102. package/lib/module/subtle-hover/SubtleHover.js.map +1 -1
  103. package/lib/module/subtle-hover/index.js +1 -0
  104. package/lib/module/subtle-hover/index.js.map +1 -1
  105. package/lib/module/subtle-hover/use-press-highlight.js +92 -0
  106. package/lib/module/subtle-hover/use-press-highlight.js.map +1 -0
  107. package/lib/typescript/commonjs/icons/TEMPLATE.d.ts +1 -1
  108. package/lib/typescript/commonjs/icons/TEMPLATE.d.ts.map +1 -1
  109. package/lib/typescript/commonjs/icons/glyph-svg.d.ts +17 -0
  110. package/lib/typescript/commonjs/icons/glyph-svg.d.ts.map +1 -0
  111. package/lib/typescript/commonjs/icons/glyph.d.ts +11 -0
  112. package/lib/typescript/commonjs/icons/glyph.d.ts.map +1 -0
  113. package/lib/typescript/commonjs/icons/glyph.native.d.ts +20 -0
  114. package/lib/typescript/commonjs/icons/glyph.native.d.ts.map +1 -0
  115. package/lib/typescript/commonjs/index.d.ts +0 -9
  116. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  117. package/lib/typescript/commonjs/index.web.d.ts +0 -9
  118. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
  120. package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
  121. package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
  122. package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
  123. package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
  124. package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
  126. package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
  128. package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
  130. package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
  132. package/lib/typescript/commonjs/locale/translations/types.d.ts +0 -6
  133. package/lib/typescript/commonjs/locale/translations/types.d.ts.map +1 -1
  134. package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
  135. package/lib/typescript/commonjs/subtle-hover/SubtleHover.d.ts +4 -1
  136. package/lib/typescript/commonjs/subtle-hover/SubtleHover.d.ts.map +1 -1
  137. package/lib/typescript/commonjs/subtle-hover/index.d.ts +1 -0
  138. package/lib/typescript/commonjs/subtle-hover/index.d.ts.map +1 -1
  139. package/lib/typescript/commonjs/subtle-hover/types.d.ts +6 -0
  140. package/lib/typescript/commonjs/subtle-hover/types.d.ts.map +1 -1
  141. package/lib/typescript/commonjs/subtle-hover/use-press-highlight.d.ts +42 -0
  142. package/lib/typescript/commonjs/subtle-hover/use-press-highlight.d.ts.map +1 -0
  143. package/lib/typescript/module/icons/TEMPLATE.d.ts +1 -1
  144. package/lib/typescript/module/icons/TEMPLATE.d.ts.map +1 -1
  145. package/lib/typescript/module/icons/glyph-svg.d.ts +17 -0
  146. package/lib/typescript/module/icons/glyph-svg.d.ts.map +1 -0
  147. package/lib/typescript/module/icons/glyph.d.ts +11 -0
  148. package/lib/typescript/module/icons/glyph.d.ts.map +1 -0
  149. package/lib/typescript/module/icons/glyph.native.d.ts +20 -0
  150. package/lib/typescript/module/icons/glyph.native.d.ts.map +1 -0
  151. package/lib/typescript/module/index.d.ts +0 -9
  152. package/lib/typescript/module/index.d.ts.map +1 -1
  153. package/lib/typescript/module/index.web.d.ts +0 -9
  154. package/lib/typescript/module/index.web.d.ts.map +1 -1
  155. package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
  156. package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
  157. package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
  158. package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
  159. package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
  160. package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
  161. package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
  162. package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
  163. package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
  164. package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
  165. package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
  166. package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
  167. package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
  168. package/lib/typescript/module/locale/translations/types.d.ts +0 -6
  169. package/lib/typescript/module/locale/translations/types.d.ts.map +1 -1
  170. package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
  171. package/lib/typescript/module/subtle-hover/SubtleHover.d.ts +4 -1
  172. package/lib/typescript/module/subtle-hover/SubtleHover.d.ts.map +1 -1
  173. package/lib/typescript/module/subtle-hover/index.d.ts +1 -0
  174. package/lib/typescript/module/subtle-hover/index.d.ts.map +1 -1
  175. package/lib/typescript/module/subtle-hover/types.d.ts +6 -0
  176. package/lib/typescript/module/subtle-hover/types.d.ts.map +1 -1
  177. package/lib/typescript/module/subtle-hover/use-press-highlight.d.ts +42 -0
  178. package/lib/typescript/module/subtle-hover/use-press-highlight.d.ts.map +1 -0
  179. package/package.json +1 -52
  180. package/src/__tests__/support/public-part-classifications.json +0 -5
  181. package/src/icons/TEMPLATE.tsx +28 -49
  182. package/src/icons/glyph-svg.tsx +54 -0
  183. package/src/icons/glyph.native.tsx +138 -0
  184. package/src/icons/glyph.tsx +15 -0
  185. package/src/index.ts +0 -62
  186. package/src/index.web.ts +0 -62
  187. package/src/locale/translations/ar.ts +0 -36
  188. package/src/locale/translations/bn.ts +0 -36
  189. package/src/locale/translations/ca.ts +0 -36
  190. package/src/locale/translations/de.ts +0 -36
  191. package/src/locale/translations/es.ts +0 -36
  192. package/src/locale/translations/fr.ts +0 -36
  193. package/src/locale/translations/hi.ts +0 -36
  194. package/src/locale/translations/id.ts +0 -36
  195. package/src/locale/translations/it.ts +0 -36
  196. package/src/locale/translations/ja.ts +0 -36
  197. package/src/locale/translations/pt.ts +0 -36
  198. package/src/locale/translations/ru.ts +0 -36
  199. package/src/locale/translations/tr.ts +0 -36
  200. package/src/locale/translations/types.ts +0 -6
  201. package/src/locale/translations/zh.ts +0 -36
  202. package/src/subtle-hover/SubtleHover.tsx +33 -2
  203. package/src/subtle-hover/index.ts +5 -0
  204. package/src/subtle-hover/types.ts +6 -0
  205. package/src/subtle-hover/use-press-highlight.ts +93 -0
  206. package/docs/checkout-summary.mdx +0 -94
  207. package/docs/order-confirmation.mdx +0 -66
  208. package/docs/vendor-card.mdx +0 -83
  209. package/lib/commonjs/checkout-summary/CheckoutConfirm.js +0 -243
  210. package/lib/commonjs/checkout-summary/CheckoutConfirm.js.map +0 -1
  211. package/lib/commonjs/checkout-summary/CheckoutSummary.js +0 -432
  212. package/lib/commonjs/checkout-summary/CheckoutSummary.js.map +0 -1
  213. package/lib/commonjs/checkout-summary/CheckoutSummaryRow.js +0 -277
  214. package/lib/commonjs/checkout-summary/CheckoutSummaryRow.js.map +0 -1
  215. package/lib/commonjs/checkout-summary/constants.js +0 -66
  216. package/lib/commonjs/checkout-summary/constants.js.map +0 -1
  217. package/lib/commonjs/checkout-summary/index.js +0 -95
  218. package/lib/commonjs/checkout-summary/index.js.map +0 -1
  219. package/lib/commonjs/checkout-summary/messages.js +0 -23
  220. package/lib/commonjs/checkout-summary/messages.js.map +0 -1
  221. package/lib/commonjs/checkout-summary/shared.js +0 -43
  222. package/lib/commonjs/checkout-summary/shared.js.map +0 -1
  223. package/lib/commonjs/checkout-summary/types.js +0 -6
  224. package/lib/commonjs/checkout-summary/types.js.map +0 -1
  225. package/lib/commonjs/order-confirmation/OrderConfirmation.js +0 -305
  226. package/lib/commonjs/order-confirmation/OrderConfirmation.js.map +0 -1
  227. package/lib/commonjs/order-confirmation/constants.js +0 -26
  228. package/lib/commonjs/order-confirmation/constants.js.map +0 -1
  229. package/lib/commonjs/order-confirmation/index.js +0 -38
  230. package/lib/commonjs/order-confirmation/index.js.map +0 -1
  231. package/lib/commonjs/order-confirmation/messages.js +0 -18
  232. package/lib/commonjs/order-confirmation/messages.js.map +0 -1
  233. package/lib/commonjs/order-confirmation/types.js +0 -6
  234. package/lib/commonjs/order-confirmation/types.js.map +0 -1
  235. package/lib/commonjs/vendor-card/VendorCard.js +0 -1051
  236. package/lib/commonjs/vendor-card/VendorCard.js.map +0 -1
  237. package/lib/commonjs/vendor-card/constants.js +0 -54
  238. package/lib/commonjs/vendor-card/constants.js.map +0 -1
  239. package/lib/commonjs/vendor-card/index.js +0 -69
  240. package/lib/commonjs/vendor-card/index.js.map +0 -1
  241. package/lib/commonjs/vendor-card/message-helpers.js +0 -23
  242. package/lib/commonjs/vendor-card/message-helpers.js.map +0 -1
  243. package/lib/commonjs/vendor-card/messages.js +0 -32
  244. package/lib/commonjs/vendor-card/messages.js.map +0 -1
  245. package/lib/commonjs/vendor-card/shared.js +0 -116
  246. package/lib/commonjs/vendor-card/shared.js.map +0 -1
  247. package/lib/commonjs/vendor-card/types.js +0 -6
  248. package/lib/commonjs/vendor-card/types.js.map +0 -1
  249. package/lib/module/checkout-summary/CheckoutConfirm.js +0 -237
  250. package/lib/module/checkout-summary/CheckoutConfirm.js.map +0 -1
  251. package/lib/module/checkout-summary/CheckoutSummary.js +0 -426
  252. package/lib/module/checkout-summary/CheckoutSummary.js.map +0 -1
  253. package/lib/module/checkout-summary/CheckoutSummaryRow.js +0 -273
  254. package/lib/module/checkout-summary/CheckoutSummaryRow.js.map +0 -1
  255. package/lib/module/checkout-summary/constants.js +0 -63
  256. package/lib/module/checkout-summary/constants.js.map +0 -1
  257. package/lib/module/checkout-summary/index.js +0 -8
  258. package/lib/module/checkout-summary/index.js.map +0 -1
  259. package/lib/module/checkout-summary/messages.js +0 -20
  260. package/lib/module/checkout-summary/messages.js.map +0 -1
  261. package/lib/module/checkout-summary/shared.js +0 -36
  262. package/lib/module/checkout-summary/shared.js.map +0 -1
  263. package/lib/module/checkout-summary/types.js +0 -4
  264. package/lib/module/checkout-summary/types.js.map +0 -1
  265. package/lib/module/order-confirmation/OrderConfirmation.js +0 -299
  266. package/lib/module/order-confirmation/OrderConfirmation.js.map +0 -1
  267. package/lib/module/order-confirmation/constants.js +0 -23
  268. package/lib/module/order-confirmation/constants.js.map +0 -1
  269. package/lib/module/order-confirmation/index.js +0 -5
  270. package/lib/module/order-confirmation/index.js.map +0 -1
  271. package/lib/module/order-confirmation/messages.js +0 -15
  272. package/lib/module/order-confirmation/messages.js.map +0 -1
  273. package/lib/module/order-confirmation/types.js +0 -4
  274. package/lib/module/order-confirmation/types.js.map +0 -1
  275. package/lib/module/vendor-card/VendorCard.js +0 -1046
  276. package/lib/module/vendor-card/VendorCard.js.map +0 -1
  277. package/lib/module/vendor-card/constants.js +0 -50
  278. package/lib/module/vendor-card/constants.js.map +0 -1
  279. package/lib/module/vendor-card/index.js +0 -6
  280. package/lib/module/vendor-card/index.js.map +0 -1
  281. package/lib/module/vendor-card/message-helpers.js +0 -18
  282. package/lib/module/vendor-card/message-helpers.js.map +0 -1
  283. package/lib/module/vendor-card/messages.js +0 -29
  284. package/lib/module/vendor-card/messages.js.map +0 -1
  285. package/lib/module/vendor-card/shared.js +0 -107
  286. package/lib/module/vendor-card/shared.js.map +0 -1
  287. package/lib/module/vendor-card/types.js +0 -4
  288. package/lib/module/vendor-card/types.js.map +0 -1
  289. package/lib/typescript/commonjs/checkout-summary/CheckoutConfirm.d.ts +0 -40
  290. package/lib/typescript/commonjs/checkout-summary/CheckoutConfirm.d.ts.map +0 -1
  291. package/lib/typescript/commonjs/checkout-summary/CheckoutSummary.d.ts +0 -36
  292. package/lib/typescript/commonjs/checkout-summary/CheckoutSummary.d.ts.map +0 -1
  293. package/lib/typescript/commonjs/checkout-summary/CheckoutSummaryRow.d.ts +0 -29
  294. package/lib/typescript/commonjs/checkout-summary/CheckoutSummaryRow.d.ts.map +0 -1
  295. package/lib/typescript/commonjs/checkout-summary/constants.d.ts +0 -39
  296. package/lib/typescript/commonjs/checkout-summary/constants.d.ts.map +0 -1
  297. package/lib/typescript/commonjs/checkout-summary/index.d.ts +0 -8
  298. package/lib/typescript/commonjs/checkout-summary/index.d.ts.map +0 -1
  299. package/lib/typescript/commonjs/checkout-summary/messages.d.ts +0 -23
  300. package/lib/typescript/commonjs/checkout-summary/messages.d.ts.map +0 -1
  301. package/lib/typescript/commonjs/checkout-summary/shared.d.ts +0 -27
  302. package/lib/typescript/commonjs/checkout-summary/shared.d.ts.map +0 -1
  303. package/lib/typescript/commonjs/checkout-summary/types.d.ts +0 -147
  304. package/lib/typescript/commonjs/checkout-summary/types.d.ts.map +0 -1
  305. package/lib/typescript/commonjs/order-confirmation/OrderConfirmation.d.ts +0 -40
  306. package/lib/typescript/commonjs/order-confirmation/OrderConfirmation.d.ts.map +0 -1
  307. package/lib/typescript/commonjs/order-confirmation/constants.d.ts +0 -17
  308. package/lib/typescript/commonjs/order-confirmation/constants.d.ts.map +0 -1
  309. package/lib/typescript/commonjs/order-confirmation/index.d.ts +0 -4
  310. package/lib/typescript/commonjs/order-confirmation/index.d.ts.map +0 -1
  311. package/lib/typescript/commonjs/order-confirmation/messages.d.ts +0 -12
  312. package/lib/typescript/commonjs/order-confirmation/messages.d.ts.map +0 -1
  313. package/lib/typescript/commonjs/order-confirmation/types.d.ts +0 -88
  314. package/lib/typescript/commonjs/order-confirmation/types.d.ts.map +0 -1
  315. package/lib/typescript/commonjs/vendor-card/VendorCard.d.ts +0 -6
  316. package/lib/typescript/commonjs/vendor-card/VendorCard.d.ts.map +0 -1
  317. package/lib/typescript/commonjs/vendor-card/constants.d.ts +0 -30
  318. package/lib/typescript/commonjs/vendor-card/constants.d.ts.map +0 -1
  319. package/lib/typescript/commonjs/vendor-card/index.d.ts +0 -5
  320. package/lib/typescript/commonjs/vendor-card/index.d.ts.map +0 -1
  321. package/lib/typescript/commonjs/vendor-card/message-helpers.d.ts +0 -13
  322. package/lib/typescript/commonjs/vendor-card/message-helpers.d.ts.map +0 -1
  323. package/lib/typescript/commonjs/vendor-card/messages.d.ts +0 -22
  324. package/lib/typescript/commonjs/vendor-card/messages.d.ts.map +0 -1
  325. package/lib/typescript/commonjs/vendor-card/shared.d.ts +0 -24
  326. package/lib/typescript/commonjs/vendor-card/shared.d.ts.map +0 -1
  327. package/lib/typescript/commonjs/vendor-card/types.d.ts +0 -111
  328. package/lib/typescript/commonjs/vendor-card/types.d.ts.map +0 -1
  329. package/lib/typescript/module/checkout-summary/CheckoutConfirm.d.ts +0 -40
  330. package/lib/typescript/module/checkout-summary/CheckoutConfirm.d.ts.map +0 -1
  331. package/lib/typescript/module/checkout-summary/CheckoutSummary.d.ts +0 -36
  332. package/lib/typescript/module/checkout-summary/CheckoutSummary.d.ts.map +0 -1
  333. package/lib/typescript/module/checkout-summary/CheckoutSummaryRow.d.ts +0 -29
  334. package/lib/typescript/module/checkout-summary/CheckoutSummaryRow.d.ts.map +0 -1
  335. package/lib/typescript/module/checkout-summary/constants.d.ts +0 -39
  336. package/lib/typescript/module/checkout-summary/constants.d.ts.map +0 -1
  337. package/lib/typescript/module/checkout-summary/index.d.ts +0 -8
  338. package/lib/typescript/module/checkout-summary/index.d.ts.map +0 -1
  339. package/lib/typescript/module/checkout-summary/messages.d.ts +0 -23
  340. package/lib/typescript/module/checkout-summary/messages.d.ts.map +0 -1
  341. package/lib/typescript/module/checkout-summary/shared.d.ts +0 -27
  342. package/lib/typescript/module/checkout-summary/shared.d.ts.map +0 -1
  343. package/lib/typescript/module/checkout-summary/types.d.ts +0 -147
  344. package/lib/typescript/module/checkout-summary/types.d.ts.map +0 -1
  345. package/lib/typescript/module/order-confirmation/OrderConfirmation.d.ts +0 -40
  346. package/lib/typescript/module/order-confirmation/OrderConfirmation.d.ts.map +0 -1
  347. package/lib/typescript/module/order-confirmation/constants.d.ts +0 -17
  348. package/lib/typescript/module/order-confirmation/constants.d.ts.map +0 -1
  349. package/lib/typescript/module/order-confirmation/index.d.ts +0 -4
  350. package/lib/typescript/module/order-confirmation/index.d.ts.map +0 -1
  351. package/lib/typescript/module/order-confirmation/messages.d.ts +0 -12
  352. package/lib/typescript/module/order-confirmation/messages.d.ts.map +0 -1
  353. package/lib/typescript/module/order-confirmation/types.d.ts +0 -88
  354. package/lib/typescript/module/order-confirmation/types.d.ts.map +0 -1
  355. package/lib/typescript/module/vendor-card/VendorCard.d.ts +0 -6
  356. package/lib/typescript/module/vendor-card/VendorCard.d.ts.map +0 -1
  357. package/lib/typescript/module/vendor-card/constants.d.ts +0 -30
  358. package/lib/typescript/module/vendor-card/constants.d.ts.map +0 -1
  359. package/lib/typescript/module/vendor-card/index.d.ts +0 -5
  360. package/lib/typescript/module/vendor-card/index.d.ts.map +0 -1
  361. package/lib/typescript/module/vendor-card/message-helpers.d.ts +0 -13
  362. package/lib/typescript/module/vendor-card/message-helpers.d.ts.map +0 -1
  363. package/lib/typescript/module/vendor-card/messages.d.ts +0 -22
  364. package/lib/typescript/module/vendor-card/messages.d.ts.map +0 -1
  365. package/lib/typescript/module/vendor-card/shared.d.ts +0 -24
  366. package/lib/typescript/module/vendor-card/shared.d.ts.map +0 -1
  367. package/lib/typescript/module/vendor-card/types.d.ts +0 -111
  368. package/lib/typescript/module/vendor-card/types.d.ts.map +0 -1
  369. package/src/checkout-summary/CheckoutConfirm.tsx +0 -119
  370. package/src/checkout-summary/CheckoutSummary.tsx +0 -221
  371. package/src/checkout-summary/CheckoutSummaryRow.tsx +0 -172
  372. package/src/checkout-summary/constants.ts +0 -64
  373. package/src/checkout-summary/index.ts +0 -22
  374. package/src/checkout-summary/messages.ts +0 -33
  375. package/src/checkout-summary/shared.ts +0 -40
  376. package/src/checkout-summary/types.ts +0 -152
  377. package/src/order-confirmation/OrderConfirmation.tsx +0 -197
  378. package/src/order-confirmation/constants.ts +0 -20
  379. package/src/order-confirmation/index.ts +0 -12
  380. package/src/order-confirmation/messages.ts +0 -18
  381. package/src/order-confirmation/types.ts +0 -98
  382. package/src/vendor-card/VendorCard.tsx +0 -509
  383. package/src/vendor-card/constants.ts +0 -58
  384. package/src/vendor-card/index.ts +0 -15
  385. package/src/vendor-card/message-helpers.ts +0 -20
  386. package/src/vendor-card/messages.ts +0 -36
  387. package/src/vendor-card/shared.ts +0 -136
  388. package/src/vendor-card/types.ts +0 -115
@@ -1,1051 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.VendorCard = void 0;
7
- var _compilerRuntime = require("react/compiler-runtime");
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _reactNative = require("react-native");
10
- var _linkActivation = require("../hooks/link-activation.js");
11
- var _index = require("../image/index.js");
12
- var _index2 = require("../badge/index.js");
13
- var _index3 = require("../chip/index.js");
14
- var _RiPriceTag3Line = require("../icons/remix/RiPriceTag3Line.js");
15
- var _context = require("../image-resolver/context.js");
16
- var _commonMessages = require("../locale/common-messages.js");
17
- var _messages = require("../locale/messages.js");
18
- var _index4 = require("../listing-card/index.js");
19
- var _parts = require("../listing-card/parts.js");
20
- var _shared = require("../listing-card/shared.js");
21
- var _shared2 = require("../offering-badge/shared.js");
22
- var _rating = require("../rating");
23
- var _index5 = require("../skeleton/index.js");
24
- var _interactiveWebCss = require("../styles/interactive-web-css.js");
25
- var _webData = require("../styles/web-data.js");
26
- var _useTheme = require("../theme/use-theme.js");
27
- var _index6 = require("../typography/index.js");
28
- var _constants = require("./constants.js");
29
- var _messages2 = require("./messages.js");
30
- var _shared3 = require("./shared.js");
31
- var _platform = require("../styles/platform.js");
32
- var _jsxRuntime = require("react/jsx-runtime");
33
- var cache;
34
- 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; }
35
- /**
36
- * A restaurant or a shop in a list.
37
- *
38
- * comfortable a 16:9 cover (radius 16) with the marks over it, 12 below it
39
- * the name + `Rating`, the cuisines, the "opens at" line and
40
- * the fact row
41
- * compact a 112 square thumbnail (radius 12), 12 right of it the marks
42
- * row, the name + small `Rating`, the cuisines, the "opens at"
43
- * line and the fact row
44
- * marks the status pill first, then the promo — the reader decides
45
- * "can I order at all" before "is it cheap"
46
- * not open the cover washed 50% toward the page, exactly as a home that
47
- * is not available is
48
- *
49
- * IT IS `listing-card`'s CARD WITH A VENDOR'S DATA IN IT, deliberately. The
50
- * wash, the status pill, the fact row, the heart, the placeholder and every
51
- * colour are `listing-card`'s own parts — a food app and a housing app put the
52
- * same object on the screen, and this family owns only what is different: the
53
- * cover's shape, the cuisines, the four delivery readings and the promo mark.
54
- *
55
- * THE CARD IS A LINK AND THE CONTROLS ARE ITS SIBLINGS, NOT ITS CHILDREN — the
56
- * rule `ListingCard` records: a button inside an anchor is invalid HTML and
57
- * makes the heart's press open the vendor. The heart sits in an overlay laid
58
- * over the cover from outside the link.
59
- *
60
- * The cover is ONE picture. A vendor is not a gallery, so there is no pager, no
61
- * dots and no arrows; a shelf scrolls sideways through vendors, not through one
62
- * vendor's photos.
63
- */
64
-
65
- // ---------------------------------------------------------------------------
66
- // Cover
67
- // ---------------------------------------------------------------------------
68
- function coverStyle(density) {
69
- return density === 'compact' ? {
70
- width: _shared.COMPACT_PHOTO_SIZE,
71
- height: _shared.COMPACT_PHOTO_SIZE,
72
- borderRadius: _shared.COMPACT_PHOTO_RADIUS
73
- } : {
74
- width: '100%',
75
- aspectRatio: _constants.VENDOR_PHOTO_ASPECT_RATIO,
76
- borderRadius: _shared.PHOTO_RADIUS
77
- };
78
- }
79
- function Cover(t0) {
80
- const $ = (0, _compilerRuntime.c)(22);
81
- const {
82
- photo,
83
- photoVariant,
84
- density,
85
- paint,
86
- washed,
87
- testID
88
- } = t0;
89
- const resolver = (0, _context.useImageResolver)();
90
- let t1;
91
- if ($[0] !== photo || $[1] !== photoVariant || $[2] !== resolver) {
92
- t1 = photo ? (0, _shared.resolvePhoto)(photo, resolver, photoVariant) : undefined;
93
- $[0] = photo;
94
- $[1] = photoVariant;
95
- $[2] = resolver;
96
- $[3] = t1;
97
- } else {
98
- t1 = $[3];
99
- }
100
- const uri = t1;
101
- let t2;
102
- if ($[4] !== density) {
103
- t2 = coverStyle(density);
104
- $[4] = density;
105
- $[5] = t2;
106
- } else {
107
- t2 = $[5];
108
- }
109
- let t3;
110
- if ($[6] !== paint.photoPlaceholder) {
111
- t3 = {
112
- flexShrink: 0,
113
- overflow: "hidden",
114
- backgroundColor: paint.photoPlaceholder
115
- };
116
- $[6] = paint.photoPlaceholder;
117
- $[7] = t3;
118
- } else {
119
- t3 = $[7];
120
- }
121
- let t4;
122
- if ($[8] !== t2 || $[9] !== t3) {
123
- t4 = [t2, t3];
124
- $[8] = t2;
125
- $[9] = t3;
126
- $[10] = t4;
127
- } else {
128
- t4 = $[10];
129
- }
130
- const t5 = testID ? `${testID}-photo` : undefined;
131
- let t6;
132
- if ($[11] !== uri) {
133
- t6 = uri ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BloomImage, {
134
- source: {
135
- uri
136
- },
137
- contentFit: "cover",
138
- accessibilityIgnoresInvertColors: true,
139
- style: {
140
- width: "100%",
141
- height: "100%"
142
- }
143
- }) : null;
144
- $[11] = uri;
145
- $[12] = t6;
146
- } else {
147
- t6 = $[12];
148
- }
149
- let t7;
150
- if ($[13] !== paint.statusWash || $[14] !== testID || $[15] !== washed) {
151
- t7 = washed ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
152
- pointerEvents: "none",
153
- style: {
154
- position: "absolute",
155
- top: 0,
156
- right: 0,
157
- bottom: 0,
158
- left: 0,
159
- backgroundColor: paint.statusWash,
160
- opacity: _shared.STATUS_WASH_OPACITY
161
- },
162
- testID: testID ? `${testID}-wash` : undefined
163
- }) : null;
164
- $[13] = paint.statusWash;
165
- $[14] = testID;
166
- $[15] = washed;
167
- $[16] = t7;
168
- } else {
169
- t7 = $[16];
170
- }
171
- let t8;
172
- if ($[17] !== t4 || $[18] !== t5 || $[19] !== t6 || $[20] !== t7) {
173
- t8 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
174
- style: t4,
175
- testID: t5,
176
- children: [t6, t7]
177
- });
178
- $[17] = t4;
179
- $[18] = t5;
180
- $[19] = t6;
181
- $[20] = t7;
182
- $[21] = t8;
183
- } else {
184
- t8 = $[21];
185
- }
186
- return t8;
187
- }
188
-
189
- // ---------------------------------------------------------------------------
190
- // Marks — the status pill and the promo, in one wrapping row
191
- // ---------------------------------------------------------------------------
192
-
193
- function Marks(t0) {
194
- const $ = (0, _compilerRuntime.c)(15);
195
- const {
196
- status,
197
- promo,
198
- promoTone,
199
- size,
200
- paint,
201
- testID
202
- } = t0;
203
- if (!status && !promo) {
204
- return null;
205
- }
206
- let t1;
207
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
208
- t1 = {
209
- flexDirection: "row",
210
- flexWrap: "wrap",
211
- alignItems: "flex-start",
212
- gap: 6
213
- };
214
- $[0] = t1;
215
- } else {
216
- t1 = $[0];
217
- }
218
- const t2 = testID ? `${testID}-marks` : undefined;
219
- let t3;
220
- if ($[1] !== paint || $[2] !== size || $[3] !== status || $[4] !== testID) {
221
- t3 = status ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_parts.ListingStatusPill, {
222
- label: status,
223
- fill: paint.statusFill,
224
- text: paint.statusText,
225
- size: size,
226
- testID: testID ? `${testID}-status` : undefined
227
- }) : null;
228
- $[1] = paint;
229
- $[2] = size;
230
- $[3] = status;
231
- $[4] = testID;
232
- $[5] = t3;
233
- } else {
234
- t3 = $[5];
235
- }
236
- let t4;
237
- if ($[6] !== promo || $[7] !== promoTone || $[8] !== size || $[9] !== testID) {
238
- t4 = promo ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Badge, {
239
- content: promo,
240
- variant: "solid",
241
- color: promoTone,
242
- size: _shared2.OFFERING_BADGE_RUNG[size],
243
- icon: _RiPriceTag3Line.RiPriceTag3Line,
244
- testID: testID ? `${testID}-promo` : undefined
245
- }) : null;
246
- $[6] = promo;
247
- $[7] = promoTone;
248
- $[8] = size;
249
- $[9] = testID;
250
- $[10] = t4;
251
- } else {
252
- t4 = $[10];
253
- }
254
- let t5;
255
- if ($[11] !== t2 || $[12] !== t3 || $[13] !== t4) {
256
- t5 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
257
- pointerEvents: "none",
258
- style: t1,
259
- testID: t2,
260
- children: [t3, t4]
261
- });
262
- $[11] = t2;
263
- $[12] = t3;
264
- $[13] = t4;
265
- $[14] = t5;
266
- } else {
267
- t5 = $[14];
268
- }
269
- return t5;
270
- }
271
-
272
- // ---------------------------------------------------------------------------
273
- // Cuisines
274
- // ---------------------------------------------------------------------------
275
-
276
- /**
277
- * The cuisines as pills, on ONE line. The row wraps inside a box one pill tall
278
- * and clips, so a pill that does not fit moves to a second line nobody sees —
279
- * cuisines drop out WHOLE from the end rather than each being truncated to
280
- * "Jap…". The card's accessible name carries every one of them.
281
- */
282
- function Cuisines(t0) {
283
- const $ = (0, _compilerRuntime.c)(12);
284
- const {
285
- cuisines,
286
- surface,
287
- style,
288
- testID
289
- } = t0;
290
- if (cuisines.length === 0) {
291
- return null;
292
- }
293
- let t1;
294
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
295
- t1 = {
296
- flexDirection: "row",
297
- flexWrap: "wrap",
298
- alignItems: "center",
299
- columnGap: 6,
300
- rowGap: 6,
301
- height: _constants.VENDOR_CUISINE_CHIP_HEIGHT,
302
- overflow: "hidden"
303
- };
304
- $[0] = t1;
305
- } else {
306
- t1 = $[0];
307
- }
308
- let t2;
309
- if ($[1] !== style) {
310
- t2 = [t1, style];
311
- $[1] = style;
312
- $[2] = t2;
313
- } else {
314
- t2 = $[2];
315
- }
316
- const t3 = testID ? `${testID}-cuisines` : undefined;
317
- let t4;
318
- if ($[3] !== cuisines || $[4] !== surface) {
319
- let t5;
320
- if ($[6] !== surface) {
321
- t5 = cuisine => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Chip, {
322
- size: "sm",
323
- variant: "subtle",
324
- color: "default",
325
- surface: surface,
326
- children: cuisine
327
- }, cuisine);
328
- $[6] = surface;
329
- $[7] = t5;
330
- } else {
331
- t5 = $[7];
332
- }
333
- t4 = cuisines.map(t5);
334
- $[3] = cuisines;
335
- $[4] = surface;
336
- $[5] = t4;
337
- } else {
338
- t4 = $[5];
339
- }
340
- let t5;
341
- if ($[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
342
- t5 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
343
- "aria-hidden": true,
344
- importantForAccessibility: "no-hide-descendants",
345
- style: t2,
346
- testID: t3,
347
- children: t4
348
- });
349
- $[8] = t2;
350
- $[9] = t3;
351
- $[10] = t4;
352
- $[11] = t5;
353
- } else {
354
- t5 = $[11];
355
- }
356
- return t5;
357
- }
358
-
359
- // ---------------------------------------------------------------------------
360
- // Skeleton
361
- // ---------------------------------------------------------------------------
362
-
363
- function VendorCardSkeleton(t0) {
364
- const $ = (0, _compilerRuntime.c)(23);
365
- const {
366
- density,
367
- style,
368
- testID
369
- } = t0;
370
- const common = (0, _commonMessages.useCommonMessages)();
371
- const compact = density === "compact";
372
- const t1 = compact ? "row" : "column";
373
- let t2;
374
- if ($[0] !== t1) {
375
- t2 = {
376
- flexDirection: t1,
377
- alignItems: "flex-start"
378
- };
379
- $[0] = t1;
380
- $[1] = t2;
381
- } else {
382
- t2 = $[1];
383
- }
384
- let t3;
385
- if ($[2] !== style || $[3] !== t2) {
386
- t3 = [t2, style];
387
- $[2] = style;
388
- $[3] = t2;
389
- $[4] = t3;
390
- } else {
391
- t3 = $[4];
392
- }
393
- let t4;
394
- if ($[5] !== compact) {
395
- t4 = compact ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.Box, {
396
- width: _shared.COMPACT_PHOTO_SIZE,
397
- height: _shared.COMPACT_PHOTO_SIZE,
398
- borderRadius: _shared.COMPACT_PHOTO_RADIUS,
399
- style: {
400
- flexShrink: 0
401
- }
402
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.Box, {
403
- borderRadius: _shared.PHOTO_RADIUS,
404
- style: {
405
- width: "100%",
406
- aspectRatio: _constants.VENDOR_PHOTO_ASPECT_RATIO
407
- }
408
- });
409
- $[5] = compact;
410
- $[6] = t4;
411
- } else {
412
- t4 = $[6];
413
- }
414
- const t5 = compact ? 1 : undefined;
415
- const t6 = compact ? "center" : "stretch";
416
- const t7 = compact ? 0 : _constants.VENDOR_TEXT_GAP;
417
- const t8 = compact ? _constants.VENDOR_TEXT_GAP : 0;
418
- let t9;
419
- if ($[7] !== t5 || $[8] !== t6 || $[9] !== t7 || $[10] !== t8) {
420
- t9 = {
421
- flex: t5,
422
- alignSelf: t6,
423
- marginTop: t7,
424
- marginLeft: t8,
425
- gap: 8
426
- };
427
- $[7] = t5;
428
- $[8] = t6;
429
- $[9] = t7;
430
- $[10] = t8;
431
- $[11] = t9;
432
- } else {
433
- t9 = $[11];
434
- }
435
- let t10;
436
- let t11;
437
- let t12;
438
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
439
- t10 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.Box, {
440
- width: "60%",
441
- height: 14,
442
- borderRadius: 4
443
- });
444
- t11 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.Box, {
445
- width: "45%",
446
- height: 12,
447
- borderRadius: 4
448
- });
449
- t12 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.Box, {
450
- width: "70%",
451
- height: 12,
452
- borderRadius: 4
453
- });
454
- $[12] = t10;
455
- $[13] = t11;
456
- $[14] = t12;
457
- } else {
458
- t10 = $[12];
459
- t11 = $[13];
460
- t12 = $[14];
461
- }
462
- let t13;
463
- if ($[15] !== t9) {
464
- t13 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
465
- style: t9,
466
- children: [t10, t11, t12]
467
- });
468
- $[15] = t9;
469
- $[16] = t13;
470
- } else {
471
- t13 = $[16];
472
- }
473
- let t14;
474
- if ($[17] !== common.loading || $[18] !== t13 || $[19] !== t3 || $[20] !== t4 || $[21] !== testID) {
475
- t14 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
476
- "aria-busy": true,
477
- accessibilityLabel: common.loading,
478
- style: t3,
479
- testID: testID,
480
- children: [t4, t13]
481
- });
482
- $[17] = common.loading;
483
- $[18] = t13;
484
- $[19] = t3;
485
- $[20] = t4;
486
- $[21] = testID;
487
- $[22] = t14;
488
- } else {
489
- t14 = $[22];
490
- }
491
- return t14;
492
- }
493
-
494
- // ---------------------------------------------------------------------------
495
- // Card
496
- // ---------------------------------------------------------------------------
497
-
498
- function VendorCardComponent(props) {
499
- const $ = (0, _compilerRuntime.c)(132);
500
- const {
501
- name,
502
- photo,
503
- photoVariant,
504
- cuisines,
505
- rating,
506
- reviewCount,
507
- newLabel,
508
- promo,
509
- promoTone: t0,
510
- availability,
511
- availabilityLabel,
512
- opensAt,
513
- favorite: t1,
514
- onFavoriteChange,
515
- saveLabel,
516
- removeLabel,
517
- onPress,
518
- href,
519
- loading: t2,
520
- density: t3,
521
- accessibilityLabel,
522
- style,
523
- testID
524
- } = props;
525
- const promoTone = t0 === undefined ? "success" : t0;
526
- const favorite = t1 === undefined ? false : t1;
527
- const loading = t2 === undefined ? false : t2;
528
- const density = t3 === undefined ? "comfortable" : t3;
529
- const theme = (0, _useTheme.useTheme)();
530
- const {
531
- messages
532
- } = (0, _messages.useMessages)(_messages2.VENDOR_CARD_MESSAGES);
533
- (0, _interactiveWebCss.useInteractiveWebCss)(_shared3.VENDOR_CARD_STYLE_ID, _shared3.VENDOR_CARD_CSS);
534
- (0, _interactiveWebCss.useInteractiveWebCss)(_shared.LISTING_CARD_STYLE_ID, _shared.LISTING_CARD_CSS);
535
- let t4;
536
- if ($[0] !== theme) {
537
- t4 = (0, _shared.resolveListingCardPaint)(theme);
538
- $[0] = theme;
539
- $[1] = t4;
540
- } else {
541
- t4 = $[1];
542
- }
543
- const paint = t4;
544
- const compact = density === "compact";
545
- if (loading) {
546
- let t5;
547
- if ($[2] !== density || $[3] !== style || $[4] !== testID) {
548
- t5 = /*#__PURE__*/(0, _jsxRuntime.jsx)(VendorCardSkeleton, {
549
- density: density,
550
- style: style,
551
- testID: testID
552
- });
553
- $[2] = density;
554
- $[3] = style;
555
- $[4] = testID;
556
- $[5] = t5;
557
- } else {
558
- t5 = $[5];
559
- }
560
- return t5;
561
- }
562
- let t5;
563
- if ($[6] !== availability || $[7] !== availabilityLabel || $[8] !== messages) {
564
- t5 = (0, _shared3.availabilityLabelFor)(availability, availabilityLabel, messages);
565
- $[6] = availability;
566
- $[7] = availabilityLabel;
567
- $[8] = messages;
568
- $[9] = t5;
569
- } else {
570
- t5 = $[9];
571
- }
572
- const status = t5;
573
- let t6;
574
- if ($[10] !== messages || $[11] !== props) {
575
- t6 = (0, _shared3.vendorFacts)(props, messages);
576
- $[10] = messages;
577
- $[11] = props;
578
- $[12] = t6;
579
- } else {
580
- t6 = $[12];
581
- }
582
- const facts = t6;
583
- let t7;
584
- if ($[13] !== cuisines || $[14] !== density) {
585
- t7 = (0, _shared3.vendorCuisines)(cuisines, density);
586
- $[13] = cuisines;
587
- $[14] = density;
588
- $[15] = t7;
589
- } else {
590
- t7 = $[15];
591
- }
592
- const shownCuisines = t7;
593
- const markSize = compact ? "sm" : "md";
594
- let t8;
595
- if ($[16] !== accessibilityLabel || $[17] !== messages || $[18] !== props) {
596
- t8 = accessibilityLabel ?? (0, _shared3.composeVendorName)(props, messages);
597
- $[16] = accessibilityLabel;
598
- $[17] = messages;
599
- $[18] = props;
600
- $[19] = t8;
601
- } else {
602
- t8 = $[19];
603
- }
604
- const label = t8;
605
- let t9;
606
- if ($[20] !== href || $[21] !== onPress) {
607
- t9 = event => {
608
- if (onPress) {
609
- if (_platform.IS_WEB && href) {
610
- event.preventDefault();
611
- }
612
- onPress();
613
- return;
614
- }
615
- if (!_platform.IS_WEB && href) {
616
- (0, _linkActivation.openHref)(href);
617
- }
618
- };
619
- $[20] = href;
620
- $[21] = onPress;
621
- $[22] = t9;
622
- } else {
623
- t9 = $[22];
624
- }
625
- const handlePress = t9;
626
- let t10;
627
- if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
628
- t10 = (0, _webData.webDataSet)({
629
- bloomVendorCardLink: ""
630
- });
631
- $[23] = t10;
632
- } else {
633
- t10 = $[23];
634
- }
635
- let t11;
636
- if ($[24] !== href) {
637
- t11 = _platform.IS_WEB && href ? {
638
- href
639
- } : null;
640
- $[24] = href;
641
- $[25] = t11;
642
- } else {
643
- t11 = $[25];
644
- }
645
- const t12 = href ? "link" : onPress ? "button" : undefined;
646
- const t13 = onPress || !_platform.IS_WEB && href ? handlePress : undefined;
647
- const t14 = testID ? `${testID}-link` : undefined;
648
- let t15;
649
- if ($[26] !== label || $[27] !== t10 || $[28] !== t11 || $[29] !== t12 || $[30] !== t13 || $[31] !== t14) {
650
- t15 = {
651
- ...t10,
652
- ...t11,
653
- role: t12,
654
- accessibilityLabel: label,
655
- onPress: t13,
656
- testID: t14
657
- };
658
- $[26] = label;
659
- $[27] = t10;
660
- $[28] = t11;
661
- $[29] = t12;
662
- $[30] = t13;
663
- $[31] = t14;
664
- $[32] = t15;
665
- } else {
666
- t15 = $[32];
667
- }
668
- const linkProps = t15;
669
- const t16 = compact ? "row" : "column";
670
- let t17;
671
- if ($[33] !== paint.ring || $[34] !== t16) {
672
- t17 = {
673
- flexDirection: t16,
674
- alignItems: "flex-start",
675
- "--bloom-vendor-card-ring": paint.ring
676
- };
677
- $[33] = paint.ring;
678
- $[34] = t16;
679
- $[35] = t17;
680
- } else {
681
- t17 = $[35];
682
- }
683
- const linkStyle = t17;
684
- const t18 = compact ? 1 : undefined;
685
- const t19 = compact ? "center" : "stretch";
686
- const t20 = compact ? 0 : _constants.VENDOR_TEXT_GAP;
687
- const t21 = compact ? _constants.VENDOR_TEXT_GAP : 0;
688
- let t22;
689
- if ($[36] !== t18 || $[37] !== t19 || $[38] !== t20 || $[39] !== t21) {
690
- t22 = {
691
- flex: t18,
692
- minWidth: 0,
693
- alignSelf: t19,
694
- marginTop: t20,
695
- marginLeft: t21,
696
- gap: 4
697
- };
698
- $[36] = t18;
699
- $[37] = t19;
700
- $[38] = t20;
701
- $[39] = t21;
702
- $[40] = t22;
703
- } else {
704
- t22 = $[40];
705
- }
706
- let t23;
707
- if ($[41] !== compact || $[42] !== markSize || $[43] !== paint || $[44] !== promo || $[45] !== promoTone || $[46] !== status || $[47] !== testID) {
708
- t23 = compact ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Marks, {
709
- status: status,
710
- promo: promo,
711
- promoTone: promoTone,
712
- size: markSize,
713
- paint: paint,
714
- testID: testID
715
- }) : null;
716
- $[41] = compact;
717
- $[42] = markSize;
718
- $[43] = paint;
719
- $[44] = promo;
720
- $[45] = promoTone;
721
- $[46] = status;
722
- $[47] = testID;
723
- $[48] = t23;
724
- } else {
725
- t23 = $[48];
726
- }
727
- let t24;
728
- if ($[49] === Symbol.for("react.memo_cache_sentinel")) {
729
- t24 = {
730
- flexDirection: "row",
731
- alignItems: "center",
732
- gap: 8
733
- };
734
- $[49] = t24;
735
- } else {
736
- t24 = $[49];
737
- }
738
- const t25 = compact ? "body-semibold" : "headline-semibold";
739
- const t26 = testID ? `${testID}-name` : undefined;
740
- let t27;
741
- if ($[50] !== paint.text) {
742
- t27 = {
743
- flex: 1,
744
- minWidth: 0,
745
- color: paint.text
746
- };
747
- $[50] = paint.text;
748
- $[51] = t27;
749
- } else {
750
- t27 = $[51];
751
- }
752
- let t28;
753
- if ($[52] !== name || $[53] !== t25 || $[54] !== t26 || $[55] !== t27) {
754
- t28 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_index6.Text, {
755
- variant: t25,
756
- numberOfLines: 1,
757
- testID: t26,
758
- style: t27,
759
- children: name
760
- });
761
- $[52] = name;
762
- $[53] = t25;
763
- $[54] = t26;
764
- $[55] = t27;
765
- $[56] = t28;
766
- } else {
767
- t28 = $[56];
768
- }
769
- let t29;
770
- if ($[57] !== compact || $[58] !== messages || $[59] !== newLabel || $[60] !== rating || $[61] !== reviewCount || $[62] !== testID) {
771
- t29 = rating !== undefined ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_rating.Rating, {
772
- size: compact ? "sm" : "md",
773
- value: rating,
774
- count: reviewCount,
775
- newLabel: newLabel ?? messages.new,
776
- style: {
777
- flexShrink: 0
778
- },
779
- testID: testID ? `${testID}-rating` : undefined
780
- }) : null;
781
- $[57] = compact;
782
- $[58] = messages;
783
- $[59] = newLabel;
784
- $[60] = rating;
785
- $[61] = reviewCount;
786
- $[62] = testID;
787
- $[63] = t29;
788
- } else {
789
- t29 = $[63];
790
- }
791
- let t30;
792
- if ($[64] !== t28 || $[65] !== t29) {
793
- t30 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
794
- style: t24,
795
- children: [t28, t29]
796
- });
797
- $[64] = t28;
798
- $[65] = t29;
799
- $[66] = t30;
800
- } else {
801
- t30 = $[66];
802
- }
803
- let t31;
804
- if ($[67] === Symbol.for("react.memo_cache_sentinel")) {
805
- t31 = {
806
- marginTop: 2
807
- };
808
- $[67] = t31;
809
- } else {
810
- t31 = $[67];
811
- }
812
- let t32;
813
- if ($[68] !== shownCuisines || $[69] !== testID || $[70] !== theme.colors.background) {
814
- t32 = /*#__PURE__*/(0, _jsxRuntime.jsx)(Cuisines, {
815
- cuisines: shownCuisines,
816
- surface: theme.colors.background,
817
- style: t31,
818
- testID: testID
819
- });
820
- $[68] = shownCuisines;
821
- $[69] = testID;
822
- $[70] = theme.colors.background;
823
- $[71] = t32;
824
- } else {
825
- t32 = $[71];
826
- }
827
- let t33;
828
- if ($[72] !== opensAt || $[73] !== paint.textSecondary || $[74] !== status || $[75] !== testID) {
829
- t33 = status && opensAt ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index6.Text, {
830
- variant: "body-2-regular",
831
- numberOfLines: 1,
832
- testID: testID ? `${testID}-opens-at` : undefined,
833
- style: {
834
- marginTop: 2,
835
- color: paint.textSecondary
836
- },
837
- children: opensAt
838
- }) : null;
839
- $[72] = opensAt;
840
- $[73] = paint.textSecondary;
841
- $[74] = status;
842
- $[75] = testID;
843
- $[76] = t33;
844
- } else {
845
- t33 = $[76];
846
- }
847
- let t34;
848
- if ($[77] !== compact || $[78] !== facts || $[79] !== paint.textSecondary || $[80] !== testID) {
849
- t34 = facts.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_parts.ListingFacts, {
850
- facts: facts,
851
- size: compact ? "small" : "medium",
852
- color: paint.textSecondary,
853
- style: {
854
- marginTop: 2
855
- },
856
- testID: testID ? `${testID}-facts` : undefined
857
- }) : null;
858
- $[77] = compact;
859
- $[78] = facts;
860
- $[79] = paint.textSecondary;
861
- $[80] = testID;
862
- $[81] = t34;
863
- } else {
864
- t34 = $[81];
865
- }
866
- let t35;
867
- if ($[82] !== t22 || $[83] !== t23 || $[84] !== t30 || $[85] !== t32 || $[86] !== t33 || $[87] !== t34) {
868
- t35 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
869
- style: t22,
870
- children: [t23, t30, t32, t33, t34]
871
- });
872
- $[82] = t22;
873
- $[83] = t23;
874
- $[84] = t30;
875
- $[85] = t32;
876
- $[86] = t33;
877
- $[87] = t34;
878
- $[88] = t35;
879
- } else {
880
- t35 = $[88];
881
- }
882
- const details = t35;
883
- let t36;
884
- if ($[89] !== density) {
885
- t36 = (0, _webData.webDataSet)({
886
- bloomVendorCard: density
887
- });
888
- $[89] = density;
889
- $[90] = t36;
890
- } else {
891
- t36 = $[90];
892
- }
893
- let t37;
894
- if ($[91] === Symbol.for("react.memo_cache_sentinel")) {
895
- t37 = {
896
- position: "relative"
897
- };
898
- $[91] = t37;
899
- } else {
900
- t37 = $[91];
901
- }
902
- let t38;
903
- if ($[92] !== style) {
904
- t38 = [t37, style];
905
- $[92] = style;
906
- $[93] = t38;
907
- } else {
908
- t38 = $[93];
909
- }
910
- const t39 = status != null;
911
- let t40;
912
- if ($[94] !== density || $[95] !== paint || $[96] !== photo || $[97] !== photoVariant || $[98] !== t39 || $[99] !== testID) {
913
- t40 = /*#__PURE__*/(0, _jsxRuntime.jsx)(Cover, {
914
- photo: photo,
915
- photoVariant: photoVariant,
916
- density: density,
917
- paint: paint,
918
- washed: t39,
919
- testID: testID
920
- });
921
- $[94] = density;
922
- $[95] = paint;
923
- $[96] = photo;
924
- $[97] = photoVariant;
925
- $[98] = t39;
926
- $[99] = testID;
927
- $[100] = t40;
928
- } else {
929
- t40 = $[100];
930
- }
931
- let t41;
932
- if ($[101] !== details || $[102] !== linkProps || $[103] !== linkStyle || $[104] !== t40) {
933
- t41 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
934
- ...linkProps,
935
- style: linkStyle,
936
- children: [t40, details]
937
- });
938
- $[101] = details;
939
- $[102] = linkProps;
940
- $[103] = linkStyle;
941
- $[104] = t40;
942
- $[105] = t41;
943
- } else {
944
- t41 = $[105];
945
- }
946
- let t42;
947
- if ($[106] !== compact || $[107] !== favorite || $[108] !== markSize || $[109] !== onFavoriteChange || $[110] !== paint || $[111] !== promo || $[112] !== promoTone || $[113] !== removeLabel || $[114] !== saveLabel || $[115] !== status || $[116] !== testID) {
948
- t42 = compact ? null : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
949
- pointerEvents: "box-none",
950
- style: {
951
- position: "absolute",
952
- top: 0,
953
- left: 0,
954
- right: 0,
955
- aspectRatio: _constants.VENDOR_PHOTO_ASPECT_RATIO
956
- },
957
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
958
- style: {
959
- position: "absolute",
960
- top: 12,
961
- left: 12,
962
- right: 56
963
- },
964
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Marks, {
965
- status: status,
966
- promo: promo,
967
- promoTone: promoTone,
968
- size: markSize,
969
- paint: paint,
970
- testID: testID
971
- })
972
- }), onFavoriteChange ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
973
- style: {
974
- position: "absolute",
975
- top: 6,
976
- right: 6
977
- },
978
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.FavoriteButton, {
979
- favorite: favorite,
980
- onFavoriteChange: onFavoriteChange,
981
- saveLabel: saveLabel,
982
- removeLabel: removeLabel,
983
- testID: testID ? `${testID}-favorite` : undefined
984
- })
985
- }) : null]
986
- });
987
- $[106] = compact;
988
- $[107] = favorite;
989
- $[108] = markSize;
990
- $[109] = onFavoriteChange;
991
- $[110] = paint;
992
- $[111] = promo;
993
- $[112] = promoTone;
994
- $[113] = removeLabel;
995
- $[114] = saveLabel;
996
- $[115] = status;
997
- $[116] = testID;
998
- $[117] = t42;
999
- } else {
1000
- t42 = $[117];
1001
- }
1002
- let t43;
1003
- if ($[118] !== compact || $[119] !== favorite || $[120] !== onFavoriteChange || $[121] !== removeLabel || $[122] !== saveLabel || $[123] !== testID) {
1004
- t43 = compact && onFavoriteChange ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
1005
- style: {
1006
- position: "absolute",
1007
- top: 2,
1008
- left: _shared.COMPACT_PHOTO_SIZE - 34
1009
- },
1010
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.FavoriteButton, {
1011
- favorite: favorite,
1012
- size: 20,
1013
- onFavoriteChange: onFavoriteChange,
1014
- saveLabel: saveLabel,
1015
- removeLabel: removeLabel,
1016
- testID: testID ? `${testID}-favorite` : undefined
1017
- })
1018
- }) : null;
1019
- $[118] = compact;
1020
- $[119] = favorite;
1021
- $[120] = onFavoriteChange;
1022
- $[121] = removeLabel;
1023
- $[122] = saveLabel;
1024
- $[123] = testID;
1025
- $[124] = t43;
1026
- } else {
1027
- t43 = $[124];
1028
- }
1029
- let t44;
1030
- if ($[125] !== t36 || $[126] !== t38 || $[127] !== t41 || $[128] !== t42 || $[129] !== t43 || $[130] !== testID) {
1031
- t44 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
1032
- ...t36,
1033
- style: t38,
1034
- testID: testID,
1035
- children: [t41, t42, t43]
1036
- });
1037
- $[125] = t36;
1038
- $[126] = t38;
1039
- $[127] = t41;
1040
- $[128] = t42;
1041
- $[129] = t43;
1042
- $[130] = testID;
1043
- $[131] = t44;
1044
- } else {
1045
- t44 = $[131];
1046
- }
1047
- return t44;
1048
- }
1049
- const VendorCard = exports.VendorCard = /*#__PURE__*/(0, _react.memo)(VendorCardComponent);
1050
- VendorCard.displayName = 'VendorCard';
1051
- //# sourceMappingURL=VendorCard.js.map