@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,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { memo } from 'react';
|
|
4
|
-
import { ChipRow } from "../chip/index.js";
|
|
5
|
-
import { SelectChip } from "../listing-actions/parts.js";
|
|
6
|
-
import { Text } from "../typography/index.js";
|
|
7
|
-
import { useMessages } from "../locale/messages.js";
|
|
8
|
-
import { DELIVERY_SLOT_MESSAGES } from "./messages.js";
|
|
9
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
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
|
-
}) {
|
|
42
|
-
const {
|
|
43
|
-
messages
|
|
44
|
-
} = useMessages(DELIVERY_SLOT_MESSAGES);
|
|
45
|
-
const accessibilityLabel = accessibilityLabelProp ?? messages.day;
|
|
46
|
-
return /*#__PURE__*/_jsx(ChipRow, {
|
|
47
|
-
role: "radiogroup",
|
|
48
|
-
accessibilityLabel: accessibilityLabel,
|
|
49
|
-
disabled: disabled,
|
|
50
|
-
fadeColor: fadeColor,
|
|
51
|
-
gap: 8,
|
|
52
|
-
style: style,
|
|
53
|
-
testID: testID,
|
|
54
|
-
children: days.map(d => {
|
|
55
|
-
const unavailable = disabled || d.disabled === true;
|
|
56
|
-
return /*#__PURE__*/_jsx(SelectChip, {
|
|
57
|
-
shape: "day",
|
|
58
|
-
selected: d.id === value,
|
|
59
|
-
disabled: unavailable,
|
|
60
|
-
onPress: onChange ? () => onChange(d.id) : undefined,
|
|
61
|
-
accessibilityLabel: d.accessibilityLabel ?? `${d.weekday} ${d.day}`,
|
|
62
|
-
testID: d.testID ?? (testID ? `${testID}-${d.id}` : undefined),
|
|
63
|
-
children: ink => /*#__PURE__*/_jsxs(_Fragment, {
|
|
64
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
65
|
-
variant: "caption-1-regular",
|
|
66
|
-
style: {
|
|
67
|
-
color: ink
|
|
68
|
-
},
|
|
69
|
-
children: d.weekday
|
|
70
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
71
|
-
variant: "headline-semibold",
|
|
72
|
-
style: {
|
|
73
|
-
color: ink,
|
|
74
|
-
fontVariant: ['tabular-nums'],
|
|
75
|
-
textDecorationLine: unavailable ? 'line-through' : 'none'
|
|
76
|
-
},
|
|
77
|
-
children: d.day
|
|
78
|
-
})]
|
|
79
|
-
})
|
|
80
|
-
}, d.id);
|
|
81
|
-
})
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
export const DeliverySlotDays = /*#__PURE__*/memo(DeliverySlotDaysComponent);
|
|
85
|
-
DeliverySlotDays.displayName = 'DeliverySlotDays';
|
|
86
|
-
//# sourceMappingURL=DeliverySlotDays.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","ChipRow","SelectChip","Text","useMessages","DELIVERY_SLOT_MESSAGES","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","DeliverySlotDaysComponent","days","value","onChange","accessibilityLabel","accessibilityLabelProp","disabled","fadeColor","style","testID","messages","day","role","gap","children","map","d","unavailable","shape","selected","id","onPress","undefined","weekday","ink","variant","color","fontVariant","textDecorationLine","DeliverySlotDays","displayName"],"sourceRoot":"../../../src","sources":["delivery-slot/DeliverySlotDays.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AAEnC,SAASC,OAAO,QAAQ,kBAAS;AACjC,SAASC,UAAU,QAAQ,6BAA0B;AACrD,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,WAAW,QAAQ,uBAAoB;AAChD,SAASC,sBAAsB,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAGpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,yBAAyBA,CAAC;EACjCC,IAAI;EACJC,KAAK;EACLC,QAAQ;EACRC,kBAAkB,EAAEC,sBAAsB;EAC1CC,QAAQ,GAAG,KAAK;EAChBC,SAAS;EACTC,KAAK;EACLC;AACqB,CAAC,EAAE;EACxB,MAAM;IAAEC;EAAS,CAAC,GAAGlB,WAAW,CAACC,sBAAsB,CAAC;EACxD,MAAMW,kBAAkB,GAAGC,sBAAsB,IAAIK,QAAQ,CAACC,GAAG;EACjE,oBACEhB,IAAA,CAACN,OAAO;IACNuB,IAAI,EAAC,YAAY;IACjBR,kBAAkB,EAAEA,kBAAmB;IACvCE,QAAQ,EAAEA,QAAS;IACnBC,SAAS,EAAEA,SAAU;IACrBM,GAAG,EAAE,CAAE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GzC,IAAI,CAACY,yBAAyB,CAAC;AAC/D6B,gBAAgB,CAACC,WAAW,GAAG,kBAAkB","ignoreList":[]}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { memo, useMemo } from 'react';
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
import { Item } from "../item/index.js";
|
|
6
|
-
import { RadioIndicator } from "../radio-indicator/index.js";
|
|
7
|
-
import { useSurfaceFill } from "../styles/surface-levels.js";
|
|
8
|
-
import { useTheme } from "../theme/use-theme.js";
|
|
9
|
-
import { Text } from "../typography/index.js";
|
|
10
|
-
import { DELIVERY_DOT, DELIVERY_GLYPH, DELIVERY_OPTION_RADIUS } from "./constants.js";
|
|
11
|
-
import { joinDeliveryParts, resolveDeliverySlotPaint } from "./shared.js";
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
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
|
-
}) {
|
|
47
|
-
const theme = useTheme();
|
|
48
|
-
const surface = useSurfaceFill();
|
|
49
|
-
const paint = useMemo(() => resolveDeliverySlotPaint(theme, surface), [theme, surface]);
|
|
50
|
-
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
51
|
-
return /*#__PURE__*/_jsx(Item, {
|
|
52
|
-
role: "radio",
|
|
53
|
-
selected: selected
|
|
54
|
-
// `onPress` stays wired while disabled: `Item` drops the handler itself
|
|
55
|
-
// and keeps the row in the group's tab order, which is what a radio that
|
|
56
|
-
// is present but unavailable should do.
|
|
57
|
-
,
|
|
58
|
-
onPress: onPress,
|
|
59
|
-
disabled: disabled,
|
|
60
|
-
accessibilityLabel: accessibilityLabel ?? joinDeliveryParts([label, detail, price]) ?? label,
|
|
61
|
-
leading: /*#__PURE__*/_jsx(RadioIndicator, {
|
|
62
|
-
selected: selected,
|
|
63
|
-
size: DELIVERY_DOT,
|
|
64
|
-
testID: id('dot')
|
|
65
|
-
}),
|
|
66
|
-
trailing: price ? /*#__PURE__*/_jsx(Text, {
|
|
67
|
-
variant: "body-medium",
|
|
68
|
-
numberOfLines: 1,
|
|
69
|
-
testID: id('price'),
|
|
70
|
-
style: {
|
|
71
|
-
color: paint.text,
|
|
72
|
-
fontVariant: ['tabular-nums']
|
|
73
|
-
},
|
|
74
|
-
children: price
|
|
75
|
-
}) : null,
|
|
76
|
-
style: [{
|
|
77
|
-
borderRadius: DELIVERY_OPTION_RADIUS,
|
|
78
|
-
borderWidth: 1,
|
|
79
|
-
borderColor: selected ? paint.text : paint.border,
|
|
80
|
-
backgroundColor: selected ? paint.selected : 'transparent'
|
|
81
|
-
}, style],
|
|
82
|
-
testID: testID,
|
|
83
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
84
|
-
style: {
|
|
85
|
-
flex: 1,
|
|
86
|
-
minWidth: 0,
|
|
87
|
-
gap: 2
|
|
88
|
-
},
|
|
89
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
90
|
-
style: {
|
|
91
|
-
flexDirection: 'row',
|
|
92
|
-
alignItems: 'center',
|
|
93
|
-
gap: 6,
|
|
94
|
-
minWidth: 0
|
|
95
|
-
},
|
|
96
|
-
children: [Icon ? /*#__PURE__*/_jsx(Icon, {
|
|
97
|
-
width: DELIVERY_GLYPH,
|
|
98
|
-
height: DELIVERY_GLYPH,
|
|
99
|
-
fill: paint.textSecondary
|
|
100
|
-
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
101
|
-
variant: "body-medium",
|
|
102
|
-
numberOfLines: 1,
|
|
103
|
-
testID: id('label'),
|
|
104
|
-
style: {
|
|
105
|
-
flexShrink: 1,
|
|
106
|
-
minWidth: 0,
|
|
107
|
-
color: paint.text
|
|
108
|
-
},
|
|
109
|
-
children: label
|
|
110
|
-
}), badge]
|
|
111
|
-
}), detail ? /*#__PURE__*/_jsx(Text, {
|
|
112
|
-
variant: "body-2-regular",
|
|
113
|
-
numberOfLines: 2,
|
|
114
|
-
testID: id('detail'),
|
|
115
|
-
style: {
|
|
116
|
-
color: paint.textSecondary
|
|
117
|
-
},
|
|
118
|
-
children: detail
|
|
119
|
-
}) : null]
|
|
120
|
-
})
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
export const DeliverySlotOption = /*#__PURE__*/memo(DeliverySlotOptionComponent);
|
|
124
|
-
DeliverySlotOption.displayName = 'DeliverySlotOption';
|
|
125
|
-
//# sourceMappingURL=DeliverySlotOption.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useMemo","View","Item","RadioIndicator","useSurfaceFill","useTheme","Text","DELIVERY_DOT","DELIVERY_GLYPH","DELIVERY_OPTION_RADIUS","joinDeliveryParts","resolveDeliverySlotPaint","jsx","_jsx","jsxs","_jsxs","DeliverySlotOptionComponent","label","detail","price","badge","icon","Icon","selected","disabled","onPress","accessibilityLabel","style","testID","theme","surface","paint","id","part","undefined","role","leading","size","trailing","variant","numberOfLines","color","text","fontVariant","children","borderRadius","borderWidth","borderColor","border","backgroundColor","flex","minWidth","gap","flexDirection","alignItems","width","height","fill","textSecondary","flexShrink","DeliverySlotOption","displayName"],"sourceRoot":"../../../src","sources":["delivery-slot/DeliverySlotOption.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,cAAc,QAAQ,6BAAoB;AACnD,SAASC,cAAc,QAAQ,6BAA0B;AACzD,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,YAAY,EAAEC,cAAc,EAAEC,sBAAsB,QAAQ,gBAAa;AAClF,SAASC,iBAAiB,EAAEC,wBAAwB,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,2BAA2BA,CAAC;EACnCC,KAAK;EACLC,MAAM;EACNC,KAAK;EACLC,KAAK;EACLC,IAAI,EAAEC,IAAI;EACVC,QAAQ,GAAG,KAAK;EAChBC,QAAQ,GAAG,KAAK;EAChBC,OAAO;EACPC,kBAAkB;EAClBC,KAAK;EACLC;AACuB,CAAC,EAAE;EAC1B,MAAMC,KAAK,GAAGxB,QAAQ,CAAC,CAAC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oBAAoB","ignoreList":[]}
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { memo, useMemo } from 'react';
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
import { EmptyState } from "../empty-state/index.js";
|
|
6
|
-
import { Field } from "../field/index.js";
|
|
7
|
-
import { useFieldControl } from "../field/context.js";
|
|
8
|
-
import { useFieldMembership } from "../field/membership.js";
|
|
9
|
-
import { RiFlashlightLine } from "../icons/remix/RiFlashlightLine.js";
|
|
10
|
-
import { RiTimeLine } from "../icons/remix/RiTimeLine.js";
|
|
11
|
-
import { useMessages } from "../locale/messages.js";
|
|
12
|
-
import * as Skeleton from "../skeleton/index.js";
|
|
13
|
-
import { DeliverySlotDays } from "./DeliverySlotDays.js";
|
|
14
|
-
import { DeliverySlotOption } from "./DeliverySlotOption.js";
|
|
15
|
-
import { DELIVERY_DOT, DELIVERY_OPTION_GAP, DELIVERY_OPTION_RADIUS, DELIVERY_SECTION_GAP } from "./constants.js";
|
|
16
|
-
import { DELIVERY_SLOT_MESSAGES } from "./messages.js";
|
|
17
|
-
import { joinDeliveryParts, windowDetail, windowName } from "./shared.js";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* INTERNAL — the two groups, inside the field, so they can READ it.
|
|
21
|
-
*
|
|
22
|
-
* It is a separate component and not the body of `DeliverySlotPicker` for one
|
|
23
|
-
* mechanical reason: `useFieldMembership()` reads the context a `Field`
|
|
24
|
-
* publishes, and a component cannot read a context it renders itself. Splitting
|
|
25
|
-
* here is what makes the picker a real member of the field contract — the
|
|
26
|
-
* field's label names the group, and the field's `disabled` reaches every day
|
|
27
|
-
* and every window and cannot be opted out of.
|
|
28
|
-
*/
|
|
29
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
|
-
function DeliverySlotGroups({
|
|
31
|
-
label,
|
|
32
|
-
days,
|
|
33
|
-
day,
|
|
34
|
-
onDayChange,
|
|
35
|
-
dayLabel,
|
|
36
|
-
windows,
|
|
37
|
-
value,
|
|
38
|
-
onValueChange,
|
|
39
|
-
asap,
|
|
40
|
-
disabled,
|
|
41
|
-
loading,
|
|
42
|
-
loadingRows,
|
|
43
|
-
empty,
|
|
44
|
-
emptyTitle,
|
|
45
|
-
emptyDescription,
|
|
46
|
-
tierLabels,
|
|
47
|
-
soldOutLabel,
|
|
48
|
-
fadeColor,
|
|
49
|
-
testID
|
|
50
|
-
}) {
|
|
51
|
-
// The NAME defers to the field (`??`) and `disabled` combines with it (`||`)
|
|
52
|
-
// — the two directions `field/membership.ts` exists to stop every family
|
|
53
|
-
// getting backwards.
|
|
54
|
-
const field = useFieldMembership({
|
|
55
|
-
accessibilityLabel: label,
|
|
56
|
-
disabled
|
|
57
|
-
});
|
|
58
|
-
const {
|
|
59
|
-
messages
|
|
60
|
-
} = useMessages(DELIVERY_SLOT_MESSAGES);
|
|
61
|
-
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
62
|
-
const off = field.disabled;
|
|
63
|
-
const options = useMemo(() => windows.map(w => ({
|
|
64
|
-
window: w,
|
|
65
|
-
detail: windowDetail(w, tierLabels, soldOutLabel, messages),
|
|
66
|
-
name: windowName(w, tierLabels, soldOutLabel, messages)
|
|
67
|
-
})), [windows, tierLabels, soldOutLabel, messages]);
|
|
68
|
-
const asapRow = asap ? /*#__PURE__*/_jsx(DeliverySlotOption, {
|
|
69
|
-
label: asap.label ?? messages.asap,
|
|
70
|
-
detail: asap.soldOut ? soldOutLabel : joinDeliveryParts([asap.eta, asap.note]),
|
|
71
|
-
price: asap.price,
|
|
72
|
-
icon: asap.icon ?? RiFlashlightLine,
|
|
73
|
-
selected: asap.id === value,
|
|
74
|
-
disabled: off || asap.disabled === true || asap.soldOut === true,
|
|
75
|
-
onPress: onValueChange ? () => onValueChange(asap.id) : undefined,
|
|
76
|
-
accessibilityLabel: asap.accessibilityLabel,
|
|
77
|
-
testID: asap.testID ?? id('asap')
|
|
78
|
-
}, "asap") : null;
|
|
79
|
-
const body = loading ? /*#__PURE__*/_jsx(View, {
|
|
80
|
-
"aria-busy": true,
|
|
81
|
-
accessibilityLabel: field.accessibilityLabel,
|
|
82
|
-
testID: id('loading'),
|
|
83
|
-
style: {
|
|
84
|
-
gap: DELIVERY_OPTION_GAP
|
|
85
|
-
},
|
|
86
|
-
children: Array.from({
|
|
87
|
-
length: loadingRows
|
|
88
|
-
}, (_unused, index) => /*#__PURE__*/_jsxs(View, {
|
|
89
|
-
testID: id(`placeholder-${index}`),
|
|
90
|
-
style: {
|
|
91
|
-
flexDirection: 'row',
|
|
92
|
-
alignItems: 'center',
|
|
93
|
-
gap: 12,
|
|
94
|
-
paddingHorizontal: 16,
|
|
95
|
-
paddingVertical: 10,
|
|
96
|
-
borderRadius: DELIVERY_OPTION_RADIUS
|
|
97
|
-
},
|
|
98
|
-
children: [/*#__PURE__*/_jsx(Skeleton.Circle, {
|
|
99
|
-
size: DELIVERY_DOT
|
|
100
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
101
|
-
style: {
|
|
102
|
-
flex: 1,
|
|
103
|
-
minWidth: 0,
|
|
104
|
-
gap: 4
|
|
105
|
-
},
|
|
106
|
-
children: [/*#__PURE__*/_jsx(Skeleton.Text, {
|
|
107
|
-
style: {
|
|
108
|
-
width: '40%',
|
|
109
|
-
lineHeight: 16
|
|
110
|
-
}
|
|
111
|
-
}), /*#__PURE__*/_jsx(Skeleton.Text, {
|
|
112
|
-
style: {
|
|
113
|
-
width: '60%',
|
|
114
|
-
lineHeight: 14
|
|
115
|
-
}
|
|
116
|
-
})]
|
|
117
|
-
})]
|
|
118
|
-
}, index))
|
|
119
|
-
}) : options.length === 0 && asapRow == null ? empty ?? /*#__PURE__*/_jsx(EmptyState, {
|
|
120
|
-
variant: "compact",
|
|
121
|
-
icon: RiTimeLine,
|
|
122
|
-
title: emptyTitle,
|
|
123
|
-
description: emptyDescription,
|
|
124
|
-
testID: id('empty')
|
|
125
|
-
}) : /*#__PURE__*/_jsxs(View, {
|
|
126
|
-
collapsable: false,
|
|
127
|
-
role: "radiogroup",
|
|
128
|
-
accessibilityLabel: field.accessibilityLabel,
|
|
129
|
-
"aria-describedby": field.describedBy,
|
|
130
|
-
accessibilityHint: field.accessibilityHint,
|
|
131
|
-
"aria-invalid": field.invalid || undefined,
|
|
132
|
-
"aria-disabled": off || undefined,
|
|
133
|
-
testID: id('windows'),
|
|
134
|
-
style: {
|
|
135
|
-
gap: DELIVERY_OPTION_GAP
|
|
136
|
-
},
|
|
137
|
-
children: [asapRow, options.map(({
|
|
138
|
-
window: w,
|
|
139
|
-
detail,
|
|
140
|
-
name
|
|
141
|
-
}) => /*#__PURE__*/_jsx(DeliverySlotOption, {
|
|
142
|
-
label: w.label,
|
|
143
|
-
detail: detail,
|
|
144
|
-
price: w.price,
|
|
145
|
-
selected: w.id === value,
|
|
146
|
-
disabled: off || w.disabled === true || w.soldOut === true,
|
|
147
|
-
onPress: onValueChange ? () => onValueChange(w.id) : undefined,
|
|
148
|
-
accessibilityLabel: name,
|
|
149
|
-
testID: w.testID ?? id(w.id)
|
|
150
|
-
}, w.id))]
|
|
151
|
-
});
|
|
152
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
153
|
-
style: {
|
|
154
|
-
gap: DELIVERY_SECTION_GAP
|
|
155
|
-
},
|
|
156
|
-
children: [/*#__PURE__*/_jsx(DeliverySlotDays, {
|
|
157
|
-
days: days,
|
|
158
|
-
value: day,
|
|
159
|
-
onChange: onDayChange,
|
|
160
|
-
accessibilityLabel: dayLabel,
|
|
161
|
-
disabled: off,
|
|
162
|
-
fadeColor: fadeColor,
|
|
163
|
-
testID: id('days')
|
|
164
|
-
}), body]
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* When: a day, then a window of that day — or the next courier.
|
|
170
|
-
*
|
|
171
|
-
* field standalone, the whole picker IS a `Field` (`multiple`), so one
|
|
172
|
-
* label names the choice, one `error` puts it in its invalid state,
|
|
173
|
-
* and one `disabled` reaches the strip and every option. Dropped
|
|
174
|
-
* inside somebody else's `Field` it renders no second one and reads
|
|
175
|
-
* theirs instead.
|
|
176
|
-
* days `DeliverySlotDays`, a `radiogroup` of day tiles
|
|
177
|
-
* options 16 under the strip; a `radiogroup` of `DeliverySlotOption`s 8
|
|
178
|
-
* apart, the ASAP option at the head of it
|
|
179
|
-
* loading placeholder rows announced as busy — the windows are RELOADED when
|
|
180
|
-
* the day changes, and an empty list during that reload reads as
|
|
181
|
-
* "nothing left today"
|
|
182
|
-
* empty `EmptyState` at the panel rung
|
|
183
|
-
*
|
|
184
|
-
* ## It is a selection, so it is a radio group
|
|
185
|
-
*
|
|
186
|
-
* Not a set of pressables that happen to look selected. The difference is what
|
|
187
|
-
* a screen reader says: a `radiogroup` announces the name of the choice and
|
|
188
|
-
* "3 of 7", and each row announces whether it is the chosen one. Pressables
|
|
189
|
-
* announce seven unrelated buttons, one of which is drawn differently.
|
|
190
|
-
*
|
|
191
|
-
* ## It computes nothing
|
|
192
|
-
*
|
|
193
|
-
* Every window, every price and every reading is a string the app formatted.
|
|
194
|
-
* The only ordering this family does is the order it was handed.
|
|
195
|
-
*/
|
|
196
|
-
function DeliverySlotPickerComponent({
|
|
197
|
-
label,
|
|
198
|
-
description,
|
|
199
|
-
error,
|
|
200
|
-
required,
|
|
201
|
-
disabled,
|
|
202
|
-
dayLabel: dayLabelProp,
|
|
203
|
-
emptyTitle: emptyTitleProp,
|
|
204
|
-
emptyDescription: emptyDescriptionProp,
|
|
205
|
-
soldOutLabel: soldOutLabelProp,
|
|
206
|
-
loadingRows = 3,
|
|
207
|
-
style,
|
|
208
|
-
testID,
|
|
209
|
-
...rest
|
|
210
|
-
}) {
|
|
211
|
-
const {
|
|
212
|
-
messages
|
|
213
|
-
} = useMessages(DELIVERY_SLOT_MESSAGES);
|
|
214
|
-
const dayLabel = dayLabelProp ?? messages.day;
|
|
215
|
-
const emptyTitle = emptyTitleProp ?? messages.emptyTitle;
|
|
216
|
-
const emptyDescription = emptyDescriptionProp ?? messages.emptyDescription;
|
|
217
|
-
const soldOutLabel = soldOutLabelProp ?? messages.soldOut;
|
|
218
|
-
// Is there already a `Field` around us? A picker dropped into somebody's form
|
|
219
|
-
// must not make a SECOND one: two fields means two labels above one control
|
|
220
|
-
// and an error the outer field describes and the inner one does not.
|
|
221
|
-
//
|
|
222
|
-
// Reading the context here is safe — `Field` is rendered BELOW this node, so
|
|
223
|
-
// what this sees is the enclosing one — and the branch is a render decision,
|
|
224
|
-
// not a conditional hook.
|
|
225
|
-
const enclosing = useFieldControl();
|
|
226
|
-
const groups = /*#__PURE__*/_jsx(DeliverySlotGroups, {
|
|
227
|
-
...rest,
|
|
228
|
-
label: label,
|
|
229
|
-
disabled: disabled,
|
|
230
|
-
dayLabel: dayLabel,
|
|
231
|
-
emptyTitle: emptyTitle,
|
|
232
|
-
emptyDescription: emptyDescription,
|
|
233
|
-
soldOutLabel: soldOutLabel,
|
|
234
|
-
loadingRows: loadingRows,
|
|
235
|
-
testID: testID
|
|
236
|
-
});
|
|
237
|
-
|
|
238
|
-
// Inside somebody's field, the field owns the label, the hint and the error —
|
|
239
|
-
// and `label` stays undefined by default so the field's own label is what
|
|
240
|
-
// names the group. Standalone, the picker IS the field and supplies its own.
|
|
241
|
-
if (enclosing) return /*#__PURE__*/_jsx(View, {
|
|
242
|
-
style: style,
|
|
243
|
-
children: groups
|
|
244
|
-
});
|
|
245
|
-
return /*#__PURE__*/_jsx(Field, {
|
|
246
|
-
label: label ?? messages.field,
|
|
247
|
-
description: description,
|
|
248
|
-
error: error,
|
|
249
|
-
required: required,
|
|
250
|
-
disabled: disabled,
|
|
251
|
-
multiple: true,
|
|
252
|
-
style: style,
|
|
253
|
-
testID: testID,
|
|
254
|
-
children: groups
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
export const DeliverySlotPicker = /*#__PURE__*/memo(DeliverySlotPickerComponent);
|
|
258
|
-
DeliverySlotPicker.displayName = 'DeliverySlotPicker';
|
|
259
|
-
//# sourceMappingURL=DeliverySlotPicker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useMemo","View","EmptyState","Field","useFieldControl","useFieldMembership","RiFlashlightLine","RiTimeLine","useMessages","Skeleton","DeliverySlotDays","DeliverySlotOption","DELIVERY_DOT","DELIVERY_OPTION_GAP","DELIVERY_OPTION_RADIUS","DELIVERY_SECTION_GAP","DELIVERY_SLOT_MESSAGES","joinDeliveryParts","windowDetail","windowName","jsx","_jsx","jsxs","_jsxs","DeliverySlotGroups","label","days","day","onDayChange","dayLabel","windows","value","onValueChange","asap","disabled","loading","loadingRows","empty","emptyTitle","emptyDescription","tierLabels","soldOutLabel","fadeColor","testID","field","accessibilityLabel","messages","id","part","undefined","off","options","map","w","window","detail","name","asapRow","soldOut","eta","note","price","icon","selected","onPress","body","style","gap","children","Array","from","length","_unused","index","flexDirection","alignItems","paddingHorizontal","paddingVertical","borderRadius","Circle","size","flex","minWidth","Text","width","lineHeight","variant","title","description","collapsable","role","describedBy","accessibilityHint","invalid","onChange","DeliverySlotPickerComponent","error","required","dayLabelProp","emptyTitleProp","emptyDescriptionProp","soldOutLabelProp","rest","enclosing","groups","multiple","DeliverySlotPicker","displayName"],"sourceRoot":"../../../src","sources":["delivery-slot/DeliverySlotPicker.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,UAAU,QAAQ,yBAAgB;AAC3C,SAASC,KAAK,QAAQ,mBAAU;AAChC,SAASC,eAAe,QAAQ,qBAAkB;AAClD,SAASC,kBAAkB,QAAQ,wBAAqB;AACxD,SAASC,gBAAgB,QAAQ,oCAAiC;AAClE,SAASC,UAAU,QAAQ,8BAA2B;AACtD,SAASC,WAAW,QAAQ,uBAAoB;AAChD,OAAO,KAAKC,QAAQ,MAAM,sBAAa;AACvC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ACA;EACA,IAAI4D,SAAS,EAAE,oBAAOlF,IAAA,CAACpB,IAAI;IAACiE,KAAK,EAAEA,KAAM;IAAAE,QAAA,EAAEoC;EAAM,CAAO,CAAC;EAEzD,oBACEnF,IAAA,CAAClB,KAAK;IACJsB,KAAK,EAAEA,KAAK,IAAIqB,QAAQ,CAACF,KAAM;IAC/B4C,WAAW,EAAEA,WAAY;IACzBQ,KAAK,EAAEA,KAAM;IACbC,QAAQ,EAAEA,QAAS;IACnB/D,QAAQ,EAAEA,QAAS;IACnBuE,QAAQ;IACRvC,KAAK,EAAEA,KAAM;IACbvB,MAAM,EAAEA,MAAO;IAAAyB,QAAA,EAEdoC;EAAM,CACF,CAAC;AAEZ;AAEA,OAAO,MAAME,kBAAkB,gBAAG3G,IAAI,CAACgG,2BAA2B,CAAC;AACnEW,kBAAkB,CAACC,WAAW,GAAG,oBAAoB","ignoreList":[]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { DELIVERY_SLOT_MESSAGES } from "./messages.js";
|
|
4
|
-
// The English words. The picker speaks `DELIVERY_SLOT_MESSAGES` in the
|
|
5
|
-
// resolved locale; these stay exported for apps that read them.
|
|
6
|
-
const EN = DELIVERY_SLOT_MESSAGES.en;
|
|
7
|
-
|
|
8
|
-
/** The words a tier is drawn and announced with. */
|
|
9
|
-
export const DELIVERY_TIER_LABELS = EN.tiers;
|
|
10
|
-
|
|
11
|
-
/** What a taken window says. */
|
|
12
|
-
export const DELIVERY_SOLD_OUT_LABEL = EN.soldOut;
|
|
13
|
-
|
|
14
|
-
/** The option that belongs to no day. */
|
|
15
|
-
export const DELIVERY_ASAP_LABEL = EN.asap;
|
|
16
|
-
|
|
17
|
-
/** The field's own name, which is also the radio group's. */
|
|
18
|
-
export const DELIVERY_FIELD_LABEL = EN.field;
|
|
19
|
-
export const DELIVERY_DAY_LABEL = EN.day;
|
|
20
|
-
|
|
21
|
-
/** What there is to say when a day has nothing left. */
|
|
22
|
-
export const DELIVERY_EMPTY_TITLE = EN.emptyTitle;
|
|
23
|
-
export const DELIVERY_EMPTY_DESCRIPTION = EN.emptyDescription;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* The radio dot at the head of an option row. 20 is `Radio`'s `lg` rung: the
|
|
27
|
-
* row it marks is two lines tall, and the 16 `md` dot read as a bullet beside
|
|
28
|
-
* it rather than as the control.
|
|
29
|
-
*/
|
|
30
|
-
export const DELIVERY_DOT = 20;
|
|
31
|
-
/** The glyph the ASAP row draws instead of a dot, when it is not chosen. */
|
|
32
|
-
export const DELIVERY_GLYPH = 20;
|
|
33
|
-
|
|
34
|
-
/** Between the day strip and the options, and between the options. */
|
|
35
|
-
export const DELIVERY_SECTION_GAP = 16;
|
|
36
|
-
export const DELIVERY_OPTION_GAP = 8;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* The option row's corner and border. Radius 12 is the field rung every picker
|
|
40
|
-
* in the library draws its choosable boxes at; the row is bordered rather than
|
|
41
|
-
* washed because an unbordered list of windows and a bordered day strip above
|
|
42
|
-
* it read as two different controls.
|
|
43
|
-
*/
|
|
44
|
-
export const DELIVERY_OPTION_RADIUS = 12;
|
|
45
|
-
|
|
46
|
-
/** The separator between the parts of an option's detail line. */
|
|
47
|
-
export const DELIVERY_DETAIL_SEPARATOR = ' · ';
|
|
48
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DELIVERY_SLOT_MESSAGES","EN","en","DELIVERY_TIER_LABELS","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,SAASA,sBAAsB,QAAQ,eAAY;AAGnD;AACA;AACA,MAAMC,EAAE,GAAGD,sBAAsB,CAACE,EAAE;;AAEpC;AACA,OAAO,MAAMC,oBAAkD,GAAGF,EAAE,CAACG,KAAK;;AAE1E;AACA,OAAO,MAAMC,uBAAuB,GAAGJ,EAAE,CAACK,OAAO;;AAEjD;AACA,OAAO,MAAMC,mBAAmB,GAAGN,EAAE,CAACO,IAAI;;AAE1C;AACA,OAAO,MAAMC,oBAAoB,GAAGR,EAAE,CAACS,KAAK;AAC5C,OAAO,MAAMC,kBAAkB,GAAGV,EAAE,CAACW,GAAG;;AAExC;AACA,OAAO,MAAMC,oBAAoB,GAAGZ,EAAE,CAACa,UAAU;AACjD,OAAO,MAAMC,0BAA0B,GAAGd,EAAE,CAACe,gBAAgB;;AAE7D;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAG,EAAE;AAC9B;AACA,OAAO,MAAMC,cAAc,GAAG,EAAE;;AAEhC;AACA,OAAO,MAAMC,oBAAoB,GAAG,EAAE;AACtC,OAAO,MAAMC,mBAAmB,GAAG,CAAC;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,GAAG,EAAE;;AAExC;AACA,OAAO,MAAMC,yBAAyB,GAAG,KAAK","ignoreList":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
export { DeliverySlotDays } from "./DeliverySlotDays.js";
|
|
4
|
-
export { DeliverySlotOption } from "./DeliverySlotOption.js";
|
|
5
|
-
export { DeliverySlotPicker } from "./DeliverySlotPicker.js";
|
|
6
|
-
export { DELIVERY_ASAP_LABEL, DELIVERY_DAY_LABEL, DELIVERY_EMPTY_DESCRIPTION, DELIVERY_EMPTY_TITLE, DELIVERY_FIELD_LABEL, DELIVERY_OPTION_RADIUS, DELIVERY_SOLD_OUT_LABEL, DELIVERY_TIER_LABELS } from "./constants.js";
|
|
7
|
-
export { joinDeliveryParts, resolveDeliverySlotPaint, windowDetail, windowName } from "./shared.js";
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DeliverySlotDays","DeliverySlotOption","DeliverySlotPicker","DELIVERY_ASAP_LABEL","DELIVERY_DAY_LABEL","DELIVERY_EMPTY_DESCRIPTION","DELIVERY_EMPTY_TITLE","DELIVERY_FIELD_LABEL","DELIVERY_OPTION_RADIUS","DELIVERY_SOLD_OUT_LABEL","DELIVERY_TIER_LABELS","joinDeliveryParts","resolveDeliverySlotPaint","windowDetail","windowName"],"sourceRoot":"../../../src","sources":["delivery-slot/index.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,uBAAoB;AACrD,SAASC,kBAAkB,QAAQ,yBAAsB;AACzD,SAASC,kBAAkB,QAAQ,yBAAsB;AACzD,SACEC,mBAAmB,EACnBC,kBAAkB,EAClBC,0BAA0B,EAC1BC,oBAAoB,EACpBC,oBAAoB,EACpBC,sBAAsB,EACtBC,uBAAuB,EACvBC,oBAAoB,QACf,gBAAa;AACpB,SAASC,iBAAiB,EAAEC,wBAAwB,EAAEC,YAAY,EAAEC,UAAU,QAAQ,aAAU","ignoreList":[]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { defineMessages } from "../locale/messages.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Every fixed string the delivery-slot family draws or announces, in each
|
|
7
|
-
* Bloom language. A caller's `label`, `dayLabel`, `emptyTitle`,
|
|
8
|
-
* `emptyDescription`, `tierLabels`, `soldOutLabel` and the ASAP option's
|
|
9
|
-
* `label` still win.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
export const DELIVERY_SLOT_MESSAGES = defineMessages('DELIVERY_SLOT_MESSAGES', {
|
|
13
|
-
tiers: {
|
|
14
|
-
standard: 'Standard',
|
|
15
|
-
express: 'Express'
|
|
16
|
-
},
|
|
17
|
-
soldOut: 'Sold out',
|
|
18
|
-
asap: 'As soon as possible',
|
|
19
|
-
field: 'Delivery time',
|
|
20
|
-
day: 'Day',
|
|
21
|
-
emptyTitle: 'No windows left',
|
|
22
|
-
emptyDescription: 'Pick another day, or take the next courier.'
|
|
23
|
-
});
|
|
24
|
-
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineMessages","DELIVERY_SLOT_MESSAGES","tiers","standard","express","soldOut","asap","field","day","emptyTitle","emptyDescription"],"sourceRoot":"../../../src","sources":["delivery-slot/messages.ts"],"mappings":";;AAAA,SAASA,cAAc,QAA6B,uBAAoB;;AAGxE;AACA;AACA;AACA;AACA;AACA;;AAeA,OAAO,MAAMC,sBAA4D,GACvED,cAAc,CAAuB,wBAAwB,EAAE;EAC7DE,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,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* What the picker paints, and the two joins that decide what a screen reader
|
|
5
|
-
* says about a window.
|
|
6
|
-
*
|
|
7
|
-
* The paint is read RELATIVE to the surface the picker was dropped on
|
|
8
|
-
* (`styles/surface-levels.ts`): a delivery picker is a step of a checkout page,
|
|
9
|
-
* a sheet over a basket and a panel beside a map, and an option border picked
|
|
10
|
-
* by eye disappears on one of the three.
|
|
11
|
-
*
|
|
12
|
-
* Pure, so `DeliverySlot.test.tsx` can walk presets and modes without
|
|
13
|
-
* rendering.
|
|
14
|
-
*/
|
|
15
|
-
import { hairlineOn, surfaceFillOn, surfaceTextOn } from "../styles/surface-levels.js";
|
|
16
|
-
import { DELIVERY_DETAIL_SEPARATOR } from "./constants.js";
|
|
17
|
-
import { DELIVERY_SLOT_MESSAGES } from "./messages.js";
|
|
18
|
-
export function resolveDeliverySlotPaint(theme, surface) {
|
|
19
|
-
return {
|
|
20
|
-
...surfaceTextOn(theme, surface),
|
|
21
|
-
border: hairlineOn(theme, surface),
|
|
22
|
-
selected: surfaceFillOn(theme, surface)
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/** Joins the non-empty parts of a line with the family's separator. */
|
|
27
|
-
export function joinDeliveryParts(parts, separator = DELIVERY_DETAIL_SEPARATOR) {
|
|
28
|
-
const joined = parts.filter(part => typeof part === 'string' && part !== '').join(separator);
|
|
29
|
-
return joined === '' ? undefined : joined;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* The line under a window: what class of service it is, and what is left of it.
|
|
34
|
-
*
|
|
35
|
-
* A SOLD-OUT window says only that. The tier and the capacity of a window
|
|
36
|
-
* nobody can take are facts about a thing that is not on offer, and reading
|
|
37
|
-
* them out after "Sold out" is how a reader ends up tapping it.
|
|
38
|
-
*/
|
|
39
|
-
export function windowDetail(window, tierLabels = {}, soldOutLabel, messages = DELIVERY_SLOT_MESSAGES.en) {
|
|
40
|
-
if (window.soldOut) return soldOutLabel ?? messages.soldOut;
|
|
41
|
-
const words = {
|
|
42
|
-
...messages.tiers,
|
|
43
|
-
...tierLabels
|
|
44
|
-
};
|
|
45
|
-
return joinDeliveryParts([words[window.tier ?? 'standard'], window.capacity, window.note]);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** The window's announced name: the window, then everything true about it. */
|
|
49
|
-
export function windowName(window, tierLabels, soldOutLabel, messages = DELIVERY_SLOT_MESSAGES.en) {
|
|
50
|
-
return window.accessibilityLabel ?? joinDeliveryParts([window.label, windowDetail(window, tierLabels, soldOutLabel, messages), window.price]) ?? window.label;
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["hairlineOn","surfaceFillOn","surfaceTextOn","DELIVERY_DETAIL_SEPARATOR","DELIVERY_SLOT_MESSAGES","resolveDeliverySlotPaint","theme","surface","border","selected","joinDeliveryParts","parts","separator","joined","filter","part","join","undefined","windowDetail","window","tierLabels","soldOutLabel","messages","en","soldOut","words","tiers","tier","capacity","note","windowName","accessibilityLabel","label","price"],"sourceRoot":"../../../src","sources":["delivery-slot/shared.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SACEA,UAAU,EACVC,aAAa,EACbC,aAAa,QAER,6BAA0B;AAEjC,SAASC,yBAAyB,QAAQ,gBAAa;AACvD,SAASC,sBAAsB,QAAmC,eAAY;AAU9E,OAAO,SAASC,wBAAwBA,CAACC,KAAY,EAAEC,OAAe,EAAqB;EACzF,OAAO;IACL,GAAGL,aAAa,CAACI,KAAK,EAAEC,OAAO,CAAC;IAChCC,MAAM,EAAER,UAAU,CAACM,KAAK,EAAEC,OAAO,CAAC;IAClCE,QAAQ,EAAER,aAAa,CAACK,KAAK,EAAEC,OAAO;EACxC,CAAC;AACH;;AAEA;AACA,OAAO,SAASG,iBAAiBA,CAC/BC,KAAuD,EACvDC,SAAiB,GAAGT,yBAAyB,EACzB;EACpB,MAAMU,MAAM,GAAGF,KAAK,CACjBG,MAAM,CAAEC,IAAI,IAAqB,OAAOA,IAAI,KAAK,QAAQ,IAAIA,IAAI,KAAK,EAAE,CAAC,CACzEC,IAAI,CAACJ,SAAS,CAAC;EAClB,OAAOC,MAAM,KAAK,EAAE,GAAGI,SAAS,GAAGJ,MAAM;AAC3C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASK,YA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