@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 +0,0 @@
1
- {"version":3,"file":"CheckoutConfirm.d.ts","sourceRoot":"","sources":["../../../../src/checkout-summary/CheckoutConfirm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAQ9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAS,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,iBAAS,wBAAwB,CAAC,EAChC,KAAK,EAAE,SAAS,EAChB,MAAM,EACN,eAAe,EACf,KAAK,EACL,SAAS,EACT,QAAgB,EAChB,IAAY,EACZ,SAAS,EAAE,aAAa,EACxB,MAAM,EACN,KAAK,EACL,MAAM,GACP,EAAE,oBAAoB,qBA2DtB;AAED,eAAO,MAAM,eAAe,4DAAiC,CAAC"}
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import type { CheckoutSummaryProps } from './types.js';
3
- /**
4
- * Review and confirm: where it goes, when, how it is paid, what it costs, and
5
- * the note to the seller — each shown as its chosen value, each opening the
6
- * thing that changes it.
7
- *
8
- * group one surface rung above whatever it was dropped on, radius 16, a
9
- * hairline, with 1px rules between rows
10
- * rows `CheckoutSummaryRow`, in the order a buyer checks them
11
- * totals `price-breakdown`'s `PriceSummary`, inside the group under a rule,
12
- * 16 all round
13
- * confirm `CheckoutConfirm`, 20 under the group and OUTSIDE it: the group is
14
- * a list of decisions and the button is the consequence
15
- *
16
- * ## What this family does not own
17
- *
18
- * The totals are `PriceSummary` and nothing else — no second breakdown, no
19
- * arithmetic, and every amount is a string the app formatted. The address row
20
- * is `address`'s own `AddressRow`. Tracking, afterwards, is `order-status`.
21
- * The payment row is a SLOT: the payment-method row is its own family, and a
22
- * placeholder drawn here would be a second spelling of it.
23
- *
24
- * ## Why the address row nests
25
- *
26
- * `AddressRow` is `Item` with an address's slots filled in — the tile, the
27
- * badge beside the title, the name joined from the row's own text. Reaching for
28
- * it here rather than redrawing two lines is the whole point; it goes INSIDE
29
- * the summary row's value column with `leading={null}` (the row already drew
30
- * the gutter, which is the case `AddressRow` documents) and with `Item`'s
31
- * padding reset, so there is one row's chrome rather than two.
32
- */
33
- declare function CheckoutSummaryComponent({ title: titleProp, address, delivery, payment, note, extras, price, confirm, children, accessibilityLabel, style, testID, }: CheckoutSummaryProps): React.JSX.Element;
34
- export declare const CheckoutSummary: React.MemoExoticComponent<typeof CheckoutSummaryComponent>;
35
- export {};
36
- //# sourceMappingURL=CheckoutSummary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckoutSummary.d.ts","sourceRoot":"","sources":["../../../../src/checkout-summary/CheckoutSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA0BpD,OAAO,KAAK,EAAuB,oBAAoB,EAAE,MAAM,YAAS,CAAC;AAgBzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,iBAAS,wBAAwB,CAAC,EAChC,KAAK,EAAE,SAAS,EAChB,OAAO,EACP,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,EACN,KAAK,EACL,OAAO,EACP,QAAQ,EACR,kBAAkB,EAClB,KAAK,EACL,MAAM,GACP,EAAE,oBAAoB,qBAoItB;AAED,eAAO,MAAM,eAAe,4DAAiC,CAAC"}
@@ -1,29 +0,0 @@
1
- import type { CheckoutSummaryRowProps } from './types.js';
2
- /**
3
- * One decision, as a row: what it is, what was chosen, and the press that
4
- * changes it.
5
- *
6
- * tile 40 round, one surface step off the group behind the row, with a
7
- * 20 glyph in the secondary rung — `address`'s own geometry, so a
8
- * summary and an address list line up
9
- * label caption-2-bold uppercase secondary; the row is read label-first
10
- * because every row in the group is a different QUESTION
11
- * value body-medium, up to two lines, falling back to the placeholder
12
- * detail body-2-regular secondary
13
- * chevron 20, tertiary, decorative — the whole row is the button
14
- *
15
- * It is `Item` with those slots filled in: the press target, the hover and
16
- * press paint, the density rungs, the disabled opacity and the a11y role are
17
- * `Item`'s job, and this family owns no second copy of any of them.
18
- *
19
- * The label/value pair is a CAPTION OVER A VALUE rather than a title with the
20
- * value on the right, which is the other row Bloom draws (`GroupedSectionItem`).
21
- * The difference is the length: a settings value is a word, and a checkout
22
- * value is an address, a window and a card number — none of which fits in the
23
- * right half of a 390 row without truncating the thing the reader came to
24
- * check.
25
- */
26
- declare function CheckoutSummaryRowComponent({ label, icon: Icon, leading, value, placeholder: placeholderProp, detail, badge, content, onPress, disabled, accessibilityHint, accessibilityLabel, style, testID, }: CheckoutSummaryRowProps): import("react").JSX.Element;
27
- export declare const CheckoutSummaryRow: import("react").MemoExoticComponent<typeof CheckoutSummaryRowComponent>;
28
- export {};
29
- //# sourceMappingURL=CheckoutSummaryRow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckoutSummaryRow.d.ts","sourceRoot":"","sources":["../../../../src/checkout-summary/CheckoutSummaryRow.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAS,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAS,2BAA2B,CAAC,EACnC,KAAK,EACL,IAAI,EAAE,IAAI,EACV,OAAO,EACP,KAAK,EACL,WAAW,EAAE,eAAe,EAC5B,MAAM,EACN,KAAK,EACL,OAAO,EACP,OAAO,EACP,QAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,EACL,MAAM,GACP,EAAE,uBAAuB,+BA8GzB;AAED,eAAO,MAAM,kBAAkB,yEAAoC,CAAC"}
@@ -1,39 +0,0 @@
1
- import type { BloomIconComponent } from '../icons/icon-component.js';
2
- /**
3
- * The default glyph for each of the four rows a buyer checks. A caller that
4
- * wants a different one passes `icon`; these exist so the common summary reads
5
- * correctly with four strings and four handlers.
6
- */
7
- export declare const CHECKOUT_ROW_ICON: Record<'address' | 'delivery' | 'payment' | 'note', BloomIconComponent>;
8
- /** Drawn in place of the value while nothing is chosen. */
9
- export declare const CHECKOUT_ROW_PLACEHOLDER: string;
10
- /** The row's hint: what pressing it opens. */
11
- export declare const CHECKOUT_ROW_HINT: string;
12
- /** The default words on the confirm control. */
13
- export declare const CHECKOUT_CONFIRM_LABEL: string;
14
- export declare const CHECKOUT_CONFIRM_BUSY_LABEL: string;
15
- /**
16
- * The separator between the confirm label and the amount. A MIDDLE DOT rather
17
- * than a hyphen: "Place order - €24.80" reads as a subtraction at a glance in
18
- * a row that is otherwise full of money.
19
- */
20
- export declare const CHECKOUT_AMOUNT_SEPARATOR = " \u00B7 ";
21
- /**
22
- * The tile a row's glyph sits in. 40 is `address`'s own comfortable rung
23
- * (`ADDRESS_GEOMETRY`), which is what lines a summary row up with an `Avatar`
24
- * at `lg` — a summary that mixes a place and a courier must not step sideways
25
- * at the avatar.
26
- */
27
- export declare const CHECKOUT_ROW_TILE = 40;
28
- export declare const CHECKOUT_ROW_GLYPH = 20;
29
- /** The trailing chevron. */
30
- export declare const CHECKOUT_ROW_CHEVRON = 20;
31
- /** Between the label and the value, and between the value and the detail. */
32
- export declare const CHECKOUT_ROW_TEXT_GAP = 2;
33
- /** The group's corner, matching every other card-sized surface in the library. */
34
- export declare const CHECKOUT_GROUP_RADIUS = 16;
35
- /** Between the group, the children, the totals and the confirm control. */
36
- export declare const CHECKOUT_SECTION_GAP = 20;
37
- /** Inside the group's own padding, around the totals. */
38
- export declare const CHECKOUT_PRICE_PADDING = 16;
39
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/checkout-summary/constants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAAyB,CAAC;AAGlE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CACpC,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,EAC3C,kBAAkB,CAMnB,CAAC;AAKF,2DAA2D;AAC3D,eAAO,MAAM,wBAAwB,QAAyC,CAAC;AAE/E,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,QAA2C,CAAC;AAE1E,gDAAgD;AAChD,eAAO,MAAM,sBAAsB,QAA0C,CAAC;AAC9E,eAAO,MAAM,2BAA2B,QAA4C,CAAC;AAErF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,aAAQ,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,4BAA4B;AAC5B,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,yDAAyD;AACzD,eAAO,MAAM,sBAAsB,KAAK,CAAC"}
@@ -1,8 +0,0 @@
1
- export { CheckoutConfirm } from './CheckoutConfirm.js';
2
- export { CheckoutSummary } from './CheckoutSummary.js';
3
- export { CheckoutSummaryRow } from './CheckoutSummaryRow.js';
4
- export { CHECKOUT_AMOUNT_SEPARATOR, CHECKOUT_CONFIRM_BUSY_LABEL, CHECKOUT_CONFIRM_LABEL, CHECKOUT_GROUP_RADIUS, CHECKOUT_ROW_HINT, CHECKOUT_ROW_ICON, CHECKOUT_ROW_PLACEHOLDER, CHECKOUT_ROW_TILE, } from './constants.js';
5
- export { checkoutConfirmLabel, checkoutRowName, resolveCheckoutPaint } from './shared.js';
6
- export type { CheckoutSummaryPaint } from './shared.js';
7
- export type { CheckoutAddressSummary, CheckoutConfirmProps, CheckoutSummaryLine, CheckoutSummaryProps, CheckoutSummaryRowProps, } from './types.js';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/checkout-summary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAsB,CAAC;AAC1D,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,gBAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,aAAU,CAAC;AACvF,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAU,CAAC;AACrD,YAAY,EACV,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,YAAS,CAAC"}
@@ -1,23 +0,0 @@
1
- import { type MessageCatalog } from '../locale/messages.js';
2
- /**
3
- * Every fixed string the checkout summary draws or announces, in each Bloom
4
- * language. A caller's `title`, `label`, `placeholder`, `busyLabel`,
5
- * `accessibilityHint` and `accessibilityLabel` still win.
6
- */
7
- export interface CheckoutSummaryMessages {
8
- /** The heading above the rows. */
9
- title: string;
10
- /** Names the group when the heading is turned off. */
11
- orderSummary: string;
12
- /** The address row's label. */
13
- deliverTo: string;
14
- /** Drawn in place of a row's value while nothing is chosen. */
15
- notChosen: string;
16
- /** A pressable row's hint: what pressing it opens. */
17
- opensPicker: string;
18
- /** The confirm button, and what it announces while busy. */
19
- placeOrder: string;
20
- placingOrder: string;
21
- }
22
- export declare const CHECKOUT_SUMMARY_MESSAGES: MessageCatalog<CheckoutSummaryMessages>;
23
- //# sourceMappingURL=messages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/checkout-summary/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,uBAAoB,CAAC;AAEzE;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,yBAAyB,EAAE,cAAc,CAAC,uBAAuB,CAS1E,CAAC"}
@@ -1,27 +0,0 @@
1
- /**
2
- * What a checkout summary paints, read RELATIVE to the surface it was dropped
3
- * on (`styles/surface-levels.ts`): the review is a page on a phone, a column
4
- * beside a basket on a desktop, and a sheet over a menu — three different
5
- * fills, and a tile colour picked by eye vanishes on one of them.
6
- *
7
- * Pure, so `CheckoutSummary.test.tsx` can walk presets and modes without
8
- * rendering.
9
- */
10
- import { type SurfaceTextPaint } from '../styles/surface-levels.js';
11
- import type { Theme } from '../theme/types.js';
12
- export interface CheckoutSummaryPaint extends SurfaceTextPaint {
13
- /** The round tile a row's glyph sits in — one step off the group's own fill. */
14
- tile: string;
15
- }
16
- export declare function resolveCheckoutPaint(theme: Theme, surface: string): CheckoutSummaryPaint;
17
- /**
18
- * The row's announced name: the label, then whatever the row is showing.
19
- *
20
- * Deliberately "Delivery window: Today, 17:00 – 19:00" and not "Change
21
- * delivery window" — a reader moving through the summary wants the DECISIONS
22
- * read back, and what the press does belongs in the hint.
23
- */
24
- export declare function checkoutRowName(label: string, value: string | undefined): string;
25
- /** "Place order" + "€24.80" → "Place order · €24.80". */
26
- export declare function checkoutConfirmLabel(label: string, amount: string | undefined): string;
27
- //# sourceMappingURL=shared.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/checkout-summary/shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAgC,KAAK,gBAAgB,EAAE,MAAM,6BAA0B,CAAC;AAC/F,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAgB,CAAC;AAG5C,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,oBAAoB,CAKxF;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEhF;AAED,yDAAyD;AACzD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEtF"}
@@ -1,147 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { StyleProp, ViewStyle } from 'react-native';
3
- import type { AddressKind } from '../address/index.js';
4
- import type { BloomIconComponent } from '../icons/icon-component.js';
5
- import type { PriceSummaryProps } from '../price-breakdown/index.js';
6
- /**
7
- * ONE row of the review: what was chosen, and the thing that changes it.
8
- *
9
- * The row is the summary AND the trigger. A label with a "Change" button beside
10
- * it gives a reader two targets for one decision and a screen reader two stops
11
- * that do not mention each other; here the whole row is the button, its name is
12
- * "<label>: <value>", and the chevron is decoration.
13
- */
14
- export interface CheckoutSummaryLine {
15
- /** Stable key. Defaults to the index. */
16
- id?: string;
17
- /** What the row is FOR — "Delivery window", "Note for the shop". */
18
- label: string;
19
- /** The glyph in the leading tile. */
20
- icon?: BloomIconComponent;
21
- /**
22
- * The chosen value, PRE-FORMATTED — "Today, 17:00 – 19:00", "€24.80". This
23
- * family formats no dates and no money.
24
- */
25
- value?: string;
26
- /** Drawn in place of the value while nothing is chosen. Default `"Not chosen yet"`. */
27
- placeholder?: string;
28
- /** A quieter third line — "Standard delivery", "Leave at the door". */
29
- detail?: string;
30
- /** A node beside the value — a `Badge` ("Free"), a `Chip`. */
31
- badge?: ReactNode;
32
- /** Opens whatever changes this row. Without it the row is a static summary. */
33
- onPress?: () => void;
34
- disabled?: boolean;
35
- /**
36
- * What pressing the row does, announced as the row's hint. Default
37
- * `"Opens the picker"`; it is a HINT and not part of the name, so a reader
38
- * scanning the summary hears the values rather than "Change" five times.
39
- */
40
- accessibilityHint?: string;
41
- /** Defaults to `"<label>: <value>"`. */
42
- accessibilityLabel?: string;
43
- testID?: string;
44
- }
45
- export interface CheckoutSummaryRowProps extends CheckoutSummaryLine {
46
- /**
47
- * Replaces the value/detail column — an `AddressRow`, a two-line receipt, a
48
- * row of chips. The label and the chevron stay.
49
- */
50
- content?: ReactNode;
51
- /**
52
- * An arbitrary leading node instead of the glyph tile. Read for PRESENCE:
53
- * `leading={null}` draws no media at all.
54
- */
55
- leading?: ReactNode;
56
- style?: StyleProp<ViewStyle>;
57
- }
58
- /** The "where it goes" row, drawn with `address`'s own `AddressRow`. */
59
- export interface CheckoutAddressSummary {
60
- /** Default `"Deliver to"`. */
61
- label?: string;
62
- /** The line the place is recognised by — "Home", "Carrer de l’Om 14". */
63
- title: string;
64
- /** The rest of it — "Carrer de l’Om 14, 2nd floor". */
65
- subtitle?: string;
66
- /** Chooses the glyph in the row's tile. Default `place`. */
67
- kind?: AddressKind;
68
- /** The glyph, overriding whatever `kind` would have chosen. */
69
- icon?: BloomIconComponent;
70
- /** A node after the title — a `Badge` ("Default"). */
71
- badge?: ReactNode;
72
- /** Opens the address picker. */
73
- onPress?: () => void;
74
- disabled?: boolean;
75
- accessibilityHint?: string;
76
- testID?: string;
77
- }
78
- export interface CheckoutConfirmProps {
79
- /** Default `"Place order"`. */
80
- label?: string;
81
- /**
82
- * The amount the press commits to, PRE-FORMATTED, drawn on the button after
83
- * the label. It is on the BUTTON rather than beside it because the number a
84
- * press commits to and the press are one decision.
85
- */
86
- amount?: string;
87
- /**
88
- * A second, PRE-FORMATTED rendering of `amount` — the buyer's currency beside
89
- * the shop's, `"≈ 12,00 €"` — drawn de-emphasised, centred under the button.
90
- * Named like `PriceLine.secondaryAmount`; drawn as given, nothing converts.
91
- */
92
- secondaryAmount?: string;
93
- /**
94
- * The terms line under the button — a string, or a node with links in it.
95
- * `null` draws none.
96
- */
97
- terms?: ReactNode;
98
- /** Called at most once per busy cycle. */
99
- onConfirm?: () => void;
100
- disabled?: boolean;
101
- /**
102
- * The order is being placed: spinner, and every further press is dropped.
103
- *
104
- * The component ALSO latches on its own press, because the app's `busy`
105
- * arrives a render later and the second tap of a double-tap lands inside that
106
- * window. The latch clears when `busy` goes back to `false`.
107
- */
108
- busy?: boolean;
109
- /** Announced while busy, in place of the button's own name. Default `"Placing your order"`. */
110
- busyLabel?: string;
111
- /** Under the terms line — "Cancel", a help link. */
112
- footer?: ReactNode;
113
- style?: StyleProp<ViewStyle>;
114
- testID?: string;
115
- }
116
- export interface CheckoutSummaryProps {
117
- /** The heading above the rows. `null` draws none. */
118
- title?: string | null;
119
- /** Where it goes. */
120
- address?: CheckoutAddressSummary;
121
- /** When it comes. */
122
- delivery?: CheckoutSummaryLine;
123
- /**
124
- * How it is paid — a SLOT, because the payment-method row is its own family.
125
- * Anything that renders as a row goes here; `CheckoutSummaryRow` is exported
126
- * so an app with no payment family yet can draw one in the same register.
127
- */
128
- payment?: ReactNode;
129
- /** The note to the seller. */
130
- note?: CheckoutSummaryLine;
131
- /** Anything else this order needs a decision about, appended after the note. */
132
- extras?: readonly CheckoutSummaryLine[];
133
- /**
134
- * What it costs — `price-breakdown`'s `PriceSummary`, passed through. There
135
- * is no second breakdown in this family and no arithmetic anywhere.
136
- */
137
- price?: PriceSummaryProps;
138
- /** The confirm control under the totals. */
139
- confirm?: CheckoutConfirmProps;
140
- /** Between the rows and the totals — a promo field, a tip picker. */
141
- children?: ReactNode;
142
- /** Names the summary. Default the title, then `"Order summary"`. */
143
- accessibilityLabel?: string;
144
- style?: StyleProp<ViewStyle>;
145
- testID?: string;
146
- }
147
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/checkout-summary/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAAoB,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wEAAwE;AACxE,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,sDAAsD;IACtD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,+FAA+F;IAC/F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,qBAAqB;IACrB,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,qBAAqB;IACrB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,gFAAgF;IAChF,MAAM,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACxC;;;OAGG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,4CAA4C;IAC5C,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,qEAAqE;IACrE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1,40 +0,0 @@
1
- import React from 'react';
2
- import type { OrderConfirmationProps } from './types.js';
3
- /**
4
- * It is placed: what happened, which order it was, where it is going, what it
5
- * cost, and the two things you do next.
6
- *
7
- * mark a check on a success-tinted disc, 56. STATIC: `AnimatedCheck`
8
- * draws itself on only when a caller kicks it through its ref, and
9
- * a mark that is invisible until someone calls a method — or under
10
- * reduce-motion — is not a mark. An app that wants the draw-on
11
- * passes `<AnimatedCheck>` (and its `play()`) as `mark`.
12
- * title the "done" register — `EmptyState`'s own heading and line, which
13
- * is the same block `auth-card` and every finished flow draw
14
- * reference the order number as an outlined `Chip`, under its caption; it is
15
- * a chip because it is the one string a reader will read back to
16
- * someone on the phone, and a chip is the library's token
17
- * status `order-status`'s `OrderStatusBar` — the ONE tracking strip in the
18
- * library, drawn here rather than copied
19
- * address `address`'s `AddressRow`, flush with the block's edges
20
- * facts the label/value box Bloom's action cards already draw
21
- * items a slot: an order line is a dish, a parcel or a seat, and each has
22
- * a row family of its own
23
- * actions track it, get help
24
- *
25
- * ## It IS an `EmptyState`
26
- *
27
- * Not "looks like one": a mark, a heading, a line of explanation, a block of
28
- * content and up to two actions is exactly that family's shape, and a "done"
29
- * screen is the same object as a "nothing here" screen with a different reason
30
- * for existing. Building it a second time is how two centred columns with
31
- * different paddings ship in one library.
32
- *
33
- * ## It computes nothing
34
- *
35
- * Every amount, every time and every reading is a string the app formatted.
36
- */
37
- declare function OrderConfirmationComponent({ title: titleProp, description, mark, markSize, reference, referenceLabel: referenceLabelProp, status, address, facts, items, itemsLabel: itemsLabelProp, action, secondaryAction, footer, variant, accessibilityLabel, style, testID, }: OrderConfirmationProps): React.JSX.Element;
38
- export declare const OrderConfirmation: React.MemoExoticComponent<typeof OrderConfirmationComponent>;
39
- export {};
40
- //# sourceMappingURL=OrderConfirmation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OrderConfirmation.d.ts","sourceRoot":"","sources":["../../../../src/order-confirmation/OrderConfirmation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAiB7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAS,CAAC;AAStD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,iBAAS,0BAA0B,CAAC,EAClC,KAAK,EAAE,SAAS,EAChB,WAAW,EACX,IAAI,EACJ,QAAkC,EAClC,SAAS,EACT,cAAc,EAAE,kBAAkB,EAClC,MAAM,EACN,OAAO,EACP,KAAK,EACL,KAAK,EACL,UAAU,EAAE,cAAc,EAC1B,MAAM,EACN,eAAe,EACf,MAAM,EACN,OAAuB,EACvB,kBAAkB,EAClB,KAAK,EACL,MAAM,GACP,EAAE,sBAAsB,qBAkHxB;AAED,eAAO,MAAM,iBAAiB,8DAAmC,CAAC"}
@@ -1,17 +0,0 @@
1
- /**
2
- * The English words the confirmation says when the app says nothing. The
3
- * component itself says them in the app's language (`ORDER_CONFIRMATION_MESSAGES`).
4
- */
5
- export declare const ORDER_CONFIRMATION_TITLE: string;
6
- export declare const ORDER_CONFIRMATION_REFERENCE_LABEL: string;
7
- export declare const ORDER_CONFIRMATION_ITEMS_LABEL: string;
8
- /**
9
- * The drawn-on check. 56 is the size at which the 4px stroke of
10
- * `AnimatedCheck`'s 52-unit canvas reads as a mark rather than as an icon —
11
- * below ~40 it looks like a status glyph, which is the opposite of what a
12
- * finished flow is saying.
13
- */
14
- export declare const ORDER_CONFIRMATION_MARK = 56;
15
- /** Between the blocks of the receipt. */
16
- export declare const ORDER_CONFIRMATION_GAP = 16;
17
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/order-confirmation/constants.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAuC,CAAC;AAC7E,eAAO,MAAM,kCAAkC,QAAgD,CAAC;AAChG,eAAO,MAAM,8BAA8B,QAA4C,CAAC;AAExF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C,yCAAyC;AACzC,eAAO,MAAM,sBAAsB,KAAK,CAAC"}
@@ -1,4 +0,0 @@
1
- export { OrderConfirmation } from './OrderConfirmation.js';
2
- export { ORDER_CONFIRMATION_ITEMS_LABEL, ORDER_CONFIRMATION_MARK, ORDER_CONFIRMATION_REFERENCE_LABEL, ORDER_CONFIRMATION_TITLE, } from './constants.js';
3
- export type { OrderConfirmationAddress, OrderConfirmationFact, OrderConfirmationProps, } from './types.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/order-confirmation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAqB,CAAC;AACxD,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,EACvB,kCAAkC,EAClC,wBAAwB,GACzB,MAAM,gBAAa,CAAC;AACrB,YAAY,EACV,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,YAAS,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type MessageCatalog } from '../locale/messages.js';
2
- /**
3
- * The words the confirmation says when the app says nothing, in each Bloom
4
- * language. The `title`, `referenceLabel` and `itemsLabel` props still win.
5
- */
6
- export interface OrderConfirmationMessages {
7
- title: string;
8
- referenceLabel: string;
9
- itemsLabel: string;
10
- }
11
- export declare const ORDER_CONFIRMATION_MESSAGES: MessageCatalog<OrderConfirmationMessages>;
12
- //# sourceMappingURL=messages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/order-confirmation/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,uBAAoB,CAAC;AAEzE;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,2BAA2B,EAAE,cAAc,CAAC,yBAAyB,CAK9E,CAAC"}
@@ -1,88 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { StyleProp, ViewStyle } from 'react-native';
3
- import type { AddressKind } from '../address/index.js';
4
- import type { EmptyStateAction, EmptyStateVariant } from '../empty-state/index.js';
5
- import type { BloomIconComponent } from '../icons/icon-component.js';
6
- import type { OrderStatusBarProps } from '../order-status/index.js';
7
- /**
8
- * One reading of the receipt: when it arrives, what was charged, who is
9
- * bringing it.
10
- *
11
- * `value` is PRE-FORMATTED, like every string in this family — a time, an
12
- * amount, a courier's name. Nothing here reads a clock or adds a number.
13
- */
14
- export interface OrderConfirmationFact {
15
- /** Stable key. Defaults to the label. */
16
- id?: string;
17
- /** "Arrives", "Paid with", "Courier". */
18
- label: string;
19
- /** "Today, 17:00 – 19:00", "•••• 4417", "Mireia". */
20
- value: string;
21
- }
22
- /** Where it is going, drawn with `address`'s own `AddressRow`. */
23
- export interface OrderConfirmationAddress {
24
- /** The line the place is recognised by — "Home". */
25
- title: string;
26
- /** The rest of it. */
27
- subtitle?: string;
28
- /** Chooses the glyph. Default `place`. */
29
- kind?: AddressKind;
30
- /** The glyph, overriding whatever `kind` would have chosen. */
31
- icon?: BloomIconComponent;
32
- /** A node after the title — a `Badge`. */
33
- badge?: ReactNode;
34
- /** A short trailing reading — "1.2 km". */
35
- meta?: string;
36
- testID?: string;
37
- }
38
- export interface OrderConfirmationProps {
39
- /** Default `"Your order is placed"`. */
40
- title?: string;
41
- /** The line under it — "We have sent the receipt to your inbox." */
42
- description?: string;
43
- /**
44
- * The mark above the title. Default a check on a success-tinted disc — a
45
- * STATIC one, because `AnimatedCheck` draws itself on only when a caller
46
- * kicks it through its ref, and a mark nobody can see until a method runs is
47
- * not a mark. Pass `<AnimatedCheck>` (played by your own ref) for the
48
- * draw-on, a brand mark, or `null` for none.
49
- */
50
- mark?: ReactNode;
51
- /** The default mark's box. Default 56. */
52
- markSize?: number;
53
- /** The order's own number — "A-4821". PRE-FORMATTED, including any prefix. */
54
- reference?: string;
55
- /** The caption above it. Default `"Order number"`. */
56
- referenceLabel?: string;
57
- /**
58
- * The tracking strip — `order-status`'s `OrderStatusBar`, passed straight
59
- * through. This family draws no second one: "where it is right now" has one
60
- * component in the library and this is a place that shows it.
61
- */
62
- status?: OrderStatusBarProps;
63
- /** Where it goes. */
64
- address?: OrderConfirmationAddress;
65
- /** When it arrives, what was charged, and anything else worth reading back. */
66
- facts?: readonly OrderConfirmationFact[];
67
- /**
68
- * What was ordered, in full — the basket's own rows, rendered by the app.
69
- * A slot rather than data: a line of an order is a dish, a parcel or a seat
70
- * depending on the app, and each already has a row family of its own.
71
- */
72
- items?: ReactNode;
73
- /** The caption above `items`. Default `"What you ordered"`. */
74
- itemsLabel?: string;
75
- /** The first thing you do next — normally "Track order". */
76
- action?: EmptyStateAction;
77
- /** The other one — normally "Get help". */
78
- secondaryAction?: EmptyStateAction;
79
- /** Under the actions — a "Back to the shop" link, a note. */
80
- footer?: ReactNode;
81
- /** Default `comfortable`. `compact` is the panel rung. */
82
- variant?: EmptyStateVariant;
83
- /** Names the whole surface. Defaults to the title and the reference. */
84
- accessibilityLabel?: string;
85
- style?: StyleProp<ViewStyle>;
86
- testID?: string;
87
- }
88
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/order-confirmation/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,yBAAgB,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAAiB,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,kEAAkE;AAClE,MAAM,WAAW,wBAAwB;IACvC,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,0CAA0C;IAC1C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAE7B,qBAAqB;IACrB,OAAO,CAAC,EAAE,wBAAwB,CAAC;IAEnC,+EAA+E;IAC/E,KAAK,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAEzC;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,2CAA2C;IAC3C,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,6DAA6D;IAC7D,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { VendorCardProps } from './types.js';
3
- declare function VendorCardComponent(props: VendorCardProps): React.JSX.Element;
4
- export declare const VendorCard: React.MemoExoticComponent<typeof VendorCardComponent>;
5
- export {};
6
- //# sourceMappingURL=VendorCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VendorCard.d.ts","sourceRoot":"","sources":["../../../../src/vendor-card/VendorCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AA+C7C,OAAO,KAAK,EAAqB,eAAe,EAAE,MAAM,YAAS,CAAC;AAwPlE,iBAAS,mBAAmB,CAAC,KAAK,EAAE,eAAe,qBAkNlD;AAED,eAAO,MAAM,UAAU,uDAA4B,CAAC"}
@@ -1,30 +0,0 @@
1
- import type { BloomIconComponent } from '../icons/icon-component.js';
2
- import type { VendorAvailability, VendorCardDensity, VendorFactKey } from './types.js';
3
- /**
4
- * The cover's shape in the comfortable density. 16:9 rather than the 20:19 a
5
- * home is drawn at: a shelf of vendors is scanned SIDEWAYS, and a near-square
6
- * cover at shelf width pushes the name off the first screen.
7
- */
8
- export declare const VENDOR_PHOTO_ASPECT_RATIO: number;
9
- /** The readings, in the order the fact row draws them. */
10
- export declare const VENDOR_FACT_ORDER: readonly VendorFactKey[];
11
- /**
12
- * The glyph beside each reading. A bike for the fee because the fee is what the
13
- * ride costs; a walker for distance, which is the one reading that is about the
14
- * reader's own position rather than the order's.
15
- */
16
- export declare const VENDOR_FACT_ICON: Record<VendorFactKey, BloomIconComponent>;
17
- /**
18
- * The word said before each reading in the card's accessible name, in English.
19
- * The card itself speaks `VENDOR_CARD_MESSAGES` in the resolved locale.
20
- */
21
- export declare const VENDOR_FACT_LABELS: Record<VendorFactKey, string>;
22
- /** The English status pill labels. `open` draws none. The card speaks the resolved locale's. */
23
- export declare const VENDOR_AVAILABILITY_LABELS: Record<Exclude<VendorAvailability, 'open'>, string>;
24
- /** The cuisine pills' rung: 24 tall, caption weight — the densest pill Bloom has. */
25
- export declare const VENDOR_CUISINE_CHIP_HEIGHT = 24;
26
- /** Space between the cover and the text, and between the text lines. */
27
- export declare const VENDOR_TEXT_GAP = 12;
28
- /** How many cuisines are drawn at all. Past this the row is a list, not a mark. */
29
- export declare const VENDOR_CUISINE_LIMIT: Record<VendorCardDensity, number>;
30
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/vendor-card/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAAyB,CAAC;AAMlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,YAAS,CAAC;AAEpF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,QAAS,CAAC;AAEhD,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB,EAAE,SAAS,aAAa,EAKrD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,aAAa,EAAE,kBAAkB,CAKtE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAAiC,CAAC;AAE/F,gGAAgG;AAChG,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAC7C,OAAO,CAAC,kBAAkB,EAAE,MAAM,CAAC,EACnC,MAAM,CACgC,CAAC;AAEzC,qFAAqF;AACrF,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C,wEAAwE;AACxE,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAGlE,CAAC"}
@@ -1,5 +0,0 @@
1
- export { VendorCard } from './VendorCard.js';
2
- export { VENDOR_AVAILABILITY_LABELS, VENDOR_FACT_ICON, VENDOR_FACT_LABELS, VENDOR_FACT_ORDER, VENDOR_PHOTO_ASPECT_RATIO, } from './constants.js';
3
- export { availabilityLabelFor, composeVendorName, vendorCuisines, vendorFacts } from './shared.js';
4
- export type { VendorAvailability, VendorCardDensity, VendorCardProps, VendorFactKey, } from './types.js';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/vendor-card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAc,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAC1B,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,gBAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,aAAU,CAAC;AAChG,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,aAAa,GACd,MAAM,YAAS,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Helpers the vendor-card catalog's strings share across languages.
3
- * Kept apart from `messages.ts` so a language module can use them without
4
- * linking the family's English strings (see `src/locale/translations`).
5
- */
6
- import type { BloomLanguage } from '../locale/languages.js';
7
- import { type PluralCategory } from '../locale/plural.js';
8
- /** A count the app may hand over as a number or as its own text ("1.2k"). */
9
- export declare function counted(language: BloomLanguage, count: number | string, forms: Partial<Record<PluralCategory, string>> & {
10
- other: string;
11
- }): string;
12
- export declare const has: (reviews: number | string | undefined) => reviews is number | string;
13
- //# sourceMappingURL=message-helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-helpers.d.ts","sourceRoot":"","sources":["../../../../src/vendor-card/message-helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAqB,CAAC;AACzD,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,qBAAkB,CAAC;AAE/E,6EAA6E;AAC7E,wBAAgB,OAAO,CACrB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GACjE,MAAM,CAIR;AACD,eAAO,MAAM,GAAG,GAAI,SAAS,MAAM,GAAG,MAAM,GAAG,SAAS,KAAG,OAAO,IAAI,MAAM,GAAG,MAC5C,CAAC"}