@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.
- package/docs/admonition.mdx +1 -2
- package/docs/adoption-matrix.mdx +3 -12
- package/docs/bloom-language-modifiers.mdx +9 -48
- package/docs/bloom-language-nodes.mdx +2 -195
- package/docs/bloom-language-tokens.mdx +2 -2
- package/docs/bloom-language.mdx +18 -56
- package/docs/empty-state.mdx +1 -2
- package/docs/fab.mdx +5 -3
- package/docs/field.mdx +1 -1
- package/docs/public-parts.mdx +2 -18
- package/docs/screen.mdx +10 -0
- package/docs/scroll.mdx +7 -0
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/button/Button.web.js +5 -2
- package/lib/commonjs/button/Button.web.js.map +1 -1
- package/lib/commonjs/button/shared.js.map +1 -1
- package/lib/commonjs/chat-composer/shared.js.map +1 -1
- package/lib/commonjs/chat-people/StoryViewer.js +2 -1
- package/lib/commonjs/chat-people/StoryViewer.js.map +1 -1
- package/lib/commonjs/date-picker/PickerShell.js +2 -1
- package/lib/commonjs/date-picker/PickerShell.js.map +1 -1
- package/lib/commonjs/dialog/DetailDialogMotion.js +10 -4
- package/lib/commonjs/dialog/DetailDialogMotion.js.map +1 -1
- package/lib/commonjs/fab/constants.js +5 -2
- package/lib/commonjs/fab/constants.js.map +1 -1
- package/lib/commonjs/fab/index.js +6 -0
- package/lib/commonjs/fab/index.js.map +1 -1
- package/lib/commonjs/fab/index.web.js +6 -0
- package/lib/commonjs/fab/index.web.js.map +1 -1
- package/lib/commonjs/fab/use-fab-props.js +1 -1
- package/lib/commonjs/fab/use-fab-props.js.map +1 -1
- package/lib/commonjs/field/FieldConstraintScope.js +2 -2
- package/lib/commonjs/floating/lens/lens-button-host.js +2 -1
- package/lib/commonjs/floating/lens/lens-button-host.js.map +1 -1
- package/lib/commonjs/floating/lens/lens-tint.js +19 -0
- package/lib/commonjs/floating/lens/lens-tint.js.map +1 -0
- package/lib/commonjs/floating/lens/use-lens-menu.js +2 -1
- package/lib/commonjs/floating/lens/use-lens-menu.js.map +1 -1
- package/lib/commonjs/index.js +229 -866
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +229 -866
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/listing-actions/ApplicationChecklist.js.map +1 -1
- package/lib/commonjs/locale/translations/ar.js +0 -262
- package/lib/commonjs/locale/translations/ar.js.map +1 -1
- package/lib/commonjs/locale/translations/bn.js +0 -234
- package/lib/commonjs/locale/translations/bn.js.map +1 -1
- package/lib/commonjs/locale/translations/ca.js +0 -249
- package/lib/commonjs/locale/translations/ca.js.map +1 -1
- package/lib/commonjs/locale/translations/de.js +0 -246
- package/lib/commonjs/locale/translations/de.js.map +1 -1
- package/lib/commonjs/locale/translations/es.js +0 -249
- package/lib/commonjs/locale/translations/es.js.map +1 -1
- package/lib/commonjs/locale/translations/fr.js +0 -249
- package/lib/commonjs/locale/translations/fr.js.map +1 -1
- package/lib/commonjs/locale/translations/hi.js +0 -240
- package/lib/commonjs/locale/translations/hi.js.map +1 -1
- package/lib/commonjs/locale/translations/id.js +0 -234
- package/lib/commonjs/locale/translations/id.js.map +1 -1
- package/lib/commonjs/locale/translations/it.js +0 -249
- package/lib/commonjs/locale/translations/it.js.map +1 -1
- package/lib/commonjs/locale/translations/ja.js +0 -234
- package/lib/commonjs/locale/translations/ja.js.map +1 -1
- package/lib/commonjs/locale/translations/pt.js +0 -249
- package/lib/commonjs/locale/translations/pt.js.map +1 -1
- package/lib/commonjs/locale/translations/ru.js +0 -259
- package/lib/commonjs/locale/translations/ru.js.map +1 -1
- package/lib/commonjs/locale/translations/tr.js +0 -238
- package/lib/commonjs/locale/translations/tr.js.map +1 -1
- package/lib/commonjs/locale/translations/zh.js +0 -234
- package/lib/commonjs/locale/translations/zh.js.map +1 -1
- package/lib/commonjs/overlay/Overlay.js +13 -22
- package/lib/commonjs/overlay/Overlay.js.map +1 -1
- package/lib/commonjs/panel-routing/expo-router/StackScene.js +42 -3
- package/lib/commonjs/panel-routing/expo-router/StackScene.js.map +1 -1
- package/lib/commonjs/queue-panel/QueueIconButton.js.map +1 -1
- package/lib/commonjs/screen/index.js +7 -0
- package/lib/commonjs/screen/index.js.map +1 -1
- package/lib/commonjs/screen/index.web.js +7 -0
- package/lib/commonjs/screen/index.web.js.map +1 -1
- package/lib/commonjs/screen/use-screen-entered.js +28 -0
- package/lib/commonjs/screen/use-screen-entered.js.map +1 -0
- package/lib/commonjs/screen/use-screen-scroll.js +21 -2
- package/lib/commonjs/screen/use-screen-scroll.js.map +1 -1
- package/lib/commonjs/sidebar/Sidebar.js +18 -9
- package/lib/commonjs/sidebar/Sidebar.js.map +1 -1
- package/lib/commonjs/tab-pager/expo-router/TabPager.js +18 -13
- package/lib/commonjs/tab-pager/expo-router/TabPager.js.map +1 -1
- package/lib/commonjs/tabs/expo-router/RouterTabs.js.map +1 -1
- package/lib/commonjs/toast/ToastHost.js +1 -0
- package/lib/commonjs/toast/ToastHost.js.map +1 -1
- package/lib/commonjs/toast/ToastHost.native.js +1 -0
- package/lib/commonjs/toast/ToastHost.native.js.map +1 -1
- package/lib/module/button/Button.web.js +6 -3
- package/lib/module/button/Button.web.js.map +1 -1
- package/lib/module/button/shared.js.map +1 -1
- package/lib/module/chat-composer/shared.js.map +1 -1
- package/lib/module/chat-people/StoryViewer.js +1 -2
- package/lib/module/chat-people/StoryViewer.js.map +1 -1
- package/lib/module/date-picker/PickerShell.js +1 -2
- package/lib/module/date-picker/PickerShell.js.map +1 -1
- package/lib/module/dialog/DetailDialogMotion.js +11 -5
- package/lib/module/dialog/DetailDialogMotion.js.map +1 -1
- package/lib/module/fab/constants.js +4 -1
- package/lib/module/fab/constants.js.map +1 -1
- package/lib/module/fab/index.js +1 -1
- package/lib/module/fab/index.js.map +1 -1
- package/lib/module/fab/index.web.js +1 -1
- package/lib/module/fab/index.web.js.map +1 -1
- package/lib/module/fab/use-fab-props.js +2 -2
- package/lib/module/fab/use-fab-props.js.map +1 -1
- package/lib/module/field/FieldConstraintScope.js +2 -2
- package/lib/module/floating/lens/lens-button-host.js +2 -1
- package/lib/module/floating/lens/lens-button-host.js.map +1 -1
- package/lib/module/floating/lens/lens-tint.js +15 -0
- package/lib/module/floating/lens/lens-tint.js.map +1 -0
- package/lib/module/floating/lens/use-lens-menu.js +2 -1
- package/lib/module/floating/lens/use-lens-menu.js.map +1 -1
- package/lib/module/index.js +0 -23
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +0 -23
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/listing-actions/ApplicationChecklist.js.map +1 -1
- package/lib/module/locale/translations/ar.js +0 -262
- package/lib/module/locale/translations/ar.js.map +1 -1
- package/lib/module/locale/translations/bn.js +0 -234
- package/lib/module/locale/translations/bn.js.map +1 -1
- package/lib/module/locale/translations/ca.js +0 -249
- package/lib/module/locale/translations/ca.js.map +1 -1
- package/lib/module/locale/translations/de.js +0 -246
- package/lib/module/locale/translations/de.js.map +1 -1
- package/lib/module/locale/translations/es.js +0 -249
- package/lib/module/locale/translations/es.js.map +1 -1
- package/lib/module/locale/translations/fr.js +0 -249
- package/lib/module/locale/translations/fr.js.map +1 -1
- package/lib/module/locale/translations/hi.js +0 -240
- package/lib/module/locale/translations/hi.js.map +1 -1
- package/lib/module/locale/translations/id.js +0 -234
- package/lib/module/locale/translations/id.js.map +1 -1
- package/lib/module/locale/translations/it.js +0 -249
- package/lib/module/locale/translations/it.js.map +1 -1
- package/lib/module/locale/translations/ja.js +0 -234
- package/lib/module/locale/translations/ja.js.map +1 -1
- package/lib/module/locale/translations/pt.js +0 -249
- package/lib/module/locale/translations/pt.js.map +1 -1
- package/lib/module/locale/translations/ru.js +0 -259
- package/lib/module/locale/translations/ru.js.map +1 -1
- package/lib/module/locale/translations/tr.js +0 -238
- package/lib/module/locale/translations/tr.js.map +1 -1
- package/lib/module/locale/translations/zh.js +0 -234
- package/lib/module/locale/translations/zh.js.map +1 -1
- package/lib/module/overlay/Overlay.js +13 -22
- package/lib/module/overlay/Overlay.js.map +1 -1
- package/lib/module/panel-routing/expo-router/StackScene.js +42 -4
- package/lib/module/panel-routing/expo-router/StackScene.js.map +1 -1
- package/lib/module/queue-panel/QueueIconButton.js.map +1 -1
- package/lib/module/screen/index.js +1 -0
- package/lib/module/screen/index.js.map +1 -1
- package/lib/module/screen/index.web.js +1 -0
- package/lib/module/screen/index.web.js.map +1 -1
- package/lib/module/screen/use-screen-entered.js +24 -0
- package/lib/module/screen/use-screen-entered.js.map +1 -0
- package/lib/module/screen/use-screen-scroll.js +21 -2
- package/lib/module/screen/use-screen-scroll.js.map +1 -1
- package/lib/module/sidebar/Sidebar.js +18 -9
- package/lib/module/sidebar/Sidebar.js.map +1 -1
- package/lib/module/tab-pager/expo-router/TabPager.js +19 -14
- package/lib/module/tab-pager/expo-router/TabPager.js.map +1 -1
- package/lib/module/tabs/expo-router/RouterTabs.js.map +1 -1
- package/lib/module/toast/ToastHost.js +1 -0
- package/lib/module/toast/ToastHost.js.map +1 -1
- package/lib/module/toast/ToastHost.native.js +1 -0
- package/lib/module/toast/ToastHost.native.js.map +1 -1
- package/lib/typescript/commonjs/agent-reply/types.d.ts +2 -2
- package/lib/typescript/commonjs/agent-reply/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/badge/types.d.ts +1 -1
- package/lib/typescript/commonjs/badge/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/breadcrumb/types.d.ts +3 -2
- package/lib/typescript/commonjs/breadcrumb/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/Button.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/shared.d.ts +3 -2
- package/lib/typescript/commonjs/button/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/types.d.ts +3 -3
- package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/carousel/types.d.ts +3 -2
- package/lib/typescript/commonjs/carousel/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/shared.d.ts +4 -3
- package/lib/typescript/commonjs/chat-composer/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/types.d.ts +9 -9
- package/lib/typescript/commonjs/chat-composer/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-people/StoryViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/date-picker/PickerShell.d.ts +2 -2
- package/lib/typescript/commonjs/date-picker/PickerShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/fab/constants.d.ts +3 -1
- package/lib/typescript/commonjs/fab/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/fab/index.d.ts +1 -1
- package/lib/typescript/commonjs/fab/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/fab/index.web.d.ts +1 -1
- package/lib/typescript/commonjs/fab/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/fab/types.d.ts +2 -2
- package/lib/typescript/commonjs/fab/use-fab-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/field/FieldConstraintScope.d.ts +2 -2
- package/lib/typescript/commonjs/floating/lens/lens-button-host.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/lens/lens-tint.d.ts +13 -0
- package/lib/typescript/commonjs/floating/lens/lens-tint.d.ts.map +1 -0
- package/lib/typescript/commonjs/floating/lens/use-lens-menu.d.ts.map +1 -1
- package/lib/typescript/commonjs/home-search/types.d.ts +1 -1
- package/lib/typescript/commonjs/home-search/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +0 -21
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +0 -21
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/listing-actions/ApplicationChecklist.d.ts.map +1 -1
- package/lib/typescript/commonjs/listing-actions/types.d.ts +2 -2
- package/lib/typescript/commonjs/listing-actions/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/types.d.ts +0 -14
- package/lib/typescript/commonjs/locale/translations/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/commonjs/overlay/Overlay.d.ts +1 -1
- package/lib/typescript/commonjs/overlay/Overlay.d.ts.map +1 -1
- package/lib/typescript/commonjs/overlay/types.d.ts +10 -0
- package/lib/typescript/commonjs/overlay/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/types.d.ts +1 -1
- package/lib/typescript/commonjs/page-header/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts +32 -5
- package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts.map +1 -1
- package/lib/typescript/commonjs/queue-panel/QueueIconButton.d.ts +2 -2
- package/lib/typescript/commonjs/queue-panel/QueueIconButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/index.d.ts +1 -0
- package/lib/typescript/commonjs/screen/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/index.web.d.ts +1 -0
- package/lib/typescript/commonjs/screen/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/use-screen-entered.d.ts +16 -0
- package/lib/typescript/commonjs/screen/use-screen-entered.d.ts.map +1 -0
- package/lib/typescript/commonjs/screen/use-screen-scroll.d.ts +3 -2
- package/lib/typescript/commonjs/screen/use-screen-scroll.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts +9 -9
- package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/stay-search/types.d.ts +3 -3
- package/lib/typescript/commonjs/stay-search/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-pager/expo-router/TabPager.d.ts.map +1 -1
- package/lib/typescript/commonjs/tabs/expo-router/RouterTabs.d.ts +3 -2
- package/lib/typescript/commonjs/tabs/expo-router/RouterTabs.d.ts.map +1 -1
- package/lib/typescript/commonjs/tabs/types.d.ts +1 -1
- package/lib/typescript/commonjs/tabs/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/toast/ToastHost.native.d.ts.map +1 -1
- package/lib/typescript/module/agent-reply/types.d.ts +2 -2
- package/lib/typescript/module/agent-reply/types.d.ts.map +1 -1
- package/lib/typescript/module/badge/types.d.ts +1 -1
- package/lib/typescript/module/badge/types.d.ts.map +1 -1
- package/lib/typescript/module/breadcrumb/types.d.ts +3 -2
- package/lib/typescript/module/breadcrumb/types.d.ts.map +1 -1
- package/lib/typescript/module/button/Button.web.d.ts.map +1 -1
- package/lib/typescript/module/button/shared.d.ts +3 -2
- package/lib/typescript/module/button/shared.d.ts.map +1 -1
- package/lib/typescript/module/button/types.d.ts +3 -3
- package/lib/typescript/module/button/types.d.ts.map +1 -1
- package/lib/typescript/module/carousel/types.d.ts +3 -2
- package/lib/typescript/module/carousel/types.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/shared.d.ts +4 -3
- package/lib/typescript/module/chat-composer/shared.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/types.d.ts +9 -9
- package/lib/typescript/module/chat-composer/types.d.ts.map +1 -1
- package/lib/typescript/module/chat-people/StoryViewer.d.ts.map +1 -1
- package/lib/typescript/module/date-picker/PickerShell.d.ts +2 -2
- package/lib/typescript/module/date-picker/PickerShell.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DetailDialogMotion.d.ts.map +1 -1
- package/lib/typescript/module/dialog/types.d.ts.map +1 -1
- package/lib/typescript/module/fab/constants.d.ts +3 -1
- package/lib/typescript/module/fab/constants.d.ts.map +1 -1
- package/lib/typescript/module/fab/index.d.ts +1 -1
- package/lib/typescript/module/fab/index.d.ts.map +1 -1
- package/lib/typescript/module/fab/index.web.d.ts +1 -1
- package/lib/typescript/module/fab/index.web.d.ts.map +1 -1
- package/lib/typescript/module/fab/types.d.ts +2 -2
- package/lib/typescript/module/fab/use-fab-props.d.ts.map +1 -1
- package/lib/typescript/module/field/FieldConstraintScope.d.ts +2 -2
- package/lib/typescript/module/floating/lens/lens-button-host.d.ts.map +1 -1
- package/lib/typescript/module/floating/lens/lens-tint.d.ts +13 -0
- package/lib/typescript/module/floating/lens/lens-tint.d.ts.map +1 -0
- package/lib/typescript/module/floating/lens/use-lens-menu.d.ts.map +1 -1
- package/lib/typescript/module/home-search/types.d.ts +1 -1
- package/lib/typescript/module/home-search/types.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +0 -21
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +0 -21
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/listing-actions/ApplicationChecklist.d.ts.map +1 -1
- package/lib/typescript/module/listing-actions/types.d.ts +2 -2
- package/lib/typescript/module/listing-actions/types.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/types.d.ts +0 -14
- package/lib/typescript/module/locale/translations/types.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/module/overlay/Overlay.d.ts +1 -1
- package/lib/typescript/module/overlay/Overlay.d.ts.map +1 -1
- package/lib/typescript/module/overlay/types.d.ts +10 -0
- package/lib/typescript/module/overlay/types.d.ts.map +1 -1
- package/lib/typescript/module/page-header/types.d.ts +1 -1
- package/lib/typescript/module/page-header/types.d.ts.map +1 -1
- package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts +32 -5
- package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts.map +1 -1
- package/lib/typescript/module/queue-panel/QueueIconButton.d.ts +2 -2
- package/lib/typescript/module/queue-panel/QueueIconButton.d.ts.map +1 -1
- package/lib/typescript/module/screen/index.d.ts +1 -0
- package/lib/typescript/module/screen/index.d.ts.map +1 -1
- package/lib/typescript/module/screen/index.web.d.ts +1 -0
- package/lib/typescript/module/screen/index.web.d.ts.map +1 -1
- package/lib/typescript/module/screen/use-screen-entered.d.ts +16 -0
- package/lib/typescript/module/screen/use-screen-entered.d.ts.map +1 -0
- package/lib/typescript/module/screen/use-screen-scroll.d.ts +3 -2
- package/lib/typescript/module/screen/use-screen-scroll.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/types.d.ts +9 -9
- package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/module/stay-search/types.d.ts +3 -3
- package/lib/typescript/module/stay-search/types.d.ts.map +1 -1
- package/lib/typescript/module/tab-pager/expo-router/TabPager.d.ts.map +1 -1
- package/lib/typescript/module/tabs/expo-router/RouterTabs.d.ts +3 -2
- package/lib/typescript/module/tabs/expo-router/RouterTabs.d.ts.map +1 -1
- package/lib/typescript/module/tabs/types.d.ts +1 -1
- package/lib/typescript/module/tabs/types.d.ts.map +1 -1
- package/lib/typescript/module/toast/ToastHost.native.d.ts.map +1 -1
- package/package.json +1 -120
- package/src/__tests__/support/adoption-matrix.ts +0 -9
- package/src/__tests__/support/public-part-classifications.json +0 -16
- package/src/agent-reply/types.ts +2 -2
- package/src/badge/types.ts +1 -1
- package/src/breadcrumb/types.ts +3 -2
- package/src/button/Button.web.tsx +15 -2
- package/src/button/shared.ts +3 -4
- package/src/button/types.ts +3 -3
- package/src/carousel/types.ts +3 -2
- package/src/chat-composer/shared.ts +4 -4
- package/src/chat-composer/types.ts +9 -9
- package/src/chat-people/StoryViewer.tsx +2 -2
- package/src/date-picker/PickerShell.tsx +2 -2
- package/src/dialog/DetailDialogMotion.tsx +15 -9
- package/src/dialog/types.ts +0 -1
- package/src/fab/constants.ts +4 -1
- package/src/fab/index.ts +1 -1
- package/src/fab/index.web.ts +1 -1
- package/src/fab/types.ts +2 -2
- package/src/fab/use-fab-props.ts +2 -2
- package/src/field/FieldConstraintScope.tsx +2 -2
- package/src/floating/lens/lens-button-host.tsx +2 -1
- package/src/floating/lens/lens-tint.ts +12 -0
- package/src/floating/lens/use-lens-menu.tsx +2 -1
- package/src/home-search/types.ts +1 -1
- package/src/index.ts +0 -195
- package/src/index.web.ts +0 -195
- package/src/listing-actions/ApplicationChecklist.tsx +3 -2
- package/src/listing-actions/types.ts +2 -2
- package/src/locale/translations/ar.ts +0 -232
- package/src/locale/translations/bn.ts +0 -200
- package/src/locale/translations/ca.ts +0 -210
- package/src/locale/translations/de.ts +0 -213
- package/src/locale/translations/es.ts +0 -210
- package/src/locale/translations/fr.ts +0 -214
- package/src/locale/translations/hi.ts +0 -201
- package/src/locale/translations/id.ts +0 -206
- package/src/locale/translations/it.ts +0 -214
- package/src/locale/translations/ja.ts +0 -202
- package/src/locale/translations/pt.ts +0 -220
- package/src/locale/translations/ru.ts +0 -225
- package/src/locale/translations/tr.ts +0 -202
- package/src/locale/translations/types.ts +0 -14
- package/src/locale/translations/zh.ts +0 -200
- package/src/overlay/Overlay.tsx +23 -21
- package/src/overlay/types.ts +10 -0
- package/src/page-header/types.ts +1 -1
- package/src/panel-routing/expo-router/StackScene.tsx +62 -5
- package/src/queue-panel/QueueIconButton.tsx +2 -2
- package/src/screen/index.ts +1 -0
- package/src/screen/index.web.ts +1 -0
- package/src/screen/use-screen-entered.ts +21 -0
- package/src/screen/use-screen-scroll.ts +36 -2
- package/src/sidebar/Sidebar.tsx +17 -11
- package/src/sidebar/types.ts +9 -9
- package/src/stay-search/types.ts +3 -3
- package/src/tab-pager/expo-router/TabPager.tsx +35 -16
- package/src/tabs/expo-router/RouterTabs.tsx +3 -2
- package/src/tabs/types.ts +1 -1
- package/src/toast/ToastHost.native.tsx +5 -1
- package/src/toast/ToastHost.tsx +1 -1
- package/docs/carrier-quote.mdx +0 -121
- package/docs/delivery-slot.mdx +0 -91
- package/docs/earnings.mdx +0 -89
- package/docs/job-board.mdx +0 -82
- package/docs/proof-of-delivery.mdx +0 -86
- package/docs/shipment-request.mdx +0 -139
- package/docs/vehicle-picker.mdx +0 -92
- package/lib/commonjs/carrier-quote/CarrierQuoteCard.js +0 -547
- package/lib/commonjs/carrier-quote/CarrierQuoteCard.js.map +0 -1
- package/lib/commonjs/carrier-quote/CarrierQuoteList.js +0 -274
- package/lib/commonjs/carrier-quote/CarrierQuoteList.js.map +0 -1
- package/lib/commonjs/carrier-quote/constants.js +0 -64
- package/lib/commonjs/carrier-quote/constants.js.map +0 -1
- package/lib/commonjs/carrier-quote/index.js +0 -82
- package/lib/commonjs/carrier-quote/index.js.map +0 -1
- package/lib/commonjs/carrier-quote/messages.js +0 -50
- package/lib/commonjs/carrier-quote/messages.js.map +0 -1
- package/lib/commonjs/carrier-quote/shared.js +0 -150
- package/lib/commonjs/carrier-quote/shared.js.map +0 -1
- package/lib/commonjs/carrier-quote/types.js +0 -6
- package/lib/commonjs/carrier-quote/types.js.map +0 -1
- package/lib/commonjs/delivery-slot/DeliverySlotDays.js +0 -92
- package/lib/commonjs/delivery-slot/DeliverySlotDays.js.map +0 -1
- package/lib/commonjs/delivery-slot/DeliverySlotOption.js +0 -131
- package/lib/commonjs/delivery-slot/DeliverySlotOption.js.map +0 -1
- package/lib/commonjs/delivery-slot/DeliverySlotPicker.js +0 -265
- package/lib/commonjs/delivery-slot/DeliverySlotPicker.js.map +0 -1
- package/lib/commonjs/delivery-slot/constants.js +0 -52
- package/lib/commonjs/delivery-slot/constants.js.map +0 -1
- package/lib/commonjs/delivery-slot/index.js +0 -101
- package/lib/commonjs/delivery-slot/index.js.map +0 -1
- package/lib/commonjs/delivery-slot/messages.js +0 -27
- package/lib/commonjs/delivery-slot/messages.js.map +0 -1
- package/lib/commonjs/delivery-slot/shared.js +0 -60
- package/lib/commonjs/delivery-slot/shared.js.map +0 -1
- package/lib/commonjs/delivery-slot/types.js +0 -6
- package/lib/commonjs/delivery-slot/types.js.map +0 -1
- package/lib/commonjs/earnings/EarningsBreakdown.js +0 -85
- package/lib/commonjs/earnings/EarningsBreakdown.js.map +0 -1
- package/lib/commonjs/earnings/EarningsPayoutRow.js +0 -156
- package/lib/commonjs/earnings/EarningsPayoutRow.js.map +0 -1
- package/lib/commonjs/earnings/EarningsSummary.js +0 -295
- package/lib/commonjs/earnings/EarningsSummary.js.map +0 -1
- package/lib/commonjs/earnings/constants.js +0 -61
- package/lib/commonjs/earnings/constants.js.map +0 -1
- package/lib/commonjs/earnings/index.js +0 -77
- package/lib/commonjs/earnings/index.js.map +0 -1
- package/lib/commonjs/earnings/messages.js +0 -30
- package/lib/commonjs/earnings/messages.js.map +0 -1
- package/lib/commonjs/earnings/shared.js +0 -72
- package/lib/commonjs/earnings/shared.js.map +0 -1
- package/lib/commonjs/earnings/types.js +0 -6
- package/lib/commonjs/earnings/types.js.map +0 -1
- package/lib/commonjs/job-board/JobBoard.js +0 -464
- package/lib/commonjs/job-board/JobBoard.js.map +0 -1
- package/lib/commonjs/job-board/JobCard.js +0 -582
- package/lib/commonjs/job-board/JobCard.js.map +0 -1
- package/lib/commonjs/job-board/constants.js +0 -119
- package/lib/commonjs/job-board/constants.js.map +0 -1
- package/lib/commonjs/job-board/index.js +0 -106
- package/lib/commonjs/job-board/index.js.map +0 -1
- package/lib/commonjs/job-board/messages.js +0 -68
- package/lib/commonjs/job-board/messages.js.map +0 -1
- package/lib/commonjs/job-board/shared.js +0 -179
- package/lib/commonjs/job-board/shared.js.map +0 -1
- package/lib/commonjs/job-board/types.js +0 -6
- package/lib/commonjs/job-board/types.js.map +0 -1
- package/lib/commonjs/proof-of-delivery/ProofOfDelivery.js +0 -306
- package/lib/commonjs/proof-of-delivery/ProofOfDelivery.js.map +0 -1
- package/lib/commonjs/proof-of-delivery/SignaturePad.js +0 -304
- package/lib/commonjs/proof-of-delivery/SignaturePad.js.map +0 -1
- package/lib/commonjs/proof-of-delivery/constants.js +0 -51
- package/lib/commonjs/proof-of-delivery/constants.js.map +0 -1
- package/lib/commonjs/proof-of-delivery/index.js +0 -106
- package/lib/commonjs/proof-of-delivery/index.js.map +0 -1
- package/lib/commonjs/proof-of-delivery/messages.js +0 -41
- package/lib/commonjs/proof-of-delivery/messages.js.map +0 -1
- package/lib/commonjs/proof-of-delivery/shared.js +0 -171
- package/lib/commonjs/proof-of-delivery/shared.js.map +0 -1
- package/lib/commonjs/proof-of-delivery/types.js +0 -6
- package/lib/commonjs/proof-of-delivery/types.js.map +0 -1
- package/lib/commonjs/shipment-request/ShipmentLoadPicker.js +0 -272
- package/lib/commonjs/shipment-request/ShipmentLoadPicker.js.map +0 -1
- package/lib/commonjs/shipment-request/ShipmentOptionsList.js +0 -188
- package/lib/commonjs/shipment-request/ShipmentOptionsList.js.map +0 -1
- package/lib/commonjs/shipment-request/ShipmentRequestForm.js +0 -155
- package/lib/commonjs/shipment-request/ShipmentRequestForm.js.map +0 -1
- package/lib/commonjs/shipment-request/constants.js +0 -118
- package/lib/commonjs/shipment-request/constants.js.map +0 -1
- package/lib/commonjs/shipment-request/index.js +0 -95
- package/lib/commonjs/shipment-request/index.js.map +0 -1
- package/lib/commonjs/shipment-request/messages.js +0 -79
- package/lib/commonjs/shipment-request/messages.js.map +0 -1
- package/lib/commonjs/shipment-request/shared.js +0 -65
- package/lib/commonjs/shipment-request/shared.js.map +0 -1
- package/lib/commonjs/shipment-request/types.js +0 -6
- package/lib/commonjs/shipment-request/types.js.map +0 -1
- package/lib/commonjs/vehicle-picker/VehiclePicker.js +0 -238
- package/lib/commonjs/vehicle-picker/VehiclePicker.js.map +0 -1
- package/lib/commonjs/vehicle-picker/constants.js +0 -76
- package/lib/commonjs/vehicle-picker/constants.js.map +0 -1
- package/lib/commonjs/vehicle-picker/index.js +0 -45
- package/lib/commonjs/vehicle-picker/index.js.map +0 -1
- package/lib/commonjs/vehicle-picker/messages.js +0 -49
- package/lib/commonjs/vehicle-picker/messages.js.map +0 -1
- package/lib/commonjs/vehicle-picker/shared.js +0 -24
- package/lib/commonjs/vehicle-picker/shared.js.map +0 -1
- package/lib/commonjs/vehicle-picker/types.js +0 -6
- package/lib/commonjs/vehicle-picker/types.js.map +0 -1
- package/lib/module/carrier-quote/CarrierQuoteCard.js +0 -543
- package/lib/module/carrier-quote/CarrierQuoteCard.js.map +0 -1
- package/lib/module/carrier-quote/CarrierQuoteList.js +0 -270
- package/lib/module/carrier-quote/CarrierQuoteList.js.map +0 -1
- package/lib/module/carrier-quote/constants.js +0 -61
- package/lib/module/carrier-quote/constants.js.map +0 -1
- package/lib/module/carrier-quote/index.js +0 -7
- package/lib/module/carrier-quote/index.js.map +0 -1
- package/lib/module/carrier-quote/messages.js +0 -47
- package/lib/module/carrier-quote/messages.js.map +0 -1
- package/lib/module/carrier-quote/shared.js +0 -139
- package/lib/module/carrier-quote/shared.js.map +0 -1
- package/lib/module/carrier-quote/types.js +0 -4
- package/lib/module/carrier-quote/types.js.map +0 -1
- package/lib/module/delivery-slot/DeliverySlotDays.js +0 -86
- package/lib/module/delivery-slot/DeliverySlotDays.js.map +0 -1
- package/lib/module/delivery-slot/DeliverySlotOption.js +0 -125
- package/lib/module/delivery-slot/DeliverySlotOption.js.map +0 -1
- package/lib/module/delivery-slot/DeliverySlotPicker.js +0 -259
- package/lib/module/delivery-slot/DeliverySlotPicker.js.map +0 -1
- package/lib/module/delivery-slot/constants.js +0 -48
- package/lib/module/delivery-slot/constants.js.map +0 -1
- package/lib/module/delivery-slot/index.js +0 -8
- package/lib/module/delivery-slot/index.js.map +0 -1
- package/lib/module/delivery-slot/messages.js +0 -24
- package/lib/module/delivery-slot/messages.js.map +0 -1
- package/lib/module/delivery-slot/shared.js +0 -52
- package/lib/module/delivery-slot/shared.js.map +0 -1
- package/lib/module/delivery-slot/types.js +0 -4
- package/lib/module/delivery-slot/types.js.map +0 -1
- package/lib/module/earnings/EarningsBreakdown.js +0 -79
- package/lib/module/earnings/EarningsBreakdown.js.map +0 -1
- package/lib/module/earnings/EarningsPayoutRow.js +0 -150
- package/lib/module/earnings/EarningsPayoutRow.js.map +0 -1
- package/lib/module/earnings/EarningsSummary.js +0 -289
- package/lib/module/earnings/EarningsSummary.js.map +0 -1
- package/lib/module/earnings/constants.js +0 -58
- package/lib/module/earnings/constants.js.map +0 -1
- package/lib/module/earnings/index.js +0 -8
- package/lib/module/earnings/index.js.map +0 -1
- package/lib/module/earnings/messages.js +0 -27
- package/lib/module/earnings/messages.js.map +0 -1
- package/lib/module/earnings/shared.js +0 -63
- package/lib/module/earnings/shared.js.map +0 -1
- package/lib/module/earnings/types.js +0 -4
- package/lib/module/earnings/types.js.map +0 -1
- package/lib/module/job-board/JobBoard.js +0 -460
- package/lib/module/job-board/JobBoard.js.map +0 -1
- package/lib/module/job-board/JobCard.js +0 -578
- package/lib/module/job-board/JobCard.js.map +0 -1
- package/lib/module/job-board/constants.js +0 -114
- package/lib/module/job-board/constants.js.map +0 -1
- package/lib/module/job-board/index.js +0 -7
- package/lib/module/job-board/index.js.map +0 -1
- package/lib/module/job-board/messages.js +0 -65
- package/lib/module/job-board/messages.js.map +0 -1
- package/lib/module/job-board/shared.js +0 -167
- package/lib/module/job-board/shared.js.map +0 -1
- package/lib/module/job-board/types.js +0 -4
- package/lib/module/job-board/types.js.map +0 -1
- package/lib/module/proof-of-delivery/ProofOfDelivery.js +0 -300
- package/lib/module/proof-of-delivery/ProofOfDelivery.js.map +0 -1
- package/lib/module/proof-of-delivery/SignaturePad.js +0 -298
- package/lib/module/proof-of-delivery/SignaturePad.js.map +0 -1
- package/lib/module/proof-of-delivery/constants.js +0 -47
- package/lib/module/proof-of-delivery/constants.js.map +0 -1
- package/lib/module/proof-of-delivery/index.js +0 -7
- package/lib/module/proof-of-delivery/index.js.map +0 -1
- package/lib/module/proof-of-delivery/messages.js +0 -38
- package/lib/module/proof-of-delivery/messages.js.map +0 -1
- package/lib/module/proof-of-delivery/shared.js +0 -157
- package/lib/module/proof-of-delivery/shared.js.map +0 -1
- package/lib/module/proof-of-delivery/types.js +0 -4
- package/lib/module/proof-of-delivery/types.js.map +0 -1
- package/lib/module/shipment-request/ShipmentLoadPicker.js +0 -266
- package/lib/module/shipment-request/ShipmentLoadPicker.js.map +0 -1
- package/lib/module/shipment-request/ShipmentOptionsList.js +0 -184
- package/lib/module/shipment-request/ShipmentOptionsList.js.map +0 -1
- package/lib/module/shipment-request/ShipmentRequestForm.js +0 -149
- package/lib/module/shipment-request/ShipmentRequestForm.js.map +0 -1
- package/lib/module/shipment-request/constants.js +0 -112
- package/lib/module/shipment-request/constants.js.map +0 -1
- package/lib/module/shipment-request/index.js +0 -8
- package/lib/module/shipment-request/index.js.map +0 -1
- package/lib/module/shipment-request/messages.js +0 -76
- package/lib/module/shipment-request/messages.js.map +0 -1
- package/lib/module/shipment-request/shared.js +0 -58
- package/lib/module/shipment-request/shared.js.map +0 -1
- package/lib/module/shipment-request/types.js +0 -4
- package/lib/module/shipment-request/types.js.map +0 -1
- package/lib/module/vehicle-picker/VehiclePicker.js +0 -232
- package/lib/module/vehicle-picker/VehiclePicker.js.map +0 -1
- package/lib/module/vehicle-picker/constants.js +0 -71
- package/lib/module/vehicle-picker/constants.js.map +0 -1
- package/lib/module/vehicle-picker/index.js +0 -6
- package/lib/module/vehicle-picker/index.js.map +0 -1
- package/lib/module/vehicle-picker/messages.js +0 -46
- package/lib/module/vehicle-picker/messages.js.map +0 -1
- package/lib/module/vehicle-picker/shared.js +0 -20
- package/lib/module/vehicle-picker/shared.js.map +0 -1
- package/lib/module/vehicle-picker/types.js +0 -4
- package/lib/module/vehicle-picker/types.js.map +0 -1
- package/lib/typescript/commonjs/carrier-quote/CarrierQuoteCard.d.ts +0 -6
- package/lib/typescript/commonjs/carrier-quote/CarrierQuoteCard.d.ts.map +0 -1
- package/lib/typescript/commonjs/carrier-quote/CarrierQuoteList.d.ts +0 -29
- package/lib/typescript/commonjs/carrier-quote/CarrierQuoteList.d.ts.map +0 -1
- package/lib/typescript/commonjs/carrier-quote/constants.d.ts +0 -55
- package/lib/typescript/commonjs/carrier-quote/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/carrier-quote/index.d.ts +0 -8
- package/lib/typescript/commonjs/carrier-quote/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/carrier-quote/messages.d.ts +0 -38
- package/lib/typescript/commonjs/carrier-quote/messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/carrier-quote/shared.d.ts +0 -58
- package/lib/typescript/commonjs/carrier-quote/shared.d.ts.map +0 -1
- package/lib/typescript/commonjs/carrier-quote/types.d.ts +0 -191
- package/lib/typescript/commonjs/carrier-quote/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/delivery-slot/DeliverySlotDays.d.ts +0 -28
- package/lib/typescript/commonjs/delivery-slot/DeliverySlotDays.d.ts.map +0 -1
- package/lib/typescript/commonjs/delivery-slot/DeliverySlotOption.d.ts +0 -27
- package/lib/typescript/commonjs/delivery-slot/DeliverySlotOption.d.ts.map +0 -1
- package/lib/typescript/commonjs/delivery-slot/DeliverySlotPicker.d.ts +0 -34
- package/lib/typescript/commonjs/delivery-slot/DeliverySlotPicker.d.ts.map +0 -1
- package/lib/typescript/commonjs/delivery-slot/constants.d.ts +0 -34
- package/lib/typescript/commonjs/delivery-slot/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/delivery-slot/index.d.ts +0 -8
- package/lib/typescript/commonjs/delivery-slot/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/delivery-slot/messages.d.ts +0 -23
- package/lib/typescript/commonjs/delivery-slot/messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/delivery-slot/shared.d.ts +0 -36
- package/lib/typescript/commonjs/delivery-slot/shared.d.ts.map +0 -1
- package/lib/typescript/commonjs/delivery-slot/types.d.ts +0 -178
- package/lib/typescript/commonjs/delivery-slot/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/earnings/EarningsBreakdown.d.ts +0 -24
- package/lib/typescript/commonjs/earnings/EarningsBreakdown.d.ts.map +0 -1
- package/lib/typescript/commonjs/earnings/EarningsPayoutRow.d.ts +0 -25
- package/lib/typescript/commonjs/earnings/EarningsPayoutRow.d.ts.map +0 -1
- package/lib/typescript/commonjs/earnings/EarningsSummary.d.ts +0 -6
- package/lib/typescript/commonjs/earnings/EarningsSummary.d.ts.map +0 -1
- package/lib/typescript/commonjs/earnings/constants.d.ts +0 -41
- package/lib/typescript/commonjs/earnings/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/earnings/index.d.ts +0 -9
- package/lib/typescript/commonjs/earnings/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/earnings/messages.d.ts +0 -26
- package/lib/typescript/commonjs/earnings/messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/earnings/shared.d.ts +0 -43
- package/lib/typescript/commonjs/earnings/shared.d.ts.map +0 -1
- package/lib/typescript/commonjs/earnings/types.d.ts +0 -171
- package/lib/typescript/commonjs/earnings/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/job-board/JobBoard.d.ts +0 -38
- package/lib/typescript/commonjs/job-board/JobBoard.d.ts.map +0 -1
- package/lib/typescript/commonjs/job-board/JobCard.d.ts +0 -6
- package/lib/typescript/commonjs/job-board/JobCard.d.ts.map +0 -1
- package/lib/typescript/commonjs/job-board/constants.d.ts +0 -79
- package/lib/typescript/commonjs/job-board/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/job-board/index.d.ts +0 -8
- package/lib/typescript/commonjs/job-board/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/job-board/messages.d.ts +0 -56
- package/lib/typescript/commonjs/job-board/messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/job-board/shared.d.ts +0 -78
- package/lib/typescript/commonjs/job-board/shared.d.ts.map +0 -1
- package/lib/typescript/commonjs/job-board/types.d.ts +0 -269
- package/lib/typescript/commonjs/job-board/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/proof-of-delivery/ProofOfDelivery.d.ts +0 -51
- package/lib/typescript/commonjs/proof-of-delivery/ProofOfDelivery.d.ts.map +0 -1
- package/lib/typescript/commonjs/proof-of-delivery/SignaturePad.d.ts +0 -6
- package/lib/typescript/commonjs/proof-of-delivery/SignaturePad.d.ts.map +0 -1
- package/lib/typescript/commonjs/proof-of-delivery/constants.d.ts +0 -43
- package/lib/typescript/commonjs/proof-of-delivery/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/proof-of-delivery/index.d.ts +0 -8
- package/lib/typescript/commonjs/proof-of-delivery/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/proof-of-delivery/messages.d.ts +0 -13
- package/lib/typescript/commonjs/proof-of-delivery/messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/proof-of-delivery/shared.d.ts +0 -79
- package/lib/typescript/commonjs/proof-of-delivery/shared.d.ts.map +0 -1
- package/lib/typescript/commonjs/proof-of-delivery/types.d.ts +0 -165
- package/lib/typescript/commonjs/proof-of-delivery/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/shipment-request/ShipmentLoadPicker.d.ts +0 -32
- package/lib/typescript/commonjs/shipment-request/ShipmentLoadPicker.d.ts.map +0 -1
- package/lib/typescript/commonjs/shipment-request/ShipmentOptionsList.d.ts +0 -5
- package/lib/typescript/commonjs/shipment-request/ShipmentOptionsList.d.ts.map +0 -1
- package/lib/typescript/commonjs/shipment-request/ShipmentRequestForm.d.ts +0 -33
- package/lib/typescript/commonjs/shipment-request/ShipmentRequestForm.d.ts.map +0 -1
- package/lib/typescript/commonjs/shipment-request/constants.d.ts +0 -50
- package/lib/typescript/commonjs/shipment-request/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/shipment-request/index.d.ts +0 -8
- package/lib/typescript/commonjs/shipment-request/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/shipment-request/messages.d.ts +0 -45
- package/lib/typescript/commonjs/shipment-request/messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/shipment-request/shared.d.ts +0 -40
- package/lib/typescript/commonjs/shipment-request/shared.d.ts.map +0 -1
- package/lib/typescript/commonjs/shipment-request/types.d.ts +0 -219
- package/lib/typescript/commonjs/shipment-request/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/vehicle-picker/VehiclePicker.d.ts +0 -7
- package/lib/typescript/commonjs/vehicle-picker/VehiclePicker.d.ts.map +0 -1
- package/lib/typescript/commonjs/vehicle-picker/constants.d.ts +0 -45
- package/lib/typescript/commonjs/vehicle-picker/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/vehicle-picker/index.d.ts +0 -6
- package/lib/typescript/commonjs/vehicle-picker/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/vehicle-picker/messages.d.ts +0 -26
- package/lib/typescript/commonjs/vehicle-picker/messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/vehicle-picker/shared.d.ts +0 -19
- package/lib/typescript/commonjs/vehicle-picker/shared.d.ts.map +0 -1
- package/lib/typescript/commonjs/vehicle-picker/types.d.ts +0 -82
- package/lib/typescript/commonjs/vehicle-picker/types.d.ts.map +0 -1
- package/lib/typescript/module/carrier-quote/CarrierQuoteCard.d.ts +0 -6
- package/lib/typescript/module/carrier-quote/CarrierQuoteCard.d.ts.map +0 -1
- package/lib/typescript/module/carrier-quote/CarrierQuoteList.d.ts +0 -29
- package/lib/typescript/module/carrier-quote/CarrierQuoteList.d.ts.map +0 -1
- package/lib/typescript/module/carrier-quote/constants.d.ts +0 -55
- package/lib/typescript/module/carrier-quote/constants.d.ts.map +0 -1
- package/lib/typescript/module/carrier-quote/index.d.ts +0 -8
- package/lib/typescript/module/carrier-quote/index.d.ts.map +0 -1
- package/lib/typescript/module/carrier-quote/messages.d.ts +0 -38
- package/lib/typescript/module/carrier-quote/messages.d.ts.map +0 -1
- package/lib/typescript/module/carrier-quote/shared.d.ts +0 -58
- package/lib/typescript/module/carrier-quote/shared.d.ts.map +0 -1
- package/lib/typescript/module/carrier-quote/types.d.ts +0 -191
- package/lib/typescript/module/carrier-quote/types.d.ts.map +0 -1
- package/lib/typescript/module/delivery-slot/DeliverySlotDays.d.ts +0 -28
- package/lib/typescript/module/delivery-slot/DeliverySlotDays.d.ts.map +0 -1
- package/lib/typescript/module/delivery-slot/DeliverySlotOption.d.ts +0 -27
- package/lib/typescript/module/delivery-slot/DeliverySlotOption.d.ts.map +0 -1
- package/lib/typescript/module/delivery-slot/DeliverySlotPicker.d.ts +0 -34
- package/lib/typescript/module/delivery-slot/DeliverySlotPicker.d.ts.map +0 -1
- package/lib/typescript/module/delivery-slot/constants.d.ts +0 -34
- package/lib/typescript/module/delivery-slot/constants.d.ts.map +0 -1
- package/lib/typescript/module/delivery-slot/index.d.ts +0 -8
- package/lib/typescript/module/delivery-slot/index.d.ts.map +0 -1
- package/lib/typescript/module/delivery-slot/messages.d.ts +0 -23
- package/lib/typescript/module/delivery-slot/messages.d.ts.map +0 -1
- package/lib/typescript/module/delivery-slot/shared.d.ts +0 -36
- package/lib/typescript/module/delivery-slot/shared.d.ts.map +0 -1
- package/lib/typescript/module/delivery-slot/types.d.ts +0 -178
- package/lib/typescript/module/delivery-slot/types.d.ts.map +0 -1
- package/lib/typescript/module/earnings/EarningsBreakdown.d.ts +0 -24
- package/lib/typescript/module/earnings/EarningsBreakdown.d.ts.map +0 -1
- package/lib/typescript/module/earnings/EarningsPayoutRow.d.ts +0 -25
- package/lib/typescript/module/earnings/EarningsPayoutRow.d.ts.map +0 -1
- package/lib/typescript/module/earnings/EarningsSummary.d.ts +0 -6
- package/lib/typescript/module/earnings/EarningsSummary.d.ts.map +0 -1
- package/lib/typescript/module/earnings/constants.d.ts +0 -41
- package/lib/typescript/module/earnings/constants.d.ts.map +0 -1
- package/lib/typescript/module/earnings/index.d.ts +0 -9
- package/lib/typescript/module/earnings/index.d.ts.map +0 -1
- package/lib/typescript/module/earnings/messages.d.ts +0 -26
- package/lib/typescript/module/earnings/messages.d.ts.map +0 -1
- package/lib/typescript/module/earnings/shared.d.ts +0 -43
- package/lib/typescript/module/earnings/shared.d.ts.map +0 -1
- package/lib/typescript/module/earnings/types.d.ts +0 -171
- package/lib/typescript/module/earnings/types.d.ts.map +0 -1
- package/lib/typescript/module/job-board/JobBoard.d.ts +0 -38
- package/lib/typescript/module/job-board/JobBoard.d.ts.map +0 -1
- package/lib/typescript/module/job-board/JobCard.d.ts +0 -6
- package/lib/typescript/module/job-board/JobCard.d.ts.map +0 -1
- package/lib/typescript/module/job-board/constants.d.ts +0 -79
- package/lib/typescript/module/job-board/constants.d.ts.map +0 -1
- package/lib/typescript/module/job-board/index.d.ts +0 -8
- package/lib/typescript/module/job-board/index.d.ts.map +0 -1
- package/lib/typescript/module/job-board/messages.d.ts +0 -56
- package/lib/typescript/module/job-board/messages.d.ts.map +0 -1
- package/lib/typescript/module/job-board/shared.d.ts +0 -78
- package/lib/typescript/module/job-board/shared.d.ts.map +0 -1
- package/lib/typescript/module/job-board/types.d.ts +0 -269
- package/lib/typescript/module/job-board/types.d.ts.map +0 -1
- package/lib/typescript/module/proof-of-delivery/ProofOfDelivery.d.ts +0 -51
- package/lib/typescript/module/proof-of-delivery/ProofOfDelivery.d.ts.map +0 -1
- package/lib/typescript/module/proof-of-delivery/SignaturePad.d.ts +0 -6
- package/lib/typescript/module/proof-of-delivery/SignaturePad.d.ts.map +0 -1
- package/lib/typescript/module/proof-of-delivery/constants.d.ts +0 -43
- package/lib/typescript/module/proof-of-delivery/constants.d.ts.map +0 -1
- package/lib/typescript/module/proof-of-delivery/index.d.ts +0 -8
- package/lib/typescript/module/proof-of-delivery/index.d.ts.map +0 -1
- package/lib/typescript/module/proof-of-delivery/messages.d.ts +0 -13
- package/lib/typescript/module/proof-of-delivery/messages.d.ts.map +0 -1
- package/lib/typescript/module/proof-of-delivery/shared.d.ts +0 -79
- package/lib/typescript/module/proof-of-delivery/shared.d.ts.map +0 -1
- package/lib/typescript/module/proof-of-delivery/types.d.ts +0 -165
- package/lib/typescript/module/proof-of-delivery/types.d.ts.map +0 -1
- package/lib/typescript/module/shipment-request/ShipmentLoadPicker.d.ts +0 -32
- package/lib/typescript/module/shipment-request/ShipmentLoadPicker.d.ts.map +0 -1
- package/lib/typescript/module/shipment-request/ShipmentOptionsList.d.ts +0 -5
- package/lib/typescript/module/shipment-request/ShipmentOptionsList.d.ts.map +0 -1
- package/lib/typescript/module/shipment-request/ShipmentRequestForm.d.ts +0 -33
- package/lib/typescript/module/shipment-request/ShipmentRequestForm.d.ts.map +0 -1
- package/lib/typescript/module/shipment-request/constants.d.ts +0 -50
- package/lib/typescript/module/shipment-request/constants.d.ts.map +0 -1
- package/lib/typescript/module/shipment-request/index.d.ts +0 -8
- package/lib/typescript/module/shipment-request/index.d.ts.map +0 -1
- package/lib/typescript/module/shipment-request/messages.d.ts +0 -45
- package/lib/typescript/module/shipment-request/messages.d.ts.map +0 -1
- package/lib/typescript/module/shipment-request/shared.d.ts +0 -40
- package/lib/typescript/module/shipment-request/shared.d.ts.map +0 -1
- package/lib/typescript/module/shipment-request/types.d.ts +0 -219
- package/lib/typescript/module/shipment-request/types.d.ts.map +0 -1
- package/lib/typescript/module/vehicle-picker/VehiclePicker.d.ts +0 -7
- package/lib/typescript/module/vehicle-picker/VehiclePicker.d.ts.map +0 -1
- package/lib/typescript/module/vehicle-picker/constants.d.ts +0 -45
- package/lib/typescript/module/vehicle-picker/constants.d.ts.map +0 -1
- package/lib/typescript/module/vehicle-picker/index.d.ts +0 -6
- package/lib/typescript/module/vehicle-picker/index.d.ts.map +0 -1
- package/lib/typescript/module/vehicle-picker/messages.d.ts +0 -26
- package/lib/typescript/module/vehicle-picker/messages.d.ts.map +0 -1
- package/lib/typescript/module/vehicle-picker/shared.d.ts +0 -19
- package/lib/typescript/module/vehicle-picker/shared.d.ts.map +0 -1
- package/lib/typescript/module/vehicle-picker/types.d.ts +0 -82
- package/lib/typescript/module/vehicle-picker/types.d.ts.map +0 -1
- package/src/carrier-quote/CarrierQuoteCard.tsx +0 -558
- package/src/carrier-quote/CarrierQuoteList.tsx +0 -271
- package/src/carrier-quote/constants.ts +0 -57
- package/src/carrier-quote/index.ts +0 -28
- package/src/carrier-quote/messages.ts +0 -66
- package/src/carrier-quote/shared.ts +0 -168
- package/src/carrier-quote/types.ts +0 -199
- package/src/delivery-slot/DeliverySlotDays.tsx +0 -91
- package/src/delivery-slot/DeliverySlotOption.tsx +0 -123
- package/src/delivery-slot/DeliverySlotPicker.tsx +0 -275
- package/src/delivery-slot/constants.ts +0 -47
- package/src/delivery-slot/index.ts +0 -24
- package/src/delivery-slot/messages.ts +0 -33
- package/src/delivery-slot/shared.ts +0 -84
- package/src/delivery-slot/types.ts +0 -191
- package/src/earnings/EarningsBreakdown.tsx +0 -75
- package/src/earnings/EarningsPayoutRow.tsx +0 -141
- package/src/earnings/EarningsSummary.tsx +0 -310
- package/src/earnings/constants.ts +0 -61
- package/src/earnings/index.ts +0 -24
- package/src/earnings/messages.ts +0 -45
- package/src/earnings/shared.ts +0 -94
- package/src/earnings/types.ts +0 -180
- package/src/job-board/JobBoard.tsx +0 -514
- package/src/job-board/JobCard.tsx +0 -597
- package/src/job-board/constants.ts +0 -106
- package/src/job-board/index.ts +0 -34
- package/src/job-board/messages.ts +0 -96
- package/src/job-board/shared.ts +0 -215
- package/src/job-board/types.ts +0 -274
- package/src/proof-of-delivery/ProofOfDelivery.tsx +0 -321
- package/src/proof-of-delivery/SignaturePad.tsx +0 -309
- package/src/proof-of-delivery/constants.ts +0 -54
- package/src/proof-of-delivery/index.ts +0 -29
- package/src/proof-of-delivery/messages.ts +0 -43
- package/src/proof-of-delivery/shared.ts +0 -190
- package/src/proof-of-delivery/types.ts +0 -174
- package/src/shipment-request/ShipmentLoadPicker.tsx +0 -249
- package/src/shipment-request/ShipmentOptionsList.tsx +0 -192
- package/src/shipment-request/ShipmentRequestForm.tsx +0 -160
- package/src/shipment-request/constants.ts +0 -138
- package/src/shipment-request/index.ts +0 -37
- package/src/shipment-request/messages.ts +0 -85
- package/src/shipment-request/shared.ts +0 -72
- package/src/shipment-request/types.ts +0 -235
- package/src/vehicle-picker/VehiclePicker.tsx +0 -233
- package/src/vehicle-picker/constants.ts +0 -77
- package/src/vehicle-picker/index.ts +0 -15
- package/src/vehicle-picker/messages.ts +0 -61
- package/src/vehicle-picker/shared.ts +0 -27
- package/src/vehicle-picker/types.ts +0 -86
package/docs/carrier-quote.mdx
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Carrier quote
|
|
3
|
-
description: A carrier's offer on a job, and the offers together — the identity, the price, the window and the ETA, the cheapest and fastest marks, and the empty and loading states of a list that is still filling up.
|
|
4
|
-
order: 135
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Carrier quote
|
|
8
|
-
|
|
9
|
-
```tsx
|
|
10
|
-
import { CarrierQuoteCard, CarrierQuoteList } from '@oxy.so/bloom/carrier-quote';
|
|
11
|
-
|
|
12
|
-
<CarrierQuoteList
|
|
13
|
-
quotes={quotes}
|
|
14
|
-
selectedId={accepted}
|
|
15
|
-
onAccept={accept}
|
|
16
|
-
onMessage={openThread}
|
|
17
|
-
onDecline={decline}
|
|
18
|
-
/>
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## The card is a record of a person
|
|
22
|
-
|
|
23
|
-
An offer is a **person with a number attached**, so the card is drawn in the
|
|
24
|
-
register Bloom draws a person in — the same blocks in the same order as a contact
|
|
25
|
-
record, with the price where a record puts its headline figure:
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
mark the 48 avatar
|
|
29
|
-
identity the name at title-3-semibold with the verified glyph, then ONE meta
|
|
30
|
-
line: the list's marks, the rating, the jobs done, the trade line
|
|
31
|
-
headline the price at title-1-medium in tabular figures, right-aligned
|
|
32
|
-
tiles pick-up, arrival, vehicle — value over label, on the next fill up
|
|
33
|
-
message what the carrier wrote, three lines then truncated
|
|
34
|
-
price the itemisation, collapsed, through PriceSummary
|
|
35
|
-
footer decline · message · accept, over a hairline
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
`density="compact"` is a **list row**, not a card with the padding taken out: 64
|
|
39
|
-
tall, a 36 mark, the name, one meta line, the price at the end, and no tiles or
|
|
40
|
-
breakdown at all — a list that draws a card per row has stopped being a list.
|
|
41
|
-
|
|
42
|
-
**The marks sit on the meta line, never beside the name.** A pill states a fact
|
|
43
|
-
in one word and must not shrink; the name beside it is what gives way, and at 390
|
|
44
|
-
that left `Maris…` next to a full-width `Cheapest`.
|
|
45
|
-
|
|
46
|
-
### The card is not one big button
|
|
47
|
-
|
|
48
|
-
`onPressCarrier` is bound to the **identity block**; the three actions sit outside
|
|
49
|
-
it. A control inside a control is invalid on web and ambiguous everywhere, and it
|
|
50
|
-
renders perfectly well either way, which is why it needs saying.
|
|
51
|
-
|
|
52
|
-
### The actions never lose their names
|
|
53
|
-
|
|
54
|
-
Each action is a `Button`. Under 420 of the card's **own** width they drop to
|
|
55
|
-
`iconOnly`, and each one is named `"<action> <carrier>"` whichever way it is
|
|
56
|
-
drawn — losing the label must not lose the name. The same measurement stacks the
|
|
57
|
-
tiles two by two, because a card too narrow for three tiles is too narrow for
|
|
58
|
-
three labelled buttons beside a 48 mark.
|
|
59
|
-
|
|
60
|
-
## The marks belong to the SET
|
|
61
|
-
|
|
62
|
-
`cheapest` and `fastest` are statements about a group of offers. A card handed
|
|
63
|
-
one out of context is claiming something it cannot know, so it does not derive
|
|
64
|
-
them: `CarrierQuoteList` computes them with `markCarrierQuotes` and passes them
|
|
65
|
-
down.
|
|
66
|
-
|
|
67
|
-
They are derived from `priceValue` and `etaMinutes` — **numbers the app supplies
|
|
68
|
-
for comparison and this family never draws.** Money arrives here as a
|
|
69
|
-
pre-formatted string (`price`, `priceNote`, every `priceLines` amount) and
|
|
70
|
-
nothing in this family parses, sums, converts or rounds it; the numeric fields
|
|
71
|
-
exist only so the list can ask which of two is smaller.
|
|
72
|
-
|
|
73
|
-
**Every offer tied at a minimum is marked.** Two offers at the same price are
|
|
74
|
-
both the cheapest; picking one of them would be this component inventing a
|
|
75
|
-
tie-break the app never asked for, and marking neither would hide a true
|
|
76
|
-
statement.
|
|
77
|
-
|
|
78
|
-
**A quote with no number cannot be marked, and sorts last.** Within that group
|
|
79
|
-
the caller's own order is kept — there is nothing left to sort on, and
|
|
80
|
-
re-shuffling a group of equals makes a list jump for no visible reason.
|
|
81
|
-
`sortCarrierQuotes` is stable for the same reason.
|
|
82
|
-
|
|
83
|
-
`rating` sorts high-first; price and ETA sort low-first. That is the only place
|
|
84
|
-
the direction differs, and it is a property of what the number means.
|
|
85
|
-
|
|
86
|
-
## The list's two non-list states
|
|
87
|
-
|
|
88
|
-
- **loading** draws placeholder cards of the same height, inside an
|
|
89
|
-
`aria-busy` group. Not a spinner: the answer arriving is a list, and a list is
|
|
90
|
-
what should be reserved for it.
|
|
91
|
-
- **empty** draws a tinted glyph disc over one line of explanation and the
|
|
92
|
-
caller's own action. An empty offers list is a **wait**, not a failure, so the
|
|
93
|
-
default copy says what happens next rather than what went wrong. Pass
|
|
94
|
-
`emptyTitle` / `emptyDescription` when it is a failure.
|
|
95
|
-
|
|
96
|
-
## Traps
|
|
97
|
-
|
|
98
|
-
- **There is no head until there is a list.** "0 offers" over a control that can
|
|
99
|
-
reorder nothing is chrome for a list that does not exist yet, and the empty
|
|
100
|
-
state already says the same thing in words a reader can act on.
|
|
101
|
-
- **`quotes.length` is the count, not `ordered.length`.** The heading counts what
|
|
102
|
-
the caller has, which is the same number either way today — but it is the
|
|
103
|
-
caller's set that a "3 offers" line is about.
|
|
104
|
-
- **The sort is uncontrolled by default.** Pass `sort` + `onSortChange` to own
|
|
105
|
-
it; `sortOptions={[]}` draws no control at all, which is right for a list of
|
|
106
|
-
two.
|
|
107
|
-
- **`selected` moves a pixel of border and gives it back.** The chosen card takes
|
|
108
|
-
a 2px accent border and drops its own inset by one, so nothing inside it moves
|
|
109
|
-
when it is chosen.
|
|
110
|
-
- **`vehicleIcon` has no default.** A marketplace routing five bodies has five
|
|
111
|
-
glyphs, and Bloom's icon set has no generic one that is honest about all of
|
|
112
|
-
them, so a caller that names none gets no glyph rather than the wrong vehicle.
|
|
113
|
-
- **A tile the quote does not answer is not drawn.** A tile holding an em dash is
|
|
114
|
-
a slot that failed to load.
|
|
115
|
-
|
|
116
|
-
## Tracking is not here
|
|
117
|
-
|
|
118
|
-
Once an offer is accepted the job is tracked with
|
|
119
|
-
[`order-status`](/docs/order-status) — `OrderStatusBar` for the live line and
|
|
120
|
-
`OrderStatusTimeline` for what has happened. This family draws no timeline; the
|
|
121
|
-
`EndToEnd` story shows the three families in one screen.
|
package/docs/delivery-slot.mdx
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Delivery slot
|
|
3
|
-
description: When — the days across the top, the windows of the chosen day with their surcharge, capacity and tier, the sold-out ones, and the ASAP option that belongs to no day. A radio group through Field, not pressables that look selected.
|
|
4
|
-
order: 138
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Delivery slot
|
|
8
|
-
|
|
9
|
-
```tsx
|
|
10
|
-
import { DeliverySlotPicker } from '@oxy.so/bloom/delivery-slot';
|
|
11
|
-
|
|
12
|
-
<DeliverySlotPicker
|
|
13
|
-
days={days}
|
|
14
|
-
day={day}
|
|
15
|
-
onDayChange={(id) => { setDay(id); loadWindows(id); }}
|
|
16
|
-
windows={windows}
|
|
17
|
-
value={slot}
|
|
18
|
-
onValueChange={setSlot}
|
|
19
|
-
asap={{ id: 'asap', eta: '25 – 40 min', price: '+€4.90' }}
|
|
20
|
-
error={touched && !slot ? 'Pick a delivery window to continue.' : null}
|
|
21
|
-
/>;
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## It is a selection, so it is a radio group
|
|
25
|
-
|
|
26
|
-
Not a set of pressables that happen to look selected. The difference is what a screen
|
|
27
|
-
reader says: a `radiogroup` announces the name of the choice and "3 of 7", and each row
|
|
28
|
-
announces whether it is the chosen one. Seven pressables announce seven unrelated buttons,
|
|
29
|
-
one of which is drawn differently — which is exactly as usable as it sounds, and looks
|
|
30
|
-
identical.
|
|
31
|
-
|
|
32
|
-
There are TWO groups, because there are two choices: the DAYS (which day's windows are
|
|
33
|
-
listed) and the WINDOWS. One group a reader has to infer the halves of would be worse than
|
|
34
|
-
either.
|
|
35
|
-
|
|
36
|
-
Each option is `Item` with `role="radio"` — the press target, the hover and press paint,
|
|
37
|
-
the disabled opacity and the `aria-checked` that ARIA scopes to that role are all `Item`'s.
|
|
38
|
-
A sold-out window is `disabled`, so it announces as unavailable rather than merely being
|
|
39
|
-
drawn pale.
|
|
40
|
-
|
|
41
|
-
## The field, and the one clever bit
|
|
42
|
-
|
|
43
|
-
Standalone, the picker IS a `Field` (`multiple`): one `label` names the choice, one
|
|
44
|
-
`error` puts it in its invalid state, one `description` explains it, and one `disabled`
|
|
45
|
-
reaches the strip and every option and cannot be opted out of from inside.
|
|
46
|
-
|
|
47
|
-
Dropped inside somebody else's `Field`, it renders no second one — two fields means two
|
|
48
|
-
labels above one control and an error the outer field describes and the inner one does
|
|
49
|
-
not. It reads the enclosing field's context instead, through `useFieldMembership()`, which
|
|
50
|
-
is why `label` is deliberately UNDEFAULTED: a default here would outrank the one string
|
|
51
|
-
the user can actually read.
|
|
52
|
-
|
|
53
|
-
## The parts are the library's
|
|
54
|
-
|
|
55
|
-
- The day tile is `SelectChip shape="day"` — the same 56-wide, radius-12, weekday-over-date
|
|
56
|
-
tile Bloom already draws for scheduling a viewing. A day picked out of a strip is one
|
|
57
|
-
thing, not one per app.
|
|
58
|
-
- The strip is `ChipRow`, which supplies the sideways scroll, the fade at whichever edge
|
|
59
|
-
has more behind it, and the room a focus ring needs so the outline is not clipped by its
|
|
60
|
-
own scroller. **The fade resolves into the surface BEHIND the row**, which the row
|
|
61
|
-
cannot know: on a card, pass `fadeColor`.
|
|
62
|
-
- The dot is `RadioIndicator` at 20 — `Radio`'s `lg` rung, because the row it marks is two
|
|
63
|
-
lines tall and the 16 `md` dot read as a bullet beside it rather than as the control.
|
|
64
|
-
- The empty day is `EmptyState` at the panel rung.
|
|
65
|
-
|
|
66
|
-
## Capacity is a string, and sold out says only that
|
|
67
|
-
|
|
68
|
-
`capacity` is `"2 left"` or `"Almost full"` or `"Last one"` — a string, because those are
|
|
69
|
-
the same fact said three ways and only the app knows which one its couriers mean.
|
|
70
|
-
|
|
71
|
-
A SOLD-OUT window's detail line says "Sold out" and nothing else. The tier and the
|
|
72
|
-
capacity of a window nobody can take are facts about a thing that is not on offer, and
|
|
73
|
-
reading them out after "Sold out" is how a reader ends up tapping it.
|
|
74
|
-
|
|
75
|
-
## ASAP is at the head of the options, not beside them
|
|
76
|
-
|
|
77
|
-
It belongs to no day, so it stays where it is while the days change — but it is in the
|
|
78
|
-
SAME radio group as the windows, because it is the same choice. A button labelled "ASAP"
|
|
79
|
-
next to a group of windows is how a reader ends up with both chosen, or neither.
|
|
80
|
-
|
|
81
|
-
## Loading is not empty
|
|
82
|
-
|
|
83
|
-
The windows are RELOADED when the day changes. Pass `loading` during that reload: an empty
|
|
84
|
-
list drawn in the gap reads as "nothing left on this day", which is a different and wrong
|
|
85
|
-
answer. The placeholder rows are announced `aria-busy`, so a reader is told to wait rather
|
|
86
|
-
than told nothing.
|
|
87
|
-
|
|
88
|
-
## It computes nothing
|
|
89
|
-
|
|
90
|
-
Every window, every price, every reading is a string the app formatted. The only ordering
|
|
91
|
-
this family does is the order it was handed.
|
package/docs/earnings.mdx
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Earnings
|
|
3
|
-
description: What the work paid — the period's figure and its bars through the earnings chart card, the readings under it, the breakdown by kind, and the next payout with its date and state.
|
|
4
|
-
order: 138
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Earnings
|
|
8
|
-
|
|
9
|
-
```tsx
|
|
10
|
-
import { EarningsSummary } from '@oxy.so/bloom/earnings';
|
|
11
|
-
|
|
12
|
-
<EarningsSummary periods={[day, week, month]} defaultPeriod="week" formatAxisValue={euros} />
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
`EarningsSummary` is the whole panel. `EarningsBreakdown` and `EarningsPayoutRow` are two of its four parts, published because a screen often wants one of them alone.
|
|
16
|
-
|
|
17
|
-
## It is built AROUND the chart card, not beside it
|
|
18
|
-
|
|
19
|
-
`chart-cards`' `EarningsChartCard` is already four of the five things a courier's earnings screen needs: the period's figure, the change on the period before, the Day / Week / Month switch and the bars of the last weeks. Drawing a second figure and a second switch above it would have put two of everything on one panel and left the reader to work out which one was authoritative.
|
|
20
|
-
|
|
21
|
-
So this family draws none of that. It hands the chart card the selected period's data and adds the three things the chart card has no opinion about:
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
EarningsChartCard the switch, the figure, the delta chip, the bars
|
|
25
|
-
tiles the period's other readings
|
|
26
|
-
EarningsBreakdown where the money came from
|
|
27
|
-
EarningsPayoutRow when it reaches the bank
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
The tiles are `ai-profile-card`'s stat tile exactly — radius 10, padding 10, the reading over its label, one row from 640 and two columns below. A courier's "68 jobs done" and a profile's "9B lifetime tokens" are the same object, and a second tile geometry would be a second answer to one question.
|
|
31
|
-
|
|
32
|
-
The breakdown is `price-breakdown`'s `PriceSummary` under a heading, for the same reason. A courier's earnings are an ITEMISATION — jobs, tips, bonuses, adjustments, each a label and an amount the app formatted — which is a fare's itemisation seen from the other side. Writing a second list of label-and-amount rows here would give Bloom two of those, and only one of them would know about `estimated`, `pending`, the discount tone and the info popover.
|
|
33
|
-
|
|
34
|
-
## No total under the breakdown
|
|
35
|
-
|
|
36
|
-
Inside `EarningsSummary` the figure above the chart already IS the total, so `EarningsBreakdown` is given no `total` and draws the kinds with no rule. Pass `total` when you use the breakdown on its own.
|
|
37
|
-
|
|
38
|
-
## The money is never computed, and the headline is the proof
|
|
39
|
-
|
|
40
|
-
A bar carries BOTH a number and an amount, and they are not the same fact:
|
|
41
|
-
|
|
42
|
-
```tsx
|
|
43
|
-
{ label: 'Fri', value: 132.4, amount: '€132.40' }
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
`value` is GEOMETRY — how tall the bar is — and is never drawn. `amount` is what the reader sees.
|
|
47
|
-
|
|
48
|
-
`EarningsChartCard` formats its headline from a number, which is exactly what this family must not do. So the headline is CHOSEN rather than produced: the panel owns the chart's active bar, and `format` returns the period's own `total` at rest and the hovered bar's own `amount` over a bar. `earningsHeadline` is that choice, and it is a pure function so its boundaries — no bars, an index past the end, an index that outlived its data — are reachable by a test.
|
|
49
|
-
|
|
50
|
-
Two consequences, both deliberate:
|
|
51
|
-
|
|
52
|
-
- **The headline does not roll.** `ChartHeadline` counts a number up over 320ms; a pre-formatted amount has nothing to count. The 220ms fade still plays, so the change is still visible.
|
|
53
|
-
- **The Y axis prints a number.** A tick is a position on a scale the chart chose, not a sum the app made, so no string exists for it to have formatted. The default prints the rounded number with nobody's currency on it; **`formatAxisValue` is where an app puts its own**, and an app that forgets it gets a bare axis rather than a wrong currency.
|
|
54
|
-
|
|
55
|
-
## What jest cannot see, and where it is checked instead
|
|
56
|
-
|
|
57
|
-
`earningsHeadline` is pure, so the CHOICE is pinned in `src/__tests__/Earnings.test.tsx` at every boundary. The other half — that the panel actually owns the chart's active bar and re-reads the headline from it — is driven by pointer events on a plot surface that only exists after `onLayout`, and jsdom fires no layout. Measured: gutting `setActiveIndex` to a no-op left that whole suite green.
|
|
58
|
-
|
|
59
|
-
So it is `scripts/verify-earnings-headline.mjs`: a real Chrome, `page.mouse.move` over three bars of different value, reading the emitted headline. It also runs the case the pure test cannot reach — that no reading is ever the raw number the bar was SIZED by, which is what a `format` falling back to its argument would produce and what would still look plausible on screen. The axis words are checked the same way, and for the same reason.
|
|
60
|
-
|
|
61
|
-
## The period is controlled here, and the chart is remounted to follow it
|
|
62
|
-
|
|
63
|
-
An external change to the controlled `period` clears the active bar before the next headline paints, just like using the period switch. Returning to the previous period starts from its total.
|
|
64
|
-
|
|
65
|
-
`useChartRange` inside `chart-cards` is uncontrolled: it takes a `defaultRange` and there is no `range`. A period changed from outside the panel therefore cannot reach the chart card's own segmented control, and the switch and the panel would disagree with nothing to say so.
|
|
66
|
-
|
|
67
|
-
The chart is keyed on the period id, which remounts it with the new default. The cost is that the bars grow in again instead of morphing across the switch. **This is a gap in `chart-cards`, recorded rather than worked around silently** — the fix is a controlled `range` prop on `useChartRange`, and it is not made here.
|
|
68
|
-
|
|
69
|
-
## Payout states
|
|
70
|
-
|
|
71
|
-
Five, because "not in the account yet" is four different situations and a courier acts differently on each.
|
|
72
|
-
|
|
73
|
-
| state | tone | means |
|
|
74
|
-
| --- | --- | --- |
|
|
75
|
-
| `scheduled` | default | waiting; nothing to do |
|
|
76
|
-
| `processing` | info | already moving; nothing to do |
|
|
77
|
-
| `paid` | success | done |
|
|
78
|
-
| `held` | warning | the reader has to do something, and the money is still coming |
|
|
79
|
-
| `failed` | error | the reader has to fix something |
|
|
80
|
-
|
|
81
|
-
**The state is said in words, not only in colour.** The badge carries the word and the tone is a second channel on top of it. `note` is drawn only for `held` and `failed` — a sentence on a scheduled payout is one nobody has to read.
|
|
82
|
-
|
|
83
|
-
The row is an `item`, not a card: `item` already owns the press target, the density, the slots and the disabled wash, and what this component decides is what goes in them.
|
|
84
|
-
|
|
85
|
-
## Traps
|
|
86
|
-
|
|
87
|
-
- **A period carries everything it says.** `total`, `bars`, `lines`, `stats` and `payout` are all the period's own, so switching the segment replaces the whole panel. A payout that does not change with the period is written once, at the panel level.
|
|
88
|
-
- **`deltaRatio` is a RATIO, not money.** `0.148` is up 14.8%. A percentage is not somebody's currency, so it is the one number here that is allowed to be formatted downstream.
|
|
89
|
-
- **A period id that names nothing falls back to the FIRST period**, never to nothing. An empty figure reads as "you earned nothing" rather than as "this app asked for a period that is not on the list".
|
package/docs/job-board.mdx
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Job board
|
|
3
|
-
description: Work a courier can take — what a job pays, where it starts and ends, how long the offer stands, and the board it sits on with the four filters that matter, a sort, a refresh and an empty state.
|
|
4
|
-
order: 137
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Job board
|
|
8
|
-
|
|
9
|
-
```tsx
|
|
10
|
-
import { JobBoard, JobCard } from '@oxy.so/bloom/job-board';
|
|
11
|
-
|
|
12
|
-
<JobBoard
|
|
13
|
-
jobs={jobs}
|
|
14
|
-
payBands={payBands}
|
|
15
|
-
onTake={take}
|
|
16
|
-
onPass={hide}
|
|
17
|
-
onRefresh={pull}
|
|
18
|
-
/>
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
`JobCard` is one piece of work. `JobBoard` is the work on offer, filtered, ordered and counted.
|
|
22
|
-
|
|
23
|
-
## It is the offer card seen from the other side
|
|
24
|
-
|
|
25
|
-
`carrier-quote`'s `CarrierQuoteCard` is a carrier saying what they would charge to move something. This is the same object read by the person who would move it: the same blocks in the same order, the same tile row, the same 420 threshold at which the actions drop their labels, the same footer over a hairline. Both were built from the same measurements on purpose — a courier app shows one of these on the board and the other in the customer's app, and two different geometries would make them look like two products.
|
|
26
|
-
|
|
27
|
-
What differs is only whose number the headline is, and what stands where the person does:
|
|
28
|
-
|
|
29
|
-
| | `CarrierQuoteCard` | `JobCard` |
|
|
30
|
-
| --- | --- | --- |
|
|
31
|
-
| the mark | the carrier's 48 avatar | the 48 vehicle tile |
|
|
32
|
-
| the identity | the carrier's name and rating | what is being moved |
|
|
33
|
-
| the headline | the price asked | the pay offered |
|
|
34
|
-
| the middle | three tiles | the route, then three tiles |
|
|
35
|
-
| the footer | decline · message · accept | pass · take |
|
|
36
|
-
|
|
37
|
-
## The geometry
|
|
38
|
-
|
|
39
|
-
- **Card.** Outlined, radius 20, 16 inset, 16 between blocks. Chosen, it takes a 2px border and gives the pixel back out of its own inset, so nothing inside moves.
|
|
40
|
-
- **Mark.** 48 comfortable, 36 compact, radius 12, at the surface's next fill up. It carries the glyph for `vehicleKind`, or `vehicleIcon` when the app names one. With neither it is the route glyph — a marketplace that routes five bodies has five glyphs, and guessing between them is worse than not drawing one.
|
|
41
|
-
- **Tiles.** Distance, time, window. One row over 420, two columns under it, an odd tile keeping its half.
|
|
42
|
-
- **Compact.** 64 tall, the mark, the load, one meta line, the pay. No route, no tiles, no breakdown: that density is a LIST ROW, and a list row that drew a route would be a card with the padding taken out.
|
|
43
|
-
|
|
44
|
-
## The route is `RouteStops`, not a second pin column
|
|
45
|
-
|
|
46
|
-
`pickup`, `via` and `dropoff` become that family's stops, at its `compact` density. It already owns the marker shapes, the connector that fills behind a journey, the position words and the announced name; a second column drawn here would be a fourth marker vocabulary in one library.
|
|
47
|
-
|
|
48
|
-
## What a job is CLOSED does not remove it
|
|
49
|
-
|
|
50
|
-
`state` is `open`, `taken` or `expired`. A closed job keeps its place, dims to the disabled opacity, and says which of the two happened — as a `Badge` beside the load and again where the take action was. The take action is GONE rather than greyed out: a dimmed primary button invites a press that can never succeed.
|
|
51
|
-
|
|
52
|
-
This is the one behaviour the board exists to get right. A row that vanishes under a thumb is indistinguishable from a mis-tap, and the reader is left unsure whether they took the job or lost it. `filterJobOffers` answers the reader's four questions and nothing else, so nothing about a job's state can make it disappear.
|
|
53
|
-
|
|
54
|
-
## The filters
|
|
55
|
-
|
|
56
|
-
Four independent questions, combined with AND, each a sideways-scrolling `ChipRow`:
|
|
57
|
-
|
|
58
|
-
| | reads | default bands |
|
|
59
|
-
| --- | --- | --- |
|
|
60
|
-
| distance | `distanceKm` | `JOB_DISTANCE_BANDS` — any, 3, 10, 25 km |
|
|
61
|
-
| pay | `payValue` | **none** |
|
|
62
|
-
| when | `startsInMinutes` | `JOB_WHEN_BANDS` — any, hour, 4 hours, today |
|
|
63
|
-
| vehicle | `vehicleKind` | the five `vehicle-picker` knows |
|
|
64
|
-
|
|
65
|
-
**`payBands` has no default and will not get one.** A band is words plus an amount, and the amount is a currency. A kilometre and a minute are nobody's; twenty euros is somebody's.
|
|
66
|
-
|
|
67
|
-
**A filter cannot exclude what it cannot measure.** A job with no `distanceKm` survives every distance band; one with no `payValue` survives every pay floor. Treating a missing value as zero is how a filter hides work from a courier because the app omitted a field.
|
|
68
|
-
|
|
69
|
-
**Vehicle is a set of toggles, not a radiogroup.** A courier with a van can take a bike job, and "van or box truck" is a sentence the board has to be able to say. Pressing the only selected vehicle clears the dimension.
|
|
70
|
-
|
|
71
|
-
## The order
|
|
72
|
-
|
|
73
|
-
`sortJobOffers` is stable, and PAY sorts high first while distance, start and expiry sort low first — a courier scanning for money wants the biggest number and scanning for distance wants the smallest, so one direction would be wrong three times. A job with no number for the current key goes LAST, keeping the caller's order inside that group: there is nothing left to sort it on, and re-shuffling a group of equals makes a board jump for no visible reason.
|
|
74
|
-
|
|
75
|
-
## Traps
|
|
76
|
-
|
|
77
|
-
- **Money is never parsed.** `pay`, `payNote` and every `payLines` amount are drawn exactly as given. `payValue` is a separate number for ordering and the pay filter, and it is never drawn. Nothing here adds, converts or rounds.
|
|
78
|
-
- **The card is not one big button.** `onPressJob` is bound to the load block; the actions sit outside it. A control inside a control is invalid on web and renders fine either way.
|
|
79
|
-
- **The actions lose their labels, never their names.** Under 420 each drops to a glyph and keeps `"<action> <load>"`.
|
|
80
|
-
- **`disabled` is a constraint, not a default.** It combines with the job's own state, so a caller cannot re-enable a job the marketplace has already given away.
|
|
81
|
-
- **The refresh control does not spin.** Bloom draws no press animations; while `refreshing` it is inert, because a second pull would race the first.
|
|
82
|
-
- **The empty state offers the undo it caused.** With a filter narrowed and no `emptyAction`, the clear control is drawn there.
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Proof of delivery
|
|
3
|
-
description: The proofs an app asks for at the door — a signature drawn with a finger or typed, a photo of where it was left, a code the recipient reads out, who took it and a note — each optional, all of them one result.
|
|
4
|
-
order: 139
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Proof of delivery
|
|
8
|
-
|
|
9
|
-
```tsx
|
|
10
|
-
import { ProofOfDelivery, SignaturePad } from '@oxy.so/bloom/proof-of-delivery';
|
|
11
|
-
|
|
12
|
-
<ProofOfDelivery
|
|
13
|
-
proofs={['recipient', 'signature', 'photo']}
|
|
14
|
-
required={['recipient', 'signature']}
|
|
15
|
-
onAddPhoto={openCamera}
|
|
16
|
-
onSubmit={(result) => result.missing.length === 0 && record(result)}
|
|
17
|
-
/>
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Five proofs, five existing controls, one new surface
|
|
21
|
-
|
|
22
|
-
| proof | control |
|
|
23
|
-
| --- | --- |
|
|
24
|
-
| `recipient` | `TextFieldInput` |
|
|
25
|
-
| `signature` | `SignaturePad` — the one thing this family adds |
|
|
26
|
-
| `code` | `InputOtp`, which already cleans, pads and reports completion |
|
|
27
|
-
| `photo` | `SortablePhotoGrid` |
|
|
28
|
-
| `note` | `Textarea` |
|
|
29
|
-
|
|
30
|
-
Every one is a `Field`, so the label, the hint, the required mark, the error and the association with the control are said once (`docs/composition.mdx`). Two of the five draw SEVERAL controls — the signature is a pad and a name, the photo is a grid — so those fields are `multiple`: one id on three inputs is invalid HTML, and one error described by three inputs is announced three times.
|
|
31
|
-
|
|
32
|
-
A photo counts as proof once its status is `uploaded` (also the default when omitted). Failed and uploading photos remain missing. `labels.required` overrides the accessible required marker for this form.
|
|
33
|
-
|
|
34
|
-
Custom `actions` inherit the form’s `disabled` and `submitting` interaction lock, including keyboard focus on web.
|
|
35
|
-
|
|
36
|
-
### Why the photo is not `FileUpload`
|
|
37
|
-
|
|
38
|
-
`FileUpload` is a DROP ZONE with an upload lifecycle of its own. That is right for a document on a desktop and wrong at a door: the photo comes from a camera the app opens, and what has to be on screen afterwards is the picture, its upload state and a way to take another. `SortablePhotoGrid` is that — the app owns the picker, the grid owns the order, the per-photo progress and the retry.
|
|
39
|
-
|
|
40
|
-
## The order is the door's, not the caller's
|
|
41
|
-
|
|
42
|
-
`PROOF_ORDER` is recipient, signature, code, photo, note, and `proofs` is filtered through it whatever order it arrives in. Recipient first because it is the question the courier asks out loud and the answer decides the rest; then the two proofs the RECIPIENT takes part in; then the photo, taken after they have gone; then the note, written about everything above it.
|
|
43
|
-
|
|
44
|
-
## The confirm control is never disabled
|
|
45
|
-
|
|
46
|
-
It fires `onSubmit` on every press, with `missing` filled in. Pressing with something outstanding puts the error on each missing field AND an `error` `Admonition` in a `role="alert"` at the bottom naming them, so the answer arrives in the same gesture that asked the question.
|
|
47
|
-
|
|
48
|
-
A disabled confirm is the failure mode this avoids: the reader presses, nothing happens, and nothing on screen says why — least of all to a screen reader, which is told only that a button is dimmed.
|
|
49
|
-
|
|
50
|
-
The errors appear only after the first press. A form that is red before it has been filled in is a form that is wrong about the reader.
|
|
51
|
-
|
|
52
|
-
`submitting` is the one thing that does stop the press, because a second confirm would record the same delivery twice.
|
|
53
|
-
|
|
54
|
-
**A proof that is required but not DRAWN cannot be missing.** `missingProofs` intersects `required` with `proofs`, so an app that requires a control it never showed cannot refuse a delivery over it.
|
|
55
|
-
|
|
56
|
-
## `SignaturePad`
|
|
57
|
-
|
|
58
|
-
- **The pad** is a filled surface at the next level up, radius 12, with a baseline hairline at 72% of its height. A signature is written ON a line; without one a finger starts wherever it lands and the capture reads as a doodle.
|
|
59
|
-
- **The ink** is one `<Path>` per stroke, quadratic through the MIDPOINTS of the samples, round caps and joins, painted in the TEXT colour — a signature is writing, not a brand mark.
|
|
60
|
-
- **The pointer** is one `PanResponder`, which react-native-web routes from real mouse, touch and pen events through its own responder system. The same file draws on both platforms and there is no `.web` fork to keep in step. Points arrive in the pad's own coordinates (`locationX` / `locationY`, measured against the responder node), so a scrolled or transformed page needs no correction.
|
|
61
|
-
- **The pad KEEPS the gesture** (`onPanResponderTerminationRequest: () => false`). A signature crosses a scroller, and an ancestor that stole the gesture mid-word would break the stroke in half and leave the second half unrecorded.
|
|
62
|
-
- Samples closer together than 2px are dropped. A resting finger reports the same coordinate many times a second, and every repeat is a zero-length curve the smoothing then has to average out.
|
|
63
|
-
- **A single tap lays down a DOT.** `signaturePath` emits `M… l0 0` for one point, which a round cap paints as a dot — a full stop in a signature is exactly that. Without it a tap draws nothing and the reader taps harder.
|
|
64
|
-
|
|
65
|
-
### The typed field is the other half of the control, not a fallback
|
|
66
|
-
|
|
67
|
-
A pad is a pointer affordance: there is no keyboard gesture for it, a screen reader has nothing to announce but an empty box, and a motor impairment makes it unusable. So both paths are drawn AT ONCE rather than behind a mode switch — a mode a reader has to find is a mode most readers never find — and `isSignatureGiven` treats ink and a typed name as the same answer.
|
|
68
|
-
|
|
69
|
-
`typed={false}` removes it. That is a deliberate escape hatch for an app collecting the name in a field of its own on the same screen, and it is the only way to ship this control with no accessible path at all.
|
|
70
|
-
|
|
71
|
-
The pad itself announces as `role="img"` named "Signature" (and "Signature, Signed" once there is ink). The drawn signature IS an image: not operable by keyboard, holding no state ARIA can read.
|
|
72
|
-
|
|
73
|
-
## What jest cannot see, and where it is checked instead
|
|
74
|
-
|
|
75
|
-
**A jest test cannot see a canvas.** react-native-svg renders to a native view on one platform and to a `<path>` on the other, and jsdom paints neither.
|
|
76
|
-
|
|
77
|
-
So the split is deliberate:
|
|
78
|
-
|
|
79
|
-
- `signaturePath`, `shouldKeepSignaturePoint`, `isProofGiven` and `missingProofs` are PURE, and `src/__tests__/ProofOfDelivery.test.tsx` walks their boundaries — no points, one point, two, a code half entered, a required proof that was never drawn.
|
|
80
|
-
- That ink actually lands under a real pointer is `scripts/verify-signature-pad.mjs`: a real Chrome, `page.mouse.down/move/up` through the browser's own hit testing, reading the emitted `<path d>`. It also runs the negative control — a press with no movement, which must still leave a dot, and a press on a `disabled` pad, which must leave nothing.
|
|
81
|
-
|
|
82
|
-
## Traps
|
|
83
|
-
|
|
84
|
-
- **The code counts only once it is FULL.** `InputOtp` reports every keystroke, and "2 of 4 digits" is not a code the recipient read out, so `codeLength` is part of the question rather than something the caller checks after.
|
|
85
|
-
- **`value` is partial and `onChange` is not.** A caller may control one field; the component fills the rest from `EMPTY_PROOF` and always reports the whole thing.
|
|
86
|
-
- **`onAddPhoto` is the app's picker.** Without it the grid draws no add tile — the component opens no camera of its own on either platform.
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Shipment request
|
|
3
|
-
description: Describing a job for a carrier — what is being moved, how big and how heavy, the photos, and the options that change the price — as one column of sections built from the families that already own each part.
|
|
4
|
-
order: 134
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Shipment request
|
|
8
|
-
|
|
9
|
-
```tsx
|
|
10
|
-
import {
|
|
11
|
-
ShipmentRequestForm,
|
|
12
|
-
ShipmentLoadPicker,
|
|
13
|
-
ShipmentOptionsList,
|
|
14
|
-
} from '@oxy.so/bloom/shipment-request';
|
|
15
|
-
|
|
16
|
-
<ShipmentRequestForm
|
|
17
|
-
route={{ stops, onSwap, onAddStop, onRemoveStop }}
|
|
18
|
-
load={load}
|
|
19
|
-
onLoadChange={setLoad}
|
|
20
|
-
loadProps={{ notes: true }}
|
|
21
|
-
photos={{ photos, onReorder, onRemove, onAdd }}
|
|
22
|
-
options={{ extras, selectedExtras, onExtrasChange, accessOptions, access, onAccessChange }}
|
|
23
|
-
price={{ lines, total }}
|
|
24
|
-
footer={<Button size="lg" fullWidth onPress={submit} tone="accent" appearance="solid">Ask for quotes</Button>}
|
|
25
|
-
/>
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Three components: the **form** is the register and the order, the **load picker**
|
|
29
|
-
and the **options list** are the two halves of it that are this family's own.
|
|
30
|
-
Either half works on its own — a sheet that only asks for the load does not have
|
|
31
|
-
to mount a form.
|
|
32
|
-
|
|
33
|
-
## What the form draws, and what it does not
|
|
34
|
-
|
|
35
|
-
`ShipmentRequestForm` draws **nothing of its own**. Every section is an existing
|
|
36
|
-
Bloom family handed its props unchanged:
|
|
37
|
-
|
|
38
|
-
| section | component | subpath |
|
|
39
|
-
| --- | --- | --- |
|
|
40
|
-
| Where it goes | `RouteStops` | `@oxy.so/bloom/route-stops` |
|
|
41
|
-
| The load | `ShipmentLoadPicker` | this family |
|
|
42
|
-
| Photos | `SortablePhotoGrid` | `@oxy.so/bloom/sortable-media` |
|
|
43
|
-
| Options | `ShipmentOptionsList` | this family |
|
|
44
|
-
| Price | `PriceSummary` | `@oxy.so/bloom/price-breakdown` |
|
|
45
|
-
|
|
46
|
-
The sections are drawn with `FilterSection`, so the inset, the heading rhythm and
|
|
47
|
-
the rule between two sections are the ones a Bloom filter sheet already uses —
|
|
48
|
-
there is one set of numbers, not two.
|
|
49
|
-
|
|
50
|
-
The one decision the form makes is the **order**, and it is the order a carrier
|
|
51
|
-
needs the questions answered in: where, what, what it looks like, what changes
|
|
52
|
-
the price, what the price currently is. The price is last on purpose — the
|
|
53
|
-
options that move the number and the number itself end up on one screen.
|
|
54
|
-
|
|
55
|
-
**A section whose props are absent is not drawn.** `photos`, `options` and
|
|
56
|
-
`price` are each optional, and a job that needs no photograph should not be asked
|
|
57
|
-
for one. The route and the load are not optional: a shipment with neither is not
|
|
58
|
-
a request.
|
|
59
|
-
|
|
60
|
-
**The last section has no rule under it**, and the `footer` sits below it with
|
|
61
|
-
none either. A divider separates two things; there is nothing after the last one.
|
|
62
|
-
|
|
63
|
-
## The load picker
|
|
64
|
-
|
|
65
|
-
Four questions and an optional fifth, each drawn in the control that fits the
|
|
66
|
-
shape of its answer:
|
|
67
|
-
|
|
68
|
-
- **kind** — one answer out of five, each with a sentence explaining what it
|
|
69
|
-
covers, so it is a column of selectable cards (the same card the listing editor
|
|
70
|
-
builds its pickers from). Not chips: a chip has no room for the sentence, and
|
|
71
|
-
the sentence is what stops someone filing a mattress under "parcel".
|
|
72
|
-
- **size** — a `SegmentedControl` of single letters, with the **chosen** rung's
|
|
73
|
-
sentence under the control. Four sentences never fit in one control at phone
|
|
74
|
-
width; a control whose every option carries its own sentence is a list.
|
|
75
|
-
- **weight** — a `TextField` whose unit is a `TextFieldSuffix`.
|
|
76
|
-
- **quantity** — a `StepperRow` from 1.
|
|
77
|
-
- **notes** — an auto-resizing `Textarea`, only when `notes` is set.
|
|
78
|
-
|
|
79
|
-
### The value arrives whole
|
|
80
|
-
|
|
81
|
-
`onValueChange` is called with the next `ShipmentLoad`, never with a patch. A
|
|
82
|
-
form that merges patches in five places has five chances to drop a field; this
|
|
83
|
-
one has none. It costs the caller a spread and buys a value that cannot be
|
|
84
|
-
half-applied.
|
|
85
|
-
|
|
86
|
-
### The unit is not part of the value
|
|
87
|
-
|
|
88
|
-
`weight` holds digits and at most one dot. `sanitizeWeight` accepts a comma and
|
|
89
|
-
emits a dot (half of Europe types one, and no app wants to parse both), strips
|
|
90
|
-
the unit, and turns a leading separator into `0.`. The "kg" beside the field is
|
|
91
|
-
drawn and announced; it is never stored. An app parses a number, not a sentence.
|
|
92
|
-
|
|
93
|
-
`isShipmentLoadComplete(load)` is the same decision the picker makes about
|
|
94
|
-
whether every control has been answered, exported so a submit button can be
|
|
95
|
-
disabled from it rather than from a second copy of it. It is **not** validation:
|
|
96
|
-
an app that prices a job has its own rules, and `errors` is where their messages
|
|
97
|
-
go.
|
|
98
|
-
|
|
99
|
-
## The options list
|
|
100
|
-
|
|
101
|
-
Three groups, and the control is the difference between them:
|
|
102
|
-
|
|
103
|
-
- **extras** are independent of one another, so each is a settings row with a
|
|
104
|
-
`Switch` and its own price at the end. "And also this" is a switch.
|
|
105
|
-
- **access** — one of ground floor, stairs and lift is true, so they are a
|
|
106
|
-
`radiogroup` of chips and choosing one unchooses the rest.
|
|
107
|
-
- **windows** — the same, over collection times.
|
|
108
|
-
|
|
109
|
-
**The interactive chips are `size="xl"`** — 32 drawn, 44 under a thumb through
|
|
110
|
-
`Chip`'s own `hitSlop`. The smaller rungs are for labels; a single-choice control
|
|
111
|
-
at phone width is not one.
|
|
112
|
-
|
|
113
|
-
**The row is not the control.** A pressable row wrapping a switch is two targets
|
|
114
|
-
for one answer, and on web the outer one is a button containing a checkbox. The
|
|
115
|
-
switch is the only thing that toggles.
|
|
116
|
-
|
|
117
|
-
**A switch draws no text**, so each one is named with its row's title, its
|
|
118
|
-
description and its price. A caption beside a switch is a sibling on both
|
|
119
|
-
platforms — neither associates the two — so a screen reader reading only the
|
|
120
|
-
control announces "switch, off" without this.
|
|
121
|
-
|
|
122
|
-
## Money
|
|
123
|
-
|
|
124
|
-
Every amount in this family is a **pre-formatted string**: `"+€12.00"`,
|
|
125
|
-
`"Included"`, `"−€3.00"`. Nothing here parses, sums, converts or rounds. The
|
|
126
|
-
running total is `PriceSummary`'s job, and the app computes it.
|
|
127
|
-
|
|
128
|
-
## Traps
|
|
129
|
-
|
|
130
|
-
- **`SHIPMENT_REQUEST_GEOMETRY` has no section numbers.** They belong to
|
|
131
|
-
`FilterSection`, which draws them. A second copy here would drift from the one
|
|
132
|
-
on screen.
|
|
133
|
-
- **The form measures nothing itself.** The load picker measures its own width
|
|
134
|
-
(480) to decide whether the weight field sits beside the quantity; the form
|
|
135
|
-
does not, because every section it draws already decides its own layout.
|
|
136
|
-
- **`kinds` is a prop, and the five defaults are opinions.** They are the five
|
|
137
|
-
that change how a job is priced and carried, not a taxonomy of objects. There
|
|
138
|
-
is deliberately no "Other": a marketplace that cannot name what it is carrying
|
|
139
|
-
cannot quote it, and `notes` is where an unusual load is described.
|