@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["delivery-slot/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { memo, useMemo } from 'react';
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
import { useMessages } from "../locale/messages.js";
|
|
6
|
-
import { PriceSummary } from "../price-breakdown/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 { EARNINGS_MESSAGES } from "./messages.js";
|
|
11
|
-
import { resolveEarningsPaint } from "./shared.js";
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
/**
|
|
14
|
-
* What the period's money came from, by kind.
|
|
15
|
-
*
|
|
16
|
-
* It is `price-breakdown`'s `PriceSummary` under a heading, and that is the
|
|
17
|
-
* whole component. A courier's earnings are an ITEMISATION — jobs, tips,
|
|
18
|
-
* bonuses, adjustments, each a label and an amount the app formatted — which is
|
|
19
|
-
* the same object as a fare's itemisation seen from the other side. Writing a
|
|
20
|
-
* second list of label-and-amount rows here would give Bloom two answers to one
|
|
21
|
-
* question, and only one of them would know about `estimated`, `pending`, the
|
|
22
|
-
* discount tone and the info popover.
|
|
23
|
-
*
|
|
24
|
-
* heading `body-semibold`, 8 over the list; omitted with `title={null}`
|
|
25
|
-
* lines `PriceSummary`, which owns the rows, the rule and the total
|
|
26
|
-
*
|
|
27
|
-
* **NO TOTAL BY DEFAULT.** Inside `EarningsSummary` the figure above already IS
|
|
28
|
-
* the total, and a second one under the list is the same number twice. Pass
|
|
29
|
-
* `total` when the breakdown stands on its own.
|
|
30
|
-
*/
|
|
31
|
-
function EarningsBreakdownComponent({
|
|
32
|
-
lines,
|
|
33
|
-
total,
|
|
34
|
-
title,
|
|
35
|
-
collapsible = false,
|
|
36
|
-
defaultExpanded = false,
|
|
37
|
-
labels: labelOverrides,
|
|
38
|
-
accessibilityLabel,
|
|
39
|
-
style,
|
|
40
|
-
testID
|
|
41
|
-
}) {
|
|
42
|
-
const {
|
|
43
|
-
messages
|
|
44
|
-
} = useMessages(EARNINGS_MESSAGES);
|
|
45
|
-
const theme = useTheme();
|
|
46
|
-
const surface = useSurfaceFill();
|
|
47
|
-
const paint = useMemo(() => resolveEarningsPaint(theme, surface), [theme, surface]);
|
|
48
|
-
const labels = useMemo(() => ({
|
|
49
|
-
...messages,
|
|
50
|
-
...labelOverrides
|
|
51
|
-
}), [messages, labelOverrides]);
|
|
52
|
-
const heading = title === undefined ? labels.breakdown : title;
|
|
53
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
54
|
-
style: [{
|
|
55
|
-
gap: 8
|
|
56
|
-
}, style],
|
|
57
|
-
testID: testID,
|
|
58
|
-
children: [heading ? /*#__PURE__*/_jsx(Text, {
|
|
59
|
-
variant: "body-semibold",
|
|
60
|
-
role: "heading",
|
|
61
|
-
"aria-level": 3,
|
|
62
|
-
style: {
|
|
63
|
-
color: paint.text
|
|
64
|
-
},
|
|
65
|
-
testID: testID ? `${testID}-title` : undefined,
|
|
66
|
-
children: heading
|
|
67
|
-
}) : null, /*#__PURE__*/_jsx(PriceSummary, {
|
|
68
|
-
lines: lines,
|
|
69
|
-
total: total,
|
|
70
|
-
collapsible: collapsible,
|
|
71
|
-
defaultExpanded: defaultExpanded,
|
|
72
|
-
accessibilityLabel: accessibilityLabel ?? heading ?? labels.breakdown,
|
|
73
|
-
testID: testID ? `${testID}-lines` : undefined
|
|
74
|
-
})]
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
export const EarningsBreakdown = /*#__PURE__*/memo(EarningsBreakdownComponent);
|
|
78
|
-
EarningsBreakdown.displayName = 'EarningsBreakdown';
|
|
79
|
-
//# sourceMappingURL=EarningsBreakdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useMemo","View","useMessages","PriceSummary","useSurfaceFill","useTheme","Text","EARNINGS_MESSAGES","resolveEarningsPaint","jsx","_jsx","jsxs","_jsxs","EarningsBreakdownComponent","lines","total","title","collapsible","defaultExpanded","labels","labelOverrides","accessibilityLabel","style","testID","messages","theme","surface","paint","heading","undefined","breakdown","gap","children","variant","role","color","text","EarningsBreakdown","displayName"],"sourceRoot":"../../../src","sources":["earnings/EarningsBreakdown.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,WAAW,QAAQ,uBAAoB;AAChD,SAASC,YAAY,QAAQ,6BAAoB;AACjD,SAASC,cAAc,QAAQ,6BAA0B;AACzD,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,iBAAiB,QAAQ,eAAY;AAC9C,SAASC,oBAAoB,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,0BAA0BA,CAAC;EAClCC,KAAK;EACLC,KAAK;EACLC,KAAK;EACLC,WAAW,GAAG,KAAK;EACnBC,eAAe,GAAG,KAAK;EACvBC,MAAM,EAAEC,cAAc;EACtBC,kBAAkB;EAClBC,KAAK;EACLC;AACsB,CAAC,EAAE;EACzB,MAAM;IAAEC;EAAS,CAAC,GAAGtB,WAAW,CAACK,iBAAiB,CAAC;EACnD,MAAMkB,KAAK,GAAGpB,QAAQ,CAAC,CAAC;EACxB,MAAMqB,OAAO,GAAGtB,cAAc,CAAC,CAAC;EAChC,MAAMuB,KAAK,GAAG3B,OAAO,CAAC,MAAMQ,oBAAoB,CAACiB,KAAK,EAAEC,OAAO,CAAC,EAAE,CAACD,KAAK,EAAEC,OAAO,CAAC,CAAC;EACnF,MAAMP,MAAM,GAAGnB,OAAO,CAAC,OAAO;IAAE,GAAGwB,QAAQ;IAAE,GAAGJ;EAAe,CAAC,CAAC,EAAE,CAACI,QAAQ,EAAEJ,cAAc,CAAC,CAAC;EAC9F,MAAMQ,OAAO,GAAGZ,KAAK,KAAKa,SAAS,GAAGV,MAAM,CAACW,SAAS,GAAGd,KAAK;EAE9D,oBACEJ,KAAA,CAACX,IAAI;IAACqB,KAAK,EAAE,CAAC;MAAES,GAAG,EAAE;IAAE,CAAC,EAAET,KAAK,CAAE;IAACC,MAAM,EAAEA,MAAO;IAAAS,QAAA,GAC9CJ,OAAO,gBACNlB,IAAA,CAACJ,IAAI;MACH2B,OAAO,EAAC,eAAe;MACvBC,IAAI,EAAC,SAAS;MACd,cAAY,CAAE;MACdZ,KAAK,EAAE;QAAEa,KAAK,EAAER,KAAK,CAACS;MAAK,CAAE;MAC7Bb,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,QAAQ,GAAGM,SAAU;MAAAG,QAAA,EAE9CJ;IAAO,CACJ,CAAC,GACL,IAAI,eACRlB,IAAA,CAACP,YAAY;MACXW,KAAK,EAAEA,KAAM;MACbC,KAAK,EAAEA,KAAM;MACbE,WAAW,EAAEA,WAAY;MACzBC,eAAe,EAAEA,eAAgB;MACjCG,kBAAkB,EAAEA,kBAAkB,IAAIO,OAAO,IAAIT,MAAM,CAACW,SAAU;MACtEP,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,QAAQ,GAAGM;IAAU,CAChD,CAAC;EAAA,CACE,CAAC;AAEX;AAEA,OAAO,MAAMQ,iBAAiB,gBAAGtC,IAAI,CAACc,0BAA0B,CAAC;AACjEwB,iBAAiB,CAACC,WAAW,GAAG,mBAAmB","ignoreList":[]}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { memo, useMemo } from 'react';
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
import { Badge } from "../badge/index.js";
|
|
6
|
-
import { RiBankCardLine } from "../icons/remix/RiBankCardLine.js";
|
|
7
|
-
import { Item } from "../item/index.js";
|
|
8
|
-
import { useMessages } from "../locale/messages.js";
|
|
9
|
-
import { useSurfaceFill } from "../styles/surface-levels.js";
|
|
10
|
-
import { resolveAccentColors } from "../theme/accent-colors.js";
|
|
11
|
-
import { useTheme } from "../theme/use-theme.js";
|
|
12
|
-
import { Text } from "../typography/index.js";
|
|
13
|
-
import { EARNINGS_GEOMETRY, EARNINGS_PAYOUT_TONE } from "./constants.js";
|
|
14
|
-
import { EARNINGS_MESSAGES } from "./messages.js";
|
|
15
|
-
import { joinEarningsName, resolveEarningsPaint } from "./shared.js";
|
|
16
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
-
const TABULAR = {
|
|
18
|
-
fontVariant: ['tabular-nums']
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The money that is on its way, and what is holding it up.
|
|
23
|
-
*
|
|
24
|
-
* It is an `Item`, not a card: a payout is a ROW in a panel, and `item` already
|
|
25
|
-
* owns the press target, the density, the leading and trailing slots and the
|
|
26
|
-
* disabled wash. What this component decides is what goes in the three slots.
|
|
27
|
-
*
|
|
28
|
-
* leading a 40 glyph tile at the panel's next fill up
|
|
29
|
-
* content the title over the date and the destination
|
|
30
|
-
* trailing the amount at `headline-semibold` in tabular figures, with the
|
|
31
|
-
* state `Badge` under it
|
|
32
|
-
* note under the row, and ONLY for `held` and `failed` — the two states
|
|
33
|
-
* that ask the reader to do something. A note on a scheduled payout
|
|
34
|
-
* is a sentence nobody has to read.
|
|
35
|
-
*
|
|
36
|
-
* **THE STATE IS SAID IN WORDS, NOT ONLY IN COLOUR.** The badge carries the
|
|
37
|
-
* word; the tone is a second channel on top of it, so the row survives a reader
|
|
38
|
-
* who cannot tell the warning tint from the neutral one.
|
|
39
|
-
*/
|
|
40
|
-
function EarningsPayoutRowComponent({
|
|
41
|
-
payout,
|
|
42
|
-
title,
|
|
43
|
-
onPress,
|
|
44
|
-
action,
|
|
45
|
-
labels: labelOverrides,
|
|
46
|
-
accessibilityLabel,
|
|
47
|
-
style,
|
|
48
|
-
testID
|
|
49
|
-
}) {
|
|
50
|
-
const {
|
|
51
|
-
messages
|
|
52
|
-
} = useMessages(EARNINGS_MESSAGES);
|
|
53
|
-
const theme = useTheme();
|
|
54
|
-
const surface = useSurfaceFill();
|
|
55
|
-
const paint = useMemo(() => resolveEarningsPaint(theme, surface), [theme, surface]);
|
|
56
|
-
const labels = useMemo(() => ({
|
|
57
|
-
...messages,
|
|
58
|
-
...labelOverrides,
|
|
59
|
-
payoutState: {
|
|
60
|
-
...messages.payoutState,
|
|
61
|
-
...labelOverrides?.payoutState
|
|
62
|
-
}
|
|
63
|
-
}), [messages, labelOverrides]);
|
|
64
|
-
const state = payout.state ?? 'scheduled';
|
|
65
|
-
const stateWord = labels.payoutState[state];
|
|
66
|
-
const heading = title ?? labels.payout;
|
|
67
|
-
const needsAction = state === 'held' || state === 'failed';
|
|
68
|
-
const noteTone = resolveAccentColors(theme.colors, EARNINGS_PAYOUT_TONE[state], 'subtle');
|
|
69
|
-
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
70
|
-
const name = accessibilityLabel ?? joinEarningsName([heading, payout.amount, payout.date, stateWord, payout.destination]);
|
|
71
|
-
return (
|
|
72
|
-
/*#__PURE__*/
|
|
73
|
-
// A `group`, not a bare column: `Item`'s non-pressable branch is
|
|
74
|
-
// `role="none"`, on which an `aria-label` is not exposed at all — so the
|
|
75
|
-
// composed name has to hang off something ARIA will read it from.
|
|
76
|
-
_jsxs(View, {
|
|
77
|
-
collapsable: false,
|
|
78
|
-
role: "group",
|
|
79
|
-
accessibilityLabel: name,
|
|
80
|
-
style: style,
|
|
81
|
-
testID: testID,
|
|
82
|
-
children: [/*#__PURE__*/_jsx(Item, {
|
|
83
|
-
onPress: onPress,
|
|
84
|
-
accessibilityLabel: onPress ? name : undefined,
|
|
85
|
-
leading: /*#__PURE__*/_jsx(View, {
|
|
86
|
-
"aria-hidden": true,
|
|
87
|
-
style: {
|
|
88
|
-
width: EARNINGS_GEOMETRY.glyph,
|
|
89
|
-
height: EARNINGS_GEOMETRY.glyph,
|
|
90
|
-
borderRadius: EARNINGS_GEOMETRY.glyphRadius,
|
|
91
|
-
alignItems: 'center',
|
|
92
|
-
justifyContent: 'center',
|
|
93
|
-
backgroundColor: paint.tile
|
|
94
|
-
},
|
|
95
|
-
testID: id('glyph'),
|
|
96
|
-
children: /*#__PURE__*/_jsx(RiBankCardLine, {
|
|
97
|
-
width: 20,
|
|
98
|
-
height: 20,
|
|
99
|
-
fill: paint.tileText.textSecondary
|
|
100
|
-
})
|
|
101
|
-
}),
|
|
102
|
-
title: heading,
|
|
103
|
-
subtitle: joinEarningsName([payout.date, payout.destination], ' · '),
|
|
104
|
-
trailing: /*#__PURE__*/_jsxs(View, {
|
|
105
|
-
style: {
|
|
106
|
-
alignItems: 'flex-end',
|
|
107
|
-
gap: 4
|
|
108
|
-
},
|
|
109
|
-
testID: id('amount'),
|
|
110
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
111
|
-
variant: "headline-semibold",
|
|
112
|
-
numberOfLines: 1,
|
|
113
|
-
style: [{
|
|
114
|
-
color: paint.text
|
|
115
|
-
}, TABULAR],
|
|
116
|
-
testID: id('amount-text'),
|
|
117
|
-
children: payout.amount
|
|
118
|
-
}), /*#__PURE__*/_jsx(Badge, {
|
|
119
|
-
content: stateWord,
|
|
120
|
-
variant: "subtle",
|
|
121
|
-
color: EARNINGS_PAYOUT_TONE[state],
|
|
122
|
-
size: "label-small",
|
|
123
|
-
testID: id('state')
|
|
124
|
-
})]
|
|
125
|
-
}),
|
|
126
|
-
testID: id('row')
|
|
127
|
-
}), payout.note && needsAction ? /*#__PURE__*/_jsx(Text, {
|
|
128
|
-
variant: "body-2-regular",
|
|
129
|
-
style: {
|
|
130
|
-
color: noteTone.foreground,
|
|
131
|
-
paddingLeft: 12,
|
|
132
|
-
paddingRight: 12
|
|
133
|
-
},
|
|
134
|
-
testID: id('note'),
|
|
135
|
-
children: payout.note
|
|
136
|
-
}) : null, action ? /*#__PURE__*/_jsx(View, {
|
|
137
|
-
style: {
|
|
138
|
-
flexDirection: 'row',
|
|
139
|
-
paddingLeft: 12,
|
|
140
|
-
paddingTop: 8
|
|
141
|
-
},
|
|
142
|
-
testID: id('action'),
|
|
143
|
-
children: action
|
|
144
|
-
}) : null]
|
|
145
|
-
})
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
export const EarningsPayoutRow = /*#__PURE__*/memo(EarningsPayoutRowComponent);
|
|
149
|
-
EarningsPayoutRow.displayName = 'EarningsPayoutRow';
|
|
150
|
-
//# sourceMappingURL=EarningsPayoutRow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useMemo","View","Badge","RiBankCardLine","Item","useMessages","useSurfaceFill","resolveAccentColors","useTheme","Text","EARNINGS_GEOMETRY","EARNINGS_PAYOUT_TONE","EARNINGS_MESSAGES","joinEarningsName","resolveEarningsPaint","jsx","_jsx","jsxs","_jsxs","TABULAR","fontVariant","EarningsPayoutRowComponent","payout","title","onPress","action","labels","labelOverrides","accessibilityLabel","style","testID","messages","theme","surface","paint","payoutState","state","stateWord","heading","needsAction","noteTone","colors","id","part","undefined","name","amount","date","destination","collapsable","role","children","leading","width","glyph","height","borderRadius","glyphRadius","alignItems","justifyContent","backgroundColor","tile","fill","tileText","textSecondary","subtitle","trailing","gap","variant","numberOfLines","color","text","content","size","note","foreground","paddingLeft","paddingRight","flexDirection","paddingTop","EarningsPayoutRow","displayName"],"sourceRoot":"../../../src","sources":["earnings/EarningsPayoutRow.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAwB,cAAc;AAEnD,SAASC,KAAK,QAAQ,mBAAU;AAChC,SAASC,cAAc,QAAQ,kCAA+B;AAC9D,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,WAAW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AE9B,QAAQ,CAACmC,UAAU;UAAEC,WAAW,EAAE,EAAE;UAAEC,YAAY,EAAE;QAAG,CAAE;QACzE/C,MAAM,EAAEY,EAAE,CAAC,MAAM,CAAE;QAAAS,QAAA,EAElB7B,MAAM,CAACoD;MAAI,CACR,CAAC,GACL,IAAI,EACPjD,MAAM,gBACLT,IAAA,CAACf,IAAI;QACH4B,KAAK,EAAE;UAAEiD,aAAa,EAAE,KAAK;UAAEF,WAAW,EAAE,EAAE;UAAEG,UAAU,EAAE;QAAE,CAAE;QAChEjD,MAAM,EAAEY,EAAE,CAAC,QAAQ,CAAE;QAAAS,QAAA,EAEpB1B;MAAM,CACH,CAAC,GACL,IAAI;IAAA,CACJ;EAAC;AAEX;AAEA,OAAO,MAAMuD,iBAAiB,gBAAGjF,IAAI,CAACsB,0BAA0B,CAAC;AACjE2D,iBAAiB,CAACC,WAAW,GAAG,mBAAmB","ignoreList":[]}
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { memo, useCallback, useMemo, useState } from 'react';
|
|
4
|
-
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import { EarningsChartCard } from "../chart-cards/index.js";
|
|
6
|
-
import { useContainerWidth } from "../hooks/use-container-width.js";
|
|
7
|
-
import { useControllableState } from "../hooks/use-controllable-state.js";
|
|
8
|
-
import { useMessages } from "../locale/messages.js";
|
|
9
|
-
import { SurfaceLevelProvider, useSurfaceFill } from "../styles/surface-levels.js";
|
|
10
|
-
import { useTheme } from "../theme/use-theme.js";
|
|
11
|
-
import { Text } from "../typography/index.js";
|
|
12
|
-
import { EARNINGS_GEOMETRY } from "./constants.js";
|
|
13
|
-
import { EARNINGS_MESSAGES } from "./messages.js";
|
|
14
|
-
import { EarningsBreakdown } from "./EarningsBreakdown.js";
|
|
15
|
-
import { EarningsPayoutRow } from "./EarningsPayoutRow.js";
|
|
16
|
-
import { earningsHeadline, earningsHeadlineLabel, resolveEarningsPaint, resolveEarningsPeriod } from "./shared.js";
|
|
17
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
/**
|
|
19
|
-
* What the work paid, for one period.
|
|
20
|
-
*
|
|
21
|
-
* chart `chart-cards`' `EarningsChartCard`, which already OWNS the
|
|
22
|
-
* figure, the delta chip, the period switch and the bars
|
|
23
|
-
* tiles the period's readings, in `ai-profile-card`'s tile: the value
|
|
24
|
-
* over its label. One row from 640, two columns below
|
|
25
|
-
* breakdown `EarningsBreakdown` — `price-breakdown`'s itemisation, by kind
|
|
26
|
-
* payout `EarningsPayoutRow` — an `item` row with the amount, the date
|
|
27
|
-
* and the state
|
|
28
|
-
*
|
|
29
|
-
* ## Why this is built AROUND the chart card rather than beside it
|
|
30
|
-
*
|
|
31
|
-
* `EarningsChartCard` is already four of the five things a courier's earnings
|
|
32
|
-
* screen needs: the period's figure, the change on the period before, the
|
|
33
|
-
* Day / Week / Month switch and the bars of the last weeks. Drawing a second
|
|
34
|
-
* figure and a second switch above it would have put two of everything on one
|
|
35
|
-
* panel. So this family draws NONE of that — it hands the chart card the
|
|
36
|
-
* period's data and adds the three things the chart card has no opinion about:
|
|
37
|
-
* where the money came from, what the period's other readings were, and when
|
|
38
|
-
* it reaches the bank.
|
|
39
|
-
*
|
|
40
|
-
* ## The money is never computed, and the headline is the proof
|
|
41
|
-
*
|
|
42
|
-
* `EarningsChartCard` formats its headline from a NUMBER, which is exactly what
|
|
43
|
-
* this family must not do. So the headline is CHOSEN, not produced: this
|
|
44
|
-
* component owns the chart's active index, and `format` returns the period's
|
|
45
|
-
* own `total` at rest and the hovered bar's own `amount` over a bar — both
|
|
46
|
-
* strings the app formatted. A bar's `value` is geometry and is never drawn.
|
|
47
|
-
*
|
|
48
|
-
* Two consequences, both deliberate:
|
|
49
|
-
*
|
|
50
|
-
* - **The headline does not roll.** `ChartHeadline` counts a number up over
|
|
51
|
-
* 320ms; a pre-formatted amount has nothing to count. The 220ms fade still
|
|
52
|
-
* plays, so the change is still visible.
|
|
53
|
-
* - **The Y axis prints a number.** A tick is a position on a scale the chart
|
|
54
|
-
* chose, not a sum the app made, so no string exists for it to have
|
|
55
|
-
* formatted. The default prints the rounded number with no currency;
|
|
56
|
-
* `formatAxisValue` is where an app puts its own.
|
|
57
|
-
*
|
|
58
|
-
* **A jest test cannot see the hover.** The plot surface that carries the
|
|
59
|
-
* pointer handlers only exists after `onLayout`, which jsdom never fires —
|
|
60
|
-
* gutting `setActiveIndex` to a no-op leaves `Earnings.test.tsx` green. The
|
|
61
|
-
* choice itself (`earningsHeadline`) is pure and pinned there; that the panel
|
|
62
|
-
* owns the active bar is pinned in `scripts/verify-earnings-headline.mjs`.
|
|
63
|
-
*
|
|
64
|
-
* ## The period is controlled here, and the chart is remounted to follow it
|
|
65
|
-
*
|
|
66
|
-
* `useChartRange` inside `chart-cards` is uncontrolled — it has a `defaultRange`
|
|
67
|
-
* and no `range` — so a period changed from OUTSIDE cannot reach the chart's own
|
|
68
|
-
* segmented control. The chart is therefore keyed on the period id: an external
|
|
69
|
-
* change remounts it with the new default rather than letting the switch and the
|
|
70
|
-
* panel disagree. The cost is that the bars grow in again instead of morphing.
|
|
71
|
-
*/
|
|
72
|
-
|
|
73
|
-
/** The axis's last resort: a number, rounded, with nobody's currency on it. */
|
|
74
|
-
const roundedAxisValue = value => String(Math.round(value));
|
|
75
|
-
function EarningsSummaryComponent({
|
|
76
|
-
periods,
|
|
77
|
-
period: periodProp,
|
|
78
|
-
defaultPeriod,
|
|
79
|
-
onPeriodChange,
|
|
80
|
-
payout,
|
|
81
|
-
onPressPayout,
|
|
82
|
-
payoutAction,
|
|
83
|
-
formatAxisValue = roundedAxisValue,
|
|
84
|
-
chartHeight,
|
|
85
|
-
breakdown,
|
|
86
|
-
stats,
|
|
87
|
-
labels: labelOverrides,
|
|
88
|
-
accessibilityLabel: accessibilityLabelProp,
|
|
89
|
-
style,
|
|
90
|
-
testID
|
|
91
|
-
}) {
|
|
92
|
-
const {
|
|
93
|
-
messages
|
|
94
|
-
} = useMessages(EARNINGS_MESSAGES);
|
|
95
|
-
const accessibilityLabel = accessibilityLabelProp ?? messages.earnings;
|
|
96
|
-
const theme = useTheme();
|
|
97
|
-
const surface = useSurfaceFill();
|
|
98
|
-
const paint = useMemo(() => resolveEarningsPaint(theme, surface), [theme, surface]);
|
|
99
|
-
const labels = useMemo(() => ({
|
|
100
|
-
...messages,
|
|
101
|
-
...labelOverrides,
|
|
102
|
-
payoutState: {
|
|
103
|
-
...messages.payoutState,
|
|
104
|
-
...labelOverrides?.payoutState
|
|
105
|
-
}
|
|
106
|
-
}), [messages, labelOverrides]);
|
|
107
|
-
const [periodId, setPeriodId] = useControllableState({
|
|
108
|
-
value: periodProp,
|
|
109
|
-
defaultValue: defaultPeriod ?? periods[0]?.id ?? '',
|
|
110
|
-
onChange: onPeriodChange
|
|
111
|
-
});
|
|
112
|
-
const current = resolveEarningsPeriod(periods, periodId);
|
|
113
|
-
|
|
114
|
-
// The chart's active bar is OWNED here: the headline has to be able to say
|
|
115
|
-
// which amount it is showing, and only this component knows the strings.
|
|
116
|
-
const [selection, setSelection] = useState(null);
|
|
117
|
-
const currentPeriod = current?.id;
|
|
118
|
-
// A controlled prop change must clear selection before the new headline paints.
|
|
119
|
-
if (selection && selection.period !== currentPeriod) setSelection(null);
|
|
120
|
-
const activeIndex = selection?.period === currentPeriod ? selection?.index ?? null : null;
|
|
121
|
-
const setActiveIndex = useCallback(index => {
|
|
122
|
-
setSelection({
|
|
123
|
-
period: currentPeriod,
|
|
124
|
-
index
|
|
125
|
-
});
|
|
126
|
-
}, [currentPeriod]);
|
|
127
|
-
const changePeriod = useCallback(id => {
|
|
128
|
-
setActiveIndex(null);
|
|
129
|
-
setPeriodId(id);
|
|
130
|
-
}, [setPeriodId, setActiveIndex]);
|
|
131
|
-
const {
|
|
132
|
-
width,
|
|
133
|
-
onLayout
|
|
134
|
-
} = useContainerWidth();
|
|
135
|
-
const wide = width === null || width >= EARNINGS_GEOMETRY.narrowWidth;
|
|
136
|
-
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
137
|
-
const bars = current?.bars;
|
|
138
|
-
const total = current?.total ?? '';
|
|
139
|
-
const chartData = useMemo(() => (bars ?? []).map(bar => ({
|
|
140
|
-
label: bar.label,
|
|
141
|
-
value: bar.value
|
|
142
|
-
})), [bars]);
|
|
143
|
-
const ranges = useMemo(() => periods.map(entry => ({
|
|
144
|
-
id: entry.id,
|
|
145
|
-
label: entry.label
|
|
146
|
-
})), [periods]);
|
|
147
|
-
|
|
148
|
-
// Both are CHOSEN from strings the app formatted, never produced from a
|
|
149
|
-
// number: `format` ignores the value the count-up hands it on purpose.
|
|
150
|
-
const headlineText = earningsHeadline(total, bars, activeIndex);
|
|
151
|
-
const headlineLabel = earningsHeadlineLabel(labels.earned, bars, activeIndex);
|
|
152
|
-
const format = useCallback(() => headlineText, [headlineText]);
|
|
153
|
-
const periodStats = current?.stats ?? [];
|
|
154
|
-
const showStats = (stats ?? true) && periodStats.length > 0;
|
|
155
|
-
const periodLines = current?.lines ?? [];
|
|
156
|
-
const showBreakdown = (breakdown ?? true) && periodLines.length > 0;
|
|
157
|
-
const shownPayout = current?.payout ?? payout;
|
|
158
|
-
const tileRows = [];
|
|
159
|
-
if (wide) {
|
|
160
|
-
if (periodStats.length > 0) tileRows.push(periodStats.map((_unused, index) => index));
|
|
161
|
-
} else {
|
|
162
|
-
for (let i = 0; i < periodStats.length; i += 2) tileRows.push(i + 1 < periodStats.length ? [i, i + 1] : [i]);
|
|
163
|
-
}
|
|
164
|
-
return /*#__PURE__*/_jsx(SurfaceLevelProvider, {
|
|
165
|
-
level: 0,
|
|
166
|
-
fill: paint.surface,
|
|
167
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
168
|
-
collapsable: false,
|
|
169
|
-
onLayout: onLayout,
|
|
170
|
-
role: "group",
|
|
171
|
-
accessibilityLabel: accessibilityLabel,
|
|
172
|
-
style: [{
|
|
173
|
-
gap: EARNINGS_GEOMETRY.gap
|
|
174
|
-
}, style],
|
|
175
|
-
testID: testID,
|
|
176
|
-
children: [/*#__PURE__*/_jsx(EarningsChartCard, {
|
|
177
|
-
title: headlineLabel,
|
|
178
|
-
data: chartData
|
|
179
|
-
// The figure is a string, so the number behind it only has to be
|
|
180
|
-
// STABLE — the fade replays on the period and the bar, not on it.
|
|
181
|
-
,
|
|
182
|
-
headline: 0,
|
|
183
|
-
delta: current?.deltaRatio,
|
|
184
|
-
ranges: ranges.length > 1 ? ranges : undefined,
|
|
185
|
-
defaultRange: periodId,
|
|
186
|
-
onRangeChange: changePeriod,
|
|
187
|
-
rangesLabel: labels.period,
|
|
188
|
-
format: format,
|
|
189
|
-
formatAxisValue: formatAxisValue,
|
|
190
|
-
activeIndex: activeIndex,
|
|
191
|
-
onActiveIndexChange: setActiveIndex,
|
|
192
|
-
accessibilityLabel: labels.chart(current?.label ?? ''),
|
|
193
|
-
style: chartHeight === undefined ? undefined : {
|
|
194
|
-
height: chartHeight
|
|
195
|
-
},
|
|
196
|
-
testID: id('chart')
|
|
197
|
-
}, periodId), current?.caption ? /*#__PURE__*/_jsx(Text, {
|
|
198
|
-
variant: "body-2-regular",
|
|
199
|
-
style: {
|
|
200
|
-
color: paint.textSecondary
|
|
201
|
-
},
|
|
202
|
-
testID: id('caption'),
|
|
203
|
-
children: current.caption
|
|
204
|
-
}) : null, showStats ? /*#__PURE__*/_jsx(View, {
|
|
205
|
-
style: {
|
|
206
|
-
gap: EARNINGS_GEOMETRY.tileGap
|
|
207
|
-
},
|
|
208
|
-
testID: id('stats'),
|
|
209
|
-
children: tileRows.map(row => /*#__PURE__*/_jsxs(View, {
|
|
210
|
-
style: {
|
|
211
|
-
flexDirection: 'row',
|
|
212
|
-
alignItems: 'stretch',
|
|
213
|
-
gap: EARNINGS_GEOMETRY.tileGap
|
|
214
|
-
},
|
|
215
|
-
children: [row.map(index => {
|
|
216
|
-
const stat = periodStats[index];
|
|
217
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
218
|
-
style: [styles.tile, {
|
|
219
|
-
backgroundColor: paint.tile
|
|
220
|
-
}],
|
|
221
|
-
testID: id(`stat-${index}`),
|
|
222
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
223
|
-
variant: "body-medium",
|
|
224
|
-
numberOfLines: 1,
|
|
225
|
-
style: {
|
|
226
|
-
width: '100%',
|
|
227
|
-
color: paint.tileText.text
|
|
228
|
-
},
|
|
229
|
-
children: stat.value
|
|
230
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
231
|
-
variant: "body-2-medium",
|
|
232
|
-
numberOfLines: 1,
|
|
233
|
-
style: {
|
|
234
|
-
width: '100%',
|
|
235
|
-
color: paint.tileText.textSecondary
|
|
236
|
-
},
|
|
237
|
-
children: stat.label
|
|
238
|
-
})]
|
|
239
|
-
}, `${index}-${stat.label}`);
|
|
240
|
-
}), !wide && row.length === 1 ? /*#__PURE__*/_jsx(View, {
|
|
241
|
-
style: styles.tileSpacer
|
|
242
|
-
}) : null]
|
|
243
|
-
}, `stat-row-${row[0]}`))
|
|
244
|
-
}) : null, showBreakdown ? /*#__PURE__*/_jsx(EarningsBreakdown, {
|
|
245
|
-
lines: periodLines,
|
|
246
|
-
title: labels.breakdown,
|
|
247
|
-
labels: labelOverrides,
|
|
248
|
-
testID: id('breakdown')
|
|
249
|
-
}) : null, shownPayout ? /*#__PURE__*/_jsx(EarningsPayoutRow, {
|
|
250
|
-
payout: shownPayout,
|
|
251
|
-
title: labels.payout,
|
|
252
|
-
onPress: onPressPayout,
|
|
253
|
-
action: payoutAction,
|
|
254
|
-
labels: labelOverrides,
|
|
255
|
-
testID: id('payout')
|
|
256
|
-
}) : null, !showStats && !showBreakdown && shownPayout === undefined ? /*#__PURE__*/_jsx(Text, {
|
|
257
|
-
variant: "body-regular",
|
|
258
|
-
style: {
|
|
259
|
-
color: paint.textSecondary
|
|
260
|
-
},
|
|
261
|
-
testID: id('empty'),
|
|
262
|
-
children: labels.empty
|
|
263
|
-
}) : null]
|
|
264
|
-
})
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
const styles = StyleSheet.create({
|
|
268
|
-
tile: {
|
|
269
|
-
flexGrow: 1,
|
|
270
|
-
flexShrink: 1,
|
|
271
|
-
flexBasis: 0,
|
|
272
|
-
minWidth: 0,
|
|
273
|
-
alignItems: 'flex-start',
|
|
274
|
-
borderRadius: EARNINGS_GEOMETRY.tileRadius,
|
|
275
|
-
paddingTop: EARNINGS_GEOMETRY.tilePadding,
|
|
276
|
-
paddingBottom: EARNINGS_GEOMETRY.tilePadding,
|
|
277
|
-
paddingLeft: EARNINGS_GEOMETRY.tilePadding,
|
|
278
|
-
paddingRight: EARNINGS_GEOMETRY.tilePadding
|
|
279
|
-
},
|
|
280
|
-
tileSpacer: {
|
|
281
|
-
flexGrow: 1,
|
|
282
|
-
flexShrink: 1,
|
|
283
|
-
flexBasis: 0,
|
|
284
|
-
minWidth: 0
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
export const EarningsSummary = /*#__PURE__*/memo(EarningsSummaryComponent);
|
|
288
|
-
EarningsSummary.displayName = 'EarningsSummary';
|
|
289
|
-
//# sourceMappingURL=EarningsSummary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useCallback","useMemo","useState","StyleSheet","View","EarningsChartCard","useContainerWidth","useControllableState","useMessages","SurfaceLevelProvider","useSurfaceFill","useTheme","Text","EARNINGS_GEOMETRY","EARNINGS_MESSAGES","EarningsBreakdown","EarningsPayoutRow","earningsHeadline","earningsHeadlineLabel","resolveEarningsPaint","resolveEarningsPeriod","jsx","_jsx","jsxs","_jsxs","roundedAxisValue","value","String","Math","round","EarningsSummaryComponent","periods","period","periodProp","defaultPeriod","onPeriodChange","payout","onPressPayout","payoutAction","formatAxisValue","chartHeight","breakdown","stats","labels","labelOverrides","accessibilityLabel","accessibilityLabelProp","style","testID","messages","earnings","theme","surface","paint","payoutState","periodId","setPeriodId","defaultValue","id","onChange","current","selection","setSelection","currentPeriod","activeIndex","index","setActiveIndex","changePeriod","width","onLayout","wide","narrowWidth","part","undefined","bars","total","chartData","map","bar","label","ranges","entry","headlineText","headlineLabel","earned","format","periodStats","showStats","length","periodLines","lines","showBreakdown","shownPayout","tileRows","push","_unused","i","level","fill","children","collapsable","role","gap","title","data","headline","delta","deltaRatio","defaultRange","onRangeChange","rangesLabel","onActiveIndexChange","chart","height","caption","variant","color","textSecondary","tileGap","row","flexDirection","alignItems","stat","styles","tile","backgroundColor","numberOfLines","tileText","text","tileSpacer","onPress","action","empty","create","flexGrow","flexShrink","flexBasis","minWidth","borderRadius","tileRadius","paddingTop","tilePadding","paddingBottom","paddingLeft","paddingRight","EarningsSummary","displayName"],"sourceRoot":"../../../src","sources":["earnings/EarningsSummary.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACnE,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,iBAAiB,QAAQ,yBAAgB;AAClD,SAASC,iBAAiB,QAAQ,iCAA8B;AAChE,SAASC,oBAAoB,QAAQ,oCAAiC;AACtE,SAASC,WAAW,QAAQ,uBAAoB;AAChD,SAASC,oBAAoB,EAAEC,cAAc,QAAQ,6BAA0B;AAC/E,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,iBAAiB,QAAQ,gBAAa;AAC/C,SAASC,iBAAiB,QAAQ,eAAY;AAC9C,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SACEC,gBAAgB,EAChBC,qBAAqB,EACrBC,oBAAoB,EACpBC,qBAAqB,QAChB,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGlB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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S_MESSAGES } from "./messages.js";
|
|
5
|
-
import { BREAKPOINTS } from "../styles/breakpoints.js";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Every default word the family draws, in English. The components speak
|
|
9
|
-
* `EARNINGS_MESSAGES` in the resolved locale.
|
|
10
|
-
*/
|
|
11
|
-
export const EARNINGS_LABELS = {
|
|
12
|
-
earned: EARNINGS_MESSAGES.en.earned,
|
|
13
|
-
period: EARNINGS_MESSAGES.en.period,
|
|
14
|
-
breakdown: EARNINGS_MESSAGES.en.breakdown,
|
|
15
|
-
payout: EARNINGS_MESSAGES.en.payout,
|
|
16
|
-
payoutState: EARNINGS_MESSAGES.en.payoutState,
|
|
17
|
-
chart: EARNINGS_MESSAGES.en.chart,
|
|
18
|
-
empty: EARNINGS_MESSAGES.en.empty
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The tone each payout state is painted in.
|
|
23
|
-
*
|
|
24
|
-
* `scheduled` is `default` because waiting is not news. `processing` is `info`:
|
|
25
|
-
* something is happening and there is nothing to do about it. `paid` is
|
|
26
|
-
* `success`. `held` is `warning` and `failed` is `error` — the two that need
|
|
27
|
-
* the reader to act, told apart by whether the money is still coming.
|
|
28
|
-
*/
|
|
29
|
-
export const EARNINGS_PAYOUT_TONE = {
|
|
30
|
-
scheduled: 'default',
|
|
31
|
-
processing: 'info',
|
|
32
|
-
paid: 'success',
|
|
33
|
-
held: 'warning',
|
|
34
|
-
failed: 'error'
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The panel's geometry.
|
|
39
|
-
*
|
|
40
|
-
* `tile` is `ai-profile-card`'s stat tile exactly — radius 10, padding 10, the
|
|
41
|
-
* reading over its label — because a courier's "18 jobs" and a profile's
|
|
42
|
-
* "9B lifetime tokens" are the same object, and two tile geometries in one
|
|
43
|
-
* library is two answers to one question.
|
|
44
|
-
*/
|
|
45
|
-
export const EARNINGS_GEOMETRY = {
|
|
46
|
-
/** Between the chart, the tiles, the breakdown and the payout. */
|
|
47
|
-
gap: 16,
|
|
48
|
-
/** Between tiles, and between tile rows. */
|
|
49
|
-
tileGap: 8,
|
|
50
|
-
tilePadding: 10,
|
|
51
|
-
tileRadius: 10,
|
|
52
|
-
/** The payout row's leading glyph tile. */
|
|
53
|
-
glyph: 40,
|
|
54
|
-
glyphRadius: RADIUS['radius-12'],
|
|
55
|
-
/** Under this the tiles stack two to a row. */
|
|
56
|
-
narrowWidth: BREAKPOINTS.sm
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["RADIUS","EARNINGS_MESSAGES","BREAKPOINTS","EARNINGS_LABELS","earned","en","period","breakdown","payout","payoutState","chart","empty","EARNINGS_PAYOUT_TONE","scheduled","processing","paid","held","failed","EARNINGS_GEOMETRY","gap","tileGap","tilePadding","tileRadius","glyph","glyphRadius","narrowWidth","sm"],"sourceRoot":"../../../src","sources":["earnings/constants.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,4BAAyB;AAEhD,SAASC,iBAAiB,QAAQ,eAAY;AAE9C,SAASC,WAAW,QAAQ,0BAAuB;;AAEnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAEZ,GAAG;EACFC,MAAM,EAAEH,iBAAiB,CAACI,EAAE,CAACD,MAAM;EACnCE,MAAM,EAAEL,iBAAiB,CAACI,EAAE,CAACC,MAAM;EACnCC,SAAS,EAAEN,iBAAiB,CAACI,EAAE,CAACE,SAAS;EACzCC,MAAM,EAAEP,iBAAiB,CAACI,EAAE,CAACG,MAAM;EACnCC,WAAW,EAAER,iBAAiB,CAACI,EAAE,CAACI,WAAW;EAC7CC,KAAK,EAAET,iBAAiB,CAACI,EAAE,CAACK,KAAK;EACjCC,KAAK,EAAEV,iBAAiB,CAACI,EAAE,CAACM;AAC9B,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,oBAA6D,GAAG;EAC3EC,SAAS,EAAE,SAAS;EACpBC,UAAU,EAAE,MAAM;EAClBC,IAAI,EAAE,SAAS;EACfC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE;AACV,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAG;EAC/B;EACAC,GAAG,EAAE,EAAE;EACP;EACAC,OAAO,EAAE,CAAC;EACVC,WAAW,EAAE,EAAE;EACfC,UAAU,EAAE,EAAE;EACd;EACAC,KAAK,EAAE,EAAE;EACTC,WAAW,EAAExB,MAAM,CAAC,WAAW,CAAC;EAChC;EACAyB,WAAW,EAAEvB,WAAW,CAACwB;AAC3B,CAAU","ignoreList":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
export { EarningsBreakdown } from "./EarningsBreakdown.js";
|
|
4
|
-
export { EarningsPayoutRow } from "./EarningsPayoutRow.js";
|
|
5
|
-
export { EarningsSummary } from "./EarningsSummary.js";
|
|
6
|
-
export { EARNINGS_GEOMETRY, EARNINGS_LABELS, EARNINGS_PAYOUT_TONE } from "./constants.js";
|
|
7
|
-
export { earningsHeadline, earningsHeadlineLabel, joinEarningsName, resolveEarningsPaint, resolveEarningsPeriod } from "./shared.js";
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["EarningsBreakdown","EarningsPayoutRow","EarningsSummary","EARNINGS_GEOMETRY","EARNINGS_LABELS","EARNINGS_PAYOUT_TONE","earningsHeadline","earningsHeadlineLabel","joinEarningsName","resolveEarningsPaint","resolveEarningsPeriod"],"sourceRoot":"../../../src","sources":["earnings/index.ts"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,iBAAiB,EAAEC,eAAe,EAAEC,oBAAoB,QAAQ,gBAAa;AAEtF,SACEC,gBAAgB,EAChBC,qBAAqB,EACrBC,gBAAgB,EAChBC,oBAAoB,EACpBC,qBAAqB,QAChB,aAAU","ignoreList":[]}
|