@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,300 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { memo, useCallback, useMemo, useState } from 'react';
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
import { Admonition } from "../admonition/index.js";
|
|
6
|
-
import { Button } from '../button';
|
|
7
|
-
import { Field } from "../field/index.js";
|
|
8
|
-
import { useControllableState } from "../hooks/use-controllable-state.js";
|
|
9
|
-
import { InputOtp } from "../input-otp/index.js";
|
|
10
|
-
import { useMessages } from "../locale/messages.js";
|
|
11
|
-
import { SortablePhotoGrid } from "../sortable-media/index.js";
|
|
12
|
-
import { InteractionBoundary } from "../overlay/InteractionBoundary.js";
|
|
13
|
-
import { useSurfaceFill } from "../styles/surface-levels.js";
|
|
14
|
-
import { TextFieldInput } from "../text-field/index.js";
|
|
15
|
-
import { Textarea } from "../textarea/index.js";
|
|
16
|
-
import { useTheme } from "../theme/use-theme.js";
|
|
17
|
-
import { Text } from "../typography/index.js";
|
|
18
|
-
import { PROOF_GEOMETRY, PROOF_ORDER } from "./constants.js";
|
|
19
|
-
import { PROOF_OF_DELIVERY_MESSAGES } from "./messages.js";
|
|
20
|
-
import { SignaturePad } from "./SignaturePad.js";
|
|
21
|
-
import { completeProofValue, missingProofs, orderProofs, resolveProofPaint } from "./shared.js";
|
|
22
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
-
/**
|
|
24
|
-
* It happened: the proofs an app asks for at the door, and one result.
|
|
25
|
-
*
|
|
26
|
-
* heading the title and its line, when the caller gives them
|
|
27
|
-
* blocks one `Field` per proof, 20 apart, in the order the door is
|
|
28
|
-
* worked through (`PROOF_ORDER`) whatever order the caller listed
|
|
29
|
-
* them in — recipient, signature, code, photo, note
|
|
30
|
-
* summary after a confirm that could not go through, an `error`
|
|
31
|
-
* `Admonition` in a `role="alert"` naming what is still missing
|
|
32
|
-
* confirm a primary `Button`, full width
|
|
33
|
-
*
|
|
34
|
-
* Every block is an existing Bloom control asked for one thing:
|
|
35
|
-
*
|
|
36
|
-
* recipient `TextFieldInput`
|
|
37
|
-
* signature `SignaturePad` (this family's one new surface)
|
|
38
|
-
* code `InputOtp` — it already cleans, pads and reports completion
|
|
39
|
-
* photo `SortablePhotoGrid` — the app owns the picker, the grid owns
|
|
40
|
-
* the order, the per-photo upload state and the retry
|
|
41
|
-
* note `Textarea`
|
|
42
|
-
*
|
|
43
|
-
* `FileUpload` is deliberately not the photo control. It is a DROP ZONE with an
|
|
44
|
-
* upload lifecycle of its own — right for a document on a desktop, wrong at a
|
|
45
|
-
* door, where the photo comes from a camera the app opens and what has to be on
|
|
46
|
-
* screen afterwards is the picture, its upload state and a way to take another.
|
|
47
|
-
*
|
|
48
|
-
* ## Every proof is a `Field`, so being required is said once
|
|
49
|
-
*
|
|
50
|
-
* The label, the hint, the required mark, the error and the association with
|
|
51
|
-
* the control are the field's (`docs/composition.mdx`). Two of the five draw
|
|
52
|
-
* SEVERAL controls — the signature is a pad and a name, the photo is a grid —
|
|
53
|
-
* so those fields are `multiple`: one id on three inputs is invalid, and one
|
|
54
|
-
* error described by three inputs is announced three times.
|
|
55
|
-
*
|
|
56
|
-
* ## The confirm control is never disabled
|
|
57
|
-
*
|
|
58
|
-
* It fires `onSubmit` on every press, with `missing` filled in. A disabled
|
|
59
|
-
* confirm is the failure mode this avoids: the reader presses, nothing happens,
|
|
60
|
-
* and nothing on screen says why — least of all to a screen reader, which is
|
|
61
|
-
* told only that a button is dimmed. Pressing with something outstanding puts
|
|
62
|
-
* the error on each missing field AND the summary at the bottom, so the answer
|
|
63
|
-
* arrives in the same gesture that asked the question.
|
|
64
|
-
*
|
|
65
|
-
* The errors appear only AFTER the first press. A form that is red before it
|
|
66
|
-
* has been filled in is a form that is wrong about the reader.
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
function ProofOfDeliveryComponent({
|
|
70
|
-
proofs = PROOF_ORDER,
|
|
71
|
-
required = [],
|
|
72
|
-
value: valueProp,
|
|
73
|
-
defaultValue,
|
|
74
|
-
onChange,
|
|
75
|
-
onSubmit,
|
|
76
|
-
onAddPhoto,
|
|
77
|
-
onRetryPhoto,
|
|
78
|
-
codeLength = 4,
|
|
79
|
-
signatureHeight,
|
|
80
|
-
maxPhotos = 4,
|
|
81
|
-
submitting = false,
|
|
82
|
-
disabled = false,
|
|
83
|
-
title,
|
|
84
|
-
description,
|
|
85
|
-
actions,
|
|
86
|
-
labels: labelOverrides,
|
|
87
|
-
accessibilityLabel: accessibilityLabelProp,
|
|
88
|
-
style,
|
|
89
|
-
testID
|
|
90
|
-
}) {
|
|
91
|
-
const {
|
|
92
|
-
messages
|
|
93
|
-
} = useMessages(PROOF_OF_DELIVERY_MESSAGES);
|
|
94
|
-
const accessibilityLabel = accessibilityLabelProp ?? messages.proofOfDelivery;
|
|
95
|
-
const theme = useTheme();
|
|
96
|
-
const surface = useSurfaceFill();
|
|
97
|
-
const paint = useMemo(() => resolveProofPaint(theme, surface), [theme, surface]);
|
|
98
|
-
const labels = useMemo(() => ({
|
|
99
|
-
...messages.labels,
|
|
100
|
-
...labelOverrides
|
|
101
|
-
}), [messages, labelOverrides]);
|
|
102
|
-
const [partial, setPartial] = useControllableState({
|
|
103
|
-
value: valueProp,
|
|
104
|
-
defaultValue: defaultValue ?? {},
|
|
105
|
-
onChange: onChange
|
|
106
|
-
});
|
|
107
|
-
const value = useMemo(() => completeProofValue(partial), [partial]);
|
|
108
|
-
// Errors appear only once a confirm has been refused; see the note above.
|
|
109
|
-
const [asked, setAsked] = useState(false);
|
|
110
|
-
const shown = useMemo(() => orderProofs(proofs), [proofs]);
|
|
111
|
-
const missing = useMemo(() => missingProofs(value, required, shown, codeLength), [value, required, shown, codeLength]);
|
|
112
|
-
const patch = useCallback(next => setPartial({
|
|
113
|
-
...value,
|
|
114
|
-
...next
|
|
115
|
-
}), [setPartial, value]);
|
|
116
|
-
const submit = useCallback(() => {
|
|
117
|
-
setAsked(true);
|
|
118
|
-
onSubmit?.({
|
|
119
|
-
...value,
|
|
120
|
-
missing
|
|
121
|
-
});
|
|
122
|
-
}, [missing, onSubmit, value]);
|
|
123
|
-
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
124
|
-
const errorFor = kind => asked && missing.includes(kind) ? labels.missing : undefined;
|
|
125
|
-
const isRequired = kind => required.includes(kind);
|
|
126
|
-
const block = kind => {
|
|
127
|
-
switch (kind) {
|
|
128
|
-
case 'recipient':
|
|
129
|
-
return /*#__PURE__*/_jsx(Field, {
|
|
130
|
-
label: labels.recipient,
|
|
131
|
-
required: isRequired(kind),
|
|
132
|
-
requiredLabel: labelOverrides?.required,
|
|
133
|
-
error: errorFor(kind),
|
|
134
|
-
disabled: disabled,
|
|
135
|
-
children: /*#__PURE__*/_jsx(TextFieldInput, {
|
|
136
|
-
label: labels.recipient,
|
|
137
|
-
placeholder: labels.recipientPlaceholder,
|
|
138
|
-
value: value.recipient,
|
|
139
|
-
onChangeText: text => patch({
|
|
140
|
-
recipient: text
|
|
141
|
-
}),
|
|
142
|
-
autoCapitalize: "words",
|
|
143
|
-
testID: id('recipient')
|
|
144
|
-
})
|
|
145
|
-
}, kind);
|
|
146
|
-
case 'signature':
|
|
147
|
-
return /*#__PURE__*/_jsx(Field, {
|
|
148
|
-
label: labels.signature,
|
|
149
|
-
required: isRequired(kind),
|
|
150
|
-
requiredLabel: labelOverrides?.required,
|
|
151
|
-
error: errorFor(kind),
|
|
152
|
-
disabled: disabled
|
|
153
|
-
// The pad AND the typed name: one id on two controls is invalid.
|
|
154
|
-
,
|
|
155
|
-
multiple: true,
|
|
156
|
-
children: /*#__PURE__*/_jsx(SignaturePad, {
|
|
157
|
-
value: value.signature,
|
|
158
|
-
onChange: signature => patch({
|
|
159
|
-
signature
|
|
160
|
-
}),
|
|
161
|
-
height: signatureHeight,
|
|
162
|
-
disabled: disabled,
|
|
163
|
-
labels: labelOverrides,
|
|
164
|
-
testID: id('signature')
|
|
165
|
-
})
|
|
166
|
-
}, kind);
|
|
167
|
-
case 'code':
|
|
168
|
-
return /*#__PURE__*/_jsx(Field, {
|
|
169
|
-
label: labels.code,
|
|
170
|
-
description: labels.codeHint,
|
|
171
|
-
required: isRequired(kind),
|
|
172
|
-
requiredLabel: labelOverrides?.required,
|
|
173
|
-
error: errorFor(kind),
|
|
174
|
-
disabled: disabled,
|
|
175
|
-
multiple: true,
|
|
176
|
-
children: /*#__PURE__*/_jsx(InputOtp, {
|
|
177
|
-
length: codeLength,
|
|
178
|
-
value: value.code,
|
|
179
|
-
onChange: code => patch({
|
|
180
|
-
code
|
|
181
|
-
}),
|
|
182
|
-
accessibilityLabel: labels.code,
|
|
183
|
-
testID: id('code')
|
|
184
|
-
})
|
|
185
|
-
}, kind);
|
|
186
|
-
case 'photo':
|
|
187
|
-
return /*#__PURE__*/_jsx(Field, {
|
|
188
|
-
label: labels.photo,
|
|
189
|
-
description: labels.photoHint,
|
|
190
|
-
required: isRequired(kind),
|
|
191
|
-
requiredLabel: labelOverrides?.required,
|
|
192
|
-
error: errorFor(kind),
|
|
193
|
-
disabled: disabled,
|
|
194
|
-
multiple: true,
|
|
195
|
-
children: /*#__PURE__*/_jsx(SortablePhotoGrid, {
|
|
196
|
-
photos: value.photos,
|
|
197
|
-
onReorder: photos => patch({
|
|
198
|
-
photos
|
|
199
|
-
}),
|
|
200
|
-
onRemove: photoId => patch({
|
|
201
|
-
photos: value.photos.filter(photo => photo.id !== photoId)
|
|
202
|
-
}),
|
|
203
|
-
onRetry: onRetryPhoto,
|
|
204
|
-
onAdd: onAddPhoto,
|
|
205
|
-
maxPhotos: maxPhotos,
|
|
206
|
-
disabled: disabled,
|
|
207
|
-
accessibilityLabel: labels.photo,
|
|
208
|
-
testID: id('photo')
|
|
209
|
-
})
|
|
210
|
-
}, kind);
|
|
211
|
-
case 'note':
|
|
212
|
-
return /*#__PURE__*/_jsx(Field, {
|
|
213
|
-
label: labels.note,
|
|
214
|
-
required: isRequired(kind),
|
|
215
|
-
requiredLabel: labelOverrides?.required,
|
|
216
|
-
error: errorFor(kind),
|
|
217
|
-
disabled: disabled,
|
|
218
|
-
children: /*#__PURE__*/_jsx(Textarea
|
|
219
|
-
// No `label`: `Textarea` DRAWS its own above the box whatever the
|
|
220
|
-
// field says, so passing it here put "Note" on screen twice. The
|
|
221
|
-
// field supplies both the visible label and, through
|
|
222
|
-
// `useFieldMembership`, the announced name.
|
|
223
|
-
, {
|
|
224
|
-
placeholder: labels.notePlaceholder,
|
|
225
|
-
value: value.note,
|
|
226
|
-
onChangeText: text => patch({
|
|
227
|
-
note: text
|
|
228
|
-
}),
|
|
229
|
-
testID: id('note')
|
|
230
|
-
})
|
|
231
|
-
}, kind);
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
const summary = asked && missing.length > 0 ?
|
|
235
|
-
/*#__PURE__*/
|
|
236
|
-
// `role="alert"` so the answer reaches a screen reader in the same
|
|
237
|
-
// gesture that asked for it; `Admonition` paints it and says nothing.
|
|
238
|
-
// `aria-live` too: a View carrying only a role is flattened away on
|
|
239
|
-
// native (Fabric keeps a view for a live region, not for a role), so the
|
|
240
|
-
// region would never reach the platform.
|
|
241
|
-
_jsx(View, {
|
|
242
|
-
role: "alert",
|
|
243
|
-
"aria-live": "assertive",
|
|
244
|
-
testID: id('missing'),
|
|
245
|
-
children: /*#__PURE__*/_jsx(Admonition, {
|
|
246
|
-
type: "error",
|
|
247
|
-
children: `${labels.missingSummary(missing.length)}: ${missing.map(kind => labels[kind]).join(', ')}.`
|
|
248
|
-
})
|
|
249
|
-
}) : null;
|
|
250
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
251
|
-
collapsable: false,
|
|
252
|
-
role: "group",
|
|
253
|
-
accessibilityLabel: accessibilityLabel,
|
|
254
|
-
style: [{
|
|
255
|
-
gap: PROOF_GEOMETRY.gap
|
|
256
|
-
}, style],
|
|
257
|
-
testID: testID,
|
|
258
|
-
children: [title || description ? /*#__PURE__*/_jsxs(View, {
|
|
259
|
-
style: {
|
|
260
|
-
gap: 4
|
|
261
|
-
},
|
|
262
|
-
testID: id('heading'),
|
|
263
|
-
children: [title ? /*#__PURE__*/_jsx(Text, {
|
|
264
|
-
variant: "title-3-semibold",
|
|
265
|
-
role: "heading",
|
|
266
|
-
"aria-level": 2,
|
|
267
|
-
style: {
|
|
268
|
-
color: paint.text
|
|
269
|
-
},
|
|
270
|
-
children: title
|
|
271
|
-
}) : null, description ? /*#__PURE__*/_jsx(Text, {
|
|
272
|
-
variant: "body-regular",
|
|
273
|
-
style: {
|
|
274
|
-
color: paint.textSecondary
|
|
275
|
-
},
|
|
276
|
-
children: description
|
|
277
|
-
}) : null]
|
|
278
|
-
}) : null, shown.map(kind => block(kind)), summary, actions != null ? /*#__PURE__*/_jsx(InteractionBoundary, {
|
|
279
|
-
disabled: disabled || submitting,
|
|
280
|
-
children: actions
|
|
281
|
-
}) : /*#__PURE__*/_jsx(Button, {
|
|
282
|
-
size: "lg",
|
|
283
|
-
fullWidth: true,
|
|
284
|
-
onPress: submit
|
|
285
|
-
// `submitting` is the ONE thing that stops the press: a second
|
|
286
|
-
// confirm would record the same delivery twice. Something missing
|
|
287
|
-
// does not stop it — it answers it.
|
|
288
|
-
,
|
|
289
|
-
disabled: disabled || submitting,
|
|
290
|
-
accessibilityLabel: labels.submit,
|
|
291
|
-
testID: id('submit'),
|
|
292
|
-
tone: "accent",
|
|
293
|
-
appearance: "solid",
|
|
294
|
-
children: labels.submit
|
|
295
|
-
})]
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
export const ProofOfDelivery = /*#__PURE__*/memo(ProofOfDeliveryComponent);
|
|
299
|
-
ProofOfDelivery.displayName = 'ProofOfDelivery';
|
|
300
|
-
//# sourceMappingURL=ProofOfDelivery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useCallback","useMemo","useState","View","Admonition","Button","Field","useControllableState","InputOtp","useMessages","SortablePhotoGrid","InteractionBoundary","useSurfaceFill","TextFieldInput","Textarea","useTheme","Text","PROOF_GEOMETRY","PROOF_ORDER","PROOF_OF_DELIVERY_MESSAGES","SignaturePad","completeProofValue","missingProofs","orderProofs","resolveProofPaint","jsx","_jsx","jsxs","_jsxs","ProofOfDeliveryComponent","proofs","required","value","valueProp","defaultValue","onChange","onSubmit","onAddPhoto","onRetryPhoto","codeLength","signatureHeight","maxPhotos","submitting","disabled","title","description","actions","labels","labelOverrides","accessibilityLabel","accessibilityLabelProp","style","testID","messages","proofOfDelivery","theme","surface","paint","partial","setPartial","asked","setAsked","shown","missing","patch","next","submit","id","part","undefined","errorFor","kind","includes","isRequired","block","label","recipient","requiredLabel","error","children","placeholder","recipientPlaceholder","onChangeText","text","autoCapitalize","signature","multiple","height","code","codeHint","length","photo","photoHint","photos","onReorder","onRemove","photoId","filter","onRetry","onAdd","note","notePlaceholder","summary","role","type","missingSummary","map","join","collapsable","gap","variant","color","textSecondary","size","fullWidth","onPress","tone","appearance","ProofOfDelivery","displayName"],"sourceRoot":"../../../src","sources":["proof-of-delivery/ProofOfDelivery.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACnE,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,UAAU,QAAQ,wBAAe;AAC1C,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,KAAK,QAAQ,mBAAU;AAChC,SAASC,oBAAoB,QAAQ,oCAAiC;AACtE,SAASC,QAAQ,QAAQ,uBAAc;AACvC,SAASC,WAAW,QAAQ,uBAAoB;AAChD,SAASC,iBAAiB,QAAQ,4BAAmB;AACrD,SAASC,mBAAmB,QAAQ,mCAAgC;AACpE,SAASC,cAAc,QAAQ,6BAA0B;AACzD,SAASC,cAAc,QAAQ,wBAAe;AAC9C,SAASC,QAAQ,QAAQ,sBAAa;AACtC,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AAEpC,SAASC,cAAc,EAAEC,WAAW,QAAQ,gBAAa;AACzD,SAASC,0BAA0B,QAAQ,eAAY;AACvD,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,SAASC,kBAAkB,EAAEC,aAAa,EAAEC,W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CAAC4C,GAAG,CAAEnC,IAAI,IAAKG,KAAK,CAACH,IAAI,CAAC,CAAC,EAEhC+B,OAAO,EAEPxD,OAAO,IAAI,IAAI,gBACdpB,IAAA,CAACf,mBAAmB;MAACgC,QAAQ,EAAEA,QAAQ,IAAID,UAAW;MAAAqC,QAAA,EAAEjC;IAAO,CAAsB,CAAC,gBAEtFpB,IAAA,CAACrB,MAAM;MACL4G,IAAI,EAAC,IAAI;MACTC,SAAS;MACTC,OAAO,EAAEjD;MACT;MACA;MACA;MAAA;MACAvB,QAAQ,EAAEA,QAAQ,IAAID,UAAW;MACjCO,kBAAkB,EAAEF,MAAM,CAACmB,MAAO;MAClCd,MAAM,EAAEe,EAAE,CAAC,QAAQ,CAAE;MACrBiD,IAAI,EAAC,QAAQ;MACbC,UAAU,EAAC,OAAO;MAAAtC,QAAA,EAEjBhC,MAAM,CAACmB;IAAM,CACR,CACT;EAAA,CACG,CAAC;AAEX;AAEA,OAAO,MAAMoD,eAAe,gBAAGvH,IAAI,CAAC8B,wBAAwB,CAAC;AAC7DyF,eAAe,CAACC,WAAW,GAAG,iBAAiB","ignoreList":[]}
|
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { memo, useCallback, useMemo, useRef, useState } from 'react';
|
|
4
|
-
import { PanResponder, View } from 'react-native';
|
|
5
|
-
import Svg, { Line, Path } from 'react-native-svg';
|
|
6
|
-
import { Button } from '../button';
|
|
7
|
-
import { Field } from "../field/index.js";
|
|
8
|
-
import { useControllableState } from "../hooks/use-controllable-state.js";
|
|
9
|
-
import { RiDeleteBinLine } from "../icons/remix/RiDeleteBinLine.js";
|
|
10
|
-
import { useMessages } from "../locale/messages.js";
|
|
11
|
-
import { SurfaceLevelProvider, useSurfaceFill } from "../styles/surface-levels.js";
|
|
12
|
-
import { DISABLED_OPACITY } from "../styles/tokens.js";
|
|
13
|
-
import { useSurfacePresence } from "../surface/use-surface-presence.js";
|
|
14
|
-
import { TextFieldInput } from "../text-field/index.js";
|
|
15
|
-
import { useTheme } from "../theme/use-theme.js";
|
|
16
|
-
import { Text } from "../typography/index.js";
|
|
17
|
-
import { PROOF_GEOMETRY } from "./constants.js";
|
|
18
|
-
import { PROOF_OF_DELIVERY_MESSAGES } from "./messages.js";
|
|
19
|
-
import { EMPTY_SIGNATURE, hasSignatureInk, resolveProofPaint, shouldKeepSignaturePoint, signaturePath } from "./shared.js";
|
|
20
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
-
/**
|
|
22
|
-
* A signature, drawn with a finger — and the same signature typed, for everyone
|
|
23
|
-
* who cannot draw one.
|
|
24
|
-
*
|
|
25
|
-
* pad a filled surface at the next level up, radius 12, with a baseline
|
|
26
|
-
* hairline at 72% of its height: a signature is written ON a line,
|
|
27
|
-
* and without one a finger starts wherever it lands
|
|
28
|
-
* ink one `<Path>` per stroke, quadratic through the midpoints of the
|
|
29
|
-
* samples (`signaturePath`), round caps and joins, painted in the
|
|
30
|
-
* TEXT colour — a signature is writing, not a brand mark
|
|
31
|
-
* hint under the pad, replaced by "Signed" once there is ink
|
|
32
|
-
* clear a `text` `Button`, drawn only once there is something to clear
|
|
33
|
-
* typed a `TextFieldInput` under it all, always present
|
|
34
|
-
*
|
|
35
|
-
* ## The typed field is not a fallback, it is the other half of the control
|
|
36
|
-
*
|
|
37
|
-
* A pad is a pointer affordance: there is no keyboard gesture for it, a screen
|
|
38
|
-
* reader has nothing to announce but an empty box, and a motor impairment makes
|
|
39
|
-
* it unusable. So both paths are drawn AT ONCE rather than behind a mode
|
|
40
|
-
* switch — a mode a reader has to find is a mode most readers never find — and
|
|
41
|
-
* `isSignatureGiven` treats ink and a typed name as the same answer.
|
|
42
|
-
*
|
|
43
|
-
* `typed={false}` removes it. That is a deliberate escape hatch for an app that
|
|
44
|
-
* collects the name in a field of its own on the same screen, and it is the
|
|
45
|
-
* only way to ship this control with no accessible path at all.
|
|
46
|
-
*
|
|
47
|
-
* ## The pointer
|
|
48
|
-
*
|
|
49
|
-
* One `PanResponder`, which react-native-web routes from real mouse, touch and
|
|
50
|
-
* pen events through its own responder system — so the same file draws on both
|
|
51
|
-
* platforms and there is no `.web` fork to keep in step. Points arrive in the
|
|
52
|
-
* pad's own coordinates (`locationX` / `locationY`, which RNW measures against
|
|
53
|
-
* the responder node), so a scrolled or transformed page needs no correction.
|
|
54
|
-
*
|
|
55
|
-
* Samples closer together than 2px are dropped (`shouldKeepSignaturePoint`):
|
|
56
|
-
* a resting finger reports the same coordinate many times a second, and every
|
|
57
|
-
* repeat is a zero-length curve the smoothing then has to average out.
|
|
58
|
-
*
|
|
59
|
-
* **A jest test cannot see any of this.** The path geometry is pure and pinned
|
|
60
|
-
* in `src/__tests__/ProofOfDelivery.test.tsx`; that ink actually lands under a
|
|
61
|
-
* real pointer is pinned in `scripts/verify-signature-pad.mjs`, with
|
|
62
|
-
* `page.mouse.down/move/up` and the emitted `<path d>`.
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
const asPoint = event => ({
|
|
66
|
-
x: event.nativeEvent.locationX,
|
|
67
|
-
y: event.nativeEvent.locationY
|
|
68
|
-
});
|
|
69
|
-
function SignaturePadComponent({
|
|
70
|
-
value: valueProp,
|
|
71
|
-
defaultValue,
|
|
72
|
-
onChange,
|
|
73
|
-
onStrokeEnd,
|
|
74
|
-
height = PROOF_GEOMETRY.padHeight,
|
|
75
|
-
ink,
|
|
76
|
-
strokeWidth = PROOF_GEOMETRY.strokeWidth,
|
|
77
|
-
typed = true,
|
|
78
|
-
disabled = false,
|
|
79
|
-
labels: labelOverrides,
|
|
80
|
-
accessibilityLabel,
|
|
81
|
-
style,
|
|
82
|
-
testID
|
|
83
|
-
}) {
|
|
84
|
-
const theme = useTheme();
|
|
85
|
-
const surface = useSurfaceFill();
|
|
86
|
-
const paint = useMemo(() => resolveProofPaint(theme, surface), [theme, surface]);
|
|
87
|
-
const {
|
|
88
|
-
messages
|
|
89
|
-
} = useMessages(PROOF_OF_DELIVERY_MESSAGES);
|
|
90
|
-
const labels = useMemo(() => ({
|
|
91
|
-
...messages.labels,
|
|
92
|
-
...labelOverrides
|
|
93
|
-
}), [messages, labelOverrides]);
|
|
94
|
-
const [value, setValue] = useControllableState({
|
|
95
|
-
value: valueProp,
|
|
96
|
-
defaultValue: defaultValue ?? EMPTY_SIGNATURE,
|
|
97
|
-
onChange
|
|
98
|
-
});
|
|
99
|
-
const [size, setSize] = useState(null);
|
|
100
|
-
/** The stroke under the finger, kept in state so the ink follows it. */
|
|
101
|
-
const [live, setLive] = useState([]);
|
|
102
|
-
|
|
103
|
-
// The responder is created ONCE — its handlers close over the first render —
|
|
104
|
-
// so everything they need goes through a ref that every render refreshes.
|
|
105
|
-
const latest = useRef({
|
|
106
|
-
value,
|
|
107
|
-
setValue,
|
|
108
|
-
onStrokeEnd,
|
|
109
|
-
disabled
|
|
110
|
-
});
|
|
111
|
-
latest.current = {
|
|
112
|
-
value,
|
|
113
|
-
setValue,
|
|
114
|
-
onStrokeEnd,
|
|
115
|
-
disabled
|
|
116
|
-
};
|
|
117
|
-
const liveRef = useRef([]);
|
|
118
|
-
const responder = useMemo(() => PanResponder.create({
|
|
119
|
-
onStartShouldSetPanResponder: () => !latest.current.disabled,
|
|
120
|
-
onMoveShouldSetPanResponder: () => !latest.current.disabled,
|
|
121
|
-
// The pad KEEPS the gesture once it has it: a signature crosses a
|
|
122
|
-
// scroller and an ancestor that could steal it mid-word would break the
|
|
123
|
-
// stroke in half and leave the second half unrecorded.
|
|
124
|
-
onPanResponderTerminationRequest: () => false,
|
|
125
|
-
onPanResponderGrant: event => {
|
|
126
|
-
if (latest.current.disabled) return;
|
|
127
|
-
const point = asPoint(event);
|
|
128
|
-
liveRef.current = [point];
|
|
129
|
-
setLive(liveRef.current);
|
|
130
|
-
},
|
|
131
|
-
onPanResponderMove: event => {
|
|
132
|
-
if (latest.current.disabled) return;
|
|
133
|
-
const point = asPoint(event);
|
|
134
|
-
const last = liveRef.current[liveRef.current.length - 1];
|
|
135
|
-
if (!shouldKeepSignaturePoint(last, point)) return;
|
|
136
|
-
liveRef.current = [...liveRef.current, point];
|
|
137
|
-
setLive(liveRef.current);
|
|
138
|
-
},
|
|
139
|
-
onPanResponderRelease: () => {
|
|
140
|
-
const stroke = liveRef.current;
|
|
141
|
-
liveRef.current = [];
|
|
142
|
-
setLive([]);
|
|
143
|
-
if (stroke.length === 0) return;
|
|
144
|
-
const current = latest.current.value;
|
|
145
|
-
latest.current.setValue({
|
|
146
|
-
...current,
|
|
147
|
-
strokes: [...current.strokes, stroke]
|
|
148
|
-
});
|
|
149
|
-
latest.current.onStrokeEnd?.(stroke);
|
|
150
|
-
},
|
|
151
|
-
onPanResponderTerminate: () => {
|
|
152
|
-
liveRef.current = [];
|
|
153
|
-
setLive([]);
|
|
154
|
-
}
|
|
155
|
-
}), []);
|
|
156
|
-
const onLayout = useCallback(event => {
|
|
157
|
-
const {
|
|
158
|
-
width,
|
|
159
|
-
height: measured
|
|
160
|
-
} = event.nativeEvent.layout;
|
|
161
|
-
setSize(prev => prev && prev.width === width && prev.height === measured ? prev : {
|
|
162
|
-
width,
|
|
163
|
-
height: measured
|
|
164
|
-
});
|
|
165
|
-
}, []);
|
|
166
|
-
const clear = useCallback(() => {
|
|
167
|
-
liveRef.current = [];
|
|
168
|
-
setLive([]);
|
|
169
|
-
setValue({
|
|
170
|
-
...value,
|
|
171
|
-
strokes: []
|
|
172
|
-
});
|
|
173
|
-
}, [setValue, value]);
|
|
174
|
-
const strokes = value.strokes;
|
|
175
|
-
const hasInk = hasSignatureInk(value) || live.length > 0;
|
|
176
|
-
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
177
|
-
const inkColor = ink ?? paint.padText.text;
|
|
178
|
-
const padName = accessibilityLabel ?? labels.signaturePad;
|
|
179
|
-
// Disabled dims through presence: the pad's field paints the material, and an
|
|
180
|
-
// opacity on this block would make it the field's backdrop root.
|
|
181
|
-
const dim = useSurfacePresence(disabled ? DISABLED_OPACITY : 1);
|
|
182
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
183
|
-
ref: dim.ref,
|
|
184
|
-
style: [{
|
|
185
|
-
gap: PROOF_GEOMETRY.blockGap
|
|
186
|
-
}, dim.style, style],
|
|
187
|
-
testID: testID,
|
|
188
|
-
children: [/*#__PURE__*/_jsx(SurfaceLevelProvider, {
|
|
189
|
-
level: 1,
|
|
190
|
-
fill: paint.pad,
|
|
191
|
-
children: /*#__PURE__*/_jsx(View, {
|
|
192
|
-
onLayout: onLayout,
|
|
193
|
-
...responder.panHandlers,
|
|
194
|
-
// The drawn signature IS an image: it is not operable by keyboard and
|
|
195
|
-
// holds no state ARIA can read, so it announces what it is and the
|
|
196
|
-
// typed field below carries the input semantics.
|
|
197
|
-
role: "img",
|
|
198
|
-
accessibilityLabel: hasInk ? `${padName}, ${labels.signed}` : padName,
|
|
199
|
-
style: {
|
|
200
|
-
height,
|
|
201
|
-
width: '100%',
|
|
202
|
-
overflow: 'hidden',
|
|
203
|
-
borderRadius: PROOF_GEOMETRY.padRadius,
|
|
204
|
-
// A hairline as well as the fill: one surface step up from the page
|
|
205
|
-
// is a small step by design, and without an EDGE the pad reads as a
|
|
206
|
-
// gap in the form rather than as somewhere to write. Every other
|
|
207
|
-
// control around it draws one.
|
|
208
|
-
borderWidth: 1,
|
|
209
|
-
borderColor: paint.hairline,
|
|
210
|
-
backgroundColor: paint.pad
|
|
211
|
-
},
|
|
212
|
-
testID: id('pad'),
|
|
213
|
-
children: size ? /*#__PURE__*/_jsxs(Svg, {
|
|
214
|
-
width: size.width,
|
|
215
|
-
height: size.height,
|
|
216
|
-
pointerEvents: "none",
|
|
217
|
-
children: [/*#__PURE__*/_jsx(Line, {
|
|
218
|
-
x1: PROOF_GEOMETRY.baselineInset,
|
|
219
|
-
x2: Math.max(PROOF_GEOMETRY.baselineInset, size.width - PROOF_GEOMETRY.baselineInset),
|
|
220
|
-
y1: size.height * PROOF_GEOMETRY.baseline,
|
|
221
|
-
y2: size.height * PROOF_GEOMETRY.baseline,
|
|
222
|
-
stroke: paint.hairline,
|
|
223
|
-
strokeWidth: 1,
|
|
224
|
-
testID: id('baseline')
|
|
225
|
-
}), strokes.map((stroke, index) => /*#__PURE__*/_jsx(Path, {
|
|
226
|
-
d: signaturePath(stroke),
|
|
227
|
-
stroke: inkColor,
|
|
228
|
-
strokeWidth: strokeWidth,
|
|
229
|
-
strokeLinecap: "round",
|
|
230
|
-
strokeLinejoin: "round",
|
|
231
|
-
fill: "none",
|
|
232
|
-
testID: id(`stroke-${index}`)
|
|
233
|
-
}, index)), live.length > 0 ? /*#__PURE__*/_jsx(Path, {
|
|
234
|
-
d: signaturePath(live),
|
|
235
|
-
stroke: inkColor,
|
|
236
|
-
strokeWidth: strokeWidth,
|
|
237
|
-
strokeLinecap: "round",
|
|
238
|
-
strokeLinejoin: "round",
|
|
239
|
-
fill: "none",
|
|
240
|
-
testID: id('stroke-live')
|
|
241
|
-
}) : null]
|
|
242
|
-
}) : null
|
|
243
|
-
})
|
|
244
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
245
|
-
style: {
|
|
246
|
-
flexDirection: 'row',
|
|
247
|
-
alignItems: 'center',
|
|
248
|
-
justifyContent: 'space-between',
|
|
249
|
-
gap: 8
|
|
250
|
-
},
|
|
251
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
252
|
-
variant: "body-2-regular",
|
|
253
|
-
numberOfLines: 1,
|
|
254
|
-
style: {
|
|
255
|
-
flexShrink: 1,
|
|
256
|
-
color: paint.textSecondary
|
|
257
|
-
},
|
|
258
|
-
testID: id('hint'),
|
|
259
|
-
children: hasInk ? labels.signed : labels.signatureHint
|
|
260
|
-
}), hasInk ? /*#__PURE__*/_jsx(Button, {
|
|
261
|
-
size: "sm",
|
|
262
|
-
leadingIcon: RiDeleteBinLine,
|
|
263
|
-
onPress: clear,
|
|
264
|
-
disabled: disabled,
|
|
265
|
-
accessibilityLabel: labels.clear,
|
|
266
|
-
testID: id('clear'),
|
|
267
|
-
tone: "accent",
|
|
268
|
-
appearance: "plain",
|
|
269
|
-
children: labels.clear
|
|
270
|
-
}) : null]
|
|
271
|
-
}), typed ?
|
|
272
|
-
/*#__PURE__*/
|
|
273
|
-
// Its OWN `Field`, nested inside whatever field the pad is in. Without
|
|
274
|
-
// it the typed input inherits the outer field's label — `TextFieldInput`
|
|
275
|
-
// resolves its name as `field.labelText ?? label` and offers the caller
|
|
276
|
-
// no override — so the words "Or type your name" would be drawn nowhere
|
|
277
|
-
// and announced as "Signature", the same as the pad beside it.
|
|
278
|
-
_jsx(Field, {
|
|
279
|
-
label: labels.typeName,
|
|
280
|
-
disabled: disabled,
|
|
281
|
-
children: /*#__PURE__*/_jsx(TextFieldInput, {
|
|
282
|
-
label: labels.typeName,
|
|
283
|
-
placeholder: labels.typeNamePlaceholder,
|
|
284
|
-
value: value.typedName ?? '',
|
|
285
|
-
onChangeText: text => setValue({
|
|
286
|
-
...value,
|
|
287
|
-
typedName: text
|
|
288
|
-
}),
|
|
289
|
-
disabled: disabled,
|
|
290
|
-
autoCapitalize: "words",
|
|
291
|
-
testID: id('typed')
|
|
292
|
-
})
|
|
293
|
-
}) : null]
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
export const SignaturePad = /*#__PURE__*/memo(SignaturePadComponent);
|
|
297
|
-
SignaturePad.displayName = 'SignaturePad';
|
|
298
|
-
//# sourceMappingURL=SignaturePad.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useCallback","useMemo","useRef","useState","PanResponder","View","Svg","Line","Path","Button","Field","useControllableState","RiDeleteBinLine","useMessages","SurfaceLevelProvider","useSurfaceFill","DISABLED_OPACITY","useSurfacePresence","TextFieldInput","useTheme","Text","PROOF_GEOMETRY","PROOF_OF_DELIVERY_MESSAGES","EMPTY_SIGNATURE","hasSignatureInk","resolveProofPaint","shouldKeepSignaturePoint","signaturePath","jsx","_jsx","jsxs","_jsxs","asPoint","event","x","nativeEvent","locationX","y","locationY","SignaturePadComponent","value","valueProp","defaultValue","onChange","onStrokeEnd","height","padHeight","ink","strokeWidth","typed","disabled","labels","labelOverrides","accessibilityLabel","style","testID","theme","surface","paint","messages","setValue","size","setSize","live","setLive","latest","current","liveRef","responder","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponder","onPanResponderTerminationRequest","onPanResponderGrant","point","onPanResponderMove","last","length","onPanResponderRelease","stroke","strokes","onPanResponderTerminate","onLayout","width","measured","layout","prev","clear","hasInk","id","part","undefined","inkColor","padText","text","padName","signaturePad","dim","ref","gap","blockGap","children","level","fill","pad","panHandlers","role","signed","overflow","borderRadius","padRadius","borderWidth","borderColor","hairline","backgroundColor","pointerEvents","x1","baselineInset","x2","Math","max","y1","baseline","y2","map","index","d","strokeLinecap","strokeLinejoin","flexDirection","alignItems","justifyContent","variant","numberOfLines","flexShrink","color","textSecondary","signatureHint","leadingIcon","onPress","tone","appearance","label","typeName","placeholder","typeNamePlaceholder","typedName","onChangeText","autoCapitalize","SignaturePad","displayName"],"sourceRoot":"../../../src","sources":["proof-of-delivery/SignaturePad.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC3E,SACEC,YAAY,EACZC,IAAI,QAGC,cAAc;AACrB,OAAOC,GAAG,IAAIC,IAAI,EAAEC,IAAI,QAAQ,kBAAkB;AAElD,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,KAAK,QAAQ,mBAAU;AAChC,SAASC,oBAAoB,QAAQ,oCAAiC;AACtE,SAASC,eAAe,QAAQ,mCAAgC;AAChE,SAASC,WAAW,QAAQ,uBAAoB;AAChD,SAASC,oBAAoB,EAAEC,cAAc,QAAQ,6BAA0B;AAC/E,SAASC,gBAAgB,QAAQ,qBAAkB;AACnD,SAASC,kBAAkB,QAAQ,oCAAiC;AACpE,SAASC,cAAc,QAAQ,wBAAe;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