@docyrus/rn-assistant 0.0.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/README.md +477 -0
- package/dist/commonjs/components/agent-selector/agent-selector.js +300 -0
- package/dist/commonjs/components/agent-selector/agent-selector.js.map +1 -0
- package/dist/commonjs/components/agent-selector/index.js +17 -0
- package/dist/commonjs/components/agent-selector/index.js.map +1 -0
- package/dist/commonjs/components/assistant-animations/assistant-animations.js +169 -0
- package/dist/commonjs/components/assistant-animations/assistant-animations.js.map +1 -0
- package/dist/commonjs/components/assistant-animations/index.js +17 -0
- package/dist/commonjs/components/assistant-animations/index.js.map +1 -0
- package/dist/commonjs/components/assistant-screen/assistant-screen.js +809 -0
- package/dist/commonjs/components/assistant-screen/assistant-screen.js.map +1 -0
- package/dist/commonjs/components/assistant-screen/index.js +17 -0
- package/dist/commonjs/components/assistant-screen/index.js.map +1 -0
- package/dist/commonjs/components/index.js +116 -0
- package/dist/commonjs/components/index.js.map +1 -0
- package/dist/commonjs/components/message-parts/index.js +13 -0
- package/dist/commonjs/components/message-parts/index.js.map +1 -0
- package/dist/commonjs/components/message-parts/message-parts.js +209 -0
- package/dist/commonjs/components/message-parts/message-parts.js.map +1 -0
- package/dist/commonjs/components/new-chat/index.js +17 -0
- package/dist/commonjs/components/new-chat/index.js.map +1 -0
- package/dist/commonjs/components/new-chat/new-chat.js +100 -0
- package/dist/commonjs/components/new-chat/new-chat.js.map +1 -0
- package/dist/commonjs/components/prompt-input/attachment-picker.js +341 -0
- package/dist/commonjs/components/prompt-input/attachment-picker.js.map +1 -0
- package/dist/commonjs/components/prompt-input/attachment-preview.js +229 -0
- package/dist/commonjs/components/prompt-input/attachment-preview.js.map +1 -0
- package/dist/commonjs/components/prompt-input/index.js +41 -0
- package/dist/commonjs/components/prompt-input/index.js.map +1 -0
- package/dist/commonjs/components/prompt-input/prompt-input.js +288 -0
- package/dist/commonjs/components/prompt-input/prompt-input.js.map +1 -0
- package/dist/commonjs/components/prompt-input/provider-selector.js +542 -0
- package/dist/commonjs/components/prompt-input/provider-selector.js.map +1 -0
- package/dist/commonjs/components/prompt-input/reasoning-level-selector.js +350 -0
- package/dist/commonjs/components/prompt-input/reasoning-level-selector.js.map +1 -0
- package/dist/commonjs/components/prompt-input/voice-recorder.js +260 -0
- package/dist/commonjs/components/prompt-input/voice-recorder.js.map +1 -0
- package/dist/commonjs/components/sessions-list/index.js +17 -0
- package/dist/commonjs/components/sessions-list/index.js.map +1 -0
- package/dist/commonjs/components/sessions-list/sessions-list.js +820 -0
- package/dist/commonjs/components/sessions-list/sessions-list.js.map +1 -0
- package/dist/commonjs/hooks/index.js +34 -0
- package/dist/commonjs/hooks/index.js.map +1 -0
- package/dist/commonjs/hooks/use-agent-models.js +104 -0
- package/dist/commonjs/hooks/use-agent-models.js.map +1 -0
- package/dist/commonjs/hooks/use-assistant.js +402 -0
- package/dist/commonjs/hooks/use-assistant.js.map +1 -0
- package/dist/commonjs/hooks/use-attachment-picker.js +308 -0
- package/dist/commonjs/hooks/use-attachment-picker.js.map +1 -0
- package/dist/commonjs/hooks/use-voice-recorder.js +217 -0
- package/dist/commonjs/hooks/use-voice-recorder.js.map +1 -0
- package/dist/commonjs/index.js +112 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/package.json +1 -0
- package/dist/commonjs/theme/assistant-theme.js +105 -0
- package/dist/commonjs/theme/assistant-theme.js.map +1 -0
- package/dist/commonjs/theme/index.js +19 -0
- package/dist/commonjs/theme/index.js.map +1 -0
- package/dist/commonjs/types/index.js +2 -0
- package/dist/commonjs/types/index.js.map +1 -0
- package/dist/commonjs/ui/action-sheet.js +348 -0
- package/dist/commonjs/ui/action-sheet.js.map +1 -0
- package/dist/commonjs/ui/alert-dialog.js +134 -0
- package/dist/commonjs/ui/alert-dialog.js.map +1 -0
- package/dist/commonjs/ui/docyrus-brand-mark.js +52 -0
- package/dist/commonjs/ui/docyrus-brand-mark.js.map +1 -0
- package/dist/commonjs/ui/docyrus-icon.js +298 -0
- package/dist/commonjs/ui/docyrus-icon.js.map +1 -0
- package/dist/commonjs/ui/index.js +34 -0
- package/dist/commonjs/ui/index.js.map +1 -0
- package/dist/commonjs/utils/api-client.js +99 -0
- package/dist/commonjs/utils/api-client.js.map +1 -0
- package/dist/commonjs/utils/default-api-config.js +195 -0
- package/dist/commonjs/utils/default-api-config.js.map +1 -0
- package/dist/commonjs/utils/index.js +39 -0
- package/dist/commonjs/utils/index.js.map +1 -0
- package/dist/commonjs/utils/resolve-api-headers.js +16 -0
- package/dist/commonjs/utils/resolve-api-headers.js.map +1 -0
- package/dist/module/components/agent-selector/agent-selector.js +296 -0
- package/dist/module/components/agent-selector/agent-selector.js.map +1 -0
- package/dist/module/components/agent-selector/index.js +4 -0
- package/dist/module/components/agent-selector/index.js.map +1 -0
- package/dist/module/components/assistant-animations/assistant-animations.js +164 -0
- package/dist/module/components/assistant-animations/assistant-animations.js.map +1 -0
- package/dist/module/components/assistant-animations/index.js +4 -0
- package/dist/module/components/assistant-animations/index.js.map +1 -0
- package/dist/module/components/assistant-screen/assistant-screen.js +801 -0
- package/dist/module/components/assistant-screen/assistant-screen.js.map +1 -0
- package/dist/module/components/assistant-screen/index.js +4 -0
- package/dist/module/components/assistant-screen/index.js.map +1 -0
- package/dist/module/components/index.js +23 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/components/message-parts/index.js +4 -0
- package/dist/module/components/message-parts/index.js.map +1 -0
- package/dist/module/components/message-parts/message-parts.js +205 -0
- package/dist/module/components/message-parts/message-parts.js.map +1 -0
- package/dist/module/components/new-chat/index.js +4 -0
- package/dist/module/components/new-chat/index.js.map +1 -0
- package/dist/module/components/new-chat/new-chat.js +96 -0
- package/dist/module/components/new-chat/new-chat.js.map +1 -0
- package/dist/module/components/prompt-input/attachment-picker.js +337 -0
- package/dist/module/components/prompt-input/attachment-picker.js.map +1 -0
- package/dist/module/components/prompt-input/attachment-preview.js +225 -0
- package/dist/module/components/prompt-input/attachment-preview.js.map +1 -0
- package/dist/module/components/prompt-input/index.js +15 -0
- package/dist/module/components/prompt-input/index.js.map +1 -0
- package/dist/module/components/prompt-input/prompt-input.js +284 -0
- package/dist/module/components/prompt-input/prompt-input.js.map +1 -0
- package/dist/module/components/prompt-input/provider-selector.js +538 -0
- package/dist/module/components/prompt-input/provider-selector.js.map +1 -0
- package/dist/module/components/prompt-input/reasoning-level-selector.js +346 -0
- package/dist/module/components/prompt-input/reasoning-level-selector.js.map +1 -0
- package/dist/module/components/prompt-input/voice-recorder.js +256 -0
- package/dist/module/components/prompt-input/voice-recorder.js.map +1 -0
- package/dist/module/components/sessions-list/index.js +4 -0
- package/dist/module/components/sessions-list/index.js.map +1 -0
- package/dist/module/components/sessions-list/sessions-list.js +816 -0
- package/dist/module/components/sessions-list/sessions-list.js.map +1 -0
- package/dist/module/hooks/index.js +18 -0
- package/dist/module/hooks/index.js.map +1 -0
- package/dist/module/hooks/use-agent-models.js +100 -0
- package/dist/module/hooks/use-agent-models.js.map +1 -0
- package/dist/module/hooks/use-assistant.js +398 -0
- package/dist/module/hooks/use-assistant.js.map +1 -0
- package/dist/module/hooks/use-attachment-picker.js +303 -0
- package/dist/module/hooks/use-attachment-picker.js.map +1 -0
- package/dist/module/hooks/use-voice-recorder.js +214 -0
- package/dist/module/hooks/use-voice-recorder.js.map +1 -0
- package/dist/module/index.js +59 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/package.json +1 -0
- package/dist/module/theme/assistant-theme.js +100 -0
- package/dist/module/theme/assistant-theme.js.map +1 -0
- package/dist/module/theme/index.js +4 -0
- package/dist/module/theme/index.js.map +1 -0
- package/dist/module/types/index.js +2 -0
- package/dist/module/types/index.js.map +1 -0
- package/dist/module/ui/action-sheet.js +344 -0
- package/dist/module/ui/action-sheet.js.map +1 -0
- package/dist/module/ui/alert-dialog.js +130 -0
- package/dist/module/ui/alert-dialog.js.map +1 -0
- package/dist/module/ui/docyrus-brand-mark.js +48 -0
- package/dist/module/ui/docyrus-brand-mark.js.map +1 -0
- package/dist/module/ui/docyrus-icon.js +294 -0
- package/dist/module/ui/docyrus-icon.js.map +1 -0
- package/dist/module/ui/index.js +7 -0
- package/dist/module/ui/index.js.map +1 -0
- package/dist/module/utils/api-client.js +95 -0
- package/dist/module/utils/api-client.js.map +1 -0
- package/dist/module/utils/default-api-config.js +190 -0
- package/dist/module/utils/default-api-config.js.map +1 -0
- package/dist/module/utils/index.js +12 -0
- package/dist/module/utils/index.js.map +1 -0
- package/dist/module/utils/resolve-api-headers.js +12 -0
- package/dist/module/utils/resolve-api-headers.js.map +1 -0
- package/dist/typescript/commonjs/eslint.config.d.mts +4 -0
- package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/package.json +1 -0
- package/dist/typescript/commonjs/src/components/agent-selector/agent-selector.d.ts +49 -0
- package/dist/typescript/commonjs/src/components/agent-selector/agent-selector.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/agent-selector/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/agent-selector/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/assistant-animations/assistant-animations.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/assistant-animations/assistant-animations.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/assistant-animations/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/assistant-animations/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/assistant-screen/assistant-screen.d.ts +122 -0
- package/dist/typescript/commonjs/src/components/assistant-screen/assistant-screen.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/assistant-screen/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/assistant-screen/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.ts +11 -0
- package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/message-parts/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/message-parts/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/message-parts/message-parts.d.ts +22 -0
- package/dist/typescript/commonjs/src/components/message-parts/message-parts.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/new-chat/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/new-chat/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/new-chat/new-chat.d.ts +34 -0
- package/dist/typescript/commonjs/src/components/new-chat/new-chat.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/attachment-picker.d.ts +53 -0
- package/dist/typescript/commonjs/src/components/prompt-input/attachment-picker.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/attachment-preview.d.ts +42 -0
- package/dist/typescript/commonjs/src/components/prompt-input/attachment-preview.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/index.d.ts +9 -0
- package/dist/typescript/commonjs/src/components/prompt-input/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/prompt-input.d.ts +139 -0
- package/dist/typescript/commonjs/src/components/prompt-input/prompt-input.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/provider-selector.d.ts +11 -0
- package/dist/typescript/commonjs/src/components/prompt-input/provider-selector.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/reasoning-level-selector.d.ts +35 -0
- package/dist/typescript/commonjs/src/components/prompt-input/reasoning-level-selector.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/voice-recorder.d.ts +48 -0
- package/dist/typescript/commonjs/src/components/prompt-input/voice-recorder.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/sessions-list/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/sessions-list/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/sessions-list/sessions-list.d.ts +59 -0
- package/dist/typescript/commonjs/src/components/sessions-list/sessions-list.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/hooks/index.d.ts +8 -0
- package/dist/typescript/commonjs/src/hooks/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/hooks/use-agent-models.d.ts +68 -0
- package/dist/typescript/commonjs/src/hooks/use-agent-models.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/hooks/use-assistant.d.ts +55 -0
- package/dist/typescript/commonjs/src/hooks/use-assistant.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/hooks/use-attachment-picker.d.ts +99 -0
- package/dist/typescript/commonjs/src/hooks/use-attachment-picker.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/hooks/use-voice-recorder.d.ts +101 -0
- package/dist/typescript/commonjs/src/hooks/use-voice-recorder.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/index.d.ts +47 -0
- package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/theme/assistant-theme.d.ts +51 -0
- package/dist/typescript/commonjs/src/theme/assistant-theme.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/theme/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/theme/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/types/index.d.ts +167 -0
- package/dist/typescript/commonjs/src/types/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/ui/action-sheet.d.ts +29 -0
- package/dist/typescript/commonjs/src/ui/action-sheet.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/ui/alert-dialog.d.ts +12 -0
- package/dist/typescript/commonjs/src/ui/alert-dialog.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/ui/docyrus-brand-mark.d.ts +5 -0
- package/dist/typescript/commonjs/src/ui/docyrus-brand-mark.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/ui/docyrus-icon.d.ts +11 -0
- package/dist/typescript/commonjs/src/ui/docyrus-icon.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/ui/index.d.ts +5 -0
- package/dist/typescript/commonjs/src/ui/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utils/api-client.d.ts +35 -0
- package/dist/typescript/commonjs/src/utils/api-client.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utils/default-api-config.d.ts +38 -0
- package/dist/typescript/commonjs/src/utils/default-api-config.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utils/index.d.ts +9 -0
- package/dist/typescript/commonjs/src/utils/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utils/resolve-api-headers.d.ts +3 -0
- package/dist/typescript/commonjs/src/utils/resolve-api-headers.d.ts.map +1 -0
- package/dist/typescript/module/eslint.config.d.mts +4 -0
- package/dist/typescript/module/eslint.config.d.mts.map +1 -0
- package/dist/typescript/module/package.json +1 -0
- package/dist/typescript/module/src/components/agent-selector/agent-selector.d.ts +49 -0
- package/dist/typescript/module/src/components/agent-selector/agent-selector.d.ts.map +1 -0
- package/dist/typescript/module/src/components/agent-selector/index.d.ts +2 -0
- package/dist/typescript/module/src/components/agent-selector/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/assistant-animations/assistant-animations.d.ts +8 -0
- package/dist/typescript/module/src/components/assistant-animations/assistant-animations.d.ts.map +1 -0
- package/dist/typescript/module/src/components/assistant-animations/index.d.ts +2 -0
- package/dist/typescript/module/src/components/assistant-animations/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/assistant-screen/assistant-screen.d.ts +122 -0
- package/dist/typescript/module/src/components/assistant-screen/assistant-screen.d.ts.map +1 -0
- package/dist/typescript/module/src/components/assistant-screen/index.d.ts +2 -0
- package/dist/typescript/module/src/components/assistant-screen/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/index.d.ts +11 -0
- package/dist/typescript/module/src/components/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/message-parts/index.d.ts +2 -0
- package/dist/typescript/module/src/components/message-parts/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/message-parts/message-parts.d.ts +22 -0
- package/dist/typescript/module/src/components/message-parts/message-parts.d.ts.map +1 -0
- package/dist/typescript/module/src/components/new-chat/index.d.ts +2 -0
- package/dist/typescript/module/src/components/new-chat/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/new-chat/new-chat.d.ts +34 -0
- package/dist/typescript/module/src/components/new-chat/new-chat.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/attachment-picker.d.ts +53 -0
- package/dist/typescript/module/src/components/prompt-input/attachment-picker.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/attachment-preview.d.ts +42 -0
- package/dist/typescript/module/src/components/prompt-input/attachment-preview.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/index.d.ts +9 -0
- package/dist/typescript/module/src/components/prompt-input/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/prompt-input.d.ts +139 -0
- package/dist/typescript/module/src/components/prompt-input/prompt-input.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/provider-selector.d.ts +11 -0
- package/dist/typescript/module/src/components/prompt-input/provider-selector.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/reasoning-level-selector.d.ts +35 -0
- package/dist/typescript/module/src/components/prompt-input/reasoning-level-selector.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/voice-recorder.d.ts +48 -0
- package/dist/typescript/module/src/components/prompt-input/voice-recorder.d.ts.map +1 -0
- package/dist/typescript/module/src/components/sessions-list/index.d.ts +2 -0
- package/dist/typescript/module/src/components/sessions-list/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/sessions-list/sessions-list.d.ts +59 -0
- package/dist/typescript/module/src/components/sessions-list/sessions-list.d.ts.map +1 -0
- package/dist/typescript/module/src/hooks/index.d.ts +8 -0
- package/dist/typescript/module/src/hooks/index.d.ts.map +1 -0
- package/dist/typescript/module/src/hooks/use-agent-models.d.ts +68 -0
- package/dist/typescript/module/src/hooks/use-agent-models.d.ts.map +1 -0
- package/dist/typescript/module/src/hooks/use-assistant.d.ts +55 -0
- package/dist/typescript/module/src/hooks/use-assistant.d.ts.map +1 -0
- package/dist/typescript/module/src/hooks/use-attachment-picker.d.ts +99 -0
- package/dist/typescript/module/src/hooks/use-attachment-picker.d.ts.map +1 -0
- package/dist/typescript/module/src/hooks/use-voice-recorder.d.ts +101 -0
- package/dist/typescript/module/src/hooks/use-voice-recorder.d.ts.map +1 -0
- package/dist/typescript/module/src/index.d.ts +47 -0
- package/dist/typescript/module/src/index.d.ts.map +1 -0
- package/dist/typescript/module/src/theme/assistant-theme.d.ts +51 -0
- package/dist/typescript/module/src/theme/assistant-theme.d.ts.map +1 -0
- package/dist/typescript/module/src/theme/index.d.ts +2 -0
- package/dist/typescript/module/src/theme/index.d.ts.map +1 -0
- package/dist/typescript/module/src/types/index.d.ts +167 -0
- package/dist/typescript/module/src/types/index.d.ts.map +1 -0
- package/dist/typescript/module/src/ui/action-sheet.d.ts +29 -0
- package/dist/typescript/module/src/ui/action-sheet.d.ts.map +1 -0
- package/dist/typescript/module/src/ui/alert-dialog.d.ts +12 -0
- package/dist/typescript/module/src/ui/alert-dialog.d.ts.map +1 -0
- package/dist/typescript/module/src/ui/docyrus-brand-mark.d.ts +5 -0
- package/dist/typescript/module/src/ui/docyrus-brand-mark.d.ts.map +1 -0
- package/dist/typescript/module/src/ui/docyrus-icon.d.ts +11 -0
- package/dist/typescript/module/src/ui/docyrus-icon.d.ts.map +1 -0
- package/dist/typescript/module/src/ui/index.d.ts +5 -0
- package/dist/typescript/module/src/ui/index.d.ts.map +1 -0
- package/dist/typescript/module/src/utils/api-client.d.ts +35 -0
- package/dist/typescript/module/src/utils/api-client.d.ts.map +1 -0
- package/dist/typescript/module/src/utils/default-api-config.d.ts +38 -0
- package/dist/typescript/module/src/utils/default-api-config.d.ts.map +1 -0
- package/dist/typescript/module/src/utils/index.d.ts +9 -0
- package/dist/typescript/module/src/utils/index.d.ts.map +1 -0
- package/dist/typescript/module/src/utils/resolve-api-headers.d.ts +3 -0
- package/dist/typescript/module/src/utils/resolve-api-headers.d.ts.map +1 -0
- package/package.json +176 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DocyrusRNAssistantProvider = DocyrusRNAssistantProvider;
|
|
7
|
+
exports.useDocyrusRNAssistantTheme = useDocyrusRNAssistantTheme;
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
const ThemeContext = /*#__PURE__*/(0, _react.createContext)(undefined);
|
|
12
|
+
const baseSpacing = {
|
|
13
|
+
0: 0,
|
|
14
|
+
0.5: 2,
|
|
15
|
+
1: 4,
|
|
16
|
+
1.5: 6,
|
|
17
|
+
2: 8,
|
|
18
|
+
2.5: 10,
|
|
19
|
+
3: 12,
|
|
20
|
+
3.5: 14,
|
|
21
|
+
4: 16,
|
|
22
|
+
5: 20,
|
|
23
|
+
6: 24,
|
|
24
|
+
7: 28,
|
|
25
|
+
8: 32
|
|
26
|
+
};
|
|
27
|
+
const baseRadius = {
|
|
28
|
+
sm: 8,
|
|
29
|
+
md: 12,
|
|
30
|
+
lg: 16,
|
|
31
|
+
xl: 20,
|
|
32
|
+
full: 999
|
|
33
|
+
};
|
|
34
|
+
const lightColors = {
|
|
35
|
+
background: '#ffffff',
|
|
36
|
+
foreground: '#111827',
|
|
37
|
+
card: '#f8fafc',
|
|
38
|
+
cardForeground: '#111827',
|
|
39
|
+
muted: '#eef2f7',
|
|
40
|
+
mutedForeground: '#667085',
|
|
41
|
+
border: '#dbe3ee',
|
|
42
|
+
primary: '#dc2626',
|
|
43
|
+
primaryForeground: '#ffffff',
|
|
44
|
+
destructive: '#dc2626',
|
|
45
|
+
destructiveForeground: '#ffffff',
|
|
46
|
+
success: '#16a34a',
|
|
47
|
+
successForeground: '#ffffff',
|
|
48
|
+
warning: '#d97706',
|
|
49
|
+
warningForeground: '#ffffff'
|
|
50
|
+
};
|
|
51
|
+
const darkColors = {
|
|
52
|
+
background: '#0b1220',
|
|
53
|
+
foreground: '#f8fafc',
|
|
54
|
+
card: '#111827',
|
|
55
|
+
cardForeground: '#f8fafc',
|
|
56
|
+
muted: '#1f2937',
|
|
57
|
+
mutedForeground: '#94a3b8',
|
|
58
|
+
border: '#243041',
|
|
59
|
+
primary: '#ef4444',
|
|
60
|
+
primaryForeground: '#ffffff',
|
|
61
|
+
destructive: '#ef4444',
|
|
62
|
+
destructiveForeground: '#ffffff',
|
|
63
|
+
success: '#22c55e',
|
|
64
|
+
successForeground: '#052e16',
|
|
65
|
+
warning: '#f59e0b',
|
|
66
|
+
warningForeground: '#111827'
|
|
67
|
+
};
|
|
68
|
+
function buildTheme(isDark, overrides) {
|
|
69
|
+
return {
|
|
70
|
+
colors: {
|
|
71
|
+
...(isDark ? darkColors : lightColors),
|
|
72
|
+
...overrides?.colors
|
|
73
|
+
},
|
|
74
|
+
spacing: {
|
|
75
|
+
...baseSpacing,
|
|
76
|
+
...overrides?.spacing
|
|
77
|
+
},
|
|
78
|
+
borderRadius: {
|
|
79
|
+
...baseRadius,
|
|
80
|
+
...overrides?.borderRadius
|
|
81
|
+
},
|
|
82
|
+
isDark
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function DocyrusRNAssistantProvider({
|
|
86
|
+
children,
|
|
87
|
+
mode = 'system',
|
|
88
|
+
theme
|
|
89
|
+
}) {
|
|
90
|
+
const value = (0, _react.useMemo)(() => ({
|
|
91
|
+
mode,
|
|
92
|
+
overrides: theme
|
|
93
|
+
}), [mode, theme]);
|
|
94
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ThemeContext.Provider, {
|
|
95
|
+
value: value,
|
|
96
|
+
children: children
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function useDocyrusRNAssistantTheme() {
|
|
100
|
+
const systemColorScheme = (0, _reactNative.useColorScheme)();
|
|
101
|
+
const context = (0, _react.useContext)(ThemeContext);
|
|
102
|
+
const isDark = context?.mode === 'dark' || context?.mode !== 'light' && systemColorScheme === 'dark';
|
|
103
|
+
return (0, _react.useMemo)(() => buildTheme(isDark, context?.overrides), [context?.overrides, isDark]);
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=assistant-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_jsxRuntime","ThemeContext","createContext","undefined","baseSpacing","baseRadius","sm","md","lg","xl","full","lightColors","background","foreground","card","cardForeground","muted","mutedForeground","border","primary","primaryForeground","destructive","destructiveForeground","success","successForeground","warning","warningForeground","darkColors","buildTheme","isDark","overrides","colors","spacing","borderRadius","DocyrusRNAssistantProvider","children","mode","theme","value","useMemo","jsx","Provider","useDocyrusRNAssistantTheme","systemColorScheme","useColorScheme","context","useContext"],"sourceRoot":"../../../src","sources":["theme/assistant-theme.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAA8C,IAAAE,WAAA,GAAAF,OAAA;AAuD9C,MAAMG,YAAY,gBAAG,IAAAC,oBAAa,EAAgCC,SAAS,CAAC;AAE5E,MAAMC,WAAkC,GAAG;EACzC,CAAC,EAAE,CAAC;EACJ,GAAG,EAAE,CAAC;EACN,CAAC,EAAE,CAAC;EACJ,GAAG,EAAE,CAAC;EACN,CAAC,EAAE,CAAC;EACJ,GAAG,EAAE,EAAE;EACP,CAAC,EAAE,EAAE;EACL,GAAG,EAAE,EAAE;EACP,CAAC,EAAE,EAAE;EACL,CAAC,EAAE,EAAE;EACL,CAAC,EAAE,EAAE;EACL,CAAC,EAAE,EAAE;EACL,CAAC,EAAE;AACL,CAAC;AAED,MAAMC,UAAgC,GAAG;EACvCC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACN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EACF,CAAC;AACH;AAOO,SAASK,0BAA0BA,CAAC;EACzCC,QAAQ;EACRC,IAAI,GAAG,QAAQ;EACfC;AAC+B,CAAC,EAAE;EAClC,MAAMC,KAAK,GAAG,IAAAC,cAAO,EAAC,OAAO;IAAEH,IAAI;IAAEN,SAAS,EAAEO;EAAM,CAAC,CAAC,EAAE,CAACD,IAAI,EAAEC,KAAK,CAAC,CAAC;EAExE,oBACE,IAAArC,WAAA,CAAAwC,GAAA,EAACvC,YAAY,CAACwC,QAAQ;IAACH,KAAK,EAAEA,KAAM;IAAAH,QAAA,EACjCA;EAAQ,CACY,CAAC;AAE5B;AAEO,SAASO,0BAA0BA,CAAA,EAA4B;EACpE,MAAMC,iBAAiB,GAAG,IAAAC,2BAAc,EAAC,CAAC;EAC1C,MAAMC,OAAO,GAAG,IAAAC,iBAAU,EAAC7C,YAAY,CAAC;EAExC,MAAM4B,MAAM,GAAGgB,OAAO,EAAET,IAAI,KAAK,MAAM,IACjCS,OAAO,EAAET,IAAI,KAAK,OAAO,IAAIO,iBAAiB,KAAK,MAAO;EAEhE,OAAO,IAAAJ,cAAO,EAAC,MAAMX,UAAU,CAACC,MAAM,EAAEgB,OAAO,EAAEf,SAAS,CAAC,EAAE,CAACe,OAAO,EAAEf,SAAS,EAAED,MAAM,CAAC,CAAC;AAC5F","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "DocyrusRNAssistantProvider", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _assistantTheme.DocyrusRNAssistantProvider;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "useDocyrusRNAssistantTheme", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _assistantTheme.useDocyrusRNAssistantTheme;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _assistantTheme = require("./assistant-theme.js");
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_assistantTheme","require"],"sourceRoot":"../../../src","sources":["theme/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ActionSheet = ActionSheet;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
10
|
+
var _index = require("../theme/index.js");
|
|
11
|
+
var _docyrusIcon = require("./docyrus-icon.js");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
const ratioMap = {
|
|
14
|
+
small: 0.42,
|
|
15
|
+
medium: 0.72,
|
|
16
|
+
large: 1
|
|
17
|
+
};
|
|
18
|
+
function resolveMaxHeight(detent, topInset) {
|
|
19
|
+
const screenHeight = _reactNative.Dimensions.get('window').height;
|
|
20
|
+
const availableHeight = Math.max(screenHeight - Math.max(topInset - 8, 0), 320);
|
|
21
|
+
if (detent === 'fit') {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (detent === 'large') {
|
|
25
|
+
return availableHeight;
|
|
26
|
+
}
|
|
27
|
+
return Math.round(availableHeight * ratioMap[detent]);
|
|
28
|
+
}
|
|
29
|
+
function ActionSheet({
|
|
30
|
+
actions = [],
|
|
31
|
+
cancelLabel,
|
|
32
|
+
children,
|
|
33
|
+
closeOnBackdrop = true,
|
|
34
|
+
contentContainerStyle,
|
|
35
|
+
detent = 'fit',
|
|
36
|
+
detents,
|
|
37
|
+
fixedContent,
|
|
38
|
+
message,
|
|
39
|
+
onClose,
|
|
40
|
+
scrollable = true,
|
|
41
|
+
showCancel = false,
|
|
42
|
+
title,
|
|
43
|
+
visible
|
|
44
|
+
}) {
|
|
45
|
+
const theme = (0, _index.useDocyrusRNAssistantTheme)();
|
|
46
|
+
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
47
|
+
const resolvedDetent = (0, _react.useMemo)(() => detents?.[0] ?? detent, [detent, detents]);
|
|
48
|
+
const maxHeight = resolveMaxHeight(resolvedDetent, insets.top);
|
|
49
|
+
const [isMounted, setIsMounted] = (0, _react.useState)(visible);
|
|
50
|
+
const progress = (0, _react.useRef)(new _reactNative.Animated.Value(visible ? 1 : 0)).current;
|
|
51
|
+
const dragY = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
52
|
+
const sheetTravel = maxHeight ?? Math.round(_reactNative.Dimensions.get('window').height * 0.9);
|
|
53
|
+
const closeThreshold = Math.min(140, Math.max(64, sheetTravel * 0.18));
|
|
54
|
+
const finishClose = (0, _react.useCallback)(() => {
|
|
55
|
+
dragY.setValue(0);
|
|
56
|
+
onClose();
|
|
57
|
+
}, [dragY, onClose]);
|
|
58
|
+
(0, _react.useEffect)(() => {
|
|
59
|
+
if (visible) {
|
|
60
|
+
setIsMounted(true);
|
|
61
|
+
dragY.setValue(0);
|
|
62
|
+
_reactNative.Animated.spring(progress, {
|
|
63
|
+
toValue: 1,
|
|
64
|
+
damping: 24,
|
|
65
|
+
stiffness: 260,
|
|
66
|
+
mass: 0.9,
|
|
67
|
+
useNativeDriver: true
|
|
68
|
+
}).start();
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
_reactNative.Animated.timing(progress, {
|
|
72
|
+
toValue: 0,
|
|
73
|
+
duration: 220,
|
|
74
|
+
easing: _reactNative.Easing.out(_reactNative.Easing.cubic),
|
|
75
|
+
useNativeDriver: true
|
|
76
|
+
}).start(({
|
|
77
|
+
finished
|
|
78
|
+
}) => {
|
|
79
|
+
if (finished) {
|
|
80
|
+
setIsMounted(false);
|
|
81
|
+
dragY.setValue(0);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}, [dragY, progress, visible]);
|
|
85
|
+
const requestClose = (0, _react.useCallback)(() => {
|
|
86
|
+
_reactNative.Animated.parallel([_reactNative.Animated.timing(progress, {
|
|
87
|
+
toValue: 0,
|
|
88
|
+
duration: 180,
|
|
89
|
+
easing: _reactNative.Easing.out(_reactNative.Easing.cubic),
|
|
90
|
+
useNativeDriver: true
|
|
91
|
+
}), _reactNative.Animated.timing(dragY, {
|
|
92
|
+
toValue: Math.min(closeThreshold, 72),
|
|
93
|
+
duration: 180,
|
|
94
|
+
easing: _reactNative.Easing.out(_reactNative.Easing.cubic),
|
|
95
|
+
useNativeDriver: true
|
|
96
|
+
})]).start(({
|
|
97
|
+
finished
|
|
98
|
+
}) => {
|
|
99
|
+
if (finished) {
|
|
100
|
+
finishClose();
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}, [closeThreshold, dragY, finishClose, progress]);
|
|
104
|
+
const panResponder = (0, _react.useMemo)(() => _reactNative.PanResponder.create({
|
|
105
|
+
onMoveShouldSetPanResponder: (_, gestureState) => gestureState.dy > 6 && Math.abs(gestureState.dy) > Math.abs(gestureState.dx),
|
|
106
|
+
onPanResponderGrant: () => {
|
|
107
|
+
dragY.stopAnimation();
|
|
108
|
+
},
|
|
109
|
+
onPanResponderMove: (_, gestureState) => {
|
|
110
|
+
dragY.setValue(Math.max(0, gestureState.dy));
|
|
111
|
+
},
|
|
112
|
+
onPanResponderRelease: (_, gestureState) => {
|
|
113
|
+
if (gestureState.dy > closeThreshold || gestureState.vy > 1.15) {
|
|
114
|
+
requestClose();
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
_reactNative.Animated.spring(dragY, {
|
|
118
|
+
toValue: 0,
|
|
119
|
+
damping: 22,
|
|
120
|
+
stiffness: 240,
|
|
121
|
+
mass: 0.9,
|
|
122
|
+
useNativeDriver: true
|
|
123
|
+
}).start();
|
|
124
|
+
},
|
|
125
|
+
onPanResponderTerminate: () => {
|
|
126
|
+
_reactNative.Animated.spring(dragY, {
|
|
127
|
+
toValue: 0,
|
|
128
|
+
damping: 22,
|
|
129
|
+
stiffness: 240,
|
|
130
|
+
mass: 0.9,
|
|
131
|
+
useNativeDriver: true
|
|
132
|
+
}).start();
|
|
133
|
+
}
|
|
134
|
+
}), [closeThreshold, dragY, requestClose]);
|
|
135
|
+
const backdropOpacity = progress.interpolate({
|
|
136
|
+
inputRange: [0, 1],
|
|
137
|
+
outputRange: [0, 1]
|
|
138
|
+
});
|
|
139
|
+
const translateY = _reactNative.Animated.add(dragY, progress.interpolate({
|
|
140
|
+
inputRange: [0, 1],
|
|
141
|
+
outputRange: [sheetTravel, 0]
|
|
142
|
+
}));
|
|
143
|
+
if (!isMounted) {
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
147
|
+
pointerEvents: "box-none",
|
|
148
|
+
style: styles.root,
|
|
149
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedPressable, {
|
|
150
|
+
onPress: closeOnBackdrop ? requestClose : undefined,
|
|
151
|
+
style: [styles.backdrop, {
|
|
152
|
+
opacity: backdropOpacity
|
|
153
|
+
}],
|
|
154
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
155
|
+
style: [styles.sheetFrame, {
|
|
156
|
+
transform: [{
|
|
157
|
+
translateY
|
|
158
|
+
}]
|
|
159
|
+
}],
|
|
160
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
161
|
+
onPress: event => event.stopPropagation(),
|
|
162
|
+
style: [styles.sheet, {
|
|
163
|
+
backgroundColor: theme.colors.card,
|
|
164
|
+
borderColor: theme.colors.border,
|
|
165
|
+
borderTopLeftRadius: theme.borderRadius.xl,
|
|
166
|
+
borderTopRightRadius: theme.borderRadius.xl,
|
|
167
|
+
borderBottomLeftRadius: 0,
|
|
168
|
+
borderBottomRightRadius: 0,
|
|
169
|
+
height: maxHeight,
|
|
170
|
+
maxHeight,
|
|
171
|
+
paddingBottom: insets.bottom
|
|
172
|
+
}],
|
|
173
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
174
|
+
...panResponder.panHandlers,
|
|
175
|
+
style: styles.handleTouchArea,
|
|
176
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
177
|
+
style: [styles.handle, {
|
|
178
|
+
backgroundColor: theme.colors.border
|
|
179
|
+
}]
|
|
180
|
+
})
|
|
181
|
+
}), (title || message) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
182
|
+
...panResponder.panHandlers,
|
|
183
|
+
style: styles.header,
|
|
184
|
+
children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
185
|
+
style: [styles.title, {
|
|
186
|
+
color: theme.colors.foreground
|
|
187
|
+
}],
|
|
188
|
+
children: title
|
|
189
|
+
}), message && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
190
|
+
style: [styles.message, {
|
|
191
|
+
color: theme.colors.mutedForeground
|
|
192
|
+
}],
|
|
193
|
+
children: message
|
|
194
|
+
})]
|
|
195
|
+
}), fixedContent, (children || actions.length > 0) && (scrollable ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
196
|
+
bounces: false,
|
|
197
|
+
contentContainerStyle: [styles.content, contentContainerStyle],
|
|
198
|
+
showsVerticalScrollIndicator: false,
|
|
199
|
+
children: [children, actions.map(action => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
200
|
+
activeOpacity: 0.8,
|
|
201
|
+
disabled: action.disabled,
|
|
202
|
+
onPress: () => {
|
|
203
|
+
action.onPress();
|
|
204
|
+
onClose();
|
|
205
|
+
},
|
|
206
|
+
style: [styles.actionRow, {
|
|
207
|
+
backgroundColor: theme.colors.muted,
|
|
208
|
+
borderRadius: theme.borderRadius.lg,
|
|
209
|
+
opacity: action.disabled ? 0.5 : 1
|
|
210
|
+
}],
|
|
211
|
+
children: [action.icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_docyrusIcon.DocyrusIcon, {
|
|
212
|
+
color: action.destructive ? theme.colors.destructive : theme.colors.primary,
|
|
213
|
+
icon: action.icon,
|
|
214
|
+
size: 18
|
|
215
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
216
|
+
style: [styles.actionLabel, {
|
|
217
|
+
color: action.destructive ? theme.colors.destructive : theme.colors.foreground
|
|
218
|
+
}],
|
|
219
|
+
children: action.label
|
|
220
|
+
})]
|
|
221
|
+
}, action.key))]
|
|
222
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
223
|
+
style: [styles.body, contentContainerStyle],
|
|
224
|
+
children: [children, actions.map(action => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
225
|
+
activeOpacity: 0.8,
|
|
226
|
+
disabled: action.disabled,
|
|
227
|
+
onPress: () => {
|
|
228
|
+
action.onPress();
|
|
229
|
+
onClose();
|
|
230
|
+
},
|
|
231
|
+
style: [styles.actionRow, {
|
|
232
|
+
backgroundColor: theme.colors.muted,
|
|
233
|
+
borderRadius: theme.borderRadius.lg,
|
|
234
|
+
opacity: action.disabled ? 0.5 : 1
|
|
235
|
+
}],
|
|
236
|
+
children: [action.icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_docyrusIcon.DocyrusIcon, {
|
|
237
|
+
color: action.destructive ? theme.colors.destructive : theme.colors.primary,
|
|
238
|
+
icon: action.icon,
|
|
239
|
+
size: 18
|
|
240
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
241
|
+
style: [styles.actionLabel, {
|
|
242
|
+
color: action.destructive ? theme.colors.destructive : theme.colors.foreground
|
|
243
|
+
}],
|
|
244
|
+
children: action.label
|
|
245
|
+
})]
|
|
246
|
+
}, action.key))]
|
|
247
|
+
})), showCancel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
248
|
+
activeOpacity: 0.8,
|
|
249
|
+
onPress: requestClose,
|
|
250
|
+
style: [styles.cancelButton, {
|
|
251
|
+
backgroundColor: theme.colors.muted,
|
|
252
|
+
borderRadius: theme.borderRadius.lg
|
|
253
|
+
}],
|
|
254
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
255
|
+
style: [styles.cancelText, {
|
|
256
|
+
color: theme.colors.foreground
|
|
257
|
+
}],
|
|
258
|
+
children: cancelLabel ?? 'Cancel'
|
|
259
|
+
})
|
|
260
|
+
})]
|
|
261
|
+
})
|
|
262
|
+
})
|
|
263
|
+
})
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
const AnimatedPressable = _reactNative.Animated.createAnimatedComponent(_reactNative.Pressable);
|
|
267
|
+
const styles = _reactNative.StyleSheet.create({
|
|
268
|
+
actionLabel: {
|
|
269
|
+
fontSize: 15,
|
|
270
|
+
fontWeight: '600'
|
|
271
|
+
},
|
|
272
|
+
actionRow: {
|
|
273
|
+
alignItems: 'center',
|
|
274
|
+
flexDirection: 'row',
|
|
275
|
+
gap: 10,
|
|
276
|
+
paddingHorizontal: 16,
|
|
277
|
+
paddingVertical: 14
|
|
278
|
+
},
|
|
279
|
+
root: {
|
|
280
|
+
..._reactNative.StyleSheet.absoluteFillObject,
|
|
281
|
+
elevation: 1000,
|
|
282
|
+
zIndex: 1000
|
|
283
|
+
},
|
|
284
|
+
backdrop: {
|
|
285
|
+
backgroundColor: 'rgba(15, 23, 42, 0.35)',
|
|
286
|
+
flex: 1,
|
|
287
|
+
justifyContent: 'flex-end',
|
|
288
|
+
paddingHorizontal: 0,
|
|
289
|
+
paddingTop: 0
|
|
290
|
+
},
|
|
291
|
+
sheetFrame: {
|
|
292
|
+
alignSelf: 'stretch'
|
|
293
|
+
},
|
|
294
|
+
body: {
|
|
295
|
+
alignSelf: 'stretch',
|
|
296
|
+
flex: 1,
|
|
297
|
+
gap: 8,
|
|
298
|
+
minHeight: 0
|
|
299
|
+
},
|
|
300
|
+
cancelButton: {
|
|
301
|
+
alignItems: 'center',
|
|
302
|
+
justifyContent: 'center',
|
|
303
|
+
marginTop: 12,
|
|
304
|
+
paddingHorizontal: 16,
|
|
305
|
+
paddingVertical: 14
|
|
306
|
+
},
|
|
307
|
+
cancelText: {
|
|
308
|
+
fontSize: 15,
|
|
309
|
+
fontWeight: '600'
|
|
310
|
+
},
|
|
311
|
+
content: {
|
|
312
|
+
flexGrow: 1,
|
|
313
|
+
gap: 8
|
|
314
|
+
},
|
|
315
|
+
handle: {
|
|
316
|
+
alignSelf: 'center',
|
|
317
|
+
borderRadius: 999,
|
|
318
|
+
height: 5,
|
|
319
|
+
marginBottom: 12,
|
|
320
|
+
width: 40
|
|
321
|
+
},
|
|
322
|
+
handleTouchArea: {
|
|
323
|
+
alignItems: 'center',
|
|
324
|
+
paddingBottom: 6,
|
|
325
|
+
paddingTop: 6
|
|
326
|
+
},
|
|
327
|
+
header: {
|
|
328
|
+
gap: 6,
|
|
329
|
+
marginBottom: 12,
|
|
330
|
+
paddingHorizontal: 16
|
|
331
|
+
},
|
|
332
|
+
message: {
|
|
333
|
+
fontSize: 13,
|
|
334
|
+
lineHeight: 18
|
|
335
|
+
},
|
|
336
|
+
sheet: {
|
|
337
|
+
alignSelf: 'stretch',
|
|
338
|
+
borderWidth: 1,
|
|
339
|
+
flexShrink: 1,
|
|
340
|
+
minHeight: 0,
|
|
341
|
+
overflow: 'hidden'
|
|
342
|
+
},
|
|
343
|
+
title: {
|
|
344
|
+
fontSize: 16,
|
|
345
|
+
fontWeight: '700'
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
//# sourceMappingURL=action-sheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeSafeAreaContext","_index","_docyrusIcon","_jsxRuntime","ratioMap","small","medium","large","resolveMaxHeight","detent","topInset","screenHeight","Dimensions","get","height","availableHeight","Math","max","undefined","round","ActionSheet","actions","cancelLabel","children","closeOnBackdrop","contentContainerStyle","detents","fixedContent","message","onClose","scrollable","showCancel","title","visible","theme","useDocyrusRNAssistantTheme","insets","useSafeAreaInsets","resolvedDetent","useMemo","maxHeight","top","isMounted","setIsMounted","useState","progress","useRef","Animated","Value","current","dragY","sheetTravel","closeThreshold","min","finishClose","useCallback","setValue","useEffect","spring","toValue","damping","stiffness","mass","useNativeDriver","start","timing","duration","easing","Easing","out","cubic","finished","requestClose","parallel","panResponder","PanResponder","create","onMoveShouldSetPanResponder","_","gestureState","dy","abs","dx","onPanResponderGrant","stopAnimation","onPanResponderMove","onPanResponderRelease","vy","onPanResponderTerminate","backdropOpacity","interpolate","inputRange","outputRange","translateY","add","jsx","View","pointerEvents","style","styles","root","AnimatedPressable","onPress","backdrop","opacity","sheetFrame","transform","jsxs","Pressable","event","stopPropagation","sheet","backgroundColor","colors","card","borderColor","border","borderTopLeftRadius","borderRadius","xl","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","paddingBottom","bottom","panHandlers","handleTouchArea","handle","header","Text","color","foreground","mutedForeground","length","ScrollView","bounces","content","showsVerticalScrollIndicator","map","action","TouchableOpacity","activeOpacity","disabled","actionRow","muted","lg","icon","DocyrusIcon","destructive","primary","size","actionLabel","label","key","body","cancelButton","cancelText","createAnimatedComponent","StyleSheet","fontSize","fontWeight","alignItems","flexDirection","gap","paddingHorizontal","paddingVertical","absoluteFillObject","elevation","zIndex","flex","justifyContent","paddingTop","alignSelf","minHeight","marginTop","flexGrow","marginBottom","width","lineHeight","borderWidth","flexShrink","overflow"],"sourceRoot":"../../../src","sources":["ui/action-sheet.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAcA,IAAAE,2BAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAA6C,IAAAK,WAAA,GAAAL,OAAA;AA8B7C,MAAMM,QAA2D,GAAG;EAClEC,KAAK,EAAE,IAAI;EACXC,MAAM,EAAE,IAAI;EACZC,KAAK,EAAE;AACT,CAAC;AAED,SAASC,gBAAgBA,CAACC,MAAyB,EAAEC,QAAgB,EAAsB;EACzF,MAAMC,YAAY,GAAGC,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC,CAACC,MAAM;EACpD,MAAMC,eAAe,GAAGC,IAAI,CAACC,GAAG,CAACN,YAAY,GAAGK,IAAI,CAACC,GAAG,CAACP,QAAQ,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC;EAE/E,IAAID,MAAM,KAAK,KAAK,EAAE;IACpB,OAAOS,SAAS;EAClB;EAEA,IAAIT,MAAM,KAAK,OAAO,EAAE;IACtB,OAAOM,eAAe;EACxB;EAEA,OAAOC,IAAI,CAACG,KAAK,CAACJ,eAAe,GAAGX,QAAQ,CAACK,MAAM,CAAC,CAAC;AACvD;AAEO,SAASW,WAAWA,CAAC;EAC1BC,OAAO,GAAG,EAAE;EACZC,WAAW;EACXC,QAAQ;EACRC,eAAe,GAAG,IAAI;EACtBC,qBAAqB;EACrBhB,MAAM,GAAG,KAAK;EACdiB,OAAO;EACPC,YAAY;EACZC,OAAO;EACPC,OAAO;EACPC,UAAU,GAAG,IAAI;EACjBC,UAAU,GAAG,KAAK;EAClBC,KAAK;EACL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AAE,CAAC;IACXZ,GAAG,EAAE;EACP,CAAC;EACDpC,MAAM,EAAE;IACN6C,SAAS,EAAE,QAAQ;IACnBtD,YAAY,EAAE,GAAG;IACjBxG,MAAM,EAAE,CAAC;IACTkK,YAAY,EAAE,EAAE;IAChBC,KAAK,EAAE;EACT,CAAC;EACDnD,eAAe,EAAE;IACfmC,UAAU,EAAE,QAAQ;IACpBtC,aAAa,EAAE,CAAC;IAChBgD,UAAU,EAAE;EACd,CAAC;EACD3C,MAAM,EAAE;IACNmC,GAAG,EAAE,CAAC;IACNa,YAAY,EAAE,EAAE;IAChBZ,iBAAiB,EAAE;EACrB,CAAC;EACDxI,OAAO,EAAE;IACPmI,QAAQ,EAAE,EAAE;IACZmB,UAAU,EAAE;EACd,CAAC;EACDnE,KAAK,EAAE;IACL6D,SAAS,EAAE,SAAS;IACpBO,WAAW,EAAE,CAAC;IACdC,UAAU,EAAE,CAAC;IACbP,SAAS,EAAE,CAAC;IACZQ,QAAQ,EAAE;EACZ,CAAC;EACDrJ,KAAK,EAAE;IACL+H,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AlertDialog = AlertDialog;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _index = require("../theme/index.js");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function AlertDialog({
|
|
11
|
+
cancelText,
|
|
12
|
+
confirmText,
|
|
13
|
+
description,
|
|
14
|
+
onCancel,
|
|
15
|
+
onConfirm,
|
|
16
|
+
title,
|
|
17
|
+
variant = 'default',
|
|
18
|
+
visible = false
|
|
19
|
+
}) {
|
|
20
|
+
const theme = (0, _index.useDocyrusRNAssistantTheme)();
|
|
21
|
+
const confirmBackground = variant === 'destructive' ? theme.colors.destructive : variant === 'success' ? theme.colors.success : variant === 'warning' ? theme.colors.warning : theme.colors.primary;
|
|
22
|
+
const confirmForeground = variant === 'success' ? theme.colors.successForeground : variant === 'warning' ? theme.colors.warningForeground : theme.colors.primaryForeground;
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
24
|
+
animationType: "fade",
|
|
25
|
+
onRequestClose: onCancel,
|
|
26
|
+
statusBarTranslucent: true,
|
|
27
|
+
transparent: true,
|
|
28
|
+
visible: visible,
|
|
29
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
30
|
+
onPress: onCancel,
|
|
31
|
+
style: styles.backdrop,
|
|
32
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
33
|
+
onPress: event => event.stopPropagation(),
|
|
34
|
+
style: [styles.dialog, {
|
|
35
|
+
backgroundColor: theme.colors.card,
|
|
36
|
+
borderColor: theme.colors.border,
|
|
37
|
+
borderRadius: theme.borderRadius.xl
|
|
38
|
+
}],
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
40
|
+
style: [styles.title, {
|
|
41
|
+
color: theme.colors.foreground
|
|
42
|
+
}],
|
|
43
|
+
children: title ?? 'Are you sure?'
|
|
44
|
+
}), description && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
45
|
+
style: [styles.description, {
|
|
46
|
+
color: theme.colors.mutedForeground
|
|
47
|
+
}],
|
|
48
|
+
children: description
|
|
49
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
50
|
+
style: styles.footer,
|
|
51
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
52
|
+
activeOpacity: 0.8,
|
|
53
|
+
onPress: onCancel,
|
|
54
|
+
style: [styles.secondaryButton, {
|
|
55
|
+
backgroundColor: theme.colors.muted,
|
|
56
|
+
borderRadius: theme.borderRadius.lg
|
|
57
|
+
}],
|
|
58
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
59
|
+
style: [styles.secondaryText, {
|
|
60
|
+
color: theme.colors.foreground
|
|
61
|
+
}],
|
|
62
|
+
children: cancelText ?? 'Cancel'
|
|
63
|
+
})
|
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
65
|
+
activeOpacity: 0.8,
|
|
66
|
+
onPress: onConfirm,
|
|
67
|
+
style: [styles.primaryButton, {
|
|
68
|
+
backgroundColor: confirmBackground,
|
|
69
|
+
borderRadius: theme.borderRadius.lg
|
|
70
|
+
}],
|
|
71
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
72
|
+
style: [styles.primaryText, {
|
|
73
|
+
color: confirmForeground
|
|
74
|
+
}],
|
|
75
|
+
children: confirmText ?? 'Confirm'
|
|
76
|
+
})
|
|
77
|
+
})]
|
|
78
|
+
})]
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
const styles = _reactNative.StyleSheet.create({
|
|
84
|
+
backdrop: {
|
|
85
|
+
alignItems: 'center',
|
|
86
|
+
backgroundColor: 'rgba(15, 23, 42, 0.45)',
|
|
87
|
+
flex: 1,
|
|
88
|
+
justifyContent: 'center',
|
|
89
|
+
padding: 24
|
|
90
|
+
},
|
|
91
|
+
description: {
|
|
92
|
+
fontSize: 14,
|
|
93
|
+
lineHeight: 20,
|
|
94
|
+
marginTop: 8
|
|
95
|
+
},
|
|
96
|
+
dialog: {
|
|
97
|
+
borderWidth: 1,
|
|
98
|
+
padding: 20,
|
|
99
|
+
width: '100%'
|
|
100
|
+
},
|
|
101
|
+
footer: {
|
|
102
|
+
flexDirection: 'row',
|
|
103
|
+
gap: 12,
|
|
104
|
+
justifyContent: 'flex-end',
|
|
105
|
+
marginTop: 20
|
|
106
|
+
},
|
|
107
|
+
primaryButton: {
|
|
108
|
+
alignItems: 'center',
|
|
109
|
+
justifyContent: 'center',
|
|
110
|
+
minWidth: 96,
|
|
111
|
+
paddingHorizontal: 16,
|
|
112
|
+
paddingVertical: 12
|
|
113
|
+
},
|
|
114
|
+
primaryText: {
|
|
115
|
+
fontSize: 14,
|
|
116
|
+
fontWeight: '700'
|
|
117
|
+
},
|
|
118
|
+
secondaryButton: {
|
|
119
|
+
alignItems: 'center',
|
|
120
|
+
justifyContent: 'center',
|
|
121
|
+
minWidth: 96,
|
|
122
|
+
paddingHorizontal: 16,
|
|
123
|
+
paddingVertical: 12
|
|
124
|
+
},
|
|
125
|
+
secondaryText: {
|
|
126
|
+
fontSize: 14,
|
|
127
|
+
fontWeight: '600'
|
|
128
|
+
},
|
|
129
|
+
title: {
|
|
130
|
+
fontSize: 17,
|
|
131
|
+
fontWeight: '700'
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
//# sourceMappingURL=alert-dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_index","_jsxRuntime","AlertDialog","cancelText","confirmText","description","onCancel","onConfirm","title","variant","visible","theme","useDocyrusRNAssistantTheme","confirmBackground","colors","destructive","success","warning","primary","confirmForeground","successForeground","warningForeground","primaryForeground","jsx","Modal","animationType","onRequestClose","statusBarTranslucent","transparent","children","Pressable","onPress","style","styles","backdrop","jsxs","event","stopPropagation","dialog","backgroundColor","card","borderColor","border","borderRadius","xl","Text","color","foreground","mutedForeground","View","footer","TouchableOpacity","activeOpacity","secondaryButton","muted","lg","secondaryText","primaryButton","primaryText","StyleSheet","create","alignItems","flex","justifyContent","padding","fontSize","lineHeight","marginTop","borderWidth","width","flexDirection","gap","minWidth","paddingHorizontal","paddingVertical","fontWeight"],"sourceRoot":"../../../src","sources":["ui/alert-dialog.tsx"],"mappings":";;;;;;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