@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,156 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.EarningsPayoutRow = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _index = require("../badge/index.js");
|
|
10
|
-
var _RiBankCardLine = require("../icons/remix/RiBankCardLine.js");
|
|
11
|
-
var _index2 = require("../item/index.js");
|
|
12
|
-
var _messages = require("../locale/messages.js");
|
|
13
|
-
var _surfaceLevels = require("../styles/surface-levels.js");
|
|
14
|
-
var _accentColors = require("../theme/accent-colors.js");
|
|
15
|
-
var _useTheme = require("../theme/use-theme.js");
|
|
16
|
-
var _index3 = require("../typography/index.js");
|
|
17
|
-
var _constants = require("./constants.js");
|
|
18
|
-
var _messages2 = require("./messages.js");
|
|
19
|
-
var _shared = require("./shared.js");
|
|
20
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
var cache;
|
|
22
|
-
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
23
|
-
const TABULAR = {
|
|
24
|
-
fontVariant: ['tabular-nums']
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The money that is on its way, and what is holding it up.
|
|
29
|
-
*
|
|
30
|
-
* It is an `Item`, not a card: a payout is a ROW in a panel, and `item` already
|
|
31
|
-
* owns the press target, the density, the leading and trailing slots and the
|
|
32
|
-
* disabled wash. What this component decides is what goes in the three slots.
|
|
33
|
-
*
|
|
34
|
-
* leading a 40 glyph tile at the panel's next fill up
|
|
35
|
-
* content the title over the date and the destination
|
|
36
|
-
* trailing the amount at `headline-semibold` in tabular figures, with the
|
|
37
|
-
* state `Badge` under it
|
|
38
|
-
* note under the row, and ONLY for `held` and `failed` — the two states
|
|
39
|
-
* that ask the reader to do something. A note on a scheduled payout
|
|
40
|
-
* is a sentence nobody has to read.
|
|
41
|
-
*
|
|
42
|
-
* **THE STATE IS SAID IN WORDS, NOT ONLY IN COLOUR.** The badge carries the
|
|
43
|
-
* word; the tone is a second channel on top of it, so the row survives a reader
|
|
44
|
-
* who cannot tell the warning tint from the neutral one.
|
|
45
|
-
*/
|
|
46
|
-
function EarningsPayoutRowComponent({
|
|
47
|
-
payout,
|
|
48
|
-
title,
|
|
49
|
-
onPress,
|
|
50
|
-
action,
|
|
51
|
-
labels: labelOverrides,
|
|
52
|
-
accessibilityLabel,
|
|
53
|
-
style,
|
|
54
|
-
testID
|
|
55
|
-
}) {
|
|
56
|
-
const {
|
|
57
|
-
messages
|
|
58
|
-
} = (0, _messages.useMessages)(_messages2.EARNINGS_MESSAGES);
|
|
59
|
-
const theme = (0, _useTheme.useTheme)();
|
|
60
|
-
const surface = (0, _surfaceLevels.useSurfaceFill)();
|
|
61
|
-
const paint = (0, _react.useMemo)(() => (0, _shared.resolveEarningsPaint)(theme, surface), [theme, surface]);
|
|
62
|
-
const labels = (0, _react.useMemo)(() => ({
|
|
63
|
-
...messages,
|
|
64
|
-
...labelOverrides,
|
|
65
|
-
payoutState: {
|
|
66
|
-
...messages.payoutState,
|
|
67
|
-
...labelOverrides?.payoutState
|
|
68
|
-
}
|
|
69
|
-
}), [messages, labelOverrides]);
|
|
70
|
-
const state = payout.state ?? 'scheduled';
|
|
71
|
-
const stateWord = labels.payoutState[state];
|
|
72
|
-
const heading = title ?? labels.payout;
|
|
73
|
-
const needsAction = state === 'held' || state === 'failed';
|
|
74
|
-
const noteTone = (0, _accentColors.resolveAccentColors)(theme.colors, _constants.EARNINGS_PAYOUT_TONE[state], 'subtle');
|
|
75
|
-
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
76
|
-
const name = accessibilityLabel ?? (0, _shared.joinEarningsName)([heading, payout.amount, payout.date, stateWord, payout.destination]);
|
|
77
|
-
return (
|
|
78
|
-
/*#__PURE__*/
|
|
79
|
-
// A `group`, not a bare column: `Item`'s non-pressable branch is
|
|
80
|
-
// `role="none"`, on which an `aria-label` is not exposed at all — so the
|
|
81
|
-
// composed name has to hang off something ARIA will read it from.
|
|
82
|
-
(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
83
|
-
collapsable: false,
|
|
84
|
-
role: "group",
|
|
85
|
-
accessibilityLabel: name,
|
|
86
|
-
style: style,
|
|
87
|
-
testID: testID,
|
|
88
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Item, {
|
|
89
|
-
onPress: onPress,
|
|
90
|
-
accessibilityLabel: onPress ? name : undefined,
|
|
91
|
-
leading: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
92
|
-
"aria-hidden": true,
|
|
93
|
-
style: {
|
|
94
|
-
width: _constants.EARNINGS_GEOMETRY.glyph,
|
|
95
|
-
height: _constants.EARNINGS_GEOMETRY.glyph,
|
|
96
|
-
borderRadius: _constants.EARNINGS_GEOMETRY.glyphRadius,
|
|
97
|
-
alignItems: 'center',
|
|
98
|
-
justifyContent: 'center',
|
|
99
|
-
backgroundColor: paint.tile
|
|
100
|
-
},
|
|
101
|
-
testID: id('glyph'),
|
|
102
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RiBankCardLine.RiBankCardLine, {
|
|
103
|
-
width: 20,
|
|
104
|
-
height: 20,
|
|
105
|
-
fill: paint.tileText.textSecondary
|
|
106
|
-
})
|
|
107
|
-
}),
|
|
108
|
-
title: heading,
|
|
109
|
-
subtitle: (0, _shared.joinEarningsName)([payout.date, payout.destination], ' · '),
|
|
110
|
-
trailing: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
111
|
-
style: {
|
|
112
|
-
alignItems: 'flex-end',
|
|
113
|
-
gap: 4
|
|
114
|
-
},
|
|
115
|
-
testID: id('amount'),
|
|
116
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Text, {
|
|
117
|
-
variant: "headline-semibold",
|
|
118
|
-
numberOfLines: 1,
|
|
119
|
-
style: [{
|
|
120
|
-
color: paint.text
|
|
121
|
-
}, TABULAR],
|
|
122
|
-
testID: id('amount-text'),
|
|
123
|
-
children: payout.amount
|
|
124
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Badge, {
|
|
125
|
-
content: stateWord,
|
|
126
|
-
variant: "subtle",
|
|
127
|
-
color: _constants.EARNINGS_PAYOUT_TONE[state],
|
|
128
|
-
size: "label-small",
|
|
129
|
-
testID: id('state')
|
|
130
|
-
})]
|
|
131
|
-
}),
|
|
132
|
-
testID: id('row')
|
|
133
|
-
}), payout.note && needsAction ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Text, {
|
|
134
|
-
variant: "body-2-regular",
|
|
135
|
-
style: {
|
|
136
|
-
color: noteTone.foreground,
|
|
137
|
-
paddingLeft: 12,
|
|
138
|
-
paddingRight: 12
|
|
139
|
-
},
|
|
140
|
-
testID: id('note'),
|
|
141
|
-
children: payout.note
|
|
142
|
-
}) : null, action ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
143
|
-
style: {
|
|
144
|
-
flexDirection: 'row',
|
|
145
|
-
paddingLeft: 12,
|
|
146
|
-
paddingTop: 8
|
|
147
|
-
},
|
|
148
|
-
testID: id('action'),
|
|
149
|
-
children: action
|
|
150
|
-
}) : null]
|
|
151
|
-
})
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
const EarningsPayoutRow = exports.EarningsPayoutRow = /*#__PURE__*/(0, _react.memo)(EarningsPayoutRowComponent);
|
|
155
|
-
EarningsPayoutRow.displayName = 'EarningsPayoutRow';
|
|
156
|
-
//# sourceMappingURL=EarningsPayoutRow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_RiBankCardLine","_index2","_messages","_surfaceLevels","_accentColors","_useTheme","_index3","_constants","_messages2","_shared","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","TABULAR","fontVariant","EarningsPayoutRowComponent","payout","title","onPress","action","labels","labelOverrides","accessibilityLabel","style","testID","messages","useMessages","EARNINGS_MESSAGES","theme","useTheme","surface","useSurfaceFill","paint","useMemo","resolveEarningsPaint","payoutState","state","stateWord","heading","needsAction","noteTone","resolveAccentColors","colors","EARNINGS_PAYOUT_TONE","id","part","undefined","name","joinEarningsName","amount","date","destination","jsxs","View","collapsable","role","children","jsx","Item","leading","width","EARNINGS_GEOMETRY","glyph","height","borderRadius","glyphRadius","alignItems","justifyContent","backgroundColor","tile","RiBankCardLine","fill","tileText","textSecondary","subtitle","trailing","gap","Text","variant","numberOfLines","color","text","Badge","content","size","note","foreground","paddingLeft","paddingRight","flexDirection","paddingTop","EarningsPayoutRow","exports","memo","displayName"],"sourceRoot":"../../../src","sources":["earnings/EarningsPayoutRow.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,IAAAW,UAAA,GAAAX,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA;AAAkE,IAAAa,WAAA,GAAAb,OAAA;AAAA,IAAAc,KAAA;AAAA,SAAAf,wBAAAgB,CAAA,E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,CAAC,GACL,IAAI;IAAA,CACJ;EAAC;AAEX;AAEO,MAAMwE,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,gBAAG,IAAAE,WAAI,EAAC9E,0BAA0B,CAAC;AACjE4E,iBAAiB,CAACG,WAAW,GAAG,mBAAmB","ignoreList":[]}
|
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.EarningsSummary = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _index = require("../chart-cards/index.js");
|
|
10
|
-
var _useContainerWidth = require("../hooks/use-container-width.js");
|
|
11
|
-
var _useControllableState = require("../hooks/use-controllable-state.js");
|
|
12
|
-
var _messages = require("../locale/messages.js");
|
|
13
|
-
var _surfaceLevels = require("../styles/surface-levels.js");
|
|
14
|
-
var _useTheme = require("../theme/use-theme.js");
|
|
15
|
-
var _index2 = require("../typography/index.js");
|
|
16
|
-
var _constants = require("./constants.js");
|
|
17
|
-
var _messages2 = require("./messages.js");
|
|
18
|
-
var _EarningsBreakdown = require("./EarningsBreakdown.js");
|
|
19
|
-
var _EarningsPayoutRow = require("./EarningsPayoutRow.js");
|
|
20
|
-
var _shared = require("./shared.js");
|
|
21
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
|
-
var cache;
|
|
23
|
-
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
24
|
-
/**
|
|
25
|
-
* What the work paid, for one period.
|
|
26
|
-
*
|
|
27
|
-
* chart `chart-cards`' `EarningsChartCard`, which already OWNS the
|
|
28
|
-
* figure, the delta chip, the period switch and the bars
|
|
29
|
-
* tiles the period's readings, in `ai-profile-card`'s tile: the value
|
|
30
|
-
* over its label. One row from 640, two columns below
|
|
31
|
-
* breakdown `EarningsBreakdown` — `price-breakdown`'s itemisation, by kind
|
|
32
|
-
* payout `EarningsPayoutRow` — an `item` row with the amount, the date
|
|
33
|
-
* and the state
|
|
34
|
-
*
|
|
35
|
-
* ## Why this is built AROUND the chart card rather than beside it
|
|
36
|
-
*
|
|
37
|
-
* `EarningsChartCard` is already four of the five things a courier's earnings
|
|
38
|
-
* screen needs: the period's figure, the change on the period before, the
|
|
39
|
-
* Day / Week / Month switch and the bars of the last weeks. Drawing a second
|
|
40
|
-
* figure and a second switch above it would have put two of everything on one
|
|
41
|
-
* panel. So this family draws NONE of that — it hands the chart card the
|
|
42
|
-
* period's data and adds the three things the chart card has no opinion about:
|
|
43
|
-
* where the money came from, what the period's other readings were, and when
|
|
44
|
-
* it reaches the bank.
|
|
45
|
-
*
|
|
46
|
-
* ## The money is never computed, and the headline is the proof
|
|
47
|
-
*
|
|
48
|
-
* `EarningsChartCard` formats its headline from a NUMBER, which is exactly what
|
|
49
|
-
* this family must not do. So the headline is CHOSEN, not produced: this
|
|
50
|
-
* component owns the chart's active index, and `format` returns the period's
|
|
51
|
-
* own `total` at rest and the hovered bar's own `amount` over a bar — both
|
|
52
|
-
* strings the app formatted. A bar's `value` is geometry and is never drawn.
|
|
53
|
-
*
|
|
54
|
-
* Two consequences, both deliberate:
|
|
55
|
-
*
|
|
56
|
-
* - **The headline does not roll.** `ChartHeadline` counts a number up over
|
|
57
|
-
* 320ms; a pre-formatted amount has nothing to count. The 220ms fade still
|
|
58
|
-
* plays, so the change is still visible.
|
|
59
|
-
* - **The Y axis prints a number.** A tick is a position on a scale the chart
|
|
60
|
-
* chose, not a sum the app made, so no string exists for it to have
|
|
61
|
-
* formatted. The default prints the rounded number with no currency;
|
|
62
|
-
* `formatAxisValue` is where an app puts its own.
|
|
63
|
-
*
|
|
64
|
-
* **A jest test cannot see the hover.** The plot surface that carries the
|
|
65
|
-
* pointer handlers only exists after `onLayout`, which jsdom never fires —
|
|
66
|
-
* gutting `setActiveIndex` to a no-op leaves `Earnings.test.tsx` green. The
|
|
67
|
-
* choice itself (`earningsHeadline`) is pure and pinned there; that the panel
|
|
68
|
-
* owns the active bar is pinned in `scripts/verify-earnings-headline.mjs`.
|
|
69
|
-
*
|
|
70
|
-
* ## The period is controlled here, and the chart is remounted to follow it
|
|
71
|
-
*
|
|
72
|
-
* `useChartRange` inside `chart-cards` is uncontrolled — it has a `defaultRange`
|
|
73
|
-
* and no `range` — so a period changed from OUTSIDE cannot reach the chart's own
|
|
74
|
-
* segmented control. The chart is therefore keyed on the period id: an external
|
|
75
|
-
* change remounts it with the new default rather than letting the switch and the
|
|
76
|
-
* panel disagree. The cost is that the bars grow in again instead of morphing.
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
/** The axis's last resort: a number, rounded, with nobody's currency on it. */
|
|
80
|
-
const roundedAxisValue = value => String(Math.round(value));
|
|
81
|
-
function EarningsSummaryComponent({
|
|
82
|
-
periods,
|
|
83
|
-
period: periodProp,
|
|
84
|
-
defaultPeriod,
|
|
85
|
-
onPeriodChange,
|
|
86
|
-
payout,
|
|
87
|
-
onPressPayout,
|
|
88
|
-
payoutAction,
|
|
89
|
-
formatAxisValue = roundedAxisValue,
|
|
90
|
-
chartHeight,
|
|
91
|
-
breakdown,
|
|
92
|
-
stats,
|
|
93
|
-
labels: labelOverrides,
|
|
94
|
-
accessibilityLabel: accessibilityLabelProp,
|
|
95
|
-
style,
|
|
96
|
-
testID
|
|
97
|
-
}) {
|
|
98
|
-
const {
|
|
99
|
-
messages
|
|
100
|
-
} = (0, _messages.useMessages)(_messages2.EARNINGS_MESSAGES);
|
|
101
|
-
const accessibilityLabel = accessibilityLabelProp ?? messages.earnings;
|
|
102
|
-
const theme = (0, _useTheme.useTheme)();
|
|
103
|
-
const surface = (0, _surfaceLevels.useSurfaceFill)();
|
|
104
|
-
const paint = (0, _react.useMemo)(() => (0, _shared.resolveEarningsPaint)(theme, surface), [theme, surface]);
|
|
105
|
-
const labels = (0, _react.useMemo)(() => ({
|
|
106
|
-
...messages,
|
|
107
|
-
...labelOverrides,
|
|
108
|
-
payoutState: {
|
|
109
|
-
...messages.payoutState,
|
|
110
|
-
...labelOverrides?.payoutState
|
|
111
|
-
}
|
|
112
|
-
}), [messages, labelOverrides]);
|
|
113
|
-
const [periodId, setPeriodId] = (0, _useControllableState.useControllableState)({
|
|
114
|
-
value: periodProp,
|
|
115
|
-
defaultValue: defaultPeriod ?? periods[0]?.id ?? '',
|
|
116
|
-
onChange: onPeriodChange
|
|
117
|
-
});
|
|
118
|
-
const current = (0, _shared.resolveEarningsPeriod)(periods, periodId);
|
|
119
|
-
|
|
120
|
-
// The chart's active bar is OWNED here: the headline has to be able to say
|
|
121
|
-
// which amount it is showing, and only this component knows the strings.
|
|
122
|
-
const [selection, setSelection] = (0, _react.useState)(null);
|
|
123
|
-
const currentPeriod = current?.id;
|
|
124
|
-
// A controlled prop change must clear selection before the new headline paints.
|
|
125
|
-
if (selection && selection.period !== currentPeriod) setSelection(null);
|
|
126
|
-
const activeIndex = selection?.period === currentPeriod ? selection?.index ?? null : null;
|
|
127
|
-
const setActiveIndex = (0, _react.useCallback)(index => {
|
|
128
|
-
setSelection({
|
|
129
|
-
period: currentPeriod,
|
|
130
|
-
index
|
|
131
|
-
});
|
|
132
|
-
}, [currentPeriod]);
|
|
133
|
-
const changePeriod = (0, _react.useCallback)(id => {
|
|
134
|
-
setActiveIndex(null);
|
|
135
|
-
setPeriodId(id);
|
|
136
|
-
}, [setPeriodId, setActiveIndex]);
|
|
137
|
-
const {
|
|
138
|
-
width,
|
|
139
|
-
onLayout
|
|
140
|
-
} = (0, _useContainerWidth.useContainerWidth)();
|
|
141
|
-
const wide = width === null || width >= _constants.EARNINGS_GEOMETRY.narrowWidth;
|
|
142
|
-
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
143
|
-
const bars = current?.bars;
|
|
144
|
-
const total = current?.total ?? '';
|
|
145
|
-
const chartData = (0, _react.useMemo)(() => (bars ?? []).map(bar => ({
|
|
146
|
-
label: bar.label,
|
|
147
|
-
value: bar.value
|
|
148
|
-
})), [bars]);
|
|
149
|
-
const ranges = (0, _react.useMemo)(() => periods.map(entry => ({
|
|
150
|
-
id: entry.id,
|
|
151
|
-
label: entry.label
|
|
152
|
-
})), [periods]);
|
|
153
|
-
|
|
154
|
-
// Both are CHOSEN from strings the app formatted, never produced from a
|
|
155
|
-
// number: `format` ignores the value the count-up hands it on purpose.
|
|
156
|
-
const headlineText = (0, _shared.earningsHeadline)(total, bars, activeIndex);
|
|
157
|
-
const headlineLabel = (0, _shared.earningsHeadlineLabel)(labels.earned, bars, activeIndex);
|
|
158
|
-
const format = (0, _react.useCallback)(() => headlineText, [headlineText]);
|
|
159
|
-
const periodStats = current?.stats ?? [];
|
|
160
|
-
const showStats = (stats ?? true) && periodStats.length > 0;
|
|
161
|
-
const periodLines = current?.lines ?? [];
|
|
162
|
-
const showBreakdown = (breakdown ?? true) && periodLines.length > 0;
|
|
163
|
-
const shownPayout = current?.payout ?? payout;
|
|
164
|
-
const tileRows = [];
|
|
165
|
-
if (wide) {
|
|
166
|
-
if (periodStats.length > 0) tileRows.push(periodStats.map((_unused, index) => index));
|
|
167
|
-
} else {
|
|
168
|
-
for (let i = 0; i < periodStats.length; i += 2) tileRows.push(i + 1 < periodStats.length ? [i, i + 1] : [i]);
|
|
169
|
-
}
|
|
170
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_surfaceLevels.SurfaceLevelProvider, {
|
|
171
|
-
level: 0,
|
|
172
|
-
fill: paint.surface,
|
|
173
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
174
|
-
collapsable: false,
|
|
175
|
-
onLayout: onLayout,
|
|
176
|
-
role: "group",
|
|
177
|
-
accessibilityLabel: accessibilityLabel,
|
|
178
|
-
style: [{
|
|
179
|
-
gap: _constants.EARNINGS_GEOMETRY.gap
|
|
180
|
-
}, style],
|
|
181
|
-
testID: testID,
|
|
182
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.EarningsChartCard, {
|
|
183
|
-
title: headlineLabel,
|
|
184
|
-
data: chartData
|
|
185
|
-
// The figure is a string, so the number behind it only has to be
|
|
186
|
-
// STABLE — the fade replays on the period and the bar, not on it.
|
|
187
|
-
,
|
|
188
|
-
headline: 0,
|
|
189
|
-
delta: current?.deltaRatio,
|
|
190
|
-
ranges: ranges.length > 1 ? ranges : undefined,
|
|
191
|
-
defaultRange: periodId,
|
|
192
|
-
onRangeChange: changePeriod,
|
|
193
|
-
rangesLabel: labels.period,
|
|
194
|
-
format: format,
|
|
195
|
-
formatAxisValue: formatAxisValue,
|
|
196
|
-
activeIndex: activeIndex,
|
|
197
|
-
onActiveIndexChange: setActiveIndex,
|
|
198
|
-
accessibilityLabel: labels.chart(current?.label ?? ''),
|
|
199
|
-
style: chartHeight === undefined ? undefined : {
|
|
200
|
-
height: chartHeight
|
|
201
|
-
},
|
|
202
|
-
testID: id('chart')
|
|
203
|
-
}, periodId), current?.caption ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
204
|
-
variant: "body-2-regular",
|
|
205
|
-
style: {
|
|
206
|
-
color: paint.textSecondary
|
|
207
|
-
},
|
|
208
|
-
testID: id('caption'),
|
|
209
|
-
children: current.caption
|
|
210
|
-
}) : null, showStats ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
211
|
-
style: {
|
|
212
|
-
gap: _constants.EARNINGS_GEOMETRY.tileGap
|
|
213
|
-
},
|
|
214
|
-
testID: id('stats'),
|
|
215
|
-
children: tileRows.map(row => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
216
|
-
style: {
|
|
217
|
-
flexDirection: 'row',
|
|
218
|
-
alignItems: 'stretch',
|
|
219
|
-
gap: _constants.EARNINGS_GEOMETRY.tileGap
|
|
220
|
-
},
|
|
221
|
-
children: [row.map(index => {
|
|
222
|
-
const stat = periodStats[index];
|
|
223
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
224
|
-
style: [styles.tile, {
|
|
225
|
-
backgroundColor: paint.tile
|
|
226
|
-
}],
|
|
227
|
-
testID: id(`stat-${index}`),
|
|
228
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
229
|
-
variant: "body-medium",
|
|
230
|
-
numberOfLines: 1,
|
|
231
|
-
style: {
|
|
232
|
-
width: '100%',
|
|
233
|
-
color: paint.tileText.text
|
|
234
|
-
},
|
|
235
|
-
children: stat.value
|
|
236
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
237
|
-
variant: "body-2-medium",
|
|
238
|
-
numberOfLines: 1,
|
|
239
|
-
style: {
|
|
240
|
-
width: '100%',
|
|
241
|
-
color: paint.tileText.textSecondary
|
|
242
|
-
},
|
|
243
|
-
children: stat.label
|
|
244
|
-
})]
|
|
245
|
-
}, `${index}-${stat.label}`);
|
|
246
|
-
}), !wide && row.length === 1 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
247
|
-
style: styles.tileSpacer
|
|
248
|
-
}) : null]
|
|
249
|
-
}, `stat-row-${row[0]}`))
|
|
250
|
-
}) : null, showBreakdown ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_EarningsBreakdown.EarningsBreakdown, {
|
|
251
|
-
lines: periodLines,
|
|
252
|
-
title: labels.breakdown,
|
|
253
|
-
labels: labelOverrides,
|
|
254
|
-
testID: id('breakdown')
|
|
255
|
-
}) : null, shownPayout ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_EarningsPayoutRow.EarningsPayoutRow, {
|
|
256
|
-
payout: shownPayout,
|
|
257
|
-
title: labels.payout,
|
|
258
|
-
onPress: onPressPayout,
|
|
259
|
-
action: payoutAction,
|
|
260
|
-
labels: labelOverrides,
|
|
261
|
-
testID: id('payout')
|
|
262
|
-
}) : null, !showStats && !showBreakdown && shownPayout === undefined ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
263
|
-
variant: "body-regular",
|
|
264
|
-
style: {
|
|
265
|
-
color: paint.textSecondary
|
|
266
|
-
},
|
|
267
|
-
testID: id('empty'),
|
|
268
|
-
children: labels.empty
|
|
269
|
-
}) : null]
|
|
270
|
-
})
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
const styles = _reactNative.StyleSheet.create({
|
|
274
|
-
tile: {
|
|
275
|
-
flexGrow: 1,
|
|
276
|
-
flexShrink: 1,
|
|
277
|
-
flexBasis: 0,
|
|
278
|
-
minWidth: 0,
|
|
279
|
-
alignItems: 'flex-start',
|
|
280
|
-
borderRadius: _constants.EARNINGS_GEOMETRY.tileRadius,
|
|
281
|
-
paddingTop: _constants.EARNINGS_GEOMETRY.tilePadding,
|
|
282
|
-
paddingBottom: _constants.EARNINGS_GEOMETRY.tilePadding,
|
|
283
|
-
paddingLeft: _constants.EARNINGS_GEOMETRY.tilePadding,
|
|
284
|
-
paddingRight: _constants.EARNINGS_GEOMETRY.tilePadding
|
|
285
|
-
},
|
|
286
|
-
tileSpacer: {
|
|
287
|
-
flexGrow: 1,
|
|
288
|
-
flexShrink: 1,
|
|
289
|
-
flexBasis: 0,
|
|
290
|
-
minWidth: 0
|
|
291
|
-
}
|
|
292
|
-
});
|
|
293
|
-
const EarningsSummary = exports.EarningsSummary = /*#__PURE__*/(0, _react.memo)(EarningsSummaryComponent);
|
|
294
|
-
EarningsSummary.displayName = 'EarningsSummary';
|
|
295
|
-
//# sourceMappingURL=EarningsSummary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_useContainerWidth","_useControllableState","_messages","_surfaceLevels","_useTheme","_index2","_constants","_messages2","_EarningsBreakdown","_EarningsPayoutRow","_shared","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","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","useMessages","EARNINGS_MESSAGES","earnings","theme","useTheme","surface","useSurfaceFill","paint","useMemo","resolveEarningsPaint","payoutState","periodId","setPeriodId","useControllableState","defaultValue","id","onChange","current","resolveEarningsPeriod","selection","setSelection","useState","currentPeriod","activeIndex","index","setActiveIndex","useCallback","changePeriod","width","onLayout","useContainerWidth","wide","EARNINGS_GEOMETRY","narrowWidth","part","undefined","bars","total","chartData","map","bar","label","ranges","entry","headlineText","earningsHeadline","headlineLabel","earningsHeadlineLabel","earned","format","periodStats","showStats","length","periodLines","lines","showBreakdown","shownPayout","tileRows","push","_unused","i","jsx","SurfaceLevelProvider","level","fill","children","jsxs","View","collapsable","role","gap","EarningsChartCard","title","data","headline","delta","deltaRatio","defaultRange","onRangeChange","rangesLabel","onActiveIndexChange","chart","height","caption","Text","variant","color","textSecondary","tileGap","row","flexDirection","alignItems","stat","styles","tile","backgroundColor","numberOfLines","tileText","text","tileSpacer","EarningsBreakdown","EarningsPayoutRow","onPress","action","empty","StyleSheet","create","flexGrow","flexShrink","flexBasis","minWidth","borderRadius","tileRadius","paddingTop","tilePadding","paddingBottom","paddingLeft","paddingRight","EarningsSummary","exports","memo","displayName"],"sourceRoot":"../../../src","sources":["earnings/EarningsSummary.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAA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E,CAAC;IACZC,QAAQ,EAAE,CAAC;IACXnB,UAAU,EAAE,YAAY;IACxBoB,YAAY,EAAE/E,4BAAiB,CAACgF,UAAU;IAC1CC,UAAU,EAAEjF,4BAAiB,CAACkF,WAAW;IACzCC,aAAa,EAAEnF,4BAAiB,CAACkF,WAAW;IAC5CE,WAAW,EAAEpF,4BAAiB,CAACkF,WAAW;IAC1CG,YAAY,EAAErF,4BAAiB,CAACkF;EAClC,CAAC;EACDf,UAAU,EAAE;IAAEQ,QAAQ,EAAE,CAAC;IAAEC,UAAU,EAAE,CAAC;IAAEC,SAAS,EAAE,CAAC;IAAEC,QAAQ,EAAE;EAAE;AACtE,CAAC,CAAC;AAEK,MAAMQ,eAAe,GAAAC,OAAA,CAAAD,eAAA,gBAAG,IAAAE,WAAI,EAAC5I,wBAAwB,CAAC;AAC7D0I,eAAe,CAACG,WAAW,GAAG,iBAAiB","ignoreList":[]}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.EARNINGS_PAYOUT_TONE = exports.EARNINGS_LABELS = exports.EARNINGS_GEOMETRY = void 0;
|
|
7
|
-
var _scales = require("../design-tokens/scales.js");
|
|
8
|
-
var _messages = require("./messages.js");
|
|
9
|
-
var _breakpoints = require("../styles/breakpoints.js");
|
|
10
|
-
/**
|
|
11
|
-
* Every default word the family draws, in English. The components speak
|
|
12
|
-
* `EARNINGS_MESSAGES` in the resolved locale.
|
|
13
|
-
*/
|
|
14
|
-
const EARNINGS_LABELS = exports.EARNINGS_LABELS = {
|
|
15
|
-
earned: _messages.EARNINGS_MESSAGES.en.earned,
|
|
16
|
-
period: _messages.EARNINGS_MESSAGES.en.period,
|
|
17
|
-
breakdown: _messages.EARNINGS_MESSAGES.en.breakdown,
|
|
18
|
-
payout: _messages.EARNINGS_MESSAGES.en.payout,
|
|
19
|
-
payoutState: _messages.EARNINGS_MESSAGES.en.payoutState,
|
|
20
|
-
chart: _messages.EARNINGS_MESSAGES.en.chart,
|
|
21
|
-
empty: _messages.EARNINGS_MESSAGES.en.empty
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The tone each payout state is painted in.
|
|
26
|
-
*
|
|
27
|
-
* `scheduled` is `default` because waiting is not news. `processing` is `info`:
|
|
28
|
-
* something is happening and there is nothing to do about it. `paid` is
|
|
29
|
-
* `success`. `held` is `warning` and `failed` is `error` — the two that need
|
|
30
|
-
* the reader to act, told apart by whether the money is still coming.
|
|
31
|
-
*/
|
|
32
|
-
const EARNINGS_PAYOUT_TONE = exports.EARNINGS_PAYOUT_TONE = {
|
|
33
|
-
scheduled: 'default',
|
|
34
|
-
processing: 'info',
|
|
35
|
-
paid: 'success',
|
|
36
|
-
held: 'warning',
|
|
37
|
-
failed: 'error'
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* The panel's geometry.
|
|
42
|
-
*
|
|
43
|
-
* `tile` is `ai-profile-card`'s stat tile exactly — radius 10, padding 10, the
|
|
44
|
-
* reading over its label — because a courier's "18 jobs" and a profile's
|
|
45
|
-
* "9B lifetime tokens" are the same object, and two tile geometries in one
|
|
46
|
-
* library is two answers to one question.
|
|
47
|
-
*/
|
|
48
|
-
const EARNINGS_GEOMETRY = exports.EARNINGS_GEOMETRY = {
|
|
49
|
-
/** Between the chart, the tiles, the breakdown and the payout. */
|
|
50
|
-
gap: 16,
|
|
51
|
-
/** Between tiles, and between tile rows. */
|
|
52
|
-
tileGap: 8,
|
|
53
|
-
tilePadding: 10,
|
|
54
|
-
tileRadius: 10,
|
|
55
|
-
/** The payout row's leading glyph tile. */
|
|
56
|
-
glyph: 40,
|
|
57
|
-
glyphRadius: _scales.RADIUS['radius-12'],
|
|
58
|
-
/** Under this the tiles stack two to a row. */
|
|
59
|
-
narrowWidth: _breakpoints.BREAKPOINTS.sm
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_scales","require","_messages","_breakpoints","EARNINGS_LABELS","exports","earned","EARNINGS_MESSAGES","en","period","breakdown","payout","payoutState","chart","empty","EARNINGS_PAYOUT_TONE","scheduled","processing","paid","held","failed","EARNINGS_GEOMETRY","gap","tileGap","tilePadding","tileRadius","glyph","glyphRadius","RADIUS","narrowWidth","BREAKPOINTS","sm"],"sourceRoot":"../../../src","sources":["earnings/constants.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AAEA;AACA;AACA;AACA;AACO,MAAMG,eAEZ,GAAAC,OAAA,CAAAD,eAAA,GAAG;EACFE,MAAM,EAAEC,2BAAiB,CAACC,EAAE,CAACF,MAAM;EACnCG,MAAM,EAAEF,2BAAiB,CAACC,EAAE,CAACC,MAAM;EACnCC,SAAS,EAAEH,2BAAiB,CAACC,EAAE,CAACE,SAAS;EACzCC,MAAM,EAAEJ,2BAAiB,CAACC,EAAE,CAACG,MAAM;EACnCC,WAAW,EAAEL,2BAAiB,CAACC,EAAE,CAACI,WAAW;EAC7CC,KAAK,EAAEN,2BAAiB,CAACC,EAAE,CAACK,KAAK;EACjCC,KAAK,EAAEP,2BAAiB,CAACC,EAAE,CAACM;AAC9B,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,oBAA6D,GAAAV,OAAA,CAAAU,oBAAA,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;AACO,MAAMC,iBAAiB,GAAAhB,OAAA,CAAAgB,iBAAA,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,EAAEC,cAAM,CAAC,WAAW,CAAC;EAChC;EACAC,WAAW,EAAEC,wBAAW,CAACC;AAC3B,CAAU","ignoreList":[]}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "EARNINGS_GEOMETRY", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _constants.EARNINGS_GEOMETRY;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "EARNINGS_LABELS", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _constants.EARNINGS_LABELS;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "EARNINGS_PAYOUT_TONE", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _constants.EARNINGS_PAYOUT_TONE;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "EarningsBreakdown", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _EarningsBreakdown.EarningsBreakdown;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "EarningsPayoutRow", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _EarningsPayoutRow.EarningsPayoutRow;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "EarningsSummary", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _EarningsSummary.EarningsSummary;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "earningsHeadline", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return _shared.earningsHeadline;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "earningsHeadlineLabel", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return _shared.earningsHeadlineLabel;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "joinEarningsName", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _shared.joinEarningsName;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "resolveEarningsPaint", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () {
|
|
63
|
-
return _shared.resolveEarningsPaint;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "resolveEarningsPeriod", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () {
|
|
69
|
-
return _shared.resolveEarningsPeriod;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
var _EarningsBreakdown = require("./EarningsBreakdown.js");
|
|
73
|
-
var _EarningsPayoutRow = require("./EarningsPayoutRow.js");
|
|
74
|
-
var _EarningsSummary = require("./EarningsSummary.js");
|
|
75
|
-
var _constants = require("./constants.js");
|
|
76
|
-
var _shared = require("./shared.js");
|
|
77
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_EarningsBreakdown","require","_EarningsPayoutRow","_EarningsSummary","_constants","_shared"],"sourceRoot":"../../../src","sources":["earnings/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA","ignoreList":[]}
|