@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,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SHIPMENT_REQUEST_MESSAGES = void 0;
|
|
7
|
-
var _messages = require("../locale/messages.js");
|
|
8
|
-
var _plural = require("../locale/plural.js");
|
|
9
|
-
/**
|
|
10
|
-
* Every fixed string the shipment-request family draws or announces — its
|
|
11
|
-
* headings and the built-in kinds, sizes and access words — in each Bloom
|
|
12
|
-
* language. The weight unit is a symbol and stays `kg`. A caller's `labels`,
|
|
13
|
-
* `kinds`, `sizes`, `accessOptions` and `accessibilityLabel` still win.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
const SHIPMENT_REQUEST_MESSAGES = exports.SHIPMENT_REQUEST_MESSAGES = (0, _messages.defineMessages)('SHIPMENT_REQUEST_MESSAGES', {
|
|
17
|
-
kinds: {
|
|
18
|
-
envelope: {
|
|
19
|
-
label: 'Envelope',
|
|
20
|
-
description: 'Documents, keys, anything flat.'
|
|
21
|
-
},
|
|
22
|
-
parcel: {
|
|
23
|
-
label: 'Parcel',
|
|
24
|
-
description: 'A box or a bag one person can carry.'
|
|
25
|
-
},
|
|
26
|
-
furniture: {
|
|
27
|
-
label: 'Furniture',
|
|
28
|
-
description: 'A sofa, a table, a mattress — two people at both ends.'
|
|
29
|
-
},
|
|
30
|
-
pallet: {
|
|
31
|
-
label: 'Pallet',
|
|
32
|
-
description: 'Wrapped and stacked, moved with a tail lift.'
|
|
33
|
-
},
|
|
34
|
-
food: {
|
|
35
|
-
label: 'Food',
|
|
36
|
-
description: 'A restaurant run, kept at temperature.'
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
sizes: {
|
|
40
|
-
small: 'Up to a shoebox — 35 × 25 × 20 cm.',
|
|
41
|
-
medium: 'Up to a cabin bag — 55 × 40 × 25 cm.',
|
|
42
|
-
large: 'Up to a washing machine — 85 × 60 × 60 cm.',
|
|
43
|
-
extraLarge: 'Bigger than that — tell us in the notes.'
|
|
44
|
-
},
|
|
45
|
-
access: {
|
|
46
|
-
ground: 'Ground floor',
|
|
47
|
-
stairs: 'Stairs',
|
|
48
|
-
lift: 'Lift'
|
|
49
|
-
},
|
|
50
|
-
load: {
|
|
51
|
-
kind: 'What are we moving?',
|
|
52
|
-
size: 'Size',
|
|
53
|
-
weight: 'Weight',
|
|
54
|
-
quantity: 'How many',
|
|
55
|
-
quantityValue: n => (0, _plural.plural)('en', n, {
|
|
56
|
-
one: '{n} item',
|
|
57
|
-
other: '{n} items'
|
|
58
|
-
}),
|
|
59
|
-
notes: 'Anything else the carrier should know?',
|
|
60
|
-
notesPlaceholder: 'Fragile, a lift code, where to leave it…'
|
|
61
|
-
},
|
|
62
|
-
options: {
|
|
63
|
-
extras: 'Extras',
|
|
64
|
-
access: 'Access at both ends',
|
|
65
|
-
window: 'When should it be collected?'
|
|
66
|
-
},
|
|
67
|
-
form: {
|
|
68
|
-
route: 'Where it goes',
|
|
69
|
-
routeDescription: 'Pick-up first, drop-off last.',
|
|
70
|
-
load: 'The load',
|
|
71
|
-
photos: 'Photos',
|
|
72
|
-
photosDescription: 'A photo of the load is the single biggest thing you can do for the quotes you get back.',
|
|
73
|
-
options: 'Options',
|
|
74
|
-
optionsDescription: 'Each of these changes the price.',
|
|
75
|
-
price: 'Price'
|
|
76
|
-
},
|
|
77
|
-
shipmentRequest: 'Shipment request'
|
|
78
|
-
});
|
|
79
|
-
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_messages","require","_plural","SHIPMENT_REQUEST_MESSAGES","exports","defineMessages","kinds","envelope","label","description","parcel","furniture","pallet","food","sizes","small","medium","large","extraLarge","access","ground","stairs","lift","load","kind","size","weight","quantity","quantityValue","n","plural","one","other","notes","notesPlaceholder","options","extras","window","form","route","routeDescription","photos","photosDescription","optionsDescription","price","shipmentRequest"],"sourceRoot":"../../../src","sources":["shipment-request/messages.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA;;AA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AA+B;IACjDjB,IAAI,EAAE,UAAU;IAChBkB,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,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isShipmentLoadComplete = isShipmentLoadComplete;
|
|
7
|
-
exports.joinShipmentName = joinShipmentName;
|
|
8
|
-
exports.sanitizeWeight = sanitizeWeight;
|
|
9
|
-
exports.toggleShipmentExtra = toggleShipmentExtra;
|
|
10
|
-
/**
|
|
11
|
-
* The pure decisions `shipment-request` makes, kept out of the render so each
|
|
12
|
-
* one can be walked at its boundary.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* What a weight field KEEPS of what was typed.
|
|
17
|
-
*
|
|
18
|
-
* Digits, and one decimal separator — a comma is accepted and emitted as a dot,
|
|
19
|
-
* because half of Europe types one and no app wants to parse both. Everything
|
|
20
|
-
* else goes, including the unit: `"18,5 kg"` is `"18.5"`. The unit is drawn
|
|
21
|
-
* beside the field and never stored, so an app parses a number rather than a
|
|
22
|
-
* sentence.
|
|
23
|
-
*
|
|
24
|
-
* A leading separator becomes `"0."`, because `".5"` is a number a person means
|
|
25
|
-
* and `Number('.5')` happening to work is not a reason to store it that way.
|
|
26
|
-
*/
|
|
27
|
-
function sanitizeWeight(text) {
|
|
28
|
-
const cleaned = text.replace(/,/g, '.').replace(/[^\d.]/g, '');
|
|
29
|
-
const firstDot = cleaned.indexOf('.');
|
|
30
|
-
if (firstDot === -1) return cleaned;
|
|
31
|
-
const head = cleaned.slice(0, firstDot);
|
|
32
|
-
const tail = cleaned.slice(firstDot + 1).replace(/\./g, '');
|
|
33
|
-
return `${head === '' ? '0' : head}.${tail}`;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Whether the load has been described enough to ask for quotes.
|
|
38
|
-
*
|
|
39
|
-
* It is the FORM's question, not the app's: an app that prices a job has its
|
|
40
|
-
* own rules, and this only answers whether every control the picker draws has
|
|
41
|
-
* been answered. Exported so a submit button can be disabled from the same
|
|
42
|
-
* decision the picker makes, rather than from a second copy of it.
|
|
43
|
-
*/
|
|
44
|
-
function isShipmentLoadComplete(load) {
|
|
45
|
-
return load.kind !== null && load.size !== null && load.weight.trim() !== '' && Number(load.weight) > 0 && load.quantity >= 1;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* The next selection of extras, in the OPTIONS' order.
|
|
50
|
-
*
|
|
51
|
-
* Reporting in the options' order rather than the tap order means the value is
|
|
52
|
-
* stable: a form that round-trips through a server does not reorder its own
|
|
53
|
-
* switches, and two equal selections compare equal.
|
|
54
|
-
*/
|
|
55
|
-
function toggleShipmentExtra(options, selected, key) {
|
|
56
|
-
const next = new Set(selected);
|
|
57
|
-
if (next.has(key)) next.delete(key);else next.add(key);
|
|
58
|
-
return options.map(option => option.key).filter(candidate => next.has(candidate));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/** Joins the non-empty parts of an accessible name. */
|
|
62
|
-
function joinShipmentName(parts, separator = ', ') {
|
|
63
|
-
return parts.filter(part => typeof part === 'string' && part !== '').join(separator);
|
|
64
|
-
}
|
|
65
|
-
//# 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"],"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AC,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;AACO,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":[]}
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.VehiclePicker = VehiclePicker;
|
|
7
|
-
var _FieldConstraintScope = require("../field/FieldConstraintScope.js");
|
|
8
|
-
var _membership = require("../field/membership.js");
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactNative = require("react-native");
|
|
11
|
-
var _index = require("../chip/index.js");
|
|
12
|
-
var _useContainerWidth = require("../hooks/use-container-width.js");
|
|
13
|
-
var _RiErrorWarningLine = require("../icons/remix/RiErrorWarningLine.js");
|
|
14
|
-
var _SelectionCard = require("../card/SelectionCard.js");
|
|
15
|
-
var _messages = require("../locale/messages.js");
|
|
16
|
-
var _accentColors = require("../theme/accent-colors.js");
|
|
17
|
-
var _useTheme = require("../theme/use-theme.js");
|
|
18
|
-
var _index2 = require("../typography/index.js");
|
|
19
|
-
var _constants = require("./constants.js");
|
|
20
|
-
var _messages2 = require("./messages.js");
|
|
21
|
-
var _shared = require("./shared.js");
|
|
22
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
var cache;
|
|
24
|
-
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
25
|
-
/**
|
|
26
|
-
* Which vehicle the job needs: a column of selectable vehicle cards, each one
|
|
27
|
-
* saying what it can take, what fits in it and what it starts at.
|
|
28
|
-
*
|
|
29
|
-
* heading `title` at `body-semibold` over `description` at
|
|
30
|
-
* `body-2-regular`, the shape a search panel's pickers use, 16
|
|
31
|
-
* above the first option. Omit both and the picker starts at the
|
|
32
|
-
* list
|
|
33
|
-
* option the editor's selectable card: a 44 icon tile, the vehicle's name
|
|
34
|
-
* at `headline-semibold`, its capacity under it, and the radio
|
|
35
|
-
* indicator on the right
|
|
36
|
-
* detail under the card's hairline: the `fits` nouns as outlined chips,
|
|
37
|
-
* then a "From · amount" line in tabular figures
|
|
38
|
-
* blocked a disabled card, dimmed, with its reason on a warning-toned line
|
|
39
|
-
* under the detail — and the same reason inside the card's name, so
|
|
40
|
-
* it is announced rather than merely drawn
|
|
41
|
-
*
|
|
42
|
-
* ONE ANSWER. The group is a `radiogroup` and every card a `radio`: a job goes
|
|
43
|
-
* in one vehicle, and an empty selection is a job that has not chosen yet.
|
|
44
|
-
*
|
|
45
|
-
* THE DETAIL IS NOT A DISCLOSURE. Every card shows its capacity, its chips and
|
|
46
|
-
* its price at rest, because the question the picker answers is a COMPARISON —
|
|
47
|
-
* a card that reveals its numbers only once chosen makes the user select four
|
|
48
|
-
* vehicles to choose one.
|
|
49
|
-
*
|
|
50
|
-
* MONEY ARRIVES FORMATTED. `priceFrom` is drawn exactly as given; nothing here
|
|
51
|
-
* adds, converts or rounds an amount.
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
const TABULAR = {
|
|
55
|
-
fontVariant: ['tabular-nums']
|
|
56
|
-
};
|
|
57
|
-
function VehiclePicker({
|
|
58
|
-
value,
|
|
59
|
-
onValueChange,
|
|
60
|
-
options: optionsProp,
|
|
61
|
-
title,
|
|
62
|
-
description,
|
|
63
|
-
disabled: disabledProp = false,
|
|
64
|
-
labels: labelOverrides,
|
|
65
|
-
accessibilityLabel: accessibilityLabelProp,
|
|
66
|
-
style,
|
|
67
|
-
testID
|
|
68
|
-
}) {
|
|
69
|
-
const {
|
|
70
|
-
messages
|
|
71
|
-
} = (0, _messages.useMessages)(_messages2.VEHICLE_PICKER_MESSAGES);
|
|
72
|
-
const field = (0, _membership.useFieldMembership)({
|
|
73
|
-
accessibilityLabel: accessibilityLabelProp,
|
|
74
|
-
disabled: disabledProp
|
|
75
|
-
});
|
|
76
|
-
const disabled = field.disabled;
|
|
77
|
-
const accessibilityLabel = field.accessibilityLabel ?? messages.vehicle;
|
|
78
|
-
const options = (0, _react.useMemo)(() => optionsProp ?? (0, _constants.builtInVehicleOptions)(messages), [optionsProp, messages]);
|
|
79
|
-
const theme = (0, _useTheme.useTheme)();
|
|
80
|
-
const paint = (0, _react.useMemo)(() => (0, _SelectionCard.resolveSelectionPaint)(theme), [theme]);
|
|
81
|
-
const labels = (0, _react.useMemo)(() => ({
|
|
82
|
-
from: messages.from,
|
|
83
|
-
fits: messages.fits,
|
|
84
|
-
unavailable: messages.unavailable,
|
|
85
|
-
...labelOverrides
|
|
86
|
-
}), [messages, labelOverrides]);
|
|
87
|
-
// The picker measures ITSELF: the same component is a full phone column and a
|
|
88
|
-
// 420-wide panel beside a map, and the window cannot tell those apart.
|
|
89
|
-
const {
|
|
90
|
-
width,
|
|
91
|
-
onLayout
|
|
92
|
-
} = (0, _useContainerWidth.useContainerWidth)();
|
|
93
|
-
const compact = width !== null && width < _constants.VEHICLE_PICKER_GEOMETRY.narrowWidth;
|
|
94
|
-
const warning = (0, _react.useMemo)(() => (0, _accentColors.resolveAccentColors)(theme.colors, 'warning', 'subtle'), [theme]);
|
|
95
|
-
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
96
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
97
|
-
testID: testID,
|
|
98
|
-
onLayout: onLayout,
|
|
99
|
-
style: style,
|
|
100
|
-
children: [title || description ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
101
|
-
style: {
|
|
102
|
-
gap: 2,
|
|
103
|
-
marginBottom: _constants.VEHICLE_PICKER_GEOMETRY.headingGap
|
|
104
|
-
},
|
|
105
|
-
children: [title ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
106
|
-
variant: "body-semibold",
|
|
107
|
-
role: "heading",
|
|
108
|
-
"aria-level": 3,
|
|
109
|
-
style: {
|
|
110
|
-
color: paint.text
|
|
111
|
-
},
|
|
112
|
-
testID: id('title'),
|
|
113
|
-
children: title
|
|
114
|
-
}) : null, description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
115
|
-
variant: "body-2-regular",
|
|
116
|
-
style: {
|
|
117
|
-
color: paint.textSecondary
|
|
118
|
-
},
|
|
119
|
-
children: description
|
|
120
|
-
}) : null]
|
|
121
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
122
|
-
collapsable: false,
|
|
123
|
-
"aria-disabled": disabled || undefined,
|
|
124
|
-
role: "radiogroup",
|
|
125
|
-
nativeID: field.nativeID,
|
|
126
|
-
"aria-describedby": field.describedBy,
|
|
127
|
-
accessibilityHint: field.accessibilityHint,
|
|
128
|
-
"aria-invalid": field.invalid || undefined,
|
|
129
|
-
"aria-required": field.required || undefined,
|
|
130
|
-
accessibilityLabel: accessibilityLabel,
|
|
131
|
-
style: {
|
|
132
|
-
gap: _constants.VEHICLE_PICKER_GEOMETRY.gap
|
|
133
|
-
},
|
|
134
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FieldConstraintScope.FieldConstraintScope, {
|
|
135
|
-
children: options.map(option => {
|
|
136
|
-
const blocked = disabled || option.disabled === true;
|
|
137
|
-
const reason = option.disabled === true ? option.unavailableReason ?? labels.unavailable : undefined;
|
|
138
|
-
const chips = option.fits ?? [];
|
|
139
|
-
const hasDetail = chips.length > 0 || option.priceFrom !== undefined || reason !== undefined;
|
|
140
|
-
const icon = option.icon ?? _constants.VEHICLE_ICON[option.value] ?? undefined;
|
|
141
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectionCard.SelectionCard, {
|
|
142
|
-
selection: "single",
|
|
143
|
-
selected: value === option.value
|
|
144
|
-
// A disabled card never reaches this, and the card itself stops
|
|
145
|
-
// re-reporting a choice already made.
|
|
146
|
-
,
|
|
147
|
-
onPress: () => {
|
|
148
|
-
if (value !== option.value) onValueChange(option.value);
|
|
149
|
-
},
|
|
150
|
-
title: option.label,
|
|
151
|
-
description: option.capacity,
|
|
152
|
-
icon: icon,
|
|
153
|
-
compact: compact,
|
|
154
|
-
disabled: blocked
|
|
155
|
-
// The name carries the capacity and the reason, because both are
|
|
156
|
-
// drawn as separate lines that no name computation would reach.
|
|
157
|
-
,
|
|
158
|
-
accessibilityLabel: (0, _shared.vehicleOptionName)(option, {
|
|
159
|
-
from: labels.from,
|
|
160
|
-
reason
|
|
161
|
-
}),
|
|
162
|
-
testID: id(option.value),
|
|
163
|
-
children: hasDetail ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
164
|
-
style: {
|
|
165
|
-
gap: _constants.VEHICLE_PICKER_GEOMETRY.chipGap
|
|
166
|
-
},
|
|
167
|
-
children: [chips.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
168
|
-
collapsable: false,
|
|
169
|
-
role: "group",
|
|
170
|
-
accessibilityLabel: labels.fits(option.label),
|
|
171
|
-
testID: id(`${option.value}-fits`),
|
|
172
|
-
style: {
|
|
173
|
-
flexDirection: 'row',
|
|
174
|
-
flexWrap: 'wrap',
|
|
175
|
-
gap: _constants.VEHICLE_PICKER_GEOMETRY.chipGap
|
|
176
|
-
},
|
|
177
|
-
children: chips.map(fit => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Chip, {
|
|
178
|
-
size: "md",
|
|
179
|
-
variant: "outlined",
|
|
180
|
-
children: fit
|
|
181
|
-
}, fit))
|
|
182
|
-
}) : null, option.priceFrom !== undefined ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
183
|
-
testID: id(`${option.value}-price`),
|
|
184
|
-
style: {
|
|
185
|
-
flexDirection: 'row',
|
|
186
|
-
alignItems: 'baseline',
|
|
187
|
-
justifyContent: 'space-between',
|
|
188
|
-
gap: 12
|
|
189
|
-
},
|
|
190
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
191
|
-
variant: "body-regular",
|
|
192
|
-
style: {
|
|
193
|
-
color: paint.textSecondary
|
|
194
|
-
},
|
|
195
|
-
children: labels.from
|
|
196
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
197
|
-
variant: "body-semibold",
|
|
198
|
-
style: [{
|
|
199
|
-
color: paint.text,
|
|
200
|
-
textAlign: 'right'
|
|
201
|
-
}, TABULAR],
|
|
202
|
-
children: option.priceFrom
|
|
203
|
-
})]
|
|
204
|
-
}) : null, reason ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
205
|
-
testID: id(`${option.value}-reason`),
|
|
206
|
-
style: {
|
|
207
|
-
flexDirection: 'row',
|
|
208
|
-
alignItems: 'flex-start',
|
|
209
|
-
gap: 6
|
|
210
|
-
},
|
|
211
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
212
|
-
style: {
|
|
213
|
-
paddingTop: 1
|
|
214
|
-
},
|
|
215
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RiErrorWarningLine.RiErrorWarningLine, {
|
|
216
|
-
width: 16,
|
|
217
|
-
height: 16,
|
|
218
|
-
fill: warning.foreground
|
|
219
|
-
})
|
|
220
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
221
|
-
variant: "body-2-regular",
|
|
222
|
-
style: {
|
|
223
|
-
flex: 1,
|
|
224
|
-
minWidth: 0,
|
|
225
|
-
color: warning.foreground
|
|
226
|
-
},
|
|
227
|
-
children: reason
|
|
228
|
-
})]
|
|
229
|
-
}) : null]
|
|
230
|
-
}) : null
|
|
231
|
-
}, option.value);
|
|
232
|
-
})
|
|
233
|
-
})
|
|
234
|
-
})]
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
VehiclePicker.displayName = 'VehiclePicker';
|
|
238
|
-
//# sourceMappingURL=VehiclePicker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_FieldConstraintScope","require","_membership","_react","_interopRequireWildcard","_reactNative","_index","_useContainerWidth","_RiErrorWarningLine","_SelectionCard","_messages","_accentColors","_useTheme","_index2","_constants","_messages2","_shared","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","TABULAR","fontVariant","VehiclePicker","value","onValueChange","options","optionsProp","title","description","disabled","disabledProp","labels","labelOverrides","accessibilityLabel","accessibilityLabelProp","style","testID","messages","useMessages","VEHICLE_PICKER_MESSAGES","field","useFieldMembership","vehicle","useMemo","builtInVehicleOptions","theme","useTheme","paint","resolveSelectionPaint","from","fits","unavailable","width","onLayout","useContainerWidth","compact","VEHICLE_PICKER_GEOMETRY","narrowWidth","warning","resolveAccentColors","colors","id","part","undefined","jsxs","View","children","gap","marginBottom","headingGap","jsx","Text","variant","role","color","text","textSecondary","collapsable","nativeID","describedBy","accessibilityHint","invalid","required","FieldConstraintScope","map","option","blocked","reason","unavailableReason","chips","hasDetail","length","priceFrom","icon","VEHICLE_ICON","SelectionCard","selection","selected","onPress","label","capacity","vehicleOptionName","chipGap","flexDirection","flexWrap","fit","Chip","size","alignItems","justifyContent","textAlign","paddingTop","RiErrorWarningLine","height","fill","foreground","flex","minWidth","displayName"],"sourceRoot":"../../../src","sources":["vehicle-picker/VehiclePicker.tsx"],"mappings":";;;;;;AAAA,IAAAA,qBAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;AACA,IAAAW,SAAA,GAAAX,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA;AACA,IAAAa,UAAA,GAAAb,OAAA;AACA,IAAAc,UAAA,GAAAd,OAAA;AACA,IAAAe,OAAA,GAAAf,OAAA;AAA6C,IAAAgB,WAAA,GAAAhB,OAAA;AAAA,IAAAiB,KAAA;AAAA,SAAAd,wBAAAe,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAE,UAAA,SAAAF,CAAA,MAAAG,CAAA,EAAAC,CAAA,EAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,QAAAM,MAAA,CAAAN,CAAA,MAAAA,CAAA,SAAAQ,CAAA,MAAAT,KAAA,yBAAAY,OAAA,KAAAZ,KAAA,OAAAY,OAAA,KAAAZ,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AEiF,IAAI,EAAE,CAAC;oBAAEC,QAAQ,EAAE,CAAC;oBAAE3C,KAAK,EAAEhB,OAAO,CAACyD;kBAAW,CAAE;kBAAAjD,QAAA,EAE1DqB;gBAAM,CACH,CAAC;cAAA,CACH,CAAC,GACL,IAAI;YAAA,CACJ,CAAC,GACL;UAAI,GA/EHF,MAAM,CAAC9D,KAgFC,CAAC;QAEpB,CAAC;MAAC,CACkB;IAAC,CACnB,CAAC;EAAA,CACH,CAAC;AAEX;AAEAD,aAAa,CAACgG,WAAW,GAAG,eAAe","ignoreList":[]}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.VEHICLE_PICKER_LABELS = exports.VEHICLE_PICKER_GEOMETRY = exports.VEHICLE_OPTIONS = exports.VEHICLE_ICON = void 0;
|
|
7
|
-
exports.builtInVehicleOptions = builtInVehicleOptions;
|
|
8
|
-
var _RiBikeLine = require("../icons/remix/RiBikeLine.js");
|
|
9
|
-
var _RiBox3Line = require("../icons/remix/RiBox3Line.js");
|
|
10
|
-
var _RiBusLine = require("../icons/remix/RiBusLine.js");
|
|
11
|
-
var _RiCarLine = require("../icons/remix/RiCarLine.js");
|
|
12
|
-
var _RiSnowflakeLine = require("../icons/remix/RiSnowflakeLine.js");
|
|
13
|
-
var _messages = require("./messages.js");
|
|
14
|
-
const BUILT_IN_ORDER = ['bike', 'car', 'van', 'boxTruck', 'refrigerated'];
|
|
15
|
-
|
|
16
|
-
/** The five built-in vehicles, smallest first, in one language's words. */
|
|
17
|
-
function builtInVehicleOptions(messages) {
|
|
18
|
-
return BUILT_IN_ORDER.map(value => ({
|
|
19
|
-
value,
|
|
20
|
-
...messages.vehicles[value],
|
|
21
|
-
fits: [...messages.vehicles[value].fits]
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* The glyph each built-in vehicle draws.
|
|
27
|
-
*
|
|
28
|
-
* Bloom's icon set has no truck and no van, so the two largest bodies borrow
|
|
29
|
-
* the closest shapes it does have — a bus for the van (a box on wheels at road
|
|
30
|
-
* scale) and a crate for the box truck (the body IS the box). The refrigerated
|
|
31
|
-
* van is the snowflake rather than a second vehicle outline: what distinguishes
|
|
32
|
-
* it is the temperature, not the silhouette, and two nearly identical van
|
|
33
|
-
* glyphs side by side read as a drawing mistake.
|
|
34
|
-
*/
|
|
35
|
-
const VEHICLE_ICON = exports.VEHICLE_ICON = {
|
|
36
|
-
bike: _RiBikeLine.RiBikeLine,
|
|
37
|
-
car: _RiCarLine.RiCarLine,
|
|
38
|
-
van: _RiBusLine.RiBusLine,
|
|
39
|
-
boxTruck: _RiBox3Line.RiBox3Line,
|
|
40
|
-
refrigerated: _RiSnowflakeLine.RiSnowflakeLine
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The five built-in vehicles, smallest first, with no prices.
|
|
45
|
-
*
|
|
46
|
-
* A price-from belongs to a marketplace and a moment, so the defaults carry
|
|
47
|
-
* none: a picker showing invented amounts is worse than one showing the
|
|
48
|
-
* capacities alone. Spread an option and add `priceFrom` where the app knows it.
|
|
49
|
-
*
|
|
50
|
-
* In English. A picker given no `options` draws these five in the resolved
|
|
51
|
-
* locale's words instead.
|
|
52
|
-
*/
|
|
53
|
-
const VEHICLE_OPTIONS = exports.VEHICLE_OPTIONS = builtInVehicleOptions(_messages.VEHICLE_PICKER_MESSAGES.en);
|
|
54
|
-
|
|
55
|
-
/** The picker's default copy, in English. The picker speaks `VEHICLE_PICKER_MESSAGES` in the resolved locale. */
|
|
56
|
-
const VEHICLE_PICKER_LABELS = exports.VEHICLE_PICKER_LABELS = {
|
|
57
|
-
from: _messages.VEHICLE_PICKER_MESSAGES.en.from,
|
|
58
|
-
fits: _messages.VEHICLE_PICKER_MESSAGES.en.fits,
|
|
59
|
-
unavailable: _messages.VEHICLE_PICKER_MESSAGES.en.unavailable
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* The picker's geometry, as the numbers rather than as prose.
|
|
64
|
-
*
|
|
65
|
-
* `gap` is the space between two option cards; `chipGap` the space inside a
|
|
66
|
-
* `fits` row. `narrowWidth` is the picker's OWN width under which each card
|
|
67
|
-
* drops to its compact inset — the same measurement the card itself offers,
|
|
68
|
-
* taken once here so every card in one picker agrees.
|
|
69
|
-
*/
|
|
70
|
-
const VEHICLE_PICKER_GEOMETRY = exports.VEHICLE_PICKER_GEOMETRY = {
|
|
71
|
-
gap: 12,
|
|
72
|
-
chipGap: 8,
|
|
73
|
-
headingGap: 16,
|
|
74
|
-
narrowWidth: 400
|
|
75
|
-
};
|
|
76
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_RiBikeLine","require","_RiBox3Line","_RiBusLine","_RiCarLine","_RiSnowflakeLine","_messages","BUILT_IN_ORDER","builtInVehicleOptions","messages","map","value","vehicles","fits","VEHICLE_ICON","exports","bike","RiBikeLine","car","RiCarLine","van","RiBusLine","boxTruck","RiBox3Line","refrigerated","RiSnowflakeLine","VEHICLE_OPTIONS","VEHICLE_PICKER_MESSAGES","en","VEHICLE_PICKER_LABELS","from","unavailable","VEHICLE_PICKER_GEOMETRY","gap","chipGap","headingGap","narrowWidth"],"sourceRoot":"../../../src","sources":["vehicle-picker/constants.ts"],"mappings":";;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAEA,IAAAK,SAAA,GAAAL,OAAA;AAGA,MAAMM,cAAsC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,CAAC;;AAEjG;AACO,SAASC,qBAAqBA,CACnCC,QAA+B,EACQ;EACvC,OAAOF,cAAc,CAACG,GAAG,CAAEC,KAAK,KAAM;IACpCA,KAAK;IACL,GAAGF,QAAQ,CAACG,QAAQ,CAACD,KAAK,CAAC;IAC3BE,IAAI,EAAE,CAAC,GAAGJ,QAAQ,CAACG,QAAQ,CAACD,KAAK,CAAC,CAACE,IAAI;EACzC,CAAC,CAAC,CAAC;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,YAAqD,GAAAC,OAAA,CAAAD,YAAA,GAAG;EACnEE,IAAI,EAAEC,sBAAU;EAChBC,GAAG,EAAEC,oBAAS;EACdC,GAAG,EAAEC,oBAAS;EACdC,QAAQ,EAAEC,sBAAU;EACpBC,YAAY,EAAEC;AAChB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,eAAsD,GAAAX,OAAA,CAAAW,eAAA,GAAGlB,qBAAqB,CACzFmB,iCAAuB,CAACC,EAC1B,CAAC;;AAED;AACO,MAAMC,qBAAoD,GAAAd,OAAA,CAAAc,qBAAA,GAAG;EAClEC,IAAI,EAAEH,iCAAuB,CAACC,EAAE,CAACE,IAAI;EACrCjB,IAAI,EAAEc,iCAAuB,CAACC,EAAE,CAACf,IAAI;EACrCkB,WAAW,EAAEJ,iCAAuB,CAACC,EAAE,CAACG;AAC1C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,uBAAuB,GAAAjB,OAAA,CAAAiB,uBAAA,GAAG;EACrCC,GAAG,EAAE,EAAE;EACPC,OAAO,EAAE,CAAC;EACVC,UAAU,EAAE,EAAE;EACdC,WAAW,EAAE;AACf,CAAU","ignoreList":[]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "VEHICLE_ICON", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _constants.VEHICLE_ICON;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "VEHICLE_OPTIONS", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _constants.VEHICLE_OPTIONS;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "VEHICLE_PICKER_GEOMETRY", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _constants.VEHICLE_PICKER_GEOMETRY;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "VEHICLE_PICKER_LABELS", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _constants.VEHICLE_PICKER_LABELS;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "VehiclePicker", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _VehiclePicker.VehiclePicker;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "vehicleOptionName", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _shared.vehicleOptionName;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
var _VehiclePicker = require("./VehiclePicker.js");
|
|
43
|
-
var _constants = require("./constants.js");
|
|
44
|
-
var _shared = require("./shared.js");
|
|
45
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_VehiclePicker","require","_constants","_shared"],"sourceRoot":"../../../src","sources":["vehicle-picker/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAOA,IAAAE,OAAA,GAAAF,OAAA","ignoreList":[]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.VEHICLE_PICKER_MESSAGES = void 0;
|
|
7
|
-
var _messages = require("../locale/messages.js");
|
|
8
|
-
/** One built-in vehicle's words. */
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Every fixed string the vehicle picker draws or announces — its own words and
|
|
12
|
-
* the five built-in vehicles' — in each Bloom language. A caller's `labels`,
|
|
13
|
-
* `accessibilityLabel` and `options` still win.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
const VEHICLE_PICKER_MESSAGES = exports.VEHICLE_PICKER_MESSAGES = (0, _messages.defineMessages)('VEHICLE_PICKER_MESSAGES', {
|
|
17
|
-
from: 'From',
|
|
18
|
-
fits: label => `What fits in a ${label}`,
|
|
19
|
-
unavailable: 'Not available for this load',
|
|
20
|
-
vehicle: 'Vehicle',
|
|
21
|
-
vehicles: {
|
|
22
|
-
bike: {
|
|
23
|
-
label: 'Cargo bike',
|
|
24
|
-
capacity: 'Up to 25 kg · 60 × 40 × 40 cm',
|
|
25
|
-
fits: ['Documents', 'A food order', 'A small box']
|
|
26
|
-
},
|
|
27
|
-
car: {
|
|
28
|
-
label: 'Car',
|
|
29
|
-
capacity: 'Up to 150 kg · 100 × 80 × 60 cm',
|
|
30
|
-
fits: ['Two suitcases', 'Four boxes', 'A bicycle']
|
|
31
|
-
},
|
|
32
|
-
van: {
|
|
33
|
-
label: 'Van',
|
|
34
|
-
capacity: 'Up to 800 kg · 240 × 150 × 140 cm',
|
|
35
|
-
fits: ['A sofa', 'A studio move', 'Half a pallet']
|
|
36
|
-
},
|
|
37
|
-
boxTruck: {
|
|
38
|
-
label: 'Box truck',
|
|
39
|
-
capacity: 'Up to 3,500 kg · 420 × 200 × 210 cm',
|
|
40
|
-
fits: ['Two pallets', 'A two-bedroom move', 'A tail lift']
|
|
41
|
-
},
|
|
42
|
-
refrigerated: {
|
|
43
|
-
label: 'Refrigerated van',
|
|
44
|
-
capacity: 'Up to 700 kg · held at 2–8 °C',
|
|
45
|
-
fits: ['Fresh produce', 'Chilled catering', 'Flowers']
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_messages","require","VEHICLE_PICKER_MESSAGES","exports","defineMessages","from","fits","label","unavailable","vehicle","vehicles","bike","capacity","car","van","boxTruck","refrigerated"],"sourceRoot":"../../../src","sources":["vehicle-picker/messages.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAGA;;AAOA;AACA;AACA;AACA;AACA;;AAaO,MAAMC,uBAA8D,GAAAC,OAAA,CAAAD,uBAAA,GACzE,IAAAE,wBAAc,EAAwB,yBAAyB,EAAE;EAC/DC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAGC,KAAK,IAAK,kBAAkBA,KAAK,EAAE;EAC1CC,WAAW,EAAE,6BAA6B;EAC1CC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE;IACRC,IAAI,EAAE;MACJJ,KAAK,EAAE,YAAY;MACnBK,QAAQ,EAAE,+BAA+B;MACzCN,IAAI,EAAE,CAAC,WAAW,EAAE,cAAc,EAAE,aAAa;IACnD,CAAC;IACDO,GAAG,EAAE;MACHN,KAAK,EAAE,KAAK;MACZK,QAAQ,EAAE,iCAAiC;MAC3CN,IAAI,EAAE,CAAC,eAAe,EAAE,YAAY,EAAE,WAAW;IACnD,CAAC;IACDQ,GAAG,EAAE;MACHP,KAAK,EAAE,KAAK;MACZK,QAAQ,EAAE,mCAAmC;MAC7CN,IAAI,EAAE,CAAC,QAAQ,EAAE,eAAe,EAAE,eAAe;IACnD,CAAC;IACDS,QAAQ,EAAE;MACRR,KAAK,EAAE,WAAW;MAClBK,QAAQ,EAAE,qCAAqC;MAC/CN,IAAI,EAAE,CAAC,aAAa,EAAE,oBAAoB,EAAE,aAAa;IAC3D,CAAC;IACDU,YAAY,EAAE;MACZT,KAAK,EAAE,kBAAkB;MACzBK,QAAQ,EAAE,+BAA+B;MACzCN,IAAI,EAAE,CAAC,eAAe,EAAE,kBAAkB,EAAE,SAAS;IACvD;EACF;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.vehicleOptionName = vehicleOptionName;
|
|
7
|
-
/**
|
|
8
|
-
* What a vehicle card ANNOUNCES.
|
|
9
|
-
*
|
|
10
|
-
* The card draws four things a name computation cannot reach: the capacity
|
|
11
|
-
* line, the chips under the hairline, the price and — the one that matters —
|
|
12
|
-
* the reason a blocked option is blocked. A user who cannot see the dimming has
|
|
13
|
-
* to be told, in the control's own name, that this row is out and why.
|
|
14
|
-
*
|
|
15
|
-
* The price is read WITH its label ("From €8.90"): a bare amount inside a
|
|
16
|
-
* sentence of capacities reads as another measurement.
|
|
17
|
-
*
|
|
18
|
-
* Pure, and exported so the join can be walked without a render.
|
|
19
|
-
*/
|
|
20
|
-
function vehicleOptionName(option, parts) {
|
|
21
|
-
const price = option.priceFrom === undefined || option.priceFrom === '' ? undefined : `${parts.from} ${option.priceFrom}`;
|
|
22
|
-
return [option.label, option.capacity, price, parts.reason].filter(part => typeof part === 'string' && part !== '').join(', ');
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["vehicleOptionName","option","parts","price","priceFrom","undefined","from","label","capacity","reason","filter","part","join"],"sourceRoot":"../../../src","sources":["vehicle-picker/shared.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,iBAAiBA,CAC/BC,MAAuE,EACvEC,KAAwC,EAChC;EACR,MAAMC,KAAK,GACTF,MAAM,CAACG,SAAS,KAAKC,SAAS,IAAIJ,MAAM,CAACG,SAAS,KAAK,EAAE,GACrDC,SAAS,GACT,GAAGH,KAAK,CAACI,IAAI,IAAIL,MAAM,CAACG,SAAS,EAAE;EACzC,OAAO,CAACH,MAAM,CAACM,KAAK,EAAEN,MAAM,CAACO,QAAQ,EAAEL,KAAK,EAAED,KAAK,CAACO,MAAM,CAAC,CACxDC,MAAM,CAAEC,IAAI,IAAqB,OAAOA,IAAI,KAAK,QAAQ,IAAIA,IAAI,KAAK,EAAE,CAAC,CACzEC,IAAI,CAAC,IAAI,CAAC;AACf","ignoreList":[]}
|