@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,51 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PROOF_ORDER = exports.PROOF_LABELS = exports.PROOF_GEOMETRY = void 0;
7
- var _scales = require("../design-tokens/scales.js");
8
- var _messages = require("./messages.js");
9
- /**
10
- * Every default word the family draws, in English. The components speak
11
- * `PROOF_OF_DELIVERY_MESSAGES` in the resolved locale.
12
- */
13
- const PROOF_LABELS = exports.PROOF_LABELS = _messages.PROOF_OF_DELIVERY_MESSAGES.en.labels;
14
-
15
- /**
16
- * The order the door is worked through, and it is not arbitrary.
17
- *
18
- * Recipient first, because it is the one question the courier asks out loud and
19
- * the answer to it decides the rest. Then the two proofs the RECIPIENT takes
20
- * part in — the signature they give and the code they read out — then the photo,
21
- * which is taken after they have gone, and the note last, because it is written
22
- * about everything above it.
23
- */
24
- const PROOF_ORDER = exports.PROOF_ORDER = ['recipient', 'signature', 'code', 'photo', 'note'];
25
-
26
- /**
27
- * The pad's geometry.
28
- *
29
- * `baseline` is where the rule sits as a fraction of the height: a signature is
30
- * written ON a line, and without one a finger starts wherever it lands and the
31
- * capture reads as a doodle. 0.72 leaves a descender's worth of room under it.
32
- */
33
- const PROOF_GEOMETRY = exports.PROOF_GEOMETRY = {
34
- padHeight: 180,
35
- padRadius: _scales.RADIUS['radius-12'],
36
- baseline: 0.72,
37
- /** How far in from each side the baseline stops. */
38
- baselineInset: 16,
39
- strokeWidth: 2.5,
40
- /** Between the blocks of the form. */
41
- gap: 20,
42
- /** Between a block's own parts. */
43
- blockGap: 8,
44
- /**
45
- * How far a finger must travel before a press becomes a stroke. Below it a
46
- * single tap still records a DOT, which is what a full stop in a signature
47
- * is — the threshold decides smoothing, never whether ink was laid down.
48
- */
49
- smoothing: 2
50
- };
51
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_scales","require","_messages","PROOF_LABELS","exports","PROOF_OF_DELIVERY_MESSAGES","en","labels","PROOF_ORDER","PROOF_GEOMETRY","padHeight","padRadius","RADIUS","baseline","baselineInset","strokeWidth","gap","blockGap","smoothing"],"sourceRoot":"../../../src","sources":["proof-of-delivery/constants.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAGA;AACA;AACA;AACA;AACO,MAAME,YAA6C,GAAAC,OAAA,CAAAD,YAAA,GAAGE,oCAA0B,CAACC,EAAE,CAACC,MAAM;;AAEjG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,WAAiC,GAAAJ,OAAA,CAAAI,WAAA,GAAG,CAC/C,WAAW,EACX,WAAW,EACX,MAAM,EACN,OAAO,EACP,MAAM,CACP;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,cAAc,GAAAL,OAAA,CAAAK,cAAA,GAAG;EAC5BC,SAAS,EAAE,GAAG;EACdC,SAAS,EAAEC,cAAM,CAAC,WAAW,CAAC;EAC9BC,QAAQ,EAAE,IAAI;EACd;EACAC,aAAa,EAAE,EAAE;EACjBC,WAAW,EAAE,GAAG;EAChB;EACAC,GAAG,EAAE,EAAE;EACP;EACAC,QAAQ,EAAE,CAAC;EACX;AACF;AACA;AACA;AACA;EACEC,SAAS,EAAE;AACb,CAAU","ignoreList":[]}
@@ -1,106 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "EMPTY_PROOF", {
7
- enumerable: true,
8
- get: function () {
9
- return _shared.EMPTY_PROOF;
10
- }
11
- });
12
- Object.defineProperty(exports, "EMPTY_SIGNATURE", {
13
- enumerable: true,
14
- get: function () {
15
- return _shared.EMPTY_SIGNATURE;
16
- }
17
- });
18
- Object.defineProperty(exports, "PROOF_GEOMETRY", {
19
- enumerable: true,
20
- get: function () {
21
- return _constants.PROOF_GEOMETRY;
22
- }
23
- });
24
- Object.defineProperty(exports, "PROOF_LABELS", {
25
- enumerable: true,
26
- get: function () {
27
- return _constants.PROOF_LABELS;
28
- }
29
- });
30
- Object.defineProperty(exports, "PROOF_ORDER", {
31
- enumerable: true,
32
- get: function () {
33
- return _constants.PROOF_ORDER;
34
- }
35
- });
36
- Object.defineProperty(exports, "ProofOfDelivery", {
37
- enumerable: true,
38
- get: function () {
39
- return _ProofOfDelivery.ProofOfDelivery;
40
- }
41
- });
42
- Object.defineProperty(exports, "SignaturePad", {
43
- enumerable: true,
44
- get: function () {
45
- return _SignaturePad.SignaturePad;
46
- }
47
- });
48
- Object.defineProperty(exports, "completeProofValue", {
49
- enumerable: true,
50
- get: function () {
51
- return _shared.completeProofValue;
52
- }
53
- });
54
- Object.defineProperty(exports, "hasSignatureInk", {
55
- enumerable: true,
56
- get: function () {
57
- return _shared.hasSignatureInk;
58
- }
59
- });
60
- Object.defineProperty(exports, "isProofGiven", {
61
- enumerable: true,
62
- get: function () {
63
- return _shared.isProofGiven;
64
- }
65
- });
66
- Object.defineProperty(exports, "isSignatureGiven", {
67
- enumerable: true,
68
- get: function () {
69
- return _shared.isSignatureGiven;
70
- }
71
- });
72
- Object.defineProperty(exports, "missingProofs", {
73
- enumerable: true,
74
- get: function () {
75
- return _shared.missingProofs;
76
- }
77
- });
78
- Object.defineProperty(exports, "orderProofs", {
79
- enumerable: true,
80
- get: function () {
81
- return _shared.orderProofs;
82
- }
83
- });
84
- Object.defineProperty(exports, "resolveProofPaint", {
85
- enumerable: true,
86
- get: function () {
87
- return _shared.resolveProofPaint;
88
- }
89
- });
90
- Object.defineProperty(exports, "shouldKeepSignaturePoint", {
91
- enumerable: true,
92
- get: function () {
93
- return _shared.shouldKeepSignaturePoint;
94
- }
95
- });
96
- Object.defineProperty(exports, "signaturePath", {
97
- enumerable: true,
98
- get: function () {
99
- return _shared.signaturePath;
100
- }
101
- });
102
- var _ProofOfDelivery = require("./ProofOfDelivery.js");
103
- var _SignaturePad = require("./SignaturePad.js");
104
- var _constants = require("./constants.js");
105
- var _shared = require("./shared.js");
106
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_ProofOfDelivery","require","_SignaturePad","_constants","_shared"],"sourceRoot":"../../../src","sources":["proof-of-delivery/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA","ignoreList":[]}
@@ -1,41 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PROOF_OF_DELIVERY_MESSAGES = void 0;
7
- var _messages = require("../locale/messages.js");
8
- var _plural = require("../locale/plural.js");
9
- /**
10
- * Every fixed string the proof-of-delivery family draws or announces, in each
11
- * Bloom language. A caller's `labels` and `accessibilityLabel` still win.
12
- */
13
-
14
- const PROOF_OF_DELIVERY_MESSAGES = exports.PROOF_OF_DELIVERY_MESSAGES = (0, _messages.defineMessages)('PROOF_OF_DELIVERY_MESSAGES', {
15
- labels: {
16
- signature: 'Signature',
17
- signaturePad: 'Signature',
18
- signatureHint: 'Sign with your finger',
19
- signed: 'Signed',
20
- clear: 'Clear the signature',
21
- typeName: 'Or type your name',
22
- typeNamePlaceholder: 'Full name',
23
- photo: 'Photo',
24
- photoHint: 'Where you left it, or the parcel with the recipient.',
25
- code: 'Delivery code',
26
- codeHint: 'Ask the recipient to read out the code in their app.',
27
- recipient: 'Who received it',
28
- recipientPlaceholder: 'Name',
29
- note: 'Note',
30
- notePlaceholder: 'Anything worth recording',
31
- submit: 'Confirm the delivery',
32
- required: 'Required',
33
- missing: 'This is needed before you can confirm.',
34
- missingSummary: n => (0, _plural.plural)('en', n, {
35
- one: 'One thing is still missing',
36
- other: '{n} things are still missing'
37
- })
38
- },
39
- proofOfDelivery: 'Proof of delivery'
40
- });
41
- //# sourceMappingURL=messages.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_messages","require","_plural","PROOF_OF_DELIVERY_MESSAGES","exports","defineMessages","labels","signature","signaturePad","signatureHint","signed","clear","typeName","typeNamePlaceholder","photo","photoHint","code","codeHint","recipient","recipientPlaceholder","note","notePlaceholder","submit","required","missing","missingSummary","n","plural","one","other","proofOfDelivery"],"sourceRoot":"../../../src","sources":["proof-of-delivery/messages.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAGA;AACA;AACA;AACA;;AAOO,MAAME,0BAAmE,GAAAC,OAAA,CAAAD,0BAAA,GAC9E,IAAAE,wBAAc,EAA0B,4BAA4B,EAAE;EACpEC,MAAM,EAAE;IACNC,SAAS,EAAE,WAAW;IACtBC,YAAY,EAAE,WAAW;IACzBC,aAAa,EAAE,uBAAuB;IACtCC,MAAM,EAAE,QAAQ;IAChBC,KAAK,EAAE,qBAAqB;IAC5BC,QAAQ,EAAE,mBAAmB;IAC7BC,mBAAmB,EAAE,WAAW;IAChCC,KAAK,EAAE,OAAO;IACdC,SAAS,EAAE,sDAAsD;IACjEC,IAAI,EAAE,eAAe;IACrBC,QAAQ,EAAE,sDAAsD;IAChEC,SAAS,EAAE,iBAAiB;IAC5BC,oBAAoB,EAAE,MAAM;IAC5BC,IAAI,EAAE,MAAM;IACZC,eAAe,EAAE,0BAA0B;IAC3CC,MAAM,EAAE,sBAAsB;IAC9BC,QAAQ,EAAE,UAAU;IACpBC,OAAO,EAAE,wCAAwC;IACjDC,cAAc,EAAGC,CAAC,IAChB,IAAAC,cAAM,EAAC,IAAI,EAAED,CAAC,EAAE;MACdE,GAAG,EAAE,4BAA4B;MACjCC,KAAK,EAAE;IACT,CAAC;EACL,CAAC;EACDC,eAAe,EAAE;AACnB,CAAC,CAAC","ignoreList":[]}
@@ -1,171 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.EMPTY_SIGNATURE = exports.EMPTY_PROOF = void 0;
7
- exports.completeProofValue = completeProofValue;
8
- exports.hasSignatureInk = hasSignatureInk;
9
- exports.isProofGiven = isProofGiven;
10
- exports.isSignatureGiven = isSignatureGiven;
11
- exports.missingProofs = missingProofs;
12
- exports.orderProofs = orderProofs;
13
- exports.resolveProofPaint = resolveProofPaint;
14
- exports.shouldKeepSignaturePoint = shouldKeepSignaturePoint;
15
- exports.signaturePath = signaturePath;
16
- var _surfaceLevels = require("../styles/surface-levels.js");
17
- var _constants = require("./constants.js");
18
- /**
19
- * The pure decisions behind the door step: what a stroke looks like as a path,
20
- * whether a proof has been given, and what is still missing.
21
- *
22
- * All of it is exported because none of it can be measured where it is used.
23
- * **A jest test cannot see a canvas** — react-native-svg renders to a native
24
- * view on one platform and to a `<path>` on the other, and jsdom paints
25
- * neither — so the drawing is verified in a real browser
26
- * (`scripts/verify-signature-pad.mjs`) and the GEOMETRY is verified here, as a
27
- * function of points, where every boundary is reachable: no points, one point,
28
- * two, a hundred.
29
- */
30
-
31
- function resolveProofPaint(theme, surface) {
32
- const text = (0, _surfaceLevels.surfaceTextOn)(theme, surface);
33
- const pad = (0, _surfaceLevels.surfaceFillOn)(theme, surface);
34
- return {
35
- surface,
36
- hairline: (0, _surfaceLevels.hairlineOn)(theme, surface),
37
- pad,
38
- text: text.text,
39
- textSecondary: text.textSecondary,
40
- textTertiary: text.textTertiary,
41
- padText: (0, _surfaceLevels.surfaceTextOn)(theme, pad)
42
- };
43
- }
44
-
45
- /** The empty value: nothing drawn, nothing typed, nothing photographed. */
46
- const EMPTY_SIGNATURE = exports.EMPTY_SIGNATURE = {
47
- strokes: [],
48
- typedName: ''
49
- };
50
- const EMPTY_PROOF = exports.EMPTY_PROOF = {
51
- signature: EMPTY_SIGNATURE,
52
- photos: [],
53
- code: '',
54
- recipient: '',
55
- note: ''
56
- };
57
-
58
- /** Fills the gaps in a partial value with the empty one, leaving the rest alone. */
59
- function completeProofValue(value) {
60
- return {
61
- signature: value?.signature ?? EMPTY_SIGNATURE,
62
- photos: value?.photos ?? EMPTY_PROOF.photos,
63
- code: value?.code ?? '',
64
- recipient: value?.recipient ?? '',
65
- note: value?.note ?? ''
66
- };
67
- }
68
-
69
- /**
70
- * One stroke as SVG path data, smoothed.
71
- *
72
- * no points `''` — nothing drawn is not a path of length zero, it is no
73
- * path at all, and an `<path d="">` is an element the browser
74
- * still lays out
75
- * one point a DOT: a zero-length line with a round cap, which is what a
76
- * full stop in a signature is. Without this a tap lays down
77
- * nothing and the reader taps harder
78
- * two or more a move, then a quadratic through the MIDPOINTS of successive
79
- * points, ending on the last point. Midpoint smoothing is what
80
- * turns a 60-samples-a-second polyline into something that
81
- * reads as handwriting; joining the raw points draws the
82
- * pointer's own stair-stepping
83
- *
84
- * Coordinates are rounded to two places: a signature does not need a
85
- * ten-thousandth of a pixel, and the untrimmed floats triple the size of a
86
- * value an app is about to upload.
87
- */
88
- function signaturePath(stroke) {
89
- if (stroke.length === 0) return '';
90
- const r = n => Math.round(n * 100) / 100;
91
- const first = stroke[0];
92
- if (stroke.length === 1) return `M${r(first.x)} ${r(first.y)}l0 0`;
93
- let d = `M${r(first.x)} ${r(first.y)}`;
94
- for (let i = 1; i < stroke.length - 1; i += 1) {
95
- const point = stroke[i];
96
- const next = stroke[i + 1];
97
- d += `Q${r(point.x)} ${r(point.y)} ${r((point.x + next.x) / 2)} ${r((point.y + next.y) / 2)}`;
98
- }
99
- const last = stroke[stroke.length - 1];
100
- d += `L${r(last.x)} ${r(last.y)}`;
101
- return d;
102
- }
103
-
104
- /**
105
- * Whether a point is far enough from the last one to be worth keeping.
106
- *
107
- * A pointer reports the same coordinate many times while a finger rests, and
108
- * every repeat is a quadratic segment of length zero that the smoothing then
109
- * has to average. Dropping them is what keeps the path proportional to the
110
- * MOVEMENT rather than to the duration of the press.
111
- */
112
- function shouldKeepSignaturePoint(last, point, minDistance = _constants.PROOF_GEOMETRY.smoothing) {
113
- if (last === undefined) return true;
114
- return Math.abs(point.x - last.x) + Math.abs(point.y - last.y) >= minDistance;
115
- }
116
-
117
- /** Whether anything has been drawn. A stroke with no points is not one. */
118
- function hasSignatureInk(value) {
119
- return (value?.strokes ?? []).some(stroke => stroke.length > 0);
120
- }
121
-
122
- /**
123
- * Whether a signature has been GIVEN, by either path.
124
- *
125
- * Drawn ink and a typed name are the same answer, and this is the one place
126
- * that is decided — so a screen-reader user who typed their name is never told
127
- * the signature is missing.
128
- */
129
- function isSignatureGiven(value) {
130
- return hasSignatureInk(value) || (value?.typedName ?? '').trim() !== '';
131
- }
132
-
133
- /**
134
- * Whether one proof has been given.
135
- *
136
- * A code counts only once it is FULL: `InputOtp` reports every keystroke, and
137
- * "2 of 4 digits" is not a code the recipient read out. `codeLength` is
138
- * therefore part of the question rather than something the caller checks after.
139
- */
140
- function isProofGiven(kind, value, codeLength) {
141
- switch (kind) {
142
- case 'signature':
143
- return isSignatureGiven(value.signature);
144
- case 'photo':
145
- return value.photos.some(photo => photo.status == null || photo.status === 'uploaded');
146
- case 'code':
147
- return value.code.length >= codeLength;
148
- case 'recipient':
149
- return value.recipient.trim() !== '';
150
- case 'note':
151
- return value.note.trim() !== '';
152
- }
153
- }
154
-
155
- /**
156
- * The required proofs that have not been given, in the order they were asked.
157
- *
158
- * A proof that is required but NOT DRAWN cannot be missing: an app that asks for
159
- * four proofs and requires a fifth it never showed would refuse a delivery over
160
- * a control nobody could see. The intersection is taken deliberately, and the
161
- * ORDER is the drawn order so the summary reads down the form.
162
- */
163
- function missingProofs(value, required, shown, codeLength) {
164
- return shown.filter(kind => required.includes(kind) && !isProofGiven(kind, value, codeLength));
165
- }
166
-
167
- /** The proofs to draw, in the canonical order, with anything unknown dropped. */
168
- function orderProofs(proofs) {
169
- return _constants.PROOF_ORDER.filter(kind => proofs.includes(kind));
170
- }
171
- //# sourceMappingURL=shared.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_surfaceLevels","require","_constants","resolveProofPaint","theme","surface","text","surfaceTextOn","pad","surfaceFillOn","hairline","hairlineOn","textSecondary","textTertiary","padText","EMPTY_SIGNATURE","exports","strokes","typedName","EMPTY_PROOF","signature","photos","code","recipient","note","completeProofValue","value","signaturePath","stroke","length","r","n","Math","round","first","x","y","d","i","point","next","last","shouldKeepSignaturePoint","minDistance","PROOF_GEOMETRY","smoothing","undefined","abs","hasSignatureInk","some","isSignatureGiven","trim","isProofGiven","kind","codeLength","photo","status","missingProofs","required","shown","filter","includes","orderProofs","proofs","PROOF_ORDER"],"sourceRoot":"../../../src","sources":["proof-of-delivery/shared.ts"],"mappings":"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","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["proof-of-delivery/types.ts"],"mappings":"","ignoreList":[]}
@@ -1,272 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ShipmentLoadPicker = void 0;
7
- var _FieldConstraintScope = require("../field/FieldConstraintScope.js");
8
- var _membership = require("../field/membership.js");
9
- var _react = _interopRequireWildcard(require("react"));
10
- var _reactNative = require("react-native");
11
- var _useContainerWidth = require("../hooks/use-container-width.js");
12
- var _SelectionCard = require("../card/SelectionCard.js");
13
- var _messages = require("../locale/messages.js");
14
- var _index = require("../segmented-control/index.js");
15
- var _index2 = require("../stepper/index.js");
16
- var _index3 = require("../text-field/index.js");
17
- var _index4 = require("../textarea/index.js");
18
- var _useTheme = require("../theme/use-theme.js");
19
- var _index5 = require("../typography/index.js");
20
- var _constants = require("./constants.js");
21
- var _messages2 = require("./messages.js");
22
- var _shared = require("./shared.js");
23
- var _jsxRuntime = require("react/jsx-runtime");
24
- var cache;
25
- function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
26
- /**
27
- * What is being moved, how big it is, how heavy and how many.
28
- *
29
- * kind the editor's selectable cards, one answer: a 44 icon tile, the
30
- * kind at `headline-semibold`, what it covers under it, a radio
31
- * indicator on the right
32
- * size a `SegmentedControl` of single letters, with the chosen rung's
33
- * sentence under it — four words never fit in one control at phone
34
- * width, and a control whose every option carries a sentence is a
35
- * list, not a segmented control
36
- * weight a `TextField` with its unit as a `TextFieldSuffix`, beside the
37
- * quantity from 480 wide and stacked under it below
38
- * quantity a `StepperRow` from 1
39
- * notes an auto-resizing `Textarea`, drawn only when asked for
40
- *
41
- * **THE VALUE IS ONE OBJECT AND IT ARRIVES WHOLE.** `onValueChange` is called
42
- * with the next `ShipmentLoad`, never with a patch: a form that merges patches
43
- * in four places has four chances to drop a field, and this one has none.
44
- *
45
- * **THE UNIT IS NOT PART OF THE VALUE.** `weight` holds digits and at most one
46
- * dot (`sanitizeWeight`), so an app parses a number; the "kg" beside it is
47
- * drawn, announced, and never stored.
48
- *
49
- * Validation is the app's. `errors` is keyed by field and each message sits
50
- * under its own control, in the error colour — the kind's under the cards.
51
- */
52
-
53
- function ShipmentLoadPickerComponent({
54
- value,
55
- onValueChange,
56
- kinds: kindsProp,
57
- sizes: sizesProp,
58
- notes = false,
59
- maxQuantity = 20,
60
- errors = {},
61
- labels: labelOverrides,
62
- disabled: disabledProp = false,
63
- style,
64
- testID
65
- }) {
66
- const {
67
- messages
68
- } = (0, _messages.useMessages)(_messages2.SHIPMENT_REQUEST_MESSAGES);
69
- const kinds = (0, _react.useMemo)(() => kindsProp ?? (0, _constants.builtInLoadKinds)(messages), [kindsProp, messages]);
70
- const sizes = (0, _react.useMemo)(() => sizesProp ?? (0, _constants.builtInLoadSizes)(messages), [sizesProp, messages]);
71
- const theme = (0, _useTheme.useTheme)();
72
- const paint = (0, _react.useMemo)(() => (0, _SelectionCard.resolveSelectionPaint)(theme), [theme]);
73
- const labels = (0, _react.useMemo)(() => ({
74
- ..._constants.SHIPMENT_LOAD_LABELS,
75
- ...messages.load,
76
- ...labelOverrides
77
- }), [messages, labelOverrides]);
78
- const field = (0, _membership.useFieldMembership)({
79
- accessibilityLabel: labelOverrides?.kind,
80
- disabled: disabledProp,
81
- invalid: !!errors.kind
82
- });
83
- const disabled = field.disabled;
84
- const {
85
- width,
86
- onLayout
87
- } = (0, _useContainerWidth.useContainerWidth)();
88
- const wide = width === null || width >= _constants.SHIPMENT_REQUEST_GEOMETRY.narrowWidth;
89
- const id = part => testID ? `${testID}-${part}` : undefined;
90
- const chosenSize = sizes.find(size => size.value === value.size);
91
-
92
- // The KIND group is the field's member and takes its id, name and error; the
93
- // cards and every control after them are its parts, which keep their own
94
- // names and freeze with the field (`field/FieldConstraintScope.tsx`).
95
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FieldConstraintScope.FieldConstraintScope, {
96
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
97
- testID: testID,
98
- onLayout: onLayout,
99
- style: [{
100
- gap: _constants.SHIPMENT_REQUEST_GEOMETRY.controlGap
101
- }, style],
102
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
103
- style: {
104
- gap: 8
105
- },
106
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.TextFieldLabel, {
107
- children: labels.kind
108
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
109
- collapsable: false,
110
- role: "radiogroup",
111
- nativeID: field.nativeID,
112
- "aria-describedby": field.describedBy,
113
- accessibilityHint: field.accessibilityHint,
114
- "aria-invalid": field.invalid || undefined,
115
- "aria-disabled": disabled || undefined,
116
- "aria-required": field.required || undefined,
117
- accessibilityLabel: field.accessibilityLabel ?? labels.kind,
118
- style: {
119
- gap: 12
120
- },
121
- testID: id('kind'),
122
- children: kinds.map(kind => /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectionCard.SelectionCard, {
123
- selection: "single",
124
- selected: value.kind === kind.value,
125
- onPress: () => {
126
- if (value.kind !== kind.value) onValueChange({
127
- ...value,
128
- kind: kind.value
129
- });
130
- },
131
- title: kind.label,
132
- description: kind.description,
133
- icon: kind.icon,
134
- compact: !wide,
135
- disabled: disabled || kind.disabled === true,
136
- accessibilityLabel: (0, _shared.joinShipmentName)([kind.label, kind.description]),
137
- testID: id(`kind-${kind.value}`)
138
- }, kind.value))
139
- }), errors.kind ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.TextFieldHint, {
140
- isInvalid: true,
141
- children: errors.kind
142
- }) : null]
143
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
144
- style: {
145
- gap: 8
146
- },
147
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.TextFieldLabel, {
148
- children: labels.size
149
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.SegmentedControl, {
150
- type: "radio",
151
- label: labels.size,
152
- value: value.size ?? '',
153
- onValueChange: size => {
154
- if (size !== '') onValueChange({
155
- ...value,
156
- size
157
- });
158
- },
159
- disabled: disabled,
160
- style: {
161
- alignSelf: 'stretch'
162
- },
163
- testID: id('size'),
164
- children: sizes.map(size => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.SegmentedControlItem, {
165
- value: size.value,
166
- disabled: disabled || size.disabled,
167
- accessibilityLabel: (0, _shared.joinShipmentName)([size.label, size.detail]),
168
- testID: id(`size-${size.value}`),
169
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.SegmentedControlItemText, {
170
- children: size.label
171
- })
172
- }, size.value))
173
- }), chosenSize?.detail ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.Text, {
174
- variant: "body-2-regular",
175
- style: {
176
- color: paint.textSecondary
177
- },
178
- testID: id('size-detail'),
179
- children: chosenSize.detail
180
- }) : null, errors.size ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.TextFieldHint, {
181
- isInvalid: true,
182
- children: errors.size
183
- }) : null]
184
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
185
- style: {
186
- flexDirection: wide ? 'row' : 'column',
187
- // The stepper has no label above it, so on a wide form the two
188
- // columns line up on their BOTTOM edge — the field and the counter,
189
- // not the field and the word above it.
190
- alignItems: wide ? 'flex-end' : 'stretch',
191
- gap: _constants.SHIPMENT_REQUEST_GEOMETRY.controlGap
192
- },
193
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
194
- style: [{
195
- gap: 8
196
- }, wide ? {
197
- width: _constants.SHIPMENT_REQUEST_GEOMETRY.weightWidth
198
- } : null],
199
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.TextFieldLabel, {
200
- children: labels.weight
201
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index3.TextField, {
202
- isInvalid: !!errors.weight,
203
- disabled: disabled,
204
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.TextFieldInput, {
205
- label: labels.weight,
206
- placeholder: null,
207
- value: value.weight,
208
- onChangeText: text => onValueChange({
209
- ...value,
210
- weight: (0, _shared.sanitizeWeight)(text)
211
- }),
212
- keyboardType: "decimal-pad",
213
- inputMode: "decimal",
214
- isInvalid: !!errors.weight,
215
- disabled: disabled,
216
- testID: id('weight')
217
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.TextFieldSuffix, {
218
- label: labels.weightUnit,
219
- children: labels.weightUnit
220
- })]
221
- }), errors.weight ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.TextFieldHint, {
222
- isInvalid: true,
223
- children: errors.weight
224
- }) : null]
225
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
226
- style: {
227
- flex: wide ? 1 : undefined,
228
- minWidth: 0,
229
- gap: 8
230
- },
231
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StepperRow, {
232
- title: labels.quantity,
233
- value: value.quantity,
234
- onValueChange: quantity => onValueChange({
235
- ...value,
236
- quantity
237
- }),
238
- min: 1,
239
- max: maxQuantity,
240
- formatValue: labels.quantityValue,
241
- size: "sm",
242
- disabled: disabled,
243
- style: {
244
- paddingTop: 0,
245
- paddingBottom: 0
246
- },
247
- testID: id('quantity')
248
- }), errors.quantity ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.TextFieldHint, {
249
- isInvalid: true,
250
- children: errors.quantity
251
- }) : null]
252
- })]
253
- }), notes ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.Textarea, {
254
- label: labels.notes,
255
- placeholder: labels.notesPlaceholder,
256
- value: value.notes ?? '',
257
- onChangeText: text => onValueChange({
258
- ...value,
259
- notes: text
260
- }),
261
- rows: 3,
262
- autoResize: true,
263
- maxRows: 6,
264
- disabled: disabled,
265
- testID: id('notes')
266
- }) : null]
267
- })
268
- });
269
- }
270
- const ShipmentLoadPicker = exports.ShipmentLoadPicker = /*#__PURE__*/(0, _react.memo)(ShipmentLoadPickerComponent);
271
- ShipmentLoadPicker.displayName = 'ShipmentLoadPicker';
272
- //# sourceMappingURL=ShipmentLoadPicker.js.map