@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
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { memo, useMemo } from 'react';
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
import { Chip } from "../chip/index.js";
|
|
6
|
-
import { useMessages } from "../locale/messages.js";
|
|
7
|
-
import { GroupedSection, GroupedSectionItem } from "../grouped-section/index.js";
|
|
8
|
-
import { Switch } from "../switch/index.js";
|
|
9
|
-
import { TextFieldLabel } from "../text-field/index.js";
|
|
10
|
-
import { useTheme } from "../theme/use-theme.js";
|
|
11
|
-
import { Text } from "../typography/index.js";
|
|
12
|
-
import { SHIPMENT_REQUEST_GEOMETRY } from "./constants.js";
|
|
13
|
-
import { SHIPMENT_REQUEST_MESSAGES } from "./messages.js";
|
|
14
|
-
import { joinShipmentName, toggleShipmentExtra } from "./shared.js";
|
|
15
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
/**
|
|
17
|
-
* The answers that change what a job costs.
|
|
18
|
-
*
|
|
19
|
-
* Three groups, and the CONTROL is the difference between them:
|
|
20
|
-
*
|
|
21
|
-
* extras independent of each other, so each is a `GroupedSectionItem` with a
|
|
22
|
-
* `Switch` and its own price at the end of the row. A switch is the
|
|
23
|
-
* control for "and also this"
|
|
24
|
-
* access exactly one is true — a place is on the ground, up stairs, or has a
|
|
25
|
-
* lift — so they are a `radiogroup` of chips, and choosing one
|
|
26
|
-
* unchooses the rest without the user having to
|
|
27
|
-
* window the same, over collection times
|
|
28
|
-
*
|
|
29
|
-
* **A PRICE HERE IS A STRING.** `"+€12.00"`, `"Included"` — drawn where the
|
|
30
|
-
* option is and never added to anything. The running total belongs to
|
|
31
|
-
* `PriceSummary`, which is what `ShipmentRequestForm` puts under this.
|
|
32
|
-
*
|
|
33
|
-
* **A SWITCH DRAWS NO TEXT**, so each one is named with its row's title and its
|
|
34
|
-
* price: the caption beside a switch is a SIBLING on both platforms, and a
|
|
35
|
-
* screen reader that reads only the control announces "switch, off".
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
const TABULAR = {
|
|
39
|
-
fontVariant: ['tabular-nums']
|
|
40
|
-
};
|
|
41
|
-
function ShipmentOptionsListComponent({
|
|
42
|
-
extras,
|
|
43
|
-
selectedExtras = [],
|
|
44
|
-
onExtrasChange,
|
|
45
|
-
accessOptions,
|
|
46
|
-
access = null,
|
|
47
|
-
onAccessChange,
|
|
48
|
-
windows,
|
|
49
|
-
window: windowId = null,
|
|
50
|
-
onWindowChange,
|
|
51
|
-
labels: labelOverrides,
|
|
52
|
-
disabled = false,
|
|
53
|
-
style,
|
|
54
|
-
testID
|
|
55
|
-
}) {
|
|
56
|
-
const theme = useTheme();
|
|
57
|
-
const {
|
|
58
|
-
messages
|
|
59
|
-
} = useMessages(SHIPMENT_REQUEST_MESSAGES);
|
|
60
|
-
const labels = useMemo(() => ({
|
|
61
|
-
...messages.options,
|
|
62
|
-
...labelOverrides
|
|
63
|
-
}), [messages, labelOverrides]);
|
|
64
|
-
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
65
|
-
const chosen = new Set(selectedExtras);
|
|
66
|
-
const priceText = price => price === undefined ? null : /*#__PURE__*/_jsx(Text, {
|
|
67
|
-
variant: "body-2-medium",
|
|
68
|
-
numberOfLines: 1,
|
|
69
|
-
style: [{
|
|
70
|
-
color: theme.colors.textSecondary
|
|
71
|
-
}, TABULAR],
|
|
72
|
-
children: price
|
|
73
|
-
});
|
|
74
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
75
|
-
testID: testID,
|
|
76
|
-
style: [{
|
|
77
|
-
gap: SHIPMENT_REQUEST_GEOMETRY.controlGap
|
|
78
|
-
}, style],
|
|
79
|
-
children: [extras?.length ? /*#__PURE__*/_jsxs(View, {
|
|
80
|
-
style: {
|
|
81
|
-
gap: 8
|
|
82
|
-
},
|
|
83
|
-
testID: id('extras'),
|
|
84
|
-
children: [/*#__PURE__*/_jsx(TextFieldLabel, {
|
|
85
|
-
children: labels.extras
|
|
86
|
-
}), /*#__PURE__*/_jsx(GroupedSection, {
|
|
87
|
-
children: extras.map(extra => {
|
|
88
|
-
const on = chosen.has(extra.key);
|
|
89
|
-
const blocked = disabled || extra.disabled === true;
|
|
90
|
-
const name = joinShipmentName([extra.title, extra.description, extra.price]);
|
|
91
|
-
return /*#__PURE__*/_jsx(GroupedSectionItem, {
|
|
92
|
-
icon: extra.icon ? /*#__PURE__*/_jsx(extra.icon, {
|
|
93
|
-
width: 20,
|
|
94
|
-
height: 20,
|
|
95
|
-
fill: theme.colors.text
|
|
96
|
-
}) : undefined,
|
|
97
|
-
title: extra.title,
|
|
98
|
-
description: extra.description,
|
|
99
|
-
disabled: blocked
|
|
100
|
-
// The ROW is not the control. A pressable row wrapping a
|
|
101
|
-
// switch is two targets for one answer, and on web the outer
|
|
102
|
-
// one is a button containing a checkbox.
|
|
103
|
-
,
|
|
104
|
-
showChevron: false,
|
|
105
|
-
rightElement: /*#__PURE__*/_jsxs(View, {
|
|
106
|
-
style: {
|
|
107
|
-
flexDirection: 'row',
|
|
108
|
-
alignItems: 'center',
|
|
109
|
-
gap: 10
|
|
110
|
-
},
|
|
111
|
-
children: [priceText(extra.price), /*#__PURE__*/_jsx(Switch, {
|
|
112
|
-
checked: on,
|
|
113
|
-
onCheckedChange: () => onExtrasChange?.(toggleShipmentExtra(extras, selectedExtras, extra.key)),
|
|
114
|
-
disabled: blocked,
|
|
115
|
-
accessibilityLabel: name,
|
|
116
|
-
testID: id(`extra-${extra.key}`)
|
|
117
|
-
})]
|
|
118
|
-
})
|
|
119
|
-
}, extra.key);
|
|
120
|
-
})
|
|
121
|
-
})]
|
|
122
|
-
}) : null, accessOptions?.length ? /*#__PURE__*/_jsxs(View, {
|
|
123
|
-
style: {
|
|
124
|
-
gap: 8
|
|
125
|
-
},
|
|
126
|
-
children: [/*#__PURE__*/_jsx(TextFieldLabel, {
|
|
127
|
-
children: labels.access
|
|
128
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
129
|
-
collapsable: false,
|
|
130
|
-
role: "radiogroup",
|
|
131
|
-
accessibilityLabel: labels.access,
|
|
132
|
-
style: {
|
|
133
|
-
flexDirection: 'row',
|
|
134
|
-
flexWrap: 'wrap',
|
|
135
|
-
gap: SHIPMENT_REQUEST_GEOMETRY.chipGap
|
|
136
|
-
},
|
|
137
|
-
testID: id('access'),
|
|
138
|
-
children: accessOptions.map(option => /*#__PURE__*/_jsx(Chip, {
|
|
139
|
-
role: "radio",
|
|
140
|
-
size: "xl",
|
|
141
|
-
variant: "outlined",
|
|
142
|
-
selected: access === option.value,
|
|
143
|
-
disabled: disabled || option.disabled,
|
|
144
|
-
leadingIcon: option.icon,
|
|
145
|
-
onPress: () => onAccessChange?.(option.value),
|
|
146
|
-
accessibilityLabel: joinShipmentName([option.label, option.price]),
|
|
147
|
-
testID: id(`access-${option.value}`),
|
|
148
|
-
children: joinShipmentName([option.label, option.price], ' · ')
|
|
149
|
-
}, option.value))
|
|
150
|
-
})]
|
|
151
|
-
}) : null, windows?.length ? /*#__PURE__*/_jsxs(View, {
|
|
152
|
-
style: {
|
|
153
|
-
gap: 8
|
|
154
|
-
},
|
|
155
|
-
children: [/*#__PURE__*/_jsx(TextFieldLabel, {
|
|
156
|
-
children: labels.window
|
|
157
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
158
|
-
collapsable: false,
|
|
159
|
-
role: "radiogroup",
|
|
160
|
-
accessibilityLabel: labels.window,
|
|
161
|
-
style: {
|
|
162
|
-
flexDirection: 'row',
|
|
163
|
-
flexWrap: 'wrap',
|
|
164
|
-
gap: SHIPMENT_REQUEST_GEOMETRY.chipGap
|
|
165
|
-
},
|
|
166
|
-
testID: id('window'),
|
|
167
|
-
children: windows.map(option => /*#__PURE__*/_jsx(Chip, {
|
|
168
|
-
role: "radio",
|
|
169
|
-
size: "xl",
|
|
170
|
-
variant: "outlined",
|
|
171
|
-
selected: windowId === option.id,
|
|
172
|
-
disabled: disabled || option.disabled,
|
|
173
|
-
onPress: () => onWindowChange?.(option.id),
|
|
174
|
-
accessibilityLabel: joinShipmentName([option.label, option.price]),
|
|
175
|
-
testID: id(`window-${option.id}`),
|
|
176
|
-
children: joinShipmentName([option.label, option.price], ' · ')
|
|
177
|
-
}, option.id))
|
|
178
|
-
})]
|
|
179
|
-
}) : null]
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
export const ShipmentOptionsList = /*#__PURE__*/memo(ShipmentOptionsListComponent);
|
|
183
|
-
ShipmentOptionsList.displayName = 'ShipmentOptionsList';
|
|
184
|
-
//# sourceMappingURL=ShipmentOptionsList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useMemo","View","Chip","useMessages","GroupedSection","GroupedSectionItem","Switch","TextFieldLabel","useTheme","Text","SHIPMENT_REQUEST_GEOMETRY","SHIPMENT_REQUEST_MESSAGES","joinShipmentName","toggleShipmentExtra","jsx","_jsx","jsxs","_jsxs","TABULAR","fontVariant","ShipmentOptionsListComponent","extras","selectedExtras","onExtrasChange","accessOptions","access","onAccessChange","windows","window","windowId","onWindowChange","labels","labelOverrides","disabled","style","testID","theme","messages","options","id","part","undefined","chosen","Set","priceText","price","variant","numberOfLines","color","colors","textSecondary","children","gap","controlGap","length","map","extra","on","has","key","blocked","name","title","description","icon","width","height","fill","text","showChevron","rightElement","flexDirection","alignItems","checked","onCheckedChange","accessibilityLabel","collapsable","role","flexWrap","chipGap","option","size","selected","value","leadingIcon","onPress","label","ShipmentOptionsList","displayName"],"sourceRoot":"../../../src","sources":["shipment-request/ShipmentOptionsList.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,OAAO,QAAQ,OAAO;AACrC,SAASC,IAAI,QAAwB,cAAc;AAEnD,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,WAAW,QAAQ,uBAAoB;AAChD,SAASC,cAAc,EAAEC,kBAAkB,QAAQ,6BAAoB;AACvE,SAASC,MAAM,QAAQ,oBAAW;AAClC,SAASC,cAAc,QAAQ,wBAAe;AAC9C,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,yBAAyB,QAAQ,gBAAa;AACvD,SAASC,yBAAyB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,CAACb,IAAI;UAEH2E,IAAI,EAAC,OAAO;UACZI,IAAI,EAAC,IAAI;UACTnC,OAAO,EAAC,UAAU;UAClBoC,QAAQ,EAAErD,QAAQ,KAAKmD,MAAM,CAACzC,EAAG;UACjCN,QAAQ,EAAEA,QAAQ,IAAI+C,MAAM,CAAC/C,QAAS;UACtCoD,OAAO,EAAEA,CAAA,KAAMvD,cAAc,GAAGkD,MAAM,CAACzC,EAAE,CAAE;UAC3CoC,kBAAkB,EAAE/D,gBAAgB,CAAC,CAACoE,MAAM,CAACM,KAAK,EAAEN,MAAM,CAACnC,KAAK,CAAC,CAAE;UACnEV,MAAM,EAAEI,EAAE,CAAC,UAAUyC,MAAM,CAACzC,EAAE,EAAE,CAAE;UAAAY,QAAA,EAEjCvC,gBAAgB,CAAC,CAACoE,MAAM,CAACM,KAAK,EAAEN,MAAM,CAACnC,KAAK,CAAC,EAAE,KAAK;QAAC,GAVjDmC,MAAM,CAACzC,EAWR,CACP;MAAC,CACE,CAAC;IAAA,CACH,CAAC,GACL,IAAI;EAAA,CACJ,CAAC;AAEX;AAEA,OAAO,MAAMgD,mBAAmB,gBAAGxF,IAAI,CAACqB,4BAA4B,CAAC;AACrEmE,mBAAmB,CAACC,WAAW,GAAG,qBAAqB","ignoreList":[]}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { memo, useMemo } from 'react';
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
import { useMessages } from "../locale/messages.js";
|
|
6
|
-
import { PriceSummary } from "../price-breakdown/index.js";
|
|
7
|
-
import { RouteStops } from "../route-stops/index.js";
|
|
8
|
-
import { SortablePhotoGrid } from "../sortable-media/index.js";
|
|
9
|
-
import { FilterSection } from "../stay-filters/FilterSection.js";
|
|
10
|
-
import { ShipmentLoadPicker } from "./ShipmentLoadPicker.js";
|
|
11
|
-
import { ShipmentOptionsList } from "./ShipmentOptionsList.js";
|
|
12
|
-
import { SHIPMENT_REQUEST_LABELS } from "./constants.js";
|
|
13
|
-
import { SHIPMENT_REQUEST_MESSAGES } from "./messages.js";
|
|
14
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
/**
|
|
16
|
-
* Describing a job: where it goes, what is being moved, what it looks like,
|
|
17
|
-
* what changes the price, and what that price currently is.
|
|
18
|
-
*
|
|
19
|
-
* It is the REGISTER a Bloom multi-part form is written in — one column of
|
|
20
|
-
* sections, each a heading over its controls with a hairline under it, no card
|
|
21
|
-
* per section and no step counter. The one decision it makes is the ORDER, and
|
|
22
|
-
* the order is the order of the questions a carrier needs answered:
|
|
23
|
-
*
|
|
24
|
-
* 1 route `RouteStops` — the origin, the destination, the stops between
|
|
25
|
-
* 2 load `ShipmentLoadPicker` — kind, size, weight, quantity, notes
|
|
26
|
-
* 3 photos `SortablePhotoGrid` — drawn only when `photos` is given
|
|
27
|
-
* 4 options `ShipmentOptionsList` — the answers that move the number
|
|
28
|
-
* 5 price `PriceSummary` — last, so the options and the number they move
|
|
29
|
-
* are on one screen
|
|
30
|
-
*
|
|
31
|
-
* **IT DRAWS NOTHING OF ITS OWN.** Every section is an existing Bloom family
|
|
32
|
-
* handed its props unchanged: there is one component that knows what a route
|
|
33
|
-
* looks like, one that knows what a photo grid looks like, one that knows what
|
|
34
|
-
* an itemised price looks like, and a form that redrew any of them would be a
|
|
35
|
-
* copy that drifts. A section whose props are absent is not drawn — a job that
|
|
36
|
-
* needs no photograph should not be asked for one.
|
|
37
|
-
*
|
|
38
|
-
* **THE LAST SECTION HAS NO RULE UNDER IT**, and the footer sits below it with
|
|
39
|
-
* none either: a divider is a separator between two things, and there is
|
|
40
|
-
* nothing after the last one.
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
function ShipmentRequestFormComponent({
|
|
44
|
-
route,
|
|
45
|
-
load,
|
|
46
|
-
onLoadChange,
|
|
47
|
-
loadProps,
|
|
48
|
-
photos,
|
|
49
|
-
options,
|
|
50
|
-
price,
|
|
51
|
-
footer,
|
|
52
|
-
labels: labelOverrides,
|
|
53
|
-
disabled = false,
|
|
54
|
-
accessibilityLabel: accessibilityLabelProp,
|
|
55
|
-
style,
|
|
56
|
-
testID
|
|
57
|
-
}) {
|
|
58
|
-
const {
|
|
59
|
-
messages
|
|
60
|
-
} = useMessages(SHIPMENT_REQUEST_MESSAGES);
|
|
61
|
-
const accessibilityLabel = accessibilityLabelProp ?? messages.shipmentRequest;
|
|
62
|
-
const labels = useMemo(() => ({
|
|
63
|
-
...SHIPMENT_REQUEST_LABELS,
|
|
64
|
-
...messages.form,
|
|
65
|
-
...labelOverrides
|
|
66
|
-
}), [messages, labelOverrides]);
|
|
67
|
-
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
68
|
-
|
|
69
|
-
// Which sections exist, so the LAST one can drop its rule without every
|
|
70
|
-
// section having to know what follows it.
|
|
71
|
-
const sections = [{
|
|
72
|
-
key: 'route',
|
|
73
|
-
title: labels.route,
|
|
74
|
-
description: labels.routeDescription,
|
|
75
|
-
content: /*#__PURE__*/_jsx(RouteStops, {
|
|
76
|
-
...route,
|
|
77
|
-
testID: route.testID ?? id('route')
|
|
78
|
-
})
|
|
79
|
-
}, {
|
|
80
|
-
key: 'load',
|
|
81
|
-
title: labels.load,
|
|
82
|
-
description: labels.loadDescription,
|
|
83
|
-
content: /*#__PURE__*/_jsx(ShipmentLoadPicker, {
|
|
84
|
-
...loadProps,
|
|
85
|
-
value: load,
|
|
86
|
-
onValueChange: onLoadChange,
|
|
87
|
-
disabled: disabled || loadProps?.disabled,
|
|
88
|
-
testID: id('load')
|
|
89
|
-
})
|
|
90
|
-
}];
|
|
91
|
-
if (photos) {
|
|
92
|
-
sections.push({
|
|
93
|
-
key: 'photos',
|
|
94
|
-
title: labels.photos,
|
|
95
|
-
description: labels.photosDescription,
|
|
96
|
-
content: /*#__PURE__*/_jsx(SortablePhotoGrid, {
|
|
97
|
-
...photos,
|
|
98
|
-
disabled: disabled || photos.disabled,
|
|
99
|
-
testID: id('photos')
|
|
100
|
-
})
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
if (options) {
|
|
104
|
-
sections.push({
|
|
105
|
-
key: 'options',
|
|
106
|
-
title: labels.options,
|
|
107
|
-
description: labels.optionsDescription,
|
|
108
|
-
content: /*#__PURE__*/_jsx(ShipmentOptionsList, {
|
|
109
|
-
...options,
|
|
110
|
-
disabled: disabled || options.disabled,
|
|
111
|
-
testID: id('options')
|
|
112
|
-
})
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
if (price) {
|
|
116
|
-
sections.push({
|
|
117
|
-
key: 'price',
|
|
118
|
-
title: labels.price,
|
|
119
|
-
description: labels.priceDescription,
|
|
120
|
-
content: /*#__PURE__*/_jsx(PriceSummary, {
|
|
121
|
-
...price,
|
|
122
|
-
testID: id('price')
|
|
123
|
-
})
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
127
|
-
collapsable: false,
|
|
128
|
-
testID: testID,
|
|
129
|
-
role: "form",
|
|
130
|
-
accessibilityLabel: accessibilityLabel,
|
|
131
|
-
style: style,
|
|
132
|
-
children: [sections.map((section, index) => /*#__PURE__*/_jsx(FilterSection, {
|
|
133
|
-
title: section.title,
|
|
134
|
-
description: section.description === '' ? undefined : section.description,
|
|
135
|
-
divider: index < sections.length - 1,
|
|
136
|
-
testID: id(`section-${section.key}`),
|
|
137
|
-
children: section.content
|
|
138
|
-
}, section.key)), footer ? /*#__PURE__*/_jsx(View, {
|
|
139
|
-
style: {
|
|
140
|
-
paddingTop: 24
|
|
141
|
-
},
|
|
142
|
-
testID: id('footer'),
|
|
143
|
-
children: footer
|
|
144
|
-
}) : null]
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
export const ShipmentRequestForm = /*#__PURE__*/memo(ShipmentRequestFormComponent);
|
|
148
|
-
ShipmentRequestForm.displayName = 'ShipmentRequestForm';
|
|
149
|
-
//# sourceMappingURL=ShipmentRequestForm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useMemo","View","useMessages","PriceSummary","RouteStops","SortablePhotoGrid","FilterSection","ShipmentLoadPicker","ShipmentOptionsList","SHIPMENT_REQUEST_LABELS","SHIPMENT_REQUEST_MESSAGES","jsx","_jsx","jsxs","_jsxs","ShipmentRequestFormComponent","route","load","onLoadChange","loadProps","photos","options","price","footer","labels","labelOverrides","disabled","accessibilityLabel","accessibilityLabelProp","style","testID","messages","shipmentRequest","form","id","part","undefined","sections","key","title","description","routeDescription","content","loadDescription","value","onValueChange","push","photosDescription","optionsDescription","priceDescription","collapsable","role","children","map","section","index","divider","length","paddingTop","ShipmentRequestForm","displayName"],"sourceRoot":"../../../src","sources":["shipment-request/ShipmentRequestForm.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,WAAW,QAAQ,uBAAoB;AAChD,SAASC,YAAY,QAAQ,6BAAoB;AACjD,SAASC,UAAU,QAAQ,yBAAgB;AAC3C,SAASC,iBAAiB,QAAQ,4BAAmB;AACrD,SAASC,aAAa,QAAQ,kCAA+B;AAC7D,SAASC,kBAAkB,QAAQ,yBAAsB;AACzD,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,uBAAuB,QAAQ,gBAAa;AACrD,SAASC,yBAAyB,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASC,4BAA4BA,CAAC;EACpCC,KAAK;EACLC,IAAI;EACJC,YAAY;EACZC,SAAS;EACTC,MAAM;EACNC,OAAO;EACPC,KAAK;E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EZiC,KAAK,EAAEe,OAAO,CAACf,KAAM;MACrBC,WAAW,EAAEc,OAAO,CAACd,WAAW,KAAK,EAAE,GAAGJ,SAAS,GAAGkB,OAAO,CAACd,WAAY;MAC1EgB,OAAO,EAAED,KAAK,GAAGlB,QAAQ,CAACoB,MAAM,GAAG,CAAE;MACrC3B,MAAM,EAAEI,EAAE,CAAC,WAAWoB,OAAO,CAAChB,GAAG,EAAE,CAAE;MAAAc,QAAA,EAEpCE,OAAO,CAACZ;IAAO,GANXY,OAAO,CAAChB,GAOA,CAChB,CAAC,EACDf,MAAM,gBACLX,IAAA,CAACX,IAAI;MAAC4B,KAAK,EAAE;QAAE6B,UAAU,EAAE;MAAG,CAAE;MAAC5B,MAAM,EAAEI,EAAE,CAAC,QAAQ,CAAE;MAAAkB,QAAA,EACnD7B;IAAM,CACH,CAAC,GACL,IAAI;EAAA,CACJ,CAAC;AAEX;AAEA,OAAO,MAAMoC,mBAAmB,gBAAG5D,IAAI,CAACgB,4BAA4B,CAAC;AACrE4C,mBAAmB,CAACC,WAAW,GAAG,qBAAqB","ignoreList":[]}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { RiArrowUpDownLine } from "../icons/remix/RiArrowUpDownLine.js";
|
|
4
|
-
import { RiBox3Line } from "../icons/remix/RiBox3Line.js";
|
|
5
|
-
import { RiMailLine } from "../icons/remix/RiMailLine.js";
|
|
6
|
-
import { RiRestaurantLine } from "../icons/remix/RiRestaurantLine.js";
|
|
7
|
-
import { RiSofaLine } from "../icons/remix/RiSofaLine.js";
|
|
8
|
-
import { RiStackLine } from "../icons/remix/RiStackLine.js";
|
|
9
|
-
import { RiStairsLine } from "../icons/remix/RiStairsLine.js";
|
|
10
|
-
import { RiWalkLine } from "../icons/remix/RiWalkLine.js";
|
|
11
|
-
import { SHIPMENT_REQUEST_MESSAGES } from "./messages.js";
|
|
12
|
-
const KIND_ORDER = ['envelope', 'parcel', 'furniture', 'pallet', 'food'];
|
|
13
|
-
const KIND_ICON = {
|
|
14
|
-
envelope: RiMailLine,
|
|
15
|
-
parcel: RiBox3Line,
|
|
16
|
-
furniture: RiSofaLine,
|
|
17
|
-
pallet: RiStackLine,
|
|
18
|
-
food: RiRestaurantLine
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/** The rungs' one-or-two-letter codes: clothing sizes, read the same in every language. */
|
|
22
|
-
const SIZE_CODE = [['small', 'S'], ['medium', 'M'], ['large', 'L'], ['extraLarge', 'XL']];
|
|
23
|
-
const ACCESS_ORDER = ['ground', 'stairs', 'lift'];
|
|
24
|
-
const ACCESS_ICON = {
|
|
25
|
-
ground: RiWalkLine,
|
|
26
|
-
stairs: RiStairsLine,
|
|
27
|
-
lift: RiArrowUpDownLine
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
/** The five built-in kinds in one language's words. */
|
|
31
|
-
export function builtInLoadKinds(messages) {
|
|
32
|
-
return KIND_ORDER.map(value => ({
|
|
33
|
-
value,
|
|
34
|
-
...messages.kinds[value],
|
|
35
|
-
icon: KIND_ICON[value]
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/** The four built-in size rungs in one language's words. */
|
|
40
|
-
export function builtInLoadSizes(messages) {
|
|
41
|
-
return SIZE_CODE.map(([value, label]) => ({
|
|
42
|
-
value,
|
|
43
|
-
label,
|
|
44
|
-
detail: messages.sizes[value]
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* The five kinds, in the order a marketplace draws them: the two a bike can
|
|
50
|
-
* take first, then the two that need a van, then food — which is not a size at
|
|
51
|
-
* all but a condition.
|
|
52
|
-
*/
|
|
53
|
-
export const SHIPMENT_LOAD_KINDS = builtInLoadKinds(SHIPMENT_REQUEST_MESSAGES.en);
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* The four size rungs.
|
|
57
|
-
*
|
|
58
|
-
* The segments are single letters because they sit in one control at phone
|
|
59
|
-
* width and four words never fit; the sentence each one means is drawn UNDER
|
|
60
|
-
* the control, for the chosen rung only. A control whose options all carry
|
|
61
|
-
* their own sentence is a list, not a segmented control.
|
|
62
|
-
*
|
|
63
|
-
* In English, like the kinds and access words; a picker given no `kinds` or
|
|
64
|
-
* `sizes` draws them in the resolved locale's words.
|
|
65
|
-
*/
|
|
66
|
-
export const SHIPMENT_LOAD_SIZES = builtInLoadSizes(SHIPMENT_REQUEST_MESSAGES.en);
|
|
67
|
-
|
|
68
|
-
/** Ground floor, stairs, lift. One of them is true, so they are a single choice. */
|
|
69
|
-
export const SHIPMENT_ACCESS_OPTIONS = ACCESS_ORDER.map(value => ({
|
|
70
|
-
value,
|
|
71
|
-
label: SHIPMENT_REQUEST_MESSAGES.en.access[value],
|
|
72
|
-
icon: ACCESS_ICON[value]
|
|
73
|
-
}));
|
|
74
|
-
|
|
75
|
-
// The default copy below is English and stays exported; the components speak
|
|
76
|
-
// `SHIPMENT_REQUEST_MESSAGES` in the resolved locale.
|
|
77
|
-
const EN = SHIPMENT_REQUEST_MESSAGES.en;
|
|
78
|
-
|
|
79
|
-
/** The load picker's default copy. */
|
|
80
|
-
export const SHIPMENT_LOAD_LABELS = {
|
|
81
|
-
...EN.load,
|
|
82
|
-
// i18n-exempt: a unit symbol, the same in every language Bloom ships
|
|
83
|
-
weightUnit: 'kg'
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
/** The options list's default copy. */
|
|
87
|
-
export const SHIPMENT_OPTIONS_LABELS = EN.options;
|
|
88
|
-
|
|
89
|
-
/** The form's default section headings. */
|
|
90
|
-
export const SHIPMENT_REQUEST_LABELS = {
|
|
91
|
-
...EN.form,
|
|
92
|
-
loadDescription: '',
|
|
93
|
-
priceDescription: ''
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* The picker geometry this family owns.
|
|
98
|
-
*
|
|
99
|
-
* The SECTION geometry is deliberately absent: `ShipmentRequestForm` draws its
|
|
100
|
-
* sections with `FilterSection`, which already owns the inset, the heading gap
|
|
101
|
-
* and the rule between two sections. A second set of numbers here would be a
|
|
102
|
-
* copy that drifts from the one actually drawn.
|
|
103
|
-
*/
|
|
104
|
-
export const SHIPMENT_REQUEST_GEOMETRY = {
|
|
105
|
-
controlGap: 20,
|
|
106
|
-
chipGap: 8,
|
|
107
|
-
/** The weight field's width beside the stepper on a wide form. */
|
|
108
|
-
weightWidth: 180,
|
|
109
|
-
/** The form's OWN width under which the paired controls stack. */
|
|
110
|
-
narrowWidth: 480
|
|
111
|
-
};
|
|
112
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["RiArrowUpDownLine","RiBox3Line","RiMailLine","RiRestaurantLine","RiSofaLine","RiStackLine","RiStairsLine","RiWalkLine","SHIPMENT_REQUEST_MESSAGES","KIND_ORDER","KIND_ICON","envelope","parcel","furniture","pallet","food","SIZE_CODE","ACCESS_ORDER","ACCESS_ICON","ground","stairs","lift","builtInLoadKinds","messages","map","value","kinds","icon","builtInLoadSizes","label","detail","sizes","SHIPMENT_LOAD_KINDS","en","SHIPMENT_LOAD_SIZES","SHIPMENT_ACCESS_OPTIONS","access","EN","SHIPMENT_LOAD_LABELS","load","weightUnit","SHIPMENT_OPTIONS_LABELS","options","SHIPMENT_REQUEST_LABELS","form","loadDescription","priceDescription","SHIPMENT_REQUEST_GEOMETRY","controlGap","chipGap","weightWidth","narrowWidth"],"sourceRoot":"../../../src","sources":["shipment-request/constants.ts"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,qCAAkC;AACpE,SAASC,UAAU,QAAQ,8BAA2B;AACtD,SAASC,UAAU,QAAQ,8BAA2B;AACtD,SAASC,gBAAgB,QAAQ,oCAAiC;AAClE,SAASC,UAAU,QAAQ,8BAA2B;AACtD,SAASC,WAAW,QAAQ,+BAA4B;AACxD,SAASC,YAAY,QAAQ,gCAA6B;AAC1D,SAASC,UAAU,QA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B,CAACyB,EAC5B,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAsD,GAAGN,gBAAgB,CACpFpB,yBAAyB,CAACyB,EAC5B,CAAC;;AAED;AACA,OAAO,MAAME,uBAAwD,GAAGlB,YAAY,CAACO,GAAG,CACrFC,KAAK,KAAM;EACVA,KAAK;EACLI,KAAK,EAAErB,yBAAyB,CAACyB,EAAE,CAACG,MAAM,CAACX,KAAK,CAAC;EACjDE,IAAI,EAAET,WAAW,CAACO,KAAK;AACzB,CAAC,CACH,CAAC;;AAED;AACA;AACA,MAAMY,EAAE,GAAG7B,yBAAyB,CAACyB,EAAE;;AAEvC;AACA,OAAO,MAAMK,oBAAwD,GAAG;EACtE,GAAGD,EAAE,CAACE,IAAI;EACV;EACAC,UAAU,EAAE;AACd,CAAC;;AAED;AACA,OAAO,MAAMC,uBAAwD,GAAGJ,EAAE,CAACK,OAAO;;AAElF;AACA,OAAO,MAAMC,uBAA4D,GAAG;EAC1E,GAAGN,EAAE,CAACO,IAAI;EACVC,eAAe,EAAE,EAAE;EACnBC,gBAAgB,EAAE;AACpB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,yBAAyB,GAAG;EACvCC,UAAU,EAAE,EAAE;EACdC,OAAO,EAAE,CAAC;EACV;EACAC,WAAW,EAAE,GAAG;EAChB;EACAC,WAAW,EAAE;AACf,CAAU","ignoreList":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
export { ShipmentLoadPicker } from "./ShipmentLoadPicker.js";
|
|
4
|
-
export { ShipmentOptionsList } from "./ShipmentOptionsList.js";
|
|
5
|
-
export { ShipmentRequestForm } from "./ShipmentRequestForm.js";
|
|
6
|
-
export { SHIPMENT_ACCESS_OPTIONS, SHIPMENT_LOAD_KINDS, SHIPMENT_LOAD_LABELS, SHIPMENT_LOAD_SIZES, SHIPMENT_OPTIONS_LABELS, SHIPMENT_REQUEST_GEOMETRY, SHIPMENT_REQUEST_LABELS } from "./constants.js";
|
|
7
|
-
export { isShipmentLoadComplete, joinShipmentName, sanitizeWeight, toggleShipmentExtra } from "./shared.js";
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ShipmentLoadPicker","ShipmentOptionsList","ShipmentRequestForm","SHIPMENT_ACCESS_OPTIONS","SHIPMENT_LOAD_KINDS","SHIPMENT_LOAD_LABELS","SHIPMENT_LOAD_SIZES","SHIPMENT_OPTIONS_LABELS","SHIPMENT_REQUEST_GEOMETRY","SHIPMENT_REQUEST_LABELS","isShipmentLoadComplete","joinShipmentName","sanitizeWeight","toggleShipmentExtra"],"sourceRoot":"../../../src","sources":["shipment-request/index.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,yBAAsB;AACzD,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SACEC,uBAAuB,EACvBC,mBAAmB,EACnBC,oBAAoB,EACpBC,mBAAmB,EACnBC,uBAAuB,EACvBC,yBAAyB,EACzBC,uBAAuB,QAClB,gBAAa;AAEpB,SACEC,sBAAsB,EACtBC,gBAAgB,EAChBC,cAAc,EACdC,mBAAmB,QACd,aAAU","ignoreList":[]}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { defineMessages } from "../locale/messages.js";
|
|
4
|
-
import { plural } from "../locale/plural.js";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Every fixed string the shipment-request family draws or announces — its
|
|
8
|
-
* headings and the built-in kinds, sizes and access words — in each Bloom
|
|
9
|
-
* language. The weight unit is a symbol and stays `kg`. A caller's `labels`,
|
|
10
|
-
* `kinds`, `sizes`, `accessOptions` and `accessibilityLabel` still win.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export const SHIPMENT_REQUEST_MESSAGES = defineMessages('SHIPMENT_REQUEST_MESSAGES', {
|
|
14
|
-
kinds: {
|
|
15
|
-
envelope: {
|
|
16
|
-
label: 'Envelope',
|
|
17
|
-
description: 'Documents, keys, anything flat.'
|
|
18
|
-
},
|
|
19
|
-
parcel: {
|
|
20
|
-
label: 'Parcel',
|
|
21
|
-
description: 'A box or a bag one person can carry.'
|
|
22
|
-
},
|
|
23
|
-
furniture: {
|
|
24
|
-
label: 'Furniture',
|
|
25
|
-
description: 'A sofa, a table, a mattress — two people at both ends.'
|
|
26
|
-
},
|
|
27
|
-
pallet: {
|
|
28
|
-
label: 'Pallet',
|
|
29
|
-
description: 'Wrapped and stacked, moved with a tail lift.'
|
|
30
|
-
},
|
|
31
|
-
food: {
|
|
32
|
-
label: 'Food',
|
|
33
|
-
description: 'A restaurant run, kept at temperature.'
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
sizes: {
|
|
37
|
-
small: 'Up to a shoebox — 35 × 25 × 20 cm.',
|
|
38
|
-
medium: 'Up to a cabin bag — 55 × 40 × 25 cm.',
|
|
39
|
-
large: 'Up to a washing machine — 85 × 60 × 60 cm.',
|
|
40
|
-
extraLarge: 'Bigger than that — tell us in the notes.'
|
|
41
|
-
},
|
|
42
|
-
access: {
|
|
43
|
-
ground: 'Ground floor',
|
|
44
|
-
stairs: 'Stairs',
|
|
45
|
-
lift: 'Lift'
|
|
46
|
-
},
|
|
47
|
-
load: {
|
|
48
|
-
kind: 'What are we moving?',
|
|
49
|
-
size: 'Size',
|
|
50
|
-
weight: 'Weight',
|
|
51
|
-
quantity: 'How many',
|
|
52
|
-
quantityValue: n => plural('en', n, {
|
|
53
|
-
one: '{n} item',
|
|
54
|
-
other: '{n} items'
|
|
55
|
-
}),
|
|
56
|
-
notes: 'Anything else the carrier should know?',
|
|
57
|
-
notesPlaceholder: 'Fragile, a lift code, where to leave it…'
|
|
58
|
-
},
|
|
59
|
-
options: {
|
|
60
|
-
extras: 'Extras',
|
|
61
|
-
access: 'Access at both ends',
|
|
62
|
-
window: 'When should it be collected?'
|
|
63
|
-
},
|
|
64
|
-
form: {
|
|
65
|
-
route: 'Where it goes',
|
|
66
|
-
routeDescription: 'Pick-up first, drop-off last.',
|
|
67
|
-
load: 'The load',
|
|
68
|
-
photos: 'Photos',
|
|
69
|
-
photosDescription: 'A photo of the load is the single biggest thing you can do for the quotes you get back.',
|
|
70
|
-
options: 'Options',
|
|
71
|
-
optionsDescription: 'Each of these changes the price.',
|
|
72
|
-
price: 'Price'
|
|
73
|
-
},
|
|
74
|
-
shipmentRequest: 'Shipment request'
|
|
75
|
-
});
|
|
76
|
-
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineMessages","plural","SHIPMENT_REQUEST_MESSAGES","kinds","envelope","label","description","parcel","furniture","pallet","food","sizes","small","medium","large","extraLarge","access","ground","stairs","lift","load","kind","size","weight","quantity","quantityValue","n","one","other","notes","notesPlaceholder","options","extras","window","form","route","routeDescription","photos","photosDescription","optionsDescription","price","shipmentRequest"],"sourceRoot":"../../../src","sources":["shipment-request/messages.ts"],"mappings":";;AAAA,SAASA,cAAc,QAA6B,uBAAoB;AACxE,SAASC,MAAM,QAAQ,qBAAkB;;AAGzC;AACA;AACA;AACA;AACA;AACA;;AA8BA,OAAO,MAAMC,yBAAkE,GAC7EF,cAAc,CAA0B,2BAA2B,EAAE;EACnEG,KAAK,EAAE;IACLC,QAAQ,EAAE;MAAEC,KAAK,EAAE,UAAU;MAAEC,WAAW,EAAE;IAAkC,CAAC;IAC/EC,MAAM,EAAE;MAAEF,KAAK,EAAE,QAAQ;MAAEC,WAAW,EAAE;IAAuC,CAAC;IAChFE,SAAS,EAAE;MACTH,KAAK,EAAE,WAAW;MAClBC,WAAW,EAAE;IACf,CAAC;IACDG,MAAM,EAAE;MAAEJ,KAAK,EAAE,QAAQ;MAAEC,WAAW,EAAE;IAA+C,CAAC;IACxFI,IAAI,EAAE;MAAEL,KAAK,EAAE,MAAM;MAAEC,WAAW,EAAE;IAAyC;EAC/E,CAAC;EACDK,KAAK,EAAE;IACLC,KAAK,EAAE,oCAAoC;IAC3CC,MAAM,EAAE,sCAAsC;IAC9CC,KAAK,EAAE,4CAA4C;IACnDC,UAAU,EAAE;EACd,CAAC;EACDC,MAAM,EAAE;IAAEC,MAAM,EAAE,cAAc;IAAEC,MAAM,EAAE,QAAQ;IAAEC,IAAI,EAAE;EAAO,CAAC;EAClEC,IAAI,EAAE;IACJC,IAAI,EAAE,qBAAqB;IAC3BC,IAAI,EAAE,MAAM;IACZC,MAAM,EAAE,QAAQ;IAChBC,QAAQ,EAAE,UAAU;IACpBC,aAAa,EAAGC,CAAC,IAAKzB,MAAM,CAAC,IAAI,EAAEyB,CAAC,EAAE;MAAEC,GAAG,EAAE,UAAU;MAAEC,KAAK,EAAE;IAAY,CAAC,CAAC;IAC9EC,KAAK,EAAE,wCAAwC;IAC/CC,gBAAgB,EAAE;EACpB,CAAC;EACDC,OAAO,EAAE;IACPC,MAAM,EAAE,QAAQ;IAChBhB,MAAM,EAAE,qBAAqB;IAC7BiB,MAAM,EAAE;EACV,CAAC;EACDC,IAAI,EAAE;IACJC,KAAK,EAAE,eAAe;IACtBC,gBAAgB,EAAE,+BAA+B;IACjDhB,IAAI,EAAE,UAAU;IAChBiB,MAAM,EAAE,QAAQ;IAChBC,iBAAiB,EACf,yFAAyF;IAC3FP,OAAO,EAAE,SAAS;IAClBQ,kBAAkB,EAAE,kCAAkC;IACtDC,KAAK,EAAE;EACT,CAAC;EACDC,eAAe,EAAE;AACnB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The pure decisions `shipment-request` makes, kept out of the render so each
|
|
5
|
-
* one can be walked at its boundary.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* What a weight field KEEPS of what was typed.
|
|
10
|
-
*
|
|
11
|
-
* Digits, and one decimal separator — a comma is accepted and emitted as a dot,
|
|
12
|
-
* because half of Europe types one and no app wants to parse both. Everything
|
|
13
|
-
* else goes, including the unit: `"18,5 kg"` is `"18.5"`. The unit is drawn
|
|
14
|
-
* beside the field and never stored, so an app parses a number rather than a
|
|
15
|
-
* sentence.
|
|
16
|
-
*
|
|
17
|
-
* A leading separator becomes `"0."`, because `".5"` is a number a person means
|
|
18
|
-
* and `Number('.5')` happening to work is not a reason to store it that way.
|
|
19
|
-
*/
|
|
20
|
-
export function sanitizeWeight(text) {
|
|
21
|
-
const cleaned = text.replace(/,/g, '.').replace(/[^\d.]/g, '');
|
|
22
|
-
const firstDot = cleaned.indexOf('.');
|
|
23
|
-
if (firstDot === -1) return cleaned;
|
|
24
|
-
const head = cleaned.slice(0, firstDot);
|
|
25
|
-
const tail = cleaned.slice(firstDot + 1).replace(/\./g, '');
|
|
26
|
-
return `${head === '' ? '0' : head}.${tail}`;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Whether the load has been described enough to ask for quotes.
|
|
31
|
-
*
|
|
32
|
-
* It is the FORM's question, not the app's: an app that prices a job has its
|
|
33
|
-
* own rules, and this only answers whether every control the picker draws has
|
|
34
|
-
* been answered. Exported so a submit button can be disabled from the same
|
|
35
|
-
* decision the picker makes, rather than from a second copy of it.
|
|
36
|
-
*/
|
|
37
|
-
export function isShipmentLoadComplete(load) {
|
|
38
|
-
return load.kind !== null && load.size !== null && load.weight.trim() !== '' && Number(load.weight) > 0 && load.quantity >= 1;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The next selection of extras, in the OPTIONS' order.
|
|
43
|
-
*
|
|
44
|
-
* Reporting in the options' order rather than the tap order means the value is
|
|
45
|
-
* stable: a form that round-trips through a server does not reorder its own
|
|
46
|
-
* switches, and two equal selections compare equal.
|
|
47
|
-
*/
|
|
48
|
-
export function toggleShipmentExtra(options, selected, key) {
|
|
49
|
-
const next = new Set(selected);
|
|
50
|
-
if (next.has(key)) next.delete(key);else next.add(key);
|
|
51
|
-
return options.map(option => option.key).filter(candidate => next.has(candidate));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/** Joins the non-empty parts of an accessible name. */
|
|
55
|
-
export function joinShipmentName(parts, separator = ', ') {
|
|
56
|
-
return parts.filter(part => typeof part === 'string' && part !== '').join(separator);
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["sanitizeWeight","text","cleaned","replace","firstDot","indexOf","head","slice","tail","isShipmentLoadComplete","load","kind","size","weight","trim","Number","quantity","toggleShipmentExtra","options","selected","key","next","Set","has","delete","add","map","option","filter","candidate","joinShipmentName","parts","separator","part","join"],"sourceRoot":"../../../src","sources":["shipment-request/shared.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,cAAcA,CAACC,IAAY,EAAU;EACnD,MAAMC,OAAO,GAAGD,IAAI,CAACE,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAACA,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC;EAC9D,MAAMC,QAAQ,GAAGF,OAAO,CAACG,OAAO,CAAC,GAAG,CAAC;EACrC,IAAID,QAAQ,KAAK,CAAC,CAAC,EAAE,OAAOF,OAAO;EACnC,MAAMI,IAAI,GAAGJ,OAAO,CAACK,KAAK,CAAC,CAAC,EAAEH,QAAQ,CAAC;EACvC,MAAMI,IAAI,GAAGN,OAAO,CAACK,KAAK,CAACH,QAAQ,GAAG,CAAC,CAAC,CAACD,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;EAC3D,OAAO,GAAGG,IAAI,KAAK,EAAE,GAAG,GAAG,GAAGA,IAAI,IAAIE,IAAI,EAAE;AAC9C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,sBAAsBA,CAACC,IAAkB,EAAW;EAClE,OACEA,IAAI,CAACC,IAAI,KAAK,IAAI,IAClBD,IAAI,CAACE,IAAI,KAAK,IAAI,IAClBF,IAAI,CAACG,MAAM,CAACC,IAAI,CAAC,CAAC,KAAK,EAAE,IACzBC,MAAM,CAACL,IAAI,CAACG,MAAM,CAAC,GAAG,CAAC,IACvBH,IAAI,CAACM,QAAQ,IAAI,CAAC;AAEtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CACjCC,OAAmC,EACnCC,QAA2B,EAC3BC,GAAW,EACD;EACV,MAAMC,IAAI,GAAG,IAAIC,GAAG,CAACH,QAAQ,CAAC;EAC9B,IAAIE,IAAI,CAACE,GAAG,CAACH,GAAG,CAAC,EAAEC,IAAI,CAACG,MAAM,CAACJ,GAAG,CAAC,CAAC,KAC/BC,IAAI,CAACI,GAAG,CAACL,GAAG,CAAC;EAClB,OAAOF,OAAO,CAACQ,GAAG,CAAEC,MAAM,IAAKA,MAAM,CAACP,GAAG,CAAC,CAACQ,MAAM,CAAEC,SAAS,IAAKR,IAAI,CAACE,GAAG,CAACM,SAAS,CAAC,CAAC;AACvF;;AAEA;AACA,OAAO,SAASC,gBAAgBA,CAC9BC,KAAuD,EACvDC,SAAS,GAAG,IAAI,EACR;EACR,OAAOD,KAAK,CACTH,MAAM,CAAEK,IAAI,IAAqB,OAAOA,IAAI,KAAK,QAAQ,IAAIA,IAAI,KAAK,EAAE,CAAC,CACzEC,IAAI,CAACF,SAAS,CAAC;AACpB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["shipment-request/types.ts"],"mappings":"","ignoreList":[]}
|