@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,273 +0,0 @@
1
- "use strict";
2
-
3
- import { c as _c } from "react/compiler-runtime";
4
- import { memo, useMemo } from 'react';
5
- import { View } from 'react-native';
6
- import { RiArrowRightSLine } from "../icons/remix/RiArrowRightSLine.js";
7
- import { Item } from "../item/index.js";
8
- import { useMessages } from "../locale/messages.js";
9
- import { useSurfaceFill } from "../styles/surface-levels.js";
10
- import { useTheme } from "../theme/use-theme.js";
11
- import { Text } from "../typography/index.js";
12
- import { CHECKOUT_ROW_CHEVRON, CHECKOUT_ROW_GLYPH, CHECKOUT_ROW_TEXT_GAP, CHECKOUT_ROW_TILE } from "./constants.js";
13
- import { CHECKOUT_SUMMARY_MESSAGES } from "./messages.js";
14
- import { checkoutRowName, resolveCheckoutPaint } from "./shared.js";
15
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
16
- /**
17
- * One decision, as a row: what it is, what was chosen, and the press that
18
- * changes it.
19
- *
20
- * tile 40 round, one surface step off the group behind the row, with a
21
- * 20 glyph in the secondary rung — `address`'s own geometry, so a
22
- * summary and an address list line up
23
- * label caption-2-bold uppercase secondary; the row is read label-first
24
- * because every row in the group is a different QUESTION
25
- * value body-medium, up to two lines, falling back to the placeholder
26
- * detail body-2-regular secondary
27
- * chevron 20, tertiary, decorative — the whole row is the button
28
- *
29
- * It is `Item` with those slots filled in: the press target, the hover and
30
- * press paint, the density rungs, the disabled opacity and the a11y role are
31
- * `Item`'s job, and this family owns no second copy of any of them.
32
- *
33
- * The label/value pair is a CAPTION OVER A VALUE rather than a title with the
34
- * value on the right, which is the other row Bloom draws (`GroupedSectionItem`).
35
- * The difference is the length: a settings value is a word, and a checkout
36
- * value is an address, a window and a card number — none of which fits in the
37
- * right half of a 390 row without truncating the thing the reader came to
38
- * check.
39
- */
40
- function CheckoutSummaryRowComponent(t0) {
41
- const $ = _c(52);
42
- const {
43
- label,
44
- icon: Icon,
45
- leading,
46
- value,
47
- placeholder: placeholderProp,
48
- detail,
49
- badge,
50
- content,
51
- onPress,
52
- disabled: t1,
53
- accessibilityHint,
54
- accessibilityLabel,
55
- style,
56
- testID
57
- } = t0;
58
- const disabled = t1 === undefined ? false : t1;
59
- const {
60
- messages
61
- } = useMessages(CHECKOUT_SUMMARY_MESSAGES);
62
- const placeholder = placeholderProp ?? messages.notChosen;
63
- const theme = useTheme();
64
- const surface = useSurfaceFill();
65
- let t2;
66
- if ($[0] !== surface || $[1] !== theme) {
67
- t2 = resolveCheckoutPaint(theme, surface);
68
- $[0] = surface;
69
- $[1] = theme;
70
- $[2] = t2;
71
- } else {
72
- t2 = $[2];
73
- }
74
- const paint = t2;
75
- let t3;
76
- if ($[3] !== testID) {
77
- t3 = part => testID ? `${testID}-${part}` : undefined;
78
- $[3] = testID;
79
- $[4] = t3;
80
- } else {
81
- t3 = $[4];
82
- }
83
- const id = t3;
84
- const chosen = value != null && value !== "";
85
- const shown = chosen ? value : placeholder;
86
- let t4;
87
- if ($[5] !== Icon || $[6] !== id || $[7] !== leading || $[8] !== paint.textSecondary || $[9] !== paint.tile) {
88
- t4 = leading !== undefined ? leading : Icon ? /*#__PURE__*/_jsx(View, {
89
- testID: id("tile"),
90
- style: {
91
- width: CHECKOUT_ROW_TILE,
92
- height: CHECKOUT_ROW_TILE,
93
- borderRadius: CHECKOUT_ROW_TILE / 2,
94
- alignItems: "center",
95
- justifyContent: "center",
96
- backgroundColor: paint.tile
97
- },
98
- children: /*#__PURE__*/_jsx(Icon, {
99
- width: CHECKOUT_ROW_GLYPH,
100
- height: CHECKOUT_ROW_GLYPH,
101
- fill: paint.textSecondary
102
- })
103
- }) : null;
104
- $[5] = Icon;
105
- $[6] = id;
106
- $[7] = leading;
107
- $[8] = paint.textSecondary;
108
- $[9] = paint.tile;
109
- $[10] = t4;
110
- } else {
111
- t4 = $[10];
112
- }
113
- const media = t4;
114
- let t5;
115
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
116
- t5 = {
117
- flex: 1,
118
- minWidth: 0,
119
- gap: CHECKOUT_ROW_TEXT_GAP
120
- };
121
- $[11] = t5;
122
- } else {
123
- t5 = $[11];
124
- }
125
- let t6;
126
- if ($[12] !== id) {
127
- t6 = id("label");
128
- $[12] = id;
129
- $[13] = t6;
130
- } else {
131
- t6 = $[13];
132
- }
133
- let t7;
134
- if ($[14] !== paint.textSecondary) {
135
- t7 = {
136
- color: paint.textSecondary,
137
- textTransform: "uppercase"
138
- };
139
- $[14] = paint.textSecondary;
140
- $[15] = t7;
141
- } else {
142
- t7 = $[15];
143
- }
144
- let t8;
145
- if ($[16] !== label || $[17] !== t6 || $[18] !== t7) {
146
- t8 = /*#__PURE__*/_jsx(Text, {
147
- variant: "caption-2-bold",
148
- numberOfLines: 1,
149
- testID: t6,
150
- style: t7,
151
- children: label
152
- });
153
- $[16] = label;
154
- $[17] = t6;
155
- $[18] = t7;
156
- $[19] = t8;
157
- } else {
158
- t8 = $[19];
159
- }
160
- let t9;
161
- if ($[20] !== badge || $[21] !== chosen || $[22] !== content || $[23] !== detail || $[24] !== id || $[25] !== paint.text || $[26] !== paint.textSecondary || $[27] !== paint.textTertiary || $[28] !== shown) {
162
- t9 = content !== undefined ? content : /*#__PURE__*/_jsxs(_Fragment, {
163
- children: [/*#__PURE__*/_jsxs(View, {
164
- style: {
165
- flexDirection: "row",
166
- alignItems: "center",
167
- gap: 6,
168
- minWidth: 0
169
- },
170
- children: [/*#__PURE__*/_jsx(Text, {
171
- variant: "body-medium",
172
- numberOfLines: 2,
173
- testID: id("value"),
174
- style: {
175
- flexShrink: 1,
176
- minWidth: 0,
177
- color: chosen ? paint.text : paint.textTertiary
178
- },
179
- children: shown
180
- }), badge]
181
- }), detail ? /*#__PURE__*/_jsx(Text, {
182
- variant: "body-2-regular",
183
- numberOfLines: 2,
184
- testID: id("detail"),
185
- style: {
186
- color: paint.textSecondary
187
- },
188
- children: detail
189
- }) : null]
190
- });
191
- $[20] = badge;
192
- $[21] = chosen;
193
- $[22] = content;
194
- $[23] = detail;
195
- $[24] = id;
196
- $[25] = paint.text;
197
- $[26] = paint.textSecondary;
198
- $[27] = paint.textTertiary;
199
- $[28] = shown;
200
- $[29] = t9;
201
- } else {
202
- t9 = $[29];
203
- }
204
- let t10;
205
- if ($[30] !== t8 || $[31] !== t9) {
206
- t10 = /*#__PURE__*/_jsxs(View, {
207
- style: t5,
208
- children: [t8, t9]
209
- });
210
- $[30] = t8;
211
- $[31] = t9;
212
- $[32] = t10;
213
- } else {
214
- t10 = $[32];
215
- }
216
- const body = t10;
217
- let t11;
218
- if ($[33] !== onPress || $[34] !== paint.textTertiary) {
219
- t11 = onPress ? /*#__PURE__*/_jsx(RiArrowRightSLine, {
220
- width: CHECKOUT_ROW_CHEVRON,
221
- height: CHECKOUT_ROW_CHEVRON,
222
- fill: paint.textTertiary
223
- }) : null;
224
- $[33] = onPress;
225
- $[34] = paint.textTertiary;
226
- $[35] = t11;
227
- } else {
228
- t11 = $[35];
229
- }
230
- let t12;
231
- if ($[36] !== accessibilityLabel || $[37] !== chosen || $[38] !== label || $[39] !== placeholder || $[40] !== value) {
232
- t12 = accessibilityLabel ?? checkoutRowName(label, chosen ? value : placeholder);
233
- $[36] = accessibilityLabel;
234
- $[37] = chosen;
235
- $[38] = label;
236
- $[39] = placeholder;
237
- $[40] = value;
238
- $[41] = t12;
239
- } else {
240
- t12 = $[41];
241
- }
242
- const t13 = onPress ? accessibilityHint ?? messages.opensPicker : accessibilityHint;
243
- let t14;
244
- if ($[42] !== body || $[43] !== disabled || $[44] !== media || $[45] !== onPress || $[46] !== style || $[47] !== t11 || $[48] !== t12 || $[49] !== t13 || $[50] !== testID) {
245
- t14 = /*#__PURE__*/_jsx(Item, {
246
- leading: media,
247
- trailing: t11,
248
- onPress: onPress,
249
- disabled: disabled,
250
- accessibilityLabel: t12,
251
- accessibilityHint: t13,
252
- style: style,
253
- testID: testID,
254
- children: body
255
- });
256
- $[42] = body;
257
- $[43] = disabled;
258
- $[44] = media;
259
- $[45] = onPress;
260
- $[46] = style;
261
- $[47] = t11;
262
- $[48] = t12;
263
- $[49] = t13;
264
- $[50] = testID;
265
- $[51] = t14;
266
- } else {
267
- t14 = $[51];
268
- }
269
- return t14;
270
- }
271
- export const CheckoutSummaryRow = /*#__PURE__*/memo(CheckoutSummaryRowComponent);
272
- CheckoutSummaryRow.displayName = 'CheckoutSummaryRow';
273
- //# sourceMappingURL=CheckoutSummaryRow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["memo","useMemo","View","RiArrowRightSLine","Item","useMessages","useSurfaceFill","useTheme","Text","CHECKOUT_ROW_CHEVRON","CHECKOUT_ROW_GLYPH","CHECKOUT_ROW_TEXT_GAP","CHECKOUT_ROW_TILE","CHECKOUT_SUMMARY_MESSAGES","checkoutRowName","resolveCheckoutPaint","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","CheckoutSummaryRowComponent","t0","$","_c","label","icon","Icon","leading","value","placeholder","placeholderProp","detail","badge","content","onPress","disabled","t1","accessibilityHint","accessibilityLabel","style","testID","undefined","messages","notChosen","theme","surface","t2","paint","t3","part","id","chosen","shown","t4","textSecondary","tile","width","height","borderRadius","alignItems","justifyContent","backgroundColor","children","fill","media","t5","Symbol","for","flex","minWidth","gap","t6","t7","color","textTransform","t8","variant","numberOfLines","t9","text","textTertiary","flexDirection","flexShrink","t10","body","t11","t12","t13","opensPicker","t14","trailing","CheckoutSummaryRow","displayName"],"sourceRoot":"../../../src","sources":["checkout-summary/CheckoutSummaryRow.tsx"],"mappings":";;;AAAA,SAASA,IAAI,EAAEC,OAAO,QAAQ,OAAO;AACrC,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,iBAAiB,QAAQ,qCAAkC;AACpE,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,WAAW,QAAQ,uBAAoB;AAChD,SAASC,cAAc,QAAQ,6BAA0B;AACzD,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SACEC,oBAAoB,EACpBC,kBAAkB,EAClBC,qBAAqB,EACrBC,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AA,OAAA8D,IAAA;IAAA9D,CAAA,OAAAa,QAAA;IAAAb,CAAA,OAAA0C,KAAA;IAAA1C,CAAA,OAAAY,OAAA;IAAAZ,CAAA,OAAAiB,KAAA;IAAAjB,CAAA,OAAA+D,GAAA;IAAA/D,CAAA,OAAAgE,GAAA;IAAAhE,CAAA,OAAAiE,GAAA;IAAAjE,CAAA,OAAAkB,MAAA;IAAAlB,CAAA,OAAAmE,GAAA;EAAA;IAAAA,GAAA,GAAAnE,CAAA;EAAA;EAAA,OA3BPmE,GA2BO;AAAA;AAIX,OAAO,MAAME,kBAAkB,gBAAG7F,IAAI,CAACsB,2BAA2B,CAAC;AACnEuE,kBAAkB,CAACC,WAAW,GAAG,oBAAoB","ignoreList":[]}
@@ -1,63 +0,0 @@
1
- "use strict";
2
-
3
- import { RiBankCardLine } from "../icons/remix/RiBankCardLine.js";
4
- import { RiChat3Line } from "../icons/remix/RiChat3Line.js";
5
- import { RiMapPin2Line } from "../icons/remix/RiMapPin2Line.js";
6
- import { RiTimeLine } from "../icons/remix/RiTimeLine.js";
7
- import { CHECKOUT_SUMMARY_MESSAGES } from "./messages.js";
8
-
9
- /**
10
- * The default glyph for each of the four rows a buyer checks. A caller that
11
- * wants a different one passes `icon`; these exist so the common summary reads
12
- * correctly with four strings and four handlers.
13
- */
14
- export const CHECKOUT_ROW_ICON = {
15
- address: RiMapPin2Line,
16
- delivery: RiTimeLine,
17
- payment: RiBankCardLine,
18
- note: RiChat3Line
19
- };
20
-
21
- // The English words below stay exported; the components speak
22
- // `CHECKOUT_SUMMARY_MESSAGES` in the resolved locale.
23
-
24
- /** Drawn in place of the value while nothing is chosen. */
25
- export const CHECKOUT_ROW_PLACEHOLDER = CHECKOUT_SUMMARY_MESSAGES.en.notChosen;
26
-
27
- /** The row's hint: what pressing it opens. */
28
- export const CHECKOUT_ROW_HINT = CHECKOUT_SUMMARY_MESSAGES.en.opensPicker;
29
-
30
- /** The default words on the confirm control. */
31
- export const CHECKOUT_CONFIRM_LABEL = CHECKOUT_SUMMARY_MESSAGES.en.placeOrder;
32
- export const CHECKOUT_CONFIRM_BUSY_LABEL = CHECKOUT_SUMMARY_MESSAGES.en.placingOrder;
33
-
34
- /**
35
- * The separator between the confirm label and the amount. A MIDDLE DOT rather
36
- * than a hyphen: "Place order - €24.80" reads as a subtraction at a glance in
37
- * a row that is otherwise full of money.
38
- */
39
- export const CHECKOUT_AMOUNT_SEPARATOR = ' · ';
40
-
41
- /**
42
- * The tile a row's glyph sits in. 40 is `address`'s own comfortable rung
43
- * (`ADDRESS_GEOMETRY`), which is what lines a summary row up with an `Avatar`
44
- * at `lg` — a summary that mixes a place and a courier must not step sideways
45
- * at the avatar.
46
- */
47
- export const CHECKOUT_ROW_TILE = 40;
48
- export const CHECKOUT_ROW_GLYPH = 20;
49
- /** The trailing chevron. */
50
- export const CHECKOUT_ROW_CHEVRON = 20;
51
-
52
- /** Between the label and the value, and between the value and the detail. */
53
- export const CHECKOUT_ROW_TEXT_GAP = 2;
54
-
55
- /** The group's corner, matching every other card-sized surface in the library. */
56
- export const CHECKOUT_GROUP_RADIUS = 16;
57
-
58
- /** Between the group, the children, the totals and the confirm control. */
59
- export const CHECKOUT_SECTION_GAP = 20;
60
-
61
- /** Inside the group's own padding, around the totals. */
62
- export const CHECKOUT_PRICE_PADDING = 16;
63
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["RiBankCardLine","RiChat3Line","RiMapPin2Line","RiTimeLine","CHECKOUT_SUMMARY_MESSAGES","CHECKOUT_ROW_ICON","address","delivery","payment","note","CHECKOUT_ROW_PLACEHOLDER","en","notChosen","CHECKOUT_ROW_HINT","opensPicker","CHECKOUT_CONFIRM_LABEL","placeOrder","CHECKOUT_CONFIRM_BUSY_LABEL","placingOrder","CHECKOUT_AMOUNT_SEPARATOR","CHECKOUT_ROW_TILE","CHECKOUT_ROW_GLYPH","CHECKOUT_ROW_CHEVRON","CHECKOUT_ROW_TEXT_GAP","CHECKOUT_GROUP_RADIUS","CHECKOUT_SECTION_GAP","CHECKOUT_PRICE_PADDING"],"sourceRoot":"../../../src","sources":["checkout-summary/constants.ts"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,kCAA+B;AAC9D,SAASC,WAAW,QAAQ,+BAA4B;AACxD,SAASC,aAAa,QAAQ,iCAA8B;AAC5D,SAASC,UAAU,QAAQ,8BAA2B;AAEtD,SAASC,yBAAyB,QAAQ,eAAY;;AAEtD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAGZ,GAAG;EACFC,OAAO,EAAEJ,aAAa;EACtBK,QAAQ,EAAEJ,UAAU;EACpBK,OAAO,EAAER,cAAc;EACvBS,IAAI,EAAER;AACR,CAAC;;AAED;AACA;;AAEA;AACA,OAAO,MAAMS,wBAAwB,GAAGN,yBAAyB,CAACO,EAAE,CAACC,SAAS;;AAE9E;AACA,OAAO,MAAMC,iBAAiB,GAAGT,yBAAyB,CAACO,EAAE,CAACG,WAAW;;AAEzE;AACA,OAAO,MAAMC,sBAAsB,GAAGX,yBAAyB,CAACO,EAAE,CAACK,UAAU;AAC7E,OAAO,MAAMC,2BAA2B,GAAGb,yBAAyB,CAACO,EAAE,CAACO,YAAY;;AAEpF;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,yBAAyB,GAAG,KAAK;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAG,EAAE;AACnC,OAAO,MAAMC,kBAAkB,GAAG,EAAE;AACpC;AACA,OAAO,MAAMC,oBAAoB,GAAG,EAAE;;AAEtC;AACA,OAAO,MAAMC,qBAAqB,GAAG,CAAC;;AAEtC;AACA,OAAO,MAAMC,qBAAqB,GAAG,EAAE;;AAEvC;AACA,OAAO,MAAMC,oBAAoB,GAAG,EAAE;;AAEtC;AACA,OAAO,MAAMC,sBAAsB,GAAG,EAAE","ignoreList":[]}
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- export { CheckoutConfirm } from "./CheckoutConfirm.js";
4
- export { CheckoutSummary } from "./CheckoutSummary.js";
5
- export { CheckoutSummaryRow } from "./CheckoutSummaryRow.js";
6
- 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";
7
- export { checkoutConfirmLabel, checkoutRowName, resolveCheckoutPaint } from "./shared.js";
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["CheckoutConfirm","CheckoutSummary","CheckoutSummaryRow","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","checkoutConfirmLabel","checkoutRowName","resolveCheckoutPaint"],"sourceRoot":"../../../src","sources":["checkout-summary/index.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,sBAAmB;AACnD,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,kBAAkB,QAAQ,yBAAsB;AACzD,SACEC,yBAAyB,EACzBC,2BAA2B,EAC3BC,sBAAsB,EACtBC,qBAAqB,EACrBC,iBAAiB,EACjBC,iBAAiB,EACjBC,wBAAwB,EACxBC,iBAAiB,QACZ,gBAAa;AACpB,SAASC,oBAAoB,EAAEC,eAAe,EAAEC,oBAAoB,QAAQ,aAAU","ignoreList":[]}
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- import { defineMessages } from "../locale/messages.js";
4
-
5
- /**
6
- * Every fixed string the checkout summary draws or announces, in each Bloom
7
- * language. A caller's `title`, `label`, `placeholder`, `busyLabel`,
8
- * `accessibilityHint` and `accessibilityLabel` still win.
9
- */
10
-
11
- export const CHECKOUT_SUMMARY_MESSAGES = defineMessages('CHECKOUT_SUMMARY_MESSAGES', {
12
- title: 'Review your order',
13
- orderSummary: 'Order summary',
14
- deliverTo: 'Deliver to',
15
- notChosen: 'Not chosen yet',
16
- opensPicker: 'Opens the picker',
17
- placeOrder: 'Place order',
18
- placingOrder: 'Placing your order'
19
- });
20
- //# sourceMappingURL=messages.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["defineMessages","CHECKOUT_SUMMARY_MESSAGES","title","orderSummary","deliverTo","notChosen","opensPicker","placeOrder","placingOrder"],"sourceRoot":"../../../src","sources":["checkout-summary/messages.ts"],"mappings":";;AAAA,SAASA,cAAc,QAA6B,uBAAoB;;AAExE;AACA;AACA;AACA;AACA;;AAiBA,OAAO,MAAMC,yBAAkE,GAC7ED,cAAc,CAA0B,2BAA2B,EAAE;EACnEE,KAAK,EAAE,mBAAmB;EAC1BC,YAAY,EAAE,eAAe;EAC7BC,SAAS,EAAE,YAAY;EACvBC,SAAS,EAAE,gBAAgB;EAC3BC,WAAW,EAAE,kBAAkB;EAC/BC,UAAU,EAAE,aAAa;EACzBC,YAAY,EAAE;AAChB,CAAC,CAAC","ignoreList":[]}
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * What a checkout summary paints, read RELATIVE to the surface it was dropped
5
- * on (`styles/surface-levels.ts`): the review is a page on a phone, a column
6
- * beside a basket on a desktop, and a sheet over a menu — three different
7
- * fills, and a tile colour picked by eye vanishes on one of them.
8
- *
9
- * Pure, so `CheckoutSummary.test.tsx` can walk presets and modes without
10
- * rendering.
11
- */
12
- import { surfaceFillOn, surfaceTextOn } from "../styles/surface-levels.js";
13
- import { CHECKOUT_AMOUNT_SEPARATOR } from "./constants.js";
14
- export function resolveCheckoutPaint(theme, surface) {
15
- return {
16
- ...surfaceTextOn(theme, surface),
17
- tile: surfaceFillOn(theme, surface)
18
- };
19
- }
20
-
21
- /**
22
- * The row's announced name: the label, then whatever the row is showing.
23
- *
24
- * Deliberately "Delivery window: Today, 17:00 – 19:00" and not "Change
25
- * delivery window" — a reader moving through the summary wants the DECISIONS
26
- * read back, and what the press does belongs in the hint.
27
- */
28
- export function checkoutRowName(label, value) {
29
- return value && value !== '' ? `${label}: ${value}` : label;
30
- }
31
-
32
- /** "Place order" + "€24.80" → "Place order · €24.80". */
33
- export function checkoutConfirmLabel(label, amount) {
34
- return amount && amount !== '' ? `${label}${CHECKOUT_AMOUNT_SEPARATOR}${amount}` : label;
35
- }
36
- //# sourceMappingURL=shared.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["surfaceFillOn","surfaceTextOn","CHECKOUT_AMOUNT_SEPARATOR","resolveCheckoutPaint","theme","surface","tile","checkoutRowName","label","value","checkoutConfirmLabel","amount"],"sourceRoot":"../../../src","sources":["checkout-summary/shared.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,EAAEC,aAAa,QAA+B,6BAA0B;AAE9F,SAASC,yBAAyB,QAAQ,gBAAa;AAOvD,OAAO,SAASC,oBAAoBA,CAACC,KAAY,EAAEC,OAAe,EAAwB;EACxF,OAAO;IACL,GAAGJ,aAAa,CAACG,KAAK,EAAEC,OAAO,CAAC;IAChCC,IAAI,EAAEN,aAAa,CAACI,KAAK,EAAEC,OAAO;EACpC,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,eAAeA,CAACC,KAAa,EAAEC,KAAyB,EAAU;EAChF,OAAOA,KAAK,IAAIA,KAAK,KAAK,EAAE,GAAG,GAAGD,KAAK,KAAKC,KAAK,EAAE,GAAGD,KAAK;AAC7D;;AAEA;AACA,OAAO,SAASE,oBAAoBA,CAACF,KAAa,EAAEG,MAA0B,EAAU;EACtF,OAAOA,MAAM,IAAIA,MAAM,KAAK,EAAE,GAAG,GAAGH,KAAK,GAAGN,yBAAyB,GAAGS,MAAM,EAAE,GAAGH,KAAK;AAC1F","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- "use strict";
2
-
3
- export {};
4
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["checkout-summary/types.ts"],"mappings":"","ignoreList":[]}