@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
@@ -0,0 +1,660 @@
1
+ /*
2
+ * COPIED FROM react-native-svg 15.16.0 — `android/src/main/java/com/horcrux/svg/PathParser.java`
3
+ * MIT, Copyright (c) 2015-present, Horcrux. Full licence in `NOTICE` at the root.
4
+ *
5
+ * Changed: the package and class name; the scale is a parameter instead of a
6
+ * static field; the marker element list react-native-svg keeps for `<Marker>`
7
+ * is gone; malformed data throws IllegalArgumentException everywhere (the
8
+ * original throws `Error` in three places), so the view can refuse it. Every
9
+ * number, branch and curve conversion is the original's, so a glyph's geometry
10
+ * here is the geometry react-native-svg draws, to the bit.
11
+ */
12
+
13
+ package so.oxy.bloom.icons;
14
+
15
+ import android.graphics.Path;
16
+ import android.graphics.RectF;
17
+
18
+ final class IconPathParser {
19
+ private static float mScale;
20
+
21
+ private static int i;
22
+ private static int l;
23
+ private static String s;
24
+ private static Path mPath;
25
+
26
+ private static float mPenX;
27
+ private static float mPenY;
28
+ private static float mPivotX;
29
+ private static float mPivotY;
30
+ private static float mPenDownX;
31
+ private static float mPenDownY;
32
+ private static boolean mPenDown;
33
+
34
+ private IconPathParser() {}
35
+
36
+ /** The SVG path data `d`, scaled by `scale` (react-native-svg scales by the screen density). */
37
+ static Path parse(String d, float scale) {
38
+ mScale = scale;
39
+ mPath = new Path();
40
+ if (d == null) {
41
+ return mPath;
42
+ }
43
+ char prev_cmd = ' ';
44
+ l = d.length();
45
+ s = d;
46
+ i = 0;
47
+
48
+ mPenX = 0f;
49
+ mPenY = 0f;
50
+ mPivotX = 0f;
51
+ mPivotY = 0f;
52
+ mPenDownX = 0f;
53
+ mPenDownY = 0f;
54
+ mPenDown = false;
55
+
56
+ while (i < l) {
57
+ skip_spaces();
58
+
59
+ if (i >= l) {
60
+ break;
61
+ }
62
+
63
+ boolean has_prev_cmd = prev_cmd != ' ';
64
+ char first_char = s.charAt(i);
65
+
66
+ if (!has_prev_cmd && first_char != 'M' && first_char != 'm') {
67
+ // The first segment must be a MoveTo.
68
+ throw new IllegalArgumentException(
69
+ String.format("Unexpected character '%c' (i=%d, s=%s)", first_char, i, s));
70
+ }
71
+
72
+ boolean is_implicit_move_to;
73
+ char cmd;
74
+ if (is_cmd(first_char)) {
75
+ is_implicit_move_to = false;
76
+ cmd = first_char;
77
+ i += 1;
78
+ } else if (is_number_start(first_char) && has_prev_cmd) {
79
+ if (prev_cmd == 'Z' || prev_cmd == 'z') {
80
+ // ClosePath cannot be followed by a number.
81
+ throw new IllegalArgumentException(
82
+ String.format("Unexpected number after 'z' (s=%s)", s));
83
+ }
84
+
85
+ if (prev_cmd == 'M' || prev_cmd == 'm') {
86
+ // 'If a moveto is followed by multiple pairs of coordinates,
87
+ // the subsequent pairs are treated as implicit lineto commands.'
88
+ // So we parse them as LineTo.
89
+ is_implicit_move_to = true;
90
+ if (is_absolute(prev_cmd)) {
91
+ cmd = 'L';
92
+ } else {
93
+ cmd = 'l';
94
+ }
95
+ } else {
96
+ is_implicit_move_to = false;
97
+ cmd = prev_cmd;
98
+ }
99
+ } else {
100
+ throw new IllegalArgumentException(
101
+ String.format("Unexpected character '%c' (i=%d, s=%s)", first_char, i, s));
102
+ }
103
+
104
+ boolean absolute = is_absolute(cmd);
105
+ switch (cmd) {
106
+ case 'm':
107
+ {
108
+ move(parse_list_number(), parse_list_number());
109
+ break;
110
+ }
111
+ case 'M':
112
+ {
113
+ moveTo(parse_list_number(), parse_list_number());
114
+ break;
115
+ }
116
+ case 'l':
117
+ {
118
+ line(parse_list_number(), parse_list_number());
119
+ break;
120
+ }
121
+ case 'L':
122
+ {
123
+ lineTo(parse_list_number(), parse_list_number());
124
+ break;
125
+ }
126
+ case 'h':
127
+ {
128
+ line(parse_list_number(), 0);
129
+ break;
130
+ }
131
+ case 'H':
132
+ {
133
+ lineTo(parse_list_number(), mPenY);
134
+ break;
135
+ }
136
+ case 'v':
137
+ {
138
+ line(0, parse_list_number());
139
+ break;
140
+ }
141
+ case 'V':
142
+ {
143
+ lineTo(mPenX, parse_list_number());
144
+ break;
145
+ }
146
+ case 'c':
147
+ {
148
+ curve(
149
+ parse_list_number(),
150
+ parse_list_number(),
151
+ parse_list_number(),
152
+ parse_list_number(),
153
+ parse_list_number(),
154
+ parse_list_number());
155
+ break;
156
+ }
157
+ case 'C':
158
+ {
159
+ curveTo(
160
+ parse_list_number(),
161
+ parse_list_number(),
162
+ parse_list_number(),
163
+ parse_list_number(),
164
+ parse_list_number(),
165
+ parse_list_number());
166
+ break;
167
+ }
168
+ case 's':
169
+ {
170
+ smoothCurve(
171
+ parse_list_number(), parse_list_number(), parse_list_number(), parse_list_number());
172
+ break;
173
+ }
174
+ case 'S':
175
+ {
176
+ smoothCurveTo(
177
+ parse_list_number(), parse_list_number(), parse_list_number(), parse_list_number());
178
+ break;
179
+ }
180
+ case 'q':
181
+ {
182
+ quadraticBezierCurve(
183
+ parse_list_number(), parse_list_number(), parse_list_number(), parse_list_number());
184
+ break;
185
+ }
186
+ case 'Q':
187
+ {
188
+ quadraticBezierCurveTo(
189
+ parse_list_number(), parse_list_number(), parse_list_number(), parse_list_number());
190
+ break;
191
+ }
192
+ case 't':
193
+ {
194
+ smoothQuadraticBezierCurve(parse_list_number(), parse_list_number());
195
+ break;
196
+ }
197
+ case 'T':
198
+ {
199
+ smoothQuadraticBezierCurveTo(parse_list_number(), parse_list_number());
200
+ break;
201
+ }
202
+ case 'a':
203
+ {
204
+ arc(
205
+ parse_list_number(),
206
+ parse_list_number(),
207
+ parse_list_number(),
208
+ parse_flag(),
209
+ parse_flag(),
210
+ parse_list_number(),
211
+ parse_list_number());
212
+ break;
213
+ }
214
+ case 'A':
215
+ {
216
+ arcTo(
217
+ parse_list_number(),
218
+ parse_list_number(),
219
+ parse_list_number(),
220
+ parse_flag(),
221
+ parse_flag(),
222
+ parse_list_number(),
223
+ parse_list_number());
224
+ break;
225
+ }
226
+ case 'z':
227
+ case 'Z':
228
+ {
229
+ close();
230
+ break;
231
+ }
232
+ default:
233
+ {
234
+ throw new IllegalArgumentException(
235
+ String.format("Unexpected comand '%c' (s=%s)", cmd, s));
236
+ }
237
+ }
238
+
239
+ if (is_implicit_move_to) {
240
+ if (absolute) {
241
+ prev_cmd = 'M';
242
+ } else {
243
+ prev_cmd = 'm';
244
+ }
245
+ } else {
246
+ prev_cmd = cmd;
247
+ }
248
+ }
249
+
250
+ Path parsed = mPath;
251
+ mPath = null;
252
+ s = null;
253
+ return parsed;
254
+ }
255
+
256
+ private static void move(float x, float y) {
257
+ moveTo(x + mPenX, y + mPenY);
258
+ }
259
+
260
+ private static void moveTo(float x, float y) {
261
+ mPenDownX = mPivotX = mPenX = x;
262
+ mPenDownY = mPivotY = mPenY = y;
263
+ mPath.moveTo(x * mScale, y * mScale);
264
+ }
265
+
266
+ private static void line(float x, float y) {
267
+ lineTo(x + mPenX, y + mPenY);
268
+ }
269
+
270
+ private static void lineTo(float x, float y) {
271
+ setPenDown();
272
+ mPivotX = mPenX = x;
273
+ mPivotY = mPenY = y;
274
+ mPath.lineTo(x * mScale, y * mScale);
275
+ }
276
+
277
+ private static void curve(float c1x, float c1y, float c2x, float c2y, float ex, float ey) {
278
+ curveTo(c1x + mPenX, c1y + mPenY, c2x + mPenX, c2y + mPenY, ex + mPenX, ey + mPenY);
279
+ }
280
+
281
+ private static void curveTo(float c1x, float c1y, float c2x, float c2y, float ex, float ey) {
282
+ mPivotX = c2x;
283
+ mPivotY = c2y;
284
+ cubicTo(c1x, c1y, c2x, c2y, ex, ey);
285
+ }
286
+
287
+ private static void cubicTo(float c1x, float c1y, float c2x, float c2y, float ex, float ey) {
288
+ setPenDown();
289
+ mPenX = ex;
290
+ mPenY = ey;
291
+ mPath.cubicTo(c1x * mScale, c1y * mScale, c2x * mScale, c2y * mScale, ex * mScale, ey * mScale);
292
+ }
293
+
294
+ private static void smoothCurve(float c1x, float c1y, float ex, float ey) {
295
+ smoothCurveTo(c1x + mPenX, c1y + mPenY, ex + mPenX, ey + mPenY);
296
+ }
297
+
298
+ private static void smoothCurveTo(float c1x, float c1y, float ex, float ey) {
299
+ float c2x = c1x;
300
+ float c2y = c1y;
301
+ c1x = (mPenX * 2) - mPivotX;
302
+ c1y = (mPenY * 2) - mPivotY;
303
+ mPivotX = c2x;
304
+ mPivotY = c2y;
305
+ cubicTo(c1x, c1y, c2x, c2y, ex, ey);
306
+ }
307
+
308
+ private static void quadraticBezierCurve(float c1x, float c1y, float c2x, float c2y) {
309
+ quadraticBezierCurveTo(c1x + mPenX, c1y + mPenY, c2x + mPenX, c2y + mPenY);
310
+ }
311
+
312
+ private static void quadraticBezierCurveTo(float c1x, float c1y, float c2x, float c2y) {
313
+ mPivotX = c1x;
314
+ mPivotY = c1y;
315
+ float ex = c2x;
316
+ float ey = c2y;
317
+ c2x = (ex + c1x * 2) / 3;
318
+ c2y = (ey + c1y * 2) / 3;
319
+ c1x = (mPenX + c1x * 2) / 3;
320
+ c1y = (mPenY + c1y * 2) / 3;
321
+ cubicTo(c1x, c1y, c2x, c2y, ex, ey);
322
+ }
323
+
324
+ private static void smoothQuadraticBezierCurve(float c1x, float c1y) {
325
+ smoothQuadraticBezierCurveTo(c1x + mPenX, c1y + mPenY);
326
+ }
327
+
328
+ private static void smoothQuadraticBezierCurveTo(float c1x, float c1y) {
329
+ float c2x = c1x;
330
+ float c2y = c1y;
331
+ c1x = (mPenX * 2) - mPivotX;
332
+ c1y = (mPenY * 2) - mPivotY;
333
+ quadraticBezierCurveTo(c1x, c1y, c2x, c2y);
334
+ }
335
+
336
+ private static void arc(
337
+ float rx, float ry, float rotation, boolean outer, boolean clockwise, float x, float y) {
338
+ arcTo(rx, ry, rotation, outer, clockwise, x + mPenX, y + mPenY);
339
+ }
340
+
341
+ private static void arcTo(
342
+ float rx, float ry, float rotation, boolean outer, boolean clockwise, float x, float y) {
343
+ float tX = mPenX;
344
+ float tY = mPenY;
345
+
346
+ ry = Math.abs(ry == 0 ? (rx == 0 ? (y - tY) : rx) : ry);
347
+ rx = Math.abs(rx == 0 ? (x - tX) : rx);
348
+
349
+ if (rx == 0 || ry == 0 || (x == tX && y == tY)) {
350
+ lineTo(x, y);
351
+ return;
352
+ }
353
+
354
+ float rad = (float) Math.toRadians(rotation);
355
+ float cos = (float) Math.cos(rad);
356
+ float sin = (float) Math.sin(rad);
357
+ x -= tX;
358
+ y -= tY;
359
+
360
+ // Ellipse Center
361
+ float cx = cos * x / 2 + sin * y / 2;
362
+ float cy = -sin * x / 2 + cos * y / 2;
363
+ float rxry = rx * rx * ry * ry;
364
+ float rycx = ry * ry * cx * cx;
365
+ float rxcy = rx * rx * cy * cy;
366
+ float a = rxry - rxcy - rycx;
367
+
368
+ if (a < 0) {
369
+ a = (float) Math.sqrt(1 - a / rxry);
370
+ rx *= a;
371
+ ry *= a;
372
+ cx = x / 2;
373
+ cy = y / 2;
374
+ } else {
375
+ a = (float) Math.sqrt(a / (rxcy + rycx));
376
+
377
+ if (outer == clockwise) {
378
+ a = -a;
379
+ }
380
+ float cxd = -a * cy * rx / ry;
381
+ float cyd = a * cx * ry / rx;
382
+ cx = cos * cxd - sin * cyd + x / 2;
383
+ cy = sin * cxd + cos * cyd + y / 2;
384
+ }
385
+
386
+ // Rotation + Scale Transform
387
+ float xx = cos / rx;
388
+ float yx = sin / rx;
389
+ float xy = -sin / ry;
390
+ float yy = cos / ry;
391
+
392
+ // Start and End Angle
393
+ float sa = (float) Math.atan2(xy * -cx + yy * -cy, xx * -cx + yx * -cy);
394
+ float ea = (float) Math.atan2(xy * (x - cx) + yy * (y - cy), xx * (x - cx) + yx * (y - cy));
395
+
396
+ cx += tX;
397
+ cy += tY;
398
+ x += tX;
399
+ y += tY;
400
+
401
+ setPenDown();
402
+
403
+ mPenX = mPivotX = x;
404
+ mPenY = mPivotY = y;
405
+
406
+ if (rx != ry || rad != 0f) {
407
+ arcToBezier(cx, cy, rx, ry, sa, ea, clockwise, rad);
408
+ } else {
409
+
410
+ float start = (float) Math.toDegrees(sa);
411
+ float end = (float) Math.toDegrees(ea);
412
+ float sweep = Math.abs((start - end) % 360);
413
+
414
+ if (outer) {
415
+ if (sweep < 180) {
416
+ sweep = 360 - sweep;
417
+ }
418
+ } else {
419
+ if (sweep > 180) {
420
+ sweep = 360 - sweep;
421
+ }
422
+ }
423
+
424
+ if (!clockwise) {
425
+ sweep = -sweep;
426
+ }
427
+
428
+ RectF oval =
429
+ new RectF((cx - rx) * mScale, (cy - rx) * mScale, (cx + rx) * mScale, (cy + rx) * mScale);
430
+
431
+ mPath.arcTo(oval, start, sweep);
432
+ }
433
+ }
434
+
435
+ private static void close() {
436
+ if (mPenDown) {
437
+ mPenX = mPenDownX;
438
+ mPenY = mPenDownY;
439
+ mPenDown = false;
440
+ mPath.close();
441
+ }
442
+ }
443
+
444
+ private static void arcToBezier(
445
+ float cx, float cy, float rx, float ry, float sa, float ea, boolean clockwise, float rad) {
446
+ // Inverse Rotation + Scale Transform
447
+ float cos = (float) Math.cos(rad);
448
+ float sin = (float) Math.sin(rad);
449
+ float xx = cos * rx;
450
+ float yx = -sin * ry;
451
+ float xy = sin * rx;
452
+ float yy = cos * ry;
453
+
454
+ // Bezier Curve Approximation
455
+ float arc = ea - sa;
456
+ if (arc < 0 && clockwise) {
457
+ arc += Math.PI * 2;
458
+ } else if (arc > 0 && !clockwise) {
459
+ arc -= Math.PI * 2;
460
+ }
461
+
462
+ int n = (int) Math.ceil(Math.abs(round(arc / (Math.PI / 2))));
463
+
464
+ float step = arc / n;
465
+ float k = (float) ((4 / 3.0) * Math.tan(step / 4));
466
+
467
+ float x = (float) Math.cos(sa);
468
+ float y = (float) Math.sin(sa);
469
+
470
+ for (int i = 0; i < n; i++) {
471
+ float cp1x = x - k * y;
472
+ float cp1y = y + k * x;
473
+
474
+ sa += step;
475
+ x = (float) Math.cos(sa);
476
+ y = (float) Math.sin(sa);
477
+
478
+ float cp2x = x + k * y;
479
+ float cp2y = y - k * x;
480
+
481
+ float c1x = (cx + xx * cp1x + yx * cp1y);
482
+ float c1y = (cy + xy * cp1x + yy * cp1y);
483
+ float c2x = (cx + xx * cp2x + yx * cp2y);
484
+ float c2y = (cy + xy * cp2x + yy * cp2y);
485
+ float ex = (cx + xx * x + yx * y);
486
+ float ey = (cy + xy * x + yy * y);
487
+
488
+ mPath.cubicTo(
489
+ c1x * mScale, c1y * mScale, c2x * mScale, c2y * mScale, ex * mScale, ey * mScale);
490
+ }
491
+ }
492
+
493
+ private static void setPenDown() {
494
+ if (!mPenDown) {
495
+ mPenDownX = mPenX;
496
+ mPenDownY = mPenY;
497
+ mPenDown = true;
498
+ }
499
+ }
500
+
501
+ private static double round(double val) {
502
+ double multiplier = Math.pow(10, 4);
503
+ return Math.round(val * multiplier) / multiplier;
504
+ }
505
+
506
+ private static void skip_spaces() {
507
+ while (i < l && Character.isWhitespace(s.charAt(i))) i++;
508
+ }
509
+
510
+ private static boolean is_cmd(char c) {
511
+ switch (c) {
512
+ case 'M':
513
+ case 'm':
514
+ case 'Z':
515
+ case 'z':
516
+ case 'L':
517
+ case 'l':
518
+ case 'H':
519
+ case 'h':
520
+ case 'V':
521
+ case 'v':
522
+ case 'C':
523
+ case 'c':
524
+ case 'S':
525
+ case 's':
526
+ case 'Q':
527
+ case 'q':
528
+ case 'T':
529
+ case 't':
530
+ case 'A':
531
+ case 'a':
532
+ return true;
533
+ }
534
+ return false;
535
+ }
536
+
537
+ private static boolean is_number_start(char c) {
538
+ return (c >= '0' && c <= '9') || c == '.' || c == '-' || c == '+';
539
+ }
540
+
541
+ private static boolean is_absolute(char c) {
542
+ return Character.isUpperCase(c);
543
+ }
544
+
545
+ // By the SVG spec 'large-arc' and 'sweep' must contain only one char
546
+ // and can be written without any separators, e.g.: 10 20 30 01 10 20.
547
+ private static boolean parse_flag() {
548
+ skip_spaces();
549
+
550
+ char c = s.charAt(i);
551
+ switch (c) {
552
+ case '0':
553
+ case '1':
554
+ {
555
+ i += 1;
556
+ if (i < l && s.charAt(i) == ',') {
557
+ i += 1;
558
+ }
559
+ skip_spaces();
560
+ break;
561
+ }
562
+ default:
563
+ throw new IllegalArgumentException(
564
+ String.format("Unexpected flag '%c' (i=%d, s=%s)", c, i, s));
565
+ }
566
+
567
+ return c == '1';
568
+ }
569
+
570
+ private static float parse_list_number() {
571
+ if (i == l) {
572
+ throw new IllegalArgumentException(String.format("Unexpected end (s=%s)", s));
573
+ }
574
+
575
+ float n = parse_number();
576
+ skip_spaces();
577
+ parse_list_separator();
578
+
579
+ return n;
580
+ }
581
+
582
+ private static float parse_number() {
583
+ // Strip off leading whitespaces.
584
+ skip_spaces();
585
+
586
+ if (i == l) {
587
+ throw new IllegalArgumentException(String.format("Unexpected end (s=%s)", s));
588
+ }
589
+
590
+ int start = i;
591
+
592
+ char c = s.charAt(i);
593
+
594
+ // Consume sign.
595
+ if (c == '-' || c == '+') {
596
+ i += 1;
597
+ c = s.charAt(i);
598
+ }
599
+
600
+ // Consume integer.
601
+ if (c >= '0' && c <= '9') {
602
+ skip_digits();
603
+ if (i < l) {
604
+ c = s.charAt(i);
605
+ }
606
+ } else if (c != '.') {
607
+ throw new IllegalArgumentException(
608
+ String.format("Invalid number formating character '%c' (i=%d, s=%s)", c, i, s));
609
+ }
610
+
611
+ // Consume fraction.
612
+ if (c == '.') {
613
+ i += 1;
614
+ skip_digits();
615
+ if (i < l) {
616
+ c = s.charAt(i);
617
+ }
618
+ }
619
+
620
+ if ((c == 'e' || c == 'E') && i + 1 < l) {
621
+ char c2 = s.charAt(i + 1);
622
+ // Check for `em`/`ex`.
623
+ if (c2 != 'm' && c2 != 'x') {
624
+ i += 1;
625
+ c = s.charAt(i);
626
+
627
+ if (c == '+' || c == '-') {
628
+ i += 1;
629
+ skip_digits();
630
+ } else if (c >= '0' && c <= '9') {
631
+ skip_digits();
632
+ } else {
633
+ throw new IllegalArgumentException(
634
+ String.format("Invalid number formating character '%c' (i=%d, s=%s)", c, i, s));
635
+ }
636
+ }
637
+ }
638
+
639
+ String num = s.substring(start, i);
640
+ float n = Float.parseFloat(num);
641
+
642
+ // inf, nan, etc. are an error.
643
+ if (Float.isInfinite(n) || Float.isNaN(n)) {
644
+ throw new IllegalArgumentException(
645
+ String.format("Invalid number '%s' (start=%d, i=%d, s=%s)", num, start, i, s));
646
+ }
647
+
648
+ return n;
649
+ }
650
+
651
+ private static void parse_list_separator() {
652
+ if (i < l && s.charAt(i) == ',') {
653
+ i += 1;
654
+ }
655
+ }
656
+
657
+ private static void skip_digits() {
658
+ while (i < l && Character.isDigit(s.charAt(i))) i++;
659
+ }
660
+ }
@@ -32,7 +32,7 @@ The classification is an EQUALITY in `src/__tests__/adoption-matrix.test.ts`, no
32
32
 
33
33
  ## Totals
34
34
 
35
- - **237 families** in `src/`, **236** published (a subpath, the root barrel, or both). **66** carry a web fork.
35
+ - **234 families** in `src/`, **233** published (a subpath, the root barrel, or both). **66** carry a web fork.
36
36
  - Docs, stories and suites are gated as a standard by `src/__tests__/family-coverage.test.ts`; the table below says which families have each.
37
37
 
38
38
  | contract | applies to | reads | delegated | n/a¹ | adaptation |
@@ -142,7 +142,6 @@ None.
142
142
  | `chat-screen` | `@oxy.so/bloom/chat-screen` + barrel | web fork | `chat-screen.mdx` | yes | yes | | reads | | reads |
143
143
  | `checkbox` | `@oxy.so/bloom/checkbox` + barrel | universal | `checkbox.mdx` | yes | yes | reads | reads | | reads |
144
144
  | `checkout-sheet` | `@oxy.so/bloom/checkout-sheet` + barrel | universal | `checkout-sheet.mdx` | yes | yes | | | | |
145
- | `checkout-summary` | `@oxy.so/bloom/checkout-summary` + barrel | universal | `checkout-summary.mdx` | yes | yes | | | | |
146
145
  | `chip` | `@oxy.so/bloom/chip` + barrel | universal | `chip.mdx` | yes | yes | | reads | | |
147
146
  | `choice-list` | `@oxy.so/bloom/choice-list` + barrel | universal | `choice-list.mdx` | yes | yes | | | | |
148
147
  | `code` | `@oxy.so/bloom/code` + barrel | universal | `code.mdx` | yes | yes | | | | |
@@ -238,7 +237,6 @@ None.
238
237
  | `notification-center` | `@oxy.so/bloom/notification-center` + barrel | web fork | `notification-center.mdx` | yes | yes | | | | reads |
239
238
  | `notifications` | `@oxy.so/bloom/notifications` + barrel | universal | `notifications.mdx` | yes | yes | | | | |
240
239
  | `offering-badge` | `@oxy.so/bloom/offering-badge` + barrel | universal | `offering-badge.mdx` | yes | yes | | reads | | |
241
- | `order-confirmation` | `@oxy.so/bloom/order-confirmation` + barrel | universal | `order-confirmation.mdx` | yes | yes | | | | |
242
240
  | `order-status` | `@oxy.so/bloom/order-status` + barrel | universal | `order-status.mdx` | yes | yes | | | | |
243
241
  | `outline-nav` | `@oxy.so/bloom/outline-nav` + barrel | universal | `outline-nav.mdx` | yes | yes | | | | |
244
242
  | `overlay` | `@oxy.so/bloom/overlay` + barrel | universal | `overlay.mdx` | yes | yes | | reads | | |
@@ -320,7 +318,6 @@ None.
320
318
  | `typography` | `@oxy.so/bloom/typography` + barrel | universal | `typography.mdx` | yes | yes | | | | |
321
319
  | `usage-card` | `@oxy.so/bloom/usage-card` + barrel | universal | `usage-card.mdx` | yes | yes | | | | reads |
322
320
  | `user-hover-card` | `@oxy.so/bloom/user-hover-card` + barrel | universal | `user-hover-card.mdx` | yes | yes | | | | |
323
- | `vendor-card` | `@oxy.so/bloom/vendor-card` + barrel | universal | `vendor-card.mdx` | yes | yes | | | | |
324
321
  | `video-playback` | `@oxy.so/bloom/video-playback` + barrel | universal | `video-playback.mdx` | yes | yes | | | | |
325
322
  | `video-view` | `@oxy.so/bloom/video-view` | universal | `video-view.mdx` | yes | yes | | | | |
326
323
  | `viewport` | `@oxy.so/bloom/viewport` + barrel | web fork | `viewport.mdx` | yes | yes | | | | |
@@ -105,7 +105,7 @@ the element JSX with the reason `Node:prop`.
105
105
  | `Tabs` with its `TabsTrigger`s | `Tabs([value, set], TabItem(value, label).count(n)…).style(variant)` |
106
106
  | `SegmentedControl` with its `SegmentedControlItem`s (each its `SegmentedControlItemText`) | `Segmented([value, set], Option(value, text)…)`, `type="tabs"` its `.tabs()` |
107
107
  | `SettingsSelect`, `AvatarGroup`, `List` | `SettingsSelect(label, [value, onChange], items)`, `AvatarGroup(items)`, `List(items).headerContent().emptyState()` |
108
- | `VirtualList` | `VirtualList(data, ({ item, index }) => row).itemKey().onEndReached(action, threshold).stickyIndices().screen().scrollbar().keyboardTaps().scrollDismissesKeyboard().tuning({ overscan, … })` |
108
+ | `VirtualList` | `VirtualList(data, ({ item, index }) => row).itemKey().itemLayout().onEndReached(action, threshold).stickyIndices().headerFitsContent().screen().scrollbar().keyboardTaps().scrollDismissesKeyboard().tuning({ overscan, … })` |
109
109
  | `ChatSearchField` | `ChatSearchField([value, onChangeText], { placeholder, clearLabel, onClear, onSubmit, onFocus, onBlur, trailing, autoFocus })` |
110
110
  | `Dialog` with `open` and `onClose` | `Dialog(...children).title().message().label().buttons().presentAt(base, tiers).header().footer().frame({ width, maxWidth }).padding().sideGutter().maxHeightRatio().dismissOnBackdrop().scrollable().presented([open, () => onClose()])` |
111
111
 
@@ -224,7 +224,11 @@ A `VirtualList`'s is moved alike. Its `ListHeaderComponent`,
224
224
  `const` holding an element, what a render function returns (`renderEmpty()`:
225
225
  a lowercase callee, as a component is never called) embedded, or an element or
226
226
  none chosen by a plain condition (`loading ? <Spinner /> : null`); a bare name
227
- may be a component and stays a reason. A `Dialog`'s `onDismissed` is
227
+ may be a component and stays a reason. Its `overrideItemLayout` is
228
+ `.itemLayout(handler)`, as written, and a `ListHeaderComponentStyle` of exactly
229
+ `{ flexGrow: 0, flexShrink: 0, alignSelf: 'stretch' }` (an object literal or a
230
+ module constant) is `.headerFitsContent()`; any other header style is a reason.
231
+ A `Dialog`'s `onDismissed` is
228
232
  `.onDismissed(handler)`.
229
233
  A static `contentContainerClassName` is `.contentView((v) => v…)`, the scroll
230
234
  view's content view: Bloom lays the class out in a view of its own inside the