@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,199 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
|
|
4
|
-
import type { BloomIconComponent } from '../icons/icon-component';
|
|
5
|
-
import type { PriceLine, PriceTotal } from '../price-breakdown';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* A mark the LIST puts on a quote, not the quote on itself.
|
|
9
|
-
*
|
|
10
|
-
* `cheapest` and `fastest` are statements about the set: a card handed one out
|
|
11
|
-
* of context would be claiming something it cannot know. `CarrierQuoteList`
|
|
12
|
-
* derives them from `priceValue` / `etaMinutes` and passes them down, and a
|
|
13
|
-
* caller rendering a lone card supplies them only if it has the same set.
|
|
14
|
-
*/
|
|
15
|
-
export type CarrierQuoteMark = 'cheapest' | 'fastest';
|
|
16
|
-
|
|
17
|
-
/** What the list orders by. */
|
|
18
|
-
export type CarrierQuoteSort = 'price' | 'eta' | 'rating';
|
|
19
|
-
|
|
20
|
-
/** `comfortable` is the offers screen; `compact` fits a sheet or a side panel. */
|
|
21
|
-
export type CarrierQuoteDensity = 'comfortable' | 'compact';
|
|
22
|
-
|
|
23
|
-
export interface CarrierQuoteCarrier {
|
|
24
|
-
/** Identifies the carrier to the app. Not drawn. */
|
|
25
|
-
id: string;
|
|
26
|
-
/** The name on the card — a person or a company. */
|
|
27
|
-
name: string;
|
|
28
|
-
/** A URL, an `{ uri }`, or an `ImageResolver` id. */
|
|
29
|
-
avatar?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The rating on a 5 scale, handed straight to `Rating`. `null` (or omitted)
|
|
32
|
-
* is a carrier with no rating yet, which `Rating` draws as "New".
|
|
33
|
-
*/
|
|
34
|
-
rating?: number | string | null;
|
|
35
|
-
/** How many jobs they have done. A string is drawn as given ("1.2k"). */
|
|
36
|
-
jobs?: number | string;
|
|
37
|
-
/** What they will arrive in — "Van", "Cargo bike". */
|
|
38
|
-
vehicle?: string;
|
|
39
|
-
/** The vehicle's glyph, drawn in the vehicle tile. */
|
|
40
|
-
vehicleIcon?: BloomIconComponent;
|
|
41
|
-
/** Draws the verified mark after the name. */
|
|
42
|
-
verified?: boolean;
|
|
43
|
-
/** A one-line trade line under the name — "Larkspur Freight · Lisbon". */
|
|
44
|
-
detail?: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface CarrierQuote {
|
|
48
|
-
/** Identifies the offer to `onAccept` / `onMessage` / `onDecline`, and keys the row. */
|
|
49
|
-
id: string;
|
|
50
|
-
carrier: CarrierQuoteCarrier;
|
|
51
|
-
/**
|
|
52
|
-
* The offer, PRE-FORMATTED with its currency: `"€38.40"`. Nothing in this
|
|
53
|
-
* family parses, sums, converts or rounds an amount.
|
|
54
|
-
*/
|
|
55
|
-
price: string;
|
|
56
|
-
/** A quieter line under the price — "All in, VAT included". */
|
|
57
|
-
priceNote?: string;
|
|
58
|
-
/** The itemisation, handed to `PriceSummary` unchanged. */
|
|
59
|
-
priceLines?: readonly PriceLine[];
|
|
60
|
-
/** The summary's own total row. Without it the breakdown draws the lines and no rule. */
|
|
61
|
-
priceTotal?: PriceTotal;
|
|
62
|
-
/** When they would collect — "Today, 14:00–16:00". */
|
|
63
|
-
pickupWindow?: string;
|
|
64
|
-
/** When it would land — "Arrives 17:40", "2 h 10". */
|
|
65
|
-
eta?: string;
|
|
66
|
-
/** What the carrier wrote with the offer. Drawn at three lines, then truncated. */
|
|
67
|
-
message?: string;
|
|
68
|
-
/** How long the offer stands — "Expires in 12 min". Drawn as a warning-toned line. */
|
|
69
|
-
expiresIn?: string;
|
|
70
|
-
/**
|
|
71
|
-
* The price as a NUMBER, for sorting and for the `cheapest` mark only. Never
|
|
72
|
-
* drawn, never formatted, and in whatever unit the app compares in — this
|
|
73
|
-
* family only ever asks which of two is smaller. A quote without it sorts
|
|
74
|
-
* last and is never marked.
|
|
75
|
-
*/
|
|
76
|
-
priceValue?: number;
|
|
77
|
-
/** The ETA in minutes, for sorting and for the `fastest` mark. Same rules. */
|
|
78
|
-
etaMinutes?: number;
|
|
79
|
-
/** Marks drawn beside the name. The list supplies these; see {@link CarrierQuoteMark}. */
|
|
80
|
-
marks?: readonly CarrierQuoteMark[];
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/** Every word the card and the list speak, in one prop. */
|
|
84
|
-
export interface CarrierQuoteLabels {
|
|
85
|
-
/** The accept action. Default `"Accept"`. */
|
|
86
|
-
accept?: string;
|
|
87
|
-
/** The message action. Default `"Message"`. */
|
|
88
|
-
message?: string;
|
|
89
|
-
/** The decline action. Default `"Decline"`. */
|
|
90
|
-
decline?: string;
|
|
91
|
-
/** Over the pick-up tile. Default `"Pick-up"`. */
|
|
92
|
-
pickup?: string;
|
|
93
|
-
/** Over the arrival tile. Default `"Arrives"`. */
|
|
94
|
-
eta?: string;
|
|
95
|
-
/** Over the vehicle tile. Default `"Vehicle"`. */
|
|
96
|
-
vehicle?: string;
|
|
97
|
-
/** After the jobs count. Default `` (jobs) => `${jobs} jobs` ``. */
|
|
98
|
-
jobs?: (jobs: string) => string;
|
|
99
|
-
/** The verified mark's name — it draws a glyph and no text. Default `"Verified carrier"`. */
|
|
100
|
-
verified?: string;
|
|
101
|
-
/** The marks. Defaults `"Cheapest"` and `"Fastest"`. */
|
|
102
|
-
marks?: Partial<Record<CarrierQuoteMark, string>>;
|
|
103
|
-
/** The breakdown disclosure. Defaults `"Show price details"` / `"Hide price details"`. */
|
|
104
|
-
showPrice?: string;
|
|
105
|
-
hidePrice?: string;
|
|
106
|
-
/** Names the itemisation, before the carrier's name. Default `"Price details for"`. */
|
|
107
|
-
priceDetails?: string;
|
|
108
|
-
/** The sort control's name. Default `"Sort offers"`. */
|
|
109
|
-
sort?: string;
|
|
110
|
-
/** The sort options. Defaults `"Cheapest"`, `"Fastest"`, `"Best rated"`. */
|
|
111
|
-
sortOptions?: Partial<Record<CarrierQuoteSort, string>>;
|
|
112
|
-
/** The list's heading. Default `` (count) => count === 1 ? '1 offer' : `${count} offers` ``. */
|
|
113
|
-
count?: (count: number) => string;
|
|
114
|
-
/** The loading list's name. Default `"Loading offers"`. */
|
|
115
|
-
loading?: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface CarrierQuoteCardProps {
|
|
119
|
-
/** The offer. */
|
|
120
|
-
quote: CarrierQuote;
|
|
121
|
-
/** Draws the accept action. Called with the quote's id. */
|
|
122
|
-
onAccept?: (id: string) => void;
|
|
123
|
-
/** Draws the message action. Called with the quote's id. */
|
|
124
|
-
onMessage?: (id: string) => void;
|
|
125
|
-
/** Draws the decline action. Called with the quote's id. */
|
|
126
|
-
onDecline?: (id: string) => void;
|
|
127
|
-
/** Makes the identity block pressable — an app opens the carrier's profile from here. */
|
|
128
|
-
onPressCarrier?: (id: string) => void;
|
|
129
|
-
/**
|
|
130
|
-
* Draws the itemisation behind a disclosure under the tiles. Default `true`
|
|
131
|
-
* when the quote carries `priceLines`; `false` never draws it.
|
|
132
|
-
*/
|
|
133
|
-
breakdown?: boolean;
|
|
134
|
-
/** Starts the breakdown open. Default `false`. */
|
|
135
|
-
defaultBreakdownExpanded?: boolean;
|
|
136
|
-
/** Default `comfortable`. */
|
|
137
|
-
density?: CarrierQuoteDensity;
|
|
138
|
-
/** Paints the card as the chosen offer: the accent border and a checked mark. */
|
|
139
|
-
selected?: boolean;
|
|
140
|
-
/** Dims the card and stops every action. */
|
|
141
|
-
disabled?: boolean;
|
|
142
|
-
/** Replaces the three built-in actions entirely. */
|
|
143
|
-
actions?: ReactNode;
|
|
144
|
-
labels?: CarrierQuoteLabels;
|
|
145
|
-
/** Overrides the composed name of the identity block. */
|
|
146
|
-
accessibilityLabel?: string;
|
|
147
|
-
style?: StyleProp<ViewStyle>;
|
|
148
|
-
testID?: string;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export interface CarrierQuoteListProps {
|
|
152
|
-
/** The offers. Order is the list's, not the caller's — see `sort`. */
|
|
153
|
-
quotes: readonly CarrierQuote[];
|
|
154
|
-
/** Controlled sort. */
|
|
155
|
-
sort?: CarrierQuoteSort;
|
|
156
|
-
/** Uncontrolled initial sort. Default `price`. */
|
|
157
|
-
defaultSort?: CarrierQuoteSort;
|
|
158
|
-
onSortChange?: (sort: CarrierQuoteSort) => void;
|
|
159
|
-
/**
|
|
160
|
-
* Which orders are offered, in the order they are drawn. Default all three.
|
|
161
|
-
* An empty array draws no sort control — a list of two offers does not need
|
|
162
|
-
* one.
|
|
163
|
-
*/
|
|
164
|
-
sortOptions?: readonly CarrierQuoteSort[];
|
|
165
|
-
/** Draws the count line over the list. Default `true`. */
|
|
166
|
-
showCount?: boolean;
|
|
167
|
-
/**
|
|
168
|
-
* Marks the cheapest and the fastest offer. Default `true`. Every offer tied
|
|
169
|
-
* at the minimum is marked — two offers at the same price are both the
|
|
170
|
-
* cheapest, and picking one of them arbitrarily would be this component
|
|
171
|
-
* inventing a tie-break.
|
|
172
|
-
*/
|
|
173
|
-
marks?: boolean;
|
|
174
|
-
/** Replaces the list with placeholder cards. */
|
|
175
|
-
loading?: boolean;
|
|
176
|
-
/** How many placeholders. Default `3`. */
|
|
177
|
-
loadingCount?: number;
|
|
178
|
-
/** Forwarded to every card. */
|
|
179
|
-
onAccept?: (id: string) => void;
|
|
180
|
-
onMessage?: (id: string) => void;
|
|
181
|
-
onDecline?: (id: string) => void;
|
|
182
|
-
onPressCarrier?: (id: string) => void;
|
|
183
|
-
/** The chosen offer's id, if one has been chosen. */
|
|
184
|
-
selectedId?: string | null;
|
|
185
|
-
density?: CarrierQuoteDensity;
|
|
186
|
-
breakdown?: boolean;
|
|
187
|
-
/** The line over the empty state. Default `"No offers yet"`. */
|
|
188
|
-
emptyTitle?: string;
|
|
189
|
-
/** Under it. Default `"Carriers are looking at your job. The first offers usually arrive within a few minutes."`. */
|
|
190
|
-
emptyDescription?: string;
|
|
191
|
-
/** A control under the empty state — "Edit the job", "Invite a carrier". */
|
|
192
|
-
emptyAction?: ReactNode;
|
|
193
|
-
labels?: CarrierQuoteLabels;
|
|
194
|
-
/** Names the list. Default `"Offers"`. */
|
|
195
|
-
accessibilityLabel?: string;
|
|
196
|
-
style?: StyleProp<ViewStyle>;
|
|
197
|
-
/** Derives `-<quote id>` for each card. */
|
|
198
|
-
testID?: string;
|
|
199
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import React, { memo } from 'react';
|
|
2
|
-
|
|
3
|
-
import { ChipRow } from '../chip';
|
|
4
|
-
import { SelectChip } from '../listing-actions/parts';
|
|
5
|
-
import { Text } from '../typography';
|
|
6
|
-
import { useMessages } from '../locale/messages';
|
|
7
|
-
import { DELIVERY_SLOT_MESSAGES } from './messages';
|
|
8
|
-
import type { DeliverySlotDaysProps } from './types';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The days across the top: which day's windows are listed below.
|
|
12
|
-
*
|
|
13
|
-
* tile `SelectChip shape="day"` — 56 wide, radius 12, a hairline at rest,
|
|
14
|
-
* a neutral wash under a pointer, INVERTED when chosen
|
|
15
|
-
* text the weekday caption-1-regular over the date headline-semibold in
|
|
16
|
-
* tabular figures, so a two-digit date does not widen the tile
|
|
17
|
-
* strip `ChipRow`, 8 apart, which supplies the sideways scroll, the fade
|
|
18
|
-
* at whichever edge has more behind it, and the room a focus ring
|
|
19
|
-
* needs so the outline is not clipped by its own scroller
|
|
20
|
-
* unavailable struck through at the disabled opacity, not pressable
|
|
21
|
-
*
|
|
22
|
-
* Both parts are the library's. `SelectChip` is the day tile Bloom already
|
|
23
|
-
* draws for scheduling a viewing — a day picked out of a strip is one thing,
|
|
24
|
-
* not one per app — and `ChipRow` is the sideways scroller five filter rows
|
|
25
|
-
* share. Nothing here is a new shape.
|
|
26
|
-
*
|
|
27
|
-
* It announces as a `radiogroup` of `radio`s, which is what the control IS: one
|
|
28
|
-
* day of several, exactly one chosen. The WINDOWS are their own group — two
|
|
29
|
-
* choices, two groups, rather than one group a reader has to infer the halves
|
|
30
|
-
* of.
|
|
31
|
-
*/
|
|
32
|
-
function DeliverySlotDaysComponent({
|
|
33
|
-
days,
|
|
34
|
-
value,
|
|
35
|
-
onChange,
|
|
36
|
-
accessibilityLabel: accessibilityLabelProp,
|
|
37
|
-
disabled = false,
|
|
38
|
-
fadeColor,
|
|
39
|
-
style,
|
|
40
|
-
testID,
|
|
41
|
-
}: DeliverySlotDaysProps) {
|
|
42
|
-
const { messages } = useMessages(DELIVERY_SLOT_MESSAGES);
|
|
43
|
-
const accessibilityLabel = accessibilityLabelProp ?? messages.day;
|
|
44
|
-
return (
|
|
45
|
-
<ChipRow
|
|
46
|
-
role="radiogroup"
|
|
47
|
-
accessibilityLabel={accessibilityLabel}
|
|
48
|
-
disabled={disabled}
|
|
49
|
-
fadeColor={fadeColor}
|
|
50
|
-
gap={8}
|
|
51
|
-
style={style}
|
|
52
|
-
testID={testID}
|
|
53
|
-
>
|
|
54
|
-
{days.map((d) => {
|
|
55
|
-
const unavailable = disabled || d.disabled === true;
|
|
56
|
-
return (
|
|
57
|
-
<SelectChip
|
|
58
|
-
key={d.id}
|
|
59
|
-
shape="day"
|
|
60
|
-
selected={d.id === value}
|
|
61
|
-
disabled={unavailable}
|
|
62
|
-
onPress={onChange ? () => onChange(d.id) : undefined}
|
|
63
|
-
accessibilityLabel={d.accessibilityLabel ?? `${d.weekday} ${d.day}`}
|
|
64
|
-
testID={d.testID ?? (testID ? `${testID}-${d.id}` : undefined)}
|
|
65
|
-
>
|
|
66
|
-
{(ink) => (
|
|
67
|
-
<>
|
|
68
|
-
<Text variant="caption-1-regular" style={{ color: ink }}>
|
|
69
|
-
{d.weekday}
|
|
70
|
-
</Text>
|
|
71
|
-
<Text
|
|
72
|
-
variant="headline-semibold"
|
|
73
|
-
style={{
|
|
74
|
-
color: ink,
|
|
75
|
-
fontVariant: ['tabular-nums'],
|
|
76
|
-
textDecorationLine: unavailable ? 'line-through' : 'none',
|
|
77
|
-
}}
|
|
78
|
-
>
|
|
79
|
-
{d.day}
|
|
80
|
-
</Text>
|
|
81
|
-
</>
|
|
82
|
-
)}
|
|
83
|
-
</SelectChip>
|
|
84
|
-
);
|
|
85
|
-
})}
|
|
86
|
-
</ChipRow>
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export const DeliverySlotDays = memo(DeliverySlotDaysComponent);
|
|
91
|
-
DeliverySlotDays.displayName = 'DeliverySlotDays';
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import React, { memo, useMemo } from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
|
|
4
|
-
import { Item } from '../item';
|
|
5
|
-
import { RadioIndicator } from '../radio-indicator';
|
|
6
|
-
import { useSurfaceFill } from '../styles/surface-levels';
|
|
7
|
-
import { useTheme } from '../theme/use-theme';
|
|
8
|
-
import { Text } from '../typography';
|
|
9
|
-
import { DELIVERY_DOT, DELIVERY_GLYPH, DELIVERY_OPTION_RADIUS } from './constants';
|
|
10
|
-
import { joinDeliveryParts, resolveDeliverySlotPaint } from './shared';
|
|
11
|
-
import type { DeliverySlotOptionProps } from './types';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* One choosable slot: the window, what class of service it is and what is left
|
|
15
|
-
* of it, and what it costs.
|
|
16
|
-
*
|
|
17
|
-
* dot `RadioIndicator` at 20 (`Radio`'s `lg` rung — the row is two lines
|
|
18
|
-
* tall, and the 16 dot read as a bullet beside it)
|
|
19
|
-
* label the row's own rung, with an optional glyph before it and a `Badge`
|
|
20
|
-
* after it
|
|
21
|
-
* detail body-2-regular secondary — the tier, the capacity, the note, or
|
|
22
|
-
* just "Sold out"
|
|
23
|
-
* price body-medium in TABULAR figures at the end, so a column of
|
|
24
|
-
* surcharges lines up
|
|
25
|
-
* box radius 12, a hairline at rest; the chosen row takes the text
|
|
26
|
-
* colour for its border and one surface step for its fill
|
|
27
|
-
*
|
|
28
|
-
* It is `Item` with `role="radio"`: the press target, the hover and press
|
|
29
|
-
* paint, the disabled opacity and — the part worth naming — the `aria-checked`
|
|
30
|
-
* that role scopes are all `Item`'s, which is why this is a radio rather than a
|
|
31
|
-
* pressable that happens to look selected. A sold-out window is `disabled`, so
|
|
32
|
-
* it announces as unavailable instead of merely being drawn pale.
|
|
33
|
-
*/
|
|
34
|
-
function DeliverySlotOptionComponent({
|
|
35
|
-
label,
|
|
36
|
-
detail,
|
|
37
|
-
price,
|
|
38
|
-
badge,
|
|
39
|
-
icon: Icon,
|
|
40
|
-
selected = false,
|
|
41
|
-
disabled = false,
|
|
42
|
-
onPress,
|
|
43
|
-
accessibilityLabel,
|
|
44
|
-
style,
|
|
45
|
-
testID,
|
|
46
|
-
}: DeliverySlotOptionProps) {
|
|
47
|
-
const theme = useTheme();
|
|
48
|
-
const surface = useSurfaceFill();
|
|
49
|
-
const paint = useMemo(() => resolveDeliverySlotPaint(theme, surface), [theme, surface]);
|
|
50
|
-
const id = (part: string) => (testID ? `${testID}-${part}` : undefined);
|
|
51
|
-
|
|
52
|
-
return (
|
|
53
|
-
<Item
|
|
54
|
-
role="radio"
|
|
55
|
-
selected={selected}
|
|
56
|
-
// `onPress` stays wired while disabled: `Item` drops the handler itself
|
|
57
|
-
// and keeps the row in the group's tab order, which is what a radio that
|
|
58
|
-
// is present but unavailable should do.
|
|
59
|
-
onPress={onPress}
|
|
60
|
-
disabled={disabled}
|
|
61
|
-
accessibilityLabel={accessibilityLabel ?? joinDeliveryParts([label, detail, price]) ?? label}
|
|
62
|
-
leading={<RadioIndicator selected={selected} size={DELIVERY_DOT} testID={id('dot')} />}
|
|
63
|
-
trailing={
|
|
64
|
-
price ? (
|
|
65
|
-
<Text
|
|
66
|
-
variant="body-medium"
|
|
67
|
-
numberOfLines={1}
|
|
68
|
-
testID={id('price')}
|
|
69
|
-
style={{ color: paint.text, fontVariant: ['tabular-nums'] }}
|
|
70
|
-
>
|
|
71
|
-
{price}
|
|
72
|
-
</Text>
|
|
73
|
-
) : null
|
|
74
|
-
}
|
|
75
|
-
style={[
|
|
76
|
-
{
|
|
77
|
-
borderRadius: DELIVERY_OPTION_RADIUS,
|
|
78
|
-
borderWidth: 1,
|
|
79
|
-
borderColor: selected ? paint.text : paint.border,
|
|
80
|
-
backgroundColor: selected ? paint.selected : 'transparent',
|
|
81
|
-
},
|
|
82
|
-
style,
|
|
83
|
-
]}
|
|
84
|
-
testID={testID}
|
|
85
|
-
>
|
|
86
|
-
{/*
|
|
87
|
-
`flex: 1` + `minWidth: 0`: `Item` gives `children` no column of its own,
|
|
88
|
-
and a one-line Text is `nowrap` on web — without the floor a long window
|
|
89
|
-
label becomes the row's min-content width and the page scrolls sideways
|
|
90
|
-
instead of the label truncating.
|
|
91
|
-
*/}
|
|
92
|
-
<View style={{ flex: 1, minWidth: 0, gap: 2 }}>
|
|
93
|
-
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 6, minWidth: 0 }}>
|
|
94
|
-
{Icon ? (
|
|
95
|
-
<Icon width={DELIVERY_GLYPH} height={DELIVERY_GLYPH} fill={paint.textSecondary} />
|
|
96
|
-
) : null}
|
|
97
|
-
<Text
|
|
98
|
-
variant="body-medium"
|
|
99
|
-
numberOfLines={1}
|
|
100
|
-
testID={id('label')}
|
|
101
|
-
style={{ flexShrink: 1, minWidth: 0, color: paint.text }}
|
|
102
|
-
>
|
|
103
|
-
{label}
|
|
104
|
-
</Text>
|
|
105
|
-
{badge}
|
|
106
|
-
</View>
|
|
107
|
-
{detail ? (
|
|
108
|
-
<Text
|
|
109
|
-
variant="body-2-regular"
|
|
110
|
-
numberOfLines={2}
|
|
111
|
-
testID={id('detail')}
|
|
112
|
-
style={{ color: paint.textSecondary }}
|
|
113
|
-
>
|
|
114
|
-
{detail}
|
|
115
|
-
</Text>
|
|
116
|
-
) : null}
|
|
117
|
-
</View>
|
|
118
|
-
</Item>
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export const DeliverySlotOption = memo(DeliverySlotOptionComponent);
|
|
123
|
-
DeliverySlotOption.displayName = 'DeliverySlotOption';
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
import React, { memo, useMemo } from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
|
|
4
|
-
import { EmptyState } from '../empty-state';
|
|
5
|
-
import { Field } from '../field';
|
|
6
|
-
import { useFieldControl } from '../field/context';
|
|
7
|
-
import { useFieldMembership } from '../field/membership';
|
|
8
|
-
import { RiFlashlightLine } from '../icons/remix/RiFlashlightLine';
|
|
9
|
-
import { RiTimeLine } from '../icons/remix/RiTimeLine';
|
|
10
|
-
import { useMessages } from '../locale/messages';
|
|
11
|
-
import * as Skeleton from '../skeleton';
|
|
12
|
-
import { DeliverySlotDays } from './DeliverySlotDays';
|
|
13
|
-
import { DeliverySlotOption } from './DeliverySlotOption';
|
|
14
|
-
import {
|
|
15
|
-
DELIVERY_DOT,
|
|
16
|
-
DELIVERY_OPTION_GAP,
|
|
17
|
-
DELIVERY_OPTION_RADIUS,
|
|
18
|
-
DELIVERY_SECTION_GAP,
|
|
19
|
-
} from './constants';
|
|
20
|
-
import { DELIVERY_SLOT_MESSAGES } from './messages';
|
|
21
|
-
import { joinDeliveryParts, windowDetail, windowName } from './shared';
|
|
22
|
-
import type { DeliverySlotPickerProps } from './types';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* INTERNAL — the two groups, inside the field, so they can READ it.
|
|
26
|
-
*
|
|
27
|
-
* It is a separate component and not the body of `DeliverySlotPicker` for one
|
|
28
|
-
* mechanical reason: `useFieldMembership()` reads the context a `Field`
|
|
29
|
-
* publishes, and a component cannot read a context it renders itself. Splitting
|
|
30
|
-
* here is what makes the picker a real member of the field contract — the
|
|
31
|
-
* field's label names the group, and the field's `disabled` reaches every day
|
|
32
|
-
* and every window and cannot be opted out of.
|
|
33
|
-
*/
|
|
34
|
-
type DeliverySlotGroupsProps = Omit<
|
|
35
|
-
DeliverySlotPickerProps,
|
|
36
|
-
'description' | 'error' | 'required' | 'style'
|
|
37
|
-
> &
|
|
38
|
-
Required<
|
|
39
|
-
Pick<
|
|
40
|
-
DeliverySlotPickerProps,
|
|
41
|
-
'dayLabel' | 'emptyTitle' | 'emptyDescription' | 'soldOutLabel' | 'loadingRows'
|
|
42
|
-
>
|
|
43
|
-
>;
|
|
44
|
-
|
|
45
|
-
function DeliverySlotGroups({
|
|
46
|
-
label,
|
|
47
|
-
days,
|
|
48
|
-
day,
|
|
49
|
-
onDayChange,
|
|
50
|
-
dayLabel,
|
|
51
|
-
windows,
|
|
52
|
-
value,
|
|
53
|
-
onValueChange,
|
|
54
|
-
asap,
|
|
55
|
-
disabled,
|
|
56
|
-
loading,
|
|
57
|
-
loadingRows,
|
|
58
|
-
empty,
|
|
59
|
-
emptyTitle,
|
|
60
|
-
emptyDescription,
|
|
61
|
-
tierLabels,
|
|
62
|
-
soldOutLabel,
|
|
63
|
-
fadeColor,
|
|
64
|
-
testID,
|
|
65
|
-
}: DeliverySlotGroupsProps) {
|
|
66
|
-
// The NAME defers to the field (`??`) and `disabled` combines with it (`||`)
|
|
67
|
-
// — the two directions `field/membership.ts` exists to stop every family
|
|
68
|
-
// getting backwards.
|
|
69
|
-
const field = useFieldMembership({ accessibilityLabel: label, disabled });
|
|
70
|
-
const { messages } = useMessages(DELIVERY_SLOT_MESSAGES);
|
|
71
|
-
const id = (part: string) => (testID ? `${testID}-${part}` : undefined);
|
|
72
|
-
const off = field.disabled;
|
|
73
|
-
|
|
74
|
-
const options = useMemo(
|
|
75
|
-
() =>
|
|
76
|
-
windows.map((w) => ({
|
|
77
|
-
window: w,
|
|
78
|
-
detail: windowDetail(w, tierLabels, soldOutLabel, messages),
|
|
79
|
-
name: windowName(w, tierLabels, soldOutLabel, messages),
|
|
80
|
-
})),
|
|
81
|
-
[windows, tierLabels, soldOutLabel, messages],
|
|
82
|
-
);
|
|
83
|
-
|
|
84
|
-
const asapRow = asap ? (
|
|
85
|
-
<DeliverySlotOption
|
|
86
|
-
key="asap"
|
|
87
|
-
label={asap.label ?? messages.asap}
|
|
88
|
-
detail={asap.soldOut ? soldOutLabel : joinDeliveryParts([asap.eta, asap.note])}
|
|
89
|
-
price={asap.price}
|
|
90
|
-
icon={asap.icon ?? RiFlashlightLine}
|
|
91
|
-
selected={asap.id === value}
|
|
92
|
-
disabled={off || asap.disabled === true || asap.soldOut === true}
|
|
93
|
-
onPress={onValueChange ? () => onValueChange(asap.id) : undefined}
|
|
94
|
-
accessibilityLabel={asap.accessibilityLabel}
|
|
95
|
-
testID={asap.testID ?? id('asap')}
|
|
96
|
-
/>
|
|
97
|
-
) : null;
|
|
98
|
-
|
|
99
|
-
const body = loading ? (
|
|
100
|
-
<View
|
|
101
|
-
aria-busy
|
|
102
|
-
accessibilityLabel={field.accessibilityLabel}
|
|
103
|
-
testID={id('loading')}
|
|
104
|
-
style={{ gap: DELIVERY_OPTION_GAP }}
|
|
105
|
-
>
|
|
106
|
-
{Array.from({ length: loadingRows }, (_unused, index) => (
|
|
107
|
-
<View
|
|
108
|
-
key={index}
|
|
109
|
-
testID={id(`placeholder-${index}`)}
|
|
110
|
-
style={{
|
|
111
|
-
flexDirection: 'row',
|
|
112
|
-
alignItems: 'center',
|
|
113
|
-
gap: 12,
|
|
114
|
-
paddingHorizontal: 16,
|
|
115
|
-
paddingVertical: 10,
|
|
116
|
-
borderRadius: DELIVERY_OPTION_RADIUS,
|
|
117
|
-
}}
|
|
118
|
-
>
|
|
119
|
-
<Skeleton.Circle size={DELIVERY_DOT} />
|
|
120
|
-
<View style={{ flex: 1, minWidth: 0, gap: 4 }}>
|
|
121
|
-
<Skeleton.Text style={{ width: '40%', lineHeight: 16 }} />
|
|
122
|
-
<Skeleton.Text style={{ width: '60%', lineHeight: 14 }} />
|
|
123
|
-
</View>
|
|
124
|
-
</View>
|
|
125
|
-
))}
|
|
126
|
-
</View>
|
|
127
|
-
) : options.length === 0 && asapRow == null ? (
|
|
128
|
-
(empty ?? (
|
|
129
|
-
<EmptyState
|
|
130
|
-
variant="compact"
|
|
131
|
-
icon={RiTimeLine}
|
|
132
|
-
title={emptyTitle}
|
|
133
|
-
description={emptyDescription}
|
|
134
|
-
testID={id('empty')}
|
|
135
|
-
/>
|
|
136
|
-
))
|
|
137
|
-
) : (
|
|
138
|
-
<View
|
|
139
|
-
collapsable={false}
|
|
140
|
-
role="radiogroup"
|
|
141
|
-
accessibilityLabel={field.accessibilityLabel}
|
|
142
|
-
aria-describedby={field.describedBy}
|
|
143
|
-
accessibilityHint={field.accessibilityHint}
|
|
144
|
-
aria-invalid={field.invalid || undefined}
|
|
145
|
-
aria-disabled={off || undefined}
|
|
146
|
-
testID={id('windows')}
|
|
147
|
-
style={{ gap: DELIVERY_OPTION_GAP }}
|
|
148
|
-
>
|
|
149
|
-
{asapRow}
|
|
150
|
-
{options.map(({ window: w, detail, name }) => (
|
|
151
|
-
<DeliverySlotOption
|
|
152
|
-
key={w.id}
|
|
153
|
-
label={w.label}
|
|
154
|
-
detail={detail}
|
|
155
|
-
price={w.price}
|
|
156
|
-
selected={w.id === value}
|
|
157
|
-
disabled={off || w.disabled === true || w.soldOut === true}
|
|
158
|
-
onPress={onValueChange ? () => onValueChange(w.id) : undefined}
|
|
159
|
-
accessibilityLabel={name}
|
|
160
|
-
testID={w.testID ?? id(w.id)}
|
|
161
|
-
/>
|
|
162
|
-
))}
|
|
163
|
-
</View>
|
|
164
|
-
);
|
|
165
|
-
|
|
166
|
-
return (
|
|
167
|
-
<View style={{ gap: DELIVERY_SECTION_GAP }}>
|
|
168
|
-
<DeliverySlotDays
|
|
169
|
-
days={days}
|
|
170
|
-
value={day}
|
|
171
|
-
onChange={onDayChange}
|
|
172
|
-
accessibilityLabel={dayLabel}
|
|
173
|
-
disabled={off}
|
|
174
|
-
fadeColor={fadeColor}
|
|
175
|
-
testID={id('days')}
|
|
176
|
-
/>
|
|
177
|
-
{body}
|
|
178
|
-
</View>
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* When: a day, then a window of that day — or the next courier.
|
|
184
|
-
*
|
|
185
|
-
* field standalone, the whole picker IS a `Field` (`multiple`), so one
|
|
186
|
-
* label names the choice, one `error` puts it in its invalid state,
|
|
187
|
-
* and one `disabled` reaches the strip and every option. Dropped
|
|
188
|
-
* inside somebody else's `Field` it renders no second one and reads
|
|
189
|
-
* theirs instead.
|
|
190
|
-
* days `DeliverySlotDays`, a `radiogroup` of day tiles
|
|
191
|
-
* options 16 under the strip; a `radiogroup` of `DeliverySlotOption`s 8
|
|
192
|
-
* apart, the ASAP option at the head of it
|
|
193
|
-
* loading placeholder rows announced as busy — the windows are RELOADED when
|
|
194
|
-
* the day changes, and an empty list during that reload reads as
|
|
195
|
-
* "nothing left today"
|
|
196
|
-
* empty `EmptyState` at the panel rung
|
|
197
|
-
*
|
|
198
|
-
* ## It is a selection, so it is a radio group
|
|
199
|
-
*
|
|
200
|
-
* Not a set of pressables that happen to look selected. The difference is what
|
|
201
|
-
* a screen reader says: a `radiogroup` announces the name of the choice and
|
|
202
|
-
* "3 of 7", and each row announces whether it is the chosen one. Pressables
|
|
203
|
-
* announce seven unrelated buttons, one of which is drawn differently.
|
|
204
|
-
*
|
|
205
|
-
* ## It computes nothing
|
|
206
|
-
*
|
|
207
|
-
* Every window, every price and every reading is a string the app formatted.
|
|
208
|
-
* The only ordering this family does is the order it was handed.
|
|
209
|
-
*/
|
|
210
|
-
function DeliverySlotPickerComponent({
|
|
211
|
-
label,
|
|
212
|
-
description,
|
|
213
|
-
error,
|
|
214
|
-
required,
|
|
215
|
-
disabled,
|
|
216
|
-
dayLabel: dayLabelProp,
|
|
217
|
-
emptyTitle: emptyTitleProp,
|
|
218
|
-
emptyDescription: emptyDescriptionProp,
|
|
219
|
-
soldOutLabel: soldOutLabelProp,
|
|
220
|
-
loadingRows = 3,
|
|
221
|
-
style,
|
|
222
|
-
testID,
|
|
223
|
-
...rest
|
|
224
|
-
}: DeliverySlotPickerProps) {
|
|
225
|
-
const { messages } = useMessages(DELIVERY_SLOT_MESSAGES);
|
|
226
|
-
const dayLabel = dayLabelProp ?? messages.day;
|
|
227
|
-
const emptyTitle = emptyTitleProp ?? messages.emptyTitle;
|
|
228
|
-
const emptyDescription = emptyDescriptionProp ?? messages.emptyDescription;
|
|
229
|
-
const soldOutLabel = soldOutLabelProp ?? messages.soldOut;
|
|
230
|
-
// Is there already a `Field` around us? A picker dropped into somebody's form
|
|
231
|
-
// must not make a SECOND one: two fields means two labels above one control
|
|
232
|
-
// and an error the outer field describes and the inner one does not.
|
|
233
|
-
//
|
|
234
|
-
// Reading the context here is safe — `Field` is rendered BELOW this node, so
|
|
235
|
-
// what this sees is the enclosing one — and the branch is a render decision,
|
|
236
|
-
// not a conditional hook.
|
|
237
|
-
const enclosing = useFieldControl();
|
|
238
|
-
|
|
239
|
-
const groups = (
|
|
240
|
-
<DeliverySlotGroups
|
|
241
|
-
{...rest}
|
|
242
|
-
label={label}
|
|
243
|
-
disabled={disabled}
|
|
244
|
-
dayLabel={dayLabel}
|
|
245
|
-
emptyTitle={emptyTitle}
|
|
246
|
-
emptyDescription={emptyDescription}
|
|
247
|
-
soldOutLabel={soldOutLabel}
|
|
248
|
-
loadingRows={loadingRows}
|
|
249
|
-
testID={testID}
|
|
250
|
-
/>
|
|
251
|
-
);
|
|
252
|
-
|
|
253
|
-
// Inside somebody's field, the field owns the label, the hint and the error —
|
|
254
|
-
// and `label` stays undefined by default so the field's own label is what
|
|
255
|
-
// names the group. Standalone, the picker IS the field and supplies its own.
|
|
256
|
-
if (enclosing) return <View style={style}>{groups}</View>;
|
|
257
|
-
|
|
258
|
-
return (
|
|
259
|
-
<Field
|
|
260
|
-
label={label ?? messages.field}
|
|
261
|
-
description={description}
|
|
262
|
-
error={error}
|
|
263
|
-
required={required}
|
|
264
|
-
disabled={disabled}
|
|
265
|
-
multiple
|
|
266
|
-
style={style}
|
|
267
|
-
testID={testID}
|
|
268
|
-
>
|
|
269
|
-
{groups}
|
|
270
|
-
</Field>
|
|
271
|
-
);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export const DeliverySlotPicker = memo(DeliverySlotPickerComponent);
|
|
275
|
-
DeliverySlotPicker.displayName = 'DeliverySlotPicker';
|