@oxy.so/bloom 23.3.0 → 23.3.1

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 (880) hide show
  1. package/docs/admonition.mdx +1 -2
  2. package/docs/adoption-matrix.mdx +3 -12
  3. package/docs/bloom-language-modifiers.mdx +9 -48
  4. package/docs/bloom-language-nodes.mdx +2 -195
  5. package/docs/bloom-language-tokens.mdx +2 -2
  6. package/docs/bloom-language.mdx +18 -56
  7. package/docs/empty-state.mdx +1 -2
  8. package/docs/fab.mdx +5 -3
  9. package/docs/field.mdx +1 -1
  10. package/docs/public-parts.mdx +2 -18
  11. package/docs/screen.mdx +10 -0
  12. package/docs/scroll.mdx +7 -0
  13. package/docs/task-catalog.json +1 -1
  14. package/docs/task-catalog.mdx +1 -1
  15. package/lib/commonjs/button/Button.web.js +5 -2
  16. package/lib/commonjs/button/Button.web.js.map +1 -1
  17. package/lib/commonjs/button/shared.js.map +1 -1
  18. package/lib/commonjs/chat-composer/shared.js.map +1 -1
  19. package/lib/commonjs/chat-people/StoryViewer.js +2 -1
  20. package/lib/commonjs/chat-people/StoryViewer.js.map +1 -1
  21. package/lib/commonjs/date-picker/PickerShell.js +2 -1
  22. package/lib/commonjs/date-picker/PickerShell.js.map +1 -1
  23. package/lib/commonjs/dialog/DetailDialogMotion.js +10 -4
  24. package/lib/commonjs/dialog/DetailDialogMotion.js.map +1 -1
  25. package/lib/commonjs/fab/constants.js +5 -2
  26. package/lib/commonjs/fab/constants.js.map +1 -1
  27. package/lib/commonjs/fab/index.js +6 -0
  28. package/lib/commonjs/fab/index.js.map +1 -1
  29. package/lib/commonjs/fab/index.web.js +6 -0
  30. package/lib/commonjs/fab/index.web.js.map +1 -1
  31. package/lib/commonjs/fab/use-fab-props.js +1 -1
  32. package/lib/commonjs/fab/use-fab-props.js.map +1 -1
  33. package/lib/commonjs/field/FieldConstraintScope.js +2 -2
  34. package/lib/commonjs/floating/lens/lens-button-host.js +2 -1
  35. package/lib/commonjs/floating/lens/lens-button-host.js.map +1 -1
  36. package/lib/commonjs/floating/lens/lens-tint.js +19 -0
  37. package/lib/commonjs/floating/lens/lens-tint.js.map +1 -0
  38. package/lib/commonjs/floating/lens/use-lens-menu.js +2 -1
  39. package/lib/commonjs/floating/lens/use-lens-menu.js.map +1 -1
  40. package/lib/commonjs/index.js +229 -866
  41. package/lib/commonjs/index.js.map +1 -1
  42. package/lib/commonjs/index.web.js +229 -866
  43. package/lib/commonjs/index.web.js.map +1 -1
  44. package/lib/commonjs/listing-actions/ApplicationChecklist.js.map +1 -1
  45. package/lib/commonjs/locale/translations/ar.js +0 -262
  46. package/lib/commonjs/locale/translations/ar.js.map +1 -1
  47. package/lib/commonjs/locale/translations/bn.js +0 -234
  48. package/lib/commonjs/locale/translations/bn.js.map +1 -1
  49. package/lib/commonjs/locale/translations/ca.js +0 -249
  50. package/lib/commonjs/locale/translations/ca.js.map +1 -1
  51. package/lib/commonjs/locale/translations/de.js +0 -246
  52. package/lib/commonjs/locale/translations/de.js.map +1 -1
  53. package/lib/commonjs/locale/translations/es.js +0 -249
  54. package/lib/commonjs/locale/translations/es.js.map +1 -1
  55. package/lib/commonjs/locale/translations/fr.js +0 -249
  56. package/lib/commonjs/locale/translations/fr.js.map +1 -1
  57. package/lib/commonjs/locale/translations/hi.js +0 -240
  58. package/lib/commonjs/locale/translations/hi.js.map +1 -1
  59. package/lib/commonjs/locale/translations/id.js +0 -234
  60. package/lib/commonjs/locale/translations/id.js.map +1 -1
  61. package/lib/commonjs/locale/translations/it.js +0 -249
  62. package/lib/commonjs/locale/translations/it.js.map +1 -1
  63. package/lib/commonjs/locale/translations/ja.js +0 -234
  64. package/lib/commonjs/locale/translations/ja.js.map +1 -1
  65. package/lib/commonjs/locale/translations/pt.js +0 -249
  66. package/lib/commonjs/locale/translations/pt.js.map +1 -1
  67. package/lib/commonjs/locale/translations/ru.js +0 -259
  68. package/lib/commonjs/locale/translations/ru.js.map +1 -1
  69. package/lib/commonjs/locale/translations/tr.js +0 -238
  70. package/lib/commonjs/locale/translations/tr.js.map +1 -1
  71. package/lib/commonjs/locale/translations/zh.js +0 -234
  72. package/lib/commonjs/locale/translations/zh.js.map +1 -1
  73. package/lib/commonjs/overlay/Overlay.js +13 -22
  74. package/lib/commonjs/overlay/Overlay.js.map +1 -1
  75. package/lib/commonjs/panel-routing/expo-router/StackScene.js +42 -3
  76. package/lib/commonjs/panel-routing/expo-router/StackScene.js.map +1 -1
  77. package/lib/commonjs/queue-panel/QueueIconButton.js.map +1 -1
  78. package/lib/commonjs/screen/index.js +7 -0
  79. package/lib/commonjs/screen/index.js.map +1 -1
  80. package/lib/commonjs/screen/index.web.js +7 -0
  81. package/lib/commonjs/screen/index.web.js.map +1 -1
  82. package/lib/commonjs/screen/use-screen-entered.js +28 -0
  83. package/lib/commonjs/screen/use-screen-entered.js.map +1 -0
  84. package/lib/commonjs/screen/use-screen-scroll.js +21 -2
  85. package/lib/commonjs/screen/use-screen-scroll.js.map +1 -1
  86. package/lib/commonjs/sidebar/Sidebar.js +18 -9
  87. package/lib/commonjs/sidebar/Sidebar.js.map +1 -1
  88. package/lib/commonjs/tab-pager/expo-router/TabPager.js +18 -13
  89. package/lib/commonjs/tab-pager/expo-router/TabPager.js.map +1 -1
  90. package/lib/commonjs/tabs/expo-router/RouterTabs.js.map +1 -1
  91. package/lib/commonjs/toast/ToastHost.js +1 -0
  92. package/lib/commonjs/toast/ToastHost.js.map +1 -1
  93. package/lib/commonjs/toast/ToastHost.native.js +1 -0
  94. package/lib/commonjs/toast/ToastHost.native.js.map +1 -1
  95. package/lib/module/button/Button.web.js +6 -3
  96. package/lib/module/button/Button.web.js.map +1 -1
  97. package/lib/module/button/shared.js.map +1 -1
  98. package/lib/module/chat-composer/shared.js.map +1 -1
  99. package/lib/module/chat-people/StoryViewer.js +1 -2
  100. package/lib/module/chat-people/StoryViewer.js.map +1 -1
  101. package/lib/module/date-picker/PickerShell.js +1 -2
  102. package/lib/module/date-picker/PickerShell.js.map +1 -1
  103. package/lib/module/dialog/DetailDialogMotion.js +11 -5
  104. package/lib/module/dialog/DetailDialogMotion.js.map +1 -1
  105. package/lib/module/fab/constants.js +4 -1
  106. package/lib/module/fab/constants.js.map +1 -1
  107. package/lib/module/fab/index.js +1 -1
  108. package/lib/module/fab/index.js.map +1 -1
  109. package/lib/module/fab/index.web.js +1 -1
  110. package/lib/module/fab/index.web.js.map +1 -1
  111. package/lib/module/fab/use-fab-props.js +2 -2
  112. package/lib/module/fab/use-fab-props.js.map +1 -1
  113. package/lib/module/field/FieldConstraintScope.js +2 -2
  114. package/lib/module/floating/lens/lens-button-host.js +2 -1
  115. package/lib/module/floating/lens/lens-button-host.js.map +1 -1
  116. package/lib/module/floating/lens/lens-tint.js +15 -0
  117. package/lib/module/floating/lens/lens-tint.js.map +1 -0
  118. package/lib/module/floating/lens/use-lens-menu.js +2 -1
  119. package/lib/module/floating/lens/use-lens-menu.js.map +1 -1
  120. package/lib/module/index.js +0 -23
  121. package/lib/module/index.js.map +1 -1
  122. package/lib/module/index.web.js +0 -23
  123. package/lib/module/index.web.js.map +1 -1
  124. package/lib/module/listing-actions/ApplicationChecklist.js.map +1 -1
  125. package/lib/module/locale/translations/ar.js +0 -262
  126. package/lib/module/locale/translations/ar.js.map +1 -1
  127. package/lib/module/locale/translations/bn.js +0 -234
  128. package/lib/module/locale/translations/bn.js.map +1 -1
  129. package/lib/module/locale/translations/ca.js +0 -249
  130. package/lib/module/locale/translations/ca.js.map +1 -1
  131. package/lib/module/locale/translations/de.js +0 -246
  132. package/lib/module/locale/translations/de.js.map +1 -1
  133. package/lib/module/locale/translations/es.js +0 -249
  134. package/lib/module/locale/translations/es.js.map +1 -1
  135. package/lib/module/locale/translations/fr.js +0 -249
  136. package/lib/module/locale/translations/fr.js.map +1 -1
  137. package/lib/module/locale/translations/hi.js +0 -240
  138. package/lib/module/locale/translations/hi.js.map +1 -1
  139. package/lib/module/locale/translations/id.js +0 -234
  140. package/lib/module/locale/translations/id.js.map +1 -1
  141. package/lib/module/locale/translations/it.js +0 -249
  142. package/lib/module/locale/translations/it.js.map +1 -1
  143. package/lib/module/locale/translations/ja.js +0 -234
  144. package/lib/module/locale/translations/ja.js.map +1 -1
  145. package/lib/module/locale/translations/pt.js +0 -249
  146. package/lib/module/locale/translations/pt.js.map +1 -1
  147. package/lib/module/locale/translations/ru.js +0 -259
  148. package/lib/module/locale/translations/ru.js.map +1 -1
  149. package/lib/module/locale/translations/tr.js +0 -238
  150. package/lib/module/locale/translations/tr.js.map +1 -1
  151. package/lib/module/locale/translations/zh.js +0 -234
  152. package/lib/module/locale/translations/zh.js.map +1 -1
  153. package/lib/module/overlay/Overlay.js +13 -22
  154. package/lib/module/overlay/Overlay.js.map +1 -1
  155. package/lib/module/panel-routing/expo-router/StackScene.js +42 -4
  156. package/lib/module/panel-routing/expo-router/StackScene.js.map +1 -1
  157. package/lib/module/queue-panel/QueueIconButton.js.map +1 -1
  158. package/lib/module/screen/index.js +1 -0
  159. package/lib/module/screen/index.js.map +1 -1
  160. package/lib/module/screen/index.web.js +1 -0
  161. package/lib/module/screen/index.web.js.map +1 -1
  162. package/lib/module/screen/use-screen-entered.js +24 -0
  163. package/lib/module/screen/use-screen-entered.js.map +1 -0
  164. package/lib/module/screen/use-screen-scroll.js +21 -2
  165. package/lib/module/screen/use-screen-scroll.js.map +1 -1
  166. package/lib/module/sidebar/Sidebar.js +18 -9
  167. package/lib/module/sidebar/Sidebar.js.map +1 -1
  168. package/lib/module/tab-pager/expo-router/TabPager.js +19 -14
  169. package/lib/module/tab-pager/expo-router/TabPager.js.map +1 -1
  170. package/lib/module/tabs/expo-router/RouterTabs.js.map +1 -1
  171. package/lib/module/toast/ToastHost.js +1 -0
  172. package/lib/module/toast/ToastHost.js.map +1 -1
  173. package/lib/module/toast/ToastHost.native.js +1 -0
  174. package/lib/module/toast/ToastHost.native.js.map +1 -1
  175. package/lib/typescript/commonjs/agent-reply/types.d.ts +2 -2
  176. package/lib/typescript/commonjs/agent-reply/types.d.ts.map +1 -1
  177. package/lib/typescript/commonjs/badge/types.d.ts +1 -1
  178. package/lib/typescript/commonjs/badge/types.d.ts.map +1 -1
  179. package/lib/typescript/commonjs/breadcrumb/types.d.ts +3 -2
  180. package/lib/typescript/commonjs/breadcrumb/types.d.ts.map +1 -1
  181. package/lib/typescript/commonjs/button/Button.web.d.ts.map +1 -1
  182. package/lib/typescript/commonjs/button/shared.d.ts +3 -2
  183. package/lib/typescript/commonjs/button/shared.d.ts.map +1 -1
  184. package/lib/typescript/commonjs/button/types.d.ts +3 -3
  185. package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
  186. package/lib/typescript/commonjs/carousel/types.d.ts +3 -2
  187. package/lib/typescript/commonjs/carousel/types.d.ts.map +1 -1
  188. package/lib/typescript/commonjs/chat-composer/shared.d.ts +4 -3
  189. package/lib/typescript/commonjs/chat-composer/shared.d.ts.map +1 -1
  190. package/lib/typescript/commonjs/chat-composer/types.d.ts +9 -9
  191. package/lib/typescript/commonjs/chat-composer/types.d.ts.map +1 -1
  192. package/lib/typescript/commonjs/chat-people/StoryViewer.d.ts.map +1 -1
  193. package/lib/typescript/commonjs/date-picker/PickerShell.d.ts +2 -2
  194. package/lib/typescript/commonjs/date-picker/PickerShell.d.ts.map +1 -1
  195. package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts.map +1 -1
  196. package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
  197. package/lib/typescript/commonjs/fab/constants.d.ts +3 -1
  198. package/lib/typescript/commonjs/fab/constants.d.ts.map +1 -1
  199. package/lib/typescript/commonjs/fab/index.d.ts +1 -1
  200. package/lib/typescript/commonjs/fab/index.d.ts.map +1 -1
  201. package/lib/typescript/commonjs/fab/index.web.d.ts +1 -1
  202. package/lib/typescript/commonjs/fab/index.web.d.ts.map +1 -1
  203. package/lib/typescript/commonjs/fab/types.d.ts +2 -2
  204. package/lib/typescript/commonjs/fab/use-fab-props.d.ts.map +1 -1
  205. package/lib/typescript/commonjs/field/FieldConstraintScope.d.ts +2 -2
  206. package/lib/typescript/commonjs/floating/lens/lens-button-host.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/floating/lens/lens-tint.d.ts +13 -0
  208. package/lib/typescript/commonjs/floating/lens/lens-tint.d.ts.map +1 -0
  209. package/lib/typescript/commonjs/floating/lens/use-lens-menu.d.ts.map +1 -1
  210. package/lib/typescript/commonjs/home-search/types.d.ts +1 -1
  211. package/lib/typescript/commonjs/home-search/types.d.ts.map +1 -1
  212. package/lib/typescript/commonjs/index.d.ts +0 -21
  213. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  214. package/lib/typescript/commonjs/index.web.d.ts +0 -21
  215. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  216. package/lib/typescript/commonjs/listing-actions/ApplicationChecklist.d.ts.map +1 -1
  217. package/lib/typescript/commonjs/listing-actions/types.d.ts +2 -2
  218. package/lib/typescript/commonjs/listing-actions/types.d.ts.map +1 -1
  219. package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
  220. package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
  222. package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
  223. package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
  224. package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
  225. package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
  226. package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
  227. package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
  228. package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
  230. package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
  232. package/lib/typescript/commonjs/locale/translations/types.d.ts +0 -14
  233. package/lib/typescript/commonjs/locale/translations/types.d.ts.map +1 -1
  234. package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/overlay/Overlay.d.ts +1 -1
  236. package/lib/typescript/commonjs/overlay/Overlay.d.ts.map +1 -1
  237. package/lib/typescript/commonjs/overlay/types.d.ts +10 -0
  238. package/lib/typescript/commonjs/overlay/types.d.ts.map +1 -1
  239. package/lib/typescript/commonjs/page-header/types.d.ts +1 -1
  240. package/lib/typescript/commonjs/page-header/types.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts +32 -5
  242. package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/queue-panel/QueueIconButton.d.ts +2 -2
  244. package/lib/typescript/commonjs/queue-panel/QueueIconButton.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/screen/index.d.ts +1 -0
  246. package/lib/typescript/commonjs/screen/index.d.ts.map +1 -1
  247. package/lib/typescript/commonjs/screen/index.web.d.ts +1 -0
  248. package/lib/typescript/commonjs/screen/index.web.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/screen/use-screen-entered.d.ts +16 -0
  250. package/lib/typescript/commonjs/screen/use-screen-entered.d.ts.map +1 -0
  251. package/lib/typescript/commonjs/screen/use-screen-scroll.d.ts +3 -2
  252. package/lib/typescript/commonjs/screen/use-screen-scroll.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/sidebar/Sidebar.d.ts.map +1 -1
  254. package/lib/typescript/commonjs/sidebar/types.d.ts +9 -9
  255. package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
  256. package/lib/typescript/commonjs/stay-search/types.d.ts +3 -3
  257. package/lib/typescript/commonjs/stay-search/types.d.ts.map +1 -1
  258. package/lib/typescript/commonjs/tab-pager/expo-router/TabPager.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/tabs/expo-router/RouterTabs.d.ts +3 -2
  260. package/lib/typescript/commonjs/tabs/expo-router/RouterTabs.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/tabs/types.d.ts +1 -1
  262. package/lib/typescript/commonjs/tabs/types.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/toast/ToastHost.native.d.ts.map +1 -1
  264. package/lib/typescript/module/agent-reply/types.d.ts +2 -2
  265. package/lib/typescript/module/agent-reply/types.d.ts.map +1 -1
  266. package/lib/typescript/module/badge/types.d.ts +1 -1
  267. package/lib/typescript/module/badge/types.d.ts.map +1 -1
  268. package/lib/typescript/module/breadcrumb/types.d.ts +3 -2
  269. package/lib/typescript/module/breadcrumb/types.d.ts.map +1 -1
  270. package/lib/typescript/module/button/Button.web.d.ts.map +1 -1
  271. package/lib/typescript/module/button/shared.d.ts +3 -2
  272. package/lib/typescript/module/button/shared.d.ts.map +1 -1
  273. package/lib/typescript/module/button/types.d.ts +3 -3
  274. package/lib/typescript/module/button/types.d.ts.map +1 -1
  275. package/lib/typescript/module/carousel/types.d.ts +3 -2
  276. package/lib/typescript/module/carousel/types.d.ts.map +1 -1
  277. package/lib/typescript/module/chat-composer/shared.d.ts +4 -3
  278. package/lib/typescript/module/chat-composer/shared.d.ts.map +1 -1
  279. package/lib/typescript/module/chat-composer/types.d.ts +9 -9
  280. package/lib/typescript/module/chat-composer/types.d.ts.map +1 -1
  281. package/lib/typescript/module/chat-people/StoryViewer.d.ts.map +1 -1
  282. package/lib/typescript/module/date-picker/PickerShell.d.ts +2 -2
  283. package/lib/typescript/module/date-picker/PickerShell.d.ts.map +1 -1
  284. package/lib/typescript/module/dialog/DetailDialogMotion.d.ts.map +1 -1
  285. package/lib/typescript/module/dialog/types.d.ts.map +1 -1
  286. package/lib/typescript/module/fab/constants.d.ts +3 -1
  287. package/lib/typescript/module/fab/constants.d.ts.map +1 -1
  288. package/lib/typescript/module/fab/index.d.ts +1 -1
  289. package/lib/typescript/module/fab/index.d.ts.map +1 -1
  290. package/lib/typescript/module/fab/index.web.d.ts +1 -1
  291. package/lib/typescript/module/fab/index.web.d.ts.map +1 -1
  292. package/lib/typescript/module/fab/types.d.ts +2 -2
  293. package/lib/typescript/module/fab/use-fab-props.d.ts.map +1 -1
  294. package/lib/typescript/module/field/FieldConstraintScope.d.ts +2 -2
  295. package/lib/typescript/module/floating/lens/lens-button-host.d.ts.map +1 -1
  296. package/lib/typescript/module/floating/lens/lens-tint.d.ts +13 -0
  297. package/lib/typescript/module/floating/lens/lens-tint.d.ts.map +1 -0
  298. package/lib/typescript/module/floating/lens/use-lens-menu.d.ts.map +1 -1
  299. package/lib/typescript/module/home-search/types.d.ts +1 -1
  300. package/lib/typescript/module/home-search/types.d.ts.map +1 -1
  301. package/lib/typescript/module/index.d.ts +0 -21
  302. package/lib/typescript/module/index.d.ts.map +1 -1
  303. package/lib/typescript/module/index.web.d.ts +0 -21
  304. package/lib/typescript/module/index.web.d.ts.map +1 -1
  305. package/lib/typescript/module/listing-actions/ApplicationChecklist.d.ts.map +1 -1
  306. package/lib/typescript/module/listing-actions/types.d.ts +2 -2
  307. package/lib/typescript/module/listing-actions/types.d.ts.map +1 -1
  308. package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
  309. package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
  310. package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
  311. package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
  312. package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
  313. package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
  314. package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
  315. package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
  316. package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
  317. package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
  318. package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
  319. package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
  320. package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
  321. package/lib/typescript/module/locale/translations/types.d.ts +0 -14
  322. package/lib/typescript/module/locale/translations/types.d.ts.map +1 -1
  323. package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
  324. package/lib/typescript/module/overlay/Overlay.d.ts +1 -1
  325. package/lib/typescript/module/overlay/Overlay.d.ts.map +1 -1
  326. package/lib/typescript/module/overlay/types.d.ts +10 -0
  327. package/lib/typescript/module/overlay/types.d.ts.map +1 -1
  328. package/lib/typescript/module/page-header/types.d.ts +1 -1
  329. package/lib/typescript/module/page-header/types.d.ts.map +1 -1
  330. package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts +32 -5
  331. package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts.map +1 -1
  332. package/lib/typescript/module/queue-panel/QueueIconButton.d.ts +2 -2
  333. package/lib/typescript/module/queue-panel/QueueIconButton.d.ts.map +1 -1
  334. package/lib/typescript/module/screen/index.d.ts +1 -0
  335. package/lib/typescript/module/screen/index.d.ts.map +1 -1
  336. package/lib/typescript/module/screen/index.web.d.ts +1 -0
  337. package/lib/typescript/module/screen/index.web.d.ts.map +1 -1
  338. package/lib/typescript/module/screen/use-screen-entered.d.ts +16 -0
  339. package/lib/typescript/module/screen/use-screen-entered.d.ts.map +1 -0
  340. package/lib/typescript/module/screen/use-screen-scroll.d.ts +3 -2
  341. package/lib/typescript/module/screen/use-screen-scroll.d.ts.map +1 -1
  342. package/lib/typescript/module/sidebar/Sidebar.d.ts.map +1 -1
  343. package/lib/typescript/module/sidebar/types.d.ts +9 -9
  344. package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
  345. package/lib/typescript/module/stay-search/types.d.ts +3 -3
  346. package/lib/typescript/module/stay-search/types.d.ts.map +1 -1
  347. package/lib/typescript/module/tab-pager/expo-router/TabPager.d.ts.map +1 -1
  348. package/lib/typescript/module/tabs/expo-router/RouterTabs.d.ts +3 -2
  349. package/lib/typescript/module/tabs/expo-router/RouterTabs.d.ts.map +1 -1
  350. package/lib/typescript/module/tabs/types.d.ts +1 -1
  351. package/lib/typescript/module/tabs/types.d.ts.map +1 -1
  352. package/lib/typescript/module/toast/ToastHost.native.d.ts.map +1 -1
  353. package/package.json +1 -120
  354. package/src/__tests__/support/adoption-matrix.ts +0 -9
  355. package/src/__tests__/support/public-part-classifications.json +0 -16
  356. package/src/agent-reply/types.ts +2 -2
  357. package/src/badge/types.ts +1 -1
  358. package/src/breadcrumb/types.ts +3 -2
  359. package/src/button/Button.web.tsx +15 -2
  360. package/src/button/shared.ts +3 -4
  361. package/src/button/types.ts +3 -3
  362. package/src/carousel/types.ts +3 -2
  363. package/src/chat-composer/shared.ts +4 -4
  364. package/src/chat-composer/types.ts +9 -9
  365. package/src/chat-people/StoryViewer.tsx +2 -2
  366. package/src/date-picker/PickerShell.tsx +2 -2
  367. package/src/dialog/DetailDialogMotion.tsx +15 -9
  368. package/src/dialog/types.ts +0 -1
  369. package/src/fab/constants.ts +4 -1
  370. package/src/fab/index.ts +1 -1
  371. package/src/fab/index.web.ts +1 -1
  372. package/src/fab/types.ts +2 -2
  373. package/src/fab/use-fab-props.ts +2 -2
  374. package/src/field/FieldConstraintScope.tsx +2 -2
  375. package/src/floating/lens/lens-button-host.tsx +2 -1
  376. package/src/floating/lens/lens-tint.ts +12 -0
  377. package/src/floating/lens/use-lens-menu.tsx +2 -1
  378. package/src/home-search/types.ts +1 -1
  379. package/src/index.ts +0 -195
  380. package/src/index.web.ts +0 -195
  381. package/src/listing-actions/ApplicationChecklist.tsx +3 -2
  382. package/src/listing-actions/types.ts +2 -2
  383. package/src/locale/translations/ar.ts +0 -232
  384. package/src/locale/translations/bn.ts +0 -200
  385. package/src/locale/translations/ca.ts +0 -210
  386. package/src/locale/translations/de.ts +0 -213
  387. package/src/locale/translations/es.ts +0 -210
  388. package/src/locale/translations/fr.ts +0 -214
  389. package/src/locale/translations/hi.ts +0 -201
  390. package/src/locale/translations/id.ts +0 -206
  391. package/src/locale/translations/it.ts +0 -214
  392. package/src/locale/translations/ja.ts +0 -202
  393. package/src/locale/translations/pt.ts +0 -220
  394. package/src/locale/translations/ru.ts +0 -225
  395. package/src/locale/translations/tr.ts +0 -202
  396. package/src/locale/translations/types.ts +0 -14
  397. package/src/locale/translations/zh.ts +0 -200
  398. package/src/overlay/Overlay.tsx +23 -21
  399. package/src/overlay/types.ts +10 -0
  400. package/src/page-header/types.ts +1 -1
  401. package/src/panel-routing/expo-router/StackScene.tsx +62 -5
  402. package/src/queue-panel/QueueIconButton.tsx +2 -2
  403. package/src/screen/index.ts +1 -0
  404. package/src/screen/index.web.ts +1 -0
  405. package/src/screen/use-screen-entered.ts +21 -0
  406. package/src/screen/use-screen-scroll.ts +36 -2
  407. package/src/sidebar/Sidebar.tsx +17 -11
  408. package/src/sidebar/types.ts +9 -9
  409. package/src/stay-search/types.ts +3 -3
  410. package/src/tab-pager/expo-router/TabPager.tsx +35 -16
  411. package/src/tabs/expo-router/RouterTabs.tsx +3 -2
  412. package/src/tabs/types.ts +1 -1
  413. package/src/toast/ToastHost.native.tsx +5 -1
  414. package/src/toast/ToastHost.tsx +1 -1
  415. package/docs/carrier-quote.mdx +0 -121
  416. package/docs/delivery-slot.mdx +0 -91
  417. package/docs/earnings.mdx +0 -89
  418. package/docs/job-board.mdx +0 -82
  419. package/docs/proof-of-delivery.mdx +0 -86
  420. package/docs/shipment-request.mdx +0 -139
  421. package/docs/vehicle-picker.mdx +0 -92
  422. package/lib/commonjs/carrier-quote/CarrierQuoteCard.js +0 -547
  423. package/lib/commonjs/carrier-quote/CarrierQuoteCard.js.map +0 -1
  424. package/lib/commonjs/carrier-quote/CarrierQuoteList.js +0 -274
  425. package/lib/commonjs/carrier-quote/CarrierQuoteList.js.map +0 -1
  426. package/lib/commonjs/carrier-quote/constants.js +0 -64
  427. package/lib/commonjs/carrier-quote/constants.js.map +0 -1
  428. package/lib/commonjs/carrier-quote/index.js +0 -82
  429. package/lib/commonjs/carrier-quote/index.js.map +0 -1
  430. package/lib/commonjs/carrier-quote/messages.js +0 -50
  431. package/lib/commonjs/carrier-quote/messages.js.map +0 -1
  432. package/lib/commonjs/carrier-quote/shared.js +0 -150
  433. package/lib/commonjs/carrier-quote/shared.js.map +0 -1
  434. package/lib/commonjs/carrier-quote/types.js +0 -6
  435. package/lib/commonjs/carrier-quote/types.js.map +0 -1
  436. package/lib/commonjs/delivery-slot/DeliverySlotDays.js +0 -92
  437. package/lib/commonjs/delivery-slot/DeliverySlotDays.js.map +0 -1
  438. package/lib/commonjs/delivery-slot/DeliverySlotOption.js +0 -131
  439. package/lib/commonjs/delivery-slot/DeliverySlotOption.js.map +0 -1
  440. package/lib/commonjs/delivery-slot/DeliverySlotPicker.js +0 -265
  441. package/lib/commonjs/delivery-slot/DeliverySlotPicker.js.map +0 -1
  442. package/lib/commonjs/delivery-slot/constants.js +0 -52
  443. package/lib/commonjs/delivery-slot/constants.js.map +0 -1
  444. package/lib/commonjs/delivery-slot/index.js +0 -101
  445. package/lib/commonjs/delivery-slot/index.js.map +0 -1
  446. package/lib/commonjs/delivery-slot/messages.js +0 -27
  447. package/lib/commonjs/delivery-slot/messages.js.map +0 -1
  448. package/lib/commonjs/delivery-slot/shared.js +0 -60
  449. package/lib/commonjs/delivery-slot/shared.js.map +0 -1
  450. package/lib/commonjs/delivery-slot/types.js +0 -6
  451. package/lib/commonjs/delivery-slot/types.js.map +0 -1
  452. package/lib/commonjs/earnings/EarningsBreakdown.js +0 -85
  453. package/lib/commonjs/earnings/EarningsBreakdown.js.map +0 -1
  454. package/lib/commonjs/earnings/EarningsPayoutRow.js +0 -156
  455. package/lib/commonjs/earnings/EarningsPayoutRow.js.map +0 -1
  456. package/lib/commonjs/earnings/EarningsSummary.js +0 -295
  457. package/lib/commonjs/earnings/EarningsSummary.js.map +0 -1
  458. package/lib/commonjs/earnings/constants.js +0 -61
  459. package/lib/commonjs/earnings/constants.js.map +0 -1
  460. package/lib/commonjs/earnings/index.js +0 -77
  461. package/lib/commonjs/earnings/index.js.map +0 -1
  462. package/lib/commonjs/earnings/messages.js +0 -30
  463. package/lib/commonjs/earnings/messages.js.map +0 -1
  464. package/lib/commonjs/earnings/shared.js +0 -72
  465. package/lib/commonjs/earnings/shared.js.map +0 -1
  466. package/lib/commonjs/earnings/types.js +0 -6
  467. package/lib/commonjs/earnings/types.js.map +0 -1
  468. package/lib/commonjs/job-board/JobBoard.js +0 -464
  469. package/lib/commonjs/job-board/JobBoard.js.map +0 -1
  470. package/lib/commonjs/job-board/JobCard.js +0 -582
  471. package/lib/commonjs/job-board/JobCard.js.map +0 -1
  472. package/lib/commonjs/job-board/constants.js +0 -119
  473. package/lib/commonjs/job-board/constants.js.map +0 -1
  474. package/lib/commonjs/job-board/index.js +0 -106
  475. package/lib/commonjs/job-board/index.js.map +0 -1
  476. package/lib/commonjs/job-board/messages.js +0 -68
  477. package/lib/commonjs/job-board/messages.js.map +0 -1
  478. package/lib/commonjs/job-board/shared.js +0 -179
  479. package/lib/commonjs/job-board/shared.js.map +0 -1
  480. package/lib/commonjs/job-board/types.js +0 -6
  481. package/lib/commonjs/job-board/types.js.map +0 -1
  482. package/lib/commonjs/proof-of-delivery/ProofOfDelivery.js +0 -306
  483. package/lib/commonjs/proof-of-delivery/ProofOfDelivery.js.map +0 -1
  484. package/lib/commonjs/proof-of-delivery/SignaturePad.js +0 -304
  485. package/lib/commonjs/proof-of-delivery/SignaturePad.js.map +0 -1
  486. package/lib/commonjs/proof-of-delivery/constants.js +0 -51
  487. package/lib/commonjs/proof-of-delivery/constants.js.map +0 -1
  488. package/lib/commonjs/proof-of-delivery/index.js +0 -106
  489. package/lib/commonjs/proof-of-delivery/index.js.map +0 -1
  490. package/lib/commonjs/proof-of-delivery/messages.js +0 -41
  491. package/lib/commonjs/proof-of-delivery/messages.js.map +0 -1
  492. package/lib/commonjs/proof-of-delivery/shared.js +0 -171
  493. package/lib/commonjs/proof-of-delivery/shared.js.map +0 -1
  494. package/lib/commonjs/proof-of-delivery/types.js +0 -6
  495. package/lib/commonjs/proof-of-delivery/types.js.map +0 -1
  496. package/lib/commonjs/shipment-request/ShipmentLoadPicker.js +0 -272
  497. package/lib/commonjs/shipment-request/ShipmentLoadPicker.js.map +0 -1
  498. package/lib/commonjs/shipment-request/ShipmentOptionsList.js +0 -188
  499. package/lib/commonjs/shipment-request/ShipmentOptionsList.js.map +0 -1
  500. package/lib/commonjs/shipment-request/ShipmentRequestForm.js +0 -155
  501. package/lib/commonjs/shipment-request/ShipmentRequestForm.js.map +0 -1
  502. package/lib/commonjs/shipment-request/constants.js +0 -118
  503. package/lib/commonjs/shipment-request/constants.js.map +0 -1
  504. package/lib/commonjs/shipment-request/index.js +0 -95
  505. package/lib/commonjs/shipment-request/index.js.map +0 -1
  506. package/lib/commonjs/shipment-request/messages.js +0 -79
  507. package/lib/commonjs/shipment-request/messages.js.map +0 -1
  508. package/lib/commonjs/shipment-request/shared.js +0 -65
  509. package/lib/commonjs/shipment-request/shared.js.map +0 -1
  510. package/lib/commonjs/shipment-request/types.js +0 -6
  511. package/lib/commonjs/shipment-request/types.js.map +0 -1
  512. package/lib/commonjs/vehicle-picker/VehiclePicker.js +0 -238
  513. package/lib/commonjs/vehicle-picker/VehiclePicker.js.map +0 -1
  514. package/lib/commonjs/vehicle-picker/constants.js +0 -76
  515. package/lib/commonjs/vehicle-picker/constants.js.map +0 -1
  516. package/lib/commonjs/vehicle-picker/index.js +0 -45
  517. package/lib/commonjs/vehicle-picker/index.js.map +0 -1
  518. package/lib/commonjs/vehicle-picker/messages.js +0 -49
  519. package/lib/commonjs/vehicle-picker/messages.js.map +0 -1
  520. package/lib/commonjs/vehicle-picker/shared.js +0 -24
  521. package/lib/commonjs/vehicle-picker/shared.js.map +0 -1
  522. package/lib/commonjs/vehicle-picker/types.js +0 -6
  523. package/lib/commonjs/vehicle-picker/types.js.map +0 -1
  524. package/lib/module/carrier-quote/CarrierQuoteCard.js +0 -543
  525. package/lib/module/carrier-quote/CarrierQuoteCard.js.map +0 -1
  526. package/lib/module/carrier-quote/CarrierQuoteList.js +0 -270
  527. package/lib/module/carrier-quote/CarrierQuoteList.js.map +0 -1
  528. package/lib/module/carrier-quote/constants.js +0 -61
  529. package/lib/module/carrier-quote/constants.js.map +0 -1
  530. package/lib/module/carrier-quote/index.js +0 -7
  531. package/lib/module/carrier-quote/index.js.map +0 -1
  532. package/lib/module/carrier-quote/messages.js +0 -47
  533. package/lib/module/carrier-quote/messages.js.map +0 -1
  534. package/lib/module/carrier-quote/shared.js +0 -139
  535. package/lib/module/carrier-quote/shared.js.map +0 -1
  536. package/lib/module/carrier-quote/types.js +0 -4
  537. package/lib/module/carrier-quote/types.js.map +0 -1
  538. package/lib/module/delivery-slot/DeliverySlotDays.js +0 -86
  539. package/lib/module/delivery-slot/DeliverySlotDays.js.map +0 -1
  540. package/lib/module/delivery-slot/DeliverySlotOption.js +0 -125
  541. package/lib/module/delivery-slot/DeliverySlotOption.js.map +0 -1
  542. package/lib/module/delivery-slot/DeliverySlotPicker.js +0 -259
  543. package/lib/module/delivery-slot/DeliverySlotPicker.js.map +0 -1
  544. package/lib/module/delivery-slot/constants.js +0 -48
  545. package/lib/module/delivery-slot/constants.js.map +0 -1
  546. package/lib/module/delivery-slot/index.js +0 -8
  547. package/lib/module/delivery-slot/index.js.map +0 -1
  548. package/lib/module/delivery-slot/messages.js +0 -24
  549. package/lib/module/delivery-slot/messages.js.map +0 -1
  550. package/lib/module/delivery-slot/shared.js +0 -52
  551. package/lib/module/delivery-slot/shared.js.map +0 -1
  552. package/lib/module/delivery-slot/types.js +0 -4
  553. package/lib/module/delivery-slot/types.js.map +0 -1
  554. package/lib/module/earnings/EarningsBreakdown.js +0 -79
  555. package/lib/module/earnings/EarningsBreakdown.js.map +0 -1
  556. package/lib/module/earnings/EarningsPayoutRow.js +0 -150
  557. package/lib/module/earnings/EarningsPayoutRow.js.map +0 -1
  558. package/lib/module/earnings/EarningsSummary.js +0 -289
  559. package/lib/module/earnings/EarningsSummary.js.map +0 -1
  560. package/lib/module/earnings/constants.js +0 -58
  561. package/lib/module/earnings/constants.js.map +0 -1
  562. package/lib/module/earnings/index.js +0 -8
  563. package/lib/module/earnings/index.js.map +0 -1
  564. package/lib/module/earnings/messages.js +0 -27
  565. package/lib/module/earnings/messages.js.map +0 -1
  566. package/lib/module/earnings/shared.js +0 -63
  567. package/lib/module/earnings/shared.js.map +0 -1
  568. package/lib/module/earnings/types.js +0 -4
  569. package/lib/module/earnings/types.js.map +0 -1
  570. package/lib/module/job-board/JobBoard.js +0 -460
  571. package/lib/module/job-board/JobBoard.js.map +0 -1
  572. package/lib/module/job-board/JobCard.js +0 -578
  573. package/lib/module/job-board/JobCard.js.map +0 -1
  574. package/lib/module/job-board/constants.js +0 -114
  575. package/lib/module/job-board/constants.js.map +0 -1
  576. package/lib/module/job-board/index.js +0 -7
  577. package/lib/module/job-board/index.js.map +0 -1
  578. package/lib/module/job-board/messages.js +0 -65
  579. package/lib/module/job-board/messages.js.map +0 -1
  580. package/lib/module/job-board/shared.js +0 -167
  581. package/lib/module/job-board/shared.js.map +0 -1
  582. package/lib/module/job-board/types.js +0 -4
  583. package/lib/module/job-board/types.js.map +0 -1
  584. package/lib/module/proof-of-delivery/ProofOfDelivery.js +0 -300
  585. package/lib/module/proof-of-delivery/ProofOfDelivery.js.map +0 -1
  586. package/lib/module/proof-of-delivery/SignaturePad.js +0 -298
  587. package/lib/module/proof-of-delivery/SignaturePad.js.map +0 -1
  588. package/lib/module/proof-of-delivery/constants.js +0 -47
  589. package/lib/module/proof-of-delivery/constants.js.map +0 -1
  590. package/lib/module/proof-of-delivery/index.js +0 -7
  591. package/lib/module/proof-of-delivery/index.js.map +0 -1
  592. package/lib/module/proof-of-delivery/messages.js +0 -38
  593. package/lib/module/proof-of-delivery/messages.js.map +0 -1
  594. package/lib/module/proof-of-delivery/shared.js +0 -157
  595. package/lib/module/proof-of-delivery/shared.js.map +0 -1
  596. package/lib/module/proof-of-delivery/types.js +0 -4
  597. package/lib/module/proof-of-delivery/types.js.map +0 -1
  598. package/lib/module/shipment-request/ShipmentLoadPicker.js +0 -266
  599. package/lib/module/shipment-request/ShipmentLoadPicker.js.map +0 -1
  600. package/lib/module/shipment-request/ShipmentOptionsList.js +0 -184
  601. package/lib/module/shipment-request/ShipmentOptionsList.js.map +0 -1
  602. package/lib/module/shipment-request/ShipmentRequestForm.js +0 -149
  603. package/lib/module/shipment-request/ShipmentRequestForm.js.map +0 -1
  604. package/lib/module/shipment-request/constants.js +0 -112
  605. package/lib/module/shipment-request/constants.js.map +0 -1
  606. package/lib/module/shipment-request/index.js +0 -8
  607. package/lib/module/shipment-request/index.js.map +0 -1
  608. package/lib/module/shipment-request/messages.js +0 -76
  609. package/lib/module/shipment-request/messages.js.map +0 -1
  610. package/lib/module/shipment-request/shared.js +0 -58
  611. package/lib/module/shipment-request/shared.js.map +0 -1
  612. package/lib/module/shipment-request/types.js +0 -4
  613. package/lib/module/shipment-request/types.js.map +0 -1
  614. package/lib/module/vehicle-picker/VehiclePicker.js +0 -232
  615. package/lib/module/vehicle-picker/VehiclePicker.js.map +0 -1
  616. package/lib/module/vehicle-picker/constants.js +0 -71
  617. package/lib/module/vehicle-picker/constants.js.map +0 -1
  618. package/lib/module/vehicle-picker/index.js +0 -6
  619. package/lib/module/vehicle-picker/index.js.map +0 -1
  620. package/lib/module/vehicle-picker/messages.js +0 -46
  621. package/lib/module/vehicle-picker/messages.js.map +0 -1
  622. package/lib/module/vehicle-picker/shared.js +0 -20
  623. package/lib/module/vehicle-picker/shared.js.map +0 -1
  624. package/lib/module/vehicle-picker/types.js +0 -4
  625. package/lib/module/vehicle-picker/types.js.map +0 -1
  626. package/lib/typescript/commonjs/carrier-quote/CarrierQuoteCard.d.ts +0 -6
  627. package/lib/typescript/commonjs/carrier-quote/CarrierQuoteCard.d.ts.map +0 -1
  628. package/lib/typescript/commonjs/carrier-quote/CarrierQuoteList.d.ts +0 -29
  629. package/lib/typescript/commonjs/carrier-quote/CarrierQuoteList.d.ts.map +0 -1
  630. package/lib/typescript/commonjs/carrier-quote/constants.d.ts +0 -55
  631. package/lib/typescript/commonjs/carrier-quote/constants.d.ts.map +0 -1
  632. package/lib/typescript/commonjs/carrier-quote/index.d.ts +0 -8
  633. package/lib/typescript/commonjs/carrier-quote/index.d.ts.map +0 -1
  634. package/lib/typescript/commonjs/carrier-quote/messages.d.ts +0 -38
  635. package/lib/typescript/commonjs/carrier-quote/messages.d.ts.map +0 -1
  636. package/lib/typescript/commonjs/carrier-quote/shared.d.ts +0 -58
  637. package/lib/typescript/commonjs/carrier-quote/shared.d.ts.map +0 -1
  638. package/lib/typescript/commonjs/carrier-quote/types.d.ts +0 -191
  639. package/lib/typescript/commonjs/carrier-quote/types.d.ts.map +0 -1
  640. package/lib/typescript/commonjs/delivery-slot/DeliverySlotDays.d.ts +0 -28
  641. package/lib/typescript/commonjs/delivery-slot/DeliverySlotDays.d.ts.map +0 -1
  642. package/lib/typescript/commonjs/delivery-slot/DeliverySlotOption.d.ts +0 -27
  643. package/lib/typescript/commonjs/delivery-slot/DeliverySlotOption.d.ts.map +0 -1
  644. package/lib/typescript/commonjs/delivery-slot/DeliverySlotPicker.d.ts +0 -34
  645. package/lib/typescript/commonjs/delivery-slot/DeliverySlotPicker.d.ts.map +0 -1
  646. package/lib/typescript/commonjs/delivery-slot/constants.d.ts +0 -34
  647. package/lib/typescript/commonjs/delivery-slot/constants.d.ts.map +0 -1
  648. package/lib/typescript/commonjs/delivery-slot/index.d.ts +0 -8
  649. package/lib/typescript/commonjs/delivery-slot/index.d.ts.map +0 -1
  650. package/lib/typescript/commonjs/delivery-slot/messages.d.ts +0 -23
  651. package/lib/typescript/commonjs/delivery-slot/messages.d.ts.map +0 -1
  652. package/lib/typescript/commonjs/delivery-slot/shared.d.ts +0 -36
  653. package/lib/typescript/commonjs/delivery-slot/shared.d.ts.map +0 -1
  654. package/lib/typescript/commonjs/delivery-slot/types.d.ts +0 -178
  655. package/lib/typescript/commonjs/delivery-slot/types.d.ts.map +0 -1
  656. package/lib/typescript/commonjs/earnings/EarningsBreakdown.d.ts +0 -24
  657. package/lib/typescript/commonjs/earnings/EarningsBreakdown.d.ts.map +0 -1
  658. package/lib/typescript/commonjs/earnings/EarningsPayoutRow.d.ts +0 -25
  659. package/lib/typescript/commonjs/earnings/EarningsPayoutRow.d.ts.map +0 -1
  660. package/lib/typescript/commonjs/earnings/EarningsSummary.d.ts +0 -6
  661. package/lib/typescript/commonjs/earnings/EarningsSummary.d.ts.map +0 -1
  662. package/lib/typescript/commonjs/earnings/constants.d.ts +0 -41
  663. package/lib/typescript/commonjs/earnings/constants.d.ts.map +0 -1
  664. package/lib/typescript/commonjs/earnings/index.d.ts +0 -9
  665. package/lib/typescript/commonjs/earnings/index.d.ts.map +0 -1
  666. package/lib/typescript/commonjs/earnings/messages.d.ts +0 -26
  667. package/lib/typescript/commonjs/earnings/messages.d.ts.map +0 -1
  668. package/lib/typescript/commonjs/earnings/shared.d.ts +0 -43
  669. package/lib/typescript/commonjs/earnings/shared.d.ts.map +0 -1
  670. package/lib/typescript/commonjs/earnings/types.d.ts +0 -171
  671. package/lib/typescript/commonjs/earnings/types.d.ts.map +0 -1
  672. package/lib/typescript/commonjs/job-board/JobBoard.d.ts +0 -38
  673. package/lib/typescript/commonjs/job-board/JobBoard.d.ts.map +0 -1
  674. package/lib/typescript/commonjs/job-board/JobCard.d.ts +0 -6
  675. package/lib/typescript/commonjs/job-board/JobCard.d.ts.map +0 -1
  676. package/lib/typescript/commonjs/job-board/constants.d.ts +0 -79
  677. package/lib/typescript/commonjs/job-board/constants.d.ts.map +0 -1
  678. package/lib/typescript/commonjs/job-board/index.d.ts +0 -8
  679. package/lib/typescript/commonjs/job-board/index.d.ts.map +0 -1
  680. package/lib/typescript/commonjs/job-board/messages.d.ts +0 -56
  681. package/lib/typescript/commonjs/job-board/messages.d.ts.map +0 -1
  682. package/lib/typescript/commonjs/job-board/shared.d.ts +0 -78
  683. package/lib/typescript/commonjs/job-board/shared.d.ts.map +0 -1
  684. package/lib/typescript/commonjs/job-board/types.d.ts +0 -269
  685. package/lib/typescript/commonjs/job-board/types.d.ts.map +0 -1
  686. package/lib/typescript/commonjs/proof-of-delivery/ProofOfDelivery.d.ts +0 -51
  687. package/lib/typescript/commonjs/proof-of-delivery/ProofOfDelivery.d.ts.map +0 -1
  688. package/lib/typescript/commonjs/proof-of-delivery/SignaturePad.d.ts +0 -6
  689. package/lib/typescript/commonjs/proof-of-delivery/SignaturePad.d.ts.map +0 -1
  690. package/lib/typescript/commonjs/proof-of-delivery/constants.d.ts +0 -43
  691. package/lib/typescript/commonjs/proof-of-delivery/constants.d.ts.map +0 -1
  692. package/lib/typescript/commonjs/proof-of-delivery/index.d.ts +0 -8
  693. package/lib/typescript/commonjs/proof-of-delivery/index.d.ts.map +0 -1
  694. package/lib/typescript/commonjs/proof-of-delivery/messages.d.ts +0 -13
  695. package/lib/typescript/commonjs/proof-of-delivery/messages.d.ts.map +0 -1
  696. package/lib/typescript/commonjs/proof-of-delivery/shared.d.ts +0 -79
  697. package/lib/typescript/commonjs/proof-of-delivery/shared.d.ts.map +0 -1
  698. package/lib/typescript/commonjs/proof-of-delivery/types.d.ts +0 -165
  699. package/lib/typescript/commonjs/proof-of-delivery/types.d.ts.map +0 -1
  700. package/lib/typescript/commonjs/shipment-request/ShipmentLoadPicker.d.ts +0 -32
  701. package/lib/typescript/commonjs/shipment-request/ShipmentLoadPicker.d.ts.map +0 -1
  702. package/lib/typescript/commonjs/shipment-request/ShipmentOptionsList.d.ts +0 -5
  703. package/lib/typescript/commonjs/shipment-request/ShipmentOptionsList.d.ts.map +0 -1
  704. package/lib/typescript/commonjs/shipment-request/ShipmentRequestForm.d.ts +0 -33
  705. package/lib/typescript/commonjs/shipment-request/ShipmentRequestForm.d.ts.map +0 -1
  706. package/lib/typescript/commonjs/shipment-request/constants.d.ts +0 -50
  707. package/lib/typescript/commonjs/shipment-request/constants.d.ts.map +0 -1
  708. package/lib/typescript/commonjs/shipment-request/index.d.ts +0 -8
  709. package/lib/typescript/commonjs/shipment-request/index.d.ts.map +0 -1
  710. package/lib/typescript/commonjs/shipment-request/messages.d.ts +0 -45
  711. package/lib/typescript/commonjs/shipment-request/messages.d.ts.map +0 -1
  712. package/lib/typescript/commonjs/shipment-request/shared.d.ts +0 -40
  713. package/lib/typescript/commonjs/shipment-request/shared.d.ts.map +0 -1
  714. package/lib/typescript/commonjs/shipment-request/types.d.ts +0 -219
  715. package/lib/typescript/commonjs/shipment-request/types.d.ts.map +0 -1
  716. package/lib/typescript/commonjs/vehicle-picker/VehiclePicker.d.ts +0 -7
  717. package/lib/typescript/commonjs/vehicle-picker/VehiclePicker.d.ts.map +0 -1
  718. package/lib/typescript/commonjs/vehicle-picker/constants.d.ts +0 -45
  719. package/lib/typescript/commonjs/vehicle-picker/constants.d.ts.map +0 -1
  720. package/lib/typescript/commonjs/vehicle-picker/index.d.ts +0 -6
  721. package/lib/typescript/commonjs/vehicle-picker/index.d.ts.map +0 -1
  722. package/lib/typescript/commonjs/vehicle-picker/messages.d.ts +0 -26
  723. package/lib/typescript/commonjs/vehicle-picker/messages.d.ts.map +0 -1
  724. package/lib/typescript/commonjs/vehicle-picker/shared.d.ts +0 -19
  725. package/lib/typescript/commonjs/vehicle-picker/shared.d.ts.map +0 -1
  726. package/lib/typescript/commonjs/vehicle-picker/types.d.ts +0 -82
  727. package/lib/typescript/commonjs/vehicle-picker/types.d.ts.map +0 -1
  728. package/lib/typescript/module/carrier-quote/CarrierQuoteCard.d.ts +0 -6
  729. package/lib/typescript/module/carrier-quote/CarrierQuoteCard.d.ts.map +0 -1
  730. package/lib/typescript/module/carrier-quote/CarrierQuoteList.d.ts +0 -29
  731. package/lib/typescript/module/carrier-quote/CarrierQuoteList.d.ts.map +0 -1
  732. package/lib/typescript/module/carrier-quote/constants.d.ts +0 -55
  733. package/lib/typescript/module/carrier-quote/constants.d.ts.map +0 -1
  734. package/lib/typescript/module/carrier-quote/index.d.ts +0 -8
  735. package/lib/typescript/module/carrier-quote/index.d.ts.map +0 -1
  736. package/lib/typescript/module/carrier-quote/messages.d.ts +0 -38
  737. package/lib/typescript/module/carrier-quote/messages.d.ts.map +0 -1
  738. package/lib/typescript/module/carrier-quote/shared.d.ts +0 -58
  739. package/lib/typescript/module/carrier-quote/shared.d.ts.map +0 -1
  740. package/lib/typescript/module/carrier-quote/types.d.ts +0 -191
  741. package/lib/typescript/module/carrier-quote/types.d.ts.map +0 -1
  742. package/lib/typescript/module/delivery-slot/DeliverySlotDays.d.ts +0 -28
  743. package/lib/typescript/module/delivery-slot/DeliverySlotDays.d.ts.map +0 -1
  744. package/lib/typescript/module/delivery-slot/DeliverySlotOption.d.ts +0 -27
  745. package/lib/typescript/module/delivery-slot/DeliverySlotOption.d.ts.map +0 -1
  746. package/lib/typescript/module/delivery-slot/DeliverySlotPicker.d.ts +0 -34
  747. package/lib/typescript/module/delivery-slot/DeliverySlotPicker.d.ts.map +0 -1
  748. package/lib/typescript/module/delivery-slot/constants.d.ts +0 -34
  749. package/lib/typescript/module/delivery-slot/constants.d.ts.map +0 -1
  750. package/lib/typescript/module/delivery-slot/index.d.ts +0 -8
  751. package/lib/typescript/module/delivery-slot/index.d.ts.map +0 -1
  752. package/lib/typescript/module/delivery-slot/messages.d.ts +0 -23
  753. package/lib/typescript/module/delivery-slot/messages.d.ts.map +0 -1
  754. package/lib/typescript/module/delivery-slot/shared.d.ts +0 -36
  755. package/lib/typescript/module/delivery-slot/shared.d.ts.map +0 -1
  756. package/lib/typescript/module/delivery-slot/types.d.ts +0 -178
  757. package/lib/typescript/module/delivery-slot/types.d.ts.map +0 -1
  758. package/lib/typescript/module/earnings/EarningsBreakdown.d.ts +0 -24
  759. package/lib/typescript/module/earnings/EarningsBreakdown.d.ts.map +0 -1
  760. package/lib/typescript/module/earnings/EarningsPayoutRow.d.ts +0 -25
  761. package/lib/typescript/module/earnings/EarningsPayoutRow.d.ts.map +0 -1
  762. package/lib/typescript/module/earnings/EarningsSummary.d.ts +0 -6
  763. package/lib/typescript/module/earnings/EarningsSummary.d.ts.map +0 -1
  764. package/lib/typescript/module/earnings/constants.d.ts +0 -41
  765. package/lib/typescript/module/earnings/constants.d.ts.map +0 -1
  766. package/lib/typescript/module/earnings/index.d.ts +0 -9
  767. package/lib/typescript/module/earnings/index.d.ts.map +0 -1
  768. package/lib/typescript/module/earnings/messages.d.ts +0 -26
  769. package/lib/typescript/module/earnings/messages.d.ts.map +0 -1
  770. package/lib/typescript/module/earnings/shared.d.ts +0 -43
  771. package/lib/typescript/module/earnings/shared.d.ts.map +0 -1
  772. package/lib/typescript/module/earnings/types.d.ts +0 -171
  773. package/lib/typescript/module/earnings/types.d.ts.map +0 -1
  774. package/lib/typescript/module/job-board/JobBoard.d.ts +0 -38
  775. package/lib/typescript/module/job-board/JobBoard.d.ts.map +0 -1
  776. package/lib/typescript/module/job-board/JobCard.d.ts +0 -6
  777. package/lib/typescript/module/job-board/JobCard.d.ts.map +0 -1
  778. package/lib/typescript/module/job-board/constants.d.ts +0 -79
  779. package/lib/typescript/module/job-board/constants.d.ts.map +0 -1
  780. package/lib/typescript/module/job-board/index.d.ts +0 -8
  781. package/lib/typescript/module/job-board/index.d.ts.map +0 -1
  782. package/lib/typescript/module/job-board/messages.d.ts +0 -56
  783. package/lib/typescript/module/job-board/messages.d.ts.map +0 -1
  784. package/lib/typescript/module/job-board/shared.d.ts +0 -78
  785. package/lib/typescript/module/job-board/shared.d.ts.map +0 -1
  786. package/lib/typescript/module/job-board/types.d.ts +0 -269
  787. package/lib/typescript/module/job-board/types.d.ts.map +0 -1
  788. package/lib/typescript/module/proof-of-delivery/ProofOfDelivery.d.ts +0 -51
  789. package/lib/typescript/module/proof-of-delivery/ProofOfDelivery.d.ts.map +0 -1
  790. package/lib/typescript/module/proof-of-delivery/SignaturePad.d.ts +0 -6
  791. package/lib/typescript/module/proof-of-delivery/SignaturePad.d.ts.map +0 -1
  792. package/lib/typescript/module/proof-of-delivery/constants.d.ts +0 -43
  793. package/lib/typescript/module/proof-of-delivery/constants.d.ts.map +0 -1
  794. package/lib/typescript/module/proof-of-delivery/index.d.ts +0 -8
  795. package/lib/typescript/module/proof-of-delivery/index.d.ts.map +0 -1
  796. package/lib/typescript/module/proof-of-delivery/messages.d.ts +0 -13
  797. package/lib/typescript/module/proof-of-delivery/messages.d.ts.map +0 -1
  798. package/lib/typescript/module/proof-of-delivery/shared.d.ts +0 -79
  799. package/lib/typescript/module/proof-of-delivery/shared.d.ts.map +0 -1
  800. package/lib/typescript/module/proof-of-delivery/types.d.ts +0 -165
  801. package/lib/typescript/module/proof-of-delivery/types.d.ts.map +0 -1
  802. package/lib/typescript/module/shipment-request/ShipmentLoadPicker.d.ts +0 -32
  803. package/lib/typescript/module/shipment-request/ShipmentLoadPicker.d.ts.map +0 -1
  804. package/lib/typescript/module/shipment-request/ShipmentOptionsList.d.ts +0 -5
  805. package/lib/typescript/module/shipment-request/ShipmentOptionsList.d.ts.map +0 -1
  806. package/lib/typescript/module/shipment-request/ShipmentRequestForm.d.ts +0 -33
  807. package/lib/typescript/module/shipment-request/ShipmentRequestForm.d.ts.map +0 -1
  808. package/lib/typescript/module/shipment-request/constants.d.ts +0 -50
  809. package/lib/typescript/module/shipment-request/constants.d.ts.map +0 -1
  810. package/lib/typescript/module/shipment-request/index.d.ts +0 -8
  811. package/lib/typescript/module/shipment-request/index.d.ts.map +0 -1
  812. package/lib/typescript/module/shipment-request/messages.d.ts +0 -45
  813. package/lib/typescript/module/shipment-request/messages.d.ts.map +0 -1
  814. package/lib/typescript/module/shipment-request/shared.d.ts +0 -40
  815. package/lib/typescript/module/shipment-request/shared.d.ts.map +0 -1
  816. package/lib/typescript/module/shipment-request/types.d.ts +0 -219
  817. package/lib/typescript/module/shipment-request/types.d.ts.map +0 -1
  818. package/lib/typescript/module/vehicle-picker/VehiclePicker.d.ts +0 -7
  819. package/lib/typescript/module/vehicle-picker/VehiclePicker.d.ts.map +0 -1
  820. package/lib/typescript/module/vehicle-picker/constants.d.ts +0 -45
  821. package/lib/typescript/module/vehicle-picker/constants.d.ts.map +0 -1
  822. package/lib/typescript/module/vehicle-picker/index.d.ts +0 -6
  823. package/lib/typescript/module/vehicle-picker/index.d.ts.map +0 -1
  824. package/lib/typescript/module/vehicle-picker/messages.d.ts +0 -26
  825. package/lib/typescript/module/vehicle-picker/messages.d.ts.map +0 -1
  826. package/lib/typescript/module/vehicle-picker/shared.d.ts +0 -19
  827. package/lib/typescript/module/vehicle-picker/shared.d.ts.map +0 -1
  828. package/lib/typescript/module/vehicle-picker/types.d.ts +0 -82
  829. package/lib/typescript/module/vehicle-picker/types.d.ts.map +0 -1
  830. package/src/carrier-quote/CarrierQuoteCard.tsx +0 -558
  831. package/src/carrier-quote/CarrierQuoteList.tsx +0 -271
  832. package/src/carrier-quote/constants.ts +0 -57
  833. package/src/carrier-quote/index.ts +0 -28
  834. package/src/carrier-quote/messages.ts +0 -66
  835. package/src/carrier-quote/shared.ts +0 -168
  836. package/src/carrier-quote/types.ts +0 -199
  837. package/src/delivery-slot/DeliverySlotDays.tsx +0 -91
  838. package/src/delivery-slot/DeliverySlotOption.tsx +0 -123
  839. package/src/delivery-slot/DeliverySlotPicker.tsx +0 -275
  840. package/src/delivery-slot/constants.ts +0 -47
  841. package/src/delivery-slot/index.ts +0 -24
  842. package/src/delivery-slot/messages.ts +0 -33
  843. package/src/delivery-slot/shared.ts +0 -84
  844. package/src/delivery-slot/types.ts +0 -191
  845. package/src/earnings/EarningsBreakdown.tsx +0 -75
  846. package/src/earnings/EarningsPayoutRow.tsx +0 -141
  847. package/src/earnings/EarningsSummary.tsx +0 -310
  848. package/src/earnings/constants.ts +0 -61
  849. package/src/earnings/index.ts +0 -24
  850. package/src/earnings/messages.ts +0 -45
  851. package/src/earnings/shared.ts +0 -94
  852. package/src/earnings/types.ts +0 -180
  853. package/src/job-board/JobBoard.tsx +0 -514
  854. package/src/job-board/JobCard.tsx +0 -597
  855. package/src/job-board/constants.ts +0 -106
  856. package/src/job-board/index.ts +0 -34
  857. package/src/job-board/messages.ts +0 -96
  858. package/src/job-board/shared.ts +0 -215
  859. package/src/job-board/types.ts +0 -274
  860. package/src/proof-of-delivery/ProofOfDelivery.tsx +0 -321
  861. package/src/proof-of-delivery/SignaturePad.tsx +0 -309
  862. package/src/proof-of-delivery/constants.ts +0 -54
  863. package/src/proof-of-delivery/index.ts +0 -29
  864. package/src/proof-of-delivery/messages.ts +0 -43
  865. package/src/proof-of-delivery/shared.ts +0 -190
  866. package/src/proof-of-delivery/types.ts +0 -174
  867. package/src/shipment-request/ShipmentLoadPicker.tsx +0 -249
  868. package/src/shipment-request/ShipmentOptionsList.tsx +0 -192
  869. package/src/shipment-request/ShipmentRequestForm.tsx +0 -160
  870. package/src/shipment-request/constants.ts +0 -138
  871. package/src/shipment-request/index.ts +0 -37
  872. package/src/shipment-request/messages.ts +0 -85
  873. package/src/shipment-request/shared.ts +0 -72
  874. package/src/shipment-request/types.ts +0 -235
  875. package/src/vehicle-picker/VehiclePicker.tsx +0 -233
  876. package/src/vehicle-picker/constants.ts +0 -77
  877. package/src/vehicle-picker/index.ts +0 -15
  878. package/src/vehicle-picker/messages.ts +0 -61
  879. package/src/vehicle-picker/shared.ts +0 -27
  880. package/src/vehicle-picker/types.ts +0 -86
@@ -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":["delivery-slot/types.ts"],"mappings":"","ignoreList":[]}
@@ -1,79 +0,0 @@
1
- "use strict";
2
-
3
- import React, { memo, useMemo } from 'react';
4
- import { View } from 'react-native';
5
- import { useMessages } from "../locale/messages.js";
6
- import { PriceSummary } from "../price-breakdown/index.js";
7
- import { useSurfaceFill } from "../styles/surface-levels.js";
8
- import { useTheme } from "../theme/use-theme.js";
9
- import { Text } from "../typography/index.js";
10
- import { EARNINGS_MESSAGES } from "./messages.js";
11
- import { resolveEarningsPaint } from "./shared.js";
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- /**
14
- * What the period's money came from, by kind.
15
- *
16
- * It is `price-breakdown`'s `PriceSummary` under a heading, and that is the
17
- * whole component. A courier's earnings are an ITEMISATION — jobs, tips,
18
- * bonuses, adjustments, each a label and an amount the app formatted — which is
19
- * the same object as a fare's itemisation seen from the other side. Writing a
20
- * second list of label-and-amount rows here would give Bloom two answers to one
21
- * question, and only one of them would know about `estimated`, `pending`, the
22
- * discount tone and the info popover.
23
- *
24
- * heading `body-semibold`, 8 over the list; omitted with `title={null}`
25
- * lines `PriceSummary`, which owns the rows, the rule and the total
26
- *
27
- * **NO TOTAL BY DEFAULT.** Inside `EarningsSummary` the figure above already IS
28
- * the total, and a second one under the list is the same number twice. Pass
29
- * `total` when the breakdown stands on its own.
30
- */
31
- function EarningsBreakdownComponent({
32
- lines,
33
- total,
34
- title,
35
- collapsible = false,
36
- defaultExpanded = false,
37
- labels: labelOverrides,
38
- accessibilityLabel,
39
- style,
40
- testID
41
- }) {
42
- const {
43
- messages
44
- } = useMessages(EARNINGS_MESSAGES);
45
- const theme = useTheme();
46
- const surface = useSurfaceFill();
47
- const paint = useMemo(() => resolveEarningsPaint(theme, surface), [theme, surface]);
48
- const labels = useMemo(() => ({
49
- ...messages,
50
- ...labelOverrides
51
- }), [messages, labelOverrides]);
52
- const heading = title === undefined ? labels.breakdown : title;
53
- return /*#__PURE__*/_jsxs(View, {
54
- style: [{
55
- gap: 8
56
- }, style],
57
- testID: testID,
58
- children: [heading ? /*#__PURE__*/_jsx(Text, {
59
- variant: "body-semibold",
60
- role: "heading",
61
- "aria-level": 3,
62
- style: {
63
- color: paint.text
64
- },
65
- testID: testID ? `${testID}-title` : undefined,
66
- children: heading
67
- }) : null, /*#__PURE__*/_jsx(PriceSummary, {
68
- lines: lines,
69
- total: total,
70
- collapsible: collapsible,
71
- defaultExpanded: defaultExpanded,
72
- accessibilityLabel: accessibilityLabel ?? heading ?? labels.breakdown,
73
- testID: testID ? `${testID}-lines` : undefined
74
- })]
75
- });
76
- }
77
- export const EarningsBreakdown = /*#__PURE__*/memo(EarningsBreakdownComponent);
78
- EarningsBreakdown.displayName = 'EarningsBreakdown';
79
- //# sourceMappingURL=EarningsBreakdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","memo","useMemo","View","useMessages","PriceSummary","useSurfaceFill","useTheme","Text","EARNINGS_MESSAGES","resolveEarningsPaint","jsx","_jsx","jsxs","_jsxs","EarningsBreakdownComponent","lines","total","title","collapsible","defaultExpanded","labels","labelOverrides","accessibilityLabel","style","testID","messages","theme","surface","paint","heading","undefined","breakdown","gap","children","variant","role","color","text","EarningsBreakdown","displayName"],"sourceRoot":"../../../src","sources":["earnings/EarningsBreakdown.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,WAAW,QAAQ,uBAAoB;AAChD,SAASC,YAAY,QAAQ,6BAAoB;AACjD,SAASC,cAAc,QAAQ,6BAA0B;AACzD,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,iBAAiB,QAAQ,eAAY;AAC9C,SAASC,oBAAoB,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,0BAA0BA,CAAC;EAClCC,KAAK;EACLC,KAAK;EACLC,KAAK;EACLC,WAAW,GAAG,KAAK;EACnBC,eAAe,GAAG,KAAK;EACvBC,MAAM,EAAEC,cAAc;EACtBC,kBAAkB;EAClBC,KAAK;EACLC;AACsB,CAAC,EAAE;EACzB,MAAM;IAAEC;EAAS,CAAC,GAAGtB,WAAW,CAACK,iBAAiB,CAAC;EACnD,MAAMkB,KAAK,GAAGpB,QAA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;AACjEwB,iBAAiB,CAACC,WAAW,GAAG,mBAAmB","ignoreList":[]}
@@ -1,150 +0,0 @@
1
- "use strict";
2
-
3
- import React, { memo, useMemo } from 'react';
4
- import { View } from 'react-native';
5
- import { Badge } from "../badge/index.js";
6
- import { RiBankCardLine } from "../icons/remix/RiBankCardLine.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 { resolveAccentColors } from "../theme/accent-colors.js";
11
- import { useTheme } from "../theme/use-theme.js";
12
- import { Text } from "../typography/index.js";
13
- import { EARNINGS_GEOMETRY, EARNINGS_PAYOUT_TONE } from "./constants.js";
14
- import { EARNINGS_MESSAGES } from "./messages.js";
15
- import { joinEarningsName, resolveEarningsPaint } from "./shared.js";
16
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
- const TABULAR = {
18
- fontVariant: ['tabular-nums']
19
- };
20
-
21
- /**
22
- * The money that is on its way, and what is holding it up.
23
- *
24
- * It is an `Item`, not a card: a payout is a ROW in a panel, and `item` already
25
- * owns the press target, the density, the leading and trailing slots and the
26
- * disabled wash. What this component decides is what goes in the three slots.
27
- *
28
- * leading a 40 glyph tile at the panel's next fill up
29
- * content the title over the date and the destination
30
- * trailing the amount at `headline-semibold` in tabular figures, with the
31
- * state `Badge` under it
32
- * note under the row, and ONLY for `held` and `failed` — the two states
33
- * that ask the reader to do something. A note on a scheduled payout
34
- * is a sentence nobody has to read.
35
- *
36
- * **THE STATE IS SAID IN WORDS, NOT ONLY IN COLOUR.** The badge carries the
37
- * word; the tone is a second channel on top of it, so the row survives a reader
38
- * who cannot tell the warning tint from the neutral one.
39
- */
40
- function EarningsPayoutRowComponent({
41
- payout,
42
- title,
43
- onPress,
44
- action,
45
- labels: labelOverrides,
46
- accessibilityLabel,
47
- style,
48
- testID
49
- }) {
50
- const {
51
- messages
52
- } = useMessages(EARNINGS_MESSAGES);
53
- const theme = useTheme();
54
- const surface = useSurfaceFill();
55
- const paint = useMemo(() => resolveEarningsPaint(theme, surface), [theme, surface]);
56
- const labels = useMemo(() => ({
57
- ...messages,
58
- ...labelOverrides,
59
- payoutState: {
60
- ...messages.payoutState,
61
- ...labelOverrides?.payoutState
62
- }
63
- }), [messages, labelOverrides]);
64
- const state = payout.state ?? 'scheduled';
65
- const stateWord = labels.payoutState[state];
66
- const heading = title ?? labels.payout;
67
- const needsAction = state === 'held' || state === 'failed';
68
- const noteTone = resolveAccentColors(theme.colors, EARNINGS_PAYOUT_TONE[state], 'subtle');
69
- const id = part => testID ? `${testID}-${part}` : undefined;
70
- const name = accessibilityLabel ?? joinEarningsName([heading, payout.amount, payout.date, stateWord, payout.destination]);
71
- return (
72
- /*#__PURE__*/
73
- // A `group`, not a bare column: `Item`'s non-pressable branch is
74
- // `role="none"`, on which an `aria-label` is not exposed at all — so the
75
- // composed name has to hang off something ARIA will read it from.
76
- _jsxs(View, {
77
- collapsable: false,
78
- role: "group",
79
- accessibilityLabel: name,
80
- style: style,
81
- testID: testID,
82
- children: [/*#__PURE__*/_jsx(Item, {
83
- onPress: onPress,
84
- accessibilityLabel: onPress ? name : undefined,
85
- leading: /*#__PURE__*/_jsx(View, {
86
- "aria-hidden": true,
87
- style: {
88
- width: EARNINGS_GEOMETRY.glyph,
89
- height: EARNINGS_GEOMETRY.glyph,
90
- borderRadius: EARNINGS_GEOMETRY.glyphRadius,
91
- alignItems: 'center',
92
- justifyContent: 'center',
93
- backgroundColor: paint.tile
94
- },
95
- testID: id('glyph'),
96
- children: /*#__PURE__*/_jsx(RiBankCardLine, {
97
- width: 20,
98
- height: 20,
99
- fill: paint.tileText.textSecondary
100
- })
101
- }),
102
- title: heading,
103
- subtitle: joinEarningsName([payout.date, payout.destination], ' · '),
104
- trailing: /*#__PURE__*/_jsxs(View, {
105
- style: {
106
- alignItems: 'flex-end',
107
- gap: 4
108
- },
109
- testID: id('amount'),
110
- children: [/*#__PURE__*/_jsx(Text, {
111
- variant: "headline-semibold",
112
- numberOfLines: 1,
113
- style: [{
114
- color: paint.text
115
- }, TABULAR],
116
- testID: id('amount-text'),
117
- children: payout.amount
118
- }), /*#__PURE__*/_jsx(Badge, {
119
- content: stateWord,
120
- variant: "subtle",
121
- color: EARNINGS_PAYOUT_TONE[state],
122
- size: "label-small",
123
- testID: id('state')
124
- })]
125
- }),
126
- testID: id('row')
127
- }), payout.note && needsAction ? /*#__PURE__*/_jsx(Text, {
128
- variant: "body-2-regular",
129
- style: {
130
- color: noteTone.foreground,
131
- paddingLeft: 12,
132
- paddingRight: 12
133
- },
134
- testID: id('note'),
135
- children: payout.note
136
- }) : null, action ? /*#__PURE__*/_jsx(View, {
137
- style: {
138
- flexDirection: 'row',
139
- paddingLeft: 12,
140
- paddingTop: 8
141
- },
142
- testID: id('action'),
143
- children: action
144
- }) : null]
145
- })
146
- );
147
- }
148
- export const EarningsPayoutRow = /*#__PURE__*/memo(EarningsPayoutRowComponent);
149
- EarningsPayoutRow.displayName = 'EarningsPayoutRow';
150
- //# sourceMappingURL=EarningsPayoutRow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","memo","useMemo","View","Badge","RiBankCardLine","Item","useMessages","useSurfaceFill","resolveAccentColors","useTheme","Text","EARNINGS_GEOMETRY","EARNINGS_PAYOUT_TONE","EARNINGS_MESSAGES","joinEarningsName","resolveEarningsPaint","jsx","_jsx","jsxs","_jsxs","TABULAR","fontVariant","EarningsPayoutRowComponent","payout","title","onPress","action","labels","labelOverrides","accessibilityLabel","style","testID","messages","theme","surface","paint","payoutState","state","stateWord","heading","needsAction","noteTone","colors","id","part","undefined","name","amount","date","destination","collapsable","role","children","leading","width","glyph","height","borderRadius","glyphRadius","alignItems","justifyContent","backgroundColor","tile","fill","tileText","textSecondary","subtitle","trailing","gap","variant","numberOfLines","color","text","content","size","note","foreground","paddingLeft","paddingRight","flexDirection","paddingTop","EarningsPayoutRow","displayName"],"sourceRoot":"../../../src","sources":["earnings/EarningsPayoutRow.tsx"],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E,CACrB,CAAC;QAAA,CACE,CACP;QACDZ,MAAM,EAAEY,EAAE,CAAC,KAAK;MAAE,CACnB,CAAC,EACDpB,MAAM,CAACoD,IAAI,IAAInC,WAAW,gBACzBvB,IAAA,CAACP,IAAI;QACH2D,OAAO,EAAC,gBAAgB;QACxBvC,KAAK,EAAE;UAAEyC,KAAK,EAAE9B,QAAQ,CAACmC,UAAU;UAAEC,WAAW,EAAE,EAAE;UAAEC,YAAY,EAAE;QAAG,CAAE;QACzE/C,MAAM,EAAEY,EAAE,CAAC,MAAM,CAAE;QAAAS,QAAA,EAElB7B,MAAM,CAACoD;MAAI,CACR,CAAC,GACL,IAAI,EACPjD,MAAM,gBACLT,IAAA,CAACf,IAAI;QACH4B,KAAK,EAAE;UAAEiD,aAAa,EAAE,KAAK;UAAEF,WAAW,EAAE,EAAE;UAAEG,UAAU,EAAE;QAAE,CAAE;QAChEjD,MAAM,EAAEY,EAAE,CAAC,QAAQ,CAAE;QAAAS,QAAA,EAEpB1B;MAAM,CACH,CAAC,GACL,IAAI;IAAA,CACJ;EAAC;AAEX;AAEA,OAAO,MAAMuD,iBAAiB,gBAAGjF,IAAI,CAACsB,0BAA0B,CAAC;AACjE2D,iBAAiB,CAACC,WAAW,GAAG,mBAAmB","ignoreList":[]}
@@ -1,289 +0,0 @@
1
- "use strict";
2
-
3
- import React, { memo, useCallback, useMemo, useState } from 'react';
4
- import { StyleSheet, View } from 'react-native';
5
- import { EarningsChartCard } from "../chart-cards/index.js";
6
- import { useContainerWidth } from "../hooks/use-container-width.js";
7
- import { useControllableState } from "../hooks/use-controllable-state.js";
8
- import { useMessages } from "../locale/messages.js";
9
- import { SurfaceLevelProvider, useSurfaceFill } from "../styles/surface-levels.js";
10
- import { useTheme } from "../theme/use-theme.js";
11
- import { Text } from "../typography/index.js";
12
- import { EARNINGS_GEOMETRY } from "./constants.js";
13
- import { EARNINGS_MESSAGES } from "./messages.js";
14
- import { EarningsBreakdown } from "./EarningsBreakdown.js";
15
- import { EarningsPayoutRow } from "./EarningsPayoutRow.js";
16
- import { earningsHeadline, earningsHeadlineLabel, resolveEarningsPaint, resolveEarningsPeriod } from "./shared.js";
17
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
- /**
19
- * What the work paid, for one period.
20
- *
21
- * chart `chart-cards`' `EarningsChartCard`, which already OWNS the
22
- * figure, the delta chip, the period switch and the bars
23
- * tiles the period's readings, in `ai-profile-card`'s tile: the value
24
- * over its label. One row from 640, two columns below
25
- * breakdown `EarningsBreakdown` — `price-breakdown`'s itemisation, by kind
26
- * payout `EarningsPayoutRow` — an `item` row with the amount, the date
27
- * and the state
28
- *
29
- * ## Why this is built AROUND the chart card rather than beside it
30
- *
31
- * `EarningsChartCard` is already four of the five things a courier's earnings
32
- * screen needs: the period's figure, the change on the period before, the
33
- * Day / Week / Month switch and the bars of the last weeks. Drawing a second
34
- * figure and a second switch above it would have put two of everything on one
35
- * panel. So this family draws NONE of that — it hands the chart card the
36
- * period's data and adds the three things the chart card has no opinion about:
37
- * where the money came from, what the period's other readings were, and when
38
- * it reaches the bank.
39
- *
40
- * ## The money is never computed, and the headline is the proof
41
- *
42
- * `EarningsChartCard` formats its headline from a NUMBER, which is exactly what
43
- * this family must not do. So the headline is CHOSEN, not produced: this
44
- * component owns the chart's active index, and `format` returns the period's
45
- * own `total` at rest and the hovered bar's own `amount` over a bar — both
46
- * strings the app formatted. A bar's `value` is geometry and is never drawn.
47
- *
48
- * Two consequences, both deliberate:
49
- *
50
- * - **The headline does not roll.** `ChartHeadline` counts a number up over
51
- * 320ms; a pre-formatted amount has nothing to count. The 220ms fade still
52
- * plays, so the change is still visible.
53
- * - **The Y axis prints a number.** A tick is a position on a scale the chart
54
- * chose, not a sum the app made, so no string exists for it to have
55
- * formatted. The default prints the rounded number with no currency;
56
- * `formatAxisValue` is where an app puts its own.
57
- *
58
- * **A jest test cannot see the hover.** The plot surface that carries the
59
- * pointer handlers only exists after `onLayout`, which jsdom never fires —
60
- * gutting `setActiveIndex` to a no-op leaves `Earnings.test.tsx` green. The
61
- * choice itself (`earningsHeadline`) is pure and pinned there; that the panel
62
- * owns the active bar is pinned in `scripts/verify-earnings-headline.mjs`.
63
- *
64
- * ## The period is controlled here, and the chart is remounted to follow it
65
- *
66
- * `useChartRange` inside `chart-cards` is uncontrolled — it has a `defaultRange`
67
- * and no `range` — so a period changed from OUTSIDE cannot reach the chart's own
68
- * segmented control. The chart is therefore keyed on the period id: an external
69
- * change remounts it with the new default rather than letting the switch and the
70
- * panel disagree. The cost is that the bars grow in again instead of morphing.
71
- */
72
-
73
- /** The axis's last resort: a number, rounded, with nobody's currency on it. */
74
- const roundedAxisValue = value => String(Math.round(value));
75
- function EarningsSummaryComponent({
76
- periods,
77
- period: periodProp,
78
- defaultPeriod,
79
- onPeriodChange,
80
- payout,
81
- onPressPayout,
82
- payoutAction,
83
- formatAxisValue = roundedAxisValue,
84
- chartHeight,
85
- breakdown,
86
- stats,
87
- labels: labelOverrides,
88
- accessibilityLabel: accessibilityLabelProp,
89
- style,
90
- testID
91
- }) {
92
- const {
93
- messages
94
- } = useMessages(EARNINGS_MESSAGES);
95
- const accessibilityLabel = accessibilityLabelProp ?? messages.earnings;
96
- const theme = useTheme();
97
- const surface = useSurfaceFill();
98
- const paint = useMemo(() => resolveEarningsPaint(theme, surface), [theme, surface]);
99
- const labels = useMemo(() => ({
100
- ...messages,
101
- ...labelOverrides,
102
- payoutState: {
103
- ...messages.payoutState,
104
- ...labelOverrides?.payoutState
105
- }
106
- }), [messages, labelOverrides]);
107
- const [periodId, setPeriodId] = useControllableState({
108
- value: periodProp,
109
- defaultValue: defaultPeriod ?? periods[0]?.id ?? '',
110
- onChange: onPeriodChange
111
- });
112
- const current = resolveEarningsPeriod(periods, periodId);
113
-
114
- // The chart's active bar is OWNED here: the headline has to be able to say
115
- // which amount it is showing, and only this component knows the strings.
116
- const [selection, setSelection] = useState(null);
117
- const currentPeriod = current?.id;
118
- // A controlled prop change must clear selection before the new headline paints.
119
- if (selection && selection.period !== currentPeriod) setSelection(null);
120
- const activeIndex = selection?.period === currentPeriod ? selection?.index ?? null : null;
121
- const setActiveIndex = useCallback(index => {
122
- setSelection({
123
- period: currentPeriod,
124
- index
125
- });
126
- }, [currentPeriod]);
127
- const changePeriod = useCallback(id => {
128
- setActiveIndex(null);
129
- setPeriodId(id);
130
- }, [setPeriodId, setActiveIndex]);
131
- const {
132
- width,
133
- onLayout
134
- } = useContainerWidth();
135
- const wide = width === null || width >= EARNINGS_GEOMETRY.narrowWidth;
136
- const id = part => testID ? `${testID}-${part}` : undefined;
137
- const bars = current?.bars;
138
- const total = current?.total ?? '';
139
- const chartData = useMemo(() => (bars ?? []).map(bar => ({
140
- label: bar.label,
141
- value: bar.value
142
- })), [bars]);
143
- const ranges = useMemo(() => periods.map(entry => ({
144
- id: entry.id,
145
- label: entry.label
146
- })), [periods]);
147
-
148
- // Both are CHOSEN from strings the app formatted, never produced from a
149
- // number: `format` ignores the value the count-up hands it on purpose.
150
- const headlineText = earningsHeadline(total, bars, activeIndex);
151
- const headlineLabel = earningsHeadlineLabel(labels.earned, bars, activeIndex);
152
- const format = useCallback(() => headlineText, [headlineText]);
153
- const periodStats = current?.stats ?? [];
154
- const showStats = (stats ?? true) && periodStats.length > 0;
155
- const periodLines = current?.lines ?? [];
156
- const showBreakdown = (breakdown ?? true) && periodLines.length > 0;
157
- const shownPayout = current?.payout ?? payout;
158
- const tileRows = [];
159
- if (wide) {
160
- if (periodStats.length > 0) tileRows.push(periodStats.map((_unused, index) => index));
161
- } else {
162
- for (let i = 0; i < periodStats.length; i += 2) tileRows.push(i + 1 < periodStats.length ? [i, i + 1] : [i]);
163
- }
164
- return /*#__PURE__*/_jsx(SurfaceLevelProvider, {
165
- level: 0,
166
- fill: paint.surface,
167
- children: /*#__PURE__*/_jsxs(View, {
168
- collapsable: false,
169
- onLayout: onLayout,
170
- role: "group",
171
- accessibilityLabel: accessibilityLabel,
172
- style: [{
173
- gap: EARNINGS_GEOMETRY.gap
174
- }, style],
175
- testID: testID,
176
- children: [/*#__PURE__*/_jsx(EarningsChartCard, {
177
- title: headlineLabel,
178
- data: chartData
179
- // The figure is a string, so the number behind it only has to be
180
- // STABLE — the fade replays on the period and the bar, not on it.
181
- ,
182
- headline: 0,
183
- delta: current?.deltaRatio,
184
- ranges: ranges.length > 1 ? ranges : undefined,
185
- defaultRange: periodId,
186
- onRangeChange: changePeriod,
187
- rangesLabel: labels.period,
188
- format: format,
189
- formatAxisValue: formatAxisValue,
190
- activeIndex: activeIndex,
191
- onActiveIndexChange: setActiveIndex,
192
- accessibilityLabel: labels.chart(current?.label ?? ''),
193
- style: chartHeight === undefined ? undefined : {
194
- height: chartHeight
195
- },
196
- testID: id('chart')
197
- }, periodId), current?.caption ? /*#__PURE__*/_jsx(Text, {
198
- variant: "body-2-regular",
199
- style: {
200
- color: paint.textSecondary
201
- },
202
- testID: id('caption'),
203
- children: current.caption
204
- }) : null, showStats ? /*#__PURE__*/_jsx(View, {
205
- style: {
206
- gap: EARNINGS_GEOMETRY.tileGap
207
- },
208
- testID: id('stats'),
209
- children: tileRows.map(row => /*#__PURE__*/_jsxs(View, {
210
- style: {
211
- flexDirection: 'row',
212
- alignItems: 'stretch',
213
- gap: EARNINGS_GEOMETRY.tileGap
214
- },
215
- children: [row.map(index => {
216
- const stat = periodStats[index];
217
- return /*#__PURE__*/_jsxs(View, {
218
- style: [styles.tile, {
219
- backgroundColor: paint.tile
220
- }],
221
- testID: id(`stat-${index}`),
222
- children: [/*#__PURE__*/_jsx(Text, {
223
- variant: "body-medium",
224
- numberOfLines: 1,
225
- style: {
226
- width: '100%',
227
- color: paint.tileText.text
228
- },
229
- children: stat.value
230
- }), /*#__PURE__*/_jsx(Text, {
231
- variant: "body-2-medium",
232
- numberOfLines: 1,
233
- style: {
234
- width: '100%',
235
- color: paint.tileText.textSecondary
236
- },
237
- children: stat.label
238
- })]
239
- }, `${index}-${stat.label}`);
240
- }), !wide && row.length === 1 ? /*#__PURE__*/_jsx(View, {
241
- style: styles.tileSpacer
242
- }) : null]
243
- }, `stat-row-${row[0]}`))
244
- }) : null, showBreakdown ? /*#__PURE__*/_jsx(EarningsBreakdown, {
245
- lines: periodLines,
246
- title: labels.breakdown,
247
- labels: labelOverrides,
248
- testID: id('breakdown')
249
- }) : null, shownPayout ? /*#__PURE__*/_jsx(EarningsPayoutRow, {
250
- payout: shownPayout,
251
- title: labels.payout,
252
- onPress: onPressPayout,
253
- action: payoutAction,
254
- labels: labelOverrides,
255
- testID: id('payout')
256
- }) : null, !showStats && !showBreakdown && shownPayout === undefined ? /*#__PURE__*/_jsx(Text, {
257
- variant: "body-regular",
258
- style: {
259
- color: paint.textSecondary
260
- },
261
- testID: id('empty'),
262
- children: labels.empty
263
- }) : null]
264
- })
265
- });
266
- }
267
- const styles = StyleSheet.create({
268
- tile: {
269
- flexGrow: 1,
270
- flexShrink: 1,
271
- flexBasis: 0,
272
- minWidth: 0,
273
- alignItems: 'flex-start',
274
- borderRadius: EARNINGS_GEOMETRY.tileRadius,
275
- paddingTop: EARNINGS_GEOMETRY.tilePadding,
276
- paddingBottom: EARNINGS_GEOMETRY.tilePadding,
277
- paddingLeft: EARNINGS_GEOMETRY.tilePadding,
278
- paddingRight: EARNINGS_GEOMETRY.tilePadding
279
- },
280
- tileSpacer: {
281
- flexGrow: 1,
282
- flexShrink: 1,
283
- flexBasis: 0,
284
- minWidth: 0
285
- }
286
- });
287
- export const EarningsSummary = /*#__PURE__*/memo(EarningsSummaryComponent);
288
- EarningsSummary.displayName = 'EarningsSummary';
289
- //# sourceMappingURL=EarningsSummary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","memo","useCallback","useMemo","useState","StyleSheet","View","EarningsChartCard","useContainerWidth","useControllableState","useMessages","SurfaceLevelProvider","useSurfaceFill","useTheme","Text","EARNINGS_GEOMETRY","EARNINGS_MESSAGES","EarningsBreakdown","EarningsPayoutRow","earningsHeadline","earningsHeadlineLabel","resolveEarningsPaint","resolveEarningsPeriod","jsx","_jsx","jsxs","_jsxs","roundedAxisValue","value","String","Math","round","EarningsSummaryComponent","periods","period","periodProp","defaultPeriod","onPeriodChange","payout","onPressPayout","payoutAction","formatAxisValue","chartHeight","breakdown","stats","labels","labelOverrides","accessibilityLabel","accessibilityLabelProp","style","testID","messages","earnings","theme","surface","paint","payoutState","periodId","setPeriodId","defaultValue","id","onChange","current","selection","setSelection","currentPeriod","activeIndex","index","setActiveIndex","changePeriod","width","onLayout","wide","narrowWidth","part","undefined","bars","total","chartData","map","bar","label","ranges","entry","headlineText","headlineLabel","earned","format","periodStats","showStats","length","periodLines","lines","showBreakdown","shownPayout","tileRows","push","_unused","i","level","fill","children","collapsable","role","gap","title","data","headline","delta","deltaRatio","defaultRange","onRangeChange","rangesLabel","onActiveIndexChange","chart","height","caption","variant","color","textSecondary","tileGap","row","flexDirection","alignItems","stat","styles","tile","backgroundColor","numberOfLines","tileText","text","tileSpacer","onPress","action","empty","create","flexGrow","flexShrink","flexBasis","minWidth","borderRadius","tileRadius","paddingTop","tilePadding","paddingBottom","paddingLeft","paddingRight","EarningsSummary","displayName"],"sourceRoot":"../../../src","sources":["earnings/EarningsSummary.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACnE,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,iBAAiB,QAAQ,yBAAgB;AAClD,SAASC,iBAAiB,QAAQ,iCAA8B;AAChE,SAASC,oBAAoB,QAAQ,oCAAiC;AACtE,SAASC,WAAW,QAAQ,uBAAoB;AAChD,SAASC,oBAAoB,EAAEC,cAAc,QAAQ,6BAA0B;AAC/E,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,iBAAiB,QAAQ,gBAAa;AAC/C,SAASC,iBAAiB,QAAQ,eAAY;AAC9C,SAASC,iBAAiB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EF,OAAO,MAAMQ,eAAe,gBAAGlJ,IAAI,CAAC+B,wBAAwB,CAAC;AAC7DmH,eAAe,CAACC,WAAW,GAAG,iBAAiB","ignoreList":[]}
@@ -1,58 +0,0 @@
1
- "use strict";
2
-
3
- import { RADIUS } from "../design-tokens/scales.js";
4
- import { EARNINGS_MESSAGES } from "./messages.js";
5
- import { BREAKPOINTS } from "../styles/breakpoints.js";
6
-
7
- /**
8
- * Every default word the family draws, in English. The components speak
9
- * `EARNINGS_MESSAGES` in the resolved locale.
10
- */
11
- export const EARNINGS_LABELS = {
12
- earned: EARNINGS_MESSAGES.en.earned,
13
- period: EARNINGS_MESSAGES.en.period,
14
- breakdown: EARNINGS_MESSAGES.en.breakdown,
15
- payout: EARNINGS_MESSAGES.en.payout,
16
- payoutState: EARNINGS_MESSAGES.en.payoutState,
17
- chart: EARNINGS_MESSAGES.en.chart,
18
- empty: EARNINGS_MESSAGES.en.empty
19
- };
20
-
21
- /**
22
- * The tone each payout state is painted in.
23
- *
24
- * `scheduled` is `default` because waiting is not news. `processing` is `info`:
25
- * something is happening and there is nothing to do about it. `paid` is
26
- * `success`. `held` is `warning` and `failed` is `error` — the two that need
27
- * the reader to act, told apart by whether the money is still coming.
28
- */
29
- export const EARNINGS_PAYOUT_TONE = {
30
- scheduled: 'default',
31
- processing: 'info',
32
- paid: 'success',
33
- held: 'warning',
34
- failed: 'error'
35
- };
36
-
37
- /**
38
- * The panel's geometry.
39
- *
40
- * `tile` is `ai-profile-card`'s stat tile exactly — radius 10, padding 10, the
41
- * reading over its label — because a courier's "18 jobs" and a profile's
42
- * "9B lifetime tokens" are the same object, and two tile geometries in one
43
- * library is two answers to one question.
44
- */
45
- export const EARNINGS_GEOMETRY = {
46
- /** Between the chart, the tiles, the breakdown and the payout. */
47
- gap: 16,
48
- /** Between tiles, and between tile rows. */
49
- tileGap: 8,
50
- tilePadding: 10,
51
- tileRadius: 10,
52
- /** The payout row's leading glyph tile. */
53
- glyph: 40,
54
- glyphRadius: RADIUS['radius-12'],
55
- /** Under this the tiles stack two to a row. */
56
- narrowWidth: BREAKPOINTS.sm
57
- };
58
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["RADIUS","EARNINGS_MESSAGES","BREAKPOINTS","EARNINGS_LABELS","earned","en","period","breakdown","payout","payoutState","chart","empty","EARNINGS_PAYOUT_TONE","scheduled","processing","paid","held","failed","EARNINGS_GEOMETRY","gap","tileGap","tilePadding","tileRadius","glyph","glyphRadius","narrowWidth","sm"],"sourceRoot":"../../../src","sources":["earnings/constants.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,4BAAyB;AAEhD,SAASC,iBAAiB,QAAQ,eAAY;AAE9C,SAASC,WAAW,QAAQ,0BAAuB;;AAEnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAEZ,GAAG;EACFC,MAAM,EAAEH,iBAAiB,CAACI,EAAE,CAACD,MAAM;EACnCE,MAAM,EAAEL,iBAAiB,CAACI,EAAE,CAACC,MAAM;EACnCC,SAAS,EAAEN,iBAAiB,CAACI,EAAE,CAACE,SAAS;EACzCC,MAAM,EAAEP,iBAAiB,CAACI,EAAE,CAACG,MAAM;EACnCC,WAAW,EAAER,iBAAiB,CAACI,EAAE,CAACI,WAAW;EAC7CC,KAAK,EAAET,iBAAiB,CAACI,EAAE,CAACK,KAAK;EACjCC,KAAK,EAAEV,iBAAiB,CAACI,EAAE,CAACM;AAC9B,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,oBAA6D,GAAG;EAC3EC,SAAS,EAAE,SAAS;EACpBC,UAAU,EAAE,MAAM;EAClBC,IAAI,EAAE,SAAS;EACfC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE;AACV,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAG;EAC/B;EACAC,GAAG,EAAE,EAAE;EACP;EACAC,OAAO,EAAE,CAAC;EACVC,WAAW,EAAE,EAAE;EACfC,UAAU,EAAE,EAAE;EACd;EACAC,KAAK,EAAE,EAAE;EACTC,WAAW,EAAExB,MAAM,CAAC,WAAW,CAAC;EAChC;EACAyB,WAAW,EAAEvB,WAAW,CAACwB;AAC3B,CAAU","ignoreList":[]}
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- export { EarningsBreakdown } from "./EarningsBreakdown.js";
4
- export { EarningsPayoutRow } from "./EarningsPayoutRow.js";
5
- export { EarningsSummary } from "./EarningsSummary.js";
6
- export { EARNINGS_GEOMETRY, EARNINGS_LABELS, EARNINGS_PAYOUT_TONE } from "./constants.js";
7
- export { earningsHeadline, earningsHeadlineLabel, joinEarningsName, resolveEarningsPaint, resolveEarningsPeriod } from "./shared.js";
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["EarningsBreakdown","EarningsPayoutRow","EarningsSummary","EARNINGS_GEOMETRY","EARNINGS_LABELS","EARNINGS_PAYOUT_TONE","earningsHeadline","earningsHeadlineLabel","joinEarningsName","resolveEarningsPaint","resolveEarningsPeriod"],"sourceRoot":"../../../src","sources":["earnings/index.ts"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,iBAAiB,EAAEC,eAAe,EAAEC,oBAAoB,QAAQ,gBAAa;AAEtF,SACEC,gBAAgB,EAChBC,qBAAqB,EACrBC,gBAAgB,EAChBC,oBAAoB,EACpBC,qBAAqB,QAChB,aAAU","ignoreList":[]}