@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,265 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DeliverySlotPicker = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _index = require("../empty-state/index.js");
|
|
10
|
-
var _index2 = require("../field/index.js");
|
|
11
|
-
var _context = require("../field/context.js");
|
|
12
|
-
var _membership = require("../field/membership.js");
|
|
13
|
-
var _RiFlashlightLine = require("../icons/remix/RiFlashlightLine.js");
|
|
14
|
-
var _RiTimeLine = require("../icons/remix/RiTimeLine.js");
|
|
15
|
-
var _messages = require("../locale/messages.js");
|
|
16
|
-
var Skeleton = _interopRequireWildcard(require("../skeleton/index.js"));
|
|
17
|
-
var _DeliverySlotDays = require("./DeliverySlotDays.js");
|
|
18
|
-
var _DeliverySlotOption = require("./DeliverySlotOption.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
|
-
* INTERNAL — the two groups, inside the field, so they can READ it.
|
|
27
|
-
*
|
|
28
|
-
* It is a separate component and not the body of `DeliverySlotPicker` for one
|
|
29
|
-
* mechanical reason: `useFieldMembership()` reads the context a `Field`
|
|
30
|
-
* publishes, and a component cannot read a context it renders itself. Splitting
|
|
31
|
-
* here is what makes the picker a real member of the field contract — the
|
|
32
|
-
* field's label names the group, and the field's `disabled` reaches every day
|
|
33
|
-
* and every window and cannot be opted out of.
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
function DeliverySlotGroups({
|
|
37
|
-
label,
|
|
38
|
-
days,
|
|
39
|
-
day,
|
|
40
|
-
onDayChange,
|
|
41
|
-
dayLabel,
|
|
42
|
-
windows,
|
|
43
|
-
value,
|
|
44
|
-
onValueChange,
|
|
45
|
-
asap,
|
|
46
|
-
disabled,
|
|
47
|
-
loading,
|
|
48
|
-
loadingRows,
|
|
49
|
-
empty,
|
|
50
|
-
emptyTitle,
|
|
51
|
-
emptyDescription,
|
|
52
|
-
tierLabels,
|
|
53
|
-
soldOutLabel,
|
|
54
|
-
fadeColor,
|
|
55
|
-
testID
|
|
56
|
-
}) {
|
|
57
|
-
// The NAME defers to the field (`??`) and `disabled` combines with it (`||`)
|
|
58
|
-
// — the two directions `field/membership.ts` exists to stop every family
|
|
59
|
-
// getting backwards.
|
|
60
|
-
const field = (0, _membership.useFieldMembership)({
|
|
61
|
-
accessibilityLabel: label,
|
|
62
|
-
disabled
|
|
63
|
-
});
|
|
64
|
-
const {
|
|
65
|
-
messages
|
|
66
|
-
} = (0, _messages.useMessages)(_messages2.DELIVERY_SLOT_MESSAGES);
|
|
67
|
-
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
68
|
-
const off = field.disabled;
|
|
69
|
-
const options = (0, _react.useMemo)(() => windows.map(w => ({
|
|
70
|
-
window: w,
|
|
71
|
-
detail: (0, _shared.windowDetail)(w, tierLabels, soldOutLabel, messages),
|
|
72
|
-
name: (0, _shared.windowName)(w, tierLabels, soldOutLabel, messages)
|
|
73
|
-
})), [windows, tierLabels, soldOutLabel, messages]);
|
|
74
|
-
const asapRow = asap ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeliverySlotOption.DeliverySlotOption, {
|
|
75
|
-
label: asap.label ?? messages.asap,
|
|
76
|
-
detail: asap.soldOut ? soldOutLabel : (0, _shared.joinDeliveryParts)([asap.eta, asap.note]),
|
|
77
|
-
price: asap.price,
|
|
78
|
-
icon: asap.icon ?? _RiFlashlightLine.RiFlashlightLine,
|
|
79
|
-
selected: asap.id === value,
|
|
80
|
-
disabled: off || asap.disabled === true || asap.soldOut === true,
|
|
81
|
-
onPress: onValueChange ? () => onValueChange(asap.id) : undefined,
|
|
82
|
-
accessibilityLabel: asap.accessibilityLabel,
|
|
83
|
-
testID: asap.testID ?? id('asap')
|
|
84
|
-
}, "asap") : null;
|
|
85
|
-
const body = loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
86
|
-
"aria-busy": true,
|
|
87
|
-
accessibilityLabel: field.accessibilityLabel,
|
|
88
|
-
testID: id('loading'),
|
|
89
|
-
style: {
|
|
90
|
-
gap: _constants.DELIVERY_OPTION_GAP
|
|
91
|
-
},
|
|
92
|
-
children: Array.from({
|
|
93
|
-
length: loadingRows
|
|
94
|
-
}, (_unused, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
95
|
-
testID: id(`placeholder-${index}`),
|
|
96
|
-
style: {
|
|
97
|
-
flexDirection: 'row',
|
|
98
|
-
alignItems: 'center',
|
|
99
|
-
gap: 12,
|
|
100
|
-
paddingHorizontal: 16,
|
|
101
|
-
paddingVertical: 10,
|
|
102
|
-
borderRadius: _constants.DELIVERY_OPTION_RADIUS
|
|
103
|
-
},
|
|
104
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Skeleton.Circle, {
|
|
105
|
-
size: _constants.DELIVERY_DOT
|
|
106
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
107
|
-
style: {
|
|
108
|
-
flex: 1,
|
|
109
|
-
minWidth: 0,
|
|
110
|
-
gap: 4
|
|
111
|
-
},
|
|
112
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Skeleton.Text, {
|
|
113
|
-
style: {
|
|
114
|
-
width: '40%',
|
|
115
|
-
lineHeight: 16
|
|
116
|
-
}
|
|
117
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Skeleton.Text, {
|
|
118
|
-
style: {
|
|
119
|
-
width: '60%',
|
|
120
|
-
lineHeight: 14
|
|
121
|
-
}
|
|
122
|
-
})]
|
|
123
|
-
})]
|
|
124
|
-
}, index))
|
|
125
|
-
}) : options.length === 0 && asapRow == null ? empty ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.EmptyState, {
|
|
126
|
-
variant: "compact",
|
|
127
|
-
icon: _RiTimeLine.RiTimeLine,
|
|
128
|
-
title: emptyTitle,
|
|
129
|
-
description: emptyDescription,
|
|
130
|
-
testID: id('empty')
|
|
131
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
132
|
-
collapsable: false,
|
|
133
|
-
role: "radiogroup",
|
|
134
|
-
accessibilityLabel: field.accessibilityLabel,
|
|
135
|
-
"aria-describedby": field.describedBy,
|
|
136
|
-
accessibilityHint: field.accessibilityHint,
|
|
137
|
-
"aria-invalid": field.invalid || undefined,
|
|
138
|
-
"aria-disabled": off || undefined,
|
|
139
|
-
testID: id('windows'),
|
|
140
|
-
style: {
|
|
141
|
-
gap: _constants.DELIVERY_OPTION_GAP
|
|
142
|
-
},
|
|
143
|
-
children: [asapRow, options.map(({
|
|
144
|
-
window: w,
|
|
145
|
-
detail,
|
|
146
|
-
name
|
|
147
|
-
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeliverySlotOption.DeliverySlotOption, {
|
|
148
|
-
label: w.label,
|
|
149
|
-
detail: detail,
|
|
150
|
-
price: w.price,
|
|
151
|
-
selected: w.id === value,
|
|
152
|
-
disabled: off || w.disabled === true || w.soldOut === true,
|
|
153
|
-
onPress: onValueChange ? () => onValueChange(w.id) : undefined,
|
|
154
|
-
accessibilityLabel: name,
|
|
155
|
-
testID: w.testID ?? id(w.id)
|
|
156
|
-
}, w.id))]
|
|
157
|
-
});
|
|
158
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
159
|
-
style: {
|
|
160
|
-
gap: _constants.DELIVERY_SECTION_GAP
|
|
161
|
-
},
|
|
162
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_DeliverySlotDays.DeliverySlotDays, {
|
|
163
|
-
days: days,
|
|
164
|
-
value: day,
|
|
165
|
-
onChange: onDayChange,
|
|
166
|
-
accessibilityLabel: dayLabel,
|
|
167
|
-
disabled: off,
|
|
168
|
-
fadeColor: fadeColor,
|
|
169
|
-
testID: id('days')
|
|
170
|
-
}), body]
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* When: a day, then a window of that day — or the next courier.
|
|
176
|
-
*
|
|
177
|
-
* field standalone, the whole picker IS a `Field` (`multiple`), so one
|
|
178
|
-
* label names the choice, one `error` puts it in its invalid state,
|
|
179
|
-
* and one `disabled` reaches the strip and every option. Dropped
|
|
180
|
-
* inside somebody else's `Field` it renders no second one and reads
|
|
181
|
-
* theirs instead.
|
|
182
|
-
* days `DeliverySlotDays`, a `radiogroup` of day tiles
|
|
183
|
-
* options 16 under the strip; a `radiogroup` of `DeliverySlotOption`s 8
|
|
184
|
-
* apart, the ASAP option at the head of it
|
|
185
|
-
* loading placeholder rows announced as busy — the windows are RELOADED when
|
|
186
|
-
* the day changes, and an empty list during that reload reads as
|
|
187
|
-
* "nothing left today"
|
|
188
|
-
* empty `EmptyState` at the panel rung
|
|
189
|
-
*
|
|
190
|
-
* ## It is a selection, so it is a radio group
|
|
191
|
-
*
|
|
192
|
-
* Not a set of pressables that happen to look selected. The difference is what
|
|
193
|
-
* a screen reader says: a `radiogroup` announces the name of the choice and
|
|
194
|
-
* "3 of 7", and each row announces whether it is the chosen one. Pressables
|
|
195
|
-
* announce seven unrelated buttons, one of which is drawn differently.
|
|
196
|
-
*
|
|
197
|
-
* ## It computes nothing
|
|
198
|
-
*
|
|
199
|
-
* Every window, every price and every reading is a string the app formatted.
|
|
200
|
-
* The only ordering this family does is the order it was handed.
|
|
201
|
-
*/
|
|
202
|
-
function DeliverySlotPickerComponent({
|
|
203
|
-
label,
|
|
204
|
-
description,
|
|
205
|
-
error,
|
|
206
|
-
required,
|
|
207
|
-
disabled,
|
|
208
|
-
dayLabel: dayLabelProp,
|
|
209
|
-
emptyTitle: emptyTitleProp,
|
|
210
|
-
emptyDescription: emptyDescriptionProp,
|
|
211
|
-
soldOutLabel: soldOutLabelProp,
|
|
212
|
-
loadingRows = 3,
|
|
213
|
-
style,
|
|
214
|
-
testID,
|
|
215
|
-
...rest
|
|
216
|
-
}) {
|
|
217
|
-
const {
|
|
218
|
-
messages
|
|
219
|
-
} = (0, _messages.useMessages)(_messages2.DELIVERY_SLOT_MESSAGES);
|
|
220
|
-
const dayLabel = dayLabelProp ?? messages.day;
|
|
221
|
-
const emptyTitle = emptyTitleProp ?? messages.emptyTitle;
|
|
222
|
-
const emptyDescription = emptyDescriptionProp ?? messages.emptyDescription;
|
|
223
|
-
const soldOutLabel = soldOutLabelProp ?? messages.soldOut;
|
|
224
|
-
// Is there already a `Field` around us? A picker dropped into somebody's form
|
|
225
|
-
// must not make a SECOND one: two fields means two labels above one control
|
|
226
|
-
// and an error the outer field describes and the inner one does not.
|
|
227
|
-
//
|
|
228
|
-
// Reading the context here is safe — `Field` is rendered BELOW this node, so
|
|
229
|
-
// what this sees is the enclosing one — and the branch is a render decision,
|
|
230
|
-
// not a conditional hook.
|
|
231
|
-
const enclosing = (0, _context.useFieldControl)();
|
|
232
|
-
const groups = /*#__PURE__*/(0, _jsxRuntime.jsx)(DeliverySlotGroups, {
|
|
233
|
-
...rest,
|
|
234
|
-
label: label,
|
|
235
|
-
disabled: disabled,
|
|
236
|
-
dayLabel: dayLabel,
|
|
237
|
-
emptyTitle: emptyTitle,
|
|
238
|
-
emptyDescription: emptyDescription,
|
|
239
|
-
soldOutLabel: soldOutLabel,
|
|
240
|
-
loadingRows: loadingRows,
|
|
241
|
-
testID: testID
|
|
242
|
-
});
|
|
243
|
-
|
|
244
|
-
// Inside somebody's field, the field owns the label, the hint and the error —
|
|
245
|
-
// and `label` stays undefined by default so the field's own label is what
|
|
246
|
-
// names the group. Standalone, the picker IS the field and supplies its own.
|
|
247
|
-
if (enclosing) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
248
|
-
style: style,
|
|
249
|
-
children: groups
|
|
250
|
-
});
|
|
251
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Field, {
|
|
252
|
-
label: label ?? messages.field,
|
|
253
|
-
description: description,
|
|
254
|
-
error: error,
|
|
255
|
-
required: required,
|
|
256
|
-
disabled: disabled,
|
|
257
|
-
multiple: true,
|
|
258
|
-
style: style,
|
|
259
|
-
testID: testID,
|
|
260
|
-
children: groups
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
const DeliverySlotPicker = exports.DeliverySlotPicker = /*#__PURE__*/(0, _react.memo)(DeliverySlotPickerComponent);
|
|
264
|
-
DeliverySlotPicker.displayName = 'DeliverySlotPicker';
|
|
265
|
-
//# sourceMappingURL=DeliverySlotPicker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_context","_membership","_RiFlashlightLine","_RiTimeLine","_messages","Skeleton","_DeliverySlotDays","_DeliverySlotOption","_constants","_messages2","_shared","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","DeliverySlotGroups","label","days","day","onDayChange","dayLabel","windows","value","onValueChange","asap","disabled","loading","loadingRows","empty","emptyTitle","emptyDescription","tierLabels","soldOutLabel","fadeColor","testID","field","useFieldMembership","accessibilityLabel","messages","useMessages","DELIVERY_SLOT_MESSAGES","id","part","undefined","off","options","useMemo","map","w","window","detail","windowDetail","name","windowName","asapRow","jsx","DeliverySlotOption","soldOut","joinDeliveryParts","eta","note","price","icon","RiFlashlightLine","selected","onPress","body","View","style","gap","DELIVERY_OPTION_GAP","children","Array","from","length","_unused","index","jsxs","flexDirection","alignItems","paddingHorizontal","paddingVertical","borderRadius","DELIVERY_OPTION_RADIUS","Circle","size","DELIVERY_DOT","flex","minWidth","Text","width","lineHeight","EmptyState","variant","RiTimeLine","title","description","collapsable","role","describedBy","accessibilityHint","invalid","DELIVERY_SECTION_GAP","DeliverySlotDays","onChange","DeliverySlotPickerComponent","error","required","dayLabelProp","emptyTitleProp","emptyDescriptionProp","soldOutLabelProp","rest","enclosing","useFieldControl","groups","Field","multiple","DeliverySlotPicker","exports","memo","displayName"],"sourceRoot":"../../../src","sources":["delivery-slot/DeliverySlotPicker.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAV,uBAAA,CAAAC,OAAA;AACA,IAAAU,iBAAA,GAAAV,OAAA;AACA,IAAAW,mBAAA,GAAAX,OAAA;AACA,IAAAY,UAAA,GAAAZ,OAAA;AAMA,IAAAa,UAAA,GAAAb,OAAA;AACA,IAAAc,OAAA,GAAAd,OAAA;AAAuE,IAAAe,WAAA,GAAAf,OAAA;AAAA,IAAAgB,KAAA;AAAA,SAAAjB,wBAAAkB,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,M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AEd4C;EAAM,CACF,CAAC;AAEZ;AAEO,MAAMG,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,gBAAG,IAAAE,WAAI,EAACf,2BAA2B,CAAC;AACnEa,kBAAkB,CAACG,WAAW,GAAG,oBAAoB","ignoreList":[]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DELIVERY_TIER_LABELS = exports.DELIVERY_SOLD_OUT_LABEL = exports.DELIVERY_SECTION_GAP = exports.DELIVERY_OPTION_RADIUS = exports.DELIVERY_OPTION_GAP = exports.DELIVERY_GLYPH = exports.DELIVERY_FIELD_LABEL = exports.DELIVERY_EMPTY_TITLE = exports.DELIVERY_EMPTY_DESCRIPTION = exports.DELIVERY_DOT = exports.DELIVERY_DETAIL_SEPARATOR = exports.DELIVERY_DAY_LABEL = exports.DELIVERY_ASAP_LABEL = void 0;
|
|
7
|
-
var _messages = require("./messages.js");
|
|
8
|
-
// The English words. The picker speaks `DELIVERY_SLOT_MESSAGES` in the
|
|
9
|
-
// resolved locale; these stay exported for apps that read them.
|
|
10
|
-
const EN = _messages.DELIVERY_SLOT_MESSAGES.en;
|
|
11
|
-
|
|
12
|
-
/** The words a tier is drawn and announced with. */
|
|
13
|
-
const DELIVERY_TIER_LABELS = exports.DELIVERY_TIER_LABELS = EN.tiers;
|
|
14
|
-
|
|
15
|
-
/** What a taken window says. */
|
|
16
|
-
const DELIVERY_SOLD_OUT_LABEL = exports.DELIVERY_SOLD_OUT_LABEL = EN.soldOut;
|
|
17
|
-
|
|
18
|
-
/** The option that belongs to no day. */
|
|
19
|
-
const DELIVERY_ASAP_LABEL = exports.DELIVERY_ASAP_LABEL = EN.asap;
|
|
20
|
-
|
|
21
|
-
/** The field's own name, which is also the radio group's. */
|
|
22
|
-
const DELIVERY_FIELD_LABEL = exports.DELIVERY_FIELD_LABEL = EN.field;
|
|
23
|
-
const DELIVERY_DAY_LABEL = exports.DELIVERY_DAY_LABEL = EN.day;
|
|
24
|
-
|
|
25
|
-
/** What there is to say when a day has nothing left. */
|
|
26
|
-
const DELIVERY_EMPTY_TITLE = exports.DELIVERY_EMPTY_TITLE = EN.emptyTitle;
|
|
27
|
-
const DELIVERY_EMPTY_DESCRIPTION = exports.DELIVERY_EMPTY_DESCRIPTION = EN.emptyDescription;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* The radio dot at the head of an option row. 20 is `Radio`'s `lg` rung: the
|
|
31
|
-
* row it marks is two lines tall, and the 16 `md` dot read as a bullet beside
|
|
32
|
-
* it rather than as the control.
|
|
33
|
-
*/
|
|
34
|
-
const DELIVERY_DOT = exports.DELIVERY_DOT = 20;
|
|
35
|
-
/** The glyph the ASAP row draws instead of a dot, when it is not chosen. */
|
|
36
|
-
const DELIVERY_GLYPH = exports.DELIVERY_GLYPH = 20;
|
|
37
|
-
|
|
38
|
-
/** Between the day strip and the options, and between the options. */
|
|
39
|
-
const DELIVERY_SECTION_GAP = exports.DELIVERY_SECTION_GAP = 16;
|
|
40
|
-
const DELIVERY_OPTION_GAP = exports.DELIVERY_OPTION_GAP = 8;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* The option row's corner and border. Radius 12 is the field rung every picker
|
|
44
|
-
* in the library draws its choosable boxes at; the row is bordered rather than
|
|
45
|
-
* washed because an unbordered list of windows and a bordered day strip above
|
|
46
|
-
* it read as two different controls.
|
|
47
|
-
*/
|
|
48
|
-
const DELIVERY_OPTION_RADIUS = exports.DELIVERY_OPTION_RADIUS = 12;
|
|
49
|
-
|
|
50
|
-
/** The separator between the parts of an option's detail line. */
|
|
51
|
-
const DELIVERY_DETAIL_SEPARATOR = exports.DELIVERY_DETAIL_SEPARATOR = ' · ';
|
|
52
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_messages","require","EN","DELIVERY_SLOT_MESSAGES","en","DELIVERY_TIER_LABELS","exports","tiers","DELIVERY_SOLD_OUT_LABEL","soldOut","DELIVERY_ASAP_LABEL","asap","DELIVERY_FIELD_LABEL","field","DELIVERY_DAY_LABEL","day","DELIVERY_EMPTY_TITLE","emptyTitle","DELIVERY_EMPTY_DESCRIPTION","emptyDescription","DELIVERY_DOT","DELIVERY_GLYPH","DELIVERY_SECTION_GAP","DELIVERY_OPTION_GAP","DELIVERY_OPTION_RADIUS","DELIVERY_DETAIL_SEPARATOR"],"sourceRoot":"../../../src","sources":["delivery-slot/constants.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAGA;AACA;AACA,MAAMC,EAAE,GAAGC,gCAAsB,CAACC,EAAE;;AAEpC;AACO,MAAMC,oBAAkD,GAAAC,OAAA,CAAAD,oBAAA,GAAGH,EAAE,CAACK,KAAK;;AAE1E;AACO,MAAMC,uBAAuB,GAAAF,OAAA,CAAAE,uBAAA,GAAGN,EAAE,CAACO,OAAO;;AAEjD;AACO,MAAMC,mBAAmB,GAAAJ,OAAA,CAAAI,mBAAA,GAAGR,EAAE,CAACS,IAAI;;AAE1C;AACO,MAAMC,oBAAoB,GAAAN,OAAA,CAAAM,oBAAA,GAAGV,EAAE,CAACW,KAAK;AACrC,MAAMC,kBAAkB,GAAAR,OAAA,CAAAQ,kBAAA,GAAGZ,EAAE,CAACa,GAAG;;AAExC;AACO,MAAMC,oBAAoB,GAAAV,OAAA,CAAAU,oBAAA,GAAGd,EAAE,CAACe,UAAU;AAC1C,MAAMC,0BAA0B,GAAAZ,OAAA,CAAAY,0BAAA,GAAGhB,EAAE,CAACiB,gBAAgB;;AAE7D;AACA;AACA;AACA;AACA;AACO,MAAMC,YAAY,GAAAd,OAAA,CAAAc,YAAA,GAAG,EAAE;AAC9B;AACO,MAAMC,cAAc,GAAAf,OAAA,CAAAe,cAAA,GAAG,EAAE;;AAEhC;AACO,MAAMC,oBAAoB,GAAAhB,OAAA,CAAAgB,oBAAA,GAAG,EAAE;AAC/B,MAAMC,mBAAmB,GAAAjB,OAAA,CAAAiB,mBAAA,GAAG,CAAC;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,sBAAsB,GAAAlB,OAAA,CAAAkB,sBAAA,GAAG,EAAE;;AAExC;AACO,MAAMC,yBAAyB,GAAAnB,OAAA,CAAAmB,yBAAA,GAAG,KAAK","ignoreList":[]}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "DELIVERY_ASAP_LABEL", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _constants.DELIVERY_ASAP_LABEL;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "DELIVERY_DAY_LABEL", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _constants.DELIVERY_DAY_LABEL;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "DELIVERY_EMPTY_DESCRIPTION", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _constants.DELIVERY_EMPTY_DESCRIPTION;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "DELIVERY_EMPTY_TITLE", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _constants.DELIVERY_EMPTY_TITLE;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "DELIVERY_FIELD_LABEL", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _constants.DELIVERY_FIELD_LABEL;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "DELIVERY_OPTION_RADIUS", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _constants.DELIVERY_OPTION_RADIUS;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "DELIVERY_SOLD_OUT_LABEL", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return _constants.DELIVERY_SOLD_OUT_LABEL;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "DELIVERY_TIER_LABELS", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return _constants.DELIVERY_TIER_LABELS;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "DeliverySlotDays", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _DeliverySlotDays.DeliverySlotDays;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "DeliverySlotOption", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () {
|
|
63
|
-
return _DeliverySlotOption.DeliverySlotOption;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "DeliverySlotPicker", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () {
|
|
69
|
-
return _DeliverySlotPicker.DeliverySlotPicker;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "joinDeliveryParts", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function () {
|
|
75
|
-
return _shared.joinDeliveryParts;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "resolveDeliverySlotPaint", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function () {
|
|
81
|
-
return _shared.resolveDeliverySlotPaint;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "windowDetail", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function () {
|
|
87
|
-
return _shared.windowDetail;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
Object.defineProperty(exports, "windowName", {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function () {
|
|
93
|
-
return _shared.windowName;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
var _DeliverySlotDays = require("./DeliverySlotDays.js");
|
|
97
|
-
var _DeliverySlotOption = require("./DeliverySlotOption.js");
|
|
98
|
-
var _DeliverySlotPicker = require("./DeliverySlotPicker.js");
|
|
99
|
-
var _constants = require("./constants.js");
|
|
100
|
-
var _shared = require("./shared.js");
|
|
101
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_DeliverySlotDays","require","_DeliverySlotOption","_DeliverySlotPicker","_constants","_shared"],"sourceRoot":"../../../src","sources":["delivery-slot/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAUA,IAAAI,OAAA,GAAAJ,OAAA","ignoreList":[]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DELIVERY_SLOT_MESSAGES = void 0;
|
|
7
|
-
var _messages = require("../locale/messages.js");
|
|
8
|
-
/**
|
|
9
|
-
* Every fixed string the delivery-slot family draws or announces, in each
|
|
10
|
-
* Bloom language. A caller's `label`, `dayLabel`, `emptyTitle`,
|
|
11
|
-
* `emptyDescription`, `tierLabels`, `soldOutLabel` and the ASAP option's
|
|
12
|
-
* `label` still win.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
const DELIVERY_SLOT_MESSAGES = exports.DELIVERY_SLOT_MESSAGES = (0, _messages.defineMessages)('DELIVERY_SLOT_MESSAGES', {
|
|
16
|
-
tiers: {
|
|
17
|
-
standard: 'Standard',
|
|
18
|
-
express: 'Express'
|
|
19
|
-
},
|
|
20
|
-
soldOut: 'Sold out',
|
|
21
|
-
asap: 'As soon as possible',
|
|
22
|
-
field: 'Delivery time',
|
|
23
|
-
day: 'Day',
|
|
24
|
-
emptyTitle: 'No windows left',
|
|
25
|
-
emptyDescription: 'Pick another day, or take the next courier.'
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_messages","require","DELIVERY_SLOT_MESSAGES","exports","defineMessages","tiers","standard","express","soldOut","asap","field","day","emptyTitle","emptyDescription"],"sourceRoot":"../../../src","sources":["delivery-slot/messages.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA;;AAeO,MAAMC,sBAA4D,GAAAC,OAAA,CAAAD,sBAAA,GACvE,IAAAE,wBAAc,EAAuB,wBAAwB,EAAE;EAC7DC,KAAK,EAAE;IAAEC,QAAQ,EAAE,UAAU;IAAEC,OAAO,EAAE;EAAU,CAAC;EACnDC,OAAO,EAAE,UAAU;EACnBC,IAAI,EAAE,qBAAqB;EAC3BC,KAAK,EAAE,eAAe;EACtBC,GAAG,EAAE,KAAK;EACVC,UAAU,EAAE,iBAAiB;EAC7BC,gBAAgB,EAAE;AACpB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.joinDeliveryParts = joinDeliveryParts;
|
|
7
|
-
exports.resolveDeliverySlotPaint = resolveDeliverySlotPaint;
|
|
8
|
-
exports.windowDetail = windowDetail;
|
|
9
|
-
exports.windowName = windowName;
|
|
10
|
-
var _surfaceLevels = require("../styles/surface-levels.js");
|
|
11
|
-
var _constants = require("./constants.js");
|
|
12
|
-
var _messages = require("./messages.js");
|
|
13
|
-
/**
|
|
14
|
-
* What the picker paints, and the two joins that decide what a screen reader
|
|
15
|
-
* says about a window.
|
|
16
|
-
*
|
|
17
|
-
* The paint is read RELATIVE to the surface the picker was dropped on
|
|
18
|
-
* (`styles/surface-levels.ts`): a delivery picker is a step of a checkout page,
|
|
19
|
-
* a sheet over a basket and a panel beside a map, and an option border picked
|
|
20
|
-
* by eye disappears on one of the three.
|
|
21
|
-
*
|
|
22
|
-
* Pure, so `DeliverySlot.test.tsx` can walk presets and modes without
|
|
23
|
-
* rendering.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
function resolveDeliverySlotPaint(theme, surface) {
|
|
27
|
-
return {
|
|
28
|
-
...(0, _surfaceLevels.surfaceTextOn)(theme, surface),
|
|
29
|
-
border: (0, _surfaceLevels.hairlineOn)(theme, surface),
|
|
30
|
-
selected: (0, _surfaceLevels.surfaceFillOn)(theme, surface)
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/** Joins the non-empty parts of a line with the family's separator. */
|
|
35
|
-
function joinDeliveryParts(parts, separator = _constants.DELIVERY_DETAIL_SEPARATOR) {
|
|
36
|
-
const joined = parts.filter(part => typeof part === 'string' && part !== '').join(separator);
|
|
37
|
-
return joined === '' ? undefined : joined;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* The line under a window: what class of service it is, and what is left of it.
|
|
42
|
-
*
|
|
43
|
-
* A SOLD-OUT window says only that. The tier and the capacity of a window
|
|
44
|
-
* nobody can take are facts about a thing that is not on offer, and reading
|
|
45
|
-
* them out after "Sold out" is how a reader ends up tapping it.
|
|
46
|
-
*/
|
|
47
|
-
function windowDetail(window, tierLabels = {}, soldOutLabel, messages = _messages.DELIVERY_SLOT_MESSAGES.en) {
|
|
48
|
-
if (window.soldOut) return soldOutLabel ?? messages.soldOut;
|
|
49
|
-
const words = {
|
|
50
|
-
...messages.tiers,
|
|
51
|
-
...tierLabels
|
|
52
|
-
};
|
|
53
|
-
return joinDeliveryParts([words[window.tier ?? 'standard'], window.capacity, window.note]);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/** The window's announced name: the window, then everything true about it. */
|
|
57
|
-
function windowName(window, tierLabels, soldOutLabel, messages = _messages.DELIVERY_SLOT_MESSAGES.en) {
|
|
58
|
-
return window.accessibilityLabel ?? joinDeliveryParts([window.label, windowDetail(window, tierLabels, soldOutLabel, messages), window.price]) ?? window.label;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_surfaceLevels","require","_constants","_messages","resolveDeliverySlotPaint","theme","surface","surfaceTextOn","border","hairlineOn","selected","surfaceFillOn","joinDeliveryParts","parts","separator","DELIVERY_DETAIL_SEPARATOR","joined","filter","part","join","undefined","windowDetail","window","tierLabels","soldOutLabel","messages","DELIVERY_SLOT_MESSAGES","en","soldOut","words","tiers","tier","capacity","note","windowName","accessibilityLabel","label","price"],"sourceRoot":"../../../src","sources":["delivery-slot/shared.ts"],"mappings":";;;;;;;;;AAYA,IAAAA,cAAA,GAAAC,OAAA;AAOA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AApBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAmBO,SAASG,wBAAwBA,CAACC,KAAY,EAAEC,OAAe,EAAqB;EACzF,OAAO;IACL,GAAG,IAAAC,4BAAa,EAACF,KAAK,EAAEC,OAAO,CAAC;IAChCE,MAAM,E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,KAAK;AAEhB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["delivery-slot/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.EarningsBreakdown = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _messages = require("../locale/messages.js");
|
|
10
|
-
var _index = require("../price-breakdown/index.js");
|
|
11
|
-
var _surfaceLevels = require("../styles/surface-levels.js");
|
|
12
|
-
var _useTheme = require("../theme/use-theme.js");
|
|
13
|
-
var _index2 = require("../typography/index.js");
|
|
14
|
-
var _messages2 = require("./messages.js");
|
|
15
|
-
var _shared = require("./shared.js");
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
var cache;
|
|
18
|
-
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; }
|
|
19
|
-
/**
|
|
20
|
-
* What the period's money came from, by kind.
|
|
21
|
-
*
|
|
22
|
-
* It is `price-breakdown`'s `PriceSummary` under a heading, and that is the
|
|
23
|
-
* whole component. A courier's earnings are an ITEMISATION — jobs, tips,
|
|
24
|
-
* bonuses, adjustments, each a label and an amount the app formatted — which is
|
|
25
|
-
* the same object as a fare's itemisation seen from the other side. Writing a
|
|
26
|
-
* second list of label-and-amount rows here would give Bloom two answers to one
|
|
27
|
-
* question, and only one of them would know about `estimated`, `pending`, the
|
|
28
|
-
* discount tone and the info popover.
|
|
29
|
-
*
|
|
30
|
-
* heading `body-semibold`, 8 over the list; omitted with `title={null}`
|
|
31
|
-
* lines `PriceSummary`, which owns the rows, the rule and the total
|
|
32
|
-
*
|
|
33
|
-
* **NO TOTAL BY DEFAULT.** Inside `EarningsSummary` the figure above already IS
|
|
34
|
-
* the total, and a second one under the list is the same number twice. Pass
|
|
35
|
-
* `total` when the breakdown stands on its own.
|
|
36
|
-
*/
|
|
37
|
-
function EarningsBreakdownComponent({
|
|
38
|
-
lines,
|
|
39
|
-
total,
|
|
40
|
-
title,
|
|
41
|
-
collapsible = false,
|
|
42
|
-
defaultExpanded = false,
|
|
43
|
-
labels: labelOverrides,
|
|
44
|
-
accessibilityLabel,
|
|
45
|
-
style,
|
|
46
|
-
testID
|
|
47
|
-
}) {
|
|
48
|
-
const {
|
|
49
|
-
messages
|
|
50
|
-
} = (0, _messages.useMessages)(_messages2.EARNINGS_MESSAGES);
|
|
51
|
-
const theme = (0, _useTheme.useTheme)();
|
|
52
|
-
const surface = (0, _surfaceLevels.useSurfaceFill)();
|
|
53
|
-
const paint = (0, _react.useMemo)(() => (0, _shared.resolveEarningsPaint)(theme, surface), [theme, surface]);
|
|
54
|
-
const labels = (0, _react.useMemo)(() => ({
|
|
55
|
-
...messages,
|
|
56
|
-
...labelOverrides
|
|
57
|
-
}), [messages, labelOverrides]);
|
|
58
|
-
const heading = title === undefined ? labels.breakdown : title;
|
|
59
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
60
|
-
style: [{
|
|
61
|
-
gap: 8
|
|
62
|
-
}, style],
|
|
63
|
-
testID: testID,
|
|
64
|
-
children: [heading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
65
|
-
variant: "body-semibold",
|
|
66
|
-
role: "heading",
|
|
67
|
-
"aria-level": 3,
|
|
68
|
-
style: {
|
|
69
|
-
color: paint.text
|
|
70
|
-
},
|
|
71
|
-
testID: testID ? `${testID}-title` : undefined,
|
|
72
|
-
children: heading
|
|
73
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.PriceSummary, {
|
|
74
|
-
lines: lines,
|
|
75
|
-
total: total,
|
|
76
|
-
collapsible: collapsible,
|
|
77
|
-
defaultExpanded: defaultExpanded,
|
|
78
|
-
accessibilityLabel: accessibilityLabel ?? heading ?? labels.breakdown,
|
|
79
|
-
testID: testID ? `${testID}-lines` : undefined
|
|
80
|
-
})]
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
const EarningsBreakdown = exports.EarningsBreakdown = /*#__PURE__*/(0, _react.memo)(EarningsBreakdownComponent);
|
|
84
|
-
EarningsBreakdown.displayName = 'EarningsBreakdown';
|
|
85
|
-
//# sourceMappingURL=EarningsBreakdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_messages","_index","_surfaceLevels","_useTheme","_index2","_messages2","_shared","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","EarningsBreakdownComponent","lines","total","title","collapsible","defaultExpanded","labels","labelOverrides","accessibilityLabel","style","testID","messages","useMessages","EARNINGS_MESSAGES","theme","useTheme","surface","useSurfaceFill","paint","useMemo","resolveEarningsPaint","heading","undefined","breakdown","jsxs","View","gap","children","jsx","Text","variant","role","color","text","PriceSummary","EarningsBreakdown","exports","memo","displayName"],"sourceRoot":"../../../src","sources":["earnings/EarningsBreakdown.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,I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